pulpweaver4 0.0.0-stage → 0.0.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ast/djot.d.ts +124 -0
- package/dist/ast/djot.js +464 -0
- package/dist/ast/djot.js.map +1 -0
- package/dist/ast/index.d.ts +10 -0
- package/dist/ast/index.js +11 -0
- package/dist/ast/index.js.map +1 -0
- package/dist/ast/locator.d.ts +27 -0
- package/dist/ast/locator.js +77 -0
- package/dist/ast/locator.js.map +1 -0
- package/dist/ast/nodes.d.ts +543 -0
- package/dist/ast/nodes.js +56 -0
- package/dist/ast/nodes.js.map +1 -0
- package/dist/ast/position.d.ts +88 -0
- package/dist/ast/position.js +98 -0
- package/dist/ast/position.js.map +1 -0
- package/dist/ast/traverse.d.ts +12 -0
- package/dist/ast/traverse.js +37 -0
- package/dist/ast/traverse.js.map +1 -0
- package/dist/bibliography/biblatex.d.ts +13 -0
- package/dist/bibliography/biblatex.js +849 -0
- package/dist/bibliography/biblatex.js.map +1 -0
- package/dist/bibliography/bibtex.d.ts +39 -0
- package/dist/bibliography/bibtex.js +259 -0
- package/dist/bibliography/bibtex.js.map +1 -0
- package/dist/bibliography/csl.d.ts +9 -0
- package/dist/bibliography/csl.js +241 -0
- package/dist/bibliography/csl.js.map +1 -0
- package/dist/bibliography/dates.d.ts +33 -0
- package/dist/bibliography/dates.js +223 -0
- package/dist/bibliography/dates.js.map +1 -0
- package/dist/bibliography/index.d.ts +8 -0
- package/dist/bibliography/index.js +9 -0
- package/dist/bibliography/index.js.map +1 -0
- package/dist/bibliography/item.d.ts +142 -0
- package/dist/bibliography/item.js +181 -0
- package/dist/bibliography/item.js.map +1 -0
- package/dist/bibliography/latex.d.ts +21 -0
- package/dist/bibliography/latex.js +586 -0
- package/dist/bibliography/latex.js.map +1 -0
- package/dist/bibliography/names.d.ts +23 -0
- package/dist/bibliography/names.js +244 -0
- package/dist/bibliography/names.js.map +1 -0
- package/dist/bibliography/read.d.ts +24 -0
- package/dist/bibliography/read.js +50 -0
- package/dist/bibliography/read.js.map +1 -0
- package/dist/citations/book.d.ts +93 -0
- package/dist/citations/book.js +217 -0
- package/dist/citations/book.js.map +1 -0
- package/dist/citations/collect.d.ts +56 -0
- package/dist/citations/collect.js +129 -0
- package/dist/citations/collect.js.map +1 -0
- package/dist/citations/hast.d.ts +12 -0
- package/dist/citations/hast.js +49 -0
- package/dist/citations/hast.js.map +1 -0
- package/dist/citations/index.d.ts +14 -0
- package/dist/citations/index.js +15 -0
- package/dist/citations/index.js.map +1 -0
- package/dist/citations/lint.d.ts +70 -0
- package/dist/citations/lint.js +92 -0
- package/dist/citations/lint.js.map +1 -0
- package/dist/citations/notes.d.ts +11 -0
- package/dist/citations/notes.js +163 -0
- package/dist/citations/notes.js.map +1 -0
- package/dist/citations/positions.d.ts +34 -0
- package/dist/citations/positions.js +90 -0
- package/dist/citations/positions.js.map +1 -0
- package/dist/citations/project.d.ts +7 -0
- package/dist/citations/project.js +24 -0
- package/dist/citations/project.js.map +1 -0
- package/dist/colour/cmyk.d.ts +71 -0
- package/dist/colour/cmyk.js +210 -0
- package/dist/colour/cmyk.js.map +1 -0
- package/dist/colour/images.d.ts +36 -0
- package/dist/colour/images.js +106 -0
- package/dist/colour/images.js.map +1 -0
- package/dist/colour/index.d.ts +7 -0
- package/dist/colour/index.js +8 -0
- package/dist/colour/index.js.map +1 -0
- package/dist/colour/ink-limit.d.ts +68 -0
- package/dist/colour/ink-limit.js +109 -0
- package/dist/colour/ink-limit.js.map +1 -0
- package/dist/colour/intents.d.ts +145 -0
- package/dist/colour/intents.js +193 -0
- package/dist/colour/intents.js.map +1 -0
- package/dist/colour/lcms.d.ts +79 -0
- package/dist/colour/lcms.js +229 -0
- package/dist/colour/lcms.js.map +1 -0
- package/dist/colour/previews.d.ts +49 -0
- package/dist/colour/previews.js +116 -0
- package/dist/colour/previews.js.map +1 -0
- package/dist/colour/wasm/LICENSE-lcms2 +22 -0
- package/dist/colour/wasm/lcms2.wasm +0 -0
- package/dist/config/config.d.ts +114 -0
- package/dist/config/config.js +309 -0
- package/dist/config/config.js.map +1 -0
- package/dist/config/index.d.ts +6 -0
- package/dist/config/index.js +7 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/page.d.ts +42 -0
- package/dist/config/page.js +95 -0
- package/dist/config/page.js.map +1 -0
- package/dist/config/project-schema.d.ts +23 -0
- package/dist/config/project-schema.js +223 -0
- package/dist/config/project-schema.js.map +1 -0
- package/dist/config/schema.d.ts +68 -0
- package/dist/config/schema.js +333 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/config/toml.d.ts +54 -0
- package/dist/config/toml.js +238 -0
- package/dist/config/toml.js.map +1 -0
- package/dist/contents/index.d.ts +8 -0
- package/dist/contents/index.js +9 -0
- package/dist/contents/index.js.map +1 -0
- package/dist/contents/transform.d.ts +64 -0
- package/dist/contents/transform.js +149 -0
- package/dist/contents/transform.js.map +1 -0
- package/dist/csl/affix.d.ts +16 -0
- package/dist/csl/affix.js +74 -0
- package/dist/csl/affix.js.map +1 -0
- package/dist/csl/data/chicago-author-date.d.ts +2 -0
- package/dist/csl/data/chicago-author-date.js +3 -0
- package/dist/csl/data/chicago-author-date.js.map +1 -0
- package/dist/csl/data/chicago-notes-bibliography.d.ts +2 -0
- package/dist/csl/data/chicago-notes-bibliography.js +3 -0
- package/dist/csl/data/chicago-notes-bibliography.js.map +1 -0
- package/dist/csl/data/locales-en-GB.d.ts +2 -0
- package/dist/csl/data/locales-en-GB.js +3 -0
- package/dist/csl/data/locales-en-GB.js.map +1 -0
- package/dist/csl/data/locales-en-US.d.ts +2 -0
- package/dist/csl/data/locales-en-US.js +3 -0
- package/dist/csl/data/locales-en-US.js.map +1 -0
- package/dist/csl/dates.d.ts +30 -0
- package/dist/csl/dates.js +223 -0
- package/dist/csl/dates.js.map +1 -0
- package/dist/csl/format.d.ts +29 -0
- package/dist/csl/format.js +157 -0
- package/dist/csl/format.js.map +1 -0
- package/dist/csl/index.d.ts +26 -0
- package/dist/csl/index.js +16 -0
- package/dist/csl/index.js.map +1 -0
- package/dist/csl/ir.d.ts +103 -0
- package/dist/csl/ir.js +549 -0
- package/dist/csl/ir.js.map +1 -0
- package/dist/csl/load.d.ts +98 -0
- package/dist/csl/load.js +163 -0
- package/dist/csl/load.js.map +1 -0
- package/dist/csl/locale.d.ts +90 -0
- package/dist/csl/locale.js +251 -0
- package/dist/csl/locale.js.map +1 -0
- package/dist/csl/names.d.ts +41 -0
- package/dist/csl/names.js +203 -0
- package/dist/csl/names.js.map +1 -0
- package/dist/csl/numbers.d.ts +48 -0
- package/dist/csl/numbers.js +170 -0
- package/dist/csl/numbers.js.map +1 -0
- package/dist/csl/processor.d.ts +179 -0
- package/dist/csl/processor.js +765 -0
- package/dist/csl/processor.js.map +1 -0
- package/dist/csl/project.d.ts +21 -0
- package/dist/csl/project.js +85 -0
- package/dist/csl/project.js.map +1 -0
- package/dist/csl/render.d.ts +130 -0
- package/dist/csl/render.js +748 -0
- package/dist/csl/render.js.map +1 -0
- package/dist/csl/style.d.ts +168 -0
- package/dist/csl/style.js +262 -0
- package/dist/csl/style.js.map +1 -0
- package/dist/csl/xml.d.ts +28 -0
- package/dist/csl/xml.js +162 -0
- package/dist/csl/xml.js.map +1 -0
- package/dist/djot/djot.js/LICENSE +20 -0
- package/dist/djot/djot.js/src/ast.d.ts +327 -0
- package/dist/djot/djot.js/src/ast.js +68 -0
- package/dist/djot/djot.js/src/ast.js.map +1 -0
- package/dist/djot/djot.js/src/attributes.d.ts +31 -0
- package/dist/djot/djot.js/src/attributes.js +300 -0
- package/dist/djot/djot.js/src/attributes.js.map +1 -0
- package/dist/djot/djot.js/src/block.d.ts +87 -0
- package/dist/djot/djot.js/src/block.js +1201 -0
- package/dist/djot/djot.js/src/block.js.map +1 -0
- package/dist/djot/djot.js/src/djot-renderer.d.ts +8 -0
- package/dist/djot/djot.js/src/djot-renderer.js +755 -0
- package/dist/djot/djot.js/src/djot-renderer.js.map +1 -0
- package/dist/djot/djot.js/src/event.d.ts +6 -0
- package/dist/djot/djot.js/src/event.js +2 -0
- package/dist/djot/djot.js/src/event.js.map +1 -0
- package/dist/djot/djot.js/src/filter.d.ts +13 -0
- package/dist/djot/djot.js/src/filter.js +159 -0
- package/dist/djot/djot.js/src/filter.js.map +1 -0
- package/dist/djot/djot.js/src/find.d.ts +7 -0
- package/dist/djot/djot.js/src/find.js +33 -0
- package/dist/djot/djot.js/src/find.js.map +1 -0
- package/dist/djot/djot.js/src/html.d.ts +40 -0
- package/dist/djot/djot.js/src/html.js +657 -0
- package/dist/djot/djot.js/src/html.js.map +1 -0
- package/dist/djot/djot.js/src/index.d.ts +9 -0
- package/dist/djot/djot.js/src/index.js +9 -0
- package/dist/djot/djot.js/src/index.js.map +1 -0
- package/dist/djot/djot.js/src/inline.d.ts +62 -0
- package/dist/djot/djot.js/src/inline.js +1032 -0
- package/dist/djot/djot.js/src/inline.js.map +1 -0
- package/dist/djot/djot.js/src/options.d.ts +13 -0
- package/dist/djot/djot.js/src/options.js +27 -0
- package/dist/djot/djot.js/src/options.js.map +1 -0
- package/dist/djot/djot.js/src/pandoc.d.ts +20 -0
- package/dist/djot/djot.js/src/pandoc.js +1110 -0
- package/dist/djot/djot.js/src/pandoc.js.map +1 -0
- package/dist/djot/djot.js/src/parse.d.ts +19 -0
- package/dist/djot/djot.js/src/parse.js +1445 -0
- package/dist/djot/djot.js/src/parse.js.map +1 -0
- package/dist/djot/djot.js/src/version.d.ts +1 -0
- package/dist/djot/djot.js/src/version.js +2 -0
- package/dist/djot/djot.js/src/version.js.map +1 -0
- package/dist/djot/index.d.ts +5 -0
- package/dist/djot/index.js +6 -0
- package/dist/djot/index.js.map +1 -0
- package/dist/djot/read.d.ts +57 -0
- package/dist/djot/read.js +146 -0
- package/dist/djot/read.js.map +1 -0
- package/dist/fonts/css.d.ts +82 -0
- package/dist/fonts/css.js +329 -0
- package/dist/fonts/css.js.map +1 -0
- package/dist/fonts/faces.d.ts +101 -0
- package/dist/fonts/faces.js +226 -0
- package/dist/fonts/faces.js.map +1 -0
- package/dist/fonts/index.d.ts +12 -0
- package/dist/fonts/index.js +13 -0
- package/dist/fonts/index.js.map +1 -0
- package/dist/fonts/lint.d.ts +58 -0
- package/dist/fonts/lint.js +209 -0
- package/dist/fonts/lint.js.map +1 -0
- package/dist/fonts/match.d.ts +36 -0
- package/dist/fonts/match.js +104 -0
- package/dist/fonts/match.js.map +1 -0
- package/dist/fonts/names.d.ts +9 -0
- package/dist/fonts/names.js +50 -0
- package/dist/fonts/names.js.map +1 -0
- package/dist/fonts/subset.d.ts +72 -0
- package/dist/fonts/subset.js +169 -0
- package/dist/fonts/subset.js.map +1 -0
- package/dist/fonts/walk.d.ts +33 -0
- package/dist/fonts/walk.js +120 -0
- package/dist/fonts/walk.js.map +1 -0
- package/dist/fonts/wasm/LICENSE-harfbuzzjs +19 -0
- package/dist/fonts/wasm/harfbuzz-subset.wasm +0 -0
- package/dist/html/check.d.ts +62 -0
- package/dist/html/check.js +186 -0
- package/dist/html/check.js.map +1 -0
- package/dist/html/counters.d.ts +32 -0
- package/dist/html/counters.js +72 -0
- package/dist/html/counters.js.map +1 -0
- package/dist/html/css.d.ts +33 -0
- package/dist/html/css.js +72 -0
- package/dist/html/css.js.map +1 -0
- package/dist/html/dom.d.ts +28 -0
- package/dist/html/dom.js +162 -0
- package/dist/html/dom.js.map +1 -0
- package/dist/html/editions.d.ts +26 -0
- package/dist/html/editions.js +57 -0
- package/dist/html/editions.js.map +1 -0
- package/dist/html/images.d.ts +13 -0
- package/dist/html/images.js +62 -0
- package/dist/html/images.js.map +1 -0
- package/dist/html/index.d.ts +14 -0
- package/dist/html/index.js +15 -0
- package/dist/html/index.js.map +1 -0
- package/dist/html/registry.d.ts +120 -0
- package/dist/html/registry.js +48 -0
- package/dist/html/registry.js.map +1 -0
- package/dist/html/render.d.ts +99 -0
- package/dist/html/render.js +694 -0
- package/dist/html/render.js.map +1 -0
- package/dist/hyphenation/NOTICE +429 -0
- package/dist/hyphenation/exceptions.d.ts +60 -0
- package/dist/hyphenation/exceptions.js +79 -0
- package/dist/hyphenation/exceptions.js.map +1 -0
- package/dist/hyphenation/hyphenator.d.ts +66 -0
- package/dist/hyphenation/hyphenator.js +245 -0
- package/dist/hyphenation/hyphenator.js.map +1 -0
- package/dist/hyphenation/index.d.ts +4 -0
- package/dist/hyphenation/index.js +5 -0
- package/dist/hyphenation/index.js.map +1 -0
- package/dist/hyphenation/languages.d.ts +20 -0
- package/dist/hyphenation/languages.js +75 -0
- package/dist/hyphenation/languages.js.map +1 -0
- package/dist/hyphenation/patterns/af.wasm +0 -0
- package/dist/hyphenation/patterns/as.wasm +0 -0
- package/dist/hyphenation/patterns/be.wasm +0 -0
- package/dist/hyphenation/patterns/bg.wasm +0 -0
- package/dist/hyphenation/patterns/bn.wasm +0 -0
- package/dist/hyphenation/patterns/ca.wasm +0 -0
- package/dist/hyphenation/patterns/cy.wasm +0 -0
- package/dist/hyphenation/patterns/da.wasm +0 -0
- package/dist/hyphenation/patterns/de.wasm +0 -0
- package/dist/hyphenation/patterns/el-monoton.wasm +0 -0
- package/dist/hyphenation/patterns/el-polyton.wasm +0 -0
- package/dist/hyphenation/patterns/en-gb.wasm +0 -0
- package/dist/hyphenation/patterns/en-us.wasm +0 -0
- package/dist/hyphenation/patterns/eo.wasm +0 -0
- package/dist/hyphenation/patterns/es.wasm +0 -0
- package/dist/hyphenation/patterns/et.wasm +0 -0
- package/dist/hyphenation/patterns/eu.wasm +0 -0
- package/dist/hyphenation/patterns/fi-x-school.wasm +0 -0
- package/dist/hyphenation/patterns/fr.wasm +0 -0
- package/dist/hyphenation/patterns/fur.wasm +0 -0
- package/dist/hyphenation/patterns/ga.wasm +0 -0
- package/dist/hyphenation/patterns/gl.wasm +0 -0
- package/dist/hyphenation/patterns/gu.wasm +0 -0
- package/dist/hyphenation/patterns/hi.wasm +0 -0
- package/dist/hyphenation/patterns/hr.wasm +0 -0
- package/dist/hyphenation/patterns/hsb.wasm +0 -0
- package/dist/hyphenation/patterns/ia.wasm +0 -0
- package/dist/hyphenation/patterns/is.wasm +0 -0
- package/dist/hyphenation/patterns/it.wasm +0 -0
- package/dist/hyphenation/patterns/ka.wasm +0 -0
- package/dist/hyphenation/patterns/kmr.wasm +0 -0
- package/dist/hyphenation/patterns/kn.wasm +0 -0
- package/dist/hyphenation/patterns/la.wasm +0 -0
- package/dist/hyphenation/patterns/lt.wasm +0 -0
- package/dist/hyphenation/patterns/ml.wasm +0 -0
- package/dist/hyphenation/patterns/mn-cyrl.wasm +0 -0
- package/dist/hyphenation/patterns/mr.wasm +0 -0
- package/dist/hyphenation/patterns/nb.wasm +0 -0
- package/dist/hyphenation/patterns/nl.wasm +0 -0
- package/dist/hyphenation/patterns/nn.wasm +0 -0
- package/dist/hyphenation/patterns/no.wasm +0 -0
- package/dist/hyphenation/patterns/oc.wasm +0 -0
- package/dist/hyphenation/patterns/or.wasm +0 -0
- package/dist/hyphenation/patterns/pa.wasm +0 -0
- package/dist/hyphenation/patterns/pi.wasm +0 -0
- package/dist/hyphenation/patterns/pl.wasm +0 -0
- package/dist/hyphenation/patterns/pms.wasm +0 -0
- package/dist/hyphenation/patterns/pt.wasm +0 -0
- package/dist/hyphenation/patterns/rm.wasm +0 -0
- package/dist/hyphenation/patterns/ru.wasm +0 -0
- package/dist/hyphenation/patterns/sh-cyrl.wasm +0 -0
- package/dist/hyphenation/patterns/sh-latn.wasm +0 -0
- package/dist/hyphenation/patterns/sk.wasm +0 -0
- package/dist/hyphenation/patterns/sl.wasm +0 -0
- package/dist/hyphenation/patterns/sq.wasm +0 -0
- package/dist/hyphenation/patterns/sv.wasm +0 -0
- package/dist/hyphenation/patterns/ta.wasm +0 -0
- package/dist/hyphenation/patterns/te.wasm +0 -0
- package/dist/hyphenation/patterns/th.wasm +0 -0
- package/dist/hyphenation/patterns/tk.wasm +0 -0
- package/dist/hyphenation/patterns/tr.wasm +0 -0
- package/dist/hyphenation/patterns/uk.wasm +0 -0
- package/dist/hyphenation/patterns/zh-latn-pinyin.wasm +0 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +48 -0
- package/dist/index.js.map +1 -0
- package/dist/indexes/index.d.ts +10 -0
- package/dist/indexes/index.js +11 -0
- package/dist/indexes/index.js.map +1 -0
- package/dist/indexes/layout.d.ts +30 -0
- package/dist/indexes/layout.js +83 -0
- package/dist/indexes/layout.js.map +1 -0
- package/dist/indexes/locators.d.ts +33 -0
- package/dist/indexes/locators.js +51 -0
- package/dist/indexes/locators.js.map +1 -0
- package/dist/indexes/terms.d.ts +97 -0
- package/dist/indexes/terms.js +211 -0
- package/dist/indexes/terms.js.map +1 -0
- package/dist/indexes/transform.d.ts +90 -0
- package/dist/indexes/transform.js +154 -0
- package/dist/indexes/transform.js.map +1 -0
- package/dist/layout/calibrate.d.ts +12 -0
- package/dist/layout/calibrate.js +50 -0
- package/dist/layout/calibrate.js.map +1 -0
- package/dist/layout/converge.d.ts +31 -0
- package/dist/layout/converge.js +84 -0
- package/dist/layout/converge.js.map +1 -0
- package/dist/layout/counters.d.ts +16 -0
- package/dist/layout/counters.js +62 -0
- package/dist/layout/counters.js.map +1 -0
- package/dist/layout/first-letter.d.ts +34 -0
- package/dist/layout/first-letter.js +183 -0
- package/dist/layout/first-letter.js.map +1 -0
- package/dist/layout/fonts.d.ts +67 -0
- package/dist/layout/fonts.js +110 -0
- package/dist/layout/fonts.js.map +1 -0
- package/dist/layout/generated.d.ts +9 -0
- package/dist/layout/generated.js +83 -0
- package/dist/layout/generated.js.map +1 -0
- package/dist/layout/glue.d.ts +18 -0
- package/dist/layout/glue.js +48 -0
- package/dist/layout/glue.js.map +1 -0
- package/dist/layout/index.d.ts +17 -0
- package/dist/layout/index.js +18 -0
- package/dist/layout/index.js.map +1 -0
- package/dist/layout/lists.d.ts +91 -0
- package/dist/layout/lists.js +1068 -0
- package/dist/layout/lists.js.map +1 -0
- package/dist/layout/margin-boxes.d.ts +114 -0
- package/dist/layout/margin-boxes.js +429 -0
- package/dist/layout/margin-boxes.js.map +1 -0
- package/dist/layout/minipage.d.ts +85 -0
- package/dist/layout/minipage.js +83 -0
- package/dist/layout/minipage.js.map +1 -0
- package/dist/layout/page-box.d.ts +34 -0
- package/dist/layout/page-box.js +112 -0
- package/dist/layout/page-box.js.map +1 -0
- package/dist/layout/page-rules.d.ts +49 -0
- package/dist/layout/page-rules.js +205 -0
- package/dist/layout/page-rules.js.map +1 -0
- package/dist/layout/page.d.ts +51 -0
- package/dist/layout/page.js +133 -0
- package/dist/layout/page.js.map +1 -0
- package/dist/layout/pagebuilder.d.ts +243 -0
- package/dist/layout/pagebuilder.js +591 -0
- package/dist/layout/pagebuilder.js.map +1 -0
- package/dist/layout/pages.d.ts +77 -0
- package/dist/layout/pages.js +772 -0
- package/dist/layout/pages.js.map +1 -0
- package/dist/layout/paragraph.d.ts +194 -0
- package/dist/layout/paragraph.js +1148 -0
- package/dist/layout/paragraph.js.map +1 -0
- package/dist/layout/pre.d.ts +8 -0
- package/dist/layout/pre.js +151 -0
- package/dist/layout/pre.js.map +1 -0
- package/dist/layout/region.d.ts +66 -0
- package/dist/layout/region.js +200 -0
- package/dist/layout/region.js.map +1 -0
- package/dist/layout/vlist.d.ts +218 -0
- package/dist/layout/vlist.js +72 -0
- package/dist/layout/vlist.js.map +1 -0
- package/dist/linebreak/items.d.ts +69 -0
- package/dist/linebreak/items.js +44 -0
- package/dist/linebreak/items.js.map +1 -0
- package/dist/linebreak/knuth-plass.d.ts +149 -0
- package/dist/linebreak/knuth-plass.js +461 -0
- package/dist/linebreak/knuth-plass.js.map +1 -0
- package/dist/lint/config.d.ts +48 -0
- package/dist/lint/config.js +185 -0
- package/dist/lint/config.js.map +1 -0
- package/dist/lint/context.d.ts +64 -0
- package/dist/lint/context.js +37 -0
- package/dist/lint/context.js.map +1 -0
- package/dist/lint/fix.d.ts +40 -0
- package/dist/lint/fix.js +86 -0
- package/dist/lint/fix.js.map +1 -0
- package/dist/lint/index.d.ts +14 -0
- package/dist/lint/index.js +15 -0
- package/dist/lint/index.js.map +1 -0
- package/dist/lint/linter.d.ts +59 -0
- package/dist/lint/linter.js +239 -0
- package/dist/lint/linter.js.map +1 -0
- package/dist/lint/presets.d.ts +20 -0
- package/dist/lint/presets.js +65 -0
- package/dist/lint/presets.js.map +1 -0
- package/dist/lint/project.d.ts +31 -0
- package/dist/lint/project.js +100 -0
- package/dist/lint/project.js.map +1 -0
- package/dist/lint/rules/html.d.ts +30 -0
- package/dist/lint/rules/html.js +163 -0
- package/dist/lint/rules/html.js.map +1 -0
- package/dist/lint/rules/layout.d.ts +42 -0
- package/dist/lint/rules/layout.js +428 -0
- package/dist/lint/rules/layout.js.map +1 -0
- package/dist/lint/rules/source.d.ts +67 -0
- package/dist/lint/rules/source.js +339 -0
- package/dist/lint/rules/source.js.map +1 -0
- package/dist/lint/testing.d.ts +7 -0
- package/dist/lint/testing.js +77 -0
- package/dist/lint/testing.js.map +1 -0
- package/dist/math/hast.d.ts +46 -0
- package/dist/math/hast.js +297 -0
- package/dist/math/hast.js.map +1 -0
- package/dist/math/index.d.ts +9 -0
- package/dist/math/index.js +10 -0
- package/dist/math/index.js.map +1 -0
- package/dist/math/mathjax/LICENSE-mathjax +202 -0
- package/dist/math/mathjax/LICENSE-speech-rule-engine +177 -0
- package/dist/math/mathjax/sre/af.json +146 -0
- package/dist/math/mathjax/sre/base.json +140 -0
- package/dist/math/mathjax/sre/ca.json +140 -0
- package/dist/math/mathjax/sre/da.json +140 -0
- package/dist/math/mathjax/sre/de.json +146 -0
- package/dist/math/mathjax/sre/en.json +158 -0
- package/dist/math/mathjax/sre/es.json +140 -0
- package/dist/math/mathjax/sre/euro.json +32 -0
- package/dist/math/mathjax/sre/fr.json +146 -0
- package/dist/math/mathjax/sre/hi.json +146 -0
- package/dist/math/mathjax/sre/it.json +146 -0
- package/dist/math/mathjax/sre/ko.json +146 -0
- package/dist/math/mathjax/sre/nb.json +146 -0
- package/dist/math/mathjax/sre/nemeth.json +125 -0
- package/dist/math/mathjax/sre/nn.json +146 -0
- package/dist/math/mathjax/sre/sv.json +146 -0
- package/dist/math/mathjax/svg/PUA.json +1 -0
- package/dist/math/mathjax/svg/accents-b-i.json +1 -0
- package/dist/math/mathjax/svg/accents.json +1 -0
- package/dist/math/mathjax/svg/arabic.json +1 -0
- package/dist/math/mathjax/svg/arrows.json +1 -0
- package/dist/math/mathjax/svg/braille-d.json +1 -0
- package/dist/math/mathjax/svg/braille.json +1 -0
- package/dist/math/mathjax/svg/calligraphic.json +1 -0
- package/dist/math/mathjax/svg/cherokee.json +1 -0
- package/dist/math/mathjax/svg/cyrillic-ss.json +1 -0
- package/dist/math/mathjax/svg/cyrillic.json +1 -0
- package/dist/math/mathjax/svg/devanagari.json +1 -0
- package/dist/math/mathjax/svg/double-struck.json +1 -0
- package/dist/math/mathjax/svg/fraktur.json +1 -0
- package/dist/math/mathjax/svg/greek-ss.json +1 -0
- package/dist/math/mathjax/svg/greek.json +1 -0
- package/dist/math/mathjax/svg/hebrew.json +1 -0
- package/dist/math/mathjax/svg/latin-b.json +1 -0
- package/dist/math/mathjax/svg/latin-bi.json +1 -0
- package/dist/math/mathjax/svg/latin-i.json +1 -0
- package/dist/math/mathjax/svg/latin.json +1 -0
- package/dist/math/mathjax/svg/marrows.json +1 -0
- package/dist/math/mathjax/svg/math.json +1 -0
- package/dist/math/mathjax/svg/monospace-ex.json +1 -0
- package/dist/math/mathjax/svg/monospace-l.json +1 -0
- package/dist/math/mathjax/svg/monospace.json +1 -0
- package/dist/math/mathjax/svg/mshapes.json +1 -0
- package/dist/math/mathjax/svg/phonetics-ss.json +1 -0
- package/dist/math/mathjax/svg/phonetics.json +1 -0
- package/dist/math/mathjax/svg/sans-serif-b.json +1 -0
- package/dist/math/mathjax/svg/sans-serif-bi.json +1 -0
- package/dist/math/mathjax/svg/sans-serif-ex.json +1 -0
- package/dist/math/mathjax/svg/sans-serif-i.json +1 -0
- package/dist/math/mathjax/svg/sans-serif-r.json +1 -0
- package/dist/math/mathjax/svg/sans-serif.json +1 -0
- package/dist/math/mathjax/svg/script.json +1 -0
- package/dist/math/mathjax/svg/shapes.json +1 -0
- package/dist/math/mathjax/svg/symbols-b-i.json +1 -0
- package/dist/math/mathjax/svg/symbols.json +1 -0
- package/dist/math/mathjax/svg/variants.json +1 -0
- package/dist/math/mathjax.d.ts +67 -0
- package/dist/math/mathjax.js +162 -0
- package/dist/math/mathjax.js.map +1 -0
- package/dist/math/speech.d.ts +27 -0
- package/dist/math/speech.js +87 -0
- package/dist/math/speech.js.map +1 -0
- package/dist/math/typeset.d.ts +75 -0
- package/dist/math/typeset.js +108 -0
- package/dist/math/typeset.js.map +1 -0
- package/dist/measure/css.d.ts +44 -0
- package/dist/measure/css.js +158 -0
- package/dist/measure/css.js.map +1 -0
- package/dist/measure/index.d.ts +3 -0
- package/dist/measure/index.js +4 -0
- package/dist/measure/index.js.map +1 -0
- package/dist/measure/measurer.d.ts +159 -0
- package/dist/measure/measurer.js +300 -0
- package/dist/measure/measurer.js.map +1 -0
- package/dist/measure/model.d.ts +46 -0
- package/dist/measure/model.js +47 -0
- package/dist/measure/model.js.map +1 -0
- package/dist/output/assets.d.ts +10 -0
- package/dist/output/assets.js +65 -0
- package/dist/output/assets.js.map +1 -0
- package/dist/output/index.d.ts +4 -0
- package/dist/output/index.js +5 -0
- package/dist/output/index.js.map +1 -0
- package/dist/output/output.d.ts +103 -0
- package/dist/output/output.js +86 -0
- package/dist/output/output.js.map +1 -0
- package/dist/output/stylesheets.d.ts +45 -0
- package/dist/output/stylesheets.js +50 -0
- package/dist/output/stylesheets.js.map +1 -0
- package/dist/paint/backgrounds.d.ts +56 -0
- package/dist/paint/backgrounds.js +261 -0
- package/dist/paint/backgrounds.js.map +1 -0
- package/dist/paint/blend.d.ts +61 -0
- package/dist/paint/blend.js +157 -0
- package/dist/paint/blend.js.map +1 -0
- package/dist/paint/border-image.d.ts +13 -0
- package/dist/paint/border-image.js +149 -0
- package/dist/paint/border-image.js.map +1 -0
- package/dist/paint/borders.d.ts +47 -0
- package/dist/paint/borders.js +329 -0
- package/dist/paint/borders.js.map +1 -0
- package/dist/paint/canvas.d.ts +52 -0
- package/dist/paint/canvas.js +274 -0
- package/dist/paint/canvas.js.map +1 -0
- package/dist/paint/colours.d.ts +55 -0
- package/dist/paint/colours.js +380 -0
- package/dist/paint/colours.js.map +1 -0
- package/dist/paint/columns.d.ts +11 -0
- package/dist/paint/columns.js +42 -0
- package/dist/paint/columns.js.map +1 -0
- package/dist/paint/context.d.ts +47 -0
- package/dist/paint/context.js +2 -0
- package/dist/paint/context.js.map +1 -0
- package/dist/paint/decoration.d.ts +97 -0
- package/dist/paint/decoration.js +280 -0
- package/dist/paint/decoration.js.map +1 -0
- package/dist/paint/effects.d.ts +64 -0
- package/dist/paint/effects.js +342 -0
- package/dist/paint/effects.js.map +1 -0
- package/dist/paint/emphasis.d.ts +13 -0
- package/dist/paint/emphasis.js +95 -0
- package/dist/paint/emphasis.js.map +1 -0
- package/dist/paint/flatten.d.ts +33 -0
- package/dist/paint/flatten.js +968 -0
- package/dist/paint/flatten.js.map +1 -0
- package/dist/paint/geometry.d.ts +62 -0
- package/dist/paint/geometry.js +170 -0
- package/dist/paint/geometry.js.map +1 -0
- package/dist/paint/gradients.d.ts +31 -0
- package/dist/paint/gradients.js +394 -0
- package/dist/paint/gradients.js.map +1 -0
- package/dist/paint/images.d.ts +17 -0
- package/dist/paint/images.js +80 -0
- package/dist/paint/images.js.map +1 -0
- package/dist/paint/lint.d.ts +46 -0
- package/dist/paint/lint.js +105 -0
- package/dist/paint/lint.js.map +1 -0
- package/dist/paint/overprint.d.ts +13 -0
- package/dist/paint/overprint.js +12 -0
- package/dist/paint/overprint.js.map +1 -0
- package/dist/paint/painter.d.ts +92 -0
- package/dist/paint/painter.js +281 -0
- package/dist/paint/painter.js.map +1 -0
- package/dist/paint/path.d.ts +9 -0
- package/dist/paint/path.js +173 -0
- package/dist/paint/path.js.map +1 -0
- package/dist/paint/raster.d.ts +32 -0
- package/dist/paint/raster.js +180 -0
- package/dist/paint/raster.js.map +1 -0
- package/dist/paint/shadows.d.ts +28 -0
- package/dist/paint/shadows.js +104 -0
- package/dist/paint/shadows.js.map +1 -0
- package/dist/paint/sources.d.ts +13 -0
- package/dist/paint/sources.js +17 -0
- package/dist/paint/sources.js.map +1 -0
- package/dist/paint/stacking.d.ts +75 -0
- package/dist/paint/stacking.js +327 -0
- package/dist/paint/stacking.js.map +1 -0
- package/dist/paint/svg-lint.d.ts +57 -0
- package/dist/paint/svg-lint.js +119 -0
- package/dist/paint/svg-lint.js.map +1 -0
- package/dist/paint/svg.d.ts +95 -0
- package/dist/paint/svg.js +728 -0
- package/dist/paint/svg.js.map +1 -0
- package/dist/paint/tables.d.ts +18 -0
- package/dist/paint/tables.js +178 -0
- package/dist/paint/tables.js.map +1 -0
- package/dist/paint/text-shadow.d.ts +26 -0
- package/dist/paint/text-shadow.js +187 -0
- package/dist/paint/text-shadow.js.map +1 -0
- package/dist/paint/text.d.ts +144 -0
- package/dist/paint/text.js +713 -0
- package/dist/paint/text.js.map +1 -0
- package/dist/paint/values.d.ts +24 -0
- package/dist/paint/values.js +160 -0
- package/dist/paint/values.js.map +1 -0
- package/dist/paint/vertical.d.ts +19 -0
- package/dist/paint/vertical.js +236 -0
- package/dist/paint/vertical.js.map +1 -0
- package/dist/pdf/index.d.ts +6 -0
- package/dist/pdf/index.js +7 -0
- package/dist/pdf/index.js.map +1 -0
- package/dist/pdf/pdfx.d.ts +30 -0
- package/dist/pdf/pdfx.js +18 -0
- package/dist/pdf/pdfx.js.map +1 -0
- package/dist/pdf/structure/index.d.ts +53 -0
- package/dist/pdf/structure/index.js +52 -0
- package/dist/pdf/structure/index.js.map +1 -0
- package/dist/pdf/structure/labels.d.ts +16 -0
- package/dist/pdf/structure/labels.js +45 -0
- package/dist/pdf/structure/labels.js.map +1 -0
- package/dist/pdf/structure/links.d.ts +49 -0
- package/dist/pdf/structure/links.js +136 -0
- package/dist/pdf/structure/links.js.map +1 -0
- package/dist/pdf/structure/tags.d.ts +79 -0
- package/dist/pdf/structure/tags.js +314 -0
- package/dist/pdf/structure/tags.js.map +1 -0
- package/dist/pdf/types.d.ts +551 -0
- package/dist/pdf/types.js +16 -0
- package/dist/pdf/types.js.map +1 -0
- package/dist/pdf/wasm/pulpweaver4_pdf.d.ts +41 -0
- package/dist/pdf/wasm/pulpweaver4_pdf.js +286 -0
- package/dist/pdf/wasm/pulpweaver4_pdf_bg.wasm +0 -0
- package/dist/pdf/writer.d.ts +41 -0
- package/dist/pdf/writer.js +78 -0
- package/dist/pdf/writer.js.map +1 -0
- package/dist/plugin/attributes.d.ts +10 -0
- package/dist/plugin/attributes.js +63 -0
- package/dist/plugin/attributes.js.map +1 -0
- package/dist/plugin/define.d.ts +425 -0
- package/dist/plugin/define.js +311 -0
- package/dist/plugin/define.js.map +1 -0
- package/dist/plugin/failure.d.ts +80 -0
- package/dist/plugin/failure.js +97 -0
- package/dist/plugin/failure.js.map +1 -0
- package/dist/plugin/index.d.ts +11 -0
- package/dist/plugin/index.js +12 -0
- package/dist/plugin/index.js.map +1 -0
- package/dist/plugin/load.d.ts +105 -0
- package/dist/plugin/load.js +197 -0
- package/dist/plugin/load.js.map +1 -0
- package/dist/plugin/register.d.ts +166 -0
- package/dist/plugin/register.js +306 -0
- package/dist/plugin/register.js.map +1 -0
- package/dist/plugin/render.d.ts +4 -0
- package/dist/plugin/render.js +28 -0
- package/dist/plugin/render.js.map +1 -0
- package/dist/preflight/index.d.ts +3 -0
- package/dist/preflight/index.js +4 -0
- package/dist/preflight/index.js.map +1 -0
- package/dist/preflight/pdfx.d.ts +440 -0
- package/dist/preflight/pdfx.js +1781 -0
- package/dist/preflight/pdfx.js.map +1 -0
- package/dist/preflight/reader.d.ts +126 -0
- package/dist/preflight/reader.js +832 -0
- package/dist/preflight/reader.js.map +1 -0
- package/dist/preflight/xmp.d.ts +30 -0
- package/dist/preflight/xmp.js +145 -0
- package/dist/preflight/xmp.js.map +1 -0
- package/dist/print/index.d.ts +2 -0
- package/dist/print/index.js +3 -0
- package/dist/print/index.js.map +1 -0
- package/dist/print/output.d.ts +5 -0
- package/dist/print/output.js +215 -0
- package/dist/print/output.js.map +1 -0
- package/dist/problem.d.ts +142 -0
- package/dist/problem.js +234 -0
- package/dist/problem.js.map +1 -0
- package/dist/profile/index.d.ts +10 -0
- package/dist/profile/index.js +11 -0
- package/dist/profile/index.js.map +1 -0
- package/dist/profile/lint.d.ts +69 -0
- package/dist/profile/lint.js +282 -0
- package/dist/profile/lint.js.map +1 -0
- package/dist/profile/metadata.d.ts +27 -0
- package/dist/profile/metadata.js +38 -0
- package/dist/profile/metadata.js.map +1 -0
- package/dist/profile/profile.d.ts +92 -0
- package/dist/profile/profile.js +282 -0
- package/dist/profile/profile.js.map +1 -0
- package/dist/project.d.ts +56 -0
- package/dist/project.js +137 -0
- package/dist/project.js.map +1 -0
- package/dist/reproducible/clock.d.ts +46 -0
- package/dist/reproducible/clock.js +173 -0
- package/dist/reproducible/clock.js.map +1 -0
- package/dist/reproducible/date.d.ts +42 -0
- package/dist/reproducible/date.js +82 -0
- package/dist/reproducible/date.js.map +1 -0
- package/dist/reproducible/index.d.ts +8 -0
- package/dist/reproducible/index.js +9 -0
- package/dist/reproducible/index.js.map +1 -0
- package/dist/spike/spike-page.chromium.json +330 -0
- package/dist/spike/spike.d.ts +75 -0
- package/dist/spike/spike.js +106 -0
- package/dist/spike/spike.js.map +1 -0
- package/dist/style/borders.d.ts +25 -0
- package/dist/style/borders.js +177 -0
- package/dist/style/borders.js.map +1 -0
- package/dist/style/colours.d.ts +34 -0
- package/dist/style/colours.js +138 -0
- package/dist/style/colours.js.map +1 -0
- package/dist/style/compile.d.ts +79 -0
- package/dist/style/compile.js +325 -0
- package/dist/style/compile.js.map +1 -0
- package/dist/style/defaults.d.ts +20 -0
- package/dist/style/defaults.js +45 -0
- package/dist/style/defaults.js.map +1 -0
- package/dist/style/gcpm.d.ts +22 -0
- package/dist/style/gcpm.js +86 -0
- package/dist/style/gcpm.js.map +1 -0
- package/dist/style/index.d.ts +4 -0
- package/dist/style/index.js +5 -0
- package/dist/style/index.js.map +1 -0
- package/dist/style/media.d.ts +22 -0
- package/dist/style/media.js +342 -0
- package/dist/style/media.js.map +1 -0
- package/dist/style/properties.d.ts +44 -0
- package/dist/style/properties.js +497 -0
- package/dist/style/properties.js.map +1 -0
- package/dist/style/scope.d.ts +6 -0
- package/dist/style/scope.js +134 -0
- package/dist/style/scope.js.map +1 -0
- package/dist/style/values.d.ts +45 -0
- package/dist/style/values.js +106 -0
- package/dist/style/values.js.map +1 -0
- package/dist/test/book.d.ts +180 -0
- package/dist/test/book.js +314 -0
- package/dist/test/book.js.map +1 -0
- package/dist/test/build.d.ts +58 -0
- package/dist/test/build.js +222 -0
- package/dist/test/build.js.map +1 -0
- package/dist/test/environment.d.ts +63 -0
- package/dist/test/environment.js +46 -0
- package/dist/test/environment.js.map +1 -0
- package/dist/test/index.d.ts +17 -0
- package/dist/test/index.js +18 -0
- package/dist/test/index.js.map +1 -0
- package/dist/test/indexes.d.ts +4 -0
- package/dist/test/indexes.js +48 -0
- package/dist/test/indexes.js.map +1 -0
- package/dist/test/layout.d.ts +8 -0
- package/dist/test/layout.js +121 -0
- package/dist/test/layout.js.map +1 -0
- package/dist/test/matchers.d.ts +80 -0
- package/dist/test/matchers.js +177 -0
- package/dist/test/matchers.js.map +1 -0
- package/dist/test/pipeline.d.ts +231 -0
- package/dist/test/pipeline.js +75 -0
- package/dist/test/pipeline.js.map +1 -0
- package/dist/test/plugins.d.ts +13 -0
- package/dist/test/plugins.js +22 -0
- package/dist/test/plugins.js.map +1 -0
- package/dist/test/render.d.ts +46 -0
- package/dist/test/render.js +149 -0
- package/dist/test/render.js.map +1 -0
- package/dist/test/runner.d.ts +61 -0
- package/dist/test/runner.js +256 -0
- package/dist/test/runner.js.map +1 -0
- package/dist/test/select.d.ts +54 -0
- package/dist/test/select.js +193 -0
- package/dist/test/select.js.map +1 -0
- package/dist/test/snapshot.d.ts +52 -0
- package/dist/test/snapshot.js +175 -0
- package/dist/test/snapshot.js.map +1 -0
- package/dist/test/text.d.ts +7 -0
- package/dist/test/text.js +46 -0
- package/dist/test/text.js.map +1 -0
- package/dist/test/vitest.d.ts +3 -0
- package/dist/test/vitest.js +39 -0
- package/dist/test/vitest.js.map +1 -0
- package/dist/text/index.d.ts +5 -0
- package/dist/text/index.js +6 -0
- package/dist/text/index.js.map +1 -0
- package/dist/text/output.d.ts +5 -0
- package/dist/text/output.js +39 -0
- package/dist/text/output.js.map +1 -0
- package/dist/text/render.d.ts +82 -0
- package/dist/text/render.js +583 -0
- package/dist/text/render.js.map +1 -0
- package/dist/text/width.d.ts +16 -0
- package/dist/text/width.js +90 -0
- package/dist/text/width.js.map +1 -0
- package/dist/text/wrap.d.ts +19 -0
- package/dist/text/wrap.js +151 -0
- package/dist/text/wrap.js.map +1 -0
- package/dist/transform/core.d.ts +19 -0
- package/dist/transform/core.js +22 -0
- package/dist/transform/core.js.map +1 -0
- package/dist/transform/index.d.ts +10 -0
- package/dist/transform/index.js +11 -0
- package/dist/transform/index.js.map +1 -0
- package/dist/transform/numbering.d.ts +47 -0
- package/dist/transform/numbering.js +142 -0
- package/dist/transform/numbering.js.map +1 -0
- package/dist/transform/references.d.ts +38 -0
- package/dist/transform/references.js +182 -0
- package/dist/transform/references.js.map +1 -0
- package/dist/transform/run.d.ts +32 -0
- package/dist/transform/run.js +210 -0
- package/dist/transform/run.js.map +1 -0
- package/dist/transform/store.d.ts +111 -0
- package/dist/transform/store.js +331 -0
- package/dist/transform/store.js.map +1 -0
- package/dist/transform/testing.d.ts +31 -0
- package/dist/transform/testing.js +76 -0
- package/dist/transform/testing.js.map +1 -0
- package/dist/transform/transform.d.ts +104 -0
- package/dist/transform/transform.js +89 -0
- package/dist/transform/transform.js.map +1 -0
- package/dist/vfs/fsa.d.ts +14 -0
- package/dist/vfs/fsa.js +123 -0
- package/dist/vfs/fsa.js.map +1 -0
- package/dist/vfs/index.d.ts +7 -0
- package/dist/vfs/index.js +8 -0
- package/dist/vfs/index.js.map +1 -0
- package/dist/vfs/memory.d.ts +15 -0
- package/dist/vfs/memory.js +101 -0
- package/dist/vfs/memory.js.map +1 -0
- package/dist/vfs/path.d.ts +30 -0
- package/dist/vfs/path.js +67 -0
- package/dist/vfs/path.js.map +1 -0
- package/dist/vfs/vfs.d.ts +66 -0
- package/dist/vfs/vfs.js +68 -0
- package/dist/vfs/vfs.js.map +1 -0
- package/dist/vfs/zip.d.ts +27 -0
- package/dist/vfs/zip.js +67 -0
- package/dist/vfs/zip.js.map +1 -0
- package/dist/web/css.d.ts +15 -0
- package/dist/web/css.js +80 -0
- package/dist/web/css.js.map +1 -0
- package/dist/web/hast.d.ts +44 -0
- package/dist/web/hast.js +175 -0
- package/dist/web/hast.js.map +1 -0
- package/dist/web/index.d.ts +11 -0
- package/dist/web/index.js +12 -0
- package/dist/web/index.js.map +1 -0
- package/dist/web/justify-main.d.ts +1 -0
- package/dist/web/justify-main.js +38 -0
- package/dist/web/justify-main.js.map +1 -0
- package/dist/web/justify.d.ts +46 -0
- package/dist/web/justify.js +147 -0
- package/dist/web/justify.js.map +1 -0
- package/dist/web/output.d.ts +28 -0
- package/dist/web/output.js +251 -0
- package/dist/web/output.js.map +1 -0
- package/dist/web/runtime/LICENSE-harfbuzzjs.txt +19 -0
- package/dist/web/runtime/NOTICE-patterns.txt +429 -0
- package/dist/web/runtime/harfbuzz.wasm +0 -0
- package/dist/web/runtime/justify.js.txt +2 -0
- package/dist/web/site.d.ts +53 -0
- package/dist/web/site.js +219 -0
- package/dist/web/site.js.map +1 -0
- package/docs/README.md +16 -0
- package/docs/reference/css-properties/index.md +94 -0
- package/docs/reference/css-properties/pw-adj-demerits.md +22 -0
- package/docs/reference/css-properties/pw-border-bottom-width.md +24 -0
- package/docs/reference/css-properties/pw-border-left-width.md +24 -0
- package/docs/reference/css-properties/pw-border-right-width.md +24 -0
- package/docs/reference/css-properties/pw-border-top-width.md +24 -0
- package/docs/reference/css-properties/pw-box.md +28 -0
- package/docs/reference/css-properties/pw-broken-penalty.md +22 -0
- package/docs/reference/css-properties/pw-club-penalty.md +24 -0
- package/docs/reference/css-properties/pw-column-rule-width.md +23 -0
- package/docs/reference/css-properties/pw-content-after.md +31 -0
- package/docs/reference/css-properties/pw-content-before.md +31 -0
- package/docs/reference/css-properties/pw-double-hyphen-demerits.md +23 -0
- package/docs/reference/css-properties/pw-emergency-stretch.md +28 -0
- package/docs/reference/css-properties/pw-ex-hyphen-penalty.md +22 -0
- package/docs/reference/css-properties/pw-final-hyphen-demerits.md +22 -0
- package/docs/reference/css-properties/pw-float-skip.md +22 -0
- package/docs/reference/css-properties/pw-float.md +33 -0
- package/docs/reference/css-properties/pw-footnote-max-height.md +22 -0
- package/docs/reference/css-properties/pw-footnote-skip.md +23 -0
- package/docs/reference/css-properties/pw-hyphen-penalty.md +24 -0
- package/docs/reference/css-properties/pw-inter-line-penalty.md +24 -0
- package/docs/reference/css-properties/pw-leader-space.md +22 -0
- package/docs/reference/css-properties/pw-leader.md +29 -0
- package/docs/reference/css-properties/pw-left-hyphen-min.md +23 -0
- package/docs/reference/css-properties/pw-line-breaking.md +29 -0
- package/docs/reference/css-properties/pw-line-penalty.md +23 -0
- package/docs/reference/css-properties/pw-list-indent.md +18 -0
- package/docs/reference/css-properties/pw-looseness.md +30 -0
- package/docs/reference/css-properties/pw-max-depth.md +22 -0
- package/docs/reference/css-properties/pw-minipage-footnotes.md +23 -0
- package/docs/reference/css-properties/pw-orphans.md +24 -0
- package/docs/reference/css-properties/pw-outline-width.md +23 -0
- package/docs/reference/css-properties/pw-overprint.md +26 -0
- package/docs/reference/css-properties/pw-padding-bottom.md +22 -0
- package/docs/reference/css-properties/pw-padding-left.md +22 -0
- package/docs/reference/css-properties/pw-padding-right.md +22 -0
- package/docs/reference/css-properties/pw-padding-top.md +22 -0
- package/docs/reference/css-properties/pw-page-prefix.md +28 -0
- package/docs/reference/css-properties/pw-page.md +32 -0
- package/docs/reference/css-properties/pw-penalty-after.md +23 -0
- package/docs/reference/css-properties/pw-penalty-before.md +30 -0
- package/docs/reference/css-properties/pw-pretolerance.md +23 -0
- package/docs/reference/css-properties/pw-right-hyphen-min.md +22 -0
- package/docs/reference/css-properties/pw-running.md +23 -0
- package/docs/reference/css-properties/pw-site-background.md +21 -0
- package/docs/reference/css-properties/pw-site-link.md +17 -0
- package/docs/reference/css-properties/pw-site-measure.md +17 -0
- package/docs/reference/css-properties/pw-site-muted.md +21 -0
- package/docs/reference/css-properties/pw-site-rule.md +17 -0
- package/docs/reference/css-properties/pw-site-text.md +22 -0
- package/docs/reference/css-properties/pw-space-after.md +23 -0
- package/docs/reference/css-properties/pw-space-before.md +29 -0
- package/docs/reference/css-properties/pw-string-set.md +32 -0
- package/docs/reference/css-properties/pw-tolerance.md +33 -0
- package/docs/reference/css-properties/pw-top-skip.md +22 -0
- package/docs/reference/css-properties/pw-widow-penalty.md +32 -0
- package/docs/reference/css-properties/pw-widows.md +24 -0
- package/docs/reference/css-properties/pw-word-space.md +22 -0
- package/docs/reference/css-properties/pw-xspace.md +22 -0
- package/docs/reference/index.md +17 -0
- package/docs/reference/lint-rules/black-text.md +31 -0
- package/docs/reference/lint-rules/blank-page.md +35 -0
- package/docs/reference/lint-rules/chapter-verso.md +34 -0
- package/docs/reference/lint-rules/citation-in-heading.md +24 -0
- package/docs/reference/lint-rules/consecutive-hyphens.md +34 -0
- package/docs/reference/lint-rules/empty-link.md +32 -0
- package/docs/reference/lint-rules/figure-distance.md +34 -0
- package/docs/reference/lint-rules/fonts.md +24 -0
- package/docs/reference/lint-rules/generated-text.md +24 -0
- package/docs/reference/lint-rules/heading-levels.md +30 -0
- package/docs/reference/lint-rules/ibid-across-page.md +30 -0
- package/docs/reference/lint-rules/image-alt.md +30 -0
- package/docs/reference/lint-rules/image-resolution.md +34 -0
- package/docs/reference/lint-rules/index.md +120 -0
- package/docs/reference/lint-rules/ink-limit.md +30 -0
- package/docs/reference/lint-rules/missing-field.md +37 -0
- package/docs/reference/lint-rules/orphan.md +34 -0
- package/docs/reference/lint-rules/overfull-line.md +28 -0
- package/docs/reference/lint-rules/profile.md +24 -0
- package/docs/reference/lint-rules/raw-html.md +30 -0
- package/docs/reference/lint-rules/signature.md +34 -0
- package/docs/reference/lint-rules/straight-quotes.md +33 -0
- package/docs/reference/lint-rules/svg-use-css.md +24 -0
- package/docs/reference/lint-rules/underfull-line.md +35 -0
- package/docs/reference/lint-rules/unknown-citation.md +30 -0
- package/docs/reference/lint-rules/unknown-label.md +31 -0
- package/docs/reference/lint-rules/unpaintable.md +24 -0
- package/docs/reference/lint-rules/unplaced-index.md +31 -0
- package/docs/reference/lint-rules/unused-entry.md +38 -0
- package/docs/reference/lint-rules/widow.md +34 -0
- package/docs/reference/plugin-api/assert-no-errors.md +18 -0
- package/docs/reference/plugin-api/asset-processor.md +28 -0
- package/docs/reference/plugin-api/attribute-problem.md +26 -0
- package/docs/reference/plugin-api/attribute-type.md +18 -0
- package/docs/reference/plugin-api/capabilities.md +18 -0
- package/docs/reference/plugin-api/capability.md +22 -0
- package/docs/reference/plugin-api/check-attributes.md +18 -0
- package/docs/reference/plugin-api/claim-kind.md +20 -0
- package/docs/reference/plugin-api/combine-penalties.md +17 -0
- package/docs/reference/plugin-api/command-context.md +30 -0
- package/docs/reference/plugin-api/command-definition.md +34 -0
- package/docs/reference/plugin-api/core-claims.md +18 -0
- package/docs/reference/plugin-api/define-plugin.md +20 -0
- package/docs/reference/plugin-api/define-rule.md +19 -0
- package/docs/reference/plugin-api/describe-error.md +14 -0
- package/docs/reference/plugin-api/describe-node.md +14 -0
- package/docs/reference/plugin-api/empty-registry.md +18 -0
- package/docs/reference/plugin-api/failed-on.md +32 -0
- package/docs/reference/plugin-api/fails-as.md +18 -0
- package/docs/reference/plugin-api/import-plugins.md +20 -0
- package/docs/reference/plugin-api/import-text.md +14 -0
- package/docs/reference/plugin-api/index.md +123 -0
- package/docs/reference/plugin-api/layout-definition.md +42 -0
- package/docs/reference/plugin-api/layout-slot.md +28 -0
- package/docs/reference/plugin-api/line-breaker.md +18 -0
- package/docs/reference/plugin-api/lint-context.md +48 -0
- package/docs/reference/plugin-api/lint-definition.md +32 -0
- package/docs/reference/plugin-api/lint-edition.md +38 -0
- package/docs/reference/plugin-api/lint-fix.md +36 -0
- package/docs/reference/plugin-api/lint-level.md +20 -0
- package/docs/reference/plugin-api/lint-preset.md +30 -0
- package/docs/reference/plugin-api/lint-rule.md +42 -0
- package/docs/reference/plugin-api/load-failure.md +32 -0
- package/docs/reference/plugin-api/load-plugins-options.md +32 -0
- package/docs/reference/plugin-api/load-plugins.md +20 -0
- package/docs/reference/plugin-api/loaded-plugin.md +32 -0
- package/docs/reference/plugin-api/node-claim.md +34 -0
- package/docs/reference/plugin-api/output-definition.md +28 -0
- package/docs/reference/plugin-api/owned.md +28 -0
- package/docs/reference/plugin-api/page-builder-hook.md +18 -0
- package/docs/reference/plugin-api/penalty-rule.md +34 -0
- package/docs/reference/plugin-api/plugin-api.md +18 -0
- package/docs/reference/plugin-api/plugin-definition.md +66 -0
- package/docs/reference/plugin-api/plugin-error.md +22 -0
- package/docs/reference/plugin-api/plugin-failure.md +30 -0
- package/docs/reference/plugin-api/plugin-importer.md +34 -0
- package/docs/reference/plugin-api/plugin-problem.md +30 -0
- package/docs/reference/plugin-api/plugin-registry.md +83 -0
- package/docs/reference/plugin-api/plugin-scope.md +15 -0
- package/docs/reference/plugin-api/plugin-stage.md +18 -0
- package/docs/reference/plugin-api/plugin-threw-problem.md +34 -0
- package/docs/reference/plugin-api/plugin-threw.md +21 -0
- package/docs/reference/plugin-api/plugin.md +69 -0
- package/docs/reference/plugin-api/project-with-plugins.md +36 -0
- package/docs/reference/plugin-api/read-context.md +30 -0
- package/docs/reference/plugin-api/read-failure.md +18 -0
- package/docs/reference/plugin-api/read-plugin-styles.md +22 -0
- package/docs/reference/plugin-api/reader.md +22 -0
- package/docs/reference/plugin-api/register-options.md +28 -0
- package/docs/reference/plugin-api/register-plugins.md +20 -0
- package/docs/reference/plugin-api/render-format.md +18 -0
- package/docs/reference/plugin-api/render-formats.md +18 -0
- package/docs/reference/plugin-api/renderer-registry.md +18 -0
- package/docs/reference/plugin-api/renderer-set.md +34 -0
- package/docs/reference/plugin-api/renderers.md +34 -0
- package/docs/reference/plugin-api/specifier-kind.md +14 -0
- package/docs/reference/plugin-api/style-source.md +18 -0
- package/docs/reference/plugin-api/text-context.md +28 -0
- package/docs/reference/plugin-api/text-edit.md +28 -0
- package/docs/reference/plugin-api/text-renderer.md +24 -0
- package/docs/reference/plugin-api/try-plugin-async.md +18 -0
- package/docs/reference/plugin-api/try-plugin.md +20 -0
- package/docs/reference/pulpweaver4-toml/editions.md +208 -0
- package/docs/reference/pulpweaver4-toml/index.md +195 -0
- package/docs/reference/pulpweaver4-toml/inks.md +50 -0
- package/docs/reference/pulpweaver4-toml/lint.md +36 -0
- package/docs/reference/test-matchers/index.md +33 -0
- package/docs/reference/test-matchers/to-be-recto.md +20 -0
- package/docs/reference/test-matchers/to-cite.md +22 -0
- package/docs/reference/test-matchers/to-fit-on-one-page.md +20 -0
- package/docs/reference/test-matchers/to-have-no-overfull-lines.md +20 -0
- package/docs/reference/test-matchers/to-match-html-snapshot.md +20 -0
- package/docs/reference/test-matchers/to-match-page-snapshot.md +20 -0
- package/docs/reference/test-matchers/to-match-text-snapshot.md +21 -0
- package/docs/reference/test-matchers/to-start-page.md +20 -0
- package/package.json +75 -4
- package/README.md +0 -3
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var jo=Object.defineProperty;var ze=(r,e,t)=>()=>{if(t)throw t[0];try{return r&&(e=r(r=0)),e}catch(n){throw t=[n],n}};var Wo=(r,e)=>{for(var t in e)jo(r,t,{get:e[t],enumerable:!0})};async function Jo(r={}){var e,t=r,n=typeof window=="object",s=typeof WorkerGlobalScope<"u",o=typeof process=="object"&&process.versions?.node&&process.type!="renderer";if(o){let{createRequire:c}=await import("module");var a=c(import.meta.url)}var l=[],_="./this.program",f=(c,E)=>{throw E},p=import.meta.url,b="";function m(c){return t.locateFile?t.locateFile(c,b):b+c}var h,g;if(o){var w=a("fs");p.startsWith("file:")&&(b=a("path").dirname(a("url").fileURLToPath(p))+"/"),g=c=>{c=R(c)?new URL(c):c;var E=w.readFileSync(c);return E},h=async(c,E=!0)=>{c=R(c)?new URL(c):c;var B=w.readFileSync(c,E?void 0:"utf8");return B},process.argv.length>1&&(_=process.argv[1].replace(/\\/g,"/")),l=process.argv.slice(2),f=(c,E)=>{throw process.exitCode=c,E}}else if(n||s){try{b=new URL(".",p).href}catch{}s&&(g=c=>{var E=new XMLHttpRequest;return E.open("GET",c,!1),E.responseType="arraybuffer",E.send(null),new Uint8Array(E.response)}),h=async c=>{if(R(c))return new Promise((B,V)=>{var W=new XMLHttpRequest;W.open("GET",c,!0),W.responseType="arraybuffer",W.onload=()=>{if(W.status==200||W.status==0&&W.response){B(W.response);return}V(W.status)},W.onerror=V,W.send(null)});var E=await fetch(c,{credentials:"same-origin"});if(E.ok)return E.arrayBuffer();throw new Error(E.status+" : "+E.url)}}var A=console.log.bind(console),v=console.error.bind(console),k,S=!1,M,R=c=>c.startsWith("file://"),x,F,L,D,$,z,O,G,q,nt,st,gt,kt,Q=!1;function J(){var c=L.buffer;t.HEAP8=D=new Int8Array(c),z=new Int16Array(c),t.HEAPU8=$=new Uint8Array(c),t.HEAPU16=O=new Uint16Array(c),t.HEAP32=G=new Int32Array(c),t.HEAPU32=q=new Uint32Array(c),t.HEAPF32=nt=new Float32Array(c),st=new Float64Array(c),gt=new BigInt64Array(c),kt=new BigUint64Array(c)}function tt(){if(t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)Et(t.preRun.shift());Z(mt)}function ct(){Q=!0,Pt.__wasm_call_ctors()}function j(){if(t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;)ft(t.postRun.shift());Z(K)}var at=0,ut=null;function It(c){at++,t.monitorRunDependencies?.(at)}function d(c){if(at--,t.monitorRunDependencies?.(at),at==0&&ut){var E=ut;ut=null,E()}}function y(c){t.onAbort?.(c),c="Aborted("+c+")",v(c),S=!0,c+=". Build with -sASSERTIONS for more info.";var E=new WebAssembly.RuntimeError(c);throw F?.(E),E}var T;function P(){return t.locateFile?m("harfbuzz.wasm"):new URL("harfbuzz.wasm",import.meta.url).href}function U(c){if(c==T&&k)return new Uint8Array(k);if(g)return g(c);throw"both async and sync fetching of the wasm failed"}async function I(c){if(!k)try{var E=await h(c);return new Uint8Array(E)}catch{}return U(c)}async function H(c,E){try{var B=await I(c),V=await WebAssembly.instantiate(B,E);return V}catch(W){v(`failed to asynchronously prepare wasm: ${W}`),y(W)}}async function rt(c,E,B){if(!c&&!R(E)&&!o)try{var V=fetch(E,{credentials:"same-origin"}),W=await WebAssembly.instantiateStreaming(V,B);return W}catch(_t){v(`wasm streaming compile failed: ${_t}`),v("falling back to ArrayBuffer instantiation")}return H(E,B)}function it(){return{env:Ge,wasi_snapshot_preview1:Ge}}async function et(){function c(_t,ce){return Pt=_t.exports,t.wasmExports=Pt,L=Pt.memory,J(),Mt=Pt.__indirect_function_table,Do(Pt),d("wasm-instantiate"),Pt}It("wasm-instantiate");function E(_t){return c(_t.instance)}var B=it();if(t.instantiateWasm)return new Promise((_t,ce)=>{t.instantiateWasm(B,(Go,zo)=>{_t(c(Go,zo))})});T??=P();var V=await rt(k,T,B),W=E(V);return W}class X{name="ExitStatus";constructor(E){this.message=`Program terminated with exit(${E})`,this.status=E}}var Z=c=>{for(;c.length>0;)c.shift()(t)},K=[],ft=c=>K.push(c),mt=[],Et=c=>mt.push(c),lt=!0,ht=c=>Ce(c),Ot=()=>Be(),Un=()=>y(""),Le=0,In=()=>{lt=!1,Le=0},Nt={},xe=c=>{if(c instanceof X||c=="unwind")return M;f(1,c)},He=()=>lt||Le>0,Ue=c=>{M=c,He()||(t.onExit?.(c),S=!0),f(c,new X(c))},On=(c,E)=>{M=c,Ue(c)},Nn=On,Mn=()=>{if(!He())try{Nn(M)}catch(c){xe(c)}},Cn=c=>{if(!S)try{c(),Mn()}catch(E){xe(E)}},Dn=()=>performance.now(),Bn=(c,E)=>{if(Nt[c]&&(clearTimeout(Nt[c].id),delete Nt[c]),!E)return 0;var B=setTimeout(()=>{delete Nt[c],Cn(()=>Me(c,Dn()))},E);return Nt[c]={id:B,timeout_ms:E},0},Gn=()=>2147483648,zn=(c,E)=>Math.ceil(c/E)*E,jn=c=>{var E=L.buffer.byteLength,B=(c-E+65535)/65536|0;try{return L.grow(B),J(),1}catch{}},Wn=c=>{var E=$.length;c>>>=0;var B=Gn();if(c>B)return!1;for(var V=1;V<=4;V*=2){var W=E*(1+.2/V);W=Math.min(W,c+100663296);var _t=Math.min(B,zn(Math.max(c,W),65536)),ce=jn(_t);if(ce)return!0}return!1},Ie=c=>{let E=c.length;return[E%128|128,E>>7,...c]},$n={i:127,p:127,j:126,f:125,d:124,e:111},Oe=c=>Ie(Array.from(c,E=>{var B=$n[E];return B})),Vn=(c,E)=>{var B=Uint8Array.of(0,97,115,109,1,0,0,0,1,...Ie([1,96,...Oe(E.slice(1)),...Oe(E[0]==="v"?"":E[0])]),2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),V=new WebAssembly.Module(B),W=new WebAssembly.Instance(V,{e:{f:c}}),_t=W.exports.f;return _t},Mt,Ne=c=>Mt.get(c),Yn=(c,E)=>{if(Rt)for(var B=c;B<c+E;B++){var V=Ne(B);V&&Rt.set(V,B)}},Rt,qn=c=>(Rt||(Rt=new WeakMap,Yn(0,Mt.length)),Rt.get(c)||0),oe=[],Xn=()=>oe.length?oe.pop():Mt.grow(1),ae=(c,E)=>Mt.set(c,E),Zn=(c,E)=>{var B=qn(c);if(B)return B;var V=Xn();try{ae(V,c)}catch(_t){if(!(_t instanceof TypeError))throw _t;var W=Vn(c,E);ae(V,W)}return Rt.set(c,V),V},Kn=c=>{Rt.delete(Ne(c)),ae(c,null),oe.push(c)},Jn=c=>De(c);t.noExitRuntime&&(lt=t.noExitRuntime),t.print&&(A=t.print),t.printErr&&(v=t.printErr),t.wasmBinary&&(k=t.wasmBinary),t.arguments&&(l=t.arguments),t.thisProgram&&(_=t.thisProgram),t.wasmExports=Pt,t.stackSave=Ot,t.stackRestore=ht,t.stackAlloc=Jn,t.addFunction=Zn,t.removeFunction=Kn;var Qn,tr,er,nr,rr,sr,or,ar,ir,cr,lr,_r,ur,fr,hr,pr,dr,gr,br,mr,yr,Pr,wr,Sr,Ar,vr,kr,Er,Rr,Fr,Tr,Lr,xr,Hr,Ur,Ir,Or,Nr,Mr,Cr,Dr,Br,Gr,zr,jr,Wr,$r,Vr,Yr,qr,Xr,Zr,Kr,Jr,Qr,ts,es,ns,rs,ss,os,as,is,cs,ls,_s,us,fs,hs,ps,ds,gs,bs,ms,ys,Ps,ws,Ss,As,vs,ks,Es,Rs,Fs,Ts,Ls,xs,Hs,Us,Is,Os,Ns,Ms,Cs,Ds,Bs,Gs,zs,js,Ws,$s,Vs,Ys,qs,Xs,Zs,Ks,Js,Qs,to,eo,no,ro,so,oo,ao,io,co,lo,_o,uo,fo,ho,po,go,bo,mo,yo,Po,wo,So,Ao,vo,ko,Eo,Ro,Fo,To,Lo,xo,Ho,Uo,Io,Oo,No,Mo,Co,Me,Ce,De,Be;function Do(c){t._hb_blob_create=Qn=c.hb_blob_create,t._hb_blob_destroy=tr=c.hb_blob_destroy,t._hb_blob_get_length=er=c.hb_blob_get_length,t._hb_blob_get_data=nr=c.hb_blob_get_data,t._hb_buffer_serialize=rr=c.hb_buffer_serialize,t._hb_buffer_create=sr=c.hb_buffer_create,t._hb_buffer_reset=or=c.hb_buffer_reset,t._hb_buffer_reference=ar=c.hb_buffer_reference,t._hb_buffer_destroy=ir=c.hb_buffer_destroy,t._hb_buffer_get_content_type=cr=c.hb_buffer_get_content_type,t._hb_buffer_set_direction=lr=c.hb_buffer_set_direction,t._hb_buffer_set_script=_r=c.hb_buffer_set_script,t._hb_buffer_set_language=ur=c.hb_buffer_set_language,t._hb_buffer_set_flags=fr=c.hb_buffer_set_flags,t._hb_buffer_set_cluster_level=hr=c.hb_buffer_set_cluster_level,t._hb_buffer_clear_contents=pr=c.hb_buffer_clear_contents,t._hb_buffer_add=dr=c.hb_buffer_add,t._hb_buffer_get_length=gr=c.hb_buffer_get_length,t._hb_buffer_get_glyph_infos=br=c.hb_buffer_get_glyph_infos,t._hb_buffer_get_glyph_positions=mr=c.hb_buffer_get_glyph_positions,t._hb_glyph_info_get_glyph_flags=yr=c.hb_glyph_info_get_glyph_flags,t._hb_buffer_guess_segment_properties=Pr=c.hb_buffer_guess_segment_properties,t._hb_buffer_add_utf8=wr=c.hb_buffer_add_utf8,t._hb_buffer_add_utf16=Sr=c.hb_buffer_add_utf16,t._hb_buffer_add_codepoints=Ar=c.hb_buffer_add_codepoints,t._hb_buffer_set_message_func=vr=c.hb_buffer_set_message_func,t._hb_language_from_string=kr=c.hb_language_from_string,t._hb_language_to_string=Er=c.hb_language_to_string,t._hb_script_from_string=Rr=c.hb_script_from_string,t._hb_version=Fr=c.hb_version,t._hb_version_string=Tr=c.hb_version_string,t._hb_feature_from_string=Lr=c.hb_feature_from_string,t._hb_feature_to_string=xr=c.hb_feature_to_string,t._hb_variation_from_string=Hr=c.hb_variation_from_string,t._hb_variation_to_string=Ur=c.hb_variation_to_string,t._malloc=Ir=c.malloc,t._free=Or=c.free,t._hb_draw_funcs_set_move_to_func=Nr=c.hb_draw_funcs_set_move_to_func,t._hb_draw_funcs_set_line_to_func=Mr=c.hb_draw_funcs_set_line_to_func,t._hb_draw_funcs_set_quadratic_to_func=Cr=c.hb_draw_funcs_set_quadratic_to_func,t._hb_draw_funcs_set_cubic_to_func=Dr=c.hb_draw_funcs_set_cubic_to_func,t._hb_draw_funcs_set_close_path_func=Br=c.hb_draw_funcs_set_close_path_func,t._hb_draw_funcs_create=Gr=c.hb_draw_funcs_create,t._hb_draw_funcs_destroy=zr=c.hb_draw_funcs_destroy,t._hb_face_create=jr=c.hb_face_create,t._hb_face_reference=Wr=c.hb_face_reference,t._hb_face_destroy=$r=c.hb_face_destroy,t._hb_face_reference_table=Vr=c.hb_face_reference_table,t._hb_face_get_upem=Yr=c.hb_face_get_upem,t._hb_face_collect_unicodes=qr=c.hb_face_collect_unicodes,t._hb_font_funcs_create=Xr=c.hb_font_funcs_create,t._hb_font_funcs_destroy=Zr=c.hb_font_funcs_destroy,t._hb_font_funcs_set_font_h_extents_func=Kr=c.hb_font_funcs_set_font_h_extents_func,t._hb_font_funcs_set_font_v_extents_func=Jr=c.hb_font_funcs_set_font_v_extents_func,t._hb_font_funcs_set_nominal_glyph_func=Qr=c.hb_font_funcs_set_nominal_glyph_func,t._hb_font_funcs_set_nominal_glyphs_func=ts=c.hb_font_funcs_set_nominal_glyphs_func,t._hb_font_funcs_set_variation_glyph_func=es=c.hb_font_funcs_set_variation_glyph_func,t._hb_font_funcs_set_glyph_h_advance_func=ns=c.hb_font_funcs_set_glyph_h_advance_func,t._hb_font_funcs_set_glyph_v_advance_func=rs=c.hb_font_funcs_set_glyph_v_advance_func,t._hb_font_funcs_set_glyph_h_advances_func=ss=c.hb_font_funcs_set_glyph_h_advances_func,t._hb_font_funcs_set_glyph_v_advances_func=os=c.hb_font_funcs_set_glyph_v_advances_func,t._hb_font_funcs_set_glyph_h_origin_func=as=c.hb_font_funcs_set_glyph_h_origin_func,t._hb_font_funcs_set_glyph_v_origin_func=is=c.hb_font_funcs_set_glyph_v_origin_func,t._hb_font_funcs_set_glyph_h_kerning_func=cs=c.hb_font_funcs_set_glyph_h_kerning_func,t._hb_font_funcs_set_glyph_extents_func=ls=c.hb_font_funcs_set_glyph_extents_func,t._hb_font_funcs_set_glyph_name_func=_s=c.hb_font_funcs_set_glyph_name_func,t._hb_font_funcs_set_glyph_from_name_func=us=c.hb_font_funcs_set_glyph_from_name_func,t._hb_font_get_h_extents=fs=c.hb_font_get_h_extents,t._hb_font_get_v_extents=hs=c.hb_font_get_v_extents,t._hb_font_get_glyph=ps=c.hb_font_get_glyph,t._hb_font_get_nominal_glyph=ds=c.hb_font_get_nominal_glyph,t._hb_font_get_variation_glyph=gs=c.hb_font_get_variation_glyph,t._hb_font_get_glyph_h_advance=bs=c.hb_font_get_glyph_h_advance,t._hb_font_get_glyph_v_advance=ms=c.hb_font_get_glyph_v_advance,t._hb_font_get_glyph_h_origin=ys=c.hb_font_get_glyph_h_origin,t._hb_font_get_glyph_v_origin=Ps=c.hb_font_get_glyph_v_origin,t._hb_font_get_glyph_extents=ws=c.hb_font_get_glyph_extents,t._hb_font_get_glyph_from_name=Ss=c.hb_font_get_glyph_from_name,t._hb_font_draw_glyph_or_fail=As=c.hb_font_draw_glyph_or_fail,t._hb_font_paint_glyph_or_fail=vs=c.hb_font_paint_glyph_or_fail,t._hb_font_draw_glyph=ks=c.hb_font_draw_glyph,t._hb_font_paint_glyph=Es=c.hb_font_paint_glyph,t._hb_font_glyph_to_string=Rs=c.hb_font_glyph_to_string,t._hb_font_create=Fs=c.hb_font_create,t._hb_font_set_variations=Ts=c.hb_font_set_variations,t._hb_font_create_sub_font=Ls=c.hb_font_create_sub_font,t._hb_font_reference=xs=c.hb_font_reference,t._hb_font_destroy=Hs=c.hb_font_destroy,t._hb_font_get_face=Us=c.hb_font_get_face,t._hb_font_set_funcs=Is=c.hb_font_set_funcs,t._hb_font_set_scale=Os=c.hb_font_set_scale,t._hb_ot_color_has_palettes=Ns=c.hb_ot_color_has_palettes,t._hb_ot_color_palette_get_count=Ms=c.hb_ot_color_palette_get_count,t._hb_ot_color_palette_get_name_id=Cs=c.hb_ot_color_palette_get_name_id,t._hb_ot_color_palette_color_get_name_id=Ds=c.hb_ot_color_palette_color_get_name_id,t._hb_ot_color_palette_get_flags=Bs=c.hb_ot_color_palette_get_flags,t._hb_ot_color_palette_get_colors=Gs=c.hb_ot_color_palette_get_colors,t._hb_ot_color_has_layers=zs=c.hb_ot_color_has_layers,t._hb_ot_color_has_paint=js=c.hb_ot_color_has_paint,t._hb_ot_color_glyph_has_paint=Ws=c.hb_ot_color_glyph_has_paint,t._hb_ot_color_glyph_get_layers=$s=c.hb_ot_color_glyph_get_layers,t._hb_ot_color_has_png=Vs=c.hb_ot_color_has_png,t._hb_ot_color_glyph_reference_png=Ys=c.hb_ot_color_glyph_reference_png,t._hb_ot_layout_get_glyph_class=qs=c.hb_ot_layout_get_glyph_class,t._hb_ot_layout_get_ligature_carets=Xs=c.hb_ot_layout_get_ligature_carets,t._hb_ot_layout_table_get_script_tags=Zs=c.hb_ot_layout_table_get_script_tags,t._hb_ot_layout_table_get_feature_tags=Ks=c.hb_ot_layout_table_get_feature_tags,t._hb_ot_layout_script_get_language_tags=Js=c.hb_ot_layout_script_get_language_tags,t._hb_ot_layout_language_get_feature_tags=Qs=c.hb_ot_layout_language_get_feature_tags,t._hb_ot_layout_feature_get_lookups=to=c.hb_ot_layout_feature_get_lookups,t._hb_ot_layout_feature_get_name_ids=eo=c.hb_ot_layout_feature_get_name_ids,t._hb_ot_metrics_get_position_with_fallback=no=c.hb_ot_metrics_get_position_with_fallback,t._hb_ot_layout_lookup_get_optical_bound=ro=c.hb_ot_layout_lookup_get_optical_bound,t._hb_ot_tags_from_script_and_language=so=c.hb_ot_tags_from_script_and_language,t._hb_ot_metrics_get_position=oo=c.hb_ot_metrics_get_position,t._hb_ot_metrics_get_variation=ao=c.hb_ot_metrics_get_variation,t._hb_ot_metrics_get_x_variation=io=c.hb_ot_metrics_get_x_variation,t._hb_ot_metrics_get_y_variation=co=c.hb_ot_metrics_get_y_variation,t._hb_ot_name_list_names=lo=c.hb_ot_name_list_names,t._hb_ot_name_get_utf16=_o=c.hb_ot_name_get_utf16,t._hb_set_create=uo=c.hb_set_create,t._hb_set_destroy=fo=c.hb_set_destroy,t._hb_ot_tag_to_script=ho=c.hb_ot_tag_to_script,t._hb_ot_tag_to_language=po=c.hb_ot_tag_to_language,t._hb_ot_tags_to_script_and_language=go=c.hb_ot_tags_to_script_and_language,t._hb_ot_var_get_axis_infos=bo=c.hb_ot_var_get_axis_infos,t._hb_paint_funcs_set_push_transform_func=mo=c.hb_paint_funcs_set_push_transform_func,t._hb_paint_funcs_set_pop_transform_func=yo=c.hb_paint_funcs_set_pop_transform_func,t._hb_paint_funcs_set_color_glyph_func=Po=c.hb_paint_funcs_set_color_glyph_func,t._hb_paint_funcs_set_push_clip_glyph_func=wo=c.hb_paint_funcs_set_push_clip_glyph_func,t._hb_paint_funcs_set_push_clip_rectangle_func=So=c.hb_paint_funcs_set_push_clip_rectangle_func,t._hb_paint_funcs_set_pop_clip_func=Ao=c.hb_paint_funcs_set_pop_clip_func,t._hb_paint_funcs_set_color_func=vo=c.hb_paint_funcs_set_color_func,t._hb_paint_funcs_set_image_func=ko=c.hb_paint_funcs_set_image_func,t._hb_paint_funcs_set_linear_gradient_func=Eo=c.hb_paint_funcs_set_linear_gradient_func,t._hb_paint_funcs_set_radial_gradient_func=Ro=c.hb_paint_funcs_set_radial_gradient_func,t._hb_paint_funcs_set_sweep_gradient_func=Fo=c.hb_paint_funcs_set_sweep_gradient_func,t._hb_paint_funcs_set_push_group_func=To=c.hb_paint_funcs_set_push_group_func,t._hb_paint_funcs_set_pop_group_func=Lo=c.hb_paint_funcs_set_pop_group_func,t._hb_paint_funcs_set_custom_palette_color_func=xo=c.hb_paint_funcs_set_custom_palette_color_func,t._hb_paint_funcs_create=Ho=c.hb_paint_funcs_create,t._hb_paint_funcs_destroy=Uo=c.hb_paint_funcs_destroy,t._hb_color_line_get_color_stops=Io=c.hb_color_line_get_color_stops,t._hb_color_line_get_extend=Oo=c.hb_color_line_get_extend,t._hb_set_get_population=No=c.hb_set_get_population,t._hb_set_next_many=Mo=c.hb_set_next_many,t._hb_shape=Co=c.hb_shape,Me=c._emscripten_timeout,Ce=c._emscripten_stack_restore,De=c._emscripten_stack_alloc,Be=c.emscripten_stack_get_current}var Ge={_abort_js:Un,_emscripten_runtime_keepalive_clear:In,_setitimer_js:Bn,emscripten_resize_heap:Wn,proc_exit:Ue},Pt=await et();function ie(){if(at>0){ut=ie;return}if(tt(),at>0){ut=ie;return}function c(){t.calledRun=!0,!S&&(ct(),x?.(t),t.onRuntimeInitialized?.(),j())}t.setStatus?(t.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>t.setStatus(""),1),c()},1)):c()}function Bo(){if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.shift()()}return Bo(),ie(),Q?e=t:e=new Promise((c,E)=>{x=c,F=E}),e}var qe,Xe=ze(()=>{qe=Jo});var cn={};Wo(cn,{AxisFlags:()=>_a,Blob:()=>fa,Buffer:()=>Sa,BufferContentType:()=>nn,BufferFlag:()=>ya,BufferSerializeFlag:()=>rn,BufferSerializeFormat:()=>we,ClusterLevel:()=>wa,ColorPaletteFlags:()=>ia,Direction:()=>Pa,DrawFuncs:()=>Pe,Face:()=>tn,Feature:()=>Aa,Font:()=>ot,FontFuncs:()=>ba,GlyphClass:()=>ha,GlyphFlag:()=>ua,MetricsTag:()=>pa,PaintCompositeMode:()=>la,PaintExtend:()=>ca,PaintFuncs:()=>ma,TracePhase:()=>Bt,Variation:()=>va,otTagToLanguage:()=>Ta,otTagToScript:()=>Fa,otTagsFromScriptAndLanguage:()=>La,otTagsToScriptAndLanguage:()=>xa,shape:()=>an,shapeWithTrace:()=>ka,version:()=>Ea,versionString:()=>Ra});function Gt(r,e){let t=r.ptr;be.register(r,()=>e(t))}function ea(r){i=r,u=i.wasmExports,Je=i.addFunction(e=>{u.free(e)},"vi")}function N(r){return(r.charCodeAt(0)&255)<<24|(r.charCodeAt(1)&255)<<16|(r.charCodeAt(2)&255)<<8|(r.charCodeAt(3)&255)<<0}function pt(r){return String.fromCharCode(r>>24&255,r>>16&255,r>>8&255,r>>0&255)}function At(r,e){let t;return e==null?t=i.HEAPU8.indexOf(0,r):t=r+e,Qo.decode(i.HEAPU8.subarray(r,t))}function na(r,e){let t=r/2+e;return String.fromCharCode(...i.HEAPU16.subarray(r/2,t))}function Ft(r){let e=u.malloc(r.length+1);for(let t=0;t<r.length;++t){let n=r.charCodeAt(t);if(n>127)throw new Error("Expected ASCII text");i.HEAPU8[e+t]=n}return i.HEAPU8[e+r.length]=0,{ptr:e,length:r.length,free:function(){u.free(e)}}}function ra(r){let e=u.malloc(r.length);return ta.encodeInto(r,i.HEAPU8.subarray(e,e+r.length)),{ptr:e,length:r.length,free:function(){u.free(e)}}}function sa(r){let e=u.malloc(r.length*2),t=i.HEAPU16.subarray(e/2,e/2+r.length);for(let n=0;n<t.length;++n)t[n]=r.charCodeAt(n);return{ptr:e,length:t.length,free:function(){u.free(e)}}}function me(r){return At(u.hb_language_to_string(r))}function oa(r){let e=Ft(r),t=u.hb_language_from_string(e.ptr,-1);return e.free(),t}function aa(r){let e=u.hb_set_get_population(r),t=u.malloc(e<<2),n=t>>2;return u.hb_set_next_many(r,-1,t,e),i.HEAPU32.subarray(n,n+e)}function Y(r){if(r===void 0)return 0;let e=Qe.pop()??Vt.length;return Vt[e]=r,e}function C(r){return Vt[r]}function Ht(r){r!==0&&(Vt[r]=void 0,Qe.push(r))}function ye(r){return{red:r>>8&255,green:r>>16&255,blue:r>>24&255,alpha:r&255}}function ge(r){return(r.red<<8|r.green<<16|r.blue<<24|r.alpha)>>>0}function da(){return wt||(wt=new Pe,wt.setMoveToFunc((r,e,t)=>{t.push(`M${r},${e}`)}),wt.setLineToFunc((r,e,t)=>{t.push(`L${r},${e}`)}),wt.setCubicToFunc((r,e,t,n,s,o,a)=>{a.push(`C${r},${e} ${t},${n} ${s},${o}`)}),wt.setQuadraticToFunc((r,e,t,n,s)=>{s.push(`Q${r},${e} ${t},${n}`)}),wt.setClosePathFunc(r=>{r.push("Z")})),wt}function ga(){return St||(St=new Pe,St.setMoveToFunc((r,e,t)=>{t.push({type:"M",values:[r,e]})}),St.setLineToFunc((r,e,t)=>{t.push({type:"L",values:[r,e]})}),St.setCubicToFunc((r,e,t,n,s,o,a)=>{a.push({type:"C",values:[r,e,t,n,s,o]})}),St.setQuadraticToFunc((r,e,t,n,s)=>{s.push({type:"Q",values:[r,e,t,n]})}),St.setClosePathFunc(r=>{r.push({type:"Z",values:[]})})),St}function de(r){let e=u.hb_color_line_get_extend(r),t=[],n=i.stackSave(),s=i.stackAlloc(4),o=i.stackAlloc(1536),a=0,l=128;for(;l===128;){i.HEAPU32[s/4]=l,u.hb_color_line_get_color_stops(r,a,s,o),l=i.HEAPU32[s/4];for(let _=0;_<l;_++){let f=(o+_*12)/4;t.push({offset:i.HEAPF32[f],isForeground:i.HEAPU32[f+1]!==0,color:ye(i.HEAPU32[f+2])})}a+=l}return i.stackRestore(n),{extend:e,colorStops:t}}function an(r,e,t){let n=t?.length??0,s=i.stackSave(),o=0;n&&(o=i.stackAlloc(16*n),t.forEach((a,l)=>{a.writeTo(o+l*16)})),u.hb_shape(r.ptr,e.ptr,o,n),i.stackRestore(s)}function ka(r,e,t,n,s){let o=[],a=Bt.DONT_STOP,l=!1;return e.setMessageFunc((_,f,p)=>{if(p.startsWith("start table GSUB")?a=Bt.GSUB:p.startsWith("start table GPOS")&&(a=Bt.GPOS),a!=s&&(l=!1),s!=Bt.DONT_STOP&&a==s&&p.startsWith("end lookup "+n)&&(l=!0),l)return!1;let b=_.serialize({font:f,format:we.JSON,flags:rn.NO_GLYPH_NAMES});return o.push({m:p,t:JSON.parse(b),glyphs:_.getContentType()==nn.GLYPHS}),!0}),an(r,e,t),o}function Ea(){let r=i.stackSave(),e=i.stackAlloc(12);u.hb_version(e,e+4,e+8);let t={major:i.HEAPU32[e/4],minor:i.HEAPU32[(e+4)/4],micro:i.HEAPU32[(e+8)/4]};return i.stackRestore(r),t}function Ra(){return At(u.hb_version_string())}function Fa(r){let e=N(r);return pt(u.hb_ot_tag_to_script(e))}function Ta(r){let e=N(r);return me(u.hb_ot_tag_to_language(e))}function La(r,e){let t=i.stackSave(),n=Ft(r),s=Ft(e),o=i.stackAlloc(4);i.HEAPU32[o/4]=Ke;let a=i.stackAlloc(Ke*4),l=i.stackAlloc(4);i.HEAPU32[l/4]=Ze;let _=i.stackAlloc(Ze*4);u.hb_ot_tags_from_script_and_language(u.hb_script_from_string(n.ptr,-1),u.hb_language_from_string(s.ptr,-1),o,a,l,_),n.free(),s.free();let f=i.HEAPU32.subarray(a/4,a/4+i.HEAPU32[o/4]),p=i.HEAPU32.subarray(_/4,_/4+i.HEAPU32[l/4]);return i.stackRestore(t),{scriptTags:[...f].map(pt),languageTags:[...p].map(pt)}}function xa(r,e){let t=i.stackSave(),n=i.stackAlloc(4),s=i.stackAlloc(4);u.hb_ot_tags_to_script_and_language(N(r),N(e),n,s);let o=i.HEAPU32[n/4],a=i.HEAPU32[s/4];return i.stackRestore(t),{script:pt(o),language:me(a)}}var i,u,Je,Qo,ta,be,Vt,Qe,ia,ca,la,_a,ua,fa,Dt,ha,tn,Pe,pa,wt,St,ot,ba,ma,nn,rn,ya,Pa,wa,we,Sa,Aa,va,Bt,Ze,Ke,ln=ze(async()=>{Xe();Qo=new TextDecoder("utf8"),ta=new TextEncoder,be=new FinalizationRegistry(r=>{r()});Vt=[void 0],Qe=[];ia={DEFAULT:0,USABLE_WITH_LIGHT_BACKGROUND:1,USABLE_WITH_DARK_BACKGROUND:2},ca={PAD:0,REPEAT:1,REFLECT:2},la={CLEAR:0,SRC:1,DEST:2,SRC_OVER:3,DEST_OVER:4,SRC_IN:5,DEST_IN:6,SRC_OUT:7,DEST_OUT:8,SRC_ATOP:9,DEST_ATOP:10,XOR:11,PLUS:12,SCREEN:13,OVERLAY:14,DARKEN:15,LIGHTEN:16,COLOR_DODGE:17,COLOR_BURN:18,HARD_LIGHT:19,SOFT_LIGHT:20,DIFFERENCE:21,EXCLUSION:22,MULTIPLY:23,HSL_HUE:24,HSL_SATURATION:25,HSL_COLOR:26,HSL_LUMINOSITY:27},_a={HIDDEN:1},ua={UNSAFE_TO_BREAK:1,UNSAFE_TO_CONCAT:2,SAFE_TO_INSERT_TATWEEL:4,DEFINED:7},fa=class{constructor(r){let e=r instanceof Uint8Array?r:new Uint8Array(r),t=u.malloc(e.byteLength);i.HEAPU8.set(e,t),this.ptr=u.hb_blob_create(t,e.byteLength,2,t,Je),Gt(this,u.hb_blob_destroy)}},Dt=65535,ha={UNCLASSIFIED:0,BASE_GLYPH:1,LIGATURE:2,MARK:3,COMPONENT:4},tn=class{constructor(r,e=0){typeof r=="number"?this.ptr=u.hb_face_reference(r):this.ptr=u.hb_face_create(r.ptr,e),this.upem=u.hb_face_get_upem(this.ptr),Gt(this,u.hb_face_destroy)}referenceTable(r){let e=u.hb_face_reference_table(this.ptr,N(r)),t=u.hb_blob_get_length(e);if(!t)return;let n=u.hb_blob_get_data(e,0);return i.HEAPU8.subarray(n,n+t)}getAxisInfos(){let r=i.stackSave(),e=i.stackAlloc(2048),t=i.stackAlloc(4);i.HEAPU32[t/4]=64,u.hb_ot_var_get_axis_infos(this.ptr,0,t,e);let n={};return Array.from({length:i.HEAPU32[t/4]}).forEach((s,o)=>{let a={axisIndex:i.HEAPU32[e/4+o*8],tag:pt(i.HEAPU32[e/4+o*8+1]),nameId:i.HEAPU32[e/4+o*8+2],flags:i.HEAPU32[e/4+o*8+3],min:i.HEAPF32[e/4+o*8+4],default:i.HEAPF32[e/4+o*8+5],max:i.HEAPF32[e/4+o*8+6]};n[a.tag]=a}),i.stackRestore(r),n}collectUnicodes(){let r=u.hb_set_create();u.hb_face_collect_unicodes(this.ptr,r);let e=aa(r);return u.hb_set_destroy(r),e}getTableScriptTags(r){let e=i.stackSave(),t=N(r),n=0,s=128,o=i.stackAlloc(4),a=i.stackAlloc(512),l=[];for(;s==128;){i.HEAPU32[o/4]=s,u.hb_ot_layout_table_get_script_tags(this.ptr,t,n,o,a),s=i.HEAPU32[o/4];let _=i.HEAPU32.subarray(a/4,a/4+s);l.push(...Array.from(_).map(pt)),n+=s}return i.stackRestore(e),l}getTableFeatureTags(r){let e=i.stackSave(),t=N(r),n=0,s=128,o=i.stackAlloc(4),a=i.stackAlloc(512),l=[];for(;s==128;){i.HEAPU32[o/4]=s,u.hb_ot_layout_table_get_feature_tags(this.ptr,t,n,o,a),s=i.HEAPU32[o/4];let _=i.HEAPU32.subarray(a/4,a/4+s);l.push(...Array.from(_).map(pt)),n+=s}return i.stackRestore(e),l}getScriptLanguageTags(r,e){let t=i.stackSave(),n=N(r),s=0,o=128,a=i.stackAlloc(4),l=i.stackAlloc(512),_=[];for(;o==128;){i.HEAPU32[a/4]=o,u.hb_ot_layout_script_get_language_tags(this.ptr,n,e,s,a,l),o=i.HEAPU32[a/4];let f=i.HEAPU32.subarray(l/4,l/4+o);_.push(...Array.from(f).map(pt)),s+=o}return i.stackRestore(t),_}getLanguageFeatureTags(r,e,t){let n=i.stackSave(),s=N(r),o=0,a=128,l=i.stackAlloc(4),_=i.stackAlloc(512),f=[];for(;a==128;){i.HEAPU32[l/4]=a,u.hb_ot_layout_language_get_feature_tags(this.ptr,s,e,t,o,l,_),a=i.HEAPU32[l/4];let p=i.HEAPU32.subarray(_/4,_/4+a);f.push(...Array.from(p).map(pt)),o+=a}return i.stackRestore(n),f}getFeatureLookups(r,e){let t=i.stackSave(),n=N(r),s=0,o=128,a=i.stackAlloc(4),l=i.stackAlloc(512),_=[];for(;o==128;){i.HEAPU32[a/4]=o,u.hb_ot_layout_feature_get_lookups(this.ptr,n,e,s,a,l),o=i.HEAPU32[a/4];let f=i.HEAPU32.subarray(l/4,l/4+o);_.push(...Array.from(f)),s+=o}return i.stackRestore(t),_}getGlyphClass(r){return u.hb_ot_layout_get_glyph_class(this.ptr,r)}listNames(){let r=i.stackSave(),e=i.stackAlloc(4),t=u.hb_ot_name_list_names(this.ptr,e),n=i.HEAPU32[e/4],s=[];for(let o=0;o<n;o++)s.push({nameId:i.HEAPU32[t/4+o*3],language:me(i.HEAPU32[t/4+o*3+2])});return i.stackRestore(r),s}getName(r,e){let t=i.stackSave(),n=oa(e),s=u.hb_ot_name_get_utf16(this.ptr,r,n,0,0)+1,o=i.stackAlloc(4),a=u.malloc(s*2);i.HEAPU32[o/4]=s,u.hb_ot_name_get_utf16(this.ptr,r,n,o,a);let l=na(a,s-1);return u.free(a),i.stackRestore(t),l}getFeatureNameIds(r,e){let t=i.stackSave(),n=N(r),s=i.stackAlloc(4),o=i.stackAlloc(4),a=i.stackAlloc(4),l=i.stackAlloc(4),_=i.stackAlloc(4),f=u.hb_ot_layout_feature_get_name_ids(this.ptr,n,e,s,o,a,l,_),p;if(f){let b=i.HEAPU32[s/4],m=i.HEAPU32[o/4],h=i.HEAPU32[a/4],g=i.HEAPU32[l/4],w=i.HEAPU32[_/4];p={paramUiLabelNameIds:Array.from({length:g},(A,v)=>w+v)},b!=Dt&&(p.uiLabelNameId=b),m!=Dt&&(p.uiTooltipTextNameId=m),h!=Dt&&(p.sampleTextNameId=h)}return i.stackRestore(t),p}hasColorPalettes(){return!!u.hb_ot_color_has_palettes(this.ptr)}getColorPalettes(){let r=u.hb_ot_color_palette_get_count(this.ptr),e=[],t=i.stackSave(),n=i.stackAlloc(4),s=i.stackAlloc(512);for(let o=0;o<r;o++){let a=[],l=0,_=128;for(;_===128;){i.HEAPU32[n/4]=_,u.hb_ot_color_palette_get_colors(this.ptr,o,l,n,s),_=i.HEAPU32[n/4];for(let b=0;b<_;b++){let m=ye(i.HEAPU32[s/4+b]),h=u.hb_ot_color_palette_color_get_name_id(this.ptr,l+b);h!=Dt&&(m.nameId=h),a.push(m)}l+=_}let f={colors:a,flags:u.hb_ot_color_palette_get_flags(this.ptr,o)},p=u.hb_ot_color_palette_get_name_id(this.ptr,o);p!=Dt&&(f.nameId=p),e.push(f)}return i.stackRestore(t),e}hasColorLayers(){return!!u.hb_ot_color_has_layers(this.ptr)}getGlyphColorLayers(r){let e=[],t=i.stackSave(),n=i.stackAlloc(4),s=i.stackAlloc(1024),o=0,a=128;for(;a===128;){i.HEAPU32[n/4]=a,u.hb_ot_color_glyph_get_layers(this.ptr,r,o,n,s),a=i.HEAPU32[n/4];for(let l=0;l<a;l++){let _=s/4+l*2,f={glyph:i.HEAPU32[_]},p=i.HEAPU32[_+1];p!=65535&&(f.colorIndex=p),e.push(f)}o+=a}return i.stackRestore(t),e}hasColorPaint(){return!!u.hb_ot_color_has_paint(this.ptr)}glyphHasColorPaint(r){return!!u.hb_ot_color_glyph_has_paint(this.ptr,r)}hasColorPng(){return!!u.hb_ot_color_has_png(this.ptr)}},Pe=class{constructor(){this.funcPtrs=[],this.userDataPtrs=[],this.ptr=u.hb_draw_funcs_create();let r=this.ptr,e=this.funcPtrs,t=this.userDataPtrs;be.register(this,()=>{u.hb_draw_funcs_destroy(r);for(let n of e)i.removeFunction(n);for(let n of t)Ht(n)})}setMoveToFunc(r,e){let t=Y(e);this.userDataPtrs.push(t);let n=i.addFunction((s,o,a,l,_,f)=>{r(l,_,C(o),C(f))},"viiiffi");this.funcPtrs.push(n),u.hb_draw_funcs_set_move_to_func(this.ptr,n,t,0)}setLineToFunc(r,e){let t=Y(e);this.userDataPtrs.push(t);let n=i.addFunction((s,o,a,l,_,f)=>{r(l,_,C(o),C(f))},"viiiffi");this.funcPtrs.push(n),u.hb_draw_funcs_set_line_to_func(this.ptr,n,t,0)}setQuadraticToFunc(r,e){let t=Y(e);this.userDataPtrs.push(t);let n=i.addFunction((s,o,a,l,_,f,p,b)=>{r(l,_,f,p,C(o),C(b))},"viiiffffi");this.funcPtrs.push(n),u.hb_draw_funcs_set_quadratic_to_func(this.ptr,n,t,0)}setCubicToFunc(r,e){let t=Y(e);this.userDataPtrs.push(t);let n=i.addFunction((s,o,a,l,_,f,p,b,m,h)=>{r(l,_,f,p,b,m,C(o),C(h))},"viiiffffffi");this.funcPtrs.push(n),u.hb_draw_funcs_set_cubic_to_func(this.ptr,n,t,0)}setClosePathFunc(r,e){let t=Y(e);this.userDataPtrs.push(t);let n=i.addFunction((s,o,a,l)=>{r(C(o),C(l))},"viiii");this.funcPtrs.push(n),u.hb_draw_funcs_set_close_path_func(this.ptr,n,t,0)}},pa={HORIZONTAL_ASCENDER:N("hasc"),HORIZONTAL_DESCENDER:N("hdsc"),HORIZONTAL_LINE_GAP:N("hlgp"),HORIZONTAL_CLIPPING_ASCENT:N("hcla"),HORIZONTAL_CLIPPING_DESCENT:N("hcld"),VERTICAL_ASCENDER:N("vasc"),VERTICAL_DESCENDER:N("vdsc"),VERTICAL_LINE_GAP:N("vlgp"),HORIZONTAL_CARET_RISE:N("hcrs"),HORIZONTAL_CARET_RUN:N("hcrn"),HORIZONTAL_CARET_OFFSET:N("hcof"),VERTICAL_CARET_RISE:N("vcrs"),VERTICAL_CARET_RUN:N("vcrn"),VERTICAL_CARET_OFFSET:N("vcof"),X_HEIGHT:N("xhgt"),CAP_HEIGHT:N("cpht"),SUBSCRIPT_EM_X_SIZE:N("sbxs"),SUBSCRIPT_EM_Y_SIZE:N("sbys"),SUBSCRIPT_EM_X_OFFSET:N("sbxo"),SUBSCRIPT_EM_Y_OFFSET:N("sbyo"),SUPERSCRIPT_EM_X_SIZE:N("spxs"),SUPERSCRIPT_EM_Y_SIZE:N("spys"),SUPERSCRIPT_EM_X_OFFSET:N("spxo"),SUPERSCRIPT_EM_Y_OFFSET:N("spyo"),STRIKEOUT_SIZE:N("strs"),STRIKEOUT_OFFSET:N("stro"),UNDERLINE_SIZE:N("unds"),UNDERLINE_OFFSET:N("undo")};ot=class en{constructor(e){typeof e=="number"?this.ptr=u.hb_font_reference(e):(this.ptr=u.hb_font_create(e.ptr),this._face=e),Gt(this,u.hb_font_destroy)}get face(){return this._face||(this._face=new tn(u.hb_font_get_face(this.ptr))),this._face}subFont(){return new en(u.hb_font_create_sub_font(this.ptr))}hExtents(){let e=i.stackSave(),t=i.stackAlloc(48);u.hb_font_get_h_extents(this.ptr,t);let n={ascender:i.HEAP32[t/4],descender:i.HEAP32[t/4+1],lineGap:i.HEAP32[t/4+2]};return i.stackRestore(e),n}vExtents(){let e=i.stackSave(),t=i.stackAlloc(48);u.hb_font_get_v_extents(this.ptr,t);let n={ascender:i.HEAP32[t/4],descender:i.HEAP32[t/4+1],lineGap:i.HEAP32[t/4+2]};return i.stackRestore(e),n}glyphName(e){let t=i.stackSave(),n=256,s=i.stackAlloc(n);u.hb_font_glyph_to_string(this.ptr,e,s,n);let o=At(s);return i.stackRestore(t),o}drawGlyph(e,t,n){let s=Y(n);try{u.hb_font_draw_glyph(this.ptr,e,t.ptr,s)}finally{Ht(s)}}drawGlyphOrFail(e,t,n){let s=Y(n);try{return!!u.hb_font_draw_glyph_or_fail(this.ptr,e,t.ptr,s)}finally{Ht(s)}}paintGlyph(e,t,n,s=0,o={red:0,green:0,blue:0,alpha:255}){let a=Y(n);try{u.hb_font_paint_glyph(this.ptr,e,t.ptr,a,s,ge(o))}finally{Ht(a)}}paintGlyphOrFail(e,t,n,s=0,o={red:0,green:0,blue:0,alpha:255}){let a=Y(n);try{return!!u.hb_font_paint_glyph_or_fail(this.ptr,e,t.ptr,a,s,ge(o))}finally{Ht(a)}}getGlyphColorPng(e){let t=u.hb_ot_color_glyph_reference_png(this.ptr,e),n=u.hb_blob_get_length(t),s;if(n){let o=u.hb_blob_get_data(t,0);s=i.HEAPU8.slice(o,o+n)}return u.hb_blob_destroy(t),s}glyphToPath(e){let t=[];return this.drawGlyph(e,da(),t),t.join("")}glyphHAdvance(e){return u.hb_font_get_glyph_h_advance(this.ptr,e)}glyphVAdvance(e){return u.hb_font_get_glyph_v_advance(this.ptr,e)}glyphHOrigin(e){let t=i.stackSave(),n=i.stackAlloc(4),s=i.stackAlloc(4),o;return u.hb_font_get_glyph_h_origin(this.ptr,e,n,s)&&(o=[i.HEAP32[n/4],i.HEAP32[s/4]]),i.stackRestore(t),o}glyphVOrigin(e){let t=i.stackSave(),n=i.stackAlloc(4),s=i.stackAlloc(4),o;return u.hb_font_get_glyph_v_origin(this.ptr,e,n,s)&&(o=[i.HEAP32[n/4],i.HEAP32[s/4]]),i.stackRestore(t),o}glyphExtents(e){let t=i.stackSave(),n=i.stackAlloc(16),s;return u.hb_font_get_glyph_extents(this.ptr,e,n)&&(s={xBearing:i.HEAP32[n/4],yBearing:i.HEAP32[n/4+1],width:i.HEAP32[n/4+2],height:i.HEAP32[n/4+3]}),i.stackRestore(t),s}glyph(e,t=0){let n=i.stackSave(),s=i.stackAlloc(4),o;return u.hb_font_get_glyph(this.ptr,e,t,s)&&(o=i.HEAPU32[s/4]),i.stackRestore(n),o}nominalGlyph(e){let t=i.stackSave(),n=i.stackAlloc(4),s;return u.hb_font_get_nominal_glyph(this.ptr,e,n)&&(s=i.HEAPU32[n/4]),i.stackRestore(t),s}variationGlyph(e,t){let n=i.stackSave(),s=i.stackAlloc(4),o;return u.hb_font_get_variation_glyph(this.ptr,e,t,s)&&(o=i.HEAPU32[s/4]),i.stackRestore(n),o}glyphFromName(e){let t=i.stackSave(),n=i.stackAlloc(4),s=ra(e),o;return u.hb_font_get_glyph_from_name(this.ptr,s.ptr,s.length,n)&&(o=i.HEAPU32[n/4]),s.free(),i.stackRestore(t),o}glyphToJson(e){let t=[];return this.drawGlyph(e,ga(),t),t}setScale(e,t){u.hb_font_set_scale(this.ptr,e,t)}setVariations(e){let t=i.stackSave(),n=i.stackAlloc(8*e.length);e.forEach((s,o)=>{s.writeTo(n+o*8)}),u.hb_font_set_variations(this.ptr,n,e.length),i.stackRestore(t)}setFuncs(e){u.hb_font_set_funcs(this.ptr,e.ptr)}getLookupOpticalBound(e,t,n){return u.hb_ot_layout_lookup_get_optical_bound(this.ptr,e,t,n)}getLigatureCarets(e,t){let n=i.stackSave(),s=0,o=128,a=i.stackAlloc(4),l=i.stackAlloc(512),_=[];for(;o==128;){i.HEAPU32[a/4]=o,u.hb_ot_layout_get_ligature_carets(this.ptr,e,t,s,a,l),o=i.HEAPU32[a/4];let f=i.HEAP32.subarray(l/4,l/4+o);_.push(...Array.from(f)),s+=o}return i.stackRestore(n),_}getMetricPosition(e){let t=i.stackSave(),n=i.stackAlloc(4),s;return u.hb_ot_metrics_get_position(this.ptr,e,n)&&(s=i.HEAP32[n/4]),i.stackRestore(t),s}getMetricPositionWithFallback(e){let t=i.stackSave(),n=i.stackAlloc(4);u.hb_ot_metrics_get_position_with_fallback(this.ptr,e,n);let s=i.HEAP32[n/4];return i.stackRestore(t),s}getMetricVariation(e){return u.hb_ot_metrics_get_variation(this.ptr,e)}getMetricXVariation(e){return u.hb_ot_metrics_get_x_variation(this.ptr,e)}getMetricYVariation(e){return u.hb_ot_metrics_get_y_variation(this.ptr,e)}},ba=class{constructor(){this.ptr=u.hb_font_funcs_create(),Gt(this,u.hb_font_funcs_destroy)}setGlyphExtentsFunc(r){let e=i.addFunction((t,n,s,o,a)=>{let l=r(new ot(t),s);return l?(i.HEAP32[o/4]=l.xBearing,i.HEAP32[o/4+1]=l.yBearing,i.HEAP32[o/4+2]=l.width,i.HEAP32[o/4+3]=l.height,1):0},"ippipp");u.hb_font_funcs_set_glyph_extents_func(this.ptr,e,0,0)}setGlyphFromNameFunc(r){let e=i.addFunction((t,n,s,o,a,l)=>{let _=r(new ot(t),At(s,o));return _?(i.HEAPU32[a/4]=_,1):0},"ipppipp");u.hb_font_funcs_set_glyph_from_name_func(this.ptr,e,0,0)}setGlyphHAdvanceFunc(r){let e=i.addFunction((t,n,s,o)=>r(new ot(t),s),"ippip");u.hb_font_funcs_set_glyph_h_advance_func(this.ptr,e,0,0)}setGlyphVAdvanceFunc(r){let e=i.addFunction((t,n,s,o)=>r(new ot(t),s),"ippip");u.hb_font_funcs_set_glyph_v_advance_func(this.ptr,e,0,0)}setGlyphHOriginFunc(r){let e=i.addFunction((t,n,s,o,a,l)=>{let _=r(new ot(t),s);return _?(i.HEAP32[o/4]=_[0],i.HEAP32[a/4]=_[1],1):0},"ippippp");u.hb_font_funcs_set_glyph_h_origin_func(this.ptr,e,0,0)}setGlyphVOriginFunc(r){let e=i.addFunction((t,n,s,o,a,l)=>{let _=r(new ot(t),s);return _?(i.HEAP32[o/4]=_[0],i.HEAP32[a/4]=_[1],1):0},"ippippp");u.hb_font_funcs_set_glyph_v_origin_func(this.ptr,e,0,0)}setGlyphHKerningFunc(r){let e=i.addFunction((t,n,s,o,a)=>r(new ot(t),s,o),"ippiip");u.hb_font_funcs_set_glyph_h_kerning_func(this.ptr,e,0,0)}setGlyphNameFunc(r){let e=new TextEncoder,t=i.addFunction((n,s,o,a,l,_)=>{let f=r(new ot(n),o);return f?(e.encodeInto(f,i.HEAPU8.subarray(a,a+l)),1):0},"ippipip");u.hb_font_funcs_set_glyph_name_func(this.ptr,t,0,0)}setNominalGlyphFunc(r){let e=i.addFunction((t,n,s,o,a)=>{let l=r(new ot(t),s);return l?(i.HEAPU32[o/4]=l,1):0},"ippipp");u.hb_font_funcs_set_nominal_glyph_func(this.ptr,e,0,0)}setVariationGlyphFunc(r){let e=i.addFunction((t,n,s,o,a,l)=>{let _=r(new ot(t),s,o);return _?(i.HEAPU32[a/4]=_,1):0},"ippiipp");u.hb_font_funcs_set_variation_glyph_func(this.ptr,e,0,0)}setFontHExtentsFunc(r){let e=i.addFunction((t,n,s,o)=>{let a=r(new ot(t));return a?(i.HEAP32[s/4]=a.ascender,i.HEAP32[s/4+1]=a.descender,i.HEAP32[s/4+2]=a.lineGap,1):0},"ipppp");u.hb_font_funcs_set_font_h_extents_func(this.ptr,e,0,0)}setFontVExtentsFunc(r){let e=i.addFunction((t,n,s,o)=>{let a=r(new ot(t));return a?(i.HEAP32[s/4]=a.ascender,i.HEAP32[s/4+1]=a.descender,i.HEAP32[s/4+2]=a.lineGap,1):0},"ipppp");u.hb_font_funcs_set_font_v_extents_func(this.ptr,e,0,0)}};ma=class{constructor(){this.funcPtrs=[],this.userDataPtrs=[],this.ptr=u.hb_paint_funcs_create();let r=this.ptr,e=this.funcPtrs,t=this.userDataPtrs;be.register(this,()=>{u.hb_paint_funcs_destroy(r);for(let n of e)i.removeFunction(n);for(let n of t)Ht(n)})}setPushTransformFunc(r,e){let t=Y(e);this.userDataPtrs.push(t);let n=i.addFunction((s,o,a,l,_,f,p,b,m)=>r(a,l,_,f,p,b,C(o),C(m)),"viiffffffi");this.funcPtrs.push(n),u.hb_paint_funcs_set_push_transform_func(this.ptr,n,t,0)}setPopTransformFunc(r,e){let t=Y(e);this.userDataPtrs.push(t);let n=i.addFunction((s,o,a)=>r(C(o),C(a)),"viii");this.funcPtrs.push(n),u.hb_paint_funcs_set_pop_transform_func(this.ptr,n,t,0)}setColorGlyphFunc(r,e){let t=Y(e);this.userDataPtrs.push(t);let n=i.addFunction((s,o,a,l,_)=>r(a,new ot(l),C(o),C(_))?1:0,"iiiiii");this.funcPtrs.push(n),u.hb_paint_funcs_set_color_glyph_func(this.ptr,n,t,0)}setPushClipGlyphFunc(r,e){let t=Y(e);this.userDataPtrs.push(t);let n=i.addFunction((s,o,a,l,_)=>r(a,new ot(l),C(o),C(_)),"viiiii");this.funcPtrs.push(n),u.hb_paint_funcs_set_push_clip_glyph_func(this.ptr,n,t,0)}setPushClipRectangleFunc(r,e){let t=Y(e);this.userDataPtrs.push(t);let n=i.addFunction((s,o,a,l,_,f,p)=>r(a,l,_,f,C(o),C(p)),"viiffffi");this.funcPtrs.push(n),u.hb_paint_funcs_set_push_clip_rectangle_func(this.ptr,n,t,0)}setPopClipFunc(r,e){let t=Y(e);this.userDataPtrs.push(t);let n=i.addFunction((s,o,a)=>r(C(o),C(a)),"viii");this.funcPtrs.push(n),u.hb_paint_funcs_set_pop_clip_func(this.ptr,n,t,0)}setColorFunc(r,e){let t=Y(e);this.userDataPtrs.push(t);let n=i.addFunction((s,o,a,l,_)=>r(a!==0,ye(l),C(o),C(_)),"viiiii");this.funcPtrs.push(n),u.hb_paint_funcs_set_color_func(this.ptr,n,t,0)}setImageFunc(r,e){let t=Y(e);this.userDataPtrs.push(t);let n=i.addFunction((s,o,a,l,_,f,p,b,m)=>{let h=u.hb_blob_get_length(a),g=u.hb_blob_get_data(a,0),w=i.HEAPU8.subarray(g,g+h),A;return b&&(A={xBearing:i.HEAP32[b/4],yBearing:i.HEAP32[b/4+1],width:i.HEAP32[b/4+2],height:i.HEAP32[b/4+3]}),r(w,l,_,pt(f),A,C(o),C(m))?1:0},"iiiiiiifii");this.funcPtrs.push(n),u.hb_paint_funcs_set_image_func(this.ptr,n,t,0)}setLinearGradientFunc(r,e){let t=Y(e);this.userDataPtrs.push(t);let n=i.addFunction((s,o,a,l,_,f,p,b,m,h)=>r(de(a),l,_,f,p,b,m,C(o),C(h)),"viiiffffffi");this.funcPtrs.push(n),u.hb_paint_funcs_set_linear_gradient_func(this.ptr,n,t,0)}setRadialGradientFunc(r,e){let t=Y(e);this.userDataPtrs.push(t);let n=i.addFunction((s,o,a,l,_,f,p,b,m,h)=>r(de(a),l,_,f,p,b,m,C(o),C(h)),"viiiffffffi");this.funcPtrs.push(n),u.hb_paint_funcs_set_radial_gradient_func(this.ptr,n,t,0)}setSweepGradientFunc(r,e){let t=Y(e);this.userDataPtrs.push(t);let n=i.addFunction((s,o,a,l,_,f,p,b)=>r(de(a),l,_,f,p,C(o),C(b)),"viiiffffi");this.funcPtrs.push(n),u.hb_paint_funcs_set_sweep_gradient_func(this.ptr,n,t,0)}setPushGroupFunc(r,e){let t=Y(e);this.userDataPtrs.push(t);let n=i.addFunction((s,o,a)=>r(C(o),C(a)),"viii");this.funcPtrs.push(n),u.hb_paint_funcs_set_push_group_func(this.ptr,n,t,0)}setPopGroupFunc(r,e){let t=Y(e);this.userDataPtrs.push(t);let n=i.addFunction((s,o,a,l)=>r(a,C(o),C(l)),"viiii");this.funcPtrs.push(n),u.hb_paint_funcs_set_pop_group_func(this.ptr,n,t,0)}setCustomPaletteColorFunc(r,e){let t=Y(e);this.userDataPtrs.push(t);let n=i.addFunction((s,o,a,l,_)=>{let f=r(a,C(o),C(_));return f!==void 0?(i.HEAPU32[l/4]=ge(f),1):0},"iiiiii");this.funcPtrs.push(n),u.hb_paint_funcs_set_custom_palette_color_func(this.ptr,n,t,0)}},nn={INVALID:0,UNICODE:1,GLYPHS:2},rn={DEFAULT:0,NO_CLUSTERS:1,NO_POSITIONS:2,NO_GLYPH_NAMES:4,GLYPH_EXTENTS:8,GLYPH_FLAGS:16,NO_ADVANCES:32,DEFINED:63},ya={DEFAULT:0,BOT:1,EOT:2,PRESERVE_DEFAULT_IGNORABLES:4,REMOVE_DEFAULT_IGNORABLES:8,DO_NOT_INSERT_DOTTED_CIRCLE:16,VERIFY:32,PRODUCE_UNSAFE_TO_CONCAT:64,PRODUCE_SAFE_TO_INSERT_TATWEEL:128,DEFINED:255},Pa={INVALID:0,LTR:4,RTL:5,TTB:6,BTT:7},wa={MONOTONE_GRAPHEMES:0,MONOTONE_CHARACTERS:1,CHARACTERS:2,GRAPHEMES:3,DEFAULT:0},we={INVALID:0,TEXT:N("TEXT"),JSON:N("JSON")},Sa=class sn{constructor(e){e!=null?this.ptr=u.hb_buffer_reference(e):this.ptr=u.hb_buffer_create(),Gt(this,u.hb_buffer_destroy)}add(e,t){u.hb_buffer_add(this.ptr,e,t)}addText(e,t=0,n){let s=sa(e);u.hb_buffer_add_utf16(this.ptr,s.ptr,s.length,t,n??s.length),s.free()}addCodePoints(e,t=0,n){let s=u.malloc(e.length*4);i.HEAPU32.subarray(s/4,s/4+e.length).set(e),u.hb_buffer_add_codepoints(this.ptr,s,e.length,t,n??e.length),u.free(s)}guessSegmentProperties(){u.hb_buffer_guess_segment_properties(this.ptr)}setDirection(e){u.hb_buffer_set_direction(this.ptr,e)}setFlags(e){u.hb_buffer_set_flags(this.ptr,e)}setLanguage(e){let t=Ft(e);u.hb_buffer_set_language(this.ptr,u.hb_language_from_string(t.ptr,-1)),t.free()}setScript(e){let t=Ft(e);u.hb_buffer_set_script(this.ptr,u.hb_script_from_string(t.ptr,-1)),t.free()}setClusterLevel(e){u.hb_buffer_set_cluster_level(this.ptr,e)}reset(){u.hb_buffer_reset(this.ptr)}clearContents(){u.hb_buffer_clear_contents(this.ptr)}setMessageFunc(e){let t=(s,o,a,l)=>{let _=At(a);return e(new sn(s),new ot(o),_)?1:0},n=i.addFunction(t,"iiiii");u.hb_buffer_set_message_func(this.ptr,n,0,0)}getLength(){return u.hb_buffer_get_length(this.ptr)}getGlyphInfos(){let e=u.hb_buffer_get_glyph_infos(this.ptr,0),t=i.HEAPU32.subarray(e/4,e/4+this.getLength()*5),n=[];for(let s=0;s<t.length;s+=5)n.push({codepoint:t[s],cluster:t[s+2],flags:u.hb_glyph_info_get_glyph_flags(e+s*4)});return n}getGlyphPositions(){let e=u.hb_buffer_get_glyph_positions(this.ptr,0)/4;if(e==0)return[];let t=i.HEAP32.subarray(e,e+this.getLength()*5),n=[];for(let s=0;s<t.length;s+=5)n.push({xAdvance:t[s],yAdvance:t[s+1],xOffset:t[s+2],yOffset:t[s+3]});return n}getGlyphInfosAndPositions(){let e=u.hb_buffer_get_glyph_infos(this.ptr,0),t=i.HEAPU32.subarray(e/4,e/4+this.getLength()*5),n=u.hb_buffer_get_glyph_positions(this.ptr,0)/4,s=n?i.HEAP32.subarray(n,n+this.getLength()*5):void 0,o=[];for(let a=0;a<t.length;a+=5){let l={codepoint:t[a],cluster:t[a+2],flags:u.hb_glyph_info_get_glyph_flags(e+a*4)};for(let[_,f]of[["mask",1],["var1",3],["var2",4]])Object.defineProperty(l,_,{value:t[a+f],enumerable:!1});s&&(l.xAdvance=s[a],l.yAdvance=s[a+1],l.xOffset=s[a+2],l.yOffset=s[a+3],Object.defineProperty(l,"var",{value:s[a+4],enumerable:!1})),o.push(l)}return o}updateGlyphPositions(e){let t=u.hb_buffer_get_glyph_positions(this.ptr,0)/4;if(t==0)return;let n=Math.min(e.length,this.getLength()),s=i.HEAP32.subarray(t,t+n*5);for(let o=0;o<n;o++)s[o*5]=e[o].xAdvance,s[o*5+1]=e[o].yAdvance,s[o*5+2]=e[o].xOffset,s[o*5+3]=e[o].yOffset}serialize(e={}){let{font:t,start:n=0,end:s,format:o=we.TEXT,flags:a=0}=e,l=i.stackSave(),_=s??this.getLength(),f=32*1024,p=u.malloc(f),b=i.stackAlloc(4),m="";for(;n<_;){n+=u.hb_buffer_serialize(this.ptr,n,_,p,f,b,t?t.ptr:0,o,a);let h=i.HEAPU32[b/4];if(h==0)break;m+=At(p,h)}return u.free(p),i.stackRestore(l),m}getContentType(){return u.hb_buffer_get_content_type(this.ptr)}},Aa=class $t{static{this.GLOBAL_START=0}static{this.GLOBAL_END=4294967295}constructor(e,t=1,n=$t.GLOBAL_START,s=$t.GLOBAL_END){this.tag=e,this.value=t,this.start=n,this.end=s}static fromString(e){let t=i.stackSave(),n=i.stackAlloc(16),s=Ft(e),o;return u.hb_feature_from_string(s.ptr,-1,n)&&(o=new $t(pt(i.HEAPU32[n/4]),i.HEAPU32[n/4+1],i.HEAPU32[n/4+2],i.HEAPU32[n/4+3])),s.free(),i.stackRestore(t),o}toString(){let e=i.stackSave(),t=i.stackAlloc(16);this.writeTo(t);let n=128,s=i.stackAlloc(n);u.hb_feature_to_string(t,s,n);let o=At(s);return i.stackRestore(e),o}writeTo(e){i.HEAPU32[e/4]=N(this.tag),i.HEAPU32[e/4+1]=this.value,i.HEAPU32[e/4+2]=this.start,i.HEAPU32[e/4+3]=this.end}},va=class on{constructor(e,t=0){this.tag=e,this.value=t}static fromString(e){let t=i.stackSave(),n=i.stackAlloc(8),s=Ft(e),o;return u.hb_variation_from_string(s.ptr,-1,n)&&(o=new on(pt(i.HEAPU32[n/4]),i.HEAPF32[n/4+1])),s.free(),i.stackRestore(t),o}toString(){let e=i.stackSave(),t=i.stackAlloc(8);this.writeTo(t);let n=128,s=i.stackAlloc(n);u.hb_variation_to_string(t,s,n);let o=At(s);return i.stackRestore(e),o}writeTo(e){i.HEAPU32[e/4]=N(this.tag),i.HEAPF32[e/4+1]=this.value}},Bt={DONT_STOP:0,GSUB:1,GPOS:2};Ze=3,Ke=3;ea(await qe())});function $o(r,e){if(r.startsWith("/*",e)){let n=r.indexOf("*/",e+2);return n===-1?r.length:n+2}let t=r[e];if(t==='"'||t==="'"){for(let n=e+1;n<r.length;n++)if(r[n]==="\\")n++;else if(r[n]===t||r[n]===`
|
|
2
|
+
`)return n+1;return r.length}return e}function jt(r){return r.replace(/\\(?:([0-9a-fA-F]{1,6})\s?|(\n)|(.))/gs,(e,t,n,s)=>t?String.fromCodePoint(Number.parseInt(t,16)||65533):n?"":s??"")}function le(r){let e=/^(["'])((?:\\.|(?!\1).)*)\1$/s.exec(r);if(e)return jt(e[2]);if(/^(?:-?[_a-zA-Z -\u{10ffff}\\][-\w -\u{10ffff}\\]*\s*)+$/u.test(r))return jt(r).replace(/\s+/g," ").trim()}function je(r,e=0){let t=[];for(let n of Vo(r)){let s=n.text,o=s.length-s.trimStart().length,a=e+n.start+o,l=a+s.trim().length,_=/^\s*(url|local)\(\s*(?:(["'])((?:\\.|(?!\2).)*)\2|([^)]*?))\s*\)\s*(.*)$/is.exec(s);if(!_)continue;let f=_[3]!==void 0?jt(_[3]):jt(_[4].trim());if(_[1].toLowerCase()==="local"){t.push({kind:"local",name:le(f)??f,start:a,end:l});continue}let p=/format\(\s*["']?([^"')]+)["']?\s*\)/i.exec(_[5]??"");t.push({kind:"url",url:f,...p?{format:p[1].toLowerCase()}:{},start:a,end:l})}return t}function Vo(r){let e=[],t=0,n=0;for(let s=0;s<=r.length;){let o=s<r.length?$o(r,s):s;if(o!==s){s=o;continue}let a=r[s];a==="("?t++:a===")"?t--:(s===r.length||a===","&&t<=0)&&(e.push({text:r.slice(n,s),start:n}),n=s+1),s++}return e}var Yo={normal:400,bold:700};function We(r){let e=(r??"normal").trim().toLowerCase().split(/\s+/);if(e[0]==="auto")return[400,400];let t=e.map(n=>Yo[n]??Number(n));if(!(t.length>2||t.some(n=>!Number.isFinite(n)||n<1||n>1e3)))return fe(t)}var qo={"ultra-condensed":50,"extra-condensed":62.5,condensed:75,"semi-condensed":87.5,normal:100,"semi-expanded":112.5,expanded:125,"extra-expanded":150,"ultra-expanded":200};function _e(r){let e=(r??"normal").trim().toLowerCase().split(/\s+/);if(e[0]==="auto")return[100,100];let t=e.map(n=>qo[n]??(n.endsWith("%")?Number(n.slice(0,-1)):Number.NaN));if(!(t.length>2||t.some(n=>!Number.isFinite(n)||n<=0)))return fe(t)}function ue(r){let e=(r??"normal").trim().toLowerCase().split(/\s+/);if(e[0]==="normal"||e[0]==="auto")return{kind:"normal"};if(e[0]==="italic"&&e.length===1)return{kind:"italic"};if(e[0]!=="oblique")return;if(e.length===1)return{kind:"oblique",angle:[14,14]};let t=e.slice(1).map(n=>n.endsWith("deg")?Number(n.slice(0,-3)):Number.NaN);if(!(t.length>2||t.some(n=>!Number.isFinite(n)||n<-90||n>90)))return{kind:"oblique",angle:fe(t)}}function fe(r){let[e,t=e]=r;return e<=t?[e,t]:[t,e]}function $e(r,e){if(r.length<=1)return[...r];let t=he(r,n=>n.stretch,e.stretch,e.stretch<=100?"down":"up");return t=Zo(t,e.style),t=he(t,n=>n.weight,e.weight,Xo(e.weight)),t}function he(r,e,t,n){let s=r.filter(l=>e(l)[0]<=t&&t<=e(l)[1]);if(s.length)return s;let o=l=>{let[_,f]=e(l),p=f<t,b=p?t-f:_-t;return n==="down"?p?b:1e6+b:n==="up"?p?1e6+b:b:!p&&_<=500?b:p?1e6+b:2e6+b},a=Number.POSITIVE_INFINITY;for(let l of r)a=Math.min(a,o(l));return r.filter(l=>o(l)===a)}function Xo(r){return r<400?"down":r>500?"up":"weight"}function Zo(r,e){let t=e.kind==="italic"?["italic","oblique","normal"]:e.kind==="oblique"?["oblique","italic","normal"]:["normal","oblique","italic"];for(let n of t){let s=r.filter(a=>a.style.kind===n);if(!s.length)continue;if(n!=="oblique")return s;let o=e.kind==="oblique"?e.angle[0]:14;return he(s,a=>a.style.kind==="oblique"?a.style.angle:[0,0],o,o>=0?"up":"down")}return[...r]}var Wt=class{constructor(e){this.measurer=e}measurer;families=new Map;async add(e,t,n={}){let s=t instanceof Uint8Array?t:new Uint8Array(t),o=this.measurer.loadFont(s);if(n.page!==!1&&typeof FontFace<"u"&&typeof document<"u"){let _={};n.weight&&(_.weight=n.weight),n.stretch&&(_.stretch=n.stretch),n.style&&(_.style=n.style);let f=new FontFace(e,s.slice().buffer,_);await f.load(),document.fonts.add(f)}let a=e.toLowerCase(),l=this.families.get(a)??[];return l.push({family:e,font:o,weight:We(n.weight)??[400,400],stretch:_e(n.stretch)??[100,100],style:ue(n.style)??{kind:"normal"}}),this.families.set(a,l),o}use(e,t,n={}){let s=e.toLowerCase(),o=this.families.get(s)??[];o.unshift({family:e,font:t,weight:n.weight??[400,400],stretch:n.stretch??[100,100],style:n.style??{kind:"normal"}}),this.families.set(s,o)}lookup(e,t){for(let n of Ko(e)){let s=this.families.get(n.toLowerCase());if(!s?.length)continue;if(!t||s.length===1)return s[0].font;let o=Number.parseFloat(t.fontWeight),a=t.fontStretch.endsWith("%")?Number.parseFloat(t.fontStretch):_e(t.fontStretch)?.[0]??100;return $e(s,{weight:Number.isFinite(o)?o:400,stretch:a,style:ue(t.fontStyle)??{kind:"normal"}})[0].font}}faces(){return[...this.families.values()].flat()}fallback(){for(let e of this.families.values())if(e.length)return e[0].font}};function Ko(r){let e=[];for(let t of r.matchAll(/\s*("((?:[^"\\]|\\.)*)"|'((?:[^'\\]|\\.)*)'|[^,]+)\s*(?:,|$)/g)){let n=(t[2]??t[3]??t[1]??"").trim();n&&e.push(n)}return e}var Ve={chromium:{engine:"chromium",sizeUnit:.015625,cffSizeUnit:.015625,opticalSize:"css-size",advanceUnit:0,layoutUnit:.015625},firefox:{engine:"firefox",sizeUnit:.015625,cffSizeUnit:.016666666666666666,opticalSize:"set-size",advanceUnit:.016666666666666666,layoutUnit:.016666666666666666},webkit:{engine:"webkit",sizeUnit:.015625,cffSizeUnit:.015625,opticalSize:"none",advanceUnit:0,layoutUnit:.015625}};function Ye(r){return/\bFirefox\//.test(r)?"firefox":/\bAppleWebKit\//.test(r)&&!/\b(Chrome|Chromium|HeadlessChrome)\//.test(r)?"webkit":"chromium"}function pe(){let r=globalThis.navigator?.userAgent??"";return Ve[Ye(r)]}function Ct(r,e,t){let n=t?r.cffSizeUnit:r.sizeUnit;return n?Math.round(e/n)*n:e}function xt(r,e){if(!r.advanceUnit)return e;let t=1/r.advanceUnit;return Math.round(Math.fround(Math.fround(e)*t))/t}var _n;function Ha(){return _n??=ln().then(()=>cn),_n}var Se=class{constructor(e,t,n){this.data=t;this.index=n;this.face=new e.Face(new e.Blob(t),n),this.upem=this.face.upem,this.cff=this.face.referenceTable("CFF ")!==void 0||this.face.referenceTable("CFF2")!==void 0;let s={};for(let[o,a]of Object.entries(this.face.getAxisInfos()))s[o]={min:a.min,default:a.default,max:a.max};this.axes=s}data;index;upem;cff;axes;face;cmap;codepoints(){return this.cmap??=new Set(this.face.collectUnicodes()),this.cmap}instances=new Map;outlines=new Map;outline(e,t,n){let s=`${n}|${Object.entries(t).sort(([a],[l])=>a<l?-1:1).join(",")}`,o=this.outlines.get(s);if(!o){let a=this.upem*64,l=[],_=0,f=0,p=0,b=0,m=(h,g)=>{l.push([_/a,f/a,h/a,g/a]),_=h,f=g};for(let{type:h,values:g}of this.instance(e,t).glyphToJson(n))if(h==="M")[_,f,p,b]=[g[0],g[1],g[0],g[1]];else if(h==="L")m(g[0],g[1]);else if(h==="Q"||h==="C"){let[w,A]=[_,f];for(let v=1;v<=8;v++){let k=v/8,S=1-k;h==="Q"?m(S*S*w+2*S*k*g[0]+k*k*g[2],S*S*A+2*S*k*g[1]+k*k*g[3]):m(S**3*w+3*S*S*k*g[0]+3*S*k*k*g[2]+k**3*g[4],S**3*A+3*S*S*k*g[1]+3*S*k*k*g[3]+k**3*g[5])}}else h==="Z"&&m(p,b);o=l,this.outlines.set(s,o)}return o}instance(e,t){let n=Object.entries(t).sort(([a],[l])=>a<l?-1:1),s=n.map(([a,l])=>`${a}=${l}`).join(","),o=this.instances.get(s);return o||(o=new e.Font(this.face),o.setScale(this.upem*64,this.upem*64),n.length&&o.setVariations(n.map(([a,l])=>new e.Variation(a,l))),this.instances.set(s,o)),o}},Yt=class r{constructor(e,t){this.hb=e;this.model=t}hb;model;static async create(e=pe()){return new r(await Ha(),e)}loadFont(e,t=0){return new Se(this.hb,e instanceof Uint8Array?e:new Uint8Array(e),t)}metrics(e,t){let n=e.instance(this.hb,t),s=e.upem*64,o=this.hb.MetricsTag,a=l=>n.getMetricPositionWithFallback(l)/s;return{ascender:a(o.HORIZONTAL_ASCENDER),descender:a(o.HORIZONTAL_DESCENDER),underlineOffset:a(o.UNDERLINE_OFFSET),underlineThickness:a(o.UNDERLINE_SIZE),strikeoutOffset:a(o.STRIKEOUT_OFFSET),strikeoutThickness:a(o.STRIKEOUT_SIZE)}}verticalOrigin(e,t,n){let s=e.instance(this.hb,t),o=e.upem*64,a=s.hExtents().ascender/o,l=e.face.referenceTable("VORG");if(l&&l.length>=8){let b=new DataView(l.buffer,l.byteOffset,l.byteLength),m=b.getUint16(6),h=0,g=m-1;for(;h<=g;){let w=h+g>>1,A=b.getUint16(8+w*4);if(A===n)return{origin:b.getInt16(10+w*4)/e.upem,ascender:a};A<n?h=w+1:g=w-1}return{origin:b.getInt16(4)/e.upem,ascender:a}}let _=e.face.referenceTable("vhea"),f=e.face.referenceTable("vmtx"),p=s.glyphExtents(n);if(_&&f&&p){let b=new DataView(_.buffer,_.byteOffset,_.byteLength).getUint16(34),m=new DataView(f.buffer,f.byteOffset,f.byteLength),h=n<b?n*4+2:b*4+(n-b)*2;if(h+2<=f.byteLength)return{origin:m.getInt16(h)/e.upem+p.yBearing/o,ascender:a}}return{origin:a,ascender:a}}glyphBounds(e,t,n){let s=e.instance(this.hb,t).glyphExtents(n);if(!s||!s.width&&!s.height)return;let o=e.upem*64;return[s.xBearing/o,(s.yBearing+s.height)/o,(s.xBearing+s.width)/o,s.yBearing/o]}inkBetween(e,t,n,s,o){let a=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY;for(let[_,f,p,b]of e.outline(this.hb,t,n)){let m=Math.max(Math.min(f,b),s),h=Math.min(Math.max(f,b),o);if(m>h)continue;let g=f===b?[_,p]:[m,h].map(w=>_+(p-_)*(w-f)/(b-f));for(let w of g)a=Math.min(a,w),l=Math.max(l,w)}return a<=l?[a,l]:void 0}outline(e,t,n){let s=e.upem*64;return e.instance(this.hb,t).glyphToJson(n).map(o=>({type:o.type,values:o.values.map(a=>a/s)}))}shape(e,t,n,s={}){let{hb:o,model:a}=this,l=s.start??0,_=s.end??t.length,f=n.setSizePx??Ct(a,n.sizePx,e.cff),p={};for(let[R,x]of Object.entries(n.variations))R in e.axes&&(p[R]=x);n.opticalSizing&&"opsz"in e.axes&&!("opsz"in n.variations)&&(a.opticalSize==="css-size"?p.opsz=n.sizePx:a.opticalSize==="set-size"&&(p.opsz=f));let b=e.upem*64,m=e.instance(o,p),h=new o.Buffer;h.addText(t,l,_-l),h.guessSegmentProperties(),s.direction&&h.setDirection(o.Direction[s.direction==="ltr"?"LTR":s.direction==="rtl"?"RTL":"TTB"]),n.lang&&h.setLanguage(n.lang);let g=Object.entries(n.features).map(([R,x])=>new o.Feature(R,x));o.shape(m,h,g);let w=f/b,A=a.advanceUnit,v=R=>A?Math.round(R/A)*A:R,k=s.direction==="ttb",S=h.getGlyphPositions(),M=h.getGlyphInfos().map((R,x)=>{let F=S[x];return{id:R.codepoint,cluster:R.cluster,advance:v((k?-F.yAdvance:F.xAdvance)*w),offsetX:F.xOffset*w,offsetY:F.yOffset*w}});return new Ae(t,l,_,M,f,p,xt(a,n.letterSpacingPx),xt(a,n.wordSpacingPx))}},Ua=new Intl.Segmenter(void 0,{granularity:"grapheme"}),Ia=/[ ፡\u{10100}\u{10101}\u{1039f}\u{1091f}]/u,Ae=class{constructor(e,t,n,s,o,a,l,_){this.text=e;this.start=t;this.end=n;this.glyphs=s;this.setSize=o;this.variations=a;this.letterSpacing=l;this.wordSpacing=_;this.width=this.widthBetween(t,n)}text;start;end;glyphs;setSize;variations;letterSpacing;wordSpacing;width;widthBetween(e,t){let n=0;for(let s of this.glyphs)s.cluster>=e&&s.cluster<t&&(n+=s.advance);if(this.letterSpacing||this.wordSpacing)for(let{segment:s,index:o}of Ua.segment(this.text.slice(e,t)))n+=this.letterSpacing,Ia.test(s)&&(n+=this.wordSpacing);return n}};var Oa="hyphenation.txt";function un(r,e=Oa){let t=[],n=[],s=(a,l,_,f,p,b)=>n.push({severity:"error",code:f,message:p,fix:b,file:e,line:a,column:l,endLine:a,endColumn:l+_}),o;for(let[a,l]of r.split(/\r?\n/).entries()){let _=l.replace(/%.*$/,""),f=_.trim();if(!f)continue;let p=f.match(/^\[(.*)\]$/);if(p){let b=p[1].trim();if(!/^[A-Za-z]{1,8}(-[A-Za-z0-9]{1,8})*$/.test(b)){s(a+1,_.indexOf("[")+1,f.length,"bad-language-tag",`"${b}" is not a language tag`,"name a language as BCP 47 does: [en-GB], [grc]"),o=void 0;continue}o=b;continue}for(let b of _.matchAll(/\S+/g)){let m=b[0];if(/^-|-$|--/.test(m)){s(a+1,b.index+1,m.length,"bad-hyphenation",`"${m}": a hyphen must be between two letters`,"mark each place a word may break with one hyphen between its letters: hy-phen-ation");continue}t.push(o===void 0?{word:m}:{word:m,lang:o})}}return{exceptions:t,problems:n}}var qt={af:{name:"Afrikaans",left:1,right:2,url:()=>new URL("./patterns/af.wasm",import.meta.url)},as:{name:"Assamese",left:1,right:1,url:()=>new URL("./patterns/as.wasm",import.meta.url)},be:{name:"Belarusian",left:2,right:2,url:()=>new URL("./patterns/be.wasm",import.meta.url)},bg:{name:"Bulgarian",left:2,right:2,url:()=>new URL("./patterns/bg.wasm",import.meta.url)},bn:{name:"Bengali",left:1,right:1,url:()=>new URL("./patterns/bn.wasm",import.meta.url)},ca:{name:"Catalan",left:2,right:2,url:()=>new URL("./patterns/ca.wasm",import.meta.url)},cy:{name:"Welsh",left:2,right:3,url:()=>new URL("./patterns/cy.wasm",import.meta.url)},da:{name:"Danish",left:2,right:2,url:()=>new URL("./patterns/da.wasm",import.meta.url)},de:{name:"German, reformed spelling",left:2,right:2,url:()=>new URL("./patterns/de.wasm",import.meta.url)},"el-monoton":{name:"Modern Greek, monotonic spelling",left:1,right:1,url:()=>new URL("./patterns/el-monoton.wasm",import.meta.url)},"el-polyton":{name:"Modern Greek, polytonic spelling",left:1,right:1,url:()=>new URL("./patterns/el-polyton.wasm",import.meta.url)},"en-gb":{name:"English, British spelling",left:2,right:3,url:()=>new URL("./patterns/en-gb.wasm",import.meta.url)},"en-us":{name:"English, American spelling",left:2,right:3,url:()=>new URL("./patterns/en-us.wasm",import.meta.url)},eo:{name:"Esperanto",left:2,right:2,url:()=>new URL("./patterns/eo.wasm",import.meta.url)},es:{name:"Spanish",left:2,right:2,url:()=>new URL("./patterns/es.wasm",import.meta.url)},et:{name:"Estonian",left:2,right:3,url:()=>new URL("./patterns/et.wasm",import.meta.url)},eu:{name:"Basque",left:2,right:2,url:()=>new URL("./patterns/eu.wasm",import.meta.url)},"fi-x-school":{name:"Finnish, school hyphenation",left:1,right:1,url:()=>new URL("./patterns/fi-x-school.wasm",import.meta.url)},fr:{name:"French",left:2,right:2,url:()=>new URL("./patterns/fr.wasm",import.meta.url)},fur:{name:"Friulan",left:2,right:2,url:()=>new URL("./patterns/fur.wasm",import.meta.url)},ga:{name:"Irish",left:2,right:3,url:()=>new URL("./patterns/ga.wasm",import.meta.url)},gl:{name:"Galician",left:2,right:2,url:()=>new URL("./patterns/gl.wasm",import.meta.url)},gu:{name:"Gujarati",left:1,right:1,url:()=>new URL("./patterns/gu.wasm",import.meta.url)},hi:{name:"Hindi",left:1,right:1,url:()=>new URL("./patterns/hi.wasm",import.meta.url)},hr:{name:"Croatian",left:2,right:2,url:()=>new URL("./patterns/hr.wasm",import.meta.url)},hsb:{name:"Upper Sorbian",left:2,right:2,url:()=>new URL("./patterns/hsb.wasm",import.meta.url)},ia:{name:"Interlingua",left:2,right:2,url:()=>new URL("./patterns/ia.wasm",import.meta.url)},is:{name:"Icelandic",left:2,right:2,url:()=>new URL("./patterns/is.wasm",import.meta.url)},it:{name:"Italian",left:2,right:2,url:()=>new URL("./patterns/it.wasm",import.meta.url)},ka:{name:"Georgian",left:1,right:2,url:()=>new URL("./patterns/ka.wasm",import.meta.url)},kmr:{name:"Kurmanji, Northern Kurdish",left:2,right:2,url:()=>new URL("./patterns/kmr.wasm",import.meta.url)},kn:{name:"Kannada",left:1,right:1,url:()=>new URL("./patterns/kn.wasm",import.meta.url)},la:{name:"Latin",left:2,right:2,url:()=>new URL("./patterns/la.wasm",import.meta.url)},lt:{name:"Lithuanian",left:2,right:2,url:()=>new URL("./patterns/lt.wasm",import.meta.url)},ml:{name:"Malayalam",left:1,right:1,url:()=>new URL("./patterns/ml.wasm",import.meta.url)},"mn-cyrl":{name:"Mongolian, Cyrillic script",left:2,right:2,url:()=>new URL("./patterns/mn-cyrl.wasm",import.meta.url)},mr:{name:"Marathi",left:1,right:1,url:()=>new URL("./patterns/mr.wasm",import.meta.url)},nb:{name:"Norwegian Bokm\xE5l, bokm\xE5l, norsk bokm\xE5l",left:2,right:2,url:()=>new URL("./patterns/nb.wasm",import.meta.url)},nl:{name:"Dutch",left:2,right:2,url:()=>new URL("./patterns/nl.wasm",import.meta.url)},nn:{name:"Norwegian Nynorsk, nynorsk",left:2,right:2,url:()=>new URL("./patterns/nn.wasm",import.meta.url)},no:{name:"Norwegian, norsk",left:2,right:2,url:()=>new URL("./patterns/no.wasm",import.meta.url)},oc:{name:"Occitan",left:2,right:2,url:()=>new URL("./patterns/oc.wasm",import.meta.url)},or:{name:"Odia, Oriya",left:1,right:1,url:()=>new URL("./patterns/or.wasm",import.meta.url)},pa:{name:"Panjabi, Punjabi",left:1,right:1,url:()=>new URL("./patterns/pa.wasm",import.meta.url)},pi:{name:"P\u0101li",left:1,right:2,url:()=>new URL("./patterns/pi.wasm",import.meta.url)},pl:{name:"Polish",left:2,right:2,url:()=>new URL("./patterns/pl.wasm",import.meta.url)},pms:{name:"Piedmontese",left:2,right:2,url:()=>new URL("./patterns/pms.wasm",import.meta.url)},pt:{name:"Portuguese",left:2,right:3,url:()=>new URL("./patterns/pt.wasm",import.meta.url)},rm:{name:"Romansh",left:2,right:2,url:()=>new URL("./patterns/rm.wasm",import.meta.url)},ru:{name:"Russian",left:2,right:2,url:()=>new URL("./patterns/ru.wasm",import.meta.url)},"sh-cyrl":{name:"Serbocroatian, Cyrillic script",left:2,right:2,url:()=>new URL("./patterns/sh-cyrl.wasm",import.meta.url)},"sh-latn":{name:"Serbocroatian, Latin script",left:2,right:2,url:()=>new URL("./patterns/sh-latn.wasm",import.meta.url)},sk:{name:"Slovak",left:2,right:3,url:()=>new URL("./patterns/sk.wasm",import.meta.url)},sl:{name:"Slovenian",left:2,right:2,url:()=>new URL("./patterns/sl.wasm",import.meta.url)},sq:{name:"Albanian",left:2,right:2,url:()=>new URL("./patterns/sq.wasm",import.meta.url)},sv:{name:"Swedish",left:2,right:2,url:()=>new URL("./patterns/sv.wasm",import.meta.url)},ta:{name:"Tamil",left:1,right:1,url:()=>new URL("./patterns/ta.wasm",import.meta.url)},te:{name:"Telugu",left:1,right:1,url:()=>new URL("./patterns/te.wasm",import.meta.url)},th:{name:"Thai",left:2,right:3,url:()=>new URL("./patterns/th.wasm",import.meta.url)},tk:{name:"Turkmen",left:2,right:2,url:()=>new URL("./patterns/tk.wasm",import.meta.url)},tr:{name:"Turkish",left:2,right:2,url:()=>new URL("./patterns/tr.wasm",import.meta.url)},uk:{name:"Ukrainian",left:2,right:2,url:()=>new URL("./patterns/uk.wasm",import.meta.url)},"zh-latn-pinyin":{name:"Mandarin Chinese, pinyin transliteration",left:1,right:2,url:()=>new URL("./patterns/zh-latn-pinyin.wasm",import.meta.url)}};var Na={left:2,right:3},Ma=/[-‐-—]/,Ca=/\p{L}/u,Da=61,Ba="\xAD",Ga={en:"en-us","en-au":"en-gb","en-ie":"en-gb","en-in":"en-gb","en-nz":"en-gb","en-za":"en-gb",el:"el-monoton",mn:"mn-cyrl",sh:"sh-latn","sr-latn":"sh-latn","sr-cyrl":"sh-cyrl"};function Xt(r){let e=r.trim().toLowerCase().replaceAll("_","-");for(;e;){if(Object.hasOwn(qt,e))return e;let t=Ga[e];if(t)return t;let n=e.lastIndexOf("-");e=n<0?"":e.slice(0,n)}}function Zt(r){let e=Xt(r),t=e===void 0?void 0:qt[e];return t?{left:t.left,right:t.right}:Na}async function za(r){let e=r instanceof Response?await r.arrayBuffer():r,{instance:t}=await WebAssembly.instantiate(e),n=t.exports,s=new Set(String.fromCharCode(...new Uint16Array(n.mem.buffer,1664,n.lct.value))),o=45;return{alphabet:s,hyphenate(a,l){let _=new Uint16Array(n.mem.buffer,0,64);for(let h=0;h<a.length;h++)_[h]=a.charCodeAt(h);_[a.length]=0;let f=n.hyphenate(l.left,l.right,o),p=[];if(f<=0)return p;let b=new Uint16Array(n.mem.buffer,0,f),m=0;for(let h of b)h===o?p.push(m):m++;return p}}}var Kt=class{loader;engines;loading;exceptions=new Map;constructor(e={}){let t=e.patterns;this.loader=t?.loader??e.load??(n=>fetch(n)),this.engines=t?.engines??new Map,this.loading=t?.loading??new Map}async load(...e){let t=new Set(e.map(Xt).filter(n=>n!==void 0));await Promise.all([...t].map(n=>this.engine(n)))}async prepare(e){let t=[e.closest("[lang]")?.getAttribute("lang")??""];for(let n of e.querySelectorAll("[lang]"))t.push(n.getAttribute("lang")??"");await this.load(...t)}ready(e){let t=Xt(e);return t===void 0||this.engines.has(t)}engine(e){let t=this.loading.get(e);if(!t){let n=qt[e];t=Promise.resolve().then(()=>this.loader(n.url(),e)).then(za).then(s=>(this.engines.set(e,s),s)),t.catch(()=>this.loading.delete(e)),this.loading.set(e,t)}return t}addExceptions(e){for(let{word:t,lang:n}of e){let s=n?.toLowerCase()??"",o=this.exceptions.get(s);o||this.exceptions.set(s,o=new Map);let a=[],l="";for(let _ of t)_==="-"?a.push(l.length):l+=_.toLowerCase();o.set(l,a)}}exception(e,t){let n=t.toLowerCase();for(;;){let s=this.exceptions.get(n)?.get(e);if(s)return s;if(!n)return;let o=n.lastIndexOf("-");n=o<0?"":n.slice(0,o)}}points(e,t,n=Zt(t)){if(Ma.test(e))return[];let s=Xt(t),o;if(s!==void 0&&(o=this.engines.get(s),!o))throw new Error(`hyphenation: the patterns for ${t} (${s}) aren't loaded: await hyphenator.load('${t}')`);let a=h=>h.toLowerCase().length===1&&Ca.test(h),l=0;for(;l<e.length&&!a(e[l]);)l++;let _=l;for(;_<e.length&&a(e[_]);)_++;let f=_-l;if(f===0||f>Da||f<n.left+n.right)return[];let p=Array.from(e.slice(l,_),h=>h.toLowerCase()).join(""),b=o&&[...p].every(h=>o.alphabet.has(h))?o:void 0;return(this.exception(p,t)??b?.hyphenate(p,n)??[]).filter(h=>h>=n.left&&f-h>=n.right).map(h=>l+h)}hyphenateText(e,t,n=Zt(t)){return e.replace(/[^\s]+/g,s=>{let o=this.points(s,t,n);if(!o.length)return s;let a="",l=0;for(let _ of o)a+=s.slice(l,_)+Ba,l=_;return a+s.slice(l)})}};function yt(r){return{type:"box",width:r}}function vt(r,e=0,t=!1){return{type:"penalty",width:e,penalty:r,flagged:t}}function fn(r,e=50){return{type:"penalty",width:r,penalty:e,flagged:!0,auto:!0}}var ja={width:0,stretch:1,shrink:0,stretchOrder:1};function hn(r,e=ja){let t=r.at(-1)?.type==="glue"?r.slice(0,-1):r.slice();return t.push(vt(1e4),{type:"glue",...e},vt(-1e4)),t}var Tt=1e4,bt={VeryLoose:0,Loose:1,Decent:2,Tight:3},Ee={tolerance:200,pretolerance:100,linePenalty:10,adjDemerits:1e4,doubleHyphenDemerits:1e4,finalHyphenDemerits:5e3,emergencyStretch:0,looseness:0,leftSkip:{width:0,stretch:0,shrink:0},rightSkip:{width:0,stretch:0,shrink:0},hbadness:1e3},dt=1073741823,Ut=-1e4,ve=Number.MAX_SAFE_INTEGER;function Jt(r,e){if(r===0)return 0;if(e<=0)return Tt;let t;return r<=7230584?t=Math.floor(r*297/e):e>=1663497?t=Math.floor(r/Math.floor(e/297)):t=r,t>1290?Tt:Math.floor((t*t*t+131072)/262144)}var Qt=class{width;stretch;shrink;constructor(e){let t=e.length+1;this.width=new Float64Array(t),this.stretch=[new Float64Array(t),new Float64Array(t),new Float64Array(t),new Float64Array(t)],this.shrink=new Float64Array(t);for(let n=0;n<e.length;n++){let s=e[n];this.width[n+1]=this.width[n]+(s.type==="penalty"?0:s.width);for(let o=0;o<4;o++){let a=s.type==="glue"&&(s.stretchOrder??0)===o?s.stretch:0;this.stretch[o][n+1]=this.stretch[o][n]+a}this.shrink[n+1]=this.shrink[n]+(s.type==="glue"?s.shrink:0)}}};function pn(r){if(typeof r=="number")return{width:()=>r,lastSpecialLine:0};if(typeof r=="function")return{width:r,lastSpecialLine:1/0};if(r.length===0)throw new RangeError("measure: an array of line widths needs at least one");return{width:e=>r[Math.min(e,r.length)-1],lastSpecialLine:r.length-1}}function dn(r){let e=r.length,t=new Int32Array(e+1);t[e]=e;for(let n=e-1;n>=0;n--)t[n]=r[n].type==="box"?n:t[n+1];return t}function gn({leftSkip:r,rightSkip:e}){return{width:r.width+e.width,stretch:[0,1,2,3].map(t=>((r.stretchOrder??0)===t?r.stretch:0)+((e.stretchOrder??0)===t?e.stretch:0)),shrink:r.shrink+e.shrink}}function bn(r,e,t){let n={...Ee,...yn(t)},s=r.length-1,o=null,a=0;for(let _ of[...e.filter(f=>f<s),s])o={serial:++a,at:_,previous:o,fitness:bt.Decent,total:0};let l={start:0,line:a+1,fitness:bt.Decent,hyphenated:!1,total:0,passive:o};return Pn(r,new Qt(r),dn(r),l,pn(t.measure).width,n.hbadness,gn(n),"given",0,void 0)}function mn(r,e){let t={...Ee,...yn(e)},n=r.at(-1);if(n?.type!=="penalty"||n.penalty>Ut)throw new RangeError("breakLines: the paragraph must end with a forced break (see finishParagraph)");let s=r.length,o=s-1,a=new Qt(r),{width:l,lastSpecialLine:_}=pn(e.measure),f=t.looseness===0?_:ve,p=Number.isFinite(_)?l(_+1):0,b=e.trace?[]:void 0,m=dn(r),h=gn(t),g=0,w=t.pretolerance,A,v,k;for(w>=0?(A=!1,v=!1,k="first"):(w=t.tolerance,A=!0,v=t.emergencyStretch<=0,k="second");;){w>Tt&&(w=Tt),b?.push({type:"pass",pass:k});let S=0,M=[{start:0,line:1,fitness:bt.Decent,hyphenated:!1,total:0,passive:null}],R=(F,L,D)=>{if(L>=1e4)return;L<=Ut&&(L=Ut);let $=F===o,z=r[F],O=z.type==="penalty"?z.width:0,G=[dt,dt,dt,dt],q=[null,null,null,null],nt=[0,0,0,0],st=dt,gt=0,kt=0,Q=tt=>{let ct=Math.abs(t.adjDemerits);st=ct>=dt-st?dt-1:st+ct;for(let j=0;j<4;j++){if(G[j]<=st){let at={serial:++S,at:F,previous:q[j],fitness:j,total:G[j]},ut={start:m[F],line:nt[j]+1,fitness:j,hyphenated:D,total:G[j],passive:at};M.splice(tt++,0,ut),b?.push({type:"break",serial:at.serial,at:F,line:nt[j],fitness:j,hyphenated:D,total:G[j],previous:at.previous?.serial??0})}G[j]=dt}return st=dt,tt},J=0;for(;;){let tt=M[J],ct=tt?tt.line:ve;if(ct>gt){if(st<dt&&(gt!==f||!tt)&&(J=Q(J)),!tt)return;ct>f?(kt=p,gt=ve-1):(gt=ct,kt=l(ct))}if(!tt)return;let j=tt.start,at=a.width[F]-a.width[j]+h.width+O,ut=a.stretch[0][F]-a.stretch[0][j]+h.stretch[0]+g,It=a.stretch[1][F]-a.stretch[1][j]+h.stretch[1]!==0||a.stretch[2][F]-a.stretch[2][j]+h.stretch[2]!==0||a.stretch[3][F]-a.stretch[3][j]+h.stretch[3]!==0,d=a.shrink[F]-a.shrink[j]+h.shrink,y=kt-at,T,P;y>0?It?(T=0,P=bt.Decent):y>7230584&&ut<1663497?(T=Tt,P=bt.VeryLoose):(T=Jt(y,ut),P=T>99?bt.VeryLoose:T>12?bt.Loose:bt.Decent):(T=-y>d?Tt+1:Jt(-y,d),P=T>12?bt.Tight:bt.Decent);let U=!1,I;if(T>Tt||L===Ut){if(v&&st===dt&&M.length===1)U=!0;else if(T>w){M.splice(J,1);continue}I=!1}else{if(T>w){J++;continue}I=!0}let H=0;U||(H=t.linePenalty+T,H=Math.abs(H)>=1e4?1e8:H*H,L!==0&&(L>0?H+=L*L:L>Ut&&(H-=L*L)),D&&tt.hyphenated&&(H+=$?t.finalHyphenDemerits:t.doubleHyphenDemerits),Math.abs(P-tt.fitness)>1&&(H+=t.adjDemerits)),b?.push({type:"feasible",at:F,kind:$?"par":z.type==="penalty"?z.flagged?"discretionary":"penalty":"glue",via:tt.passive?.serial??0,badness:T,penalty:L,demerits:U?null:H}),H+=tt.total,H<=G[P]&&(G[P]=H,q[P]=tt.passive,nt[P]=ct,H<st&&(st=H)),I?J++:M.splice(J,1)}},x=!1;for(let F=0;F<s&&M.length>0;F++){let L=r[F];F===o?(R(F,L.type==="penalty"?L.penalty:Ut,!0),x=!0):L.type==="glue"?F>0&&r[F-1].type==="box"&&R(F,0,!1):L.type==="penalty"&&(A||!L.auto)&&R(F,L.penalty,L.flagged)}if(x&&M.length>0){let F=M[0];for(let D of M)D.total<F.total&&(F=D);let L=0;if(t.looseness!==0){let D=F.line;for(let $ of M){let z=$.line-D;z<L&&t.looseness<=z||z>L&&t.looseness>=z?(F=$,L=z):z===L&&$.total<F.total&&(F=$)}}if(L===t.looseness||v)return Pn(r,a,m,F,l,t.hbadness,h,k,L,b)}A?(g+=t.emergencyStretch,v=!0,k="emergency"):(w=t.tolerance,A=!0,v=t.emergencyStretch<=0,k="second")}}function yn(r){let e={};for(let[t,n]of Object.entries(r))n!==void 0&&t in Ee&&(e[t]=n);return e}function Pn(r,e,t,n,s,o,a,l,_,f){let p=[];for(let w=n.passive;w;w=w.previous)p.push(w);p.reverse();let b=[],m=0,h=0,g=r.length-1;for(let[w,A]of p.entries()){let v=A.at,k=r[v],S=k.type==="penalty"?k.width:0,M=e.width[v]-e.width[m]+a.width+S,R=e.stretch.map((q,nt)=>q[v]-q[m]+a.stretch[nt]),x=e.shrink[v]-e.shrink[m]+a.shrink,F=s(w+1),L=F-M,D=0,$=0,z=0,O=0,G=!1;if(L>0){$=R[3]!==0?3:R[2]!==0?2:R[1]!==0?1:0;let q=R[$];D=q!==0?L/q:0,$===0&&(z=Jt(L,q),G=z>o)}else L<0&&(x<-L?(O=-L-x,D=x>0?-1:0,z=1e6):(D=L/x,z=Jt(-L,x)));b.push({start:m,end:v,measure:F,width:M,stretch:R[0],shrink:x,ratio:D,glueOrder:$,badness:z,fitness:A.fitness,demerits:A.total-h,hyphenated:v!==g&&k.type==="penalty"&&k.flagged,overfull:O,underfull:G}),h=A.total,m=t[v]}return{breaks:p.map(w=>w.at),lines:b,demerits:n.total,pass:l,looseness:_,...f?{trace:f}:{}}}function te(r,e=""){let t=m=>r.getPropertyValue(m).trim(),n=Sn(t("font-size"))??16,s={},o={};t("font-kerning")==="none"&&(s.kern=0);let a=wn(t("letter-spacing"),n);if(a!==0)for(let m of["liga","clig","dlig","hlig","calt"])s[m]=0;for(let m of t("font-variant-ligatures").split(/\s+/)){let h=Wa[m];h&&Object.assign(s,h)}for(let m of t("font-variant-caps").split(/\s+/))for(let h of $a[m]??[])s[h]=1;for(let m of t("font-variant-numeric").split(/\s+/)){let h=Va[m];h&&(s[h]=1)}for(let m of t("font-variant-east-asian").split(/\s+/)){let h=Ya[m];h&&(s[h]=1)}let l=qa[t("font-variant-position")];l&&(s[l]=1),/\bhistorical-forms\b/.test(t("font-variant-alternates"))&&(s.hist=1);let _=Number.parseFloat(t("font-weight"));o.wght=Number.isFinite(_)?_:400;let f=t("font-stretch");o.wdth=f.endsWith("%")?Number.parseFloat(f):Xa[f]??100;let p=t("font-style");p==="italic"&&(o.ital=1);let b=/^oblique\s+(-?[\d.]+)deg$/.exec(p);return b?o.slnt=-Number.parseFloat(b[1]):p==="oblique"&&(o.slnt=-14),Object.assign(o,Re(t("font-variation-settings"),"variation")),Object.assign(s,Re(t("font-feature-settings"),"feature")),{sizePx:n,features:s,variations:o,opticalSizing:t("font-optical-sizing")!=="none",letterSpacingPx:a,wordSpacingPx:wn(t("word-spacing"),n),lang:e||"",direction:t("direction")==="rtl"?"rtl":"ltr"}}var Wa={none:{liga:0,clig:0,dlig:0,hlig:0,calt:0},"common-ligatures":{liga:1,clig:1},"no-common-ligatures":{liga:0,clig:0},"discretionary-ligatures":{dlig:1},"no-discretionary-ligatures":{dlig:0},"historical-ligatures":{hlig:1},"no-historical-ligatures":{hlig:0},contextual:{calt:1},"no-contextual":{calt:0}},$a={"small-caps":["smcp"],"all-small-caps":["smcp","c2sc"],"petite-caps":["pcap"],"all-petite-caps":["pcap","c2pc"],unicase:["unic"],"titling-caps":["titl"]},Va={"lining-nums":"lnum","oldstyle-nums":"onum","proportional-nums":"pnum","tabular-nums":"tnum","diagonal-fractions":"frac","stacked-fractions":"afrc",ordinal:"ordn","slashed-zero":"zero"},Ya={jis78:"jp78",jis83:"jp83",jis90:"jp90",jis04:"jp04",simplified:"smpl",traditional:"trad","full-width":"fwid","proportional-width":"pwid",ruby:"ruby"},qa={sub:"subs",super:"sups"},Xa={"ultra-condensed":50,"extra-condensed":62.5,condensed:75,"semi-condensed":87.5,normal:100,"semi-expanded":112.5,expanded:125,"extra-expanded":150,"ultra-expanded":200};function Sn(r){let e=/^(-?[\d.]+(?:e-?\d+)?)px$/.exec(r);return e?Number.parseFloat(e[1]):void 0}function wn(r,e){if(r===""||r==="normal")return 0;let t=Sn(r);if(t!==void 0)return t;let n=/^(-?[\d.]+)em$/.exec(r);return n?Number.parseFloat(n[1])*e:0}function Re(r,e){let t={};if(!r||r==="normal")return t;for(let n of r.split(",")){let s=/^\s*["']([\x20-\x7e]{4})["']\s*(on|off|-?[\d.]+)?\s*$/.exec(n);if(!s)continue;let o=s[2];t[s[1]]=o===void 0?e==="feature"?1:0:o==="on"?1:o==="off"?0:Number.parseFloat(o)}return t}var An=new WeakMap;function Fe(r,e,t,n,s){let o=s.replace(/\s+/g," ").trim().slice(0,200)||"Hamburgefonstiv",a=JSON.stringify([n.sizePx,n.variations,n.features,n.opticalSizing,n.letterSpacingPx,n.lang,o.length<200?o:""]),l=An.get(t);l||An.set(t,l=new Map);let _=l.get(a);if(_!==void 0)return _;let f=document.createElement("span");f.setAttribute("aria-hidden","true"),f.style.cssText="position:absolute;visibility:hidden;white-space:pre;word-spacing:0;text-indent:0;text-transform:none;text-rendering:geometricPrecision;left:0;top:0",f.textContent=o,e.append(f);let p=f.getBoundingClientRect().width;f.remove();let b={...n,wordSpacingPx:0};delete b.setSizePx;let m=n.sizePx*64,h=new Set([n.sizePx,Ct(r.model,n.sizePx,t.cff)]);for(let A=Math.floor(m)-1;A<=Math.ceil(m)+1;A++)h.add(A/64);let g=n.sizePx,w=Number.POSITIVE_INFINITY;for(let A of h){let v=Math.abs(r.shape(t,o,{...b,setSizePx:A}).width-p);v<w&&(g=A,w=v)}return l.set(a,g),g}var vn="0.333em plus 0.167em minus 0.111em";var Za={fil:1,fill:2,filll:3};function kn(r,e){let t=/^\s*(\S+)(?:\s+plus\s+(\S+))?(?:\s+minus\s+(\S+))?\s*$/.exec(r);if(!t)throw new Error(`not glue: ${JSON.stringify(r)}`);let n=Lt(t[1],e),s=0,o=0;if(t[2]){let l=/^(-?[\d.]+)(filll|fill|fil)$/.exec(t[2]);l?(s=Number.parseFloat(l[1]),o=Za[l[2]]):s=Lt(t[2],e)}let a=t[3]?Lt(t[3],e):0;return o?{width:n,stretch:s,shrink:a,stretchOrder:o}:{width:n,stretch:s,shrink:a}}var Ka={px:1,pt:4/3,pc:16,in:96,cm:96/2.54,mm:96/25.4,q:96/101.6};function Lt(r,e){let t=/^(-?(?:\d+\.?\d*|\.\d+)(?:e-?\d+)?)([a-z]*)$/i.exec(r.trim());if(!t)throw new Error(`not a length: ${JSON.stringify(r)}`);let n=Number.parseFloat(t[1]),s=t[2].toLowerCase();if(s==="em")return n*e;if(s===""&&n===0)return 0;let o=Ka[s];if(o===void 0)throw new Error(`unknown unit in ${JSON.stringify(r)}`);return n*o}var zt="\xAD",Ja="\uFFFC",Qa=/[\p{Pe}\p{Pf}"']/u,ti=/[-‐–]/,ei=/^[(<\[]?(?:[a-z][a-z0-9+.-]*:\/\/|www\.)/i;function ni(r,e,t){let n=r[e];return n!=="/"&&n!=="."||e+1>=t||!/[\p{L}\p{N}_~%-]/u.test(r[e+1])?!1:n==="."||r[e-1]!=="/"&&r[e+1]!=="/"}function Rn(r,e){let t=e.fonts.measurer,n=t.model,s=getComputedStyle(r),o=e.shape?.length?e.shape:void 0,a=o?o.map(d=>d.measure):e.measure??_i(r,s),l=d=>o?o[Math.min(d,o.length-1)]:{measure:a,left:0},_=ai(s),f=_.body==="justify",p=ci(_,Number.parseFloat(s.fontSize)),b=s.getPropertyValue("--pw-line-breaking").trim()==="browser",{segments:m,atoms:h,text:g,migrated:w}=gi(r,e),A=new Map(h.map(d=>[d.at,d])),v=d=>m.find(y=>d>=y.start&&d<y.end)??m.at(-1),k=(d,y)=>{let T=0;for(let P of m)P.end>d&&P.start<y&&(T+=P.run.widthBetween(Math.max(d,P.start),Math.min(y,P.end)));for(let P of h)P.at>=d&&P.at<y&&(T+=P.width);return T},S=d=>{let y=v(d);return y.run.widthBetween(d,d+1)-y.run.wordSpacing},M=[],R=[],x=(d,y)=>{M.push(d),R.push(y)},F=Lt(s.getPropertyValue("text-indent")||"0px",Number.parseFloat(s.fontSize));F&&x(yt(F),{kind:"box",start:0,end:0});let L=ne(s,"--pw-hyphen-penalty",50),D=ne(s,"--pw-ex-hyphen-penalty",50),$=(d,y)=>{if(!e.hyphenator)return[];let T=v(d);if(Te(T.computed)!=="auto")return[];let P=T.style.lang,U=Zt(P),I=ne(T.computed,"--pw-left-hyphen-min",U.left),H=ne(T.computed,"--pw-right-hyphen-min",U.right);return e.hyphenator.points(g.slice(d,y),P,{left:I,right:H}).map(rt=>d+rt)},z=b?si(g,m,h,ri(g,A).flatMap(([d,y])=>$(d,y))):void 0,O=0;for(;O<g.length;){if(g[O]===" "){let P=v(O);if(b){x({type:"glue",width:P.run.widthBetween(O,O+1),stretch:f?1:0,shrink:0},{kind:"space",at:O,segment:P,sentence:!1}),O++;continue}let U=P.computed.getPropertyValue("--pw-word-space").trim()||vn,I=P.computed.getPropertyValue("--pw-xspace").trim(),H=I!==""&&I!==U&&oi(g,O),rt=kn(H?I:U,P.style.sizePx);x({type:"glue",...rt,...f?{}:{stretch:0,shrink:0,stretchOrder:0}},{kind:"space",at:O,segment:P,sentence:H}),O++;continue}if(A.get(O)?.leader){x(vt(1e4),{kind:"leader",at:O}),x({type:"glue",width:0,stretch:1,shrink:0,stretchOrder:2},{kind:"leader",at:O}),O++;continue}if(A.has(O)){x(yt(A.get(O).width),{kind:"box",start:O,end:O+1}),O++;continue}let d=Fn(g,A,O),y=O;for(let P of $(O,d))x(yt(k(y,P)),{kind:"box",start:y,end:P}),x(fn(ee(t,v(P-1),g.slice(O,d),P-O,"-"),L),{kind:"break",at:P,hyphen:"-",auto:!0}),y=P;let T=ei.test(g.slice(O,d));for(let P=O;P<d;P++){let U=g[P];if(T&&P>y&&ni(g,P,d)&&(x(yt(k(y,P)),{kind:"box",start:y,end:P}),x(vt(D,ee(t,v(P-1),g.slice(O,d),P-O,""),!0),{kind:"break",at:P,hyphen:""}),y=P),!(U===zt&&Te(v(P).computed)==="none")&&(U===zt||ti.test(U)&&P>O&&P+1<d)){let I=P+1;x(yt(k(y,I)),{kind:"box",start:y,end:I}),U===zt?x(vt(L,ee(t,v(P),g.slice(O,d),I-O,"-"),!0),{kind:"break",at:I,hyphen:"-"}):x(vt(D,ee(t,v(P),g.slice(O,d),I-O,""),!0),{kind:"break",at:I,hyphen:""}),y=I}}y<d&&x(yt(k(y,d)),{kind:"box",start:y,end:d}),O=d}let G=[];if(z){let d=M.splice(0),y=R.splice(0);for(let[T,P]of d.entries()){let U=y[T];if(U.kind!=="box"||U.end<=U.start){x(P,U);continue}let I=U.start;for(let H of z)H<I||H>=U.end||H===I&&y[T-1]?.kind==="leader"||(H>I&&x(yt(k(I,H)),{kind:"box",start:I,end:H}),(H>I||M.at(-1)?.type==="box")&&x(vt(0),{kind:"break",at:H,hyphen:""}),G.push(M.length-1),I=H);x(I===U.start?P:yt(k(I,U.end)),{kind:"box",start:I,end:U.end})}}let q=hn(M,p.parFillSkip);for(;R.length>q.length-3;)R.pop();R.push({kind:"end"},{kind:"end"},{kind:"end"});let nt=z?bn(q,G,{measure:a,leftSkip:p.start,rightSkip:p.end}):(e.lineBreaker?.(r)??mn)(q,{measure:a,...li(s),leftSkip:p.start,rightSkip:p.end}),st=d=>f&&nt.lines[d].glueOrder===0,gt=new Map;for(let[d,y]of nt.lines.entries())for(let T=y.start;T<y.end;T++){let P=R[T],U=q[T];if(P.kind!=="leader"||U.type!=="glue")continue;let I=A.get(P.at);I.width=U.width+(y.ratio>0&&(U.stretchOrder??0)===y.glueOrder?y.ratio*U.stretch:0),gt.set(I,d)}let kt=(d,y,T)=>{let P=Z=>Math.ceil(Z*64-1e-6)/64,U=Z=>Math.round(Z*64)/64,I=0;for(let[Z,K]of d.spacing)d.sentences.has(Z)||(I=K);let H=(Z,K,ft="")=>{let mt=0,Et=m.filter(lt=>lt.end>Z&<.start<K);for(let[lt,ht]of Et.entries()){let Ot=g.slice(Math.max(Z,ht.start),Math.min(K,ht.end))+(lt===Et.length-1?ft:"");mt+=P(t.shape(ht.font,Ot,{...ht.style,wordSpacingPx:I}).width)}for(let lt of h)lt.at>=Z&<.at<K&&(mt+=lt.width);return mt},rt=[...d.sentences.keys()].sort((Z,K)=>Z-K),it=U(y),et=y,X=d.start;for(let[Z,K]of rt.entries()){it+=H(X,K);let ft=X;for(let[ht,Ot]of d.spacing)ht<X||ht>=K||(et+=k(ft,ht)+S(ht)+Ot,ft=ht+1);et+=k(ft,K)+d.sentences.get(K);let mt=Z===rt.length-1&&T!==void 0?U(T)-H(K+1,d.end,d.hyphen):U(et),Et=v(K),lt=t.shape(Et.font," ",{...Et.style,wordSpacingPx:0}).width;d.spacing.set(K,mt-it-lt-1/256),it=mt,X=K+1}return it+H(X,d.end,d.hyphen)},Q=[];for(let d of nt.lines){let y=g.length;for(let et=d.start;et<=d.end&&et<R.length;et++){let X=R[et];if(X.kind==="box"&&X.end>X.start){y=X.start;break}}Q.length===0&&(y=0);let T=R[d.end],P=T.kind==="space"||T.kind==="break"?T.at:g.length,U=d.hyphenated&&T.kind==="break"?T.hyphen:"",I=new Map,H=new Map;for(let et=d.start;et<d.end;et++){let X=R[et],Z=q[et];if(X.kind!=="space"||Z.type!=="glue")continue;let K=Z.stretchOrder??0,ft=Z.width;d.ratio>0&&K===d.glueOrder?ft+=d.ratio*Z.stretch:d.ratio<0&&(ft+=d.ratio*Z.shrink),X.sentence&&H.set(X.at,ft),I.set(X.at,ft-S(X.at))}let rt=q[d.end],it=T.kind==="break"&&rt.type==="penalty"?rt.width:0;Q.push({start:y,end:P,hyphen:U,auto:!!U&&T.kind==="break"&&!!T.auto,spacing:I,sentences:H,width:it})}let J=n.advanceUnit;if(!J)for(let d of Q){let y=[...d.spacing.keys()].filter(P=>!d.sentences.has(P)),T=0;for(let P of y)T+=d.spacing.get(P);for(let P of y)d.spacing.set(P,T/y.length)}for(let[d,y]of Q.entries()){let T=nt.lines[d];if(!J&&y.sentences.size){y.width=kt(y,d===0?F:0,st(d)?T.measure:void 0);continue}let P=y.width,U=y.start;for(let[H,rt]of y.spacing){P+=k(U,H)+S(H);let it=xt(n,rt);P+=it,y.spacing.set(H,it),U=H+1}P+=k(U,y.end)+(d===0?F:0);let I=st(d)&&y.spacing.size>0;if(J&&I){let H=Math.round((T.measure-P)/J),rt=[...y.spacing.keys()];for(let it=0;H!==0&&it<rt.length*4;it++){let et=rt[it%rt.length],X=Math.sign(H)*J;y.spacing.set(et,y.spacing.get(et)+X),P+=X,H-=Math.sign(H)}}y.width=P}let tt=Q.map(d=>{if(J)return Ai([...d.spacing.values()]);for(let[y,T]of d.spacing)if(!d.sentences.has(y))return T}),{elements:ct,hyphens:j}=bi(r,m,h,Q.map(d=>({start:d.start,end:d.end,hyphen:d.hyphen})),Q.map(d=>d.spacing),tt,l,F);if(di(r,s,[...gt.keys()]),n.engine==="firefox"&&J)for(let[d,y]of Q.entries()){let T=nt.lines[d],P=ct[d],U=Pi(P)+(d===0?F:0);if(!st(d)||!y.spacing.size){y.width=U;continue}let I=Math.round((T.measure-U)/J);y.width=U+(I?wi(P,I,J):0)}let at=s.direction==="rtl";for(let[d,y]of Q.entries()){let T=d===Q.length-1?_.last:_.body,P=T==="end"?1:T==="center"?.5:0,U=Math.max(0,nt.lines[d].measure-y.width)*P;if(!U||st(d)||[...gt.values()].includes(d))continue;let I=ct[d].style,H=at?"paddingRight":"paddingLeft";I.width=`${Number.parseFloat(I.width)-U}px`,I[H]=`${(Number.parseFloat(I[H])||0)+U}px`}let ut=d=>{let y=0;for(;y+1<Q.length&&Q[y+1].start<=d;)y++;return y},It=w.map(d=>({...d,line:ut(d.removed?Math.max(0,d.offset-1):d.offset)}));return{text:g,items:q,breaks:nt,migrated:It,lines:Q.map((d,y)=>({start:d.start,end:d.end,measure:nt.lines[y].measure,ratio:nt.lines[y].ratio,hyphenated:d.hyphen!=="",width:d.width,element:ct[y],...j[y]?{hyphen:{text:d.hyphen,offset:d.end,auto:d.auto,element:j[y]}}:{}}))}}function Fn(r,e,t){let n=t;for(;n<r.length&&r[n]!==" "&&!e.has(n);)n++;return n}function ri(r,e){let t=[];for(let n=0;n<r.length;){if(r[n]===" "||e.has(n)){n++;continue}let s=Fn(r,e,n);t.push([n,s]),n=s}return t}function si(r,e,t,n){let s=[],o=new Map,a=new Set,l=new Set(n);try{for(let h of e){let g=h.node.data,w=[],A="";for(let k=0;k<g.length;k++)k>0&&l.has(h.start+k)&&(A+=zt,w.push(-1)),A+=g[k],w.push(h.start+k);l.has(h.end)&&(A+=zt,w.push(-1)),o.set(h,w),A!==g&&(h.node.data=A,s.push(()=>{h.node.data=g}));let v=h.element;if(Te(h.computed)==="auto"&&!a.has(v)){a.add(v);let k=v.getAttribute("style");v.style.setProperty("hyphens","manual","important"),v.style.setProperty("-webkit-hyphens","manual","important"),s.push(()=>k===null?v.removeAttribute("style"):v.setAttribute("style",k))}}let _=[...e.map(h=>({at:h.start,segment:h})),...t.map(h=>({at:h.at,atom:h}))].sort((h,g)=>h.at-g.at),f=[],p,b=(h,g)=>{g.height<=0||(p&&g.top+g.bottom-p.top-p.bottom>Math.max(g.height,p.height)&&f.push(h),p=g)},m=document.createRange();for(let h of _){if("atom"in h){b(h.at,h.atom.element.getBoundingClientRect());continue}let g=h.segment;for(let[w,A]of o.get(g).entries()){if(A<0)continue;m.setStart(g.node,w),m.setEnd(g.node,w+1);let v=[...m.getClientRects()].at(-1);v&&b(A,v)}}return[...new Set(f.map(h=>r[h]===" "?h+1:h))].filter(h=>h<r.length)}finally{for(let _ of s.reverse())_()}}function ee(r,e,t,n,s){return r.shape(e.font,t.slice(0,n)+s,e.style).width-r.shape(e.font,t,e.style).widthBetween(0,n)}function oi(r,e){let t=e-1;for(;t>=0&&Qa.test(r[t]);)t--;if(t<0||!".?!:".includes(r[t]))return!1;let n=[...r.slice(Math.max(0,t-2),t)].at(-1)??"";return!/\p{Lu}/u.test(n)}function ai(r){let e=r.direction==="rtl",t=o=>{switch(o.replace(/^-(webkit|moz)-/,"")){case"left":return e?"end":"start";case"right":return e?"start":"end";case"end":return"end";case"center":return"center";case"justify":return"justify";case"start":return"start";default:return}},n=t(r.textAlign)??"start",s=t(r.getPropertyValue("text-align-last"))??(n==="justify"?"start":n);return{body:n,last:s}}var ii=2;function ci(r,e){let t={width:0,stretch:0,shrink:0},n={width:0,stretch:1,shrink:0,stretchOrder:1};switch(r.body){case"justify":return{start:t,end:t,...r.last==="justify"?{parFillSkip:t}:{}};case"start":return{start:t,end:{width:0,stretch:ii*e,shrink:0}};case"end":return{start:n,end:t,parFillSkip:t};case"center":return{start:n,end:n,parFillSkip:t}}}function li(r){let e=Number.parseFloat(r.fontSize),t={},n=[["--pw-tolerance","tolerance"],["--pw-pretolerance","pretolerance"],["--pw-line-penalty","linePenalty"],["--pw-adj-demerits","adjDemerits"],["--pw-double-hyphen-demerits","doubleHyphenDemerits"],["--pw-final-hyphen-demerits","finalHyphenDemerits"],["--pw-looseness","looseness"]];for(let[o,a]of n){let l=r.getPropertyValue(o).trim();l&&(t[a]=Number.parseInt(l,10))}let s=r.getPropertyValue("--pw-emergency-stretch").trim();return s&&(t.emergencyStretch=Lt(s,e)),t}function Te(r){let e=r.getPropertyValue("hyphens")||r.getPropertyValue("-webkit-hyphens");return e==="auto"||e==="none"?e:"manual"}function ne(r,e,t){let n=r.getPropertyValue(e).trim();return n?Number.parseInt(n,10):t}function _i(r,e){let t=r.getBoundingClientRect().width,n=s=>Number.parseFloat(e.getPropertyValue(s))||0;return t-n("padding-left")-n("padding-right")-n("border-left-width")-n("border-right-width")}var ui=new Set(["img","svg","math","video","canvas","iframe","object","embed","input","select","textarea","button","audio"]);function fi(r,e){if(ui.has(r.localName))return!0;let t=e.display;return/^inline[- ](block|flex|grid|table|flow-root)$/.test(t)||t==="inline math"||t==="math"}var hi="0.25em";function En(r){return r.getPropertyValue("--pw-leader").trim()!==""}function pi(r,e,t){let n=e.getPropertyValue("--pw-leader").trim(),s=/^(["'])(.*)\1$/.exec(n),o=s?s[2].replace(/\\(.)/g,"$1"):"",a=Number.parseFloat(e.fontSize),l=Lt(e.getPropertyValue("--pw-leader-space").trim()||hi,a);if(!o)return{text:o,space:l,textWidth:0,box:0,spaceWidth:0};let{fonts:_}=t,f=_.lookup(e.fontFamily,e)??_.fallback();if(!f)throw new Error(`no font registered for font-family ${e.fontFamily}`);let p=te(e,r.closest("[lang]")?.getAttribute("lang")??"");p.setSizePx=Fe(_.measurer,r,f,p,o);let b={...p,letterSpacingPx:0,wordSpacingPx:0},m=_.measurer.shape(f,o,b).width,h=_.measurer.shape(f," ",b).width;return{text:o,space:l,textWidth:m,box:m+2*l,spaceWidth:h}}function di(r,e,t){if(!t.length)return;let n=e.direction==="rtl";for(let _ of t){let f=_.element;f.replaceChildren(),f.style.cssText+=`;display:inline-block;box-sizing:border-box;width:${Math.max(0,_.width)}px;margin:0;padding:0;border:0;white-space:pre;text-indent:0;letter-spacing:0;font-kerning:none`}let s=r.getBoundingClientRect(),o=_=>Number.parseFloat(e.getPropertyValue(_))||0,a=n?s.right-o("border-right-width"):s.left+o("border-left-width"),l=t.map(_=>{let f=_.element.getBoundingClientRect();return n?a-f.right:f.left-a});for(let[_,f]of t.entries()){let p=f.leader;if(!p.text||p.box<=0)continue;let b=l[_],m=Math.ceil(b/p.box-1e-6),h=Math.floor((b+f.width)/p.box+1e-6)-m;if(h<=0)continue;let g=f.element;g.style.paddingInlineStart=`${m*p.box-b+p.space}px`,g.style.wordSpacing=`${p.box-p.textWidth-p.spaceWidth}px`,g.textContent=Array.from({length:h},()=>p.text).join(" ")}}function gi(r,e){let{fonts:t}=e,n=[],s=[],o=new Set,a=g=>{for(let w of[...g.childNodes]){if(w.nodeType===Node.TEXT_NODE){n.push(w);continue}if(w.nodeType!==Node.ELEMENT_NODE)continue;let A=w,v=getComputedStyle(A);if(v.display==="none")continue;let k=e.migrate?.(A,v);if(k&&s.push({element:A,piece:n.length,removed:k!=="keep"}),k==="remove")A.remove();else{if(k==="hold")continue;En(v)||fi(A,v)?(n.push(A),o.add(A)):a(A)}}};a(r);let l=!0;for(let g of n){if(!(g instanceof Text)){l=!1;continue}let w="";for(let A of g.data.replace(/[\t\n\r\f ]+/g," "))A===" "&&l||(w+=A,l=A===" ");g.data=w}for(let g=n.length-1;g>=0;g--){let w=n[g];if(!(w instanceof Text)||!w.data.endsWith(" ")&&w.data)break;w.data=w.data.trimEnd()}let _=n.map(g=>g instanceof Text?g.data:Ja).join(""),f=[],p=[],b=[],m=0;for(let g of n){let w=m;if(b.push(w),!(g instanceof Text)){m++;let R=getComputedStyle(g);if(En(R)){p.push({at:w,element:g,width:0,leader:pi(g,R,e)});continue}let x=(Number.parseFloat(R.marginLeft)||0)+(Number.parseFloat(R.marginRight)||0);p.push({at:w,element:g,width:g.getBoundingClientRect().width+x});continue}if(m+=g.data.length,w===m)continue;let A=g.parentElement,v=getComputedStyle(A),k=t.lookup(v.fontFamily,v)??(e.givenFontsOnly?void 0:t.fallback());if(!k)throw new Error(`no font registered for font-family ${v.fontFamily}`);let S=te(v,A.closest("[lang]")?.getAttribute("lang")??"");S.setSizePx=Fe(t.measurer,A,k,S,_.slice(w,m));let M=t.measurer.shape(k,_,S,{start:w,end:m});f.push({node:g,start:w,end:m,style:S,font:k,run:M,element:A,computed:v})}if(b.push(m),!f.length&&!p.length)throw new Error("a paragraph with no text");if(!f.length)throw new Error("a paragraph of atomic inlines alone: it needs text, for its font");let h=s.map(g=>({element:g.element,offset:b[g.piece],removed:g.removed}));return{segments:f,atoms:p,text:_,migrated:h}}function bi(r,e,t,n,s,o,a,l){let _=0;for(let S of r.querySelectorAll("*"))t.some(M=>M.element.contains(S))||S.setAttribute(re,String(_++));let f=S=>{let M=[],R=S.commonAncestorContainer;for(let F=R.nodeType===Node.ELEMENT_NODE?R:R.parentElement;F&&F!==r;F=F.parentElement)M.push(F);let x=S.extractContents();for(let F of M){let L=F.cloneNode(!1);L.append(x),x=L}return x},p=(S,M=0)=>{let R=document.createRange(),x=t.find(D=>D.at===S),F=e.find(D=>S>=D.start&&S<D.end),L=t.find(D=>D.at===S-1);if(x)R.setStartBefore(x.element),R.collapse(!0);else if(!F&&L)R.setStartAfter(L.element),R.collapse(!0);else{let D=F??e.at(-1),$=Math.min(S-D.start,D.node.length);R.setStart(D.node,$),R.setEnd(D.node,Math.min($+M,D.node.length))}return R},b=document.createRange();b.selectNodeContents(r),b.collapse(!0);let m=Math.max(e.at(-1).end,(t.at(-1)?.at??-1)+1),h=[b,...n.slice(1).map(S=>p(S.start)),p(m)],g=[...r.querySelectorAll("*")].filter(S=>!S.textContent&&!S.childElementCount),w=n.map(S=>p(S.end)),A=s.flatMap((S,M)=>[...S].filter(([,R])=>R!==o[M]).map(([R,x])=>({range:p(R,1),v:x})));for(let{range:S,v:M}of A){let R=document.createElement("span");R.className="pw-space",R.style.wordSpacing=`${M}px`,S.surroundContents(R)}let v=[],k=[];for(let[S,M]of n.entries()){let R=o[S],x=document.createRange();x.setStart(h[S].startContainer,h[S].startOffset),x.setEnd(w[S].startContainer,w[S].startOffset);let F=f(x),L=document.createElement("span");L.className="pw-line";let{measure:D,left:$}=a(S),z=S===0?D-l:D;if(L.style.cssText=`display:block;width:${z}px;white-space:pre;text-align:start;text-align-last:auto;text-indent:0;text-rendering:geometricPrecision;word-spacing:${R??0}px`+(S===0&&l>0?`;padding-left:${l}px`:"")+($+(S===0&&l<0?l:0)?`;margin-left:${$+(S===0&&l<0?l:0)}px`:""),L.append(F),M.hyphen){let G=document.createElement("span");G.className="pw-hyphen",G.setAttribute("aria-hidden","true"),G.textContent=M.hyphen;let q=Si(L);q?q.after(G):L.append(G),k[S]=G}let O=document.createRange();if(O.setStart(w[S].startContainer,w[S].startOffset),O.setEnd(h[S+1].startContainer,h[S+1].startOffset),!O.collapsed){let G=document.createElement("span");G.className="pw-break",G.append(f(O)),L.append(G)}v.push(L)}return v.at(-1)?.append(...g.filter(S=>r.contains(S)&&!S.closest(".pw-line"))),r.replaceChildren(...v),mi(v),{elements:v,hyphens:k}}var re="data-pw-piece";function mi(r){let e=new Map;for(let s of r)for(let o of s.querySelectorAll(`[${re}]`)){let a=o.getAttribute(re);o.removeAttribute(re);let l=e.get(a);l?l.push(o):e.set(a,[o])}let t=[];for(let s of e.values()){if(s.length<2)continue;let o=m=>!!m.closest(".pw-break");for(let m of s)o(m)&&!m.hasChildNodes()&&m.remove();s=s.filter(m=>m.parentNode);let a=s.filter(m=>!o(m)),l=a[0]??s[0],_=a.at(-1)??s.at(-1);for(let m of s)m!==l&&m.removeAttribute("id");let f=getComputedStyle(l);if((f.getPropertyValue("box-decoration-break")||f.getPropertyValue("-webkit-box-decoration-break"))==="clone")continue;let[p,b]=f.direction==="rtl"?["right","left"]:["left","right"];for(let m of s){let h=[...m!==l?[p]:[],...m!==_?[b]:[]];h.length&&t.push({piece:m,sides:h})}}let n=t.map(({piece:s,sides:o})=>{let a=getComputedStyle(s);return{piece:s,props:o.flatMap(l=>yi(l).filter(_=>(Number.parseFloat(a.getPropertyValue(_))||0)!==0))}});for(let{piece:s,props:o}of n)for(let a of o)s.style.setProperty(a,a.startsWith("--")?"0px":"0")}var yi=r=>[`padding-${r}`,`border-${r}-width`,`--pw-border-${r}-width`,`margin-${r}`,`border-top-${r}-radius`,`border-bottom-${r}-radius`];function Pi(r){let e=document.createRange();e.setStart(r,0);let t=r.querySelector(":scope > .pw-break");return t?e.setEndBefore(t):e.setEnd(r,r.childNodes.length),e.getBoundingClientRect().width}function wi(r,e,t){let n=[],s=document.createTreeWalker(r,NodeFilter.SHOW_TEXT);for(let _=s.nextNode();_;_=s.nextNode())if(!_.parentElement?.closest(".pw-break"))for(let f=0;f<_.length;f++)_.data[f]===" "&&n.push({node:_,offset:f});if(!n.length)return 0;let o=Number.parseFloat(r.style.wordSpacing)||0,a=Math.sign(e)*t,l=new Map;for(let _=0;_<Math.abs(e);_++)l.set(_%n.length,(l.get(_%n.length)??0)+a);for(let[_,f]of[...l].sort(([p],[b])=>b-p)){let{node:p,offset:b}=n[_],m=p.parentElement;if(m.classList.contains("pw-space")){m.style.wordSpacing=`${(Number.parseFloat(m.style.wordSpacing)||0)+f}px`;continue}let h=document.createRange();h.setStart(p,b),h.setEnd(p,b+1);let g=document.createElement("span");g.className="pw-space",g.style.wordSpacing=`${o+f}px`,h.surroundContents(g)}return e*t}function Si(r){let e=document.createTreeWalker(r,NodeFilter.SHOW_TEXT),t;for(let n=e.nextNode();n;n=e.nextNode())n.length&&(t=n);return t}function Ai(r){let e=new Map,t,n=0;for(let s of r){let o=(e.get(s)??0)+1;e.set(s,o),o>n&&(t=s,n=o)}return t}function vi(r){let e=getComputedStyle(r);return e.getPropertyValue("--pw-line-breaking").trim()==="knuth-plass"&&e.textAlign==="justify"&&e.display==="block"}function Tn(r){return[...r.querySelectorAll("p")].filter(vi)}var se=class{constructor(e){this.options=e;typeof ResizeObserver<"u"&&(this.#e=new ResizeObserver(t=>{for(let n of t){let s=n.target;Math.abs(n.contentRect.width-(this.#t.get(s)?.width??-1))>=.5&&this.justify(s)}}))}options;#t=new WeakMap;#e;justify(e){let t=this.#t.get(e);if(t)e.replaceChildren(t.content.cloneNode(!0));else{let s=document.createDocumentFragment();for(let o of e.childNodes)s.append(o.cloneNode(!0));t={content:s,width:-1},this.#t.set(e,t)}let n=e.getBoundingClientRect().width;if(t.width=n,n<=0)return!1;try{return Rn(e,{fonts:this.options.fonts,givenFontsOnly:!0,...this.options.hyphenator?{hyphenator:this.options.hyphenator}:{}}),e.classList.add("pw-justified"),!0}catch{return e.replaceChildren(t.content.cloneNode(!0)),e.classList.remove("pw-justified"),!1}}observe(e){for(let t of e)this.justify(t),this.#e?.observe(t)}disconnect(){this.#e?.disconnect()}};async function Ln(r,e){let t=new Kt,[n]=await Promise.all([fetch(e).catch(()=>{}),t.prepare(r).catch(()=>{})]);return n?.ok&&t.addExceptions(un(await n.text()).exceptions),t}function xn(r=document){let e=[],t=(n,s)=>{for(let o of n)if(o instanceof CSSFontFaceRule){let a=f=>o.style.getPropertyValue(f).trim(),l=le(a("font-family")),_=je(a("src"))?.find(f=>f.kind==="url");if(!l||!_||_.kind!=="url")continue;e.push({family:l,url:new URL(_.url,s).href,...a("font-weight")?{weight:a("font-weight")}:{},...a("font-style")?{style:a("font-style")}:{},...a("font-stretch")?{stretch:a("font-stretch")}:{}})}else"cssRules"in o&&t(o.cssRules,s)};for(let n of r.styleSheets){let s;try{s=n.cssRules}catch{continue}t(s,n.href??r.baseURI)}return e}async function Hn(){let r=Tn(document);if(!r.length)return;await document.fonts.ready;let e=new Wt(await Yt.create());await Promise.all(xn().map(async n=>{let s=await fetch(n.url);s.ok&&await e.add(n.family,new Uint8Array(await s.arrayBuffer()),{...n.weight?{weight:n.weight}:{},...n.style?{style:n.style}:{},...n.stretch?{stretch:n.stretch}:{},page:!1})}));let t=await Ln(document.documentElement,new URL("hyphenation.txt",import.meta.url));new se({fonts:e,hyphenator:t}).observe(r),document.documentElement.dataset.pwJustified=String(r.filter(n=>n.classList.contains("pw-justified")).length)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{Hn()},{once:!0}):Hn();
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The web edition's pages: the rendered book as a static site
|
|
3
|
+
* (https://plans.inkylabs.com/pulpweaver#how-a-build-runs), a page for each
|
|
4
|
+
* chapter's file with a contents page as `index.html`, or the whole book on
|
|
5
|
+
* `index.html` (`split = "none"`). The contents list each file by its own
|
|
6
|
+
* title (its `` ``` =meta `` block's) or its first heading, and an index (`::: index`) that isn't one by its own. Each page is the renderer's own elements
|
|
7
|
+
* for its chapters, in the site's frame: the book's title linking home, and
|
|
8
|
+
* links to the chapters either side. A link to a label on another page is
|
|
9
|
+
* made to point there.
|
|
10
|
+
*/
|
|
11
|
+
import type { Element, Root } from 'hast';
|
|
12
|
+
/** The words the site's frame shows, in the book's language. */
|
|
13
|
+
export interface SiteLabels {
|
|
14
|
+
/** The contents' heading, and the link to the contents page. */
|
|
15
|
+
contents: string;
|
|
16
|
+
/** Before the title of the chapter before. */
|
|
17
|
+
previous: string;
|
|
18
|
+
/** Before the title of the chapter after. */
|
|
19
|
+
next: string;
|
|
20
|
+
/** The chapters' navigation, for assistive technology. */
|
|
21
|
+
chapters: string;
|
|
22
|
+
}
|
|
23
|
+
export declare const DEFAULT_SITE_LABELS: SiteLabels;
|
|
24
|
+
export interface SiteOptions {
|
|
25
|
+
/** The book's title. */
|
|
26
|
+
title: string;
|
|
27
|
+
/** The book's language, for `<html lang>`. */
|
|
28
|
+
language: string;
|
|
29
|
+
/** A page per chapter's file, or one page. */
|
|
30
|
+
split: 'chapter' | 'none';
|
|
31
|
+
labels?: Partial<SiteLabels>;
|
|
32
|
+
}
|
|
33
|
+
/** A page of the site. */
|
|
34
|
+
export interface SitePage {
|
|
35
|
+
/** Its path in the site. */
|
|
36
|
+
file: string;
|
|
37
|
+
/** Its `<title>`. */
|
|
38
|
+
title: string;
|
|
39
|
+
/** Its `<body>`'s one element, `div.pw-site`. */
|
|
40
|
+
body: Element;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The site's pages, from the rendered book (`div.pw-document`, as the
|
|
44
|
+
* renderer and `webHast` left it). Its elements move into the pages, so the
|
|
45
|
+
* renderer's maps from them to nodes and positions still hold.
|
|
46
|
+
*/
|
|
47
|
+
export declare function sitePages(tree: Root, options: SiteOptions): SitePage[];
|
|
48
|
+
/** A page as an HTML document, with the site's stylesheet and scripts. */
|
|
49
|
+
export declare function pageHtml(page: SitePage, options: {
|
|
50
|
+
language: string;
|
|
51
|
+
stylesheet: string;
|
|
52
|
+
scripts?: readonly string[];
|
|
53
|
+
}): string;
|
package/dist/web/site.js
ADDED
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { h } from 'hastscript';
|
|
2
|
+
import { toHtml } from 'hast-util-to-html';
|
|
3
|
+
import { hasClass, textOf, walk } from './hast.js';
|
|
4
|
+
export const DEFAULT_SITE_LABELS = { contents: 'Contents', previous: 'Previous', next: 'Next', chapters: 'Chapters' };
|
|
5
|
+
/**
|
|
6
|
+
* The site's pages, from the rendered book (`div.pw-document`, as the
|
|
7
|
+
* renderer and `webHast` left it). Its elements move into the pages, so the
|
|
8
|
+
* renderer's maps from them to nodes and positions still hold.
|
|
9
|
+
*/
|
|
10
|
+
export function sitePages(tree, options) {
|
|
11
|
+
const labels = { ...DEFAULT_SITE_LABELS, ...options.labels };
|
|
12
|
+
const document = tree.children.find((c) => c.type === 'element');
|
|
13
|
+
if (!document || !hasClass(document, 'pw-document'))
|
|
14
|
+
throw new Error('sitePages: the tree is not a rendered book (div.pw-document)');
|
|
15
|
+
const sources = document.children.filter((c) => c.type === 'element' && hasClass(c, 'pw-source'));
|
|
16
|
+
const used = new Set(['index']);
|
|
17
|
+
const chapters = sources.map((source, n) => {
|
|
18
|
+
const path = String(source.properties['dataPwFile'] ?? `chapter-${n + 1}`);
|
|
19
|
+
const heading = firstHeading(source);
|
|
20
|
+
return {
|
|
21
|
+
source,
|
|
22
|
+
file: `${unique(slug(path), used)}.html`,
|
|
23
|
+
title: String(source.properties['dataPwTitle'] ?? '') || (heading ? textOf(heading.element).replace(/\s+/g, ' ').trim() : '') || basename(path),
|
|
24
|
+
...(heading ? { heading } : {}),
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
const frame = (main, home, pager) => h('div.pw-site', [
|
|
28
|
+
h('header.pw-site-header', [home ? h('span.pw-site-title', options.title) : h('a.pw-site-title', { href: 'index.html' }, options.title)]),
|
|
29
|
+
h('main.pw-site-main', main),
|
|
30
|
+
...(pager ? [pager] : []),
|
|
31
|
+
]);
|
|
32
|
+
const book = (children) => ({ ...document, children });
|
|
33
|
+
let pages;
|
|
34
|
+
if (options.split === 'none') {
|
|
35
|
+
// Its contents link to each chapter's heading, by its id once ids are unique on the page.
|
|
36
|
+
const contents = h('nav.pw-site-contents');
|
|
37
|
+
pages = [{ file: 'index.html', title: options.title, body: frame([...(chapters.length > 1 ? [contents] : []), book(sources)], true) }];
|
|
38
|
+
uniqueIds(pages);
|
|
39
|
+
Object.assign(contents, contentsNav(chapters, labels, (c) => {
|
|
40
|
+
const id = c.heading && headingId(c.heading);
|
|
41
|
+
return id === undefined ? undefined : `#${id}`;
|
|
42
|
+
}, true));
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
const index = {
|
|
46
|
+
file: 'index.html',
|
|
47
|
+
title: options.title,
|
|
48
|
+
body: frame([h('h1.pw-site-book-title', options.title), contentsNav(chapters, labels, (c) => c.file, false)], true),
|
|
49
|
+
};
|
|
50
|
+
pages = [index, ...chapters.map((chapter, n) => {
|
|
51
|
+
const before = chapters[n - 1];
|
|
52
|
+
const after = chapters[n + 1];
|
|
53
|
+
const pager = h('nav.pw-site-pager', { ariaLabel: labels.chapters }, [
|
|
54
|
+
before ? pagerLink(before, 'prev', labels.previous) : h('a', { href: 'index.html', rel: 'prev' }, [h('span.pw-site-pager-label', labels.previous), h('span', labels.contents)]),
|
|
55
|
+
...(after ? [pagerLink(after, 'next', labels.next)] : []),
|
|
56
|
+
]);
|
|
57
|
+
return { file: chapter.file, title: `${chapter.title} – ${options.title}`, body: frame([book([chapter.source])], false, pager) };
|
|
58
|
+
})];
|
|
59
|
+
uniqueIds(pages);
|
|
60
|
+
}
|
|
61
|
+
linkAcrossPages(pages);
|
|
62
|
+
return pages;
|
|
63
|
+
}
|
|
64
|
+
/** A page as an HTML document, with the site's stylesheet and scripts. */
|
|
65
|
+
export function pageHtml(page, options) {
|
|
66
|
+
const head = h('head', [
|
|
67
|
+
h('meta', { charSet: 'utf-8' }),
|
|
68
|
+
h('meta', { name: 'viewport', content: 'width=device-width, initial-scale=1' }),
|
|
69
|
+
h('meta', { name: 'color-scheme', content: 'light dark' }),
|
|
70
|
+
h('title', page.title),
|
|
71
|
+
h('link', { rel: 'stylesheet', href: options.stylesheet }),
|
|
72
|
+
...(options.scripts ?? []).map((src) => h('script', { type: 'module', src })),
|
|
73
|
+
]);
|
|
74
|
+
const root = { type: 'root', children: [{ type: 'doctype' }, h('html', { lang: options.language }, [head, h('body', [page.body])])] };
|
|
75
|
+
return `${toHtml(root, { allowDangerousHtml: true })}\n`;
|
|
76
|
+
}
|
|
77
|
+
function contentsNav(chapters, labels, href, onePage) {
|
|
78
|
+
return h('nav.pw-site-contents', { ariaLabelledBy: 'pw-site-contents' }, [
|
|
79
|
+
h('h2#pw-site-contents', labels.contents),
|
|
80
|
+
h('ol', chapters.flatMap((c) => {
|
|
81
|
+
const to = href(c);
|
|
82
|
+
return [
|
|
83
|
+
h('li', to === undefined ? c.title : h('a', { href: to }, c.title)),
|
|
84
|
+
// An index that isn't the file's first heading is listed after it.
|
|
85
|
+
...indexSections(c.source, c.heading?.section).map((i) => h('li', h('a', { href: `${onePage ? '' : c.file}#${i.id}` }, i.title))),
|
|
86
|
+
];
|
|
87
|
+
})),
|
|
88
|
+
]);
|
|
89
|
+
}
|
|
90
|
+
function pagerLink(chapter, rel, label) {
|
|
91
|
+
return h('a', { href: chapter.file, rel }, [h('span.pw-site-pager-label', label), h('span', chapter.title)]);
|
|
92
|
+
}
|
|
93
|
+
/** The first heading in a chapter's file, and the section it heads. */
|
|
94
|
+
function firstHeading(source) {
|
|
95
|
+
let found;
|
|
96
|
+
walk(source, (el, path) => {
|
|
97
|
+
if (found)
|
|
98
|
+
return false;
|
|
99
|
+
if (/^h[1-6]$/.test(el.tagName)) {
|
|
100
|
+
const parent = path.at(-1);
|
|
101
|
+
found = { element: el, ...(parent?.tagName === 'section' ? { section: parent } : {}) };
|
|
102
|
+
return false;
|
|
103
|
+
}
|
|
104
|
+
return true;
|
|
105
|
+
});
|
|
106
|
+
return found;
|
|
107
|
+
}
|
|
108
|
+
/** The sections that hold an index, by their headings, but `first`. */
|
|
109
|
+
function indexSections(source, first) {
|
|
110
|
+
const out = [];
|
|
111
|
+
walk(source, (el) => {
|
|
112
|
+
if (el.tagName !== 'section' || el === first)
|
|
113
|
+
return true;
|
|
114
|
+
const heading = el.children.find((c) => c.type === 'element' && /^h[1-6]$/.test(c.tagName));
|
|
115
|
+
const index = el.children.some((c) => c.type === 'element' && hasClass(c, 'pw-index'));
|
|
116
|
+
const id = el.properties['id'];
|
|
117
|
+
if (index && heading && typeof id === 'string')
|
|
118
|
+
out.push({ title: textOf(heading).replace(/\s+/g, ' ').trim(), id });
|
|
119
|
+
return true;
|
|
120
|
+
});
|
|
121
|
+
return out;
|
|
122
|
+
}
|
|
123
|
+
function headingId(heading) {
|
|
124
|
+
const id = heading.element.properties['id'] ?? heading.section?.properties['id'];
|
|
125
|
+
return typeof id === 'string' ? id : undefined;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Ids are unique on each page: a label repeated by a later chapter's file
|
|
129
|
+
* (Djot's ids for headings are unique only in their file) is numbered, and
|
|
130
|
+
* links to it from its own file follow.
|
|
131
|
+
*/
|
|
132
|
+
function uniqueIds(pages) {
|
|
133
|
+
for (const page of pages) {
|
|
134
|
+
const seen = new Set();
|
|
135
|
+
const sources = [];
|
|
136
|
+
// The frame's ids first, then each chapter's file's in turn.
|
|
137
|
+
walk(page.body, (el) => {
|
|
138
|
+
if (hasClass(el, 'pw-source')) {
|
|
139
|
+
sources.push(el);
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
const id = el.properties['id'];
|
|
143
|
+
if (typeof id === 'string')
|
|
144
|
+
seen.add(id);
|
|
145
|
+
return true;
|
|
146
|
+
});
|
|
147
|
+
for (const source of sources) {
|
|
148
|
+
const renamed = new Map();
|
|
149
|
+
walk(source, (el) => {
|
|
150
|
+
const id = el.properties['id'];
|
|
151
|
+
if (typeof id !== 'string')
|
|
152
|
+
return;
|
|
153
|
+
let to = id;
|
|
154
|
+
for (let n = 2; seen.has(to); n++)
|
|
155
|
+
to = `${id}-${n}`;
|
|
156
|
+
if (to !== id) {
|
|
157
|
+
renamed.set(id, to);
|
|
158
|
+
el.properties['id'] = to;
|
|
159
|
+
}
|
|
160
|
+
seen.add(to);
|
|
161
|
+
});
|
|
162
|
+
if (renamed.size === 0)
|
|
163
|
+
continue;
|
|
164
|
+
walk(source, (el) => {
|
|
165
|
+
const href = el.properties['href'];
|
|
166
|
+
if (typeof href === 'string' && href.startsWith('#') && renamed.has(href.slice(1)))
|
|
167
|
+
el.properties['href'] = `#${renamed.get(href.slice(1))}`;
|
|
168
|
+
const target = el.properties['popoverTarget'];
|
|
169
|
+
if (typeof target === 'string' && renamed.has(target))
|
|
170
|
+
el.properties['popoverTarget'] = renamed.get(target);
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
/** A link to an id on another page points to that page. */
|
|
176
|
+
function linkAcrossPages(pages) {
|
|
177
|
+
const pageOf = new Map();
|
|
178
|
+
for (const page of pages) {
|
|
179
|
+
walk(page.body, (el) => {
|
|
180
|
+
const id = el.properties['id'];
|
|
181
|
+
if (typeof id === 'string' && !pageOf.has(id))
|
|
182
|
+
pageOf.set(id, page.file);
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
for (const page of pages) {
|
|
186
|
+
const own = new Set();
|
|
187
|
+
walk(page.body, (el) => {
|
|
188
|
+
const id = el.properties['id'];
|
|
189
|
+
if (typeof id === 'string')
|
|
190
|
+
own.add(id);
|
|
191
|
+
});
|
|
192
|
+
walk(page.body, (el) => {
|
|
193
|
+
const href = el.properties['href'];
|
|
194
|
+
if (typeof href !== 'string' || !href.startsWith('#'))
|
|
195
|
+
return;
|
|
196
|
+
const id = decodeURIComponent(href.slice(1));
|
|
197
|
+
const file = pageOf.get(id);
|
|
198
|
+
if (file !== undefined && !own.has(id))
|
|
199
|
+
el.properties['href'] = `${file}${href}`;
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
/** A file's name as a page's: its base name, without extension, in lower-case letters, digits and hyphens. */
|
|
204
|
+
function slug(path) {
|
|
205
|
+
const name = basename(path).replace(/\.[^.]*$/, '');
|
|
206
|
+
const s = name.normalize('NFKD').replace(/[̀-ͯ]/g, '').toLowerCase().replace(/[^a-z0-9_-]+/g, '-').replace(/^-+|-+$/g, '');
|
|
207
|
+
return s || 'chapter';
|
|
208
|
+
}
|
|
209
|
+
function unique(name, used) {
|
|
210
|
+
let out = name;
|
|
211
|
+
for (let n = 2; used.has(out); n++)
|
|
212
|
+
out = `${name}-${n}`;
|
|
213
|
+
used.add(out);
|
|
214
|
+
return out;
|
|
215
|
+
}
|
|
216
|
+
function basename(path) {
|
|
217
|
+
return path.slice(path.lastIndexOf('/') + 1);
|
|
218
|
+
}
|
|
219
|
+
//# sourceMappingURL=site.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"site.js","sourceRoot":"","sources":["../../src/web/site.ts"],"names":[],"mappings":"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"}
|
package/docs/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# pulpweaver4's documentation
|
|
2
|
+
|
|
3
|
+
The documentation of `pulpweaver4`, the core, shipped in its npm package so
|
|
4
|
+
that it always matches the release it comes with. It is published at
|
|
5
|
+
https://pulpweaver.inkylabs.com, which builds from the released packages it
|
|
6
|
+
pins.
|
|
7
|
+
|
|
8
|
+
- `reference/` is generated from the code at each release
|
|
9
|
+
(`scripts/reference` in https://gitlab.com/inkylabs/pulpweaver4): the
|
|
10
|
+
CSS properties, `pulpweaver4.toml`, the lint rules, the test matchers and
|
|
11
|
+
the plugin API, each from what the code declares. Don't edit it: change
|
|
12
|
+
the description in the code, and the release carries it.
|
|
13
|
+
|
|
14
|
+
Pages are Markdown, with the frontmatter Starlight reads (`title`,
|
|
15
|
+
`description`), and link to each other by relative paths to their `.md`
|
|
16
|
+
files.
|