(globalThis.wpRiseJsonp=globalThis.wpRiseJsonp||[]).push([["learn_main_tsx-node_modules_pnpm_moment_2_30_1_node_modules_moment_locale_sync_recursive_en"],{30349(qe){qe.exports=function(be){be||(be={});var __t,__p="";with(be)__p+=`<style>
  :root {
    --color-theme-contrast-complementary-rgb: `+((__t=colorThemeContrastComplementaryRGB)==null?"":__t)+`;
    --color-theme-contrast-complementary: `+((__t=colorThemeContrastComplementary)==null?"":__t)+`;
    --color-theme-contrast-rgb: `+((__t=colorThemeContrastRGB)==null?"":__t)+`;
    --color-theme-contrast: `+((__t=colorThemeContrast)==null?"":__t)+`;
    --color-theme-rgb: `+((__t=colorThemeRGB)==null?"":__t)+`;
    --color-theme-tint: `+((__t=colorThemeTint)==null?"":__t)+`;
    --color-theme-transparent: `+((__t=colorThemeTransparent)==null?"":__t)+`;
    --color-theme: `+((__t=colorTheme)==null?"":__t)+`;
    --font-family-body: `+((__t=bodyTypeface)==null?"":__t)+`, 'Noto Sans Myanmar', sans-serif;
    --font-family-head: `+((__t=headingTypeface)==null?"":__t)+`, 'Noto Sans Myanmar', sans-serif;
    --font-family-ui: `+((__t=uiTypeface)==null?"":__t)+`, 'Noto Sans Myanmar', sans-serif;

    --mon-theme-font-body: var(--font-family-body);
    --mon-theme-font-heading: var(--font-family-head);
  }

  .brand--ui, .brand--ui * {
    font-family: var(--font-family-ui) !important;
  }

  .brand--beforeHead:before {
    font-family: var(--font-family-ui) !important;
  }

  .brand--afterHead:after {
    font-family: var(--font-family-ui) !important;
  }

  .brand--background {
    background-color: var(--color-theme) !important;
  }

  .brand--background-all * {
    background-color: var(--color-theme) !important;
  }

  .brand--border {
    border-color: var(--color-theme) !important;

    @media (forced-colors: active) {
      border-color: transparent !important;
    }
  }

  .brand--color {
    color: var(--color-theme) !important;
  }

  .brand--color-all * {
    color: var(--color-theme) !important;
  }

  .brand--shadow {
    box-shadow: 0 0 0 0.2rem var(--color-theme) !important;
  }

  .brand--shadow-all * {
    box-shadow: 0 0 0 0.2rem var(--color-theme) !important;
  }

  .brand--fill {
    fill: var(--color-theme) !important;
  }

  .brand--stroke {
    stroke: var(--color-theme) !important;
  }

  .brand--beforeBackground:before {
    background-color: var(--color-theme) !important;
  }

  .brand--beforeBorder:before {
    border-color: var(--color-theme) !important;
  }

  .brand--beforeColor:before {
    color: var(--color-theme) !important;
  }

  .brand--afterBackground:after {
    background-color: var(--color-theme) !important;
  }

  .brand--afterBorder:after {
    border-color: var(--color-theme) !important;
  }

  .brand--afterColor:after {
    color: var(--color-theme) !important;
  }

  /* should be applied to containers where links
     need to appear in brand color */
  .brand--linkColor a {
    color: var(--color-theme) !important;
    fill: var(--color-theme) !important;
  }

  /* should be applied to containers where links
     need to change to brand color on hover */
  .brand--linkColorHover a:hover {
    color: var(--color-theme) !important;
    fill: var(--color-theme) !important;
  }

  /* should be applied to any single element that
     needs to change color on hover */
  .brand--hoverColor:hover {
    color: var(--color-theme) !important;
  }

  .button.brand--background:hover { opacity: .65 !important; }

  .brandHover:hover {
    fill: var(--color-theme) !important;
  }


  @media (min-width: 47.9375em) { /* 768px */
    .brand--min768--background {
      background-color: var(--color-theme) !important;
    }

    .brand--min768--border {
      border-color: var(--color-theme) !important;
    }

    .brand--min768--color {
      color: var(--color-theme) !important;
    }
  }

  @media (max-width: 47.9375em) { /* 768px */
    .brand--max768--background {
      background-color: var(--color-theme) !important;
    }

    .brand--max768--border {
      border-color: var(--color-theme) !important;
    }

    .brand--max768--color {
      color: var(--color-theme) !important;
    }
  }
</style>
`;return __p}},55693(qe,be,l){"use strict";l.d(be,{cF:()=>cs,LK:()=>tt,LM:()=>Q,TJ:()=>gn,Ay:()=>M,EL:()=>Go,HC:()=>fo,V7:()=>Kn,YB:()=>vn});var k=l(9516),U=l(16557),B=l.n(U),G=l(20546),Y;function K(){return G.action}function ve(){return Y}var oe=l(74334),se=l(82349),s=l(41182),pe=l(48147),ke=l(78824),le=l(19735);const ce=(Fe=[],St)=>St?.partnerContentId?Fe.concat(St.partnerContentId):Fe,re=(Fe,St)=>St?.items?.reduce(ce,Fe)??Fe,Le=(Fe,St)=>St?.items?.reduce(re,Fe)??Fe,Ne=({course:Fe,lessons:St})=>{const _t=St?.reduce(Le,[])||[],Ds=Fe?.partnerContentId||null,Cn=Ds?[Ds]:[],Bt=new Set([..._t,...Cn]);return Array.from(Bt)};var X=l(30717),$=l.n(X),z,Z;const H=null,ae=$()({ACTIVE:null,PREVIEW:null}),he=({themeId:Fe,themeCoverImage:St,coverImageDefault:_t})=>Fe==="classic"&&Z(_t)?_t:St,Te=Fe=>({...Fe,theme:{...Fe?.theme,hideLessonHeaders:Fe?.theme?.hideLessonHeaders??!1}});var Ee=l(16904),ge=l.n(Ee),h=l(76522),te=l.n(h),ie=l(13845),W=l.n(ie),Oe=l(51688),Ce=l.n(Oe),Pe=l(88593),Ue=l.n(Pe),J=l(9007),ze;const et=W()([[te()([Ce()(!0),Ce()(J.iV.ALL)]),ge()(J.iV.ALL)],[te()([Ce()(!1),Ce()(J.iV.NONE)]),ge()(J.iV.NONE)],[Ce()(J.iV.INCORRECT),ge()(J.iV.INCORRECT)],[Ue(),ge()(J.iV.ALL)]]),Ke="draw from question bank",it="fillin",bt="matching",Je="multiple choice",je="multiple response",_e=null;var vt=l(95258),Ct=l(66790);const tt="rise/course/LOAD_COURSE",Kt="rise/course/UPDATE_COMPLETED_AT",Q="rise/course/UPDATE_COURSE_PREVIEW",ot="rise/course/UPDATE_LESSON_PREVIEW",cs="rise/course/APPLY_CHANGESET";let $e;(async()=>{try{({applyReviewDataToManifest:$e}=await l.e("webpack_container_remote_mondrian_learn-react").then(l.t.bind(l,4246,23)))}catch{}})();const en=K(),ho=Fe=>{if("settings"in Fe&&Fe.settings&&(0,Ct.Gv)(Fe.settings)&&"revealAnswers"in Fe.settings){const _t=Fe.settings;return{...Fe,settings:{...Fe.settings,revealAnswers:et(_t.revealAnswers)}}}return Fe},pn=Fe=>(0,vt.vm)(Fe)?(0,vt.Ww)(Fe):Fe,Qe=Fe=>pn(ho(Fe)),tn=Fe=>({...Fe,lessons:Fe.lessons?.map(Qe)||[]}),Us=Fe=>{const St=Fe.lessons?.filter(_t=>_t.type!=="section")||[];return{...Fe,lessonsOnly:St}},$s=Fe=>Fe.theme==null,An=Fe=>(0,se.MJ)((0,se.uK)(Fe)),or=Fe=>$s(Fe)?An(Fe):(0,se.MJ)(Fe),mo=Fe=>Te(or(Fe)),At=(Fe,St)=>{let _t=(0,k.TJ)(["course"],St,Fe).result;const Ds=(0,k.TJ)(["lessons"],St,_t.lessons).result;return St.some(Cn=>Cn.path[0]==="mondrian")&&_t.mondrian&&$e&&(_t={..._t,mondrian:$e(_t.mondrian,St)}),{..._t,lessons:Ds}},ds=Fe=>({...Fe,lessons:Fe.lessons?.map(s.K)||[]}),Es=(Fe,{completedAt:St,course:_t,favoritedAt:Ds,riseComCurrentUser:Cn,riseComCourseId:Bt,riseComEnrollmentType:Rt,riseComLearningPathId:vo})=>{const rr=tn(_t),Bs=Us(rr),Qi={...Bs,theme:Bs.theme??(0,se.uK)(Bs).theme};return{...mo(Qi),completedAt:St,favoritedAt:Ds,riseComCourseId:Bt,riseComEnrollmentType:Rt,riseComCurrentUser:Cn,riseComLearningPathId:vo}},$o=Fe=>({...Fe,favoritedAt:new Date}),po=Fe=>({...Fe,favoritedAt:null}),Wo=Fe=>({...Fe,completedAt:new Date().toISOString()}),M=(0,G.handle)({},{[pe._q]:$o,[pe.ut]:po,[tt]:Es,[Kt]:Wo,[Q]:(Fe,{course:St})=>St,[ot]:(Fe,{lessons:St})=>({...Fe,lessons:St.map(Qe)}),[cs]:At}),rt=Fe=>St=>{const{statusCode:_t}=St;_t===404&&Fe((0,le.cX)(!0))},pt=Fe=>St=>St([{type:ke.O,payload:Fe},(0,le.$d)(!0)]),fn=B().fromPromise(async(...Fe)=>await(0,oe.qO)(...Fe)),Xt=Fe=>Fe.length===0?(0,le.$d)(!0):fn(Fe).map(pt),Gn=Fe=>St=>{const{course:_t}=St,Ds=ds(_t),Cn=Ne({course:Ds,lessons:Ds.lessons});Fe([en(tt,{...St,course:Ds,_originalLessons:_t.lessons}),(0,le.LW)(!0),Xt(Cn)])},Go=()=>async Fe=>{try{const St=await(0,oe.hd)();Gn(Fe)(St),(0,oe.wW)(St)}catch(St){await rt(Fe)(St)}},fo=en(tt),Kn=en(Q),vn=en(ot),gn=en(cs)},65328(qe,be,l){"use strict";l.d(be,{Kl:()=>B,Om:()=>Y,RA:()=>re,Sw:()=>pe,V9:()=>le,Zp:()=>oe,bf:()=>G,eQ:()=>s,i$:()=>Le,re:()=>ce,sq:()=>ve,ss:()=>ke,w8:()=>K,y1:()=>se});var k=l(20546);const U=Ne=>`rise/course/${Ne}`,B=U("BLOCKS_LESSON_COMPLETE"),G=U("BLOCKS_LESSON_INCREMENT_RETRY_ATTEMPT"),Y=U("BLOCKS_LESSON_RESET"),K=U("BLOCKS_LESSON_RETRY_SORTING_ACTIVITY"),ve=U("BLOCKS_LESSON_SET_ITEMS_PROGRESS"),oe=U("BLOCKS_LESSON_SET_MEDIA_PLAY_PROGRESS"),se=U("BLOCKS_LESSON_SET_SORTING_ITEM_RESULT"),s=(0,k.action)(B),pe=(0,k.action)(G),ke=(0,k.action)(Y),le=(0,k.action)(K),ce=(0,k.action)(ve),re=(0,k.action)(oe),Le=(0,k.action)(se)},31407(qe,be,l){"use strict";l.d(be,{$Z:()=>oe,Ew:()=>Y,GL:()=>G,UZ:()=>K,_Y:()=>s,aM:()=>ke,jS:()=>se,tc:()=>ve});var k=l(70313),U=l(53239),B=l(66790);function G(z,Z){const H=z.lessons[Z];if(!(0,k.rV)(H))return z;const ae={...ke(H),id:Z},he=(0,k.b5)({courseProgress:z,lessonId:Z,updatedLessonProgress:ae});return(0,k.bo)({lessonId:Z,prevCourseProgress:z,nextCourseProgress:he})}function Y(z,Z){const{lessonId:H,blockId:ae,itemId:he}=Z,Te=z.lessons[H];if(!(0,k.rV)(Te))return z;const Ee=Te.items[ae],ge=ce({blockProgress:Ee,itemId:he}),h=Le({lessonProgress:Te,blockId:ae,updatedBlockProgress:ge}),te=(0,U.hh)(h),ie=(0,k.b5)({courseProgress:z,lessonId:H,updatedLessonProgress:te});return(0,k.bo)({lessonId:H,prevCourseProgress:z,nextCourseProgress:ie})}function K(z,Z){const H=z.lessons[Z];if(!(0,k.rV)(H))return z;const ae=Ne(H),he=(0,k.b5)({courseProgress:z,lessonId:Z,updatedLessonProgress:ae});return(0,k.bo)({lessonId:Z,prevCourseProgress:z,nextCourseProgress:he})}function ve(z,{blockId:Z,lessonId:H}){const ae=z.lessons[H];if(!(0,k.rV)(ae))return z;const he=X(ae.items[Z]),Te=Le({lessonProgress:ae,blockId:Z,updatedBlockProgress:he}),Ee=(0,k.b5)({courseProgress:z,lessonId:H,updatedLessonProgress:Te});return(0,k.bo)({lessonId:H,prevCourseProgress:z,nextCourseProgress:Ee})}function oe(z,Z){const{lessonId:H,blockId:ae,items:he}=Z,Te=z.lessons[H];if(!(0,k.rV)(Te))return z;const Ee=le({blockId:ae,lessonProgress:Te,items:he}),ge=(0,k.b5)({courseProgress:z,lessonId:H,updatedLessonProgress:Ee});return(0,k.bo)({lessonId:H,prevCourseProgress:z,nextCourseProgress:ge})}function se(z,Z){const{lessonId:H,blockId:ae,itemId:he,audioVideoPlayhead:Te}=Z,Ee=z.lessons[H],ge=Ee?.items?.[ae];if(!(0,k.rV)(Ee)||!ge||!("items"in ge)||!ge.items||!ge.items[he])return z;const te={...ge.items[he],audioVideoPlayhead:Te},ie={...ge,items:{...ge.items,[he]:te}},W=Le({lessonProgress:Ee,blockId:ae,updatedBlockProgress:ie}),Oe=(0,k.b5)({courseProgress:z,lessonId:H,updatedLessonProgress:W});return(0,k.bo)({lessonId:H,prevCourseProgress:z,nextCourseProgress:Oe})}function s(z,Z){const{lessonId:H,blockId:ae,itemId:he,isCorrect:Te}=Z,Ee=z.lessons[H];if(!(0,k.rV)(Ee))return z;const ge=$({itemId:he,isCorrect:Te,blockProgress:Ee.items[ae]}),h=(0,U.hh)(Le({lessonProgress:Ee,blockId:ae,updatedBlockProgress:ge})),te=(0,k.b5)({courseProgress:z,lessonId:H,updatedLessonProgress:h});return(0,k.bo)({lessonId:H,prevCourseProgress:z,nextCourseProgress:te})}const pe=z=>Object.values(z).length>0&&Object.values(z).every(Z=>Z.isComplete),ke=z=>{const Z=(0,B.s0)(z.items,(H,ae)=>{const he=(0,B.s0)(ae.items??{},(Te,Ee)=>[Te,{...Ee,isComplete:!0,id:Ee.id,index:Ee.index}]);return[H,{...ae,items:he,isComplete:!0}]});return{...z,isComplete:!0,items:Z,percentComplete:100}},le=({blockId:z,items:Z,lessonProgress:H})=>{const ae=H.items?.[z]??{items:{}},he=new Set(Z.map(te=>String(te.id))),Te=(0,B.s0)(ae.items??{},(te,ie)=>{const W=he.has(te);return[te,{...ie,isComplete:ie.isComplete||W,id:ie.id,index:ie.index}]}),ge=Object.keys(Te).length===0||pe(Te),h={...ae,id:z,items:Te,...ge&&{isComplete:!0}};return re(Le({lessonProgress:H,blockId:z,updatedBlockProgress:h}))},ce=({blockProgress:z,itemId:Z})=>{if(!z.items)return z;const H=z.items[Z];return{...z,items:{...z.items,[Z]:{...H,retryAttemptCount:(H?.retryAttemptCount??0)+1}}}},re=z=>{const Z=(0,U.hh)(z);return Z.percentComplete===100?{...Z,isComplete:!0}:Z},Le=({blockId:z,lessonProgress:Z,updatedBlockProgress:H})=>({...Z,items:{...Z.items,[z]:H}}),Ne=z=>{const Z=(0,B.s0)(z.items,(H,ae)=>{const he=(0,B.s0)(ae.items??{},(Te,Ee)=>[Te,(0,B.QD)(Ee,["isComplete","isCorrect","isViewed"])]);return[H,{id:ae.id,index:ae.index,items:he}]});return{...(0,B.QD)(z,["isComplete","percentComplete"]),items:Z}},X=z=>({...(0,B.QD)(z,["percentViewed","correctlyAnswered"]),id:z.id,index:z.index,items:(0,B.s0)(z.items??{},(Z,H)=>[Z,(0,B.QD)(H,["isViewed","isCorrect"])]),retryAttempts:(z.retryAttempts??0)+1}),$=({isCorrect:z,itemId:Z,blockProgress:H})=>{if(!H.items)return H;const ae=H.items[Z],he={...ae,isComplete:z,isViewed:z,...ae?.isCorrect===void 0&&{isCorrect:z}},Te={...H.items,[Z]:he},Ee=Object.values(Te).filter(W=>W.isCorrect).length,ge={...H,items:Te,correctlyAnswered:Ee,...!z&&{lastIncorrectCardId:Z}},h=(0,U.f5)(ge),te=(0,U.QI)(h),ie=te.percentComplete===100;return{...te,...ie&&{isComplete:!0}}}},70313(qe,be,l){"use strict";l.d(be,{Zn:()=>G,b5:()=>K,bo:()=>ve,rV:()=>Y});var k=l(88512),U=l.n(k),B=l(74334);const G=le=>!!le&&le.type==="quiz",Y=le=>!!le&&le.type==="blocks",K=({courseProgress:le,lessonId:ce,updatedLessonProgress:re})=>({...le,lessons:{...le.lessons,[ce]:re}});function ve({lessonId:le,nextCourseProgress:ce,prevCourseProgress:re}){const Le=ce.lessons[le],Ne=re.lessons[le];if(Le&&!U()(Le,Ne)&&((0,B.C2)(Le),oe({lessonId:le,courseProgress:ce,prevCourseProgress:re})),se({lessonId:le,prevCourseProgress:re,nextCourseProgress:ce})){const X=pe(re),$=pe(ce),z=$!==X,Z={...ce,percentComplete:$};return z&&(ke({courseProgress:Z,lessonProgress:Le}),Z.percentComplete!=null&&(0,B.O9)(Z.percentComplete)),Z}return ce}function oe({courseProgress:le,prevCourseProgress:ce,lessonId:re}){const Le=le.lessons?.[re],Ne=ce.lessons?.[re];if(Le?.percentComplete===100&&Ne?.percentComplete!==100){const X=s(Le);X&&(0,B.aM)(X)}}function se({lessonId:le,nextCourseProgress:ce,prevCourseProgress:re}){const Le=ce.lessons?.[le];if(!Le)return!1;const Ne=re.lessons?.[le]?.percentComplete===100,X=Le.percentComplete===100,$=Ne!==X,z=ce.currentLesson!=null&&G(ce.lessons[ce.currentLesson])&&ce.lessons[ce.currentLesson]?.percentComplete===100;return $||z}function s(le){const{id:ce}=le;if(!ce)throw new Error("Cannot create lesson payload: lesson.id is missing");if(G(le)){const{passed:re,score:Le,passingScore:Ne=0}=le;return{id:ce,...re!==void 0&&{passed:re},...Le!==void 0&&{score:Le},passingScore:Ne}}return{id:ce}}function pe(le){const{lessons:ce={}}=le,re=Object.keys(ce).length;if(re===0)return 0;const Le=Object.values(ce).filter(Ne=>Ne.isComplete).length;return Math.round(Le/re*100)}function ke({courseProgress:le,lessonProgress:ce}){if(!le||!ce)return;const re=s(ce);re&&(0,B.vb)(le,re)}},1168(qe,be,l){"use strict";l.d(be,{B:()=>H,A:()=>he});var k=l(20546),U=l(74334),B=l(65328),G=l(31407),Y=l(22547),K=l(23588),ve=l(53239),oe=l(9007),se=l(41182),s=l(21748);const pe=Ce=>Ce&&typeof Ce=="object"&&Ce.type&&s.fT.includes(Ce.type),ke=(Ce,Pe)=>{const Ue=new Map;return Ce.forEach(J=>{if((0,se.c)(J)){const ze=Pe.find(et=>String(et.id)===String(J.id));ze&&ze.type==="blocks"&&Ue.set(String(J.id),String(ze.id))}}),Ue},le=(Ce,Pe)=>{const Ue={id:String(Ce.id),index:Ce.index,type:"blocks",items:{}};return typeof Ce.isComplete=="boolean"&&(Ue.isComplete=Ce.isComplete),typeof Ce.percentComplete=="number"&&(Ue.percentComplete=Ce.percentComplete),Pe.type==="blocks"&&Pe.items&&Pe.items.forEach((J,ze)=>{if(J?.id!=null&&(Ue.items[J.id]={id:J.id,index:ze,isComplete:Ce.isComplete===!0&&ze===0,items:J.items?{}:void 0},J.items&&Array.isArray(J.items))){const et={};J.items.forEach((Ke,it)=>{Ke?.id!=null&&(et[Ke.id]={id:Ke.id,index:it,isComplete:Ce.isComplete===!0})}),Object.keys(et).length>0&&(Ue.items[J.id].items=et)}}),Ue},ce=(Ce,Pe)=>{const Ue=new Set(Pe.map(ze=>String(ze.id))),J=[];return Object.values(Ce.lessons).forEach(ze=>{pe(ze)&&(Ue.has(String(ze.id))||J.push(ze))}),J},re=(Ce,Pe,Ue)=>{const J={totalLegacyLessons:0,successfulMigrations:0,failedMigrations:0},ze={...Ce,lessons:{...Ce.lessons}},et=ce(Ce,Ue);J.totalLegacyLessons=et.length;const Ke=ke(Pe,Ue),it=[];return et.forEach(bt=>{try{const Je=Ke.get(String(bt.id))||String(bt.id),je=Ue.find(_e=>String(_e.id)===Je);if(je&&je.type==="blocks"){const _e=le(bt,je);ze.lessons[String(je.id)]=_e,String(bt.id)!==String(je.id)&&delete ze.lessons[String(bt.id)],J.successfulMigrations++}else it.push(String(bt.id)),J.failedMigrations++}catch(Je){console.warn(`Failed to migrate legacy lesson progress for lesson ${bt.id}:`,Je),it.push(String(bt.id)),J.failedMigrations++}}),{migratedProgress:ze,orphanedLessonIds:it,migrationSummary:J}},Le=Ce=>Object.values(Ce.lessons).some(pe),Ne=Ce=>{let Pe=0,Ue=0;const J=[];return Object.values(Ce.lessons).forEach(ze=>{Ue++,pe(ze)&&(Pe++,J.includes(ze.type)||J.push(ze.type))}),{legacyCount:Pe,totalCount:Ue,legacyTypes:J,hasLegacyProgress:Pe>0}},X=(Ce,Pe,Ue)=>{if(!Le(Ce))return Ce;const J=re(Ce,Pe,Ue);return J.orphanedLessonIds.length>0&&console.warn("Some legacy lessons could not be migrated:",J.orphanedLessonIds),J.migratedProgress},$=Ce=>`rise/course/${Ce}`,z=$("BOOKMARK_LESSON"),Z=$("LOAD_COURSE"),H=(0,k.action)(z),ae={lessons:{},percentComplete:0},he=(0,k.handle)(ae,{[B.Kl]:G.GL,[B.bf]:G.Ew,[B.Om]:G.UZ,[B.w8]:G.tc,[B.sq]:G.$Z,[B.Zp]:G.jS,[B.y1]:G._Y,[Y.z_]:K.Qv,[Y.Eg]:K.Ki,[Y.be]:K.ZL,[Y.jZ]:K.Jx,[Y.Ck]:K.pl,[Y.fV]:K.Ux,[Y.jo]:K.NZ,[Y.V8]:K.uR,[Y.Z8]:K.XW,[Y.Dh]:K.yi,[Y.ug]:K.bu,[z]:Ee,[Z]:Te});function Te(Ce,Pe){const Ue=Pe.course?.lessons??[],J=Pe._originalLessons??Ue,ze=(0,U.y4)(te(Ue));if(typeof ze!="object"||ze===null)return Ce;const et={...Ce,...ze};return Le(Ce)&&J!==Ue?X(et,J,Ue):et}function Ee(Ce,Pe){return(0,U.Fc)(Pe),{...Ce,currentLesson:Pe}}const ge=({index:Ce,lessonId:Pe,settings:Ue,type:J})=>J==="quiz"?{id:Pe,index:Ce,type:J,items:{},passingScore:Number(Ue?.passingScore??oe.hB)}:{id:Pe,index:Ce,type:"blocks",items:{}};function h(Ce){return Ce.type==="quiz"&&"settings"in Ce}function te(Ce){return{lessons:Ce.reduce((Ue,J,ze)=>h(J)?ie({index:ze,items:J.items,lessonId:J.id,lessonProgress:Ue,settings:J.settings,type:J.type}):J.type==="blocks"?ie({index:ze,items:J.items,lessonId:J.id,lessonProgress:Ue,type:J.type}):Ue,{})}}function ie(Ce){const{lessonId:Pe,index:Ue,items:J,lessonProgress:ze={},settings:et,type:Ke}=Ce,it=ge({lessonId:Pe,index:Ue,settings:et,type:Ke});if(J.length===0)return{...ze,[Pe]:it};const bt=Ke==="quiz"?Oe(J):W(J);return{...ze,[Pe]:{...it,items:bt}}}function W(Ce){return Ce.reduce((Pe,Ue,J)=>{const ze=Ue.id,et=Ue.items??[],Ke=(0,ve.BC)(et);return Pe[ze]={id:ze,index:J,items:Ke},Pe},{})}function Oe(Ce){return Ce.reduce((Pe,Ue,J)=>(Pe[Ue.id]={id:Ue.id,index:J},Pe),{})}},22547(qe,be,l){"use strict";l.d(be,{Ck:()=>K,Dh:()=>ke,Eg:()=>s,FU:()=>Le,NC:()=>Z,Nj:()=>X,QI:()=>ce,RW:()=>ae,V8:()=>se,YC:()=>re,Yu:()=>Ne,Z8:()=>pe,be:()=>G,fV:()=>ve,hy:()=>z,jZ:()=>Y,jo:()=>oe,kK:()=>H,mg:()=>$,ug:()=>le,x6:()=>he,z_:()=>B});var k=l(20546);const U=Te=>`rise/course/${Te}`,B=U("QUIZ_LESSON_ADVANCE_STEP"),G=U("QUIZ_LESSON_CLEAR_ANSWER_SELECTION"),Y=U("QUIZ_LESSON_INITIALIZE_DRAWN_QUESTIONS"),K=U("QUIZ_LESSON_RESTART"),ve=U("QUIZ_LESSON_SELECT_QUIZ_ANSWER"),oe=U("QUIZ_LESSON_SET_ANSWER_MATCHES"),se=U("QUIZ_LESSON_SET_ANSWER_TEXT"),s=U("QUIZ_LESSON_ADVANCE_TO_END"),pe=U("QUIZ_LESSON_SET_TIME_REMAINING"),ke=U("QUIZ_LESSON_SUBMIT_ANSWER"),le=U("QUIZ_LESSON_TOGGLE_ANSWER_SELECTION"),ce=(0,k.action)(B),re=(0,k.action)(s),Le=(0,k.action)(K),Ne=(0,k.action)(ve),X=(0,k.action)(se),$=(0,k.action)(le),z=(0,k.action)(pe),Z=(0,k.action)(oe),H=(0,k.action)(ke),ae=(0,k.action)(G),he=(0,k.action)(Y)},23588(qe,be,l){"use strict";l.d(be,{Jx:()=>s,Ki:()=>oe,NZ:()=>ce,Qv:()=>ve,Ux:()=>le,XW:()=>re,ZL:()=>se,bu:()=>Ne,oO:()=>$,pl:()=>ke,uR:()=>pe,yi:()=>Le});var k=l(70313),U=l(31407),B=l(66790),G=l(30373),Y=l(74334),K=l(9007);function ve(H,{lessonId:ae,progressId:he}){const Te=H.lessons[ae];if(!(0,k.Zn)(Te))return H;const Ee=Te.activeIndex??0,ge=he?(Te.items[he]?.index??Ee)+1:Ee+1,h={...Te,activeIndex:ge},te=(0,k.b5)({courseProgress:H,lessonId:ae,updatedLessonProgress:h});return(0,k.bo)({lessonId:ae,prevCourseProgress:H,nextCourseProgress:te})}function oe(H,ae){const he=H.lessons[ae];if(!(0,k.Zn)(he))return H;const Te=Object.keys(he?.items)?.length,Ee={...he,activeIndex:Te+1},ge=(0,k.b5)({courseProgress:H,lessonId:ae,updatedLessonProgress:Ee});return(0,k.bo)({lessonId:ae,prevCourseProgress:H,nextCourseProgress:ge})}function se(H,{lessonId:ae,itemId:he}){const Te=H.lessons[ae];if(!(0,k.Zn)(Te))return H;const Ee=Te.items[he];if(!Ee)return H;const ge={...Ee,selectedIndices:[]},h=X({lessonProgress:Te,itemId:he,updatedQuizItemProgress:ge}),te=(0,k.b5)({courseProgress:H,lessonId:ae,updatedLessonProgress:h});return(0,k.bo)({lessonId:ae,prevCourseProgress:H,nextCourseProgress:te})}function s(H,{lessonId:ae,lessonProgress:he}){return{...H,lessons:{...H.lessons,[ae]:he}}}function pe(H,{lessonId:ae,itemId:he,text:Te}){const Ee=H.lessons[ae];if(!(0,k.Zn)(Ee))return H;const ge=Ee.items[he];if(!ge)return H;const h=typeof Te=="string"&&(0,G.h)(Te)?(0,B.QD)(ge,["text"]):{...ge,text:Te},te=X({lessonProgress:Ee,itemId:he,updatedQuizItemProgress:h}),ie=(0,k.b5)({courseProgress:H,lessonId:ae,updatedLessonProgress:te});return(0,k.bo)({lessonId:ae,prevCourseProgress:H,nextCourseProgress:ie})}function ke(H,ae){const he=H.lessons[ae];if(!(0,k.Zn)(he))return H;const Te=(0,B.s0)(he.items,(te,ie)=>{const W={id:ie.id,index:ie.index};return[te,W]}),ge={...(0,B.QD)(he,["activeIndex","originalItemProgress","passed","percentComplete","questionList","questionsDrawn","reportResults","score"]),...he.passed!==!1&&{passed:he.passed},...he.isComplete!==!1&&{isComplete:he.isComplete},retryAttempts:(he.retryAttempts??0)+1,items:Te},h=(0,k.b5)({courseProgress:H,lessonId:ae,updatedLessonProgress:ge});return(0,k.bo)({lessonId:ae,prevCourseProgress:H,nextCourseProgress:h})}function le(H,{lessonId:ae,itemId:he,selectedIndex:Te,shuffledAnswerIndices:Ee}){const ge=H.lessons[ae];if(!(0,k.Zn)(ge))return H;const h=ge.items[he];if(!h)return H;const te=Ee??h.shuffledAnswerIndices;if(Te==null)return H;const ie=Array.isArray(te)&&te[Te]!=null?te[Te]:Te,W={...h,selectedIndex:ie,...Array.isArray(te)&&{shuffledAnswerIndices:te}},Oe=X({lessonProgress:ge,itemId:he,updatedQuizItemProgress:W}),Ce=(0,k.b5)({courseProgress:H,lessonId:ae,updatedLessonProgress:Oe});return(0,k.bo)({lessonId:ae,prevCourseProgress:H,nextCourseProgress:Ce})}function ce(H,{lessonId:ae,itemId:he,matches:Te}){const Ee=H.lessons[ae];if(!(0,k.Zn)(Ee))return H;const ge=Ee.items[he];if(!ge)return H;const h={...ge,matches:Te},te=X({lessonProgress:Ee,itemId:he,updatedQuizItemProgress:h}),ie=(0,k.b5)({courseProgress:H,lessonId:ae,updatedLessonProgress:te});return(0,k.bo)({lessonId:ae,prevCourseProgress:H,nextCourseProgress:ie})}function re(H,{lessonId:ae,timeRemaining:he}){const Te=H.lessons[ae];if(!(0,k.Zn)(Te))return H;const Ee={...Te,timeRemaining:he},ge=(0,k.b5)({courseProgress:H,lessonId:ae,updatedLessonProgress:Ee});return(0,k.bo)({lessonId:ae,prevCourseProgress:H,nextCourseProgress:ge})}function Le(H,{lessonId:ae,itemId:he,isCorrect:Te,finalRetryAttempt:Ee,passToContinue:ge,skipLessonsIfPassed:h,skipToLessonId:te}){const ie=H.lessons[ae];if(!(0,k.Zn)(ie))return H;const W=ie.passingScore??K.hB,Oe=ie.items[he];if(!Oe)return H;const Ce={...Oe,isCorrect:Te,isComplete:!0},Pe={...ie.items,[he]:Ce},Ue=Object.keys(Pe).length,J=Object.values(Pe).filter(Je=>Je.isCorrect).length,ze=Object.values(Pe).filter(Je=>Je.isComplete).length,et=Math.round(J/Ue*100),Ke=Math.round(ze/Ue*100);let it={...ie,items:Pe,score:et,percentComplete:Ke};if(Ke===100){const Je=et>=W,je=ge?Je:!0;if((0,Y.X_)(Je,et,ae,Ee),it={...it,passed:Je,isComplete:je,reportResults:!0},h&&te&&Je)return z(H,{quizId:ae,destinationId:te,updatedLessonProgress:it})}const bt=(0,k.b5)({courseProgress:H,lessonId:ae,updatedLessonProgress:it});return(0,k.bo)({lessonId:ae,prevCourseProgress:H,nextCourseProgress:bt})}function Ne(H,{lessonId:ae,itemId:he,selectedIndex:Te,shuffledAnswerIndices:Ee}){const ge=H.lessons[ae];if(!(0,k.Zn)(ge))return H;const h=ge.items[he];if(!h)return H;const te=Ee??h.shuffledAnswerIndices;if(Te==null)return H;const ie=Array.isArray(te)&&te[Te]!=null?te[Te]:Te,W=h.selectedIndices??[],Ce=W.includes(ie)?W.filter(Ke=>Ke!==ie):[...W,ie],{selectedIndices:Pe,...Ue}=h,J=Ce.length>0?{...Ue,selectedIndices:Ce,...Array.isArray(te)&&{shuffledAnswerIndices:te}}:{...Ue,...Array.isArray(te)&&{shuffledAnswerIndices:te}},ze=X({lessonProgress:ge,itemId:he,updatedQuizItemProgress:J}),et=(0,k.b5)({courseProgress:H,lessonId:ae,updatedLessonProgress:ze});return(0,k.bo)({lessonId:ae,prevCourseProgress:H,nextCourseProgress:et})}function X({itemId:H,lessonProgress:ae,updatedQuizItemProgress:he}){return{...ae,items:{...ae.items,[H]:he}}}function $(H,ae){const{id:he,passed:Te,passingScore:Ee,score:ge,retryAttempts:h}=ae,te=[Te,h,ge];if(!(te.length===3&&te.every(J=>J!=null)))return H;const W=H.lessons?.[he]?.items??{},Oe=Object.keys(W).length+1,Ce=H.lessons?.[he];if(!Ce)return H;const Pe={...Ce,isComplete:!0,activeIndex:Oe,reportResults:!0,passed:Te,passingScore:Ee,percentComplete:100,retryAttempts:h,score:ge};return{...H,lessons:{...H.lessons,[he]:Pe}}}function z(H,{quizId:ae,destinationId:he,updatedLessonProgress:Te}){const Ee=(0,k.b5)({courseProgress:H,lessonId:ae,updatedLessonProgress:Te}),ge=(0,k.bo)({lessonId:ae,prevCourseProgress:H,nextCourseProgress:Ee}),h=Object.keys(ge.lessons),te=h.findIndex(Oe=>Oe===ae),ie=h.findIndex(Oe=>Oe===he);return te===-1||ie===-1||ie<=te?ge:h.slice(te+1,ie).reduce((Oe,Ce)=>{const Pe=Oe.lessons[Ce];if(!Pe)return Oe;let Ue;(0,k.Zn)(Pe)?Ue=Z(Pe):Ue=(0,U.aM)(Pe);const J=(0,k.b5)({courseProgress:Oe,lessonId:Ce,updatedLessonProgress:Ue});return(0,k.bo)({lessonId:Ce,prevCourseProgress:Oe,nextCourseProgress:J})},ge)}function Z(H){const ae=Object.fromEntries(Object.entries(H.items||{}).map(([he,Te])=>[he,{...Te,isComplete:!0,isCorrect:!0}]));return(0,Y.X_)(!0,100,H.id,!1),{...H,items:ae,isComplete:!0,passed:!0,percentComplete:100,reportResults:!0,score:100}}},68106(qe,be,l){"use strict";l.d(be,{A:()=>B,G:()=>G});var k=l(20546);const U="rise/features/SET_FEATURE_FLAGS",B=(0,k.handle)({},{[U]:(Y,K)=>K}),G=(0,k.action)(U)},29695(qe,be,l){"use strict";l.d(be,{A:()=>ve,r:()=>oe});var k=l(20546),U=l(55693),B=l(52605),G=l(19735);const Y=(se,{fonts:s})=>[...se,...s],K=(se,{fonts:s})=>s,ve=(0,k.handle)([],{[U.LK]:Y,[U.LM]:K}),oe=se=>s=>{(0,B.U2)(se,()=>{s((0,G.m7)(!0))})}},77156(qe,be,l){"use strict";l.d(be,{Ay:()=>se,Wp:()=>ve});var k=l(20546),U=l(55693),B=l(9516);const G="rise/l10n/TOGGLE_LOCALE_SELECTOR",Y=(s,{l10n:pe})=>pe?{...s,...pe}:s,K=(s,pe)=>(0,B.TJ)(["l10n"],pe,s).result,ve=(0,k.action)(G),oe=(s,pe)=>s&&{...s,...!pe&&{localeSelectorOptions:void 0},showLocaleSelector:pe},se=(0,k.handle)(null,{[U.LK]:Y,[U.LM]:Y,[U.cF]:K,[G]:oe})},9798(qe,be,l){"use strict";l.d(be,{A:()=>Ne,R:()=>X});var k=l(20546),U=l(16557),B=l.n(U),G=l(5737),Y=l.n(G),K=l(63528),ve=l.n(K);const se=Y()(2,$=>ve()((0,k.error)($),(0,k.action)($)));var s=l(13578);const pe="rise/learningPathUpNext/FETCH_LP_UP_NEXT",ke="rise/learningPathUpNext/FETCH_LP_UP_NEXT_PENDING",le={isPending:!1,isSuccess:!1,learningPathComplete:!1,nextCourse:{}},ce=$=>!("id"in $),re=($,z)=>{const Z=ce(z);return{...$,isPending:!1,isSuccess:!0,learningPathComplete:Z,lpHasFailedQuiz:z.lpHasFailedQuiz,nextCourse:Z?{}:z}},Le=$=>({...$,isPending:!0}),Ne=(0,k.handle)(le,{[pe]:(0,k.onSuccess)(re),[ke]:Le}),X=$=>[(0,k.action)(ke),se(pe)(B().fromPromise(s.RR)($))]},78824(qe,be,l){"use strict";l.d(be,{O:()=>U});const U=(B=>`rise/partnerContent/${B}`)("SET_ALL_PARTNER_CONTENT")},48147(qe,be,l){"use strict";l.d(be,{_q:()=>B,nF:()=>Y,pp:()=>K,ut:()=>G});var k=l(20546);const U=ve=>`rise/rise-com/${ve}`,B=U("FAVORITE_ADDED"),G=U("FAVORITE_REMOVED"),Y=()=>(0,k.action)(B,void 0),K=()=>(0,k.action)(G,void 0)},12489(qe,be,l){"use strict";l.d(be,{Ay:()=>re,D2:()=>z,NM:()=>H,Se:()=>Ne,gA:()=>$,ts:()=>X,u:()=>Z});var k=l(20546);const U="rise/search/RESET_SEARCH",B="rise/search/SET_SEARCH_ACTIVE",G="rise/search/SET_SEARCH_ACTIVE_LESSONS",Y="rise/search/SET_SEARCH_TRANSLATIONS",K="rise/search/SET_SEARCH_LESSONS",ve="rise/search/SET_SEARCH_TERM",oe={active:!1,activeLessons:[],translations:{},lessons:[],term:null},se=(ae,he)=>he?{...oe,active:ae.active}:ae,s=(ae,he)=>({...ae,active:he}),pe=(ae,he)=>({...ae,activeLessons:he}),ke=(ae,he)=>({...ae,translations:he}),le=(ae,he)=>({...ae,lessons:he}),ce=(ae,he)=>({...ae,term:he}),re=(0,k.handle)(oe,{[U]:se,[B]:s,[G]:pe,[Y]:ke,[K]:le,[ve]:ce}),Le=ae=>(0,k.action)(ae),Ne=Le(U),X=Le(B),$=Le(G),z=Le(Y),Z=Le(K),H=Le(ve)},87507(qe,be,l){"use strict";l.d(be,{Ay:()=>se,pb:()=>s,xi:()=>pe});var k=l(20546);const U=ke=>`rise/sessionPreferences/${ke}`,B=U("LOAD_SESSION_PREFERENCES"),G=U("SET_PREFERS_KEYBOARD_NAVIGATION"),Y=U("SET_STARTING_COURSE_LESSON_SELECTED"),K={prefersKeyboardNavigation:!1,startedCourseWithLessonSelected:!1},ve=(ke,le)=>({...ke,prefersKeyboardNavigation:le}),oe=(ke,le)=>({...ke,startedCourseWithLessonSelected:le}),se=(0,k.handle)(K,{[B]:(ke,le)=>({...ke,...le}),[G]:ve,[Y]:oe}),s=()=>(0,k.action)(B,null),pe=(0,k.action)(G)},69321(qe,be,l){"use strict";l.d(be,{Ay:()=>K,ty:()=>oe,zP:()=>ve});var k=l(21748),U=l(20546);const B="rise/slidesUI/SET_SLIDE_DIRECTION",G="rise/slidesUI/SET_EXITING_SLIDE_OFFSET",Y={slideDirection:k.fY.UP,exitingSlideOffset:0},K=(0,U.handle)(Y,{[B]:(se,s)=>({...se,slideDirection:s}),[G]:(se,s)=>({...se,exitingSlideOffset:s})}),ve=(0,U.action)(B),oe=(0,U.action)(G)},19735(qe,be,l){"use strict";l.d(be,{$2:()=>s,$d:()=>ke,Ay:()=>K,LW:()=>oe,cX:()=>pe,m7:()=>ve,zq:()=>se});var k=l(20546);const B=(le=>`rise/status/${le}`)("SET_LOADED"),G=(le,ce)=>({...le,...ce}),Y={connection:"connected",courseLoaded:!1,fontsLoaded:!1,notFound:!1,partnerContentLoaded:!1},K=(0,k.handle)(Y,{[B]:G}),ve=(le=!1)=>(0,k.action)(B,{fontsLoaded:le}),oe=(le=!1)=>(0,k.action)(B,{courseLoaded:le}),se=(le="connected")=>(0,k.action)(B,{connection:le}),s=(le=!1)=>(0,k.action)(B,{coverLoaded:le}),pe=(le=!1)=>(0,k.action)(B,{notFound:le}),ke=(le=!1)=>(0,k.action)(B,{partnerContentLoaded:le})},58215(qe,be,l){"use strict";l.d(be,{A:()=>Y,s:()=>K});var k=l(20546);const B=(ve=>`rise/ui/${ve}`)("SET_SKIP_TO_NAV_BUTTON_UI"),G={skipToNavButton:null},Y=(0,k.handle)(G,{[B]:(ve,oe)=>({...ve,skipToNavButton:oe})}),K=(0,k.action)(B)},69315(qe,be,l){"use strict";l.r(be),l.d(be,{selectLabelsMap:()=>B,useLabelsMap:()=>G});var k=l(1014),U=l(10730);function B(Y,K){return K?.l10n?.localeLabelSets?.[Y]?.labels||K?.courseLabels?.labels}function G(){const{currentLocale:Y}=(0,U.nY)();return(0,k.d4)(K=>B(Y,K))}},1014(qe,be,l){"use strict";l.d(be,{Kq:()=>Ce,Ng:()=>Pe,JD:()=>Ue,M_:()=>J,wA:()=>ze,d4:()=>et});var k=l(74451),U=l(55693),B=l(20546);const G=(Ke,{labelSet:it})=>({...Ke,...it}),Y=(0,B.handle)({},{[U.LK]:G});var K=l(1168),ve=l(68106),oe=l(29695);const se={isPreview:window.viewType==="preview"},s=((Ke=se)=>Ke);var pe=l(77156),ke=l(9798),le=l(78824);const ce=(Ke,it)=>{const bt=Ke.content.findIndex(je=>je.id===it.id),Je=[...Ke.content];return bt===-1?Je.push(it):Je[bt]=it,{...Ke,content:Je}},re=(Ke,it)=>it.reduce(ce,Ke),Le={[le.O]:re},Ne=(0,B.handle)({content:[]},Le);var X=l(12489),$=l(87507),z=l(69321),Z=l(19735),H=l(22204);const ae={audioPlayerIdOpen:null,focusing:!1,refocusTarget:null,transcriptMedia:null},he=(Ke,it)=>it.audioPlayerId?{...Ke,audioPlayerIdOpen:it.audioPlayerId,focusing:it.focusing??!1,refocusTarget:it.refocusTarget??null,transcriptMedia:it.transcriptMedia??null}:Ke,Te=()=>({audioPlayerIdOpen:null,focusing:!1,refocusTarget:null,transcriptMedia:null}),Ee=(Ke,it)=>Ke.audioPlayerIdOpen?it.audioPlayerId?{...Ke,audioPlayerIdOpen:it.audioPlayerId,focusing:it.focusing??Ke.focusing,transcriptMedia:it.transcriptMedia??Ke.transcriptMedia}:Te():Ke,ge={[H.l6]:he,[H.ju]:Te,[H.Y8]:Ee},h=(0,B.handle)(ae,ge);var te=l(58215),ie=l(76557);const W=ie.BI?{learningPathUpNext:ke.A}:{},Oe=(0,k.HY)({course:U.Ay,courseLabels:Y,courseProgress:K.A,features:ve.A,fonts:oe.A,global:s,l10n:pe.Ay,partnerContent:Ne,search:X.Ay,sessionPreferences:$.Ay,slidesUI:z.Ay,status:Z.Ay,transcriptPanel:h,ui:te.A,...W}),{Provider:Ce,connect:Pe,dispatch:Ue,store:J,useDispatch:ze,useSelector:et}=(0,k.Nv)(Oe)},41182(qe,be,l){"use strict";l.d(be,{K:()=>ge,c:()=>Ee});var k=l(21748);const U={padding:"medium",alignment:"left"},B={embed:{aspectRatio:"16:9"},video:{controls:!0,autoplay:!1},labeledgraphic:{hotspotStyle:"numbers"},process:{navigation:"stepped"},sorting:{feedback:"immediate"},timeline:{orientation:"vertical"},paragraph:{fontSize:"medium"}},G=(h,te=0)=>`item_${h}_${te}`,Y=(h,te)=>[{id:G(`${te}_placeholder`,0),placeholder:!0,type:h,title:`Add ${h} content`}],K=h=>({...U,...B[h]??{}}),ve=h=>typeof h=="string"?h.replace(/<p><br><\/p>/g,""):h,oe=h=>h.map(te=>{if(te&&typeof te=="object"&&!Array.isArray(te)){const ie={};for(const[W,Oe]of Object.entries(te))ie[W]=ve(Oe);return ie}return te}),se=h=>["Introduction","Summary"].map((te,ie)=>({id:G(`${h}_process`,ie),title:te,type:te.toLowerCase(),description:null,isHidden:!0})),s=(h,te)=>[{id:G(`${te}_text`,0),paragraph:h}],pe=(h,te)=>[...se(te),...h],ke=(h,te)=>[{id:G(`${te}_video`,0),caption:"",media:h}],le=(h=[],te)=>({family:"multimedia",id:G(`${te}_embed`,0),items:h.length?h:Y("embed",te),media:{},settings:K("embed"),type:"multimedia",variant:"embed"}),ce=(h,te,ie)=>({family:"interactive-fullscreen",id:G(`${ie}_labeledgraphic`,0),items:h,media:te,settings:K("labeledgraphic"),type:"interactive",variant:"labeledgraphic"}),re=(h,te)=>({family:"interactive-fullscreen",id:G(`${te}_process`,0),items:oe(h),media:{},settings:K("process"),type:"interactive",variant:"process"}),Le=({items:h,piles:te},ie)=>({family:"interactive-fullscreen",id:G(`${ie}_sorting`,0),items:h,media:{},piles:te,settings:K("sorting"),type:"interactive",variant:"sorting"}),Ne=(h,te)=>({family:"text",id:G(`${te}_text`,0),items:oe(h),settings:K("paragraph"),type:"text",variant:"paragraph"}),X=(h,te)=>({family:"interactive-fullscreen",id:G(`${te}_timeline`,0),items:h,media:{},settings:K("timeline"),type:"interactive",variant:"timeline"}),$=(h,te={},ie)=>({family:"multimedia",id:G(`${ie}_video`,0),items:h?.video?ke(h,ie):Y("video",ie),media:{},settings:{...te,...K("video")},type:"multimedia",variant:"video"}),z=({items:h=[]},te)=>le(h.map(({icon:ie,...W})=>W),te),Z=({items:h=[],media:te},ie)=>ce(h.map(({hasMedia:W,...Oe})=>Oe),te,ie),H=({items:h=[]},te)=>{const ie=h.map(W=>({...W,isHidden:!1,type:"step"}));return re(pe(ie,te),te)},ae=({items:h=[]},te)=>X(h.map(({linePosition:ie,...W})=>W),te),he=(h,te)=>Ne(s(h,te),te),Te=(h,te)=>{switch(h.type){case"embed":return z(h,te);case"map":return Z(h,te);case"process":return H(h,te);case"sorting":return Le(h,te);case"timeline":return ae(h,te);case"screencast":case"slidecast":case"video":return $(h.media,h.settings,te);default:throw new Error(`Unknown legacy lesson type: ${h.type}`)}},Ee=h=>typeof h?.type=="string"&&k.fT.includes(h.type),ge=h=>{if(!Ee(h))return h;const te=String(h.id),ie={description:"",icon:"Article",type:"blocks"},W=[Te(h,te)],Oe=typeof h.description=="string"?h.description.trim():"";return Oe&&W.unshift(he(Oe,`${te}_desc`)),{...h,...ie,items:W,media:{}}}},74334(qe,be,l){"use strict";l.d(be,{Fc:()=>Ze,hd:()=>ur,qO:()=>Se,O9:()=>hr,X_:()=>yo,jr:()=>Yn,_$:()=>kc,JK:()=>Wa,GJ:()=>il,y4:()=>Nt,As:()=>ll,Hm:()=>Va,Wk:()=>cl,og:()=>Ua,GS:()=>yn,xr:()=>Yr,IV:()=>Zr,bb:()=>qt,o1:()=>$a,wW:()=>Xr,vb:()=>gs,aM:()=>ns,C2:()=>Jt,xS:()=>c0,no:()=>Ac,m5:()=>dl});var k=l(53129),U=l(78979),B=l(16904),G=l.n(B),Y=l(45497),K=l.n(Y),ve=l(82676),oe=l.n(ve),se=l(79151),s=l.n(se),pe=l(33799),ke=l.n(pe),le=l(87654),ce=l.n(le),re=l(58267),Le=l.n(re),Ne=l(29727),X=l.n(Ne),$=l(96093),z=l.n($),Z=l(20515),H=l.n(Z),ae=l(22496),he=l.n(ae),Te=l(17772),Ee=l.n(Te),ge=l(9894),h=l.n(ge),te=l(64899),ie=l.n(te);const W=de=>K()(U.QZ,de),Oe=de=>oe()({[de]:U.QZ}),Ce=({startTime:de,stopTime:De})=>De-de,Pe=de=>{switch(de.type){case"FILL_IN_THE_BLANK":return je(de);case"MATCHING":return en(de);default:return et(de)}},Ue=de=>{switch(de.type){case"FILL_IN_THE_BLANK":return je(de);case"MATCHING":return en(de);case"MULTIPLE_CHOICE":return vt(de);case"MULTIPLE_RESPONSE":return tt(de);default:return vt(de)}},J=({isUnfinished:de,item:De,itemProgress:dt})=>{switch(De.type){case"FILL_IN_THE_BLANK":return _e(de)(dt);case"MATCHING":return ho(De,de)(dt);case"MULTIPLE_CHOICE":return Ct(De,de)(dt);case"MULTIPLE_RESPONSE":return Kt(De,de)(dt);default:return Ct(De,de)(dt)}},ze=de=>[de],et=de=>{const De=de.answers||[];if(de.shuffledAnswerIndices&&Array.isArray(de.shuffledAnswerIndices)){const dt=[];return De.forEach((Et,as)=>{const js=de.shuffledAnswerIndices[as];dt[js]=Et}),dt.map(Oe("title"))}return De.map(Oe("title"))},Ke=W(Ee()("id")),it=W(Ee()("title")),bt=de=>De=>s()(h()("id",De),et(de)),Je=de=>ce()(H())(et(de)),je=K()(he()("title"),et),_e=de=>Le()(G()(de),G()(""),W(Ee()("text"))),vt=de=>K()(bt(de),Ee()("correct"))(de),Ct=(de,De)=>Le()(G()(De),G()([]),dt=>{const Et=Ee()("selectedIndex",dt);return Et===void 0?[]:ze(Je(de)(Et))}),tt=de=>K()(ke(),X()(bt(de)),Ee()("corrects"))(de),Kt=(de,De)=>Le()(G()(De),G()([]),dt=>{const Et=Ee()("selectedIndices",dt)||[];return ke()(Et.map(as=>ze(Je(de)(as))))}),Q=({sourceId:de,sourceTitle:De,targetId:dt,targetTitle:Et})=>({source:{id:`source_${de}`,title:De},target:{id:`target_${dt}`,title:Et}}),ot=W(Ee()("matchTitle")),cs=de=>{const De=Ke(de);return Q({sourceId:De,sourceTitle:it(de),targetId:De,targetTitle:ot(de)})},$e=de=>(De,dt)=>{const Et=et(de),as=Et.find(Lo=>Lo.id===dt),js=Et.find(Lo=>Lo.id===De);return Q({sourceId:Ke(as),sourceTitle:it(as),targetId:Ke(js),targetTitle:ot(js)})},en=K()(X()(cs),et),ho=(de,De)=>Le()(G()(De),G()([]),K()(ie(),z()($e(de)),Ee()("matches")));var pn=l(77720),Qe=l(10126),tn=l(31407),Us=l(23588),$s=l(76557),An=l(84492),or=l(20377),mo=l.n(or);const At=de=>de!==void 0,Es=mo()(At,K()(JSON.parse,An.Base64.decode)),po=(de,De)=>window.courseData?de(window.courseData):window.course?{course:de(window.course),media:[]}:De;var Wo=l(3793),M=l.n(Wo),rt=l(60742),pt=l.n(rt),fn=l(5378),Xt,Gn;const fo=`${(0,$s._$)("RBC_URI")}/api/partner_content`,Kn=null,vn=M()(`${fo}/`),Fe={transformRequest:[(de,De)=>(De.Authorization=`Bearer ${(0,fn.gf)()}`,de)],headers:{"Content-Type":"application/json"}},St=()=>Gn({...Fe,url:Kn}).toPromise().then(Xt(["data","types"])),_t=de=>Gn({...Fe,url:vn(de)}).toPromise().then(Xt(["data","content"])),Ds=de=>(0,fn.Em)({method:"POST",url:fo,data:JSON.stringify({ids:de}),...Fe}).map(pt()(["data","content"]));var Cn=l(14685),Bt=l.n(Cn),Rt=l(50229),vo=l.n(Rt);const rr=(0,$s._$)("SERVICE_ENV")==="prod",Bs=rr?"com":"zone",Sa=Bt()(JSON.stringify,vo()(new RegExp(`https://images.riseusercontent.${Bs}/`,"g"),`${(0,$s._$)("IMAGES_URI")}/`),vo()(new RegExp(`https://riseusercontent.${Bs}/`,"g"),`${(0,$s._$)("CDN_USER_CONTENT_URI")}/`),vo()(new RegExp(`https://video.rise.${Bs}/`,"g"),`https://video.riseusercontent.${Bs}/`),mo()(G()(!rr),vo()(new RegExp("https://video.rise.com/","g"),"https://video.riseusercontent.zone/")),JSON.parse);var Zi=l(55423),Tc=l.n(Zi),Yi=l(7766),ar=l.n(Yi),Xi=l(72521),Ji=l.n(Xi),Hr=l(48639),Fr=l.n(Hr),Xe=l(46387),ut=l.n(Xe),us=l(70828),go=l.n(us),qi=l(27690),Ko=l.n(qi),fs=l(60741),zr=l.n(fs),ys=l(93677),ir=l.n(ys),Co=l(40552),_o=l.n(Co),sn=l(45561),Ta=l.n(sn),_n=l(75414),xo=l.n(_n),rs=l(23476),bo=l.n(rs),lr=l(72233),Ia=l.n(lr),vs=l(16097),Na=l.n(vs),xn=l(63159),bn=l.n(xn);const Qt=de=>!!de,cr={[Qe.En]:["activeIndex",ut()],[Qe.Ay]:["audioVideoPlayhead",Number],[Qe.l7]:["isComplete",Qt],[Qe.Ko]:["correctlyAnswered",ut()],[Qe.WY]:["percentComplete",ut()],[Qe.sZ]:["retryAttempts",ut()],[Qe.jw]:["score",ut()],[Qe.eZ]:["currentTime",ut()],[Qe.Ze]:["percentViewed",ut()],[Qe.mj]:["reportResults",ut()],[Qe.p3]:["passed",ut()],[Qe.ft]:["passingScore",ut()],[Qe.pd]:["questionsDrawn",ut()],[Qe.ce]:["questionList",X()(X()(ut()))],[Qe.M$]:["timeRemaining",Number]},Lt=de=>(De,dt)=>ar()([Fr()(cr[dt])],ir()(cr[dt])(De),de),ja=de=>(De,dt)=>{let Et=ir()(ka[dt])(De);return dt===Qe.fd&&(Et=Et(Ee()("items",de))),{[Fr()(ka[dt])]:Et}},Qn=de=>De=>{const dt=de?.[De.index];return bn()(()=>Ko()(dt),()=>K()(Ta()(De),xo(),ie(),z()(ja(De)))(dt))(De)},Vr=de=>X()(Qn(de)),gt=K()(xo(),ie(),z()(ja(null))),el=de=>De=>{const dt=Ee()(Qe.fd,de),Et=Ee()("items",De);return K()(mo()(()=>Tc()([Ji()(Qe.ce),h()(Qe.pd,!0),()=>!Ko()(dt)])(de),as=>{const js=X()(gt,dt);return ar()("originalItemProgress",js,as)}),Ta()(De),bn()(()=>go()(dt),Na()(_o()("items"),Vr(dt)(Et))),xo(),ie(),z()(Lt(De)))(bo()(zr()(cr),de))};function It(de,De){const dt=Ee()("lessons",De),Et=as=>{const js=Ee()(as.index,dt);return bn()(()=>Ko()(js),el(js))(as)};return bn()(()=>go()(dt),K()(ar()("percentComplete",Ia()(0,Qe.WY,De)),oe()({lessons:X()(Et)})))(de)}const ka={[Qe.Ay]:["audioVideoPlayhead",Number],[Qe.Ko]:["correctlyAnswered",ut()],[Qe.l7]:["isComplete",Qt],[Qe.w5]:["isCorrect",Qt],[Qe.Wj]:["isViewed",Qt],[Qe.fd]:["items",Vr],[Qe.BW]:["percentViewed",ut()],[Qe.qX]:["matches",ut()],[Qe.sZ]:["retryAttemptCount",Number],[Qe.Pz]:["selectedIndex",ut()],[Qe.Ig]:["selectedIndices",ut()],[Qe.JG]:["shuffledAnswerIndices",ut()],[Qe.S$]:["text",ut()]};var tl=l(50312),Aa=l.n(tl),Ra=l(98801),Ur=l.n(Ra),sl=l(65982),$r=l.n(sl);const Wr={activeIndex:[Qe.En,ut()],audioVideoPlayhead:[Qe.Ay,Number],correctlyAnswered:[Qe.Ko,ut()],currentTime:[Qe.eZ,ut()],isComplete:[Qe.l7,Number],passingScore:[Qe.ft,ut()],percentComplete:[Qe.WY,ut()],percentViewed:[Qe.Ze,ut()],retryAttempts:[Qe.sZ,ut()],score:[Qe.jw,ut()],questionsDrawn:[Qe.pd,ut()],questionList:[Qe.ce,X()(X()(ut()))],reportResults:[Qe.mj,ut()],passed:[Qe.p3,ut()],timeRemaining:[Qe.M$,Number]},Pa=(de,De)=>({[Fr()(Kr[De])]:ir()(Kr[De])(de)}),Gr=de=>K()(bn()(go(),Ur()(Ee()("index",de))),xo(),ie(),z()(Pa))($r()(go(),bo()(zr()(Kr),de))),wa=K()(xo(),ie(),X()(Gr)),Pt=(de,De)=>({[Fr()(Wr[De])]:ir()(Wr[De])(de)});function nl(de){const De=Ee()("items",de),dt=Ee()("index",de),Et=bn()(Aa()(Ko(),go()),wa)(De);return K()(Ur()(dt),bn()(()=>Aa()(Ko(),go())(Et),ar()(Qe.fd,Et)),xo(),ie(),z()(Pt))(bo()(zr()(Wr),de))}const Ma=K()(Ur()(Qe.WY),Ia()(0,"percentComplete")),Kr={audioVideoPlayhead:[Qe.Ay,Number],correctlyAnswered:[Qe.Ko,ut()],isComplete:[Qe.l7,Number],isCorrect:[Qe.w5,Number],isViewed:[Qe.Wj,Number],items:[Qe.fd,wa],matches:[Qe.qX,ut()],percentViewed:[Qe.BW,ut()],retryAttemptCount:[Qe.sZ,Number],selectedIndex:[Qe.Pz,ut()],selectedIndices:[Qe.Ig,X()(Number)],shuffledAnswerIndices:[Qe.JG,X()(Number)],text:[Qe.S$,ut()]},Zn=de=>window.env?.[de],Oa=de=>`${Zn("CDN_USER_CONTENT_URI")}/${de}`,dr=()=>!!window.shareId,_r=()=>!!window.contentId,Qr=()=>!!window.snapshotId,ol=()=>!!window.shareId&&!!window.hasPassword,Da=_r()&&!$s.BI?Sa:de=>de,Ha={fetch:()=>{if(za.isExport||window.courseData||window.course)return po(Es,{});{const de=()=>window.shareId?`${Zn("RISE_RUNTIME_URI")}/boot/share/${window.shareId}`:_r()?`${Zn("RISE_RUNTIME_URI")}/boot/businessContent/${window.contentId}`:Qr()?`${Zn("RISE_RUNTIME_URI")}/boot/snapshot/${window.snapshotId}`:`${Zn("RISE_RUNTIME_URI")}/boot/${window.courseId}`;return(0,pn.Em)({method:"GET",url:de(),json:!0,withCredentials:!0,timeout:3e4}).then(pn.lZ).then(De=>typeof De=="object"?De:Es(De)).then(Da)}},fetchPartnerContent:de=>za.isExport||window.partnerContent?window.partnerContent.content:Ds(de).toPromise(),getEnv:Zn,isPasswordProtected:ol,isShare:dr,isSnapshotPreview:Qr,resolvePath:Oa,verifySharePassword:de=>(0,pn.Em)({method:"POST",url:`${Zn("RISE_RUNTIME_URI")}/password`,data:{shareId:window.shareId,password:de},json:!0}).then(De=>De.body)},Fa=(de,{id:De,type:dt,...Et})=>dt==="quiz"?(0,Us.oO)(de,{id:De,...Et}):(0,tn.GL)(de,De),rl=(de,De)=>de+((De||{})[Qe.l7]||0),al=(de,De)=>(dt,{id:Et,type:as,...js})=>De.lessons[Et]?{...dt,...de(Fa(De,{id:Et,type:as,...js}).lessons[Et])}:dt;function jc(de,De,dt){const Et=De.reduce(al(de,dt),{}),as=Object.keys(dt.lessons||{}).length,js=Object.values(Et).reduce(rl,0),Lo=Math.round(js/as*100);return{lessons:Et,p:Lo}}window.Rise=Object.assign(window.Rise||{},{completeLessons:jc,decodeCourseProgress:It,encodeCourseProgress:Ma,encodeLessonProgress:nl});const za={...Ha,...window.Runtime??{}},at=za,kc=de=>window.env?.[de],il=de=>at.getMasteryScore!=null?at.getMasteryScore(de):de.passingScore,Zr=de=>{if(at.onCreateHistory!=null)return at.onCreateHistory(de)},ur=(de={})=>at.fetch!=null?Promise.resolve(at.fetch()):Promise.resolve(de),Se=(de=[])=>{if(at.fetchPartnerContent!=null)return at.fetchPartnerContent(de)},Ze=de=>{if(at.bookmark!=null)return at.bookmark(de)},Nt=de=>at.getProgress!=null?at.getProgress(de):de,ns=de=>at.setLessonComplete!=null?at.setLessonComplete(de):de,Jt=de=>at.setLessonProgress!=null?at.setLessonProgress(de):de,gs=(de,De)=>at.setCourseProgress!=null?at.setCourseProgress(de,De):de,hr=de=>{if(at.finish!=null)return at.finish(de)},yo=(de,De,dt,Et)=>{at.finishQuiz!=null&&at.finishQuiz(de,De,dt,Et)},Yn=(de,De,dt,Et)=>{at.finishStoryline!=null&&at.finishStoryline(de,De,dt,Et)},ll=()=>at.isComplete!=null?at.isComplete():null,Va=()=>at.isExport!=null?at.isExport():!1;function cl(){if(at.isExport!=null){const de=window.partnerContent?.content;return at.isExport()&&!!de}return!1}const yn=()=>at.isShare!=null?at.isShare():!1,Yr=()=>at.isSnapshotPreview!=null?at.isSnapshotPreview():!1,Ua=()=>at.isPasswordProtected!=null?at.isPasswordProtected():!1,$a=de=>{const De=de||"";return at.resolvePath!=null?De.startsWith("http")||De.startsWith("data:")||De.startsWith("//")?De:at.resolvePath(De):De.startsWith("data:")||De.startsWith("http")||De.startsWith("//")?De:`/${De}`},dl=de=>at.verifySharePassword!=null?at.verifySharePassword(de):Promise.resolve({isValid:!0}),qt=de=>{if(at.reportAnswer!=null){const{id:De,isCorrect:dt,isUnfinished:Et=!1,item:as,itemProgress:js,duration:Lo,retryAttempts:d0,title:wc}=de,{id:ul,title:Mc,type:mr}=as;return at.reportAnswer({id:De,type:mr,isCorrect:dt,itemId:ul,questionTitle:(0,U.QZ)(Mc),quizTitle:(0,U.QZ)(wc),retryAttempts:d0,answers:Pe(as),correctResponse:Ue(as),response:J({isUnfinished:Et,item:as,itemProgress:js}),isUnfinished:Et,latency:Ce(Lo)})}return!1},Ac=de=>{if(at.startLesson!=null)return at.startLesson(de)},Wa=()=>{if(at.getLocale!=null)return at.getLocale()},c0=de=>{if(at.setLocale!=null)return at.setLocale(de)},{browser:Rc,os:Xn}=new k.UAParser(window.navigator.userAgent).getResult(),Pc=[Rc.name,Rc.version].filter(Boolean).join(" "),nn=[Xn.name,Xn.version].filter(Boolean).join(" "),Xr=de=>{if(at.sendTelemetry!=null)return at.sendTelemetry({...de,browser:Pc,os:nn})}},22204(qe,be,l){"use strict";l.d(be,{Y8:()=>K,ju:()=>Y,l6:()=>G});var k=l(3793),U=l.n(k);const B=U()("rise/transcriptPanel/"),G=B("OPEN_TRANSCRIPT_PANEL"),Y=B("CLOSE_TRANSCRIPT_PANEL"),K=B("UPDATE_TRANSCRIPT_PANEL")},78308(qe,be,l){"use strict";l.d(be,{Z:()=>G});var k=l(26372),U=l(94036),B=l(97447);function G(){const Y=(0,U.Zp)(),K=(0,U.zy)();return(0,k.useCallback)((ve,oe)=>{if(typeof ve=="number")return Y(ve);const se=(0,B.B)(ve,K),s=se.pathname+(se.search?`?${se.search}`:"")+(se.hash||"");return Y(s,oe)},[Y,K])}},48156(qe,be,l){"use strict";l.d(be,{Dh:()=>G,HH:()=>pe,S:()=>s,UR:()=>Y,Zn:()=>$,cP:()=>Ne,fF:()=>le,pP:()=>Le,uQ:()=>ke,vC:()=>X,xp:()=>B});var k=l(9516),U=l(74502);const B=(z,Z,H)=>(0,U.uW)(z)&&Z?H?.[Z]?.[z.l10nId]:void 0,G=(z,Z,H,ae)=>{if(!(0,U.uW)(z))return z;if(!Z||!H||!ae)return;const he=B(z,Z,ae);if(he!==void 0)return he;const Te=B(z,H,ae);if(Te!==void 0)return Te;const Ee=ce(z,ae);return Ee.length>0?Ee[0].value:void 0},Y=(z,Z,H,ae)=>!Z||!H||!ae?z:(0,k.v9)(z).reduce((he,{l10nId:Te,path:Ee})=>{const ge=G({l10nId:Te},Z,H,ae),h=(0,k.re)(Ee,ge,he);return h.type==="accepted"?h.result:he},z),K=(z,Z,H)=>Y(z,Z,pe(H),le(H)),ve=(z,Z,H)=>G(z,Z,pe(H),le(H)),oe=(z,Z,H)=>B(z,Z,le(H));function se(z,Z){return Z?.find(H=>H.locale===z)}function s(z){return z?.l10n?.locales??[]}function pe(z){return z?.l10n?.defaultLocale}function ke(z,Z){const H=pe(Z);return!!(z&&H&&z!==H)}function le(z){return z?.l10n?.translations??{}}function ce(z,Z){return(0,U.uW)(z)?Object.keys(Z).flatMap(H=>{const ae=B(z,H,Z);return ae?{locale:H,value:ae}:[]}):[]}const re=(z,Z)=>ce(z,le(Z)),Le=z=>(0,U.uW)(z)?z.l10nId:void 0;function Ne(z){return z?.l10n?.localeSelectorOptions}function X(z){return z?.l10n?.languageCodeMetadata}function $(z){return z?.l10n?.showLocaleSelector}},31525(qe,be,l){"use strict";l.d(be,{DB:()=>Te,H5:()=>he,ME:()=>z,bX:()=>Ee,dE:()=>Z,ny:()=>ae,xm:()=>$});var k=l(72521),U=l.n(k),B=l(90769),G=l.n(B),Y=l(76557);const K=(0,Y._$)("CDN_USER_CONTENT_URI"),ve=(0,Y._$)("CDN_URI"),oe=U()("useCrushedKey"),se=(0,Y._$)("IMAGES_URI"),s=G()(/-stock[-_]image.jpg/),pe=(0,Y._$)("RBC_IMAGES_URI"),ke=(0,Y._$)("ASSETS_URI"),le=G()(new RegExp(`^${K}/review`)),ce=(0,Y._$)("CDN_US_URI"),re=ge=>{const{crushedKey:h,key:te,useCrushedKey:ie,src:W}=ge;return oe(ge)?ie&&h?(0,Y.o1)(h):(0,Y.o1)(te):(0,Y.o1)(W)},Le=ge=>`${K}/${ge}`,Ne=ge=>!ge||!ge.key?"":`${pe}/b:fff,f:jpg,s:cover,w:550,h:296/${ge.key}`,X=ge=>{if(!ge||!ge.key)return"";const{crushedKey:h,key:te,useCrushedKey:ie}=ge;return oe(ge)&&ie?h?`${se}/f:jpg,b:fff,s:cover,w:340/${h}`:"":`${se}/f:jpg,b:fff,s:cover,w:340/${te}`},$=ge=>{if(!ge||!ge.key)return"";const{crushedKey:h,key:te,useCrushedKey:ie}=ge;return se?oe(ge)&&ie&&h?`${se}/f:png,a:retain,s:cover,t:true,w:340/${h}`:`${se}/f:png,a:retain,s:cover,t:true,w:340/${te}`:re(ge)},z=ge=>{if(!ge||!ge.key)return"";const{crushedKey:h,key:te,useCrushedKey:ie,sourcedFrom:W}=ge;if(!se)return re(ge);const Oe=W==="AI",Ce=W==="LIBRARY";return s(te)||Oe||Ce?`${se}/f:jpg,a:retain,b:fff,w:1680,q:90/${te}`:oe(ge)?ie&&h?`${K}/${h}`:`${K}/${te}`:le(ge.src)?ge.src:`${se}/f:jpg|png,a:retain,b:fff/${te}`},Z=(ge,h="src")=>{const{key:te,src:ie,thumbnail:W,thumbnailKey:Oe}=ge,Ce=K?`${K}/${te}`:re({key:te,src:ie}),Pe=K?`${K}/${Oe}`:re({key:Oe,src:W});return h==="src"?Ce:Pe},H=ge=>{if(!ge||!ge.key)return"";const{crushedKey:h,key:te,useCrushedKey:ie}=ge;return oe(ge)&&ie&&h?`${se}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${h}`:`${se}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${te}`},ae=({height:ge,imageKey:h,width:te})=>{if(pe){const ie=encodeURIComponent(h);return`${pe}/b:fff,f:jpg,s:cover,w:${te},h:${ge}/${ie}`}return(0,Y.o1)(`partnerContent/${h}`)},he=()=>{const ge=ke||se,h="NBIC_logo_light_bulb.png";return ge?`${ge}/f:png,a:retain,s:cover,w:276,h:160/assets/rise/assets/partner-content/${h}`:(0,Y.o1)(`partnerContent/${h}`)},Te=()=>{const ge="NBIC_logo_blue.svg";return ve?`${ve}/assets/rise/assets/partner-content/${ge}`:(0,Y.o1)(`partnerContent/${ge}`)},Ee=ge=>{const{key:h,src:te}=ge;return ce?`${ce}/${h}`:re({key:h,src:te})}},72076(qe,be,l){"use strict";l.d(be,{Em:()=>s,Vu:()=>oe,on:()=>se,uI:()=>pe,wD:()=>ke,xQ:()=>le});var k=l(62398),U=l(45561),B=l.n(U),G=l(76557),Y=l(82277);const K=G.BI?window.env:B()(window.env,{ACCESS_COOKIE_NAME:(0,Y.W5)(),REDIRECT_URI:window.location.origin+"/auth-callback"}),ve=(0,k.A)(K),oe=ve.closeSession,se=ve.on,s=ve.request,pe=ve.refreshSession,ke=ve.resetSession,le=ve.getAuthorizationUrl,ce=ve.fetch},3055(qe,be,l){"use strict";l.d(be,{lL:()=>he,t9:()=>je,XC:()=>Pe,xD:()=>Je,cP:()=>ge,Wn:()=>h,W8:()=>W,WA:()=>Ce});var k=l(49792),U=l(30717),B=l.n(U),G=l(45497),Y=l.n(G),K=l(73578),ve=l.n(K),oe=l(95033),se=l.n(oe),s=l(48957),pe=l.n(s),ke=l(81775),le=l.n(ke),ce=l(20377),re=l.n(ce),Le=l(66798),Ne=l(86889),X=l(62131),$=l(86649),z=l(52006);Ne.A.register(X.A),Ne.A.register($.A);var Z;const H="#ff631e";function ae(_e){if(_e==null)return null;try{return(0,z.to)((0,z.qg)(_e),"srgb")}catch{return null}}const he=B()({NEAR_BLACK:null,DARK:null,MED:null,LIGHT:null}),Te=[[32,he.NEAR_BLACK],[64,he.DARK],[128,he.MED],[256,he.LIGHT]],Ee=_e=>{const vt=ae(_e);if(vt==null)return 0;const[Ct,tt,Kt]=vt.coords.map(ot=>ot*255);return .2126*Ct+.7152*tt+.0722*Kt},ge=_e=>_e?1-Ee(_e)/255>.4:!1,h=_e=>_e?1-Ee(_e)/255>.25:!1,te=_e=>{if(!_e)return null;const vt=parseInt(_e.substr(1),16);return Number.isNaN(vt)?null:vt.toString(16).padStart(6,"0").padStart(7,"#")},ie=(_e,vt)=>{const Ct=te(vt);return!Ct||Ct.length!==7?_e:Ct},W=ve()((_e,vt)=>{const Ct=(0,k.A)(vt).slice(0,3),tt=_e>=0?Ct.map(Kt=>(1-_e)*Kt+_e*255):Ct.map(Kt=>(1+_e)*Kt);return Oe(tt)}),Oe=(_e=[])=>"#"+_e.slice(0,3).map(vt=>Math.min(255,Math.max(0,Math.round(vt))).toString(16).padStart(2,"0")).join(""),Ce=W(.9),Pe=_e=>{const vt=Ee(_e);return Te.find(([tt])=>tt>vt)?.[1]},Ue=_e=>_e.toString(16).padStart(6,"0").padStart(7,"#"),J=re()(pe()(Number),Y()(le(),Ue)),ze=Y()(J,se()(H));function et(_e,vt){if(_e==="none"||!_e||!vt)return{};const Ct=Ke(_e,vt),tt=`${Ct.toFixed(2)}:1`;let Kt=!1,Q=!1,ot=!1,cs=!1,$e=!1;return Ct>=7?(Kt=!0,Q=!0,ot=!0,cs=!0,$e=!0):Ct>=4.5?(Kt=!0,ot=!0,$e=!0):Ct>=3&&(ot=!0,$e=!0),{ratio:tt,bodyTextAA:Kt,bodyTextAAA:Q,largeTextAA:ot,largeTextAAA:cs,graphicalUiComponentsAA:$e}}function Ke(_e,vt){return(0,z.v2)(ae(_e),ae(vt),"WCAG21")}function it(_e){const[vt,Ct,tt]=Z(_e).slice(0,3).map(bt);return .2126*vt+.7152*Ct+.0722*tt}function bt(_e){const vt=_e/255;return vt<=.04045?vt/12.92:((vt+.055)/1.055)**2.4}const Je=_e=>et("#fff",_e)["bodyTextAA"]?Le.Em.LIGHT:Le.Em.DARK,je={[he.NEAR_BLACK]:W(.1),[he.DARK]:W(-.4),[he.MED]:W(-.2),[he.LIGHT]:W(.3)}},21748(qe,be,l){"use strict";l.d(be,{CY:()=>pe,C_:()=>te,S6:()=>h,Yq:()=>ae,by:()=>he,fT:()=>ie,fY:()=>H,o4:()=>Te,xA:()=>Y,y4:()=>Z,yG:()=>G});var k,U=l(30717),B=l.n(U);const G={validEmail:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,validIframe:/^<iframe(.*)?\ssrc="(?:(?:(?:https?):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?"(.*)?><\/iframe>$/,validUrl:/^(?:(?:(?:https?):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/},Y={ARTICLE:"Article",INTERACTION:"Interaction",QUIZ:"Quiz",VIDEO:"Video"},K={EDITOR:1,MANAGER:2,OWNER:3},ve={[K.EDITOR]:"Author",[K.MANAGER]:"Admin",[K.OWNER]:"Owner"},oe=Object.values(K).map(W=>({id:W,title:ve[W]})),se=({name:W,isOnePage:Oe})=>k?{Admin:Oe?"Microlearning manager":"Manager",Author:Oe?"Microlearning editor":"Editor",Owner:Oe?"Microlearning owner":"Owner"}[W]:{Admin:Oe?"Microlearning manager":"Course manager",Author:Oe?"Microlearning collaborator":"Course collaborator",Owner:Oe?"Microlearning owner":"Course owner"}[W],s="questionBanks",pe="2% 0px 2% 0px",ke=9,le=13,ce=27,re=32,Le=38,Ne=40,$=864e5*3,z=100,Z="onePage",H={UP:"up",DOWN:"down"},ae={PREVIEW:"preview-lesson"},he=B()({COMPACT:null,COVER:null,OVERLAY:null,SIDEBAR:null}),Te={DESKTOP:"desktop",TABLET_PORTRAIT:"tablet-portrait",TABLET_LANDSCAPE:"tablet-landscape",MOBILE_PORTRAIT:"mobile-portrait",MOBILE_LANDSCAPE:"mobile-landscape"},Ee=Object.values(Te),ge={PORTRAIT:"portrait",LANDSCAPE:"landscape"},h={DARK:"#000",LIGHT:"#fff"},te={SMALL:{label:"Small",value:1},MEDIUM:{label:"Medium",value:1.5},LARGE:{label:"Large",value:2}},ie=["embed","map","process","sorting","timeline","video","screencast","slidecast"]},53239(qe,be,l){"use strict";l.d(be,{BC:()=>k,QI:()=>B,f5:()=>G,hh:()=>U});const k=oe=>oe.reduce((se,s,pe)=>("id"in s&&(se[s.id]={id:s.id,index:pe}),se),{}),U=oe=>({...oe,percentComplete:K({items:oe.items,key:"isComplete"})}),B=oe=>({...oe,percentComplete:K({items:oe.items,key:"isComplete"})}),G=oe=>({...oe,percentViewed:K({items:oe.items,key:"isViewed"})});function Y({itemId:oe,isCorrect:se,progress:s}){const pe={...s,items:{...s.items,[oe]:{...s.items?.[oe],id:oe,index:s.items?.[oe]?.index??0,isComplete:se,isViewed:se,...s.items?.[oe].isCorrect===void 0?{isCorrect:se}:{}}}};pe.items[oe]?.isCorrect===!1&&(pe.lastIncorrectCardId=oe);const ke=ve(pe),le=ke.percentComplete!==100?B(ke):ke,ce=G(le);return ce.percentComplete===100?{...ce,isComplete:!0}:ce}function K({items:oe,key:se}){const s=oe??{},pe=Object.keys(s).length,ke=Object.values(s).filter(le=>le?.[se]).length;return pe===0?0:Math.round(ke/pe*100)}function ve(oe){const s=Object.values(oe.items||{}).filter(pe=>pe.isCorrect===!0).length;return{...oe,correctlyAnswered:s}}},88323(qe,be,l){"use strict";l.d(be,{L:()=>U.L,y:()=>k.yf});var k=l(26067),U=l(93905),B=l(76557);const G="datadoghq.com",Y=(0,B._$)("SERVICE_ENV"),K=(0,B._$)("RISE_FRONTEND_SHA"),ve=(0,B._$)("RISE_FRONTEND_LOCAL_DEV")==="true"||window.location.hostname==="rise.dev.articulate.zone",oe=window.Cypress!=null,se=B.BI?[/https:\/\/.*(\.dev)?\.rise\.(com|zone).*/,location.origin]:[/https:\/\/(rise(\.dev)?|360)\.articulate\.(com|zone).*/]},22795(qe,be,l){"use strict";l.d(be,{$t:()=>le,NO:()=>s,Pf:()=>pe,WE:()=>ke,c:()=>oe});var k=l(53129),U=l.n(k);const B=()=>{if(!navigator.userAgent)return"unknown";const re=new k.UAParser(navigator.userAgent).getResult();return re.device?.model?re.device.model:re.os?.name?re.os.name:re.browser?.name?re.browser.name:"unknown"},G=()=>{if(!navigator.userAgent)return"unknown";const re=new k.UAParser(navigator.userAgent).getResult();return re.device?.model&&re.os?.version?re.os.version:re.browser?.version?re.browser.version:"unknown"},Y=()=>{if(!navigator.userAgent)return"desktop";const re=new k.UAParser(navigator.userAgent).getResult();return re.device?.type==="mobile"?"mobile":re.device?.type==="tablet"?"tablet":"desktop"},K=()=>{if(!navigator.userAgent)return"unknown";const re=new k.UAParser(navigator.userAgent).getResult();if(re.device?.vendor)return re.device.vendor;if(re.os?.name)switch(re.os.name){case"Mac OS":case"iOS":return"Apple";case"Windows":return"Microsoft";case"Android":return"Google"}return"unknown"},ve=()=>{if(!navigator.userAgent)return"unknown";const re=new k.UAParser(navigator.userAgent).getResult();return re.device?.model?re.device.model:"unknown"},oe=()=>{if(!navigator.userAgent)return"browser";const re=new k.UAParser(navigator.userAgent).getResult();return re.device?.type==="mobile"?"mobile":re.device?.type==="tablet"?"tablet":"browser"};function se(ce){return"userAgentData"in ce}const s=()=>{if(se(navigator))return{platform:navigator.userAgentData.platform,mobile:navigator.userAgentData.mobile,brands:navigator.userAgentData.brands}},pe=()=>({name:B(),version:G(),type:Y(),manufacturer:K(),model:ve()}),ke=()=>{const re=new URLSearchParams(window.location.search).get("query");return{referrer:document.referrer||null,search:re||null,url:window.location.href,path:window.location.pathname+window.location.search+window.location.hash}},le=()=>navigator.userAgent||null},45681(qe,be,l){"use strict";l.d(be,{Ve:()=>le,lQ:()=>re,rq:()=>ke});var k,U=l(45497),B=l.n(U),G=l(34480),Y=l.n(G),K=l(93677),ve=l.n(K),oe=l(14685),se=l.n(oe),s=l(21489),pe=l.n(s);function ke(...Le){return B()(...Y()(1,Le))(ve()(Le))}function le(Le,...Ne){return se()(...Ne)(Le)}function ce(Le,...Ne){return k(...Ne)(Le)}const re=()=>{}},97447(qe,be,l){"use strict";l.d(be,{B:()=>G});var k=l(94036);const U=["fromDashboard","locale"];function B(Y,K){const ve=typeof Y=="function"?Y(K):Y;return typeof ve=="string"?(0,k.Rr)(ve):ve}function G(Y,K){const ve=B(Y,K),oe=new URLSearchParams(K?.search||""),se=new URLSearchParams(ve?.search||"");for(const s of U){const pe=oe.get(s);pe&&!se.has(s)?se.set(s,pe):se.has(s)&&!se.get(s)&&se.delete(s)}return{...ve,search:se.toString()}}},77720(qe,be,l){"use strict";l.d(be,{Em:()=>pe,lZ:()=>ke});var k=l(61422),U=l.n(k),B=l(82277),G=l(72076),Y=l(93905);const K=(X,$)=>((...z)=>{try{return X(...z)}catch(Z){window.env?.SERVICE_ENV&&window.env?.SERVICE_ENV!=="prod"&&console.error(Z),Y.L.addError(Z),$(Z)}}),ve=X=>{const $=X.getResponseHeader("content-type")||"",z=$.includes("application/json");if(!(z||$.includes("text/")))return X.response;try{const H=new TextDecoder("utf-8").decode(X.response);try{return z?JSON.parse(H):H}catch{return H}}catch{return X.response}};function oe(X,$){const z=$.indexOf(":"),Z=$.substr(0,z).trim().toLowerCase(),H=$.substr(z+1).trim();return Z&&(X[Z]=X[Z]?X[Z]+", "+H:H),X}function se(X){return X?X.split(`
`).reduce(oe,{}):{}}function s(X){const $=[];for(const z in X){const Z=X[z];if(!Array.isArray(Z)){$.push(encodeURIComponent(z)+"="+encodeURIComponent(Z));continue}for(const H of Z)$.push(s(H))}return $.join("&")}function pe(X){let $,z=!1;const Z=new Promise(function H(ae,he){const Te=X.signal;if(Te?.aborted){he(new DOMException("Aborted","AbortError"));return}const Ee=je=>{throw he(je),je},ge=()=>{$.abort(),he(new DOMException("Aborted","AbortError"))},h=X.data;let te=K(X.deserialize??U(),Ee);const ie=X.headers??{},W=X.json??!1,Oe=X.jwt??!1,Ce=X.token??null,Pe=X.method??"GET",Ue=X.reviewEnv??!1,J=X.onUploadProgress;let ze=K(X.serialize??U(),Ee),et=X.url;const Ke=X.withCredentials??!1,it=X.file,bt=X.timeout??3e3;$=new XMLHttpRequest;const Je=setTimeout(()=>{$.abort(),he({error:"request timed out"})},bt);if(W&&(te=K(JSON.parse,he),ze=K(JSON.stringify,he),ie["Content-Type"]="application/json"),Pe==="GET"&&h&&(et+="?"+s(h)),Oe){const je=Ce||(0,B.rS)();ie.Authorization="Bearer "+je}Te?.addEventListener("abort",ge),$.withCredentials=Ke,$.addEventListener("abort",he),$.addEventListener("error",he),$.addEventListener("load",function(){$.status>=400?[401,403].includes($.status)?z?he({error:"Unable to resume session",status:$.status}):(0,G.wD)().then(()=>{H(ae,he),z=!0}).catch(je=>{Y.L.addError(je),he({error:"Unable to resume session",status:$.status})}):X.arrayBuffer?he(ve($)):he(te($.response)):(ae({body:$.status===204?void 0:te($.response),headers:se($.getAllResponseHeaders()),status:$.status}),Te?.removeEventListener("abort",ge)),clearTimeout(Je)}),$.upload&&typeof J=="function"&&$.upload.addEventListener("progress",J),$.open(Pe,et),X.arrayBuffer&&($.responseType="arraybuffer");for(const je in ie)$.setRequestHeader(je,ie[je]);Pe!=="GET"&&h?$.send(ze(h)):it?$.send(it):$.send()});return Z.abort=(...H)=>$.abort(...H),Z}function ke(X){return X.status===200||X.status===201?X.body:Promise.reject(X.body)}const le=(X,$=!0)=>$?`${X}s`:X;var ce=(X=>(X[X.KB=1024]="KB",X[X.MB=1048576]="MB",X[X.GB=1073741824]="GB",X[X.TB=1099511627776]="TB",X))(ce||{});const re={KB:(X=1)=>1024*X,MB:(X=1)=>1048576*X,GB:(X=1)=>1073741824*X,TB:(X=1)=>1099511627776*X},Le={KB:{short:"KB",long:"Kilobyte"},MB:{short:"MB",long:"Megabyte"},GB:{short:"GB",long:"Gigabyte"},TB:{short:"TB",long:"Terabyte"}},Ne=(X,$="short")=>{const Z=Object.keys(ce).reverse().find(Te=>X>=ce[Te]);if(!Z)return`${X} ${le("byte",X>1)}`;const H=X/ce[Z],ae=H%1===0?H.toFixed(0):H.toFixed(2),he=$==="long"?le(Le[Z].long,H>1):Le[Z].short;return`${ae} ${he}`}},25452(qe,be,l){"use strict";l.d(be,{$D:()=>h,I6:()=>Te,LI:()=>bt,Ll:()=>he,Vx:()=>Ee,Zd:()=>ae,dM:()=>it,sg:()=>W});var k=l(16904),U=l.n(k),B=l(45497),G=l.n(B),Y=l(53160),K=l.n(Y),ve=l(51688),oe=l.n(ve),se=l(58267),s=l.n(se),pe=l(93677),ke=l.n(pe),le=l(28446),ce=l.n(le),re=l(14685),Le=l.n(re),Ne=l(72233),X=l.n(Ne),$=l(32849),z=l.n($),Z=l(74502);const H=G()(K()(".svg"),X()("","originalUrl")),ae=s()(H,U()({width:"500rem"}),U()({})),he=je=>{if(je){const _e=je.trim();if(_e!==""&&_e!=='""')return je}return""},Te=je=>he(je)||void 0,Ee=je=>je?"img":void 0,ge=je=>Le()(X()("","originalUrl"),z()("."),ke(),oe()(je)),h=ge("svg"),te=ge("gif"),ie=/\.svg$/i,W=je=>ie.test(je),Oe={process:"center",timeline:"left"},Ce=je=>Oe[je]||"left",Pe=(je,_e)=>{const vt=ce()(je,_e);return vt.media.image.key===_e.media.image.key&&Object.assign(vt.media.image,{crushedKey:_e.media.image.key,useCrushedKey:!0}),vt},Ue=({src:je,alpha:_e})=>({alpha:_e,media:{image:{key:J(je),src:je}}}),J=je=>typeof je!="string"?"":je.startsWith("http")?new URL(je).pathname.slice(1):je,ze=(({coverImageAlpha:je,coverImage:_e})=>({alpha:je,src:_e})),et=(({lessonHeaderImageAlpha:je,lessonHeaderImage:_e})=>({alpha:je,src:_e})),Ke=(je,_e)=>(vt,Ct)=>{const tt=vt[_e];if(vt?.theme){const Kt=Ct?Ct(tt?.media):tt?.media;if((0,Z.uW)(Kt))return tt;const Q={...tt,media:{...Kt}},ot=Ue(je(vt.theme));return Pe(Q,ot)}else return tt},it=Ke(ze,"coverImage"),bt=Ke(et,"lessonHeaderImage"),Je=async je=>{const _e=new Image;return _e.src=je,await _e.decode(),_e}},66790(qe,be,l){"use strict";l.d(be,{Gv:()=>Y,QD:()=>re,s0:()=>Le});var k,U,B=l(86115),G=l.n(B);const Y=Ne=>!!Ne&&Object.prototype.toString.call(Ne)==="[object Object]",K=Array.isArray,ve=(Ne,X)=>Object.fromEntries(Object.entries(X).map(Ne)),oe=(Ne,X,$)=>{const z={};for(const Z in $)z[Ne(Z)]=X($[Z]);return z},se=Ne=>Ne.map(le),s=Ne=>Ne.map(ce),pe=Ne=>oe(k,le,Ne),ke=Ne=>oe(U,ce,Ne),le=Ne=>Y(Ne)?pe(Ne):K(Ne)?se(Ne):Ne,ce=Ne=>Y(Ne)?ke(Ne):K(Ne)?s(Ne):Ne,re=(Ne,X)=>{const $=new Set(X),z={};for(const Z in Ne)$.has(Z)||(z[Z]=Ne[Z]);return z},Le=(Ne,X)=>Object.fromEntries(Object.entries(Ne).map(([$,z])=>X($,z)))},58798(qe,be,l){"use strict";l.d(be,{VJ:()=>K,c3:()=>B,qg:()=>U});var k=l(21748);const U=pe=>pe===k.y4,B=pe=>U(pe?.type),G=(pe,ke)=>le=>B(le)?pe:ke,Y=(pe,ke)=>pe===k.y4&&ke!==void 0,K=pe=>Y(pe?.type,pe?.experiments?.outputType)&&pe?.experiments?.outputType==="guide",ve=pe=>Y(pe?.type,pe?.experiments?.outputType)&&pe?.experiments?.outputType==="presentation",oe={guide:"Guide Title",presentation:"Presentation Title",microlearning:"Microlearning Title"},se=pe=>Object.prototype.hasOwnProperty.call(oe,pe),s=pe=>typeof pe=="string"&&se(pe)?oe[pe]:oe.microlearning},30373(qe,be,l){"use strict";l.d(be,{h:()=>k});function k(U){return U.trim()===""}},9007(qe,be,l){"use strict";l.d(be,{IK:()=>B,R8:()=>ve,UQ:()=>k,hB:()=>K,iV:()=>G,sS:()=>U});const k={DRAW_FROM_QUESTION_BANK:"DRAW_FROM_QUESTION_BANK",FILL_IN_THE_BLANK:"FILL_IN_THE_BLANK",MATCHING:"MATCHING",MULTIPLE_CHOICE:"MULTIPLE_CHOICE",MULTIPLE_RESPONSE:"MULTIPLE_RESPONSE"},U={SUMMARY:"SUMMARY",REMAINING:"REMAINING",ELAPSED:"ELAPSED",ELAPSED_TOTAL:"ELAPSED_TOTAL",HIDE_TIMER:"HIDE_TIMER"},B={CONTINUE:"continue",NONE:""},G={ALL:"all",NONE:"none",INCORRECT:"incorrect"},Y=10,K=80,ve=500},74451(qe,be,l){"use strict";l.d(be,{HY:()=>U.HY,Nv:()=>re,Ls:()=>Z,GF:()=>he,y4:()=>H,LY:()=>ae});var k=l(29358),U=l(18398),B=l(37617),G=l(37198);const Y=h=>h!=null&&typeof h=="object"&&"map"in h&&typeof h.map=="function",K=h=>h!=null&&typeof h=="object"&&"run"in h&&typeof h.run=="function",ve=h=>h!=null&&typeof h=="object"&&"then"in h&&typeof h.then=="function",oe=h=>h!=null&&typeof h=="object"&&"fork"in h&&typeof h.fork=="function",se=h=>h!=null&&typeof h=="function",s=(h,te)=>{const ie=W=>s(W,te);if(typeof h=="object"&&"type"in h&&typeof h.type=="string"){const W="meta"in h&&typeof h.meta=="object"?h.meta:void 0;return{...h,meta:{...W,origin:te}}}if("bimap"in h&&typeof h.bimap=="function")return h.bimap(ie,ie);if(Y(h))return h.map(ie);if(ve(h))return h.then(ie);if(se(h))return function(Oe,Ce){return h(Pe=>Oe(ie(Pe)),Ce)}};function pe(){return({dispatch:h,getState:te})=>ie=>W=>{if(se(W))return W(h,te);if(ve(W))return W.then(h);if(oe(W)){W.fork(h,h);return}return K(W)?h(W.run()):Y(W)?W.map(h):ie(W)}}function ke(){return[pe()]}var le=l(26372);const ce=U.Zz;function re(h,te){const ie=(0,U.y$)(h,te,ce((0,U.Tw)(...ke()))),W=Le(),Oe=Ne(),Ce=X(),Pe=$(),Ue=z();return{Provider:B.Kq,connect:W,connectBase:Oe,dispatch:ie.dispatch,store:ie,useDispatch:Ce,useDispatchWithOrigin:Pe,useSelector:Ue}}function Le(){return function(te,ie,W,Oe){return function(Ce){return(0,B.Ng)(te,ie,W,Oe)((0,G.BN)(Ce))}}}function Ne(){return function(te,ie,W,Oe){return function(Ce){return(0,B.Ng)(te,ie,W,Oe)(Ce)}}}function X(){return B.wA}function $(){return function(te){const ie=(0,B.wA)();return le.useCallback(Oe=>ie(s(Oe,te)),[ie,te])}}function z(){return function(te,ie=B.bN){const W=le.useContext(G.q2),Oe=le.useContext(G.R6),Ce=le.useRef(void 0),Pe=(0,k.S)(),Ue=(0,B.d4)(te,ie),J=!Pe&&W&&Oe?.startsWith?.("exit");return J||(Ce.current=Ue),J&&Ce.current!==void 0?Ce.current:Ue}}const Z=Le(),H=X(),ae=z(),he=z;var Te=l(20546),Ee;const ge=()=>Ee(()=>location.href="/")},85151(qe,be,l){"use strict";l.d(be,{V:()=>k});const k=({locales:U,course:B,locale:G})=>!!(U?.find(ve=>ve.locale===G)?.rightToLeft||B?.features?.["rise-rtl"]&&B?.experiments?.rtl)},76557(qe,be,l){"use strict";l.d(be,{As:()=>s,BI:()=>B,Hm:()=>pe,NS:()=>se,PJ:()=>oe,Wk:()=>ke,_$:()=>U,ih:()=>le,mZ:()=>Y,o1:()=>ve});const{Runtime:k}=window,U=ce=>window.env?.[ce],B=!1,G=null,Y="Rise 360",K=ce=>`${U("CDN_USER_CONTENT_URI")}/${ce}`,ve=ce=>{const re=ce||"",Le=k?.resolvePath!=null?k.resolvePath.bind(k):K;return re.startsWith("http")||re.startsWith("data:")||re.startsWith("//")?re:Le(re)||re},oe=ce=>k?.resolveFontPath!=null?k.resolveFontPath(ce):`${ce.default?U("CDN_URI"):U("CDN_USER_CONTENT_URI")}/${ce.key}`,se=()=>{k?.exit!=null&&k.exit()},s=()=>k?.isComplete!=null?k.isComplete():null,pe=()=>k?.isExport!=null?k.isExport():!1;function ke(){if(k?.isExport!=null){const ce=window.partnerContent?.content;return k.isExport()&&!!ce}return!1}const le=()=>{if(k?.sendTouch!=null)return k.sendTouch()}},66798(qe,be,l){"use strict";l.d(be,{xj:()=>he,rE:()=>je,Dw:()=>ge,HC:()=>Ee,qu:()=>_e,LE:()=>Pe,BL:()=>J,Zs:()=>se,S$:()=>s,Ty:()=>pe,Bj:()=>ke,pL:()=>le,Ht:()=>Le,zV:()=>Ne,B4:()=>z,HU:()=>ce,_g:()=>re,df:()=>Ct,KJ:()=>Z,qH:()=>H,OX:()=>Te,AY:()=>Ue,Py:()=>ie,b$:()=>W,qB:()=>Oe,kY:()=>te,br:()=>h,jq:()=>vt,Y2:()=>Ce,RE:()=>bt,Em:()=>Je,V7:()=>oe});var k=l(30717),U=l.n(k),B=l(22496),G=l.n(B);function Y(Kt){return U()(Kt)}class K extends Error{constructor(Q="Assert Error",ot){super(Q,ot)}}function ve(Kt,Q="Assertion Error"){if(!Kt)throw new K(Q)}const oe={RISE_CLASSIC:"classic",APEX:"organic",HORIZON:"imaginative"},se="#ff631e",s=3,pe=17,ke=32,le=24,ce=50,re=.6,Le="right",Ne="rounded",X=[{color:"#4baaf4",name:"Sky"},{color:"#285f9f",name:"Blueberry"},{color:"#7837a8",name:"Jelly"},{color:"#d84738",name:"Cherry"},{color:"#ff631e",name:"Tangerine"},{color:"#25bb64",name:"Basil"}],$="#ffffff",z=G()("color",X),Z="#000",H="#fff",ae="Rise",he=Y({ACCENT:null,BLACK:null,COLOR:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),Te=Y({LARGE:null,MEDIUM:null,SMALL:null}),Ee=Y({STEPPED:null,CONTINOUS:null}),ge=U()({NUMBERS:null,DOTS:null,NONE:null}),h=Y({COMPACT:null,OVERLAY:null,SIDEBAR:null}),te=U()({DARK:null,DARK_IMAGE:null,LIGHT:null,LIGHT_IMAGE:null}),ie=U()({DARK:null,DARK_ACCENT:null,DARK_IMAGE:null,LIGHT:null,LIGHT_ACCENT:null,LIGHT_IMAGE:null}),W={FREE:"free",RESTRICTED:"restricted"},Oe=U()({ACCENT:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),Ce=U()({THEME_DEFAULT:null,CIRCULAR_FILL:null,INCOMPLETE_COMPLETE:null}),Pe=Y({ACCENT:null,DARK:null,LIGHT:null,TINT:null}),Ue=Y({FULL:null,FLOATING:null,FLOATING_FULL:null}),J=Y({ACCENT:null,CENTERED:null,CENTERED_ACCENT_TINT:null,CENTERED_OVERLAY:null,CENTERED_IMAGE:null,IMAGE:null,LEFT:null,LEFT_OVERLAY:null,SPLIT_LEFT:null,SPLIT_LEFT_IMAGE:null,SPLIT_RIGHT:null,SPLIT_RIGHT_IMAGE:null,TWO_THIRDS_LEFT_IMAGE:null,TWO_THIRDS_RIGHT_IMAGE:null,WHITE:null}),ze={default:[{text:"Centered",type:J.CENTERED},{text:"Centered overlay",type:J.CENTERED_OVERLAY},{text:"Left",type:J.LEFT},{text:"Left overlay",type:J.LEFT_OVERLAY},{text:"Split left image",type:J.SPLIT_LEFT_IMAGE},{text:"Split right image",type:J.SPLIT_RIGHT_IMAGE},{text:"Two-Thirds left image",type:J.TWO_THIRDS_LEFT_IMAGE},{text:"Two-Thirds right image",type:J.TWO_THIRDS_RIGHT_IMAGE}],classic:[{text:"Centered",type:J.CENTERED},{text:"Centered overlay",type:J.CENTERED_OVERLAY},{text:"Left",type:J.LEFT},{text:"Left overlay",type:J.LEFT_OVERLAY},{text:"Split left image",type:J.SPLIT_LEFT_IMAGE},{text:"Split right image",type:J.SPLIT_RIGHT_IMAGE},{text:"Two-Thirds left image",type:J.TWO_THIRDS_LEFT_IMAGE},{text:"Two-Thirds right image",type:J.TWO_THIRDS_RIGHT_IMAGE}],organic:[{text:"Centered",type:J.CENTERED},{text:"Centered overlay",type:J.CENTERED_OVERLAY},{text:"Left",type:J.LEFT},{text:"Left overlay",type:J.LEFT_OVERLAY},{text:"Split left",type:J.SPLIT_LEFT},{text:"Split right",type:J.SPLIT_RIGHT},{text:"Split left image",type:J.SPLIT_LEFT_IMAGE},{text:"Split right image",type:J.SPLIT_RIGHT_IMAGE}],imaginative:[{text:"Centered",type:J.CENTERED},{text:"Centered overlay",type:J.CENTERED_OVERLAY},{text:"Centered image",type:J.CENTERED_IMAGE},{text:"Centered accent tint",type:J.CENTERED_ACCENT_TINT},{text:"Split left image",type:J.SPLIT_LEFT_IMAGE},{text:"Split right image",type:J.SPLIT_RIGHT_IMAGE},{text:"Two-thirds left image",type:J.TWO_THIRDS_LEFT_IMAGE},{text:"Two-thirds right image",type:J.TWO_THIRDS_RIGHT_IMAGE}]},et=null,Ke=null,it=[{text:"Image",type:J.IMAGE},{text:"Accent",type:J.ACCENT},{text:"White",type:J.WHITE}],bt={CLOSED:"closed",HIDDEN:"hidden",OPEN:"open"},Je=Y({AUTO:null,BLACK:null,LIGHT:null,DARK:null}),je=Y({ROUNDED:null,SQUARED:null}),_e=U()({ROUNDED:null,SQUARED:null}),vt=U()({FLOATING:null,FULL:null}),Ct=U()({ACCENT:null,DARK:null,LIGHT:null}),tt=[{value:Je.AUTO,label:"Auto"},{value:Je.DARK,label:"Dark"},{value:Je.LIGHT,label:"Light"}]},13566(qe,be,l){"use strict";var k={};l.r(k),l.d(k,{CoverDescription:()=>Sx,CoverDetailsContentHeading:()=>Ab,CoverDueDate:()=>Tx,CoverHeader:()=>Xx,CoverLayout:()=>tb,LessonHeader:()=>ub,LessonNavFinish:()=>hb,LessonNavNext:()=>mb,LessonNavPrevious:()=>fb,LessonProgressGraphic:()=>Eb,NavCompactHeaderCounter:()=>Rb,NavCompactHeaderProgress:()=>Pb,NavCompactOutline:()=>wb,OverviewListItem:()=>Mb,OverviewListSectionTitle:()=>Ob,Progress:()=>kb});var U={};l.r(U),l.d(U,{AlignLeft:()=>Hb,ArrowDown:()=>R1,ArrowLeft:()=>Db,ArrowRight:()=>Bb,ArrowUp:()=>M2,Category:()=>UC,ChevronDown:()=>Fb,ChevronUp:()=>zb,Favorite:()=>V0,LessonsComplete:()=>bd,LessonsRequirement:()=>$p,QuestionBox:()=>Vb,QuizFailed:()=>H2,QuizPassed:()=>bd,QuizRequirement:()=>O0,Search:()=>Ub,ToggleDown:()=>$b,Touch:()=>Wb,VideoCamera:()=>Gb,X:()=>Kb});var B={};l.r(B),l.d(B,{components:()=>k,icons:()=>U});var G={};l.r(G),l.d(G,{CoverCourseInfo:()=>Dy,CoverDetailsSection:()=>Vy,CoverHeader:()=>eL,CoverLayout:()=>nL,LessonHeader:()=>iL,LessonProgressGraphic:()=>hL,NavSidebarHeader:()=>mL,OverviewListItemLinkContent:()=>FL,Progress:()=>zL});var Y={};l.r(Y),l.d(Y,{ArrowDown:()=>rf,ArrowLeft:()=>UL,ArrowRight:()=>VL,ArrowUp:()=>rf,ChevronDown:()=>af,ChevronUp:()=>af,Favorite:()=>V0,LessonsComplete:()=>lf,LessonsRequirement:()=>cf,QuizFailed:()=>WL,QuizPassed:()=>lf,QuizRequirement:()=>cf,Search:()=>$L,ToggleDown:()=>GL,X:()=>KL});var K={};l.r(K),l.d(K,{components:()=>G,icons:()=>Y});var ve={};l.r(ve),l.d(ve,{CoverDescription:()=>ZL,CoverDetails:()=>XL,CoverGraphic:()=>Hl,CoverHeader:()=>aE,CoverLayout:()=>cE,CoverProgress:()=>EE,CoverSVG:()=>aa,LessonHeader:()=>NE,LessonProgressGraphic:()=>PE,NavSidebarHeaderProgress:()=>ME});var oe={};l.r(oe),l.d(oe,{AlignLeft:()=>FE,ArrowDown:()=>OE,ArrowLeft:()=>DE,ArrowRight:()=>BE,ArrowUp:()=>HE,ChevronDown:()=>yf,ChevronUp:()=>zE,Favorite:()=>V0,LessonsComplete:()=>bd,LessonsRequirement:()=>$p,QuestionBox:()=>VE,QuizFailed:()=>H2,QuizPassed:()=>bd,QuizRequirement:()=>O0,Search:()=>UE,ToggleDown:()=>yf,Touch:()=>$E,VideoCamera:()=>WE,X:()=>GE});var se={};l.r(se),l.d(se,{components:()=>ve,icons:()=>oe});var s=l(50195),pe=l(77490),ke=l(26894),le=l(3168),ce=l(30482),re=l(98549),Le=l(26567),Ne=l(59431),X=l(56985),$=l(91660),z=l(38267),Z=l(5633),H=l(44957),ae=l(72657),he=l(8881),Te=l(17776),Ee=l(4770),ge=l(55825),h=l(26372),te=l(75762),ie=l(94036),W=l(1014),Oe=l(82277);const Ce="_course_token",Pe=new URLSearchParams(window.location.hash.substr(1)),Ue=Pe.get(Ce);Ue&&(Pe.delete(Ce),window.history.replaceState(null,null,`#${Pe.toString()}`));const J=t=>{const{data:{method:e,id:n,jsonrpc:o}}=t;if(o==="2.0"&&e==="getBearerToken"){const r=Ue||(0,Oe.rS)();navigator.serviceWorker.ready.then(a=>{a.active.postMessage({id:n,jsonrpc:"2.0",method:e,result:{token:r}})})}};navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",J);const ze=(0,h.createContext)({});function et(t,{type:e,message:n}){switch(e){case"polite":return{...t,politeMessage1:t.alternatePolite?n:"",politeMessage2:t.alternatePolite?"":n,alternatePolite:!t.alternatePolite};case"assertive":return{...t,assertiveMessage1:t.alternatePolite?n:"",assertiveMessage2:t.alternatePolite?"":n,alternateAssertive:!t.alternateAssertive};default:return{politeMessage1:"",politeMessage2:"",alternatePolite:!1,assertiveMessage1:"",assertiveMessage2:"",alternateAssertive:!1}}}function Ke({ariaLive:t,message:e}){return(0,s.jsx)("div",{"aria-atomic":"true","aria-live":t,"aria-relevant":"additions text",className:"visually-hidden-always",role:"log",children:e})}function it({children:t}){const[{politeMessage1:e,politeMessage2:n,assertiveMessage1:o,assertiveMessage2:r},a]=(0,h.useReducer)(et,{politeMessage1:"",politeMessage2:"",alternatePolite:!1,assertiveMessage1:"",assertiveMessage2:"",alternateAssertive:!1}),i=(0,h.useMemo)(()=>({announcePolite:c=>{a({type:"polite",message:c})},announceAssertive:c=>{a({type:"assertive",message:c})},clearAnnouncements:()=>{a({type:"clear"})}}),[a]);return(0,s.jsxs)(ze.Provider,{value:i,children:[(0,s.jsx)(Ke,{ariaLive:"polite",id:"polite-announcer1",message:e}),(0,s.jsx)(Ke,{ariaLive:"polite",id:"polite-announcer2",message:n}),(0,s.jsx)(Ke,{ariaLive:"assertive",id:"assertive-announcer1",message:o}),(0,s.jsx)(Ke,{ariaLive:"assertive",id:"assertive-announcer2",message:r}),t]})}function bt(){return(0,h.useContext)(ze)}var Je=l(74334),je=l(78308),_e=l(77682),vt=l(49716),Ct=l.n(vt),tt=l(41665),Kt=l(37245),Q=l.n(Kt),ot=l(69315),cs=l(13578),$e=l(76557);const en=`${(0,$e._$)("CDN_URI")}/assets/rise/assets/certificate-icon.svg`,ho=`${(0,$e._$)("CDN_URI")}/assets/rise/assets/error_x.svg`,pn=`${(0,$e._$)("CDN_URI")}/assets/rise/assets/loading_spinner.svg`,Qe="downloading",tn="error",Us="ok",$s="contained",An=({type:t})=>{const[e]=(0,h.useState)(()=>Ct()("certdownload-")),[n,o]=(0,h.useState)(Us),r=(0,tt.A)(n),a=(0,h.useRef)(),i=(0,ot.useLabelsMap)(),c=`${e}-live`,u=Q()("certificateDownload",{certificateDownloadContained:t===$s}),d=(0,h.useCallback)(()=>{o(Qe)},[]);return(0,h.useEffect)(()=>(n===Qe&&r!==Qe&&(0,cs.gj)().then(()=>{o(Us)}).catch(m=>{(0,_e.FZ)(m)?o(Us):o(tn)}),()=>{(0,cs.G7)()}),[r,n]),(0,h.useEffect)(()=>{a.current&&(n===tn&&r!==tn||n===Us&&(r===tn||r===Qe))&&a.current.focus()},[r,n]),(0,s.jsxs)("div",{className:u,children:[(0,s.jsxs)("div",{"aria-live":"polite",id:c,role:"status",children:[n===Qe&&(0,s.jsxs)("span",{className:"certificateDownload__downloading",children:[(0,s.jsx)("img",{alt:"",className:"animation-loading certificateDownload__downloadingImg",height:"15",src:pn,width:"15"}),i?.certificateDownloadInProgress||"Downloading..."]}),n===tn&&(0,s.jsxs)("span",{className:"certificateDownload__error",children:[(0,s.jsx)("img",{alt:"Error",className:"certificateDownload__errorImg",height:"15",src:ho,width:"15"}),(0,s.jsx)("span",{className:"visually-hidden",children:i?.a11yCertificateDownloadFailed||"Failed to download certificate"})]})]}),(n===Us||n===tn)&&(0,s.jsxs)("button",{"aria-controls":c,className:"certificateDownload__btn",onClick:d,ref:a,type:"button",children:[n===Us&&t===$s&&(0,s.jsx)("img",{alt:"",className:"certificateDownload__okImg",height:"15",src:en,width:"15"}),n===Us?i?.certificateDownload||"Download certificate":i?.certificateRetryDownload||"Retry download"]})]})},or=()=>(0,s.jsx)(An,{type:$s}),mo=(0,h.memo)(An);var At=l(50930),ds=l(74502),Es=l(58798);const $o={BLOCKS:"blocks",QUIZ:"quiz",SECTION:"section"},po=t=>t?.type===$o.QUIZ,Wo=t=>t?.type===$o.QUIZ;var M=l(66798),rt=l(10730),pt=l(48156);const fn=()=>(0,At.Mz)(e=>e,(e,n)=>n,(e,n,o)=>(0,pt.HH)(o),(e,n,o)=>(0,pt.fF)(o),pt.Dh);function Xt(t){const{currentLocale:e}=(0,rt.nY)(),n=(0,h.useMemo)(()=>fn(),[]);return(0,W.d4)(o=>n(t,e,o))}const Gn=(0,At.Mz)(t=>t,(t,e)=>(0,pt.fF)(e),(t,e)=>e?.[t]);function Go(){const{currentLocale:t}=(0,rt.nY)();return(0,W.d4)(e=>Gn(t,e))}const fo=(0,At.Mz)(t=>t.course?.title,pt.HH,pt.fF,(t,e,n)=>{if(t)return(0,pt.xp)(t,e,n)});function Kn(){return(0,W.d4)(fo)}var vn=l(26372);function gn(t){return t?.search}function Fe(){return(0,W.d4)(gn)}function St(t){return gn(t)?.activeLessons}const _t=(0,At.Mz)(St,t=>t?t.reduce((e,n)=>(n?.id&&(e[n.id]=n),e),{}):{});function Ds(){return(0,At.Mz)(t=>t,(t,e)=>_t(e),(t,e)=>e?.[t])}function Cn(t){const e=vn.useMemo(()=>Ds(),[]);return(0,W.d4)(n=>e(t,n))}function Bt(t){return t?.course}function Rt(){return(0,W.d4)(t=>Bt(t))}function vo(t){return Bt(t)?.navigationMode}function rr(t){return Bt(t)?.trackingQuizId}function Bs(){const t=Rt();return Xt(t?.title)}function Qi(t){return Bt(t)?.type}function Sa(){return(0,W.d4)(t=>Qi(t))}function Zi(t){const e=Bt(t);return(0,Es.c3)(e)}function Tc(t){const e=Bt(t);return(0,ds.HX)(e)}const Yi=t=>t.filter(e=>e.type!=="section");function ar(){const t=Rt(),e=Fe();return(0,h.useMemo)(()=>e?.active&&e?.lessons?.length>0?{...t,lessons:e.lessons,lessonsOnly:Yi(e.lessons)}:t,[t,e?.active,e?.lessons])}const Xi=(0,At.Mz)(Bt,t=>(t?.lessons??[]).filter(po).some(e=>e.settings?.skipLessonsIfPassed&&e.settings?.skipToLessonId));function Ji(t){const e=vo(t);return Xi(t)?M.b$.RESTRICTED:e??M.b$.FREE}function Hr(){return(0,W.d4)(Ji)}var Fr=l(45497),Xe=l.n(Fr),ut=l(2783),us=l.n(ut),go=l(86001),qi=l.n(go),Ko=l(79151),fs=l.n(Ko),zr=l(7762),ys=l.n(zr),ir=l(32684),Co=l.n(ir),_o=l(48639),sn=l.n(_o),Ta=l(6713),_n=l.n(Ta),xo=l(70828),rs=l.n(xo),bo=l(93677),lr=l.n(bo),Ia=l(1165),vs=l.n(Ia),Na=l(6760),xn=l.n(Na),bn=l(60742),Qt=l.n(bn),cr=l(96227),Lt=l.n(cr),ja=l(23476),Qn=l.n(ja),Vr=l(17772),gt=l.n(Vr),el=l(9894),It=l.n(el),ka=l(33720),tl=l.n(ka),Aa=l(63030),Ra=l.n(Aa),Ur=l(14173),sl=l.n(Ur);const $r=gt()("lessons"),Wr=sl()(t=>!!t,["settings","passToContinue"]),Pa=t=>Xe()(xn(),e=>Qt()([e,"passed"],t),gt()("id")),Gr=({course:t,courseProgress:e})=>Xe()(sn(),fs()(Pa($r(e))),fs()(Wr),$r)(t)||{},wa=({courseProgress:t,lesson:e,restrictingQuiz:n})=>{const o=gt()("id",e),r=c=>Qt()([c,"index"],$r(t)),a=r(o);return Xe()(Ra()(a),r,gt()("id"))(n)?n:{}};var Pt=l(62826);const nl=Xe()(xn(),rs()),Ma=Xe()(fs()(Pt.GG),gt()("lessonsOnly")),Kr=({course:t,courseProgress:e})=>ys()(Zn(e))(t.lessonsOnly),Zn=t=>e=>xn()(Qt()(["lessons",e.id,"isComplete"],t)),Oa=({lesson:t,currentLesson:e})=>t&&It()("id",t.id,e),dr=({course:t,lesson:e})=>It()("id",e.id,sn()(gt()("lessonsOnly",t))),_r=({course:t,lesson:e})=>It()("id",e.id,lr()(gt()("lessonsOnly",t))),Qr=Xe()(xn(),It()("type","section")),ol=({lesson:t,courseProgress:e})=>Lt()(!1,["lessons",t.id,"isComplete"],e),Da=({course:t,courseProgress:e,lesson:n,restrictingQuiz:o})=>{const r=wa({courseProgress:e,lesson:n,restrictingQuiz:o}),a=(0,Pt.bQ)(t),i=a||nl(r),c=Kr({course:t,courseProgress:e}),u=Qr(n)&&xn()(ol({lesson:n,courseProgress:e}));return{isRestricted:i&&u&&xn()(Oa({lesson:n,currentLesson:c})),restrictingQuiz:r,isRestrictedCourse:a,currentLesson:c}},Ic=({labels:t,restrictions:e})=>{const{lessonRestricted:n,quizRequirePassingScore:o}=t,{isRestrictedCourse:r,restrictingQuiz:a,currentLesson:i}=e,c=i&&qi()("id",a,i);return!r||r&&c?a.title?o.replace("quiz",`"${a.title}"`):o:n},Ba=us()(t=>Co()(tl()(Qn()(["id"],t||{})))),Nc=({course:t,lesson:e})=>Xe()(_n(),Ba(e),Ma)(t),Ha=({course:t,lesson:e})=>!_r({course:t,lesson:e})&&t.lessonsOnly[_n()(Ba(e,t.lessonsOnly))],Fa=Xe()(vs(),Ma),rl=t=>typeof t=="object"&&Object.keys(t).length>0,al=t=>t===void 0||t===!1,jc=t=>al(t?.isComplete),za=t=>t.find(([e,n])=>jc(n)),at=t=>{const e=Object.entries(t),[n]=za(e)||[];return n},kc=t=>rl(t)?at(t):void 0,il=(t,e,n)=>{if(!n)return{outOfAttempts:!1,quizPassed:!0};const o=Qt()(["lessons",n],t),r=Lt()(-1,["settings","retryCount"],e),a=Lt()(0,["retryAttempts"],o),i=Qt()(["passed"],o);return{outOfAttempts:Qt()(["isComplete"],o)&&r>-1&&Number(a)===Number(r),quizPassed:i}};function Zr(t){return t.courseProgress}function ur(t){return t.courseProgress?.currentLesson??""}function Se(t){return t.courseProgress?.percentComplete??0}const Ze=(0,At.Mz)(rr,Bt,(t,e)=>{const{lessons:n}=e;return Array.isArray(n)?n.find(({id:o,type:r})=>r==="quiz"&&o===t)??null:null}),Nt=(0,At.Mz)(Zr,Ze,(t,e)=>e?il(t,e,e.id):null);function ns(t){const e=Zr(t);return(0,Je.Wk)()?e?.percentComplete===100:!!(0,Je.As)()}function Jt(t){return t.courseProgress?.lessons}function gs(t,e){return Jt(e)?.[t]}function hr(){return(0,W.d4)(Zr)}function yo(){return(0,W.d4)(ur)}function Yn(){return(0,W.d4)(Se)}function ll(){return(0,W.d4)(Ze)}function Va(){return(0,W.d4)(Nt)??{outOfAttempts:!1,quizPassed:!1}}function cl(){return(0,W.d4)(ns)}function yn(t){return(0,W.d4)(e=>gs(t,e))}function Yr(t){const e=yn(t);if(e?.type==="quiz")return e}const Ua=t=>t>9999?1:t,$a=({current:t,restart:e,restartValue:n})=>{const o=Number(n),r=Ua(Number.isInteger(o)&&o>0?o:1),a=e?r:t+1;return Ua(a)},dl=(t,e)=>{if(e.family==="divider"&&e.variant==="numbered divider"){const n=e.settings??{},o=$a({current:t.currentNumber,restart:n.restartNumbering,restartValue:n.restartNumberingValue});return{map:{...t.map,[e.id]:o},currentNumber:o}}return t};var qt=l(95258);const Ac=t=>!!(0,qt.Mz)(t),Wa=t=>!!(0,qt.gL)(t),c0=t=>!!(0,qt.dg)(t),Rc=t=>!!(0,qt.Sg)(t);function Xn(){return(0,At.Mz)(t=>t,(t,e)=>Mc(e),(t,e)=>e[String(t)])}function Pc(t,e){return Xn()(t,e)}function nn(t){const e=(0,h.useMemo)(()=>Xn(),[]);return(0,W.d4)(n=>e(t,n))}function Xr(t){const e=nn(t);return Xt(e?.title)}function de(){const t=Xn();return(0,At.Mz)(t,e=>Ac(e))}function De(){const t=Et();return(0,At.Mz)(e=>e,(e,n)=>t(n),(e,n)=>Ji(n),(e,n)=>J5(n),(e,n)=>q5(n),(e,n)=>Jt(n),(e,n,o,r,a,i)=>{const c=i?.[e],u=i?.[n];if(e!==n&&!c?.isComplete&&c?.index>u?.index){const d=i?.[r?.id]?.index??1/0,m=o==="restricted"?u?.index??1/0:i?.[a?.id]?.index??1/0;if(c?.index>Math.min(d,m))return m<d?o==="restricted"?{type:qt.XQ.ORDER}:{type:qt.XQ.KNOWLEDGE_CHECK}:{type:qt.XQ.QUIZ,data:r.title}}return null})}function dt(t){const e=(0,h.useMemo)(()=>De(),[]);return(0,W.d4)(n=>e(t,n))}function Et(){return(0,At.Mz)(Jt,t=>t?kc(t):void 0)}function as(){const t=Et();return(0,At.Mz)(e=>e,(e,n)=>t(n),(e,n)=>Mc(n),(e,n)=>(0,pt.HH)(n),(e,n)=>(0,pt.fF)(n),(e,n,o,r,a)=>{if(n)return(0,pt.UR)(o[n],e,r,a)})}function js(){const t=Xn();return(0,At.Mz)(t,gs,(e,n)=>{const o=n?.percentComplete??0,r=n?.isComplete??!1,a=n?.passed??!1;return o===100&&(!r||Wa(e)&&!a)})}function Lo(t){const e=(0,h.useMemo)(()=>js(),[]);return(0,W.d4)(n=>e(t,n))}function d0(){const t=Xn();return(0,At.Mz)(t,gs,(e,n)=>{const o=n?.percentComplete??0,r=n?.isComplete??!1,a=n?.passed??!1;return o===100&&r&&(!Wa(e)||a)})}function wc(t){const e=(0,h.useMemo)(()=>d0(),[]);return(0,W.d4)(n=>e(t,n))}const ul=(0,At.Mz)(Bt,t=>t?.lessons??[]),Mc=(0,At.Mz)(ul,t=>t.reduce((e,n)=>(n?.id&&(e[n.id]=n),e),{})),mr=(0,At.Mz)(Bt,t=>t?.lessonsOnly??[]),Y5=(0,At.Mz)(mr,t=>t.reduce((e,n,o)=>(e[n.id]=o+1,e),{}));function op(){return(0,W.d4)(t=>Y5(t))}const X5=t=>t.type!=="quiz"||t.settings?.asLesson!==!1,rp=(0,At.Mz)(mr,t=>t.filter(X5)),u0=(0,At.Mz)(rp,t=>t.length),h0=(0,At.Mz)(ul,t=>t.reduce((e,n)=>{const o=e[e.length-1];return Ac(n)||o==null?e.push([n.id]):o.push(n.id),e},[])),J5=(0,At.Mz)(mr,Jt,(t,e)=>t.find(n=>Wa(n)&&c0(n)&&!e?.[n.id]?.isComplete)),q5=(0,At.Mz)(mr,Jt,(t,e)=>t.find(n=>!Wa(n)&&Rc(n)&&!e?.[n.id]?.isComplete));function Oc(t){const e=(0,h.useMemo)(de,[]);return(0,W.d4)(n=>e(t[0],n))}function m0(t){const e=(0,h.useMemo)(()=>Xn(),[]),n=(0,h.useMemo)(()=>De(),[]),o=Hr();return(0,W.d4)(r=>{const a=Bt(r),i=e(t,r),c=gs(t,r),d=n(t,r)?.type!=null;return o!==M.b$.RESTRICTED&&a?.markComplete&&!d&&i?.type!==qt.d9.QUIZ&&!($e.BI&&c?.percentComplete===100)})}const p0=(t,e)=>e.findIndex(n=>n.id===t);function ap(){return(0,At.Mz)(t=>t,(t,e)=>mr(e),(t,e)=>{if(t==="progress-summary")return e[e.length-1];const o=p0(t,e)-1;return e[o]})}function ip(){return(0,At.Mz)(t=>t,(t,e)=>mr(e),(t,e)=>{const o=p0(t,e)+1;return e[o]})}function lp(t){return(0,At.Mz)(t,(e,n)=>rp(n),(e,n)=>p0(e?.id||"",n)+1)}function eC(){return lp(ip())}function tC(){return lp(ap())}function cp(){return(0,W.d4)(t=>h0(t))}function sC(){const t=Et();return(0,At.Mz)(ns,t,rr,(e,n,o)=>{const r=!!n,a=o!=null;return e||!r&&!a})}function nC(){const t=(0,h.useMemo)(()=>sC(),[]);return(0,W.d4)(e=>t(e))}const oC=t=>t?.items?.reduce?.(dl,{map:{},currentNumber:0})?.map||{},rC=t=>{const e=(0,h.useMemo)(()=>Xn(),[]),n=(0,W.d4)(o=>e(t,o));return(0,h.useMemo)(()=>oC(n),[n])},aC=({blockId:t,lessonId:e})=>rC(e)?.[t];function iC(t){const n=Rt()?.lessonsOnly??[],o=n.findIndex(a=>a.id===t);return(o>=0?n[o+1]:void 0)?.id??null}function lC(t){const n=nn(t)?.settings;return(0,h.useMemo)(()=>({continueType:n?.continueType??"",retryCount:Number(n?.retryCount??-1),skipLessonsIfPassed:n?.skipLessonsIfPassed??!1,skipToLessonId:n?.skipToLessonId??void 0}),[n])}function Hs(t){return(0,s.jsx)("svg",{"aria-hidden":"true",fill:"currentColor",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...t})}var dp,cC;const ZQ=t=>dp(cC,{...t,viewBox:"0 0 8 8",children:dp("polygon",{points:"8,3 5,3 5,0 3,0 3,3 0,3 0,5 3,5 3,8 5,8 5,5 8,5 "})}),YQ=null;var f0,dC,uC;const XQ=t=>f0(uC,{viewBox:"0 0 10 10",...t,children:dC("g",{fillRule:"evenodd",children:[f0("path",{d:"M0 4.107h10v2H0z"}),f0("path",{d:"M4 0h2v10H4z"})]})}),JQ=null;var v0,hC;const qQ=({width:t="18",height:e="18",className:n})=>v0("svg",{"aria-hidden":"true",className:hC("i i-alert",n),focusable:"false",height:e,viewBox:"0 0 18 18",width:t,children:v0("g",{fill:"none",fillRule:"evenodd",stroke:"#DE1D1D",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:v0("path",{d:"M9 1a8 8 0 1 1 0 16A8 8 0 0 1 9 1zM9 5.364V9.53M9 11.91v.726"})})}),eZ=null;function mC(t){return(0,s.jsxs)(Hs,{viewBox:"0 0 16 12",...t,children:[(0,s.jsx)("path",{d:"M8.4148147,12 L1.05185184,12 C0.471229623,12 0,11.552 0,11 C0,10.448 0.471229623,10 1.05185184,10 L8.4148147,10 C8.99543692,10 9.46666654,10.448 9.46666654,11 C9.46666654,11.552 8.99543692,12 8.4148147,12"}),(0,s.jsx)("path",{d:"M12.2500002,2 L0.816666683,2 C0.365866674,2 0,1.552 0,1 C0,0.448 0.365866674,0 0.816666683,0 L12.2500002,0 C12.7008002,0 13.0666669,0.448 13.0666669,1 C13.0666669,1.552 12.7008002,2 12.2500002,2"}),(0,s.jsx)("path",{d:"M15,7 L1,7 C0.448,7 0,6.552 0,6 C0,5.448 0.448,5 1,5 L15,5 C15.552,5 16,5.448 16,6 C16,6.552 15.552,7 15,7"})]})}var pC,Dc;const tZ=({width:t="20",height:e="20"})=>pC("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:e,viewBox:"0 0 20 20",width:t,xmlns:"http://www.w3.org/2000/svg",children:[Dc("path",{clipRule:"evenodd",d:"M1.6665 8.33332C1.6665 7.87309 2.0396 7.49999 2.49984 7.49999H14.1665C14.6267 7.49999 14.9998 7.87309 14.9998 8.33332C14.9998 8.79356 14.6267 9.16666 14.1665 9.16666H2.49984C2.0396 9.16666 1.6665 8.79356 1.6665 8.33332Z",fill:"currentColor",fillRule:"evenodd"}),Dc("path",{clipRule:"evenodd",d:"M1.6665 4.99999C1.6665 4.53975 2.0396 4.16666 2.49984 4.16666H17.4998C17.9601 4.16666 18.3332 4.53975 18.3332 4.99999C18.3332 5.46023 17.9601 5.83332 17.4998 5.83332H2.49984C2.0396 5.83332 1.6665 5.46023 1.6665 4.99999Z",fill:"currentColor",fillRule:"evenodd"}),Dc("path",{clipRule:"evenodd",d:"M1.6665 11.6667C1.6665 11.2064 2.0396 10.8333 2.49984 10.8333H17.4998C17.9601 10.8333 18.3332 11.2064 18.3332 11.6667C18.3332 12.1269 17.9601 12.5 17.4998 12.5H2.49984C2.0396 12.5 1.6665 12.1269 1.6665 11.6667Z",fill:"currentColor",fillRule:"evenodd"}),Dc("path",{clipRule:"evenodd",d:"M1.6665 15C1.6665 14.5398 2.0396 14.1667 2.49984 14.1667H14.1665C14.6267 14.1667 14.9998 14.5398 14.9998 15C14.9998 15.4602 14.6267 15.8333 14.1665 15.8333H2.49984C2.0396 15.8333 1.6665 15.4602 1.6665 15Z",fill:"currentColor",fillRule:"evenodd"})]}),sZ=null;var up,fC;const nZ=({width:t="15",height:e="15",className:n})=>up("svg",{"aria-hidden":"true",className:fC("i i-all-blocks",n),focusable:"false",height:e,viewBox:"0 0 15 15",width:t,children:up("path",{d:"M.25.5h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm-12 4h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm-12 4h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm-12 4h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2z",fillRule:"evenodd"})}),oZ=null;var hp,vC;const rZ=t=>hp(vC,{...t,viewBox:"0 0 15 15",children:hp("path",{d:"M5.444.215H1.07c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V1.09c0-.525-.35-.875-.875-.875M13.32.215H8.943c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V1.09c0-.525-.35-.875-.875-.875M5.444 8.09H1.07c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V8.965c0-.525-.35-.875-.875-.875M13.32 8.09H8.943c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V8.965c0-.525-.35-.875-.875-.875"})}),aZ=null;var gC,mp,CC;const iZ=({width:t="24",height:e="16",leftMovement:n="0",className:o})=>gC("svg",{"aria-hidden":"true",className:CC("i i-alt",o),focusable:"false",height:e,style:{marginLeft:n},viewBox:"0 0 24 16",width:t,children:[mp("path",{d:"M10.066 11.5H8.887a.545.545 0 0 1-.326-.092.476.476 0 0 1-.178-.236l-.387-1.144H5.503l-.387 1.143a.507.507 0 0 1-.175.228.505.505 0 0 1-.32.101H3.433l2.538-6.556h1.557l2.538 6.556zM5.854 8.993h1.791l-.603-1.795-.137-.403a10.24 10.24 0 0 1-.155-.502 8.943 8.943 0 0 1-.293.914l-.603 1.786zm6.962 1.292h2.43V11.5h-3.951V4.944h1.52v5.341zM20.7 4.944v1.205h-1.845V11.5h-1.52V6.15H15.49V4.942h5.211z"}),mp("path",{d:"M1.5 1.994v12.012a.5.5 0 0 0 .505.494h19.99a.5.5 0 0 0 .505-.494V1.994a.5.5 0 0 0-.505-.494H2.005a.5.5 0 0 0-.505.494zm-1.5 0A2 2 0 0 1 2.005 0h19.99A2 2 0 0 1 24 1.994v12.012A2 2 0 0 1 21.995 16H2.005A2 2 0 0 1 0 14.006V1.994z",fillRule:"nonzero"})]}),lZ=null;var xC,pp;const cZ=({className:t,width:e="20",height:n="20",focusable:o="false"})=>xC("svg",{className:t,fill:"none",focusable:o,height:n,viewBox:"0 0 20 20",width:e,xmlns:"http://www.w3.org/2000/svg",children:[pp("path",{clipRule:"evenodd",d:"M10.0002 3.33334C10.4604 3.33334 10.8335 3.70644 10.8335 4.16668V15.8333C10.8335 16.2936 10.4604 16.6667 10.0002 16.6667C9.53992 16.6667 9.16683 16.2936 9.16683 15.8333V4.16668C9.16683 3.70644 9.53992 3.33334 10.0002 3.33334Z",fill:"currentColor",fillRule:"evenodd"}),pp("path",{clipRule:"evenodd",d:"M3.57757 9.41075C3.90301 9.08532 4.43065 9.08532 4.75609 9.41075L10.0002 14.6548L15.2442 9.41075C15.5697 9.08532 16.0973 9.08532 16.4228 9.41075C16.7482 9.73619 16.7482 10.2638 16.4228 10.5893L10.5894 16.4226C10.264 16.748 9.73634 16.748 9.41091 16.4226L3.57757 10.5893C3.25214 10.2638 3.25214 9.73619 3.57757 9.41075Z",fill:"currentColor",fillRule:"evenodd"})]}),dZ=null;var bC,g0,yC;const uZ=({title:t="Export",desc:e="An arrow bending itself to the right",width:n="16",height:o="13",className:r,focusable:a="false"})=>bC("svg",{className:yC("i",r),focusable:a,height:o,viewBox:"0 0 16 13",width:n,children:[g0("title",{children:t}),g0("desc",{children:e}),g0("path",{d:"M15.8,6L8.9,0.2C8.4-0.2,7.8,0.1,7.8,0.6v2.7C2.6,3.6,0,6.2,0,12.4c0,0.6,0.8,0.9,1.2,0.4 c1.7-2.2,3.2-3,6.6-3.1v2.7c0,0.5,0.7,0.8,1.1,0.5L15.8,7C16.1,6.7,16.1,6.3,15.8,6z M1.4,10.6c0.4-4.4,2.7-6,7-6 c0.4,0,0.6-0.3,0.6-0.6V2l5.3,4.5L9.1,11V9c0-0.3-0.3-0.6-0.6-0.6C5,8.4,3.1,9,1.4,10.6z"})]}),hZ=null;var fp,LC;function mZ(t){return fp(LC,{viewBox:"0 0 384 512",...t,children:fp("path",{d:"M377.4 296.6l-168 176C204.8 477.3 198.6 480 192 480s-12.84-2.688-17.38-7.438l-168-176C-2.5 286.1-2.156 271.8 7.438 262.6c9.5-9.156 24.75-8.812 33.94 .8125L168 396.1V56.02c0-13.25 10.75-24.01 23.1-24.01S216 42.77 216 56.02v340.1l126.6-132.7c9.156-9.625 24.41-9.969 33.94-.8125C386.2 271.8 386.5 286.1 377.4 296.6z",fill:"currentColor"})})}var EC,vp,SC;function pZ(t){return EC(SC,{viewBox:"0 0 22 22",...t,children:[vp("path",{clipRule:"evenodd",d:"M11.0002 0.332031C11.7365 0.332031 12.3335 0.928985 12.3335 1.66536L12.3335 20.332C12.3335 21.0684 11.7365 21.6654 11.0002 21.6654C10.2638 21.6654 9.66683 21.0684 9.66683 20.332L9.66683 1.66536C9.66683 0.928985 10.2638 0.332031 11.0002 0.332031Z",fill:"currentColor",fillRule:"evenodd"}),vp("path",{clipRule:"evenodd",d:"M0.72402 10.0559C1.24472 9.53519 2.08894 9.53519 2.60964 10.0559L11.0002 18.4464L19.3907 10.0559C19.9114 9.53519 20.7556 9.53519 21.2763 10.0559C21.797 10.5766 21.797 11.4208 21.2763 11.9415L11.943 21.2748C11.4223 21.7955 10.5781 21.7955 10.0574 21.2748L0.72402 11.9415C0.203321 11.4208 0.203321 10.5766 0.72402 10.0559Z",fill:"currentColor",fillRule:"evenodd"})]})}var TC,C0,IC;const fZ=({title:t="Export",desc:e="An arrow pointing right",width:n="16",height:o="8",className:r,focusable:a="false",decorative:i})=>TC("svg",{"aria-hidden":i?"true":"false",className:IC("i",r),focusable:a,height:o,viewBox:"0 0 16 8",width:n,children:[C0("title",{children:t}),C0("desc",{children:e}),C0("path",{d:"M1 5h11.6l-1.3 1.3c-.4.4-.4 1 0 1.4.2.2.4.3.7.3.3 0 .5-.1.7-.3l3-3c.4-.4.4-1 0-1.4l-3-3c-.4-.4-1-.4-1.4 0-.4.4-.4 1 0 1.4L12.6 3H1c-.6 0-1 .4-1 1s.4 1 1 1",fill:"#444",fillRule:"evenodd"})]}),vZ=null;var gp,NC;function gZ(t){return gp(NC,{viewBox:"0 0 384 512",...t,children:gp("path",{d:"M6.625 215.5l168-176C179.2 34.7 185.4 32.02 192 32.02s12.84 2.688 17.38 7.438l168 176c9.125 9.594 8.781 24.78-.8125 33.94c-9.5 9.156-24.75 8.812-33.94-.8125L216 115.9V456c0 13.25-10.75 23.1-23.1 23.1S168 469.3 168 456V115.9l-126.6 132.7C32.22 258.2 16.97 258.5 7.438 249.4C-2.156 240.2-2.5 225 6.625 215.5z",fill:"currentColor"})})}var jC,Cp,kC;function CZ(t){return jC(kC,{viewBox:"0 0 22 22",...t,children:[Cp("path",{clipRule:"evenodd",d:"M11.0007 0.332031C11.737 0.332031 12.334 0.928985 12.334 1.66536L12.334 20.332C12.334 21.0684 11.737 21.6654 11.0007 21.6654C10.2643 21.6654 9.66732 21.0684 9.66732 20.332L9.66732 1.66536C9.66732 0.928985 10.2643 0.332031 11.0007 0.332031Z",fill:"currentColor",fillRule:"evenodd"}),Cp("path",{clipRule:"evenodd",d:"M10.0578 0.722556C10.5785 0.201856 11.4228 0.201856 11.9435 0.722556L21.2768 10.0559C21.7975 10.5766 21.7975 11.4208 21.2768 11.9415C20.7561 12.4622 19.9119 12.4622 19.3912 11.9415L11.0007 3.55098L2.61013 11.9415C2.08943 12.4622 1.24521 12.4622 0.724509 11.9415C0.20381 11.4208 0.20381 10.5766 0.724509 10.0559L10.0578 0.722556Z",fill:"currentColor",fillRule:"evenodd"})]})}var xp,AC;const xZ=t=>xp(AC,{viewBox:"0 0 10 12",...t,children:xp("path",{d:"M7.09677 6.92617C8.14516 6.28188 8.79032 5.07383 8.79032 3.78523C8.79032 1.69128 7.09677 0 5 0C2.90323 0 1.20968 1.69128 1.20968 3.78523C1.20968 5.07383 1.85484 6.20134 2.90323 6.92617C1.20968 7.73154 0 9.42282 0 11.4362C0 11.7584 0.241936 12 0.564516 12C0.887097 12 1.12903 11.7584 1.12903 11.4362C1.12903 9.34228 2.90323 7.57047 5 7.57047C7.09677 7.57047 8.87097 9.34228 8.87097 11.4362C8.87097 11.7584 9.1129 12 9.43548 12C9.75806 12 10 11.7584 10 11.4362C9.91935 9.42282 8.79032 7.73154 7.09677 6.92617ZM5 1.12752C6.45161 1.12752 7.66129 2.33557 7.66129 3.78523C7.66129 5.2349 6.45161 6.44295 5 6.44295C3.54839 6.44295 2.33871 5.2349 2.33871 3.78523C2.33871 2.33557 3.46774 1.12752 5 1.12752Z"})}),bZ=null;var bp,hl,RC;const yZ=({title:t="Background Image",desc:e="Background Image",width:n="18",height:o="18",className:r,focusable:a="false"})=>bp("svg",{className:RC("i i-background-image",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,children:[hl("title",{children:t}),hl("desc",{children:e}),bp("g",{children:[" ",hl("path",{d:"M7.5,7.5c1.2,0,2.2-1,2.2-2.2c0-1.2-1-2.2-2.2-2.2s-2.2,1-2.2,2.2C5.4,6.6,6.4,7.5,7.5,7.5z M7.5,4.6 c0.4,0,0.8,0.3,0.8,0.8c0,0.4-0.3,0.8-0.8,0.8S6.8,5.8,6.8,5.4C6.8,4.9,7.1,4.6,7.5,4.6z"})," ",hl("path",{d:"M17,0.3H1C0.6,0.3,0.3,0.6,0.3,1v16c0,0.4,0.3,0.7,0.7,0.7h16c0.4,0,0.7-0.3,0.7-0.7V1 C17.7,0.6,17.4,0.3,17,0.3z M16.3,16.3H1.7V1.7h14.6V16.3z"})," ",hl("path",{d:"M3.2,14.8h11.6c0.3,0,0.5-0.1,0.6-0.4c0.1-0.2,0.1-0.5,0-0.7l-3.6-5.8c-0.1-0.2-0.3-0.3-0.6-0.3 c-0.2,0-0.4,0.1-0.6,0.3l-2.4,3L6.6,9.2C6.4,9.1,6.2,9,6,9c-0.2,0-0.4,0.1-0.5,0.3l-2.9,4.4c-0.1,0.2-0.2,0.5,0,0.7 C2.7,14.6,2.9,14.8,3.2,14.8z M6.2,10.8l1.6,1.6c0.1,0.1,0.3,0.2,0.5,0.2c0.2,0,0.4-0.1,0.5-0.3l2.3-2.9l2.4,3.9H4.5L6.2,10.8z"})," "]})]}),LZ=null;var PC,x0,wC;const EZ=({title:t="Bank",desc:e="A building with four columns",width:n="16",height:o="16",className:r,focusable:a="false"})=>PC("svg",{className:wC("i i-bank",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[x0("title",{children:t}),x0("desc",{children:e}),x0("path",{clipRule:"evenodd",d:"M3.625 7.98905V13.2473H5.375V7.98905H7.125V13.2473H8.875V7.98905H10.625V13.2473H12.375V7.98905H14.125V13.2473H15V15H1V13.2473H1.875V7.98905H3.625ZM7.65 1.06573C7.9125 0.978091 8.0875 0.978091 8.35 1.06573L14.475 3.69484C14.825 3.78247 15 4.13302 15 4.48357V6.23631C15 6.76213 14.65 7.11268 14.125 7.11268H1.875C1.35 7.11268 1 6.76213 1 6.23631V4.48357C1 4.13302 1.175 3.78247 1.525 3.69484L7.65 1.06573ZM8 3.6072C7.475 3.6072 7.125 3.95775 7.125 4.48357C7.125 5.00939 7.475 5.35994 8 5.35994C8.525 5.35994 8.875 5.00939 8.875 4.48357C8.875 3.95775 8.525 3.6072 8 3.6072Z",fillRule:"evenodd"})]}),SZ=null;var MC,yp,OC;function TZ(t){return MC(OC,{fill:"none",viewBox:"0 0 14 14",...t,children:[yp("rect",{height:"8.3",stroke:"currentColor",strokeWidth:"1.5",width:"8.3",x:"0.75",y:"0.75"}),yp("rect",{height:"8.3",rx:"1.35",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",width:"8.3",x:"4.9502",y:"4.9502"})]})}var DC,ml,BC;function IZ(t){return DC(BC,{viewBox:"0 0 14 15",...t,children:[ml("path",{d:"M1 13.25C0.585786 13.25 0.25 13.5858 0.25 14C0.25 14.4142 0.585786 14.75 1 14.75V13.25ZM13.1333 14.75C13.5475 14.75 13.8833 14.4142 13.8833 14C13.8833 13.5858 13.5475 13.25 13.1333 13.25V14.75ZM1 14.75H13.1333V13.25H1V14.75Z"}),ml("path",{d:"M1 0.25C0.585786 0.25 0.25 0.585786 0.25 1C0.25 1.41421 0.585786 1.75 1 1.75V0.25ZM13.1333 1.75C13.5475 1.75 13.8833 1.41421 13.8833 1C13.8833 0.585786 13.5475 0.25 13.1333 0.25V1.75ZM1 1.75H13.1333V0.25H1V1.75Z"}),ml("path",{d:"M6.31641 11.2266C6.31641 11.6408 6.65219 11.9766 7.06641 11.9766C7.48062 11.9766 7.81641 11.6408 7.81641 11.2266L6.31641 11.2266ZM7.81641 5.3334C7.81641 4.91918 7.48062 4.5834 7.06641 4.5834C6.65219 4.5834 6.31641 4.91918 6.31641 5.3334L7.81641 5.3334ZM7.81641 11.2266L7.81641 5.3334L6.31641 5.3334L6.31641 11.2266L7.81641 11.2266Z"}),ml("path",{d:"M5.09404 4.86491C4.83528 5.18836 4.88772 5.66033 5.21117 5.91908C5.53461 6.17784 6.00658 6.1254 6.26534 5.80195L5.09404 4.86491ZM7.06635 3.6001L7.65201 3.13158C7.50968 2.95366 7.29419 2.8501 7.06635 2.8501C6.83852 2.8501 6.62303 2.95366 6.4807 3.13158L7.06635 3.6001ZM7.86737 5.80195C8.12613 6.1254 8.5981 6.17784 8.92154 5.91908C9.24499 5.66033 9.29743 5.18836 9.03867 4.86491L7.86737 5.80195ZM6.26534 5.80195L7.65201 4.06862L6.4807 3.13158L5.09404 4.86491L6.26534 5.80195ZM6.4807 4.06862L7.86737 5.80195L9.03867 4.86491L7.65201 3.13158L6.4807 4.06862Z"}),ml("path",{d:"M9.03878 10.6551C9.29753 10.3317 9.24509 9.85969 8.92165 9.60094C8.5982 9.34218 8.12623 9.39462 7.86747 9.71807L9.03878 10.6551ZM7.06646 11.9199L6.48081 12.3884C6.62314 12.5664 6.83862 12.6699 7.06646 12.6699C7.2943 12.6699 7.50978 12.5664 7.65211 12.3884L7.06646 11.9199ZM6.26544 9.71807C6.00669 9.39462 5.53472 9.34218 5.21127 9.60094C4.88782 9.85969 4.83538 10.3317 5.09414 10.6551L6.26544 9.71807ZM7.86747 9.71807L6.48081 11.4514L7.65211 12.3884L9.03878 10.6551L7.86747 9.71807ZM7.65211 11.4514L6.26544 9.71807L5.09414 10.6551L6.48081 12.3884L7.65211 11.4514Z"})]})}var HC,Bc,FC;const NZ=({title:t="All Authors",desc:e="A circle with the outline of the head and shoulders of two people inside",width:n="30",height:o="30",className:r,focusable:a="false"})=>HC("svg",{className:FC("i i-blockTemplateAllAuthors",r),focusable:a,height:o,viewBox:"0 0 30 30",width:n,children:[Bc("title",{children:t}),Bc("desc",{children:e}),Bc("circle",{cx:"14.963",cy:"14.963",fill:"#E9E9E9",r:"14.963"}),Bc("path",{d:"M17.482 17.661a3.75 3.75 0 1 1 4.037 0 4.25 4.25 0 0 1 2.231 3.741.75.75 0 1 1-1.5 0 2.75 2.75 0 1 0-5.5 0 .75.75 0 1 1-1.5 0 4.25 4.25 0 0 1 2.232-3.741zm-8.915-3.947a3.75 3.75 0 1 1 3.866 0A4.25 4.25 0 0 1 14.75 17.5a.75.75 0 1 1-1.5 0 2.75 2.75 0 0 0-5.5 0 .75.75 0 1 1-1.5 0 4.25 4.25 0 0 1 2.317-3.786zm1.933-.964a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5zm9 4a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5z",fill:"#8894A3"})]}),jZ=null;var Hc,Jn,zC;const kZ=({title:t="Check Mark",desc:e="A circle with a check mark inside",width:n="112",height:o="112",className:r,focusable:a="false"})=>Hc("svg",{className:zC("i i-blockTemplateCheckMark",r),focusable:a,height:o,viewBox:"0 0 112 112",width:n,children:[Jn("title",{children:t}),Jn("desc",{children:e}),Jn("defs",{children:Hc("filter",{filterUnits:"objectBoundingBox",height:"186.1%",id:"a",width:"186.1%",x:"-43.1%",y:"-40.3%",children:[Jn("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),Jn("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"10"}),Jn("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),Hc("feMerge",{children:[Jn("feMergeNode",{in:"shadowMatrixOuter1"}),Jn("feMergeNode",{in:"SourceGraphic"})]})]})}),Hc("g",{fill:"none",fillRule:"evenodd",filter:"url(#a)",transform:"translate(20 18)",children:[Jn("path",{className:"outer",d:"M36 65.096c16.07 0 29.096-13.027 29.096-29.096C65.096 19.93 52.069 6.904 36 6.904 19.93 6.904 6.904 19.931 6.904 36c0 16.07 13.027 29.096 29.096 29.096zM36 72C16.118 72 0 55.882 0 36S16.118 0 36 0s36 16.118 36 36-16.118 36-36 36z",fillRule:"nonzero"}),Jn("circle",{className:"inner",cx:"36",cy:"36",r:"30"}),Jn("path",{className:"check",d:"M30.054 35.993a1.791 1.791 0 0 0-2.53 0 1.783 1.783 0 0 0 0 2.524l5.972 5.96a1.791 1.791 0 0 0 2.53 0l10.45-10.43a1.783 1.783 0 0 0 0-2.524 1.791 1.791 0 0 0-2.53 0l-9.185 9.167-4.707-4.697z",fillRule:"nonzero"})]})]}),AZ=null;var Lp,Fc,VC;const RZ=({title:t="Folder Outline",desc:e="Outline of a folder",width:n="42",height:o="42",className:r,focusable:a="false"})=>Lp("svg",{className:VC("i i-blockTemplateFolder",r),focusable:a,height:o,viewBox:"0 0 42 42",width:n,children:[Fc("title",{children:t}),Fc("desc",{children:e}),Lp("g",{fill:"#ADAEAF",fillRule:"nonzero",stroke:"#ADAEAF",strokeWidth:".3",children:[Fc("path",{d:"M34.043 6.971a.87.87 0 0 0-.87-.87h-17.53l.7.354-3.756-5.101a.87.87 0 0 0-.7-.354H1.87a.87.87 0 0 0-.87.87v34.434C1 38.894 3.067 41 5.626 41a.87.87 0 1 0 0-1.74c-1.59 0-2.887-1.32-2.887-2.956V1.87l-.87.87h10.018l-.7-.355 3.756 5.102a.87.87 0 0 0 .7.354h17.53l-.869-.87v7.652a.87.87 0 1 0 1.74 0V6.971z"}),Fc("path",{d:"M9.116 36.348a2.906 2.906 0 0 1-2.899 2.913V41h30.145A4.645 4.645 0 0 0 41 36.348V14.913a.87.87 0 0 0-.87-.87H9.986a.87.87 0 0 0-.87.87v21.435zm.87-20.565H40.13l-.87-.87v21.435a2.906 2.906 0 0 1-2.898 2.913H6.217c-1.159 0-1.159 1.739 0 1.739a4.645 4.645 0 0 0 4.638-4.652V14.913l-.87.87z"})]})]}),PZ=null,UC=({width:t="17",height:e="15",title:n="Book",desc:o="Book",focusable:r="false",className:a})=>(0,s.jsxs)("svg",{className:a,focusable:r,height:e,viewBox:"0 0 17 15",width:t,xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("title",{children:n}),(0,s.jsx)("desc",{children:o}),(0,s.jsx)("path",{d:"M8.407 14.529a.68.68 0 0 1-.374 0L.506 12.553A.679.679 0 0 1 0 11.897V.679C0 .234.42-.09.851.023L8.22 1.957 15.589.023a.679.679 0 0 1 .851.656v11.218a.679.679 0 0 1-.506.656L8.407 14.53zM7.541 3.182L1.357 1.56v9.814l6.184 1.623V3.182zm1.358 0v9.814l6.184-1.623V1.56L8.899 3.182z",fill:"#FFF",fillRule:"nonzero"})]});var $C,b0,WC;const MZ=({title:t="Building",desc:e="Building with windows",width:n="18",height:o="18",className:r,focusable:a="false"})=>$C("svg",{className:WC("icon",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,children:[b0("title",{children:t}),b0("desc",{children:e}),b0("path",{d:"M10.6666 5.66797H11.5C11.721 5.66797 11.9329 5.58017 12.0892 5.42389C12.2455 5.26761 12.3333 5.05565 12.3333 4.83464C12.3333 4.61362 12.2455 4.40166 12.0892 4.24538C11.9329 4.0891 11.721 4.0013 11.5 4.0013H10.6666C10.4456 4.0013 10.2337 4.0891 10.0774 4.24538C9.92109 4.40166 9.83329 4.61362 9.83329 4.83464C9.83329 5.05565 9.92109 5.26761 10.0774 5.42389C10.2337 5.58017 10.4456 5.66797 10.6666 5.66797ZM10.6666 9.0013H11.5C11.721 9.0013 11.9329 8.9135 12.0892 8.75723C12.2455 8.60094 12.3333 8.38898 12.3333 8.16797C12.3333 7.94696 12.2455 7.73499 12.0892 7.57871C11.9329 7.42243 11.721 7.33464 11.5 7.33464H10.6666C10.4456 7.33464 10.2337 7.42243 10.0774 7.57871C9.92109 7.73499 9.83329 7.94696 9.83329 8.16797C9.83329 8.38898 9.92109 8.60094 10.0774 8.75723C10.2337 8.9135 10.4456 9.0013 10.6666 9.0013ZM6.49996 5.66797H7.33329C7.55431 5.66797 7.76627 5.58017 7.92255 5.42389C8.07883 5.26761 8.16663 5.05565 8.16663 4.83464C8.16663 4.61362 8.07883 4.40166 7.92255 4.24538C7.76627 4.0891 7.55431 4.0013 7.33329 4.0013H6.49996C6.27895 4.0013 6.06698 4.0891 5.9107 4.24538C5.75442 4.40166 5.66663 4.61362 5.66663 4.83464C5.66663 5.05565 5.75442 5.26761 5.9107 5.42389C6.06698 5.58017 6.27895 5.66797 6.49996 5.66797ZM6.49996 9.0013H7.33329C7.55431 9.0013 7.76627 8.9135 7.92255 8.75723C8.07883 8.60094 8.16663 8.38898 8.16663 8.16797C8.16663 7.94696 8.07883 7.73499 7.92255 7.57871C7.76627 7.42243 7.55431 7.33464 7.33329 7.33464H6.49996C6.27895 7.33464 6.06698 7.42243 5.9107 7.57871C5.75442 7.73499 5.66663 7.94696 5.66663 8.16797C5.66663 8.38898 5.75442 8.60094 5.9107 8.75723C6.06698 8.9135 6.27895 9.0013 6.49996 9.0013ZM16.5 15.668H15.6666V1.5013C15.6666 1.28029 15.5788 1.06833 15.4225 0.912046C15.2663 0.755766 15.0543 0.667969 14.8333 0.667969H3.16663C2.94561 0.667969 2.73365 0.755766 2.57737 0.912046C2.42109 1.06833 2.33329 1.28029 2.33329 1.5013V15.668H1.49996C1.27895 15.668 1.06698 15.7558 0.910704 15.912C0.754423 16.0683 0.666626 16.2803 0.666626 16.5013C0.666626 16.7223 0.754423 16.9343 0.910704 17.0906C1.06698 17.2468 1.27895 17.3346 1.49996 17.3346H16.5C16.721 17.3346 16.9329 17.2468 17.0892 17.0906C17.2455 16.9343 17.3333 16.7223 17.3333 16.5013C17.3333 16.2803 17.2455 16.0683 17.0892 15.912C16.9329 15.7558 16.721 15.668 16.5 15.668ZM9.83329 15.668H8.16663V12.3346H9.83329V15.668ZM14 15.668H11.5V11.5013C11.5 11.2803 11.4122 11.0683 11.2559 10.912C11.0996 10.7558 10.8876 10.668 10.6666 10.668H7.33329C7.11228 10.668 6.90032 10.7558 6.74404 10.912C6.58776 11.0683 6.49996 11.2803 6.49996 11.5013V15.668H3.99996V2.33464H14V15.668Z"})]}),OZ=null;var y0,pl,GC;const DZ=({title:t="Captions",desc:e="Two capital letter C inside a square",width:n="24",height:o="16",className:r,focusable:a="false"})=>y0("svg",{className:GC("i i-captions",r),focusable:a,height:o,viewBox:"0 0 24 16",width:n,children:[pl("title",{children:t}),pl("desc",{children:e}),y0("g",{fill:"none",fillRule:"evenodd",transform:"translate(-.355)",children:[pl("rect",{height:"13.25",rx:"1",stroke:"#000",strokeWidth:"1.75",width:"18.25",x:"1.447",y:"1.402"}),y0("text",{fill:"#000",fontFamily:"Lato-Black, Lato",fontSize:"9",fontWeight:"700",letterSpacing:".75",children:[pl("tspan",{x:"4.222",y:"11.5",children:"C"})," ",pl("tspan",{x:"10.885",y:"11.5",children:"C"})]})]})]}),BZ=null;var KC,L0;const HZ=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="15",role:a="img",title:i,width:c="16"})=>KC("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&L0("title",{children:i}),o&&L0("desc",{children:o}),L0("path",{d:"M0 0h16v2H0V0zm0 13h16v2H0v-2zm4-9h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z",fill:"currentColor",fillRule:"evenodd"})]}),FZ=null;var _C,E0,QC;const zZ=({title:t="Character",desc:e="Character",width:n="13",height:o="16",className:r,focusable:a="false"})=>_C("svg",{className:QC("i i-character",r),focusable:a,height:o,viewBox:"0 0 13 16",width:n,children:[E0("title",{children:t}),E0("desc",{children:e}),E0("path",{d:"M9.2,8.8c1.3-0.8,2.1-2.3,2.1-3.9c0-2.6-2.1-4.7-4.7-4.7C4,0.2,1.9,2.3,1.9,4.9c0,1.6,0.8,3,2.1,3.9 c-2.1,1-3.6,3.1-3.6,5.6c0,0.4,0.3,0.7,0.7,0.7s0.7-0.3,0.7-0.7c0-2.6,2.2-4.8,4.8-4.8s4.8,2.2,4.8,4.8c0,0.4,0.3,0.7,0.7,0.7 s0.7-0.3,0.7-0.7C12.7,11.9,11.3,9.8,9.2,8.8z M6.6,1.6c1.8,0,3.3,1.5,3.3,3.3S8.4,8.2,6.6,8.2S3.3,6.7,3.3,4.9S4.7,1.6,6.6,1.6z"})]}),VZ=null;function Ep(t){return(0,s.jsx)(Hs,{viewBox:"0 0 11 8",...t,children:(0,s.jsx)("path",{d:"M9.6,0L11,1.3L3.9,8L0,4.3L1.4,3l2.6,2.4L9.6,0z"})})}var ZC,S0,YC;const UZ=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="21",role:a="img",title:i,width:c="21"})=>ZC("svg",{"aria-hidden":t,"aria-label":e,className:YC("i i-checkMarkFilled",n),focusable:"false",height:r,role:a,viewBox:"0 0 21 21",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&S0("title",{children:i}),o&&S0("desc",{children:o}),S0("path",{d:"M10.074 20.959c-5.523 0-10-4.477-10-10s4.477-10 10-10 10 4.477 10 10-4.477 10-10 10zM7.077 10.523a.65.65 0 1 0-.919.919l2.546 2.545a.65.65 0 0 0 .919 0l4.454-4.454a.65.65 0 1 0-.919-.92L9.163 12.61l-2.086-2.086z"})]}),$Z=null;var Sp,XC;function WZ(t){return Sp(XC,{viewBox:"0 0 7 5",...t,children:Sp("path",{d:"M3.104 3.896a.5.5 0 0 0 .707 0l2.543-2.542a.5.5 0 0 0-.708-.708L3.473 2.851 1.353.73a.5.5 0 1 0-.707.707l2.458 2.458Z"})})}var Tp,JC;const GZ=({width:t="16",height:e="16",className:n,focusable:o="false"})=>Tp("svg",{"aria-hidden":"true",className:JC("i i-chevronLeft",n),focusable:o,height:e,viewBox:"0 0 16 16",width:t,children:Tp("polygon",{points:"11.1,15.7 3.4,8 11.1,0.3 12.6,1.7 6.3,8 12.6,14.3 "})}),KZ=null;var Ip,qC;const _Z=t=>Ip(qC,{viewBox:"0 0 6 10",...t,children:Ip("path",{d:"M5.707 1.707A1 1 0 0 0 4.293.293l-4 4a1 1 0 0 0 0 1.414l4 4a1 1 0 0 0 1.414-1.414L2.414 5l3.293-3.293z",fillRule:"nonzero"})}),QZ=null,e4=({className:t,dataTestId:e})=>(0,s.jsx)("svg",{"aria-hidden":"true",className:t,"data-testid":e,fill:"currentColor",focusable:"false",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("circle",{cx:"5",cy:"5",r:"5"})});var Np,zc,t4;const YZ=({title:t="Clock",desc:e="Image of a clock with two hands",width:n="14",height:o="13",className:r,focusable:a="false"})=>Np("svg",{className:t4("i",r),focusable:a,height:o,viewBox:"0 0 14 13",width:n,children:[zc("title",{children:t}),zc("desc",{children:e}),Np("g",{children:[zc("path",{d:"M7 11.375C5.70829 11.371 4.47061 10.8562 3.55722 9.94277C2.64384 9.02939 2.12896 7.79171 2.125 6.5C2.12896 5.20829 2.64384 3.97061 3.55722 3.05722C4.47061 2.14384 5.70829 1.62896 7 1.625C8.29171 1.62896 9.52939 2.14384 10.4428 3.05722C11.3562 3.97061 11.871 5.20829 11.875 6.5C11.871 7.79171 11.3562 9.02939 10.4428 9.94277C9.52939 10.8562 8.29171 11.371 7 11.375ZM7 0C3.425 0 0.5 2.925 0.5 6.5C0.5 10.075 3.425 13 7 13C10.575 13 13.5 10.075 13.5 6.5C13.5 2.925 10.575 0 7 0Z"}),zc("path",{d:"M7.81299 3.25H6.18799V7.313H10.25V5.688H7.81199L7.81299 3.25Z"})]})]}),XZ=null,s4=({className:t})=>(0,s.jsx)("svg",{"aria-hidden":"true",className:t,fill:"currentColor",foocusable:"false",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M9.78572 9.78572C9.5 10.0714 9.07143 10.0714 8.78571 9.78572L5 6.00001L1.21429 9.78572C0.928571 10.0714 0.500001 10.0714 0.214285 9.78572C-0.0714284 9.49999 -0.0714284 9.07144 0.214285 8.78571L4 5L0.214285 1.21429C-0.0714284 0.928564 -0.0714284 0.500007 0.214285 0.214279C0.357143 0.0714143 0.500001 0 0.714286 0C0.928571 0 1.07143 0.0714143 1.21429 0.214279L5 3.99999L8.78571 0.214279C8.92857 0.0714143 9.14286 0 9.28572 0C9.42857 0 9.64286 0.0714143 9.78572 0.214279C10.0714 0.500007 10.0714 0.928564 9.78572 1.21429L6 5L9.78572 8.78571C10.0714 9.07144 10.0714 9.49999 9.78572 9.78572Z"})});var n4,jp,o4;function qZ(t){return n4(o4,{viewBox:"0 0 16 16",...t,children:[jp("path",{d:"M5 7C4.44772 7 4 7.44772 4 8C4 8.55228 4.44772 9 5 9L12.5858 9L10.2929 11.2929C9.90237 11.6834 9.90237 12.3166 10.2929 12.7071C10.6834 13.0976 11.3166 13.0976 11.7071 12.7071L15.7071 8.70711C16.0976 8.31658 16.0976 7.68342 15.7071 7.29289L11.7071 3.29289C11.3166 2.90237 10.6834 2.90237 10.2929 3.29289C9.90237 3.68342 9.90237 4.31658 10.2929 4.70711L12.5858 7L5 7Z"}),jp("path",{d:"M1.19249e-08 15C5.33895e-09 15.5523 0.447716 16 1 16C1.55228 16 2 15.5523 2 15L2 1C2 0.447716 1.55228 1.85108e-08 1 1.19249e-08C0.447716 5.33896e-09 1.85459e-07 0.447716 1.78873e-07 1L1.19249e-08 15Z"})]})}var r4,Rn;const eY=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="18",role:a="img",title:i,width:c="18"})=>r4("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 18 18",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Rn("title",{children:i}),o&&Rn("desc",{children:o}),Rn("path",{d:"M9 9V1a8 8 0 015.657 2.343L9 9z",fill:"red",stroke:"#fff",strokeLinejoin:"round"}),Rn("path",{d:"M9 9l5.657-5.656A8 8 0 0117 9H9z",fill:"#F90",stroke:"#fff",strokeLinejoin:"round"}),Rn("path",{d:"M9 9h8a8 8 0 01-2.343 5.657L9 9z",fill:"#FFF500",stroke:"#fff",strokeLinejoin:"round"}),Rn("path",{d:"M9 9l5.657 5.657A8 8 0 019 17V9z",fill:"#ADFF00",stroke:"#fff",strokeLinejoin:"round"}),Rn("path",{d:"M9 9v8a8 8 0 01-5.657-2.343L9 9z",fill:"#00FF94",stroke:"#fff",strokeLinejoin:"round"}),Rn("path",{d:"M9 9l-5.657 5.657A8 8 0 011 9h8z",fill:"#06F",stroke:"#fff",strokeLinejoin:"round"}),Rn("path",{d:"M9 9H1a8 8 0 012.343-5.656L9 9z",fill:"#8000FF",stroke:"#fff",strokeLinejoin:"round"}),Rn("path",{d:"M9 9L3.343 3.343A8 8 0 019 1v8z",fill:"#EB00FF",stroke:"#fff",strokeLinejoin:"round"}),Rn("path",{d:"M9 6a3 3 0 110 6 3 3 0 010-6z",fill:"#fff"}),Rn("path",{d:"M9 17A8 8 0 109 1a8 8 0 000 16z",stroke:"#EAEAEB"})]}),tY=null;var a4,T0,i4;const sY=({title:t="Continue Block",desc:e="Continue Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>a4("svg",{className:i4("i i-continue-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[T0("title",{children:t}),T0("desc",{children:e}),T0("path",{d:"M9.25 11.5h3l-4 5-4-5h3v-7h2v7zm6-9h-14a1 1 0 0 1 0-2h14a1 1 0 0 1 0 2zm-10 4v2h-4a1 1 0 0 1 0-2h4zm10 0a1 1 0 0 1 0 2h-4v-2h4z",fillRule:"evenodd"})]}),nY=null;var l4,I0,c4;const oY=({title:t="Convert",desc:e="Convert to block",width:n="14",height:o="12",className:r,focusable:a="false"})=>l4("svg",{className:c4("i i-convert",r),focusable:a,height:o,viewBox:"0 0 14 12",width:n,children:[I0("title",{children:t}),I0("desc",{children:e}),I0("path",{d:"M9.625 5.143V2.57L14 6 9.625 9.429V6.857H.875A.867.867 0 0 1 0 6c0-.473.392-.857.875-.857h8.75zM7 1.714H.875A.867.867 0 0 1 0 .857C0 .384.392 0 .875 0H7c.483 0 .875.384.875.857A.867.867 0 0 1 7 1.714zM7 12H.875A.867.867 0 0 1 0 11.143c0-.473.392-.857.875-.857H7c.483 0 .875.384.875.857A.867.867 0 0 1 7 12z",fillRule:"evenodd"})]}),rY=null;var d4,kp,u4;function aY(t){return d4(u4,{...t,viewBox:"0 0 16 16",children:[kp("path",{clipRule:"evenodd",d:"M7.33341 6.6665C6.96522 6.6665 6.66675 6.96498 6.66675 7.33317V13.3332C6.66675 13.7014 6.96522 13.9998 7.33341 13.9998H13.3334C13.7016 13.9998 14.0001 13.7014 14.0001 13.3332V7.33317C14.0001 6.96498 13.7016 6.6665 13.3334 6.6665H7.33341ZM5.33341 7.33317C5.33341 6.2286 6.22884 5.33317 7.33341 5.33317H13.3334C14.438 5.33317 15.3334 6.2286 15.3334 7.33317V13.3332C15.3334 14.4377 14.438 15.3332 13.3334 15.3332H7.33341C6.22884 15.3332 5.33341 14.4377 5.33341 13.3332V7.33317Z",fillRule:"evenodd"}),kp("path",{clipRule:"evenodd",d:"M2.66675 1.99984C2.48994 1.99984 2.32037 2.07008 2.19534 2.1951C2.07032 2.32012 2.00008 2.48969 2.00008 2.6665V8.6665C2.00008 8.84331 2.07032 9.01288 2.19534 9.13791C2.32037 9.26293 2.48994 9.33317 2.66675 9.33317H3.33341C3.7016 9.33317 4.00008 9.63165 4.00008 9.99984C4.00008 10.368 3.7016 10.6665 3.33341 10.6665H2.66675C2.13631 10.6665 1.62761 10.4558 1.25253 10.0807C0.877462 9.70564 0.666748 9.19694 0.666748 8.6665V2.6665C0.666748 2.13607 0.877462 1.62736 1.25253 1.25229C1.62761 0.877217 2.13632 0.666504 2.66675 0.666504H8.66675C9.19718 0.666504 9.70589 0.877218 10.081 1.25229C10.456 1.62736 10.6667 2.13607 10.6667 2.6665V3.33317C10.6667 3.70136 10.3683 3.99984 10.0001 3.99984C9.63189 3.99984 9.33341 3.70136 9.33341 3.33317V2.6665C9.33341 2.48969 9.26318 2.32012 9.13815 2.1951C9.01313 2.07007 8.84356 1.99984 8.66675 1.99984H2.66675Z",fillRule:"evenodd"})]})}var h4,N0,m4;const iY=({title:t="Copy",desc:e="A document stacked on top of another one",width:n="15",height:o="18",className:r=null,focusable:a="false"})=>h4("svg",{className:m4("i i-stack",r),focusable:a,height:o,viewBox:"0 0 15 18",width:n,children:[N0("title",{children:t}),N0("desc",{children:e}),N0("path",{d:"M14.7,4.1C14.7,4.1,14.7,4.1,14.7,4.1c0-0.1-0.1-0.2-0.1-0.2c0,0,0,0,0,0L11,0.4c0,0-0.1,0-0.1-0.1 c0,0-0.1,0-0.1-0.1c-0.1,0-0.2,0-0.2,0H3.5c-0.3,0-0.6,0.3-0.6,0.6v3h-2c-0.3,0-0.6,0.3-0.6,0.6v12.6c0,0.3,0.3,0.6,0.6,0.6h10.6 c0.3,0,0.6-0.3,0.6-0.6v-3h2c0.3,0,0.6-0.3,0.6-0.6V4.3C14.7,4.2,14.7,4.2,14.7,4.1z M11.2,2.4l1.4,1.3h-1.4V2.4z M9.9,7.3H8.6V6 L9.9,7.3z M7.9,8.6h2.9v7.9H1.5V5.1h5.8v2.8C7.3,8.3,7.6,8.6,7.9,8.6z M12.1,7.9c0-0.1,0-0.2,0-0.2c0,0,0,0,0,0 c0-0.1-0.1-0.1-0.1-0.2c0,0,0,0,0,0L8.4,4c0,0-0.1,0-0.1-0.1c0,0-0.1,0-0.1-0.1c-0.1,0-0.2,0-0.2,0H4.1V1.5H10v2.8 C10,4.7,10.2,5,10.6,5h2.9v7.9h-1.4V7.9z"})]}),lY=null;var p4,j0,f4;const cY=({title:t="Copy lesson",desc:e="Copy lesson",width:n="15",height:o="15",className:r,focusable:a="false"})=>p4("svg",{className:f4("i",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[j0("title",{children:t}),j0("desc",{children:e}),j0("path",{d:"M14 14H7.364V7.364H14V14zM1 7.636V1h6.636v5.364h-.772c-.277 0-.5.223-.5.5v.772H1zm13.5-1.272a.5.5 0 0 1 .5.5V14.5a.5.5 0 0 1-.5.5H6.864a.5.5 0 0 1-.5-.5V8.636H.5a.5.5 0 0 1-.5-.5V.5A.5.5 0 0 1 .5 0h7.636a.5.5 0 0 1 .5.5v5.864H14.5zm0-3.819a.5.5 0 0 1 .5.5v1.91a.5.5 0 1 1-1 0v-1.41h-2.748l1.056 1.056a.5.5 0 0 1-.707.707L9.692 3.4a.505.505 0 0 1-.147-.354.505.505 0 0 1 .147-.354L11.601.782a.5.5 0 0 1 .707.707l-1.056 1.056H14.5zm-9.084 9.219a.505.505 0 0 1 .039.19.506.506 0 0 1-.147.354l-1.909 1.91a.502.502 0 0 1-.707 0 .5.5 0 0 1 0-.707l1.056-1.056H.5a.5.5 0 0 1-.5-.5v-1.91a.5.5 0 1 1 1 0v1.41h2.748l-1.056-1.056a.5.5 0 0 1 .707-.707L5.308 11.6a.493.493 0 0 1 .108.163z",fillRule:"evenodd"})]}),dY=null;var v4,Vc;const uY=({title:t="Corner up-right",desc:e="An arrow moving up & to the right",width:n="16",height:o="16",className:r,focusable:a="false"})=>v4("svg",{className:r,fill:"none",focusable:a,height:o,viewBox:"0 0 16 16",width:n,xmlns:"http://www.w3.org/2000/svg",children:[Vc("title",{children:t}),Vc("desc",{children:e}),Vc("path",{clipRule:"evenodd",d:"M9.5286 2.19526C9.78895 1.93491 10.2111 1.93491 10.4714 2.19526L13.8047 5.5286C14.0651 5.78894 14.0651 6.21106 13.8047 6.4714L10.4714 9.80474C10.2111 10.0651 9.78895 10.0651 9.5286 9.80474C9.26825 9.54439 9.26825 9.12228 9.5286 8.86193L12.3905 6L9.5286 3.13807C9.26825 2.87772 9.26825 2.45561 9.5286 2.19526Z",fill:"currentColor",fillRule:"evenodd"}),Vc("path",{clipRule:"evenodd",d:"M5.33333 6.66667C4.8029 6.66667 4.29419 6.87738 3.91912 7.25245C3.54405 7.62753 3.33333 8.13623 3.33333 8.66667V13.3333C3.33333 13.7015 3.03486 14 2.66667 14C2.29848 14 2 13.7015 2 13.3333V8.66667C2 7.78261 2.35119 6.93477 2.97631 6.30964C3.60143 5.68452 4.44928 5.33333 5.33333 5.33333H13.3333C13.7015 5.33333 14 5.63181 14 6C14 6.36819 13.7015 6.66667 13.3333 6.66667H5.33333Z",fill:"currentColor",fillRule:"evenodd"})]}),hY=null;var g4,k0,C4;const mY=t=>{const{className:e,desc:n="Crop",focusable:o="false",height:r="19",title:a="Crop",width:i="19"}=t,c={className:C4("i i-crop",e),focusable:o,height:r,viewBox:`0 0 ${i} ${r}`,width:i};return g4("svg",{...c,children:[k0("title",{children:a}),k0("desc",{children:n}),k0("path",{d:"M15 13h3.003c.55 0 .997.444.997 1 0 .552-.453 1-.997 1H15v3.003c0 .55-.444.997-1 .997-.552 0-1-.453-1-.997V15H4.996A.995.995 0 0 1 4 14.004V6H.997A.996.996 0 0 1 0 5c0-.552.453-1 .997-1H4V.997C4 .447 4.444 0 5 0c.552 0 1 .453 1 .997V4h8.004c.55 0 .996.445.996.996V13zm-9 0h7V6H6v7z",fillRule:"evenodd"})]})},pY=null;var x4,A0,b4;const fY=({"aria-hidden":t,"aria-label":e="Dash mark",className:n,desc:o,height:r="3",role:a="img",title:i,width:c="7"})=>x4("svg",{"aria-hidden":t,"aria-label":e,className:b4("i i-dashMark",n),focusable:"false",height:r,role:a,viewBox:"0 0 7 3",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&A0("title",{children:i}),o&&A0("desc",{children:o}),A0("rect",{height:"3",width:"7"})]}),vY=null;var y4,Ap;const gY=({width:t="20",height:e="20",focusable:n="false"})=>y4("svg",{fill:"none",focusable:n,height:e,viewBox:"0 0 20 20",width:t,xmlns:"http://www.w3.org/2000/svg",children:[Ap("path",{clipRule:"evenodd",d:"M15.449 2.03415C16.2057 1.24516 17.4414 1.16956 18.2886 1.86043C19.161 2.57182 19.3163 3.84495 18.6406 4.74523L11.7164 13.9708C10.7635 15.2403 8.94583 15.4621 7.71568 14.4589C6.45117 13.4278 6.3355 11.537 7.46489 10.3594L15.449 2.03415ZM17.2353 3.15207C17.0613 3.01013 16.8074 3.02566 16.6519 3.18776L8.66778 11.513C8.21204 11.9882 8.25871 12.7512 8.76899 13.1673C9.26539 13.5721 9.9989 13.4826 10.3834 12.9703L17.3077 3.74476C17.4465 3.5598 17.4146 3.29823 17.2353 3.15207Z",fill:"currentColor",fillRule:"evenodd"}),Ap("path",{clipRule:"evenodd",d:"M6.24929 18.535C4.49357 18.9784 2.44605 18.6701 0.604997 17.6473C0.305936 17.4811 0.138803 17.1491 0.183513 16.8099C0.228225 16.4707 0.475696 16.1933 0.807595 16.1104C1.91332 15.8339 2.71474 14.9884 3.65265 13.9988C3.73743 13.9094 3.82332 13.8188 3.91065 13.7273C4.39823 13.2165 4.95363 12.6632 5.59452 12.3031C6.27583 11.9204 7.06497 11.7491 7.96604 12.0065L7.50816 13.6091C7.10117 13.4928 6.76904 13.555 6.4108 13.7562C6.01216 13.9802 5.60974 14.3611 5.11619 14.8782C5.02687 14.9717 4.93462 15.0701 4.83919 15.1719C4.33778 15.7067 3.74851 16.3352 3.03433 16.8502C4.03071 17.1168 5.00421 17.1304 5.84113 16.919C7.10848 16.5989 8.06772 15.7708 8.42833 14.4559L10.0356 14.8967C9.49766 16.8584 8.02754 18.0858 6.24929 18.535Z",fill:"currentColor",fillRule:"evenodd"})]}),CY=null,L4=({title:t="DestinationArrow",desc:e="DestinationArrow",width:n="13",height:o="10",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:Q()("i i-destinationArrow",r),focusable:a,height:o,viewBox:"0 0 13 10",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.jsx)("path",{d:"M0 5c0 .345.264.625.59.625h10.393L7.855 8.933a.65.65 0 0 0 0 .884.573.573 0 0 0 .418.183.573.573 0 0 0 .418-.183l4.136-4.374a.66.66 0 0 0 0-.885L8.691.183a.568.568 0 0 0-.836 0 .65.65 0 0 0 0 .884l3.128 3.308H.591C.264 4.375 0 4.655 0 5"})]});var E4,R0,S4;const bY=({title:t="Dialogue Slide",desc:e="Dialogue Slide",width:n="16",height:o="16",className:r,focusable:a="false"})=>E4("svg",{className:S4("i i-dialogue-slide",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[R0("title",{children:t}),R0("desc",{children:e}),R0("path",{d:"M14 11h-3c-.3 0-.5.1-.7.3L8 13.6l-2.3-2.3c-.2-.2-.4-.3-.7-.3H2V2h12v9zm1-11H1C.4 0 0 .4 0 1v11c0 .6.4 1 1 1h3.6l2.7 2.7c.2.2.4.3.7.3.3 0 .5-.1.7-.3l2.7-2.7H15c.6 0 1-.4 1-1V1c0-.6-.4-1-1-1z",fillRule:"evenodd"})]}),yY=null;var T4,fl;const LY=({title:t="Disk",desc:e="An old floppy disk",width:n="16",height:o="16",className:r,focusable:a="false"})=>T4("svg",{className:r,fill:"none",focusable:a,height:o,viewBox:"0 0 16 16",width:n,xmlns:"http://www.w3.org/2000/svg",children:[fl("title",{children:t}),fl("desc",{children:e}),fl("path",{clipRule:"evenodd",d:"M3.33337 2.66659C3.15656 2.66659 2.98699 2.73682 2.86197 2.86185C2.73695 2.98687 2.66671 3.15644 2.66671 3.33325V12.6666C2.66671 12.8434 2.73695 13.013 2.86197 13.138C2.98699 13.263 3.15656 13.3333 3.33337 13.3333H12.6667C12.8435 13.3333 13.0131 13.263 13.1381 13.138C13.2631 13.013 13.3334 12.8434 13.3334 12.6666V5.6094L10.3906 2.66659H3.33337ZM1.91916 1.91904C2.29423 1.54397 2.80294 1.33325 3.33337 1.33325H10.6667C10.8435 1.33325 11.0131 1.40349 11.1381 1.52851L14.4714 4.86185C14.5965 4.98687 14.6667 5.15644 14.6667 5.33325V12.6666C14.6667 13.197 14.456 13.7057 14.0809 14.0808C13.7058 14.4559 13.1971 14.6666 12.6667 14.6666H3.33337C2.80294 14.6666 2.29423 14.4559 1.91916 14.0808C1.54409 13.7057 1.33337 13.197 1.33337 12.6666V3.33325C1.33337 2.80282 1.54409 2.29411 1.91916 1.91904Z",fill:"currentColor",fillRule:"evenodd"}),fl("path",{clipRule:"evenodd",d:"M4.00004 8.66659C4.00004 8.2984 4.29852 7.99992 4.66671 7.99992H11.3334C11.7016 7.99992 12 8.2984 12 8.66659V13.9999C12 14.3681 11.7016 14.6666 11.3334 14.6666C10.9652 14.6666 10.6667 14.3681 10.6667 13.9999V9.33325H5.33337V13.9999C5.33337 14.3681 5.0349 14.6666 4.66671 14.6666C4.29852 14.6666 4.00004 14.3681 4.00004 13.9999V8.66659Z",fill:"currentColor",fillRule:"evenodd"}),fl("path",{clipRule:"evenodd",d:"M4.66671 1.33325C5.0349 1.33325 5.33337 1.63173 5.33337 1.99992V4.66659H10C10.3682 4.66659 10.6667 4.96506 10.6667 5.33325C10.6667 5.70144 10.3682 5.99992 10 5.99992H4.66671C4.29852 5.99992 4.00004 5.70144 4.00004 5.33325V1.99992C4.00004 1.63173 4.29852 1.33325 4.66671 1.33325Z",fill:"currentColor",fillRule:"evenodd"})]}),EY=null;var I4,SY;class TY extends null{render(){return I4("svg",{"aria-hidden":this.props.decorative,"aria-label":this.props.title,className:this.props.className,focusable:"false",height:this.props.height,role:this.props.role,version:"1.1",viewBox:this.props.viewBox,width:this.props.width,xmlns:"http://www.w3.org/2000/svg",children:this.props.children})}}const IY=null;var Rp,N4;const NY=({width:t=20,height:e=20,...n})=>Rp(N4,{height:e,width:t,...n,viewBox:"0 0 20 20",children:Rp("path",{d:"M10 0c5.523 0 10 4.477 10 10s-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0zm2.634 7.679l-3.506 3.505-2.054-2.055a.7.7 0 00-.99.99l2.55 2.55a.7.7 0 00.99 0l4-4a.7.7 0 00-.99-.99z",fillRule:"evenodd"})}),jY=null;var j4,P0,k4;const kY=({title:t="Vertical Dots",desc:e="Vertical Dots",width:n="4",height:o="24",className:r=null,focusable:a="false"})=>j4("svg",{className:k4("i i-dotsVertical",r),focusable:a,height:o,viewBox:"0 0 4 24",width:n,children:[P0("title",{children:t}),P0("desc",{children:e}),P0("path",{d:"M2 24a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0-10a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM2 4a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fillRule:"evenodd"})]}),AY=null,A4=({title:t="Download",desc:e="Arrow down with horizontal line beneath it",width:n="16",height:o="19",className:r,focusable:a="false"},i)=>(0,s.jsxs)("svg",{className:Q()("i i-download",r),focusable:a,height:o,ref:i,viewBox:"0 0 16 19",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.jsx)("rect",{height:"2",rx:"1",width:"16",y:"17"}),(0,s.jsx)("path",{d:"M4.464 8.293A1 1 0 1 0 3.05 9.707l4.24 4.24c.4.4 1.028.392 1.42 0l4.24-4.24a1 1 0 1 0-1.414-1.414L8 4.757 4.464 8.293zm0 0L8 4.757l3.536 3.536L8 11.828 4.464 8.293z"}),(0,s.jsx)("path",{d:"M7 0h2v12H7z"})]}),R4=(0,h.forwardRef)(A4);var P4,vl,w4;const RY=({title:t="Download Circle",desc:e="Arrow down with horizontal line beneath it wrapped up in a circle",width:n="51",height:o="51",className:r,focusable:a="false"})=>P4("svg",{className:w4("i i-downloadCircle",r),focusable:a,height:o,viewBox:"0 0 51 51",width:n,children:[vl("title",{children:t}),vl("desc",{children:e}),vl("g",{fill:"none",stroke:"none",children:vl("g",{fill:"#000",transform:"translate(-695, -227)",children:vl("path",{d:"M721,255.395113 L726.834932,249.560181 C727.225456,249.169656 727.858621,249.169656 728.249146,249.560181 C728.63967,249.950705 728.63967,250.58387 728.249146,250.974394 L720.824726,258.398814 C720.796316,258.436777 720.764856,258.473181 720.730347,258.507691 C720.339822,258.898215 719.706657,258.898215 719.316133,258.507691 L711.799485,250.991042 C711.408961,250.600518 711.408961,249.967353 711.799485,249.576829 C712.190009,249.186304 712.823174,249.186304 713.213699,249.576829 L719,255.36313 L719,240.783936 C719,240.231651 719.447715,239.783936 720,239.783936 C720.552285,239.783936 721,240.231651 721,240.783936 L721,255.395113 Z M720.059082,277.569336 C706.251963,277.569336 695.059082,266.376455 695.059082,252.569336 C695.059082,238.762217 706.251963,227.569336 720.059082,227.569336 C733.866201,227.569336 745.059082,238.762217 745.059082,252.569336 C745.059082,266.376455 733.866201,277.569336 720.059082,277.569336 Z M720.059082,275.569336 C732.761631,275.569336 743.059082,265.271885 743.059082,252.569336 C743.059082,239.866787 732.761631,229.569336 720.059082,229.569336 C707.356533,229.569336 697.059082,239.866787 697.059082,252.569336 C697.059082,265.271885 707.356533,275.569336 720.059082,275.569336 Z M712,264 C711.447715,264 711,263.552285 711,263 C711,262.447715 711.447715,262 712,262 L728,262 C728.552285,262 729,262.447715 729,263 C729,263.552285 728.552285,264 728,264 L712,264 Z"})})})]}),PY=null;var M4,Pp,O4;function wY(t){return M4(O4,{viewBox:"0 0 13 13",...t,children:[Pp("path",{d:"M7.08297 7.92452V1.49952C7.08297 1.34476 7.02149 1.19635 6.91207 1.08692C6.80264 0.977491 6.65422 0.916016 6.49947 0.916016C6.34472 0.916016 6.1963 0.977491 6.08687 1.08692C5.97745 1.19635 5.91597 1.34476 5.91597 1.49952V7.92452L4.57997 6.58652C4.47057 6.47711 4.32219 6.41565 4.16747 6.41565C4.01275 6.41565 3.86437 6.47711 3.75497 6.58652C3.64557 6.69592 3.58411 6.8443 3.58411 6.99902C3.58411 7.15373 3.64557 7.30211 3.75497 7.41152L6.08797 9.74552C6.19771 9.85428 6.34596 9.91529 6.50047 9.91529C6.65497 9.91529 6.80323 9.85428 6.91297 9.74552L9.24597 7.41152C9.34926 7.30115 9.40564 7.15499 9.40323 7.00385C9.40082 6.85271 9.3398 6.70842 9.23304 6.60141C9.12629 6.49439 8.98215 6.43303 8.83102 6.43025C8.67989 6.42747 8.53358 6.4835 8.42297 6.58652L7.08197 7.92452H7.08297Z"}),Pp("path",{d:"M11.4 11.4824H1.60002V4.68242H3.00002C3.15915 4.68242 3.31177 4.61921 3.42429 4.50669C3.53681 4.39416 3.60002 4.24155 3.60002 4.08242C3.60002 3.92329 3.53681 3.77068 3.42429 3.65816C3.31177 3.54564 3.15915 3.48242 3.00002 3.48242H1.00002C0.840895 3.48242 0.688282 3.54564 0.57576 3.65816C0.463239 3.77068 0.400024 3.92329 0.400024 4.08242V12.0824C0.400024 12.2416 0.463239 12.3942 0.57576 12.5067C0.688282 12.6192 0.840895 12.6824 1.00002 12.6824H12C12.1592 12.6824 12.3118 12.6192 12.4243 12.5067C12.5368 12.3942 12.6 12.2416 12.6 12.0824V4.08242C12.6 3.92329 12.5368 3.77068 12.4243 3.65816C12.3118 3.54564 12.1592 3.48242 12 3.48242H10C9.92123 3.48242 9.84321 3.49794 9.77041 3.52809C9.69762 3.55825 9.63148 3.60244 9.57576 3.65816C9.52005 3.71387 9.47585 3.78002 9.4457 3.85281C9.41554 3.92561 9.40002 4.00363 9.40002 4.08242C9.40002 4.16122 9.41554 4.23924 9.4457 4.31203C9.47585 4.38483 9.52005 4.45097 9.57576 4.50669C9.63148 4.5624 9.69762 4.6066 9.77041 4.63675C9.84321 4.6669 9.92123 4.68242 10 4.68242H11.4V11.4824Z"})]})}var D4,Uc,B4;const MY=({title:t="Draw",desc:e="Arrow down with horizontal line beneath it",width:n="15",height:o="15",className:r,focusable:a="false"})=>D4("svg",{className:B4("i i-drawFromQuestionBank",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[Uc("title",{children:t}),Uc("desc",{children:e}),Uc("path",{d:"M8.15625 10.9688C7.96875 11.1562 7.78125 11.25 7.5 11.25C7.21875 11.25 7.03125 11.1562 6.84375 10.9688L1.5 5.625L2.8125 4.3125L6.5625 8.0625V0H8.4375V8.0625L12.1875 4.3125L13.5 5.625L8.15625 10.9688Z"}),Uc("path",{d:"M1.875 10.3125V13.125H13.125V10.3125H15V14.0625C15 14.625 14.625 15 14.0625 15H0.9375C0.375 15 0 14.625 0 14.0625V10.3125H1.875Z"})]}),OY=null;var H4,w0,F4;const DY=t=>H4(F4,{height:"16",viewBox:"0 0 16 4",width:"4",...t,children:[w0("path",{d:"M8,0 C9.105,0 10,0.895 10,2 C10,3.105 9.105,4 8,4 C6.895,4 6,3.105 6,2 C6,0.895 6.895,0 8,0"}),w0("path",{d:"M2,0 C3.105,0 4,0.895 4,2 C4,3.105 3.105,4 2,4 C0.895,4 0,3.105 0,2 C0,0.895 0.895,0 2,0"}),w0("path",{d:"M14,0 C15.105,0 16,0.895 16,2 C16,3.105 15.105,4 14,4 C12.895,4 12,3.105 12,2 C12,0.895 12.895,0 14,0"})]}),BY=null;var z4,gl,V4;const HY=({title:t="More",desc:e="Three dots next to one another",width:n="16",height:o="4",className:r=null,focusable:a="false"})=>z4("svg",{className:V4("i",r),focusable:a,height:o,viewBox:"0 0 16 4",width:n,children:[gl("title",{children:t}),gl("desc",{children:e}),gl("path",{d:"M8,0 C9.105,0 10,0.895 10,2 C10,3.105 9.105,4 8,4 C6.895,4 6,3.105 6,2 C6,0.895 6.895,0 8,0"}),gl("path",{d:"M2,0 C3.105,0 4,0.895 4,2 C4,3.105 3.105,4 2,4 C0.895,4 0,3.105 0,2 C0,0.895 0.895,0 2,0"}),gl("path",{d:"M14,0 C15.105,0 16,0.895 16,2 C16,3.105 15.105,4 14,4 C12.895,4 12,3.105 12,2 C12,0.895 12.895,0 14,0"})]}),FY=null;var wp,Cl,U4;const zY=({title:t="Draggable",desc:e="Three dots stacked on top of one another",width:n="4",height:o="14",className:r,focusable:a="false"})=>wp("svg",{className:U4("i i-ellipsis--vert",r),focusable:a,height:o,viewBox:"0 0 4 14",width:n,children:[Cl("title",{children:t}),Cl("desc",{children:e}),wp("g",{transform:"translate(.158 .445)",children:[Cl("circle",{cx:"1.5",cy:"11.5",r:"1.5"}),Cl("circle",{cx:"1.5",cy:"6.5",r:"1.5"}),Cl("circle",{cx:"1.5",cy:"1.5",r:"1.5"})]})]}),VY=null;var $4,M0,W4;const UY=({title:t="Embed",desc:e="Embed icon",width:n="16",height:o="15",className:r,focusable:a="false"})=>$4("svg",{className:W4("i i-embed",r),focusable:a,height:o,viewBox:"0 0 16 15",width:n,children:[M0("title",{children:t}),M0("desc",{children:e}),M0("path",{d:"M13.2 11.263l-1.4-1.4 2.3-2.3-2.3-2.3 1.4-1.4 3 3c.4.4.4 1 0 1.4l-3 3M3.8 11.263l-3-3c-.4-.4-.4-1 0-1.4l3-3 1.4 1.4-2.3 2.3 2.3 2.3-1.4 1.4M6.5 14.563c-.1 0-.2 0-.3-.1-.5-.2-.8-.7-.6-1.3l4-12c.2-.5.7-.8 1.3-.6.5.2.8.7.6 1.3l-4 12c-.2.4-.6.7-1 .7"})]}),$Y=null;var G4,$c,K4;const WY=({title:t="Empty folder",desc:e="Empty folder",width:n="46",height:o="46",className:r,focusable:a="false"})=>G4("svg",{className:K4("i i-emptyFolder",r),focusable:a,height:o,viewBox:"0 0 46 46",width:n,children:[$c("title",{children:t}),$c("desc",{children:e}),$c("path",{d:"M38 6.867a1 1 0 0 0-1-1H16.84l.805.407-4.32-5.867A1 1 0 0 0 12.52 0H1a1 1 0 0 0-1 1v39.6C0 43.578 2.377 46 5.32 46a1 1 0 0 0 0-2C3.49 44 2 42.482 2 40.6V1L1 2h11.52l-.805-.407 4.32 5.867a1 1 0 0 0 .805.407H37l-1-1v8.8a1 1 0 0 0 2 0v-8.8z"}),$c("path",{d:"M9.333 40.65A3.341 3.341 0 0 1 6 44v2h34.667C43.613 46 46 43.604 46 40.65V16a1 1 0 0 0-1-1H10.333a1 1 0 0 0-1 1v24.65zm1-23.65H45l-1-1v24.65A3.341 3.341 0 0 1 40.667 44H6c-1.333 0-1.333 2 0 2 2.947 0 5.333-2.396 5.333-5.35V16l-1 1z"})]}),GY=null;var _4,Wc,Q4;const KY=({title:t="End Slide",desc:e="End Slide",width:n="16",height:o="14",className:r,focusable:a="false"})=>_4("svg",{className:Q4("i i-end-slide",r),focusable:a,height:o,viewBox:"0 0 16 14",width:n,children:[Wc("title",{children:t}),Wc("desc",{children:e}),Wc("path",{d:"M6,0.6L4.6,2l4,4H0v2h8.6l-4,4L6,13.4l5.7-5.7c0.4-0.4,0.4-1,0-1.4L6,0.6",fillRule:"evenodd"}),Wc("rect",{fillRule:"evenodd",height:"14",width:"2",x:"14"})]}),_Y=null;var Mp,Gc,Z4;const QY=({title:t="Envelope",desc:e="Envelope",width:n="17",height:o="14",className:r,focusable:a="false"})=>Mp("svg",{className:Z4("i i-envelope",r),focusable:a,height:o,viewBox:"0 0 17 14",width:n,xmlns:"http://www.w3.org/2000/svg",children:[Gc("title",{children:t}),Gc("desc",{children:e}),Mp("g",{fillRule:"nonzero",children:[Gc("path",{d:"M8.5 7.316L1.341.634a.5.5 0 0 0-.682.732l7.5 7a.5.5 0 0 0 .682 0l7.5-7a.5.5 0 1 0-.682-.732L8.5 7.316z"}),Gc("path",{d:"M1.5 1.5v11h14v-11h-14zM1 .5h15a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H1a.5.5 0 0 1-.5-.5V1A.5.5 0 0 1 1 .5z"})]})]}),ZY=null;var Y4,Kc,X4;const YY=({title:t="Error",desc:e="An x with a circle",width:n="50",height:o="50",className:r,focusable:a="false"})=>Y4("svg",{className:X4("i i-error",r),focusable:a,height:o,viewBox:"0 0 50 50",width:n,children:[Kc("title",{children:t}),Kc("desc",{children:e}),Kc("path",{d:"M25 50C11.193 50 0 38.807 0 25S11.193 0 25 0s25 11.193 25 25-11.193 25-25 25zm0-2c12.703 0 23-10.297 23-23S37.703 2 25 2 2 12.297 2 25s10.297 23 23 23z"}),Kc("path",{d:"M31.679 18.321a1.036 1.036 0 0 0-1.5 0L24.5 24l-5.679-5.679a1.036 1.036 0 0 0-1.5 0 1.036 1.036 0 0 0 0 1.5L23 25.5l-5.679 5.679a1.036 1.036 0 0 0 0 1.5c.215.214.429.321.75.321.322 0 .536-.107.75-.321L24.5 27l5.679 5.679c.214.214.535.321.75.321.214 0 .535-.107.75-.321a1.036 1.036 0 0 0 0-1.5L26 25.5l5.679-5.679a1.036 1.036 0 0 0 0-1.5"})]}),XY=null;var J4,_c,q4;const JY=({title:t="Error Alert",desc:e="A red circle with a white exclamation point in the middle",width:n="18",height:o="18",className:r,focusable:a="false"})=>J4("svg",{className:q4("i i-errorAlert",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,children:[_c("title",{children:t}),_c("desc",{children:e}),_c("circle",{cx:"9",cy:"9",r:"9"}),_c("path",{d:"M9.897 4v4.004c0 .425-.021.841-.063 1.25-.042.408-.098.84-.168 1.298H8.497c-.07-.457-.126-.89-.168-1.298a12.206 12.206 0 0 1-.063-1.25V4h1.631zM8 13.17c0-.145.027-.282.08-.413a.987.987 0 0 1 .225-.336 1.103 1.103 0 0 1 .759-.308 1.06 1.06 0 0 1 .749.308 1.06 1.06 0 0 1 .308.749 1.07 1.07 0 0 1-.308.749 1.077 1.077 0 0 1-.749.301 1.095 1.095 0 0 1-.76-.301.995.995 0 0 1-.223-.333A1.069 1.069 0 0 1 8 13.17z"})]}),qY=null,Op=({"aria-hidden":t,"aria-label":e="X mark",className:n,dataTestId:o="x-mark",desc:r,height:a="10",overrideStyle:i=!1,role:c="img",title:u,width:d="10"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:Q()(n,{"i i-exMark":!i}),"data-testid":o,focusable:"false",height:a,role:c,viewBox:"0 0 10 10",width:d,xmlns:"http://www.w3.org/2000/svg",children:[u&&(0,s.jsx)("title",{children:u}),r&&(0,s.jsx)("desc",{children:r}),(0,s.jsx)("path",{d:"M5,4.17,9.17,0,10,.83,5.83,5,10,9.17,9.17,10,5,5.83.83,10,0,9.17,4.17,5,0,.83.83,0Z"})]});var e9,Qc,t9;const tX=({title:t="Export",desc:e="Export",width:n="12",height:o="15",className:r,focusable:a="false"})=>e9("svg",{className:t9("i i-export",r),focusable:a,height:o,viewBox:"0 0 12 15",width:n,children:[Qc("title",{children:t}),Qc("desc",{children:e}),Qc("polygon",{points:"7,6.4 7,1 5,1 5,6.4 2.3,6.4 6,10.8 9.7,6.4"}),Qc("rect",{height:"2",width:"10",x:"1",y:"12"})]}),sX=null,Dp=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#DFE1E2",fillRule:"evenodd"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#C7CACC",fillRule:"evenodd"}),(0,s.jsx)("path",{d:"M13.534 22.9863V24.4163H10.245V26.4458H12.984V27.8813H10.245V30.9998H8.375V22.9863H13.534Z",fill:"#414448"}),(0,s.jsx)("path",{d:"M17.533 30.9998H15.663V22.9863H17.533V30.9998Z",fill:"#414448"}),(0,s.jsx)("path",{d:"M21.8805 29.5148H24.8505V30.9998H20.0215V22.9863H21.8805V29.5148Z",fill:"#414448"}),(0,s.jsx)("path",{d:"M31.8846 22.9863V24.4163H28.5956V26.2863H31.1146V27.6613H28.5956V29.5698H31.8846V30.9998H26.7256V22.9863H31.8846Z",fill:"#414448"})]}),s9=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#C3CEED",fillRule:"evenodd"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#96A9E0",fillRule:"evenodd"}),(0,s.jsx)("path",{d:"M14.8355 26.9904C14.8355 27.5698 14.7346 28.1051 14.533 28.5964C14.335 29.0841 14.0545 29.5076 13.6915 29.8669C13.3285 30.2226 12.8903 30.5013 12.377 30.7029C11.8673 30.9009 11.3008 30.9999 10.6775 30.9999H7.56445V22.9864H10.6775C11.3008 22.9864 11.8673 23.0873 12.377 23.2889C12.8903 23.4906 13.3285 23.7693 13.6915 24.1249C14.0545 24.4806 14.335 24.9041 14.533 25.3954C14.7346 25.8831 14.8355 26.4148 14.8355 26.9904ZM12.9325 26.9904C12.9325 26.5944 12.8811 26.2369 12.7785 25.9179C12.6758 25.5989 12.5273 25.3294 12.333 25.1094C12.1423 24.8858 11.9076 24.7153 11.629 24.5979C11.3503 24.4769 11.0331 24.4164 10.6775 24.4164H9.43445V29.5699H10.6775C11.0331 29.5699 11.3503 29.5113 11.629 29.3939C11.9076 29.2729 12.1423 29.1024 12.333 28.8824C12.5273 28.6588 12.6758 28.3874 12.7785 28.0684C12.8811 27.7494 12.9325 27.3901 12.9325 26.9904Z",fill:"#0C3092"}),(0,s.jsx)("path",{d:"M24.6375 26.9904C24.6375 27.5698 24.5367 28.1088 24.335 28.6074C24.137 29.1061 23.8565 29.5406 23.4935 29.9109C23.1305 30.2776 22.6923 30.5654 22.179 30.7744C21.6693 30.9834 21.1028 31.0879 20.4795 31.0879C19.8562 31.0879 19.2878 30.9834 18.7745 30.7744C18.2612 30.5654 17.8212 30.2776 17.4545 29.9109C17.0915 29.5406 16.8092 29.1061 16.6075 28.6074C16.4095 28.1088 16.3105 27.5698 16.3105 26.9904C16.3105 26.4111 16.4095 25.8721 16.6075 25.3734C16.8092 24.8748 17.0915 24.4421 17.4545 24.0754C17.8212 23.7088 18.2612 23.4209 18.7745 23.2119C19.2878 23.0029 19.8562 22.8984 20.4795 22.8984C21.1028 22.8984 21.6693 23.0048 22.179 23.2174C22.6923 23.4264 23.1305 23.7143 23.4935 24.0809C23.8565 24.4476 24.137 24.8803 24.335 25.3789C24.5367 25.8776 24.6375 26.4148 24.6375 26.9904ZM22.7345 26.9904C22.7345 26.5944 22.6832 26.2388 22.5805 25.9234C22.4779 25.6044 22.3293 25.3349 22.135 25.1149C21.9443 24.8949 21.7097 24.7263 21.431 24.6089C21.1523 24.4916 20.8352 24.4329 20.4795 24.4329C20.1202 24.4329 19.7993 24.4916 19.517 24.6089C19.2383 24.7263 19.0018 24.8949 18.8075 25.1149C18.6168 25.3349 18.4702 25.6044 18.3675 25.9234C18.2648 26.2388 18.2135 26.5944 18.2135 26.9904C18.2135 27.3901 18.2648 27.7494 18.3675 28.0684C18.4702 28.3838 18.6168 28.6514 18.8075 28.8714C19.0018 29.0914 19.2383 29.2601 19.517 29.3774C19.7993 29.4911 20.1202 29.5479 20.4795 29.5479C20.8352 29.5479 21.1523 29.4911 21.431 29.3774C21.7097 29.2601 21.9443 29.0914 22.135 28.8714C22.3293 28.6514 22.4779 28.3838 22.5805 28.0684C22.6832 27.7494 22.7345 27.3901 22.7345 26.9904Z",fill:"#0C3092"}),(0,s.jsx)("path",{d:"M31.9109 28.9264C31.9549 28.9264 31.9989 28.9356 32.0429 28.9539C32.0869 28.9686 32.129 28.9961 32.1694 29.0364L32.9064 29.8119C32.5837 30.2336 32.1785 30.5526 31.6909 30.7689C31.2069 30.9816 30.633 31.0879 29.9694 31.0879C29.3607 31.0879 28.8144 30.9853 28.3304 30.7799C27.85 30.5709 27.4412 30.2849 27.1039 29.9219C26.7702 29.5553 26.5135 29.1226 26.3339 28.6239C26.1542 28.1216 26.0644 27.5771 26.0644 26.9904C26.0644 26.3928 26.167 25.8446 26.3724 25.3459C26.5777 24.8436 26.8637 24.4109 27.2304 24.0479C27.6007 23.6849 28.0425 23.4026 28.5559 23.2009C29.0692 22.9993 29.6357 22.8984 30.2554 22.8984C30.556 22.8984 30.8384 22.9259 31.1024 22.9809C31.37 23.0323 31.6194 23.1056 31.8504 23.2009C32.0814 23.2926 32.294 23.4044 32.4884 23.5364C32.6827 23.6648 32.855 23.8078 33.0054 23.9654L32.3784 24.8069C32.338 24.8583 32.2904 24.9059 32.2354 24.9499C32.1804 24.9903 32.1034 25.0104 32.0044 25.0104C31.9384 25.0104 31.876 24.9958 31.8174 24.9664C31.7587 24.9371 31.6964 24.9023 31.6304 24.8619C31.5644 24.8179 31.491 24.7721 31.4104 24.7244C31.3334 24.6731 31.2399 24.6273 31.1299 24.5869C31.0235 24.5429 30.897 24.5063 30.7504 24.4769C30.6074 24.4476 30.4387 24.4329 30.2444 24.4329C29.907 24.4329 29.599 24.4934 29.3204 24.6144C29.0417 24.7318 28.8015 24.9023 28.5999 25.1259C28.4019 25.3459 28.246 25.6136 28.1324 25.9289C28.0224 26.2443 27.9674 26.5981 27.9674 26.9904C27.9674 27.4011 28.0224 27.7659 28.1324 28.0849C28.246 28.4039 28.3982 28.6734 28.5889 28.8934C28.7832 29.1098 29.0087 29.2748 29.2654 29.3884C29.522 29.5021 29.797 29.5589 30.0904 29.5589C30.259 29.5589 30.413 29.5516 30.5524 29.5369C30.6917 29.5186 30.82 29.4893 30.9374 29.4489C31.0584 29.4086 31.172 29.3573 31.2784 29.2949C31.3884 29.2289 31.4984 29.1483 31.6084 29.0529C31.6524 29.0163 31.7 28.9869 31.7514 28.9649C31.8027 28.9393 31.8559 28.9264 31.9109 28.9264Z",fill:"#0C3092"})]});var n9,Zc,o9;const rX=({title:t="No File",desc:e="Paper icon with one corner bent inwards",width:n="40",height:o="50",className:r,focusable:a="false"})=>n9("svg",{className:o9("i i-fileNone",r),focusable:a,height:o,viewBox:"0 0 40 50",width:n,children:[Zc("title",{children:t}),Zc("desc",{children:e}),Zc("path",{d:"M2.00804893,0 C0.899034128,0 0,0.889064278 0,1.99091407 L0,48.0090859 C0,49.1086374 0.892756032,50 1.99862555,50 L37.2170607,50 C38.3208711,50 39.2156863,49.1011186 39.2156863,47.993136 L39.2156863,13.6363636 L26.1437908,0 L2.00804893,0 Z",opacity:"0.205748601"}),Zc("path",{d:"M26.1437908,0 L26.1437908,11.7296861 C26.1437908,12.8319383 27.0422752,13.7254902 28.1433598,13.7254902 L39.2156863,13.7254902",opacity:"0.25"})]}),aX=null,r9=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#F5D0CE",fillRule:"evenodd"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#EDADA9",fillRule:"evenodd"}),(0,s.jsx)("path",{d:"M10.8678 28.3213V30.9998H9.00879V22.9863H11.8358C12.4005 22.9863 12.8845 23.0542 13.2878 23.1898C13.6948 23.3218 14.0285 23.5052 14.2888 23.7398C14.5528 23.9745 14.7471 24.2513 14.8718 24.5703C14.9965 24.8893 15.0588 25.234 15.0588 25.6043C15.0588 26.004 14.9946 26.3707 14.8663 26.7043C14.738 27.038 14.5418 27.324 14.2778 27.5623C14.0138 27.8007 13.6783 27.9877 13.2713 28.1233C12.868 28.2553 12.3895 28.3213 11.8358 28.3213H10.8678ZM10.8678 26.9188H11.8358C12.3198 26.9188 12.6681 26.8033 12.8808 26.5723C13.0935 26.3413 13.1998 26.0187 13.1998 25.6043C13.1998 25.421 13.1723 25.2542 13.1173 25.1038C13.0623 24.9535 12.978 24.8252 12.8643 24.7188C12.7543 24.6088 12.6131 24.5245 12.4408 24.4658C12.2721 24.4072 12.0705 24.3778 11.8358 24.3778H10.8678V26.9188Z",fill:"#771D18"}),(0,s.jsx)("path",{d:"M24.2944 26.9903C24.2944 27.5697 24.1936 28.105 23.9919 28.5963C23.7939 29.084 23.5134 29.5075 23.1504 29.8668C22.7874 30.2225 22.3493 30.5012 21.8359 30.7028C21.3263 30.9008 20.7598 30.9998 20.1364 30.9998H17.0234V22.9863H20.1364C20.7598 22.9863 21.3263 23.0872 21.8359 23.2888C22.3493 23.4905 22.7874 23.7692 23.1504 24.1248C23.5134 24.4805 23.7939 24.904 23.9919 25.3953C24.1936 25.883 24.2944 26.4147 24.2944 26.9903ZM22.3914 26.9903C22.3914 26.5943 22.3401 26.2368 22.2374 25.9178C22.1348 25.5988 21.9863 25.3293 21.7919 25.1093C21.6013 24.8857 21.3666 24.7152 21.0879 24.5978C20.8093 24.4768 20.4921 24.4163 20.1364 24.4163H18.8934V29.5698H20.1364C20.4921 29.5698 20.8093 29.5112 21.0879 29.3938C21.3666 29.2728 21.6013 29.1023 21.7919 28.8823C21.9863 28.6587 22.1348 28.3873 22.2374 28.0683C22.3401 27.7493 22.3914 27.39 22.3914 26.9903Z",fill:"#771D18"}),(0,s.jsx)("path",{d:"M31.3465 22.9863V24.4163H28.0575V26.4458H30.7965V27.8813H28.0575V30.9998H26.1875V22.9863H31.3465Z",fill:"#771D18"})]}),a9=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#FBDACC",fillRule:"evenodd"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#F8BFA6",fillRule:"evenodd"}),(0,s.jsx)("path",{d:"M11.2115 28.3213V30.9998H9.35254V22.9863H12.1795C12.7442 22.9863 13.2282 23.0542 13.6315 23.1898C14.0385 23.3218 14.3722 23.5052 14.6325 23.7398C14.8965 23.9745 15.0909 24.2513 15.2155 24.5703C15.3402 24.8893 15.4025 25.234 15.4025 25.6043C15.4025 26.004 15.3384 26.3707 15.21 26.7043C15.0817 27.038 14.8855 27.324 14.6215 27.5623C14.3575 27.8007 14.022 27.9877 13.615 28.1233C13.2117 28.2553 12.7332 28.3213 12.1795 28.3213H11.2115ZM11.2115 26.9188H12.1795C12.6635 26.9188 13.0119 26.8033 13.2245 26.5723C13.4372 26.3413 13.5435 26.0187 13.5435 25.6043C13.5435 25.421 13.516 25.2542 13.461 25.1038C13.406 24.9535 13.3217 24.8252 13.208 24.7188C13.098 24.6088 12.9569 24.5245 12.7845 24.4658C12.6159 24.4072 12.4142 24.3778 12.1795 24.3778H11.2115V26.9188Z",fill:"#7C2B0E"}),(0,s.jsx)("path",{d:"M19.2262 28.3213V30.9998H17.3672V22.9863H20.1942C20.7589 22.9863 21.2429 23.0542 21.6462 23.1898C22.0532 23.3218 22.3869 23.5052 22.6472 23.7398C22.9112 23.9745 23.1055 24.2513 23.2302 24.5703C23.3549 24.8893 23.4172 25.234 23.4172 25.6043C23.4172 26.004 23.353 26.3707 23.2247 26.7043C23.0964 27.038 22.9002 27.324 22.6362 27.5623C22.3722 27.8007 22.0367 27.9877 21.6297 28.1233C21.2264 28.2553 20.7479 28.3213 20.1942 28.3213H19.2262ZM19.2262 26.9188H20.1942C20.6782 26.9188 21.0265 26.8033 21.2392 26.5723C21.4519 26.3413 21.5582 26.0187 21.5582 25.6043C21.5582 25.421 21.5307 25.2542 21.4757 25.1038C21.4207 24.9535 21.3364 24.8252 21.2227 24.7188C21.1127 24.6088 20.9715 24.5245 20.7992 24.4658C20.6305 24.4072 20.4289 24.3778 20.1942 24.3778H19.2262V26.9188Z",fill:"#7C2B0E"}),(0,s.jsx)("path",{d:"M31.2008 22.9863V24.4603H28.9458V30.9998H27.0868V24.4603H24.8318V22.9863H31.2008Z",fill:"#7C2B0E"})]}),i9=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#CFEAF8",fillRule:"evenodd"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#ABDBF3",fillRule:"evenodd"}),(0,s.jsx)("path",{d:"M11.6738 28.0355V31H9.81476V22.9865H12.4218C13.0011 22.9865 13.4943 23.047 13.9013 23.168C14.3119 23.2853 14.6456 23.4503 14.9023 23.663C15.1626 23.8757 15.3514 24.1268 15.4688 24.4165C15.5861 24.7062 15.6448 25.0215 15.6448 25.3625C15.6448 25.6228 15.6099 25.8685 15.5403 26.0995C15.4706 26.3305 15.3661 26.545 15.2268 26.743C15.0911 26.9373 14.9224 27.1115 14.7208 27.2655C14.5228 27.4195 14.2936 27.546 14.0333 27.645C14.1579 27.7073 14.2734 27.7843 14.3798 27.876C14.4898 27.9677 14.5851 28.0795 14.6658 28.2115L16.3708 31H14.6878C14.3761 31 14.1524 30.8827 14.0168 30.648L12.6858 28.3215C12.6271 28.2188 12.5574 28.1455 12.4768 28.1015C12.3998 28.0575 12.2898 28.0355 12.1468 28.0355H11.6738ZM11.6738 26.754H12.4218C12.6748 26.754 12.8893 26.7228 13.0653 26.6605C13.2449 26.5945 13.3916 26.5047 13.5053 26.391C13.6189 26.2773 13.7014 26.1453 13.7528 25.995C13.8041 25.841 13.8298 25.676 13.8298 25.5C13.8298 25.148 13.7143 24.873 13.4833 24.675C13.2559 24.477 12.9021 24.378 12.4218 24.378H11.6738V26.754Z",fill:"#144E6C"}),(0,s.jsx)("path",{d:"M23.6162 22.9865V24.4605H21.3612V31H19.5022V24.4605H17.2472V22.9865H23.6162Z",fill:"#144E6C"}),(0,s.jsx)("path",{d:"M30.5411 22.9865V24.4165H27.2521V26.446H29.9911V27.8815H27.2521V31H25.3821V22.9865H30.5411Z",fill:"#144E6C"})]}),l9=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#D1E5D1",fillRule:"evenodd"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#AFD1AE",fillRule:"evenodd"}),(0,s.jsx)("path",{d:"M11.8861 26.8804L9.40564 22.9864H11.2646C11.3856 22.9864 11.4736 23.0029 11.5286 23.0359C11.5873 23.0653 11.6386 23.1166 11.6826 23.1899L13.2776 25.8904C13.296 25.8428 13.3161 25.7969 13.3381 25.7529C13.3638 25.7089 13.3913 25.6631 13.4206 25.6154L14.8176 23.2174C14.9093 23.0634 15.034 22.9864 15.1916 22.9864H16.9736L14.4601 26.7979L17.0286 30.9999H15.1696C15.0486 30.9999 14.9496 30.9706 14.8726 30.9119C14.7993 30.8533 14.7406 30.7836 14.6966 30.7029L13.0906 27.8979C13.0613 27.9786 13.0283 28.0483 12.9916 28.1069L11.4956 30.7029C11.4516 30.7799 11.393 30.8496 11.3196 30.9119C11.2463 30.9706 11.1546 30.9999 11.0446 30.9999H9.30664L11.8861 26.8804Z",fill:"#265026"}),(0,s.jsx)("path",{d:"M20.6017 29.5149H23.5717V30.9999H18.7427V22.9864H20.6017V29.5149Z",fill:"#265026"}),(0,s.jsx)("path",{d:"M29.9128 24.6144C29.8578 24.7024 29.7991 24.7684 29.7368 24.8124C29.6781 24.8564 29.6011 24.8784 29.5058 24.8784C29.4215 24.8784 29.3298 24.8528 29.2308 24.8014C29.1355 24.7464 29.0255 24.6859 28.9008 24.6199C28.7798 24.5539 28.6405 24.4953 28.4828 24.4439C28.3251 24.3889 28.1455 24.3614 27.9438 24.3614C27.5955 24.3614 27.3351 24.4366 27.1628 24.5869C26.9941 24.7336 26.9098 24.9334 26.9098 25.1864C26.9098 25.3478 26.9611 25.4816 27.0638 25.5879C27.1665 25.6943 27.3003 25.7859 27.4653 25.8629C27.634 25.9399 27.8246 26.0114 28.0373 26.0774C28.2536 26.1398 28.4736 26.2113 28.6973 26.2919C28.921 26.3689 29.1391 26.4606 29.3518 26.5669C29.5681 26.6733 29.7588 26.8089 29.9238 26.9739C30.0925 27.1389 30.2281 27.3406 30.3308 27.5789C30.4335 27.8136 30.4848 28.0978 30.4848 28.4314C30.4848 28.8018 30.4206 29.1483 30.2923 29.4709C30.164 29.7936 29.977 30.0759 29.7313 30.3179C29.4893 30.5563 29.1886 30.7451 28.8293 30.8844C28.4736 31.0201 28.0685 31.0879 27.6138 31.0879C27.3645 31.0879 27.1096 31.0623 26.8493 31.0109C26.5926 30.9596 26.3433 30.8881 26.1013 30.7964C25.8593 30.7011 25.632 30.5893 25.4193 30.4609C25.2066 30.3326 25.0215 30.1896 24.8638 30.0319L25.4138 29.1629C25.4541 29.0969 25.511 29.0438 25.5843 29.0034C25.6576 28.9631 25.7365 28.9429 25.8208 28.9429C25.9308 28.9429 26.0408 28.9778 26.1508 29.0474C26.2645 29.1171 26.391 29.1941 26.5303 29.2784C26.6733 29.3628 26.8365 29.4398 27.0198 29.5094C27.2031 29.5791 27.4195 29.6139 27.6688 29.6139C28.0061 29.6139 28.2683 29.5406 28.4553 29.3939C28.6423 29.2436 28.7358 29.0071 28.7358 28.6844C28.7358 28.4974 28.6845 28.3453 28.5818 28.2279C28.4791 28.1106 28.3435 28.0134 28.1748 27.9364C28.0098 27.8594 27.821 27.7916 27.6083 27.7329C27.3956 27.6743 27.1775 27.6101 26.9538 27.5404C26.7301 27.4671 26.512 27.3791 26.2993 27.2764C26.0866 27.1701 25.896 27.0326 25.7273 26.8639C25.5623 26.6916 25.4285 26.4789 25.3258 26.2259C25.2231 25.9693 25.1718 25.6539 25.1718 25.2799C25.1718 24.9793 25.2323 24.6859 25.3533 24.3999C25.4743 24.1139 25.6521 23.8591 25.8868 23.6354C26.1215 23.4118 26.4093 23.2339 26.7503 23.1019C27.0913 22.9663 27.4818 22.8984 27.9218 22.8984C28.1675 22.8984 28.4058 22.9186 28.6368 22.9589C28.8715 22.9956 29.0933 23.0524 29.3023 23.1294C29.5113 23.2028 29.7056 23.2926 29.8853 23.3989C30.0686 23.5016 30.2318 23.6189 30.3748 23.7509L29.9128 24.6144Z",fill:"#265026"})]}),c9=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#CFEAF8",fillRule:"evenodd"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#ABDBF3",fillRule:"evenodd"}),(0,s.jsx)("path",{d:"M16.8968 22.9863V23.6573C16.8968 23.7527 16.8802 23.8462 16.8472 23.9378C16.8179 24.0295 16.7757 24.1157 16.7207 24.1963L12.9587 29.5698H16.7758V30.9998H10.5938V30.2848C10.5938 30.2005 10.6084 30.118 10.6377 30.0373C10.6671 29.953 10.7074 29.876 10.7587 29.8063L14.5317 24.4163H10.9017V22.9863H16.8968Z",fill:"#124F6E"}),(0,s.jsx)("path",{d:"M20.7826 30.9998H18.9126V22.9863H20.7826V30.9998Z",fill:"#124F6E"}),(0,s.jsx)("path",{d:"M25.1301 28.3213V30.9998H23.2711V22.9863H26.0981C26.6627 22.9863 27.1467 23.0542 27.5501 23.1898C27.9571 23.3218 28.2907 23.5052 28.5511 23.7398C28.8151 23.9745 29.0094 24.2513 29.1341 24.5703C29.2587 24.8893 29.3211 25.234 29.3211 25.6043C29.3211 26.004 29.2569 26.3707 29.1286 26.7043C29.0002 27.038 28.8041 27.324 28.5401 27.5623C28.2761 27.8007 27.9406 27.9877 27.5336 28.1233C27.1302 28.2553 26.6517 28.3213 26.0981 28.3213H25.1301ZM25.1301 26.9188H26.0981C26.5821 26.9188 26.9304 26.8033 27.1431 26.5723C27.3557 26.3413 27.4621 26.0187 27.4621 25.6043C27.4621 25.421 27.4346 25.2542 27.3796 25.1038C27.3246 24.9535 27.2402 24.8252 27.1266 24.7188C27.0166 24.6088 26.8754 24.5245 26.7031 24.4658C26.5344 24.4072 26.3327 24.3778 26.0981 24.3778H25.1301V26.9188Z",fill:"#124F6E"})]});var d9,Yc,u9;const hX=({title:t="More",desc:e="Filled caret pointing right",width:n="7",height:o="5",className:r,focusable:a="false"})=>d9("svg",{className:u9("i i-filledChevronRight",r),focusable:a,height:o,viewBox:"0 0 5 7",width:n,children:[Yc("title",{children:t}),Yc("desc",{children:e}),Yc("g",{children:Yc("path",{d:"M4 3.625L1 1v5.25z",strokeLinecap:"round",strokeLinejoin:"round"})})]}),mX=null,O0=({title:t="Fill in the Blank",desc:e="Pencil writing on a surface",width:n="15",height:o="15",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:Q()("i i-fillInTheBlank",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.jsx)("path",{d:"M2.488 8.246l5.25-5.25 1.4 1.4-5.25 5.25h-1.4v-1.4zm-.875 3.15h2.625a.794.794 0 0 0 .613-.262l6.125-6.125a.846.846 0 0 0 0-1.225L8.35 1.159a.846.846 0 0 0-1.225 0L1 7.284a.794.794 0 0 0-.263.612v2.625c0 .525.35.875.875.875zM.739 13.146h14v1.75h-14z"})]});var h9,D0;const fX=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="16",role:a="img",title:i,width:c="16"})=>h9("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 16",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&D0("title",{children:i}),o&&D0("desc",{children:o}),D0("path",{d:"M11.793 2.793L9 0h7v7l-2.793-2.793-2.5 2.5a.997.997 0 0 1-1.414 0 1 1 0 0 1 0-1.414l2.5-2.5zm-5.086 6.5a1 1 0 0 1 0 1.414l-2.5 2.5L7 16H0V9l2.793 2.793 2.5-2.5a1 1 0 0 1 1.414 0zm-2.5-6.5l2.5 2.5a1 1 0 1 1-1.414 1.414l-2.5-2.5L0 7V0h7L4.207 2.793zm5.086 6.5a1 1 0 0 1 1.414 0l2.5 2.5L16 9v7H9l2.793-2.793-2.5-2.5a1 1 0 0 1 0-1.414z",fill:"currentColor",fillRule:"evenodd"})]}),vX=null;var m9,B0,p9;const gX=({title:t="Flashcard Block",desc:e="Flashcard Block",width:n="16",height:o="15",className:r,focusable:a="false"})=>m9("svg",{className:p9("i i-flashcard-block",r),focusable:a,height:o,viewBox:"0 0 16 15",width:n,children:[B0("title",{children:t}),B0("desc",{children:e}),B0("path",{d:"M2.759 1.9v3.2h3.2V1.9h-3.2zm5-.186v3.572c0 .925-.689 1.614-1.614 1.614H2.573C1.648 6.9.96 6.211.96 5.286V1.714C.959.79 1.648.1 2.573.1h3.572c.925 0 1.614.689 1.614 1.614zm8 0v3.572c0 .925-.689 1.614-1.614 1.614h-3.572c-.925 0-1.614-.689-1.614-1.614V1.714C8.959.79 9.648.1 10.573.1h3.572c.925 0 1.614.689 1.614 1.614zm-5 .186v3.2h3.2V1.9h-3.2zm-3 7.814v3.572c0 .925-.689 1.614-1.614 1.614H2.573c-.925 0-1.614-.689-1.614-1.614V9.714c0-.925.689-1.614 1.614-1.614h3.572c.925 0 1.614.689 1.614 1.614zm-5 .186v3.2h3.2V9.9h-3.2zm13-.186v3.572c0 .925-.689 1.614-1.614 1.614h-3.572c-.925 0-1.614-.689-1.614-1.614V9.714c0-.925.689-1.614 1.614-1.614h3.572c.925 0 1.614.689 1.614 1.614zm-5 .186v3.2h3.2V9.9h-3.2z",fillRule:"nonzero"})]}),CX=null;var Bp,f9;const xX=t=>Bp(f9,{viewBox:"0 0 15 15",...t,children:Bp("path",{d:"M13.32 2.84H7.543L5.182.477a.794.794 0 0 0-.613-.262h-3.5c-.525 0-.875.35-.875.875v12.25c0 .525.35.875.875.875h12.25c.525 0 .875-.35.875-.875V3.715c0-.525-.35-.875-.875-.875"})}),bX=null;var v9,Hp,g9;function yX(t){return v9(g9,{...t,viewBox:"0 0 16 14",children:[Hp("path",{clipRule:"evenodd",d:"M2.66675 1.66683C2.48994 1.66683 2.32037 1.73707 2.19534 1.86209C2.07032 1.98712 2.00008 2.15668 2.00008 2.3335V11.6668C2.00008 11.8436 2.07032 12.0132 2.19534 12.1382C2.32037 12.2633 2.48994 12.3335 2.66675 12.3335H13.3334C13.5102 12.3335 13.6798 12.2633 13.8048 12.1382C13.9298 12.0132 14.0001 11.8436 14.0001 11.6668V4.3335C14.0001 4.15669 13.9298 3.98712 13.8048 3.86209C13.6798 3.73707 13.5102 3.66683 13.3334 3.66683H7.33341C7.11051 3.66683 6.90236 3.55543 6.77871 3.36996L5.64329 1.66683H2.66675ZM1.25253 0.919282C1.62761 0.54421 2.13632 0.333496 2.66675 0.333496H6.00008C6.22298 0.333496 6.43114 0.444897 6.55478 0.630363L7.6902 2.3335H13.3334C13.8638 2.3335 14.3726 2.54421 14.7476 2.91928C15.1227 3.29436 15.3334 3.80306 15.3334 4.3335V11.6668C15.3334 12.1973 15.1227 12.706 14.7476 13.081C14.3726 13.4561 13.8638 13.6668 13.3334 13.6668H2.66675C2.13631 13.6668 1.62761 13.4561 1.25253 13.081C0.877462 12.706 0.666748 12.1973 0.666748 11.6668V2.3335C0.666748 1.80306 0.877462 1.29436 1.25253 0.919282Z",fillRule:"evenodd"}),Hp("path",{clipRule:"evenodd",d:"M7.52868 5.86209C7.78903 5.60174 8.21114 5.60174 8.47149 5.86209L10.4715 7.86209C10.7318 8.12244 10.7318 8.54455 10.4715 8.8049L8.47149 10.8049C8.21114 11.0653 7.78903 11.0653 7.52868 10.8049C7.26833 10.5446 7.26833 10.1224 7.52868 9.86209L8.39061 9.00016H6.00008C5.63189 9.00016 5.33341 8.70169 5.33341 8.3335C5.33341 7.96531 5.63189 7.66683 6.00008 7.66683H8.39061L7.52868 6.8049C7.26833 6.54455 7.26833 6.12244 7.52868 5.86209Z",fillRule:"evenodd"})]})}var C9,Xc,x9;const LX=({title:t="Folder Empty",desc:e="Folder outline empty",width:n="47",height:o="47",className:r,focusable:a="false"})=>C9("svg",{className:x9("i i-folder--empty",r),focusable:a,height:o,viewBox:"0 0 47 47",width:n,children:[Xc("title",{children:t}),Xc("desc",{children:e}),Xc("path",{d:"M38.254 7.148a1 1 0 0 0-1-1h-20.16l.805.407L13.58.688a1 1 0 0 0-.805-.407H1.254a1 1 0 0 0-1 1v39.6c0 2.979 2.377 5.4 5.32 5.4a1 1 0 0 0 0-2c-1.83 0-3.32-1.518-3.32-3.4v-39.6l-1 1h11.52l-.805-.407 4.32 5.867a1 1 0 0 0 .805.407h20.16l-1-1v8.8a1 1 0 0 0 2 0v-8.8z"}),Xc("path",{d:"M9.587 40.931a3.341 3.341 0 0 1-3.333 3.35v2H40.92c2.946 0 5.333-2.396 5.333-5.35v-24.65a1 1 0 0 0-1-1H10.587a1 1 0 0 0-1 1v24.65zm1-23.65h34.667l-1-1v24.65a3.341 3.341 0 0 1-3.333 3.35H6.254c-1.333 0-1.333 2 0 2 2.946 0 5.333-2.396 5.333-5.35v-24.65l-1 1z"})]}),EX=null;var b9,H0,y9;const SX=({title:t="Folder Outline",desc:e="Outline of a folder",width:n="24",height:o="24",className:r,focusable:a="false"})=>b9("svg",{className:y9("i",r),focusable:a,height:o,viewBox:"0 0 24 24",width:n,children:[H0("title",{children:t}),H0("desc",{children:e}),H0("path",{d:"M1 22l1 1V1L1 2h8l-.8-.4 3 4a1 1 0 0 0 .8.4h11l-1-1v18l1-1H1zm23 1V5a1 1 0 0 0-1-1H12l.8.4-3-4A1 1 0 0 0 9 0H1a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h22a1 1 0 0 0 1-1z",fillRule:"nonzero"})]}),TX=null;var L9,F0,E9;const IX=({title:t="FolderSort",desc:e="Sort by Folders",width:n="13",height:o="13",className:r,focusable:a="false"})=>L9("svg",{className:E9("i",r),focusable:a,height:o,viewBox:"0 0 13 13",width:n,children:[F0("title",{children:t}),F0("desc",{children:e}),F0("path",{d:"M12.188 13H.812C.326 13 0 12.675 0 12.187V.813C0 .325.325 0 .813 0h3.25c.243 0 .406.081.568.244l2.194 2.194h5.362c.488 0 .813.325.813.812v8.938c0 .487-.325.812-.813.812zM1.624 11.375h9.75V4.062H6.5a.738.738 0 0 1-.569-.243L3.737 1.625H1.625v9.75z"})]}),NX=null;var S9,z0,T9;const jX=({title:t="Font",desc:e="A capital letter T with a second smaller capital T to the right",width:n="35",height:o="27",className:r,focusable:a="false"})=>S9("svg",{className:T9("i",r),focusable:a,height:o,viewBox:"0 0 35 27",width:n,children:[z0("title",{children:t}),z0("desc",{children:e}),z0("path",{d:"M1 1v5h8.333v20h5V6h8.334V1H1zm32.667 10.333h-15v5h5V26h5v-9.667h5v-5z",fill:"none",fillRule:"nonzero",stroke:"#adaeaf",strokeWidth:"2"})]}),kX=null;var I9,Jc,N9;const AX=t=>I9(N9,{...t,viewBox:"0 0 16 16",children:[Jc("path",{d:"M6,0 L1,0 C0.4,0 0,0.4 0,1 L0,6 C0,6.6 0.4,7 1,7 L6,7 C6.6,7 7,6.6 7,6 L7,1 C7,0.4 6.6,0 6,0"}),Jc("path",{d:"M15,0 L10,0 C9.4,0 9,0.4 9,1 L9,6 C9,6.6 9.4,7 10,7 L15,7 C15.6,7 16,6.6 16,6 L16,1 C16,0.4 15.6,0 15,0"}),Jc("path",{d:"M15,9 L10,9 C9.4,9 9,9.4 9,10 L9,15 C9,15.6 9.4,16 10,16 L15,16 C15.6,16 16,15.6 16,15 L16,10 C16,9.4 15.6,9 15,9"}),Jc("path",{d:"M6,9 L1,9 C0.4,9 0,9.4 0,10 L0,15 C0,15.6 0.4,16 1,16 L6,16 C6.6,16 7,15.6 7,15 L7,10 C7,9.4 6.6,9 6,9"})]}),RX=null;var j9,qc,k9;const PX=({title:t="Group",desc:e="Silhouettes of two people",width:n="18",height:o="17",className:r,focusable:a="false"})=>j9("svg",{className:k9("i",r),focusable:a,height:o,viewBox:"0 0 18 17",width:n,children:[qc("title",{children:t}),qc("desc",{children:e}),qc("path",{d:"M4.5 8.25C3.50544 8.25 2.55161 7.85491 1.84835 7.15165C1.14509 6.44839 0.75 5.49456 0.75 4.5C0.75 3.50544 1.14509 2.55161 1.84835 1.84835C2.55161 1.14509 3.50544 0.75 4.5 0.75C5.49456 0.75 6.44839 1.14509 7.15165 1.84835C7.85491 2.55161 8.25 3.50544 8.25 4.5C8.25 5.49456 7.85491 6.44839 7.15165 7.15165C6.44839 7.85491 5.49456 8.25 4.5 8.25ZM4.5 6.75C5.09674 6.75 5.66903 6.51295 6.09099 6.09099C6.51295 5.66903 6.75 5.09674 6.75 4.5C6.75 3.90326 6.51295 3.33097 6.09099 2.90901C5.66903 2.48705 5.09674 2.25 4.5 2.25C3.90326 2.25 3.33097 2.48705 2.90901 2.90901C2.48705 3.33097 2.25 3.90326 2.25 4.5C2.25 5.09674 2.48705 5.66903 2.90901 6.09099C3.33097 6.51295 3.90326 6.75 4.5 6.75ZM13.5 12.25C12.5054 12.25 11.5516 11.8549 10.8483 11.1517C10.1451 10.4484 9.75 9.49456 9.75 8.5C9.75 7.50544 10.1451 6.55161 10.8483 5.84835C11.5516 5.14509 12.5054 4.75 13.5 4.75C14.4946 4.75 15.4484 5.14509 16.1517 5.84835C16.8549 6.55161 17.25 7.50544 17.25 8.5C17.25 9.49456 16.8549 10.4484 16.1517 11.1517C15.4484 11.8549 14.4946 12.25 13.5 12.25ZM13.5 10.75C14.0967 10.75 14.669 10.5129 15.091 10.091C15.5129 9.66903 15.75 9.09674 15.75 8.5C15.75 7.90326 15.5129 7.33097 15.091 6.90901C14.669 6.48705 14.0967 6.25 13.5 6.25C12.9033 6.25 12.331 6.48705 11.909 6.90901C11.4871 7.33097 11.25 7.90326 11.25 8.5C11.25 9.09674 11.4871 9.66903 11.909 10.091C12.331 10.5129 12.9033 10.75 13.5 10.75Z",fill:"black"}),qc("path",{d:"M8.75 11.5C8.75 11.6989 8.67098 11.8897 8.53033 12.0303C8.38968 12.171 8.19891 12.25 8 12.25C7.80109 12.25 7.61032 12.171 7.46967 12.0303C7.32902 11.8897 7.25 11.6989 7.25 11.5C7.25 10.7707 6.96027 10.0712 6.44454 9.55546C5.92882 9.03973 5.22935 8.75 4.5 8.75C3.77065 8.75 3.07118 9.03973 2.55546 9.55546C2.03973 10.0712 1.75 10.7707 1.75 11.5C1.75 11.5985 1.7306 11.696 1.69291 11.787C1.65522 11.878 1.59997 11.9607 1.53033 12.0303C1.46069 12.1 1.37801 12.1552 1.28701 12.1929C1.19602 12.2306 1.09849 12.25 1 12.25C0.901509 12.25 0.803982 12.2306 0.712987 12.1929C0.621993 12.1552 0.539314 12.1 0.46967 12.0303C0.400026 11.9607 0.344781 11.878 0.30709 11.787C0.269399 11.696 0.25 11.5985 0.25 11.5C0.25 10.9419 0.359929 10.3892 0.573512 9.8736C0.787094 9.35796 1.10015 8.88944 1.4948 8.4948C1.88945 8.10015 2.35796 7.78709 2.8736 7.57351C3.38923 7.35993 3.94188 7.25 4.5 7.25C5.05812 7.25 5.61077 7.35993 6.1264 7.57351C6.64204 7.78709 7.11055 8.10015 7.5052 8.4948C7.89985 8.88944 8.21291 9.35796 8.42649 9.8736C8.64007 10.3892 8.75 10.9419 8.75 11.5ZM17.75 15.402C17.75 15.6009 17.671 15.7917 17.5303 15.9323C17.3897 16.073 17.1989 16.152 17 16.152C16.8011 16.152 16.6103 16.073 16.4697 15.9323C16.329 15.7917 16.25 15.6009 16.25 15.402C16.25 14.6727 15.9603 13.9732 15.4445 13.4575C14.9288 12.9417 14.2293 12.652 13.5 12.652C12.7707 12.652 12.0712 12.9417 11.5555 13.4575C11.0397 13.9732 10.75 14.6727 10.75 15.402C10.75 15.6009 10.671 15.7917 10.5303 15.9323C10.3897 16.073 10.1989 16.152 10 16.152C9.80109 16.152 9.61032 16.073 9.46967 15.9323C9.32902 15.7917 9.25 15.6009 9.25 15.402C9.25 14.2748 9.69777 13.1938 10.4948 12.3968C11.2918 11.5998 12.3728 11.152 13.5 11.152C14.6272 11.152 15.7082 11.5998 16.5052 12.3968C17.3022 13.1938 17.75 14.2748 17.75 15.402Z",fill:"black"})]}),wX=null;var Fp,A9;function MX(t){return Fp(A9,{viewBox:"0 0 20 14",...t,children:Fp("path",{d:"M0 0H20V2H0V0Z M0 6H20V8H0V6Z M20 12H0V14H20V12Z"})})}const V0=({className:t,decorative:e=!0,desc:n="Heart",focusable:o="false",height:r="16",isFilled:a=!0,title:i="Heart",width:c="16"})=>(0,s.jsxs)("svg",{"aria-hidden":e,className:Q()(`i i-heart${a?"Filled":"Outline"}`,t),focusable:o,height:r,viewBox:"0 0 16 16",width:c,children:[(0,s.jsx)("title",{children:i}),(0,s.jsx)("desc",{children:n}),(0,s.jsx)("path",{d:"M11.15 1C9.838 1 8.7 1.7 8 2.75 7.3 1.7 6.162 1 4.85 1 2.75 1 1 2.75 1 4.85c0 3.85 7 9.538 7 9.538S15 8.7 15 4.85C15 2.75 13.25 1 11.15 1"})]});var R9,U0,P9;const DX=({title:t="Hidden",desc:e="Eye crossed out",width:n="16",height:o="14",className:r=null,focusable:a="false"})=>R9("svg",{className:P9("i i-hidden",r),focusable:a,height:o,viewBox:"0 0 16 14",width:n,children:[U0("title",{children:t}),U0("desc",{children:e}),U0("path",{d:"M15.9,6.3c-0.1-0.1-1-1.8-2.7-3.3l1.3-1.3c0.4-0.4,0.4-1,0-1.4s-1-0.4-1.4,0l-1.6,1.6c-1-0.6-2.2-1-3.6-1 c-4.8,0-7.7,5.3-7.9,5.5C0,6.6,0,7,0.1,7.3c0.1,0.1,1,1.8,2.7,3.3l-1,1c-0.4,0.4-0.4,1,0,1.4c0.2,0.2,0.5,0.3,0.7,0.3S3,13.2,3.2,13 l1.2-1.2c1,0.6,2.2,1,3.6,1h0c4.7,0,7.7-5.3,7.9-5.5C16,7,16,6.6,15.9,6.3z M2.2,6.8c0.8-1.2,3-4,5.8-4c0.7,0,1.4,0.2,2.1,0.5 L8.5,4.9C8.4,4.8,8.2,4.8,8,4.8c-1.1,0-1.9,0.9-2,2c0,0.2,0,0.4,0.1,0.5L4.2,9.2C3.3,8.3,2.6,7.4,2.2,6.8z M8,10.8 c-0.7,0-1.4-0.2-2.1-0.5l1.6-1.6c0.2,0,0.3,0.1,0.5,0.1c0,0,0.1,0,0.1,0c1.1,0,2-0.9,2-2c0-0.2,0-0.3-0.1-0.5l1.8-1.8 c1,0.8,1.7,1.8,2,2.4C13,8,10.8,10.8,8,10.8z"})]}),BX=null;var w9,$0,M9;const HX=({title:t="Image Block",desc:e="Image Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>w9("svg",{className:M9("i i-image-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[$0("title",{children:t}),$0("desc",{children:e}),$0("path",{d:"M15.992.5c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-14c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h14zm-13 2v12h12v-12h-12zm4.1 8.3l-2.1 2.1-1.4-1.4 3.3-3.3 3 2 3.1-3.1 1.4 1.4-4.3 4.3-3-2zm.9-6.3a1 1 0 1 1 0 2 1 1 0 0 1 0-2z",fillRule:"evenodd"})]}),FX=null;var O9,W0,D9;const zX=({title:t="Labeled Graphic Block",desc:e="Labeled Graphic Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>O9("svg",{className:D9("i i-labeled-graphic-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[W0("title",{children:t}),W0("desc",{children:e}),W0("path",{d:"M13.753 16.5h-12a1 1 0 0 1-1-1v-12a1 1 0 0 1 1-1h7v2h-6v10h10v-6h2v7a1 1 0 0 1-1 1zm0-16a3 3 0 1 1 0 6 3 3 0 0 1 0-6z",fillRule:"evenodd"})]}),VX=null;var B9,ed,H9;const UX=({title:t="Label Set",desc:e="Label Set",width:n="17",height:o="17",className:r,focusable:a="false"})=>B9("svg",{className:H9("i i-labelSet",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,children:[ed("title",{children:t}),ed("desc",{children:e}),ed("path",{d:"M17.63,9.76,8.24.37A.59.59,0,0,0,7.83.2h-7A.59.59,0,0,0,.2.78v7a.59.59,0,0,0,.17.42l9.39,9.39a.59.59,0,0,0,.83,0l7-7A.59.59,0,0,0,17.63,9.76ZM1.37,7.58V1.37H7.58l8.8,8.8-6.21,6.21Z"}),ed("path",{d:"M5.48,3.33A2.15,2.15,0,1,0,7.63,5.48,2.15,2.15,0,0,0,5.48,3.33Zm0,3.13a1,1,0,1,1,1-1A1,1,0,0,1,5.48,6.46Z"})]}),$X=null;var F9,G0,z9;function WX(t){return F9(z9,{fill:"none",stroke:"currentColor",viewBox:"0 0 13 14",...t,children:[G0("path",{clipRule:"evenodd",d:"M6.57031 1 L1 3.85715 L6.57031 6.71431 L12.1406 3.85715 L6.57031 1 Z",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.37143"}),G0("path",{d:"M1 6.71431 L6.57031 9.57147 L12.1406 6.71431",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.37143"}),G0("path",{d:"M1 9.57147 L6.57031 12.42863 L12.1406 9.57147",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.37143"})]})}var V9,K0;const GX=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="15",role:a="img",title:i,width:c="16"})=>V9("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&K0("title",{children:i}),o&&K0("desc",{children:o}),K0("path",{d:"M0 0h16v2H0V0zm0 13h16v2H0v-2zm1-9h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z",fill:"currentColor",fillRule:"evenodd"})]}),KX=null;var U9,_0,$9;const _X=({title:t="Lesson",desc:e="Lesson Icon",width:n="23",height:o="17",className:r,focusable:a="false"})=>U9("svg",{className:$9("i i-lesson",r),focusable:a,height:o,viewBox:"0 0 23 17",width:n,children:[_0("title",{children:t}),_0("desc",{children:e}),_0("path",{d:"M1.898 16.692a1 1 0 0 1 0-2h11.428a1 1 0 0 1 0 2H1.898zm0-7.083a1 1 0 0 1 0-2h19.286a1 1 0 0 1 0 2H1.898zm0-7.084a1 1 0 0 1 0-2h15a1 1 0 1 1 0 2h-15z",fillRule:"nonzero"})]}),QX=null;var W9,Q0,G9;const ZX=t=>W9(G9,{...t,viewBox:"0 0 16 16",children:[Q0("path",{d:"M0 1C0 0.447715 0.447715 0 1 0H15C15.5523 0 16 0.447715 16 1V2.5C16 3.05228 15.5523 3.5 15 3.5H1C0.447715 3.5 0 3.05228 0 2.5V1Z"}),Q0("path",{d:"M0 13.6667C0 13.0223 0.447715 12.5 1 12.5H15C15.5523 12.5 16 13.0223 16 13.6667V14.8333C16 15.4777 15.5523 16 15 16H1C0.447715 16 0 15.4777 0 14.8333V13.6667Z"}),Q0("path",{d:"M0 7.25C0 6.69772 0.447715 6.25 1 6.25H15C15.5523 6.25 16 6.69772 16 7.25V8.75C16 9.30228 15.5523 9.75 15 9.75H1C0.447715 9.75 0 9.30228 0 8.75V7.25Z"})]}),YX=null;var K9,Z0,_9;const XX=({title:t="List Block",desc:e="List Block",width:n="16",height:o="13",className:r,focusable:a="false"})=>K9("svg",{className:_9("i i-list-block",r),focusable:a,height:o,viewBox:"0 0 16 13",width:n,children:[Z0("title",{children:t}),Z0("desc",{children:e}),Z0("path",{d:"M1.495 10.252a1.25 1.25 0 1 1 0 2.502 1.25 1.25 0 0 1 0-2.502zm0-4.975a1.25 1.25 0 1 1 0 2.502 1.25 1.25 0 0 1 0-2.502zm0-5.031a1.25 1.25 0 1 1 0 2.501 1.25 1.25 0 0 1 0-2.501zm4 .257h10v2h-10v-2zm0 5h10v2h-10v-2zm0 5h10v2h-10v-2z",fillRule:"evenodd"})]}),JX=null;var Q9,td;const qX=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r,role:a="img",title:i,width:c})=>Q9("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 40",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&td("title",{children:i}),o&&td("desc",{children:o}),td("path",{clipRule:"evenodd",d:"M24 23C24 24.5064 23.1673 25.8183 21.9371 26.5005C21.9782 26.6602 22 26.8275 22 27V30C22 31.1046 21.1046 32 20 32C18.8954 32 18 31.1046 18 30V27C18 26.8275 18.0218 26.6602 18.0629 26.5005C16.8327 25.8183 16 24.5064 16 23C16 20.7909 17.7909 19 20 19C22.2091 19 24 20.7909 24 23ZM20 25C21.1046 25 22 24.1046 22 23C22 21.8954 21.1046 21 20 21C18.8954 21 18 21.8954 18 23C18 24.1046 18.8954 25 20 25Z",fill:"#000",fillRule:"evenodd"}),td("path",{clipRule:"evenodd",d:"M12 10V13C8.68629 13 6 15.6863 6 19V32C6 35.3137 8.68629 38 12 38H28C31.3137 38 34 35.3137 34 32V19C34 15.6863 31.3137 13 28 13V10C28 5.58172 24.4183 2 20 2C15.5817 2 12 5.58172 12 10ZM20 4C16.6863 4 14 6.68629 14 10V13H26V10C26 6.68629 23.3137 4 20 4ZM8 19C8 16.7909 9.79086 15 12 15H28C30.2091 15 32 16.7909 32 19V32C32 34.2091 30.2091 36 28 36H12C9.79086 36 8 34.2091 8 32V19Z",fill:"#000",fillRule:"evenodd"})]}),eJ=null;var zp,Z9;function tJ(t){return zp(Z9,{viewBox:"0 0 20 22",...t,children:zp("path",{clipRule:"evenodd",d:"M4 9V6C4 4.4087 4.63214 2.88258 5.75736 1.75736C6.88258 0.632141 8.4087 0 10 0C11.5913 0 13.1174 0.632141 14.2426 1.75736C15.3679 2.88258 16 4.4087 16 6V9H17C18.6569 9 20 10.3431 20 12V19C20 20.6569 18.6569 22 17 22H3C1.34315 22 0 20.6569 0 19V12C0 10.3431 1.34315 9 3 9H4ZM7.17157 3.17157C7.92172 2.42143 8.93913 2 10 2C11.0609 2 12.0783 2.42143 12.8284 3.17157C13.5786 3.92172 14 4.93913 14 6V9H6V6C6 4.93913 6.42143 3.92172 7.17157 3.17157Z",fillRule:"evenodd"})})}var Y9,sd,X9;const sJ=({title:t="Mail",desc:e="Mail",width:n="14",height:o="12",className:r,focusable:a="false"})=>Y9("svg",{className:X9("i",r),focusable:a,height:o,viewBox:"0 0 14 12",width:n,children:[sd("title",{children:t}),sd("desc",{children:e}),sd("path",{d:"M1.692.958a.55.55 0 0 0-.74.814l5.74 5.217c.209.19.53.19.74 0l5.738-5.217a.55.55 0 1 0-.74-.814l-5.369 4.88L1.692.959z"}),sd("path",{d:"M1.872 10.206H12.25V1.915H1.872v8.291zM1.322.815H12.8a.55.55 0 0 1 .55.55v9.391a.55.55 0 0 1-.55.55H1.322a.55.55 0 0 1-.55-.55V1.365a.55.55 0 0 1 .55-.55z"})]}),nJ=null,J9=({title:t="Matching",desc:e="Two rows of stacked squares",width:n="15",height:o="15",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:Q()("i i-matching",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.jsx)("path",{d:"M4.814 4.975H2.19V2.35h2.625v2.625zM5.69.6H1.314C.79.6.44.95.44 1.475V5.85c0 .525.35.875.875.875H5.69c.525 0 .875-.35.875-.875V1.475C6.564.95 6.214.6 5.69.6zM12.69 4.975h-2.626V2.35h2.625v2.625zM13.563.6H9.19c-.525 0-.875.35-.875.875V5.85c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V1.475c0-.525-.35-.875-.875-.875zM4.814 12.85H2.19v-2.625h2.625v2.625zm.875-4.375H1.314c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875H5.69c.525 0 .875-.35.875-.875V9.35c0-.525-.35-.875-.875-.875zM12.69 12.85h-2.626v-2.625h2.625v2.625zm.874-4.375H9.19c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V9.35c0-.525-.35-.875-.875-.875z"})]});var q9,xl,e7;const rJ=({title:t="Move to Folder",desc:e="Folder with an arrow",width:n="15",height:o="15",className:r,focusable:a="false"})=>q9("svg",{className:e7("i i-move",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[xl("title",{children:t}),xl("desc",{children:e}),xl("path",{d:"M1.295 13.223l.584.583V.973l-.584.583h4.667l-.467-.233 1.75 2.333c.11.147.283.234.467.234h6.417l-.584-.584v10.5l.584-.583H1.295zm13.417.583v-10.5a.583.583 0 0 0-.583-.583H7.712l.467.233L6.429.623A.583.583 0 0 0 5.962.39H1.295a.583.583 0 0 0-.583.583v12.833c0 .322.261.584.583.584H14.13a.583.583 0 0 0 .583-.584z"}),xl("path",{d:"M4.795 7.973a.583.583 0 0 0 0 1.167h5.834a.583.583 0 1 0 0-1.167H4.795z"}),xl("path",{d:"M10.216 8.969v-.825l-2.333 2.333a.583.583 0 0 0 .825.825L11.04 8.97a.583.583 0 0 0 0-.825L8.708 5.81a.583.583 0 0 0-.825.824l2.333 2.334z"})]}),aJ=null,t7=({title:t="Multiple Choice",desc:e="Stacked circles to the left of stacked lines",width:n="16",height:o="16",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:Q()("i i-multipleChoice",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.jsx)("path",{d:"M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zm0-2A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"}),(0,s.jsx)("circle",{cx:"7.904",cy:"7.904",r:"1.904"})]}),s7=({title:t="Multiple Response",desc:e="A box with a checkmark in it",width:n="16",height:o="16",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:Q()("i i-multipleResponse",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.jsx)("path",{d:"M15.142.332c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-14c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h14zm-1 14v-12h-12v12h12zm-7.978-3.308l-2-2-.707-.708L4.87 6.902l.707.707 1.3 1.3 3.317-3.33.707-.708 1.414 1.414-.707.707-4.03 4.032-.708.707-.707-.707z"})]});var n7,Y0,o7;const cJ=({"aria-hidden":t,title:e="New Folder",desc:n="Folder with plus sign",width:o="14",height:r="14",className:a,focusable:i="false"})=>n7("svg",{"aria-hidden":t,className:o7("i i-newFolder",a),focusable:i,height:r,viewBox:"0 0 14 14",width:o,children:[e&&Y0("title",{children:e}),Y0("desc",{children:n}),Y0("path",{d:"M13.125 2.625c.525 0 .875.35.875.875v9.625c0 .525-.35.875-.875.875H.875C.35 14 0 13.65 0 13.125V.875C0 .35.35 0 .875 0h3.5c.263 0 .438.087.612.262L7.35 2.625h5.775zM10 7H8V5H6v2H4v2h2v2h2V9h2V7z"})]}),dJ=null;var r7,nd,a7;const uJ=({title:t="New Slide",desc:e="New Slide",width:n="16",height:o="16",className:r,focusable:a="false"})=>r7("svg",{className:a7("i i-new-slide",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[nd("title",{children:t}),nd("desc",{children:e}),nd("path",{d:"M7,12h2V9h3V7H9V4H7v3H4v2h3V12z",fillRule:"evenodd"}),nd("path",{d:"M14,14H2V2h12V14z M15,0H1C0.4,0,0,0.4,0,1v14c0,0.6,0.4,1,1,1h14c0.6,0,1-0.4,1-1V1C15.9,0.4,15.5,0,15,0z",fillRule:"evenodd"})]}),hJ=null;var i7,X0,l7;const mJ=({title:t="Next Slide",desc:e="Next Slide",width:n="16",height:o="13.4",className:r,focusable:a="false"})=>i7("svg",{className:l7("i i-next-slide",r),focusable:a,height:o,viewBox:"0 0 16 13.4",width:n,children:[X0("title",{children:t}),X0("desc",{children:e}),X0("path",{d:"M9.3,0L7.9,1.4l4.3,4.3H0v2h12.2L7.9,12l1.4,1.4L16,6.7L9.3,0",fillRule:"evenodd"})]}),pJ=null,c7=({title:t="Not Allowed",desc:e="A circle with a slanted line through it",width:n="12",height:o="12",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:Q()("i i-notAllowed",r),focusable:a,height:o,viewBox:"0 0 12 12",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.jsx)("path",{d:"M6 10.5c-.975 0-1.875-.3-2.625-.825l6.3-6.3c.525.75.825 1.65.825 2.625 0 2.475-2.025 4.5-4.5 4.5m0-9c.975 0 1.875.3 2.625.825l-6.3 6.3A4.546 4.546 0 0 1 1.5 6c0-2.475 2.025-4.5 4.5-4.5M6 0C2.7 0 0 2.7 0 6s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6",fill:"#FFF",fillRule:"evenodd"})]});var d7,Vp;const vJ=({className:t})=>d7("svg",{"aria-hidden":"true",className:t,fill:"currentColor",focusable:"false",viewBox:"0 0 12 14",xmlns:"http://www.w3.org/2000/svg",children:[Vp("path",{clipRule:"evenodd",d:"M1.26256 1.09594C1.59075 0.767748 2.03587 0.583374 2.5 0.583374H6.58333C6.73804 0.583374 6.88642 0.644832 6.99581 0.754228L11.0791 4.83756C11.1885 4.94696 11.25 5.09533 11.25 5.25004V11.6667C11.25 12.1308 11.0656 12.576 10.7374 12.9041C10.4092 13.2323 9.96413 13.4167 9.5 13.4167H2.5C2.03587 13.4167 1.59075 13.2323 1.26256 12.9041C0.934374 12.576 0.75 12.1308 0.75 11.6667V2.33337C0.75 1.86925 0.934374 1.42413 1.26256 1.09594ZM2.5 1.75004C2.34529 1.75004 2.19692 1.8115 2.08752 1.92089C1.97812 2.03029 1.91667 2.17866 1.91667 2.33337V11.6667C1.91667 11.8214 1.97812 11.9698 2.08752 12.0792C2.19692 12.1886 2.34529 12.25 2.5 12.25H9.5C9.65471 12.25 9.80308 12.1886 9.91248 12.0792C10.0219 11.9698 10.0833 11.8214 10.0833 11.6667V5.49166L6.34171 1.75004H2.5Z",fillRule:"evenodd"}),Vp("path",{clipRule:"evenodd",d:"M6.58333 0.583374C6.9055 0.583374 7.16667 0.844541 7.16667 1.16671V4.66671H10.6667C10.9888 4.66671 11.25 4.92787 11.25 5.25004C11.25 5.57221 10.9888 5.83337 10.6667 5.83337H6.58333C6.26117 5.83337 6 5.57221 6 5.25004V1.16671C6 0.844541 6.26117 0.583374 6.58333 0.583374Z",fillRule:"evenodd"})]}),gJ=null;var u7,bl,h7;const CJ=({title:t="Hide",desc:e="Shape of an eye with a stroke through it",width:n="20",height:o="16",className:r,focusable:a="false"})=>u7("svg",{className:h7("i",r),focusable:a,height:o,viewBox:"0 0 20 16",width:n,children:[bl("title",{children:t}),bl("desc",{children:e}),bl("path",{d:"M3.23,12.35 L3.94,11.64 C2.73771334,10.6447807 1.76251115,9.40361431 1.08,8 C2.47,5 5.96,2 9.99,2 C11.0161024,2.00843654 12.0323067,2.20151536 12.99,2.57 L13.76,1.8 C12.5726697,1.28490674 11.2941824,1.01288817 10,1 C5.61,1 1.52,4.28 0,8 C0.716531693,9.68559192 1.82365735,11.1766125 3.23,12.35 L3.23,12.35 Z"}),bl("path",{d:"M16.77,3.65 L16.06,4.36 C17.2622867,5.35521926 18.2374889,6.59638569 18.92,8 C17.53,11 14.04,14 10.01,14 C8.9838976,13.9915635 7.96769327,13.7984846 7.01,13.43 L6.24,14.2 C7.43352094,14.717712 8.71907199,14.9897863 10.02,15 C14.41,15 18.5,11.72 20.02,8 C19.297748,6.3123309 18.1836278,4.82112397 16.77,3.65 L16.77,3.65 Z"}),bl("rect",{height:"1.41",transform:"translate(9.992148, 7.999769) rotate(-45.000000) translate(-9.992148, -7.999769) ",width:"21.21",x:"-0.61285173",y:"7.29476926"})]}),xJ=null;var m7,Up,p7;const bJ=t=>m7(p7,{viewBox:"0 0 16 16",...t,children:[Up("path",{clipRule:"evenodd",d:"M7.33351 13.3333C7.33351 12.9651 7.63199 12.6667 8.00018 12.6667H14.0002C14.3684 12.6667 14.6668 12.9651 14.6668 13.3333C14.6668 13.7015 14.3684 14 14.0002 14H8.00018C7.63199 14 7.33351 13.7015 7.33351 13.3333Z",fillRule:"evenodd"}),Up("path",{clipRule:"evenodd",d:"M12.0002 2.58579C11.8019 2.58579 11.6118 2.66455 11.4716 2.80474L3.26882 11.0075L2.91642 12.4171L4.32601 12.0647L12.5288 3.86193C12.5982 3.79251 12.6533 3.7101 12.6908 3.61941C12.7284 3.52871 12.7477 3.4315 12.7477 3.33333C12.7477 3.23516 12.7284 3.13796 12.6908 3.04726C12.6533 2.95656 12.5982 2.87415 12.5288 2.80474C12.4594 2.73532 12.3769 2.68026 12.2863 2.64269C12.1956 2.60512 12.0983 2.58579 12.0002 2.58579ZM10.5288 1.86193C10.919 1.47169 11.4483 1.25245 12.0002 1.25245C12.2734 1.25245 12.544 1.30628 12.7965 1.41085C13.049 1.51542 13.2784 1.6687 13.4716 1.86193C13.6648 2.05516 13.8181 2.28455 13.9227 2.53701C14.0272 2.78948 14.0811 3.06007 14.0811 3.33333C14.0811 3.6066 14.0272 3.87719 13.9227 4.12965C13.8181 4.38212 13.6648 4.61151 13.4716 4.80474L5.13825 13.1381C5.05281 13.2235 4.94576 13.2841 4.82853 13.3134L2.16187 13.9801C1.93468 14.0369 1.69436 13.9703 1.52877 13.8047C1.36319 13.6392 1.29662 13.3988 1.35342 13.1716L2.02008 10.505C2.04939 10.3878 2.11 10.2807 2.19544 10.1953L10.5288 1.86193Z",fillRule:"evenodd"})]}),yJ=null;var f7,J0,v7;const LJ=({title:t="Edit",desc:e="Pencil",width:n="11",height:o="11",className:r,focusable:a="false"})=>f7("svg",{className:v7("i i-pencil",r),focusable:a,height:o,viewBox:"0 0 10 10",width:n,children:[J0("title",{children:t}),J0("desc",{children:e}),J0("path",{d:"M8.19.19a.6.6,0,0,0-.87,0L0,7.5V10H2.5L9.81,2.69a.6.6,0,0,0,0-.87Z"})]}),EJ=null;var g7,q0;const SJ=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="16",role:a="img",title:i,width:c="16"})=>g7("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 16 16",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&q0("title",{children:i}),o&&q0("desc",{children:o}),q0("path",{clipRule:"evenodd",d:"M12.668 2.11458C12.5079 2.11458 12.3494 2.14611 12.2015 2.20737C12.0536 2.26863 11.9192 2.35842 11.8061 2.47161L2.93124 11.3464L2.2848 13.7167L4.6551 13.0703L13.5299 4.19546C13.6431 4.08227 13.7329 3.9479 13.7941 3.80001C13.8554 3.65212 13.8869 3.49361 13.8869 3.33353C13.8869 3.17346 13.8554 3.01495 13.7941 2.86706C13.7329 2.71917 13.6431 2.5848 13.5299 2.47161C13.4167 2.35842 13.2823 2.26863 13.1345 2.20737C12.9866 2.14611 12.8281 2.11458 12.668 2.11458ZM11.6913 0.975531C12.0009 0.847267 12.3328 0.78125 12.668 0.78125C13.0032 0.78125 13.335 0.847267 13.6447 0.975531C13.9544 1.1038 14.2357 1.2918 14.4727 1.5288C14.7097 1.7658 14.8977 2.04716 15.026 2.35682C15.1543 2.66648 15.2203 2.99837 15.2203 3.33353C15.2203 3.6687 15.1543 4.00059 15.026 4.31025C14.8977 4.61991 14.7097 4.90127 14.4727 5.13827L5.47272 14.1383C5.39069 14.2203 5.28866 14.2795 5.17673 14.31L1.51006 15.31C1.27925 15.373 1.03241 15.3074 0.863246 15.1383C0.69408 14.9691 0.628527 14.7223 0.691475 14.4915L1.69148 10.8248C1.722 10.7129 1.78121 10.6108 1.86325 10.5288L10.8632 1.5288C11.1002 1.2918 11.3816 1.1038 11.6913 0.975531Z",fill:"currentColor",fillRule:"evenodd"})]}),TJ=null;var C7,od,x7;const IJ=({title:t="Person",desc:e="Person outline",width:n="16",height:o="18",className:r,focusable:a="false"})=>C7("svg",{className:x7("i",r),focusable:a,height:o,viewBox:"0 0 16 18",width:n,children:[od("title",{children:t}),od("desc",{children:e}),od("path",{d:"M1.72039 11.8884C2.50179 11.107 3.5616 10.668 4.66667 10.668H11.3333C12.4384 10.668 13.4982 11.107 14.2796 11.8884C15.061 12.6698 15.5 13.7296 15.5 14.8346V16.5013C15.5 16.9615 15.1269 17.3346 14.6667 17.3346C14.2064 17.3346 13.8333 16.9615 13.8333 16.5013V14.8346C13.8333 14.1716 13.5699 13.5357 13.1011 13.0669C12.6323 12.598 11.9964 12.3346 11.3333 12.3346H4.66667C4.00363 12.3346 3.36774 12.598 2.8989 13.0669C2.43006 13.5357 2.16667 14.1716 2.16667 14.8346V16.5013C2.16667 16.9615 1.79357 17.3346 1.33333 17.3346C0.873096 17.3346 0.5 16.9615 0.5 16.5013V14.8346C0.5 13.7296 0.938987 12.6698 1.72039 11.8884Z"}),od("path",{d:"M8 2.33464C6.61929 2.33464 5.5 3.45392 5.5 4.83464C5.5 6.21535 6.61929 7.33464 8 7.33464C9.38071 7.33464 10.5 6.21535 10.5 4.83464C10.5 3.45392 9.38071 2.33464 8 2.33464ZM3.83333 4.83464C3.83333 2.53345 5.69881 0.667969 8 0.667969C10.3012 0.667969 12.1667 2.53345 12.1667 4.83464C12.1667 7.13582 10.3012 9.0013 8 9.0013C5.69881 9.0013 3.83333 7.13582 3.83333 4.83464Z"})]}),NJ=null;class e1 extends h.Component{constructor(...e){super(...e),this.maskId=`person-unknown-mask-${Ct()()}`,this.pathId=`person-unknown-path-${Ct()()}`}render(){const{title:e="Person Unknown",desc:n,width:o="38",height:r="38",className:a,decorative:i,focusable:c="false"}=this.props;return(0,s.jsxs)("svg",{"aria-hidden":i,className:Q()("i i-person-unknown",a),focusable:c,height:r,viewBox:"0 0 38 38",width:o,children:[e&&(0,s.jsx)("title",{children:e}),n&&(0,s.jsx)("desc",{children:n}),(0,s.jsx)("defs",{children:(0,s.jsx)("circle",{cx:"19",cy:"19",id:this.pathId,r:"19"})}),(0,s.jsxs)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[(0,s.jsx)("mask",{fill:"#fff",id:this.maskId,children:(0,s.jsx)("use",{href:`#${this.pathId}`})}),(0,s.jsx)("use",{fill:"#D8D8D8",href:`#${this.pathId}`}),(0,s.jsx)("path",{d:"M15.1239928,24 C12.6645753,22.6352711 11,20.0120267 11,17 C11,12.581722 14.581722,9 19,9 C23.418278,9 27,12.581722 27,17 C27,20.0120267 25.3354247,22.6352711 22.8760072,24 L23,24 C27.4182847,24 31,27.5817153 31,32 L31,43 C31,43.5522847 30.5522847,44 30,44 L8,44 C7.44771525,44 7,43.5522847 7,43 L7,32 C7,27.5817153 10.5817153,24 15,24 L15.1239928,24 Z",fill:"#ADAEAF",fillRule:"nonzero",mask:`url(#${this.maskId})`})]})]})}}const $p=({title:t="Pick One",desc:e="Pick One",width:n="16",height:o="14",className:r,focusable:a="false","aria-hidden":i})=>(0,s.jsxs)("svg",{"aria-hidden":i,className:Q()("i i-pickOne",r),focusable:a,height:o,viewBox:"0 0 16 14",width:n,xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.jsxs)("g",{fillRule:"evenodd",children:[(0,s.jsx)("path",{d:"M5.039 10.865A1.284 1.284 0 1 1 3.754 9.58v-1.6a2.884 2.884 0 1 0-.001 5.768 2.884 2.884 0 0 0 0-5.768v1.6c.71 0 1.286.575 1.286 1.285zM5.039 3.851a1.284 1.284 0 1 1-1.285-1.285v-1.6a2.884 2.884 0 1 0-.001 5.769 2.884 2.884 0 0 0 0-5.769v1.6c.71 0 1.286.575 1.286 1.285z",fillRule:"nonzero"}),(0,s.jsx)("path",{d:"M8.862 1.324h7v2h-7zM8.862 4.324h7v2h-7zM8.862 8.324h7v2h-7zM8.862 11.324h7v2h-7z"})]})]});var b7,rd,y7;const kJ=({title:t="Play",desc:e="Triangle facing right that will play the media",width:n="16",height:o="22",className:r,focusable:a="false"})=>b7("svg",{className:y7("i",r),focusable:a,height:o,viewBox:"0 0 16 22",width:n,children:[rd("desc",{children:e}),rd("title",{children:t}),rd("g",{transform:"translate(-124 -107)",children:rd("path",{d:"M139.493031,116.612695 L126.142419,107.267267 C125.207876,106.599736 124.006321,107.267267 124.006321,108.335316 L124.006321,127.026172 C124.006321,128.094221 125.207876,128.761751 126.142419,128.094221 L139.493031,118.748793 C140.160561,118.214768 140.160561,117.146719 139.493031,116.612695"})})]}),AJ=null;var L7,t1,E7;const RJ=({title:t="Process Block",desc:e="Process Block",width:n="29",height:o="17",className:r,focusable:a="false"})=>L7("svg",{className:E7("i i-process-block",r),focusable:a,height:o,viewBox:"0 0 29 17",width:n,children:[t1("title",{children:t}),t1("desc",{children:e}),t1("path",{d:"M21.22 16.5h-14c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h14c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1zm-13-2h12v-12h-12v12zm2-10h7v2h-7v-2zm0 3h8v2h-8v-2zm0 3h6v2h-6v-2zm14.413-3.293a1 1 0 0 1 1.415-1.414l2.121 2.121a1 1 0 0 1 0 1.414l-2.121 2.122a1 1 0 0 1-1.415-1.414l1.415-1.415-1.415-1.414zM2.4 8.621l1.415 1.415A1 1 0 0 1 2.4 11.45L.28 9.328a1 1 0 0 1 0-1.414L2.4 5.793a1 1 0 0 1 1.415 1.414L2.4 8.621z",fillRule:"evenodd"})]}),PJ=null;function S7(t){return(0,s.jsxs)(Hs,{viewBox:"0 0 16 16",...t,children:[(0,s.jsx)("path",{d:"M14,14 L2,14 L2,2 L14,2 L14,14 Z M15,0 L1,0 C0.4,0 0,0.4 0,1 L0,15 C0,15.6 0.4,16 1,16 L15,16 C15.6,16 16,15.6 16,15 L16,1 C16,0.4 15.6,0 15,0 L15,0 Z"}),(0,s.jsx)("path",{d:"M7.9997,11 C8.5517,11 8.9997,11.448 8.9997,12 C8.9997,12.552 8.5517,13 7.9997,13 C7.4477,13 6.9997,12.552 6.9997,12 C6.9997,11.448 7.4477,11 7.9997,11"}),(0,s.jsx)("path",{d:"M7.0997,5.5 C7.2997,5.2 7.5997,5 7.9997,5 C8.5997,5 8.9997,5.4 8.9997,6 C8.9997,6.3 8.8997,6.4 8.3997,6.7 C7.7997,7.1 6.9997,7.7 6.9997,9 L6.9997,10 L8.9997,10 L8.9997,9 C8.9997,8.8 8.9997,8.7 9.4997,8.4 C10.0997,8 10.9997,7.4 10.9997,6 C10.9997,4.3 9.6997,3 7.9997,3 C6.8997,3 5.8997,3.6 5.3997,4.5 L4.8997,5.4 L6.5997,6.4 L7.0997,5.5 Z"})]})}var T7,s1,I7;const wJ=({title:t="Quiz",desc:e="Quiz Icon",width:n="25",height:o="25",className:r,focusable:a="false"})=>T7("svg",{className:I7("i i-quiz",r),focusable:a,height:o,viewBox:"0 0 25 25",width:n,children:[s1("title",{children:t}),s1("desc",{children:e}),s1("path",{d:"M1.078.609h22a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1h-22a1 1 0 0 1-1-1v-22a1 1 0 0 1 1-1zm1 2v20h20v-20h-20zm11 11.157a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1c1.048 0 2-.952 2-2 0-1.047-.952-2-2-2-.715 0-1.521.58-1.905 1.348a1 1 0 1 1-1.79-.895c.703-1.404 2.164-2.453 3.695-2.453 2.152 0 4 1.848 4 4 0 1.81-1.305 3.403-3 3.866v.134zm-2 3.843a1 1 0 1 1 2 0v1a1 1 0 1 1-2 0v-1z",fillRule:"nonzero"})]}),MJ=null;var Wp,N7;const OJ=t=>Wp(N7,{...t,viewBox:"0 0 10 13",children:Wp("path",{d:"M2.81 5.188H8.5V12a.75.75 0 1 0 1.5 0V4.437a.75.75 0 0 0-.75-.75H2.81L4.969 1.53A.75.75 0 0 0 3.908.47L.47 3.907a.75.75 0 0 0 0 1.06l3.437 3.438a.75.75 0 0 0 1.06-1.06L2.812 5.188z"})}),DJ=null;var j7,Gp,k7;function BJ(t){return j7(k7,{viewBox:"0 0 15 14",...t,children:[Gp("path",{clipRule:"evenodd",d:"M0.666669 1.00005C1.03486 1.00005 1.33334 1.29853 1.33334 1.66672V5.00005H4.66667C5.03486 5.00005 5.33334 5.29853 5.33334 5.66672C5.33334 6.0349 5.03486 6.33338 4.66667 6.33338H0.666669C0.298479 6.33338 2.01494e-06 6.0349 2.01494e-06 5.66672V1.66672C2.01494e-06 1.29853 0.298479 1.00005 0.666669 1.00005Z",fillRule:"evenodd"}),Gp("path",{clipRule:"evenodd",d:"M7.07024 0.404628C8.50152 0.203255 9.95947 0.472493 11.2244 1.17177C12.4894 1.87106 13.4928 2.9625 14.0835 4.28165C14.6742 5.60081 14.8202 7.07621 14.4995 8.48555C14.1788 9.89489 13.4088 11.1618 12.3054 12.0955C11.202 13.0291 9.82511 13.5789 8.38212 13.6619C6.93913 13.745 5.50824 13.3568 4.30504 12.5559C3.10184 11.755 2.19151 10.5848 1.71122 9.22158C1.58887 8.87431 1.7712 8.49361 2.11847 8.37127C2.46574 8.24892 2.84644 8.43125 2.96879 8.77852C3.35302 9.86911 4.08128 10.8053 5.04384 11.446C6.0064 12.0867 7.15112 12.3972 8.30551 12.3308C9.4599 12.2644 10.5614 11.8245 11.4441 11.0776C12.3268 10.3307 12.9429 9.31717 13.1994 8.18969C13.456 7.06222 13.3392 5.8819 12.8666 4.82658C12.3941 3.77125 11.5913 2.8981 10.5794 2.33867C9.56739 1.77925 8.40102 1.56386 7.256 1.72496C6.11098 1.88606 5.04933 2.41492 4.23101 3.23185C4.22625 3.2366 4.22142 3.24128 4.21652 3.24588L1.12319 6.15255C0.854867 6.40468 0.432961 6.39155 0.180833 6.12323C-0.0712944 5.85491 -0.0581685 5.43301 0.210151 5.18088L3.29633 2.28094C4.31823 1.26392 5.64238 0.60552 7.07024 0.404628Z",fillRule:"evenodd"})]})}var Kp,A7;function HJ(t){return Kp(A7,{viewBox:"0 0 28 28",...t,children:Kp("path",{d:"M0.602462 14.9446C-0.0244077 15.1759 -0.0720487 15.7437 0.0596979 16.4712C1.24525 23.0177 7.00549 28 13.9288 28C22.0136 28 28.5288 21.1924 27.9661 13.0292C27.4922 6.10378 21.8359 0.475002 14.8765 0.0329519C10.0788 -0.291229 5.72563 1.80126 2.97148 5.21978L1.63888 4.12944C1.07616 3.68748 0.217442 4.07044 0.217442 4.8072V9.84668C0.217442 10.4067 0.720862 10.8192 1.25405 10.7012L1.49079 10.6422L2.61619 10.4064L3.09007 10.318L6.22894 9.64027C6.93974 9.49288 7.17671 8.57935 6.58425 8.10777L4.98518 6.84067C7.32461 3.95266 11.0858 2.21377 15.2022 2.65593C20.4735 3.21591 24.738 7.45959 25.3303 12.7052C26.0709 19.5717 20.681 25.4068 13.9287 25.4068C8.30488 25.4068 3.62815 21.3639 2.64243 16.0542C2.51095 15.346 2.19718 14.5886 1.49075 14.7383L0.602462 14.9446Z",fill:"currentColor"})})}var R7,n1;const FJ=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="15",role:a="img",title:i,width:c="16"})=>R7("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&n1("title",{children:i}),o&&n1("desc",{children:o}),n1("path",{d:"M0 0h16v2H0V0zm0 13h16v2H0v-2zm7-9h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z",fill:"currentColor",fillRule:"evenodd"})]}),zJ=null;function P7(t){return(0,s.jsx)(Hs,{viewBox:"0 0 23 17",...t,children:(0,s.jsx)("path",{d:"M19.347 8.275l1.88 1.714a.727.727 0 0 0 .98-1.074l-3.225-2.941a.727.727 0 0 0-1.027.047l-2.94 3.224a.727.727 0 0 0 1.075.98l1.802-1.976a6.545 6.545 0 0 1-11.56 4.288.727.727 0 1 0-1.114.935 8 8 0 0 0 14.129-5.197zm-16.039.162l-1.79-1.633a.727.727 0 1 0-.98 1.074l3.223 2.94c.297.272.757.25 1.028-.046l2.94-3.224a.727.727 0 0 0-1.075-.98L4.768 8.636a6.545 6.545 0 0 1 11.555-4.482.727.727 0 1 0 1.114-.936A8 8 0 0 0 3.308 8.437z",fillRule:"nonzero"})})}var _p,w7;const VJ=({width:t="16",height:e="16",className:n})=>_p("svg",{"aria-hidden":"true",className:w7("i i-search",n),fill:"currentColor",focusable:"false",height:e,viewBox:"0 0 15.6 14.7",width:t,children:_p("path",{d:"M15.2,12.8l-2.9-2.9c0.5-1,0.9-2,0.9-3.2c0-3.6-2.9-6.5-6.5-6.5c-3.6,0-6.5,2.9-6.5,6.5s2.9,6.5,6.5,6.5c1.7,0,3.2-0.6,4.4-1.7l2.8,2.8c0.4,0.4,1,0.4,1.4,0C15.6,13.8,15.6,13.2,15.2,12.8z M6.7,11.2c-2.5,0-4.5-2-4.5-4.5s2-4.5,4.5-4.5s4.5,2,4.5,4.5S9.1,11.2,6.7,11.2z"})}),UJ=null;var Qp,M7;const $J=t=>Qp(M7,{...t,viewBox:"0 0 15 15",children:Qp("path",{d:"M13.32 2.844c.524 0 .874.35.874.875v9.625c0 .525-.35.875-.875.875H1.07c-.525 0-.875-.35-.875-.875V1.094c0-.525.35-.875.875-.875h3.5c.263 0 .438.087.613.262l2.362 2.363h5.775zM7.173 5.312c-.874 0-1.589.715-1.589 1.59v.396c0 .874.715 1.589 1.589 1.589s1.589-.715 1.589-1.589v-.397c0-.874-.715-1.589-1.59-1.589zm1.589 3.734a2.218 2.218 0 0 1-1.59.635 2.218 2.218 0 0 1-1.588-.635c-.715.238-1.191.754-1.191 1.43v1.191h5.56v-1.191c0-.676-.477-1.192-1.191-1.43z"})}),WJ=null;var O7,yl,D7;const GJ=({title:t="Share Folder",desc:e="Share folder",width:n="14",height:o="14",className:r,focusable:a="false"})=>O7("svg",{className:D7("i",r),focusable:a,height:o,viewBox:"0 0 14 14",width:n,children:[yl("title",{children:t}),yl("desc",{children:e}),yl("path",{d:"M2.74509 3.33986C2.74509 1.50367 4.24876 0 6.08495 0C7.92114 0 9.42481 1.50367 9.42481 3.33986V4.25489C9.42481 6.09108 7.92114 7.59475 6.08495 7.59475C4.24876 7.59475 2.74509 6.09108 2.74509 4.25489V3.33986ZM6.08495 1.18954C4.90154 1.18954 3.93463 2.15645 3.93463 3.33986V4.25489C3.93463 5.4383 4.90154 6.40521 6.08495 6.40521C7.26836 6.40521 8.23527 5.4383 8.23527 4.25489V3.33986C8.23527 2.15645 7.26836 1.18954 6.08495 1.18954Z"}),yl("path",{d:"M0 13.4052C0 11.02 1.86968 9.1503 4.25489 9.1503H6.67972V10.3398H4.25489C2.92848 10.3398 1.79889 11.1591 1.38898 12.3889L1.24847 12.8104H6.67972V14H0V13.4052Z"}),yl("path",{d:"M10.9804 10.9804V9.1503H12.1699V10.9804H14V12.1699H12.1699V14H10.9804V12.1699H9.1503V10.9804H10.9804Z"})]}),KJ=null;var Zp,B7;const _J=t=>Zp(B7,{viewBox:"0 0 16 16",...t,children:Zp("path",{d:"M14.1259 3.625C14.65 3.625 15 3.975 15 4.5V14.125C15 14.65 14.65 15 14.1249 15H1.87506C1.35003 15 1 14.65 1 14.125V1.875C1 1.35 1.35003 1 1.87506 1H5.37531C5.63833 1 5.81334 1.087 5.98836 1.262L8.35052 3.625H14.1259ZM7.9785 6.093C7.10444 6.093 6.38938 6.808 6.38938 7.683V8.079C6.38938 8.953 7.10444 9.668 7.9785 9.668C8.85256 9.668 9.56761 8.953 9.56761 8.079V7.682C9.56761 6.808 8.85256 6.093 7.9775 6.093H7.9785ZM9.56761 9.827C9.35786 10.0329 9.10928 10.1951 8.8363 10.3041C8.56332 10.4131 8.2714 10.4668 7.9775 10.462C7.68393 10.4665 7.39239 10.4127 7.11977 10.3037C6.84716 10.1947 6.5989 10.0327 6.38938 9.827C5.67433 10.065 5.1983 10.581 5.1983 11.257V12.448H10.7587V11.257C10.7587 10.581 10.2817 10.065 9.56761 9.827Z"})}),QJ=null;var H7,Ll,F7;const ZJ=({title:t="Sortable",desc:e="Three horizontal lines stacked on top of each other",width:n="22",height:o="7",className:r,focusable:a="false"})=>H7("svg",{className:F7("i i-sortable",r),focusable:a,height:o,viewBox:"0 0 22 7",width:n,children:[Ll("title",{children:t}),Ll("desc",{children:e}),Ll("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"0"}),Ll("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"3"}),Ll("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"6"})]}),YJ=null;var z7,o1,V7;const XJ=({title:t="Sorting Block",desc:e="Sorting Block",width:n="22",height:o="15",className:r,focusable:a="false"})=>z7("svg",{className:V7("i i-sorting-block",r),focusable:a,height:o,viewBox:"0 0 22 15",width:n,children:[o1("title",{children:t}),o1("desc",{children:e}),o1("path",{d:"M2.056 9.736v3.4h6.4v-3.4h-6.4zm-.8-1.8h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1zm11 0h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1zm.8 5.2h6.4v-3.4h-6.4v3.4zM6.772.064h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1zm.8 1.8v3.4h6.4v-3.4h-6.4z",fillRule:"nonzero"})]}),JJ=null;var Yp,Ga,U7;const qJ=({title:t="Spinner",desc:e="Hollow circle fading from transparent to gray",width:n="21",height:o="20",className:r,focusable:a="false"})=>Yp("svg",{className:U7("i i-spinner",r),focusable:a,height:o,viewBox:"0 0 21 20",width:n,children:[Ga("title",{children:t}),Ga("desc",{children:e}),Ga("defs",{children:Yp("radialGradient",{cx:"89.364%",cy:"24.157%",fx:"89.364%",fy:"24.157%",gradientTransform:"rotate(69.991 .842 .205) scale(1 .69785)",id:"spinner-radial-gradient",r:"45.607%",children:[Ga("stop",{offset:"0%",stopColor:"#C8C8C8",stopOpacity:"0"}),Ga("stop",{offset:"100%",stopColor:"#979797"})]})}),Ga("path",{d:"M74.5 3c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10a9.957 9.957 0 0 0-1.477-5.233 1 1 0 0 0-1.703 1.048A8 8 0 1 1 74.5 5a1 1 0 0 0 0-2z",fill:"url(#spinner-radial-gradient)",fillRule:"nonzero",transform:"rotate(-159 42.222 17.43)"})]}),eq=null;var Xp,ad,$7;const tq=({title:t="SquareIcon",desc:e="Outline of a square",width:n="30",height:o="30",className:r,focusable:a="false"})=>Xp("svg",{className:$7("i i-square-outline",r),focusable:a,height:o,viewBox:"0 0 30 30",width:n,children:[ad("title",{children:t}),ad("desc",{children:e}),Xp("g",{fill:"none",fillRule:"evenodd",children:[ad("rect",{className:"overlay",fill:"none",fillRule:"evenodd",height:"28",rx:"2",strokeWidth:"2",transform:"translate(0 -1)",width:"28",x:"1",y:"2"}),ad("rect",{fill:"none",fillRule:"evenodd",height:"28",rx:"2",stroke:"#FFF",strokeOpacity:"0.63",strokeWidth:"2",transform:"translate(0 -1)",width:"28",x:"1",y:"2"})]})]}),sq=null;var Jp,Jr,W7;const r1="overlay",nq=({title:t="Stack",desc:e="Three horizontal bars stacked",width:n="30",height:o="30",className:r,focusable:a="false"})=>Jp("svg",{className:W7("i i-stack",r),focusable:a,height:o,viewBox:"0 0 30 30",width:n,children:[Jr("title",{children:t}),Jr("desc",{children:e}),Jp("g",{fill:"none",fillRule:"evenodd",children:[Jr("rect",{className:r1,height:"8.824",rx:"1",width:"30"}),Jr("rect",{className:r1,height:"8.824",rx:"1",width:"30",y:"10.588"}),Jr("rect",{className:r1,height:"8.824",rx:"1",width:"30",y:"21.176"}),Jr("rect",{fill:"#FFF",fillOpacity:"0.63",height:"8.824",rx:"1",width:"30"}),Jr("rect",{fill:"#FFF",fillOpacity:"0.4",height:"8.824",rx:"1",width:"30",y:"10.588"})]})]}),oq=null;var qp,G7;function rq(t){return qp(G7,{viewBox:"0 0 16 16",...t,children:qp("path",{d:"M12.586 7H1C0.734784 7 0.48043 7.10535 0.292893 7.29289C0.105357 7.48042 0 7.73478 0 8C0 8.26521 0.105357 8.51957 0.292893 8.7071C0.48043 8.89464 0.734784 9 1 9H12.586L9.293 12.293C9.11084 12.4816 9.01005 12.7342 9.01233 12.9964C9.0146 13.2586 9.11977 13.5094 9.30518 13.6948C9.49059 13.8802 9.7414 13.9854 10.0036 13.9877C10.2658 13.9899 10.5184 13.8892 10.707 13.707L15.707 8.707C15.8945 8.51947 15.9998 8.26516 15.9998 8C15.9998 7.73483 15.8945 7.48052 15.707 7.293L10.707 2.293C10.5184 2.11084 10.2658 2.01004 10.0036 2.01232C9.7414 2.0146 9.49059 2.11977 9.30518 2.30518C9.11977 2.49058 9.0146 2.7414 9.01233 3.00359C9.01005 3.26579 9.11084 3.51839 9.293 3.707L12.586 7Z"})})}var K7,id,_7;const aq=({title:t="Success",desc:e="Checkmark with a circle",width:n="51",height:o="51",className:r=null,focusable:a="false"})=>K7("svg",{className:_7("i",r),focusable:a,height:o,viewBox:"0 0 51 51",width:n,children:[id("title",{children:t}),id("desc",{children:e}),id("path",{d:"M25.06 50.57c-13.808 0-25-11.194-25-25 0-13.808 11.192-25 25-25 13.806 0 25 11.192 25 25 0 13.806-11.194 25-25 25zm0-2c12.702 0 23-10.298 23-23 0-12.703-10.298-23-23-23-12.703 0-23 10.297-23 23 0 12.702 10.297 23 23 23z"}),id("path",{d:"M17.659 25.622a1 1 0 0 0-1.318 1.505l6.2 5.425a1 1 0 0 0 1.367-.047l10.763-10.8a1 1 0 1 0-1.416-1.41L23.153 30.428l-5.494-4.807z"})]}),iq=null;var Q7,a1,Z7;const lq=({title:t="Text Block",desc:e="Text Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>Q7("svg",{className:Z7("i i-text-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[a1("title",{children:t}),a1("desc",{children:e}),a1("path",{d:"M15.747.5c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-14c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h14zm-13 2v12h12v-12h-12zm2 1h8v3h-1l-1-1h-1v6l1 1v1h-4v-1l1-1v-6h-1l-1 1h-1v-3z",fillRule:"evenodd"})]}),cq=null;var e2,ld,Y7;const dq=({title:t="Text Slide",desc:e="Text Slide",width:n="16",height:o="14",className:r,focusable:a="false"})=>e2("svg",{className:Y7("i i-text-slide",r),focusable:a,height:o,viewBox:"0 0 16 14",width:n,children:[ld("title",{children:t}),ld("desc",{children:e}),e2("g",{fillRule:"evenodd",children:[ld("path",{d:"M2 12h12V2H2v10zM16 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1z"}),ld("path",{d:"M4 8h8v2H4z"})]})]}),uq=null;var X7,i1,J7;const hq=({title:t="TitleSort",desc:e="Letters A and Z next to a downard arrow",width:n="17",height:o="11",className:r,focusable:a="false"})=>X7("svg",{className:J7("i",r),focusable:a,height:o,viewBox:"0 0 17 11",width:n,children:[i1("title",{children:t}),i1("desc",{children:e}),i1("path",{d:"M4.679 7.311l.755-.755a.8.8 0 0 1 1.132 1.131L4.444 9.808a.8.8 0 0 1-1.131 0L1.192 7.687a.8.8 0 1 1 1.131-1.131l.756.755V1.5a.8.8 0 1 1 1.6 0v5.811zM9.842 6C9.377 6 9 5.552 9 5s.377-1 .842-1h6.316c.465 0 .842.448.842 1s-.377 1-.842 1H9.842zM9.842 2C9.377 2 9 1.552 9 1s.377-1 .842-1h6.316c.465 0 .842.448.842 1s-.377 1-.842 1H9.842zM9.842 10C9.377 10 9 9.552 9 9s.377-1 .842-1h6.316c.465 0 .842.448.842 1s-.377 1-.842 1H9.842z"})]}),mq=null;function q7(t){return(0,s.jsxs)(Hs,{viewBox:"0 0 15 16",...t,children:[(0,s.jsx)("path",{d:"M8.69169169,1.65459164 C7.42998802,0.732912554 5.79691384,0.425404591 4.21164279,0.810071145 C2.01180284,1.34426767 0.429519485,3.32166778 0.449238273,5.51223961 C0.454317355,6.09008425 0.560978072,6.64511922 0.766531499,7.16185651 C0.884545458,7.45866364 1.19914976,7.66620336 1.53138146,7.66620336 C1.60756769,7.66620336 1.72289272,7.66620336 1.80027403,7.62903206 C2.21496611,7.48682371 2.41812939,7.05879065 2.26276924,6.65638325 C2.09725092,6.18836289 2.02345485,5.8315748 2.02345485,5.49928598 C2.02345485,4.55873965 2.44860388,3.66071502 3.19044858,3.03527987 C3.94334777,2.40027029 4.91763516,2.10993997 5.93524413,2.21694824 C6.90415367,2.31888769 7.79388929,2.81901053 8.37648985,3.58890684 C8.96058425,4.36077436 9.17300938,5.31962473 8.9590904,6.21962057 C8.94235931,6.29002074 8.92204298,6.35957612 8.89754388,6.42913149 C8.84436291,6.5969655 8.8709534,6.79042518 8.97074242,6.9599488 C9.07979329,7.14524206 9.26204269,7.2823816 9.47088259,7.33616734 C9.67285078,7.38770027 9.89573284,7.36517221 10.0812687,7.27308878 C10.2742738,7.17762614 10.4108115,7.01936655 10.4654863,6.83041248 C10.6062067,6.40012662 10.6773139,5.94111748 10.6773139,5.4666203 C10.6773139,3.96597018 9.95369412,2.57655233 8.69169169,1.65459164"}),(0,s.jsx)("path",{d:"M12.4033641,9.43002363 L7.46962051,8.60458861 L7.42312479,5.65704834 C7.42257778,4.87028142 6.91659487,4.17992696 6.16391111,3.93838024 C5.57177436,3.74839098 4.94490256,3.83320301 4.44493675,4.1709044 C3.94633846,4.50757465 3.64849231,5.04841246 3.64849231,5.61734909 L3.64849231,12.0692503 L3.27543248,11.4577787 C3.01177436,11.0154157 2.60233846,10.7096799 2.12288547,10.5967691 C1.65355214,10.4859205 1.14620171,10.5673813 0.72637265,10.8220752 C0.0398769231,11.2721719 -0.184396581,12.1996907 0.158577778,13.1957809 C0.165415385,13.210217 0.18237265,13.2532675 0.209176068,13.3208077 C0.319671795,13.5979291 0.578406838,14.2475532 0.952013675,15.0616455 L0.999603419,15.1523867 C1.20227009,15.608928 1.48534701,15.7290569 1.72739829,15.7290569 C1.84445812,15.7290569 1.95139829,15.7009581 2.03563761,15.6692503 C2.21204786,15.6022256 2.33922735,15.4880258 2.40322735,15.3387669 C2.47816752,15.1637293 2.46285128,14.9407433 2.36356923,14.7319356 C2.32992821,14.653826 1.5422359,12.8165757 1.50968889,12.7477465 C1.36828718,12.295072 1.41396239,11.9890784 1.49437265,11.9455124 C1.58845812,11.9011729 1.69403077,11.8869946 1.7730735,11.9009151 C1.9133812,11.9449968 1.98832137,12.0042879 2.05697094,12.1321504 L3.53963761,14.292666 C3.71905641,14.5633426 4.15146667,14.7654479 4.59946667,14.6061353 C4.93888547,14.4857487 5.12568889,14.2596692 5.12568889,13.9699162 L5.12568889,5.69416971 C5.12568889,5.5072739 5.23317607,5.33739205 5.39317607,5.27114071 C5.54469744,5.20927175 5.70797949,5.21984103 5.84117607,5.3018174 C5.97546667,5.38456713 6.05560342,5.52196778 6.05560342,5.66916434 L6.05560342,9.09129108 C6.05560342,9.4367261 6.34715897,9.7540623 6.69232137,9.78396563 L6.6942359,9.78396563 L12.1632274,10.6988528 C12.7868171,10.8042879 13.2397402,11.3141912 13.2397402,11.9112266 L13.2397402,15.0784017 C13.2397402,15.434406 13.5457915,15.72287 13.9235009,15.72287 C14.3009368,15.72287 14.6072615,15.434406 14.6072615,15.0784017 L14.6072615,11.9112266 C14.6072615,10.6893147 13.6809026,9.64579162 12.4033641,9.43002363"})]})}var e8,l1,t8;const pq=({title:t="Remove",desc:e="Trash can",width:n="10",height:o="13",className:r=null,focusable:a="false"})=>e8("svg",{className:t8("i i-trash",r),focusable:a,height:o,viewBox:"0 0 10 13",width:n,children:[l1("title",{children:t}),l1("desc",{children:e}),l1("path",{d:"M9.28713712,12.0991694 C9.28713712,12.4960933 8.96564674,12.814808 8.57149855,12.814808 L1.42899128,12.814808 C1.03500637,12.814808 0.714169089,12.4960933 0.714169089,12.0991694 L0.714169089,4.9568254 L9.28713712,4.9568254 L9.28713712,12.0991694 L9.28713712,12.0991694 Z M10,3.33274903 L0,3.33274903 L0,2.62053925 C0,2.22508485 0.319367795,1.90571706 0.714169089,1.90571706 L2.85830911,1.90571706 L2.85830911,1.19220107 C2.85830911,0.798052883 3.17702381,0.4765625 3.5724782,0.4765625 L6.42948111,0.4765625 C6.82346602,0.4765625 7.1436502,0.798052883 7.1436502,1.19220107 L7.1436502,1.90571706 L9.28713712,1.90571706 C9.68046893,1.90571706 10,2.22524813 10,2.62053925 L10,3.33274903 L10,3.33274903 Z"})]}),fq=null;var s8,c1,n8;const vq=({title:t="Trash Folder",desc:e="Solid trash can",width:n="16",height:o="17",className:r,focusable:a="false"})=>s8("svg",{className:n8("i i-trashFolder",r),focusable:a,height:o,viewBox:"0 0 16 17",width:n,children:[c1("title",{children:t}),c1("desc",{children:e}),c1("path",{d:"M2.57 7.175v7.5a1.88 1.88 0 0 0 1.874 1.875h7.5a1.88 1.88 0 0 0 1.875-1.875v-7.5H2.57zM11.944 3.773V1.898c0-.562-.375-.937-.937-.937H5.382c-.563 0-.938.375-.938.937v1.875H.694v1.875h15V3.773h-3.75z"})]}),gq=null;var o8,Ka;const Cq=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="16",role:a="img",title:i,width:c="14"})=>o8("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 14 16",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Ka("title",{children:i}),o&&Ka("desc",{children:o}),Ka("path",{clipRule:"evenodd",d:"M0.332031 4.00033C0.332031 3.63214 0.630508 3.33366 0.998698 3.33366H12.9987C13.3669 3.33366 13.6654 3.63214 13.6654 4.00033C13.6654 4.36852 13.3669 4.66699 12.9987 4.66699H0.998698C0.630508 4.66699 0.332031 4.36852 0.332031 4.00033Z",fill:"currentColor",fillRule:"evenodd"}),Ka("path",{clipRule:"evenodd",d:"M5.66536 2.00033C5.48855 2.00033 5.31898 2.07056 5.19396 2.19559C5.06894 2.32061 4.9987 2.49018 4.9987 2.66699V3.33366H8.9987V2.66699C8.9987 2.49018 8.92846 2.32061 8.80344 2.19559C8.67841 2.07056 8.50884 2.00033 8.33203 2.00033H5.66536ZM10.332 3.33366V2.66699C10.332 2.13656 10.1213 1.62785 9.74624 1.25278C9.37117 0.877706 8.86246 0.666992 8.33203 0.666992H5.66536C5.13493 0.666992 4.62622 0.877706 4.25115 1.25278C3.87608 1.62785 3.66536 2.13656 3.66536 2.66699V3.33366H2.33203C1.96384 3.33366 1.66536 3.63214 1.66536 4.00033V13.3337C1.66536 13.8641 1.87608 14.3728 2.25115 14.7479C2.62622 15.1229 3.13493 15.3337 3.66536 15.3337H10.332C10.8625 15.3337 11.3712 15.1229 11.7462 14.7479C12.1213 14.3728 12.332 13.8641 12.332 13.3337V4.00033C12.332 3.63214 12.0336 3.33366 11.6654 3.33366H10.332ZM2.9987 4.66699V13.3337C2.9987 13.5105 3.06894 13.68 3.19396 13.8051C3.31898 13.9301 3.48855 14.0003 3.66536 14.0003H10.332C10.5088 14.0003 10.6784 13.9301 10.8034 13.8051C10.9285 13.68 10.9987 13.5105 10.9987 13.3337V4.66699H2.9987Z",fill:"currentColor",fillRule:"evenodd"}),Ka("path",{clipRule:"evenodd",d:"M5.66536 6.66699C6.03355 6.66699 6.33203 6.96547 6.33203 7.33366V11.3337C6.33203 11.7018 6.03355 12.0003 5.66536 12.0003C5.29717 12.0003 4.9987 11.7018 4.9987 11.3337V7.33366C4.9987 6.96547 5.29717 6.66699 5.66536 6.66699Z",fill:"currentColor",fillRule:"evenodd"}),Ka("path",{clipRule:"evenodd",d:"M8.33203 6.66699C8.70022 6.66699 8.9987 6.96547 8.9987 7.33366V11.3337C8.9987 11.7018 8.70022 12.0003 8.33203 12.0003C7.96384 12.0003 7.66536 11.7018 7.66536 11.3337V7.33366C7.66536 6.96547 7.96384 6.66699 8.33203 6.66699Z",fill:"currentColor",fillRule:"evenodd"})]}),xq=null;var r8,d1,a8;const bq=({title:t="Remove",desc:e="Trash can",width:n="13.3",height:o="16",className:r,focusable:a="false"})=>r8("svg",{className:a8("i",r),focusable:a,height:o,viewBox:"0 0 13.3 16",width:n,children:[d1("title",{children:t}),d1("desc",{children:e}),d1("path",{d:"M1.2,4.9c0,0,0-1.2,0-1.2c0,0,10.9,0,10.9,0c0,0,0,1.2,0,1.2 M10.9,14.8 c0,0-8.5,0-8.5,0c0,0,0-8.6,0-8.6h8.5C10.9,6.2,10.9,14.8,10.9,14.8 M4.8,1.2c0,0,3.6,0,3.6,0c0,0,0,1.2,0,1.2h0H4.8 C4.8,2.5,4.8,1.2,4.8,1.2 M12.1,2.5H9.7V1.2C9.7,0.5,9.2,0,8.5,0H4.8C4.2,0,3.6,0.6,3.6,1.2v1.2H1.2C0.5,2.5,0,3,0,3.7v1.2 c0,0.7,0.5,1.2,1.2,1.2h0v8.6c0,0.7,0.5,1.2,1.2,1.2h8.5c0.7,0,1.2-0.6,1.2-1.2V6.2h0c0.7,0,1.2-0.6,1.2-1.2V3.7 C13.3,3,12.8,2.5,12.1,2.5"})]}),yq=null;var i8,cd,l8;const Lq=({title:t="Upload",desc:e="Upload icon",width:n="15",height:o="15",className:r="",focusable:a="false"})=>i8("svg",{className:l8("i",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[cd("title",{children:t}),cd("desc",{children:e}),cd("polygon",{points:"6.52941176 3.52941176 6.52941176 9.70588235 8.29411765 9.70588235 8.29411765 3.52941176 10.4117647 3.52941176 7.41176471 0 4.41176471 3.52941176"}),cd("path",{d:"M14.0625,14.1176471 L0.9375,14.1176471 C0.375,14.1176471 0,13.7647059 0,13.2352941 L0,5.29411765 C0,4.76470588 0.375,4.41176471 0.9375,4.41176471 L3.75,4.41176471 L3.75,6.17647059 L1.875,6.17647059 L1.875,12.3529412 L13.125,12.3529412 L13.125,6.17647059 L11.25,6.17647059 L11.25,4.41176471 L14.0625,4.41176471 C14.625,4.41176471 15,4.76470588 15,5.29411765 L15,13.2352941 C15,13.7647059 14.625,14.1176471 14.0625,14.1176471"})]}),Eq=null;var c8,El;const Sq=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="14",role:a="img",title:i,width:c="14"})=>c8("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 14 14",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&El("title",{children:i}),o&&El("desc",{children:o}),El("path",{clipRule:"evenodd",d:"M1.00065 8.33301C1.36884 8.33301 1.66732 8.63148 1.66732 8.99967V11.6663C1.66732 11.8432 1.73756 12.0127 1.86258 12.1377C1.9876 12.2628 2.15717 12.333 2.33398 12.333H11.6673C11.8441 12.333 12.0137 12.2628 12.1387 12.1377C12.2637 12.0127 12.334 11.8432 12.334 11.6663V8.99967C12.334 8.63148 12.6325 8.33301 13.0007 8.33301C13.3688 8.33301 13.6673 8.63148 13.6673 8.99967V11.6663C13.6673 12.1968 13.4566 12.7055 13.0815 13.0806C12.7065 13.4556 12.1978 13.6663 11.6673 13.6663H2.33398C1.80355 13.6663 1.29484 13.4556 0.919771 13.0806C0.544698 12.7055 0.333984 12.1968 0.333984 11.6663V8.99967C0.333984 8.63148 0.632461 8.33301 1.00065 8.33301Z",fill:"currentColor",fillRule:"evenodd"}),El("path",{clipRule:"evenodd",d:"M6.52925 0.52827C6.7896 0.26792 7.21171 0.26792 7.47206 0.52827L10.8054 3.8616C11.0657 4.12195 11.0657 4.54406 10.8054 4.80441C10.545 5.06476 10.1229 5.06476 9.86258 4.80441L7.00065 1.94248L4.13872 4.80441C3.87837 5.06476 3.45626 5.06476 3.19591 4.80441C2.93556 4.54406 2.93556 4.12195 3.19591 3.8616L6.52925 0.52827Z",fill:"currentColor",fillRule:"evenodd"}),El("path",{clipRule:"evenodd",d:"M7.00065 0.333008C7.36884 0.333008 7.66732 0.631485 7.66732 0.999674V8.99967C7.66732 9.36786 7.36884 9.66634 7.00065 9.66634C6.63246 9.66634 6.33398 9.36786 6.33398 8.99967V0.999674C6.33398 0.631485 6.63246 0.333008 7.00065 0.333008Z",fill:"currentColor",fillRule:"evenodd"})]}),Tq=null;var d8,dd,u8;const Iq=({title:t="UploadXml",desc:e="UploadXml",width:n="18",height:o="21",className:r,focusable:a="false"})=>d8("svg",{className:u8("i i-uploadXml",r),focusable:a,height:o,viewBox:"0 0 18 21",width:n,children:[dd("title",{children:t}),dd("desc",{children:e}),dd("path",{d:"M15.88,1.2H1.6A.59.59,0,0,0,1,1.79V19.21a.59.59,0,0,0,.59.59H15.88a.59.59,0,0,0,.59-.59V1.79A.59.59,0,0,0,15.88,1.2Zm-.59,1.19V18.61H2.19V2.39Z"}),dd("path",{d:"M5.14,10.13a.59.59,0,0,0,.84,0L8.13,8v6.48a.59.59,0,0,0,1.19,0V8l2.15,2.15a.59.59,0,0,0,.84-.84L9.14,6.12a.6.6,0,0,0-.84,0L5.14,9.29A.59.59,0,0,0,5.14,10.13Z"})]}),Nq=null;var h8,u1,m8;const jq=({title:t="Video Block",desc:e="Video Block",width:n="17",height:o="13",className:r,focusable:a="false"})=>h8("svg",{className:m8("i i-video-block",r),focusable:a,height:o,viewBox:"0 0 17 13",width:n,children:[u1("title",{children:t}),u1("desc",{children:e}),u1("path",{d:"M10.49 12.5h-9c-.6 0-1-.4-1-1v-10c0-.6.4-1 1-1h9c.6 0 1 .4 1 1V3l3.6-1.5c.7-.2 1.4.3 1.4 1v8c0 .7-.7 1.2-1.4.9l-3.6-1.4v1.5c0 .6-.4 1-1 1zm-8-2h7v-2c0-.7.7-1.2 1.4-.9l3.6 1.5v-5l-3.6 1.5c-.7.1-1.4-.4-1.4-1.1v-2h-7v8z",fillRule:"evenodd"})]}),kq=null;function p8(t){return(0,s.jsx)(Hs,{viewBox:"0 0 16 12",...t,children:(0,s.jsx)("g",{transform:"translate(-1 -2)",children:(0,s.jsx)("path",{d:"M11,14 L2,14 C1.4,14 1,13.6 1,13 L1,3 C1,2.4 1.4,2 2,2 L11,2 C11.6,2 12,2.4 12,3 L12,4.5 L15.6,3 C16.3,2.8 17,3.3 17,4 L17,12 C17,12.7 16.3,13.2 15.6,12.9 L12,11.5 L12,13 C12,13.6 11.6,14 11,14 L11,14 L11,14 Z M3,12 L10,12 L10,10 C10,9.3 10.7,8.8 11.4,9.1 L15,10.6 L15,5.6 L11.4,7.1 C10.7,7.2 10,6.7 10,6 L10,4 L3,4 L3,12 L3,12 L3,12 Z"})})})}var f8,t2,v8;function Aq(t){return f8(v8,{...t,viewBox:"0 0 14 10",children:[t2("path",{clipRule:"evenodd",d:"M13.6836 1.56433C13.8779 1.66431 14 1.8645 14 2.08301V7.91634C14 8.13485 13.8779 8.33504 13.6836 8.43502C13.4893 8.53501 13.2554 8.51802 13.0776 8.39102L8.99428 5.47435C8.84098 5.36485 8.75 5.18806 8.75 4.99967C8.75 4.81129 8.84098 4.63449 8.99428 4.525L13.0776 1.60833C13.2554 1.48132 13.4893 1.46434 13.6836 1.56433ZM10.3369 4.99967L12.8333 6.78281V3.21653L10.3369 4.99967Z",fillRule:"evenodd"}),t2("path",{clipRule:"evenodd",d:"M1.75 1.49967C1.42783 1.49967 1.16667 1.76084 1.16667 2.08301V7.91634C1.16667 8.23851 1.42783 8.49967 1.75 8.49967H8.16667C8.48883 8.49967 8.75 8.23851 8.75 7.91634V2.08301C8.75 1.76084 8.48883 1.49967 8.16667 1.49967H1.75ZM0 2.08301C0 1.11651 0.783502 0.333008 1.75 0.333008H8.16667C9.13317 0.333008 9.91667 1.11651 9.91667 2.08301V7.91634C9.91667 8.88284 9.13317 9.66634 8.16667 9.66634H1.75C0.783502 9.66634 0 8.88284 0 7.91634V2.08301Z",fillRule:"evenodd"})]})}var s2,ud,g8;const Rq=({title:t="Visible",desc:e="Eye",width:n="16",height:o="12",className:r=null,focusable:a="false"})=>s2("svg",{className:g8("i i-visible",r),focusable:a,height:o,viewBox:"0 0 16 12",width:n,children:[ud("title",{children:t}),ud("desc",{children:e}),s2("g",{children:[ud("path",{d:"M8 2c2.84 0 5.036 2.835 5.818 4-.784 1.166-2.98 4-5.818 4-2.84 0-5.038-2.838-5.819-4.001C2.958 4.835 5.146 2 8.001 2m0 10c4.706 0 7.743-5.284 7.87-5.508a1 1 0 0 0 .001-.98C15.746 5.287 12.732 0 8 0 3.245 0 .251 5.289.126 5.514a.998.998 0 0 0 .002.975C.254 6.713 3.27 12 8 12"}),ud("path",{d:"M8 4a2 2 0 1 1 .001 3.999A2 2 0 0 1 8 4"})]})]}),Pq=null,C8=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="20",role:a="img",title:i="",style:c,width:u="20"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:Q()("i i-xMarkFilled",n),focusable:"false",height:r,role:a,style:c,viewBox:"0 0 20 20",width:u,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.jsx)("path",{d:"M10 9.08L6.904 5.986a.65.65 0 1 0-.92.92L9.082 10l-3.096 3.096a.65.65 0 0 0 .92.92L10 10.918l3.096 3.096a.65.65 0 0 0 .92-.92L10.918 10l3.096-3.096a.65.65 0 1 0-.92-.92L10 9.082zM10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10z"})]});var x8=l(95033),n2=l.n(x8),b8=l(85477),Sl=l.n(b8),y8=l(14685),hs=l.n(y8),L8=l(55427),E8=l.n(L8),S8=l(24849),T8=l.n(S8);const I8=hs()(n2()({}),E8()(["first_name","last_name"]),Sl()(" "),T8()),N8=({className:t,decorative:e,size:n,...o})=>{const r=Qt()(["avatars","medium"],o),a=e?"":I8(o)||"Unknown User";return r?(0,s.jsx)("img",{alt:a,className:t||"user-avatar",src:r,style:{height:n,width:n}}):(0,s.jsx)(e1,{decorative:e,height:n,title:a,width:n})};var j8=l(29375);const ne=(0,j8.setup)({el:"__",mod:"--",modValue:"-"}),k8=`${(0,Je._$)("CDN_URI")}/assets/rise/assets/trophy.svg`,hd=ne("cover");function A8(){const{certificateDownload:t,riseComCurrentUser:e}=Rt(),n=(0,ot.useLabelsMap)(),o=nC(),a=Va()?.quizPassed??!0;return!(o&&a&&!(0,Je.Wk)())||window.viewType==="preview"?null:(0,s.jsxs)("div",{className:hd("completed-info"),children:[(0,s.jsxs)("div",{className:hd("completed-info-avatar"),children:[(0,s.jsx)(N8,{...e,decorative:!0}),(0,s.jsx)("img",{alt:"",className:hd("completed-info-trophy"),src:k8})]}),(0,s.jsxs)("div",{className:hd("completed-info-label"),children:[(0,s.jsx)("span",{"aria-hidden":"true",children:n?.coverCompleted||"Completed"}),(0,s.jsx)("span",{className:"visually-hidden",children:n?.a11yCoverCourseCompleted||"Course Completed"})]}),t&&(0,s.jsx)(mo,{})]})}var R8=l(68045),qn=l.n(R8);const h1=t=>{if(!t)return"";const e=qn()(t),n=qn()(),o=qn()(n).add(24,"hours");return e.isBefore(n)?"Overdue":e.isBefore(o)?`Due in ${n.to(e,!0)}`:`Due ${e.format("MMM D")}`},o2=t=>qn()(t).isSameOrBefore(qn()().add(3,"d"),"days");function P8(t){return function({Default:n,className:o,...r}){const a=`brand--${t}`,i=o?`${o} ${a}`:a;return(0,s.jsx)(n,{...r,className:i})}}const _a=P8("ui"),m1=t=>t==="<p><br></p>"?"":t;var r2=l(9516);const p1="data-change-path",f1="data-l10n-id",a2=(t,e)=>{if(t)return e?["l10n","translations",e,t.getAttribute(f1)]:JSON.parse(t.getAttribute(p1))};let Qo;const w8=()=>{const t=Qa();t&&t.classList.add("selected")},md=()=>{Qa()&&Qo&&Tl(Qo)},M8=(t,e)=>n=>{const o=document.elementsFromPoint(n.clientX,n.clientY),r=e?o.find(a=>a.getAttribute(f1)):o.find(a=>a.getAttribute(p1));r!=null&&(t&&Qo!==r&&(Qo=r,t(a2(r,e))),Tl(r))},O8=(t,e)=>n=>{n.stopPropagation(),n.preventDefault();const o=document.elementsFromPoint(n.clientX,n.clientY),r=e?o.find(a=>a.getAttribute(f1)):o.find(a=>a.getAttribute(p1));if(r){Tl(r),l2();const a=a2(r,e);a&&(t(a),w8())}},v1=()=>document.getElementById("target-container"),Qa=()=>document.getElementById("target-highlight"),i2=()=>{if(v1())return;const e=document.createElement("div");e.classList.add("target-container"),e.id="target-container",document.body.appendChild(e);const n=document.createElement("div");n.classList.add("target-highlight"),n.id="target-highlight",e.appendChild(n)},l2=()=>{const t=Qa();t&&t.classList.add("selected")},D8=({top:t,left:e,width:n,height:o})=>{const r=document.querySelector("[data-page=true]")?.getBoundingClientRect().width??window.innerWidth-20;return n<r&&(t=t-10,o=o+20,e=e-20,n=n+40),{top:t,left:e,width:n,height:o}},Tl=t=>{const{top:e,left:n,width:o,height:r}=D8(t.getBoundingClientRect()),a=Qa();a&&(t!==Qo&&a.classList.contains("selected")&&a.classList.remove("selected"),a.classList.add("active"),Object.assign(a.style,{top:`${e}px`,left:`${n}px`,width:`${o}px`,height:`${r}px`}),Qo=t)},B8=()=>{window.removeEventListener("scroll",md,{capture:!0}),pd()},pd=()=>{Qa()?.classList?.remove("active"),Qa()?.classList?.remove("selected")};let Za,fd;const H8=({locale:t})=>({isActive:e},n)=>{const o=!!v1();if(e){if(Za)return Za;i2();const r=M8(n,t);let a;return Za=new Promise((i,c)=>{a=O8(i,t),fd=c,document.body.classList.add("target-mode"),window.addEventListener("mousemove",r,!0),window.addEventListener("click",a,!0),window.addEventListener("resize",pd,!0),window.addEventListener("scroll",md,!0)}).finally(()=>{Za=null,fd=null,document.body.classList.remove("target-mode"),window.removeEventListener("mousemove",r,!0),window.removeEventListener("click",a,!0),window.removeEventListener("resize",pd,!0),window.removeEventListener("scroll",md,!0)}),Za}else pd(),v1()?.remove(),Qo=null;return o&&fd!=null&&fd(new Error("cancelled")),Promise.resolve()},F8=t=>{let e=t.findIndex(n=>n==="items");return e===-1?t:t.slice(0,e+2)},c2=t=>{const e=(0,r2.Ce)(t);return e?e.type==="translation"||e.type==="caption"&&e.l10nId?document.querySelector(`[data-l10n-id='${e.l10nId}']`)??document.querySelector(`[data-l10n-id*='${e.l10nId}']`):document.querySelector(`[data-change-path='${JSON.stringify(F8(t))}']`):null},z8=t=>{i2(),window.addEventListener("scroll",md,{capture:!0}),document.body.classList.add("target-mode");const e=c2(t);e&&Tl(e)},V8=t=>{if(!Za)return;const e=c2(t);e&&(Qo!==e&&(Qo=e),Tl(e),l2(),e.scrollIntoView({behavior:"smooth",block:"center"}))},U8=t=>["course",t],d2=(t,e)=>["lessons",{id:t},e],$8=(t,e)=>[...d2(t,"items"),{id:e}],Ya=t=>JSON.stringify(U8(t)),u2=(t,e)=>JSON.stringify(d2(t,e)),W8=(t,e)=>JSON.stringify($8(t,e)),on={STATUS:"targetMode:status",TOGGLE:"targetMode:toggle",FOCUS:"targetMode:focus",CLEAR:"targetMode:clear",SELECTED:"targetMode:selected",HOVERED:"targetMode:hovered",TRANSLATION_HOVERED:"targetMode:translationHovered",TRANSLATION_HOVER_CLEAR:"targetMode:translationHoverClear"},Xa=(t,e)=>{const n={};for(let o=0;o<t.length;o++){const r=t[o];if(typeof r=="object"&&r.id){const a=t[o-1],i=a==="items"?e.shift():a.replace(/s$/,"");n[`${i??"item"}Id`]=r.id}}return n};var xe=l(66688),nt=l(21632);function g1(t,e){const n=(0,h.useMemo)(()=>matchMedia(`(${t}: ${e*.0625}em)`),[t,e]),[o,r]=(0,h.useState)(n.matches);return(0,h.useEffect)(()=>{const a=n.addEventListener??n.addListener,i=n.removeEventListener??n.removeListener;return a.call(n,"change",c),()=>i.call(n,"change",c);function c(){r(n.matches)}},[n]),o}const G8="matches";function K8(t,e,n,o="withPxToEmMedia"){return r=>{function a(i){const c=g1(t,e);return(0,s.jsx)(r,{...i,[n??G8]:c})}return a.displayName=`${o}(${r.displayName||r.name})`,a}}function Ss(t){return g1("max-width",t-1)}function Oq(t){return g1("min-width",t)}function _8(t,e,n){return K8("min-width",t,e,n)}const Q8=()=>Ss(1200),Z8=()=>Ss(768),C1=()=>Ss(480),x1=ne("cover");function Y8(t,e,n){return t===1?e:n}function X8(){const t=(0,xe.v1)(),e=(0,xe.vU)(),n=Y8(t,e?.coverLesson||"Lesson",e?.coverLessons||"Lessons");return(0,s.jsxs)("li",{className:x1("num-lessons"),role:"listitem",children:[(0,s.jsx)("span",{className:x1("num-lessons-value"),children:t}),"\xA0",(0,s.jsx)("span",{className:x1("num-lessons-units"),children:n})]})}const J8=36e5,b1=ne("cover");function q8(t){return Math.round(10*t)/10}function h2(t,e,n){return t===1?e:n}function ex(){const{showTimeToComplete:t,timeToComplete:e}=(0,xe.DX)(),n=(0,xe.vU)();if(!t)return null;const o=e>=J8,r=o?q8(qn().duration(e).asHours()):qn().duration(e).asMinutes(),a=o?h2(r,n?.coverHour||"Hour",n?.coverHours||"Hours"):h2(r,n?.coverMinute||"Minute",n?.coverMinutes||"Minutes");return(0,s.jsxs)("li",{className:b1("time-to-complete"),role:"listitem",children:[(0,s.jsx)("span",{className:b1("time-to-complete-value"),children:r}),"\xA0",(0,s.jsx)("span",{className:b1("time-to-complete-units"),children:a})]})}const y1=ne("cover");function L1(){const t=(0,xe.vU)();return $e.BI?(0,s.jsxs)("section",{className:y1("course-length-section"),children:[(0,s.jsx)("h2",{className:y1("course-length-title"),children:t?.a11yCoverCourseLength||"Course Length"}),(0,s.jsxs)("ul",{className:y1("course-length-list"),role:"list",children:[(0,s.jsx)(X8,{}),(0,s.jsx)(ex,{})]})]}):null}const tx=ne("cover"),sx="MMMM D, YYYY";function m2({format:t=sx}){const{publishedAt:e}=(0,xe.DX)(),n=(0,xe.vU)(),o=tx("details-content-published-at");if(!e)return null;const r=qn()(e);return r.isValid()?(0,s.jsxs)("div",{className:o,children:[n?.coverPublished||"Published"," ",r.format(t)]}):null}var nx=l(65665),Il=l.n(nx);const p2=Il()(async()=>(await l.e("math").then(l.bind(l,43552))).browserAdaptor(),{promise:!0}),f2=Il()(async()=>{const[{TeX:t},{AllPackages:e}]=await Promise.all([l.e("math").then(l.t.bind(l,81048,23)),l.e("math").then(l.bind(l,21501))]);return new t({packages:e})}),v2=Il()(async()=>{const t=await l.e("math").then(l.t.bind(l,83224,23));return new t.SVG({fontCache:"local"})},{promise:!0}),g2=Il()(async()=>{const[t,e,n,{RegisterHTMLHandler:o},{mathjax:r}]=await Promise.all([p2(),f2(),v2(),l.e("math").then(l.bind(l,35913)),l.e("math").then(l.bind(l,55111))]);return o(t),r.document(document,{InputJax:e,OutputJax:n})},{promise:!0}),ox=Il()(async t=>{const e=new CSSStyleSheet;t.adoptedStyleSheets.push(e);const[n,o]=await Promise.all([v2(),g2()]),r=n.styleSheet(o);r instanceof HTMLStyleElement&&await e.replace(r.innerText)},{promise:!0});class rx extends HTMLElement{static observedAttributes=["long-description","short-description","tex"];_ready;_anchor=this;_renderController;constructor(){super(),this._ready=ox(this.ownerDocument)}get longDescription(){return this.getAttribute("long-description")??null}set longDescription(e){e==null?this.removeAttribute("long-description"):this.setAttribute("long-description",e)}get shortDescription(){return this.getAttribute("short-description")??null}set shortDescription(e){e==null?this.removeAttribute("short-description"):this.setAttribute("short-description",e)}get tex(){return this.getAttribute("tex")??""}set tex(e){this.setAttribute("tex",e)}disconnectedCallback(){this._renderController?.abort()}attributeChangedCallback(e){e==="tex"?this._renderTex():this._renderAria()}async _renderTex(){this._renderController?.abort();const e=this._renderController=new AbortController,[n,o,r]=await Promise.all([g2(),p2(),f2(),this._ready]);if(e.signal.aborted)return;r.reset();const{tex:a}=this,i=a.includes("begin{")?a:String.raw`\begin{align*}${a}\end{align*}`,c=n.convert(i),u=o.firstChild(c),d=document.evaluate("//@data-mjx-error",u,null,XPathResult.STRING_TYPE).stringValue;if(d.length>0){let m=d;if(d===String.raw`Missing \begin{align*} or extra \end{align*}`){const p=n.convert(a),f=o.firstChild(p);m=document.evaluate("//@data-mjx-error",f,null,XPathResult.STRING_TYPE).stringValue??"An error occured"}this.dispatchEvent(new ax("matherror",{bubbles:!1,composed:!1,detail:{errorMessage:m}})),this._anchor.replaceChildren()}else this._anchor.replaceChildren(u);await this._renderAria()}async _renderAria(){if(await this._ready,this._renderController?.signal.aborted||this.firstElementChild==null)return;const e=[this.shortDescription,this.longDescription].filter(n=>(n?.length??0)>0).join(`

`);this.firstElementChild.ariaLabel=e.trim().length===0?null:e}}customElements.define("rise-math",rx);class ax extends CustomEvent{}var eo=l(45869),ks=l(74451),ix=l(6136),vd=l.n(ix);function C2(t){if(t==null)return{value:t};let e;if(typeof t=="string"?e=t:e=t.innerHTML,!e.includes("data-editor-id"))return{value:t};const n=e.match(/^<[^>]+data-editor-id=["']([^"']+)["'][^>]*>/);if(n){const o=n[1],r=e.match(/^<[^>]*>(.*)<\/[^>]*>$/s),a=r?r[1]:e;return{editorId:o,value:typeof t=="string"?a:t}}return{value:t}}var Eo=l(78979);const x2=(t="")=>t.split(".").slice(-2).join("."),b2=Xe()(x2,$e._$),lx=t=>t.includes("#/lessons/"),Pn=t=>{if(!t||cx(t)||lx(t))return!1;t.slice(0,2)==="//"&&(t=`https:${t}`);try{const{hostname:e}=new URL(t),n=x2(e);return n!==b2("ARTICULATE_DOMAIN")&&n!==b2("RISE_DOMAIN")}catch{return!1}},cx=t=>t?t.slice(0,7)==="mailto:":!1,dx=t=>t.includes("rise.articulate")&&t.includes("/authoring/")&&t.includes("/lesson");var ft=l(3055),Mt=l(52719);const E1=ne("external-link-disabled-popover");function gd(t={}){const{delay:e=200}=t,n=h.useRef(new Map),o=h.useCallback(c=>{const u=n.current.get(c);u&&clearTimeout(u);const d=setTimeout(()=>{const m=`trial-external-link-popover-${c}`;Mt.ArcPopover.handlePopover(m,"show"),n.current.delete(c)},e);n.current.set(c,d)},[e]),r=h.useCallback(c=>{const u=n.current.get(c);u&&clearTimeout(u);const d=setTimeout(()=>{const m=`trial-external-link-popover-${c}`;Mt.ArcPopover.handlePopover(m,"hide"),n.current.delete(c)},e);n.current.set(c,d)},[e]),a=h.useCallback(c=>{const u=`trial-external-link-popover-${c}`;Mt.ArcPopover.handlePopover(u,"show")},[]),i=h.useCallback(c=>{const u=`trial-external-link-popover-${c}`;Mt.ArcPopover.handlePopover(u,"hide")},[]);return h.useEffect(()=>{const c=n.current;return()=>{c.forEach(u=>clearTimeout(u)),c.clear()}},[]),{handleMouseEnter:o,handleMouseLeave:r,handleFocus:a,handleBlur:i}}function ux(t){return e=>{const{handleMouseEnter:n,handleMouseLeave:o,handleFocus:r,handleBlur:a}=gd(),i=h.useId();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t,{...e,attachmentId:i,onLinkBlur:a,onLinkFocus:r,onLinkMouseEnter:n,onLinkMouseLeave:o}),e.externalLinksDisabled&&(0,s.jsx)(Cd,{anchorId:i})]})}}const Cd=({anchorId:t})=>{const e=`trial-external-link-popover-${t}`;return h.useEffect(()=>{const n=o=>{o.key==="Escape"&&Mt.ArcPopover.handlePopover(e,"hide")};return document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n)}},[e]),(0,s.jsx)(Mt.ArcPopover,{alternateAnchorId:t,anchorAt:"top-center",boundary:"flip",className:E1(),hasTail:!0,headerSlot:(0,s.jsx)("div",{className:E1("header"),children:"Subscribe to unlock full access"}),hidePopoverButton:!0,id:e,offset:8,popover:"manual",variant:"common",children:(0,s.jsx)("div",{className:E1("content"),children:"To protect learners from phishing, scams, or malicious redirects, external links are disabled when sharing with Quick Share during your trial."})})},hx=({allowTabNavigation:t=!0,className:e="","data-testid":n,externalLinksDisabled:o,id:r,ref:a,tagName:i="div",value:c})=>{const u=(0,xe.vU)(),d=(0,h.useRef)(null),m=(0,nt.QQ)(c),[p,f]=(0,h.useState)([]),{handleMouseEnter:g,handleMouseLeave:v,handleFocus:C,handleBlur:x}=gd(),{currentLocale:L}=(0,rt.nY)(),y=(0,nt.D_)(),E=(0,h.useMemo)(()=>{const b=(0,Eo.aj)(m),S=Array.prototype.concat(yx,Lx,vx,px,fx(L,y),o?gx:[],t?xx:Cx,bx(u?.a11yNoticeLinkNewTab));return mx(S,b)},[t,L,y,o,u,m]);return(0,h.useLayoutEffect)(()=>{if(!o||!d.current){f([]);return}const b=[];d.current.querySelectorAll("[data-tooltip-target]").forEach((T,N)=>{const j=T.nextElementSibling;if(j?.hasAttribute("data-external")){const R=j.getAttribute("data-external-text")||"",O=j.getAttribute("data-external-id")||`link-${N}`;b.push({placeholder:T,text:R,id:O})}}),f(b)},[E,o]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{"aria-hidden":t?void 0:!0,className:`${e} brand--linkColor`,"data-l10n-id":(0,pt.pP)(c),"data-testid":n,id:r,ref:b=>{d.current=b,typeof a=="function"?a(b):a&&(a.current=b)},children:(0,h.createElement)(i,{className:"fr-view rise-tiptap",dangerouslySetInnerHTML:(0,h.useMemo)(()=>({__html:E}),[E])})}),p.map(({placeholder:b,text:S,id:T})=>(0,s.jsxs)(h.Fragment,{children:[(0,eo.createPortal)((0,s.jsx)("span",{id:T,onBlur:()=>x(T),onFocus:()=>C(T),onMouseEnter:()=>g(T),onMouseLeave:()=>v(T),role:"button",style:{cursor:"pointer",color:"var(--arc-color-text-disabled)",textDecoration:"underline"},tabIndex:0,children:S}),b),(0,s.jsx)(Cd,{anchorId:T})]},T))]})};function mx(t,e){const n=document.createElement("div");n.innerHTML=e;for(const o of t)o(n);return n.innerHTML}const y2=t=>t.getAttribute("data-link-type")==="lesson"?!0:(t.getAttribute("href")??"").startsWith("#/lessons/");function px(t){for(const e of t.querySelectorAll("a")){y2(e)?e.removeAttribute("target"):e.setAttribute("target","_blank");const o=new Set((e.getAttribute("rel")??"").split(/\s+/));o.delete("opener"),o.add("noopener"),o.add("noreferrer"),o.add("nofollow"),e.setAttribute("rel",Array.from(o).join(" "))}}function fx(t,e){return n=>{if(!(!t||t===e)){for(const o of n.querySelectorAll("a"))if(y2(o)){const r=o.getAttribute("href");if(r){const a=r.includes("?")?"&":"?";o.setAttribute("href",`${r}${a}locale=${encodeURIComponent(t)}`)}}}}}function vx(t){for(const e of t.querySelectorAll("table"))if(!e.parentElement.classList.contains("rise-table-wrap")){const n=document.createElement("div");n.className="rise-table-wrap",e.parentNode.replaceChild(n,e),n.appendChild(e)}}function gx(t){let e=0;const n=[];for(const o of t.querySelectorAll("a"))if(Pn(o.href)){const r=o.textContent||"",a=`external-link-anchor-${Date.now()}-${e++}`;o.removeAttribute("href"),o.removeAttribute("rel"),o.removeAttribute("target"),o.setAttribute("data-external",""),o.setAttribute("data-external-text",r),o.setAttribute("data-external-id",a),o.setAttribute("role","button"),o.style.display="none";const i=document.createElement("span");i.setAttribute("data-tooltip-target",""),o.parentNode?.insertBefore(i,o),n.push({placeholder:i,text:r,id:a})}return n}function Cx(t){for(const e of t.querySelectorAll("a"))e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1")}function xx(t){for(const e of t.querySelectorAll("a"))e.removeAttribute("aria-hidden"),e.hasAttribute("data-external")?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}function bx(t="(opens in a new tab)"){return e=>{for(const n of e.querySelectorAll('a[target="_blank"]')){const o=document.createElement("span");o.className="visually-hidden-always",o.textContent=t,n.appendChild(o)}}}function yx(t){return C2(t).value}function Lx(t){for(const e of t.querySelectorAll("rise-math")){const{shortDescription:n,longDescription:o}=e,r=e.querySelector('[slot="short-description"]'),a=e.querySelector('[slot="long-description"]');n==null&&r!=null&&(e.shortDescription=r.textContent),o==null&&a!=null&&(e.longDescription=a.textContent)}return t}const Ex=vd()({externalLinksDisabled:Qt()(["course","externalLinksDisabled"]),courseColors:t=>{const{course:e}=t,{colorAccent:n}=e?.theme||{},o=(0,ft.WA)(n);return[...e?.theme?.colors||M.B4,n,o]}}),Tt=(0,ks.Ls)(Ex)(hx),L2=ne("cover");function Sx(){const t=(0,xe.DX)(),e=Q8(),n=(0,nt.QQ)(t.description);if(!n)return null;const o=Ya("description"),r=(0,ds.uW)(t.description)?{"data-l10n-id":t.description.l10nId}:{"data-change-path":o};return(0,s.jsx)("div",{...r,children:(0,s.jsxs)("section",{className:L2("details-content-section"),children:[e?(0,s.jsx)(L1,{}):(0,s.jsx)(m2,{}),(0,s.jsx)(Tt,{className:L2("details-content-description"),value:m1(n)},"text")]})})}function Tx({Default:t,...e}){const{dueAt:n}=e,r=n&&o2(n)?"brand--background":"brand--color";return(0,s.jsx)(t,{...e,className:r})}var E2=l(97447);function Ln(t){const{to:e,children:n}=t,o=(0,ie.zy)(),r=(0,h.useMemo)(()=>(0,E2.B)(e,o),[o,e]);return(0,s.jsx)(ie.N_,{...t,to:r,children:n})}const Ix=({children:t,disabled:e,onClick:n,to:o,...r},a)=>e?(0,s.jsx)("a",{"aria-disabled":"true",ref:a,role:"link",...r,children:t}):(0,s.jsx)(Ln,{onClick:n,ref:a,to:o,...r,children:t}),Nx=(0,h.forwardRef)(Ix);class rn{static get isChrome(){return!window||!window.navigator?!1:/Chrome/.test(window.navigator.userAgent)&&/Google Inc/.test(window.navigator.vendor)}static get isSafari(){return!window||!window.navigator?!1:/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor)&&!/CriOS/.test(window.navigator.userAgent)}static get isIphoneSafari(){if(!window||!window.navigator)return!1;const e=/iPhone|iPod/.test(window.navigator.userAgent)&&!window.MSStream,n=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),o=/CriOS/.test(window.navigator.userAgent);return e&&n&&!o}static get isSafari9(){if(!window||!window.navigator)return!1;const e=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),n=/version\/9./i.test(window.navigator.userAgent);return e&&n}static get isIe11(){return!!(window&&Object.hasOwnProperty.call(window,"ActiveXObject")&&!window.ActiveXObject)}static get isEdge(){return!window||!window.navigator?!1:/Edge/.test(window.navigator.userAgent)}static get isMobile(){return!window||!window.navigator?!1:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}static get isLocalFilesystem(){return!window||!window.navigator?!1:/file:/.test(window.location.protocol)}static get isFirefox(){return window?.navigator?.userAgent.includes("Firefox")??!1}}function jx(){return!(typeof document>"u"||!("startViewTransition"in document)||rn.isFirefox)}function kx(t){if(!jx()){const e=t();return Promise.resolve(e)}return new Promise(e=>{try{document.startViewTransition(async()=>{await t()}).finished.then(()=>e()).catch(()=>e())}catch{const n=t();Promise.resolve(n).then(()=>e()).catch(()=>e())}})}let S1=!1;function Zo(t,e="default"){return S1?Promise.resolve():(S1=!0,kx(()=>{document.documentElement.classList.add(`transition-${e}`),t()}).then(()=>{document.documentElement.classList.remove(`transition-${e}`)}).finally(()=>{S1=!1}))}const S2=ne("cover"),Ws=jt("CoverAction",()=>{const{trackingQuizId:t}=(0,xe.DX)(),e=(0,je.Z)(),n=window.viewType==="preview",o=(0,xe._z)(),r=(0,xe.MT)(),a=(0,xe.Sd)(),i=o?.id,c=(0,$e.Wk)()?a===100:(0,$e.As)(),u=r!=null,d=u?r:i,m=!n&&$e.BI&&(c||!u&&!t),{courseCTALabel:p}=(0,xe.cN)({isCourseComplete:c,percentCourseComplete:a}),f=Q()("cover__header-content-action-link","overview__button-enrolled",{"overview__start-again":m}),g=v=>{v.preventDefault(),Zo(()=>{e((0,qt.p1)(d))},"cover-to-lesson")};return p?(0,s.jsx)("div",{className:S2("header-content-action-wrapper"),children:(0,s.jsx)(Nx,{className:f,onClick:g,to:(0,qt.p1)(d),children:(0,s.jsx)("span",{className:S2("header-content-action-link-text"),children:p})})}):null});var Ax=l(3793),pr=l.n(Ax),Ft=l(31525);const Nl=pr()("partner-content-course-author__"),Rx=({partnerContentAuthors:t,darkText:e,isImage:n,learn:o,lesson:r,isOnePage:a,selectedContentId:i})=>{const c=ys()(It()("id",i),t),u=Qt()(["data","authors"],c),m=(r?u:t).filter(C=>C.name),p=Q()(Nl("author-container"),{[Nl("author-container-padding-top")]:e}),f=Q()({[Nl("gray-text")]:!o&&!a}),g=Q()(Nl("author-image")),v=C=>`url(${(0,Ft.ny)({width:"76",height:"76",imageKey:C.image})})`;return(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"Authors"}),(0,s.jsx)("ol",{className:p,"data-testid":"partner-content-course-author-container",role:"list",children:m.map(C=>(0,s.jsxs)("li",{className:Nl("author"),"data-testid":"partner-content-course-author",role:"listitem",children:[(0,s.jsx)("div",{"aria-hidden":"true",className:g,"data-testid":"partner-content-course-author-image",disabled:n,style:{backgroundImage:v(C)}}),(0,s.jsx)("span",{className:f,children:C.name})]},C.name))})]})},Ja=ne("cover"),Px=()=>{const t=(0,xe.UG)();if(t==null)return null;const{avatar:e,authorName:n,title:o}=t;return(0,s.jsxs)("div",{className:Ja("author-with-title"),children:[(0,s.jsx)(T2,{avatar:e}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:Ja("author-name"),children:n}),(0,s.jsx)("div",{className:Ja("author-title"),children:o})]})]})},T2=({avatar:t})=>{const e=Ja("header-content-authors-avatar");return t?(0,s.jsx)("div",{className:e,"data-testid":"cover-header-content-authors-avatar",style:{backgroundImage:`url(${(0,$e.o1)(t)})`}}):(0,s.jsx)("div",{className:e,"data-testid":"cover-header-content-authors-avatar",children:(0,s.jsx)(e1,{decorative:!0})})},So=jt("CoverAuthors",({className:t})=>{const{color:e,partnerContentId:n,selectedAuthorId:o,theme:r,themeId:a}=(0,xe.DX)(),{accentContrast:i,coverPageType:c}=r??{},{authorName:u,avatar:d}=(0,xe.UG)()??{},m=(0,xe.vU)(),p=(0,xe.hM)(),f=!!n&&!!p,v=Ss(768)&&(0,Pt.yL)(a,c),C=c===M.BL.LEFT_OVERLAY||c===M.BL.CENTERED_OVERLAY||v;if(o==="none")return null;const x=u||"Unknown User",L=Ja("header-content-authors").mix(t),y=Ja("header-content-authors-name");return f?(0,s.jsx)("div",{className:L,"data-testid":"cover-authors",children:(0,s.jsx)(Rx,{accentContrast:i,color:e,isImage:C,learn:!0,partnerContentAuthors:p})}):(0,s.jsxs)("div",{className:L,"data-testid":"cover-authors",children:[(0,s.jsx)(T2,{avatar:d,isImage:C}),(0,s.jsxs)("div",{className:y,"data-testid":"cover-header-content-authors-name",children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:m?.a11yAuthorPrefix}),(0,s.jsx)("span",{children:x})]})]})}),wx=ne("cover"),wn=jt("CoverContentNoImage",({children:t})=>{const e=wx("header-content");return(0,s.jsx)("div",{className:e,"data-testid":"cover-header-content",children:t})});var Fs=l(25452);const qr=t=>{const e=(0,xe.DX)(),n=(0,nt.gY)();return Mx(e,t,n)},Mx=(t,e,n)=>{const{media:o,alpha:r}=e==="coverImage"?(0,Fs.dM)(t,n):(0,Fs.LI)(t,n),a="image"in o?(0,Fs.I6)(o?.image?.alt):void 0;return{alpha:r,ariaLabel:a,media:o,role:(0,Fs.Vx)(a)}},Ox=ne("cover"),T1=()=>{const t=(0,xe.dT)(),{alpha:e,ariaLabel:n,media:o,role:r}=qr("coverImage"),a=Ox("header-image"),i=(0,Pt.b9)({alpha:e,color:t,media:o});return(0,s.jsx)("div",{"aria-label":n,className:a,role:r,style:i})},Dx=ne("cover"),I1=({children:t})=>{const e=(0,xe.dT)(),n=`overlay-${e.toLowerCase()}`,o=Dx("header-content",{[n]:!!e});return(0,s.jsxs)("div",{className:o,"data-testid":"cover-header-content",children:[t,(0,s.jsx)(T1,{})]})},Bx=ne("cover"),jl=({hasOverlay:t=!1})=>{const{alpha:e,ariaLabel:n,media:o,role:r}=qr("coverImage"),a=(0,Pt.b9)({alpha:e,hasOverlay:t,media:o}),i=Bx("header-graphic",{"dot-com":$e.BI});return(0,s.jsx)("div",{"aria-label":n,className:i,"data-testid":"cover-header-graphic",role:r,style:a})},Hx=ne("cover");function Gs({children:t}){const e=!!(0,xe.Bd)(),n=Hx("header-content-info",{rbc:e,"rise-com":$e.BI});return(0,s.jsx)("div",{className:n,"data-testid":"cover-header-content-info",children:t})}var Fx=l(26372);function zx(t,e){const n=(0,Fs.sg)(t.src),o=t.width&&t.height&&!n,r=o?"async":void 0,a=o?"lazy":void 0,i=o?t.width:void 0,c=o?t.height:void 0;return(0,s.jsx)("img",{...t,decoding:r,height:c,loading:a,ref:e,width:i})}const N1=Fx.forwardRef(zx),Vx={ImageEagerOrLazy:N1},I2=Object.assign((0,h.createContext)(Vx),{displayName:"BundleContext"});function Ux({children:t,...e}){return(0,s.jsx)(I2.Provider,{value:e,children:t})}function $x(){return null}function qa(t){function e(n,o){const a=(0,h.useContext)(I2)[t]??$x;return(0,s.jsx)(a,{ref:o,...n})}return e.displayName=`BundleComponent(${t})`,(0,h.forwardRef)(e)}const As=qa("CoverProgress"),Wx=ne("cover"),Ks=jt("CoverTitle",()=>{const t=(0,xe.DX)(),e=(0,nt.QQ)(t.title),n=Wx("header-content-title"),o=Ya("title"),r=(0,ds.uW)(t.title)?{"data-l10n-id":t.title.l10nId}:{"data-change-path":o};return(0,s.jsx)("h1",{...r,className:n,"data-testid":"cover-header-content-title",tabIndex:-1,children:e})}),Gx={SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"LEFT_OVERLAY"};function N2(){const t=(0,xe.DX)(),e=Z8(),n=t?.theme?.coverPageType||"CENTERED";return e?Gx[n]??n:n}const Kx=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(I1,{children:(0,s.jsxs)(Gs,{children:[(0,s.jsx)(So,{}),(0,s.jsx)(Ks,{}),(0,s.jsx)(As,{}),(0,s.jsx)(Ws,{})]})})}),_x=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(wn,{children:(0,s.jsxs)(Gs,{children:[(0,s.jsx)(So,{}),(0,s.jsx)(Ks,{}),(0,s.jsx)(As,{}),(0,s.jsx)(Ws,{})]})})}),Qx=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(jl,{}),(0,s.jsx)(wn,{children:(0,s.jsxs)(Gs,{children:[(0,s.jsx)(So,{}),(0,s.jsx)(Ks,{}),(0,s.jsx)(As,{}),(0,s.jsx)(Ws,{})]})})]}),Zx=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(wn,{children:(0,s.jsxs)(Gs,{children:[(0,s.jsx)(So,{}),(0,s.jsx)(Ks,{}),(0,s.jsx)(As,{}),(0,s.jsx)(Ws,{})]})}),(0,s.jsx)(jl,{})]});function Yx(){switch(N2()){default:case M.BL.LEFT_OVERLAY:case M.BL.CENTERED_OVERLAY:return(0,s.jsx)(Kx,{});case M.BL.LEFT:case M.BL.CENTERED:return(0,s.jsx)(_x,{});case M.BL.SPLIT_LEFT_IMAGE:case M.BL.TWO_THIRDS_LEFT_IMAGE:return(0,s.jsx)(Zx,{});case M.BL.SPLIT_RIGHT_IMAGE:case M.BL.TWO_THIRDS_RIGHT_IMAGE:return(0,s.jsx)(Qx,{})}}function Xx(){return(0,s.jsx)("header",{className:"cover__header","data-testid":"cover-header",children:(0,s.jsx)(Yx,{})})}var Jx=l(30909),ei=l.n(Jx),qx=l(26372);const eb=ne("cover");function tb({children:t}){const e=(0,xe.DX)(),{themeId:n}=e?.theme??{},o=N2(),r=qx.useMemo(()=>ei()(o),[o]),a=eb({layout:r});return(0,s.jsx)("div",{className:a,"data-testid":`cover-layout-${r}`,"data-theme-id":n,id:"cover",children:t})}var I=l(20980),Ge=l.n(I),sb=l(72233),_s=l.n(sb),nb=l(50229),j1=l.n(nb);const fr=({id:t="portal",childType:e="other",attributes:n}={})=>{const o=document.querySelector('dialog[open][aria-modal="true"]');let r,a;if(o!=null&&e!=="dialog"?(t=`${t}-dialog`,r=o.querySelector(`#${t}`),a=o):(r=document.querySelector(`#${t}`),a=document.body),r==null&&(r=document.createElement("div"),r.setAttribute("id",t),a.appendChild(r)),n)for(const[i,c]of Object.entries(n))r.setAttribute(i,c);return r};var j2=l(26372);class ob extends j2.Component{static propTypes={id:Ge().any.isRequired,lessonProgress:Ge().object.isRequired,type:Ge().string.isRequired,items:Ge().array};refProgressWrap=j2.createRef(null);constructor(e){super(e),this.state={isSticky:!1},this.portal=fr()}componentDidMount(){this.timeoutScroll=setTimeout(()=>{document.getElementById("page-wrap")?.addEventListener("scroll",this.onScroll)},10)}componentWillUnmount(){clearTimeout(this.timeoutScroll),document.getElementById("page-wrap")?.removeEventListener("scroll",this.onScroll)}onScroll=()=>{const e=document.getElementsByClassName("page-wrap")[0],n=e.scrollTop,o=e.scrollTop,r=this.refProgressWrap.current;if(!r)return;const i=r.getBoundingClientRect().top+o,c=n>i;this.state.isSticky!==c&&this.setState({isSticky:c})};isLessonPreview(){return!!document.querySelector(".lesson--preview")}timelineProgressValue(){const{items:e,lessonProgress:n}=this.props,o=_s()(-1,"activeIndex",n),r=vs()(e);return o===-1?0:_n()(o)===r?100:j1()("%","",Qt()([o,"linePosition"],e))}processProgressValue(){const{items:e,lessonProgress:n}=this.props,o=_s()(0,"activeIndex",n),r=vs()(e);return o>r?100:Math.round(o/r*100)}progressValue(){const{lessonProgress:e,type:n}=this.props;switch(n){case"process":return this.processProgressValue();case"sorting":return _s()(0,"percentViewed",e);case"timeline":return this.timelineProgressValue();default:return _s()(0,"percentComplete",e)}}render(){const{type:e,items:n}=this.props,{isSticky:o}=this.state,r=Q()("progress-wrap",{}),a=Q()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":o}),i=Q()("progress",{"progress--timeline":e==="timeline","progress--video":e==="video"}),c=this.progressValue(),u=e==="timeline"&&n&&n.map(m=>{const p=Q()("progress__marker",{"progress__marker--active brand--background":parseInt(c)>=parseInt(m.linePosition.slice(0,-1))});return(0,s.jsx)("div",{className:p,style:{left:m.linePosition}},m.id)}),d=(0,s.jsx)("div",{className:r,children:(0,s.jsx)("div",{className:i,children:(0,s.jsxs)("div",{className:"progress__container",children:[(0,s.jsx)("div",{className:"progress__indicator brand--background",style:{transform:`translate3d(calc(${c}% * var(--dir-x)),0px,0px)`}}),u]})})});return(0,s.jsxs)("div",{ref:this.refProgressWrap,children:[d,(0,eo.createPortal)((0,s.jsx)("div",{className:a,children:d}),this.portal)]})}}const k1=ne("lesson-header"),To=jt("LessonHeaderAuthor",({avatar:t,authorName:e,className:n=""})=>{const o=(0,xe.vU)();return(0,s.jsxs)("div",{className:`lesson-header__author ${n}`,children:[(0,s.jsx)("img",{alt:"",className:"lesson-header__author-img",src:(0,$e.o1)(t)}),(0,s.jsx)("span",{className:"visually-hidden-always",children:o?.a11yAuthorPrefix}),(0,s.jsx)("span",{className:"lesson-header__author-name",children:e})]})}),kl=({showPartnerContent:t=!1})=>(0,s.jsx)("div",{className:k1("author",{"partner-content":t})}),Io=()=>(0,s.jsx)("div",{className:"lesson-header__counter"}),No=({lessonName:t,lessonPreposition:e,totalLessons:n,lessonNumber:o,showPartnerContent:r=!1})=>{const{lmsOptions:a}=(0,xe.DX)();return(0,s.jsx)("div",{className:k1("counter",{"partner-content":r}),children:(0,s.jsx)("div",{className:k1("count",{"exit-button-enabled":a?.enableExitCourse}),children:`${t} ${o} ${e} ${n}`})})},ea=({description:t})=>(0,s.jsx)(Tt,{className:"lesson-header__description",value:t}),rb=({children:t})=>(0,s.jsx)("div",{className:"lesson-header__grouped-row",children:t}),ab=({ariaLabel:t,imgRole:e,children:n,sectionStyles:o,topWrapClassName:r})=>(0,s.jsxs)("header",{className:"page__header",children:[(0,s.jsx)("div",{className:"page__header-limit",children:(0,s.jsx)("div",{className:"page__header-container",children:(0,s.jsx)("div",{className:"lesson-header__row",children:(0,s.jsx)("div",{className:"lesson-header__main",children:(0,s.jsx)("div",{className:"lesson-header",children:(0,s.jsx)("div",{className:r,children:n})})})})})}),(0,s.jsx)("div",{"aria-label":t,className:"page__header-bg",role:e,style:o})]}),jo=({title:t,id:e})=>{const n=u2(e,"title");return(0,s.jsx)("h1",{className:"lesson-header__title","data-change-path":n,tabIndex:-1,children:(0,s.jsx)(Tt,{value:t})})},ib=t=>{const{authorName:e,avatar:n,color:o,description:r,labels:a,lessonHeaderStyle:i,lessonId:c,lessonNumber:u,partnerContentAuthors:d,showAuthor:m,showLessonCount:p,title:f,totalLessons:g}=t,{lessonName:v,lessonPreposition:C}=a,x=E=>`url(${(0,Ft.ny)({width:"76",height:"76",imageKey:E.image})})`,L=i===M.xj.TINT?{color:o}:null,y=n&&e&&m&&!d;return(0,s.jsxs)("div",{className:"lesson-header",children:[(0,s.jsxs)("div",{className:"lesson-header__top-wrap",style:L,children:[(0,s.jsx)(jo,{id:c,title:f}),d&&(0,s.jsx)("div",{className:"lesson-header__partner-content",children:d.map(E=>(0,s.jsxs)("div",{className:"lesson-header__partner-content-author",children:[(0,s.jsx)("div",{className:"lesson-header__partner-content-author-img",style:{backgroundImage:x(E)}}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:a?.a11yAuthorPrefix}),(0,s.jsx)("span",{children:E.name})]})]},E.name))}),(0,s.jsxs)("div",{className:"lesson-header__author-count-wrap",children:[y?(0,s.jsx)(To,{authorName:e,avatar:n}):(0,s.jsx)(kl,{}),p?(0,s.jsx)(No,{lessonName:v,lessonNumber:u,lessonPreposition:C,totalLessons:g}):(0,s.jsx)(Io,{})]})]}),r&&(0,s.jsx)(ea,{description:r})]})};class Kq extends h.Component{static propTypes={authorName:Ge().string,avatar:Ge().string,description:Ge().string,showLessonCount:Ge().bool,steps:Ge().number,title:Ge().string.isRequired,type:Ge().string.isRequired};render(){const{children:e}=this.props;return(0,s.jsx)("section",{className:"page__header",children:(0,s.jsxs)("div",{className:"page__header-limit",children:[(0,s.jsx)("div",{className:"page__header-container",children:(0,s.jsx)("div",{className:"lesson-header__row",children:(0,s.jsx)("div",{className:"lesson-header__main",children:(0,s.jsx)(ib,{...this.props})})})}),h.Children.map(e,n=>n&&n.type!==ob?null:n)]})})}}const vr=ne("lesson-header"),k2=t=>`url(${(0,Ft.ny)({width:"76",height:"76",imageKey:t?.image})})`,A1=({partnerContentAuthors:t})=>{const e=t.map(o=>o.name).join(", "),n=t.length===1;return(0,s.jsxs)("div",{className:vr("partner-content",{mobile:!0}),children:[(0,s.jsx)("div",{className:vr("partner-content-author",{single:n}),children:t.map(o=>(0,s.jsx)("div",{className:vr("partner-content-author-img",{single:n}),style:{backgroundImage:k2(o)}},o.name))}),(0,s.jsx)("span",{"aria-hidden":"true",className:vr("author-name"),children:e})]})},ti=({partnerContentAuthors:t})=>{const e=(0,xe.vU)();return(0,s.jsx)("div",{className:vr("partner-content"),children:t.map(n=>(0,s.jsxs)("div",{className:vr("partner-content-author"),children:[(0,s.jsx)("div",{className:vr("partner-content-author-img"),style:{backgroundImage:k2(n)}}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("span",{className:"visually-hidden",children:[e?.a11yAuthorPrefix," ",n.name]}),(0,s.jsx)("span",{"aria-hidden":"true",className:vr("author-name"),tag:"span",children:n.name})]})]},n.name))})};var A2=l(26372);const si=ne("lesson-header"),lb=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:c,showLessonCount:u,title:d,totalLessons:m,lessonId:p})=>{const f=i!=null&&c,g=e&&t&&c&&!f,v=g||f||u,C=u&&(g||f);return(0,s.jsxs)("div",{className:si("content"),children:[v&&(0,s.jsxs)("div",{className:si("info-row"),children:[g?(0,s.jsx)(To,{authorName:t,avatar:e}):(0,s.jsx)(kl,{}),f&&(0,s.jsx)(ti,{partnerContentAuthors:i}),C&&(0,s.jsx)("span",{"aria-hidden":"true",className:si("info-row--divider"),children:"|"}),u?(0,s.jsx)(No,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(Io,{})]}),(0,s.jsxs)("div",{className:si("title-wrapper",{"no-info":!v}),children:[(0,s.jsx)(jo,{id:p,title:d}),n&&(0,s.jsx)(ea,{description:n})]})]})},cb=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:c,showLessonCount:u,title:d,totalLessons:m,lessonId:p})=>{const f=i!=null,g=A2.useMemo(()=>e&&t&&c&&!f,[e,t,c,f]);return(0,s.jsxs)("div",{className:si("content"),children:[u?(0,s.jsx)(No,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(Io,{}),g&&(0,s.jsx)(To,{authorName:t,avatar:e}),c&&f&&(0,s.jsx)(A1,{partnerContentAuthors:i}),(0,s.jsx)(jo,{id:p,title:d}),n&&(0,s.jsx)(ea,{description:n})]})},db=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:c,showLessonCount:u,title:d,totalLessons:m,lessonId:p})=>{const f=i!=null,g=A2.useMemo(()=>e&&t&&c&&!f,[e,t,c,f]);return(0,s.jsxs)("div",{className:si("content"),children:[u?(0,s.jsx)(No,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(Io,{}),(0,s.jsx)(jo,{id:p,title:d}),g?(0,s.jsx)(To,{authorName:t,avatar:e}):(0,s.jsx)(kl,{showPartnerContent:f}),c&&f&&(0,s.jsx)(ti,{partnerContentAuthors:i}),n&&(0,s.jsx)(ea,{description:n})]})};function ub(t){const e=C1();return t.lessonHeaderSize===M.OX.SMALL&&!e?(0,s.jsx)(lb,{...t}):e?(0,s.jsx)(cb,{...t}):(0,s.jsx)(db,{...t})}const ni=t=>t===M.AY.FLOATING||t===M.AY.FLOATING_FULL;function ta(){const t=(0,ks.LY)(({course:{buttonNavigationStyle:n}})=>n);return Ss(480)&&t===M.AY.FLOATING?M.AY.FLOATING_FULL:t}function R1({className:t,ref:e}){return(0,s.jsxs)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",height:"15",ref:e,role:"img",viewBox:"0 0 16 15",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M2.34315 7.34315L8 13L13.6569 7.34315",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),(0,s.jsx)("rect",{fill:"currentColor",height:"12",rx:"0.999999",width:"2",x:"7",y:"1"})]})}function R2({className:t,ref:e}){return(0,s.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",ref:e,viewBox:"0 0 15 16",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M2 8L7.65685 13.6569L13.3137 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}const oi=qa("LessonNav"),P2=ne("lesson-nav");function hb({allowTooltip:t,courseFinishLabel:e,onFocus:n,nextLesson:o,restrictionData:r,restrictionType:a,ref:i}){const c=o?.id,u=ta(),d=ni(u),m=d?R1:R2;return(0,s.jsxs)(oi,{allowTooltip:t,direction:"next",finish:!0,isFloating:d,navLessonId:c,onFocus:n,ref:i,restrictionData:r,restrictionType:a,children:[(0,s.jsx)("span",{className:P2("link-text").mix("brand--ui"),children:e}),(0,s.jsx)(m,{className:P2("link-icon")})]})}const w2=ne("lesson-nav");function mb({allowTooltip:t,lessonNameLabel:e,nextLesson:n,nextLessonNumber:o,onFocus:r,ref:a,restrictionData:i,restrictionType:c}){const u=n?.id,d=ta(),m=ni(d),f=(0,Pt.GG)(n)&&u,g=(0,nt.QQ)(n?.title)||"",v=m?R1:R2,C=f?`${e} ${o} - `:"",x=m&&f?`${e} ${o}`:`${C}${g}`;return(0,s.jsxs)(oi,{allowTooltip:t,direction:"next",isFloating:m,navLessonId:u,onFocus:r,ref:a,restrictionData:i,restrictionType:c,children:[(0,s.jsx)("span",{className:w2("link-text").mix("brand--ui"),children:x}),(0,s.jsx)(v,{className:w2("link-icon")})]})}function M2({className:t,ref:e}){return(0,s.jsxs)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",height:"15",ref:e,role:"img",viewBox:"0 0 16 15",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M13.6569 7.65685L8 2L2.34315 7.65686",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),(0,s.jsx)("rect",{fill:"currentColor",height:"12",rx:"0.999999",transform:"rotate(180 9 14)",width:"2",x:"9",y:"14"})]})}function pb({className:t,ref:e}){return(0,s.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",ref:e,viewBox:"0 0 15 16",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M2 8L7.65685 2.34315L13.3137 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}const xd=ne("lesson-nav");function fb({allowTooltip:t,className:e,courseHomeLabel:n,lessonNameLabel:o,onFocus:r,previousLesson:a,previousLessonNumber:i,ref:c}){const u=a?.id,d=ta(),m=ni(d),f=(0,Pt.GG)(a)&&u,g=(0,nt.QQ)(a?.title)||n,v=m?M2:pb,C=f?`${o} ${i} - ${g}`:g,x=f&&m?`${o} ${i}`:C;return(0,s.jsx)(oi,{allowTooltip:t,className:e,direction:"previous",isFloating:m,navLessonId:u,onFocus:r,ref:c,children:m?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:xd("link-text").mix("brand--ui"),children:x}),(0,s.jsx)(v,{className:xd("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v,{className:xd("link-icon")}),(0,s.jsx)("span",{className:xd("link-text").mix("brand--ui"),children:x})]})})}var es=l(15354),vb=l(23644);function gb({className:t,cx:e,cy:n,diameter:o,onTransitionEnd:r,r:a,strokeLinecap:i,strokeWidth:c,value:u=0}){const d=(0,h.useRef)(null),m=`mask-${(0,vb.A)()}`,p=(100-u)/100*(2*a);return(0,es.A)("transitionend",r,d.current),(0,s.jsxs)("svg",{height:o,viewBox:`0 0 ${o} ${o}`,width:o,children:[(0,s.jsx)("defs",{children:(0,s.jsx)("mask",{id:m,children:(0,s.jsx)("rect",{fill:"white",height:2.3*a,width:2.3*a,x:"0",y:u===0?100:p})})}),(0,s.jsx)("circle",{className:t,cx:e,cy:n,fill:"none",mask:`url(#${m})`,r:a,ref:d,strokeLinecap:i,strokeWidth:c})]})}const P1=gb;function Cb({className:t,cx:e,cy:n,diameter:o,onTransitionEnd:r,r:a,strokeLinecap:i,strokeWidth:c,transform:u,value:d=0}){const m=(0,h.useRef)(null),p=Math.PI*(Number(o)-Number(c)),f=p*(100-d)/100;return(0,es.A)("transitionend",r,m.current),(0,s.jsx)("circle",{className:t,cx:e,cy:n,fill:"transparent",r:a,ref:m,strokeDasharray:p,strokeDashoffset:f,strokeLinecap:i,strokeWidth:c,transform:u})}const O2=Cb;var lt=l(21748),w1=l(26372);const{COMPACT:xb,COVER:bb,OVERLAY:yb,SIDEBAR:Lb}=lt.by,Al=ne("progress-circle");function Eb({"aria-hidden":t,"aria-label":e,isCurrent:n,isFailed:o,isPassed:r,scope:a,value:i}){const[c,u]=w1.useState(i===100),d=(0,tt.A)(i),{theme:m}=(0,xe.DX)(),p=m?.progressIndicatorStyle??M.Y2.THEME_DEFAULT,f=a===bb,g=a===yb,v=p===M.Y2.THEME_DEFAULT,C=p===M.Y2.CIRCULAR_FILL,x=p===M.Y2.INCOMPLETE_COMPLETE,L=Al({compact:a===xb,cover:f,current:n,sidebar:a===Lb,overlay:g}),y=Al("track",{"circular-fill":!g&&C,"incomplete-complete":f&&x}),E=Al("runner",{"circular-fill":C,done:c,failed:o,passed:r,unstarted:i===0}),b=Al("pass",{done:c,visible:r}),S=Al("fail",{done:c,visible:o}),T=w1.useMemo(()=>C||i===100?i:0,[C,i]);return w1.useEffect(()=>{if(i!==100&&d===100)u(!1);else if(i===100&&!c&&!x){const N=setTimeout(()=>u(!0),300);return clearTimeout.bind(null,N)}else i===100&&!c&&x&&u(!0)},[c,x,d,i]),(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:L,fill:"none",focusable:"false",role:"img",viewBox:"0 0 16 16",xmlns:"https://www.w3.org/2000/svg",children:[(0,s.jsx)("circle",{className:y,cx:"8",cy:"8",fill:"transparent",r:"7",strokeWidth:"2",transform:"rotate(-89.9 8 8)"}),v?(0,s.jsx)(O2,{className:E,cx:8,cy:8,diameter:16,r:7,strokeWidth:2,transform:"rotate(-89.9 8 8)",value:i}):(0,s.jsx)(P1,{className:E,cx:8,cy:8,diameter:16,r:7,strokeLinecap:"round",strokeWidth:2,value:T}),(0,s.jsx)("path",{className:b,d:"M11.3227 6.65905C11.6133 6.37599 11.6347 5.89413 11.3705 5.58277C11.1063 5.27141 10.6566 5.24847 10.366 5.53152L6.93323 8.87512L5.6338 7.60944C5.3432 7.32639 4.89345 7.34933 4.62927 7.66069C4.36509 7.97205 4.38651 8.45391 4.67711 8.73697L6.45488 10.4686C6.72611 10.7328 7.14034 10.7328 7.41157 10.4686L11.3227 6.65905Z"}),(0,s.jsx)("path",{className:S,clipRule:"evenodd",d:"M9.46967 10.5303C9.76256 10.8232 10.2374 10.8232 10.5303 10.5303C10.8232 10.2374 10.8232 9.76256 10.5303 9.46967L9.06066 8L10.5303 6.53033C10.8232 6.23744 10.8232 5.76256 10.5303 5.46967C10.2374 5.17678 9.76256 5.17678 9.46967 5.46967L8 6.93934L6.53033 5.46967C6.23744 5.17678 5.76256 5.17678 5.46967 5.46967C5.17678 5.76256 5.17678 6.23744 5.46967 6.53033L6.93934 8L5.46967 9.46967C5.17678 9.76256 5.17678 10.2374 5.46967 10.5303C5.76256 10.8232 6.23744 10.8232 6.53033 10.5303L8 9.06066L9.46967 10.5303Z",fillRule:"evenodd"})]})}const M1=(0,h.createContext)(null);M1.displayName="CourseNavContext";function Sb(t){const{children:e,isCourseNavOpen:n}=t;return(0,s.jsx)(M1.Provider,{value:{isCourseNavOpen:n},children:e})}function Tb(){return(0,h.useContext)(M1)}const D2=960;function Rl(){return Ss(D2)}function Ib(){const t=(0,xe.DX)(),e=Rl(),n=(0,xe.SQ)();return(0,Pt.L3)({course:t,isMobile:e,search:n})}function Nb(){const t=(0,xe.DX)(),e=Rl();return(0,Pt.IO)({course:t,isMobile:e})}var B2=l(26372);class jb extends B2.Component{refProgressWrap=B2.createRef();timeoutScroll;portal;constructor(e){super(e),this.state={isSticky:!1},this.portal=fr()}componentDidMount(){this.timeoutScroll=setTimeout(()=>{document.getElementById("page-wrap")?.addEventListener("scroll",this.onScroll)},10)}componentWillUnmount(){clearTimeout(this.timeoutScroll),document.getElementById("page-wrap")?.removeEventListener("scroll",this.onScroll)}onScroll=()=>{const e=document.getElementsByClassName("page-wrap")[0],n=e.scrollTop,o=e.scrollTop,r=this.refProgressWrap.current;if(!r)return;const i=r.getBoundingClientRect().top+o,c=n>i&&n>0;this.state.isSticky!==c&&this.setState({isSticky:c})};isLessonPreview(){return!!document.querySelector(".lesson--preview")}timelineProgressValue(){const{items:e,lessonProgress:n}=this.props,o=n.activeIndex??-1,r=e?.length??0;return o===-1?0:o+1===r?100:e?.[o]?.linePosition?.replace("%","")??"0"}processProgressValue(){const{items:e,lessonProgress:n}=this.props,o=n.activeIndex??0,r=e?.length??0;return o>r?100:Math.round(o/r*100)}progressValue(){const{lessonProgress:e,type:n}=this.props;switch(n){case"process":return this.processProgressValue();case"sorting":return e.percentViewed??0;case"timeline":return this.timelineProgressValue();default:return e.percentComplete??0}}render(){const{type:e,items:n,sidebarAvailable:o,isCourseNavOpen:r,isMobile:a}=this.props,{isSticky:i}=this.state,c=Q()("progress-wrap",{}),u=r,d=r&&a,m=Q()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":i&&!d,"lesson--open":u&&o&&!this.isLessonPreview(),"lesson--open-mobile":o&&d&&!this.isLessonPreview()}),p=Q()("progress",{"progress--timeline":e==="timeline","progress--video":e==="video"}),f=this.progressValue(),g=e==="timeline"&&n&&n.map(C=>{const x=Q()("progress__marker",{"progress__marker--active brand--background":parseInt(String(f))>=parseInt(C.linePosition.slice(0,-1))});return(0,s.jsx)("div",{className:x,style:{left:C.linePosition}},C.id)}),v=(0,s.jsx)("div",{className:c,children:(0,s.jsx)("div",{className:p,children:(0,s.jsxs)("div",{className:"progress__container",children:[(0,s.jsx)("div",{className:"progress__indicator brand--background",style:{transform:`translate3d(calc(${f}% * var(--dir-x)),0px,0px)`}}),g]})})});return(0,s.jsxs)("div",{ref:this.refProgressWrap,children:[v,(0,eo.createPortal)((0,s.jsx)("div",{"aria-hidden":"true",className:m,children:v}),this.portal)]})}}const kb=t=>{const e=Ib(),{isCourseNavOpen:n}=Tb()??{},o=Ss(480);return(0,s.jsx)(jb,{...t,isCourseNavOpen:n,isMobile:o,sidebarAvailable:e})},Ab=_a,Rb=_a,Pb=_a,wb=_a,Mb=_a,Ob=_a;function Ls({children:t,className:e,height:n,width:o,viewBox:r}){return(0,s.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",height:n,viewBox:r,width:o,xmlns:"http://www.w3.org/2000/svg",children:t})}function Db(t){return(0,s.jsxs)(Ls,{viewBox:"0 0 24 24",...t,children:[(0,s.jsx)("path",{d:"M1 10.9609L10 19.9609",stroke:"currentColor",strokeWidth:"1.5"}),(0,s.jsx)("path",{d:"M1 11.9609L10 2.96094",stroke:"currentColor",strokeWidth:"1.5"}),(0,s.jsx)("path",{d:"M2 11.5H23",stroke:"currentColor",strokeWidth:"1.5"})]})}function Bb({className:t}){return(0,s.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",height:"8",role:"img",viewBox:"0 0 16 8",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M1 5h11.6l-1.3 1.3c-.4.4-.4 1 0 1.4.2.2.4.3.7.3.3 0 .5-.1.7-.3l3-3c.4-.4.4-1 0-1.4l-3-3c-.4-.4-1-.4-1.4 0-.4.4-.4 1 0 1.4L12.6 3H1c-.6 0-1 .4-1 1s.4 1 1 1",fill:"currentColor",fillRule:"evenodd"})})}function Hb(t){return(0,s.jsx)(Ls,{height:"12",viewBox:"0 0 18 12",width:"18",...t,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M0.666992 1.00002C0.666992 0.539783 1.04009 0.166687 1.50033 0.166687H14.0003C14.4606 0.166687 14.8337 0.539783 14.8337 1.00002C14.8337 1.46026 14.4606 1.83335 14.0003 1.83335H1.50033C1.04009 1.83335 0.666992 1.46026 0.666992 1.00002ZM0.666992 6.00002C0.666992 5.53978 1.04009 5.16669 1.50033 5.16669H16.5003C16.9606 5.16669 17.3337 5.53978 17.3337 6.00002C17.3337 6.46026 16.9606 6.83335 16.5003 6.83335H1.50033C1.04009 6.83335 0.666992 6.46026 0.666992 6.00002ZM0.666992 11C0.666992 10.5398 1.04009 10.1667 1.50033 10.1667H10.667C11.1272 10.1667 11.5003 10.5398 11.5003 11C11.5003 11.4603 11.1272 11.8334 10.667 11.8334H1.50033C1.04009 11.8334 0.666992 11.4603 0.666992 11Z",fill:"currentColor",fillRule:"evenodd"})})}function Fb(t){return(0,s.jsx)(Ls,{height:"6",viewBox:"0 0 10 6",width:"10",...t,children:(0,s.jsx)("path",{d:"M9 1L5 5L1 1",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}function zb(t){return(0,s.jsx)(Ls,{height:"6",viewBox:"0 0 10 6",width:"10",...t,children:(0,s.jsx)("path",{d:"M1 5L5 1L9 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}function Vb(t){return(0,s.jsxs)(Ls,{height:"21",viewBox:"0 0 20 21",width:"20",...t,children:[(0,s.jsx)("path",{d:"M9.94535 6.125C9.1938 6.125 8.52385 6.6729 8.30039 7.48015C8.17194 7.9442 7.70954 8.21104 7.26759 8.07617C6.82564 7.94129 6.5715 7.45577 6.69996 6.99172C7.11282 5.50025 8.3916 4.375 9.94535 4.375C11.8499 4.375 13.3335 6.05606 13.3335 8.05C13.3335 9.7417 12.2656 11.2082 10.7787 11.6139V12.25C10.7787 12.7332 10.4056 13.125 9.94535 13.125C9.48511 13.125 9.11201 12.7332 9.11201 12.25V10.85C9.11201 10.3668 9.48511 9.975 9.94535 9.975C10.8628 9.975 11.6668 9.14886 11.6668 8.05C11.6668 6.95114 10.8628 6.125 9.94535 6.125Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M10.0002 14C9.53992 14 9.16683 14.3918 9.16683 14.875C9.16683 15.3582 9.53992 15.75 10.0002 15.75H10.0085C10.4687 15.75 10.8418 15.3582 10.8418 14.875C10.8418 14.3918 10.4687 14 10.0085 14H10.0002Z",fill:"currentColor"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M0.833496 3.55556C0.833496 2.01519 2.09493 0.875 3.51868 0.875H16.4816C17.9054 0.875 19.1668 2.01519 19.1668 3.55556V17.4444C19.1668 18.9848 17.9054 20.125 16.4816 20.125H3.51868C2.09493 20.125 0.833496 18.9848 0.833496 17.4444V3.55556ZM3.51868 2.625C2.89693 2.625 2.50016 3.10156 2.50016 3.55556V17.4444C2.50016 17.8984 2.89693 18.375 3.51868 18.375H16.4816C17.1034 18.375 17.5002 17.8984 17.5002 17.4444V3.55556C17.5002 3.10156 17.1034 2.625 16.4816 2.625H3.51868Z",fill:"currentColor",fillRule:"evenodd"})]})}var to=l(66790);function H2(t){const e=(0,to.QD)(t,["Default"]);return(0,s.jsx)(Hs,{...e,fill:"none",viewBox:"1 1 18 18",children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M9.99998 0.833336C4.93737 0.833336 0.833313 4.93739 0.833313 10C0.833313 15.0626 4.93737 19.1667 9.99998 19.1667C15.0626 19.1667 19.1666 15.0626 19.1666 10C19.1666 4.93739 15.0626 0.833336 9.99998 0.833336ZM13.0892 6.91075C13.4147 7.23618 13.4147 7.76382 13.0892 8.08926L11.1785 10L13.0892 11.9107C13.4147 12.2362 13.4147 12.7638 13.0892 13.0893C12.7638 13.4147 12.2362 13.4147 11.9107 13.0893L9.99998 11.1785L8.08923 13.0893C7.7638 13.4147 7.23616 13.4147 6.91072 13.0893C6.58529 12.7638 6.58529 12.2362 6.91072 11.9107L8.82147 10L6.91072 8.08926C6.58529 7.76382 6.58529 7.23618 6.91072 6.91075C7.23616 6.58531 7.7638 6.58531 8.08923 6.91075L9.99998 8.82149L11.9107 6.91075C12.2362 6.58531 12.7638 6.58531 13.0892 6.91075Z",fill:"black",fillRule:"evenodd"})})}function bd(t){const e=(0,to.QD)(t,["Default"]);return(0,s.jsxs)(Hs,{...e,fill:"none",viewBox:"0 0 18 18",children:[(0,s.jsx)("circle",{cx:"9",cy:"9",fill:"#74BF44",r:"9"}),(0,s.jsx)("path",{d:"M6.43994 9.12061L8.43994 11.1206L11.9399 7.62061",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})]})}function Ub(t){return(0,s.jsx)(Ls,{height:"12",viewBox:"0 0 12 12",width:"12",...t,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M5.325 9.01843C3.225 9.01843 1.5 7.37868 1.5 5.29172C1.5 3.20476 3.225 1.49048 5.325 1.49048C7.425 1.49048 9.15 3.20476 9.15 5.29172C9.15 7.37868 7.425 9.01843 5.325 9.01843ZM9.525 8.42236C10.2 7.52795 10.575 6.48447 10.575 5.29193C10.575 2.38509 8.25 0 5.325 0C2.4 0 0 2.38509 0 5.29193C0 8.19876 2.4 10.5839 5.325 10.5839C6.525 10.5839 7.65 10.2112 8.475 9.54037L10.725 11.7764C10.875 11.9255 11.1 12 11.25 12C11.4 12 11.625 11.9255 11.775 11.7764C12.075 11.4783 12.075 11.0311 11.775 10.7329L9.525 8.42236Z",fill:"currentColor",fillRule:"evenodd"})})}function $b(t){return(0,s.jsx)(Ls,{height:"5",viewBox:"0 0 10 5",width:"10",...t,children:(0,s.jsx)("path",{d:"M5.56569 4.75592L8.76601 1.42259C9.27003 0.897618 8.91306 0 8.20027 0L1.79963 0C1.08683 0 0.729863 0.897618 1.23389 1.42259L4.43421 4.75592C4.74666 5.08136 5.25324 5.08136 5.56569 4.75592Z",fill:"currentColor"})})}function Wb(t){return(0,s.jsxs)(Ls,{height:"18",viewBox:"0 0 18 18",width:"18",...t,children:[(0,s.jsx)("path",{d:"M3.1665 6.08335C3.1665 4.01229 4.84544 2.33335 6.9165 2.33335C8.98757 2.33335 10.6665 4.01229 10.6665 6.08335C10.6665 6.37941 10.6324 6.66643 10.5681 6.9411C10.4634 7.38925 10.7417 7.83748 11.1899 7.94225C11.6381 8.04702 12.0863 7.76865 12.1911 7.3205C12.2841 6.92235 12.3332 6.50805 12.3332 6.08335C12.3332 3.09181 9.90805 0.666687 6.9165 0.666687C3.92496 0.666687 1.49984 3.09181 1.49984 6.08335C1.49984 6.46923 1.54032 6.84657 1.61756 7.21105C1.679 7.50095 1.76362 7.78236 1.86938 8.05316C1.97511 8.32389 2.10191 8.5839 2.24772 8.83119C2.48148 9.22764 2.99237 9.35953 3.38882 9.12577C3.78527 8.89201 3.91716 8.38112 3.6834 7.98467C3.58248 7.81352 3.49485 7.63379 3.42186 7.44688C3.34886 7.25994 3.29045 7.0657 3.24802 6.86551C3.1947 6.61395 3.1665 6.3524 3.1665 6.08335Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M9.18922 9.34412L14.8186 10.2697C16.2762 10.5117 17.3332 11.6819 17.3332 13.0521V16.6037C17.3332 17.0029 16.9837 17.3264 16.553 17.3264C16.122 17.3264 15.7728 17.0029 15.7728 16.6037V13.0521C15.7728 12.3826 15.2561 11.8108 14.5446 11.6926L8.30452 10.6667H8.30233C7.90851 10.6331 7.57585 10.2773 7.57585 9.8899V6.0524C7.57585 5.88733 7.48441 5.73325 7.33119 5.64046C7.17921 5.54853 6.99291 5.53668 6.82002 5.60606C6.63747 5.68035 6.51483 5.87085 6.51483 6.08044V15.3607C6.51483 15.6856 6.30169 15.9391 5.91441 16.0741C5.40325 16.2528 4.90988 16.0261 4.70516 15.7226L3.01346 13.2999C2.93513 13.1565 2.84963 13.09 2.68954 13.0406C2.59935 13.0249 2.47889 13.0408 2.37154 13.0906C2.2798 13.1394 2.22768 13.4826 2.38902 13.9902C2.41984 14.0542 3.0442 15.4844 3.27756 16.0189C3.32536 16.1284 3.35676 16.2003 3.36328 16.2152C3.47656 16.4494 3.49404 16.6994 3.40853 16.8957C3.33551 17.0631 3.1904 17.1911 2.98912 17.2663C2.893 17.3018 2.77099 17.3334 2.63742 17.3334C2.36124 17.3334 2.03826 17.1986 1.80702 16.6867L1.75272 16.5849C1.3289 15.6773 1.03464 14.952 0.90735 14.6382L0.905151 14.6328L0.896561 14.6115C0.87092 14.548 0.854463 14.5072 0.847419 14.4926C0.45609 13.3756 0.711983 12.3355 1.49527 11.8308C1.97428 11.5452 2.55316 11.4538 3.08867 11.5781C3.63572 11.7047 4.10288 12.0476 4.40371 12.5436L4.82936 13.2293V5.99429C4.82936 5.3563 5.1692 4.74981 5.7381 4.37228C6.30855 3.99359 7.0238 3.89848 7.69942 4.11153C8.55823 4.3824 9.13554 5.15654 9.13617 6.03881L9.18922 9.34412Z",fill:"currentColor"})]})}function Gb(t){return(0,s.jsxs)(Ls,{height:"14",viewBox:"0 0 20 14",width:"20",...t,children:[(0,s.jsx)("path",{clipRule:"evenodd",d:"M19.548 2.09234C19.8255 2.23518 20 2.52116 20 2.83331V11.1666C20 11.4788 19.8255 11.7648 19.548 11.9076C19.2704 12.0505 18.9363 12.0262 18.6823 11.8448L12.849 7.67809C12.63 7.52166 12.5 7.2691 12.5 6.99998C12.5 6.73085 12.63 6.47829 12.849 6.32187L18.6823 2.1552C18.9363 1.97376 19.2704 1.9495 19.548 2.09234ZM14.7671 6.99998L18.3333 9.54732V4.45264L14.7671 6.99998Z",fill:"currentColor",fillRule:"evenodd"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M2.5 1.99998C2.03976 1.99998 1.66667 2.37308 1.66667 2.83331V11.1666C1.66667 11.6269 2.03976 12 2.5 12H11.6667C12.1269 12 12.5 11.6269 12.5 11.1666V2.83331C12.5 2.37308 12.1269 1.99998 11.6667 1.99998H2.5ZM0 2.83331C0 1.4526 1.11929 0.333313 2.5 0.333313H11.6667C13.0474 0.333313 14.1667 1.4526 14.1667 2.83331V11.1666C14.1667 12.5474 13.0474 13.6666 11.6667 13.6666H2.5C1.11929 13.6666 0 12.5474 0 11.1666V2.83331Z",fill:"currentColor",fillRule:"evenodd"})]})}function Kb(t){return(0,s.jsx)(Ls,{height:"10",viewBox:"0 0 10 10",width:"10",...t,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M9.78572 9.78572C9.5 10.0714 9.07143 10.0714 8.78571 9.78572L5 6.00001L1.21429 9.78572C0.928571 10.0714 0.500001 10.0714 0.214285 9.78572C-0.0714284 9.49999 -0.0714284 9.07144 0.214285 8.78571L4 5L0.214285 1.21429C-0.0714284 0.928564 -0.0714284 0.500007 0.214285 0.214279C0.357143 0.0714143 0.500001 0 0.714286 0C0.928571 0 1.07143 0.0714143 1.21429 0.214279L5 3.99999L8.78571 0.214279C8.92857 0.0714143 9.14286 0 9.28572 0C9.42857 0 9.64286 0.0714143 9.78572 0.214279C10.0714 0.500007 10.0714 0.928564 9.78572 1.21429L6 5L9.78572 8.78571C10.0714 9.07144 10.0714 9.49999 9.78572 9.78572Z",fill:"currentColor",fillRule:"evenodd"})})}const _b=ne("cover"),yd=jt("CoverDetailsSection",({children:t,type:e})=>(0,s.jsx)("section",{className:_b("details-content-section",{type:e}),children:t}));var Qb=l(29727),Mn=l.n(Qb),Zb=l(45561),Yo=l.n(Zb),Yb=l(16557),ri=l.n(Yb),Xb=l(20865),Jb=l.n(Xb),qb=l(7546),ey=l.n(qb),ty=l(63528),F2=l.n(ty),sy=l(96020),ny=l.n(sy),oy=l(87654),z2=l.n(oy),ry=l(72521),Pl=l.n(ry),ay=l(58267),ai=l.n(ay),iy=l(98801),V2=l.n(iy),ly=l(5737),O1=l.n(ly),cy=l(63159),D1=l.n(cy),dy=l(20377),ii=l.n(dy),wl=l(20546),Qs=l(45681),uy=l(5378);const hy=z2()(pr()),U2=t=>e=>`${t}/${e.id}`,my=(t,e)=>vd()({data:(0,wl.action)(e),method:"POST",url:(0,Qs.rq)(hy(`/${e}`),gt()("url"),t),...Qn()(["headers","withCredentials"],t)}),py=t=>(e,n)=>Jb()(e,U2(n),B1(t,n)),fy=t=>hs()(Lt()({},["response","data"]),D1()(gt()("type"),(0,wl.error)(t))),vy=(t,e)=>n=>t.postRequest?t.postRequest(e,n):n,$2=t=>e=>n=>o=>(0,Qs.Ve)(o,my(e,n),t,F2()(fy(n),ii()(Pl()("data"),gt()("data"))),ny()(ai()(gt()("error"),ri().Rejected,ri().of)),vy(e,{type:n,payload:o})),gy=({url:t,method:e,data:n,headers:o})=>{if(rn.isFirefox){const r=new Blob([JSON.stringify(n)],{type:"application/json"}),a=window.navigator.sendBeacon(t,r);return Promise.resolve({type:n.type,payload:{...n.payload,queued:a}})}return fetch(t,{method:e,credentials:"include",headers:{"Content-Type":"application/json",...o},body:JSON.stringify(n),keepalive:!0}).then(r=>r.json()).then(V2()("data"))},Cy=ri().fromPromise(gy),B1=O1()(3,$2(uy.Em)),xy=O1()(3,$2(Cy)),by=t=>(e,n)=>ey()(e,U2(n),B1(t,n)),yy=t=>({debounce:py(t),send:B1(t),fetchWithKeepAlive:xy(t),throttle:by(t)}),Ly=`${(0,$e._$)("RISE_RUNTIME_URI")}/ducks`,Ey=yy({headers:()=>({"x-rise-authoring-client":"9cb7faa25dd3075cd9dde2b2e1f1870dcb6d6912"}),postRequest:(t,e)=>e,url:Ly,withCredentials:!0});var Sy=l(50601),Ty=l.n(Sy);const Iy=Ty()({context:{app:{name:"rise-frontend"}},payload:{articulate_user:(0,Oe.Xl)(),userRole:(0,Oe.O0)(),subId:(0,Oe.EO)(),subPlan:(0,Oe.QJ)(),subStatus:(0,Oe.l6)()}});var Ny=l(43419),Ml=l(22795);const jy=pr()("rise/track/")("TRACK"),ky=t=>({...t,context:{locale:navigator.language,device:(0,Ml.Pf)(),channel:(0,Ml.c)(),userAgentData:(0,Ml.NO)(),page:(0,Ml.WE)(),userAgent:(0,Ml.$t)(),...t.context}}),Ay=(t,e)=>({...t,properties:{...(0,Ny.yV)(e),...t.properties}}),W2=t=>(e,n)=>{const o=n(),r=(0,Oe.kn)();let a=ky(t);return a=Ay(a,o),a.userId=a.userId??r,a.author=a.author??r,$e.BI&&(a=Iy(a)),e(Ey.send(jy)(a))},Zs=pr()("partner-content-book-info__"),Ry=t=>{const{authors:e,backgroundColor:n,bookImage:o,bookTitle:r,buyLink:a,block:i,publishedAt:c,track:u,trackingInfo:d}=t,m=e.filter(N=>!rs()(N.name)),p=Mn()(N=>N.name,m),f=p.length>1?Sl()(" & ",p):p[0],g=f.slice(-1)==="s"?"":"s",v=(0,ft.cP)(n),C=Q()({[Zs("book-image-block")]:i&&!v},{[Zs("book-image-block")&&Zs("dark-theme-book-image")]:i&&v},{[Zs("book-image-course")]:!i}),x=Zs(i?"flex-block":"flex-course"),L=Zs(i?"image-container-block":"image-container-course"),y=Q()(Zs("small-text"),{[Zs("dark-theme")]:v}),E=Q()(Zs("black-text"),{[Zs("dark-theme")]:v}),b=Q()(Zs("button"),{[Zs("dark-theme-button")]:v}),S=(0,Ft.ny)({height:"210",width:"140",imageKey:o}),T=(0,h.useCallback)(()=>{$e.BI&&c&&u({event:"Click Tracked",payload:Yo()(d,{type:"Buy Link"})})},[c,u,d]);return(0,s.jsxs)("section",{className:x,children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"Book Info"}),(0,s.jsx)("div",{"aria-hidden":"true",className:L,children:o?(0,s.jsx)("img",{alt:"",className:C,src:S}):(0,s.jsx)("div",{className:C})}),(0,s.jsxs)("div",{className:Zs("text-container"),children:[(0,s.jsxs)("p",{className:y,children:["From ",f,"'",g]}),(0,s.jsx)("p",{className:E,children:r}),(0,s.jsx)("a",{className:b,href:a,onClick:T,rel:"noopener noreferrer",target:"_blank",children:"Buy the book"})]})]})},Py={track:W2},G2=(0,ks.Ls)(null,Py)(Ry),On=pr()("partner-content-partner-info__"),wy=({backgroundColor:t,block:e,link:n,publishedAt:o,track:r,trackingInfo:a})=>{const i=e?(0,Ft.H5)():(0,Ft.DB)(),c=On(e?"nbic-logo-light-bulb":"nbic-logo"),u=On(e?"block-logo-container":"logo-container"),d=(0,ft.cP)(t),m=Q()(On("small-text"),{[On("dark-theme")]:d}),p=Q()(On("black-text"),{[On("dark-theme")]:d}),f=Q()(On("button"),{[On("dark-theme-button")]:d}),g=(0,h.useCallback)(()=>{$e.BI&&o&&r({event:"Click Tracked",payload:Yo()(a,{type:"Partner Link"})})},[o,r,a]);return(0,s.jsxs)("section",{className:On("flex"),children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"Partner Info"}),(0,s.jsx)("div",{"aria-hidden":"true",className:u,children:(0,s.jsx)("img",{alt:"",className:c,src:i})}),(0,s.jsxs)("div",{className:On("text-container"),children:[(0,s.jsx)("p",{className:m,children:"In partnership with"}),(0,s.jsx)("p",{className:p,children:"Next Big Idea Club"}),(0,s.jsx)("a",{className:f,href:n,onClick:g,rel:"noopener noreferrer",target:"_blank",children:"Learn more"})]})]})},My={track:W2},K2=(0,ks.Ls)(null,My)(wy),li=pr()("partner-content-author-card__"),_2=t=>{const{courseId:e,partnerContent:n,publishedAt:o,tenantId:r}=t,{data:a,type:i}=n,{authors:c,bookImage:u,bookTitle:d,buyLink:m,internalId:p,nbicLink:f}=a,g=c.filter(y=>y.name),v={courseId:e,partnerContentId:n.id,partnerContentInternalId:p,tenantId:r,contentSubtype:i},C=Q()(li("flex"),li("author-container")),x=y=>(0,Ft.ny)({width:"122",height:"122",imageKey:y}),L=(y,E)=>(0,s.jsx)("div",{"aria-hidden":"true",className:li("image-container"),children:y?(0,s.jsx)("img",{alt:E,className:li("author-image"),src:x(y)}):(0,s.jsx)("div",{className:li("author-image")})});return(0,s.jsxs)("ol",{className:"partner-content-author-card","data-testid":"partner-content-author-card",role:"list",children:[(0,s.jsx)("li",{role:"listitem",children:(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"Authors"}),g.map(y=>(0,s.jsxs)("li",{className:C,children:[L(y.image,y.name),(0,s.jsx)("p",{className:li("author-name-text"),children:y.name})]},y.name))]})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(G2,{authors:c,bookImage:u,bookTitle:d,buyLink:m,publishedAt:o,trackingInfo:v})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(K2,{link:f,publishedAt:o,trackingInfo:v})})]})},Oy=ne("cover");function Dy(t){const{courseId:e,coursePartnerContent:n,hasLogo:o,hasPartnerContent:r,publishedAt:a,tenantId:i}=t;if(!r)return null;const c=Oy("details-content-aside",{logo:o});return(0,s.jsx)("div",{className:c,children:(0,s.jsx)(yd,{type:"partner-content",children:(0,s.jsx)(_2,{courseId:e,partnerContent:n,publishedAt:a,tenantId:i})})})}var By=l(73444),Ld=l.n(By);const Hy=ne("cover"),Fy=jt("CoverDetailsContentHeading",({className:t="",type:e,...n})=>{const o=Ld()(["Default"],n);return(0,s.jsx)("header",{...o,className:Hy("details-content-heading",{type:e}).mix(t)})}),zy=ne("cover");function Vy({children:t,title:e,type:n}){const o=(0,xe.DX)(),{description:r,media:a,partnerContentId:i}=o,c=!!i,d=(a&&"image"in a?a.image?.key:null)!=null,p=n==="outline"?r?!d&&!c?"outline-no-logo":c&&!d?"outline-has-partner-content":c&&d?"outline-has-pc-and-logo":"outline":"outline-no-description":n;return(0,s.jsxs)("section",{className:zy("details-content-section",{type:p}),children:[(0,s.jsx)(Fy,{type:n,children:(0,s.jsx)("h2",{children:e})}),t]})}const Uy=ne("cover");function Ol(){return(0,s.jsxs)("svg",{"aria-hidden":"true",className:Uy("header-star"),fill:"none",height:"18",viewBox:"0 0 18 18",width:"18",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M9 0V18",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,s.jsx)("path",{d:"M18 9H0",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,s.jsx)("path",{d:"M15.3 15.3002L2.69995 2.7002",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,s.jsx)("path",{d:"M2.69995 15.3002L15.3 2.7002",strokeMiterlimit:"10",strokeWidth:"0.75"})]})}const $y=()=>Ss(480),Wy=()=>Ss(768),Gy={SPLIT_LEFT_IMAGE:"CENTERED_OVERLAY",SPLIT_RIGHT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"CENTERED_OVERLAY"};function Q2(){const t=(0,xe.DX)(),e=Wy(),n=t?.theme?.coverPageType||"CENTERED";return e?Gy[n]??n:n}const Ky=ne("cover"),_y=()=>null,Qy=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(I1,{children:(0,s.jsxs)(Gs,{children:[(0,s.jsx)(As,{}),(0,s.jsx)(Ol,{}),(0,s.jsx)(So,{}),(0,s.jsx)(Ks,{}),(0,s.jsx)(Ws,{})]})})}),Zy=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(wn,{children:(0,s.jsxs)(Gs,{children:[(0,s.jsx)(As,{}),(0,s.jsx)(Ol,{}),(0,s.jsx)(So,{}),(0,s.jsx)(Ks,{}),(0,s.jsx)(Ws,{})]})})}),Yy=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(jl,{}),(0,s.jsx)(wn,{children:(0,s.jsxs)(Gs,{children:[(0,s.jsx)(As,{}),(0,s.jsx)(Ol,{}),(0,s.jsx)(So,{}),(0,s.jsx)(Ks,{}),(0,s.jsx)(Ws,{})]})})]}),Xy=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(wn,{children:(0,s.jsxs)(Gs,{children:[(0,s.jsx)(As,{}),(0,s.jsx)(Ol,{}),(0,s.jsx)(So,{}),(0,s.jsx)(Ks,{}),(0,s.jsx)(Ws,{})]})}),(0,s.jsx)(jl,{})]}),Jy=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(wn,{children:(0,s.jsxs)(Gs,{children:[(0,s.jsx)(As,{}),(0,s.jsx)(Ol,{}),(0,s.jsx)(So,{}),(0,s.jsx)(Ks,{}),(0,s.jsx)(Ws,{})]})}),(0,s.jsx)("div",{className:"cover__header-graphic-wrap",children:(0,s.jsx)(jl,{})})]});function qy(){switch(Q2()){default:case"CENTERED_IMAGE":return(0,s.jsx)(Jy,{});case"CENTERED":case"CENTERED_ACCENT_TINT":return(0,s.jsx)(Zy,{});case"SPLIT_LEFT_IMAGE":case"TWO_THIRDS_LEFT_IMAGE":return(0,s.jsx)(Xy,{});case"SPLIT_RIGHT_IMAGE":case"TWO_THIRDS_RIGHT_IMAGE":return(0,s.jsx)(Yy,{});case"CENTERED_OVERLAY":return(0,s.jsx)(Qy,{})}}function eL(){return(0,s.jsxs)("header",{className:Ky("header",{meta:!1}),"data-testid":"cover-header",children:[(0,s.jsx)(qy,{}),(0,s.jsx)(h.Suspense,{children:(0,s.jsx)(_y,{})})]})}var tL=l(26372);const sL=ne("cover");function nL({children:t}){const e=(0,xe.DX)(),{themeId:n}=e?.theme??{},o=Q2(),r=tL.useMemo(()=>ei()(o),[o]),a=sL(null,{layout:r});return(0,s.jsx)("div",{className:a,"data-testid":`cover-layout-${r}`,"data-theme-id":n,id:"cover",children:t})}var Z2=l(26372);const H1=ne("lesson-header"),oL=({authorName:t,avatar:e,lessonName:n,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:c,title:u,totalLessons:d,lessonId:m})=>{const p=a!=null&&i,f=e&&t&&i&&!p,g=f||p||c,v=c&&(f||p);return(0,s.jsxs)("div",{className:H1("content"),children:[g&&(0,s.jsxs)("div",{className:H1("info-row"),children:[f?(0,s.jsx)(To,{authorName:t,avatar:e}):(0,s.jsx)(kl,{}),p&&(0,s.jsx)(ti,{partnerContentAuthors:a}),v&&(0,s.jsx)("span",{"aria-hidden":"true",className:H1("info-row--divider"),children:"|"}),c?(0,s.jsx)(No,{lessonName:n,lessonNumber:o,lessonPreposition:r,totalLessons:d}):(0,s.jsx)(Io,{})]}),(0,s.jsx)("div",{children:(0,s.jsx)(jo,{id:m,title:u})})]})},rL=({authorName:t,avatar:e,lessonName:n,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:c,title:u,totalLessons:d,lessonId:m})=>{const p=a!=null,f=Z2.useMemo(()=>e&&t&&i&&!p,[e,t,i,p]);return(0,s.jsxs)(s.Fragment,{children:[c?(0,s.jsx)(No,{lessonName:n,lessonNumber:o,lessonPreposition:r,totalLessons:d}):(0,s.jsx)(Io,{}),f&&(0,s.jsx)(To,{authorName:t,avatar:e}),i&&p&&(0,s.jsx)(A1,{partnerContentAuthors:a}),(0,s.jsx)(jo,{id:m,title:u})]})},aL=({authorName:t,avatar:e,lessonName:n,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:c,title:u,totalLessons:d,lessonId:m})=>{const p=a!=null,f=Z2.useMemo(()=>e&&t&&i&&!p,[e,t,i,p]);return(0,s.jsxs)(s.Fragment,{children:[f?(0,s.jsx)(To,{authorName:t,avatar:e}):(0,s.jsx)(kl,{}),i&&p&&(0,s.jsx)(ti,{partnerContentAuthors:a}),(0,s.jsx)(jo,{id:m,title:u}),c?(0,s.jsx)(No,{lessonName:n,lessonNumber:o,lessonPreposition:r,totalLessons:d}):(0,s.jsx)(Io,{})]})};function iL(t){const e=$y();return t.lessonHeaderSize===M.OX.SMALL&&!e?(0,s.jsx)(oL,{...t}):e?(0,s.jsx)(rL,{...t}):(0,s.jsx)(aL,{...t})}var F1=l(26372);const{COMPACT:lL,COVER:cL,OVERLAY:dL,SIDEBAR:uL}=lt.by,ci=ne("progress-circle");function hL({"aria-hidden":t,"aria-label":e,isFailed:n,isPassed:o,scope:r,value:a}){const[i,c]=F1.useState(a===100),u=(0,tt.A)(a),{theme:d}=(0,xe.DX)(),m=d?.progressIndicatorStyle??M.Y2.THEME_DEFAULT,p=r===cL,f=r===dL,g=m===M.Y2.THEME_DEFAULT,v=m===M.Y2.CIRCULAR_FILL,C=m===M.Y2.INCOMPLETE_COMPLETE,x=ci("default",{failed:n,passed:o}),L=ci({compact:r===lL,cover:p,overlay:f,sidebar:r===uL}),y=ci("track",{"circular-fill":!f&&v,"incomplete-complete":p&&C}),E=ci("fill",{"circular-fill":v,done:i,failed:n,passed:o,unstarted:a===0}),b=ci("pass",{done:i,visible:o}),S=ci("fail",{done:i,visible:n}),T=F1.useMemo(()=>v||a===100?a:0,[v,a]);return F1.useEffect(()=>{if(a!==100&&u===100)c(!1);else if(a===100&&!i&&!C){const N=setTimeout(()=>c(!0),300);return clearTimeout.bind(null,N)}else a===100&&!i&&C&&c(!0)},[i,C,u,a]),(0,s.jsx)(s.Fragment,{children:g?(0,s.jsx)("svg",{"aria-hidden":t,"aria-label":e,className:x,focusable:"false",viewBox:"0 0 7 7",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("circle",{cx:"3.5",cy:"3.5",r:"2.5"})}):(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:L,fill:"none",focusable:"false",role:"img",viewBox:"0 0 7 7",xmlns:"https://www.w3.org/2000/svg",children:[(0,s.jsx)("circle",{className:y,cx:"8",cy:"8",fill:"transparent",r:"7",strokeWidth:"2",transform:"rotate(-89.9 8 8)"}),(0,s.jsx)(P1,{className:E,cx:8,cy:8,diameter:16,r:7,strokeLinecap:"round",strokeWidth:2,value:T}),(0,s.jsx)("path",{className:b,d:"M11.3227 6.65905C11.6133 6.37599 11.6347 5.89413 11.3705 5.58277C11.1063 5.27141 10.6566 5.24847 10.366 5.53152L6.93323 8.87512L5.6338 7.60944C5.3432 7.32639 4.89345 7.34933 4.62927 7.66069C4.36509 7.97205 4.38651 8.45391 4.67711 8.73697L6.45488 10.4686C6.72611 10.7328 7.14034 10.7328 7.41157 10.4686L11.3227 6.65905Z"}),(0,s.jsx)("path",{className:S,clipRule:"evenodd",d:"M9.46967 10.5303C9.76256 10.8232 10.2374 10.8232 10.5303 10.5303C10.8232 10.2374 10.8232 9.76256 10.5303 9.46967L9.06066 8L10.5303 6.53033C10.8232 6.23744 10.8232 5.76256 10.5303 5.46967C10.2374 5.17678 9.76256 5.17678 9.46967 5.46967L8 6.93934L6.53033 5.46967C6.23744 5.17678 5.76256 5.17678 5.46967 5.46967C5.17678 5.76256 5.17678 6.23744 5.46967 6.53033L6.93934 8L5.46967 9.46967C5.17678 9.76256 5.17678 10.2374 5.46967 10.5303C5.76256 10.8232 6.23744 10.8232 6.53033 10.5303L8 9.06066L9.46967 10.5303Z",fillRule:"evenodd"})]})})}function mL({Default:t,...e}){return(0,s.jsx)(t,{...e,hasOverlay:!1})}var pL=l(28453),Ed=l.n(pL);const Y2=t=>e=>(t(e),e.preventDefault()),gr=t=>{t.stopPropagation(),t.nativeEvent.stopImmediatePropagation()},an=t=>e=>{t(e),e.preventDefault(),gr(e)};function Sd(t,e){const n=[];if(t){let o=t.parentElement;for(;o&&(e?.limit==null||n.length<e.limit);){if(o===document.body){n.push(window);break}const r=window.getComputedStyle(o);(r.overflowX==="auto"||r.overflowX==="scroll"||r.overflowY==="auto"||r.overflowY==="scroll")&&n.push(o),o=o.parentElement}}return n}function fL(t){return Sd(t,{limit:1})[0]??null}function X2(t,e){(0,h.useLayoutEffect)(()=>{let n=t.current;const o=Sd(n);for(const r of o)r?.addEventListener("scroll",e);return()=>{for(const r of o)r?.removeEventListener("scroll",e)}},[e,t])}var ko=l(17758),vL=l(13845),ln=l.n(vL),gL=l(53160),Cr=l.n(gL),CL=l(73578),sa=l.n(CL),xL=l(50312),xr=l.n(xL);const bL={keys:["End"],keyCode:ko.KEY_END},yL={keys:["Enter"],keyCode:ko.KEY_RETURN},LL={keys:["Home"],keyCode:ko.KEY_HOME},EL={keys:["Tab"],keyCode:ko.KEY_TAB},SL={keys:[" "],keyCode:ko.KEY_SPACE},TL={keys:["Escape","Esc"],keyCode:ko.KEY_ESCAPE},IL={keys:["ArrowUp"],keyCode:ko.KEY_UP},NL={keys:["ArrowDown"],keyCode:ko.KEY_DOWN},jL={keys:["ArrowLeft"],keyCode:ko.KEY_LEFT},kL={keys:["ArrowRight"],keyCode:ko.KEY_RIGHT},Ao=({keyCode:t,keys:e})=>n=>n.keyCode?n.keyCode===t:Cr()(n.key,e),AL=t=>t.altKey||t.ctrlKey||t.metaKey,RL=Ao(bL),na=Ao(yL),PL=Ao(LL),Td=Ao(EL),Id=Ao(SL),cn=Ao(TL),oa=Ao(IL),ra=Ao(NL),br=Ao(jL),yr=Ao(kL),di=xr()(Id,na),see=xr()(Td,na),J2=xr()(yr,oa),q2=xr()(br,ra),ef=xr()(oa,ra),tf=ii()(di),sf=25,wL=sa()((t,e)=>{t.scrollTop!==0&&(e.preventDefault(),t.scrollTop-=sf)}),ML=sa()((t,e,n)=>{e&&(n.preventDefault(),t.scrollTop+=sf)}),OL=(t,e)=>n=>{const o=ML(t,e),r=wL(t);ln()([[ra,o],[oa,r]])(n)},Nd=ne("lesson-progress"),{COMPACT:z1,COVER:Dl,OVERLAY:V1,SIDEBAR:Bl}=lt.by;function DL({canComplete:t,color:e,hasRestriction:n,isComplete:o,isCurrentLesson:r,isDark:a,isEnabled:i,isFailed:c,isLegacy:u=void 0,isPassed:d,isTooltipVisible:m,navigationStyle:p,onHideTooltip:f,onMarkComplete:g=void 0,onMarkReset:v=void 0,onShowTooltip:C,percentComplete:x,progressGraphic:L,scope:y,labels:E}){const b=(0,h.useRef)(),S=(0,h.useRef)(),T=(0,h.useRef)(),N=(0,h.useRef)(),{theme:{progressIndicatorStyle:j=M.Y2.THEME_DEFAULT}}=(0,xe.DX)(),R=j===M.Y2.THEME_DEFAULT,O=Nd({compact:y===z1,cover:y===Dl&&!u,"legacy-cover":y===Dl&&u,inactive:n,overlay:y===V1,sidebar:y===Bl&&!u,"legacy-sidebar":y===Bl&&u,"theme-default":R}),P=Nd("graphic",{compact:y===z1,cover:y===Dl&&!u,"legacy-cover":y===Dl&&u,overlay:y===V1,sidebar:y===Bl&&!u,"legacy-sidebar":y===Bl&&u}),A=Nd("tooltip",{legacy:u}).toString(),F=(0,h.useCallback)(()=>{o?v?.():g?.()},[o,g,v]),w=(0,h.useCallback)(q=>{Ed()(f)&&cn(q)&&m&&f()},[f,m]),D=(0,h.useCallback)(()=>{clearTimeout(T.current),!n&&Ed()(C)&&(S.current=setTimeout(C,600))},[n,C]),V=(0,h.useCallback)(()=>{clearTimeout(S.current),Ed()(f)&&(T.current=setTimeout(f,150))},[f]),_=(0,h.useCallback)(()=>{setTimeout(()=>{if(m){const q=b.current.getBoundingClientRect(),fe=N.current.offsetParent.getBoundingClientRect(),{height:ye,width:Ie}=q,we=q.left-fe.left,Ve=q.top-fe.top;Object.assign(N.current.style,{transform:`translate(${we}px, ${Ve}px)`,width:`${Ie}px`,height:`${ye}px`})}},0)},[m]);if((0,h.useLayoutEffect)(()=>_(),[_]),(0,es.A)("resize",_,window),(0,es.A)("keydown",w,document),X2(b,V),t){const q=$e.BI&&x===100,fe=BL({labels:E,percentComplete:x,canReset:!q}),ye=!i||q,Ie=Nd("action",{disabled:ye});return(0,s.jsx)("span",{className:O,"data-testid":"lesson-progress",children:(0,s.jsx)("button",{"aria-label":fe,className:Ie,disabled:ye,onBlur:f,onClick:F,onFocus:C,type:"button",children:(0,s.jsxs)("span",{className:P,onMouseEnter:D,onMouseLeave:V,ref:b,children:[(0,s.jsx)(L,{"aria-hidden":"true",color:e,isCurrent:r,isDark:a,isFailed:c,isPassed:d,navigationStyle:p,scope:y,value:x}),i&&!n&&(0,s.jsx)(nf,{className:A,dark:a,ref:N,scope:y,visible:m,children:fe})]})})})}const ee=HL({labels:E,isFailed:c,percentComplete:x});return(0,s.jsx)("span",{className:O,"data-testid":"lesson-progress",children:(0,s.jsxs)("span",{className:P,onMouseEnter:D,onMouseLeave:V,ref:b,children:[(0,s.jsx)(L,{"aria-label":ee,color:e,isCurrent:r,isDark:a,isFailed:c,isPassed:d,navigationStyle:p,scope:y,value:x}),i&&!n&&(0,s.jsx)(nf,{className:A,dark:a,ref:N,scope:y,visible:m,children:ee})]})})}const nf=(0,h.forwardRef)((t,e)=>{const{children:n,className:o,dark:r,scope:a,visible:i}=t,c=(0,h.useMemo)(()=>ne(o),[o]),u=c({compact:a===z1,cover:a===Dl,overlay:a===V1,sidebar:a===Bl,visible:i}),d=c("inner",{dark:r,light:!r}),m=(0,s.jsx)("div",{"aria-hidden":"true",onClick:gr,ref:e,style:{left:0,pointerEvents:"none",position:"absolute",top:0,zIndex:Number.MAX_SAFE_INTEGER},children:(0,s.jsx)("div",{style:{pointerEvents:"all"},children:(0,s.jsx)("div",{className:u,children:(0,s.jsx)("div",{className:d,children:n})})})});return(0,eo.createPortal)(m,fr())});function BL({labels:t,canReset:e,percentComplete:n}){const o=n===100,{progressPieCompleted:r,progressPieUnstarted:a,progressPieClickToComplete:i,progressPieClickToReset:c}=t;return o&&e?`${r}. ${c}`:n===100&&!e?r:n===0?`${a}. ${i}`:`${n}% ${r}. ${i}`}function HL({labels:t,isFailed:e,percentComplete:n}){const o=n===100,{progressPieCompleted:r,progressPieUnstarted:a,progressPieQuizFailed:i}=t;return e?i:o?r:n===0?a:`${n}% ${r}`}const of=h.memo(DL);function FL({color:t,hasRestriction:e,isComplete:n,isCurrentLesson:o,isFailed:r,isPassed:a,isTooltipVisible:i,lessonTitle:c,navigationStyle:u,onHideTooltip:d,onShowTooltip:m,percentComplete:p,progressGraphic:f,scope:g,labels:v}){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"overview-list-item__progress",children:(0,s.jsx)(of,{canComplete:!1,color:t,hasRestriction:e,isComplete:n,isCurrentLesson:o,isDark:!1,isEnabled:!0,isFailed:r,isPassed:a,isTooltipVisible:i,labels:v,navigationStyle:u,onHideTooltip:d,onShowTooltip:m,percentComplete:p,progressGraphic:f,scope:g})}),(0,s.jsx)("span",{className:"overview-list-item__title",children:c})]})}function zL(){return null}function rf({className:t,ref:e}){return(0,s.jsx)("svg",{"aria-hidden":"true",className:t,fill:"currentColor",focusable:"false",ref:e,viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M3.33177 4.1487L6.48034 1.00013M9.6289 4.14869L6.48034 1.00013M6.48034 1.00013L6.47966 11.9601"})})}function VL(t){const e=(0,to.QD)(t,["Default"]);return(0,s.jsxs)(Hs,{...e,fill:"none",viewBox:"0 3 16 10",children:[(0,s.jsx)("path",{d:"M1.51472 7.99993H14.4853",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,s.jsx)("path",{d:"M9.50008 12.4994L14.5004 7.99932L9.50008 3.99973",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"0.75"})]})}function UL(t){const e=(0,to.QD)(t,["Default"]);return(0,s.jsx)(Hs,{viewBox:"0 0 25 16",...e,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M1.10699 7.7986L0.778547 7.50301L1.1236 7.22701L10.013 0.116623L10.4815 0.702312L2.42567 7.14593H24.4443V7.89593H2.3363L10.4981 15.2413L9.9964 15.7988L1.10699 7.7986Z",fill:"currentColor",fillRule:"evenodd"})})}function af(t){return(0,s.jsx)(Ls,{height:"8",viewBox:"0 0 14 8",width:"14",...t,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M13 1L7 7L1 1",stroke:"currentColor"})})}function lf(t){const e=(0,to.QD)(t,["Default"]);return(0,s.jsxs)(Hs,{...e,fill:"none",viewBox:"0 0 16 16",children:[(0,s.jsx)("circle",{cx:"8",cy:"8",r:"7",stroke:"white"}),(0,s.jsx)("path",{d:"M5 7.71429L7.54545 10L11.5 5.5",stroke:"white"})]})}function cf(t){const e=(0,to.QD)(t,["Default"]);return(0,s.jsxs)(Hs,{...e,fill:"none",viewBox:"0 0 16 16",children:[(0,s.jsx)("path",{d:"M8.00085 5.20305L5.14081 8.06339C5.14079 8.06341 5.14077 8.06343 5.14075 8.06345C5.00146 8.20273 4.92319 8.39163 4.92314 8.58861V8.5887V9.93926C4.92314 10.1851 5.12244 10.3844 5.36829 10.3844H6.71884H6.71894C6.91593 10.3844 7.10484 10.3061 7.24413 10.1668C7.24414 10.1668 7.24415 10.1667 7.24416 10.1667L10.104 7.30664C10.104 7.30657 10.1041 7.3065 10.1042 7.30643L10.1042 7.30638C10.1043 7.30631 10.1044 7.30622 10.1044 7.30615L10.9465 6.46442C11.03 6.38095 11.0769 6.26773 11.0769 6.14966C11.0769 6.0316 11.03 5.91836 10.9466 5.83487L9.47304 4.36105C9.29924 4.18722 9.01746 4.18716 8.84359 4.36091L8.00111 5.20279C8.0011 5.2028 8.0011 5.2028 8.0011 5.2028L8.00085 5.20305Z",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"0.890284"}),(0,s.jsx)("circle",{cx:"8",cy:"7.5293",r:"7",stroke:"white"})]})}function $L({className:t}){return(0,s.jsxs)("svg",{"aria-hidden":"true",className:t,fill:"none",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("circle",{cx:"6",cy:"6",r:"5"}),(0,s.jsx)("path",{d:"M9.5 9.5L14 14"})]})}function WL(t){const e=(0,to.QD)(t,["Default"]);return(0,s.jsxs)(Hs,{...e,fill:"none",viewBox:"0 0 16 16",children:[(0,s.jsx)("circle",{cx:"8",cy:"8",r:"7",stroke:"white"}),(0,s.jsx)("path",{d:"M10 6L6 10",stroke:"white"}),(0,s.jsx)("path",{d:"M6 6L10 10",stroke:"white"})]})}function GL({className:t}){return(0,s.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",viewBox:"0 0 10 7",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M1 1.40002L5 5.40002L9 1.40002",strokeWidth:"1.6"})})}function KL(t){const e=(0,to.QD)(t,["Default"]);return(0,s.jsxs)(Hs,{viewBox:"0 0 12 12",...e,children:[(0,s.jsx)("path",{d:"M10.7425 0.742189L11.4496 1.4493L1.55012 11.3488L0.843012 10.6417L10.7425 0.742189Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M11.1571 10.6417L10.45 11.3488L0.550537 1.44929L1.25764 0.742188L11.1571 10.6417Z",fill:"currentColor"})]})}const _L=()=>Ss(1200),QL=()=>Ss(768),U1=()=>Ss(480),df=ne("cover");function ZL(){const t=(0,xe.DX)(),e=_L(),n=(0,nt.QQ)(t.description);if(!n)return null;const o=Ya("description"),r=(0,ds.uW)(t.description)?{"data-l10n-id":t.description.l10nId}:{"data-change-path":o};return(0,s.jsx)("div",{...r,children:(0,s.jsxs)("section",{className:df("details-content-section"),children:[e&&(0,s.jsx)(L1,{}),(0,s.jsx)(Tt,{className:df("details-content-description"),value:m1(n)},"text")]})})}const YL={SPLIT_LEFT:"LEFT",SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT:"LEFT",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY"};function $1(){const t=(0,xe.DX)(),e=QL(),n=t?.theme?.coverPageType||"CENTERED";return e?YL[n]??n:n}function XL({Default:t,...e}){const n=$1(),o=["SPLIT_RIGHT","SPLIT_RIGHT_IMAGE"].includes(n);return(0,s.jsx)(t,{...e,reverseColumns:o})}const uf=ne("cover");function Hl({accentColor:t,hasOverlay:e=!1,isShape:n=!1}){const{alpha:o,ariaLabel:r,media:a,role:i}=qr("coverImage"),c=n?{backgroundColor:t}:(0,Pt.b9)({alpha:o,hasOverlay:e,media:a});return(0,s.jsx)("div",{className:uf("header-graphic-container"),children:(0,s.jsx)("div",{"aria-label":r,className:uf("header-graphic"),"data-testid":"cover-header-graphic",role:i,style:c})})}const hf=t=>(0,s.jsx)(jd,{...t,children:(0,s.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,s.jsx)("path",{d:"M0.319,0.998 L1,0.899 V0 H0 V0.899 L0.192,0.98 C0.234,0.998,0.277,1,0.319,0.998"})})}),mf=t=>(0,s.jsx)(jd,{...t,children:(0,s.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,s.jsx)("path",{d:"M0.661,0.963 L1,0.804 V0 H0 V0.804 L0.339,0.963 C0.445,1,0.555,1,0.661,0.963"})})}),pf=t=>(0,s.jsx)(jd,{...t,children:(0,s.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,s.jsx)("path",{d:"M0.481,0.991 L0.908,0.825 C0.99,0.793,1,0.694,0.982,0.616 L0.68,0.075 C0.636,-0.003,0.534,-0.023,0.465,0.033 L0.055,0.364 C-0.007,0.414,-0.017,0.505,0.031,0.568 L0.316,0.944 C0.355,0.995,0.422,1,0.481,0.991"})})}),ff=t=>(0,s.jsx)(jd,{...t,children:(0,s.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,s.jsx)("path",{d:"M0.519,0.991 L0.093,0.825 C0.01,0.793,-0.025,0.694,0.019,0.616 L0.321,0.075 C0.364,-0.003,0.466,-0.023,0.536,0.033 L0.946,0.364 C1,0.414,1,0.505,0.97,0.568 L0.685,0.944 C0.646,0.995,0.579,1,0.519,0.991"})})}),JL={LEFT_OVERLAY:hf,LEFT:hf,CENTERED:mf,CENTERED_OVERLAY:mf,SPLIT_LEFT:pf,SPLIT_LEFT_IMAGE:pf,SPLIT_RIGHT:ff,SPLIT_RIGHT_IMAGE:ff},jd=({children:t,className:e="svgPath",height:n,width:o,viewBox:r})=>(0,s.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",height:n,viewBox:r,width:o,xmlns:"http://www.w3.org/2000/svg",children:t});function aa({className:t,coverPageType:e}){const n=e?JL[e]:null;return n?(0,s.jsx)(n,{className:t}):null}const vf=ne("cover"),ui=()=>(0,s.jsxs)("div",{className:vf("author-published-wrap"),children:[(0,s.jsx)(So,{}),(0,s.jsx)(m2,{})]}),qL=({coverPageType:t})=>{const e=U1();return(0,s.jsxs)(I1,{children:[(0,s.jsx)(aa,{coverPageType:t}),(0,s.jsxs)(Gs,{children:[!e&&(0,s.jsx)(As,{}),(0,s.jsx)(ui,{}),(0,s.jsx)(Ks,{}),e&&(0,s.jsx)(As,{}),(0,s.jsx)(Ws,{})]})]})},eE=({coverPageType:t})=>{const e=U1();return(0,s.jsxs)(wn,{children:[(0,s.jsx)(aa,{coverPageType:t}),(0,s.jsxs)(Gs,{children:[!e&&(0,s.jsx)(As,{}),(0,s.jsx)(ui,{}),(0,s.jsx)(Ks,{}),e&&(0,s.jsx)(As,{}),(0,s.jsx)(Ws,{})]})]})},tE=({coverPageType:t})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(aa,{coverPageType:t}),(0,s.jsx)(Hl,{}),(0,s.jsx)(wn,{children:(0,s.jsxs)(Gs,{children:[(0,s.jsx)(As,{}),(0,s.jsx)(ui,{}),(0,s.jsx)(Ks,{}),(0,s.jsx)(Ws,{})]})})]}),sE=({accentColor:t,coverPageType:e})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(wn,{children:(0,s.jsxs)(Gs,{children:[(0,s.jsx)(As,{}),(0,s.jsx)(ui,{}),(0,s.jsx)(Ks,{}),(0,s.jsx)(Ws,{})]})}),(0,s.jsx)(aa,{coverPageType:e}),(0,s.jsx)(Hl,{accentColor:t,isShape:!0})]}),nE=({coverPageType:t})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(wn,{children:(0,s.jsxs)(Gs,{children:[(0,s.jsx)(As,{}),(0,s.jsx)(ui,{}),(0,s.jsx)(Ks,{}),(0,s.jsx)(Ws,{})]})}),(0,s.jsx)(aa,{coverPageType:t}),(0,s.jsx)(Hl,{})]}),oE=({accentColor:t,coverPageType:e})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(aa,{coverPageType:e}),(0,s.jsx)(Hl,{accentColor:t,isShape:!0}),(0,s.jsx)(wn,{children:(0,s.jsxs)(Gs,{children:[(0,s.jsx)(As,{}),(0,s.jsx)(ui,{}),(0,s.jsx)(Ks,{}),(0,s.jsx)(Ws,{})]})})]});function rE(t){const e=$1(),n={...t,coverPageType:e};switch(e){default:case M.BL.LEFT_OVERLAY:case M.BL.CENTERED_OVERLAY:return(0,s.jsx)(qL,{...n});case M.BL.LEFT:case M.BL.CENTERED:return(0,s.jsx)(eE,{...n});case M.BL.SPLIT_LEFT:return(0,s.jsx)(sE,{...n});case M.BL.SPLIT_LEFT_IMAGE:return(0,s.jsx)(nE,{...n});case M.BL.SPLIT_RIGHT:return(0,s.jsx)(oE,{...n});case M.BL.SPLIT_RIGHT_IMAGE:return(0,s.jsx)(tE,{...n})}}function aE(t){const{partnerContentId:e}=(0,xe.DX)(),n=(0,xe.Bd)(),r=!!(!!e&&!!n||$e.BI);return(0,s.jsx)("header",{className:vf("header",{"with-info":r}),"data-testid":"cover-header",children:(0,s.jsx)(rE,{...t})})}var iE=l(26372);const lE=ne("cover");function cE({children:t}){const e=(0,xe.DX)(),{themeId:n}=e?.theme??{},o=$1(),r=iE.useMemo(()=>ei()(o),[o]),a=lE(null,{layout:r});return(0,s.jsx)("div",{className:a,"data-testid":`cover-layout-${r}`,"data-theme-id":n,id:"cover",children:t})}const dE=Ts("AlignLeft"),kd=Ts("ArrowDown"),gf=Ts("ArrowRight"),Cf=Ts("ArrowUp"),uE=Ts("Category"),hE=Ts("ChevronDown"),mE=Ts("ChevronUp"),pE=Ts("LessonsComplete"),fE=Ts("LessonsRequirement"),vE=Ts("QuestionBox"),gE=Ts("QuizFailed"),CE=Ts("QuizPassed"),xE=Ts("QuizRequirement"),Fl=Ts("Search"),xf=Ts("ToggleDown"),bE=Ts("Touch"),yE=Ts("VideoCamera"),Ad=Ts("X"),LE=t=>{const e=t.indexOf("-");return e===-1?t:t.slice(0,e)},nee=(t,e)=>{const n=LE(t);return e.find(({iso639Code:o})=>o===t)||e.find(({iso639Code:o})=>o===n)||e.find(({defaultId:o,defaultSet:r})=>r&&o===1)},hi=({percent:t,label:e,isRTL:n})=>{if(e.includes("%")){const o=n?`%${t}`:`${t}%`;return e.replace("%",o)}return`${t} ${e}`},Xo=ne("cover");function EE({nextLesson:t,percentComplete:e}){const n=U1(),o=(0,xe.Wz)(),r=(0,xe.vU)();if(e===0||!$e.BI)return null;const a=hi({percent:e,label:r.progressSummaryPercentComplete,isRTL:o});return(0,s.jsxs)("div",{className:Xo("progress"),children:[n&&(0,s.jsx)("div",{className:Xo("progress-text"),children:a}),(0,s.jsx)("div",{className:Xo("progress-outer"),children:(0,s.jsx)("div",{className:Xo("progress-inner"),style:{width:`${e}%`}})}),(0,s.jsxs)("div",{className:Xo("progress-text-wrap"),children:[!n&&(0,s.jsx)("div",{className:Xo("progress-text"),children:a}),t&&(0,s.jsxs)("div",{className:Xo("progress-next-lesson"),children:[(0,s.jsx)(gf,{className:Xo("progress-next-lesson-icon").toString(),decorative:!0}),(0,s.jsx)("span",{"aria-hidden":"true",className:Xo("progress-next-lesson-text"),children:t.title}),(0,s.jsxs)("span",{className:"visually-hidden",children:["Next lesson: ",t.title]})]})]})]})}var bf=l(26372);const Rd=ne("lesson-header"),W1=()=>(0,s.jsx)("div",{className:Rd("author--hidden")}),SE=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:c,showLessonCount:u,title:d,totalLessons:m,lessonId:p})=>{const f=i!=null&&c,g=e&&t&&c&&!f,v=g||f||u,C=u&&(g||f);return(0,s.jsxs)("div",{className:Rd("content"),children:[v&&(0,s.jsxs)("div",{className:Rd("info-row"),children:[g?(0,s.jsx)(To,{authorName:t,avatar:e}):(0,s.jsx)(W1,{}),f&&(0,s.jsx)(ti,{partnerContentAuthors:i}),C&&(0,s.jsx)("span",{"aria-hidden":"true",className:Rd("info-row--divider"),children:"|"}),u?(0,s.jsx)(No,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(Io,{})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(jo,{id:p,title:d}),n&&(0,s.jsx)(ea,{description:n})]})]})},TE=t=>{const{authorName:e,avatar:n,description:o,lessonName:r,lessonNumber:a,lessonPreposition:i,partnerContentAuthors:c,showAuthor:u,showLessonCount:d,title:m,totalLessons:p,lessonId:f}=t,g=c!=null,v=bf.useMemo(()=>n&&e&&u&&!g,[n,e,u,g]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(jo,{id:f,title:m}),(0,s.jsxs)(rb,{children:[v?(0,s.jsx)(To,{authorName:e,avatar:n}):(0,s.jsx)(W1,{}),u&&g&&(0,s.jsx)(ti,{partnerContentAuthors:c}),d?(0,s.jsx)(No,{lessonName:r,lessonNumber:a,lessonPreposition:i,showPartnerContent:g,totalLessons:p}):(0,s.jsx)(Io,{})]}),o&&(0,s.jsx)(ea,{description:o})]})},IE=t=>{const{authorName:e,avatar:n,description:o,lessonName:r,lessonNumber:a,lessonPreposition:i,partnerContentAuthors:c,showAuthor:u,showLessonCount:d,title:m,totalLessons:p,lessonId:f}=t,g=c!=null,v=bf.useMemo(()=>n&&e&&u&&!g,[n,e,u,g]);return(0,s.jsxs)(s.Fragment,{children:[d?(0,s.jsx)(No,{lessonName:r,lessonNumber:a,lessonPreposition:i,totalLessons:p}):(0,s.jsx)(Io,{}),v?(0,s.jsx)(To,{authorName:e,avatar:n}):(0,s.jsx)(W1,{}),u&&g&&(0,s.jsx)(A1,{partnerContentAuthors:c}),(0,s.jsx)(jo,{id:f,title:m}),o&&(0,s.jsx)(ea,{description:o})]})};function NE(t){const e=C1();return t.lessonHeaderSize===M.OX.SMALL&&!e?(0,s.jsx)(SE,{...t}):e?(0,s.jsx)(IE,{...t}):(0,s.jsx)(TE,{...t})}var Pd=l(26372);const{COMPACT:jE,COVER:kE,OVERLAY:AE,SIDEBAR:RE}=lt.by,zl=ne("progress-circle");function PE({"aria-hidden":t,"aria-label":e,isFailed:n,isPassed:o,scope:r,value:a}){const[i,c]=Pd.useState(a===100),u=(0,tt.A)(a),{theme:d}=(0,xe.DX)(),m=d?.progressIndicatorStyle??M.Y2.THEME_DEFAULT,p=r===kE,f=r===AE,g=m===M.Y2.THEME_DEFAULT,v=m===M.Y2.CIRCULAR_FILL,C=m===M.Y2.INCOMPLETE_COMPLETE,x=zl({compact:r===jE,cover:p,sidebar:r===RE,overlay:f}),L=zl("track",{"circular-fill":!f&&v,"incomplete-complete":p&&C}),y=zl("runner",{"circular-fill":v,done:i,failed:n,passed:o,unstarted:a===0}),E=zl("pass",{done:i,visible:o}),b=zl("fail",{done:i,visible:n}),S=Pd.useMemo(()=>v||a===100?a:0,[v,a]);Pd.useEffect(()=>{if(a!==100&&u===100)c(!1);else if(a===100&&!i&&!C){const N=setTimeout(()=>c(!0),300);return clearTimeout.bind(null,N)}else a===100&&!i&&C&&c(!0)},[i,C,u,a]);const T=Pd.useCallback(()=>{a===100&&c(!0)},[a]);return(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:x,fill:"none",focusable:"false",role:"img",viewBox:"0 0 15 15",xmlns:"https://www.w3.org/2000/svg",children:[(0,s.jsx)("circle",{className:L,cx:"7.5",cy:"7.5",fill:"transparent",r:"6.5",strokeWidth:"2",transform:"rotate(-89.9 7.5 7.5)"}),g?(0,s.jsx)(O2,{className:y,cx:7.5,cy:7.5,diameter:15,onTransitionEnd:T,r:6.5,strokeWidth:2,transform:"rotate(-89.9 7.5 7.5)",value:a}):(0,s.jsx)(P1,{className:y,cx:7.5,cy:7.5,diameter:15,onTransitionEnd:T,r:6.5,strokeLinecap:"round",strokeWidth:2,value:S}),(0,s.jsx)("path",{className:E,d:"M11.3227 6.65905C11.6133 6.37599 11.6347 5.89413 11.3705 5.58277C11.1063 5.27141 10.6566 5.24847 10.366 5.53152L6.93323 8.87512L5.6338 7.60944C5.3432 7.32639 4.89345 7.34933 4.62927 7.66069C4.36509 7.97205 4.38651 8.45391 4.67711 8.73697L6.45488 10.4686C6.72611 10.7328 7.14034 10.7328 7.41157 10.4686L11.3227 6.65905Z"}),(0,s.jsx)("path",{className:b,clipRule:"evenodd",d:"M7.5 8.56157L8.84426 9.90564L9.90503 8.84473L8.56078 7.50066L9.90543 6.15582L8.84452 5.09504L7.49986 6.43988L6.15452 5.09473L5.09375 6.15564L6.43909 7.5008L5.09452 8.84555L6.15543 9.90632L7.5 8.56157Z",fillRule:"evenodd"})]})}const wd=({"aria-hidden":t=void 0,"aria-label":e=void 0,progress:n=0,runnerClass:o,trackClass:r})=>(0,s.jsx)("div",{"aria-hidden":t,"aria-label":e,className:r,role:"img",children:(0,s.jsx)("div",{className:o,style:{width:`${n}%`}})}),wE=ne("nav-sidebar-header");function ME(t){const{classProgressRunner:e,classProgressText:n,classProgressTrack:o,percentComplete:r,percentCompleteText:a}=t;return(0,s.jsxs)("div",{className:wE("progress"),"data-testid":"nav-sidebar-progress",children:[(0,s.jsx)("div",{className:n,children:a}),(0,s.jsx)(wd,{"aria-hidden":"true",progress:r,runnerClass:e,trackClass:o})]})}function OE({className:t,ref:e}){return(0,s.jsx)("svg",{"aria-hidden":"true",className:t,fill:"currentColor",focusable:"false",height:"17",ref:e,role:"img",viewBox:"0 0 17 17",width:"17",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M8.029 16.2343L8.7361 16.9414L9.44321 16.2343L16.707 8.97048L15.2928 7.55627L9.73903 13.11L9.73903 1.99985L7.73903 1.99985L7.73904 13.1159L2.17939 7.55627L0.765176 8.97048L8.029 16.2343Z",fillRule:"evenodd"})})}function DE(t){return(0,s.jsx)(Hs,{...t,viewBox:"0 0 16 8",children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M15,3H3.4l1.3-1.3c0.4-0.4,0.4-1,0-1.4C4.5,0.1,4.3,0,4,0S3.5,0.1,3.3,0.3l-3,3c-0.4,0.4-0.4,1,0,1.4l3,3c0.4,0.4,1,0.4,1.4,0c0.4-0.4,0.4-1,0-1.4L3.4,5H15c0.6,0,1-0.4,1-1S15.6,3,15,3",fill:"currentColor",fillRule:"evenodd"})})}function BE(t){const e=(0,to.QD)(t,["Default"]);return(0,s.jsx)(Hs,{...e,viewBox:"0 0 16 8",children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M1 5H12.6L11.3 6.3C10.9 6.7 10.9 7.3 11.3 7.7C11.5 7.9 11.7 8 12 8C12.3 8 12.5 7.9 12.7 7.7L15.7 4.7C16.1 4.3 16.1 3.7 15.7 3.3L12.7 0.3C12.3 -0.1 11.7 -0.1 11.3 0.3C10.9 0.7 10.9 1.3 11.3 1.7L12.6 3H1C0.4 3 0 3.4 0 4C0 4.6 0.4 5 1 5",fill:"currentColor",fillRule:"evenodd"})})}function HE({className:t,ref:e}){return(0,s.jsx)("svg",{"aria-hidden":"true",className:t,fill:"currentColor",focusable:"false",ref:e,version:"1.1",viewBox:"0 0 17 17",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M8.971 0.7657L8.2639 0.0585938L7.55679 0.765701L0.292969 8.02952L1.70718 9.44374L7.26096 3.88995L7.26097 15.0002H9.26097L9.26096 3.88409L14.8206 9.44373L16.2348 8.02952L8.971 0.7657Z",fillRule:"evenodd"})})}function FE(t){return(0,s.jsx)(Ls,{height:"12",viewBox:"0 0 16 12",width:"16",...t,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M9.6665 2H0.666504V0H9.6665V2ZM12.6665 6H0.666504V4H12.6665V6ZM0.666504 10H7.6665V8H0.666504V10Z",fill:"currentColor",fillRule:"evenodd"})})}function yf(t){return(0,s.jsx)(Ls,{height:"8",viewBox:"0 0 12 8",width:"12",...t,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M6.00008 7.91406L11.7072 2.20696L10.293 0.792742L6.00007 5.08564L1.70718 0.792742L0.292969 2.20696L6.00008 7.91406Z",fill:"currentColor",fillRule:"evenodd"})})}function zE(t){return(0,s.jsx)(Ls,{height:"8",viewBox:"0 0 12 8",width:"12",...t,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M5.99992 0.0859375L0.292818 5.79304L1.70703 7.20726L5.99993 2.91436L10.2928 7.20726L11.707 5.79304L5.99992 0.0859375Z",fill:"currentColor",fillRule:"evenodd"})})}function VE(t){return(0,s.jsxs)(Ls,{height:"21",viewBox:"0 0 20 21",width:"20",...t,children:[(0,s.jsx)("path",{d:"M9.94535 6.125C9.1938 6.125 8.52385 6.6729 8.30039 7.48015C8.17194 7.9442 7.70954 8.21104 7.26759 8.07617C6.82564 7.94129 6.5715 7.45577 6.69996 6.99172C7.11282 5.50025 8.3916 4.375 9.94535 4.375C11.8499 4.375 13.3335 6.05606 13.3335 8.05C13.3335 9.7417 12.2656 11.2082 10.7787 11.6139V12.25C10.7787 12.7332 10.4056 13.125 9.94535 13.125C9.48511 13.125 9.11201 12.7332 9.11201 12.25V10.85C9.11201 10.3668 9.48511 9.975 9.94535 9.975C10.8628 9.975 11.6668 9.14886 11.6668 8.05C11.6668 6.95114 10.8628 6.125 9.94535 6.125Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M10.0002 14C9.53992 14 9.16683 14.3918 9.16683 14.875C9.16683 15.3582 9.53992 15.75 10.0002 15.75H10.0085C10.4687 15.75 10.8418 15.3582 10.8418 14.875C10.8418 14.3918 10.4687 14 10.0085 14H10.0002Z",fill:"currentColor"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M0.833496 3.55556C0.833496 2.01519 2.09493 0.875 3.51868 0.875H16.4816C17.9054 0.875 19.1668 2.01519 19.1668 3.55556V17.4444C19.1668 18.9848 17.9054 20.125 16.4816 20.125H3.51868C2.09493 20.125 0.833496 18.9848 0.833496 17.4444V3.55556ZM3.51868 2.625C2.89693 2.625 2.50016 3.10156 2.50016 3.55556V17.4444C2.50016 17.8984 2.89693 18.375 3.51868 18.375H16.4816C17.1034 18.375 17.5002 17.8984 17.5002 17.4444V3.55556C17.5002 3.10156 17.1034 2.625 16.4816 2.625H3.51868Z",fill:"currentColor",fillRule:"evenodd"})]})}function UE(t){return(0,s.jsx)(Ls,{height:"15",viewBox:"0 0 16 15",width:"16",...t,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M2 6.51982C2 4.02359 4.02359 2 6.51982 2C9.01605 2 11.0396 4.02359 11.0396 6.51982C11.0396 9.01605 9.01605 11.0396 6.51982 11.0396C4.02359 11.0396 2 9.01605 2 6.51982ZM6.51982 0C2.91902 0 0 2.91902 0 6.51982C0 10.1206 2.91902 13.0396 6.51982 13.0396C8.06462 13.0396 9.48394 12.5024 10.6011 11.6045L13.9964 14.9998L15.4106 13.5856L11.9518 10.1268C12.6391 9.09384 13.0396 7.8536 13.0396 6.51982C13.0396 2.91902 10.1206 0 6.51982 0Z",fill:"currentColor",fillRule:"evenodd"})})}function $E(t){return(0,s.jsxs)(Ls,{height:"18",viewBox:"0 0 18 18",width:"18",...t,children:[(0,s.jsx)("path",{d:"M3.1665 6.08335C3.1665 4.01229 4.84544 2.33335 6.9165 2.33335C8.98757 2.33335 10.6665 4.01229 10.6665 6.08335C10.6665 6.37941 10.6324 6.66643 10.5681 6.9411C10.4634 7.38925 10.7417 7.83748 11.1899 7.94225C11.6381 8.04702 12.0863 7.76865 12.1911 7.3205C12.2841 6.92235 12.3332 6.50805 12.3332 6.08335C12.3332 3.09181 9.90805 0.666687 6.9165 0.666687C3.92496 0.666687 1.49984 3.09181 1.49984 6.08335C1.49984 6.46923 1.54032 6.84657 1.61756 7.21105C1.679 7.50095 1.76362 7.78236 1.86938 8.05316C1.97511 8.32389 2.10191 8.5839 2.24772 8.83119C2.48148 9.22764 2.99237 9.35953 3.38882 9.12577C3.78527 8.89201 3.91716 8.38112 3.6834 7.98467C3.58248 7.81352 3.49485 7.63379 3.42186 7.44688C3.34886 7.25994 3.29045 7.0657 3.24802 6.86551C3.1947 6.61395 3.1665 6.3524 3.1665 6.08335Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M9.18922 9.34412L14.8186 10.2697C16.2762 10.5117 17.3332 11.6819 17.3332 13.0521V16.6037C17.3332 17.0029 16.9837 17.3264 16.553 17.3264C16.122 17.3264 15.7728 17.0029 15.7728 16.6037V13.0521C15.7728 12.3826 15.2561 11.8108 14.5446 11.6926L8.30452 10.6667H8.30233C7.90851 10.6331 7.57585 10.2773 7.57585 9.8899V6.0524C7.57585 5.88733 7.48441 5.73325 7.33119 5.64046C7.17921 5.54853 6.99291 5.53668 6.82002 5.60606C6.63747 5.68035 6.51483 5.87085 6.51483 6.08044V15.3607C6.51483 15.6856 6.30169 15.9391 5.91441 16.0741C5.40325 16.2528 4.90988 16.0261 4.70516 15.7226L3.01346 13.2999C2.93513 13.1565 2.84963 13.09 2.68954 13.0406C2.59935 13.0249 2.47889 13.0408 2.37154 13.0906C2.2798 13.1394 2.22768 13.4826 2.38902 13.9902C2.41984 14.0542 3.0442 15.4844 3.27756 16.0189C3.32536 16.1284 3.35676 16.2003 3.36328 16.2152C3.47656 16.4494 3.49404 16.6994 3.40853 16.8957C3.33551 17.0631 3.1904 17.1911 2.98912 17.2663C2.893 17.3018 2.77099 17.3334 2.63742 17.3334C2.36124 17.3334 2.03826 17.1986 1.80702 16.6867L1.75272 16.5849C1.3289 15.6773 1.03464 14.952 0.90735 14.6382L0.905151 14.6328L0.896561 14.6115C0.87092 14.548 0.854463 14.5072 0.847419 14.4926C0.45609 13.3756 0.711983 12.3355 1.49527 11.8308C1.97428 11.5452 2.55316 11.4538 3.08867 11.5781C3.63572 11.7047 4.10288 12.0476 4.40371 12.5436L4.82936 13.2293V5.99429C4.82936 5.3563 5.1692 4.74981 5.7381 4.37228C6.30855 3.99359 7.0238 3.89848 7.69942 4.11153C8.55823 4.3824 9.13554 5.15654 9.13617 6.03881L9.18922 9.34412Z",fill:"currentColor"})]})}function WE(t){return(0,s.jsxs)(Ls,{height:"14",viewBox:"0 0 20 14",width:"20",...t,children:[(0,s.jsx)("path",{clipRule:"evenodd",d:"M19.548 2.09234C19.8255 2.23518 20 2.52116 20 2.83331V11.1666C20 11.4788 19.8255 11.7648 19.548 11.9076C19.2704 12.0505 18.9363 12.0262 18.6823 11.8448L12.849 7.67809C12.63 7.52166 12.5 7.2691 12.5 6.99998C12.5 6.73085 12.63 6.47829 12.849 6.32187L18.6823 2.1552C18.9363 1.97376 19.2704 1.9495 19.548 2.09234ZM14.7671 6.99998L18.3333 9.54732V4.45264L14.7671 6.99998Z",fill:"currentColor",fillRule:"evenodd"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M2.5 1.99998C2.03976 1.99998 1.66667 2.37308 1.66667 2.83331V11.1666C1.66667 11.6269 2.03976 12 2.5 12H11.6667C12.1269 12 12.5 11.6269 12.5 11.1666V2.83331C12.5 2.37308 12.1269 1.99998 11.6667 1.99998H2.5ZM0 2.83331C0 1.4526 1.11929 0.333313 2.5 0.333313H11.6667C13.0474 0.333313 14.1667 1.4526 14.1667 2.83331V11.1666C14.1667 12.5474 13.0474 13.6666 11.6667 13.6666H2.5C1.11929 13.6666 0 12.5474 0 11.1666V2.83331Z",fill:"currentColor",fillRule:"evenodd"})]})}function GE(t){return(0,s.jsx)(Ls,{height:"14",viewBox:"0 0 14 14",width:"14",...t,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M13.4646 2.46462L11.8484 0.848376L7.00023 5.69652L2.15186 0.848143L0.535612 2.46439L5.38399 7.31276L0.534668 12.1621L2.15091 13.7783L7.00023 8.92901L11.8493 13.7781L13.4656 12.1619L8.61648 7.31276L13.4646 2.46462Z",fill:"currentColor",fillRule:"evenodd"})})}var Lf=l(26372);const Ef=B,KE={classic:B,default:B,imaginative:K,organic:se},Sf=Object.assign(Lf.createContext(Ef),{displayName:"ThemeContext"});function _E(){return Lf.useContext(Sf)}function QE({themeId:t,...e}){return(0,s.jsx)(Sf.Provider,{...e,value:KE[t]??Ef})}function ZE(t){return(0,s.jsx)(s.Fragment,{children:t.children})}function YE(){return null}function Tf(t,e,n){function o(r){const i=_E()?.[t]?.[e]??n;return(0,s.jsx)(i,{...r,Default:n})}return o.displayName=`ThemeComponent(${e})`,o}function jt(t,e=ZE){return Tf("components",t,e)}function Ts(t){return Tf("icons",t,YE)}const XE=ne("cover");function JE({className:t="",dueAt:e}){const n=cl(),o=Va(),r=o==null||o.quizPassed||o.outOfAttempts,a=o2(e),i=XE("due-date",{urgent:a}).mix(t);return!e||n&&r?null:(0,s.jsx)("div",{className:i,tag:"div",children:h1(e)})}const qE=jt("CoverDueDate",JE);function eS(t){const{dueAt:e}=Bt(t);return{dueAt:e}}const tS=(0,W.Ng)(eS)(qE),ia=ne("cover"),sS=jt("CoverProgress",({nextLesson:t,percentComplete:e})=>{const n=(0,xe.Wz)(),o=(0,ot.useLabelsMap)();if(e===0||window.isPublicShare||!$e.BI)return null;const r=hi({percent:e,label:o.progressSummaryPercentComplete,isRTL:n});return(0,s.jsxs)("div",{className:ia("progress"),children:[(0,s.jsx)("div",{className:ia("progress-text"),children:r}),(0,s.jsx)("div",{className:ia("progress-outer"),children:(0,s.jsx)("div",{className:ia("progress-inner"),style:{width:`${e}%`}})}),t&&(0,s.jsxs)("div",{className:ia("progress-next-lesson"),children:[(0,s.jsx)(gf,{className:ia("progress-next-lesson-icon").toString(),decorative:"true"}),(0,s.jsx)("span",{"aria-hidden":"true",className:ia("progress-next-lesson-text"),children:t.title}),(0,s.jsxs)("span",{className:"visually-hidden",children:["Next lesson: ",t.title]})]})]})}),nS=()=>{const t=as();return(e,{currentLocale:n})=>{const o=t(n,e),r=Se(e);return{nextLesson:o,percentComplete:r}}},oS=Xe()(rt.wZ,(0,W.Ng)(nS))(sS),{useLabelsMap:rS}=l(69315),If=({failed:t,complete:e})=>{const n=rS();return(0,s.jsxs)("span",{className:"visually-hidden-always",children:[t?n?.a11yCoverRequirementFailed||"Requirement failed":e?n?.a11yCoverRequirementComplete||"Requirement complete":n?.a11yCoverRequirementIncomplete||"Requirement incomplete",": "]})},so=ne("cover");function aS(){const t=(0,xe.DX)(),e=(0,ot.useLabelsMap)(),{trackingCompletionPercentage:n,trackingQuizId:o}=t;return n==null&&!o?null:(0,s.jsxs)("section",{className:so("requirements-section"),children:[(0,s.jsx)("h2",{className:so("requirements-title"),children:e?.coverCourseRequirements||"Course Requirements"}),(0,s.jsxs)("ul",{className:so("requirements-list"),children:[(0,s.jsx)(iS,{}),(0,s.jsx)(cS,{})]})]})}function iS(){const{trackingCompletionPercentage:t}=(0,xe.DX)(),e=(0,xe.v1)(),n=Yn(),o=(0,ot.useLabelsMap)(),r=Math.ceil(t/100*e),a=r===e;if(t==null||r==null)return null;const i=n>=t,c=i?pE:fE;return(0,s.jsxs)("li",{className:so("lesson-requirement"),role:"listitem",children:[(0,s.jsx)(c,{"aria-hidden":"true",className:so("lesson-requirement-icon",{complete:i}).toString()}),(0,s.jsxs)("span",{className:so("lesson-requirement-text"),children:[(0,s.jsx)(If,{complete:i}),a?o?.coverCompleteAllLessons||"Complete all lessons in this course":[o?.coverCompleteLessonsName||"Complete",r,o?.coverCompleteLessonsPreposition||"of",e,o?.coverCompleteLessonsInCourse||"lessons in this course"].join(" ")]})]})}const lS={passed:CE,failed:gE,requirement:xE};function cS(){const t=(0,ot.useLabelsMap)(),e=ll(),n=Va(),o=(0,xe.Wz)(),r=Xt(e?.title),a=e?.settings?.passingScore;if(!r||!n)return null;const{outOfAttempts:i,quizPassed:c}=n,u=!c&&i;let d="requirement";c?d="passed":u&&(d="failed");const m=lS[d],p=hi({percent:a,label:t?.coverQuizPercentOrHigher||"% or higher",isRTL:o});return(0,s.jsxs)("li",{className:so("quiz-requirement"),role:"listitem",children:[(0,s.jsx)(m,{"aria-hidden":"true",className:so("quiz-requirement-icon",{type:d}).toString()}),(0,s.jsxs)("span",{className:so("quiz-requirement-text"),children:[(0,s.jsx)(If,{complete:c,failed:u}),r,a!=null&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{"aria-hidden":"true",className:so("quiz-requirement-seperator"),children:"\xA0|\xA0"}),t?.coverQuizScoreOf||"Score of"," ",p]}),u&&(0,s.jsx)("div",{className:so("quiz-requirement-no-attempts"),children:t?.coverNoAttemptsRemaining||"No attempts remaining"})]})]})}function Vl(t){const{to:e,children:n}=t,o=(0,ie.zy)(),r=(0,h.useMemo)(()=>(0,E2.B)(e,o),[o,e]);return(0,s.jsx)(ie.k2,{...t,to:r,children:n})}var G1=l(58215),dS=l(75641),uS=l(52447),hS=l(37076),mS=l(5567),pS=l(31143),fS=l(79925),vS=l(11540),gS=l(46638),CS=l(61397),xS=l(99507),bS=l(58483),yS=l(18859),LS=l(92893),ES=l(23518),SS=l(23416),TS=l(78788),IS=l(64061),NS=l(27696),jS=l(14723),kS=l(26539),AS=l(59006),RS=l(93602),PS=l(48505),wS=l(69547),MS=l(28715),OS=l(11598),DS=l(93468),BS=l(37783),HS=l(64045),FS=l(20222),zS=l(38597),VS=l(10087),US=l(58504),$S=l(35888),WS=l(32116),GS=l(95681),KS=l(28709),_S=l(26788),QS=l(15211),ZS=l(27327),YS=l(20438),XS=l(71523),JS=l(89163),qS=l(59664),eT=l(30835),tT=l(3262),sT=l(3337),nT=l(62932),oT=l(41175),rT=l(81805),aT=l(72317),iT=l(90711),lT=l(44296),cT=l(68922),dT=l(29373),uT=l(3346),hT=l(35819),mT=l(87846),pT=l(86193),fT=l(75565),vT=l(41625),gT=l(43007),CT=l(72358),xT=l(90402),bT=l(69872),yT=l(80499),LT=l(19293),ET=l(97995),ST=l(65138),TT=l(70976),IT=l(38147),NT=l(92635),jT=l(49343),kT=l(83961),AT=l(64066),RT=l(10816),PT=l(92909),wT=l(34414),MT=l(59042),OT=l(60461),DT=l(8927),BT=l(45312),HT=l(18684),FT=l(93309),zT=l(30332),VT=l(64777),UT=l(7123),$T=l(50747),WT=l(13368),GT=l(71902),KT=l(50238),_T=l(88119),QT=l(74275),ZT=l(44408),YT=l(67585),XT=l(73766),JT=l(687),qT=l(65129),eI=l(94494),tI=l(22355),sI=l(92506),nI=l(68342),oI=l(87214),rI=l(33737),aI=l(87750),iI=l(37723),lI=l(67608),cI=l(42934),dI=l(79315),uI=l(96784),hI=l(53825),mI=l(11887),pI=l(17259),fI=l(20152),vI=l(71822),gI=l(94715),CI=l(10138),xI=l(2608),bI=l(19294),yI=l(71875),LI=l(58065),EI=l(69909),SI=l(87065),TI=l(43990),II=l(93498),NI=l(94565),jI=l(45615),kI=l(35239),AI=l(8333),RI=l(5884),PI=l(2554),wI=l(47743),MI=l(95959),OI=l(51840),DI=l(58476),BI=l(72626),HI=l(69023),FI=l(46644),zI=l(98224),VI=l(59205),UI=l(47034),$I=l(86046),Nf=l(36005),WI=l(29015),GI=l(55892),KI=l(60614),_I=l(49894),QI=l(18296),ZI=l(56798),YI=l(7935),XI=l(4675),JI=l(72111),qI=l(88656),eN=l(2745),tN=l(80004),sN=l(81156),nN=l(23641),oN=l(32786),rN=l(47762),aN=l(72832),iN=l(25088),lN=l(40104),cN=l(15091),dN=l(18367),uN=l(69876),hN=l(26581),mN=l(12327),pN=l(81967),fN=l(68424),vN=l(32749),gN=l(1949),CN=l(7615),xN=l(65431),bN=l(21005),yN=l(51542),LN=l(15244);const EN={prefix:"fab",iconName:"rise-com",icon:[512,512,[],"e001","M248 3.34C111 3.34 0 114 0 252c0 137 111 248 248 248 137 0 248-111 248-248-.457-137-112-248-248-248zm0 421c-75.4 0-139-48-163-116l326 0c-23.8 67.7-88.2 116-163 116z"]},SN={prefix:"fab",iconName:"reach",icon:[182,182,[],"e001",["M181.97 99.3826C136.326 99.3826 99.3497 136.325 99.3497 181.926H35.1699C35.1699 100.912 100.881 35.2632 181.97 35.2632V99.3826Z","M41.5029 82.9278C64.4243 82.9278 83.0058 64.3638 83.0058 41.4639C83.0058 18.564 64.4243 0 41.5029 0C18.5815 0 0 18.564 0 41.4639C0 64.3638 18.5815 82.9278 41.5029 82.9278Z"]]},TN={prefix:"fab",iconName:"audio-plus",icon:[20,20,[],"e001","M1.5 8.75C1.5 8.34375 1.8125 8 2.25 8C2.65625 8 3 8.34375 3 8.75V10C3 12.2188 4.78125 14 7 14C7.71875 14 8.40625 13.8125 9 13.4688C9 13.5 9 13.5 9 13.5C9 14.0625 9.0625 14.5625 9.21875 15.0625C8.75 15.25 8.25 15.4062 7.75 15.4688V16.5H9.25C9.65625 16.5 10 16.8438 10 17.25C10 17.6875 9.65625 18 9.25 18H7H4.75C4.3125 18 4 17.6875 4 17.25C4 16.8438 4.3125 16.5 4.75 16.5H6.25V15.4688C3.5625 15.0938 1.5 12.8125 1.5 10V8.75ZM4 5C4 3.34375 5.34375 2 7 2C8.65625 2 10 3.34375 10 5V10C10 10.125 9.96875 10.25 9.96875 10.375C9.625 10.875 9.34375 11.4375 9.1875 12.0625C8.625 12.6562 7.84375 13 7 13C5.34375 13 4 11.6562 4 10V5ZM5.5 5V10C5.5 10.8438 6.15625 11.5 7 11.5C7.8125 11.5 8.5 10.8438 8.5 10V5C8.5 4.1875 7.8125 3.5 7 3.5C6.15625 3.5 5.5 4.1875 5.5 5ZM10 13.5C10 11.0312 12 9 14.5 9C16.9688 9 19 11.0312 19 13.5C19 16 16.9688 18 14.5 18C12 18 10 16 10 13.5ZM11 8.75C11 8.34375 11.3125 8 11.75 8C12.0312 8 12.2812 8.1875 12.4062 8.40625C11.875 8.625 11.4062 8.90625 11 9.28125V8.75ZM12 13.5C12 13.7812 12.2188 14 12.5 14H14V15.5C14 15.7812 14.2188 16 14.5 16C14.75 16 15 15.7812 15 15.5V14H16.5C16.75 14 17 13.7812 17 13.5C17 13.25 16.75 13 16.5 13H15V11.5C15 11.25 14.75 11 14.5 11C14.2188 11 14 11.25 14 11.5V13H12.5C12.2188 13 12 13.25 12 13.5Z"]},IN={prefix:"fab",iconName:"clone-plus",icon:[20,20,[],"e001","M4 16H11V14.5H13V16C13 17.1031 12.1031 18 11 18H4C2.89688 18 2 17.1031 2 16V9C2 7.89687 2.89688 7 4 7H5.5V9H4V16ZM7 11V4C7 2.89688 7.89687 2 9 2H16C17.1031 2 18 2.89688 18 4V11C18 12.1031 17.1031 13 16 13H9C7.89687 13 7 12.1031 7 11ZM12.5 4.5C12.0844 4.5 11.75 4.83437 11.75 5.25V6.75H10.25C9.83437 6.75 9.5 7.08437 9.5 7.5C9.5 7.91563 9.83437 8.25 10.25 8.25H11.75V9.75C11.75 10.1656 12.0844 10.5 12.5 10.5C12.9156 10.5 13.25 10.1656 13.25 9.75V8.25H14.75C15.1656 8.25 15.5 7.91563 15.5 7.5C15.5 7.08437 15.1656 6.75 14.75 6.75H13.25V5.25C13.25 4.83437 12.9156 4.5 12.5 4.5Z"]};var jf,NN;const jN={"alert-circle-solid":mT.lE,"alert-circle":GT.lE,"alert-diamond":aI.xG,"arrow-down-from-line":bT.xZ,"arrow-down-to-bracket":yT.a_,"arrow-down-to-line":LT.yH,"arrow-down":xT.B0,"arrow-left":ET.Ce,"arrow-right-from-line":TT.Pe,"arrow-right":ST.dm,"arrow-rotate-left-light":SS.V3,"arrow-rotate-left":IT.V3,"arrow-up-from-bracket":jT.MN,"arrow-up-from-line":kT.s8,"arrow-up-right-from-square":AT.faArrowUpRightFromSquare,"arrow-up":NT.IN,"arrows-two-from-center":uS.A1,"arrows-two-to-center":hS.hL,"badge-check":FS.Zs,"bar-chart":RT.X8,bars:zS.ck,"bars-regular":PT.ck,"block-selector":fT.iH,"book-open":MT.Re,"book-sparkles":OT.E4,book:wT.LB,"browser-light":pS.c9,browser:DT.c9,building:mS.UR,"cards-blank":BT.Xm,"caret-down":US.xB,"caret-right":$S.fU,"chart-column":HS.q9,"check-regular":gT.e6,check:VS.e6,"chevron-down-solid":WS.Jt,"chevron-down":HT.Jt,"chevron-left-light":fS.Wz,"chevron-left-solid":KS.Wz,"chevron-left":FT.Wz,"chevron-right-light":vS.Xk,"chevron-right-solid":_S.Xk,"chevron-right":zT.Xk,"chevron-up-solid":GS.w2,"chevron-up":VT.w2,"circle-arrow-right":YS.Ni,"circle-arrow-up":ZS.yi,"circle-check-regular":$T.QR,"circle-check-solid":XS.QR,"circle-check":jS.QR,"circle-dot":WT.pp,"circle-half-stroke":KT.B2,"circle-info":_T.faCircleInfo,"circle-notch":YT.s4,"circle-plus-duotone":kS.q_,"circle-plus-regular":QT.q_,"circle-plus":JS.q_,"circle-small-solid":qS.ZP,"circle-small":ZT.ZP,"circle-solid":QS.GE,"circle-x":eT.Ub,"circle-xmark":XT.bn,"circle-xmark-solid":tT.bn,"circle-xmark-duotone":AS.bn,circle:UT.GE,"clock-rotate-left":JT.Yj,clone:eI.$3,close:tI.yY,"closed-captioning":qT.UM,"code-fork-duotone":RS.zt,"code-fork-regular":sI.zt,code:yN.jT,comment:nI.DN,copy:oI.jP,crop:rI.K1,"edit-regular":iI.MT,"ellipsis-regular":lI.Dw,"ellipsis-vertical-regular":cI.nx,envelope:dI.y_,"external-link":uI.vM,"eye-slash":CS.k6,eye:gS.pS,"face-frown":TS.Ho,"face-laugh":IS.ou,"face-smile":NS.H8,"file-audio":mI.qe,"file-duotone":PS.A4,"file-export-light":bS.o1,"file-export":pI.o1,"file-import":fI.$M,"file-lines":vI.bL,"file-pdf-light":xS.O_,"file-pdf":gI.O_,file:hI.A4,"folder-image":CI.JK,"folder-open":wS.Uj,gear:xI.BH,globe:bI.Bw,"graduation-cap":yI.eS,"grid-2":LI.Qy,"grid-solid":sT.Qy,"grip-dots-vertical":EI.IM,"hand-pointer":SI.A8,"image-landscape":II.oC,"image-portrait":NI.E4,image:TI.jb,"info-circle":jI.iW,"layers-solid":hT.qI,"link-simple-slash":RI.r2,"link-simple":AI.wi,"link-slash":PI.TH,link:kI.CQ,list:wI.IT,"list-check":MI.UN,"location-dot":LS.gK,"lock-keyhole-light":yS.Yp,lock:nT.DW,"magnifying-glass-plus":DI.bM,"magnifying-glass":OI.$U,megaphone:pT.OR,"message-quote":BI.ps,"minus-solid":oT.EZ,minus:HI.EZ,paintbrush:MS.ue,palette:FI.fy,paste:zI.R9,pause:VI.G1,"pause-solid":rT.G1,"pen-line":UI.pg,"pen-to-square":$I.faPenToSquare,"pencil-duotone":OS.zL,"pencil-regular":CT.zL,"pencil-thin":LN.zL,pencil:ES.zL,"play-regular":Nf.ij,"play-solid":aT.ij,play:Nf.ij,"plus-regular":WI.QL,plus:GI.TS,"quote-left":KI.$7,"rectangle-history-circle-plus":QI.Hu,"rectangle-regular":_I.vt,"rectangle-vertical-history":ZI.Lt,rocket:YI.KM,"ruler-horizontal":XI.Si,"ruler-triangle":JI.cb,"sliders-simple":iT.AD,"sparkles-solid":lT.p7,sparkles:qI.p7,"spinner-third":eN.sq,"square-arrow-down":sN.Y1,"square-arrow-right":nN.mT,"square-arrow-up-right":oN.fL,"square-check-solid":cT.Dn,"square-check":rN.Dn,"square-duo":DS.Nf,"square-info":aN.Lg,"square-plus":iN.Vd,square:tN.Nf,"stopwatch-regular":lN.nw,table:cN.w9,tag:dN._2,text:uN.jw,"trash-can":mN.sj,trash:hN.yL,"user-group":dT.US,"users-regular":pN.gd,users:BS.gd,video:fN.n2,volume:vN.eF,volumeHigh:gN.AI,volumeLow:CN.gN,volumeXmark:xN.H_,"wand-magic-sparkles":bN.Ys,"waveform-lines":vT.Wx,xmark:uT.Jy},kN={"audio-plus":TN,"clone-plus":IN,reach:SN,"rise-com":EN};function ct({"aria-label":t,className:e,classNameIcon:n,color:o,"data-testid":r,name:a,rotation:i,spin:c,style:u,styleIcon:d}){return(0,s.jsx)("span",{className:e,"data-testid":r,style:{color:o,...u},children:(0,s.jsx)(dS.g,{"aria-label":t,className:n,icon:jN[a],rotation:i,spin:c,style:d})})}function cee({className:t,classNameIcon:e,color:n,name:o,style:r,styleIcon:a}){return jf("span",{className:t,style:{color:n,...r},children:jf(NN,{className:e,icon:kN[o],style:a})})}const kf="focus-lesson-content",dee="preview-nav-to-first-lesson",uee="preview-nav-to-cover-page",$t="preview-nav-to-lesson-item",hee="preview-scroll-to-nav-prev",mee="preview-scroll-to-header",K1="preview-clear-state",Md="preview-show-nav-prev",Od="preview-show-nav-next",Af="preview-nav-open",Rf="preview-nav-close",Pf="event-lesson-transition-start",wf="event-lesson-transition-end",Mf="event-lesson-nav-prev-visible",_1="event-lesson-nav-prev-hidden",Of="event-lesson-nav-next-visible",Q1="event-lesson-nav-next-hidden",Z1=new WeakMap,Df=new ResizeObserver(t=>{for(const e of t)Z1.get(e.target)?.(e)});function Dd(t,e){(0,h.useEffect)(()=>{if(t)return Z1.set(t,e),()=>Z1.delete(t)},[t,e]),(0,h.useEffect)(()=>{if(t)return Df.observe(t),()=>Df.unobserve(t)},[t])}function AN(){const t=(0,W.wA)(),[e,n]=(0,h.useState)(null),o=(0,ot.useLabelsMap)(),r=(0,h.useCallback)(a=>{t((0,G1.s)({offsetHeight:a.target.offsetHeight}))},[t]);return(0,h.useLayoutEffect)(()=>{if(e)return t((0,G1.s)({offsetHeight:e.offsetHeight})),()=>t((0,G1.s)(null))},[t,e]),Dd(e,r),(0,s.jsx)("button",{className:"visually-hidden btn-skip-to-lesson brand--ui",onClick:Bf,ref:n,type:"button",children:(0,s.jsxs)("span",{className:"btn-skip-to-lesson__wrap",children:[o?.courseSkipToLesson,(0,s.jsx)(ct,{"aria-hidden":"true",classNameIcon:"btn-skip-to-lesson__icon",name:"arrow-right"})]})})}function RN(t){(0,es.A)(kf,t,document)}function Bf(){document.dispatchEvent(new CustomEvent(kf))}const Hf=(0,h.createContext)(!1);function Ul({children:t,inert:e}){const n=Y1();return(0,s.jsx)(Hf.Provider,{value:n||e,children:t})}function Y1(){return(0,h.useContext)(Hf)}function PN(t){return t?.sessionPreferences}function X1(){return(0,W.d4)(PN)}const wN=(0,h.forwardRef)((t,e)=>{const{children:n,className:o="lesson-link-item-tooltip",dark:r,visible:a}=t,i=(0,h.useMemo)(()=>ne(o),[o]),c=(0,s.jsx)("div",{"aria-hidden":"true",ref:e,style:{left:0,pointerEvents:"none",position:"absolute",top:0,zIndex:Number.MAX_SAFE_INTEGER},children:(0,s.jsx)("div",{style:{pointerEvents:"all"},children:(0,s.jsx)("div",{className:i({visible:a}),children:(0,s.jsx)("div",{className:i("inner",{dark:r,light:!r}),children:n})})})});return(0,eo.createPortal)(c,document.getElementById("portal"))});function Ff(t){const{children:e,className:n,dark:o,restriction:r,tooltipClassName:a,style:i}=t,{prefersKeyboardNavigation:c}=X1(),u=(0,h.useRef)(),d=(0,h.useRef)(),m=(0,h.useRef)(),p=(0,ot.useLabelsMap)(),f=Y1(),[g,v]=(0,h.useState)(!1),C=(0,h.useCallback)(()=>v(!0),[]),x=(0,h.useCallback)(()=>v(!1),[]),L=(0,h.useCallback)(()=>{setTimeout(C,0)},[C]),y=(0,h.useCallback)(()=>{c&&x()},[x,c]),E=(0,h.useCallback)(R=>{cn(R)&&g&&(R.stopPropagation(),x())},[x,g]),b=(0,h.useCallback)(()=>{document.activeElement===u.current&&(clearTimeout(m.current),C())},[C]),S=(0,h.useCallback)(()=>{m.current=setTimeout(x,150)},[x]),T=(0,h.useCallback)(()=>{if(g){const R=u.current.getBoundingClientRect(),O=d.current.offsetParent.getBoundingClientRect(),{height:P,width:A}=R,F=R.left-O.left,w=R.top-O.top;Object.assign(d.current.style,{transform:`translate(${F}px, ${w}px)`,width:`${A}px`,height:`${P}px`})}},[g]);(0,h.useEffect)(()=>{f&&v(!1)},[f]),(0,h.useLayoutEffect)(()=>T(),[T]),(0,es.A)("resize",T,window),(0,es.A)("keydown",E,document),X2(u,x);const N=Xt(r?.data);let j;return r?.type===qt.XQ.QUIZ?j=`${p.quizRequirePassingScore}: "${N}"`:r?.type===qt.XQ.ORDER?j=p.lessonRestricted:r?.type===qt.XQ.KNOWLEDGE_CHECK&&(j=p.knowledgeCheckCorrectAnswerRequiredNav),(0,s.jsxs)("div",{"aria-disabled":!0,className:n,onBlur:y,onFocus:L,onMouseEnter:b,onMouseLeave:S,ref:u,role:"link",style:i,tabIndex:f?-1:0,children:[e,(0,s.jsx)("div",{className:"visually-hidden-always",children:p?.a11yRestrictedNav}),(0,s.jsx)("div",{className:"visually-hidden-always",children:j}),(0,s.jsx)(wN,{className:a,dark:o,ref:d,visible:g,children:j})]})}function MN(t){const{b:e,children:n,"data-direction":o,isCurrentLesson:r,isTooltipEnabled:a,lessonId:i,onClick:c=Function.prototype,onFocus:u,onHideProgressTooltip:d,onNavigate:m=Function.prototype,onShowProgressTooltip:p,restriction:f,showProgressDelay:g,style:v}=t,C=Y1(),{theme:{progressIndicatorStyle:x=M.Y2.THEME_DEFAULT}}=(0,xe.DX)(),L=x===M.Y2.THEME_DEFAULT,y=(0,h.useCallback)(P=>{c(P),r?(P.preventDefault(),Bf()):m(i)},[i,r,c,m]),[E,b]=(0,h.useState)(!1),S=(0,h.useCallback)(P=>{!E&&a&&(g!=null?setTimeout(p,g):p()),u?.(P)},[E,u,g,p,a]),T=(0,h.useCallback)(P=>{a&&cn(P)&&d()},[d,a]),N=(0,h.useCallback)(()=>{a&&b(!0)},[a]),j=(0,h.useCallback)(()=>{a&&b(!1)},[a]),R=f?.type!=null,O=e("link",{active:r,restricted:R,"theme-default":L}).toString();return R?(0,s.jsx)(Ff,{...t,className:O,style:v}):(0,s.jsx)(Vl,{"aria-current":"page",className:O.toString(),"data-direction":o,"data-nav-item":"",onBlur:a?d:void 0,onClick:y,onFocus:S,onKeyDown:T,onMouseDown:N,onMouseUp:j,style:v,tabIndex:C?-1:void 0,to:(0,qt.p1)(i),children:n})}function $l(t){const{className:e="lesson-link-item",isCurrentLesson:n,last:o,lessonId:r,style:a}=t,i=(0,h.useMemo)(()=>ne(e),[e]),c=dt(r),u=c?.type!=null,{isComplete:d=!1}=yn(r)??{},m=i({active:n,complete:d,last:o,restricted:u});return(0,s.jsx)("div",{className:m,children:(0,s.jsx)(MN,{...t,b:i,isCurrentLesson:n,restriction:c,style:a})})}const ON=ne("lesson-nav"),DN=t=>{const{children:e,finish:n,lessonId:o,onFocus:r}=t,a=(0,je.Z)();if(o)return(0,s.jsx)($l,{className:"lesson-nav-link",onFocus:r,tooltipClassName:"lesson-nav-link-tooltip",...t});const i=n?"/lessons/progress-summary":"/",c=u=>{u.preventDefault(),Zo(()=>{a(i)},i==="/"?"lesson-to-cover":"default")};return(0,s.jsx)("span",{className:"lesson-nav-link",children:(0,s.jsx)(Ln,{className:"lesson-nav-link__link","data-direction":t["data-direction"],onClick:c,onFocus:r,to:i,children:e})})},BN=({buttonScheme:t,accentContrast:e,children:n,className:o,direction:r,finish:a,navLessonId:i,onFocus:c,restrictionType:u},d)=>{const m=u!=null,p=ta(),g={className:ON(null,{[r]:!0,accent:t===M.LE.ACCENT,dark:t===M.LE.DARK,floating:p===M.AY.FLOATING,"floating-full":p===M.AY.FLOATING_FULL,finish:a,full:p===M.AY.FULL,light:t===M.LE.LIGHT,restricted:m,tint:t===M.LE.TINT}).mix(o),[`data-${r}-lesson`]:!0};return(0,s.jsx)("div",{ref:d,...g,children:(0,s.jsx)(DN,{accentContrast:e,"data-direction":r,finish:a,lessonId:i,onFocus:c,children:n})})};function HN(t,e){const{currentLocale:n}=e,o=Bt(t),r=(0,ot.selectLabelsMap)(n,t);return{buttonScheme:o.buttonScheme,accentContrast:o.theme?.accentContrast,labelLessonRestricted:r.lessonRestricted,labelQuizRequirePassingScore:r.quizRequirePassingScore}}const FN=Xe()(rt.wZ,(0,W.Ng)(HN,null,null,{forwardRef:!0}),h.forwardRef)(BN),zN={CoverCompletedInformation:A8,CoverDueDate:tS,CoverProgress:oS,CoverRequirements:aS,ImageEagerOrLazy:N1,LessonNav:FN};function VN({children:t}){return(0,s.jsx)(Ux,{...zN,children:t})}var UN=l(3282),$N=l(68106),zf;const Vf={"rise-course-navigation":!0},WN={"ai-assistant-settings":!0,"ai-assistant-summaries":!0,"ai-assistant-quizzes":!0,"ai-assistant-blocks":!0,"ai-text-to-video":!1,"ai-assistant-images":!0,"ai-assistant-magic-block-import":!0,"ai-assistant-writing":!0,"ai-assistant-enable":!0,"ai-assistant-thumbs-feedback-ui":!1,"ai-assistant-subscription-override":!1,"ai-assistant-next-gen-chat-prototype":!1,"experiment-business-creator-role":!1,"experiment-new-delivery-formats":!1,"rise-ai-avatar-prompt-testing":!1,"rise-com-360-upsell":!0,"rise-update-block":!1},J1=(0,h.createContext)(Vf);J1.displayName="FeatureFlagsContext";const{Provider:GN}=J1;function KN({children:t,value:e}){const n=(0,h.useMemo)(()=>({...WN,...e,...Vf}),[e]);return(0,s.jsx)(GN,{value:n,children:t})}function Bd(){return(0,h.useContext)(J1)}function _N(t){return Bd()[t]}function fee(t){function e(n){const o=Bd();return zf(t,{...n,flags:o})}return e.displayName=`withFeatureFlags(${t.displayName||t.name})`,e}function vee(t,e){return function(n){const o=r=>{const a=_N(t),i={...r,[e]:a};return zf(n,{...i})};return o.displayName=`withFeatureFlag(${n.displayName||n.name})`,o}}const Uf=({children:t})=>(0,s.jsx)(s.Fragment,{children:t});Uf.displayName="On";const $f=({children:t})=>(0,s.jsx)(s.Fragment,{children:t});$f.displayName="Off";const Hd=({children:t,featureFlags:e})=>{const n=Bd(),o=(0,h.useMemo)(()=>{const i=[].concat(e??[]);return i.length&&i.every(c=>n[c])},[e,n]),{on:r=null,off:a=null}=(0,h.useMemo)(()=>{const i={};return h.Children.forEach(t,c=>{switch(c.type.displayName){case Hd.On.displayName:i.on=c;break;case Hd.Off.displayName:i.off=c;break;default:i.on=t}}),i},[t]);return o?r:a};Hd.On=Uf,Hd.Off=$f;const QN={};function ZN({children:t}){const e=(0,W.wA)(),n=Bd();return(0,UN.A)(()=>{e((0,$N.G)(n))},[n]),t}function YN({children:t}){const n=Rt()?.features??QN;return(0,s.jsx)(KN,{value:n,children:(0,s.jsx)(ZN,{children:t})})}var XN=l(97303),q1=l(56883),JN=l(7766),no=l.n(JN);const qN=t=>$e.BI?t??"":t?`${t} | ${$e.mZ}`:$e.mZ,Wl=t=>(0,$e.Hm)()?t:qN(t);let eh=!1;function la({children:t,title:e,isExplicit:n=!1}){const o=Wl((0,xe.d_)()),r=e??o;return h.useEffect(()=>{if(n)return eh=!0,document.title=r,()=>{eh=!1};eh||(document.title=r)},[r,n]),(0,s.jsx)(s.Fragment,{children:t})}var ej=l(97533),tj=l.n(ej),sj=l(45459),nj=l(82349);const th=Object.assign((0,h.createContext)(void 0),{displayName:"BlockContext"});function sh({block:t,children:e}){const[n,o]=(0,h.useState)(t);return(0,h.useEffect)(()=>o(r=>t||r),[t]),(0,s.jsx)(th.Provider,{value:n,children:(0,s.jsx)(lh,{...n?.settings,children:e})})}const Cee=th.Consumer;function Is(){return(0,h.useContext)(th)}function Fd(t){return function(n){const o=Is();return(0,s.jsx)(t,{...n,block:o})}}const oj={text:{backgroundType:"blockTextBackgroundType",backgroundColor:"blockTextBackgroundColor",backgroundColorContrast:"blockTextBackgroundColorContrast",paddingStart:"blockTextPaddingStart",paddingEnd:"blockTextPaddingEnd",bodyFontSize:"blockTextBodyFontSize",headingFontSize:"blockTextHeadingFontSize",subheadingFontSize:"blockTextSubheadingFontSize"}};function rj(t,e){if(!t||!e)return null;const n=oj[t];if(!n)return null;const o=r=>r?e[r]:void 0;return{backgroundType:o(n.backgroundType),backgroundColor:o(n.backgroundColor),backgroundColorContrast:o(n.backgroundColorContrast),paddingStart:o(n.paddingStart),paddingEnd:o(n.paddingEnd),bodyFontSize:o(n.bodyFontSize),headingFontSize:o(n.headingFontSize),subheadingFontSize:o(n.subheadingFontSize)}}function mi(){const t=Is(),e=(0,xe.DX)(),n=t?.family,o=e?.theme;return(0,h.useMemo)(()=>rj(n,o),[n,o])}var aj=l(30717),ij=l.n(aj),lj=l(47681),cj=l.n(lj),dj=l(65982),Wf=l.n(dj),uj=l(9117),hj,mj,pj,fj,nh,Gf,ca;const Kf=2,xee=(t,e,n)=>t??e??n,_f=(t,e,n,o)=>t??e??n??o,Dn=ij()({WHITE:null,TRANSPARENT:null}),vj={markerColorContrast:M.Em.AUTO,paddingBottom:3,paddingLinked:!0,paddingTop:3,snippetColorContrast:M.Em.AUTO},gj={knowledge:["knowledge"],knowledgeCheck:["draw from question bank","fillin","matching","multiple choice","multiple response"],flashcard:["flashcard","stack"],interactive:["accordion","tabs"],"interactive-fullscreen":["sorting","timeline","process"],multimedia:["attachment","embed"],quote:["carousel"],survey:["survey"]};function Cj(t,e){return gj[t]?.includes(e)??!1}const xj={360:{storyline:"#fafafa"},impact:{c:"#ececec",d:"#f5f5f5"},"interactive-fullscreen":{timeline:"#f5f5f5"},quote:{d:"#f5f5f5"}};function oh(t,e){const n=xj[t]?.[e];return n==null?{}:{backgroundColor:n,backgroundType:M.xj.COLOR}}const bj={360:["storyline"],knowledge:["knowledge"],knowledgeCheck:["multiple choice","multiple response","fillin","matching"],flashcard:["flashcard"],impact:["note"],interactive:["accordion","tabs"],"interactive-fullscreen":["scenario","sorting","timeline"],multimedia:["attachment","code"],quote:["background","carousel"],survey:["survey"],text:["code"]};function bee(t,e){return bj[t]?.includes(e)??!1?.1:.5}function yj(t){switch(t.backgroundType){case M.xj.COLOR:return t.backgroundColor;case M.xj.ACCENT:return t.courseColor;case M.xj.TINT:return(0,ft.WA)(t.courseColor);case M.xj.LIGHT:return"#ffffff";case M.xj.GRAY:return"#fafafa";case M.xj.DARK:return"#303030";case M.xj.BLACK:return"#000000"}}const Lj={multimedia:{embed(t){return{cardMode:t.showBorder===!1?Dn.TRANSPARENT:Dn.WHITE}}}};function Ej(t,e,n){return Sj(t,e,n)}function Sj(t,e,n){const o=oh(t,e);(n.v==null||n.v<Kf)&&(n=Tj(n),n.backgroundColor?.toLowerCase()==="#ffffff"&&Object.keys(o).length===0&&(n=cj()("backgroundColor",n)));const r=Lj[t]?.[e]?.(n),a=n.backgroundColor&&n.backgroundType==null?{backgroundType:M.xj.COLOR}:{};return[{accentColor:null},vj,r,n,a,{v:Kf}].reduce((u,d)=>d==null?u:{...u,...Wf()(uj.A,d)},{})}function Tj(t){return{...t,backgroundType:null,cardMode:null,v:1}}const Ij={text:["table"],divider:["divider","numbered divider","spacing divider"],knowledgeCheck:["draw from question bank"],multimedia:[]};function yee(t,e){return!Ij[t]?.includes(e)}const Nj={};function Lee(t,e){return!Nj[t]?.includes(e)}function jj(t){return t===fj.LIGHT?ca.LIGHT:ca.DARK}function kj(t,e){if(e===nh.AUTO){const n=hj(t),o=mj[n](t);return pj(o)===nh.DARK?ca.DARK:ca.LIGHT}else return e===nh.LIGHT?ca.LIGHT:ca.DARK}function Eee(t,e,n,o,r){const a=t?.backgroundType;return t?.cardMode===Dn.TRANSPARENT?a===Gf.IMAGE?jj(e?.overlayColor):o&&a!==Gf.ACCENT?r:kj(n,t?.customBackgroundColorContrast):o?r:ca.DARK}const Aj={interactive:["accordion","tabs"],"interactive-fullscreen":["labeledgraphic","process","timeline"],list:["numbered","bulleted","checkboxes"],impact:["a","b","c","d","note"],quote:["a","b","c","d","background","carousel"],text:["paragraph","heading paragraph","subheading paragraph","two column","three column","four column"]};function See(t,e){return Aj[t]?.includes(e)??!1}const Rj=new RegExp(/^#([a-f0-9]{6}|[a-f0-9]{3})$/,"i"),rh=(t,e)=>Rj.test(e)?e:t;function Rs(t){const{contrast:e=M.Em.AUTO,backgroundColor:n="#fff"}=t,o=rh("#fff",n),r=(0,ft.xD)(o);return e===M.Em.DARK||e===M.Em.AUTO&&r===M.Em.DARK?lt.S6.DARK:lt.S6.LIGHT}const Pj=t=>t.blockBackgroundType??t.familyBackgroundType??t.courseBackgroundType??t.blockTypeFallbackType??M.xj.LIGHT,wj=t=>t.effectiveBackgroundType===M.xj.COLOR?t.blockBackgroundColor||t.familyBackgroundColor||t.courseBackgroundColor||t.blockTypeFallbackColor||null:t.settingsBackgroundColor??null,Mj=t=>t.blockCustomContrast??t.familyBackgroundColorContrast??t.courseBackgroundColorContrast??M.Em.AUTO,Qf=t=>{const{family:e,variant:n,customBackgroundColorContrast:o}=t;return!o&&(e==="image"&&n!=="text aside"||e==="chart"||n==="sorting")},Zf=t=>(0,ft.cP)(t)?M.Em.LIGHT:M.Em.DARK,Oj=t=>{const{backgroundType:e,backgroundColor:n,accentColor:o,customBackgroundColorContrast:r,accentContrast:a,family:i,variant:c}=t;if(!(e===M.xj.ACCENT||e===M.xj.COLOR))return null;const d=e===M.xj.ACCENT?o:n;let m;return e===M.xj.ACCENT?m=a:Qf({family:i,variant:c,customBackgroundColorContrast:r})?m=Zf(n):m=r??M.Em.DARK,Rs({backgroundColor:d??void 0,contrast:m})},Dj=t=>Oj(t)===lt.S6.LIGHT,Bj=t=>{const{backgroundColor:e,family:n,variant:o,blockCustomContrast:r,familyBackgroundColorContrast:a,courseBackgroundColorContrast:i}=t,c=r??a??i??M.Em.AUTO,d=Qf({family:n,variant:o,customBackgroundColorContrast:c})?Zf(e):c;return Rs({backgroundColor:e??void 0,contrast:d})};var ah=l(12747);const Hj=t=>{const{effectiveBackgroundType:e,blockImage:n}=t;return e!==M.xj.IMAGE?null:n??null},Fj=t=>(0,Fs.I6)(t?.alt),zj=t=>{if(!t)return null;const{alpha:e,overlayColor:n=M.df.DARK}=t,o=(0,Ft.ME)(t),r=n===M.df.LIGHT?M.qH:M.KJ;return(0,ah.A)({alpha:e,color:r,url:o})};function Ro(){const t=(0,xe.DX)(),e=mi(),n=Ys(),o=Is(),r=o?oh(o.family,o.variant):{};return Pj({blockBackgroundType:n?.backgroundType,familyBackgroundType:e?.backgroundType,courseBackgroundType:t?.theme?.blockBackgroundType,blockTypeFallbackType:r.backgroundType})}function Vj(){return Ro().toLowerCase()}function zd(){const t=Is(),e=Ro(),n=t?.background,o=(0,nt.QQ)(n?.media)?.image;return Hj({effectiveBackgroundType:e,blockImage:o})}function Uj(){const t=zd();return Fj(t)}function $j(){const t=zd();return zj(t)}function Wj(){const t=zd();return!!t&&t?.overlayColor===M.df.LIGHT}function Gj(){const t=Is(),e=t?.family,n=t?.variant,o=Cj(e,n),r=t?.settings?.cardMode??Dn.WHITE;return o?r.toLowerCase():null}function Kj(){const t=En(),e=t?(0,ft.XC)(t):ft.lL.LIGHT;return ei()(e.toLowerCase())}function _j(){const t=Is(),e=(0,xe.DX)(),n=mi();return Mj({blockCustomContrast:t?.settings?.customBackgroundColorContrast,familyBackgroundColorContrast:n?.backgroundColorContrast,courseBackgroundColorContrast:e?.theme?.blockBackgroundColorContrast})}function Qj(){const t=(0,xe.DX)(),e=Ys(),n=En(),o=Is(),r=Ro(),a=_j(),i=e.accentColor||t?.theme?.colorAccent;return Dj({accentColor:i,accentContrast:t?.theme?.accentContrast,backgroundColor:n,backgroundType:r,customBackgroundColorContrast:a,family:o?.family,variant:o?.variant})}function Zj(){const t=Is(),e=(0,xe.DX)(),n=En(),o=mi();return Bj({backgroundColor:n,blockCustomContrast:t?.settings?.customBackgroundColorContrast,courseBackgroundColorContrast:e?.theme?.blockBackgroundColorContrast,family:t?.family,familyBackgroundColorContrast:o?.backgroundColorContrast,variant:t?.variant})}function Yj(){const t=Is(),e=t?.settings?.backgroundType,n=!t?.settings?.customBackgroundColorContrast;return e==null||n}function Xj(){const t=Vj(),e=Kj(),n=Gj(),o=Qj(),r=Wj(),a=Yj(),i=En(),c=$j(),u=Uj();return{backgroundColor:i,backgroundImageAlt:u,backgroundImageCss:c,backgroundTypeLowercase:t,cardMode:n,colorRange:e,isContrastLight:o,isLegacyBackground:a,isOverlayLight:r}}var Yf=l(26372);const Xf=Object.assign((0,h.createContext)({}),{displayName:"BlockSettingsContext"});function Ys(){return(0,h.useContext)(Xf)}const Jj="settings";function ih(t){return e=>{const n=Yf.forwardRef((o,r)=>{const a=Ys(),i={...o,[t??Jj]:a};return(0,s.jsx)(e,{...i,ref:r})});return n.displayName=`withBlockSettings(${e.displayName||e.name})`,n}}function En(){const t=(0,xe.DX)(),e=Ys(),n=mi(),o=Ro(),r=Is();if(e==null)return null;const a=r?oh(r.family,r.variant):{},i=wj({effectiveBackgroundType:o,blockBackgroundColor:e.backgroundColor,familyBackgroundColor:n?.backgroundColor,courseBackgroundColor:t?.theme?.blockBackgroundColor,blockTypeFallbackColor:a.backgroundColor,settingsBackgroundColor:e.backgroundColor}),c={...e,backgroundType:o,backgroundColor:i};return yj(c)}const qj="backgroundColor";function ek(t){return e=>{const n=Yf.forwardRef((o,r)=>{const a=En(),i={...o,[t??qj]:a};return(0,s.jsx)(e,{ref:r,...i})});return n.displayName=`withBackgroundColor(${e.displayName||e.name})`,n}}function lh({children:t,...e}){const n=Is(),o=Ys(),r=(0,xe.kJ)(),a=(0,h.useMemo)(()=>{const i=n==null?e:Ej(n.family,n.variant,e);return{courseColor:r,...o,...i}},[n,e,r,o]);return(0,s.jsx)(Xf.Provider,{value:a,children:t})}var Jf=l(48147),tk=l(85151),sk=l(52605),qf=l(19735),nk=l(6513),ch=l.n(nk),ok;const Tee=t=>{const e=t.value.length;t.focus(),t.setSelectionRange(e,e)},Iee=t=>{const e=ok(["current","editor"],t);if(!e)return null;const n=e.value.length;return e.focus(),e.setSelectionRange(n,n),t};function ev(t){return Array.prototype.slice.call(t)}function dh(t,e){const n=t.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;if(e==="start")return n.top>=0;if(e==="center"){if(n.height>o)return n.top<=0&&n.bottom>=o;const a=o/2,i=n.top+n.height/2,c=o*.25;return Math.abs(a-i)<c}return e==="end"?n.bottom<=o:n.top>=0&&n.left>=0&&n.bottom<=o&&n.right<=r}function tv({anchor:t,popover:e,positionX:n}){if(!t||!e)return null;const o=t.getBoundingClientRect(),a=window.getComputedStyle(t).direction==="rtl",i=window.getComputedStyle(e),c=parseFloat(i.marginTop),u=e.offsetWidth,d=window.visualViewport??{width:window.innerWidth,height:window.innerHeight},m=o.top+o.height+e.offsetHeight+c>d.height?o.top-(c*2+e.offsetHeight):o.top+o.height;let p;if(n==="center"){const f=o.left+o.width/2;p=a?d.width-f-u/2:f-u/2}else n==="right"?p=a?d.width-o.left-u:o.right-u:p=Math.min(a?d.width-o.right:o.left,d.width-u);return{left:p,top:m}}const pi="group",rk="tablist",ak="tabpanel",ik="tab",Nee="radio",lk=({element:t,isHidden:e})=>{t&&t.setAttribute("aria-hidden",e?"true":"false")},Gl=({caption:t,editable:e,id:n,isOverlayType:o,getL10nValue:r})=>{const a=!!(!o&&!e&&r(t));return{figcaptionId:a?`figcaption-${n}`:void 0,isFigure:a,role:a?"figure":void 0,tagName:a?"figure":"div"}};var uh=l(87507);const sv=":focus{outline: none}",ck=":focus:not(:focus-visible){outline: none}",nv="focus-ring-style",hh=()=>document.getElementById(nv)||dk(),dk=()=>{const t=document.createElement("style");return t.id=nv,document.head.appendChild(t),t},Vd=0,Ud=-1,uk=()=>{const t=hh();document.addEventListener("mousedown",()=>{setTimeout(()=>{t.innerHTML=sv},0),(0,W.JD)((0,uh.xi)(!1))}),window.addEventListener("keydown",ov)},ov=t=>{const e=t.target,n=hh();(Td(t)||di(t)&&!e.classList.contains("ignore-prefers"))&&(n.innerHTML="",(0,W.JD)((0,uh.xi)(!0)))},rv=({focusVisible:t}={})=>hh().innerHTML=t?ck:sv,Kl=t=>t?Vd:Ud,av=(t,e)=>{const n=t||{},o=e!==Vd;n.tabIndex=e,lk({element:t,isHidden:o})},mh=({element:t,selector:e,tabIndex:n})=>{ev(t.querySelectorAll(e)).forEach(r=>{av(r,n)})},iv=({list:t,index:e})=>{e>=0&&e<vs()(t)&&t[e].focus()},hk=({list:t,currentIndex:e})=>{const n=_n()(e||0),o=n<vs()(t)?n:0;return iv({list:t,index:o}),o},mk=({list:t,currentIndex:e})=>{const n=ch()(e||vs()(t));return iv({list:t,index:n}),n};var _l=l(55693),fi=l(49792),pk=l(16904),os=l.n(pk),fk=l(82676),vi=l.n(fk),vk=l(90769),ph=l.n(vk),gk=l(30349),Ck=l.n(gk);const xk=D1()(ph()(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i),os()("#FFF")),bk=vi()({color:xk}),yk=({accentContrast:t,bodyTypeface:e,color:n,headingTypeface:o,isLegacyCourse:r,uiTypeface:a})=>{const i=(0,h.useMemo)(()=>{const d=!(0,ft.Wn)(n),m=(0,ft.xD)(n),p=t===M.Em.DARK||t===M.Em.AUTO&&m===M.Em.DARK;return!r&&(t&&p||!t&&d)?[lt.S6.DARK,lt.S6.LIGHT]:[lt.S6.LIGHT,lt.S6.DARK]},[t,n,r]),[c,u]=i;return(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:Ck()({bodyTypeface:e,colorThemeRGB:(0,fi.A)(n)?.slice(0,3),colorTheme:n,colorThemeContrast:c,colorThemeContrastComplementary:u,colorThemeContrastComplementaryRGB:(0,fi.A)(u)?.slice(0,3),colorThemeContrastRGB:(0,fi.A)(c)?.slice(0,3),colorThemeTint:(0,ft.WA)(n),colorThemeTransparent:n+"1A",headingTypeface:o,uiTypeface:a})}})},fh=Xe()(yk,bk);fh.displayName="Branding",fh.propTypes={bodyTypeface:Ge().string,color:Ge().string.isRequired,headingTypeface:Ge().string,uiTypeface:Ge().string};const Lk=(0,h.memo)(fh);var Ek=l(26372);const lv="riseUnsupportedBrowser",Sk={authoring:/Android|webOS|iPhone|iPad|iPod|BlackBerry|MSIE|Trident/,runtime:/MSIE/},Tk=t=>new RegExp(Sk[t],"i").test(window.navigator.userAgent);class cv extends Ek.Component{render(){return Tk(this.props.env)&&!window.sessionStorage.getItem(lv)?this.renderUnsupported():this.props.children}renderUnsupported(){return(0,s.jsxs)("div",{children:[this.props.children,(0,s.jsx)("div",{className:"browser-support",children:(0,s.jsxs)("div",{className:"browser-support__inner",children:[(0,s.jsx)("p",{className:"browser-support__text browser-support__text--full",children:"You\u2019re using an unsupported browser. For better results, use a modern browser.\xA0"}),(0,s.jsx)("p",{className:"browser-support__text browser-support__text--mobile",children:"Unsupported browser"}),(0,s.jsxs)("a",{className:"browser-support__link",href:"https://articulate.com/support/article/System-Requirements-for-Rise",rel:"noopener noreferrer",target:"_blank",children:[(0,s.jsx)("span",{children:"Learn more"}),(0,s.jsx)("i",{className:"icon icon-chevron-right"})]}),(0,s.jsx)("div",{className:"browser-support__dismiss",onClick:this.handleDismiss.bind(this),children:(0,s.jsx)("span",{className:"browser-support__dismiss-icon",children:"\xD7"})})]})})]})}handleDismiss(){window.sessionStorage.setItem(lv,"true"),this.forceUpdate()}}cv.propTypes={env:Ge().string.isRequired};const Po={get isInstantLink(){return!!window.InstantLinks?.publicId}},gi=ne("cover");function Ik(){const{categories:t}=(0,xe.DX)();return!Array.isArray(t)||t.length===0?null:(0,s.jsxs)("section",{className:gi("categories-section"),children:[(0,s.jsx)("h2",{className:gi("categories-title"),children:"Topics"}),(0,s.jsx)("ul",{className:gi("categories-list"),role:"list",children:t.map(e=>(0,s.jsxs)("li",{className:gi("categories-item"),role:"listitem",children:[(0,s.jsx)(uE,{className:gi("categories-icon")}),(0,s.jsx)("span",{className:gi("categories-item-wrap"),children:e})]},e))})]})}const Nk=qa("CoverCompletedInformation"),jk=qa("CoverDueDate"),kk=qa("CoverRequirements"),Ak=ne("cover"),Rk=t=>{const{courseId:e,coursePartnerContent:n,hasPartnerContent:o,publishedAt:r,tenantId:a}=t;return o?(0,s.jsx)(yd,{type:"partner-content",children:(0,s.jsx)(_2,{courseId:e,partnerContent:n,publishedAt:r,tenantId:a})}):null},Pk=jt("CoverCourseInfo",t=>{const{courseId:e,coursePartnerContent:n,hasLogo:o,hasPartnerContent:r,publishedAt:a,tenantId:i}=t,c=Ak("details-content-aside",{logo:o});return(0,s.jsxs)("div",{className:c,children:[$e.BI&&(0,s.jsx)(L1,{}),(0,s.jsx)(Rk,{courseId:e,coursePartnerContent:n,hasPartnerContent:r,publishedAt:a,tenantId:i}),$e.BI&&!r&&(0,s.jsx)(Px,{}),$e.BI&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(kk,{}),(0,s.jsx)(jk,{}),(0,s.jsx)(Nk,{}),(0,s.jsx)(Ik,{})]})]})}),wk=ne("cover"),Mk=jt("CoverDescription",()=>{const t=(0,xe.DX)(),{navigation:e}=t,n=(0,nt.QQ)(t.description),o=e?"description":"description-no-outline";if(!n)return null;const r=Ya("description"),a=(0,ds.uW)(t.description)?{"data-l10n-id":t.description.l10nId}:{"data-change-path":r};return(0,s.jsx)("div",{...a,children:(0,s.jsx)(yd,{type:o,children:(0,s.jsx)(Tt,{className:wk("details-content-description"),value:m1(n)},"text")})})}),dv=ne("cover"),Ok=({className:t=dv("details-logo"),imageClassName:e=dv("details-logo-image")})=>{const n=(0,xe.DX)()??{},o=(0,nt.QQ)(n.media)?.image??{},{height:r,key:a,width:i,scalar:c=lt.C_.SMALL.value}=o,u={width:i*c,height:r*c};if(!a)return null;const d=(0,Ft.ME)(o);return(0,s.jsx)("div",{className:t,"data-testid":"cover-details-logo",children:(0,s.jsx)("img",{alt:"",className:e,"data-testid":"cover-details-logo-image",height:u.height,src:d,width:u.width})})},Dk=(t,e)=>{const n=Qt()(["lessons",e],t),o=Lt()(0,["percentComplete"],n),r=Qt()(["passed"],n);return{isComplete:Qt()(["isComplete"],n),percentComplete:o,passedQuiz:r}};function Bk({icon:t,...e}){switch(t){case lt.xA.ARTICLE:return(0,s.jsx)(mC,{...e});case lt.xA.INTERACTION:return(0,s.jsx)(q7,{...e});case lt.xA.QUIZ:return(0,s.jsx)(S7,{...e});case lt.xA.VIDEO:return(0,s.jsx)(p8,{...e});default:return(0,s.jsx)("i",{className:"icon icon-Master-02"})}}var Ql=l(84550);function oo(){const t=(0,ie.RQ)("/lessons/:currentLessonId"),e=(0,ie.RQ)("/lessons/:currentLessonId/:mode");return t?.params?.currentLessonId??e?.params?.currentLessonId}var Jo=l(65328);const Hk=jt("LessonProgressGraphic");function $d({canComplete:t,id:e,isDark:n,isEnabled:o,isTooltipVisible:r,onHideTooltip:a,onShowTooltip:i,scope:c}){const{color:u,navigationStyle:d}=Rt(),m=yn(e),p=oo(),f=Lo(e),g=wc(e),v=dt(e),C=(0,ot.useLabelsMap)(),x=v?.type!=null,L=m?.isComplete,y=e===p,E=m?.percentComplete??0,b=(0,h.useCallback)(()=>{(0,W.JD)((0,Jo.eQ)(e))},[e]),S=(0,h.useCallback)(()=>{(0,W.JD)((0,Jo.ss)(e))},[e]);return(0,s.jsx)(of,{canComplete:t,color:u,hasRestriction:x,isComplete:L,isCurrentLesson:y,isDark:n,isEnabled:o,isFailed:f,isPassed:g,isTooltipVisible:r,labels:C,navigationStyle:d,onHideTooltip:a,onMarkComplete:b,onMarkReset:S,onShowTooltip:i,percentComplete:E,progressGraphic:Hk,scope:c})}const Fk=ne("overview-list-item");function zk({className:t,id:e,last:n}){const o=(0,je.Z)(),r=oo(),{color:a,isLegacyCourse:i,navigationStyle:c,theme:u}=Rt(),{accentContrast:d}=u,{icon:m,title:p}=nn(e)??{},f=Xt(p),g=yn(e),v=Lo(e),C=wc(e),x=dt(e),L=(0,ot.useLabelsMap)(),y=(0,ds.uW)(p)?{"data-l10n-id":p.l10nId}:{"data-change-path":u2(e,"title")},E=g?.isComplete,b=g?.percentComplete??0,S=x?.type!=null,[T,N]=(0,h.useState)(!1),j=(0,h.useCallback)(()=>N(!0),[]),R=(0,h.useCallback)(()=>N(!1),[]),O=Q()("overview-list__li",{"overview-list__li--last":n}),P=Q()(t,"overview-list-item"),A=(0,h.useCallback)(F=>{const{currentTarget:{hash:w}}=F;F.preventDefault(),Ql.Ay.Events.scrollEvent.register("end",()=>{Zo(()=>{o(w.slice(1))},"cover-to-lesson"),Ql.Ay.Events.scrollEvent.remove("end")}),Ql.Ay.animateScroll.scrollTo(0,{containerId:"overview"})},[o]);return(0,s.jsx)("li",{...y,className:O,"data-testid":`overview-list-item-${e}`,role:"listitem",children:(0,s.jsx)($l,{className:P,isTooltipEnabled:!0,lessonId:e,onBlur:R,onClick:A,onHideProgressTooltip:R,onShowProgressTooltip:j,showProgressDelay:25,tooltipClassName:"overview-list-item-tooltip",children:(0,s.jsx)($k,{accentContrast:d,color:a,hasRestriction:S,isComplete:E,isCurrentLesson:e===r,isFailed:v,isLegacyCourse:i,isPassed:C,isTooltipVisible:T,labels:L,lessonIcon:m,lessonId:e,lessonTitle:f,navigationStyle:c,onHideTooltip:R,onShowTooltip:j,percentComplete:b,progressGraphic:Vk,scope:lt.by.COVER})})})}const Vk=jt("LessonProgressGraphic");function Uk({isTooltipVisible:t,lessonIcon:e,lessonId:n,lessonTitle:o,onHideTooltip:r,onShowTooltip:a,scope:i}){const c=Fk("progress-circle");return(0,s.jsxs)("div",{className:c,children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"overview-list-item__icon",children:(0,s.jsx)(Bk,{icon:e})}),(0,s.jsx)("span",{className:"overview-list-item__title","data-testid":`overview-list-item-title-${n}`,children:o}),(0,s.jsx)($d,{canComplete:!1,id:n,isDark:!1,isEnabled:!0,isTooltipVisible:t,onHideTooltip:r,onShowTooltip:a,scope:i})]})}const $k=jt("OverviewListItemLinkContent",Uk),Wk=({value:t,fallback:e})=>{const n=(0,nt.QQ)(t),o=(0,pt.pP)(t);return e?(0,s.jsx)("span",{"data-l10n-id":o,children:n||e}):(0,s.jsx)("span",{"data-l10n-id":o,children:n})};function Gk({value:t,children:e}){const n=(0,nt.QQ)(t);return e(n)}const is=Wk,Kk=ne("overview-list"),_k=t=>t.reduce((e,n)=>(n.type==="section"?e.push([n]):e[e.length-1]?e[e.length-1].push(n):e.push([n]),e),[]),Qk=jt("OverviewListSectionTitle",({className:t="",...e})=>{const n=Ld()(["Default"],e);return(0,s.jsx)("h2",{...n,className:`${t} overview-list__section-title`})}),Zk=({courseProgress:t,lessons:e})=>{const n=(0,ot.useLabelsMap)(),o=_k(e);return(0,s.jsx)("nav",{"aria-label":n?.a11yRegionNavOverview,className:"overview-list",children:o.map((r,a)=>{const[i={},...c]=r,{title:u,type:d}=i,m=d==="section",p=m?c:r,f=Kk("list",{sectionless:!m});return(0,s.jsxs)("section",{children:[m&&u&&(0,s.jsx)(Qk,{children:(0,s.jsx)(is,{value:u})}),(0,s.jsx)("ol",{className:f,role:"list",children:p.map((g,v)=>{const{passedQuiz:C}=Dk(t,g.id);return(0,s.jsx)(zk,{id:g.id,last:p.length>1&&v===p.length-1,passedQuiz:C},g.id)})})]},a)})})};function Yk(t){const e=Bt(t),n=Zr(t),o=ul(t),r=Gr({course:e,courseProgress:n});return{course:e,courseProgress:n,lessons:o,restrictingQuiz:r}}const Xk=(0,h.memo)((0,W.Ng)(Yk)(Zk));function Jk(t){return t?.partnerContent?.content??[]}function vh(){return(0,W.d4)(Jk)}const qk=t=>Object.values(lt.C_).find(e=>e.value==t);function eA(t){return(0,h.useMemo)(()=>qk(t)??lt.C_.SMALL,[t])?.label.toLowerCase()}const Ci=ne("cover"),tA=jt("CoverDetails",({reverseColumns:t})=>{const e=Ss(1200),{description:n,id:o,media:r,navigation:a,partnerContentId:i,publishedAt:c,selectedAuthorId:u,tenantId:d}=Rt(),m=vh(),p=ys()(It()("id",u),m),f=!!i&&p,g=Xt(r)?.image,v=!rs()(g),C=!n||!a,x=!n&&!a,L=!!(f||$e.BI),y=Ci("details",{"rise-com":$e.BI,"rise-com-authoring":$e.BI&&!c}),E=Ci("details-content-wrap",{columns:L,logo:v}),b=Ci("details-content",{"no-description-or-outline":C}),S=Ci("details-logo",{centered:x,"no-description-or-outline":C,"has-partner-content":!!i}),T=L&&(0,s.jsx)(Pk,{courseId:o,coursePartnerContent:p,hasLogo:v,hasPartnerContent:f,publishedAt:c,tenantId:d}),N=eA(g?.scalar),j=Ci("details-logo-image",{[N]:!0}),R=Ci("details-description-outline");return(0,s.jsx)("section",{className:y,"data-testid":"cover-details",children:(0,s.jsxs)("div",{className:E,children:[!e&&t&&T,(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)(Ok,{className:S,imageClassName:j}),(0,s.jsxs)("div",{className:R,children:[n&&(0,s.jsx)(Mk,{}),e&&T,a&&(0,s.jsx)(yd,{type:"outline",children:(0,s.jsx)(Xk,{})})]})]}),!e&&!t&&T]})})}),sA=jt("CoverHeader"),nA=jt("CoverLayout");var oA=l(10126),rA=l(20515),aA=l.n(rA);const iA=["[href]",'[tabindex]:not([tabindex=""])',"audio[controls]","button:not([disabled])","details:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","summary:not([disabled])","textarea:not([disabled])","video[controls]","aal-tab","aal-tab-panel"].map(t=>`${t}:not([tabindex="-1"]):not([hidden]):not([aria-hidden="true"])`).join(", "),uv=(t,e=!1)=>n=>{const o=hv(n);if(o.length===0)return;const r=t>=o.length&&e?0:t;return aA()(r,o)},hv=t=>t?Array.from(t.querySelectorAll(iA)).filter(e=>window.getComputedStyle(e).display!=="none"):[],mv=uv(0),lA=uv(-1),gh=t=>mv(t)?.focus?.();function cA(){const t=(0,h.useRef)(null);function e(n){const o=mv(t.current),r=lA(t.current);Td(n)&&(n.shiftKey?document.activeElement===o&&(r.focus(),n.preventDefault()):document.activeElement===r&&(o.focus(),n.preventDefault()))}return(0,h.useEffect)(()=>{const n=t?.current;return n?.addEventListener("keydown",e),()=>{n?.removeEventListener("keydown",e)}},[]),t}var Ch,dA,xh=l(26372);const bh=xh.createContext(null);bh.displayName="UndoManagerContext";function Oee(t){const n=dA("rise-undo")===!0?t.undoManager:null;return Ch(bh,{value:n,children:t.children})}function pv(){return xh.useContext(bh)}function Dee(t){function e(n){const o=pv();return Ch(t,{...n,undoManager:o})}return e.displayName=`withUndoManager(${t.displayName||t.name})`,e}function fv(){const t=pv();xh.useEffect(()=>{if(t!=null)return t.disable(),()=>t.enable()},[t])}function Bee(t){function e(n){return fv(),Ch(t,{...n})}return e.displayName=`withDisableUndoManager(${t.displayName||t.name})`,e}const Sn=ne("modal"),vv=h.forwardRef((t,e)=>{const{children:n,className:o,"data-testid":r,darkOverlay:a,disableBackgroundScroll:i,disableCloseOnOverlayClick:c,disableCloseOnEscape:u=!1,focusFirstInput:d=!0,footer:m,forceToTop:p=!1,fullscreen:f=!1,heading:g,hideCloseButton:v=!1,hideHeader:C=!1,skipDialogClose:x=!1,useTopLayer:L=!0,onCancel:y,onClose:E=Qs.lQ,onClickBack:b,onCloseBubbles:S=!1,onOverlayClick:T,scroll:N=!1,subHeading:j,subText:R,width:O}=t;fv();const P=cA(),A=(0,h.useRef)(null),F=(0,h.useCallback)(()=>{const _=P.current;!x&&_?.open&&_.close(),E()},[E,P,x]);(0,h.useEffect)(()=>{const _=ee=>{cn(ee)&&!u&&(ee.preventDefault(),ee.stopPropagation(),y?.(ee),F())};return document.addEventListener("keydown",_,!S),()=>{document.removeEventListener("keydown",_,!S)}},[u,y,F,S]),(0,h.useEffect)(()=>{const _=P.current;return L?_?.showModal():_?.show(),()=>{_?.close()}},[P,L]),(0,h.useEffect)(()=>{if(d&&P.current){const _=hv(P.current).find(q=>q.tagName==="INPUT"||q.tagName==="TEXTAREA"||q.tagName==="SELECT"),ee=_||A?.current;ee?.focus(),ee instanceof HTMLTextAreaElement&&ee.setSelectionRange(ee.value.length,ee.value.length)}},[d,P]),(0,h.useEffect)(()=>(i&&(document.scrollingElement||document.documentElement).classList.add("no-scroll"),()=>{i&&(document.scrollingElement||document.documentElement).classList.remove("no-scroll")}),[i,P]);const w=Sn({"force-to-top":p}).mix(o),D=Sn("content",{"with-footer":!!m,"force-scroll":!!N}),V=Sn("overlay",{dark:!!a});return(0,s.jsxs)("dialog",{"aria-labelledby":"modal-heading","aria-modal":"true",className:w.toString(),"data-testid":r,onClose:F,ref:_=>{P.current=_,e&&(e.current=_)},role:"dialog",children:[(0,s.jsx)("div",{id:"modal-portal"}),(0,s.jsx)("div",{className:V,onClick:c?void 0:T||F}),(0,s.jsxs)("div",{className:Sn("dialog",{fullscreen:f}),style:O&&!f?{width:O}:{},children:[(!C||!v)&&(0,s.jsxs)("div",{className:Sn("heading-wrapper"),children:[(0,s.jsxs)("div",{className:Sn("heading-flexbox"),children:[!C&&(0,s.jsxs)("div",{className:Sn("header"),children:[b&&(0,s.jsx)(Mt.ArcButton,{"aria-label":"back to previous page",hierarchy:"secondary",icon:"fa-regular fa-arrow-left",layout:"icon",onClick:b,shape:"square",size:"md",type:"button"}),(0,s.jsxs)("h1",{className:Sn("heading"),id:"modal-heading",children:[g,(0,s.jsx)("span",{className:Sn("subheading"),children:j})]})]}),!v&&(0,s.jsx)("button",{"aria-label":"close dialog",className:Sn("close"),onClick:F,ref:A,type:"button",children:(0,s.jsx)(ct,{className:"icon",name:"close"})})]}),R?(0,s.jsx)("h2",{className:Sn("subtitle"),children:R}):[]]}),(0,s.jsx)("div",{className:D,children:n}),m&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:Sn("footer-shadow")}),(0,s.jsx)("div",{className:Sn("footer"),children:m})]})]})]})});var yh=l(77156),Cs=l(37198);const gv=new Intl.DisplayNames(["en"],{type:"language",fallback:"code"}),uA=(t,e)=>{const n=t?.toLowerCase();try{return e?.[n]?.authorDisplayName??gv.of(t)}catch(o){return console.warn(`Language ${t} invalid`,o),t}},hA=(t,e)=>{try{return e?.[t]?.learnerDisplayName??gv.of(t)}catch(n){return console.warn(`Language ${t} invalid`,n),t}},Lh=()=>{const t=(0,nt.iR)(),e=(0,pt.vC)(t);return(0,h.useCallback)(o=>uA(o,e),[e])},mA=()=>{const t=(0,nt.iR)(),e=(0,pt.vC)(t);return(0,h.useCallback)(o=>hA(o,e),[e])},xi=ne("locale-selector"),Eh=({onClose:t})=>{const e=(0,ie.zy)(),n=(0,xe.DX)(),o=(0,nt.MQ)(),r=(0,nt.jc)(),a=(0,nt.bs)(),i=a?.length?a:o&&r?r?.map(S=>S.locale):void 0,[c,u]=(0,h.useState)(!1),d=c&&(i?.length||0)>1,m=(0,tt.A)(d),p=Xt(n.title),{currentLocale:f,setCurrentLocale:g}=(0,rt.nY)(),v=mA(),C=(0,xe.vU)(),[x,L]=(0,h.useState)(!1),y=(0,h.useCallback)(S=>{(0,Je.xS)(S),g(S)},[g]),E=()=>{(0,W.JD)((0,yh.Wp)(!1))};(0,h.useEffect)(()=>{m&&!d&&t?.()},[t,m,d]),(0,h.useEffect)(()=>{if(!i||x||o===void 0||!r)return;if(i.length===1){y(i[0]),L(!0);return}const S=(0,Je.y4)(void 0),T=(0,Je.JK)()??"";if(T!==""){y(T),L(!0),u(!1);return}S?.[oA.WY]==null&&T===""?u(!0):(u(!1),E());const j=(navigator.language??"en-US").toLowerCase(),R=i.find(O=>O.toLowerCase()===j);y(R?j:i[0]),L(!0)},[i,e,y,x,o,r,u]);const b=S=>{S.preventDefault();const T=S.target.value;y(T)};return!d||o===void 0||!r?null:(0,s.jsx)(Cs.B1,{classNames:"modal",timeout:400,children:(0,s.jsx)(vv,{className:xi("modal"),disableCloseOnOverlayClick:!0,hideCloseButton:!0,hideHeader:!0,onClose:E,children:(0,s.jsxs)("div",{className:xi("container"),children:[(0,s.jsx)("div",{className:xi("heading"),children:C.l10nChooseLanguage}),(0,s.jsx)("div",{className:xi("course-title"),children:p}),(0,s.jsx)("div",{className:xi("selector"),children:(0,s.jsx)("select",{onChange:b,value:f,children:i.map(S=>(0,s.jsx)("option",{value:S,children:v(S)},S))})}),(0,s.jsx)("div",{className:xi("footer"),children:(0,s.jsx)(Mt.ArcButton,{onClick:E,size:"lg",children:C.l10nChooseLanguageContinue})})]})})})};var pA=l(26372);const fA=ne("cover-container"),Cv=()=>document.querySelector("h1")?.focus({preventScroll:!0});function vA({didNavigate:t}){const n=(0,ot.useLabelsMap)()?.overviewPageTitleSuffix,o=Bs();return pA.useEffect(()=>{t&&Cv()},[t]),(0,s.jsxs)(la,{title:Wl(`${o} - ${n}`),children:[(0,s.jsx)("main",{children:(0,s.jsx)("div",{className:fA({}),children:(0,s.jsxs)(nA,{children:[(0,s.jsx)(sA,{}),(0,s.jsx)(tA,{})]})})}),(0,s.jsx)(Eh,{onClose:Cv})]})}const xv=vA;var Sh=l(22204);const bv=(0,wl.action)(Sh.l6),Zl=(0,wl.action)(Sh.ju),Lr=(0,wl.action)(Sh.Y8),yv=(0,h.createContext)(void 0);function Wd(){const t=(0,h.useContext)(yv);return t||(console.warn("useMediaContext must be used within a MediaProvider"),{mode:"readonly",openTranscript:null,closeTranscript:null,lessonId:"",uploadAudio:null,aiEnabled:!1,aiWriterContext:void 0,removeMediaRecordType:void 0,removeItemMedia:void 0,handleOpenMediaModal:void 0,showAssetLibraryDialog:void 0,hideAssetLibraryDialog:void 0,handleDelete:void 0})}function Lv(t){function e(n){const o=Wd();return(0,s.jsx)(t,{...n,...o})}return e.displayName=`WithMediaContextWrapper(${t.name})`,e}function ro(t){return t.refs?ei()("audio-id__refs_"+t.refs.toLowerCase()):""}function Th(t){if(t)return`audio-transcript--${t}`}function Ev(t){if(t)return`audio-player-transcript-toggle--${t}`}function gA({children:t,lessonId:e,mode:n="readonly",openTranscript:o,closeTranscript:r,disableTranscriptButton:a=!1}){const i=(0,ks.y4)(),d={mode:n,lessonId:e||"",openTranscript:o||(({item:m,refs:p})=>{if(!m)return;const f="media"in m?m.media:null;return i(bv({audioPlayerId:ro({refs:p}),transcriptMedia:f}))}),closeTranscript:r||(()=>i(Zl())),disableTranscriptButton:a,uploadAudio:null,aiEnabled:!1,aiWriterContext:void 0,removeMediaRecordType:void 0,removeItemMedia:void 0,handleOpenMediaModal:void 0,showAssetLibraryDialog:void 0,hideAssetLibraryDialog:void 0,handleDelete:void 0};return(0,s.jsx)(yv.Provider,{value:d,children:t})}const Sv=ne("course-exit");function Tv(t){const e=(0,ot.useLabelsMap)(),{className:n,lmsOptions:o,style:r}=t;return o?.enableExitCourse?(0,s.jsx)("div",{className:Sv("wrapper"),children:(0,s.jsx)("button",{className:Sv("button").mix(n),onClick:$e.NS,style:r,type:"button",children:e?.courseExit})}):null}const Ih=ne("nav-control"),CA=()=>{const[t,e]=(0,h.useState)(!1);return(0,es.A)(Mf,()=>e(!0)),(0,es.A)(_1,()=>e(!1)),t},xA=({"aria-controls":t,isNavOpen:e,toggleNav:n,hideNav:o})=>{const{buttonNavigationStyle:r,lmsOptions:a,showNavigationButtons:i,...c}=(0,xe.DX)(),u=(0,h.useRef)(null),[d,m]=(0,h.useState)(0),p=(0,ot.useLabelsMap)(),f=Rl(),g=yo(),v=CA(),x=!!(0,h.useMemo)(()=>c.lessons?.find(T=>T.id===g),[c.lessons,g])?.settings?.timer,L=a?.enableExitCourse,y=x||L,E=c.navigationType===M.br.COMPACT,b=E?"fixed-course-exit":void 0;(0,h.useEffect)(()=>{u.current=document.querySelector(".page-wrap");const N=document.querySelector(".lesson-nav--previous")?.clientHeight??60,j=!i||r===M.AY.FLOATING&&!f;function R({target:O}){const P=O?.scrollTop??0,A=N-P;m(A)}return v&&!j?u.current.scrollTop===0?m(N):u.current.addEventListener("scroll",R):m(0),()=>u.current.removeEventListener("scroll",R)},[r,f,v,i]);const S=(0,h.useCallback)(()=>{const T=document.getElementsByClassName("nav-control__menu--top-nav-bar")?.item(0);if(u.current&&T){const N=u.current.offsetWidth-u.current.clientWidth||0;T.style.maxWidth=`calc(100% - ${N}px)`}},[]);return(0,h.useLayoutEffect)(()=>{y&&S()},[y,S]),(0,s.jsx)("div",{className:Ih("wrapper"),children:(0,s.jsxs)("div",{className:Ih("menu",{"is-timed-quiz":x,"nav-off":o,"top-nav-bar":y}),style:{marginTop:d},children:[!o&&(!E||f)&&(0,s.jsx)("button",{"aria-controls":t,"aria-expanded":e,"aria-label":e?p?.a11yNavigationMenuClose:p?.a11yNavigationMenuOpen,className:Ih("button"),onClick:n,type:"button",children:(0,s.jsx)(ct,{classNameIcon:"page-menu-toggle__icon",name:"bars-regular"})}),(0,s.jsx)(Tv,{className:b,lmsOptions:a})]})})};var xs=l(12489);const Iv=ne("nav-compact"),bA=jt("NavCompactHeaderCounter",t=>{const{lessonPosition:e,labelLessonName:n,labelLessonPreposition:o,totalLessons:r}=t;return e<=0?null:(0,s.jsx)("div",{className:Iv("header-counter"),"data-testid":"nav-compact-counter",children:`${n} ${e} ${o} ${r}`})}),yA=jt("NavCompactHeaderProgress",t=>{const{classProgressRunner:e,classProgressText:n,classProgressTrack:o,percentComplete:r,percentCompleteText:a,navExpanded:i}=t;return(0,s.jsxs)("div",{className:Iv("header-progress"),"data-testid":"nav-compact-progress",children:[(0,s.jsx)("div",{className:n,children:a}),(0,s.jsx)(wd,{"aria-hidden":i,"aria-label":a,progress:r,runnerClass:e,trackClass:o})]})}),LA=({closeNav:t,isExpanded:e,openNav:n})=>{const o=(0,je.Z)(),r=(0,W.wA)(),a=ar(),i=Rt(),c=Bs(),u=Yn(),d=(0,ot.useLabelsMap)(),m=Fe(),p=Hr(),f=yo(),g=op(),v=(0,h.useMemo)(()=>i?.lessonsOnly?.length??0,[i?.lessonsOnly]),C=(0,h.useMemo)(()=>g[f]??-1,[g,f]),x=a?.navigationStyle,L=(0,h.useMemo)(()=>(0,Pt.FH)(x),[x]),y=(0,h.useCallback)(()=>{e?t():n()},[e,n,t]),E=a?.exportSettings?.webExportSettings,b=!Po.isInstantLink&&(a?.lmsOptions?.disableCoverPage||E?.disableCoverPage),S=(0,h.useCallback)(Ve=>{Ve.preventDefault(),Zo(()=>{o("/")},"lesson-to-cover")},[o]),j=`${(0,xe.Wz)()?`%${u}`:`${u}%`} ${d?.lessonComplete??""}`,{alpha:R,ariaLabel:O,media:P,role:A}=qr("coverImage"),F=(0,h.useMemo)(()=>(0,Pt.b9)({alpha:R,color:a?.theme?.coverImageColor,media:P}),[R,a?.theme?.coverImageColor,P]),w=Q()("nav-compact__header",{"nav-compact__header--collapsed":!e}),D=Q()("nav-compact__header-image",{"nav-compact__header-image--collapsed":!e}),V="nav-compact__header-inner",_="nav-compact__header-control",ee=Q()("nav-compact__header-title-link",{"nav-compact__header-title-link--collapsed":!e}),q=Q()("nav-compact__header-progress-text",{"nav-compact__header-progress-text--collapsed":!e}),fe=Q()("nav-compact__header-progress-track",{"nav-compact__header-progress-track--collapsed":!e}),ye=Q()("nav-compact__header-progress-runner",{"nav-compact__header-progress-runner--collapsed":!e}),Ie="nav-compact__header-strip",we=(0,h.useCallback)(()=>{r((0,xs.ts)(!m?.active))},[r,m?.active]);return(0,s.jsxs)("section",{"aria-label":"Course Information",className:w,"data-testid":"nav-compact-header",children:[L&&F&&(0,s.jsx)("div",{"aria-label":O,className:D,role:A,style:F}),(0,s.jsxs)("div",{className:V,children:[(0,s.jsxs)("div",{className:Ie,children:[(0,s.jsxs)("div",{className:"nav-compact__header-controls",children:[a?.allowSearch&&p!=="restricted"&&e&&(0,s.jsx)("button",{"aria-label":d?.a11ySearchOpen,className:`${_} nav-compact__header-search`,"data-testid":"nav-compact-search",onClick:we,type:"button",children:(0,s.jsx)(Fl,{className:"nav-compact__header-control-icon nav-compact__header-search-icon"})}),(0,s.jsxs)("button",{"aria-controls":"nav-compact-outline","aria-expanded":e,"aria-label":e?d?.a11yNavigationMenuClose:d?.a11yNavigationMenuOpen,className:`${_} nav-compact__header-toggle`,"data-testid":"nav-compact-toggle",onClick:y,type:"button",children:[e&&(0,s.jsx)(hE,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"}),!e&&(0,s.jsx)(mE,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"})]})]}),(0,s.jsx)(bA,{labelLessonName:d?.lessonName??"",labelLessonPreposition:d?.lessonPreposition??"",lessonPosition:C,totalLessons:v})]}),(0,s.jsx)("div",{className:"nav-compact__header-title","data-testid":"nav-compact-title",children:b?(0,s.jsx)("span",{className:ee,children:c}):(0,s.jsx)(Ln,{className:ee,onClick:S,to:"/",children:c})}),(0,s.jsx)(yA,{classProgressRunner:ye,classProgressText:q,classProgressTrack:fe,navExpanded:e,percentComplete:u,percentCompleteText:j})]})]})};var EA=l(54918),Nv=l.n(EA),Wee=l(88179),SA=l(32849),jv=l.n(SA),TA=l(93510),IA=l.n(TA),NA=l(81775),jA=l.n(NA),kA,AA,RA,PA,wA;function kv(t,e,n="..."){const o=t?t.toString():"";return o.length>e?o.substr(0,e-1)+n:o}const Gee=t=>wA(e=>AA(e)>t,RA(0,t)),MA=null,OA=t=>MA.test(t),DA=t=>t>=0,BA=t=>t<=100,Kee=t=>t==="",_ee=t=>OA(t)&&BA(t)&&DA(t),Qee=t=>String(Number(t)),Av=Xe()(Sl()(""),Nv()(IA(),0)),Zee=Xe()(Sl()(" "),Mn()(Av),jv()(" ")),Rv=Xe()(Sl()(" "),jv()(/(?=[A-Z]|^)/)),Yee=t=>t?kA(Av,PA,Rv)(t):"",Xee=Xe()(jA(),Rv);function Pv({id:t,isEnabled:e,isSectionLesson:n,last:o}){const{navigationStyle:r}=Rt(),a=Xr(t),i=oo(),c=m0(t),u=(0,h.useMemo)(()=>(0,Pt.I8)(r),[r]),d=t===i,m=kv(a||"",45),[p,f]=(0,h.useState)(!1),g=(0,h.useCallback)(()=>f(!0),[]),v=(0,h.useCallback)(()=>f(!1),[]),C=n?"nav-compact__outline-section-item":"nav-compact__outline-item",x=(0,s.jsx)($d,{canComplete:c,id:t,isDark:u,isEnabled:e,isTooltipVisible:p,onHideTooltip:v,onShowTooltip:g,scope:lt.by.COMPACT});return(0,s.jsxs)("li",{className:"nav-compact__outline-list-item","data-testid":`nav-compact-lesson-${t}`,role:"listitem",children:[(0,s.jsxs)($l,{className:C,dark:u,isCurrentLesson:d,isTooltipEnabled:!c,last:o,lessonId:t,onHideProgressTooltip:v,onShowProgressTooltip:g,showProgressDelay:0,tooltipClassName:`${C}-tooltip`,children:[m,!c&&x]}),c&&x]})}const HA=ne("nav-compact"),FA=({id:t})=>{const e=nn(t),n=Xt(e?.title),o=HA("outline-section-empty");return(0,s.jsx)("div",{className:o,children:(0,s.jsx)("span",{children:n})})};var bi=l(26372);const zA=({index:t,isEnabled:e,lessonIds:n,id:o})=>{const r=Rt(),a=r?.theme,i=r?.themeId,c=a?.navigationSectionsExpanded??!0,u=nn(String(o)),d=Xt(u?.title),[m,p]=bi.useState(c);bi.useEffect(()=>{p(c)},[c]);const[f,g]=bi.useState(),v=bi.useRef(null),C=`sublistCompact-${t}`,x=String(i),L=Q()("nav-compact__outline-section-toggle-icon",{"nav-compact__outline-section-toggle-icon--collapsed":!m}),y=Q()("nav-compact__outline-section-list",{"nav-compact__outline-section-list--collapsed":!m}),E=Q()("nav-compact__outline-section-toggle",{"nav-compact__outline-section-toggle--collapsed":!m}),b=bi.useCallback(()=>{p(S=>!S)},[]);return bi.useLayoutEffect(()=>{const S=setTimeout(()=>{v.current&&g(v.current.scrollHeight)},0);return()=>{clearTimeout(S)}},[n.length,x]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{"aria-controls":C,"aria-expanded":m,className:E,onClick:b,tabIndex:e?void 0:-1,type:"button",children:[(0,s.jsx)("span",{className:"nav-compact__outline-section-toggle-text",children:d}),(0,s.jsx)(xf,{className:L})]}),(0,s.jsx)(Ul,{inert:!m,children:(0,s.jsx)("ol",{"aria-hidden":m?void 0:!0,className:y,id:C,ref:v,role:"list",style:{maxHeight:f},children:n.map((S,T)=>(0,s.jsx)(Pv,{id:S,isEnabled:e&&m,isSectionLesson:!0,last:T===n.length-1},S))})})]})},VA=({index:t,isEnabled:e,lessonIds:n})=>{const[o,...r]=n,a="nav-compact__outline-item nav-compact__outline-section";return rs()(r)?(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(FA,{id:o})}):(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(zA,{id:o,index:t,isEnabled:e,lessonIds:r})})},UA=({index:t,isEnabled:e,lessonIds:n})=>Oc(n)?(0,s.jsx)(VA,{index:t,isEnabled:e,lessonIds:n}):n.map((r,a)=>(0,s.jsx)(Pv,{id:r,isEnabled:e,isSectionLesson:!1,last:a===n.length-1},r)),$A=t=>t.displayName||t.name||"Component";var WA=l(1212),GA=l.n(WA);function KA(t,e,n){const o=[];let r=0;return n.replace(t,function(...a){const i=a.length,c=a[0],u=a[i-1],d=a[i-2],m=u.slice(r,d),p=typeof e=="function"?e(...a):e;return o.push(m,p),r=d+c.length,""}),o.push(n.slice(r)),o}const _A=(t,e)=>(0,s.jsx)("mark",{children:t},e),QA=(t,e)=>KA(new RegExp(GA()(e),"igm"),_A,t);var ZA=l(62664),wv=l.n(ZA),YA=l(37957),Nh=l.n(YA),XA=l(83192),JA=l.n(XA),qA=l(52009),eR=l.n(qA),tR=l(30794),sR=l.n(tR);const yi=sR()(JA()),Mv=Nh()(wv()(yi),wv()(eR())),ote=t=>t.toLowerCase();var nR=l(24195),Ov=l.n(nR),oR=l(45623),jh=l.n(oR),rR=l(31353),aR=l.n(rR),iR=l(68029),Gd=l.n(iR),lR=l(63310),Er=l.n(lR),cR=l(28536),Dv=l.n(cR),dR=l(99644),uR=l.n(dR),hR=l(60741),mR=l.n(hR),pR=l(20617),fR=l.n(pR),vR=l(17085),gR=l.n(vR),CR=l(41311),xR=l.n(CR),bR,yR;const LR=t=>t===-1,ER=t=>t>=0,SR=Er()(3,(t,e,n)=>Nv()(t,n,e)),kh=Er()(3,(t,e,n)=>n[t]==e),rte=Er()(3,(t,e,n)=>hs()(Co()(kh("id",e)),ai()(LR,os()(n),SR(t,n)))(n)),ate=t=>yR(bR(kh("id",t))),ite=Er()(3,(t,e,n)=>uR()(e,n[t],gR()(t,1,n)));function TR(t,e){const n=[];for(const o of e)if(n.push(o),t(o))break;return n}const IR=Er()(2,(t,e)=>Xe()(Dv(),fs()(aR()(t)),xR())(e)),Bv=Er()(2,(t,e)=>Xe()(mR(),IR((n,o)=>e(o)))(t)),Hv=Er()(2,(t,e)=>fs()(Xe()(z2()(Cr())(e),t))),NR=jh()(fR()(Ov(),0)),Fv=Xe()(Array.from,Array),zv=sa()((t,e)=>Fv(e).map(()=>t)),jR=sa()((t,e,n,o)=>Fv(n).map((r,a)=>a===o?e:t)),lte=Er()(3,(t,e,n)=>hs()(Co()(kh(t,e)),ER)(n));function cte(t,e,n){if(e>=n.length)return n.slice(0);const o=Math.floor(e/2),r=Math.ceil(e/2),a=t-o,i=t+r;return i>n.length?n.slice(n.length-e):a>=0?n.slice(a,i):n.slice(0,e)}const Kd=(t,e)=>{const n=Math.min(t.length,e.length),o=new Array(n);for(let r=0;r<n;r++)o[r]=[t[r],e[r]];return o},dte=sa()((t,e,n)=>n>=t&&n<e),Vv=t=>t<10?`0${t}`:String(t),kR=t=>Intl.NumberFormat(void 0,{style:"percent",maximumFractionDigits:2}).format(t),Uv=t=>t.reduce((e,n)=>isNaN(n)||n==null?e:e+n,0),AR=jt("NavCompactOutline",({className:t="",isEnabled:e,lessonIdGroups:n})=>{const o=(0,ot.useLabelsMap)(),r=Q()(t,"nav-compact__outline",{"nav-compact__outline--collapsed":!e});return(0,s.jsx)("section",{"aria-label":o?.a11yRegionNavOverview,className:r,"data-testid":"nav-compact-outline",id:"nav-compact-outline",children:yi(n)&&(0,s.jsx)("ol",{className:"nav-compact__outline-list","data-testid":"nav-compact-outline-list",role:"list",children:n.map((a,i)=>rs()(a)?null:(0,s.jsx)(UA,{index:i,isEnabled:e,lessonIds:a},i))})})});function RR(t){const e=Bt(t);return{lessonIdGroups:h0(t),navigationStyle:e.navigationStyle}}const PR=(0,W.Ng)(RR)(AR);var wR=l(26372);const MR=()=>{const[t,e]=wR.useState(!1);return(0,es.A)(Of,()=>e(!0)),(0,es.A)(Q1,()=>e(!1)),t},$v=ne("nav-compact"),Wv="nav-content-compact",OR=({closeNav:t,coverImageColor:e,isExpanded:n,navigationStyle:o,openNav:r,progressIndicatorStyle:a,translateY:i},c)=>{const u=(0,h.useMemo)(()=>(0,Pt.I8)(o),[o]),d=(0,h.useMemo)(()=>o===M.Py.LIGHT_ACCENT||o===M.Py.DARK_ACCENT,[o]),m=MR(),p=(0,h.useMemo)(()=>(0,Pt.FH)(o),[o]),f=a===M.Y2.CIRCULAR_FILL,g=a===M.Y2.INCOMPLETE_COMPLETE,v=(0,h.useMemo)(()=>p&&e===M.df.LIGHT,[p,e]),C=$v({accent:d,dark:u,light:!u,"image-dark-overlay":p&&!v,"image-light-overlay":p&&v,"progress-circular-fill":f,"progress-incomplete-complete":g,collapsed:!n,navNextIsVisible:m}),x=$v("wrap",{collapsed:!n}),L={transform:`translateY(${i}px)`};return(0,s.jsx)("div",{className:C,"data-testid":"nav-compact",id:Wv,ref:c,style:L,children:(0,s.jsxs)("div",{className:x,children:[(0,s.jsx)(LA,{closeNav:t,isExpanded:n,openNav:r}),(0,s.jsx)(Ul,{inert:!n,children:(0,s.jsx)(PR,{isEnabled:n})})]})})};function DR(t){return Bt(t).buttonNavigationStyle==="FULL"?Math.round(-(t.ui.lessonNavNextButton?.intersectionRect?.height??0)):0}function BR(t){const{color:e,navigationStyle:n,theme:o}=Bt(t),r=o?.coverImageColor,a=o?.progressIndicatorStyle,i=DR(t);return{color:e,coverImageColor:r,navigationStyle:n,progressIndicatorStyle:a,translateY:i}}const HR=Xe()((0,W.Ng)(BR,null,null,{forwardRef:!0}),h.forwardRef)(OR);var Gv=l(55809);const Kv=Object.assign((0,h.createContext)(null),{displayName:"OverlayNavControlContext"});function FR(t){const{children:e,closeNav:n,openNav:o}=t,[r,a]=(0,h.useState)(!1),i=(0,h.useCallback)(()=>{a(!0)},[]),c=(0,h.useCallback)(()=>{a(!1)},[]);return(0,s.jsx)(Kv.Provider,{value:{closeNav:n,openNav:o,openSearch:i,closeSearch:c,searchActive:r},children:e})}const _d=h.useContext.bind(null,Kv),Qd=ne("nav-overlay"),zR=({className:t})=>{const{navigationStyle:e}=Rt(),{lessonComplete:n}=(0,ot.useLabelsMap)(),o=(0,xe.Wz)(),r=Yn(),i=`${o?`%${r}`:`${r}%`} ${n}`,c=e!==M.qB.ACCENT,u=Qd("header-progress-runner"),d=Qd("header-progress-text"),m=Qd("header-progress-track");return(0,s.jsxs)("div",{className:Qd("header-progress").mix(t),"data-testid":"nav-overlay-progress",children:[(0,s.jsx)(wd,{"aria-hidden":!0,background:!0,disabled:c,progress:r,runnerClass:u,trackClass:m}),(0,s.jsx)("div",{className:d,children:i})]})},qo=ne("nav-overlay"),VR=()=>{const t=Rt(),e=(0,je.Z)(),n=Bs(),{allowSearch:o,lmsOptions:r={}}=t||{},a=Hr(),i=(0,ot.useLabelsMap)(),c=_d(),u=(0,h.useRef)(),d=qo("header-control-btn"),m=t?.exportSettings?.webExportSettings,p=!Po.isInstantLink&&(r?.disableCoverPage||m?.disableCoverPage),f=g=>{g.preventDefault(),Zo(()=>{e("/")},"lesson-to-cover")};return(0,s.jsx)("section",{"aria-label":"Course Information","data-testid":"nav-overlay-header",children:(0,s.jsxs)("div",{className:qo("header-container"),children:[(0,s.jsxs)("div",{className:qo("header-controls"),children:[(0,s.jsx)("button",{"aria-label":i?.a11yNavigationMenuClose,className:d,"data-testid":"nav-overlay-close",onClick:c.closeNav,ref:u,type:"button",children:(0,s.jsx)(Ad,{className:qo("header-close-icon")})}),o&&a!=="restricted"&&(0,s.jsx)("button",{"aria-label":i?.a11ySearchOpen,className:d,"data-testid":"nav-overlay-search",onClick:c.openSearch,type:"button",children:(0,s.jsx)(Fl,{className:qo("header-search-icon")})})]}),(0,s.jsxs)("div",{className:qo("header-title-progress-container"),children:[(0,s.jsx)("h1",{className:qo("header-title"),"data-testid":"nav-overlay-title",id:"nav-overlay-title",children:p?(0,s.jsx)("span",{className:qo("header-title"),children:n}):(0,s.jsx)(Ln,{className:qo("header-title-link"),onClick:f,to:"/",children:n})}),(0,s.jsx)(zR,{})]})]})})},Ah=({icon:t,...e})=>{switch(t){case lt.xA.INTERACTION:return(0,s.jsx)(bE,{...e});case lt.xA.QUIZ:return(0,s.jsx)(vE,{...e});case lt.xA.VIDEO:return(0,s.jsx)(yE,{...e});default:return(0,s.jsx)(dE,{...e})}},Li=ne("nav-overlay"),_v=jt("NavOverlayOutlineLesson",({first:t,id:e,isEnabled:n,isSectionLesson:o,last:r})=>{const{navigationStyle:a}=Rt(),{icon:i}=nn(e),c=Xr(e),u=_d(),d=m0(e),m=(0,Pt.I8)(a),p=Li("outline-item",{section:o}),f=Li("outline-item-link-icon",{quiz:i==="Quiz"}),g=(0,h.useCallback)(()=>{u.closeNav()},[u]),[v,C]=(0,h.useState)(!1),x=(0,h.useCallback)(()=>C(!0),[]),L=(0,h.useCallback)(()=>C(!1),[]),y=(0,s.jsx)($d,{canComplete:d,id:e,isDark:m,isEnabled:n,isTooltipVisible:v,onHideTooltip:L,onShowTooltip:x,scope:lt.by.OVERLAY});return(0,s.jsxs)("li",{className:Li("outline-list-item",{first:t,last:r}),"data-testid":`nav-overlay-lesson-${e}`,role:"listitem",children:[(0,s.jsxs)($l,{className:p.toString(),dark:m,isTooltipEnabled:!d,lessonId:e,onHideProgressTooltip:L,onNavigate:g,onShowProgressTooltip:x,showProgressDelay:null,tooltipClassName:Li("outline-item-tooltip").toString(),children:[(0,s.jsx)("span",{className:Li("outline-icon-wrap"),children:(0,s.jsx)(Ah,{className:f,icon:i})}),(0,s.jsx)("span",{className:Li("outline-lesson-title"),children:c}),!d&&y]}),d&&y]})}),UR=ne("nav-overlay"),$R=({id:t})=>{const e=nn(t),n=Xt(e.title);return(0,s.jsx)("span",{className:UR("outline-section-text"),children:n})},Qv=ne("nav-overlay"),WR=({isEnabled:t,lessonIds:e})=>{const n=(0,h.useRef)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:Qv("outline-section-divider")}),(0,s.jsx)("ol",{className:Qv("outline-section-list"),ref:n,role:"list",children:e.map((o,r)=>(0,s.jsx)(_v,{id:o,isEnabled:t,isSectionLesson:!0,last:r===e.length-1},o))})]})},GR=ne("nav-overlay"),KR=({index:t,isEnabled:e,lessonIds:n})=>{const[o,...r]=n,a=GR("outline-item").mix("nav-overlay__outline-section");return rs()(r)?(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)($R,{id:o})}):(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(WR,{index:t,isEnabled:e,lessonIds:r})})},_R=({index:t,isEnabled:e,lessonIds:n})=>{const o=Oc(n),r=Xr(n[0]),a=ne("nav-overlay");return o?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h2",{className:a("outline-section-text"),children:r}),(0,s.jsx)("ol",{className:a("outline-list"),"data-testid":"nav-overlay-outline-list",role:"list",children:(0,s.jsx)(KR,{index:t,isEnabled:e,lessonIds:n})})]}):n.map((i,c)=>(0,s.jsx)(_v,{first:c===0,id:i,isEnabled:e,isSectionLesson:!1,last:c===n.length-1},i))},QR=ne("nav-overlay"),ZR=jt("NavOverlayOutline",({isEnabled:t})=>{const e=cp(),n=(0,ot.useLabelsMap)();return(0,s.jsx)("section",{"aria-label":n?.a11yRegionNavOverview,className:QR("outline"),"data-testid":"nav-overlay-outline",id:"nav-overlay-outline",children:yi(e)&&(0,s.jsx)(s.Fragment,{children:e.map((o,r)=>rs()(o)?null:(0,s.jsx)(_R,{index:r,isEnabled:t,lessonIds:o},`lessonIdGroup-${r}`))})})});var YR=l(50749),Zd=l.n(YR),da=l(83014),XR=l(96093),ua=l.n(XR),JR=l(94276),Yd=l.n(JR),qR=l(64899),wo=l.n(qR),eP=l(27690),Xs=l.n(eP);const Rh=Array.isArray,tP=t=>typeof t=="number",Xd=t=>!Xs()(t)&&typeof t=="object",Ph=t=>typeof t=="string",sP=(t,e,n)=>(o,r)=>{const a=Cr()(r,t);if((0,ds.uW)(o)){const i=n[o.l10nId];return typeof i!="string"?!1:!rs()(Yd()(e,(0,da.htmlDecode)(i)))}else return Xd(o)?Zv(t,e,n)(o):a&&Ph(o)?!rs()(Yd()(e,(0,da.htmlDecode)(o))):!1},Zv=(t,e,n)=>o=>hs()(ua(),wo(),Cr()(!0))(sP(t,e,n),o),nP=Zv;var oP=l(43601),wh=l.n(oP),rP=l(33799),Mh=l.n(rP),aP=l(49059),Jd=l.n(aP);const iP=(t,e,n)=>(o,r)=>{const a=Cr()(r,t);return Rh(o)?wo()(Oh(t,e,n)(o)):(0,ds.uW)(o)?typeof n[o.l10nId]!="string"?0:vs()(Yd()(e,(0,da.htmlDecode)(n[o.l10nId]))):Xd(o)?Oh(t,e,n)(o):a&&Ph(o)?vs()(Yd()(e,(0,da.htmlDecode)(o))):0},Oh=(t,e,n)=>o=>ua()(iP(t,e,n),o),Dh=t=>{if(Rh(t))return Mn()(Dh,t);if(Xd(t))return Dh(wo()(t));if(tP(t))return t},lP=(t,e,n)=>o=>hs()(Oh(t,e,n),wo(),Mn()(Dh),Mh(),Jd()(wh(),0),r=>no()("results",r,o))(o),cP=(t,e,n)=>(o,r)=>{const a=Cr()(r,t);return Rh(o)?wo()(Bh(t,e,n)(o)):Xd(o)?Bh(t,e,n)(o):a&&Ph(o)?j1()(e,n,o):o},Bh=(t,e,n)=>o=>ua()(cP(t,e,n),o),Yv=Bh,Xv=(t,e,n,o,r)=>{const a=["caption","code","description","heading","message","name","paragraph","title"];if(rs()(t))return!1;const i=t.replace(/[-[\]{}()"'*+?.,\\^$|#\s]/g,"\\$&"),c=new RegExp(`(${i})(?![^<]*>)`,"ig"),u=L=>`<mark>${L}</mark>`,d=Yv(a,c,u),m=Yv(Object.keys(n),c,u),p=Mn()(d,e),f=o?o(t):{},g=m(n),v=L=>f[L.id]>0||nP(a,c,n)(L),C=lP(a,c,n),x=hs()(fs()(v),Mn()(C))(e);x.forEach(L=>{L.results+=f[L.id]??0}),r(t,x,g,p)};function dP(t){if(!t)return!0;for(const e in t)return!1;return!0}function Jv(){const{lessons:t,mondrian:e}=Rt(),{currentLocale:n}=(0,rt.nY)(),[o,r]=(0,h.useState)(null);return(0,h.useEffect)(()=>{dP(e)||l.e("webpack_container_remote_mondrian_learn-react").then(l.t.bind(l,4246,23)).then(a=>r(()=>a.searchItemsByLesson))},[e]),(0,h.useCallback)(a=>o?.(a,t,e,n)??{},[o,t,e,n])}const uP=Ql.Ay.animateScroll,Bn=ne("nav-overlay"),hP=()=>{const t=(0,W.wA)(),e=Go(),n=_d(),{lessons:o}=Rt(),[r,a]=(0,h.useState)(""),i=Jv(),c=(0,h.useRef)(),u=(0,ot.useLabelsMap)(),d=Bn("search-close-btn"),m=Bn("search-clear-btn"),p=(0,h.useCallback)(()=>{n.closeSearch(),n.closeNav(),t([(0,xs.Se)(!0),(0,xs.ts)(!1),(0,xs.NM)(null)])},[t,n]),f=(0,h.useCallback)(()=>{a(""),c.current?.focus?.()},[]);(0,h.useEffect)(()=>{c.current?.focus?.()},[]);const g=(0,h.useCallback)(x=>{cn(x)&&!Zd()(r)?(x.preventDefault(),a(""),t((0,xs.NM)(null))):cn(x)&&Zd()(r)&&p()},[t,p,r]);(0,es.A)("keydown",g);const v=(0,h.useCallback)(x=>{a(x.target.value)},[]),C=(0,h.useCallback)(x=>{if(x.preventDefault(),r){const L=(y,E,b,S)=>{t([(0,xs.NM)(y),(0,xs.gA)(E),(0,xs.D2)(b),(0,xs.u)(S),(0,xs.ts)(!0)]),uP.scrollToTop({duration:500,smooth:!0})};n.closeNav(),n.closeSearch(),Xv(r,o,e??{},i,L)}},[r,i,n,o,e,t]);return(0,s.jsxs)("div",{className:Bn("search"),"data-testid":"nav-overlay-search-container",children:[(0,s.jsx)("div",{className:Bn("search-header"),children:(0,s.jsx)("button",{"aria-label":u?.a11ySearchClose,className:d,"data-testid":"nav-overlay-search-close",onClick:p,type:"button",children:(0,s.jsx)(Ad,{className:Bn("search-close-icon")})})}),(0,s.jsx)("div",{className:Bn("search-body"),children:(0,s.jsxs)("form",{autoComplete:"off",onSubmit:C,children:[(0,s.jsxs)("div",{className:Bn("search-container"),children:[(0,s.jsx)(Fl,{className:Bn("search-icon")}),(0,s.jsx)("input",{"aria-label":u?.a11ySearchInput,className:Bn("search-input").mix("brand--ui"),"data-testid":"nav-overlay-search-input",name:"search",onChange:v,placeholder:u?.search,ref:c,type:"input",value:r}),r&&(0,s.jsx)("button",{"aria-label":u?.a11ySearchInputClear,className:m,"data-testid":"nav-overlay-search-clear",onClick:f,type:"button",children:(0,s.jsx)(Ad,{className:Bn("search-clear-icon").toString()})})]}),(0,s.jsx)("div",{className:Bn("search-actions"),children:(0,s.jsx)("button",{className:Bn("search-submit-btn").mix("brand--ui"),"data-testid":"nav-overlay-search-submit",type:"submit",children:u?.search})})]})})]})},Hh=ne("nav-overlay"),qv="nav-content-overlay",mP=({isExpanded:t,outlineRef:e})=>{const o=cp()[0],r=Oc(o),a=Hh("body",{section:r});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(VR,{}),(0,s.jsx)("div",{className:a,ref:e,children:(0,s.jsx)(ZR,{isEnabled:t})})]})},pP=({children:t,isImage:e,hasStickyHeader:n})=>{const o=Hh("content",{graphic:e,"has-sticky-header":n});return(0,s.jsxs)("div",{className:o,"data-nav-scrollable":!0,"data-testid":"nav-overlay-content",children:[t,e&&(0,s.jsx)(T1,{})]})},fP=({isExpanded:t})=>{const e=(0,h.useRef)(null),n=(0,h.useRef)(),o=Rt(),r=_d(),a=(0,tt.A)(t),{navigationStyle:i,theme:{progressIndicatorStyle:c}={}}=o||{},u=o?.theme?.coverImageColor,d=i===M.qB.ACCENT,m=i===M.qB.TINT,p=(0,Pt.I8)(i),f=i===M.qB.GRAY,g=i===M.qB.LIGHT,v=(0,Pt.FH)(i),C=c===M.Y2.CIRCULAR_FILL,x=c===M.Y2.INCOMPLETE_COMPLETE,[L,y]=(0,h.useState)(!0),{isIntersecting:E=!1}=(0,Gv.A)(n,{root:e?.current,threshold:1})||{},b=(0,tt.A)(E),S=(0,h.useMemo)(()=>v&&u===M.df.LIGHT,[v,u]),T=Hh({"accent-tint":m,accent:d,dark:p,gray:f,"image-dark-overlay":v&&!S,"image-light-overlay":v&&S,light:g,"progress-circular-fill":C,"progress-incomplete-complete":x,closing:a&&!t});return(0,h.useEffect)(()=>{t?e.current?.showModal():setTimeout(()=>{e.current?.close()},500)},[t]),(0,h.useEffect)(()=>{const N=j=>{cn(j)&&!r.searchActive&&(j.preventDefault(),r.closeNav())};return t?document.addEventListener("keydown",N):document.removeEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)}},[t,r]),(0,h.useEffect)(()=>{!L&&E?y(!0):b&&!E&&y(!1)},[E,L,b,y]),(0,s.jsx)("dialog",{"aria-labelledby":"nav-overlay-title","aria-modal":"true",className:T,"data-testid":"nav-overlay",id:qv,ref:e,children:(0,s.jsx)(pP,{hasStickyHeader:L,isImage:v,children:r.searchActive?(0,s.jsx)(hP,{}):(0,s.jsx)(mP,{isExpanded:t,outlineRef:n})})})},Yl=ne("nav-sidebar-search"),vP=jt("NavSidebarSearch",({className:t="",isEnabled:e})=>{const n=(0,W.wA)(),o=Go(),r=(0,tt.A)(e),{lessons:a}=Rt(),i=Fe(),c=(0,ot.useLabelsMap)(),u=(0,h.useRef)(),d=Yl({disabled:!e}).mix(t),m=Yl("icon"),p=Yl("input"),f=Yl("close"),g=Yl("close-icon"),v=i?.term,C=e?void 0:"disabled",[x,L]=(0,h.useState)(""),y=Jv(),E=(0,h.useCallback)(()=>{n([(0,xs.Se)(!0),(0,xs.ts)(!1),(0,xs.NM)(null)]),L("")},[n]),b=(0,h.useCallback)(N=>{cn(N)&&!Zd()(x)?(N.preventDefault(),L(""),n((0,xs.NM)(null))):cn(N)&&Zd()(x)&&E()},[n,E,x]),S=(0,h.useCallback)(N=>{v!=null&&n((0,xs.NM)(null)),L(N.target.value)},[n,v]),T=(0,h.useCallback)(N=>{N.preventDefault(),Xv(x,a,o??{},y,(R,O,P,A)=>n([(0,xs.NM)(R),(0,xs.gA)(O),(0,xs.D2)(P),(0,xs.u)(A)]))},[n,a,o,x,y]);return(0,h.useEffect)(()=>{!r&&e&&setTimeout(()=>{u.current?.focus()},50)},[e,r]),(0,h.useEffect)(()=>{v&&v!==x&&L(v)},[x,v]),(0,s.jsxs)("form",{autoComplete:"off",className:d,"data-testid":"nav-sidebar-search",onSubmit:T,children:[(0,s.jsx)(Fl,{className:m}),(0,s.jsx)("input",{"aria-label":c?.a11ySearchInput,className:p,disabled:C,name:"search",onChange:S,onKeyDown:b,placeholder:c?.search,ref:u,type:"search",value:x}),(0,s.jsx)("button",{"aria-label":c?.a11ySearchClose,className:f,onClick:E,type:"reset",children:(0,s.jsx)(Ad,{className:g})})]})}),Hn=ne("nav-sidebar-header"),gP=ne("nav-sidebar-header-ghost"),CP=()=>(0,W.d4)(t=>t.ui.skipToNavButton?.offsetHeight??0),xP=jt("NavSidebarHeaderProgress",t=>{const{classProgressRunner:e,classProgressText:n,classProgressTrack:o,color:r,percentComplete:a,percentCompleteText:i}=t;return(0,s.jsxs)("div",{className:Hn("progress"),"data-testid":"nav-sidebar-progress",children:[(0,s.jsx)(wd,{"aria-hidden":"true",color:r,progress:a,runnerClass:e,trackClass:o}),(0,s.jsx)("div",{className:n,children:i})]})}),bP=jt("NavSidebarHeader",({className:t,isCompact:e,isEnabled:n,navRefWidth:o,setIsCompact:r})=>{const a=(0,W.wA)(),i=(0,je.Z)(),[c,u]=(0,h.useState)(""),[d,m]=(0,h.useState)({height:0,width:0}),[p,f]=(0,h.useState)(d),[g,v]=(0,h.useState)(d),C=CP(),x=(0,h.useRef)(),L=(0,h.useRef)(),y=(0,h.useRef)(),[E,b]=(0,h.useState)(null),S=Rt(),T=Bs(),N=(0,ot.useLabelsMap)(),j=Yn(),R=Fe(),O=C1(),P=(0,xe.Wz)(),A=Hr(),F=S?.exportSettings?.webExportSettings,w=!Po.isInstantLink&&(S?.lmsOptions?.disableCoverPage||F?.disableCoverPage),D=S?.allowSearch&&A!=="restricted",V=S?.theme?.coverImageColor,_=S?.navigationStyle,ee=(0,h.useMemo)(()=>(0,Pt.FH)(_),[_]),q=Nb(),fe=(0,tt.A)(R),ye=(R?.active||q)??!1,[Ie,we]=(0,h.useState)(!0),[Ve,Me]=(0,h.useState)(null),Ae=Hn({compact:e,searching:ye,transition:Ie}).mix(t),me=Hn("inner",{compact:e}),ue=Hn("content",{compact:e,hidden:ye}),Be=Hn("graphic",{image:ee}),Re=Hn("progress-runner"),We=Hn("progress-text",{compact:e}),He=Hn("progress-track"),mt=Hn("search-area",{hidden:!ye}),ht=Hn("search-btn",{hidden:ye}),yt=Hn("search-icon"),Zt=Hn("title",{compact:e}),Ht=gP({compact:e,searching:ye}),co=`${P?`%${j}`:`${j}%`} ${N?.lessonComplete}`,Pr=n&&!ye?void 0:-1,wr=n&&!ye?void 0:-1,{alpha:Mr,media:Or}=qr("coverImage"),Lc=(0,h.useMemo)(()=>{let Wt={};return ee&&Object.assign(Wt,(0,Pt.b9)({alpha:Mr,color:V,media:Or})),ye&&(Wt.height=p.height),Wt},[Mr,V,Or,ee,ye,p.height]),Ki=(0,h.useMemo)(()=>{let Wt={};return e&&(Wt.bottom=`calc(100% - ${C}px)`,Wt.width=o||0,Wt.transition="width 0.3s",n||(Wt.transition="width 0.3s",Wt.width="0rem")),d.height&&(Wt.height=d.height,Wt.overflow="hidden",e&&(Wt.transition="height 0.3s ease .1s, transform 0.3s ease .1s")),Wt},[e,n,o,d.height,C]);(0,h.useEffect)(()=>{u(e&&O?kv(T,45):T)},[T,e,O]);const _i=ye?void 0:{height:g.height},Ec=(0,h.useCallback)(()=>{f(d),a((0,xs.ts)(!0))},[a,d]),Dr=(0,h.useCallback)(Wt=>{Wt.preventDefault(),Zo(()=>{i("/")},"lesson-to-cover")},[i]);(0,h.useLayoutEffect)(()=>{Me(document.querySelector("[data-nav-scrollable]"))},[]);const{isIntersecting:uo=!1}=(0,Gv.A)(x,{root:Ve,threshold:0})||{},La=(0,tt.A)(uo);(0,h.useEffect)(()=>{const Wt=E!=null&&window.innerHeight*.4>=E.offsetHeight;La&&!uo&&Wt?r(!0):!La&&uo&&r(!1)},[uo,La,E,r]);const Sc=(0,h.useCallback)(({target:Wt})=>{const mn={height:Wt?.scrollHeight??0,width:o??0};m(mn),f(mn),e||v(mn)},[e,o]);Dd(E,Sc),(0,h.useLayoutEffect)(()=>{const Wt=Ve?.scrollTop;(Ve||Wt>0)&&(Ve.scrollTop=0);const mn={height:E?.scrollHeight??0,width:o??0};m(mn),f(mn),v(mn)},[Ve,o,E]),(0,h.useEffect)(()=>{D&&fe?.active&&!R.active&&L?.current?.focus()},[D,R,fe]),(0,h.useEffect)(()=>{ye?we(!0):e&&we(!1)},[ye,e]);const i0=(0,h.useCallback)(Wt=>{if(!Wt.target.hasAttribute("data-nav-item")||!e)return;const mn=E.getBoundingClientRect(),wt=Wt.target.getBoundingClientRect();mn.bottom>wt.top&&(Ve.scrollTop-=mn.height-wt.top+5)},[Ve,e,E]);return(0,es.A)("focusin",i0,Ve),(0,h.useEffect)(()=>u(T),[T]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:Ht,ref:x,style:_i}),(0,s.jsx)("div",{className:Ae,"data-testid":"nav-sidebar-header",ref:y,style:Ki,children:(0,s.jsxs)("div",{className:me,ref:b,children:[(0,s.jsx)("div",{className:Be,style:Lc}),D&&(0,s.jsx)("button",{"aria-label":N?.a11ySearchOpen,className:ht,onClick:Ec,tabIndex:Pr,type:"button",children:(0,s.jsx)(Fl,{className:yt})}),(0,s.jsx)("div",{className:mt,children:(0,s.jsx)(vP,{isEnabled:n&&ye})}),(0,s.jsxs)("div",{className:ue,children:[w?(0,s.jsx)("span",{className:Zt,"data-testid":"nav-sidebar-title",tabIndex:wr,children:c}):(0,s.jsx)(Ln,{className:Zt,"data-testid":"nav-sidebar-title",onClick:Dr,tabIndex:wr,to:"/",children:c}),(0,s.jsx)(xP,{classProgressRunner:Re,classProgressText:We,classProgressTrack:He,percentComplete:j,percentCompleteText:co})]})]})})]})}),yP=ne("nav-sidebar");function eg({closeNav:t,id:e,isEnabled:n,isSectionLesson:o,last:r}){const{navigationStyle:a}=Rt(),{icon:i}=nn(e)??{},c=Xr(e),u=oo(),d=Rl(),m=m0(e),p=e===u,f=(0,h.useMemo)(()=>(0,Pt.I8)(a),[a]),g=o?"nav-sidebar__outline-section-item":"nav-sidebar__outline-item",v=Q()(`${g}-link-icon`),C=(0,s.jsx)(Ah,{className:v,icon:i}),[x,L]=(0,h.useState)(!1),y=(0,h.useCallback)(()=>L(!0),[]),E=(0,h.useCallback)(()=>L(!1),[]),b=(0,s.jsx)($d,{canComplete:m,id:e,isDark:f,isEnabled:n,isTooltipVisible:x,onHideTooltip:E,onShowTooltip:y,scope:lt.by.SIDEBAR}),S=()=>{t&&d&&t()};return(0,s.jsxs)("li",{className:yP("outline-list-item",{last:r}),"data-testid":`nav-outline-lesson-${e}`,role:"listitem",children:[(0,s.jsxs)($l,{className:g,dark:f,isCurrentLesson:p,isTooltipEnabled:!m,lessonId:e,onHideProgressTooltip:E,onNavigate:S,onShowProgressTooltip:y,showProgressDelay:0,tooltipClassName:`${g}-tooltip`,children:[C,c,!m&&b]}),m&&b]})}const LP=({title:t})=>(0,s.jsx)("span",{className:"nav-sidebar__outline-section-text",children:t});function EP(){const t=Xn(),e=fn();return(n,o)=>{const{currentLocale:r}=o,a=Bt(n),i=t(o.id,n),c=e(i.title,r,n);return{navigationStyle:a.navigationStyle,title:c}}}const SP=Xe()(rt.wZ,(0,W.Ng)(EP))(LP);var Ei=l(26372);const TP=({closeNav:t,id:e,index:n,isEnabled:o,lessonIds:r})=>{const a=Rt(),i=a?.theme,c=a?.themeId,u=i?.navigationSectionsExpanded??!0,d=Xr(String(e)),[m,p]=Ei.useState(u);Ei.useEffect(()=>{p(u)},[u]);const[f,g]=Ei.useState(),v=Ei.useRef(null),C=`sidebar-sublist-${n}`,x=v.current?.clientWidth,L=String(c),y=Q()("nav-sidebar__outline-section-toggle-icon",{"nav-sidebar__outline-section-toggle-icon--collapsed":!m}),E=Q()("nav-sidebar__outline-section-list",{"nav-sidebar__outline-section-list--collapsed":!m}),b=Ei.useCallback(()=>{p(S=>!S)},[]);return Ei.useLayoutEffect(()=>{const S=setTimeout(()=>{v.current&&g(v.current.scrollHeight)},0);return()=>{clearTimeout(S)}},[r.length,x,L]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{"aria-controls":C,"aria-expanded":m,className:"nav-sidebar__outline-section-toggle","data-nav-item":"",onClick:b,tabIndex:o?void 0:-1,type:"button",children:[(0,s.jsx)("span",{className:"nav-sidebar__outline-section-toggle-text",children:d}),(0,s.jsx)(xf,{className:y})]}),(0,s.jsx)(Ul,{inert:!m,children:(0,s.jsx)("ol",{"aria-hidden":m?void 0:!0,className:E,id:C,ref:v,role:"list",style:{maxHeight:f},children:r.map((S,T)=>(0,s.jsx)(eg,{closeNav:t,id:S,isEnabled:o&&m,isSectionLesson:!0,last:T===r.length-1},S))})})]})},IP=({closeNav:t,index:e,isEnabled:n,lessonIds:o})=>{const[r,...a]=o,i="nav-sidebar__outline-item nav-sidebar__outline-section";return rs()(a)?(0,s.jsx)("li",{className:i,role:"listitem",children:(0,s.jsx)(SP,{id:r})}):(0,s.jsx)("li",{className:i,role:"listitem",children:(0,s.jsx)(TP,{closeNav:t,id:r,index:e,isEnabled:n,lessonIds:a})})},NP=({closeNav:t,index:e,isEnabled:n,lessonIds:o})=>Oc(o)?(0,s.jsx)(IP,{closeNav:t,index:e,isEnabled:n,lessonIds:o}):o.map((a,i)=>(0,s.jsx)(eg,{closeNav:t,id:a,isEnabled:n,isSectionLesson:!1,last:i===o.length-1},a)),jP=jt("NavSidebarOutline",({className:t="",closeNav:e,isEnabled:n,lessonIdGroups:o})=>{const r=(0,tt.A)(n),[a,i]=(0,h.useState)(!n),c=(0,ot.useLabelsMap)(),u=(0,h.useRef)(),d=Q()(t,"nav-sidebar__outline",{"nav-sidebar__outline--hidden":a,"nav-sidebar__outline--safari":rn.isSafari}),m=Q()("nav-sidebar__outline-list",{"nav-sidebar__outline-list--disabled":!n,"nav-sidebar__outline-list--hidden":a});return(0,h.useEffect)(()=>{let p;return r&&!n?p=setTimeout(()=>{i(!0)},350):!r&&n&&a&&i(!1),()=>{clearTimeout(p)}},[n,a,r]),(0,s.jsx)("section",{"aria-label":c?.a11yRegionNavOverview,className:d,"data-testid":"nav-sidebar-outline",id:"nav-sidebar-outline",children:yi(o)&&(0,s.jsx)("ol",{className:m,"data-testid":"nav-sidebar-outline-list",ref:u,role:"list",children:o.map((p,f)=>rs()(p)?null:(0,s.jsx)(NP,{closeNav:e,index:f,isEnabled:n,lessonIds:p},f))})})});function kP(t){const e=Bt(t),n=h0(t);return{isLegacyCourse:e.isLegacyCourse,lessonIdGroups:n,navigationStyle:e.navigationStyle}}const AP=(0,W.Ng)(kP)(jP);var RP=l(76108),PP=l(17930);const Si=ne("nav-sidebar-result"),tg=({result:t})=>{const e=(0,ot.useLabelsMap)(),n=t?.icon,o=Xt(t?.title),r=t?.results??0,a=r===1?e?.result:e?.results,i=Si("icon"),c=Si("title"),u=Si("count");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ah,{className:i,icon:n}),(0,s.jsx)("span",{className:c,children:o}),(0,s.jsx)("span",{className:u,children:`${r} ${a}`})]})},wP=({id:t,index:e,isEnabled:n,onSelectResult:o})=>{const r=Rt(),a=(0,ie.RQ)("/*"),i=Cn(t),c=a?.params?.id===t,u=c?"page":void 0,d=r?.color,m=r?.navigationStyle,p=n?void 0:-1,f={animationDelay:`${e/10}s`},g=dt(i?.id),v=(0,h.useMemo)(()=>(0,Pt.I8)(m),[m]),C=Si(),x=Si("inner",{active:c}),L=Si("link",{dark:v,light:!v});return(0,s.jsx)("li",{className:C,role:"listitem",style:f,children:(0,s.jsx)("div",{className:x,style:{color:d},children:n&&g==null?(0,s.jsx)(Ln,{"aria-current":u,className:L,onClick:o,tabIndex:p,to:(0,qt.p1)(t),children:(0,s.jsx)(tg,{result:i})}):(0,s.jsx)(Ff,{className:L,restriction:g,tooltipClassName:"lesson-nav-link-tooltip",children:(0,s.jsx)(tg,{result:i})})})})},qd=ne("nav-sidebar-results"),MP=[],OP=({closeNav:t,isEnabled:e})=>{const{announcePolite:n}=bt(),o=Rt(),r=Fe(),a=(0,ot.useLabelsMap)(),c=(r?.activeLessons??MP).filter(Qr),u=r?.term,d=(0,RP.A)(c),m=(0,PP.A)(u),p=a?.noResults??"",f=o?.navigationStyle,g=(0,h.useMemo)(()=>(0,Pt.I8)(f),[f]),v=qd(),C=qd("message",{dark:g,light:!g}),x=qd("term"),L=qd("list"),y=Ss(D2),E=h.useCallback(()=>{y&&t()},[t,y]);return(0,h.useEffect)(()=>{if(m){const b=c.length===1?a?.result:a?.results,S=d?`${c.length} ${b}`:`${a?.noResults} ${u}`;n?.(S)}},[n,d,m,c,a,u]),(0,s.jsxs)("div",{className:v,"data-testid":"nav-sidebar-results",children:[!d&&m&&(0,s.jsxs)("div",{className:C,children:[p," ",(0,s.jsxs)("span",{className:x,children:['"',u,'"']})]}),d&&m&&(0,s.jsx)("ol",{className:L,"data-testid":"nav-sidebar-results-list",role:"list",children:c.map((b,S)=>(0,s.jsx)(wP,{id:b.id,index:S,isEnabled:e,onSelectResult:E},b.id))})]})},eu=ne("nav-sidebar"),sg="nav-content-sidebar",DP=({isExpanded:t,closeNav:e})=>{const n=Rt(),o=Fe(),[r,a]=(0,h.useState)(!1),[i,c]=(0,h.useState)(0),u=(0,h.useRef)(null),d=(0,h.useRef)(null),m=n?.color,p=n?.theme?.coverImageColor,f=n?.isLegacyCourse,g=n?.navigationStyle,v=n?.theme?.accentContrast,C=n?.theme?.progressIndicatorStyle,x=o?.active??!1,L=x||t?void 0:"true";(0,h.useLayoutEffect)(()=>{u&&u?.current&&c(u.current?.scrollWidth)},[r,t,u,x,c]);const y=(0,h.useMemo)(()=>(0,Pt.zH)(g),[g]),E=(0,h.useMemo)(()=>(0,Pt.I8)(g),[g]),b=(0,h.useMemo)(()=>(0,Pt.FH)(g),[g]),S=(0,h.useMemo)(()=>b&&p===M.df.LIGHT,[b,p]),T=!(0,ft.Wn)(m),N=(0,ft.xD)(m),j=C===M.Y2.CIRCULAR_FILL,R=C===M.Y2.INCOMPLETE_COMPLETE,O=v===M.Em.AUTO&&N===M.Em.DARK,P=(0,h.useMemo)(()=>v?v===M.Em.DARK||O:T,[O,T,v]),A=eu("header"),F=eu("body"),w=eu("content"),D=eu({accent:y,"dark-contrast":!b&&P,"light-contrast":!b&&!P,"legacy-pre-themes":f,"image-dark-overlay":b&&!S,"image-light-overlay":b&&S,"progress-circular-fill":j,"progress-incomplete-complete":R,collapsed:!t,dark:E,light:!E,searching:x});return(0,s.jsx)(Ul,{inert:!t,children:(0,s.jsx)(Cs.F,{children:(0,s.jsx)(Cs.eB,{in:t,mountOnEnter:!0,nodeRef:d,timeout:300,unmountOnExit:!0,children:(0,s.jsx)("div",{"aria-hidden":L,className:D,"data-testid":"nav-sidebar",ref:d,children:(0,s.jsxs)("div",{className:w,"data-nav-scrollable":!0,id:sg,children:[(0,s.jsx)(bP,{className:A,isCompact:r,isEnabled:t,navRefWidth:i,setIsCompact:a}),(0,s.jsxs)("div",{className:F,"data-testid":"nav-sidebar-body",ref:u,children:[(0,s.jsx)(AP,{closeNav:e,isEnabled:t&&!x}),(0,s.jsx)(OP,{closeNav:e,isEnabled:t&&x})]})]})})})})})},ha={x:null,y:null},tu={passive:!0};function ng({children:t,onSwipeDown:e,onSwipeLeft:n,onSwipeRight:o,onSwipeUp:r,onShouldRecognizeGesture:a=()=>!0,thresholdX:i=100,thresholdY:c=100}){const u=(0,h.useRef)(),[d,m]=(0,h.useState)(ha),[p,f]=(0,h.useState)(ha),g=(0,h.useCallback)(L=>{const y=L.touches?.length??0,E=L.targetTouches[0],b=a?a():!0;y==1&&E&&b?m({x:E.clientX,y:E.clientY}):m(ha)},[a]),v=(0,h.useCallback)(L=>{const y=L.targetTouches[0];y&&f({x:y.clientX,y:y.clientY})},[]),C=(0,h.useCallback)(()=>{m(ha),f(ha)},[]),x=(0,h.useCallback)(L=>{const y=L.touches?.length??0;if(d.x==null||d.y==null||p.x==null||p.y==null||y>0)return;const E=p.x-d.x,b=p.y-d.y;Math.abs(E)>Math.abs(b)?Math.abs(E)>i&&(E<0?n?.():o?.()):Math.abs(b)>c&&(b<0?r?.():e?.()),m(ha),f(ha)},[e,n,o,r,i,c,p,d]);return(0,es.A)("touchstart",g,u.current,tu),(0,es.A)("touchcancel",C,u.current,tu),(0,es.A)("touchmove",v,u.current,tu),(0,es.A)("touchend",x,u.current,tu),(0,s.jsx)("div",{ref:u,children:t})}ng.propTypes={children:Ge().oneOfType([Ge().arrayOf(Ge().element),Ge().element]).isRequired,onShouldRecognizeGesture:Ge().func,onSwipeDown:Ge().func,onSwipeLeft:Ge().func,onSwipeRight:Ge().func,onSwipeUp:Ge().func,thresholdX:Ge().number.isRequired,thresholdY:Ge().number.isRequired};function su({isEnabled:t=!0,...e}){return t?(0,s.jsx)(ng,{...e}):(0,s.jsx)("div",{children:e.children})}su.propTypes={children:Ge().oneOfType([Ge().arrayOf(Ge().element),Ge().element]).isRequired,isEnabled:Ge().bool.isRequired};const nu={DESKTOP:"desktop",TABLET_PORTRAIT:"tablet-portrait",TABLET_LANDSCAPE:"tablet-landscape",MOBILE_PORTRAIT:"mobile-portrait",MOBILE_LANDSCAPE:"mobile-landscape"},BP=[nu.TABLET_PORTRAIT,nu.TABLET_LANDSCAPE,nu.MOBILE_PORTRAIT,nu.MOBILE_LANDSCAPE],Xl=t=>BP.includes(t),HP=t=>(0,h.useMemo)(()=>{const e=window.matchMedia("(pointer: coarse)").matches,n=Xl(t);return e||n},[t]),og=ne("course-navigation"),{COMPACT:ou,OVERLAY:Fh,SIDEBAR:ma}=M.br,FP={[ou]:Wv,[ma]:sg,[Fh]:qv},zP=({hasSearchResults:t,courseNavType:e,openNav:n,closeNav:o})=>{const[r,a]=(0,h.useState)(t);return(0,h.useEffect)(()=>{r&&!t&&!(e===ma)?(o(),a(!1)):r&&e===Fh?n():a(t)},[t,e,n,o,r]),r},VP=t=>{const[e,n]=(0,h.useState)();(0,h.useEffect)(()=>{const{activeNavType:o,beginWithSidebarOpen:r,isNavOpen:a,isTablet:i,openNav:c,closeNav:u}=t;o===ma&&r&&(!e&&i&&a?u():e&&!i&&!a&&c(),n(i))},[e,t])},UP=({beginWithSidebarOpen:t,children:e,closeNav:n,courseNavType:o,isNavOpen:r,isTablet:a,lessonNavType:i,openNav:c,previewType:u,toggleNav:d,hideNav:m})=>{const p=(0,h.useRef)(),f=(0,h.useRef)(),{active:g}=Fe(),v=(0,ot.useLabelsMap)(),C=zP({hasSearchResults:g,courseNavType:o,openNav:c,closeNav:n}),x=(0,h.useMemo)(()=>C||o===ou&&a?ma:o,[o,C,a]);VP({activeNavType:x,beginWithSidebarOpen:t,closeNav:n,openNav:c,isNavOpen:r,isTablet:a}),(0,h.useEffect)(()=>{const T=j=>{f.current?.contains(j.relatedTarget)&&n()},N=()=>{f.current?.removeEventListener("click",n),f.current?.removeEventListener("keypress",n),f.current?.removeEventListener("blur",T,!0)};return x===ou&&r?(f.current?.addEventListener("click",n),f.current?.addEventListener("keypress",n),f.current?.addEventListener("blur",T,!0)):N(),N},[x,r,f,n]);const L=HP(u),y=(0,h.useCallback)(()=>{const T=x===M.br.SIDEBAR;L&&T&&r&&n()},[n,r,L,x]),E=(0,h.useMemo)(()=>FP[x],[x]),b=og(x?.toLowerCase(),{"nav-open":r,"search-open":g&&r,"course-nav-type":o?.toLowerCase()}),S=og("lessonNav",{type:i?.toLowerCase()});return(0,s.jsx)(Sb,{isCourseNavOpen:r,children:(0,s.jsx)("div",{className:b,children:(0,s.jsx)(su,{isEnabled:x===M.br.SIDEBAR,onSwipeLeft:y,children:(0,s.jsxs)("div",{className:S,children:[(0,s.jsxs)("nav",{"aria-label":v?.a11yRegionNavLesson,children:[(0,s.jsx)(xA,{"aria-controls":E,hideNav:m,isNavOpen:r,toggleNav:d}),x===ma&&(0,s.jsx)(DP,{closeNav:n,isExpanded:r}),x===ou&&(0,s.jsx)(HR,{closeNav:n,isExpanded:r,openNav:c,ref:p}),x===Fh&&(0,s.jsx)(FR,{closeNav:n,openNav:c,children:(0,s.jsx)(fP,{isExpanded:r})})]}),(0,s.jsx)("div",{ref:f,children:e})]})})})})},$P=({children:t,isPreviewLesson:e,...n})=>{const{buttonNavigationStyle:o,navigationType:r,lmsOptions:a,...i}=(0,xe.DX)(),c=Rl(),u=(0,Pt.zh)(i),d=!c,m=i.sidebarMode===M.RE.OPEN,p=u&&r===ma&&m&&d,f=(0,Es.c3)(i),g=f&&i?.theme?.blockNavigationType===M.HC.CONTINOUS,[v,C]=(0,h.useState)(p),x=(0,h.useCallback)(()=>{C(!0)},[]),L=(0,h.useCallback)(()=>{C(!1)},[]),y=(0,h.useCallback)(()=>v?L():x(),[v,L,x]);(0,es.A)(Af,x),(0,es.A)(Rf,L);const E=f||e?"fixed-course-exit":void 0,b=g?{marginInlineEnd:"2rem"}:void 0,S=u?r:"";return f||e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Tv,{className:E,lmsOptions:a,style:b}),t]}):(0,s.jsx)(UP,{...n,beginWithSidebarOpen:m,closeNav:L,courseNavType:S,enableExitCourse:a?.enableExitCourse||!0,hideNav:!u,isNavOpen:v,isTablet:c,lessonNavType:o,openNav:x,toggleNav:y,children:t})};var WP=l(1168),GP=l(19102),ru=l.n(GP);const KP=ru()(It()("family","continue"),It()("variant","continue")),rg=Xe()(jh()(KP),_s()([],"items"));var ag=l(65063);function _P(t){return t==="a"?46.5:7.6}function QP(t){return t==="d"?2:3.2}function ZP(t){switch(t){case"a":return 30;case"c":case"d":return 92;default:return 76}}function ig(t){switch(t){case"b":return 95;case"background":return 52;default:return 76}}function lg(t){switch(t){case"a":case"b":case"carousel":default:return 6.4;case"c":return 18.6;case"d":return 8;case"background":return 6}}function YP(t){return .3}function Vte(t){switch(t){case 3:return"three";case 4:return"four";default:return"two"}}function XP(t){return t==="light"?"#fff":"#000"}function Ute(t){switch(t){case"a":case"b":default:return[6.4,9.6,16];case"c":return[10,14.8,18.6];case"d":return[8,12,16];case"background":return[6,9.6,16];case"carousel":return[6.4,10,16]}}function $te(t){return t==="b"?[52,76,95]:[52,76,92]}function Wte(t){return t==="a"?[30,76,92]:[52,76,92]}function Gte(t){return t==="d"?[2,4.8,5.6]:[3.2,4.8,5.6]}function Kte(t){return t==="a"?[46.5,78,120]:[7.6,20,32]}function JP(t){switch(t){case 3:return"sm";case 10:return"lg";default:return"med"}}function cg(t,e){switch(e){case 6:case 6.4:case 8:default:return"sm";case 9.6:case 12:case 14.8:return"med";case 16:case 18.6:return"lg";case 10:return t==="c"?"sm":"med"}}function qP(t){switch(t){case 52:return"sm";case 76:return"med";default:return"lg"}}function dg(t){switch(t){case 52:return"sm";case 76:return"med";default:return"lg"}}function ug(t){switch(t){case 4:return"med";case 6:return"lg";default:return"sm"}}function zh(t){switch(t){case 52:return"sm";case 92:return"lg";default:return"med"}}function ew(t){switch(t){case 30:case 52:return"sm";case 92:return"lg";default:return"med"}}function tw(t){switch(t){case 4.8:return"med";case 5.6:return"lg";default:return"sm"}}function sw(t){switch(t){case 20:case 78:return"med";case 32:case 120:return"lg";default:return"sm"}}function nw(t){switch(t){case 1:return"sm";case 3:return"lg";default:return"med"}}function ow(t){switch(t){case 3.2:return"med";case 5.6:return"lg";default:return"sm"}}const ls=({value:t,className:e,allowTabNavigation:n=!0,tagName:o,id:r})=>{const{value:a}=C2((0,nt.QQ)(t));return a?(0,s.jsx)(Tt,{allowTabNavigation:n,className:e,id:r,tagName:o,value:t}):null};function rw(t,e){const{className:n="",tag:o="div",style:r={},...a}=t,{backgroundColor:i}=Ys(),c=Zj(),u=c===lt.S6.DARK?lt.S6.LIGHT:lt.S6.DARK;return i!==""&&Object.assign(r,{"--color-background-contrast":c,"--color-background-contrast-complementary":u,"--color-background-contrast-rgb":(0,fi.A)(c)?.slice(0,3)}),(0,s.jsx)(o,{...a,className:n,ref:e,style:r})}const hg=(0,h.forwardRef)(rw),aw=10,mg=t=>`${t}rem`,Vh=t=>t!=null?`${t/aw}rem`:void 0,iw=["image full","image text overlay","quote background"];function lw(t){const{family:e,variant:n,backgroundType:o,isOnlyBlockInStep:r,isOnePage:a}=t;if(!a||!r)return!1;if(o===M.xj.IMAGE)return!0;if(!e||!n)return!1;const i=`${e} ${n}`;return iw.some(c=>c===i)}const cw={paddingBottom:"0rem",paddingTop:"0rem"},dw=t=>{const{blockSettings:e,familyTheme:n,courseTheme:o,isFullWidthImage:r}=t;if(r)return cw;const a=mg(Number(_f(e?.paddingTop,n?.paddingStart,o?.blockPaddingStart,M.S$)));return{paddingBottom:mg(Number(_f(e?.paddingBottom,n?.paddingEnd,o?.blockPaddingEnd,M.S$))),paddingTop:a}},uw={},hw=t=>t?{bodyFontSize:Vh(t.bodyFontSize),headingFontSize:Vh(t.headingFontSize),subheadingFontSize:Vh(t.subheadingFontSize)}:uw;function mw(){const t=Is(),e=(0,xe.DX)(),n=mi(),o=(0,Es.c3)(e),r=lw({backgroundType:t?.settings?.backgroundType,family:t?.family,isOnePage:o,isOnlyBlockInStep:t?.isOnlyBlockInStep,variant:t?.variant});return dw({blockSettings:t?.settings,courseTheme:e?.theme,familyTheme:n,isFullWidthImage:r})}function pw(){const t=mi();return hw(t)}function fw(){const t=mw();return{fontSize:pw(),padding:t}}const vw=Ld()(["settings"]),pg=ne("block-wrapper"),gw=ne("bg"),Cw=(t,e)=>{const{children:n,className:o,defaultBackgroundColor:r="",style:a,tag:i,type:c,...u}=t,d=Is(),m=Xj(),p=fw(),f=rh(r,m.backgroundColor),g=f||"transparent",v=d?.className,C={...a,...m.backgroundImageCss,"--color-background":f,...p.fontSize.bodyFontSize&&{"--block-text-body-font-size":p.fontSize.bodyFontSize},...p.fontSize.headingFontSize&&{"--block-text-heading-font-size":p.fontSize.headingFontSize},...p.fontSize.subheadingFontSize&&{"--block-text-subheading-font-size":p.fontSize.subheadingFontSize},boxShadow:`0px 1px 0px ${g} `,paddingBottom:p.padding.paddingBottom,paddingTop:p.padding.paddingTop},x=Q()(o,{"bg--legacy-background":m.isLegacyBackground,[`block-${c}`]:!!c}),L=gw({card:m.cardMode,range:m.colorRange,type:m.backgroundTypeLowercase,"overlay-light":m.isOverlayLight,"contrast-light":m.isContrastLight}),y=v?pg({}).mix(L).mix(v):pg({}).mix(L),E=[x,y.toString()].join(" ");return(0,s.jsxs)(hg,{...vw(u),className:E,ref:e,style:C,tag:i,children:[(0,s.jsx)("span",{"aria-label":m.backgroundImageAlt,role:(0,Fs.Vx)(m.backgroundImageAlt)}),n]})},kt=(0,h.forwardRef)(Cw),Tn=qa("ImageEagerOrLazy");var xw=l(47522),Qte=l(81067);function fg(t){return(0,s.jsx)(xw.A,{IconUnzoom:yw,IconZoom:bw,...t})}const bw=()=>(0,s.jsx)(ct,{name:"arrows-two-from-center"}),yw=()=>(0,s.jsx)(ct,{name:"arrows-two-to-center"}),vg=ne("block-text");function Lw({children:t,item:e,labels:n}){const o="media"in e?e.media:void 0,r=(0,nt.QQ)(o)?.image,a=(0,Ft.ME)(r),i=(0,Fs.Ll)(r?.alt??""),u=Is()?.settings,d=u?.images,m=u?.zoomOnClick,p=(0,h.useRef)(void 0);let f=(0,s.jsx)(Tn,{alt:i,"data-l10n-id":(0,pt.pP)(o),ref:p,src:a});return m&&(f=(0,s.jsx)(fg,{a11yNameButtonUnzoom:n?.a11yUnzoomImage,a11yNameButtonZoom:n?.a11yZoomImage,children:f})),(0,s.jsxs)("div",{className:vg("col"),children:[d&&r&&(0,s.jsx)("div",{className:vg("image"),children:f}),t]})}var Ew=l(99800),au=l(79571);const Sw=ne("portal-tooltip"),Ps={LEFT:"LEFT",RIGHT:"RIGHT",ABOVE:"ABOVE",BELOW:"BELOW"},Tw=(t,e,n)=>{const o=t.getBoundingClientRect(),r=e.getBoundingClientRect(),a=window.visualViewport;let i=n;(i===Ps.ABOVE||i===Ps.BELOW)&&(o.bottom-r.height<0&&(i=Ps.BELOW),r.height+o.top>a.height&&(i=Ps.ABOVE)),(i===Ps.LEFT||i===Ps.RIGHT)&&(r.left<0&&(i=Ps.RIGHT),r.width+o.left>a.width&&(i=Ps.LEFT));const c={left:0,right:0,top:0,bottom:0};i===Ps.ABOVE&&(c.top=o.top-r.height-25),i===Ps.BELOW&&(c.top=o.top+o.height),i===Ps.RIGHT&&(c.left=o.left+o.width+70),i===Ps.LEFT&&(c.left=o.left-r.width-25),(i===Ps.LEFT||i===Ps.RIGHT)&&(c.top=o.top-o.height/2),(i===Ps.ABOVE||i===Ps.BELOW)&&(c.left=o.left+o.width/2);const u=o.left+o.width/2,d=r.width/2+u>a.width,m=r.width/2>u;d?e.classList.add("portal-tooltip__tooltip--offset-right"):m&&e.classList.add("portal-tooltip__tooltip--offset-left"),Object.keys(c).map(p=>c[p]===0?e.style.removeProperty(p):e.style.setProperty(p,`${c[p]}px`)),e.classList.add(`portal-tooltip__tooltip--${i.toLowerCase()}`)};function Iw({children:t,className:e,direction:n=Ps.ABOVE,elementFocused:o,exitAnimation:r=!0,message:a,style:i,renderInModalWhenPresent:c=!1}){const[u,d]=(0,h.useState)(!1),[m]=(0,h.useState)(!1),p=(0,h.useRef)(null),f=(0,h.useRef)(null),[g,v]=(0,Ew.A)((()=>t)),C=(0,h.useCallback)(()=>d(!0),[d]),x=(0,h.useCallback)(()=>d(!1),[d]);return(0,h.useEffect)(()=>(document.addEventListener("scroll",C),document.addEventListener("scrollend",x),()=>{document.removeEventListener("scroll",C),document.removeEventListener("scrollend",x)})),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:p,children:g}),a&&(v||m||o)&&!u&&(0,s.jsx)(Cs.B1,{classNames:"portal-tooltip__tooltip",exit:r,timeout:200,children:(0,s.jsx)(Nw,{buttonRef:p,className:e,direction:n,elementFocused:o,hovering:v,message:a,portalRef:f,renderInModalWhenPresent:c,style:i})})]})}function Nw({buttonRef:t,className:e,direction:n,elementFocused:o,hovering:r,message:a,portalRef:i,style:c,renderInModalWhenPresent:u=!1}){const d=(0,h.useCallback)(()=>Tw(t.current,i.current,n),[t,n,i]),m=(0,h.useCallback)(()=>{i.current&&d()},[i,d]),p=()=>{!r&&!o&&i.current&&(i.current.style=null)};return(0,au.A)(m),(0,eo.createPortal)((0,s.jsx)("div",{"aria-hidden":!r||!o,className:Sw("tooltip").mix(e).toString(),onTransitionEnd:p,ref:i,style:c,children:a}),u?fr({id:"portal",childType:"other"}):document.getElementById("portal"))}const Jl=Iw,jw=(0,ks.GF)(),ql=()=>jw(t=>t.transcriptPanel),kw=({audioPlayerId:t,condensed:e=!1,transcriptMedia:n,onDelete:o,onTranscriptClick:r,onTranscriptClose:a})=>{const{mode:i,disableTranscriptButton:c}=Wd(),u=ql(),[d,m]=(0,h.useState)(!1),[p,f]=(0,h.useState)(!1),g=(0,nt.QQ)(n)?.audio?.transcript,v=(0,h.useCallback)(()=>m(!0),[]),C=(0,h.useCallback)(()=>m(!1),[]),x=(0,h.useCallback)(()=>f(!0),[]),L=(0,h.useCallback)(()=>f(!1),[]),y=(0,xe.vU)(),E=u?.audioPlayerIdOpen&&u.audioPlayerIdOpen===t,b=c?"Transcripts are only available in lesson previews":E?y?.audioHideTranscript:i==="edit"?"Edit transcript":y?.audioShowTranscript,S=(0,h.useCallback)(()=>{const R=document.getElementById(Th(t));R&&R.focus()},[t]),[T,N]=(0,h.useState)(!1);function j(){c||(E?a?.():(r?.(),N(!0)))}return(0,h.useEffect)(()=>{T&&(N(!1),S())},[T,S]),(0,s.jsxs)(s.Fragment,{children:[o&&(0,s.jsx)(Jl,{elementFocused:d,message:"Remove audio",children:(0,s.jsx)(Mt.ArcButton,{hierarchy:"tertiary",icon:(0,s.jsx)(ct,{name:"trash"}),layout:"icon",onBlur:C,onClick:o,onFocus:v,onMouseOut:C,onMouseOver:v,size:e?"sm":"md",type:"button"})}),(i==="edit"||g)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Jl,{elementFocused:p,message:b,renderInModalWhenPresent:i==="readonly",style:{whiteSpace:"nowrap"},children:(0,s.jsx)(Mt.ArcButton,{"aria-label":b,disabled:c,hierarchy:"tertiary",icon:(0,s.jsx)(ct,{name:"file-audio"}),id:i==="readonly"?Ev(t):void 0,layout:"icon",onBlur:L,onClick:j,onFocus:x,onMouseOut:L,onMouseOver:x,size:e?"sm":"md",style:c?{opacity:.5,pointerEvents:"auto"}:void 0,type:"button"})}),E?(0,s.jsx)("div",{onFocus:S,tabIndex:0}):null]})]})};var Aw=l(78836);const gg="change";class Rw extends Aw.EventEmitter{_isMuted;_isPlaying;_playerId;constructor(e){super(),this.setMaxListeners(e)}get isPlaying(){return this._isPlaying}set isPlaying(e){this._isPlaying=e,this.emit("change")}set playerId(e){this._playerId=e}get playerId(){return this._playerId}pause(){this.isPlaying=!1}addChangeListener(e){this.on(gg,e)}removeChangeListener(e){this.removeListener(gg,e)}}const st=new Rw(1/0);var Pw=l(88593),Ti=l.n(Pw);const ww=[.5,.75,1,1.25,1.5,1.75,2].toReversed().map(t=>({value:t,label:`${t}x`})),iu=.05,Cg=ne("audio-player-icon"),pa=({x:t,width:e,height:n,y:o,pulseBaseHeight:r,pulseBaseY:a,pulseHeight:i,pulseY:c,delay:u="0s"})=>(0,s.jsx)("rect",{className:Cg("bar"),height:n,rx:1,style:{"--base-height":`${n/10}rem`,"--base-y":`${o/10}rem`,"--pulse-base-height":r&&`${r/10}rem`,"--pulse-base-y":a&&`${a/10}rem`,"--pulse-height":`${i/10}rem`,"--pulse-y":`${c/10}rem`,"--delay":u},width:e,x:t,y:o}),xg=({animating:t})=>(0,s.jsx)("span",{className:Cg({animating:t}),children:(0,s.jsxs)("svg",{"aria-hidden":"true",height:"16",viewBox:"0 0 20 16",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)(pa,{delay:"0s",height:2,pulseBaseHeight:1,pulseBaseY:7.5,pulseHeight:6,pulseY:5,width:2,x:0,y:7}),(0,s.jsx)(pa,{delay:"0.1s",height:4,pulseBaseHeight:3,pulseBaseY:6.5,pulseHeight:8,pulseY:4,width:2,x:3,y:6}),(0,s.jsx)(pa,{delay:"0.2s",height:10,pulseBaseHeight:8,pulseBaseY:4,pulseHeight:12,pulseY:2,width:2,x:6,y:3}),(0,s.jsx)(pa,{delay:"0.3s",height:16,pulseBaseHeight:12,pulseBaseY:2,pulseHeight:16,pulseY:0,width:2,x:9,y:0}),(0,s.jsx)(pa,{delay:"0.4s",height:8,pulseBaseHeight:6,pulseBaseY:5,pulseHeight:12,pulseY:2,width:2,x:12,y:4}),(0,s.jsx)(pa,{delay:"0.5s",height:11,pulseBaseHeight:9,pulseBaseY:3.5,pulseHeight:15,pulseY:.5,width:2,x:15,y:2.5}),(0,s.jsx)(pa,{delay:"0.6s",height:2,pulseBaseHeight:1,pulseBaseY:7.5,pulseHeight:6,pulseY:5,width:2,x:18,y:7})]})});var Mw,zt=l(26372);const lu=zt.createContext(null);function Ow({children:t,isDisabled:e,onClose:n,onOpen:o,onSelect:r,positionX:a="left"}){const[i,c]=zt.useState(!1),u=(0,tt.A)(i),[d,m]=zt.useState(null),p=zt.useRef(null),f=zt.useRef(null),g=zt.useRef(null),x=`${`menu-${zt.useId()}`}-content`,L=zt.useCallback(({direction:w,predFn:D=()=>!0})=>{if(!g.current)return;const V=Array.from(g.current.querySelectorAll('[role="menuitem"]')),_=V.length,ee=V.findIndex(Ie=>Ie===document.activeElement);let q,fe,ye;switch(w){case"start":q=0,fe=1;break;case"end":q=_-1,fe=-1;break;case"backwards":q=ee-1,fe=-1;break;case"forwards":q=ee+1,fe=1;break;default:q=ee+1,fe=1}for(let Ie=0;Ie<=_;Ie++){q>=_?q=0:q<0&&(q=_-1);const we=V[q];if(we!=null&&Hw(we)&&D(we)){ye=we;break}else q=q+fe}ye&&ye.focus()},[]),y=zt.useCallback(()=>{L({direction:"start"})},[L]),E=zt.useCallback(()=>{L({direction:"end"})},[L]),b=zt.useCallback(()=>{L({direction:"backwards"})},[L]),S=zt.useCallback(()=>{L({direction:"forwards"})},[L]),T=zt.useCallback(w=>{L({direction:"forwards",predFn:D=>Fw(D,w)})},[L]),N=zt.useCallback(()=>{i?c(!1):(c(!0),setTimeout(S,25))},[S,i]),j=zt.useCallback(()=>{f.current?.focus(),c(!1)},[]),R=zt.useCallback(()=>{c(!0),setTimeout(S,25)},[S]),O=zt.useCallback(()=>{c(!0),setTimeout(b,25)},[b]),P=zt.useCallback(()=>{const{left:w,top:D}=tv({anchor:f.current,popover:g.current,positionX:a});m({transform:`translate3d(${w}px, ${D}px, 0)`,visibility:"visible"})},[a]),A=zt.useCallback(w=>{const D=w.currentTarget;bg(D)||(r?.(D.getAttribute("data-name")),j())},[j,r]),F=zt.useCallback(w=>{const D=w.key;if(w.altKey||w.ctrlKey||w.metaKey)return;let V=!1;if(w.shiftKey)D==="Tab"?b():D.trim()!==""&&T(D),V=!0;else switch(D){case" ":case"Enter":A(w),V=!0;break;case"Esc":case"Escape":j(),V=!0;break;case"ArrowUp":b(),V=!0;break;case"Tab":case"ArrowDown":S(),V=!0;break;case"Home":case"PageUp":y(),V=!0;break;case"End":case"PageDown":E(),V=!0;break;default:T(D);break}V&&(w.stopPropagation(),w.preventDefault())},[j,A,T,y,E,S,b]);return zt.useEffect(()=>{const w=D=>{i&&p.current!=null&&g.current!=null&&!p.current.contains(D.target)&&!g.current.contains(D.target)&&c(!1)};return i?document.addEventListener("click",w):document.removeEventListener("click",w),()=>{document.removeEventListener("click",w)}},[i]),zt.useEffect(()=>(i?window.addEventListener("resize",P):window.removeEventListener("resize",P),()=>{window.removeEventListener("resize",P)}),[P,i]),zt.useEffect(()=>{const w=Sd(p.current);for(const D of w)i?D?.addEventListener("scroll",P,{passive:!0}):D?.removeEventListener("scroll",P);return()=>{for(const D of w)D?.removeEventListener("scroll",P)}},[P,i]),zt.useEffect(()=>{i?P():m(null)},[P,i]),zt.useEffect(()=>{if(u&&!i)n?.();else if(!u&&i&&(o?.(),p.current)){const w=new CustomEvent("menuopen",{bubbles:!0,detail:{target:p.current}});p.current.dispatchEvent(w)}},[u,i,n,o]),zt.useEffect(()=>{const w=D=>{D.detail.target!==p.current&&c(!1)};return document.addEventListener("menuopen",w),()=>{document.removeEventListener("menuopen",w)}},[]),(0,s.jsx)(lu.Provider,{value:{htmlIdContent:x,isExpanded:i,onCloseFocusTrigger:j,onExpandFocusMenuItemNext:R,onExpandFocusMenuItemPrevious:O,onFocusMenuItemByPrefix:T,onFocusMenuItemFirst:y,onFocusMenuItemLast:E,onFocusMenuItemNext:S,onFocusMenuItemPrevious:b,onItemClick:A,onItemKeyDown:F,onTriggerClick:N,refContent:g,refTrigger:f,styleContent:d},children:(0,s.jsx)("div",{"aria-owns":x,inert:e?!0:void 0,ref:p,children:t})})}function Dw({as:t,children:e,label:n,labelledBy:o,...r}){const{htmlIdContent:a,isExpanded:i,onTriggerClick:c,onCloseFocusTrigger:u,onExpandFocusMenuItemNext:d,onExpandFocusMenuItemPrevious:m,refTrigger:p}=zt.useContext(lu),f=zt.useCallback(v=>{let C=!1;switch(v.key){case" ":case"Enter":case"ArrowDown":case"Down":d(),C=!0;break;case"Esc":case"Escape":u(),C=!0;break;case"Up":case"ArrowUp":m(),C=!0;break;default:break}C&&(v.stopPropagation(),v.preventDefault())},[u,d,m]),g=t??"button";return(0,s.jsx)(g,{...r,"aria-controls":a,"aria-expanded":i,"aria-haspopup":"menu","aria-label":n,"aria-labelledby":o,"data-menu-trigger":"",onClick:c,onKeyDown:f,ref:p,type:"button",children:e})}function Bw({children:t,className:e}){const{htmlIdContent:n,isExpanded:o,refContent:r,styleContent:a}=zt.useContext(lu);return o?eo.createPortal((0,s.jsx)("div",{className:e,"data-menu-content":"",hidden:o?void 0:!0,id:n,ref:r,role:"menu",style:a,children:t}),fr()):null}function cu({children:t,className:e,isDisabled:n,name:o}){const{onItemClick:r,onItemKeyDown:a}=zt.useContext(lu),i=zt.useCallback(c=>{c.currentTarget?.focus()},[]);return(0,s.jsx)("button",{"aria-disabled":n,className:e,"data-menu-item":"","data-name":o,onClick:n?void 0:r,onKeyDown:a,onMouseOver:i,role:"menuitem",tabIndex:n?-1:void 0,type:"button",children:t})}function Jte({children:t}){return Mw("span",{"data-menu-item-icon":"",children:t})}function bg(t){return t!=null&&t.getAttribute("disabled")!=null||t.getAttribute("aria-disabled")==="true"}function Hw(t){return t!=null&&t.tagName==="BUTTON"&&!bg(t)}function Fw(t,e){return t?.textContent.toLowerCase().startsWith(e?.toLowerCase())}const ec=ne("audio-player-actions-condensed"),Sr=Object.freeze({DeleteAudio:"delete-audio",EditAudio:"edit-audio",EditTranscript:"edit-transcript",RevertToSource:"revert-audio-to-source"}),zw=({audioPlayerId:t,condensed:e=!1,transcriptMedia:n,onTranscriptClick:o,onTranscriptClose:r,item:a,side:i,refs:c})=>{const{mode:u,isVariantLocale:d,handleOpenMediaModal:m,handleDelete:p,handleRevertToSource:f}=Wd(),g=ql(),v=Is(),C=(0,nt.gY)(),x=a&&"media"in a&&a.media?C(a.media):void 0,L=x&&"audio"in x?x.audio.aiAudioSettings:void 0,y=(0,nt.D_)(),E=Lh(),b=y?E(y):"",[S,T]=(0,h.useState)(!1),N=(0,h.useCallback)(()=>T(!0),[]),j=(0,h.useCallback)(()=>T(!1),[]),R=d&&"audio"in x&&x.audio?.sourceType==="ai-audio"&&L?.l10nAutoGenStatus!=="reverted-to-source"&&L?.l10nAutoGenStatus!=="unsupported-locale",O=(0,xe.vU)(),P=g?.audioPlayerIdOpen===t,A=P?O?.audioHideTranscript:u==="edit"?"Edit transcript":O?.audioShowTranscript;function F(D){switch(D){case Sr.DeleteAudio:p(v.id,a,c);break;case Sr.EditTranscript:P?r?.():o?.();break;case Sr.EditAudio:m(v,a,c,i,{triggeredFrom:"block_audio_button"});break;case Sr.RevertToSource:f(v.id,a);break}}const w=!!C(n)?.audio?.transcript;return m||p||w?(0,s.jsx)(Jl,{elementFocused:S,message:"Options",children:(0,s.jsxs)(Ow,{onSelect:F,positionX:"left",children:[(0,s.jsx)(Dw,{as:Mt.ArcButton,hierarchy:"tertiary",icon:"fa-regular fa-ellipsis",label:"Options",layout:"icon",onBlur:j,onFocus:N,onMouseEnter:N,onMouseLeave:j,shape:"square",size:e?"sm":"md"}),(0,s.jsxs)(Bw,{className:ec("content"),children:[m?(0,s.jsx)(cu,{className:ec("menu-item"),name:Sr.EditAudio,children:"Edit audio"}):null,u==="edit"||w?(0,s.jsx)(cu,{className:ec("menu-item"),name:Sr.EditTranscript,children:A}):null,p&&v?.variant!=="audio"?(0,s.jsx)(cu,{className:ec("menu-item"),name:Sr.DeleteAudio,children:"Remove audio"}):null,f&&R?(0,s.jsxs)(cu,{className:ec("menu-item"),name:Sr.RevertToSource,children:["Revert to source audio (",b,")"]}):null]})]})}):null};var Vw,Uw,Vt=l(26372);const tc=Vt.createContext(null);function $w({children:t,className:e,isDisabled:n,onClose:o,onItemActiveChange:r,onOpen:a,onSelect:i,portalArgs:c,positionX:u="left",value:d}){const[m,p]=Vt.useState(null),f=(0,tt.A)(m),[g,v]=Vt.useState(!1),C=(0,tt.A)(g),[x,L]=Vt.useState(null),y=Vt.useRef(null),E=Vt.useRef(null),b=Vt.useRef(null),T=`select-${Vt.useId()}`,N=`${T}-content`,j=m?.id,R=Vt.useCallback(D=>{const V=D.currentTarget;yg(V)||(v(!1),p(V),i(V.getAttribute("data-value")),D.stopPropagation())},[i]),O=Vt.useCallback(D=>{p(D)},[]),P=Vt.useCallback(()=>{v(D=>!D)},[]),A=Vt.useCallback(()=>{const{left:D,top:V}=tv({anchor:E.current,popover:b.current,positionX:u}),q=window.getComputedStyle(E.current).direction==="rtl"?-D:D;L({transform:`translate3d(${q}px, ${V}px, 0)`,visibility:"visible",width:`${E.current?.offsetWidth}px`})},[u]),F=Vt.useCallback(D=>{const V=Array.from(b.current?.querySelectorAll("[data-select-item]")??[]),_=V.length,ee=V.findIndex(ye=>ye.getAttribute("data-select-item")==="current");let q,fe=ee+1;for(let ye=0;ye<_;ye++){fe>=_&&(fe=0);const Ie=V[ye];if(Ie!=null&&!yg(Ie)&&_w(Ie,D)){q=ye;break}else fe=_-1}q&&(p(V[q]),V[q]?.scrollIntoView({block:"center"}))},[]),w=Vt.useCallback(D=>{const V=D.key;if(D.ctrlKey||D.metaKey)return;let _=!1;const ee=Array.from(b.current?.querySelectorAll("[data-select-item]")??[]),q=ee.findIndex(fe=>fe.getAttribute("data-select-item")==="current");if(g)if(V.length===1&&V!==" "&&!D.altKey&&!D.ctrlKey&&!D.metaKey)F(V);else switch(V){case" ":case"Enter":v(!1),ee[q]!=null&&i(ee[q].getAttribute("data-value")),_=!0;break;case"Esc":case"Escape":v(!1),p(ee.find(fe=>fe.getAttribute("aria-selected")==="true")),_=!0;break;case"ArrowUp":D.altKey?(v(!1),ee[q]!=null&&i(ee[q].getAttribute("data-value")??"")):q>0&&(p(ee[q-1]),ee[q-1].scrollIntoView({block:"center"})),_=!0;break;case"ArrowDown":q<ee.length-1&&(p(ee[q+1]),ee[q+1].scrollIntoView({block:"center"})),_=!0;break;case"Home":p(ee[0]),ee[0]?.scrollIntoView({block:"center"}),_=!0;break;case"End":p(ee[ee.length-1]),ee[ee.length-1]?.scrollIntoView({block:"center"}),_=!0;break;case"PageUp":p(ee[0]),ee[0]?.scrollIntoView({block:"center"}),_=!0;break;case"PageDown":p(ee[ee.length-1]),ee[ee.length-1]?.scrollIntoView({block:"center"}),_=!0;break;case"Tab":v(!1),ee[q]!=null&&i(ee[q].getAttribute("data-value"));break}else if(V.length===1&&V!==" "&&!D.altKey&&!D.ctrlKey&&!D.metaKey)v(!0),F(V);else switch(V){case" ":case"Enter":v(!0),_=!0;break;case"ArrowUp":v(!0),p(ee[0]),_=!0;break;case"ArrowDown":v(!0),_=!0;break;case"Home":v(!0),p(ee[0]),_=!0;break;case"End":v(!0),p(ee[ee.length-1]),_=!0;break}_&&(D.stopPropagation(),D.preventDefault())},[F,g,i]);return Vt.useEffect(()=>{const D=b.current?.querySelector('[data-select-item][aria-selected="true"]');p(D)},[]),Vt.useEffect(()=>{const D=b.current?.querySelector(`[data-select-item][data-value="${d}"]`);p(D)},[d]),Vt.useEffect(()=>{const D=V=>{g&&y.current!=null&&b.current!=null&&!y.current.contains(V.target)&&!b.current.contains(V.target)&&v(!1)};return g?document.addEventListener("click",D):document.removeEventListener("click",D),()=>{document.removeEventListener("click",D)}},[g]),Vt.useEffect(()=>(g?window.addEventListener("resize",A):window.removeEventListener("resize",A),()=>{window.removeEventListener("resize",A)}),[A,g]),Vt.useEffect(()=>{const D=Sd(y.current);for(const V of D)g?V?.addEventListener("scroll",A,{passive:!0}):V?.removeEventListener("scroll",A);return()=>{for(const V of D)V?.removeEventListener("scroll",A)}},[A,g]),Vt.useEffect(()=>{g?A():L(null)},[A,g]),Vt.useEffect(()=>{g&&f!=null&&f!==m&&r?.({value:m.getAttribute("data-value")})},[g,f,m,r]),Vt.useEffect(()=>{if(C&&!g)o?.();else if(!C&&g&&(a?.(),y.current)){const D=new CustomEvent("comboboxopen",{bubbles:!0,detail:{target:y.current}});y.current.dispatchEvent(D)}},[C,g,o,a]),Vt.useEffect(()=>{const D=V=>{V.detail.target!==y.current&&v(!1)};return document.addEventListener("comboboxopen",D),()=>{document.removeEventListener("comboboxopen",D)}},[]),(0,s.jsx)(tc.Provider,{value:{activeEl:m,htmlIdActiveDescendant:j,htmlIdBase:T,htmlIdContent:N,isExpanded:g,onItemClick:R,onItemHover:O,onTriggerClick:P,onTriggerKeyDown:w,portalArgs:c,refContent:b,refTrigger:E,selectedValue:d,styleContent:x},children:(0,s.jsx)("div",{"aria-owns":N,className:e,inert:n?!0:void 0,ref:y,children:t})})}function Ww({children:t,className:e,labelledBy:n,as:o,...r}){const{htmlIdActiveDescendant:a,htmlIdContent:i,isExpanded:c,onTriggerClick:u,onTriggerKeyDown:d,refTrigger:m}=Vt.useContext(tc),p=!!o,f=o??"button";return(0,s.jsxs)(f,{"aria-activedescendant":a,"aria-controls":i,"aria-expanded":c,"aria-haspopup":"listbox","aria-labelledby":n,className:e,"data-select-trigger":p?void 0:"",onClick:u,onKeyDown:d,ref:m,role:"combobox",type:"button",...r,children:[(0,s.jsx)("span",{"data-select-trigger-text":"",children:t}),(0,s.jsx)("span",{"data-select-trigger-icon":"",children:c?(0,s.jsx)(ct,{name:"chevron-up"}):(0,s.jsx)(ct,{name:"chevron-down"})})]})}function Gw({children:t,className:e,label:n,labelledBy:o,style:r={}}){const{htmlIdContent:a,isExpanded:i,portalArgs:c,refContent:u,styleContent:d}=Vt.useContext(tc);return eo.createPortal((0,s.jsx)("div",{"aria-label":n,"aria-labelledby":o,className:e,"data-select-content":"",hidden:i?void 0:!0,id:a,ref:u,role:"listbox",style:{...d,...r},children:t}),fr(c))}function ese({children:t,className:e,labelText:n}){const{htmlIdBase:o}=Vt.useContext(tc),r=Vt.useId(),a=`${o}-group-label-${r}`;return Vw("div",{"aria-labelledby":a,className:e,"data-select-group":"",role:"group",children:[Uw("div",{"data-select-group-label":"",id:a,role:"presentation",children:n}),t]})}function Kw({children:t,className:e,labelledBy:n,isDisabled:o,value:r}){const{activeEl:a,htmlIdBase:i,onItemClick:c,onItemHover:u,selectedValue:d}=Vt.useContext(tc),m=Vt.useRef(null),p=Vt.useId(),f=m.current===a,g=r===d,v=`${i}-option-${p}`,C=Vt.useCallback(()=>{u(m.current)},[u]);return(0,s.jsxs)("div",{"aria-disabled":o,"aria-labelledby":n,"aria-selected":g,className:e,"data-select-item":f?"current":"","data-value":r,id:v,onClick:o?void 0:c,onMouseEnter:C,ref:m,role:"option",children:[t,g&&(0,s.jsx)("span",{"data-select-item-selected":"",children:(0,s.jsx)(ct,{name:"check"})})]})}function yg(t){return t!=null&&t.getAttribute("disabled")!=null||t.getAttribute("aria-disabled")==="true"}function _w(t,e){return t?.textContent.toLowerCase().startsWith(e?.toLowerCase())}const Uh=ne("playback-speed-menu"),Qw=({onChange:t,condensed:e=!1,speed:n})=>{const o=(0,xe.vU)(),[r,a]=(0,h.useState)(!1),i=(0,h.useCallback)(()=>a(!0),[]),c=(0,h.useCallback)(()=>a(!1),[]);return(0,s.jsx)(Jl,{elementFocused:r,message:o?.audioPlaySpeed,children:(0,s.jsxs)($w,{className:Uh(),onOpen:c,onSelect:u=>t(parseFloat(u)),portalArgs:{id:"portal",childType:"other"},value:String(n),children:[(0,s.jsxs)(Ww,{"aria-label":o?.audioPlaySpeed,as:Mt.ArcButton,className:Uh("trigger"),hierarchy:"tertiary",labelledBy:void 0,layout:"hug",onBlur:c,onFocus:i,onMouseEnter:i,onMouseLeave:c,shape:"square",size:e?"sm":"md",children:[n,"x"]}),(0,s.jsx)(Gw,{className:Uh("content"),label:o?.audioPlaySpeed,children:ww.map((u,d)=>(0,s.jsx)(Kw,{value:String(u.value??""),children:u.label},d))})]})})};function Zw(t=!1,e=200){const n=(0,h.useRef)(void 0),[o,r]=(0,h.useState)(t),a=(0,h.useCallback)(()=>{n.current&&clearTimeout(n.current),r(!0)},[]),i=(0,h.useCallback)(c=>{n.current&&clearTimeout(n.current),c?r(!1):n.current=setTimeout(()=>{r(!1)},e)},[e]);return(0,h.useEffect)(()=>()=>{n.current&&clearTimeout(n.current)},[]),{isActive:o,setActive:a,setInactive:i}}const Lg=ne("audio-player-volume"),Yw=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"];function Xw(t,e){return e||t<=0?"volumeXmark":t<=1/3?"volumeLow":t<=2/3?"volume":"volumeHigh"}function Jw({condensed:t=!1,muted:e,onChange:n,onMute:o,volume:r}){const a=(0,xe.vU)(),i=(0,h.useRef)(null),c=(0,h.useRef)(null),u=(0,h.useRef)(null),{isActive:d,setActive:m,setInactive:p}=Zw(!1,200),f=e?0:r;function g(C){if(Yw.includes(C.code)){const y=window.getComputedStyle(C.currentTarget).direction==="rtl"?"ArrowLeft":"ArrowRight",E=C.code==="ArrowUp"||C.code===y?Math.min(f+iu,1):Math.max(f-iu,0);n(E),C.stopPropagation(),C.preventDefault()}else C.code==="KeyM"&&(o(),C.stopPropagation(),C.preventDefault())}(0,h.useEffect)(()=>{u.current.style.setProperty("--slider-volume",`${f*100}%`)},[f]);const v=`${Math.round(f*100)}%`;return(0,s.jsxs)("div",{className:Lg(),onKeyDown:g,onMouseEnter:m,onMouseLeave:()=>p(!1),ref:i,children:[(0,s.jsx)(Mt.ArcButton,{"aria-label":f<=0?a?.a11yMediaUnmute:a?.a11yMediaMute,color:"primary",hierarchy:"tertiary",icon:(0,s.jsx)(ct,{name:Xw(f,e)}),layout:"icon",onClick:o,ref:c,size:t?"sm":"md",type:"button"}),(0,s.jsx)("input",{"aria-label":a?.a11yMediaVolume,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":f*100,"aria-valuetext":v,className:Lg("slider").mix(d?"":"visually-hidden"),max:100,min:0,onChange:C=>n(C.currentTarget.valueAsNumber/100),ref:u,type:"range",value:f*100})]})}const In=ne("audio-player"),du=({currentTime:t,duration:e})=>Math.round(t/e*100)||0,Eg=t=>{if(!t)return{hours:0,minutes:0,seconds:0};const e=Math.floor(t/3600),n=Math.floor(t%3600/60),o=t%60;return{hours:e,minutes:n,seconds:o}},Sg=t=>{const{minutes:e,seconds:n}=Eg(t);let o="";return e>0&&(o+=`${new Intl.NumberFormat(void 0,{style:"unit",unit:"minute",unitDisplay:"long"}).format(e)} `),o+=new Intl.NumberFormat(void 0,{style:"unit",unit:"second",unitDisplay:"long"}).format(Math.round(n)),o},qw=t=>{const{hours:e,minutes:n,seconds:o}=Eg(t);function r(c,u,d){return(new Array(d+1).join(u)+c).slice(-d)}const a=r(n,"0",2),i=r(o,"0",2);return e>0?`${e}:${a}:${i}`:`${n}:${i}`};class Ii extends h.Component{audio;play;playerControls;seekSlider;onDelete;constructor(e){super(e),this.state={condensed:!1,currentTime:0,playheadPositionSaveThrottle:0,playbackSpeed:1,playerExpanded:!0,shouldLoadPlayheadPosition:!0,volume:1,muted:!1,maxTime:e.audioVideoPlayhead||0},this.handleChange=this.handleChange.bind(this),this.handleClickInsideAudioPlayer=this.handleClickInsideAudioPlayer.bind(this),this.onPlayClick=this.onPlayClick.bind(this),this.onTogglePlayer=this.onTogglePlayer.bind(this)}static defaultProps={allowTabNavigation:!0,mediaSrc:null,onEnd:()=>{},onLoad:()=>{},onPause:()=>{},onPlay:()=>{},onSeek:()=>{},shouldPause:!1,transcriptMedia:null};static timeMs(e){return Math.round(e*1e3)}keySeek(e){const{canRestrictSeek:n}=this.props,{currentTime:o,duration:r}=this.audio,{maxTime:a}=this.state;let i=o+e;n&&i>a&&(i=a);const c=Math.max(0,r-.01);this.audio.currentTime=e<0?Math.max(i,0):Math.min(i,c)}changeVolume=e=>{this.audio.volume=Math.round(e*100)/100,this.audio.muted=!1};muteToggle=()=>{this.audio.volume<=0?(this.audio.volume=1,this.audio.muted=!1):this.audio.muted=!this.audio.muted};changeVolumeDelta=e=>{const n=e<0?Math.max(this.audio.volume+e,0):Math.min(this.audio.volume+e,1);this.changeVolume(n)};componentDidMount(){st.addChangeListener(this.handleChange)}componentDidUpdate(e,n){const r=this.props.activeIndex!=null&&this.props.itemIndex!=null&&e.activeIndex!==this.props.activeIndex&&this.props.activeIndex!==this.props.itemIndex;(!e.shouldPause&&this.props.shouldPause||r)&&(this.audio.pause(),st.isPlaying&&st.playerId===this.props.id&&st.pause()),n.playbackSpeed!==this.state.playbackSpeed&&(this.audio.playbackRate=this.state.playbackSpeed)}componentWillUnmount(){const{recordMediaPlayheadPosition:e,id:n}=this.props;st.playerId===n&&st.pause(),st.removeChangeListener(this.handleChange),e&&e(du(this.audio))}handleClickInsideAudioPlayer=e=>{e.stopPropagation(),e.preventDefault()};handleChange(){st.playerId===this.props.id?this.audio&&(st.isPlaying&&this.audio.paused?this.audio.play():!st.isPlaying&&!this.audio.paused&&this.audio.pause(),this.forceUpdate()):st.isPlaying&&(this.audio.pause(),this.forceUpdate())}containerResizeRef=e=>{const n=new ResizeObserver(([o])=>{if(!o)return;const r=getComputedStyle(document.documentElement),a=parseFloat(r.fontSize)/10;this.setState({condensed:o.contentRect.width<300*a})});return this.setState({condensed:e.getBoundingClientRect().width<256}),n.observe(e),()=>{n.disconnect()}};render(){const{allowTabNavigation:e,id:n,isEditor:o,isOverlayAudio:r,labels:a,mediaSrc:i,mode:c,onDelete:u,onTranscriptClick:d,onTranscriptClose:m,transcriptMedia:p,item:f,side:g,refs:v,transcriptAudioPlayerIdOpen:C}=this.props,x=st.isPlaying&&st.playerId===n,{currentTime:L,playerExpanded:y}=this.state,E=this.audio?.duration??0,b=Number.isNaN(E)?0:E,S=Math.round(b-L),T=qw(S),N=Sg(S),j=Sg(L),R=e?0:-1,O=!o,{a11yGroupAudioPlayer:P,a11yMediaPlay:A,a11yMediaPause:F,a11yMediaSeek:w}=a??{},D=In({overlay:r,collapsed:r&&!y,expanded:!r||y,"volume-slider-below":this.props.volumeSliderPosition==="below"}),V=o||c==="edit"?"Collapse audio player":a?.audioCollapsePlayer,_=o||c==="edit"?"Expand audio player":a?.audioExpandPlayer,ee=y?V:_,q=ro({refs:v}),ye=C===q?Th(C):void 0;return(0,s.jsx)("div",{className:In("container"),onClick:this.handleClickInsideAudioPlayer,ref:this.containerResizeRef,children:(0,s.jsxs)("div",{className:D,id:n,children:[O&&(0,s.jsx)("div",{className:In("waveform"),children:r?(0,s.jsx)(Jl,{message:ee,children:(0,s.jsx)("button",{"aria-label":ee,className:In("waveform-icon"),onClick:this.onTogglePlayer,type:"button",children:(0,s.jsx)(xg,{animating:x})})}):(0,s.jsx)("div",{className:In("waveform-icon",{disabled:!0}),children:(0,s.jsx)(xg,{animating:x})})}),(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":P,"aria-owns":ye,className:In("housing",{"with-border":O}),inert:!this.state.playerExpanded,onKeyDown:this.onKeyDown.bind(this),role:pi,tabIndex:R,children:[(0,s.jsxs)("div",{className:In("play-timer-housing"),children:[(0,s.jsx)(Mt.ArcButton,{"aria-label":x?F:A,className:In("play"),hierarchy:"tertiary",icon:(0,s.jsx)(ct,{className:In("icon"),name:x?"pause-solid":"play-solid"}),layout:"icon",onClick:this.onPlayClick,ref:Ie=>{this.play=Ie},shape:"square",size:this.state.condensed?"sm":"md",tabIndex:R,type:"button"}),(0,s.jsx)("input",{"aria-label":w,"aria-valuemax":b,"aria-valuemin":0,"aria-valuenow":L,"aria-valuetext":j,className:In("seek-slider"),max:b,min:0,onChange:this.onSeekSliderChange.bind(this),ref:Ie=>{this.seekSlider=Ie},step:.01,type:"range",value:L}),(0,s.jsx)("div",{"aria-label":N,className:In("timer").mix(this.state.condensed?"visually-hidden-always":""),role:"timer",children:T})]}),(0,s.jsxs)("div",{className:In("player-controls"),ref:Ie=>{this.playerControls=Ie},children:[(0,s.jsx)(Qw,{condensed:this.state.condensed,onChange:Ie=>{this.setState({playbackSpeed:Ie})},speed:this.state.playbackSpeed}),(0,s.jsx)(Jw,{condensed:this.state.condensed,muted:this.state.muted,onChange:this.changeVolume,onMute:this.muteToggle,volume:this.state.volume}),c==="readonly"||o?(0,s.jsx)(kw,{audioPlayerId:q,condensed:this.state.condensed,onDelete:u,onTranscriptClick:d,onTranscriptClose:m,transcriptMedia:p}):(0,s.jsx)(zw,{audioPlayerId:q,condensed:this.state.condensed,item:f,onTranscriptClick:d,onTranscriptClose:m,refs:v,side:g,transcriptMedia:p})]})]}),(0,s.jsx)("audio",{className:In("audio-element"),"data-testid":"audio-player-element",onEnded:this.onEnded.bind(this),onLoadedMetadata:this.onLoadedMetadata.bind(this),onPause:this.onAudioPlayPause,onPlay:this.onAudioPlayPause,onSeeked:this.onSeeked.bind(this),onTimeUpdate:this.onTimeUpdate.bind(this),onVolumeChange:this.onVolumeChangeHandler,ref:Ie=>{this.audio=Ie},src:(0,$e.o1)(`${i}`)},"audio-"+n)]},`player-${n}`)})}onKeyDown(e){const o=an(this.onPlayClick),r=an(()=>this.keySeek(5)),a=an(()=>this.keySeek(-5)),i=an(()=>this.changeVolumeDelta(iu)),c=an(()=>this.changeVolumeDelta(-iu)),u=an(()=>this.muteToggle()),d=C=>C.target===this.play,m=C=>C.target===this.seekSlider,p=C=>this.playerControls===C.target||this.playerControls.contains(C.target),f=ln()([[di,o],[yr,gr],[br,gr],[ra,gr],[oa,gr]]),g=ln()([[di,o],[J2,r],[q2,a]]),v=ln()([[di,o],[yr,r],[br,a],[oa,i],[ra,c],[C=>C.code==="KeyM",u]]);ln()([[d,f],[m,g],[p,gr],[Ti(),v]])(e)}onPlayClick(e){e.stopPropagation(),e.preventDefault();const{audioVideoPlayhead:n}=this.props,{duration:o,paused:r}=this.audio;r&&n&&this.state.shouldLoadPlayheadPosition&&(this.audio.currentTime=o*n/100||0),r?this.audio.play():this.audio.pause()}onAudioPlayPause=e=>{const{dispatch:n,id:o,onPause:r,onPlay:a,recordMediaPlayheadPosition:i,refs:c,transcriptMedia:u}=this.props,{paused:d,currentTime:m,duration:p}=e.currentTarget;if(d)d&&st.playerId===o&&(st.isPlaying=!1,r(Ii.timeMs(m)),i&&i(du({currentTime:m,duration:p})));else{st.playerId=o,st.isPlaying=!0,a(Ii.timeMs(m));const f=ro({refs:c});n(Lr({audioPlayerId:f,transcriptMedia:u}))}this.setState({shouldLoadPlayheadPosition:!1})};onVolumeChangeHandler=e=>{const{volume:n,muted:o}=e.currentTarget;this.setState({volume:n,muted:o})};onSeekSliderChange(e){const{canRestrictSeek:n}=this.props,{maxTime:o}=this.state;let r=e.currentTarget.valueAsNumber;n&&r>o&&(r=o),this.audio.currentTime=r}onLoadedMetadata(e){const{currentTime:n,duration:o,muted:r,volume:a}=e.currentTarget;this.setState({currentTime:n,muted:r,volume:a});const i=n/o*100;this.seekSlider.style.setProperty("--seek-slider-percent",`${i}%`);const{onLoad:c}=this.props;c()}onEnded(e){const n=e.currentTarget;this.audio.currentTime=0,this.setState({currentTime:n.currentTime}),st.isPlaying=!1,this.props.onEnd(Ii.timeMs(n.currentTime)),this.forceUpdate()}onSeeked(e){const{id:n,onSeek:o,recordMediaPlayheadPosition:r}=this.props,{currentTime:a,duration:i}=e.currentTarget;st.isPlaying&&st.playerId!==n&&(st.isPlaying=!1),st.playerId=n,o(Ii.timeMs(a)),r&&r(du({currentTime:a,duration:i}))}onTimeUpdate(e){const n=e.currentTarget,{recordMediaPlayheadPosition:o}=this.props,{currentTime:r,duration:a}=n,i=Math.floor(r);r>this.state.maxTime&&this.setState({maxTime:r});const c=r/a*100;this.seekSlider.style.setProperty("--seek-slider-percent",`${c}%`),(0,$e.ih)(),this.setState({currentTime:r}),i%5===0&&this.state.playheadPositionSaveThrottle!==i&&o&&(o(du(n)),this.setState({playheadPositionSaveThrottle:i}))}onTogglePlayer(e){this.setState(({playerExpanded:n})=>({playerExpanded:!n})),e.preventDefault(),e.stopPropagation()}}const eM=(0,ks.Ls)()(Ii),er=t=>e=>e!=null&&typeof e=="object"&&"status"in e&&typeof e.status=="string"&&t.includes(e.status),tM=er(["uploading","processing","cropping","crushing"]),sse=er(["canceled"]),Tg=er(["complete"]),sM=er(["cropping"]),nM=er(["crushing"]),oM=er(["uploading"]),rM=er(["processing"]),aM=er(["errored"]),Ig=er(["cropping","crushing","errored","processing","uploading"]);function iM(t){return t==null||typeof t!="object"?0:Object.values(t).filter(tM).length}function nse(t){return Math.round(t.loaded*100/t.total)}const ose=t=>t?.file?.name||t?.opts?.filename||"";function rse(t){return t==null||typeof t!="object"?!1:Object.keys(t).length>0&&iM(t)>0}const uu=t=>Q()("upload-progress__wrapper",t),Ng=(0,h.createContext)(null);function jg(){return(0,h.useContext)(Ng)}const ase=Ng.Provider;function lM(t){function e(n){const o=jg();return o?(0,s.jsx)(t,{...n,getUpload:o.getUpload,handleUploadDismiss:o.handleUploadDismiss}):(0,s.jsx)(t,{...n})}return e.displayName=`withUploadStatusContext(${t.displayName||t.name})`,e}const hu=({onClick:t,text:e})=>(0,s.jsxs)(Mt.ArcButton,{hierarchy:"tertiary",onClick:t,size:"sm",type:"button",children:[e,(0,s.jsx)("span",{className:"visually-hidden-always",children:" upload"})]}),$h=20,sc=$h/2,Wh=sc-2,kg=+(2*Math.PI*Wh).toFixed(3),cM=t=>kg*(100-t)/100;function Ag({classes:t,percent:e}){return(0,s.jsxs)("svg",{className:Q()("upload-progress__pie",t),focusable:"false",height:`${$h}px`,width:`${$h}px`,children:[(0,s.jsx)("circle",{className:"upload-progress__border",cx:sc,cy:sc,r:Wh}),(0,s.jsx)("circle",{className:"upload-progress__progress",cx:sc,cy:sc,r:Wh,strokeDasharray:kg,strokeDashoffset:cM(e)})]})}const dM=({text:t})=>(0,s.jsxs)("div",{className:"upload-progress",children:[(0,s.jsx)(Ag,{classes:"upload-progress__pie--processing",percent:70}),(0,s.jsx)("div",{className:"upload-progress__text",children:t})]}),uM=({percentage:t,text:e="Uploading\u2026"})=>(0,s.jsxs)("div",{className:"upload-progress",children:[(0,s.jsx)(Ag,{percent:t}),(0,s.jsx)("div",{className:"upload-progress__text",children:e})]}),Gh=({classes:t,jobId:e,onCancel:n,text:o})=>(0,s.jsxs)("div",{className:uu(t),children:[(0,s.jsx)(dM,{text:o}),e&&(0,s.jsx)(hu,{onClick:n,text:"Cancel"})]}),hM=({classes:t,onCancel:e,percentage:n,text:o})=>(0,s.jsxs)("div",{className:uu(t),children:[(0,s.jsx)(uM,{percentage:n,text:o}),(0,s.jsx)(hu,{onClick:e,text:"Cancel"})]}),mM=({message:t="Error"})=>(0,s.jsxs)("div",{className:"upload-error",children:[(0,s.jsx)(Mt.ArcIcon,{icon:"fa-regular fa-circle-exclamation"}),(0,s.jsx)("div",{className:"upload-error__text",children:t})]}),pM=({classes:t,message:e,onClick:n})=>(0,s.jsxs)("div",{className:uu(t),children:[(0,s.jsx)(mM,{message:e}),(0,s.jsx)(hu,{onClick:n,text:"Dismiss"})]}),fM=({message:t="Success"})=>(0,s.jsxs)("div",{className:"upload-success",children:[(0,s.jsx)(Mt.ArcIcon,{icon:"fa-regular fa-check"}),(0,s.jsx)("div",{className:"upload-success__text",children:t})]}),vM=({classes:t,message:e,onClick:n})=>(0,s.jsxs)("div",{className:uu(t),children:[(0,s.jsx)(fM,{message:e}),n?(0,s.jsx)(hu,{onClick:n,text:"Dismiss"}):null]}),gM=t=>{const{classes:e,data:n={},errorMessage:o,jobId:r,progress:a,onCancelUpload:i,onCancelProcess:c,onErrorDismiss:u,onSuccessDismiss:d,successMessage:m,uploadType:p}=t;return aM(t)?(0,s.jsx)(pM,{classes:e,message:o||n?.message,onClick:u}):oM(t)?(0,s.jsx)(hM,{classes:e,onCancel:i,percentage:a,text:`Uploading ${p}\u2026`}):rM(t)?(0,s.jsx)(Gh,{classes:e,jobId:r,onCancel:c,text:`Processing ${p}\u2026`}):nM(t)?(0,s.jsx)(Gh,{classes:e,onCancel:c,text:`Uploading ${p}\u2026`}):sM(t)?(0,s.jsx)(Gh,{classes:e,onCancel:c,text:"Cropping image\u2026"}):Tg(t)&&m?(0,s.jsx)(vM,{classes:e,message:m,onClick:d}):(0,s.jsx)("div",{})},Kh=ne("audio-player"),CM=Kh("upload-state");function Rg({uploadId:t,onAIUploadFinish:e,volumeSliderPosition:n,...o}){const r=jg(),{mode:a}=Wd(),i=ql(),c=r&&t?r.getUpload(t):null,u=(0,h.useMemo)(()=>c&&c.mediaType==="audio"&&Ig(c),[c]),d=(0,tt.A)(u);if((0,h.useEffect)(()=>{!u&&d&&e?.()},[u,d,e]),u){const{jobId:m,status:p,progress:f,data:g}=c,v=x=>()=>r?.handleUploadDismiss(x,c),C=Kh({overlay:o.isOverlayAudio,static:o.isOverlayAudio});return(0,s.jsx)("div",{className:Kh("container"),children:(0,s.jsx)("div",{className:C,children:(0,s.jsx)(gM,{classes:CM,errorMessage:g?.message,jobId:m,onCancelProcess:v("process"),onCancelUpload:v("upload"),onErrorDismiss:v("error"),progress:f,status:p,successMessage:"Processing\u2026",uploadType:"audio"})})})}return(0,s.jsx)(eM,{...o,mode:a,transcriptAudioPlayerIdOpen:i?.audioPlayerIdOpen??null,volumeSliderPosition:n})}var xM=l(54534),bM=l.n(xM),yM=l(55966),LM=l.n(yM);const Pg={course:({courseId:t})=>`/authoring/${t}`,courseLocales:({courseId:t})=>`/manage/locales/${t}`,dashboard:"/manage/all-content",lesson:({courseId:t,lessonId:e})=>`/authoring/${t}/lesson/${e}`};function EM(){const e=(0,xe.DX)()?.id;return(0,h.useCallback)(n=>typeof window<"u"&&window.location?.pathname?.includes("/authoring/")&&e!=null?Pg.lesson({courseId:e,lessonId:n}):`/lessons/${n}`,[e])}var SM=l(2159),TM=l(44492),_h=l.n(TM);const IM=/(\.\.\/)|(\.\.\.\.\/)+|%2e%2e\/|%252e%252e\/|%2f\/|\/%2e%2e/gi,NM=t=>typeof t=="string"&&t.replace(IM,""),Nn=_h()(NM,SM.J),jM="about:blank",kM=t=>{const e=t?.trim();if(!e)return null;const n=Nn(e);return n===jM?null:/^(https?:\/\/|mailto:)/i.test(n)||/^(\.?\/|[#?])/.test(n)?n:`http://${n.replace(/^\/\//,"")}`},Ni=h.memo(({align:t,alt:e,allowTabNavigation:n=!0,cornerRadius:o,disableZoom:r,getLessonPath:a,height:i,l10nId:c,labels:u,link:d,maxHeight:m=380,onLoad:p,shouldFillWidth:f,src:g,width:v})=>{const C=EM(),x=a??C,L=(0,Fs.Ll)(e),y=d?.type==="url"&&d.destination?kM(d.destination):null,E=d?.type==="lesson"&&!!d.destination||!!y,b=n&&!r&&!E,S=Q()("img-img",{"img-img--left":t==="left","img-img--right":t==="right","img-img--center":!t||t==="center","img-img--fill":f});let T={};o!=null&&(T["--corner-radius"]=`${Number(o)}px`),v>0&&i>0&&i>m?(v=Math.round(v*m/i),i=m):m&&(!v||!i)&&(T={maxHeight:m});let N=(0,s.jsx)(Tn,{alt:L,className:S,"data-l10n-id":c,height:i,onLoad:p,src:g,style:T,width:v});return E&&d?d.type==="lesson"?N=(0,s.jsx)(Ln,{className:"img__link",to:x(d.destination),children:N}):y&&(N=(0,s.jsx)("a",{className:"img__link",href:y,rel:"noopener noreferrer nofollow",target:"_blank",children:N})):b&&(N=(0,s.jsx)(fg,{a11yNameButtonUnzoom:u?.a11yUnzoomImage,a11yNameButtonZoom:u?.a11yZoomImage,children:N})),(0,s.jsx)("div",{className:"img",children:N})});var pse=l(96613),AM=l(33482),RM=l.n(AM),PM,wM,MM,wg;const{validIframe:Mg,validUrl:Og}=lt.yG,Dg=no()("type","embed"),OM=RM()("type","embedType"),DM=j1()(/http:/i,"https:"),BM=t=>({embedType:"iframe",originalUrl:t,src:t}),HM=t=>fa(t.embed),fa=t=>t?.embedType||t?.type,fse=t=>MM([[wg(Mg),PM(Dg,BM,DM)],[wg(Og),wM(Dg,OM,t)]]),vse=xr()(Xe()(ph()(Mg),Eo.R9),ph()(Og)),gse="We are unable to generate an embed for this URL. Please check that the URL is valid and the content is publicly accessible.";var va=l(26372);const Bg=t=>{const e=(0,$e._$)("CDN_USER_CONTENT_URI"),n=new RegExp((0,$e._$)("CDN_URI"),"g");return(0,$e.Hm)()?t:n.test(t)?`${e}${new URL(t).pathname}${new URL(t).search}`:t},FM=t=>{const e=new window.URL("https:"+t);return e.searchParams.set("src",e.searchParams.get("src")+"&disable-auto-focus=true"),e.toString().replace("https:","")},zM=/^\/\/cdn.embedly.+src=.*\.typeform\.com%2F/,VM=t=>zM.test(t),UM=/^\/\//,$M=t=>t?.replace(UM,"https://"),WM=Xe()($M,ii()(VM,FM),ii()(Boolean,$e.o1),Nn),GM=t=>{const{paddingBottom:e,ref:n,value:o}=t;return(0,s.jsx)("div",{className:"embed--iframe",dangerouslySetInnerHTML:va.useMemo(()=>({__html:o}),[o]),ref:n,style:{paddingBottom:e}})};class KM extends va.Component{player;refIframeContainer=va.createRef();refIframePlayer=va.createRef();state={duration:0,isReady:!1};static get defaultProps(){return{allowTabNavigation:!0,shouldPause:!1,showMetaData:!0}}componentDidUpdate(e){!e.shouldPause&&this.props.shouldPause&&st.isPlaying&&(this.player?.pause(),st.isPlaying=!1)}componentWillUnmount(){fa(this.props.data)==="video"&&this.teardownPlayer()}handlePlayerReady=()=>{this.player&&(this.player.on("play",this.handlePlayerPlay),this.player.on("timeupdate",this.handlePlayerUpdate),this.setState({isReady:!0}),st.addChangeListener(this.handlePlayerChange))};handlePlayerPlay=()=>{const{id:e}=this.props;st.isPlaying&&st.playerId!==e&&(st.isPlaying=!1),st.playerId=e,st.isPlaying=!0};handlePlayerUpdate=e=>{this.props.progressChanged?.({done:e.seconds/e.duration*100})};handlePlayerChange=()=>{const{id:e}=this.props;st.playerId===e&&(st.isPlaying?this.player.play():this.player.pause())};setupPlayer=()=>{this.refIframePlayer.current?.contentWindow!=null&&(this.player!=null&&this.teardownPlayer(),this.player=new(bM()).Player(this.refIframePlayer.current),this.player.on("ready",this.handlePlayerReady))};teardownPlayer=()=>{st.isPlaying=!1,st.removeChangeListener(this.handlePlayerChange),this.player&&(this.player.off("play"),this.player.off("ready"),this.player.off("timeupdate"),delete this.player)};playerSupportsMethods=e=>{const n=o=>this.player.supports("method",o);return LM()(n)(e)};togglePlay=()=>{this.playerSupportsMethods(["play","pause"])&&this.player.on("ready",()=>{this.player.getPaused(e=>{e?this.player.play():this.player.pause()})})};keySeek=e=>{this.playerSupportsMethods(["getCurrentTime","setCurrentTime"])&&this.player.on("ready",()=>{this.player.getCurrentTime(n=>{this.player.setCurrentTime(n+e)})})};changeVolume=e=>{this.playerSupportsMethods(["getVolume","setVolume"])&&this.player.getVolume(n=>{this.player.setVolume(n+e)})};onKeyDown=e=>{const r=an(this.togglePlay),a=an(()=>this.keySeek(5)),i=an(()=>this.keySeek(-5)),c=an(()=>this.changeVolume(10)),u=an(()=>this.changeVolume(-10));ln()([[Id,r],[yr,a],[br,i],[oa,c],[ra,u]])(e)};renderProvider=()=>{const{allowTabNavigation:e,embedId:n,externalLinksDisabled:o,onLinkBlur:r,onLinkFocus:a,onLinkMouseEnter:i,onLinkMouseLeave:c,showMetaData:u,data:d}=this.props,{providerUrl:m,provider:p,favicon:f}=d;if(!(u&&m))return null;const g=Nn(m),v=o&&Pn(g),C=`${n}-provider`,x=v?"":void 0,L=v?void 0:g,y=v?void 0:"noopener noreferrer",E=v?"button":void 0,b=v?void 0:"_blank";return(0,s.jsx)("h2",{className:"embed__provider",children:(0,s.jsxs)("a",{className:"brand--hoverColor","data-external":x,href:L,id:v?C:void 0,onBlur:v?()=>r?.(C):void 0,onFocus:v?()=>a?.(C):void 0,onMouseEnter:v?()=>i?.(C):void 0,onMouseLeave:v?()=>c?.(C):void 0,rel:y,role:E,style:v?{display:"inline-block"}:void 0,tabIndex:e?0:-1,target:b,children:[(0,s.jsx)(Tn,{alt:f?p:"",className:"embed__providerIcon",src:f}),(0,s.jsx)("span",{className:"embed__providerName",children:p})]})})};renderMetaData=()=>{const{allowTabNavigation:e,data:n,embedId:o,externalLinksDisabled:r,labels:a,onLinkBlur:i,onLinkFocus:c,onLinkMouseEnter:u,onLinkMouseLeave:d,showMetaData:m}=this.props,{src:p,title:f,description:g,provider:v}=n,C=fa(n);if(!m&&C!=="link")return null;const x=Nn(p),L=r&&Pn(x),y=`${o}-metadata-title`,E=`${o}-metadata-readmore`,b=S=>({"data-external":L?"":void 0,href:L?void 0:x,id:L?S:void 0,onBlur:L?()=>i?.(S):void 0,onFocus:L?()=>c?.(S):void 0,onMouseEnter:L?()=>u?.(S):void 0,onMouseLeave:L?()=>d?.(S):void 0,rel:L?void 0:"noopener noreferrer nofollow",role:L?"button":void 0,style:L?{display:"inline-block"}:void 0,tabIndex:e?0:-1,target:L?void 0:"_blank"});return(0,s.jsxs)("div",{className:"embed__meta__content",children:[(0,s.jsx)("h2",{className:"embed__title",children:(0,s.jsx)("a",{className:"brand--hoverColor",...b(y),children:(0,s.jsx)(Tt,{value:f})})}),(0,s.jsx)(Tt,{className:"embed__description",value:g}),(0,s.jsxs)("a",{className:"embed__readMore brand--hoverColor",...b(E),children:[C==="link"?`${a?.embedReadMore} ${v}`:`${a?.embedViewOn} ${v}`,(0,s.jsx)("i",{className:"icon icon-chevron-right"})]})]})};render(){const{allowTabNavigation:e,data:n,embedId:o,externalLinksDisabled:r,isLesson:a,labels:i,onLinkBlur:c,onLinkFocus:u,onLinkMouseEnter:d,onLinkMouseLeave:m,showMetaData:p}=this.props,{useRelativePath:f}=n??{},{description:g,originalUrl:v,src:C,thumbnail:x,title:L}=n,y=fa(n);if(y==="iframe"){const E=document.createElement("div");E.innerHTML=(0,Eo.R9)(C);const b=E.firstChild,S=b&&b.tagName&&b.tagName.toLowerCase()==="iframe";let T=100,N=32;if(dx(window.location.href)&&f)return(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"embed__relativeUrl--iframe",children:"Embedded iframe with a relative url"}),(0,s.jsx)("p",{className:"embed__relativeUrl--title",children:L}),(0,s.jsx)("p",{className:"embed__relativeUrl--url",children:v})]});if(S){const F=b.width.match(/%/),w=parseInt(b.width);b.src=Nn(b.src),T=F?700*(w/100):w||16,N=parseInt(b.height)}const j=N/T,R=S?`${j*100}%`:"3rem";if(b.src.includes("typeform")){const F=new window.URL(b.src);F.searchParams.append("disable-auto-focus","true"),b.src=F.toString()}if(b.src.includes("forms.office.com")){const F=new window.URL(b.src);F.searchParams.append("embed","true"),b.src=F.toString()}const A=S?b.outerHTML:"<div>Error: Invalid iframe tag. Please check the iframe source.</div>";return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":i?.embedPlayerGroup,className:"embed",role:pi,children:[f&&(0,s.jsx)("div",{className:"embed__title embed--iframe__title",children:L}),(0,s.jsx)(GM,{paddingBottom:R,ref:this.refIframeContainer,value:A})]})}else if(a){const E=f?C:Nn(C),b=r&&Pn(E),S=`${o}-lesson-title`,T=`${o}-lesson-url`,N=b?"":void 0,j=b?void 0:E,R=b?void 0:"noopener noreferrer nofollow",O=b?"button":void 0,P=b?void 0:"_blank";if(f){const A={"data-external":b?"":void 0,href:E,id:b?S:void 0,onBlur:b?()=>c?.(S):void 0,onFocus:b?()=>u?.(S):void 0,onMouseEnter:b?()=>d?.(S):void 0,onMouseLeave:b?()=>m?.(S):void 0,rel:b?void 0:"noopener noreferrer nofollow",role:b?"button":void 0,tabIndex:e?0:-1,target:b?void 0:"_blank"};return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":i?.a11yBlockEmbed,className:"embed embed--link embed--rich",role:pi,children:[(0,s.jsx)("h2",{className:"embed__title",children:(0,s.jsx)("a",{className:"brand--hoverColor",...A,children:(0,s.jsx)(Tt,{value:L})})}),["link","photo"].includes(y)?(0,s.jsxs)("a",{className:"embed__relativeUrl--url","data-external":N,href:j,id:b?T:void 0,onBlur:b?()=>c?.(T):void 0,onFocus:b?()=>u?.(T):void 0,onMouseEnter:b?()=>d?.(T):void 0,onMouseLeave:b?()=>m?.(T):void 0,rel:R,role:O,tabIndex:e?0:-1,target:P,children:[E,y==="photo"?(0,s.jsx)("div",{className:"embed__relativeUrl--image",children:(0,s.jsx)(Tn,{alt:x?L:"",className:"embed__img",src:E})}):null]}):this.renderEmbedIframe({allowTabNavigation:e,labels:i,src:C,thumbnail:x,title:L,type:y})]})}return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":i?.a11yBlockEmbed,className:"embed embed--link embed--rich",role:pi,children:[this.renderProvider(),["link","photo"].includes(y)?(0,s.jsx)("a",{"data-external":N,href:j,id:b?T:void 0,onBlur:b?()=>c?.(T):void 0,onFocus:b?()=>u?.(T):void 0,onMouseEnter:b?()=>d?.(T):void 0,onMouseLeave:b?()=>m?.(T):void 0,rel:R,role:O,tabIndex:e?0:-1,target:P,children:(0,s.jsx)(Tn,{alt:x?L:"",className:"embed__img",src:Bg(x)})}):this.renderEmbedIframe({allowTabNavigation:e,labels:i,src:C,thumbnail:x,title:L,type:y}),this.renderMetaData()]})}else if(y==="link"){const E=f?C:Nn(C),b=f||r&&Pn(E),S=`${o}-link-readmore`,T=b?"":void 0,N=b?void 0:E,j=b?void 0:"noopener noreferrer nofollow",R=b?"button":void 0,O=b?void 0:"_blank";return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":i?.embedLinkGroup,className:"embed embed--link brand--linkColor",role:pi,children:[(0,s.jsx)(Tt,{className:"embed__title",value:L}),(0,s.jsx)(Tt,{className:"embed__description",value:g}),(0,s.jsx)("a",{className:"embed__readMore brand--hoverColor","data-external":T,href:N,id:b?S:void 0,onBlur:b?()=>c?.(S):void 0,onFocus:b?()=>u?.(S):void 0,onMouseEnter:b?()=>d?.(S):void 0,onMouseLeave:b?()=>m?.(S):void 0,rel:j,role:R,target:O,children:i?.embedReadMore})]})}else return(0,s.jsxs)("div",{className:"embed embed--media",children:[p?(0,s.jsx)(Tt,{"aria-hidden":!e,className:"embed__title",value:L}):null,this.renderEmbedIframe({allowTabNavigation:e,labels:i,src:C,thumbnail:x,title:L,type:y})]})}renderEmbedIframe=e=>{const{allowTabNavigation:n,labels:o,src:r,thumbnail:a,title:i,type:c}=e,{useRelativePath:u}=this.props.data??{};if(c==="photo")return(0,s.jsx)("figure",{className:"embed__media-wrap embed__media-wrap--photo",children:(0,s.jsx)(Ni,{allowTabNavigation:n,labels:o,src:Bg(a)})});{const d=rn.isIe11||rn.isEdge,m=Q()("embed__media-wrap",{"embed__media-wrap--ms_browser":d});return(0,s.jsxs)("figure",{"aria-hidden":!n,"aria-label":o?.embedPlayerGroup,className:m,onKeyDown:this.onKeyDown,ref:this.refIframeContainer,tabIndex:n?0:-1,children:[(0,s.jsx)("meta",{content:"origin",name:"referrer"}),(0,s.jsx)("iframe",{allowFullScreen:!0,className:"embed__media",frameBorder:"0",inert:n?void 0:!0,loading:"lazy",onLoad:this.setupPlayer,ref:this.refIframePlayer,scrolling:u?"yes":"no",src:u?r:WM(r),title:i})]})}}}const _M=vd()({externalLinksDisabled:Qt()(["course","externalLinksDisabled"])}),QM=t=>{const{handleMouseEnter:e,handleMouseLeave:n,handleFocus:o,handleBlur:r}=gd(),[a,i]=va.useState([]),c=va.useId();return va.useEffect(()=>{if(!t.externalLinksDisabled||!t.data){i([]);return}const u=[],{providerUrl:d,src:m,useRelativePath:p}=t.data,f=fa(t.data);t.isLesson&&m&&Pn(Nn(m))&&(u.push(`${c}-lesson-title`),["link","photo"].includes(f)&&u.push(`${c}-lesson-url`),f!=="iframe"&&(u.push(`${c}-metadata-title`),u.push(`${c}-metadata-readmore`)),d&&Pn(Nn(d))&&u.push(`${c}-provider`)),!t.isLesson&&t.showMetaData&&d&&Pn(Nn(d))&&u.push(`${c}-provider`),!t.isLesson&&t.showMetaData&&m&&Pn(Nn(m))&&f!=="iframe"&&(u.push(`${c}-metadata-title`),u.push(`${c}-metadata-readmore`)),f==="link"&&(p||m&&Pn(Nn(m)))&&u.push(`${c}-link-readmore`),i(u)},[t.externalLinksDisabled,t.data,t.showMetaData,t.isLesson,c]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(KM,{...t,embedId:c,onLinkBlur:r,onLinkFocus:o,onLinkMouseEnter:e,onLinkMouseLeave:n}),a.map(u=>(0,s.jsx)(Cd,{anchorId:u},u))]})},Hg=(0,ks.Ls)(_M)(QM);var ZM=l(41612),Fg=l(58603);const YM=Fg.default.getComponent("SeekBar");class XM extends YM{seekDisabled=!1;maxTime=0;constructor(e){super(e,[])}disableSeek(){this.seekDisabled=!0}setMaxTime(e){this.maxTime=e}handleMouseMove(e){if(!this.seekDisabled)return super.handleMouseMove(e);const n=this.player();let o=this.calculateDistance(e)*n.duration();o>this.maxTime?(this.trigger("showRestrictSeekTooltip",!0),o=this.maxTime):this.trigger("showRestrictSeekTooltip",!1),o===n.duration()&&(o=o-.1),n.currentTime(o)}}Fg.default.registerComponent("SeekBar",XM);var JM=l(16500),qM=l(22973),eO=l(65664),tO=l(76700),sO=l(7211),nO=l(80647),oO=l(48034),rO=l(18058),aO=l(70485),iO=l(51327),lO=l(57269),cO=l(85961),dO=l(19022),uO=l(60158),hO=l(99301),mO=l(34441);const pO={ar:JM,cs:qM,de:eO,en:tO,es:sO,fr:nO,it:oO,ja:rO,nl:aO,pl:iO,sk:lO,tr:cO,"pt-BR":dO,"pt-PT":uO,"zh-CN":hO,"zh-TW":mO},fO=-5,Qh="seek-tooltip--hidden",vO=()=>{const t=document.createElement("div");return t.classList.add("seek-tooltip"),t.classList.add(Qh),t},mu=t=>Math.round(t.currentTime()/t.duration()*100)||0;class gO extends h.Component{maxTime;seeking;wasPaused;restrictingSeek;seekTimeout;playbackRatesChanged;videoPaused;videoPlay;videoPlaying;videoSeeking;videoSeeked;videoUpdate;container;seekDiv;progressBarElement;video;constructor(e){super(e),this.state={isReady:!1,shouldLoadPlayheadPosition:!1,playbackStarted:!1,playheadPositionSaveThrottle:0,showRestrictSeekTooltip:!1},this.showRestrictSeekTooltip=this.showRestrictSeekTooltip.bind(this),this.updateSeekTooltip=this.updateSeekTooltip.bind(this),this.getMaxTime=this.getMaxTime.bind(this),this.onMediaStoreChange=this.onMediaStoreChange.bind(this),this.renderCaptionTrack=this.renderCaptionTrack.bind(this)}static get defaultProps(){return{autoplay:!1,allowTabNavigation:!0,currentTime:0,labels:{},onFullScreenChange:()=>{},onLoad:()=>{},percentComplete:0,progressChanged:()=>{},shouldPause:!1}}updateContentFocusability(){const{allowTabNavigation:e}=this.props;ev(this.container.getElementsByTagName("button")).forEach(o=>{av(o,Kl(e))}),mh({element:this.container,selector:".vjs-progress-holder",tabIndex:Kl(e)}),mh({element:this.container,selector:".vjs-volume-bar",tabIndex:Kl(e)}),mh({element:this.container,selector:".vjs-volume-menu-button",tabIndex:Kl(e)})}componentDidUpdate(e){this.updateContentFocusability(),!e.shouldPause&&this.props.shouldPause&&st&&(this.video.player.pause(),st.isPlaying=!1)}setMaxTime(e){this.maxTime=e,this.video.player.controlBar.progressControl.seekBar.setMaxTime(e)}componentDidMount(){const{player:e}=this.video,{audioVideoPlayhead:n,canRestrictSeek:o,currentTime:r,id:a,onFullScreenChange:i,onLoad:c,percentComplete:u,progressChanged:d,recordMediaPlayheadPosition:m,type:p}=this.props;if(this.setState({shouldLoadPlayheadPosition:!0}),this.wasPaused=!1,this.seeking=!1,this.setMaxTime(r),this.updateContentFocusability(),o){const{seekBar:f}=this.video.player.controlBar.progressControl;f.disableSeek(),f.on("showRestrictSeekTooltip",(g,v)=>this.showRestrictSeekTooltip(v)),this.configureSeekDiv()}e.ready(()=>{e.el_?.removeAttribute("role"),e.el_?.removeAttribute("aria-label"),e.getChild("BigPlayButton").controlTextEl_?.removeAttribute("aria-live"),e.getChild("controlBar").getChild("PlaybackRateMenuButton").childNameIndex_.PlaybackRateMenuButton.controlTextEl_.innerText=`Playback Rate ${e.playbackRate()}x`,e.getChild("controlBar").getChild("PlaybackRateMenuButton").removeAttribute("aria-describedby"),e.getChild("controlBar").getChild("PlaybackRateMenuButton").labelEl_.setAttribute("aria-hidden",!0),e.getChild("controlBar")?.getChild("volumePanel")?.getChild("volumeControl")?.getChild("volumeBar")?.el_?.removeAttribute("aria-live"),u&&u<100&&p!=="customVideo"&&(e.play(),e.currentTime(r),e.pause()),e.on("timeupdate",this.videoUpdate=()=>{(0,$e.ih)();const f=e.currentTime(),g=e.duration(),v=e.paused(),C=Math.floor(f),x=g*n/100||0;v&&!this.wasPaused&&f>this.maxTime&&(!o||!this.seeking)&&this.setMaxTime(f),o&&this.updateSeekTooltip();const L=e.ended()&&!this.seeking,y=!v&&!this.seeking;if(!o||L||y){f>this.maxTime&&(!o||!this.seeking)&&this.setMaxTime(f);let b=f/g*100;L&&(b=100),d&&d({currentTime:f,percentComplete:b}),C%15===0&&this.state.playheadPositionSaveThrottle!==C&&m&&(m(mu(e)),this.setState({playheadPositionSaveThrottle:C}))}else o&&!this.restrictingSeek&&f>this.maxTime&&x<this.maxTime&&(this.restrictingSeek=!0,v||e.pause(),e.currentTime(this.maxTime));this.wasPaused=v}),this.setState({isReady:!0}),c()}),e.on("play",this.videoPlay=()=>{this.seeking=!1,this.showRestrictSeekTooltip(!1)}),e.on("playing",this.videoPlaying=()=>{st.isPlaying&&st.playerId!==a&&(st.isPlaying=!1),st.playerId=a,st.isPlaying=!0,this.state.playbackStarted===!1&&this.setState({playbackStarted:!0}),n&&this.state.shouldLoadPlayheadPosition&&e.currentTime(e.duration()*n/100||0),this.setState({shouldLoadPlayheadPosition:!1})}),e.on("pause",this.videoPaused=()=>{st.playerId===a&&(st.isPlaying=!1),m&&m(mu(e))}),e.on("seeking",this.videoSeeking=()=>{this.seeking=!0}),e.on("seeked",this.videoSeeked=()=>{this.restrictingSeek=!1,this.seekTimeout&&clearTimeout(this.seekTimeout),m&&m(mu(e)),this.seekTimeout=setTimeout(()=>{this.seeking=!1},1e3)}),e.on("fullscreenchange",i),e.on("keyup",ov),e.on("contextmenu",f=>{f.preventDefault()}),e.on("ratechange",this.playbackRatesChanged=()=>{e.controlBar.playbackRateMenuButton.childNameIndex_.PlaybackRateMenuButton.controlTextEl_.innerText=`Playback Rate ${e.playbackRate()}x`}),st.addChangeListener(this.onMediaStoreChange)}componentWillUnmount(){const{onFullScreenChange:e,recordMediaPlayheadPosition:n}=this.props,{player:o}=this.video;n&&n(mu(o)),st.isPlaying=!1,st.removeChangeListener(this.onMediaStoreChange),o.off("timeupdate",this.videoUpdate),o.off("play",this.videoPlay),o.off("playing",this.videoPlaying),o.off("pause",this.videoPaused),o.off("seeking",this.videoSeeking),o.off("seeked",this.videoSeeked),o.off("fullscreenchange",e),o.off("ratechange",this.playbackRatesChanged),o.dispose()}render(){const{allowTabNavigation:e,labels:{a11yGroupVideoPlayer:n},settings:o}=this.props,{isReady:r,showRestrictSeekTooltip:a,playbackStarted:i}=this.state,c=Q()("video-a11y video-wrapper",{"video-wrapper--visible":r,"video-wrapper--restrict-seek":a,"video-playback-started":i}),u=o?.cornerRadius??null,d={};return Object.assign(d,{...u!=null&&{"--corner-radius":`${Number(u)}px`}}),(0,s.jsx)("div",{"aria-hidden":!e,"aria-label":n,className:"figure-container",onKeyDown:this.onKeyDown.bind(this),ref:m=>{this.container=m},role:"region",children:(0,s.jsx)("div",{className:c,style:d,children:this.renderPlayer()})})}renderCaptionTrack(e){const{code:n,id:o,key:r,name:a,url:i}=e,c=i||(0,$e.o1)(r),u=a||this.props.getLanguageDisplayName(n);return(0,s.jsx)("track",{kind:"captions",label:u,src:c,srcLang:n},o)}renderPlayer(){const{autoplay:e,canAdjustPlaybackSpeed:n,captionUID:o,captions:r,id:a,subtitle:i,type:c}=this.props,u=c==="customVideo",m=u?(b=>new URL(b).pathname.slice(1))(this.props.src):this.props.src,p=u?this.props.poster:(0,$e.o1)(this.props.poster),f=u?this.props.src:(0,$e.o1)(this.props.src),g=u?"application/x-mpegURL":void 0,v=n?[.25,.5,.75,1,1.25,1.5,1.75,2]:void 0,C=rn.isLocalFilesystem?{}:{crossOrigin:"anonymous"},x={autoplay:e,controlBar:{children:{playToggle:!0,progressControl:!0,remainingTimeDisplay:!0,playbackRateMenuButton:!0,captionsButton:!0,pictureInPictureToggle:!0,fullscreenToggle:!0,volumePanel:{inline:!0}}},controls:!0,languages:pO,playbackRates:v,preload:"none",textTrackSettings:!1};document.pictureInPictureEnabled||delete x.controlBar.children.pictureInPictureToggle;const L={options:x,poster:p,ref:b=>{this.video=b},...C},y=(0,s.jsx)("track",{kind:"captions",label:"English",src:u?i:(0,$e.o1)(i),srcLang:"en"}),E=`${f}?v=1`;return(0,h.createElement)(ZM.A,{...L,key:`${a}-${m}-${o}`},(0,s.jsx)("source",{src:E,type:g}),!r&&i&&y,r&&r.map(this.renderCaptionTrack))}onKeyDown(e){if(xO(e))return;const n=5,o=an(this.togglePlay.bind(this)),r=this.toggleFullScreen.bind(this),a=an(()=>this.keySeek(n)),i=an(()=>this.keySeek(-n));ln()([[Id,o],[na,r],[J2,a],[q2,i]])(e)}togglePlay(){const{player:e}=this.video;e.userActive(!0),e.paused()?e.play():e.pause()}toggleFullScreen(){if(rn.isIe11)return;const{player:e}=this.video;e.isFullscreen()?e.exitFullscreen():e.requestFullscreen()}changeVolume(e){const{player:n}=this.video,o=n.volume();n.userActive(!0),n.volume(o+e)}keySeek(e){const{player:n}=this.video,{canRestrictSeek:o}=this.props;n.userActive(!0);const r=n.currentTime(),a=n.duration();n.paused()&&!r&&!a&&n.play();let c=r+e;o&&(c>this.maxTime?(c=this.maxTime,this.showRestrictSeekTooltip(!0)):this.showRestrictSeekTooltip(!1));const u=e<0?Math.max(c,0):Math.min(c,a);u!==r&&n.currentTime(u)}configureSeekDiv(){const{player:e}=this.video,n=e.controlBar,o=n.el();this.progressBarElement=n.progressControl.seekBar.playProgressBar.el(),this.seekDiv=vO(),o.appendChild(this.seekDiv),(0,te.createRoot)(this.seekDiv).render((0,s.jsx)(c7,{}))}showRestrictSeekTooltip(e){const{canRestrictSeek:n}=this.props;!n||!this.seekDiv||e!==this.state.showRestrictSeekTooltip&&(e?this.seekDiv.classList.remove(Qh):this.seekDiv.classList.add(Qh),this.setState({showRestrictSeekTooltip:e}))}updateSeekTooltip(){const{player:e}=this.video,n=this.progressBarElement.getBoundingClientRect(),o=e.el().getBoundingClientRect(),r=this.seekDiv.getBoundingClientRect().width,a=n.left-o.left,i=r/2,c=a+n.width-i;this.seekDiv.style.left=`${c}px`,this.seekDiv.style.top=`${fO}px`}getMaxTime(){return this.maxTime}onMediaStoreChange(){if(!this.video)return;const{id:e}=this.props,{player:n}=this.video;st.playerId===e?st.isPlaying?n.play():n.pause():st.isPlaying&&n.pause()}}function CO(t){function e(n){const o=(0,xe.DX)(),r=Lh();return(0,s.jsx)(t,{...n,getLanguageDisplayName:r,locale:o?.locale})}return e.displayName=`withLocale(${t.displayName??t.name})`,e}const zg=CO(gO),xO=t=>{const e=t.target.className,n=ef(t)&&e.includes("vjs-volume-bar");return di(t)&&(e.includes("vjs-control")||e.includes("vjs-big-play-button"))||n};var Vg=l(26372);function Gt(t){const e=Vg.forwardRef((n,o)=>{const r=(0,nt.gY)();return(0,s.jsx)(t,{...n,getL10nValue:r,ref:o})});return e.displayName=`withLocalizedLookup(${t.displayName||t.name})`,e}function bO(t){const e=Vg.forwardRef((n,o)=>{const r=(0,nt.gY)(),a=(0,nt.NB)();return(0,s.jsx)(t,{...n,getL10nRecursive:a,getL10nValue:r,ref:o})});return e.displayName=`withLocalizedLookupRecursive(${t.displayName||t.name})`,e}var yO=l(54429),Zh=l.n(yO),LO=l(57824),EO=l.n(LO);const SO=t=>({...t,courseId:t.courseId||Qt()(["course","id"],t)}),TO=t=>({...t,lessonId:t.lessonId||Qt()(["lesson","id"],t)}),IO=({id:t,courseId:e,lessonId:n,refs:o})=>t||(o&&n?`${n}-${o}`:n||e),Yh=Xe()(IO,TO,SO),xse=hs()(D1()(gt()("id"),Zh()("id",Yh)),xr()(EO()(gt(),[gt()("id"),gt()("uploads")]),Qn()(["id"])),Zh()("isUploading",It()("status","uploading")));function bse(t){const e=t.match(/^(.*\/)?([^/]+)$/);if(!e)return encodeURIComponent(t);const n=e[1]??"",o=e[2],r=encodeURIComponent(o);return`${n}${r}`}function NO(t){return t.replace(/%2F/g,"/")}var jO=l(26372);const Xh=t=>!!(t&&("key"in t&&t.key||"src"in t&&t.src)),pu=t=>Xh(t)&&!t.isProcessing&&!t.error,kO=(t,e)=>e?.mediaType==="audio"?!!t&&(Xh(t)||Ig(e)||Tg(e)&&!Xh(t)):pu(t),AO=t=>ii()(os()(!!t),Nh()(`-${t}`));class RO extends jO.Component{constructor(e){super(e),this.onTranscriptClick=this.onTranscriptClick.bind(this)}static get defaultProps(){return{defaultAlign:"left",media:{},index:"1",hasPadding:!0,opts:{},allowTabNavigation:!0,lessonNumber:1,getL10nValue:()=>{}}}onTranscriptClick(){const{block:e,blockId:n,openTranscript:o,refs:r}=this.props,a=e?.items?.length===1?e.items[0]:void 0,i=this.props.item??a;let c=n;try{e!=null&&typeof e=="object"&&!Array.isArray(e)?"blockId"in e?c=e.blockId:"id"in e&&(c=e.id):e?.id&&(c=e.id)}catch{c=n}let u="";try{i!=null&&typeof i=="object"&&!Array.isArray(i)&&"id"in i&&(u=String(i.id))}catch{u=""}const d=r??`items:${c||""}/items:${u}`;if((e||n)&&i&&o)return o({blockId:e?.id??n,item:i,refs:d})}renderAudio(e,n){const{activeIndex:o,allowTabNavigation:r,block:a,blockId:i,getL10nValue:c,index:u,isOverlayAudio:d,item:m,itemIndex:p,labels:f,lessonNumber:g,pauseOnLoad:v,shouldPause:C,side:x}=this.props,{audio:L}=c(e),y=a&&typeof a=="object"&&"blockId"in a?a.blockId:a?.id||i||"",E=m&&typeof m=="object"&&"id"in m?m.id:"",b=this.props.refs??`items:${y}/items:${E}`,S=`audio-${g}-${u}`;return(0,s.jsx)(Rg,{activeIndex:o,allowTabNavigation:r,id:S,isOverlayAudio:d,item:m,itemIndex:p,labels:f,mediaSrc:L.key,onTranscriptClick:this.onTranscriptClick,onTranscriptClose:this.props.closeTranscript,refs:b,shouldPause:L.pause||v||C,side:x,transcriptMedia:e,uploadId:n,volumeSliderPosition:this.props.volumeSliderPosition},S)}renderImage(e){const{allowTabNavigation:n,cornerRadius:o,defaultAlign:r,getL10nValue:a,imageMaxHeight:i,index:c,labels:u,onLoad:d,opts:m}=this.props,p=e?.align??r,f=e?.dimensions,g=`image-${c}`,{disableZoom:v}=m,C=a(e?.link?.destination),x=e?.link&&typeof C=="string"?{type:e.link.type,destination:C}:void 0;return(0,s.jsx)(Ni,{align:p,allowTabNavigation:n,alt:e.alt,cornerRadius:o,disableZoom:v,height:f?.height||f?.originalHeight,labels:u,link:x,maxHeight:i,onLoad:d,shouldFillWidth:e.fillWidth,src:(0,Ft.ME)(e),width:f?.width||f?.originalWidth},g)}renderVideo(e){const{allowTabNavigation:n,blockId:o,lessonNumber:r,index:a,labels:i,onFullScreenChange:c,enableVideoPlaybackSpeed:u,pauseOnLoad:d,shouldPause:m}=this.props,p=AO(o)(`video-${r}-${a}`),f=e.skipProcess?NO(e.poster):e.poster;return(0,s.jsx)(zg,{allowTabNavigation:n,canAdjustPlaybackSpeed:u,captions:e.captions,captionUID:e.captionUID,id:p,labels:i,onFullScreenChange:c,poster:f,shouldPause:e.pause||d||m,src:e.key},p)}renderEmbed(e){const{allowTabNavigation:n,embedClass:o,labels:r,opts:a,shouldPause:i}=this.props,{fullEmbed:c,showMetaData:u=!0}=a,d=`embed-${this.props.index}`;return(0,s.jsx)("div",{className:o,children:(0,s.jsx)(Hg,{allowTabNavigation:n,data:e,id:d,isLesson:c,labels:r,shouldPause:e.pause||i,showMetaData:u},d)})}render(){const{blockId:e,hasPadding:n,item:o,lessonId:r,renderMediaType:a}=this.props,i=o&&typeof o=="object"&&"id"in o?o.id:"",c=this.props.refs??`items:${e??""}/items:${i}`,u=this.props.media,d=Q()({"media-group":n}),{audio:m,embed:p,image:f,video:g}=this.props.getL10nValue(u)??{},v=Yh({lessonId:r,refs:c}),C=this.props.getUpload?this.props.getUpload(v):null;return(0,s.jsxs)("div",{className:d,"data-l10n-id":(0,pt.pP)(u),children:[(!a||a==="image")&&pu(f)&&this.renderImage(f),(!a||a==="audio")&&kO(m,C)&&this.renderAudio(u,v),(!a||a==="video")&&pu(g)&&this.renderVideo(g),(!a||a==="embed")&&pu(p)&&this.renderEmbed(p)]})}}const zs=(0,ks.Ls)()(lM(Fd(Lv(Gt(RO)))));function ao(t,e,n,o){const a=e==="bottom"||!n&&e!=="top"?"bottom":"top",i={renderOrder:["text"],isOverlayAudio:!1};if(!t)return i;const c=!!t.audio,u=!!t.image,d=!!t.video,m=!!t.embed,p=u||d,f=()=>{const C=u?"image":"video",x={top:c?["audio","text",C]:["text",C],bottom:c?["text","audio",C]:["text",C],legacyTop:c?["audio",C,"text"]:[C,"text"],legacyBottom:c?[C,"text","audio"]:[C,"text"]};return n&&o==="timeline"&&!e?x.top:n&&o!=="timeline"?a==="bottom"?x.legacyBottom:x.legacyTop:a==="bottom"?x.bottom:x.top},g=()=>{const C={top:c?["audio","text","embed"]:["text","embed"],bottom:c?["text","embed","audio"]:["text","embed"],legacyTop:c?["audio","embed","text"]:["embed","text"],legacyBottom:c?["embed","text","audio"]:["embed","text"]};return n&&o==="timeline"&&!e?C.legacyTop:n&&o!=="timeline"?a==="bottom"?C.legacyBottom:C.legacyTop:a==="bottom"?C.bottom:C.top},v=()=>a==="bottom"?["text","audio"]:["audio","text"];return c&&!p&&!m?{...i,renderOrder:v()}:p&&!c&&!m?{...i,renderOrder:f()}:m&&!c&&!p?{...i,renderOrder:g()}:c&&p&&!m?o==="statement"?{...i,renderOrder:v()}:o==="labeled-graphic"||a==="top"||o==="process"?{...i,renderOrder:f(),audioOnlyMedia:{audio:t.audio},imageOnlyMedia:{image:t.image},videoOnlyMedia:{video:t.video}}:{...i,renderOrder:t.video?["text","video","audio"]:["text","overlay"],audioOnlyMedia:{audio:t.audio},imageOnlyMedia:{image:t.image},videoOnlyMedia:{video:t.video},isOverlayAudio:!t.video}:c&&m&&!p?{...i,renderOrder:g(),audioOnlyMedia:{audio:t.audio},embedOnlyMedia:{embed:t.embed}}:i}var PO=l(26372);const Mo=ne("block-text"),wO=class extends PO.Component{renderHeadingDelegate;renderTextDelegate;constructor(t){super(t),this.renderTextDelegate=this.renderText.bind(this),this.renderHeadingDelegate=this.renderHeading.bind(this)}static get defaultProps(){return{columns:1,heading:"",items:[],type:"onecol",getL10nValue:()=>{}}}getHeadingComponent=()=>{const{heading:t}=this.props;return t?t==="heading"?"h2":"h3":"div"};renderHeading(t){const e="heading"in t?t.heading:null;return(0,s.jsx)(Tt,{value:e})}renderText(t){const{labels:e,takingSnapshot:n,variant:o}=this.props,r=o?.includes("column"),a="paragraph"in t?t.paragraph:void 0;return r||n?(0,s.jsx)(Lw,{item:t,labels:e,children:(0,s.jsx)(ls,{value:a||""})}):(0,s.jsx)(ls,{className:Mo("col"),value:a||""})}render(){const{blockId:t,columns:e,defaultBackgroundColor:n,heading:o,isLearner:r,items:a,labels:i,lessonId:c,media:u,settings:d,type:m,variant:p,renderText:f=this.renderTextDelegate,renderHeading:g=this.renderHeadingDelegate,getL10nValue:v}=this.props,C=v(u),x=Object.keys(C?.audio??{}).length>0,{audioPosition:L,entranceAnimation:y,cellPadding:E=1.5,tableWidth:b=76,textPadding:S=.8,textWidth:T=76}=d,N=p==="table",j=e===1,R=e>1,O=N?b:T,P=!N&&j,A=N,F=nw(E),w=ow(S),D=zh(O),V=Mo({[m]:!P&&!A||R,[`${m}-custom-width`]:!R,[`${m}-custom-width-table-${D}`]:A,[`${m}-custom-width-text-${D}`]:P,[`heading-custom-text-padding-${w}`]:P,[`${m}-custom-cell-padding-${F}`]:A,"no-animation":!y}),_=e>2?Mo("container-wide"):Mo("container",{authoring:!r}),ee=this.getHeadingComponent(),q=v(Array.isArray(u)?{}:u),fe=ao(q,L);return(0,s.jsx)(kt,{className:V.toString(),defaultBackgroundColor:n,children:(0,s.jsxs)("div",{className:_,"data-block-id":t,"data-block-text":"",children:[(0,s.jsx)("div",{className:Mo("row"),children:o!==""?a.slice(0,1).map((ye,Ie)=>(0,s.jsx)("div",{className:Mo("col"),children:(0,s.jsx)("div",{className:Mo("heading"),children:(0,s.jsx)(ee,{children:g(ye)})})},"id"in ye?ye.id:Ie)):null}),fe.renderOrder.map((ye,Ie)=>{if(ye==="text")return(0,s.jsx)("div",{className:Mo("row"),children:m!=="heading"?a.slice(0,e).map((we,Ve)=>(0,s.jsx)(h.Fragment,{children:f(we)},"id"in we?we.id:Ve)):null},`text-${Ie}`);if(ye==="audio"&&x){const we=fe.renderOrder.indexOf("audio")<fe.renderOrder.indexOf("text");return(0,s.jsx)("div",{className:Mo("row",{media:!0,top:we,bottom:!we,hasHeading:p==="heading paragraph"||p==="subheading paragraph"}),children:(0,s.jsx)("div",{className:Mo("col",{media:!0}),children:(0,s.jsx)(zs,{blockId:t,hasPadding:!1,index:t,item:{id:t,media:u},labels:i,lessonId:c,media:u,refs:`items:${t}`})})},`audio-${Ie}`)}})]})})}},Tr=Gt(wO),MO=Tr,OO=t=>(0,s.jsx)(Tr,{columns:2,type:"twocol",...t}),DO=t=>(0,s.jsx)(Tr,{columns:3,type:"threecol",...t}),BO=t=>(0,s.jsx)(Tr,{columns:4,type:"fourcol",...t}),HO=t=>(0,s.jsx)(Tr,{heading:"heading",type:"heading",...t}),FO=t=>(0,s.jsx)(Tr,{heading:"subheading",type:"heading",...t}),zO=t=>(0,s.jsx)(Tr,{heading:"heading",...t}),VO=t=>(0,s.jsx)(Tr,{heading:"subheading",...t});var nc=l(26372);const UO="#page-wrap",$O=1e3,WO={fadeInGrow:"scale(0.95)",fadeInLeft:"translateX(-50px)",fadeInLeftSmall:"translateX(-25px)",fadeInRight:"translateX(50px)",fadeInUp:"translateY(25px)"},GO=t=>{const{afterAnimatedIn:e,animateIn:n="fadeIn",children:o,className:r,duration:a=1,initiallyVisible:i,siblingDelay:c=0}=t,u=nc.useRef(null),[d,m]=nc.useState(!1);nc.useEffect(()=>{const f=u.current;if(i&&f){m(!0);return}if(d||!f||typeof window>"u")return;const g=document.querySelector(UO),v=new IntersectionObserver(([x])=>{x!=null&&(x.isIntersecting||x.intersectionRatio>0)&&(m(!0),v.unobserve(x.target))},{root:g,rootMargin:lt.CY,threshold:0});v.observe(f);const C=setTimeout(()=>{m(x=>{if(x)return x;const L=u.current;if(!L)return x;const y=L.getBoundingClientRect(),E=g?.getBoundingClientRect(),b=E?.top??0,S=E?.bottom??window.innerHeight,T=(S-b)*.1;return y.bottom>b-T&&y.top<S+T?!0:x})},$O);return()=>{v.disconnect(),clearTimeout(C)}},[i,d]),nc.useEffect(()=>{const f=u.current;if(!f||!e)return;const g=v=>{v.target instanceof Element&&v.target.parentElement===f&&v.propertyName==="opacity"&&e()};return f.addEventListener("transitionend",g),()=>{f.removeEventListener("transitionend",g)}},[e]),nc.useEffect(()=>{const f=u.current;if(!f||!Array.isArray(o))return;Array.from(f.children).forEach((v,C)=>{v instanceof HTMLElement&&v.style.setProperty("--idx",String(C))})},[o]);const p={"--scroll-animation-step":`${c}s`,"--scroll-animation-duration":n==="none"?"0s":`${a}s`,"--scroll-animation-from":WO[n]??"translateY(0)"};return(0,s.jsx)("div",{className:Q()("scroll-animation",r,{"scroll-animation--in":d}),ref:u,style:p,children:o})},KO=matchMedia("(prefers-reduced-motion: reduce)");function dn(){return KO.matches}const Ot=t=>{const{afterAnimatedIn:e,animateBlockEntrance:n,animateIn:o,children:r,className:a,duration:i,initiallyVisible:c,isLearner:u,siblingDelay:d}=t;return u&&n&&!dn()?(0,s.jsx)(GO,{afterAnimatedIn:e,animateIn:o,className:a,duration:i,initiallyVisible:c,siblingDelay:d,children:r}):Array.isArray(r)?(0,s.jsx)("div",{children:r}):r};var Ug=l(26372);const _O=Ug.lazy(async()=>{const[t,e]=await Promise.all([l.e("ace").then(l.t.bind(l,54723,23)),l.e("ace").then(l.bind(l,63499)),l.e("ace").then(l.t.bind(l,99726,23)),l.e("ace").then(l.t.bind(l,73143,23)),l.e("ace").then(l.t.bind(l,25523,23)),l.e("ace").then(l.t.bind(l,34617,23)),l.e("ace").then(l.t.bind(l,25523,23)),l.e("ace").then(l.t.bind(l,49546,23)),l.e("ace").then(l.t.bind(l,12449,23)),l.e("ace").then(l.t.bind(l,86930,23)),l.e("ace").then(l.t.bind(l,85696,23)),l.e("ace").then(l.t.bind(l,18512,23)),l.e("ace").then(l.t.bind(l,79368,23)),l.e("ace").then(l.t.bind(l,85051,23)),l.e("ace").then(l.t.bind(l,75097,23)),l.e("ace").then(l.t.bind(l,50472,23)),l.e("ace").then(l.t.bind(l,26106,23)),l.e("ace").then(l.t.bind(l,74755,23)),l.e("ace").then(l.t.bind(l,88958,23)),l.e("ace").then(l.t.bind(l,32357,23)),l.e("ace").then(l.t.bind(l,63638,23)),l.e("ace").then(l.t.bind(l,36597,23))]);return{default:e.default}}),QO=({classNames:t,code:e,blockId:n})=>{const[o,r]=(0,h.useState)(!1),{announcePolite:a}=bt(),i=async()=>{const c=(0,da.htmlDecode)(e);await navigator.clipboard.writeText(c),r(!0),setTimeout(()=>r(!1),1e3),a("Copied!")};return(0,s.jsx)("div",{className:t,children:(0,s.jsx)(Mt.ArcTooltip,{id:`code-snippet-copy-tooltip-${n}`,text:o?"Copied!":"Copy",children:(0,s.jsx)(Mt.ArcButton,{icon:(0,s.jsx)(ct,{name:o?"check":"copy"}),layout:"icon",onClick:i,shape:"square",size:"md",variant:"tertiary"})})})};class ZO extends Ug.Component{renderCaptionDelegate;constructor(e){super(e),this.renderCaptionDelegate=this.renderCaption.bind(this)}renderCaption({caption:e}){return(0,s.jsx)(ls,{className:"block-text__code-caption",value:e||""})}render(){const{animateBlockEntrance:e,blockId:n,defaultBackgroundColor:o="",getL10nValue:r,initiallyVisible:a,isLearner:i,items:c,labels:u,settings:d,renderCaption:m=this.renderCaptionDelegate}=this.props,{entranceAnimation:p,language:f,paddingBottom:g,paddingTop:v,snippetBackgroundColor:C,snippetColorContrast:x,theme:L,useAdvancedEditor:y,wrapWords:E}=d,b=Q()("block-text block-text--code",{"block-text--padding-top":Number(v)===2,"block-text--padding-bottom":Number(g)===2,"block-text--no-animation":!p}),S={backgroundColor:C},T=C==="#fafafa"||Xs()(C),N=x??M.Em.DARK;if(!T){const j=Rs({backgroundColor:C,contrast:N});Object.assign(S,{"--color-snippet-contrast":j})}return(0,s.jsx)(kt,{className:b,defaultBackgroundColor:o,children:(0,s.jsx)(Ot,{animateBlockEntrance:e,initiallyVisible:a,isLearner:i,children:(0,s.jsx)("div",{className:"block-text__container",children:c.slice(0,1).map(j=>{const R=Gl({...j,getL10nValue:r});return(0,s.jsx)("div",{className:"block-text__row",children:(0,s.jsx)("div",{"aria-label":u?.a11yBlockCodeSnippet,className:"block-text__col",role:pi,children:(0,s.jsxs)("figure",{"aria-labelledby":R.figcaptionId,className:"block-text__figure block-text__figure--with-copy",role:"figure",children:[(0,s.jsx)(Gk,{value:j.code,children:O=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(QO,{blockId:n,classNames:"block-text__copy-button",code:O}),y?(0,s.jsx)(h.Suspense,{fallback:null,children:(0,s.jsx)(_O,{editorProps:{$blockScrolling:!0},maxLines:25,mode:f,name:String(j.id),readOnly:!0,setOptions:{enableSnippets:!1,showLineNumbers:!0,tabSize:2,fontSize:"1.6rem",useWorker:!1},theme:L,value:(0,da.htmlDecode)((0,Eo.aj)(O)),width:"100%",wrapEnabled:E})}):(0,s.jsx)("pre",{className:"block-text__code",dangerouslySetInnerHTML:{__html:(0,Eo.aj)(O)},dir:"ltr",style:S})]})}),j.caption&&(0,s.jsx)("figcaption",{id:R.figcaptionId,children:m(j)})]})})},j.id)})})})})}}const $g=Gt(ZO);function YO({accentColor:t,backgroundType:e,blockBackgroundColor:n,noteColor:o,imageBackgroundDefault:r="#ffffff"}){return o!=null&&o!==""?o:XO({accentColor:t,backgroundType:e,blockBackgroundColor:n,imageBackgroundDefault:r})}function XO({accentColor:t,backgroundType:e,blockBackgroundColor:n,imageBackgroundDefault:o="#ffffff"}){if(e!==M.xj.IMAGE&&n==null)return"#000000b3";switch(e){case M.xj.IMAGE:return o;case M.xj.LIGHT:case M.xj.GRAY:return(0,ft.W8)(.9,t);case M.xj.DARK:return"#494949";case M.xj.BLACK:return"#333333";default:switch((0,ft.XC)(n)){case ft.lL.LIGHT:return(0,ft.W8)(.3,n);case ft.lL.MED:return(0,ft.W8)(-.2,n);case ft.lL.DARK:case ft.lL.NEAR_BLACK:return(0,ft.W8)(-.4,n);default:return t}}}function JO(t,e){const n=Ys(),{cardMode:o,className:r="",children:a,disabled:i=!1,tag:c="div",overrideBackground:u=!1,style:d={},...m}=t,{cardMode:p,customBackgroundColorContrast:f}=n,v=(0,xe.DX)()?.theme,C=Ro(),x=o??p??Dn.WHITE,L=En()??"#ffffff",y=x===Dn.WHITE,E=C===M.xj.COLOR,b=C===M.xj.ACCENT,S=v?.accentContrast,T=C===M.xj.ACCENT||C===M.xj.COLOR,N=S===M.Em.AUTO&&b||f===M.Em.AUTO&&E,j=C===M.xj.COLOR?f:S,R=[r,"block-card"];if(y)R.push("bg--range-light","block-card--white");else if(i){R.push("block-card--disabled");const O=Rs({backgroundColor:L,contrast:j});N&&(d["--color-text"]=O,d["--color-text-opposite"]=O===lt.S6.DARK?lt.S6.LIGHT:lt.S6.DARK)}else{R.push("block-card--transparent");const O=(0,ft.XC)(L),P=ft.t9[O](L);switch(C){case M.xj.LIGHT:case M.xj.GRAY:R.push("bg--range-light");break;case M.xj.IMAGE:R.push("bg--range-dark");break;case M.xj.DARK:case M.xj.BLACK:R.push("bg--range-dark"),d["--color-background-rgb"]=(0,fi.A)(P)?.slice(0,3);break;default:{const F=d["--color-background"]??(u?L:P),w=Rs({backgroundColor:F,contrast:j});T&&w==lt.S6.LIGHT&&R.push("block-card--contrast-light");const D=(0,ft.XC)(F);R.push(`bg--range-${ei()(D.toLowerCase())}`),d["--color-background"]=F,d["--color-background-rgb"]=(0,fi.A)(F)?.slice(0,3);break}}}return(0,s.jsx)(c,{...m,className:R.join(" "),ref:e,style:d,children:a})}const ws=(0,h.forwardRef)(JO);var qO=l(26372);const jn=ne("block-statement");class eD extends qO.Component{renderTextDelegate;constructor(e){super(e),this.renderTextDelegate=this.renderText.bind(this)}static get defaultProps(){return{items:[],type:"a",getL10nValue:()=>{}}}getEntranceAnimationType(){const{type:e}=this.props;switch(e){case"a":return"fadeIn";case"b":case"d":return"fadeInUp";case"c":return"fadeInRight";case"note":return"fadeInGrow"}}getEntranceAnimationDuration(){const{type:e}=this.props;switch(e){case"a":return 1;case"b":case"c":case"d":return .75;case"note":return .5}}renderText({blockId:e,getL10nValue:n,type:o,labels:r,lessonId:a,media:i,settings:c},{paragraph:u}){const d=o==="note",m=n(Array.isArray(i)?{}:i),p=!!m?.audio,f=ao(m,c.audioPosition,!1,"statement"),g=(0,s.jsx)("div",{className:jn("quote"),children:f.renderOrder.map((v,C)=>{if(v==="text")return(0,s.jsx)("div",{children:(0,s.jsx)(ls,{value:u})},`text-${C}`);if(v==="audio"&&p){const x=f.renderOrder.indexOf("audio")<f.renderOrder.indexOf("text");return(0,s.jsx)("div",{className:jn("audio-container",{top:x,bottom:!x}),children:(0,s.jsx)(zs,{blockId:e,hasPadding:!1,index:e,item:{media:i,id:e},labels:r,lessonId:a,media:i,refs:`items:${e}`,renderMediaType:"audio"})},`audio-${C}`)}return null})});return d?(0,s.jsx)(aD,{getL10nValue:n,media:i,children:g}):g}render(){const{animateBlockEntrance:e,isLearner:n,items:o,renderText:r=this.renderTextDelegate,settings:a,type:i,initiallyVisible:c}=this.props,{entranceAnimation:u,divider:d=!0,dividerPadding:m=QP(i),dividerSize:p=_P(i),noteIcon:f=!0,noteSize:g="sm",statementWidth:v=ZP(i)}=a,C=ew(v),x=tw(m),L=sw(p),y=g,E=i==="a"||i==="b"||i==="d",b=i==="note",S=jn({[i]:!0,[`${i}-custom-width-${C}`]:!0,[`${i}-divider-off`]:E&&!d,[`${i}-divider-padding-${x}`]:E&&d,[`${i}-divider-size-${L}`]:E&&d,[`note-size-${y}`]:b,[`note-size-${y}-no-icon`]:b&&!f,"no-animation":!u});return(0,s.jsx)(kt,{className:S.toString(),children:(0,s.jsx)("div",{className:jn("wrap"),children:(0,s.jsx)("div",{className:jn("container"),children:(0,s.jsx)("div",{className:jn("row"),children:o.slice(0,1).map(T=>(0,s.jsx)(Ot,{animateBlockEntrance:e,animateIn:this.getEntranceAnimationType(),duration:this.getEntranceAnimationDuration(),initiallyVisible:c,isLearner:n,children:(0,s.jsxs)("div",{className:jn("col"),children:[(0,s.jsx)("div",{className:jn("divider-top-container"),children:(0,s.jsx)("div",{className:jn("divider-top")})}),r(this.props,T),(0,s.jsx)("div",{className:jn("divider-bottom")})]})},T.id))})})})})}}const oc=Gt(eD),tD=oc,sD=t=>(0,s.jsx)(oc,{type:"b",...t}),nD=t=>(0,s.jsx)(oc,{type:"c",...t}),oD=t=>(0,s.jsx)(oc,{type:"d",...t}),rD=t=>(0,s.jsx)(oc,{type:"note",...t}),aD=({children:t,getL10nValue:e,media:n})=>{const o=Ys(),{accentColor:r,cardMode:a,cornerRadius:i,courseColor:c,customBackgroundColorContrast:u,noteIcon:d=!0,noteIconColor:m}=o,p=o.noteColor,f=o.noteColorContrast,{theme:g}=(0,xe.DX)(),v=En(),C=Ro(),x=C===M.xj.COLOR,L=C===M.xj.ACCENT,y=g?.accentContrast,E=C===M.xj.DARK||C===M.xj.BLACK,b=p!=null&&p!=="",T=x||L||E||b?Dn.TRANSPARENT:a,N=b&&(f??M.Em.AUTO)===M.Em.AUTO||y===M.Em.AUTO&&L||u===M.Em.AUTO&&x,j=(0,h.useMemo)(()=>YO({accentColor:r??c,backgroundType:C,blockBackgroundColor:v,noteColor:p,imageBackgroundDefault:""}),[r,C,v,c,p]),R=b?f??M.Em.AUTO:C===M.xj.COLOR?u:y,O=Rs({backgroundColor:j,contrast:R}),P={"--color-background":j,...(N||b)&&{"--color-text":O},...i&&{"--corner-radius":`${Number(i)}px`},...m&&{"--color-theme-decorative":m},...b&&{"--color-theme":p}},A=jn("note-icon",{off:!d}),w=(e?e(Array.isArray(n)?{}:n):void 0)?.image,D=w?.key&&Object.keys(w).length>0,V=D?(0,Fs.$D)(w)?(0,$e.o1)(w.key):(0,Ft.ME)(w):null,_=()=>d?D&&V?(0,s.jsx)("div",{"aria-hidden":!0,className:jn("note-icon__custom"),style:{WebkitMaskImage:`url('${V}')`,maskImage:`url('${V}')`}}):(0,s.jsx)(ct,{name:"circle-info"}):null;return(0,s.jsxs)(ws,{cardMode:T,className:jn("note-card"),style:P,children:[(0,s.jsx)("div",{className:A,children:_()}),t]})};var ms=l(26372);function Wg({ariaLabel:t,children:e,className:n="carousel-controls-item-btn",isActive:o,onClick:r,onKeyDown:a}){return(0,s.jsx)("li",{className:"carousel-controls-item",role:"listitem",children:(0,s.jsx)("button",{"aria-current":o,"aria-label":t,className:n,onClick:r,onKeyDown:a,tabIndex:o?0:-1,type:"button",children:e})})}function fu({children:t,iconNameLeft:e="chevron-left-light",iconNameRight:n="chevron-right-light",isInfinite:o=!0,isRTL:r=!1,labelCarousel:a="Carousel",labelCarouselRoleDesc:i="Carousel",labelSlideControls:c="Slide controls",labelSlideControlsGoToNext:u="Go to next slide",labelSlideControlsGoToPrevious:d="Go to previous slide",labelSlideControlsGoToSlide:m="Go to slide",labelSlideCounterPreposition:p="of",labelSlidePreposition:f="of",labelSlideRoleDesc:g="Slide",onChange:v,ref:C,renderSlideIndicator:x,shouldMouseEmulateTouch:L=!1,shouldUseCounter:y=!1,shouldUseGoToSlide:E=!0}){const b=ms.useId(),[S,T]=ms.useState(0),N=(0,tt.A)(S)??0,j=ms.useRef(null),R=ms.useRef(null),O=ms.useRef(!1),P=ms.useRef(!1),A=ms.useRef(void 0),F=ms.useRef(void 0),w=`carousel-${b}`,D=ms.Children.count(t),V=(0,tt.A)(D),_=ms.useMemo(()=>Array.from({length:D}),[D]),ee=D>1;ms.useImperativeHandle(C,()=>({navigateToSlide:(Me,Ae=!0)=>{T(Me);const me=j.current?.children?.[Me]?.firstElementChild;Ae&&me?.focus()}}),[]);const q=ms.useCallback(({activeIndex:Me,dir:Ae})=>{const me=o?Me-1>=0?Me-1:D-1:Math.max(0,Me-1),ue=o?Me+1<=D-1?Me+1:0:Math.min(D-1,Me+1);return Ae==="left"?r?ue:me:r?me:ue},[o,r,D]),fe=ms.useCallback(()=>{T(Me=>q(r?{activeIndex:Me,dir:"right"}:{activeIndex:Me,dir:"left"}))},[q,r]),ye=ms.useCallback(()=>{T(Me=>q(r?{activeIndex:Me,dir:"left"}:{activeIndex:Me,dir:"right"}))},[q,r]),Ie=ms.useCallback(Me=>{const Ae=j.current?.children?.[Me],me=j.current;if(Ae&&me){const ue=Ae.getBoundingClientRect(),Be=me.getBoundingClientRect(),Re=ue.left+ue.width/2,We=Be.left+Be.width/2,He=Re-We;me.scrollBy({left:He,behavior:"smooth"})}},[]),we=ms.useCallback(Me=>{let Ae=!1,me=S;switch(Me.key){case"ArrowLeft":Ae=!0,me=q({activeIndex:S,dir:"left"});break;case"ArrowRight":Ae=!0,me=q({activeIndex:S,dir:"right"});break;case"Home":Ae=!0,me=0;break;case"End":Ae=!0,me=D-1;break}Ae&&(Me.stopPropagation(),Me.preventDefault()),S!==me&&(j.current?.children?.[me]?.firstChild?.focus(),Ie(me),T(me))},[S,q,Ie,D]);ms.useEffect(()=>{N!==S&&v?.(S)},[S,v,N]),ms.useEffect(()=>{D<V&&S>D-1&&T(D-1)},[S,V,D]),ms.useEffect(()=>{const Me=He=>{He.target.tagName==="IMG"&&He.preventDefault(),A.current=He.screenX},Ae=He=>{const mt=window.visualViewport?.scale??1,ht=window.getSelection().toString()!=="";if(!P.current&&mt<=1.01&&!ht&&A.current!=null){F.current=He.screenX;const yt=F.current-A.current;Math.abs(yt)>50&&(window.getSelection().empty(),O.current=!0,A.current=void 0,F.current=void 0,yt<0?T(Ht=>q({activeIndex:Ht,dir:"right"})):T(Ht=>q({activeIndex:Ht,dir:"left"})))}},me=He=>{O.current&&He.stopPropagation(),O.current=!1,P.current=!1,A.current=void 0,F.current=void 0},ue=He=>{if(He.touches.length>1){P.current=!0;return}He.changedTouches.length===1&&He.changedTouches[0]&&(A.current=He.changedTouches[0].screenX)},Be=He=>{const mt=window.visualViewport?.scale??1,ht=window.getSelection().toString()!=="";if(!P.current&&mt<=1.01&&!ht&&A.current!=null&&He.changedTouches[0]){F.current=He.changedTouches[0].screenX;const yt=F.current-A.current;Math.abs(yt)>50&&(O.current=!0,A.current=void 0,F.current=void 0,yt<0?T(Ht=>q({activeIndex:Ht,dir:"right"})):T(Ht=>q({activeIndex:Ht,dir:"left"})))}},Re=()=>{O.current=!1,P.current=!1,A.current=void 0,F.current=void 0},We=R.current;return L&&(We?.addEventListener("mousedown",Me,{capture:!0}),We?.addEventListener("mousemove",Ae,{capture:!0}),We?.addEventListener("click",me,{capture:!0})),We?.addEventListener("touchstart",ue,{passive:!0}),We?.addEventListener("touchmove",Be,{passive:!0}),We?.addEventListener("touchend",Re,{passive:!0}),We?.addEventListener("touchcancel",Re,{passive:!0}),()=>{L&&(We?.removeEventListener("mousedown",Me),We?.removeEventListener("mousemove",Ae),We?.removeEventListener("mouseup",Re)),We?.removeEventListener("touchstart",ue),We?.removeEventListener("touchmove",Be),We?.removeEventListener("touchend",Re),We?.removeEventListener("touchcancel",Re)}},[q,L,D]);const Ve=ms.useCallback(Me=>()=>{Ie(Me),T(Me)},[Ie]);return(0,s.jsxs)("div",{"aria-label":a,"aria-roledescription":i,className:"carousel",dir:r?"rtl":void 0,role:"region",style:{"--carousel-active-index":S},children:[ee&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{"aria-label":c,className:"carousel-controls",role:"group",children:[E&&(0,s.jsx)("ul",{className:"carousel-controls-items",ref:j,role:"list",children:_.map((Me,Ae)=>{const me=S===Ae,ue=Ve(Ae);return x?x({index:Ae,isActive:me,onClick:ue,onKeyDown:we}):(0,s.jsx)(Wg,{ariaLabel:m+" "+(Ae+1),isActive:me,onClick:ue,onKeyDown:we,children:(0,s.jsx)(ct,{className:"carousel-controls-item-btn-icon",name:me?"circle":"circle-solid"})},Ae)})}),(0,s.jsx)("button",{"aria-disabled":o?void 0:S===0,"aria-label":d,className:"carousel-controls-prev",onClick:!o&&S===0?void 0:fe,type:"button",children:(0,s.jsx)(ct,{className:"carousel-controls-prev-icon",name:r?n:e})}),(0,s.jsx)("button",{"aria-disabled":o?void 0:S===D-1,"aria-label":u,className:"carousel-controls-next",onClick:!o&&S===D-1?void 0:ye,type:"button",children:(0,s.jsx)(ct,{className:"carousel-controls-next-icon",name:r?e:n})}),y&&(0,s.jsxs)("div",{className:"carousel-controls-counter",children:[(0,s.jsx)("div",{className:"carousel-controls-counter-text",children:`${S+1} ${p} ${D}`}),(0,s.jsx)("div",{className:"carousel-controls-counter-line",children:(0,s.jsx)("div",{className:"carousel-controls-counter-line-runner",style:{width:`${Number(((S+1)/D).toFixed(2))*100}%`}})})]})]})}),(0,s.jsx)("div",{"aria-live":"polite",className:"carousel-slides",ref:R,children:ms.Children.map(t,(Me,Ae)=>{const me=`${w}-${Ae}-counter`;return(0,s.jsxs)("div",{"aria-labelledby":me,"aria-roledescription":g,className:"carousel-slide",hidden:S!==Ae,inert:S!==Ae,role:"group",children:[(0,s.jsx)("div",{className:"visually-hidden-always",id:me,children:`${Ae+1} ${f} ${D}`}),Me]})})})]})}var rc=l(26372);const iD="div",Gg=rc.createContext(void 0);function lD({children:t,element:e,...n},o){const[r,a]=rc.useState(null);return(0,s.jsx)(Gg.Provider,{value:r,children:rc.createElement(e??iD,{...n,ref:o},t,(0,s.jsx)("div",{ref:a}))})}const vu=rc.forwardRef(lD);function Lse(){return rc.useContext(Gg)}function Jh(t){const e=n=>{const o=(0,xe.Wz)();return(0,s.jsx)(t,{...n,isRTL:o})};return e.displayName=`withRTL(${t.displayName||t.name})`,e}const gu=({blockId:t,carouselRef:e,children:n,items:o})=>{const r=(0,h.useRef)(null),a=e??r;return(0,h.useEffect)(()=>{const i=c=>{const{path:u}=c.detail,{blockId:d,cardId:m}=Xa(u,["block","card"]);if(d===t){const p=o.findIndex(f=>f.id===m);p>=0&&a.current?.navigateToSlide?.(p,!1)}};return window.addEventListener($t,i),()=>{window.removeEventListener($t,i)}},[o,t,a]),(0,s.jsx)(s.Fragment,{children:n({carouselRef:e})})},Dt=ne("block-quote"),ac=({avatar:t,alt:e,l10nId:n,showAvatar:o})=>o?(0,s.jsx)(Tn,{alt:(0,Fs.Ll)(e),className:Dt("avatar"),"data-l10n-id":n,src:t}):null,cD=({alt:t,animateBlockEntrance:e,avatar:n,children:o,l10nId:r,initiallyVisible:a,isAuthorBlank:i=!1,isLearner:c,showAvatar:u,type:d})=>{const m=Dt("col",{"no-avatar":!n}),p=n?(0,s.jsx)("div",{className:Dt("image"),children:(0,s.jsx)("div",{className:Dt("avatar-wrap"),children:d==="c"?(0,s.jsx)(Ot,{animateBlockEntrance:e,animateIn:"fadeInLeftSmall",initiallyVisible:a,isLearner:c,children:(0,s.jsx)(ac,{alt:t,avatar:n,l10nId:r,showAvatar:u})}):(0,s.jsx)(ac,{alt:t,avatar:n,l10nId:r,showAvatar:u})})}):null;return(0,s.jsx)("div",{className:Dt("container"),children:(0,s.jsx)("div",{className:Dt("row"),children:(0,s.jsxs)("div",{className:m,children:[(0,s.jsx)("div",{className:Dt("divider-top")}),(0,s.jsxs)("div",{className:Dt("figure",{"no-author":i,"no-avatar":!i&&!u}),children:[p,o]}),(0,s.jsx)("div",{className:Dt("divider-bottom")})]})})})},dD=({avatar:t,children:e,alt:n,l10nId:o,showAvatar:r})=>(0,s.jsx)("div",{className:Dt("figure"),children:(0,s.jsx)("div",{className:Dt("container"),children:(0,s.jsxs)("div",{className:Dt("row"),children:[(0,s.jsx)("div",{className:Dt("col"),children:t&&r?(0,s.jsx)(ac,{alt:n,avatar:t,l10nId:o,showAvatar:r}):null}),(0,s.jsx)("div",{className:Dt("col"),children:e})]})})}),uD=({background:t,avatar:e,children:n,alt:o,l10nId:r,showAvatar:a})=>(0,s.jsx)("div",{className:Dt("background"),style:{backgroundImage:t??""},children:(0,s.jsx)("div",{className:Dt("container"),children:(0,s.jsx)("div",{className:Dt("row"),children:(0,s.jsx)("div",{className:Dt("col"),children:(0,s.jsxs)("div",{className:Dt("figure"),children:[e&&a?(0,s.jsx)(ac,{alt:o,avatar:e,l10nId:r,showAvatar:a}):null,n]})})})})});class hD extends h.Component{renderTextDelegate;renderCaptionDelegate;constructor(e){super(e),this.renderTextDelegate=this.renderText.bind(this),this.renderCaptionDelegate=this.renderCaption.bind(this)}static get defaultProps(){return{editable:!1,items:[],type:"a",getL10nValue:()=>{}}}getQuoteEntranceAnimationType(){const{type:e}=this.props;switch(e){case"a":case"b":case"background":return"fadeInUp";case"d":case"c":return"fadeInRight"}}getBackgroundImageUrl(e,n){const o=e?.alpha??YP(n),r=(0,Ft.ME)(e),a=XP(n);return(0,ah.A)({alpha:o,color:a,url:r})?.backgroundImage}renderText(e,{paragraph:n}){const o=n||"",r=Dt("text",{blank:o===""}).toString();return(0,s.jsx)(ls,{className:r,value:o})}renderCaption(e,{name:n}){const o=Dt("caption",{blank:n===""}).toString();return(0,s.jsx)(ls,{className:o,value:n})}render(){const{animateBlockEntrance:e,getL10nValue:n,initiallyVisible:o,isLearner:r,items:a,settings:i,type:c,renderText:u=this.renderTextDelegate,renderCaption:d=this.renderCaptionDelegate}=this.props,m=92,{avatarSize:p=lg(c),divider:f=!0,dividerSize:g=m,entranceAnimation:v,quoteAlignment:C="left",quoteIcon:x=!0,quotesInline:L,quotePadding:y=2,quoteWidth:E=ig(c)}=i,[b]=a,{avatar:S,background:T}=b,N=n(S?.media)?.image,j=(0,Ft.xm)(N),R=N?.alt,O=(0,pt.pP)(S.media),P=n(T?.media)?.image,A=P?.overlayColor,F=this.getBackgroundImageUrl(P,A),w=i?.avatar??j!=="",D=j&&j!=="",V=c==="background",_=V&&A==="light",ee=dg(E),q=ug(y),fe=cg(c,p),ye=qP(g),Ie=c==="a",we=c==="c"||V,Ve=c!=="b"&&!V,Me=b?.name==="",Ae=b?.paragraph==="",me=Dt(null,{[c]:!0,[`${c}-custom-width-${ee}`]:!0,[`${c}-divider-off`]:Ie&&!f,[`${c}-divider-size-${ye}`]:Ie&&f,[`${c}-quote-padding-${q}`]:!0,[`${c}-align-${C}`]:V,[`${c}-${ee}-no-avatar`]:!j||!w,[`${c}-avatar-size-${fe}`]:w&&D,[`${c}-quote-icon-off`]:we&&!x,[`${c}-legacy-quote-mark`]:Ve&&!L,[`${c}-overlay-legacy`]:!A,[`${c}-overlay-light`]:_,"no-animation":!v}).toString(),ue=(0,s.jsx)("div",{className:Dt("wrap",{blank:Me||Ae}),children:(0,s.jsx)(Ot,{animateBlockEntrance:e,animateIn:this.getQuoteEntranceAnimationType(),initiallyVisible:o,isLearner:r,siblingDelay:.15,children:(0,s.jsxs)("figure",{children:[(0,s.jsx)("blockquote",{children:u(this.props,b)}),(0,s.jsx)("figcaption",{children:d(this.props,b)})]})})});let Be;switch(c){case"d":Be=(0,s.jsx)(dD,{alt:R,avatar:j,initiallyVisible:o,l10nId:O,showAvatar:w,type:c,children:ue});break;case"background":Be=(0,s.jsx)(uD,{alt:R,avatar:j,background:F,initiallyVisible:o,l10nId:O,showAvatar:w,type:c,children:ue});break;default:Be=(0,s.jsx)(cD,{alt:R,animateBlockEntrance:e,avatar:j,initiallyVisible:o,isAuthorBlank:Me,isLearner:r,l10nId:O,showAvatar:w,type:c,children:ue})}return(0,s.jsx)(kt,{className:me,children:Be})}}const ic=Gt(hD),mD=(t=>(0,s.jsx)(ic,{...t})),pD=t=>(0,s.jsx)(ic,{type:"b",...t}),fD=t=>(0,s.jsx)(ic,{type:"c",...t}),vD=t=>(0,s.jsx)(ic,{type:"d",...t}),gD=t=>(0,s.jsx)(ic,{type:"background",...t});class CD extends h.Component{static get defaultProps(){return{type:"carousel",items:[],onStep:Function.prototype,getL10nValue:()=>{}}}handleChangeCarousel=e=>{this.props.onStep?.(this.props.items[e])};renderText=(e,{paragraph:n})=>{const o=n||"",r=Dt("text",{blank:n===""}).toString();return(0,s.jsx)(ls,{className:r,value:o})};renderCaption=(e,{name:n})=>{const o=Dt("caption",{blank:n===""}).toString();return(0,s.jsx)(ls,{className:o,value:n})};render(){const{blockId:e,animateBlockEntrance:n,editable:o,getL10nValue:r,initiallyVisible:a=!1,isRTL:i,isLearner:c,isLessonBlocksList:u=!1,items:d,labels:m,previewType:p,settings:f,renderText:g=this.renderText,renderCaption:v=this.renderCaption,type:C}=this.props,{avatar:x=!0,avatarSize:L=lg(C),entranceAnimation:y,quotesInline:E,quotePadding:b=2,quoteWidth:S=ig(C),showBorder:T=!0}=f,j=C!=="b"&&!(C==="background"),R=dg(S),O=ug(b),P=cg(C,L),A=p==="mobile-portrait"||p==="mobile-landscape",F=Dt({[C]:!0,[`${C}-custom-width-${R}`]:!0,[`${C}-quote-padding-${O}`]:!0,[`${C}-${R}-no-avatar`]:!x,[`${C}-avatar-size-${P}`]:x,[`${C}-legacy-quote-mark`]:!u&&j&&!E,"no-animation":!y,"hide-border":!T,editable:o}).toString(),w=d.map(D=>{const V=r(D?.avatar?.media)?.image,_=V?.alt,ee=(0,Ft.xm)(V),q=x??ee!=="",fe="l10nId"in D.avatar.media?D.avatar.media.l10nId:void 0;return(0,s.jsx)("div",{className:Dt("slide"),children:(0,s.jsxs)("figure",{className:Dt("figure"),children:[ee&&x?(0,s.jsx)(ac,{alt:_,avatar:ee,l10nId:fe,showAvatar:q}):null,(0,s.jsx)("blockquote",{children:g(this.props,D)}),(0,s.jsx)("figcaption",{children:v(this.props,D)})]})},D.id)});return(0,s.jsx)("div",{className:Dt("slider-container"),children:(0,s.jsx)(kt,{className:F,children:(0,s.jsx)(vu,{className:Dt("wrap"),children:(0,s.jsx)("div",{className:Dt("container"),children:(0,s.jsx)("div",{className:Dt("col"),children:(0,s.jsx)(ws,{className:Dt("box"),children:(0,s.jsx)(Ot,{animateBlockEntrance:n,animateIn:"fadeInUp",initiallyVisible:a,isLearner:c,children:(0,s.jsx)(gu,{blockId:e,items:d,children:({carouselRef:D})=>(0,s.jsx)(fu,{isRTL:i,labelCarousel:m?.a11yBlockQuoteCarousel,labelCarouselRoleDesc:m?.a11yBlockQuoteCarouselRoleDescription,labelSlideControls:m?.a11yBlockQuoteCarouselSlideControls,labelSlideControlsGoToNext:m?.a11yBlockQuoteCarouselSlideControlsGoToNext,labelSlideControlsGoToPrevious:m?.a11yBlockQuoteCarouselSlideControlsGoToPrevious,labelSlideControlsGoToSlide:m?.a11yBlockQuoteCarouselSlideControlsGoToSlide,labelSlideCounterPreposition:m?.blocksPreposition,labelSlidePreposition:m?.a11yBlockQuoteCarouselSlidePreposition,labelSlideRoleDesc:m?.a11yBlockQuoteCarouselSlideRoleDescription,onChange:this.handleChangeCarousel,ref:D,shouldMouseEmulateTouch:A,children:w})})})})})})})})})}}const xD=Jh(Gt(CD));var Kg=l(26372);const Fn=ne("block-list"),bD=class extends Kg.Component{static get defaultProps(){return{editable:!1,items:[],onStep:Function.prototype,type:"numbered",getL10nValue:()=>{}}}nextNumber(t){const{items:e}=this.props,o=e.length>0?e[t].number:null;let r;return!isNaN(o)&&o!==""&&(r=parseInt(o,10)+1),(r<1||r>99)&&(r=null),r}render(){const{animateBlockEntrance:t,blockId:e,defaultBackgroundColor:n,editable:o,getL10nValue:r,initiallyVisible:a,isLearner:i,items:c,labels:u,lessonId:d,media:m,onStep:p,settings:f,type:g}=this.props,{audioPosition:v,bulletPadding:C,entranceAnimation:x,listItemColor:L,listItemColorContrast:y,listWidth:E}=f,b=r(Array.isArray(m)?{}:m),S=ao(b,v),T=JP(C),N=zh(E),j=Fn({[g]:!0,[`${g}-custom-width-${N}`]:!0,[`${g}-bullet-padding-${T}`]:!0,"no-animation":!x}),R=g==="numbered"?"ol":"ul";return(0,s.jsx)(kt,{className:j.toString(),defaultBackgroundColor:n,children:(0,s.jsx)("div",{className:Fn("container"),children:(0,s.jsx)("div",{className:Fn("row"),children:(0,s.jsx)(vu,{className:Fn("col"),children:(0,s.jsx)("div",{className:"blocks-list__container",children:S.renderOrder.map((O,P)=>{if(O==="text")return(0,s.jsx)("div",{children:(0,s.jsx)(R,{className:Fn("list"),role:"list",children:(0,s.jsx)(Ot,{animateBlockEntrance:t,animateIn:"fadeInRight",className:Fn("animated-item").toString(),initiallyVisible:a,isLearner:i,siblingDelay:.25,children:c.map((A,F)=>{const w={key:A.id,index:F,lessonId:d,blockId:e,type:g,editable:o,nextNumber:this.nextNumber.bind(this),onStep:p,listItemColor:L,listItemColorContrast:y,...A};return this.props.renderItem?this.props.renderItem(w):(0,h.createElement)(yD,{...w,key:w.key})})})})},`text-${P}`);if(O==="audio")return(0,s.jsx)("div",{className:Q()("block-list__media",{"audio-on-top":S.renderOrder[0]==="audio","audio-on-bottom":S.renderOrder[0]!=="audio"}),children:(0,s.jsx)(zs,{blockId:e,hasPadding:!1,index:e,item:{media:m,id:e},labels:u,lessonId:d,media:m,refs:`items:${e}`})},`${O}-${P}`)})})})})})})}};class yD extends Kg.Component{renderTextDelegate;animateRef=null;static get defaultProps(){return{className:""}}constructor(e){super(e),this.renderTextDelegate=this.renderText.bind(this)}renderText(e){return(0,s.jsx)(ls,{...e})}handleChangeCheckbox=()=>{this.props.onStep(this.props)};render(){const{type:e,id:n,index:o,number:r,paragraph:a,editable:i,className:c,renderText:u=this.renderTextDelegate,style:d,listItemColor:m,listItemColorContrast:p}=this.props,f={allowTabNavigation:!0,className:"block-list__content brand--linkColor cursorAuto",editable:i,id:n,value:a};return(0,s.jsxs)("li",{className:Q()("block-list__item",`block-list__item--${e}`,c),ref:g=>{this.animateRef=g},role:"listitem",style:d,children:[e==="numbered"&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:Fn("number"),style:m?{backgroundColor:m,color:Rs({contrast:p||M.Em.AUTO,backgroundColor:m})}:void 0,children:r||o+1}),u(f)]}),e==="bulleted"&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:"\u2022"}),(0,s.jsx)(ct,{className:Fn("bullet"),name:"circle-solid",style:m?{color:m}:void 0}),u(f)]}),e==="checkboxes"&&(0,s.jsxs)("label",{className:Fn("option"),children:[(0,s.jsx)("input",{className:Fn("checkbox-input"),onChange:this.handleChangeCheckbox,type:"checkbox"}),(0,s.jsx)("div",{className:Fn("checkbox"),style:m?{borderColor:m,"--color-background":m}:void 0,children:(0,s.jsx)(ct,{className:Fn("checkbox__icon"),name:"check",style:m?{color:Rs({contrast:p||M.Em.AUTO,backgroundColor:m})}:void 0})}),u(f)]})]})}}const LD=Gt(bD),qh=t=>(0,s.jsx)(LD,{...t}),ED=qh,SD=t=>(0,s.jsx)(qh,{type:"checkboxes",...t}),TD=t=>(0,s.jsx)(qh,{type:"bulleted",...t});var em=l(26372);const tm=t=>["hero","full","aside"].includes(t);class ID extends em.Component{renderCaptionDelegate;constructor(e){super(e),this.renderCaptionDelegate=this.renderCaption.bind(this)}static get defaultProps(){return{type:"hero",editable:!1,getL10nValue:()=>{},lessonId:"",blockId:"",items:[]}}renderCaption(e,n){return(0,s.jsx)(ls,{className:"block-image__caption",value:n})}render(){const{aiMagicIcon:e,aiOverlay:n,animateBlockEntrance:o,blockId:r,defaultBackgroundColor:a,editable:i,getL10nValue:c,initiallyVisible:u,isLearner:d,items:m,type:p,labels:f,lessonId:g,settings:v,renderCaption:C=this.renderCaptionDelegate}=this.props,{entranceAnimation:x,cornerRadius:L,zoomOnClick:y}=v,E=Q()(`block-image block-image--${p}`,"block-image--flag-dimensions",{"block-image--no-animation":!x}),b=m[0],{id:S,caption:T}=b,{image:N,audio:j}=c(b.media)??{},R=N?.alt,O=(0,Ft.ME)(N),P=N?.dimensions,A=P?.width||P?.originalWidth,F=P?.height||P?.originalHeight,w=Gl({caption:T,editable:i,id:S,getL10nValue:c}),D=!d&&!O,V=A&&F?A/F:void 0,_=N?.link?c(N.link.destination):void 0,ee=N?.link&&typeof _=="string"?{type:N.link.type,destination:_}:void 0,q=Q()("block-image__image",{"block-image__image--audio-overlay":!!j});return(0,s.jsx)(kt,{className:E,defaultBackgroundColor:a,children:(0,s.jsx)("div",{className:"block-image__container",children:(0,s.jsx)("div",{className:"block-image__row",children:(0,s.jsx)("div",{className:"block-image__col",children:(0,s.jsx)(Ot,{animateBlockEntrance:o,initiallyVisible:u,isLearner:d,children:(0,s.jsxs)(w.tagName,{"aria-labelledby":w.figcaptionId,className:"block-image__figure",role:w.role,children:[(0,s.jsxs)("div",{className:q,children:[D?(0,s.jsxs)("div",{className:"block-image__waiting",style:{aspectRatio:V},children:[(0,s.jsx)("div",{children:e}),(0,s.jsx)("div",{className:"block-image__waiting-text",children:"Waiting for image\u2026"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ni,{alt:R,cornerRadius:L,disableZoom:!y,height:F,l10nId:(0,pt.pP)(b.media),labels:f,link:ee,maxHeight:p==="full"?380:900,src:O,width:A}),j&&tm(p)&&(0,s.jsx)(zs,{blockId:r,cornerRadius:L,index:`${r}-${S}-0`,isOverlayAudio:!0,item:b,labels:f,lessonId:g,media:b.media,renderMediaType:"audio"})]}),n&&(0,s.jsx)("div",{className:"block-image__ai-overlay",children:n})]}),(i||T)&&(0,s.jsx)("figcaption",{id:w.figcaptionId,children:C(S,T)})]})})})})})})}}const ND=Gt(ID),jD=(t,e,n,o,r)=>e?r:(0,s.jsx)(Ot,{animateBlockEntrance:t,initiallyVisible:n,isLearner:o,children:r});class kD extends em.Component{renderCaptionDelegate;renderParagraphDelegate;constructor(e){super(e),this.renderParagraphDelegate=this.renderParagraph.bind(this),this.renderCaptionDelegate=this.renderCaption.bind(this)}static get defaultProps(){return{blockId:"",getL10nValue:()=>{},editable:!1,items:[],lessonId:"",type:"text-aside"}}renderParagraph(e,n){return(0,s.jsx)(ls,{className:"block-image__text",value:n})}renderCaption(e,n){return(0,s.jsx)(ls,{className:"block-image__caption",value:n})}renderImage(e,n,o,r){const{blockId:a,editable:i,lessonId:c,renderCaption:u=this.renderCaptionDelegate,getL10nValue:d}=this.props,m=d(o.media),p=m?.image,f=m?.audio,g=p?.alt,v=(0,Ft.ME)(p),C=p?.dimensions,x=C?.width||C?.originalWidth,L=C?.height||C?.originalHeight,y=Gl({caption:n,editable:i,id:e,getL10nValue:d}),{animateBlockEntrance:E,initiallyVisible:b,isLearner:S,labels:T,settings:{cornerRadius:N,zoomOnClick:j}}=this.props,R=Q()("block-image__image",{"block-image__image--audio-overlay":!!f}),O=p?.link?d(p.link.destination):void 0,P=p?.link&&typeof O=="string"?{type:p.link.type,destination:O}:void 0;return(0,s.jsx)(Ot,{animateBlockEntrance:E,animateIn:r==="right"?"fadeInRight":"fadeInLeft",initiallyVisible:b,isLearner:S,children:(0,s.jsxs)(y.tagName,{"aria-labelledby":y.figcaptionId,className:"block-image__figure",role:y.role,children:[(0,s.jsxs)("div",{className:R,children:[(0,s.jsx)(Ni,{alt:g,cornerRadius:N,disableZoom:!j,height:L,l10nId:(0,pt.pP)(o?.media),labels:T,link:P,maxHeight:900,src:v,width:x}),f&&tm("aside")&&(0,s.jsx)(zs,{blockId:a,cornerRadius:N,index:`${a}-${e}-0`,isOverlayAudio:!0,item:o,labels:T,lessonId:c,media:o.media,renderMediaType:"audio"})]}),(i||n)&&(0,s.jsx)("figcaption",{id:y.figcaptionId,children:u(e,n)})]})})}render(){const{defaultBackgroundColor:e,items:n,renderParagraph:o=this.renderParagraphDelegate,settings:r,type:a}=this.props,{entranceAnimation:i,imagePosition:c,imageSize:u}=r,d=c==="right",m=Q()(`block-image block-image--${a}`,{"block-image--small":u==="small","block-image--large":u==="large","block-image--reverse":d,"block-image--no-animation":!i}),p=n[0],{id:f,caption:g}=p,v="paragraph"in p?p.paragraph:void 0;return(0,s.jsx)(kt,{className:m,defaultBackgroundColor:e,children:(0,s.jsx)("div",{className:"block-image__container",children:(0,s.jsxs)("div",{className:"block-image__row",children:[(0,s.jsx)("div",{className:"block-image__col",children:d?o(f,v):this.renderImage(f,g,p,"left")}),(0,s.jsx)("div",{className:"block-image__col",children:d?this.renderImage(f,g,p,"right"):o(f,v)})]})})})}}const AD=Gt(kD);class RD extends em.Component{renderCaptionDelegate;renderOverlayDelegate;constructor(e){super(e),this.renderCaptionDelegate=this.renderCaption.bind(this),this.renderOverlayDelegate=this.renderOverlay.bind(this)}static get defaultProps(){return{blockId:"",editable:!1,getL10nValue:()=>{},items:[],lessonId:"",type:"full"}}renderCaption(e,n){return(0,s.jsx)(ls,{className:"block-image__caption",value:n})}renderOverlay(e,n){return(0,s.jsx)(ls,{className:"block-image__paragraph",value:n})}renderOverlayCaption(e,n){const{animateBlockEntrance:o,initiallyVisible:r,isLearner:a,renderOverlay:i=this.renderOverlayDelegate}=this.props;return(0,s.jsx)("div",{className:"block-image__container",children:(0,s.jsx)("div",{className:"block-image__row",children:(0,s.jsx)("div",{className:"block-image__col",children:(0,s.jsx)(Ot,{animateBlockEntrance:o,animateIn:"fadeInUp",duration:1,initiallyVisible:r,isLearner:a,children:i(e,n)})})})})}render(){const{animateBlockEntrance:e,blockId:n,defaultBackgroundColor:o,editable:r,getL10nValue:a,initiallyVisible:i,isLearner:c,items:u,labels:d,lessonId:m,settings:p,type:f,renderCaption:g=this.renderCaptionDelegate}=this.props,{entranceAnimation:v,opacity:C,opacityColor:x}=p,L=rh(p?.backgroundColor,o),y=Q()(`block-image block-image--${f}`,"block-image--flag-dimensions",{"block-image--no-animation":!v,"block-image--dark":(0,ft.cP)(L)}),E={opacity:C||.6,backgroundColor:x||"transparent"},b=u[0],{id:S,caption:T}=b,N=a(b.media),j=N?.image,R=N?.audio,O=j?.key,P=(0,Ft.ME)(j),A=j?.dimensions,F=A?.width||A?.originalWidth,w=A?.height||A?.originalHeight,D=(0,Fs.Ll)(j?.alt),V=f==="overlay",_=Gl({caption:T,editable:r,id:S,isOverlayType:V,getL10nValue:a});return(0,s.jsxs)(kt,{"aria-labelledby":_.figcaptionId,className:y,defaultBackgroundColor:o,role:_.role,tag:_.tagName,children:[jD(e,V,i,c,(0,s.jsxs)("div",{className:"block-image__figure",children:[O&&(0,s.jsxs)("div",{className:"block-image__image","data-l10n-id":(0,pt.pP)(b?.media),style:{backgroundImage:`url('${P}')`},children:[(0,s.jsx)(Tn,{alt:D,height:w,src:P,width:F}),(0,s.jsx)("div",{className:"block-image__overlay",style:E}),R&&tm(f)&&(0,s.jsx)(zs,{blockId:n,index:`${n}-${S}-0`,isOverlayAudio:!0,item:b,labels:d,lessonId:m,media:b.media,renderMediaType:"audio"})]}),V?this.renderOverlayCaption(S,T):null]})),!V&&(r||T)&&(0,s.jsx)("figcaption",{className:"block-image__container",id:_.figcaptionId,children:g(S,T)})]})}}const _g=Gt(RD),PD=t=>(0,s.jsx)(_g,{type:"overlay",...t});var wD=l(26372);function Qg(t){class e extends wD.Component{static displayName=`withGalleryCaption(${t.displayName||t.name})`;renderCaptionDelegate;constructor(o){super(o),this.renderCaptionDelegate=this.renderCaption.bind(this)}renderCaption(o,r,a=!0){return(0,s.jsx)(ls,{allowTabNavigation:a,className:"block-gallery__caption",value:r})}render(){const{renderCaption:o=this.renderCaptionDelegate}=this.props;return(0,s.jsx)(t,{...this.props,renderCaption:o})}}return e}var Cu=l(26372);const Zg=ne("block-gallery-carousel");function MD({blockId:t,animateBlockEntrance:e,defaultBackgroundColor:n,editable:o,initiallyVisible:r,isLearner:a,labels:i,lessonId:c,items:u,onStep:d,previewType:m,renderCaption:p,settings:f}){u||=[];const[g,v]=Cu.useState(0),C=Cu.useCallback(E=>{v(E),d?.(u[E])},[u,d]),x=m===lt.o4.MOBILE_PORTRAIT||m===lt.o4.MOBILE_LANDSCAPE,L=Zg({noAnimation:!f?.entranceAnimation||dn()}).toString(),y=(0,xe.Wz)();return(0,s.jsx)(kt,{className:L,defaultBackgroundColor:n,children:(0,s.jsx)(Ot,{animateBlockEntrance:e,initiallyVisible:r,isLearner:a,children:(0,s.jsx)(vu,{className:Zg("container").toString(),children:(0,s.jsx)(gu,{blockId:t,items:u,children:({carouselRef:E})=>(0,s.jsx)(fu,{isRTL:y,labelCarousel:i?.a11yBlockImageCarousel,labelCarouselRoleDesc:i?.a11yBlockImageCarouselRoleDescription,labelSlideControls:i?.a11yBlockImageCarouselSlideControls,labelSlideControlsGoToNext:i?.a11yBlockImageCarouselSlideControlsGoToNext,labelSlideControlsGoToPrevious:i?.a11yBlockImageCarouselSlideControlsGoToPrevious,labelSlideControlsGoToSlide:i?.a11yBlockImageCarouselSlideControlsGoToSlide,labelSlideCounterPreposition:i?.blocksPreposition,labelSlidePreposition:i?.a11yBlockImageCarouselSlidePreposition,labelSlideRoleDesc:i?.a11yBlockImageCarouselSlideRoleDescription,onChange:C,ref:E,shouldMouseEmulateTouch:x,children:u.map((b,S)=>(0,s.jsx)(DD,{activeIndex:g,blockId:t,editable:o,index:S,item:b,labels:i,lessonId:c,renderCaption:p,settings:f},b.id))})})})})})}const OD=Qg(MD),sm=ne("block-gallery-carousel-item");function DD({activeIndex:t,blockId:e,editable:n,index:o,item:r,labels:a,lessonId:i,renderCaption:c,settings:u}){const[d,m]=Cu.useState(!1),{image:p,audio:f}=(0,nt.QQ)(r.media),g=(0,nt.QQ)(p?.link?.destination),v=p?.dimensions,C=Cu.useCallback(()=>{m(!0)},[]);return(0,s.jsxs)("figure",{className:sm(),children:[n&&!d&&(0,s.jsx)("div",{className:sm("loading"),children:"Loading image..."}),(0,s.jsxs)("div",{className:sm("image-container",{"audio-overlay":!!f}),children:[(0,s.jsx)(Ni,{alt:p?.alt,cornerRadius:u?.cornerRadius,disableZoom:!u?.zoomOnClick,height:v?.height||v?.originalHeight,l10nId:(0,pt.pP)(r?.media),labels:a,link:p?.link&&typeof g=="string"?{type:p.link.type,destination:g}:void 0,maxHeight:900,onLoad:C,src:(0,Ft.ME)(p),width:v?.width||v?.originalWidth}),f&&(0,s.jsx)(zs,{blockId:e,cornerRadius:u?.cornerRadius,index:`${e}-${r.id}-${o}`,isOverlayAudio:!0,item:r,labels:a,lessonId:i,media:r.media,renderMediaType:"audio",shouldPause:t!==o})]}),(n||r.caption)&&d&&(0,s.jsx)("figcaption",{children:c(r.id,r.caption)})]})}const BD=({alt:t,cornerRadius:e,disableZoom:n,height:o,l10nId:r,labels:a,link:i,src:c,width:u})=>(0,s.jsx)("div",{className:"block-gallery__image",children:(0,s.jsx)(Ni,{alt:t,cornerRadius:e,disableZoom:n,height:o,l10nId:r,labels:a,link:i,maxHeight:900,src:c,width:u})}),HD=t=>{switch(t){case 3:return"threecol";case 4:return"fourcol";default:return"twocol"}};function FD(t){return(0,s.jsx)(OD,{...t})}class zD extends h.Component{static get defaultProps(){return{blockId:"",getL10nValue:()=>{},items:[],lessonId:"",width:2}}render(){const{animateBlockEntrance:e,defaultBackgroundColor:n,editable:o,getL10nValue:r,initiallyVisible:a,isLearner:i,items:c,labels:u,renderCaption:d,settings:m,width:p}=this.props,{entranceAnimation:f,cornerRadius:g,zoomOnClick:v}=m,C=Q()(`block-gallery block-gallery--${HD(p)}`,{"block-gallery--no-animation":!f||dn()});return(0,s.jsx)(kt,{className:C,defaultBackgroundColor:n,children:(0,s.jsx)("div",{className:"block-gallery__container",children:(0,s.jsx)("div",{className:"block-gallery__row",children:(0,s.jsx)(Ot,{animateBlockEntrance:e,initiallyVisible:a,isLearner:i,siblingDelay:.25,children:c.map(x=>{const{id:L}=x,y=x.caption,E=r(x.media)?.image,b=E?.alt,S=E?.key,T=E?.dimensions,N=T?.width||T?.originalWidth,j=T?.height||T?.originalHeight,R=(0,Ft.ME)(E),O=r(E?.link?.destination),P=Gl({caption:y,editable:o,id:L,getL10nValue:this.props.getL10nValue});return(0,s.jsx)("div",{className:"block-gallery__col",children:(0,s.jsxs)(P.tagName,{"aria-labelledby":P.figcaptionId,className:"block-gallery__figure",role:P.role,children:[S&&(0,s.jsx)(BD,{alt:b,cornerRadius:g,disableZoom:!v,height:j,l10nId:(0,pt.pP)(x?.media),labels:u,link:E?.link&&typeof O=="string"?{type:E.link.type,destination:O}:void 0,src:R,width:N}),(o||y)&&(0,s.jsx)("figcaption",{id:P.figcaptionId,children:d(L,y)})]})},L)})})})})})}}const nm=Qg(Gt(zD)),om=ne("block-divider"),rm=({isLearner:t,labels:{numberedDividerGroup:e},number:n,settings:o,type:r="divider"})=>{const{entranceAnimation:a}=o,i=r==="numbered",u=om({authoring:!t,spacing:r==="spacing",numbered:i,"no-animation":!a}).toString(),d=i?(0,s.jsxs)("div",{className:om("wrap__number"),children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:e}),n]}):null;return(0,s.jsx)(kt,{className:u,children:(0,s.jsx)("div",{className:om("wrap",{authoring:!t&&!i}),children:d})})},VD=rm,UD=t=>(0,s.jsx)(rm,{type:"numbered",...t}),$D=t=>(0,s.jsx)(rm,{type:"spacing",...t});var WD=l(52286),GD=l.n(WD),KD=l(54845),Yg=l.n(KD),_D=l(72300),xu=l.n(_D),QD=l(48578),bu=l.n(QD),yu=l(26372);const ZD=30,Xg=ih("blockSettings");class YD extends yu.Component{static defaultProps={blockId:"",blockSettings:{},editable:!1,items:[],lessonId:"",onStep:()=>{}};render(){const{animateBlockEntrance:e,blockId:n,editable:o,initiallyVisible:r,isLearner:a,items:i,labels:c,lessonId:u,onStep:d,settings:m,enableVideoPlaybackSpeed:p}=this.props,{entranceAnimation:f,accordionBehavior:g="keepOpen"}=m,v=Q()("blocks-accordion",{"blocks-accordion--no-animation":!f});return(0,s.jsx)(kt,{className:v,"data-block-id":n,children:(0,s.jsx)(Ot,{animateBlockEntrance:e,duration:.75,initiallyVisible:r,isLearner:a,children:(0,s.jsx)("div",{className:"blocks-accordion__container",children:(0,s.jsx)("div",{className:"blocks-accordion__row",children:(0,s.jsx)("div",{className:"blocks-accordion__col",children:(0,s.jsx)(nB,{blockId:n,editable:o,enableVideoPlaybackSpeed:p,items:i,keepOpen:g==="keepOpen",labels:c,lessonId:u,onStep:d,settings:m})})})})})})}}const XD={isOpen:!1,isActive:!1},JD=t=>(e,{id:n})=>Object.assign({},e,{[n]:t[n]||XD}),Jg=(t,e)=>e.reduce(JD(t),{}),qD=(t,e)=>(n,o)=>{const r=t==o,a=r?!n.isOpen:n.isOpen,i=r&&!n.isOpen;return{isOpen:e?a:i,isActive:r}},eB=t=>(e,n)=>{const o=n==t;return{isOpen:o,isActive:o}},tB=t=>(e,n)=>({isOpen:n==t,isActive:e.isActive});class sB extends yu.Component{static defaultProps={blockId:"",blockSettings:{},editable:!1,items:[],keepOpen:!1,lessonId:"",onStep:()=>{}};constructor(e){super(e);const{items:n}=this.props;this.state={itemStatusMap:Jg({},n)},this.handleNavtoTab=this.handleNavtoTab.bind(this)}componentDidMount(){window.addEventListener($t,this.handleNavtoTab)}componentWillUnmount(){window.removeEventListener($t,this.handleNavtoTab)}handleNavtoTab(e){const n=e.detail.path[e.detail.path.indexOf("items")+1]?.id,o=e.detail.path[e.detail.path.lastIndexOf("items")+1]?.id;if(n===this.props.blockId){const r=this.props.items.findIndex(({id:m})=>m===o),{items:a,onStep:i}=this.props,{itemStatusMap:c}=this.state,u=a[r].id,d=eB(u);this.setState({itemStatusMap:ua()(d,c)}),open&&i(a[r])}}UNSAFE_componentWillReceiveProps(e){const n=e.items,o=vs()(n)!==vs()(this.props.items);!e.keepOpen&&this.props.keepOpen?this.updateMapForOneAtATimePreference():o&&this.rebuildItemStatusMap(n)}updateMapForOneAtATimePreference(){const{itemStatusMap:e}=this.state,{items:n}=this.props,o=GD()(a=>e[a.id].isOpen,n);if(!o)return;const r=tB(o.id);this.setState({itemStatusMap:ua()(r,e)})}rebuildItemStatusMap(e){const n=this.state.itemStatusMap;this.setState({itemStatusMap:Jg(n,e)})}handleItemClick(e){const{items:n,keepOpen:o,onStep:r}=this.props,{itemStatusMap:a}=this.state,i=n[e].id,c=qD(i,o);this.setState({itemStatusMap:ua()(c,a)}),open&&r(n[e])}render(){const{items:e,settings:n,editable:o,labels:r,lessonId:a,blockId:i,enableVideoPlaybackSpeed:c}=this.props,{itemStatusMap:u}=this.state,{zoomOnClick:d}=n,m=Object.values(u)?.find(p=>p.isOpen)?"open":"closed";return(0,s.jsx)("div",{className:"blocks-accordion__wrapper","data-accordion-status":m,children:e.map((p,f)=>(0,s.jsx)(rB,{blockId:i,disableZoom:!d,editable:o,focused:u[p.id].isActive,index:f,item:{...p,enableVideoPlaybackSpeed:c},labels:r,lessonId:a,onClick:this.handleItemClick.bind(this,f),open:u[p.id].isOpen},p.id))})}}const nB=Xg(sB);class oB extends yu.Component{static get defaultProps(){return{editable:!1,getL10nValue:()=>{},onClick:()=>{},lessonId:"",blockId:"",open:null}}id;content;constructor(e){super(e),this.id=xu()(),this.toggle=this.toggle.bind(this),this.renderDescription=this.renderDescription.bind(this),this.renderTitle=this.renderTitle.bind(this)}componentDidUpdate(e){if(!this.props.open)return;const n=this.content;if(n&&(n.classList.add("blocks-accordion__content--visible"),!e.open&&this.props.open)){const o=n.parentElement,r=o?.getBoundingClientRect()?.top,a=r!=null&&r>0&&r<window.innerHeight,i=dn()?"instant":"smooth";a||o.scrollIntoView({behavior:i,block:"start"})}}toggle(e){const{blockId:n,index:o}=this.props,r=st.playerId,a=new RegExp(`-${o}(?:-.+)?$`);open&&r&&r.includes(n.toString())&&a.test(r)&&st.pause(),this.props.onClick(),e.preventDefault()}renderTitle(e){const{title:n}=this.props.item;return(0,s.jsx)(Tt,{className:"blocks-accordion__title",id:e,value:n})}renderDescription(e){const{description:n=""}=this.props.item;return(0,s.jsx)(ls,{className:"blocks-accordion__description",value:n||""},e)}render(){const{blockId:e,blockSettings:n,editable:o,disableZoom:r,getL10nValue:a,index:i,item:c,focused:u,labels:d,lessonId:m,open:p,renderDescription:f=this.renderDescription,renderTitle:g=this.renderTitle}=this.props,{settings:v={},enableVideoPlaybackSpeed:C}=c,x=a(c.media)??{},L=ao(x,n.audioPosition),y=Object.assign({},v,{disableZoom:r,fullEmbed:!0}),E=n?.backgroundType===M.xj.ACCENT||n?.backgroundType===M.xj.IMAGE,b=Q()("blocks-accordion__item",{"blocks-accordion__item--closed":!p}),S=Q()("blocks-accordion__header",{"blocks-accordion__header--editing":o,"brand--border":p&&u&&!E}),T=Q()("blocks-accordion__content",{"blocks-accordion__content--will-enter":p,"brand--border":p&&u&&!E}),N=`title-${this.id}`,j=`panel-${this.id}`,R=n?.headingLevel,O=R?`h${R}`:"h2";let P=(0,s.jsxs)("button",{"aria-controls":j,"aria-expanded":p,className:S,onClick:this.toggle,onKeyDown:!o&&tf(this.toggle)||void 0,type:"button",children:[g(N),(0,s.jsx)("span",{className:"blocks-accordion__toggler-wrap",children:(0,s.jsx)(ct,{className:"blocks-accordion__toggler",name:p?"minus":"plus"})})]});return o&&(P=(0,s.jsxs)("div",{className:S,children:[g(N),(0,s.jsx)("button",{"aria-controls":j,"aria-expanded":p,"aria-label":p?"Close":"Open",className:"blocks-accordion__toggler-wrap",onClick:this.toggle,type:"button",children:(0,s.jsx)(ct,{className:"blocks-accordion__toggler",name:p?"minus":"plus"})})]})),(0,s.jsxs)(ws,{className:b,tag:"section",children:[(0,s.jsx)("div",{className:"blocks-accordion__header-wrap",children:(0,s.jsx)(O,{children:P})}),(0,s.jsx)("section",{"aria-labelledby":N,className:T,id:j,ref:A=>{this.content=A},children:L.renderOrder.map((A,F)=>{if(A==="text")return f(`text-${F}`);const w={blockId:e,hasPadding:!1,imageMaxHeight:1e3,item:c,labels:d,lessonId:m,enableVideoPlaybackSpeed:C,opts:y},D=am(x),V=D==="image-with-audio",_=V?"left":"center",q={audio:{media:L.audioOnlyMedia||x,isOverlayAudio:!1,index:`${e}-${i}-audio`,className:"blocks-accordion__audio"},image:{media:L.imageOnlyMedia||x,isOverlayAudio:!1,index:`${e}-${i}-image`,className:Q()(`blocks-accordion__${D}`,{[`blocks-accordion__${D}--${_}`]:V})},video:{media:L.videoOnlyMedia||x,isOverlayAudio:!1,index:`${e}-${i}-video`,className:Q()(`blocks-accordion__${D}`,{[`blocks-accordion__${D}--${_}`]:V})},embed:{media:L.embedOnlyMedia||x,isOverlayAudio:!1,index:`${e}-${i}-embed`,className:Q()(`blocks-accordion__${D}`,{[`blocks-accordion__${D}--${_}`]:V})},overlay:{media:x,isOverlayAudio:!0,index:`${e}-${i}-overlay`,className:Q()(`blocks-accordion__${D}`,{[`blocks-accordion__${D}--${_}`]:V})}}[A];if(!q)return null;const{className:fe,...ye}=q;return(0,s.jsx)("div",{className:Q()(fe,{"audio-on-top":this.props.blockSettings.audioPosition==="top"}),children:(0,s.jsx)("div",{className:"blocks-accordion__figure",children:(0,s.jsx)(zs,{...w,...ye})})},`${A}-${F}`)})})]})}getMediaContainerClasses(e,n){const o=this.props.getL10nValue(this.props.item.media)??{},r=am(o),a=r==="image-with-audio",i=a&&!Array.isArray(o)?o?.image?.align:"left";return Q()("blocks-accordion__media",`blocks-accordion__${r}`,{[`blocks-accordion__${r}--${i}`]:a,"blocks-accordion__media-container":e,"blocks-accordion__media-container--audio-overlay":n})}}const rB=Xg(Gt(t=>(0,s.jsx)(oB,{...t}))),am=t=>{const{image:e,embed:n,video:o,audio:r}=t;return e&&!r?"image":n&&!r?"embed":o?"video":r&&!e&&!n?"audio":e&&r?"image-with-audio":r&&n?"audio-and-embed":"image"};class aB extends yu.Component{static get defaultProps(){return{items:[],activeIndex:0,getL10nValue:()=>{},lessonId:"",blockId:"",blockSettings:{},onStep:Function.prototype}}tabs;id;tabResize;tabScroll;arrowNextEl;arrowPrevEl;container;tabControls;tabsHeaderEl;constructor(e){super(e),this.renderDescription=this.renderDescription.bind(this);const n=this.props.activeIndex;this.state={activeIndex:n,activeTouch:!1,activeMouse:!1},this.tabs=[],this.id=xu()(),this.handleNavtoTab=this.handleNavtoTab.bind(this)}componentDidMount(){this.handleControls(),window.addEventListener("resize",this.tabResize=bu()(this.handleControls.bind(this),100)),window.addEventListener($t,this.handleNavtoTab),this.tabsHeaderEl?.addEventListener("scroll",this.tabScroll=bu()(this.handleControls.bind(this),50))}handleNavtoTab(e){const n=e.detail.path[e.detail.path.indexOf("items")+1]?.id,o=e.detail.path[e.detail.path.lastIndexOf("items")+1]?.id;n===this.props.blockId&&(this.tabsHeaderEl.scrollIntoView({behavior:"smooth",block:"start"}),this.setState({activeIndex:this.props.items.findIndex(({id:r})=>r===o)},()=>{dh(this.tabsHeaderEl,"start")||this.tabsHeaderEl.scrollIntoView({behavior:"instant",block:"start"})}))}componentDidUpdate(){this.handleControls()}componentWillUnmount(){this.tabsHeaderEl?.removeEventListener("scroll",this.tabScroll),window.removeEventListener("resize",this.tabResize),window.removeEventListener($t,this.handleNavtoTab)}setActive(e){this.setState({activeIndex:e});const{blockId:n}=this.props,o=st.playerId;this.state.activeIndex!=e&&o&&o.includes(n.toString())&&st.pause(),this.props.onStep?.(this.props.items[e])}handleControls(){const{isRTL:e}=this.props;this.tabsHeaderEl.offsetWidth===this.tabsHeaderEl.scrollWidth?(this.arrowPrevEl.classList.add("hidden"),this.arrowNextEl.classList.add("hidden"),this.tabControls.classList.add("start"),this.tabControls.classList.add("end")):(this.tabsHeaderEl.scrollLeft===0?(this.arrowPrevEl.classList.add("hidden"),this.tabControls.classList.add("start")):(this.arrowPrevEl.classList.remove("hidden"),this.tabControls.classList.remove("start")),this.tabsHeaderEl.scrollLeft===(this.tabsHeaderEl.scrollWidth-this.tabsHeaderEl.offsetWidth)*(e?-1:1)?(this.arrowNextEl.classList.add("hidden"),this.tabControls.classList.add("end")):(this.arrowNextEl.classList.remove("hidden"),this.tabControls.classList.remove("end")))}handleMouseEnter(){this.state.activeTouch||this.setState({activeMouse:!0})}handleMouseLeave(){this.setState({activeMouse:!1})}handleTouchStart(){this.setState({activeTouch:!0})}scrollTabs(e){const{isRTL:n}=this.props,o=this.tabsHeaderEl.offsetWidth,r=this.tabsHeaderEl.scrollLeft,i=(e==="next"?n?Yg():wh():n?wh():Yg())(r,o*.8);this.tabsHeaderEl.scrollTo({left:i,behavior:"smooth"})}arrowPrevInset(e){const n=this.arrowPrevEl.getBoundingClientRect(),o=n.right-e,r=n.left-e;return o+r}focusTab(e){e.currentTarget?.scrollIntoView({behavior:"smooth",block:"nearest"})}handleTabKeyDown(e,n){const{isRTL:o}=this.props;let r=!1,a;br(n)?(r=!0,a=o?e+1>this.tabs.length-1?0:e+1:e-1>=0?e-1:this.tabs.length-1):yr(n)&&(r=!0,a=o?e-1>=0?e-1:this.tabs.length-1:e+1>this.tabs.length-1?0:e+1),r&&n.preventDefault(),a!=null&&(this.tabs[a]?.focus(),this.setActive(a))}renderHeader(e,n){const{activeIndex:o,activeTouch:r,activeMouse:a}=this.state,i=this.tabsHeaderEl&&this.tabsHeaderEl.scrollWidth>this.tabsHeaderEl.clientWidth,c=Q()("blocks-tabs__header-wrap",{touch:r,mouse:a&&i});return(0,s.jsxs)("div",{className:c,onMouseEnter:this.handleMouseEnter.bind(this),onMouseLeave:this.handleMouseLeave.bind(this),onTouchStart:this.handleTouchStart.bind(this),children:[(0,s.jsx)("div",{className:"blocks-tabs__header",ref:u=>{this.tabsHeaderEl=u},role:rk,children:e.map(({title:u},d)=>{const m=e.length===1||d===o,p=e.length>1&&d+1===o,f=e.length>1&&d-1===o,g=Q()("blocks-tabs__header-item",{"brand--color":m&&!n,"blocks-tabs__header-item--active":m,"blocks-tabs__header-item--before-active":p,"blocks-tabs__header-item--after-active":f}),v=`tab-${this.id}-${d}`,C=`tabpanel-${this.id}-${d}`;return(0,s.jsx)("button",{"aria-controls":C,"aria-selected":m,className:g,id:v,onClick:this.setActive.bind(this,d),onFocus:this.focusTab.bind(this),onKeyDown:this.handleTabKeyDown.bind(this,d),ref:x=>{this.tabs[d]=x},role:ik,tabIndex:m?void 0:-1,type:"button",children:(0,s.jsx)(Tt,{value:u})},v)})}),(0,s.jsxs)("div",{className:"blocks-tabs__controls",ref:u=>{this.tabControls=u},children:[(0,s.jsx)("div",{"aria-hidden":"true",className:"blocks-tabs__arrow blocks-tabs__arrow--prev brand--background",onClick:this.scrollTabs.bind(this,"previous"),ref:u=>{this.arrowPrevEl=u},children:(0,s.jsx)(ct,{className:"blocks-tabs__arrow-icon",name:"chevron-right-solid"})}),(0,s.jsx)("div",{"aria-hidden":"true",className:"blocks-tabs__arrow blocks-tabs__arrow--next brand--background",onClick:this.scrollTabs.bind(this,"next"),ref:u=>{this.arrowNextEl=u},children:(0,s.jsx)(ct,{className:"blocks-tabs__arrow-icon blocks-tabs__arrow-icon--next",name:"chevron-right-solid"})})]})]})}renderDescription({description:e}){return(0,s.jsx)(ls,{className:"blocks-tabs__description",value:e})}renderItem(e,n,o){const{blockId:r,getL10nValue:a,labels:i,lessonId:c,renderDescription:u=this.renderDescription}=this.props,{activeIndex:d}=this.state,m=d===n,{settings:p={},enableVideoPlaybackSpeed:f}=e,g=a(e.media)??{},v=ao(g,this.props.settings.audioPosition,!1),C=Q()("blocks-tabs__content-item",{"blocks-tabs__content-item--active":m}),x=Object.assign({},p,{disableZoom:o,fullEmbed:!0}),L=`tabpanel-${this.id}-${n}`,y=`tab-${this.id}-${n}`,E=am(g),b=E==="image-with-audio",S=E==="audio-and-embed",T=b?g?.image?.align:"left",N=S?"embed-border":void 0;return(0,s.jsx)("div",{"aria-labelledby":y,className:C,id:L,role:ak,tabIndex:m?0:void 0,children:v.renderOrder.map((j,R)=>{if(j==="text")return(0,s.jsx)("div",{className:"blocks-tabs__description",children:u(e)},`text-${R}`);const O={blockId:r,embedClass:N,hasPadding:!1,imageMaxHeight:1e3,item:e,labels:i,lessonId:c,enableVideoPlaybackSpeed:f,opts:x},A={audio:{media:v.audioOnlyMedia||g,isOverlayAudio:!1,index:`${r}-${n}-audio`,className:"blocks-tabs__audio"},image:{media:v.imageOnlyMedia||g,isOverlayAudio:!1,index:`${r}-${n}-image`,className:Q()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${T}`]:b})},video:{media:v.videoOnlyMedia||g,isOverlayAudio:!1,index:`${r}-${n}-video`,className:Q()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${T}`]:b})},embed:{media:v.embedOnlyMedia||g,isOverlayAudio:!1,index:`${r}-${n}-embed`,className:Q()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${T}`]:b})},overlay:{media:g,isOverlayAudio:!0,index:`${r}-${n}-overlay`,className:Q()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${T}`]:b})}}[j];if(!A)return null;const{className:F,...w}=A;return(0,s.jsx)("div",{className:Q()(F,{"audio-on-top":this.props.settings.audioPosition==="top"}),children:(0,s.jsx)("div",{className:"blocks-tabs__figure",children:(0,s.jsx)(zs,{...O,...w})})},`${j}-${R}`)})},L)}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,items:r,settings:a,enableVideoPlaybackSpeed:i}=this.props,{backgroundType:c,cardMode:u,entranceAnimation:d,zoomOnClick:m}=a,p=Q()("blocks-tabs",{"blocks-tabs--no-animation":!d}),f=r.length>0?r.slice(0,ZD):[],g=u===Dn.TRANSPARENT&&(c===M.xj.ACCENT||c===M.xj.IMAGE),v=Q()("blocks-tabs__container",{"blocks-tabs--single":f.length===1});return(0,s.jsx)(kt,{className:p,children:(0,s.jsx)(Ot,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:(0,s.jsx)("div",{className:v,children:(0,s.jsx)("div",{className:"blocks-tabs__row",children:(0,s.jsx)("div",{className:"blocks-tabs__col",children:(0,s.jsx)("div",{className:"blocks-tabs__wrapper",ref:C=>{this.container=C},children:(0,s.jsxs)(ws,{children:[this.renderHeader(f,g),(0,s.jsx)("div",{className:"blocks-tabs__content",children:f.map((C,x)=>this.renderItem({...C,enableVideoPlaybackSpeed:i},x,!m))})]})})})})})})})}}const iB=Jh(Gt(t=>(0,s.jsx)(aB,{...t}))),lB=Lt()(null,["payload","result"]),cB=t=>{if(t.meta?.thumbnail)return`${t.contentPrefix}/${t.meta.thumbnail}`},dB=t=>t.meta?.version,qg=t=>t.src??null,uB=t=>t.processing,hB=Qt()(["payload","result","completion"]),mB=Lt()(!1,["payload","result","score"]),pB=sa()((t,e)=>{if(!e)return!1;const{majorLimit:n,minorLimit:o}=t,[r,a]=e.split("."),i=parseInt(r)===n&&Number(a)>=o;return Number(r)>n||i}),fB={mobile:"?forcemobile=1&devicepreview=1&phone=1&rise=true",tablet:"?forcemobile=1&devicepreview=1&rise=true"},vB=t=>{const e=sn()(t.split("-"));return fB[e]},gB=pB({majorLimit:3,minorLimit:13}),CB=(t,e,n,o)=>{const r=e&&vB(n),a=r?`${t}${r}`:`${t}?rise=true`;if(o){const i=a.includes("?")?"&":"?";return`${a}${i}locale=${o}`}return a};var xB=l(26372);class bB extends xB.Component{constructor(e){super(e),this.state={fullscreen:!1,reopenMenu:!1},this.iframe=null,this.canFullscreen=this.canFullscreen.bind(this),this.handleCourseUpdate=this.handleCourseUpdate.bind(this),this.handleFullscreenEnter=this.handleFullscreenEnter.bind(this),this.handleFullscreenExit=this.handleFullscreenExit.bind(this),this.handleMessages=this.handleMessages.bind(this),this.renderItem=this.renderItem.bind(this)}iframe;static get defaultProps(){return{getL10nValue:()=>{},isLesson:!1,onStep:Function.prototype,hasManySlBlocks:Function.prototype,previewType:""}}UNSAFE_componentWillMount(){window.addEventListener("message",this.handleMessages)}componentWillUnmount(){window.removeEventListener("message",this.handleMessages)}componentDidMount(){const{getL10nValue:e,items:n,onStep:o}=this.props,r=sn()(n),a=e(r?.media)?.storyline??{},i=dB(a);gB(i)||o(r)}canFullscreen(e){const{blockId:n,hasManySlBlocks:o}=this.props,{windowName:r}=e;return n===r||!o()}handleMessages(e){const{data:n}=e,{type:o}=n,r={"fullscreen:enter":this.handleFullscreenEnter,"fullscreen:exit":this.handleFullscreenExit,"course:update":this.handleCourseUpdate}[o];r&&r(n)}handleCourseUpdate(e){const{items:n,onStep:o,blockId:r}=this.props,a=sn()(n),{windowName:i}=e;if(r===i&&hB(e)){const{score:c,success:u}=lB(e);if(mB(e)){const d=c.scaled*100;(0,Je.jr)(r,u,!0,d)}else(0,Je.jr)(r,!0,!1);o(a)}}handleFullscreenEnter(e){const{menuOpen:n,handleStorylineFullscreen:o}=this.props;this.canFullscreen(e)&&(n&&o(!0),this.setState({fullscreen:!0,reopenMenu:n}))}handleFullscreenExit(e){const{handleStorylineFullscreen:n}=this.props,{reopenMenu:o}=this.state;this.canFullscreen(e)&&(o&&n(!1),this.setState({fullscreen:!1,reopenMenu:!1}))}render(){const{animateBlockEntrance:e,getL10nValue:n,initiallyVisible:o,isLesson:r,isLearner:a,isOnlyBlockInStep:i,items:c,labels:{a11yBlockStoryline:u},settings:d,takingSnapshot:m}=this.props,p=sn()(c),f=n(p?.media)?.storyline??{},{mediaWidth:g="0"}=d,v=i?{}:{display:r&&!qg(f)?"none":"block"},C=Q()("blocks-storyline__wrapper",{"blocks-storyline__wrapper--small":g==="0","blocks-storyline__wrapper--medium":g==="1","blocks-storyline__wrapper--full":g==="2","blocks-storyline__wrapper--snapshot":m});return(0,s.jsx)(kt,{className:"blocks-storyline",style:v,children:(0,s.jsx)(Ot,{animateBlockEntrance:e,initiallyVisible:o,isLearner:a,children:(0,s.jsx)("div",{"aria-label":u,className:C,role:"group",children:m?this.renderThumbnail(f):this.renderStorylineBlock(f)})})})}renderStorylineBlock(e){return uB(e)?this.renderProcessing():qg(e)?this.renderItem(e):this.renderEmpty()}renderThumbnail(e){const n=cB(e),o=`${(0,$e._$)("CDN_USER_CONTENT_URI")}/${n}`;return(0,s.jsx)("img",{alt:"Thumbnail",src:o})}renderEmpty(){const{renderEmpty:e}=this.props;return typeof e=="function"?e():null}renderItem(e){const{fullscreen:n}=this.state,{blockId:o,currentLocale:r,isLesson:a,previewType:i,settings:c}=this.props,{cornerRadius:u}=c,{src:d,meta:m,title:p}=e,{player:f}=m,g=CB(d,a,i,r),C={paddingBottom:`${f.height/f.width*100}%`,...u!=null&&{"--corner-radius":`${Number(u)}px`}},x=Q()("blocks-storyline__item__iframe",{"blocks-storyline__item__iframe--fullscreen":n});return(0,s.jsx)("div",{className:"blocks-storyline__item",style:C,children:(0,s.jsx)("iframe",{allowFullScreen:!0,allowtransparency:"true",className:x,loading:"lazy",name:o.toString(),ref:L=>{this.iframe=L},src:(0,$e.o1)(g),title:p})})}renderProcessing(){const{renderProcessing:e}=this.props;return typeof e=="function"?e():null}}const yB=(0,rt.wZ)(Gt(bB));var e3=l(26372);const Lu=ne("blocks-button"),t3=M.zV,LB=({description:t})=>(0,s.jsx)(Tt,{className:Lu("description"),value:t}),EB=({color:t,destination:e,editBlock:n,handleNavigate:o,isEditable:r,label:a,type:i})=>{const c=(0,xe.d_)(),u=(0,xe.DX)()?.externalLinksDisabled,d=(0,xe.DX)()?.theme,m=(0,xe.kJ)(),{mode:p}=(0,ie.g)(),f=Ys(),g=(0,xe.vU)(),v=(0,nt.QQ)(e),C=(0,da.htmlDecode)((0,Eo.QZ)((0,nt.QQ)(a))),x=i==="email",L=i==="exit-course",y=i==="lesson",E=i==="relative-url",b=Lu("button"),S=!t||t===""||t===m,T=t??m,N={},j=(0,xe.Ge)(m),R=S&&d?.accentContrast===M.Em.AUTO?M.Em.AUTO:j,O=f?.buttonColorContrast??R,P=f?.buttonRadius??null,A=f?.buttonWidth??null,F=Rs({backgroundColor:T,contrast:O});Object.assign(N,{...!S&&{"--color-button-bg":T},...!S&&{"--color-button-text":F},...!S&&{"--color-button-border":"transparent"},...P!=null&&{"--radius-button":`${Number(P)}px`},...A!=null&&{"--width-button":`${Number(A)}rem`}});const w=u&&Pn(v),{handleMouseEnter:D,handleMouseLeave:V,handleFocus:_,handleBlur:ee}=gd(),q=e3.useId(),fe=(0,h.useCallback)(()=>{if(r)n();else{if(w)return;if(L)return(0,$e.NS)()}},[n,w,r,L]),ye=(0,h.useCallback)(()=>{o(v)},[v,o]);if(r||w||L){const Ie=(0,s.jsx)("button",{"aria-label":C,className:b,id:w?q:void 0,onBlur:w?()=>ee(q):void 0,onClick:fe,onFocus:w?()=>_(q):void 0,onKeyDown:tf(fe),onMouseEnter:w?()=>D(q):void 0,onMouseLeave:w?()=>V(q):void 0,style:N,tabIndex:Vd,type:"button",children:C});return w?(0,s.jsxs)(s.Fragment,{children:[Ie,(0,s.jsx)(Cd,{anchorId:q})]}):Ie}else if(y){const Ie=p?`/${p}`:"",we=`/lessons/${v}${Ie}`,Ve=v===""?"#":we;return(0,s.jsx)(Ln,{"aria-label":C,className:b,onClick:ye,style:N,to:Ve,children:C})}else{const Ie=E?v:Nn(v),we=x?`mailto:${v}?subject=${c}`:Ie,Ve=rn.isIphoneSafari?"_top":"_self",Me=x?Ve:"_blank",Ae=Me==="_blank",me=Ae?"noopener noreferrer nofollow":void 0,ue=g?.a11yNoticeLinkNewTab||"(opens in a new tab)",Be=Ae?`${C} ${ue}`:C;return(0,s.jsx)("a",{"aria-label":Be,className:b,href:we,rel:me,style:N,tabIndex:Vd,target:Me,children:C})}},s3=t=>{const{animateBlockEntrance:e,editable:n,editBlock:o=()=>{},handleNavigate:r,initiallyVisible:a,isLearner:i,items:c=[],renderDescription:u=LB,settings:d}=t,{buttonAlignment:m=M.Ht,buttonColor:p,buttonShowDescription:f=!0,buttonStack:g,entranceAnimation:v}=d,C=Lu(null,{"no-animation":!v,description:f==!0,center:m==="center",left:m==="left",right:m==="right",rounded:t3==="rounded"}),x=c?.map(({id:L,description:y,...E})=>{const b=(0,s.jsx)(EB,{...E,color:p,editBlock:o,handleNavigate:r,isEditable:n}),S=f&&u({id:L,description:y});return(0,s.jsx)("section",{className:Lu("container"),children:m==="left"&&f?(0,s.jsxs)(s.Fragment,{children:[b,S]}):(0,s.jsxs)(s.Fragment,{children:[S,b]})},L)})??null;if(g){const{paddingBottom:L,paddingTop:y}=d,E={...y!=null&&{paddingTop:`${Number(y)}rem`},...L!=null&&{paddingBottom:`${Number(L)}rem`}};return(0,s.jsx)("div",{className:C.toString(),style:E,children:x})}return(0,s.jsx)(kt,{className:C.toString(),children:(0,s.jsx)(Ot,{animateBlockEntrance:e,animateIn:"fadeIn",initiallyVisible:a,isLearner:i,children:(0,s.jsx)("div",{className:"blocks-button",children:x})})})},SB=s3;class TB extends e3.Component{renderButtonDelegate;constructor(e){super(e),this.renderButtonDelegate=this.renderButton.bind(this)}static get defaultProps(){return{items:[],lessonId:"",blockId:"",editBlock:()=>{}}}renderButton(e,n){const{blockId:o,editable:r,editBlock:a,handleNavigate:i,isLearner:c,lessonId:u,initiallyVisible:d}=this.props;return(0,s.jsx)(s3,{animateBlockEntrance:!1,blockId:o,editable:r,editBlock:a,handleNavigate:i,initiallyVisible:d,isLearner:c,items:[e],lessonId:u,settings:n,type:"right"})}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,items:r,settings:a,renderButton:i=this.renderButtonDelegate}=this.props,{entranceAnimation:c,buttonShowDescription:u=!0,buttonAlignment:d=M.Ht,buttonSpacing:m=3}=a,p=Q()("blocks-buttonstack",{"blocks-buttonstack--no-animation":!c,"blocks-button--description":u==!0,"blocks-button--center":d==="center","blocks-button--left":d==="left","blocks-button--right":d==="right","blocks-button--rounded":t3==="rounded"});return(0,s.jsx)(kt,{className:p,children:(0,s.jsx)(Ot,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:r.map((f,g)=>{const v=g===0,C={buttonColor:a.buttonColor||this.props.color,buttonStyle:a.buttonStyle,buttonStack:!0,buttonShowDescription:u,buttonAlignment:d,...v?{}:{paddingTop:m}};return(0,s.jsx)(h.Fragment,{children:i(f,C)},f.id)})})})}}var IB=l(95758),NB=l.n(IB);const jB=pr()("partner-content-block-card__"),kB=t=>{const{backgroundColor:e,blockId:n,courseId:o,partnerContent:r,publishedAt:a,tenantId:i}=t,{data:c,type:u}=r,{authors:d,bookImage:m,bookTitle:p,buyLink:f,internalId:g,nbicLink:v}=c,C={blockId:n,courseId:o,partnerContentId:g,tenantId:i,contentSubtype:u};return(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"More Info"}),(0,s.jsxs)("ol",{className:"partner-content-block-card",role:"list",children:[(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(G2,{authors:d,backgroundColor:e,block:!0,bookImage:m,bookTitle:p,buyLink:f,publishedAt:a,trackingInfo:C})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)("div",{className:jB("divider")})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(K2,{backgroundColor:e,block:!0,link:v,publishedAt:a,trackingInfo:C})})]})]})};var Eu=l(26372);const Su=ne("block-audio"),tr=ne("block-video"),im=ne("block-embed"),kn=ne("block-attachment");class AB extends Eu.Component{renderCaptionDelegate;constructor(e){super(e),this.renderCaptionDelegate=this.renderCaption.bind(this),this.onLoad=this.onLoad.bind(this),this.state={loaded:!1}}static get defaultProps(){return{audioVideoPlayhead:0,blockId:"",getL10nValue:()=>{},editable:!1,items:[],lessonId:"",onStep:()=>{},recordMediaPlayheadPosition:()=>{}}}renderCaption({caption:e}){const{loaded:n}=this.state,o=Su("caption",{hidden:!n}).toString();return(0,s.jsx)(ls,{className:o,value:e})}onLoad(){this.setState({loaded:!0})}renderItem(e){const{blockId:n,getL10nValue:o,labels:r,lessonId:a,loadMedia:i,progress:c,recordMediaPlayheadPosition:u,renderCaption:d=this.renderCaptionDelegate,settings:m}=this.props,p="forwardSeekRestricted"in m?m.forwardSeekRestricted:!1,f=e.media,g=o(f)??{},{id:v}=e,C=g?.tmp?.audio?.key||g?.audio?.key,x=`${a}-${n}-${v}`,L=Lt()(0,["items",n,"items",v,"audioVideoPlayhead"],c),y=Yh({lessonId:a,refs:`items:${n}/items:${v}`});return(0,s.jsxs)("div",{className:Su("item"),children:[i&&(0,s.jsx)(Rg,{audioVideoPlayhead:L,canRestrictSeek:!!p,id:x,item:e,labels:r,mediaSrc:C,onAIUploadFinish:this.props.onAIUploadFinish,onEnd:this.handleOnEnd.bind(this,v),onLoad:this.onLoad,onTranscriptClick:this.onTranscriptClick.bind(this,e),onTranscriptClose:this.props.closeTranscript,recordMediaPlayheadPosition:u,refs:`items:${n}/items:${v}`,transcriptMedia:f,uploadId:y},x),d(e)]},v)}handleOnEnd(e){this.props.onStep({id:e})}onTranscriptClick(e){const{blockId:n}=this.props;return this.props.openTranscript?.({blockId:n,item:e,refs:`items:${n}/items:${e.id}`})}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,items:r,settings:a}=this.props,{entranceAnimation:i}=a,c=Su({"no-animation":!i}).toString(),u=r.length>0?r.slice(0,1):[];return(0,s.jsx)(kt,{className:c,children:(0,s.jsx)(Ot,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:(0,s.jsx)("div",{className:Su("wrapper"),children:u.map(d=>this.renderItem(d))})})})}}const RB=Lv(Gt(AB));class PB extends Eu.Component{renderCaptionDelegate;constructor(e){super(e),this.renderCaptionDelegate=this.renderCaption.bind(this),this.onVideoLoad=this.onVideoLoad.bind(this),this.state={loaded:!1}}static get defaultProps(){return{audioVideoPlayhead:0,items:[],editable:!1,lessonId:"",blockId:"",onStep:()=>{},partnerContent:[],getL10nValue:()=>{}}}onVideoLoad(){this.setState({loaded:!0})}renderVideo(e){const{blockId:n,enableVideoPlaybackSpeed:o,isDragPreview:r,isSidebarPreview:a,labels:i,progress:c,recordMediaPlayheadPosition:u,settings:d,takingSnapshot:m,type:p}=this.props,f="forwardSeekRestricted"in d?d.forwardSeekRestricted:!1,{captions:g,captionUID:v,id:C,key:x,poster:L,subtitle:y}=e,E=x||e.src,b=Lt()(0,["items",n,"items",C,"audioVideoPlayhead"],c),S=m||r||a,T=S?`${e.keyId}-preview`:e.keyId,N=(0,s.jsxs)("div",{className:tr("poster-container"),children:[(0,s.jsx)(Tn,{alt:"Video Poster",className:tr("poster"),src:L}),(0,s.jsx)("div",{className:tr("play-overlay"),children:(0,s.jsxs)("svg",{className:tr("play-icon"),fill:"currentColor",height:"80",viewBox:"0 0 24 24",width:"80",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",fill:"rgba(0,0,0,0.6)",r:"12"}),(0,s.jsx)("polygon",{fill:"white",points:"10,8 10,16 16,12"})]})})]}),j=(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:tr("placeholder")})}),R=(0,s.jsx)("div",{children:(0,s.jsx)(zg,{audioVideoPlayhead:b,canAdjustPlaybackSpeed:o,canRestrictSeek:!!f,captions:g,captionUID:v,id:T,labels:i,onLoad:this.onVideoLoad,poster:L,progressChanged:this.handleProgressChanged.bind(this,C),recordMediaPlayheadPosition:u,settings:d,src:E,subtitle:y,type:x?"video":p},T)});return S?N:E?R:j}renderCaption({caption:e}){const{isDragPreview:n,isSidebarPreview:o}=this.props,{loaded:r}=this.state,i=tr("caption",{visible:r||n||o}).toString();return(0,s.jsx)(ls,{className:i,value:e})}renderItem(e){const{courseId:n,currentLocale:o,lessonId:r,blockId:a,isDragPreview:i,isSidebarPreview:c,loadMedia:u,partnerContent:d,publishedAt:m,settings:p,tenantId:f,renderCaption:g=this.renderCaptionDelegate,getL10nValue:v}=this.props,{loaded:C}=this.state,L=C||(i||c),y=p.backgroundColor,E=p.mediaWidth??"1",{id:b,media:S}=e,T="partnerContentId"in e?e.partnerContentId:void 0,N=v(S)??{},{customVideo:j={},tmp:R={},video:O={}}=N,P=Pl()("poster",O)?O:Yo()(O,j),A=Pl()("poster",R.video||{})&&R.video,{captionUID:F,captions:w,key:D,poster:V,src:_,subtitle:ee}=(0,$e.Hm)()?P:A||P,q=`${r}-${a}-${b}-${o}`,fe={captionUID:F,captions:w,id:b,key:D,keyId:q,partnerContentId:T,poster:V,src:_,subtitle:ee},ye=ys()(It()("id",T),d)||{},Ie=ye&&!rs()(ye),we=tr("item",{small:E==="0",medium:E==="1",full:E==="2"});return(0,s.jsxs)("div",{className:we,children:[(0,s.jsxs)("figure",{"data-l10n-id":S?.l10nId,children:[u&&this.renderVideo(fe),L&&(0,s.jsx)("figcaption",{className:tr("wrapper"),children:g(e)})]}),Ie&&(0,s.jsx)(kB,{backgroundColor:y,blockId:a,courseId:n,partnerContent:ye,publishedAt:m,tenantId:f})]},b)}handleProgressChanged(e,{percentComplete:n}){n>=100&&this.props.onStep({id:e})}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,items:r,settings:a}=this.props,{entranceAnimation:i}=a,c=tr({"no-animation":!i}).toString(),u=r.length>0?r.slice(0,1):[];return(0,s.jsx)(kt,{className:c,children:(0,s.jsx)(Ot,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:u.map(d=>this.renderItem(d))})})}}const lm=(0,rt.wZ)(Gt(PB));class wB extends Eu.Component{static get defaultProps(){return{items:[],editable:!1,lessonId:"",blockId:"",settings:{}}}renderItem(e,n){const{id:o,settings:r={}}=e,a=this.props.getL10nValue(e.media)??{},i="embed"in a?a.embed:void 0,{loadMedia:c,labels:u,settings:d}=this.props,{showMetaData:m}=r,{cardMode:p,showBorder:f=!0}=d,g=im("item",{border:f}).toString();return(0,s.jsx)(ws,{className:g,disabled:!f&&p==Dn.TRANSPARENT,tag:"section",children:c&&(0,s.jsx)(Hg,{data:i,id:`${n}-${o}`,isLesson:!0,labels:u,showMetaData:m})},o)}render(){const{animateBlockEntrance:e,blockId:n,getL10nValue:o,initiallyVisible:r,isLearner:a,items:i,settings:c}=this.props,{entranceAnimation:u,mediaWidth:d="0"}=c,m=o(i?.[0]?.media);if(!m)return null;const p=HM(m)!=="link",f=im({"no-animation":!u}).toString(),g=im("wrapper",{medium:p&&d==="1",full:p&&d==="2"}),v=i.length>0?i.slice(0,1):[];return(0,s.jsx)(kt,{className:f,children:(0,s.jsx)(Ot,{animateBlockEntrance:e,initiallyVisible:r,isLearner:a,children:(0,s.jsx)("div",{className:g,children:v.map(C=>this.renderItem(C,n))})})})}}const MB=Gt(ih()(wB));class OB extends Eu.Component{get attachment(){const e=this.props.items[0].media;return this.props.getL10nValue(e)?.attachment??{}}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o}=this.props;return(0,s.jsx)(kt,{children:(0,s.jsx)(Ot,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:(0,s.jsx)("div",{className:"block-text--onecol",children:(0,s.jsx)("div",{className:"block-text__container",children:(0,s.jsx)("div",{className:"block-text__row",children:(0,s.jsx)("div",{className:"block-text__col",children:this.renderAttachment(this.attachment)})})})})})})}renderAttachment(e){return e.key?this.renderDownload(e):this.renderNoFile()}renderDownload({key:e,mimeType:n,originalUrl:o,size:r}){const{attachmentId:a,blockId:i,externalLinksDisabled:c,onLinkBlur:u,onLinkFocus:d,onLinkMouseEnter:m,onLinkMouseLeave:p}=this.props,f=(0,$e.o1)(e),g=c?"":void 0,v=c?void 0:f,C=c?void 0:"noopener noreferrer nofollow",x=c?"button":void 0,L=c?0:void 0,y=c?void 0:"_blank",E=kn({}).mix("brandHover").toString(),b=kn("info");return(0,s.jsxs)(ws,{"aria-labelledby":`attachment-name-${i} attachment-icon-${i}`,className:E,"data-external":g,download:o,href:v,id:c?a:void 0,onBlur:c?()=>u?.(a):void 0,onFocus:c?()=>d?.(a):void 0,onMouseEnter:c?()=>m?.(a):void 0,onMouseLeave:c?()=>p?.(a):void 0,rel:C,role:x,tabIndex:L,tag:"a",target:y,children:[(0,s.jsxs)("div",{className:kn("main"),children:[(0,s.jsx)("div",{className:kn("icon"),id:`attachment-icon-${i}`,children:this.fileIcon(n)}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)(Tt,{className:kn("title").toString(),id:`attachment-name-${i}`,value:o}),(0,s.jsx)("div",{className:kn("size").toString(),children:NB()(r,{round:1})})]})]}),(0,s.jsx)("div",{className:kn("rest"),children:(0,s.jsx)(R4,{className:"brandHover__target--fill"})})]})}renderNoFile(){const e=kn({none:!0}).toString(),n=kn("info");return(0,s.jsx)(ws,{className:e,children:(0,s.jsxs)("div",{className:kn("main"),children:[(0,s.jsx)("div",{className:kn("icon"),children:(0,s.jsx)(Dp,{"aria-label":"File"})}),(0,s.jsxs)("div",{className:n,children:[(0,s.jsx)("div",{className:kn("title").toString(),children:"File Attachment Block"}),(0,s.jsx)("div",{className:kn("size").toString(),children:"No file added"})]})]})})}fileIcon(e){const{labels:n}=this.props,o=/excel|spreadsheet/,r=/pdf/,a=/word/,i=/powerpoint|presentation/,c=/rtf|richtext/,u=/zip/;return o.test(e)?(0,s.jsx)(l9,{"aria-label":n?.a11yExcelIcon}):r.test(e)?(0,s.jsx)(r9,{"aria-label":n?.a11yPDFIcon}):a.test(e)?(0,s.jsx)(s9,{"aria-label":n?.a11yWordIcon}):i.test(e)?(0,s.jsx)(a9,{"aria-label":n?.a11yPPTIcon}):c.test(e)?(0,s.jsx)(i9,{"aria-label":n?.a11yRTFIcon}):u.test(e)?(0,s.jsx)(c9,{"aria-label":n?.a11yZipIcon}):(0,s.jsx)(Dp,{"aria-label":n?.a11yFileIcon})}}const DB=vd()({externalLinksDisabled:Qt()(["course","externalLinksDisabled"])});function BB(t){const e=ih()(t),n=Gt(e),o=ux(n);return(0,ks.Ls)(DB)(o)}const HB=BB(OB),sr=ne("block-step"),FB=t=>{const{blockId:e,disableZoom:n,enableVideoPlaybackSpeed:o,isOverlayAudio:r,item:a,labels:i,lessonId:c,lessonNumber:u,mediaType:d,audioPosition:m}=t,{settings:p}=a,f=(0,nt.QQ)(a.media)??{},g=d==="audio"&&f.audio,v=d==="embed"&&f.embed,C=d==="image"&&f.image,x=d==="video"&&f.video;if(!g&&!v&&!C&&!x&&!(d==="image-with-audio"&&r))return;const y=f.embed?fa(f.embed):void 0,E=!!f.image,b=!!f.audio,S=E?f.image.align:"center",T=sr("media",{audio:b&&!r,"audio-and-embed":!!(f.audio&&f.embed),"image-with-audio":r,[`image-with-audio-${S}`]:r&&!!S,"audio-on-bottom":b&&!r&&m==="bottom",linkEmbed:y==="link",videoEmbed:y==="video",visual:!r&&E||!Xs()(f.video)}),N=p||{};return(0,s.jsx)("div",{className:T,children:(0,s.jsx)(zs,{blockId:e,enableVideoPlaybackSpeed:o,index:`${a.id}`,isOverlayAudio:r,item:a,labels:i,lessonId:c,lessonNumber:u,media:f,opts:{disableZoom:n,...N},pauseOnLoad:!0,renderMediaType:r?void 0:d})})},zB=t=>{const{headingLevel:e,innerRef:n,item:o,isActive:r,loadMedia:a,audioPosition:i,onFocus:c,style:u}=t,{id:d}=o,m=sr({active:r}),p=!!o.step,f=!!o.title,g=e||2,v=`h${g}`,C=`h${g+1}`,x=(0,nt.QQ)(o.media)??{},L=ao(x,i,!0,"timeline"),y=()=>{if(!x||!a)return null;const E={audio:{item:{...o,media:L.audioOnlyMedia||x},mediaType:"audio"},image:{item:{...o,media:L.imageOnlyMedia||x},mediaType:"image"},video:{item:{...o,media:L.videoOnlyMedia||x},mediaType:"video"},embed:{item:{...o,media:L.embedOnlyMedia||x},mediaType:"embed"},overlay:{mediaType:"image-with-audio",isOverlayAudio:!0}};return(0,s.jsx)(s.Fragment,{children:L.renderOrder.map((b,S)=>{if(b==="text")return(0,s.jsx)(Tt,{className:sr("description"),value:o.description},`text-${S}`);const T=E[b];return T?(0,h.createElement)(FB,{...t,...T,key:`${b}-${S}`}):null})})};return(0,s.jsx)(kt,{children:(0,s.jsx)("div",{className:m,"data-id":d,ref:n,style:u,children:(0,s.jsx)(ws,{className:sr("body"),onFocus:c,children:(0,s.jsx)("div",{className:sr("main-wrap"),children:(0,s.jsxs)("div",{className:sr("main"),children:[p&&(0,s.jsx)("div",{className:sr("step"),children:(0,s.jsx)(v,{children:(0,s.jsx)(is,{value:o.step})})}),f&&(0,s.jsx)("div",{className:sr("title"),children:(0,s.jsx)(C,{children:(0,s.jsx)(is,{value:o.title})})}),y()]})})})})})},VB=t=>{const{id:e,settings:n,items:o,onEnter:r,enableVideoPlaybackSpeed:a,initiallyVisible:i,isLearner:c,labels:u,lessonId:d}=t,m=o[0],p=n.audioPosition,f=!n.zoomOnClick,g=n.headingLevel,v=(0,h.useCallback)((x,L)=>{r({id:e,payload:{activeIndex:x,itemId:L}})},[e,r]),C=(0,s.jsx)(zB,{audioPosition:p,blockId:e,disableZoom:f,enableVideoPlaybackSpeed:a,headingLevel:g,isActive:!0,item:m,labels:u,lessonId:d,lessonNumber:e,loadMedia:!0,onFocus:v,style:{"--block-step-padding-top":`${n.paddingTop}rem`,"--block-step-padding-bottom":`${n.paddingBottom}rem`}});return c?(0,s.jsx)(Ot,{animateBlockEntrance:!0,className:sr("animate").toString(),initiallyVisible:i,isLearner:!0,children:C}):C},UB=ne("continue-btn"),cm=({href:t,onClick:e,text:n})=>{const o=`${UB()} brand--ui`;return t?(0,s.jsx)(Ln,{className:o,"data-continue-btn":"","data-testid":"continue-btn",onClick:e,to:t,children:(0,s.jsx)(is,{value:n})}):(0,s.jsx)("button",{className:o,"data-continue-btn":"","data-testid":"continue-btn",onClick:e,type:"button",children:(0,s.jsx)(Tt,{value:n})})},n3=({bgType:t,text:e,iconType:n="locked"})=>{const o=Q()("continue-hint",{"continue-hint--bg-transparent":t==="transparent"});return(0,s.jsxs)("div",{className:o,"data-continue-btn":"",children:[n==="locked"&&(0,s.jsx)(ct,{className:"continue-hint__icon",name:"lock-keyhole-light"}),(0,s.jsx)("div",{className:"continue-hint__content",children:(0,s.jsx)(is,{value:e})})]})},dm=ne("block-text");function $B({blockId:t,animateBlockEntrance:e,canContinue:n=!1,isComplete:o,isLearner:r,isLastBlock:a=!1,isOnlyBlockInStep:i,items:c=[],labels:u,onStep:d=()=>{},skipContinue:m=!1,initiallyVisible:p}){const g=(0,h.useRef)(null),v=(0,tt.A)(o),[C,x]=h.useState(!1),{announcePolite:L}=bt(),[y,E]=h.useState(!1),b=Ys(),S=(0,xe.DX)(),T=(0,xe.kJ)(),N=(0,xe.Ge)(T),j=c[0],{id:R,title:O,type:P}=j,A=!P||(m?y:n||i&&o),F=m||!o||i,w=b?.continueColor||T,D=!w||w===T,V=D&&S?.theme?.accentContrast===M.Em.AUTO?M.Em.AUTO:N,_=b?.continueColorContrast??V,ee=b?.continueRadius??null,q=b?.continueWidth??76,fe=Rs({backgroundColor:w,contrast:_}),ye={...!D&&{"--color-button-bg":w},...!D&&{"--color-button-text":fe},...!D&&{"--color-button-border":"transparent"},...ee!=null&&{"--radius-button":`${Number(ee)}px`},...q!=null&&{maxWidth:`${Number(q)}rem`}},Ie=(0,h.useCallback)(()=>{d({id:R}),x(!0),a?setTimeout(()=>{const we=document.querySelector("[data-lesson-id]"),Ve=document.querySelector("main"),Me=document.querySelector("h1.lesson-header__title, .lesson-header__title h1"),Ae=we?.querySelector('.block-wrapper, [role="region"], .lesson-content > *:first-child');let me=null;Me?me=Me:Ae&&Ae!==g.current?.parentElement?me=Ae:we?me=we:Ve&&(me=Ve),me&&(me.setAttribute("tabindex","-1"),me.focus({preventScroll:!0}))},200):setTimeout(()=>{const we=g.current;we&&we.focus()},100)},[R,d,a]);return(0,h.useEffect)(()=>{!v&&o&&(a||setTimeout(()=>{L?.(u?.a11yStatusAdditionalContent)},300))},[L,o,u,v,a]),(0,h.useEffect)(()=>{const we=Ve=>{const{path:Me}=Ve.detail,{blockId:Ae,buttonId:me}=Xa(Ve.detail.path,["block","button"]);if(t==Ae&&me===j.id){const ue=Me.at(-1);ue==="title"?E(!0):ue==="completeHint"&&E(!1)}};return window.addEventListener($t,we),()=>{window.removeEventListener($t,we)}},[t,j.id]),(0,s.jsxs)(s.Fragment,{children:[F&&(0,s.jsx)(kt,{children:(0,s.jsx)(Ot,{animateBlockEntrance:e,initiallyVisible:p,isLearner:r,children:(0,s.jsx)("div",{className:dm("container"),children:(0,s.jsx)("div",{className:dm("row"),children:(0,s.jsxs)("div",{className:dm("continue"),style:ye,children:[A&&(0,s.jsx)(cm,{onClick:Ie,text:O}),!A&&(0,s.jsx)(n3,{text:j.completeHint})]})})})})}),C&&(0,s.jsx)("div",{"aria-live":"off",className:"visually-hidden-always",ref:g,role:"status",tabIndex:-1,children:u?.a11yStatusContinued||"Continued"})]})}var um=l(86115),WB=l(24889),Tu=l.n(WB);const GB=ne("flashcard");class KB extends h.PureComponent{static defaultProps={allowTabNavigation:!0,backType:"description",forceFlipped:!1,frontType:"description",getL10nValue:()=>{},onFlip:Function.prototype,onStep:Function.prototype,settingShowHint:!0};state={areSidesReady:!0,flipped:!1,hasFlippedOnce:!1,isMounted:!1};cardRef=(0,h.createRef)();render(){const{cardRef:e,handleFlip:n,handleSideReady:o,handleTouchEnd:r,props:{activeIndex:a,allowTabNavigation:i,backDescription:c,backMedia:u,backType:d,block:m,forceFlipped:p,frontDescription:f,frontMedia:g,frontType:v,id:C,index:x,isHidden:L,labels:y,lessonId:E,prefersKeyboardNavigation:b,settingShowHint:S,size:T,type:N,wrapElement:j,wrapRole:R},state:{areSidesReady:O,flipped:P,isMounted:A}}=this,F=p||P,w=GB({large:T==="large",small:T==="small",flipped:F,stack:N==="stack"});return(0,s.jsxs)(j,{"aria-hidden":!i,className:w,onClick:n,onTouchEnd:r,ref:e,role:R,children:[(0,s.jsx)(ws,{activeIndex:a,allowTabNavigation:i,blockId:m?.id,blockType:N,description:f,index:x,isActiveSide:!F,isAriaHidden:F&&A&&O,isFlipped:F,isHidden:L,itemId:C,labels:y,lessonId:E,media:g,onFlip:n,onReady:o,prefersKeyboardNavigation:b,settingShowHint:S,side:"front",size:T,tag:r3,type:v}),(0,s.jsx)(ws,{activeIndex:a,allowTabNavigation:i,blockId:m?.id,blockType:N,description:c,index:x,isActiveSide:F,isAriaHidden:!F&&A&&O,isFlipped:F,isHidden:L,itemId:C,labels:y,lessonId:E,media:u,onFlip:n,onReady:o,prefersKeyboardNavigation:b,settingShowHint:S,side:"back",size:T,tag:_B,type:d})]})}componentDidMount(){this.setState({isMounted:!0}),window.addEventListener($t,this.handleNavEvent)}componentDidUpdate(e,n){const{props:{allowTabNavigation:o,id:r,onStep:a},state:{hasFlippedOnce:i}}=this;!n.hasFlippedOnce&&i&&a({id:r}),e.allowTabNavigation&&!o&&this.setState({flipped:!1})}componentWillUnmount(){window.removeEventListener($t,this.handleNavEvent)}handleNavEvent=e=>{const{path:n}=e.detail,{cardId:o}=Xa(n,["block","card"]);if(o===this.props.id){let r=!1;n.includes("back")&&(r=!0),this.setState({flipped:r},()=>{this.props.type!=="stack"&&!dh(this.cardRef.current,"center")&&this.cardRef.current.scrollIntoView({behavior:"instant",block:"center"})})}};handleFlip=e=>{const{block:n,dispatch:o,index:r}=this.props,a=window.getSelection(),i=a.toString()&&this.cardRef.current?.contains(a.anchorNode);if(e.detail>1&&a.empty(),e&&e.target.closest("a")||i)return;const c=!this.state.flipped;this.setState({areSidesReady:!1,flipped:c,hasFlippedOnce:!0});const u=c?"back":"front",d=n.items?.[r],m=d?.[u]?.media,p=`items:${n?.id}/items:${d?.id}/${u}`;o(Lr({audioPlayerId:ro({refs:p}),transcriptMedia:m})),this.props.onFlip?.(this.props.index,c)};handleTouchEnd=e=>{e.stopPropagation()};handleSideReady=()=>{this.setState({areSidesReady:!0})}}const o3=(0,ks.Ls)()(Fd(Gt(KB))),ji=ne("flashcard-side"),Iu=ne("flashcard-side-flip");class ga extends h.PureComponent{static descriptionActionTypes={INITIAL:"INITIAL",INSERTING:"INSERTING",DELETING:"DELETING"};static initialState={descriptionAction:ga.descriptionActionTypes.INITIAL,isAtLongOverflowBottom:!1,isLong:!1,isLongOverflow:!1,isTooltipVisible:!1,scrollbarWidthOffset:void 0};id;constructor(e){super(e),this.handleMouseEnterAudio=this.handleMouseEnterAudio.bind(this),this.handleMouseLeaveAudio=this.handleMouseLeaveAudio.bind(this),this.id=(0,um.uniqueId)("flashcard-side")}state=ga.initialState;longBottomObserver=void 0;readyTimeout=void 0;refDescription=(0,h.createRef)();refDescriptionBottom=(0,h.createRef)();refSide=(0,h.createRef)();refBtnTimeoutMouseLeave=(0,h.createRef)();checkDescriptionSizeDebounced;handleMouseEnterAudio=()=>{const{itemId:e,index:n,settingShowHint:o,side:r}=this.props,a=document.getElementById(`${e}-${n}-${r}-flip-btn`);a&&o&&(a.style.opacity="0.6")};handleMouseLeaveAudio=()=>{const{itemId:e,index:n,settingShowHint:o,side:r}=this.props,a=document.getElementById(`${e}-${n}-${r}-flip-btn`);a&&o&&(a.style.opacity="1")};render(){const{props:{activeIndex:e,allowTabNavigation:n,block:o,className:r,description:a,getL10nValue:i,index:c,itemId:u,media:d,isActiveSide:m,isAriaHidden:p,isFlipped:f,labels:g,lessonId:v,onFlip:C,prefersKeyboardNavigation:x,settingShowHint:L,side:y,size:E,style:b,type:S},refDescription:T,refDescriptionBottom:N,refSide:j,state:{isAtLongOverflowBottom:R,isLong:O,isLongOverflow:P,isTooltipVisible:A,scrollbarWidthOffset:F}}=this,w=y==="front",D=y==="back",V=E==="small",_=E==="large",ee=S==="description",q=S==="fullimage",fe=S==="image",ye=w?g?.a11yBlockFlashcardFront:g?.a11yBlockFlashcardBack,Ie=`items:${o?.id}/items:${u}/${w?"front":"back"}`,we=ji({back:D,flipped:f,front:w,fullimage:q}).mix(r),{image:Ve,audio:Me}=i(d)??{},Ae=ji("content",{small:V,large:_,front:w,fullimage:q,image:fe,"long-overflow":P,"long-overflow-bottom":R,"has-audio":!!Me}),me=Iu({"audio-expansion":!0}),ue=Iu("btn",{"visually-hidden":!L,"prefers-keyboard":x,round:!0}),Be=Iu("icon"),Re=Iu("tooltip",{visible:A}),We=ji("img",{small:V,large:_,centered:fe,full:q}),He=ji("description",{"has-audio":!!Me,long:O&&!P,"long-overflow":P,short:!O,large:_}),mt=ji("description-bottom"),ht=F==null?void 0:{right:F},yt=Ve?.alt??`Image ${c+1}`,Zt=(0,Ft.ME)(Ve),Ht=`${this.id}-click-to-flip-text`,Wn=`${this.id}-image`,co=`${this.id}-description`;return(0,s.jsxs)("div",{"aria-label":ye,className:we,inert:p,ref:j,role:"group",style:b,tabIndex:-1,children:[(0,s.jsxs)("div",{className:Ae,children:[(0,s.jsxs)("div",{className:me,onMouseEnter:this.handleBtnMouseEnter,onMouseLeave:this.handleBtnMouseLeave,style:ht,children:[(0,s.jsx)("button",{"aria-labelledby":`${Ht} ${co} ${Wn}`,className:ue,id:`${u}-${c}-${y}-flip-btn`,onBlur:this.handleBtnBlur,onClick:C,onFocus:this.handleBtnFocus,tabIndex:n&&m?0:-1,type:"button",children:(0,s.jsx)(P7,{className:Be})}),(0,s.jsx)("div",{"aria-hidden":"true",className:Re,id:Ht,onClick:gr,children:g?.blocksClickToFlip})]}),(q||fe)&&(0,s.jsx)(QB,{alt:yt,className:We,imageId:Wn,l10nId:(0,pt.pP)(d),url:Zt}),ee&&(0,s.jsxs)("div",{className:He,ref:T,tabIndex:m&&P?0:void 0,children:[(0,s.jsx)(Tt,{allowTabNavigation:n&&!p,id:co,value:a}),P&&(0,s.jsx)("div",{className:mt,ref:N})]})]}),Me&&(0,s.jsx)("div",{className:ji("audio-player",{text:ee,image:fe}),onMouseEnter:this.handleMouseEnterAudio,onMouseLeave:this.handleMouseLeaveAudio,children:(0,s.jsx)(zs,{activeIndex:e,blockId:o.id,index:`${u}-${c}-${y}`,isOverlayAudio:q,item:{id:u,media:d},itemIndex:c,labels:g,lessonId:v,media:d,refs:Ie,renderMediaType:"audio",shouldPause:!m,side:y})})]})}componentDidMount(){this.checkDescriptionSize(this.props),this.checkDescriptionSizeDebounced=Tu()(this.checkDescriptionSize,250),window.addEventListener("resize",this.checkDescriptionSizeDebounced),document.addEventListener("keydown",this.handleDocumentKeyDown)}componentWillUnmount(){clearTimeout(this.readyTimeout),this.cleanupLongBottomObserver(),window.removeEventListener("resize",this.checkDescriptionSizeDebounced),document.removeEventListener("keydown",this.handleDocumentKeyDown)}componentDidUpdate(e,n){const{props:{allowTabNavigation:o,blockType:r,isFlipped:a,isActiveSide:i,isHidden:c,onReady:u,type:d}}=this;e.isHidden&&!c&&this.checkDescriptionSize(this.props),e.isFlipped!==a&&(i&&o?(this.refSide.current?.focus?.(),this.readyTimeout=setTimeout(()=>{u()},700)):clearTimeout(this.readyTimeout)),d==="description"&&this.handleUpdatesDescription(e,n),r==="stack"&&i&&!e.allowTabNavigation&&o&&this.refSide.current?.focus?.()}handleBtnBlur=()=>{this.setState({isTooltipVisible:!1})};handleBtnFocus=()=>{this.setState({isTooltipVisible:!0})};handleBtnMouseEnter=()=>{clearTimeout(this.refBtnTimeoutMouseLeave.current),this.setState({isTooltipVisible:!0})};handleBtnMouseLeave=()=>{this.refBtnTimeoutMouseLeave.current=setTimeout(()=>{this.setState({isTooltipVisible:!1})},150)};handleDocumentKeyDown=e=>{cn(e)&&this.state.isTooltipVisible&&this.setState({isTooltipVisible:!1})};handleUpdatesDescription=(e,n)=>{const{props:{isFlipped:o,isActiveSide:r},state:{isLongOverflow:a}}=this;e.isFlipped!==o&&r&&this.scrollDescriptionToTop(),this.handleUpdatesDescriptionSize(e,n),!n.isLongOverflow&&a?(this.setLongBottomObserver(),this.setScrollbarWidth()):n.isLongOverflow&&!a&&this.cleanupLongBottomObserver()};handleUpdatesDescriptionSize=(e,n)=>{const{INSERTING:o,DELETING:r}=ga.descriptionActionTypes,{props:{description:a,size:i,type:c,getL10nValue:u},state:{descriptionAction:d,isLong:m,isLongOverflow:p}}=this,f=u(a)?.length||0,g=u(e.description)?.length||0;d!==o&&f>g?this.setState({descriptionAction:o}):d!==r&&f<g?this.setState({descriptionAction:r}):(d!==n.descriptionAction||m!==n.isLong||p!==n.isLongOverflow||i!==e.size||c!==e.type||f!==g)&&this.checkDescriptionSize(e)};checkDescriptionSize=e=>{const{DELETING:n}=ga.descriptionActionTypes,{props:{size:o},refDescription:{current:r},state:{descriptionAction:a,isLong:i,isLongOverflow:c}}=this;if(!r)return;r&&r.scrollHeight>r.clientHeight?i&&!c?this.setState({isLongOverflow:!0}):!i&&!c&&this.setState({isLong:!0}):(a===n||o!==e.size)&&this.setState(ga.initialState)};scrollDescriptionToTop=()=>{const e=this.refDescription.current;this.state.isLong&&e&&(e.scrollTop=0)};setLongBottomObserver=()=>{const e=this.refDescriptionBottom.current;if(e&&this.longBottomObserver==null){const n=o=>{const r=o?.[0]?.isIntersecting??!1;this.setState({isAtLongOverflowBottom:!r})};this.longBottomObserver=new IntersectionObserver(n,{threshold:[0,1]}),this.longBottomObserver.observe(e)}};cleanupLongBottomObserver=()=>{this.longBottomObserver?.disconnect?.(),this.longBottomObserver=void 0};setScrollbarWidth=()=>{const e=this.refDescription.current;if(e){const n=e.offsetWidth-e.clientWidth;n>0&&this.setState({scrollbarWidthOffset:n})}}}const r3=(0,ks.Ls)()(Fd(Gt(t=>(0,s.jsx)(ga,{...t})))),_B=t=>{const{cardMode:e,customBackgroundColorContrast:n}=Ys(),o=(0,xe.DX)()?.theme,r=zd(),a=Ro(),c=a===M.xj.IMAGE&&r?.overlayColor===M.df.LIGHT,u=En(),d=o?.accentContrast,m=d===M.Em.AUTO,p=(0,h.useMemo)(()=>{let g="#fafafa";if(e===Dn.TRANSPARENT)switch(a){case M.xj.DARK:g="#525252";break;case M.xj.BLACK:g="#1a1a1a";break;case M.xj.IMAGE:c?g="rgba(0, 0, 0, 0.7)":g="rgba(255, 255, 255, 0.7)";break;case M.xj.ACCENT:case M.xj.COLOR:case M.xj.TINT:{let x=0;switch((0,ft.XC)(u)){case ft.lL.LIGHT:x=.5;break;case ft.lL.MED:x=-.35;break;case ft.lL.DARK:x=-.65;break;case ft.lL.NEAR_BLACK:x=.1;break}g=(0,ft.W8)(x,u)}}const v={"--color-background":g},C=a===M.xj.COLOR?n:d;if((a===M.xj.ACCENT||a===M.xj.COLOR)&&e===Dn.TRANSPARENT&&m){const x=Rs({backgroundColor:g,contrast:C});v["--color-text"]=x}return v},[u,a,e,n,m,c,d]),f={...t,style:p};return(0,s.jsx)(r3,{...f})},QB=({alt:t,className:e,imageId:n,l10nId:o,url:r})=>{const a=(0,Fs.Ll)(t);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Tn,{alt:a,className:e,"data-l10n-id":o,id:n,src:r}),!a&&(0,s.jsx)("span",{className:"visually-hidden-always",children:"No image alternative text"})]})};class ZB extends h.Component{static defaultProps={editable:!1,isRTL:!1,items:[],onStep:()=>{},stack:!1};state={activeIndex:0,flipStateMap:{},prefersKeyboardNavigation:!0};render(){const{blockId:e,animateBlockEntrance:n,initiallyVisible:o,isHidden:r,isLearner:a,items:i,labels:c,lessonId:u,onStep:d,previewType:m,isRTL:p,settings:f,stack:g}=this.props,{activeIndex:v}=this.state,{prefersKeyboardNavigation:C}=this.state,{entranceAnimation:x,showHint:L}=f,y=Q()("block-flashcards",{"block-flashcard--column":!g,"block-flashcard--stack":g,"block-flashcards--no-animation":!x}),b=f.flashcardSize==="1"?"small":f.flashcardSize==="2"?"large":i.length>2?"small":"large",S=m===lt.o4.MOBILE_PORTRAIT||m===lt.o4.MOBILE_LANDSCAPE;return(0,s.jsx)(kt,{className:y,children:g?(0,s.jsx)(Ot,{animateBlockEntrance:n,initiallyVisible:o,isLearner:a,children:(0,s.jsx)("div",{className:"block-flashcard-carousel",children:(0,s.jsx)(gu,{blockId:e,items:i,children:({carouselRef:T})=>(0,s.jsx)(fu,{iconNameLeft:"chevron-left",iconNameRight:"chevron-right",isInfinite:!1,isRTL:p,labelCarousel:c?.a11yBlockFlashcardStack,labelCarouselRoleDesc:c?.a11yBlockFlashcardStackRoleDescription,labelSlideControls:c?.a11yBlockFlashcardStackSlideControls,labelSlideControlsGoToNext:c?.a11yBlockFlashcardStackSlideControlsGoToNext,labelSlideControlsGoToPrevious:c?.a11yBlockFlashcardStackSlideControlsGoToPrevious,labelSlideControlsGoToSlide:c?.a11yBlockFlashcardStackSlideControlsGoToSlide,labelSlideCounterPreposition:c?.blocksPreposition,labelSlidePreposition:c?.a11yBlockFlashcardStackSlidePreposition,labelSlideRoleDesc:c?.a11yBlockFlashcardStackSlideRoleDescription,onChange:this.handleCarouselChange.bind(this),ref:T,shouldMouseEmulateTouch:S,shouldUseCounter:!0,shouldUseGoToSlide:!1,children:i.map((N,j)=>(0,s.jsx)(o3,{activeIndex:v,backDescription:N?.back?.description,backMedia:N?.back?.media,backType:N?.back?.type,frontDescription:N?.front?.description,frontMedia:N?.front?.media,frontType:N?.front?.type,id:N?.id,index:j,labels:c,lessonId:u,onFlip:this.handleFlip.bind(this),onStep:d,prefersKeyboardNavigation:C,settingShowHint:L,size:"large",type:"stack",wrapElement:"div"},N?.id))})})})}):(0,s.jsx)(Ot,{animateBlockEntrance:n,className:"block-flashcards__animation",initiallyVisible:o,isLearner:a,siblingDelay:.25,children:(0,s.jsx)("ol",{className:"block-flashcards__wrapper",role:"list",children:i.map((T,N)=>(0,s.jsx)(o3,{activeIndex:v,backDescription:T?.back?.description,backMedia:T?.back?.media,backType:T?.back?.type,blockId:e,frontDescription:T?.front?.description,frontMedia:T?.front?.media,frontType:T?.front?.type,id:T?.id,index:N,isHidden:r,labels:c,lessonId:u,onStep:d,prefersKeyboardNavigation:C,settingShowHint:L,size:b,type:"grid",wrapElement:"li",wrapRole:"listitem"},T?.id))})})})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("mousedown",this.handleMouseDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("mousedown",this.handleMouseDown)}handleKeyDown=e=>{!this.state.prefersKeyboardNavigation&&!AL(e)&&this.setState({prefersKeyboardNavigation:!0})};handleMouseDown=()=>{this.state.prefersKeyboardNavigation&&this.setState({prefersKeyboardNavigation:!0})};handleFlip(e,n){this.setState(o=>({flipStateMap:{...o.flipStateMap,[e]:n}}))}handleCarouselChange(e){const{block:n,dispatch:o}=this.props,{flipStateMap:r}=this.state,a=r[e]?"back":"front",i=n.items?.[e],c=i?.[a]?.media,u=`items:${n?.id}/items:${i?.id}/${a}`;o(Lr({audioPlayerId:ro({refs:u}),transcriptMedia:c})),this.setState({activeIndex:e})}}const a3=(0,ks.Ls)()(Jh(Gt(Fd(ZB)))),i3=({canProceed:t,isReduceMotion:e,onNext:n,onSubmit:o,quizNext:r,quizSubmit:a,allowNext:i=!1})=>{const c=t?!0:void 0,u=t?void 0:o,d=t?-1:void 0,m=t?void 0:!0,p=t?n:void 0,f=t?void 0:-1,g=(0,h.useRef)(null),v=(0,tt.A)(t);(0,h.useEffect)(()=>{i&&!v&&t&&setTimeout(()=>{g.current?.focus?.({preventScroll:e})},0)},[i,t,e,v]);const C=Q()("quiz-card__actions",{"quiz-card__actions--proceed":t}),x=Q()("quiz-card__button","quiz-card__button--next","brand_ui",{"brand--background":t,"visually-hidden-always":!t});return(0,s.jsxs)("div",{className:C,children:[(0,s.jsx)("div",{className:"quiz-card__submit brand--ui",children:!c&&(0,s.jsx)("button",{className:"quiz-card__button","data-testid":"quiz-submit-button",onClick:u,tabIndex:d,type:"button",children:a})}),(0,s.jsx)("br",{className:"visually-hidden-always",role:"presentation"}),i&&(0,s.jsx)("div",{className:"quiz-card__next brand--ui",children:(0,s.jsx)("button",{"aria-disabled":m,"aria-hidden":m,className:x,"data-testid":"quiz-next-button",onClick:p,ref:g,tabIndex:f,type:"button",children:r})})]})},YB=({children:t,isActive:e,isComplete:n,isTimedQuiz:o,style:r})=>(0,s.jsx)("div",{"aria-hidden":e?void 0:!0,className:XB({isActive:e,isComplete:n,isTimedQuiz:o}),"data-testid":"quiz-card",inert:e?void 0:!0,style:r,children:(0,s.jsx)("div",{className:"quiz-card__container",children:(0,s.jsx)("div",{className:"quiz-card__row",children:(0,s.jsx)("div",{className:"quiz-card__main",children:t})})})}),XB=({isActive:t,isComplete:e,isTimedQuiz:n})=>Q()("quiz-card",{"quiz-card--active":t,"quiz-card--done":e,"quiz-card--timed":n}),l3=YB;var hm=l(81820),xt=l(9007);const{FILL_IN_THE_BLANK:c3,MATCHING:JB,MULTIPLE_CHOICE:qB,MULTIPLE_RESPONSE:eH}=xt.UQ;function tH({answers:t},e){return t.map(n=>e(n?.title)).filter(Boolean).join(", ")}function sH({answers:t,correct:e},n){const o=e!=null?(0,hm.propEq)("id",e):(0,hm.propEq)("correct",!0);return n(t.find(o)?.title)}function nH({answers:t,selection:e},n){return n(t?.[e]?.title)}function d3(t,e,n){return e.filter(t).reduce((o,r,a)=>{const i=n(r?.title)??"";return a===0?i:o+", "+i},"")}function oH({corrects:t,answers:e},n){return d3(r=>Array.isArray(t)?t.includes?.(r.id):r.correct,e,n)}function rH({answers:t,selection:e},n){return d3((r,a)=>e.includes(a),t,n)}function aH({answers:t,getL10nValue:e,selection:n,correctLabel:o,userLabel:r,matchLabel:a="Match Item: ",revealAnswers:i}){const c=(0,hm.invertObj)(n);return t.map((u,d)=>{const m=e(u?.title)??"",p=e(u?.matchTitle)??"",f=c?.[d],g=e(t?.[f]?.title)??"";return i===xt.iV.INCORRECT?a+p+". "+r+": "+g+".":a+p+". "+o+": "+m+". "+r+": "+g+"."}).join(" ")}function mm({correctAnswer:t,selectedAnswer:e,correctLabel:n,userLabel:o,revealAnswers:r}){return!t||!e||r===xt.iV.NONE?"":r===xt.iV.INCORRECT?o+": "+(0,Eo.QZ)(e)+".":n+": "+(0,Eo.QZ)(t)+". "+o+": "+(0,Eo.QZ)(e)+"."}function iH({item:t,labels:e}){return t.type===c3?e?.quizAcceptableResponses:e?.a11yCorrectLive}function lH({getL10nValue:t,isComplete:e,item:n,selection:o,labels:r,revealAnswers:a}){if(!n||!e)return null;const i=n?.answers??[],c=n?.correct,u=n?.corrects,d=iH({item:n,labels:r}),m=r?.a11yAnswerLive;switch(n.type){case JB:return aH({getL10nValue:t,answers:i,selection:o,correctLabel:d,userLabel:m,revealAnswers:a});case c3:return mm({correctAnswer:tH({answers:i},t),selectedAnswer:o,correctLabel:d,userLabel:m,revealAnswers:a});case qB:return mm({correctAnswer:sH({answers:i,correct:c},t),selectedAnswer:nH({answers:i,selection:o},t),correctLabel:d,userLabel:m,revealAnswers:a});case eH:return mm({correctAnswer:oH({corrects:u,answers:i},t),selectedAnswer:rH({answers:i,selection:o},t),correctLabel:d,userLabel:m,revealAnswers:a})}return null}const u3=({canProceed:t,feedbackRef:e,feedbackValue:n,isActive:o,isComplete:r,isCorrect:a,item:i,labels:c,quizCorrect:u,quizIncorrect:d,revealAnswers:m,selection:p})=>{const{announcePolite:f,clearAnnouncements:g}=bt(),v=(0,tt.A)(t),C=(0,nt.gY)(),L=!!(0,nt.QQ)(n),y=a?u:d,E=(0,h.useCallback)(()=>{const T=lH({getL10nValue:C,isComplete:r,item:i,labels:c,revealAnswers:m,selection:p}),N=n?(0,Eo.QZ)(C(n)):"",j=y+". "+T+" "+N;let R;return j&&(R=setTimeout(()=>{f(j)},250)),()=>{clearTimeout(R)}},[f,n,C,r,i,c,y,m,p]);(0,h.useLayoutEffect)(()=>{!v&&t&&m!==xt.iV.NONE&&E()},[t,v,E,m]),(0,h.useEffect)(()=>g,[g]);const b=Q()("quiz-card__feedback",{"quiz-card__feedback--active":t,"quiz-card__feedback--frame":L}),S=Q()("quiz-card__feedback-icon",{"quiz-card__feedback-icon--correct":a});return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{"aria-hidden":o?void 0:!0,className:b,ref:e,children:(0,s.jsx)("div",{className:"quiz-card__main--feedback",children:(0,s.jsxs)("div",{"aria-label":c?.a11yQuizFeedback,className:"quiz-card__feedback-wrap",role:"group",children:[(0,s.jsx)("div",{className:S,children:(0,s.jsx)("i",{"aria-hidden":"true",className:a?"icon icon-Master-05":"icon icon-Master-06"})}),(0,s.jsx)("div",{className:"quiz-card__feedback-label",children:y}),n&&(0,s.jsx)("div",{children:(0,s.jsx)(Tt,{allowTabNavigation:r&&o,className:"quiz-card__feedback-text",value:n})})]})})})})},{FILL_IN_THE_BLANK:cH}=xt.UQ,dH=({children:t,type:e})=>(0,s.jsx)("div",{className:uH({type:e}),children:t}),uH=({type:t})=>Q()("quiz-card__interactive",{"quiz-card__interactive--no-border":[cH].includes(t)}),h3=dH;var hH=l(36124),mH=l.n(hH),pH=l(49015),fH=l.n(pH),vH=l(35020),gH=l.n(vH),CH=l(51173),xH=l.n(CH);const bH=us()((t,e)=>_h()(gH()(null),xH()(t,e))),yH=({allowTabNavigation:t,blockId:e,enableVideoPlaybackSpeed:n,index:o,isOverlayAudio:r,item:a,labels:i,media:c,settings:u})=>(0,s.jsx)("div",{className:"quiz-card__media",children:(0,s.jsx)(zs,{allowTabNavigation:t,blockId:e,enableVideoPlaybackSpeed:n,index:o,isOverlayAudio:r,item:a,labels:i,media:c,opts:u})}),LH=_h()(fH()(["tmp"]),Lt()({},["media"])),EH=mH()(LH,Mv),SH=Nh()(EH,Mv),Ir=bH(SH,yH),TH=(t,e)=>{const n=dn(),o=(0,tt.A)(e);(0,h.useEffect)(()=>{!o&&e&&t&&Ed()(t.focus)&&t.focus({preventScroll:n})},[e,n,o,t])},Nu=ne("question-counter"),IH=({isActive:t=!1,labels:e,questionLabel:n,questionNumber:o,totalQuestions:r})=>{const a=(0,h.useRef)(null);TH(a.current,t);const i=`${e?.quizQuestion} ${o} ${e?.lessonPreposition} ${r}`,c=`${Vv(o)}/${Vv(r)}`;return(0,s.jsx)("div",{className:Nu(),children:(0,s.jsxs)("h1",{"aria-label":i,className:Nu("heading"),ref:a,tabIndex:-1,children:[(0,s.jsx)("span",{"aria-hidden":"true",className:Nu("label"),children:n}),(0,s.jsx)("span",{"aria-hidden":"true",className:Nu("count"),children:c})]})})},NH=ne("question-title"),jH=({allowTabNavigation:t,htmlId:e,value:n})=>(0,s.jsx)(Tt,{allowTabNavigation:t,className:NH(),"data-testid":"quiz-question-title",id:e,value:n}),kH=({allowTabNavigation:t,correctAnswerColor:e,correctAnswerColorContrast:n,errorMessageId:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isComplete:i,isCorrect:c,labels:u,onEnterToSubmit:d=Function.prototype,onChange:m=Function.prototype,options:p,questionHtmlId:f,quizAcceptableResponses:g,quizAnswerPlaceholder:v,revealAnswers:C,value:x})=>{const L=(0,h.useRef)(null),[y]=(0,h.useState)(()=>Ct()("fitb-")),E=(0,nt.gY)(),b=AH({options:p,getL10nValue:E}),S=`${y}-feedback`,T=`${y}-acceptable`,N=`${y}-input`,j=i?`${S} ${T}`:o||void 0,R=i?void 0:v,O=t?0:Ud,P=C===xt.iV.ALL||C===xt.iV.INCORRECT,A=C===xt.iV.ALL||c&&C===xt.iV.INCORRECT,F=c?e:r,D=e&&r&&{"--fa-primary-color":Rs({backgroundColor:F,contrast:c?n:a}),"--fa-secondary-color":F},V=r&&{backgroundColor:Rs({backgroundColor:r,contrast:a}),fill:r,borderRadius:"50%"},_=Q()("quiz-fill__icon",{"quiz-fill__icon--visible":i}),ee=Q()("quiz-fill__options",{"quiz-fill__options--visible":i}),q=(0,h.useCallback)(we=>{m(we.currentTarget.value)},[m]),fe=(0,h.useCallback)(we=>{na(we)&&d(we)},[d]),ye=i?void 0:q,Ie=i?void 0:fe;return(0,s.jsxs)("div",{className:"quiz-fill",children:[(0,s.jsxs)("div",{className:"quiz-fill__container",children:[(0,s.jsx)("input",{"aria-describedby":j,"aria-hidden":!t,"aria-invalid":o?!0:void 0,"aria-labelledby":f,"aria-readonly":i,"aria-required":"true",autoComplete:"off",className:"quiz-fill__input ignore-prefers",id:N,onChange:ye,onKeyDown:Ie,placeholder:R,readOnly:i,ref:L,tabIndex:O,type:"text",value:x}),P&&(0,s.jsxs)("div",{className:_,id:S,children:[c&&(0,s.jsx)(ct,{"aria-label":u?.quizCorrect,name:"circle-check",styleIcon:{height:"2rem",...D}}),!c&&(0,s.jsx)(C8,{"aria-label":u?.quizIncorrect,style:V})]})]}),A&&i&&(0,s.jsx)("div",{className:ee,id:T,children:(0,s.jsx)(Tt,{value:`${g}: ${b}`})})]})},AH=({options:t,getL10nValue:e})=>t.map(o=>(e(o.title)??"").trim()).join(", "),m3=kH;function RH({correctAnswerColor:t,correctAnswerColorContrast:e}){const n=(0,xe.vU)(),o=Rs({backgroundColor:t,contrast:e}),r=t?{"--fa-primary-color":o,"--fa-secondary-color":t}:void 0;return(0,s.jsxs)("div",{className:"matching-results-item-feedback",children:[(0,s.jsx)(ct,{className:"matching-results-item-feedback-icon matching-results-item-feedback-icon--correct",name:"circle-check",style:r}),(0,s.jsx)("span",{className:"matching-results-item-feedback-text",children:(0,s.jsx)("span",{className:"matching-results-item-feedback-text-result",children:n?.quizCorrect})})]})}var ki=l(26372);function PH({correctAnswerValue:t,incorrectAnswerColor:e,incorrectAnswerColorContrast:n,shouldRevealCorrectAnswer:o}){const[r,a]=ki.useState(!0),[i,c]=ki.useState(!1),u=ki.useRef(null),m=`matching-text-${ki.useId()}`,p=(0,xe.vU)(),f=(0,tt.A)(t),g=ki.useCallback(()=>{a(b=>!b)},[]);ki.useLayoutEffect(()=>{if(f!==t){const b=u.current;b!=null&&b.scrollWidth>b.clientWidth&&c(!0)}},[f,t]);const v=Rs({backgroundColor:e,contrast:n}),C=e?{"--fa-primary-color":v,"--fa-secondary-color":e}:void 0,x=Q()("matching-results-item-feedback-text",{"matching-results-item-feedback-text--collapsed":r}),L=Q()("matching-results-item-feedback-text-btn-icon",{"matching-results-item-feedback-text-btn-icon--collapsed":r}),y=Q()("matching-results-item-feedback-text-extra",{"matching-results-item-feedback-text-extra--collapsed":r}),E=Q()("matching-results-item-feedback-text-extra-text",{"matching-results-item-feedback-text-extra-text--collapsed":r});return(0,s.jsxs)("div",{className:"matching-results-item-feedback",children:[(0,s.jsx)(ct,{className:"matching-results-item-feedback-icon matching-results-item-feedback-icon--incorrect",name:"circle-xmark-duotone",style:C}),!o&&(0,s.jsx)("span",{className:"matching-results-item-feedback-text",children:(0,s.jsx)("span",{className:"matching-results-item-feedback-text-result",children:p?.quizIncorrect})}),o&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("span",{className:x,children:[(0,s.jsxs)("span",{className:"matching-results-item-feedback-text-result",children:[p?.quizIncorrect,"."]}),i&&(0,s.jsx)("button",{"aria-controls":m,"aria-expanded":!r,"aria-label":r?p?.a11yMatchingItemShowMore:p?.a11yMatchingItemShowLess,className:"matching-results-item-feedback-text-btn",onClick:g,type:"button",children:(0,s.jsx)(ct,{className:L,name:"caret-down",style:C})}),(0,s.jsx)("span",{className:y,children:(0,s.jsxs)("span",{className:E,id:m,ref:u,children:[p?.quizCorrect,": ",(0,s.jsx)(is,{value:t})]})})]})})]})}function wH({col1Id:t,col1Value:e,col2Id:n,col2Value:o,correctAnswerColor:r,correctAnswerColorContrast:a,correctAnswerValue:i,height:c,incorrectAnswerColor:u,incorrectAnswerColorContrast:d,revealAnswers:m}){const p=t===n,f=m!=="incorrect",g=m!=="none";return(0,s.jsxs)("li",{className:"matching-results-item",role:"listitem",children:[(0,s.jsxs)("div",{className:"matching-results-item-pieces",children:[(0,s.jsxs)("div",{className:"matching-results-item-piece",style:c?{height:c}:void 0,children:[(0,s.jsx)("span",{className:"matching-results-item-piece-decoration"}),(0,s.jsx)("span",{className:"matching-results-item-piece-jigsaw"}),(0,s.jsx)("span",{className:"matching-results-item-piece-content",children:(0,s.jsx)("span",{"data-matching-results-item-piece-content-inline":"",children:(0,s.jsx)(is,{value:e})})})]}),(0,s.jsxs)("div",{className:"matching-results-item-piece",children:[(0,s.jsx)("span",{className:"matching-results-item-piece-decoration"}),(0,s.jsx)("span",{className:"matching-results-item-piece-jigsaw"}),(0,s.jsx)("span",{className:"matching-results-item-piece-content",children:(0,s.jsx)("span",{"data-matching-results-item-piece-content-inline":"",children:(0,s.jsx)(is,{value:o})})})]})]}),g&&p&&(0,s.jsx)(RH,{correctAnswerColor:r,correctAnswerColorContrast:a}),g&&!p&&(0,s.jsx)(PH,{correctAnswerValue:i,incorrectAnswerColor:u,incorrectAnswerColorContrast:d,shouldRevealCorrectAnswer:f})]})}function MH({answers:t,columnBehavior:e,correctAnswerColor:n,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,itemHeight:i,revealAnswers:c,rows:u}){return(0,s.jsx)("div",{className:"matching-results",children:(0,s.jsx)("ul",{className:"matching-results-list",role:"list",children:u.map((d,m)=>{const[p,f]=d,g=e==="freezeFirst"?t.find(v=>v.id===p.id)?.matchTitle:t.find(v=>v.id===f.id)?.title;return(0,s.jsx)(wH,{col1Id:p.id,col1Value:p.value,col2Id:f.id,col2Value:f.value,correctAnswerColor:n,correctAnswerColorContrast:o,correctAnswerValue:g,height:i,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,revealAnswers:c},m)})})})}function OH(t){return Object.keys(t).length===0}function DH(t,e){return e in t}function BH(t,e){return Object.values(t).includes(e)}function pm(t,e){for(const n in t)if(t[n]===e)return n}function HH(t,e,n){return{...t,[e]:n}}function ju(t,e){return e in t?(0,to.QD)(t,[e]):t}function FH(t,e){const n=pm(t,e);return n===void 0?t:ju(t,n)}function p3(t,e,n){let o=ju(t,e);return o=FH(o,n),HH(o,e,n)}function zH(t){return Object.keys(t).length}var VH=l(25395),fm=l.n(VH);fm().dynamicDrop(!0),fm().pointerMoveTolerance(8);const Oo=fm();var Ai=l(26372);function UH(t,{onStart:e,onMove:n,onEnd:o,isEnabled:r=!0}){const a=Ai.useRef({x:0,y:0}),i=Ai.useRef({x:0,y:0}),c=Ai.useRef(!1),u=Ai.useRef(null),d=Ai.useRef(void 0);Ai.useEffect(()=>{const m=t.current;if(!m||!r||c.current)return;u.current=fL(m);function p(){const f=u.current;return f instanceof Window?{x:window.scrollX,y:window.scrollY}:{x:f.scrollLeft,y:f.scrollTop}}return d.current=()=>{const f=p(),g=f.x-i.current.x,v=f.y-i.current.y;(g!==0||v!==0)&&(a.current.x+=g,a.current.y+=v,t.current&&(t.current.style.transform=`translate3d(${a.current.x}px, ${a.current.y}px, 0)`,n?.({...a.current})),i.current=f)},Oo(m).draggable({inertia:!1,autoScroll:{container:u.current,distance:5,interval:10,margin:50},listeners:{start:()=>{a.current={x:0,y:0},i.current=p(),u.current?.addEventListener("scroll",d.current,{passive:!0}),e?.()},move:f=>{a.current.x+=f.dx,a.current.y+=f.dy,m.style.transform=`translate3d(${a.current.x}px, ${a.current.y}px, 0)`,n?.({...a.current})},end:()=>{a.current={x:0,y:0},m.style.transform="",u.current?.removeEventListener("scroll",d.current),setTimeout(()=>{o?.()},0)}}}),c.current=!0,()=>{Oo(m).unset(),u.current?.removeEventListener("scroll",d.current),c.current=!1}},[t,e,n,o,r])}var f3=l(26372);function $H(t,{isEnabled:e=!0,onDrop:n,onEnter:o,onLeave:r,overlap:a=.015}){const i=f3.useRef(!1);f3.useEffect(()=>{const c=t.current;if(!(!c||!e||i.current))return Oo(c).dropzone({overlap:a,listeners:{drop:()=>{n?.()},dragenter:()=>{o?.()},dragleave:()=>{r?.()}}}),i.current=!0,()=>{Oo(c).unset(),i.current=!1}},[t,n,o,r,e,a])}var zn=l(26372);const v3=zn.memo(function({col:e,height:n,id:o,index:r,isActive:a,isFrozen:i,isMatched:c,isMoved:u,onClick:d,onDragEnd:m,onDragStart:p,onDrop:f,onDropZoneEnter:g,onDropZoneLeave:v,onKeyDown:C,value:x,valueOtherColumnActive:L,valueOtherColumnMatch:y}){const[E,b]=zn.useState(!1),S=zn.useRef(null),T=zn.useRef(null),N=(0,xe.vU)(),j=zn.useCallback(()=>{d({col:e,id:o,value:x})},[e,o,d,x]),R=zn.useCallback(()=>{b(!0),p({col:e,id:o,value:x})},[e,o,p,x]),O=zn.useCallback(()=>{m(),b(!1)},[m]),P=zn.useCallback(()=>{f({col:e,id:o,value:x})},[e,o,f,x]),A=zn.useCallback(()=>{g({col:e,id:o,value:x})},[e,o,g,x]),F=zn.useCallback(()=>{v()},[v]),w=zn.useCallback(q=>{C(q,{col:e,index:r})},[e,r,C]);zn.useEffect(()=>{e===1&&r===0||T.current?.setAttribute("tabindex","-1")},[]),UH(S,{isEnabled:!i,onStart:R,onEnd:O}),$H(S,{isEnabled:i,onDrop:P,onEnter:A,onLeave:F});const D=Q()("matching-interaction-piece",{"matching-interaction-piece--matched":c,"matching-interaction-piece--moved":u}),V=y==null?null:(0,s.jsxs)(s.Fragment,{children:[N?.a11yMatchingItemMatchedWith," ",(0,s.jsx)(is,{value:y})]}),_=L==null?(0,s.jsx)(s.Fragment,{children:N?.a11yMatchingItemSelectableItem}):(0,s.jsxs)(s.Fragment,{children:[N?.a11yMatchingItemMatchWith," ",(0,s.jsx)(is,{value:L})]}),ee=Q()("matching-interaction-item",{draggable:!i,"draggable--dragging":!i&&E,droppable:i});return(0,s.jsx)("li",{className:ee,ref:S,role:"listitem",children:(0,s.jsxs)("button",{"aria-pressed":a||c?!0:void 0,className:D,"data-state":a?"active":void 0,onClick:E?void 0:j,onKeyDown:w,ref:T,style:n?{height:n}:void 0,type:"button",children:[i?(0,s.jsx)("span",{className:"matching-interaction-piece-decoration"}):(0,s.jsx)(ct,{className:"matching-interaction-piece-decoration",name:"grip-dots-vertical"}),e===2?(0,s.jsx)("span",{className:"matching-interaction-piece-jigsaw"}):null,(0,s.jsx)("span",{className:"matching-interaction-piece-content",children:(0,s.jsx)("span",{"data-matching-interaction-piece-content-inline":"",children:(0,s.jsx)(is,{value:x})})}),(0,s.jsx)("span",{className:"visually-hidden-always",children:V}),(0,s.jsx)("span",{className:"visually-hidden-always",children:_})]},o)})});var Ut=l(26372);function WH({answers:t,columnBehavior:e,isActive:n,itemHeight:o,matches:r,onChange:a,onChangeItemHeight:i,onChangeRows:c,prefersKeyboardNavigation:u}){const d=(0,tt.A)(n),m=(0,tt.A)(e),p=(0,tt.A)(t),f=(0,tt.A)(r),g=(0,xe.vU)(),[v,C]=Ut.useState(void 0),[x,L]=Ut.useState(void 0),[y,E]=Ut.useState(void 0),[b,S]=Ut.useState(!1),T=Ut.useRef(null),N=Ut.useRef(null),j=Ut.useRef(null),R=Ut.useRef(void 0),O=Ut.useRef(void 0),[P,A]=Ut.useState(()=>ku({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeSecond"})),[F,w]=Ut.useState(()=>ku({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeFirst"})),D=Ut.useMemo(()=>t.map(ue=>({col:1,id:ue.id,value:ue.title})).toSorted((ue,Be)=>{const Re=P.get(ue.id)??1/0,We=P.get(Be.id)??1/0;return Re-We}),[t,P]),V=Ut.useMemo(()=>t.map(ue=>({col:2,id:ue.id,value:ue.matchTitle})).toSorted((ue,Be)=>{const Re=F.get(ue.id)??1/0,We=F.get(Be.id)??1/0;return Re-We}),[t,F]),_=Ut.useCallback(()=>{for(const me of T.current?.querySelectorAll('button:not([tabindex="-1"])')??[])me.setAttribute("tabindex","-1")},[]),ee=Ut.useCallback(me=>{const ue=Array.from(P),Be=Array.from(F);if(e==="freezeSecond"){const Re=new Array(Be.length),We=ue.map(ht=>ht[0]).filter(ht=>!(ht in me));for(const[ht,yt]of Object.entries(me)){const Zt=F.get(yt);Re[Zt]=[ht,Zt]}for(let ht=0;ht<Re.length;ht++)if(Re[ht]==null){const yt=We.shift();Re[ht]=[yt,ht]}const He=new Map(Re),mt=g3(P,He);mt.length>0&&L(mt),A(He)}else{const Re=new Array(ue.length),We=new Set(Object.values(me)),He=Be.map(yt=>yt[0]).filter(yt=>!We.has(yt));for(const[yt,Zt]of Object.entries(me)){const Ht=P.get(yt);Re[Ht]=[Zt,Ht]}for(let yt=0;yt<Re.length;yt++)if(Re[yt]==null){const Zt=He.shift();Re[yt]=[Zt,yt]}const mt=new Map(Re),ht=g3(F,mt);ht.length>0&&E(ht),w(mt)}},[e,P,F]),q=Ut.useCallback(me=>{R.current=me},[]),fe=Ut.useCallback(()=>{O.current==null&&(R.current=void 0)},[]),ye=Ut.useCallback(me=>{O.current=me},[]),Ie=Ut.useCallback(()=>{O.current=void 0},[]),we=Ut.useCallback(me=>{const ue=R.current;if(ue!=null){const Be=me.col===1?me.id:ue.id,Re=me.col===1?ue.id:me.id,We=p3(r,Be,Re);R.current=void 0,O.current=void 0,a(We)}},[r,a]),Ve=Ut.useCallback(me=>{let ue=null,Be=!1,Re=v;if(me.col===1&&me.id in r)ue=ju(r,me.id),Re=null;else if(me.col===2&&pm(r,me.id)){const We=pm(r,me.id);ue=ju(r,We),Re=null}else v==null&&(Re={col:me.col,id:me.id,value:me.value},Be=!0);if(v!=null)if(v.col===me.col)v.id===me.id?Re=null:Re={col:me.col,id:me.id,value:me.value};else{const We=me.col===1?me.id:v.id,He=me.col===1?v.id:me.id;ue=p3(r,We,He),Be=!0,Re=null}if(ue!=null&&a(ue),v!==Re&&C(Re),Be){const He=(me.col===1?j:N).current?.querySelector('button:not([aria-pressed="true"])');He&&(_(),He.removeAttribute("tabindex"),He.focus({preventScroll:!u}))}},[u,v,r,a,_]),Me=Ut.useCallback((me,{col:ue,index:Be})=>{const Re=me.currentTarget;let We=!1,He=null;switch(me.key){case"ArrowUp":We=!0,He=Re.parentElement.previousElementSibling?.firstElementChild;break;case"ArrowDown":We=!0,He=Re.parentElement.nextElementSibling?.firstElementChild;break;case"ArrowRight":We=!0,He=ue===1?j.current?.children[Be]?.firstElementChild:void 0;break;case"ArrowLeft":We=!0,He=ue===2?N.current?.children[Be]?.firstElementChild:void 0;break;case"Home":We=!0,He=Re.closest("ul").firstElementChild.firstElementChild;break;case"End":We=!0,He=Re.closest("ul").lastElementChild.firstElementChild;break}We&&(me.preventDefault(),me.stopPropagation()),He&&(_(),He.removeAttribute("tabindex"),He.focus())},[_]);Ut.useEffect(()=>{r!==f&&!OH(r)&&ee(r)},[ee,r,f]),Ut.useEffect(()=>{const me=({shouldFocus:Re})=>{const We=v.col===1?N:j;_();const He=We.current.querySelector('button[data-state="active"]');He?.removeAttribute("tabindex"),Re&&He?.focus(),C(null)},ue=Re=>{T.current?.contains(Re.target)||me({shouldFocus:!1})},Be=Re=>{cn(Re)&&v!=null&&me({shouldFocus:!0})};return v==null?(document.removeEventListener("mousedown",ue),document.removeEventListener("keydown",Be)):(document.addEventListener("mousedown",ue),document.addEventListener("keydown",Be)),()=>{document.removeEventListener("mousedown",ue),document.removeEventListener("keydown",Be)}},[v,_]);const Ae=Ut.useCallback(()=>{const me=Array.from(T.current?.querySelectorAll("[data-matching-interaction-piece-content-inline]")??[]);if(me.length===0)return;const ue=me[0].closest("button");let Be=0,Re;if(ue){const He=window.getComputedStyle(ue),mt=parseFloat(He.paddingBlockStart)+parseFloat(He.paddingBlockEnd),ht=parseFloat(He.borderTopWidth)+parseFloat(He.borderBottomWidth);Be=mt+ht,Re=parseFloat(He.minHeight)}const We=me.reduce((He,mt)=>Math.max(He,mt.scrollHeight+Be),0);Re&&Re>=We?i(void 0):i(We)},[i]);return Ut.useEffect(()=>{(!d&&n||p!==t)&&Ae()},[d,n,t,p,Ae]),Ut.useEffect(()=>{const me=T.current?.closest(".quiz-card");let ue;return me!=null&&(ue=new ResizeObserver(()=>{Ae()}),ue.observe(me)),()=>{me!=null&&ue!=null&&ue.unobserve(me)}},[Ae]),Ut.useEffect(()=>{let me,ue;return x&&(me=setTimeout(()=>{L(void 0)},1e3)),y&&(ue=setTimeout(()=>{E(void 0)},1e3)),()=>{clearTimeout(me),clearTimeout(ue)}},[x,y]),Ut.useEffect(()=>{b&&m!==e&&(a({}),ee({}),C(void 0),A(ku({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeSecond"})),w(ku({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeFirst"})))},[b,e,m,t,a,ee]),Ut.useEffect(()=>{if(D.length<=0)return;const me=D.map((ue,Be)=>[ue,V[Be]]);c(me)},[D,V,c]),Ut.useEffect(()=>{S(!0)},[]),(0,s.jsxs)("div",{className:"matching-interaction","data-testid":"matching-interaction",ref:T,children:[(0,s.jsx)("ul",{"aria-label":g?.a11yMatchingColumn1,className:"matching-interaction-col matching-interaction-col-1","data-col":"1",ref:N,role:"list",children:D.map((me,ue)=>{const Be=DH(r,me.id);return(0,s.jsx)(v3,{col:1,height:o,id:me.id,index:ue,isActive:v?.col===1&&v?.id===me.id,isFrozen:e==="freezeFirst",isMatched:Be,isMoved:x?.map(Re=>Re.id).includes(me.id)??!1,onClick:Ve,onDragEnd:fe,onDragStart:q,onDrop:we,onDropZoneEnter:ye,onDropZoneLeave:Ie,onKeyDown:Me,value:me.value,valueOtherColumnActive:v?.col===2?v?.value:void 0,valueOtherColumnMatch:Be?V[ue]?.value:void 0},me.id)})}),(0,s.jsx)("ul",{"aria-label":g?.a11yMatchingColumn2,className:"matching-interaction-col matching-interaction-col-2","data-col":"2",ref:j,role:"list",children:V.map((me,ue)=>{const Be=BH(r,me.id);return(0,s.jsx)(v3,{col:2,height:o,id:me.id,index:ue,isActive:v?.col===2&&v?.id===me.id,isFrozen:e==="freezeSecond",isMatched:Be,isMoved:y?.map(Re=>Re.id).includes(me.id)??!1,onClick:Ve,onDragEnd:fe,onDragStart:q,onDrop:we,onDropZoneEnter:ye,onDropZoneLeave:Ie,onKeyDown:Me,value:me.value,valueOtherColumnActive:v?.col===1?v?.value:void 0,valueOtherColumnMatch:Be?D[ue]?.value:void 0},me.id)})})]})}const ku=({answers:t,columnBehavior:e,columnBehaviorToShuffle:n})=>{let o=t.map(r=>r.id);return e===n&&(o=(0,um.shuffle)(o)),new Map(o.map((r,a)=>[r,a]))};function g3(t,e){const n=[];for(const[o,r]of t){const a=e.get(o);a!==r&&n.push({id:o,from:r,to:a})}return n}var Au=l(26372);function C3({columnBehavior:t="freezeSecond",...e}){const[n,o]=Au.useState([]),[r,a]=Au.useState(void 0),i=Au.useCallback(u=>{o(u)},[]),c=Au.useCallback(u=>{a(u)},[]);return e.isComplete?(0,s.jsx)(MH,{...e,columnBehavior:t,itemHeight:r,rows:n}):(0,s.jsx)(WH,{...e,columnBehavior:t,itemHeight:r,onChangeItemHeight:c,onChangeRows:i})}function x3(t){return t==null||t===-1}function GH(t,e){return t===e}const KH=({allowTabNavigation:t,color:e,correctId:n,errorMessageId:o,isComplete:r,isCorrect:a,isReduceMotion:i,labels:c,onChange:u,onEnterToSubmit:d,options:m=[],questionHtmlId:p,renderOptionText:f,isRetaking:g,revealAnswers:v,selectedIndex:C,shouldFocusFirst:x,onFocusFirstComplete:L})=>{const y=x3(C);return(0,s.jsx)(vu,{"aria-invalid":o?!0:void 0,"aria-labelledby":[p,o].filter(Boolean).join(" "),"aria-required":"true",role:"radiogroup",children:m.map((E,b,S)=>(0,s.jsx)(_H,{allowTabNavigation:t,color:e,id:E.id,index:b,isComplete:r,isCorrect:a,isCorrectOption:n===E.id,isFirst:b===0,isFresh:y,isLast:b===S.length-1,isReduceMotion:i,isRetaking:g,isSelected:!g&&GH(C,b),labels:c,onChange:u,onEnterToSubmit:d,onFocusFirstComplete:L,questionHtmlId:p,renderOptionText:f,revealAnswers:v,shouldFocusFirst:x,title:E.title},E.id))})},_H=({allowTabNavigation:t,color:e,id:n,index:o,isComplete:r,isCorrect:a,isCorrectOption:i,isFresh:c,isSelected:u,isReduceMotion:d,labels:m,onChange:p,onEnterToSubmit:f,questionHtmlId:g,renderOptionText:v,isRetaking:C,revealAnswers:x,shouldFocusFirst:L,onFocusFirstComplete:y,title:E})=>{const[b]=(0,h.useState)(()=>Ct()("qmc-")),S=(0,h.useRef)(null),T=(0,tt.A)(u),N=!!r,j=t&&(u||c&&o===0)?0:Ud,R=x===xt.iV.ALL,O=x==xt.iV.INCORRECT,P=R||O&&a,A=R||O&&a||O&&!a&&u,F=r&&i&&P,w=r&&!i&&A,D=(F||w)&&!C,V=D?`${b}-result`:void 0,_=Q()("quiz-multiple-choice-option",{"is-complete":r,"is-correct":F,"is-incorrect":w,"is-selected":u}),ee=Q()("quiz-multiple-choice-option__dot",{"quiz-multiple-choice-option__dot--active":u&&!r}),q=Q()("quiz-multiple-choice-option__check",{"quiz-multiple-choice-option__check--active":F}),fe=Q()("quiz-multiple-choice-option__x",{"quiz-multiple-choice-option__x--active":w}),ye=Q()("quiz-multiple-choice-option__border"),Ie=(0,h.useCallback)(Me=>{na(Me)&&f(Me)},[f]),we=(0,h.useCallback)(()=>{p({selectedIndex:o})},[o,p]),Ve=r?void 0:Ie;return(0,h.useEffect)(()=>{t&&S.current&&(!T&&u?S.current.focus({preventScroll:d}):L&&c&&o===0&&(S.current.focus({preventScroll:d}),y?.()))},[t,u,d,T,L,c,o,y]),(0,s.jsxs)("div",{"data-testid":"quiz-card-option",children:[(0,s.jsxs)("label",{"aria-describedby":V,className:_,ref:S,children:[(0,s.jsx)("input",{checked:u,className:"quiz-multiple-choice-option__input",disabled:N,name:g,onClick:r?void 0:we,onKeyDown:Ve,tabIndex:j,type:"radio"}),(0,s.jsxs)("div",{className:"quiz-multiple-choice-option__indicator",style:{color:e},children:[(0,s.jsx)(e4,{className:ee,dataTestId:u&&!r?"selected-dot-active":"selected-dot"}),(0,s.jsx)(Ep,{className:q,"data-testid":F?"correct-check-active":"correct-check"}),(0,s.jsx)(Op,{"aria-hidden":"true",className:fe,dataTestId:w?"incorrect-x-active":"incorrect-x",overrideStyle:!0})]}),(0,s.jsx)("div",{className:ye}),(0,s.jsx)("div",{className:"quiz-multiple-choice-option__text","data-testid":"quiz-mc-option-text",children:v({optionId:n,title:E})})]}),D&&(0,s.jsxs)("div",{className:"visually-hidden-always",id:V,children:[u&&i&&m?.a11yQuizReviewCorrectlySelected,u&&!i&&m?.a11yQuizReviewIncorrectlySelected,!u&&i&&m?.a11yQuizReviewIncorrectlyUnselected,!u&&!i&&m?.a11yQuizReviewCorrectlyUnselected]})]})},b3=KH;function QH(t){return t.length===0}function ZH(t,e){return t.includes(e)}function YH(t,e){return t.includes(e)?t.filter(n=>n!==e):[...t,e]}const XH=({allowTabNavigation:t,correctIds:e=[],errorMessageId:n,isComplete:o,isCorrect:r,labels:a,onChange:i,onEnterToSubmit:c,options:u=[],questionHtmlId:d,renderOptionText:m,isRetaking:p,revealAnswers:f,selectedIndices:g=[]})=>(0,s.jsx)("div",{"aria-labelledby":[d,n].filter(Boolean).join(" "),role:"group",children:(0,s.jsx)("ul",{children:u.map((v,C)=>(0,s.jsx)(JH,{allowTabNavigation:t,errorMessageId:n,id:v.id,index:C,isComplete:o,isCorrect:r,isCorrectOption:e.includes(v.id),isRetaking:p,isSelected:!p&&ZH(g,C),labels:a,onChange:i,onEnterToSubmit:c,renderOptionText:m,revealAnswers:f,title:v.title},v.id))})}),JH=({allowTabNavigation:t,errorMessageId:e,id:n,index:o,isComplete:r,isCorrect:a,isCorrectOption:i,isSelected:c,labels:u,onChange:d,onEnterToSubmit:m,renderOptionText:p,isRetaking:f,revealAnswers:g,title:v})=>{const[C]=(0,h.useState)(()=>Ct()("qmr-")),x=r&&g===xt.iV.ALL&&!f,L=x?`${C}-result`:void 0,y=!!r,E=t?0:Ud,b=g===xt.iV.ALL,S=g==xt.iV.INCORRECT,T=b||S&&a||S&&!a&&c,N=Q()("quiz-multiple-response-option",{"quiz-multiple-response-option--complete":r,"quiz-multiple-response-option--selected":c,"quiz-multiple-response-option--correct":r&&i&&T,"quiz-multiple-response-option--incorrect":r&&!i&&T}),j=Q()("quiz-multiple-response-option__border"),R=(0,h.useCallback)(A=>{na(A)&&m(A)},[m]),O=(0,h.useCallback)(()=>{d({optionIndex:o})},[o,d]),P=r?void 0:R;return(0,s.jsxs)("li",{children:[(0,s.jsxs)("label",{"aria-describedby":L,className:N,children:[(0,s.jsx)("input",{"aria-describedby":e||void 0,"aria-invalid":e?!0:void 0,checked:c,className:"quiz-multiple-response-option__input",disabled:y,onChange:r?void 0:O,onKeyDown:P,tabIndex:E,type:"checkbox"}),(0,s.jsxs)("div",{className:"quiz-multiple-response-option__indicator",children:[(0,s.jsx)(Ep,{className:"quiz-multiple-response-option__check"}),(0,s.jsx)(Op,{"aria-hidden":"true",className:"quiz-multiple-response-option__x",height:"8",overrideStyle:!0,width:"8"})]}),(0,s.jsx)("div",{className:j}),(0,s.jsx)("div",{className:"quiz-multiple-response-option__text",children:p({optionId:n,title:v})})]}),x&&(0,s.jsxs)("div",{className:"visually-hidden-always",id:L,children:[c&&i&&u?.a11yQuizReviewCorrectlyChecked,c&&!i&&u?.a11yQuizReviewIncorrectlyChecked,!c&&i&&u?.a11yQuizReviewIncorrectlyUnchecked,!c&&!i&&u?.a11yQuizReviewCorrectlyUnchecked]})]})},y3=XH;var qH=l(46387),nr=l.n(qH),eF=l(22496),L3=l.n(eF),tF,sF;const nF=fs()(It()("correct",!0)),Bse=t=>tF(sF(t),vm),oF=t=>({MATCHING:nr(),FILL_IN_THE_BLANK:gm,MULTIPLE_CHOICE:nr(),MULTIPLE_RESPONSE:nr()})[t],vm=Xe()(L3()("id"),nF),rF=Xe()(sn(),vm),gm=fs()(It()("correct",!0)),aF=Xe()(gt()("id"),sn()),Hse={MULTIPLE_CHOICE:{label:"Multiple Choice",icon:(0,s.jsx)(t7,{})},MULTIPLE_RESPONSE:{label:"Multiple Response",icon:(0,s.jsx)(s7,{})},FILL_IN_THE_BLANK:{label:"Fill in the blank",icon:(0,s.jsx)(O0,{})},MATCHING:{label:"Matching",icon:(0,s.jsx)(J9,{})}};var iF=l(30373);const{FILL_IN_THE_BLANK:lF,MATCHING:E3,MULTIPLE_CHOICE:cF,MULTIPLE_RESPONSE:dF}=xt.UQ;function S3({type:t,text:e="",matches:n={},answersLength:o=0,selectedIndices:r=[],selectedIndex:a}){switch(t){case lF:return!(0,iF.h)(e);case E3:return zH(n)===o;case dF:return!QH(r);case cF:default:return!x3(a)}}function uF({answered:t=!1,...e}){return t&&e.type!==E3?!1:S3(e)}function T3(t,e){const n=t.trim();return e?n:n.toLowerCase()}function I3({answers:t,text:e,caseSensitive:n=!1,getL10nValue:o}){if(!e)return!1;const r=T3(e,n);return t.some(a=>{const i=o(a.title);return typeof i!="string"?!1:T3(i,n)===r})}function N3(t){return Object.entries(t).every(([e,n])=>e===String(n))}function hF(t){const e=t.answers??[],n=t.correct;if(n!=null)return e.findIndex(r=>r.id===n);const o=e.findIndex(r=>r.correct===!0);return o===-1?0:o}function j3({isCorrectAnswerUnshuffled:t=!1,isShuffled:e=!1,item:n,selectedIndex:o,shuffledAnswerIndices:r}){if(o==null||e&&!Array.isArray(r))return!1;const a=e&&!t?r.indexOf(o):o,i=hF(n);return a===i}function mF(t,e){return e.map(n=>t.indexOf(n))}function pF(t){return typeof t=="object"&&t!==null&&"id"in t?t.id:t}function fF(t){const e=t.answers??[],n=t.corrects??[];return n.length>0?n.map(a=>{const i=pF(a);return e.findIndex(c=>c.id===i)}).filter(a=>a>=0).sort((a,i)=>a-i):e.map((r,a)=>r.correct===!0?a:-1).filter(r=>r>=0).sort((r,a)=>r-a)}function k3(t){return[...t].sort((e,n)=>e-n)}function A3({isShuffled:t=!1,item:e,selectedIndices:n,shuffledAnswerIndices:o}){if(!Array.isArray(n)||t&&!Array.isArray(o))return!1;const r=t?mF(o,n):n,a=fF(e),i=k3(r),c=k3(a);return i.length!==c.length?!1:i.every((u,d)=>u===c[d])}function R3({answers:t,feedback:e,feedbackCorrect:n,feedbackIncorrect:o,feedbackType:r,isCorrect:a,isShuffled:i=!1,selectedIndex:c,shuffledAnswerIndices:u}){switch(r){case"CHOICE":{if(c==null||!t)return;const d=i&&Array.isArray(u)?u.indexOf(c):c;return t[d]?.feedback}case"CORRECT_INCORRECT":return a?n:o;default:return e}}var Fse=l(55423),zse=l(76522),Vse=l(98256),vF,gF,P3,CF,xF,bF,yF;const LF=(t,e,n=[])=>{const o=gF(bF("id",t),e),{parentId:r}=o||{},a=o?[o,...n]:n;return r?LF(r,e,a):a},Cm="owner",w3="manager",M3="editor",O3=["viewer",M3,w3,Cm],xm=({effectiveRole:t,requiredRole:e})=>{const n=P3(t,O3),o=P3(e,O3);return n>=o},EF=t=>({editor:xm({effectiveRole:t,requiredRole:M3}),manager:xm({effectiveRole:t,requiredRole:w3}),owner:xm({effectiveRole:t,requiredRole:Cm})}),$se=(t,e,n)=>{const{authorId:o}=t,r=o===n,a=c=>r||c,i=SF(e);return xF(CF(["canChangePermissions","canMoveTo"]),vF({canDelete:a,canEdit:a,canMove:a,canRename:a,canUnshare:a}))(i)},SF=t=>{const{effectiveRole:e,type:n}=t||[],o=n!==yF?Cm:e,{editor:r,manager:a,owner:i}=EF(o);return{canChangePermissions:a,canCreate:r,canDelete:i,canEdit:r,canMove:a,canMoveTo:r,canRename:r,canUnshare:i}};var TF,IF,lc,NF,jF,kF,AF,D3,Ri,RF,B3,H3,PF,wF,cc,MF,OF,F3,DF,Ru,BF,HF,z3,FF,V3,zF,VF,Pi;const UF={[xt.UQ.FILL_IN_THE_BLANK]:"fillin",[xt.UQ.MATCHING]:"matching",[xt.UQ.MULTIPLE_CHOICE]:"multiple choice",[xt.UQ.MULTIPLE_RESPONSE]:"multiple response"},wi="personal",U3="team",Wse=500,Gse={id:null,deleted:!1,type:wi},Kse={id:"deleted",deleted:!0,type:wi},$3=({questions:t=[],drawnQuestionIds:e=[]})=>{const n=a=>!e.some(i=>i.includes(a.id)),o=t.filter(n),r=Math.floor(Math.random()*o.length);return o[r]??null},$F=t=>e=>e.type===wi||V3({effectiveRole:e.effectiveRole,requiredRole:t}),WF=({folders:t,requiredRole:e,teamAccount:n})=>Pi(t,z3,B3,Ri(o=>$F(e)&&(n||o.type===wi))),_se=({questionBanks:{folders:t,questionBanks:e},requiredRole:n=zF,teamAccount:o,term:r})=>{if(r&&wF(HF(r)))return{folders:[],questionBanks:[]};const a=new RegExp("("+FF(r)+")","i"),i=WF({folders:t,requiredRole:n,teamAccount:o}),c=F3("id",i),u=Ri(m=>m.title.match(a)&&!m.deleted,i),d=Ri(m=>(cc(m.folderId)||D3(m.folderId,c))&&m.title.match(a)&&!m.deleted,e);return{folders:u,questionBanks:d}},W3=(t,e,n=!1)=>Pi(e,PF(lc(!cc(t)),DF(t),OF(z3,B3)),BF(Ru("deleted",!n))),GF=(t,e,n,o=!1)=>{const r=t===U3,a=t===wi,i=Pi(W3(U3,n),F3("id")),c=u=>!cc(u.folderId)&&D3(u.folderId,i);return Pi(e,Ri(AF([[lc(o),u=>u.deleted],[lc(r),u=>!u.deleted&&c(u)],[lc(a),u=>!u.deleted&&!c(u)],[lc(cc(t)),u=>!u.deleted],[TF,H3]])))},KF=({type:t})=>t===wi,G3=({effectiveRole:t})=>V3({effectiveRole:t,requiredRole:VF}),_F=(t,e)=>({id:n})=>n?kF(NF(H3),MF(IF([Ru("folderId",n),Ru("authorId",t)])))(e):!1,QF=(t,e,n,o)=>Pi(W3(e,t),Ri(jF([KF,G3,_F(o,n)]))),ZF=(t,e)=>n=>{if(cc(n.folderId))return!0;const o=RF(Ru("id",n.folderId),t);if(!o)return!1;const r=G3(o),a=n.authorId===e;return r||a},YF=(t,e,n,o,r)=>Pi(GF(t,e,n),Ri(ZF(o,r))),Qse=(t,e,n,o)=>{const r=QF(t,n,e,o),a=YF(n,e,t,r,o);return{folders:r,questionBanks:a}},{FILL_IN_THE_BLANK:Mi,MATCHING:Pu,MULTIPLE_CHOICE:wu,MULTIPLE_RESPONSE:Mu}=xt.UQ,XF={FILL_IN_THE_BLANK:"a11yBlockKnowledgeCheckFIB",MATCHING:"a11yBlockKnowledgeCheckM",MULTIPLE_CHOICE:"a11yBlockKnowledgeCheckMC",MULTIPLE_RESPONSE:"a11yBlockKnowledgeCheckMR"},JF=Lt()(null,[0,"type"]),bm=dn();class K3 extends h.Component{static get defaultProps(){return{items:[],lessonId:"",blockId:"",onStep:Function.prototype}}retakeAnimationStageOne;retakeAnimationStageTwo;takeAgainRef;block;wrapper;id;constructor(e){super(e),this.state={errorIncomplete:!1,selectedAnswer:null,selectedIndices:[],chosen:!1,answered:!1,fillInText:"",matches:{},questionHtmlId:`q-${xu()()}`},this.retakeAnimationStageOne=null,this.retakeAnimationStageTwo=null,this.takeAgainRef=(0,h.createRef)(),this.getSelection=this.getSelection.bind(this),this.handleFillIn=this.handleFillIn.bind(this),this.handleChoiceSelect=this.handleChoiceSelect.bind(this),this.handleMultipleResponseChange=this.handleMultipleResponseChange.bind(this),this.handleRetake=this.handleRetake.bind(this),this.renderQuestionTitle=this.renderQuestionTitle.bind(this),this.renderMultipleResponseOptionText=this.renderMultipleResponseOptionText.bind(this),this.renderMultipleChoiceOptionText=this.renderMultipleChoiceOptionText.bind(this),this.previewOnly__forceShowFeedback=this.previewOnly__forceShowFeedback.bind(this),this.previewOnly__clearOverrides=this.previewOnly__clearOverrides.bind(this),window.addEventListener($t,this.previewOnly__forceShowFeedback),window.addEventListener(K1,this.previewOnly__clearOverrides),this.id=Ct()("kc-")}componentDidUpdate(e,n){n.answered&&!this.state.answered?this.getType()!==Mi&&gh(this.wrapper):!n.answered&&this.state.answered&&setTimeout(()=>{this.takeAgainRef.current?.focus?.()},0)}componentWillUnmount(){this.retakeAnimationStageOne&&(clearTimeout(this.retakeAnimationStageOne),this.retakeAnimationStageOne=null),this.retakeAnimationStageTwo&&(clearTimeout(this.retakeAnimationStageTwo),this.retakeAnimationStageTwo=null),window.removeEventListener($t,this.previewOnly__forceShowFeedback),window.removeEventListener(K1,this.previewOnly__clearOverrides)}previewOnly__forceShowFeedback(e){const{itemId:n,path:o}=e.detail,{getL10nValue:r}=this.props;if(n!==this.props.blockId)return;const a=o.at(-1);if(typeof a=="string"&&a.startsWith?.("feedback")){const i=a==="feedbackCorrect",c=o.indexOf("answers"),u=o[c+1],d=c>-1&&typeof u!="string"?u.id:null,m={forceShowFeedback:!0,forceShowFeedbackCorrect:i,forceShowFeedbackMessage:""};if(d&&"answers"in this.props.items[0]){const p=this.props.items[0].answers.find(({id:g})=>g===d),f=p&&"feedback"in p?p?.feedback:void 0;m.forceShowFeedbackCorrect=p?.correct??!1,m.forceShowFeedbackMessage=r(f)}this.setState(m)}}previewOnly__clearOverrides(){this.setState({forceShowFeedback:!1,forceShowFeedbackCorrect:!1})}getSelection({item:e}){switch(e.type){case Mi:return this.state.fillInText;case Pu:return this.state.matches;case Mu:return this.state.selectedIndices;case wu:default:return this.state.selectedAnswer}}handleMatchesChange=e=>{this.setState({errorIncomplete:!1,matches:e})};handleMultipleResponseChange({optionIndex:e}){const{selectedIndices:n}=this.state;this.setState({errorIncomplete:!1,selectedIndices:YH(n,e)})}handleChoiceSelect({selectedIndex:e}){const{answered:n}=this.state;n||this.setState({errorIncomplete:!1,selectedAnswer:e,chosen:!0})}onSubmit(e,n,o,r,a){if(!n){switch(this.setState({errorIncomplete:!0}),r.type){case Mi:this.wrapper?.querySelector("input")?.focus();break;case Mu:case wu:this.wrapper?.querySelector("input")?.focus();break;case Pu:default:break}return}a?.preventDefault(),this.setState({answered:!0,isRetaking:!1}),o&&this.props.onStep({id:e})}handleFillIn(e){this.setState({errorIncomplete:!1,fillInText:e})}handleRetake(e){const{blockId:n,lessonId:o,settings:r}=this.props,{id:a}=e;this.setState({isRetaking:!0}),this.retakeAnimationStageOne=setTimeout(()=>{this.setState({answered:!1,chosen:!1,matches:{}},()=>{this.retakeAnimationStageOne=null})},400),this.retakeAnimationStageTwo=setTimeout(()=>{this.setState({fillInText:"",selectedAnswer:null,selectedIndices:[],isRetaking:!1,shouldFocusFirst:!0},()=>{!bm&&this.getType()===Mi&&gh(this.wrapper),this.retakeAnimationStageTwo=null}),r?.retryCount!=null&&(0,W.JD)((0,Jo.Sw)({blockId:n,itemId:a,lessonId:o}))},950)}resetErrorIncomplete(){this.state.errorIncomplete&&this.setState({errorIncomplete:!1})}resetShouldFocusFirst=()=>{this.state.shouldFocusFirst&&this.setState({shouldFocusFirst:!1})};renderQuestionTitle({title:e}){return(0,s.jsx)(ls,{className:"quiz-card__title",id:this.state.questionHtmlId,value:e})}renderQuestion(e){const{answered:n,errorIncomplete:o,isRetaking:r,selectedAnswer:a}=this.state,{blockId:i,enableVideoPlaybackSpeed:c,getL10nValue:u,labels:d,progress:m,renderQuestionTitle:p=this.renderQuestionTitle,settings:f}=this.props,{quizCorrect:g,quizIncorrect:v,quizRequireAnswer:C,quizSubmit:x,quizTakeAgain:L}=d,{id:y,type:E}=e,b=e.type!=="DRAW_FROM_QUESTION_BANK"?e.settings:{},S=u("media"in e?e.media:{}),T=this.state.forceShowFeedbackCorrect||this.getIsCorrect({item:e}),N=this.getCanSubmit({item:e}),j=f?.requireCorrectAnswer?T:!0,R=this.onSubmit.bind(this,y,N,j,e),O=this.getFeedback({item:e,isCorrect:T,selectedAnswer:a}),P=this.getSelection({item:e}),{columnBehavior:A,correctAnswerColor:F,correctAnswerColorContrast:w,incorrectAnswerColor:D,incorrectAnswerColorContrast:V}=f,_=T?F:D,ee=d.knowledgeCheckCorrectAnswerRequiredBlock,q=d.knowledgeCheckRetriesAttemptsRemaining,fe=d.knowledgeCheckMaxRetriesReached,ye=m?.items?.[i]?.items?.[y]?.retryAttemptCount??0,Ie=f?.retryCount!==0&&(f?.retryCount==null||f?.retryCount===-1||ye<f?.retryCount),we=f?.retryCount!=null||f?.retryCount===-1?f?.retryCount-ye:-1,Ve=!T,Me={"--color-feedback-icon":_,"--color-matching-feedback-bubble-bg":D,"--color-multiple-choice-complete-border":D,"--color-multiple-choice-correct-border":F,"--color-multiple-response-correct-border":F,"--color-multiple-response-incorrect-border":D,"--color-multiple-response-option-check":n?F:void 0,"--color-quiz-option-check":F,"--color-x-fill":D},me=f?.revealCorrectAnswers!==!1&&(f.retryCount==null||f.retryCount===-1||!Ie)?xt.iV.ALL:xt.iV.INCORRECT,ue=Q()("block-knowledge__retake-container",{"block-knowledge__retake-container--active":n,"block-knowledge__retake-container--active-attempts-left":n&&!r&&we>0}),Be=Q()("block-knowledge__retake",{"block-knowledge__retake--active":n&&!r&&Ie}),Re=Q()("block-knowledge__retake","block-knowledge__attempts-left",{"block-knowledge__retake--active":n&&!r&&Ie&&we>0}),We=Q()("block-knowledge__retake","block-knowledge__no-more-attempts",{"block-knowledge__retake--active":n&&!r&&!Ie}),He=!!S?.image,mt=!!S?.audio,ht=!!S?.video,yt=!!S?.embed;let Zt=null;mt&&He?Zt=(0,s.jsx)(Ir,{blockId:i,enableVideoPlaybackSpeed:c,index:`${i}-${y}-audio`,isOverlayAudio:!0,item:e,labels:d,media:S,settings:b}):mt&&(ht||yt)?Zt=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ir,{blockId:i,enableVideoPlaybackSpeed:c,index:`${i}-${y}-audio`,item:e,labels:d,media:{audio:S.audio},settings:b}),(0,s.jsx)(Ir,{blockId:i,enableVideoPlaybackSpeed:c,index:`${i}-${y}-video`,item:e,labels:d,media:ht?{video:S.video}:{embed:S.embed},settings:b})]}):Zt=(0,s.jsx)(Ir,{blockId:i,enableVideoPlaybackSpeed:c,index:`${i}-${y}-audio`,item:e,labels:d,media:S,settings:b});const Ht=Q()("block-knowledge__media",{"block-knowledge__image-with-audio":mt&&He});return(0,s.jsxs)(l3,{isActive:!0,style:Me,children:[f?.requireCorrectAnswer&&(n&&!T||!n)&&(0,s.jsxs)("div",{className:"quiz-card__require-correct-answer-disclaimer",children:[(0,s.jsx)(ct,{className:"quiz-card__require-correct-answer-disclaimer-icon",name:"info-circle"}),ee]}),p(e),(0,s.jsx)("div",{className:Ht,children:Zt}),(0,s.jsx)(h3,{type:E,children:this.renderType({columnBehavior:A,correctAnswerColor:F,correctAnswerColorContrast:w,incorrectAnswerColor:D,incorrectAnswerColorContrast:V,isCorrect:T,item:e,onSubmit:R})}),(0,s.jsx)("div",{"aria-live":"assertive",children:o&&(0,s.jsxs)("div",{className:"quiz-card__validations","data-testid":"quiz-validation-error",children:[(0,s.jsx)("span",{"data-testid":"quiz-validation-icon",children:(0,s.jsx)(ct,{className:"quiz-card__validation-icon",name:"alert-circle"})}),(0,s.jsx)("span",{id:`${this.id}-error-incomplete-message`,children:C})]})}),(0,s.jsx)(i3,{canProceed:n,canSubmit:N,isReduceMotion:bm,onSubmit:R,quizSubmit:x}),(0,s.jsx)(u3,{canProceed:this.state.forceShowFeedback||n,feedbackValue:O,isActive:n,isComplete:n,isCorrect:T,item:e,labels:d,quizCorrect:g,quizIncorrect:v,revealAnswers:me,selection:P}),(0,s.jsxs)("div",{"aria-hidden":!n,className:ue,children:[Ve&&(0,s.jsxs)(s.Fragment,{children:[Ie?(0,s.jsx)(Mt.ArcButton,{className:Be,hierarchy:"secondary",icon:(0,s.jsx)(ct,{name:"arrow-rotate-left"}),onClick:this.handleRetake.bind(this,e),ref:this.takeAgainRef,size:"md",tabIndex:n?void 0:-1,text:L}):null,we>0&&(0,s.jsxs)("div",{className:Re,children:[q," ",we]})]}),!Ie&&!T&&(0,s.jsx)("div",{className:We,children:fe})]})]},y)}getIsCorrect({item:e}){const{fillInText:n,matches:o,selectedAnswer:r,selectedIndices:a}=this.state,{type:i}=e,c="answers"in e?e.answers:void 0,u="isCaseSensitive"in e?e.isCaseSensitive:!1;switch(i){case Mi:return I3({answers:gm(c),text:n,caseSensitive:u,getL10nValue:this.props.getL10nValue});case Pu:return N3(o);case Mu:return A3({item:{answers:c},selectedIndices:a});case wu:default:return j3({item:{answers:c},selectedIndex:r})}}getType(){const{items:e}=this.props;return JF(e)}getCanSubmit({item:e}){const n="answers"in e?e.answers:void 0,{answered:o,fillInText:r,matches:a,selectedAnswer:i,selectedIndices:c}=this.state;return uF({type:e.type,text:r,matches:a,answersLength:n?.length??0,selectedIndices:c,selectedIndex:i,answered:o})}getFeedback({item:e,isCorrect:n,selectedAnswer:o}){if(this.state.forceShowFeedbackMessage)return this.state.forceShowFeedbackMessage;const r="feedback"in e?e.feedback:void 0,a="feedbackCorrect"in e?e.feedbackCorrect:void 0,i="feedbackIncorrect"in e?e.feedbackIncorrect:void 0,c="feedbackType"in e?e.feedbackType:void 0,u="answers"in e?e.answers:void 0,d=this.state.forceShowFeedbackCorrect??n;return R3({answers:u,feedback:r,feedbackCorrect:a,feedbackIncorrect:i,feedbackType:c,isCorrect:d,selectedIndex:typeof o=="number"?o:null})}getTypeLabel(){const{labels:e}=this.props,n=this.getType(),o=XF[n];return o?e?.[o]:e?.a11yBlockKnowledgeCheck}renderMultipleResponseOptionText(e,{title:n}){return(0,s.jsx)(ls,{className:"cursorAuto",value:n})}renderMultipleChoiceOptionText(e,{title:n}){return(0,s.jsx)(ls,{className:"quiz-multiple-choice-option__label cursorAuto",value:n})}renderType({columnBehavior:e,correctAnswerColor:n,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isCorrect:i,item:c,onSubmit:u}){const{isHidden:d,labels:m,prefersKeyboardNavigation:p,renderMultipleResponseOptionText:f=this.renderMultipleResponseOptionText,renderMultipleChoiceOptionText:g=this.renderMultipleChoiceOptionText,settings:v,progress:C,blockId:x}=this.props,{answered:L,fillInText:y,isRetaking:E,matches:b,selectedAnswer:S,selectedIndices:T,shouldFocusFirst:N,questionHtmlId:j}=this.state,{id:R,type:O}=c,P="answers"in c?c.answers:[],{quizAcceptableResponses:A,quizAnswerPlaceholder:F}=m,w=C?.items?.[x]?.items?.[R]?.retryAttemptCount??0,D=v?.retryCount!==0&&(v?.retryCount==null||v?.retryCount===-1||w<v?.retryCount),_=v?.revealCorrectAnswers!==!1&&(v.retryCount==null||v.retryCount===-1||!D)?xt.iV.ALL:xt.iV.INCORRECT,ee=this.state.errorIncomplete?`${this.id}-error-incomplete-message`:void 0;switch(O){case Mi:return(0,s.jsx)(m3,{allowTabNavigation:!0,correctAnswerColor:n,correctAnswerColorContrast:o,errorMessageId:ee,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isComplete:L,isCorrect:i,labels:m,onChange:this.handleFillIn,onEnterToSubmit:u,options:gm(P),questionHtmlId:j,quizAcceptableResponses:A,quizAnswerPlaceholder:F,revealAnswers:_,value:y});case Pu:return(0,s.jsx)(C3,{answers:oF(O)(P),columnBehavior:e,correctAnswerColor:n,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isActive:!d,isComplete:L,matches:b,onChange:this.handleMatchesChange,prefersKeyboardNavigation:p,revealAnswers:_});case Mu:return(0,s.jsx)(y3,{allowTabNavigation:!0,correctIds:vm(P),errorMessageId:ee,isComplete:L,isCorrect:i,isRetaking:E,labels:m,onChange:this.handleMultipleResponseChange,onEnterToSubmit:u,options:P,questionHtmlId:j,renderOptionText:f.bind(this,c),revealAnswers:_,selectedIndices:T});case wu:default:return(0,s.jsx)(b3,{allowTabNavigation:!0,correctId:rF(P)||aF(P),errorMessageId:ee,isComplete:L,isCorrect:i,isReduceMotion:bm,isRetaking:E,labels:m,onChange:this.handleChoiceSelect,onEnterToSubmit:u,onFocusFirstComplete:this.resetShouldFocusFirst,options:P,questionHtmlId:j,renderOptionText:g.bind(this,c),revealAnswers:_,selectedIndex:S,shouldFocusFirst:N})}}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,items:r,settings:a,variant:i}=this.props,{answered:c,isRetaking:u}=this.state,{entranceAnimation:d,knowledgeCheckWidth:m=76}=a,p=zh(m),f=Q()("block-knowledge",{"block-knowledge--answered":c,"block-knowledge--no-animation":!d,"block-knowledge--retake":u}),g=Q()("block-knowledge__wrapper",`block-knowledge__wrapper--${i}`,{[`block-knowledge__container--custom-width-${p}`]:!0}),v=Array.isArray(r)&&r.length>0?r.slice(0,1):[];return(0,s.jsx)(kt,{className:f,"data-testid":"block-kc-card",ref:C=>{this.block=C},style:this.getStyle(),children:(0,s.jsx)(Ot,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:(0,s.jsx)("div",{className:"block-knowledge__container",children:(0,s.jsx)("div",{className:"block-knowledge__row",children:(0,s.jsx)("div",{className:`block-knowledge__col--custom-width-${p}`,children:(0,s.jsx)(ws,{"aria-label":this.getTypeLabel(),className:g,"data-testid":"block-knowledge-wrapper",ref:C=>{this.wrapper=C},children:v.map(C=>this.renderQuestion(C))})})})})})})}getStyle(){const{backgroundColor:e,settings:n}=this.props;if(n?.cardMode===Dn.TRANSPARENT)switch(n?.backgroundType){case M.xj.ACCENT:case M.xj.COLOR:case M.xj.TINT:switch((0,ft.XC)(e)){case ft.lL.LIGHT:return{"--color-background-choice-hover":(0,ft.W8)(.5,e),"--color-background-feedback-frame":(0,ft.W8)(.5,e)};case ft.lL.MED:return{"--color-background-choice-hover":(0,ft.W8)(-.3,e),"--color-background-feedback-frame":(0,ft.W8)(-.3,e)};case ft.lL.DARK:return{"--color-background-choice-hover":(0,ft.W8)(-.6,e),"--color-background-feedback-frame":(0,ft.W8)(-.6,e)};case ft.lL.NEAR_BLACK:return{"--color-background-choice-hover":(0,ft.W8)(.15,e),"--color-background-feedback-frame":(0,ft.W8)(.15,e)}}}}}const qF=t=>{const{blockId:e,items:[n]}=t,{questions:o}=n,[r,a]=(0,h.useState)(()=>$3({questions:o}));(0,h.useEffect)(()=>{if(!o)return;const c=u=>{const{path:d}=u.detail;if(d[d.indexOf("items")+1]?.id!==e)return;const p=d[d.lastIndexOf("questions")+1]?.id;if(p===r?.id)return;const f=o.find(({id:g})=>g===p);f&&a(f)};return window.addEventListener($t,c),()=>window.removeEventListener($t,c)},[e,r,o]);const i=(0,h.useMemo)(()=>r?{variant:UF[r.type],items:[r]}:{},[r]);return r?(0,s.jsx)(K3,{...t,...i}):(0,s.jsx)("div",{})},ez=t=>t.variant==="draw from question bank",Oi=t=>{const e=En()??"",n=Ys(),o=(0,nt.gY)(),r={...t,backgroundColor:e,getL10nValue:o,blockSettings:n};return ez(r)?(0,s.jsx)(qF,{...r}):(0,s.jsx)(K3,{...r})};var tz=l(89226),sz=l.n(tz);class nz extends h.Component{refWrap;refBubbleTitle;portal;contentRef;scrollRef;videoContainer;constructor(e){super(e),this.state={hasOverflow:!1},this.refWrap=(0,h.createRef)(),this.refBubbleTitle=(0,h.createRef)(),this.renderOverflowMask=this.renderOverflowMask.bind(this),this.handleScroll=this.handleScroll.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleNextClick=this.handleNextClick.bind(this),this.handlePreviousClick=this.handlePreviousClick.bind(this),this.portal=fr()}static defaultProps={allowNav:!0,onClose:()=>{},onNextClick:()=>{},onPreviousClick:()=>{}};componentWillUnmount(){document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.contentRef.removeEventListener("scroll",this.scrollRef)}UNSAFE_componentWillReceiveProps(e){e.isActive&&setTimeout(this.renderOverflowMask,100)}componentDidUpdate(e){if(!e.isActive&&this.props.isActive){setTimeout(()=>{document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleDocumentKeyDown)},0),this.contentRef.scrollTop=0,this.refBubbleTitle.current?.focus?.();const n=this.props.media;this.props.dispatch(Lr({audioPlayerId:ro({refs:`items:${this.props.blockId}/items:${this.props.item?.id}`}),transcriptMedia:n}))}else e.isActive&&!this.props.isActive&&(document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.state.hasOverflow&&this.contentRef.removeEventListener("scroll",this.scrollRef))}render(){const{accentColor:e,allowNav:n,description:o,htmlId:r,isActive:a,media:i,title:c,x:u,y:d}=this.props,m=Q()("bubble",{"bubble--active":a}),p=az({x:u,y:d}),f=iz({hasOverflow:this.state.hasOverflow,x:u,y:d}),g={borderBottomColor:e},v=`${r}-title`,C=()=>{if(!i)return(0,s.jsx)(Tt,{allowTabNavigation:a,className:"bubble__description",value:o});const L=this.props.getL10nValue(i)??{},y=ao(L,this.props.audioPosition,!0,"labeled-graphic"),E={blockId:this.props.blockId,hasPadding:!1,imageMaxHeight:1e3,item:this.props.item,labels:this.props.labels,lessonId:this.props.lessonId,enableVideoPlaybackSpeed:this.props.enableVideoPlaybackSpeed,opts:this.props.mediaOpts,refs:`items:${this.props.blockId}/items:${this.props.item?.id}`,shouldPause:!a},b={audio:{media:y.audioOnlyMedia||L,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-audio`},image:{media:y.imageOnlyMedia||L,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-image`},video:{media:y.videoOnlyMedia||L,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-video`},embed:{media:y.embedOnlyMedia||L,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-embed`},overlay:{media:L,isOverlayAudio:!0,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-overlay`}};return(0,s.jsx)(s.Fragment,{children:y.renderOrder.map((S,T)=>{if(S==="text")return(0,s.jsx)(Tt,{allowTabNavigation:a,className:"bubble__description",value:o},`text-${T}`);const N=b[S];return!N||S==="embed"&&!a?null:(0,s.jsx)("div",{className:"bubble__media",children:(0,s.jsx)("div",{className:"bubble__figure",children:(0,s.jsx)("div",{className:Q()({"labeled-graphic-bubble-media-container--audio-bottom":S==="audio"&&this.props.audioPosition==="bottom"}),children:(0,s.jsx)(zs,{...E,...N})})})},`${S}-${T}`)})})},x=(0,s.jsx)("div",{className:m,ref:this.refWrap,style:p,children:(0,s.jsxs)("dialog",{"aria-hidden":!a,"aria-labelledby":v,"aria-modal":"false",className:f,id:r,onKeyDown:this.handleKeyDown,style:g,children:[(0,s.jsx)("h2",{className:"bubble__title",id:v,ref:this.refBubbleTitle,tabIndex:-1,children:(0,s.jsx)(is,{value:c})}),(0,s.jsx)("button",{"aria-label":"Close modal",className:"bubble__close",onClick:this.handleCloseClick,type:"button",children:(0,s.jsx)(s4,{className:"bubble__close-icon"})}),(0,s.jsx)("div",{className:"bubble__content",ref:L=>{this.contentRef=L},children:C()}),n&&this.renderControls()]})});return window.matchMedia("(max-width: 767px)").matches?(0,eo.createPortal)((0,s.jsx)(hg,{children:x}),this.portal):x}renderControls(){const{accentColor:e,labels:n}=this.props,o={"--color-lg-accent":e};return(0,s.jsxs)("div",{className:"bubble__controls",style:o,children:[(0,s.jsx)("button",{"aria-label":n?.a11yCarouselPrevious,className:"bubble__prev",onClick:this.handlePreviousClick,type:"button",children:(0,s.jsx)("i",{className:"icon icon-chevron-left"})}),(0,s.jsx)("button",{"aria-label":n?.a11yCarouselNext,className:"bubble__next",onClick:this.handleNextClick,type:"button",children:(0,s.jsx)("i",{className:"icon icon-chevron-right"})})]})}renderOverflowMask(){if(!this.contentRef)return;const e=this.contentRef,n=e.offsetHeight;e.scrollHeight>n?(e.addEventListener("scroll",this.scrollRef=bu()(this.handleScroll,50)),this.setState({hasOverflow:!0}),this.scrollRef()):(e.removeEventListener("scroll",this.scrollRef),this.setState({hasOverflow:!1}))}handleDocumentClick=e=>{const n=Array.from(document.querySelectorAll("dialog[open]"))?.reduce((o,r)=>r.contains(e.target)||o,!1);!this.props.isActive||n||this.props.onClose({shouldFocusMarker:!1})};handleDocumentKeyDown=e=>{cn(e)&&this.props.isActive&&this.props.onClose({shouldFocusMarker:!1})};handleKeyDown(e){const{allowNav:n,onNextClick:o,onPreviousClick:r}=this.props,a=OL(this.contentRef,this.state.hasOverflow),i=sz()(os()(n));ln()([[i(br),r],[i(yr),o],[ef,a]])(e)}handleCloseClick=()=>{this.props.onClose()};handleNextClick(e){this.props.onNextClick(e)}handlePreviousClick(e){this.props.onPreviousClick(e)}handleScroll(){const e=this.contentRef,n=e.scrollTop,o=e.scrollHeight,r=e.offsetHeight;n>=o-r-10?this.setState({hasOverflow:!1}):this.state.hasOverflow||this.setState({hasOverflow:!0})}getMediaContainerClasses(e,n){return Q()({"labeled-graphic-bubble-media-container":e,"labeled-graphic-bubble-media-container--audio-overlay":n,"labeled-graphic-bubble-media-container--audio-on-bottom":e&&this.props.audioPosition==="bottom"})}}const oz=Gt(nz),rz=(0,ks.Ls)()(oz),az=({x:t,y:e})=>{const n={top:"initial",bottom:"initial",left:"0",right:"0"};return t>50?n.right=100-t+"%":n.left=t+"%",e>50?n.bottom=100-e+"%":n.top=e+"%",n},iz=({hasOverflow:t,x:e,y:n})=>{const o=e<50;let r="top";return n>33&&(r=n>66?"bottom":"middle"),Q()("bubble__body","bg--range-light",{"bubble__body--has-overflow":t,"bubble__body--left":o,"bubble__body--right":!o,"bubble__body--top":r==="top","bubble__body--middle":r==="middle","bubble__body--bottom":r==="bottom"})};var lz=l(26372);const cz=t=>new URL(t).pathname.slice(1)+new URL(t).search;class dz extends lz.Component{imageEl;constructor(e){super(e),this.state={style:{}}}render(){const{canvasClassNames:e,children:n,cornerRadius:o,editable:r,editingDisabled:a,getL10nValue:i,imageLoaded:c,media:u,onCreateMarker:d,onShowAltDialog:m}=this.props,{style:p}=this.state,f=i(u)?.image??{},{alt:g,dimensions:v,key:C,src:x}=f,L=!!f.alt,y=(0,Fs.Ll)(g),E=(0,Fs.Zd)(f),b=Q()("labeled-graphic-canvas__figure",{"labeled-graphic-canvas__figure--editable":r&&!a,"labeled-graphic-canvas__figure--editing-disabled":r&&a});let S;C?S=(0,Ft.ME)(f):x&&(S=(0,Ft.ME)({key:cz(x),...f}));const T=Q()("labeled-graphic-canvas__image","labeled-graphic-canvas__image--flag-dimensions",{"labeled-graphic-canvas__image--svg":(0,Fs.sg)(S)}),N={...p,...o!=null&&{"--corner-radius":`${Number(o)}px`}},j=(0,s.jsx)(Tn,{alt:y,className:T,"data-l10n-id":(0,pt.pP)(u),height:v?.height||v?.originalHeight,onClick:d,onLoad:()=>this.setState({style:E}),ref:R=>{this.imageEl=R},src:S,style:N,width:v?.width||v?.originalWidth});return(0,s.jsx)("div",{className:e||"labeled-graphic-canvas",children:(0,s.jsx)("div",{className:"labeled-graphic-canvas__item",children:(0,s.jsx)("div",{className:"labeled-graphic-canvas__bounds",children:(0,s.jsxs)("figure",{className:b,children:[L&&r&&(0,s.jsx)(Mt.ArcTooltip,{anchorAt:"top-center",text:"Edit alt text",children:(0,s.jsx)("div",{className:"item-media__tooltip",children:(0,s.jsx)("button",{className:"labeled-graphic-canvas__alt-tag",onClick:m,type:"button",children:"ALT"})})}),c&&j,(0,s.jsx)("ol",{role:"list",children:n})]})})})})}}const uz=Gt(dz),hz={"01":"a11yLabeledGraphicIconPlus","02":"a11yLabeledGraphicIconDot","03":"a11yLabeledGraphicIconInformation","04":"a11yLabeledGraphicIconQuestion","05":"a11yLabeledGraphicIconCheck","06":"a11yLabeledGraphicIconX","07":"a11yLabeledGraphicIconHeart","08":"a11yLabeledGraphicIconPin","09":"a11yLabeledGraphicIconArrowLeft",10:"a11yLabeledGraphicIconArrowRight",11:"a11yLabeledGraphicIconArrowUp",12:"a11yLabeledGraphicIconArrowDown",13:"a11yLabeledGraphicIconArrowUpLeft",14:"a11yLabeledGraphicIconArrowUpRight",15:"a11yLabeledGraphicIconArrowDownLeft",16:"a11yLabeledGraphicIconArrowDownRight",17:"1",18:"2",19:"3",20:"4",21:"5",22:"6",23:"7",24:"8",25:"9",26:"0"},mz=(t,e)=>{const n=hz[e];return n?.startsWith("a11y")?t?.[n]||"":n||""};var pz=l(26372);const _3=ne("labeled-graphic-marker");class fz extends pz.Component{marker;onMouseMove;onMouseLeave;constructor(e){super(e),this.state={dragging:!1,hovering:!1,isComplete:!1,isDragged:!1,offsetX:0,offsetY:0,wasDragged:!1},this.onClick=this.onClick.bind(this)}parentCanvasElement(){return this.marker.parentElement.parentElement.parentElement}componentDidMount(){const e=this.parentCanvasElement();e.addEventListener("mousemove",this.onMouseMove=n=>{this.onItemDrag(n)}),e.addEventListener("mouseleave",this.onMouseLeave=n=>{this.onItemRelease(n)})}componentWillUnmount(){const e=this.parentCanvasElement();e.removeEventListener("mousemove",this.onMouseMove),e.removeEventListener("mouseleave",this.onMouseLeave)}UNSAFE_componentWillReceiveProps(e){const{isSelected:n,useLocalStateForCompletion:o}=e;n&&o&&!this.state.isComplete&&this.setState({isComplete:!0})}buildMarkerLabel=({icon:e,label:n,title:o,viewed:r})=>{const{labels:a}=this.props;return[].concat(n||[]).concat(o||[]).concat(e||[]).concat(r?a?.a11yLabeledGraphicViewed:a?.a11yLabeledGraphicUnviewed).join(", ")};render(){const{accentColor:e,ariaControls:n,icon:o,isActive:r,isComplete:a,isLessonBlocksList:i,isSelected:c,isVisible:u,labels:d,markerColor:m,markerColorContrast:p,onFocus:f,styles:g,useLocalStateForCompletion:v}=this.props,C=this.props.getL10nValue(this.props.title),x=mz(d,o),L=v?this.state.isComplete:a,y=!!m,E=(0,ft.cP)(m)?M.Em.LIGHT:M.Em.DARK,S=Rs({backgroundColor:m,contrast:p??E}),T=y?m:"#ffffff",N=y?S:e,j=this.buildMarkerLabel({icon:x,label:d&&d.a11yLabeledGraphicButtonMarker||"",title:C,viewed:L}),R=_3({active:c,dragged:this.state.isDragged,visible:u,complete:L}),O={...g,"--color-lg-accent":T,"--color-lg-font":N},P=_3("pin",{selected:c,disabled:i});return(0,s.jsx)("button",{"aria-controls":n,"aria-expanded":r,"aria-label":j,className:R,onClick:this.onClick,onContextMenu:this.onItemRelease.bind(this),onFocus:f,onMouseDown:this.onItemGrab.bind(this),onMouseEnter:this.onHover.bind(this),onMouseLeave:this.onLeave.bind(this),onMouseUp:this.onItemRelease.bind(this),ref:A=>{this.marker=A},style:O,type:"button",children:(0,s.jsx)("span",{className:P,children:(0,s.jsx)("i",{className:`icon icon-Master-${o}`})})})}focus(){this.marker&&this.marker.focus&&this.marker.focus()}onHover(){this.state.wasDragged&&this.props.onHover(),this.setState({hovering:!0})}onLeave(){this.props.onLeave(),this.setState({hovering:!1})}onClick(){const{editable:e,itemId:n,onClick:o,parentId:r}=this.props,a="labeledGraphicMarkerClick",i={detail:{itemId:n,parentId:r}},c=new CustomEvent(a,i);document.dispatchEvent(c),e||o()}onItemGrab(e){const{editable:n}=this.props;if(!n)return;const o=this.marker.getBoundingClientRect(),r=o.left-e.clientX+this.marker.offsetWidth/2,a=o.top-e.clientY+this.marker.offsetHeight/2;this.setState({posX:e.clientX,posY:e.clientY,offsetX:r,offsetY:a,isDragged:!0})}onItemDrag(e){if(this.state.isDragged){const n=e.clientX-this.state.posX,o=e.clientY-this.state.posY;this.marker.style.transform=`translate3d(${n}px, ${o}px, 0)`}}onItemRelease(e){const{editable:n}=this.props,o={isDragged:!1};this.marker.style.transform="translate3d(0, 0, 0)",this.state.isDragged&&this.state.posX===e.clientX&&this.state.posY===e.clientY?this.props.onClick():n&&e.currentTarget instanceof HTMLElement&&e.currentTarget.classList.contains("labeled-graphic-marker")?this.props.onSetPosition(e,this.state.offsetX,this.state.offsetY):this.state.isDragged&&(o.offsetX=0,o.offsetY=0),this.setState(o)}}const vz=Gt(fz);class gz extends h.Component{static get defaultProps(){return{animateBlockEntrance:!1,editable:!0,getL10nValue:e=>e,markerDelay:0,onClose:Function.prototype,onCreateMarker:Function.prototype,onItemClear:Function.prototype,onItemHint:Function.prototype,onItemSelected:Function.prototype,onNextClick:Function.prototype,onPreviousClick:Function.prototype,onSetMarkerPosition:Function.prototype,showBubbles:!0}}markerRefs;timeout;entranceDoneTimeout;canvas;constructor(e){super(e);const{isLearner:n}=e;this.afterAnimatedIn=this.afterAnimatedIn.bind(this),this.createMarker=this.createMarker.bind(this),this.onBubbleClose=this.onBubbleClose.bind(this),this.onMarkerFocus=this.onMarkerFocus.bind(this),this.markerRefs={},this.state={showMarkers:!n||dn()}}componentDidMount(){const{isBlock:e,isLearner:n,isPreview:o,markerDelay:r}=this.props;n&&!e&&(this.timeout=setTimeout(()=>this.setState({showMarkers:!0}),o?0:r))}componentWillUnmount(){clearTimeout(this.timeout),clearTimeout(this.entranceDoneTimeout)}render(){const{accentColor:e,animateBlockEntrance:n,blockId:o,color:r,canvasClassNames:a,disableCreateMarker:i,editable:c,getL10nValue:u,imageLoaded:d=!0,isBlock:m,isLearner:p,isLessonBlocksList:f,isPreview:g,initiallyVisible:v,items:C,labels:x,lessonId:L,media:y,onItemClear:E,onItemHint:b,onItemSelected:S,onNextClick:T,onPreviousClick:N,onShowAltDialog:j,parentId:R,progress:O,selected:P,settings:A={},showBubbles:F,enableVideoPlaybackSpeed:w}=this.props,{cornerRadius:D,markerColor:V,markerColorContrast:_}=A,{showMarkers:ee}=this.state,fe=V||(e||r),ye=Q()("map-item",{"map-item--animated":!c}),Ie=n?"fadeIn":"none",we=n?1:0,Ve=C.length>1;return(0,s.jsx)(h.Fragment,{children:(0,s.jsx)(Ot,{afterAnimatedIn:this.afterAnimatedIn,animateBlockEntrance:!g,animateIn:Ie,duration:g?0:we,initiallyVisible:v,isLearner:p,children:(0,s.jsx)(uz,{canvasClassNames:a,cornerRadius:D,editable:c,editingDisabled:i,imageLoaded:d,media:y,onCreateMarker:this.createMarker,onShowAltDialog:j,ref:Me=>{this.canvas=Me},children:C.map((Me,Ae)=>{const{description:me,id:ue,icon:Be,media:Re,title:We}=Me,He=u(Me.x),mt=u(Me.y),ht={top:mt+"%",left:He+"%"},yt=Qt()(["items",ue,"isComplete"],O),Zt=P===ue,Ht=`bubble-${o}-${ue}`;return(0,s.jsxs)("li",{className:ye,role:"listitem",children:[(0,s.jsx)(vz,{accentColor:fe,ariaControls:Ht,editable:c,icon:Be,isActive:P===ue,isComplete:yt,isLessonBlocksList:f,isSelected:Zt,isVisible:ee,itemId:ue,labels:x,markerColor:V,markerColorContrast:_,onClick:()=>{S(ue)},onFocus:this.onMarkerFocus(ue),onHover:()=>{b()},onLeave:()=>{E()},onSetPosition:this.onSetPosition.bind(this,Me),parentId:R,ref:Wn=>{this.markerRefs[ue]=Wn},styles:ht,title:We,useLocalStateForCompletion:m},ue),!c&&F&&(0,s.jsx)(rz,{accentColor:fe,allowNav:Ve,audioPosition:A.audioPosition,blockId:o,description:me,enableVideoPlaybackSpeed:w,htmlId:Ht,index:Ae,isActive:Zt,item:Me,labels:x,lessonId:L,media:Re,mediaOpts:{disableZoom:!A.zoomOnClick},onClose:this.onBubbleClose(ue),onNextClick:()=>{T(Ae)},onPreviousClick:()=>{N(Ae)},title:We,x:Number(He),y:Number(mt)},Ht)]},ue)})})})})}createMarker(e){const{disableCreateMarker:n,editable:o,onCreateMarker:r}=this.props;if(!o||n)return;const{x:a,y:i}=this.findItemCoordinates({e}),c=this.props.items.length,d={description:"",hasMedia:!1,icon:"01",id:xu()(),isActive:!1,title:"",x:String(a),y:String(i)};r({index:c,payload:d})}onBubbleClose(e){const{onClose:n}=this.props;return(o={shouldFocusMarker:!0})=>{const r=this.markerRefs[e];o.shouldFocusMarker&&r?.focus?.(),n()}}onMarkerFocus(e){return()=>{const{onClose:n,selected:o}=this.props;o&&o!==e&&n()}}onSetPosition(e,n,o,r){if(!this.props.editable)return;const{lesson:a,onSetMarkerPosition:i}=this.props,{id:c,items:u}=a,{x:d,y:m}=this.findItemCoordinates({e:n,offsetX:o,offsetY:r}),p={x:String(d),y:String(m)};(0,ds.uW)(e.x)&&(0,ds.uW)(e.y)?(this.props.updateL10n({l10n:e.x,value:p.x}),this.props.updateL10n({l10n:e.y,value:p.y})):i({itemId:e.id,lessonId:c,items:u,payload:p})}findItemCoordinates({e,offsetX:n=0,offsetY:o=0}){const r=this.canvas.imageEl.getBoundingClientRect(),a=20,i=this.findItemCoordinate({clientPos:e.clientX,clientOffset:n,rectSubtractor:r.left,rectDivisor:r.width,validOffsetAmount:a}),c=this.findItemCoordinate({clientPos:e.clientY,clientOffset:o,rectSubtractor:r.top,rectDivisor:r.height,validOffsetAmount:a});return{x:i,y:c}}findItemCoordinate({clientPos:e,clientOffset:n,rectSubtractor:o,rectDivisor:r,validOffsetAmount:a}){const i=a/r*100,c=100-i;let u=(e+n-o)/r*100;return u>c?u=c:u<i&&(u=i),u}afterAnimatedIn(){const{isBlock:e}=this.props;e&&this.setState({showMarkers:!0})}}const Cz=Gt(gz);var xz=l(26372);const Q3="page-wrap--noscroll";class bz extends xz.Component{static get defaultProps(){return{onItemSelected:Function.prototype,onStep:Function.prototype,getL10nValue:()=>{}}}constructor(e){super(e),this.state={imageLoaded:!1},this.closeOpenedBubble=this.closeOpenedBubble.bind(this),this.handleMarkerClick=this.handleMarkerClick.bind(this),this.handleNavEvent=this.handleNavEvent.bind(this),this.onItemSelected=this.onItemSelected.bind(this),this.onNextClick=this.onNextClick.bind(this),this.onPreviousClick=this.onPreviousClick.bind(this),this.setImageLoaded=this.setImageLoaded.bind(this)}componentDidMount(){this.loadImage(),this.props.readOnly||document.addEventListener("labeledGraphicMarkerClick",this.handleMarkerClick),window.addEventListener($t,this.handleNavEvent)}handleNavEvent(e){const n=e.detail.path[e.detail.path.indexOf("items")+1]?.id,o=e.detail.path[e.detail.path.lastIndexOf("items")+1]?.id;n===this.props.blockId&&this.state.selectedItemId!==o&&this.onItemSelected(o)}componentWillUnmount(){this.props.readOnly||document.removeEventListener("labeledGraphicMarkerClick",this.handleMarkerClick),window.removeEventListener($t,this.handleNavEvent)}render(){const{imageLoaded:e}=this.state,{initiallyVisible:n,isLessonBlocksList:o,isPreview:r,items:a,labels:i,parentId:c,settings:u={}}=this.props,{mediaWidth:d="2"}=u,m=r?a[0].id:this.state.selectedItemId,p=Q()("view-labeled-graphic",{"view-labeled-graphic--small":d==="0","view-labeled-graphic--medium":d==="1","view-labeled-graphic--full":d==="2"});return(0,s.jsx)("div",{"aria-label":i?.a11yLabeledGraphicBlock,className:p,role:"group",children:(0,s.jsx)(Cz,{...this.props,canvasClassNames:this.getCanvasClassNames(),editable:!1,imageLoaded:e,initiallyVisible:n,isLessonBlocksList:o,labels:i,markerDelay:1e3,onClose:this.closeOpenedBubble,onItemSelected:this.onItemSelected,onNextClick:this.onNextClick,onPreviousClick:this.onPreviousClick,parentId:c,selected:m})})}setImageLoaded(){this.setState({imageLoaded:!0})}loadImage(){const{image:e}=this.props.getL10nValue(this.props.media),{key:n,src:o}=e??{};if(!n&&!o)return;const r=setTimeout(this.setImageLoaded,1e3),a=new Image,i=n?(0,Ft.ME)(e):o;a.src=i,a.onload=()=>{clearTimeout(r),this.setImageLoaded()}}getCanvasClassNames(){return Q()("labeled-graphic-canvas",{"labeled-graphic-canvas--visible":this.state.imageLoaded})}onNextClick(e){const{blockId:n,items:o}=this.props,r=gt()("id",o[_n()(e)]||o[0]);document.querySelector(`dialog#bubble-${n}-${this.state.selectedItemId}[open]`)?.close(),this.onItemSelected(r)}onPreviousClick(e){const{blockId:n,items:o}=this.props,r=gt()("id",o[ch()(e)]||o[ch()(vs()(o))]);document.querySelector(`dialog#bubble-${n}-${this.state.selectedItemId}[open]`)?.close(),this.onItemSelected(r)}onItemSelected(e){const{editBlock:n,items:o,onItemSelected:r,onStep:a}=this.props,{selectedItemId:i}=this.state;n&&window.matchMedia("(max-width: 768px)").matches||(i===e?this.closeOpenedBubble():(this.openBubble(e),Xe()(a,ys()(c=>c.id===e))(o)),r(e))}handleMarkerClick(e){const{itemId:n,parentId:o}=e.detail,{selectedItemId:r}=this.state;(o!==this.props.parentId||r!==n)&&this.closeOpenedBubble()}openBubble(e){const{blockId:n}=this.props;if(window.matchMedia("(max-width: 767px)").matches){const r=document.querySelector(".page-wrap");r&&r.classList.add(Q3)}this.setState({selectedItemId:e}),document.getElementById(`bubble-${n}-${e}`).show()}closeOpenedBubble(){const{blockId:e}=this.props;if(window.matchMedia("(max-width: 767px)").matches){const o=document.querySelector(".page-wrap");o&&o.classList.remove(Q3)}document.getElementById(`bubble-${e}-${this.state.selectedItemId}`)?.close(),this.setState({selectedItemId:void 0})}}const yz=Gt(bz),Lz=t=>{const{blockId:e,progress:n,isLessonBlocksList:o=!1}=t,r=Qt()(["items",e],n);return(0,s.jsx)(kt,{className:"block-labeled-graphic",children:(0,s.jsx)(yz,{...t,editable:!1,isBlock:!0,isLessonBlocksList:o,parentId:e,progress:r})})},ps=ne("block-survey"),Ez=[{value:"bad",label:"Bad",icon:"face-frown"},{value:"fair",label:"Fair",icon:"face-smile"},{value:"great",label:"Great",icon:"face-laugh"}],Sz={bad:1,fair:2,great:3},Tz={1:"bad",2:"fair",3:"great"};function Iz({animateBlockEntrance:t,blockId:e,initiallyVisible:n,isLearner:o,items:r=[],lessonId:a,onSubmit:i,settings:c={},title:u}){const[d,m]=(0,h.useState)({}),[p,f]=(0,h.useState)(!1),[g,v]=(0,h.useState)(!1),[C]=(0,h.useState)(()=>r.map(()=>Ct()("survey-q-"))),x=(0,h.useRef)(null),{announcePolite:L}=bt(),y=(0,tt.A)(p),E=c.cardMode==="TRANSPARENT",b=(0,h.useCallback)((R,O)=>{m(P=>({...P,[R]:O}))},[]),S=(0,h.useCallback)((R,O,P)=>{if(P&&O.length>P)return;const A=d[R]||"",F=P&&O.length===P&&A.length<P;m(w=>({...w,[R]:O})),F&&L(`Character limit reached. ${P} characters maximum.`)},[d,L]),T=(0,h.useCallback)(async()=>{if(!e||!a){console.error("Missing blockId or lessonId");return}v(!0);try{const R=r.map(O=>{const P=d[O.id]||"",A={id:String(e),lessonId:String(a),itemId:O.id,questionTitle:String(O.question),surveyTitle:String(u),isUnfinished:!1};return O.questionType==="RATING"?{...A,ratingOptions:Tz,type:O.questionType,response:Sz[P]}:{...A,type:O.questionType,response:P}});window.Runtime?.reportUngradedAnswers&&await window.Runtime.reportUngradedAnswers(R),i?.(d),f(!0)}catch(R){console.error("Failed to submit survey:",R)}finally{v(!1)}},[e,a,r,d,i,u]),N=(0,h.useCallback)(R=>{R.preventDefault(),g||T()},[g,T]);(0,h.useEffect)(()=>{g&&L("Submitting survey responses.")},[g,L]),(0,h.useEffect)(()=>{!y&&p&&(L("Thanks! Your responses were sent."),x.current&&x.current.focus())},[p,y,L]);const j=(R,O)=>{const P=d[R.id]||"",A=C[O],F=`${A}-char-count`;return R.questionType==="RATING"?(0,s.jsxs)("fieldset",{className:ps("question"),children:[(0,s.jsx)("legend",{className:ps("question-text"),children:String(R.question)}),(0,s.jsx)("div",{className:ps("rating-options"),children:Ez.map(w=>{const D=P===w.value,V=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("input",{checked:D,className:ps("rating-input"),name:`survey-${R.id}`,onChange:()=>b(R.id,w.value),type:"radio",value:w.value}),(0,s.jsx)(ct,{className:ps("rating-icon"),name:w.icon}),(0,s.jsx)("span",{className:ps("rating-label"),children:w.label})]}),_=Q()(ps("rating-option"),{[ps("rating-option--selected")]:D});return E?(0,s.jsx)(ws,{cardMode:"WHITE",className:_,tag:"label",children:V},w.value):(0,s.jsx)("label",{className:_,children:V},w.value)})})]},R.id):(0,s.jsxs)("div",{className:ps("question"),children:[(0,s.jsx)("label",{className:ps("question-text"),htmlFor:A,children:String(R.question)}),(0,s.jsxs)("div",{className:ps("text-response"),children:[(0,s.jsx)("textarea",{"aria-describedby":R.maxLength?F:void 0,className:ps("text-input"),id:A,maxLength:R.maxLength,onChange:w=>S(R.id,w.target.value,R.maxLength),placeholder:"Share your thoughts (optional)",rows:R.questionType==="LONG_RESPONSE"?4:2,value:P}),R.maxLength&&(0,s.jsxs)("div",{className:ps("character-count"),children:[(0,s.jsxs)("span",{"aria-hidden":"true",children:[P.length," / ",R.maxLength]}),(0,s.jsxs)("span",{className:"visually-hidden-always",id:F,children:["Character count: ",P.length," of ",R.maxLength]})]})]})]},R.id)};return(0,s.jsx)(lh,{...c,children:(0,s.jsx)(kt,{className:ps(),children:(0,s.jsx)(Ot,{animateBlockEntrance:t,initiallyVisible:n,isLearner:o,children:(0,s.jsx)("div",{children:(0,s.jsx)(ws,{className:ps("container"),children:p?(0,s.jsx)("div",{className:ps("confirmation"),ref:x,tabIndex:-1,children:(0,s.jsxs)("p",{className:ps("confirmation-text"),children:[(0,s.jsx)(Mt.ArcIcon,{icon:"fa-regular fa-circle-check"})," Thanks! Your responses were sent."]})}):(0,s.jsxs)("form",{noValidate:!0,onSubmit:N,children:[u&&(0,s.jsx)("h2",{className:ps("title"),children:String(u)}),(0,s.jsx)("div",{className:ps("questions"),children:r.map((R,O)=>j(R,O))}),(0,s.jsx)("div",{className:ps("actions"),children:(0,s.jsx)("button",{"aria-busy":g,className:ps("submit-button"),disabled:g,type:"submit",children:g?"Submitting...":"Submit"})})]})})})})})})}const ym=ne("block-process-card"),Z3=({icon:t,isOverlayAudio:e=!1,onClick:n,text:o,variant:r})=>{const a=`${r}-btn`;return(0,s.jsxs)("button",{className:ym(a,{"audio-overlay":e}),onClick:n,type:"button",children:[(0,s.jsx)("span",{className:ym(`${a}-text`),children:o}),(0,s.jsx)(ct,{classNameIcon:ym(`${a}-icon`),name:t})]})},Nz=ne("block-process-card"),jz=({activeIndex:t,enableVideoPlaybackSpeed:e,id:n,index:o,isIntroStep:r=!1,isOverlayAudio:a=!1,item:i,labels:c,lessonId:u,media:d,onMediaLoad:m,settingZoomOnClick:p})=>{const{image:f}=d??{},g=a?f?.align??"center":"center",v=Nz("media",{legacy:!1,"audio-overlay":a,[`audio-overlay-${g}`]:a,"intro-step":r});return(0,s.jsx)("div",{className:v,children:(0,s.jsx)(zs,{activeIndex:t,blockId:n,defaultAlign:"center",enableVideoPlaybackSpeed:e,hasPadding:!1,index:`${n}-${o}`,isOverlayAudio:a,item:i,itemIndex:o,labels:c,lessonId:u,media:d,onLoad:m,opts:{disableZoom:!p},pauseOnLoad:!0})})};var Lm=l(26372);const Nr=ne("block-process-card"),kz=({text:t})=>{const e=Lm.useRef(null),{isInView:n}=Az({ref:e,threshold:.75});return(0,s.jsxs)("div",{className:Nr("swipe-badge",{animate:n}),ref:e,children:[(0,s.jsx)("span",{className:Nr("swipe-badge-text"),children:t}),(0,s.jsx)(ct,{className:Nr("swipe-badge-icon"),name:"chevron-right-solid"})]})};function Az({ref:t,rootMargin:e="0px",threshold:n=.1}){const[o,r]=Lm.useState(!1);return Lm.useEffect(()=>{if(!t.current||o)return;const a=new IntersectionObserver(([i])=>{i.isIntersecting&&(r(!0),a.disconnect())},{rootMargin:e,threshold:n});return a.observe(t.current),()=>a.disconnect()},[o,t,e,n]),{isInView:o}}const Rz=({activeIndex:t,className:e,description:n,enableVideoPlaybackSpeed:o,hasIntro:r,id:a,index:i,item:c,labels:u,lessonId:d,media:m,onClickRestart:p,onClickStart:f,settingAudioPosition:g,settingHeadingLevel:v=2,settingShowStepLabel:C=!0,settingStepLabel:x,settingZoomOnClick:L,showSwipeBadge:y,style:E,title:b,totalSteps:S,type:T})=>{const N=`h${v}`,j=T==="intro",R=T==="summary",O=T==="step",P=r?i:i+1,A=(0,nt.QQ)(x)||u.processStepName,F=(0,nt.QQ)(Array.isArray(m)?{}:m),w=ao(F,g,!0,"process"),D=()=>{if(!m)return null;const V={activeIndex:t,blockId:a,enableVideoPlaybackSpeed:o,id:a,index:i,isIntroStep:j,labels:u,lessonId:d,media:m,onMediaLoad:()=>{},settingZoomOnClick:L,item:c},_={audio:{media:w.audioOnlyMedia||F,isOverlayAudio:!1},image:{media:w.imageOnlyMedia||F,isOverlayAudio:!1},video:{media:w.videoOnlyMedia||F},embed:{media:w.embedOnlyMedia||F,isOverlayAudio:!1},overlay:{media:F,isOverlayAudio:!1}};return w.renderOrder.map((ee,q)=>{if(ee==="text")return(0,s.jsx)(Tt,{className:Nr("description"),value:n},`text-${q}`);const fe=_[ee];return fe?(0,s.jsx)(jz,{...V,...fe},`${ee}-${q}`):null})};return(0,s.jsxs)("div",{className:Nr(null,{[T]:!0}).mix(e),style:E,children:[O&&C&&(0,s.jsx)("div",{className:Nr("number"),children:`${A} ${P}`}),(0,s.jsx)("div",{className:Nr("title"),children:(0,s.jsx)(N,{children:(0,s.jsx)(Tt,{value:b})})}),D(),!m&&(0,s.jsx)(Tt,{className:Nr("description"),value:n}),j&&S>1&&(0,s.jsx)(Z3,{icon:"chevron-right-solid",isOverlayAudio:w.isOverlayAudio,onClick:f,text:u.processStart,variant:"start"}),R&&S>1&&(0,s.jsx)(Z3,{icon:"arrow-rotate-left",isOverlayAudio:w.isOverlayAudio,onClick:p,text:u.processStartAgain,variant:"restart"}),y&&O&&(0,s.jsx)(kz,{text:u.processSwipe})]})};var Do=l(26372);const Pz=ne("block-process-carousel"),Y3=t=>t?.type==="intro",Em=t=>t?.type==="summary",Sm=t=>t?.type==="step",X3=t=>t?.isHidden,wz=({animateBlockEntrance:t,enableVideoPlaybackSpeed:e,id:n,initiallyVisible:o,isLearner:r,items:a,labels:i,lessonId:c,onStep:u,previewType:d,processRef:m,settings:{audioPosition:p,headingLevel:f,stepLabel:g,showStepLabel:v,zoomOnClick:C}})=>{const x=Ss(480),L=(0,xe.Wz)(),y=(0,nt.gY)(),E=(0,ks.y4)(),b=Do.useRef(null),[S,T]=Do.useState(0),[N,j]=Do.useState(!1),R=Do.useMemo(()=>d===lt.o4.MOBILE_PORTRAIT||d===lt.o4.MOBILE_LANDSCAPE,[d]),O=Do.useMemo(()=>{const fe=a.filter(Ve=>!X3(Ve)),ye=fe.find(Y3),Ie=fe.find(Em),we=fe.filter(Sm);return[ye,...we,Ie].filter(Boolean)},[a]),P=Do.useMemo(()=>O.findIndex((fe,ye)=>Sm(fe)&&(Sm(O[ye+1])||Em(O[ye+1]))),[O]),A=Y3(O[0]),F=Em(O[O.length-1]),w=!!d;Do.useEffect(()=>{u&&(a.forEach(fe=>X3(fe)&&u(fe)),O.length>0&&u(O[0]))},[]);const D=Do.useCallback(()=>{b.current?.navigateToSlide?.(0)},[]),V=Do.useCallback(()=>{b.current?.navigateToSlide?.(1)},[]),_=Do.useCallback(fe=>{T(fe);const ye=m.current;w||ye?.scrollIntoView({behavior:"smooth",block:"start"}),fe!==P&&!N&&j(!0),u?.(O[fe]);const Ie=O[fe]?.media;y(Ie)?.audio&&E(Lr({audioPlayerId:ro({refs:`items:${n}/items:${O[fe]?.id}`}),transcriptMedia:Ie}))},[O,E,P,y,N,n,w,u,m]),ee=({index:fe,isActive:ye,onClick:Ie,onKeyDown:we})=>{const Ve=A&&fe===0,Me=F&&fe===O.length-1,Ae=A?fe:fe+1;let me,ue;Ve?(me=i?.a11yBlockProcessSlideControlsIntroduction,ue=(0,s.jsx)(ct,{className:"carousel-controls-item-intro-icon",name:"chevron-right"})):Me?(me=i?.a11yBlockProcessSlideControlsSummary,ue=(0,s.jsx)(ct,{name:"check-regular"})):(me=Ae.toString(),ue=Ae.toString());const Be=`${i?.a11yBlockProcessSlideControlsGoToSlide} ${me}`;return(0,s.jsx)(Wg,{"aria-label":Be,ariaLabel:Be,className:"carousel-controls-item-btn",isActive:ye,onClick:Ie,onKeyDown:we,children:ue},fe)},q=t?"fadeIn":"none";return(0,s.jsx)(Ot,{animateBlockEntrance:w,animateIn:q,duration:w&&t?1:0,initiallyVisible:o,isLearner:r,children:(0,s.jsx)("div",{className:Pz(),children:(0,s.jsx)(gu,{blockId:n,carouselRef:b,items:O,children:()=>(0,s.jsx)(fu,{iconNameLeft:"chevron-left-solid",iconNameRight:"chevron-right-solid",isInfinite:!1,isRTL:L,labelCarousel:i?.a11yBlockProcessCarousel,labelCarouselRoleDesc:i?.a11yBlockProcessRoleDescription,labelSlideControls:i?.a11yBlockProcessSlideControls,labelSlideControlsGoToNext:i?.a11yBlockProcessSlideControlsGoToNext,labelSlideControlsGoToPrevious:i?.a11yBlockProcessSlideControlsGoToPrevious,labelSlideControlsGoToSlide:i?.a11yBlockProcessSlideControlsGoToSlide,labelSlideCounterPreposition:i?.blocksPreposition,labelSlidePreposition:i?.a11yBlockProcessSlidePreposition,labelSlideRoleDesc:i?.a11yBlockProcessSlideRoleDescription,onChange:_,ref:b,renderSlideIndicator:ee,shouldMouseEmulateTouch:R,shouldUseCounter:!1,shouldUseGoToSlide:!0,children:O.map((fe,ye)=>(0,s.jsx)(ws,{activeIndex:S,description:fe.description,enableVideoPlaybackSpeed:e,hasIntro:A,id:n,index:ye,isHidden:fe.isHidden,item:fe,labels:i,lessonId:c,media:fe.media,onClickRestart:D,onClickStart:V,settingAudioPosition:p,settingHeadingLevel:f,settingShowStepLabel:v,settingStepLabel:g,settingZoomOnClick:C,showSwipeBadge:x&&!N&&ye===P,tag:Rz,title:fe.title,totalSteps:O.length,type:fe.type},fe.id))})})})})};var Mz=l(26372);const Oz=t=>{const{blockId:e}=t,n=Mz.useRef(null);return(0,s.jsx)(kt,{className:"block-process",ref:n,children:(0,s.jsx)(wz,{id:e,processRef:n,...t})})};var Dz=l(45803),Bz=l.n(Dz),Hz=l(77015),dc=l.n(Hz),Fz=l(51688),Bo=l.n(Fz),zz=l(53887),Tm=l.n(zz),Vz=l(48151),Uz=l.n(Vz),$z=l(59668),jr=l.n($z);const J3=t=>({...t.responses[t.response],hasCharacter:t.hasCharacter,type:"response"}),Wz=(t,e)=>{const n=t.responses[t.response],o={emotion:e.emotion,goTo:e.goTo,nextSlide:e.nextSlide},r="action"in e?{action:e.action}:{};return{...o,...r,description:n?.feedback||"",type:"dialogue",hasCharacter:t.hasCharacter}},Gz=t=>[J3(t)],Kz=t=>{const e=!!t.responses[t.response],n=J3(t),o=Wz(t,n);return e?[n,o]:[o]},_z=t=>t.hasFeedback?[t,...Kz(t)]:t.response!=null?[t,...Gz(t)]:[t],Qz=(t,e)=>{if(!e)return;const{scene:n,slide:o}=e,r=t.findIndex(c=>c.id===n),i=(t[r]?.slides||[]).findIndex(c=>c.id===o);return{scene:r,slide:i}},q3=sa()(Qz),Zz=hs()(gt()("filters"),fs()(It()("name","rise_emotion")),Gd()(rs())),Yz=hs()(gt()("filters"),ys()(It()("name","rise_emotion")),gt()("value")),e6=t=>new URL(t).pathname.slice(1),Xz=t=>hs()(no()("key",e6(t.src)),no()("thumbnailKey",e6(t.thumbnail)))(t),Jz=hs()(gt()("poses"),fs()(Zz),Mn()(t=>[Yz(t),t]),Dv(),ua()(Xz));var Ho=l(26372);const Im=t=>t===-1?null:t,t6=t=>ai()(Xs(),nr(),t),Ou=Gd()(rs()),s6=Gd()(Xs()),Di=ru()(s6,Ou),n6=Bz()(Jd()),o6=$e.BI?t6(Ft.dE):t6(Ft.bX),Nm=t=>sn()(t);class qz extends Ho.Component{static get defaultProps(){return{getCharacter:Function.prototype,onItemUpdate:Function.prototype}}continueRef;feedbackRef;resetRef;buttonRef=Ho.createRef();responseItemRef=Ho.createRef();scenarioRef=Ho.createRef();blockContentRef=Ho.createRef();endRef=Ho.createRef();textRef=Ho.createRef();refs=Ho.createRef();dynamicRefs=Ho.createRef();fadeObservers=new Map;shouldFocus=!1;constructor(e){super(e);const n={activeScene:0,activeSlide:0,initiated:!1,prevScene:0,prevSlide:0,resizes:0,slides:{}};this.refs.current={},this.state=e.initialState||n,this.fetchCharacters=this.fetchCharacters.bind(this),this.fetchCharacterPose=this.fetchCharacterPose.bind(this),this.getCharacterPose=this.getCharacterPose.bind(this),this.handleNavEvent=this.handleNavEvent.bind(this),this.onClick=this.onClick.bind(this),this.onFocus=this.onFocus.bind(this),this.onInit=this.onInit.bind(this),this.onResize=this.onResize.bind(this),this.onResponseClick=this.onResponseClick.bind(this),this.onTryAgainClick=this.onTryAgainClick.bind(this),this.renderBackground=this.renderBackground.bind(this),this.renderButton=this.renderButton.bind(this),this.renderDetails=this.renderDetails.bind(this),this.renderDialogues=this.renderDialogues.bind(this),this.renderEnd=this.renderEnd.bind(this),this.renderPose=this.renderPose.bind(this),this.renderResponse=this.renderResponse.bind(this),this.renderText=this.renderText.bind(this),this.renderAudioMedia=this.renderAudioMedia.bind(this),this.renderDialogueWithAudioPositioning=this.renderDialogueWithAudioPositioning.bind(this),this.renderTextWithAudioPositioning=this.renderTextWithAudioPositioning.bind(this),this.resetSlide=this.resetSlide.bind(this),this.resetSlides=this.resetSlides.bind(this),this.setNextSlide=this.setNextSlide.bind(this),this.dynamicRefs.current={},this.setupFadeObserver=this.setupFadeObserver.bind(this)}setupFadeObserver(e){if(!e)return;const n=this.fadeObservers.get(e);n&&(n.observer.disconnect(),e.removeEventListener("scroll",n.scrollHandler),this.fadeObservers.delete(e));const o=Array.from(e.children).find(d=>d.className.includes("-bottom"));if(!o)return;const r=e.parentElement?.classList.contains("scenario-block__dialogue__bubble")||e.parentElement?.classList.contains("scenario-block__dialogue__pane")?e.parentElement:e,a=()=>{const{scrollHeight:d,clientHeight:m}=e;return d>m+2},i=d=>{const m=d?.[0]?.isIntersecting??!1,p=a();p?r.classList.add("has-overflow"):r.classList.remove("has-overflow"),!m&&p?r.classList.add("show-fade"):r.classList.remove("show-fade")},c=new IntersectionObserver(i,{root:e,threshold:[0,1]}),u=()=>{};this.fadeObservers.set(e,{observer:c,scrollHandler:u}),c.observe(o)}componentDidMount(){const{initialState:e,items:n}=this.props,o=Xe()(Pl()("poses"),_s()({},"character"),Nm);Di(n)&&!o(n)&&this.fetchCharacters(),e||this.resetSlides(),window.addEventListener("resize",this.onResize),window.addEventListener($t,this.handleNavEvent)}handleNavEvent(e){const{path:n}=e.detail,{blockId:o,sceneId:r,slideId:a,responseId:i}=Xa(n,["block","scene"]),c=n.at(-1)==="feedback";if(o!==this.props.blockId)return;const u=Im(this.props.items.findIndex(p=>p.id===r)),d=u!==null?Im(this.props.items[u].slides.findIndex(p=>p.id===a)):null,m=d!==null?Im(this.props.items[u].slides[d].responses.findIndex(p=>p.id===i)):null;this.setState({activeScene:u??0,activeSlide:d??0},()=>{u!==null&&d!==null&&this.setState({slides:{...this.state.slides,[`${u}.${d}`]:{...this.state.slides[`${u}.${d}`],hasFeedback:c,response:m}}})})}componentDidUpdate(){const{items:e,onStep:n}=this.props,{activeScene:o,activeSlide:r}=this.state,a=Lt()([],[o,"slides"],e),i=Lt()(null,[r,"goTo"],a),c=Lt()(null,[r,"type"],a);if(n&&(i==="end"&&c==="text"||!i&&!c)&&Tm()(n,e),this.shouldFocus){this.shouldFocus=!1;const p=this.scenarioRef.current?.querySelector('[data-scenario-focus][tabindex="-1"]');p?p.focus():gh(this.scenarioRef.current)}this.fadeObservers.forEach(({observer:p,scrollHandler:f},g)=>{document.contains(g)||(p.disconnect(),g.removeEventListener("scroll",f),this.fadeObservers.delete(g))})}componentWillUnmount(){clearTimeout(this.continueRef),clearTimeout(this.feedbackRef),clearTimeout(this.resetRef),window.removeEventListener("resize",this.onResize),window.removeEventListener($t,this.handleNavEvent),this.fadeObservers.forEach(({observer:e,scrollHandler:n},o)=>{e.disconnect(),o.removeEventListener("scroll",n)}),this.fadeObservers.clear()}getActiveScene(){return this.getScene(this.state.activeScene)}getScene(e){const{items:n}=this.props;return n&&e>=0&&e<n.length?n[e]:null}fetchCharacterPose(e,n){const o=this.getScene(e),r=o?.slides,a=r&&n>=0&&n<r.length;if(!o||!r||!a)return{name:"",pose:null};const{character:i}=o,c=r[n],u=`${e}.${n}`,d=[u,"response"],m=[u,"hasFeedback"],p=Lt()(null,d,this.state.slides),f=Lt()(!1,m,this.state.slides),g=_s()("neutral","emotion",c),v=ai()(os()(f),Lt()(g,["responses",p,"emotion"]),os()(g)),C=hs()(Lt()(i?.poses?.neutral,["poses",v(c)]),o6);return{name:i?.name||"",pose:C(i)}}fetchCharacters(){const{getCharacter:e,items:n,onItemUpdate:o}=this.props,r=Qn()(["id","name","poses","src"]),a=c=>u=>o({itemId:c,payload:{character:u}}),i=({character:c,id:u})=>Di(c)&&e(c.id).then(d=>no()("poses",Jz(d),d)).then(r).then(a(u));n.map(i)}isCharacterHidden(){const{items:e}=this.props,{activeScene:n,activeSlide:o}=this.state,a=this.getActiveScene()?.slides?.[o],i=o===null,c=e[n];return i?!(c?.slidesHaveCharacterByDefault??!1):a&&!a.hasCharacter}getCharacterPose(){const{items:e}=this.props,{activeScene:n,activeSlide:o,prevScene:r,prevSlide:a}=this.state,i=Lt()([],[n,"slides"],e),c=Lt()(!0,[o,"hasCharacter"],i);return s6(r)&&xn()(c)?this.fetchCharacterPose(r,a):this.fetchCharacterPose(n,o)}onClick(e,n){const{items:o,onStep:r}=this.props,{activeScene:a,activeSlide:i}=this.state,c=this.getActiveScene()?.slides,u=_s()(null,"type",c?.[i])==="dialogue",d=a===o.length-1,m=i===(c?.length??0)-1,p={activeSlide:i+1},f={activeScene:a+1,activeSlide:0},g={activeSlide:null},v={activeScene:0,activeSlide:0},C=hs()(q3(o),b=>({activeScene:b.scene,activeSlide:b.slide})),x=ln()([[os()(m&&d),os()(g)],[os()(m&&!d),os()(f)],[Ti(),os()(p)]]),L=ai()(os()(u),os()(g),os()(v)),y=ln()([[Bo()("slide"),jr()(C,[n])],[Bo()("next"),x],[Bo()("end"),L]]),E=()=>this.continueRef=setTimeout(this.setNextSlide,300);this.resetRef=setTimeout(this.resetSlide.bind(this,a,i),0),this.setState({prevScene:a,prevSlide:i}),this.setState(y(e),E),e==="end"&&this.resetSlides(),e==="end"&&r&&Tm()(r,o)}onFocus(){this.shouldFocus=!0}onInit(){this.setState({initiated:!0})}onResize(){this.setState({resizes:this.state.resizes+1})}onResponseClick(e,n){const{activeScene:o,activeSlide:r,slides:a}=this.state,{getL10nValue:i,lessonId:c,blockId:u}=this.props,d=`${o}.${r}`,m=no()("response",e),p=no()("hasFeedback",!0),f=vi()({[`${d}`]:m}),g=vi()({[`${d}`]:p});n.media&&i(n.media)?.audio&&st.playerId===`audio-${c}-${u}`&&st.pause();const C=Xe()(g,f);this.setState({slides:f(a)},()=>{this.shouldFocus=!0,this.setState({slides:C(a)})})}onTryAgainClick(){const{activeScene:e,activeSlide:n,slides:o}=this.state,r=`${e}.${n}`,a=dc()({hasFeedback:null,response:null}),i=vi()({[`${r}`]:a});this.setState({slides:i(o)})}render(){const{blockId:e,getL10nValue:n,isPDF:o,items:r,labels:a}=this.props,{activeScene:i,activeSlide:c,initiated:u}=this.state,m=this.getActiveScene()?.slides?.[c],p=Xe()(Ou,_s()({},"character"),Nm),f=Xe()(Pl()("poses"),_s()({},"character"),Nm),g=Xe()(wo(),Lt()({},["character","poses"])),v=Xe()(Mh(),wo(),Mn()(g)),C=this.isCharacterHidden(),x=Q()("scenario-block",{"scenario-block--initiated":u,"scenario-block--mobile":rn.isMobile,"scenario-block--loading":p(r)&&!f(r),"scenario-block--character-hidden":C}),L=`scenario-live-${e}`,y={"aria-label":a?.a11yGroupScenario,"aria-describedby":L,className:x,ref:this.scenarioRef,role:"group",style:window.innerWidth<480?{height:window.innerHeight}:void 0},E=(0,Ft.ME)(n(r?.[0].background?.media)?.image),b=ln()([[Xs(),this.renderEnd],[It()("type","dialogue"),this.renderDialogues],[It()("type","text"),this.renderText],[Ti(),os()(null)]]),S=Q()("scenario-block__character",{"scenario-block__character--hidden":C}),T=`${i}.${c}`,N=this.state.slides[T],j=N?.hasFeedback?m?.responses?.[N?.response]?.alt:m?.alt,R=n(j);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{...y,"data-l10n-id":(0,pt.pP)(j),children:[(0,s.jsx)("div",{"aria-live":"polite",className:"visually-hidden-always",id:L,children:R}),(0,s.jsx)("div",{className:"scenario-block__spinner"}),(0,s.jsx)("div",{className:"scenario-block__background-wrapper",children:Di(r)&&r.map(this.renderBackground)}),E&&(0,s.jsx)(Tn,{alt:"",onLoad:this.onInit,src:E}),(0,s.jsxs)("div",{className:"scenario-block__inner",children:[(0,s.jsx)("div",{className:S,children:f(r)&&v(r).map(this.renderPose)}),(0,s.jsx)(Cs.F,{children:Di(r)&&b(m)})]})]}),o&&m&&this.renderDetails(m)]})}renderBackground(e,n){const{activeScene:o}=this.state,{id:r,blurBackground:a}=e,i=this.props.getL10nValue(e?.background?.media)?.image,c=Q()("scenario-block__background",{"scenario-block__background--active":o===n,"scenario-block__background--blur":a??!0}),u=(0,Ft.ME)(i);return u?(0,s.jsx)(Tn,{alt:"",className:c,src:u},r):(0,s.jsx)(s.Fragment,{})}renderButton(e){const{labels:n}=this.props,{scenarioContinue:o,scenarioTryAgain:r}=n,{goTo:a,nextSlide:i}=e,c="action"in e?e.action:void 0,u={appear:!0,classNames:"scenario-block__dialogue__button-",nodeRef:this.buttonRef,timeout:{enter:0,exit:1e3}},d=c==="tryAgain"?(0,s.jsxs)("span",{children:[r," ",(0,s.jsx)("i",{className:"icon icon-reload"})]}):(0,s.jsx)("span",{children:o}),p={className:"scenario-block__dialogue__button",key:"button",onClick:c==="tryAgain"?Xe()(this.onFocus,this.onTryAgainClick):Xe()(this.onFocus,jr()(this.onClick,[a,i]))};return(0,s.jsx)(Cs.F,{children:(0,s.jsx)(Cs.B1,{...u,children:(0,s.jsx)("button",{...p,type:"button",children:d})})})}renderDetails(e){const{items:n}=this.props,{activeScene:o,activeSlide:r}=this.state,{responses:a,type:i}=e,c=(p,f)=>(0,s.jsxs)("span",{children:[p," ",(0,s.jsx)(L4,{})," ",f]},p),u=hs()(q3(n),p=>`Scene ${p.scene+1} Slide ${p.slide+1}`),d=(p,{goTo:f,nextSlide:g})=>ln()([[Bo()("next"),jr()(c,[p,"Next Slide"])],[Bo()("end"),jr()(c,[p,"End of Scenario"])],[Ti(),jr()(c,[p,u(g||{})])]])(f),m=i==="text"?d("Continue",e):a.map((p,f)=>d(f,p));return(0,s.jsxs)("div",{className:"scenario-block__pdf-details",children:[(0,s.jsxs)("h3",{children:["Scene ",o+1," Slide ",r+1]}),m]})}renderDialogue(e,n,o){const{description:r,id:a,hasCharacter:i}=n,c="type"in n?n.type:void 0,{count:u,firstKey:d,hasFeedback:m,slide:p,totalDialogues:f}=e,g=o===0?a:o,v=o===1?d:o-1,C=o===0&&u===1,x=o===u,L=c==="dialogue"&&(C||x),y=this.dynamicRefs.current[`dialogue-${g}`],E=x&&this.dynamicRefs.current[`dialogue-${v}`],b=y&&y.offsetHeight,S=x&&E&&E.offsetHeight,T=m?30:0,N=window.innerWidth<480?20:30,j=N*2+60+S-T,R=N+60-T,O=Uz()(b+T-60),P=Ho.createRef(),{settings:A,getL10nValue:F}=this.props,w=A?.audioPosition,D=F(p.media),V=ao(D,w),_=V.renderOrder.indexOf("audio")<V.renderOrder.indexOf("text"),ee=!!D?.audio,q=m&&o===f-1,fe=Q()("scenario-block__dialogue",{"scenario-block__dialogue--response":c==="response","scenario-block__dialogue--feedback":q,"scenario-block__dialogue--done":o<u-1,"scenario-block__dialogue--audio-top":_&&ee}),ye=ln()([[os()(C),os()(null)],[Bo()(u),os()({top:`${j}px`})],[Bo()(u-1),os()({top:`${R}px`})],[Bo()(u-2),os()({top:`${O}px`})],[Ti(),os()({top:`-${b+30}px`})]]),Ie={className:fe,ref:ue=>{this.dynamicRefs.current[`dialogue-${g}`]=ue},style:ye(o)},we={appear:!0,classNames:"scenario-block__dialogue-",nodeRef:P,key:o,timeout:{enter:400,exit:400}},Ve=Q()({"scenario-block__dialogue__bubble":i||c==="response","scenario-block__dialogue__pane":!i}),Me=this.props.getL10nValue(r)||"",Ae=c!=="response"&&!q&&ee&&_&&(0,s.jsx)("div",{className:"audio-position-wrapper audio-position-wrapper--top",children:this.renderAudioMedia(p)}),me=(0,s.jsxs)("div",{className:Ve,"data-scenario-focus":L?"":void 0,tabIndex:L?-1:void 0,children:[Ae,(0,s.jsxs)("div",{className:"scenario-block__dialogue__bubble__content",ref:this.setupFadeObserver,children:[c!=="response"&&!q?this.renderDialogueWithAudioPositioning(p,Me,V):(0,s.jsx)(Tt,{value:Me}),(0,s.jsx)("div",{className:"scenario-block__dialogue__bubble-bottom"})]})]});return(0,s.jsx)(Cs.B1,{...we,children:(0,s.jsx)("div",{children:(0,s.jsx)("div",{...Ie,children:Di(r)&&me})})})}renderDialogues(e){const{activeScene:n,activeSlide:o,slides:r}=this.state,{id:a,responses:i}=e,c=`${n}.${o}`,u=r[c]||{},m=Xe()(Mh(),_z,Yo()(u))(e),{hasFeedback:p,response:f}=u,{feedback:g}=i[f]||{},v=Xs()(f)&&Ou(i),C=p?m.length-1:m.length,x=(C===1&&rs()(i)||C===2&&Ou(i))&&p,L={count:C,firstKey:Lt()(null,[0,"id"],m),hasFeedback:p&&Di(g),slide:e,totalDialogues:m.length},y={classNames:"scenario-block__content-",nodeRef:this.blockContentRef,timeout:{enter:0,exit:1e3}},E=(0,s.jsx)("div",{className:"scenario-block__dialogues__bottom",children:(0,s.jsx)("div",{className:"scenario-block__dialogues__bottom__inner",children:(0,s.jsx)("div",{className:"scenario-block__dialogues__responses",children:(0,s.jsx)(Cs.F,{component:"ol",role:"list",children:i.map((b,S)=>this.renderResponse(b,e,S))})})})});return(0,s.jsx)(Cs.B1,{...y,children:(0,s.jsx)("div",{className:"scenario-block__dialogues scenario-block__content",children:(0,s.jsxs)("div",{className:"scenario-block__dialogues__inner",children:[(0,s.jsx)("div",{className:"scenario-block__dialogues__top",children:(0,s.jsx)("div",{className:"scenario-block__dialogues__top__inner",children:(0,s.jsx)(Cs.F,{children:m.map(this.renderDialogue.bind(this,L))})})}),v&&E,x&&this.renderButton(m[C-1])]})})},a)}renderEnd(){const{labels:e}=this.props,{scenarioComplete:n,scenarioStartOver:o}=e,r=Xe()(this.onFocus,jr()(this.onClick,["end",null])),a=Q()(["scenario-block__text","scenario-block__text--end","scenario-block__content"]),i={classNames:"scenario-block__content-",nodeRef:this.endRef,timeout:{enter:0,exit:400}};return(0,s.jsx)(Cs.B1,{...i,children:(0,s.jsx)("div",{className:a,children:(0,s.jsxs)("div",{className:"scenario-block__text__inner","data-scenario-focus":"",tabIndex:-1,children:[(0,s.jsx)("div",{className:"scenario-block__text__title",children:(0,s.jsx)("h2",{children:n})}),(0,s.jsxs)("button",{className:"scenario-block__text__end",onClick:r,type:"button",children:[(0,s.jsx)("span",{children:o}),(0,s.jsx)("i",{className:"icon icon-reload"})]})]})},"end")},"end")}renderPose(e,n){const{pose:o}=this.getCharacterPose(),{filters:r,id:a}=e,i=o6(e),c=ru()(It()("name","style")),u=c(It()("value","left_aligned")),d=c(It()("value","right_aligned")),m=Q()("scenario-block__character__inner",{"scenario-block__character__inner--active":o===i,"scenario-block__character__inner--right":ys()(d,r),"scenario-block__character__inner--left":ys()(u,r)});return(0,s.jsx)("div",{className:m,"data-pose-id":a,children:(0,s.jsx)(Tn,{alt:"",src:i})},`pose-${n}-${a}`)}renderResponse({description:e},n,o){const{isPDF:r}=this.props,a=r?tV:Xe()(this.onFocus,jr()(this.onResponseClick,[o,n])),i=g=>{const C=g.currentTarget.querySelector(".scenario-block__response__inner");if(C){const x=C.getBoundingClientRect();if(g.clientX>x.right-16){g.preventDefault();return}}a(g)},c=g=>{const C=g.currentTarget.querySelector(".scenario-block__response__inner");if(C){const x=C.getBoundingClientRect();g.clientX>x.right-16?C.classList.add("hovering-scrollbar"):C.classList.remove("hovering-scrollbar")}},u=g=>{const C=g.currentTarget.querySelector(".scenario-block__response__inner");C&&C.classList.remove("hovering-scrollbar")},d=Q()(["scenario-block__response",`scenario-block__response--${o}`]),m=Q()("scenario-block__response-item",`scenario-block__response-item--${o}`),p={appear:!0,classNames:"scenario-block__response-item-",nodeRef:this.responseItemRef,timeout:{enter:0,exit:1e3}},f=(0,s.jsx)("button",{className:d,onClick:i,onMouseLeave:u,onMouseMove:c,type:"button",children:(0,s.jsxs)("div",{className:"scenario-block__response__inner",ref:this.setupFadeObserver,children:[(0,s.jsx)("div",{className:"scenario-block__response__number",children:o+1}),(0,s.jsx)(Tt,{value:e}),(0,s.jsx)("div",{className:"scenario-block__response__inner-bottom"})]})});return(0,s.jsx)(Cs.B1,{...p,children:(0,s.jsx)("li",{className:m,role:"listitem",children:f})},o)}renderText(e){const{description:n,goTo:o,hasCharacter:r,id:a,nextSlide:i}=e,c=this.props.getL10nValue(e.title),u=this.props.getL10nValue(n)||"",{labels:d,settings:m,getL10nValue:p}=this.props,{scenarioContinue:f,scenarioStartOver:g}=d,v=!n&&(c||"").length<22,C=m?.audioPosition,x=p(e.media),L=ao(x,C),y=L.renderOrder.indexOf("audio")<L.renderOrder.indexOf("text"),E=!!x?.audio,b=Q()("scenario-block__text","scenario-block__content",{"scenario-block__text--no-character":!r,"scenario-block__text--short":v,"scenario-block__text--audio-top":y&&E}),S={classNames:"scenario-block__content-",nodeRef:this.textRef,timeout:{enter:0,exit:400}},T=m?.headingLevel,N=T?`h${T}`:"h2",j=`scenario-title-${a}`,R=`scenario-description-${a}`,O=`${j} ${R}`,P=Q()("scenario-block__text__inner",{"scenario-block__text__inner--end":o==="end"}),A=Q()("scenario-block__text__title",{"scenario-block__text__title--end":o==="end"}),F=(0,s.jsx)("div",{className:A,"data-l10n-id":(0,pt.pP)(e.title),id:j,children:(0,s.jsx)(N,{children:c})}),w=E&&y&&(0,s.jsx)("div",{className:"audio-position-wrapper audio-position-wrapper--top",children:this.renderAudioMedia(e)}),D=(0,s.jsx)("div",{className:"scenario-block__text__description",id:R,ref:this.setupFadeObserver,children:this.renderTextWithAudioPositioning(e,u,L)}),V=Xe()(this.onFocus,jr()(this.onClick,[o,i])),_=(0,s.jsx)("button",{"aria-describedby":O,className:"scenario-block__text__continue",onClick:V,type:"button",children:(0,s.jsx)("span",{children:f})}),ee=(0,s.jsxs)("button",{"aria-describedby":O,className:"scenario-block__text__end",onClick:V,type:"button",children:[(0,s.jsx)("span",{children:g}),(0,s.jsx)("i",{className:"icon icon-reload"})]});return(0,s.jsx)(Cs.B1,{...S,children:(0,s.jsx)("div",{className:b,children:(0,s.jsxs)("div",{className:P,"data-scenario-focus":"",tabIndex:-1,children:[c&&F,w,n&&D,o==="end"?ee:_]})},a)},a)}renderAudioMedia(e){const{blockId:n,getL10nValue:o,labels:r,lessonId:a,items:i,settings:c}=this.props,u=o(e.media),d=i?.[this.state.activeScene];return u?(0,s.jsx)(zs,{blockId:n,index:n,item:e,labels:r,lessonId:a,lessonNumber:a,media:u,refs:`items:${n}/items:${d.id}/slides:${e.id}`,shouldPause:e.type,volumeSliderPosition:c?.audioPosition==="top"?"below":"above"}):null}renderDialogueWithAudioPositioning(e,n,o){const r=o.renderOrder.indexOf("audio")<o.renderOrder.indexOf("text");return(0,s.jsxs)(s.Fragment,{children:[o.renderOrder.map((a,i)=>{if(a==="text")return(0,s.jsx)("div",{children:(0,s.jsx)(Tt,{value:n})},`text-${i}`);if(a==="audio"&&!r){const c=this.renderAudioMedia(e);return c?(0,s.jsx)("div",{children:c},`audio-${i}`):null}return null}),(0,s.jsx)("div",{className:"scenario-block__dialogue__bubble-bottom"})]})}renderTextWithAudioPositioning(e,n,o){const r=o.renderOrder.indexOf("audio")<o.renderOrder.indexOf("text");return(0,s.jsxs)(s.Fragment,{children:[o.renderOrder.map((a,i)=>{if(a==="text")return(0,s.jsx)("div",{children:(0,s.jsx)(Tt,{value:n})},`text-${i}`);if(a==="audio"&&!r){const c=this.renderAudioMedia(e);return c?(0,s.jsx)("div",{children:c},`audio-${i}`):null}return null}),(0,s.jsx)("div",{className:"scenario-block__text__description-bottom"})]})}resetSlide(e,n){const{slides:o}=this.state,r=`${e}.${n}`,a={hasFeedback:!1,response:null};this.setState({slides:no()(r,a,o)})}resetSlides(){const{items:e}=this.props,n=r=>(a,i,c)=>{const{type:u,responses:d=[]}=i,m=u==="dialogue"&&d.length===0;return no()(`${r}.${c}`,{hasFeedback:m,response:null},a)},o=(r,a,i)=>hs()(_s()([],"slides"),n6(n(i),{}),dc()(r))(a);this.setState({slides:n6(o,{},e)})}setNextSlide(){const{activeScene:e,activeSlide:n,slides:o}=this.state,r=this.getActiveScene()?.slides;if(!r)return;const{responses:a=[],type:i}=r[n]||{},c=`${e}.${n}`,u=no()("hasFeedback",!0),d=vi()({[c]:u});i==="dialogue"&&rs()(a)&&(this.shouldFocus=!0,this.setState({slides:d(o)}))}shouldComponentUpdate(e,n){return e.items!==this.props.items||e.settings!==this.props.settings||n.activeScene!==this.state.activeScene||n.activeSlide!==this.state.activeSlide||n.initiated!==this.state.initiated||n.resizes!==this.state.resizes||n.slides!==this.state.slides||e.labels!==this.props.labels}}const eV=t=>{const e=(0,nt.gY)();return(0,s.jsx)(qz,{...t,getL10nValue:e})};function tV(){}var sV=l(26372);class nV extends sV.Component{render(){const{animateBlockEntrance:e,isLearner:n,previewType:o,initiallyVisible:r}=this.props,a=!Xs()(o),u={animateBlockEntrance:a,animateIn:e?"fadeIn":"none",duration:a&&e?1:0,initiallyVisible:r,isLearner:n};return(0,s.jsx)(kt,{className:"block-scenario",children:(0,s.jsx)(Ot,{...u,children:(0,s.jsx)(eV,{...this.props})})})}}var oV=l(82973),Du=l.n(oV);function rV(t){t&&(t.addEventListener("touchstart",kr,!0),t.addEventListener("touchmove",kr,!0),t.addEventListener("touchcancel",kr,!0),t.addEventListener("touchend",kr,!0))}function aV(t){t&&(t.removeEventListener("touchstart",kr,!0),t.removeEventListener("touchmove",kr,!0),t.removeEventListener("touchcancel",kr,!0),t.removeEventListener("touchend",kr,!0))}function kr(t){t?.stopPropagation?.()}const Bi=ne("playing-card"),r6=({id:t,isDeckTopCard:e,title:n,ref:o})=>{const[r,a]=(0,h.useState)(!1),[i,c]=(0,h.useState)(!1),[u,d]=(0,h.useState)({x:0,y:0}),[m,p]=(0,h.useState)(!0),[f,g]=(0,h.useState)(!1),[v,C]=(0,h.useState)(0),x=Ys(),L=(0,h.useRef)(null),y=(0,h.useRef)(null),E=(0,h.useRef)(void 0),b=(0,h.useRef)(void 0),S=(0,h.useRef)(!1),T=(0,h.useCallback)(()=>{const{innerWidth:V}=window,_=L.current&&L.current.scrollHeight>L.current.clientHeight,ee=V<v;_&&V>v&&C(V),g(_||ee)},[v]),N=(0,h.useRef)(()=>{a(!0),c(!1)}),j=(0,h.useRef)(()=>{a(!1)});(0,h.useImperativeHandle)(o,()=>({onStartSortAttempt:N.current,onEndSortAttempt:j.current})),(0,h.useEffect)(()=>{const V=setTimeout(()=>{p(!1)},300);return()=>clearTimeout(V)},[]),(0,h.useEffect)(()=>{const V=y.current;if(!V)return;const _=()=>{a(!0),c(!1)},ee=({dx:fe,dy:ye})=>{d(Ie=>({x:Ie.x+fe,y:Ie.y+ye}))},q=()=>{a(!1)};return N.current=_,j.current=q,rV(V),Oo(V).draggable({inertia:!0,autoScroll:!1,modifiers:[Oo.modifiers.snap({targets:[(fe,ye)=>({x:fe,y:ye})],range:1/0,endOnly:!0,relativePoints:[{x:.5,y:.5}]})]}).on("dragstart",_).on("dragmove",ee).on("dragend",q),T(),E.current=Tu()(T,250),window.addEventListener("resize",E.current),()=>{aV(V),Oo(V).off("dragstart",_).off("dragmove",ee).off("dragend",q),E.current&&(E.current.cancel(),window.removeEventListener("resize",E.current)),clearTimeout(b.current)}},[T]),(0,h.useEffect)(()=>{T()},[t,T]),(0,h.useEffect)(()=>{const V=S.current;S.current=r,V&&!r&&(c(!0),clearTimeout(b.current),b.current=setTimeout(()=>{d({x:0,y:0}),c(!1)},300))},[r]);const R=x?.backgroundType===M.xj.ACCENT||x?.backgroundType===M.xj.IMAGE,O=`translate3d(${u.x}px, ${u.y}px, 0)`,P={WebkitTransform:O,transform:O},A=Bi("title",{"is-max-length":f}),F=Bi({draggable:!0,moving:r,fail:i,reset:m}),w=R?Bi("content"):Bi("content").mix("brand--border"),D=typeof n=="string"?n:n?.["en-US"]||"Card";return(0,s.jsxs)("div",{"aria-hidden":!e,className:F,id:t.toString(),onMouseDown:V=>{V.preventDefault()},ref:y,style:P,children:[e&&(0,s.jsxs)("div",{className:"visually-hidden-always",children:["Current item: ",D]}),(0,s.jsxs)(ws,{"aria-hidden":"true",className:w,children:[(0,s.jsx)(Tt,{className:A,id:`card-title-${t}`,ref:L,value:n}),(0,s.jsx)("div",{className:Bi("handle")}),(0,s.jsx)("div",{className:Bi("status"),children:(0,s.jsx)("i",{className:"icon icon-check"})})]})]},`card-${t}`)},Bu=ne("restart-button");function iV({allowTabNavigation:t=!0,onClick:e,onFocus:n=Qs.lQ,ref:o,text:r}){const a=Bu({}).mix("button");return(0,s.jsx)("button",{"aria-hidden":!t,className:a,"data-testid":"quiz-take-again-button",onClick:e,onFocus:n,ref:o,tabIndex:Kl(t),type:"button",children:(0,s.jsxs)("div",{className:Bu("content"),children:[(0,s.jsx)("span",{className:Bu("text").mix("brand--ui"),children:r}),(0,s.jsx)("i",{"aria-hidden":"true",className:Bu("icon").mix("icon").mix("icon-reload")})]})})}const a6=iV,uc=ne("deck"),lV=t=>t?.percentViewed===100,cV=(t,e)=>`${t?.correctlyAnswered??0}/${e}`,dV=(t,e)=>String(e?.lastIncorrectCardId)===String(t.id),uV=({count:t,items:e,labels:n,id:o,onReplay:r,progress:a,ref:i})=>{const c=(0,h.useRef)([]),u=(0,h.useRef)(null);(0,h.useImperativeHandle)(i,()=>({startKeyDrop(){c.current[0]?.onStartSortAttempt()},endKeyDrop(){c.current[0]?.onEndSortAttempt()},focusReplayButton(){u.current?.focus()}}));const d=lV(a),m=cV(a,t),p=()=>{r?.({id:o})};return(0,s.jsxs)("div",{className:uc({complete:a?.percentViewed===100}),children:[(0,s.jsx)("div",{className:uc("spacer")}),d&&(0,s.jsxs)("div",{className:uc("cardholder"),children:[(0,s.jsxs)("div",{className:uc("title").mix("brand--ui"),children:[m," ",n.sortingCardsCorrect]}),(0,s.jsx)(a6,{allowTabNavigation:d,onClick:p,ref:u,text:n.sortingReplay})]}),(0,s.jsx)("div",{className:uc("content"),children:e.map((f,g)=>(0,s.jsx)(r6,{id:f.id,isDeckTopCard:c.current[g]===c.current[0],isIncorrect:dV(f,a),ref:v=>{c.current[g]=v},title:f.title},f.id))})]})},Ca=ne("pile"),hV=({id:t,lessonId:e,deckTopCard:n,nextCard:o,isComplete:r=!1,onCardDrop:a,onNavigateToNext:i,onNavigateToPrevious:c,onKeyDropStart:u,onKeyDropEnd:d,title:m,ref:p})=>{const[f,g]=(0,h.useState)(void 0),[v,C]=(0,h.useState)(!1),[x,L]=(0,h.useState)(!0),[y,E]=(0,h.useState)(!1),[b,S]=(0,h.useState)(!1),[T,N]=(0,h.useState)(0),j=(0,h.useRef)(null),R=(0,h.useRef)(null),O=(0,h.useRef)(null),P=(0,h.useRef)(void 0),A=(0,h.useRef)(void 0),F=(0,h.useRef)(void 0),w=(0,h.useRef)(void 0),D=(0,h.useRef)(void 0),{announcePolite:V}=bt(),_=(0,h.useEffectEvent)(()=>{if(r||!n)return;const ue=n.id.toString(),Be=n.pileId===t;a?.({id:e,itemId:ue,isCorrect:Be});const Re=typeof n.title=="string"?n.title:n.title?.["en-US"]||"",We=typeof m=="string"?m:m?.["en-US"]||"";if(Be){clearTimeout(A.current),clearTimeout(F.current),clearTimeout(w.current),g(n),C(!0),L(!1);const He=`Correct. ${Re}, category: ${We}`;V(He);const mt=o?typeof o.title=="string"?o.title:o.title?.["en-US"]||"":"";mt&&(w.current=setTimeout(()=>{V(`Next item. ${mt}`)},500)),A.current=setTimeout(()=>{g(void 0),C(!1)},1500),F.current=setTimeout(()=>{L(!0)},1300)}else clearTimeout(A.current),clearTimeout(F.current),clearTimeout(w.current),g(void 0),C(!1),L(!0),V("Incorrect. Choose another category.")});(0,h.useImperativeHandle)(p,()=>({focus(){R.current?.focus()}}));const ee=(0,h.useCallback)(()=>{const{innerWidth:ue}=window,Be=j.current&&j.current.scrollHeight>(j.current.offsetParent?.clientHeight??0),Re=ue<T;Be&&ue>T&&N(ue),S(Be||Re)},[T]),q=(0,h.useCallback)(()=>{if(r||!n)return;u?.();const ue=n.id.toString(),Be=n.pileId===t;a?.({id:e,itemId:ue,isCorrect:Be});const Re=typeof n.title=="string"?n.title:n.title?.["en-US"]||"Card",We=typeof m=="string"?m:m?.["en-US"]||"Pile";if(Be){clearTimeout(A.current),clearTimeout(F.current),clearTimeout(w.current),g(n),C(!0),L(!1);const He=`Correct. ${Re}, category: ${We}`;V(He);const mt=o?typeof o.title=="string"?o.title:o.title?.["en-US"]||"":"";mt&&(w.current=setTimeout(()=>{V(`Next item. ${mt}`)},500)),A.current=setTimeout(()=>{g(void 0),C(!1)},1500),F.current=setTimeout(()=>{L(!0)},1300)}else clearTimeout(A.current),clearTimeout(F.current),clearTimeout(w.current),g(void 0),C(!1),L(!0),V("Incorrect. Choose another category.")},[r,n,o,t,e,m,u,a,V]),fe=(0,h.useCallback)(ue=>{br(ue)?Y2(()=>c?.())(ue):yr(ue)&&Y2(()=>i?.())(ue)},[c,i]),ye=(0,h.useCallback)(()=>{r||(q(),clearTimeout(D.current),D.current=setTimeout(()=>d?.(),100))},[q,d,r]),Ie=(0,h.useCallback)(()=>{E(!0)},[]),we=(0,h.useCallback)(()=>{E(!1)},[]);(0,h.useEffect)(()=>{const ue=O.current;if(!ue)return;const Be=He=>{const mt=Oo.getElementRect(He.target),ht={x:mt.left+mt.width/2,y:mt.top+mt.height/2};He.draggable.draggable({snap:{targets:[ht]}})},Re=He=>{He.draggable.draggable({snap:{targets:[(mt,ht)=>({x:mt,y:ht})]}})},We=He=>{He.draggable.draggable({snap:{targets:[(mt,ht)=>({x:mt,y:ht})]}}),He.stopPropagation?.(),He.preventDefault?.(),_()};return Oo(ue).dropzone({overlap:"pointer"}).on("dragenter",Be).on("dragleave",Re).on("drop",We),ee(),P.current=Tu()(ee,250),window.addEventListener("resize",P.current),()=>{Oo(ue).off("dragenter",Be).off("dragleave",Re).off("drop",We),clearTimeout(A.current),clearTimeout(F.current),clearTimeout(w.current),clearTimeout(D.current),P.current&&(P.current.cancel(),window.removeEventListener("resize",P.current))}},[]);const Ve=Q()(Ca(),{"drop-success":v,complete:r}),Me=Q()(Ca("content"),{"drop-animating":!x&&!y}),Ae=Ca("title",{"is-max-length":b}),me=typeof m=="string"?m:m?.["en-US"]||"Category";return(0,s.jsx)("div",{className:Ve,ref:O,children:(0,s.jsx)("div",{className:Ca("wrapwrap"),children:(0,s.jsxs)(ws,{className:Ca("wrap"),overrideBackground:!0,children:[(0,s.jsx)("div",{"aria-hidden":"true",className:Ca("message"),children:(0,s.jsx)(Tt,{className:Ae,ref:j,value:m})}),(0,s.jsx)("button",{"aria-disabled":r,"aria-label":me,className:Me,disabled:r,onBlur:we,onClick:ye,onFocus:Ie,onKeyDown:fe,ref:R,type:"button",children:f&&(0,s.jsx)(r6,{id:f.id,title:f.title})}),(0,s.jsx)("div",{className:Ca("background")})]})})})},jm=ne("sorting"),mV=(t,e)=>!e||!e.items?t:t.filter(n=>!e.items?.[n.id]?.isViewed),pV=({id:t,labels:e,items:n,piles:o,onCardDrop:r,onReplay:a,progress:i})=>{const[c,u]=(0,h.useState)(()=>Du()(n)),[d,m]=(0,h.useState)(!1),p=(0,h.useRef)([]),f=(0,h.useRef)(null),g=(0,h.useRef)(i?.retryAttempts),v=(0,h.useRef)(i?.percentViewed),C=(0,h.useRef)(void 0),x=(0,h.useRef)(void 0),L=(0,h.useRef)(void 0),{announcePolite:y}=bt(),E=(0,h.useEffectEvent)(()=>{p.current[0]?.focus()}),b=(0,h.useEffectEvent)(()=>{const A=i?.correctlyAnswered??0,F=n.length;y(`${A} of ${F} cards correct`)}),S=(0,h.useEffectEvent)(()=>{f.current?.focusReplayButton()});(0,h.useEffect)(()=>{const A=F=>{const{blockId:w,cardId:D}=Xa(F.detail.path,["block","card"]);t!==w||!D||u(V=>{const _=V.find(q=>q.id===D),ee=V.filter(q=>q.id!==D);return _?[_,...ee]:V})};return window.addEventListener($t,A),()=>{window.removeEventListener($t,A)}},[t]),(0,h.useEffect)(()=>{const A=i?.retryAttempts,F=g.current;return A!==F?(g.current=A,u(Du()(n)),clearTimeout(C.current),C.current=setTimeout(()=>{E()},100)):u(w=>{const D=n.filter(ee=>!w.find(q=>q.id===ee.id));return[...w.filter(ee=>n.find(q=>q.id===ee.id)).map(ee=>{const q=n.find(fe=>fe.id===ee.id);return q?{...ee,...q}:ee}),...D]}),()=>{clearTimeout(C.current)}},[n,i?.retryAttempts]),(0,h.useEffect)(()=>{const A=i?.percentViewed,F=v.current;return A===100&&F!==100&&(m(!0),clearTimeout(x.current),x.current=setTimeout(()=>{b()},500),clearTimeout(L.current),L.current=setTimeout(()=>{S()},100)),A!==100&&F===100&&m(!1),v.current=A,()=>{clearTimeout(x.current),clearTimeout(L.current)}},[y,i?.correctlyAnswered,i?.percentViewed,n.length]);const{sortingLandmark:T}=e,N=mV(c,i),j=T,R=N?.[0],O=R?typeof R.title=="string"?R.title:R.title?.["en-US"]||"":"",P=d?"Categories. Interaction completed.":O?`Categories. ${O}`:"Categories";return(0,s.jsxs)("div",{"aria-label":j,className:jm(),role:"group",children:[(0,s.jsx)("div",{className:jm("row"),children:(0,s.jsx)(uV,{count:c.length,id:t,items:N,labels:e,onReplay:a,progress:i,ref:f})}),(0,s.jsx)("ul",{"aria-label":P,className:jm("row"),role:"list",children:o.map((A,F)=>(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(hV,{deckTopCard:N?.[0],id:A.id,isComplete:d,lessonId:t,nextCard:N?.[1],onCardDrop:r,onKeyDropEnd:()=>{f.current?.endKeyDrop()},onKeyDropStart:()=>{f.current?.startKeyDrop()},onNavigateToNext:()=>hk({list:p.current,currentIndex:F}),onNavigateToPrevious:()=>mk({list:p.current,currentIndex:F}),ref:w=>{p.current[F]=w},title:A.title})},A.id))})]})},fV=({blockId:t,lessonId:e})=>({itemId:n,isCorrect:o})=>(0,W.JD)((0,Jo.i$)({itemId:n,lessonId:e,blockId:t,isCorrect:o})),vV=({blockId:t,lessonId:e})=>()=>(0,W.JD)((0,Jo.V9)({lessonId:e,blockId:t})),gV=t=>{const{animateBlockEntrance:e,blockId:n,initiallyVisible:o,items:r,labels:a,piles:i,progress:c}=t,u=t.onCardDrop||fV,d=t.onReplay||vV;return(0,s.jsx)(kt,{type:"sorting-activity",children:(0,s.jsx)(Ot,{animateBlockEntrance:e,initiallyVisible:o,isLearner:!0,children:(0,s.jsx)(pV,{id:n,items:r,labels:a,onCardDrop:u(t),onReplay:d(t),piles:i,progress:Lt()({},["items",n],c)})})})};var i6=l(88323);class CV extends h.Component{static defaultProps={scope:"error-boundary"};constructor(e){super(e),this.state={hasError:!1,prevScope:e.scope}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}static getDerivedStateFromProps(e,n){return n.prevScope!==e.scope?{hasError:!1,error:void 0,prevScope:e.scope}:n}componentDidCatch(e){i6.L.addError(e,{scope:this.props.scope},"source")}render(){const{hasError:e,error:n}=this.state,{FallbackComponent:o}=this.props;return e||n?(0,s.jsx)(o,{}):this.props.children}}const xV=CV,l6=(0,h.createContext)({translationHoveredPath:null});function bV(){return(0,h.use)(l6)}const yV=l6.Provider,LV=(0,h.lazy)(()=>l.e("webpack_container_remote_mondrian_learn-react").then(l.t.bind(l,4246,23))),EV={subscribe(t,e){const n=`mondrian:${t}`,o=()=>{st.isPlaying&&st.playerId!==n&&e()};return st.addChangeListener(o),()=>{st.removeChangeListener(o)}},play(t){const e=`mondrian:${t}`;st.playerId=e,st.isPlaying=!0}};function SV(t){const e={};return t.backgroundType==="IMAGE"&&(e["--color-background"]="transparent"),e.maxWidth=(t.contentWidth??9999)+"rem",e.minWidth="0",e.margin="0 auto",e}function TV({blockumentId:t,manifest:e}){let n=920,o=600;try{const r=e.blockuments?.[t];if(r){const a=e.items?.[r.children[0]?.id];if(a){const i=a.states[a.initialState];if(i){const c=i.width.value,u=i.height.value;typeof c=="number"&&typeof u=="number"&&(n=c,o=u)}}}}catch{}return(0,s.jsx)("svg",{"aria-hidden":"true",className:"block-mondrian__fallback",height:o,width:n})}function IV({animateBlockEntrance:t=!0,initiallyVisible:e,blockumentId:n,isLearner:o=!1,settings:r,onStep:a,labels:i}){const c=(0,xe.DX)(),u=c.mondrian,d=(0,xe.SQ)(),m=(0,ks.y4)(),p=ql(),f={externalLinksDisabled:"externalLinksDisabled"in c?c.externalLinksDisabled:!1,isExternalLink:Pn},{currentLocale:g}=(0,rt.nY)(),v=(0,nt.D_)(),C=bV(),x=(0,h.useMemo)(()=>({active:g,source:v}),[g,v]),L=(0,h.useCallback)(N=>p?.audioPlayerIdOpen===ro({refs:`items:${n}/items:${N}`}),[n,p?.audioPlayerIdOpen]),y=(0,h.useCallback)(({refocusTarget:N,itemId:j,transcript:R})=>{L(j)?m(Zl()):m(bv({audioPlayerId:ro({refs:`items:${n}/items:${j}`}),focusing:!0,refocusTarget:N,transcriptMedia:{mondrianTranscript:R}}))},[n,m,L]),E=(0,h.useCallback)(({itemId:N,transcript:j})=>{p?.audioPlayerIdOpen&&m(Lr({audioPlayerId:ro({refs:`items:${n}/items:${N}`}),transcriptMedia:{mondrianTranscript:j}}))},[n,m,p]),b=(0,h.useCallback)(N=>{m(Lr({audioPlayerId:ro({refs:`items:${n}/items:${N}`}),focusing:!0}))},[n,m]),S=(0,h.useMemo)(()=>({isPanelOpenForItem:L,focusPanel:b,togglePanel:y,updateTranscript:E}),[b,L,y,E]),T=(0,h.useCallback)(N=>{if(a)for(const j of Object.values(N))j.progress>=100&&a({id:j.itemId})},[a]);return(0,s.jsx)(kt,{children:(0,s.jsx)(xV,{FallbackComponent:kV,children:(0,s.jsx)(Ot,{animateBlockEntrance:t,initiallyVisible:e,isLearner:o,children:(0,s.jsx)("div",{style:SV(r),children:(0,s.jsx)(h.Suspense,{fallback:(0,s.jsx)(TV,{blockumentId:n,manifest:u}),children:(0,s.jsx)(LV,{blockumentId:n,hoveredItemPath:C.translationHoveredPath,labels:i,linkRenderConfig:f,locale:x,manifest:u,mediaStoreAdapter:EV,onMediaProgress:T,runtimeInterface:window.Runtime,searchTerm:d?.term,transcriptPanelAdapter:S})})})})})})}const NV=(0,h.memo)(IV,jV);function jV(t,e){return t.blockumentId===e.blockumentId&&t.settings.backgroundType===e.settings.backgroundType&&t.settings.contentWidth===e.settings.contentWidth&&t.labels===e.labels}function kV(){return null}var c6=l(67750),ss=l(26372);const Ns=ne("block-code"),AV=`${(0,$e._$)("CDN_URI")}/assets/rise/assets/blocks/code_block_unavailable.svg`;function d6(t,e){const n=u6(c6.parse(t.data));for(const o of n)if(o.type==="notification")e[o.method]?.(o.params);else throw new Error(`Unsupported RPC type "${o.type}"`)}function*u6(t){if(Array.isArray(t))for(const e of t)yield*u6(e);else yield t}function h6(t,e,n){return ss.useEffect(()=>{const r=new AbortController;return window.addEventListener("message",a=>{a.origin===window.origin&&e!=null&&t.current&&a.source===t.current.contentWindow&&d6(a,e)},{signal:r.signal}),()=>r.abort()},[e,t]),ss.useCallback(r=>{t.current?.contentWindow?.postMessage(r,n)},[t,n])}const RV=(t,e,n)=>h6(t,n,window.origin),PV=(t,e,n)=>h6(t,n,"*"),wV=(t,e,n)=>{const[o,r]=ss.useState(()=>new BroadcastChannel(e));return ss.useEffect(()=>()=>o.close(),[o]),ss.useEffect(()=>{o.name!==e&&r(new BroadcastChannel(e))},[o,e]),ss.useEffect(()=>{const i=new AbortController;return o.addEventListener("message",c=>d6(c,n),{signal:i.signal}),()=>i.abort()},[o,n]),ss.useCallback(i=>{o.postMessage(i)},[o])},MV=(0,$e.Hm)()?rn.isLocalFilesystem?PV:wV:RV,OV=window.location.origin==="";function DV(t){let e=OV?"":"lib/sandbox/sandbox.html";return e+=`#channel=${encodeURIComponent(t)}`,e}function BV(t){return typeof t=="number"?`${t/10}rem`:"-1px"}const HV={0:"small",1:"medium",2:"full"};function FV({editBlock:t,errors:e,isDragPreview:n,isLearn:o,isSidebarPreview:r,items:a,labels:i,onClearErrors:c,onError:u,onStep:d,previewType:m,settings:p}){const f=ss.useRef(null),v=(0,xe.DX)()?.htmlBlocksDisabled,C=n||r||!!m,[x]=a,L=(0,nt.QQ)(x.srcdoc),y=(0,nt.QQ)(x.media),E=y?.sandbox?.src==null?void 0:`${y.sandbox.src}/index.html`,b=p?.autoResize===!0,S=p?.width??"0",[T,N]=ss.useState("-1px");ss.useEffect(()=>{b||N(BV(p?.height))},[b,p?.height]);const[j,R]=ss.useState(0),[O,P]=ss.useState(!1),[A,F]=ss.useState(!1),[w]=ss.useState(()=>`rise-frontend-sandbox-${window.crypto.randomUUID()}`),D=DV(w),V=ss.useCallback(()=>{d?.({id:x.id})},[x.id,d]),_=ss.useCallback(({message:Ae})=>{u?.({message:Ae}),F(!0),console.error("Sandbox Error",Ae)},[u,F]),ee=ss.useCallback(()=>{c?.(),F(!1),R(Ae=>Ae+1)},[c]),q=ss.useCallback(()=>{P(j>0)},[j]),fe=ss.useCallback(({height:Ae})=>{b&&N(`${Ae}px`)},[b]),ye=ss.useMemo(()=>({oncomplete:V,onerror:_,onload:q,onready:ee,onresize:fe}),[V,_,ee,q,fe]),Ie=MV(f,w,ye),we=ss.useCallback((Ae,me)=>{if(f==null&&j===0)throw new Error("Attempted to send message to sandbox before it is ready");const ue=c6.format.notification(Ae,me);Ie(ue)},[j,f,Ie]),Ve=ss.useCallback(()=>{window.location.reload()},[]),Me=ss.useCallback(()=>{t?.()},[t]);return ss.useEffect(()=>{j&&we("onupdate",{autoResize:b,src:E,srcDoc:L})},[b,j,we,E,L]),o&&e!=null||A?(0,s.jsx)(kt,{children:(0,s.jsxs)("div",{className:Ns("error-general",{learn:o}),children:[(0,s.jsx)("div",{className:Ns("error-message"),children:"Something went wrong"}),(0,s.jsx)("div",{className:Ns("error-message-subtitle"),children:"There was an error loading this code block. Please contact your admin if the issue continues."}),(0,s.jsx)(Mt.ArcButton,{className:Ns("error-button"),onClick:Ve,size:"lg",variant:"primary",children:"Refresh page"})]})}):e!=null&&Object.keys(e).length>0?(0,s.jsx)(kt,{children:e[404]?(0,s.jsxs)("div",{className:Ns("error-404"),children:[(0,s.jsx)("div",{className:Ns("error-message"),children:"We couldn\u2019t find your file"}),(0,s.jsx)("div",{className:Ns("error-message-subtitle"),children:"Make sure your zip file contains an index.html file."}),(0,s.jsx)(Mt.ArcButton,{className:Ns("error-button"),onClick:Me,size:"lg",variant:"primary",children:"Retry upload"})]}):(0,s.jsxs)("div",{className:Ns("error-general"),children:[(0,s.jsx)("div",{className:Ns("error-message"),children:"Something went wrong"}),(0,s.jsxs)("div",{className:Ns("error-message-subtitle"),children:["Try refreshing the page or entering your code again. If the issue isn't fixed,"," ",(0,s.jsx)("a",{href:"https://community.articulate.com/group/code-block",rel:"noopener noreferrer",target:"_blank",children:"visit our community"}),"."]}),(0,s.jsx)(Mt.ArcButton,{className:Ns("error-button"),onClick:Ve,size:"lg",variant:"primary",children:"Refresh page"})]})}):v&&!C?(0,s.jsx)(kt,{children:(0,s.jsx)("div",{className:Ns("restricted"),children:(0,s.jsxs)("div",{className:Ns("restricted-card"),children:[(0,s.jsx)(N1,{alt:"",className:Ns("restricted-icon"),src:AV}),(0,s.jsx)("div",{className:Ns("restricted-title"),children:"Subscribe to unlock full access"}),(0,s.jsx)("div",{className:Ns("restricted-message"),children:"To protect learners from phishing, scams, or malicious redirects, code blocks are disabled when sharing with Quick Share during your trial."})]})})}):(0,s.jsx)(kt,{children:(0,s.jsx)("iframe",{allow:"fullscreen",className:Ns({"auto-resize":b,loaded:C||O,width:HV[S]}),"data-rise-frontend-sandbox":"",loading:"lazy",ref:f,sandbox:"allow-forms allow-popups allow-same-origin allow-scripts",scrolling:b?"no":void 0,src:D,style:{"--block-html-height":T},title:i?.a11yBlockCode},w)})}const Ar=ne("timeline-card"),zV=t=>{const{blockId:e,disableZoom:n,enableVideoPlaybackSpeed:o,isOverlayAudio:r,item:a,labels:i,lessonId:c,lessonNumber:u,mediaType:d,audioPosition:m}=t,{settings:p}=a,f=(0,nt.QQ)(a.media)??{},g=d==="audio"&&f.audio,v=d==="embed"&&f.embed,C=d==="image"&&f.image,x=d==="video"&&f.video;if(!g&&!v&&!C&&!x&&!(d==="image-with-audio"&&r))return;const y=f.embed?fa(f.embed):void 0,E=!!f.image,b=!!f.audio,S=E?f.image.align:"center",T=Ar("media",{audio:b&&!r,"audio-and-embed":!!(f.audio&&f.embed),"image-with-audio":r,[`image-with-audio-${S}`]:r&&!!S,"audio-on-bottom":b&&!r&&m==="bottom",linkEmbed:y==="link",videoEmbed:y==="video",visual:!r&&E||!Xs()(f.video)}),N=p||{};return(0,s.jsx)("div",{className:T,children:(0,s.jsx)(zs,{blockId:e,enableVideoPlaybackSpeed:o,index:`${a.id}`,isOverlayAudio:r,item:a,labels:i,lessonId:c,lessonNumber:u,media:f,opts:{disableZoom:n,...N},pauseOnLoad:!0,renderMediaType:r?void 0:d})})},VV=t=>{const{headingLevel:e,innerRef:n,item:o,isActive:r,loadMedia:a,audioPosition:i,onFocus:c}=t,{id:u}=o,d=Ar({active:r}),m=!!o.date,p=!!o.title,f=e||2,g=`h${f}`,v=`h${f+1}`,C=(0,nt.QQ)(o.media)??{},x=ao(C,i,!0,"timeline"),L=()=>{if(!C||!a)return null;const y={audio:{item:{...o,media:x.audioOnlyMedia||C},mediaType:"audio"},image:{item:{...o,media:x.imageOnlyMedia||C},mediaType:"image"},video:{item:{...o,media:x.videoOnlyMedia||C},mediaType:"video"},embed:{item:{...o,media:x.embedOnlyMedia||C},mediaType:"embed"},overlay:{mediaType:"image-with-audio",isOverlayAudio:!0}};return(0,s.jsx)(s.Fragment,{children:x.renderOrder.map((E,b)=>{if(E==="text")return(0,s.jsx)(Tt,{className:Ar("description"),value:o.description},`text-${b}`);const S=y[E];return S?(0,h.createElement)(zV,{...t,...S,key:`${E}-${b}`}):null})})};return(0,s.jsx)("div",{className:d,"data-id":u,ref:n,children:(0,s.jsx)(ws,{className:Ar("body"),onFocus:c,children:(0,s.jsx)("div",{className:Ar("main-wrap"),children:(0,s.jsxs)("div",{className:Ar("main"),children:[m&&(0,s.jsx)("div",{className:Ar("date"),children:(0,s.jsx)(g,{children:(0,s.jsx)(is,{value:o.date})})}),p&&(0,s.jsx)("div",{className:Ar("title"),children:(0,s.jsx)(v,{children:(0,s.jsx)(is,{value:o.title})})}),L()]})})})})},hc=ne("timeline"),UV=t=>{const{audioPosition:e,disableZoom:n,enableVideoPlaybackSpeed:o,headingLevel:r,id:a,initiallyVisible:i,isBlock:c,isLearner:u,item:d,labels:m,lessonId:p,onFocus:f}=t,g=(0,s.jsx)(VV,{audioPosition:e,blockId:a,disableZoom:n,enableVideoPlaybackSpeed:o,headingLevel:r,isActive:!0,item:d,labels:m,lessonId:p,lessonNumber:a,loadMedia:!0,onFocus:f});return c?u?(0,s.jsx)(Ot,{animateBlockEntrance:!0,className:hc("animate").toString(),initiallyVisible:i,isLearner:!0,children:g}):g:null},$V=t=>{const{id:e,items:n,labels:o,onEnter:r=Function.prototype,settings:a={}}=t,i=(0,h.useRef)(null),c=(0,h.useCallback)((u,d)=>{r({id:e,payload:{activeIndex:u,itemId:d}})},[e,r]);return(0,h.useEffect)(()=>{function u(d){const{blockId:m,cardId:p}=Xa(d.detail.path,["block","card"]);if(m!==e)return;const f=i.current.querySelector(`[data-id="${p}"]`);f&&!dh(f,"center")&&f.scrollIntoView({behavior:"instant",block:"center"})}return window.addEventListener($t,u),()=>{window.removeEventListener($t,u)}}),(0,s.jsx)("div",{"aria-label":o?.a11yBlockTimeline,className:"page__content-container",ref:i,role:"group",children:(0,s.jsx)("div",{className:hc("wrapper"),children:(0,s.jsx)("div",{className:hc(),children:(0,s.jsx)("ul",{className:hc("container"),role:"list",children:n.map((u,d)=>(0,s.jsx)("li",{className:hc("card-wrapper"),role:"listitem",children:UV({index:d,item:u,onFocus:c,...t,disableZoom:!a.zoomOnClick,headingLevel:a.headingLevel,audioPosition:a.audioPosition})},d))})})})})},WV=t=>{const{animateBlockEntrance:e,blockId:n,enableVideoPlaybackSpeed:o,initiallyVisible:r,isLearner:a=!0,items:i,labels:c,lessonId:u,settings:d}=t;return(0,s.jsx)(kt,{type:"timeline",children:(0,s.jsx)(Ot,{animateBlockEntrance:e,animateIn:"fadeIn",initiallyVisible:r,isLearner:!0,children:(0,s.jsx)($V,{enableVideoPlaybackSpeed:o,id:n,initiallyVisible:r,isBlock:!0,isLearner:a,items:i,labels:c,lessonId:u,settings:d})})})},GV=t=>(0,s.jsx)("div",{className:"unsupported-block",...t,children:(0,s.jsxs)("span",{children:["We no longer support this block, so you can safely delete it. If you have any questions, please"," ",(0,s.jsx)("a",{href:"https://access.articulate.com/support/contact",children:"contact Articulate Support."})]})});var un=l(30467),KV=l(28565),m6=l(32584),_V=l(35536),p6=l.n(_V),f6=l(48653);const QV=matchMedia("(forced-colors: active)");function mc(){return QV.matches}const ZV=({activeIndex:t,values:e,opts:n})=>{const{background:o,variant:r}=Is(),{chartColor:a,lineCurve:i}=Ys(),c=En(),u=(0,xe.kJ)(),d=n?.defaultFontColor,m=Ro(),p=m===M.xj.IMAGE,g=(0,nt.QQ)(o?.media)?.image?.overlayColor??M.df.DARK,v=mc();let C=a??u,x=c||"#fff";!a&&m===M.xj.ACCENT||a===x?C=d:p&&(C=g===M.df.DARK?"#fff":"#000",x=g===M.df.DARK?"#000":"#fff"),v&&(C="Highlight",x="Canvas");let L=C,y=Array(e.length).fill(C);if(t!=null&&!v){const E=p&&g===M.df.LIGHT?.2:.7,b=(0,f6.A)(C,x,E);L=b,y=jR(b,C,e.length,t)}return r==="bar"?{backgroundColor:y,data:e,hoverBackgroundColor:y}:{borderColor:L,cubicInterpolationMode:i==="linear"?"default":"monotone",data:e,lineTension:i==="linear"?0:void 0,pointBackgroundColor:y,pointBorderColor:y,pointBorderWidth:0,pointHitRadius:20,pointHoverBackgroundColor:C,pointHoverBorderColor:C,pointHoverBorderWidth:0,pointRadius:4}};function YV({activeIndex:t,children:e,opts:n,values:o}){const r=ZV({activeIndex:t,opts:n,values:o});return e(r)}class XV extends h.PureComponent{handleMouseEnter=()=>{this.props.onEvent(this.props.index)};handleMouseLeave=()=>{this.props.onEvent(null)};render(){const{activeIndex:e,identifier:n,index:o,label:r,value:a}=this.props,i=e!=null&&e!==o,c=Q()("block-chart__cartesianLegendItem",{"block-chart__cartesianLegendItem--unfocused":i});return(0,s.jsxs)("div",{className:c,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[(0,s.jsx)("dt",{className:"block-chart__cartesianLegendTerm",children:`${n}.`}),(0,s.jsxs)("dd",{className:"block-chart__cartesianLegendDefn","data-l10n-id":r.l10nId,children:[r.label,(0,s.jsx)("span",{className:"block-chart__cartesianLegendDefnPipe",role:"separator",children:"|"}),(0,s.jsx)("span",{className:"block-chart__cartesianLegendDefnVal",children:a})]})]})}}const JV=XV,qV=({activeIndex:t,labels:e,letters:n,onEvent:o,values:r})=>{const a=Kd(n,Kd(e,r));return a.length===0?null:(0,s.jsx)("dl",{className:"block-chart__cartesianLegend",children:a.map(([i,[c,u]],d)=>(0,s.jsx)(JV,{activeIndex:t,identifier:i,index:d,label:c,onEvent:o,value:u},i))})},eU=(0,h.memo)(qV);var tU=l(77987),sU=l.n(tU);function nU(t){const e=this.getLabelForValue(t),n=15,o=e.split(" "),r=[];let a="";return o.forEach(i=>{(a+i).length>n?(r.push(a),a=i):a+=(a.length>0?" ":"")+i}),r.push(a),r}const oU={animation:{},barPercentage:.5,defaultFontFamily:'"lato", sans-serif',elements:{arc:{},bar:{},line:{borderWidth:2,fill:!1}},layout:{padding:{bottom:0,left:0,right:0,top:50}},maxBarThickness:60,plugins:{datalabels:{display:!1},legend:{display:!1,labels:{}},tooltip:{animation:!0,boxPadding:"14px 10px",callbacks:{label:()=>null,title:t=>{const{label:e,formattedValue:n}=t[0];return`${e}: ${n}`}},caretPadding:10,cornerRadius:3,displayColors:!1,titleFont:{weight:"normal"},titleMarginBottom:0,titleSpacing:0,xAlign:"center",yAlign:"bottom"}},responsive:!1,scales:{x:{border:{display:!1},grid:{display:!1,offset:!0},offset:!0,ticks:{autoSkip:!1,callback:nU,padding:10}},y:{beginAtZero:!0,border:{display:!1},grid:{drawTicks:!1},ticks:{maxTicksLimit:8,padding:15}}}};function rU({values:t,contrastColor:e}){const n=Is(),o=Ro(),r=o===M.xj.IMAGE,a=(0,h.useMemo)(()=>NR(t),[t]);let i,c;const d=(0,nt.QQ)(n?.background?.media)?.image?.overlayColor??M.df.DARK,m=r&&d===M.df.LIGHT;switch(o){case M.xj.LIGHT:case M.xj.GRAY:case M.xj.TINT:[i,c]=["#e1e1e1","#c9c9c9"];break;case M.xj.DARK:case M.xj.BLACK:case M.xj.IMAGE:[i,c]=["#ffffff80","#ffffffe9"];break;case M.xj.ACCENT:case M.xj.COLOR:{[i,c]=e==="#000"?["#00000080","#0000001a"]:["#ffffff80","#ffffffe9"];break}}return r&&m&&([i,c]=["#00000080","#0000001a"]),a||(c=i),[i,c]}const aU=({onEvent:t,reduceMotion:e,shouldAnimate:n,values:o})=>{const r=En(),{customBackgroundColorContrast:a}=Ys(),i=(0,xe.DX)(),c=(0,xe.kJ)(),u=i?.theme?.accentContrast,d=Ro(),m=d===M.xj.IMAGE,p=Is(),f=mc(),g=(0,ft.cP)(r)?M.Em.LIGHT:M.Em.DARK,v=!a&&p?.family==="chart",C=a??M.Em.DARK,x=v?g:C,y=(0,nt.QQ)(p?.background?.media)?.image?.overlayColor??M.df.DARK,E=m&&y===M.df.LIGHT,b=d===M.xj.ACCENT||d===M.xj.COLOR,S=d===M.xj.ACCENT?c:r,T=d===M.xj.ACCENT?u:x,N=Rs({backgroundColor:S,contrast:T}),[j,R]=rU({values:o,contrastColor:N}),O=(0,h.useCallback)(A=>f&&m?E?"#000000":"#FFFFFF":A.tick.value===0?R:j,[j,f,R,m,E]);return(0,h.useMemo)(()=>{let A="#000";if(f)m?A=E?"#000000":"#FFFFFF":A="FieldText";else{switch(d){case M.xj.DARK:case M.xj.BLACK:case M.xj.IMAGE:A="#fff";break}b&&(A=N),m&&E&&(A="#000")}const F=n&&!e?1e3:0;let w,D;f?m?(w=A,D=E?"#FFFFFF":"#000000"):(w="Highlight",D="HighlightText"):(w=A,D=A==="#000"||A==="#000000"||A===M.Em.DARK?"#FFFFFF":"#000000");const V=sU()(oU);return V.animation.duration=F,V.defaultFontColor=A,V.onClick=t,V.onHover=t,V.plugins.tooltip.animation=!e,V.plugins.tooltip.backgroundColor=w,V.plugins.tooltip.titleColor=D,f&&!m?(V.scales.x.grid.color="FieldText",V.scales.y.grid.color="FieldText"):(V.scales.x.grid.color=j,V.scales.y.grid.color=O),V.scales.x.ticks.color=A,V.scales.y.ticks.color=A,f&&(m?V.plugins.legend.labels.color=E?"#000000":"#FFFFFF":V.plugins.legend.labels.color="FieldText"),V},[d,N,j,b,f,m,E,t,e,O,n])};function iU(t){const{children:e,onEvent:n,reduceMotion:o,shouldAnimate:r,values:a}=t,i=aU({onEvent:n,reduceMotion:o,shouldAnimate:r,values:a});return e(i)}var lU=l(93752),km=l.n(lU);const cU=/<mark>|<\/mark>/gm,dU=t=>e=>{const n=t(e.type).replace(cU,"")??"";return{label:km()(n,{length:30}),l10nId:(0,pt.pP)(e?.type)}},uU=t=>parseFloat(t.value??"0"),v6=(t,e)=>({labels:t.map(dU(e)),values:t.map(uU)}),g6=(t,e,n)=>{const o=km()(e,{length:t});return n?QA(o,n):o};function hU(){const[t,e]=h.useState(null),n=h.useRef(null),{announcePolite:o}=bt(),{a11yBlockChartPreposition:r}=(0,xe.vU)()??{},a=h.useCallback(f=>{e(f)},[]),i=h.useCallback(()=>{n.current?.resize()},[]),c=h.useCallback(()=>{n.current?.update()},[]),u=h.useCallback(()=>{i(),c()},[i,c]),d=h.useCallback(()=>{const f=n.current;if(f==null)return;const g=f.getDatasetMeta(0),v=g.data;if(!v?.length)return;const C=0,L=[{datasetIndex:0,element:g.data[C],index:C}];f.setActiveElements(L),f.tooltip?.setActiveElements(L,{x:0,y:0}),f.update(),a(C);const y=f.data.labels[C],E=f.data.datasets[0].data[C];setTimeout(()=>{o(`${C+1} ${r??""} ${v.length} - ${y}: ${E}`)},0)},[r,o,n,a]),m=h.useCallback(()=>{const f=n.current;if(f==null)return;const g=[];f.setActiveElements(g),f.tooltip?.setActiveElements(g,{x:0,y:0}),f.update(),a(null),o(null)},[o,n,a]),p=h.useCallback(f=>{const g=n.current;if(g==null)return;const v=g.getDatasetMeta(0),C=v.data;if(!C?.length)return;let x=!1,L=t;switch(f.key){case"ArrowLeft":x=!0,L=(t-1+C.length)%C.length;break;case"ArrowRight":x=!0,L=(t+1+C.length)%C.length;break;case"Home":x=!0,L=0;break;case"End":x=!0,L=C.length-1;break}if(x&&(f.stopPropagation(),f.preventDefault()),L!==t){const E=[{datasetIndex:0,element:v.data[L],index:L}];g.setActiveElements(E),g.tooltip?.setActiveElements(E,{x:0,y:0}),g.update(),a(L);const b=g.data.labels?.[L],S=g.data.datasets[0].data[L];o(`${L+1} ${r??""} ${C.length} - ${b}: ${S}`)}},[r,t,o,n,a]);return h.useEffect(()=>{n.current&&(n.current.resize(),n.current.update())},[]),h.useEffect(()=>{n.current&&n.current.update()},[t]),{activeIndex:t,chartRef:n,onBlur:m,onFocus:d,onKeyDown:p,onEvent:a,onResize:u}}function C6(t){const e=n=>{const{activeIndex:o,chartRef:r,onBlur:a,onEvent:i,onFocus:c,onKeyDown:u,onResize:d}=hU();return(0,s.jsx)(t,{...n,activeIndex:o,chartRef:r,onBlur:a,onEvent:i,onFocus:c,onKeyDown:u,onResize:d})};return e.displayName=`withChartEvents(${t.displayName||t.name})`,e}const mU="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");class pU extends h.PureComponent{wrapRef;id;resizeObserver;constructor(e){super(e),this.wrapRef=(0,h.createRef)(),this.state={labelYTop:"50%"}}componentDidMount(){this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.wrapRef.current)}componentWillUnmount(){this.resizeObserver.unobserve(this.wrapRef.current)}handleEvent=(e,n)=>{const o=n.length?n[0].index:null;this.props.onEvent(o)};handleResize=()=>{requestAnimationFrame(()=>{this.props.onResize(),this.setLabelYTop()})};setLabelYTop=()=>{const e=this.props.chartRef.current;if(e){const{bottom:n,top:o}=e?.scales?.y??{};p6()(n)&&p6()(o)&&this.setState({labelYTop:`${(n+o)/2}px`})}};render(){const{props:{activeIndex:e,chartRef:n,getL10nValue:o,htmlIdBase:r,htmlIdTitle:a,onBlur:i,onFocus:c,onKeyDown:u,isDesktop:d,isVisible:m,items:p,itemsLabel:f,labels:g,onEvent:v,search:C,shouldAnimate:x,valuesLabel:L,variant:y},state:{labelYTop:E}}=this,b=g6(80,o(f),C),S=g6(30,o(L),C),T=v6(p,o),N=d?[]:mU.slice(0,p.length),j=d?T.labels:N.map(w=>({label:w})),R=m?T.values:zv(0,p.length),O=`${r}-type`,P=`${r}-instructions`,A=j.map(w=>w.label),F=j.map(w=>w.l10nId).join(",");return(0,s.jsxs)("div",{className:"block-chart__cartesian",children:[(0,s.jsx)("p",{className:"visually-hidden-always",id:P,children:g?.a11yBlockChartInstructions}),(0,s.jsxs)("div",{className:"block-chart__cartesianChart",ref:this.wrapRef,children:[S&&yi(S)&&(0,s.jsxs)("div",{className:"block-chart__cartesianLabelY","data-l10n-id":(0,pt.pP)(L),style:{insetInlineEnd:E},children:[S,(0,s.jsx)("span",{className:"visually-hidden-always",children:g?.a11yBlockChartAxisY})]}),b&&yi(b)&&(0,s.jsxs)("div",{className:"block-chart__cartesianLabelX","data-l10n-id":(0,pt.pP)(f),children:[b,(0,s.jsx)("span",{className:"visually-hidden-always",children:g?.a11yBlockChartAxisX})]}),(0,s.jsx)(iU,{onEvent:this.handleEvent,reduceMotion:dn(),shouldAnimate:x,values:R,children:w=>(0,s.jsx)(YV,{activeIndex:e,opts:w,values:R,children:D=>(0,s.jsxs)("div",{"aria-describedby":P,"aria-labelledby":`${a} ${O}`,className:"block-chart__cartesian-canvas-wrap",onBlur:i,onFocus:c,onKeyDown:u,role:"application",tabIndex:0,children:[(0,s.jsx)("div",{className:"visually-hidden-always",id:O,children:y==="bar"?g?.a11yBlockChartBar:g?.a11yBlockChartLine}),(0,s.jsx)(m6.Chart,{"aria-hidden":"true",data:{labels:A,datasets:[D]},"data-l10n-id":F,options:w,ref:n,role:"presentation",type:y,updateMode:"default"})]})})})]}),!d&&(0,s.jsx)(eU,{activeIndex:e,labels:T.labels,letters:N,onEvent:v,values:R})]})}}const fU=t=>({search:t?.search?.term??""});function vU(t){const e=Gt(t),n=_8(960,"isDesktop","Desktop")(e),o=C6(n);return(0,ks.Ls)(fU)(o)}const gU=vU(pU),Am=({valueType:t,value:e,values:n})=>t==="numeric"?String(e):kR(e/Uv(n)),CU=t=>{if(mc())return"FieldText";const e=t.dataset.backgroundColor[t.dataIndex]??"#000";return(0,ft.xD)(e)===M.Em.DARK?lt.S6.DARK:lt.S6.LIGHT},xU=(t,e,n)=>Am({valueType:t,value:e,values:n.dataset.data}),bU=(t,e)=>{const{label:n,dataset:o,parsed:r}=e[0],a=Am({valueType:t,value:r,values:o.data});return`${n}: ${a}`},yU=(t,e)=>{const n=e.dataIndex,o=e.dataset.data??[1],r=o[n],a=t==null&&r/Uv(o)>=.06;return t===n||a},LU=({activeIndex:t,onEvent:e,reduceMotion:n,settings:{valueType:o},shouldAnimate:r})=>{const a=mc();return{animation:{animateRotate:r&&!n,duration:r&&!n?1e3:0},defaultFontFamily:'"lato", sans-serif',onClick:e,onHover:e,maintainAspectRatio:!1,plugins:{datalabels:{color:CU,display:yU.bind(null,t),font:{size:12,weight:"bold"},formatter:xU.bind(null,o)},legend:{display:!1,labels:a?{color:"FieldText"}:void 0},tooltip:{animation:!n,boxPadding:"14px 10px",callbacks:{label:()=>null,title:bU.bind(null,o)},caretPadding:10,cornerRadius:3,displayColors:!1,titleFont:{weight:"normal"},titleMarginBottom:0,titleSpacing:0,xAlign:"center",yAlign:"bottom",backgroundColor:a?"Highlight":lt.S6.LIGHT,titleColor:a?"HighlightText":lt.S6.DARK}},responsive:!1,rotation:130}},EU=({activeIndex:t,colors:e,hasBorder:n,values:o})=>{const r=En(),a=mc(),i=t==null?e:e.map((c,u)=>u===t?c:(0,f6.A)(c,r||"#fff",.5));return a?{backgroundColor:i,hoverBackgroundColor:i,borderWidth:.5,borderColor:"rgba(255, 255, 255, 0.3)",data:o}:{backgroundColor:i,hoverBackgroundColor:i,borderWidth:0,data:o,...n&&{borderWidth:1,borderColor:"#000"}}};function SU({activeIndex:t,children:e,colors:n,hasBorder:o,values:r}){const a=EU({activeIndex:t,colors:n,hasBorder:o,values:r});return e(a)}class TU extends h.PureComponent{handleMouseEnter=()=>{this.props.onEvent(this.props.index)};handleMouseLeave=()=>{this.props.onEvent(null)};render(){const{activeIndex:e,color:n,index:o,label:r,value:a}=this.props,i=e!=null&&e!==o,c=Q()("block-chart__circleLegendItem",{"block-chart__circleLegendItem--unfocused":i});return(0,s.jsxs)("div",{className:c,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[(0,s.jsxs)("dt",{className:"block-chart__circleLegendTerm",children:[(0,s.jsx)("svg",{"aria-hidden":"true",className:"block-chart__circleLegendSymbol","data-ignore":"contrast",fill:n,focusable:"false",role:"presentation",viewBox:"0 0 10 10",children:(0,s.jsx)("rect",{height:"10",rx:"1.5",width:"10"})}),(0,s.jsx)("span",{className:"block-chart__circleLegendText","data-l10n-id":r.l10nId,children:r.label})]}),(0,s.jsx)("dd",{className:"visually-hidden-always",children:a})]})}}const IU=TU,NU=({activeIndex:t,colors:e,hasBorder:n,labels:o,onEvent:r,values:a,valueType:i="numeric"})=>{const c=Kd(e,Kd(o,a));if(c.length===0)return null;const u=Q()("block-chart__circleLegend",{"block-chart__circleLegend--border":n});return(0,s.jsx)("dl",{className:u,children:c.map(([d,[m,p]],f)=>(0,s.jsx)(IU,{activeIndex:t,color:d,index:f,label:m,onEvent:r,value:Am({valueType:i,value:p,values:a})},m.label))})},jU=(0,h.memo)(NU),kU=(t,e)=>{const n=t.filter(a=>Number(a.value)>=0),o=v6(n,e),r=n.map(a=>a.color);return{...o,colors:r}};class AU extends h.PureComponent{wrapRef;id;resizeObserver;constructor(e){super(e),this.wrapRef=(0,h.createRef)()}componentDidMount(){this.resizeObserver=new ResizeObserver(this.props.onResize),this.resizeObserver.observe(this.wrapRef.current)}componentWillUnmount(){this.resizeObserver.unobserve(this.wrapRef.current)}buildOptions=()=>{const{activeIndex:e,settings:n,shouldAnimate:o}=this.props;return LU({activeIndex:e,onEvent:this.handleEvent,reduceMotion:dn(),settings:n,shouldAnimate:o})};handleEvent=(e,n)=>{const o=n.length?n[0].index:null;this.props.onEvent(o)};render(){const{activeIndex:e,backgroundColor:n,chartRef:o,getL10nValue:r,htmlIdBase:a,htmlIdTitle:i,onBlur:c,onFocus:u,onKeyDown:d,isVisible:m,items:p,labels:f,onEvent:g,settings:v}=this.props,{colors:C,labels:x,values:L}=kU(p,r),y=m?L:zv(0,p.length),E=this.buildOptions(),b=`${a}-type`,S=`${a}-instructions`,T=x.map(j=>j.label),N=C.includes(n);return(0,s.jsxs)("div",{className:"block-chart__circle",children:[(0,s.jsx)("p",{className:"visually-hidden-always",id:S,children:f?.a11yBlockChartInstructions}),(0,s.jsx)("div",{className:"block-chart__circleChart",ref:this.wrapRef,children:(0,s.jsx)(SU,{activeIndex:e,colors:C,hasBorder:N,values:y,children:j=>(0,s.jsxs)("div",{"aria-describedby":S,"aria-labelledby":`${i} ${b}`,className:"block-chart__circle-canvas-wrap",onBlur:c,onFocus:u,onKeyDown:d,role:"application",tabIndex:0,children:[(0,s.jsx)("div",{className:"visually-hidden-always",id:b,children:f?.a11yBlockChartPie}),(0,s.jsx)(m6.Chart,{"aria-hidden":"true",data:{labels:T,datasets:[j]},options:E,ref:o,role:"presentation",type:"pie",updateMode:"default"})]})})}),(0,s.jsx)(jU,{activeIndex:e,colors:C,hasBorder:N,labels:x,onEvent:g,values:y,valueType:v?.valueType})]})}}function RU(t){const e=ek()(t),n=C6(e);return Gt(n)}const PU=RU(AU);un.Chart.register(un.ArcElement,un.BarController,un.BarElement,un.CategoryScale,KV.default,un.Legend,un.Legend,un.LineController,un.LineElement,un.LinearScale,un.PieController,un.PointElement,un.Title,un.Tooltip);const wU=t=>(0,ft.cP)(t.backgroundColor);class MU extends h.PureComponent{id;constructor(e){super(e),this.state={isVisible:!1},this.id=(0,um.uniqueId)("chart-")}componentDidMount(){this.setState({isVisible:!this.props.animateBlockEntrance||dn()})}handleAnimationEnd=()=>{this.setState({isVisible:!0})};renderTitle=()=>{const{title:e}=this.props;return(0,s.jsx)(Tt,{value:e})};render(){const{props:{animateBlockEntrance:e,children:n,editable:o,initiallyVisible:r,isLearner:a,items:i,itemsLabel:c,labels:u,settings:d,title:m,valuesLabel:p,variant:f,renderTitle:g=this.renderTitle},state:{isVisible:v}}=this,C=wU(d),x=d?.headingLevel,L=x?`h${x}`:"h2",y=this.id,E=`${y}-title`;return(0,s.jsx)(kt,{type:"chart",children:(0,s.jsx)(Ot,{afterAnimatedIn:this.handleAnimationEnd,animateBlockEntrance:e,initiallyVisible:r,isLearner:a,children:(0,s.jsx)("div",{className:"block-chart__container",children:(0,s.jsx)("div",{className:"block-chart__row",children:(0,s.jsx)("div",{className:"block-chart__rowInner",children:(0,s.jsxs)("figure",{children:[(!o&&m||o)&&(0,s.jsx)("figcaption",{children:(0,s.jsx)(L,{className:"block-chart__title",id:E,children:g()})}),(0,s.jsx)("div",{className:"block-chart__chart",children:h.cloneElement(h.Children.only(n),{hasDarkBgColor:C,htmlIdBase:y,htmlIdTitle:E,isVisible:v,items:i,itemsLabel:c,labels:u,settings:d,shouldAnimate:e,valuesLabel:p,variant:f})})]})})})})})})}}const OU=MU;function x6(t){const e=n=>(0,s.jsx)(OU,{...n,children:(0,s.jsx)(t,{})});return e.displayName=`ChartWrap(${$A(t)})`,e}const DU=x6(gU),BU=x6(PU);var HU=l(26372);const FU=fs()(It()("variant","storyline")),zU=hs()(FU,vs(),Ra()(1));class VU extends HU.Component{render(){const{dividerNumber:e,family:n,handleStorylineFullscreen:o,partnerContent:r,variant:a,enableVideoPlaybackSpeed:i,initiallyVisible:c}=this.props,d={...Ld()(["type","handleStorylineFullscreen","dividerNumber"],this.props),enableVideoPlaybackSpeed:i,partnerContent:r,initiallyVisible:c};return Ye("text","paragraph",d)||Ye("text","table",d)?(0,s.jsx)(MO,{...d}):Ye("text","heading paragraph",d)?(0,s.jsx)(zO,{...d}):Ye("text","subheading paragraph",d)?(0,s.jsx)(VO,{...d}):Ye("text","heading",d)?(0,s.jsx)(HO,{...d}):Ye("text","subheading",d)?(0,s.jsx)(FO,{...d}):Ye("text","two column",d)?(0,s.jsx)(OO,{...d}):Ye("text","three column",d)?(0,s.jsx)(DO,{...d}):Ye("text","four column",d)?(0,s.jsx)(BO,{...d}):Ye("text","code",d)?(0,s.jsx)($g,{...d}):Ye("impact","a",d)?(0,s.jsx)(tD,{...d}):Ye("impact","b",d)?(0,s.jsx)(sD,{...d}):Ye("impact","c",d)?(0,s.jsx)(nD,{...d}):Ye("impact","d",d)?(0,s.jsx)(oD,{...d}):Ye("impact","note",d)?(0,s.jsx)(rD,{...d}):Ye("quote","a",d)?(0,s.jsx)(mD,{...d}):Ye("quote","b",d)?(0,s.jsx)(pD,{...d}):Ye("quote","c",d)?(0,s.jsx)(fD,{...d}):Ye("quote","d",d)?(0,s.jsx)(vD,{...d}):Ye("quote","background",d)?(0,s.jsx)(gD,{...d}):Ye("quote","carousel",d)?(0,s.jsx)(xD,{...d}):Ye("list","numbered",d)?(0,s.jsx)(ED,{...d}):Ye("list","checkboxes",d)?(0,s.jsx)(SD,{...d}):Ye("list","bulleted",d)?(0,s.jsx)(TD,{...d}):Ye("image","hero",d)?(0,s.jsx)(ND,{...d}):Ye("image","full",d)?(0,s.jsx)(_g,{...d}):Ye("image","text aside",d)?(0,s.jsx)(AD,{...d}):Ye("image","text overlay",d)?(0,s.jsx)(PD,{...d}):Ye("gallery","centered",d)||Ye("gallery","full",d)?(0,s.jsx)(FD,{...d}):Ye("gallery","two column",d)?(0,s.jsx)(nm,{...d}):Ye("gallery","three column",d)?(0,s.jsx)(nm,{width:3,...d}):Ye("gallery","four column",d)?(0,s.jsx)(nm,{width:4,...d}):Ye("divider","divider",d)?(0,s.jsx)(VD,{...d}):Ye("divider","numbered divider",d)?(0,s.jsx)(UD,{number:e,...d}):Ye("divider","spacing divider",d)?(0,s.jsx)($D,{...d}):Ye("360","storyline",d)?(0,s.jsx)(yB,{...d,handleStorylineFullscreen:o,hasManySlBlocks:this.hasManySlBlocks.bind(this),isLesson:!0}):Ye("interactive","accordion",d)?(0,s.jsx)(YD,{...d}):Ye("interactive","tabs",d)?(0,s.jsx)(iB,{...d}):Ye("interactive-fullscreen","labeledgraphic",d)?(0,s.jsx)(Lz,{...d}):Ye("interactive-fullscreen","process",d)?(0,s.jsx)(Oz,{...d}):Ye("interactive-fullscreen","scenario",d)?(0,s.jsx)(nV,{...d}):Ye("interactive-fullscreen","sorting",d)?(0,s.jsx)(gV,{...d}):Ye("interactive-fullscreen","timeline",d)?(0,s.jsx)(WV,{...d}):Ye("buttons","button",d)?(0,s.jsx)(SB,{...d}):Ye("buttons","button stack",d)?(0,s.jsx)(TB,{...d}):Ye("flashcard","flashcard",d)?(0,s.jsx)(a3,{...d}):Ye("flashcard","stack",d)?(0,s.jsx)(a3,{stack:!0,...d}):Ye("knowledge","knowledge",d)?(0,s.jsx)(Oi,{...d}):Ye("continue","continue",d)?(0,s.jsx)($B,{...d}):Ye("multimedia","step",d)?(0,s.jsx)(VB,{...d}):Ye("multimedia","audio",d)?(0,s.jsx)(RB,{...d}):Ye("multimedia","video",d)?(0,s.jsx)(lm,{...d}):Ye("multimedia","ai_avatar",d)?(0,s.jsx)(lm,{...d}):Ye("multimedia","custom video",d)?(0,s.jsx)(lm,{...d,type:"customVideo"}):Ye("multimedia","embed",d)?(0,s.jsx)(MB,{...d}):Ye("multimedia","attachment",d)?(0,s.jsx)(HB,{...d}):Ye("multimedia","code",d)?(0,s.jsx)($g,{...d}):Ye("knowledgeCheck","multiple choice",d)?(0,s.jsx)(Oi,{...d}):Ye("knowledgeCheck","multiple response",d)?(0,s.jsx)(Oi,{...d}):Ye("knowledgeCheck","fillin",d)?(0,s.jsx)(Oi,{...d}):Ye("knowledgeCheck","matching",d)?(0,s.jsx)(Oi,{...d}):Ye("knowledgeCheck","draw from question bank",d)?(0,s.jsx)(Oi,{...d}):Ye("chart","bar",d)||Ye("chart","line",d)?(0,s.jsx)(DU,{...d}):Ye("chart","pie",d)?(0,s.jsx)(BU,{...d}):Ye("mondrian","mondrian",d)?(0,s.jsx)(NV,{...d}):Ye("textToVideo","textToVideo",d)?(0,s.jsx)(GV,{}):Ye("survey","survey",d)?(0,s.jsx)(Iz,{...d}):Ye("html","inline",d)||Ye("html","cdn",d)||Ye("html","vibe",d)?(0,s.jsx)(FV,{...d,isLearn:!0}):`Unknown type: ${n} ${a}`}hasManySlBlocks(){const{items:e}=this.props;return e&&zU(e)}}function b6(t){return(0,s.jsx)(sh,{block:t,children:(0,s.jsx)(VU,{...t})})}function Ye(t,e,n){return n.family===t&&n.variant===e}function UU(){return document.querySelector(".page-wrap")}const y6=({children:t,onViewed:e})=>{const n=(0,h.useRef)(null),[o,r]=(0,h.useState)(!1),a=(0,h.useCallback)(()=>{o||(r(!0),e())},[o,e]),i=(0,h.useCallback)(c=>{const u=c[0];u!=null&&!o&&(u.isIntersecting||u.intersectionRatio>0)&&a()},[o,a]);return(0,h.useEffect)(()=>{const c=n.current;if(!c)return;const u=UU(),d=new IntersectionObserver(i,{root:u,rootMargin:lt.CY,threshold:0});return d.observe(c),()=>{d.disconnect()}},[i]),(0,s.jsx)("div",{ref:n,children:t})};var Rm=l(26372);class $U extends Rm.PureComponent{render(){return(0,s.jsx)(y6,{onViewed:this.handleViewed,children:Rm.cloneElement(Rm.Children.only(this.props.children),{onStep:this.handleStep})})}handleStep=e=>{e!=null&&"id"in e&&!e.isDone&&this.props.onStep(e.id)};handleViewed=()=>{const{block:e}=this.props;if(!e.items?.length){this.props.onViewed();return}if(!e.requiresInteraction){this.props.onViewed();return}(WU.test(e.variant)||GU.test(e.family))&&e.items.length>0&&this.handleStep(e.items[0])}}const WU=/tabs|carousel/,GU=/gallery/,KU=["timeline"],_U=({family:t,variant:e})=>(/interactive|flashcard|knowledge|continue|360/.test(t)||/carousel|centered|checkboxes|audio|video|storyline/.test(e))&&!KU.includes(e),QU=({family:t,settings:e})=>t==="html"&&e?.hasCustomCompletion,ZU=({family:t,items:e})=>!!(t==="mondrian"&&e?.length),YU="draw from question bank",L6=t=>{const{animateBlockEntrance:e,block:n,className:o,color:r,courseId:a,courseTitle:i,defaultBackgroundColor:c,enableVideoPlaybackSpeed:u,handleNavigate:d,handleStorylineFullscreen:m,hideBlock:p,index:f,isLastBlock:g,isOnlyBlockInStep:v,labels:C,lessonId:x,lessonProgress:L,loadMedia:y,match:E,onContinue:b,partnerContent:S,prefersKeyboardNavigation:T,previewType:N,publishedAt:j,tenantId:R}=t,{blockId:O,family:P,items:A=[],variant:F,settings:w}=n,D=`block-${O}`,V=(0,W.wA)(),_=aC({blockId:String(O),lessonId:String(x)}),ee=(0,h.useCallback)(Me=>{const Ae=F===YU?A[0]:ys()(It()("id",Me),A);V((0,Jo.re)({blockId:O,lessonId:x,items:[Ae]})),P==="continue"&&b(O,Me)},[O,V,P,A,x,b,F]),q=(0,h.useCallback)(()=>{V((0,Jo.re)({blockId:O,lessonId:x,items:A}))},[O,V,A,x]),fe=(0,h.useCallback)(Me=>{const Ae=A?.[0],me=Ae&&"id"in Ae?Ae.id:void 0;me&&V((0,Jo.RA)({blockId:O,itemId:me,lessonId:x,audioVideoPlayhead:Me}))},[O,V,x,A]),ye=Yo()(n,{animateBlockEntrance:e,className:o?.toString(),color:r,courseId:a,courseTitle:i,defaultBackgroundColor:c,dividerNumber:_,enableVideoPlaybackSpeed:u,family:P,handleNavigate:d,handleStorylineFullscreen:m,initiallyVisible:f===0,isHidden:p,isLastBlock:g,isLearner:!0,isOnlyBlockInStep:v,labels:C,lessonId:x,loadMedia:y,match:E,originalVariant:void 0,partnerContent:S,prefersKeyboardNavigation:T,previewType:N,progress:L,publishedAt:j,recordMediaPlayheadPosition:fe,tenantId:R}),Ie=_U({family:P,variant:F})||QU({family:P,settings:w})||ZU({family:P,items:A}),we=W8(x,O),Ve=Q()("noOutline",o,{"blocks-lesson__block-wrapper--hidden":p});return(0,s.jsx)("div",{className:Ve,"data-block-id":O,"data-change-path":we,children:Ie?(0,s.jsx)($U,{block:n,onStep:ee,onViewed:q,children:(0,s.jsx)(b6,{...ye})}):(0,s.jsx)(y6,{onViewed:q,children:(0,s.jsx)(b6,{...ye})})},D)},XU=({slides:t,currentSlide:e},n)=>(e.push(n),n.settings?.attachedToNextBlock||(t.push(e),e=[]),{slides:t,currentSlide:e}),JU=t=>{const{slides:e}=Jd()(XU,{slides:[],currentSlide:[]},t);return e};function Pm(t,e,n){if(t.length){const r=t.slice(-1)[0];if(!pc(r.id,n))return t}const o=TR(qU(n),e.slice(t.length)).map(e$);return o.length?Pm(t.concat(o),e,n):t}const pc=(t,e)=>Lt()(!1,["items",t,"isComplete"],e),qU=t=>({family:e,items:n})=>{const o=Lt()({},0,n);return e==="continue"&&!pc(o.id,t)};function e$(t,e,n){const o=n.slice(-1)[0]||{},{family:r}=o,a=r==="continue"?Lt()(!1,["items",0,"type"],o):!1;return t.family==="knowledgeCheck"&&t.settings?.requireCorrectAnswer?Yo()(t,{requiresInteraction:!0}):t.variant!=="continue"&&(!a||a==="completeBlock"&&e!==n.length-1&&e!==n.length-2)?t:Yo()(t,{requiresInteraction:!0})}function E6({id:t,...e},n,o,r){if(e.family==="continue"){const a=Lt()("",["items",0,"type"],e);return Yo()({blockId:t,...e},{skipContinue:r,canContinue:t$({continueType:a,blocks:n,progress:o}),lessonProgress:o,isComplete:pc(t,o)})}return{blockId:t,...e}}const t$=({continueType:t,blocks:e,progress:n})=>{switch(t){case"completeAll":return Bo()(vs()(e),r$(n));case"completeBlock":return e.length===0?!0:pc(a$(e),n);default:return!0}},s$=Xe()(wo(),gt()("items")),n$=t=>Xe()(o$,s$)(t),o$=fs()(It()("isComplete",!0)),r$=Xe()(vs(),n$),a$=Xe()(gt()("id"),lr()),i$=({family:t,variant:e,isComplete:n,requiresInteraction:o})=>t==="continue"&&e==="continue"&&o&&!n,l$=(t,e)=>!!t.find(o=>{if(o?.family==="knowledgeCheck"&&o?.settings?.requireCorrectAnswer)return!e?.items?.[o?.id]?.isComplete}),c$=t=>t.length===0?!1:jh()(i$,t),d$=(t,e)=>t.length===0?!1:l$(t,e),u$=({blocks:t,lessonProgress:e})=>t.findIndex(n=>{const o=e?.items?.[n?.id],r=o&&o?.isComplete==null;return n?.family==="knowledgeCheck"&&n?.settings?.requireCorrectAnswer&&r}),S6=({blocks:t,lessonProgress:e,currentBlockIndex:n})=>{const o=u$({blocks:t,lessonProgress:e});return o>-1&&n>o},h$=(t,e)=>{const n=["embed","video","full"];return["interactive","interactive-fullscreen","image","flashcard","gallery","chart","knowledgeCheck"].includes(t)||n.includes(e)};function T6(){const{pathname:t}=new URL(window.location.href);return t.split("/")[1]==="review"}function I6(){const t=window.location.hash.slice(1),e=new URLSearchParams(t.split("?")[1]??"");return T6()&&!!e.get("locale")}function m$(t,e,n){if(!t||!e||!T6())return!1;if((0,pt.uQ)(n,{l10n:e}))return!0;const{locales:o,defaultLocale:r}=e,a=o.find(i=>i.locale===r)?.id;return a&&a!==t}class p$ extends h.Component{ref=h.createRef();constructor(...e){super(...e),this.state={randomQuestions:{},transitioning:!1,isBlockActionsSidebarPreview:!1},this.handleContinue=this.handleContinue.bind(this),this.handleScrollToBlock=this.handleScrollToBlock.bind(this),this.handlePreviewMessage=this.handlePreviewMessage.bind(this),window.addEventListener($t,this.handleScrollToBlock),window.addEventListener("message",this.handlePreviewMessage)}componentDidUpdate(e){this.scrollIfContinued(),e.isLessonEntering&&!this.props.isLessonEntering&&this.scrollToBlockAfterEnter!=null&&this.scrollToBlock(this.scrollToBlockAfterEnter)}componentWillUnmount(){window.removeEventListener($t,this.handleScrollToBlock),window.removeEventListener("message",this.handlePreviewMessage)}handlePreviewMessage(e){if(e.origin!==window.location.origin)return;(Array.isArray(e.data)?e.data:[e.data]).forEach(o=>{o?.type==="preview:lessonUpdate"&&this.setState({isBlockActionsSidebarPreview:!0})})}render(){const{className:e,isOnePage:n}=this.props,o=Q()("blocks-lesson",e,{"blocks-lesson--one-page":n});return(0,s.jsx)("section",{className:o,ref:this.ref,children:this.renderBlocks()})}renderBlocks(){const{blocks:e,lessonProgress:n,isLocalizedReviewMode:o}=this.props,{isBlockActionsSidebarPreview:r}=this.state,a=o||r;return(a?e:Pm([],e,n)).map(this.buildBlock.bind(this,this.props.lessonProgress,a)).filter(ag.A)}handleContinue(e,n){const{blocks:o,handleNavigate:r,lessonId:a,lessonProgress:i,nextLesson:c}=this.props;pc(n,i)||(this.continueFromId=e),e===o[o.length-1]?.id&&c&&((0,W.JD)((0,Jo.eQ)(a)),r(c))}buildBlock(e,n,o,r,a){const{animateBlockEntrance:i,blocks:c,color:u,courseId:d,courseTitle:m,enableVideoPlaybackSpeed:p,handleNavigate:f,handleStorylineFullscreen:g,labels:v,lessonId:C,loadMedia:x,match:L,partnerContent:y,prefersKeyboardNavigation:E,previewType:b,publishedAt:S,tenantId:T}=this.props,{isBlockActionsSidebarPreview:N}=this.state,j=E6(o,a.slice(0,-1),e,n),R=a.length-1,P=j.family==="continue"?o.id===c[c.length-1]?.id:r===R,A=!N&&S6({blocks:c,lessonProgress:e,currentBlockIndex:r});return(0,s.jsx)(L6,{animateBlockEntrance:i,block:j,color:u,courseId:d,courseTitle:m,enableVideoPlaybackSpeed:p,handleNavigate:f,handleStorylineFullscreen:g,hideBlock:A,index:r,isFirstLesson:!0,isLastBlock:P,labels:v,lessonId:C,lessonProgress:e,loadMedia:x,match:L,onContinue:this.handleContinue,partnerContent:y,prefersKeyboardNavigation:E,previewType:b,publishedAt:S,tenantId:T},j.blockId)}scrollIfContinued(){if(this.continueFromId){const{blocks:e}=this.props,n=Co()(It()("id",this.continueFromId),e),o=_n()(n),r=Lt()(null,["blocks",o,"id"],this.props);if(r){const a=document.querySelector(".page-wrap"),i=a.querySelector(`[data-block-id="${r}"]`),c=i?i.getBoundingClientRect().top:0;Ql.Ay.animateScroll.scrollTo(c+a.scrollTop,{smooth:!0,containerId:"page-wrap"})}delete this.continueFromId}}handleScrollToBlock(e){if(this.props.isLessonExiting||e.detail.lessonId!==this.props.lessonId)return;const n=e.detail.itemId;n==null?this.ref.current?.closest(".page").scrollIntoView({behavior:"smooth",block:"start"}):this.props.isLessonEntering?this.scrollToBlockAfterEnter=n:this.scrollToBlock(n)}scrollToBlock(e){const o=document.querySelector(".page-wrap").querySelector(`[data-block-id="${e}"]`);o?.scrollIntoView({behavior:"smooth",block:"nearest"})}}const f$=(t,e)=>{const{currentLocale:n}=e;return{isOnePage:Zi(t),isCourseLocalized:Tc(t),isLocalizedReviewMode:m$(t.course?.defaultLocaleId,t.l10n,n)}},N6=Xe()(q1.A,rt.wZ,(0,W.Ng)(f$))(p$);function Hu({children:t}){const e=(0,h.useRef)(),n=(0,h.useCallback)(()=>{e.current?.focus?.()},[]);return RN(n),(0,s.jsx)("main",{className:"lesson-main",ref:e,tabIndex:"-1",children:t})}const v$=ne("page"),j6=({type:t,children:e})=>(0,s.jsx)("div",{className:v$({lessonTypeQuiz:t==="quiz"}),"data-page":!0,"data-type":t,children:e});j6.propTypes={type:Ge().string.isRequired,children:Ge().node.isRequired};const fc=j6,Hi=({type:t,children:e})=>{const n=t==="video"||t==="embed"||t==="blocks"||t==="progress-summary",o=Q()("page__wrapper",{"page__wrapper--white":n});return(0,s.jsx)("div",{className:o,children:e})};Hi.propTypes={type:Ge().string.isRequired,children:Ge().node.isRequired};const Fi=({className:t,type:e,children:n})=>{const o=Q()("page__content",t,{"page__content--timeline":e==="timeline"});return(0,s.jsx)("div",{className:o,children:n})};Fi.propTypes={type:Ge().string,children:Ge().node.isRequired};const g$=({animateBlockEntrance:t,color:e,courseId:n,courseTitle:o,data:r,enableVideoPlaybackSpeed:a,handleNavigate:i,handleStorylineFullscreen:c,labels:u,lessonHeader:d,lessonHeaderWrapClasses:m,lessonHeaderWrapStyles:p,lessonProgress:f,loadMedia:g,match:v,nextLesson:C,partnerContent:x,prefersKeyboardNavigation:L,previewType:y,publishedAt:E,tenantId:b,hideLessonHeaders:S})=>{const{id:T,items:N,type:j}=r,R={animateBlockEntrance:t,blocks:N,color:e,courseId:n,courseTitle:o,enableVideoPlaybackSpeed:a,handleNavigate:i,handleStorylineFullscreen:c,isFirstLesson:!0,labels:u,lessonId:T,lessonProgress:f,loadMedia:g,match:v,nextLesson:C,partnerContent:x,previewType:y,prefersKeyboardNavigation:L,publishedAt:E,tenantId:b,type:j};return(0,s.jsx)(fc,{type:j,children:(0,s.jsx)(Hi,{type:j,children:(0,s.jsxs)(Hu,{children:[(0,s.jsx)("div",{className:m,inert:S,style:p,children:d}),(0,s.jsx)(Fi,{children:(0,s.jsx)(N6,{...R})})]})})})},C$=t=>({partnerContent:Lt()([],["partnerContent","content"],t)}),x$=(0,W.Ng)(C$)(g$);var b$=l(9798);const y$=({percentComplete:t,trackingCompletionPercentage:e,labelCompletionRequirement:n="Completion Requirement",labelPercentCompletion:o="% Completion",labelYouCompleted:r="You completed:",labelA11yRequirementCompleted:a="Requirement completed, check mark",labelA11yRequirementNotCompleted:i="Requirement not completed, empty square"})=>{const c=(0,xe.Wz)();if(Xs()(e))return null;const u=hi({percent:e,label:o,isRTL:c}),d=c?`%${t}`:`${t}%`;return(0,s.jsxs)("div",{className:"progress-summary__requirement",children:[(0,s.jsxs)("div",{className:"progress-summary__requirement-stats-wrap",children:[(0,s.jsx)("h2",{className:"progress-summary__requirement-title",children:n}),(0,s.jsxs)("div",{className:"progress-summary__requirement-stats",children:[(0,s.jsx)("div",{children:u}),(0,s.jsxs)("div",{children:[r,"\xA0",(0,s.jsx)("strong",{className:"progress-summary__requirement-stats-percent-achieved",children:d})]})]})]}),(0,s.jsx)(k6,{labelA11yRequirementCompleted:a,labelA11yRequirementNotCompleted:i,requirementMet:e<=t})]})},L$=({outOfAttempts:t,quizPassed:e,quizPassingScore:n,quizScore:o,quizTitle:r,trackingQuizId:a,labelQuizRequirement:i="Quiz Requirement",labelScoreOf:c="Score of",labelScoreOfPreposition:u="% on",labelViewQuiz:d="View quiz",labelYouScored:m="You scored",labelNoAttemptsRemaining:p="No attempts remaining.",labelA11yRequirementCompleted:f="Requirement completed, check mark",labelA11yRequirementNotCompleted:g="Requirement not completed, empty square"})=>{const v=(0,xe.Wz)();if(!a)return null;const C=hi({percent:n,label:u,isRTL:v});return(0,s.jsxs)("div",{className:"progress-summary__requirement",children:[(0,s.jsxs)("div",{className:"progress-summary__requirement-stats-wrap",children:[(0,s.jsx)("h2",{className:"progress-summary__requirement-title",children:i}),(0,s.jsxs)("div",{className:"progress-summary__requirement-stats",children:[(0,s.jsxs)("div",{children:[c," ",C," ",r]}),Xs()(o)?(0,s.jsx)("div",{children:(0,s.jsx)(Ln,{className:"progress-summary__requirement-stats-link brand--color",to:`/lessons/${a}`,children:d})}):(0,s.jsxs)("div",{children:[m,"\xA0",(0,s.jsxs)("strong",{className:"progress-summary__requirement-stats-percent-achieved",children:[o,"%"]})]})]}),t&&(0,s.jsx)("span",{className:"progress-summary__requirement-no-attempts",children:p})]}),(0,s.jsx)(k6,{labelA11yRequirementCompleted:f,labelA11yRequirementNotCompleted:g,requirementMet:e})]})},k6=({requirementMet:t,labelA11yRequirementCompleted:e,labelA11yRequirementNotCompleted:n})=>t?(0,s.jsx)(ct,{"aria-label":e,classNameIcon:"progress-summary__requirement-checkbox-checked",name:"square-check"}):(0,s.jsx)("div",{"aria-label":n,className:"progress-summary__requirement-checkbox-empty",role:"img"}),E$=({dueAt:t})=>t?(0,s.jsx)("div",{className:"progress-summary__header-due brand--color brand--border",children:h1(t)}):null;var S$=l(78051),T$=l.n(S$),I$=l(26372);const N$=["#eb524d","#ffac02","#ffcc00","#28cea9","#4fbdf4","#6788e4"];class j$ extends I$.Component{constructor(...e){super(...e),this.state={run:!1,recycle:!0},this.startConfetti=this.startConfetti.bind(this)}startConfetti(){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setState({recycle:!1}),1e4),this.setState({run:!0})}componentDidMount(){clearTimeout(this.timeout),this.timeout=setTimeout(this.startConfetti,900)}shouldComponentUpdate(e,n){return n.recycle!==this.state.recycle||n.run!==this.state.run}componentWillUnmount(){clearTimeout(this.timeout)}render(){const{state:{recycle:e,run:n}}=this;return(0,s.jsx)("div",{className:"progress-summary__confetti",children:(0,s.jsx)(T$(),{colors:N$,gravity:.4,height:window.innerHeight,numberOfPieces:500,recycle:e,run:n,width:window.innerWidth})})}}const k$=j$;var A$=l(97740),R$=l.n(A$),P$=l(81375),w$=l.n(P$),M$=l(63323);const A6=ne("progress-summary-card"),O$=({completeLabel:t,isComplete:e,isUrgent:n,completedDate:o,labelDue:r})=>e?(0,s.jsxs)("div",{className:"progress-summary-card__completed-label",children:[t,(0,s.jsx)("span",{className:"progress-summary-card__completed-date",children:o})]}):r?(0,s.jsx)("div",{className:Q()("progress-summary-card__due-label",{"brand--color":n}),children:r}):null,D$=({cardImageKey:t=null,className:e,color:n="#ff6602",completedAt:o=null,coverImageKey:r=null,disable:a=!1,durationHidden:i=!1,enrolledAt:c=null,hidden:u=!1,imagesUri:d="",isLearningPath:m=!1,isUrgent:p=!1,labelAssignedToMe:f="",labelDue:g="",labelDuration:v="",labelLearningPath:C="",onClick:x=Qs.lQ,progress:L=0,title:y=""})=>{const E=(0,ot.useLabelsMap)(),b=(0,xe.Wz)(),S=o!==null,T=(0,h.useCallback)(()=>{a||x?.()},[a,x]),N=(0,h.useCallback)(w=>{Id(w)&&w.preventDefault(),!a&&na(w)&&x?.()},[a,x]),j=hi({percent:Math.round(L),label:E?.progressSummaryPercentComplete||"% Complete",isRTL:b}),R=t||r,O=E?.progressSummaryCompleted||"Completed: ",P=`${qn()(new Date(o)).format("MM/DD/YY")}`,A=A6("card",{disabled:a}),F=A6("image-overlay",{"not-started":!(L||S),"in-progress-completed":L||S});return(0,s.jsxs)("div",{"aria-hidden":u,className:A,onClick:T,children:[(0,s.jsxs)("div",{className:"progress-summary-card__content",children:[(0,s.jsx)("button",{"aria-disabled":a,className:Q()("progress-summary-card__title-button",{[e]:e}),onKeyDown:N,role:"link",tabIndex:u?-1:void 0,type:"button",children:(0,s.jsx)("span",{className:"progress-summary-card__title",children:y||E?.progressSummaryNoTitle||"(No Title)"})}),(0,s.jsxs)("div",{className:"progress-summary-card__course-info",children:[m&&(0,s.jsx)("div",{className:"progress-summary-card__hide",children:C}),c&&(0,s.jsx)("div",{className:"progress-summary-card__hide",children:f}),!!L&&!a&&!o&&(0,s.jsx)("span",{className:"progress-summary-card__hide",children:j}),!i&&!S&&(0,s.jsx)("div",{className:"progress-summary-card__duration",children:v}),(0,s.jsx)(O$,{completedDate:P,completeLabel:O,isComplete:S,isUrgent:p,labelDue:g})]})]}),(0,s.jsxs)("div",{className:"progress-summary-card__image-wrap",children:[(0,s.jsx)(M$.A,{alt:"","aria-hidden":"true",b:"fff",className:"progress-summary-card__image",f:"jpg",h:150,imageKey:R,imagesUri:d,s:"cover",style:{backgroundColor:n},w:300}),(0,s.jsx)("div",{className:F}),(0,s.jsx)("div",{className:"progress-summary-card__image-overlay-bottom-bar",children:!!L&&!a&&!S&&(0,s.jsx)("div",{"aria-hidden":"true",className:"progress-summary-card__progress-bar-wrap",children:(0,s.jsx)("div",{className:"progress-summary-card__wrap-light",children:(0,s.jsx)("div",{className:"progress-summary-card__progress-bar",style:{width:`${L}%`}})})})})]})]})},B$=(0,$e._$)("IMAGES_URI"),H$=["cardImageKey","color","coverImageKey","progress","score","title"],R6=(t,e)=>t===1?e:e.concat("s"),wm=Lt()([],["course","course","lessons"]),F$=t=>Xe()(sn(),Wf()(xr()(It()("type","section"),w$()(Cr()(Ov(),t),"id"))),wm),z$=t=>{const e=wm(t),{trackingQuizId:n}=t,{score:o}=t;if(n&&e.length){const r=ys()(It()("id",n),e),{settings:{passingScore:a}={}}=r;return o<a?r:!1}},V$=Xe()(ys()(Gd()(It()("type","section"))),wm),U$=O1()(2,t=>Xe()(_s()("","id"),ys()(Boolean),R$()([F$(t),z$,V$]))),$$=t=>{const e=qn().duration(t),n=e.hours(),o=e.minutes(),r=`${n} ${R6(n,"hr")}`,a=`${o} min`;return n>=100?"100+ hrs":n>0&&o>0?[r,a].join(" "):n>0?r:a},W$=t=>{const{color:e,learningPathComplete:n,learningPathId:o,isSuccess:r,nextCourse:a,nextCourse:{dueAt:i,courseId:c="",lessonCount:u,lessonsCompleted:d=[],sourceType:m,timeToComplete:p}={}}=t,f=(0,ot.useLabelsMap)(),g=(0,h.useMemo)(()=>U$(d,a),[a,d]);Xs()(a.color)&&(a.color=e);const v=Qn()(H$,a),C=(0,h.useCallback)(()=>{m==="PACKAGE"?(top.sessionStorage.setItem("upNextCourseId",c),top.location.assign(`/learning-path/${o}`)):(0,cs.kT)(`${c}/lessons/${g}`)},[c,o,g,m]);return r&&!n&&(0,s.jsx)("div",{className:"progress-summary__lp-next",children:(0,s.jsxs)("div",{className:"progress-summary__lp-next-inner",children:[(0,s.jsxs)("div",{className:"progress-summary__lp-next-label",children:[f?.progressSummaryNextUp||"Next up"," ",(0,s.jsx)(ct,{"aria-hidden":"true",classNameIcon:"progress-summary__lp-next-label-icon",name:"arrow-right"})]}),(0,s.jsx)("div",{className:"progress-summary__lp-next-card",children:(0,s.jsx)(D$,{imagesUri:B$,labelCount:`${u} ${R6(u,"lesson")}`,labelDue:h1(i),labelDuration:$$(p),noCertDownload:!0,noFavoriteBtn:!0,onClick:C,...v})})]})})},G$=gt()("learningPathUpNext"),K$=(0,W.Ng)(G$)(W$),_$=`${(0,$e._$)("CDN_URI")}/assets/rise/assets/trophy.svg`,Q$=Xe()(vs(),fs()(gt()("isComplete")),wo()),Z$=t=>{const{color:e,course:n={},courseProgress:o={},fetchLpUpNext:r,lessons:a=[],learningPathComplete:i,lpHasFailedQuiz:c}=t,{lessons:u={},percentComplete:d}=o,{dueAt:m,certificateDownload:p,completionCelebration:f,lessonsOnly:g=[],riseComLearningPathId:v,trackingCompletionPercentage:C,trackingQuizId:x}=n,L=Bs(),y=(0,ot.useLabelsMap)(),E=Xs()(C)&&Xs()(x),b=E?d===100:(0,Je.As)(),S=g.length,T=Q$(u);(0,h.useEffect)(()=>{v&&r()},[]);const N=(0,h.useMemo)(()=>b?n.completedAt?n.completedAt:new Date:null,[n.completedAt,b]),j=(0,h.useMemo)(()=>ys()(ru()(It()("type","quiz"),It()("id",x)),a),[x,a]),R=Xt(j?.title),O=(0,h.useMemo)(()=>Lt()(100,["settings","passingScore"],j),[j]),P=Lt()(null,["lessons",x,"passed"],o),A=(0,h.useMemo)(()=>Xe()(ai()(It()("percentComplete",100),gt()("score"),os()(null)),Lt()({},["lessons",x]))(o),[o,x]),{outOfAttempts:F}=il(o,j,x);let w=x?P:!0,D=dn();const V=Q()("progress-summary",{"progress-summary__no-req":E}),_=(0,Es.c3)(n),ee=`You've completed ${T} of ${S} lessons.`,fe=_?b?"Complete":"Incomplete":ee;return(0,s.jsx)(la,{title:Wl(L+" - Progress Summary"),children:(0,s.jsxs)("div",{className:V,children:[b&&f&&w&&!D&&(0,s.jsx)(k$,{}),(0,s.jsxs)("header",{className:"progress-summary__header",children:[(0,s.jsx)("h1",{className:"progress-summary__header-title",tabIndex:-1,children:b&&!E&&w?y?.progressSummaryCongratulations||"Congratulations!":y?.progressSummary||"Progress Summary"}),E?(0,s.jsx)("div",{className:"progress-summary__lessons-completed",children:fe}):b?(0,s.jsxs)("div",{className:"progress-summary__header-completion-date",children:[w&&(0,s.jsx)("img",{alt:"trophy",className:"progress-summary__header-trophy",src:_$}),qn()(N).format("MMMM Do, YYYY")]}):(0,s.jsx)(E$,{dueAt:m})]}),(0,s.jsxs)("section",{className:"progress-summary__section",children:[!E&&b&&(0,s.jsx)("div",{className:"progress-summary__requirements-met",children:y?.progressSummaryRequirementsMet||"You've met all the requirements."}),E?!v&&(0,s.jsxs)(Ln,{className:"progress-summary__start-over",to:"/",children:[y?.progressSummaryStartOver||"Start Over",(0,s.jsx)("i",{className:"progress-summary__start-over-icon icon icon-reload"})]}):(0,s.jsxs)("div",{className:"progress-summary__requirements",children:[(0,s.jsx)(y$,{labelA11yRequirementCompleted:y?.a11yProgressSummaryRequirementCompleted,labelA11yRequirementNotCompleted:y?.a11yProgressSummaryRequirementNotCompleted,labelCompletionRequirement:y?.progressSummaryCompletionRequirement,labelPercentCompletion:y?.progressSummaryPercentCompletion,labelYouCompleted:y?.progressSummaryYouCompleted,percentComplete:d,trackingCompletionPercentage:C}),(0,s.jsx)(L$,{labelA11yRequirementCompleted:y?.a11yProgressSummaryRequirementCompleted,labelA11yRequirementNotCompleted:y?.a11yProgressSummaryRequirementNotCompleted,labelNoAttemptsRemaining:y?.progressSummaryNoAttemptsRemaining,labelQuizRequirement:y?.progressSummaryQuizRequirement,labelScoreOf:y?.progressSummaryScoreOf,labelScoreOfPreposition:y?.progressSummaryScoreOfPreposition,labelViewQuiz:y?.progressSummaryViewQuiz,labelYouScored:y?.progressSummaryYouScored,outOfAttempts:F,quizPassed:P,quizPassingScore:O,quizScore:A,quizTitle:R,trackingQuizId:x})]}),(b||E)&&(0,s.jsxs)("div",{className:"progress-summary__completion-controls",children:[(0,s.jsx)("button",{className:"progress-summary__btn-back progress-summary__completion-control",onClick:cs.NS,role:"link",type:"button",children:y?.progressSummaryBackToLearning||"Back to my learning"}),b&&(!v&&p||v&&i)&&p&&w&&!c&&(0,s.jsx)("span",{className:"progress-summary__completion-control",children:(0,s.jsx)(or,{})})]})]}),b&&!!v&&(0,s.jsx)(K$,{color:e,learningPathId:v})]})})},Y$=(t,{course:{riseComCourseId:e,riseComLearningPathId:n}})=>({fetchLpUpNext:Xe()(t,b$.R,os()({courseId:e,learningPathId:n}))}),X$=Xe()(Qn()(["learningPathComplete","lpHasFailedQuiz"]),gt()("learningPathUpNext")),J$=(0,W.Ng)(X$,Y$)(Z$),P6=({contentClassName:t,...e})=>(0,s.jsx)(fc,{type:Fu.type,children:(0,s.jsx)(Hi,{type:Fu.type,children:(0,s.jsx)(Hu,{children:(0,s.jsx)(Fi,{className:t,type:Fu.type,children:(0,s.jsx)(J$,{...e})})})})}),Fu={id:"progress-summary",type:"progress-summary",title:"Progress Summary",description:"Summary of course progress"};var q$=l(46263),Mm=l.n(q$),eW=l(20626),tW=l.n(eW),sW=l(11211),nW=l.n(sW);const w6=jt("Progress");var bs=l(22547);const oW=t=>t.length===3,rW=t=>{const e=t.findIndex(n=>n==="answers");return e===-1?null:t[e+1]?.id},aW=t=>{const e=t.findIndex(n=>n==="questions");return e===-1?null:t[e+1]?.id},iW=t=>{const e=t.at(-1);return typeof e=="string"&&e.startsWith("feedback")},lW=({items:t,itemId:e,questionBankQuestionId:n})=>{const o=t.find(({id:r})=>r===e);return o?"questions"in o?n?o.questions.find(({id:r})=>r===n):null:o:null},cW=(t,e,n)=>{const o=n==="feedbackCorrect";return t?[t]:n==="feedback"?e.answers.slice(0,1):n==="feedbackIncorrect"&&e.type==="FILL_IN_THE_BLANK"?[{title:""}]:e.answers.filter(r=>"correct"in r?r.correct===o:"corrects"in e?e.corrects.includes(r.id)===o:e.answers)},dW=({lessonId:t,items:e})=>{const n=(0,W.wA)(),o=(0,h.useCallback)(({lessonId:a,progressId:i,question:c,answer:u},d=!0)=>{switch(c.type){case"MULTIPLE_CHOICE":n((0,bs.Yu)({lessonId:a,itemId:i,selectedIndex:c.answers.indexOf(u)}));break;case"MULTIPLE_RESPONSE":n((0,bs.mg)({lessonId:a,itemId:i,selectedIndex:c.answers.indexOf(u)}));break;case"FILL_IN_THE_BLANK":n((0,bs.Nj)({lessonId:a,itemId:i,text:u.title}));break;case"MATCHING":n((0,bs.NC)({lessonId:a,itemId:i,matches:d?Object.fromEntries(c.answers.map(m=>[m.id,m.id])):{}}));break}},[n]),r=(0,h.useCallback)(({detail:a})=>{const{lessonId:i,itemId:c,path:u}=a;if(i!==t)return;if(oW(u)){n((0,bs.FU)(t));return}const d=aW(u),m=lW({items:e,itemId:c,questionBankQuestionId:d});if(!m)return;const p=d?`${c}-${d}`:c;if(n((0,bs.QI)({lessonId:t,progressId:p})),iW(u)){const f=rW(u),g=f?m.answers.find(({id:L})=>L===f)??null:null,v=u.at(-1),C=v==="feedbackCorrect",x=cW(g,m,v);m.type==="MULTIPLE_RESPONSE"&&n((0,bs.RW)({lessonId:t,itemId:p})),x.forEach(L=>{o({lessonId:t,question:m,progressId:p,answer:L},C)}),n((0,bs.kK)({finalRetryAttempt:!1,lessonId:t,isCorrect:C,itemId:p,passToContinue:!0}))}},[n,t,e,o]);(0,h.useEffect)(()=>(window.addEventListener($t,r),()=>{window.removeEventListener($t,r)}),[r])};var uW=l(74480),M6=l.n(uW),hW=l(74983),zu=l.n(hW),mW=l(30624),O6=l.n(mW),pW=l(31463),fW=l.n(pW);const vW=t=>e=>{const n=!t.progress?.items?.[e.id]?.isComplete;return Lt()(!1,["settings","shuffleAnswerChoices"],t)&&n},gW=t=>{const e=t.answers||[],n=Du()(e),o=n.map(r=>e.findIndex(a=>a.id===r.id));return{...t,answers:n,shuffledAnswerIndices:o}},CW=t=>ln()([[vW(t),gW],[Ti(),nr()]]),xW=t=>vi()({items:Mn()(CW(t))})(t),bW=t=>{const{items:e,progress:n}=t,{items:o}=n||{},r=Xe()(String,gt()("id")),a=Bv(o,gt()("isComplete")),c=Hv(r,a)(e),u=Xe()(xn(),gt()("isComplete")),d=Bv(o,u),p=Hv(r,d)(e);return c.concat(Du()(p))},yW=Zh()("items",bW),LW=t=>Xe()(Mm()(ys(),t),It()("id"),gt()("id")),D6=us()(t=>M6()(LW(t),nr())),EW=t=>Xe()(zu()(dc()),D6(t)),SW=hs()(F2()(gt()("answers"),gt()("answers")),zu()(us()(t=>Mn()(EW(t)))),V2()("answers")),TW=t=>hs()(D6(t),M6()(SW,zu()(dc())),zu()(dc())),IW=Mm()(t=>Mn()(TW(t))),NW=fs()(It()("drawn",!0)),Vu=Co()(It()("type",xt.UQ.DRAW_FROM_QUESTION_BANK)),jW=({items:t,currentItems:e,progress:n})=>{let o=[...t],r=Vu(o);for(;r!==-1;){const[i,c]=O6()(r,o),u=fW()(c),d=NW(e);o=[...i,...d,...u],r=Vu(o)}const a=B6({items:o,progress:n});return{items:o,progress:a}},kW=t=>(e,{id:n},o)=>{const{originalItemProgress:r}=t;let a={};r&&(a=r[o]||{});const i=Xe()(ys()(It()("index",o)),wo())(t.items);return e[n]={...a,...i,id:n,index:o},e},B6=({questionIndexList:t,items:e,progress:n})=>({...n,questionsDrawn:!0,questionList:t,items:e.reduce(kW(n),{})}),H6=t=>{const{id:e,items:n,progress:o,initializeDrawnQuizQuestions:r}=t;let a=[...n],i=Vu(a);const c=[];let u=0;for(;i!==-1;){const[m,p]=O6()(i,a),[f,...g]=p,{drawCount:v,questions:C}=f,x=I6()?C.length:v,L=[],y=[],E=[];for(;L.length<x;)if(o.questionsDrawn){const b=o.questionList[u];Tm()(S=>{const T=C[S];L.push({...T,drawn:!0,id:`${f.id}-${T.id}`})},b),E.push(...b)}else{const b=I6()?C[L.length]:$3({questions:C,drawnQuestionIds:y}),S=C.findIndex(T=>T.id===b.id);L.push({...b,drawn:!0,id:`${f.id}-${b.id}`}),y.push(b.id),E.push(S)}a=[...m,...L,...g],c.push(E),u++,i=Vu(a)}const d=B6({questionIndexList:c,items:a,progress:o});return r({lessonId:e,lessonProgress:d}),{items:a,progress:d}},AW=Lt()(!1,["settings","randomizeQuestionOrder"]),F6=hs()(ii()(AW,yW),xW,gt()("items")),xne=({lessonIds:t,lessons:e})=>!Array.isArray(t)||!e?!1:t.some((n,o)=>{const r=e[n];return r?.type!=="quiz"||r.settings?.skipLessonsIfPassed!==!0?!1:t.slice(o+1).some(i=>{const c=e[i];return c&&c.type!=null&&c.type!=="section"})}),RW=(0,I.shape)({a11yAnswerLive:I.string,a11yAuthorPrefix:I.string,a11yBlockChartAxisX:I.string,a11yBlockChartAxisY:I.string,a11yBlockChartBar:I.string,a11yBlockChartInstructions:I.string,a11yBlockChartLine:I.string,a11yBlockChartPie:I.string,a11yBlockChartPreposition:I.string,a11yBlockCode:I.string,a11yBlockCodeSnippet:I.string,a11yBlockEmbed:I.string,a11yBlockFlashcardBack:I.string,a11yBlockFlashcardFront:I.string,a11yBlockFlashcardGrid:I.string,a11yBlockFlashcardStack:I.string,a11yBlockFlashcardStackRoleDescription:I.string,a11yBlockFlashcardStackSlideControls:I.string,a11yBlockFlashcardStackSlideControlsGoToNext:I.string,a11yBlockFlashcardStackSlideControlsGoToPrevious:I.string,a11yBlockFlashcardStackSlideControlsGoToSlide:I.string,a11yBlockFlashcardStackSlidePreposition:I.string,a11yBlockFlashcardStackSlideRoleDescription:I.string,a11yBlockKnowledgeCheck:I.string,a11yBlockKnowledgeCheckFIB:I.string,a11yBlockKnowledgeCheckM:I.string,a11yBlockKnowledgeCheckMC:I.string,a11yBlockKnowledgeCheckMR:I.string,a11yBlockProcessCarousel:I.string,a11yBlockProcessRoleDescription:I.string,a11yBlockProcessSlideControls:I.string,a11yBlockProcessSlideControlsGoToNext:I.string,a11yBlockProcessSlideControlsGoToPrevious:I.string,a11yBlockProcessSlideControlsGoToSlide:I.string,a11yBlockProcessSlideControlsIntroduction:I.string,a11yBlockProcessSlideControlsSummary:I.string,a11yBlockProcessSlidePreposition:I.string,a11yBlockProcessSlideRoleDescription:I.string,a11yBlockQuoteCarousel:I.string,a11yBlockQuoteCarouselRoleDescription:I.string,a11yBlockQuoteCarouselSlideControls:I.string,a11yBlockQuoteCarouselSlideControlsGoToNext:I.string,a11yBlockQuoteCarouselSlideControlsGoToPrevious:I.string,a11yBlockQuoteCarouselSlideControlsGoToSlide:I.string,a11yBlockQuoteCarouselSlidePreposition:I.string,a11yBlockQuoteCarouselSlideRoleDescription:I.string,a11yBlockStoryline:I.string,a11yBlockTimeline:I.string,a11yCarouselNext:I.string,a11yCarouselPrevious:I.string,a11yCertificateDownloadFailed:I.string,a11yCorrectLive:I.string,a11yCoverCourseCompleted:I.string,a11yCoverCourseLength:I.string,a11yCoverRequirementComplete:I.string,a11yCoverRequirementFailed:I.string,a11yCoverRequirementIncomplete:I.string,a11yExcelIcon:I.string,a11yFileIcon:I.string,a11yGroupAudioPlayer:I.string,a11yGroupScenario:I.string,a11yGroupVideoPlayer:I.string,a11yLabeledGraphicBlock:I.string,a11yLabeledGraphicButtonMarker:I.string,a11yLabeledGraphicIconPlus:I.string,a11yLabeledGraphicIconDot:I.string,a11yLabeledGraphicIconInformation:I.string,a11yLabeledGraphicIconQuestion:I.string,a11yLabeledGraphicIconCheck:I.string,a11yLabeledGraphicIconX:I.string,a11yLabeledGraphicIconHeart:I.string,a11yLabeledGraphicIconPin:I.string,a11yLabeledGraphicIconArrowLeft:I.string,a11yLabeledGraphicIconArrowRight:I.string,a11yLabeledGraphicIconArrowUp:I.string,a11yLabeledGraphicIconArrowDown:I.string,a11yLabeledGraphicIconArrowUpLeft:I.string,a11yLabeledGraphicIconArrowUpRight:I.string,a11yLabeledGraphicIconArrowDownLeft:I.string,a11yLabeledGraphicIconArrowDownRight:I.string,a11yLabeledGraphicUnviewed:I.string,a11yLabeledGraphicViewed:I.string,a11yMatchingItemMatchedWith:I.string,a11yMatchingItemMatchWith:I.string,a11yMatchingItemSelectableItem:I.string,a11yMediaPause:I.string,a11yMediaPlay:I.string,a11yMediaSeek:I.string,a11yNavigationMenuClose:I.string,a11yNavigationMenuOpen:I.string,a11yPDFIcon:I.string,a11yPPTIcon:I.string,a11yQuizFailed:I.string,a11yQuizFeedback:I.string,a11yQuizPassed:I.string,a11yQuizReviewCorrectlyChecked:I.string,a11yQuizReviewCorrectlySelected:I.string,a11yQuizReviewCorrectlyUnchecked:I.string,a11yQuizReviewCorrectlyUnselected:I.string,a11yQuizReviewIncorrectlyChecked:I.string,a11yQuizReviewIncorrectlySelected:I.string,a11yQuizReviewIncorrectlyUnchecked:I.string,a11yQuizReviewIncorrectlyUnselected:I.string,a11yRegionMainLesson:I.string,a11yRegionMainOverview:I.string,a11yRegionNavLesson:I.string,a11yRegionNavOverview:I.string,a11yRestrictedNav:I.string,a11yRTFIcon:I.string,a11ySearchClose:I.string,a11ySearchInput:I.string,a11ySearchOpen:I.string,a11yStatusAdditionalContent:I.string,a11yStatusContinued:I.string,a11yUnzoomImage:I.string,a11yWordIcon:I.string,a11yZipIcon:I.string,a11yZoomImage:I.string,courseStart:I.string,courseResume:I.string,courseExit:I.string,courseHome:I.string,courseSkipToLesson:I.string,lessonName:I.string,lessonPreposition:I.string,lessonComplete:I.string,lessonRestricted:I.string,quizStart:I.string,quizQuestion:I.string,quizSubmit:I.string,quizRequireAnswer:I.string,quizNext:I.string,quizIncorrect:I.string,quizCorrect:I.string,quizResults:I.string,quizScore:I.string,quizPassing:I.string,quizTakeAgain:I.string,quizTimerElapsed:I.string,quizTimerExpired:I.string,quizTimerExpiredAction:I.string,quizTimerExpiredMessage:I.string,quizTimerHide:I.string,quizTimerLimit:I.string,quizTimerMinute:I.string,quizTimerMinutePlural:I.string,quizTimerRemaining:I.string,quizTimerShow:I.string,quizAcceptableResponses:I.string,quizAnswerPlaceholder:I.string,quizRequirePassingScore:I.string,quizContinue:I.string,processStepName:I.string,processStepPreposition:I.string,processNextStep:I.string,processLessonName:I.string,processComplete:I.string,processStart:I.string,processStartAgain:I.string,processSwipe:I.string,sortingCardsCorrect:I.string,sortingReplay:I.string,embedViewOn:I.string,embedReadMore:I.string,blocksClickToFlip:I.string,blocksPreposition:I.string,salutation:I.string,exitMessage:I.string,overviewPageTitleSuffix:I.string,labeledGraphicMarkerLabel:I.string,seekSliderLabel:I.string,playButtonLabel:I.string,pauseButtonLabel:I.string,embedPlayerGroup:I.string,embedLinkGroup:I.string,numberedDividerGroup:I.string,processLandmark:I.string,sortingLandmark:I.string,search:I.string,result:I.string,results:I.string,noResults:I.string,scenarioTryAgain:I.string,scenarioContinue:I.string,scenarioComplete:I.string,scenarioStartOver:I.string,progressPieUnstarted:I.string,progressPieCompleted:I.string,progressPieClickToComplete:I.string,progressPieClickToReset:I.string,progressPieQuizFailed:I.string,certificateDownload:I.string,certificateDownloadInProgress:I.string,certificateRetryDownload:I.string,coverCompleteAllLessons:I.string,coverCompleteLessonsName:I.string,coverCompleteLessonsPreposition:I.string,coverCompleteLessonsInCourse:I.string,coverCompleted:I.string,coverCourseRequirements:I.string,coverHour:I.string,coverHours:I.string,coverLesson:I.string,coverLessons:I.string,coverMinute:I.string,coverMinutes:I.string,coverNoAttemptsRemaining:I.string,coverPublished:I.string,coverQuizScoreOf:I.string,coverQuizPercentOrHigher:I.string,progressSummary:I.string,progressSummaryBackToLearning:I.string,progressSummaryCompleted:I.string,progressSummaryCongratulations:I.string,progressSummaryNextUp:I.string,progressSummaryNoTitle:I.string,progressSummaryPercentComplete:I.string,progressSummaryRequirementsMet:I.string,progressSummaryStartOver:I.string,curtainLoading:I.string,curtainOffline:I.string,curtainOfflineReconnecting:I.string,curtainSessionTimedOut:I.string,curtainSessionTimedOutRestart:I.string,curtainSessionTimedOutRefresh:I.string,curtainSomethingWrong:I.string,curtainSomethingWrongTryAgain:I.string,curtainSomethingWrongRefresh:I.string}),Om=(0,I.shape)({image:(0,I.shape)({key:I.string,originalUrl:I.string,sourcedFrom:(0,I.oneOf)(["DEFAULT","USER","LIBRARY","AI"]),src:I.string,thumbnail:I.string,type:I.string,useCrushedKey:I.bool})}),PW=(0,I.shape)({themeId:I.string,coverImage:I.string,navigation:I.bool,showAuthor:I.bool,allowSearch:I.bool,colorAccent:I.string,blockCorners:I.string,buttonScheme:I.string,uiTypefaceId:I.string,coverPageType:I.string,bodyTypefaceId:I.string,navigationType:I.string,blockPaddingTop:I.number,coverImageAlpha:I.number,navigationStyle:I.string,showLessonCount:I.bool,lessonHeaderSize:I.string,buttonInlineStyle:I.string,coverImageDefault:I.string,headingTypefaceId:I.string,lessonHeaderColor:I.string,lessonHeaderImage:I.string,lessonHeaderStyle:I.string,sidebarStartsOpen:I.bool,blockPaddingBottom:I.number,markLessonsComplete:I.bool,animateBlockEntrance:I.bool,navigationRestricted:I.bool,buttonNavigationStyle:I.string,showNavigationButtons:I.bool,compactShowLessonCount:I.bool,lessonHeaderImageAlpha:I.number,lessonHeaderImageColor:I.string,enableVideoPlaybackSpeed:I.bool,blockNavigationType:I.string,blockNavigationStyle:I.string,progressIndicatorStyle:I.string}),wW=(0,I.shape)({disableCoverPage:I.bool}),MW=(0,I.shape)({activeEdition:I.number,activeLMS:I.number,completeWith:(0,I.oneOf)(["reporting","quiz","storyline"]),completionPercentage:I.number,enableExitCourse:I.bool,enableTelemetryCollection:I.bool,exportType:(0,I.oneOf)(["lms","pdf","raw","business-content"]),format:(0,I.oneOf)(["zip"]),identifier:I.string,quizId:I.string,quizComplete:I.bool,reporting:(0,I.oneOf)(["passed-incomplete"]),shareId:I.string,storylineId:I.string,storylineComplete:I.bool,target:(0,I.oneOf)(["scorm12","scorm2004","aicc","xapi","cmi5"]),targetName:(0,I.oneOf)(["SCORM 1.2","SCORM 2004","AICC","xAPI","cmi5"]),title:(0,I.oneOfType)([I.string,(0,I.shape)({l10nId:I.string})]),resetLearnerData:I.bool,hideLmsUi:I.bool,webExportSettings:wW}),Dm=I.string,hn=I.string,Bm=t=>(0,I.oneOfType)([t,(0,I.shape)({l10nId:I.string})]),bne=(0,I.shape)({id:hn,originalId:hn,author:hn,selectedAuthorId:hn,color:I.string,navigationMode:I.string,title:Bm(I.string),sharePassword:I.string,description:Bm(I.string),shareId:hn,copyOf:I.string,order:I.string,fonts:I.object,media:Om,coverImage:(0,I.shape)({alpha:I.number,displaySidebar:I.bool,media:Om}),lessons:(0,I.arrayOf)(hn),jobs:(0,I.arrayOf)(hn),labelSetId:hn,deleted:I.bool,createdAt:Dm,updatedAt:Dm,markComplete:I.bool,isDefault:I.bool,ready:I.bool,reviewId:hn,exportSettings:MW,headingTypefaceId:hn,bodyTypefaceId:hn,uiTypefaceId:hn,sidebarMode:I.string,tenantId:hn,showLessonCount:I.bool,showNavigationButtons:I.bool,allowSearch:I.bool,authorPermissions:(0,I.arrayOf)(I.string),animateBlockEntrance:I.bool,transferredAt:Dm,allowCopy:I.bool,enableVideoPlaybackSpeed:I.bool,jobType:I.string,partnerContentId:hn,cardImage:Om,theme:PW,lessonHeaderImage:I.object,overlayNavigationImage:I.object,type:I.string,features:I.object,courseId:I.string,typefaces:(0,I.objectOf)(I.string)}),{FILL_IN_THE_BLANK:Uu,MATCHING:$u,MULTIPLE_CHOICE:Wu,MULTIPLE_RESPONSE:Gu}=xt.UQ,OW=3,z6=pr()("quiz-item__"),zi=Lt()(0,["progress","activeIndex"]),V6=(t,e)=>{if(!(t===void 0||!e)){if(Array.isArray(t))return t.map(n=>e.indexOf(n)).filter(n=>n!==-1);{const n=e.indexOf(t);return n===-1?void 0:n}}};class DW extends h.Component{constructor(e){super(e),this.getSelection=this.getSelection.bind(this),this.submitAndSetNextIndex=this.submitAndSetNextIndex.bind(this),this.onChoiceSelect=this.onChoiceSelect.bind(this),this.onFillInChange=this.onFillInChange.bind(this),this.onMatchSet=this.onMatchSet.bind(this),this.onNextClick=this.onNextClick.bind(this),this.onResponseToggle=this.onResponseToggle.bind(this),this.onSubmit=this.onSubmit.bind(this),this.state={errorIncomplete:!1,startTime:Date.now(),matches:{},isRetaking:!1},this.wrapper=h.createRef(),this.id=Ct()("qi-")}componentDidUpdate(e){const{isReduceMotion:n}=this.props;this.isNewlyActive({prevProps:e})&&(this.scrollTop(),this.setState({startTime:Date.now()})),n||this.scrollActionsIfComplete({prevProps:e})}componentWillUnmount(){clearTimeout(this.timeoutScrollActionsIfComplete)}static propTypes={enableVideoPlaybackSpeed:Ge().bool,getClassName:Ge().func,hasStart:Ge().bool,id:Ge().string.isRequired,index:Ge().number,isCorrectAnswerUnshuffled:Ge().bool,isReduceMotion:Ge().bool.isRequired,isShuffled:Ge().bool,isTimedQuiz:Ge().bool,item:Ge().object.isRequired,items:Ge().arrayOf(Ge().object),labels:RW,onChoiceSelect:Ge().func,onFillInChange:Ge().func,onMatchSet:Ge().func,onResponseToggle:Ge().func,prefersKeyboardNavigation:Ge().bool,progress:Ge().object,quizTop:Ge().number,reportAnswer:Ge().func,retryAttempts:Ge().number,scrollId:Ge().string,setNextIndex:Ge().func,settings:Ge().object,showNextButton:Ge().bool,submitAction:Ge().func,title:Bm(Ge().string.isRequired)};static get defaultProps(){return{getClassName:()=>{},labels:{},onChoiceSelect:()=>{},onFillInChange:()=>{},onMatchSet:()=>{},onResponseToggle:()=>{},reportAnswer:()=>{},retryAttempts:0,setNextIndex:()=>{},settings:{revealAnswers:xt.iV.ALL},showNextButton:!0,submitAction:()=>[]}}getCanSubmit({itemProgress:e}){const{item:n}=this.props;return S3({answersLength:n.answers?.length??0,matches:e?.matches,selectedIndex:e?.selectedIndex,selectedIndices:e?.selectedIndices,text:e?.text,type:n.type})}getFeedback({isCorrect:e,selectedIndex:n}){const{isShuffled:o,item:r}=this.props,{answers:a,feedback:i,feedbackCorrect:c,feedbackIncorrect:u,feedbackType:d,shuffledAnswerIndices:m}=r;return R3({answers:a,feedback:i,feedbackCorrect:c,feedbackIncorrect:u,feedbackType:d,isCorrect:e,isShuffled:o,selectedIndex:n,shuffledAnswerIndices:m})}getIndex(){return this.props.hasStart?_n()(this.props.index):this.props.index}getIsComplete({itemProgress:e}){return _s()(!1,"isComplete",e)}getIsDoneCard(){const e=this.getIndex(),n=zi(this.props);return e<n}getIsCorrect({itemProgress:e}){const{isCorrectAnswerUnshuffled:n,isShuffled:o,item:r,getL10nValue:a}=this.props;switch(r.type){case Uu:return I3({answers:r.answers??[],text:e.text,caseSensitive:r.settings?.isCaseSensitive??!1,getL10nValue:a});case $u:return N3(e.matches??{});case Gu:return A3({isShuffled:o,item:r,selectedIndices:e.selectedIndices,shuffledAnswerIndices:e.shuffledAnswerIndices});case Wu:default:return j3({isCorrectAnswerUnshuffled:n,isShuffled:o,item:r,selectedIndex:e.selectedIndex,shuffledAnswerIndices:e.shuffledAnswerIndices})}}getItemProgress({props:e}){return Lt()({},["items",e.item.id],e.progress)}getSelection({itemProgress:e}){const{type:n}=this.props.item;switch(n){case Uu:return e.text;case $u:return e.matches;case Gu:return e.selectedIndices;case Wu:default:return e.selectedIndex}}submitAndSetNextIndex(e=()=>[],n={}){const{id:o,setNextIndex:r}=this.props;e(n),r({lessonId:o})}isNewlyActive({prevProps:e}){const n=zi(this.props),o=zi(e),r=this.getIndex();return o!==n&&r===n}onChoiceSelect({selectedIndex:e}){const{id:n,item:o,onChoiceSelect:r}=this.props,{id:a,shuffledAnswerIndices:i}=o;this.resetErrorIncomplete(),r({lessonId:n,itemId:a,selectedIndex:e,shuffledAnswerIndices:i})}onFillInChange(e){const{id:n,item:o,onFillInChange:r}=this.props,{id:a}=o;this.resetErrorIncomplete(),r({lessonId:n,itemId:a,text:e})}onMatchSet(e){const{id:n,item:o,onMatchSet:r}=this.props,{id:a}=o;this.resetErrorIncomplete(),r({lessonId:n,itemId:a,matches:e})}onNextClick(e=()=>[],n={}){st.pause(),this.submitAndSetNextIndex(e,n)}onNextFeedbackClick(e){e&&this.onNextClick()}onTakeAgain=()=>{this.setState({isRetaking:!0}),setTimeout(()=>{this.props.onTakeAgain(),this.setState({isRetaking:!1})},50)};resetErrorIncomplete(){this.state.errorIncomplete&&this.setState({errorIncomplete:!1})}onResponseToggle({optionIndex:e}){const{id:n,item:o,onResponseToggle:r}=this.props,{id:a,shuffledAnswerIndices:i}=o;this.resetErrorIncomplete(),r({lessonId:n,itemId:a,selectedIndex:e,shuffledAnswerIndices:i})}onSubmit({canSubmit:e,isCorrect:n,itemProgress:o}){return r=>{r.preventDefault();const{getL10nRecursive:a,id:i,item:c,reportAnswer:u,retryAttempts:d,settings:m,submitAction:p,title:f}=this.props;if(!e){switch(this.setState({errorIncomplete:!0}),c.type){case Uu:this.wrapper.current?.querySelector("input")?.focus();break;case Gu:case Wu:this.wrapper.current?.querySelector("input")?.focus();break;case $u:this.wrapper.current?.querySelector("button")?.focus();break;default:break}return}const{startTime:g}=this.state,{id:v}=c,{revealAnswers:C,passToContinue:x}=m,L={startTime:g,stopTime:Date.now()},y=_s()(-1,"retryCount",m),E=parseInt(y,10),b=parseInt(d,10),S=Bo()(E,b),T=a({duration:L,id:i,isCorrect:n,item:c,itemProgress:o,retryAttempts:d,title:f});u(T);const N={finalRetryAttempt:S,lessonId:i,isCorrect:n,itemId:v,passToContinue:x,revealAnswers:C};if(C===xt.iV.ALL||C===xt.iV.INCORRECT)return p(N);this.onNextClick(p,N)}}render(){return this.props.isCard?this.renderCard():this.renderDefault()}renderCard(){const{getClassName:e,settings:n}=this.props,{correctAnswerColor:o,incorrectAnswerColor:r}=n,a=this.getIndex(),i=zi(this.props),c=a===i,u=this.getItemProgress({props:this.props}),d=this.getIsComplete({itemProgress:u}),m=this.getIsCorrect({itemProgress:u}),p=this.props.isTimedQuiz,f=e(a),v={"--color-feedback-icon":m?o:r,"--color-matching-feedback-bubble-bg":r,"--color-multiple-choice-complete-border":r,"--color-multiple-choice-correct-border":o,"--color-multiple-response-correct-border":o,"--color-multiple-response-incorrect-border":r,"--color-multiple-response-option-check":d?o:void 0,"--color-quiz-option-check":o,"--color-x-fill":r};return(0,s.jsx)("div",{className:f,"data-testid":"quiz-item-card",inert:c?void 0:!0,children:(0,s.jsx)("div",{className:z6("card-wrap"),children:(0,s.jsx)(l3,{isActive:c,isComplete:d,isTimedQuiz:p,style:v,children:(0,s.jsx)("div",{style:c||d?void 0:{display:"none"},children:this.renderItem()})})})})}renderMediaContent(){const{enableVideoPlaybackSpeed:e,isActive:n,labels:o,item:r,itemSettings:a,getL10nValue:i}=this.props,{media:c,id:u}=r,d=this.getIndex(),m=i(c),p=!!m?.image,f=!!m?.audio,g=!!m?.video,v=!!m?.embed;return f&&p?(0,s.jsx)("div",{className:"quiz-card__media--image-with-audio",children:(0,s.jsx)(Ir,{allowTabNavigation:n,blockId:u,enableVideoPlaybackSpeed:e,index:String(d),isOverlayAudio:!0,item:r,labels:o,media:c,settings:a})}):f&&(g||v)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ir,{allowTabNavigation:n,blockId:u,enableVideoPlaybackSpeed:e,index:`${d}-audio`,item:r,labels:o,media:{audio:m.audio},settings:a}),(0,s.jsx)(Ir,{allowTabNavigation:n,blockId:u,enableVideoPlaybackSpeed:e,index:String(d),item:r,labels:o,media:g?{video:m.video}:{embed:m.embed},settings:a})]}):(0,s.jsx)(Ir,{allowTabNavigation:n,blockId:u,enableVideoPlaybackSpeed:e,index:String(d),item:r,labels:o,media:c,settings:a})}renderDefault(){return(0,s.jsx)("div",{className:z6("wrap"),children:this.renderItem()})}renderItem(){const{hasStart:e,isReduceMotion:n,isQuestionBankQuiz:o,isShuffled:r,item:a,items:i,labels:c,onTakeAgain:u,progress:d,settings:m,showNextButton:p}=this.props,{errorIncomplete:f}=this.state,{quizAcceptableResponses:g,quizAnswerPlaceholder:v,quizCorrect:C,quizIncorrect:x,quizNext:L,quizRequireAnswer:y,quizRestart:E,quizQuestion:b,quizSubmit:S}=c,{id:T,title:N,type:j,settings:R}=a,{correctAnswerColor:O,correctAnswerColorContrast:P,incorrectAnswerColor:A,incorrectAnswerColorContrast:F,revealAnswers:w=xt.iV.NONE}=m,D=this.getIndex(),V=zi(this.props),_=D===V,ee=this.getItemProgress({props:this.props}),q=this.getIsComplete({itemProgress:ee}),fe=this.getIsCorrect({itemProgress:ee}),ye=w==xt.iV.ALL||w==xt.iV.INCORRECT,Ie=_&&q&&ye,we=_&&!q&&this.getCanSubmit({itemProgress:ee}),Ve=this.onSubmit({canSubmit:we,isCorrect:fe,itemProgress:ee,item:a}),Me=gt()("selectedIndex",ee),Ae=this.getFeedback({isCorrect:fe,selectedIndex:Me}),me=`q-${T}`,ue=this.getSelection({itemProgress:ee}),Be=Q()("quiz-card__retake-container",{"quiz-card__retake-container--active":q}),Re=Q()("quiz-card__retake","brand--hoverColor",{"quiz-card__retake--active":q});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(IH,{isActive:_,labels:c,questionLabel:b,questionNumber:e?D:D+1,totalQuestions:vs()(i)}),(0,s.jsx)(jH,{allowTabNavigation:_,htmlId:me,value:N}),this.renderMediaContent(),(0,s.jsx)(h3,{type:j,children:(0,s.jsx)("div",{ref:this.wrapper,children:this.renderType({columnBehavior:R?.columnBehavior,correctAnswerColor:O,correctAnswerColorContrast:P,incorrectAnswerColor:A,incorrectAnswerColorContrast:F,isActive:_,isComplete:q,isCorrect:fe,isShuffled:r,itemProgress:ee,labels:c,onSubmit:Ve,revealAnswers:w,questionHtmlId:me,quizAcceptableResponses:g,quizAnswerPlaceholder:v})})}),(0,s.jsx)("div",{"aria-live":"assertive",children:f&&(0,s.jsxs)("div",{className:"quiz-card__validations","data-testid":"quiz-validation-error",children:[(0,s.jsx)(ct,{className:"quiz-card__validation-icon","data-testid":"quiz-validation-icon",name:"alert-circle"}),(0,s.jsx)("span",{id:`${this.id}-error-incomplete-message`,children:y})]})}),(0,s.jsx)(u3,{canProceed:this.state.forceShowFeedback||Ie,feedbackRef:We=>{this.feedback=We},feedbackValue:this.state.forceFeedbackMessage||Ae,isActive:_,isComplete:q,isCorrect:this.state.forceShowFeedbackCorrect||fe,item:a,labels:c,progress:ee,quizCorrect:C,quizIncorrect:x,revealAnswers:w,selection:ue}),(0,s.jsx)(i3,{allowNext:!u,canProceed:Ie,canSubmit:we,isReduceMotion:n,item:a,onNext:p?this.onNextFeedbackClick.bind(this,_):null,onSubmit:Ve,quizNext:d.percentComplete===100&&o?E:L,quizSubmit:S}),u&&(0,s.jsx)("div",{className:Be,children:(0,s.jsx)("button",{className:Re,onClick:this.onTakeAgain,type:"button",children:(0,s.jsxs)("div",{className:"quiz-card__retake-content",children:[(0,s.jsx)("div",{className:"quiz-card__retake-text brand--ui",children:"TAKE AGAIN"}),(0,s.jsx)("i",{className:"quiz-card__retake-icon icon icon-reload"})]})})})]})}renderMCOptionText(e,{title:n}){return(0,s.jsx)(Tt,{allowTabNavigation:e,className:"quiz-multiple-choice-option__label",value:n})}renderMROptionText(e,{title:n}){return(0,s.jsx)(Tt,{allowTabNavigation:e,component:"span",value:n})}renderType(e){const{columnBehavior:n,correctAnswerColor:o,correctAnswerColorContrast:r,incorrectAnswerColor:a,incorrectAnswerColorContrast:i,isActive:c,isComplete:u,isCorrect:d,isReduceMotion:m,isShuffled:p,itemProgress:f,labels:g,onSubmit:v,revealAnswers:C,questionHtmlId:x,quizAcceptableResponses:L,quizAnswerPlaceholder:y}=e,{color:E,item:b,prefersKeyboardNavigation:S}=this.props,{answers:T,correct:N,corrects:j,type:R}=b,O=c&&!u,P=this.state.errorIncomplete?`${this.id}-error-incomplete-message`:void 0;switch(R){case Uu:return(0,s.jsx)(m3,{allowTabNavigation:c,correctAnswerColor:o,correctAnswerColorContrast:r,errorMessageId:P,incorrectAnswerColor:a,incorrectAnswerColorContrast:i,isComplete:u,isCorrect:d,labels:g,onChange:this.onFillInChange,onEnterToSubmit:v,options:T,questionHtmlId:x,quizAcceptableResponses:L,quizAnswerPlaceholder:y,revealAnswers:C,value:_s()("","text",f)});case $u:return(0,s.jsx)(C3,{answers:T,columnBehavior:n,correctAnswerColor:o,correctAnswerColorContrast:r,incorrectAnswerColor:a,incorrectAnswerColorContrast:i,isActive:c,isComplete:u,matches:f?.matches??{},onChange:this.onMatchSet,prefersKeyboardNavigation:S,revealAnswers:C});case Gu:{const A=gt()("selectedIndices",f),F=gt()("shuffledAnswerIndices",f)??[],w=p?V6(A,F):A;return(0,s.jsx)(y3,{allowTabNavigation:c,correctAnswerColor:o,correctIds:j,errorMessageId:P,incorrectAnswerColor:a,isComplete:u,isCorrect:d,isRetaking:this.state.isRetaking,labels:g,onChange:this.onResponseToggle,onEnterToSubmit:v,options:T,questionHtmlId:x,renderOptionText:this.renderMROptionText.bind(this,c),revealAnswers:C,selectedIndices:w})}case Wu:default:{const A=gt()("selectedIndex",f),F=gt()("shuffledAnswerIndices",f)??[],w=p?V6(A,F):A;return(0,s.jsx)(b3,{allowTabNavigation:O,color:E,correctAnswerColor:o,correctId:N,errorMessageId:P,incorrectAnswerColor:a,isComplete:u,isCorrect:d,isReduceMotion:m,isRetaking:this.state.isRetaking,labels:g,onChange:this.onChoiceSelect,onEnterToSubmit:v,options:T,questionHtmlId:x,renderOptionText:this.renderMCOptionText.bind(this,c),revealAnswers:C,selectedIndex:w})}}}scrollActionsIfComplete({prevProps:e}){const{isReduceMotion:n,scrollId:o,settings:r}=this.props,{revealAnswers:a=xt.iV.NONE}=r,i=this.getIndex(),c=zi(this.props);if(!(i===c)||a===xt.iV.NONE)return;const d=this.getItemProgress({props:e}),m=this.getIsComplete({itemProgress:d}),p=this.getItemProgress({props:this.props}),f=this.getIsComplete({itemProgress:p}),g=()=>{const{offsetHeight:v,offsetTop:C}=this.feedback,x=v+C;document.getElementById(o||"page-wrap")?.scrollTo({top:x,behavior:n?"instant":"smooth"})};!m&&f&&(this.timeoutScrollActionsIfComplete=setTimeout(g,750))}scrollTop(){const{isReduceMotion:e,quizTop:n,scrollId:o}=this.props,r=n||OW;document.getElementById(o||"page-wrap")?.scrollTo({top:r,behavior:e?"instant":"smooth"})}}const BW=Xe()(bO)(DW),U6=(0,h.createContext)({handleExpiredQuiz:Qs.lQ,hideTimer:Qs.lQ,quizTime:0,resetQuizTimer:Qs.lQ,timerDuration:0,timerHidden:!1,timerRunning:!1});function HW({children:t,handleExpiredQuiz:e=()=>{},isTimedQuiz:n,courseProgress:o,setQuizLessonTimeRemaining:r=()=>{},timerDuration:a=10}){const i=(0,h.useRef)(void 0),[c,u]=(0,h.useState)(),[d,m]=(0,h.useState)(!1),[p,f]=(0,h.useState)(!1),[g,v]=(0,h.useState)(),C=(0,h.useMemo)(()=>Number(a),[a]),{activeIndex:x,endIndex:L,lessonId:y,lessonProgress:E,startIndex:b}=(0,h.useMemo)(()=>{const V=o?.currentLesson,_=o?.lessons?.[V],ee=_?.activeIndex||0,q=Object.keys(_?.items||{}).length+1;return{activeIndex:ee,lessonId:V,endIndex:q,lessonProgress:_,startIndex:0}},[o]),S=(0,tt.A)(y),T=(0,tt.A)(x),N=(0,h.useCallback)(()=>{u(C*60)},[C]),j=(0,h.useCallback)(()=>{u(V=>V-1)},[u]),R=(0,h.useCallback)(()=>{m(!0),i.current||(i.current=setInterval(j,1e3))},[j,m]),O=(0,h.useCallback)(V=>{f(V!==void 0?V:!p)},[p]),P=(0,h.useCallback)(()=>{m(!1),i.current&&(i.current=clearInterval(i.current))},[m]),A=(0,h.useCallback)(()=>{c&&g!==void 0&&r({lessonId:g,timeRemaining:c})},[g,c,r]),F=(0,h.useCallback)(()=>{A(),u(void 0)},[u,A]),w=(0,h.useCallback)(()=>u(E.timeRemaining||C*60),[E,C,u]);(0,h.useEffect)(()=>{if(!n)return;const V=S!==y,_=V&&c,ee=V&&n;n&&!V&&g!==y&&v(y),_&&F(),ee&&w()},[n,g,y,S,c,w,F]),(0,h.useEffect)(()=>{if(n)switch(x){case b:P();break;case L:N(),P();break;default:R(),T!==x&&S===y&&A()}},[x,L,n,y,T,S,N,b,R,P,A]),(0,h.useEffect)(()=>{n&&c<1&&P()},[n,c,P]);const D=(0,h.useMemo)(()=>({handleExpiredQuiz:e,hideTimer:O,quizTime:c,resetQuizTimer:N,timerDuration:C,timerHidden:p,timerRunning:d}),[e,O,c,N,C,p,d]);return(0,s.jsx)(U6.Provider,{value:D,children:t})}const $6=()=>(0,h.useContext)(U6),FW=t=>t.isTimedQuiz?(0,s.jsx)(HW,{...t,children:t.children}):(0,s.jsx)(s.Fragment,{children:t.children}),zW=5,VW=15,UW=30,$W=60,WW=180,W6=300,G6=600,K6=120,GW=t=>t<=zW?{regularInterval:$W,lowTimeThreshold:K6}:t<=VW?{regularInterval:WW,lowTimeThreshold:K6}:t<=UW?{regularInterval:W6,lowTimeThreshold:W6}:{regularInterval:G6,lowTimeThreshold:G6},KW=(t,e,n,o)=>{const r=Math.floor(o/60),a=o%60,i=r===1?t:e;if(r>0&&a>0)return`${n}: ${r} ${i} and ${a} seconds`;if(r>0&&a===0)return`${n}: ${r} ${i}`;if(r===0&&a>0)return`${n}: ${a} seconds`};var Fo=l(26372);const Js=ne("quiz-timer"),Hm=(t,e)=>`${t.toString().padStart(2,"0")}:${e.toString().padStart(2,"0")}`,_W=t=>{const e=Math.floor(t/60),n=t%60;return Hm(e,n)},_6=t=>{const e=Math.floor(t/60),n=t%60;return Hm(e,n)},QW=t=>Hm(t,0),Q6=({area:t,exitCourseEnabled:e=!1,isStartScreenActive:n=!1,isEndScreenActive:o=!1,labelQuizTimerElapsed:r,labelQuizTimerExpired:a,labelQuizTimerExpiredAction:i,labelQuizTimerExpiredMessage:c,labelQuizTimerHide:u,labelQuizTimerLimit:d,labelQuizTimerMinute:m,labelQuizTimerMinutePlural:p,labelQuizTimerRemaining:f,labelQuizTimerShow:g,timerDisplay:v=xt.sS.REMAINING,timerEnabled:C=!1})=>{const[x,L]=Fo.useState(!1),[y,E]=Fo.useState(""),b=Fo.useRef(null),S=Fo.useRef(!1),{hideTimer:T,quizTime:N,timerDuration:j,timerHidden:R,timerRunning:O,handleExpiredQuiz:P}=$6(),A=j*60,{isCover:F,isHeader:w,isHidden:D}=Fo.useMemo(()=>({isCover:t==="cover",isHeader:t==="header",isHidden:v===xt.sS.HIDE_TIMER}),[t,v]),V=n&&!F,_=Fo.useMemo(()=>GW(j),[j]),ee=Fo.useMemo(()=>({expired:a||"Time expired",minute:m||"minute",minutePlural:p||"minutes",remaining:f||"Time left"}),[a,m,p,f]),q=()=>{L(!1),P()},fe=Fo.useCallback(()=>{const{regularInterval:Ve,lowTimeThreshold:Me}=_,Ae=N<=Me&&N>0&&!S.current,me=b.current!==null&&b.current-N>=Ve,ue=b.current===null;if(Ae||me){Ae&&(S.current=!0),b.current=N;const Be=KW(ee.minute,ee.minutePlural,ee.remaining,N);E(Be)}ue&&(b.current=N)},[_,N,ee]);if(Fo.useEffect(()=>{C&&N!==0&&(F||fe())},[fe,F,C,O,N]),Fo.useEffect(()=>{if(!C||N!==0||n)return;const Ve=setTimeout(()=>{L(!0)},1200);return()=>clearTimeout(Ve)},[N,C,n]),!C||V||o)return null;const ye={"header-area":w,"cover-area":F,"hide-timer":D,"exit-course":e},Ie={display:[F,w&&!n].some(nr())?null:"none"},we=()=>({[xt.sS.SUMMARY]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:Js("label"),children:[d,":"]}),(0,s.jsxs)("div",{className:Js("value"),children:[j," ",j===1?m:p]})]}),[xt.sS.REMAINING]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:Js("label"),children:[f,":"]}),(0,s.jsx)("div",{className:Js("value"),children:_W(N)})]}),[xt.sS.ELAPSED]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:Js("label"),children:[r,":"]}),(0,s.jsx)("div",{className:Js("value"),children:_6(A-N)})]}),[xt.sS.ELAPSED_TOTAL]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:Js("label"),children:[r,":"]}),(0,s.jsxs)("div",{className:Js("value"),children:[_6(A-N)," /"," ",QW(j)]})]})})[F?xt.sS.SUMMARY:v];return(0,s.jsxs)("div",{className:Js(ye),"data-testid":"quiz-timer",style:Ie,children:[N!==0&&(0,s.jsx)("div",{"aria-atomic":"true","aria-live":"polite",className:"visually-hidden",role:"status",children:y}),N===0&&(0,s.jsx)("div",{className:"visually-hidden",role:"alert",children:a||"Time expired"}),w&&R?(0,s.jsxs)("button",{className:Js("hide"),onClick:()=>T(!1),type:"button",children:[(0,s.jsx)(ct,{className:Js("icon"),name:"stopwatch-regular"}),g]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:Js("time"),children:[(0,s.jsx)(ct,{className:Js("icon"),name:"stopwatch-regular"}),(0,s.jsx)("div",{className:Js("desc"),children:we()})]}),w&&(0,s.jsx)("button",{className:Js("hide"),onClick:()=>T(!0),type:"button",children:u})]}),!F&&x&&eo.createPortal((0,s.jsxs)(vv,{className:"quiz-timer-modal","data-testid":"quiz-timer-modal",disableBackgroundScroll:!0,heading:a,hideCloseButton:!0,onCancel:q,onClose:q,onOverlayClick:()=>{},children:[(0,s.jsx)("p",{children:c}),(0,s.jsx)("button",{"data-testid":"quiz-view-results-button",onClick:q,type:"button",children:i})]}),fr({childType:"dialog"}))]})};var ZW=l(26372);const YW=t=>({start:t<2?0:t-2,end:t+2}),Ku=Lt()(0,["progress","activeIndex"]),Fm=t=>e=>Q()("quiz-item__card",{"quiz-item__card--active":e===t,"quiz-item__card--done":e<t,"quiz-item__card--next":e===t+1,"quiz-item__card--penultimate":e===t+2,"quiz-item__card--future":e>t+2}),zm=Lt()(0,["progress","retryAttempts"]),XW=dn(),JW=(t,e)=>{if(!t||!e||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n].id!==e[n].id)return!0;return!1},qW=(t,e,n)=>{if(!Array.isArray(t)||!Array.isArray(e)||!n)return!1;const o=t.map(i=>e[i]),r=e.findIndex(i=>i.id===n),a=o.findIndex(i=>i.id===n);return r===a};class eG extends ZW.Component{constructor(e){super(e);const{initializeDrawnQuizQuestions:n}=e,o=H6({...e,initializeDrawnQuizQuestions:n}),r={...e,...o};this.state={items:F6(r),progress:r.progress,isQuizCover:!1,hasNavMenu:!1,course:e.course,lesson:e.course?.lessons?.find(a=>a.id===e.lessonProgress?.id)}}UNSAFE_componentWillReceiveProps(e){const n=zm(this.props),o=zm(e);if(n!==o){const r=H6({...e}),a={...e,...r};this.setState({items:F6(a),progress:a.progress})}else{const{items:r,progress:a}=jW({...e,currentItems:this.state.items}),i=IW(this.state.items,r);this.setState({items:i,progress:a})}}static get defaultProps(){return{initializeDrawnQuizQuestions:Qs.lQ}}componentDidUpdate(e,n){}render(){const{labels:e,quizEnd:n,quizHeader:o,settings:r,isQuestionBankQuiz:a}=this.props,{course:i,items:c}=this.state,u=Ku(this.state),{start:d,end:m}=YW(u),p=c.slice(d,m),f=!a&&u===0,g=!a&&u===c.length+1;return(0,s.jsxs)("section",{className:"quiz","data-quiz":!0,"data-testid":"quiz",children:[r?.timer&&(0,s.jsx)(Q6,{area:"header",exitCourseEnabled:i?.lmsOptions?.enableExitCourse,isEndScreenActive:g,isStartScreenActive:f,labelQuizTimerElapsed:e?.quizTimerElapsed,labelQuizTimerExpired:e?.quizTimerExpired,labelQuizTimerExpiredAction:e?.quizTimerExpiredAction,labelQuizTimerExpiredMessage:e?.quizTimerExpiredMessage,labelQuizTimerHide:e?.quizTimerHide,labelQuizTimerLimit:e?.quizTimerLimit,labelQuizTimerMinute:e?.quizTimerMinute,labelQuizTimerMinutePlural:e?.quizTimerMinutePlural,labelQuizTimerRemaining:e?.quizTimerRemaining,labelQuizTimerShow:e?.quizTimerShow,timerDisplay:r?.timerDisplay,timerEnabled:r?.timer}),(0,s.jsxs)("div",{className:"quiz__wrap",children:[o&&u<2?this.renderStart():null,p.map(this.renderItem.bind(this,d)),n&&this.renderEnd()]})]})}renderEnd(){const{quizEnd:e}=this.props,{items:n}=this.state,o=Ku(this.state),r=Fm(o),a=n.length+1;return(0,s.jsx)("div",{className:r(a),inert:a===o?void 0:!0,children:(0,s.jsx)("div",{className:"quiz__item-wrap",children:e(n)})})}getQuizTop(){return document.querySelector(".lesson-nav--previous")?.clientHeight}renderItem(e,n,o){const{color:r,course:a,enableVideoPlaybackSpeed:i,id:c,isQuestionBankQuiz:u,labels:d,reportAnswer:m,onChoiceSelect:p,onFillInChange:f,onMatchSet:g,onResponseToggle:v,onSetIndex:C,onSubmit:x,prefersKeyboardNavigation:L,progress:y,quizHeader:E,settings:b,title:S}=this.props,{items:T}=this.state,N=Ku(this.state),j=Fm(N),R=this.getQuizTop(),O=n.type===xt.UQ.MULTIPLE_CHOICE,P=JW(n.shuffledAnswerIndices,n.answers),A=O?qW(n.shuffledAnswerIndices,n.answers,n.correct):void 0;return(0,s.jsx)(BW,{color:r,enableVideoPlaybackSpeed:i,getClassName:j,hasStart:!!E,id:c,index:o+e,isCard:!0,isCorrectAnswerUnshuffled:A,isQuestionBankQuiz:u,isReduceMotion:XW,isShuffled:P,isTimedQuiz:b?.timer,item:n,items:T,labels:d,lessons:a?.lessonsOnly,onChoiceSelect:p,onFillInChange:f,onMatchSet:g,onResponseToggle:v,prefersKeyboardNavigation:L,progress:y,quizTop:R,reportAnswer:m,retryAttempts:zm({progress:y}),scrollId:"page-wrap",setNextIndex:C,settings:b,submitAction:x,title:S},`item-${n.id}`)}renderStart(){const{quizHeader:e}=this.props,n=Ku(this.state),o=Fm(n);return(0,s.jsx)("div",{className:o(0),children:(0,s.jsx)("div",{className:"quiz__item-wrap",children:e()})})}}const tG=eG,ts=ne("odometer"),Z6=1e3,Y6=2e3,sG=4e3,nG=750,_u=200,Vm=170,Vn=_u/2,Un=Vm/2,vc=70,X6=1.5,oG=2.5,rG=225,aG=135,J6=270,Um=7,Vi={start:{dx:-19,dy:8},mid:{dx:-5,dy:22},end:{dx:26,dy:-7}},Rr={size:12,topOffset:-3,bottomOffset:21};function iG(t){return t<.5?16*t**5:1+16*(t-1)**5}function lG(t){return t<.5?2*t**2:1-(-2*t+2)**2/2}function Qu({angle:t,centerX:e,centerY:n,radius:o}){const r=(t-90)*Math.PI/180;return{x:e+o*Math.cos(r),y:n+o*Math.sin(r)}}function $m({centerX:t,centerY:e,counterClockwise:n=!1,endAngle:o,radius:r,startAngle:a}){const i=Qu({angle:a,centerX:t,centerY:e,radius:r}),c=Qu({centerX:t,centerY:e,radius:r,angle:o}),d=Math.abs(o-a)>180?"1":"0",m=n?"0":"1";return`M ${i.x} ${i.y} A ${r} ${r} 0 ${d} ${m} ${c.x} ${c.y}`}function q6(t,e,n){return e+n*J6*t/100}function cG({hasPassed:t,isResultsVisible:e,isRTL:n,onAnimationDone:o,passingLabel:r,passingScore:a,score:i=0,scoreLabel:c,shouldAnimate:u}){const[d,m]=(0,h.useState)(0),[p,f]=(0,h.useState)(0),[g,v]=(0,h.useState)(!1),x=`hatch-pattern${(0,h.useId)()}`,L=(0,h.useRef)(null),y=(0,h.useRef)(!1),E=(0,h.useRef)([]),b=(0,h.useCallback)(()=>{E.current.forEach(clearTimeout),E.current=[]},[]),S=(0,h.useCallback)(()=>{L.current!==null&&(cancelAnimationFrame(L.current),L.current=null),b()},[b]);(0,h.useEffect)(()=>{e||(S(),y.current=!1,m(0),f(0),v(!1))},[e,S]),(0,h.useEffect)(()=>{if(!e||!u||y.current)return;y.current=!0;const Me=i,Ae=setTimeout(()=>{let me=null;const ue=Be=>{me===null&&(me=Be);const Re=Be-me,We=Math.min(Re/Y6,1),He=iG(We),mt=lG(We);if(f(He),m(Math.round(mt*Me)),We<1)L.current=requestAnimationFrame(ue);else{f(1),m(Me);const ht=setTimeout(()=>{v(!0);const yt=setTimeout(()=>{o?.()},nG);E.current.push(yt)},sG-Z6-Y6);E.current.push(ht)}};L.current=requestAnimationFrame(ue)},Z6);E.current.push(Ae)},[e,u,i,o]),(0,h.useEffect)(()=>()=>{S()},[S]);const T=n?aG:rG,N=n?-1:1,j=q6(a,T,N),R=q6(p*i,T,N),O=T+N*J6,P=Qu({centerX:Vn,centerY:Un,radius:vc,angle:R}),A=Qu({centerX:Vn,centerY:Un,radius:vc,angle:j}),F=p*i>=a,w=n?`%${a}`:`${a}%`,D=n?`%${d}`:`${d}%`,V=`${c} ${n?`%${i}`:`${i}%`}`,_=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:ts("pass-mark-label"),children:r}),(0,s.jsx)("div",{className:ts("pass-mark-percent"),children:w})]}),ee=$m({centerX:Vn,centerY:Un,counterClockwise:n,radius:vc,startAngle:T,endAngle:O}),q=$m({centerX:Vn,centerY:Un,counterClockwise:n,radius:vc+3,startAngle:j,endAngle:O}),fe=p>0?$m({centerX:Vn,centerY:Un,counterClockwise:n,radius:vc,startAngle:T,endAngle:R}):"",ye={x:A.x+(n?-13:13),y:A.y-13},Ie={x:ye.x+(n?-13:13),y:ye.y},we=n?-10:10,Ve=[`${A.x},${A.y}`,`${ye.x+we},${ye.y-10}`,`${ye.x-we},${ye.y-10}`,`${ye.x-we},${ye.y+10}`].join(" ");return(0,s.jsxs)("div",{className:ts(),children:[(0,s.jsxs)("svg",{"aria-hidden":"true",className:ts("svg"),viewBox:`0 0 ${_u} ${Vm}`,children:[(0,s.jsx)("defs",{children:(0,s.jsx)("pattern",{height:"1.5",id:x,patternTransform:"rotate(45)",patternUnits:"userSpaceOnUse",width:"1.5",children:(0,s.jsx)("line",{className:ts("hatch-line"),x1:"0",x2:"0",y1:"0",y2:"1.5"})})}),(0,s.jsx)("path",{className:ts("passing-zone"),d:q,fill:"none",stroke:`url(#${x})`,strokeWidth:"6"}),(0,s.jsxs)("g",{className:ts("pass-mark-lines"),children:[(0,s.jsx)("polygon",{className:ts("pass-mark-mask"),points:Ve}),(0,s.jsx)("line",{className:ts("pass-mark-line"),x1:A.x,x2:ye.x,y1:A.y,y2:ye.y}),(0,s.jsx)("line",{className:ts("pass-mark-line"),x1:ye.x,x2:Ie.x,y1:ye.y,y2:Ie.y})]}),(0,s.jsx)("path",{className:ts("track"),d:ee,fill:"none",strokeWidth:X6}),fe&&(0,s.jsx)("path",{className:ts("progress",{passing:F}),d:fe,fill:"none",strokeWidth:X6}),p>0&&(0,s.jsx)("circle",{className:ts("dot",{passing:F}),cx:P.x,cy:P.y,r:oG}),g&&(0,s.jsx)("g",{className:ts("result-icon"),children:t?(0,s.jsx)("path",{className:ts("checkmark"),d:`M ${Vn+Vi.start.dx} ${Un+Vi.start.dy} L ${Vn+Vi.mid.dx} ${Un+Vi.mid.dy} L ${Vn+Vi.end.dx} ${Un+Vi.end.dy}`,fill:"none",strokeLinecap:"square",strokeLinejoin:"miter",strokeWidth:Um}):(0,s.jsxs)("g",{className:ts("x-mark"),children:[(0,s.jsx)("path",{className:ts("x-line",{first:!0}),d:`M ${Vn-Rr.size} ${Un+Rr.topOffset} L ${Vn+Rr.size} ${Un+Rr.bottomOffset}`,fill:"none",strokeLinecap:"square",strokeWidth:Um}),(0,s.jsx)("path",{className:ts("x-line",{second:!0}),d:`M ${Vn+Rr.size} ${Un+Rr.topOffset} L ${Vn-Rr.size} ${Un+Rr.bottomOffset}`,fill:"none",strokeLinecap:"square",strokeWidth:Um})]})})]}),(0,s.jsxs)("div",{className:ts("score",{pass:g&&t,fail:g&&!t}),children:[(0,s.jsx)("div",{className:ts("score-label"),children:c}),(0,s.jsx)("div",{className:ts("pass-label"),children:V}),(0,s.jsx)("div",{className:ts("fail-label"),children:V}),(0,s.jsx)("div",{className:ts("score-percent",{hidden:g}),children:D})]}),(0,s.jsx)("div",{className:ts("pass-mark"),style:{"--pass-mark-x":`${(n?_u-Ie.x:Ie.x)/_u*100}%`,"--pass-mark-y":`${(Ie.y+3)/Vm*100}%`},children:_}),(0,s.jsx)("div",{className:ts("pass-mark-mobile"),children:_})]})}const dG=t=>t===xt.IK.CONTINUE,uG=({shouldSkipOnPass:t,skipToLessonId:e,hasPassed:n,nextLessonId:o})=>o&&t&&e&&n?e:o,hG=({isContinueBtn:t,isPreviewMode:e})=>t&&!e,mG=({canShowContinue:t,isRiseCom:e,nextLesson:n,isExport:o})=>t&&e&&!n&&!o,pG=t=>(0,to.Gv)(t)&&"id"in t&&"type"in t,fG=({item:t,question:e})=>{if(t.type===xt.UQ.DRAW_FROM_QUESTION_BANK){const n=String(e.id);return t.id===n.split("-")[0]}return t.id===e.id},vG=({lesson:t,question:e})=>{const o=t?.items?.filter(pG)?.find(a=>fG({item:a,question:e}));if(o?.type!==xt.UQ.DRAW_FROM_QUESTION_BANK)return o;const r=String(e.id).split("-")[1];return o.questions.find(a=>a.id===r)};var gG;const CG=t=>t===lt.Yq.PREVIEW,Ene=t=>t!==gG.HIDDEN,xG={isRestricted:!1,restrictingQuiz:{},isRestrictedCourse:!1,currentLesson:void 0};function bG(t){const e=Rt(),n=hr(),o=nn(t??""),r=(0,h.useMemo)(()=>{if(!e||!n||!o)return xG;const c=Gr({course:e,courseProgress:n});return Da({course:e,courseProgress:n,lesson:o,restrictingQuiz:c})},[e,n,o]),{restrictingQuiz:a}=r,i=Xt(a?.title);return(0,h.useMemo)(()=>a?.title?{...r,restrictingQuiz:{...a,title:i}}:r,[r,a,i])}const yG=ne("quiz-results");function LG({isFooterVisible:t,isResultsVisible:e,onContinue:n,onTryAgainFocus:o}){const r=(0,W.wA)(),{mode:a}=(0,ie.g)(),i=CG(a),c=oo()??"",u=Yr(c),{passed:d=!1,retryAttempts:m=0}=u??{},{continueType:p,retryCount:f,skipLessonsIfPassed:g,skipToLessonId:v}=lC(c),{resetQuizTimer:C}=$6(),x=dG(p),L=(0,ot.useLabelsMap)(),y=iC(c),E=bG(y),{isRestricted:b}=E,{courseFinish:S,quizContinue:T,quizTakeAgain:N}=L??{},j=uG({hasPassed:d,nextLessonId:y,shouldSkipOnPass:g,skipToLessonId:v}),R=hG({isContinueBtn:x,isPreviewMode:i}),O=mG({canShowContinue:R,isExport:(0,Je.Hm)(),isRiseCom:$e.BI,nextLesson:j}),P=(0,h.useCallback)(()=>{C(),r((0,bs.FU)(c))},[r,C,c]);return(0,s.jsxs)("div",{className:yG("footer",{active:e,hidden:!t}),"data-testid":"quiz-results-footer",children:[(f===-1||m<f)&&(0,s.jsx)(a6,{allowTabNavigation:e,onClick:P,onFocus:o,text:N}),R&&b&&j&&L&&(0,s.jsx)(n3,{bgType:"transparent",text:Ic({labels:L,restrictions:E})}),R&&!b&&j&&(0,s.jsx)(cm,{href:(0,qt.p1)(j),onClick:n,text:T}),O&&(0,s.jsx)(cm,{href:qt.X1,onClick:n,text:S})]})}const Ui=ne("quiz-results");function EG({onContinue:t,questionCount:e}){const n=oo()??"",o=Yr(n),{activeIndex:r=0,passed:a=!1,passingScore:i=xt.hB,reportResults:c=!1,score:u=0}=o??{},d=(0,ot.useLabelsMap)(),m=(0,xe.Wz)(),[p,f]=(0,h.useState)(!1),g=e+1===r,v=(0,h.useRef)(g),C=(0,h.useRef)(void 0),x=(0,h.useRef)(null),L=(0,h.useId)(),{a11yQuizFailed:y="",a11yQuizPassed:E="",quizPassing:b="",quizResults:S="",quizScore:T=""}=d??{},N=`quiz-results-desc-${L}`,j=(0,h.useCallback)(()=>{C.current=setTimeout(()=>{f(!0),window.dispatchEvent(new CustomEvent(Od))},xt.R8)},[]),R=(0,h.useCallback)(()=>{clearTimeout(C.current),C.current=void 0,f(!0)},[]);return(0,h.useEffect)(()=>()=>{clearTimeout(C.current)},[]),(0,h.useEffect)(()=>{g!==v.current&&(g?x.current?.focus():f(!1),v.current=g)},[g]),(0,s.jsx)("div",{className:Ui(),children:(0,s.jsx)("div",{className:Ui("container"),children:(0,s.jsxs)("div",{className:Ui("content",{active:g}),"data-testid":"quiz-results",children:[(0,s.jsxs)("div",{className:Ui("header"),children:[(0,s.jsx)("h1",{"aria-describedby":N,className:Ui("label").mix("noOutline"),ref:x,tabIndex:-1,children:S}),(0,s.jsxs)("div",{className:"visually-hidden-always",id:N,children:[(0,s.jsx)("div",{children:`${b}: ${i}%`}),(0,s.jsx)("div",{children:`${T}: ${u}%`}),(0,s.jsx)("div",{children:a?E:y})]})]}),(0,s.jsx)("div",{"aria-hidden":"true",className:Ui("results"),children:(0,s.jsx)(cG,{hasPassed:a,isResultsVisible:g,isRTL:m,onAnimationDone:j,passingLabel:b,passingScore:i,score:u,scoreLabel:T,shouldAnimate:c})}),(0,s.jsx)(LG,{isFooterVisible:p,isResultsVisible:g,onContinue:t,onTryAgainFocus:R})]})})})}const zo=ne("quiz-start"),e5=t=>(t?.retryAttempts??0)>0;function SG({lessonId:t,isActive:e}){const n=(0,W.wA)(),o=(0,h.useRef)(null),r=Yr(t),a=(0,ot.useLabelsMap)(),i=Rt(),c=(0,xe.UG)(),u=nn(t),d=op(),m=(0,W.d4)(u0),p=c?.authorName,f=c?.avatar,g=i?.theme?.showAuthor??!1,v=i?.theme?.showLessonCount??!1,C=d[t]??0,x=Xt(u?.description),L=Xt(u?.title),y=u?.settings?.timer,E=u?.settings?.asLesson!==!1,{a11yAuthorPrefix:b="",lessonName:S="",lessonPreposition:T="",quizStart:N="",quizTakeAgain:j="",quizTimerElapsed:R="",quizTimerExpired:O="",quizTimerExpiredAction:P="",quizTimerExpiredMessage:A="",quizTimerHide:F="",quizTimerLimit:w="",quizTimerMinute:D="",quizTimerMinutePlural:V="",quizTimerRemaining:_="",quizTimerShow:ee=""}=a??{},q=e&&e5(r),fe=e5(r),ye=fe?"quiz-take-again-button":"quiz-start-button";(0,h.useEffect)(()=>{q&&o.current?.focus&&o.current.focus()},[q]);const Ie=()=>{n((0,bs.QI)({lessonId:t}))},we=fe?j:N;return(0,s.jsx)("div",{"aria-hidden":!e,className:zo(),children:(0,s.jsx)("div",{className:zo("container"),children:(0,s.jsxs)("div",{className:zo("content"),children:[(0,s.jsxs)("div",{className:zo("header"),children:[(0,s.jsx)("div",{className:zo("counter"),children:E&&v&&(0,s.jsx)("div",{className:zo("count"),children:`${S} ${C} ${T} ${m}`})}),(0,s.jsx)("h1",{ref:o,tabIndex:-1,children:(0,s.jsx)(Tt,{className:zo("title"),value:L})}),g&&f&&p?(0,s.jsxs)("div",{className:zo("author"),children:[(0,s.jsx)("img",{alt:"",src:(0,Je.o1)(f)}),(0,s.jsxs)("span",{className:"visually-hidden",children:[b," ",p]}),(0,s.jsx)("span",{"aria-hidden":"true",children:p})]}):null]}),y&&(0,s.jsx)(Q6,{area:"cover",exitCourseEnabled:i?.lmsOptions?.enableExitCourse,isStartScreenActive:e,labelQuizTimerElapsed:R,labelQuizTimerExpired:O,labelQuizTimerExpiredAction:P,labelQuizTimerExpiredMessage:A,labelQuizTimerHide:F,labelQuizTimerLimit:w,labelQuizTimerMinute:D,labelQuizTimerMinutePlural:V,labelQuizTimerRemaining:_,labelQuizTimerShow:ee,timerEnabled:y}),(0,s.jsx)(Tt,{allowTabNavigation:e,className:zo("description"),value:x}),(0,s.jsx)(Mt.ArcButton,{className:zo("start-button"),"data-testid":ye,hierarchy:"plain",iconEnd:(0,s.jsx)(ct,{name:"chevron-right-solid"}),onClick:e?Ie:Qs.lQ,size:"sm",tabIndex:e?void 0:-1,children:we})]})})})}function TG({color:t,course:e,items:n,labels:o,lessonId:r,lessonProgress:a,onNextClick:i,prefersKeyboardNavigation:c,settings:u,title:d}){const m=(0,W.wA)();dW({lessonId:String(r),items:n});const p=(0,h.useCallback)(v=>{const{skipLessonsIfPassed:C,skipToLessonId:x}=u||{};return m((0,bs.kK)({...v,skipLessonsIfPassed:C,skipToLessonId:x}))},[m,u]),f=v=>(0,s.jsx)(EG,{onContinue:i,questionCount:v.length}),g=()=>{const C=(a?.activeIndex??0)===0;return(0,s.jsx)(SG,{isActive:C,lessonId:r})};return(0,s.jsx)(tG,{color:t,course:e,id:r,initializeDrawnQuizQuestions:v=>m((0,bs.x6)(v)),items:n,labels:o,onChoiceSelect:v=>m((0,bs.Yu)(v)),onFillInChange:v=>m((0,bs.Nj)(v)),onMatchSet:v=>m((0,bs.NC)(v)),onResponseToggle:v=>m((0,bs.mg)(v)),onSetIndex:v=>m((0,bs.QI)(v)),onSubmit:p,prefersKeyboardNavigation:c,progress:a,quizEnd:f,quizHeader:g,reportAnswer:Je.bb,settings:u,title:d})}const IG=({id:t,passingScore:e})=>Mm()(n2(),(0,Je.GJ)({id:t,passingScore:e})),NG=({id:t,settings:e,lessonProgress:n={}})=>nW()(tW()(["passingScore"]),IG({id:t,...n}),e),jG=({color:t,data:{id:e,items:n,settings:o,title:r,type:a},labels:i,lessonProgress:c,onNextClick:u,prefersKeyboardNavigation:d,course:m})=>(0,s.jsx)(fc,{type:a,children:(0,s.jsx)(Hi,{type:a,children:(0,s.jsx)(Hu,{children:(0,s.jsxs)(Fi,{items:n,type:a,children:[(0,s.jsx)(w6,{id:e,lessonProgress:c,type:"quiz"}),(0,s.jsx)(TG,{color:t,course:m,items:n,labels:i,lessonId:e,lessonProgress:c,onNextClick:u,prefersKeyboardNavigation:d,settings:NG({id:e,lessonProgress:c,settings:o}),title:r})]})})})});var kG=l(73713),Wm=l.n(kG);function AG({authors:t,lessonAuthor:e,courseAuthor:n,selectedAuthorId:o}){if(o==="none")return{};if(o){const r=Wm()(t,{id:o});if(r)return r}if(e){const r=Wm()(t,{id:e});if(r)return r}if(n){const r=Wm()(t,{id:n});if(r)return r}return{}}const t5={addEventListeners(t,e){t.addEventListener("animationend",e,!1)},removeEventListeners(t,e){t.removeEventListener("animationend",e,!1)}},RG=jt("LessonHeader"),PG=ne("lesson-header"),wG=({authorName:t,avatar:e,children:n,color:o,description:r,labels:{lessonName:a,lessonPreposition:i},lessonHeaderColor:c,lessonHeaderImageColor:u,lessonHeaderSize:d,lessonHeaderStyle:m,partnerContentAuthors:p,totalLessons:f,lessonNumber:g,showAuthor:v,showLessonCount:C,title:x})=>{const L=Sa(),y=oo(),E=(0,Es.qg)(L),b=m===M.xj.IMAGE,S=PG("top-wrap"),{alpha:T,ariaLabel:N,media:j,role:R}=qr("lessonHeaderImage"),O=j?.image,P=(0,h.useMemo)(()=>{if(O&&b){const A=u===M.df.LIGHT?M.qH:M.KJ;return(0,ah.A)({alpha:T,color:A,url:(0,Ft.ME)(O)})}},[O,b,u,T]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ab,{ariaLabel:b?N:void 0,imgRole:b?R:void 0,sectionStyles:P,topWrapClassName:S,children:(0,s.jsx)(RG,{authorName:t,avatar:e,color:o,description:r,lessonHeaderColor:c,lessonHeaderSize:d,lessonHeaderStyle:m,lessonId:y,lessonName:a,lessonNumber:g,lessonPreposition:i,partnerContentAuthors:p,showAuthor:v,showLessonCount:C&&!E,title:x,totalLessons:f})}),n]})},$i=ne("one-page-authors");function MG({className:t}){const e=(0,xe.vU)(),n=(0,xe._z)(),o=(0,xe.$H)(),r=(0,xe.PH)();if(!o)return null;const a=n?.isPartnerContentAuthor&&r!=null,i=$i({}).mix(t);return a?(0,s.jsx)("div",{className:i,children:(0,s.jsx)("ul",{className:$i("list"),role:"list",children:r.map((c,u)=>(0,s.jsxs)("li",{className:$i("item"),role:"listitem",children:[(0,s.jsx)(s5,{avatarUrl:(0,Ft.ny)({width:76,height:76,imageKey:c?.image})}),(0,s.jsx)(n5,{a11yAuthorPrefix:e?.a11yAuthorPrefix,name:c?.name})]},u))})}):(0,s.jsxs)("div",{className:i,children:[(0,s.jsx)(s5,{avatarUrl:(0,$e.o1)(o.avatar)}),(0,s.jsx)(n5,{a11yAuthorPrefix:e?.a11yAuthorPrefix,name:o.authorName})]})}function s5({avatarUrl:t}){return t?(0,s.jsx)("div",{className:$i("avatar"),style:{backgroundImage:`url(${t})`}}):(0,s.jsx)("div",{className:$i("avatar-fallback"),children:(0,s.jsx)(e1,{decorative:!0})})}function n5({a11yAuthorPrefix:t,name:e}){const n=e||"Unknown User",o=$i("name");return(0,s.jsxs)("div",{className:o.toString(),children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:t}),(0,s.jsx)("span",{children:n})]})}const o5=jt("OnePageAuthors",MG),OG=ne("one-page-title"),r5=jt("OnePageTitle",({className:t,htmlId:e})=>{const n=(0,xe.DX)(),o=(0,nt.QQ)(n.title),r=Ya("title"),a=(0,ds.uW)(n.title)?{"data-l10n-id":n.title.l10nId}:{"data-change-path":r},i=OG({}).mix(t);return(0,s.jsx)("h1",{...a,className:i,id:e,tabIndex:-1,children:o})}),Gm=ne("one-page-lesson-header-info");function DG(){const t=(0,xe.DX)(),e=Gm({}),{accentContrast:n,coverImageColor:o,coverPageType:r}=t?.theme??{},c=r===M.BL.IMAGE&&o===M.df.LIGHT||n===M.Em.DARK||r===M.BL.WHITE||r===M.BL.ACCENT&&!(0,ft.Wn)(t?.color);return(0,s.jsxs)("div",{className:e,children:[(0,s.jsx)(r5,{className:Gm("title").toString(),hasDarkText:c}),(0,s.jsx)(o5,{className:Gm("authors").toString(),hasDarkText:c})]})}const BG=jt("OnePageCoverInfo",DG),HG=jt("CoverSVG"),Km=ne("one-page-lesson-header"),FG=ne("page"),zG=Km("main").mix("lesson-header__main"),VG=Km("container").mix(FG("header-container")),a5=()=>{const t=Rt(),{alpha:e,media:n}=qr("coverImage"),o=t?.theme?.coverImageColor,r=t?.coverPageType===M.BL.WHITE,a=t?.coverPageType===M.BL.IMAGE,i=t?.coverPageType===M.BL.ACCENT,c=o===M.df.LIGHT,u=Km({accent:i,image:a,white:r,"overlay-light":a&&c}),d=a?(0,Pt.b9)({alpha:e,color:o,media:n}):{};return(0,s.jsxs)("header",{className:u,style:d,children:[(0,s.jsx)("div",{className:VG,children:(0,s.jsx)("div",{className:zG,children:(0,s.jsx)(BG,{})})}),(0,s.jsx)(HG,{coverPageType:"LEFT"})]})},_m=(0,h.createContext)({visibleLessons:[],registerLesson:()=>{},unregisterLesson:()=>{}});_m.displayName="LessonContentContext";function UG({children:t}){const[e,n]=(0,h.useState)(()=>[]),o=(0,h.useCallback)(i=>{n(c=>c.concat(i))},[]),r=(0,h.useCallback)(i=>{n(c=>c.filter(u=>u!==i))},[]),a=(0,h.useMemo)(()=>({visibleLessons:e,registerLesson:o,unregisterLesson:r}),[e,o,r]);return(0,s.jsx)(_m.Provider,{value:a,children:t})}function $G(){return(0,h.useContext)(_m)}const{LARGE:WG,SMALL:GG}=M.OX,{ACCENT:KG,BLACK:_G,COLOR:i5,DARK:QG,GRAY:ZG,IMAGE:l5,LIGHT:YG,TINT:XG}=M.xj,JG=ne("lesson-header-wrap");function qG({didNavigate:t,handleNavigate:e,handleStorylineFullscreen:n,isMobileHeader:o,isProgressSummary:r,lessonProgress:a,navigateDirection:i,onNavigateTransitionEnd:c,onPageReady:u,previewType:d,ref:m,registerLesson:p,unregisterLesson:f,visibleLessons:g}){const v=(0,h.useRef)(null),C=(0,h.useRef)(0),x=(0,h.useRef)(!1),L=(0,nt.gY)(),y=(0,ie.g)(),E=ar(),b=(0,xe.up)(),S=(0,xe.vU)(),{partnerContent:T}=(0,xe.qm)(),N=X1(),j=E?.theme?.themeId,[R,O]=(0,h.useState)(!1),P=y.mode||"",A=y.id,F=r?Fu:E?.lessons?.[a?.index??null]??{},w=r?null:Ha({course:E,lesson:F}),D=r?0:Nc({course:E,lesson:F}),V=Fa(E),_=(0,h.useCallback)((Yt,Vs)=>{const Ea=i(),Br=v.current;if(!Br){Vs();return}const np=`page ${Ea}-${Yt}`,l0=()=>{Yt==="enter"?Br.className=`page ${Ea}-complete`:Br.className="page",t5.removeEventListeners(Br,l0),window.dispatchEvent(new CustomEvent(wf)),c(),Vs()};Br.className=np,t5.addEventListeners(Br,l0)},[i,c]);(0,h.useImperativeHandle)(m,()=>({componentWillEnter(Yt){_("enter",Yt)},componentDidEnter(){O(!0)},componentWillExit(Yt){const Vs=document.getElementById("page-wrap"),Ea=Vs?.scrollTop??0;Vs&&(Vs.scrollTop=0),C.current=Ea,_("leave",Yt),window.dispatchEvent(new CustomEvent(Pf)),v.current&&(v.current.scrollTop=C.current)},componentDidExit(){}}),[_]),(0,h.useEffect)(()=>(O(!0),r||((0,Je.no)(A),(0,W.JD)((0,WP.B)(A))),p(A),()=>{f(A)}),[]),(0,h.useEffect)(()=>{t&&!x.current&&R&&u(),x.current=R},[t,R,u]);const ee=(0,h.useMemo)(()=>{const{theme:Yt}=E,Vs=Yt?.customColorLessonHeaderContrast,Ea=Yt?.lessonHeaderColor,Br=(0,ft.xD)(Ea),np=!(0,ft.Wn)(Ea),l0=Vs===M.Em.DARK||Vs===M.Em.AUTO&&Br===M.Em.DARK;return!Vs&&np||l0?lt.S6.DARK:lt.S6.LIGHT},[E]),q=(Yt,Vs)=>{if(r)return(0,s.jsx)(P6,{...Vs,course:E,courseProgress:b,labels:S,lessons:E.lessons,sessionPreferences:N});switch(Yt){case"blocks":return(0,s.jsx)(x$,{...Vs,animateBlockEntrance:E.animateBlockEntrance,handleNavigate:e,isFirstLesson:dr({course:E,lesson:F})});case"quiz":return(0,s.jsx)(jG,{...Vs,course:E});default:return null}},{author:fe,selectedAuthorId:ye,type:Ie}=F,{prefersKeyboardNavigation:we}=N,{authors:Ve,color:Me,enableVideoPlaybackSpeed:Ae,id:me,lessonHeaderImage:ue,lessonHeaderSize:Be,lessonHeaderStyle:Re,publishedAt:We,showAuthor:He,showLessonCount:mt,showNavigationButtons:ht,tenantId:yt,theme:Zt}=E,{hideLessonHeaders:Ht,lessonHeaderColor:Wn,lessonHeaderImageColor:co,navigationType:Pr}=Zt,wr=T?.content??[],Mr=wr.length>0,Or=Mr?wr.find(Yt=>Yt.id===ye):{},Lc=Mr?Or?.data?.authors:void 0,{avatar:Ki,authorName:_i}=AG({authors:Ve,lessonAuthor:fe,courseAuthor:E.author,selectedAuthorId:ye}),Ec=Gr({course:E,courseProgress:b}),Dr=r?{}:Da({course:E,courseProgress:b,lesson:w,restrictingQuiz:Ec}),uo=rg(F),La=(0,Es.c3)(E)?a5:wG,Sc=(0,s.jsx)(La,{authorName:_i,avatar:Ki,color:Me,course:E,description:F.description,labels:S,lessonHeaderColor:Wn,lessonHeaderImage:ue,lessonHeaderImageColor:co,lessonHeaderSize:Be,lessonHeaderStyle:Re,lessonNumber:D,partnerContentAuthors:Lc,showAuthor:He,showLessonCount:mt,themeId:j,title:F.title,totalLessons:V,children:!r&&(0,s.jsx)(w6,{id:F.id,items:F.items,lessonProgress:a,navigationType:Pr,scrollPosition:0,type:F.type})}),Wt=`image-${(co??M.df.DARK).toLowerCase()}`,mn=JG({[Wt]:Re===l5,accent:Re===KG,black:Re===_G,collapsed:Ht,custom:Re===i5,dark:Re===QG,gray:Re===ZG,image:Re===l5,large:Be===WG&&!o,light:Re===YG,mobile:o,small:Be===GG&&!o,tint:Re===XG}),wt=Re===i5?{"--lesson-header-contrast-color":ee,"--color-background":Wn}:{},Os={authorName:_i,avatar:Ki,color:Me,courseId:me,courseTitle:L(E.title),data:F,enableVideoPlaybackSpeed:Ae,handleStorylineFullscreen:n,hideLessonHeaders:Ht,isLesson:(0,Pt.GG)(F),labels:S,lessonHeader:Sc,lessonHeaderImage:ue,lessonHeaderWrapClasses:mn,lessonHeaderWrapStyles:wt,lessonHasContinues:uo,lessonNumber:D,lessonProgress:a,loadMedia:A===g[0],mode:P,nextLesson:w?.id??null,nextLessonRestrictions:Dr,partnerContent:wr,publishedAt:We,prefersKeyboardNavigation:we,previewType:d,scrollPosition:0,showAuthor:He,showLessonCount:mt,showNavigationButtons:ht,tenantId:yt,totalLessons:V};return(0,s.jsx)(la,{title:Wl(`${L(F.title)} - ${Os.courseTitle}`),children:(0,s.jsx)("div",{"data-lesson-id":A,ref:v,children:q(Ie,Os)})})}function eK(t){const{visibleLessons:e,registerLesson:n,unregisterLesson:o}=$G();return(0,s.jsx)(qG,{...t,registerLesson:n,unregisterLesson:o,visibleLessons:e})}const tK=eK;var c5=l(93818);const Zu=ne("lesson-nav"),sK=({allowTooltip:t,lessonNameLabel:e,lessonPrepositionLabel:n,nextLesson:o,nextLessonNumber:r,onFocus:a,restrictionData:i,restrictionType:c,totalLessons:u},d)=>{const m=o?.id,p=ta(),f=ni(p),v=(0,Pt.GG)(o)&&m,C=(0,nt.QQ)(o?.title)||"",x=v?`${r} ${n} ${u} \u2014 ${C}`:C,L=f&&v?`${e} ${r}`:x;return(0,s.jsx)(oi,{allowTooltip:t,direction:"next",navLessonId:m,onFocus:a,ref:d,restrictionData:i,restrictionType:c,children:f?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:Zu("link-text"),children:L}),(0,s.jsx)(kd,{className:Zu("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(kd,{className:Zu("link-icon")}),(0,s.jsx)("span",{className:Zu("link-text"),children:L})]})})},nK=jt("LessonNavNext",(0,h.forwardRef)(sK));function oK(){const t=ip(),e=eC(),n=De();return(o,{lessonId:r,currentLocale:a})=>{const i=Bt(o),c=Pc(r,o),u=gs(r,o)||{},d=c?.type==="quiz",{skipLessonsIfPassed:m,skipToLessonId:p}=c.settings||{},f=u?.passed;let g,v;if(d&&m&&p&&f){g=Pc(p,o)||{};const S=(Bt(o)?.lessonsOnly||[]).filter(T=>T.type!=="quiz"||T.settings?.asLesson||T.settings?.asLesson===void 0).findIndex(T=>T.id===p);v=S!==-1?S+1:null}else g=t(r,o)||{},v=e(r,o);const C=(0,ot.selectLabelsMap)(a,o),x=n(g.id,o),L=u0(o);return{buttonNavigationStyle:i.buttonNavigationStyle,lessonNameLabel:C.lessonName,lessonPrepositionLabel:C.lessonPreposition,nextLesson:g,nextLessonNumber:v,restrictionData:x?.data,restrictionType:x?.type,totalLessons:L}}}const d5=Xe()(rt.wZ,(0,W.Ng)(oK,null,null,{forwardRef:!0}))(nK),Yu=ne("lesson-nav"),rK=({allowTooltip:t,courseFinishLabel:e,onFocus:n,restrictionData:o,restrictionType:r},a)=>{const i=ta(),c=ni(i);return(0,s.jsx)(oi,{allowTooltip:t,direction:"next",finish:!0,onFocus:n,ref:a,restrictionData:o,restrictionType:r,children:c?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:Yu("link-text"),children:e}),(0,s.jsx)(kd,{className:Yu("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(kd,{className:Yu("link-icon")}),(0,s.jsx)("span",{className:Yu("link-text"),children:e})]})})},aK=jt("LessonNavFinish",(0,h.forwardRef)(rK));function iK(t,e){const{currentLocale:n}=e,o=Bt(t),r=(0,ot.selectLabelsMap)(n,t);return{buttonNavigationStyle:o.buttonNavigationStyle,courseFinishLabel:r?.courseFinish||"Finish"}}const Qm=Xe()(rt.wZ,(0,W.Ng)(iK))(aK),Xu=ne("lesson-nav"),lK=({allowTooltip:t,className:e,courseHomeLabel:n,lessonNameLabel:o,lessonPrepositionLabel:r,onFocus:a,previousLesson:i,previousLessonNumber:c,totalLessons:u},d)=>{const m=i?.id,p=ta(),f=ni(p),v=(0,Pt.GG)(i)&&m,C=Xt(i?.title)||n,x=v?`${c} ${r} ${u} \u2014 ${C}`:C,L=f&&v?`${o} ${c}`:x;return(0,s.jsx)(oi,{allowTooltip:t,className:e,direction:"previous",navLessonId:m,onFocus:a,ref:d,children:f?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:Xu("link-text"),children:L}),(0,s.jsx)(Cf,{className:Xu("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Cf,{className:Xu("link-icon")}),(0,s.jsx)("span",{className:Xu("link-text"),children:L})]})})},cK=jt("LessonNavPrevious",h.forwardRef(lK));function dK(){const t=ap(),e=tC();return(n,{lessonId:o,currentLocale:r})=>{const a=Bt(n),i=t(o,n)||{},c=e(o,n),u=(0,ot.selectLabelsMap)(r,n),d=u0(n);return{buttonNavigationStyle:a.buttonNavigationStyle,courseHomeLabel:u.courseHome,lessonNameLabel:u.lessonName,lessonPrepositionLabel:u.lessonPreposition,previousLesson:i,previousLessonNumber:c,totalLessons:d}}}const Zm=Xe()(rt.wZ,(0,W.Ng)(dK,null,null,{forwardRef:!0}))(cK),uK={threshold:0},Ju=(t,e)=>{const[n,o]=(0,h.useState)(!1),r=(0,h.useRef)(null);return(0,h.useEffect)(()=>{r.current&&r.current.disconnect(),r.current=new IntersectionObserver(([i])=>{o(i.isIntersecting)},e||uK);const{current:a}=r;return t.current?a.observe(t.current):o(!1),()=>{a.disconnect()}},[t,e]),n},u5=ne("navButtonsFull"),hK=()=>{const[t,e]=(0,h.useState)(!1);return(0,es.A)(Pf,()=>e(!0)),(0,es.A)(wf,()=>e(!1)),t},mK=({isVisible:t})=>{(0,c5.A)(()=>window.dispatchEvent(new CustomEvent(_1))),(0,h.useEffect)(()=>{const e=t?Mf:_1;window.dispatchEvent(new CustomEvent(e))},[t])},pK=({isVisible:t})=>{(0,c5.A)(()=>window.dispatchEvent(new CustomEvent(Q1))),(0,h.useEffect)(()=>{const e=t?Of:Q1;window.dispatchEvent(new CustomEvent(e))},[t])},fK=({children:t,hideNavToHome:e,navNextEnabled:n,navFinishEnabled:o})=>{const r=(0,h.useRef)(null),a=(0,h.useRef)(null),i=(0,h.createRef)(null),c=(0,h.useRef)(),u=oo(),d=Ju(a),m=Ju(i),p=hK(),f=(0,h.useCallback)(()=>{r.current?.scrollTo({top:0,behavior:"smooth"})},[]),g=(0,h.useCallback)(()=>{const C=r.current?.scrollHeight;r.current?.scrollTo({top:C,behavior:"smooth"})},[]);(0,es.A)(Md,f),(0,es.A)(Od,g),mK({isVisible:d}),pK({isVisible:m}),(0,h.useEffect)(()=>{if(!p&&a.current){const x=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:x})}},[p,a]);const v=u5("navPrev",{visible:d,hide:p});return(0,s.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:r,children:(0,s.jsxs)("div",{className:u5(),children:[!e&&(0,s.jsx)("div",{className:v,children:(0,s.jsx)(Zm,{lessonId:u,ref:a})}),t,n&&(0,s.jsx)(d5,{lessonId:u,ref:i}),o&&(0,s.jsx)(Qm,{lessonId:u,ref:c})]})})},gc=ne("navButtonsFloating"),h5=({transitionIn:t,buttonType:e,children:n})=>{const o=(0,h.useRef)(),r={entered:gc(e,{entered:!0}),exiting:gc(e,{exiting:!0}),exited:gc(e,{exited:!0})};return(0,s.jsx)(Cs.eB,{in:t,nodeRef:o,timeout:250,children:a=>(0,s.jsx)("div",{className:r[a],ref:o,children:n})})},vK=250,m5={threshold:.2},gK=({topRef:t,bottomRef:e,pageWrapRef:n,currentLessonId:o})=>{const r=Ju(t,m5),a=Ju(e,m5),[i,c]=(0,h.useState)(!1),[u,d]=(0,h.useState)(!1),[m,p]=(0,h.useState)(!1),f=(0,h.useCallback)(()=>{n.current?.scrollTo({top:2,behavior:"smooth"})},[n]);return(0,au.A)(f),(0,h.useEffect)(()=>{c(!0);const g=setTimeout(()=>{f(),c(!1)},vK);return()=>{clearTimeout(g)}},[o,f]),(0,h.useEffect)(()=>{d(a&&!i),p(r&&!i)},[a,r,i]),{showPrev:m,showNext:u}},CK=({children:t,isCurrentLessonQuiz:e,navNextEnabled:n,hideNavToHome:o,navFinishEnabled:r})=>{const a=(0,h.useRef)(),i=(0,h.useRef)(),c=(0,h.useRef)(),u=(0,h.useRef)(),d=(0,h.useRef)(),m=(0,h.useRef)(),p=oo(),{showNext:f,showPrev:g}=gK({topRef:d,bottomRef:m,pageWrapRef:a,currentLessonId:p}),v=(0,h.useCallback)(()=>{a.current?.scrollTo({top:0,behavior:"smooth"})},[]),C=(0,h.useCallback)(()=>{const x=a.current?.scrollHeight;a.current?.scrollTo({top:x,behavior:"smooth"})},[]);return(0,es.A)(Md,v),(0,es.A)(Od,C),(0,h.useEffect)(()=>{e&&(n||r)&&C()},[e,n,r,C]),(0,s.jsxs)("div",{className:"page-wrap",id:"page-wrap",ref:a,children:[(0,s.jsx)("div",{className:gc("top"),ref:d}),!o&&(0,s.jsx)(h5,{buttonType:"prev",transitionIn:g,children:(0,s.jsx)(Zm,{lessonId:p,onFocus:v,ref:i})}),t,(0,s.jsx)(h5,{buttonType:"next",transitionIn:f&&(n||r),children:n?(0,s.jsx)(d5,{lessonId:p,onFocus:C,ref:c}):r?(0,s.jsx)(Qm,{lessonId:p,onFocus:C,ref:u}):null}),(0,s.jsx)("div",{className:gc("bottom"),ref:m})]})};var qu=l(26372);class xK extends qu.Component{nodeRef=qu.createRef();constructor(e){super(e),this.handleTransition=this.handleTransition.bind(this),this.onEnter=this.onEnter.bind(this),this.onEntered=this.onEntered.bind(this),this.onExit=this.onExit.bind(this),this.onExited=this.onExited.bind(this)}handleTransition(e){const n=this.transitionState;n==="entering"?this.onEnter(e):n==="exiting"&&this.onExit(e)}onEnter(e){const n=this.nodeRef.current;n&&n.componentWillEnter?n.componentWillEnter(e):e()}onEntered(){const e=this.nodeRef.current;e&&e.componentDidEnter&&e.componentDidEnter()}onExit(e){const n=this.nodeRef.current;n&&n.componentWillExit?n.componentWillExit(e):e()}onExited(){const e=this.nodeRef.current;e&&e.componentDidExit&&e.componentDidExit()}render(){const{children:e}=this.props;return(0,s.jsx)(Cs.eB,{addEndListener:this.handleTransition,nodeRef:this.nodeRef,onEntered:this.onEntered,onExited:this.onExited,unmountOnExit:!0,...this.props,children:n=>(this.transitionState=n,e&&qu.cloneElement(qu.Children.only(e),{ref:this.nodeRef}))})}}const{FULL:bK,FLOATING:p5}=M.AY,yK=ne("lessonNavigation"),LK=({children:t})=>{const e=(0,h.createRef)();return(0,s.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:e,children:t})},EK=(t,e)=>t+(e?.drawCount??1),SK=(t=[])=>t.reduce(EK,0),TK=({children:t,isPreviewLesson:e})=>{const{buttonNavigationStyle:n}=(0,xe.DX)(),{pathname:o}=(0,ie.zy)(),r=(0,xe.DX)(),{showNavigationButtons:a,lessonsOnly:i,lmsOptions:c={}}=r,u=(0,h.useRef)(),d=Ss(480),m=oo(),p=nn(m)||{},f=yn(m)||{},[g,v]=(0,h.useState)(n),C=i[0].id,x=r?.exportSettings?.webExportSettings,L=!Po.isInstantLink&&(c?.disableCoverPage||x?.disableCoverPage)&&C===m,y=!Po.isInstantLink&&c?.disableCoverPage,E=c?.disableCoverPage?L:y;(0,h.useEffect)(()=>{n!==g&&(v(n),window.dispatchEvent(new CustomEvent(Md)))},[n,g]);const b=rg(p)||(0,qt.Sg)(p)?f.isComplete:!0,S=f.activeIndex===SK(p.items)+1,T=p.type==="quiz"&&!S||p.settings?.continueType==="continue",N=p&&Ha({course:r,lesson:p}),j=m==="progress-summary",R=window.isPublicShare,O=N&&!e&&b&&!T&&!j,P=!N&&b&&$e.BI&&!R&&!j&&!e&&!(0,Je.Hm)()&&!T,A=yK("wrapper",{full:n===bK||d,floating:n===p5&&!d}),w=!a||e?LK:n===p5&&!d?CK:fK;return(0,h.useEffect)(()=>{const D=document.querySelector(".page__content");D&&D.classList.add("page__content--preview-nav")},[w]),(0,s.jsx)("div",{className:A,ref:u,children:(0,s.jsx)(w,{hideNavToHome:E,navFinishEnabled:P,navNextEnabled:O,children:(0,s.jsx)(UG,{children:(0,s.jsx)(Cs.F,{component:"div",children:(0,s.jsx)(xK,{children:t},o)})})})})};var IK=l(94141),NK=l.n(IK),jK=l(25512),kK=l.n(jK),AK=l(23581),f5=l(44128);function RK(t){return t?.slidesUI?.slideDirection??lt.fY.UP}function PK(){return(0,W.d4)(RK)}function wK(t){return t?.slidesUI?.exitingSlideOffset??0}function MK(){return(0,W.d4)(wK)}const xa=ne("blocks-lesson-slide"),v5="#fff",OK=["image full","image text overlay","quote background"],g5=({className:t})=>{const e=En()||v5;return(0,s.jsx)("div",{className:t,style:{background:e}})},DK=({block:t})=>(0,s.jsx)(sh,{block:t,children:(0,s.jsx)(g5,{className:xa("background-top")})}),BK=({block:t})=>(0,s.jsx)(sh,{block:t,children:(0,s.jsx)(g5,{className:xa("background-bottom")})});function HK(t,e){const n=e.blocks?.length??1,o=n==1,r=n==2,a=e.blocks?.[0],i=e.blocks?.find(O=>O.settings.backgroundType===M.xj.IMAGE),c=t.settings.backgroundType===M.xj.IMAGE,u=t.id===a?.id,d=t.family==="multimedia",m=t.family==="mondrian",p=t.family==="buttons",g=t.variant==="accordion"&&document.querySelector(`[data-block-id="${t.id}"] [data-accordion-status="closed"]`)!=null,v=document.querySelector(`[data-block-id="${t.id}"] [data-block-text]`)?.clientHeight>300,C=h$(t.family,t.variant)||v,x=document.querySelector("[data-continue-sr]")!=null,L=!C&&r&&x&&document.querySelector("[data-continue-btn]")==null,y=o&&c&&!L,E=c&&!L&&!C,b=d||p||m;return xa("connected-blocks",{"min-half-height":i&&(r&&!L&&!C||g||E),"full-height":L||y,"top-block":u&&!o&&!C&&!b,"top-block-centered":u&&!o&&b})}const FK=({hasTransitioned:t,onContinue:e,prefersKeyboardNavigation:n,previewType:o,slide:r,transitionState:a},i)=>{const c=Rt(),u=oo(),d=(0,ot.useLabelsMap)(),m=vh(),p=yn(u),f=!0,{animateBlockEntrance:g,color:v,id:C,title:x,enableVideoPlaybackSpeed:L,publishedAt:y,tenantId:E}=c;(0,h.useImperativeHandle)(i,()=>b.current);const b=(0,h.useRef)(),S=PK(),T=MK(),N=`${a}-${S}`,j=xa("wrapper",{exiting:a==="exiting"}),{blocks:R,lastBlock:O}=r,P=(0,h.useCallback)(Ae=>{Ae===O?.id&&e()},[O,e]),A=xa("inner",{[N]:!0}),F=xa("lesson",{slides:f,"touch-preview":Xl(o)}).toString(),w=r.blocks.length==1,{settings:D,type:V,variant:_}=r.blocks?.[0]??{},ee=w&&D.backgroundType===M.xj.IMAGE,q=w&&!ee&&Cr()(`${V} ${_}`,OK),fe=q||ee,ye=r.blocks?.[0],Ie=r.blocks?.[r.blocks.length-1],we=ye?.settings?.backgroundType!==M.xj.IMAGE,Ve=Ie?.settings?.backgroundType!==M.xj.IMAGE,Me=xa("full-width-image",{legacy:q,background:ee});return(0,s.jsx)("div",{className:j,style:{top:T},children:(0,s.jsxs)("div",{className:A,children:[we&&(0,s.jsx)(DK,{block:ye}),Ve&&(0,s.jsx)(BK,{block:Ie}),(0,s.jsx)("div",{className:F,ref:b,children:R.map((Ae,me)=>{const ue=w?!1:S6({blocks:r.blocks,lessonProgress:p,currentBlockIndex:me}),Be=fe?Me:HK(Ae,r);return(0,s.jsx)(L6,{animateBlockEntrance:g,block:Ae,className:Be,color:v,courseId:C,courseTitle:x,defaultBackgroundColor:v5,enableVideoPlaybackSpeed:L,hideBlock:ue,index:me,isFirstLesson:!0,isOnlyBlockInStep:w,labels:d,lessonId:u,lessonProgress:p,loadMedia:t,onContinue:P,partnerContent:m,prefersKeyboardNavigation:n,previewType:o,publishedAt:y,tenantId:E},Ae.blockId)})})]})})},zK=(0,h.forwardRef)(FK);var VK=l(99051),UK=l.n(VK);const C5=ne("blocks-slide-indicator-tooltip"),$K=({disabled:t,left:e,text:n,top:o,visible:r},a)=>{let i=(0,s.jsx)("span",{"aria-hidden":"true",children:n});return t&&(i=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ct,{classNameIcon:C5("icon"),name:"lock"}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"(locked content)"})]})),(0,s.jsx)("div",{"aria-hidden":!r,className:C5("wrapper",{disabled:t,visible:r}),ref:a,role:"tooltip",style:{left:e,top:o},children:i})},x5=(0,h.forwardRef)($K);x5.propTypes={disabled:Ge().bool.isRequired,left:Ge().number,text:Ge().string.isRequired,top:Ge().number,visible:Ge().bool.isRequired};const WK=x5;function GK(t){const e=(0,h.useRef)();return e.current||=t(),e}const e0=ne("blocks-slide-indicator"),KK=({active:t,blockNavigationStyle:e,disabled:n,numberOfSlides:o,onKeyDown:r,onClick:a,slideIndex:i},c)=>{const{prefersKeyboardNavigation:u}=X1()??{},[d,m]=(0,h.useState)(!1),[p,f]=(0,h.useState)(),g=(0,h.useRef)(),v=(0,h.useRef)(),C=(0,h.useRef)(),x=e===M.Dw.NUMBERS,L=i+1,y=`${L} / ${o}`,E=t?`Step ${L} of ${o}, current step`:`Go to step ${L} of ${o}`,b=GK(()=>document.getElementById("portal")),S=(0,h.useCallback)(()=>{if(g.current&&v.current){const _=g.current.getBoundingClientRect(),ee=v.current.getBoundingClientRect(),q=_.left-ee.width-18,fe=Math.round(_.top-ee.height/2+_.height/2);f({left:q,top:fe})}},[]),T=(0,h.useCallback)(()=>{C.current=setTimeout(()=>{S(),m(!0)},300)},[S]),N=(0,h.useCallback)(()=>{clearTimeout(C.current),m(!1)},[]),j=(0,h.useCallback)(()=>{a(i)},[a,i]),R=(0,h.useCallback)(_=>{cn(_)&&m(!1),r(_)},[r]),O=(0,h.useCallback)(()=>{T()},[T]),P=(0,s.jsx)(WK,{disabled:n,left:p?.left,ref:v,text:y,top:p?.top,visible:d}),A=e0("button",{active:t,disabled:n,numbers:x}),F=e0("wrapper"),w=e0("circle",{active:t,disabled:n}),D=e0("number",{active:t,disabled:n}),V=x?(0,s.jsx)("span",{"aria-hidden":"true",className:D,children:L}):(0,s.jsx)(ct,{classNameIcon:w,name:"circle-solid"});return(0,s.jsxs)("div",{className:F,ref:c,children:[(0,s.jsx)("button",{"aria-current":t?"page":void 0,"aria-disabled":n,"aria-label":E+(n?" (unavailable until previous content is completed)":""),className:A,"data-control":"",onBlur:N,onClick:n?void 0:j,onFocus:u?O:void 0,onKeyDown:R,onMouseEnter:T,onMouseLeave:N,ref:g,type:"button",children:V}),(0,eo.createPortal)(P,b.current)]})},_K=(0,h.forwardRef)(KK),ba=ne("blocks-slide-controls"),b5=38,QK=8,ZK=t=>{const{activeSlideIndex:e,blockNavigationStyle:n,numberOfSlides:o,onGoToCover:r,onSlideClick:a,slideDisabledState:i,previewType:c}=t,u=(0,h.useRef)(),d=(0,h.useRef)(),[m,p]=(0,h.useState)(!1),[f,g]=(0,h.useState)(!1),v=(0,h.useCallback)(y=>{let E=!1,b=-1;if(oa(y)||br(y)){if(e-1>=0)b=e-1;else{r();return}E=!0}else ra(y)||yr(y)?(e+1<=o-1&&(b=e+1),E=!0):PL(y)?(b=0,E=!0):RL(y)&&(b=o-1,i[b]&&(b=i.findLastIndex(S=>!S)),E=!0);b>=0&&!i[b]&&a(b),E&&(y.stopPropagation(),y.preventDefault())},[e,o,r,a,i]);(0,h.useEffect)(()=>{const y=u.current,E=d.current;if(y&&E){const b=y.getBoundingClientRect(),S=E.getBoundingClientRect(),T=b.bottom-b5,N=b.top+b5;S.bottom>T?y.scrollBy({top:S.bottom-T,left:0,behavior:"smooth"}):S.top<N&&y.scrollBy({top:S.top-N,left:0,behavior:"smooth"})}},[e]);const C=(0,h.useCallback)(()=>{const y=u.current;y&&(p(y.scrollTop>QK),g(y.clientHeight+y.scrollTop<y.scrollHeight))},[]);(0,au.A)(C);const x=(0,h.useCallback)(Tu()(C,100),[C]);Dd(u.current,C);const L=ba({"touch-preview":Xl(c)});return(0,s.jsx)("div",{className:L,children:(0,s.jsx)("div",{className:ba("page-control-wrapper"),children:(0,s.jsxs)("div",{className:ba("page-control-inner-wrapper"),children:[(0,s.jsx)("div",{className:ba("page-control"),onScroll:x,ref:u,children:(0,s.jsx)("div",{className:ba("slide-dot-wrapper"),children:UK()(y=>{const E=y===e;return(0,s.jsx)(_K,{active:E,blockNavigationStyle:n,disabled:i[y],numberOfSlides:o,onClick:a,onKeyDown:v,ref:E?d:null,slideIndex:y},y)},o)})}),(0,s.jsx)("div",{className:ba("overlay-top",{visible:m})}),(0,s.jsx)("div",{className:ba("overlay-bottom",{visible:f})})]})})})},y5=100;var Cc=l(26372);const YK=50,XK=1e3,JK=({onSwipeDownHandler:t,onSwipeUpHandler:e,target:n,timeoutDuration:o=XK})=>{const[r,a]=Cc.useState(!1),i=Cc.useRef(void 0),c=Cc.useCallback(()=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>a(!1),o)},[o]),u=Cc.useCallback(d=>{const m=Math.abs(d.deltaY);if(r)m<YK?(i.current&&clearTimeout(i.current),a(!1)):c();else if(m>y5){const p=d.deltaY>0?t:e;a(!0),c(),p()}},[c,r,t,e]);Cc.useEffect(()=>{if(!(!n||!e||!t))return n.addEventListener("wheel",u,{passive:!0}),()=>{i.current&&clearTimeout(i.current),n?.removeEventListener?.("wheel",u,{passive:!0})}},[t,e,u,n])};var ya=l(69321);const $n=ne("lesson-one-page-slides"),qK=ne("page-wrap"),L5=100;function E5(t){if(t==null)return!1;const e=t.tagName.toLowerCase(),n=t.getAttribute("type"),o=t.getAttribute("role"),r=t.tabIndex,a=e==="button"||["div","span"].includes(e)&&(o==="button"||r===0),i=e==="input"&&["radio","text"].includes(n)||e==="textarea"||o==="radio",c=["audio","video"].includes(e),u=o==="tab",d=document.querySelector(".quiz-card__interactive")?.contains?.(t)??!1;return a||i||c||u||d}const e_=t=>(e,n,o)=>E6(e,o.slice(0,-1),t),t_=(t,e)=>({disabled:n,slides:o},r)=>{const a=hs()(fs()(d=>t[d.id]),Mn()(d=>Yo()(d,t[d.id])))(r),i=r[r.length-1],c=n||c$(a)||d$(a,e),u={blocks:a,lastBlock:i,disabled:n};return{disabled:c,slides:NK()(u,o)}},t0=t=>{let e=!1,n=!1;if(t){const{clientHeight:o,scrollHeight:r,scrollTop:a}=t,i=Math.max(0,a),c=r-i;e=c===r,n=c-5<=o}return{isAtTop:e,isAtBottom:n}},s_=/,? +/,n_=[],o_=({lessonProgress:t,prefersKeyboardNavigation:e,previewType:n},o)=>{(0,h.useImperativeHandle)(o,Function.prototype,[]);const{announcePolite:r,clearAnnouncements:a}=bt(),i=(0,h.useRef)(),c=(0,h.useRef)(),u=(0,h.useRef)(),d=(0,h.useRef)(),m=(0,h.useRef)(),p=(0,h.useRef)(),f=(0,h.useRef)(),g=(0,h.useRef)(),v=(0,je.Z)(),C=(0,W.wA)(),[x,L]=(0,h.useState)(0),[y,E]=(0,h.useState)(!0),[b,S]=(0,h.useState)(!1),T=(0,tt.A)(y),N=(0,tt.A)(b),j=(0,h.useRef)(),R=dn(),O=R?.01:600,{lessons:P,...A}=(0,xe.DX)()||{},F=A?.theme?.blockNavigationStyle||M.Dw.DOTS,w=P[0],D=w?.items||n_,V=(0,h.useCallback)(()=>{const wt=u.current?.scrollHeight>u.current?.clientHeight,{isAtBottom:Os}=t0(u.current),Yt=wt&&!y&&!Os;Yt!=b&&S(Yt)},[b,y]);Dd(i.current,V),(0,h.useLayoutEffect)(V,[y]);const _=(0,h.useCallback)(()=>{u.current?.scrollTo({top:0})},[]),ee=(0,h.useMemo)(()=>(0,Qs.Ve)(Pm([],D,t).map(e_(t)),fs()(ag.A),kK()(gt()("blockId"))),[D,t]),q=(0,h.useCallback)(wt=>{const Os={disabled:!1,slides:[]},{slides:Yt}=Jd()(t_(ee,t),Os,wt);return Yt},[ee,t]),fe=(0,h.useMemo)(()=>(0,Qs.Ve)(D,JU,q),[D,q]),ye=(0,h.useMemo)(()=>L3()("disabled",fe),[fe]),Ie=fe.length,we=fe[x],Ve=Xl(n),Me=F!==M.Dw.NONE,Ae=x===Ie-1,me=t?.isComplete,ue=b||Ae?!me||!$e.BI||window.isPublicShare:ye[x+1],Be=!b&&!Ae,Re=Ae&&!$e.BI,We=(0,tt.A)(Re),He=b&&!Ae,mt=(0,h.useCallback)(bu()(V,100),[V]);(0,h.useEffect)(()=>{const wt=u.current;return wt?.addEventListener("scroll",mt,{passive:!0}),()=>wt?.removeEventListener("scroll",mt,{passive:!0})},[mt]),(0,h.useEffect)(()=>{document.activeElement===p.current?!N&&b?m.current?.focus({preventScroll:!0}):!We&&Re&&f.current?.focus({preventScroll:!0}):document.activeElement===m.current&&N&&!b&&p.current?.focus({preventScroll:!0})},[b,N,We,T,Re,y]),(0,AK.A)(()=>{rv(),j.current=setTimeout(()=>{E(!1),u.current?.focus?.()},O+L5)},()=>{clearTimeout(j.current)});const ht=(0,h.useCallback)(wt=>{const Os=i.current?.getBoundingClientRect()?.top??0;C((0,ya.ty)(Os)),L(wt),_()},[C,_]),yt=(0,h.useCallback)(()=>{y||(E(!0),Zo(()=>{v("/")},"lesson-to-one-page-cover-stepped"))},[v,y]),Zt=A?.exportSettings?.webExportSettings,Ht=!Po.isInstantLink&&(A?.lmsOptions?.disableCoverPage||Zt?.disableCoverPage),Wn=(0,h.useCallback)(Ht?()=>{C((0,ya.zP)(lt.fY.DOWN)),ht(0)}:yt,[Ht,ht,yt,C,ya.zP]),co=(0,h.useCallback)(()=>{y||(x>0?(C((0,ya.zP)(lt.fY.DOWN)),ht(x-1)):yt())},[ht,C,x,y,yt]),Pr=(0,h.useCallback)(()=>{y||(Ae&&$e.BI?v("/lessons/progress-summary"):(C((0,ya.zP)(lt.fY.UP)),ht(x+1)))},[ht,C,v,Ae,x,y]),wr=(0,h.useCallback)(()=>{(x<Ie-1||Ae&&$e.BI)&&Pr()},[Ae,x,Ie,Pr]),Mr=(0,h.useCallback)(()=>{const wt=u.current?.scrollTop??0,Os=u.current?.clientHeight??0,Yt=R?"instant":"smooth";u.current?.scrollTo({top:wt+Os,behavior:Yt})},[R]),Or=(0,h.useCallback)(()=>{Pr()},[Pr]),Lc=(0,h.useCallback)(()=>{Mr()},[Mr]),Ki=(0,h.useCallback)(wt=>{if(wt===x||y)return;const Os=wt<x?lt.fY.DOWN:lt.fY.UP;C((0,ya.zP)(Os)),ht(wt),queueMicrotask(()=>{d.current?.querySelectorAll("[data-control]")?.[wt]?.focus?.()})},[ht,C,x,y]),_i=(0,h.useCallback)(()=>E(!0),[]),Ec=(0,h.useCallback)(()=>{E(!1),setTimeout(()=>{if(c.current&&d.current?.contains?.(document.activeElement)){const wt=km()(c.current.innerText,{length:75,separator:s_});a(),r(`Content preview: ${wt}`)}else u.current?.focus?.()},0)},[r,a]),Dr=(0,h.useCallback)(()=>{if(Ve)return;const{isAtTop:wt}=t0(u.current);if(wt){x===0?Wn():co();return}},[Ve,co,x,Wn]),uo=(0,h.useCallback)(()=>{if(Ve||Ae&&!$e.BI||ue)return;const{isAtBottom:wt}=t0(u.current);if(wt){Or();return}},[Ae,ue,Ve,Or]),La=(0,h.useCallback)(()=>{const{isAtBottom:wt,isAtTop:Os}=t0(u.current),Yt=document.documentElement.clientWidth===window.innerWidth;return(wt||Os)&&Yt},[]),Sc=(0,h.useCallback)(wt=>{!d.current?.contains?.(document.activeElement)&&!E5(wt.target)&&Dr()},[Dr]),i0=(0,h.useCallback)(wt=>{!d.current?.contains?.(document.activeElement)&&!E5(wt.target)&&uo()},[uo]),Wt=(0,h.useCallback)(wt=>{const{itemId:Os}=wt.detail,Yt=D.findIndex(Vs=>Vs.id===Os);Yt===-1||Yt===x||(C((0,ya.zP)(Yt>x?lt.fY.UP:lt.fY.DOWN)),ht(Yt))},[ht,C,x,D]);(0,h.useEffect)(()=>(window.addEventListener($t,Wt),()=>{window.removeEventListener($t,Wt)})),(0,f5.A)("ArrowUp",nr(),Sc),(0,f5.A)("ArrowDown",nr(),i0),JK({target:u.current,onSwipeUpHandler:Dr,onSwipeDownHandler:uo,timeoutDuration:O+L5});const mn=$n("gradient",{visible:b});return(0,s.jsx)("div",{className:$n({}),children:(0,s.jsx)("div",{className:qK({transitioning:y}),id:"page-wrap",ref:u,tabIndex:"-1",children:(0,s.jsx)(fc,{type:A.type,children:(0,s.jsx)(Hi,{type:A.type,children:(0,s.jsx)(Fi,{children:(0,s.jsx)(la,{children:(0,s.jsxs)("div",{"data-lesson-id":w?.id,children:[(0,s.jsxs)("nav",{"aria-label":"Step navigation",className:$n("controls",{"touch-preview":Ve}),ref:d,children:[(0,s.jsxs)("button",{"aria-disabled":x===0&&Ht,"aria-hidden":x===0&&Ht,className:$n("prev-btn",{"touch-preview":Ve}),onClick:co,type:"button",children:[(0,s.jsx)(ct,{classNameIcon:$n("arrow-icon",{"touch-preview":Ve}),name:"arrow-up"}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"Previous"})]}),Me&&(0,s.jsx)(ZK,{activeSlideIndex:x,blockNavigationStyle:F,numberOfSlides:Ie,onGoToCover:yt,onSlideClick:Ki,previewType:n,slideDisabledState:ye}),(0,s.jsxs)("div",{className:$n("next-btns"),children:[(0,s.jsxs)("button",{"aria-disabled":!He,"aria-hidden":!He,className:$n("page-down-btn",{"touch-preview":Ve}),onClick:He?Lc:void 0,ref:m,tabIndex:He?void 0:-1,type:"button",children:[(0,s.jsx)(ct,{classNameIcon:$n("arrow-icon",{"touch-preview":Ve}),name:"arrow-down"}),(0,s.jsxs)("span",{className:"visually-hidden-always",children:["Scroll page down",!b&&(0,s.jsx)("span",{children:"(disabled because this is the bottom of the page)"}),Ae&&(0,s.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,s.jsxs)("button",{"aria-disabled":ue,"aria-hidden":!Be,className:$n("next-btn",{"touch-preview":Ve}),onClick:ue?void 0:Or,ref:p,tabIndex:Ae?-1:void 0,type:"button",children:[(0,s.jsx)(ct,{classNameIcon:$n("arrow-icon",{"touch-preview":Ve}),name:"arrow-down"}),(0,s.jsxs)("span",{className:"visually-hidden-always",children:["Go to next step",ue&&(0,s.jsx)("span",{children:"(disabled until content is completed)"}),Ae&&(0,s.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,s.jsxs)("button",{"aria-disabled":!Re,"aria-hidden":!Re,className:$n("restart-btn",{"touch-preview":Ve}),onClick:Re?Wn:void 0,ref:f,tabIndex:Ae?void 0:-1,type:"button",children:[(0,s.jsx)(ct,{classNameIcon:$n("restart-icon",{"touch-preview":Ve}),name:"arrow-rotate-left"}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"Restart"})]})]})]}),(0,s.jsxs)(su,{onShouldRecognizeGesture:La,onSwipeDown:Dr,onSwipeUp:uo,children:[(0,s.jsx)("main",{"aria-describedby":"step-counter",ref:c,tabIndex:"0",children:(0,s.jsx)(Cs.F,{children:(0,s.jsx)(Cs.eB,{mountOnEnter:!0,nodeRef:g,onExited:Ec,onExiting:_i,timeout:O,unmountOnExit:!0,children:wt=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"visually-hidden-always",id:"step-counter",ref:g,children:`Step ${x+1} of ${Ie}`}),(0,s.jsx)(zK,{hasTransitioned:!y,onContinue:wr,prefersKeyboardNavigation:e,previewType:n,ref:i,slide:we,transitionState:wt})]})},x)})}),(0,s.jsx)("div",{className:mn})]})]})})})})})})})},r_=(0,h.forwardRef)(o_),S5=ne("blocks-lesson-restart-button"),a_=({className:t,onClick:e})=>{const n=S5.mix(t);return(0,s.jsx)("button",{className:n,onClick:e,type:"button",children:(0,s.jsx)(ct,{classNameIcon:S5("icon"),name:"arrow-rotate-left"})})},i_=ne("lesson-one-page-scroll"),l_=({previewType:t,prefersKeyboardNavigation:e,lessonProgress:n})=>{const o=(0,h.useRef)(),[r,a]=(0,h.useState)(!1),{lessons:i,...c}=(0,xe.DX)()||{},{lmsOptions:u={}}=c||{},d=(0,xe.d_)(),m=(0,ot.useLabelsMap)(),{match:p}=(0,ie.zy)(),f=(0,je.Z)(),g=i[0],v=g?.id,C=vh(),x=g?.items||[],L=n?.isComplete&&!$e.BI,y=n?.isComplete&&$e.BI,E=c?.exportSettings?.webExportSettings,b=!Po.isInstantLink&&(u?.disableCoverPage||E?.disableCoverPage),S=(0,h.useCallback)(()=>{r||(b?o.current?.scrollTo({top:0,behavior:dn()?"instant":"smooth"}):(a(!0),Zo(()=>{f("/")},"lesson-to-one-page-cover-continuous").finally(()=>{a(!1)})))},[f,b,r]);return(0,s.jsx)("div",{className:i_(),children:(0,s.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:o,children:(0,s.jsx)(fc,{type:c.type,children:(0,s.jsx)(Hi,{type:"blocks",children:(0,s.jsxs)(Hu,{children:[(0,s.jsx)(a5,{}),(0,s.jsx)(Fi,{children:(0,s.jsx)(la,{children:(0,s.jsxs)("div",{"data-lesson-id":g?.id,children:[(0,s.jsx)(N6,{animateBlockEntrance:c?.animateBlockEntrance,blocks:x,color:c?.color,courseId:c?.id,courseTitle:d,enableVideoPlaybackSpeed:c?.enableVideoPlaybackSpeed,isFirstLesson:!0,isNavTypeStepped:!1,labels:m,lessonId:v,lessonProgress:n,loadMedia:!0,match:p,partnerContent:C,prefersKeyboardNavigation:e,previewType:t,publishedAt:c?.publishedAt,tenantId:c?.tenantId,type:c?.type}),L&&(0,s.jsx)(a_,{onClick:S}),y&&(0,s.jsx)(Qm,{lessonId:v})]})})})]})})})})})},T5=ne("microlearning-progress-summary"),c_=ne("page-wrap"),d_=({course:t,courseProgress:e,isStepped:n,lesson:o})=>{const r=(0,h.useRef)(),a=(0,h.useRef)(),[i,c]=(0,h.useState)(!1),u=T5("content",{stepped:n,mounted:i}).toString();return(0,au.A)(()=>{const d=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:d}),c(!0)}),(0,s.jsxs)("div",{className:c_(),id:"page-wrap",ref:r,children:[(0,s.jsx)(Zm,{className:T5("previous").toString(),lessonId:o?.id,ref:a}),(0,s.jsx)(P6,{contentClassName:u,course:t,courseProgress:e})]})},u_=t=>{const{isProgressSummary:e,courseProgress:n,lessonProgress:o,prefersKeyboardNavigation:r,previewType:a}=t,i=Rt(),c=i?.theme?.blockNavigationType===M.HC.STEPPED;return e?(0,s.jsx)(d_,{course:i,courseProgress:n,isStepped:c}):c?(0,s.jsx)(r_,{lessonProgress:o,prefersKeyboardNavigation:r,previewType:a}):(0,s.jsx)(l_,{lessonProgress:o,prefersKeyboardNavigation:r,previewType:a})};var h_=l(26372);function I5(){const t=(0,W.wA)();return h_.useMemo(()=>({advanceQuizLessonToEnd:e=>t((0,bs.YC)(e)),submitQuizAnswer:e=>t((0,bs.kK)(e)),setQuizLessonTimeRemaining:e=>t((0,bs.hy)(e))}),[t])}var m_=l(26372);const N5=-1,p_="MULTIPLE_CHOICE";function f_({allowedRetries:t,currentRetries:e}){return t===N5?!1:e>=t}function v_({lesson:t,lessonProgress:e,getL10nRecursive:n}){const{advanceQuizLessonToEnd:o,submitQuizAnswer:r}=I5();return m_.useCallback(()=>{if(!t||!Wo(t))return;const a=t.settings??{},i=a.passToContinue??!1,c=Number(a.retryCount??N5),u=Object.values(e?.items??{}).filter(p=>!p.isComplete);if(u.length===0)return;const d=e.retryAttempts??0,m=f_({allowedRetries:c,currentRetries:d});u.forEach(p=>{const f=vG({lesson:t,question:p});if(!f)return;const g=f.type||p_,v=n({duration:{startTime:0,stopTime:0},id:t.id,isCorrect:!1,isUnfinished:!0,item:{id:String(f.id||""),title:String(f.title||""),type:g},itemProgress:p,retryAttempts:d,title:t.title});(0,Je.bb)(v),r({finalRetryAttempt:m,isCorrect:!1,itemId:p.id,lessonId:t.id,passToContinue:i})}),o(t.id)},[o,n,e,t,r])}var j5=l(26372);function g_({children:t}){const e=hr(),n=yo(),o=nn(n),r=yn(n),a=(0,nt.NB)(),{setQuizLessonTimeRemaining:i}=I5(),c=j5.useMemo(()=>r??{},[r]),u=v_({lesson:o,lessonProgress:c,getL10nRecursive:a}),d=j5.useMemo(()=>po(o)?o.settings:void 0,[o]),m=!!d?.timer,p=d?.timerDuration;return(0,s.jsx)(FW,{courseProgress:e,currentLessonId:n,handleExpiredQuiz:u,isTimedQuiz:m,setQuizLessonTimeRemaining:i,timerDuration:p,children:t})}const C_=t=>t?"mondrianTranscript"in t?t.mondrianTranscript:"tmp"in t&&t.tmp?.audio?.transcript||t.audio?.transcript:null;var x_=l(26372);const b_=960,Ym=ne("transcript-panel");function y_({enhancedLabels:t,lessonId:e,questionBankActiveIndex:n}){const o=(0,W.wA)(),{audioPlayerIdOpen:r,focusing:a,refocusTarget:i,transcriptMedia:c}=ql(),u=!!r,d=(0,h.useId)(),m=(0,W.d4)(ue=>e?gs(e,ue):null),f=e?.startsWith("question-bank-")?n:m?.type==="quiz"?m.activeIndex:void 0,g=Ss(b_),[v,C]=(0,h.useState)(0),[x,L]=(0,h.useState)(!1),[y,E]=(0,h.useState)(!1),b=(0,h.useRef)(!1),S=(0,h.useRef)(null),T=(0,h.useRef)(null),N=(0,h.useRef)(c),j=(0,h.useRef)(e),R=(0,h.useRef)(f),O=(0,xe.vU)()||t,P=(0,h.useRef)(null),A=(0,h.useRef)({panelHeight:0,startY:null,startHeight:null,startTime:null,velocity:null}),F=(0,h.useCallback)(ue=>{const Re=A.current.panelHeight,We=performance.now();E(!0);const He=mt=>{const ht=mt-We,yt=Math.min(ht/300,1),Zt=1-Math.pow(1-yt,3),Ht=Re+(ue-Re)*Zt;C(Ht),A.current.panelHeight=Ht,yt<1?requestAnimationFrame(He):(E(!1),L(!1),A.current={startY:null,startHeight:null,startTime:null,panelHeight:null,velocity:null})};requestAnimationFrame(He)},[L,E,C]),w=(0,h.useCallback)(ue=>{const{startTime:Be,startY:Re,startHeight:We}=A.current;if(!g||Re===null)return;const He=Re-(ue?.clientY??ue?.touches?.[0]?.clientY??0),mt=We+He;if(C(mt),A.current.panelHeight=mt,Be!==null){const ht=performance.now()-Be,yt=He/ht;A.current.velocity=yt}},[g]),D=(0,h.useCallback)(ue=>{const{velocity:Be}=A.current;if(!Be)return;Object.assign(A.current,{startY:null,startHeight:null,startTime:null}),L(!1);const Re=window.innerHeight*.66;let We;Math.abs(Be)>.5?We=Be>0?window.innerHeight:150:We=v>=Re?window.innerHeight:150,F(We),ue instanceof MouseEvent&&(window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",D))},[F,v,w]),V=(0,h.useCallback)(ue=>{!g||T.current.contains(ue.target)||S.current.contains(ue.target)||(Object.assign(A.current,{startY:ue?.clientY??ue?.touches?.[0]?.clientY??null,startHeight:P.current?.clientHeight??0,startTime:performance.now()}),L(!0),ue.nativeEvent instanceof MouseEvent&&(window.addEventListener("mousemove",w),window.addEventListener("mouseup",D)))},[w,D,g,L]);(0,h.useEffect)(()=>{let ue;const Be=()=>{P?.current?.style&&(P.current.style.transition="none",P.current.parentNode.querySelectorAll("div:not(.transcript-panel)").forEach(He=>{He.style.transition="none"}))},Re=()=>{clearTimeout(ue),ue=setTimeout(()=>{P?.current?.style&&(P.current.style.transition="",P.current.parentNode.querySelectorAll("div:not(.transcript-panel)").forEach(He=>{He.style.transition=""}))},200)};return window.addEventListener("resize",Be),window.addEventListener("resize",Re),()=>{window.removeEventListener("resize",Be),window.removeEventListener("resize",Re),clearTimeout(ue)}},[]),(0,h.useEffect)(()=>{!u&&b.current&&C(0),a&&u&&P.current&&(P.current.focus(),o(Lr({audioPlayerId:r,focusing:!1}))),b.current=u},[r,o,a,u]),(0,h.useEffect)(()=>{u&&c!==N.current&&(N.current=c)},[u,c]),(0,h.useEffect)(()=>{u&&j.current!==e&&o(Zl()),j.current=e},[e,u,o]),(0,h.useEffect)(()=>{u&&R.current!==f&&R.current!==void 0&&o(Zl()),R.current=f},[f,u,o]);const _={role:"button",tabIndex:0,onMouseDown:V,onTouchStart:V,onTouchEnd:D,onTouchMove:w},[ee,q]=x_.useState(!1),fe=(0,nt.QQ)(ee?N.current:c),ye=C_(fe);let Ie;u&&(Ie=Th(r));const we=(0,h.useCallback)(()=>{const ue=i??document.getElementById(Ev(r));return ue?(ue.focus(),!0):!1},[r,i]),Ve=(0,h.useCallback)(ue=>{ue.stopPropagation(),ue.preventDefault(),o(Zl()),we()},[o,we]),Me=(0,h.useCallback)(()=>{we()||T.current.focus()},[we]),Ae=(0,h.useCallback)(()=>{T.current.focus()},[]),me=(0,h.useCallback)(ue=>{r&&ue.key==="Escape"&&Ve(ue)},[r,Ve]);return(0,s.jsxs)(s.Fragment,{children:[u?(0,s.jsx)("div",{onFocus:Me,tabIndex:0}):null,(0,s.jsx)(Cs.B1,{classNames:"transcript-panel",in:u,nodeRef:P,onEnter:()=>q(!1),onEntered:()=>q(!1),onEntering:()=>q(!1),onExit:()=>q(!0),onExited:()=>q(!1),onExiting:()=>q(!0),timeout:300,unmountOnExit:!0,children:(0,s.jsxs)("section",{"aria-hidden":!u,"aria-labelledby":d,className:Q()(Ym({isOpen:u,isAnimatingMobileSwipe:y,isDragging:x})),id:Ie,onKeyDown:me,ref:P,style:g&&u?{height:`${v/10}rem`,minHeight:v>0?"33vh":void 0}:{},tabIndex:-1,children:[(0,s.jsxs)("header",{...g?_:{},children:[(0,s.jsx)("h3",{id:d,ref:S,children:O?.audioTranscript}),(0,s.jsx)(Mt.ArcButton,{"aria-label":O?.audioHideTranscript,className:Ym("close-button"),hierarchy:"tertiary",icon:(0,s.jsx)(ct,{name:"close"}),layout:"icon",onClick:Ve,ref:T})]}),(0,s.jsx)("section",{className:Ym("transcript-text",{"not-available":!ye}),children:ye||O?.audioNoTranscriptAvailable})]})}),u?(0,s.jsx)("div",{onFocus:Ae,tabIndex:0}):null]})}var xc=l(26372);const k5={FORWARD:"page-transition",BACK:"page-transition-back"},s0=({id:t,lessons:e})=>t==="progress-summary"?1/0:e.findIndex(n=>n.id===t),L_=t=>{window.parent.postMessage({type:"preview:lessonChange",data:t},"*")};function E_({currentLessonId:t,lessons:e,isProgressSummary:n}){const o=(0,je.Z)(),r=xc.useRef(!1),a=xc.useRef(t),i=xc.useCallback(()=>r.current?k5.FORWARD:k5.BACK,[]),c=xc.useCallback(u=>{const d=s0({id:u,lessons:e});if(n)r.current=!1;else if(u==="progress-summary")r.current=!0;else{const m=s0({id:t,lessons:e});r.current=m<d}o(`/lessons/${encodeURIComponent(u)}`)},[o,e,n,t]);return xc.useEffect(()=>{const u=s0({id:t,lessons:e}),d=s0({id:a.current,lessons:e});u!==d&&e.length>0&&(r.current=d<u),a.current=t,L_(t)},[t,e]),{getNavigateDirection:i,handleNavigate:c}}const Xm=({course:t,courseProgress:e,didNavigate:n,lessons:o=[],previewType:r,sessionPreferences:a})=>{const i=(0,ie.g)(),c=(0,ie.zy)(),u=$e.BI&&i.id==="progress-summary",[d]=(0,h.useState)(i.mode==="preview-lesson"),m=(0,h.useRef)(null),p=Ss(480),{getNavigateDirection:f,handleNavigate:g}=E_({currentLessonId:i.id,lessons:o,isProgressSummary:u}),v=(0,Es.c3)(t),C=(0,h.useCallback)(()=>{v||(t.theme?.hideLessonHeaders?document.querySelector("main"):document.querySelector("h1"))?.focus({preventScroll:!0})},[t,v]),x=Q()("lesson",{"lesson--preview":d}),L=yn(i.id),y=(0,h.useMemo)(()=>L??{},[L]),E=(0,h.useMemo)(()=>({didNavigate:n,handleNavigate:g,handleStorylineFullscreen:Qs.lQ,isMobileHeader:p,isProgressSummary:u,lessonProgress:y,navigateDirection:f,onNavigateTransitionEnd:Qs.lQ,onPageReady:C,previewType:r}),[n,f,C,g,p,u,y,r]);return(0,s.jsxs)(g_,{children:[(0,s.jsxs)("div",{className:"page-lesson-wrap",children:[!v&&(0,s.jsx)(AN,{}),(0,s.jsxs)("div",{className:"page-lesson",children:[(0,s.jsx)(gA,{mode:"readonly",children:(0,s.jsx)("div",{className:x,"data-lesson":!0,ref:m,children:(0,s.jsx)("div",{className:"lesson__content",children:(0,s.jsx)("div",{className:"page-view page-view--visible",children:(0,s.jsx)($P,{isPreviewLesson:d,children:v?(0,s.jsx)(u_,{courseProgress:e,isProgressSummary:u,lessonProgress:y,prefersKeyboardNavigation:a.prefersKeyboardNavigation,previewType:r}):(0,s.jsx)(TK,{isPreviewLesson:d,children:(0,s.jsx)(tK,{...E},c.pathname)})})})})})}),(0,s.jsx)(y_,{lessonId:String(e.currentLesson)})]})]}),(0,s.jsx)(Eh,{onClose:C})]})},S_=t=>{const{course:e}=t,{exportSettings:n,lmsOptions:o}=e,r=n?.webExportSettings,a=n?.exportType==="raw",i=n?.exportType==="lms",c=a&&r?.disableCoverPage,u=i&&o?.disableCoverPage,d=!Po.isInstantLink&&(c||u),m=e.lessonsOnly[0]?.id;return(0,s.jsxs)(ie.BV,{children:[(0,s.jsx)(ie.qh,{element:(0,s.jsx)(Xm,{...t}),path:"/lessons/:id"}),(0,s.jsx)(ie.qh,{element:(0,s.jsx)(Xm,{...t}),path:"/lessons/:id/:mode"}),d?(0,s.jsx)(ie.qh,{element:(0,s.jsx)(ie.C5,{replace:!0,to:(0,qt.p1)(m)}),index:!0}):(0,s.jsx)(ie.qh,{element:(0,s.jsx)(xv,{...t}),index:!0}),d?(0,s.jsx)(ie.qh,{element:(0,s.jsx)(ie.C5,{replace:!0,to:(0,qt.p1)(m)}),path:"/:mode"}):(0,s.jsx)(ie.qh,{element:(0,s.jsx)(xv,{...t}),path:"/:mode"})]})},Jm=ne("one-page-cover-info");function T_({htmlIdTitle:t}){const e=Ya("title");return(0,s.jsxs)("div",{className:Jm(),"data-change-path":e,children:[(0,s.jsx)(r5,{className:Jm("title").toString(),htmlId:t}),(0,s.jsx)(o5,{className:Jm("authors").toString()})]})}const I_=jt("OnePageCoverInfo",T_);function N_(t){const e=(0,q1.A)(({forwardedRef:o,...r})=>(0,s.jsx)(t,{...r,ref:o})),n=(0,h.forwardRef)((o,r)=>(0,s.jsx)(e,{...o,forwardedRef:r}));return n.displayName=`withRouterRef(${t.displayName||t.name})`,n}const n0=ne("one-page-cover"),j_=ne("cover");class k_ extends h.Component{constructor(e){super(e),this.refLink=(0,h.createRef)(),this.refMain=(0,h.createRef)(),this.transitioning=!1}componentDidMount(){rv(),this.focusMain(),document.addEventListener("keyup",this.onKeyUp),document.addEventListener("wheel",this.onWheel,{passive:!0})}componentDidEnter(){this.focusMain()}componentWillUnmount(){document.removeEventListener("keyup",this.onKeyUp),document.removeEventListener("wheel",this.onWheel,{passive:!0})}focusMain=()=>{this.refMain.current?.focus?.()};getLessonPath=()=>{const e=this.props.lesson?.id;return e?(0,qt.p1)(e):null};transitionToLessonContent=()=>{const e=this.getLessonPath();if(e!=null){const o=this.props.course?.theme?.blockNavigationType===M.HC.STEPPED?"one-page-cover-to-lesson-stepped":"one-page-cover-to-lesson-continuous";Zo(()=>{this.props.navigate(e)},o)}};onClickStartArea=e=>{!this.refLink.current?.contains?.(e.target)&&!this.transitioning&&(this.transitioning=!0,this.transitionToLessonContent())};onClickStartLink=e=>{e.preventDefault(),this.transitioning||(this.transitioning=!0,this.transitionToLessonContent())};onKeyUp=e=>{(e.key==="ArrowDown"||e.key==="ArrowRight")&&!this.transitioning&&(this.transitioning=!0,document.removeEventListener("keyup",this.onKeyUp),this.transitionToLessonContent())};onWheel=e=>{Xl(this.props.previewType)||this.transitioning||e.deltaY>y5&&(this.transitioning=!0,document.removeEventListener("wheel",this.onWheel,{passive:!0}),this.transitionToLessonContent())};render(){const{props:{course:e}}=this,n=e?.coverPageType===M.BL.WHITE,o=e?.coverPageType===M.BL.IMAGE,r=e?.coverPageType===M.BL.ACCENT,a=e?.theme?.blockNavigationType===M.HC.STEPPED,i=e?.theme?.coverImageColor??M.df.DARK,c="title",d=`overlay-${i?.toLowerCase()}`,m=n0("wrapper",{[d]:o,accent:r,image:o,white:n}).mix(j_("header-content"));return(0,s.jsxs)(su,{onSwipeUp:this.transitionToLessonContent,children:[(0,s.jsxs)("main",{className:m,ref:this.refMain,tabIndex:"-1",children:[(0,s.jsx)(I_,{htmlIdTitle:c}),a&&(0,s.jsx)("div",{className:"visually-hidden-always",children:"To quickly navigate between steps, use the up and down arrow keys or the step navigation found on subsequent steps."}),(0,s.jsx)("div",{className:n0("start-wrapper"),onClick:this.onClickStartArea,children:(0,s.jsx)(Ln,{"aria-label":"Start",className:n0("start-link"),onClick:this.onClickStartLink,ref:this.refLink,to:this.getLessonPath(),children:(0,s.jsx)(ct,{className:n0("start-icon"),name:"arrow-down"})})}),o&&(0,s.jsx)(T1,{})]}),(0,s.jsx)(Eh,{onClose:this.focusMain})]})}}function A_(t){const e=Bt(t),n=(0,Pt.Vu)(e);return{course:e,lesson:n}}const A5=Xe()(N_,(0,W.Ng)(A_,null,null,{forwardRef:!0}))(k_),R_=t=>{const{course:e}=t,{exportSettings:n,lmsOptions:o}=e,r=n?.webExportSettings,a=n?.exportType==="raw",i=n?.exportType==="lms",c=a&&r?.disableCoverPage,u=i&&o?.disableCoverPage,d=(0,Es.VJ)(e);let m=!1;d?m=!0:Po.isInstantLink?m=!1:m=c||u;const p=e.lessonsOnly[0].id;return(0,s.jsxs)(ie.BV,{children:[(0,s.jsx)(ie.qh,{element:(0,s.jsx)(Xm,{...t}),path:"/lessons/:id"}),m?(0,s.jsx)(ie.qh,{element:(0,s.jsx)(ie.C5,{replace:!0,to:(0,qt.p1)(p)}),index:!0}):(0,s.jsx)(ie.qh,{element:(0,s.jsx)(A5,{}),index:!0}),m?(0,s.jsx)(ie.qh,{element:(0,s.jsx)(ie.C5,{replace:!0,to:(0,qt.p1)(p)}),path:"/:mode"}):(0,s.jsx)(ie.qh,{element:(0,s.jsx)(A5,{}),path:"/:mode"})]})};class P_ extends h.Component{constructor(e){super(e),this.passwordRef=(0,h.createRef)(),this.state={failAttempt:!1,shouldShake:!1}}static propTypes={onSubmit:Ge().func.isRequired,failAttempt:Ge().bool.isRequired};componentDidMount(){this.dialog.addEventListener("animationend",this.handleRemoveAnimationEnd.bind(this))}UNSAFE_componentWillReceiveProps({failAttempt:e}){const{shouldShake:n}=this.state;this.setState({failAttempt:e&&n})}componentWillUnmount(){this.dialog.removeEventListener("animationend",this.handleRemoveAnimationEnd.bind(this))}handleRemoveAnimationEnd(){this.setState({failAttempt:!1,shouldShake:!1})}onSubmitPassword(e){e.preventDefault();const{onSubmit:n}=this.props;this.setState({shouldShake:!0},()=>{n(this.passwordRef.current)})}render(){const{isOnePage:e}=this.props,{failAttempt:n}=this.state,o=Q()("brand--border","share-password-dialog",{"fail-password":n}),r=e?"You need a password to view this microlearning. If you don\u2019t know it, ask the person who shared this with you.":"You need a password to view this course. If you don\u2019t know it, ask the person who shared this with you.";return(0,s.jsxs)("div",{className:o,ref:a=>{this.dialog=a},children:[(0,s.jsx)("h1",{className:"heading",children:"Enter Password"}),(0,s.jsx)("p",{className:"instructions",children:r}),(0,s.jsxs)("form",{onSubmit:this.onSubmitPassword.bind(this),children:[(0,s.jsx)("label",{className:"label",htmlFor:"share-password",children:"password"}),(0,s.jsx)("input",{className:"input",id:"share-password",ref:this.passwordRef,type:"password"}),(0,s.jsx)("div",{className:"dialog__toolbar",children:(0,s.jsx)("input",{className:"button brand--background",type:"submit",value:"View"})})]})]})}}const w_=t=>({isOnePage:Zi(t)}),M_=(0,W.Ng)(w_)(P_),qm=ne("lesson-navigation-dropdown"),R5=({lessonTitle:t})=>(0,s.jsx)("li",{children:(0,s.jsxs)("div",{className:qm("option",{"ai-loading":!0}),children:[(0,s.jsx)(is,{value:t||"Generating lesson..."}),(0,s.jsx)("div",{className:qm("ai-loading-progress"),children:(0,s.jsx)("div",{className:qm("spinner")})})]})});var P5=l(26372);const bc=ne("lesson-navigation-dropdown"),O_=({disabled:t,index:e,option:n,selectedLessonId:o,onSelect:r,getLessonPath:a})=>{const[i,c]=P5.useState(!0),u=`lesson-navigation-dropdown-section-${e}`,d=P5.useCallback(p=>{p.stopPropagation(),p.preventDefault(),c(f=>!f)},[]),m=bc("group-header-icon",{collapsed:!i});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{"aria-controls":u,"aria-expanded":i,className:bc("group-header"),onClick:d,type:"button",children:[(0,s.jsx)(ct,{className:m,name:"caret-down"}),(0,s.jsx)("span",{className:bc("group-header-text"),children:(0,s.jsx)(is,{value:n.label})})]}),(0,s.jsx)(Ul,{inert:!i,children:(0,s.jsx)("ol",{"aria-hidden":i?void 0:!0,className:bc("group-list",{collapsed:!i}),id:u,children:n.options?.map((p,f)=>{const g=String(p.value),v=t||p.disabled;return p.lesson?.settings?.isGeneratingAIContent?(0,s.jsx)(R5,{lessonTitle:p.label},`${g}-${f}`):(0,s.jsx)("li",{children:(0,s.jsx)(Vl,{className:bc("option",{disabled:v,selected:p.value===o}),onClick:v?void 0:()=>r(g),to:v?void 0:a(g),children:(0,s.jsx)(is,{value:p.label})})},`${g}-${f}`)})})})]})},D_=(t,e="section")=>t.reduce((n,o)=>(o.type===e?n.grouped.push([o]):n.grouped.length===0||n.grouped[n.grouped.length-1][0].type!==e?n.ungrouped.push(o):n.grouped[n.grouped.length-1].push(o),n),{grouped:[],ungrouped:[]}),B_=(t,e={})=>{if(!Array.isArray(t))return{options:[],hasGrouping:!1};const{sectionType:n}=e;if(!t.some(d=>d.type===n))return{options:t.filter(m=>m&&m.id).map(m=>({label:m.title||"Untitled Lesson",type:m.type,value:String(m.id),disabled:m.type===null,lesson:m})),hasGrouping:!1};const{grouped:r,ungrouped:a}=D_(t,n),i=r.map((d,m)=>{const[p,...f]=d,g=p&&"title"in p?p.title:void 0;return{label:g||"Untitled Section",type:p?.type||null,value:g||`section-${m}`,options:f.filter(v=>v&&v.id).map(v=>({label:v.title||"Untitled Lesson",type:v.type,value:String(v.id),disabled:v.type===null,lesson:v}))}}).filter(d=>d.options&&d.options.length>0);return{options:[...a.filter(d=>d&&d.id).map(d=>({label:d.title||"Untitled Lesson",type:d.type,value:String(d.id),disabled:d.type===null,lesson:d})),...i],hasGrouping:!0}};function H_(t="course-overview"){const e=(0,xe.DX)(),n=(0,xe.H7)()??{},o=(0,nt.dx)(n),r=e.id,a=o,i=e.lessons||Object.keys(n),c=Pg,u=B_,[d,m]=(0,h.useState)(t),p=(0,h.useMemo)(()=>Array.isArray(a)?a:i.map(y=>a[y]).filter(Boolean),[i,a]),{options:f,hasGrouping:g}=(0,h.useMemo)(()=>u(p,{sectionType:"section"}),[p,u]),v=(0,h.useMemo)(()=>{for(const y of f){if(y.value===d)return y.label??"Untitled Lesson";if(y.options){for(const E of y.options)if(E.value===d)return E.label??"Untitled Lesson"}}return d},[f,d]),C=(0,h.useMemo)(()=>{for(const y of f)if(y.value===d)return y.type??null;return null},[f,d]),x=(0,h.useCallback)(y=>{m(y),y==="course-stack"&&(window.location.href=c.courseLocales({courseId:r}))},[c,r]),L=(0,h.useCallback)(y=>{const E=typeof window<"u"&&window.location?.pathname?.includes("/authoring/");switch(y){case"course-overview":return E?c.course({courseId:r}):"/";case"course-stack":return c.courseLocales({courseId:r});default:return E?c.lesson({courseId:r,lessonId:y}):`/lessons/${y}`}},[r,c]);return{options:f,hasGrouping:g,selectedLessonId:d,selectedLessonType:C,selectedOptionLabel:v,onLessonChange:x,getLessonPath:L}}var io=l(26372);const lo=ne("lesson-navigation-dropdown"),F_=({disabled:t,options:e,selectedLessonId:n,handleOnSelect:o,getLessonPath:r})=>{const a=(0,xe.DX)(),i=(0,ds.HX)(a);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:lo("course-nav-links"),children:[i&&(0,s.jsxs)(Vl,{className:lo("option",{selected:n==="course-stack","with-icon":!0}),onClick:()=>o("course-stack"),to:r("course-stack"),children:[(0,s.jsx)(Mt.ArcIcon,{icon:"fa-regular fa-globe"}),(0,s.jsx)(is,{value:"Course Stack"})]}),(0,s.jsxs)(Vl,{className:lo("option",{disabled:t,selected:n==="course-overview","with-icon":!0}),onClick:()=>o("course-overview"),to:r("course-overview"),children:[(0,s.jsx)(Mt.ArcIcon,{className:lo("book-icon"),icon:"fa-regular fa-book-open"}),(0,s.jsx)(is,{value:"Course Overview"})]})]}),(0,s.jsx)("div",{"aria-labelledby":"lesson-navigation-title",className:lo("list-header"),role:"group",children:(0,s.jsx)("div",{id:"lesson-navigation-title",children:(0,s.jsx)(is,{value:"Lessons"})})}),(0,s.jsx)("ol",{className:lo("list"),children:e.map((c,u)=>{if(c.options&&c.options.length>0)return(0,s.jsx)("li",{children:(0,s.jsx)(O_,{disabled:t,getLessonPath:r,index:u,onSelect:o,option:c,selectedLessonId:String(n)})},`${String(c.value)}-${u}`);{const d=String(c.value),m=t||c.disabled;return c.lesson?.settings?.isGeneratingAIContent?(0,s.jsx)(R5,{lessonTitle:String(c.label)},d):(0,s.jsx)("li",{children:(0,s.jsx)(Vl,{className:lo("option",{disabled:m,selected:c.value===n}),onClick:m?void 0:()=>o(d),to:m?void 0:r(d),children:(0,s.jsx)(is,{value:c.label})})},d)}})})]})},z_=({currentLessonId:t,sendTrackingEvent:e})=>{const[n,o]=io.useState(!1),r=io.useRef(!1),a=io.useRef(null),{onLessonChange:i,options:c,selectedLessonId:u,selectedOptionLabel:d,getLessonPath:m}=H_(t),p=io.useCallback(()=>{if(a.current&&n){const E=a.current.getBoundingClientRect(),b=document.getElementById("lesson-navigation-dropdown");b&&(b.style.position="fixed",b.style.top=`${E.bottom}px`,b.style.left=`${E.left}px`,b.style.minWidth="40rem",b.style.zIndex="9999")}},[n]);io.useEffect(()=>{if(n){p();const E=()=>p(),b=()=>p();return window.addEventListener("scroll",E,{passive:!0}),window.addEventListener("resize",b,{passive:!0}),()=>{window.removeEventListener("scroll",E),window.removeEventListener("resize",b)}}},[n,p]);const f=io.useCallback(()=>{setTimeout(()=>{const E=document.querySelector("[popover]#lesson-navigation-dropdown");if(!E)return;const b=E.querySelector(`.${lo("option--selected")}`);b&&(b.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}),b.focus())},100)},[]),g=io.useCallback(E=>{if(!n)return;const b=document.querySelector("[popover]#lesson-navigation-dropdown");if(!b)return;const S=b.querySelectorAll(`.${lo("option")}, .${lo("group-header")}`);if(S.length===0)return;const T=document.activeElement,N=Array.from(S).indexOf(T);let j=N;switch(E.key){case"ArrowDown":E.preventDefault(),j=N===-1?0:(N+1)%S.length;break;case"ArrowUp":E.preventDefault(),j=N===-1?S.length-1:(N-1+S.length)%S.length;break;case"Home":E.preventDefault(),j=0;break;case"End":E.preventDefault(),j=S.length-1;break;case"Escape":E.preventDefault(),Mt.ArcPopover.handlePopover("lesson-navigation-dropdown","hide");return;case"Enter":case" ":case"Space":E.preventDefault(),N>=0&&S[N]?.click();return;default:return}S[j]?.focus(),S[j]?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[n]);io.useEffect(()=>{if(n)return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[n,g]);const v=io.useCallback(E=>{i(E),Mt.ArcPopover.handlePopover("lesson-navigation-dropdown","hide")},[i]),C=io.useCallback(E=>{n||(E.currentTarget.style.borderColor="var(--arc-color-border-stark)")},[n]),x=io.useCallback(E=>{E.currentTarget.style.borderColor="transparent"},[]),L={backgroundColor:"var(--arc-color-background-secondary)",borderRadius:"var(--arc-border-radius-md)",height:"var(--arc-size-4)",paddingInline:"var(--arc-space-1-5)",border:"var(--arc-border-width-sm) solid transparent",transition:"border-color 0.2s ease"},y={fontSize:"1.1rem",fontWeight:"var(--arc-font-weight-600)",marginBlockStart:"var(--arc-space-0-25)"};return(0,s.jsx)("nav",{children:(0,s.jsx)(Mt.ArcPopover,{anchorAt:"bottom-start",anchorProps:{iconEnd:(0,s.jsx)("i",{className:"fa-regular fa-chevron-down",style:y}),layout:"hug",onMouseEnter:C,onMouseLeave:x,style:L,text:d,variant:"tertiary",ref:a},"aria-labelledby":"lesson-navigation-title",className:lo(),hasTail:!1,id:"lesson-navigation-dropdown",onToggle:E=>{const b=E.newState==="open";if(o(b),b)e();else{r.current=!1;return}r.current||(f(),r.current=!0)},variant:"common",children:(0,s.jsx)(F_,{disabled:!1,getLessonPath:m,handleOnSelect:v,options:c,selectedLessonId:String(u)})})})},yc=ne("app-header"),V_=({children:t,className:e="",currentLessonId:n,isArcButtonGroup:o=!1,isAIAssistantEnabled:r=!1,isBlockActionsSidebarOpen:a=!1,isMicrolearning:i=!1,localesDropdown:c=null,menuButton:u=null,sendLessonNavDropdownTrackingEvent:d=()=>{},snapshotDropdown:m=null,title:p})=>{const f=yc({v2:r}).mix(e),g=!!(m||c),C=n!=null&&n!=="course-overview"&&!$e.BI&&!i&&!a;return(0,s.jsxs)("div",{className:f,dir:"ltr",id:"app-header",children:[u,(0,s.jsxs)("div",{className:yc("title-dropdowns"),children:[p&&!C&&(0,s.jsx)("div",{className:yc("title"),"data-testid":"AppHeaderTitle",children:(0,s.jsx)(is,{value:p})}),C&&(0,s.jsx)(z_,{currentLessonId:n,sendTrackingEvent:d}),g&&(0,s.jsxs)("div",{className:yc("dropdowns"),children:[m,c]})]}),(0,s.jsx)("div",{className:yc("btn-group",{arc:o}),"data-testid":"AppHeaderButtonGroup",children:t})]})},U_=t=>Q()("button",{[t.className]:!Xs()(t.className),"button--default":t.mode===void 0,"button--extraPadding":t.extraPadding,"button--sidebar brand--ui":t.sidebar,"button--header":t.header,"button--header-done":t.headerDone,"button--outline":t.outline,"button--outline button--outline-transparent":t.outlineTransparent,"button--condensed":t.condensed,"button--inverted":t.inverted,"button--logo":t.logo,"button--inline":t.mode==="inline","button--next":t.next,"button--disabled":t.disabled,"button--controls":t.controls,"button--controls-enhanced":t.controlsEnhanced,"brand--ui":t.accent,"brand--background brand--border":t.branded}),$_=({icon:t})=>t?(0,s.jsx)("i",{className:`button__icon icon-${t}`}):null,W_=({onlyIcon:t,children:e})=>h.Children.map(e,n=>t&&n.type===void 0?null:n),G_=({accent:t,ariaControls:e,ariaExpanded:n,ariaHidden:o,ariaLabel:r,ariaPressed:a,branded:i,className:c,children:u,condensed:d,controls:m,controlsEnhanced:p,disabled:f,el:g,extraPadding:v,header:C,headerDone:x,icon:L,inverted:y,mode:E,next:b,onClick:S=Function.prototype,onlyIcon:T,onMouseDown:N=Function.prototype,outline:j,outlineTransparent:R,sidebar:O,tabIndex:P,type:A,...F})=>{const w=g||"button";return w==="button"&&!A&&(A="button"),(0,s.jsxs)(w,{"aria-controls":e,"aria-expanded":n,"aria-hidden":o,"aria-label":r,"aria-pressed":a,className:U_({accent:t,branded:i,className:c,condensed:d,controls:m,controlsEnhanced:p,disabled:f,extraPadding:v,header:C,headerDone:x,inverted:y,mode:E,next:b,outline:j,outlineTransparent:R,sidebar:O}),disabled:f,onClick:S,onMouseDown:N,tabIndex:P,type:A,...F,children:[(0,s.jsx)($_,{icon:L}),W_({onlyIcon:T,children:u})]})};var qs,w5,K_,__,M5,Q_,Z_,Y_,ep,O5,X_,J_;const Vo=ne("app-header"),D5=(0,$e._$)("CDN_URI"),q_=({disabled:t,onClick:e})=>(0,s.jsx)("button",{className:Vo("promo-btn"),disabled:t,onClick:e,type:"button",children:"New"}),B5=({children:t,disabled:e=!1,done:n=!1,onClick:o=()=>{},tooltipText:r="",icon:a=null,isNewPromo:i=!1,el:c="button",href:u=void 0,external:d=!1,capitalize:m=!0,...p})=>{const f=(0,je.Z)(),g=(0,h.useCallback)(async C=>{e||(o&&await o(C),u&&(d?window.location.href=u:f(u)))},[f,u,o,e,d]),v=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(G_,{disabled:e,el:u?"a":c,header:!n,headerDone:n,onClick:g,style:m?null:{textTransform:"none",fontWeight:600,fontSize:"1.4rem",letterSpacing:0},...p,children:t}),i&&(0,s.jsx)(q_,{disabled:e,onClick:g}),a]});return(0,s.jsx)(Mt.ArcTooltip,{anchorAt:"left-center","data-testid":"AppHeaderButtonTooltipContainer",isEnabled:e&&!!r,text:r,children:v})};B5.propTypes={children:Ge().node,disabled:Ge().bool,done:Ge().bool,el:Ge().string,href:Ge().string,onClick:Ge().func,tooltipText:Ge().string,dataBa:Ge().string};const Zne=()=>qs("div",{className:Vo("divider")}),Yne=({href:t,label:e,onClick:n,xhref:o,...r})=>{const a=__(),i=M5(async c=>{if(o||c.preventDefault(),n)return n();t&&a(t)},[t,o,a,n]);return qs("div",{className:Vo("menu-btn"),...r,children:qs("a",{"aria-label":e,className:Vo("menu-close"),href:o,onClick:i,children:qs(Y_,{})})})},Xne=({onClick:t,label:e,...n})=>{const o=J_("rise-lesson-nav-dropdown-release"),r=X_(),a=!!r?.defaultLocaleId,c=window.location.search.includes("fromDashboard")||!r?.id,u=r?.id?ep.course({courseId:r.id}):null,d=M5(m=>{t&&t(m)},[t]);return qs(w5,{children:o?qs(w5,{children:a?K_(O5,{className:Vo("menu-btn"),onClick:d,to:ep.courseLocales,...n,children:[qs(Z_,{className:Vo("back-icon"),icon:"fa-regular fa-chevron-left"}),qs("div",{className:"visually-hidden-always",children:e})]}):c?qs("a",{className:Vo("menu-btn"),href:ep.dashboard,onClick:d,...n,children:qs("img",{alt:e,src:`${D5}/assets/rise/assets/articulate-a-logo.svg`})}):qs(O5,{className:Vo("menu-btn"),onClick:d,to:u,...n,children:qs("img",{alt:e,src:`${D5}/assets/rise/assets/articulate-a-logo.svg`})})}):qs("div",{className:Vo("menu-btn"),children:qs(Q_,{ariaLabel:e,icon:"up-level-2",onClick:t,...n})})})},Jne=({children:t,...e})=>qs("div",{className:Vo("owner-label"),...e,children:t});var o0=l(26372);const Ms=ne("curtain"),eQ=({labelCurtainLoading:t="Your content is loading.",labelCurtainOffline:e="Your computer is offline.",labelCurtainOfflineReconnecting:n="Attempting to reconnect\u2026",labelCurtainSessionTimedOut:o="Your session has timed out.",labelCurtainSessionTimedOutRefresh:r="Refresh",labelCurtainSessionTimedOutRestart:a="Click refresh to restart your session.",labelCurtainSomethingWrong:i="Something went wrong.",labelCurtainSomethingWrongRefresh:c="Refresh",labelCurtainSomethingWrongTryAgain:u="Click to refresh and try again.",loadingText:d,showHeader:m,status:p})=>{const[f,g]=o0.useState(!1),v=()=>g(!0),C=o0.useRef(null);return o0.useEffect(()=>(C.current=setTimeout(v,1e4),()=>{C.current&&clearTimeout(C.current)}),[]),o0.useEffect(()=>{if(p==="error"){const x=new Error("There was a socket connection error. The renderReconnect curtain was displayed");i6.y.logger.error(x.message,x)}},[p]),p==="fatalError"?(0,s.jsx)(sQ,{labelCurtainSomethingWrong:i,labelCurtainSomethingWrongRefresh:c,labelCurtainSomethingWrongTryAgain:u,showHeader:m}):p==="error"&&f?(0,s.jsx)(oQ,{labelCurtainSessionTimedOut:o,labelCurtainSessionTimedOutRefresh:r,labelCurtainSessionTimedOutRestart:a,showHeader:m}):p==="error"?(0,s.jsx)(nQ,{labelCurtainOffline:e,labelCurtainOfflineReconnecting:n,showHeader:m}):(0,s.jsx)(tQ,{labelCurtainLoading:t,showHeader:m,text:d})},H5=()=>window.location.reload(),tQ=({labelCurtainLoading:t,showHeader:e,text:n})=>(0,s.jsx)("div",{className:Ms("container",{"show-header":e}),children:(0,s.jsxs)("div",{className:Ms(),children:[(0,s.jsx)("div",{className:Ms("spinner")}),(0,s.jsx)("div",{className:Ms("text"),children:n||t})]})}),sQ=({labelCurtainSomethingWrong:t,labelCurtainSomethingWrongRefresh:e,labelCurtainSomethingWrongTryAgain:n,showHeader:o})=>(0,s.jsx)("div",{className:Ms("container",{"show-header":o}),children:(0,s.jsxs)("div",{className:Ms(),children:[(0,s.jsx)("div",{className:Ms("title"),children:t}),(0,s.jsx)("div",{className:Ms("description"),children:n}),(0,s.jsx)(Mt.ArcButton,{onClick:H5,children:e})]})}),nQ=({labelCurtainOffline:t,labelCurtainOfflineReconnecting:e,showHeader:n})=>(0,s.jsx)("div",{className:Ms("container",{"show-header":n}),children:(0,s.jsxs)("div",{className:Ms(),children:[(0,s.jsx)("div",{className:Ms("spinner",{reconnect:!0})}),(0,s.jsx)("div",{className:Ms("title"),children:t}),(0,s.jsx)("div",{className:Ms("description"),children:e})]})}),oQ=({labelCurtainSessionTimedOut:t,labelCurtainSessionTimedOutRefresh:e,labelCurtainSessionTimedOutRestart:n,showHeader:o})=>(0,s.jsx)("div",{className:Ms("container",{"show-header":o}),children:(0,s.jsxs)("div",{className:Ms(),children:[(0,s.jsx)("div",{className:Ms("title"),children:t}),(0,s.jsx)("div",{className:Ms("description"),children:n}),(0,s.jsx)(Mt.ArcButton,{onClick:H5,children:e})]})}),F5=eQ;var rQ=l(96600);function aQ({children:t,locale:e,...n}){const o=(0,ie.zy)(),r=(0,nt.D_)(),a=(0,h.useMemo)(()=>{const i=e===r?"":e,c=new URLSearchParams(o.search);return c.set("locale",i),o.pathname+"?"+c.toString()+o.hash},[r,e,o]);return(0,s.jsx)(Ln,{...n,to:a,children:t})}const Uo=ne("locales-dropdown"),iQ=({backToStackCourseId:t,currentLocale:e,defaultLocale:n,locales:o,message:r,onChange:a,optionType:i,showMessageIndicator:c})=>{const u=(0,h.useRef)(null),d=(0,h.useRef)(null),[m,p]=(0,h.useState)(!1),[f,g]=(0,h.useState)(!1),v=(0,h.useMemo)(()=>o.filter(b=>b.localeCode!==n),[n,o]),C=(0,h.useMemo)(()=>o.find(b=>b.localeCode===n),[n,o]),x=(0,h.useMemo)(()=>o.find(b=>b.localeCode===e),[e,o]);(0,h.useLayoutEffect)(()=>{m&&f&&(u.current?.querySelector(`[data-locale="${e}"]`)?.focus(),g(!1))},[m,f,e]),(0,h.useEffect)(()=>{const b=S=>{cn(S)&&(d.current?.focus(),p(!1)),Td(S)&&setTimeout(()=>{u.current.contains(document.activeElement)||p(!1)},0)};return m&&document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[m]);const L=(0,h.useCallback)(b=>{!m&&document.activeElement===b.currentTarget&&g(!0),p(!m)},[m]),y=(0,h.useCallback)(b=>{m&&!d.current?.contains(b?.target)&&p(!1)},[m]);(0,rQ.A)(u,y),(0,h.useEffect)(()=>{const b=()=>setTimeout(()=>{document.activeElement.tagName==="IFRAME"&&y()},0);return window.addEventListener("blur",b),()=>window.removeEventListener("blur",b)},[y]);const E=(0,h.useCallback)(b=>{document.activeElement===b.currentTarget&&d.current?.focus(),p(!1),a?.(b.currentTarget.getAttribute("data-locale"))},[a]);return(0,s.jsxs)("div",{className:Uo({isOpen:m}),children:[(0,s.jsx)("div",{className:Uo("trigger-wrap"),children:(0,s.jsxs)("button",{className:Uo("trigger"),onClick:L,ref:d,type:"button",children:[c&&(0,s.jsx)("div",{className:Uo("message-indicator")}),(0,s.jsx)(ct,{name:"globe"}),x.displayName,(0,s.jsx)(ct,{name:"chevron-down"})]})}),(0,s.jsxs)("div",{className:Uo("contents"),ref:u,children:[r,(0,s.jsx)("div",{className:Uo("grouping-header"),children:"Source"}),(0,s.jsx)(z5,{checked:n===e,locale:C,onClick:E,type:i}),(0,s.jsx)("div",{className:Uo("grouping-header"),children:"Translations"}),v.map(b=>(0,s.jsx)(z5,{checked:b.localeCode===e,locale:b,onClick:E,type:i},b.localeCode)),t&&(0,s.jsx)("a",{className:Uo("stack-button"),href:`/manage/locales/${t}`,children:"Back to Stack"})]})]})},z5=({checked:t,locale:e,onClick:n,type:o})=>o==="link"?(0,s.jsx)(aQ,{className:Uo("option",{checked:t}),"data-locale":e.localeCode,locale:e.localeCode,onClick:n,children:e.displayName},e.localeCode):(0,s.jsx)("button",{className:Uo("option",{checked:t}),"data-locale":e.localeCode,onClick:n,type:"button",children:e.displayName},e.localeCode),lQ=({hideBackToStack:t,...e})=>{const n=(0,xe.DX)(),{currentLocale:o}=(0,rt.nY)(),r=(0,nt.jc)(),a=(0,nt.D_)(),i=Lh(),c=t?void 0:n?.id,u=(0,h.useMemo)(()=>r.map(d=>({localeCode:d.locale,displayName:i(d.locale)})),[i,r]);return(0,s.jsx)(iQ,{backToStackCourseId:c,currentLocale:o,defaultLocale:a,locales:u,optionType:"link",...e})},V5=window.location.origin,cQ=1e3,dQ="course:ready",U5="localizedSharePreview:ready",uQ="preview:selectLocale",tp="localizedSharePreview:toggleCurtain",$5="localizedSharePreview:togglePreview",Wi=ne("localized-share-preview"),Gi=!!window.frameElement,W5=t=>(0,ds.HX)(t)&&(0,Je.GS)(),hQ=t=>W5(t)&&!Gi,mQ=(t,e)=>window.parent?.postMessage({type:t,data:e});let G5=null;const pQ=({children:t})=>{const e=(0,W.wA)(),n=(0,je.Z)(),o=(0,ie.zy)(),{currentLocale:r,setCurrentLocale:a}=(0,rt.nY)(),i=(0,nt.D_)(),c=Kn(),u=Rt(),m=!!(u&&"hasPassword"in u?u.hasPassword:void 0)||(0,Je.og)(),p=(0,h.useRef)(null),[f,g]=(0,h.useState)(!1),[v,C]=(0,h.useState)(!1),[x,L]=(0,h.useState)(!m),y=(0,h.useMemo)(()=>`${V5}/share/${window.shareId}#/?locale=${r}`,[]),[E,b]=(0,h.useState)(null),[S,T]=(0,h.useState)(r),[N,j]=(0,h.useState)(!1),[R,O]=(0,h.useState)(!Gi),P=(F,w)=>p.current?.contentWindow.postMessage({type:F,data:w});(0,h.useEffect)(()=>{Gi||P(uQ,r)},[r]),(0,h.useEffect)(()=>{Gi&&(mQ(U5),setTimeout(()=>j(!0),0))},[]),(0,h.useEffect)(()=>{const F=w=>{if(w.origin!==V5)return;const V=w.data?.type,_=w.data?.data;if(Gi)switch(V){case tp:{O(_);break}case $5:{_?(T(r),b(o),e((0,yh.Wp)(!0)),a(i),n("/",{replace:!0})):(e((0,yh.Wp)(!1)),a(S),n(E.pathname+E.search+E.hash||"/",{replace:!0})),document.querySelector(".cover")?.scrollTo(0,0),document.querySelector(".page-wrap")?.scrollTo(0,0);break}}else switch(V){case dQ:{O(!1);break}case U5:{L(!0);break}}};return window.addEventListener("message",F),()=>{window.removeEventListener("message",F)}},[i,e,n,r,o,S,E,a]);const A=(0,h.useCallback)(()=>{const F=!f;clearTimeout(G5),C(!0),P(tp,!0),G5=setTimeout(()=>{C(!1),P(tp,!1),g(F)},cQ),setTimeout(()=>{P($5,F)},0)},[f]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:Wi("curtain",{hide:!R}),children:(0,s.jsx)(F5,{})}),Gi?N&&t:(0,s.jsxs)("div",{className:Wi(),children:[x&&(0,s.jsx)(V_,{className:Wi("header"),localesDropdown:!f&&!v&&(0,s.jsx)(lQ,{hideBackToStack:!0}),title:c,children:(0,s.jsx)(B5,{capitalize:!1,className:Wi("preview-button"),disabled:v,done:!0,onClick:A,children:f?"Close Learner Preview":(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ct,{className:Wi("preview-button-icon"),name:"play-regular"}),"Preview as Learner"]})})}),(0,s.jsx)("iframe",{allowFullScreen:!0,"aria-label":"Course preview",className:Wi("iframe"),ref:p,src:y})]})]})},fQ=(0,h.lazy)(()=>l.e("_b106").then(l.t.bind(l,63744,23))),vQ=({children:t})=>{const e=(0,xe.qm)(),{setCurrentLocale:n,currentLocale:o}=(0,rt.nY)(),r=(0,nt.QQ)(e?.course.title),a=e?.l10n?.languageCodeMetadata??{},i=Object.entries(a).map(([c,u])=>({code:c,learnerDisplayName:u.learnerDisplayName})).sort((c,u)=>c.learnerDisplayName.localeCompare(u.learnerDisplayName));return(0,s.jsx)(h.Suspense,{fallback:null,children:(0,s.jsx)(fQ,{courseTitle:r,currentLocale:o,locales:i,setCurrentLocale:n,children:t})})};class gQ extends h.Component{static defaultProps={scope:"error-boundary"};constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return console.error(e),{hasError:!0,error:e}}render(){const{hasError:e,error:n}=this.state,{FallbackComponent:o}=this.props;return e||n?(0,s.jsx)(o,{}):this.props.children}}const CQ=gQ;var xQ=l(72076);const bQ=(0,h.lazy)(()=>l.e("webpack_container_remote_learn_distribution_frontend_learn_ai-learner-popout").then(l.t.bind(l,68789,23))),yQ=()=>{const t=(0,nt.dx)(Rt()),{currentLocale:e}=(0,rt.nY)(),n=(0,xe.Wz)(),o=yo(),r=async()=>{try{await(0,xQ.wD)()}catch{}};return t.settings?.aiTutorEnabled?(0,s.jsx)(CQ,{FallbackComponent:()=>null,children:(0,s.jsx)(h.Suspense,{fallback:null,children:(0,s.jsx)(bQ,{apiKey:t.aiLearnerCourseApiKey,course:t,currentLessonId:o,currentLocale:e,resetSession:r,rtl:n})})}):null};var r0=l(26372);const K5=r0.createContext({typefaces:[]});function LQ({addTypefaces:t,children:e,typefaces:n=[]}){EQ(n);const o=r0.useMemo(()=>({addTypefaces:t,typefaces:n}),[t,n]);return(0,s.jsx)(K5.Provider,{value:o,children:e})}function eoe(){return r0.useContext(K5)}function EQ(t){r0.useEffect(()=>{const e=new CSSStyleSheet;for(const n of t){const o=`[data-rise-typeface-id="${CSS.escape(n.id)}"] { font-family: "${CSS.escape(n.name)}"; }`;e.insertRule(o)}return e.insertRule('[data-rise-typeface-id="@@heading@@"] { font-family: var(--font-family-head); }'),e.insertRule('[data-rise-typeface-id="@@body@@"] { font-family: var(--font-family-body); }'),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter(n=>n!==e)}},[t])}var SQ=l(26372);function TQ({children:t}){const e=(0,W.d4)(o=>o.fonts),n=SQ.useMemo(()=>{const o=new Map;for(const r of e)o.set(r.id,{id:String(r.id),name:r.name,default:r.default});return Array.from(o.values())},[e]);return(0,s.jsx)(LQ,{typefaces:n,children:t})}const _5=Object.assign(document.createElement("div"),{id:"portal"});function Q5(t){(t??document.body).appendChild(_5),_5.style.display=t?"":"none"}Q5();const IQ=(t,e)=>!(t==="firstLesson"&&e.includes("/lessons/"))&&!(t==="cover"&&(e==="/"||e==="/preview")),NQ=t=>["preview:lessonUpdate","preview:navigate","preview:overlayNavClose","preview:scrollto","preview:showLessonNavNext","preview:showLessonNavPrev","preview:themeUpdate","preview:update","preview:navOpen","preview:navClose","preview:replace","preview:changeset","preview:selectLocale",on.FOCUS,on.TOGGLE,on.CLEAR,on.TRANSLATION_HOVERED,on.TRANSLATION_HOVER_CLEAR].includes(t),jQ=t=>t===window.location.origin||t==="articulate.com"||t.endsWith(".articulate.com"),kQ=({course:t,fonts:e,l10n:n})=>()=>((0,W.JD)((0,_l.V7)({course:t,fonts:e,l10n:n})),ri().Resolved()),AQ=()=>(window.parent.postMessage({type:"preview:themeUpdateComplete"},window.location.origin),ri().Resolved()),RQ=({course:t,fonts:e,l10n:n})=>ri()((o,r)=>{(0,sk.U2)(e,r)}).chain(kQ({course:t,fonts:e,l10n:n})).chain(AQ),PQ=t=>W5(t)?pQ:Po.isInstantLink?vQ:h.Fragment;function wQ(t){const e=(0,ie.zy)(),n=(0,h.useRef)(e);(0,h.useEffect)(()=>{n.current!==e&&(t(),n.current=e)},[e,t])}const MQ=()=>{let t=[],e=0;return n=>{clearTimeout(e);for(const o of n)t.push(o);e=setTimeout(()=>{const o=t;t=[],(0,W.JD)((0,_l.TJ)(o))},15)}};class OQ extends h.Component{constructor(e){super(e),this.state={didNavigate:!1,previewType:"",failAttempt:!1,scrollTo:null,isInvalidPassword:!0,targetModeContext:{translationHoveredPath:null}},this.onSharePasswordSubmit=this.onSharePasswordSubmit.bind(this),this.onFavoriteAdded=this.onFavoriteAdded.bind(this),this.onFavoriteRemoved=this.onFavoriteRemoved.bind(this),this.isRTLEnabled=this.isRTLEnabled.bind(this),this.updateRTL=this.updateRTL.bind(this),this.handleMessage=this.handleMessage.bind(this),this.handleLocationChange=this.handleLocationChange.bind(this),window.targetMode=H8({locale:e.currentLocale})}handleLocationChange(){this.setState({didNavigate:!0})}UNSAFE_componentWillMount(){const{l10n:e}=this.props;rn.isIe11&&document.documentElement.classList.add("ie11"),rn.isSafari9&&document.documentElement.classList.add("safari9"),rn.isIphoneSafari&&document.documentElement.classList.add("iphone-safari"),rn.isSafari&&this.props.match.params.mode==="iframe"&&tj().enable(),window.addEventListener("message",this.handleMessage),window.parent.postMessage({type:"ready"},"*"),window.parent.postMessage({type:on.STATUS,data:!!window.targetMode},"*"),(0,Je.xr)()&&window.parent.postMessage({type:"preview:snapshotLoaded",data:{defaultLocale:e?.defaultLocale,locales:e?.locales?.map(({locale:n})=>n)}}),uk(),this.updateRTL()}componentDidMount(){const{currentLocale:e,languageCode:n}=this.props;document.documentElement.lang=e??n,(0,cs.on)("favoriteAdded",this.onFavoriteAdded),(0,cs.on)("favoriteRemoved",this.onFavoriteRemoved),document.addEventListener("click",()=>{window.parent.postMessage("coursePreviewIframeClicked","*")})}updateConnectionStatus(e){(0,W.JD)((0,qf.zq)(e))}componentDidUpdate(){const{currentLocale:e,languageCode:n}=this.props;document.documentElement.lang=e??n,this.updateRTL(),this.state.didNavigate&&setTimeout(()=>{this.setState({didNavigate:!1})},0)}componentWillUnmount(){window.removeEventListener("message",this.handleMessage),(0,cs.AU)("favoriteAdded",this.onFavoriteAdded),(0,cs.AU)("favoriteRemoved",this.onFavoriteRemoved)}isRTLEnabled(){const{course:e,l10n:n,currentLocale:o}=this.props;return(0,tk.V)({course:e,locales:n?.locales,locale:o})}updateRTL(){this.isRTLEnabled()?document.documentElement.dir="rtl":document.documentElement.dir=""}handleMessage(e){const{data:n,origin:o}=e;if(!jQ(o))return;const{navigate:r,location:a={},setCurrentLocale:i}=this.props,{pathname:c}=a,{course:{lessonsOnly:u}}=this.props;(0,XN.A)(n).forEach(({type:d,data:m})=>{if(NQ(d)){if(d===on.TOGGLE&&window.targetMode(m,p=>{window.parent.postMessage({type:on.HOVERED,data:p},"*")}).then(p=>{window.parent.postMessage({type:on.SELECTED,data:p},"*")}).catch(()=>{window.parent.postMessage({type:on.SELECTED,data:[]},"*")}),d==="preview:update"&&this.setState({previewType:m}),d==="preview:themeUpdate"&&this.handleThemePreviewUpdate(m),d==="preview:navigate"){let{type:p,lessonId:f,itemId:g,path:v,replace:C}=m;const x=C?L=>r(L,{replace:!0}):r;if(IQ(p,c)){if(Array.isArray(v)){const L=(0,r2.Ce)(v);if(L)({type:p,lessonId:f,itemId:g}=L);else if(v[0]==="mondrian"){const{course:y}=this.props;for(const E of y.lessons){const b=E.items.find(S=>S.blockumentId===v[1]);if(b){p="lesson",f=E.id,g=b.id;break}}}else return}if(p==="firstLesson")x(`/lessons/${u[0].id}`);else if(p==="cover"||p==="course")x("/");else if(p==="lesson"&&u.find(({id:y})=>y===f)!=null){const y=()=>{window.dispatchEvent(new CustomEvent($t,{detail:{lessonId:f,itemId:g,path:v}}))};`/lessons/${f}`!==c?(x(`/lessons/${f}`),setTimeout(y,1500)):y()}}}if(d===on.CLEAR&&window.dispatchEvent(new CustomEvent(K1)),d==="preview:navOpen"&&window.dispatchEvent(new CustomEvent(Af)),d==="preview:navClose"&&window.dispatchEvent(new CustomEvent(Rf)),d==="preview:showLessonNavPrev"&&window.dispatchEvent(new CustomEvent(Md)),d==="preview:showLessonNavNext"&&window.dispatchEvent(new CustomEvent(Od)),d==="preview:scrollto"&&typeof m.target=="string"){const p=document.querySelector(m.target);p&&(0,sj.A)(p,{behavior:"smooth",block:"start"})}d==="preview:replace"&&(0,W.JD)((0,_l.HC)(m)),d==="preview:changeset"&&this.applyChangesetDebounced(m),d==="preview:selectLocale"&&i(m,"replace"),d===on.FOCUS&&V8(m.path),d===on.TRANSLATION_HOVERED&&(this.setState({targetModeContext:{translationHoveredPath:m.path}}),z8(m.path)),d===on.TRANSLATION_HOVER_CLEAR&&(this.setState({targetModeContext:{translationHoveredPath:null}}),B8()),d==="preview:lessonUpdate"&&this.handleLessonPreviewUpdate(m)}})}cancelThemePreviewUpdate(){}handleThemePreviewUpdate({course:e,l10n:n,fonts:o,theme:r}){this.cancelThemePreviewUpdate();const{course:a}=this.props,i=no()("theme",r,e),c=(0,nj.MT)({course:a,updates:i});this.cancelThemePreviewUpdate=RQ({course:c,fonts:o,l10n:n}).fork(console.warn,Qs.lQ)}handleLessonPreviewUpdate(e){(0,W.JD)((0,_l.YB)(e)),window.parent.postMessage({type:"preview:lessonUpdateComplete"},window.location.origin)}onSharePasswordSubmit(e){return(0,Je.m5)(e.value).then(({isValid:n})=>{n?this.setState({isInvalidPassword:!1}):(e.value="",this.setState({failAttempt:!0,isInvalidPassword:!0}))}).catch(n=>console.error("Verify password error",n))}onFavoriteAdded(){(0,W.JD)((0,Jf.nF)())}onFavoriteRemoved(){(0,W.JD)((0,Jf.pp)())}applyChangesetDebounced=MQ();renderAppLayout(){if(!this.props.course)return null;const{course:e,course:{bodyTypeface:n,color:o,headingTypeface:r,themeId:a,theme:i,uiTypeface:c},courseProgress:u,currentLocale:d,l10n:m,labels:p,lessons:f,partnerContent:g,search:v,sessionPreferences:C}=this.props,{didNavigate:x,previewType:L,targetModeContext:y}=this.state,E=m?.localeLabelSets?.[d]?.labels||p,b={course:e,courseProgress:u,didNavigate:x,lessons:f,previewType:L,sessionPreferences:C},S=i?.accentContrast,T=(0,Es.c3)(e),N={accentContrast:S,bodyTypeface:n,color:o,headingTypeface:r,isLegacyCourse:e?.isLegacyCourse,uiTypeface:c},j=Q()("theme",a,{"one-page":T}),R=PQ(e),O=T?R_:S_;return(0,s.jsx)(xe.rv,{course:e,courseProgress:u,l10n:m,labels:E,partnerContent:g,search:v,children:(0,s.jsx)(QE,{themeId:a,children:(0,s.jsx)(lh,{courseColor:o,children:(0,s.jsx)(yV,{value:y,children:(0,s.jsx)(TQ,{children:(0,s.jsxs)("div",{className:j,id:"innerApp",ref:Q5,children:[(0,s.jsx)(Lk,{...N}),(0,s.jsx)(cv,{env:"runtime",children:(0,s.jsx)(R,{children:(0,s.jsxs)(la,{children:[(0,s.jsx)(O,{...b}),(0,s.jsx)(yQ,{})]})})})]})})})})})})}showPasswordDialog(){const{isInvalidPassword:e}=this.state,{course:n}=this.props,{hasPassword:o}=n;return e&&(0,Je.GS)()&&!hQ(n)&&(!!o||(0,Je.og)())}render(){const{failAttempt:e}=this.state,{onSharePasswordSubmit:n}=this;return this.showPasswordDialog()?(0,s.jsx)(M_,{failAttempt:e,onSubmit:n}):this.renderAppLayout()}}function DQ(t){const e=(0,h.useRef)(null);return wQ(()=>{e.current&&e.current.handleLocationChange()}),(0,s.jsx)(OQ,{...t,ref:e})}const BQ=Xe()(q1.A,rt.wZ)(DQ),sp=ne("not-found"),HQ=()=>(0,s.jsx)(la,{title:Wl(),children:(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:sp(),children:(0,s.jsxs)("div",{className:sp("copy"),children:[(0,s.jsx)("h1",{className:sp("copy",{heading:!0}),tabIndex:-1,children:"Hmm..."}),(0,s.jsx)("div",{children:"We can't seem to find the page you're looking for."})]})})})});var FQ=l(29695);function Z5(){return(0,W.d4)(t=>{const{course:e,courseLabels:n,courseProgress:o,fonts:r,l10n:a,partnerContent:i,search:c,sessionPreferences:u,status:d}=t;return{course:e,courseProgress:o,fonts:r,l10n:a,labels:n.labels,languageCode:e?.locale??n?.iso639Code,lessons:e&&e.lessons,partnerContent:i,search:c,sessionPreferences:u,status:d}})}function zQ(){const t=(0,W.wA)();(0,h.useEffect)(()=>{t((0,_l.EL)()),t((0,uh.pb)())},[t])}function VQ(){const t=(0,W.wA)(),e=(0,h.useCallback)(()=>{t((0,qf.$2)(!0))},[t]),n=Z5(),o=Xt(n.course?.coverImage?.media);(0,h.useEffect)(()=>{const{courseLoaded:r,coverLoaded:a}=n.status;if(r&&!a){const i=o?.image,{key:c,src:u}=i||{};if(c||u){const d=c?(0,Ft.ME)(i):u,m=setTimeout(e,5e3),p=new Image;return p.src=d,p.onload=()=>{clearTimeout(m),e()},()=>clearTimeout(m)}else e()}},[n,o,e])}function UQ(){zQ(),VQ();const t=Z5(),e=(0,W.wA)(),{fonts:n,labels:o,status:{courseLoaded:r,coverLoaded:a,fontsLoaded:i,notFound:c,partnerContentLoaded:u}}=t,d=(0,tt.A)(r),m=r&&i&&a&&u,p=!m;return(0,h.useEffect)(()=>{!d&&r&&!i&&(n??[]).length>0&&e((0,FQ.r)(n))},[e,d,r,i,n]),(0,h.useEffect)(()=>{m&&window.parent!==window&&window.parent.postMessage({type:"course:ready"},window.location.origin)},[m]),c?(0,s.jsx)(HQ,{}):p?(0,s.jsx)(F5,{labelCurtainLoading:o?.curtainLoading,labelCurtainOffline:o?.curtainOffline,labelCurtainOfflineReconnecting:o?.curtainOfflineReconnecting,labelCurtainSessionTimedOut:o?.curtainSessionTimedOut,labelCurtainSessionTimedOutRefresh:o?.curtainSessionTimedOutRefresh,labelCurtainSessionTimedOutRestart:o?.curtainSessionTimedOutRestart,labelCurtainSomethingWrong:o?.curtainSomethingWrong,labelCurtainSomethingWrongRefresh:o?.curtainSomethingWrongRefresh,labelCurtainSomethingWrongTryAgain:o?.curtainSomethingWrongTryAgain,status}):(0,s.jsx)(BQ,{...t})}const $Q=UQ,a0=document.createElement("style");a0.innerHTML=`
  @layer rise-reset, arc-theme, arc-utils;

  :root {
    --arc-font-size-base: 1;

    /*  Override arc body font because of Inter naming conflict in Rise
        https://github.com/articulate/rise-authoring/issues/7263
    */
    --arc-internal-font-body: 'DS Inter', system-ui, sans-serif;
  }
`;function WQ(){(0,h.useEffect)(()=>(a0.parentElement!==document.head&&document.head.prepend(a0),()=>{a0.remove()}),[])}const GQ=()=>{const t=(0,je.Z)(),e=(0,ie.zy)(),n=h.useRef(new Set),o=h.useRef(null);if(o.current===null){const r=n.current;o.current={push:t,replace:a=>t(a,{replace:!0}),go:a=>t(a),goBack:()=>t(-1),goForward:()=>t(1),listen:a=>(r.add(a),()=>r.delete(a)),location:e},(0,Je.IV)(o.current)}return(0,h.useEffect)(()=>{if(n.current.forEach(r=>r(e)),typeof window<"u"&&window.dispatchEvent){const r=new HashChangeEvent("hashchange",{oldURL:window.location.href,newURL:window.location.href});window.dispatchEvent(r)}},[e]),(0,s.jsx)($Q,{})},KQ=document.getElementById("app"),_Q=(0,te.createRoot)(KQ),QQ=({children:t})=>(WQ(),(0,s.jsx)(s.Fragment,{children:t}));_Q.render((0,s.jsx)(h.Suspense,{fallback:null,children:(0,s.jsx)(W.Kq,{store:W.M_,children:(0,s.jsx)(QQ,{children:(0,s.jsx)(VN,{children:(0,s.jsx)(it,{children:(0,s.jsx)(YN,{children:(0,s.jsx)(ie.I9,{unstable_useTransitions:!1,children:(0,s.jsx)(rt.fH,{children:(0,s.jsx)(ie.BV,{children:(0,s.jsx)(ie.qh,{element:(0,s.jsx)(GQ,{}),path:"/*"})})})})})})})})})}))},10126(qe,be,l){"use strict";l.d(be,{Ay:()=>re,BW:()=>$,En:()=>k,Ig:()=>H,JG:()=>ae,Ko:()=>U,M$:()=>ce,Pz:()=>Z,S$:()=>he,WY:()=>K,Wj:()=>Ne,Ze:()=>ve,ce:()=>le,eZ:()=>B,fd:()=>X,ft:()=>Y,jw:()=>se,l7:()=>G,mj:()=>s,p3:()=>pe,pd:()=>ke,qX:()=>z,sZ:()=>oe,w5:()=>Le});const k="a",U="n",B="t",G="c",Y="ps",K="p",ve="v",oe="r",se="s",s="rr",pe="pq",ke="qd",le="ql",ce="qt",re="vp",Le="k",Ne="v",X="i",$="pv",z="m",Z="s",H="x",ae="sa",he="t"},13578(qe,be,l){"use strict";l.d(be,{AU:()=>Y,G7:()=>oe,NS:()=>B,RR:()=>se,gj:()=>ve,kT:()=>K,on:()=>G});const{RiseDotCom:k}=window,U=s=>k&&k[s],B=()=>{U("exit")&&k.exit()},G=(...s)=>{U("on")&&k.on(...s)},Y=(...s)=>{U("off")&&k.off(...s)},K=(...s)=>{U("goToLearn")&&k.goToLearn(...s)},ve=(...s)=>{if(U("downloadCertificate"))return k.downloadCertificate(...s)},oe=(...s)=>{if(U("downloadCertificateCancel"))return k.downloadCertificateCancel(...s)},se=(...s)=>{if(U("fetchLpUpNext"))return k.fetchLpUpNext(...s)}},82349(qe,be,l){"use strict";l.d(be,{MT:()=>X,MJ:()=>Ne,uK:()=>Le});var k=l(62826),U=l(25452),B=l(66798);const G={accentContrast:B.Em.AUTO,allowSearch:!0,animateBlockEntrance:!0,blockBackgroundColor:null,blockBackgroundColorContrast:B.Em.AUTO,blockBackgroundType:B.xj.LIGHT,blockCorners:B.rE.ROUNDED,blockPaddingEnd:B.S$,blockPaddingStart:B.S$,blockTextBackgroundColor:null,blockTextBackgroundColorContrast:B.Em.AUTO,blockTextBackgroundType:B.xj.LIGHT,blockTextBodyFontSize:B.Ty,blockTextHeadingFontSize:B.Bj,blockTextPaddingEnd:B.S$,blockTextPaddingStart:B.S$,blockTextSubheadingFontSize:B.pL,buttonInlineStyle:B.qu.ROUNDED,buttonNavigationStyle:B.jq.FULL,buttonScheme:B.LE.LIGHT,colorAccent:B.Zs,compactShowLessonCount:!0,coverImageAlpha:B.HU,coverPageType:B.BL.SPLIT_LEFT_IMAGE,customColorLessonHeaderContrast:B.Em.AUTO,enableVideoPlaybackSpeed:!0,lessonHeaderImageAlpha:B._g,lessonHeaderImageColor:B.df.DARK,lessonHeaderSize:B.OX.MEDIUM,lessonHeaderStyle:B.xj.LIGHT,markLessonsComplete:!1,navigation:!0,navigationRestricted:!1,navigationSectionsExpanded:!0,navigationStyle:B.kY.LIGHT,navigationType:B.br.SIDEBAR,progressIndicatorStyle:B.Y2.THEME_DEFAULT,showAuthor:!0,showLessonCount:!0,showNavigationButtons:!0,sidebarStartsOpen:!0,themeId:B.V7.RISE_CLASSIC},Y=["bodyTypeface","coverImage","experiments","headingTypeface","lessonHeaderImage","media","theme","uiTypeface"],K=$=>$.theme?.colorAccent||$.color||G.colorAccent,ve=$=>$.theme?.navigationRestricted??G.navigationRestricted?B.b$.RESTRICTED:B.b$.FREE,oe=$=>$.theme?.sidebarStartsOpen??G.sidebarStartsOpen?B.RE.OPEN:B.RE.CLOSED,se=$=>$.theme?.showLessonCount??$.showLessonCount??G.showLessonCount,s=({sidebarMode:$})=>$!==B.RE.HIDDEN,pe=({navigationMode:$})=>$===B.b$.RESTRICTED,ke=({sidebarMode:$})=>$===B.RE.OPEN,le=$=>$.coverImage?.media?.image?B.kY.LIGHT_IMAGE:B.kY.LIGHT,ce=$=>$.coverImage?.media?.image?B.BL.LEFT_OVERLAY:B.BL.LEFT,re=($,z)=>z[$]??z.theme?.[$]??G[$],Le=$=>{const z=oe($),Z=ve($),H={allowSearch:re("allowSearch",$),animateBlockEntrance:re("animateBlockEntrance",$),bodyTypefaceId:$.bodyTypefaceId,colorAccent:($.color||"").toLowerCase(),compactShowLessonCount:re("compactShowLessonCount",$),coverImageDefault:null,coverPageType:ce($),enableVideoPlaybackSpeed:re("enableVideoPlaybackSpeed",$),headingTypefaceId:$.headingTypefaceId,markLessonsComplete:re("markComplete",$),navigation:s({sidebarMode:z}),navigationSectionsExpanded:re("navigationSectionsExpanded",$),navigationRestricted:pe({navigationMode:Z}),navigationStyle:le($),showAuthor:re("showAuthor",$),showLessonCount:re("showLessonCount",$),showNavigationButtons:re("showNavigationButtons",$),sidebarStartsOpen:ke({sidebarMode:z}),uiTypefaceId:$.uiTypefaceId},ae={...G,...H};return{...$,theme:{...ae,isLegacyCourse:!0}}},Ne=$=>{const z=K($),Z={allowSearch:$.theme?.allowSearch??G.allowSearch,animateBlockEntrance:$.theme?.animateBlockEntrance??G.animateBlockEntrance,buttonNavigationStyle:$.theme?.buttonNavigationStyle??G.buttonNavigationStyle,buttonScheme:$.theme?.buttonScheme??G.buttonScheme,color:z,colorAccentTint:z?(0,k.FB)(z):void 0,coverImage:(0,U.dM)($),coverPageType:$.theme?.coverPageType??G.coverPageType,enableVideoPlaybackSpeed:$.theme?.enableVideoPlaybackSpeed??G.enableVideoPlaybackSpeed,lessonHeaderImage:(0,U.LI)($),lessonHeaderSize:$.theme?.lessonHeaderSize??G.lessonHeaderSize,lessonHeaderStyle:$.theme?.lessonHeaderStyle??G.lessonHeaderStyle,markComplete:$.theme?.markLessonsComplete??G.markLessonsComplete,navigation:$.theme?.navigation??G.navigation,navigationSectionsExpanded:$.theme?.navigationSectionsExpanded??G.navigationSectionsExpanded,navigationMode:ve($),navigationRestricted:$.theme?.navigationRestricted??G.navigationRestricted,navigationStyle:$.theme?.navigationStyle??G.navigationStyle,navigationType:$.theme?.navigationType??G.navigationType,progressIndicatorStyle:$.theme?.progressIndicatorStyle??B.Y2.THEME_DEFAULT,themeId:$.theme?.themeId??G.themeId,showAuthor:$.theme?.showAuthor??G.showAuthor,showLessonCount:se($),sidebarMode:oe($),sidebarStartsOpen:$.theme?.sidebarStartsOpen??G.sidebarStartsOpen,showNavigationButtons:$.theme?.showNavigationButtons??G.showNavigationButtons};return{...$,...Z}},X=({course:$,updates:z})=>{const Z=Object.fromEntries(Object.entries(z||{}).filter(([ae])=>Y.includes(ae))),H={...$,...Z};return Ne(H)}},56883(qe,be,l){"use strict";l.d(be,{A:()=>G});var k=l(50195),U=l(94036),B=l(78308);function G(Y){function K(ve){const oe=(0,U.zy)(),se=(0,B.Z)(),s=(0,U.g)();return(0,k.jsx)(Y,{...ve,location:oe,match:{params:s},navigate:se})}return K.displayName=`withRouter(${Y.displayName||Y.name})`,K}},5378(qe,be,l){"use strict";l.d(be,{gf:()=>at,Em:()=>ur});var k={};l.r(k),l.d(k,{callbackComponent:()=>Ra,callbackPath:()=>lr,errorPath:()=>Ia,getToken:()=>vs,initAuth:()=>Vr,login:()=>cr,logout:()=>gt,onFetchTokensThunk:()=>Ur,refreshSession:()=>Lt,request:()=>ut.Em});var U={};l.r(U),l.d(U,{callbackComponent:()=>Qr,callbackPath:()=>ol,getToken:()=>Da,initAuth:()=>al,login:()=>Ic,logout:()=>Ba,refreshSession:()=>Nc,request:()=>ut.Em});var B=l(76557),G=l(16904),Y=l.n(G),K=l(45497),ve=l.n(K),oe=l(27690),se=l.n(oe),s=l(73444),pe=l.n(s),ke=l(88179),le=l.n(ke),ce=l(24588),re=l.n(ce),Le=l(26372),Ne=l(56883),X=l(70905),$=l.n(X),z=l(23644),Z=l(16557),H=l.n(Z),ae=l(20865),he=l.n(ae),Te=l(63528),Ee=l.n(Te),ge=l(3793),h=l.n(ge),te=l(82676),ie=l.n(te),W=l(46387),Oe=l.n(W),Ce=l(58267),Pe=l.n(Ce),Ue=l(45561),J=l.n(Ue),ze=l(23476),et=l.n(ze),Ke=l(98801),it=l.n(Ke),bt=l(14685),Je=l.n(bt),je=l(17772),_e=l.n(je),vt=l(45681),Ct=l(88323);const tt={"Content-Type":"application/json"},Kt=[(Se,Ze)=>(Ze.Authorization=`Bearer ${at()}`,JSON.stringify(Se))],Q=Pe()(se(),Oe(),et()(["data","status","statusText"])),ot=Je()(et()(["name","message","response"]),ie()({response:Q})),cs=({baseURL:Se,...Ze})=>ve()(J()({headers:tt,transformRequest:Kt}),J()(Ze),ie()({url:h()(Se)})),$e=({data:Se,method:Ze,url:Nt})=>fetch(Nt,{body:JSON.stringify(Se),headers:{...tt,Authorization:`Bearer ${at()}`},keepalive:!0,method:Ze}).then(ns=>ns.json()).then(it()("data")),en=H().fromPromise($e),ho=Se=>({method:Ze,url:Nt})=>`${Ze}:${Se}${Nt}`,pn=Se=>{const Ze=new Error("Nil token detected");return Ct.L.addError(Ze,Se),H().Rejected(Ze)},Qe=Se=>Ze=>Se.preRequest?Se.preRequest(Ze):Ze,tn=Se=>Ze=>Se.postRequest?Se.postRequest(Ze):Ze,Us=()=>!B.BI&&se()(at()),$s=Se=>(Ze,Nt)=>he()(Ze,ho(Nt),An(ur,Se)),An=(Se,Ze)=>Nt=>(0,vt.Ve)(Nt,Qe(Ze),cs(Ze),Pe()(Us,pn,Se),Ee()(ot,_e()("data")),tn(Ze)),mo=Se=>({debounce:$s(Se),send:An(ur,Se),sendWithKeepAlive:An(en,Se)});var At=l(20377),ds=l.n(At);const Es=()=>document.visibilityState==="visible",$o=Se=>ds()(Es,()=>Se()),po=(Se=>{document.addEventListener("visibilitychange",$o(Se)),window.addEventListener("focus",()=>Se())});var Wo=l(13845),M=l.n(Wo),rt=l(72521),pt=l.n(rt),fn=l(85520),Xt=l.n(fn),Gn=l(88593),Go=l.n(Gn),fo=l(77720),Kn=l(43419),vn=l(22795);const gn=(Se,Ze=null)=>{const Nt={...Se,context:{locale:navigator.language,device:(0,vn.Pf)(),channel:(0,vn.c)(),userAgentData:(0,vn.NO)(),page:(0,vn.WE)(),userAgent:(0,vn.$t)(),...Se.context},properties:{...Ze?(0,Kn.yV)(Ze):{},...Se.properties}};return(0,fo.Em)({method:"POST",url:`${(0,B._$)("RISE_RUNTIME_URI")}/analytics`,json:!0,data:Nt})},Fe=(0,B._$)("SUBSCRIPTIONS_ENDPOINT"),St=(0,B._$)("THREESIXTY_FRONTEND_URI"),_t=Xt()(["error","status"],404),Ds=ve()(it()("error"),_e()("response")),Cn=()=>window.location.href=St,Bt=[(Se,Ze)=>(Ze.Authorization=`Bearer ${at()}`,Se)],vo=async Se=>{const Ze=`${Fe}/users/authorized_status`,Nt=await ur({transformRequest:Bt,url:Ze}).toPromise().catch(Ds),ns=ve()(Se,re()(gs=>gn({event:"Unexpected Logout",payload:{category:"auth",data:gs,detail:"Subscription Error"}})));return M()([[_t,Cn],[pt()("error"),ns],[Go(),_e()("data")]])(Nt)};var rr=l(21748),Bs;const Qi=Se=>Se.status==="active",Sa=Se=>Se.status==="inactive",Zi=Se=>Se.plan==="individual",Tc=Se=>Se.features?.enable_review===!0,Yi=Se=>Se.features?.enable_rise===!0,ar=Se=>Se.plan==="trial",Xi=Se=>Se.plan==="trial"&&Se.status==="inactive"&&Se.is_retrial_eligible===!1,Ji=Se=>Se.plan==="team"||Se.plan==="individual",Hr=Se=>Se.plan==="team"&&Se.is_team_admin===!0,Fr=Se=>Se.plan==="trial"&&Se.is_team_admin===!0,Xe=Se=>{if(!Se.end_date)return 0;const Ze=new Date(Se.end_date);Ze.setUTCHours(0,0,0,0);const Nt=Ze.setDate(Ze.getDate()+1);return Nt&&(Nt.valueOf()-new Date().setUTCHours(0,0,0,0))/Bs||0};var ut=l(72076),us=l(82277),go=l(76522),qi=l.n(go),Ko=l(6136),fs=l.n(Ko),zr=l(68029),ys=l.n(zr),ir=l(72233),Co=l.n(ir);const _o=(Se,Ze)=>`${(0,B._$)("ID_MAPPER_URI")}/v1/avatars/${encodeURIComponent(Se)}?size=${Ze}`,sn=Se=>({large:_o(Se,"large"),medium:_o(Se,"medium"),micro:_o(Se,"micro"),mini:_o(Se,"mini"),small:_o(Se,"small")}),Ta=fs()({features:Co()({},"features"),subscription:pe()(["features"])}),_n=qi()([Xi,Sa,ys()(Yi)]),xo="/auth-callback",rs="/auth-error",bo=()=>new Promise(Se=>{if(!window.Osano)return Se();if(window.Osano.cm.dialogOpen){const Ze=setTimeout(()=>{Se()},1e4);window.Osano.cm.addEventListener("osano-cm-ui-changed",(Nt,ns)=>{Nt==="dialog"&&ns==="hide"&&(Se(),clearTimeout(Ze))})}else Se()}),lr=xo,Ia=rs,vs=us.rS,Na=()=>window.location.pathname===lr;let xn=!1,bn=!1;const Qt=Se=>{if(xn)return;const Ze=(0,z.A)();xn=!0,window.localStorage.setItem(Ze,Se);const Nt=(0,ut.xQ)({client_id:(0,B._$)("OKTA_CLIENT_ID"),issuer:(0,B._$)("OIDC_ISSUER_URI"),redirect_uri:`${window.location.origin}${lr}`,response_mode:"fragment",scope:(0,B._$)("OIDC_SCOPE"),state:Ze,prompt:null});bo().then(()=>{window.location.href=Nt})},cr=()=>{const Se=new URLSearchParams(window.location.search),Ze=Se.has("redirect_url")?Se.get("redirect_url"):window.location.href;return Qt(Ze)},Lt=()=>(0,ut.uI)().catch(Se=>{Se.response?.status===404&&gt({onLogout:()=>window.location.reload(!0),reason:"Session expired"})}),ja=()=>{if(bn)return;const Se=(0,us.mA)(),Ze=(0,us.kn)();se()(Se)?(gn({event:"Unexpected Logout",payload:{category:"auth",userId:Ze,detail:"id from cookie was null"}}),Ct.L.addError(new Error("Unexpected Logout"),{type:"User Meta",idFromToken:Ze,idFromCookie:Se,detail:"id from cookie was null"}),bn=!0,gt({onLogout:()=>window.location.reload(!0),reason:"Unexpected logout: user id/session cookie missing"})):Se!==Ze&&(gn({event:"Unexpected Logout",payload:{category:"auth",userId:Se,idFromToken:Ze,detail:"Session/Token ID Mismatch"}}),Ct.L.addError(new Error("Unexpected Logout"),{type:"User Meta",idFromToken:Ze,idFromCookie:Se,detail:"Session/Token ID Mismatch"}),bn=!0,(0,ut.wD)().then(()=>window.location.reload(!0)))},Qn=async Se=>{try{const[,Ze,Nt,ns]=await(0,ut.wD)(),{aid:Jt,content_team_admin:gs}=ns;if(gn({event:"Setting Session Cookie",payload:{category:"auth",userId:Jt,detail:"Resuming existing session"}}),(0,us.ac)(Jt),Na()){Se();return}const{first_name:hr,last_name:yo,launchdarkly:Yn,staff:ll}=Ze,cl={avatars:sn(Jt),first_name:hr,user_id:Jt,last_name:yo,staff:ll,content_team_admin:gs},yn={author:Jt,profile:cl},Yr=()=>gt({onLogout:Y()(null)}),Ua=dl=>Se({...yn,...Ta(dl),launchdarkly:Yn,token:Nt}),$a=await vo(Yr).then(re()(Ua)).catch(()=>Se({...yn,token:Nt}));if(_n($a)){gn({event:"Unexpected Logout",payload:{category:"auth",userId:(0,us.mA)(),subscription:$a,detail:"Invalid Subscription"}}),Ct.L.addError(new Error("Unexpected Logout"),{type:"User Meta",userId:(0,us.mA)(),detail:"Invalid Subscription"}),gt({onLogout:()=>window.location=`${(0,B._$)("THREESIXTY_FRONTEND_URI")}/rise`});return}po(ja)}catch(Ze){gn({event:"Unexpected Logout",payload:{category:"auth",userId:(0,us.mA)(),error:Ze,detail:"Error Resuming Session"}}),Ct.L.addError(Ze,{type:"User Meta",userId:(0,us.mA)(),detail:"Error Resuming Session"}),gt({onLogout:()=>window.location.reload(!0)})}},Vr=({onFetchTokens:Se})=>{if(Na()){Qn(Se);return}const Ze=(0,us.mA)(),Nt=(0,us.kn)();if(se()(Ze)||Ze!==Nt){bo().then(cr);return}Qn(Se)},gt=({onLogout:Se,reason:Ze})=>{Ze&&gn({event:"Logout",payload:{category:"auth",userId:(0,us.mA)(),detail:Ze}});const Nt=(0,B._$)("RISE_AUTHORING_URI"),ns=()=>B.BI?Promise.resolve():mo({baseURL:Nt}).send({method:"DELETE",url:"/logout"}),Jt=()=>{(0,us.sm)(),(0,us.gZ)(),(0,ut.Vu)().then(Se)};ns().fork(gs=>{console.error("Failed to log out of rise-authoring-api",gs),Jt()},Jt)},el=ve()($().parse,le()(1,1/0)),It=(Se,Ze)=>{bo().then(()=>{const ns=window.localStorage.getItem(Ze)||"/",Jt=ns===Se?"/":ns;window.localStorage.removeItem(Ze),window.location.href=Jt})},ka=Se=>()=>window.location.href=`${rs}?description=${Se}`,tl=({location:Se})=>()=>{const{hash:Ze,pathname:Nt}=Se,{state:ns,error:Jt,error_description:gs}=el(Ze);Jt?(Ct.L.addError(Jt,{type:"Logout Error",reason:"Error encountered when parsing auth callback.",error_description:gs}),gt({onLogout:ka(gs),reason:`Error encountered when parsing auth callback. Error: ${Jt}; description: ${gs}`})):Vr({onFetchTokens:()=>It(Nt,ns)})},Aa=Se=>((0,Le.useEffect)(tl(Se),[]),null),Ra=(0,Ne.A)(Aa),Ur=({dispatch:Se,loadProfileOKTA:Ze})=>Nt=>{const ns=pe()(["token"],Nt);ve()(Se,Ze)(ns)};var sl=l(24195),$r=l.n(sl),Wr=l(53160),Pa=l.n(Wr),Gr=l(29727),wa=l.n(Gr),Pt=l(96227),nl=l.n(Pt),Ma=l(55427),Kr=l.n(Ma),Zn=l(63159),Oa=l.n(Zn);const dr=async()=>{await bo();const[Se,Ze]=wa()(encodeURIComponent,Kr()(["hash","pathname"],window.location));window.location.href=`/login#c=${Ze}${Se}`},_r=()=>{window.location.href="/"},Qr=null,ol=null,Da=us.rS,Ic=dr,Ba=ut.Vu,Nc=()=>(0,ut.uI)().catch(()=>Ba()),Ha=Je()(Co()([],"roles"),Oa()(Pa()("author"),_r)),Fa=Je()(nl()("",["subscription","status"]),Oa()(Pa()($r(),["active","in_trial","non_renewing"]),_r)),rl=()=>window.location.reload(),al=async({onFetchTokens:Se})=>{try{const[Ze,Nt]=await(0,ut.wD)(),{launchdarkly:ns,riseId:Jt,sub:gs,staff:hr,subscription:yo}=Nt,Yn={staff:hr,user_id:Jt||gs};return Fa(Nt),Se({author:Yn.user_id,launchdarkly:ns,profile:Yn,subscription:yo,token:Ze}),(0,ut.on)("change:roles",Ha),(0,ut.on)("change:status",Fa),(0,ut.on)("change:subdomain",rl),(0,ut.on)("unauthorized",dr),(0,ut.on)("session:closed",dr),Ze}catch{dr()}},{callbackComponent:jc,callbackPath:za,getToken:at,initAuth:kc,logout:il,refreshSession:Zr,request:ur}=B.BI?U:k},12747(qe,be,l){"use strict";l.d(be,{A:()=>B});var k=l(48739);const B=({alpha:G,color:Y,url:K})=>{const ve=(0,k.A)(Y,G);return{backgroundImage:`linear-gradient(0deg,${ve},${ve}), url("${K}")`}}},82277(qe,be,l){"use strict";l.d(be,{EO:()=>H,O0:()=>Z,QJ:()=>he,W5:()=>se,Xl:()=>Le,ac:()=>pe,gZ:()=>le,kn:()=>z,l6:()=>Te,mA:()=>ce,rS:()=>re,sm:()=>ke});var k,U=l(98602),B=l.n(U),G=l(90593),Y=l.n(G),K=l(76557);const ve="_articulate_user_id",oe="_rise_authoring_api_session",se=()=>K.BI?(0,K._$)("SESSION_COOKIE_NAME"):"_articulate_rise_",s=(Ee,ge)=>`${Ee}=${ge}; domain=${(0,K._$)("SESSION_COOKIE_DOMAIN")}; path=/; secure=true`,pe=Ee=>document.cookie=s(ve,Ee),ke=()=>document.cookie=`${s(ve,"")}; Max-Age=-99999999`,le=()=>document.cookie=`${s(oe,"")}; Max-Age=-99999999`,ce=()=>B().load(ve),re=()=>B().load(se()),Le=()=>re()?Y()(re()).staff:!1,Ne=()=>re()?k(re())?.staffRoles||[]:[],X=()=>re()?k(re())?.content_team_admin:!1,$=()=>Ne().includes("content-team")||X(),z=()=>re()?Y()(re()).riseId||Y()(re()).sub||Y()(re()).aid:"",Z=()=>re()?Y()(re()).roles:[],H=()=>re()?Y()(re()).tenantId:"",ae=()=>re()?Y()(re()).subscription||{}:{},he=()=>ae().plan_id||"",Te=()=>ae().status||""},62826(qe,be,l){"use strict";l.d(be,{FB:()=>An,FH:()=>Us,GG:()=>tt,I8:()=>Q,IO:()=>tn,L3:()=>Qe,Vu:()=>ot,b9:()=>Kt,bQ:()=>cs,jI:()=>M,yL:()=>or,zH:()=>$s,zh:()=>pn});var k,U,B=l(16904),G=l.n(B),Y=l(45497),K=l.n(Y),ve=l(68029),oe=l.n(ve),se=l(95033),s=l.n(se),pe=l(50312),ke=l.n(pe),le=l(51688),ce=l.n(le),re=l(7762),Le=l.n(re),Ne=l(87654),X=l.n(Ne),$=l(48639),z=l.n($),Z=l(58267),H=l.n(Z),ae=l(70828),he=l.n(ae),Te=l(27690),Ee=l.n(Te),ge=l(93677),h=l.n(ge),te=l(14685),ie=l.n(te),W=l(17772),Oe=l.n(W),Ce=l(9894),Pe=l.n(Ce),Ue=l(81375),J=l.n(Ue),ze=l(41311),et=l.n(ze),Ke=l(5737),it=l.n(Ke),bt=l(31525),Je=l(12747),je=l(66798),_e=l(58798),vt=l(3055);const Ct=oe()(Pe()("sidebarMode","hidden")),tt=({type:rt,settings:pt})=>rt!=="quiz"||pt.asLesson||pt.asLesson===void 0,Kt=({alpha:rt,color:pt=void 0,hasOverlay:fn=!0,media:Xt={}})=>{const{image:Gn={}}=Xt,{key:Go,src:fo}=Gn,Kn=Go?(0,bt.ME)(Gn):fo,vn=pt===je.df.LIGHT?je.qH:je.KJ;return Kn?fn?(0,Je.A)({alpha:rt/100,color:vn,url:Kn}):{backgroundImage:`url("${Kn}")`}:null},Q=rt=>[je.Py.DARK,je.Py.DARK_ACCENT,je.Py.DARK_IMAGE,je.qB.DARK,je.kY.DARK,je.kY.DARK_IMAGE].includes(rt),ot=ie()(Oe()("lessons"),z()),cs=Pe()("navigationMode",je.b$.RESTRICTED),$e=oe()(Pe()("sidebarMode",je.RE.HIDDEN)),en=Pe()("navigationType",je.br.SIDEBAR),ho=Pe()("navigationType",je.br.COMPACT),pn=H()(J()(Ee(),"navigation"),$e,Pe()("navigation",!0)),Qe=({course:rt,search:pt,isMobile:fn})=>(0,_e.c3)(rt)?!1:(en(rt)||ho(rt)&&!!fn)&&pn(rt)||pt.active,tn=({course:rt,isMobile:pt})=>ho(rt)&&pn(rt)&&!pt,Us=rt=>[je.Py.DARK_IMAGE,je.Py.LIGHT_IMAGE,je.qB.DARK_IMAGE,je.qB.IMAGE,je.kY.DARK_IMAGE,je.kY.LIGHT_IMAGE].includes(rt),$s=rt=>[je.kY.DARK,je.kY.LIGHT].includes(rt),An=vt.WA,or=(rt,pt)=>{if(rt===je.V7.RISE_CLASSIC||rt===je.V7.HORIZON)switch(pt){case je.BL.SPLIT_LEFT_IMAGE:case je.BL.SPLIT_RIGHT_IMAGE:case je.BL.TWO_THIRDS_LEFT_IMAGE:case je.BL.TWO_THIRDS_RIGHT_IMAGE:return!0;default:return!1}else if(rt===je.V7.APEX)switch(pt){case je.BL.SPLIT_LEFT_IMAGE:case je.BL.SPLIT_RIGHT_IMAGE:return!0;default:return!1}return!1},mo=(rt,pt)=>{switch(rt){case k.RISE_CLASSIC:case k.APEX:case k.HORIZON:return pt===U.CENTERED_OVERLAY||pt===U.LEFT_OVERLAY||pt===U.IMAGE;default:return!1}},At=ke()(Ee(),he()),ds=ke()(Ee(),ce()(!1)),Es=J()(ds,"isComplete"),$o=ke()(J()(ce()(!1),"passed"),J()(ds,"isComplete")),po=it()(2,rt=>Le()(H()(K()(ce()(rt),z()),K()($o,h()),K()(Es,h())))),Wo=it()(2,rt=>ie()(et(),po(rt),s()([]),z())),M=X()(it()(2,rt=>H()(At,G()(rt),Wo(rt))))},78979(qe,be,l){"use strict";l.d(be,{QZ:()=>X,R9:()=>Ne,aj:()=>Le});var k=l(16904),U=l.n(k),B=l(87654),G=l.n(B),Y=l(46387),K=l.n(Y),ve=l(58267),oe=l.n(ve),se=l(42117),s=l.n(se);const pe=G()(s()),ke=["a","b","blockquote","br","div","em","h1","h2","h3","h4","h5","h6","i","img","li","mark","ol","p","table","td","th","tbody","thead","tr","s","strong","span","sub","sup","u","ul","details","summary","rise-image","rise-math"],le=["align","allow","allowfullscreen","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","title","width"],ce=pe({allowedAttributes:{"*":["aria-*","class","colspan","id","rowspan","slot","style"],a:["data-external","data-link-type","data-link-destination","href","target","rel"],img:["alt","src"],ol:["start"],span:["data-*"],"rise-image":["key","src","width","height","originalwidth","originalheight"],"rise-math":["data-translate-attrs","long-description","short-description","tex"]},allowedClasses:["fr-*"],allowedSchemes:["data","http","https","mailto"],allowedTags:ke}),re=pe({allowedAttributes:{iframe:le},allowedTags:["iframe"],allowedSchemes:["http","https"]}),Le=oe()(K(),ce,U()("")),Ne=oe()(K(),re,U()("")),X=pe({allowedTags:[],allowedAttributes:[]}),$=pe({allowedAttributes:{"*":["aria-*","class","colspan","rowspan","style"],a:["data-external","data-link-type","data-link-destination","href","target","rel"],ol:["start"],span:["data-*"],"rise-image":["key","src","width","height","originalwidth","originalheight"],"rise-math":["tex"]},allowedClasses:["fr-*"],allowedSchemes:["data","http","https","mailto"],allowedTags:ke.filter(Z=>Z!=="img")}),z=Z=>{const H=Z.replace(/((<br>)|(<\/[a-z]*>))+/g," ");return X(H).replace(/\s{2,}/g," ")}},95258(qe,be,l){"use strict";l.d(be,{Mz:()=>ce,Sg:()=>Ne,Ww:()=>$,X1:()=>ke,XQ:()=>s,d9:()=>se,dg:()=>Le,gL:()=>re,p1:()=>pe,vm:()=>X});var k=l(77987),U=l.n(k),B=l(30717),G=l.n(B),Y=l(85520),K=l.n(Y),ve=l(9894),oe=l.n(ve);const se={LESSON:"lesson",QUIZ:"quiz",SECTION:"section"},s=G()({KNOWLEDGE_CHECK:null,ORDER:null,QUIZ:null}),pe=Z=>`/lessons/${encodeURIComponent(Z)}`,ke="/lessons/progress-summary",le=oe()("type"),ce=le(se.SECTION),re=le(se.QUIZ),Le=K()(["settings","passToContinue"],!0),Ne=Z=>Z?.items?.find(H=>H.family==="knowledgeCheck"&&H?.settings?.requireCorrectAnswer),X=Z=>Z!=null&&Z.type==="blocks",$=Z=>{const H=U()(Z);return H!=null&&Array.isArray(H.items)&&(H.items=H.items.reduce((ae,he)=>(he!=null&&ae.push(z(he)),ae),[])),H},z=Z=>{const H=U()(Z);return H!=null&&Array.isArray(H.items)&&(H.items=H.items.filter(Boolean)),H}},52605(qe,be,l){"use strict";l.d(be,{U2:()=>te});var k,U,B=l(45497),G=l.n(B),Y=l(3793),K=l.n(Y),ve=l(87654),oe=l.n(ve),se=l(85477),s=l.n(se),pe=l(60741),ke=l.n(pe),le=l(29727),ce=l.n(le),re=l(64899),Le=l.n(re),Ne=l(66647),X=l.n(Ne),$=l(90456),z=l.n($),Z=l(76557);const H=5e3,he=ce()(oe()(K())(":n3,n4,i4,n7,n9")),Te=G()(s()(","),ke()),Ee=(Oe,Ce)=>{const Pe=new FontFace(Ce.name,Oe,{family:Ce.name,style:Ce.style,weight:Ce.weight});return Pe.load().then(()=>document.fonts.add(Pe))},ge=(Oe,Ce)=>{const Pe=document.createElement("style");return Pe.innerText=`@font-face { font-family: '${Ce.name}'; src: ${Oe}; font-weight: ${Ce.weight}; font-style: ${Ce.style}; }`,document.head.appendChild(Pe),new(X())(Ce.name,{style:Ce.style,weight:Ce.weight}).load()},h=Oe=>{const Ce=`url(${(0,Z.PJ)(Oe)}) format('woff')`;return("fonts"in document?Ee:ge)(Ce,Oe)},te=(Oe,Ce)=>{const Pe=Promise.all(Oe.map(h));let Ue;const J=new Promise(ze=>{Ue=setTimeout(ze,H)});return Promise.race([Pe,J]).catch(ze=>{console.error("Failed to load learn course fonts:",{fonts:Oe,error:ze.message||ze})}).finally(()=>{clearTimeout(Ue),Ce()})},ie=({baseUri:Oe,typefaces:Ce,onLoad:Pe,onError:Ue})=>{const J=k(Ce).join(", ");return U.load({active:Pe,fontinactive:(ze,et)=>{console.error("Individual font failed to load:",{familyName:ze,fvd:et,typefaces:Ce})},inactive:()=>{console.error("Failed to load course fonts:",{typefaces:Ce,typefaceList:J}),Ue?.(),Pe?.()},timeout:H,custom:{families:he(k(Ce)),urls:[`${Oe}/course_fonts.css?typefaceIds=${Te(Ce)}`]}})},W=()=>U.load({google:{families:["Noto Sans Myanmar:300,400,500,600,700"]},timeout:H})},43419(qe,be,l){"use strict";l.d(be,{yV:()=>B});var k,U=l(82277);const B=oe=>{const se=oe.user,s=se?.profile?.user_id,pe=se?.subscription?.subscription_id||se?.subscription?.id;return{application_source:"360_rise",application_service:"authoring",user_role:(0,U.O0)()||"Creator",reach_user_id:void 0,a360_user_id:s,user_permissions:se?.permissions||[],session_id:oe?.user?.session,subscription_id:se?.subscription?.subscription_id||pe,tenant_id:pe,risecom_billing_id:void 0,...se?.subscription?.plan&&{subscription:{plan:se.subscription.plan,trial_type:se.subscription.trial_type??null}},...oe.ai?.subscription&&{ai:{plan:oe.ai.subscription.plan,start_date:oe.ai.subscription.start_date,end_date:oe.ai.subscription.end_date,status:oe.ai.subscription.status}},...oe.l10n?.subscription&&{localization:{end_date:oe.l10n.subscription.end_date,plan:oe.l10n.subscription.plan,start_date:oe.l10n.subscription.start_date,status:oe.l10n.subscription.status}}}},G=oe=>{const se=oe.course;return{course_id:se?.id,course_locale:se?.locale||oe.l10n&&k(oe.l10n)||null,course_created_via:se?.metadata?.createdVia??null,course_snapshot_id:se?.metadata?.restoredFromSnapshotId??null,copied_course_id:se?.copyOf??null}},Y=(oe,se)=>{if(!se)return{};const s=oe?.lessons?.[se];if(!s)return{};const pe=oe?.course?.lessons?.indexOf(se)+1||null;return{lesson_id:se,lesson_type:s.type,lesson_position:pe}},K=(oe,se,s)=>{if(!se||!s)return{};const ke=(oe.lessons||{})[se];if(!ke?.items)return{};const le=ke.items.find(Le=>Le.id===s);if(!le)return{};const re=ke.items.map(Le=>Le.id).indexOf(s)+1;return{block_id:s,block_type:le.type,block_variant:le.variant,block_family:le.family,block_position:re,block_created_via:le?.metadata?.createdVia??"manual"}},ve=({interactionSetId:oe,interactionSetWorkflowKey:se,taskType:s,resourceType:pe,hasSourceContent:ke}={})=>oe?{interaction_set_id:oe,...se&&{interaction_set_workflow_key:se},interaction_set_task_type:s,interaction_set_task_resource_type:pe,interaction_set_has_source_content:ke}:{}},66688(qe,be,l){"use strict";l.d(be,{$H:()=>Te,Bd:()=>Ee,DX:()=>ce,Ge:()=>W,H7:()=>Ue,MT:()=>he,PH:()=>h,SQ:()=>te,Sd:()=>H,UG:()=>Le,Wz:()=>Pe,_z:()=>ae,cN:()=>$,dT:()=>Ce,d_:()=>re,hM:()=>ge,kJ:()=>Oe,qm:()=>le,rv:()=>ke,up:()=>z,v1:()=>ie,vU:()=>X});var k=l(50195),U=l(26372),B=l(66798),G=l(62826),Y=l(3055),K=l(21632),ve=l(85151),oe=l(10730),se=l(81820),s=l.n(se);const pe=(0,U.createContext)(null);pe.displayName="CourseContext";function ke({children:J,course:ze,courseProgress:et,l10n:Ke,labels:it,lessons:bt,partnerContent:Je,search:je}){const _e=(0,U.useMemo)(()=>({course:ze,courseProgress:et,l10n:Ke,labels:it,lessons:bt,partnerContent:Je,search:je}),[ze,Ke,it,bt,et,Je,je]),vt=(0,U.useMemo)(()=>({l10n:(0,se.omit)(["locales","defaultLocale"],Ke)}),[Ke]),Ct=(0,U.useMemo)(()=>({l10n:{locales:Ke?.locales,defaultLocale:Ke?.defaultLocale,localeSelectorOptions:Ke?.localeSelectorOptions,showLocaleSelector:Ke?.showLocaleSelector,languageCodeMetadata:Ke?.languageCodeMetadata}}),[Ke?.locales,Ke?.defaultLocale,Ke?.localeSelectorOptions,Ke?.showLocaleSelector,Ke?.languageCodeMetadata]);return(0,k.jsx)(pe.Provider,{value:_e,children:(0,k.jsx)(K.xr.Provider,{value:vt,children:(0,k.jsx)(K.zE.Provider,{value:Ct,children:J})})})}function le(){return(0,U.useContext)(pe)}function ce(){return le()?.course}function re(){return(0,K.QQ)(ce()?.title)}function Le(){const J=ce();return J.selectedAuthorId==="none"||!("authors"in J)?null:J.selectedAuthorId?J.authors?.find(ze=>ze.id===J.selectedAuthorId):J.authors?.find(ze=>ze.id===J.author)}function Ne(){return ce().trackingQuizId}function X(){const{labels:J}=le()??{};return J}const $=({isCourseComplete:J,percentCourseComplete:ze})=>{const et=X()??{},{courseResume:Ke,courseStart:it,processStartAgain:bt}=et;return{courseCTALabel:J?bt:ze>0?Ke:it}};function z(){const{courseProgress:J}=le();return J}function Z(){return z()?.lessons}function H(){return z()?.percentComplete}function ae(){return ce().lessonsOnly?.[0]}function he(){const J=Z(),ze=Ne();return(0,G.jI)(J,ze)}function Te(){const J=ce(),{selectedAuthorId:ze}=J?.lessons?.[0]??{};return ze==="none"||!ze?null:J?.authors?.find(et=>et.id===ze)??null}function Ee(){const{course:J,partnerContent:ze}=le();return ze.content?.find(et=>et.id===J.selectedAuthorId)}function ge(){return Ee()?.data?.authors??null}function h(){const{partnerContent:J}=le();return J?.content?.[0]?.data?.authors}function te(){return le().search}function ie(){const{lessons:J}=ce();return(0,U.useMemo)(()=>Array.isArray(J)?J.filter(({type:et})=>et!=="section").length:0,[J])}function W(J){const Ke=ce()?.theme?.accentContrast;return typeof Ke!="string"?B.Em.LIGHT:Ke===B.Em.AUTO?(0,Y.xD)(J):Ke}function Oe(){const J=ce();return J?.theme?.colorAccent??J?.color}function Ce(){return ce()?.theme?.coverImageColor??B.df.DARK}function Pe(){const{currentLocale:J}=(0,oe.nY)(),ze=(0,K.jc)(),et=ce();return(0,ve.V)({course:et,locales:ze,locale:J})}function Ue(){const{lessons:J}=le();return J}},21632(qe,be,l){"use strict";l.d(be,{D_:()=>le,MQ:()=>Le,NB:()=>oe,QQ:()=>se,bs:()=>Ne,dx:()=>s,gY:()=>ve,iR:()=>pe,jc:()=>ke,xr:()=>Y,zE:()=>K});var k=l(48156),U=l(66688),B=l(26372),G=l(10730);const Y=(0,B.createContext)({l10n:null});Y.displayName="TranslationContext";const K=(0,B.createContext)({l10n:null});K.displayName="LocalesContext";function ve(){const{currentLocale:X}=(0,G.nY)(),$=le(),z=ce();return(0,B.useCallback)(Z=>(0,k.Dh)(Z,X,$,z),[X,$,z])}function oe(){const{currentLocale:X}=(0,G.nY)(),$=le(),z=ce();return(0,B.useCallback)(Z=>(0,k.UR)(Z,X,$,z),[X,$,z])}function se(X){const{currentLocale:$}=(0,G.nY)(),z=le();let Z=ce();const H=re();return H&&Object.keys(H).length&&$&&Z&&(Z={...Z,[$]:H}),(0,k.Dh)(X,$,z,Z)}function s(X){const{currentLocale:$}=(0,G.nY)(),z=le(),Z=ce();return(0,B.useMemo)(()=>(0,k.UR)(X,$,z,Z),[$,z,X,Z])}function pe(){return(0,B.use)(K)}function ke(){const X=pe();return(0,k.S)(X)}function le(){const X=pe();return(0,k.HH)(X)}function ce(){const X=(0,B.use)(Y);return(0,k.fF)(X)}function re(){return(0,U.qm)()?.search?.translations}function Le(){const X=(0,B.use)(Y);return(0,k.Zn)(X)}function Ne(){const X=(0,B.use)(Y);return(0,k.cP)(X)}},10730(qe,be,l){"use strict";l.d(be,{fH:()=>s,nY:()=>pe,wZ:()=>ke});var k=l(50195),U=l(26372),B=l(94036);function G(le,ce=window.location){const{defaultLocale:re,locales:Le}=le??{},Ne=ce.hash?(0,B.Rr)(ce.hash.slice(1)):ce;let $=new URLSearchParams(Ne.search).get("locale");const z=new URL(window.location.href);return z.pathname.startsWith("/view-pdf/")&&($=z.searchParams.get("locale")),Le?.find(H=>H.locale===$)?.locale||re}var Y=l(21632),K=l(78308),ve=l(48156),oe=l(74451);const se=(0,U.createContext)({currentLocale:void 0,setCurrentLocale:()=>{}});function s({children:le}){const ce=(0,K.Z)(),re=(0,B.zy)(),Le=(0,oe.LY)(ve.HH),Ne=(0,Y.D_)(),X=Le||Ne,$=(0,oe.LY)(ve.S),z=(0,Y.jc)(),Z=Le?$:z,H=(0,U.useMemo)(()=>G({defaultLocale:X,locales:Z},re),[X,Z,re]),ae=(0,U.useCallback)((Te,Ee="replace")=>{const ge=Te===X?"":Te,h=new URLSearchParams(re.search);h.set("locale",ge);const te=re.pathname+"?"+h.toString()+re.hash;Ee==="push"?ce(te):ce(te,{replace:!0})},[X,ce,re]),he=(0,U.useMemo)(()=>({currentLocale:H,setCurrentLocale:ae}),[H,ae]);return(0,k.jsx)(se.Provider,{value:he,children:le})}function pe(){return(0,U.useContext)(se)}function ke(le){const ce=re=>{const Le=pe();return(0,k.jsx)(le,{...re,...Le})};return ce.displayName=`withCurrentLocale(${le.displayName||le.name})`,ce}},37198(qe,be,l){"use strict";l.d(be,{B1:()=>pe,BN:()=>le,F:()=>oe,R6:()=>K,eB:()=>s,q2:()=>ve});var k=l(50195),U=l(26372),B=l(80915),G=l(80628),Y=l(94933);const K=U.createContext(null),ve=U.createContext(!1),oe=ce=>(0,k.jsx)(ve.Provider,{value:!0,children:(0,k.jsx)(G.A,{...ce})});function se(ce){return class extends U.Component{static displayName=`withStaleTransitionState(${ce.displayName||ce.name})`;static defaultProps={onEnter:()=>{},onEntered:()=>{},onEntering:()=>{},onExit:()=>{},onExited:()=>{},onExiting:()=>{}};nodeRef=U.createRef();onEnterDelegate;onEnteringDelegate;onEnteredDelegate;onExitDelegate;onExitingDelegate;onExitedDelegate;constructor(Le){super(Le),this.state={transitionState:null},this.onEnterDelegate=this.onTransition.bind(this,"enter"),this.onEnteringDelegate=this.onTransition.bind(this,"entering"),this.onEnteredDelegate=this.onTransition.bind(this,"entered"),this.onExitDelegate=this.onTransition.bind(this,"exit"),this.onExitingDelegate=this.onTransition.bind(this,"exiting"),this.onExitedDelegate=this.onTransition.bind(this,"exited")}onTransition=(Le,...Ne)=>{this.setState({transitionState:Le});const X="on"+Le[0].toUpperCase()+Le.slice(1),$=this.props[X];typeof $=="function"&&$(...Ne)};render(){return(0,k.jsx)(K.Provider,{value:this.state.transitionState,children:(0,k.jsx)(ce,{nodeRef:this.nodeRef,...this.props,onEnter:this.onEnterDelegate,onEntered:this.onEnteredDelegate,onEntering:this.onEnteringDelegate,onExit:this.onExitDelegate,onExited:this.onExitedDelegate,onExiting:this.onExitingDelegate})})}}}const s=se(Y.Ay),pe=se(B.A);function ke(ce){const re=U.useContext(ve),Le=U.useContext(K),Ne=U.useRef(ce);return re&&Le?.startsWith?.("exit")||(Ne.current=ce),Ne.current}function le(ce){const re=Le=>{const Ne=ke(Le);return(0,k.jsx)(ce,{...Ne,nodeRef:Le.ref,ref:Le.ref})};return re.displayName=`withTransitionableState(${ce.displayName||ce.name||"Component"})`,re}},31926(qe,be,l){var k={"./en-au":8296,"./en-au.js":8296,"./en-ca":30498,"./en-ca.js":30498,"./en-gb":58011,"./en-gb.js":58011,"./en-ie":2880,"./en-ie.js":2880,"./en-il":1343,"./en-il.js":1343,"./en-in":1825,"./en-in.js":1825,"./en-nz":51586,"./en-nz.js":51586,"./en-sg":50228,"./en-sg.js":50228};function U(G){var Y=B(G);return l(Y)}function B(G){if(!l.o(k,G)){var Y=new Error("Cannot find module '"+G+"'");throw Y.code="MODULE_NOT_FOUND",Y}return k[G]}U.keys=function(){return Object.keys(k)},U.resolve=B,qe.exports=U,U.id=31926},54357(){},38954(){}}]);
