2026-04-09 20:42:09 +02:00
const _ _vite _ _mapDeps = ( i , m = _ _vite _ _mapDeps , d = ( m . f || ( m . f = [ "assets/ChatPage-BOjiIMc2.js" , "assets/chat-BEnAHpY-.js" , "assets/ChatWindow.vue_vue_type_script_setup_true_lang-DoshhDBV.js" , "assets/useNostr-DYbkCQxC.js" , "assets/ChatWindow-D6NcMh5O.css" , "assets/FilmGrid.vue_vue_type_script_setup_true_lang-CWkUdZ32.js" , "assets/useContentImages-CagIZs4M.js" , "assets/SongGrid.vue_vue_type_script_setup_true_lang-CW1T9zpX.js" , "assets/FilmDetail.vue_vue_type_script_setup_true_lang-Cg4zvjy1.js" , "assets/SongDetail.vue_vue_type_script_setup_true_lang-CvC0ROCb.js" , "assets/ChatPage-UEkXBR6z.css" , "assets/GuidePage-CpiR8yAR.js" , "assets/GuidePage-BvYaLEzG.css" , "assets/WidgetDemoPage-O5Vfu1LQ.js" , "assets/WidgetDemoPage-BSWX2CxO.css" , "assets/ConversationViewerPage-1f3wXZHu.js" ] ) ) ) => i . map ( i => d [ i ] ) ;
( function ( ) { const t = document . createElement ( "link" ) . relList ; if ( t && t . supports && t . supports ( "modulepreload" ) ) return ; for ( const i of document . querySelectorAll ( 'link[rel="modulepreload"]' ) ) s ( i ) ; new MutationObserver ( i => { for ( const r of i ) if ( r . type === "childList" ) for ( const o of r . addedNodes ) o . tagName === "LINK" && o . rel === "modulepreload" && s ( o ) } ) . observe ( document , { childList : ! 0 , subtree : ! 0 } ) ; function n ( i ) { const r = { } ; return i . integrity && ( r . integrity = i . integrity ) , i . referrerPolicy && ( r . referrerPolicy = i . referrerPolicy ) , i . crossOrigin === "use-credentials" ? r . credentials = "include" : i . crossOrigin === "anonymous" ? r . credentials = "omit" : r . credentials = "same-origin" , r } function s ( i ) { if ( i . ep ) return ; i . ep = ! 0 ; const r = n ( i ) ; fetch ( i . href , r ) } } ) ( ) ; const td = "modulepreload" , nd = function ( e ) { return "/aiui/" + e } , Bl = { } , jt = function ( t , n , s ) { let i = Promise . resolve ( ) ; if ( n && n . length > 0 ) { let a = function ( c ) { return Promise . all ( c . map ( u => Promise . resolve ( u ) . then ( f => ( { status : "fulfilled" , value : f } ) , f => ( { status : "rejected" , reason : f } ) ) ) ) } ; document . getElementsByTagName ( "link" ) ; const o = document . querySelector ( "meta[property=csp-nonce]" ) , l = o ? . nonce || o ? . getAttribute ( "nonce" ) ; i = a ( n . map ( c => { if ( c = nd ( c ) , c in Bl ) return ; Bl [ c ] = ! 0 ; const u = c . endsWith ( ".css" ) , f = u ? '[rel="stylesheet"]' : "" ; if ( document . querySelector ( ` link[href=" ${ c } "] ${ f } ` ) ) return ; const d = document . createElement ( "link" ) ; if ( d . rel = u ? "stylesheet" : td , u || ( d . as = "script" ) , d . crossOrigin = "" , d . href = c , l && d . setAttribute ( "nonce" , l ) , document . head . appendChild ( d ) , u ) return new Promise ( ( p , v ) => { d . addEventListener ( "load" , p ) , d . addEventListener ( "error" , ( ) => v ( new Error ( ` Unable to preload CSS for ${ c } ` ) ) ) } ) } ) ) } function r ( o ) { const l = new Event ( "vite:preloadError" , { cancelable : ! 0 } ) ; if ( l . payload = o , window . dispatchEvent ( l ) , ! l . defaultPrevented ) throw o } return i . then ( o => { for ( const l of o || [ ] ) l . status === "rejected" && r ( l . reason ) ; return t ( ) . catch ( r ) } ) } ; function el ( e ) { const t = Object . create ( null ) ; for ( const n of e . split ( "," ) ) t [ n ] = 1 ; return n => n in t } const Me = { } , ys = [ ] , sn = ( ) => { } , kc = ( ) => ! 1 , Er = e => e . charCodeAt ( 0 ) === 111 && e . charCodeAt ( 1 ) === 110 && ( e . charCodeAt ( 2 ) > 122 || e . charCodeAt ( 2 ) < 97 ) , tl = e => e . startsWith ( "onUpdate:" ) , Je = Object . assign , nl = ( e , t ) => { const n = e . indexOf ( t ) ; n > - 1 && e . splice ( n , 1 ) } , sd = Object . prototype . hasOwnProperty , Se = ( e , t ) => sd . call ( e , t ) , ie = Array . isArray , bs = e => Ai ( e ) === "[object Map]" , Rs = e => Ai ( e ) === "[object Set]" , Vl = e => Ai ( e ) === "[object Date]" , ue = e => typeof e == "function" , Be = e => typeof e == "string" , Bt = e => typeof e == "symbol" , ke = e => e !== null && typeof e == "object" , Cc = e => ( ke ( e ) || ue ( e ) ) && ue ( e . then ) && ue ( e . catch ) , Sc = Object . prototype . toString , Ai = e => Sc . call ( e ) , id = e => Ai ( e ) . slice ( 8 , - 1 ) , Pc = e => Ai ( e ) === "[object Object]" , xr = e => Be ( e ) && e !== "NaN" && e [ 0 ] !== "-" && "" + parseInt ( e , 10 ) === e , Qs = el ( ",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted" ) , Ar = e => { const t = Object . create ( null ) ; return ( n => t [ n ] || ( t [ n ] = e ( n ) ) ) } , rd = /-\w/g , Nt = Ar ( e => e . replace ( rd , t => t . slice ( 1 ) . toUpperCase ( ) ) ) , od = /\B([A-Z])/g , Fn = Ar ( e => e . replace ( od , "-$1" ) . toLowerCase ( ) ) , kr = Ar ( e => e . charAt ( 0 ) . toUpperCase ( ) + e . slice ( 1 ) ) , Wr = Ar ( e => e ? ` on ${ kr ( e ) } ` : "" ) , $n = ( e , t ) => ! Object . is ( e , t ) , Gi = ( e , ... t ) => { for ( let n = 0 ; n < e . length ; n ++ ) e [ n ] ( ... t ) } , Rc = ( e , t , n , s = ! 1 ) => { Object . defineProperty ( e , t , { configurable : ! 0 , enumerable : ! 1 , writable : s , value : n } ) } , Cr = e => { const t = parseFloat ( e ) ; return isNaN ( t ) ? e : t } , ld = e => { const t = Be ( e ) ? Number ( e ) : NaN ; return isNaN ( t ) ? e : t } ; let zl ; const Sr = ( ) => zl || ( zl = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : { } ) ; function Dn ( e ) { if ( ie ( e ) ) { const t = { } ; for ( let n = 0 ; n < e . length ; n ++ ) { const s = e [ n ] , i = Be ( s ) ? fd ( s ) : Dn ( s ) ; if ( i ) for ( const r in i ) t [ r ] = i [ r ] } return t } else if ( Be ( e ) || ke ( e ) ) return e } const ad = /;(?![^(]*\))/g , cd = /:([^]+)/ , ud = /\/\*[^]*?\*\//g ; function fd ( e ) { const t = { } ; return e . replace ( ud , "" ) . split ( ad ) . forEach ( n => { if ( n ) { const s = n . split ( cd ) ; s . length > 1 && ( t [ s [ 0 ] . trim ( ) ] = s [ 1 ] . trim ( ) ) } } ) , t } function qe ( e ) { let t = "" ; if ( Be ( e ) ) t = e ; else if ( ie ( e ) ) for ( let n = 0 ; n < e . length ; n ++ ) { const s = qe ( e [ n ] ) ; s && ( t += s + " " ) } else if ( ke ( e ) ) for ( const n in e ) e [ n ] && ( t += n + " " ) ; return t . trim ( ) } const dd = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly" , hd = el ( dd ) ; functi
2026-03-07 19:52:33 +00:00
` );c.push( ` * * Installed apps on this node : * *
$ { u }
2026-03-09 21:20:57 +00:00
You can view recent app logs by requesting the tail - logs action with an appId . ` )}if(Yt.value.includes("system")&&Fs.value.name){const u=Fs.value;c.push( ` * * System : * * $ { u . name } $ { u . version ? " v" + u . version : "" } ` )}if(Yt.value.includes("network")){const u=Bi.value;c.push( ` * * Network : * * $ { u . connected ? "Connected" : "Disconnected" } ` )}if(Yt.value.includes("wallet")&&Hs.value.available){const u=Hs.value,f=[];u.alias&&f.push(u.alias),u.num_active_channels!==void 0&&f.push( ` $ { u . num _active _channels } channels ` ),u.num_peers!==void 0&&f.push( ` $ { u . num _peers } peers ` ),u.balance_sats!==void 0&&f.push( ` On - chain : $ { u . balance _sats . toLocaleString ( ) } sats ` ),u.channel_balance_sats!==void 0&&f.push( ` In channels : $ { u . channel _balance _sats . toLocaleString ( ) } sats ` ),u.synced_to_chain!==void 0&&f.push(u.synced_to_chain?"synced":"syncing"),c.push( ` * * Lightning ( LND ) : * * $ { f . join ( " | " ) } ` )}if(Yt.value.includes("bitcoin")&&Vs.value.available){const u=Vs.value,f=u.sync_progress?(u.sync_progress*100).toFixed(2)+"%":"unknown",d=[ ` Block $ { u . block _height ? . toLocaleString ( ) ? ? "?" } ` , ` $ { f } synced ` ];u.chain&&d.push(u.chain),u.mempool_tx_count&&d.push( ` mempool : $ { u . mempool _tx _count . toLocaleString ( ) } txs ` ),c.push( ` * * Bitcoin : * * $ { d . join ( ", " ) } ` )}if(Yt.value.includes("files")&&Bs.value.length>0){const u=Bs.value,f=u.filter(E=>E.type==="folder"),d=u.filter(E=>E.type==="file"),p=d.filter(E=>/ \. (jpg|jpeg|png|gif|webp|svg|heic|heif) $ /i.test(E.name)),v=d.filter(E=>/ \. (mp4|mkv|avi|mov|webm) $ /i.test(E.name)),b=d.filter(E=>/ \. (mp3|flac|wav|ogg|m4a|aac|opus) $ /i.test(E.name)),I=d.filter(E=>/ \. (pdf|doc|docx|txt|md|ods|xlsx|csv) $ /i.test(E.name)),x=[ ` $ { u . length } items ` ];f.length>0&&x.push( ` $ { f . length } folders ( $ { f . map ( E => E . name ) . join ( ", " ) } ) ` ),p.length>0&&x.push( ` $ { p . length } images ` ),v.length>0&&x.push( ` $ { v . length } videos ` ),b.length>0&&x.push( ` $ { b . length } audio files ` ),I.length>0&&x.push( ` $ { I . length } documents ` );const w=d.slice(0,15).map(E=>E.name).join(", ");c.push( ` * * Files : * * $ { x . join ( " | " ) }
2026-03-07 21:49:08 +00:00
Recent : $ { w }
2026-03-07 19:52:33 +00:00
You can read file contents by requesting the read - file action with a file path . ` )}return c.length===0?"": `
* * Archy Node Context * * ( this user is running AIUI on their Archipelago node ) :
$ { c . join ( `
` )}
2026-03-09 21:20:57 +00:00
You can help the user manage their node , check service status , browse files , and recommend apps . Available actions : open an app ( open - app ) , install an app ( install - app ) , tail app logs ( tail - logs ) , read a file ( read - file ) , navigate in Archy ( navigate ) . When recommending apps , use [ [ app _ext : ... ] ] tags and check if they 're already installed. When discussing the user' s files , mention specific files you can see . If the user asks about their photos , videos , or music , reference the file counts above . ` }function a(){for(const c of Vi)c();Vi=[],An.destroy(),kn.value=!1}return{isEmbedded:St(uo),isInitialized:St(kn),permissions:St(Yt),accentColor:St(nc),installedApps:St(js),systemInfo:St(Fs),networkInfo:St(Bi),walletInfo:St(Hs),fileList:St(Bs),bitcoinInfo:St(Vs),init:e,destroy:a,refreshContext:n,requestAction:s,readFile:i,tailLogs:r,buildArchyContext:l}}function Qm(){const e=Q(0),t=Q(!1),n=Q(typeof window<"u"?window.innerHeight:0);let s=typeof window<"u"?window.innerHeight:0,i=null;function r(){i&&clearTimeout(i),i=setTimeout(()=>{const l=window.visualViewport;if(!l)return;const a=Math.max(0,s-l.height);e.value=a,t.value=a>100,n.value=l.height},50)}function o(){const l=window.visualViewport;l&&!t.value&&(s=l.height,n.value=l.height)}return is(()=>{const l=window.visualViewport;l&&(s=l.height,n.value=l.height,l.addEventListener("resize",r),l.addEventListener("scroll",r)),window.addEventListener("resize",o)}),Or(()=>{const l=window.visualViewport;l&&(l.removeEventListener("resize",r),l.removeEventListener("scroll",r)),window.removeEventListener("resize",o)}),{keyboardHeight:e,isKeyboardOpen:t,viewportHeight:n}}const Zm=/^https?: \/ \/ /i,eg=Gu("articleOverlay",()=>{const e=Q(!1),t=Q(null),n=Q(""),s=Q(null),i=Q(null);function r(l,a="",c,u){const f=String(l??"").trim();if(Zm.test(f)){try{new URL(f)}catch{return}t.value=f,n.value=String(a??"Article").slice(0,200),s.value=typeof c=="string"&&c.trim().length>0?c.trim():null,i.value=typeof u=="string"&&u.trim().length>0?u.trim():null,e.value=!0}}function o(){e.value=!1,t.value=null,n.value="",s.value=null,i.value=null}return{isOpen:e,url:t,title:n,content:s,imgSrc:i,open:r,close:o}});const{entries:uf,setPrototypeOf:sc,isFrozen:tg,getPrototypeOf:ng,getOwnPropertyDescriptor:sg}=Object;let{freeze:wt,seal:Lt,create:Vo}=Object,{apply:zo,construct:qo}=typeof Reflect<"u"&&Reflect;wt||(wt=function(t){return t});Lt||(Lt=function(t){return t});zo||(zo=function(t,n){for(var s=arguments.length,i=new Array(s>2?s-2:0),r=2;r<s;r++)i[r-2]=arguments[r];return t.apply(n,i)});qo||(qo=function(t){for(var n=arguments.length,s=new Array(n>1?n-1:0),i=1;i<n;i++)s[i-1]=arguments[i];return new t(...s)});const zi=_t(Array.prototype.forEach),ig=_t(Array.prototype.lastIndexOf),ic=_t(Array.prototype.pop),zs=_t(Array.prototype.push),rg=_t(Array.prototype.splice),sr=_t(String.prototype.toLowerCase),fo=_t(String.prototype.toString),ho=_t(String.prototype.match),qs=_t(String.prototype.replace),og=_t(String.prototype.indexOf),lg=_t(String.prototype.trim), $ t=_t(Object.prototype.hasOwnProperty),gt=_t(RegExp.prototype.test),Ws=ag(TypeError);function _t(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,s=new Array(n>1?n-1:0),i=1;i<n;i++)s[i-1]=arguments[i];return zo(e,t,s)}}function ag(e){return function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return qo(e,n)}}function me(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:sr;sc&&sc(e,null);let s=t.length;for(;s--;){let i=t[s];if(typeof i=="string"){const r=n(i);r!==i&&(tg(t)||(t[s]=r),i=r)}e[i]=!0}return e}function cg(e){for(let t=0;t<e.length;t++) $ t(e,t)||(e[t]=null);return e}function Jt(e){const t=Vo(null);for(const[n,s]of uf(e)) $ t(e,n)&&(Array.isArray(s)?t[n]=cg(s):s&&typeof s=="object"&&s.constructor===Object?t[n]=Jt(s):t[n]=s);return t}function Ks(e,t){for(;e!==null;){const s=sg(e,t);if(s){if(s.get)return _t(s.get);if(typeof s.value=="function")return _t(s.value)}e=ng(e)}function n(){return null}return n}const rc=wt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bd
` +Et),g&&zi([F,se,be],on=>{Et=qs(Et,on," ")}),T&&j?T.createHTML(Et):Et},t.setConfig=function(){let ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Vr(ne),O=!0},t.clearConfig=function(){ls=null,O=!1},t.isValidAttribute=function(ne,y,U){ls||Vr({});const Z=Ge(ne),Le=Ge(y);return Dl(Z,Le,U)},t.addHook=function(ne,y){typeof y=="function"&&zs(D[ne],y)},t.removeHook=function(ne,y){if(y!==void 0){const U=ig(D[ne],y);return U===-1?void 0:rg(D[ne],U,1)[0]}return ic(D[ne])},t.removeHooks=function(ne){D[ne]=[]},t.removeAllHooks=function(){D=uc()},t}var Tg=hf();function Eg(e){try{const t=new URL(e);return/^https?: $ /i.test(t.protocol)}catch{return!1}}function qv(e){return!!e&&typeof e=="string"&&/^https?: \/ \/ /i.test(e.trim())}const xg=["p","br","a","strong","em","b","i","ul","ol","li","blockquote","h1","h2","h3","h4","span","div"];function Ag(e){return Tg.sanitize(e,{ALLOWED_TAGS:xg,ALLOWED_ATTR:["href","src","target","rel"]})}function kg(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function Wv(e){try{return new URL(e).hostname.replace(/^www \. /,"")}catch{return e}}const Cg=["disabled"],Sg=["href"],Pg={class:"relative flex-1 min-h-0 bg-black/20 overflow-hidden"},Rg={class:"[&_p]:mb-3 [&_ul]:list-disc [&_ol]:list-decimal [&_li]:ml-4 [&_a]:underline [&_a]:underline-offset-2 [&_h1]:text-lg [&_h2]:text-base [&_h3]:text-sm [&_blockquote]:border-l-2 [&_blockquote]:pl-3 [&_blockquote]:italic"},Ig=["src","alt"],Mg=["innerHTML"],Og=["href"],Ng=["src"],Lg=Hn({__name:"ArticleOverlay",setup(e){const t=eg(),{isDark:n}=cf(),s=He(()=>{const f=t.content;return f?/<[a-z][ \s \S ]*>/i.test(f)?Ag(f): ` < p class = "whitespace-pre-wrap" > $ { kg ( f ) } < / p > ` : " " } ) , i = Q ( n u l l ) , r = Q ( 0 ) , o = Q ( ! 1 ) ; f u n c t i o n l ( ) { o . v a l u e = ! 0 , r . v a l u e + + } f u n c t i o n a ( ) { o . v a l u e = ! 1 } f u n c t i o n c ( f ) { f . k e y = = = " E s c a p e " & & t . i s O p e n & & ( t . c l o s e ( ) , f . p r e v e n t D e f a u l t ( ) , f . s t o p P r o p a g a t i o n ( ) ) } H t ( ( ) = > t . i s O p e n , f = > { f | | ( o . v a l u e = ! 1 ) } ) , i s ( ( ) = > { w i n d o w . a d d E v e n t L i s t e n e r ( " k e y d o w n " , c , ! 0 ) } ) , M r ( ( ) = > { w i n d o w . r e m o v e E v e n t L i s t e n e r ( " k e y d o w n " , c , ! 0 ) } ) ; c o n s t u = [ " w - f u l l m a x - w - [ c a l c ( 1 0 0 v w - 3 r e m ) ] h - [ 8 0 v h ] m a x - h - [ c a l c ( 1 0 0 v h - 5 r e m ) ] " , " m d : m a x - w - [ c a l c ( 1 0 0 v w - 5 r e m ) ] " ] ; r e t u r n ( f , d ) = > ( d e ( ) , U n ( d l , { t o : " b o d y " } , [ N e ( g r , { n a m e : " a p p - l a u n c h e r " } , { d e f a u l t : d i ( ( ) = > [ V ( t ) . i s O p e n ? ( d e ( ) , v e ( " d i v " , { k e y : 0 , c l a s s : " f i x e d i n s e t - 0 z - [ 2 4 0 0 ] f l e x i t e m s - c e n t e r j u s t i f y - c e n t e r p - 6 m d : p - 1 0 " , o n C l i c k : d [ 2 ] | | ( d [ 2 ] = d n ( p = > V ( t ) . c l o s e ( ) , [ " s e l f " ] ) ) } , [ d [ 7 ] | | ( d [ 7 ] = k ( " d i v " , { c l a s s : " a b s o l u t e i n s e t - 0 b g - b l a c k / 6 0 b a c k d r o p - b l u r - m d " } , n u l l , - 1 ) ) , k ( " d i v " , { c l a s s : q e ( [ " a r t i c l e - o v e r l a y - p a n e l r e l a t i v e z - 1 0 f l e x f l e x - c o l o v e r f l o w - h i d d e n r o u n d e d - 2 x l s h a d o w - 2 x l p a t h - g l a s s - c a r d " , u ] ) } , [ k ( " d i v " , { c l a s s : " f l e x i t e m s - c e n t e r g a p - 3 p x - 4 p y - 3 s h r i n k - 0 " , s t y l e : D n ( V ( n ) ? " b o r d e r - b o t t o m : 1 p x s o l i d r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 0 8 ) " : " b o r d e r - b o t t o m : 1 p x s o l i d r g b a ( 0 , 0 , 0 , 0 . 0 6 ) " ) } , [ V ( t ) . c o n t e n t ? m t ( " " , ! 0 ) : ( d e ( ) , v e ( " b u t t o n " , { k e y : 0 , t y p e : " b u t t o n " , c l a s s : q e ( [ " f l e x i t e m s - c e n t e r j u s t i f y - c e n t e r w - 9 h - 9 r o u n d e d - l g t r a n s i t i o n - c o l o r s t r a n s i t i o n - t r a n s f o r m d u r a t i o n - 3 0 0 d i s a b l e d : o p a c i t y - 7 0 d i s a b l e d : c u r s o r - n o t - a l l o w e d " , V ( n ) ? " h o v e r : b g - w h i t e / 1 0 t e x t - w h i t e / 7 0 " : " h o v e r : b g - b l a c k / 5 t e x t - g r a y - 6 0 0 " ] ) , " a r i a - l a b e l " : " R e f r e s h p a g e " , t i t l e : " R e f r e s h " , d i s a b l e d : o . v a l u e , o n C l i c k : l } , [ ( d e ( ) , v e ( " s v g " , { c l a s s : q e ( [ " w - 5 h - 5 " , { " a n i m a t e - s p i n " : o . v a l u e } ] ) , f i l l : " n o n e " , s t r o k e : " c u r r e n t C o l o r " , v i e w B o x : " 0 0 2 4 2 4 " , " a r i a - h i d d e n " : " t r u e " } , [ . . . d [ 3 ] | | ( d [ 3 ] = [ k ( " p a t h " , { " s t r o k e - l i n e c a p " : " r o u n d " , " s t r o k e - l i n e j o i n " : " r o u n d " , " s t r o k e - w i d t h " : " 2 " , d : " M 4 4 v 5 h . 5 8 2 m 1 5 . 3 5 6 2 A 8 . 0 0 1 8 . 0 0 1 0 0 0 4 . 5 8 2 9 m 0 0 H 9 m 1 1 1 1 v - 5 h - . 5 8 1 m 0 0 a 8 . 0 0 3 8 . 0 0 3 0 0 1 - 1 5 . 3 5 7 - 2 m 1 5 . 3 5 7 2 H 1 5 " } , n u l l , - 1 ) ] ) ] , 2 ) ) ] , 1 0 , C g ) ) , k ( " s p a n " , { c l a s s : q e ( [ " f l e x - 1 t r u n c a t e t e x t - s m f o n t - m e d i u m m i n - w - 0 " , V ( n ) ? " t e x t - w h i t e / 9 0 " : " t e x t - g r a y - 9 0 0 " ] ) } , t t ( V ( t ) . t i t l e | | " A r t i c l e " ) , 3 ) , V ( t ) . u r l ? ( d e ( ) , v e ( " a " , { k e y : 1 , h r e f : V ( t ) . u r l , t a r g e t : " _ b l a n k " , r e l : " n o o p e n e r n o r e f e r r e r " , c l a s s : q e ( [ " f l e x i t e m s - c e n t e r j u s t i f y - c e n t e r w - 9 h - 9 r o u n d e d - l g t r a n s i t i o n - c o l o r s s h r i n k - 0 " , V ( n ) ? " h o v e r : b g - w h i t e / 1 0 t e x t - w h i t e / 7 0 " : " h o v e r : b g - b l a c k / 5 t e x t - g r a y - 6 0 0 " ] ) , " a r i a - l a b e l " : " O p e n i n n e w t a b " , t i t l e : " O p e n i n n e w t a b " , o n C l i c k : d [ 0 ] | | ( d [ 0 ] = d n ( ( ) = > { } , [ " s t o p " ] ) ) } , [ . . . d [ 4 ] | | ( d [ 4 ] = [ k ( " s v g " , { c l a s s : " w - 5 h - 5 " , f i l l : " n o n e " , s t r o k e : " c u r r e n t C o l o r " , v i e w B o x : " 0 0 2 4 2 4 " } , [ k ( " p a t h " , { " s t r o k e -
2026-04-09 20:42:09 +02:00
` );if(n!==this.elements.captions.innerHTML){ir(this.elements.captions);const i=le("span",Zt(this.config.selectors.caption));i.innerHTML=n,this.elements.captions.appendChild(i),ae.call(this,this.media,"cuechange")}}}, $ f={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.8.4/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrappe
2026-03-07 19:52:33 +00:00
< rect width = "200" height = "200" fill = "hsl(${s}, ${i}%, 28%)" / >
< rect x = "3" y = "3" width = "194" height = "194" rx = "12" fill = "none" stroke = "hsl(${s}, ${i+5}%, 38%)" stroke - width = "1" / >
< text x = "100" y = "82" text - anchor = "middle" fill = "hsl(${s}, ${i}%, 48%)" font - family = "system-ui,sans-serif" font - size = "10" font - weight = "400" letter - spacing = "4" > $ { e } < / t e x t >
< line x1 = "60" y1 = "92" x2 = "140" y2 = "92" stroke = "hsl(${s}, ${i+5}%, 40%)" stroke - width = "1" / >
< text x = "100" y = "118" text - anchor = "middle" fill = "hsl(${s}, ${i+15}%, 78%)" font - family = "system-ui,sans-serif" font - size = "13" font - weight = "700" > $ { Ss ( t . length > 18 ? t . slice ( 0 , 16 ) + "…" : t ) } < / t e x t >
$ { n ? ` <text x="100" y="138" text-anchor="middle" fill="hsl( ${ s } , ${ i } %, 60%)" font-family="system-ui,sans-serif" font-size="10" font-weight="300"> ${ Ss ( n . length > 22 ? n . slice ( 0 , 20 ) + "…" : n ) } </text> ` : "" }
2026-03-09 21:20:57 +00:00
< / s v g > ` ; r e t u r n ` d a t a : i m a g e / s v g + x m l , $ { e n c o d e U R I C o m p o n e n t ( o ) } ` } f u n c t i o n K v ( e , t ) { c o n s t n = [ . . . e + ( t ? ? " " ) ] . r e d u c e ( ( s , i ) = > s + i . c h a r C o d e A t ( 0 ) , 0 ) % 3 6 0 ; r e t u r n M s ( " P O D C A S T " , e , t , n , 3 0 ) } f u n c t i o n G v ( e , t ) { c o n s t n = [ . . . e + ( t ? ? " " ) ] . r e d u c e ( ( s , i ) = > s + i . c h a r C o d e A t ( 0 ) , 0 ) % 3 6 0 ; r e t u r n M s ( " M U S I C " , e , t , n , 3 0 ) } f u n c t i o n Y v ( e , t ) { c o n s t n = [ . . . e + ( t ? ? " " ) ] . r e d u c e ( ( s , i ) = > s + i . c h a r C o d e A t ( 0 ) , 0 ) % 3 6 0 ; r e t u r n M s ( " N E W S " , e , t , n , 2 2 ) } f u n c t i o n X v ( e , t ) { c o n s t n = [ . . . e + ( t ? ? " " ) ] . r e d u c e ( ( s , i ) = > s + i . c h a r C o d e A t ( 0 ) , 0 ) % 3 6 0 ; r e t u r n M s ( " W E B S I T E " , e , t , n , 2 5 ) } f u n c t i o n w b ( e , t ) { c o n s t n = [ . . . e ] . r e d u c e ( ( i , r ) = > i + r . c h a r C o d e A t ( 0 ) , 0 ) % 3 6 0 , s = ` < s v g x m l n s = " h t t p : / / w w w . w 3 . o r g / 2 0 0 0 / s v g " v i e w B o x = " 0 0 3 4 2 5 1 3 " >
2026-03-07 19:52:33 +00:00
< rect width = "342" height = "513" fill = "hsl(${n}, 25%, 28%)" / >
< rect x = "3" y = "3" width = "336" height = "507" rx = "6" fill = "none" stroke = "hsl(${n}, 30%, 38%)" stroke - width = "1" / >
< text x = "171" y = "210" text - anchor = "middle" fill = "hsl(${n}, 25%, 48%)" font - family = "'Helvetica Neue',Helvetica,Arial,sans-serif" font - size = "13" font - weight = "400" letter - spacing = "5" > FILM < / t e x t >
< line x1 = "121" y1 = "225" x2 = "221" y2 = "225" stroke = "hsl(${n}, 30%, 40%)" stroke - width = "1" / >
< text x = "171" y = "265" text - anchor = "middle" fill = "hsl(${n}, 45%, 78%)" font - family = "'Helvetica Neue',Helvetica,Arial,sans-serif" font - size = "18" font - weight = "700" >
$ { Ss ( e . length > 20 ? e . slice ( 0 , 18 ) + "…" : e ) }
< / t e x t >
$ { t ? ` <text x="171" y="295" text-anchor="middle" fill="hsl( ${ n } , 30%, 60%)" font-family="'Helvetica Neue',Helvetica,Arial,sans-serif" font-size="14" font-weight="300"> ${ t } </text> ` : "" }
2026-03-07 21:49:08 +00:00
< / s v g > ` ; r e t u r n ` d a t a : i m a g e / s v g + x m l , $ { e n c o d e U R I C o m p o n e n t ( s ) } ` } f u n c t i o n J v ( e , t ) { c o n s t n = [ . . . e ] . r e d u c e ( ( i , r ) = > i + r . c h a r C o d e A t ( 0 ) , 0 ) % 3 6 0 , s = ` < s v g x m l n s = " h t t p : / / w w w . w 3 . o r g / 2 0 0 0 / s v g " v i e w B o x = " 0 0 3 4 2 5 1 3 " >
2026-03-07 19:52:33 +00:00
< rect width = "342" height = "513" fill = "hsl(${n}, 22%, 28%)" / >
< rect x = "3" y = "3" width = "336" height = "507" rx = "6" fill = "none" stroke = "hsl(${n}, 28%, 38%)" stroke - width = "1" / >
< text x = "171" y = "210" text - anchor = "middle" fill = "hsl(${n}, 22%, 48%)" font - family = "'SF Pro Display',system-ui,sans-serif" font - size = "13" font - weight = "400" letter - spacing = "5" > SERIES < / t e x t >
< line x1 = "111" y1 = "225" x2 = "231" y2 = "225" stroke = "hsl(${n}, 28%, 40%)" stroke - width = "1" / >
< text x = "171" y = "265" text - anchor = "middle" fill = "hsl(${n}, 40%, 78%)" font - family = "'SF Pro Display',system-ui,sans-serif" font - size = "18" font - weight = "700" >
$ { Ss ( e . length > 20 ? e . slice ( 0 , 18 ) + "…" : e ) }
< / t e x t >
$ { t ? ` <text x="171" y="295" text-anchor="middle" fill="hsl( ${ n } , 28%, 60%)" font-family="'SF Pro Display',system-ui,sans-serif" font-size="14" font-weight="300"> ${ t } </text> ` : "" }
2026-03-08 01:48:23 +00:00
< / s v g > ` ; r e t u r n ` d a t a : i m a g e / s v g + x m l , $ { e n c o d e U R I C o m p o n e n t ( s ) } ` } f u n c t i o n S s ( e ) { r e t u r n e . r e p l a c e ( / & / g , " & a m p ; " ) . r e p l a c e ( / < / g , " & l t ; " ) . r e p l a c e ( / > / g , " & g t ; " ) . r e p l a c e ( / " / g , " & q u o t ; " ) } a s y n c f u n c t i o n V f ( e , t , n ) { c o n s t s = ` $ { e } : $ { B f ( t , n ) } ` , i = x i . g e t ( s ) ; i f ( i ) r e t u r n i ; c o n s t r = { p o s t e r U r l : n u l l , b a c k d r o p U r l : n u l l } ; t r y { c o n s t o = n e w U R L S e a r c h P a r a m s ( { q : t . t r i m ( ) } ) ; n & & n > 0 & & o . s e t ( " y " , S t r i n g ( n ) ) ; c o n s t l = a w a i t S l ( ` / a p i / t m d b / $ { e } ? $ { o } ` ) ; i f ( ! l . o k ) r e t u r n r ; c o n s t a = a w a i t l . j s o n ( ) , c = { p o s t e r U r l : a . p o s t e r U r l ? ? n u l l , b a c k d r o p U r l : a . b a c k d r o p U r l ? ? n u l l } ; r e t u r n ( c . p o s t e r U r l | | c . b a c k d r o p U r l ) & & ( x i . s e t ( s , c ) , y b ( ) ) , c } c a t c h { r e t u r n r } } a s y n c f u n c t i o n z f ( e , t ) { r e t u r n V f ( " s e a r c h " , e , t ) } a s y n c f u n c t i o n Q v ( e , t , n ) { c o n s t s = e . t a r g e t ; i f ( s . d a t a s e t . f a l l b a c k = = = " d o n e " ) r e t u r n ; c o n s t i = s . s r c ; d b . a d d ( i ) ; c o n s t r = B f ( t , n ) , o = x i . g e t ( r ) ; i f ( o ? . p o s t e r U r l & & o . p o s t e r U r l ! = = i ) { s . d a t a s e t . f a l l b a c k = " t m d b " , s . s r c = o . p o s t e r U r l ; r e t u r n } i f ( s . d a t a s e t . f a l l b a c k ! = = " t m d b " ) { c o n s t { p o s t e r U r l : l } = a w a i t z f ( t , n ) ; i f ( l & & l ! = = i ) { s . d a t a s e t . f a l l b a c k = " t m d b " , s . s r c = l ; r e t u r n } } i f ( s . d a t a s e t . f a l l b a c k ! = = " w i k i " ) { c o n s t l = a w a i t P s ( t , " f i l m " ) ; i f ( l ) { s . d a t a s e t . f a l l b a c k = " w i k i " , s . s r c = l ; r e t u r n } } s . d a t a s e t . f a l l b a c k = " d o n e " , s . s r c = w b ( t , n ) } a s y n c f u n c t i o n _ b ( e , t ) { r e t u r n V f ( " s e a r c h - t v " , e , t ) } a s y n c f u n c t i o n Z v ( e , t ) { c o n s t n = p b ( e , t ) , s = _ r . g e t ( n ) ; i f ( s ) r e t u r n s ; t r y { c o n s t i = t ? ` $ { e } $ { t } ` : e , r = a w a i t f e t c h ( ` h t t p s : / / i t u n e s . a p p l e . c o m / s e a r c h ? t e r m = $ { e n c o d e U R I C o m p o n e n t ( i . t r i m ( ) ) } & m e d i a = p o d c a s t & l i m i t = 3 ` ) ; i f ( ! r . o k ) r e t u r n n u l l ; c o n s t a = ( a w a i t r . j s o n ( ) ) . r e s u l t s ? . [ 0 ] ? . a r t w o r k U r l 1 0 0 ; i f ( ! a ) r e t u r n n u l l ; c o n s t c = a . r e p l a c e ( / 1 0 0 x 1 0 0 / g , " 6 0 0 x 6 0 0 " ) ; r e t u r n _ r . s e t ( n , c ) , v b ( ) , c } c a t c h { r e t u r n n u l l } } c o n s t T r = n e w M a p , q f = " a i u i - b o o k - c o v e r - c a c h e " ; f u n c t i o n W f ( e , t ) { r e t u r n ` $ { e . t o L o w e r C a s e ( ) . t r i m ( ) } | $ { t . t o L o w e r C a s e ( ) . t r i m ( ) } ` } f u n c t i o n T b ( ) { t r y { c o n s t e = s e s s i o n S t o r a g e . g e t I t e m ( q f ) ; i f ( e ) { c o n s t t = J S O N . p a r s e ( e ) ; O b j e c t . e n t r i e s ( t ) . f o r E a c h ( ( [ n , s ] ) = > T r . s e t ( n , s ) ) } } c a t c h { } } f u n c t i o n E b ( ) { t r y { c o n s t e = [ . . . T r . e n t r i e s ( ) ] . s l i c e ( - 2 0 0 ) ; s e s s i o n S t o r a g e . s e t I t e m ( q f , J S O N . s t r i n g i f y ( O b j e c t . f r o m E n t r i e s ( e ) ) ) } c a t c h { } } T b ( ) ; f u n c t i o n e w ( e , t ) { c o n s t n = [ . . . e + ( t ? ? " " ) ] . r e d u c e ( ( i , r ) = > i + r . c h a r C o d e A t ( 0 ) , 0 ) % 3 6 0 , s = ` < s v g x m l n s = " h t t p : / / w w w . w 3 . o r g / 2 0 0 0 / s v g " v i e w B o x = " 0 0 3 4 2 5 1 3 " >
2026-03-07 19:52:33 +00:00
< rect width = "342" height = "513" fill = "hsl(${n}, 20%, 28%)" / >
< rect x = "3" y = "3" width = "336" height = "507" rx = "6" fill = "none" stroke = "hsl(${n}, 25%, 38%)" stroke - width = "1" / >
< text x = "171" y = "210" text - anchor = "middle" fill = "hsl(${n}, 18%, 48%)" font - family = "Georgia,'Times New Roman',serif" font - size = "13" font - weight = "400" letter - spacing = "5" > BOOK < / t e x t >
< line x1 = "121" y1 = "225" x2 = "221" y2 = "225" stroke = "hsl(${n}, 22%, 40%)" stroke - width = "1" / >
< text x = "171" y = "265" text - anchor = "middle" fill = "hsl(${n}, 35%, 78%)" font - family = "Georgia,'Times New Roman',serif" font - size = "18" font - weight = "700" >
$ { Ss ( e . length > 20 ? e . slice ( 0 , 18 ) + "…" : e ) }
< / t e x t >
$ { t ? ` <text x="171" y="295" text-anchor="middle" fill="hsl( ${ n } , 22%, 60%)" font-family="Georgia,'Times New Roman',serif" font-size="14" font-weight="300"> ${ Ss ( t . length > 24 ? t . slice ( 0 , 22 ) + "…" : t ) } </text> ` : "" }
2026-04-09 20:42:09 +02:00
< / s v g > ` ; r e t u r n ` d a t a : i m a g e / s v g + x m l , $ { e n c o d e U R I C o m p o n e n t ( s ) } ` } a s y n c f u n c t i o n x b ( e , t ) { c o n s t n = W f ( e , t ) , s = T r . g e t ( n ) ; i f ( s ) r e t u r n s ; t r y { c o n s t i = ` $ { e } $ { t } ` . t r i m ( ) , r = a w a i t f e t c h ( ` h t t p s : / / o p e n l i b r a r y . o r g / s e a r c h . j s o n ? q = $ { e n c o d e U R I C o m p o n e n t ( i ) } & l i m i t = 1 & f i e l d s = c o v e r _ i ` ) ; i f ( ! r . o k ) r e t u r n n u l l ; c o n s t l = ( a w a i t r . j s o n ( ) ) . d o c s ? . [ 0 ] ? . c o v e r _ i ; i f ( ! l ) r e t u r n n u l l ; c o n s t a = ` h t t p s : / / c o v e r s . o p e n l i b r a r y . o r g / b / i d / $ { l } - L . j p g ` ; r e t u r n T r . s e t ( n , a ) , E b ( ) , a } c a t c h { r e t u r n n u l l } } f u n c t i o n t w ( e , t ) { c o n s t n = [ . . . e + ( t ? ? " " ) ] . r e d u c e ( ( s , i ) = > s + i . c h a r C o d e A t ( 0 ) , 0 ) % 3 6 0 ; r e t u r n M s ( " P L A C E " , e , t , n , 2 0 ) } f u n c t i o n n w ( e , t ) { c o n s t n = [ . . . e ] . r e d u c e ( ( s , i ) = > s + i . c h a r C o d e A t ( 0 ) , 0 ) % 3 6 0 ; r e t u r n M s ( " R E C I P E " , e , t , n , 3 0 ) } a s y n c f u n c t i o n s w ( e , t ) { i f ( t ) { c o n s t s = a w a i t P s ( e , t ) ; i f ( s ) r e t u r n s } c o n s t n = a w a i t P s ( e , " r e s t a u r a n t " ) ; r e t u r n n | | n u l l } a s y n c f u n c t i o n A b ( e , t , n ) { c o n s t s = h b ( t , e ) , i = g s . g e t ( s ) ; i f ( i ) r e t u r n i ; t r y { c o n s t r = " / a i u i / " , o = n e w U R L S e a r c h P a r a m s ( { q : e , t i t l e : e , a r t i s t : t } ) , l = a w a i t S l ( ` $ { r } a p i / m u s i c / s e a r c h ? $ { o } ` ) ; i f ( l . o k ) { c o n s t a = a w a i t l . j s o n ( ) ; i f ( a . c o v e r U r l ) r e t u r n g s . s e t ( s , a . c o v e r U r l ) , E o ( ) , a . c o v e r U r l } } c a t c h { } t r y { c o n s t r = ` $ { e } $ { t } ` . t r i m ( ) , o = a w a i t f e t c h ( ` h t t p s : / / w a v l a k e . c o m / a p i / v 1 / c o n t e n t / s e a r c h ? t e r m = $ { e n c o d e U R I C o m p o n e n t ( r ) } ` , { h e a d e r s : { A c c e p t : " a p p l i c a t i o n / j s o n " } } ) ; i f ( o . o k ) { c o n s t l = a w a i t o . j s o n ( ) ; i f ( A r r a y . i s A r r a y ( l ) ) { c o n s t a = l . f i n d ( u = > u . t y p e = = = " t r a c k " ) , c = a ? . a l b u m A r t U r l ? ? a ? . a r t i s t A r t U r l ; i f ( c ) r e t u r n g s . s e t ( s , c ) , E o ( ) , c } } } c a t c h { } t r y { c o n s t r = ` $ { t } $ { e } ` . t r i m ( ) . r e p l a c e ( / \ s + / g , " + " ) , o = a w a i t f e t c h ( ` h t t p s : / / i t u n e s . a p p l e . c o m / s e a r c h ? t e r m = $ { e n c o d e U R I C o m p o n e n t ( r ) } & m e d i a = m u s i c & l i m i t = 3 ` ) ; i f ( ! o . o k ) r e t u r n n u l l ; c o n s t c = ( a w a i t o . j s o n ( ) ) . r e s u l t s ? . [ 0 ] ? . a r t w o r k U r l 1 0 0 ; i f ( ! c ) r e t u r n n u l l ; c o n s t u = c . r e p l a c e ( / 1 0 0 x 1 0 0 / g , " 6 0 0 x 6 0 0 " ) ; r e t u r n g s . s e t ( s , u ) , E o ( ) , u } c a t c h { r e t u r n n u l l } } c o n s t _ s = n e w M a p ; a s y n c f u n c t i o n P s ( e , t ) { c o n s t n = ` $ { e . t o L o w e r C a s e ( ) . t r i m ( ) } | $ { ( t ? ? " " ) . t o L o w e r C a s e ( ) } ` ; i f ( _ s . h a s ( n ) ) r e t u r n _ s . g e t ( n ) ? ? n u l l ; c o n s t s = a s y n c r = > { t r y { c o n s t o = e n c o d e U R I C o m p o n e n t ( r . t r i m ( ) . r e p l a c e ( / \ s + / g , " _ " ) ) , l = a w a i t f e t c h ( ` h t t p s : / / e n . w i k i p e d i a . o r g / a p i / r e s t _ v 1 / p a g e / s u m m a r y / $ { o } ` ) ; i f ( ! l . o k ) r e t u r n n u l l ; c o n s t a = a w a i t l . j s o n ( ) ; r e t u r n a . o r i g i n a l i m a g e ? . s o u r c e ? ? a . t h u m b n a i l ? . s o u r c e ? ? n u l l } c a t c h { r e t u r n n u l l } } ; l e t i = n u l l ; r e t u r n t & & ( i = a w a i t s ( ` $ { e } ( $ { t } ) ` ) ) , i | | ( i = a w a i t s ( e ) ) , _ s . s e t ( n , i ) , i } a s y n c f u n c t i o n k b ( e , t ) { c o n s t s = ` g b o o k s : $ { W f ( e , t ? ? " " ) } ` ; i f ( _ s . h a s ( s ) ) r e t u r n _ s . g e t ( s ) ? ? n u l l ; t r y { c o n s t i = t ? ` i n t i t l e : $ { e } + i n a u t h o r : $ { t } ` : ` i n t i t l e : $ { e } ` , r = a w a i t f e t c h ( ` h t t p s : / / w w w . g o o g l e a p i s . c o m / b o o k s / v 1 / v o l u m e s ? q = $ { e n c o d e U R I C o m p o n e n t ( i ) } & m a x R e s u l t s = 1 ` ) ; i f ( ! r . o k ) r e t u r n n u l l ; c o n s t l = ( a w a i t r . j s o n ( ) ) . i t e m s ? . [ 0 ] ? . v o l u m e I n f o ? . i m a g e L i n k s ; l e t a = l ? . t h u m b n a i l ? ? l ? . s m a l l T h u m b n a i l ? ? n u l l ; r e t u r n a & & ( a = a . r e p l a c e ( / ^ h t t p : / , " h t t p s : " ) . r e p l a c e ( / & e d g e = c u r l / g , " " ) , a . i n c l u d e s ( " z o o m = " ) | | ( a + = " & z o o m = 2 " ) ) , _ s . s e t ( s , a ) , a } c a t c h { r e t u r n n u l l } } a s y n c f u n c t i o n i w ( e , t ) { c o n s t n = a w a i t z f ( e , t ) ; i f ( n . p o s t e r U r l | | n . b a c k d r o p U r l ) r e t u r n n ; c o n s t s = a w a i t P s ( e , " f i l m " ) ; r e t u r n s ? { p o s t e r U r l : s , b a c k d r o p U r l : n u l l } : { p o s t e r U r l : n u l l , b a c k d r o p U r l : n u l l } } a s y n c f u n c t i o n r w ( e , t ) { c o n s t n = a w a i t _ b ( e , t ) ; i f ( n . p o s t e r U r l | | n . b a c k d r o p U r l ) r e t u r n n ; c o n s t s = a w a i t P s ( e , " T V s e r i e s " ) ; r e t u r n s ? { p o s t e r U r l : s , b a c k d r o p U r l : n u l l } : { p o s t e r U r l : n u l l , b a c k d r o p U r l : n u l l } } a s y n c f u n c t i o n o w ( e , t ) { c o n s t n = a w a i t x b ( e , t ? ? " " ) ; i f ( n ) r e t u r n n ; c o n s t s = a w a i t k b ( e , t ) ; r e t u r n s | | a w a i t P s ( e , " n o v e l " ) } c o n s t C b = { k e y : 0 , c l a s s : " f l e x f l e x - c o l " } , S b = { c l a s s : " f l e x i t e m s - c e n t e r g a p - 3 p x - 3 p y - 2 " } , P b = { c l a s s : " w - 1 0 h - 1 0 r o u n d e d - l g o v e r f l o w - h i d d e n s h r i n k - 0 f l e x i t e m s - c e n t e r j u s t i f y - c e n t e r p a t h - g l a s s - i c o n " } , R b = [ " s r c " , " a l t " ] , I b = { k e y : 1 , c l a s s : " t e x t - b a s e " } , M b = { c l a s s : " m i n - w - 0 f l e x - 1 " } , O b = { c l a s s : " t e x t - s m f o n t - s e m i b o l d t r u n c a t e t e x t - w h i t e / 9 0 " } , N b = { c l a s s : " t e x t - x s t r u n c a t e t e x t - w h i t e / 5 0 " } , L b = [ " d i s a b l e d " ] , $ b = { k e y : 0 , c l a s s : " w - 6 h - 6 a n i m a t e - s p i n t e x t - w h i t e / 9 0 " , f i l l : " n o n e " , v i e w B o x : " 0 0 2 4 2 4 " } , D b = { k e y : 1 , c l a s s : " w - 6 h - 6 t e x t - w h i t e / 9 0 " , f i l l : " c u r r e n t C o l o r " , v i e w B o x : " 0 0 2 4 2 4 " } , U b = { k e y : 2 , c l a s s : " w - 6 h - 6 t e x t - w h i t e / 9 0 " , f i l l : " c u r r e n t C o l o r " , v i e w B o x : " 0 0 2 4 2 4 " } , j b = [ " d i s a b l e d " ] , F b = { k e y : 0 , c l a s s : " t e x t - x s t e x t - r e d - 4 0 0 / 6 0 p x - 3 p b - 1 t r u n c a t e " } , H b = { k e y : 1 , c l a s s : " f l e x i t e m s - c e n t e r g a p - 4 p x - 4 p y - 3 " } , B b = { c l a s s : " f l e x i t e m s - c e n t e r g a p - 3 m i n - w - 0 f l e x - 1 m a x - w - [ 2 8 0 p x ] " } , V b = { c l a s s : " w - 1 2 h - 1 2 r o u n d e d - l g o v e r f l o w - h i d d e n s h r i n k - 0 f l e x i t e m s - c e n t e r j u s t i f y - c e