1import{a as vt}from"./chunk-M5VDHKKA.js";import{a as xt}from"./chunk-YDWRRKE3.js";import{f as ft}from"./chunk-746JYXWO.js";import{b as kt}from"./chunk-ID74YVNG.js";import"./chunk-7SATK474.js";import"./chunk-COX6PVEJ.js";import{b as Mt}from"./chunk-SB6WQZPU.js";import{b as ut}from"./chunk-KEZGQZSC.js";import{c as ht}from"./chunk-7SDYY427.js";import{a as X}from"./chunk-JGKEWIEF.js";import"./chunk-YHDBFMK3.js";import{a as lt,b as ct}from"./chunk-EABWZJEQ.js";import{a as Pt,b as Ot}from"./chunk-NBRLEJAU.js";import"./chunk-G5GNWYJJ.js";import"./chunk-XLHDGTV4.js";import"./chunk-GIE3VPB2.js";import{a as _t}from"./chunk-OO53EZAF.js";import{d as Ct}from"./chunk-STC7LZH5.js";import{a as pt}from"./chunk-UBOD5FNW.js";import{c as gt}from"./chunk-76AWG65Y.js";import"./chunk-FHTGPV7K.js";import"./chunk-XD5CZV4W.js";import"./chunk-VNSAVABF.js";import{a as bt}from"./chunk-K67WNSDY.js";import{a as tt,b as et}from"./chunk-QWTMUCOU.js";import{a as mt,b as dt}from"./chunk-EG3TSDEC.js";import{a as nt,d as ot,e as it,g as rt,h as at}from"./chunk-LVPBX3YX.js";import{a as st}from"./chunk-Y7YMNLC3.js";import"./chunk-2MMBFQ2X.js";import"./chunk-FEYTE3S4.js";import{a as G,b as J,g as K}from"./chunk-3CHZIAKY.js";import"./chunk-HU7WFQWJ.js";import{f as Z}from"./chunk-FCGJZ76R.js";import"./chunk-7EWEOPZE.js";import{f as W,h as Q,m as q}from"./chunk-QNVS2ZAF.js";import{a as O,b as Y}from"./chunk-GBTMH2QN.js";import"./chunk-AZ2HMG3I.js";import{$ as x,$b as L,Ac as a,Bc as B,Cb as V,Cc as U,Jb as d,Sb as h,Xb as g,Yb as $,_b as N,ac as i,bc as r,cc as P,f as I,gc as M,ib as v,jb as S,jc as b,lc as m,md as R,ob as l,pb as _,pc as D,qc as H,tc as A,uc as F,va as C,vc as z,wa as f}from"./chunk-YC4TMVPW.js";import"./chunk-XSHI3W34.js";import{c as j}from"./chunk-KT3CPUTC.js";var yt=["content"];function St(o,u){if(o&1){let t=M();i(0,"button",32),b("click",function(){C(t);let e=m();return f(e.openBookMeta())}),a(1," \u0641\u06C1\u0631\u0633\u062A "),i(2,"mat-icon",33),a(3,"read_more"),r()()}}function Bt(o,u){if(o&1){let t=M();i(0,"button",32),b("click",function(){C(t);let e=m();return f(e.openBookMeta())}),a(1," Index "),i(2,"mat-icon",33),a(3,"read_more"),r()()}}function Tt(o,u){if(o&1&&(i(0,"a",5),a(1," Full Chapter "),i(2,"mat-icon",33),a(3,"open_in_full"),r()()),o&2){let t=m();H("href","",t.fullchapter,"&lang=",t.lang,"&fullchap=true",S)}}function Et(o,u){if(o&1&&(i(0,"span",7),a(1),r()),o&2){let t=m();l(),U(" Author: ",t.book.author.name[t.lang]," ")}}function $t(o,u){if(o&1){let t=M();i(0,"mat-slide-toggle",34),b("change",function(){C(t);let e=m();return f(e.lang==="ur"?e.lang="en":e.lang="ur")}),a(1," English / Urdu "),r()}if(o&2){let t=m();h("checked",t.lang==="ur")}}function Nt(o,u){if(o&1){let t=M();i(0,"button",35),b("click",function(){C(t);let e=m();return f(e.goTObk())}),i(1,"mat-icon"),a(2,"bookmark"),r(),i(3,"span",11),a(4,"Goto"),r()()}}function Lt(o,u){if(o&1){let t=M();i(0,"button",36),b("click",function(){C(t);let e=m();return f(e.changeChap(e.chapindex-1))}),a(1," Previous "),i(2,"mat-icon",37),a(3,"navigate_before"),r()()}}function jt(o,u){if(o&1){let t=M();i(0,"button",38),b("click",function(){C(t);let e=m();return f(e.changeChap(e.chapindex+1))}),a(1," Next "),i(2,"mat-icon",33),a(3,"next_plan"),r()()}}function It(o,u){o&1&&a(0," Please login for ")}function Vt(o,u){o&1&&a(0," Select text to create ")}function Dt(o,u){o&1&&(i(0,"span",43),a(1,"Public Comment"),r())}function Ht(o,u){o&1&&(i(0,"span",44),a(1,"Public Highlight"),r())}function At(o,u){if(o&1&&(i(0,"h5",42),d(1,Dt,2,0,"span",43)(2,Ht,2,0,"span",44),r()),o&2){let t=m(2);l(),g(t.pubcomment?1:-1),l(),g(t.pubhighlight?2:-1)}}function Ft(o,u){if(o&1&&(i(0,"div",18)(1,"h4",7),d(2,It,1,0)(3,Vt,1,0),i(4,"span",39),a(5,"Bookmark"),r(),a(6," , "),i(7,"span",40),a(8,"Comment"),r(),a(9," or "),i(10,"span",41),a(11,"Highlight"),r()(),d(12,At,3,2,"h5",42),r()),o&2){let t=m();l(2),g(t.userinfo?3:2),l(10),g(t.pubcomment||t.pubhighlight?12:-1)}}function zt(o,u){if(o&1){let t=M();i(0,"button",45),b("click",function(){C(t);let e=m();return f(e.changeChap(e.chapindex-1))}),a(1," Previous "),i(2,"mat-icon",37),a(3,"navigate_before"),r()()}}function Ut(o,u){if(o&1){let t=M();i(0,"button",45),b("click",function(){C(t);let e=m();return f(e.changeChap(e.chapindex+1))}),a(1," Next "),i(2,"mat-icon",33),a(3,"next_plan"),r()()}}function Rt(o,u){o&1&&(i(0,"h3"),a(1,"\u062D\u0648\u0627\u0634\u06CC :"),r())}function Wt(o,u){o&1&&(i(0,"h2"),a(1,"Footnote:"),r())}
1function Qt(o,u){if(o&1&&(i(0,"div",25),d(1,Rt,2,0,"h3")(2,Wt,2,0,"h2"),P(3,"div",27),r()),o&2){let t=m();h("ngClass",t.lang==="ur"?"cnt-ur font-normal":""),l(),g(t.lang==="ur"?1:2),l(2),h("innerHTML",t.book==null?null:t.book.content.footnote[t.lang],v)}}function qt(o,u){o&1&&(i(0,"h3"),a(1,"\u062D\u0648\u0627\u0634\u06CC :"),r())}function Gt(o,u){o&1&&(i(0,"h2"),a(1,"Footnote:"),r())}function Jt(o,u){if(o&1&&(i(0,"div",25),d(1,qt,2,0,"h3")(2,Gt,2,0,"h2"),P(3,"div",27),r()),o&2){let t=m().$implicit,n=m();h("ngClass",n.lang==="ur"?"cnt-ur font-normal":""),l(),g(n.lang==="ur"?1:2),l(2),h("innerHTML",t==null?null:t.footnote[n.lang],v)}}function Kt(o,u){o&1&&(i(0,"h3"),a(1,"\u062D\u0648\u0627\u0634\u06CC :"),r())}function Xt(o,u){o&1&&(i(0,"h2"),a(1,"Footnote:"),r())}function Yt(o,u){if(o&1&&(i(0,"div",25),d(1,Kt,2,0,"h3")(2,Xt,2,0,"h2"),P(3,"div",27),r()),o&2){let t=m().$implicit,n=m(2);h("ngClass",n.lang==="ur"?"cnt-ur font-normal":""),l(),g(n.lang==="ur"?1:2),l(2),h("innerHTML",t==null?null:t.footnote[n.lang],v)}}function Zt(o,u){if(o&1&&(i(0,"mat-card")(1,"div",24)(2,"div",25)(3,"h2",46),a(4),r(),P(5,"div",27),r()()(),d(6,Yt,4,3,"div",25)),o&2){let t=u.$implicit,n=m(2);l(2),h("ngClass",n.lang==="ur"?"cnt-ur font-normal":""),l(2),B(t==null?null:t.title[n.lang]),l(),h("innerHTML",t==null?null:t.content[n.lang],v),l(),g(!(t==null||t.footnote==null)&&t.footnote[n.lang]?6:-1)}}function te(o,u){if(o&1&&(i(0,"mat-card")(1,"div",24)(2,"div",25)(3,"h1",46),a(4),r(),P(5,"div",27),r()()(),d(6,Jt,4,3,"div",25),N(7,Zt,7,4,null,null,$)),o&2){let t=u.$implicit,n=m();l(2),h("ngClass",n.lang==="ur"?"cnt-ur font-normal":""),l(2),B(t==null?null:t.title[n.lang]),l(),h("innerHTML",t==null?null:t.content[n.lang],v),l(),g(!(t==null||t.footnote==null)&&t.footnote[n.lang]?6:-1),l(),L(t.subchap)}}var Ie=(()=>{class o{constructor(t,n,e,c,s,p,k,w,y,T,E,wt){this.metaService=t,this.settingsService=n,this.location=e,this.activatedRoute=c,this.router=s,this.dialog=p,this.jaagAPI=k,this.snackBar=w,this.authService=y,this.domHandlerService=T,this.shareCollectionService=E,this.annotationService=wt,this.bookthumburl=O.jaagsrv.thumbnailurl+"book/",this.userthumburl=O.jaagsrv.thumbnailurl+"users/",this.book=null,this.pubcomment=!1,this.pubhighlight=!1,this.lang="ur",this.toc=[],this.chapindex=0,this.isMobile=!1,this.destroy$=new I,this.multilang=!1,this.subchapcontent=[],this.settings=this.settingsService.settings,this.bookpdfroot=O.jaagsrv.pdfroot+"book/",this.domHandlerService.isBrowser&&(this.isMobile=this.domHandlerService.isMobile)}ngOnInit(){this.initializeBookData()}ngAfterViewInit(){}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}initializeBookData(){this.activatedRoute.queryParams.pipe(x(this.destroy$)).subscribe(t=>{Object.keys(t).length===0?this.loadInitialBookData():this.loadBookWithParams(t)})}loadInitialBookData(){this.activatedRoute.data.pipe(x(this.destroy$)).subscribe(t=>{this.setupBookData(t.apiData.data,0)})}loadBookWithParams(t){this.activatedRoute.params.pipe(x(this.destroy$)).subscribe(n=>{let e=this.buildBookUrl(n.id,t);this.jaagAPI.getapidata(e).pipe(x(this.destroy$)).subscribe(c=>{this.setupBookData(c.data,t)})})}setupBookData(t,n){this.book=t,n.lang?this.lang=n.lang:this.book?.booklanguage.includes("Urdu")?this.lang="ur":this.book?.booklanguage.includes("English")&&(this.lang="en"),this.metaService.setSocialMetaTags(this.book.title[this.lang],this.book.description[this.lang],this.bookthumburl+t.thumbnail,O.jaagv2.srcurl+"/books/"+this.book._id),this.metaService.setStructuredData({type:"books",title:this.book.title[this.lang]+" - "+this.book.content.title[this.lang],description:this.book.description[this.lang],thumb:this.bookthumburl+t.thumbnail,author:this.book.author.name.en,contentUrl:O.jaagv2.srcurl+this.router.url}),this.metaService.setCanonicalFromCurrentUrl(),this.setLanguage(n),this.authService.isLoggedIn&&this.authService.getAuthorizationHeaders().then(e=>{this.userinfo=e,this.loadAnnotations()})}setLanguage(t){this.book?.booklanguage.includes("Urdu")&&this.book?.booklanguage.includes("English")&&(this.multilang=!0);let n=/@(\d+):@(\d+)/g,e=this.book.content.content[this.lang].match(n);e&&e.forEach(c=>{let s=c.split(":"),p={chapter:s[0].replace("@",""),section:s[1].replace("@","")};this.book.content.content[this.lang]=this.book.content.content[this.lang].replace(c,"")}),this.createNextPrevLinks(this.book?.tableOfContents).then(()=>{let c=t.chapterNo?`/books/${this.book?._id}?chapterNo=${t.chapterNo}`:`/books/${this.book?._id}?chapterNo=0&lang=${this.lang}`;t.subChapterNo&&(c+="&subChapterNo="+t.subChapterNo,t.subChsecNo&&(c+="&subChsecNo="+t.subChsecNo)),this.chapindex=this.toc.findIndex(p=>p.link===c+"&lang="+this.lang);let s=t.chapterNo?t.chapterNo:0;this.book?.tableOfContents[s].subchapters.length>0&&!t.subChapterNo?(this.fullchapter=`/books/${this.book?._id}?chapterNo=${t.chapterNo?t.chapterNo:0}`,t.fullchap&&this.addsubchap(this.book._id,s,this.book?.tableOfContents[s].subchapters)):this.fullchapter=void 0})}addsubchap(t,n,e){e.forEach((c,s)=>{let p=`/books/${t}?chapterNo=${n}&subChapterNo=${s}`;this.jaagAPI.getapidata(p).pipe(x(this.destroy$)).subscribe(k=>{console.log("here is subchpat",k),this.subchapcontent[s]=k.data.content,c.subchapters.length>
10&&(this.subchapcontent[s].subchap=[],c.subchapters.forEach((w,y)=>{let T=`/books/${t}?chapterNo=${n}&subChapterNo=${s}&subChsecNo=${y}`;this.jaagAPI.getapidata(T).pipe(x(this.destroy$)).subscribe(E=>{this.subchapcontent[s].subchap[y]=E.data.content})}))})})}buildBookUrl(t,n){let e=`/books/${t}`;return n.chapterNo&&(e+=`?chapterNo=${n.chapterNo}`,n.subChapterNo&&(e+=`&subChapterNo=${n.subChapterNo}`,n.subChsecNo&&(e+=`&subChsecNo=${n.subChsecNo}`))),e}onTextSelect(t){!this.userinfo||!this.content?.nativeElement||this.domHandlerService.isBrowser&&this.annotationService.handleTextSelection(this.content.nativeElement,this.userinfo.Authorization.split("Bearer ")[1],this.location.path().replace("&bk=true","").replace("?bk=true",""),this.book.title.en==="en"?this.book.title.en:this.book.title.ur).then(n=>{n&&this.loadAnnotations()})}loadAnnotations(){!this.userinfo||!this.content?.nativeElement||this.annotationService.loadAnnotations(this.content.nativeElement,this.userinfo.Authorization.split("Bearer ")[1],this.location.path().replace("&bk=true","").replace("?bk=true","")).then(()=>{this.pubcomment=this.annotationService.hasPublicComments,this.pubhighlight=this.annotationService.hasPublicHighlights;let t=`/publictool?type=bookmark&location=${this.location.path().split("?")[0]}`;this.jaagAPI.getapidata(t).subscribe(n=>{if(!(!n||!n.data)&&this.domHandlerService.isBrowser){let c=document.getElementById("bkmark").getBoundingClientRect();if(n.data[0]){this.bk=n.data[0],this.bk.bkidposition=c.top;let s=this.location.path().replace("&bk=true","").replace("?bk=true","");(this.bk.location===s||this.bk.location.replace("?chapterNo=0","")===s||this.bk.location===s.replace("?chapterNo=0",""))&&this.activatedRoute.queryParams.subscribe(p=>{p?.bk==="true"&&this.domHandlerService.winScroll(this.bk.bkidposition-70,0)})}}})})}goTObk(){let t=this.location.path().replace("&bk=true","").replace("?bk=true","");if(this.bk.location===t||this.bk.location.replace("?chapterNo=0","")===t||this.bk.location===t.replace("?chapterNo=0",""))this.domHandlerService.winScroll(this.bk.bkidposition-70,0);else{let n=this.bk.location;this.location.path().includes("?")?n=n+"&bk=true":n=n+"?bk=true",this.router.navigateByUrl(n)}}createNextPrevLinks(t){return new Promise(n=>{this.toc=[],t?.forEach((e,c)=>{this.toc.push({link:`/books/${this.book?._id}?chapterNo=${c}&lang=${this.lang}`,title:e.title}),e.subchapters?.forEach((s,p)=>{this.toc.push({link:`/books/${this.book?._id}?chapterNo=${c}&subChapterNo=${p}&lang=${this.lang}`,title:s.title}),s.subchapters?.forEach((k,w)=>{this.toc.push({link:`/books/${this.book?._id}?chapterNo=${c}&subChapterNo=${p}&subChsecNo=${w}&lang=${this.lang}`,title:k.title})})})}),n()})}shareLink(){if(!this.book)return;let t=this.book.title.ur?this.book.title.ur:this.book.title.en;this.shareCollectionService.shareLink(this.metaService.getShareLinks(t,"",O.jaagv2.srcurl+"/books/"+this.book._id),{type:"book"})}add2Collection(){if(!this.book)return;let t=this.book.title.en==="en"?this.book.title.en:this.book.title.ur;this.shareCollectionService.addToCollection(t,"/books/"+this.book?._id,"books")}openBookMeta(){if(!this.book)return;let c=this.book,{content:t}=c,n=j(c,["content"]);n.chapterpdf=O.jaagsrv.pdfroot+"book/"+this.book.content.chapterpdf,n.bookpdf=O.jaagsrv.pdfroot+"book/"+n.bookpdf,n.thumbnailUrl=n.thumbnail?this.bookthumburl+n.thumbnail:void 0,this.dialog.open(vt,{data:{title:this.book.title,location:"/books/"+this.book?._id,dataType:"books",lang:this.lang,bookmeta:n,tocWithLinks:this.buildTocWithLinks(this.book.tableOfContents,this.book._id,this.lang),downloadLabels:{primary:"Book",secondary:"Chapter"}},panelClass:["theme-dialog"],width:"95vw",maxWidth:"720px",autoFocus:!1,direction:this.settings.rtl?"rtl":"ltr"}).afterClosed().pipe(x(this.destroy$)).subscribe(s=>{s&&this.snackBar.open(s,"\xD7",{panelClass:"success",verticalPosition:"bottom",duration:3e3})})}buildTocWithLinks(t,n,e){return t?t.map((c,s)=>({title:c.title,link:`/books/${n}?chapterNo=${s}&lang=${e}`,subchapters:(c.subchapters||[]).map((p,k)=>({title:p.title,link:`/books/${n}?chapterNo=${s}&subChapterNo=${k}&lang=${e}`,subchapters:(p.subchapters||[]).map((w,y)=>({title:w.title,link:`/books/${n}?chapterNo=${s}&subChapterNo=${k}&subChsecNo=${y}&lang=${e}`}))}))})):[]}changeChap(t){t>=0&&t<this.toc.length&&this.router.navigateByUrl(this.toc[t].link)}static{this.\u0275fac=function(n){return new(n||o)(_(_t),_(st),_(R),_(W),_(Q),_(Ct),_(bt),_(X),_(Z),_(Y),_(kt),_(xt))}}static{this.\u0275cmp=V({type:o,selectors:[["app-book"]],viewQuery:function(n,e){if(n&1&&A(yt,5),n&2){let c;F(c=z())&&(e.content=c.first)}}
1,hostBindings:function(n,e){n&1&&b("mouseup",function(s){return e.onTextSelect(s)})},decls:60,vars:19,consts:[["content",""],[1,"book-container"],["fxLayout","row","fxLayoutAlign","space-between center","fxLayout.lt-sm","column","fxLayoutAlign.lt-sm","start start",1,"filter-row","mat-elevation-z1","text-muted"],[1,"toolbar-group","toolbar-group--start"],["mat-button","","matTooltip","Table of Content","aria-label","Book menu"],["mat-button","","target","_blank",3,"href"],[1,"toolbar-group","toolbar-group--center"],[1,"text-muted"],[1,"toolbar-group","toolbar-group--end"],["color","primary",1,"pl-2","pr-2",3,"checked"],["mat-button","","matTooltip","Add to Collection",3,"click"],[1,"mat-button-wrapper"],["mat-button","","matTooltip","Share on Social Media",3,"click"],["mat-button","","matTooltip","Go to Bookmark"],["fxLayout","row wrap","fxLayoutAlign","space-between center"],[1,"pl-1"],["mat-raised-button",""],["mat-raised-button","",1,"ml-2"],[1,"notice","text-center","p-2"],["target","_blank",3,"href"],["mat-button","","matTooltip","Download Full PDF Book"],["color","primary",1,"mat-icon-md"],["mat-button","","matTooltip","Download Chapter PDF"],["mat-button","","matTooltip","Buy Printed copy of Book"],[1,"content-container","lh","p-3"],[3,"ngClass"],[1,"text-center","mb-2","mat-headline-4",3,"id"],[3,"innerHTML"],["id","bkmark",1,"bookmark"],["id","usercomments",1,"ucomments"],["mat-raised-button","",1,"m-2"],["fxFlex",""],["mat-button","","matTooltip","Table of Content","aria-label","Book menu",3,"click"],["color","primary"],["color","primary",1,"pl-2","pr-2",3,"change","checked"],["mat-button","","matTooltip","Go to Bookmark",3,"click"],["mat-raised-button","",3,"click"],["color","warn"],["mat-raised-button","",1,"ml-2",3,"click"],[1,"annotation-bookmark"],[1,"annotation-comment"],[1,"annotation-highlight"],[1,"text-muted","mt-2"],[1,"annotation-public-comment","mr-2"],[1,"annotation-public-highlight","ml-2"],["mat-raised-button","",1,"m-2",3,"click"],[1,"text-center","mb-2","mat-headline-4"]],template:function(n,e){if(n&1){let c=M();i(0,"div",1)(1,"div",2)(2,"div",3),d(3,St,4,0,"button",4)(4,Bt,4,0,"button",4)(5,Tt,4,3,"a",5),r(),i(6,"div",6),d(7,Et,2,1,"span",7),r(),i(8,"div",8),d(9,$t,2,1,"mat-slide-toggle",9),i(10,"button",10),b("click",function(){return C(c),f(e.add2Collection())}),i(11,"mat-icon"),a(12,"my_library_add"),r(),i(13,"span",11),a(14,"Add"),r()(),i(15,"button",12),b("click",function(){return C(c),f(e.shareLink())}),i(16,"mat-icon"),a(17,"share"),r(),i(18,"span",11),a(19,"Share"),r()(),d(20,Nt,5,0,"button",13),r()(),i(21,"mat-card")(22,"div",14)(23,"div",15),d(24,Lt,4,0,"button",16)(25,jt,4,0,"button",17),r(),d(26,Ft,13,2,"div",18),i(27,"div")(28,"a",19)(29,"button",20)(30,"mat-icon",21),a(31,"picture_as_pdf"),r(),a(32," Book"),r()(),i(33,"a",19)(34,"button",22)(35,"mat-icon",21),a(36,"picture_as_pdf"),r(),a(37," Chapter"),r()(),i(38,"a",19)(39,"button",23)(40,"mat-icon"),a(41,"shop"),r(),a(42," Buy Book"),r()()()(),i(43,"div",24)(44,"div",25)(45,"h1",26),a(46),r(),P(47,"div",27,0),r(),i(49,"div",28)(50,"h2"),a(51,"B"),r()(),P(52,"div",29),r()(),i(53,"div"),d(54,zt,4,0,"button",30),P(55,"span",31),d(56,Ut,4,0,"button",30),r(),d(57,Qt,4,3,"div",25),N(58,te,9,4,null,null,$),r()}n&2&&(l(3),g(e.lang==="ur"?3:4),l(2),g(e.fullchapter?5:-1),l(2),g(e.book?7:-1),l(2),g(e.multilang?9:-1),l(11),g(e.bk?20:-1),l(4),g(e.chapindex>0?24:-1),l(),g(e.toc.length>e.chapindex+1?25:-1),l(),g(e.isMobile?-1:26),l(2),h("href",e.bookpdfroot+(e.book==null?null:e.book.bookpdf),S),l(5),h("href",e.bookpdfroot+(e.book==null?null:e.book.content.chapterpdf),S),l(5),h("href",e.book==null?null:e.book.buylink,S),l(6),h("ngClass",e.lang==="ur"?"cnt-ur font-normal":""),l(),D("id","chapterNo=",e.chapindex,""),l(),B(e.book==null?null:e.book.content.title[e.lang]),l(),h("innerHTML",e.book==null?null:e.book.content.content[e.lang],v),l(7),g(e.chapindex>0?54:-1),l(2),g(e.toc.length>e.chapindex+1?56:-1),l(),g(!(e.book==null||e.book.content==null||e.book.content.footnote==null)&&e.book.content.footnote[e.lang]?57:-1),l(),L(e.subchapcontent))},dependencies:[q,at,rt,it,ot,nt,dt,mt,gt,K,J,G,et,tt,pt,ht,ft,ut,Mt,Ot,Pt,ct,lt],styles:[".reader-toolbar-chip[_ngcontent-%COMP%]{border-radius:999px!important;box-shadow:none!important;background:#fff!important;border:1px solid rgba(42,39,36,.08);color:#2a2724!important;font-weight:600}.reader-toolbar-chip[_ngcontent-%COMP%]:hover{background:#b3793f14!important}.grey[_nghost-%COMP%] .reader-toolbar-chip[_ngcontent-%COMP%], .grey [_nghost-%COMP%] .reader-toolbar-chip[_ngcontent-%COMP%]{background:#424242!important;border-color:#ffffff1f;color:#eef0f2!important}.grey[_nghost-%COMP%] .reader-toolbar-chip[_ngcontent-%COMP%]:hover, .grey [_nghost-%COMP%] .reader-toolbar-chip[_ngcontent-%COMP%]:hover{background:#dd8d5938!important}.book-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.filter-row[_ngcontent-%COMP%]{background:#fff;border:1px solid rgba(42,39,36,.08);border-top:3px solid #b3793f;border-radius:14px;box-shadow:0 2px 10px #2a27240f;padding:10px 16px;margin:12px 0;display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;justify-content:space-between}.filter-row[_ngcontent-%COMP%] a[mat-button][_ngcontent-%COMP%], .filter-row[_ngcontent-%COMP%] button[mat-button][_ngcontent-%COMP%], .filter-row[_ngcontent-%COMP%] a.mat-mdc-button[_ngcontent-%COMP%], .filter-row[_ngcontent-%COMP%] button.mat-mdc-button[_ngcontent-%COMP%], .filter-row[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%], .filter-row[_ngcontent-%COMP%] button[mat-raised-button][_ngcontent-%COMP%], .filter-row[_ngcontent-%COMP%] a.mat-mdc-raised-button[_ngcontent-%COMP%], .filter-row[_ngcontent-%COMP%] button.mat-mdc-raised-button[_ngcontent-%COMP%], .filter-row[_ngcontent-%COMP%] a[mat-stroked-button][_ngcontent-%COMP%], .filter-row[_ngcontent-%COMP%] button[mat-stroked-button][_ngcontent-%COMP%], .filter-row[_ngcontent-%COMP%] a.mat-mdc-stroked-button[_ngcontent-%COMP%], .filter-row[_ngcontent-%COMP%] button.mat-mdc-stroked-button[_ngcontent-%COMP%]{border-radius:999px!important;box-shadow:none!important;font-weight:600}.filter-row[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%], .filter-row[_ngcontent-%COMP%] button[mat-raised-button][_ngcontent-%COMP%], .filter-row[_ngcontent-%COMP%] a.mat-mdc-raised-button[_ngcontent-%COMP%], .filter-row[_ngcontent-%COMP%] button.mat-mdc-raised-button[_ngcontent-%COMP%]{background:transparent!important;color:#2a2724!important}.filter-row[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%]:hover, .filter-row[_ngcontent-%COMP%] button[mat-raised-button][_ngcontent-%COMP%]:hover, .filter-row[_ngcontent-%COMP%] a.mat-mdc-raised-button[_ngcontent-%COMP%]:hover, .filter-row[_ngcontent-%COMP%] button.mat-mdc-raised-button[_ngcontent-%COMP%]:hover{background:#b3793f14!important}.grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%], .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%]{background:#424242;border-color:#ffffff1f;border-top-color:#b3793f}.grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] a[mat-button][_ngcontent-%COMP%], .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] a[mat-button][_ngcontent-%COMP%], .grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] button[mat-button][_ngcontent-%COMP%], .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] button[mat-button][_ngcontent-%COMP%], .grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] a.mat-mdc-button[_ngcontent-%COMP%], .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] a.mat-mdc-button[_ngcontent-%COMP%], .grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] button.mat-mdc-button[_ngcontent-%COMP%], .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] button.mat-mdc-button[_ngcontent-%COMP%], .grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%], .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%], .grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] button[mat-raised-button][_ngcontent-%COMP%], .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] button[mat-raised-button][_ngcontent-%COMP%], .grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] a.mat-mdc-raised-button[_ngcontent-%COMP%], .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] a.mat-mdc-raised-button[_ngcontent-%COMP%], .grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] button.mat-mdc-raised-button[_ngcontent-%COMP%], .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] button.mat-mdc-raised-button[_ngcontent-%COMP%], .grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] a[mat-stroked-button][_ngcontent-%COMP%], .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] a[mat-stroked-button][_ngcontent-%COMP%], .grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] button[mat-stroked-button][_ngcontent-%COMP%], .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] button[mat-stroked-button][_ngcontent-%COMP%], .grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] a.mat-mdc-stroked-button[_ngcontent-%COMP%], .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] a.mat-mdc-stroked-button[_ngcontent-%COMP%], .grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] button.mat-mdc-stroked-button[_ngcontent-%COMP%], .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] button.mat-mdc-stroked-button[_ngcontent-%COMP%]{color:#eef0f2!important}.grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%]:hover, .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] a[mat-raised-button][_ngcontent-%COMP%]:hover, .grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] button[mat-raised-button][_ngcontent-%COMP%]:hover, .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] button[mat-raised-button][_ngcontent-%COMP%]:hover, .grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] a.mat-mdc-raised-button[_ngcontent-%COMP%]:hover, .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] a.mat-mdc-raised-button[_ngcontent-%COMP%]:hover, .grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] button.mat-mdc-raised-button[_ngcontent-%COMP%]:hover, .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] button.mat-mdc-raised-button[_ngcontent-%COMP%]:hover, .grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] a[mat-button][_ngcontent-%COMP%]:hover, .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] a[mat-button][_ngcontent-%COMP%]:hover, .grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] button[mat-button][_ngcontent-%COMP%]:hover, .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] button[mat-button][_ngcontent-%COMP%]:hover, .grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] a.mat-mdc-button[_ngcontent-%COMP%]:hover, .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] a.mat-mdc-button[_ngcontent-%COMP%]:hover, .grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] button.mat-mdc-button[_ngcontent-%COMP%]:hover, .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] button.mat-mdc-button[_ngcontent-%COMP%]:hover{background:#dd8d5938!important}.filter-row[_ngcontent-%COMP%] button[mat-icon-button][_ngcontent-%COMP%], .filter-row[_ngcontent-%COMP%] button.mat-mdc-icon-button[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%}.filter-row[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{vertical-align:middle;font-size:20px!important;width:20px!important;height:20px!important;line-height:20px!important}.filter-row[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%], .filter-row[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]{border:1px solid rgba(42,39,36,.08);border-radius:999px;padding:8px 14px;font-size:14px;outline:none;background:#fff;color:#2a2724;transition:border-color .15s ease}.filter-row[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%]:focus, .filter-row[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]:focus{border-color:#b3793f}.grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%], .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%], .grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%], .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]{background:#ffffff0f;border-color:#ffffff1f;color:#eef0f2}.grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%]::placeholder, .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%]::placeholder, .grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]::placeholder, .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]::placeholder{color:#fff6}.filter-row[_ngcontent-%COMP%] .filter-toggle-trigger[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;cursor:pointer;padding:4px 14px 4px 4px;border-radius:999px;font-weight:600;color:#2a2724;transition:background .15s ease}.filter-row[_ngcontent-%COMP%] .filter-toggle-trigger[_ngcontent-%COMP%]:hover{background:#b3793f14}.grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] .filter-toggle-trigger[_ngcontent-%COMP%], .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] .filter-toggle-trigger[_ngcontent-%COMP%]{color:#eef0f2}.grey[_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] .filter-toggle-trigger[_ngcontent-%COMP%]:hover, .grey [_nghost-%COMP%] .filter-row[_ngcontent-%COMP%] .filter-toggle-trigger[_ngcontent-%COMP%]:hover{background:#dd8d5938}.filter-row[_ngcontent-%COMP%] .toolbar-group[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:2px 6px}@media (max-width: 600px){.filter-row[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:6px;padding:10px 12px}.filter-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .filter-row[_ngcontent-%COMP%] > a[_ngcontent-%COMP%], .filter-row[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%}}.filter-row[_ngcontent-%COMP%] .toolbar-group--start[_ngcontent-%COMP%], .filter-row[_ngcontent-%COMP%] .toolbar-group--end[_ngcontent-%COMP%]{flex:1 1 0;min-width:0}.filter-row[_ngcontent-%COMP%] .toolbar-group--end[_ngcontent-%COMP%]{justify-content:flex-end}.filter-row[_ngcontent-%COMP%] .toolbar-group--center[_ngcontent-%COMP%]{flex:0 1 auto;justify-content:center;text-align:center}@media (max-width: 600px){.filter-row[_ngcontent-%COMP%] .toolbar-group--start[_ngcontent-%COMP%], .filter-row[_ngcontent-%COMP%] .toolbar-group--end[_ngcontent-%COMP%], .filter-row[_ngcontent-%COMP%] .toolbar-group--center[_ngcontent-%COMP%]{flex:0 0 auto;justify-content:flex-start;text-align:left}}.mat-card[_ngcontent-%COMP%]{margin:16px 0;overflow:hidden}@media (max-width: 960px){.mat-card[_ngcontent-%COMP%]{margin:8px 0}}[dir=rtl][_ngcontent-%COMP%] .filter-row[_ngcontent-%COMP%], [dir=rtl][_ngcontent-%COMP%] .navigation-buttons[_ngcontent-%COMP%]{flex-direction:row-reverse}"]})}}return o}
1)();export{Ie as BookComponent};
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.