PageSourceSearch

https://www.mmmonk.be/js/4332.960d2a1241bb3335e7e6.js

js mmmonk.be collected 2026-10-02 09:59:45 UTC 34,390 bytes, 1 lines download raw bytes

1var Ot=Object.getPrototypeOf;var Ct=Reflect.get;var oe=(S,O,c)=>Ct(Ot(S),c,O);var se=(S,O,c)=>new Promise((C,g)=>{var G=E=>{try{F(c.next(E))}catch(_){g(_)}},b=E=>{try{F(c.throw(E))}catch(_){g(_)}},F=E=>E.done?C(E.value):Promise.resolve(E.value).then(G,b);F((c=c.apply(S,O)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[4332,4919],{64332:(S,O,c)=>{"use strict";c.r(O),c.d(O,{default:()=>vt});var C=c(43116),g=c(15350),G=c(89366),b=c(80740),F=c(59497),E=c(94605),_=c(67521),L=c(29419),A=c(75285),f=class{},u=f;u.namespace="ebookExtension.",u.CFI_FRAGMENT_CHANGE=f.namespace+"cfiFragmentChange",u.ITEM_CLICKED=f.namespace+"itemClicked",u.LOADED_NAVIGATION=f.namespace+"loadedNavigation",u.RELOCATED=f.namespace+"relocated",u.RENDITION_ATTACHED=f.namespace+"renditionAttached",u.TOC_READY=f.namespace+"tocReady";function I(){var e=window,t=[];(!e.customElements||e.Element&&(!e.Element.prototype.closest||!e.Element.prototype.matches||!e.Element.prototype.remove))&&t.push(c.e(8362).then(c.bind(c,88362)));function n(){try{var i=new URL("b","http://a");return i.pathname="c%20d",i.href==="http://a/c%20d"&&i.searchParams}catch(o){return!1}}return(typeof Object.assign!="function"||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||e.NodeList&&!e.NodeList.prototype.forEach||!e.fetch||!n()||typeof WeakMap=="undefined")&&t.push(c.e(2821).then(c.bind(c,2821))),Promise.all(t)}var y=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,o){i.__proto__=o}||function(i,o){for(var s in o)o.hasOwnProperty(s)&&(i[s]=o[s])},e(t,n)};return function(t,n){e(t,n);function i(){this.constructor=t}t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),T=function(e,t,n,i){function o(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(d){try{r(i.next(d))}catch(p){a(p)}}function h(d){try{r(i.throw(d))}catch(p){a(p)}}function r(d){d.done?s(d.value):o(d.value).then(l,h)}r((i=i.apply(e,t||[])).next())})},P=function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,o,s,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(r){return function(d){return h([r,d])}}function h(r){if(i)throw new TypeError("Generator is already executing.");for(;n;)try{if(i=1,o&&(s=r[0]&2?o.return:r[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,r[1])).done)return s;switch(o=0,s&&(r=[r[0]&2,s.value]),r[0]){case 0:case 1:s=r;break;case 4:return n.label++,{value:r[1],done:!1};case 5:n.label++,o=r[1],r=[0];continue;case 7:r=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(r[0]===6||r[0]===2)){n=0;continue}if(r[0]===3&&(!s||r[1]>s[0]&&r[1]<s[3])){n.label=r[1];break}if(r[0]===6&&n.label<s[1]){n.label=s[1],s=r;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(r);break}s[2]&&n.ops.pop(),n.trys.pop();continue}r=t.call(e,n)}catch(d){r=[6,d],o=0}finally{i=s=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}},R=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var i=Array(e),o=0,t=0;t<n;t++)for(var s=arguments[t],a=0,l=s.length;a<l;a++,o++)i[o]=s[a];return i},w=0,k=!1,V=!1,x=window,M=document,m={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,n,i){return e.addEventListener(t,n,i)},rel:function(e,t,n,i){return e.removeEventListener(t,n,i)}},Te=function(){var e=!1;try{M.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){e=!0}}))}catch(t){}return e}(),Ae=function(){try{return new CSSStyleSheet,!0}catch(e){}return!1}(),ae=new WeakMap,U=function(e){return ae.get(e)},Ie=function(e){var t={$flags$:0,$hostElement$:e,$instanceValues$:new Map};return t.$onInstancePromise$=new Promise(function(n){return t.$onInstanceResolve$=n}),t.$onReadyPromise$=new Promise(function(n){return t.$onReadyResolve$=n}
vendor: 9,832 bytes, line 1
1),e["s-p"]=[],e["s-rc"]=[],ae.set(e,t)},re=function(e,t){return t in e},j=function(e){return console.error(e)},le=new Map,Se=function(e,t,n){var i=e.$tagName$.replace(/-/g,"_"),o=e.$lazyBundleIds$,s=le.get(o);return s?s[i]:c(84919)("./"+o+".entry.js").then(function(a){return le.set(o,a),a[i]},j)},X=new Map,ce=[],K=[],J=[],xe=function(e,t){return function(n){e.push(n),k||(k=!0,t&&m.$flags$&4?ee(q):m.raf(q))}},Me=function(e){for(var t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){j(n)}e.length=0},he=function(e,t){for(var n=0,i=0;n<e.length&&(i=performance.now())<t;)try{e[n++](i)}catch(o){j(o)}n===e.length?e.length=0:n!==0&&e.splice(0,n)},q=function(){w++,Me(ce);var e=(m.$flags$&6)==2?performance.now()+10*Math.ceil(w*(1/22)):1/0;he(K,e),he(J,e),K.length>0&&(J.push.apply(J,K),K.length=0),(k=ce.length+K.length+J.length>0)?m.raf(q):w=0},ee=function(e){return Promise.resolve().then(e)},Ne=xe(K,!0),de={},te=function(e){return e=typeof e,e==="object"||e==="function"},Fe=function(){return x.CSS&&x.CSS.supports&&x.CSS.supports("color","var(--c)")?Promise.resolve():c.e(5835).then(c.bind(c,5835)).then(function(){if(m.$cssShim$=x.__stencil_cssshim,m.$cssShim$)return m.$cssShim$.initShim()})},He=function(e,t){return e!=null&&!te(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e},ue="hydrated",N=function(e,t){return t===void 0&&(t=""),function(){}},ke=function(e,t){return function(){}},fe=new WeakMap,Ue=function(e,t,n){var i=X.get(e);Ae&&n?(i=i||new CSSStyleSheet,i.replace(t)):i=t,X.set(e,i)},We=function(e,t,n,i){var o=pe(t.$tagName$),s=X.get(o);if(e=e.nodeType===11?e:M,s)if(typeof s=="string"){e=e.head||e;var a=fe.get(e),l=void 0;if(a||fe.set(e,a=new Set),!a.has(o)){{if(m.$cssShim$){l=m.$cssShim$.createHostStyle(i,o,s,!!(t.$flags$&10));var h=l["s-sc"];h&&(o=h,a=null)}else l=M.createElement("style"),l.innerHTML=s;e.insertBefore(l,e.querySelector("link"))}a&&a.add(o)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=R(e.adoptedStyleSheets,[s]));return o},Be=function(e,t,n){var i=N("attachStyles",t.$tagName$),o=We(e.getRootNode(),t,n,e);i()},pe=function(e,t){return"sc-"+e},Ge=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var o=null,s=!1,a=!1,l=[],h=function(p){for(var v=0;v<p.length;v++)o=p[v],Array.isArray(o)?h(o):o!=null&&typeof o!="boolean"&&((s=typeof e!="function"&&!te(o))&&(o=String(o)),s&&a?l[l.length-1].$text$+=o:l.push(s?ne(null,o):o),a=s)};if(h(n),t){var r=t.className||t.class;r&&(t.class=typeof r!="object"?r:Object.keys(r).filter(function(p){return r[p]}).join(" "))}var d=ne(e,null);return d.$attrs$=t,l.length>0&&(d.$children$=l),d},ne=function(e,t){var n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return n.$attrs$=null,n},je={},Ke=function(e){return e&&e.$tag$===je},$e=function(e,t,n,i,o,s){if(n!==i){var a=re(e,t),l=t.toLowerCase();if(t==="class"){var h=e.classList,r=me(n),d=me(i);h.remove.apply(h,r.filter(function(D){return D&&!d.includes(D)})),h.add.apply(h,d.filter(function(D){return D&&!r.includes(D)}))}else if(t==="ref")i&&i(e);else if(!a&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):re(x,l)?t=l.slice(2):t=l[2]+t.slice(3),n&&m.rel(e,t,n,!1),i&&m.ael(e,t,i,!1);else{var p=te(i);if((a||p&&i!==null)&&!o)try{if(e.tagName.includes("-"))e[t]=i;else{var v=i!=null?i:"";t==="list"?a=!1:(n==null||e[t]!=v)&&(e[t]=v)}}catch(D){}i==null||i===!1?e.removeAttribute(t):(!a||s&4||o)&&!p&&(i=i===!0?"":i,e.setAttribute(t,i))}}},Ve=/\s/,me=function(e){return e?e.split(Ve):[]},ge=function(e,t,n,i){var o=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,s=e&&e.$attrs$||de,a=t.$attrs$||de;for(i in s)i in a||$e(o,i,s[i],void 0,n,t.$flags$);for(i in a)$e(o,i,s[i],a[i],n,t.$flags$)},ie=function(e,t,n,i){var o=t.$children$[n],s=0,a,l;if(o.$text$!==null)a=o.$elm$=M.createTextNode(o.$text$);else if(a=o.$elm$=M.createElement(o.$tag$),ge(null,o,V),o.$children$)for(s=0;s<o.$children$.length;++s)l=ie(e,o,s),l&&a.appendChild(l);return a},Ee=function(e,t,n,i,o,s){for(var a=e,l;o<=s;++o)i[o]&&(l=ie(null,n,o),l&&(i[o].$elm$=l,a.insertBefore(l,t)))},ve=function(e,t,n,i,o){for(;t<=n;++t)(i=e[t])&&(o=i.$elm$,be(i),o.remove())},ze=function(e,t,n,i){for(var o=0,s=0,a=t.length-1,l=t[0],h=t[a],r=i.length-1,d=i[0],p=i[r],v;o<=a&&s<=r;)l==null?l=t[++o]:h==null?h=t[--a]:d==null?d=i[++s]:p==null?p=i[--r]:Y(l,d)?(z(l,d),l=t[++o],d=i[++s]):Y(h,p)?(z(h,p),h=t[--a],p=i[--r]):Y(l,p)?(z(l,p),e.insertBefore(l.$elm$,h.$elm$.nextSibling),l=t[++o],p=i[--r]):Y(h,d)?(z(h,d),e.insertBefore(h.$elm$,l.$elm$),h=t[--a],d=i[++s]):(v=ie(t&&t[s],n,s),d=i[++s],v&&l.$elm$.parentNode.insertBefore(v,l.$elm$));o>a?Ee(e,i[r+1]==null?null:i[r+1].$elm$,n,i,s,r):s>r&&ve(t,o,a)},Y=function(e,t){return e.$tag$===t.$tag$},z=function(e,t){var n=t.$elm$=e.$elm$,i=e.$children$,o=t.$children$;t.$text$===null?(ge(e,t,V),i!==null&&o!==null?ze(n,i,t,o):o!==null?(e.$text$!==null&&(n.textContent=""),Ee(n,null,t,o,0,o.length-1)):i!==null&&ve(i,0,i.length-1)):e.$text$!==t.$text$&&(n.data=t.$text$)},be=function(e){e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.forEach(be)},Xe=function(e,t,n,i){var o=t.$vnode$||ne(null,null),s=Ke(i)?i:Ge(null,null,i);s.$tag$=null,s.$flags$|=4,t.$vnode$=s,s.$elm$=o.$elm$=e,z(o,s)},Oe=function(e,t){t&&!e.$onRenderResolve$&&t["s-p"].push(new Promise(function(n){return e.$onRenderResolve$=n}))},Q=function(e,t,n,i){if(t.$flags$|=16,t.$flags$&4){t.$flags$|=512;return}var o=N("scheduleUpdate",n.$tagName$),s=t.$ancestorComponent$,a=t.$lazyInstance$,l=function(){return Je(e,t,n,a,i)};Oe(t,s);var h;return i&&(t.$flags$|=256,t.$queuedListeners$&&(t.$queuedListeners$.forEach(function(r){var d=r[0],p=r[1];return ye(a,d,p)}),t.$queuedListeners$=null)),o(),Ze(h,function(){return Ne(l)})},Je=function(e,t,n,i,o){var s=N("update",n.$tagName$),a=e["s-rc"];o&&Be(e,n,t.$modeName$);var l=N("render",n.$tagName$);try{Xe(e,t,n,i.render())}catch(d){j(d)}m.$cssShim$&&m.$cssShim$.updateHost(e),t.$flags$&=-17,t.$flags$|=2,a&&(a.forEach(function(d){return d()}),e["s-rc"]=void 0),l(),s();{var h=e["s-p"],r=function(){return Ye(e,t,n)};h.length===0?r():(Promise.all(h).then(r),t.$flags$|=4,h.length=0)}},Ye=function(e,t,n){var i=N("postUpdate",n.$tagName$),o=t.$lazyInstance$,s=t.$ancestorComponent$;t.$flags$&64?(ye(o,"componentDidUpdate"),i()):(t.$flags$|=64,e.classList.add(ue),i(),t.$onReadyResolve$(e),s||Ce()),t.$onInstanceResolve$(e),t.$onRenderResolve$&&(t.$onRenderResolve$(),t.$onRenderResolve$=void 0),t.$flags$&512&&ee(function(){return Q(e,t,n,!1)}),t.$flags$&=-517},Qe=function(e,t){{var n=U(e);(n.$flags$&18)==2&&Q(e,n,t,!1)}},Ce=function(e){M.documentElement.classList.add(ue),m.$flags$|=2},ye=function(e,t,n){if(e&&e[t])try{return e[t](n)}catch(i){j(i)}},Ze=function(e,t){return e&&e.then?e.then(t):t()},qe=function(e,t){return U(e).$instanceValues$.get(t)},et=function(e,t,n,i){var o=U(e),s=o.$hostElement$,a=o.$instanceValues$.get(t),l=o.$flags$,h=o.$lazyInstance$;n=He(n,i.$members$[t][0]),n!==a&&(!(l&8)||a===void 0)&&(o.$instanceValues$.set(t,n),h&&(l&18)==2&&Q(s,o,i,!1))},De=function(e,t,n){if(t.$members$){var i=Object.entries(t.$members$),o=e.prototype;if(i.forEach(function(a){var l=a[0],h=a[1][0];h&31||n&2&&h&32?Object.defineProperty(o,l,{get:function(){return qe(this,l)},set:function(r){et(this,l,r,t)},configurable:!0,enumerable:!0}):n&1&&h&64&&Object.defineProperty(o,l,{value:function(){for(var r=[],d=0;d<arguments.length;d++)r[d]=arguments[d];var p=U(this);return p.$onInstancePromise$.then(function(){var v;return(v=p.$lazyInstance$)[l].apply(v,r)})}})}),n&1){var s=new Map;o.attributeChangedCallback=function(a,l,h){var r=this;m.jmp(function(){var d=s.get(a);r[d]=h===null&&typeof r[d]=="boolean"?!1:h})},e.observedAttributes=i.filter(function(a){var l=a[0],h=a[1];return h[0]&15}).map(function(a){var l=a[0],h=a[1],r=h[1]||l;return s.set(r,l),r})}}return e},tt=function(e,t,n){t.$queuedListeners$=t.$queuedListeners$||[];var i=n.map(function(o){var s=o[0],a=o[1],l=o[2],h=it(e,s),r=nt(t,l),d=ot(s);return m.ael(h,a,r,d),function(){return m.rel(h,a,r,d)}});return function(){return i.forEach(function(o){return o()})}},nt=function(e,t){return function(n){e.$flags$&256?e.$lazyInstance$[t](n):e.$queuedListeners$.push([t,n])}},it=function(e,t){return t&8?x:e},ot=function(e){return Te?{passive:(e&1)!=0,capture:(e&2)!=0}:(e&2)!=0},st=function(e,t,n,i,o){return T(void 0,void 0,void 0,function(){var s,a,l,h,r,d,p;return P(this,function(v){switch(v.label){case 0:return(t.$flags$&32)!=0?[3,3]:(t.$flags$|=32,o=Se(n),o.then?(s=ke(),[4,o]):[3,2]);case 1:o=v.sent(),s(),v.label=2;case 2:o.isProxied||(De(o,n,2),o.isProxied=!0),a=N("createInstance",n.$tagName$),t.$flags$|=8;try{new o(t)}catch(D){j(D)}t.$flags$&=-9,a(),l=pe(n.$tagName$),!X.has(l)&&o.style&&(h=N("registerStyles",n.$tagName$),r=o.style,Ue(l,r,!!(n.$flags$&1)),h()),v.label=3;case 3:return d=t.$ancestorComponent$,p=function(){return Q(e,t,n,!0)},d&&d["s-rc"]?d["s-rc"].push(p):p(),[2]}})})},at=function(e,t){if((m.$flags$&1)==0){var n=N("connectedCallback",t.$tagName$),i=U(e);if(t.$listeners$&&(i.$rmListeners$=tt(e,i,t.$listeners$)),!(i.$flags$&1)){i.$flags$|=1;for(var o=e;o=o.parentNode||o.host;)if(o["s-p"]){Oe(i,i.$ancestorComponent$=o);break}t.$members$&&Object.entries(t.$members$).forEach(function(s){var a=s[0],l=s[1][0];if(l&31&&e.hasOwnProperty(a)){var h=e[a];delete e[a],e[a]=h}}),ee(function(){return st(e,i,t)})}n()}},rt=function(e){if((m.$flags$&1)==0){var t=U(e);t.$rmListeners$&&(t.$rmListeners$(),t.$rmListeners$=void 0),m.$cssShim$&&m.$cssShim$.removeHost(e)}},lt=function(e,t){t===void 0&&(t={});var n=N(),i=[],o=t.exclude||[],s=M.head,a=x.customElements,l=s.querySelector("meta[charset]"),h=M.createElement("style"),r=[],d,p=!0;Object.assign(m,t),m.$resourcesUrl$=new URL(t.resourcesUrl||"./",M.baseURI).href,t.syncQueue&&(m.$flags$|=4),e.forEach(function(v){return v[1].forEac
1h(function(D){var W={$flags$:D[0],$tagName$:D[1],$members$:D[2],$listeners$:D[3]};W.$members$=D[2],W.$listeners$=D[3];var Z=W.$tagName$,bt=function(_e){y(B,_e);function B(H){var Le=_e.call(this,H)||this;return H=Le,Ie(H),Le}return B.prototype.connectedCallback=function(){var H=this;d&&(clearTimeout(d),d=null),p?r.push(this):m.jmp(function(){return at(H,W)})},B.prototype.disconnectedCallback=function(){var H=this;m.jmp(function(){return rt(H)})},B.prototype["s-hmr"]=function(H){},B.prototype.forceUpdate=function(){Qe(this,W)},B.prototype.componentOnReady=function(){return U(this).$onReadyPromise$},B}(HTMLElement);W.$lazyBundleIds$=v[0],!o.includes(Z)&&!a.get(Z)&&(i.push(Z),a.define(Z,De(bt,W,1)))})}),h.innerHTML=i+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),s.insertBefore(h,l?l.nextSibling:s.firstChild),p=!1,r.length>0?r.forEach(function(v){return v.connectedCallback()}):m.jmp(function(){return d=setTimeout(Ce,30,"timeout")}),n()},we=function(e,t){return Fe().then(function(){lt([["uv-ebook-reader_2",[[0,"uv-ebook-reader",{width:[1],height:[1],mobileWidth:[2,"mobile-width"],minSpreadWidth:[2,"min-spread-width"],_bookPath:[32],_bookReady:[32],_prevEnabled:[32],_mobile:[32],_nextEnabled:[32],_showDivider:[32],load:[64],resize:[64],display:[64],getBook:[64]},[[8,"keydown","handleKeyDown"]]],[0,"uv-ebook-toc",{toc:[16],selected:[1025],disabled:[4]}]]]],t)})};(function(){if(!(window.Reflect===void 0||window.customElements===void 0)){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}})();var Re=(0,_.a)(),ct=class e extends b.g{constructor(t){super(t)}create(){return se(this,null,function*(){this.setConfig("ebookLeftPanel"),oe(e.prototype,this,"create").call(this),this._$container=Re('<div class="container"></div>'),yield I(),we(window),this._ebookTOC=document.createElement("uv-ebook-toc"),this._$ebookTOC=Re(this._ebookTOC),this.$main.addClass("disabled"),this.$main.append(this._$container),this._$container.append(this._$ebookTOC),this.setTitle(this.content.title),this.extensionHost.subscribe(u.LOADED_NAVIGATION,t=>{this.$main.removeClass("disabled"),this._ebookTOC.toc=t.toc}),this.extensionHost.subscribe(u.RELOCATED,t=>{this._ebookTOC.selected=t.start.href}),this._ebookTOC.addEventListener("itemClicked",t=>{this.extensionHost.publish(u.ITEM_CLICKED,t.detail)},!1),E.a.waitFor(()=>window.customElements!==void 0,()=>{customElements.whenDefined("uv-ebook-toc").then(()=>{this.extensionHost.publish(u.TOC_READY)})})})}expandFullStart(){super.expandFullStart(),this.extensionHost.publish(E.p.LEFTPANEL_EXPAND_FULL_START)}expandFullFinish(){super.expandFullFinish(),this.extensionHost.publish(E.p.LEFTPANEL_EXPAND_FULL_FINISH)}collapseFullStart(){super.collapseFullStart(),this.extensionHost.publish(E.p.LEFTPANEL_COLLAPSE_FULL_START)}collapseFullFinish(){super.collapseFullFinish(),this.extensionHost.publish(E.p.LEFTPANEL_COLLAPSE_FULL_FINISH)}resize(){super.resize(),this._$container.height(this.$main.height()-this._$container.verticalPadding())}},ht=class extends g.a{constructor(e){super(e)}create(){this.setConfig("downloadDialogue"),super.create()}open(e){super.open(e),this.addEntireFileDownloadOptions(),this.updateNoneAvailable(),this.resize()}isDownloadOptionAvailable(e){return super.isDownloadOptionAvailable(e)}},dt=class e extends b.c{constructor(t){super(t),this._ebookReaderReady=!1,this._state={},this._prevState={},this.attributionPosition=b.b.BOTTOM_RIGHT}create(){return se(this,null,function*(){this.setConfig("ebookCenterPanel"),oe(e.prototype,this,"create").call(this),yield I(),we(window),this._ebookReader=document.createElement("uv-ebook-reader"),this.$content.prepend(this._ebookReader),this._ebookReader.setAttribute("width","100%"),this._ebookReader.setAttribute("height","100%"),this._ebookReader.addEventListener("loadedNavigation",n=>{this.extensionHost.publish(u.LOADED_NAVIGATION,n.detail)},!1),this._ebookReader.addEventListener("relocated",n=>{this.extensionHost.publish(u.RELOCATED,n.detail),this._cfi=n.detail.start.cfi,this.extensionHost.publish(u.CFI_FRAGMENT_CHANGE,this._cfi)},!1),E.a.waitFor(()=>window.customElements!==void 0,()=>{customElements.whenDefined("uv-ebook-reader").then(()=>{this._ebookReaderReady=!0})});let t=this;this.extensionHost.subscribe(E.p.OPEN_EXTERNAL_RESOURCE,n=>{t.openMedia(n)}),this.extensionHost.subscribe(u.ITEM_CLICKED,n=>{this._nextState({cfi:n})}),this.extensionHost.subscribe(u.CFI_FRAGMENT_CHANGE,n=>{E.a.waitFor(()=>this._ebookReaderReady,()=>{n!==this._cfi&&this._nextState({cfi:n})})})})}openMedia(t){this.extension.getExternalResources(t).then(()=>{let n=this.extension.helper.getCurrentCanvas().getContent();if(n.length){let i=n[0].getBody();if(i.length){let o=i[0];this._nextState({bookPath:o.id})}}this.extensionHost.publish(L.g.EXTERNAL_RESOURCE_OPENED),this.extensionHost.publish(L.g.LOAD)})}_nextState(t){this._state=Object.assign({},this._state,t),E.a.waitFor(()=>this._ebookReaderReady,()=>{this._state.bookPath&&this._state.bookPath!==this._prevState.bookPath&&this._ebookReader.load(this._state.bookPath),this._state.cfi&&this._state.cfi!==this._prevState.cfi&&this._ebookReader.display(this._state.cfi),this._prevState=Object.assign({},this._state)})}resize(){super.resize(),this._ebookReaderReady&&setTimeout(()=>{this._ebookReader.resize()},10)}},ut=class extends b.h{constructor(e){super(e)}create(){this.setConfig("mobileFooterPanel"),super.create()}resize(){super.resize(),this.$options.css("left",Math.floor(this.$element.width()/2-this.$options.width()/2))}},ft=class extends b.l{constructor(e){super(e)}create(){this.setConfig("settingsDialogue"),super.create()}},pt=class extends b.m{constructor(e){super(e)}create(){this.setConfig("shareDialogue"),super.create()}
1update(){super.update(),this.code=this.extension.getEmbedScript(this.options.embedTemplate,this.currentWidth,this.currentHeight),this.$code.val(this.code)}resize(){super.resize()}},$t={allowStealFocus:!1,authAPIVersion:1,bookmarkThumbHeight:150,bookmarkThumbWidth:90,dropEnabled:!0,footerPanelEnabled:!0,headerPanelEnabled:!0,leftPanelEnabled:!0,limitLocales:!1,metrics:[{type:"sm",minWidth:0},{type:"md",minWidth:768},{type:"lg",minWidth:1024},{type:"xl",minWidth:1280}],multiSelectionMimeType:"application/zip",navigatorEnabled:!0,openTemplate:"http://universalviewer.io?manifest={0}",overrideFullScreen:!1,pagingEnabled:!0,pagingOptionEnabled:!0,pessimisticAccessControl:!1,preserveViewport:!1,rightPanelEnabled:!0,saveUserSettings:!1,clickToZoomEnabled:!0,searchWithinEnabled:!0,termsOfUseEnabled:!1,theme:"uv-en-GB-theme",tokenStorage:"session",useArrowKeysToNavigate:!1,zoomToSearchResultEnabled:!0},mt={ebookLeftPanel:{options:{expandFullEnabled:!1,panelAnimationDuration:250,panelCollapsedWidth:30,panelExpandedWidth:255},content:{title:"Contents"}},dialogue:{topCloseButtonEnabled:!1,content:{close:"Close"}},footerPanel:{options:{bookmarkEnabled:!1,downloadEnabled:!0,embedEnabled:!1,feedbackEnabled:!1,fullscreenEnabled:!0,minimiseButtons:!0,moreInfoEnabled:!0,openEnabled:!1,printEnabled:!1,shareEnabled:!0},content:{bookmark:"Add to bookmarks",download:"Download",embed:"Embed",exitFullScreen:"Exit Full Screen",feedback:"Feedback",fullScreen:"Full Screen",moreInfo:"More Information",open:"Open",share:"Share"}},genericDialogue:{content:{emptyValue:"please enter a value.",invalidNumber:"Please enter a valid number.",noMatches:"No matches were found.",ok:"OK",pageNotFound:"This item does not contain a page with the number you entered. Try switching the numbering mode to 'image'.",refresh:"Refresh"}},headerPanel:{options:{localeToggleEnabled:!1,settingsButtonEnabled:!0},content:{settings:"Settings"}},helpDialogue:{content:{text:"placeholder text",title:"Help"}},moreInfoRightPanel:{options:{canvasDisplayOrder:"",canvasExclude:"",copyToClipboardEnabled:!1,manifestDisplayOrder:"",manifestExclude:"",panelAnimationDuration:250,panelCollapsedWidth:30,panelExpandedWidth:255,panelOpen:!1,rtlLanguageCodes:"ar, ara, dv, div, he, heb, ur, urd",showAllLanguages:!1,textLimit:4,textLimitType:"lines",limitToRange:!1},content:{attribution:"Attribution",collapse:"Collapse Information",collapseFull:"Collapse Gallery",description:"Description",expand:"Expand Information",expandFull:"Expand Gallery",holdingText:"Your module goes here!",less:"less",license:"License",logo:"Logo",more:"more",noData:"No data to display",page:"Page",title:"More Information",manifestHeader:"About the item",canvasHeader:"About the image",copyToClipboard:"Copy to clipboard",copiedToClipboard:"Copied to clipboard"}},ebookCenterPanel:{options:{}},settingsDialogue:{content:{locale:"Locale",navigatorEnabled:"Navigator Enabled",clickToZoomEnabled:"Mouse Click To Zoom",pagingEnabled:"Two Page View",reducedMotion:"Reduce motion (disables animations)",preserveViewport:"Preserve Zoom",title:"Settings",website:"<a href='https://github.com/universalviewer/universalviewer#contributors'>more info</a>"}},shareDialogue:{options:{embedTemplate:'<iframe src="{0}" width="{1}" height="{2}" allowfullscreen frameborder="0"></iframe>',instructionsEnabled:!1,shareFrameEnabled:!0},content:{customSize:"custom",embed:"Embed",embedInstructions:"To embed this item in your own website, copy and paste the code below.",height:"Height",iiif:"IIIF Manifest",share:"Share",shareInstructions:"To share this item, copy the URL below.",size:"Size:",width:"Width"}},authDialogue:{content:{cancel:"Cancel",confirm:"Confirm"}},clickThroughDialogue:{content:{viewTerms:"Read Full Terms and Conditions"}},downloadDialogue:{content:{currentViewAsJpg:"Current view {0} x {1}px (jpg)",currentViewAsJpgExplanation:"Opens in a new window",download:"Download",downloadSelection:"Download Selection",downloadSelectionExplanation:"Opens a dialogue to select which pages to download.",editSettings:"Edit Settings",entireDocument:"Entire document ({0})",entireFileAsOriginal:"Entire file",entireFileAsOriginalWithFormat:"Entire file ({0})",noneAvailable:"No download options are available.",pagingNote:"Please turn off Two Page View for additional options.",preview:"Preview",title:"Download",wholeImageHighRes:"Whole image {0} x {1}px ({2})",wholeImageHighResExplanation:"Opens in a new window.",wholeImagesHighRes:"Whole images ({0})",wholeImagesHighResExplanation:"Opens in two new windows.",wholeImageLowResAsJpg:"Whole image {0} x {1}px (jpg)",wholeImageLowResAsJpgExplanation:"Opens in a new window."}},loginDialogue:{content:{login:"Login",logout:"Logout",cancel:"Cancel"}},avCenterPanel:{content:{attribution:"Attribution"}},restrictedDialogue:{content:{cancel:"Cancel"}}},gt={label:"English (GB)",locales:[{name:"cy-GB",label:"Cymraeg"},{name:"en-GB",label:"English (GB)"},{name:"fr-FR",label:"Fran\xE7ais (FR)"},{name:"pl-PL",label:"Polski"},{name:"sv-SE",label:"Svenska"}]},Et={authCORSError:"Your browser does not support CORS, please upgrade to view this content.",authorisationFailedMessage:"Your log-in attempt did n
1ot appear to be successful. Please try again.",canvasIndexOutOfRange:"Canvas index out of range.",fallbackDegradedLabel:"Login",fallbackDegradedMessage:"Please log in to view this content at full resolution.",forbiddenResourceMessage:"Your current access rights are insufficient to view this image",termsOfUse:"Terms of Use",mediaViewer:"Media Viewer",skipToDownload:"Skip to downloads and alternative formats"},Pe={options:$t,modules:mt,localisation:gt,content:Et},vt=class extends b.f{constructor(){super(...arguments),this.defaultConfig=Pe,this.locales={"en-GB":Pe,"cy-GB":()=>c.e(6740).then(c.bind(c,66740)),"fr-FR":()=>c.e(3280).then(c.bind(c,33280)),"pl-PL":()=>c.e(1539).then(c.bind(c,51539)),"sv-SE":()=>c.e(7849).then(c.bind(c,47849))}}create(){super.create(),this.extensionHost.subscribe(E.p.CANVAS_INDEX_CHANGE,e=>{this.viewCanvas(e)}),this.extensionHost.subscribe(u.CFI_FRAGMENT_CHANGE,e=>{this.cfiFragement=e,this.fire(u.CFI_FRAGMENT_CHANGE,this.cfiFragement)})}createModules(){super.createModules(),this.isHeaderPanelEnabled()?this.headerPanel=new b.i(this.shell.$headerPanel):this.shell.$headerPanel.hide(),this.isLeftPanelEnabled()?this.leftPanel=new ct(this.shell.$leftPanel):this.shell.$leftPanel.hide(),this.centerPanel=new dt(this.shell.$centerPanel),this.isRightPanelEnabled()?this.rightPanel=new b.k(this.shell.$rightPanel):this.shell.$rightPanel.hide(),this.isFooterPanelEnabled()?(this.footerPanel=new b.h(this.shell.$footerPanel),this.mobileFooterPanel=new ut(this.shell.$mobileFooterPanel)):this.shell.$footerPanel.hide(),this.$moreInfoDialogue=$('<div class="overlay moreInfo" aria-hidden="true"></div>'),this.shell.$overlays.append(this.$moreInfoDialogue),this.moreInfoDialogue=new C.a(this.$moreInfoDialogue),this.$shareDialogue=$('<div class="overlay share" aria-hidden="true"></div>'),this.shell.$overlays.append(this.$shareDialogue),this.shareDialogue=new pt(this.$shareDialogue),this.$downloadDialogue=$('<div class="overlay download" aria-hidden="true" role="region"></div>'),this.shell.$overlays.append(this.$downloadDialogue),this.downloadDialogue=new ht(this.$downloadDialogue),this.$settingsDialogue=$('<div class="overlay settings" aria-hidden="true"></div>'),this.shell.$overlays.append(this.$settingsDialogue),this.settingsDialogue=new ft(this.$settingsDialogue),this.isHeaderPanelEnabled()&&this.headerPanel.init(),this.isLeftPanelEnabled()&&this.leftPanel.init(),this.isRightPanelEnabled()&&this.rightPanel.init(),this.isFooterPanelEnabled()&&this.footerPanel.init()}isLeftPanelEnabled(){return!0}render(){super.render(),this.checkForCFIParam()}getEmbedScript(e,t,n){let i=`${this.getAppUri()}#?manifest=${this.helper.manifestUri}&cfi=${this.cfiFragement}`;return E.n.format(e,i,t.toString(),n.toString())}checkForCFIParam(){let e=this.data.cfi;e&&this.extensionHost.publish(u.CFI_FRAGMENT_CHANGE,e)}}},89366:(S,O,c)=>{"use strict";c.d(O,{a:()=>C});var C;(function(g){g.CANVAS_RENDERINGS="canvasRenderings",g.CURRENT_VIEW="currentView",g.ENTIRE_DOCUMENT_AS_PDF="entireDocumentAsPdf",g.ENTIRE_DOCUMENT_AS_TEXT="entireDocumentAsText",g.ENTIRE_FILE_AS_ORIGINAL="entireFileAsOriginal",g.IMAGE_RENDERINGS="imageRenderings",g.MANIFEST_RENDERINGS="manifestRenderings",g.RANGE_RENDERINGS="rangeRenderings",g.SELECTION="selection",g.UNKNOWN="unknown",g.WHOLE_IMAGE_HIGH_RES="wholeImageHighRes",g.WHOLE_IMAGE_LOW_RES="wholeImageLowRes",g.WHOLE_IMAGES_HIGH_RES="wholeImagesHighRes"})(C||(C={}))},15350:(S,O,c)=>{"use strict";c.d(O,{a:()=>A});var C=c(89366),g=c(80740),G=c(59497),b=c(94605),F=c(67521),E=c(75285),_=(0,E.c)((0,G.c)()),L=(0,F.a)(),A=class extends g.d{constructor(f){super(f)}create(){this.setConfig("downloadDialogue"),super.create(),this.$element.attr("role","region"),this.$element.attr("aria-label",this.content.title),this.openCommand=b.p.SHOW_DOWNLOAD_DIALOGUE,this.closeCommand=b.p.HIDE_DOWNLOAD_DIALOGUE;let f;this.extensionHost.subscribe(this.openCommand,u=>{f=u,this.open(u)}),this.extensionHost.subscribe(this.closeCommand,()=>{f&&f.focus(),this.close()}),this.$title=L(`<div role="heading" class="heading">${this.content.title}</div>`),this.$content.append(this.$title),this.$noneAvailable=L('<div class="noneAvailable">'+this.content.noneAvailable+"</div>"),this.$content.append(this.$noneAvailable),this.$downloadOptions=L('<ol class="options"></ol>'),this.$content.append(this.$downloadOptions),this.$footer=L('<div class="footer"></div>'),this.$content.append(this.$footer),this.$termsOfUseButton=L('<a href="#">'+this.extension.data.config.content.termsOfUse+"</a>"),this.$footer.append(this.$termsOfUseButton),this.$termsOfUseButton.onPressed(()=>{this.extensionHost.publish(b.p.SHOW_TERMS_OF_USE)}),this.$element.hide(),this.updateTermsOfUseButton()}addEntireFileDownloadOptions(){if(this.isDownloadOptionAvailable(C.a.ENTIRE_FILE_AS_ORIGINAL)){this.$downloadOptions.empty();let f=this.extension.helper.getCurrentCanvas(),u=!1,I=f.getRenderings();for(let y=0;y<I.length;y++){let T=I[y],P=T.getFormat(),R="";P&&(R=P.toString()),this.addEntireFileDownloadOption(T.id,_.LanguageMap.getValue(T.getLabel()),R),u=!0}if(!u){let y=!1,T=f.getContent();for(let P=0;P<T.length;P++){let R=T[P].getBody();if(R.length){let w=R[0].getFormat();w&&(this.addEntireFileDownloadOption(R[0].id,"",w.toString()),y=!0)}}y||this.addEntireFileDownloadOption(f.id,"","")}}}addEntireFileDownloadOption(f,u,I){let y;I?y=b.e.simplifyMimeType(I):y=this.getFileExtension(f),u||(u=this.content.entireFileAsOriginal),y&&(u+=" ("+y+")"),this.$downloadOptions.append('<li><a href="'+f+'" target="_blank" download tabindex="0">'+u+"</li>")}resetDynamicDownloadOptions(){this.renderingUrls=[],this.renderingUrlsCount=0,this.$downloadOptions.find("li.dynamic").remove()}getDownloadOptionsForRenderings(f,u,I){let y=f.getRenderings(),T=[];for(let P=0;P<y.length;P++){let R=y[P];if(R){let w=_.LanguageMap.getValue(R.getLabel(),this.extension.getLocale()),k="downloadOption"+ ++this.renderingUrlsCount;w?w+=" ({0})":w=u;let V=b.e.simplifyMimeType(R.getFormat().toString());w=b.n.format(w,V),this.renderingUrls[k]=R.id;let x=L('<li class="option dynamic"><input id="'+k+'" data-mime="'+V+'" title="'+w+'" type="radio" name="downloadOptions" tabindex="0" /><label for="'+k+'">'+w+"</label></li>");T.push({type:I,button:x})}}return T}getSelectedOption(){return this.$downloadOptions.find("li.option input:checked")}getCurrentResourceId(){return this.extension.helper.getCurrentCanvas().externalResource.data.id}getCurrentResourceFormat(){let f=this.getCurrentResourceId();return f.substr(f.lastIndexOf(".")+1).toLowerCase()}updateNoneAvailable(){this.$downloadOptions.find("li:visible").length?this.$n
1oneAvailable.hide():this.$noneAvailable.show()}updateTermsOfUseButton(){let f=this.extension.helper.getRequiredStatement();b.b.getBool(this.extension.data.config.options.termsOfUseEnabled,!1)&&f&&f.value?this.$termsOfUseButton.show():this.$termsOfUseButton.hide()}getFileExtension(f){let u=f.split(".").pop();return u.length>5||u.indexOf("/")!==-1?null:u}isMediaDownloadEnabled(){return this.extension.helper.isUIEnabled("mediaDownload")}isDownloadOptionAvailable(f){switch(f){case C.a.ENTIRE_FILE_AS_ORIGINAL:return this.isMediaDownloadEnabled()}return!0}close(){super.close()}resize(){this.setDockedPosition()}}},43116:(S,O,c)=>{"use strict";c.d(O,{a:()=>L});var C=c(80740),g=c(94605),G=c(67521),b=c(29419),F=c(75285),E=(0,F.c)((0,C.j)()),_=(0,G.a)(),L=class extends C.d{constructor(A){super(A)}create(){this.setConfig("moreInfoDialogue"),super.create(),this.openCommand=g.p.SHOW_MOREINFO_DIALOGUE,this.closeCommand=g.p.HIDE_MOREINFO_DIALOGUE,this.extensionHost.subscribe(this.openCommand,A=>{this.open(A)}),this.extensionHost.subscribe(this.closeCommand,()=>{this.close()}),this.extensionHost.subscribe(g.p.CANVAS_INDEX_CHANGE,()=>{this.metadataComponent.set(this._getData())}),this.config.content=this.extension.data.config.modules.moreInfoRightPanel.content,this.config.options=this.extension.data.config.modules.moreInfoRightPanel.options,this.$title=_(`<div role="heading" class="heading">${this.config.content.title}</div>`),this.$content.append(this.$title),this.$metadata=_('<div class="iiif-metadata-component"></div>'),this.$content.append(this.$metadata),this.metadataComponent=new E.MetadataComponent({target:this.$metadata[0]}),this.$element.hide()}open(A){super.open(A),this.metadataComponent.set(this._getData())}_getData(){return{canvasDisplayOrder:this.config.options.canvasDisplayOrder,canvases:this.extension.getCurrentCanvases(),canvasExclude:this.config.options.canvasExclude,canvasLabels:this.extension.getCanvasLabels(this.content.page),content:this.config.content,copiedMessageDuration:2e3,copyToClipboardEnabled:g.b.getBool(this.config.options.copyToClipboardEnabled,!1),helper:this.extension.helper,licenseFormatter:null,limit:this.config.options.textLimit||4,limitType:E.LimitType.LINES,manifestDisplayOrder:this.config.options.manifestDisplayOrder,manifestExclude:this.config.options.manifestExclude,range:this.extension.getCurrentCanvasRange(),rtlLanguageCodes:this.config.options.rtlLanguageCodes,sanitizer:A=>(0,b.b)(A),showAllLanguages:this.config.options.showAllLanguages}}close(){super.close()}resize(){this.setDockedPosition()}}},84919:S=>{function O(c){return Promise.resolve().then(()=>{var C=new Error("Cannot find module '"+c+"'");throw C.code="MODULE_NOT_FOUND",C})}O.keys=()=>[],O.resolve=O,O.id=84919,S.exports=O}}]);

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.