@ihabdevteam/core 0.114.0 → 0.115.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 +23 -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/components/Popup/customerDetailUtils.d.ts +15 -4
- package/dist/packages/core/src/components/Popup/customerDetailUtils.js +37 -7
- 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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
\uC2E0\uB8B0\uB97C \uC313\uACE0
|
|
3
3
|
\uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`,site:{title:"\uC0AC\uC774\uD2B8",malgwi:"\uB9D0\uADC0",soundDirection:"\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",vrSoundDirection:"VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",hearingTest:"\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C"},sns:{title:"SNS",naverBlog:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8",kakao:"KAKAO Talk \uC624\uD508\uCC44\uD305"},policy:{title:"\uC815\uCC45",terms:"\uC774\uC6A9\uC57D\uAD00",privacy:"\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68"},ceo:"\uB300\uD45C",address:"\uC8FC\uC18C",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"},u1={trainingPhone:{topic:"\uD143\uBC2D\uAC00\uAFB8\uAE30",prev:"\uC774\uC804",next:"\uB2E4\uC74C",speed:"\uBE60\uB974\uAE30 3",noiseType:"\uC640\uAE00\uC640\uAE00",settings:"\uC124\uC815",start:{caption:"\uC544\uB798 \uD50C\uB808\uC774(\u25B6) \uBC84\uD2BC\uC744 \uB20C\uB7EC \uBB38\uC7A5\uC744 \uC798 \uB4E4\uC5B4\uBCF4\uC138\uC694. \uC798 \uB4E4\uC73C\uC2E0 \uB4A4 \uBB38\uC7A5\uC744 \uD655\uC778\uD558\uC138\uC694."},feedback:{caption:"\uC798 \uD0A4\uC6B4 \uBAA8\uC885\uC744 \uD143\uBC2D\uC5D0 \uC2EC\uACE0 \uBE44\uB2D0\uC744 \uC798 \uB36E\uC5B4 \uC90D\uB2C8\uB2E4."},done:{heardWell:"\uC798 \uB4E4\uB9B0 \uBB38\uC7A5",listenAgain:"\uD55C \uBC88 \uB354 \uB4E3\uAE30"}}},p1={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},h1={options:"\uD6C8\uB828 \uC635\uC158",difficulty:"\uB09C\uC774\uB3C4",exclude:"\uC81C\uC678",chosung:"\uCD08\uC131",excludeOptions:{none:"\uC5C6\uC74C",noImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"}},m1={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},b1={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"},g1={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},f1={ariaLabel:"\uC120\uD0DD \uD0ED"},v1={ariaLabel:"\uD0ED"},x1={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},_1={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},C1={relativeDay:{today:"\uC624\uB298",yesterday:"\uC5B4\uC81C",daysAgo:"{{n}}\uC77C \uC804"},reason:{notLoggedIn:"\uB85C\uADF8\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},list:{title:"\uBC1B\uC740 \uC219\uC81C"},status:{expired:"\uB9CC\uB8CC\uB428",done:"\uC644\uB8CC {{count}}\uD68C \xB7 {{date}}",notDone:"\uBBF8\uC644\uB8CC"}},y1={weekly:{title:"\uC8FC\uAC04 \uD6C8\uB828 \uD604\uD669",daily:"\uC624\uB298\uC758 \uB4E3\uAE30",crossword:"\uAC00\uB85C\uC138\uB85C"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uD604\uD669",totalRate:"\uC804\uCCB4 \uC644\uB8CC\uC728",count:"\uC804\uCCB4",done:"\uC644\uB8CC",remaining:"\uBBF8\uC644\uB8CC"},today:{tooltipTotal:"\uC804\uCCB4",tooltipDone:"\uC644\uB8CC"},filter:{countSuffix:" \uD6C8\uB828"},time:{countLabel:"{{n}}\uD68C \uD6C8\uB828",empty:"\uD6C8\uB828 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},daily:{title:"\uC624\uB298\uC758 \uB4E3\uAE30 \uAE30\uB85D",empty:"\uC644\uB8CC\uD55C \uD68C\uCC28\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},crossword:{title:"\uAC00\uB85C\uC138\uB85C\uD034\uC988",empty:"\uC644\uB8CC\uD55C \uB808\uBCA8\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"},visit:{title:"\uBC29\uBB38 \uC5F0\uB3D9 \uAE30\uB85D"},detail:"\uC0C1\uC138\uBCF4\uAE30",trainingType:{LISTEN_IN_NOISE:"\uC18C\uC74C \uD558 \uBB38\uC7A5",SHORT_STORY:"\uC9E7\uC740 \uC774\uC57C\uAE30",LONG_STORY:"\uAE34 \uC774\uC57C\uAE30",ORDERING_SENTENCE:"\uBB38\uC7A5 \uC21C\uC11C\uD654"}},w1={publish:{descPlaceholder:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uD45C\uC2DC\uD560 \uD55C \uC904 \uC124\uBA85 (\uC120\uD0DD)"},import:"\uB0B4 \uD6C8\uB828\uC5D0 \uAC00\uC838\uC624\uAE30",publisher:"\uAC8C\uC2DC\uC790",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"},badge:{shared:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"}},k1={manage:{unit:"\uAC74"}},A1={cancelLabel:"\uCDE8\uC18C"},S1={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},B1={panelTitle:"\uD6C8\uB828 \uC624\uB2F5",viewItems:"\uBB38\uD56D",viewTypes:"\uC720\uD615",colPending:"\uB0A8\uC740 \uAC83",colTrend:"\uBCC0\uD654",colRuns:"\uD310",unitItem:"\uAC1C",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.",summaryLabel:"\uC313\uC778 \uAE30\uB85D",summaryValue:"{{items}}\uBB38\uD56D \xB7 \uC544\uC9C1 \uBABB \uC7A1\uC740 \uAC83 {{pending}}\uAC1C",nextLabel:"\uB2E4\uC74C\uC5D0 \uBCFC \uAC83",nextCount:"{{count}}\uAC1C",nextCountCapped:"{{total}}\uAC1C \uC911 {{shown}}\uAC1C",picked:"\u2192 {{what}}",typeClear:"\uB2E4 \uC7A1\uC558\uC5B4\uC694",typePending:"{{total}}\uAC1C \uC911 {{pending}}\uAC1C \uB0A8\uC74C",flat:"\uBCC0\uD654 \uC5C6\uC74C",runs:"{{count}}\uD310",avgDuration:"\uD3C9\uADE0 {{sec}}\uCD08"},N1={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"},D1={panelTitle:"\uB2E8\uC5B4\uD45C \uCC44\uC810",viewWords:"\uB0B1\uB9D0",viewTables:"\uD45C",colLatest:"\uB9C8\uC9C0\uB9C9",colTrend:"\uBCC0\uD654",unitTime:"\uD68C",summaryLabel:"\uC313\uC778 \uCC44\uC810",summaryValue:"{{times}}\uD68C \xB7 \uB0B1\uB9D0 {{words}}\uAC1C",nextLabel:"\uB2E4\uC74C\uC5D0 \uBCFC \uAC83",nextCount:"{{count}}\uAC1C",allClear:"\uC9C0\uB09C\uBC88\uC5D0 \uBAA8\uB450 \uB9DE\uD614\uC2B5\uB2C8\uB2E4.",times:"{{count}}\uD68C",flat:"\uBCC0\uD654 \uC5C6\uC74C",recentLabel:"\uCD5C\uADFC \uCC44\uC810",nextCountCapped:"{{total}}\uAC1C \uC911 {{shown}}\uAC1C"},j1={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},E1={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},T1={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},L1={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},M1={devNone:"\uBC1C\uB2EC \uC790\uB8CC \uC5C6\uC74C",place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"}},$1={common:Ng,calendar:Dg,passCard:jg,searchField:Eg,rating:Tg,colorPicker:Lg,dropdown:Mg,accordion:$g,header:Rg,nav:Pg,settings:zg,usage:Ig,account:Og,help:Fg,training:Hg,trainingSettings:Wg,customers:Vg,payment:Gg,coupons:Ug,visits:Yg,company:qg,trainingType:Kg,myWordTraining:Zg,myWordTable:Xg,keyWords:Jg,wordTable:Qg,wordSearch:e1,wordPrint:t1,topic:a1,accessLinkManager:o1,login:r1,trainingPlanRun:n1,device:i1,manager:s1,wordPairs:l1,game:c1,footer:d1,landing:u1,date:p1,trainingSetPage:h1,wordTrainingPreview:m1,wordData:b1,textField:g1,segmentedControl:f1,tabs:v1,fileUpload:x1,avatar:_1,myHomework:C1,trainingStatus:y1,store:w1,homework:k1,inquiry:A1,progress:S1,trainingMiss:B1,table:N1,wordScore:D1,topBanner:j1,datePicker:E1,report:T1,tooltip:L1,phonemeProfile:M1},R1={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",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",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No 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"}}},P1={rangeSelect:"Select period",dow:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],yearMonth:"{{month}}/{{year}}",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"},z1={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",menu:{use:"Activate",refund:"Refund",delete:"Delete"}},I1={clearAriaLabel:"Clear search"},O1={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},F1={selected:"selected"},H1={placeholder:"Select"},W1={collapse:"Collapse",expand:"Expand"},V1={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu"},G1={mainMenu:"Main menu",bottomNav:"Bottom navigation",goToManager:"Go to Malgwi Manager",goToMalgwi:"Go to Malgwi",modeLabelManager:"Malgwi Manager",modeLabelMalgwi:"Malgwi",training:"Training",settings:"Settings",notifications:"Notifications",account:"Account",help:"Help",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"},U1={language:{training:{label:"Training Language",sub:"Language used for training words and speech"}},notifications:{title:"Notifications"},display:{fontSize:{small:"Small",large:"Large"}},cache:{title:"Cache Management",confirmMessage:"Delete cache ({{size}}). Do you want to continue?",delete:"Delete",deleting:"Deleting",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"},trainingRecord:{label:"Training Record",sub:"Daily training progress and streak"}}},button:{save:"Save Settings"},popup:{clear:{confirm:"Reset"},update:{confirm:"Update"},cache:{title:"Delete {{label}}",message:"Delete {{label}} ({{size}}). Do you want to continue?"}},saved:"\u2713 Saved",account:{title:"Account",delete:{sub:"You can restore your account within 30 days of withdrawal."}}},Y1={addButton:"Add Subscription",couponButton:"Enter Coupon",active:{infoTitle:"Subscription Info",refund:"Request Refund",startDate:"Start Date",endDate:"End Date",remaining:"Remaining"},pending:{title:"Pending",empty:"No pending subscriptions."},loading:"Loading\u2026",segment:{personal:"Malgwi",org:"Malgwi Manager"},org:{title:"Current Plan",disc:"Subscription plan in use by your organization.",empty:"No organization plan registered.",fallbackTitle:"Organization Plan",startDate:"Start Date",endDate:"End Date",remaining:"Remaining",duration:"Duration"}},q1={profile:{planSuffix:"",plan:"Plan"},basicInfo:{name:{placeholder:"John Doe"}},security:{title:"Security",password:{label:"Password"},twoFactor:{label:"Two-Factor Authentication",sub:"Strengthen your account security"}}},K1={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},Z1={settings:"Settings",start:{title:"Start Word Training",description:"Select a training type below to begin"},difficulty:{tooltip:"The easiest difficulty is 'Random', the hardest is 'Initial Consonant Difference'."},contrast:{label:"Contrast",type:"Contrast Type",count:"Contrast Count",diffPhonemeCount:"Total differing phonemes",n:"{{n}}"},filter:{random:"Random",trainOnset:"Onset",trainVowel:"Vowel",trainCoda:"Coda",phonemeGroup:"Training phonemes",noLimit:"Any",codaExclude:"Exclude",gradeLabel:"Grade",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:"{{n}} questions",countSentences:"{{n}} sentences",comingSoon:"Coming Soon",nextQuestion:"Next",noiseLevelTitle:"Noise Level",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",playAll:"Play All",stop:"Stop",preview:"Preview",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.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{eyebrow:"Training Complete",title:"You've finished all the training!",scoreAria:"{{correct}} / {{total}} questions",elapsed:"Time Elapsed",summary:"You heard {{correct}} item(s) correctly.",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",done:"Done",viewResult:"View Results"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen"},X1={totalCount:" training bundles",sort:{customers:"Customers"},copyLink:"Copy Link",removeLink:"Remove Link",linkRemoved:"Link removed.",linkSaveFirst:"Please save the training bundle first.",linkSaveFirstHint:"You can only create a shared link from a saved training bundle.",linkCopySelect:"Copy blocked \u2014 link selected. Press Ctrl/\u2318+C to copy.",nameRequired:"Please enter a training bundle name.",itemRequired:"Please add at least one training item.",randomAdd:"Random Add",menu:{publish:"Post to Store",duplicate:"Duplicate Training Bundle",edit:"Edit Training Bundle",move:"Move Group",rename:"Rename"},itemCount:"Number of Items",renameGroup:"Rename Group"},J1={totalCount:" customers",loadError:"Failed to load list",basicInfo:{editTooltip:"Edit"},member:{placeholder:"Email or phone",link:"Link",linking:"Linking\u2026"},device:{title:"Hearing Devices",addTooltip:"Add New",addButton:"Add device",listTooltip:"View List",listTitle:" Device List",historyEmpty:"No device history registered",wearing:" in use",notRegistered:"Not registered",unit:"",wearingNow:"In use",wear:"Wear",unwear:"Remove",wornSince:"Since {{date}}",release:"Release",historyTitle:"Hearing device history"},schedule:{title:"Upcoming Visits",addTooltip:"Add Schedule",listTooltip:"View All",empty:"No upcoming visits",registerTitle:" Register Schedule",memoPlaceholder:"Enter a memo for this visit."},visitHistory:{title:"Visit History",addTooltip:"Add Visit",empty:"No visit history yet",popupTitle:" Visit History",registerTitle:" Register Visit"},moreItems:"more",viewAll:"View All",visits:{title:"Visits"},trainingRecord:{title:"Customer Training Records"},status:{trainingSubtitle:"Training Status"},detail:{session:{completedFmt:"Done {{done}}/{{total}} \xB7 {{duration}}"},visitSuffix:" visits"},homework:{active:"Active",copied:"Link copied.",copy:"Copy Link",inactive:"Inactive",title:"Homework Progress"}},Q1={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},e0={title:"Coupons",subtitle:"Enter a coupon code or view your coupons",input:{label:"Coupon code",placeholder:"Enter coupon code"},applyButton:"Apply",error:{invalid:"Invalid coupon code.",alreadyUsed:"This coupon has already been used."},success:{applied:'"{{name}}" coupon applied.'},section:{owned:"My Coupons"},status:{used:"Used",available:"Available"}},t0={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},a0={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},o0={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."}},r0={comingSoon:"Word training is coming soon."},n0={colName:"Table Name",open:"Open",countSuffix:" tables",addCard:"Add Word Table Card",cardsEmpty:"No word table cards created yet.",menu:{publishStore:"Post to Training Store",unpublishStore:"Remove from Training Store"},newBadge:"Newly created",tab:{cards:"Word Table Cards",tables:"Word Tables"}},i0={title:"Key Words",empty:"No key words available."},s0={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",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",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",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)"},loadTable:{title:"Load Saved Word Table",empty:"No saved word tables.",loadButton:"Load",itemCount:"{{count}} words",deleteAriaLabel:"Delete",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",store:{badge:"Training Store"},card:{sub:"Word Table Card",empty:"No word tables in this card."},toast:{renameError:"Failed to rename",saveError:"Failed to save",deleteError:"Failed to delete",duplicateError:"Failed to duplicate",saveSuccess:"Word table saved."},scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} 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 a cell to mark \u25CB \xB7 \u25B3 \xB7 \u2715.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage:"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:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage:"You marked {{count}} cells but have not saved. Leaving discards them.",discardConfirm:"Discard and leave"}},l0={editBanner:{message:"Saving will update the word table you're editing."},filterTitle:"Word Search Settings",filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Grade",grade:"Grade {{n}}",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",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"},pageSize:"Show {{count}}",pageSizeAria:"Page size",popup:{title:"Select a word for cell {{n}}"}},c0={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},d0={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"}},u0={maxUses:"Max uses (leave blank for unlimited)",redirect:"Redirect URL (leave blank for app home)",creating:"Creating\u2026",create:"Create link",created:"\u2713 Link created",copied:"Copied!",copy:"Copy",loading:"Loading\u2026",empty:"No links created yet.",uses:"Used {{count}} times",expiresAt:"Expires: {{date}}",createdAt:"Created: {{date}}",confirmDelete:"Delete this link?",deactivate:"Deactivate",delete:"Delete",status:{active:"Active",expired:"Expired",inactive:"Inactive"}},p0={passwordPlaceholder:"Enter password"},h0={direction:{left:"L",right:"R",label:"Side"},wornDate:"Date Worn",deviceType:"Device Type",brand:"Brand",fitType:"Fit Type",productName:"Product Name",validationError:{brandAndProduct:"Please enter brand and product name."},addNew:"Add New Device",selectFromList:"Select from List",removeDevice:"Remove"},m0={stat:{totalCustomers:"Total Customers",monthlyVisits:"This Month's Visits"},chart:{visitDetail:"Visit Details",trainingDetail:"Training Details",weekly:"Weekly",daily:"Daily",periodMonth:"Month",periodWeek:"Week",weeklyPrefix:"Weekly",monthlyPrefix:"Monthly",visit:"Visits",reservation:"Reservations",trainingDone:"Completed",trainingInProgress:"In Progress",weekRange:"{{start}}\u2013{{end}}",week:"W{{n}}"},subscriptionStatus:{active:"{{pct}}% Active",expired:"{{pct}}% Expired",unused:"{{pct}}% Unused"}},b0={editBanner:{message:"Saving will update the contrast pair table you're editing."},phonemeSelect:{title:"Phoneme Selection",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}}",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:"Reflects the National Institute of Korean Language's basic vocabulary grade.",selectLabel:"Select",onlyHasImage:"Only words with images",onlySameStructure:"Only same phoneme structure"},searchLabel:{error:"Failed to load data",loading:"Loading\u2026"},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."]},g0={sentenceTyping:{roundCount:"{{rounds}} rounds \xB7 {{timeLimit}}s each"},wordDefense:{me:"Me"},dictation:{title:"Dictation",desc:"Practice writing down exactly what you hear.",comingSoon:"Coming soon: audio playback, input field, answer comparison"},result:{heading:"Level {{number}} Answer",retry:"Try Again"},common:{accuracy:"{{pct}}% accuracy"},soundMatch:{title:"Sound Match",desc:"Quickly match words or sentences that share the same sound.",comingSoon:"Coming soon: play button, timer, score tracking"},orderSequence:{title:"Sentence Ordering",desc:"Arrange scattered sentence fragments in the correct order.",comingSoon:"Coming soon: sentence sets, ordering interface"},speedListen:{title:"Speed Listen",desc:"A challenge game to count the number of words in a sentence within a time limit.",comingSoon:"Coming soon: time limit, scoreboard"},noiseChallenge:{title:"Noise Challenge",desc:"Practice distinguishing sentences amid background noise.",comingSoon:"Coming soon: various noise levels, score tracking"},fastListen:{title:"Fast Listen",desc:"Listen to short sentences at speed and select the key word.",comingSoon:"Coming soon: speed by difficulty, timer"},shadowing:{title:"Shadowing",desc:"Practice pronunciation and intonation by repeating sentences aloud.",comingSoon:"Coming soon: playback, recording, comparison feedback"},phonemeHunt:{title:"Phoneme Hunt",desc:"Find words that contain a specific phoneme (sound).",comingSoon:"Coming soon: phoneme filter, hint feature"}},f0={lead:`IHAB builds trust
|
|
4
4
|
through sound
|
|
5
|
-
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",kakao:"KAKAO Talk Open Chat"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Siocheong-gil, Chuncheon, Gangwon, Korea"},v0={trainingPhone:{topic:"Gardening",prev:"Prev",next:"Next",speed:"Speed 3",noiseType:"Crowd noise",settings:"Settings",start:{caption:"Press the play (\u25B6) button below and listen carefully. After listening, check the sentence."},feedback:{caption:"Plant the well-grown seedlings in the garden bed and cover them carefully with plastic film."},done:{heardWell:"Heard clearly",listenAgain:"Listen again"}}},x0={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},_0={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},C0={answer:"Answer",distractor:"Distractor"},y0={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},w0={clearAriaLabel:"Clear input"},k0={ariaLabel:"Select tab"},A0={ariaLabel:"Tabs"},S0={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},B0={ariaLabel:"User avatar"},N0={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"},reason:{notLoggedIn:"Login required."},list:{title:"Received Homework"},status:{expired:"Expired",done:"Done {{count}}\xD7 \xB7 {{date}}",notDone:"Not done"}},D0={weekly:{title:"Weekly Training",daily:"Daily Listening",crossword:"Crossword"},homework:{title:"Homework Progress",totalRate:"Overall rate",count:"Total",done:"Done",remaining:"Remaining"},today:{tooltipTotal:"Total",tooltipDone:"Done"},filter:{countSuffix:" sessions"},time:{countLabel:"{{n}} sessions",empty:"No training records"},daily:{title:"Today's Listening Record",empty:"No completed sessions"},crossword:{title:"Crossword Quiz",empty:"No completed levels"},visit:{title:"Linked Visit Records"},detail:"Details",trainingType:{LISTEN_IN_NOISE:"Sentence in Noise",SHORT_STORY:"Short Story",LONG_STORY:"Long Story",ORDERING_SENTENCE:"Sentence Ordering"}},j0={import:"Add to my trainings",publisher:"Publisher",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"},badge:{shared:"Store"},publish:{descPlaceholder:"One-line description for the Training Store (optional)"}},E0={manage:{unit:"item(s)"}},T0={cancelLabel:"Cancel"},L0={subtitle:"Select a topic to start listening practice."},M0={steps:"Step {{current}} of {{total}}"},$0={panelTitle:"Training misses",viewItems:"Items",viewTypes:"Types",colPending:"Left",colTrend:"Change",colRuns:"Runs",unitItem:" items",skippedOnly:"{{n}} older record(s) were excluded \u2014 they do not say what was answered.",summaryLabel:"Recorded",summaryValue:"{{items}} items \xB7 {{pending}} still missed",nextLabel:"Next to work on",nextCount:"{{count}}",nextCountCapped:"{{shown}} of {{total}}",picked:"\u2192 {{what}}",typeClear:"All caught up",typePending:"{{pending}} of {{total}} left",flat:"no change",runs:"{{count}} run(s)",avgDuration:"{{sec}}s avg"},R0={resetColumns:"Reset column widths"},P0={panelTitle:"Word table scores",viewWords:"Words",viewTables:"Tables",colLatest:"When",colTrend:"Change",unitTime:" times",summaryLabel:"Scored",summaryValue:"{{times}} times \xB7 {{words}} words",nextLabel:"Focus next",nextCount:"{{count}}",allClear:"All correct last time.",times:"{{count}}x",flat:"no change",recentLabel:"Recent scorings",nextCountCapped:"{{shown}} of {{total}}"},z0={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},I0={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},O0={previewRegion:"Report preview \u2014 scrollable sideways"},F0={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},H0={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},W0={common:R1,calendar:P1,passCard:z1,searchField:I1,rating:O1,colorPicker:F1,dropdown:H1,accordion:W1,header:V1,nav:G1,settings:U1,usage:Y1,account:q1,help:K1,training:Z1,trainingSettings:X1,customers:J1,payment:Q1,coupons:e0,visits:t0,company:a0,trainingType:o0,myWordTraining:r0,myWordTable:n0,keyWords:i0,wordTable:s0,wordSearch:l0,wordPrint:c0,topic:d0,accessLinkManager:u0,login:p0,device:h0,manager:m0,wordPairs:b0,game:g0,footer:f0,landing:v0,date:x0,trainingSetPage:_0,wordTrainingPreview:C0,wordData:y0,textField:w0,segmentedControl:k0,tabs:A0,fileUpload:S0,avatar:B0,myHomework:N0,trainingStatus:D0,store:j0,homework:E0,inquiry:T0,trainingPlanRun:L0,progress:M0,trainingMiss:$0,table:R0,wordScore:P0,topBanner:z0,datePicker:I0,report:O0,tooltip:F0,phonemeProfile:H0};const jr="0.
|
|
5
|
+
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",kakao:"KAKAO Talk Open Chat"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Siocheong-gil, Chuncheon, Gangwon, Korea"},v0={trainingPhone:{topic:"Gardening",prev:"Prev",next:"Next",speed:"Speed 3",noiseType:"Crowd noise",settings:"Settings",start:{caption:"Press the play (\u25B6) button below and listen carefully. After listening, check the sentence."},feedback:{caption:"Plant the well-grown seedlings in the garden bed and cover them carefully with plastic film."},done:{heardWell:"Heard clearly",listenAgain:"Listen again"}}},x0={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},_0={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},C0={answer:"Answer",distractor:"Distractor"},y0={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},w0={clearAriaLabel:"Clear input"},k0={ariaLabel:"Select tab"},A0={ariaLabel:"Tabs"},S0={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},B0={ariaLabel:"User avatar"},N0={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"},reason:{notLoggedIn:"Login required."},list:{title:"Received Homework"},status:{expired:"Expired",done:"Done {{count}}\xD7 \xB7 {{date}}",notDone:"Not done"}},D0={weekly:{title:"Weekly Training",daily:"Daily Listening",crossword:"Crossword"},homework:{title:"Homework Progress",totalRate:"Overall rate",count:"Total",done:"Done",remaining:"Remaining"},today:{tooltipTotal:"Total",tooltipDone:"Done"},filter:{countSuffix:" sessions"},time:{countLabel:"{{n}} sessions",empty:"No training records"},daily:{title:"Today's Listening Record",empty:"No completed sessions"},crossword:{title:"Crossword Quiz",empty:"No completed levels"},visit:{title:"Linked Visit Records"},detail:"Details",trainingType:{LISTEN_IN_NOISE:"Sentence in Noise",SHORT_STORY:"Short Story",LONG_STORY:"Long Story",ORDERING_SENTENCE:"Sentence Ordering"}},j0={import:"Add to my trainings",publisher:"Publisher",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"},badge:{shared:"Store"},publish:{descPlaceholder:"One-line description for the Training Store (optional)"}},E0={manage:{unit:"item(s)"}},T0={cancelLabel:"Cancel"},L0={subtitle:"Select a topic to start listening practice."},M0={steps:"Step {{current}} of {{total}}"},$0={panelTitle:"Training misses",viewItems:"Items",viewTypes:"Types",colPending:"Left",colTrend:"Change",colRuns:"Runs",unitItem:" items",skippedOnly:"{{n}} older record(s) were excluded \u2014 they do not say what was answered.",summaryLabel:"Recorded",summaryValue:"{{items}} items \xB7 {{pending}} still missed",nextLabel:"Next to work on",nextCount:"{{count}}",nextCountCapped:"{{shown}} of {{total}}",picked:"\u2192 {{what}}",typeClear:"All caught up",typePending:"{{pending}} of {{total}} left",flat:"no change",runs:"{{count}} run(s)",avgDuration:"{{sec}}s avg"},R0={resetColumns:"Reset column widths"},P0={panelTitle:"Word table scores",viewWords:"Words",viewTables:"Tables",colLatest:"When",colTrend:"Change",unitTime:" times",summaryLabel:"Scored",summaryValue:"{{times}} times \xB7 {{words}} words",nextLabel:"Focus next",nextCount:"{{count}}",allClear:"All correct last time.",times:"{{count}}x",flat:"no change",recentLabel:"Recent scorings",nextCountCapped:"{{shown}} of {{total}}"},z0={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},I0={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},O0={previewRegion:"Report preview \u2014 scrollable sideways"},F0={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},H0={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},W0={common:R1,calendar:P1,passCard:z1,searchField:I1,rating:O1,colorPicker:F1,dropdown:H1,accordion:W1,header:V1,nav:G1,settings:U1,usage:Y1,account:q1,help:K1,training:Z1,trainingSettings:X1,customers:J1,payment:Q1,coupons:e0,visits:t0,company:a0,trainingType:o0,myWordTraining:r0,myWordTable:n0,keyWords:i0,wordTable:s0,wordSearch:l0,wordPrint:c0,topic:d0,accessLinkManager:u0,login:p0,device:h0,manager:m0,wordPairs:b0,game:g0,footer:f0,landing:v0,date:x0,trainingSetPage:_0,wordTrainingPreview:C0,wordData:y0,textField:w0,segmentedControl:k0,tabs:A0,fileUpload:S0,avatar:B0,myHomework:N0,trainingStatus:D0,store:j0,homework:E0,inquiry:T0,trainingPlanRun:L0,progress:M0,trainingMiss:$0,table:R0,wordScore:P0,topBanner:z0,datePicker:I0,report:O0,tooltip:F0,phonemeProfile:H0};const jr="0.115.0",Lo=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],co="ko",Vn="ihab_display_language";function qc(){try{const e=localStorage.getItem(Vn);if(e&&Lo.some(t=>t.code===e))return e}catch{}return co}function V0(e){try{localStorage.setItem(Vn,e)}catch{}}function Kc(e){try{document.documentElement.lang=e}catch{}}Ca.on("languageChanged",Kc),Kc(qc()),Ca.use(me.initReactI18next).init({resources:{ko:{translation:$1},en:{translation:W0}},lng:qc(),fallbackLng:co,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const Zc=l.createContext({locale:co,supportedLocales:Lo});function G0(){return l.useContext(Zc)}function U0({locale:e=co,children:t}){return l.useEffect(()=>{const a=Lo.find(r=>r.code===e)?e:co;Ca.language!==a&&Ca.changeLanguage(a)},[e]),o.jsx(Zc.Provider,{value:{locale:e,supportedLocales:Lo},children:t})}function _e(...e){return e.filter(Boolean).join(" ")}var Y0=".ihabdevteam-core-scope .empty-state{align-items:center;border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);display:flex;flex-direction:column;gap:10px;justify-content:center;padding:var(--spacing-page) var(--spacing-xl);text-align:center}.ihabdevteam-core-scope .empty-state__emoji{font-size:40px;line-height:1}.ihabdevteam-core-scope .empty-state__icon{color:var(--color-lightGray);height:40px;width:40px}.ihabdevteam-core-scope .empty-state__title{color:var(--color-lightGray);margin:0}.ihabdevteam-core-scope .empty-state__message{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .empty-state__hint{color:var(--color-lightGray);margin:0}.ihabdevteam-core-scope .empty-state__action{margin-top:var(--spacing-xs);min-width:120px}.ihabdevteam-core-scope .empty-state--compact{padding:var(--spacing-page) var(--spacing-m);padding-block:56px}";ae(Y0);const Xc=new Set,Jc=(()=>{try{const e=globalThis;return e.process!=null&&e.process.env?.NODE_ENV!=="production"}catch{return!1}})();function Gn(e,...t){!Jc||Xc.has(e)||(Xc.add(e),console.warn(...t))}/**
|
|
6
6
|
* @license lucide-react v1.38.0 - ISC
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the ISC license.
|
|
@@ -1333,7 +1333,7 @@ export declare function copyText(text: string): Promise<boolean>;
|
|
|
1333
1333
|
*
|
|
1334
1334
|
* 값은 손으로 적고 `test/coreVersion.test.ts` 가 package.json 과 어긋나면 운다.
|
|
1335
1335
|
*/
|
|
1336
|
-
export declare const CORE_VERSION = "0.
|
|
1336
|
+
export declare const CORE_VERSION = "0.115.0";
|
|
1337
1337
|
|
|
1338
1338
|
/** @public */
|
|
1339
1339
|
declare const coreDefault: Record<string, unknown>;
|
|
@@ -1,11 +1,22 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* customerDetailUtils.ts
|
|
3
|
-
* CustomerDetailPopup의 순수 표시/포맷 유틸 (상태 비의존).
|
|
4
|
-
*/
|
|
5
1
|
export declare function getDayOptions(year: string, month: string, daySuffix: string): {
|
|
6
2
|
value: string;
|
|
7
3
|
label: string;
|
|
8
4
|
}[];
|
|
5
|
+
/**
|
|
6
|
+
* 만 나이 — "N세 M개월" 을 `ageStr` 로 적는다. 못 읽으면 '-'.
|
|
7
|
+
*
|
|
8
|
+
* **문자열을 직접 쪼갠다 — `new Date()` 로 읽지 않는다.** 앱은 `normalizeDate` 를 거친
|
|
9
|
+
* `'YYYY.MM.DD'` 를 넘기는데, 이 꼴은 Safari(JavaScriptCore)에서 Invalid Date 라 만나이가
|
|
10
|
+
* 늘 '-' 였다(크롬만 우연히 읽었다 — 2026-09-12 말귀 검수 실측). `'YYYY-MM-DD'` 는 두
|
|
11
|
+
* 엔진 다 읽지만 **UTC 자정**으로 읽어, 서쪽 시간대 기기에서는 하루 앞 날짜가 된다.
|
|
12
|
+
*
|
|
13
|
+
* **오늘은 KST 달력 날짜다** — 기기 시간대가 아니다(`getTodayKst`). 저장소의 날짜는
|
|
14
|
+
* KST 하나로 읽는다(date.ts 머리 참고).
|
|
15
|
+
*
|
|
16
|
+
* **월말 생일** — 이번 달에 생일에 해당하는 날이 없으면 그 달 말일을 그날로 본다(민법의
|
|
17
|
+
* 말일 규칙과 같은 결). 1/31생은 2/28 에 한 달을 채우고, 2/29생은 평년 2/28 에 한 살을 먹는다.
|
|
18
|
+
* 생일이 오늘보다 뒤면 '-'.
|
|
19
|
+
*/
|
|
9
20
|
export declare function calcAge(birthDate: string | undefined, ageStr: (y: number, m: number) => string): string;
|
|
10
21
|
export declare function formatId(id?: number | string): string;
|
|
11
22
|
export declare function visitItemKey(v: {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* customerDetailUtils.ts
|
|
3
3
|
* CustomerDetailPopup의 순수 표시/포맷 유틸 (상태 비의존).
|
|
4
4
|
*/
|
|
5
|
+
import { getTodayKst } from '../../utils/date';
|
|
5
6
|
export function getDayOptions(year, month, daySuffix) {
|
|
6
7
|
const days = new Date(Number(year), Number(month), 0).getDate();
|
|
7
8
|
return Array.from({ length: days }, (_, i) => {
|
|
@@ -9,22 +10,51 @@ export function getDayOptions(year, month, daySuffix) {
|
|
|
9
10
|
return { value: d, label: `${i + 1}${daySuffix}` };
|
|
10
11
|
});
|
|
11
12
|
}
|
|
13
|
+
/** 'YYYY.MM.DD' · 'YYYY-MM-DD' · 'YYYYMMDD' 를 숫자 셋으로. 없는 날(2/30 등)이면 null. */
|
|
14
|
+
function 날짜쪼개기(s) {
|
|
15
|
+
const 숫자 = s.trim().replace(/[.-]/g, '');
|
|
16
|
+
if (!/^\d{8}$/.test(숫자))
|
|
17
|
+
return null;
|
|
18
|
+
const y = Number(숫자.slice(0, 4)), m = Number(숫자.slice(4, 6)), d = Number(숫자.slice(6, 8));
|
|
19
|
+
if (m < 1 || m > 12 || d < 1 || d > 말일(y, m))
|
|
20
|
+
return null;
|
|
21
|
+
return { y, m, d };
|
|
22
|
+
}
|
|
23
|
+
const 말일 = (y, m) => new Date(y, m, 0).getDate();
|
|
24
|
+
/**
|
|
25
|
+
* 만 나이 — "N세 M개월" 을 `ageStr` 로 적는다. 못 읽으면 '-'.
|
|
26
|
+
*
|
|
27
|
+
* **문자열을 직접 쪼갠다 — `new Date()` 로 읽지 않는다.** 앱은 `normalizeDate` 를 거친
|
|
28
|
+
* `'YYYY.MM.DD'` 를 넘기는데, 이 꼴은 Safari(JavaScriptCore)에서 Invalid Date 라 만나이가
|
|
29
|
+
* 늘 '-' 였다(크롬만 우연히 읽었다 — 2026-09-12 말귀 검수 실측). `'YYYY-MM-DD'` 는 두
|
|
30
|
+
* 엔진 다 읽지만 **UTC 자정**으로 읽어, 서쪽 시간대 기기에서는 하루 앞 날짜가 된다.
|
|
31
|
+
*
|
|
32
|
+
* **오늘은 KST 달력 날짜다** — 기기 시간대가 아니다(`getTodayKst`). 저장소의 날짜는
|
|
33
|
+
* KST 하나로 읽는다(date.ts 머리 참고).
|
|
34
|
+
*
|
|
35
|
+
* **월말 생일** — 이번 달에 생일에 해당하는 날이 없으면 그 달 말일을 그날로 본다(민법의
|
|
36
|
+
* 말일 규칙과 같은 결). 1/31생은 2/28 에 한 달을 채우고, 2/29생은 평년 2/28 에 한 살을 먹는다.
|
|
37
|
+
* 생일이 오늘보다 뒤면 '-'.
|
|
38
|
+
*/
|
|
12
39
|
export function calcAge(birthDate, ageStr) {
|
|
13
40
|
if (!birthDate)
|
|
14
41
|
return '-';
|
|
15
|
-
const
|
|
16
|
-
|
|
42
|
+
const b = 날짜쪼개기(birthDate);
|
|
43
|
+
const t = 날짜쪼개기(getTodayKst());
|
|
44
|
+
if (!b || !t)
|
|
17
45
|
return '-';
|
|
18
|
-
|
|
19
|
-
let
|
|
20
|
-
|
|
21
|
-
//
|
|
22
|
-
if (
|
|
46
|
+
let years = t.y - b.y;
|
|
47
|
+
let months = t.m - b.m;
|
|
48
|
+
// 일(day)까지 비교해야 함 — 월만 비교하면 생일이 아직 안 지난 달엔 나이가 1살 많게 나온다.
|
|
49
|
+
// 이번 달에 그 날이 없으면 말일이 그날이다.
|
|
50
|
+
if (t.d < Math.min(b.d, 말일(t.y, t.m)))
|
|
23
51
|
months--;
|
|
24
52
|
if (months < 0) {
|
|
25
53
|
years--;
|
|
26
54
|
months += 12;
|
|
27
55
|
}
|
|
56
|
+
if (years < 0)
|
|
57
|
+
return '-';
|
|
28
58
|
return ageStr(years, months);
|
|
29
59
|
}
|
|
30
60
|
export function formatId(id) {
|
package/dist/utils.cjs.js
CHANGED
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
\uC124\uCE58 \uBA85\uB839\uC5B4 (\uC2A4\uD1A0\uB9AC\uC9C0 SDK \uBBF8\uC124\uCE58 \uC2DC):
|
|
18
18
|
npm install @supabase/supabase-js
|
|
19
19
|
pnpm add @supabase/supabase-js
|
|
20
|
-
`),this.name="StorageNotConfiguredError"}};function Tt(e){yt(e)}function At(e,n){if(!e)return null;const t=ee();return t?.resolvePath?t.resolvePath(e,n):n?`${n}/${e}.mp3`:null}async function ln(e){if(!e)return!1;const n=ee();if(!n)throw new $e("fileExists");if(n.exists)return n.exists(e);try{return await n.resolveUrl(e)!==null}catch{return!1}}async function cn(e){if(!e)return null;const n=ee();if(!n)throw new $e("getSignedOrPublicUrl");try{return await n.resolveUrl(e)}catch{return null}}async function pt(e){const n=ee();if(!n)throw new $e("downloadSound");return n.download(e)}function wt(){return ee()?.noiseBaseUrl??"/sounds/noise"}const ve="__ihab_core_tts_config__";function bt(e){globalThis[ve]=e}function Bt(){return globalThis[ve]?.urlResolver??null}function _t(){return globalThis[ve]?.fallbackUrlResolver??null}const Nt=new Map;function Lt(){Nt.clear()}const Cn="__ihab_core_pronunciation_resolver__";function Rt(e){globalThis[Cn]=e}function Ot(){return globalThis[Cn]??null}let ne=null;const gn=new WeakMap;function jt(){if(ne)return ne;try{const e=window.AudioContext||window.webkitAudioContext;return e?(ne=new e,ne):null}catch{return null}}function kt(){try{ne?.resume()}catch{}}function It(e){if(!e)return null;const n=gn.get(e);if(n)return n;const t=jt();if(!t)return null;try{const o=t.createMediaElementSource(e),r=t.createAnalyser();return r.fftSize=1024,r.smoothingTimeConstant=.6,o.connect(r),o.connect(t.destination),gn.set(e,r),r}catch{return null}}function Pt(e,n){e.getFloatTimeDomainData(n);let t=0;for(let o=0;o<n.length;o++){const r=n[o];t+=r*r}return Math.sqrt(t/n.length)}const dn="__ihab_core_image_config__";function Mt(e){globalThis[dn]=e}function fn(){return globalThis[dn]??null}const te="word_image_existence_map_v1";let I=null;const Te=new Map;function oe(){if(I)return I;try{const e=typeof localStorage<"u"?localStorage.getItem(te):null;I=e?JSON.parse(e):{}}catch{I={}}return I}let Ge=null;function $t(){Ge||(Ge=setTimeout(()=>{Ge=null;try{typeof localStorage<"u"&&I&&localStorage.setItem(te,JSON.stringify(I))}catch{}},200))}function Ae(e,n){return`${e}_${n??1}`}async function hn(e,n){const t=oe(),o=Ae(e,n);if(o in t)return t[o];if(Te.has(o))return Te.get(o);const r=fn();if(!r)return!1;const i=r(e,n);if(!i)return!1;const u=fetch(i,{method:"HEAD",signal:AbortSignal.timeout(8e3)}).then(a=>a.ok).catch(()=>!1).then(a=>(t[o]=a,$t(),Te.delete(o),a));return Te.set(o,u),u}function vt(e,n){const t=oe(),o=Ae(e,n);return o in t?t[o]:void 0}async function Gt(e,n={}){const{force:t=!1,concurrency:o=16,onProgress:r}=n,i=oe(),u=t?Array.from(new Set(e)):Array.from(new Set(e)).filter(l=>!(Ae(l)in i));let a=0;if(u.length>0){let l=0;const s=Array.from({length:Math.min(o,u.length)},async()=>{for(;l<u.length;){const C=l++,c=u[C],g=Ae(c);if(!t&&g in i){a++,r?.(a,u.length);continue}try{await hn(c)}catch{}a++,r?.(a,u.length)}});await Promise.all(s)}try{typeof localStorage<"u"&&I&&localStorage.setItem(te,JSON.stringify(I))}catch{}return{checked:u.length,cached:Object.keys(i).length,total:e.length}}function Ft(){const e=oe(),n=Object.values(e);return n.length===0?null:{total:n.length,exists:n.filter(Boolean).length}}function xt(e){const n=oe();Object.assign(n,e);try{typeof localStorage<"u"&&localStorage.setItem(te,JSON.stringify(n))}catch{}}function Wt(){I={};try{typeof localStorage<"u"&&localStorage.removeItem(te)}catch{}}const p=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],_=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],L=["","\u3131","\u3132","\u3133","\u3134","\u3135","\u3136","\u3137","\u3139","\u313A","\u313B","\u313C","\u313D","\u313E","\u313F","\u3140","\u3141","\u3142","\u3144","\u3145","\u3146","\u3147","\u3148","\u314A","\u314B","\u314C","\u314D","\u314E"];function h(e){if(!e)return null;const n=e.charCodeAt(0)-44032;return n<0||n>=11172?null:{cho:Math.floor(n/588),jung:Math.floor(n%588/28),jong:n%28}}function Ht(){const e=new Map;return n=>{let t=e.get(n);return t||(t=[...n].map(o=>h(o)),e.set(n,t)),t}}function H(e,n,t=0){return String.fromCharCode(44032+(e*21+n)*28+t)}function Yt(e,n){if(!e||!n||e===n||e.length!==n.length)return"random";let t=0,o=null;for(let r=0;r<e.length;r++){const i=h(e[r]),u=h(n[r]);if(!i||!u)return"random";if(i.cho===u.cho&&i.jung===u.jung&&i.jong===u.jong)continue;t++;const a=i.cho!==u.cho,l=i.jung!==u.jung,s=i.jong!==u.jong;(a?1:0)+(l?1:0)+(s?1:0)>1?o="multi":a?o="cho":l?o="jung":o="jong"}return t!==1?"random":o==="cho"?"cho":o==="jung"?"jung":o==="jong"?"jong":"random"}function Sn(e){const n=h(e[0]||"");return n?p[n.cho]:""}function mn(e){return[...e].map(n=>{const t=h(n);return t?p[t.cho]:n}).join("")}function Dn(e){return!!e&&[...e].every(n=>p.includes(n))}function Kt(e,n){return n?Dn(n)?mn(e).includes(n):e.toLowerCase().includes(n.toLowerCase()):!0}function pe(e,n){if(!n)return!0;const t=[...n],o=a=>p.includes(a),r=a=>_.includes(a),i=t.map(a=>o(a)?"cho":r(a)?"jung":h(a)?"syl":"other");if(i.includes("other"))return e.includes(n);const u=[...e];for(let a=0;a+t.length<=u.length;a++){let l=!0;for(let s=0;s<t.length;s++){const C=u[a+s],c=i[s];if(c==="cho"){if(Sn(C)!==t[s]){l=!1;break}}else if(c==="jung"){const g=h(C);if(!g||_[g.jung]!==t[s]){l=!1;break}}else{const g=h(t[s]);if(g&&g.jong===0){const S=h(C);if(!S||S.cho!==g.cho||S.jung!==g.jung){l=!1;break}}else if(C!==t[s]){l=!1;break}}}if(l)return!0}return!1}const Fe={3:["\u3131","\u3145"],5:["\u3134","\u3148"],6:["\u3134","\u314E"],9:["\u3139","\u3131"],10:["\u3139","\u3141"],11:["\u3139","\u3142"],12:["\u3139","\u3145"],13:["\u3139","\u314C"],14:["\u3139","\u314D"],15:["\u3139","\u314E"],18:["\u3142","\u3145"]},En=Object.fromEntries(Object.entries(Fe).map(([e,n])=>[n.join(""),L[Number(e)]]));function Ut(e,n){if(!e||!n)return!1;for(const t of e){const o=h(t);if(o&&p[o.cho]===n)return!0}return!1}function Vt(e,n){if(!e||!n)return!1;for(const t of e){const o=h(t);if(o&&_[o.jung]===n)return!0}return!1}function Jt(e,n){if(!e||!n)return!1;for(const t of e){const o=h(t);if(!o||o.jong<=0)continue;if(L[o.jong]===n)return!0;const r=Fe[o.jong];if(r&&r.includes(n))return!0}return!1}function qt(e){if(!e)return 0;let n=0;for(const t of e)h(t)&&n++;return n}function Qt(e){if(!e)return!1;let n=!1;for(const t of e){const o=h(t);if(o&&(n=!0,o.jong>0))return!1}return n}function zt(e,n){if(e.jong<=0)return!1;if(n.includes(L[e.jong]))return!0;const t=Fe[e.jong];return!!t&&t.some(o=>n.includes(o))}function Zt(e,n,t){if(!e)return!1;const o=[...e],r=i=>{const u=h(o[i]);if(!u||n.cho&&!n.cho.includes(p[u.cho])||n.jung&&!n.jung.includes(_[u.jung]))return!1;if(n.jongNone){if(u.jong>0)return!1}else if(n.jong&&!zt(u,n.jong))return!1;return!0};if(t==="head")return r(0);if(t==="tail")return r(o.length-1);if(t==="mid"){for(let i=1;i<o.length-1;i++)if(r(i))return!0;return!1}for(let i=0;i<o.length;i++)if(r(i))return!0;return!1}function yn(e){return e.includes(",")||e.includes("_")}function Tn(e){if(e==="")return[{kind:"any"}];if(e.includes("_")){const n=[...e];if(n.length>4)return[{kind:"invalid"}];const t=n[0]??"_",o=n[1]??"_";let r=n.slice(2).join("");if(r.length===2){const i=En[r];if(!i)return[{kind:"invalid"}];r=i}return[{kind:"template",cho:t,jung:o,jong:r||"_"}]}return[...e].map(n=>h(n)?{kind:"syllable",ch:n}:p.includes(n)?{kind:"cho",jamo:n}:_.includes(n)?{kind:"jung",jamo:n}:{kind:"invalid"})}function Xt(e,n){switch(n.kind){case"any":return!0;case"syllable":{const t=h(n.ch);if(!t)return e===n.ch;if(t.jong===0){const o=h(e);return!!o&&o.cho===t.cho&&o.jung===t.jung}return e===n.ch}case"cho":{const t=h(e);return!!t&&p[t.cho]===n.jamo}case"jung":{const t=h(e);return!!t&&_[t.jung]===n.jamo}case"template":{const t=h(e);return!(!t||n.cho!=="_"&&p[t.cho]!==n.cho||n.jung!=="_"&&_[t.jung]!==n.jung||n.jong!=="_"&&L[t.jong]!==n.jong)}case"invalid":return!1}}function An(e,n){const t=n.split(",").flatMap(r=>Tn(r.trim()));if(t.length===0)return!0;const o=[...e];if(o.length<t.length)return!1;for(let r=0;r+t.length<=o.length;r++)if(t.every((i,u)=>Xt(o[r+u],i)))return!0;return!1}function eo(e){const n=e.split(",").flatMap(i=>Tn(i.trim())),t=new Set,o=new Set,r=new Set;for(const i of n)switch(i.kind){case"cho":t.add(i.jamo);break;case"jung":o.add(i.jamo);break;case"template":i.cho!=="_"&&t.add(i.cho),i.jung!=="_"&&o.add(i.jung),i.jong!=="_"&&r.add(i.jong);break;case"syllable":{const u=h(i.ch);u&&(t.add(p[u.cho]),o.add(_[u.jung]),u.jong!==0&&r.add(L[u.jong]));break}}return t.size===0&&o.size===0&&r.size===0?null:{cho:t.size?[...t]:null,jung:o.size?[...o]:null,jong:r.size?[...r]:null}}function no(e){return!!h(e)||p.includes(e)||_.includes(e)}function to(e){const n=e.trim();if(!n)return{ok:!0};for(const t of n.split(",")){const o=t.trim();if(o!==""){if(o.includes("_")){const r=[...o];if(r.length>4)return{ok:!1};const i=r[0],u=r[1],a=r.slice(2).join(""),l=i===void 0||i==="_"||p.includes(i),s=u===void 0||u==="_"||_.includes(u),C=a===""||a==="_"||L.filter(Boolean).includes(a)||!!En[a];if(l&&s&&C)continue;return{ok:!1}}if(![...o].every(no))return{ok:!1}}}return{ok:!0}}p.length,_.length,L.length;function oo(e,n){const t=n.trim();if(!t||!/[^\s,_]/.test(t))return e;if(yn(t))return e.filter(u=>An(u.word,t));const o=e.filter(u=>pe(u.word,t)||pe(u.pronunciation??"",t)),r=[...t].length,i=u=>!!u&&pe(u.slice(0,r),t);return o.map(u=>({w:u,rank:i(u.word)||i(u.pronunciation??"")?0:1})).sort((u,a)=>u.rank-a.rank).map(u=>u.w)}const xe="word_pair_index_v2",We="word_pair_index_sig_v2";let P=null,ue=null;function pn(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(xe),n=localStorage.getItem(We);return!e||!n?null:{index:JSON.parse(e),sig:n}}catch{return null}}function uo(e,n){try{if(typeof localStorage>"u")return;localStorage.setItem(xe,JSON.stringify(e)),localStorage.setItem(We,n)}catch{}}function ro(e){const n=e.map(o=>`${o.word}|${o.pron??""}`).sort();let t=0;for(const o of n)for(let r=0;r<o.length;r++)t=(t<<5)-t+o.charCodeAt(r)|0;return`${n.length}-${t}`}async function io(e,n){const t=new Set,o=[];for(const s of e){if(!s.word||t.has(s.word))continue;const C=s.pron||s.word,c=Array.from(C).map(h);c.some(g=>g===null)||c.length===Array.from(s.word).length&&(t.add(s.word),o.push({word:s.word,syls:c}))}const r={},i=o.length,u=new Map;for(const s of o){const C=s.syls.length;u.has(C)||u.set(C,[]),u.get(C).push(s)}let a=0;const l=["cho","jung","jong"];for(const s of u.values()){const C=s[0].syls.length;for(let c=0;c<C;c++)for(const g of l){const S=new Map;for(const m of s){let D="";for(let f=0;f<C;f++){f>0&&(D+="~");const d=m.syls[f];f===c?g==="cho"?D+=`*:${d.jung}:${d.jong}`:g==="jung"?D+=`${d.cho}:*:${d.jong}`:D+=`${d.cho}:${d.jung}:*`:D+=`${d.cho}:${d.jung}:${d.jong}`}let E=S.get(D);E||(E=[],S.set(D,E)),E.push(m)}for(const m of S.values())if(!(m.length<2))for(let D=0;D<m.length;D++){const E=m[D];for(let f=D+1;f<m.length;f++){const d=m[f];E.syls[c][g]!==d.syls[c][g]&&(r[E.word]||(r[E.word]={cho:[],jung:[],jong:[]}),r[d.word]||(r[d.word]={cho:[],jung:[],jong:[]}),r[E.word][g].push(d.word),r[d.word][g].push(E.word))}}}a+=s.length,n?.(a,i),await new Promise(c=>setTimeout(c,0))}return i>0&&n?.(i,i),r}async function ao(e,n={}){const t=ro(e);if(!n.force){if(P&&ue===t)return P;const r=pn();if(r&&r.sig===t)return P=r.index,ue=t,P}const o=await io(e,n.onProgress);return P=o,ue=t,uo(o,t),o}function wn(){if(P)return P;const e=pn();return e?(P=e.index,ue=e.sig,P):null}function so(){P=null,ue=null;try{typeof localStorage<"u"&&(localStorage.removeItem(xe),localStorage.removeItem(We))}catch{}}const He={cho:p,jung:_,jong:L},O=e=>Array.isArray(e)?e.length>0:!!e;function Ye(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;t++){const o=e[t],r=n[t];if(!(!o||!r)&&(o.cho!==r.cho&&p[o.cho]==="\u3147"!=(p[r.cho]==="\u3147")||o.jong!==r.jong&&o.jong===0!=(r.jong===0)))return!0}return!1}function bn(e,n,t){const o=t.pronOf(e),r=t.decompOf,i=t.sameStructureOnly&&r?r(o):null,u=[];for(const a of n)a!==e&&(t.okSet&&!t.okSet.has(a)||t.pronOf(a)!==o&&(i&&r&&Ye(i,r(t.pronOf(a)))||u.push(a)));return u}function lo(e,n,t){const o=n?.[e];if(!o)return[];const r=t.kind?o[t.kind]??[]:[...o.cho??[],...o.jung??[],...o.jong??[]];return bn(e,r,t)}function co(e,n,t,o,r,i,u){const a=["cho","jung","jong"].filter(g=>O(e[g])),l={};for(const g of a){const S=e[g];l[g]=new Set(Array.isArray(S)?S:[S])}const s=r==="pron",C=new Map;for(const g of n){const S=t(i(g));if(S.some(f=>!f))continue;let m=S;if(!s&&(m=t(g),m.length!==S.length||m.some(f=>!f)))continue;const D=S.length,E=C.get(D);E?E.push({w:g,dPron:S,dPos:m}):C.set(D,[{w:g,dPron:S,dPos:m}])}const c=new Map;for(const[g,S]of C){const m=new Map,D=(E,f)=>{const d=E.dPos[f];return d!=null&&a.every(y=>l[y].has(He[y][d[y]]))};for(const E of S){let f;if(u==="head")f=D(E,0)?0:-1;else if(u==="tail")f=D(E,g-1)?g-1:-1;else if(u==="mid"){f=-1;for(let y=1;y<g-1;y++)if(D(E,y)){f=y;break}}else f=E.dPos.findIndex(y=>y!=null&&a.every(T=>l[T].has(He[T][y[T]])));if(f<0)continue;const d=m.get(f);d?d.push(E):m.set(f,[E])}for(const[E,f]of m){const d=new Set(a.map(w=>E+":"+w)),y=w=>{let B="";for(let b=0;b<g;b++){const j=w[b];for(const W of["cho","jung","jong"])B+=(d.has(b+":"+W)?"*":j[W])+"."}return B},T=new Map;for(const w of S){const B=y(w.dPron),b=T.get(B);b?b.push(w):T.set(B,[w])}for(const w of f){const B=T.get(y(w.dPron))??[],b=[];for(const j of B){if(j.w===w.w)continue;let W=!0;for(const A of a){const v=w.dPron[E][A],K=j.dPron[E][A];if(K===v){W=!1;break}if(s&&l[A].has(He[A][K])){W=!1;break}}W&&(o&&Ye(w.dPron,j.dPron)||b.push(j.w))}c.set(w.w,b)}}}return c}const we=0,Bn=1,U=2,Ke=3,Co=4,be=5,Ue=6,Be=7,go=8,_n=9,re=10,fo=11,ie=12,ho=13,ae=14,_e=15,Ne=16,se=17,So=18,M=0,G=1,mo=3,V=4,Ve=5,Je=6,$=7,N=8,Nn=9,Ln=10,Le=11,Rn=12,qe=13,Re=15,Oe=16,F=17,On=18,Qe=21,jn=27,Do=20,Eo={1:we,2:Bn,4:U,7:Ke,8:be,16:Ue,17:Be,19:_n,20:re,22:ie,23:ae,24:_e,25:Ne,26:se},yo={[mo]:[G,re],[Ve]:[V,ie],[Nn]:[N,we],[Ln]:[N,Ue],[Le]:[N,Be],[Rn]:[N,re],[qe]:[N,Ne],14:[N,se],[On]:[F,re]},To={[Je]:U,[Re]:be},ze={2:G,24:G,3:G,9:G,5:V,6:V,19:$,20:$,22:$,23:$,25:$,27:$,11:N,12:N,13:N,15:N,10:Oe,14:F,18:F,26:F},kn={[we]:_e,[Ke]:Ne,[Be]:se,[ie]:ae},In={[we]:Bn,[Ke]:Co,[Be]:go,[_n]:re,[ie]:ho},Ao=new Set([Ve,Ln,Le,Rn,qe,Re,On]),po=new Set(["\uBC1F"]);function wo(e){const n=(e??"").trim();if(!n)return"";const t=[...n],o=t.map(h);if(o.some(i=>i===null))return n;const r=o;for(let i=0;i<r.length;i++){const u=r[i],a=r[i+1],l=u.jong;if(!a){u.jong=ze[u.jong]??u.jong;break}if(u.jong===M)continue;if(a.cho===fo){if(a.jung===Do){if(u.jong===$){u.jong=M,a.cho=ie;continue}if(u.jong===25){u.jong=M,a.cho=ae;continue}if(u.jong===qe){u.jong=N,a.cho=ae;continue}}if(u.jong===jn){u.jong=M;continue}const C=To[u.jong];if(C!==void 0){u.jong=M,a.cho=C;continue}const c=yo[u.jong];if(c){u.jong=c[0],a.cho=c[1];continue}const g=Eo[u.jong];g!==void 0&&(u.jong=M,a.cho=g);continue}if((u.jong===jn||u.jong===Je||u.jong===Re)&&kn[a.cho]!==void 0){a.cho=kn[a.cho],u.jong=u.jong===Je?V:u.jong===Re?N:M;continue}if(a.cho===So){if(u.jong===Ve){u.jong=V,a.cho=ae;continue}if(u.jong===Nn){u.jong=N,a.cho=_e;continue}if(u.jong===Le){u.jong=N,a.cho=se;continue}const C=ze[u.jong]??u.jong;if(C===G){u.jong=M,a.cho=_e;continue}if(C===$){u.jong=M,a.cho=Ne;continue}if(C===F){u.jong=M,a.cho=se;continue}}let s=ze[u.jong]??u.jong;l===Le&&po.has(t[i])&&(s=F),u.jong=s,In[a.cho]!==void 0&&(s===G||s===$||s===F||Ao.has(l))&&(a.cho=In[a.cho]),(a.cho===U||a.cho===Ue)&&(u.jong===G?u.jong=Qe:u.jong===$?u.jong=V:u.jong===F&&(u.jong=Oe)),a.cho===be?u.jong===V?u.jong=N:u.jong===Oe||u.jong===Qe?a.cho=U:u.jong===G?(u.jong=Qe,a.cho=U):u.jong===F&&(u.jong=Oe,a.cho=U):u.jong===N&&a.cho===U&&(a.cho=be)}return r.map(i=>H(i.cho,i.jung,i.jong)).join("")}const bo={\u3131:"\u3131",\u3132:"\u3131",\u314B:"\u3131",\u3133:"\u3131",\u313A:"\u3131",\u3134:"\u3134",\u3135:"\u3134",\u3136:"\u3134",\u3137:"\u3137",\u3145:"\u3137",\u3146:"\u3137",\u3148:"\u3137",\u314A:"\u3137",\u314C:"\u3137",\u314E:"\u3137",\u3139:"\u3139",\u313C:"\u3139",\u313D:"\u3139",\u313E:"\u3139",\u3140:"\u3139",\u3141:"\u3141",\u313B:"\u3141",\u3142:"\u3142",\u314D:"\u3142",\u313F:"\u3142",\u3144:"\u3142",\u3147:"\u3147"};function Pn(e){return bo[e]??e}const q=/[ㄱ-ㅎ]/,Bo=/[ㅏ-ㅣ]/;function le(e){for(let n=e.length-1;n>=0;n--){const t=e[n],o=t.charCodeAt(0);if(o>=44032&&o<=55203||q.test(t)||Bo.test(t))return t}return null}function Mn(e){const n=le(e);if(!n)return"\uAC00";const t=n.charCodeAt(0);return t>=44032&&t<=55203?(t-44032)%28!==0?"\uC774":"\uAC00":q.test(n)?"\uC774":"\uAC00"}function _o(e){return`${e}${Mn(e)}`}function $n(e){const n=le(e);if(!n)return"\uB97C";const t=n.charCodeAt(0);return t>=44032&&t<=55203?(t-44032)%28!==0?"\uC744":"\uB97C":q.test(n)?"\uC744":"\uB97C"}function No(e){return`${e}${$n(e)}`}function vn(e){const n=le(e);if(!n)return"\uB294";const t=n.charCodeAt(0);return t>=44032&&t<=55203?(t-44032)%28!==0?"\uC740":"\uB294":q.test(n)?"\uC740":"\uB294"}function Lo(e){return`${e}${vn(e)}`}function Gn(e){const n=le(e);if(!n)return"\uC640";const t=n.charCodeAt(0);return t>=44032&&t<=55203?(t-44032)%28!==0?"\uACFC":"\uC640":q.test(n)?"\uACFC":"\uC640"}function Ro(e){return`${e}${Gn(e)}`}function Fn(e){const n=le(e);if(!n)return"\uB85C";const t=n.charCodeAt(0);if(t>=44032&&t<=55203){const o=(t-44032)%28;return o===0||o===8?"\uB85C":"\uC73C\uB85C"}return n==="\u3139"?"\uB85C":q.test(n)?"\uC73C\uB85C":"\uB85C"}function Oo(e){return`${e}${Fn(e)}`}function jo(e,n,t){const o=e.slice(),[r]=o.splice(n,1);return o.splice(t,0,r),o}function R(e,n=Math.random){const t=e.slice();for(let o=t.length-1;o>0;o--){const r=Math.floor(n()*(o+1));[t[o],t[r]]=[t[r],t[o]]}return t}function x(e,n,t=Math.random){return!Array.isArray(e)||e.length===0||n<=0?[]:n>=e.length?R(e,t):R(e,t).slice(0,n)}const xn={SAME_SOUND_PICK:{difficulty:!0,choseong:!0,group:"discrimination"},SAME_OR_DIFF:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_SAME:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_INCLUDED:{difficulty:!0,choseong:!0,group:"discrimination"},STARTS_WITH_SAME_SOUND:{difficulty:!1,choseong:!0,group:"discrimination"},LISTEN_AND_REMEMBER_ORDER:{difficulty:!1,choseong:!0,group:"attention"},MERGE_2_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_2_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},DROP_1_FROM_2SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_1_FROM_3SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_PART_FROM_COMPOUND:{difficulty:!1,choseong:!0,group:"deletion"},DROP_FINAL_CONSONANT_FROM_1SYLL:{difficulty:!1,choseong:!0,group:"deletion"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{difficulty:!1,choseong:!0,group:"deletion"},CHANGE_1_SYLL_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_SYLL_IN_3SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_1SYLL:{difficulty:!1,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"}};function ko(e){const n=e?xn[e]?.group:void 0;return n==="synthesis"||n==="deletion"||n==="substitution"?n:null}const Io=p.indexOf("\u3147"),Wn={DROP_FINAL_CONSONANT_FROM_1SYLL:{syllables:1,syllable:e=>e.jong>0},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{syllables:1,syllable:e=>e.jong===0&&e.cho!==Io},MERGE_2_SYLLABLES:{syllables:2,syllable:()=>!0},MERGE_3_SYLLABLES:{syllables:3,syllable:()=>!0},MERGE_2_PHONEMES:{syllables:1,syllable:e=>e.jong===0},MERGE_3_PHONEMES:{syllables:1,syllable:e=>e.jong>0}},Po=new Set([]);function Mo(e){return e in Wn}function $o(e,n){const t=Wn[e];if(!t)return!0;const o=[...n];if(o.length!==t.syllables)return!1;const r=h(o[0]);return!!r&&t.syllable(r)}function vo(e){return Po.has(e)}function Go(e){const n=e.charCodeAt((e.length||1)-1)||0;return n<44032||n>55203||(n-44032)%28===0?"\uC640":"\uACFC"}function Ze(e){const n=e.charCodeAt((e.length||1)-1)||0;return n<44032||n>55203||(n-44032)%28===0?"\uB97C":"\uC744"}function Hn(e){const n=e.charCodeAt((e.length||1)-1)||0;if(n<44032||n>55203)return"\uB85C";const t=(n-44032)%28;return t===0||t===8?"\uB85C":"\uC73C\uB85C"}function Yn(e){const n=e.charAt((e.length||1)-1),t=n.charCodeAt(0)||0;return t>=44032&&t<=55203?(t-44032)%28===0?"\uAC00":"\uC774":/[ㄱ-ㅎ]/.test(n)?"\uC774":"\uAC00"}const Kn={\u3131:"\uAE30\uC5ED",\u3132:"\uC30D\uAE30\uC5ED",\u3134:"\uB2C8\uC740",\u3137:"\uB514\uADFF",\u3138:"\uC30D\uB514\uADFF",\u3139:"\uB9AC\uC744",\u3141:"\uBBF8\uC74C",\u3142:"\uBE44\uC74D",\u3143:"\uC30D\uBE44\uC74D",\u3145:"\uC2DC\uC637",\u3146:"\uC30D\uC2DC\uC637",\u3147:"\uC774\uC751",\u3148:"\uC9C0\uC752",\u3149:"\uC30D\uC9C0\uC752",\u314A:"\uCE58\uC753",\u314B:"\uD0A4\uC754",\u314C:"\uD2F0\uC755",\u314D:"\uD53C\uC756",\u314E:"\uD788\uC757",\u3133:"\uAE30\uC5ED\uC2DC\uC637",\u3135:"\uB2C8\uC740\uC9C0\uC752",\u3136:"\uB2C8\uC740\uD788\uC757",\u313A:"\uB9AC\uC744\uAE30\uC5ED",\u313B:"\uB9AC\uC744\uBBF8\uC74C",\u313C:"\uB9AC\uC744\uBE44\uC74D",\u313D:"\uB9AC\uC744\uC2DC\uC637",\u313E:"\uB9AC\uC744\uD2F0\uC755",\u313F:"\uB9AC\uC744\uD53C\uC756",\u3140:"\uB9AC\uC744\uD788\uC757",\u3144:"\uBE44\uC74D\uC2DC\uC637",\u314F:"\uC544",\u3150:"\uC560",\u3151:"\uC57C",\u3152:"\uC598",\u3153:"\uC5B4",\u3154:"\uC5D0",\u3155:"\uC5EC",\u3156:"\uC608",\u3157:"\uC624",\u3158:"\uC640",\u3159:"\uC65C",\u315A:"\uC678",\u315B:"\uC694",\u315C:"\uC6B0",\u315D:"\uC6CC",\u315E:"\uC6E8",\u315F:"\uC704",\u3160:"\uC720",\u3161:"\uC73C",\u3162:"\uC758",\u3163:"\uC774"};function Fo(e){if([...e].length!==1)return[e];const n=h(e);if(!n)return[e];const t=[p[n.cho],_[n.jung]];return n.jong!==0&&t.push(L[n.jong]),t}function Un(e,n=!1){const t=e.filter(Boolean);if(t.length<2)return"";const o=a=>Kn[a]??a,r=t.slice(0,-1).map(a=>`"${a}"${Go(o(a))}`).join(" "),i=t[t.length-1],u=`"${i}"${Ze(o(i))}`;return`${r} ${u} \uD569\uCE58\uBA74 \uC5B4\uB5A4 ${n?"\uC18C\uB9AC":"\uB2E8\uC5B4"}\uAC00 \uB418\uB098\uC694?`}function xo(e,n){return Un(n,e==="MERGE_2_PHONEMES"||e==="MERGE_3_PHONEMES")}function Wo(e,n){const t=String(n?.word??n?.original??""),o=String(n?.changedFrom??""),r=String(n?.changedTo??"");return e==="CHANGE_1_PHONEME_IN_1SYLL"?`"${t}"${Ze(t)} "${r}"${Hn(r)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`:`"${t}"\uC5D0\uC11C "${o}"${Ze(o)} "${r}"${Hn(r)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`}function Ho(e,n){const t=String(n?.word??n?.original??n?.base??""),o=String(n?.dropped??"");if(e==="DROP_FINAL_CONSONANT_FROM_1SYLL")return`"${t}"\uC5D0\uC11C \uBC1B\uCE68\uC774 \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`;if(e==="REMOVE_CONSONANT_AND_IDENTIFY_PHONEME"){const r=String(n?.missingConsonant??"");return`"${t}"\uC5D0\uC11C "${r}"${Yn(r)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB418\uB098\uC694?`}return`"${t}"\uC5D0\uC11C "${o}"${Yn(o)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`}function Yo(e,n,t){switch(ko(e)){case"synthesis":return xo(e,t);case"substitution":return Wo(e,n);case"deletion":return Ho(e,n);default:return""}}function Ko(e){return e.replace(/"([ㄱ-ㅣ])"(으로|와|과|을|를|이|가|은|는|로)?/g,(n,t,o)=>{const r=Kn[t];if(!r)return n;if(!o)return`"${r}"`;const i=(r.charCodeAt(r.length-1)-44032)%28,u=i!==0;let a=o;return o==="\uC640"||o==="\uACFC"?a=u?"\uACFC":"\uC640":o==="\uC744"||o==="\uB97C"?a=u?"\uC744":"\uB97C":o==="\uC774"||o==="\uAC00"?a=u?"\uC774":"\uAC00":o==="\uC740"||o==="\uB294"?a=u?"\uC740":"\uB294":(o==="\uC73C\uB85C"||o==="\uB85C")&&(a=i===0||i===8?"\uB85C":"\uC73C\uB85C"),`"${r}"${a}`})}const Uo=e=>e==null?[]:Array.isArray(e)?e:[e];function Vn(e){if([...e].length!==1)return"";const n=h(e);if(!n)return"";const t=Pn(L[n.jong]),o=t===""?0:L.indexOf(t);return H(n.cho,n.jung,o<0?0:o)}function Xe(e,n){return n.get(e)||Vn(e)||e}function je(e){return e?O(e.cho)?"cho":O(e.jung)?"jung":O(e.jong)?"jong":null:null}function J(e,n){const t=(o,r)=>!O(o)||Uo(o).includes(r);return t(n.cho,p[e.cho])&&t(n.jung,_[e.jung])&&t(n.jong,L[e.jong])}function Q(e,n,t){const o=[...e];if(t!=="pron")return o.map(i=>h(i));const r=[...n.get(e)||e];return r.length!==o.length?o.map(i=>h(i)):r.map(i=>h(i))}function z(e,n,t,o,r){const i=n==="cho"?p:n==="jung"?_:L,u=e[n],a=[],l=new Set([Xe(t,r)]),s=R(i.map((C,c)=>c).filter(C=>C!==u&&(n!=="cho"||i[C]!=="\u3147")&&(n!=="jong"||C!==0)));for(const C of s){if(a.length>=o)break;const c=n==="cho"?H(C,e.jung,e.jong):n==="jung"?H(e.cho,C,e.jong):H(e.cho,e.jung,C),g=Xe(c,r);l.has(g)||(l.add(g),a.push(c))}return a}function Vo(e,n,t,o,r,i=null){const u=[...e];if(u.length!==2)return null;const a=u.map(c=>h(c));if(a.some(c=>!c))return null;const l=Q(e,t,o);if(l.some(c=>!c))return null;const s=je(n);let C=s&&n?l.map((c,g)=>J(c,n)?g:-1).filter(c=>c>=0):[0,1];if(i!=null&&(C=C.filter(c=>c!==i)),!C.length)return null;for(const c of R(C)){const g=u[c];if(!r.has(g))continue;const S=z(a[c],s??"cho",g,40,t),m=[];for(const D of S)if(D!==g&&r.has(D)&&!m.includes(D)&&m.push(D),m.length>=2)break;if(!(m.length<2))return{question:e,distractors:[g,...m]}}return null}function Jo(e,n,t,o,r,i=null){const u=[...e];if(u.length!==3)return null;const a=u.map(c=>h(c));if(a.some(c=>!c))return null;const l=Q(e,t,o);if(l.some(c=>!c))return null;const s=je(n),C=s&&n?l.map((c,g)=>J(c,n)?g:-1).filter(c=>c>=0):[0,1,2];if(!C.length)return null;for(const c of R(C))for(const g of R([0,1,2].filter(S=>S!==c&&(i==null||S===i)))){const S=[0,1,2].filter(d=>d!==g),m=S.map(d=>u[d]).join("");if(!r.has(m))continue;const D=S.indexOf(c),E=z(a[c],s??"cho",u[c],40,t),f=[];for(const d of E){const y=S.map(w=>u[w]);y[D]=d;const T=y.join("");if(T!==m&&r.has(T)&&!f.includes(T)&&f.push(T),f.length>=2)break}if(!(f.length<2))return{question:e,distractors:[m,...f]}}return null}function qo(e,n,t,o,r,i=null){const u=[...e],a=u.length;if(a<2)return null;const l=[];for(let C=1;C<=a-1;C++)l.push({remain:u.slice(0,C).join(""),dropped:u.slice(C).join(""),droppedEnd:1}),l.push({remain:u.slice(a-C).join(""),dropped:u.slice(0,a-C).join(""),droppedEnd:0});const s=je(n);for(const{remain:C,dropped:c,droppedEnd:g}of R(l)){if(i!=null&&g!==i||C===e||!r.has(C)||!r.has(c))continue;const S=[...C],m=S.map(f=>h(f));if(m.some(f=>!f))continue;const D=Q(C,t,o);if(D.some(f=>!f))continue;const E=s&&n?D.map((f,d)=>J(f,n)?d:-1).filter(f=>f>=0):S.map((f,d)=>d);if(E.length)for(const f of R(E)){const d=z(m[f],s??"cho",S[f],40,t),y=[];for(const T of d){const w=[...S];w[f]=T;const B=w.join("");if(B!==C&&r.has(B)&&!y.includes(B)&&y.push(B),y.length>=2)break}if(y.length>=2)return{question:e,distractors:[C,...y]}}}return null}function Qo(e,n,t,o,r,i=null){if([...e].length!==1)return null;const u=h(t.get(e)||e);if(!u||u.jong===0)return null;const a=H(u.cho,u.jung,0),l=z({cho:u.cho,jung:u.jung,jong:0},"cho",a,2,t);return l.length<2?null:{question:e,distractors:[a,...l]}}const en=p.indexOf("\u3147");function zo(e,n,t,o,r,i=null){if([...e].length!==1)return null;const u=h(t.get(e)||e);if(!u||u.jong!==0||u.cho===en)return null;const a=H(en,u.jung,0),l=z({cho:en,jung:u.jung,jong:0},"jung",a,2,t);return l.length<2?null:{question:e,distractors:[a,...l]}}function Zo(e){const n=new Map;for(const t of e){const o=[...t],r=o.length;if(!(r<2||r>3))for(let i=0;i<r;i++){let u=r+"|"+i+"|";for(let l=0;l<r;l++)u+=l===i?"*":o[l];const a=n.get(u);a?a.push(t):n.set(u,[t])}}return n}function Xo(e,n,t,o,r,i=null,u=null,a=2){const l=[...e],s=l.length;if(s<2||s>3)return null;const C=l.map(d=>h(d));if(C.some(d=>!d))return null;const c=Q(e,t,o);if(c.some(d=>!d))return null;const g=d=>t.get(d)??d,S=g(e),m=!!n&&(O(n.cho)||O(n.jung)||O(n.jong)),D=!!u&&(O(u.cho)||O(u.jung)||O(u.jong)),E=d=>{let y=s+"|"+d+"|";for(let T=0;T<s;T++)y+=T===d?"*":l[T];return y};let f;if(i!=null){if(i>=s||m&&!J(c[i],n))return null;f=[i]}else m?f=c.map((d,y)=>J(d,n)?y:-1).filter(d=>d>=0):f=Array.from({length:s},(d,y)=>y);for(const d of R(f)){const y=r.get(E(d))??[],T=[],w=[];for(const A of y){if(A===e)continue;const v=[...A].map(ye=>h(ye)),K=C[d],De=v[d];if(!K||!De)continue;let Ee=0;if(K.cho!==De.cho&&Ee++,K.jung!==De.jung&&Ee++,K.jong!==De.jong&&Ee++,!(Ee<a||g(A)===S))if(D){const ye=Q(A,t,o)[d];ye&&J(ye,u)?T.push(A):w.push(A)}else T.push(A)}if(!T.length)continue;const B=R(T)[0],b=[],j=new Set([S,g(B)]),W=D?w:T.filter(A=>A!==B);for(const A of R(W)){const v=g(A);if(!j.has(v)&&(j.add(v),b.push(A),b.length>=2))break}if(!D&&b.length<2)for(const A of R(y)){if(A===e||A===B)continue;const v=g(A);if(!j.has(v)&&(j.add(v),b.push(A),b.length>=2))break}if(!(b.length<2))return{question:e,distractors:[B,...b]}}return null}function eu(e,n="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958"){if(e instanceof Error)return e.message||n;if(typeof e=="string")return e||n;if(e&&typeof e=="object"){const t=e;for(const o of[t.message,t.error_description,t.error])if(typeof o=="string"&&o)return o}return n}const Jn="\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.";function qn(e){return e?/failed to fetch|load failed|networkerror|network request failed|fetcherror/i.test(e):!1}function nu(e){return qn(e)?Jn:e}function tu(e,n){return e==="id"?void 0:`${e}|${n?"asc":"desc"}`}function ou(e){const[n,t]=e.split("|");return{key:n,asc:t==="asc"}}function uu(e){let n=e==null?"":String(e);return/^[=+\-@\t\r]/.test(n)&&(n=" "+n),/[",\n\r]/.test(n)?`"${n.replaceAll('"','""')}"`:n}function ru(e,n){const t=new Blob(["\uFEFF"+n],{type:"text/csv;charset=utf-8"}),o=URL.createObjectURL(t),r=document.createElement("a");r.href=o,r.download=e,r.click(),URL.revokeObjectURL(o)}const Qn="__ihab_core_word_pool__";function iu(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("wordpool:update"))}function au(e,n){const t=new Map;for(const r of e)t.set(r.word,r);const o={entries:e,pairIndex:n??null,byWord:t};globalThis[Qn]=o,iu()}function zn(){return globalThis[Qn]??null}const Z=globalThis;function nn(e,n){const t=o=>{};try{const o=n();o&&typeof o.catch=="function"&&o.catch(t)}catch(o){t(o)}}function su(e){Z.__ihabTrainingTimeLogger=e}function lu(e){nn("time",()=>Z.__ihabTrainingTimeLogger?.(e))}function cu(e){Z.__ihabTrainingCompletionLogger=e}function Cu(e){nn("completion",()=>Z.__ihabTrainingCompletionLogger?.(e))}function gu(e){Z.__ihabCrosswordLogger=e}function du(e){nn("crossword",()=>Z.__ihabCrosswordLogger?.(e))}function k(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function Zn(e){for(const n of["correct","isCorrect","heard","judgement"])if(typeof e[n]=="boolean")return e[n];return e.score===1?!0:e.score===0?!1:null}function fu(e){return Array.isArray(e)?e.map((n,t)=>{const o=n??{};return{index:t,itemId:k(o.contextCode)??k(o.itemId)??k(o.itemCode)??k(o.id),question:k(o.question)??k(o.sentence)??k(o.word)??k(o.targetSyllable),answer:k(o.answer),selected:k(o.selectedText)??k(o.selected),correct:Zn(o)}}):[]}function hu(e){return e.filter(n=>n.correct===!1)}let Xn=null,et=null,nt=null;function Su(e){Xn=e}function mu(e){et=e}function Du(e){nt=e}async function Eu(e,n){try{return await Xn?.(e,n)??null}catch{return null}}async function yu(){try{return await et?.()??null}catch{return null}}async function Tu(e,n){try{return await nt?.(e,n)??null}catch{return null}}const ke=globalThis;function Au(e){ke.__ihabNoiseSettingsStore=e}async function pu(){try{return await ke.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function wu(e){const n=t=>{};try{const t=ke.__ihabNoiseSettingsStore?.save(e);t&&typeof t.catch=="function"&&t.catch(n)}catch(t){n(t)}}function bu(e){try{ke.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}function Ie(e){const n=new TextEncoder().encode(String(e).normalize("NFC"));let t="";return n.forEach(o=>{t+=o.toString(16).padStart(2,"0")}),t}const Bu=Ie;function _u(e,n){return`${e}/${Ie(n)}.mp3`}function Nu(e={}){const n=e.storagePrefix??"audio-cache",t=e.voice??"ko-f",o=typeof e.speed=="number"?e.speed:1,r=e.filenameSanitizer??Ie;return async function(i){const u=String(i||"").trim();if(!u)return"";const a=`${r(u)}_${t}.mp3`,l=`${n}/${a}`;try{if(await ln(l)){const s=await cn(l);if(s)return s}}catch{}if(e.generator)try{const s=await e.generator(u,l,e);if(s)return s}catch{}try{const s=`/api/tts?word=${encodeURIComponent(u)}&voice=${encodeURIComponent(t)}&speed=${encodeURIComponent(String(o))}`;return await fetch(s,{method:"GET"}),`/audio-cache/${a}`}catch{return`/audio-cache/${a}`}}}async function Lu(e){if(typeof document<"u")try{const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style.position="fixed",n.style.top="0",n.style.left="0",n.style.opacity="0",n.style.pointerEvents="none",document.body.appendChild(n),n.focus(),n.select(),n.setSelectionRange(0,e.length);const t=document.execCommand("copy");if(document.body.removeChild(n),t)return!0}catch{}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}const X="Asia/Seoul";function Ru(e){return new Date(e).toLocaleDateString("ko-KR",{timeZone:X,year:"numeric",month:"short",day:"numeric"})}function Ou(e){return new Date(e).toLocaleString("ko-KR",{timeZone:X,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}function ju(e,n){const t=n.startsWith("ko")?"ko-KR":"en-US";return new Date(e).toLocaleDateString(t,{timeZone:X,year:"numeric",month:"short",day:"numeric"})}function ku(e,n){const t=n.startsWith("ko")?"ko-KR":"en-US";return new Date(e).toLocaleString(t,{timeZone:X,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}function Iu(e){return new Date(e).toLocaleString("ko-KR",{timeZone:X,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}function Pu(e){if(e==null||e==="")return"";const n=e instanceof Date?e:new Date(e);return isNaN(n.getTime())?"":new Intl.DateTimeFormat("en-GB",{timeZone:X,hour:"2-digit",minute:"2-digit",hour12:!1}).format(n)}function tt(){return ce(new Date)}function ce(e){if(e==null||e==="")return"";const n=e instanceof Date?e:new Date(e);return isNaN(n.getTime())?"":new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(n)}function Mu(e,n){if(!e)return"";const t=new Date(e).getTime();if(Number.isNaN(t))return"";const o=Math.max(0,Math.floor((Date.now()-t)/1e3)),r=Math.floor(o/60),i=Math.floor(r/60),u=Math.floor(i/24),a=Math.floor(u/7),l=Math.floor(u/30),s=Math.floor(u/365);return r<1?n("store.time.justNow","\uBC29\uAE08 \uC804"):r<60?n("store.time.minutesAgo",{n:r}):i<24?n("store.time.hoursAgo",{n:i}):u<7?n("store.time.daysAgo",{n:u}):a<5?n("store.time.weeksAgo",{n:a}):u<365?n("store.time.monthsAgo",{n:Math.min(l,11)}):n("store.time.yearsAgo",{n:s})}function $u(e,n={}){const{sep:t=".",pad:o=!0,trailingDot:r=!1,fallback:i="\u2014"}=n;if(!e)return i;const u=ce(e instanceof Date?e:String(e));if(!u)return i;const[a,l,s]=u.split("-"),C=o?l:String(Number(l)),c=o?s:String(Number(s));return`${a}${t}${C}${t}${c}${r?".":""}`}function vu(e){const n=e.replace(/\D/g,"").slice(0,11);return n.startsWith("02")?n.length<=2?n:n.length<=6?`${n.slice(0,2)}-${n.slice(2)}`:`${n.slice(0,2)}-${n.slice(2,n.length-4)}-${n.slice(n.length-4)}`:n.length<=3?n:n.length<=7?`${n.slice(0,3)}-${n.slice(3)}`:`${n.slice(0,3)}-${n.slice(3,n.length-4)}-${n.slice(n.length-4)}`}function Gu(e){if(e){if(/^\d{4}\.\d{2}\.\d{2}$/.test(e))return e;if(/^\d{8}$/.test(e))return`${e.slice(0,4)}.${e.slice(4,6)}.${e.slice(6,8)}`;if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e.replace(/-/g,".");if(/^\d{4}-\d{2}-\d{2}T/.test(e)){const n=new Date(e);return isNaN(n.getTime())?void 0:ce(n).replace(/-/g,".")}}}function Fu(e){if(e)return/^\d{4}\.\d{2}\.\d{2}$/.test(e)?e.replace(/\./g,"-"):e}function xu(e,n){if(!e)return"-";const t=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!t)return e;const o=Number(t[1]),r=Number(t[2]),i=t[1].padStart(2,"0");return r===0?n("date.timeH",{h:o,hh:i,mm:t[2]}):n("date.timeHM",{h:o,hh:i,m:r,mm:t[2]})}function Wu(e){return(e??0).toLocaleString("ko-KR")}const Hu=[{key:"FOOD",label:"\uC74C\uC2DD",icon:"salad",color:"#FF8A65",subs:[{key:"TRKRFD",label:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD"},{key:"MDKRFD",label:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD"},{key:"WRLDFD",label:"\uC138\uACC4\uC758 \uC74C\uC2DD"},{key:"MTRFRT",label:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C"},{key:"GEFDKL",label:"\uC74C\uC2DD \uC0C1\uC2DD"}]},{key:"HLTH",label:"\uAC74\uAC15",icon:"heart",color:"#66BB6A",subs:[{key:"HTETHB",label:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00"},{key:"DISILL",label:"\uBCD1\uACFC \uC9C8\uD658"},{key:"EXCISE",label:"\uC6B4\uB3D9"},{key:"GEHTKL",label:"\uAC74\uAC15\uC0C1\uC2DD"}]},{key:"WETH",label:"\uB0A0\uC528",icon:"sun-medium",color:"#42A5F5",subs:[{key:"GESSKL",label:"\uACC4\uC808\uC0C1\uC2DD"},{key:"SNWRAN",label:"\uB208\uACFC \uBE44"},{key:"WTHFCT",label:"\uC77C\uAE30\uC608\uBCF4"},{key:"GEWTKL",label:"\uB0A0\uC528\uC0C1\uC2DD"}]},{key:"PRSN",label:"\uC778\uBB3C",icon:"user-round",color:"#AB47BC",subs:[{key:"JODYPS",label:"\uC870\uC120\uC2DC\uB300"},{key:"MDKRPS",label:"\uD55C\uAD6D \uADFC\uD604\uB300"},{key:"THKDPS",label:"\uC0BC\uAD6D\uC2DC\uB300"},{key:"WRLART",label:"\uC138\uACC4\uC758 \uC608\uC220\uAC00"},{key:"WRLPSN",label:"\uC138\uACC4\uC758 \uC778\uBB3C"}]},{key:"KRCT",label:"\uD55C\uAD6D\uBB38\uD654",icon:"bow-arrow",color:"#EC407A",subs:[{key:"KRLANG",label:"\uC6B0\uB9AC\uB9D0"},{key:"TRPLCT",label:"\uC804\uD1B5\uB180\uC774"},{key:"HERITG",label:"\uBB38\uD654\uC7AC"},{key:"EVTFES",label:"\uD589\uC0AC\uC640 \uCD95\uC81C"},{key:"GECTKL",label:"\uC0C1\uC2DD"}]},{key:"STRY",label:"\uC774\uC57C\uAE30",icon:"message-circle",color:"#8D6E63",subs:[{key:"FRYTAL",label:"\uB3D9\uD654"},{key:"AMZING",label:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30"},{key:"DAYSTR",label:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30"}]},{key:"LOCA",label:"\uC9C0\uC5ED",icon:"map-pin",color:"#26A69A",subs:[{key:"KRLDMK",label:"\uD55C\uAD6D\uC758 \uBA85\uC18C"},{key:"SELNMK",label:"\uC11C\uC6B8\uC758 \uBA85\uC18C"},{key:"WRDTRB",label:"\uC138\uACC4\uC5EC\uD589"},{key:"NAVIGT",label:"\uAE38 \uCC3E\uAE30"}]},{key:"SOAR",label:"\uC0AC\uD68C\uC640 \uC608\uC220",icon:"landmark",color:"#5C6BC0",subs:[{key:"KRSOCI",label:"\uD55C\uAD6D"},{key:"ECONEW",label:"\uACBD\uC81C\uC640 \uB274\uC2A4"},{key:"GENART",label:"\uC608\uC220"},{key:"GELFKL",label:"\uC0DD\uD65C \uC0C1\uC2DD"}]},{key:"NTSC",label:"\uC790\uC5F0\uACFC \uACFC\uD559",icon:"leaf",color:"#9CCC65",subs:[{key:"ANIMAL",label:"\uB3D9\uBB3C"},{key:"PLANTS",label:"\uC2DD\uBB3C"},{key:"ETHPLT",label:"\uC9C0\uAD6C"},{key:"TOLELC",label:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488"},{key:"GESCKL",label:"\uACFC\uD559\uC0C1\uC2DD"}]},{key:"SPRT",label:"\uC2A4\uD3EC\uCE20",icon:"trophy",color:"#FFCA28",subs:[{key:"INVDSP",label:"\uAC1C\uC778\uACBD\uAE30"},{key:"MARART",label:"\uACA9\uD22C\uAE30"},{key:"TEAMSP",label:"\uB2E8\uCCB4\uACBD\uAE30"},{key:"FOOTBL",label:"\uCD95\uAD6C"},{key:"GESPKL",label:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}]}],Yu=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828"},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30 + 4\uBB38\uC81C"},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30 \uC2EC\uD654 \uD6C8\uB828"},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC21C\uC11C \uBC30\uC5F4 \uD6C8\uB828"}];let tn=null;function Ku(e){tn=e}function Uu(){return tn?.topicTypes??Hu}function Vu(){return tn?.trainingTypes??Yu}const ot="ihab_theme",Ju="light";function ut(){try{const e=localStorage.getItem(ot);if(e==="light"||e==="dark"||e==="auto")return e}catch{}return Ju}function rt(e){try{document.documentElement.setAttribute("data-theme",e),localStorage.setItem(ot,e)}catch{}}function qu(){rt(ut())}const it="ihab_font_scale",Qu="medium",zu=["medium","large1","large2","large3"];function at(){try{const e=localStorage.getItem(it);if(zu.includes(e))return e}catch{}return Qu}function st(e){try{document.documentElement.setAttribute("data-font-scale",e),localStorage.setItem(it,e)}catch{}}function Zu(){st(at())}const Ce=[],ge=[],de=[],fe=[],he={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},Se={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},Xu={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};let on=null,lt=null,Y=null;function ct({counts:e,forceRefresh:n}={}){const t=Object.assign({},Xu,e||{}),o=tt(),r=ce(new Date(`${o}T00:00:00+09:00`).getTime()-864e5),i=JSON.stringify(t);if(!n&<===o&&on===i&&Y)return Object.assign(he,Y.today),Object.assign(Se,Y.yesterday?.selection||{LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),{today:he,yesterday:Se};const u={LISTEN_IN_NOISE:x(Ce,Math.max(0,Number(t.LISTEN_IN_NOISE)||0)),SHORT_STORY:x(ge,Math.max(0,Number(t.SHORT_STORY)||0)),LONG_STORY:x(de,Math.max(0,Number(t.LONG_STORY)||0)),ORDERING_SENTENCE:x(fe,Math.max(0,Number(t.ORDERING_SENTENCE)||0))};let a=null;return Y&&on===i&&Y.yesterday&&Y.yesterday.date===r&&(a=Y.yesterday.selection),a||(a={LISTEN_IN_NOISE:x(Ce,Math.max(0,Number(t.LISTEN_IN_NOISE)||0)),SHORT_STORY:x(ge,Math.max(0,Number(t.SHORT_STORY)||0)),LONG_STORY:x(de,Math.max(0,Number(t.LONG_STORY)||0)),ORDERING_SENTENCE:x(fe,Math.max(0,Number(t.ORDERING_SENTENCE)||0))}),Object.assign(he,u),Object.assign(Se,a),lt=o,on=i,Y={today:u,yesterday:{date:r,countsKey:i,selection:a}},{today:he,yesterday:Se}}function er(){return{today:he,yesterday:Se}}function nr(){return{LISTEN_IN_NOISE:Ce,SHORT_STORY:ge,LONG_STORY:de,ORDERING_SENTENCE:fe}}let un=!1,me=null;async function tr(){try{const e={url:typeof document>"u"?require("url").pathToFileURL(__filename).href:Me&&Me.tagName.toUpperCase()==="SCRIPT"&&Me.src||new URL("utils.cjs.js",document.baseURI).href}&&void 0||"/",n=await fetch(`${e}data/allTrainingData.json`);return n.ok?await n.json():null}catch{return null}}async function Ct(){if(!un)return me||(me=(async()=>{const e=await tr();if(!e){me=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}try{for(const n of Object.keys(e||{})){const t=e[n]||[];for(const o of t){const r=o,i=String(r.training_type||n),u=String(r.category_main_code||r.category_main||r.category_0||""),a=String(r.category_sub_code||r.category_sub||r.category_1||""),l=Object.assign({},r,{training_type:i,category_0:u,category_1:a});i==="LISTEN_IN_NOISE"?Ce.push(l):i==="SHORT_STORY"?ge.push(l):i==="LONG_STORY"?de.push(l):i==="ORDERING_SENTENCE"&&fe.push(l)}}}catch{me=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}try{window.dispatchEvent(new Event("speechear.data.updated"))}catch{}try{ct()}catch{}un=!0})(),me)}function or(){return un}async function ur(e=3e3){const n=Ct();return Promise.race([n,new Promise(t=>setTimeout(t,e))])}const rr=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uB2E4\uC218\uC758 \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC5EC\uB7EC\uAC1C\uC758 \uC9E7\uC740 \uBB38\uC7A5\uC744 \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uADF8 \uC21C\uC11C\uC5D0 \uB9DE\uAC8C \uBC30\uC5F4\uD569\uB2C8\uB2E4."}],ir=[{key:"FOOD",label:"\uC74C\uC2DD",icon:"salad",color:"#FF8A65",subs:[{key:"TRKRFD",label:" \uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD"},{key:"MDKRFD",label:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD"},{key:"WRLDFD",label:"\uC138\uACC4\uC758 \uC74C\uC2DD"},{key:"MTRFRT",label:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C"},{key:"GEFDKL",label:"\uC74C\uC2DD \uC0C1\uC2DD"}]},{key:"HLTH",label:"\uAC74\uAC15",icon:"heart",color:"#66BB6A",subs:[{key:"HTETHB",label:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00"},{key:"DISILL",label:"\uBCD1\uACFC \uC9C8\uD658"},{key:"EXCISE",label:"\uC6B4\uB3D9"},{key:"GEHTKL",label:"\uAC74\uC0C1\uC0C1\uC2DD"}]},{key:"WETH",label:"\uB0A0\uC528",icon:"sun-medium",color:"#42A5F5",subs:[{key:"GESSKL",label:"\uACC4\uC808\uC0C1\uC2DD"},{key:"SNWRAN",label:"\uB208\uACFC \uBE44"},{key:"WTHFCT",label:"\uC77C\uAE30\uC608\uBCF4"},{key:"GEWTKL",label:"\uB0A0\uC528\uC0C1\uC2DD"}]},{key:"PRSN",label:"\uC778\uBB3C",icon:"user-round",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#AB47BC",subs:[{key:"JODYPS",label:"\uC870\uC120\uC2DC\uB300"},{key:"MDKRPS",label:"\uD55C\uAD6D \uADFC\uD604\uB300"},{key:"THKDPS",label:"\uC0BC\uAD6D\uC2DC\uB300"},{key:"WRLART",label:"\uC138\uACC4\uC758 \uC608\uC220\uAC00"},{key:"WRLPSN",label:"\uC138\uACC4\uC758 \uC778\uBB3C"}]},{key:"KRCT",label:"\uD55C\uAD6D\uBB38\uD654",icon:"bow-arrow",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#EC407A",subs:[{key:"KRLANG",label:"\uC6B0\uB9AC\uB9D0"},{key:"TRPLCT",label:"\uC804\uD1B5\uB180\uC774"},{key:"HERITG",label:"\uBB38\uD654\uC7AC"},{key:"EVTFES",label:"\uD589\uC0AC\uC640 \uCD95\uC81C"},{key:"GECTKL",label:"\uC0C1\uC2DD"}]},{key:"STRY",label:"\uC774\uC57C\uAE30",icon:"message-circle",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#8D6E63",subs:[{key:"FRYTAL",label:"\uB3D9\uD654"},{key:"AMZING",label:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30"},{key:"DAYSTR",label:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30"}]},{key:"LOCA",label:"\uC9C0\uC5ED",icon:"map-pin",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#26A69A",subs:[{key:"KRLDMK",label:"\uD55C\uAD6D\uC758 \uBA85\uC18C"},{key:"SELNMK",label:"\uC11C\uC6B8\uC758 \uBA85\uC18C"},{key:"WRDTRB",label:"\uC138\uACC4\uC5EC\uD589"},{key:"NAVIGT",label:"\uAE38 \uCC3E\uAE30"}]},{key:"SOAR",label:"\uC0AC\uD68C\uC640 \uC608\uC220",icon:"landmark",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#5C6BC0",subs:[{key:"KRSOCI",label:"\uD55C\uAD6D"},{key:"ECONEW",label:"\uACBD\uC81C\uC640 \uB274\uC2A4"},{key:"GENART",label:"\uC608\uC220"},{key:"GELFKL",label:"\uC0DD\uD65C \uC0C1\uC2DD"}]},{key:"NTSC",label:"\uC790\uC5F0\uACFC \uACFC\uD559",icon:"leaf",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#9CCC65",subs:[{key:"ANIMAL",label:"\uB3D9\uBB3C"},{key:"PLANTS",label:"\uC2DD\uBB3C"},{key:"ETHPLT",label:"\uC9C0\uAD6C"},{key:"TOLELC",label:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488"},{key:"GESCKL",label:"\uACFC\uD559\uC0C1\uC2DD"}]},{key:"SPRT",label:"\uC2A4\uD3EC\uCE20",icon:"trophy",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#FFCA28",subs:[{key:"INVDSP",label:"\uAC1C\uC778\uACBD\uAE30"},{key:"MARART",label:"\uACA9\uD22C\uAE30"},{key:"TEAMSP",label:"\uB2E8\uCCB4\uACBD\uAE30"},{key:"FOOTBL",label:"\uCD95\uAD6C"},{key:"GESPKL",label:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}]}],ar={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};let Pe=null,gt=null,dt=null;function sr(){const e=zn();if(e&&e.entries.length>0){const n=wn();if(Pe&>===e&&dt===n)return Pe;const t=new Set,o=[];for(const r of e.entries)!r.word||t.has(r.word)||(t.add(r.word),o.push({w:r.word,s:r.syllables,p:n?.[r.word]?[...n[r.word].cho??[],...n[r.word].jung??[],...n[r.word].jong??[]]:[],pron:r.pronunciation||r.word,grade:r.grade}));return Pe=o,gt=e,dt=n,Pe}return[]}new Proxy([],{get(e,n){const t=sr(),o=t[n];return typeof o=="function"?o.bind(t):o}});const lr={free:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},personal_standard:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},mgr_free:{maxCustomers:5,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},none:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},lite_word:{maxCustomers:10,visitWord:!0,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!1},lite_sentence:{maxCustomers:10,visitWord:!1,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!0},lite:{maxCustomers:10,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},standard:{maxCustomers:30,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},pro:{maxCustomers:50,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0},enterprise:{maxCustomers:1/0,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!0,managerManagement:!0,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!0,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!0,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!0,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0}},cr={none:0,free:1,personal_standard:3,mgr_free:4,lite_word:5,lite_sentence:5,lite:6,standard:7,pro:8,enterprise:9},Cr={free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1},personal_standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null},mgr_free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1,trainingItemMax:5,customerMax:5,homeworkSendDaily:1},lite:{sentenceTrainingDaily:5,wordTrainingDaily:5,gameDaily:5,trainingItemMax:10,customerMax:10,homeworkSendDaily:10},standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:30,customerMax:30,homeworkSendDaily:30},pro:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:50,homeworkSendDaily:50},enterprise:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:null,homeworkSendDaily:null}};function gr(e){const n=e.toLowerCase();return n.startsWith("manager_enterprise")?"enterprise":n.startsWith("manager_pro")?"pro":n.startsWith("manager_standard")?"standard":n.startsWith("manager_lite_word")?"lite_word":n.startsWith("manager_lite_sentence")?"lite_sentence":n.startsWith("manager_lite")||n.startsWith("mgr_lite")?"lite":n.startsWith("mgr_standard")?"standard":n.startsWith("mgr_pro")?"pro":n.startsWith("content_")||n.startsWith("speechear_")||n.startsWith("light_")||n==="light"?"personal_standard":"none"}const dr=5,fr=5;function hr({rank:e,voteCount:n,quota:t=5}){return e<t&&n>0}const Sr={selected:"ALREADY_SELECTED",added:"ALREADY_ADDED",rejected:"ALREADY_REJECTED"},mr="0.114.0";exports.CAPABILITY=xn,exports.CHOSEONG=p,exports.CORE_VERSION=mr,exports.JONGSEONG=L,exports.JUNGSEONG=_,exports.LONG_STORIES=de,exports.NETWORK_ERROR_MESSAGE=Jn,exports.NOISE_DATAS=Ce,exports.ORDER_SETS=fe,exports.PLAN_FEATURES=lr,exports.PLAN_LIMITS=Cr,exports.SHORT_STORIES=ge,exports.TIER_RANK=cr,exports.TOPIC_TYPES=ir,exports.TRAINING_TYPES=rr,exports.TRAINING_TYPE_I18N_KEY=ar,exports.WORD_SUGGESTION_ACCOUNT_LIMIT=fr,exports.WORD_SUGGESTION_EXISTING_ERROR=Sr,exports.WORD_SUGGESTION_WEEKLY_QUOTA=dr,exports.applyFontScale=st,exports.applyTheme=rt,exports.buildChangeWholeSyllableProblem=Xo,exports.buildDropCompoundProblem=qo,exports.buildDropContrast3Problem=Jo,exports.buildDropContrastProblem=Vo,exports.buildDropFinalConsonantProblem=Qo,exports.buildMultiPartPosContrast=co,exports.buildPairIndex=ao,exports.buildRemoveConsonantProblem=zo,exports.buildSyllableMaskIndex=Zo,exports.bulkSetImageExistence=xt,exports.cardQuestionTitle=Yo,exports.checkImageExists=hn,exports.classifyPairDifficulty=Yt,exports.clearAudioExistsCache=Lt,exports.clearImageExistenceCache=Wt,exports.clearPairIndexCache=so,exports.composeSyllable=H,exports.computeDailySelection=ct,exports.configureImageResolver=Mt,exports.configureNoiseSettingsStore=Au,exports.configurePronunciationResolver=Rt,exports.configureStorage=Tt,exports.configureTTS=bt,exports.configureTrainingCategories=Ku,exports.copyText=Lu,exports.createDecompCache=Ht,exports.createTTSUrlResolver=Nu,exports.dateToDb=Fu,exports.downloadCsvText=ru,exports.downloadSound=pt,exports.ensureTrainingDataLoaded=ur,exports.escapeCsvField=uu,exports.fileExists=ln,exports.filterContrastCandidates=bn,exports.finalToPhoneme=Pn,exports.firstChoseongOf=Sn,exports.formatCount=Wu,exports.formatDateKo=Ru,exports.formatDateLocale=ju,exports.formatDateLongKo=Ou,exports.formatDateLongLocale=ku,exports.formatDatetimeKo=Iu,exports.formatPhone=vu,exports.formatRelativeTime=Mu,exports.formatTimeHM=xu,exports.formatYmd=$u,exports.getAssetBaseUrl=an,exports.getDailySelection=er,exports.getElementAnalyser=It,exports.getErrorMessage=eu,exports.getImageExistenceStats=Ft,exports.getImageExistsCached=vt,exports.getImageResolver=fn,exports.getNoiseBaseUrl=wt,exports.getPairIndex=wn,exports.getPlanTier=gr,exports.getPronunciationResolver=Ot,exports.getSavedFontScale=at,exports.getSavedTheme=ut,exports.getSignedOrPublicUrl=cn,exports.getTTSFallbackUrlResolver=_t,exports.getTTSUrlResolver=Bt,exports.getTodayKst=tt,exports.getTopicTypes=Uu,exports.getTrainingPools=nr,exports.getTrainingTypes=Vu,exports.getWordPool=zn,exports.hasQuestionWordConstraint=Mo,exports.hasSel=O,exports.hasStructureContrast=Ye,exports.initFontScale=Zu,exports.initTheme=qu,exports.isAllChoseong=Dn,exports.isManualOnlyType=vo,exports.isNetworkErrorMessage=qn,exports.isSyllablePattern=yn,exports.isThisWeekPick=hr,exports.isTrainingDataLoaded=or,exports.isValidQuestionWord=$o,exports.itemCorrectness=Zn,exports.jamoToNamesForSpeech=Ko,exports.loadGameLeaderboard=Tu,exports.loadMyGameRanks=yu,exports.loadNoiseSettings=pu,exports.loadTrainingData=Ct,exports.logCrossword=du,exports.logTrainingCompletion=Cu,exports.logTrainingTime=lu,exports.matchSyllables=Q,exports.matchesChoseongSearch=Kt,exports.matchesSyllablePattern=An,exports.matchesWordQuery=pe,exports.mergeQuestionText=Un,exports.minimalPairDistractors=lo,exports.normalizeDate=Gu,exports.officialSoundPath=_u,exports.parseSortValue=ou,exports.parseSyllable=h,exports.patternToComposition=eo,exports.phonemePartsOf=Fo,exports.pickEuRo=Fn,exports.pickEulReul=$n,exports.pickEunNeun=vn,exports.pickIga=Mn,exports.pickWaGwa=Gn,exports.prewarmImageCache=Gt,exports.primarySelPart=je,exports.readLevel=Pt,exports.reorderArray=jo,exports.reportAppliedNoiseSettings=bu,exports.resolveAssetUrl=Et,exports.resolveSoundPath=At,exports.resumeAudioMeter=kt,exports.sample=x,exports.saveNoiseSettings=wu,exports.searchAndRankWords=oo,exports.setAssetBaseUrl=Dt,exports.setCrosswordLogger=gu,exports.setGameLeaderboardLoader=Du,exports.setGameRanksLoader=mu,exports.setGameScoreSubmitter=Su,exports.setTrainingCompletionLogger=cu,exports.setTrainingTimeLogger=su,exports.setWordPool=au,exports.shuffle=R,exports.sortToValue=tu,exports.soundOf=Xe,exports.speak=ft,exports.stopSpeaking=ht,exports.submitGameScore=Eu,exports.syllMatchesComp=J,exports.syllableContrasts=z,exports.syllableLength=qt,exports.syllablePron=Vn,exports.toBase64UrlSafe=Bu,exports.toChoseong=mn,exports.toItemResults=fu,exports.toKstHm=Pu,exports.toKstYmd=ce,exports.toStandardPronunciation=wo,exports.toStorageName=Ie,exports.toUserErrorMessage=nu,exports.validateSyllableSearchInput=to,exports.withEuRo=Oo,exports.withEulReul=No,exports.withEunNeun=Lo,exports.withIga=_o,exports.withWaGwa=Ro,exports.wordContainsChoseong=Ut,exports.wordContainsJongseong=Jt,exports.wordContainsJungseong=Vt,exports.wordHasNoCoda=Qt,exports.wordHasSyllableMatching=Zt,exports.wrongItems=hu;
|
|
20
|
+
`),this.name="StorageNotConfiguredError"}};function Tt(e){yt(e)}function At(e,n){if(!e)return null;const t=ee();return t?.resolvePath?t.resolvePath(e,n):n?`${n}/${e}.mp3`:null}async function ln(e){if(!e)return!1;const n=ee();if(!n)throw new $e("fileExists");if(n.exists)return n.exists(e);try{return await n.resolveUrl(e)!==null}catch{return!1}}async function cn(e){if(!e)return null;const n=ee();if(!n)throw new $e("getSignedOrPublicUrl");try{return await n.resolveUrl(e)}catch{return null}}async function pt(e){const n=ee();if(!n)throw new $e("downloadSound");return n.download(e)}function wt(){return ee()?.noiseBaseUrl??"/sounds/noise"}const ve="__ihab_core_tts_config__";function bt(e){globalThis[ve]=e}function Bt(){return globalThis[ve]?.urlResolver??null}function _t(){return globalThis[ve]?.fallbackUrlResolver??null}const Nt=new Map;function Lt(){Nt.clear()}const Cn="__ihab_core_pronunciation_resolver__";function Rt(e){globalThis[Cn]=e}function Ot(){return globalThis[Cn]??null}let ne=null;const gn=new WeakMap;function jt(){if(ne)return ne;try{const e=window.AudioContext||window.webkitAudioContext;return e?(ne=new e,ne):null}catch{return null}}function kt(){try{ne?.resume()}catch{}}function It(e){if(!e)return null;const n=gn.get(e);if(n)return n;const t=jt();if(!t)return null;try{const o=t.createMediaElementSource(e),r=t.createAnalyser();return r.fftSize=1024,r.smoothingTimeConstant=.6,o.connect(r),o.connect(t.destination),gn.set(e,r),r}catch{return null}}function Pt(e,n){e.getFloatTimeDomainData(n);let t=0;for(let o=0;o<n.length;o++){const r=n[o];t+=r*r}return Math.sqrt(t/n.length)}const dn="__ihab_core_image_config__";function Mt(e){globalThis[dn]=e}function fn(){return globalThis[dn]??null}const te="word_image_existence_map_v1";let I=null;const Te=new Map;function oe(){if(I)return I;try{const e=typeof localStorage<"u"?localStorage.getItem(te):null;I=e?JSON.parse(e):{}}catch{I={}}return I}let Ge=null;function $t(){Ge||(Ge=setTimeout(()=>{Ge=null;try{typeof localStorage<"u"&&I&&localStorage.setItem(te,JSON.stringify(I))}catch{}},200))}function Ae(e,n){return`${e}_${n??1}`}async function hn(e,n){const t=oe(),o=Ae(e,n);if(o in t)return t[o];if(Te.has(o))return Te.get(o);const r=fn();if(!r)return!1;const i=r(e,n);if(!i)return!1;const u=fetch(i,{method:"HEAD",signal:AbortSignal.timeout(8e3)}).then(a=>a.ok).catch(()=>!1).then(a=>(t[o]=a,$t(),Te.delete(o),a));return Te.set(o,u),u}function vt(e,n){const t=oe(),o=Ae(e,n);return o in t?t[o]:void 0}async function Gt(e,n={}){const{force:t=!1,concurrency:o=16,onProgress:r}=n,i=oe(),u=t?Array.from(new Set(e)):Array.from(new Set(e)).filter(l=>!(Ae(l)in i));let a=0;if(u.length>0){let l=0;const s=Array.from({length:Math.min(o,u.length)},async()=>{for(;l<u.length;){const C=l++,c=u[C],g=Ae(c);if(!t&&g in i){a++,r?.(a,u.length);continue}try{await hn(c)}catch{}a++,r?.(a,u.length)}});await Promise.all(s)}try{typeof localStorage<"u"&&I&&localStorage.setItem(te,JSON.stringify(I))}catch{}return{checked:u.length,cached:Object.keys(i).length,total:e.length}}function Ft(){const e=oe(),n=Object.values(e);return n.length===0?null:{total:n.length,exists:n.filter(Boolean).length}}function xt(e){const n=oe();Object.assign(n,e);try{typeof localStorage<"u"&&localStorage.setItem(te,JSON.stringify(n))}catch{}}function Wt(){I={};try{typeof localStorage<"u"&&localStorage.removeItem(te)}catch{}}const p=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],_=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],L=["","\u3131","\u3132","\u3133","\u3134","\u3135","\u3136","\u3137","\u3139","\u313A","\u313B","\u313C","\u313D","\u313E","\u313F","\u3140","\u3141","\u3142","\u3144","\u3145","\u3146","\u3147","\u3148","\u314A","\u314B","\u314C","\u314D","\u314E"];function h(e){if(!e)return null;const n=e.charCodeAt(0)-44032;return n<0||n>=11172?null:{cho:Math.floor(n/588),jung:Math.floor(n%588/28),jong:n%28}}function Ht(){const e=new Map;return n=>{let t=e.get(n);return t||(t=[...n].map(o=>h(o)),e.set(n,t)),t}}function H(e,n,t=0){return String.fromCharCode(44032+(e*21+n)*28+t)}function Yt(e,n){if(!e||!n||e===n||e.length!==n.length)return"random";let t=0,o=null;for(let r=0;r<e.length;r++){const i=h(e[r]),u=h(n[r]);if(!i||!u)return"random";if(i.cho===u.cho&&i.jung===u.jung&&i.jong===u.jong)continue;t++;const a=i.cho!==u.cho,l=i.jung!==u.jung,s=i.jong!==u.jong;(a?1:0)+(l?1:0)+(s?1:0)>1?o="multi":a?o="cho":l?o="jung":o="jong"}return t!==1?"random":o==="cho"?"cho":o==="jung"?"jung":o==="jong"?"jong":"random"}function Sn(e){const n=h(e[0]||"");return n?p[n.cho]:""}function mn(e){return[...e].map(n=>{const t=h(n);return t?p[t.cho]:n}).join("")}function Dn(e){return!!e&&[...e].every(n=>p.includes(n))}function Kt(e,n){return n?Dn(n)?mn(e).includes(n):e.toLowerCase().includes(n.toLowerCase()):!0}function pe(e,n){if(!n)return!0;const t=[...n],o=a=>p.includes(a),r=a=>_.includes(a),i=t.map(a=>o(a)?"cho":r(a)?"jung":h(a)?"syl":"other");if(i.includes("other"))return e.includes(n);const u=[...e];for(let a=0;a+t.length<=u.length;a++){let l=!0;for(let s=0;s<t.length;s++){const C=u[a+s],c=i[s];if(c==="cho"){if(Sn(C)!==t[s]){l=!1;break}}else if(c==="jung"){const g=h(C);if(!g||_[g.jung]!==t[s]){l=!1;break}}else{const g=h(t[s]);if(g&&g.jong===0){const S=h(C);if(!S||S.cho!==g.cho||S.jung!==g.jung){l=!1;break}}else if(C!==t[s]){l=!1;break}}}if(l)return!0}return!1}const Fe={3:["\u3131","\u3145"],5:["\u3134","\u3148"],6:["\u3134","\u314E"],9:["\u3139","\u3131"],10:["\u3139","\u3141"],11:["\u3139","\u3142"],12:["\u3139","\u3145"],13:["\u3139","\u314C"],14:["\u3139","\u314D"],15:["\u3139","\u314E"],18:["\u3142","\u3145"]},En=Object.fromEntries(Object.entries(Fe).map(([e,n])=>[n.join(""),L[Number(e)]]));function Ut(e,n){if(!e||!n)return!1;for(const t of e){const o=h(t);if(o&&p[o.cho]===n)return!0}return!1}function Vt(e,n){if(!e||!n)return!1;for(const t of e){const o=h(t);if(o&&_[o.jung]===n)return!0}return!1}function Jt(e,n){if(!e||!n)return!1;for(const t of e){const o=h(t);if(!o||o.jong<=0)continue;if(L[o.jong]===n)return!0;const r=Fe[o.jong];if(r&&r.includes(n))return!0}return!1}function qt(e){if(!e)return 0;let n=0;for(const t of e)h(t)&&n++;return n}function Qt(e){if(!e)return!1;let n=!1;for(const t of e){const o=h(t);if(o&&(n=!0,o.jong>0))return!1}return n}function zt(e,n){if(e.jong<=0)return!1;if(n.includes(L[e.jong]))return!0;const t=Fe[e.jong];return!!t&&t.some(o=>n.includes(o))}function Zt(e,n,t){if(!e)return!1;const o=[...e],r=i=>{const u=h(o[i]);if(!u||n.cho&&!n.cho.includes(p[u.cho])||n.jung&&!n.jung.includes(_[u.jung]))return!1;if(n.jongNone){if(u.jong>0)return!1}else if(n.jong&&!zt(u,n.jong))return!1;return!0};if(t==="head")return r(0);if(t==="tail")return r(o.length-1);if(t==="mid"){for(let i=1;i<o.length-1;i++)if(r(i))return!0;return!1}for(let i=0;i<o.length;i++)if(r(i))return!0;return!1}function yn(e){return e.includes(",")||e.includes("_")}function Tn(e){if(e==="")return[{kind:"any"}];if(e.includes("_")){const n=[...e];if(n.length>4)return[{kind:"invalid"}];const t=n[0]??"_",o=n[1]??"_";let r=n.slice(2).join("");if(r.length===2){const i=En[r];if(!i)return[{kind:"invalid"}];r=i}return[{kind:"template",cho:t,jung:o,jong:r||"_"}]}return[...e].map(n=>h(n)?{kind:"syllable",ch:n}:p.includes(n)?{kind:"cho",jamo:n}:_.includes(n)?{kind:"jung",jamo:n}:{kind:"invalid"})}function Xt(e,n){switch(n.kind){case"any":return!0;case"syllable":{const t=h(n.ch);if(!t)return e===n.ch;if(t.jong===0){const o=h(e);return!!o&&o.cho===t.cho&&o.jung===t.jung}return e===n.ch}case"cho":{const t=h(e);return!!t&&p[t.cho]===n.jamo}case"jung":{const t=h(e);return!!t&&_[t.jung]===n.jamo}case"template":{const t=h(e);return!(!t||n.cho!=="_"&&p[t.cho]!==n.cho||n.jung!=="_"&&_[t.jung]!==n.jung||n.jong!=="_"&&L[t.jong]!==n.jong)}case"invalid":return!1}}function An(e,n){const t=n.split(",").flatMap(r=>Tn(r.trim()));if(t.length===0)return!0;const o=[...e];if(o.length<t.length)return!1;for(let r=0;r+t.length<=o.length;r++)if(t.every((i,u)=>Xt(o[r+u],i)))return!0;return!1}function eo(e){const n=e.split(",").flatMap(i=>Tn(i.trim())),t=new Set,o=new Set,r=new Set;for(const i of n)switch(i.kind){case"cho":t.add(i.jamo);break;case"jung":o.add(i.jamo);break;case"template":i.cho!=="_"&&t.add(i.cho),i.jung!=="_"&&o.add(i.jung),i.jong!=="_"&&r.add(i.jong);break;case"syllable":{const u=h(i.ch);u&&(t.add(p[u.cho]),o.add(_[u.jung]),u.jong!==0&&r.add(L[u.jong]));break}}return t.size===0&&o.size===0&&r.size===0?null:{cho:t.size?[...t]:null,jung:o.size?[...o]:null,jong:r.size?[...r]:null}}function no(e){return!!h(e)||p.includes(e)||_.includes(e)}function to(e){const n=e.trim();if(!n)return{ok:!0};for(const t of n.split(",")){const o=t.trim();if(o!==""){if(o.includes("_")){const r=[...o];if(r.length>4)return{ok:!1};const i=r[0],u=r[1],a=r.slice(2).join(""),l=i===void 0||i==="_"||p.includes(i),s=u===void 0||u==="_"||_.includes(u),C=a===""||a==="_"||L.filter(Boolean).includes(a)||!!En[a];if(l&&s&&C)continue;return{ok:!1}}if(![...o].every(no))return{ok:!1}}}return{ok:!0}}p.length,_.length,L.length;function oo(e,n){const t=n.trim();if(!t||!/[^\s,_]/.test(t))return e;if(yn(t))return e.filter(u=>An(u.word,t));const o=e.filter(u=>pe(u.word,t)||pe(u.pronunciation??"",t)),r=[...t].length,i=u=>!!u&&pe(u.slice(0,r),t);return o.map(u=>({w:u,rank:i(u.word)||i(u.pronunciation??"")?0:1})).sort((u,a)=>u.rank-a.rank).map(u=>u.w)}const xe="word_pair_index_v2",We="word_pair_index_sig_v2";let P=null,ue=null;function pn(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(xe),n=localStorage.getItem(We);return!e||!n?null:{index:JSON.parse(e),sig:n}}catch{return null}}function uo(e,n){try{if(typeof localStorage>"u")return;localStorage.setItem(xe,JSON.stringify(e)),localStorage.setItem(We,n)}catch{}}function ro(e){const n=e.map(o=>`${o.word}|${o.pron??""}`).sort();let t=0;for(const o of n)for(let r=0;r<o.length;r++)t=(t<<5)-t+o.charCodeAt(r)|0;return`${n.length}-${t}`}async function io(e,n){const t=new Set,o=[];for(const s of e){if(!s.word||t.has(s.word))continue;const C=s.pron||s.word,c=Array.from(C).map(h);c.some(g=>g===null)||c.length===Array.from(s.word).length&&(t.add(s.word),o.push({word:s.word,syls:c}))}const r={},i=o.length,u=new Map;for(const s of o){const C=s.syls.length;u.has(C)||u.set(C,[]),u.get(C).push(s)}let a=0;const l=["cho","jung","jong"];for(const s of u.values()){const C=s[0].syls.length;for(let c=0;c<C;c++)for(const g of l){const S=new Map;for(const m of s){let D="";for(let f=0;f<C;f++){f>0&&(D+="~");const d=m.syls[f];f===c?g==="cho"?D+=`*:${d.jung}:${d.jong}`:g==="jung"?D+=`${d.cho}:*:${d.jong}`:D+=`${d.cho}:${d.jung}:*`:D+=`${d.cho}:${d.jung}:${d.jong}`}let E=S.get(D);E||(E=[],S.set(D,E)),E.push(m)}for(const m of S.values())if(!(m.length<2))for(let D=0;D<m.length;D++){const E=m[D];for(let f=D+1;f<m.length;f++){const d=m[f];E.syls[c][g]!==d.syls[c][g]&&(r[E.word]||(r[E.word]={cho:[],jung:[],jong:[]}),r[d.word]||(r[d.word]={cho:[],jung:[],jong:[]}),r[E.word][g].push(d.word),r[d.word][g].push(E.word))}}}a+=s.length,n?.(a,i),await new Promise(c=>setTimeout(c,0))}return i>0&&n?.(i,i),r}async function ao(e,n={}){const t=ro(e);if(!n.force){if(P&&ue===t)return P;const r=pn();if(r&&r.sig===t)return P=r.index,ue=t,P}const o=await io(e,n.onProgress);return P=o,ue=t,uo(o,t),o}function wn(){if(P)return P;const e=pn();return e?(P=e.index,ue=e.sig,P):null}function so(){P=null,ue=null;try{typeof localStorage<"u"&&(localStorage.removeItem(xe),localStorage.removeItem(We))}catch{}}const He={cho:p,jung:_,jong:L},O=e=>Array.isArray(e)?e.length>0:!!e;function Ye(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;t++){const o=e[t],r=n[t];if(!(!o||!r)&&(o.cho!==r.cho&&p[o.cho]==="\u3147"!=(p[r.cho]==="\u3147")||o.jong!==r.jong&&o.jong===0!=(r.jong===0)))return!0}return!1}function bn(e,n,t){const o=t.pronOf(e),r=t.decompOf,i=t.sameStructureOnly&&r?r(o):null,u=[];for(const a of n)a!==e&&(t.okSet&&!t.okSet.has(a)||t.pronOf(a)!==o&&(i&&r&&Ye(i,r(t.pronOf(a)))||u.push(a)));return u}function lo(e,n,t){const o=n?.[e];if(!o)return[];const r=t.kind?o[t.kind]??[]:[...o.cho??[],...o.jung??[],...o.jong??[]];return bn(e,r,t)}function co(e,n,t,o,r,i,u){const a=["cho","jung","jong"].filter(g=>O(e[g])),l={};for(const g of a){const S=e[g];l[g]=new Set(Array.isArray(S)?S:[S])}const s=r==="pron",C=new Map;for(const g of n){const S=t(i(g));if(S.some(f=>!f))continue;let m=S;if(!s&&(m=t(g),m.length!==S.length||m.some(f=>!f)))continue;const D=S.length,E=C.get(D);E?E.push({w:g,dPron:S,dPos:m}):C.set(D,[{w:g,dPron:S,dPos:m}])}const c=new Map;for(const[g,S]of C){const m=new Map,D=(E,f)=>{const d=E.dPos[f];return d!=null&&a.every(y=>l[y].has(He[y][d[y]]))};for(const E of S){let f;if(u==="head")f=D(E,0)?0:-1;else if(u==="tail")f=D(E,g-1)?g-1:-1;else if(u==="mid"){f=-1;for(let y=1;y<g-1;y++)if(D(E,y)){f=y;break}}else f=E.dPos.findIndex(y=>y!=null&&a.every(T=>l[T].has(He[T][y[T]])));if(f<0)continue;const d=m.get(f);d?d.push(E):m.set(f,[E])}for(const[E,f]of m){const d=new Set(a.map(w=>E+":"+w)),y=w=>{let B="";for(let b=0;b<g;b++){const j=w[b];for(const W of["cho","jung","jong"])B+=(d.has(b+":"+W)?"*":j[W])+"."}return B},T=new Map;for(const w of S){const B=y(w.dPron),b=T.get(B);b?b.push(w):T.set(B,[w])}for(const w of f){const B=T.get(y(w.dPron))??[],b=[];for(const j of B){if(j.w===w.w)continue;let W=!0;for(const A of a){const v=w.dPron[E][A],K=j.dPron[E][A];if(K===v){W=!1;break}if(s&&l[A].has(He[A][K])){W=!1;break}}W&&(o&&Ye(w.dPron,j.dPron)||b.push(j.w))}c.set(w.w,b)}}}return c}const we=0,Bn=1,U=2,Ke=3,Co=4,be=5,Ue=6,Be=7,go=8,_n=9,re=10,fo=11,ie=12,ho=13,ae=14,_e=15,Ne=16,se=17,So=18,M=0,G=1,mo=3,V=4,Ve=5,Je=6,$=7,N=8,Nn=9,Ln=10,Le=11,Rn=12,qe=13,Re=15,Oe=16,F=17,On=18,Qe=21,jn=27,Do=20,Eo={1:we,2:Bn,4:U,7:Ke,8:be,16:Ue,17:Be,19:_n,20:re,22:ie,23:ae,24:_e,25:Ne,26:se},yo={[mo]:[G,re],[Ve]:[V,ie],[Nn]:[N,we],[Ln]:[N,Ue],[Le]:[N,Be],[Rn]:[N,re],[qe]:[N,Ne],14:[N,se],[On]:[F,re]},To={[Je]:U,[Re]:be},ze={2:G,24:G,3:G,9:G,5:V,6:V,19:$,20:$,22:$,23:$,25:$,27:$,11:N,12:N,13:N,15:N,10:Oe,14:F,18:F,26:F},kn={[we]:_e,[Ke]:Ne,[Be]:se,[ie]:ae},In={[we]:Bn,[Ke]:Co,[Be]:go,[_n]:re,[ie]:ho},Ao=new Set([Ve,Ln,Le,Rn,qe,Re,On]),po=new Set(["\uBC1F"]);function wo(e){const n=(e??"").trim();if(!n)return"";const t=[...n],o=t.map(h);if(o.some(i=>i===null))return n;const r=o;for(let i=0;i<r.length;i++){const u=r[i],a=r[i+1],l=u.jong;if(!a){u.jong=ze[u.jong]??u.jong;break}if(u.jong===M)continue;if(a.cho===fo){if(a.jung===Do){if(u.jong===$){u.jong=M,a.cho=ie;continue}if(u.jong===25){u.jong=M,a.cho=ae;continue}if(u.jong===qe){u.jong=N,a.cho=ae;continue}}if(u.jong===jn){u.jong=M;continue}const C=To[u.jong];if(C!==void 0){u.jong=M,a.cho=C;continue}const c=yo[u.jong];if(c){u.jong=c[0],a.cho=c[1];continue}const g=Eo[u.jong];g!==void 0&&(u.jong=M,a.cho=g);continue}if((u.jong===jn||u.jong===Je||u.jong===Re)&&kn[a.cho]!==void 0){a.cho=kn[a.cho],u.jong=u.jong===Je?V:u.jong===Re?N:M;continue}if(a.cho===So){if(u.jong===Ve){u.jong=V,a.cho=ae;continue}if(u.jong===Nn){u.jong=N,a.cho=_e;continue}if(u.jong===Le){u.jong=N,a.cho=se;continue}const C=ze[u.jong]??u.jong;if(C===G){u.jong=M,a.cho=_e;continue}if(C===$){u.jong=M,a.cho=Ne;continue}if(C===F){u.jong=M,a.cho=se;continue}}let s=ze[u.jong]??u.jong;l===Le&&po.has(t[i])&&(s=F),u.jong=s,In[a.cho]!==void 0&&(s===G||s===$||s===F||Ao.has(l))&&(a.cho=In[a.cho]),(a.cho===U||a.cho===Ue)&&(u.jong===G?u.jong=Qe:u.jong===$?u.jong=V:u.jong===F&&(u.jong=Oe)),a.cho===be?u.jong===V?u.jong=N:u.jong===Oe||u.jong===Qe?a.cho=U:u.jong===G?(u.jong=Qe,a.cho=U):u.jong===F&&(u.jong=Oe,a.cho=U):u.jong===N&&a.cho===U&&(a.cho=be)}return r.map(i=>H(i.cho,i.jung,i.jong)).join("")}const bo={\u3131:"\u3131",\u3132:"\u3131",\u314B:"\u3131",\u3133:"\u3131",\u313A:"\u3131",\u3134:"\u3134",\u3135:"\u3134",\u3136:"\u3134",\u3137:"\u3137",\u3145:"\u3137",\u3146:"\u3137",\u3148:"\u3137",\u314A:"\u3137",\u314C:"\u3137",\u314E:"\u3137",\u3139:"\u3139",\u313C:"\u3139",\u313D:"\u3139",\u313E:"\u3139",\u3140:"\u3139",\u3141:"\u3141",\u313B:"\u3141",\u3142:"\u3142",\u314D:"\u3142",\u313F:"\u3142",\u3144:"\u3142",\u3147:"\u3147"};function Pn(e){return bo[e]??e}const q=/[ㄱ-ㅎ]/,Bo=/[ㅏ-ㅣ]/;function le(e){for(let n=e.length-1;n>=0;n--){const t=e[n],o=t.charCodeAt(0);if(o>=44032&&o<=55203||q.test(t)||Bo.test(t))return t}return null}function Mn(e){const n=le(e);if(!n)return"\uAC00";const t=n.charCodeAt(0);return t>=44032&&t<=55203?(t-44032)%28!==0?"\uC774":"\uAC00":q.test(n)?"\uC774":"\uAC00"}function _o(e){return`${e}${Mn(e)}`}function $n(e){const n=le(e);if(!n)return"\uB97C";const t=n.charCodeAt(0);return t>=44032&&t<=55203?(t-44032)%28!==0?"\uC744":"\uB97C":q.test(n)?"\uC744":"\uB97C"}function No(e){return`${e}${$n(e)}`}function vn(e){const n=le(e);if(!n)return"\uB294";const t=n.charCodeAt(0);return t>=44032&&t<=55203?(t-44032)%28!==0?"\uC740":"\uB294":q.test(n)?"\uC740":"\uB294"}function Lo(e){return`${e}${vn(e)}`}function Gn(e){const n=le(e);if(!n)return"\uC640";const t=n.charCodeAt(0);return t>=44032&&t<=55203?(t-44032)%28!==0?"\uACFC":"\uC640":q.test(n)?"\uACFC":"\uC640"}function Ro(e){return`${e}${Gn(e)}`}function Fn(e){const n=le(e);if(!n)return"\uB85C";const t=n.charCodeAt(0);if(t>=44032&&t<=55203){const o=(t-44032)%28;return o===0||o===8?"\uB85C":"\uC73C\uB85C"}return n==="\u3139"?"\uB85C":q.test(n)?"\uC73C\uB85C":"\uB85C"}function Oo(e){return`${e}${Fn(e)}`}function jo(e,n,t){const o=e.slice(),[r]=o.splice(n,1);return o.splice(t,0,r),o}function R(e,n=Math.random){const t=e.slice();for(let o=t.length-1;o>0;o--){const r=Math.floor(n()*(o+1));[t[o],t[r]]=[t[r],t[o]]}return t}function x(e,n,t=Math.random){return!Array.isArray(e)||e.length===0||n<=0?[]:n>=e.length?R(e,t):R(e,t).slice(0,n)}const xn={SAME_SOUND_PICK:{difficulty:!0,choseong:!0,group:"discrimination"},SAME_OR_DIFF:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_SAME:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_INCLUDED:{difficulty:!0,choseong:!0,group:"discrimination"},STARTS_WITH_SAME_SOUND:{difficulty:!1,choseong:!0,group:"discrimination"},LISTEN_AND_REMEMBER_ORDER:{difficulty:!1,choseong:!0,group:"attention"},MERGE_2_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_2_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},DROP_1_FROM_2SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_1_FROM_3SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_PART_FROM_COMPOUND:{difficulty:!1,choseong:!0,group:"deletion"},DROP_FINAL_CONSONANT_FROM_1SYLL:{difficulty:!1,choseong:!0,group:"deletion"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{difficulty:!1,choseong:!0,group:"deletion"},CHANGE_1_SYLL_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_SYLL_IN_3SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_1SYLL:{difficulty:!1,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"}};function ko(e){const n=e?xn[e]?.group:void 0;return n==="synthesis"||n==="deletion"||n==="substitution"?n:null}const Io=p.indexOf("\u3147"),Wn={DROP_FINAL_CONSONANT_FROM_1SYLL:{syllables:1,syllable:e=>e.jong>0},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{syllables:1,syllable:e=>e.jong===0&&e.cho!==Io},MERGE_2_SYLLABLES:{syllables:2,syllable:()=>!0},MERGE_3_SYLLABLES:{syllables:3,syllable:()=>!0},MERGE_2_PHONEMES:{syllables:1,syllable:e=>e.jong===0},MERGE_3_PHONEMES:{syllables:1,syllable:e=>e.jong>0}},Po=new Set([]);function Mo(e){return e in Wn}function $o(e,n){const t=Wn[e];if(!t)return!0;const o=[...n];if(o.length!==t.syllables)return!1;const r=h(o[0]);return!!r&&t.syllable(r)}function vo(e){return Po.has(e)}function Go(e){const n=e.charCodeAt((e.length||1)-1)||0;return n<44032||n>55203||(n-44032)%28===0?"\uC640":"\uACFC"}function Ze(e){const n=e.charCodeAt((e.length||1)-1)||0;return n<44032||n>55203||(n-44032)%28===0?"\uB97C":"\uC744"}function Hn(e){const n=e.charCodeAt((e.length||1)-1)||0;if(n<44032||n>55203)return"\uB85C";const t=(n-44032)%28;return t===0||t===8?"\uB85C":"\uC73C\uB85C"}function Yn(e){const n=e.charAt((e.length||1)-1),t=n.charCodeAt(0)||0;return t>=44032&&t<=55203?(t-44032)%28===0?"\uAC00":"\uC774":/[ㄱ-ㅎ]/.test(n)?"\uC774":"\uAC00"}const Kn={\u3131:"\uAE30\uC5ED",\u3132:"\uC30D\uAE30\uC5ED",\u3134:"\uB2C8\uC740",\u3137:"\uB514\uADFF",\u3138:"\uC30D\uB514\uADFF",\u3139:"\uB9AC\uC744",\u3141:"\uBBF8\uC74C",\u3142:"\uBE44\uC74D",\u3143:"\uC30D\uBE44\uC74D",\u3145:"\uC2DC\uC637",\u3146:"\uC30D\uC2DC\uC637",\u3147:"\uC774\uC751",\u3148:"\uC9C0\uC752",\u3149:"\uC30D\uC9C0\uC752",\u314A:"\uCE58\uC753",\u314B:"\uD0A4\uC754",\u314C:"\uD2F0\uC755",\u314D:"\uD53C\uC756",\u314E:"\uD788\uC757",\u3133:"\uAE30\uC5ED\uC2DC\uC637",\u3135:"\uB2C8\uC740\uC9C0\uC752",\u3136:"\uB2C8\uC740\uD788\uC757",\u313A:"\uB9AC\uC744\uAE30\uC5ED",\u313B:"\uB9AC\uC744\uBBF8\uC74C",\u313C:"\uB9AC\uC744\uBE44\uC74D",\u313D:"\uB9AC\uC744\uC2DC\uC637",\u313E:"\uB9AC\uC744\uD2F0\uC755",\u313F:"\uB9AC\uC744\uD53C\uC756",\u3140:"\uB9AC\uC744\uD788\uC757",\u3144:"\uBE44\uC74D\uC2DC\uC637",\u314F:"\uC544",\u3150:"\uC560",\u3151:"\uC57C",\u3152:"\uC598",\u3153:"\uC5B4",\u3154:"\uC5D0",\u3155:"\uC5EC",\u3156:"\uC608",\u3157:"\uC624",\u3158:"\uC640",\u3159:"\uC65C",\u315A:"\uC678",\u315B:"\uC694",\u315C:"\uC6B0",\u315D:"\uC6CC",\u315E:"\uC6E8",\u315F:"\uC704",\u3160:"\uC720",\u3161:"\uC73C",\u3162:"\uC758",\u3163:"\uC774"};function Fo(e){if([...e].length!==1)return[e];const n=h(e);if(!n)return[e];const t=[p[n.cho],_[n.jung]];return n.jong!==0&&t.push(L[n.jong]),t}function Un(e,n=!1){const t=e.filter(Boolean);if(t.length<2)return"";const o=a=>Kn[a]??a,r=t.slice(0,-1).map(a=>`"${a}"${Go(o(a))}`).join(" "),i=t[t.length-1],u=`"${i}"${Ze(o(i))}`;return`${r} ${u} \uD569\uCE58\uBA74 \uC5B4\uB5A4 ${n?"\uC18C\uB9AC":"\uB2E8\uC5B4"}\uAC00 \uB418\uB098\uC694?`}function xo(e,n){return Un(n,e==="MERGE_2_PHONEMES"||e==="MERGE_3_PHONEMES")}function Wo(e,n){const t=String(n?.word??n?.original??""),o=String(n?.changedFrom??""),r=String(n?.changedTo??"");return e==="CHANGE_1_PHONEME_IN_1SYLL"?`"${t}"${Ze(t)} "${r}"${Hn(r)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`:`"${t}"\uC5D0\uC11C "${o}"${Ze(o)} "${r}"${Hn(r)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`}function Ho(e,n){const t=String(n?.word??n?.original??n?.base??""),o=String(n?.dropped??"");if(e==="DROP_FINAL_CONSONANT_FROM_1SYLL")return`"${t}"\uC5D0\uC11C \uBC1B\uCE68\uC774 \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`;if(e==="REMOVE_CONSONANT_AND_IDENTIFY_PHONEME"){const r=String(n?.missingConsonant??"");return`"${t}"\uC5D0\uC11C "${r}"${Yn(r)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB418\uB098\uC694?`}return`"${t}"\uC5D0\uC11C "${o}"${Yn(o)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`}function Yo(e,n,t){switch(ko(e)){case"synthesis":return xo(e,t);case"substitution":return Wo(e,n);case"deletion":return Ho(e,n);default:return""}}function Ko(e){return e.replace(/"([ㄱ-ㅣ])"(으로|와|과|을|를|이|가|은|는|로)?/g,(n,t,o)=>{const r=Kn[t];if(!r)return n;if(!o)return`"${r}"`;const i=(r.charCodeAt(r.length-1)-44032)%28,u=i!==0;let a=o;return o==="\uC640"||o==="\uACFC"?a=u?"\uACFC":"\uC640":o==="\uC744"||o==="\uB97C"?a=u?"\uC744":"\uB97C":o==="\uC774"||o==="\uAC00"?a=u?"\uC774":"\uAC00":o==="\uC740"||o==="\uB294"?a=u?"\uC740":"\uB294":(o==="\uC73C\uB85C"||o==="\uB85C")&&(a=i===0||i===8?"\uB85C":"\uC73C\uB85C"),`"${r}"${a}`})}const Uo=e=>e==null?[]:Array.isArray(e)?e:[e];function Vn(e){if([...e].length!==1)return"";const n=h(e);if(!n)return"";const t=Pn(L[n.jong]),o=t===""?0:L.indexOf(t);return H(n.cho,n.jung,o<0?0:o)}function Xe(e,n){return n.get(e)||Vn(e)||e}function je(e){return e?O(e.cho)?"cho":O(e.jung)?"jung":O(e.jong)?"jong":null:null}function J(e,n){const t=(o,r)=>!O(o)||Uo(o).includes(r);return t(n.cho,p[e.cho])&&t(n.jung,_[e.jung])&&t(n.jong,L[e.jong])}function Q(e,n,t){const o=[...e];if(t!=="pron")return o.map(i=>h(i));const r=[...n.get(e)||e];return r.length!==o.length?o.map(i=>h(i)):r.map(i=>h(i))}function z(e,n,t,o,r){const i=n==="cho"?p:n==="jung"?_:L,u=e[n],a=[],l=new Set([Xe(t,r)]),s=R(i.map((C,c)=>c).filter(C=>C!==u&&(n!=="cho"||i[C]!=="\u3147")&&(n!=="jong"||C!==0)));for(const C of s){if(a.length>=o)break;const c=n==="cho"?H(C,e.jung,e.jong):n==="jung"?H(e.cho,C,e.jong):H(e.cho,e.jung,C),g=Xe(c,r);l.has(g)||(l.add(g),a.push(c))}return a}function Vo(e,n,t,o,r,i=null){const u=[...e];if(u.length!==2)return null;const a=u.map(c=>h(c));if(a.some(c=>!c))return null;const l=Q(e,t,o);if(l.some(c=>!c))return null;const s=je(n);let C=s&&n?l.map((c,g)=>J(c,n)?g:-1).filter(c=>c>=0):[0,1];if(i!=null&&(C=C.filter(c=>c!==i)),!C.length)return null;for(const c of R(C)){const g=u[c];if(!r.has(g))continue;const S=z(a[c],s??"cho",g,40,t),m=[];for(const D of S)if(D!==g&&r.has(D)&&!m.includes(D)&&m.push(D),m.length>=2)break;if(!(m.length<2))return{question:e,distractors:[g,...m]}}return null}function Jo(e,n,t,o,r,i=null){const u=[...e];if(u.length!==3)return null;const a=u.map(c=>h(c));if(a.some(c=>!c))return null;const l=Q(e,t,o);if(l.some(c=>!c))return null;const s=je(n),C=s&&n?l.map((c,g)=>J(c,n)?g:-1).filter(c=>c>=0):[0,1,2];if(!C.length)return null;for(const c of R(C))for(const g of R([0,1,2].filter(S=>S!==c&&(i==null||S===i)))){const S=[0,1,2].filter(d=>d!==g),m=S.map(d=>u[d]).join("");if(!r.has(m))continue;const D=S.indexOf(c),E=z(a[c],s??"cho",u[c],40,t),f=[];for(const d of E){const y=S.map(w=>u[w]);y[D]=d;const T=y.join("");if(T!==m&&r.has(T)&&!f.includes(T)&&f.push(T),f.length>=2)break}if(!(f.length<2))return{question:e,distractors:[m,...f]}}return null}function qo(e,n,t,o,r,i=null){const u=[...e],a=u.length;if(a<2)return null;const l=[];for(let C=1;C<=a-1;C++)l.push({remain:u.slice(0,C).join(""),dropped:u.slice(C).join(""),droppedEnd:1}),l.push({remain:u.slice(a-C).join(""),dropped:u.slice(0,a-C).join(""),droppedEnd:0});const s=je(n);for(const{remain:C,dropped:c,droppedEnd:g}of R(l)){if(i!=null&&g!==i||C===e||!r.has(C)||!r.has(c))continue;const S=[...C],m=S.map(f=>h(f));if(m.some(f=>!f))continue;const D=Q(C,t,o);if(D.some(f=>!f))continue;const E=s&&n?D.map((f,d)=>J(f,n)?d:-1).filter(f=>f>=0):S.map((f,d)=>d);if(E.length)for(const f of R(E)){const d=z(m[f],s??"cho",S[f],40,t),y=[];for(const T of d){const w=[...S];w[f]=T;const B=w.join("");if(B!==C&&r.has(B)&&!y.includes(B)&&y.push(B),y.length>=2)break}if(y.length>=2)return{question:e,distractors:[C,...y]}}}return null}function Qo(e,n,t,o,r,i=null){if([...e].length!==1)return null;const u=h(t.get(e)||e);if(!u||u.jong===0)return null;const a=H(u.cho,u.jung,0),l=z({cho:u.cho,jung:u.jung,jong:0},"cho",a,2,t);return l.length<2?null:{question:e,distractors:[a,...l]}}const en=p.indexOf("\u3147");function zo(e,n,t,o,r,i=null){if([...e].length!==1)return null;const u=h(t.get(e)||e);if(!u||u.jong!==0||u.cho===en)return null;const a=H(en,u.jung,0),l=z({cho:en,jung:u.jung,jong:0},"jung",a,2,t);return l.length<2?null:{question:e,distractors:[a,...l]}}function Zo(e){const n=new Map;for(const t of e){const o=[...t],r=o.length;if(!(r<2||r>3))for(let i=0;i<r;i++){let u=r+"|"+i+"|";for(let l=0;l<r;l++)u+=l===i?"*":o[l];const a=n.get(u);a?a.push(t):n.set(u,[t])}}return n}function Xo(e,n,t,o,r,i=null,u=null,a=2){const l=[...e],s=l.length;if(s<2||s>3)return null;const C=l.map(d=>h(d));if(C.some(d=>!d))return null;const c=Q(e,t,o);if(c.some(d=>!d))return null;const g=d=>t.get(d)??d,S=g(e),m=!!n&&(O(n.cho)||O(n.jung)||O(n.jong)),D=!!u&&(O(u.cho)||O(u.jung)||O(u.jong)),E=d=>{let y=s+"|"+d+"|";for(let T=0;T<s;T++)y+=T===d?"*":l[T];return y};let f;if(i!=null){if(i>=s||m&&!J(c[i],n))return null;f=[i]}else m?f=c.map((d,y)=>J(d,n)?y:-1).filter(d=>d>=0):f=Array.from({length:s},(d,y)=>y);for(const d of R(f)){const y=r.get(E(d))??[],T=[],w=[];for(const A of y){if(A===e)continue;const v=[...A].map(ye=>h(ye)),K=C[d],De=v[d];if(!K||!De)continue;let Ee=0;if(K.cho!==De.cho&&Ee++,K.jung!==De.jung&&Ee++,K.jong!==De.jong&&Ee++,!(Ee<a||g(A)===S))if(D){const ye=Q(A,t,o)[d];ye&&J(ye,u)?T.push(A):w.push(A)}else T.push(A)}if(!T.length)continue;const B=R(T)[0],b=[],j=new Set([S,g(B)]),W=D?w:T.filter(A=>A!==B);for(const A of R(W)){const v=g(A);if(!j.has(v)&&(j.add(v),b.push(A),b.length>=2))break}if(!D&&b.length<2)for(const A of R(y)){if(A===e||A===B)continue;const v=g(A);if(!j.has(v)&&(j.add(v),b.push(A),b.length>=2))break}if(!(b.length<2))return{question:e,distractors:[B,...b]}}return null}function eu(e,n="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958"){if(e instanceof Error)return e.message||n;if(typeof e=="string")return e||n;if(e&&typeof e=="object"){const t=e;for(const o of[t.message,t.error_description,t.error])if(typeof o=="string"&&o)return o}return n}const Jn="\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694.";function qn(e){return e?/failed to fetch|load failed|networkerror|network request failed|fetcherror/i.test(e):!1}function nu(e){return qn(e)?Jn:e}function tu(e,n){return e==="id"?void 0:`${e}|${n?"asc":"desc"}`}function ou(e){const[n,t]=e.split("|");return{key:n,asc:t==="asc"}}function uu(e){let n=e==null?"":String(e);return/^[=+\-@\t\r]/.test(n)&&(n=" "+n),/[",\n\r]/.test(n)?`"${n.replaceAll('"','""')}"`:n}function ru(e,n){const t=new Blob(["\uFEFF"+n],{type:"text/csv;charset=utf-8"}),o=URL.createObjectURL(t),r=document.createElement("a");r.href=o,r.download=e,r.click(),URL.revokeObjectURL(o)}const Qn="__ihab_core_word_pool__";function iu(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("wordpool:update"))}function au(e,n){const t=new Map;for(const r of e)t.set(r.word,r);const o={entries:e,pairIndex:n??null,byWord:t};globalThis[Qn]=o,iu()}function zn(){return globalThis[Qn]??null}const Z=globalThis;function nn(e,n){const t=o=>{};try{const o=n();o&&typeof o.catch=="function"&&o.catch(t)}catch(o){t(o)}}function su(e){Z.__ihabTrainingTimeLogger=e}function lu(e){nn("time",()=>Z.__ihabTrainingTimeLogger?.(e))}function cu(e){Z.__ihabTrainingCompletionLogger=e}function Cu(e){nn("completion",()=>Z.__ihabTrainingCompletionLogger?.(e))}function gu(e){Z.__ihabCrosswordLogger=e}function du(e){nn("crossword",()=>Z.__ihabCrosswordLogger?.(e))}function k(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function Zn(e){for(const n of["correct","isCorrect","heard","judgement"])if(typeof e[n]=="boolean")return e[n];return e.score===1?!0:e.score===0?!1:null}function fu(e){return Array.isArray(e)?e.map((n,t)=>{const o=n??{};return{index:t,itemId:k(o.contextCode)??k(o.itemId)??k(o.itemCode)??k(o.id),question:k(o.question)??k(o.sentence)??k(o.word)??k(o.targetSyllable),answer:k(o.answer),selected:k(o.selectedText)??k(o.selected),correct:Zn(o)}}):[]}function hu(e){return e.filter(n=>n.correct===!1)}let Xn=null,et=null,nt=null;function Su(e){Xn=e}function mu(e){et=e}function Du(e){nt=e}async function Eu(e,n){try{return await Xn?.(e,n)??null}catch{return null}}async function yu(){try{return await et?.()??null}catch{return null}}async function Tu(e,n){try{return await nt?.(e,n)??null}catch{return null}}const ke=globalThis;function Au(e){ke.__ihabNoiseSettingsStore=e}async function pu(){try{return await ke.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function wu(e){const n=t=>{};try{const t=ke.__ihabNoiseSettingsStore?.save(e);t&&typeof t.catch=="function"&&t.catch(n)}catch(t){n(t)}}function bu(e){try{ke.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}function Ie(e){const n=new TextEncoder().encode(String(e).normalize("NFC"));let t="";return n.forEach(o=>{t+=o.toString(16).padStart(2,"0")}),t}const Bu=Ie;function _u(e,n){return`${e}/${Ie(n)}.mp3`}function Nu(e={}){const n=e.storagePrefix??"audio-cache",t=e.voice??"ko-f",o=typeof e.speed=="number"?e.speed:1,r=e.filenameSanitizer??Ie;return async function(i){const u=String(i||"").trim();if(!u)return"";const a=`${r(u)}_${t}.mp3`,l=`${n}/${a}`;try{if(await ln(l)){const s=await cn(l);if(s)return s}}catch{}if(e.generator)try{const s=await e.generator(u,l,e);if(s)return s}catch{}try{const s=`/api/tts?word=${encodeURIComponent(u)}&voice=${encodeURIComponent(t)}&speed=${encodeURIComponent(String(o))}`;return await fetch(s,{method:"GET"}),`/audio-cache/${a}`}catch{return`/audio-cache/${a}`}}}async function Lu(e){if(typeof document<"u")try{const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style.position="fixed",n.style.top="0",n.style.left="0",n.style.opacity="0",n.style.pointerEvents="none",document.body.appendChild(n),n.focus(),n.select(),n.setSelectionRange(0,e.length);const t=document.execCommand("copy");if(document.body.removeChild(n),t)return!0}catch{}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}const X="Asia/Seoul";function Ru(e){return new Date(e).toLocaleDateString("ko-KR",{timeZone:X,year:"numeric",month:"short",day:"numeric"})}function Ou(e){return new Date(e).toLocaleString("ko-KR",{timeZone:X,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}function ju(e,n){const t=n.startsWith("ko")?"ko-KR":"en-US";return new Date(e).toLocaleDateString(t,{timeZone:X,year:"numeric",month:"short",day:"numeric"})}function ku(e,n){const t=n.startsWith("ko")?"ko-KR":"en-US";return new Date(e).toLocaleString(t,{timeZone:X,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})}function Iu(e){return new Date(e).toLocaleString("ko-KR",{timeZone:X,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}function Pu(e){if(e==null||e==="")return"";const n=e instanceof Date?e:new Date(e);return isNaN(n.getTime())?"":new Intl.DateTimeFormat("en-GB",{timeZone:X,hour:"2-digit",minute:"2-digit",hour12:!1}).format(n)}function tt(){return ce(new Date)}function ce(e){if(e==null||e==="")return"";const n=e instanceof Date?e:new Date(e);return isNaN(n.getTime())?"":new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(n)}function Mu(e,n){if(!e)return"";const t=new Date(e).getTime();if(Number.isNaN(t))return"";const o=Math.max(0,Math.floor((Date.now()-t)/1e3)),r=Math.floor(o/60),i=Math.floor(r/60),u=Math.floor(i/24),a=Math.floor(u/7),l=Math.floor(u/30),s=Math.floor(u/365);return r<1?n("store.time.justNow","\uBC29\uAE08 \uC804"):r<60?n("store.time.minutesAgo",{n:r}):i<24?n("store.time.hoursAgo",{n:i}):u<7?n("store.time.daysAgo",{n:u}):a<5?n("store.time.weeksAgo",{n:a}):u<365?n("store.time.monthsAgo",{n:Math.min(l,11)}):n("store.time.yearsAgo",{n:s})}function $u(e,n={}){const{sep:t=".",pad:o=!0,trailingDot:r=!1,fallback:i="\u2014"}=n;if(!e)return i;const u=ce(e instanceof Date?e:String(e));if(!u)return i;const[a,l,s]=u.split("-"),C=o?l:String(Number(l)),c=o?s:String(Number(s));return`${a}${t}${C}${t}${c}${r?".":""}`}function vu(e){const n=e.replace(/\D/g,"").slice(0,11);return n.startsWith("02")?n.length<=2?n:n.length<=6?`${n.slice(0,2)}-${n.slice(2)}`:`${n.slice(0,2)}-${n.slice(2,n.length-4)}-${n.slice(n.length-4)}`:n.length<=3?n:n.length<=7?`${n.slice(0,3)}-${n.slice(3)}`:`${n.slice(0,3)}-${n.slice(3,n.length-4)}-${n.slice(n.length-4)}`}function Gu(e){if(e){if(/^\d{4}\.\d{2}\.\d{2}$/.test(e))return e;if(/^\d{8}$/.test(e))return`${e.slice(0,4)}.${e.slice(4,6)}.${e.slice(6,8)}`;if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e.replace(/-/g,".");if(/^\d{4}-\d{2}-\d{2}T/.test(e)){const n=new Date(e);return isNaN(n.getTime())?void 0:ce(n).replace(/-/g,".")}}}function Fu(e){if(e)return/^\d{4}\.\d{2}\.\d{2}$/.test(e)?e.replace(/\./g,"-"):e}function xu(e,n){if(!e)return"-";const t=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!t)return e;const o=Number(t[1]),r=Number(t[2]),i=t[1].padStart(2,"0");return r===0?n("date.timeH",{h:o,hh:i,mm:t[2]}):n("date.timeHM",{h:o,hh:i,m:r,mm:t[2]})}function Wu(e){return(e??0).toLocaleString("ko-KR")}const Hu=[{key:"FOOD",label:"\uC74C\uC2DD",icon:"salad",color:"#FF8A65",subs:[{key:"TRKRFD",label:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD"},{key:"MDKRFD",label:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD"},{key:"WRLDFD",label:"\uC138\uACC4\uC758 \uC74C\uC2DD"},{key:"MTRFRT",label:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C"},{key:"GEFDKL",label:"\uC74C\uC2DD \uC0C1\uC2DD"}]},{key:"HLTH",label:"\uAC74\uAC15",icon:"heart",color:"#66BB6A",subs:[{key:"HTETHB",label:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00"},{key:"DISILL",label:"\uBCD1\uACFC \uC9C8\uD658"},{key:"EXCISE",label:"\uC6B4\uB3D9"},{key:"GEHTKL",label:"\uAC74\uAC15\uC0C1\uC2DD"}]},{key:"WETH",label:"\uB0A0\uC528",icon:"sun-medium",color:"#42A5F5",subs:[{key:"GESSKL",label:"\uACC4\uC808\uC0C1\uC2DD"},{key:"SNWRAN",label:"\uB208\uACFC \uBE44"},{key:"WTHFCT",label:"\uC77C\uAE30\uC608\uBCF4"},{key:"GEWTKL",label:"\uB0A0\uC528\uC0C1\uC2DD"}]},{key:"PRSN",label:"\uC778\uBB3C",icon:"user-round",color:"#AB47BC",subs:[{key:"JODYPS",label:"\uC870\uC120\uC2DC\uB300"},{key:"MDKRPS",label:"\uD55C\uAD6D \uADFC\uD604\uB300"},{key:"THKDPS",label:"\uC0BC\uAD6D\uC2DC\uB300"},{key:"WRLART",label:"\uC138\uACC4\uC758 \uC608\uC220\uAC00"},{key:"WRLPSN",label:"\uC138\uACC4\uC758 \uC778\uBB3C"}]},{key:"KRCT",label:"\uD55C\uAD6D\uBB38\uD654",icon:"bow-arrow",color:"#EC407A",subs:[{key:"KRLANG",label:"\uC6B0\uB9AC\uB9D0"},{key:"TRPLCT",label:"\uC804\uD1B5\uB180\uC774"},{key:"HERITG",label:"\uBB38\uD654\uC7AC"},{key:"EVTFES",label:"\uD589\uC0AC\uC640 \uCD95\uC81C"},{key:"GECTKL",label:"\uC0C1\uC2DD"}]},{key:"STRY",label:"\uC774\uC57C\uAE30",icon:"message-circle",color:"#8D6E63",subs:[{key:"FRYTAL",label:"\uB3D9\uD654"},{key:"AMZING",label:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30"},{key:"DAYSTR",label:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30"}]},{key:"LOCA",label:"\uC9C0\uC5ED",icon:"map-pin",color:"#26A69A",subs:[{key:"KRLDMK",label:"\uD55C\uAD6D\uC758 \uBA85\uC18C"},{key:"SELNMK",label:"\uC11C\uC6B8\uC758 \uBA85\uC18C"},{key:"WRDTRB",label:"\uC138\uACC4\uC5EC\uD589"},{key:"NAVIGT",label:"\uAE38 \uCC3E\uAE30"}]},{key:"SOAR",label:"\uC0AC\uD68C\uC640 \uC608\uC220",icon:"landmark",color:"#5C6BC0",subs:[{key:"KRSOCI",label:"\uD55C\uAD6D"},{key:"ECONEW",label:"\uACBD\uC81C\uC640 \uB274\uC2A4"},{key:"GENART",label:"\uC608\uC220"},{key:"GELFKL",label:"\uC0DD\uD65C \uC0C1\uC2DD"}]},{key:"NTSC",label:"\uC790\uC5F0\uACFC \uACFC\uD559",icon:"leaf",color:"#9CCC65",subs:[{key:"ANIMAL",label:"\uB3D9\uBB3C"},{key:"PLANTS",label:"\uC2DD\uBB3C"},{key:"ETHPLT",label:"\uC9C0\uAD6C"},{key:"TOLELC",label:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488"},{key:"GESCKL",label:"\uACFC\uD559\uC0C1\uC2DD"}]},{key:"SPRT",label:"\uC2A4\uD3EC\uCE20",icon:"trophy",color:"#FFCA28",subs:[{key:"INVDSP",label:"\uAC1C\uC778\uACBD\uAE30"},{key:"MARART",label:"\uACA9\uD22C\uAE30"},{key:"TEAMSP",label:"\uB2E8\uCCB4\uACBD\uAE30"},{key:"FOOTBL",label:"\uCD95\uAD6C"},{key:"GESPKL",label:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}]}],Yu=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828"},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30 + 4\uBB38\uC81C"},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30 \uC2EC\uD654 \uD6C8\uB828"},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC21C\uC11C \uBC30\uC5F4 \uD6C8\uB828"}];let tn=null;function Ku(e){tn=e}function Uu(){return tn?.topicTypes??Hu}function Vu(){return tn?.trainingTypes??Yu}const ot="ihab_theme",Ju="light";function ut(){try{const e=localStorage.getItem(ot);if(e==="light"||e==="dark"||e==="auto")return e}catch{}return Ju}function rt(e){try{document.documentElement.setAttribute("data-theme",e),localStorage.setItem(ot,e)}catch{}}function qu(){rt(ut())}const it="ihab_font_scale",Qu="medium",zu=["medium","large1","large2","large3"];function at(){try{const e=localStorage.getItem(it);if(zu.includes(e))return e}catch{}return Qu}function st(e){try{document.documentElement.setAttribute("data-font-scale",e),localStorage.setItem(it,e)}catch{}}function Zu(){st(at())}const Ce=[],ge=[],de=[],fe=[],he={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},Se={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},Xu={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};let on=null,lt=null,Y=null;function ct({counts:e,forceRefresh:n}={}){const t=Object.assign({},Xu,e||{}),o=tt(),r=ce(new Date(`${o}T00:00:00+09:00`).getTime()-864e5),i=JSON.stringify(t);if(!n&<===o&&on===i&&Y)return Object.assign(he,Y.today),Object.assign(Se,Y.yesterday?.selection||{LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),{today:he,yesterday:Se};const u={LISTEN_IN_NOISE:x(Ce,Math.max(0,Number(t.LISTEN_IN_NOISE)||0)),SHORT_STORY:x(ge,Math.max(0,Number(t.SHORT_STORY)||0)),LONG_STORY:x(de,Math.max(0,Number(t.LONG_STORY)||0)),ORDERING_SENTENCE:x(fe,Math.max(0,Number(t.ORDERING_SENTENCE)||0))};let a=null;return Y&&on===i&&Y.yesterday&&Y.yesterday.date===r&&(a=Y.yesterday.selection),a||(a={LISTEN_IN_NOISE:x(Ce,Math.max(0,Number(t.LISTEN_IN_NOISE)||0)),SHORT_STORY:x(ge,Math.max(0,Number(t.SHORT_STORY)||0)),LONG_STORY:x(de,Math.max(0,Number(t.LONG_STORY)||0)),ORDERING_SENTENCE:x(fe,Math.max(0,Number(t.ORDERING_SENTENCE)||0))}),Object.assign(he,u),Object.assign(Se,a),lt=o,on=i,Y={today:u,yesterday:{date:r,countsKey:i,selection:a}},{today:he,yesterday:Se}}function er(){return{today:he,yesterday:Se}}function nr(){return{LISTEN_IN_NOISE:Ce,SHORT_STORY:ge,LONG_STORY:de,ORDERING_SENTENCE:fe}}let un=!1,me=null;async function tr(){try{const e={url:typeof document>"u"?require("url").pathToFileURL(__filename).href:Me&&Me.tagName.toUpperCase()==="SCRIPT"&&Me.src||new URL("utils.cjs.js",document.baseURI).href}&&void 0||"/",n=await fetch(`${e}data/allTrainingData.json`);return n.ok?await n.json():null}catch{return null}}async function Ct(){if(!un)return me||(me=(async()=>{const e=await tr();if(!e){me=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}try{for(const n of Object.keys(e||{})){const t=e[n]||[];for(const o of t){const r=o,i=String(r.training_type||n),u=String(r.category_main_code||r.category_main||r.category_0||""),a=String(r.category_sub_code||r.category_sub||r.category_1||""),l=Object.assign({},r,{training_type:i,category_0:u,category_1:a});i==="LISTEN_IN_NOISE"?Ce.push(l):i==="SHORT_STORY"?ge.push(l):i==="LONG_STORY"?de.push(l):i==="ORDERING_SENTENCE"&&fe.push(l)}}}catch{me=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}try{window.dispatchEvent(new Event("speechear.data.updated"))}catch{}try{ct()}catch{}un=!0})(),me)}function or(){return un}async function ur(e=3e3){const n=Ct();return Promise.race([n,new Promise(t=>setTimeout(t,e))])}const rr=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uB2E4\uC218\uC758 \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC5EC\uB7EC\uAC1C\uC758 \uC9E7\uC740 \uBB38\uC7A5\uC744 \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uADF8 \uC21C\uC11C\uC5D0 \uB9DE\uAC8C \uBC30\uC5F4\uD569\uB2C8\uB2E4."}],ir=[{key:"FOOD",label:"\uC74C\uC2DD",icon:"salad",color:"#FF8A65",subs:[{key:"TRKRFD",label:" \uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD"},{key:"MDKRFD",label:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD"},{key:"WRLDFD",label:"\uC138\uACC4\uC758 \uC74C\uC2DD"},{key:"MTRFRT",label:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C"},{key:"GEFDKL",label:"\uC74C\uC2DD \uC0C1\uC2DD"}]},{key:"HLTH",label:"\uAC74\uAC15",icon:"heart",color:"#66BB6A",subs:[{key:"HTETHB",label:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00"},{key:"DISILL",label:"\uBCD1\uACFC \uC9C8\uD658"},{key:"EXCISE",label:"\uC6B4\uB3D9"},{key:"GEHTKL",label:"\uAC74\uC0C1\uC0C1\uC2DD"}]},{key:"WETH",label:"\uB0A0\uC528",icon:"sun-medium",color:"#42A5F5",subs:[{key:"GESSKL",label:"\uACC4\uC808\uC0C1\uC2DD"},{key:"SNWRAN",label:"\uB208\uACFC \uBE44"},{key:"WTHFCT",label:"\uC77C\uAE30\uC608\uBCF4"},{key:"GEWTKL",label:"\uB0A0\uC528\uC0C1\uC2DD"}]},{key:"PRSN",label:"\uC778\uBB3C",icon:"user-round",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#AB47BC",subs:[{key:"JODYPS",label:"\uC870\uC120\uC2DC\uB300"},{key:"MDKRPS",label:"\uD55C\uAD6D \uADFC\uD604\uB300"},{key:"THKDPS",label:"\uC0BC\uAD6D\uC2DC\uB300"},{key:"WRLART",label:"\uC138\uACC4\uC758 \uC608\uC220\uAC00"},{key:"WRLPSN",label:"\uC138\uACC4\uC758 \uC778\uBB3C"}]},{key:"KRCT",label:"\uD55C\uAD6D\uBB38\uD654",icon:"bow-arrow",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#EC407A",subs:[{key:"KRLANG",label:"\uC6B0\uB9AC\uB9D0"},{key:"TRPLCT",label:"\uC804\uD1B5\uB180\uC774"},{key:"HERITG",label:"\uBB38\uD654\uC7AC"},{key:"EVTFES",label:"\uD589\uC0AC\uC640 \uCD95\uC81C"},{key:"GECTKL",label:"\uC0C1\uC2DD"}]},{key:"STRY",label:"\uC774\uC57C\uAE30",icon:"message-circle",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#8D6E63",subs:[{key:"FRYTAL",label:"\uB3D9\uD654"},{key:"AMZING",label:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30"},{key:"DAYSTR",label:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30"}]},{key:"LOCA",label:"\uC9C0\uC5ED",icon:"map-pin",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#26A69A",subs:[{key:"KRLDMK",label:"\uD55C\uAD6D\uC758 \uBA85\uC18C"},{key:"SELNMK",label:"\uC11C\uC6B8\uC758 \uBA85\uC18C"},{key:"WRDTRB",label:"\uC138\uACC4\uC5EC\uD589"},{key:"NAVIGT",label:"\uAE38 \uCC3E\uAE30"}]},{key:"SOAR",label:"\uC0AC\uD68C\uC640 \uC608\uC220",icon:"landmark",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#5C6BC0",subs:[{key:"KRSOCI",label:"\uD55C\uAD6D"},{key:"ECONEW",label:"\uACBD\uC81C\uC640 \uB274\uC2A4"},{key:"GENART",label:"\uC608\uC220"},{key:"GELFKL",label:"\uC0DD\uD65C \uC0C1\uC2DD"}]},{key:"NTSC",label:"\uC790\uC5F0\uACFC \uACFC\uD559",icon:"leaf",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#9CCC65",subs:[{key:"ANIMAL",label:"\uB3D9\uBB3C"},{key:"PLANTS",label:"\uC2DD\uBB3C"},{key:"ETHPLT",label:"\uC9C0\uAD6C"},{key:"TOLELC",label:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488"},{key:"GESCKL",label:"\uACFC\uD559\uC0C1\uC2DD"}]},{key:"SPRT",label:"\uC2A4\uD3EC\uCE20",icon:"trophy",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828",color:"#FFCA28",subs:[{key:"INVDSP",label:"\uAC1C\uC778\uACBD\uAE30"},{key:"MARART",label:"\uACA9\uD22C\uAE30"},{key:"TEAMSP",label:"\uB2E8\uCCB4\uACBD\uAE30"},{key:"FOOTBL",label:"\uCD95\uAD6C"},{key:"GESPKL",label:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}]}],ar={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};let Pe=null,gt=null,dt=null;function sr(){const e=zn();if(e&&e.entries.length>0){const n=wn();if(Pe&>===e&&dt===n)return Pe;const t=new Set,o=[];for(const r of e.entries)!r.word||t.has(r.word)||(t.add(r.word),o.push({w:r.word,s:r.syllables,p:n?.[r.word]?[...n[r.word].cho??[],...n[r.word].jung??[],...n[r.word].jong??[]]:[],pron:r.pronunciation||r.word,grade:r.grade}));return Pe=o,gt=e,dt=n,Pe}return[]}new Proxy([],{get(e,n){const t=sr(),o=t[n];return typeof o=="function"?o.bind(t):o}});const lr={free:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},personal_standard:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},mgr_free:{maxCustomers:5,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},none:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},lite_word:{maxCustomers:10,visitWord:!0,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!1},lite_sentence:{maxCustomers:10,visitWord:!1,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!0},lite:{maxCustomers:10,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},standard:{maxCustomers:30,visitWord:!0,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},pro:{maxCustomers:50,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0},enterprise:{maxCustomers:1/0,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!0,managerManagement:!0,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!0,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!0,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!0,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0}},cr={none:0,free:1,personal_standard:3,mgr_free:4,lite_word:5,lite_sentence:5,lite:6,standard:7,pro:8,enterprise:9},Cr={free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1},personal_standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null},mgr_free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1,trainingItemMax:5,customerMax:5,homeworkSendDaily:1},lite:{sentenceTrainingDaily:5,wordTrainingDaily:5,gameDaily:5,trainingItemMax:10,customerMax:10,homeworkSendDaily:10},standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:30,customerMax:30,homeworkSendDaily:30},pro:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:50,homeworkSendDaily:50},enterprise:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:null,homeworkSendDaily:null}};function gr(e){const n=e.toLowerCase();return n.startsWith("manager_enterprise")?"enterprise":n.startsWith("manager_pro")?"pro":n.startsWith("manager_standard")?"standard":n.startsWith("manager_lite_word")?"lite_word":n.startsWith("manager_lite_sentence")?"lite_sentence":n.startsWith("manager_lite")||n.startsWith("mgr_lite")?"lite":n.startsWith("mgr_standard")?"standard":n.startsWith("mgr_pro")?"pro":n.startsWith("content_")||n.startsWith("speechear_")||n.startsWith("light_")||n==="light"?"personal_standard":"none"}const dr=5,fr=5;function hr({rank:e,voteCount:n,quota:t=5}){return e<t&&n>0}const Sr={selected:"ALREADY_SELECTED",added:"ALREADY_ADDED",rejected:"ALREADY_REJECTED"},mr="0.115.0";exports.CAPABILITY=xn,exports.CHOSEONG=p,exports.CORE_VERSION=mr,exports.JONGSEONG=L,exports.JUNGSEONG=_,exports.LONG_STORIES=de,exports.NETWORK_ERROR_MESSAGE=Jn,exports.NOISE_DATAS=Ce,exports.ORDER_SETS=fe,exports.PLAN_FEATURES=lr,exports.PLAN_LIMITS=Cr,exports.SHORT_STORIES=ge,exports.TIER_RANK=cr,exports.TOPIC_TYPES=ir,exports.TRAINING_TYPES=rr,exports.TRAINING_TYPE_I18N_KEY=ar,exports.WORD_SUGGESTION_ACCOUNT_LIMIT=fr,exports.WORD_SUGGESTION_EXISTING_ERROR=Sr,exports.WORD_SUGGESTION_WEEKLY_QUOTA=dr,exports.applyFontScale=st,exports.applyTheme=rt,exports.buildChangeWholeSyllableProblem=Xo,exports.buildDropCompoundProblem=qo,exports.buildDropContrast3Problem=Jo,exports.buildDropContrastProblem=Vo,exports.buildDropFinalConsonantProblem=Qo,exports.buildMultiPartPosContrast=co,exports.buildPairIndex=ao,exports.buildRemoveConsonantProblem=zo,exports.buildSyllableMaskIndex=Zo,exports.bulkSetImageExistence=xt,exports.cardQuestionTitle=Yo,exports.checkImageExists=hn,exports.classifyPairDifficulty=Yt,exports.clearAudioExistsCache=Lt,exports.clearImageExistenceCache=Wt,exports.clearPairIndexCache=so,exports.composeSyllable=H,exports.computeDailySelection=ct,exports.configureImageResolver=Mt,exports.configureNoiseSettingsStore=Au,exports.configurePronunciationResolver=Rt,exports.configureStorage=Tt,exports.configureTTS=bt,exports.configureTrainingCategories=Ku,exports.copyText=Lu,exports.createDecompCache=Ht,exports.createTTSUrlResolver=Nu,exports.dateToDb=Fu,exports.downloadCsvText=ru,exports.downloadSound=pt,exports.ensureTrainingDataLoaded=ur,exports.escapeCsvField=uu,exports.fileExists=ln,exports.filterContrastCandidates=bn,exports.finalToPhoneme=Pn,exports.firstChoseongOf=Sn,exports.formatCount=Wu,exports.formatDateKo=Ru,exports.formatDateLocale=ju,exports.formatDateLongKo=Ou,exports.formatDateLongLocale=ku,exports.formatDatetimeKo=Iu,exports.formatPhone=vu,exports.formatRelativeTime=Mu,exports.formatTimeHM=xu,exports.formatYmd=$u,exports.getAssetBaseUrl=an,exports.getDailySelection=er,exports.getElementAnalyser=It,exports.getErrorMessage=eu,exports.getImageExistenceStats=Ft,exports.getImageExistsCached=vt,exports.getImageResolver=fn,exports.getNoiseBaseUrl=wt,exports.getPairIndex=wn,exports.getPlanTier=gr,exports.getPronunciationResolver=Ot,exports.getSavedFontScale=at,exports.getSavedTheme=ut,exports.getSignedOrPublicUrl=cn,exports.getTTSFallbackUrlResolver=_t,exports.getTTSUrlResolver=Bt,exports.getTodayKst=tt,exports.getTopicTypes=Uu,exports.getTrainingPools=nr,exports.getTrainingTypes=Vu,exports.getWordPool=zn,exports.hasQuestionWordConstraint=Mo,exports.hasSel=O,exports.hasStructureContrast=Ye,exports.initFontScale=Zu,exports.initTheme=qu,exports.isAllChoseong=Dn,exports.isManualOnlyType=vo,exports.isNetworkErrorMessage=qn,exports.isSyllablePattern=yn,exports.isThisWeekPick=hr,exports.isTrainingDataLoaded=or,exports.isValidQuestionWord=$o,exports.itemCorrectness=Zn,exports.jamoToNamesForSpeech=Ko,exports.loadGameLeaderboard=Tu,exports.loadMyGameRanks=yu,exports.loadNoiseSettings=pu,exports.loadTrainingData=Ct,exports.logCrossword=du,exports.logTrainingCompletion=Cu,exports.logTrainingTime=lu,exports.matchSyllables=Q,exports.matchesChoseongSearch=Kt,exports.matchesSyllablePattern=An,exports.matchesWordQuery=pe,exports.mergeQuestionText=Un,exports.minimalPairDistractors=lo,exports.normalizeDate=Gu,exports.officialSoundPath=_u,exports.parseSortValue=ou,exports.parseSyllable=h,exports.patternToComposition=eo,exports.phonemePartsOf=Fo,exports.pickEuRo=Fn,exports.pickEulReul=$n,exports.pickEunNeun=vn,exports.pickIga=Mn,exports.pickWaGwa=Gn,exports.prewarmImageCache=Gt,exports.primarySelPart=je,exports.readLevel=Pt,exports.reorderArray=jo,exports.reportAppliedNoiseSettings=bu,exports.resolveAssetUrl=Et,exports.resolveSoundPath=At,exports.resumeAudioMeter=kt,exports.sample=x,exports.saveNoiseSettings=wu,exports.searchAndRankWords=oo,exports.setAssetBaseUrl=Dt,exports.setCrosswordLogger=gu,exports.setGameLeaderboardLoader=Du,exports.setGameRanksLoader=mu,exports.setGameScoreSubmitter=Su,exports.setTrainingCompletionLogger=cu,exports.setTrainingTimeLogger=su,exports.setWordPool=au,exports.shuffle=R,exports.sortToValue=tu,exports.soundOf=Xe,exports.speak=ft,exports.stopSpeaking=ht,exports.submitGameScore=Eu,exports.syllMatchesComp=J,exports.syllableContrasts=z,exports.syllableLength=qt,exports.syllablePron=Vn,exports.toBase64UrlSafe=Bu,exports.toChoseong=mn,exports.toItemResults=fu,exports.toKstHm=Pu,exports.toKstYmd=ce,exports.toStandardPronunciation=wo,exports.toStorageName=Ie,exports.toUserErrorMessage=nu,exports.validateSyllableSearchInput=to,exports.withEuRo=Oo,exports.withEulReul=No,exports.withEunNeun=Lo,exports.withIga=_o,exports.withWaGwa=Ro,exports.wordContainsChoseong=Ut,exports.wordContainsJongseong=Jt,exports.wordContainsJungseong=Vt,exports.wordHasNoCoda=Qt,exports.wordHasSyllableMatching=Zt,exports.wrongItems=hu;
|