1import{a as Xe,b as et}from"./chunk-SBGG4HPB.js";import{a as F}from"./chunk-O6JGZTGE.js";import{a as We,b as Ke,c as Ye,d as Ze,e as Je}from"./chunk-Q6ZIJZO5.js";import{a as Ge,b as He,c as Qe}from"./chunk-FCXMBZKZ.js";import"./chunk-CODQ2FG7.js";import{a as Fe}from"./chunk-ZTMXBMY7.js";import"./chunk-CIJUSKZC.js";import{e as je}from"./chunk-MQFIFXJH.js";import{b as Te,f as Ee,i as Ae,l as Ue,m as Ne,n as Ve}from"./chunk-4BMJLKVI.js";import{b as ze}from"./chunk-J5NQYXPW.js";import{a as be}from"./chunk-ZX473E7K.js";import{a as ye}from"./chunk-DBIVKRDD.js";import{k as $e}from"./chunk-IHZGCAZ3.js";import"./chunk-EWNYEC2V.js";import{a as qe}from"./chunk-D2YJRDKU.js";import"./chunk-OZEYFL2C.js";import"./chunk-BLAIYN42.js";import"./chunk-Z2DB4BHG.js";import{a as he,b as _e,d as Me,e as Le,ga as A,ya as Be}from"./chunk-V7MTXOXS.js";import{c as Se,g as we,k as Oe,z as ke}from"./chunk-O3EJIWJK.js";import{f as de,h as ue,i as me,l as pe}from"./chunk-EJILD4HA.js";import{a as O}from"./chunk-XSTXKUXO.js";import{a as Re}from"./chunk-7ALBCXC7.js";import{f as xe,h as ve,j as Pe}from"./chunk-B6NHCOLE.js";import{a as fe,b as Ce}from"./chunk-BMEDUSQH.js";import{l as De,q as Ie}from"./chunk-OPSBMBUF.js";import"./chunk-VXJMLLKH.js";import"./chunk-Y56OZ6HC.js";import"./chunk-5KJNBGCD.js";import{b as ge}from"./chunk-DNSVJODJ.js";import{E as se,e as ce,q as le,r as L}from"./chunk-KLT57EFM.js";import{$b as G,Ab as P,D as H,Da as W,E as D,Ea as K,Gb as X,Gc as te,Ic as k,K as Q,Lc as c,Mc as v,Nc as E,Qc as ie,R as I,Rc as ne,Sc as ae,Vc as oe,X as z,Xa as Y,a as B,ac as p,b as $,bc as g,dc as ee,ec as N,fa as j,fc as V,g as U,gc as y,hc as o,ic as a,jc as T,mb as Z,nb as q,ob as J,qc as b,rb as l,uc as x,wc as d,y as S,ya as f,za as C,zd as re}from"./chunk-P43IKVHK.js";var lt=(n,m)=>m.id,st=(n,m)=>m.internalID+"-"+m.sourceID;function dt(n,m){n&1&&(o(0,"section",2)(1,"div",4),T(2,"mat-spinner",5),o(3,"h1"),c(4,"Loading lecture\u2026"),a()()()),n&2&&(l(2),y("diameter",48))}function ut(n,m){if(n&1&&(o(0,"section",3)(1,"h1"),c(2,"Lecture Not Found"),a(),o(3,"p"),c(4),a(),o(5,"a",6),c(6," Browse Torah lectures "),a()()),n&2){let e=d();l(4),v(e.error)}}function mt(n,m){if(n&1){let e=b();o(0,"button",43),x("click",function(){f(e);let i=d(2);return C(i.downloadLecture())}),o(1,"mat-icon"),c(2,"cloud_download"),a()()}}function pt(n,m){if(n&1&&T(0,"img",18),n&2){let e=d(2);y("src",e.speakerImageUrl,q)("alt",e.speakerName)}}function gt(n,m){if(n&1&&(o(0,"div")(1,"dt")(2,"mat-icon",10),c(3,"calendar_today"),a(),c(4," Published "),a(),o(5,"dd"),c(6),a()()),n&2){let e=d(3);l(6),v(e.formattedDate)}}function ht(n,m){if(n&1&&(o(0,"div")(1,"dt")(2,"mat-icon",10),c(3,"schedule"),a(),c(4," Duration "),a(),o(5,"dd"),c(6),a()()),n&2){let e=d(3);l(6),v(e.displayDuration)}}function _t(n,m){if(n&1&&(o(0,"dl",27),p(1,gt,7,1,"div"),p(2,ht,7,1,"div"),a()),n&2){let e=d(2);l(),g(e.formattedDate?1:-1),l(),g(e.displayDuration?2:-1)}}function ft(n,m){if(n&1){let e=b();o(0,"mat-form-field",47)(1,"mat-label"),c(2,"Lecture date"),a(),o(3,"input",49),ae("ngModelChange",function(i){f(e);let r=d(3);return ne(r.date,i)||(r.date=i),C(i)}),x("dateChange",function(i){f(e);let r=d(3);return C(r.lectureDateChanged(i))}),a(),T(4,"mat-datepicker-toggle",50)(5,"mat-datepicker",null,0),a()}if(n&2){let e=te(6),t=d(3);l(3),y("matDatepicker",e),ie("ngModel",t.date),y("min",t.minDate)("max",t.maxDate),l(),y("for",e)}}function Ct(n,m){if(n&1){let e=b();o(0,"div",44)(1,"button",45),x("click",function(){f(e);let i=d(2);return C(i.previousLecture())}),o(2,"mat-icon"),c(3,"chevron_left"),a(),o(4,"span",46),c(5,"Previous"),a()(),p(6,ft,7,5,"mat-form-field",47),o(7,"button",48),x("click",function(){f(e);let i=d(2);return C(i.nextLecture())}),o(8,"span",46),c(9,"Next"),a(),o(10,"mat-icon"),c(11,"chevron_right"),a()()()}if(n&2){let e=d(2);k("no-date-picker",!e.showDatePicker),l(),y("disabled",!(e.seriesLecture!=null&&e.seriesLecture.previousLectureID)||e.navigatingLecture),l(5),g(e.showDatePicker?6:-1),l(),y("disabled",!(e.seriesLecture!=null&&e.seriesLecture.nextLectureID)||e.navigatingLecture)}}function xt(n,m){if(n&1){let e=b();o(0,"button",51),x("click",function(){f(e);let i=d(2);return C(i.play("audio"))}),o(1,"mat-icon"),c(2,"headphones"),a(),c(3),a()}if(n&2){let e=d(2);k("active-media",e.isCurrentLectureAudioActive),G("aria-pressed",e.isCurrentLectureAudioActive),l(3),E(" ",e.seriesLecture!=null&&e.seriesLecture.hasVoiceOver?"Voice":"Listen"," ")}}function vt(n,m){if(n&1){let e=b();o(0,"button",51),x("click",function(){f(e);let i=d(2);return C(i.play("video"))}),o(1,"mat-icon"),c(2,"play_circle"),a(),c(3),a()}if(n&2){let e=d(2);
1k("active-media",e.isCurrentLectureVideoActive),G("aria-pressed",e.isCurrentLectureVideoActive),l(3),E(" ",e.watchActionLabel," ")}}function Pt(n,m){if(n&1){let e=b();o(0,"button",52),x("click",function(){f(e);let i=d(2);return C(i.openRelevantLecturesDialog())}),o(1,"mat-icon"),c(2,"playlist_play"),a(),c(3," Play Related "),a()}}function yt(n,m){if(n&1){let e=b();o(0,"div",53)(1,"button",56),x("click",function(){f(e);let i=d(3);return C(i.setViewMode("text"))}),o(2,"mat-icon"),c(3,"subject"),a(),c(4," Text "),a(),o(5,"button",56),x("click",function(){f(e);let i=d(3);return C(i.setViewMode("pdf"))}),o(6,"mat-icon"),c(7,"picture_as_pdf"),a(),c(8," PDF "),a()()}if(n&2){let e=d(3);l(),k("active",e.viewMode==="text"),l(4),k("active",e.viewMode==="pdf")}}function bt(n,m){if(n&1){let e=b();o(0,"button",57),x("click",function(){f(e);let i=d(3);return C(i.print())}),o(1,"mat-icon"),c(2,"print"),a(),c(3," Print "),a()}}function Mt(n,m){if(n&1&&(o(0,"mat-option",61)(1,"span",59),c(2),a(),o(3,"span",60),c(4),a()()),n&2){let e=m.$implicit,t=d(4);y("value",e),l(2),v(t.languageFlag(e)),l(2),v(t.languageLabel(e))}}function Lt(n,m){if(n&1){let e=b();o(0,"mat-form-field",55)(1,"mat-select",58),x("selectionChange",function(i){f(e);let r=d(3);return C(r.onLanguageSelected(i.value))}),o(2,"mat-select-trigger")(3,"span",59),c(4),a(),o(5,"span",60),c(6),a()(),N(7,Mt,5,3,"mat-option",61,ee),a()()}if(n&2){let e=d(3);l(),y("value",e.selectedLanguage),l(3),v(e.languageFlag(e.selectedLanguage)),l(2),v(e.languageLabel(e.selectedLanguage)),l(),V(e.availableLanguages)}}function St(n,m){if(n&1&&(o(0,"div",37),p(1,yt,9,4,"div",53),p(2,bt,4,0,"button",54),p(3,Lt,9,3,"mat-form-field",55),a()),n&2){let e=d(2);l(),g(e.hasText&&e.hasPdf?1:-1),l(),g(e.canPrint?2:-1),l(),g(e.showLanguageSelector?3:-1)}}function wt(n,m){if(n&1&&(o(0,"div")(1,"dt"),c(2,"Language"),a(),o(3,"dd"),c(4),a()()),n&2){let e=d(3);l(4),v(e.displayLanguageName||e.lecture.language)}}function Ot(n,m){if(n&1&&(o(0,"div")(1,"dt"),c(2,"Lecture code"),a(),o(3,"dd"),c(4),a()()),n&2){let e=d(3);l(4),v((e.seriesLecture==null?null:e.seriesLecture.shiurCode)||e.lecture.code)}}function kt(n,m){if(n&1&&(o(0,"dl",38),p(1,wt,5,1,"div"),p(2,Ot,5,1,"div"),a()),n&2){let e=d(2);l(),g(e.lecture.language?1:-1),l(),g(e.seriesLecture!=null&&e.seriesLecture.shiurCode||e.lecture.code?2:-1)}}function Dt(n,m){n&1&&(o(0,"p",39),c(1," Checking for an available transcript\u2026 "),a())}function It(n,m){if(n&1){let e=b();o(0,"div",62)(1,"mat-icon",10),c(2,"auto_awesome"),a(),o(3,"p"),c(4," This transcript was auto-generated and polished for readability. While we aim for accuracy, errors may occur. If you notice a mistake, please click "),o(5,"button",65),x("click",function(){f(e);let i=d(3);return C(i.openFocusEditor())}
1),c(6," Suggest Edit "),a(),c(7," to submit corrections. "),a()()}}function Tt(n,m){if(n&1){let e=b();o(0,"div",62)(1,"mat-icon",10),c(2,"translate"),a(),o(3,"p"),c(4," This version was translated from the original transcript. If you notice a mistake, please click "),o(5,"button",65),x("click",function(){f(e);let i=d(3);return C(i.openFocusEditor())}),c(6," Suggest Edit "),a(),c(7," to submit corrections. "),a()()}}function Et(n,m){if(n&1&&T(0,"div",63),n&2){let e=d(3);y("dir",e.contentDirection)("innerHTML",e.displayContent,Z)}}function At(n,m){if(n&1&&(o(0,"div",64),c(1),a()),n&2){let e=d(3);y("dir",e.contentDirection),l(),v(e.displayContent)}}function Ut(n,m){if(n&1&&(o(0,"section",40),p(1,It,8,0,"div",62),p(2,Tt,8,0,"div",62),p(3,Et,1,2,"div",63)(4,At,2,2,"div",64),a()),n&2){let e=d(2);l(),g(e.isAiContent&&!e.isHumanDerivedContent?1:-1),l(),g(e.isAiContent&&e.isHumanDerivedContent?2:-1),l(),g(e.isFormattedText?3:4)}}function Nt(n,m){if(n&1&&(o(0,"section",41)(1,"h2",66),c(2),a(),T(3,"iframe",67),o(4,"p",68)(5,"a",69)(6,"mat-icon"),c(7,"open_in_new"),a(),c(8," Open PDF in a new tab "),a()()()),n&2){let e=d(2);l(2),v(e.displayTitle),l(),y("src",e.pdfUrl,J)("title",e.displayTitle+" PDF"),l(2),y("href",e.rawPdfUrl,q)}}function Vt(n,m){if(n&1&&(o(0,"p"),c(1),a()),n&2){let e=d().$implicit;l(),v(e.duration)}}function Ft(n,m){if(n&1){let e=b();o(0,"button",56),x("click",function(){f(e);let i=d().$implicit,r=d(4);return C(r.playRelated(i,"audio"))}),o(1,"mat-icon"),c(2,"headphones"),a(),c(3," Listen "),a()}}function Rt(n,m){if(n&1){let e=b();o(0,"button",56),x("click",function(){f(e);let i=d().$implicit,r=d(4);return C(r.playRelated(i,"video"))}),o(1,"mat-icon"),c(2,"play_circle"),a(),c(3," Watch "),a()}}function Bt(n,m){if(n&1&&(o(0,"article",76)(1,"h3"),c(2),a(),p(3,Vt,2,1,"p"),o(4,"div"),p(5,Ft,4,0,"button",77),p(6,Rt,4,0,"button",77),a()()),n&2){let e=m.$implicit;l(2),v(e.title),l(),g(e.duration?3:-1),l(2),g(e.audioUrl?5:-1),l(),g(e.videoUrl?6:-1)}}function $t(n,m){if(n&1&&(o(0,"div",73),N(1,Bt,7,4,"article",76,lt),a()),n&2){let e=d(3);l(),V(e.relatedLectures.slice(0,6))}}function zt(n,m){if(n&1&&(o(0,"p"),c(1),a()),n&2){let e=d().$implicit;l(),v(e.length)}}function jt(n,m){if(n&1){let e=b();o(0,"button",56),x("click",function(){f(e);let i=d().$implicit,r=d(4);return C(r.playSpeakerLecture(i,"audio"))}),o(1,"mat-icon"),c(2,"headphones"),a(),c(3," Listen "),a()}}function qt(n,m){if(n&1){let e=b();o(0,"button",56),x("click",function(){f(e);let i=d().$implicit,r=d(4);return C(r.playSpeakerLecture(i,"video"))}),o(1,"mat-icon"),c(2,"play_circle"),a(),c(3," Watch "),a()}}function Gt(n,m){if(n&1&&(o(0,"article",76)(1,"h3"),c(2),a(),p(3,zt,2,1,"p"),o(4,"div"),p(5,jt,4,0,"button",77),p(6,qt,4,0,"button",77),a()()),n&2){let e=m.$implicit;l(2),v(e.title),l(),g(e.length?3:-1),l(2),g(e.audioUrl?5:-1),l(),g(e.videoUrl?6:-1)}}function Ht(n,m){if(n&1&&(o(0,"div",73),N(1,Gt,7,4,"article",76,st),a()),n&2){let e=d(3);l(),V(e.speakerLectures)}}function Qt(n,m){n&1&&(o(0,"p",74),c(1," Loading more lectures\u2026 "),a())}function Wt(n,m){if(n&1&&(o(0,"section",42)(1,"aside",70)(2,"mat-icon",10),c(3,"article"),a(),o(4,"div")(5,"h2",71),c(6,"No transcript available"),a(),o(7,"p"),c(8," A transcript is not available for this lecture. You can still play it using the controls above. "),a()()(),o(9,"div")(10,"p",21),c(11,"Continue learning"),a(),o(12,"h2",72),c(13),a(),o(14,"p"),c(15,"Explore more classes from the same speaker."),a()(),p(16,$t,3,0,"div",73)(17,Ht,3,0,"div",73)(18,Qt,2,0,"p",74),o(19,"a",75),c(20),a()()),n&2){let e=d(2);l(13),E("More lectures from ",e.speakerName),l(3),g(e.relatedLectures.length?16:e.speakerLectures.length?17:e.speakerLecturesLoading?18:-1),l(3),y("routerLink",e.speakerPath),l(),E(" View all lectures by ",e.speakerName," ")}}function Kt(n,m){if(n&1){let e=b();o(0,"header",7)(1,"nav",8)(2,"a",9),c(3,"Home"),a(),o(4,"span",10),c(5,"/"),a(),o(6,"a",11),c(7,"Browse Lectures"),a(),o(8,"span",12),c(9,"/"),a(),o(10,"span",13),c(11),a()(),o(12,"div",14)(13,"button",15),x("click",function(){f(e);let i=d();return C(i.openShareDialog())}),o(14,"mat-icon"),c(15,"share"),a()(),p(16,mt,3,0,"button",16),a(),o(17,"div",17),p(18,pt,1,2,"img",18),o(19,"div",19)(20,"div",20)(21,"p",21),c(22),a(),o(23,"h1",22),c(24),a()(),o(25,"div",23)(26,"div",24)(27,"p",25)(28,"mat-icon",10),c(29,"record_voice_over"),a(),o(30,"span"),c(31,"Lectured by"),a(),o(32,"a",26),x("click",function(){f(e);let i=d();return C(i.preparePlayerForSpeakerNavigation())}),c(33),a()(),p(34,_t,3,2,"dl",27),a(),p(35,Ct,12,5,"div",28),a()()()(),o(36,"section",29)(37,"div",30)(38,"div",31)(39,"button",32),x("click",function(){f(e);let i=d();return C(i.back())}),o(40,"mat-icon"),c(41,"arrow_back"),a(),o(42,"span",33),c(43,"Back"),a()(),o(44,"div",34),p(45,xt,4,4,"button",35),p(46,vt,4,4,"button",35),p(47,Pt,4,0,"button",36),a()(),p(48,St,4,3,"div",37),a(),p(49,kt,3,2,"dl",38),p(50,Dt,2,0,"p",39),p(51,Ut,5,3,"section",40),p(52,Nt,9,4,"section",41),p(53,Wt,21,4,"section",42),a()}if(n&2){let e=d();
1l(6),y("routerLink",e.speakerPath),l(5),v(e.displayTitle),l(5),g(e.canDownloadLecture?16:-1),l(),k("has-speaker-image",!!e.lecture.primarySpeakerImg&&!e.hasActiveVideoPlayer),l(),g(e.lecture.primarySpeakerImg&&!e.hasActiveVideoPlayer?18:-1),l(4),v((e.seriesLecture==null?null:e.seriesLecture.seriesName)||e.lecture.sourceName||"Torah Lecture"),l(2),v(e.displayTitle),l(8),y("routerLink",e.speakerPath),l(),E(" ",e.speakerName," "),l(),g(e.formattedDate||e.displayDuration?34:-1),l(),g(e.showDateNavigation?35:-1),l(10),g(e.displayAudioUrl&&!e.hasMatchingRelatedLectureForAudio?45:-1),l(),g(e.displayVideoUrl?46:-1),l(),g(e.relatedLectures.length?47:-1),l(),g(e.showDocumentTools?48:-1),l(),g(e.lecture.language||e.seriesLecture!=null&&e.seriesLecture.shiurCode||e.lecture.code?49:-1),l(),g(e.checkingTranscript?50:-1),l(),g(e.viewMode==="text"&&e.hasText?51:-1),l(),g(e.viewMode==="pdf"&&e.pdfUrl?52:-1),l(),g(!e.checkingTranscript&&!e.hasText&&!e.hasPdf?53:-1)}}var Yt="America/New_York",w="Original",Zt={iw:"he",in:"id",ji:"yi"},Jt=new Set(["he","ar","fa","ur","yi"]),Xt={en:"\u{1F1FA}\u{1F1F8}",he:"\u{1F1EE}\u{1F1F1}",ar:"\u{1F1F8}\u{1F1E6}",fr:"\u{1F1EB}\u{1F1F7}",de:"\u{1F1E9}\u{1F1EA}",es:"\u{1F1EA}\u{1F1F8}",it:"\u{1F1EE}\u{1F1F9}",ru:"\u{1F1F7}\u{1F1FA}",hu:"\u{1F1ED}\u{1F1FA}",pt:"\u{1F1F5}\u{1F1F9}",yi:"\u{1F1EE}\u{1F1F1}",fa:"\u{1F1EE}\u{1F1F7}",ur:"\u{1F1F5}\u{1F1F0}"},tt={english:"en",hebrew:"he",spanish:"es",french:"fr",german:"de",italian:"it",arabic:"ar",russian:"ru",hungarian:"hu",yiddish:"yi"},ei=Object.fromEntries(Object.entries(tt).map(([n,m])=>[m,n.charAt(0).toUpperCase()+n.slice(1)])),Qi=(()=>{class n{constructor(e,t,i,r,s,u,h,_,R,M,it,nt,at,ot,rt,ct){this.route=e,this.router=t,this.location=i,this.sanitizer=r,this.dialog=s,this.powerSearchService=u,this.dynamicSearchService=h,this.playerService=_,this.downloadShiriumService=R,this.printService=M,this.notificationsService=it,this.seoService=nt,this.destroyRef=at,this.document=ot,this.platformId=rt,this.responseInit=ct,this.seriesLecture=null,this.transcriptionData=null,this.loading=!0,this.checkingTranscript=!1,this.navigatingLecture=!1,this.error="",this.canonicalPath="",this.mediaType="audio",this.mediaId=0,this.sourceId=0,this.speakerPath="/browse-lectures/all",this.displayTitle="",this.displayContent="",this.displayAudioUrl="",this.displayVideoUrl="",this.availableLanguages=[],this.selectedLanguage="",this.isAiContent=!1,this.isHumanDerivedContent=!1,this.requestedLanguage=null,this.defaultLanguage="",this.canonicalBasePath="",this.viewMode="text",this.rawPdfUrl="",this.pdfUrl=null,this.relatedLectures=[],this.playbackQueue=[],this.speakerLectures=[],this.speakerLecturesLoading=!1,this.date=new Date,this.minDate=new Date(2005,0,1),this.maxDate=new Date,this.returnUrl=null,this.autoPlayed=!1,this.autoPlayOnLoad=!0,this.legacyRouteActive=!1,this.legacySeriesPath=null,this.activeLectureRoute=null,this.originalContent=null,this.preservePlayerModeOnAutoPlay=!1}ngOnInit(){this.playerService.lectureDocumentPageActive=!0;let e=this.location.getState();this.returnUrl=this.getSafeReturnUrl(e?.returnUrl),this.route.paramMap.pipe(D((t,i)=>this.readRoute(t,i===0)),z((t,i)=>t?.mediaType===i?.mediaType&&t?.mediaId===i?.mediaId&&t?.sourceId===i?.sourceId),j(t=>(this.scrollDocumentToTop(),this.resetLectureState(this.playerService.isAutoplayRouteTransition),t?(this.mediaType=t.mediaType,this.mediaId=t.mediaId,this.sourceId=t.sourceId,this.autoPlayOnLoad=t.autoPlay,this.legacyRouteActive=!!t.legacySeriesPath,this.legacySeriesPath=t.legacySeriesPath,this.activeLectureRoute=t,this.canonicalPath=this.router.url.split(/[?#]/,1)[0],this.loadLecture(t)):(this.applyMissingLectureMetadata(),S(null)))),A(this.destroyRef)).subscribe(t=>{if(!t)return;let i=t.series?.title||t.media?.title,r=t.series?.speakerName||t.media?.speaker;if(!i||!r||!t.media){this.applyMissingLectureMetadata();return}this.applyLecturePayload(t)}),this.route.paramMap.pipe(D(t=>t.get("lang")),z(),A(this.destroyRef)).subscribe(t=>this.applyRequestedLanguage(t))}ngOnDestroy(){this.playerService.isAutoplayRouteTransition||(this.playerService.inlineVideoPageActive&&this.playerService.prepareForBackgroun
1dNavigation(),this.playerService.inlineVideoPageActive=!1),this.playerService.lectureDocumentPageActive=!1}get isInlineVideoPage(){return this.playerService.inlineVideoPageActive}get isVideoDocumentPage(){return!!this.displayVideoUrl&&(this.mediaType==="video"||this.legacyRouteActive)}get hasActiveVideoPlayer(){return this.isVideoDocumentPage&&this.isCurrentLectureVideoActive}get speakerImageUrl(){let e=this.lecture?.primarySpeakerImg;return e?`${Me}${e}${Le}&width=144&height=144&gravity=north`:""}get canDownloadLecture(){return this.mediaId>0&&this.sourceId>0&&!!(this.displayAudioUrl||this.displayVideoUrl)}get isCurrentLectureVideoActive(){return this.isCurrentLectureMediaActive(!1)}get isCurrentLectureAudioActive(){return this.isCurrentLectureMediaActive(!0)}get hasMatchingRelatedLectureForAudio(){return!!this.displayAudioUrl&&this.relatedLectures.some(e=>!!e.audioUrl&&e.audioUrl===this.displayAudioUrl)}get watchActionLabel(){return this.isCurrentLectureVideoActive?this.playerService.inlineVideoPageActive?"Watching":"Return to Video":"Watch"}preparePlayerForSpeakerNavigation(){!L(this.platformId)||!this.isCurrentLectureVideoActive||this.playerService.prepareForBackgroundNavigation()}downloadLecture(){!L(this.platformId)||!this.canDownloadLecture||this.downloadShiriumService.downloadShirium(this.mediaId,this.sourceId,!!this.playerService.sponsorText)}openShareDialog(){return U(this,null,function*(){let e=this.getCurrentPlaybackPosition(),t=this.currentPageUrl,i={url:t,title:this.displayTitle,speakerName:this.speakerName,thumbnailUrl:this.lecture?.primarySpeakerImg,mediaIds:{mId:this.mediaId.toString(),sId:this.sourceId},allowStartAt:this.isMediaLectureUrl(t)&&!!(this.displayAudioUrl||this.displayVideoUrl),currentPosition:e,getCurrentPosition:()=>this.getCurrentPlaybackPosition()},{LectureShareDialogComponent:r}=yield import("./chunk-MXZDYXPX.js");this.dialog.open(r,{data:i,width:"560px",maxWidth:"calc(100vw - 1rem)",panelClass:"lecture-share-dialog-panel",autoFocus:!1})})}getCurrentPlaybackPosition(){return this.isCurrentLectureMediaActive(this.playerService.mediaTypeAudio)&&typeof this.playerService.pi?.getPosition=="function"?Math.max(0,Math.floor(this.playerService.pi.getPosition()||0)):0}play(e){if(!L(this.platformId)||!this.lecture)return;let t=e==="video"?this.displayVideoUrl:this.displayAudioUrl;if(!t)return;let i=this.preservePlayerModeOnAutoPlay;e==="video"&&this.isVideoDocumentPage&&!i?this.playerService.showInlineVideoPlayer():e==="audio"&&!i&&this.playerService.showMiniAudioPlayer();let r=this.createPlayerMediaData(this.displayTitle,t,e,this.mediaId,this.sourceId,this.speakerName,this.seriesLecture?.shiurCode||this.lecture.code,!!this.seriesLecture?.hasVoiceOver);t.includes("ai.itorah.com")?this.playerService.playDubbing(r):this.playerService.playMedia(r,this.getTimestamp(),this.playbackQueue,i)}playRelated(e,t){if(!L(this.platformId))return;let i=t==="video"?e.videoUrl:e.audioUrl;if(!i)return;let r=this.createPlayerMediaData(e.title,i,t,e.mediaId||e.id,e.sourceId||this.sourceId,e.speakerName||this.speakerName,e.shiurCode,e.hasVoiceOver);this.playerService.playMedia(r,null,this.relatedLectures)}playSpeakerLecture(e,t){if(!L(this.platformId))return;let i=t==="video"?e.videoUrl:e.audioUrl;if(!i)return;let r=this.createPlayerMediaData(e.title,i,t,Number(e.internalID),Number(e.sourceID),e.speaker,e.code),s=this.speakerLectures.map(u=>({id:Number(u.internalID),mediaId:Number(u.internalID),sourceId:Number(u.sourceID),title:u.title,duration:u.length,audioUrl:u.audioUrl,videoUrl:u.videoUrl,contentDate:u.date,shiurCode:u.code,hasVoiceOver:!1,speakerName:u.speaker}));this.playerService.playMedia(r,null,s)}back(){return U(this,null,function*(){let t=(this.location.getState()?.navigationId??0)>1;if(this.returnUrl){t?this.location.back():yield this.router.navigateByUrl(this.returnUrl,{replaceUrl:!0});return}if(t){this.location.back();return}yield this.router.navigateByUrl(this.legacySeriesPath||this.speakerPath,{replaceUrl:!0})})}setViewMode(e){this.viewMode=e}onLanguageSelected(e){let t=this.languagePath(e);if(t===this.getCurrentPagePath()){this.onLanguageChange(e);return}this.router.navigateByUrl(t)}onLanguageChange(e){if(this.selectedLanguage=e,e===w){this.restoreOriginalContent();return}let t=this.getTranscriptionContent(e);t&&(this.isAiContent=!0,this.isHumanDerivedContent=!!t.humanDerived,this.displayTitle=t.title||this.originalContent?.title||this.displayTitle,this.displayContent=this.getValidContent(t.text),this.displayAudioUrl=t.audioUrl?`${O.API_AI_BASE_URL}/dubbing/stream/${t.audioUrl}?access_token=${O.TRANSCRIBER_STREAM_API_KEY}`:this.originalContent?.audioUrl||this.displayAudioUrl,this.mediaId=t.audioUrl?this.transcriptionData?.mediaId||this.mediaId:this.originalContent?.mediaId||this.mediaId,this.viewMode="text",this.applyLectureMetadata())}print(){this.canPrint&&this.printService.Print("printLectureDocument",this.displayTitle,this.speakerName)}openFocusEditor(){if(!this.canSuggestEdit)return;let e=this.getTranscriptionContent(this.selectedLanguage)?.id;if(!e){console.warn("Suggest Edit: no AI document ID for the selected version; editor not opened.");return}this.dialog.open(et,{width:"100%",height:"100%",maxWidth:"100vw",maxHeight:"100vh",panelClass:"full-screen-modal",data:{content:this.displayContent,contentId:e}})}openRelevantLecturesDialog(){this.relatedLectures.length&&this.dialog.open(Xe,{data:{title:this.displayTitle,related:this.relatedLectures},width:"420px",maxHeight:"90vh",panelClass:"related-lectures-dialog"}).afterClosed().subscribe(e=>{e?.lec&&this.playRelated(e.lec,e.isAudio?"audio":"video")})}previousLecture(){let e=this.seriesLecture?.previousLectureID;e&&this.navigateToSeriesLecture(e)}nextLecture(){let e=this.seriesLecture?.nextLectureID;e&&this.navigateToSeriesLecture(e)}lectureDateChanged(e){if(!e.value||!this.seriesLecture)return;let t=String(e.value.getMonth()+1).padStart(2,"0"),i=String(e.value.getDate()).padStart(2,"0"),r=`${t}-${i}-${e.value.getFullYear()}`;this.playerService.beginLectureDocumentNavigation(),this.navigatingLecture=!0,this.dynamicSearchService.getSerieLectureByDate(this.sourceId,r).pipe(A(this.destroyRef)).subscribe({next:s=>{let u=this.parseDate(s?.contentDate);if(!s?.id||!s.contentDate||u<this.minDate){this.playerService.isAutoplayRouteTransition=!1,this.navigatingLecture=!1,this.notificationsService.showNotification({Warning:"There are no lectures for this selected date."}),this.date=this.parseDate(this.seriesLecture?.contentDate);return}this.navigateToResolvedLecture(s)},error:()=>{this.playerService.isAutoplayRouteTransition=!1,this.navigatingLecture=!1,this.notificationsService.showNotification({Warning:"Unable to retrieve a lecture for the selected date."}),this.date=this.parseDate(this.seriesLecture?.contentDate)}})}get hasText(){return!!this.displayContent.trim()}get hasPdf(){return!!this.rawPdfUrl}get isFormattedText(){return/<br\s*\/?>|<\/p>|<strong>|<b>|<div|<span/i.test(this.displayContent)}get canSuggestEdit(){return this.hasText&&this.isAiContent&&!!this.selectedLanguage&&this.selectedLanguage!==w&&this.viewMode==="text"}get canPrint(){return L(this.platformId)&&this.hasText&&this.viewMode==="text"&&!window.matchMedia("(max-width: 700px)").matches}get showLanguageSelector(){return!!this.transcriptionData&&this.availableLanguages.length>1&&this.viewMode==="text"}get showDocumentTools(){return this.hasText&&this.hasPdf||this.showLanguageSelector||this.canPrint}get showDateNavigation(){return!!this.seriesLecture}get showDatePicker(){return this.showDateNavigation&&(this.lecture?.sourceName||this.seriesLecture?.seriesName)!=="Daily Hok"}get defaultDocumentLanguage(){let e=(this.lecture?.language||"").trim().toLowerCase();return tt[e]||"en"}get contentDirection(){let e=this.languageCode(this.selectedLanguage)||this.defaultDocumentLanguage;return Jt.has(e.split("-")[0])?"rtl":"ltr"}get displayLanguageName(){return!this.selectedLanguage||this.selectedLanguage===w?this.lecture?.language||"":this.languageLabel(this.selectedLanguage)}get speakerName(){return this.seriesLecture?.speakerName||this.lecture?.speaker||""}get displayDuration(){return this.seriesLecture?.duration||this.lecture?.length||""}get canonicalUrl(){return`${O.APP_BASE_URL}${this.canonicalPath}`}get currentPageUrl(){return new URL(this.getCurrentPagePath(),O.APP_BASE_URL).toString()}getCurrentPagePath(){return(typeof this.location.path=="function"?this.location.path(!0):"")||this.router.url||this.canonicalPath}isMediaLectureUrl(e){let t=new URL(e,O.APP_BASE_URL).pathname;return/^\/lecture\/(?:audio|video)\//.test(t)}get formattedDate(){let e=this.seriesLecture?.contentDate||this.lecture?.date;if(!e)return"";let t=this.parseDate(e);return Number.isNaN(t.valueOf())?"":new Intl.DateTimeFormat("en-US",{year:"numeric",month:"long",day:"numeric"}).format(t)}loadLecture(e){return this.checkingTranscript=!0,Q({media:this.powerSearchService.getData(e.sourceId,String(e.mediaId),!0).pipe(I(t=>(console.error("[LECTURE] Failed to load media document.",t),S(null)))),series:this.shouldLoadSeries(e.sourceId)?this.dynamicSearchService.getSerieLectureByID(e.s
1ourceId,e.mediaId).pipe(I(()=>S(null))):S(null),transcription:this.powerSearchService.checkTranscribedContent(e.sourceId,String(e.mediaId)).pipe(I(()=>S(null)))}).pipe(D(t=>$(B({},t),{media:t.media||this.mapSeriesToMedia(t.series,e)})),D(t=>$(B({},t),{playbackQueue:this.createInitialPlaybackQueue(t,e)})))}isCurrentLectureMediaActive(e){return this.playerService.isPlaying&&this.playerService.mediaTypeAudio===e&&Number(this.playerService.mediaId)===Number(this.mediaId)&&Number(this.playerService.sourceId)===Number(this.sourceId)}loadCanonicalSuccessors(e,t,i){let r=Number(e.nextLectureID||0);return!r||i<=0?S([]):this.dynamicSearchService.getSerieLectureByID(t.sourceId,r).pipe(j(s=>{if(!s)return S([]);let u=this.toPlaybackLecture(s);return!u||!this.isPlayableLecture(u,t.mediaType)?S([]):this.loadCanonicalSuccessors(s,t,i-1).pipe(D(h=>[u,...h]))}),I(s=>(console.warn(`[LECTURE] Unable to preload autoplay lecture ${r}.`,s),S([]))))}createInitialPlaybackQueue(e,t){let i=this.toCurrentPlaybackLecture(e,t);if(!i)return[];let r=(e.series?.lectures||[]).map(M=>this.toPlaybackLecture(M)).filter(M=>!!M),s=r.findIndex(M=>M.id===t.mediaId||M.mediaId===t.mediaId),u=Number(e.series?.nextLectureID||0),h=Number(e.series?.nextMediaId||0),_=r.findIndex(M=>!!u&&M.id===u||!!h&&M.mediaId===h),R=_>=0?r.slice(_):s>=0?r.slice(s+1):[];return _>=0&&!this.isPlayableLecture(r[_],t.mediaType)?[i]:this.dedupePlaybackQueue([i,...R.filter(M=>this.isPlayableLecture(M,t.mediaType))])}toCurrentPlaybackLecture(e,t){let i=e.media;if(!i)return null;let r=e.series;return{id:t.mediaId,mediaId:t.mediaId,sourceId:Number(r?.sourceId||i.sourceID||t.sourceId),title:r?.title||i.title,duration:r?.duration||i.length||"",audioUrl:r?.audioUrl||i.audioUrl||i.relatedAudioUrl||"",videoUrl:r?.videoUrl||i.videoUrl||i.relatedVideoUrl||"",contentDate:r?.contentDate||i.date||"",shiurCode:r?.shiurCode||i.code||"",hasVoiceOver:!!r?.hasVoiceOver,speakerName:r?.speakerName||i.speaker||""}}toPlaybackLecture(e){if(!e)return null;let t=Number(e.mediaId||e.id||0);return t?{id:t,mediaId:t,sourceId:Number(e.sourceId||this.sourceId),title:e.title||"",duration:e.duration||"",audioUrl:e.audioUrl||"",videoUrl:e.videoUrl||"",contentDate:e.contentDate||"",shiurCode:e.shiurCode||"",hasVoiceOver:!!e.hasVoiceOver,speakerName:e.speakerName||this.speakerName}:null}isPlayableLecture(e,t){return t==="audio"?!!e.audioUrl:!!e.videoUrl}dedupePlaybackQueue(e){let t=new Set;return e.filter(i=>{if(!i)return!1;let r=`${i.sourceId}:${i.id}`;return t.has(r)?!1:(t.add(r),!0)})}applyLecturePayload(e){let t=e.media;this.lecture=t,this.seriesLecture=e.series,this.sourceId=Number(t.sourceID||this.sourceId),this.mediaId=Number(t.id||t.internalID||this.mediaId),this.speakerPath=this.createSpeakerPath(e.series?.speakerName||t.speaker);let i=this.getValidContent(e.series?.content||e.series?.text||""),r=this.getValidContent(t.text||"");this.displayTitle=e.series?.title||t.title,this.displayContent=i||r,this.displayAudioUrl=e.series?.audioUrl||t.audioUrl||t.relatedAudioUrl||"",this.displayVideoUrl=e.series?.videoUrl||t.videoUrl||t.relatedVideoUrl||"",this.canonicalBasePath=this.createCanonicalLecturePath(t),this.legacyRouteActive&&(this.canonicalPath=this.canonicalBasePath),this.preservePlayerModeOnAutoPlay=this.playerService.isAutoplayRouteTransition,this.preservePlayerModeOnAutoPlay||(this.playerService.inlineVideoPageActive=this.mediaType==="video"&&!!this.displayVideoUrl),this.relatedLectures=e.series?.lectures||[],this.playbackQueue=e.playbackQueue||[],this.date=this.parseDate(e.series?.contentDate||t.date),this.rawPdfUrl=this.getPdfUrl(e),this.pdfUrl=this.rawPdfUrl?this.sanitizer.bypassSecurityTrustResourceUrl(this.toAbsoluteUrl(this.rawPdfUrl)):null,this.viewMode=this.displayContent?"text":this.rawPdfUrl?"pdf":"text",this.originalContent={title:this.displayTitle,content:this.displayContent,audioUrl:this.displayAudioUrl,mediaId:this.mediaId},this.selectedLanguage=this.displayContent?w:"",this.applyLectureMetadata(),this.loading=!1,this.navigatingLecture=!1,this.playerService.isAutoplayRouteTransition=!1,L(this.platformId)&&queueMicrotask(()=>this.autoPlayInBrowser()),this.applyTranscription(e.transcription),this.preloadPlaybackQueue(e)}preloadPlaybackQueue(e){let t=this.activeLectureRoute;!t||!e.series?.nextLectureID||!L(this.platformId)||this.resolvePlaybackQueue(e,t).pipe(A(this.destroyRef)).subscribe(i=>{this.playbackQueue=i})}resolvePlaybackQueue(e,t){let i=this.createInitialPlaybackQueue(e,t);return!e.series?.nextLectureID||!L(this.platformId)?S(i):this.loadCanonicalSuccessors(e.series,t,2).pipe(D(r=>this.dedupePlaybackQueue([i[0],...r,...i.slice(1)])),I(r=>(console.warn("[LECTURE] Unable to preload the autoplay lecture queue.",r),S(i))))}applyTranscription(e){if(this.checkingTranscript=!1,!e?.languages||
1!Object.keys(e.languages).length){this.displayContent||this.loadSpeakerLectures();return}this.transcriptionData=e;let t=this.originalContent?.content?this.defaultDocumentLanguage:"",i=Object.keys(e.languages).filter(s=>!t||this.languageCode(s)!==t).sort((s,u)=>this.languageLabel(s).localeCompare(this.languageLabel(u)));this.availableLanguages=this.originalContent?.content?[w,...i]:i,this.defaultLanguage=this.originalContent?.content?w:this.resolveDefaultLanguage(i);let r=this.requestedLanguage?this.resolveLanguageKey(this.requestedLanguage):null;if(this.requestedLanguage&&!r){this.redirectToDefaultLanguage();return}this.onLanguageChange(r||this.defaultLanguage)}restoreOriginalContent(){this.originalContent&&(this.displayTitle=this.originalContent.title,this.displayContent=this.originalContent.content,this.displayAudioUrl=this.originalContent.audioUrl,this.mediaId=this.originalContent.mediaId,this.isAiContent=!1,this.isHumanDerivedContent=!1,this.applyLectureMetadata())}getTranscriptionContent(e){let t=this.transcriptionData?.languages?.[e];return t?.polished||t?.translation||t?.summary}resolveDefaultLanguage(e){return e.find(t=>t==="en"||t==="English")||e[0]}languageLabel(e){return e===w?this.publishedLanguageName:this.transcriptionData?.languageNames?.[e]||e}get publishedLanguageName(){let e=(this.lecture?.language||"").trim();if(e)return e;let t=this.defaultDocumentLanguage;return this.transcriptionData?.languageNames?.[t]||ei[t]||w}languageFlag(e){let t=e===w?this.defaultDocumentLanguage:this.languageCode(e);return Xt[t]||""}languageCode(e){if(!e||e===w)return"";let t=this.transcriptionData?.languageCodes?.[e]||"";return Zt[t]||t}languageSlug(e){return this.languageCode(e)||this.toSlug(e)}resolveLanguageKey(e){let t=e.toLowerCase();return this.availableLanguages.find(i=>i!==w&&this.languageSlug(i).toLowerCase()===t)||null}languagePath(e){if(!e||e===this.defaultLanguage||e===w)return this.canonicalBasePath;let t=this.languageSlug(e);return t?`${this.canonicalBasePath}/${t}`:this.canonicalBasePath}applyRequestedLanguage(e){if(this.requestedLanguage=e,!this.transcriptionData)return;let t=e?this.resolveLanguageKey(e):this.defaultLanguage;if(!t){this.redirectToDefaultLanguage();return}t!==this.selectedLanguage&&this.onLanguageChange(t)}redirectToDefaultLanguage(){this.requestedLanguage=null,this.router.navigateByUrl(this.canonicalBasePath,{replaceUrl:!0})}buildLanguageAlternates(){let e={},t=this.languageCode(this.defaultLanguage)||this.defaultDocumentLanguage;t&&(e[t]=this.canonicalBasePath);for(let i of this.availableLanguages){let r=this.languageCode(i);r&&!e[r]&&(e[r]=this.languagePath(i))}return e}navigateToSeriesLecture(e){this.playerService.beginLectureDocumentNavigation(),this.navigatingLecture=!0,this.dynamicSearchService.getSerieLectureByID(this.sourceId,e).pipe(A(this.destroyRef)).subscribe({next:t=>this.navigateToResolvedLecture(t),error:()=>{this.playerService.isAutoplayRouteTransition=!1,this.navigatingLecture=!1,this.notificationsService.showNotification({Warning:"Unable to retrieve the requested lecture."})}})}navigateToResolvedLecture(e){return U(this,null,function*(){let t=this.mediaType==="video"&&e.videoUrl?"video":"audio",i=this.toSlug(e.speakerName||this.speakerName),r=this.toSlug(e.title),s=e.sourceId||this.sourceId,u=e.mediaId||e.id,h=this.returnUrl?{returnUrl:this.returnUrl}:void 0;try{(yield this.router.navigate(["/lecture",t,i,r,u,s],{state:h}))||(this.playerService.isAutoplayRouteTransition=!1,this.navigatingLecture=!1)}catch(_){throw this.playerService.isAutoplayRouteTransition=!1,this.navigatingLecture=!1,_}this.navigatingLecture=!1})}readRoute(e,t=!0){let i=this.route.snapshot.data||{},r=!!i.legacyLectureDocument,s=e.get("media-type"),u=Number(e.get("mediaId")||e.get("lectureId")||e.get("id")),h=Number(e.get("sourceId")||e.get("serieId")||i.lectureSourceId);if(!r&&s!=="audio"&&s!=="video"||!Number.isInteger(u)||u<=0||!Number.isInteger(h)||h<=0)return null;let _=this.router.url.split(/[?#]/,1)[0].split("/").filter(Boolean)[0];return{mediaType:r?"audio":s,mediaId:u,sourceId:h,autoPlay:!r&&(t||this.playerService.isAutoplayRouteTransition),legacySeriesPath:r&&_?`/${_}
1`:null,lang:e.get("lang")}}scrollDocumentToTop(){L(this.platformId)&&this.document.defaultView?.scrollTo({top:0,left:0,behavior:"auto"})}resetLectureState(e=!1){if(e){this.checkingTranscript=!1,this.navigatingLecture=!0,this.error="",this.transcriptionData=null,this.availableLanguages=[],this.selectedLanguage="",this.isAiContent=!1,this.isHumanDerivedContent=!1,this.speakerLectures=[],this.speakerLecturesLoading=!1,this.autoPlayed=!1;return}let t=this.playerService.isAutoplayRouteTransition||this.playerService.inlineVideoPageActive&&this.playerService.isPlaying;this.loading=!0,this.checkingTranscript=!1,this.navigatingLecture=!1,this.error="",this.lecture=void 0,this.seriesLecture=null,this.transcriptionData=null,this.displayTitle="",this.displayContent="",this.displayAudioUrl="",this.displayVideoUrl="",t||(this.playerService.inlineVideoPageActive=!1),this.availableLanguages=[],this.selectedLanguage="",this.isAiContent=!1,this.isHumanDerivedContent=!1,this.rawPdfUrl="",this.pdfUrl=null,this.relatedLectures=[],this.playbackQueue=[],this.speakerLectures=[],this.speakerLecturesLoading=!1,this.originalContent=null,this.autoPlayed=!1}applyLectureMetadata(){if(!this.lecture)return;let e=this.buildLanguageAlternates();if(this.canonicalBasePath){let h=this.languagePath(this.selectedLanguage),_=this.languageCode(this.selectedLanguage);this.canonicalPath=_&&e[_]&&e[_]!==h?e[_]:h}let t=`${this.displayTitle}, lectured by ${this.speakerName} | iTorah`,i=this.createDescription(),r=this.lecture.primarySpeakerImg||"assets/img/social/share.png";this.seoService.setDocumentLanguage(this.languageCode(this.selectedLanguage)||this.defaultDocumentLanguage),this.seoService.setAlternateLanguages(e,this.canonicalBasePath),this.seoService.setDynamicPageMetadata({title:t,description:i,path:this.canonicalPath,keywords:"lecture, Torah lecture, iTorah",image:r,openGraphType:this.displayVideoUrl?"video.other":"music.song",public:!0});let s=`${O.APP_BASE_URL}${this.canonicalPath}`,u=[];this.displayAudioUrl&&u.push(this.createMediaStructuredData("AudioObject","audio",this.displayAudioUrl,s,i)),this.displayVideoUrl&&u.push(this.createMediaStructuredData("VideoObject","video",this.displayVideoUrl,s,i)),this.seoService.setStructuredData("lecture",{"@context":"https://schema.org","@graph":[...u,{"@type":"BreadcrumbList","@id":`${s}#breadcrumbs`,itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:`${O.APP_BASE_URL}/`},{"@type":"ListItem",position:2,name:"Browse Lectures",item:`${O.APP_BASE_URL}${this.speakerPath}`},{"@type":"ListItem",position:3,name:this.displayTitle,item:s}]}]})}createMediaStructuredData(e,t,i,r,s){let u={"@type":e,"@id":`${r}#${t}`,name:this.displayTitle,description:s,url:r,contentUrl:this.toAbsoluteUrl(i),author:{"@type":"Person",name:this.speakerName,url:`${O.APP_BASE_URL}${this.speakerPath}`},inLanguage:this.languageCode(this.selectedLanguage)||this.defaultDocumentLanguage},h=this.toIsoDuration(this.seriesLecture?.duration||this.lecture?.length);h&&(u.duration=h);let _=this.toIsoDate(this.seriesLecture?.contentDate||this.lecture?.date);return _&&(u.uploadDate=_),this.lecture?.primarySpeakerImg&&(u.thumbnailUrl=this.lecture.primarySpeakerImg),u}applyMissingLectureMetadata(){!L(this.platformId)&&this.responseInit&&(this.responseInit.status=404),this.error="This lecture could not be found or is currently unavailable.",this.loading=!1,this.navigatingLecture=!1,this.playerService.isAutoplayRouteTransition=!1,this.canonicalPath=this.router.url.split(/[?#]/,1)[0],this.seoService.setDynamicPageMetadata({title:"Lecture Not Found | iTorah",description:"The requested iTorah lecture could not be found.",path:this.canonicalPath,image:"assets/img/social/share.png",openGraphType:"website",public:!1}),this.seoService.removeStructuredData("lecture")}autoPlayInBrowser(){if(this.autoPlayed||!this.autoPlayOnLoad)return;if(!(this.mediaType==="video"?this.displayVideoUrl:this.displayAudioUrl)){this.preservePlayerModeOnAutoPlay=!1;return}this.autoPlayed=!0;try{this.playerService.pendingPlayTrigger="autoplay_initial",this.play(this.mediaType)}finally{this.preservePlayerModeOnAutoPlay=!1}
1}mapSeriesToMedia(e,t){if(!e?.title||!e.speakerName)return null;let i=Number(e.mediaId||e.id||t.mediaId);return{id:i,internalID:String(i),sourceID:Number(e.sourceId||t.sourceId),title:e.title,text:e.content||e.text||"",date:e.contentDate||"",audioUrl:e.audioUrl||"",videoUrl:e.videoUrl||"",length:e.duration||"",speaker:e.speakerName,sourceName:e.seriesName||"",language:"",code:e.shiurCode||"",pdf:e.files?.find(r=>r.type?.toLowerCase()==="pdf"||r.location?.toLowerCase().includes(".pdf"))?.location,keywords:"",triggeredBy:"",hasRelatedAudio:!1,speakerID:0,totalDurationSeconds:0,unixDate:0,objectID:String(i)}}createCanonicalLecturePath(e){return![1,10,32].includes(this.sourceId)&&this.lecture?.sourceName?["",this.toSlug(this.lecture.sourceName),this.toSlug(this.displayTitle||e.title),this.sourceId,this.mediaId].join("/"):["","lecture","text",this.toSlug(this.speakerName||e.speaker),this.toSlug(this.displayTitle||e.title),this.mediaId,this.sourceId].join("/")}createPlayerMediaData(e,t,i,r,s,u,h,_=!1){return{title:e,url:t,sponsor:"",sourceId:s,mediaId:r,isOnlyAudio:i==="audio",speaker:u,playSourceType:"direct",shiurCode:h,speakerImg:this.lecture?.primarySpeakerImg,date:this.seriesLecture?.contentDate||this.lecture?.date,duration:this.displayDuration,seriesName:this.seriesLecture?.seriesName||this.lecture?.sourceName||"Torah Lecture",voiceOver:_}}createDescription(){let e=this.displayVideoUrl?"Watch or listen to":"Listen to",t=this.displayDuration?` This lecture is ${this.displayDuration} long.`:"";return`${e} \u201C${this.displayTitle},\u201D a Torah lecture by ${this.speakerName} on iTorah.${t}`}shouldLoadSeries(e){return![1,10,32].includes(e)}loadSpeakerLectures(){return U(this,null,function*(){if(!(!L(this.platformId)||!this.lecture?.speaker||this.speakerLecturesLoading||this.speakerLectures.length)){this.speakerLecturesLoading=!0;try{let e=yield H(this.powerSearchService.getSpeakerLectures(this.lecture.speaker,7));this.speakerLectures=e.hits.filter(t=>String(t.internalID)!==String(this.mediaId)||Number(t.sourceID)!==this.sourceId).slice(0,6)}catch(e){console.error("[LECTURE] Failed to load related speaker lectures.",e)}finally{this.speakerLecturesLoading=!1}}})}getPdfUrl(e){return e.series?.files?.find(i=>i.type?.toLowerCase()==="pdf"||i.location?.toLowerCase().includes(".pdf"))?.location||e.media?.pdf||""}getValidContent(e){let t=e?.trim()||"";if(!t||t.startsWith("<p>Click the"))return"";if(!/<[a-z][^>]*>/i.test(t))return t.replace(/\u00a0/g," ");let i=this.document.createElement("div");i.innerHTML=t,this.replaceNonBreakingSpaces(i),this.removeInlineFontSizes(i);let r=Array.from(i.querySelectorAll("p, div, section, article, blockquote, li, h1, h2, h3, h4, h5, h6")).reverse();for(let s of r)this.isVisuallyEmptyBlock(s)&&s.parentNode?.removeChild(s);return i.innerHTML.trim()}replaceNonBreakingSpaces(e){for(let t of Array.from(e.childNodes))t.nodeType===3?t.textContent=t.textContent?.replace(/\u00a0/g," ")||"":this.replaceNonBreakingSpaces(t)}removeInlineFontSizes(e){for(let t of Array.from(e.querySelectorAll("font[size]")))t.removeAttribute("size");for(let t of Array.from(e.querySelectorAll("[style]"))){let r=(t.getAttribute("style")||"").split(";").map(s=>s.trim()).filter(s=>{let u=s.indexOf(":");return u<0||s.slice(0,u).trim().toLowerCase()!=="font-size"}).filter(Boolean).join("; ");r?t.setAttribute("style",r):t.removeAttribute("style")}}isVisuallyEmptyBlock(e){if(e.querySelector("img, picture, svg, video, audio, iframe, canvas, object, embed, hr, input, button"))return!1;let t=e.cloneNode(!0);for(let i of Array.from(t.querySelectorAll("br")))i.parentNode?.removeChild(i);return!t.textContent?.trim()}createSpeakerPath(e){let t=this.toSlug(e);return t?`/browse-lectures/all/${t}/all-categories/all-subcategories/all-languages/all-dates`:"/browse-lectures/all"}toSlug(e){return(e||"").normalize("NFKD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}toAbsoluteUrl(e){return e.startsWith("//")?`https:${e}`:e}toIsoDuration(e){if(!e)return"";let t=e.split(":").map(Number);if(t.some(u=>!Number.isFinite(u)))return"";let[i,r,s]=t.length===3?t:[0,t[0]??0,t[1]??0];return!i&&!r&&!s?"":`PT${i?`${i}H`:""}${r?`${r}M`:""}${s?`${s}S`:""}`}toIsoDate(e){if(!e)return"";let t=new Date(e);return Number.isNaN(t.valueOf())?"":t.toISOString()}parseDate(e){if(!e)return new Date;if(/^\d{1,2}-\d{1,2}-\d{4}$/.test(e)){let[u,h,_]=e.split("-").map(Number);return new Date(_,u-1,h)}let t=e.match(/^(\d{4})-(\d{1,2})-(\d{1,2})(?:T[\d:.]+)?$/);if(t){let[,u,h,_]=t.map(Number);return new Date(u,h-1,_)}let i=new Date(e);if(Number.isNaN(i.valueOf()))return new Date;let r=new Intl.DateTimeFormat("en-US",{timeZone:Yt,year:"numeric",month:"numeric",day:"numeric"}).formatToParts(i),s=u=>Number(r.find(h=>h.type===u)?.value);return new Date(s("year"),s("month")-1,s("day"))}
1getTimestamp(){let e=this.route.snapshot.queryParamMap.get("t");if(e===null||e.trim()==="")return null;let t=Number(e);return Number.isFinite(t)&&t>=0?t:null}getSafeReturnUrl(e){return typeof e=="string"&&e.startsWith("/")&&!e.startsWith("//")?e:null}static{this.\u0275fac=function(t){return new(t||n)(P(de),P(ue),P(ce),P(se),P(De),P(Fe),P(qe),P($e),P(ze),P(F),P(Re),P(Be),P(K),P(W),P(Y),P(re,8))}}static{this.\u0275cmp=X({type:n,selectors:[["app-lecture-document"]],features:[oe([F])],decls:4,vars:5,consts:[["lectureDatePicker",""],["id","page","data-page-kind","lecture",1,"page","lecture-document"],["aria-live","polite","aria-busy","true",1,"lecture-state","loading-state"],[1,"lecture-state","error-state"],[1,"loading-content"],["color","accent","aria-label","Loading lecture",3,"diameter"],["mat-flat-button","","color","primary","routerLink","/browse-lectures/all"],[1,"lecture-hero"],["aria-label","Breadcrumb",1,"breadcrumbs"],["routerLink","/"],["aria-hidden","true"],[3,"routerLink"],["aria-hidden","true",1,"current-crumb-separator"],["aria-current","page","dir","auto"],["aria-label","Lecture actions",1,"header-utility-actions"],["mat-icon-button","","type","button","aria-label","Share lecture","matTooltip","Share Lecture",1,"header-utility-action",3,"click"],["mat-icon-button","","type","button","aria-label","Download lecture","matTooltip","Download Lecture",1,"header-utility-action"],[1,"hero-content"],["width","144","height","144",1,"speaker-image",3,"src","alt"],[1,"lecture-heading"],[1,"lecture-title-block"],[1,"eyebrow"],["dir","auto"],[1,"hero-details-row"],[1,"hero-info"],[1,"speaker"],[3,"click","routerLink"],["aria-label","Lecture details",1,"hero-meta"],["aria-label","Lecture date navigation",1,"date-navigation","hero-date-navigation",3,"no-date-picker"],[1,"lecture-body"],[1,"lecture-toolbar"],["aria-label","Lecture actions",1,"lecture-actions"],["mat-stroked-button","","type","button","aria-label","Back",1,"back-action",3,"click"],[1,"back-label"],[1,"playback-actions"],["mat-stroked-button","","type","button",1,"media-action",3,"active-media"],["mat-flat-button","","color","accent","type","button"],["aria-label","Document tools",1,"document-tools"],[1,"lecture-facts"],["aria-live","polite",1,"transcript-check"],["id","printLectureDocument","aria-label","Lecture text",1,"lecture-text"],["aria-labelledby","lecture-pdf-heading",1,"lecture-pdf"],["aria-labelledby","related-heading",1,"related-section"],["mat-icon-button","","type","button","aria-label","Download lecture","matTooltip","Download Lecture",1,"header-utility-action",3,"click"],["aria-label","Lecture date navigation",1,"date-navigation","hero-date-navigation"],["mat-stroked-button","","type","button","aria-label","Previous lecture","matTooltip","Previous Lecture",3,"click","disabled"],[1,"navigation-label"],["appearance","outline",1,"date-input"],["mat-stroked-button","","type","button","aria-label","Next lecture","matTooltip","Next Lecture",3,"click","disabled"],["matInput","",3,"ngModelChange","dateChange","matDatepicker","ngModel","min","max"],["matSuffix","",3,"for"],["mat-stroked-button","","type","button",1,"media-action",3,"click"],["mat-flat-button","","color","accent","type","button",3,"click"],["aria-label","Document format",1,"view-mode-switcher"],["mat-stroked-button","","type","button","matTooltip","Print",1,"print-action"],["appearance","outline",1,"language-select"],["mat-stroked-button","","type","button",3,"click"],["mat-stroked-button","","type","button","matTooltip","Print",1,"print-action",3,"click"],["panelClass","language-select-panel","aria-label","Transcript language","matTooltip","Transcript language",3,"selectionChange","value"],["aria-hidden","true",1,"language-flag"],[1,"language-name"],[3,"value"],["role","note",1,"ai-disclaimer"],[1,"text-content",3,"dir","innerHTML"],[1,"text-content","plain-text",3,"dir"],["mat-stroked-button","","type","button",1,"disclaimer-edit-action",3,"click"],["id","lecture-pdf-heading"],[3,"src","title"],[1,"document-link"],["mat-stroked-button","","target","_blank","rel","noopener",3,"href"],["aria-labelledby","transcript-unavailable-heading",1,"transcript-unavailable"],["id","transcript-unavailable-heading"],["id","related-heading"],[1,"related-list"],["aria-live","polite",1,"related-loading"],["mat-flat-button","","color","primary",3,"routerLink"],[1,"related-card"],["mat-stroked-button","","type","button"]],template:function(t,i){t&1&&(o(0,"article",1),p(1,dt,5,1,"section",2)(2,ut,7,1,"section",3)(3,Kt,54,21),a()),t&2&&(k("loading-page",i.loading)("inline-video-page",i.isInlineVideoPage),l(
1),g(i.loading?1:i.error?2:i.lecture?3:-1))},dependencies:[le,ke,Se,we,Oe,pe,me,Pe,ge,ve,xe,Ze,We,Ke,Ye,Ie,Ue,Ae,Te,Ee,Ce,fe,Ve,Ne,Je,_e,he,Qe,Ge,He,je,be,ye],styles:['[_nghost-%COMP%]{display:contents}.lecture-document[_ngcontent-%COMP%]{background:#fff}.lecture-document.loading-page[_ngcontent-%COMP%]{min-height:max(420px,calc(100dvh - 210px));border:1px solid #dfe4ec;box-sizing:border-box}.lecture-document.inline-video-page[_ngcontent-%COMP%]{display:contents}.lecture-document.inline-video-page[_ngcontent-%COMP%] .lecture-hero[_ngcontent-%COMP%]{order:1;min-height:0;padding-bottom:1.25rem!important}.lecture-document.inline-video-page[_ngcontent-%COMP%] .lecture-body[_ngcontent-%COMP%]{order:3;width:100%;background:#fff}.lecture-document.inline-video-page[_ngcontent-%COMP%] .lecture-heading[_ngcontent-%COMP%]{width:100%}.lecture-hero[_ngcontent-%COMP%]{position:relative;height:auto!important;display:block!important;padding:1.5rem 2rem!important;background:linear-gradient(135deg,#101f42,#1d356a)!important;color:#fff!important;border:0!important}.header-utility-actions[_ngcontent-%COMP%]{position:absolute;top:1rem;right:max(2rem,calc((100% - 1100px)/2));z-index:1;display:flex;align-items:center;gap:.5rem}.header-utility-action[_ngcontent-%COMP%]{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;min-width:40px;height:40px;padding:0;border:1px solid rgba(255,255,255,.38);background:#ffffff14;color:#f7ca45}.header-utility-action[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;width:24px;height:24px;margin:0;font-size:22px;line-height:24px;transform:translate(-50%,-50%)}.breadcrumbs[_ngcontent-%COMP%]{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap;width:100%;max-width:1100px;margin:0 auto 1.5rem;padding-right:6rem;box-sizing:border-box;color:#ffffffc7;font-size:.85rem}.breadcrumbs[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#f7ca45;text-decoration:none}.hero-content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1.75rem;width:100%;max-width:1100px;margin:0 auto}.speaker-image[_ngcontent-%COMP%]{flex:0 0 144px;width:144px;height:144px;object-fit:cover;object-position:top;border-radius:8px;border:3px solid rgba(247,202,69,.8);background:#fff}.lecture-heading[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0}.lecture-heading[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:.25rem 0 .6rem;font:600 clamp(1.65rem,3vw,2.55rem) / 1.15 "Outfit",sans-serif;color:#fff}.hero-details-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem 1.5rem}.hero-info[_ngcontent-%COMP%]{min-width:0}.eyebrow[_ngcontent-%COMP%]{margin:0;color:#f7ca45;font-size:.78rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase}.speaker[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;min-width:0;gap:.3rem;margin:0 0 .75rem;font-size:1.05rem}.speaker[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{flex:0 0 19px;width:19px;height:19px;margin-right:.15rem;color:#f7ca45;font-size:19px}.speaker[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{min-width:0;color:#f7ca45;overflow-wrap:anywhere}.hero-meta[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:.7rem 1.25rem;margin:.9rem 0 0}.hero-meta[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .hero-meta[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{display:flex;align-items:center}.hero-meta[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{gap:.4rem}.hero-meta[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{gap:.35rem;color:#ffffffad;font-size:.78rem;font-weight:500;text-transform:uppercase}.hero-meta[_ngcontent-%COMP%] dd[_ngcontent-%COMP%]{margin:0;color:#fff;font-size:.9rem;font-weight:500}.hero-meta[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:17px;height:17px;color:#f7ca45;font-size:17px}.hero-date-navigation[_ngcontent-%COMP%]{flex:0 0 auto}.hero-date-navigation[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{border-color:#ffffff73;background:#ffffff14;color:#fff}.hero-date-navigation[_ngcontent-%COMP%] .date-input[_ngcontent-%COMP%]{border-radius:4px;background:#fff}.hero-date-navigation[_ngcontent-%COMP%] .date-input[_ngcontent-%COMP%] .mdc-floating-label--float-above{padding:0 4px;border-radius:2px;background:#fff;color:#4b5565;font-weight:500}
1@media(max-width:1279px){.hero-details-row[_ngcontent-%COMP%]{flex-wrap:wrap}.hero-date-navigation[_ngcontent-%COMP%]{flex-basis:100%;justify-content:flex-end;margin-top:.25rem}}.lecture-body[_ngcontent-%COMP%]{padding:1.5rem 2rem 2rem!important}.lecture-toolbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem;width:100%;max-width:1100px;margin:0 auto 1.25rem}.lecture-actions[_ngcontent-%COMP%], .playback-actions[_ngcontent-%COMP%], .document-tools[_ngcontent-%COMP%], .view-mode-switcher[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:.75rem}.lecture-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .playback-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .document-tools[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .view-mode-switcher[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-height:42px}.back-action[_ngcontent-%COMP%]{color:#101f42}.playback-actions[_ngcontent-%COMP%] .media-action[_ngcontent-%COMP%]{border-color:#cbd3df;background:#fff;color:#101f42}.playback-actions[_ngcontent-%COMP%] .media-action.active-media[_ngcontent-%COMP%]{border-color:var(--accent);background:var(--accent);color:#111}.document-tools[_ngcontent-%COMP%]{justify-content:flex-end}.view-mode-switcher[_ngcontent-%COMP%]{gap:0}.view-mode-switcher[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:0}.view-mode-switcher[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{border-radius:6px 0 0 6px}.view-mode-switcher[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{border-radius:0 6px 6px 0}.view-mode-switcher[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{border-color:#17366d;background:#17366d;color:#fff}.language-select[_ngcontent-%COMP%]{width:200px}.language-select[_ngcontent-%COMP%] .mat-mdc-form-field-subscript-wrapper{display:none}.language-select[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper, .language-select[_ngcontent-%COMP%] .mat-mdc-form-field-flex{height:42px;align-items:center}.language-select[_ngcontent-%COMP%] .mat-mdc-form-field-infix{min-height:42px;padding:0;display:flex;align-items:center} .language-select .mat-mdc-select-trigger, .language-select .mat-mdc-select-value{display:flex;align-items:center;white-space:nowrap}.language-flag[_ngcontent-%COMP%]{flex:none;margin-right:.5rem;font-size:1.05rem;line-height:1}
1.language-name[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle} .language-select-panel .mat-mdc-option .language-flag{margin-right:.6rem}.date-navigation[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;margin:0}.date-navigation[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:42px;min-height:42px;max-height:42px}.date-input[_ngcontent-%COMP%]{width:170px;height:42px;--mat-form-field-container-height: 42px;--mat-form-field-container-vertical-padding: 9px}.date-input[_ngcontent-%COMP%] .mat-mdc-text-field-wrapper, .date-input[_ngcontent-%COMP%] .mat-mdc-form-field-flex{height:42px}.date-input[_ngcontent-%COMP%] .mat-mdc-form-field-flex{align-items:center}.date-input[_ngcontent-%COMP%] .mat-mdc-form-field-infix{min-height:42px;padding-top:12px;padding-bottom:0}.date-input[_ngcontent-%COMP%] .mat-mdc-input-element{line-height:20px}.date-input[_ngcontent-%COMP%] .mat-mdc-form-field-icon-suffix{align-self:center;padding:0}.date-input[_ngcontent-%COMP%] .mat-datepicker-toggle .mat-mdc-icon-button{width:40px;height:40px;padding:8px}.date-input[_ngcontent-%COMP%] .mat-mdc-form-field-subscript-wrapper{display:none}.lecture-facts[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:.75rem;margin:0 0 1.5rem}.lecture-facts[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{padding:.85rem 1rem;border:1px solid #dce3ef;border-radius:6px;background:#f7f9fc}.lecture-facts[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{margin-bottom:.3rem;color:#5c6679;font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.lecture-facts[_ngcontent-%COMP%] dd[_ngcontent-%COMP%]{margin:0;color:#101f42;font-weight:500}.lecture-text[_ngcontent-%COMP%], .lecture-pdf[_ngcontent-%COMP%], .related-section[_ngcontent-%COMP%]{max-width:1100px;margin:0 auto;padding:1.5rem;border:1px solid #e3e7ee;border-radius:8px;background:#fff}.lecture-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .lecture-pdf[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .related-section[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-top:0;color:#101f42}.text-content[_ngcontent-%COMP%]{font-size:1.08rem;line-height:1.65}[_nghost-%COMP%] .text-content>div{margin:0 0 1rem!important}[_nghost-%COMP%] .text-content>div:last-child{margin-bottom:0!important}.plain-text[_ngcontent-%COMP%]{white-space:pre-wrap}.ai-disclaimer[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.65rem;margin:0 0 1.25rem;padding:1rem;border-left:4px solid #e8ad20;background:#fff8e7;color:#574516;line-height:1.5}.ai-disclaimer[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{flex:0 0 20px;width:20px;height:20px;color:#c88b00;font-size:20px}.ai-disclaimer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.disclaimer-edit-action[_ngcontent-%COMP%]{min-width:0;height:32px;margin:0 .2rem;padding:0 .7rem;border-color:#c88b00;background:#fff;color:#174f92;line-height:30px;vertical-align:middle}.transcript-check[_ngcontent-%COMP%]{max-width:920px;margin:0 auto 1rem;padding:.75rem 1rem;border-radius:6px;background:#fdf9ef;color:#574516;text-align:center}.lecture-pdf[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{width:100%;min-height:70vh;border:1px solid #dce3ef;border-radius:6px}.related-section[_ngcontent-%COMP%]{display:grid;gap:1.25rem;background:#f7f9fc}.related-section[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-bottom:.4rem}.related-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]:last-child{margin-bottom:0}.transcript-unavailable[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.75rem;padding:1rem;border:1px solid #d5dfed;border-left:4px solid #31558d;border-radius:6px;background:#fff;color:#38445a}.transcript-unavailable[_ngcontent-%COMP%] > mat-icon[_ngcontent-%COMP%]{flex:0 0 22px;width:22px;height:22px;color:#31558d;font-size:22px}.transcript-unavailable[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 .25rem;font-size:1.05rem}.transcript-unavailable[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;line-height:1.5}.related-list[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.75rem}.related-card[_ngcontent-%COMP%]{padding:1rem;border:1px solid #dce3ef;border-radius:6px;background:#fff}.related-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 .5rem;color:#101f42;font-size:1rem}.related-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#5c6679}.related-card[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem}.document-link[_ngcontent-%COMP%]{margin:1.25rem 0 0;text-align:center}.lecture-state[_ngcontent-%COMP%]{min-height:280px;
1display:grid;place-content:center;gap:.75rem;text-align:center}.lecture-state[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .lecture-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.loading-state[_ngcontent-%COMP%]{position:relative;width:100%;min-height:max(420px,calc(100dvh - 210px));padding:1rem;box-sizing:border-box;background:#fff;pointer-events:none}.loading-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;margin:auto;gap:1rem;text-align:center}.loading-content[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{flex:0 0 auto;margin:0 auto}.loading-content[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{width:100%;color:#101f42;font-size:clamp(1.35rem,2vw,1.8rem);line-height:1.25;text-align:center}.error-state[_ngcontent-%COMP%]{color:#101f42}@media(max-width:700px){.lecture-document.loading-page[_ngcontent-%COMP%], .loading-state[_ngcontent-%COMP%]{min-height:calc(100dvh - 116px)}.lecture-document.inline-video-page[_ngcontent-%COMP%] .lecture-hero[_ngcontent-%COMP%]{padding-bottom:1rem!important}.lecture-document.inline-video-page[_ngcontent-%COMP%] .hero-content[_ngcontent-%COMP%], .lecture-document.inline-video-page[_ngcontent-%COMP%] .lecture-heading[_ngcontent-%COMP%], .lecture-document.inline-video-page[_ngcontent-%COMP%] .lecture-title-block[_ngcontent-%COMP%]{display:block}.lecture-document.inline-video-page[_ngcontent-%COMP%] .speaker-image[_ngcontent-%COMP%]{display:none}.lecture-hero[_ngcontent-%COMP%]{padding:1rem!important}.lecture-body[_ngcontent-%COMP%]{padding:1rem 1rem calc(5rem + env(safe-area-inset-bottom))!important}.breadcrumbs[_ngcontent-%COMP%]{flex-wrap:nowrap;margin-bottom:1rem}.breadcrumbs[_ngcontent-%COMP%] [aria-current=page][_ngcontent-%COMP%], .breadcrumbs[_ngcontent-%COMP%] .current-crumb-separator[_ng
1content-%COMP%]{display:none}.header-utility-actions[_ngcontent-%COMP%]{top:.65rem;right:1rem}.hero-content[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;align-items:flex-start;gap:.65rem 1rem}.hero-content.has-speaker-image[_ngcontent-%COMP%]{grid-template-columns:84px minmax(0,1fr)}.speaker-image[_ngcontent-%COMP%]{width:90px;height:90px}.lecture-heading[_ngcontent-%COMP%], .hero-details-row[_ngcontent-%COMP%], .hero-info[_ngcontent-%COMP%]{display:contents}.lecture-title-block[_ngcontent-%COMP%]{grid-column:1 / -1;align-self:center}.lecture-title-block[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:.35rem 0 0;line-height:1.2}.has-speaker-image[_ngcontent-%COMP%] .lecture-title-block[_ngcontent-%COMP%]{grid-column:2}.lecture-heading[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1.25rem}.eyebrow[_ngcontent-%COMP%]{line-height:1.25}.speaker[_ngcontent-%COMP%], .hero-meta[_ngcontent-%COMP%], .hero-date-navigation[_ngcontent-%COMP%]{grid-column:1 / -1}.speaker[_ngcontent-%COMP%]{display:grid;grid-template-columns:28px max-content minmax(0,1fr);align-items:center;column-gap:.35rem;margin:.65rem 0 .75rem;line-height:1.35}.speaker[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:24px;height:24px;margin:0;font-size:22px;line-height:24px;padding:0}.speaker[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{min-width:0;overflow-wrap:anywhere}.hero-meta[_ngcontent-%COMP%]{gap:.65rem 1.15rem;margin:0;line-height:1.25}.hero-meta[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{gap:.35rem}.hero-meta[_ngcontent-%COMP%] dt[_ngcontent-%COMP%]{gap:.3rem;font-size:.7rem}.hero-meta[_ngcontent-%COMP%] dt[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{padding:0;flex:0 0 30px;width:24px;height:24px;margin:0;font-size:18px;line-height:18px}.hero-meta[_ngcontent-%COMP%] dd[_ngcontent-%COMP%]{font-size:.82rem;line-height:1.25}.lecture-toolbar[_ngcontent-%COMP%], .document-tools[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;width:100%}.lecture-actions[_ngcontent-%COMP%]{display:grid;grid-template-columns:46px minmax(0,1fr);align-items:stretch;width:100%}.back-action[_ngcontent-%COMP%]{width:46px;min-width:46px;padding:0}.back-action[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin:0}.back-action[_ngcontent-%COMP%] .back-label[_ngcontent-%COMP%]{display:none}.playback-actions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;min-width:0}.playback-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1 1 110px}.document-tools[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .language-select[_ngcontent-%COMP%], .date-input[_ngcontent-%COMP%]{width:100%}.view-mode-switcher[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr}.view-mode-switcher[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}.date-navigation[_ngcontent-%COMP%]{display:grid;grid-template-columns:46px minmax(0,1fr) 46px;align-items:center;gap:.5rem;width:100%;margin:.6rem 0 0;padding:1.1rem 0 0;border:0;border-top:1px solid rgba(255,255,255,.16);border-radius:0;background:transparent;color:#fff}.date-navigation[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{border-color:#ffffff73;background:#ffffff14;color:#fff}.date-navigation[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:disabled{border-color:#fff3;background:#ffffff0a;color:#ffffff6b}.date-navigation[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:46px;min-width:46px;padding:0}.date-navigation[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin:0}.date-navigation[_ngcontent-%COMP%] .navigation-label[_ngcontent-%COMP%]{display:none}.date-navigation.no-date-picker[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}.date-navigation.no-date-picker[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%}.date-navigation.no-date-picker[_ngcontent-%COMP%] .navigation-label[_ngcontent-%COMP%]{display:inline}.lecture-text[_ngcontent-%COMP%], .lecture-pdf[_ngcontent-%COMP%], .related-section[_ngcontent-%COMP%]{padding:1rem}.lecture-text[_ngcontent-%COMP%]{max-width:none;margin:0;padding:0;border:0;border-radius:0}.text-content[_ngcontent-%COMP%]{font-size:1.03rem;line-height:1.55}.ai-disclaimer[_ngcontent-%COMP%]{gap:.5rem;margin-bottom:1rem;padding:.75rem}.transcript-unavailable[_ngcontent-%COMP%]{padding:.75rem}}@media(max-width:480px){.related-list[_ngcontent-%COMP%]{grid-template-columns:1fr}}@media print{.lecture-hero[_ngcontent-%COMP%], .lecture-toolbar[_ngcontent-%COMP%], .date-navigation[_ngcontent-%COMP%], .lecture-facts[_ngcontent-%COMP%], .transcript-check[_ngcontent-%COMP%], .related-section[_ngcontent-%COMP%]{display:none!important}.lecture-body[_ngcontent-%COMP%], .lecture-text[_ngcontent-%COMP%]{max-width:none;margin:0;padding:0!important;border:0}}']})}}return n})();export{Qi as LectureDocumentComponent};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.