7 lines
128 KiB
JavaScript
7 lines
128 KiB
JavaScript
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta name="description" content="The CDN for everything on npm"/><link rel="icon" type="image/jpeg" href="/favicon.jpg"/><link rel="stylesheet" href="https://app.unpkg.com/_assets/styles-D6XP7YEC.css"/><link rel="stylesheet" href="https://app.unpkg.com/_assets/code-light-B2LHUSJR.css"/><script type="importmap">{"imports":{"preact":"https://unpkg.com/preact@10.25.4/dist/preact.module.js","preact/hooks":"https://unpkg.com/preact@10.25.4/hooks/dist/hooks.module.js","preact/jsx-runtime":"https://unpkg.com/preact@10.25.4/jsx-runtime/dist/jsxRuntime.module.js"}}</script><script type="module" src="https://app.unpkg.com/_assets/scripts-5LWG6LQM.js" defer></script><title>UNPKG</title><script async src="https://www.googletagmanager.com/gtag/js?id=UA-140352188-1"></script><script>window.dataLayer = window.dataLayer || [];
|
|||
|
function gtag(){dataLayer.push(arguments);}
|
|||
|
gtag('js', new Date());
|
|||
|
gtag('config', 'UA-140352188-1');</script></head><body><header class="border-b border-slate-300 bg-slate-100 text-slate-950"><div class="p-4 mx-auto flex justify-between items-center lg:max-w-screen-xl"><h1 class="text-2xl font-bold inline-block"><a href="https://unpkg.com">UNPKG</a></h1><span class="inline-block h-full"><a href="https://github.com/unpkg"><svg aria-hidden="true" fill="currentColor" viewBox="0 0 24 24" class="w-6 h-6"><path fill-rule="evenodd" d="M12.006 2a9.847 9.847 0 0 0-6.484 2.44 10.32 10.32 0 0 0-3.393 6.17 10.48 10.48 0 0 0 1.317 6.955 10.045 10.045 0 0 0 5.4 4.418c.504.095.683-.223.683-.494 0-.245-.01-1.052-.014-1.908-2.78.62-3.366-1.21-3.366-1.21a2.711 2.711 0 0 0-1.11-1.5c-.907-.637.07-.621.07-.621.317.044.62.163.885.346.266.183.487.426.647.71.135.253.318.476.538.655a2.079 2.079 0 0 0 2.37.196c.045-.52.27-1.006.635-1.37-2.219-.259-4.554-1.138-4.554-5.07a4.022 4.022 0 0 1 1.031-2.75 3.77 3.77 0 0 1 .096-2.713s.839-.275 2.749 1.05a9.26 9.26 0 0 1 5.004 0c1.906-1.325 2.74-1.05 2.74-1.05.37.858.406 1.828.101 2.713a4.017 4.017 0 0 1 1.029 2.75c0 3.939-2.339 4.805-4.564 5.058a2.471 2.471 0 0 1 .679 1.897c0 1.372-.012 2.477-.012 2.814 0 .272.18.592.687.492a10.05 10.05 0 0 0 5.388-4.421 10.473 10.473 0 0 0 1.313-6.948 10.32 10.32 0 0 0-3.39-6.165A9.847 9.847 0 0 0 12.007 2Z" clip-rule="evenodd"></path></svg></a></span></div></header><main class="px-4 pb-24 mx-auto lg:max-w-screen-xl lg:pb-44"><header class="pt-6 pb-4 lg:pt-16"><div class="mb-6 flex justify-between items-center"><h1 class="text-black text-3xl leading-tight font-semibold">pagedjs</h1><div class="text-right w-48"><span>Version: </span><span data-hydrate="{"key":"VersionSelector","props":{"availableTags":{"latest":"0.4.3","beta":"0.5.0-beta.2"},"availableVersions":["0.5.0-beta.2","0.5.0-beta.1","0.5.0-beta.0","0.4.3","0.4.2","0.4.1","0.4.0","0.4.0-beta.3","0.4.0-beta.2","0.4.0-beta.1","0.4.0-beta.0","0.3.5","0.3.4","0.3.2","0.3.1","0.2.0","0.1.43","0.1.42","0.1.41","0.1.40","0.1.39","0.1.38","0.1.37","0.1.35","0.1.34","0.1.33","0.1.32","0.1.31","0.1.30","0.1.29","0.1.28","0.1.27","0.1.26","0.1.25","0.1.24","0.1.23","0.1.22","0.1.21","0.1.20","0.1.19","0.1.18","0.1.17","0.1.16","0.1.15","0.1.14","0.1.13","0.1.12","0.1.11","0.1.10","0.1.9","0.1.8","0.1.7","0.1.6","0.1.5","0.1.4","0.1.2","0.1.1","0.1.0","0.0.4","0.0.3","0.0.2","0.0.1"],"currentVersion":"0.4.3","pathnameFormat":"/pagedjs@%s/files/dist/paged.min.js","class":"w-28 p-1 border border-slate-300 bg-slate-100 text-sm"}}"><select name="version" class="w-28 p-1 border border-slate-300 bg-slate-100 text-sm"><optgroup label="Tags"><option value="0.5.0-beta.2">beta (0.5.0-beta.2)</option><option selected value="0.4.3">latest (0.4.3)</option></optgroup><optgroup label="Versions"><option value="0.5.0-beta.2">0.5.0-beta.2</option><option value="0.5.0-beta.1">0.5.0-beta.1</option><option value="0.5.0-beta.0">0.5.0-beta.0</option><option selected value="0.4.3">0.4.3</option><option value="0.4.2">0.4.2</option><option value="0.4.1">0.4.1</option><option value="0.4.0">0.4.0</option><option value="0.4.0-beta.3">0.4.0-beta.3</option><option value="0.4.0-beta.2">0.4.0-beta.2</option><option value="0.4.0-beta.1">0.4.0-beta.1</option><option value="0.4.0-beta.0">0.4.0-beta.0</option><option value="0.3.5">0.3.5</option><option value="0.3.4">0.3.4
|
|||
|
* @license Paged.js v0.4.3 | MIT | https://gitlab.coko.foundation/pagedjs/pagedjs
|
|||
|
*/
|
|||
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).PagedModule={})}(this,(function(e){"use strict";function t(e){if(!e)return;let t;if(void 0!==e.getBoundingClientRect)t=e.getBoundingClientRect();else{let n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}return t}function n(e){if(!e)return;let t;if(void 0!==e.getClientRects)t=e.getClientRects();else{let n=document.createRange();n.selectNode(e),t=n.getClientRects()}return t}function r(){var e=(new Date).getTime();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))}function a(e,t){for(var n=0;n<t.length;n++)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])}function i(e){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var t,n=String(e),r=n.length,a=-1,i="",o=n.charCodeAt(0);++a<r;)0!=(t=n.charCodeAt(a))?t>=1&&t<=31||127==t||0==a&&t>=48&&t<=57||1==a&&t>=48&&t<=57&&45==o?i+="\\"+t.toString(16)+" ":0!=a||1!=r||45!=t?46!=t||"#"!=n.charAt(0)?i+=t>=128||45==t||95==t||35==t||46==t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122?n.charAt(a):"\\"+n.charAt(a):i+="\\.":i+="\\"+n.charAt(a):i+="<EFBFBD>";return i}function o(){this.resolve=null,this.reject=null,this.id=r(),this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t})),Object.freeze(this)}const s="undefined"!=typeof window&&("requestIdleCallback"in window?window.requestIdleCallback:window.requestAnimationFrame);function l(e){return e.value+(e.unit||"")}function d(e){return e&&1===e.nodeType}function p(e){return e&&3===e.nodeType}function*c(e,t){let n=e;for(;n;)if(yield n,n.childNodes.length)n=n.firstChild;else if(n.nextSibling){if(t&&n===t){n=void 0;break}n=n.nextSibling}else for(;n;){if(n=n.parentNode,t&&n===t){n=void 0;break}if(n&&n.nextSibling){n=n.nextSibling;break}}}function u(e,t){if(t&&e===t)return;let n=B(e);if(n)return n;if(e.parentNode)for(;e=e.parentNode;){if(t&&e===t)return;if(n=B(e),n)return n}}function m(e,t){if(t&&e===t)return;let n=E(e);if(n)return n;if(e.parentNode)for(;e=e.parentNode;){if(t&&e===t)return;if(n=E(e),n)return n}}function h(e,t){let n=u(e,t);for(;n&&1!==n.nodeType;)n=u(n,t);return n}function g(e,t){let n=m(e,t);for(;n&&1!==n.nodeType;)n=m(n,t);return n}function f(e,t){let n=h(e,t);for(;n&&n.dataset.undisplayed;)n=h(n,t);return n}function y(e,t){let n=g(e,t);for(;n&&n.dataset.undisplayed;)n=g(n,t);return n}function b(e){let t,n,r=[],a=[],i=document.createDocumentFragment();if("TR"===e.nodeName){let t=e.previousElementSibling,n=1;for(;t;){if(t.childElementCount>e.childElementCount){const r=Array.from(e.children);for(;e.firstChild;)e.firstChild.remove();let a=0;for(let i=0;i<t.children.length;i++){let o=t.children[i];if(o.rowSpan&&o.rowSpan>n){const t=o.cloneNode(!0);t.rowSpan=o.rowSpan-n,e.appendChild(t)}else{const t=r[a++];t&&e.appendChild(t)}}}t=t.previousElementSibling,n++}}let o=e;for(;o.parentNode&&1===o.parentNode.nodeType;)r.unshift(o.parentNode),o=o.parentNode;for(var s=0;s<r.length;s++){if(n=r[s],t=n.cloneNode(!1),t.setAttribute("data-split-from",t.getAttribute("data-ref")),t.hasAttribute("id")){let e=t.getAttribute("id");t.setAttribute("data-id",e),t.removeAttribute("id")}if(t.hasAttribute("data-break-
|