asciidocsy 0.3.0.pre.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (337) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +201 -0
  3. data/_config.yml +66 -0
  4. data/_data/theme/alerts.yml +21 -0
  5. data/_data/theme/blocks.yml +33 -0
  6. data/_data/theme/forms.yml +72 -0
  7. data/_data/theme/navigation.yml +53 -0
  8. data/_data/theme/page-actions.yml +83 -0
  9. data/_data/theme/policies.yml +68 -0
  10. data/_data/theme/release-hx.yml +163 -0
  11. data/_data/theme/scripts.yml +43 -0
  12. data/_data/theme/semantics.yml +14 -0
  13. data/_data/theme/strings.yml +13 -0
  14. data/_data/theme/styles.yml +8 -0
  15. data/_docs/snippets/example_tabset-source.adoc +60 -0
  16. data/_docs/snippets/example_tabset-source_data.json +16 -0
  17. data/_docs/snippets/example_tabset-source_data.xml +17 -0
  18. data/_docs/snippets/example_tabset-source_data.yml +10 -0
  19. data/_docs/snippets/example_toggles.adoc +25 -0
  20. data/_docs/snippets/handlers-table.adoc +40 -0
  21. data/_docs/snippets/reference-cluster.adoc +1 -0
  22. data/_docs/topics/advanced-applications_c.adoc +50 -0
  23. data/_docs/topics/config-api_r.adoc +21 -0
  24. data/_docs/topics/config-release-hx.adoc +4 -0
  25. data/_docs/topics/config-search-algolia.adoc +77 -0
  26. data/_docs/topics/config-search.adoc +47 -0
  27. data/_docs/topics/config-semantics.adoc +45 -0
  28. data/_docs/topics/config-switcher_r.adoc +33 -0
  29. data/_docs/topics/config-tabber_r.adoc +49 -0
  30. data/_docs/topics/config-toggle_r.adoc +20 -0
  31. data/_docs/topics/config-versioning-amenders_r.adoc +76 -0
  32. data/_docs/topics/config-versioning-swaps_r.adoc +193 -0
  33. data/_docs/topics/config-versioning-tabsets_r.adoc +51 -0
  34. data/_docs/topics/config-versioning-toggles_r.adoc +42 -0
  35. data/_docs/topics/config-versioning.adoc +134 -0
  36. data/_docs/topics/config_r.adoc +131 -0
  37. data/_docs/topics/extend.adoc +70 -0
  38. data/_docs/topics/frontend-overview.adoc +62 -0
  39. data/_docs/topics/intro.adoc +6 -0
  40. data/_docs/topics/setup-bootstrap_t.adoc +71 -0
  41. data/_docs/topics/setup-environment_rg.adoc +65 -0
  42. data/_docs/topics/setup-quickstart_t.adoc +10 -0
  43. data/_docs/topics/setup.adoc +31 -0
  44. data/_docs/topics/syntax-highlighter-examples_r.adoc +172 -0
  45. data/_docs/topics/toolchain.adoc +79 -0
  46. data/_docs/topics/upgrade-0-3-0.adoc +49 -0
  47. data/_includes/_settings.liquid +2 -0
  48. data/_includes/_variables.sass +12 -0
  49. data/_includes/breadcrumbs.html +20 -0
  50. data/_includes/breadcrumbs_alt.html +6 -0
  51. data/_includes/config-api-objects.asciidoc +23 -0
  52. data/_includes/config-api-properties.asciidoc +29 -0
  53. data/_includes/config-api.asciidoc +29 -0
  54. data/_includes/feedback.html +59 -0
  55. data/_includes/footer-links_sup.html +5 -0
  56. data/_includes/footer.html +59 -0
  57. data/_includes/gdpr-message.html +41 -0
  58. data/_includes/google-analytics.html +11 -0
  59. data/_includes/head.html +74 -0
  60. data/_includes/header.html +22 -0
  61. data/_includes/hook.liquid +26 -0
  62. data/_includes/nav-site.html +30 -0
  63. data/_includes/nav-subject-menu.html +49 -0
  64. data/_includes/page-links.html +45 -0
  65. data/_includes/path-active.liquid +18 -0
  66. data/_includes/release-hx-change.asciidoc +7 -0
  67. data/_includes/release-hx-changes-listing.asciidoc +14 -0
  68. data/_includes/release-hx-note.asciidoc +54 -0
  69. data/_includes/release-hx-notes-listing.asciidoc +16 -0
  70. data/_includes/release-hx-revision.asciidoc +86 -0
  71. data/_includes/release-hx.asciidoc +57 -0
  72. data/_includes/scripts.html +8 -0
  73. data/_includes/search-form.html +113 -0
  74. data/_includes/see-also.html +17 -0
  75. data/_includes/social-links.html +10 -0
  76. data/_includes/string-eval.liquid +38 -0
  77. data/_includes/tail.html +7 -0
  78. data/_includes/theme-api-object-sub.asciidoc +4 -0
  79. data/_includes/theme-api-object.asciidoc +35 -0
  80. data/_includes/version-handler.html +245 -0
  81. data/_includes/versioning-controls.html +88 -0
  82. data/_layouts/default.html +94 -0
  83. data/_layouts/landing.html +28 -0
  84. data/_layouts/page.html +9 -0
  85. data/_layouts/post.html +8 -0
  86. data/_layouts/reference.html +6 -0
  87. data/_layouts/search.html +110 -0
  88. data/_layouts/topic.html +19 -0
  89. data/_sass/_asciidocsy.scss +698 -0
  90. data/_sass/_custom.scss +3 -0
  91. data/_sass/bootstrap/_alert.scss +51 -0
  92. data/_sass/bootstrap/_badge.scss +54 -0
  93. data/_sass/bootstrap/_breadcrumb.scss +41 -0
  94. data/_sass/bootstrap/_button-group.scss +163 -0
  95. data/_sass/bootstrap/_buttons.scss +137 -0
  96. data/_sass/bootstrap/_card.scss +289 -0
  97. data/_sass/bootstrap/_carousel.scss +197 -0
  98. data/_sass/bootstrap/_close.scss +41 -0
  99. data/_sass/bootstrap/_code.scss +48 -0
  100. data/_sass/bootstrap/_custom-forms.scss +507 -0
  101. data/_sass/bootstrap/_dropdown.scss +191 -0
  102. data/_sass/bootstrap/_forms.scss +330 -0
  103. data/_sass/bootstrap/_functions.scss +86 -0
  104. data/_sass/bootstrap/_grid.scss +52 -0
  105. data/_sass/bootstrap/_images.scss +42 -0
  106. data/_sass/bootstrap/_input-group.scss +193 -0
  107. data/_sass/bootstrap/_jumbotron.scss +17 -0
  108. data/_sass/bootstrap/_list-group.scss +149 -0
  109. data/_sass/bootstrap/_media.scss +8 -0
  110. data/_sass/bootstrap/_mixins.scss +47 -0
  111. data/_sass/bootstrap/_modal.scss +229 -0
  112. data/_sass/bootstrap/_nav.scss +120 -0
  113. data/_sass/bootstrap/_navbar.scss +294 -0
  114. data/_sass/bootstrap/_pagination.scss +73 -0
  115. data/_sass/bootstrap/_popover.scss +171 -0
  116. data/_sass/bootstrap/_print.scss +141 -0
  117. data/_sass/bootstrap/_progress.scss +43 -0
  118. data/_sass/bootstrap/_reboot.scss +483 -0
  119. data/_sass/bootstrap/_root.scss +19 -0
  120. data/_sass/bootstrap/_spinners.scss +55 -0
  121. data/_sass/bootstrap/_tables.scss +185 -0
  122. data/_sass/bootstrap/_toasts.scss +44 -0
  123. data/_sass/bootstrap/_tooltip.scss +115 -0
  124. data/_sass/bootstrap/_transitions.scss +20 -0
  125. data/_sass/bootstrap/_type.scss +125 -0
  126. data/_sass/bootstrap/_utilities.scss +17 -0
  127. data/_sass/bootstrap/_variables.scss +1123 -0
  128. data/_sass/bootstrap/bootstrap-grid.scss +29 -0
  129. data/_sass/bootstrap/bootstrap-reboot.scss +12 -0
  130. data/_sass/bootstrap/bootstrap.scss +44 -0
  131. data/_sass/bootstrap/mixins/_alert.scss +13 -0
  132. data/_sass/bootstrap/mixins/_background-variant.scss +21 -0
  133. data/_sass/bootstrap/mixins/_badge.scss +17 -0
  134. data/_sass/bootstrap/mixins/_border-radius.scss +63 -0
  135. data/_sass/bootstrap/mixins/_box-shadow.scss +20 -0
  136. data/_sass/bootstrap/mixins/_breakpoints.scss +123 -0
  137. data/_sass/bootstrap/mixins/_buttons.scss +107 -0
  138. data/_sass/bootstrap/mixins/_caret.scss +62 -0
  139. data/_sass/bootstrap/mixins/_clearfix.scss +7 -0
  140. data/_sass/bootstrap/mixins/_deprecate.scss +10 -0
  141. data/_sass/bootstrap/mixins/_float.scss +14 -0
  142. data/_sass/bootstrap/mixins/_forms.scss +192 -0
  143. data/_sass/bootstrap/mixins/_gradients.scss +45 -0
  144. data/_sass/bootstrap/mixins/_grid-framework.scss +66 -0
  145. data/_sass/bootstrap/mixins/_grid.scss +51 -0
  146. data/_sass/bootstrap/mixins/_hover.scss +37 -0
  147. data/_sass/bootstrap/mixins/_image.scss +36 -0
  148. data/_sass/bootstrap/mixins/_list-group.scss +21 -0
  149. data/_sass/bootstrap/mixins/_lists.scss +7 -0
  150. data/_sass/bootstrap/mixins/_nav-divider.scss +10 -0
  151. data/_sass/bootstrap/mixins/_pagination.scss +22 -0
  152. data/_sass/bootstrap/mixins/_reset-text.scss +17 -0
  153. data/_sass/bootstrap/mixins/_resize.scss +6 -0
  154. data/_sass/bootstrap/mixins/_screen-reader.scss +33 -0
  155. data/_sass/bootstrap/mixins/_size.scss +7 -0
  156. data/_sass/bootstrap/mixins/_table-row.scss +39 -0
  157. data/_sass/bootstrap/mixins/_text-emphasis.scss +16 -0
  158. data/_sass/bootstrap/mixins/_text-hide.scss +11 -0
  159. data/_sass/bootstrap/mixins/_text-truncate.scss +8 -0
  160. data/_sass/bootstrap/mixins/_transition.scss +16 -0
  161. data/_sass/bootstrap/mixins/_visibility.scss +8 -0
  162. data/_sass/bootstrap/utilities/_align.scss +8 -0
  163. data/_sass/bootstrap/utilities/_background.scss +19 -0
  164. data/_sass/bootstrap/utilities/_borders.scss +75 -0
  165. data/_sass/bootstrap/utilities/_clearfix.scss +3 -0
  166. data/_sass/bootstrap/utilities/_display.scss +26 -0
  167. data/_sass/bootstrap/utilities/_embed.scss +39 -0
  168. data/_sass/bootstrap/utilities/_flex.scss +51 -0
  169. data/_sass/bootstrap/utilities/_float.scss +11 -0
  170. data/_sass/bootstrap/utilities/_overflow.scss +5 -0
  171. data/_sass/bootstrap/utilities/_position.scss +32 -0
  172. data/_sass/bootstrap/utilities/_screenreaders.scss +11 -0
  173. data/_sass/bootstrap/utilities/_shadows.scss +6 -0
  174. data/_sass/bootstrap/utilities/_sizing.scss +20 -0
  175. data/_sass/bootstrap/utilities/_spacing.scss +73 -0
  176. data/_sass/bootstrap/utilities/_stretched-link.scss +19 -0
  177. data/_sass/bootstrap/utilities/_text.scss +72 -0
  178. data/_sass/bootstrap/utilities/_visibility.scss +13 -0
  179. data/_sass/bootstrap/vendor/_rfs.scss +204 -0
  180. data/assets/css/asciidocsy.scss +9 -0
  181. data/assets/css/asciidoctor.css +776 -0
  182. data/assets/css/bootstrap-toc.css +60 -0
  183. data/assets/css/bootstrap.scss +4 -0
  184. data/assets/css/custom.css +2 -0
  185. data/assets/css/font-awesome.css +2337 -0
  186. data/assets/css/font-awesome.min.css +4 -0
  187. data/assets/css/jquery.navgoco.css +69 -0
  188. data/assets/css/palette.css +217 -0
  189. data/assets/css/skins/colony.css +734 -0
  190. data/assets/css/skins/foundation-lime.css +727 -0
  191. data/assets/css/skins/foundation-potion.css +727 -0
  192. data/assets/css/skins/foundation.css +720 -0
  193. data/assets/css/skins/github.css +741 -0
  194. data/assets/css/skins/golo.css +738 -0
  195. data/assets/css/skins/iconic.css +762 -0
  196. data/assets/css/skins/maker.css +738 -0
  197. data/assets/css/skins/readthedocs.css +739 -0
  198. data/assets/css/skins/riak.css +759 -0
  199. data/assets/css/skins/rocket-panda.css +734 -0
  200. data/assets/css/skins/rubygems.css +722 -0
  201. data/assets/css/syntax/hljs/a11y-dark.css +99 -0
  202. data/assets/css/syntax/hljs/a11y-light.css +99 -0
  203. data/assets/css/syntax/hljs/agate.css +108 -0
  204. data/assets/css/syntax/hljs/an-old-hope.css +89 -0
  205. data/assets/css/syntax/hljs/androidstudio.css +66 -0
  206. data/assets/css/syntax/hljs/arduino-light.css +87 -0
  207. data/assets/css/syntax/hljs/arta.css +73 -0
  208. data/assets/css/syntax/hljs/ascetic.css +45 -0
  209. data/assets/css/syntax/hljs/atelier-cave-dark.css +83 -0
  210. data/assets/css/syntax/hljs/atelier-cave-light.css +85 -0
  211. data/assets/css/syntax/hljs/atelier-dune-dark.css +69 -0
  212. data/assets/css/syntax/hljs/atelier-dune-light.css +69 -0
  213. data/assets/css/syntax/hljs/atelier-estuary-dark.css +84 -0
  214. data/assets/css/syntax/hljs/atelier-estuary-light.css +84 -0
  215. data/assets/css/syntax/hljs/atelier-forest-dark.css +69 -0
  216. data/assets/css/syntax/hljs/atelier-forest-light.css +69 -0
  217. data/assets/css/syntax/hljs/atelier-heath-dark.css +69 -0
  218. data/assets/css/syntax/hljs/atelier-heath-light.css +69 -0
  219. data/assets/css/syntax/hljs/atelier-lakeside-dark.css +69 -0
  220. data/assets/css/syntax/hljs/atelier-lakeside-light.css +69 -0
  221. data/assets/css/syntax/hljs/atelier-plateau-dark.css +84 -0
  222. data/assets/css/syntax/hljs/atelier-plateau-light.css +84 -0
  223. data/assets/css/syntax/hljs/atelier-savanna-dark.css +84 -0
  224. data/assets/css/syntax/hljs/atelier-savanna-light.css +84 -0
  225. data/assets/css/syntax/hljs/atelier-seaside-dark.css +69 -0
  226. data/assets/css/syntax/hljs/atelier-seaside-light.css +69 -0
  227. data/assets/css/syntax/hljs/atelier-sulphurpool-dark.css +69 -0
  228. data/assets/css/syntax/hljs/atelier-sulphurpool-light.css +69 -0
  229. data/assets/css/syntax/hljs/atom-one-dark-reasonable.css +75 -0
  230. data/assets/css/syntax/hljs/atom-one-dark.css +96 -0
  231. data/assets/css/syntax/hljs/atom-one-light.css +96 -0
  232. data/assets/css/syntax/hljs/brown-paper.css +64 -0
  233. data/assets/css/syntax/hljs/brown-papersq.png +0 -0
  234. data/assets/css/syntax/hljs/codepen-embed.css +60 -0
  235. data/assets/css/syntax/hljs/color-brewer.css +71 -0
  236. data/assets/css/syntax/hljs/darcula.css +74 -0
  237. data/assets/css/syntax/hljs/dark.css +63 -0
  238. data/assets/css/syntax/hljs/default.css +99 -0
  239. data/assets/css/syntax/hljs/docco.css +97 -0
  240. data/assets/css/syntax/hljs/dracula.css +76 -0
  241. data/assets/css/syntax/hljs/far.css +71 -0
  242. data/assets/css/syntax/hljs/foundation.css +89 -0
  243. data/assets/css/syntax/hljs/github-gist.css +79 -0
  244. data/assets/css/syntax/hljs/github.css +99 -0
  245. data/assets/css/syntax/hljs/gml.css +78 -0
  246. data/assets/css/syntax/hljs/googlecode.css +89 -0
  247. data/assets/css/syntax/hljs/gradient-dark.css +122 -0
  248. data/assets/css/syntax/hljs/gradient-light.css +130 -0
  249. data/assets/css/syntax/hljs/grayscale.css +101 -0
  250. data/assets/css/syntax/hljs/gruvbox-dark.css +108 -0
  251. data/assets/css/syntax/hljs/gruvbox-light.css +108 -0
  252. data/assets/css/syntax/hljs/hopscotch.css +84 -0
  253. data/assets/css/syntax/hljs/hybrid.css +102 -0
  254. data/assets/css/syntax/hljs/idea.css +97 -0
  255. data/assets/css/syntax/hljs/ir-black.css +73 -0
  256. data/assets/css/syntax/hljs/isbl-editor-dark.css +112 -0
  257. data/assets/css/syntax/hljs/isbl-editor-light.css +111 -0
  258. data/assets/css/syntax/hljs/kimbie.dark.css +74 -0
  259. data/assets/css/syntax/hljs/kimbie.light.css +74 -0
  260. data/assets/css/syntax/hljs/lightfair.css +88 -0
  261. data/assets/css/syntax/hljs/lioshi.css +88 -0
  262. data/assets/css/syntax/hljs/magula.css +70 -0
  263. data/assets/css/syntax/hljs/mono-blue.css +56 -0
  264. data/assets/css/syntax/hljs/monokai-sublime.css +83 -0
  265. data/assets/css/syntax/hljs/monokai.css +71 -0
  266. data/assets/css/syntax/hljs/night-owl.css +182 -0
  267. data/assets/css/syntax/hljs/nnfx-dark.css +106 -0
  268. data/assets/css/syntax/hljs/nnfx.css +106 -0
  269. data/assets/css/syntax/hljs/nord.css +309 -0
  270. data/assets/css/syntax/hljs/obsidian.css +88 -0
  271. data/assets/css/syntax/hljs/ocean.css +74 -0
  272. data/assets/css/syntax/hljs/paraiso-dark.css +72 -0
  273. data/assets/css/syntax/hljs/paraiso-light.css +72 -0
  274. data/assets/css/syntax/hljs/pojoaque.css +83 -0
  275. data/assets/css/syntax/hljs/pojoaque.jpg +0 -0
  276. data/assets/css/syntax/hljs/purebasic.css +96 -0
  277. data/assets/css/syntax/hljs/qtcreator_dark.css +83 -0
  278. data/assets/css/syntax/hljs/qtcreator_light.css +83 -0
  279. data/assets/css/syntax/hljs/railscasts.css +106 -0
  280. data/assets/css/syntax/hljs/rainbow.css +85 -0
  281. data/assets/css/syntax/hljs/routeros.css +108 -0
  282. data/assets/css/syntax/hljs/school-book.css +69 -0
  283. data/assets/css/syntax/hljs/school-book.png +0 -0
  284. data/assets/css/syntax/hljs/shades-of-purple.css +96 -0
  285. data/assets/css/syntax/hljs/solarized-dark.css +84 -0
  286. data/assets/css/syntax/hljs/solarized-light.css +84 -0
  287. data/assets/css/syntax/hljs/srcery.css +78 -0
  288. data/assets/css/syntax/hljs/stackoverflow-dark.css +78 -0
  289. data/assets/css/syntax/hljs/stackoverflow-light.css +78 -0
  290. data/assets/css/syntax/hljs/sunburst.css +102 -0
  291. data/assets/css/syntax/hljs/tomorrow-night-blue.css +75 -0
  292. data/assets/css/syntax/hljs/tomorrow-night-bright.css +74 -0
  293. data/assets/css/syntax/hljs/tomorrow-night-eighties.css +74 -0
  294. data/assets/css/syntax/hljs/tomorrow-night.css +75 -0
  295. data/assets/css/syntax/hljs/tomorrow.css +72 -0
  296. data/assets/css/syntax/hljs/vs.css +68 -0
  297. data/assets/css/syntax/hljs/vs2015.css +115 -0
  298. data/assets/css/syntax/hljs/xcode.css +104 -0
  299. data/assets/css/syntax/hljs/xt256.css +92 -0
  300. data/assets/css/syntax/hljs/zenburn.css +80 -0
  301. data/assets/fonts/FontAwesome.otf +0 -0
  302. data/assets/fonts/fontawesome-webfont.eot +0 -0
  303. data/assets/fonts/fontawesome-webfont.svg +2671 -0
  304. data/assets/fonts/fontawesome-webfont.ttf +0 -0
  305. data/assets/fonts/fontawesome-webfont.woff +0 -0
  306. data/assets/fonts/fontawesome-webfont.woff2 +0 -0
  307. data/assets/images/asciidocsy-nav-model.png +0 -0
  308. data/assets/images/asciidocsy-screenshot.png +0 -0
  309. data/assets/images/docops-labs-logo.png +0 -0
  310. data/assets/images/favicons/favicon-16x16.png +0 -0
  311. data/assets/images/favicons/favicon-32x32.png +0 -0
  312. data/assets/images/favicons/favicon.ico +0 -0
  313. data/assets/images/github-repo-download_screenshot.png +0 -0
  314. data/assets/images/logo-full.png +0 -0
  315. data/assets/images/logo.png +0 -0
  316. data/assets/images/logo.svg +87 -0
  317. data/assets/images/search-by-algolia-light-background.svg +1 -0
  318. data/assets/images/thumb-topic-data-source-edit.png +0 -0
  319. data/assets/js/anchor.min.js +9 -0
  320. data/assets/js/asciidoctor.min.js +1472 -0
  321. data/assets/js/bootstrap-toc.js +180 -0
  322. data/assets/js/bootstrap.min.js +7 -0
  323. data/assets/js/highlight.pack.js +870 -0
  324. data/assets/js/jquery-3.3.1.js +10364 -0
  325. data/assets/js/jquery-3.3.1.min.js +2 -0
  326. data/assets/js/jquery.cookie.js +114 -0
  327. data/assets/js/jquery.navgoco.js +314 -0
  328. data/assets/js/semantics.js +58 -0
  329. data/assets/js/tabber.js +111 -0
  330. data/assets/js/tail.js +37 -0
  331. data/assets/js/toggler.js +50 -0
  332. data/lib/asciidocsy/data/dependencies.yml +142 -0
  333. data/lib/asciidocsy/data/releases.yml +245 -0
  334. data/lib/asciidocsy/templates/notice-file.txt +16 -0
  335. data/lib/asciidocsy/version.rb +13 -0
  336. data/lib/asciidocsy.rb +1 -0
  337. metadata +462 -0
@@ -0,0 +1,1472 @@
1
+ /*
2
+ Asciidoctor.js 2.2.5 | MIT | https://github.com/asciidoctor/asciidoctor.js
3
+ */
4
+ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(b){var m=0;return function(){return m<b.length?{done:!1,value:b[m++]}:{done:!0}}};$jscomp.arrayIterator=function(b){return{next:$jscomp.arrayIteratorImpl(b)}};$jscomp.makeIterator=function(b){var m="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];return m?m.call(b):$jscomp.arrayIterator(b)};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
5
+ $jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,m,D){b!=Array.prototype&&b!=Object.prototype&&(b[m]=D.value)};$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b};$jscomp.global=$jscomp.getGlobal(this);
6
+ $jscomp.polyfill=function(b,m,D,C){if(m){D=$jscomp.global;b=b.split(".");for(C=0;C<b.length-1;C++){var u=b[C];u in D||(D[u]={});D=D[u]}b=b[b.length-1];C=D[b];m=m(C);m!=C&&null!=m&&$jscomp.defineProperty(D,b,{configurable:!0,writable:!0,value:m})}};$jscomp.underscoreProtoCanBeSet=function(){var b={a:!0},m={};try{return m.__proto__=b,m.a}catch(D){}return!1};
7
+ $jscomp.setPrototypeOf="function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(b,m){b.__proto__=m;if(b.__proto__!==m)throw new TypeError(b+" is not extensible");return b}:null;$jscomp.polyfill("Object.setPrototypeOf",function(b){return b||$jscomp.setPrototypeOf},"es6","es5");$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};
8
+ $jscomp.Symbol=function(){var b=0;return function(m){return $jscomp.SYMBOL_PREFIX+(m||"")+b++}}();$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var b=$jscomp.global.Symbol.iterator;b||(b=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[b]&&$jscomp.defineProperty(Array.prototype,b,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}});$jscomp.initSymbolIterator=function(){}};
9
+ $jscomp.initSymbolAsyncIterator=function(){$jscomp.initSymbol();var b=$jscomp.global.Symbol.asyncIterator;b||(b=$jscomp.global.Symbol.asyncIterator=$jscomp.global.Symbol("asyncIterator"));$jscomp.initSymbolAsyncIterator=function(){}};$jscomp.iteratorPrototype=function(b){$jscomp.initSymbolIterator();b={next:b};b[$jscomp.global.Symbol.iterator]=function(){return this};return b};
10
+ $jscomp.iteratorFromArray=function(b,m){$jscomp.initSymbolIterator();b instanceof String&&(b+="");var D=0,C={next:function(){if(D<b.length){var u=D++;return{value:m(u,b[u]),done:!1}}C.next=function(){return{done:!0,value:void 0}};return C.next()}};C[Symbol.iterator]=function(){return C};return C};$jscomp.polyfill("Array.prototype.keys",function(b){return b?b:function(){return $jscomp.iteratorFromArray(this,function(b){return b})}},"es6","es3");
11
+ $jscomp.owns=function(b,m){return Object.prototype.hasOwnProperty.call(b,m)};$jscomp.assign="function"==typeof Object.assign?Object.assign:function(b,m){for(var D=1;D<arguments.length;D++){var C=arguments[D];if(C)for(var u in C)$jscomp.owns(C,u)&&(b[u]=C[u])}return b};$jscomp.polyfill("Object.assign",function(b){return b||$jscomp.assign},"es6","es3");$jscomp.polyfill("Number.EPSILON",function(b){return Math.pow(2,-52)},"es6","es3");
12
+ $jscomp.checkStringArgs=function(b,m,D){if(null==b)throw new TypeError("The 'this' value for String.prototype."+D+" must not be null or undefined");if(m instanceof RegExp)throw new TypeError("First argument to String.prototype."+D+" must not be a regular expression");return b+""};
13
+ $jscomp.polyfill("String.prototype.endsWith",function(b){return b?b:function(b,D){var m=$jscomp.checkStringArgs(this,b,"endsWith");b+="";void 0===D&&(D=m.length);D=Math.max(0,Math.min(D|0,m.length));for(var u=b.length;0<u&&0<D;)if(m[--D]!=b[--u])return!1;return 0>=u}},"es6","es3");$jscomp.polyfill("Object.is",function(b){return b?b:function(b,D){return b===D?0!==b||1/b===1/D:b!==b&&D!==D}},"es6","es3");
14
+ $jscomp.polyfill("Array.prototype.includes",function(b){return b?b:function(b,D){var m=this;m instanceof String&&(m=String(m));var u=m.length;D=D||0;for(0>D&&(D=Math.max(D+u,0));D<u;D++){var t=m[D];if(t===b||Object.is(t,b))return!0}return!1}},"es7","es3");$jscomp.polyfill("String.prototype.includes",function(b){return b?b:function(b,D){return-1!==$jscomp.checkStringArgs(this,b,"includes").indexOf(b,D||0)}},"es6","es3");
15
+ $jscomp.polyfill("String.prototype.repeat",function(b){return b?b:function(b){var m=$jscomp.checkStringArgs(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var C="";b;)if(b&1&&(C+=m),b>>>=1)m+=m;return C}},"es6","es3");
16
+ $jscomp.polyfill("Array.from",function(b){return b?b:function(b,D,C){D=null!=D?D:function(b){return b};var u=[],t="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof t){b=t.call(b);for(var g=0;!(t=b.next()).done;)u.push(D.call(C,t.value,g++))}else for(t=b.length,g=0;g<t;g++)u.push(D.call(C,b[g],g));return u}},"es6","es3");
17
+ (function(b){function m(a,b,B){"string"===typeof a?a[b]=B:Object.defineProperty(a,b,{value:B,enumerable:!1,configurable:!0,writable:!0})}function D(a,b){if(a)return a.$$const[b]}function C(a,b){var d;if(null!=a){var v=k.ancestors(a);a=0;for(d=v.length;a<d;a++)if(v[a].$$const&&pa.call(v[a].$$const,b))return v[a].$$const[b]}}function u(a,b,B){if(!B)return(a||M).$const_missing(b)}function t(a){return a.hasOwnProperty("$$iclass")&&a.hasOwnProperty("$$root")}function g(a){var b=H(a);a.$$is_module&&a.$$iclasses.push(b);
18
+ return b}function H(a){var b={},d=a.$$prototype;d.hasOwnProperty("$$dummy")&&(d=d.$$define_methods_on);var L=Object.getOwnPropertyNames(d),r=L.length,h;for(h=0;h<r;h++){var c=L[h];m(b,c,d[c])}m(b,"$$iclass",!0);m(b,"$$module",a);return b}function l(a){var b=a.length,d=a[0];m(d,"$$root",!0);if(1===b)return{first:d,last:d};for(var L=1;L<b;L++){var r=a[L];z(d,r);d=r}return{first:a[0],last:a[b-1]}}function E(a){if(!a.hasOwnProperty("$$dummy")){if(a.hasOwnProperty("$$iclass"))return a.$$module;if(a.hasOwnProperty("$$class"))return a.$$class}}
19
+ function x(a){return"function"===typeof a&&!a.$$stub}var q=this;"undefined"!==typeof global&&(q=global);"undefined"!==typeof window&&(q=window);var O="object"===typeof q.console?q.console:null==q.console?q.console={}:{};"log"in O||(O.log=function(){});"warn"in O||(O.warn=O.log);if("undefined"!==typeof q.Opal)return O.warn("Opal already loaded. Loading twice can cause troubles, please fix your setup."),q.Opal;var P,M,G,k=this.Opal={};k.global=q;q.Opal=k;k.config={missing_require_severity:"error",unsupported_features_severity:"warning",
20
+ enable_stack_trace:!0};var pa=Object.hasOwnProperty,R=Function.prototype.bind,z=Object.setPrototypeOf,F=Array.prototype.slice,ja=Array.prototype.splice,Z=4;k.uid=function(){return Z+=2};k.id=function(a){if(a.$$is_number)return 2*a+1;if(null!=a.$$id)return a.$$id;m(a,"$$id",k.uid());return a.$$id};k.gvars={};k.exit=function(a){k.gvars.DEBUG&&O.log("Exited with status "+a)};k.exceptions=[];k.pop_exception=function(){k.gvars["!"]=k.exceptions.pop()||a};k.inspect=function(a){return a===b?"undefined":
21
+ null===a?"null":a.$$class?a.$inspect():a.toString()};k.defineProperty=m;k.slice=F;k.truthy=function(b){return b!==a&&null!=b&&(!b.$$is_boolean||1==b)};k.falsy=function(b){return b===a||null==b||b.$$is_boolean&&0==b};k.const_get_local=function(a,b,B){if(null!=a){"::"===a&&(a=M);if(!a.$$is_module&&!a.$$is_class)throw new k.TypeError(a.toString()+" is not a class/module");var d=D(a,b);if(null!=d)return d;d=u(a,b,B);if(null!=d)return d}};k.const_get_qualified=function(a,b,B){var d,v=k.const_cache_version;
22
+ if(null!=a){"::"===a&&(a=M);if(!a.$$is_module&&!a.$$is_class)throw new k.TypeError(a.toString()+" is not a class/module");null==(d=a.$$const_cache)&&(m(a,"$$const_cache",Object.create(null)),d=a.$$const_cache);var h=d[b];null==h||h[0]!==v?(null!=(h=D(a,b))||null!=(h=C(a,b)),d[b]=[v,h]):h=h[1];return null!=h?h:u(a,b,B)}};k.const_cache_version=1;k.const_get_relative=function(a,b,B){var d=a[0],v=k.const_cache_version,h;null==(h=a.$$const_cache)&&(m(a,"$$const_cache",Object.create(null)),h=a.$$const_cache);
23
+ var c=h[b];if(null==c||c[0]!==v){var A;if(!(A=null!=(c=D(d,b)))){a:{if(0!==a.length)for(c=0,A=a.length;c<A;c++){var p=a[c].$$const[b];if(null!=p){a=p;break a}}a=void 0}A=null!=(c=a)}A||null!=(c=C(d,b))||(a=null==d||d.$$is_module?C(M,b):void 0,null!=(c=a));h[b]=[v,c]}else c=c[1];return null!=c?c:u(d,b,B)};k.const_set=function(b,v,B){if(null==b||"::"===b)b=M;if(B.$$is_a_module){if(null==B.$$name||B.$$name===a)B.$$name=v;null==B.$$base_module&&(B.$$base_module=b)}b.$$const=b.$$const||Object.create(null);
24
+ b.$$const[v]=B;b.$$=b.$$const;k.const_cache_version++;b===M&&(k[v]=B);m(b,v,B);return B};k.constants=function(a,b){null==b&&(b=!0);var d=[a],v,r={},h;b&&(d=d.concat(k.ancestors(a)));b&&a.$$is_module&&(d=d.concat([k.Object]).concat(k.ancestors(k.Object)));var c=0;for(v=d.length;c<v;c++){b=d[c];if(a!==M&&b==M)break;for(h in b.$$const)r[h]=!0}return Object.keys(r)};k.const_remove=function(b,v){k.const_cache_version++;if(null!=b.$$const[v]){var d=b.$$const[v];delete b.$$const[v];return d}if(null!=b.$$autoload&&
25
+ null!=b.$$autoload[v])return delete b.$$autoload[v],a;throw k.NameError.$new("constant "+b+"::"+b.$name()+" not defined");};k.allocate_class=function(a,b){var d=null!=b&&b.$$bridge?function(){var a=F.call(arguments);a=new (R.apply(b.$$constructor,[null].concat(a)));z(a,v.$$prototype);return a}:function(){};a&&m(d,"displayName","::"+a);var v=d;m(v,"$$name",a);m(v,"$$constructor",d);m(v,"$$prototype",d.prototype);m(v,"$$const",{});m(v,"$$is_class",!0);m(v,"$$is_a_module",!0);m(v,"$$super",b);m(v,"$$cvars",
26
+ {});m(v,"$$own_included_modules",[]);m(v,"$$own_prepended_modules",[]);m(v,"$$ancestors",[]);m(v,"$$ancestors_cache_version",null);m(v.$$prototype,"$$class",v);k.Class&&z(v,k.Class.prototype);null!=b&&(z(v.$$prototype,b.$$prototype),b.$$meta&&k.build_class_singleton_class(v));return v};k.klass=function(a,b,B){null==a?a=M:a.$$is_class||a.$$is_module||(a=a.$$class);if(null!=b&&!b.hasOwnProperty("$$is_class")){var d=b;b=M}var v;if(v=D(a,B)){if(!v.$$is_class)throw k.TypeError.$new(B+" is not a class");
27
+ }else v=void 0;if(v){if(b&&v.$$super!==b)throw k.TypeError.$new("superclass mismatch for class "+v.$$name);return v}null==b&&(b=M);v=k.allocate_class(B,b);k.const_set(a,B,v);b.$inherited&&b.$inherited(v);d&&k.bridge(d,v);return v};k.allocate_module=function(a){var b=function(){};a&&m(b,"displayName",a+".$$constructor");a&&m(b,"displayName",a+".constructor");m(b,"$$name",a);m(b,"$$prototype",b.prototype);m(b,"$$const",{});m(b,"$$is_module",!0);m(b,"$$is_a_module",!0);m(b,"$$cvars",{});m(b,"$$iclasses",
28
+ []);m(b,"$$own_included_modules",[]);m(b,"$$own_prepended_modules",[]);m(b,"$$ancestors",[b]);m(b,"$$ancestors_cache_version",null);z(b,k.Module.prototype);return b};k.module=function(a,b){null==a?a=M:a.$$is_class||a.$$is_module||(a=a.$$class);var d=a;var v=D(d,b);null==v&&d===M&&(v=C(M,b));if(v&&!v.$$is_module&&v!==M)throw k.TypeError.$new(b+" is not a module");if(d=v)return d;d=k.allocate_module(b);k.const_set(a,b,d);return d};k.get_singleton_class=function(a){return a.$$meta?a.$$meta:a.hasOwnProperty("$$is_class")?
29
+ k.build_class_singleton_class(a):a.hasOwnProperty("$$is_module")?k.build_module_singletin_class(a):k.build_object_singleton_class(a)};k.build_class_singleton_class=function(a){if(a.$$meta)return a.$$meta;var b=a===P?G:k.get_singleton_class(a.$$super);b=k.allocate_class(null,b,function(){});m(b,"$$is_singleton",!0);m(b,"$$singleton_of",a);m(a,"$$meta",b);z(a,b.$$prototype);m(a,"$$class",k.Class);return b};k.build_module_singletin_class=function(a){if(a.$$meta)return a.$$meta;var b=k.allocate_class(null,
30
+ k.Module,function(){});m(b,"$$is_singleton",!0);m(b,"$$singleton_of",a);m(a,"$$meta",b);z(a,b.$$prototype);m(a,"$$class",k.Module);return b};k.build_object_singleton_class=function(b){var d=k.allocate_class(a,b.$$class,function(){});m(d,"$$is_singleton",!0);m(d,"$$singleton_of",b);delete d.$$prototype.$$class;m(b,"$$meta",d);z(b,b.$$meta.$$prototype);return d};k.is_method=function(a){return"$"===a[0]&&"$"!==a[1]};k.instance_methods=function(a){var b=[],d=[];a=k.ancestors(a);for(var L=0,r=a.length;L<
31
+ r;L++){var h=a[L].$$prototype;h.hasOwnProperty("$$dummy")&&(h=h.$$define_methods_on);for(var c=Object.getOwnPropertyNames(h),A=0,p=c.length;A<p;A++){var g=c[A];if(k.is_method(g)){var S=g.slice(1);g=h[g];g.$$stub&&-1===b.indexOf(S)&&b.push(S);g.$$stub||-1!==d.indexOf(S)||-1!==b.indexOf(S)||d.push(S)}}}return d};k.own_instance_methods=function(a){var b=[];a=a.$$prototype;a.hasOwnProperty("$$dummy")&&(a=a.$$define_methods_on);for(var d=Object.getOwnPropertyNames(a),L=0,r=d.length;L<r;L++){var h=d[L];
32
+ k.is_method(h)&&!a[h].$$stub&&(h=h.slice(1),b.push(h))}return b};k.methods=function(a){return k.instance_methods(k.get_singleton_class(a))};k.own_methods=function(a){return k.own_instance_methods(k.get_singleton_class(a))};k.receiver_methods=function(a){var b=k.get_singleton_class(a);a=k.own_instance_methods(b);b=k.own_instance_methods(b.$$super);return a.concat(b)};k.class_variables=function(a){a=k.ancestors(a);var b,d={};for(b=a.length-1;0<=b;b--){var L=a[b],r;for(r in L.$$cvars)d[r]=L.$$cvars[r]}return d};
33
+ k.class_variable_set=function(a,b,B){var d=k.ancestors(a),v;for(v=d.length-2;0<=v;v--){var h=d[v];if(pa.call(h.$$cvars,b))return h.$$cvars[b]=B}return a.$$cvars[b]=B};k.append_features=function(a,b){var d=k.ancestors(a),v=[];if(-1!==d.indexOf(b))throw k.ArgumentError.$new("cyclic include detected");for(var r=0,h=d.length;r<h;r++){var c=g(d[r]);m(c,"$$included",!0);v.push(c)}d=k.ancestors(b);v=l(v);if(-1===d.indexOf(a))a=b.$$prototype,d=Object.getPrototypeOf(b.$$prototype);else{d=b.$$prototype;for(r=
34
+ Object.getPrototypeOf(d);null!=r&&(!t(r)||r.$$module!==a);)d=r,r=Object.getPrototypeOf(r);for(r=Object.getPrototypeOf(r);r.hasOwnProperty("$$iclass")&&!t(r);)r=Object.getPrototypeOf(r);a=d;d=r}z(a,v.first);z(v.last,d);a=[];for(d=Object.getPrototypeOf(b.$$prototype);d&&!d.hasOwnProperty("$$class");)(v=E(d))&&a.push(v),d=Object.getPrototypeOf(d);b.$$own_included_modules=a;k.const_cache_version++};k.prepend_features=function(a,b){var d=k.ancestors(a),v=[];if(-1!==d.indexOf(b))throw k.ArgumentError.$new("cyclic prepend detected");
35
+ for(var r=0,h=d.length;r<h;r++){var c=g(d[r]);m(c,"$$prepended",!0);v.push(c)}d=l(v);r=b.$$prototype;h=Object.getPrototypeOf(r);if(r.hasOwnProperty("$$dummy"))v=r.$$define_methods_on;else{v=H(b);c=b.$$prototype;for(var A=Object.getOwnPropertyNames(c),p=0;p<A.length;p++){var U=A[p];k.is_method(U)&&delete c[U]}m(r,"$$dummy",!0);m(r,"$$define_methods_on",v);z(r,v);z(v,h)}if(-1===k.ancestors(b).indexOf(a))for(a=r,r=Object.getPrototypeOf(r);null!=r&&!r.hasOwnProperty("$$root")&&r!==v&&r.hasOwnProperty("$$iclass");)r=
36
+ Object.getPrototypeOf(r);else throw k.RuntimeError.$new("Prepending a module multiple times is not supported");z(a,d.first);z(d.last,r);a=[];v=Object.getPrototypeOf(b.$$prototype);if(b.$$prototype.hasOwnProperty("$$dummy"))for(;v&&v!==b.$$prototype.$$define_methods_on;)(d=E(v))&&a.push(d),v=Object.getPrototypeOf(v);b.$$own_prepended_modules=a;k.const_cache_version++};k.bridge=function(a,b){if(a.hasOwnProperty("$$bridge"))throw k.ArgumentError.$new("already bridged");m(a,"$$bridge",b);z(a.prototype,
37
+ (b.$$super||k.Object).$$prototype);m(b,"$$prototype",a.prototype);m(b.$$prototype,"$$class",b);m(b,"$$constructor",a);m(b,"$$bridge",!0)};k.ancestors=function(a){if(!a)return[];if(a.$$ancestors_cache_version===k.const_cache_version)return a.$$ancestors;var b=[],d;var L=0;var r=a.$$own_prepended_modules.concat([a]).concat(a.$$own_included_modules);for(d=r.length;L<d;L++)b.push(r[L]);if(a.$$super)for(L=0,r=k.ancestors(a.$$super),d=r.length;L<d;L++)b.push(r[L]);a.$$ancestors_cache_version=k.const_cache_version;
38
+ return a.$$ancestors=b};k.included_modules=function(a){for(var b=[],d=Object.getPrototypeOf(a.$$prototype);d&&Object.getPrototypeOf(d);d=Object.getPrototypeOf(d))(a=E(d))&&a.$$is_module&&d.$$iclass&&d.$$included&&b.push(a);return b};k.add_stubs=function(a){for(var b=k.BasicObject.$$prototype,d=0,L=a.length;d<L;d++){var r=a[d],h=b[r];(null==h||h.$$stub)&&k.add_stub_for(b,r)}};k.add_stub_for=function(a,b){var d=k.stub_for(b);m(a,b,d)};k.stub_for=function(a){function b(){this.$method_missing.$$p=b.$$p;
39
+ b.$$p=null;for(var d=Array(arguments.length),v=0,r=d.length;v<r;v++)d[v]=arguments[v];return this.$method_missing.apply(this,[a.slice(1)].concat(d))}b.$$stub=!0;return b};k.ac=function(a,b,B,L){var d="";d=B.$$is_a_module?d+(B.$$name+"."):d+(B.$$class.$$name+"#");throw k.ArgumentError.$new("["+(d+L)+"] wrong number of arguments("+a+" for "+b+")");};k.block_ac=function(a,b,B){throw k.ArgumentError.$new("`block in "+B+"': wrong number of arguments ("+a+" for "+b+")");};k.find_super_dispatcher=function(a,
40
+ b,B,L,r){r="$"+b;var d;var c=a.hasOwnProperty("$$meta")?k.ancestors(a.$$meta):k.ancestors(a.$$class);for(B=c.indexOf(B.$$owner)+1;B<c.length;B++){var v=c[B].$$prototype;v.hasOwnProperty("$$dummy")&&(v=v.$$define_methods_on);if(v.hasOwnProperty(r)){r=v[r];r.$$stub||(d=r);break}}if(!L&&null==d&&k.Kernel.$method_missing===a.$method_missing)throw k.NoMethodError.$new("super: no superclass method `"+b+"' for "+a,b);return d};k.find_iter_super_dispatcher=function(a,b,B,L,r){if(!B)throw k.RuntimeError.$new("super called outside of method");
41
+ if(r&&B.$$define_meth)throw k.RuntimeError.$new("implicit argument passing of super from method defined by define_method() is not supported. Specify all arguments explicitly");B.$$def&&(b=B.$$jsid);return k.find_super_dispatcher(a,b,B,L)};k.ret=function(a){k.returner.$v=a;throw k.returner;};k.brk=function(a,b){b.$v=a;throw b;};k.new_brk=function(){return Error("unexpected break")};k.yield1=function(a,b){if("function"!==typeof a)throw k.LocalJumpError.$new("no block given");var d=a.$$has_top_level_mlhs_arg,
42
+ v=a.$$has_trailing_comma_in_args;if(1<a.length||(d||v)&&1===a.length)b=k.to_ary(b);return(1<a.length||v&&1===a.length)&&b.$$is_array?a.apply(null,b):a(b)};k.yieldX=function(a,b){if("function"!==typeof a)throw k.LocalJumpError.$new("no block given");if(1<a.length&&1===b.length&&b[0].$$is_array)return a.apply(null,b[0]);if(!b.$$is_array){for(var d=Array(b.length),v=0,r=d.length;v<r;v++)d[v]=b[v];return a.apply(null,d)}return a.apply(null,b)};k.rescue=function(a,b){for(var d=0;d<b.length;d++){var v=
43
+ b[d];if(v.$$is_array){if(v=k.rescue(a,v))return v}else if(v===k.JS.Error||v["$==="](a))return v}return null};k.is_a=function(a,b){if(null!=b&&a.$$meta===b||a.$$class===b||a.$$is_number&&b.$$is_number_class)return!0;var d,v=k.ancestors(a.$$is_class?k.get_singleton_class(a):a.$$meta||a.$$class);a=0;for(d=v.length;a<d;a++)if(v[a]===b)return!0;return!1};k.to_hash=function(a){if(a.$$is_hash)return a;if(a["$respond_to?"]("to_hash",!0)){var b=a.$to_hash();if(b.$$is_hash)return b;throw k.TypeError.$new("Can't convert "+
44
+ a.$$class+" to Hash ("+a.$$class+"#to_hash gives "+b.$$class+")");}throw k.TypeError.$new("no implicit conversion of "+a.$$class+" into Hash");};k.to_ary=function(b){if(b.$$is_array)return b;if(b["$respond_to?"]("to_ary",!0)){var d=b.$to_ary();if(d===a)return[b];if(d.$$is_array)return d;throw k.TypeError.$new("Can't convert "+b.$$class+" to Array ("+b.$$class+"#to_ary gives "+d.$$class+")");}return[b]};k.to_a=function(b){if(b.$$is_array)return b.slice();if(b["$respond_to?"]("to_a",!0)){var d=b.$to_a();
45
+ if(d===a)return[b];if(d.$$is_array)return d;throw k.TypeError.$new("Can't convert "+b.$$class+" to Array ("+b.$$class+"#to_a gives "+d.$$class+")");}return[b]};k.extract_kwargs=function(a){var b=a[a.length-1];return null!=b&&b["$respond_to?"]("to_hash",!0)?(ja.call(a,a.length-1,1),b.$to_hash()):k.hash2([],{})};k.kwrestargs=function(a,b){var d=[],v={},r=null;a=a.$$smap;for(r in a)b[r]||(d.push(r),v[r]=a[r]);return k.hash2(d,v)};k.send=function(a,b,B,L){var d="string"===typeof b?a["$"+b]:b;return null!=
46
+ d?("function"===typeof L&&(d.$$p=L),d.apply(a,B)):a.$method_missing.apply(a,[b].concat(B))};k.lambda=function(a){a.$$is_lambda=!0;return a};k.def=function(a,b,B){a===k.top?k.defn(k.Object,b,B):!a.$$eval&&a.$$is_a_module?k.defn(a,b,B):k.defs(a,b,B)};k.defn=function(a,b,B){B.displayName=b;B.$$owner=a;var d=a.$$prototype;d.hasOwnProperty("$$dummy")&&(d=d.$$define_methods_on);m(d,b,B);if(a.$$is_module){a.$$module_function&&k.defs(a,b,B);d=0;for(var r=a.$$iclasses,h=r.length;d<h;d++)m(r[d],b,B)}B=a.$$singleton_of;
47
+ !a.$method_added||a.$method_added.$$stub||B?B&&B.$singleton_method_added&&!B.$singleton_method_added.$$stub&&B.$singleton_method_added(b.substr(1)):a.$method_added(b.substr(1))};k.defs=function(a,b,B){if(a.$$is_string||a.$$is_number)throw k.TypeError.$new("can't define singleton");k.defn(k.get_singleton_class(a),b,B)};k.rdef=function(a,b){if(!pa.call(a.$$prototype,b))throw k.NameError.$new("method '"+b.substr(1)+"' not defined in "+a.$name());delete a.$$prototype[b];a.$$is_singleton?a.$$prototype.$singleton_method_removed&&
48
+ !a.$$prototype.$singleton_method_removed.$$stub&&a.$$prototype.$singleton_method_removed(b.substr(1)):a.$method_removed&&!a.$method_removed.$$stub&&a.$method_removed(b.substr(1))};k.udef=function(a,b){if(!a.$$prototype[b]||a.$$prototype[b].$$stub)throw k.NameError.$new("method '"+b.substr(1)+"' not defined in "+a.$name());k.add_stub_for(a.$$prototype,b);a.$$is_singleton?a.$$prototype.$singleton_method_undefined&&!a.$$prototype.$singleton_method_undefined.$$stub&&a.$$prototype.$singleton_method_undefined(b.substr(1)):
49
+ a.$method_undefined&&!a.$method_undefined.$$stub&&a.$method_undefined(b.substr(1))};k.alias=function(a,b,B){var d="$"+b,r="$"+B,h=a.$$prototype["$"+B];if(a.$$eval)return k.alias(k.get_singleton_class(a),b,B);if(!x(h)){for(var c=a.$$super;"function"!==typeof h&&c;)h=c[r],c=c.$$super;!x(h)&&a.$$is_module&&(h=k.Object.$$prototype[r]);if(!x(h))throw k.NameError.$new("undefined method `"+B+"' for class `"+a.$name()+"'");}h.$$alias_of&&(h=h.$$alias_of);var v=function(){var a=v.$$p,b;var c=Array(arguments.length);
50
+ var d=0;for(b=arguments.length;d<b;d++)c[d]=arguments[d];null!=a&&(v.$$p=null);return k.send(this,h,c,a)};v.displayName=b;v.length=h.length;v.$$arity=h.$$arity;v.$$parameters=h.$$parameters;v.$$source_location=h.$$source_location;v.$$alias_of=h;v.$$alias_name=b;k.defn(a,d,v);return a};k.alias_native=function(a,b,B){b="$"+b;var d=a.$$prototype[B];if("function"!==typeof d||d.$$stub)throw k.NameError.$new("undefined native method `"+B+"' for class `"+a.$name()+"'");k.defn(a,b,d);return a};k.hash_init=
51
+ function(a){a.$$smap=Object.create(null);a.$$map=Object.create(null);a.$$keys=[]};k.hash_clone=function(a,b){b.$$none=a.$$none;b.$$proc=a.$$proc;var d=0,v=a.$$keys;a=a.$$smap;for(var r=v.length,h,c;d<r;d++)h=v[d],h.$$is_string?c=a[h]:(c=h.value,h=h.key),k.hash_put(b,h,c)};k.hash_put=function(a,v,B){if(v.$$is_string)pa.call(a.$$smap,v)||a.$$keys.push(v),a.$$smap[v]=B;else{var d;var r=a.$$by_identity?k.id(v):v.$hash();if(pa.call(a.$$map,r)){for(d=a.$$map[r];d;){if(v===d.key||v["$eql?"](d.key)){var h=
52
+ b;d.value=B;break}h=d;d=d.next}h&&(d={key:v,key_hash:r,value:B},a.$$keys.push(d),h.next=d)}else d={key:v,key_hash:r,value:B},a.$$keys.push(d),a.$$map[r]=d}};k.hash_get=function(a,b){if(b.$$is_string){if(pa.call(a.$$smap,b))return a.$$smap[b]}else{var d=a.$$by_identity?k.id(b):b.$hash();if(pa.call(a.$$map,d))for(a=a.$$map[d];a;){if(b===a.key||b["$eql?"](a.key))return a.value;a=a.next}}};k.hash_delete=function(a,b){var d,v=a.$$keys,r=v.length;if(b.$$is_string){if(!pa.call(a.$$smap,b))return;for(d=0;d<
53
+ r;d++)if(v[d]===b){v.splice(d,1);break}var h=a.$$smap[b];delete a.$$smap[b];return h}var c=b.$hash();if(pa.call(a.$$map,c))for(var A=a.$$map[c],p;A;){if(b===A.key||b["$eql?"](A.key)){h=A.value;for(d=0;d<r;d++)if(v[d]===A){v.splice(d,1);break}p&&A.next?p.next=A.next:p?delete p.next:A.next?a.$$map[c]=A.next:delete a.$$map[c];return h}p=A;A=A.next}};k.hash_rehash=function(a){for(var d=0,B=a.$$keys.length,k,r,h;d<B;d++)if(!a.$$keys[d].$$is_string&&(k=a.$$keys[d].key.$hash(),k!==a.$$keys[d].key_hash)){r=
54
+ a.$$map[a.$$keys[d].key_hash];for(h=b;r;){if(r===a.$$keys[d]){h&&r.next?h.next=r.next:h?delete h.next:r.next?a.$$map[a.$$keys[d].key_hash]=r.next:delete a.$$map[a.$$keys[d].key_hash];break}h=r;r=r.next}a.$$keys[d].key_hash=k;if(pa.call(a.$$map,k)){r=a.$$map[k];for(h=b;r;){if(r===a.$$keys[d]){h=b;break}h=r;r=r.next}h&&(h.next=a.$$keys[d])}else a.$$map[k]=a.$$keys[d]}};k.hash=function(){var a=arguments.length,b;if(1===a&&arguments[0].$$is_hash)return arguments[0];var B=new k.Hash;k.hash_init(B);if(1===
55
+ a&&arguments[0].$$is_array){a=arguments[0];var L=a.length;for(b=0;b<L;b++){if(2!==a[b].length)throw k.ArgumentError.$new("value not of length 2: "+a[b].$inspect());var r=a[b][0];var h=a[b][1];k.hash_put(B,r,h)}return B}if(1===a){a=arguments[0];for(r in a)pa.call(a,r)&&(h=a[r],k.hash_put(B,r,h));return B}if(0!==a%2)throw k.ArgumentError.$new("odd number of arguments for Hash");for(b=0;b<a;b+=2)r=arguments[b],h=arguments[b+1],k.hash_put(B,r,h);return B};k.hash2=function(a,b){var d=new k.Hash;d.$$smap=
56
+ b;d.$$map=Object.create(null);d.$$keys=a;return d};k.range=function(a,b,B){var d=new k.Range;d.begin=a;d.end=b;d.excl=B;return d};k.ivar=function(a){return"constructor"===a||"displayName"===a||"__count__"===a||"__noSuchMethod__"===a||"__parent__"===a||"__proto__"===a||"hasOwnProperty"===a||"valueOf"===a?a+"$":a};k.escape_regexp=function(a){return a.replace(/([-[\]\/{}()*+?.^$\\| ])/g,"\\$1").replace(/[\n]/g,"\\n").replace(/[\r]/g,"\\r").replace(/[\f]/g,"\\f").replace(/[\t]/g,"\\t")};k.global_regexp=
57
+ function(a){if(a.global)return a;null==a.$$g?a.$$g=new RegExp(a.source,(a.multiline?"gm":"g")+(a.ignoreCase?"i":"")):a.$$g.lastIndex=null;return a.$$g};k.global_multiline_regexp=function(a){if(a.multiline){if(a.global)return a;a=null!=a.$$g?a.$$g:a.$$g=new RegExp(a.source,"gm"+(a.ignoreCase?"i":""))}else a=null!=a.$$gm?a.$$gm:a.$$gm=new RegExp(a.source,"gm"+(a.ignoreCase?"i":""));a.lastIndex=null;return a};k.modules={};k.loaded_features=["corelib/runtime"];k.current_dir=".";k.require_table={"corelib/runtime":!0};
58
+ k.normalize=function(a){var b=[];"."!==k.current_dir&&(a=k.current_dir.replace(/\/*$/,"/")+a);a=a.replace(/^\.\//,"");a=a.replace(/\.(rb|opal|js)$/,"");a=a.split("/");for(var d=0,L=a.length;d<L;d++){var r=a[d];""!==r&&(".."===r?b.pop():b.push(r))}return b.join("/")};k.loaded=function(a){var b;var d=0;for(b=a.length;d<b;d++){var L=k.normalize(a[d]);k.require_table[L]||(k.loaded_features.push(L),k.require_table[L]=!0)}};k.load=function(a){a=k.normalize(a);k.loaded([a]);var b=k.modules[a];if(b)b(k);
59
+ else{b=k.config.missing_require_severity;a="cannot load such file -- "+a;if("error"===b){if(k.LoadError)throw k.LoadError.$new(a);throw a;}"warning"===b&&O.warn("WARNING: LoadError: "+a)}return!0};k.require=function(a){a=k.normalize(a);return k.require_table[a]?!1:k.load(a)};k.encodings=Object.create(null);k.set_encoding=function(a,b){if("string"===typeof a)throw k.FrozenError.$new("can't modify frozen String");b=k.encodings[b];if(b===a.encoding)return a;a.encoding=b;return a};k.enc=function(a,b){a=
60
+ new String(a);k.set_encoding(a,b);a.internal_encoding=a.encoding;return a};k.BasicObject=P=k.allocate_class("BasicObject",null,function(){});k.Object=M=k.allocate_class("Object",k.BasicObject,function(){});k.Module=q=k.allocate_class("Module",k.Object,function(){});k.Class=G=k.allocate_class("Class",k.Module,function(){});z(k.BasicObject,k.Class.$$prototype);z(k.Object,k.Class.$$prototype);z(k.Module,k.Class.$$prototype);z(k.Class,k.Class.$$prototype);P.$$const.BasicObject=P;k.const_set(M,"BasicObject",
61
+ P);k.const_set(M,"Object",M);k.const_set(M,"Module",q);k.const_set(M,"Class",G);P.$$class=G;M.$$class=G;q.$$class=G;G.$$class=G;m(M.$$prototype,"toString",function(){var a=this.$to_s();return a.$$is_string&&"object"===typeof a?a.valueOf():a});m(M.$$prototype,"$require",k.require);k.$$=M.$$;k.top=new M;k.top.$to_s=k.top.$inspect=function(){return"main"};k.NilClass=k.allocate_class("NilClass",k.Object,function(){});k.const_set(M,"NilClass",k.NilClass);var a=k.nil=new k.NilClass;a.$$id=4;a.call=a.apply=
62
+ function(){throw k.LocalJumpError.$new("no block given");};k.breaker=Error("unexpected break (old)");k.returner=Error("unexpected return");TypeError.$$super=Error}).call(this);Opal.loaded(["corelib/runtime.js"]);
63
+ Opal.modules["corelib/helpers"]=function(b){var m=[],D=b.nil,C=b.const_get_relative,u=b.module,t=b.truthy;b.add_stubs("$new $class $=== $respond_to? $raise $type_error $__send__ $coerce_to $nil? $<=> $coerce_to! $!= $[] $upcase".split(" "));return function(g,m){g=u(g,"Opal");var l=[g].concat(m),E,x,q,O,P,M,G,k,H,R,z,F,ja,Z;b.defs(g,"$bridge",E=function(a,d){return b.bridge(a,d)},E.$$arity=2);b.defs(g,"$type_error",x=function(a,b,v,B){var d;null==v&&(v=D);null==B&&(B=D);return t(t(d=v)?B:d)?C(l,"TypeError").$new("can't convert "+
64
+ a.$class()+" into "+b+" ("+a.$class()+"#"+v+" gives "+B.$class()+")"):C(l,"TypeError").$new("no implicit conversion of "+a.$class()+" into "+b)},x.$$arity=-3);b.defs(g,"$coerce_to",q=function(a,b,v){if(t(b["$==="](a)))return a;t(a["$respond_to?"](v))||this.$raise(this.$type_error(a,b));return a.$__send__(v)},q.$$arity=3);b.defs(g,"$coerce_to!",O=function(a,b,v){var d=this.$coerce_to(a,b,v);t(b["$==="](d))||this.$raise(this.$type_error(a,b,v,d));return d},O.$$arity=3);b.defs(g,"$coerce_to?",P=function(a,
65
+ b,v){if(!t(a["$respond_to?"](v)))return D;var d=this.$coerce_to(a,b,v);if(t(d["$nil?"]()))return D;t(b["$==="](d))||this.$raise(this.$type_error(a,b,v,d));return d},P.$$arity=3);b.defs(g,"$try_convert",M=function(a,b,v){return t(b["$==="](a))?a:t(a["$respond_to?"](v))?a.$__send__(v):D},M.$$arity=3);b.defs(g,"$compare",G=function(a,b){var d=a["$<=>"](b);t(d===D)&&this.$raise(C(l,"ArgumentError"),"comparison of "+a.$class()+" with "+b.$class()+" failed");return d},G.$$arity=2);b.defs(g,"$destructure",
66
+ k=function(a){if(1==a.length)return a[0];if(a.$$is_array)return a;for(var b=Array(a.length),v=0,B=b.length;v<B;v++)b[v]=a[v];return b},k.$$arity=1);b.defs(g,"$respond_to?",H=function(a,b,v){null==v&&(v=!1);return null!=a&&a.$$class?a["$respond_to?"](b,v):!1},H.$$arity=-3);b.defs(g,"$inspect_obj",R=function(a){return b.inspect(a)},R.$$arity=1);b.defs(g,"$instance_variable_name!",z=function(a){a=C(l,"Opal")["$coerce_to!"](a,C(l,"String"),"to_str");t(/^@[a-zA-Z_][a-zA-Z0-9_]*?$/.test(a))||this.$raise(C(l,
67
+ "NameError").$new("'"+a+"' is not allowed as an instance variable name",a));return a},z.$$arity=1);b.defs(g,"$class_variable_name!",F=function(a){a=C(l,"Opal")["$coerce_to!"](a,C(l,"String"),"to_str");t(3>a.length||"@@"!==a.slice(0,2))&&this.$raise(C(l,"NameError").$new("`"+a+"' is not allowed as a class variable name",a));return a},F.$$arity=1);b.defs(g,"$const_name!",ja=function(a){a=C(l,"Opal")["$coerce_to!"](a,C(l,"String"),"to_str");t(a["$[]"](0)["$!="](a["$[]"](0).$upcase()))&&this.$raise(C(l,
68
+ "NameError"),"wrong constant name "+a);return a},ja.$$arity=1);b.defs(g,"$pristine",Z=function(a,d){var v=b.slice.call(arguments,1,arguments.length);for(var B,k=v.length-1;0<=k;k--)B=v[k],(B=a.$$prototype["$"+B])&&!B.$$stub&&(B.$$pristine=!0);return D},Z.$$arity=-2)}(m[0],m)};
69
+ Opal.modules["corelib/module"]=function(b){function m(b,g){return"number"===typeof b&&"number"===typeof g?b<g:b["$<"](g)}var D=[],C=b.nil,u=b.const_get_qualified,t=b.const_get_relative,g=b.klass,H=b.send,l=b.truthy,E=b.lambda,x=b.range,q=b.hash2;b.add_stubs("$module_eval $to_proc $=== $raise $equal? $< $> $nil? $attr_reader $attr_writer $class_variable_name! $new $const_name! $=~ $inject $split $const_get $== $!~ $start_with? $bind $call $class $append_features $included $name $cover? $size $merge $compile $proc $any? $prepend_features $prepended $to_s $__id__ $constants $include? $copy_class_variables $copy_constants".split(" "));
70
+ return function(O,$super,M){O=g(O,$super,"Module");var G=[O].concat(M),k,D,R,z,F,ja,Z,a,d,v,B,L,r,h,c,A,p,U,S,n,e,f,N,ea,ka,J,T,ba,y,ca,V,Ha,la,va,ta,ma,wa,Ba,Ma,Da,xa,ya,fa,I,Y,sa,La,qa,Oa,da,na,Ja,Va,Ua,$a,oa,Aa,ha;b.defs(O,"$allocate",k=function(){var a=b.allocate_module(C,function(){});this!==b.Module&&Object.setPrototypeOf(a,this.$$prototype);return a},k.$$arity=0);b.def(O,"$initialize",D=function(){var a=D.$$p,b=a||C;a&&(D.$$p=null);a&&(D.$$p=null);return b!==C?H(this,"module_eval",[],b.$to_proc()):
71
+ C},D.$$arity=0);b.def(O,"$===",R=function(a){return l(null==a)?!1:b.is_a(a,this)},R.$$arity=1);b.def(O,"$<",z=function(a){l(t(G,"Module")["$==="](a))||this.$raise(t(G,"TypeError"),"compared with non class/module");var c;if(this===a)return!1;var e=0;var f=b.ancestors(this);for(c=f.length;e<c;e++)if(f[e]===a)return!0;e=0;f=b.ancestors(a);for(c=f.length;e<c;e++)if(f[e]===this)return!1;return C},z.$$arity=1);b.def(O,"$<=",F=function(a){var b;return l(b=this["$equal?"](a))?b:m(this,a)},F.$$arity=1);b.def(O,
72
+ "$>",ja=function(a){l(t(G,"Module")["$==="](a))||this.$raise(t(G,"TypeError"),"compared with non class/module");return m(a,this)},ja.$$arity=1);b.def(O,"$>=",Z=function(a){var b;return l(b=this["$equal?"](a))?b:"number"===typeof this&&"number"===typeof a?this>a:this["$>"](a)},Z.$$arity=1);b.def(O,"$<=>",a=function(a){if(this===a)return 0;if(!l(t(G,"Module")["$==="](a)))return C;a=m(this,a);return l(a["$nil?"]())?C:l(a)?-1:1},a.$$arity=1);b.def(O,"$alias_method",d=function(a,c){b.alias(this,a,c);return this},
73
+ d.$$arity=2);b.def(O,"$alias_native",v=function(a,c){null==c&&(c=a);b.alias_native(this,a,c);return this},v.$$arity=-2);b.def(O,"$ancestors",B=function(){return b.ancestors(this)},B.$$arity=0);b.def(O,"$append_features",L=function(a){b.append_features(this,a);return this},L.$$arity=1);b.def(O,"$attr_accessor",r=function(a){var c=b.slice.call(arguments,0,arguments.length);H(this,"attr_reader",b.to_a(c));return H(this,"attr_writer",b.to_a(c))},r.$$arity=-1);b.alias(O,"attr","attr_accessor");b.def(O,
74
+ "$attr_reader",h=function(a){var c=b.slice.call(arguments,0,arguments.length);for(var e=this.$$prototype,f=c.length-1;0<=f;f--){var d=c[f],n="$"+d;d=b.ivar(d);var p=function(a){return function(){return null==this[a]?C:this[a]}}(d);b.defineProperty(e,d,C);p.$$parameters=[];p.$$arity=0;b.defn(this,n,p)}return C},h.$$arity=-1);b.def(O,"$attr_writer",c=function(a){var c=b.slice.call(arguments,0,arguments.length);for(var e=this.$$prototype,f=c.length-1;0<=f;f--){var d=c[f],n="$"+d+"=";d=b.ivar(d);var p=
75
+ function(a){return function(b){return this[a]=b}}(d);p.$$parameters=[["req"]];p.$$arity=1;b.defineProperty(e,d,C);b.defn(this,n,p)}return C},c.$$arity=-1);b.def(O,"$autoload",A=function(a,c){null==this.$$autoload&&(this.$$autoload={});b.const_cache_version++;this.$$autoload[a]=c;return C},A.$$arity=2);b.def(O,"$class_variables",p=function(){return Object.keys(b.class_variables(this))},p.$$arity=0);b.def(O,"$class_variable_get",U=function(a){a=t(G,"Opal")["$class_variable_name!"](a);var c=b.class_variables(this)[a];
76
+ null==c&&this.$raise(t(G,"NameError").$new("uninitialized class variable "+a+" in "+this,a));return c},U.$$arity=1);b.def(O,"$class_variable_set",S=function(a,c){a=t(G,"Opal")["$class_variable_name!"](a);return b.class_variable_set(this,a,c)},S.$$arity=2);b.def(O,"$class_variable_defined?",n=function(a){a=t(G,"Opal")["$class_variable_name!"](a);return b.class_variables(this).hasOwnProperty(a)},n.$$arity=1);b.def(O,"$remove_class_variable",e=function(a){a=t(G,"Opal")["$class_variable_name!"](a);if(b.hasOwnProperty.call(this.$$cvars,
77
+ a)){var c=this.$$cvars[a];delete this.$$cvars[a];return c}this.$raise(t(G,"NameError"),"cannot remove "+a+" for "+this)},e.$$arity=1);b.def(O,"$constants",f=function(a){null==a&&(a=!0);return b.constants(this,a)},f.$$arity=-1);b.defs(O,"$constants",N=function(a){if(null==a){a=(this.$$nesting||[]).concat(b.Object);var c,e={},f;var d=0;for(f=a.length;d<f;d++)for(c in a[d].$$const)e[c]=!0;return Object.keys(e)}return b.constants(this,a)},N.$$arity=-1);b.defs(O,"$nesting",ea=function(){return this.$$nesting||
78
+ []},ea.$$arity=0);b.def(O,"$const_defined?",ka=function(a,c){null==c&&(c=!0);a=t(G,"Opal")["$const_name!"](a);l(a["$=~"](u(t(G,"Opal"),"CONST_NAME_REGEXP")))||this.$raise(t(G,"NameError").$new("wrong constant name "+a,a));var e=[this],f;c&&(e=e.concat(b.ancestors(this)),this.$$is_module&&(e=e.concat([b.Object]).concat(b.ancestors(b.Object))));var d=0;for(f=e.length;d<f;d++)if(c=e[d],null!=c.$$const[a])return!0;return!1},ka.$$arity=-2);b.def(O,"$const_get",J=function(a,c){var e;null==c&&(c=!0);a=t(G,
79
+ "Opal")["$const_name!"](a);0===a.indexOf("::")&&"::"!==a&&(a=a.slice(2));if(l(-1!=a.indexOf("::")&&"::"!=a))return H(a.$split("::"),"inject",[this],(e=function(a,b){null==a&&(a=C);null==b&&(b=C);return a.$const_get(b)},e.$$s=this,e.$$arity=2,e));l(a["$=~"](u(t(G,"Opal"),"CONST_NAME_REGEXP")))||this.$raise(t(G,"NameError").$new("wrong constant name "+a,a));return c?t([this],a):b.const_get_local(this,a)},J.$$arity=-2);b.def(O,"$const_missing",T=function(a){var b;if(this.$$autoload&&(b=this.$$autoload[a]))return this.$require(b),
80
+ this.$const_get(a);b=this["$=="](t(G,"Object"))?a:""+this+"::"+a;return this.$raise(t(G,"NameError").$new("uninitialized constant "+b,a))},T.$$arity=1);b.def(O,"$const_set",ba=function(a,c){var e;a=t(G,"Opal")["$const_name!"](a);l(l(e=a["$!~"](u(t(G,"Opal"),"CONST_NAME_REGEXP")))?e:a["$start_with?"]("::"))&&this.$raise(t(G,"NameError").$new("wrong constant name "+a,a));b.const_set(this,a,c);return c},ba.$$arity=2);b.def(O,"$public_constant",y=function(a){return C},y.$$arity=1);b.def(O,"$define_method",
81
+ ca=function(a,c){var e=ca.$$p,f=e||C,d,n,p=this,h=C;e&&(ca.$$p=null);e&&(ca.$$p=null);l(void 0===c&&f===C)&&p.$raise(t(G,"ArgumentError"),"tried to create a Proc object without a block");f=l(d=f)?d:function(){h=c;return t(G,"Proc")["$==="](h)?c:t(G,"Method")["$==="](h)?c.$to_proc().$$unbound:t(G,"UnboundMethod")["$==="](h)?E((n=function(a){var e=n.$$s||this;var f=b.slice.call(arguments,0,arguments.length);e=c.$bind(e);return H(e,"call",b.to_a(f))},n.$$s=p,n.$$arity=-1,n)):p.$raise(t(G,"TypeError"),
82
+ "wrong argument type "+f.$class()+" (expected Proc/Method)")}();f.$$jsid=a;f.$$s=null;f.$$def=f;f.$$define_meth=!0;b.defn(p,"$"+a,f);return a},ca.$$arity=-2);b.def(O,"$remove_method",V=function(a){var c=b.slice.call(arguments,0,arguments.length);for(var e=0,f=c.length;e<f;e++)b.rdef(this,"$"+c[e]);return this},V.$$arity=-1);b.def(O,"$singleton_class?",Ha=function(){return!!this.$$is_singleton},Ha.$$arity=0);b.def(O,"$include",la=function(a){var c=b.slice.call(arguments,0,arguments.length);for(var e=
83
+ c.length-1;0<=e;e--){var f=c[e];f.$$is_module||this.$raise(t(G,"TypeError"),"wrong argument type "+f.$class()+" (expected Module)");f.$append_features(this);f.$included(this)}return this},la.$$arity=-1);b.def(O,"$included_modules",va=function(){return b.included_modules(this)},va.$$arity=0);b.def(O,"$include?",ta=function(a){a.$$is_module||this.$raise(t(G,"TypeError"),"wrong argument type "+a.$class()+" (expected Module)");var c,e=b.ancestors(this);var f=0;for(c=e.length;f<c;f++){var d=e[f];if(d===
84
+ a&&d!==this)return!0}return!1},ta.$$arity=1);b.def(O,"$instance_method",ma=function(a){var b=this.$$prototype["$"+a];b&&!b.$$stub||this.$raise(t(G,"NameError").$new("undefined method `"+a+"' for class `"+this.$name()+"'",a));return t(G,"UnboundMethod").$new(this,b.$$owner||this,b,a)},ma.$$arity=1);b.def(O,"$instance_methods",wa=function(a){null==a&&(a=!0);return l(a)?b.instance_methods(this):b.own_instance_methods(this)},wa.$$arity=-1);b.def(O,"$included",Ba=function(a){return C},Ba.$$arity=1);b.def(O,
85
+ "$extended",Ma=function(a){return C},Ma.$$arity=1);b.def(O,"$extend_object",Da=function(a){return C},Da.$$arity=1);b.def(O,"$method_added",xa=function(a){b.slice.call(arguments,0,arguments.length);return C},xa.$$arity=-1);b.def(O,"$method_removed",ya=function(a){b.slice.call(arguments,0,arguments.length);return C},ya.$$arity=-1);b.def(O,"$method_undefined",fa=function(a){b.slice.call(arguments,0,arguments.length);return C},fa.$$arity=-1);b.def(O,"$module_eval",I=function(a){var c=I.$$p,e=c||C,f,d,
86
+ n=C,p=C,h=p=p=C;c&&(I.$$p=null);c&&(I.$$p=null);c=b.slice.call(arguments,0,arguments.length);l(l(f=e["$nil?"]())?!!b.compile:f)?(l(x(1,3,!1)["$cover?"](c.$size()))||t(G,"Kernel").$raise(t(G,"ArgumentError"),"wrong number of arguments (0 for 1..3)"),f=[].concat(b.to_a(c)),n=null==f[0]?C:f[0],p=null==f[1]?C:f[1],f,p=q(["file","eval"],{file:l(f=p)?f:"(eval)",eval:!0}),p=b.hash({arity_check:!1}).$merge(p),h=t(G,"Opal").$compile(n,p),e=H(t(G,"Kernel"),"proc",[],(d=function(){return function(a){return eval(h)}(d.$$s||
87
+ this)},d.$$s=this,d.$$arity=0,d))):l(c["$any?"]())&&t(G,"Kernel").$raise(t(G,"ArgumentError"),"wrong number of arguments ("+c.$size()+" for 0)\n\n NOTE:If you want to enable passing a String argument please add \"require 'opal-parser'\" to your script\n");f=e.$$s;e.$$s=null;c=e.apply(this,[this]);e.$$s=f;return c},I.$$arity=-1);b.alias(O,"class_eval","module_eval");b.def(O,"$module_exec",Y=function(a){var c=Y.$$p,e=c||C;c&&(Y.$$p=null);c&&(Y.$$p=null);var f=b.slice.call(arguments,0,arguments.length);
88
+ e===C&&this.$raise(t(G,"LocalJumpError"),"no block given");c=e.$$s;e.$$s=null;f=e.apply(this,f);e.$$s=c;return f},Y.$$arity=-1);b.alias(O,"class_exec","module_exec");b.def(O,"$method_defined?",sa=function(a){a=this.$$prototype["$"+a];return!!a&&!a.$$stub},sa.$$arity=1);b.def(O,"$module_function",La=function(a){var c=b.slice.call(arguments,0,arguments.length);if(0===c.length)this.$$module_function=!0;else for(var e=0,f=c.length;e<f;e++){var d="$"+c[e];b.defs(this,d,this.$$prototype[d])}return this},
89
+ La.$$arity=-1);b.def(O,"$name",qa=function(){if(this.$$full_name)return this.$$full_name;for(var a=[],c=this;c;){if(c.$$name===C||null==c.$$name)return C;a.unshift(c.$$name);c=c.$$base_module;if(c===b.Object)break}return 0===a.length?C:this.$$full_name=a.join("::")},qa.$$arity=0);b.def(O,"$prepend",Oa=function(a){var c=b.slice.call(arguments,0,arguments.length);0===c.length&&this.$raise(t(G,"ArgumentError"),"wrong number of arguments (given 0, expected 1+)");for(var e=c.length-1;0<=e;e--){var f=c[e];
90
+ f.$$is_module||this.$raise(t(G,"TypeError"),"wrong argument type "+f.$class()+" (expected Module)");f.$prepend_features(this);f.$prepended(this)}return this},Oa.$$arity=-1);b.def(O,"$prepend_features",da=function(a){this.$$is_module||this.$raise(t(G,"TypeError"),"wrong argument type "+this.$class()+" (expected Module)");b.prepend_features(this,a);return this},da.$$arity=1);b.def(O,"$prepended",na=function(a){return C},na.$$arity=1);b.def(O,"$remove_const",Ja=function(a){return b.const_remove(this,
91
+ a)},Ja.$$arity=1);b.def(O,"$to_s",Va=function(){var a;return l(a=b.Module.$name.call(this))?a:"#<"+(this.$$is_module?"Module":"Class")+":0x"+this.$__id__().$to_s(16)+">"},Va.$$arity=0);b.def(O,"$undef_method",Ua=function(a){var c=b.slice.call(arguments,0,arguments.length);for(var e=0,f=c.length;e<f;e++)b.udef(this,"$"+c[e]);return this},Ua.$$arity=-1);b.def(O,"$instance_variables",$a=function(){var a=(b.Module.$$nesting=G,this.$constants());var c=[],e;for(e in this)this.hasOwnProperty(e)&&"$"!==e.charAt(0)&&
92
+ "constructor"!==e&&!a["$include?"](e)&&c.push("@"+e);return c},$a.$$arity=0);b.def(O,"$dup",oa=function(){var a=oa.$$p,c;a&&(oa.$$p=null);var e=0;var f=arguments.length;for(c=Array(f);e<f;e++)c[e]=arguments[e];a=H(this,b.find_super_dispatcher(this,"dup",oa,!1),c,a);a.$copy_class_variables(this);a.$copy_constants(this);return a},oa.$$arity=0);b.def(O,"$copy_class_variables",Aa=function(a){for(var b in a.$$cvars)this.$$cvars[b]=a.$$cvars[b]},Aa.$$arity=1);return(b.def(O,"$copy_constants",ha=function(a){var c;
93
+ a=a.$$const;for(c in a)b.const_set(this,c,a[c])},ha.$$arity=1),C)&&"copy_constants"}(D[0],null,D)};
94
+ Opal.modules["corelib/class"]=function(b){var m=b.top,D=[],C=b.nil,u=b.const_get_relative,t=b.klass,g=b.send;b.add_stubs("$require $class_eval $to_proc $initialize_copy $allocate $name $to_s".split(" "));m.$require("corelib/module");return function(m,$super,E){m=t(m,$super,"Class");var x=[m].concat(E),q,O,P,M,G,k,D;b.defs(m,"$new",q=function(k){var t=q.$$p,E=t||C;t&&(q.$$p=null);t&&(q.$$p=null);null==k&&(k=u(x,"Object"));if(!k.$$is_class)throw b.TypeError.$new("superclass must be a Class");t=b.allocate_class(C,
95
+ k);k.$inherited(t);E!==C&&g(t,"class_eval",[],E.$to_proc());return t},q.$$arity=-1);b.def(m,"$allocate",O=function(){var k=new this.$$constructor;k.$$id=b.uid();return k},O.$$arity=0);b.def(m,"$inherited",P=function(b){return C},P.$$arity=1);b.def(m,"$initialize_dup",M=function(b){this.$initialize_copy(b);this.$$full_name=this.$$name=null},M.$$arity=1);b.def(m,"$new",G=function(k){var g=G.$$p,q=g||C;g&&(G.$$p=null);g&&(G.$$p=null);g=b.slice.call(arguments,0,arguments.length);var t=this.$allocate();
96
+ b.send(t,t.$initialize,g,q);return t},G.$$arity=-1);b.def(m,"$superclass",k=function(){return this.$$super||C},k.$$arity=0);return(b.def(m,"$to_s",D=function(){D.$$p&&(D.$$p=null);var k=this.$$singleton_of;return k&&k.$$is_a_module?"#<Class:"+k.$name()+">":k?"#<Class:#<"+k.$$class.$name()+":0x"+b.id(k).$to_s(16)+">>":g(this,b.find_super_dispatcher(this,"to_s",D,!1),[],null)},D.$$arity=0),C)&&"to_s"}(D[0],null,D)};
97
+ Opal.modules["corelib/basic_object"]=function(b){var m=[],D=b.nil,C=b.const_get_qualified,u=b.klass,t=b.truthy,g=b.range,H=b.hash2,l=b.send;b.add_stubs("$== $! $nil? $cover? $size $raise $merge $compile $proc $any? $inspect $new".split(" "));return function(E,$super,q){E=u(E,$super,"BasicObject");[E].concat(q);var m,P,M,G,k,pa,R,z,F,ja,Z,a,d,v;b.def(E,"$initialize",m=function(a){b.slice.call(arguments,0,arguments.length);return D},m.$$arity=-1);b.def(E,"$==",P=function(a){return this===a},P.$$arity=
98
+ 1);b.def(E,"$eql?",M=function(a){return this["$=="](a)},M.$$arity=1);b.alias(E,"equal?","==");b.def(E,"$__id__",G=function(){if(null!=this.$$id)return this.$$id;b.defineProperty(this,"$$id",b.uid());return this.$$id},G.$$arity=0);b.def(E,"$__send__",k=function(a,d){var r=k.$$p,h=r||D;r&&(k.$$p=null);r&&(k.$$p=null);r=b.slice.call(arguments,1,arguments.length);var c=this["$"+a];if(c)return h!==D&&(c.$$p=h),c.apply(this,r);h!==D&&(this.$method_missing.$$p=h);return this.$method_missing.apply(this,[a].concat(r))},
99
+ k.$$arity=-2);b.def(E,"$!",pa=function(){return!1},pa.$$arity=0);b.def(E,"$!=",R=function(a){return this["$=="](a)["$!"]()},R.$$arity=1);b.def(E,"$instance_eval",z=function(a){var d=z.$$p,r=d||D,h,c,v=D,p=D,k=p=p=D;d&&(z.$$p=null);d&&(z.$$p=null);d=b.slice.call(arguments,0,arguments.length);t(t(h=r["$nil?"]())?!!b.compile:h)?(t(g(1,3,!1)["$cover?"](d.$size()))||C("::","Kernel").$raise(C("::","ArgumentError"),"wrong number of arguments (0 for 1..3)"),h=[].concat(b.to_a(d)),v=null==h[0]?D:h[0],p=null==
100
+ h[1]?D:h[1],h,p=H(["file","eval"],{file:t(h=p)?h:"(eval)",eval:!0}),p=b.hash({arity_check:!1}).$merge(p),k=C("::","Opal").$compile(v,p),r=l(C("::","Kernel"),"proc",[],(c=function(){return function(a){return eval(k)}(c.$$s||this)},c.$$s=this,c.$$arity=0,c))):t(d["$any?"]())&&C("::","Kernel").$raise(C("::","ArgumentError"),"wrong number of arguments ("+d.$size()+" for 0)");h=r.$$s;r.$$s=null;if(this.$$is_a_module){this.$$eval=!0;try{var B=r.call(this,this)}finally{this.$$eval=!1}}else B=r.call(this,
101
+ this);r.$$s=h;return B},z.$$arity=-1);b.def(E,"$instance_exec",F=function(a){var d=F.$$p,r=d||D;d&&(F.$$p=null);d&&(F.$$p=null);d=b.slice.call(arguments,0,arguments.length);t(r)||C("::","Kernel").$raise(C("::","ArgumentError"),"no block given");var h=r.$$s;r.$$s=null;if(this.$$is_a_module){this.$$eval=!0;try{var c=r.apply(this,d)}finally{this.$$eval=!1}}else c=r.apply(this,d);r.$$s=h;return c},F.$$arity=-1);b.def(E,"$singleton_method_added",ja=function(a){b.slice.call(arguments,0,arguments.length);
102
+ return D},ja.$$arity=-1);b.def(E,"$singleton_method_removed",Z=function(a){b.slice.call(arguments,0,arguments.length);return D},Z.$$arity=-1);b.def(E,"$singleton_method_undefined",a=function(a){b.slice.call(arguments,0,arguments.length);return D},a.$$arity=-1);b.def(E,"$class",d=function(){return this.$$class},d.$$arity=0);return(b.def(E,"$method_missing",v=function(a,d){var r=v.$$p;r&&(v.$$p=null);r&&(v.$$p=null);b.slice.call(arguments,1,arguments.length);r=t(this.$inspect&&!this.$inspect.$$stub)?
103
+ "undefined method `"+a+"' for "+this.$inspect()+":"+this.$$class:"undefined method `"+a+"' for "+this.$$class;return C("::","Kernel").$raise(C("::","NoMethodError").$new(r,a))},v.$$arity=-2),D)&&"method_missing"}(m[0],null,m)};
104
+ Opal.modules["corelib/kernel"]=function(b){function m(b,g){return"number"===typeof b&&"number"===typeof g?b<=g:b["$<="](g)}var D=[],C=b.nil,u=b.const_get_qualified,t=b.const_get_relative,g=b.module,H=b.truthy,l=b.gvars,E=b.hash2,x=b.send,q=b.klass;b.add_stubs("$raise $new $inspect $! $=~ $== $object_id $class $coerce_to? $<< $allocate $copy_instance_variables $copy_singleton_methods $initialize_clone $initialize_copy $define_method $singleton_class $to_proc $initialize_dup $for $empty? $pop $call $coerce_to $append_features $extend_object $extended $__id__ $to_s $instance_variable_name! $respond_to? $to_int $coerce_to! $Integer $nil? $=== $enum_for $result $any? $print $format $puts $each $<= $length $[] $exception $is_a? $rand $respond_to_missing? $try_convert! $expand_path $join $start_with? $new_seed $srand $sym $arg $open $include".split(" "));(function(q,
105
+ P){q=g(q,"Kernel");var M=[q].concat(P),G,k,D,R,z,F,O,Z,a,d,v,B,L,r,h,c,A,p,U,S,n,e,f,N,ea,ka,J,T,ba,y,ca,V,Ha,la,va,ta,ma,wa,Ba,Ma,Da,xa,ya,fa,I,Y,sa,La,qa,Oa,da,na,Ja,Va,Ua,$a,oa,Aa,ha,za,Ca,ua,Na,Ia,Ea;b.def(q,"$method_missing",G=function(a,c){var e=G.$$p;e&&(G.$$p=null);e&&(G.$$p=null);e=b.slice.call(arguments,1,arguments.length);return this.$raise(t(M,"NoMethodError").$new("undefined method `"+a+"' for "+this.$inspect(),a,e))},G.$$arity=-2);b.def(q,"$=~",k=function(a){return!1},k.$$arity=1);b.def(q,
106
+ "$!~",D=function(a){return this["$=~"](a)["$!"]()},D.$$arity=1);b.def(q,"$===",R=function(a){var b;return H(b=this.$object_id()["$=="](a.$object_id()))?b:this["$=="](a)},R.$$arity=1);b.def(q,"$<=>",z=function(a){this.$$comparable=!0;return(a=this["$=="](a))&&a!==C?0:C},z.$$arity=1);b.def(q,"$method",F=function(a){var b=this["$"+a];b&&!b.$$stub||this.$raise(t(M,"NameError").$new("undefined method `"+a+"' for class `"+this.$class()+"'",a));return t(M,"Method").$new(this,b.$$owner||this.$class(),b,a)},
107
+ F.$$arity=1);b.def(q,"$methods",O=function(a){null==a&&(a=!0);return H(a)?b.methods(this):b.own_methods(this)},O.$$arity=-1);b.def(q,"$public_methods",Z=function(a){null==a&&(a=!0);return H(a)?b.methods(this):b.receiver_methods(this)},Z.$$arity=-1);b.def(q,"$Array",a=function(a){if(a===C)return[];if(a.$$is_array)return a;var b=t(M,"Opal")["$coerce_to?"](a,t(M,"Array"),"to_ary");if(b!==C)return b;b=t(M,"Opal")["$coerce_to?"](a,t(M,"Array"),"to_a");return b!==C?b:[a]},a.$$arity=1);b.def(q,"$at_exit",
108
+ d=function(){var a=d.$$p,b=a||C,c;null==l.__at_exit__&&(l.__at_exit__=C);a&&(d.$$p=null);a&&(d.$$p=null);l.__at_exit__=H(c=l.__at_exit__)?c:[];return l.__at_exit__["$<<"](b)},d.$$arity=0);b.def(q,"$caller",v=function(a){b.slice.call(arguments,0,arguments.length);return[]},v.$$arity=-1);b.def(q,"$class",B=function(){return this.$$class},B.$$arity=0);b.def(q,"$copy_instance_variables",L=function(a){var b=Object.keys(a),c;var e=0;for(c=b.length;e<c;e++){var f=b[e];"$"!==f.charAt(0)&&a.hasOwnProperty(f)&&
109
+ (this[f]=a[f])}},L.$$arity=1);b.def(q,"$copy_singleton_methods",r=function(a){var c;if(a.hasOwnProperty("$$meta")){var e=b.get_singleton_class(a),f=b.get_singleton_class(this);var d=Object.getOwnPropertyNames(e.$$prototype);var n=0;for(c=d.length;n<c;n++){var p=d[n];b.is_method(p)&&(f.$$prototype[p]=e.$$prototype[p])}f.$$const=Object.assign({},e.$$const);Object.setPrototypeOf(f.$$prototype,Object.getPrototypeOf(e.$$prototype))}n=0;d=Object.getOwnPropertyNames(a);for(c=d.length;n<c;n++)p=d[n],"$"===
110
+ p.charAt(0)&&"$"!==p.charAt(1)&&a.hasOwnProperty(p)&&(this[p]=a[p])},r.$$arity=1);b.def(q,"$clone",h=function(a){if(null==a)E([],{});else if(!a.$$is_hash)throw b.ArgumentError.$new("expected kwargs");a=this.$class().$allocate();a.$copy_instance_variables(this);a.$copy_singleton_methods(this);a.$initialize_clone(this);return a},h.$$arity=-1);b.def(q,"$initialize_clone",c=function(a){return this.$initialize_copy(a)},c.$$arity=1);b.def(q,"$define_singleton_method",A=function(a,b){var c=A.$$p,e=c||C;
111
+ c&&(A.$$p=null);c&&(A.$$p=null);return x(this.$singleton_class(),"define_method",[a,b],e.$to_proc())},A.$$arity=-2);b.def(q,"$dup",p=function(){var a=this.$class().$allocate();a.$copy_instance_variables(this);a.$initialize_dup(this);return a},p.$$arity=0);b.def(q,"$initialize_dup",U=function(a){return this.$initialize_copy(a)},U.$$arity=1);b.def(q,"$enum_for",S=function(a,c){var e=S.$$p,f=e||C;e&&(S.$$p=null);e&&(S.$$p=null);e=b.slice.call(arguments,0,arguments.length);if(0<e.length){var d=e[0];e.splice(0,
112
+ 1)}null==d&&(d="each");return x(t(M,"Enumerator"),"for",[this,d].concat(b.to_a(e)),f.$to_proc())},S.$$arity=-1);b.alias(q,"to_enum","enum_for");b.def(q,"$equal?",n=function(a){return this===a},n.$$arity=1);b.def(q,"$exit",e=function(a){var c;null==l.__at_exit__&&(l.__at_exit__=C);null==a&&(a=!0);for(l.__at_exit__=H(c=l.__at_exit__)?c:[];!H(l.__at_exit__["$empty?"]());)c=l.__at_exit__.$pop(),c.$call();a=a.$$is_boolean?a?0:1:t(M,"Opal").$coerce_to(a,t(M,"Integer"),"to_int");b.exit(a);return C},e.$$arity=
113
+ -1);b.def(q,"$extend",f=function(a){var c=b.slice.call(arguments,0,arguments.length);for(var e=this.$singleton_class(),f=c.length-1;0<=f;f--){var d=c[f];d.$$is_module||this.$raise(t(M,"TypeError"),"wrong argument type "+d.$class()+" (expected Module)");d.$append_features(e);d.$extend_object(this);d.$extended(this)}return this},f.$$arity=-1);b.def(q,"$hash",N=function(){return this.$__id__()},N.$$arity=0);b.def(q,"$initialize_copy",ea=function(a){return C},ea.$$arity=1);b.def(q,"$inspect",ka=function(){return this.$to_s()},
114
+ ka.$$arity=0);b.def(q,"$instance_of?",J=function(a){a.$$is_class||a.$$is_module||this.$raise(t(M,"TypeError"),"class or module required");return this.$$class===a},J.$$arity=1);b.def(q,"$instance_variable_defined?",T=function(a){a=t(M,"Opal")["$instance_variable_name!"](a);return b.hasOwnProperty.call(this,a.substr(1))},T.$$arity=1);b.def(q,"$instance_variable_get",ba=function(a){a=t(M,"Opal")["$instance_variable_name!"](a);a=this[b.ivar(a.substr(1))];return null==a?C:a},ba.$$arity=1);b.def(q,"$instance_variable_set",
115
+ y=function(a,c){a=t(M,"Opal")["$instance_variable_name!"](a);return this[b.ivar(a.substr(1))]=c},y.$$arity=2);b.def(q,"$remove_instance_variable",ca=function(a){a=t(M,"Opal")["$instance_variable_name!"](a);var c=b.ivar(a.substr(1));return this.hasOwnProperty(c)?(a=this[c],delete this[c],a):this.$raise(t(M,"NameError"),"instance variable "+a+" not defined")},ca.$$arity=1);b.def(q,"$instance_variables",V=function(){var a=[],b;for(b in this)if(this.hasOwnProperty(b)&&"$"!==b.charAt(0)){var c="$"===b.substr(-1)?
116
+ b.slice(0,b.length-1):b;a.push("@"+c)}return a},V.$$arity=0);b.def(q,"$Integer",Ha=function(a,b){var c=this;if(!a.$$is_string){void 0!==b&&c.$raise(t(M,"ArgumentError"),"base specified for non string value");a===C&&c.$raise(t(M,"TypeError"),"can't convert nil into Integer");if(a.$$is_number)return(Infinity===a||-Infinity===a||isNaN(a))&&c.$raise(t(M,"FloatDomainError"),a),Math.floor(a);if(a["$respond_to?"]("to_int")){var e=a.$to_int();if(e!==C)return e}return t(M,"Opal")["$coerce_to!"](a,t(M,"Integer"),
117
+ "to_i")}if("0"===a)return 0;void 0===b?b=0:(b=t(M,"Opal").$coerce_to(b,t(M,"Integer"),"to_int"),(1===b||0>b||36<b)&&c.$raise(t(M,"ArgumentError"),"invalid radix "+b));e=a.toLowerCase();e=e.replace(/(\d)_(?=\d)/g,"$1");e=e.replace(/^(\s*[+-]?)(0[bodx]?)/,function(e,f,d){switch(d){case "0b":if(0===b||2===b)return b=2,f;case "0":case "0o":if(0===b||8===b)return b=8,f;case "0d":if(0===b||10===b)return b=10,f;case "0x":if(0===b||16===b)return b=16,f}c.$raise(t(M,"ArgumentError"),'invalid value for Integer(): "'+
118
+ a+'"')});b=0===b?10:b;var f="0-"+(10>=b?b-1:"9a-"+String.fromCharCode(97+(b-11)));(new RegExp("^\\s*[+-]?["+f+"]+\\s*$")).test(e)||c.$raise(t(M,"ArgumentError"),'invalid value for Integer(): "'+a+'"');e=parseInt(e,b);isNaN(e)&&c.$raise(t(M,"ArgumentError"),'invalid value for Integer(): "'+a+'"');return e},Ha.$$arity=-2);b.def(q,"$Float",la=function(a){a===C&&this.$raise(t(M,"TypeError"),"can't convert nil into Float");if(a.$$is_string){var b=a.toString();b=b.replace(/(\d)_(?=\d)/g,"$1");if(/^\s*[-+]?0[xX][0-9a-fA-F]+\s*$/.test(b))return this.$Integer(b);
119
+ /^\s*[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?\s*$/.test(b)||this.$raise(t(M,"ArgumentError"),'invalid value for Float(): "'+a+'"');return parseFloat(b)}return t(M,"Opal")["$coerce_to!"](a,t(M,"Float"),"to_f")},la.$$arity=1);b.def(q,"$Hash",va=function(a){var b;return H(H(b=a["$nil?"]())?b:a["$=="]([]))?E([],{}):H(t(M,"Hash")["$==="](a))?a:t(M,"Opal")["$coerce_to!"](a,t(M,"Hash"),"to_hash")},va.$$arity=1);b.def(q,"$is_a?",ta=function(a){a.$$is_class||a.$$is_module||this.$raise(t(M,"TypeError"),"class or module required");
120
+ return b.is_a(this,a)},ta.$$arity=1);b.def(q,"$itself",ma=function(){return this},ma.$$arity=0);b.alias(q,"kind_of?","is_a?");b.def(q,"$lambda",wa=function(){var a=wa.$$p,c=a||C;a&&(wa.$$p=null);a&&(wa.$$p=null);return b.lambda(c)},wa.$$arity=0);b.def(q,"$load",Ba=function(a){a=t(M,"Opal")["$coerce_to!"](a,t(M,"String"),"to_str");return b.load(a)},Ba.$$arity=1);b.def(q,"$loop",Ma=function(){var a,c=Ma.$$p,e=c||C,f=C;c&&(Ma.$$p=null);if(e===C)return x(this,"enum_for",["loop"],(a=function(){return u(t(M,
121
+ "Float"),"INFINITY")},a.$$s=this,a.$$arity=0,a));for(;H(!0);)try{b.yieldX(e,[])}catch(Ga){if(b.rescue(Ga,[t(M,"StopIteration")])){f=Ga;try{return f.$result()}finally{b.pop_exception()}}else throw Ga;}return this},Ma.$$arity=0);b.def(q,"$nil?",Da=function(){return!1},Da.$$arity=0);b.alias(q,"object_id","__id__");b.def(q,"$printf",xa=function(a){var c=b.slice.call(arguments,0,arguments.length);H(c["$any?"]())&&this.$print(x(this,"format",b.to_a(c)));return C},xa.$$arity=-1);b.def(q,"$proc",ya=function(){var a=
122
+ ya.$$p,b=a||C;a&&(ya.$$p=null);a&&(ya.$$p=null);H(b)||this.$raise(t(M,"ArgumentError"),"tried to create Proc object without a block");b.$$is_lambda=!1;return b},ya.$$arity=0);b.def(q,"$puts",fa=function(a){null==l.stdout&&(l.stdout=C);var c=b.slice.call(arguments,0,arguments.length);return x(l.stdout,"puts",b.to_a(c))},fa.$$arity=-1);b.def(q,"$p",I=function(a){var c;var e=b.slice.call(arguments,0,arguments.length);x(e,"each",[],(c=function(a){null==l.stdout&&(l.stdout=C);null==a&&(a=C);return l.stdout.$puts(a.$inspect())},
123
+ c.$$s=this,c.$$arity=1,c));return H(m(e.$length(),1))?e["$[]"](0):e},I.$$arity=-1);b.def(q,"$print",Y=function(a){null==l.stdout&&(l.stdout=C);var c=b.slice.call(arguments,0,arguments.length);return x(l.stdout,"print",b.to_a(c))},Y.$$arity=-1);b.def(q,"$warn",sa=function(a){var c;null==l.VERBOSE&&(l.VERBOSE=C);null==l.stderr&&(l.stderr=C);var e=b.slice.call(arguments,0,arguments.length);return H(H(c=l.VERBOSE["$nil?"]())?c:e["$empty?"]())?C:x(l.stderr,"puts",b.to_a(e))},sa.$$arity=-1);b.def(q,"$raise",
124
+ La=function(a,c,e){null==l["!"]&&(l["!"]=C);null==c&&(c=C);if(null==a&&l["!"]!==C)throw l["!"];null==a?a=t(M,"RuntimeError").$new():a.$$is_string?a=t(M,"RuntimeError").$new(a):a.$$is_class&&a["$respond_to?"]("exception")?a=a.$exception(c):a["$is_a?"](t(M,"Exception"))||(a=t(M,"TypeError").$new("exception class/object expected"));l["!"]!==C&&b.exceptions.push(l["!"]);l["!"]=a;throw a;},La.$$arity=-1);b.alias(q,"fail","raise");b.def(q,"$rand",qa=function(a){if(void 0===a)return u(t(M,"Random"),"DEFAULT").$rand();
125
+ a.$$is_number&&(0>a&&(a=Math.abs(a)),0!==a%1&&(a=a.$to_i()),0===a&&(a=void 0));return u(t(M,"Random"),"DEFAULT").$rand(a)},qa.$$arity=-1);b.def(q,"$respond_to?",Oa=function(a,b){null==b&&(b=!1);if(H(this["$respond_to_missing?"](a,b)))return!0;a=this["$"+a];return"function"!==typeof a||a.$$stub?!1:!0},Oa.$$arity=-2);b.def(q,"$respond_to_missing?",da=function(a,b){return!1},da.$$arity=-2);b.def(q,"$require",na=function(a){a=t(M,"Opal")["$coerce_to!"](a,t(M,"String"),"to_str");return b.require(a)},na.$$arity=
126
+ 1);b.def(q,"$require_relative",Ja=function(a){t(M,"Opal")["$try_convert!"](a,t(M,"String"),"to_str");a=t(M,"File").$expand_path(t(M,"File").$join(b.current_file,"..",a));return b.require(a)},Ja.$$arity=1);b.def(q,"$require_tree",Va=function(a){var c=[];a=t(M,"File").$expand_path(a);a=b.normalize(a);"."===a&&(a="");for(var e in b.modules)e["$start_with?"](a)&&c.push([e,b.require(e)]);return c},Va.$$arity=1);b.alias(q,"send","__send__");b.alias(q,"public_send","__send__");b.def(q,"$singleton_class",
127
+ Ua=function(){return b.get_singleton_class(this)},Ua.$$arity=0);b.def(q,"$sleep",$a=function(a){null==a&&(a=C);a===C&&this.$raise(t(M,"TypeError"),"can't convert NilClass into time interval");a.$$is_number||this.$raise(t(M,"TypeError"),"can't convert "+a.$class()+" into time interval");0>a&&this.$raise(t(M,"ArgumentError"),"time interval must be positive");for(var c=b.global.performance?function(){return performance.now()}:function(){return new Date},e=c();c()-e<=1E3*a;);return a},$a.$$arity=-1);
128
+ b.def(q,"$srand",oa=function(a){null==a&&(a=t(M,"Random").$new_seed());return t(M,"Random").$srand(a)},oa.$$arity=-1);b.def(q,"$String",Aa=function(a){var b;return H(b=t(M,"Opal")["$coerce_to?"](a,t(M,"String"),"to_str"))?b:t(M,"Opal")["$coerce_to!"](a,t(M,"String"),"to_s")},Aa.$$arity=1);b.def(q,"$tap",ha=function(){var a=ha.$$p,c=a||C;a&&(ha.$$p=null);a&&(ha.$$p=null);b.yield1(c,this);return this},ha.$$arity=0);b.def(q,"$to_proc",za=function(){return this},za.$$arity=0);b.def(q,"$to_s",Ca=function(){return"#<"+
129
+ this.$class()+":0x"+this.$__id__().$to_s(16)+">"},Ca.$$arity=0);b.def(q,"$catch",ua=function(a){var c=ua.$$p,e=c||C;c&&(ua.$$p=null);try{return b.yieldX(e,[])}catch(Fa){if(b.rescue(Fa,[t(M,"UncaughtThrowError")])){c=Fa;try{return c.$sym()["$=="](a)?c.$arg():this.$raise()}finally{b.pop_exception()}}else throw Fa;}},ua.$$arity=1);b.def(q,"$throw",Na=function(a){var c=b.slice.call(arguments,0,arguments.length);return this.$raise(t(M,"UncaughtThrowError"),c)},Na.$$arity=-1);b.def(q,"$open",Ia=function(a){var c=
130
+ Ia.$$p,e=c||C;c&&(Ia.$$p=null);c&&(Ia.$$p=null);c=b.slice.call(arguments,0,arguments.length);return x(t(M,"File"),"open",b.to_a(c),e.$to_proc())},Ia.$$arity=-1);b.def(q,"$yield_self",Ea=function(){var a,c=Ea.$$p,e=c||C;c&&(Ea.$$p=null);return e===C?x(this,"enum_for",["yield_self"],(a=function(){return 1},a.$$s=this,a.$$arity=0,a)):b.yield1(e,this)},Ea.$$arity=0)})(D[0],D);return function(b,$super,g){b=q(b,$super,"Object");g=[b].concat(g);return b.$include(t(g,"Kernel"))}(D[0],null,D)};
131
+ Opal.modules["corelib/error"]=function(b){var m=[],D=b.nil,C=b.const_get_relative,u=b.klass,t=b.send,g=b.truthy,H=b.module,l=b.hash2;b.add_stubs("$new $clone $to_s $empty? $class $raise $+ $attr_reader $[] $> $length $inspect".split(" "));(function(l,$super,q){l=u(l,$super,"Exception");var m=[l].concat(q),E,M,G,k,H,R,z,F,ja;l.$$prototype.message=D;b.defs(l,"$new",E=function(a){var d=b.slice.call(arguments,0,arguments.length);var v=0<d.length?d[0]:D,k=new this.$$constructor(v);k.name=this.$$name;k.message=
132
+ v;b.send(k,k.$initialize,d);b.config.enable_stack_trace&&Error.captureStackTrace&&Error.captureStackTrace(k,Z);return k},E.$$arity=-1);var Z=l.$new;b.defs(l,"$exception",M=function(a){var d=b.slice.call(arguments,0,arguments.length);return t(this,"new",b.to_a(d))},M.$$arity=-1);b.def(l,"$initialize",G=function(a){var d=b.slice.call(arguments,0,arguments.length);return this.message=0<d.length?d[0]:D},G.$$arity=-1);b.def(l,"$backtrace",k=function(){if(this.backtrace)return this.backtrace;var a=this.stack;
133
+ return"string"===typeof a?a.split("\n").slice(0,15):a?a.slice(0,15):[]},k.$$arity=0);b.def(l,"$exception",H=function(a){null==a&&(a=D);if(a===D||this===a)return this;var b=this.$clone();b.message=a;return b},H.$$arity=-1);b.def(l,"$message",R=function(){return this.$to_s()},R.$$arity=0);b.def(l,"$inspect",z=function(){var a=this.$to_s();return g(a["$empty?"]())?this.$class().$to_s():"#<"+this.$class().$to_s()+": "+this.$to_s()+">"},z.$$arity=0);b.def(l,"$set_backtrace",F=function(a){var b=!0,v;if(a===
134
+ D)this.backtrace=D;else if(a.$$is_string)this.backtrace=[a];else{if(a.$$is_array){var k=0;for(v=a.length;k<v;k++)if(!a[k].$$is_string){b=!1;break}}else b=!1;!1===b&&this.$raise(C(m,"TypeError"),"backtrace must be Array of String");this.backtrace=a}return a},F.$$arity=1);return(b.def(l,"$to_s",ja=function(){var a,b;return g(a=g(b=this.message)?this.message.$to_s():b)?a:this.$class().$to_s()},ja.$$arity=0),D)&&"to_s"})(m[0],Error,m);(function(b,$super,g){[u(b,$super,"ScriptError")].concat(g);return D})(m[0],
135
+ C(m,"Exception"),m);(function(b,$super,g){[u(b,$super,"SyntaxError")].concat(g);return D})(m[0],C(m,"ScriptError"),m);(function(b,$super,g){[u(b,$super,"LoadError")].concat(g);return D})(m[0],C(m,"ScriptError"),m);(function(b,$super,g){[u(b,$super,"NotImplementedError")].concat(g);return D})(m[0],C(m,"ScriptError"),m);(function(b,$super,g){[u(b,$super,"SystemExit")].concat(g);return D})(m[0],C(m,"Exception"),m);(function(b,$super,g){[u(b,$super,"NoMemoryError")].concat(g);return D})(m[0],C(m,"Exception"),
136
+ m);(function(b,$super,g){[u(b,$super,"SignalException")].concat(g);return D})(m[0],C(m,"Exception"),m);(function(b,$super,g){[u(b,$super,"Interrupt")].concat(g);return D})(m[0],C(m,"Exception"),m);(function(b,$super,g){[u(b,$super,"SecurityError")].concat(g);return D})(m[0],C(m,"Exception"),m);(function(b,$super,g){[u(b,$super,"StandardError")].concat(g);return D})(m[0],C(m,"Exception"),m);(function(b,$super,g){[u(b,$super,"EncodingError")].concat(g);return D})(m[0],C(m,"StandardError"),m);(function(b,
137
+ $super,g){[u(b,$super,"ZeroDivisionError")].concat(g);return D})(m[0],C(m,"StandardError"),m);(function(b,$super,g){[u(b,$super,"NameError")].concat(g);return D})(m[0],C(m,"StandardError"),m);(function(b,$super,g){[u(b,$super,"NoMethodError")].concat(g);return D})(m[0],C(m,"NameError"),m);(function(b,$super,g){[u(b,$super,"RuntimeError")].concat(g);return D})(m[0],C(m,"StandardError"),m);(function(b,$super,g){[u(b,$super,"FrozenError")].concat(g);return D})(m[0],C(m,"RuntimeError"),m);(function(b,
138
+ $super,g){[u(b,$super,"LocalJumpError")].concat(g);return D})(m[0],C(m,"StandardError"),m);(function(b,$super,g){[u(b,$super,"TypeError")].concat(g);return D})(m[0],C(m,"StandardError"),m);(function(b,$super,g){[u(b,$super,"ArgumentError")].concat(g);return D})(m[0],C(m,"StandardError"),m);(function(b,$super,g){[u(b,$super,"IndexError")].concat(g);return D})(m[0],C(m,"StandardError"),m);(function(b,$super,g){[u(b,$super,"StopIteration")].concat(g);return D})(m[0],C(m,"IndexError"),m);(function(b,
139
+ $super,g){[u(b,$super,"KeyError")].concat(g);return D})(m[0],C(m,"IndexError"),m);(function(b,$super,g){[u(b,$super,"RangeError")].concat(g);return D})(m[0],C(m,"StandardError"),m);(function(b,$super,g){[u(b,$super,"FloatDomainError")].concat(g);return D})(m[0],C(m,"RangeError"),m);(function(b,$super,g){[u(b,$super,"IOError")].concat(g);return D})(m[0],C(m,"StandardError"),m);(function(b,$super,g){[u(b,$super,"SystemCallError")].concat(g);return D})(m[0],C(m,"StandardError"),m);(function(l,x){l=[H(l,
140
+ "Errno")].concat(x);(function(l,$super,x){l=u(l,$super,"EINVAL");[l].concat(x);var q;return(b.defs(l,"$new",q=function(l){q.$$p&&(q.$$p=null);null==l&&(l=D);var k="Invalid argument";g(l)&&(l=" - "+l,k="number"===typeof k&&"number"===typeof l?k+l:k["$+"](l));return t(this,b.find_super_dispatcher(this,"new",q,!1,this.$$class.$$prototype),[k],null)},q.$$arity=-1),D)&&"new"})(l[0],C(l,"SystemCallError"),l)})(m[0],m);(function(l,$super,q){l=u(l,$super,"UncaughtThrowError");[l].concat(q);var m;l.$$prototype.sym=
141
+ D;l.$attr_reader("sym","arg");return(b.def(l,"$initialize",m=function(l){m.$$p&&(m.$$p=null);this.sym=l["$[]"](0);var q=l.$length();q="number"===typeof q?1<q:q["$>"](1);g(q)&&(this.arg=l["$[]"](1));return t(this,b.find_super_dispatcher(this,"initialize",m,!1),["uncaught throw "+this.sym.$inspect()],null)},m.$$arity=1),D)&&"initialize"})(m[0],C(m,"ArgumentError"),m);(function(g,$super,l){g=u(g,$super,"NameError");[g].concat(l);var q;g.$attr_reader("name");return(b.def(g,"$initialize",q=function(g,
142
+ l){q.$$p&&(q.$$p=null);null==l&&(l=D);t(this,b.find_super_dispatcher(this,"initialize",q,!1),[g],null);return this.name=l},q.$$arity=-2),D)&&"initialize"})(m[0],null,m);(function(g,$super,l){g=u(g,$super,"NoMethodError");[g].concat(l);var q;g.$attr_reader("args");return(b.def(g,"$initialize",q=function(g,l,m){q.$$p&&(q.$$p=null);null==l&&(l=D);null==m&&(m=[]);t(this,b.find_super_dispatcher(this,"initialize",q,!1),[g,l],null);return this.args=m},q.$$arity=-2),D)&&"initialize"})(m[0],null,m);(function(b,
143
+ $super,g){b=u(b,$super,"StopIteration");[b].concat(g);return b.$attr_reader("result")})(m[0],null,m);(function(m,$super,q){m=u(m,$super,"KeyError");var E=[m].concat(q),P,M,G;m.$$prototype.receiver=m.$$prototype.key=D;b.def(m,"$initialize",P=function(k,g){P.$$p&&(P.$$p=null);if(null==g)g=l([],{});else if(!g.$$is_hash)throw b.ArgumentError.$new("expected kwargs");var q=g.$$smap.receiver;null==q&&(q=D);g=g.$$smap.key;null==g&&(g=D);t(this,b.find_super_dispatcher(this,"initialize",P,!1),[k],null);this.receiver=
144
+ q;return this.key=g},P.$$arity=-2);b.def(m,"$receiver",M=function(){var b;return g(b=this.receiver)?b:this.$raise(C(E,"ArgumentError"),"no receiver is available")},M.$$arity=0);return(b.def(m,"$key",G=function(){var b;return g(b=this.key)?b:this.$raise(C(E,"ArgumentError"),"no key is available")},G.$$arity=0),D)&&"key"})(m[0],null,m);return function(b,g){b=[H(b,"JS")].concat(g);[u(b[0],null,"Error")].concat(b)}(m[0],m)};
145
+ Opal.modules["corelib/constants"]=function(b){var m=[],D=b.const_get_relative;b.const_set(m[0],"RUBY_PLATFORM","opal");b.const_set(m[0],"RUBY_ENGINE","opal");b.const_set(m[0],"RUBY_VERSION","2.5.1");b.const_set(m[0],"RUBY_ENGINE_VERSION","0.11.99.dev");b.const_set(m[0],"RUBY_RELEASE_DATE","2018-12-25");b.const_set(m[0],"RUBY_PATCHLEVEL",0);b.const_set(m[0],"RUBY_REVISION",0);b.const_set(m[0],"RUBY_COPYRIGHT","opal - Copyright (C) 2013-2018 Adam Beynon and the Opal contributors");return b.const_set(m[0],
146
+ "RUBY_DESCRIPTION","opal "+D(m,"RUBY_ENGINE_VERSION")+" ("+D(m,"RUBY_RELEASE_DATE")+" revision "+D(m,"RUBY_REVISION")+")")};Opal.modules["opal/base"]=function(b){var m=b.top;b.add_stubs(["$require"]);m.$require("corelib/runtime");m.$require("corelib/helpers");m.$require("corelib/module");m.$require("corelib/class");m.$require("corelib/basic_object");m.$require("corelib/kernel");m.$require("corelib/error");return m.$require("corelib/constants")};
147
+ Opal.modules["corelib/nil"]=function(b){var m=[],D=b.nil,C=b.const_get_relative,u=b.klass,t=b.hash2,g=b.truthy;b.add_stubs("$raise $name $new $> $length $Rational".split(" "));(function(m,$super,E){m=u(m,$super,"NilClass");var x=[m].concat(E),q,H,P,M,G,k,pa,R,z,F,ja,Z,a,d,v,B,L,r;m.$$prototype.$$meta=m;(function(a,c){var d=[a].concat(c),p;b.def(a,"$allocate",p=function(){return this.$raise(C(d,"TypeError"),"allocator undefined for "+this.$name())},p.$$arity=0);b.udef(a,"$new");return D})(b.get_singleton_class(m),
148
+ x);b.def(m,"$!",q=function(){return!0},q.$$arity=0);b.def(m,"$&",H=function(a){return!1},H.$$arity=1);b.def(m,"$|",P=function(a){return!1!==a&&a!==D},P.$$arity=1);b.def(m,"$^",M=function(a){return!1!==a&&a!==D},M.$$arity=1);b.def(m,"$==",G=function(a){return a===D},G.$$arity=1);b.def(m,"$dup",k=function(){return D},k.$$arity=0);b.def(m,"$clone",pa=function(a){if(null==a)t([],{});else if(!a.$$is_hash)throw b.ArgumentError.$new("expected kwargs");return D},pa.$$arity=-1);b.def(m,"$inspect",R=function(){return"nil"},
149
+ R.$$arity=0);b.def(m,"$nil?",z=function(){return!0},z.$$arity=0);b.def(m,"$singleton_class",F=function(){return C(x,"NilClass")},F.$$arity=0);b.def(m,"$to_a",ja=function(){return[]},ja.$$arity=0);b.def(m,"$to_h",Z=function(){return b.hash()},Z.$$arity=0);b.def(m,"$to_i",a=function(){return 0},a.$$arity=0);b.alias(m,"to_f","to_i");b.def(m,"$to_s",d=function(){return""},d.$$arity=0);b.def(m,"$to_c",v=function(){return C(x,"Complex").$new(0,0)},v.$$arity=0);b.def(m,"$rationalize",B=function(a){var c=
150
+ b.slice.call(arguments,0,arguments.length).$length();c="number"===typeof c?1<c:c["$>"](1);g(c)&&this.$raise(C(x,"ArgumentError"));return this.$Rational(0,1)},B.$$arity=-1);b.def(m,"$to_r",L=function(){return this.$Rational(0,1)},L.$$arity=0);return(b.def(m,"$instance_variables",r=function(){return[]},r.$$arity=0),D)&&"instance_variables"})(m[0],null,m);return b.const_set(m[0],"NIL",D)};
151
+ Opal.modules["corelib/boolean"]=function(b){var m=[],D=b.nil,C=b.const_get_relative,u=b.klass,t=b.hash2;b.add_stubs(["$raise","$name"]);(function(g,$super,l){g=u(g,$super,"Boolean");var m=[g].concat(l),x,q,O,P,M,G,k,pa,R,z;b.defineProperty(g.$$prototype,"$$is_boolean",!0);b.defineProperty(g.$$prototype,"$$meta",g);(function(g,k){var l=[g].concat(k),a;b.def(g,"$allocate",a=function(){return this.$raise(C(l,"TypeError"),"allocator undefined for "+this.$name())},a.$$arity=0);b.udef(g,"$new");return D})(b.get_singleton_class(g),
152
+ m);b.def(g,"$__id__",x=function(){return this.valueOf()?2:0},x.$$arity=0);b.alias(g,"object_id","__id__");b.def(g,"$!",q=function(){return 1!=this},q.$$arity=0);b.def(g,"$&",O=function(b){return 1==this?!1!==b&&b!==D:!1},O.$$arity=1);b.def(g,"$|",P=function(b){return 1==this?!0:!1!==b&&b!==D},P.$$arity=1);b.def(g,"$^",M=function(b){return 1==this?!1===b||b===D:!1!==b&&b!==D},M.$$arity=1);b.def(g,"$==",G=function(b){return 1==this===b.valueOf()},G.$$arity=1);b.alias(g,"equal?","==");b.alias(g,"eql?",
153
+ "==");b.def(g,"$singleton_class",k=function(){return C(m,"Boolean")},k.$$arity=0);b.def(g,"$to_s",pa=function(){return 1==this?"true":"false"},pa.$$arity=0);b.def(g,"$dup",R=function(){return this},R.$$arity=0);return(b.def(g,"$clone",z=function(g){if(null==g)t([],{});else if(!g.$$is_hash)throw b.ArgumentError.$new("expected kwargs");return this},z.$$arity=-1),D)&&"clone"})(m[0],Boolean,m);b.const_set(m[0],"TrueClass",C(m,"Boolean"));b.const_set(m[0],"FalseClass",C(m,"Boolean"));b.const_set(m[0],
154
+ "TRUE",!0);return b.const_set(m[0],"FALSE",!1)};
155
+ Opal.modules["corelib/comparable"]=function(b){function m(b,g){return"number"===typeof b&&"number"===typeof g?b>g:b["$>"](g)}function D(b,g){return"number"===typeof b&&"number"===typeof g?b<g:b["$<"](g)}var C=[],u=b.nil,t=b.const_get_relative,g=b.module,H=b.truthy;b.add_stubs("$=== $> $< $equal? $<=> $normalize $raise $class".split(" "));return function(l,E){l=g(l,"Comparable");var x=[l].concat(E),q,C,P,M,G,k,pa,R;b.defs(l,"$normalize",q=function(b){return H(t(x,"Integer")["$==="](b))?b:H(m(b,0))?
156
+ 1:H(D(b,0))?-1:0},q.$$arity=1);b.def(l,"$==",C=function(g){var k=u;try{return H(this["$equal?"](g))?!0:this["$<=>"]==b.Kernel["$<=>"]?!1:this.$$comparable?(delete this.$$comparable,!1):H(k=this["$<=>"](g))?0==t(x,"Comparable").$normalize(k):!1}catch(ja){if(b.rescue(ja,[t(x,"StandardError")]))try{return!1}finally{b.pop_exception()}else throw ja;}},C.$$arity=1);b.def(l,"$>",P=function(b){var g;H(g=this["$<=>"](b))||this.$raise(t(x,"ArgumentError"),"comparison of "+this.$class()+" with "+b.$class()+
157
+ " failed");return 0<t(x,"Comparable").$normalize(g)},P.$$arity=1);b.def(l,"$>=",M=function(b){var g;H(g=this["$<=>"](b))||this.$raise(t(x,"ArgumentError"),"comparison of "+this.$class()+" with "+b.$class()+" failed");return 0<=t(x,"Comparable").$normalize(g)},M.$$arity=1);b.def(l,"$<",G=function(b){var g;H(g=this["$<=>"](b))||this.$raise(t(x,"ArgumentError"),"comparison of "+this.$class()+" with "+b.$class()+" failed");return 0>t(x,"Comparable").$normalize(g)},G.$$arity=1);b.def(l,"$<=",k=function(b){var g;
158
+ H(g=this["$<=>"](b))||this.$raise(t(x,"ArgumentError"),"comparison of "+this.$class()+" with "+b.$class()+" failed");return 0>=t(x,"Comparable").$normalize(g)},k.$$arity=1);b.def(l,"$between?",pa=function(b,g){return D(this,b)||m(this,g)?!1:!0},pa.$$arity=2);b.def(l,"$clamp",R=function(b,g){var k=b["$<=>"](g);H(k)||this.$raise(t(x,"ArgumentError"),"comparison of "+b.$class()+" with "+g.$class()+" failed");H(m(t(x,"Comparable").$normalize(k),0))&&this.$raise(t(x,"ArgumentError"),"min argument must be smaller than max argument");
159
+ return H(D(t(x,"Comparable").$normalize(this["$<=>"](b)),0))?b:H(m(t(x,"Comparable").$normalize(this["$<=>"](g)),0))?g:this},R.$$arity=2)}(C[0],C)};
160
+ Opal.modules["corelib/regexp"]=function(b){var m=[],D=b.nil,C=b.const_get_relative,u=b.klass,t=b.send,g=b.truthy,H=b.gvars;b.add_stubs("$nil? $[] $raise $escape $options $to_str $new $join $coerce_to! $! $match $coerce_to? $begin $coerce_to $=~ $attr_reader $=== $inspect $to_a".split(" "));(function(b,$super,g){[u(b,$super,"RegexpError")].concat(g);return D})(m[0],C(m,"StandardError"),m);(function(l,$super,m){l=u(l,$super,"Regexp");var q=[l].concat(m),x,P,M,G,k,pa,R,z,F,ja;b.const_set(q[0],"IGNORECASE",
161
+ 1);b.const_set(q[0],"EXTENDED",2);b.const_set(q[0],"MULTILINE",4);b.defineProperty(l.$$prototype,"$$is_regexp",!0);(function(k,a){var d=[k].concat(a),v,B,l,r,h;b.def(k,"$allocate",v=function(){var a=v.$$p,d;a&&(v.$$p=null);var p=0;var h=arguments.length;for(d=Array(h);p<h;p++)d[p]=arguments[p];a=t(this,b.find_super_dispatcher(this,"allocate",v,!1),d,a);a.uninitialized=!0;return a},v.$$arity=0);b.def(k,"$escape",B=function(a){return b.escape_regexp(a)},B.$$arity=1);b.def(k,"$last_match",l=function(a){null==
162
+ H["~"]&&(H["~"]=D);null==a&&(a=D);return g(a["$nil?"]())?H["~"]:H["~"]["$[]"](a)},l.$$arity=-1);b.alias(k,"quote","escape");b.def(k,"$union",r=function(a){var c=b.slice.call(arguments,0,arguments.length);if(0==c.length)return/(?!)/;if(1==c.length&&c[0].$$is_regexp)return c[0];var p=c[0].$$is_array;1<c.length&&p&&this.$raise(C(d,"TypeError"),"no implicit conversion of Array into String");p&&(c=c[0]);var h=void 0;p=[];for(var r=0;r<c.length;r++){var n=c[r];if(n.$$is_string)p.push(this.$escape(n));else if(n.$$is_regexp){var e=
163
+ n.$options();void 0!=h&&h!=e&&this.$raise(C(d,"TypeError"),"All expressions must use the same options");h=e;p.push("("+n.source+")")}else p.push(this.$escape(n.$to_str()))}return this.$new(p.$join("|"),h)},r.$$arity=-1);return(b.def(k,"$new",h=function(a,b){if(a.$$is_regexp)return new RegExp(a);a=C(d,"Opal")["$coerce_to!"](a,C(d,"String"),"to_str");"\\"===a.charAt(a.length-1)&&"\\"!==a.charAt(a.length-2)&&this.$raise(C(d,"RegexpError"),"too short escape sequence: /"+a+"/");if(void 0===b||b["$!"]())return new RegExp(a);
164
+ if(b.$$is_number){var c="";C(d,"IGNORECASE")&b&&(c+="i");C(d,"MULTILINE")&b&&(c+="m");b=c}else b="i";return new RegExp(a,b)},h.$$arity=-2),D)&&"new"})(b.get_singleton_class(l),q);b.def(l,"$==",x=function(b){return b instanceof RegExp&&this.toString()===b.toString()},x.$$arity=1);b.def(l,"$===",P=function(b){return this.$match(C(q,"Opal")["$coerce_to?"](b,C(q,"String"),"to_str"))!==D},P.$$arity=1);b.def(l,"$=~",M=function(b){var a;null==H["~"]&&(H["~"]=D);return g(a=this.$match(b))?H["~"].$begin(0):
165
+ a},M.$$arity=1);b.alias(l,"eql?","==");b.def(l,"$inspect",G=function(){var b=this.toString(),a=/^\/(.*)\/([^\/]*)$/.exec(b);if(a){b=a[2];a=a[1].split("");for(var d=a.length,v=!1,g="",k=0;k<d;k++){var r=a[k];v||"/"!=r||(g=g.concat("\\"));g=g.concat(r);v="\\"==r?v?!1:!0:!1}return"/"+g+"/"+b}return b},G.$$arity=0);b.def(l,"$match",k=function(g,a){var d=k.$$p,v=d||D;null==H["~"]&&(H["~"]=D);d&&(k.$$p=null);d&&(k.$$p=null);this.uninitialized&&this.$raise(C(q,"TypeError"),"uninitialized Regexp");if(void 0===
166
+ a)return g===D?H["~"]=D:(g=this.exec(C(q,"Opal").$coerce_to(g,C(q,"String"),"to_str")))?(H["~"]=C(q,"MatchData").$new(this,g),v===D?H["~"]:b.yield1(v,H["~"])):H["~"]=D;a=C(q,"Opal").$coerce_to(a,C(q,"Integer"),"to_int");if(g===D)return H["~"]=D;g=C(q,"Opal").$coerce_to(g,C(q,"String"),"to_str");if(0>a&&(a+=g.length,0>a))return H["~"]=D;for(var B=b.global_regexp(this);;){d=B.exec(g);if(null===d)return H["~"]=D;if(d.index>=a)return H["~"]=C(q,"MatchData").$new(B,d),v===D?H["~"]:b.yield1(v,H["~"]);B.lastIndex=
167
+ d.index+1}},k.$$arity=-2);b.def(l,"$match?",pa=function(g,a){this.uninitialized&&this.$raise(C(q,"TypeError"),"uninitialized Regexp");if(void 0===a)return g===D?!1:this.test(C(q,"Opal").$coerce_to(g,C(q,"String"),"to_str"));a=C(q,"Opal").$coerce_to(a,C(q,"Integer"),"to_int");if(g===D)return!1;g=C(q,"Opal").$coerce_to(g,C(q,"String"),"to_str");if(0>a&&(a+=g.length,0>a))return!1;g=b.global_regexp(this).exec(g);return null===g||g.index<a?!1:!0},pa.$$arity=-2);b.def(l,"$~",R=function(){null==H._&&(H._=
168
+ D);return this["$=~"](H._)},R.$$arity=0);b.def(l,"$source",z=function(){return this.source},z.$$arity=0);b.def(l,"$options",F=function(){this.uninitialized&&this.$raise(C(q,"TypeError"),"uninitialized Regexp");var b=0;this.multiline&&(b|=C(q,"MULTILINE"));this.ignoreCase&&(b|=C(q,"IGNORECASE"));return b},F.$$arity=0);b.def(l,"$casefold?",ja=function(){return this.ignoreCase},ja.$$arity=0);return b.alias(l,"to_s","source")})(m[0],RegExp,m);return function(l,$super,m){l=u(l,$super,"MatchData");var q=
169
+ [l].concat(m),x,P,M,G,k,pa,R,z,F,ja,Z,a;l.$$prototype.matches=D;l.$attr_reader("post_match","pre_match","regexp","string");b.def(l,"$initialize",x=function(a,b){H["~"]=this;this.regexp=a;this.begin=b.index;this.string=b.input;this.pre_match=b.input.slice(0,b.index);this.post_match=b.input.slice(b.index+b[0].length);this.matches=[];a=0;for(var d=b.length;a<d;a++){var g=b[a];null==g?this.matches.push(D):this.matches.push(g)}},x.$$arity=2);b.def(l,"$[]",P=function(a){var d=b.slice.call(arguments,0,arguments.length);
170
+ return t(this.matches,"[]",b.to_a(d))},P.$$arity=-1);b.def(l,"$offset",M=function(a){0!==a&&this.$raise(C(q,"ArgumentError"),"MatchData#offset only supports 0th element");return[this.begin,this.begin+this.matches[a].length]},M.$$arity=1);b.def(l,"$==",G=function(a){var b,d,k,r;return g(C(q,"MatchData")["$==="](a))?g(b=g(d=g(k=g(r=this.string==a.string)?this.regexp.toString()==a.regexp.toString():r)?this.pre_match==a.pre_match:k)?this.post_match==a.post_match:d)?this.begin==a.begin:b:!1},G.$$arity=
171
+ 1);b.alias(l,"eql?","==");b.def(l,"$begin",k=function(a){0!==a&&this.$raise(C(q,"ArgumentError"),"MatchData#begin only supports 0th element");return this.begin},k.$$arity=1);b.def(l,"$end",pa=function(a){0!==a&&this.$raise(C(q,"ArgumentError"),"MatchData#end only supports 0th element");return this.begin+this.matches[a].length},pa.$$arity=1);b.def(l,"$captures",R=function(){return this.matches.slice(1)},R.$$arity=0);b.def(l,"$inspect",z=function(){for(var a="#<MatchData "+this.matches[0].$inspect(),
172
+ b=1,g=this.matches.length;b<g;b++)a+=" "+b+":"+this.matches[b].$inspect();return a+">"},z.$$arity=0);b.def(l,"$length",F=function(){return this.matches.length},F.$$arity=0);b.alias(l,"size","length");b.def(l,"$to_a",ja=function(){return this.matches},ja.$$arity=0);b.def(l,"$to_s",Z=function(){return this.matches[0]},Z.$$arity=0);return(b.def(l,"$values_at",a=function(a){var d=b.slice.call(arguments,0,arguments.length);var g,k=[];for(g=0;g<d.length;g++){if(d[g].$$is_range){var r=d[g].$to_a();r.unshift(g,
173
+ 1);Array.prototype.splice.apply(d,r)}r=C(q,"Opal")["$coerce_to!"](d[g],C(q,"Integer"),"to_int");if(0>r&&(r+=this.matches.length,0>r)){k.push(D);continue}k.push(this.matches[r])}return k},a.$$arity=-1),D)&&"values_at"}(m[0],null,m)};
174
+ Opal.modules["corelib/string"]=function(b){function m(b,g){return"number"===typeof b&&"number"===typeof g?b/g:b["$/"](g)}function D(b,g){return"number"===typeof b&&"number"===typeof g?b+g:b["$+"](g)}var C=b.top,u=[],t=b.nil,g=b.const_get_relative,H=b.klass,l=b.truthy,E=b.send,x=b.gvars;b.add_stubs("$require $include $coerce_to? $coerce_to $raise $=== $format $to_s $respond_to? $to_str $<=> $== $=~ $new $force_encoding $casecmp $empty? $ljust $ceil $/ $+ $rjust $floor $to_a $each_char $to_proc $coerce_to! $copy_singleton_methods $initialize_clone $initialize_dup $enum_for $size $chomp $[] $to_i $each_line $class $match $match? $captures $proc $succ $escape".split(" "));
175
+ C.$require("corelib/comparable");C.$require("corelib/regexp");(function(q,$super,u){function P(a){function b(a){var b="",c,e=a.length;for(c=0;c<e;c++){var f=a.charAt(c);if("-"===f&&0<c&&c<e-1&&!d){var d=a.charCodeAt(c-1);f=a.charCodeAt(c+1);d>f&&G.$raise(g(k,"ArgumentError"),'invalid range "'+d+"-"+f+'" in string transliteration');for(d+=1;d<f+1;d++)b+=String.fromCharCode(d);d=!0;c++}else d="\\"===f,b+=f}return b}function c(a,b){if(0===a.length)return b;var c="",e,f=a.length;for(e=0;e<f;e++){var d=
176
+ a.charAt(e);-1!==b.indexOf(d)&&(c+=d)}return c}var e,f="",d="";var w=0;for(e=a.length;w<e;w++){var Q=g(k,"Opal").$coerce_to(a[w],g(k,"String"),"to_str");var n="^"===Q.charAt(0)&&1<Q.length;Q=b(n?Q.slice(1):Q);n?d=c(d,Q):f=c(f,Q)}if(0<f.length&&0<d.length){Q="";w=0;for(e=f.length;w<e;w++)a=f.charAt(w),-1===d.indexOf(a)&&(Q+=a);f=Q;d=""}return 0<f.length?"["+g(k,"Regexp").$escape(f)+"]":0<d.length?"[^"+g(k,"Regexp").$escape(d)+"]":null}var G=H(q,$super,"String"),k=[G].concat(u),C,R,z,F,ja,Z,a,d,v,B,
177
+ L,r,h,c,A,p,U,S,n,e,f,N,ea,ka,J,T,ba,y,ca,V,Ha,la,va,ta,ma,wa,Ba,Ma,Da,xa,ya,fa,I,Y,sa,La,qa,Oa,da,na,Ja,Va,Ua,$a,oa,Aa,ha,za,Ca,ua,Na,Ia,Ea,Sa,Qa,Pa,Fa,Ga,Wa,Ta,Xa,Ya,bb,Za,ia,w;G.$include(g(k,"Comparable"));b.defineProperty(G.$$prototype,"$$is_string",!0);b.defineProperty(G.$$prototype,"$$cast",function(a){var b=this.$$class;return b.$$constructor===String?a:new b.$$constructor(a)});b.def(G,"$__id__",C=function(){return this.toString()},C.$$arity=0);b.alias(G,"object_id","__id__");b.defs(G,"$try_convert",
178
+ R=function(a){return g(k,"Opal")["$coerce_to?"](a,g(k,"String"),"to_str")},R.$$arity=1);b.defs(G,"$new",z=function(a){null==a&&(a="");a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str");return new this.$$constructor(a)},z.$$arity=-1);b.def(G,"$initialize",F=function(a){return void 0===a?this:this.$raise(g(k,"NotImplementedError"),"Mutable strings are not supported in Opal.")},F.$$arity=-1);b.def(G,"$%",ja=function(a){return l(g(k,"Array")["$==="](a))?E(this,"format",[this].concat(b.to_a(a))):this.$format(this,
179
+ a)},ja.$$arity=1);b.def(G,"$*",Z=function(a){a=g(k,"Opal").$coerce_to(a,g(k,"Integer"),"to_int");0>a&&this.$raise(g(k,"ArgumentError"),"negative argument");if(0===a)return this.$$cast("");var b="",c=this.toString();for(268435456<=c.length*a&&this.$raise(g(k,"RangeError"),"multiply count must not overflow maximum string size");;){1===(a&1)&&(b+=c);a>>>=1;if(0===a)break;c+=c}return this.$$cast(b)},Z.$$arity=1);b.def(G,"$+",a=function(a){a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str");return this+
180
+ a.$to_s()},a.$$arity=1);b.def(G,"$<=>",d=function(a){if(l(a["$respond_to?"]("to_str")))return a=a.$to_str().$to_s(),this>a?1:this<a?-1:0;a=a["$<=>"](this);return a===t?t:0<a?-1:0>a?1:0},d.$$arity=1);b.def(G,"$==",v=function(a){return a.$$is_string?this.toString()===a.toString():g(k,"Opal")["$respond_to?"](a,"to_str")?a["$=="](this):!1},v.$$arity=1);b.alias(G,"eql?","==");b.alias(G,"===","==");b.def(G,"$=~",B=function(a){a.$$is_string&&this.$raise(g(k,"TypeError"),"type mismatch: String given");return a["$=~"](this)},
181
+ B.$$arity=1);b.def(G,"$[]",L=function(a,b){var c=this.length;if(a.$$is_range){var e=a.excl;b=g(k,"Opal").$coerce_to(a.end,g(k,"Integer"),"to_int");a=g(k,"Opal").$coerce_to(a.begin,g(k,"Integer"),"to_int");if(Math.abs(a)>c)return t;0>a&&(a+=c);0>b&&(b+=c);e||(b+=1);b-=a;0>b&&(b=0);return this.$$cast(this.substr(a,b))}if(a.$$is_string)return null!=b&&this.$raise(g(k,"TypeError")),-1!==this.indexOf(a)?this.$$cast(a):t;if(a.$$is_regexp){c=this.match(a);if(null===c)return x["~"]=t;x["~"]=g(k,"MatchData").$new(a,
182
+ c);if(null==b)return this.$$cast(c[0]);b=g(k,"Opal").$coerce_to(b,g(k,"Integer"),"to_int");return 0>b&&-b<c.length?this.$$cast(c[b+c.length]):0<=b&&b<c.length?this.$$cast(c[b]):t}a=g(k,"Opal").$coerce_to(a,g(k,"Integer"),"to_int");0>a&&(a+=c);if(null==b)return a>=c||0>a?t:this.$$cast(this.substr(a,1));b=g(k,"Opal").$coerce_to(b,g(k,"Integer"),"to_int");return 0>b||a>c||0>a?t:this.$$cast(this.substr(a,b))},L.$$arity=-2);b.alias(G,"byteslice","[]");b.def(G,"$b",r=function(){return this.$force_encoding("binary")},
183
+ r.$$arity=0);b.def(G,"$capitalize",h=function(){return this.$$cast(this.charAt(0).toUpperCase()+this.substr(1).toLowerCase())},h.$$arity=0);b.def(G,"$casecmp",c=function(a){var b=this;if(!l(a["$respond_to?"]("to_str")))return t;a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str").$to_s();var c=/^[\x00-\x7F]*$/;c.test(b)&&c.test(a)&&(b=b.toLowerCase(),a=a.toLowerCase());return b["$<=>"](a)},c.$$arity=1);b.def(G,"$casecmp?",A=function(a){a=this.$casecmp(a);return a===t?t:0===a},A.$$arity=1);b.def(G,"$center",
184
+ p=function(a,b){null==b&&(b=" ");a=g(k,"Opal").$coerce_to(a,g(k,"Integer"),"to_int");b=g(k,"Opal").$coerce_to(b,g(k,"String"),"to_str").$to_s();l(b["$empty?"]())&&this.$raise(g(k,"ArgumentError"),"zero width padding");if(l(a<=this.length))return this;var c=this.$ljust(m(D(a,this.length),2).$ceil(),b);a=this.$rjust(m(D(a,this.length),2).$floor(),b);return this.$$cast(a+c.slice(this.length))},p.$$arity=-2);b.def(G,"$chars",U=function(){var a=U.$$p,b=a||t;a&&(U.$$p=null);a&&(U.$$p=null);return l(b)?
185
+ E(this,"each_char",[],b.$to_proc()):this.$each_char().$to_a()},U.$$arity=0);b.def(G,"$chomp",S=function(a){null==x["/"]&&(x["/"]=t);null==a&&(a=x["/"]);if(l(a===t||0===this.length))return this;a=g(k,"Opal")["$coerce_to!"](a,g(k,"String"),"to_str").$to_s();var b;"\n"===a?b=this.replace(/\r?\n?$/,""):""===a?b=this.replace(/(\r?\n)+$/,""):this.length>=a.length&&this.substr(this.length-a.length,a.length)===a&&(b=this.substr(0,this.length-a.length));return null!=b?this.$$cast(b):this},S.$$arity=-1);b.def(G,
186
+ "$chop",n=function(){var a=this.length;a=1>=a?"":"\n"===this.charAt(a-1)&&"\r"===this.charAt(a-2)?this.substr(0,a-2):this.substr(0,a-1);return this.$$cast(a)},n.$$arity=0);b.def(G,"$chr",e=function(){return this.charAt(0)},e.$$arity=0);b.def(G,"$clone",f=function(){var a=this.slice();a.$copy_singleton_methods(this);a.$initialize_clone(this);return a},f.$$arity=0);b.def(G,"$dup",N=function(){var a=this.slice();a.$initialize_dup(this);return a},N.$$arity=0);b.def(G,"$count",ea=function(a){var c=b.slice.call(arguments,
187
+ 0,arguments.length);0===c.length&&this.$raise(g(k,"ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");c=P(c);return null===c?0:this.length-this.replace(new RegExp(c,"g"),"").length},ea.$$arity=-1);b.def(G,"$delete",ka=function(a){var c=b.slice.call(arguments,0,arguments.length);0===c.length&&this.$raise(g(k,"ArgumentError"),"ArgumentError: wrong number of arguments (0 for 1+)");c=P(c);return null===c?this:this.$$cast(this.replace(new RegExp(c,"g"),""))},ka.$$arity=-1);b.def(G,
188
+ "$delete_prefix",J=function(a){a.$$is_string||(a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str"));return this.slice(0,a.length)===a?this.$$cast(this.slice(a.length)):this},J.$$arity=1);b.def(G,"$delete_suffix",T=function(a){a.$$is_string||(a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str"));return this.slice(this.length-a.length)===a?this.$$cast(this.slice(0,this.length-a.length)):this},T.$$arity=1);b.def(G,"$downcase",ba=function(){return this.$$cast(this.toLowerCase())},ba.$$arity=0);b.def(G,"$each_char",
189
+ y=function(){var a=y.$$p,c=a||t,e;a&&(y.$$p=null);a&&(y.$$p=null);if(c===t)return E(this,"enum_for",["each_char"],(e=function(){return(e.$$s||this).$size()},e.$$s=this,e.$$arity=0,e));a=0;for(var f=this.length;a<f;a++)b.yield1(c,this.charAt(a));return this},y.$$arity=0);b.def(G,"$each_line",ca=function(a){var c=ca.$$p,e=c||t;null==x["/"]&&(x["/"]=t);c&&(ca.$$p=null);c&&(ca.$$p=null);null==a&&(a=x["/"]);if(e===t)return this.$enum_for("each_line",a);if(a===t)return b.yield1(e,this),this;a=g(k,"Opal").$coerce_to(a,
190
+ g(k,"String"),"to_str");var f,d;if(0===a.length){a=this.split(/(\n{2,})/);c=0;for(f=a.length;c<f;c+=2)(a[c]||a[c+1])&&b.yield1(e,this.$$cast((a[c]||"")+(a[c+1]||"")));return this}c=this.$chomp(a);f=this.length!=c.length;var w=c.split(a);c=0;for(d=w.length;c<d;c++)c<d-1||f?b.yield1(e,this.$$cast(w[c]+a)):b.yield1(e,this.$$cast(w[c]));return this},ca.$$arity=-1);b.def(G,"$empty?",V=function(){return 0===this.length},V.$$arity=0);b.def(G,"$end_with?",Ha=function(a){var c=b.slice.call(arguments,0,arguments.length);
191
+ for(var e=0,f=c.length;e<f;e++){var d=g(k,"Opal").$coerce_to(c[e],g(k,"String"),"to_str").$to_s();if(this.length>=d.length&&this.substr(this.length-d.length,d.length)==d)return!0}return!1},Ha.$$arity=-1);b.alias(G,"equal?","===");b.def(G,"$gsub",la=function(a,c){var e=la.$$p,f=e||t,d=this;e&&(la.$$p=null);e&&(la.$$p=null);if(void 0===c&&f===t)return d.$enum_for("gsub",a);e="";var w=t,n=0;a.$$is_regexp?a=b.global_multiline_regexp(a):(a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str"),a=new RegExp(a.replace(/[.*+?^${}()|[\]\\]/g,
192
+ "\\$&"),"gm"));for(var Q;;){var p=a.exec(d);if(null===p){x["~"]=t;e+=d.slice(n);break}w=g(k,"MatchData").$new(a,p);if(void 0===c){Q=a.lastIndex;var h=f(p[0]);a.lastIndex=Q}else c.$$is_hash?h=c["$[]"](p[0]).$to_s():(c.$$is_string||(c=g(k,"Opal").$coerce_to(c,g(k,"String"),"to_str")),h=c.replace(/([\\]+)([0-9+&`'])/g,function(a,b,c){if(0===b.length%2)return a;switch(c){case "+":for(a=p.length-1;0<a;a--)if(void 0!==p[a])return b.slice(1)+p[a];return"";case "&":return b.slice(1)+p[0];case "`":return b.slice(1)+
193
+ d.slice(0,p.index);case "'":return b.slice(1)+d.slice(p.index+p[0].length);default:return b.slice(1)+(p[c]||"")}}).replace(/\\\\/g,"\\"));a.lastIndex===p.index?(e+=h+d.slice(n,p.index+1),a.lastIndex+=1):e+=d.slice(n,p.index)+h;n=a.lastIndex}x["~"]=w;return d.$$cast(e)},la.$$arity=-2);b.def(G,"$hash",va=function(){return this.toString()},va.$$arity=0);b.def(G,"$hex",ta=function(){return this.$to_i(16)},ta.$$arity=0);b.def(G,"$include?",ma=function(a){a.$$is_string||(a=g(k,"Opal").$coerce_to(a,g(k,
194
+ "String"),"to_str"));return-1!==this.indexOf(a)},ma.$$arity=1);b.def(G,"$index",wa=function(a,c){var e;if(void 0===c)c=0;else if(c=g(k,"Opal").$coerce_to(c,g(k,"Integer"),"to_int"),0>c&&(c+=this.length,0>c))return t;if(a.$$is_regexp)for(e=b.global_multiline_regexp(a);;){a=e.exec(this);if(null===a){x["~"]=t;c=-1;break}if(a.index>=c){x["~"]=g(k,"MatchData").$new(e,a);c=a.index;break}e.lastIndex=a.index+1}else a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str"),c=0===a.length&&c>this.length?-1:this.indexOf(a,
195
+ c);return-1===c?t:c},wa.$$arity=-2);b.def(G,"$inspect",Ba=function(){var a={"\u0007":"\\a","\u001b":"\\e","\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\x0B":"\\v",'"':'\\"',"\\":"\\\\"};return'"'+this.replace(/[\\"\x00-\x1f\u007F-\u009F\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,function(b){return a[b]||"\\u"+("0000"+b.charCodeAt(0).toString(16).toUpperCase()).slice(-4)}).replace(/#[\$@\{]/g,"\\$&")+'"'},Ba.$$arity=0);b.def(G,"$intern",Ma=
196
+ function(){return this.toString()},Ma.$$arity=0);b.def(G,"$lines",Da=function(a){var b=Da.$$p,c=b||t;null==x["/"]&&(x["/"]=t);b&&(Da.$$p=null);b&&(Da.$$p=null);null==a&&(a=x["/"]);a=E(this,"each_line",[a],c.$to_proc());return l(c)?this:a.$to_a()},Da.$$arity=-1);b.def(G,"$length",xa=function(){return this.length},xa.$$arity=0);b.def(G,"$ljust",ya=function(a,b){null==b&&(b=" ");a=g(k,"Opal").$coerce_to(a,g(k,"Integer"),"to_int");b=g(k,"Opal").$coerce_to(b,g(k,"String"),"to_str").$to_s();l(b["$empty?"]())&&
197
+ this.$raise(g(k,"ArgumentError"),"zero width padding");if(l(a<=this.length))return this;var c=-1,e="";for(a-=this.length;++c<a;)e+=b;return this.$$cast(this+e.slice(0,a))},ya.$$arity=-2);b.def(G,"$lstrip",fa=function(){return this.replace(/^\s*/,"")},fa.$$arity=0);b.def(G,"$ascii_only?",I=function(){return this.match(/[ -~\n]*/)[0]===this},I.$$arity=0);b.def(G,"$match",Y=function(a,b){var c=Y.$$p,e=c||t,f;c&&(Y.$$p=null);c&&(Y.$$p=null);l(l(f=g(k,"String")["$==="](a))?f:a["$respond_to?"]("to_str"))&&
198
+ (a=g(k,"Regexp").$new(a.$to_str()));l(g(k,"Regexp")["$==="](a))||this.$raise(g(k,"TypeError"),"wrong argument type "+a.$class()+" (expected Regexp)");return E(a,"match",[this,b],e.$to_proc())},Y.$$arity=-2);b.def(G,"$match?",sa=function(a,b){var c;l(l(c=g(k,"String")["$==="](a))?c:a["$respond_to?"]("to_str"))&&(a=g(k,"Regexp").$new(a.$to_str()));l(g(k,"Regexp")["$==="](a))||this.$raise(g(k,"TypeError"),"wrong argument type "+a.$class()+" (expected Regexp)");return a["$match?"](this,b)},sa.$$arity=
199
+ -2);b.def(G,"$next",La=function(){var a=this.length;if(0===a)return this.$$cast("");for(var b=this,c=this.search(/[a-zA-Z0-9]/),e,f;a--;){f=this.charCodeAt(a);if(48<=f&&57>=f||65<=f&&90>=f||97<=f&&122>=f)switch(f){case 57:e=!0;f=48;break;case 90:e=!0;f=65;break;case 122:e=!0;f=97;break;default:e=!1,f+=1}else-1===c?255===f?(e=!0,f=0):(e=!1,f+=1):e=!0;b=b.slice(0,a)+String.fromCharCode(f)+b.slice(a+1);if(e&&(0===a||a===c)){switch(f){case 65:break;case 97:break;default:f+=1}b=0===a?String.fromCharCode(f)+
200
+ b:b.slice(0,a)+String.fromCharCode(f)+b.slice(a);e=!1}if(!e)break}return this.$$cast(b)},La.$$arity=0);b.def(G,"$oct",qa=function(){var a=this;var b=8;if(/^\s*_/.test(a))return 0;a=a.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/i,function(a,c,e,f){switch(f.charAt(0)){case "+":case "-":return a;case "0":if("x"===f.charAt(1)&&"0x"===e)return a}switch(e){case "0b":b=2;break;case "0":case "0o":b=8;break;case "0d":b=10;break;case "0x":b=16}return c+f});a=parseInt(a.replace(/_(?!_)/g,""),b);return isNaN(a)?0:a},
201
+ qa.$$arity=0);b.def(G,"$ord",Oa=function(){return this.charCodeAt(0)},Oa.$$arity=0);b.def(G,"$partition",da=function(a){if(a.$$is_regexp){var b=a.exec(this);null===b?b=-1:(g(k,"MatchData").$new(a,b),a=b[0],b=b.index)}else a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str"),b=this.indexOf(a);return-1===b?[this,"",""]:[this.slice(0,b),this.slice(b,b+a.length),this.slice(b+a.length)]},da.$$arity=1);b.def(G,"$reverse",na=function(){return this.split("").reverse().join("")},na.$$arity=0);b.def(G,"$rindex",
202
+ Ja=function(a,c){if(void 0===c)c=this.length;else if(c=g(k,"Opal").$coerce_to(c,g(k,"Integer"),"to_int"),0>c&&(c+=this.length,0>c))return t;if(a.$$is_regexp){var e=null;for(a=b.global_multiline_regexp(a);;){var f=a.exec(this);if(null===f||f.index>c)break;e=f;a.lastIndex=e.index+1}null===e?(x["~"]=t,c=-1):(g(k,"MatchData").$new(a,e),c=e.index)}else a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str"),c=this.lastIndexOf(a,c);return-1===c?t:c},Ja.$$arity=-2);b.def(G,"$rjust",Va=function(a,b){null==b&&
203
+ (b=" ");a=g(k,"Opal").$coerce_to(a,g(k,"Integer"),"to_int");b=g(k,"Opal").$coerce_to(b,g(k,"String"),"to_str").$to_s();l(b["$empty?"]())&&this.$raise(g(k,"ArgumentError"),"zero width padding");if(l(a<=this.length))return this;a=Math.floor(a-this.length);var c=Array(Math.floor(a/b.length)+1).join(b);return this.$$cast(c+b.slice(0,a-c.length)+this)},Va.$$arity=-2);b.def(G,"$rpartition",Ua=function(a){var c;if(a.$$is_regexp){var e=null;for(c=b.global_multiline_regexp(a);;){var f=c.exec(this);if(null===
204
+ f)break;e=f;c.lastIndex=e.index+1}null===e?e=-1:(g(k,"MatchData").$new(c,e),a=e[0],e=e.index)}else a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str"),e=this.lastIndexOf(a);return-1===e?["","",this]:[this.slice(0,e),this.slice(e,e+a.length),this.slice(e+a.length)]},Ua.$$arity=1);b.def(G,"$rstrip",$a=function(){return this.replace(/[\s\u0000]*$/,"")},$a.$$arity=0);b.def(G,"$scan",oa=function(a){var c=oa.$$p,e=c||t;c&&(oa.$$p=null);c&&(oa.$$p=null);c=[];var f=t,d;a.$$is_regexp?a=b.global_multiline_regexp(a):
205
+ (a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str"),a=new RegExp(a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm"));for(;null!=(d=a.exec(this));)f=g(k,"MatchData").$new(a,d),e===t?1==d.length?c.push(d[0]):c.push(f.$captures()):1==d.length?e(d[0]):e.call(this,f.$captures()),a.lastIndex===d.index&&(a.lastIndex+=1);x["~"]=f;return e!==t?this:c},oa.$$arity=1);b.alias(G,"size","length");b.alias(G,"slice","[]");b.def(G,"$split",Aa=function(a,c){function e(){for(p=0;p<w.length;p++)w[p]=d.$$cast(w[p])}var f,
206
+ d=this;null==x[";"]&&(x[";"]=t);if(0===d.length)return[];if(void 0===c)c=0;else if(c=g(k,"Opal")["$coerce_to!"](c,g(k,"Integer"),"to_int"),1===c)return[d];if(void 0===a||a===t)a=l(f=x[";"])?f:" ";var w=[];f=d.toString();var n=0,p;a.$$is_regexp?a=b.global_multiline_regexp(a):(a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str").$to_s()," "===a?(a=/\s+/gm,f=f.replace(/^\s+/,"")):a=new RegExp(a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gm"));w=f.split(a);if(1===w.length&&w[0]===f)return[d.$$cast(w[0])];for(;-1!==
207
+ (p=w.indexOf(void 0));)w.splice(p,1);if(0===c){for(;""===w[w.length-1];)--w.length;e();return w}var h=a.exec(f);if(0>c){if(null!==h&&""===h[0]&&-1===a.source.indexOf("(?="))for(p=0,a=h.length;p<a;p++)w.push("");e();return w}if(null!==h&&""===h[0])return w.splice(c-1,w.length-1,w.slice(c-1).join("")),e(),w;if(c>=w.length)return e(),w;for(p=0;null!==h;){p++;n=a.lastIndex;if(p+1===c)break;h=a.exec(f)}w.splice(c-1,w.length-1,f.slice(n));e();return w},Aa.$$arity=-1);b.def(G,"$squeeze",ha=function(a){var c=
208
+ b.slice.call(arguments,0,arguments.length);if(0===c.length)return this.$$cast(this.replace(/(.)\1+/g,"$1"));c=P(c);return null===c?this:this.$$cast(this.replace(new RegExp("("+c+")\\1+","g"),"$1"))},ha.$$arity=-1);b.def(G,"$start_with?",za=function(a){var c=b.slice.call(arguments,0,arguments.length);for(var e=0,f=c.length;e<f;e++){var d=g(k,"Opal").$coerce_to(c[e],g(k,"String"),"to_str").$to_s();if(0===this.indexOf(d))return!0}return!1},za.$$arity=-1);b.def(G,"$strip",Ca=function(){return this.replace(/^\s*/,
209
+ "").replace(/[\s\u0000]*$/,"")},Ca.$$arity=0);b.def(G,"$sub",ua=function(a,b){var c=ua.$$p,e=c||t,f=this;c&&(ua.$$p=null);c&&(ua.$$p=null);a.$$is_regexp||(a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str"),a=new RegExp(a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")));var d=a.exec(f);null===d?(x["~"]=t,a=f.toString()):(g(k,"MatchData").$new(a,d),void 0===b?(e===t&&f.$raise(g(k,"ArgumentError"),"wrong number of arguments (1 for 2)"),a=f.slice(0,d.index)+e(d[0])+f.slice(d.index+d[0].length)):b.$$is_hash?a=
210
+ f.slice(0,d.index)+b["$[]"](d[0]).$to_s()+f.slice(d.index+d[0].length):(b=g(k,"Opal").$coerce_to(b,g(k,"String"),"to_str"),b=b.replace(/([\\]+)([0-9+&`'])/g,function(a,b,c){if(0===b.length%2)return a;switch(c){case "+":for(a=d.length-1;0<a;a--)if(void 0!==d[a])return b.slice(1)+d[a];return"";case "&":return b.slice(1)+d[0];case "`":return b.slice(1)+f.slice(0,d.index);case "'":return b.slice(1)+f.slice(d.index+d[0].length);default:return b.slice(1)+(d[c]||"")}}).replace(/\\\\/g,"\\"),a=f.slice(0,
211
+ d.index)+b+f.slice(d.index+d[0].length)));return f.$$cast(a)},ua.$$arity=-2);b.alias(G,"succ","next");b.def(G,"$sum",Na=function(a){null==a&&(a=16);a=g(k,"Opal").$coerce_to(a,g(k,"Integer"),"to_int");for(var b=0,c=this.length,e=0;e<c;e++)b+=this.charCodeAt(e);return 0>=a?b:b&Math.pow(2,a)-1},Na.$$arity=-1);b.def(G,"$swapcase",Ia=function(){var a=this.replace(/([a-z]+)|([A-Z]+)/g,function(a,b,c){return b?a.toUpperCase():a.toLowerCase()});return this.constructor===String?a:this.$class().$new(a)},Ia.$$arity=
212
+ 0);b.def(G,"$to_f",Ea=function(){if("_"===this.charAt(0))return 0;var a=parseFloat(this.replace(/_/g,""));return isNaN(a)||Infinity==a||-Infinity==a?0:a},Ea.$$arity=0);b.def(G,"$to_i",Sa=function(a){null==a&&(a=10);var b=this.toLowerCase(),c=g(k,"Opal").$coerce_to(a,g(k,"Integer"),"to_int");(1===c||0>c||36<c)&&this.$raise(g(k,"ArgumentError"),"invalid radix "+c);if(/^\s*_/.test(b))return 0;b=b.replace(/^(\s*[+-]?)(0[bodx]?)(.+)$/,function(a,b,e,f){switch(f.charAt(0)){case "+":case "-":return a;case "0":if("x"===
213
+ f.charAt(1)&&"0x"===e&&(0===c||16===c))return a}switch(e){case "0b":if(0===c||2===c)return c=2,b+f;break;case "0":case "0o":if(0===c||8===c)return c=8,b+f;break;case "0d":if(0===c||10===c)return c=10,b+f;break;case "0x":if(0===c||16===c)return c=16,b+f}return a});a=parseInt(b.replace(/_(?!_)/g,""),c);return isNaN(a)?0:a},Sa.$$arity=-1);b.def(G,"$to_proc",Qa=function(){var a,c=t;Qa.$$p&&(Qa.$$p=null);c=D("$",this.valueOf());return E(this,"proc",[],(a=function(e){var f=a.$$s||this,d=a.$$p,w=d||t;d&&
214
+ (a.$$p=null);d=b.slice.call(arguments,0,arguments.length);0===d.length&&f.$raise(g(k,"ArgumentError"),"no receiver given");f=d[0];null==f&&(f=t);var n=f[c];if(!n)return f.$method_missing.apply(f,d);"function"===typeof w&&(n.$$p=w);return 1===d.length?n.call(f):n.apply(f,d.slice(1))},a.$$s=this,a.$$arity=-1,a))},Qa.$$arity=0);b.def(G,"$to_s",Pa=function(){return this.toString()},Pa.$$arity=0);b.alias(G,"to_str","to_s");b.alias(G,"to_sym","intern");b.def(G,"$tr",Fa=function(a,b){a=g(k,"Opal").$coerce_to(a,
215
+ g(k,"String"),"to_str").$to_s();b=g(k,"Opal").$coerce_to(b,g(k,"String"),"to_str").$to_s();if(0==a.length||a===b)return this;var c={};var e=a.split("");var f=e.length,d=b.split(""),w=d.length;a=!1;var n=null;"^"===e[0]&&1<e.length&&(a=!0,e.shift(),n=d[w-1],--f);var p=[];var h=null;var r=!1;for(b=0;b<f;b++){var y=e[b];if(null==h)h=y,p.push(y);else if("-"===y)"-"===h?(p.push("-"),p.push("-")):b==f-1?p.push("-"):r=!0;else if(r){h=h.charCodeAt(0);r=y.charCodeAt(0);h>r&&this.$raise(g(k,"ArgumentError"),
216
+ 'invalid range "'+String.fromCharCode(h)+"-"+String.fromCharCode(r)+'" in string transliteration');for(h+=1;h<r;h++)p.push(String.fromCharCode(h));p.push(y);h=r=null}else p.push(y)}e=p;f=e.length;if(a)for(b=0;b<f;b++)c[e[b]]=!0;else{if(0<w){p=[];h=null;r=!1;for(b=0;b<w;b++)if(y=d[b],null==h)h=y,p.push(y);else if("-"===y)"-"===h?(p.push("-"),p.push("-")):b==w-1?p.push("-"):r=!0;else if(r){h=h.charCodeAt(0);r=y.charCodeAt(0);h>r&&this.$raise(g(k,"ArgumentError"),'invalid range "'+String.fromCharCode(h)+
217
+ "-"+String.fromCharCode(r)+'" in string transliteration');for(h+=1;h<r;h++)p.push(String.fromCharCode(h));p.push(y);h=r=null}else p.push(y);d=p;w=d.length}y=f-w;if(0<y)for(w=0<w?d[w-1]:"",b=0;b<y;b++)d.push(w);for(b=0;b<f;b++)c[e[b]]=d[b]}f="";b=0;for(e=this.length;b<e;b++)y=this.charAt(b),d=c[y],f=a?f+(null==d?n:y):f+(null!=d?d:y);return this.$$cast(f)},Fa.$$arity=2);b.def(G,"$tr_s",Ga=function(a,b){a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str").$to_s();b=g(k,"Opal").$coerce_to(b,g(k,"String"),
218
+ "to_str").$to_s();if(0==a.length)return this;var c={};var e=a.split("");var f=e.length,d=b.split(""),w=d.length;a=!1;var n=null;"^"===e[0]&&1<e.length&&(a=!0,e.shift(),n=d[w-1],--f);var p=[];var h=null;var r=!1;for(b=0;b<f;b++){var y=e[b];if(null==h)h=y,p.push(y);else if("-"===y)"-"===h?(p.push("-"),p.push("-")):b==f-1?p.push("-"):r=!0;else if(r){h=h.charCodeAt(0);r=y.charCodeAt(0);h>r&&this.$raise(g(k,"ArgumentError"),'invalid range "'+String.fromCharCode(h)+"-"+String.fromCharCode(r)+'" in string transliteration');
219
+ for(h+=1;h<r;h++)p.push(String.fromCharCode(h));p.push(y);h=r=null}else p.push(y)}e=p;f=e.length;if(a)for(b=0;b<f;b++)c[e[b]]=!0;else{if(0<w){p=[];r=!1;for(b=0;b<w;b++)if(y=d[b],null==h)h=y,p.push(y);else if("-"===y)b==w-1?p.push("-"):r=!0;else if(r){h=h.charCodeAt(0);r=y.charCodeAt(0);h>r&&this.$raise(g(k,"ArgumentError"),'invalid range "'+String.fromCharCode(h)+"-"+String.fromCharCode(r)+'" in string transliteration');for(h+=1;h<r;h++)p.push(String.fromCharCode(h));p.push(y);h=r=null}else p.push(y);
220
+ d=p;w=d.length}y=f-w;if(0<y)for(w=0<w?d[w-1]:"",b=0;b<y;b++)d.push(w);for(b=0;b<f;b++)c[e[b]]=d[b]}f="";d=null;b=0;for(e=this.length;b<e;b++)if(y=this.charAt(b),w=c[y],a)null==w?null==d&&(f+=n,d=!0):(f+=y,d=null);else if(null!=w){if(null==d||d!==w)f+=w,d=w}else f+=y,d=null;return this.$$cast(f)},Ga.$$arity=2);b.def(G,"$upcase",Wa=function(){return this.$$cast(this.toUpperCase())},Wa.$$arity=0);b.def(G,"$upto",Ta=function(a,b){var c=Ta.$$p,e=c||t;c&&(Ta.$$p=null);c&&(Ta.$$p=null);null==b&&(b=!1);if(e===
221
+ t)return this.$enum_for("upto",a,b);a=g(k,"Opal").$coerce_to(a,g(k,"String"),"to_str");c=this.toString();if(1===c.length&&1===a.length)for(c=c.charCodeAt(0),a=a.charCodeAt(0);c<=a&&(!b||c!==a);)e(String.fromCharCode(c)),c+=1;else if(parseInt(c,10).toString()===c&&parseInt(a,10).toString()===a)for(c=parseInt(c,10),a=parseInt(a,10);c<=a&&(!b||c!==a);)e(c.toString()),c+=1;else for(;c.length<=a.length&&c<=a&&(!b||c!==a);)e(c),c=c.$succ();return this},Ta.$$arity=-2);b.def(G,"$instance_variables",Xa=function(){return[]},
222
+ Xa.$$arity=0);b.defs(G,"$_load",Ya=function(a){var c=b.slice.call(arguments,0,arguments.length);return E(this,"new",b.to_a(c))},Ya.$$arity=-1);b.def(G,"$unicode_normalize",bb=function(a){return this.toString()},bb.$$arity=-1);b.def(G,"$unicode_normalized?",Za=function(a){return!0},Za.$$arity=-1);b.def(G,"$unpack",ia=function(a){return this.$raise("To use String#unpack, you must first require 'corelib/string/unpack'.")},ia.$$arity=1);return(b.def(G,"$unpack1",w=function(a){return this.$raise("To use String#unpack1, you must first require 'corelib/string/unpack'.")},
223
+ w.$$arity=1),t)&&"unpack1"})(u[0],String,u);return b.const_set(u[0],"Symbol",g(u,"String"))};
224
+ Opal.modules["corelib/enumerable"]=function(b){function m(b,g){return"number"===typeof b&&"number"===typeof g?b>g:b["$>"](g)}function D(b,g){return"number"===typeof b&&"number"===typeof g?b+g:b["$+"](g)}function C(b,g){return"number"===typeof b&&"number"===typeof g?b-g:b["$-"](g)}function u(b,g){return"number"===typeof b&&"number"===typeof g?b<=g:b["$<="](g)}var t=[],g=b.nil,H=b.const_get_qualified,l=b.const_get_relative,E=b.module,x=b.truthy,q=b.send,O=b.falsy,P=b.hash2,M=b.lambda;b.add_stubs("$each $public_send $destructure $to_enum $enumerator_size $new $yield $raise $slice_when $! $enum_for $flatten $map $warn $proc $== $nil? $respond_to? $coerce_to! $> $* $coerce_to $try_convert $< $+ $- $ceil $/ $size $__send__ $length $<= $[] $push $<< $[]= $=== $inspect $<=> $first $reverse $sort $to_proc $compare $call $dup $to_a $sort! $map! $key? $values $zip".split(" "));
225
+ return function(t,k){function G(a){0===a.length&&(a=[g]);1<a.length&&(a=[a]);return a}t=E(t,"Enumerable");var R=[t].concat(k),z,F,ja,Z,a,d,v,B,L,r,h,c,A,p,U,S,n,e,f,N,ea,ka,J,T,ba,y,ca,V,Ha,la,va,ta,ma,wa,Ba,Ma,Da,xa,ya,fa,I,Y,sa,La,qa,Oa,da,na;b.def(t,"$all?",z=function(a){try{var c=z.$$p,e=c||g,f,d,n;c&&(z.$$p=null);c&&(z.$$p=null);x(void 0!==a)?q(this,"each",[],(f=function(c){var e=b.slice.call(arguments,0,arguments.length);e=G(e);if(x(q(a,"public_send",["==="].concat(b.to_a(e)))))return g;b.ret(!1)},
226
+ f.$$s=this,f.$$arity=-1,f)):e!==g?q(this,"each",[],(d=function(a){var c=b.slice.call(arguments,0,arguments.length);if(x(b.yieldX(e,b.to_a(c))))return g;b.ret(!1)},d.$$s=this,d.$$arity=-1,d)):q(this,"each",[],(n=function(a){var c=b.slice.call(arguments,0,arguments.length);if(x(l(R,"Opal").$destructure(c)))return g;b.ret(!1)},n.$$s=this,n.$$arity=-1,n));return!0}catch(ha){if(ha===b.returner)return ha.$v;throw ha;}},z.$$arity=-1);b.def(t,"$any?",F=function(a){try{var c=F.$$p,e=c||g,f,d,n;c&&(F.$$p=null);
227
+ c&&(F.$$p=null);x(void 0!==a)?q(this,"each",[],(f=function(c){var e=b.slice.call(arguments,0,arguments.length);e=G(e);if(x(q(a,"public_send",["==="].concat(b.to_a(e)))))b.ret(!0);else return g},f.$$s=this,f.$$arity=-1,f)):e!==g?q(this,"each",[],(d=function(a){var c=b.slice.call(arguments,0,arguments.length);if(x(b.yieldX(e,b.to_a(c))))b.ret(!0);else return g},d.$$s=this,d.$$arity=-1,d)):q(this,"each",[],(n=function(a){var c=b.slice.call(arguments,0,arguments.length);if(x(l(R,"Opal").$destructure(c)))b.ret(!0);
228
+ else return g},n.$$s=this,n.$$arity=-1,n));return!1}catch(ha){if(ha===b.returner)return ha.$v;throw ha;}},F.$$arity=-1);b.def(t,"$chunk",ja=function(){var a=ja.$$p,c=a||g,e,f;a&&(ja.$$p=null);a&&(ja.$$p=null);return c===g?q(this,"to_enum",["chunk"],(e=function(){return(e.$$s||this).$enumerator_size()},e.$$s=this,e.$$arity=0,e)):q(H("::","Enumerator"),"new",[],(f=function(a){function e(){0<p.length&&a.$yield(n,p)}var d=f.$$s||this;null==a&&(a=g);var n=g,p=[];d.$each.$$p=function(a){var f=b.yield1(c,
229
+ a);f===g?(e(),p=[],n=g):(n===g||n===f?p.push(a):(e(),p=[a]),n=f)};d.$each();e()},f.$$s=this,f.$$arity=1,f))},ja.$$arity=0);b.def(t,"$chunk_while",Z=function(){var a=Z.$$p,c=a||g,e;a&&(Z.$$p=null);a&&(Z.$$p=null);c===g&&this.$raise(l(R,"ArgumentError"),"no block given");return q(this,"slice_when",[],(e=function(a,e){null==a&&(a=g);null==e&&(e=g);return b.yieldX(c,[a,e])["$!"]()},e.$$s=this,e.$$arity=2,e))},Z.$$arity=0);b.def(t,"$collect",a=function(){var c=a.$$p,e=c||g,f;c&&(a.$$p=null);c&&(a.$$p=
230
+ null);if(e===g)return q(this,"enum_for",["collect"],(f=function(){return(f.$$s||this).$enumerator_size()},f.$$s=this,f.$$arity=0,f));var d=[];this.$each.$$p=function(){var a=b.yieldX(e,arguments);d.push(a)};this.$each();return d},a.$$arity=0);b.def(t,"$collect_concat",d=function(){var a=d.$$p,c=a||g,e,f;a&&(d.$$p=null);a&&(d.$$p=null);return c===g?q(this,"enum_for",["collect_concat"],(e=function(){return(e.$$s||this).$enumerator_size()},e.$$s=this,e.$$arity=0,e)):q(this,"map",[],(f=function(a){null==
231
+ a&&(a=g);return b.yield1(c,a)},f.$$s=this,f.$$arity=1,f)).$flatten(1)},d.$$arity=0);b.def(t,"$count",v=function(a){var c=v.$$p,e=c||g,f,d,n,p=g;c&&(v.$$p=null);c&&(v.$$p=null);p=0;null!=a&&e!==g&&this.$warn("warning: given block not used");x(null!=a)?e=q(this,"proc",[],(f=function(c){var e=b.slice.call(arguments,0,arguments.length);return l(R,"Opal").$destructure(e)["$=="](a)},f.$$s=this,f.$$arity=-1,f)):x(e["$nil?"]())&&(e=q(this,"proc",[],(d=function(){return!0},d.$$s=this,d.$$arity=0,d)));q(this,
232
+ "each",[],(n=function(a){var c=b.slice.call(arguments,0,arguments.length);return x(b.yieldX(e,c))?p++:g},n.$$s=this,n.$$arity=-1,n));return p},v.$$arity=-1);b.def(t,"$cycle",B=function(a){var c=B.$$p,e=c||g,f;c&&(B.$$p=null);c&&(B.$$p=null);null==a&&(a=g);if(e===g)return q(this,"enum_for",["cycle",a],(f=function(){var b=f.$$s||this;if(x(a["$nil?"]()))return x(b["$respond_to?"]("size"))?H(l(R,"Float"),"INFINITY"):g;a=l(R,"Opal")["$coerce_to!"](a,l(R,"Integer"),"to_int");return x(m(a,0))?(b=b.$enumerator_size(),
233
+ "number"===typeof b&&"number"===typeof a?b*a:b["$*"](a)):0},f.$$s=this,f.$$arity=0,f));if(!x(a["$nil?"]())&&(a=l(R,"Opal")["$coerce_to!"](a,l(R,"Integer"),"to_int"),x(0>=a)))return g;var d=[],n;this.$each.$$p=function(){var a=l(R,"Opal").$destructure(arguments);b.yield1(e,a);d.push(a)};this.$each();if(0===d.length)return g;if(a===g)for(;;)for(c=0,n=d.length;c<n;c++)b.yield1(e,d[c]);else for(;1<a;){c=0;for(n=d.length;c<n;c++)b.yield1(e,d[c]);a--}},B.$$arity=-1);b.def(t,"$detect",L=function(a){try{var c=
234
+ L.$$p,e=c||g,f;c&&(L.$$p=null);c&&(L.$$p=null);if(e===g)return this.$enum_for("detect",a);q(this,"each",[],(f=function(a){var c=b.slice.call(arguments,0,arguments.length);c=l(R,"Opal").$destructure(c);if(x(b.yield1(e,c)))b.ret(c);else return g},f.$$s=this,f.$$arity=-1,f));return void 0!==a?"function"===typeof a?a():a:g}catch(oa){if(oa===b.returner)return oa.$v;throw oa;}},L.$$arity=-1);b.def(t,"$drop",r=function(a){a=l(R,"Opal").$coerce_to(a,l(R,"Integer"),"to_int");x(0>a)&&this.$raise(l(R,"ArgumentError"),
235
+ "attempt to drop negative size");var b=[],c=0;this.$each.$$p=function(){a<=c&&b.push(l(R,"Opal").$destructure(arguments));c++};this.$each();return b},r.$$arity=1);b.def(t,"$drop_while",h=function(){var a=h.$$p,c=a||g;a&&(h.$$p=null);a&&(h.$$p=null);if(c===g)return this.$enum_for("drop_while");var e=[],f=!0;this.$each.$$p=function(){var a=l(R,"Opal").$destructure(arguments);if(f){var d=b.yield1(c,a);O(d)&&(f=!1,e.push(a))}else e.push(a)};this.$each();return e},h.$$arity=0);b.def(t,"$each_cons",c=function(a){var e=
236
+ c.$$p,f=e||g,d;e&&(c.$$p=null);e&&(c.$$p=null);x(1!=arguments.length)&&this.$raise(l(R,"ArgumentError"),"wrong number of arguments ("+arguments.length+" for 1)");a=l(R,"Opal").$try_convert(a,l(R,"Integer"),"to_int");x(0>=a)&&this.$raise(l(R,"ArgumentError"),"invalid size");if(f===g)return q(this,"enum_for",["each_cons",a],(d=function(){var b;var c=(d.$$s||this).$enumerator_size();return x(c["$nil?"]())?g:x(x(b=c["$=="](0))?b:"number"===typeof c&&"number"===typeof a?c<a:c["$<"](a))?0:D(C(c,a),1)},
237
+ d.$$s=this,d.$$arity=0,d));var n=[];this.$each.$$p=function(){var c=l(R,"Opal").$destructure(arguments);n.push(c);n.length>a&&n.shift();n.length==a&&b.yield1(f,n.slice(0,a))};this.$each();return g},c.$$arity=1);b.def(t,"$each_entry",A=function(a){var c=A.$$p,e=c||g,f;c&&(A.$$p=null);c&&(A.$$p=null);c=b.slice.call(arguments,0,arguments.length);if(e===g)return q(this,"to_enum",["each_entry"].concat(b.to_a(c)),(f=function(){return(f.$$s||this).$enumerator_size()},f.$$s=this,f.$$arity=0,f));this.$each.$$p=
238
+ function(){var a=l(R,"Opal").$destructure(arguments);b.yield1(e,a)};this.$each.apply(this,c);return this},A.$$arity=-1);b.def(t,"$each_slice",p=function(a){var c=p.$$p,e=c||g,f;c&&(p.$$p=null);c&&(p.$$p=null);a=l(R,"Opal").$coerce_to(a,l(R,"Integer"),"to_int");x(0>=a)&&this.$raise(l(R,"ArgumentError"),"invalid slice size");if(e===g)return q(this,"enum_for",["each_slice",a],(f=function(){var b=f.$$s||this;return x(b["$respond_to?"]("size"))?(b=b.$size(),("number"===typeof b&&"number"===typeof a?b/
239
+ a:b["$/"](a)).$ceil()):g},f.$$s=this,f.$$arity=0,f));var d=[];this.$each.$$p=function(){var c=l(R,"Opal").$destructure(arguments);d.push(c);d.length===a&&(b.yield1(e,d),d=[])};this.$each();0<d.length&&b.yield1(e,d);return g},p.$$arity=1);b.def(t,"$each_with_index",U=function(a){var c=U.$$p,e=c||g,f;c&&(U.$$p=null);c&&(U.$$p=null);c=b.slice.call(arguments,0,arguments.length);if(e===g)return q(this,"enum_for",["each_with_index"].concat(b.to_a(c)),(f=function(){return(f.$$s||this).$enumerator_size()},
240
+ f.$$s=this,f.$$arity=0,f));var d=0;this.$each.$$p=function(){var a=l(R,"Opal").$destructure(arguments);e(a,d);d++};this.$each.apply(this,c);return this},U.$$arity=-1);b.def(t,"$each_with_object",S=function(a){var b=S.$$p,c=b||g,e;b&&(S.$$p=null);b&&(S.$$p=null);if(c===g)return q(this,"enum_for",["each_with_object",a],(e=function(){return(e.$$s||this).$enumerator_size()},e.$$s=this,e.$$arity=0,e));this.$each.$$p=function(){var b=l(R,"Opal").$destructure(arguments);c(b,a)};this.$each();return a},S.$$arity=
241
+ 1);b.def(t,"$entries",n=function(a){var c=b.slice.call(arguments,0,arguments.length);var e=[];this.$each.$$p=function(){e.push(l(R,"Opal").$destructure(arguments))};this.$each.apply(this,c);return e},n.$$arity=-1);b.alias(t,"find","detect");b.def(t,"$find_all",e=function(){var a=e.$$p,c=a||g,f;a&&(e.$$p=null);a&&(e.$$p=null);if(c===g)return q(this,"enum_for",["find_all"],(f=function(){return(f.$$s||this).$enumerator_size()},f.$$s=this,f.$$arity=0,f));var d=[];this.$each.$$p=function(){var a=l(R,"Opal").$destructure(arguments),
242
+ e=b.yield1(c,a);x(e)&&d.push(a)};this.$each();return d},e.$$arity=0);b.def(t,"$find_index",f=function(a){try{var c=f.$$p,e=c||g,d,n,p=g;c&&(f.$$p=null);c&&(f.$$p=null);if(x(void 0===a&&e===g))return this.$enum_for("find_index");null!=a&&e!==g&&this.$warn("warning: given block not used");p=0;x(null!=a)?q(this,"each",[],(d=function(c){var e=b.slice.call(arguments,0,arguments.length);l(R,"Opal").$destructure(e)["$=="](a)&&b.ret(p);return p+=1},d.$$s=this,d.$$arity=-1,d)):q(this,"each",[],(n=function(a){var c=
243
+ b.slice.call(arguments,0,arguments.length);x(b.yieldX(e,b.to_a(c)))&&b.ret(p);return p+=1},n.$$s=this,n.$$arity=-1,n));return g}catch(ha){if(ha===b.returner)return ha.$v;throw ha;}},f.$$arity=-1);b.def(t,"$first",N=function(a){try{var c,e,f=g,d=g;if(x(void 0===a))return q(this,"each",[],(c=function(a){null==a&&(a=g);b.ret(a)},c.$$s=this,c.$$arity=1,c));f=[];a=l(R,"Opal").$coerce_to(a,l(R,"Integer"),"to_int");x(0>a)&&this.$raise(l(R,"ArgumentError"),"attempt to take negative size");if(x(0==a))return[];
244
+ d=0;q(this,"each",[],(e=function(c){var e=b.slice.call(arguments,0,arguments.length);f.push(l(R,"Opal").$destructure(e));if(x(a<=++d))b.ret(f);else return g},e.$$s=this,e.$$arity=-1,e));return f}catch(Aa){if(Aa===b.returner)return Aa.$v;throw Aa;}},N.$$arity=-1);b.alias(t,"flat_map","collect_concat");b.def(t,"$grep",ea=function(a){var c=ea.$$p,e=c||g,f,d=g;c&&(ea.$$p=null);c&&(ea.$$p=null);d=[];q(this,"each",[],(f=function(c){var f=b.slice.call(arguments,0,arguments.length);var n=G(f);if(!x(q(a,"__send__",
245
+ ["==="].concat(b.to_a(n)))))return g;e!==g?(x(m(f.$length(),1))&&(f=[f]),f=b.yieldX(e,b.to_a(f))):x(u(f.$length(),1))&&(f=f["$[]"](0));return d.$push(f)},f.$$s=this,f.$$arity=-1,f));return d},ea.$$arity=1);b.def(t,"$grep_v",ka=function(a){var c=ka.$$p,e=c||g,f,d=g;c&&(ka.$$p=null);c&&(ka.$$p=null);d=[];q(this,"each",[],(f=function(c){var f=b.slice.call(arguments,0,arguments.length);var n=G(f);if(x(q(a,"__send__",["==="].concat(b.to_a(n)))))return g;e!==g?(x(m(f.$length(),1))&&(f=[f]),f=b.yieldX(e,
246
+ b.to_a(f))):x(u(f.$length(),1))&&(f=f["$[]"](0));return d.$push(f)},f.$$s=this,f.$$arity=-1,f));return d},ka.$$arity=1);b.def(t,"$group_by",J=function(){var a=J.$$p,c=a||g,e,f,d=g,n=g;a&&(J.$$p=null);a&&(J.$$p=null);if(c===g)return q(this,"enum_for",["group_by"],(e=function(){return(e.$$s||this).$enumerator_size()},e.$$s=this,e.$$arity=0,e));d=P([],{});this.$each.$$p=function(){var a=l(R,"Opal").$destructure(arguments),e=b.yield1(c,a);(x(f=d["$[]"](e))?f:(n=[e,[]],q(d,"[]=",b.to_a(n)),n[C(n.length,
247
+ 1)]))["$<<"](a)};this.$each();return d},J.$$arity=0);b.def(t,"$include?",T=function(a){try{var c;q(this,"each",[],(c=function(c){var e=b.slice.call(arguments,0,arguments.length);if(l(R,"Opal").$destructure(e)["$=="](a))b.ret(!0);else return g},c.$$s=this,c.$$arity=-1,c));return!1}catch(Ua){if(Ua===b.returner)return Ua.$v;throw Ua;}},T.$$arity=1);b.def(t,"$inject",ba=function(a,c){var e=ba.$$p,f=e||g;e&&(ba.$$p=null);e&&(ba.$$p=null);var d=a;f!==g&&void 0===c?this.$each.$$p=function(){var a=l(R,"Opal").$destructure(arguments);
248
+ void 0!==d&&(a=b.yieldX(f,[d,a]));d=a}:(void 0===c&&(l(R,"Symbol")["$==="](a)||this.$raise(l(R,"TypeError"),""+a.$inspect()+" is not a Symbol"),c=a,d=void 0),this.$each.$$p=function(){var a=l(R,"Opal").$destructure(arguments);d=void 0===d?a:d.$__send__(c,a)});this.$each();return void 0==d?g:d},ba.$$arity=-1);b.def(t,"$lazy",y=function(){var a;return q(H(l(R,"Enumerator"),"Lazy"),"new",[this,this.$enumerator_size()],(a=function(a,c){null==a&&(a=g);var e=b.slice.call(arguments,1,arguments.length);return q(a,
249
+ "yield",b.to_a(e))},a.$$s=this,a.$$arity=-2,a))},y.$$arity=0);b.def(t,"$enumerator_size",ca=function(){return x(this["$respond_to?"]("size"))?this.$size():g},ca.$$arity=0);b.alias(t,"map","collect");b.def(t,"$max",V=function(a){var c=V.$$p,e=c||g,f=this;c&&(V.$$p=null);c&&(V.$$p=null);if(void 0===a||a===g){var d,n;f.$each.$$p=function(){var a=l(R,"Opal").$destructure(arguments);void 0===d?d=a:(n=e!==g?b.yieldX(e,[a,d]):a["$<=>"](d),n===g&&f.$raise(l(R,"ArgumentError"),"comparison failed"),0<n&&(d=
250
+ a))};f.$each();return void 0===d?g:d}a=l(R,"Opal").$coerce_to(a,l(R,"Integer"),"to_int");return q(f,"sort",[],e.$to_proc()).$reverse().$first(a)},V.$$arity=-1);b.def(t,"$max_by",Ha=function(){var a=Ha.$$p,c=a||g,e;a&&(Ha.$$p=null);a&&(Ha.$$p=null);if(!x(c))return q(this,"enum_for",["max_by"],(e=function(){return(e.$$s||this).$enumerator_size()},e.$$s=this,e.$$arity=0,e));var f,d;this.$each.$$p=function(){var a=l(R,"Opal").$destructure(arguments),e=b.yield1(c,a);void 0===f?(f=a,d=e):0<e["$<=>"](d)&&
251
+ (f=a,d=e)};this.$each();return void 0===f?g:f},Ha.$$arity=0);b.alias(t,"member?","include?");b.def(t,"$min",la=function(){var a=la.$$p,b=a||g,c=this;a&&(la.$$p=null);a&&(la.$$p=null);var e;c.$each.$$p=b!==g?function(){var a=l(R,"Opal").$destructure(arguments);if(void 0===e)e=a;else{var f=b(a,e);f===g&&c.$raise(l(R,"ArgumentError"),"comparison failed");0>f&&(e=a)}}:function(){var a=l(R,"Opal").$destructure(arguments);void 0===e?e=a:0>l(R,"Opal").$compare(a,e)&&(e=a)};c.$each();return void 0===e?g:
252
+ e},la.$$arity=0);b.def(t,"$min_by",va=function(){var a=va.$$p,c=a||g,e;a&&(va.$$p=null);a&&(va.$$p=null);if(!x(c))return q(this,"enum_for",["min_by"],(e=function(){return(e.$$s||this).$enumerator_size()},e.$$s=this,e.$$arity=0,e));var f,d;this.$each.$$p=function(){var a=l(R,"Opal").$destructure(arguments),e=b.yield1(c,a);void 0===f?(f=a,d=e):0>e["$<=>"](d)&&(f=a,d=e)};this.$each();return void 0===f?g:f},va.$$arity=0);b.def(t,"$minmax",ta=function(){var a=ta.$$p,b=a||g,c,e,f=this;a&&(ta.$$p=null);
253
+ a&&(ta.$$p=null);b=x(c=b)?c:q(f,"proc",[],(e=function(a,b){null==a&&(a=g);null==b&&(b=g);return a["$<=>"](b)},e.$$s=f,e.$$arity=2,e));var d=g,n=g,p=!0;f.$each.$$p=function(){var a=l(R,"Opal").$destructure(arguments);if(p)d=n=a,p=!1;else{var c=b.$call(d,a);c===g?f.$raise(l(R,"ArgumentError"),"comparison failed"):0<c&&(d=a);c=b.$call(n,a);c===g?f.$raise(l(R,"ArgumentError"),"comparison failed"):0>c&&(n=a)}};f.$each();return[d,n]},ta.$$arity=0);b.def(t,"$minmax_by",ma=function(){var a=ma.$$p;a&&(ma.$$p=
254
+ null);a&&(ma.$$p=null);return this.$raise(l(R,"NotImplementedError"))},ma.$$arity=0);b.def(t,"$none?",wa=function(a){try{var c=wa.$$p,e=c||g,f,d,n;c&&(wa.$$p=null);c&&(wa.$$p=null);x(void 0!==a)?q(this,"each",[],(f=function(c){var e=b.slice.call(arguments,0,arguments.length);e=G(e);if(x(q(a,"public_send",["==="].concat(b.to_a(e)))))b.ret(!1);else return g},f.$$s=this,f.$$arity=-1,f)):e!==g?q(this,"each",[],(d=function(a){var c=b.slice.call(arguments,0,arguments.length);if(x(b.yieldX(e,b.to_a(c))))b.ret(!1);
255
+ else return g},d.$$s=this,d.$$arity=-1,d)):q(this,"each",[],(n=function(a){var c=b.slice.call(arguments,0,arguments.length);c=l(R,"Opal").$destructure(c);if(x(c))b.ret(!1);else return g},n.$$s=this,n.$$arity=-1,n));return!0}catch(ha){if(ha===b.returner)return ha.$v;throw ha;}},wa.$$arity=-1);b.def(t,"$one?",Ba=function(a){try{var c=Ba.$$p,e=c||g,f,d,n,p=g;c&&(Ba.$$p=null);c&&(Ba.$$p=null);p=0;x(void 0!==a)?q(this,"each",[],(f=function(c){var e=b.slice.call(arguments,0,arguments.length);e=G(e);if(x(q(a,
256
+ "public_send",["==="].concat(b.to_a(e)))))if(p=D(p,1),x(m(p,1)))b.ret(!1);else return g;else return g},f.$$s=this,f.$$arity=-1,f)):e!==g?q(this,"each",[],(d=function(a){var c=b.slice.call(arguments,0,arguments.length);if(!x(b.yieldX(e,b.to_a(c))))return g;p=D(p,1);if(x(m(p,1)))b.ret(!1);else return g},d.$$s=this,d.$$arity=-1,d)):q(this,"each",[],(n=function(a){var c=b.slice.call(arguments,0,arguments.length);if(!x(l(R,"Opal").$destructure(c)))return g;p=D(p,1);if(x(m(p,1)))b.ret(!1);else return g},
257
+ n.$$s=this,n.$$arity=-1,n));return p["$=="](1)}catch(za){if(za===b.returner)return za.$v;throw za;}},Ba.$$arity=-1);b.def(t,"$partition",Ma=function(){var a=Ma.$$p,c=a||g,e;a&&(Ma.$$p=null);a&&(Ma.$$p=null);if(c===g)return q(this,"enum_for",["partition"],(e=function(){return(e.$$s||this).$enumerator_size()},e.$$s=this,e.$$arity=0,e));var f=[],d=[];this.$each.$$p=function(){var a=l(R,"Opal").$destructure(arguments),e=b.yield1(c,a);x(e)?f.push(a):d.push(a)};this.$each();return[f,d]},Ma.$$arity=0);b.alias(t,
258
+ "reduce","inject");b.def(t,"$reject",Da=function(){var a=Da.$$p,c=a||g,e;a&&(Da.$$p=null);a&&(Da.$$p=null);if(c===g)return q(this,"enum_for",["reject"],(e=function(){return(e.$$s||this).$enumerator_size()},e.$$s=this,e.$$arity=0,e));var f=[];this.$each.$$p=function(){var a=l(R,"Opal").$destructure(arguments),e=b.yield1(c,a);O(e)&&f.push(a)};this.$each();return f},Da.$$arity=0);b.def(t,"$reverse_each",xa=function(){var a=xa.$$p,c=a||g,e;a&&(xa.$$p=null);a&&(xa.$$p=null);if(c===g)return q(this,"enum_for",
259
+ ["reverse_each"],(e=function(){return(e.$$s||this).$enumerator_size()},e.$$s=this,e.$$arity=0,e));var f=[];this.$each.$$p=function(){f.push(arguments)};this.$each();for(a=f.length-1;0<=a;a--)b.yieldX(c,f[a]);return f},xa.$$arity=0);b.alias(t,"select","find_all");b.def(t,"$slice_before",ya=function(a){var c=ya.$$p,e=c||g,f;c&&(ya.$$p=null);c&&(ya.$$p=null);x(void 0===a&&e===g)&&this.$raise(l(R,"ArgumentError"),"both pattern and block are given");x(void 0!==a&&e!==g||1<arguments.length)&&this.$raise(l(R,
260
+ "ArgumentError"),"wrong number of arguments ("+arguments.length+" expected 1)");return q(l(R,"Enumerator"),"new",[],(f=function(c){var d=f.$$s||this;null==c&&(c=g);var n=[];d.$each.$$p=e!==g?void 0===a?function(){var a=l(R,"Opal").$destructure(arguments),f=b.yield1(e,a);x(f)&&0<n.length&&(c["$<<"](n),n=[]);n.push(a)}:function(){var b=l(R,"Opal").$destructure(arguments),f=e(b,a.$dup());x(f)&&0<n.length&&(c["$<<"](n),n=[]);n.push(b)}:function(){var b=l(R,"Opal").$destructure(arguments),e=a["$==="](b);
261
+ x(e)&&0<n.length&&(c["$<<"](n),n=[]);n.push(b)};d.$each();if(0<n.length)c["$<<"](n)},f.$$s=this,f.$$arity=1,f))},ya.$$arity=-1);b.def(t,"$slice_after",fa=function(a){var c=fa.$$p,e=c||g,f,d;c&&(fa.$$p=null);c&&(fa.$$p=null);x(void 0===a&&e===g)&&this.$raise(l(R,"ArgumentError"),"both pattern and block are given");x(void 0!==a&&e!==g||1<arguments.length)&&this.$raise(l(R,"ArgumentError"),"wrong number of arguments ("+arguments.length+" expected 1)");x(void 0!==a)&&(e=q(this,"proc",[],(f=function(b){null==
262
+ b&&(b=g);return a["$==="](b)},f.$$s=this,f.$$arity=1,f)));return q(l(R,"Enumerator"),"new",[],(d=function(a){var c=d.$$s||this;null==a&&(a=g);var f;c.$each.$$p=function(){var c=l(R,"Opal").$destructure(arguments),d=b.yield1(e,c);null==f&&(f=[]);x(d)?(f.push(c),a.$yield(f),f=null):f.push(c)};c.$each();null!=f&&a.$yield(f)},d.$$s=this,d.$$arity=1,d))},fa.$$arity=-1);b.def(t,"$slice_when",I=function(){var a=I.$$p,c=a||g,e;a&&(I.$$p=null);a&&(I.$$p=null);c===g&&this.$raise(l(R,"ArgumentError"),"wrong number of arguments (0 for 1)");
263
+ return q(l(R,"Enumerator"),"new",[],(e=function(a){var f=e.$$s||this;null==a&&(a=g);var d=g,n=g;f.$each_cons.$$p=function(){var e=l(R,"Opal").$destructure(arguments),f=e[0];e=e[1];var p=b.yieldX(c,[f,e]);n=e;d===g&&(d=[]);x(p)?(d.push(f),a.$yield(d),d=[]):d.push(f)};f.$each_cons(2);d!==g&&(d.push(n),a.$yield(d))},e.$$s=this,e.$$arity=1,e))},I.$$arity=0);b.def(t,"$sort",Y=function(){var a=Y.$$p,b=a||g,c,e=g;a&&(Y.$$p=null);a&&(Y.$$p=null);e=this.$to_a();b===g&&(b=M((c=function(a,b){null==a&&(a=g);
264
+ null==b&&(b=g);return a["$<=>"](b)},c.$$s=this,c.$$arity=2,c)));return q(e,"sort",[],b.$to_proc())},Y.$$arity=0);b.def(t,"$sort_by",sa=function(){var a=sa.$$p,c=a||g,e,f,d,n,p=g;a&&(sa.$$p=null);a&&(sa.$$p=null);if(c===g)return q(this,"enum_for",["sort_by"],(e=function(){return(e.$$s||this).$enumerator_size()},e.$$s=this,e.$$arity=0,e));p=q(this,"map",[],(f=function(){var a=l(R,"Opal").$destructure(arguments);return[b.yield1(c,a),a]},f.$$s=this,f.$$arity=0,f));q(p,"sort!",[],(d=function(a,b){null==
265
+ a&&(a=g);null==b&&(b=g);return a[0]["$<=>"](b[0])},d.$$s=this,d.$$arity=2,d));return q(p,"map!",[],(n=function(a){null==a&&(a=g);return a[1]},n.$$s=this,n.$$arity=1,n))},sa.$$arity=0);b.def(t,"$sum",La=function(a){var c,e=La.$$p,f=e||g,d=g;e&&(La.$$p=null);null==a&&(a=0);d=a;q(this,"each",[],(c=function(a){var c=b.slice.call(arguments,0,arguments.length);c=f!==g?b.yieldX(f,b.to_a(c)):l(R,"Opal").$destructure(c);return d=D(d,c)},c.$$s=this,c.$$arity=-1,c));return d},La.$$arity=-1);b.def(t,"$take",
266
+ qa=function(a){return this.$first(a)},qa.$$arity=1);b.def(t,"$take_while",Oa=function(){try{var a=Oa.$$p,c=a||g,e,f=g;a&&(Oa.$$p=null);a&&(Oa.$$p=null);if(!x(c))return this.$enum_for("take_while");f=[];return q(this,"each",[],(e=function(a){var e=b.slice.call(arguments,0,arguments.length);e=l(R,"Opal").$destructure(e);x(b.yield1(c,e))||b.ret(f);return f.push(e)},e.$$s=this,e.$$arity=-1,e))}catch(oa){if(oa===b.returner)return oa.$v;throw oa;}},Oa.$$arity=0);b.def(t,"$uniq",da=function(){var a=da.$$p,
267
+ c=a||g,e,f=g;a&&(da.$$p=null);a&&(da.$$p=null);f=P([],{});q(this,"each",[],(e=function(a){var e=b.slice.call(arguments,0,arguments.length);e=l(R,"Opal").$destructure(e);var d=c!==g?b.yield1(c,e):e;if(x(f["$key?"](d)))return g;e=[d,e];q(f,"[]=",b.to_a(e));return e[C(e.length,1)]},e.$$s=this,e.$$arity=-1,e));return f.$values()},da.$$arity=0);b.alias(t,"to_a","entries");b.def(t,"$zip",na=function(a){var c=na.$$p;c&&(na.$$p=null);c&&(na.$$p=null);c=b.slice.call(arguments,0,arguments.length);return q(this.$to_a(),
268
+ "zip",b.to_a(c))},na.$$arity=-1)}(t[0],t)};
269
+ Opal.modules["corelib/enumerator"]=function(b){function m(b,g){return"number"===typeof b&&"number"===typeof g?b+g:b["$+"](g)}function D(b,g){return"number"===typeof b&&"number"===typeof g?b<g:b["$<"](g)}var C=b.top,u=[],t=b.nil,g=b.const_get_relative,H=b.breaker,l=b.slice,E=b.klass,x=b.truthy,q=b.send,O=b.falsy;b.add_stubs("$require $include $allocate $new $to_proc $coerce_to $nil? $empty? $+ $class $__send__ $=== $call $enum_for $size $destructure $inspect $any? $[] $raise $yield $each $enumerator_size $respond_to? $try_convert $< $for".split(" "));C.$require("corelib/enumerable");
270
+ return function(u,$super,C){u=E(u,$super,"Enumerator");var k=[u].concat(C),P,G,z,F,ja,Z;u.$$prototype.size=u.$$prototype.args=u.$$prototype.object=u.$$prototype.method=t;u.$include(g(k,"Enumerable"));u.$$prototype.$$is_enumerator=!0;b.defs(u,"$for",P=function(a,d,g){var v=P.$$p,k=v||t;v&&(P.$$p=null);v&&(P.$$p=null);v=b.slice.call(arguments,1,arguments.length);if(0<v.length){var r=v[0];v.splice(0,1)}null==r&&(r="each");var h=this.$allocate();h.object=a;h.size=k;h.method=r;h.args=v;return h},P.$$arity=
271
+ -2);b.def(u,"$initialize",G=function(a){var d=G.$$p,v=d||t;d&&(G.$$p=null);d&&(G.$$p=null);b.slice.call(arguments,0,arguments.length);if(x(v))return this.object=q(g(k,"Generator"),"new",[],v.$to_proc()),this.method="each",this.args=[],this.size=arguments[0]||t,x(this.size)?this.size=g(k,"Opal").$coerce_to(this.size,g(k,"Integer"),"to_int"):t;this.object=arguments[0];this.method=arguments[1]||"each";this.args=l.call(arguments,2);return this.size=t},G.$$arity=-1);b.def(u,"$each",z=function(a){var d=
272
+ z.$$p,g=d||t,k;d&&(z.$$p=null);d&&(z.$$p=null);d=b.slice.call(arguments,0,arguments.length);if(x(x(k=g["$nil?"]())?d["$empty?"]():k))return this;d=m(this.args,d);return x(g["$nil?"]())?q(this.$class(),"new",[this.object,this.method].concat(b.to_a(d))):q(this.object,"__send__",[this.method].concat(b.to_a(d)),g.$to_proc())},z.$$arity=-1);b.def(u,"$size",F=function(){return x(g(k,"Proc")["$==="](this.size))?q(this.size,"call",b.to_a(this.args)):this.size},F.$$arity=0);b.def(u,"$with_index",ja=function(a){var b=
273
+ ja.$$p,v=b||t,l;b&&(ja.$$p=null);b&&(ja.$$p=null);null==a&&(a=0);a=x(a)?g(k,"Opal").$coerce_to(a,g(k,"Integer"),"to_int"):0;if(!x(v))return q(this,"enum_for",["with_index",a],(l=function(){return(l.$$s||this).$size()},l.$$s=this,l.$$arity=0,l));var L=a;this.$each.$$p=function(){var a=g(k,"Opal").$destructure(arguments);a=v(a,L);L++;return a};return this.$each()},ja.$$arity=-1);b.alias(u,"with_object","each_with_object");b.def(u,"$inspect",Z=function(){var a="#<"+this.$class()+": "+this.object.$inspect()+
274
+ ":"+this.method;x(this.args["$any?"]())&&(a=m(a,"("+this.args.$inspect()["$[]"](g(k,"Range").$new(1,-2))+")"));return m(a,">")},Z.$$arity=0);(function(a,$super,v){a=E(a,$super,"Generator");var k=[a].concat(v),l,r;a.$$prototype.block=t;a.$include(g(k,"Enumerable"));b.def(a,"$initialize",l=function(){var a=l.$$p,b=a||t;a&&(l.$$p=null);a&&(l.$$p=null);x(b)||this.$raise(g(k,"LocalJumpError"),"no block given");return this.block=b},l.$$arity=0);return(b.def(a,"$each",r=function(a){var c=r.$$p,h=c||t;c&&
275
+ (r.$$p=null);c&&(r.$$p=null);c=b.slice.call(arguments,0,arguments.length);h=q(g(k,"Yielder"),"new",[],h.$to_proc());try{c.unshift(h),b.yieldX(this.block,c)}catch(p){if(p===H)return H.$v;throw p;}return this},r.$$arity=-1),t)&&"each"})(k[0],null,k);(function(a,$super,g){a=E(a,$super,"Yielder");[a].concat(g);var v,k,r;a.$$prototype.block=t;b.def(a,"$initialize",v=function(){var a=v.$$p,b=a||t;a&&(v.$$p=null);a&&(v.$$p=null);return this.block=b},v.$$arity=0);b.def(a,"$yield",k=function(a){var c=b.slice.call(arguments,
276
+ 0,arguments.length);c=b.yieldX(this.block,c);if(c===H)throw H;return c},k.$$arity=-1);return(b.def(a,"$<<",r=function(a){var c=b.slice.call(arguments,0,arguments.length);q(this,"yield",b.to_a(c));return this},r.$$arity=-1),t)&&"<<"})(k[0],null,k);return function(a,$super,v){a=E(a,$super,"Lazy");var k=[a].concat(v),l,r,h,c,A,p,U,S,n,e,f,N,ea;a.$$prototype.enumerator=t;(function(a,$super,b){[E(a,$super,"StopLazyError")].concat(b);return t})(k[0],g(k,"Exception"),k);b.def(a,"$initialize",l=function(a,
277
+ c){var e=l.$$p,f=e||t,n;e&&(l.$$p=null);e&&(l.$$p=null);null==c&&(c=t);f===t&&this.$raise(g(k,"ArgumentError"),"tried to call lazy new without a block");this.enumerator=a;return q(this,b.find_super_dispatcher(this,"initialize",l,!1),[c],(n=function(c,e){var p=n.$$s||this,h;null==c&&(c=t);var r=b.slice.call(arguments,1,arguments.length);try{return q(a,"each",b.to_a(r),(h=function(a){var e=b.slice.call(arguments,0,arguments.length);e.unshift(c);b.yieldX(f,e)},h.$$s=p,h.$$arity=-1,h))}catch(ta){if(b.rescue(ta,
278
+ [g(k,"Exception")]))try{return t}finally{b.pop_exception()}else throw ta;}},n.$$s=this,n.$$arity=-2,n))},l.$$arity=-2);b.alias(a,"force","to_a");b.def(a,"$lazy",r=function(){return this},r.$$arity=0);b.def(a,"$collect",h=function(){var a=h.$$p,c=a||t,e;a&&(h.$$p=null);a&&(h.$$p=null);x(c)||this.$raise(g(k,"ArgumentError"),"tried to call lazy map without a block");return q(g(k,"Lazy"),"new",[this,this.$enumerator_size()],(e=function(a,e){null==a&&(a=t);var f=b.slice.call(arguments,1,arguments.length);
279
+ f=b.yieldX(c,f);a.$yield(f)},e.$$s=this,e.$$arity=-2,e))},h.$$arity=0);b.def(a,"$collect_concat",c=function(){var a=c.$$p,e=a||t,f;a&&(c.$$p=null);a&&(c.$$p=null);x(e)||this.$raise(g(k,"ArgumentError"),"tried to call lazy map without a block");return q(g(k,"Lazy"),"new",[this,t],(f=function(a,c){var n=f.$$s||this,p,h;null==a&&(a=t);var r=b.slice.call(arguments,1,arguments.length);r=b.yieldX(e,r);r["$respond_to?"]("force")&&r["$respond_to?"]("each")?q(r,"each",[],(p=function(b){null==b&&(b=t);return a.$yield(b)},
280
+ p.$$s=n,p.$$arity=1,p)):g(k,"Opal").$try_convert(r,g(k,"Array"),"to_ary")===t?a.$yield(r):q(r,"each",[],(h=function(b){null==b&&(b=t);return a.$yield(b)},h.$$s=n,h.$$arity=1,h))},f.$$s=this,f.$$arity=-2,f))},c.$$arity=0);b.def(a,"$drop",A=function(a){var c,e=t,f=e=t;a=g(k,"Opal").$coerce_to(a,g(k,"Integer"),"to_int");x(D(a,0))&&this.$raise(g(k,"ArgumentError"),"attempt to drop negative size");e=this.$enumerator_size();e=x(g(k,"Integer")["$==="](e))?x(D(a,e))?a:e:e;f=0;return q(g(k,"Lazy"),"new",[this,
281
+ e],(c=function(c,e){null==c&&(c=t);var n=b.slice.call(arguments,1,arguments.length);return x(D(f,a))?f=m(f,1):q(c,"yield",b.to_a(n))},c.$$s=this,c.$$arity=-2,c))},A.$$arity=1);b.def(a,"$drop_while",p=function(){var a=p.$$p,c=a||t,e,f=t;a&&(p.$$p=null);a&&(p.$$p=null);x(c)||this.$raise(g(k,"ArgumentError"),"tried to call lazy drop_while without a block");f=!0;return q(g(k,"Lazy"),"new",[this,t],(e=function(a,e){null==a&&(a=t);var n=b.slice.call(arguments,1,arguments.length);if(x(f)){var p=b.yieldX(c,
282
+ n);O(p)&&(f=!1,q(a,"yield",b.to_a(n)))}else return q(a,"yield",b.to_a(n))},e.$$s=this,e.$$arity=-2,e))},p.$$arity=0);b.def(a,"$enum_for",U=function(a,c){var e=U.$$p,f=e||t;e&&(U.$$p=null);e&&(U.$$p=null);e=b.slice.call(arguments,0,arguments.length);if(0<e.length){var n=e[0];e.splice(0,1)}null==n&&(n="each");return q(this.$class(),"for",[this,n].concat(b.to_a(e)),f.$to_proc())},U.$$arity=-1);b.def(a,"$find_all",S=function(){var a=S.$$p,c=a||t,e;a&&(S.$$p=null);a&&(S.$$p=null);x(c)||this.$raise(g(k,
283
+ "ArgumentError"),"tried to call lazy select without a block");return q(g(k,"Lazy"),"new",[this,t],(e=function(a,e){null==a&&(a=t);var f=b.slice.call(arguments,1,arguments.length);var n=b.yieldX(c,f);x(n)&&q(a,"yield",b.to_a(f))},e.$$s=this,e.$$arity=-2,e))},S.$$arity=0);b.alias(a,"flat_map","collect_concat");b.def(a,"$grep",n=function(a){var c=n.$$p,e=c||t,f,p;c&&(n.$$p=null);c&&(n.$$p=null);return x(e)?q(g(k,"Lazy"),"new",[this,t],(f=function(c,f){null==c&&(c=t);var n=b.slice.call(arguments,1,arguments.length);
284
+ n=g(k,"Opal").$destructure(n);var p=a["$==="](n);x(p)&&(b.yield1(e,n),c.$yield(b.yield1(e,n)))},f.$$s=this,f.$$arity=-2,f)):q(g(k,"Lazy"),"new",[this,t],(p=function(c,e){null==c&&(c=t);var f=b.slice.call(arguments,1,arguments.length);f=g(k,"Opal").$destructure(f);var n=a["$==="](f);x(n)&&c.$yield(f)},p.$$s=this,p.$$arity=-2,p))},n.$$arity=1);b.alias(a,"map","collect");b.alias(a,"select","find_all");b.def(a,"$reject",e=function(){var a=e.$$p,c=a||t,f;a&&(e.$$p=null);a&&(e.$$p=null);x(c)||this.$raise(g(k,
285
+ "ArgumentError"),"tried to call lazy reject without a block");return q(g(k,"Lazy"),"new",[this,t],(f=function(a,e){null==a&&(a=t);var f=b.slice.call(arguments,1,arguments.length);var n=b.yieldX(c,f);O(n)&&q(a,"yield",b.to_a(f))},f.$$s=this,f.$$arity=-2,f))},e.$$arity=0);b.def(a,"$take",f=function(a){var c,e=t,f=e=t;a=g(k,"Opal").$coerce_to(a,g(k,"Integer"),"to_int");x(D(a,0))&&this.$raise(g(k,"ArgumentError"),"attempt to take negative size");e=this.$enumerator_size();e=x(g(k,"Integer")["$==="](e))?
286
+ x(D(a,e))?a:e:e;f=0;return q(g(k,"Lazy"),"new",[this,e],(c=function(e,n){var p=c.$$s||this;null==e&&(e=t);var h=b.slice.call(arguments,1,arguments.length);return x(D(f,a))?(q(e,"yield",b.to_a(h)),f=m(f,1)):p.$raise(g(k,"StopLazyError"))},c.$$s=this,c.$$arity=-2,c))},f.$$arity=1);b.def(a,"$take_while",N=function(){var a=N.$$p,c=a||t,e;a&&(N.$$p=null);a&&(N.$$p=null);x(c)||this.$raise(g(k,"ArgumentError"),"tried to call lazy take_while without a block");return q(g(k,"Lazy"),"new",[this,t],(e=function(a,
287
+ f){var n=e.$$s||this;null==a&&(a=t);var p=b.slice.call(arguments,1,arguments.length);var h=b.yieldX(c,p);x(h)?q(a,"yield",b.to_a(p)):n.$raise(g(k,"StopLazyError"))},e.$$s=this,e.$$arity=-2,e))},N.$$arity=0);b.alias(a,"to_enum","enum_for");return(b.def(a,"$inspect",ea=function(){return"#<"+this.$class()+": "+this.enumerator.$inspect()+">"},ea.$$arity=0),t)&&"inspect"}(k[0],u,k)}(u[0],null,u)};
288
+ Opal.modules["corelib/numeric"]=function(b){function m(b,g){return"number"===typeof b&&"number"===typeof g?b-g:b["$-"](g)}function D(b,g){return"number"===typeof b&&"number"===typeof g?b*g:b["$*"](g)}function C(b,g){return"number"===typeof b&&"number"===typeof g?b<g:b["$<"](g)}function u(b,g){return"number"===typeof b&&"number"===typeof g?b/g:b["$/"](g)}var t=b.top,g=[],H=b.nil,l=b.const_get_qualified,E=b.const_get_relative,x=b.klass,q=b.truthy,O=b.hash2;b.add_stubs("$require $include $instance_of? $class $Float $respond_to? $coerce $__send__ $=== $raise $equal? $- $* $div $< $-@ $ceil $to_f $denominator $to_r $== $floor $/ $% $Complex $zero? $numerator $abs $arg $coerce_to! $round $to_i $truncate $>".split(" "));
289
+ t.$require("corelib/comparable");return function(g,$super,t){g=x(g,$super,"Numeric");var k=[g].concat(t),G,P,z,F,ja,Z,a,d,v,B,L,r,h,c,A,p,U,S,n,e,f,N,ea,ka,J,T,ba,y,ca,V,Ha,la,va,ta,ma,wa,Ba;g.$include(E(k,"Comparable"));b.def(g,"$coerce",G=function(a){return q(a["$instance_of?"](this.$class()))?[a,this]:[this.$Float(a),this.$Float(this)]},G.$$arity=1);b.def(g,"$__coerced__",P=function(a,c){if(q(c["$respond_to?"]("coerce"))){c=c.$coerce(this);var e=b.to_ary(c);var f=null==e[0]?H:e[0];e=null==e[1]?
290
+ H:e[1];c;return f.$__send__(a,e)}return"+"["$==="](a)||"-"["$==="](a)||"*"["$==="](a)||"/"["$==="](a)||"%"["$==="](a)||"&"["$==="](a)||"|"["$==="](a)||"^"["$==="](a)||"**"["$==="](a)?this.$raise(E(k,"TypeError"),""+c.$class()+" can't be coerced into Numeric"):">"["$==="](a)||">="["$==="](a)||"<"["$==="](a)||"<="["$==="](a)||"<=>"["$==="](a)?this.$raise(E(k,"ArgumentError"),"comparison of "+this.$class()+" with "+c.$class()+" failed"):H},P.$$arity=2);b.def(g,"$<=>",z=function(a){return q(this["$equal?"](a))?
291
+ 0:H},z.$$arity=1);b.def(g,"$+@",F=function(){return this},F.$$arity=0);b.def(g,"$-@",ja=function(){return m(0,this)},ja.$$arity=0);b.def(g,"$%",Z=function(a){return m(this,D(a,this.$div(a)))},Z.$$arity=1);b.def(g,"$abs",a=function(){return C(this,0)?this["$-@"]():this},a.$$arity=0);b.def(g,"$abs2",d=function(){return D(this,this)},d.$$arity=0);b.def(g,"$angle",v=function(){return C(this,0)?l(E(k,"Math"),"PI"):0},v.$$arity=0);b.alias(g,"arg","angle");b.def(g,"$ceil",B=function(a){null==a&&(a=0);return this.$to_f().$ceil(a)},
292
+ B.$$arity=-1);b.def(g,"$conj",L=function(){return this},L.$$arity=0);b.alias(g,"conjugate","conj");b.def(g,"$denominator",r=function(){return this.$to_r().$denominator()},r.$$arity=0);b.def(g,"$div",h=function(a){a["$=="](0)&&this.$raise(E(k,"ZeroDivisionError"),"divided by o");return u(this,a).$floor()},h.$$arity=1);b.def(g,"$divmod",c=function(a){return[this.$div(a),this["$%"](a)]},c.$$arity=1);b.def(g,"$fdiv",A=function(a){return u(this.$to_f(),a)},A.$$arity=1);b.def(g,"$floor",p=function(a){null==
293
+ a&&(a=0);return this.$to_f().$floor(a)},p.$$arity=-1);b.def(g,"$i",U=function(){return this.$Complex(0,this)},U.$$arity=0);b.def(g,"$imag",S=function(){return 0},S.$$arity=0);b.alias(g,"imaginary","imag");b.def(g,"$integer?",n=function(){return!1},n.$$arity=0);b.alias(g,"magnitude","abs");b.alias(g,"modulo","%");b.def(g,"$nonzero?",e=function(){return q(this["$zero?"]())?H:this},e.$$arity=0);b.def(g,"$numerator",f=function(){return this.$to_r().$numerator()},f.$$arity=0);b.alias(g,"phase","arg");
294
+ b.def(g,"$polar",N=function(){return[this.$abs(),this.$arg()]},N.$$arity=0);b.def(g,"$quo",ea=function(a){return u(E(k,"Opal")["$coerce_to!"](this,E(k,"Rational"),"to_r"),a)},ea.$$arity=1);b.def(g,"$real",ka=function(){return this},ka.$$arity=0);b.def(g,"$real?",J=function(){return!0},J.$$arity=0);b.def(g,"$rect",T=function(){return[this,0]},T.$$arity=0);b.alias(g,"rectangular","rect");b.def(g,"$round",ba=function(a){return this.$to_f().$round(a)},ba.$$arity=-1);b.def(g,"$to_c",y=function(){return this.$Complex(this,
295
+ 0)},y.$$arity=0);b.def(g,"$to_int",ca=function(){return this.$to_i()},ca.$$arity=0);b.def(g,"$truncate",V=function(a){null==a&&(a=0);return this.$to_f().$truncate(a)},V.$$arity=-1);b.def(g,"$zero?",Ha=function(){return this["$=="](0)},Ha.$$arity=0);b.def(g,"$positive?",la=function(){return"number"===typeof this?0<this:this["$>"](0)},la.$$arity=0);b.def(g,"$negative?",va=function(){return C(this,0)},va.$$arity=0);b.def(g,"$dup",ta=function(){return this},ta.$$arity=0);b.def(g,"$clone",ma=function(a){if(null==
296
+ a)O([],{});else if(!a.$$is_hash)throw b.ArgumentError.$new("expected kwargs");return this},ma.$$arity=-1);b.def(g,"$finite?",wa=function(){return!0},wa.$$arity=0);return(b.def(g,"$infinite?",Ba=function(){return H},Ba.$$arity=0),H)&&"infinite?"}(g[0],null,g)};
297
+ Opal.modules["corelib/array"]=function(b){function m(b,g){return"number"===typeof b&&"number"===typeof g?b>g:b["$>"](g)}var D=b.top,C=[],u=b.nil,t=b.const_get_qualified,g=b.const_get_relative,H=b.klass,l=b.truthy,E=b.hash2,x=b.send,q=b.gvars;b.add_stubs("$require $include $to_a $warn $raise $replace $respond_to? $to_ary $coerce_to $coerce_to? $=== $join $to_str $class $hash $<=> $== $object_id $inspect $enum_for $bsearch_index $to_proc $nil? $coerce_to! $> $* $enumerator_size $empty? $size $map $equal? $dup $each $[] $dig $eql? $length $begin $end $exclude_end? $flatten $__id__ $to_s $new $max $min $! $>= $** $delete_if $reverse $rotate $rand $at $keep_if $shuffle! $< $sort $sort_by $!= $times $[]= $- $<< $values $is_a? $last $first $upto $reject $pristine $singleton_class".split(" "));
298
+ D.$require("corelib/enumerable");D.$require("corelib/numeric");return function(C,$super,D){function G(a,c){return c.$$name===b.Array?a:c.$allocate().$replace(a.$to_a())}function k(a,c){var e=a.length;var f=c.excl;var d=b.Opal.$coerce_to(c.begin,b.Integer,"to_int");c=b.Opal.$coerce_to(c.end,b.Integer,"to_int");if(0>d&&(d+=e,0>d)||d>e)return u;if(0>c&&(c+=e,0>c))return[];f||(c+=1);e=a.slice(d,c);return G(e,a.$class())}function M(a,c,e){var f=a.length;c=b.Opal.$coerce_to(c,b.Integer,"to_int");if(0>c&&
299
+ (c+=f,0>c))return u;if(void 0===e)return c>=f||0>c?u:a[c];e=b.Opal.$coerce_to(e,b.Integer,"to_int");if(0>e||c>f||0>c)return u;c=a.slice(c,c+e);return G(c,a.$class())}function R(a,b){return a===b||0===b?1:0<b&&a>b?R(a-1,b-1)+R(a-1,b):0}var z=H(C,$super,"Array"),F=[z].concat(D),O,Z,a,d,v,B,L,r,h,c,A,p,U,S,n,e,f,N,ea,ka,J,T,ba,y,ca,V,Ha,la,va,ta,ma,wa,Ba,Ma,Da,xa,ya,fa,I,Y,sa,La,qa,Oa,da,na,Ja,Va,Ua,$a,oa,Aa,ha,za,Ca,ua,Na,Ia,Ea,Sa,Qa,Pa,Fa,Ga,Wa,Ta,Xa,Ya,bb,Za,ia,w,Q,ra,ab,K,aa,W,X,Ka,lb,gb,jb,kb,fb,
300
+ Ra,cb,nb,ob,hb,pb,eb,qb;z.$include(g(F,"Enumerable"));b.defineProperty(z.$$prototype,"$$is_array",!0);b.defs(z,"$[]",O=function(a){var c=b.slice.call(arguments,0,arguments.length);return G(c,this)},O.$$arity=-1);b.def(z,"$initialize",Z=function(a,b){var c=Z.$$p,e=c||u;c&&(Z.$$p=null);c&&(Z.$$p=null);null==a&&(a=u);null==b&&(b=u);b!==u&&e!==u&&this.$warn("warning: block supersedes default value argument");a>t(g(F,"Integer"),"MAX")&&this.$raise(g(F,"ArgumentError"),"array size too big");2<arguments.length&&
301
+ this.$raise(g(F,"ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..2)");if(0===arguments.length)return this.splice(0,this.length),this;if(1===arguments.length){if(a.$$is_array)return this.$replace(a.$to_a()),this;if(a["$respond_to?"]("to_ary"))return this.$replace(a.$to_ary()),this}a=g(F,"Opal").$coerce_to(a,g(F,"Integer"),"to_int");0>a&&this.$raise(g(F,"ArgumentError"),"negative array size");this.splice(0,this.length);if(e===u)for(c=0;c<a;c++)this.push(b);else for(c=0,f;c<a;c++){var f=
302
+ e(c);this[c]=f}return this},Z.$$arity=-1);b.defs(z,"$try_convert",a=function(a){return g(F,"Opal")["$coerce_to?"](a,g(F,"Array"),"to_ary")},a.$$arity=1);b.def(z,"$&",d=function(a){a=l(g(F,"Array")["$==="](a))?a.$to_a():g(F,"Opal").$coerce_to(a,g(F,"Array"),"to_ary").$to_a();var c=[],e=E([],{}),f;var d=0;for(f=a.length;d<f;d++)b.hash_put(e,a[d],!0);d=0;for(f=this.length;d<f;d++)a=this[d],void 0!==b.hash_delete(e,a)&&c.push(a);return c},d.$$arity=1);b.def(z,"$|",v=function(a){a=l(g(F,"Array")["$==="](a))?
303
+ a.$to_a():g(F,"Opal").$coerce_to(a,g(F,"Array"),"to_ary").$to_a();var c=E([],{}),e;var f=0;for(e=this.length;f<e;f++)b.hash_put(c,this[f],!0);f=0;for(e=a.length;f<e;f++)b.hash_put(c,a[f],!0);return c.$keys()},v.$$arity=1);b.def(z,"$*",B=function(a){if(l(a["$respond_to?"]("to_str")))return this.$join(a.$to_str());a=g(F,"Opal").$coerce_to(a,g(F,"Integer"),"to_int");l(0>a)&&this.$raise(g(F,"ArgumentError"),"negative argument");for(var b=[],c=this.$to_a(),e=0;e<a;e++)b=b.concat(c);return G(b,this.$class())},
304
+ B.$$arity=1);b.def(z,"$+",L=function(a){a=l(g(F,"Array")["$==="](a))?a.$to_a():g(F,"Opal").$coerce_to(a,g(F,"Array"),"to_ary").$to_a();return this.concat(a)},L.$$arity=1);b.def(z,"$-",r=function(a){a=l(g(F,"Array")["$==="](a))?a.$to_a():g(F,"Opal").$coerce_to(a,g(F,"Array"),"to_ary").$to_a();if(l(0===this.length))return[];if(l(0===a.length))return this.slice();var c=[],e=E([],{}),f;var d=0;for(f=a.length;d<f;d++)b.hash_put(e,a[d],!0);d=0;for(f=this.length;d<f;d++)a=this[d],void 0===b.hash_get(e,a)&&
305
+ c.push(a);return c},r.$$arity=1);b.def(z,"$<<",h=function(a){this.push(a);return this},h.$$arity=1);b.def(z,"$<=>",c=function(a){if(l(g(F,"Array")["$==="](a)))a=a.$to_a();else if(l(a["$respond_to?"]("to_ary")))a=a.$to_ary().$to_a();else return u;if(this.$hash()===a.$hash())return 0;for(var b=Math.min(this.length,a.length),c=0;c<b;c++){var e=this[c]["$<=>"](a[c]);if(0!==e)return e}return this.length["$<=>"](a.length)},c.$$arity=1);b.def(z,"$==",A=function(a){function b(a,e){var f;if(a===e)return!0;
306
+ if(!e.$$is_array)return g(F,"Opal")["$respond_to?"](e,"to_ary")?e["$=="](a):!1;a.$$constructor!==Array&&(a=a.$to_a());e.$$constructor!==Array&&(e=e.$to_a());if(a.length!==e.length)return!1;c[a.$object_id()]=!0;var d=0;for(f=a.length;d<f;d++){var w=a[d];var n=e[d];if(w.$$is_array){if(n.$$is_array&&n.length!==w.length||!c.hasOwnProperty(w.$object_id())&&!b(w,n))return!1}else if(!w["$=="](n))return!1}return!0}var c={};return b(this,a)},A.$$arity=1);b.def(z,"$[]",p=function(a,b){return a.$$is_range?k(this,
307
+ a):M(this,a,b)},p.$$arity=-2);b.def(z,"$[]=",U=function(a,b,c){var e=u;var f=this.length;if(l(g(F,"Range")["$==="](a))){e=l(g(F,"Array")["$==="](b))?b.$to_a():l(b["$respond_to?"]("to_ary"))?b.$to_ary().$to_a():[b];var d=a.excl;c=g(F,"Opal").$coerce_to(a.begin,g(F,"Integer"),"to_int");var w=g(F,"Opal").$coerce_to(a.end,g(F,"Integer"),"to_int");0>c&&(c+=f,0>c&&this.$raise(g(F,"RangeError"),""+a.$inspect()+" out of range"));0>w&&(w+=f);d||(w+=1);if(c>f)for(;f<c;f++)this[f]=u;0>w?this.splice.apply(this,
308
+ [c,0].concat(e)):this.splice.apply(this,[c,w-c].concat(e))}else{l(void 0===c)?w=1:(w=b,b=c,e=l(g(F,"Array")["$==="](b))?b.$to_a():l(b["$respond_to?"]("to_ary"))?b.$to_ary().$to_a():[b]);a=g(F,"Opal").$coerce_to(a,g(F,"Integer"),"to_int");w=g(F,"Opal").$coerce_to(w,g(F,"Integer"),"to_int");0>a&&(d=a,a+=f,0>a&&this.$raise(g(F,"IndexError"),"index "+d+" too small for array; minimum "+-this.length));0>w&&this.$raise(g(F,"IndexError"),"negative length ("+w+")");if(a>f)for(;f<a;f++)this[f]=u;void 0===c?
309
+ this[a]=b:this.splice.apply(this,[a,w].concat(e))}return b},U.$$arity=-3);b.def(z,"$any?",S=function(a){var c=S.$$p,e;c&&(S.$$p=null);var f=0;var d=arguments.length;for(e=Array(d);f<d;f++)e[f]=arguments[f];c&&(S.$$p=null);return 0===this.length?!1:x(this,b.find_super_dispatcher(this,"any?",S,!1),e,c)},S.$$arity=-1);b.def(z,"$assoc",n=function(a){for(var b=0,c=this.length,e;b<c;b++)if(e=this[b],e.length&&e[0]["$=="](a))return e;return u},n.$$arity=1);b.def(z,"$at",e=function(a){a=g(F,"Opal").$coerce_to(a,
310
+ g(F,"Integer"),"to_int");0>a&&(a+=this.length);return 0>a||a>=this.length?u:this[a]},e.$$arity=1);b.def(z,"$bsearch_index",f=function(){var a=f.$$p,c=a||u;a&&(f.$$p=null);a&&(f.$$p=null);if(c===u)return this.$enum_for("bsearch_index");a=0;for(var e=this.length,d,w,n=!1,p=u;a<e;){d=a+Math.floor((e-a)/2);w=this[d];w=b.yield1(c,w);if(!0===w)p=d,n=!0;else if(!1===w||w===u)n=!1;else if(w.$$is_number){if(0===w)return d;n=0>w}else this.$raise(g(F,"TypeError"),"wrong argument type "+w.$class()+" (must be numeric, true, false or nil)");
311
+ n?e=d:a=d+1}return p},f.$$arity=0);b.def(z,"$bsearch",N=function(){var a=N.$$p,b=a||u;a&&(N.$$p=null);a&&(N.$$p=null);if(b===u)return this.$enum_for("bsearch");a=x(this,"bsearch_index",[],b.$to_proc());return null!=a&&a.$$is_number?this[a]:a},N.$$arity=0);b.def(z,"$cycle",ea=function(a){var c=ea.$$p,e=c||u,f,d;c&&(ea.$$p=null);c&&(ea.$$p=null);null==a&&(a=u);if(e===u)return x(this,"enum_for",["cycle",a],(f=function(){var b=f.$$s||this;if(l(a["$nil?"]()))return t(g(F,"Float"),"INFINITY");a=g(F,"Opal")["$coerce_to!"](a,
312
+ g(F,"Integer"),"to_int");return l(m(a,0))?(b=b.$enumerator_size(),"number"===typeof b&&"number"===typeof a?b*a:b["$*"](a)):0},f.$$s=this,f.$$arity=0,f));if(l(l(d=this["$empty?"]())?d:a["$=="](0)))return u;if(a===u)for(;;)for(c=0,d=this.length;c<d;c++)b.yield1(e,this[c]);else{a=g(F,"Opal")["$coerce_to!"](a,g(F,"Integer"),"to_int");if(0>=a)return this;for(;0<a;){c=0;for(d=this.length;c<d;c++)b.yield1(e,this[c]);a--}}return this},ea.$$arity=-1);b.def(z,"$clear",ka=function(){this.splice(0,this.length);
313
+ return this},ka.$$arity=0);b.def(z,"$count",J=function(a){var c=J.$$p,e=c||u,f,d;c&&(J.$$p=null);var w=0;var n=arguments.length;for(d=Array(n);w<n;w++)d[w]=arguments[w];c&&(J.$$p=null);null==a&&(a=u);return l(l(f=a)?f:e)?x(this,b.find_super_dispatcher(this,"count",J,!1),d,c):this.$size()},J.$$arity=-1);b.def(z,"$initialize_copy",T=function(a){return this.$replace(a)},T.$$arity=1);b.def(z,"$collect",ba=function(){var a=ba.$$p,c=a||u,e;a&&(ba.$$p=null);a&&(ba.$$p=null);if(c===u)return x(this,"enum_for",
314
+ ["collect"],(e=function(){return(e.$$s||this).$size()},e.$$s=this,e.$$arity=0,e));a=[];for(var f=0,d=this.length;f<d;f++){var w=b.yield1(c,this[f]);a.push(w)}return a},ba.$$arity=0);b.def(z,"$collect!",y=function(){var a=y.$$p,c=a||u,e;a&&(y.$$p=null);a&&(y.$$p=null);if(c===u)return x(this,"enum_for",["collect!"],(e=function(){return(e.$$s||this).$size()},e.$$s=this,e.$$arity=0,e));a=0;for(var f=this.length;a<f;a++){var d=b.yield1(c,this[a]);this[a]=d}return this},y.$$arity=0);b.def(z,"$combination",
315
+ ca=function(a){var c,e=ca.$$p,f=e||u,d=u;e&&(ca.$$p=null);d=g(F,"Opal")["$coerce_to!"](a,g(F,"Integer"),"to_int");if(f===u)return x(this,"enum_for",["combination",d],(c=function(){return R((c.$$s||this).length,d)},c.$$s=this,c.$$arity=0,c));if(0===d)b.yield1(f,[]);else if(1===d)for(e=0,a=this.length;e<a;e++)b.yield1(f,[this[e]]);else if(d===this.length)b.yield1(f,this.slice());else if(0<=d&&d<this.length){a=[];for(e=0;e<=d+1;e++)a.push(0);e=[];var w=0;var n=!1;for(a[0]=-1;!n;){for(e[w]=this[a[w+1]];w<
316
+ d-1;)w++,n=a[w+1]=a[w]+1,e[w]=this[n];b.yield1(f,e.slice());w++;do n=0===w,a[w]++,w--;while(a[w+1]+d===this.length+w+1)}}return this},ca.$$arity=1);b.def(z,"$repeated_combination",V=function(a){function c(a,e,f,w){if(f.length==a)a=f.slice(),b.yield1(d,a);else for(;e<w.length;e++)f.push(w[e]),c(a,e,f,w),f.pop()}var e,f=V.$$p,d=f||u,w=u;f&&(V.$$p=null);w=g(F,"Opal")["$coerce_to!"](a,g(F,"Integer"),"to_int");if(d===u)return x(this,"enum_for",["repeated_combination",w],(e=function(){return R((e.$$s||
317
+ this).length+w-1,w)},e.$$s=this,e.$$arity=0,e));0<=w&&c(w,0,[],this);return this},V.$$arity=1);b.def(z,"$compact",Ha=function(){for(var a=[],b=0,c=this.length,e;b<c;b++)(e=this[b])!==u&&a.push(e);return a},Ha.$$arity=0);b.def(z,"$compact!",la=function(){for(var a=this.length,b=0,c=this.length;b<c;b++)this[b]===u&&(this.splice(b,1),c--,b--);return this.length===a?u:this},la.$$arity=0);b.def(z,"$concat",va=function(a){var c,e;var f=b.slice.call(arguments,0,arguments.length);f=x(f,"map",[],(c=function(a){var b=
318
+ c.$$s||this;null==a&&(a=u);a=l(g(F,"Array")["$==="](a))?a.$to_a():g(F,"Opal").$coerce_to(a,g(F,"Array"),"to_ary").$to_a();l(a["$equal?"](b))&&(a=a.$dup());return a},c.$$s=this,c.$$arity=1,c));x(f,"each",[],(e=function(a){var b=e.$$s||this;null==a&&(a=u);for(var c=0,f=a.length;c<f;c++)b.push(a[c])},e.$$s=this,e.$$arity=1,e));return this},va.$$arity=-1);b.def(z,"$delete",ta=function(a){var c=ta.$$p,e=c||u;c&&(ta.$$p=null);c=this.length;for(var f=0,d=c;f<d;f++)this[f]["$=="](a)&&(this.splice(f,1),d--,
319
+ f--);return this.length===c?e!==u?b.yieldX(e,[]):u:a},ta.$$arity=1);b.def(z,"$delete_at",ma=function(a){a=g(F,"Opal").$coerce_to(a,g(F,"Integer"),"to_int");0>a&&(a+=this.length);if(0>a||a>=this.length)return u;var b=this[a];this.splice(a,1);return b},ma.$$arity=1);b.def(z,"$delete_if",wa=function(){var a=wa.$$p,b=a||u,c;a&&(wa.$$p=null);a&&(wa.$$p=null);if(b===u)return x(this,"enum_for",["delete_if"],(c=function(){return(c.$$s||this).$size()},c.$$s=this,c.$$arity=0,c));a=0;for(var e=this.length,f;a<
320
+ e;a++)f=b(this[a]),!1!==f&&f!==u&&(this.splice(a,1),e--,a--);return this},wa.$$arity=0);b.def(z,"$dig",Ba=function(a,c){var e=b.slice.call(arguments,1,arguments.length);var f=this["$[]"](a);if(f===u||0===e.length)return f;l(f["$respond_to?"]("dig"))||this.$raise(g(F,"TypeError"),""+f.$class()+" does not have #dig method");return x(f,"dig",b.to_a(e))},Ba.$$arity=-2);b.def(z,"$drop",Ma=function(a){0>a&&this.$raise(g(F,"ArgumentError"));return this.slice(a)},Ma.$$arity=1);b.def(z,"$dup",Da=function(){var a=
321
+ Da.$$p,c;a&&(Da.$$p=null);var e=0;var f=arguments.length;for(c=Array(f);e<f;e++)c[e]=arguments[e];return this.$$class===b.Array&&this.$$class.$allocate.$$pristine&&this.$copy_instance_variables.$$pristine&&this.$initialize_dup.$$pristine?this.slice(0):x(this,b.find_super_dispatcher(this,"dup",Da,!1),c,a)},Da.$$arity=0);b.def(z,"$each",xa=function(){var a=xa.$$p,c=a||u,e;a&&(xa.$$p=null);a&&(xa.$$p=null);if(c===u)return x(this,"enum_for",["each"],(e=function(){return(e.$$s||this).$size()},e.$$s=this,
322
+ e.$$arity=0,e));a=0;for(var f=this.length;a<f;a++)b.yield1(c,this[a]);return this},xa.$$arity=0);b.def(z,"$each_index",ya=function(){var a=ya.$$p,c=a||u,e;a&&(ya.$$p=null);a&&(ya.$$p=null);if(c===u)return x(this,"enum_for",["each_index"],(e=function(){return(e.$$s||this).$size()},e.$$s=this,e.$$arity=0,e));a=0;for(var f=this.length;a<f;a++)b.yield1(c,a);return this},ya.$$arity=0);b.def(z,"$empty?",fa=function(){return 0===this.length},fa.$$arity=0);b.def(z,"$eql?",I=function(a){function b(a,e){var f;
323
+ if(!e.$$is_array)return!1;e=e.$to_a();if(a.length!==e.length)return!1;c[a.$object_id()]=!0;var d=0;for(f=a.length;d<f;d++){var w=a[d];var n=e[d];if(w.$$is_array){if(n.$$is_array&&n.length!==w.length||!c.hasOwnProperty(w.$object_id())&&!b(w,n))return!1}else if(!w["$eql?"](n))return!1}return!0}var c={};return b(this,a)},I.$$arity=1);b.def(z,"$fetch",Y=function(a,b){var c=Y.$$p,e=c||u;c&&(Y.$$p=null);c&&(Y.$$p=null);c=a;a=g(F,"Opal").$coerce_to(a,g(F,"Integer"),"to_int");0>a&&(a+=this.length);if(0<=
324
+ a&&a<this.length)return this[a];e!==u&&null!=b&&this.$warn("warning: block supersedes default value argument");if(e!==u)return e(c);if(null!=b)return b;0===this.length?this.$raise(g(F,"IndexError"),"index "+c+" outside of array bounds: 0...0"):this.$raise(g(F,"IndexError"),"index "+c+" outside of array bounds: -"+this.length+"..."+this.length)},Y.$$arity=-2);b.def(z,"$fill",sa=function(a){var c=sa.$$p,e=c||u,f=u;c&&(sa.$$p=null);c&&(sa.$$p=null);c=b.slice.call(arguments,0,arguments.length);if(l(e)){l(2<
325
+ c.length)&&this.$raise(g(F,"ArgumentError"),"wrong number of arguments ("+c.$length()+" for 0..2)");var d=c;var w=b.to_ary(d);c=null==w[0]?u:w[0];w=null==w[1]?u:w[1]}else l(0==c.length)?this.$raise(g(F,"ArgumentError"),"wrong number of arguments (0 for 1..3)"):l(3<c.length)&&this.$raise(g(F,"ArgumentError"),"wrong number of arguments ("+c.$length()+" for 1..3)"),d=c,w=b.to_ary(d),f=null==w[0]?u:w[0],c=null==w[1]?u:w[1],w=null==w[2]?u:w[2];d;if(l(g(F,"Range")["$==="](c))){if(l(w)&&this.$raise(g(F,
326
+ "TypeError"),"length invalid with range"),d=g(F,"Opal").$coerce_to(c.$begin(),g(F,"Integer"),"to_int"),l(0>d)&&(d+=this.length),l(0>d)&&this.$raise(g(F,"RangeError"),""+c.$inspect()+" out of range"),w=g(F,"Opal").$coerce_to(c.$end(),g(F,"Integer"),"to_int"),l(0>w)&&(w+=this.length),l(c["$exclude_end?"]())||(w+=1),l(w<=d))return this}else if(l(c))if(d=g(F,"Opal").$coerce_to(c,g(F,"Integer"),"to_int"),l(0>d)&&(d+=this.length),l(0>d)&&(d=0),l(w)){w=g(F,"Opal").$coerce_to(w,g(F,"Integer"),"to_int");if(l(0==
327
+ w))return this;w+=d}else w=this.length;else d=0,w=this.length;if(l(d>this.length))for(c=this.length;c<w;c++)this[c]=u;l(w>this.length)&&(this.length=w);if(l(e))for(;d<w;d++)f=e(d),this[d]=f;else for(;d<w;d++)this[d]=f;return this},sa.$$arity=-1);b.def(z,"$first",La=function(a){if(null==a)return 0===this.length?u:this[0];a=g(F,"Opal").$coerce_to(a,g(F,"Integer"),"to_int");0>a&&this.$raise(g(F,"ArgumentError"),"negative array size");return this.slice(0,a)},La.$$arity=-1);b.def(z,"$flatten",qa=function(a){function b(a,
328
+ e){var f=[],d;a=a.$to_a();var w=0;for(d=a.length;w<d;w++){var n=a[w];if(g(F,"Opal")["$respond_to?"](n,"to_ary",!0)){var p=n.$to_ary();if(p===u)f.push(n);else switch(p.$$is_array||c.$raise(g(F,"TypeError")),p===c&&c.$raise(g(F,"ArgumentError")),e){case void 0:f=f.concat(b(p));break;case 0:f.push(p);break;default:f.push.apply(f,b(p,e-1))}}else f.push(n)}return f}var c=this;void 0!==a&&(a=g(F,"Opal").$coerce_to(a,g(F,"Integer"),"to_int"));return G(b(c,a),c.$class())},qa.$$arity=-1);b.def(z,"$flatten!",
329
+ Oa=function(a){a=this.$flatten(a);if(this.length==a.length){for(var b=0,c=this.length;b<c&&this[b]===a[b];b++);if(b==c)return u}this.$replace(a);return this},Oa.$$arity=-1);b.def(z,"$hash",da=function(){var a=void 0===b.hash_ids,c=["A"],e=this.$object_id(),f,d;try{a&&(b.hash_ids=Object.create(null));if(b.hash_ids[e])return"self";for(d in b.hash_ids){var w=b.hash_ids[d];if(this["$eql?"](w))return"self"}b.hash_ids[e]=this;for(f=0;f<this.length;f++)w=this[f],c.push(w.$hash());return c.join(",")}finally{a&&
330
+ (b.hash_ids=void 0)}},da.$$arity=0);b.def(z,"$include?",na=function(a){for(var b=0,c=this.length;b<c;b++)if(this[b]["$=="](a))return!0;return!1},na.$$arity=1);b.def(z,"$index",Ja=function(a){var b=Ja.$$p,c=b||u;b&&(Ja.$$p=null);b&&(Ja.$$p=null);var e;null!=a&&c!==u&&this.$warn("warning: given block not used");if(null!=a)for(b=0,e=this.length;b<e;b++){if(this[b]["$=="](a))return b}else if(c!==u)for(b=0,e=this.length;b<e;b++){if(a=c(this[b]),!1!==a&&a!==u)return b}else return this.$enum_for("index");
331
+ return u},Ja.$$arity=-1);b.def(z,"$insert",Va=function(a,c){var e=b.slice.call(arguments,1,arguments.length);a=g(F,"Opal").$coerce_to(a,g(F,"Integer"),"to_int");if(0<e.length){0>a&&(a+=this.length+1,0>a&&this.$raise(g(F,"IndexError"),""+a+" is out of bounds"));if(a>this.length)for(var f=this.length;f<a;f++)this.push(u);this.splice.apply(this,[a,0].concat(e))}return this},Va.$$arity=-2);b.def(z,"$inspect",Ua=function(){for(var a=[],b=this.$__id__(),c=0,e=this.length;c<e;c++){var f=this["$[]"](c);f.$__id__()===
332
+ b?a.push("[...]"):a.push(f.$inspect())}return"["+a.join(", ")+"]"},Ua.$$arity=0);b.def(z,"$join",$a=function(a){null==q[","]&&(q[","]=u);null==a&&(a=u);if(l(0===this.length))return"";l(a===u)&&(a=q[","]);var c=[],e;var f=0;for(e=this.length;f<e;f++){var d=this[f];if(g(F,"Opal")["$respond_to?"](d,"to_str")){var w=d.$to_str();if(w!==u){c.push(w.$to_s());continue}}if(g(F,"Opal")["$respond_to?"](d,"to_ary")&&(w=d.$to_ary(),w===this&&this.$raise(g(F,"ArgumentError")),w!==u)){c.push(w.$join(a));continue}if(g(F,
333
+ "Opal")["$respond_to?"](d,"to_s")&&(w=d.$to_s(),w!==u)){c.push(w);continue}this.$raise(g(F,"NoMethodError").$new(""+b.inspect(d)+" doesn't respond to #to_str, #to_ary or #to_s","to_str"))}return a===u?c.join(""):c.join(g(F,"Opal")["$coerce_to!"](a,g(F,"String"),"to_str").$to_s())},$a.$$arity=-1);b.def(z,"$keep_if",oa=function(){var a=oa.$$p,b=a||u,c;a&&(oa.$$p=null);a&&(oa.$$p=null);if(b===u)return x(this,"enum_for",["keep_if"],(c=function(){return(c.$$s||this).$size()},c.$$s=this,c.$$arity=0,c));
334
+ a=0;for(var e=this.length,f;a<e;a++)if(f=b(this[a]),!1===f||f===u)this.splice(a,1),e--,a--;return this},oa.$$arity=0);b.def(z,"$last",Aa=function(a){if(null==a)return 0===this.length?u:this[this.length-1];a=g(F,"Opal").$coerce_to(a,g(F,"Integer"),"to_int");0>a&&this.$raise(g(F,"ArgumentError"),"negative array size");a>this.length&&(a=this.length);return this.slice(this.length-a,this.length)},Aa.$$arity=-1);b.def(z,"$length",ha=function(){return this.length},ha.$$arity=0);b.alias(z,"map","collect");
335
+ b.alias(z,"map!","collect!");b.def(z,"$max",za=function(a){var b=za.$$p,c=b||u;b&&(za.$$p=null);b&&(za.$$p=null);return x(this.$each(),"max",[a],c.$to_proc())},za.$$arity=-1);b.def(z,"$min",Ca=function(){var a=Ca.$$p,b=a||u;a&&(Ca.$$p=null);a&&(Ca.$$p=null);return x(this.$each(),"min",[],b.$to_proc())},Ca.$$arity=0);b.def(z,"$permutation",ua=function(a){var c=ua.$$p,e=c||u,f,d=this,w=u,n=u;c&&(ua.$$p=null);c&&(ua.$$p=null);if(e===u)return x(d,"enum_for",["permutation",a],(f=function(){var b=f.$$s||
336
+ this,c=b.length;b=void 0===a?b.length:a;for(var e=0<=b?1:0;b;)e*=c,c--,b--;return e},f.$$s=d,f.$$arity=0,f));var p;a=void 0===a?d.length:g(F,"Opal").$coerce_to(a,g(F,"Integer"),"to_int");if(!(0>a||d.length<a))if(0===a)b.yield1(e,[]);else if(1===a)for(w=0;w<d.length;w++)b.yield1(e,[d[w]]);else{w=g(F,"Array").$new(a);n=g(F,"Array").$new(d.length,!1);var h=function(a,c,e,f,w){d=this;for(var n=0;n<d.length;n++)if(f["$[]"](n)["$!"]())if(c[e]=n,e<a-1)f[n]=!0,h.call(d,a,c,e+1,f,w),f[n]=!1;else{p=[];for(var Ka=
337
+ 0;Ka<c.length;Ka++)p.push(d[c[Ka]]);b.yield1(w,p)}};e!==u?(c=d.slice(),h.call(c,a,w,0,n,e)):h.call(d,a,w,0,n,e)}return d},ua.$$arity=-1);b.def(z,"$repeated_permutation",Na=function(a){function c(a,e,f){if(e.length==a)a=e.slice(),b.yield1(d,a);else for(var w=0;w<f.length;w++)e.push(f[w]),c(a,e,f),e.pop()}var e,f=Na.$$p,d=f||u,w=u;f&&(Na.$$p=null);w=g(F,"Opal")["$coerce_to!"](a,g(F,"Integer"),"to_int");if(d===u)return x(this,"enum_for",["repeated_permutation",w],(e=function(){var a=e.$$s||this;return l("number"===
338
+ typeof w?0<=w:w["$>="](0))?a.$size()["$**"](w):0},e.$$s=this,e.$$arity=0,e));c(w,[],this.slice());return this},Na.$$arity=1);b.def(z,"$pop",Ia=function(a){if(l(void 0===a))return l(0===this.length)?u:this.pop();a=g(F,"Opal").$coerce_to(a,g(F,"Integer"),"to_int");l(0>a)&&this.$raise(g(F,"ArgumentError"),"negative array size");return l(0===this.length)?[]:l(a>this.length)?this.splice(0,this.length):this.splice(this.length-a,this.length)},Ia.$$arity=-1);b.def(z,"$product",Ea=function(a){var c=Ea.$$p,
339
+ e=c||u;c&&(Ea.$$p=null);c&&(Ea.$$p=null);var f=b.slice.call(arguments,0,arguments.length);c=e!==u?null:[];var d=f.length+1,w=Array(d),n=Array(d),p=Array(d),h;var Ka=1;p[0]=this;for(h=1;h<d;h++)p[h]=g(F,"Opal").$coerce_to(f[h-1],g(F,"Array"),"to_ary");for(h=0;h<d;h++){f=p[h].length;if(0===f)return c||this;Ka*=f;2147483647<Ka&&this.$raise(g(F,"RangeError"),"too big to product");n[h]=f;w[h]=0}a:for(;;){Ka=[];for(h=0;h<d;h++)Ka.push(p[h][w[h]]);c?c.push(Ka):b.yield1(e,Ka);h=d-1;for(w[h]++;w[h]===n[h];){w[h]=
340
+ 0;if(0>--h)break a;w[h]++}}return c||this},Ea.$$arity=-1);b.def(z,"$push",Sa=function(a){var c=b.slice.call(arguments,0,arguments.length);for(var e=0,f=c.length;e<f;e++)this.push(c[e]);return this},Sa.$$arity=-1);b.alias(z,"append","push");b.def(z,"$rassoc",Qa=function(a){for(var b=0,c=this.length,e;b<c;b++)if(e=this[b],e.length&&void 0!==e[1]&&e[1]["$=="](a))return e;return u},Qa.$$arity=1);b.def(z,"$reject",Pa=function(){var a=Pa.$$p,b=a||u,c;a&&(Pa.$$p=null);a&&(Pa.$$p=null);if(b===u)return x(this,
341
+ "enum_for",["reject"],(c=function(){return(c.$$s||this).$size()},c.$$s=this,c.$$arity=0,c));a=[];for(var e=0,f=this.length,d;e<f;e++)d=b(this[e]),!1!==d&&d!==u||a.push(this[e]);return a},Pa.$$arity=0);b.def(z,"$reject!",Fa=function(){var a=Fa.$$p,b=a||u,c,e=u;a&&(Fa.$$p=null);a&&(Fa.$$p=null);if(b===u)return x(this,"enum_for",["reject!"],(c=function(){return(c.$$s||this).$size()},c.$$s=this,c.$$arity=0,c));e=this.$length();x(this,"delete_if",[],b.$to_proc());return this.$length()["$=="](e)?u:this},
342
+ Fa.$$arity=0);b.def(z,"$replace",Ga=function(a){a=l(g(F,"Array")["$==="](a))?a.$to_a():g(F,"Opal").$coerce_to(a,g(F,"Array"),"to_ary").$to_a();this.splice(0,this.length);this.push.apply(this,a);return this},Ga.$$arity=1);b.def(z,"$reverse",Wa=function(){return this.slice(0).reverse()},Wa.$$arity=0);b.def(z,"$reverse!",Ta=function(){return this.reverse()},Ta.$$arity=0);b.def(z,"$reverse_each",Xa=function(){var a=Xa.$$p,b=a||u,c;a&&(Xa.$$p=null);a&&(Xa.$$p=null);if(b===u)return x(this,"enum_for",["reverse_each"],
343
+ (c=function(){return(c.$$s||this).$size()},c.$$s=this,c.$$arity=0,c));x(this.$reverse(),"each",[],b.$to_proc());return this},Xa.$$arity=0);b.def(z,"$rindex",Ya=function(a){var b=Ya.$$p,c=b||u;b&&(Ya.$$p=null);b&&(Ya.$$p=null);null!=a&&c!==u&&this.$warn("warning: given block not used");if(null!=a)for(b=this.length-1;0<=b&&!(b>=this.length);b--){if(this[b]["$=="](a))return b}else if(c!==u)for(b=this.length-1;0<=b&&!(b>=this.length);b--){if(a=c(this[b]),!1!==a&&a!==u)return b}else if(null==a)return this.$enum_for("rindex");
344
+ return u},Ya.$$arity=-1);b.def(z,"$rotate",bb=function(a){null==a&&(a=1);a=g(F,"Opal").$coerce_to(a,g(F,"Integer"),"to_int");if(1===this.length)return this.slice();if(0===this.length)return[];var b=this.slice();var c=a%b.length;a=b.slice(c);b=b.slice(0,c);return a.concat(b)},bb.$$arity=-1);b.def(z,"$rotate!",Za=function(a){null==a&&(a=1);if(0===this.length||1===this.length)return this;a=g(F,"Opal").$coerce_to(a,g(F,"Integer"),"to_int");a=this.$rotate(a);return this.$replace(a)},Za.$$arity=-1);(function(a,
345
+ $super,c){a=H(a,$super,"SampleRandom");var e=[a].concat(c),f,d;a.$$prototype.rng=u;b.def(a,"$initialize",f=function(a){return this.rng=a},f.$$arity=1);return(b.def(a,"$rand",d=function(a){var b=g(e,"Opal").$coerce_to(this.rng.$rand(a),g(e,"Integer"),"to_int");l(0>b)&&this.$raise(g(e,"RangeError"),"random value must be >= 0");l(b<a)||this.$raise(g(e,"RangeError"),"random value must be less than Array size");return b},d.$$arity=1),u)&&"rand"})(F[0],null,F);b.def(z,"$sample",ia=function(a,b){var c,e=
346
+ u;if(l(void 0===a))return this.$at(g(F,"Kernel").$rand(this.length));l(void 0===b)?l(b=g(F,"Opal")["$coerce_to?"](a,g(F,"Hash"),"to_hash"))?a=u:(b=u,a=g(F,"Opal").$coerce_to(a,g(F,"Integer"),"to_int")):(a=g(F,"Opal").$coerce_to(a,g(F,"Integer"),"to_int"),b=g(F,"Opal").$coerce_to(b,g(F,"Hash"),"to_hash"));l(l(c=a)?0>a:c)&&this.$raise(g(F,"ArgumentError"),"count must be greater than 0");l(b)&&(e=b["$[]"]("random"));e=l(l(c=e)?e["$respond_to?"]("rand"):c)?g(F,"SampleRandom").$new(e):g(F,"Kernel");if(!l(a))return this[e.$rand(this.length)];
347
+ a>this.length&&(a=this.length);switch(a){case 0:return[];case 1:return[this[e.$rand(this.length)]];case 2:var f=e.$rand(this.length);var d=e.$rand(this.length);f===d&&(d=0===f?f+1:f-1);return[this[f],this[d]];default:if(3<this.length/a){b=!1;var w=0;c=g(F,"Array").$new(a);f=1;for(c[0]=e.$rand(this.length);f<a;){var n=e.$rand(this.length);for(d=0;d<f;){for(;n===c[d];){w++;if(100<w){b=!0;break}n=e.$rand(this.length)}if(b)break;d++}if(b)break;c[f]=n;f++}if(!b){for(f=0;f<a;)c[f]=this[c[f]],f++;return c}}c=
348
+ this.slice();for(f=0;f<a;f++)b=e.$rand(this.length),w=c[f],c[f]=c[b],c[b]=w;return a===this.length?c:c["$[]"](0,a)}},ia.$$arity=-1);b.def(z,"$select",w=function(){var a=w.$$p,c=a||u,e;a&&(w.$$p=null);a&&(w.$$p=null);if(c===u)return x(this,"enum_for",["select"],(e=function(){return(e.$$s||this).$size()},e.$$s=this,e.$$arity=0,e));a=[];for(var f=0,d=this.length,n,p;f<d;f++)n=this[f],p=b.yield1(c,n),b.truthy(p)&&a.push(n);return a},w.$$arity=0);b.def(z,"$select!",Q=function(){var a=Q.$$p,b=a||u,c;a&&
349
+ (Q.$$p=null);a&&(Q.$$p=null);if(b===u)return x(this,"enum_for",["select!"],(c=function(){return(c.$$s||this).$size()},c.$$s=this,c.$$arity=0,c));a=this.length;x(this,"keep_if",[],b.$to_proc());return this.length===a?u:this},Q.$$arity=0);b.def(z,"$shift",ra=function(a){if(l(void 0===a)){if(l(0===this.length))return u;a=this[0];for(var b=1,c=this.length;b<c;b++)this[b-1]=this[b];this.pop();return a}a=g(F,"Opal").$coerce_to(a,g(F,"Integer"),"to_int");l(0>a)&&this.$raise(g(F,"ArgumentError"),"negative array size");
350
+ return l(0===this.length)?[]:this.splice(0,a)},ra.$$arity=-1);b.alias(z,"size","length");b.def(z,"$shuffle",ab=function(a){return this.$dup().$to_a()["$shuffle!"](a)},ab.$$arity=-1);b.def(z,"$shuffle!",K=function(a){var b,c=this.length;void 0!==a&&(a=g(F,"Opal")["$coerce_to?"](a,g(F,"Hash"),"to_hash"),a!==u&&(a=a["$[]"]("random"),a!==u&&a["$respond_to?"]("rand")&&(b=a)));for(;c;){b?(a=b.$rand(c).$to_int(),0>a&&this.$raise(g(F,"RangeError"),"random number too small "+a),a>=c&&this.$raise(g(F,"RangeError"),
351
+ "random number too big "+a)):a=this.$rand(c);var e=this[--c];this[c]=this[a];this[a]=e}return this},K.$$arity=-1);b.alias(z,"slice","[]");b.def(z,"$slice!",aa=function(a,b){if(l(void 0===b))if(l(g(F,"Range")["$==="](a))){var c=this["$[]"](a);b=g(F,"Opal").$coerce_to(a.$begin(),g(F,"Integer"),"to_int");var e=g(F,"Opal").$coerce_to(a.$end(),g(F,"Integer"),"to_int");0>b&&(b+=this.length);0>e?e+=this.length:e>=this.length&&(e=this.length-1,a.excl&&(e+=1));var f=e-b;a.excl?--e:f+=1;b<this.length&&0<=b&&
352
+ e<this.length&&0<=e&&0<f&&this.splice(b,f)}else{a=g(F,"Opal").$coerce_to(a,g(F,"Integer"),"to_int");0>a&&(a+=this.length);if(0>a||a>=this.length)return u;c=this[a];0===a?this.shift():this.splice(a,1)}else{a=g(F,"Opal").$coerce_to(a,g(F,"Integer"),"to_int");b=g(F,"Opal").$coerce_to(b,g(F,"Integer"),"to_int");if(0>b)return u;c=this["$[]"](a,b);0>a&&(a+=this.length);a+b>this.length&&(b=this.length-a);a<this.length&&0<=a&&this.splice(a,b)}return c},aa.$$arity=-2);b.def(z,"$sort",W=function(){var a=W.$$p,
353
+ b=a||u,c=this;a&&(W.$$p=null);a&&(W.$$p=null);if(!l(1<c.length))return c;b===u&&(b=function(a,b){return a["$<=>"](b)});return c.slice().sort(function(a,e){var f=b(a,e);f===u&&c.$raise(g(F,"ArgumentError"),"comparison of "+a.$inspect()+" with "+e.$inspect()+" failed");return m(f,0)?1:("number"===typeof f?0>f:f["$<"](0))?-1:0})},W.$$arity=0);b.def(z,"$sort!",X=function(){var a=X.$$p,b=a||u;a&&(X.$$p=null);a&&(X.$$p=null);a=b!==u?x(this.slice(),"sort",[],b.$to_proc()):this.slice().$sort();b=this.length=
354
+ 0;for(var c=a.length;b<c;b++)this.push(a[b]);return this},X.$$arity=0);b.def(z,"$sort_by!",Ka=function(){var a=Ka.$$p,b=a||u,c;a&&(Ka.$$p=null);a&&(Ka.$$p=null);return b===u?x(this,"enum_for",["sort_by!"],(c=function(){return(c.$$s||this).$size()},c.$$s=this,c.$$arity=0,c)):this.$replace(x(this,"sort_by",[],b.$to_proc()))},Ka.$$arity=0);b.def(z,"$take",lb=function(a){0>a&&this.$raise(g(F,"ArgumentError"));return this.slice(0,a)},lb.$$arity=1);b.def(z,"$take_while",gb=function(){var a=gb.$$p,b=a||
355
+ u;a&&(gb.$$p=null);a&&(gb.$$p=null);a=[];for(var c=0,e=this.length,f,d;c<e;c++){f=this[c];d=b(f);if(!1===d||d===u)break;a.push(f)}return a},gb.$$arity=0);b.def(z,"$to_a",jb=function(){return this},jb.$$arity=0);b.alias(z,"to_ary","to_a");b.def(z,"$to_h",kb=function(){var a,c=this.length,e=E([],{});for(a=0;a<c;a++){var f=g(F,"Opal")["$coerce_to?"](this[a],g(F,"Array"),"to_ary");f.$$is_array||this.$raise(g(F,"TypeError"),"wrong element type "+f.$class()+" at "+a+" (expected array)");2!==f.length&&this.$raise(g(F,
356
+ "ArgumentError"),"wrong array length at "+a+" (expected 2, was "+f.$length()+")");var d=f[0];f=f[1];b.hash_put(e,d,f)}return e},kb.$$arity=0);b.alias(z,"to_s","inspect");b.def(z,"$transpose",fb=function(){var a,c=u,e=u;if(l(this["$empty?"]()))return[];c=[];e=u;x(this,"each",[],(a=function(f){var d=a.$$s||this,w,n;null==f&&(f=u);f=l(g(F,"Array")["$==="](f))?f.$to_a():g(F,"Opal").$coerce_to(f,g(F,"Array"),"to_ary").$to_a();e=l(w=e)?w:f.length;l(f.length["$!="](e))&&d.$raise(g(F,"IndexError"),"element size differs ("+
357
+ f.length+" should be "+e+")");return x(f.length,"times",[],(n=function(a){var e;null==a&&(a=u);if(!l(e=c["$[]"](a))){e=[a,[]];x(c,"[]=",b.to_a(e));var d=e.length;d="number"===typeof d?d-1:d["$-"](1);e=e[d]}return e["$<<"](f.$at(a))},n.$$s=d,n.$$arity=1,n))},a.$$s=this,a.$$arity=1,a));return c},fb.$$arity=0);b.def(z,"$uniq",Ra=function(){var a=Ra.$$p,c=a||u;a&&(Ra.$$p=null);a&&(Ra.$$p=null);a=E([],{});var e;if(c===u){var f=0;for(e=this.length;f<e;f++){var d=this[f];void 0===b.hash_get(a,d)&&b.hash_put(a,
358
+ d,d)}}else for(f=0,e=this.length;f<e;f++){d=this[f];var w=b.yield1(c,d);void 0===b.hash_get(a,w)&&b.hash_put(a,w,d)}return G(a.$values(),this.$class())},Ra.$$arity=0);b.def(z,"$uniq!",cb=function(){var a=cb.$$p,c=a||u;a&&(cb.$$p=null);a&&(cb.$$p=null);a=this.length;var e=E([],{}),f;var d=0;for(f=a;d<f;d++){var w=this[d];var n=c===u?w:b.yield1(c,w);void 0===b.hash_get(e,n)?b.hash_put(e,n,w):(this.splice(d,1),f--,d--)}return this.length===a?u:this},cb.$$arity=0);b.def(z,"$unshift",nb=function(a){var c=
359
+ b.slice.call(arguments,0,arguments.length);for(var e=c.length-1;0<=e;e--)this.unshift(c[e]);return this},nb.$$arity=-1);b.alias(z,"prepend","unshift");b.def(z,"$values_at",ob=function(a){var c,e=u;var f=b.slice.call(arguments,0,arguments.length);e=[];x(f,"each",[],(c=function(a){var b=c.$$s||this,f,d=u,w=u;d=u;null==a&&(a=u);if(l(a["$is_a?"](g(F,"Range")))){d=g(F,"Opal").$coerce_to(a.$last(),g(F,"Integer"),"to_int");w=g(F,"Opal").$coerce_to(a.$first(),g(F,"Integer"),"to_int");if(0>w)return w+=b.length,
360
+ u;0>d&&(d+=b.length);a["$exclude_end?"]()&&d--;return d<w?u:x(w,"upto",[d],(f=function(a){var b=f.$$s||this;null==a&&(a=u);return e["$<<"](b.$at(a))},f.$$s=b,f.$$arity=1,f))}d=g(F,"Opal").$coerce_to(a,g(F,"Integer"),"to_int");return e["$<<"](b.$at(d))},c.$$s=this,c.$$arity=1,c));return e},ob.$$arity=-1);b.def(z,"$zip",hb=function(a){var c=hb.$$p,e=c||u,f;c&&(hb.$$p=null);c&&(hb.$$p=null);c=b.slice.call(arguments,0,arguments.length);var d=[],w=this.length,n,p;var h=0;for(p=c.length;h<p;h++){var Ka=
361
+ c[h];Ka.$$is_array||(Ka.$$is_enumerator?Infinity===Ka.$size()?c[h]=Ka.$take(w):c[h]=Ka.$to_a():c[h]=(l(f=g(F,"Opal")["$coerce_to?"](Ka,g(F,"Array"),"to_ary"))?f:g(F,"Opal")["$coerce_to!"](Ka,g(F,"Enumerator"),"each")).$to_a())}for(n=0;n<w;n++){f=[this[n]];h=0;for(p=c.length;h<p;h++)Ka=c[h][n],null==Ka&&(Ka=u),f[h+1]=Ka;d[n]=f}if(e!==u){for(n=0;n<w;n++)e(d[n]);return u}return d},hb.$$arity=-1);b.defs(z,"$inherited",pb=function(a){a.$$prototype.$to_a=function(){return this.slice(0,this.length)}},pb.$$arity=
362
+ 1);b.def(z,"$instance_variables",eb=function(){var a,c=eb.$$p,e=u,f=u,d=u;c&&(eb.$$p=null);f=0;d=arguments.length;for(e=Array(d);f<d;f++)e[f]=arguments[f];return x(x(this,b.find_super_dispatcher(this,"instance_variables",eb,!1),e,c),"reject",[],(a=function(a){var b;null==a&&(a=u);return l(b=/^@\d+$/.test(a))?b:a["$=="]("@length")},a.$$s=this,a.$$arity=1,a))},eb.$$arity=0);g(F,"Opal").$pristine(z.$singleton_class(),"allocate");g(F,"Opal").$pristine(z,"copy_instance_variables","initialize_dup");return(b.def(z,
363
+ "$pack",qb=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise("To use Array#pack, you must first require 'corelib/array/pack'.")},qb.$$arity=-1),u)&&"pack"}(C[0],Array,C)};
364
+ Opal.modules["corelib/hash"]=function(b){function m(b,g){return"number"===typeof b&&"number"===typeof g?b>=g:b["$>="](g)}var D=b.top,C=[],u=b.nil,t=b.const_get_relative,g=b.klass,H=b.send,l=b.hash2,E=b.truthy;b.add_stubs("$require $include $coerce_to? $[] $merge! $allocate $raise $coerce_to! $each $fetch $>= $> $== $compare_by_identity $lambda? $abs $arity $enum_for $size $respond_to? $class $dig $new $inspect $map $to_proc $flatten $eql? $default $dup $default_proc $default_proc= $- $default= $proc".split(" "));D.$require("corelib/enumerable");
365
+ return function(x,$super,C){x=g(x,$super,"Hash");var D=[x].concat(C),M,G,k,O,R,z,F,ja,Z,a,d,v,B,L,r,h,c,A,p,U,S,n,e,f,N,ea,ka,J,T,ba,y,ca,V,Ha,la,va,ta,ma,wa,Ba,Ma,Da,xa,ya,fa,I,Y,sa,La,qa,Oa,da,na,Ja,Va,Ua,$a,oa,Aa,ha,za,Ca;x.$include(t(D,"Enumerable"));x.$$prototype.$$is_hash=!0;b.defs(x,"$[]",M=function(a){var c=b.slice.call(arguments,0,arguments.length);var e=c.length,f;if(1===e){var d=t(D,"Opal")["$coerce_to?"](c["$[]"](0),t(D,"Hash"),"to_hash");if(d!==u)return this.$allocate()["$merge!"](d);
366
+ c=t(D,"Opal")["$coerce_to?"](c["$[]"](0),t(D,"Array"),"to_ary");c===u&&this.$raise(t(D,"ArgumentError"),"odd number of arguments for Hash");e=c.length;d=this.$allocate();for(f=0;f<e;f++)if(c[f].$$is_array)switch(c[f].length){case 1:d.$store(c[f][0],u);break;case 2:d.$store(c[f][0],c[f][1]);break;default:this.$raise(t(D,"ArgumentError"),"invalid number of elements ("+c[f].length+" for 1..2)")}return d}0!==e%2&&this.$raise(t(D,"ArgumentError"),"odd number of arguments for Hash");d=this.$allocate();
367
+ for(f=0;f<e;f+=2)d.$store(c[f],c[f+1]);return d},M.$$arity=-1);b.defs(x,"$allocate",G=function(){var a=new this.$$constructor;b.hash_init(a);a.$$none=u;a.$$proc=u;return a},G.$$arity=0);b.defs(x,"$try_convert",k=function(a){return t(D,"Opal")["$coerce_to?"](a,t(D,"Hash"),"to_hash")},k.$$arity=1);b.def(x,"$initialize",O=function(a){var b=O.$$p,c=b||u;b&&(O.$$p=null);b&&(O.$$p=null);void 0!==a&&c!==u&&this.$raise(t(D,"ArgumentError"),"wrong number of arguments (1 for 0)");this.$$none=void 0===a?u:a;
368
+ this.$$proc=c;return this},O.$$arity=-1);b.def(x,"$==",R=function(a){if(this===a)return!0;if(!a.$$is_hash||this.$$keys.length!==a.$$keys.length)return!1;for(var c=0,e=this.$$keys,f=e.length,d,n;c<f;c++)if(d=e[c],d.$$is_string?(n=this.$$smap[d],d=a.$$smap[d]):(n=d.value,d=b.hash_get(a,d.key)),void 0===d||!n["$eql?"](d))return!1;return!0},R.$$arity=1);b.def(x,"$>=",z=function(a){var b,c=u;a=t(D,"Opal")["$coerce_to!"](a,t(D,"Hash"),"to_hash");if(this.$$keys.length<a.$$keys.length)return!1;c=!0;H(a,"each",
369
+ [],(b=function(a,e){var f=b.$$s||this;null==a&&(a=u);null==e&&(e=u);a=f.$fetch(a,null);if(null==a||a!==e)c=!1},b.$$s=this,b.$$arity=2,b));return c},z.$$arity=1);b.def(x,"$>",F=function(a){a=t(D,"Opal")["$coerce_to!"](a,t(D,"Hash"),"to_hash");return this.$$keys.length<=a.$$keys.length?!1:m(this,a)},F.$$arity=1);b.def(x,"$<",ja=function(a){a=t(D,"Opal")["$coerce_to!"](a,t(D,"Hash"),"to_hash");return"number"===typeof a&&"number"===typeof this?a>this:a["$>"](this)},ja.$$arity=1);b.def(x,"$<=",Z=function(a){a=
370
+ t(D,"Opal")["$coerce_to!"](a,t(D,"Hash"),"to_hash");return m(a,this)},Z.$$arity=1);b.def(x,"$[]",a=function(a){var c=b.hash_get(this,a);return void 0!==c?c:this.$default(a)},a.$$arity=1);b.def(x,"$[]=",d=function(a,c){b.hash_put(this,a,c);return c},d.$$arity=2);b.def(x,"$assoc",v=function(a){for(var b=0,c=this.$$keys,e=c.length,f;b<e;b++)if(f=c[b],f.$$is_string){if(f["$=="](a))return[f,this.$$smap[f]]}else if(f.key["$=="](a))return[f.key,f.value];return u},v.$$arity=1);b.def(x,"$clear",B=function(){b.hash_init(this);
371
+ return this},B.$$arity=0);b.def(x,"$clone",L=function(){var a=new this.$$class;b.hash_init(a);b.hash_clone(this,a);return a},L.$$arity=0);b.def(x,"$compact",r=function(){for(var a=b.hash(),c=0,e=this.$$keys,f=e.length,d,n;c<f;c++)d=e[c],d.$$is_string?n=this.$$smap[d]:(n=d.value,d=d.key),n!==u&&b.hash_put(a,d,n);return a},r.$$arity=0);b.def(x,"$compact!",h=function(){for(var a=!1,c=0,e=this.$$keys,f=e.length,d,n;c<f;c++)d=e[c],d.$$is_string?n=this.$$smap[d]:(n=d.value,d=d.key),n===u&&void 0!==b.hash_delete(this,
372
+ d)&&(a=!0,f--,c--);return a?this:u},h.$$arity=0);b.def(x,"$compare_by_identity",c=function(){var a,c=this.$$keys;if(this.$$by_identity)return this;if(0===this.$$keys.length)return this.$$by_identity=!0,this;var e=l([],{}).$compare_by_identity();var f=0;for(a=c.length;f<a;f++){var d=c[f];d.$$is_string||(d=d.key);b.hash_put(e,d,b.hash_get(this,d))}this.$$by_identity=!0;this.$$map=e.$$map;this.$$smap=e.$$smap;return this},c.$$arity=0);b.def(x,"$compare_by_identity?",A=function(){return!0===this.$$by_identity},
373
+ A.$$arity=0);b.def(x,"$default",p=function(a){return void 0!==a&&this.$$proc!==u&&void 0!==this.$$proc?this.$$proc.$call(this,a):void 0===this.$$none?u:this.$$none},p.$$arity=-1);b.def(x,"$default=",U=function(a){this.$$proc=u;return this.$$none=a},U.$$arity=1);b.def(x,"$default_proc",S=function(){return void 0!==this.$$proc?this.$$proc:u},S.$$arity=0);b.def(x,"$default_proc=",n=function(a){var b=a;b!==u&&(b=t(D,"Opal")["$coerce_to!"](b,t(D,"Proc"),"to_proc"),b["$lambda?"]()&&2!==b.$arity().$abs()&&
374
+ this.$raise(t(D,"TypeError"),"default_proc takes two arguments"));this.$$none=u;this.$$proc=b;return a},n.$$arity=1);b.def(x,"$delete",e=function(a){var c=e.$$p,f=c||u;c&&(e.$$p=null);c&&(e.$$p=null);c=b.hash_delete(this,a);return void 0!==c?c:f!==u?b.yield1(f,a):u},e.$$arity=1);b.def(x,"$delete_if",f=function(){var a=f.$$p,c=a||u,e;a&&(f.$$p=null);a&&(f.$$p=null);if(!E(c))return H(this,"enum_for",["delete_if"],(e=function(){return(e.$$s||this).$size()},e.$$s=this,e.$$arity=0,e));a=0;for(var d=this.$$keys,
375
+ n=d.length,p,h;a<n;a++)p=d[a],p.$$is_string?h=this.$$smap[p]:(h=p.value,p=p.key),h=c(p,h),!1!==h&&h!==u&&void 0!==b.hash_delete(this,p)&&(n--,a--);return this},f.$$arity=0);b.alias(x,"dup","clone");b.def(x,"$dig",N=function(a,c){var e=b.slice.call(arguments,1,arguments.length);var f=this["$[]"](a);if(f===u||0===e.length)return f;E(f["$respond_to?"]("dig"))||this.$raise(t(D,"TypeError"),""+f.$class()+" does not have #dig method");return H(f,"dig",b.to_a(e))},N.$$arity=-2);b.def(x,"$each",ea=function(){var a=
376
+ ea.$$p,c=a||u,e;a&&(ea.$$p=null);a&&(ea.$$p=null);if(!E(c))return H(this,"enum_for",["each"],(e=function(){return(e.$$s||this).$size()},e.$$s=this,e.$$arity=0,e));a=0;for(var f=this.$$keys,d=f.length,n,p;a<d;a++)n=f[a],n.$$is_string?p=this.$$smap[n]:(p=n.value,n=n.key),b.yield1(c,[n,p]);return this},ea.$$arity=0);b.def(x,"$each_key",ka=function(){var a=ka.$$p,b=a||u,c;a&&(ka.$$p=null);a&&(ka.$$p=null);if(!E(b))return H(this,"enum_for",["each_key"],(c=function(){return(c.$$s||this).$size()},c.$$s=
377
+ this,c.$$arity=0,c));a=0;for(var e=this.$$keys,f=e.length,d;a<f;a++)d=e[a],b(d.$$is_string?d:d.key);return this},ka.$$arity=0);b.alias(x,"each_pair","each");b.def(x,"$each_value",J=function(){var a=J.$$p,b=a||u,c;a&&(J.$$p=null);a&&(J.$$p=null);if(!E(b))return H(this,"enum_for",["each_value"],(c=function(){return(c.$$s||this).$size()},c.$$s=this,c.$$arity=0,c));a=0;for(var e=this.$$keys,f=e.length,d;a<f;a++)d=e[a],b(d.$$is_string?this.$$smap[d]:d.value);return this},J.$$arity=0);b.def(x,"$empty?",
378
+ T=function(){return 0===this.$$keys.length},T.$$arity=0);b.alias(x,"eql?","==");b.def(x,"$fetch",ba=function(a,c){var e=ba.$$p,f=e||u;e&&(ba.$$p=null);e&&(ba.$$p=null);e=b.hash_get(this,a);return void 0!==e?e:f!==u?f(a):void 0!==c?c:this.$raise(t(D,"KeyError").$new("key not found: "+a.$inspect(),l(["key","receiver"],{key:a,receiver:this})))},ba.$$arity=-2);b.def(x,"$fetch_values",y=function(a){var c=y.$$p,e=c||u,f;c&&(y.$$p=null);c&&(y.$$p=null);c=b.slice.call(arguments,0,arguments.length);return H(c,
379
+ "map",[],(f=function(a){var b=f.$$s||this;null==a&&(a=u);return H(b,"fetch",[a],e.$to_proc())},f.$$s=this,f.$$arity=1,f))},y.$$arity=-1);b.def(x,"$flatten",ca=function(a){null==a&&(a=1);a=t(D,"Opal")["$coerce_to!"](a,t(D,"Integer"),"to_int");for(var b=[],c=0,e=this.$$keys,f=e.length,d,n;c<f;c++)d=e[c],d.$$is_string?n=this.$$smap[d]:(n=d.value,d=d.key),b.push(d),n.$$is_array?1===a?b.push(n):b=b.concat(n.$flatten(a-2)):b.push(n);return b},ca.$$arity=-1);b.def(x,"$has_key?",V=function(a){return void 0!==
380
+ b.hash_get(this,a)},V.$$arity=1);b.def(x,"$has_value?",Ha=function(a){for(var b=0,c=this.$$keys,e=c.length,f;b<e;b++)if(f=c[b],(f.$$is_string?this.$$smap[f]:f.value)["$=="](a))return!0;return!1},Ha.$$arity=1);b.def(x,"$hash",la=function(){var a=void 0===b.hash_ids,c=this.$object_id(),e=["Hash"];try{a&&(b.hash_ids=Object.create(null));if(b[c])return"self";for(p in b.hash_ids){var f=b.hash_ids[p];if(this["$eql?"](f))return"self"}b.hash_ids[c]=this;c=0;for(var d=this.$$keys,n=d.length;c<n;c++){var p=
381
+ d[c];p.$$is_string?e.push([p,this.$$smap[p].$hash()]):e.push([p.key_hash,p.value.$hash()])}return e.sort().join()}finally{a&&(b.hash_ids=void 0)}},la.$$arity=0);b.alias(x,"include?","has_key?");b.def(x,"$index",va=function(a){for(var b=0,c=this.$$keys,e=c.length,f,d;b<e;b++)if(f=c[b],f.$$is_string?d=this.$$smap[f]:(d=f.value,f=f.key),d["$=="](a))return f;return u},va.$$arity=1);b.def(x,"$indexes",ta=function(a){var c=b.slice.call(arguments,0,arguments.length);for(var e=[],f=0,d=c.length,n;f<d;f++)n=
382
+ c[f],n=b.hash_get(this,n),void 0===n?e.push(this.$default()):e.push(n);return e},ta.$$arity=-1);b.alias(x,"indices","indexes");var ua;b.def(x,"$inspect",ma=function(){var a=void 0===ua,b=this.$object_id(),c=[];try{a&&(ua={});if(ua.hasOwnProperty(b))return"{...}";ua[b]=!0;b=0;for(var e=this.$$keys,f=e.length,d,n;b<f;b++)d=e[b],d.$$is_string?n=this.$$smap[d]:(n=d.value,d=d.key),c.push(d.$inspect()+"=>"+n.$inspect());return"{"+c.join(", ")+"}"}finally{a&&(ua=void 0)}},ma.$$arity=0);b.def(x,"$invert",
383
+ wa=function(){for(var a=b.hash(),c=0,e=this.$$keys,f=e.length,d,n;c<f;c++)d=e[c],d.$$is_string?n=this.$$smap[d]:(n=d.value,d=d.key),b.hash_put(a,n,d);return a},wa.$$arity=0);b.def(x,"$keep_if",Ba=function(){var a=Ba.$$p,c=a||u,e;a&&(Ba.$$p=null);a&&(Ba.$$p=null);if(!E(c))return H(this,"enum_for",["keep_if"],(e=function(){return(e.$$s||this).$size()},e.$$s=this,e.$$arity=0,e));a=0;for(var f=this.$$keys,d=f.length,n,p;a<d;a++)n=f[a],n.$$is_string?p=this.$$smap[n]:(p=n.value,n=n.key),p=c(n,p),!1!==p&&
384
+ p!==u||void 0===b.hash_delete(this,n)||(d--,a--);return this},Ba.$$arity=0);b.alias(x,"key","index");b.alias(x,"key?","has_key?");b.def(x,"$keys",Ma=function(){for(var a=[],b=0,c=this.$$keys,e=c.length,f;b<e;b++)f=c[b],f.$$is_string?a.push(f):a.push(f.key);return a},Ma.$$arity=0);b.def(x,"$length",Da=function(){return this.$$keys.length},Da.$$arity=0);b.alias(x,"member?","has_key?");b.def(x,"$merge",xa=function(a){var b=xa.$$p,c=b||u;b&&(xa.$$p=null);b&&(xa.$$p=null);return H(this.$dup(),"merge!",
385
+ [a],c.$to_proc())},xa.$$arity=1);b.def(x,"$merge!",ya=function(a){var c=ya.$$p,e=c||u;c&&(ya.$$p=null);c&&(ya.$$p=null);a.$$is_hash||(a=t(D,"Opal")["$coerce_to!"](a,t(D,"Hash"),"to_hash"));var f=a.$$keys,d=f.length;if(e===u){for(c=0;c<d;c++){var n=f[c];if(n.$$is_string)var p=a.$$smap[n];else p=n.value,n=n.key;b.hash_put(this,n,p)}return this}for(c=0;c<d;c++){n=f[c];n.$$is_string?p=a.$$smap[n]:(p=n.value,n=n.key);var h=b.hash_get(this,n);void 0===h?b.hash_put(this,n,p):b.hash_put(this,n,e(n,h,p))}return this},
386
+ ya.$$arity=1);b.def(x,"$rassoc",fa=function(a){for(var b=0,c=this.$$keys,e=c.length,f,d;b<e;b++)if(f=c[b],f.$$is_string?d=this.$$smap[f]:(d=f.value,f=f.key),d["$=="](a))return[f,d];return u},fa.$$arity=1);b.def(x,"$rehash",I=function(){b.hash_rehash(this);return this},I.$$arity=0);b.def(x,"$reject",Y=function(){var a=Y.$$p,c=a||u,e;a&&(Y.$$p=null);a&&(Y.$$p=null);if(!E(c))return H(this,"enum_for",["reject"],(e=function(){return(e.$$s||this).$size()},e.$$s=this,e.$$arity=0,e));a=b.hash();for(var f=
387
+ 0,d=this.$$keys,n=d.length,p,h,r;f<n;f++)p=d[f],p.$$is_string?h=this.$$smap[p]:(h=p.value,p=p.key),r=c(p,h),!1!==r&&r!==u||b.hash_put(a,p,h);return a},Y.$$arity=0);b.def(x,"$reject!",sa=function(){var a=sa.$$p,c=a||u,e;a&&(sa.$$p=null);a&&(sa.$$p=null);if(!E(c))return H(this,"enum_for",["reject!"],(e=function(){return(e.$$s||this).$size()},e.$$s=this,e.$$arity=0,e));a=!1;for(var f=0,d=this.$$keys,n=d.length,p,h;f<n;f++)p=d[f],p.$$is_string?h=this.$$smap[p]:(h=p.value,p=p.key),h=c(p,h),!1!==h&&h!==
388
+ u&&void 0!==b.hash_delete(this,p)&&(a=!0,n--,f--);return a?this:u},sa.$$arity=0);b.def(x,"$replace",La=function(a){a=t(D,"Opal")["$coerce_to!"](a,t(D,"Hash"),"to_hash");b.hash_init(this);var c=0;for(var e=a.$$keys,f=e.length,d,n;c<f;c++)d=e[c],d.$$is_string?n=a.$$smap[d]:(n=d.value,d=d.key),b.hash_put(this,d,n);E(a.$default_proc())?(c=[a.$default_proc()],H(this,"default_proc=",b.to_a(c))):(c=[a.$default()],H(this,"default=",b.to_a(c)));a=c;c=c.length;c="number"===typeof c?c-1:c["$-"](1);a[c];return this},
389
+ La.$$arity=1);b.def(x,"$select",qa=function(){var a=qa.$$p,c=a||u,e;a&&(qa.$$p=null);a&&(qa.$$p=null);if(!E(c))return H(this,"enum_for",["select"],(e=function(){return(e.$$s||this).$size()},e.$$s=this,e.$$arity=0,e));a=b.hash();for(var f=0,d=this.$$keys,n=d.length,p,h,r;f<n;f++)p=d[f],p.$$is_string?h=this.$$smap[p]:(h=p.value,p=p.key),r=c(p,h),!1!==r&&r!==u&&b.hash_put(a,p,h);return a},qa.$$arity=0);b.def(x,"$select!",Oa=function(){var a=Oa.$$p,c=a||u,e;a&&(Oa.$$p=null);a&&(Oa.$$p=null);if(!E(c))return H(this,
390
+ "enum_for",["select!"],(e=function(){return(e.$$s||this).$size()},e.$$s=this,e.$$arity=0,e));a=u;for(var f=0,d=this.$$keys,n=d.length,p,h;f<n;f++)if(p=d[f],p.$$is_string?h=this.$$smap[p]:(h=p.value,p=p.key),h=c(p,h),!1===h||h===u)void 0!==b.hash_delete(this,p)&&(n--,f--),a=this;return a},Oa.$$arity=0);b.def(x,"$shift",da=function(){var a=this.$$keys;return 0<a.length?(a=a[0],a=a.$$is_string?a:a.key,[a,b.hash_delete(this,a)]):this.$default(u)},da.$$arity=0);b.alias(x,"size","length");b.def(x,"$slice",
391
+ na=function(a){var c=b.slice.call(arguments,0,arguments.length);for(var e=b.hash(),f=0,d=c.length;f<d;f++){var n=c[f],p=b.hash_get(this,n);void 0!==p&&b.hash_put(e,n,p)}return e},na.$$arity=-1);b.alias(x,"store","[]=");b.def(x,"$to_a",Ja=function(){for(var a=[],b=0,c=this.$$keys,e=c.length,f,d;b<e;b++)f=c[b],f.$$is_string?d=this.$$smap[f]:(d=f.value,f=f.key),a.push([f,d]);return a},Ja.$$arity=0);b.def(x,"$to_h",Va=function(){if(this.$$class===b.Hash)return this;var a=new b.Hash;b.hash_init(a);b.hash_clone(this,
392
+ a);return a},Va.$$arity=0);b.def(x,"$to_hash",Ua=function(){return this},Ua.$$arity=0);b.def(x,"$to_proc",$a=function(){var a;return H(this,"proc",[],(a=function(b){var c=a.$$s||this;null==b&&c.$raise(t(D,"ArgumentError"),"no key given");return c["$[]"](b)},a.$$s=this,a.$$arity=-1,a))},$a.$$arity=0);b.alias(x,"to_s","inspect");b.def(x,"$transform_keys",oa=function(){var a=oa.$$p,c=a||u,e;a&&(oa.$$p=null);a&&(oa.$$p=null);if(!E(c))return H(this,"enum_for",["transform_keys"],(e=function(){return(e.$$s||
393
+ this).$size()},e.$$s=this,e.$$arity=0,e));a=b.hash();for(var f=0,d=this.$$keys,n=d.length,p,h;f<n;f++)p=d[f],p.$$is_string?h=this.$$smap[p]:(h=p.value,p=p.key),p=b.yield1(c,p),b.hash_put(a,p,h);return a},oa.$$arity=0);b.def(x,"$transform_keys!",Aa=function(){var a=Aa.$$p,c=a||u,e;a&&(Aa.$$p=null);a&&(Aa.$$p=null);if(!E(c))return H(this,"enum_for",["transform_keys!"],(e=function(){return(e.$$s||this).$size()},e.$$s=this,e.$$arity=0,e));a=b.slice.call(this.$$keys);var f,d=a.length;for(f=0;f<d;f++){var n=
394
+ a[f];if(n.$$is_string)var p=this.$$smap[n];else p=n.value,n=n.key;var h=b.yield1(c,n);b.hash_delete(this,n);b.hash_put(this,h,p)}return this},Aa.$$arity=0);b.def(x,"$transform_values",ha=function(){var a=ha.$$p,c=a||u,e;a&&(ha.$$p=null);a&&(ha.$$p=null);if(!E(c))return H(this,"enum_for",["transform_values"],(e=function(){return(e.$$s||this).$size()},e.$$s=this,e.$$arity=0,e));a=b.hash();for(var f=0,d=this.$$keys,n=d.length,p,h;f<n;f++)p=d[f],p.$$is_string?h=this.$$smap[p]:(h=p.value,p=p.key),h=b.yield1(c,
395
+ h),b.hash_put(a,p,h);return a},ha.$$arity=0);b.def(x,"$transform_values!",za=function(){var a=za.$$p,c=a||u,e;a&&(za.$$p=null);a&&(za.$$p=null);if(!E(c))return H(this,"enum_for",["transform_values!"],(e=function(){return(e.$$s||this).$size()},e.$$s=this,e.$$arity=0,e));a=0;for(var f=this.$$keys,d=f.length,n,p;a<d;a++)n=f[a],n.$$is_string?p=this.$$smap[n]:(p=n.value,n=n.key),p=b.yield1(c,p),b.hash_put(this,n,p);return this},za.$$arity=0);b.alias(x,"update","merge!");b.alias(x,"value?","has_value?");
396
+ b.alias(x,"values_at","indexes");return(b.def(x,"$values",Ca=function(){for(var a=[],b=0,c=this.$$keys,e=c.length,f;b<e;b++)f=c[b],f.$$is_string?a.push(this.$$smap[f]):a.push(f.value);return a},Ca.$$arity=0),u)&&"values"}(C[0],null,C)};
397
+ Opal.modules["corelib/number"]=function(b){function m(b,g){return"number"===typeof b&&"number"===typeof g?b>g:b["$>"](g)}function D(b,g){return"number"===typeof b&&"number"===typeof g?b<g:b["$<"](g)}function C(b,g){return"number"===typeof b&&"number"===typeof g?b+g:b["$+"](g)}function u(b,g){return"number"===typeof b&&"number"===typeof g?b-g:b["$-"](g)}function t(b,g){return"number"===typeof b&&"number"===typeof g?b/g:b["$/"](g)}function g(b,g){return"number"===typeof b&&"number"===typeof g?b*g:b["$*"](g)}
398
+ var H=b.top,l=[],E=b.nil,x=b.const_get_qualified,q=b.const_get_relative,O=b.klass,P=b.truthy,M=b.send,G=b.hash2;b.add_stubs("$require $bridge $raise $name $class $Float $respond_to? $coerce_to! $__coerced__ $=== $! $> $** $new $< $to_f $== $nan? $infinite? $enum_for $+ $- $gcd $lcm $% $/ $frexp $to_i $ldexp $rationalize $* $<< $to_r $truncate $-@ $size $<= $>= $<=> $compare $any?".split(" "));H.$require("corelib/numeric");(function(k,$super,l){k=O(k,$super,"Number");var z=[k].concat(l),F,H,R,a,d,
399
+ v,B,L,r,h,c,A,p,U,S,n,e,f,N,ea,ka,J,T,ba,y,ca,V,Ha,la,va,ta,ma,wa,Ba,Ma,Da,xa,ya,fa,I,Y,sa,La,qa,Oa,da,na,Ja,Va,Ua,$a,oa,Aa,ha,za,Ca,ua,Na,Ia,Ea,Sa,Qa,Pa,Fa,Ga,Wa,Ta,Xa,Ya,bb,Za,ia;q(z,"Opal").$bridge(Number,k);b.defineProperty(k.$$prototype,"$$is_number",!0);k.$$is_number_class=!0;(function(a,c){var e=[a].concat(c),f;b.def(a,"$allocate",f=function(){return this.$raise(q(e,"TypeError"),"allocator undefined for "+this.$name())},f.$$arity=0);b.udef(a,"$new");return E})(b.get_singleton_class(k),z);b.def(k,
400
+ "$coerce",F=function(a){if(a!==E){if(a.$$is_string)return[this.$Float(a),this];if(a["$respond_to?"]("to_f"))return[q(z,"Opal")["$coerce_to!"](a,q(z,"Float"),"to_f"),this];if(a.$$is_number)return[a,this]}this.$raise(q(z,"TypeError"),"can't convert "+a.$class()+" into Float")},F.$$arity=1);b.def(k,"$__id__",H=function(){return 2*this+1},H.$$arity=0);b.alias(k,"object_id","__id__");b.def(k,"$+",R=function(a){return a.$$is_number?this+a:this.$__coerced__("+",a)},R.$$arity=1);b.def(k,"$-",a=function(a){return a.$$is_number?
401
+ this-a:this.$__coerced__("-",a)},a.$$arity=1);b.def(k,"$*",d=function(a){return a.$$is_number?this*a:this.$__coerced__("*",a)},d.$$arity=1);b.def(k,"$/",v=function(a){return a.$$is_number?this/a:this.$__coerced__("/",a)},v.$$arity=1);b.alias(k,"fdiv","/");b.def(k,"$%",B=function(a){if(a.$$is_number){if(-Infinity==a)return a;if(0==a)this.$raise(q(z,"ZeroDivisionError"),"divided by 0");else return 0>a||0>this?(this%a+a)%a:this%a}else return this.$__coerced__("%",a)},B.$$arity=1);b.def(k,"$&",L=function(a){return a.$$is_number?
402
+ this&a:this.$__coerced__("&",a)},L.$$arity=1);b.def(k,"$|",r=function(a){return a.$$is_number?this|a:this.$__coerced__("|",a)},r.$$arity=1);b.def(k,"$^",h=function(a){return a.$$is_number?this^a:this.$__coerced__("^",a)},h.$$arity=1);b.def(k,"$<",c=function(a){return a.$$is_number?this<a:this.$__coerced__("<",a)},c.$$arity=1);b.def(k,"$<=",A=function(a){return a.$$is_number?this<=a:this.$__coerced__("<=",a)},A.$$arity=1);b.def(k,"$>",p=function(a){return a.$$is_number?this>a:this.$__coerced__(">",
403
+ a)},p.$$arity=1);b.def(k,"$>=",U=function(a){return a.$$is_number?this>=a:this.$__coerced__(">=",a)},U.$$arity=1);b.def(k,"$<=>",S=function(a){try{return a.$$is_number?isNaN(this)||isNaN(a)?E:this>a?1:this<a?-1:0:this.$__coerced__("<=>",a)}catch(Q){if(b.rescue(Q,[q(z,"ArgumentError")]))try{return E}finally{b.pop_exception()}else throw Q;}},S.$$arity=1);b.def(k,"$<<",n=function(a){a=q(z,"Opal")["$coerce_to!"](a,q(z,"Integer"),"to_int");return 0<a?this<<a:this>>-a},n.$$arity=1);b.def(k,"$>>",e=function(a){a=
404
+ q(z,"Opal")["$coerce_to!"](a,q(z,"Integer"),"to_int");return 0<a?this>>a:this<<-a},e.$$arity=1);b.def(k,"$[]",f=function(a){a=q(z,"Opal")["$coerce_to!"](a,q(z,"Integer"),"to_int");return 0>a?0:32<=a?0>this?1:0:this>>a&1},f.$$arity=1);b.def(k,"$+@",N=function(){return+this},N.$$arity=0);b.def(k,"$-@",ea=function(){return-this},ea.$$arity=0);b.def(k,"$~",ka=function(){return~this},ka.$$arity=0);b.def(k,"$**",J=function(a){var b,c;return P(q(z,"Integer")["$==="](a))?P(P(b=q(z,"Integer")["$==="](this)["$!"]())?
405
+ b:m(a,0))?Math.pow(this,a):q(z,"Rational").$new(this,1)["$**"](a):P(D(this,0)?P(c=q(z,"Float")["$==="](a))?c:q(z,"Rational")["$==="](a):D(this,0))?q(z,"Complex").$new(this,0)["$**"](a.$to_f()):P(null!=a.$$is_number)?Math.pow(this,a):this.$__coerced__("**",a)},J.$$arity=1);b.def(k,"$===",T=function(a){return a.$$is_number?this.valueOf()===a.valueOf():a["$respond_to?"]("==")?a["$=="](this):!1},T.$$arity=1);b.def(k,"$==",ba=function(a){return a.$$is_number?this.valueOf()===a.valueOf():a["$respond_to?"]("==")?
406
+ a["$=="](this):!1},ba.$$arity=1);b.def(k,"$abs",y=function(){return Math.abs(this)},y.$$arity=0);b.def(k,"$abs2",ca=function(){return Math.abs(this*this)},ca.$$arity=0);b.def(k,"$allbits?",V=function(a){a=q(z,"Opal")["$coerce_to!"](a,q(z,"Integer"),"to_int");return(this&a)==a},V.$$arity=1);b.def(k,"$anybits?",Ha=function(a){a=q(z,"Opal")["$coerce_to!"](a,q(z,"Integer"),"to_int");return 0!==(this&a)},Ha.$$arity=1);b.def(k,"$angle",la=function(){return P(this["$nan?"]())?this:0==this?0<1/this?0:Math.PI:
407
+ 0>this?Math.PI:0},la.$$arity=0);b.alias(k,"arg","angle");b.alias(k,"phase","angle");b.def(k,"$bit_length",va=function(){P(q(z,"Integer")["$==="](this))||this.$raise(q(z,"NoMethodError").$new("undefined method `bit_length` for "+this+":Float","bit_length"));if(0===this||-1===this)return 0;for(var a=0,b=0>this?~this:this;0!=b;)a+=1,b>>>=1;return a},va.$$arity=0);b.def(k,"$ceil",ta=function(a){null==a&&(a=0);var b=this.$to_f();if(0===b%1&&0<=a)return b;a=Math.pow(10,a);a=Math.ceil(b*a)/a;0===b%1&&(a=
408
+ Math.round(a));return a},ta.$$arity=-1);b.def(k,"$chr",ma=function(a){return String.fromCharCode(this)},ma.$$arity=-1);b.def(k,"$denominator",wa=function(){var a,c=wa.$$p,e;c&&(wa.$$p=null);var f=0;var d=arguments.length;for(e=Array(d);f<d;f++)e[f]=arguments[f];return P(P(a=this["$nan?"]())?a:this["$infinite?"]())?1:M(this,b.find_super_dispatcher(this,"denominator",wa,!1),e,c)},wa.$$arity=0);b.def(k,"$downto",Ba=function(a){var b=Ba.$$p,c=b||E,e;b&&(Ba.$$p=null);b&&(Ba.$$p=null);if(c===E)return M(this,
409
+ "enum_for",["downto",a],(e=function(){var b=e.$$s||this;P(q(z,"Numeric")["$==="](a))||b.$raise(q(z,"ArgumentError"),"comparison of "+b.$class()+" with "+a.$class()+" failed");return P(m(a,b))?0:C(u(b,a),1)},e.$$s=this,e.$$arity=0,e));a.$$is_number||this.$raise(q(z,"ArgumentError"),"comparison of "+this.$class()+" with "+a.$class()+" failed");for(b=this;b>=a;b--)c(b);return this},Ba.$$arity=1);b.alias(k,"eql?","==");b.def(k,"$equal?",Ma=function(a){var b;return P(b=this["$=="](a))?b:isNaN(this)&&isNaN(a)},
410
+ Ma.$$arity=1);b.def(k,"$even?",Da=function(){return 0===this%2},Da.$$arity=0);b.def(k,"$floor",xa=function(a){null==a&&(a=0);var b=this.$to_f();if(0===b%1&&0<=a)return b;a=Math.pow(10,a);a=Math.floor(b*a)/a;0===b%1&&(a=Math.round(a));return a},xa.$$arity=-1);b.def(k,"$gcd",ya=function(a){P(q(z,"Integer")["$==="](a))||this.$raise(q(z,"TypeError"),"not an integer");var b=Math.abs(this);for(a=Math.abs(a);0<b;){var c=b;b=a%b;a=c}return a},ya.$$arity=1);b.def(k,"$gcdlcm",fa=function(a){return[this.$gcd(),
411
+ this.$lcm()]},fa.$$arity=1);b.def(k,"$integer?",I=function(){return 0===this%1},I.$$arity=0);b.def(k,"$is_a?",Y=function(a){var c=Y.$$p,e;c&&(Y.$$p=null);var f=0;var d=arguments.length;for(e=Array(d);f<d;f++)e[f]=arguments[f];return P(a["$=="](q(z,"Integer"))?q(z,"Integer")["$==="](this):a["$=="](q(z,"Integer")))||P(a["$=="](q(z,"Integer"))?q(z,"Integer")["$==="](this):a["$=="](q(z,"Integer")))||P(a["$=="](q(z,"Float"))?q(z,"Float")["$==="](this):a["$=="](q(z,"Float")))?!0:M(this,b.find_super_dispatcher(this,
412
+ "is_a?",Y,!1),e,c)},Y.$$arity=1);b.alias(k,"kind_of?","is_a?");b.def(k,"$instance_of?",sa=function(a){var c=sa.$$p,e;c&&(sa.$$p=null);var f=0;var d=arguments.length;for(e=Array(d);f<d;f++)e[f]=arguments[f];return P(a["$=="](q(z,"Integer"))?q(z,"Integer")["$==="](this):a["$=="](q(z,"Integer")))||P(a["$=="](q(z,"Integer"))?q(z,"Integer")["$==="](this):a["$=="](q(z,"Integer")))||P(a["$=="](q(z,"Float"))?q(z,"Float")["$==="](this):a["$=="](q(z,"Float")))?!0:M(this,b.find_super_dispatcher(this,"instance_of?",
413
+ sa,!1),e,c)},sa.$$arity=1);b.def(k,"$lcm",La=function(a){P(q(z,"Integer")["$==="](a))||this.$raise(q(z,"TypeError"),"not an integer");return 0==this||0==a?0:Math.abs(this*a/this.$gcd(a))},La.$$arity=1);b.alias(k,"magnitude","abs");b.alias(k,"modulo","%");b.def(k,"$next",qa=function(){return this+1},qa.$$arity=0);b.def(k,"$nobits?",Oa=function(a){a=q(z,"Opal")["$coerce_to!"](a,q(z,"Integer"),"to_int");return 0==(this&a)},Oa.$$arity=1);b.def(k,"$nonzero?",da=function(){return 0==this?E:this},da.$$arity=
414
+ 0);b.def(k,"$numerator",na=function(){var a,c=na.$$p,e;c&&(na.$$p=null);var f=0;var d=arguments.length;for(e=Array(d);f<d;f++)e[f]=arguments[f];return P(P(a=this["$nan?"]())?a:this["$infinite?"]())?this:M(this,b.find_super_dispatcher(this,"numerator",na,!1),e,c)},na.$$arity=0);b.def(k,"$odd?",Ja=function(){return 0!==this%2},Ja.$$arity=0);b.def(k,"$ord",Va=function(){return this},Va.$$arity=0);b.def(k,"$pow",Ua=function(a,b){0==this&&this.$raise(q(z,"ZeroDivisionError"),"divided by 0");if(void 0===
415
+ b)return this["$**"](a);q(z,"Integer")["$==="](a)||this.$raise(q(z,"TypeError"),"Integer#pow() 2nd argument not allowed unless a 1st argument is integer");0>a&&this.$raise(q(z,"TypeError"),"Integer#pow() 1st argument cannot be negative when 2nd argument specified");q(z,"Integer")["$==="](b)||this.$raise(q(z,"TypeError"),"Integer#pow() 2nd argument not allowed unless all arguments are integers");0===b&&this.$raise(q(z,"ZeroDivisionError"),"divided by 0");return this["$**"](a)["$%"](b)},Ua.$$arity=
416
+ -2);b.def(k,"$pred",$a=function(){return this-1},$a.$$arity=0);b.def(k,"$quo",oa=function(a){var c=oa.$$p,e;c&&(oa.$$p=null);var f=0;var d=arguments.length;for(e=Array(d);f<d;f++)e[f]=arguments[f];return P(q(z,"Integer")["$==="](this))?M(this,b.find_super_dispatcher(this,"quo",oa,!1),e,c):t(this,a)},oa.$$arity=1);b.def(k,"$rationalize",Aa=function(a){1<arguments.length&&this.$raise(q(z,"ArgumentError"),"wrong number of arguments ("+arguments.length+" for 0..1)");if(P(q(z,"Integer")["$==="](this)))return q(z,
417
+ "Rational").$new(this,1);if(P(this["$infinite?"]()))return this.$raise(q(z,"FloatDomainError"),"Infinity");if(P(this["$nan?"]()))return this.$raise(q(z,"FloatDomainError"),"NaN");if(P(null==a)){var c=q(z,"Math").$frexp(this);var e=b.to_ary(c);var f=null==e[0]?E:e[0];e=null==e[1]?E:e[1];c;f=q(z,"Math").$ldexp(f,x(q(z,"Float"),"MANT_DIG")).$to_i();e=u(e,x(q(z,"Float"),"MANT_DIG"));return q(z,"Rational").$new(g(2,f),1["$<<"](u(1,e))).$rationalize(q(z,"Rational").$new(1,1["$<<"](u(1,e))))}return this.$to_r().$rationalize(a)},
418
+ Aa.$$arity=-1);b.def(k,"$remainder",ha=function(a){return u(this,g(a,t(this,a).$truncate()))},ha.$$arity=1);b.def(k,"$round",za=function(a){var c;if(P(q(z,"Integer")["$==="](this))){if(P(null==a))return this;P(P(c=q(z,"Float")["$==="](a))?a["$infinite?"]():c)&&this.$raise(q(z,"RangeError"),"Infinity");a=q(z,"Opal")["$coerce_to!"](a,q(z,"Integer"),"to_int");P(D(a,x(q(z,"Integer"),"MIN")))&&this.$raise(q(z,"RangeError"),"out of bounds");if(P(0<=a))return this;a=a["$-@"]();if(.415241*a-.125>this.$size())return 0;
419
+ a=Math.pow(10,a);var e=Math.floor((Math.abs(e)+a/2)/a)*a;return 0>this?-e:e}P(P(c=this["$nan?"]())?null==a:c)&&this.$raise(q(z,"FloatDomainError"),"NaN");a=q(z,"Opal")["$coerce_to!"](a||0,q(z,"Integer"),"to_int");if(P("number"===typeof a?0>=a:a["$<="](0)))P(this["$nan?"]())?this.$raise(q(z,"RangeError"),"NaN"):P(this["$infinite?"]())&&this.$raise(q(z,"FloatDomainError"),"Infinity");else{if(a["$=="](0))return Math.round(this);if(P(P(c=this["$nan?"]())?c:this["$infinite?"]()))return this}e=q(z,"Math").$frexp(this);
420
+ c=b.to_ary(e);c=null==c[1]?E:c[1];e;e=u(C(x(q(z,"Float"),"DIG"),2),P(m(c,0))?t(c,4):u(t(c,3),1));e="number"===typeof a&&"number"===typeof e?a>=e:a["$>="](e);return P(e)?this:P(D(a,(P(m(c,0))?C(t(c,3),1):t(c,4))["$-@"]()))?0:Math.round(this*Math.pow(10,a))/Math.pow(10,a)},za.$$arity=-1);b.def(k,"$step",Ca=function(a,c,e){function f(){void 0!==Q&&(v=Q);void 0===v&&(v=E);k===E&&r.$raise(q(z,"TypeError"),"step must be numeric");0===k&&r.$raise(q(z,"ArgumentError"),"step can't be 0");void 0!==A&&(k=A);
421
+ if(k===E||null==k)k=1;var a=k["$<=>"](0);a===E&&r.$raise(q(z,"ArgumentError"),"0 can't be coerced into "+k.$class());if(v===E||null==v)v=0<a?x(q(z,"Float"),"INFINITY"):x(q(z,"Float"),"INFINITY")["$-@"]();q(z,"Opal").$compare(r,v)}function d(){if(0<k&&r>v||0>k&&r<v)return 0;if(Infinity===k||-Infinity===k)return 1;var a=Math.abs,b=Math.floor;a=(a(r)+a(v)+a(v-r))/a(k)*x(q(z,"Float"),"EPSILON");if(Infinity===a||-Infinity===a)return 0;.5<a&&(a=.5);return b((v-r)/k+a)+1}function n(){f();if(0===k)return Infinity;
422
+ if(0!==k%1)return d();if(0<k&&r>v||0>k&&r<v)return 0;var a=Math.ceil,b=Math.abs,c=b(r-v)+1;b=b(k);return a(c/b)}var w=Ca.$$p,p=w||E,h,g,r=this,y=h=E;w&&(Ca.$$p=null);w&&(Ca.$$p=null);w=b.slice.call(arguments,0,arguments.length);h=b.extract_kwargs(w);if(null==h)h=G([],{});else if(!h.$$is_hash)throw b.ArgumentError.$new("expected kwargs");if(0<w.length){var v=w[0];w.splice(0,1)}if(0<w.length){var k=w[0];w.splice(0,1)}var Q=h.$$smap.to;var A=h.$$smap.by;void 0!==v&&void 0!==Q&&r.$raise(q(z,"ArgumentError"),
423
+ "to is given twice");void 0!==k&&void 0!==A&&r.$raise(q(z,"ArgumentError"),"step is given twice");if(p===E)return h=[],y=G([],{}),void 0!==v&&h.push(v),void 0!==k&&h.push(k),void 0!==Q&&b.hash_put(y,"to",Q),void 0!==A&&b.hash_put(y,"by",A),y["$any?"]()&&h.push(y),M(r,"enum_for",["step"].concat(b.to_a(h)),(g=function(){return n()},g.$$s=r,g.$$arity=0,g));f();if(0===k)for(;;)p(r);if(0!==r%1||0!==v%1||0!==k%1){if(g=d(),0<g)if(Infinity===k||-Infinity===k)p(r);else if(w=0,0<k)for(;w<g;)h=w*k+r,v<h&&(h=
424
+ v),p(h),w+=1;else for(;w<g;)h=w*k+r,v>h&&(h=v),p(h),w+=1}else if(g=r,0<k)for(;g<=v;)p(g),g+=k;else for(;g>=v;)p(g),g+=k;return r},Ca.$$arity=-1);b.alias(k,"succ","next");b.def(k,"$times",ua=function(){var a=ua.$$p,b=a||E,c;a&&(ua.$$p=null);a&&(ua.$$p=null);if(!P(b))return M(this,"enum_for",["times"],(c=function(){return c.$$s||this},c.$$s=this,c.$$arity=0,c));for(a=0;a<this;a++)b(a);return this},ua.$$arity=0);b.def(k,"$to_f",Na=function(){return this},Na.$$arity=0);b.def(k,"$to_i",Ia=function(){return parseInt(this,
425
+ 10)},Ia.$$arity=0);b.alias(k,"to_int","to_i");b.def(k,"$to_r",Ea=function(){if(P(q(z,"Integer")["$==="](this)))return q(z,"Rational").$new(this,1);var a=q(z,"Math").$frexp(this);var c=b.to_ary(a);var e=null==c[0]?E:c[0];c=null==c[1]?E:c[1];a;e=q(z,"Math").$ldexp(e,x(q(z,"Float"),"MANT_DIG")).$to_i();c=u(c,x(q(z,"Float"),"MANT_DIG"));return g(e,x(q(z,"Float"),"RADIX")["$**"](c)).$to_r()},Ea.$$arity=0);b.def(k,"$to_s",Sa=function(a){var b;null==a&&(a=10);a=q(z,"Opal")["$coerce_to!"](a,q(z,"Integer"),
426
+ "to_int");P(P(b=D(a,2))?b:m(a,36))&&this.$raise(q(z,"ArgumentError"),"invalid radix "+a);return this.toString(a)},Sa.$$arity=-1);b.def(k,"$truncate",Qa=function(a){null==a&&(a=0);var b=this.$to_f();if(0===b%1&&0<=a)return b;a=Math.pow(10,a);a=parseInt(b*a,10)/a;0===b%1&&(a=Math.round(a));return a},Qa.$$arity=-1);b.alias(k,"inspect","to_s");b.def(k,"$digits",Pa=function(a){null==a&&(a=10);D(this,0)&&this.$raise(x(q(z,"Math"),"DomainError"),"out of domain");a=q(z,"Opal")["$coerce_to!"](a,q(z,"Integer"),
427
+ "to_int");P(D(a,2))&&this.$raise(q(z,"ArgumentError"),"invalid radix "+a);for(var b=this,c=[];0!==b;)c.push(b%a),b=parseInt(b/a,10);return c},Pa.$$arity=-1);b.def(k,"$divmod",Fa=function(a){var c,e=Fa.$$p,f;e&&(Fa.$$p=null);var d=0;var n=arguments.length;for(f=Array(n);d<n;d++)f[d]=arguments[d];return P(P(c=this["$nan?"]())?c:a["$nan?"]())?this.$raise(q(z,"FloatDomainError"),"NaN"):P(this["$infinite?"]())?this.$raise(q(z,"FloatDomainError"),"Infinity"):M(this,b.find_super_dispatcher(this,"divmod",
428
+ Fa,!1),f,e)},Fa.$$arity=1);b.def(k,"$upto",Ga=function(a){var b=Ga.$$p,c=b||E,e;b&&(Ga.$$p=null);b&&(Ga.$$p=null);if(c===E)return M(this,"enum_for",["upto",a],(e=function(){var b=e.$$s||this;P(q(z,"Numeric")["$==="](a))||b.$raise(q(z,"ArgumentError"),"comparison of "+b.$class()+" with "+a.$class()+" failed");return P(D(a,b))?0:C(u(a,b),1)},e.$$s=this,e.$$arity=0,e));a.$$is_number||this.$raise(q(z,"ArgumentError"),"comparison of "+this.$class()+" with "+a.$class()+" failed");for(b=this;b<=a;b++)c(b);
429
+ return this},Ga.$$arity=1);b.def(k,"$zero?",Wa=function(){return 0==this},Wa.$$arity=0);b.def(k,"$size",Ta=function(){return 4},Ta.$$arity=0);b.def(k,"$nan?",Xa=function(){return isNaN(this)},Xa.$$arity=0);b.def(k,"$finite?",Ya=function(){return Infinity!=this&&-Infinity!=this&&!isNaN(this)},Ya.$$arity=0);b.def(k,"$infinite?",bb=function(){return Infinity==this?1:-Infinity==this?-1:E},bb.$$arity=0);b.def(k,"$positive?",Za=function(){return 0!=this&&(Infinity==this||0<1/this)},Za.$$arity=0);return(b.def(k,
430
+ "$negative?",ia=function(){return-Infinity==this||0>1/this},ia.$$arity=0),E)&&"negative?"})(l[0],q(l,"Numeric"),l);b.const_set(l[0],"Fixnum",q(l,"Number"));(function(g,$super,l){g=O(g,$super,"Integer");l=[g].concat(l);g.$$is_number_class=!0;(function(g,k){var l=[g].concat(k),t,a,d;b.def(g,"$allocate",t=function(){return this.$raise(q(l,"TypeError"),"allocator undefined for "+this.$name())},t.$$arity=0);b.udef(g,"$new");b.def(g,"$===",a=function(a){return a.$$is_number?0===a%1:!1},a.$$arity=1);return(b.def(g,
431
+ "$sqrt",d=function(a){a=q(l,"Opal")["$coerce_to!"](a,q(l,"Integer"),"to_int");0>a&&this.$raise(x(q(l,"Math"),"DomainError"),'Numerical argument is out of domain - "isqrt"');return parseInt(Math.sqrt(a),10)},d.$$arity=1),E)&&"sqrt"})(b.get_singleton_class(g),l);b.const_set(l[0],"MAX",Math.pow(2,30)-1);return b.const_set(l[0],"MIN",-Math.pow(2,30))})(l[0],q(l,"Numeric"),l);return function(g,$super,l){g=O(g,$super,"Float");l=[g].concat(l);g.$$is_number_class=!0;(function(g,k){var l=[g].concat(k),t,a;
432
+ b.def(g,"$allocate",t=function(){return this.$raise(q(l,"TypeError"),"allocator undefined for "+this.$name())},t.$$arity=0);b.udef(g,"$new");return(b.def(g,"$===",a=function(a){return!!a.$$is_number},a.$$arity=1),E)&&"==="})(b.get_singleton_class(g),l);b.const_set(l[0],"INFINITY",Infinity);b.const_set(l[0],"MAX",Number.MAX_VALUE);b.const_set(l[0],"MIN",Number.MIN_VALUE);b.const_set(l[0],"NAN",NaN);b.const_set(l[0],"DIG",15);b.const_set(l[0],"MANT_DIG",53);b.const_set(l[0],"RADIX",2);return b.const_set(l[0],
433
+ "EPSILON",Number.EPSILON||2.220446049250313E-16)}(l[0],q(l,"Numeric"),l)};
434
+ Opal.modules["corelib/range"]=function(b){function m(b,g){return"number"===typeof b&&"number"===typeof g?b<=g:b["$<="](g)}function D(b,g){return"number"===typeof b&&"number"===typeof g?b<g:b["$<"](g)}function C(b,g){return"number"===typeof b&&"number"===typeof g?b>g:b["$>"](g)}function u(b,g){return"number"===typeof b&&"number"===typeof g?b+g:b["$+"](g)}var t=b.top,g=[],H=b.nil,l=b.const_get_qualified,E=b.const_get_relative,x=b.klass,q=b.truthy,O=b.send;b.add_stubs("$require $include $attr_reader $raise $<=> $include? $<= $< $enum_for $upto $to_proc $respond_to? $class $succ $! $== $=== $exclude_end? $eql? $begin $end $last $to_a $> $- $abs $to_i $coerce_to! $ceil $/ $size $loop $+ $* $>= $each_with_index $% $bsearch $inspect $[] $hash".split(" "));
435
+ t.$require("corelib/enumerable");return function(g,$super,t){g=x(g,$super,"Range");var k=[g].concat(t),G,R,z,F,P,Z,a,d,v,B,L,r,h,c,A,p,U,S;g.$$prototype.begin=g.$$prototype.end=g.$$prototype.excl=H;g.$include(E(k,"Enumerable"));g.$$prototype.$$is_range=!0;g.$attr_reader("begin","end");b.def(g,"$initialize",G=function(a,b,c){null==c&&(c=!1);q(this.begin)&&this.$raise(E(k,"NameError"),"'initialize' called twice");q(a["$<=>"](b))||this.$raise(E(k,"ArgumentError"),"bad value for range");this.begin=a;
436
+ this.end=b;return this.excl=c},G.$$arity=-3);b.def(g,"$==",R=function(a){return a.$$is_range?this.excl===a.excl&&this.begin==a.begin&&this.end==a.end:!1},R.$$arity=1);b.def(g,"$===",z=function(a){return this["$include?"](a)},z.$$arity=1);b.def(g,"$cover?",F=function(a){var b;var c=this.begin["$<=>"](a);if(!q(q(b=c)?m(c,0):b))return!1;a=a["$<=>"](this.end);return q(this.excl)?q(b=a)?D(a,0):b:q(b=a)?m(a,0):b},F.$$arity=1);b.def(g,"$each",P=function(){var a=P.$$p,c=a||H;a&&(P.$$p=null);a&&(P.$$p=null);
437
+ if(c===H)return this.$enum_for("each");if(this.begin.$$is_number&&this.end.$$is_number){0===this.begin%1&&0===this.end%1||this.$raise(E(k,"TypeError"),"can't iterate from Float");var f=this.begin;for(a=this.end+(q(this.excl)?0:1);f<a;f++)c(f);return this}if(this.begin.$$is_string&&this.end.$$is_string)return O(this.begin,"upto",[this.end,this.excl],c.$to_proc()),this;a=this.begin;var d=this.end;for(q(a["$respond_to?"]("succ"))||this.$raise(E(k,"TypeError"),"can't iterate from "+a.$class());q(D(a["$<=>"](d),
438
+ 0));)b.yield1(c,a),a=a.$succ();q(q(f=this.excl["$!"]())?a["$=="](d):f)&&b.yield1(c,a);return this},P.$$arity=0);b.def(g,"$eql?",Z=function(a){var b,c;return q(E(k,"Range")["$==="](a))?q(b=q(c=this.excl["$==="](a["$exclude_end?"]()))?this.begin["$eql?"](a.$begin()):c)?this.end["$eql?"](a.$end()):b:!1},Z.$$arity=1);b.def(g,"$exclude_end?",a=function(){return this.excl},a.$$arity=0);b.def(g,"$first",d=function(a){var c=d.$$p,f;c&&(d.$$p=null);var n=0;var p=arguments.length;for(f=Array(p);n<p;n++)f[n]=
439
+ arguments[n];return q(null==a)?this.begin:O(this,b.find_super_dispatcher(this,"first",d,!1),f,c)},d.$$arity=-1);b.alias(g,"include?","cover?");b.def(g,"$last",v=function(a){return q(null==a)?this.end:this.$to_a().$last(a)},v.$$arity=-1);b.def(g,"$max",B=function(){var a,c=B.$$p,f=c||H,d;c&&(B.$$p=null);var p=0;var h=arguments.length;for(d=Array(h);p<h;p++)d[p]=arguments[p];return f!==H?O(this,b.find_super_dispatcher(this,"max",B,!1),d,c):q(C(this.begin,this.end))?H:q(q(a=this.excl)?this.begin["$=="](this.end):
440
+ a)?H:this.excl?this.end-1:this.end},B.$$arity=0);b.alias(g,"member?","cover?");b.def(g,"$min",L=function(){var a,c=L.$$p,f=c||H,d;c&&(L.$$p=null);var p=0;var h=arguments.length;for(d=Array(h);p<h;p++)d[p]=arguments[p];return f!==H?O(this,b.find_super_dispatcher(this,"min",L,!1),d,c):q(C(this.begin,this.end))?H:q(q(a=this.excl)?this.begin["$=="](this.end):a)?H:this.begin},L.$$arity=0);b.def(g,"$size",r=function(){var a;var b=this.begin;var c=this.end;q(this.excl)&&(c="number"===typeof c?c-1:c["$-"](1));
441
+ if(!q(q(a=E(k,"Numeric")["$==="](b))?E(k,"Numeric")["$==="](c):a))return H;if(q(D(c,b)))return 0;a=l(E(k,"Float"),"INFINITY");return q([b.$abs(),c.$abs()]["$include?"](a))?a:(Math.abs(c-b)+1).$to_i()},r.$$arity=0);b.def(g,"$step",h=function(a){function c(){a.$$is_number||(a=E(k,"Opal")["$coerce_to!"](a,E(k,"Integer"),"to_int"));0>a?v.$raise(E(k,"ArgumentError"),"step can't be negative"):0===a&&v.$raise(E(k,"ArgumentError"),"step can't be 0")}function f(){if(!v.begin["$respond_to?"]("succ")||v.begin.$$is_string&&
442
+ v.end.$$is_string)return H;if(0===a%1){var b=v.$size();return("number"===typeof b&&"number"===typeof a?b/a:b["$/"](a)).$ceil()}b=v.begin;var c=v.end,e=Math.abs,f=Math.floor;e=(e(b)+e(c)+e(c-b))/e(a)*l(E(k,"Float"),"EPSILON");.5<e&&(e=.5);v.excl?(f=f((c-b)/a-e),f*a+b<c&&f++):f=f((c-b)/a+e)+1;return f}var d,n,p,g=h.$$p,r=g||H,v=this,y=H;g&&(h.$$p=null);null==a&&(a=1);if(r===H)return O(v,"enum_for",["step",a],(d=function(){c();return f()},d.$$s=v,d.$$arity=0,d));c();q(v.begin.$$is_number&&v.end.$$is_number)?
443
+ (y=0,function(){var c=b.new_brk();try{return O(v,"loop",[],(n=function(){var e=n.$$s||this;null==e.begin&&(e.begin=H);null==e.excl&&(e.excl=H);null==e.end&&(e.end=H);var f=u(e.begin,"number"===typeof y&&"number"===typeof a?y*a:y["$*"](a));q(e.excl)?(e=e.end,e="number"===typeof f&&"number"===typeof e?f>=e:f["$>="](e),q(e)&&b.brk(H,c)):q(C(f,e.end))&&b.brk(H,c);b.yield1(r,f);return y=u(y,1)},n.$$s=v,n.$$brk=c,n.$$arity=0,n))}catch(V){if(V===c)return V.$v;throw V;}}()):(v.begin.$$is_string&&v.end.$$is_string&&
444
+ 0!==a%1&&v.$raise(E(k,"TypeError"),"no implicit conversion to float from string"),O(v,"each_with_index",[],(p=function(c,e){null==c&&(c=H);null==e&&(e=H);return e["$%"](a)["$=="](0)?b.yield1(r,c):H},p.$$s=v,p.$$arity=2,p)));return v},h.$$arity=-1);b.def(g,"$bsearch",c=function(){var a=c.$$p,b=a||H;a&&(c.$$p=null);a&&(c.$$p=null);if(b===H)return this.$enum_for("bsearch");q(this.begin.$$is_number&&this.end.$$is_number)||this.$raise(E(k,"TypeError"),"can't do binary search for "+this.begin.$class());
445
+ return O(this.$to_a(),"bsearch",[],b.$to_proc())},c.$$arity=0);b.def(g,"$to_s",A=function(){return""+this.begin+(q(this.excl)?"...":"..")+this.end},A.$$arity=0);b.def(g,"$inspect",p=function(){return""+this.begin.$inspect()+(q(this.excl)?"...":"..")+this.end.$inspect()},p.$$arity=0);b.def(g,"$marshal_load",U=function(a){this.begin=a["$[]"]("begin");this.end=a["$[]"]("end");return this.excl=a["$[]"]("excl")},U.$$arity=1);return(b.def(g,"$hash",S=function(){return[this.begin,this.end,this.excl].$hash()},
446
+ S.$$arity=0),H)&&"hash"}(g[0],null,g)};
447
+ Opal.modules["corelib/proc"]=function(b){var m=[],D=b.nil,C=b.const_get_relative,u=b.slice,t=b.klass,g=b.truthy;b.add_stubs(["$raise","$coerce_to!"]);return function(m,$super,E){m=t(m,$super,"Proc");var x=[m].concat(E),q,H,P,M,G,k,pa,R,z,F;b.defineProperty(m.$$prototype,"$$is_proc",!0);b.defineProperty(m.$$prototype,"$$is_lambda",!1);b.defs(m,"$new",q=function(){var b=q.$$p,k=b||D;b&&(q.$$p=null);b&&(q.$$p=null);g(k)||this.$raise(C(x,"ArgumentError"),"tried to create a Proc object without a block");return k},
448
+ q.$$arity=0);b.def(m,"$call",H=function(g){var k=H.$$p,a=k||D;k&&(H.$$p=null);k&&(H.$$p=null);k=b.slice.call(arguments,0,arguments.length);a!==D&&(this.$$p=a);if(a=this.$$brk)try{var d=this.$$is_lambda?this.apply(null,k):b.yieldX(this,k)}catch(v){if(v===a)return a.$v;throw v;}else d=this.$$is_lambda?this.apply(null,k):b.yieldX(this,k);return d},H.$$arity=-1);b.alias(m,"[]","call");b.alias(m,"===","call");b.alias(m,"yield","call");b.def(m,"$to_proc",P=function(){return this},P.$$arity=0);b.def(m,"$lambda?",
449
+ M=function(){return!!this.$$is_lambda},M.$$arity=0);b.def(m,"$arity",G=function(){return this.$$is_curried?-1:this.$$arity},G.$$arity=0);b.def(m,"$source_location",k=function(){return D},k.$$arity=0);b.def(m,"$binding",pa=function(){this.$$is_curried&&this.$raise(C(x,"ArgumentError"),"Can't create Binding");return D},pa.$$arity=0);b.def(m,"$parameters",R=function(){if(this.$$is_curried)return[["rest"]];if(this.$$parameters){if(this.$$is_lambda)return this.$$parameters;var b=[],g;var a=0;for(g=this.$$parameters.length;a<
450
+ g;a++){var d=this.$$parameters[a];"req"===d[0]&&(d=["opt",d[1]]);b.push(d)}return b}return[]},R.$$arity=0);b.def(m,"$curry",z=function(b){function g(){var d=u.call(arguments),v=d.length;v>b&&a.$$is_lambda&&!a.$$is_curried&&a.$raise(C(x,"ArgumentError"),"wrong number of arguments ("+v+" for "+b+")");if(v>=b)return a.$call.apply(a,d);v=function(){return g.apply(null,d.concat(u.call(arguments)))};v.$$is_lambda=a.$$is_lambda;v.$$is_curried=!0;return v}var a=this;void 0===b?b=a.length:(b=C(x,"Opal")["$coerce_to!"](b,
451
+ C(x,"Integer"),"to_int"),a.$$is_lambda&&b!==a.length&&a.$raise(C(x,"ArgumentError"),"wrong number of arguments ("+b+" for "+a.length+")"));g.$$is_lambda=a.$$is_lambda;g.$$is_curried=!0;return g},z.$$arity=-1);b.def(m,"$dup",F=function(){var b=this.$$original_proc||this,g=function(){return b.apply(this,arguments)},a;for(a in this)this.hasOwnProperty(a)&&(g[a]=this[a]);return g},F.$$arity=0);return b.alias(m,"clone","dup")}(m[0],Function,m)};
452
+ Opal.modules["corelib/method"]=function(b){var m=[],D=b.nil,C=b.const_get_relative,u=b.klass,t=b.truthy;b.add_stubs("$attr_reader $arity $new $class $join $source_location $raise".split(" "));(function(g,$super,l){g=u(g,$super,"Method");var m=[g].concat(l),x,q,O,P,M,G,k,pa,R;g.$$prototype.method=g.$$prototype.receiver=g.$$prototype.owner=g.$$prototype.name=D;g.$attr_reader("owner","receiver","name");b.def(g,"$initialize",x=function(b,g,k,l){this.receiver=b;this.owner=g;this.name=l;return this.method=
453
+ k},x.$$arity=4);b.def(g,"$arity",q=function(){return this.method.$arity()},q.$$arity=0);b.def(g,"$parameters",O=function(){return this.method.$$parameters},O.$$arity=0);b.def(g,"$source_location",P=function(){var b;return t(b=this.method.$$source_location)?b:["(eval)",0]},P.$$arity=0);b.def(g,"$comments",M=function(){var b;return t(b=this.method.$$comments)?b:[]},M.$$arity=0);b.def(g,"$call",G=function(g){var k=G.$$p,l=k||D;k&&(G.$$p=null);k&&(G.$$p=null);k=b.slice.call(arguments,0,arguments.length);
454
+ this.method.$$p=l;return this.method.apply(this.receiver,k)},G.$$arity=-1);b.alias(g,"[]","call");b.def(g,"$unbind",k=function(){return C(m,"UnboundMethod").$new(this.receiver.$class(),this.owner,this.method,this.name)},k.$$arity=0);b.def(g,"$to_proc",pa=function(){var b=this.$call.bind(this);b.$$unbound=this.method;b.$$is_lambda=!0;b.$$arity=this.method.$$arity;b.$$parameters=this.method.$$parameters;return b},pa.$$arity=0);return(b.def(g,"$inspect",R=function(){return"#<"+this.$class()+": "+this.receiver.$class()+
455
+ "#"+this.name+" (defined in "+this.owner+" in "+this.$source_location().$join(":")+")>"},R.$$arity=0),D)&&"inspect"})(m[0],null,m);return function(g,$super,l){g=u(g,$super,"UnboundMethod");var m=[g].concat(l),x,q,O,P,M,G,k;g.$$prototype.method=g.$$prototype.owner=g.$$prototype.name=g.$$prototype.source=D;g.$attr_reader("source","owner","name");b.def(g,"$initialize",x=function(b,g,k,l){this.source=b;this.owner=g;this.method=k;return this.name=l},x.$$arity=4);b.def(g,"$arity",q=function(){return this.method.$arity()},
456
+ q.$$arity=0);b.def(g,"$parameters",O=function(){return this.method.$$parameters},O.$$arity=0);b.def(g,"$source_location",P=function(){var b;return t(b=this.method.$$source_location)?b:["(eval)",0]},P.$$arity=0);b.def(g,"$comments",M=function(){var b;return t(b=this.method.$$comments)?b:[]},M.$$arity=0);b.def(g,"$bind",G=function(g){if(this.owner.$$is_module||b.is_a(g,this.owner))return C(m,"Method").$new(g,this.owner,this.method,this.name);this.$raise(C(m,"TypeError"),"can't bind singleton method to a different class (expected "+
457
+ g+".kind_of?("+this.owner+" to be true)")},G.$$arity=1);return(b.def(g,"$inspect",k=function(){return"#<"+this.$class()+": "+this.source+"#"+this.name+" (defined in "+this.owner+" in "+this.$source_location().$join(":")+")>"},k.$$arity=0),D)&&"inspect"}(m[0],null,m)};
458
+ Opal.modules["corelib/variables"]=function(b){var m=[],D=b.nil,C=b.const_get_relative,u=b.gvars,t=b.hash2;b.add_stubs(["$new"]);u["&"]=u["~"]=u["`"]=u["'"]=D;u.LOADED_FEATURES=u['"']=b.loaded_features;u.LOAD_PATH=u[":"]=[];u["/"]="\n";u[","]=D;b.const_set(m[0],"ARGV",[]);b.const_set(m[0],"ARGF",C(m,"Object").$new());b.const_set(m[0],"ENV",t([],{}));u.VERBOSE=!1;u.DEBUG=!1;return u.SAFE=0};
459
+ Opal.modules["opal/regexp_anchors"]=function(b){var m=[],D=b.nil,C=b.const_get_relative,u=b.module;b.add_stubs(["$==","$new"]);m=[u(m[0],"Opal")].concat(m);b.const_set(m[0],"REGEXP_START",C(m,"RUBY_ENGINE")["$=="]("opal")?"^":D);b.const_set(m[0],"REGEXP_END",C(m,"RUBY_ENGINE")["$=="]("opal")?"$":D);b.const_set(m[0],"FORBIDDEN_STARTING_IDENTIFIER_CHARS","\\u0001-\\u002F\\u003A-\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F");b.const_set(m[0],"FORBIDDEN_ENDING_IDENTIFIER_CHARS","\\u0001-\\u0020\\u0022-\\u002F\\u003A-\\u003E\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F");
460
+ b.const_set(m[0],"INLINE_IDENTIFIER_REGEXP",C(m,"Regexp").$new("[^"+C(m,"FORBIDDEN_STARTING_IDENTIFIER_CHARS")+"]*[^"+C(m,"FORBIDDEN_ENDING_IDENTIFIER_CHARS")+"]"));b.const_set(m[0],"FORBIDDEN_CONST_NAME_CHARS","\\u0001-\\u0020\\u0021-\\u002F\\u003B-\\u003F\\u0040\\u005B-\\u005E\\u0060\\u007B-\\u007F");b.const_set(m[0],"CONST_NAME_REGEXP",C(m,"Regexp").$new(""+C(m,"REGEXP_START")+"(::)?[A-Z][^"+C(m,"FORBIDDEN_CONST_NAME_CHARS")+"]*"+C(m,"REGEXP_END")))};
461
+ Opal.modules["opal/mini"]=function(b){var m=b.top;b.add_stubs(["$require"]);m.$require("opal/base");m.$require("corelib/nil");m.$require("corelib/boolean");m.$require("corelib/string");m.$require("corelib/comparable");m.$require("corelib/enumerable");m.$require("corelib/enumerator");m.$require("corelib/array");m.$require("corelib/hash");m.$require("corelib/number");m.$require("corelib/range");m.$require("corelib/proc");m.$require("corelib/method");m.$require("corelib/regexp");m.$require("corelib/variables");
462
+ return m.$require("opal/regexp_anchors")};
463
+ Opal.modules["corelib/string/encoding"]=function(b){function m(b,g){return"number"===typeof b&&"number"===typeof g?b+g:b["$+"](g)}var D,C,u,t,g,H=b.top,l=[],E=b.nil,x=b.const_get_qualified,q=b.const_get_relative,O=b.klass,P=b.hash2,M=b.truthy,G=b.send;b.add_stubs("$require $+ $[] $new $to_proc $each $const_set $sub $== $default_external $upcase $raise $attr_accessor $attr_reader $register $length $bytes $to_a $each_byte $dup $bytesize $enum_for $coerce_to! $find $<".split(" "));H.$require("corelib/string");
464
+ (function(g,$super,l){g=O(g,$super,"Encoding");var k=[g].concat(l),t,x,u,a,d,v,B,L,r;g.$$prototype.ascii=g.$$prototype.dummy=g.$$prototype.name=E;b.defineProperty(g,"$$register",{});b.defs(g,"$register",t=function(a,b){var c=t.$$p,d=c||E,h,g,n=E,e=E,f=E;c&&(t.$$p=null);c&&(t.$$p=null);null==b&&(b=P([],{}));n=m([a],M(h=b["$[]"]("aliases"))?h:[]);e=G(q(k,"Class"),"new",[this],d.$to_proc()).$new(a,n,M(h=b["$[]"]("ascii"))?h:!1,M(h=b["$[]"]("dummy"))?h:!1);f=this.$$register;return G(n,"each",[],(g=function(a){var b=
465
+ g.$$s||this;null==a&&(a=E);b.$const_set(a.$sub("-","_"),e);return f["$$"+a]=e},g.$$s=this,g.$$arity=1,g))},t.$$arity=-2);b.defs(g,"$find",x=function(a){var b;if(a["$=="]("default_external"))return this.$default_external();var d=this.$$register;d=M(b=d["$$"+a])?b:d["$$"+a.$upcase()];M(d)||this.$raise(q(k,"ArgumentError"),"unknown encoding name - "+a);return d},x.$$arity=1);(function(a,b){[a].concat(b);return a.$attr_accessor("default_external")})(b.get_singleton_class(g),k);g.$attr_reader("name","names");
466
+ b.def(g,"$initialize",u=function(a,b,d,p){this.name=a;this.names=b;this.ascii=d;return this.dummy=p},u.$$arity=4);b.def(g,"$ascii_compatible?",a=function(){return this.ascii},a.$$arity=0);b.def(g,"$dummy?",d=function(){return this.dummy},d.$$arity=0);b.def(g,"$to_s",v=function(){return this.name},v.$$arity=0);b.def(g,"$inspect",B=function(){return"#<Encoding:"+this.name+(M(this.dummy)?" (dummy)":E)+">"},B.$$arity=0);b.def(g,"$each_byte",L=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise(q(k,
467
+ "NotImplementedError"))},L.$$arity=-1);b.def(g,"$bytesize",r=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise(q(k,"NotImplementedError"))},r.$$arity=-1);(function(a,$super,b){[O(a,$super,"EncodingError")].concat(b);return E})(k[0],q(k,"StandardError"),k);return function(a,$super,b){[O(a,$super,"CompatibilityError")].concat(b);return E}(k[0],q(k,"EncodingError"),k)})(l[0],null,l);G(q(l,"Encoding"),"register",["UTF-8",P(["aliases","ascii"],{aliases:["CP65001"],ascii:!0})],(D=
468
+ function(){var g=D.$$s||this,l,q;b.def(g,"$each_byte",l=function(g){var k=l.$$p,q=k||E;k&&(l.$$p=null);k&&(l.$$p=null);k=Infinity;for(var t,a=g.length,d=null,v=0;v<a;++v){t=g.charCodeAt(v);if(55295<t&&57344>t){if(!d){if(56319<t){-1<(k-=3)&&(b.yield1(q,239),b.yield1(q,191),b.yield1(q,189));continue}else if(v+1===a){-1<(k-=3)&&(b.yield1(q,239),b.yield1(q,191),b.yield1(q,189));continue}d=t;continue}if(56320>t){-1<(k-=3)&&(b.yield1(q,239),b.yield1(q,191),b.yield1(q,189));d=t;continue}t=(d-55296<<10|t-
469
+ 56320)+65536}else d&&-1<(k-=3)&&(b.yield1(q,239),b.yield1(q,191),b.yield1(q,189));d=null;if(128>t){if(0>--k)break;b.yield1(q,t)}else if(2048>t){if(0>(k-=2))break;b.yield1(q,t>>6|192);b.yield1(q,t&63|128)}else if(65536>t){if(0>(k-=3))break;b.yield1(q,t>>12|224);b.yield1(q,t>>6&63|128);b.yield1(q,t&63|128)}else if(1114112>t){if(0>(k-=4))break;b.yield1(q,t>>18|240);b.yield1(q,t>>12&63|128);b.yield1(q,t>>6&63|128);b.yield1(q,t&63|128)}}},l.$$arity=1);return(b.def(g,"$bytesize",q=function(b){return b.$bytes().$length()},
470
+ q.$$arity=1),E)&&"bytesize"},D.$$s=H,D.$$arity=0,D));G(q(l,"Encoding"),"register",["UTF-16LE"],(C=function(){var g=C.$$s||this,l,q;b.def(g,"$each_byte",l=function(g){var k=l.$$p,q=k||E;k&&(l.$$p=null);k&&(l.$$p=null);k=0;for(var t=g.length;k<t;k++){var a=g.charCodeAt(k);b.yield1(q,a&255);b.yield1(q,a>>8)}},l.$$arity=1);return(b.def(g,"$bytesize",q=function(b){return b.$bytes().$length()},q.$$arity=1),E)&&"bytesize"},C.$$s=H,C.$$arity=0,C));G(q(l,"Encoding"),"register",["UTF-16BE"],(u=function(){var g=
471
+ u.$$s||this,l,q;b.def(g,"$each_byte",l=function(g){var k=l.$$p,q=k||E;k&&(l.$$p=null);k&&(l.$$p=null);k=0;for(var t=g.length;k<t;k++){var a=g.charCodeAt(k);b.yield1(q,a>>8);b.yield1(q,a&255)}},l.$$arity=1);return(b.def(g,"$bytesize",q=function(b){return b.$bytes().$length()},q.$$arity=1),E)&&"bytesize"},u.$$s=H,u.$$arity=0,u));G(q(l,"Encoding"),"register",["UTF-32LE"],(t=function(){var g=t.$$s||this,l,q;b.def(g,"$each_byte",l=function(g){var k=l.$$p,q=k||E;k&&(l.$$p=null);k&&(l.$$p=null);k=0;for(var t=
472
+ g.length;k<t;k++){var a=g.charCodeAt(k);b.yield1(q,a&255);b.yield1(q,a>>8)}},l.$$arity=1);return(b.def(g,"$bytesize",q=function(b){return b.$bytes().$length()},q.$$arity=1),E)&&"bytesize"},t.$$s=H,t.$$arity=0,t));G(q(l,"Encoding"),"register",["ASCII-8BIT",P(["aliases","ascii","dummy"],{aliases:["BINARY","US-ASCII","ASCII"],ascii:!0,dummy:!0})],(g=function(){var k=g.$$s||this,l,q;b.def(k,"$each_byte",l=function(g){var k=l.$$p,q=k||E;k&&(l.$$p=null);k&&(l.$$p=null);k=0;for(var t=g.length;k<t;k++){var a=
473
+ g.charCodeAt(k);b.yield1(q,a&255);b.yield1(q,a>>8)}},l.$$arity=1);return(b.def(k,"$bytesize",q=function(b){return b.$bytes().$length()},q.$$arity=1),E)&&"bytesize"},g.$$s=H,g.$$arity=0,g));return function(g,$super,l){g=O(g,$super,"String");var k=[g].concat(l),t,m,u,a,d,v,B;g.$$prototype.bytes=g.$$prototype.internal_encoding=E;g.$attr_reader("encoding");g.$attr_reader("internal_encoding");b.defineProperty(String.prototype,"bytes",E);b.defineProperty(String.prototype,"encoding",x(q(k,"Encoding"),"UTF_8"));
474
+ b.defineProperty(String.prototype,"internal_encoding",x(q(k,"Encoding"),"UTF_8"));b.def(g,"$bytes",t=function(){var a;this.bytes=M(a=this.bytes)?a:this.$each_byte().$to_a();return this.bytes.$dup()},t.$$arity=0);b.def(g,"$bytesize",m=function(){return this.internal_encoding.$bytesize(this)},m.$$arity=0);b.def(g,"$each_byte",u=function(){var a=u.$$p,b=a||E;a&&(u.$$p=null);a&&(u.$$p=null);if(b===E)return this.$enum_for("each_byte");G(this.internal_encoding,"each_byte",[this],b.$to_proc());return this},
475
+ u.$$arity=0);b.def(g,"$encode",a=function(a){return b.enc(this,a)},a.$$arity=1);b.def(g,"$force_encoding",d=function(a){if(a===this.encoding)return this;a=q(k,"Opal")["$coerce_to!"](a,q(k,"String"),"to_s");a=q(k,"Encoding").$find(a);if(a===this.encoding)return this;this.encoding=a;return this},d.$$arity=1);b.def(g,"$getbyte",v=function(a){var b=this.$bytes();a=q(k,"Opal")["$coerce_to!"](a,q(k,"Integer"),"to_int");var d=b.$length();d="number"===typeof d&&"number"===typeof a?d<a:d["$<"](a);return M(d)?
476
+ E:b["$[]"](a)},v.$$arity=1);return(b.def(g,"$valid_encoding?",B=function(){return!0},B.$$arity=0),E)&&"valid_encoding?"}(l[0],null,l)};
477
+ Opal.modules["corelib/struct"]=function(b){function m(b,g){return"number"===typeof b&&"number"===typeof g?b>g:b["$>"](g)}function D(b,g){return"number"===typeof b&&"number"===typeof g?b-g:b["$-"](g)}function C(b,g){return"number"===typeof b&&"number"===typeof g?b<g:b["$<"](g)}function u(b,g){return"number"===typeof b&&"number"===typeof g?b>=g:b["$>="](g)}function t(b,g){return"number"===typeof b&&"number"===typeof g?b+g:b["$+"](g)}var g=b.top,H=[],l=b.nil,E=b.const_get_relative,x=b.klass,q=b.hash2,
478
+ O=b.truthy,P=b.send;b.add_stubs("$require $include $const_name! $unshift $map $coerce_to! $new $each $define_struct_attribute $allocate $initialize $alias_method $module_eval $to_proc $const_set $== $raise $<< $members $define_method $instance_eval $class $last $> $length $- $keys $any? $join $[] $[]= $each_with_index $hash $=== $< $-@ $size $>= $include? $to_sym $instance_of? $__id__ $eql? $enum_for $name $+ $each_pair $inspect $each_with_object $flatten $to_a $respond_to? $dig".split(" "));g.$require("corelib/enumerable");
479
+ return function(g,$super,k){g=x(g,$super,"Struct");var H=[g].concat(k),M,z,F,ja,Z,a,d,v,B,L,r,h,c,A,p,U,S,n,e;g.$include(E(H,"Enumerable"));b.defs(g,"$new",M=function(a,c,e){var f=M.$$p,d=f||l,n,p;var g=l;f&&(M.$$p=null);f&&(M.$$p=null);var h=b.slice.call(arguments,1,arguments.length);g=b.extract_kwargs(h);if(null==g)g=q([],{});else if(!g.$$is_hash)throw b.ArgumentError.$new("expected kwargs");f=g.$$smap.keyword_init;null==f&&(f=!1);if(O(a))try{a=E(H,"Opal")["$const_name!"](a)}catch(V){if(b.rescue(V,
480
+ [E(H,"TypeError"),E(H,"NameError")]))try{h.$unshift(a),a=l}finally{b.pop_exception()}else throw V;}P(h,"map",[],(n=function(a){null==a&&(a=l);return E(H,"Opal")["$coerce_to!"](a,E(H,"String"),"to_str")},n.$$s=this,n.$$arity=1,n));g=P(E(H,"Class"),"new",[this],(p=function(){var a=p.$$s||this,c;P(h,"each",[],(c=function(a){var b=c.$$s||this;null==a&&(a=l);return b.$define_struct_attribute(a)},c.$$s=a,c.$$arity=1,c));return function(a,c){[a].concat(c);var e;b.def(a,"$new",e=function(a){var c=b.slice.call(arguments,
481
+ 0,arguments.length);var e=this.$allocate();e.$$data={};P(e,"initialize",b.to_a(c));return e},e.$$arity=-1);return a.$alias_method("[]","new")}(b.get_singleton_class(a),H)},p.$$s=this,p.$$arity=0,p));O(d)&&P(g,"module_eval",[],d.$to_proc());g.$$keyword_init=f;O(a)&&E(H,"Struct").$const_set(a,g);return g},M.$$arity=-2);b.defs(g,"$define_struct_attribute",z=function(a){var b,c;this["$=="](E(H,"Struct"))&&this.$raise(E(H,"ArgumentError"),"you cannot define attributes to the Struct class");this.$members()["$<<"](a);
482
+ P(this,"define_method",[a],(b=function(){return(b.$$s||this).$$data[a]},b.$$s=this,b.$$arity=0,b));return P(this,"define_method",[""+a+"="],(c=function(b){var e=c.$$s||this;null==b&&(b=l);return e.$$data[a]=b},c.$$s=this,c.$$arity=1,c))},z.$$arity=1);b.defs(g,"$members",F=function(){var a;null==this.members&&(this.members=l);this["$=="](E(H,"Struct"))&&this.$raise(E(H,"ArgumentError"),"the Struct class has no members");return this.members=O(a=this.members)?a:[]},F.$$arity=0);b.defs(g,"$inherited",
483
+ ja=function(a){var b,c=l;null==this.members&&(this.members=l);c=this.members;return P(a,"instance_eval",[],(b=function(){return(b.$$s||this).members=c},b.$$s=this,b.$$arity=0,b))},ja.$$arity=1);b.def(g,"$initialize",Z=function(a){var c,e,f,d=l,n=l;var p=b.slice.call(arguments,0,arguments.length);if(O(this.$class().$$keyword_init))return d=O(c=p.$last())?c:q([],{}),O(O(c=m(p.$length(),1))?c:1===p.length&&!d.$$is_hash)&&this.$raise(E(H,"ArgumentError"),"wrong number of arguments (given "+p.$length()+
484
+ ", expected 0)"),n=D(d.$keys(),this.$class().$members()),O(n["$any?"]())&&this.$raise(E(H,"ArgumentError"),"unknown keywords: "+n.$join(", ")),P(this.$class().$members(),"each",[],(e=function(a){var c=e.$$s||this;null==a&&(a=l);a=[a,d["$[]"](a)];P(c,"[]=",b.to_a(a));return a[D(a.length,1)]},e.$$s=this,e.$$arity=1,e));O(m(p.$length(),this.$class().$members().$length()))&&this.$raise(E(H,"ArgumentError"),"struct size differs");return P(this.$class().$members(),"each_with_index",[],(f=function(a,c){var e=
485
+ f.$$s||this;null==a&&(a=l);null==c&&(c=l);a=[a,p["$[]"](c)];P(e,"[]=",b.to_a(a));return a[D(a.length,1)]},f.$$s=this,f.$$arity=2,f))},Z.$$arity=-1);b.def(g,"$members",a=function(){return this.$class().$members()},a.$$arity=0);b.def(g,"$hash",d=function(){return E(H,"Hash").$new(this.$$data).$hash()},d.$$arity=0);b.def(g,"$[]",v=function(a){O(E(H,"Integer")["$==="](a))?(O(C(a,this.$class().$members().$size()["$-@"]()))&&this.$raise(E(H,"IndexError"),"offset "+a+" too small for struct(size:"+this.$class().$members().$size()+
486
+ ")"),O(u(a,this.$class().$members().$size()))&&this.$raise(E(H,"IndexError"),"offset "+a+" too large for struct(size:"+this.$class().$members().$size()+")"),a=this.$class().$members()["$[]"](a)):O(E(H,"String")["$==="](a))?this.$$data.hasOwnProperty(a)||this.$raise(E(H,"NameError").$new("no member '"+a+"' in struct",a)):this.$raise(E(H,"TypeError"),"no implicit conversion of "+a.$class()+" into Integer");a=E(H,"Opal")["$coerce_to!"](a,E(H,"String"),"to_str");return this.$$data[a]},v.$$arity=1);b.def(g,
487
+ "$[]=",B=function(a,b){O(E(H,"Integer")["$==="](a))?(O(C(a,this.$class().$members().$size()["$-@"]()))&&this.$raise(E(H,"IndexError"),"offset "+a+" too small for struct(size:"+this.$class().$members().$size()+")"),O(u(a,this.$class().$members().$size()))&&this.$raise(E(H,"IndexError"),"offset "+a+" too large for struct(size:"+this.$class().$members().$size()+")"),a=this.$class().$members()["$[]"](a)):O(E(H,"String")["$==="](a))?O(this.$class().$members()["$include?"](a.$to_sym()))||this.$raise(E(H,
488
+ "NameError").$new("no member '"+a+"' in struct",a)):this.$raise(E(H,"TypeError"),"no implicit conversion of "+a.$class()+" into Integer");a=E(H,"Opal")["$coerce_to!"](a,E(H,"String"),"to_str");return this.$$data[a]=b},B.$$arity=2);b.def(g,"$==",L=function(a){function b(a,f){var d;c[a.$__id__()]=!0;e[f.$__id__()]=!0;for(d in a.$$data){var n=a.$$data[d];var p=f.$$data[d];if(E(H,"Struct")["$==="](n)){if(!(c.hasOwnProperty(n.$__id__())&&e.hasOwnProperty(p.$__id__())||b(n,p)))return!1}else if(!n["$=="](p))return!1}return!0}
489
+ if(!O(a["$instance_of?"](this.$class())))return!1;var c={},e={};return b(this,a)},L.$$arity=1);b.def(g,"$eql?",r=function(a){function b(a,f){var d;c[a.$__id__()]=!0;e[f.$__id__()]=!0;for(d in a.$$data){var n=a.$$data[d];var p=f.$$data[d];if(E(H,"Struct")["$==="](n)){if(!(c.hasOwnProperty(n.$__id__())&&e.hasOwnProperty(p.$__id__())||b(n,p)))return!1}else if(!n["$eql?"](p))return!1}return!0}if(!O(a["$instance_of?"](this.$class())))return!1;var c={},e={};return b(this,a)},r.$$arity=1);b.def(g,"$each",
490
+ h=function(){var a,c,e=h.$$p,d=e||l;e&&(h.$$p=null);if(d===l)return P(this,"enum_for",["each"],(a=function(){return(a.$$s||this).$size()},a.$$s=this,a.$$arity=0,a));P(this.$class().$members(),"each",[],(c=function(a){var e=c.$$s||this;null==a&&(a=l);return b.yield1(d,e["$[]"](a))},c.$$s=this,c.$$arity=1,c));return this},h.$$arity=0);b.def(g,"$each_pair",c=function(){var a,e,d=c.$$p,n=d||l;d&&(c.$$p=null);if(n===l)return P(this,"enum_for",["each_pair"],(a=function(){return(a.$$s||this).$size()},a.$$s=
491
+ this,a.$$arity=0,a));P(this.$class().$members(),"each",[],(e=function(a){var c=e.$$s||this;null==a&&(a=l);return b.yield1(n,[a,c["$[]"](a)])},e.$$s=this,e.$$arity=1,e));return this},c.$$arity=0);b.def(g,"$length",A=function(){return this.$class().$members().$length()},A.$$arity=0);b.alias(g,"size","length");b.def(g,"$to_a",p=function(){var a;return P(this.$class().$members(),"map",[],(a=function(b){var c=a.$$s||this;null==b&&(b=l);return c["$[]"](b)},a.$$s=this,a.$$arity=1,a))},p.$$arity=0);b.alias(g,
492
+ "values","to_a");b.def(g,"$inspect",U=function(){var a,b,c=l;c="#<struct ";O(O(a=E(H,"Struct")["$==="](this))?this.$class().$name():a)&&(c=t(c,""+this.$class()+" "));c=t(c,P(this.$each_pair(),"map",[],(b=function(a,b){null==a&&(a=l);null==b&&(b=l);return""+a+"="+b.$inspect()},b.$$s=this,b.$$arity=2,b)).$join(", "));return c=t(c,">")},U.$$arity=0);b.alias(g,"to_s","inspect");b.def(g,"$to_h",S=function(){var a;return P(this.$class().$members(),"each_with_object",[q([],{})],(a=function(c,e){var f=a.$$s||
493
+ this;null==c&&(c=l);null==e&&(e=l);c=[c,f["$[]"](c)];P(e,"[]=",b.to_a(c));return c[D(c.length,1)]},a.$$s=this,a.$$arity=2,a))},S.$$arity=0);b.def(g,"$values_at",n=function(a){var c;var e=b.slice.call(arguments,0,arguments.length);e=P(e,"map",[],(c=function(a){null==a&&(a=l);return a.$$is_range?a.$to_a():a},c.$$s=this,c.$$arity=1,c)).$flatten();c=[];for(var f=0,d=e.length;f<d;f++)e[f].$$is_number||this.$raise(E(H,"TypeError"),"no implicit conversion of "+e[f].$class()+" into Integer"),c.push(this["$[]"](e[f]));
494
+ return c},n.$$arity=-1);return(b.def(g,"$dig",e=function(a,c){var e=b.slice.call(arguments,1,arguments.length);var f=O(a.$$is_string&&this.$$data.hasOwnProperty(a))?this.$$data[a]||l:l;if(f===l||0===e.length)return f;O(f["$respond_to?"]("dig"))||this.$raise(E(H,"TypeError"),""+f.$class()+" does not have #dig method");return P(f,"dig",b.to_a(e))},e.$$arity=-2),l)&&"dig"}(H[0],null,H)};
495
+ Opal.modules["corelib/io"]=function(b){function m(b,g){return"number"===typeof b&&"number"===typeof g?b-g:b["$-"](g)}var D=[],C=b.nil,u=b.const_get_qualified,t=b.const_get_relative,g=b.klass,H=b.module,l=b.send,E=b.gvars,x=b.truthy,q=C;b.add_stubs("$attr_accessor $size $write $join $map $String $empty? $concat $chomp $getbyte $getc $raise $new $write_proc= $- $extend".split(" "));(function(q,$super,m){q=g(q,$super,"IO");m=[q].concat(m);var k,u,D,z;q.$$prototype.tty=q.$$prototype.closed=C;b.const_set(m[0],
496
+ "SEEK_SET",0);b.const_set(m[0],"SEEK_CUR",1);b.const_set(m[0],"SEEK_END",2);b.def(q,"$tty?",k=function(){return this.tty},k.$$arity=0);b.def(q,"$closed?",u=function(){return this.closed},u.$$arity=0);q.$attr_accessor("write_proc");b.def(q,"$write",D=function(b){this.write_proc(b);return b.$size()},D.$$arity=1);q.$attr_accessor("sync","tty");b.def(q,"$flush",z=function(){return C},z.$$arity=0);(function(g,k){g=H(g,"Writable");[g].concat(k);var q,a,d;b.def(g,"$<<",q=function(a){this.$write(a);return this},
497
+ q.$$arity=1);b.def(g,"$print",a=function(a){var d;null==E[","]&&(E[","]=C);var g=b.slice.call(arguments,0,arguments.length);this.$write(l(g,"map",[],(d=function(a){var b=d.$$s||this;null==a&&(a=C);return b.$String(a)},d.$$s=this,d.$$arity=1,d)).$join(E[","]));return C},a.$$arity=-1);b.def(g,"$puts",d=function(a){var d,g=C;null==E["/"]&&(E["/"]=C);var r=b.slice.call(arguments,0,arguments.length);g=E["/"];x(r["$empty?"]())?this.$write(E["/"]):this.$write(l(r,"map",[],(d=function(a){var b=d.$$s||this;
498
+ null==a&&(a=C);return b.$String(a).$chomp()},d.$$s=this,d.$$arity=1,d)).$concat([C]).$join(g));return C},d.$$arity=-1)})(m[0],m);return function(g,k){g=H(g,"Readable");var l=[g].concat(k),a,d,v,q;b.def(g,"$readbyte",a=function(){return this.$getbyte()},a.$$arity=0);b.def(g,"$readchar",d=function(){return this.$getc()},d.$$arity=0);b.def(g,"$readline",v=function(a){null==E["/"]&&(E["/"]=C);return this.$raise(t(l,"NotImplementedError"))},v.$$arity=-1);b.def(g,"$readpartial",q=function(a,b){return this.$raise(t(l,
499
+ "NotImplementedError"))},q.$$arity=-2)}(m[0],m)})(D[0],null,D);b.const_set(D[0],"STDERR",E.stderr=t(D,"IO").$new());b.const_set(D[0],"STDIN",E.stdin=t(D,"IO").$new());b.const_set(D[0],"STDOUT",E.stdout=t(D,"IO").$new());var O=b.global.console;q=["object"===typeof process&&"object"===typeof process.stdout?function(b){process.stdout.write(b)}:function(b){O.log(b)}];l(t(D,"STDOUT"),"write_proc=",b.to_a(q));q[m(q.length,1)];q=["object"===typeof process&&"object"===typeof process.stderr?function(b){process.stderr.write(b)}:
500
+ function(b){O.warn(b)}];l(t(D,"STDERR"),"write_proc=",b.to_a(q));q[m(q.length,1)];t(D,"STDOUT").$extend(u(t(D,"IO"),"Writable"));return t(D,"STDERR").$extend(u(t(D,"IO"),"Writable"))};Opal.modules["corelib/main"]=function(b){var m,D,C=b.top,u=[],t=b.nil,g=b.const_get_relative;b.add_stubs(["$include"]);b.defs(C,"$to_s",m=function(){return"main"},m.$$arity=0);return(b.defs(C,"$include",D=function(b){return g(u,"Object").$include(b)},D.$$arity=1),t)&&"include"};
501
+ Opal.modules["corelib/dir"]=function(b){var m=[],D=b.nil,C=b.const_get_relative,u=b.klass,t=b.truthy;b.add_stubs(["$[]"]);return function(g,$super,l){g=u(g,$super,"Dir");l=[g].concat(l);return function(g,l){var q=[g].concat(l),m,u,x;b.def(g,"$chdir",m=function(g){var k=m.$$p,l=k||D,q=D;k&&(m.$$p=null);a:{try{q=b.current_dir;b.current_dir=g;var t=b.yieldX(l,[]);break a}finally{b.current_dir=q}t=void 0}return t},m.$$arity=1);b.def(g,"$pwd",u=function(){return b.current_dir||"."},u.$$arity=0);b.alias(g,
502
+ "getwd","pwd");return(b.def(g,"$home",x=function(){var b;return t(b=C(q,"ENV")["$[]"]("HOME"))?b:"."},x.$$arity=0),D)&&"home"}(b.get_singleton_class(g),l)}(m[0],null,m)};
503
+ Opal.modules["corelib/file"]=function(b){function m(b,g){return"number"===typeof b&&"number"===typeof g?b+g:b["$+"](g)}function D(b,g){return"number"===typeof b&&"number"===typeof g?b-g:b["$-"](g)}var C=[],u=b.nil,t=b.const_get_relative,g=b.klass,H=b.truthy,l=b.range,E=b.send;b.add_stubs("$respond_to? $to_path $pwd $split $sub $+ $unshift $join $home $raise $start_with? $absolute_path $coerce_to! $basename $empty? $rindex $[] $nil? $== $- $length $gsub $find $=~ $map $each_with_index $flatten $reject $to_proc $end_with?".split(" "));return function(x,
504
+ $super,C){x=g(x,$super,"File");C=[x].concat(C);var P=u;b.const_set(C[0],"Separator",b.const_set(C[0],"SEPARATOR","/"));b.const_set(C[0],"ALT_SEPARATOR",u);b.const_set(C[0],"PATH_SEPARATOR",":");b.const_set(C[0],"FNM_SYSCASE",0);P=/^[a-zA-Z]:(?:\\|\/)/;return function(g,x){function k(a){H(a["$respond_to?"]("to_path"))&&(a=a.$to_path());return a=t(G,"Opal")["$coerce_to!"](a,t(G,"String"),"to_str")}function C(){return t(G,"ALT_SEPARATOR")===u?b.escape_regexp(t(G,"SEPARATOR")):b.escape_regexp(m(t(G,"SEPARATOR"),
505
+ t(G,"ALT_SEPARATOR")))}var G=[g].concat(x),z,F,M,O,a,d,v,B,L;b.def(g,"$absolute_path",z=function(a,b){var c;null==b&&(b=u);var d=t(G,"SEPARATOR");var p=C();var g=[];a=H(a["$respond_to?"]("to_path"))?a.$to_path():a;b=H(c=b)?c:t(G,"Dir").$pwd();c=a.substr(0,d.length)===d||P.test(a);var h=b.substr(0,d.length)===d||P.test(b);H(c)?(c=a.$split(new RegExp("["+p+"]")),a=P.test(a)?"":a.$sub(new RegExp("^(["+p+"]+).*$"),"\\1"),b=!0):(c=m(b.$split(new RegExp("["+p+"]")),a.$split(new RegExp("["+p+"]"))),a=P.test(b)?
506
+ "":b.$sub(new RegExp("^(["+p+"]+).*$"),"\\1"),b=h);h=0;for(var n=c.length;h<n;h++)p=c[h],p===u||""===p&&(0===g.length||b)||"."===p&&(0===g.length||b)||(".."===p?g.pop():g.push(p));b||"."===c[0]||g.$unshift(".");d=g.$join(d);H(b)&&(d=m(a,d));return d},z.$$arity=-2);b.def(g,"$expand_path",F=function(a,b){null==b&&(b=u);var c=t(G,"SEPARATOR");var d=C();if(H("~"===a[0]||b&&"~"===b[0])){var p=t(G,"Dir").$home();H(p)||this.$raise(t(G,"ArgumentError"),"couldn't find HOME environment -- expanding `~'");d=
507
+ P.test(p)?"":p.$sub(new RegExp("^(["+d+"]+).*$"),"\\1");H(p["$start_with?"](d))||this.$raise(t(G,"ArgumentError"),"non-absolute home");p=m(p,c);c=new RegExp("^\\~(?:"+c+"|$)");a=a.$sub(c,p);H(b)&&(b=b.$sub(c,p))}return this.$absolute_path(a,b)},F.$$arity=-2);b.alias(g,"realpath","expand_path");b.def(g,"$dirname",M=function(a){var b=C();a=k(a);var c=a.match(new RegExp("^["+b+"]"));a=a.replace(new RegExp("["+b+"]+$"),"");a=a.replace(new RegExp("[^"+b+"]+$"),"");a=a.replace(new RegExp("["+b+"]+$"),"");
508
+ return""===a?c?"/":".":a},M.$$arity=1);b.def(g,"$basename",O=function(a,d){null==d&&(d=u);var c=C();a=k(a);if(0==a.length)return a;d=d!==u?t(G,"Opal")["$coerce_to!"](d,t(G,"String"),"to_str"):null;a=a.replace(new RegExp("(.)["+c+"]*$"),"$1");a=a.replace(new RegExp("^(?:.*["+c+"])?([^"+c+"]+)$"),"$1");".*"===d?a=a.replace(/\.[^\.]+$/,""):null!==d&&(d=b.escape_regexp(d),a=a.replace(new RegExp(""+d+"$"),""));return a},O.$$arity=-2);b.def(g,"$extname",a=function(a){var d;a=k(a);a=this.$basename(a);if(H(a["$empty?"]()))return"";
509
+ var c=a["$[]"](l(1,-1,!1)).$rindex(".");return H(H(d=c["$nil?"]())?d:m(c,1)["$=="](D(a.$length(),1)))?"":a["$[]"](b.Range.$new(m(c,1),-1,!1))},a.$$arity=1);b.def(g,"$exist?",d=function(a){return null!=b.modules[a]},d.$$arity=1);b.alias(g,"exists?","exist?");b.def(g,"$directory?",v=function(a){var d,c=u;c=u;c=[];for(var g in b.modules)c.push(g);a=a.$gsub(new RegExp("(^."+t(G,"SEPARATOR")+"+|"+t(G,"SEPARATOR")+"+$)"));return c=E(c,"find",[],(d=function(b){null==b&&(b=u);return b["$=~"](new RegExp("^"+
510
+ a))},d.$$s=this,d.$$arity=1,d))},v.$$arity=1);b.def(g,"$join",B=function(a){var d,c,g=u;var p=b.slice.call(arguments,0,arguments.length);if(H(p["$empty?"]()))return"";g="";p=E(p.$flatten().$each_with_index(),"map",[],(d=function(a,b){null==a&&(a=u);null==b&&(b=u);return H(b["$=="](0)?a["$empty?"]():b["$=="](0))?t(G,"SEPARATOR"):H(p.$length()["$=="](m(b,1))?a["$empty?"]():p.$length()["$=="](m(b,1)))?t(G,"SEPARATOR"):a},d.$$s=this,d.$$arity=2,d));p=E(p,"reject",[],"empty?".$to_proc());E(p,"each_with_index",
511
+ [],(c=function(a,b){var c;null==a&&(a=u);null==b&&(b=u);b=p["$[]"](m(b,1));if(H(b["$nil?"]()))return g=""+g+a;H(H(c=a["$end_with?"](t(G,"SEPARATOR")))?b["$start_with?"](t(G,"SEPARATOR")):c)&&(a=a.$sub(new RegExp(""+t(G,"SEPARATOR")+"+$"),""));return g=H(H(c=a["$end_with?"](t(G,"SEPARATOR")))?c:b["$start_with?"](t(G,"SEPARATOR")))?""+g+a:""+g+a+t(G,"SEPARATOR")},c.$$s=this,c.$$arity=2,c));return g},B.$$arity=-1);return(b.def(g,"$split",L=function(a){return a.$split(t(G,"SEPARATOR"))},L.$$arity=1),
512
+ u)&&"split"}(b.get_singleton_class(x),C)}(C[0],t(C,"IO"),C)};
513
+ Opal.modules["corelib/process"]=function(b){var m=[],D=b.nil,C=b.const_get_qualified,u=b.const_get_relative,t=b.klass,g=b.truthy;b.add_stubs("$const_set $size $<< $__register_clock__ $to_f $now $new $[] $raise".split(" "));(function(m,$super,E){m=t(m,$super,"Process");var x=[m].concat(E),q,H,P,M;E=D;m.__clocks__=[];b.defs(m,"$__register_clock__",q=function(b,g){null==this.__clocks__&&(this.__clocks__=D);this.$const_set(b,this.__clocks__.$size());return this.__clocks__["$<<"](g)},q.$$arity=2);m.$__register_clock__("CLOCK_REALTIME",
514
+ function(){return Date.now()});E=!1;if(b.global.performance)E=function(){return performance.now()};else if(b.global.process&&process.hrtime){var G=process.hrtime();E=function(){var b=process.hrtime(G);return 1E3*b[0]+(b[1]/1E3|0)/1E3}}g(E)&&m.$__register_clock__("CLOCK_MONOTONIC",E);b.defs(m,"$pid",H=function(){return 0},H.$$arity=0);b.defs(m,"$times",P=function(){var b=u(x,"Time").$now().$to_f();return C(u(x,"Benchmark"),"Tms").$new(b,b,b,b,b)},P.$$arity=0);return(b.defs(m,"$clock_gettime",M=function(b,
515
+ q){var k,t;null==this.__clocks__&&(this.__clocks__=D);null==q&&(q="float_second");g(k=t=this.__clocks__["$[]"](b))?k:this.$raise(C(u(x,"Errno"),"EINVAL"),"clock_gettime("+b+") "+this.__clocks__["$[]"](b));b=t();switch(q){case "float_second":return b/1E3;case "float_millisecond":return b/1;case "float_microsecond":return 1E3*b;case "second":return b/1E3|0;case "millisecond":return b/1|0;case "microsecond":return 1E3*b|0;case "nanosecond":return 1E6*b|0;default:this.$raise(u(x,"ArgumentError"),"unexpected unit: "+
516
+ q)}},M.$$arity=-2),D)&&"clock_gettime"})(m[0],null,m);(function(g,$super,m){g=t(g,$super,"Signal");[g].concat(m);var u;return(b.defs(g,"$trap",u=function(g){b.slice.call(arguments,0,arguments.length);return D},u.$$arity=-1),D)&&"trap"})(m[0],null,m);return function(g,$super,m){g=t(g,$super,"GC");[g].concat(m);var u;return(b.defs(g,"$start",u=function(){return D},u.$$arity=0),D)&&"start"}(m[0],null,m)};
517
+ Opal.modules["corelib/unsupported"]=function(b){function m(g){switch(b.config.unsupported_features_severity){case "error":H(t,"Kernel").$raise(H(t,"NotImplementedError"),g);break;case "warning":x[g]||(x[g]=!0,u.$warn(g))}}var D,C,u=b.top,t=[],g=b.nil,H=b.const_get_relative,l=b.klass,E=b.module;b.add_stubs(["$raise","$warn","$%"]);var x={};(function(q,$super,t){q=l(q,$super,"String");var m=[q].concat(t),u,k,x,D,z,C,E,P,a,d,v,B,L,r,h,c,A,p,U,S,n,e,f;b.def(q,"$<<",u=function(a){b.slice.call(arguments,
518
+ 0,arguments.length);return this.$raise(H(m,"NotImplementedError"),"String#%s not supported. Mutable String methods are not supported in Opal."["$%"]("<<"))},u.$$arity=-1);b.def(q,"$capitalize!",k=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise(H(m,"NotImplementedError"),"String#%s not supported. Mutable String methods are not supported in Opal."["$%"]("capitalize!"))},k.$$arity=-1);b.def(q,"$chomp!",x=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise(H(m,
519
+ "NotImplementedError"),"String#%s not supported. Mutable String methods are not supported in Opal."["$%"]("chomp!"))},x.$$arity=-1);b.def(q,"$chop!",D=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise(H(m,"NotImplementedError"),"String#%s not supported. Mutable String methods are not supported in Opal."["$%"]("chop!"))},D.$$arity=-1);b.def(q,"$downcase!",z=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise(H(m,"NotImplementedError"),"String#%s not supported. Mutable String methods are not supported in Opal."["$%"]("downcase!"))},
520
+ z.$$arity=-1);b.def(q,"$gsub!",C=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise(H(m,"NotImplementedError"),"String#%s not supported. Mutable String methods are not supported in Opal."["$%"]("gsub!"))},C.$$arity=-1);b.def(q,"$lstrip!",E=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise(H(m,"NotImplementedError"),"String#%s not supported. Mutable String methods are not supported in Opal."["$%"]("lstrip!"))},E.$$arity=-1);b.def(q,"$next!",P=function(a){b.slice.call(arguments,
521
+ 0,arguments.length);return this.$raise(H(m,"NotImplementedError"),"String#%s not supported. Mutable String methods are not supported in Opal."["$%"]("next!"))},P.$$arity=-1);b.def(q,"$reverse!",a=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise(H(m,"NotImplementedError"),"String#%s not supported. Mutable String methods are not supported in Opal."["$%"]("reverse!"))},a.$$arity=-1);b.def(q,"$slice!",d=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise(H(m,
522
+ "NotImplementedError"),"String#%s not supported. Mutable String methods are not supported in Opal."["$%"]("slice!"))},d.$$arity=-1);b.def(q,"$squeeze!",v=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise(H(m,"NotImplementedError"),"String#%s not supported. Mutable String methods are not supported in Opal."["$%"]("squeeze!"))},v.$$arity=-1);b.def(q,"$strip!",B=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise(H(m,"NotImplementedError"),"String#%s not supported. Mutable String methods are not supported in Opal."["$%"]("strip!"))},
523
+ B.$$arity=-1);b.def(q,"$sub!",L=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise(H(m,"NotImplementedError"),"String#%s not supported. Mutable String methods are not supported in Opal."["$%"]("sub!"))},L.$$arity=-1);b.def(q,"$succ!",r=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise(H(m,"NotImplementedError"),"String#%s not supported. Mutable String methods are not supported in Opal."["$%"]("succ!"))},r.$$arity=-1);b.def(q,"$swapcase!",h=function(a){b.slice.call(arguments,
524
+ 0,arguments.length);return this.$raise(H(m,"NotImplementedError"),"String#%s not supported. Mutable String methods are not supported in Opal."["$%"]("swapcase!"))},h.$$arity=-1);b.def(q,"$tr!",c=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise(H(m,"NotImplementedError"),"String#%s not supported. Mutable String methods are not supported in Opal."["$%"]("tr!"))},c.$$arity=-1);b.def(q,"$tr_s!",A=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise(H(m,"NotImplementedError"),
525
+ "String#%s not supported. Mutable String methods are not supported in Opal."["$%"]("tr_s!"))},A.$$arity=-1);b.def(q,"$upcase!",p=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise(H(m,"NotImplementedError"),"String#%s not supported. Mutable String methods are not supported in Opal."["$%"]("upcase!"))},p.$$arity=-1);b.def(q,"$prepend",U=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise(H(m,"NotImplementedError"),"String#%s not supported. Mutable String methods are not supported in Opal."["$%"]("prepend"))},
526
+ U.$$arity=-1);b.def(q,"$[]=",S=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise(H(m,"NotImplementedError"),"String#%s not supported. Mutable String methods are not supported in Opal."["$%"]("[]="))},S.$$arity=-1);b.def(q,"$clear",n=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise(H(m,"NotImplementedError"),"String#%s not supported. Mutable String methods are not supported in Opal."["$%"]("clear"))},n.$$arity=-1);b.def(q,"$encode!",e=function(a){b.slice.call(arguments,
527
+ 0,arguments.length);return this.$raise(H(m,"NotImplementedError"),"String#%s not supported. Mutable String methods are not supported in Opal."["$%"]("encode!"))},e.$$arity=-1);return(b.def(q,"$unicode_normalize!",f=function(a){b.slice.call(arguments,0,arguments.length);return this.$raise(H(m,"NotImplementedError"),"String#%s not supported. Mutable String methods are not supported in Opal."["$%"]("unicode_normalize!"))},f.$$arity=-1),g)&&"unicode_normalize!"})(t[0],null,t);(function(g,l){g=E(g,"Kernel");
528
+ [g].concat(l);var q,t;b.def(g,"$freeze",q=function(){m("Object freezing is not supported by Opal");return this},q.$$arity=0);b.def(g,"$frozen?",t=function(){m("Object freezing is not supported by Opal");return!1},t.$$arity=0)})(t[0],t);(function(g,l){g=E(g,"Kernel");[g].concat(l);var q,t,u;b.def(g,"$taint",q=function(){m("Object tainting is not supported by Opal");return this},q.$$arity=0);b.def(g,"$untaint",t=function(){m("Object tainting is not supported by Opal");return this},t.$$arity=0);b.def(g,
529
+ "$tainted?",u=function(){m("Object tainting is not supported by Opal");return!1},u.$$arity=0)})(t[0],t);(function(q,$super,t){q=l(q,$super,"Module");[q].concat(t);var m,u,k,x;b.def(q,"$public",m=function(k){0===b.slice.call(arguments,0,arguments.length).length&&(this.$$module_function=!1);return g},m.$$arity=-1);b.alias(q,"private","public");b.alias(q,"protected","public");b.alias(q,"nesting","public");b.def(q,"$private_class_method",u=function(g){b.slice.call(arguments,0,arguments.length);return this},
530
+ u.$$arity=-1);b.alias(q,"public_class_method","private_class_method");b.def(q,"$private_method_defined?",k=function(b){return!1},k.$$arity=1);b.def(q,"$private_constant",x=function(k){b.slice.call(arguments,0,arguments.length);return g},x.$$arity=-1);b.alias(q,"protected_method_defined?","private_method_defined?");b.alias(q,"public_instance_methods","instance_methods");b.alias(q,"public_instance_method","instance_method");return b.alias(q,"public_method_defined?","method_defined?")})(t[0],null,t);
531
+ (function(g,l){g=E(g,"Kernel");[g].concat(l);var q;b.def(g,"$private_methods",q=function(g){b.slice.call(arguments,0,arguments.length);return[]},q.$$arity=-1);b.alias(g,"private_instance_methods","private_methods")})(t[0],t);(function(g,l){g=E(g,"Kernel");var q=[g].concat(l),t;b.def(g,"$eval",t=function(g){b.slice.call(arguments,0,arguments.length);return this.$raise(H(q,"NotImplementedError"),"To use Kernel#eval, you must first require 'opal-parser'. "+("See https://github.com/opal/opal/blob/"+H(q,
532
+ "RUBY_ENGINE_VERSION")+"/docs/opal_parser.md for details."))},t.$$arity=-1)})(t[0],t);b.defs(u,"$public",D=function(l){b.slice.call(arguments,0,arguments.length);return g},D.$$arity=-1);return(b.defs(u,"$private",C=function(l){b.slice.call(arguments,0,arguments.length);return g},C.$$arity=-1),g)&&"private"};
533
+ (function(b){var m=b.top;b.add_stubs(["$require"]);m.$require("opal/base");m.$require("opal/mini");m.$require("corelib/string/encoding");m.$require("corelib/struct");m.$require("corelib/io");m.$require("corelib/main");m.$require("corelib/dir");m.$require("corelib/file");m.$require("corelib/process");return m.$require("corelib/unsupported")})(Opal);
534
+ (function(b,m){"object"===typeof module&&module.exports?module.exports=m:"function"===typeof define&&define.amd?define("asciidoctor",["module"],function(b){return m(b.config())}):b.Asciidoctor=m})(this,function(b){function m(a,b,v,k,l){var d=Opal.klass(Opal.Object,a,b,function(){}),h,c,A,p={},B;for(B in v)Object.prototype.hasOwnProperty.call(v,B)&&function(a){var b=v[a];"postConstruct"===a?h=b:"initialize"===a?c=b:"constructor"===a?A=b:(k&&Object.prototype.hasOwnProperty.call(k,a)&&(p[a]=!0),Opal.def(d,
535
+ "$"+a,function(){var c=l&&Object.prototype.hasOwnProperty.call(l,a)?l[a](arguments):arguments;return b.apply(this,c)}))}(B);var S="function"===typeof A?function(){for(var a=Array.from(arguments),b=0;b<a.length;b++)"object"===typeof a[b]&&"$$smap"in a[b]&&(a[b]=g(a[b]));a.unshift(null);a=new (Function.prototype.bind.apply(A,a));Object.assign(this,a);"function"===typeof h&&h.bind(this)()}:"function"===typeof c?function(){for(var a=Array.from(arguments),b=0;b<a.length;b++)"object"===typeof a[b]&&"$$smap"in
536
+ a[b]&&(a[b]=g(a[b]));c.apply(this,a);"function"===typeof h&&h.bind(this)()}:function(){Opal.send(this,Opal.find_super_dispatcher(this,"initialize",S));"function"===typeof h&&h.bind(this)()};Opal.def(d,"$initialize",S);Opal.def(d,"super",function(a){if("function"===typeof a)Opal.send(this,Opal.find_super_dispatcher(this,a.name,a));else{for(var b=Array.from(arguments),c=0;c<b.length;c++)"object"===typeof b[c]&&(b[c]=t(b[c]));Opal.send(this,Opal.find_super_dispatcher(this,"initialize",S),b)}});if(k)for(var n in k)Object.prototype.hasOwnProperty.call(k,
537
+ n)&&!Object.prototype.hasOwnProperty.call(p,n)&&function(a){var b=k[a];Opal.def(d,"$"+a,function(){return b.apply(this,arguments)})}(n);return d}function D(a,b){var d=Opal.const_get_qualified(Opal.Logger,"Formatter");return m(d,a,b,{},{call:function(a){for(var b=0;b<a.length;b++)"object"===typeof a[b]&&"$$smap"in a[b]&&(a[b]=g(a[b]));return a}})}function C(a,b){var d=Opal.const_get_qualified(Opal.Asciidoctor,"Logger");return m(d,a,b,{},{add:function(a){if(2<=a.length&&"object"===typeof a[2]&&"$$smap"in
538
+ a[2]){var b=g(a[2]);b.getText=function(){return this.text};b.getSourceLocation=function(){return this.source_location};b.$inspect=function(){var a=this.getSourceLocation();return a?a.getPath()+": line "+a.getLineNumber()+": "+this.getText():this.getText()};a[2]=b}1<=a.length&&(a[1]=a[1]===Opal.nil?void 0:a[1]);return a}})}function u(a,b,g){a=Opal.const_get_qualified(z,a);return m(a,b,g,{"handles?":function(){return!0}})}Opal.modules["asciidoctor/js/opal_ext/browser/file"]=function(a){var b=[],g=a.nil,
539
+ k=a.const_get_relative,l=a.klass;a.add_stubs(["$new"]);return function(b,$super,c){b=l(b,$super,"File");var d=[b].concat(c),p;return(a.defs(b,"$read",p=function(a){var b="",c=-1;try{var e=new XMLHttpRequest;e.open("GET",a,!1);e.addEventListener("load",function(){c=this.status;if(0===c||200===c)b=this.responseText});e.overrideMimeType("text/plain");e.send()}catch(f){throw k(d,"IOError").$new("Error reading file or directory: "+a+"; reason: "+f.message);}if(404===c||0===c&&!b)throw k(d,"IOError").$new("No such file or directory: "+
540
+ a);return b},p.$$arity=1),g)&&"read"}(b[0],null,b)};Opal.modules["asciidoctor/js/opal_ext/browser"]=function(a){var d=a.top,g=[];a.add_stubs(["$require"]);if("object"===typeof b&&"object"===typeof b.runtime){var k=b.runtime;var l=k.platform;var r=k.engine;var h=k.framework;k=k.ioModule}l=l||"browser";r=r||"";h=h||"";a.const_set(g[0],"JAVASCRIPT_IO_MODULE",k||"xmlhttprequest");a.const_set(g[0],"JAVASCRIPT_PLATFORM",l);a.const_set(g[0],"JAVASCRIPT_ENGINE",r);a.const_set(g[0],"JAVASCRIPT_FRAMEWORK",
541
+ h);return d.$require("asciidoctor/js/opal_ext/browser/file")};Opal.modules["asciidoctor/js/asciidoctor_ext/browser/abstract_node"]=function(a){var b=[],g=a.nil,k=a.const_get_qualified,l=a.const_get_relative,r=a.module,h=a.klass,c=a.hash2,A=a.truthy;a.add_stubs("$uriish? $[] $web_path $path_resolver $descends_from? $base_dir $start_with? $attr? $join $prepare_source_string $read $fetch $warn $logger $normalize_system_path $read_asset".split(" "));return function(b,d){b=[r(b,"Asciidoctor")].concat(d);
542
+ (function(b,$super,e){b=h(b,$super,"AbstractNode");var f=[b].concat(e),d,p;b.$$prototype.document=g;a.def(b,"$read_contents",d=function(b,e){var d,p,h,r=g;null==e&&(e=c([],{}));var v=this.document;if(A(A(d=l(f,"Helpers")["$uriish?"](b))?d:A(p=A(h=r=e["$[]"]("start"))?l(f,"Helpers")["$uriish?"](r):h)?b=v.$path_resolver().$web_path(b,r):p))if(A(A(d=A(p=v.$path_resolver()["$descends_from?"](b,v.$base_dir()))?p:b["$start_with?"]("chrome://"))?d:v["$attr?"]("allow-uri-read")))try{return A(e["$[]"]("normalize"))?
543
+ l(f,"Helpers").$prepare_source_string(k("::","File").$read(b)).$join(l(f,"LF")):k("::","File").$read(b)}catch(Ha){if(a.rescue(Ha,[l(f,"StandardError")]))try{return A(e.$fetch("warn_on_failure",!0))&&this.$logger().$warn("could not retrieve contents of "+(A(d=e["$[]"]("label"))?d:"asset")+" at URI: "+b),g}finally{a.pop_exception()}else throw Ha;}else return A(e.$fetch("warn_on_failure",!0))&&this.$logger().$warn("cannot retrieve contents of "+(A(d=e["$[]"]("label"))?d:"asset")+" at URI: "+b+" (allow-uri-read attribute not enabled)"),
544
+ g;else return b=this.$normalize_system_path(b,e["$[]"]("start"),g,c(["target_name"],{target_name:A(d=e["$[]"]("label"))?d:"asset"})),this.$read_asset(b,c(["normalize","warn_on_failure","label"],{normalize:e["$[]"]("normalize"),warn_on_failure:e.$fetch("warn_on_failure",!0),label:e["$[]"]("label")}))},d.$$arity=-2);return(a.def(b,"$generate_data_uri_from_uri",p=function(a,b){null==b&&(b=!1);var c="",e="",f=-1;try{var d=new XMLHttpRequest;d.open("GET",a,!1);d.overrideMimeType("text/plain; charset=x-user-defined");
545
+ d.addEventListener("load",function(){f=this.status;if(0===f||200===f){for(var a="",b=this.responseText,d=0,p=b.length;d<p;++d){var g=b.charCodeAt(d)&255;a+=String.fromCharCode(g)}e=btoa(a);c=this.getResponseHeader("content-type")}});d.send(null);if(!c)if(a.endsWith(".jpeg")||a.endsWith(".jpg")||a.endsWith(".jpe"))c="image/jpg";else if(a.endsWith(".png"))c="image/png";else if(a.endsWith(".svg"))c="image/svg+xml";else if(a.endsWith(".bmp"))c="image/bmp";else if(a.endsWith(".tif")||a.endsWith(".tiff"))c=
546
+ "image/tiff"}catch(V){f=0}return 404!==f&&(0!==f||e&&c)?"data:"+c+";base64,"+e:(this.$logger().$warn("could not retrieve image data from URI: "+a),a)},p.$$arity=-2),g)&&"generate_data_uri_from_uri"})(b[0],null,b)}(b[0],b)};Opal.modules["asciidoctor/js/asciidoctor_ext/browser/open_uri"]=function(a){var b=[],g=a.nil,k=a.const_get_relative,l=a.module,r=a.send;a.add_stubs(["$new","$path"]);return function(b,c){var d=[l(b,"OpenURI")].concat(c),p;a.defs(k(d,"OpenURI"),"$open_uri",p=function(b,c){var n,
547
+ e=(n=p.$$p)||g;n&&(p.$$p=null);n=a.slice.call(arguments,1,arguments.length);n=r(k(d,"File"),"new",[this.$path()].concat(a.to_a(n)));return e!==g?a.yield1(e,n):n},p.$$arity=-2)}(b[0],b)};Opal.modules["asciidoctor/js/asciidoctor_ext/browser/path_resolver"]=function(a){var b=[],g=a.nil,k=a.module,l=a.klass,r=a.truthy;a.add_stubs(["$absolute_path?","$start_with?"]);return function(b,c){b=[k(b,"Asciidoctor")].concat(c);(function(b,$super,c){b=l(b,$super,"PathResolver");[b].concat(c);var d;return(a.def(b,
548
+ "$root?",d=function(a){var b;return r(b=this["$absolute_path?"](a))?b:a["$start_with?"]("file://","http://","https://","chrome://")},d.$$arity=1),g)&&"root?"})(b[0],null,b)}(b[0],b)};Opal.modules["asciidoctor/js/asciidoctor_ext/browser/reader"]=function(a){var b=[],g=a.nil,k=a.const_get_relative,l=a.module,r=a.klass,h=a.truthy;a.add_stubs("$posixify $new $base_dir $start_with? $uriish? $descends_from? $key? $attributes $replace_next_line $absolute_path? $== $empty? $! $slice $length".split(" "));
549
+ return function(b,d){b=[l(b,"Asciidoctor")].concat(d);(function(b,$super,c){b=r(b,$super,"PreprocessorReader");var d=[b].concat(c),e;b.$$prototype.path_resolver=b.$$prototype.document=b.$$prototype.include_stack=b.$$prototype.dir=g;return(a.def(b,"$resolve_include_path",e=function(a,b,c){var e,f,n;c=g;var p=(this.path_resolver=h(e=this.path_resolver)?e:k(d,"PathResolver").$new("\\")).$posixify(a);e=["file",this.document.$base_dir()];var r=e[1];e;if(h(p["$start_with?"]("file://")))a=b=p;else if(h(k(d,
550
+ "Helpers")["$uriish?"](p))){if(!h(h(e=this.path_resolver["$descends_from?"](p,r))?e:this.document.$attributes()["$key?"]("allow-uri-read")))return this.$replace_next_line("link:"+a+"["+b+"]");a=b=p}else if(h(this.path_resolver["$absolute_path?"](p)))a=b="file://"+(h(p["$start_with?"]("/"))?"":"/")+p;else if((f=h(n=this.include_stack["$empty?"]())?r:this.dir)["$=="]("."))a=b=p;else if(h(h(e=f["$start_with?"]("file://"))?e:k(d,"Helpers")["$uriish?"](f)["$!"]()))a=""+f+"/"+p,b=h(n)?p:h(h(e=r["$=="]("."))?
551
+ e:(c=this.path_resolver["$descends_from?"](a,r))["$!"]())?a:a.$slice(c,a.$length());else if(h(n))a=""+f+"/"+(b=p);else if(h(h(e=c=this.path_resolver["$descends_from?"](f,r))?e:this.document.$attributes()["$key?"]("allow-uri-read")))a=""+f+"/"+p,b=h(c)?a.$slice(c,a.$length()):p;else return this.$replace_next_line("link:"+a+"["+b+"]");return[a,"file",b]},e.$$arity=3),g)&&"resolve_include_path"})(b[0],k(b,"Reader"),b)}(b[0],b)};Opal.modules["asciidoctor/js/asciidoctor_ext/browser"]=function(a){var b=
552
+ a.top,g=a.nil,k=a.const_get_relative;a.add_stubs(["$==","$require"]);return k([],"JAVASCRIPT_IO_MODULE")["$=="]("xmlhttprequest")?(b.$require("asciidoctor/js/asciidoctor_ext/browser/abstract_node"),b.$require("asciidoctor/js/asciidoctor_ext/browser/open_uri"),b.$require("asciidoctor/js/asciidoctor_ext/browser/path_resolver"),b.$require("asciidoctor/js/asciidoctor_ext/browser/reader")):g};Opal.modules.set=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}function g(a,
553
+ b){return"number"===typeof a&&"number"===typeof b?a<b:a["$<"](b)}function k(a,b){return"number"===typeof a&&"number"===typeof b?a<=b:a["$<="](b)}var l=[],r=a.nil,h=a.const_get_relative,c=a.klass,A=a.hash2,p=a.truthy,q=a.send,S=a.module;a.add_stubs("$include $new $nil? $=== $raise $each $add $merge $class $respond_to? $subtract $dup $join $to_a $equal? $instance_of? $== $instance_variable_get $is_a? $size $all? $include? $[]= $- $enum_for $[] $<< $replace $delete $select $each_key $to_proc $empty? $eql? $instance_eval $clear $< $<= $keys".split(" "));
554
+ (function(d,$super,f){d=c(d,$super,"Set");var n=[d].concat(f),v,l,S,T,t,y,B,L,m,U,u,x,ma,D,z,C,E,xa,ya,fa,I,H,sa,G,qa,F,da,na;d.$$prototype.hash=r;d.$include(h(n,"Enumerable"));a.defs(d,"$[]",v=function(b){var c=a.slice.call(arguments,0,arguments.length);return this.$new(c)},v.$$arity=-1);a.def(d,"$initialize",l=function(b){var c=l.$$p,f=c||r,d;c&&(l.$$p=null);c&&(l.$$p=null);null==b&&(b=r);this.hash=A([],{});if(p(b["$nil?"]()))return r;p(h(n,"Enumerable")["$==="](b))||this.$raise(h(n,"ArgumentError"),
555
+ "value must be enumerable");return p(f)?q(b,"each",[],(d=function(b){var c=d.$$s||this;null==b&&(b=r);return c.$add(a.yield1(f,b))},d.$$s=this,d.$$arity=1,d)):this.$merge(b)},l.$$arity=-1);a.def(d,"$dup",S=function(){return this.$class().$new().$merge(this)},S.$$arity=0);a.def(d,"$-",T=function(a){p(a["$respond_to?"]("each"))||this.$raise(h(n,"ArgumentError"),"value must be enumerable");return this.$dup().$subtract(a)},T.$$arity=1);a.alias(d,"difference","-");a.def(d,"$inspect",t=function(){return"#<Set: {"+
556
+ this.$to_a().$join(",")+"}>"},t.$$arity=0);a.def(d,"$==",y=function(a){var b,c;return p(this["$equal?"](a))?!0:p(a["$instance_of?"](this.$class()))?this.hash["$=="](a.$instance_variable_get("@hash")):p(p(b=a["$is_a?"](h(n,"Set")))?this.$size()["$=="](a.$size()):b)?q(a,"all?",[],(c=function(a){var b=c.$$s||this;null==b.hash&&(b.hash=r);null==a&&(a=r);return b.hash["$include?"](a)},c.$$s=this,c.$$arity=1,c)):!1},y.$$arity=1);a.def(d,"$add",B=function(c){c=[c,!0];q(this.hash,"[]=",a.to_a(c));c[b(c.length,
557
+ 1)];return this},B.$$arity=1);a.alias(d,"<<","add");a.def(d,"$classify",L=function(){var c=L.$$p,f=c||r,d,g,p=r;c&&(L.$$p=null);c&&(L.$$p=null);if(f===r)return this.$enum_for("classify");p=q(h(n,"Hash"),"new",[],(d=function(c,f){var n=d.$$s||this;null==c&&(c=r);null==f&&(f=r);f=[f,n.$class().$new()];q(c,"[]=",a.to_a(f));return f[b(f.length,1)]},d.$$s=this,d.$$arity=2,d));q(this,"each",[],(g=function(b){null==b&&(b=r);return p["$[]"](a.yield1(f,b)).$add(b)},g.$$s=this,g.$$arity=1,g));return p},L.$$arity=
558
+ 0);a.def(d,"$collect!",m=function(){var b=m.$$p,c=b||r,f,d=r;b&&(m.$$p=null);b&&(m.$$p=null);if(c===r)return this.$enum_for("collect!");d=this.$class().$new();q(this,"each",[],(f=function(b){null==b&&(b=r);return d["$<<"](a.yield1(c,b))},f.$$s=this,f.$$arity=1,f));return this.$replace(d)},m.$$arity=0);a.alias(d,"map!","collect!");a.def(d,"$delete",U=function(a){this.hash.$delete(a);return this},U.$$arity=1);a.def(d,"$delete?",u=function(a){return p(this["$include?"](a))?(this.$delete(a),this):r},
559
+ u.$$arity=1);a.def(d,"$delete_if",x=function(){var b,c,f=x.$$p,d=f||r;f&&(x.$$p=null);if(d===r)return this.$enum_for("delete_if");q(q(this,"select",[],(b=function(b){null==b&&(b=r);return a.yield1(d,b)},b.$$s=this,b.$$arity=1,b)),"each",[],(c=function(a){var b=c.$$s||this;null==b.hash&&(b.hash=r);null==a&&(a=r);return b.hash.$delete(a)},c.$$s=this,c.$$arity=1,c));return this},x.$$arity=0);a.def(d,"$add?",ma=function(a){return p(this["$include?"](a))?r:this.$add(a)},ma.$$arity=1);a.def(d,"$each",D=
560
+ function(){var a=D.$$p,b=a||r;a&&(D.$$p=null);a&&(D.$$p=null);if(b===r)return this.$enum_for("each");q(this.hash,"each_key",[],b.$to_proc());return this},D.$$arity=0);a.def(d,"$empty?",z=function(){return this.hash["$empty?"]()},z.$$arity=0);a.def(d,"$eql?",C=function(a){var b;return this.hash["$eql?"](q(a,"instance_eval",[],(b=function(){var a=b.$$s||this;null==a.hash&&(a.hash=r);return a.hash},b.$$s=this,b.$$arity=0,b)))},C.$$arity=1);a.def(d,"$clear",E=function(){this.hash.$clear();return this},
561
+ E.$$arity=0);a.def(d,"$include?",xa=function(a){return this.hash["$include?"](a)},xa.$$arity=1);a.alias(d,"member?","include?");a.def(d,"$merge",ya=function(a){var b;q(a,"each",[],(b=function(a){var c=b.$$s||this;null==a&&(a=r);return c.$add(a)},b.$$s=this,b.$$arity=1,b));return this},ya.$$arity=1);a.def(d,"$replace",fa=function(a){this.$clear();this.$merge(a);return this},fa.$$arity=1);a.def(d,"$size",I=function(){return this.hash.$size()},I.$$arity=0);a.alias(d,"length","size");a.def(d,"$subtract",
562
+ H=function(a){var b;q(a,"each",[],(b=function(a){var c=b.$$s||this;null==a&&(a=r);return c.$delete(a)},b.$$s=this,b.$$arity=1,b));return this},H.$$arity=1);a.def(d,"$|",sa=function(a){p(a["$respond_to?"]("each"))||this.$raise(h(n,"ArgumentError"),"value must be enumerable");return this.$dup().$merge(a)},sa.$$arity=1);a.def(d,"$superset?",G=function(a){var b,c;p(b=a["$is_a?"](h(n,"Set")))?b:this.$raise(h(n,"ArgumentError"),"value must be a set");return p(g(this.$size(),a.$size()))?!1:q(a,"all?",[],
563
+ (c=function(a){var b=c.$$s||this;null==a&&(a=r);return b["$include?"](a)},c.$$s=this,c.$$arity=1,c))},G.$$arity=1);a.alias(d,">=","superset?");a.def(d,"$proper_superset?",qa=function(a){var b,c;p(b=a["$is_a?"](h(n,"Set")))?b:this.$raise(h(n,"ArgumentError"),"value must be a set");return p(k(this.$size(),a.$size()))?!1:q(a,"all?",[],(c=function(a){var b=c.$$s||this;null==a&&(a=r);return b["$include?"](a)},c.$$s=this,c.$$arity=1,c))},qa.$$arity=1);a.alias(d,">","proper_superset?");a.def(d,"$subset?",
564
+ F=function(a){var b,c;p(b=a["$is_a?"](h(n,"Set")))?b:this.$raise(h(n,"ArgumentError"),"value must be a set");return p(g(a.$size(),this.$size()))?!1:q(this,"all?",[],(c=function(b){null==b&&(b=r);return a["$include?"](b)},c.$$s=this,c.$$arity=1,c))},F.$$arity=1);a.alias(d,"<=","subset?");a.def(d,"$proper_subset?",da=function(a){var b,c;p(b=a["$is_a?"](h(n,"Set")))?b:this.$raise(h(n,"ArgumentError"),"value must be a set");return p(k(a.$size(),this.$size()))?!1:q(this,"all?",[],(c=function(b){null==
565
+ b&&(b=r);return a["$include?"](b)},c.$$s=this,c.$$arity=1,c))},da.$$arity=1);a.alias(d,"<","proper_subset?");a.alias(d,"+","|");a.alias(d,"union","|");return(a.def(d,"$to_a",na=function(){return this.hash.$keys()},na.$$arity=0),r)&&"to_a"})(l[0],null,l);return function(b,c){b=S(b,"Enumerable");var e=[b].concat(c),d;a.def(b,"$to_set",d=function(b,c){var f=d.$$p,n=f||r;f&&(d.$$p=null);f&&(d.$$p=null);f=a.slice.call(arguments,0,arguments.length);if(0<f.length){var g=f[0];f.splice(0,1)}null==g&&(g=h(e,
566
+ "Set"));return q(g,"new",[this].concat(a.to_a(f)),n.$to_proc())},d.$$arity=-1)}(l[0],l)};Opal.modules["asciidoctor/js/opal_ext/kernel"]=function(a){var b=[],g=a.nil,k=a.const_get_relative,l=a.module,r=a.send;a.add_stubs(["$new"]);return function(b,c){b=l(b,"Kernel");var d=[b].concat(c),p,h;a.def(b,"$open",p=function(b,c){var e,f=(e=p.$$p)||g;e&&(p.$$p=null);e=a.slice.call(arguments,1,arguments.length);e=r(k(d,"File"),"new",[b].concat(a.to_a(e)));return f!==g?a.yield1(f,e):e},p.$$arity=-2);a.def(b,
567
+ "$__dir__",h=function(){return""},h.$$arity=0)}(b[0],b)};Opal.modules["asciidoctor/js/opal_ext/file"]=function(a){var b=[],g=a.nil,k=a.const_get_relative,l=a.klass,r=a.truthy,h=a.gvars;a.add_stubs("$attr_reader $delete $gsub $read $size $to_enum $chomp $each_line $readlines $split".split(" "));(function(b,$super,d){b=l(b,$super,"File");var c=[b].concat(d),p,n,e,f;b.$$prototype.eof=b.$$prototype.path=g;b.$attr_reader("eof");b.$attr_reader("lineno");b.$attr_reader("path");a.def(b,"$initialize",p=function(a,
568
+ b){null==b&&(b="r");this.path=a;this.contents=g;this.eof=!1;this.lineno=0;b=b.$delete("b");return this.flags=b=b.$gsub(/:(.*)/,"")},p.$$arity=-2);a.def(b,"$read",n=function(){if(r(this.eof))return"";var a=k(c,"File").$read(this.path);this.eof=!0;this.lineno=a.$size();return a},n.$$arity=0);a.def(b,"$each_line",e=function(b){var f=e.$$p,d=f||g;null==h["/"]&&(h["/"]=g);f&&(e.$$p=null);f&&(e.$$p=null);null==b&&(b=h["/"]);if(r(this.eof))return d!==g?this:[].$to_enum();if(d!==g){f=k(c,"File").$read(this.path);
569
+ this.eof=!1;this.lineno=0;var n=f.$chomp();f=f.length!=n.length;n=n.split(b);for(var p=0,l=n.length;p<l;p++)this.lineno+=1,p<l-1||f?a.yield1(d,n[p]+b):a.yield1(d,n[p]);this.eof=!0;return this}return this.$read().$each_line()},e.$$arity=-1);a.def(b,"$readlines",f=function(){return k(c,"File").$readlines(this.path)},f.$$arity=0);return function(b,c){var e=[b].concat(c),f,d,n,p;a.def(b,"$readlines",f=function(a,b){null==h["/"]&&(h["/"]=g);null==b&&(b=h["/"]);return k(e,"File").$read(a).$split(b)},f.$$arity=
570
+ -2);a.def(b,"$file?",d=function(a){return!0},d.$$arity=1);a.def(b,"$readable?",n=function(a){return!0},n.$$arity=1);return(a.def(b,"$read",p=function(a){return""},p.$$arity=1),g)&&"read"}(a.get_singleton_class(b),c)})(b[0],null,b);return function(b,$super,d){b=l(b,$super,"IO");var c=[b].concat(d),p;return(a.defs(b,"$read",p=function(a){return k(c,"File").$read(a)},p.$$arity=1),g)&&"read"}(b[0],null,b)};Opal.modules["asciidoctor/js/opal_ext/match_data"]=function(a){var b=[],g=a.nil,k=a.klass,l=a.send;
571
+ a.add_stubs(["$[]=","$-"]);return function(b,$super,c){b=k(b,$super,"MatchData");[b].concat(c);var d;b.$$prototype.matches=g;return(a.def(b,"$[]=",d=function(b,c){b=[b,c];l(this.matches,"[]=",a.to_a(b));c=b.length;c="number"===typeof c?c-1:c["$-"](1);return b[c]},d.$$arity=2),g)&&"[]="}(b[0],null,b)};Opal.modules["asciidoctor/js/opal_ext/string"]=function(a){var b=[],g=a.nil,k=a.klass,l=a.truthy;a.add_stubs("$method_defined? $< $length $bytes $to_s $byteslice $== $>= $- $_original_byteslice $_original_unpack".split(" "));
572
+ return function(b,$super,c){b=k(b,$super,"String");[b].concat(c);var d,p,r;l(b["$method_defined?"]("limit_bytesize"))||a.def(b,"$limit_bytesize",d=function(a){var b=this.$bytes().$length();b="number"===typeof a&&"number"===typeof b?a<b:a["$<"](b);return l(b)?this.$byteslice(0,a).$to_s():this.$to_s()},d.$$arity=1);l(b["$method_defined?"]("limit"))||a.alias(b,"limit","limit_bytesize");a.alias(b,"_original_byteslice","byteslice");a.def(b,"$byteslice",p=function(a,b){var c;null==b&&(b=1);return l(l(c=
573
+ a["$=="](3)?"number"===typeof b&&"number"===typeof a?b>=a:b["$>="](a):a["$=="](3))?65279===this.charCodeAt():c)?this.substr(1).$byteslice(0,"number"===typeof b?b-3:b["$-"](3)):this.$_original_byteslice(a,b)},p.$$arity=-2);a.alias(b,"_original_unpack","unpack");return(a.def(b,"$unpack",r=function(a){if(a["$=="]("C3")){if(l(65279===this.charCodeAt()))return[239,187,191];a=[];for(var b=0;3>b;b++)b<this.length?a.push(this.charCodeAt(b)):a.push(g);return a}return this.$_original_unpack(a)},r.$$arity=1),
574
+ g)&&"unpack"}(b[0],null,b)};Opal.modules["asciidoctor/js/opal_ext/uri"]=function(a){var b=[],g=a.const_get_relative,k=a.module;a.add_stubs(["$extend"]);return function(b,d){b=k(b,"URI");var h=[b].concat(d),c,r;a.defs(b,"$parse",c=function(a){return a.$extend(g(h,"URI"))},c.$$arity=1);a.def(b,"$path",r=function(){return this},r.$$arity=0)}(b[0],b)};Opal.modules["asciidoctor/js/opal_ext/base64"]=function(a){var b=[],g=a.module,k=a.hash2,l=a.truthy;a.add_stubs(["$delete"]);return function(b,d){b=g(b,
575
+ "Base64");[b].concat(d);var c,h,p,r,v,n;var e=a.global.btoa||function(a){return(a instanceof Buffer?a:Buffer.from(a.toString(),"binary")).toString("base64")};var f=a.global.atob||function(a){return Buffer.from(a,"base64").toString("binary")};a.defs(b,"$decode64",c=function(a){return f(a.replace(/\r?\n/g,""))},c.$$arity=1);a.defs(b,"$encode64",h=function(a){return e(a).replace(/(.{60})/g,"$1\n").replace(/([^\n])$/g,"$1\n")},h.$$arity=1);a.defs(b,"$strict_decode64",p=function(a){return f(a)},p.$$arity=
576
+ 1);a.defs(b,"$strict_encode64",r=function(a){return e(a)},r.$$arity=1);a.defs(b,"$urlsafe_decode64",v=function(a){return f(a.replace(/\-/g,"+").replace(/_/g,"/"))},v.$$arity=1);a.defs(b,"$urlsafe_encode64",n=function(b,c){if(null==c)c=k([],{});else if(!c.$$is_hash)throw a.ArgumentError.$new("expected kwargs");c=c.$$smap.padding;null==c&&(c=!0);b=e(b).replace(/\+/g,"-").replace(/\//g,"_");l(c)||(b=b.$delete("="));return b},n.$$arity=-2)}(b[0],b)};Opal.modules["asciidoctor/js/opal_ext/number"]=function(a){var b=
577
+ [],g=a.nil,k=a.const_get_relative,l=a.klass,r=a.truthy;a.add_stubs(["$coerce_to!","$>"]);return function(b,$super,d){b=l(b,$super,"Number");var p=[b].concat(d),h;return(a.def(b,"$round",h=function(a){a=k(p,"Opal")["$coerce_to!"](a,k(p,"Integer"),"to_int");return r("number"===typeof a?0<a:a["$>"](0))?Number(this.toFixed(a)):Math.round(this)},h.$$arity=-1),g)&&"round"}(b[0],k(b,"Numeric"),b)};Opal.modules["asciidoctor/js/opal_ext"]=function(a){var b=a.top;a.add_stubs(["$require"]);b.$require("asciidoctor/js/opal_ext/kernel");
578
+ b.$require("asciidoctor/js/opal_ext/file");b.$require("asciidoctor/js/opal_ext/match_data");b.$require("asciidoctor/js/opal_ext/string");b.$require("asciidoctor/js/opal_ext/uri");b.$require("asciidoctor/js/opal_ext/base64");b.$require("asciidoctor/js/opal_ext/number");a.config.unsupported_features_severity="ignore";b.$require("asciidoctor/js/opal_ext/browser")};Opal.modules["asciidoctor/js/rx"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}var g=[],k=a.nil,
579
+ l=a.const_get_relative,r=a.module,h=a.send,c=a.gvars,A=a.truthy;a.add_stubs(["$gsub","$+","$unpack_hex_range"]);return function(d,g){d=r(d,"Asciidoctor");var p=[d].concat(g),n;a.const_set(p[0],"HEX_RANGE_RX",/([A-F0-9]{4})(?:-([A-F0-9]{4}))?/);a.defs(d,"$unpack_hex_range",n=function(a){var b;return h(a,"gsub",[l(p,"HEX_RANGE_RX")],(b=function(){var a,b;return"\\u"+((a=c["~"])===k?k:a["$[]"](1))+(A(a=(b=c["~"])===k?k:b["$[]"](2))?"-\\u"+((b=c["~"])===k?k:b["$[]"](2)):a)},b.$$s=this,b.$$arity=0,b))},
580
+ n.$$arity=1);a.const_set(p[0],"P_L",b("A-Za-z",d.$unpack_hex_range("00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D037F03860388-038A038C038E-03A103A3-03F503F7-0481048A-052F0531-055605590561-058705D0-05EA05F0-05F20620-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280840-085808A0-08B20904-0939093D09500958-09610971-09800985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10CF10CF20D05-0D0C0D0E-0D100D12-0D3A0D3D0D4E0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC-0EDF0F000F40-0F470F49-0F6C0F88-0F8C1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510C710CD10D0-10FA10FC-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA16F1-16F81700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191E1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1BBA-1BE51C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11CF51CF61D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209C21022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2CF22CF32D00-2D252D272D2D2D30-2D672D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31BA31F0-31FF3400-4DB54E00-9FCCA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A66EA67F-A69DA6A0-A6E5A717-A71FA722-A788A78B-A78EA790-A7ADA7B0A7B1A7F7-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFA9E0-A9E4A9E6-A9EFA9FA-A9FEAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA7E-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDAAE0-AAEAAAF2-AAF4AB01-AB06AB09-AB0EAB11-AB16AB20-AB26AB28-AB2EAB30-AB5AAB5C-AB5FAB64AB65ABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC")));
581
+ a.const_set(p[0],"P_Nl",d.$unpack_hex_range("16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF"));a.const_set(p[0],"P_Nd",b("0-9",d.$unpack_hex_range("0660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0DE6-0DEF0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19D91A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9A9F0-A9F9AA50-AA59ABF0-ABF9FF10-FF19")));a.const_set(p[0],
582
+ "P_Pc",d.$unpack_hex_range("005F203F20402054FE33FE34FE4D-FE4FFF3F"));a.const_set(p[0],"CC_ALPHA",""+l(p,"P_L")+l(p,"P_Nl"));a.const_set(p[0],"CG_ALPHA","["+l(p,"CC_ALPHA")+"]");a.const_set(p[0],"CC_ALNUM",""+l(p,"CC_ALPHA")+l(p,"P_Nd"));a.const_set(p[0],"CG_ALNUM","["+l(p,"CC_ALNUM")+"]");a.const_set(p[0],"CC_WORD",""+l(p,"CC_ALNUM")+l(p,"P_Pc"));a.const_set(p[0],"CG_WORD","["+l(p,"CC_WORD")+"]");a.const_set(p[0],"CG_BLANK","[ \\t]");a.const_set(p[0],"CC_EOL","(?=\\n|$)");a.const_set(p[0],"CG_GRAPH",
583
+ "[^\\s\\x00-\\x1F\\x7F]");a.const_set(p[0],"CC_ALL","[\\s\\S]");a.const_set(p[0],"CC_ANY","[^\\n]")}(g[0],g)};Opal.modules.strscan=function(a){var b=[],g=a.nil,k=a.klass,l=a.send;a.add_stubs("$attr_reader $anchor $scan_until $length $size $rest $pos= $- $private".split(" "));return function(b,$super,c){b=k(b,$super,"StringScanner");[b].concat(c);var d,p,r,v,n,e,f,q,t,B,m,T,L,y,u,V,x,la,va,D,ma,z,C,E,H;b.$$prototype.pos=b.$$prototype.string=b.$$prototype.working=b.$$prototype.matched=b.$$prototype.prev_pos=
584
+ b.$$prototype.match=g;b.$attr_reader("pos");b.$attr_reader("matched");a.def(b,"$initialize",d=function(a){this.string=a;this.pos=0;this.matched=g;this.working=a;return this.match=[]},d.$$arity=1);b.$attr_reader("string");a.def(b,"$beginning_of_line?",p=function(){return 0===this.pos||"\n"===this.string.charAt(this.pos-1)},p.$$arity=0);a.alias(b,"bol?","beginning_of_line?");a.def(b,"$scan",r=function(a){a=this.$anchor(a);a=a.exec(this.working);return null==a?this.matched=g:"object"===typeof a?(this.prev_pos=
585
+ this.pos,this.pos+=a[0].length,this.working=this.working.substring(a[0].length),this.matched=a[0],this.match=a,a[0]):"string"===typeof a?(this.pos+=a.length,this.working=this.working.substring(a.length),a):g},r.$$arity=1);a.def(b,"$scan_until",v=function(a){a=this.$anchor(a);for(var b=this.pos,c=this.working,e;;)if(e=a.exec(c),b+=1,c=c.substr(1),null==e){if(0===c.length)return this.matched=g}else return this.matched=this.string.substr(this.pos,b-this.pos-1+e[0].length),this.prev_pos=b-1,this.pos=
586
+ b,this.working=c.substr(e[0].length),this.matched},v.$$arity=1);a.def(b,"$[]",n=function(a){var b=this.match;0>a&&(a+=b.length);return 0>a||a>=b.length||null==b[a]?g:b[a]},n.$$arity=1);a.def(b,"$check",e=function(a){a=this.$anchor(a);a=a.exec(this.working);return null==a?this.matched=g:this.matched=a[0]},e.$$arity=1);a.def(b,"$check_until",f=function(a){var b=this.prev_pos,c=this.pos;a=this.$scan_until(a);a!==g&&(this.matched=a.substr(-1),this.working=this.string.substr(c));this.prev_pos=b;this.pos=
587
+ c;return a},f.$$arity=1);a.def(b,"$peek",q=function(a){return this.working.substring(0,a)},q.$$arity=1);a.def(b,"$eos?",t=function(){return 0===this.working.length},t.$$arity=0);a.def(b,"$exist?",B=function(a){a=a.exec(this.working);return null==a?g:0==a.index?0:a.index+1},B.$$arity=1);a.def(b,"$skip",m=function(a){a=this.$anchor(a);a=a.exec(this.working);if(null==a)return this.matched=g;a=a[0];var b=a.length;this.matched=a;this.prev_pos=this.pos;this.pos+=b;this.working=this.working.substring(b);
588
+ return b},m.$$arity=1);a.def(b,"$skip_until",T=function(a){a=this.$scan_until(a);if(a===g)return g;this.matched=a.substr(-1);return a.length},T.$$arity=1);a.def(b,"$get_byte",L=function(){var a=g;this.pos<this.string.length?(this.prev_pos=this.pos,this.pos+=1,a=this.matched=this.working.substring(0,1),this.working=this.working.substring(1)):this.matched=g;return a},L.$$arity=0);a.alias(b,"getch","get_byte");a.def(b,"$match?",y=function(a){a=this.$anchor(a);a=a.exec(this.working);if(null==a)return g;
589
+ this.prev_pos=this.pos;return a[0].length},y.$$arity=1);a.def(b,"$pos=",u=function(a){0>a&&(a+=this.string.$length());this.pos=a;return this.working=this.string.slice(a)},u.$$arity=1);a.def(b,"$matched_size",V=function(){return this.matched===g?g:this.matched.length},V.$$arity=0);a.def(b,"$post_match",x=function(){return this.matched===g?g:this.string.substr(this.pos)},x.$$arity=0);a.def(b,"$pre_match",la=function(){return this.matched===g?g:this.string.substr(0,this.prev_pos)},la.$$arity=0);a.def(b,
590
+ "$reset",va=function(){this.working=this.string;this.matched=g;return this.pos=0},va.$$arity=0);a.def(b,"$rest",D=function(){return this.working},D.$$arity=0);a.def(b,"$rest?",ma=function(){return 0!==this.working.length},ma.$$arity=0);a.def(b,"$rest_size",z=function(){return this.$rest().$size()},z.$$arity=0);a.def(b,"$terminate",C=function(){this.match=g;var b=[this.string.$length()];l(this,"pos=",a.to_a(b));var c=b.length;c="number"===typeof c?c-1:c["$-"](1);return b[c]},C.$$arity=0);a.def(b,"$unscan",
591
+ E=function(){this.pos=this.prev_pos;this.match=this.prev_pos=g;return this},E.$$arity=0);b.$private();return(a.def(b,"$anchor",H=function(a){var b=a.toString().match(/\/([^\/]+)$/);b=b?b[1]:void 0;return new RegExp("^(?:"+a.source+")",b)},H.$$arity=1),g)&&"anchor"}(b[0],null,b)};Opal.modules["asciidoctor/js"]=function(a){var b=a.top;a.add_stubs(["$require"]);b.$require("asciidoctor/js/opal_ext");b.$require("asciidoctor/js/rx");return b.$require("strscan")};Opal.modules["asciidoctor/core_ext/nil_or_empty"]=
592
+ function(a){var b=[],g=a.nil,k=a.klass,l=a.truthy;a.add_stubs(["$method_defined?"]);(function(b,$super,c){b=k(b,$super,"NilClass");[b].concat(c);return l(b["$method_defined?"]("nil_or_empty?"))?g:a.alias(b,"nil_or_empty?","nil?")})(b[0],null,b);(function(b,$super,c){b=k(b,$super,"String");[b].concat(c);return l(b["$method_defined?"]("nil_or_empty?"))?g:a.alias(b,"nil_or_empty?","empty?")})(b[0],null,b);(function(b,$super,c){b=k(b,$super,"Array");[b].concat(c);return l(b["$method_defined?"]("nil_or_empty?"))?
593
+ g:a.alias(b,"nil_or_empty?","empty?")})(b[0],null,b);(function(b,$super,c){b=k(b,$super,"Hash");[b].concat(c);return l(b["$method_defined?"]("nil_or_empty?"))?g:a.alias(b,"nil_or_empty?","empty?")})(b[0],null,b);return function(b,$super,c){b=k(b,$super,"Numeric");[b].concat(c);return l(b["$method_defined?"]("nil_or_empty?"))?g:a.alias(b,"nil_or_empty?","nil?")}(b[0],null,b)};Opal.modules["asciidoctor/core_ext/hash/merge"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?
594
+ a<b:a["$<"](b)}var g,k=a.top,l=[],r=a.nil,h=a.const_get_relative,c=a.send,A=a.truthy,p=a.hash2;a.add_stubs("$== $arity $instance_method $send $new $< $length $> $inject $merge $[]".split(" "));return h(l,"Hash").$instance_method("merge").$arity()["$=="](1)?h(l,"Hash").$send("prepend",c(h(l,"Module"),"new",[],(g=function(){var d;return(a.def(g.$$s||this,"$merge",d=function(g){var n,e=r;d.$$p&&(d.$$p=null);var f=a.slice.call(arguments,0,arguments.length);return A(b(e=f.$length(),1))?c(this,a.find_super_dispatcher(this,
595
+ "merge",d,!1),[p([],{})],null):A("number"===typeof e?1<e:e["$>"](1))?c(f,"inject",[this],(n=function(a,b){null==a&&(a=r);null==b&&(b=r);return a.$merge(b)},n.$$s=this,n.$$arity=2,n)):c(this,a.find_super_dispatcher(this,"merge",d,!1),[f["$[]"](0)],null)},d.$$arity=-1),r)&&"merge"},g.$$s=k,g.$$arity=0,g))):r};Opal.modules["asciidoctor/core_ext/match_data/names"]=function(a){var b=[],g=a.nil,k=a.const_get_relative,l=a.truthy,r=a.klass;a.add_stubs(["$method_defined?"]);return l(k(b,"MatchData")["$method_defined?"]("names"))?
596
+ g:function(b,$super,d){b=r(b,$super,"MatchData");[b].concat(d);var p;return(a.def(b,"$names",p=function(){return[]},p.$$arity=0),g)&&"names"}(b[0],null,b)};Opal.modules["asciidoctor/core_ext"]=function(a){var b=a.top,g=a.nil,k=a.const_get_relative;a.add_stubs(["$=="]);b.$require("asciidoctor/core_ext.rb/../core_ext/nil_or_empty");b.$require("asciidoctor/core_ext.rb/../core_ext/hash/merge");return k([],"RUBY_ENGINE")["$=="]("opal")?b.$require("asciidoctor/core_ext.rb/../core_ext/match_data/names"):
597
+ g};Opal.modules["asciidoctor/helpers"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}var k=[],l=a.nil,r=a.const_get_qualified,h=a.const_get_relative,c=a.module,A=a.truthy,p=a.gvars,q=a.send,t=a.hash2;a.add_stubs("$module_function $require $include? $include $== $=== $path $message $raise $warn $logger $chomp $empty? $slice $unpack $[] $byteslice $bytesize $[]= $- $map $rstrip $encode $encoding $nil_or_empty? $!= $tap $each_line $<< $match? $gsub $rindex $index $basename $extname $! $length $directory? $dirname $mkdir_p $mkdir $private_constant $join $divmod $* $+ $to_s $to_i $succ $class_for_name $const_get".split(" "));
598
+ return function(d,e){d=[c(d,"Asciidoctor")].concat(e);(function(e,d){e=c(e,"Helpers");var f=[e].concat(d),n,k,v,m,y,B,S,L,N,u,x,U,D,z,C,E;e.$module_function();a.def(e,"$require_library",n=function(b,c,e){var d=l,g=l;null==p["!"]&&(p["!"]=l);null==c&&(c=!0);null==e&&(e="abort");try{return this.$require(b)}catch(sa){if(a.rescue(sa,[r("::","LoadError")]))try{return A(this["$include?"](h(f,"Logging")))||this.$include(h(f,"Logging")),A(c)?(c["$=="](!0)&&(c=b),d=e,"abort"["$==="](d)?(g=p["!"].$path()["$=="](c)?
599
+ "":" (reason: "+(A(p["!"].$path())?"cannot load '"+p["!"].$path()+"'":p["!"].$message())+")",this.$raise(r("::","LoadError"),"asciidoctor: FAILED: required gem '"+c+"' is not available"+g+". Processing aborted.")):"warn"["$==="](d)&&(g=p["!"].$path()["$=="](c)?"":" (reason: "+(A(p["!"].$path())?"cannot load '"+p["!"].$path()+"'":p["!"].$message())+")",this.$logger().$warn("optional gem '"+c+"' is not available"+g+". Functionality disabled."))):(d=e,"abort"["$==="](d)?this.$raise(r("::","LoadError"),
600
+ "asciidoctor: FAILED: "+p["!"].$message().$chomp(".")+". Processing aborted."):"warn"["$==="](d)&&this.$logger().$warn(""+p["!"].$message().$chomp(".")+". Functionality disabled.")),l}finally{a.pop_exception()}else throw sa;}},n.$$arity=-2);a.def(e,"$prepare_source_array",k=function(c,e){var d,g,n,p,k,y,v,T,t=this,m=l,B=l,S=l;m=l;null==e&&(e=!0);if(A(c["$empty?"]()))return[];if((m=(B=(S=c["$[]"](0)).$unpack("C3")).$slice(0,2))["$=="](h(f,"BOM_BYTES_UTF_16LE")))return m=[0,S.$byteslice(2,S.$bytesize())],
601
+ q(c,"[]=",a.to_a(m)),m[b(m.length,1)],function(){return A(e)?q(c,"map",[],(d=function(a){null==a&&(a=l);return a.$encode(h(f,"UTF_8"),r(r("::","Encoding"),"UTF_16LE")).$rstrip()},d.$$s=t,d.$$arity=1,d)):q(c,"map",[],(g=function(a){null==a&&(a=l);return a.$encode(h(f,"UTF_8"),r(r("::","Encoding"),"UTF_16LE")).$chomp()},g.$$s=t,g.$$arity=1,g))}();if(m["$=="](h(f,"BOM_BYTES_UTF_16BE")))return m=[0,S.$byteslice(2,S.$bytesize())],q(c,"[]=",a.to_a(m)),m[b(m.length,1)],function(){return A(e)?q(c,"map",[],
602
+ (n=function(a){null==a&&(a=l);return a.$encode(h(f,"UTF_8"),r(r("::","Encoding"),"UTF_16BE")).$rstrip()},n.$$s=t,n.$$arity=1,n)):q(c,"map",[],(p=function(a){null==a&&(a=l);return a.$encode(h(f,"UTF_8"),r(r("::","Encoding"),"UTF_16BE")).$chomp()},p.$$s=t,p.$$arity=1,p))}();B["$=="](h(f,"BOM_BYTES_UTF_8"))&&(m=[0,S.$byteslice(3,S.$bytesize())],q(c,"[]=",a.to_a(m)),m[b(m.length,1)]);return S.$encoding()["$=="](h(f,"UTF_8"))?A(e)?q(c,"map",[],(k=function(a){null==a&&(a=l);return a.$rstrip()},k.$$s=t,
603
+ k.$$arity=1,k)):q(c,"map",[],(y=function(a){null==a&&(a=l);return a.$chomp()},y.$$s=t,y.$$arity=1,y)):A(e)?q(c,"map",[],(v=function(a){null==a&&(a=l);return a.$encode(h(f,"UTF_8")).$rstrip()},v.$$s=t,v.$$arity=1,v)):q(c,"map",[],(T=function(a){null==a&&(a=l);return a.$encode(h(f,"UTF_8")).$chomp()},T.$$s=t,T.$$arity=1,T))},k.$$arity=-2);a.def(e,"$prepare_source_string",v=function(a,b){var c,e,d=l,g=l;null==b&&(b=!0);if(A(a["$nil_or_empty?"]()))return[];(d=(g=a.$unpack("C3")).$slice(0,2))["$=="](h(f,
604
+ "BOM_BYTES_UTF_16LE"))?a=a.$byteslice(2,a.$bytesize()).$encode(h(f,"UTF_8"),r(r("::","Encoding"),"UTF_16LE")):d["$=="](h(f,"BOM_BYTES_UTF_16BE"))?a=a.$byteslice(2,a.$bytesize()).$encode(h(f,"UTF_8"),r(r("::","Encoding"),"UTF_16BE")):g["$=="](h(f,"BOM_BYTES_UTF_8"))?(a=a.$byteslice(3,a.$bytesize()),a.$encoding()["$=="](h(f,"UTF_8"))||(a=a.$encode(h(f,"UTF_8")))):A(a.$encoding()["$!="](h(f,"UTF_8")))&&(a=a.$encode(h(f,"UTF_8")));return A(b)?q([],"tap",[],(c=function(b){var e=c.$$s||this,f;null==b&&
605
+ (b=l);return q(a,"each_line",[],(f=function(a){null==a&&(a=l);return b["$<<"](a.$rstrip())},f.$$s=e,f.$$arity=1,f))},c.$$s=this,c.$$arity=1,c)):q([],"tap",[],(e=function(b){var c=e.$$s||this,f;null==b&&(b=l);return q(a,"each_line",[],(f=function(a){null==a&&(a=l);return b["$<<"](a.$chomp())},f.$$s=c,f.$$arity=1,f))},e.$$s=this,e.$$arity=1,e))},v.$$arity=-2);a.def(e,"$uriish?",m=function(a){var b;return A(b=a["$include?"](":"))?h(f,"UriSniffRx")["$match?"](a):b},m.$$arity=1);h(f,"RUBY_ENGINE")["$=="]("opal")?
606
+ a.def(e,"$encode_uri_component",y=function(a){return encodeURIComponent(a).replace(/%20|[!'()*]/g,function(a){return"%20"===a?"+":"%"+a.charCodeAt(0).toString(16)})},y.$$arity=1):l;a.def(e,"$encode_spaces_in_uri",B=function(a){return A(a["$include?"](" "))?a.$gsub(" ","%20"):a},B.$$arity=1);a.def(e,"$rootname",S=function(a){var b;return A(b=a.$rindex("."))?A(a.$index("/",b))?a:a.$slice(0,b):a},S.$$arity=1);a.def(e,"$basename",L=function(a,b){null==b&&(b=l);return A(b)?r("::","File").$basename(a,b["$=="](!0)?
607
+ this.$extname(a):b):r("::","File").$basename(a)},L.$$arity=-2);a.def(e,"$extname?",N=function(a){var b,c=l;return A(b=c=a.$rindex("."))?a.$index("/",c)["$!"]():b},N.$$arity=1);A(r(r("::","File"),"ALT_SEPARATOR"))?a.def(e,"$extname",u=function(a,b){var c,e;null==b&&(b="");return A(e=a.$rindex("."))?A(A(c=a.$index("/",e))?c:a.$index(r(r("::","File"),"ALT_SEPARATOR"),e))?b:a.$slice(e,a.$length()):b},u.$$arity=-2):a.def(e,"$extname",x=function(a,b){var c;null==b&&(b="");return A(c=a.$rindex("."))?A(a.$index("/",
608
+ c))?b:a.$slice(c,a.$length()):b},x.$$arity=-2);a.def(e,"$mkdir_p",U=function(b){var c;if(A(r("::","File")["$directory?"](b)))return l;(c=r("::","File").$dirname(b))["$=="](".")||this.$mkdir_p(c);try{return r("::","Dir").$mkdir(b)}catch(fa){if(a.rescue(fa,[r("::","SystemCallError")]))try{return A(r("::","File")["$directory?"](b))?l:this.$raise()}finally{a.pop_exception()}else throw fa;}},U.$$arity=1);a.const_set(f[0],"ROMAN_NUMERALS",t("M CM D CD C XC L XL X IX V IV I".split(" "),{M:1E3,CM:900,D:500,
609
+ CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1}));e.$private_constant("ROMAN_NUMERALS");a.def(e,"$int_to_roman",D=function(b){var c;return q(h(f,"ROMAN_NUMERALS"),"map",[],(c=function(c,e){null==c&&(c=l);null==e&&(e=l);var f=b.$divmod(e);e=a.to_ary(f);var d=null==e[0]?l:e[0];b=null==e[1]?l:e[1];f;return"number"===typeof c&&"number"===typeof d?c*d:c["$*"](d)},c.$$s=this,c.$$arity=2,c)).$join()},D.$$arity=1);a.def(e,"$nextval",z=function(a){var b;return A(r("::","Integer")["$==="](a))?g(a,1):
610
+ (b=a.$to_i()).$to_s()["$=="](a.$to_s())?g(b,1):a.$succ()},z.$$arity=1);a.def(e,"$resolve_class",C=function(a){return A(r("::","Class")["$==="](a))?a:A(r("::","String")["$==="](a))?this.$class_for_name(a):l},C.$$arity=1);a.def(e,"$class_for_name",E=function(b){var c=l;try{return A(r("::","Class")["$==="](c=r("::","Object").$const_get(b,!1)))||this.$raise(),c}catch(fa){if(a.rescue(fa,[h(f,"StandardError")]))try{return this.$raise(r("::","NameError"),"Could not resolve class for name: "+b)}finally{a.pop_exception()}else throw fa;
611
+ }},E.$$arity=1)})(d[0],d)}(k[0],k)};Opal.modules.logger=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a<=b:a["$<="](b)}var g=[],k=a.nil,l=a.const_get_qualified,r=a.const_get_relative,h=a.klass,c=a.module,q=a.send,p=a.truthy;a.add_stubs("$include $to_h $map $constants $const_get $to_s $format $chr $strftime $message_as_string $=== $+ $message $class $join $backtrace $inspect $attr_reader $attr_accessor $new $key $upcase $raise $add $to_proc $<= $< $write $call $[] $now".split(" "));
612
+ return function(d,$super,g){d=h(d,$super,"Logger");var e=[d].concat(g),f,n,v,A,t,T,m,y,B,L,u,x,U,D,ma;d.$$prototype.level=d.$$prototype.progname=d.$$prototype.pipe=d.$$prototype.formatter=k;(function(b,e){b=[c(b,"Severity")].concat(e);a.const_set(b[0],"DEBUG",0);a.const_set(b[0],"INFO",1);a.const_set(b[0],"WARN",2);a.const_set(b[0],"ERROR",3);a.const_set(b[0],"FATAL",4);a.const_set(b[0],"UNKNOWN",5)})(e[0],e);d.$include(r(e,"Severity"));a.const_set(e[0],"SEVERITY_LABELS",q(r(e,"Severity").$constants(),
613
+ "map",[],(f=function(a){null==a&&(a=k);return[r(e,"Severity").$const_get(a),a.$to_s()]},f.$$s=d,f.$$arity=1,f)).$to_h());(function(b,$super,c){b=h(b,$super,"Formatter");var e=[b].concat(c),f,d;a.const_set(e[0],"MESSAGE_FORMAT","%s, [%s] %5s -- %s: %s\n");a.const_set(e[0],"DATE_TIME_FORMAT","%Y-%m-%dT%H:%M:%S.%6N");a.def(b,"$call",f=function(a,b,c,f){return this.$format(r(e,"MESSAGE_FORMAT"),a.$chr(),b.$strftime(r(e,"DATE_TIME_FORMAT")),a,c,this.$message_as_string(f))},f.$$arity=4);return(a.def(b,
614
+ "$message_as_string",d=function(a){var b,c=k;return function(){c=a;if(l("::","String")["$==="](c))return a;if(l("::","Exception")["$==="](c)){var e=""+a.$message()+" ("+a.$class()+")\n",f=(p(b=a.$backtrace())?b:[]).$join("\n");return"number"===typeof e&&"number"===typeof f?e+f:e["$+"](f)}return a.$inspect()}()},d.$$arity=1),k)&&"message_as_string"})(e[0],null,e);d.$attr_reader("level");d.$attr_accessor("progname");d.$attr_accessor("formatter");a.def(d,"$initialize",n=function(a){this.pipe=a;this.level=
615
+ r(e,"DEBUG");return this.formatter=r(e,"Formatter").$new()},n.$$arity=1);a.def(d,"$level=",v=function(a){var b;return p(l("::","Integer")["$==="](a))?this.level=a:p(b=r(e,"SEVERITY_LABELS").$key(a.$to_s().$upcase()))?this.level=b:this.$raise(r(e,"ArgumentError"),"invalid log level: "+a)},v.$$arity=1);a.def(d,"$info",A=function(a){var b=A.$$p,c=b||k;b&&(A.$$p=null);b&&(A.$$p=null);null==a&&(a=k);return q(this,"add",[r(e,"INFO"),k,a],c.$to_proc())},A.$$arity=-1);a.def(d,"$debug",t=function(a){var b=
616
+ t.$$p,c=b||k;b&&(t.$$p=null);b&&(t.$$p=null);null==a&&(a=k);return q(this,"add",[r(e,"DEBUG"),k,a],c.$to_proc())},t.$$arity=-1);a.def(d,"$warn",T=function(a){var b=T.$$p,c=b||k;b&&(T.$$p=null);b&&(T.$$p=null);null==a&&(a=k);return q(this,"add",[r(e,"WARN"),k,a],c.$to_proc())},T.$$arity=-1);a.def(d,"$error",m=function(a){var b=m.$$p,c=b||k;b&&(m.$$p=null);b&&(m.$$p=null);null==a&&(a=k);return q(this,"add",[r(e,"ERROR"),k,a],c.$to_proc())},m.$$arity=-1);a.def(d,"$fatal",y=function(a){var b=y.$$p,c=
617
+ b||k;b&&(y.$$p=null);b&&(y.$$p=null);null==a&&(a=k);return q(this,"add",[r(e,"FATAL"),k,a],c.$to_proc())},y.$$arity=-1);a.def(d,"$unknown",B=function(a){var b=B.$$p,c=b||k;b&&(B.$$p=null);b&&(B.$$p=null);null==a&&(a=k);return q(this,"add",[r(e,"UNKNOWN"),k,a],c.$to_proc())},B.$$arity=-1);a.def(d,"$info?",L=function(){return b(this.level,r(e,"INFO"))},L.$$arity=0);a.def(d,"$debug?",u=function(){return b(this.level,r(e,"DEBUG"))},u.$$arity=0);a.def(d,"$warn?",x=function(){return b(this.level,r(e,"WARN"))},
618
+ x.$$arity=0);a.def(d,"$error?",U=function(){return b(this.level,r(e,"ERROR"))},U.$$arity=0);a.def(d,"$fatal?",D=function(){return b(this.level,r(e,"FATAL"))},D.$$arity=0);return(a.def(d,"$add",ma=function(b,c,f){var d=ma.$$p,g=d||k,n;d&&(ma.$$p=null);d&&(ma.$$p=null);null==c&&(c=k);null==f&&(f=k);d=b=p(n=b)?n:r(e,"UNKNOWN");var h=this.level;d="number"===typeof d&&"number"===typeof h?d<h:d["$<"](h);if(p(d))return!0;f=p(n=f)?n:this.progname;p(c)||(g!==k?c=a.yieldX(g,[]):(c=f,f=this.progname));this.pipe.$write(this.formatter.$call(p(n=
619
+ r(e,"SEVERITY_LABELS")["$[]"](b))?n:"ANY",l("::","Time").$now(),f,c));return!0},ma.$$arity=-2),k)&&"add"}(g[0],null,g)};Opal.modules["asciidoctor/logging"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a>b:a["$>"](b)}var k=a.top,l=[],r=a.nil,h=a.const_get_qualified,c=a.const_get_relative,q=a.module,p=a.klass,t=a.send,m=a.truthy,n=a.hash2,e=a.gvars;a.add_stubs("$require $attr_reader $progname= $- $new $formatter= $level= $> $[] $=== $inspect $to_h $map $constants $const_get $<< $clear $empty? $max $attr_accessor $memoize_logger $private $extend $private_class_method $logger $merge".split(" "));
620
+ k.$require("logger");return function(f,d){f=[q(f,"Asciidoctor")].concat(d);(function(e,$super,f){e=p(e,$super,"Logger");var d=[e].concat(f),k,l;e.$$prototype.max_severity=r;e.$attr_reader("max_severity");a.def(e,"$initialize",k=function(e){var f=k.$$p,g;f&&(k.$$p=null);var n=0;var p=arguments.length;for(g=Array(p);n<p;n++)g[n]=arguments[n];a.slice.call(arguments,0,arguments.length);t(this,a.find_super_dispatcher(this,"initialize",k,!1),g,f);f=["asciidoctor"];t(this,"progname=",a.to_a(f));f[b(f.length,
621
+ 1)];f=[c(d,"BasicFormatter").$new()];t(this,"formatter=",a.to_a(f));f[b(f.length,1)];f=[c(d,"WARN")];t(this,"level=",a.to_a(f));return f[b(f.length,1)]},k.$$arity=-1);a.def(e,"$add",l=function(b,e,f){var n,p=l.$$p,h;p&&(l.$$p=null);var k=0;var y=arguments.length;for(h=Array(y);k<y;k++)h[k]=arguments[k];null==e&&(e=r);null==f&&(f=r);m(g(b=m(n=b)?n:c(d,"UNKNOWN"),this.max_severity=m(n=this.max_severity)?n:b))&&(this.max_severity=b);return t(this,a.find_super_dispatcher(this,"add",l,!1),h,p)},l.$$arity=
622
+ -2);(function(b,$super,e){b=p(b,$super,"BasicFormatter");var f=[b].concat(e),d;a.const_set(f[0],"SEVERITY_LABEL_SUBSTITUTES",n(["WARN","FATAL"],{WARN:"WARNING",FATAL:"FAILED"}));return(a.def(b,"$call",d=function(a,b,e,d){var g;return""+e+": "+(m(g=c(f,"SEVERITY_LABEL_SUBSTITUTES")["$[]"](a))?g:a)+": "+(m(h("::","String")["$==="](d))?d:d.$inspect())+c(f,"LF")},d.$$arity=4),r)&&"call"})(d[0],c(d,"Formatter"),d);return function(b,c){b=q(b,"AutoFormattingMessage");[b].concat(c);var e;a.def(b,"$inspect",
623
+ e=function(){var a;return m(a=this["$[]"]("source_location"))?""+a+": "+this["$[]"]("text"):this["$[]"]("text")},e.$$arity=0)}(d[0],d)})(f[0],h("::","Logger"),f);(function(e,$super,f){e=p(e,$super,"MemoryLogger");var d=[e].concat(f),g,h,k,l,v,q;e.$$prototype.messages=r;a.const_set(d[0],"SEVERITY_SYMBOL_BY_VALUE",t(c(d,"Severity").$constants(!1),"map",[],(g=function(a){null==a&&(a=r);return[c(d,"Severity").$const_get(a),a]},g.$$s=e,g.$$arity=1,g)).$to_h());e.$attr_reader("messages");a.def(e,"$initialize",
624
+ h=function(){var e=[c(d,"WARN")];t(this,"level=",a.to_a(e));e[b(e.length,1)];return this.messages=[]},h.$$arity=0);a.def(e,"$add",k=function(b,e,f){var g,p=k.$$p,h=p||r;p&&(k.$$p=null);null==e&&(e=r);null==f&&(f=r);e=m(g=e)?g:h!==r?a.yieldX(h,[]):f;this.messages["$<<"](n(["severity","message"],{severity:c(d,"SEVERITY_SYMBOL_BY_VALUE")["$[]"](m(g=b)?g:c(d,"UNKNOWN")),message:e}));return!0},k.$$arity=-2);a.def(e,"$clear",l=function(){return this.messages.$clear()},l.$$arity=0);a.def(e,"$empty?",v=function(){return this.messages["$empty?"]()},
625
+ v.$$arity=0);return(a.def(e,"$max_severity",q=function(){var a;return m(this["$empty?"]())?r:t(this.messages,"map",[],(a=function(a){null==a&&(a=r);return c(d,"Severity").$const_get(a["$[]"]("severity"))},a.$$s=this,a.$$arity=1,a)).$max()},q.$$arity=0),r)&&"max_severity"})(f[0],h("::","Logger"),f);(function(e,$super,f){e=p(e,$super,"NullLogger");var d=[e].concat(f),n,h;e.$$prototype.max_severity=r;e.$attr_reader("max_severity");a.def(e,"$initialize",n=function(){var e=[c(d,"WARN")];t(this,"level=",
626
+ a.to_a(e));return e[b(e.length,1)]},n.$$arity=0);return(a.def(e,"$add",h=function(a,b,e){var f;m(g(a=m(f=a)?f:c(d,"UNKNOWN"),this.max_severity=m(f=this.max_severity)?f:a))&&(this.max_severity=a);return!0},h.$$arity=-2),r)&&"add"})(f[0],h("::","Logger"),f);(function(b,f){b=q(b,"LoggerManager");f=[b].concat(f);b.logger_class=c(f,"Logger");(function(b,c){var f=[b].concat(c),d,g,n;b.$attr_accessor("logger_class");a.def(b,"$logger",d=function(a){var b;null==this.logger&&(this.logger=r);null==this.logger_class&&
627
+ (this.logger_class=r);null==e.stderr&&(e.stderr=r);null==a&&(a=e.stderr);this.$memoize_logger();return this.logger=m(b=this.logger)?b:this.logger_class.$new(a)},d.$$arity=-1);a.def(b,"$logger=",g=function(a){null==this.logger_class&&(this.logger_class=r);null==e.stderr&&(e.stderr=r);return this.logger=m(a)?a:this.logger_class.$new(e.stderr)},g.$$arity=1);b.$private();return(a.def(b,"$memoize_logger",n=function(){var b=a.get_singleton_class(this);[b].concat(f);a.alias(b,"logger","logger");return b.$attr_reader("logger")},
628
+ n.$$arity=0),r)&&"memoize_logger"})(a.get_singleton_class(b),f)})(f[0],f);(function(b,e){b=q(b,"Logging");var f=[b].concat(e),d,g,p;a.defs(b,"$included",d=function(a){return a.$extend(c(f,"Logging"))},d.$$arity=1);b.$private_class_method("included");a.def(b,"$logger",g=function(){return c(f,"LoggerManager").$logger()},g.$$arity=0);a.def(b,"$message_with_context",p=function(a,b){null==b&&(b=n([],{}));return n(["text"],{text:a}).$merge(b).$extend(h(c(f,"Logger"),"AutoFormattingMessage"))},p.$$arity=
629
+ -2)})(f[0],f)}(l[0],l)};Opal.modules["asciidoctor/rx"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}var g=[],k=a.nil,l=a.const_get_qualified,r=a.const_get_relative,h=a.module,c=a.hash2,q=a.send,p=a.truthy,t=a.hash;a.add_stubs("$== $join $to_a $new $empty? $escape $[]= $-".split(" "));return function(d,g){d=h(d,"Asciidoctor");var e=[d].concat(g),f,n;(function(a,b){[h(a,"Rx")].concat(b);k})(e[0],e);a.const_set(e[0],"AuthorInfoLineRx",new RegExp("^("+r(e,
630
+ "CG_WORD")+"["+r(e,"CC_WORD")+"\\-'.]*)(?: +("+r(e,"CG_WORD")+"["+r(e,"CC_WORD")+"\\-'.]*))?(?: +("+r(e,"CG_WORD")+"["+r(e,"CC_WORD")+"\\-'.]*))?(?: +<([^>]+)>)?$"));a.const_set(e[0],"AuthorDelimiterRx",/;(?: |$)/);a.const_set(e[0],"RevisionInfoLineRx",new RegExp("^(?:[^\\d{]*("+r(e,"CC_ANY")+"*?),)? *(?!:)("+r(e,"CC_ANY")+"*?)(?: *(?!^),?: *("+r(e,"CC_ANY")+"*))?$"));a.const_set(e[0],"ManpageTitleVolnumRx",new RegExp("^("+r(e,"CC_ANY")+"+?) *\\( *("+r(e,"CC_ANY")+"+?) *\\)$"));a.const_set(e[0],"ManpageNamePurposeRx",
631
+ new RegExp("^("+r(e,"CC_ANY")+"+?) +- +("+r(e,"CC_ANY")+"+)$"));a.const_set(e[0],"ConditionalDirectiveRx",new RegExp("^(\\\\)?(ifdef|ifndef|ifeval|endif)::(\\S*?(?:([,+])\\S*?)?)\\[("+r(e,"CC_ANY")+"+)?\\]$"));a.const_set(e[0],"EvalExpressionRx",new RegExp("^("+r(e,"CC_ANY")+"+?) *([=!><]=|[><]) *("+r(e,"CC_ANY")+"+)$"));a.const_set(e[0],"IncludeDirectiveRx",new RegExp("^(\\\\)?include::([^\\[][^\\[]*)\\[("+r(e,"CC_ANY")+"+)?\\]$"));a.const_set(e[0],"TagDirectiveRx",/\b(?:tag|(e)nd)::(\S+?)\[\](?=$|[ \r])/m);
632
+ a.const_set(e[0],"AttributeEntryRx",new RegExp("^:(!?"+r(e,"CG_WORD")+"[^:]*):(?:[ \\t]+("+r(e,"CC_ANY")+"*))?$"));a.const_set(e[0],"InvalidAttributeNameCharsRx",new RegExp("[^"+r(e,"CC_WORD")+"-]"));r(e,"RUBY_ENGINE")["$=="]("opal")?a.const_set(e[0],"AttributeEntryPassMacroRx",new RegExp("^pass:([a-z]+(?:,[a-z-]+)*)?\\[("+r(e,"CC_ALL")+"*)\\]$")):k;a.const_set(e[0],"AttributeReferenceRx",new RegExp("(\\\\)?\\{("+r(e,"CG_WORD")+"["+r(e,"CC_WORD")+"-]*|(set|counter2?):"+r(e,"CC_ANY")+"+?)(\\\\)?\\}"));
633
+ a.const_set(e[0],"BlockAnchorRx",new RegExp("^\\[\\[(?:|(["+r(e,"CC_ALPHA")+"_:]["+r(e,"CC_WORD")+"\\-:.]*)(?:, *("+r(e,"CC_ANY")+"+))?)\\]\\]$"));a.const_set(e[0],"BlockAttributeListRx",new RegExp("^\\[(|["+r(e,"CC_WORD")+".#%{,\"']"+r(e,"CC_ANY")+"*)\\]$"));a.const_set(e[0],"BlockAttributeLineRx",new RegExp("^\\[(?:|["+r(e,"CC_WORD")+".#%{,\"']"+r(e,"CC_ANY")+"*|\\[(?:|["+r(e,"CC_ALPHA")+"_:]["+r(e,"CC_WORD")+"\\-:.]*(?:, *"+r(e,"CC_ANY")+"+)?)\\])\\]$"));a.const_set(e[0],"BlockTitleRx",new RegExp("^\\.(\\.?[^ \\t.]"+
634
+ r(e,"CC_ANY")+"*)$"));a.const_set(e[0],"AdmonitionParagraphRx",new RegExp("^("+r(e,"ADMONITION_STYLES").$to_a().$join("|")+"):[ \\t]+"));a.const_set(e[0],"LiteralParagraphRx",new RegExp("^([ \\t]+"+r(e,"CC_ANY")+"*)$"));a.const_set(e[0],"AtxSectionTitleRx",new RegExp("^(=={0,5})[ \\t]+("+r(e,"CC_ANY")+"+?)(?:[ \\t]+\\1)?$"));a.const_set(e[0],"ExtAtxSectionTitleRx",new RegExp("^(=={0,5}|#\\#{0,5})[ \\t]+("+r(e,"CC_ANY")+"+?)(?:[ \\t]+\\1)?$"));a.const_set(e[0],"SetextSectionTitleRx",new RegExp("^((?!\\.)"+
635
+ r(e,"CC_ANY")+"*?"+r(e,"CG_ALNUM")+r(e,"CC_ANY")+"*)$"));a.const_set(e[0],"InlineSectionAnchorRx",new RegExp(" (\\\\)?\\[\\[(["+r(e,"CC_ALPHA")+"_:]["+r(e,"CC_WORD")+"\\-:.]*)(?:, *("+r(e,"CC_ANY")+"+))?\\]\\]$"));a.const_set(e[0],"InvalidSectionIdCharsRx",new RegExp("<[^>]+>|&(?:[a-z][a-z]+\\d{0,2}|#\\d\\d\\d{0,4}|#x[\\da-f][\\da-f][\\da-f]{0,3});|[^ "+r(e,"CC_WORD")+"\\-.]+?"));a.const_set(e[0],"SectionLevelStyleRx",/^sect\d$/);a.const_set(e[0],"AnyListRx",new RegExp("^(?:[ \\t]*(?:-|\\*\\**|\\.\\.*|\\u2022|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]|(?!//[^/])[ \\t]*[^ \\t]"+
636
+ r(e,"CC_ANY")+"*?(?::::{0,2}|;;)(?:$|[ \\t])|<(?:\\d+|\\.)>[ \\t])"));a.const_set(e[0],"UnorderedListRx",new RegExp("^[ \\t]*(-|\\*\\**|\\u2022)[ \\t]+("+r(e,"CC_ANY")+"*)$"));a.const_set(e[0],"OrderedListRx",new RegExp("^[ \\t]*(\\.\\.*|\\d+\\.|[a-zA-Z]\\.|[IVXivx]+\\))[ \\t]+("+r(e,"CC_ANY")+"*)$"));a.const_set(e[0],"OrderedListMarkerRxMap",c(["arabic","loweralpha","lowerroman","upperalpha","upperroman"],{arabic:/\d+\./,loweralpha:/[a-z]\./,lowerroman:/[ivx]+\)/,upperalpha:/[A-Z]\./,upperroman:/[IVX]+\)/}));
637
+ a.const_set(e[0],"DescriptionListRx",new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+r(e,"CC_ANY")+"*?)(:::{0,2}|;;)(?:$|[ \\t]+("+r(e,"CC_ANY")+"*)$)"));a.const_set(e[0],"DescriptionListSiblingRx",c(["::",":::","::::",";;"],{"::":new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+r(e,"CC_ANY")+"*?[^:]|[^ \\t:])(::)(?:$|[ \\t]+("+r(e,"CC_ANY")+"*)$)"),":::":new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+r(e,"CC_ANY")+"*?[^:]|[^ \\t:])(:::)(?:$|[ \\t]+("+r(e,"CC_ANY")+"*)$)"),"::::":new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+
638
+ r(e,"CC_ANY")+"*?[^:]|[^ \\t:])(::::)(?:$|[ \\t]+("+r(e,"CC_ANY")+"*)$)"),";;":new RegExp("^(?!//[^/])[ \\t]*([^ \\t]"+r(e,"CC_ANY")+"*?)(;;)(?:$|[ \\t]+("+r(e,"CC_ANY")+"*)$)")}));a.const_set(e[0],"CalloutListRx",new RegExp("^<(\\d+|\\.)>[ \\t]+("+r(e,"CC_ANY")+"*)$"));a.const_set(e[0],"CalloutExtractRx",/((?:\/\/|#|--|;;) ?)?(\\)?<!?(|--)(\d+|\.)\3>(?=(?: ?\\?<!?\3(?:\d+|\.)\3>)*$)/);a.const_set(e[0],"CalloutExtractRxt","(\\\\)?<()(\\d+|\\.)>(?=(?: ?\\\\?<(?:\\d+|\\.)>)*$)");a.const_set(e[0],"CalloutExtractRxMap",
639
+ q(l("::","Hash"),"new",[],(f=function(c,f){null==c&&(c=k);null==f&&(f=k);f=[f,new RegExp("("+(p(f["$empty?"]())?"":""+l("::","Regexp").$escape(f)+" ?")+")?"+r(e,"CalloutExtractRxt"))];q(c,"[]=",a.to_a(f));return f[b(f.length,1)]},f.$$s=d,f.$$arity=2,f)));a.const_set(e[0],"CalloutScanRx",new RegExp("\\\\?<!?(|--)(\\d+|\\.)\\1>(?=(?: ?\\\\?<!?\\1(?:\\d+|\\.)\\1>)*"+r(e,"CC_EOL")+")"));a.const_set(e[0],"CalloutSourceRx",new RegExp("((?://|#|--|;;) ?)?(\\\\)?&lt;!?(|--)(\\d+|\\.)\\3&gt;(?=(?: ?\\\\?&lt;!?\\3(?:\\d+|\\.)\\3&gt;)*"+
640
+ r(e,"CC_EOL")+")"));a.const_set(e[0],"CalloutSourceRxt","(\\\\)?&lt;()(\\d+|\\.)&gt;(?=(?: ?\\\\?&lt;(?:\\d+|\\.)&gt;)*"+r(e,"CC_EOL")+")");a.const_set(e[0],"CalloutSourceRxMap",q(l("::","Hash"),"new",[],(n=function(c,f){null==c&&(c=k);null==f&&(f=k);f=[f,new RegExp("("+(p(f["$empty?"]())?"":""+l("::","Regexp").$escape(f)+" ?")+")?"+r(e,"CalloutSourceRxt"))];q(c,"[]=",a.to_a(f));return f[b(f.length,1)]},n.$$s=d,n.$$arity=2,n)));a.const_set(e[0],"ListRxMap",c(["ulist","olist","dlist","colist"],{ulist:r(e,
641
+ "UnorderedListRx"),olist:r(e,"OrderedListRx"),dlist:r(e,"DescriptionListRx"),colist:r(e,"CalloutListRx")}));a.const_set(e[0],"ColumnSpecRx",/^(?:(\d+)\*)?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?(\d+%?|~)?([a-z])?$/);a.const_set(e[0],"CellSpecStartRx",/^[ \t]*(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/);a.const_set(e[0],"CellSpecEndRx",/[ \t]+(?:(\d+(?:\.\d*)?|(?:\d*\.)?\d+)([*+]))?([<^>](?:\.[<^>]?)?|(?:[<^>]?\.)?[<^>])?([a-z])?$/);a.const_set(e[0],"CustomBlockMacroRx",
642
+ new RegExp("^("+r(e,"CG_WORD")+"["+r(e,"CC_WORD")+"-]*)::(|\\S|\\S"+r(e,"CC_ANY")+"*?\\S)\\[("+r(e,"CC_ANY")+"+)?\\]$"));a.const_set(e[0],"BlockMediaMacroRx",new RegExp("^(image|video|audio)::(\\S|\\S"+r(e,"CC_ANY")+"*?\\S)\\[("+r(e,"CC_ANY")+"+)?\\]$"));a.const_set(e[0],"BlockTocMacroRx",new RegExp("^toc::\\[("+r(e,"CC_ANY")+"+)?\\]$"));a.const_set(e[0],"InlineAnchorRx",new RegExp("(\\\\)?(?:\\[\\[(["+r(e,"CC_ALPHA")+"_:]["+r(e,"CC_WORD")+"\\-:.]*)(?:, *("+r(e,"CC_ANY")+"+?))?\\]\\]|anchor:(["+r(e,
643
+ "CC_ALPHA")+"_:]["+r(e,"CC_WORD")+"\\-:.]*)\\[(?:\\]|("+r(e,"CC_ANY")+"*?[^\\\\])\\]))"));a.const_set(e[0],"InlineAnchorScanRx",new RegExp("(?:^|[^\\\\\\[])\\[\\[(["+r(e,"CC_ALPHA")+"_:]["+r(e,"CC_WORD")+"\\-:.]*)(?:, *("+r(e,"CC_ANY")+"+?))?\\]\\]|(?:^|[^\\\\])anchor:(["+r(e,"CC_ALPHA")+"_:]["+r(e,"CC_WORD")+"\\-:.]*)\\[(?:\\]|("+r(e,"CC_ANY")+"*?[^\\\\])\\])"));a.const_set(e[0],"LeadingInlineAnchorRx",new RegExp("^\\[\\[(["+r(e,"CC_ALPHA")+"_:]["+r(e,"CC_WORD")+"\\-:.]*)(?:, *("+r(e,"CC_ANY")+"+?))?\\]\\]"));
644
+ a.const_set(e[0],"InlineBiblioAnchorRx",new RegExp("^\\[\\[\\[(["+r(e,"CC_ALPHA")+"_:]["+r(e,"CC_WORD")+"\\-:.]*)(?:, *("+r(e,"CC_ANY")+"+?))?\\]\\]\\]"));a.const_set(e[0],"InlineEmailRx",new RegExp("([\\\\>:/])?"+r(e,"CG_WORD")+"(?:&amp;|["+r(e,"CC_WORD")+"\\-.%+])*@"+r(e,"CG_ALNUM")+"["+r(e,"CC_ALNUM")+"_\\-.]*\\.[a-zA-Z]{2,5}\\b"));a.const_set(e[0],"InlineFootnoteMacroRx",new RegExp("\\\\?footnote(?:(ref):|:(["+r(e,"CC_WORD")+"-]+)?)\\[(?:|("+r(e,"CC_ALL")+"*?[^\\\\]))\\](?!</a>)","m"));a.const_set(e[0],
645
+ "InlineImageMacroRx",new RegExp("\\\\?i(?:mage|con):([^:\\s\\[](?:[^\\n\\[]*[^\\s\\[])?)\\[(|"+r(e,"CC_ALL")+"*?[^\\\\])\\]","m"));a.const_set(e[0],"InlineIndextermMacroRx",new RegExp("\\\\?(?:(indexterm2?):\\[("+r(e,"CC_ALL")+"*?[^\\\\])\\]|\\(\\(("+r(e,"CC_ALL")+"+?)\\)\\)(?!\\)))","m"));a.const_set(e[0],"InlineKbdBtnMacroRx",new RegExp("(\\\\)?(kbd|btn):\\[("+r(e,"CC_ALL")+"*?[^\\\\])\\]","m"));a.const_set(e[0],"InlineLinkRx",new RegExp("(^|link:|"+r(e,"CG_BLANK")+"|&lt;|[>\\(\\)\\[\\];\"'])(\\\\?(?:https?|file|ftp|irc)://[^\\s\\[\\]<]*([^\\s.,\\[\\]<]))(?:\\[(|"+
646
+ r(e,"CC_ALL")+"*?[^\\\\])\\])?","m"));a.const_set(e[0],"InlineLinkMacroRx",new RegExp("\\\\?(?:link|(mailto)):(|[^:\\s\\[][^\\s\\[]*)\\[(|"+r(e,"CC_ALL")+"*?[^\\\\])\\]","m"));a.const_set(e[0],"MacroNameRx",new RegExp("^"+r(e,"CG_WORD")+"["+r(e,"CC_WORD")+"-]*$"));a.const_set(e[0],"InlineStemMacroRx",new RegExp("\\\\?(stem|(?:latex|ascii)math):([a-z]+(?:,[a-z-]+)*)?\\[("+r(e,"CC_ALL")+"*?[^\\\\])\\]","m"));a.const_set(e[0],"InlineMenuMacroRx",new RegExp("\\\\?menu:("+r(e,"CG_WORD")+"|["+r(e,"CC_WORD")+
647
+ "&][^\\n\\[]*[^\\s\\[])\\[ *(?:|("+r(e,"CC_ALL")+"*?[^\\\\]))\\]","m"));a.const_set(e[0],"InlineMenuRx",new RegExp('\\\\?"(['+r(e,"CC_WORD")+'&][^"]*?[ \\n]+&gt;[ \\n]+[^"]*)"'));a.const_set(e[0],"InlinePassRx",t(!1,["+","`",new RegExp("(^|[^"+r(e,"CC_WORD")+";:])(?:\\[([^\\]]+)\\])?(\\\\?(\\+|`)(\\S|\\S"+r(e,"CC_ALL")+"*?\\S)\\4)(?!"+r(e,"CG_WORD")+")","m")],!0,["`",k,new RegExp("(^|[^`"+r(e,"CC_WORD")+"])(?:\\[([^\\]]+)\\])?(\\\\?(`)([^`\\s]|[^`\\s]"+r(e,"CC_ALL")+"*?\\S)\\4)(?![`"+r(e,"CC_WORD")+
648
+ "])","m")]));a.const_set(e[0],"SinglePlusInlinePassRx",new RegExp("^(\\\\)?\\+(\\S|\\S"+r(e,"CC_ALL")+"*?\\S)\\+$","m"));a.const_set(e[0],"InlinePassMacroRx",new RegExp("(?:(?:(\\\\?)\\[([^\\]]+)\\])?(\\\\{0,2})(\\+\\+\\+?|\\$\\$)("+r(e,"CC_ALL")+"*?)\\4|(\\\\?)pass:([a-z]+(?:,[a-z-]+)*)?\\[(|"+r(e,"CC_ALL")+"*?[^\\\\])\\])","m"));a.const_set(e[0],"InlineXrefMacroRx",new RegExp("\\\\?(?:&lt;&lt;(["+r(e,"CC_WORD")+"#/.:{]"+r(e,"CC_ALL")+"*?)&gt;&gt;|xref:(["+r(e,"CC_WORD")+"#/.:{]"+r(e,"CC_ALL")+"*?)\\[(?:\\]|("+
649
+ r(e,"CC_ALL")+"*?[^\\\\])\\]))","m"));r(e,"RUBY_ENGINE")["$=="]("opal")?a.const_set(e[0],"HardLineBreakRx",new RegExp("^("+r(e,"CC_ANY")+"*) \\+$","m")):k;a.const_set(e[0],"MarkdownThematicBreakRx",/^ {0,3}([-*_])( *)\1\2\1$/);a.const_set(e[0],"ExtLayoutBreakRx",/^(?:'{3,}|<{3,}|([-*_])( *)\1\2\1)$/);a.const_set(e[0],"BlankLineRx",/\n{2,}/);a.const_set(e[0],"EscapedSpaceRx",/\\([ \t\n])/);a.const_set(e[0],"ReplaceableTextRx",/[&']|--|\.\.\.|\([CRT]M?\)/);a.const_set(e[0],"SpaceDelimiterRx",/([^\\])[ \t\n]+/);
650
+ a.const_set(e[0],"SubModifierSniffRx",/[+-]/);a.const_set(e[0],"TrailingDigitsRx",/\d+$/);a.const_set(e[0],"UriSniffRx",new RegExp("^"+r(e,"CG_ALPHA")+"["+r(e,"CC_ALNUM")+".+-]+:/{0,2}"));a.const_set(e[0],"XmlSanitizeRx",/<[^>]+>/)}(g[0],g)};Opal.modules["asciidoctor/substitutors"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}function k(a,b){return"number"===typeof a&&"number"===
651
+ typeof b?a>b:a["$>"](b)}function l(a,b){return"number"===typeof a&&"number"===typeof b?a<b:a["$<"](b)}function r(a,b){return"number"===typeof a&&"number"===typeof b?a*b:a["$*"](b)}var h=[],c=a.nil,q=a.const_get_qualified,p=a.const_get_relative,t=a.slice,m=a.module,n=a.hash2,e=a.hash,f=a.truthy,N=a.send,u=a.gvars;a.add_stubs("$freeze $+ $keys $empty? $! $=== $[] $join $include? $extract_passthroughs $each $sub_specialchars $sub_quotes $sub_attributes $sub_replacements $sub_macros $highlight_source $sub_callouts $sub_post_replacements $warn $logger $restore_passthroughs $clear $split $apply_subs $== $gsub $match? $compat_mode $convert_quoted_text $attributes $shift $store_attribute $!= $attribute_undefined $counter $key? $downcase $attribute_missing $info $squeeze $delete $reject $start_with? $do_replacement $extensions $inline_macros? $inline_macros $regexp $instance $slice $length $names $config $merge $[]= $- $normalize_text $parse_attributes $process_method $expand_subs $text $text= $convert $class $strip $> $index $min $compact $end_with? $map $chop $new $pop $rstrip $register $tr $basename $parse $lstrip $split_simple_csv $partition $extract_attributes_from_text $sub $encode_uri_component $style $extname? $rindex $info? $catalog $fetch $outfilesuffix $natural_xrefs $resolve_id $find $footnotes $id $< $size $<< $attr? $attr $to_s $read_next_id $callouts $syntax_highlighter $highlight? $sub_source $extract_callouts $name $to_sym $to_i $resolve_lines_to_highlight $highlight $nil_or_empty? $restore_callouts $count $to_a $| $sort $* $parse_quoted_text_attributes $resolve_pass_subs $extract_inner_passthrough $basebackend? $error $chr $drop $& $resolve_subs $resolve_block_subs $parse_into $private $=~ $shorthand_property_syntax $each_char".split(" "));
652
+ return function(d,h){d=[m(d,"Asciidoctor")].concat(h);(function(d,h){d=m(d,"Substitutors");var y=[d].concat(h),v,A,T,S,B,J,L,x,U,D,z,C,ka,fa,I,E,H,G,qa,F,da,na,ea,ba,M,P,oa,O,ha,za,Ca;a.const_set(y[0],"SpecialCharsRx",/[<&>]/);a.const_set(y[0],"SpecialCharsTr",n([">","<","&"],{">":"&gt;","<":"&lt;","&":"&amp;"}));a.const_set(y[0],"QuotedTextSniffRx",e(!1,/[*_`#^~]/,!0,/[*'_+#^~]/));a.const_set(y[0],"BASIC_SUBS",["specialcharacters"]).$freeze();a.const_set(y[0],"HEADER_SUBS",["specialcharacters","attributes"]).$freeze();
653
+ a.const_set(y[0],"NO_SUBS",[]).$freeze();a.const_set(y[0],"NORMAL_SUBS","specialcharacters quotes attributes replacements macros post_replacements".split(" ")).$freeze();a.const_set(y[0],"REFTEXT_SUBS",["specialcharacters","quotes","replacements"]).$freeze();a.const_set(y[0],"VERBATIM_SUBS",["specialcharacters","callouts"]).$freeze();a.const_set(y[0],"SUB_GROUPS",n(["none","normal","verbatim","specialchars"],{none:p(y,"NO_SUBS"),normal:p(y,"NORMAL_SUBS"),verbatim:p(y,"VERBATIM_SUBS"),specialchars:p(y,
654
+ "BASIC_SUBS")}));a.const_set(y[0],"SUB_HINTS",n("amnpqrcv".split(""),{a:"attributes",m:"macros",n:"normal",p:"post_replacements",q:"quotes",r:"replacements",c:"specialcharacters",v:"verbatim"}));a.const_set(y[0],"SUB_OPTIONS",n(["block","inline"],{block:b(b(p(y,"SUB_GROUPS").$keys(),p(y,"NORMAL_SUBS")),["callouts"]),inline:b(p(y,"SUB_GROUPS").$keys(),p(y,"NORMAL_SUBS"))}));a.const_set(y[0],"CAN","\u0018");a.const_set(y[0],"DEL","\u007f");a.const_set(y[0],"PASS_START","\u0096");a.const_set(y[0],"PASS_END",
655
+ "\u0097");a.const_set(y[0],"PassSlotRx",new RegExp(""+p(y,"PASS_START")+"(\\d+)"+p(y,"PASS_END")));a.const_set(y[0],"HighlightedPassSlotRx",new RegExp("<span\\b[^>]*>"+p(y,"PASS_START")+"</span>[^\\d]*(\\d+)[^\\d]*<span\\b[^>]*>"+p(y,"PASS_END")+"</span>"));a.const_set(y[0],"RS","\\");a.const_set(y[0],"R_SB","]");a.const_set(y[0],"ESC_R_SB","\\]");a.const_set(y[0],"PLUS","+");a.def(d,"$apply_subs",v=function(a,b){var e,d,g=c,n=c,h=c;null==this.passthroughs&&(this.passthroughs=c);null==this.passthroughs_locked&&
656
+ (this.passthroughs_locked=c);null==b&&(b=p(y,"NORMAL_SUBS"));if(f(f(e=a["$empty?"]())?e:b["$!"]()))return a;f(g=q("::","Array")["$==="](a))&&(a=f(a["$[]"](1))?a.$join(p(y,"LF")):a["$[]"](0));f(b["$include?"]("macros"))&&(a=this.$extract_passthroughs(a),f(this.passthroughs["$empty?"]())||(n=this.passthroughs,this.passthroughs_locked=f(e=this.passthroughs_locked)?e:h=!0));N(b,"each",[],(d=function(e){var g=d.$$s||this;null==e&&(e=c);var n=e;return"specialcharacters"["$==="](n)?a=g.$sub_specialchars(a):
657
+ "quotes"["$==="](n)?a=g.$sub_quotes(a):"attributes"["$==="](n)?f(a["$include?"](p(y,"ATTR_REF_HEAD")))?a=g.$sub_attributes(a):c:"replacements"["$==="](n)?a=g.$sub_replacements(a):"macros"["$==="](n)?a=g.$sub_macros(a):"highlight"["$==="](n)?a=g.$highlight_source(a,b["$include?"]("callouts")):"callouts"["$==="](n)?f(b["$include?"]("highlight"))?c:a=g.$sub_callouts(a):"post_replacements"["$==="](n)?a=g.$sub_post_replacements(a):g.$logger().$warn("unknown substitution type "+e)},d.$$s=this,d.$$arity=
658
+ 1,d));f(n)&&(a=this.$restore_passthroughs(a),f(h)&&(n.$clear(),this.passthroughs_locked=c));return f(g)?a.$split(p(y,"LF"),-1):a},v.$$arity=-2);a.def(d,"$apply_normal_subs",A=function(a){return this.$apply_subs(a,p(y,"NORMAL_SUBS"))},A.$$arity=1);a.def(d,"$apply_header_subs",T=function(a){return this.$apply_subs(a,p(y,"HEADER_SUBS"))},T.$$arity=1);a.alias(d,"apply_title_subs","apply_subs");a.def(d,"$apply_reftext_subs",S=function(a){return this.$apply_subs(a,p(y,"REFTEXT_SUBS"))},S.$$arity=1);p(y,
659
+ "RUBY_ENGINE")["$=="]("opal")?a.def(d,"$sub_specialchars",B=function(a){var b,c;return f(f(b=f(c=a["$include?"](">"))?c:a["$include?"]("&"))?b:a["$include?"]("<"))?a.$gsub(p(y,"SpecialCharsRx"),p(y,"SpecialCharsTr")):a},B.$$arity=1):c;a.alias(d,"sub_specialcharacters","sub_specialchars");a.def(d,"$sub_quotes",J=function(a){var b,e=c;null==this.document&&(this.document=c);f(p(y,"QuotedTextSniffRx")["$[]"](e=this.document.$compat_mode())["$match?"](a))&&N(p(y,"QUOTE_SUBS")["$[]"](e),"each",[],(b=function(e,
660
+ f,d){var g=b.$$s||this,n;null==e&&(e=c);null==f&&(f=c);null==d&&(d=c);return a=N(a,"gsub",[d],(n=function(){var a=n.$$s||this;null==u["~"]&&(u["~"]=c);return a.$convert_quoted_text(u["~"],e,f)},n.$$s=g,n.$$arity=0,n))},b.$$s=this,b.$$arity=3,b));return a},J.$$arity=1);a.def(d,"$sub_attributes",L=function(b,e){var d,g,h,k,l=c,r=c,v=c,q=c,A=c,t=c,T=c,m=c;null==this.document&&(this.document=c);null==e&&(e=n([],{}));l=this.document.$attributes();r=v=q=A=t=T=c;b=N(b,"gsub",[p(y,"AttributeReferenceRx")],
661
+ (d=function(){var b=d.$$s||this,g,n,h,k,m=c,K=c,S=c,W=c;null==b.document&&(b.document=c);return f(f(g=((n=u["~"])===c?c:n["$[]"](1))["$=="](p(y,"RS")))?g:((n=u["~"])===c?c:n["$[]"](4))["$=="](p(y,"RS")))?"{"+((g=u["~"])===c?c:g["$[]"](2))+"}":f((g=u["~"])===c?c:g["$[]"](3))?function(){m=(K=((g=u["~"])===c?c:g["$[]"](2)).$split(":",3)).$shift();return"set"["$==="](m)?(n=p(y,"Parser").$store_attribute(K["$[]"](0),f(h=K["$[]"](1))?h:"",b.document),g=a.to_ary(n),S=null==g[1]?c:g[1],n,f(f(g=S)?g:(t=f(n=
662
+ t)?n:f(h=l["$[]"]("attribute-undefined"))?h:p(y,"Compliance").$attribute_undefined())["$!="]("drop-line"))?r=A=p(y,"DEL"):r=v=p(y,"CAN")):"counter2"["$==="](m)?(N(b.document,"counter",a.to_a(K)),r=A=p(y,"DEL")):N(b.document,"counter",a.to_a(K))}():f(l["$key?"](W=((g=u["~"])===c?c:g["$[]"](2)).$downcase()))?l["$[]"](W):f(S=p(y,"INTRINSIC_ATTRIBUTES")["$[]"](W))?S:function(){m=T=f(g=T)?g:f(n=f(h=e["$[]"]("attribute_missing"))?h:l["$[]"]("attribute-missing"))?n:p(y,"Compliance").$attribute_missing();
663
+ if("drop"["$==="](m))return r=A=p(y,"DEL");if("drop-line"["$==="](m))return(q=f(g=q)?g:f(n=e["$[]"]("drop_line_severity"))?n:"info")["$=="]("info")&&N(b.$logger(),"info",[],(k=function(){return"dropping line containing reference to missing attribute: "+W},k.$$s=b,k.$$arity=0,k)),r=v=p(y,"CAN");"warn"["$==="](m)&&b.$logger().$warn("skipping reference to missing attribute: "+W);return(g=u["~"])===c?c:g["$[]"](0)}()},d.$$s=this,d.$$arity=0,d));return f(r)?f(A)?(m=b.$squeeze(p(y,"DEL")).$split(p(y,"LF"),
664
+ -1),f(v)?N(m,"reject",[],(g=function(a){var b,e,d;null==a&&(a=c);return f(b=f(e=f(d=a["$=="](p(y,"DEL")))?d:a["$=="](p(y,"CAN")))?e:a["$start_with?"](p(y,"CAN")))?b:a["$include?"](p(y,"CAN"))},g.$$s=this,g.$$arity=1,g)).$join(p(y,"LF")).$delete(p(y,"DEL")):N(m,"reject",[],(h=function(a){null==a&&(a=c);return a["$=="](p(y,"DEL"))},h.$$s=this,h.$$arity=1,h)).$join(p(y,"LF")).$delete(p(y,"DEL"))):f(b["$include?"](p(y,"LF")))?N(b.$split(p(y,"LF"),-1),"reject",[],(k=function(a){var b,e;null==a&&(a=c);
665
+ return f(b=f(e=a["$=="](p(y,"CAN")))?e:a["$start_with?"](p(y,"CAN")))?b:a["$include?"](p(y,"CAN"))},k.$$s=this,k.$$arity=1,k)).$join(p(y,"LF")):"":b},L.$$arity=-2);a.def(d,"$sub_replacements",x=function(a){var b;f(p(y,"ReplaceableTextRx")["$match?"](a))&&N(p(y,"REPLACEMENTS"),"each",[],(b=function(e,f,d){var g=b.$$s||this,n;null==e&&(e=c);null==f&&(f=c);null==d&&(d=c);return a=N(a,"gsub",[e],(n=function(){var a=n.$$s||this;null==u["~"]&&(u["~"]=c);return a.$do_replacement(u["~"],f,d)},n.$$s=g,n.$$arity=
666
+ 0,n))},b.$$s=this,b.$$arity=3,b));return a},x.$$arity=1);a.def(d,"$sub_macros",U=function(e){var d,h,l,r,v,A,m,T,S,B,J,L,x,V,ia,w=c,Q=c,ra=c,ab=c,K=c,aa=c,W=c;null==this.document&&(this.document=c);null==this.context&&(this.context=c);null==this.parent&&(this.parent=c);w=e["$include?"]("[");Q=e["$include?"](":");ra=f(d=w)?Q:d;ab=f(d=ra)?e["$include?"](":["):d;K=(aa=this.document).$attributes();f(f(d=W=aa.$extensions())?W["$inline_macros?"]():d)&&N(W.$inline_macros(),"each",[],(h=function(b){var d=
667
+ h.$$s||this,w;null==b&&(b=c);return e=N(e,"gsub",[b.$instance().$regexp()],(w=function(){var e=w.$$s||this,d,h,k,Ka=c,l=c,r=c,Q=c,v=c,q=c,A=c,t=c,X=c;null==u["~"]&&(u["~"]=c);if(f((Ka=(d=u["~"])===c?c:d["$[]"](0))["$start_with?"](p(y,"RS"))))return((d=u["~"])===c?c:d["$[]"](0)).$slice(1,((d=u["~"])===c?c:d["$[]"](0)).$length());if(f(u["~"].$names()["$empty?"]()))d=[(h=u["~"])===c?c:h["$[]"](1),(h=u["~"])===c?c:h["$[]"](2)];else{a:{try{var W=u["~"]["$[]"]("target");break a}catch(db){if(a.rescue(db,
668
+ [p(y,"StandardError")]))try{W=c;break a}finally{a.pop_exception()}else throw db;}W=void 0}d=W;a:{try{var m=u["~"]["$[]"]("content");break a}catch(db){if(a.rescue(db,[p(y,"StandardError")]))try{m=c;break a}finally{a.pop_exception()}else throw db;}m=void 0}d=[d,m]}l=d[0];r=d[1];d;Q=f(v=(q=b.$config())["$[]"]("default_attrs"))?v.$merge():n([],{});f(r)&&(f(r["$empty?"]())?q["$[]"]("content_model")["$=="]("attributes")||(A=["text",r],N(Q,"[]=",a.to_a(A)),A[g(A.length,1)]):(r=e.$normalize_text(r,!0,!0),
669
+ q["$[]"]("content_model")["$=="]("attributes")?e.$parse_attributes(r,f(d=f(h=q["$[]"]("positional_attrs"))?h:q["$[]"]("pos_attrs"))?d:[],n(["into"],{into:Q})):(A=["text",r],N(Q,"[]=",a.to_a(A)),A[g(A.length,1)])),l=f(d=l)?d:q["$[]"]("format")["$=="]("short")?r:l);return f(p(y,"Inline")["$==="](t=b.$process_method()["$[]"](e,l,Q)))?(f(f(d=X=t.$attributes().$delete("subs"))?X=e.$expand_subs(X,"custom inline macro"):d)&&(A=[e.$apply_subs(t.$text(),X)],N(t,"text=",a.to_a(A)),A[g(A.length,1)]),t.$convert()):
670
+ f(t)?(N(e.$logger(),"info",[],(k=function(){return"expected substitution value for custom inline macro to be of type Inline; got "+t.$class()+": "+Ka},k.$$s=e,k.$$arity=0,k)),t):""},w.$$s=d,w.$$arity=0,w))},h.$$s=this,h.$$arity=1,h));f(K["$key?"]("experimental"))&&(f(f(d=ab)?f(l=e["$include?"]("kbd:"))?l:e["$include?"]("btn:"):d)&&(e=N(e,"gsub",[p(y,"InlineKbdBtnMacroRx")],(r=function(){var e=r.$$s||this,d,w,h,l=c,Q=c,v=c;v=c;return f((d=u["~"])===c?c:d["$[]"](1))?((d=u["~"])===c?c:d["$[]"](0)).$slice(1,
671
+ ((d=u["~"])===c?c:d["$[]"](0)).$length()):((d=u["~"])===c?c:d["$[]"](2))["$=="]("kbd")?(f((l=((d=u["~"])===c?c:d["$[]"](3)).$strip())["$include?"](p(y,"R_SB")))&&(l=l.$gsub(p(y,"ESC_R_SB"),p(y,"R_SB"))),f(f(d=k(l.$length(),1))?Q=f(Q=l.$index(",",1))?[Q,l.$index("+",1)].$compact().$min():l.$index("+",1):d)?(v=l.$slice(Q,1),f(l["$end_with?"](v))?(l=N(l.$chop().$split(v,-1),"map",[],(w=function(a){null==a&&(a=c);return a.$strip()},w.$$s=e,w.$$arity=1,w)),v=[-1,b(l["$[]"](-1),v)],N(l,"[]=",a.to_a(v)),
672
+ v[g(v.length,1)]):l=N(l.$split(v),"map",[],(h=function(a){null==a&&(a=c);return a.$strip()},h.$$s=e,h.$$arity=1,h))):l=[l],p(y,"Inline").$new(e,"kbd",c,n(["attributes"],{attributes:n(["keys"],{keys:l})})).$convert()):p(y,"Inline").$new(e,"button",e.$normalize_text((d=u["~"])===c?c:d["$[]"](3),!0,!0)).$convert()},r.$$s=this,r.$$arity=0,r))),f(f(d=ra)?e["$include?"]("menu:"):d)&&(e=N(e,"gsub",[p(y,"InlineMenuMacroRx")],(v=function(){var a=v.$$s||this,b,e,d=c,g=c,w=c;w=g=c;if(f(((b=u["~"])===c?c:b["$[]"](0))["$start_with?"](p(y,
673
+ "RS"))))return((b=u["~"])===c?c:b["$[]"](0)).$slice(1,((b=u["~"])===c?c:b["$[]"](0)).$length());d=(b=u["~"])===c?c:b["$[]"](1);f(g=(b=u["~"])===c?c:b["$[]"](2))?(f(g["$include?"](p(y,"R_SB")))&&(g=g.$gsub(p(y,"ESC_R_SB"),p(y,"R_SB"))),f(w=f(g["$include?"]("&gt;"))?"&gt;":f(g["$include?"](","))?",":c)?(g=N(g.$split(w),"map",[],(e=function(a){null==a&&(a=c);return a.$strip()},e.$$s=a,e.$$arity=1,e)),w=g.$pop()):(b=[[],g.$rstrip()],g=b[0],w=b[1],b)):(b=[[],c],g=b[0],w=b[1],b);return p(y,"Inline").$new(a,
674
+ "menu",c,n(["attributes"],{attributes:n(["menu","submenus","menuitem"],{menu:d,submenus:g,menuitem:w})})).$convert()},v.$$s=this,v.$$arity=0,v))),f(f(d=e["$include?"]('"'))?e["$include?"]("&gt;"):d)&&(e=N(e,"gsub",[p(y,"InlineMenuRx")],(A=function(){var b=A.$$s||this,e,d,g,w=c,h=c;var k=c;if(f(((e=u["~"])===c?c:e["$[]"](0))["$start_with?"](p(y,"RS"))))return((e=u["~"])===c?c:e["$[]"](0)).$slice(1,((e=u["~"])===c?c:e["$[]"](0)).$length());k=N(((d=u["~"])===c?c:d["$[]"](1)).$split("&gt;"),"map",[],
675
+ (g=function(a){null==a&&(a=c);return a.$strip()},g.$$s=b,g.$$arity=1,g));e=a.to_ary(k);w=null==e[0]?c:e[0];h=t.call(e,1);k;k=h.$pop();return p(y,"Inline").$new(b,"menu",c,n(["attributes"],{attributes:n(["menu","submenus","menuitem"],{menu:w,submenus:h,menuitem:k})})).$convert()},A.$$s=this,A.$$arity=0,A))));f(f(d=ra)?f(l=e["$include?"]("image:"))?l:e["$include?"]("icon:"):d)&&(e=N(e,"gsub",[p(y,"InlineImageMacroRx")],(m=function(){var b=m.$$s||this,e,d,w,h=c;if(f(((e=u["~"])===c?c:e["$[]"](0))["$start_with?"](p(y,
676
+ "RS"))))return((e=u["~"])===c?c:e["$[]"](0)).$slice(1,((e=u["~"])===c?c:e["$[]"](0)).$length());f(((e=u["~"])===c?c:e["$[]"](0))["$start_with?"]("icon:"))?(e=["icon",["size"]],d=e[0],w=e[1]):(e=["image",["alt","width","height"]],d=e[0],w=e[1]);e;var k=(e=u["~"])===c?c:e["$[]"](1);w=b.$parse_attributes((e=u["~"])===c?c:e["$[]"](2),w,n(["unescape_input"],{unescape_input:!0}));d["$=="]("icon")||(aa.$register("images",k),h=["imagesdir",K["$[]"]("imagesdir")],N(w,"[]=",a.to_a(h)),h[g(h.length,1)]);f(e=
677
+ w["$[]"]("alt"))?e:(h=["alt",(h=["default-alt",p(y,"Helpers").$basename(k,!0).$tr("_-"," ")],N(w,"[]=",a.to_a(h)),h[g(h.length,1)])],N(w,"[]=",a.to_a(h)),h[g(h.length,1)]);return p(y,"Inline").$new(b,"image",c,n(["type","target","attributes"],{type:d,target:k,attributes:w})).$convert()},m.$$s=this,m.$$arity=0,m)));f(f(d=f(l=e["$include?"]("(("))?e["$include?"]("))"):l)?d:f(l=ab)?e["$include?"]("dexterm"):l)&&(e=N(e,"gsub",[p(y,"InlineIndextermMacroRx")],(T=function(){var b=T.$$s||this,e,d,w,h,k=c,
678
+ l=c,r=c,Q=c,v=c,q=c,A=c,W=c,m=c,K=c,S=c,ab=c,B=c,ra=c;return function(){k=(e=u["~"])===c?c:e["$[]"](1);if("indexterm"["$==="](k)){if(f(((e=u["~"])===c?c:e["$[]"](0))["$start_with?"](p(y,"RS"))))return((e=u["~"])===c?c:e["$[]"](0)).$slice(1,((e=u["~"])===c?c:e["$[]"](0)).$length());f((l=b.$normalize_text((e=u["~"])===c?c:e["$[]"](2),!0,!0))["$include?"]("="))?f(r=(Q=p(y,"AttributeList").$new(l,b).$parse())["$[]"](1))?(v=["terms",[r]],N(Q,"[]=",a.to_a(v)),v[g(v.length,1)],f(q=Q["$[]"]("see-also"))&&
679
+ (v=["see-also",function(){return f(q["$include?"](","))?N(q.$split(","),"map",[],(d=function(a){null==a&&(a=c);return a.$lstrip()},d.$$s=b,d.$$arity=1,d)):[q]}()],N(Q,"[]=",a.to_a(v)),v[g(v.length,1)])):Q=n(["terms"],{terms:l}):Q=n(["terms"],{terms:b.$split_simple_csv(l)});return p(y,"Inline").$new(b,"indexterm",c,n(["attributes"],{attributes:Q})).$convert()}if("indexterm2"["$==="](k)){if(f(((e=u["~"])===c?c:e["$[]"](0))["$start_with?"](p(y,"RS"))))return((e=u["~"])===c?c:e["$[]"](0)).$slice(1,((e=
680
+ u["~"])===c?c:e["$[]"](0)).$length());f((A=b.$normalize_text((e=u["~"])===c?c:e["$[]"](2),!0,!0))["$include?"]("="))&&(A=f(e=f(w=(Q=p(y,"AttributeList").$new(A,b).$parse())["$[]"](1))?w:Q=c)?e:A,f(f(e=Q)?q=Q["$[]"]("see-also"):e)&&(v=["see-also",function(){return f(q["$include?"](","))?N(q.$split(","),"map",[],(h=function(a){null==a&&(a=c);return a.$lstrip()},h.$$s=b,h.$$arity=1,h)):[q]}()],N(Q,"[]=",a.to_a(v)),v[g(v.length,1)]));return p(y,"Inline").$new(b,"indexterm",A,n(["attributes","type"],{attributes:Q,
681
+ type:"visible"})).$convert()}W=(e=u["~"])===c?c:e["$[]"](3);if(f(((e=u["~"])===c?c:e["$[]"](0))["$start_with?"](p(y,"RS"))))if(f(f(e=W["$start_with?"]("("))?W["$end_with?"](")"):e))W=W.$slice(1,g(W.$length(),2)),e=[!0,"(",")"],m=e[0],K=e[1],S=e[2],e;else return((e=u["~"])===c?c:e["$[]"](0)).$slice(1,((e=u["~"])===c?c:e["$[]"](0)).$length());else m=!0,f(W["$start_with?"]("("))?(f(W["$end_with?"](")"))?(e=[W.$slice(1,g(W.$length(),2)),!1],W=e[0],m=e[1]):(e=[W.$slice(1,W.$length()),"(",""],W=e[0],K=
682
+ e[1],S=e[2]),e):f(W["$end_with?"](")"))&&(e=[W.$chop(),"",")"],W=e[0],K=e[1],S=e[2],e);f(m)?(f((A=b.$normalize_text(W,!0))["$include?"](";&"))&&(f(A["$include?"](" &gt;&gt; "))?(w=A.$partition(" &gt;&gt; "),e=a.to_ary(w),A=null==e[0]?c:e[0],ab=null==e[2]?c:e[2],w,Q=n(["see"],{see:ab})):f(A["$include?"](" &amp;&gt; "))&&(w=A.$split(" &amp;&gt; "),e=a.to_ary(w),A=null==e[0]?c:e[0],q=t.call(e,1),w,Q=n(["see-also"],{"see-also":q}))),B=p(y,"Inline").$new(b,"indexterm",A,n(["attributes","type"],{attributes:Q,
683
+ type:"visible"})).$convert()):(Q=n([],{}),f((ra=b.$normalize_text(W,!0))["$include?"](";&"))&&(f(ra["$include?"](" &gt;&gt; "))?(w=ra.$partition(" &gt;&gt; "),e=a.to_ary(w),ra=null==e[0]?c:e[0],ab=null==e[2]?c:e[2],w,v=["see",ab],N(Q,"[]=",a.to_a(v)),v[g(v.length,1)]):f(ra["$include?"](" &amp;&gt; "))&&(w=ra.$split(" &amp;&gt; "),e=a.to_ary(w),ra=null==e[0]?c:e[0],q=t.call(e,1),w,v=["see-also",q],N(Q,"[]=",a.to_a(v)),v[g(v.length,1)])),v=["terms",b.$split_simple_csv(ra)],N(Q,"[]=",a.to_a(v)),v[g(v.length,
684
+ 1)],B=p(y,"Inline").$new(b,"indexterm",c,n(["attributes"],{attributes:Q})).$convert());return f(K)?""+K+B+S:B}()},T.$$s=this,T.$$arity=0,T)));f(f(d=Q)?e["$include?"]("://"):d)&&(e=N(e,"gsub",[p(y,"InlineLinkRx")],(S=function(){var e=S.$$s||this,d,w,h,k=c,l=c,r=c,Q=c;if(f((h=(d=u["~"])===c?c:d["$[]"](2))["$start_with?"](p(y,"RS"))))return""+((d=u["~"])===c?c:d["$[]"](1))+h.$slice(1,h.$length())+((d=u["~"])===c?c:d["$[]"](4));d=[(w=u["~"])===c?c:w["$[]"](1),""];var v=d[0];var q=d[1];d;if(f((d=u["~"])===
685
+ c?c:d["$[]"](4)))v["$=="]("link:")&&(v=""),f((k=(d=u["~"])===c?c:d["$[]"](4))["$empty?"]())&&(k=c);else{var A=v;if("link:"["$==="](A)||'"'["$==="](A)||"'"["$==="](A))return(d=u["~"])===c?c:d["$[]"](0);A=(d=u["~"])===c?c:d["$[]"](3);if(")"["$==="](A)||"?"["$==="](A)||"!"["$==="](A)){if(h=h.$chop(),f((d=(q=(w=u["~"])===c?c:w["$[]"](3))["$=="](")"))?h["$end_with?"](".","?","!"):(q=(w=u["~"])===c?c:w["$[]"](3))["$=="](")"))&&(q=b(h["$[]"](-1),q),h=h.$chop()),f(h["$end_with?"]("://")))return(d=u["~"])===
686
+ c?c:d["$[]"](0)}else if(";"["$==="](A)){if(f(f(d=v["$start_with?"]("&lt;"))?h["$end_with?"]("&gt;"):d)?(v=v.$slice(4,v.$length()),h=h.$slice(0,g(h.$length(),4))):f((h=h.$chop())["$end_with?"](")"))?(h=h.$chop(),q=");"):q=";",f(h["$end_with?"]("://")))return(d=u["~"])===c?c:d["$[]"](0)}else if(":"["$==="](A)&&(f((h=h.$chop())["$end_with?"](")"))?(h=h.$chop(),q="):"):q=":",f(h["$end_with?"]("://"))))return(d=u["~"])===c?c:d["$[]"](0)}d=[c,n(["type"],{type:"link"})];A=d[0];var t=d[1];d;f(k)?(f(k["$include?"](p(y,
687
+ "R_SB")))&&(l=k=k.$gsub(p(y,"ESC_R_SB"),p(y,"R_SB"))),f(f(d=aa.$compat_mode()["$!"]())?k["$include?"]("="):d)&&(w=e.$extract_attributes_from_text(k,""),d=a.to_ary(w),k=null==d[0]?c:d[0],A=null==d[1]?c:d[1],w,l=k,r=["id",A["$[]"]("id")],N(t,"[]=",a.to_a(r)),r[g(r.length,1)]),f(k["$end_with?"]("^"))&&(l=k=k.$chop(),f(A)?f(d=A["$[]"]("window"))?d:(r=["window","_blank"],N(A,"[]=",a.to_a(r)),r[g(r.length,1)]):A=n(["window"],{window:"_blank"})),f(f(d=l)?l["$empty?"]():d)&&(k=f(K["$key?"]("hide-uri-scheme"))?
688
+ h.$sub(p(y,"UriSniffRx"),""):h,Q=!0)):(k=f(K["$key?"]("hide-uri-scheme"))?h.$sub(p(y,"UriSniffRx"),""):h,Q=!0);f(Q)&&(f(A)?(r=["role",f(A["$key?"]("role"))?"bare "+A["$[]"]("role"):"bare"],N(A,"[]=",a.to_a(r)),r[g(r.length,1)]):A=n(["role"],{role:"bare"}));aa.$register("links",(r=["target",h],N(t,"[]=",a.to_a(r)),r[g(r.length,1)]));f(A)&&(r=["attributes",A],N(t,"[]=",a.to_a(r)),r[g(r.length,1)]);return""+v+p(y,"Inline").$new(e,"anchor",k,t).$convert()+q},S.$$s=this,S.$$arity=0,S)));f(f(d=ra)?f(l=
689
+ e["$include?"]("link:"))?l:e["$include?"]("ilto:"):d)&&(e=N(e,"gsub",[p(y,"InlineLinkMacroRx")],(B=function(){var e=B.$$s||this,d,w,h=c,k;var l=c;if(f(((d=u["~"])===c?c:d["$[]"](0))["$start_with?"](p(y,"RS"))))return((d=u["~"])===c?c:d["$[]"](0)).$slice(1,((d=u["~"])===c?c:d["$[]"](0)).$length());var r=f(w=(d=u["~"])===c?c:d["$[]"](1))?b("mailto:",h=(d=u["~"])===c?c:d["$[]"](2)):(d=u["~"])===c?c:d["$[]"](2);d=[c,n(["type"],{type:"link"})];var Q=d[0];var v=d[1];d;f((k=(d=u["~"])===c?c:d["$[]"](3))["$empty?"]())||
690
+ (f(k["$include?"](p(y,"R_SB")))&&(k=k.$gsub(p(y,"ESC_R_SB"),p(y,"R_SB"))),f(w)?f(f(d=aa.$compat_mode()["$!"]())?k["$include?"](","):d)&&(l=e.$extract_attributes_from_text(k,""),d=a.to_ary(l),k=null==d[0]?c:d[0],Q=null==d[1]?c:d[1],l,l=["id",Q["$[]"]("id")],N(v,"[]=",a.to_a(l)),l[g(l.length,1)],f(Q["$key?"](2))&&(r=f(Q["$key?"](3))?""+r+"?subject="+p(y,"Helpers").$encode_uri_component(Q["$[]"](2))+"&amp;body="+p(y,"Helpers").$encode_uri_component(Q["$[]"](3)):""+r+"?subject="+p(y,"Helpers").$encode_uri_component(Q["$[]"](2)))):
691
+ f(f(d=aa.$compat_mode()["$!"]())?k["$include?"]("="):d)&&(l=e.$extract_attributes_from_text(k,""),d=a.to_ary(l),k=null==d[0]?c:d[0],Q=null==d[1]?c:d[1],l,l=["id",Q["$[]"]("id")],N(v,"[]=",a.to_a(l)),l[g(l.length,1)]),f(k["$end_with?"]("^"))&&(k=k.$chop(),f(Q)?f(d=Q["$[]"]("window"))?d:(l=["window","_blank"],N(Q,"[]=",a.to_a(l)),l[g(l.length,1)]):Q=n(["window"],{window:"_blank"})));f(k["$empty?"]())&&(f(w)?k=h:(f(K["$key?"]("hide-uri-scheme"))?f((k=r.$sub(p(y,"UriSniffRx"),""))["$empty?"]())&&(k=r):
692
+ k=r,f(Q)?(l=["role",f(Q["$key?"]("role"))?"bare "+Q["$[]"]("role"):"bare"],N(Q,"[]=",a.to_a(l)),l[g(l.length,1)]):Q=n(["role"],{role:"bare"})));aa.$register("links",(l=["target",r],N(v,"[]=",a.to_a(l)),l[g(l.length,1)]));f(Q)&&(l=["attributes",Q],N(v,"[]=",a.to_a(l)),l[g(l.length,1)]);return p(y,"Inline").$new(e,"anchor",k,v).$convert()},B.$$s=this,B.$$arity=0,B)));f(e["$include?"]("@"))&&(e=N(e,"gsub",[p(y,"InlineEmailRx")],(J=function(){var a=J.$$s||this,e,d;if(f((e=u["~"])===c?c:e["$[]"](1)))return((e=
693
+ u["~"])===c?c:e["$[]"](1))["$=="](p(y,"RS"))?((e=u["~"])===c?c:e["$[]"](0)).$slice(1,((e=u["~"])===c?c:e["$[]"](0)).$length()):(e=u["~"])===c?c:e["$[]"](0);var g=b("mailto:",d=(e=u["~"])===c?c:e["$[]"](0));aa.$register("links",g);return p(y,"Inline").$new(a,"anchor",d,n(["type","target"],{type:"link",target:g})).$convert()},J.$$s=this,J.$$arity=0,J)));f(f(d=f(l=w)?this.context["$=="]("list_item"):l)?this.parent.$style()["$=="]("bibliography"):d)&&(e=N(e,"sub",[p(y,"InlineBiblioAnchorRx")],(L=function(){var a=
694
+ L.$$s||this,b;return p(y,"Inline").$new(a,"anchor",(b=u["~"])===c?c:b["$[]"](2),n(["type","id"],{type:"bibref",id:(b=u["~"])===c?c:b["$[]"](1)})).$convert()},L.$$s=this,L.$$arity=0,L)));f(f(d=f(l=w)?e["$include?"]("[["):l)?d:f(l=ra)?e["$include?"]("or:"):l)&&(e=N(e,"gsub",[p(y,"InlineAnchorRx")],(x=function(){var a=x.$$s||this,b,e,d,g=c;if(f((b=u["~"])===c?c:b["$[]"](1)))return((b=u["~"])===c?c:b["$[]"](0)).$slice(1,((b=u["~"])===c?c:b["$[]"](0)).$length());f(d=(b=u["~"])===c?c:b["$[]"](2))?g=(b=
695
+ u["~"])===c?c:b["$[]"](3):(d=(b=u["~"])===c?c:b["$[]"](4),f(f(b=g=(e=u["~"])===c?c:e["$[]"](5))?g["$include?"](p(y,"R_SB")):b)&&(g=g.$gsub(p(y,"ESC_R_SB"),p(y,"R_SB"))));return p(y,"Inline").$new(a,"anchor",g,n(["type","id"],{type:"ref",id:d})).$convert()},x.$$s=this,x.$$arity=0,x)));f(f(d=f(l=e["$include?"]("&"))?e["$include?"](";&l"):l)?d:f(l=ra)?e["$include?"]("xref:"):l)&&(e=N(e,"gsub",[p(y,"InlineXrefMacroRx")],(V=function(){var e=V.$$s||this,d,w,h=c,l=c,r=c,Q,v,q=v=c,A=c;if(f(((d=u["~"])===
696
+ c?c:d["$[]"](0))["$start_with?"](p(y,"RS"))))return((d=u["~"])===c?c:d["$[]"](0)).$slice(1,((d=u["~"])===c?c:d["$[]"](0)).$length());var t=n([],{});if(f(w=(d=u["~"])===c?c:d["$[]"](1))){if(f(w["$include?"](","))){var W=w.$partition(",");d=a.to_ary(W);w=null==d[0]?c:d[0];h=null==d[2]?c:d[2];W;f((h=h.$lstrip())["$empty?"]())&&(h=c)}}else l=!0,w=(d=u["~"])===c?c:d["$[]"](2),f(h=(d=u["~"])===c?c:d["$[]"](3))&&(f(h["$include?"](p(y,"R_SB")))&&(h=h.$gsub(p(y,"ESC_R_SB"),p(y,"R_SB"))),f(f(d=aa.$compat_mode()["$!"]())?
697
+ h["$include?"]("="):d)&&(W=e.$extract_attributes_from_text(h),d=a.to_ary(W),h=null==d[0]?c:d[0],t=null==d[1]?c:d[1],W));f(aa.$compat_mode())?r=w:f(Q=w.$index("#"))?f(k(Q,0))?(f(k(v=g(g(w.$length(),1),Q),0))?(d=[w.$slice(0,Q),w.$slice(b(Q,1),v)],v=d[0],r=d[1],d):v=w.$chop(),f(l)?f(v["$end_with?"](".adoc"))?q=v=v.$slice(0,g(v.$length(),5)):f(p(y,"Helpers")["$extname?"](v)["$!"]())&&(q=v):q=f(N(v,"end_with?",a.to_a(p(y,"ASCIIDOC_EXTENSIONS").$keys())))?v=v.$slice(0,v.$rindex(".")):v):(d=[w,w.$slice(1,
698
+ w.$length())],A=d[0],r=d[1],d):f(l)?f(w["$end_with?"](".adoc"))?q=v=w.$slice(0,g(w.$length(),5)):f(p(y,"Helpers")["$extname?"](w))?v=w:r=w:r=w;f(A)?(w=r,f(f(d=e.$logger()["$info?"]())?aa.$catalog()["$[]"]("refs")["$[]"](w)["$!"]():d)&&e.$logger().$info("possible invalid reference: "+w)):f(v)?f(f(d=q)?f(W=aa.$attributes()["$[]"]("docname")["$=="](v))?W:aa.$catalog()["$[]"]("includes")["$[]"](v):d)?f(r)?(d=[r,c,"#"+r],w=d[0],v=d[1],A=d[2],d,f(f(d=e.$logger()["$info?"]())?aa.$catalog()["$[]"]("refs")["$[]"](w)["$!"]():
699
+ d)&&e.$logger().$info("possible invalid reference: "+w)):(d=[c,c,"#"],w=d[0],v=d[1],A=d[2],d):(d=[v,""+(f(W=aa.$attributes()["$[]"]("relfileprefix"))?W:"")+v+(f(q)?aa.$attributes().$fetch("relfilesuffix",aa.$outfilesuffix()):"")],w=d[0],v=d[1],d,f(r)?(d=[""+w+"#"+r,""+v+"#"+r],w=d[0],A=d[1],d):A=v):f(f(d=aa.$compat_mode())?d:p(y,"Compliance").$natural_xrefs()["$!"]())?(d=[r,"#"+r],w=d[0],A=d[1],d,f(f(d=e.$logger()["$info?"]())?aa.$catalog()["$[]"]("refs")["$[]"](w)["$!"]():d)&&e.$logger().$info("possible invalid reference: "+
700
+ w)):f(aa.$catalog()["$[]"]("refs")["$[]"](r))?(d=[r,"#"+r],w=d[0],A=d[1],d):f(f(d=f(W=r["$include?"](" "))?W:r.$downcase()["$!="](r))?w=aa.$resolve_id(r):d)?(d=[w,"#"+w],r=d[0],A=d[1],d):(d=[r,"#"+r],w=d[0],A=d[1],d,f(e.$logger()["$info?"]())&&e.$logger().$info("possible invalid reference: "+w));d=["path",v];N(t,"[]=",a.to_a(d));d[g(d.length,1)];d=["fragment",r];N(t,"[]=",a.to_a(d));d[g(d.length,1)];d=["refid",w];N(t,"[]=",a.to_a(d));d[g(d.length,1)];return p(y,"Inline").$new(e,"anchor",h,n(["type",
701
+ "target","attributes"],{type:"xref",target:A,attributes:t})).$convert()},V.$$s=this,V.$$arity=0,V)));f(f(d=ra)?e["$include?"]("tnote"):d)&&(e=N(e,"gsub",[p(y,"InlineFootnoteMacroRx")],(ia=function(){var b=ia.$$s||this,e,d,g,w,h=c,k=c,l=d=c,r=d=c;if(f(((e=u["~"])===c?c:e["$[]"](0))["$start_with?"](p(y,"RS"))))return((e=u["~"])===c?c:e["$[]"](0)).$slice(1,((e=u["~"])===c?c:e["$[]"](0)).$length());if(f((e=u["~"])===c?c:e["$[]"](1)))if(f((e=u["~"])===c?c:e["$[]"](3)))d=((g=u["~"])===c?c:g["$[]"](3)).$split(",",
702
+ 2),e=a.to_ary(d),h=null==e[0]?c:e[0],k=null==e[1]?c:e[1],d,f(aa.$compat_mode())||b.$logger().$warn("found deprecated footnoteref macro: "+((e=u["~"])===c?c:e["$[]"](0))+"; use footnote macro with target instead");else return(e=u["~"])===c?c:e["$[]"](0);else h=(e=u["~"])===c?c:e["$[]"](2),k=(e=u["~"])===c?c:e["$[]"](3);if(f(h))f(d=N(aa.$footnotes(),"find",[],(w=function(a){null==a&&(a=c);return a.$id()["$=="](h)},w.$$s=b,w.$$arity=1,w)))?(e=[d.$index(),d.$text()],l=e[0],k=e[1],e,e=["xref",h,c],d=e[0],
703
+ r=e[1],h=e[2]):f(k)?(k=b.$restore_passthroughs(b.$normalize_text(k,!0,!0)),l=aa.$counter("footnote-number"),aa.$register("footnotes",q(p(y,"Document"),"Footnote").$new(l,h,k)),e=["ref",c],d=e[0],r=e[1]):(b.$logger().$warn("invalid footnote reference: "+h),e=["xref",h,h,c],d=e[0],r=e[1],k=e[2],h=e[3]),e;else if(f(k))k=b.$restore_passthroughs(b.$normalize_text(k,!0,!0)),l=aa.$counter("footnote-number"),aa.$register("footnotes",q(p(y,"Document"),"Footnote").$new(l,h,k)),d=r=c;else return(e=u["~"])===
704
+ c?c:e["$[]"](0);return p(y,"Inline").$new(b,"footnote",k,n(["attributes","id","target","type"],{attributes:n(["index"],{index:l}),id:h,target:r,type:d})).$convert()},ia.$$s=this,ia.$$arity=0,ia)));return e},U.$$arity=1);a.def(d,"$sub_post_replacements",D=function(a){var b,e,d,h=c,k=c;null==this.attributes&&(this.attributes=c);null==this.document&&(this.document=c);if(f(f(b=this.attributes["$[]"]("hardbreaks-option"))?b:this.document.$attributes()["$[]"]("hardbreaks-option"))){h=a.$split(p(y,"LF"),
705
+ -1);if(f(l(h.$size(),2)))return a;k=h.$pop();return N(h,"map",[],(e=function(a){var b=e.$$s||this;null==a&&(a=c);return p(y,"Inline").$new(b,"break",f(a["$end_with?"](p(y,"HARD_LINE_BREAK")))?a.$slice(0,g(a.$length(),2)):a,n(["type"],{type:"line"})).$convert()},e.$$s=this,e.$$arity=1,e))["$<<"](k).$join(p(y,"LF"))}return f(f(b=a["$include?"](p(y,"PLUS")))?a["$include?"](p(y,"HARD_LINE_BREAK")):b)?N(a,"gsub",[p(y,"HardLineBreakRx")],(d=function(){var a=d.$$s||this,b;return p(y,"Inline").$new(a,"break",
706
+ (b=u["~"])===c?c:b["$[]"](1),n(["type"],{type:"line"})).$convert()},d.$$s=this,d.$$arity=0,d)):a},D.$$arity=1);a.def(d,"$sub_source",z=function(a,b){return f(b)?this.$sub_callouts(this.$sub_specialchars(a)):this.$sub_specialchars(a)},z.$$arity=2);a.def(d,"$sub_callouts",C=function(a){var e,d=c,g=c;d=f(this["$attr?"]("line-comment"))?p(y,"CalloutSourceRxMap")["$[]"](this.$attr("line-comment")):p(y,"CalloutSourceRx");g=0;return N(a,"gsub",[d],(e=function(){var a=e.$$s||this,d,h;null==a.document&&(a.document=
707
+ c);return f((d=u["~"])===c?c:d["$[]"](2))?((d=u["~"])===c?c:d["$[]"](0)).$sub(p(y,"RS"),""):p(y,"Inline").$new(a,"callout",((d=u["~"])===c?c:d["$[]"](4))["$=="](".")?(g=b(g,1)).$to_s():(d=u["~"])===c?c:d["$[]"](4),n(["id","attributes"],{id:a.document.$callouts().$read_next_id(),attributes:n(["guard"],{guard:f(d=(h=u["~"])===c?c:h["$[]"](1))?d:((h=u["~"])===c?c:h["$[]"](3))["$=="]("--")?["\x3c!--","--\x3e"]:c})})).$convert()},e.$$s=this,e.$$arity=0,e))},C.$$arity=1);a.def(d,"$highlight_source",ka=
708
+ function(b,e){var d,g,h=c,k=c,r,v=c,q=c;null==this.document&&(this.document=c);null==this.passthroughs&&(this.passthroughs=c);if(!f(f(d=h=this.document.$syntax_highlighter())?h["$highlight?"]():d))return this.$sub_source(b,e);if(f(e)){var A=this.$extract_callouts(b);d=a.to_ary(A);b=null==d[0]?c:d[0];k=null==d[1]?c:d[1];A}e=this.document.$attributes();var t=h.$name();f(f(d=r=f(this["$attr?"]("linenums"))?(f(A=e["$[]"](""+t+"-linenums-mode"))?A:"table").$to_sym():c)?l(v=this.$attr("start",1).$to_i(),
709
+ 1):d)&&(v=1);f(this["$attr?"]("highlight"))&&(q=this.$resolve_lines_to_highlight(b,this.$attr("highlight"),v));A=h.$highlight(this,b,this.$attr("language"),n("callouts css_mode highlight_lines number_lines start_line_number style".split(" "),{callouts:k,css_mode:(f(g=e["$[]"](""+t+"-css"))?g:"class").$to_sym(),highlight_lines:q,number_lines:r,start_line_number:v,style:e["$[]"](""+t+"-style")}));d=a.to_ary(A);b=null==d[0]?c:d[0];d=null==d[1]?c:d[1];A;f(this.passthroughs["$empty?"]())||(b=b.$gsub(p(y,
710
+ "HighlightedPassSlotRx"),""+p(y,"PASS_START")+"\\1"+p(y,"PASS_END")));return f(k["$nil_or_empty?"]())?b:this.$restore_callouts(b,k,d)},ka.$$arity=2);a.def(d,"$resolve_lines_to_highlight",fa=function(e,d,n){var h,k,r=c,v=c;null==n&&(n=c);r=[];f(d["$include?"](" "))&&(d=d.$delete(" "));N(f(d["$include?"](","))?d.$split(","):d.$split(";"),"map",[],(h=function(d){var n,h=c;var k=c;null==d&&(d=c);f(d["$start_with?"]("!"))&&(d=d.$slice(1,d.$length()),h=!0);if(f(n=f(d["$include?"](".."))?"..":f(d["$include?"]("-"))?
711
+ "-":c)){n=d.$partition(n);d=a.to_ary(n);k=null==d[0]?c:d[0];var v=null==d[2]?c:d[2];n;f(f(d=v["$empty?"]())?d:l(v=v.$to_i(),0))&&(v=b(e.$count(p(y,"LF")),1));return f(h)?r=g(r,a.Range.$new(k.$to_i(),v,!1).$to_a()):r=r["$|"](a.Range.$new(k.$to_i(),v,!1).$to_a())}return f(h)?r.$delete(d.$to_i()):f(r["$include?"](k=d.$to_i())["$!"]())?r["$<<"](k):c},h.$$s=this,h.$$arity=1,h));(v=f(n)?g(n,1):0)["$=="](0)||(r=N(r,"map",[],(k=function(a){null==a&&(a=c);return g(a,v)},k.$$s=this,k.$$arity=1,k)));return r.$sort()},
712
+ fa.$$arity=-3);a.def(d,"$extract_passthroughs",I=function(b){var e,d,h,l,v,q=c,A=c,t=c,m=c,T=c;null==this.document&&(this.document=c);null==this.passthroughs&&(this.passthroughs=c);q=this.document.$compat_mode();A=this.passthroughs;f(f(e=f(d=b["$include?"]("++"))?d:b["$include?"]("$$"))?e:b["$include?"]("ss:"))&&(b=N(b,"gsub",[p(y,"InlinePassMacroRx")],(h=function(){var b=h.$$s||this,e,d,l,v,w=c,Q=c,t=c,m=l=c;if(f(d=(e=u["~"])===c?c:e["$[]"](4))){if(f(f(e=q)?d["$=="]("++"):e))return(f((e=u["~"])===
713
+ c?c:e["$[]"](2))?""+((e=u["~"])===c?c:e["$[]"](1))+"["+((e=u["~"])===c?c:e["$[]"](2))+"]"+((e=u["~"])===c?c:e["$[]"](3)):""+((e=u["~"])===c?c:e["$[]"](1))+((e=u["~"])===c?c:e["$[]"](3)))+"++"+b.$extract_passthroughs((e=u["~"])===c?c:e["$[]"](5))+"++";if(f(l=(e=u["~"])===c?c:e["$[]"](2))){if(f(k(v=((e=u["~"])===c?c:e["$[]"](3)).$length(),0)))return""+((e=u["~"])===c?c:e["$[]"](1))+"["+l+"]"+r(p(y,"RS"),g(v,1))+d+((e=u["~"])===c?c:e["$[]"](5))+d;((e=u["~"])===c?c:e["$[]"](1))["$=="](p(y,"RS"))?w="["+
714
+ l+"]":(f((e=d["$=="]("++"))?l["$end_with?"]("x-"):d["$=="]("++"))&&(Q=!0,l=l.$slice(0,g(l.$length(),2))),t=b.$parse_quoted_text_attributes(l))}else if(f(k(v=((e=u["~"])===c?c:e["$[]"](3)).$length(),0)))return""+r(p(y,"RS"),g(v,1))+d+((e=u["~"])===c?c:e["$[]"](5))+d;l=d["$=="]("+++")?[]:p(y,"BASIC_SUBS");b=f(t)?f(Q)?[m=A.$size(),n(["text","subs","type","attributes"],{text:(e=u["~"])===c?c:e["$[]"](5),subs:p(y,"NORMAL_SUBS"),type:"monospaced",attributes:t})]:[m=A.$size(),n(["text","subs","type","attributes"],
715
+ {text:(e=u["~"])===c?c:e["$[]"](5),subs:l,type:"unquoted",attributes:t})]:[m=A.$size(),n(["text","subs"],{text:(e=u["~"])===c?c:e["$[]"](5),subs:l})]}else{if(((e=u["~"])===c?c:e["$[]"](6))["$=="](p(y,"RS")))return((e=u["~"])===c?c:e["$[]"](0)).$slice(1,((e=u["~"])===c?c:e["$[]"](0)).$length());b=f(l=(e=u["~"])===c?c:e["$[]"](7))?[m=A.$size(),n(["text","subs"],{text:b.$normalize_text((e=u["~"])===c?c:e["$[]"](8),c,!0),subs:b.$resolve_pass_subs(l)})]:[m=A.$size(),n(["text"],{text:b.$normalize_text((e=
716
+ u["~"])===c?c:e["$[]"](8),c,!0)})]}N(A,"[]=",a.to_a(b));b[g(b.length,1)];return""+(f(e=w)?e:"")+p(y,"PASS_START")+m+p(y,"PASS_END")},h.$$s=this,h.$$arity=0,h)));d=p(y,"InlinePassRx")["$[]"](q);e=a.to_ary(d);t=null==e[0]?c:e[0];m=null==e[1]?c:e[1];T=null==e[2]?c:e[2];d;f(f(e=b["$include?"](t))?e:f(d=m)?b["$include?"](m):d)&&(b=N(b,"gsub",[T],(l=function(){var b=l.$$s||this,e,d,h=c,k=c,w=c;var r=(e=u["~"])===c?c:e["$[]"](1);var v=(e=u["~"])===c?c:e["$[]"](2);f((d=(e=u["~"])===c?c:e["$[]"](3))["$start_with?"](p(y,
717
+ "RS")))&&(h=p(y,"RS"));var t=(e=u["~"])===c?c:e["$[]"](4);var m=(e=u["~"])===c?c:e["$[]"](5);f(q)?k=!0:f(k=f(e=v)?v["$end_with?"]("x-"):e)&&(v=v.$slice(0,g(v.$length(),2)));if(f(v)){if(f(t["$=="]("`")?k["$!"]():t["$=="]("`")))return b.$extract_inner_passthrough(m,""+r+"["+v+"]"+h);if(f(h))return""+r+"["+v+"]"+d.$slice(1,d.$length());r["$=="](p(y,"RS"))?r="["+v+"]":w=b.$parse_quoted_text_attributes(v)}else{if(f(t["$=="]("`")?k["$!"]():t["$=="]("`")))return b.$extract_inner_passthrough(m,""+r+h);if(f(h))return""+
718
+ r+d.$slice(1,d.$length())}f(q)?m=[b=A.$size(),n(["text","subs","attributes","type"],{text:m,subs:p(y,"BASIC_SUBS"),attributes:w,type:"monospaced"})]:f(w)?f(k)?(e=t["$=="]("`")?p(y,"BASIC_SUBS"):p(y,"NORMAL_SUBS"),m=[b=A.$size(),n(["text","subs","attributes","type"],{text:m,subs:e,attributes:w,type:"monospaced"})]):m=[b=A.$size(),n(["text","subs","attributes","type"],{text:m,subs:p(y,"BASIC_SUBS"),attributes:w,type:"unquoted"})]:m=[b=A.$size(),n(["text","subs"],{text:m,subs:p(y,"BASIC_SUBS")})];N(A,
719
+ "[]=",a.to_a(m));m[g(m.length,1)];return""+r+p(y,"PASS_START")+b+p(y,"PASS_END")},l.$$s=this,l.$$arity=0,l)));f(f(e=b["$include?"](":"))?f(d=b["$include?"]("stem:"))?d:b["$include?"]("math:"):e)&&(b=N(b,"gsub",[p(y,"InlineStemMacroRx")],(v=function(){var b=v.$$s||this,e,d;null==b.document&&(b.document=c);if(f(((e=u["~"])===c?c:e["$[]"](0))["$start_with?"](p(y,"RS"))))return((e=u["~"])===c?c:e["$[]"](0)).$slice(1,((e=u["~"])===c?c:e["$[]"](0)).$length());(d=((e=u["~"])===c?c:e["$[]"](1)).$to_sym())["$=="]("stem")&&
720
+ (d=p(y,"STEM_TYPE_ALIASES")["$[]"](b.document.$attributes()["$[]"]("stem")).$to_sym());var h=(e=u["~"])===c?c:e["$[]"](2);var k=b.$normalize_text((e=u["~"])===c?c:e["$[]"](3),c,!0);f(f(e=d["$=="]("latexmath")?k["$start_with?"]("$"):d["$=="]("latexmath"))?k["$end_with?"]("$"):e)&&(k=k.$slice(1,g(k.$length(),2)));h=f(h)?b.$resolve_pass_subs(h):f(b.document["$basebackend?"]("html"))?p(y,"BASIC_SUBS"):c;d=[b=A.$size(),n(["text","subs","type"],{text:k,subs:h,type:d})];N(A,"[]=",a.to_a(d));d[g(d.length,
721
+ 1)];return""+p(y,"PASS_START")+b+p(y,"PASS_END")},v.$$s=this,v.$$arity=0,v)));return b},I.$$arity=1);a.def(d,"$restore_passthroughs",E=function(a){var b,e=c;null==this.passthroughs&&(this.passthroughs=c);e=this.passthroughs;return N(a,"gsub",[p(y,"PassSlotRx")],(b=function(){var d=b.$$s||this,g,h,k,l,r=c;if(f(h=e["$[]"](((g=u["~"])===c?c:g["$[]"](1)).$to_i())))return g=d.$apply_subs(h["$[]"]("text"),h["$[]"]("subs")),f(k=h["$[]"]("type"))&&(f(l=h["$[]"]("attributes"))&&(r=l["$[]"]("id")),g=p(y,"Inline").$new(d,
722
+ "quoted",g,n(["type","id","attributes"],{type:k,id:r,attributes:l})).$convert()),f(g["$include?"](p(y,"PASS_START")))?d.$restore_passthroughs(g):g;d.$logger().$error("unresolved passthrough detected: "+a);return"??pass??"},b.$$s=this,b.$$arity=0,b))},E.$$arity=1);a.def(d,"$resolve_subs",H=function(a,e,d,n){var h,l=c,r=c,v=c,A=c;null==e&&(e="block");null==d&&(d=c);null==n&&(n=c);if(f(a["$nil_or_empty?"]()))return c;l=c;f(a["$include?"](" "))&&(a=a.$delete(" "));r=p(y,"SubModifierSniffRx")["$match?"](a);
723
+ N(a.$split(","),"each",[],(h=function(a){var n,h,k=c;null==a&&(a=c);var v=c;f(r)&&((n=a.$chr())["$=="]("+")?(v="append",a=a.$slice(1,a.$length())):n["$=="]("-")?(v="remove",a=a.$slice(1,a.$length())):f(a["$end_with?"]("+"))&&(v="prepend",a=a.$chop()));a=a.$to_sym();f((n=e["$=="]("inline"))?f(h=a["$=="]("verbatim"))?h:a["$=="]("v"):e["$=="]("inline"))?a=p(y,"BASIC_SUBS"):f(p(y,"SUB_GROUPS")["$key?"](a))?a=p(y,"SUB_GROUPS")["$[]"](a):f(f(n=e["$=="]("inline")?a.$length()["$=="](1):e["$=="]("inline"))?
724
+ p(y,"SUB_HINTS")["$key?"](a):n)?(a=p(y,"SUB_HINTS")["$[]"](a),a=f(k=p(y,"SUB_GROUPS")["$[]"](a))?k:[a]):a=[a];if(f(v))return l=f(n=l)?n:f(d)?d.$drop(0):[],"append"["$==="](v)?l=b(l,a):"prepend"["$==="](v)?l=b(a,l):"remove"["$==="](v)?l=g(l,a):c;l=f(n=l)?n:[];return l=b(l,a)},h.$$s=this,h.$$arity=1,h));if(!f(l))return c;v=l["$&"](p(y,"SUB_OPTIONS")["$[]"](e));f(g(l,v)["$empty?"]())||(A=g(l,v),this.$logger().$warn("invalid substitution type"+(f(k(A.$size(),1))?"s":"")+(f(n)?" for ":"")+n+": "+A.$join(", ")));
725
+ return v},H.$$arity=-2);a.def(d,"$resolve_block_subs",G=function(a,b,c){return this.$resolve_subs(a,"block",b,c)},G.$$arity=3);a.def(d,"$resolve_pass_subs",qa=function(a){return this.$resolve_subs(a,"inline",c,"passthrough macro")},qa.$$arity=1);a.def(d,"$expand_subs",F=function(a,e){var d,g,n=this,h=c,k=c;null==e&&(e=c);return function(){h=a;return q("::","Symbol")["$==="](h)?a["$=="]("none")?c:f(d=p(y,"SUB_GROUPS")["$[]"](a))?d:[a]:q("::","Array")["$==="](h)?(k=[],N(a,"each",[],(g=function(a){var e;
726
+ null==a&&(a=c);return a["$=="]("none")?c:f(e=p(y,"SUB_GROUPS")["$[]"](a))?k=b(k,e):k["$<<"](a)},g.$$s=n,g.$$arity=1,g)),f(k["$empty?"]())?c:k):n.$resolve_subs(a,"inline",c,e)}()},F.$$arity=-2);a.def(d,"$commit_subs",da=function(){var b,e,d,n,h=c,k=c,l=c;null==this.default_subs&&(this.default_subs=c);null==this.content_model&&(this.content_model=c);null==this.context&&(this.context=c);null==this.subs&&(this.subs=c);null==this.attributes&&(this.attributes=c);null==this.style&&(this.style=c);null==this.document&&
727
+ (this.document=c);if(!f(n=this.default_subs))if(n=this.content_model,"simple"["$==="](n))n=p(y,"NORMAL_SUBS");else if("verbatim"["$==="](n))n=this.context["$=="]("verse")?p(y,"NORMAL_SUBS"):p(y,"VERBATIM_SUBS");else if("raw"["$==="](n))n=this.context["$=="]("stem")?p(y,"BASIC_SUBS"):p(y,"NO_SUBS");else return this.subs;f(h=this.attributes["$[]"]("subs"))?this.subs=f(b=this.$resolve_block_subs(h,n,this.context))?b:[]:this.subs=n.$drop(0);f(f(b=f(e=f(d=this.context["$=="]("listing")?this.style["$=="]("source"):
728
+ this.context["$=="]("listing"))?k=this.document.$syntax_highlighter():d)?k["$highlight?"]():e)?l=this.subs.$index("specialcharacters"):b)&&(b=[l,"highlight"],N(this.subs,"[]=",a.to_a(b)),b[g(b.length,1)]);return c},da.$$arity=0);a.def(d,"$parse_attributes",na=function(a,b,e){var d,g=c,h=c;null==this.document&&(this.document=c);null==b&&(b=[]);null==e&&(e=n([],{}));if(f(f(a)?a["$empty?"]():!0))return n([],{});f(e["$[]"]("unescape_input"))&&(a=this.$normalize_text(a,!0,!0));f(f(d=e["$[]"]("sub_input"))?
729
+ a["$include?"](p(y,"ATTR_REF_HEAD")):d)&&(a=this.document.$sub_attributes(a));f(e["$[]"]("sub_result"))&&(g=this);return f(h=e["$[]"]("into"))?p(y,"AttributeList").$new(a,g).$parse_into(h,b):p(y,"AttributeList").$new(a,g).$parse(b)},na.$$arity=-2);d.$private();a.def(d,"$extract_attributes_from_text",ea=function(a,b){var e=c,d=c;null==b&&(b=c);var g=f(a["$include?"](p(y,"LF")))?a.$tr(p(y,"LF")," "):a;return f(e=(d=p(y,"AttributeList").$new(g,this).$parse())["$[]"](1))?e["$=="](g)?[a,d.$clear()]:[e,
730
+ d]:[b,d]},ea.$$arity=-2);a.def(d,"$extract_callouts",ba=function(e){var d,h=c,k=c,l=c,r=c,v=c;h=n([],{});k=l=0;r=c;v=f(this["$attr?"]("line-comment"))?p(y,"CalloutExtractRxMap")["$[]"](this.$attr("line-comment")):p(y,"CalloutExtractRx");e=N(e.$split(p(y,"LF"),-1),"map",[],(d=function(e){var n=d.$$s||this,A;null==e&&(e=c);l=b(l,1);return N(e,"gsub",[v],(A=function(){var e,d,n=c;if(f((e=u["~"])===c?c:e["$[]"](2)))return((e=u["~"])===c?c:e["$[]"](0)).$sub(p(y,"RS"),"");(f(e=h["$[]"](l))?e:(n=[l,[]],
731
+ N(h,"[]=",a.to_a(n)),n[g(n.length,1)]))["$<<"]([f(e=(d=u["~"])===c?c:d["$[]"](1))?e:((d=u["~"])===c?c:d["$[]"](3))["$=="]("--")?["\x3c!--","--\x3e"]:c,((e=u["~"])===c?c:e["$[]"](4))["$=="](".")?(k=b(k,1)).$to_s():(e=u["~"])===c?c:e["$[]"](4)]);r=l;return""},A.$$s=n,A.$$arity=0,A))},d.$$s=this,d.$$arity=1,d)).$join(p(y,"LF"));f(r)?r["$=="](l)&&(e=""+e+p(y,"LF")):h=c;return[e,h]},ba.$$arity=1);a.def(d,"$restore_callouts",M=function(e,d,g){var h,k=c,l=c;null==g&&(g=c);f(g)?(k=e.$slice(0,g),e=e.$slice(g,
732
+ e.$length())):k="";l=0;return b(k,N(e.$split(p(y,"LF"),-1),"map",[],(h=function(e){var g=h.$$s||this,k,r,v=k=c;var A=c;null==g.document&&(g.document=c);null==e&&(e=c);return f(k=d.$delete(l=b(l,1)))?k.$size()["$=="](1)?(k=k["$[]"](0),A=a.to_ary(k),v=null==A[0]?c:A[0],A=null==A[1]?c:A[1],k,""+e+p(y,"Inline").$new(g,"callout",A,n(["id","attributes"],{id:g.document.$callouts().$read_next_id(),attributes:n(["guard"],{guard:v})})).$convert()):""+e+N(k,"map",[],(r=function(a,b){var e=r.$$s||this;null==
733
+ e.document&&(e.document=c);null==a&&(a=c);null==b&&(b=c);return p(y,"Inline").$new(e,"callout",b,n(["id","attributes"],{id:e.document.$callouts().$read_next_id(),attributes:n(["guard"],{guard:a})})).$convert()},r.$$s=g,r.$$arity=2,r)).$join(" "):e},h.$$s=this,h.$$arity=1,h)).$join(p(y,"LF")))},M.$$arity=-3);a.def(d,"$extract_inner_passthrough",P=function(b,e){var d,h;null==this.passthroughs&&(this.passthroughs=c);if(f(f(d=f(h=b["$end_with?"]("+"))?b["$start_with?"]("+","\\+"):h)?p(y,"SinglePlusInlinePassRx")["$=~"](b):
734
+ d)){if(f((d=u["~"])===c?c:d["$[]"](1)))return""+e+"`+"+((d=u["~"])===c?c:d["$[]"](2))+"+`";b=[h=this.passthroughs.$size(),n(["text","subs"],{text:(d=u["~"])===c?c:d["$[]"](2),subs:p(y,"BASIC_SUBS")})];N(this.passthroughs,"[]=",a.to_a(b));b[g(b.length,1)];return""+e+"`"+p(y,"PASS_START")+h+p(y,"PASS_END")+"`"}return""+e+"`"+b+"`"},P.$$arity=2);a.def(d,"$convert_quoted_text",oa=function(a,b,e){var d=c,g=c,h=c,k=c;if(f(a["$[]"](0)["$start_with?"](p(y,"RS"))))if(f(e["$=="]("constrained")?d=a["$[]"](2):
735
+ e["$=="]("constrained")))g="["+d+"]";else return a["$[]"](0).$slice(1,a["$[]"](0).$length());if(e["$=="]("constrained")){if(f(g))return""+g+p(y,"Inline").$new(this,"quoted",a["$[]"](3),n(["type"],{type:b})).$convert();f(e=a["$[]"](2))&&(h=(k=this.$parse_quoted_text_attributes(e))["$[]"]("id"),b["$=="]("mark")&&(b="unquoted"));return""+a["$[]"](1)+p(y,"Inline").$new(this,"quoted",a["$[]"](3),n(["type","id","attributes"],{type:b,id:h,attributes:k})).$convert()}f(e=a["$[]"](1))&&(h=(k=this.$parse_quoted_text_attributes(e))["$[]"]("id"),
736
+ b["$=="]("mark")&&(b="unquoted"));return p(y,"Inline").$new(this,"quoted",a["$[]"](2),n(["type","id","attributes"],{type:b,id:h,attributes:k})).$convert()},oa.$$arity=3);a.def(d,"$do_replacement",O=function(a,c,e){var d;return f((d=a["$[]"](0))["$include?"](p(y,"RS")))?d.$sub(p(y,"RS"),""):"none"["$==="](e)?c:"bounding"["$==="](e)?b(b(a["$[]"](1),c),a["$[]"](2)):b(a["$[]"](1),c)},O.$$arity=3);p(y,"RUBY_ENGINE")["$=="]("opal")||c;a.def(d,"$parse_quoted_text_attributes",ha=function(e){var d;f(e["$include?"](p(y,
737
+ "ATTR_REF_HEAD")))&&(e=this.$sub_attributes(e));f(e["$include?"](","))&&(e=e.$slice(0,e.$index(",")));if(f((e=e.$strip())["$empty?"]()))return n([],{});if(f(f(d=e["$start_with?"](".","#"))?p(y,"Compliance").$shorthand_property_syntax():d)){var h=e.$partition("#");d=a.to_ary(h);e=null==d[0]?c:d[0];d=null==d[2]?c:d[2];h;var l=n([],{});if(f(d["$empty?"]()))f(k(e.$length(),1))&&(h=["role",e.$tr("."," ").$lstrip()],N(l,"[]=",a.to_a(h)),h[g(h.length,1)]);else{h=d.$partition(".");d=a.to_ary(h);var r=null==
738
+ d[0]?c:d[0];d=null==d[2]?c:d[2];h;f(r["$empty?"]())||(h=["id",r],N(l,"[]=",a.to_a(h)),h[g(h.length,1)]);f(d["$empty?"]())?f(k(e.$length(),1))&&(h=["role",e.$tr("."," ").$lstrip()],N(l,"[]=",a.to_a(h)),h[g(h.length,1)]):(h=f(k(e.$length(),1))?["role",b(b(e,"."),d).$tr("."," ").$lstrip()]:["role",d.$tr("."," ")],N(l,"[]=",a.to_a(h)),h[g(h.length,1)])}return l}return n(["role"],{role:e})},ha.$$arity=1);a.def(d,"$normalize_text",za=function(a,b,e){var d;null==b&&(b=c);null==e&&(e=c);f(a["$empty?"]())||
739
+ (f(b)&&(a=a.$strip().$tr(p(y,"LF")," ")),f(f(d=e)?a["$include?"](p(y,"R_SB")):d)&&(a=a.$gsub(p(y,"ESC_R_SB"),p(y,"R_SB"))));return a},za.$$arity=-2);a.def(d,"$split_simple_csv",Ca=function(a){var e,d,g=c,n=c,p=c;return f(a["$empty?"]())?[]:f(a["$include?"]('"'))?(g=[],n="",p=c,N(a,"each_char",[],(e=function(a){var e=c;null==a&&(a=c);return function(){e=a;if(","["$==="](e)){if(f(p))return n=b(n,a);g["$<<"](n.$strip());return n=""}return'"'["$==="](e)?p=p["$!"]():n=b(n,a)}()},e.$$s=this,e.$$arity=1,
740
+ e)),g["$<<"](n.$strip())):N(a.$split(","),"map",[],(d=function(a){null==a&&(a=c);return a.$strip()},d.$$s=this,d.$$arity=1,d))},Ca.$$arity=1)})(d[0],d)}(h[0],h)};Opal.modules["asciidoctor/version"]=function(a){var b=[],g=a.module;b=[g(b[0],"Asciidoctor")].concat(b);a.const_set(b[0],"VERSION","2.0.16")};Opal.modules["asciidoctor/abstract_node"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a<
741
+ b:a["$<"](b)}var k=[],l=a.nil,r=a.const_get_qualified,h=a.const_get_relative,c=a.module,A=a.klass,p=a.hash2,q=a.truthy,t=a.send;a.add_stubs("$include $attr_reader $attr_accessor $== $document $to_s $[] $merge $raise $converter $attributes $key? $[]= $- $delete $tap $new $each_key $end_with? $<< $slice $length $update $split $include? $=== $join $empty? $apply_reftext_subs $attr? $attr $extname? $image_uri $< $safe $uriish? $encode_spaces_in_uri $normalize_web_path $generate_data_uri_from_uri $generate_data_uri $extname $normalize_system_path $readable? $strict_encode64 $binread $warn $logger $require_library $! $open_uri $content_type $read $base_dir $root? $path_resolver $system_path $web_path $!= $prepare_source_string $fetch $read_asset".split(" "));
742
+ return function(d,e){d=[c(d,"Asciidoctor")].concat(e);(function(c,$super,e){c=A(c,$super,"AbstractNode");var d=[c].concat(e),f,n,k,v,m,u,S,B,L,x,ma,D,z,C,U,E,H,fa,I,G,sa,F,qa,ea,da,na,M,P,O,R,oa,Aa,ha;c.$$prototype.document=c.$$prototype.attributes=c.$$prototype.parent=l;c.$include(h(d,"Logging"));c.$include(h(d,"Substitutors"));c.$attr_reader("attributes");c.$attr_reader("context");c.$attr_reader("document");c.$attr_accessor("id");c.$attr_reader("node_name");c.$attr_reader("parent");a.def(c,"$initialize",
743
+ f=function(a,b,c){var e=l;null==c&&(c=p([],{}));b["$=="]("document")?this.document=this:q(a)&&(this.document=(this.parent=a).$document());this.node_name=(this.context=b).$to_s();this.attributes=q(e=c["$[]"]("attributes"))?e.$merge():p([],{});return this.passthroughs=[]},f.$$arity=-3);a.def(c,"$block?",n=function(){return this.$raise(r("::","NotImplementedError"))},n.$$arity=0);a.def(c,"$inline?",k=function(){return this.$raise(r("::","NotImplementedError"))},k.$$arity=0);a.def(c,"$converter",v=function(){return this.document.$converter()},
744
+ v.$$arity=0);a.def(c,"$parent=",m=function(a){var b;return b=[a,a.$document()],this.parent=b[0],this.document=b[1],b},m.$$arity=1);a.def(c,"$attr",u=function(a,b,c){var e,d,f,g;null==b&&(b=l);null==c&&(c=l);return q(e=this.attributes["$[]"](a.$to_s()))?e:q(d=q(f=q(g=c)?this.parent:g)?this.document.$attributes()["$[]"]((c["$=="](!0)?a:c).$to_s()):f)?d:b},u.$$arity=-2);a.def(c,"$attr?",S=function(a,b,c){var e,d;null==b&&(b=l);null==c&&(c=l);return q(b)?b["$=="](q(e=this.attributes["$[]"](a.$to_s()))?
745
+ e:q(q(d=c)?this.parent:d)?this.document.$attributes()["$[]"]((c["$=="](!0)?a:c).$to_s()):l):q(e=this.attributes["$key?"](a.$to_s()))?e:q(q(d=c)?this.parent:d)?this.document.$attributes()["$key?"]((c["$=="](!0)?a:c).$to_s()):!1},S.$$arity=-2);a.def(c,"$set_attr",B=function(c,e,d){null==e&&(e="");null==d&&(d=!0);if(q(d["$=="](!1)?this.attributes["$key?"](c):d["$=="](!1)))return!1;c=[c,e];t(this.attributes,"[]=",a.to_a(c));c[b(c.length,1)];return!0},B.$$arity=-2);a.def(c,"$remove_attr",L=function(a){return this.attributes.$delete(a)},
746
+ L.$$arity=1);a.def(c,"$option?",x=function(a){return q(this.attributes["$[]"](""+a+"-option"))?!0:!1},x.$$arity=1);a.def(c,"$set_option",ma=function(c){c=[""+c+"-option",""];t(this.attributes,"[]=",a.to_a(c));c[b(c.length,1)];return l},ma.$$arity=1);a.def(c,"$enabled_options",D=function(){var a;return t(r("::","Set").$new(),"tap",[],(a=function(c){var e=a.$$s||this,d;null==e.attributes&&(e.attributes=l);null==c&&(c=l);return t(e.attributes,"each_key",[],(d=function(a){null==a&&(a=l);return q(a.$to_s()["$end_with?"]("-option"))?
747
+ c["$<<"](a.$slice(0,b(a.$length(),7))):l},d.$$s=e,d.$$arity=1,d))},a.$$s=this,a.$$arity=1,a))},D.$$arity=0);a.def(c,"$update_attributes",z=function(a){return this.attributes.$update(a)},z.$$arity=1);a.def(c,"$role",C=function(){return this.attributes["$[]"]("role")},C.$$arity=0);a.def(c,"$roles",U=function(){var a;return q(a=this.attributes["$[]"]("role"))?a.$split():[]},U.$$arity=0);a.def(c,"$role?",E=function(a){null==a&&(a=l);return q(a)?a["$=="](this.attributes["$[]"]("role")):this.attributes["$key?"]("role")},
748
+ E.$$arity=-1);a.def(c,"$has_role?",H=function(a){var b;return q(b=this.attributes["$[]"]("role"))?(" "+b+" ")["$include?"](" "+a+" "):!1},H.$$arity=1);a.def(c,"$role=",fa=function(c){c=["role",q(r("::","Array")["$==="](c))?c.$join(" "):c];t(this.attributes,"[]=",a.to_a(c));return c[b(c.length,1)]},fa.$$arity=1);a.def(c,"$add_role",I=function(c){var e;if(q(e=this.attributes["$[]"]("role"))){if(q((" "+e+" ")["$include?"](" "+c+" ")))return!1;c=["role",""+e+" "+c];t(this.attributes,"[]=",a.to_a(c));
749
+ c[b(c.length,1)];return!0}c=["role",c];t(this.attributes,"[]=",a.to_a(c));c[b(c.length,1)];return!0},I.$$arity=1);a.def(c,"$remove_role",G=function(c){var e,d=l;return q(q(e=d=this.attributes["$[]"]("role"))?(d=d.$split()).$delete(c):e)?(q(d["$empty?"]())?this.attributes.$delete("role"):(c=["role",d.$join(" ")],t(this.attributes,"[]=",a.to_a(c)),c[b(c.length,1)]),!0):!1},G.$$arity=1);a.def(c,"$reftext",sa=function(){var a;return q(a=this.attributes["$[]"]("reftext"))?this.$apply_reftext_subs(a):l},
750
+ sa.$$arity=0);a.def(c,"$reftext?",F=function(){return this.attributes["$key?"]("reftext")},F.$$arity=0);a.def(c,"$icon_uri",qa=function(a){q(this["$attr?"]("icon"))?(a=this.$attr("icon"),q(h(d,"Helpers")["$extname?"](a))||(a=""+a+"."+this.document.$attr("icontype","png"))):a=""+a+"."+this.document.$attr("icontype","png");return this.$image_uri(a,"iconsdir")},qa.$$arity=1);a.def(c,"$image_uri",ea=function(a,b){var c,e,f,n,p=l,k=l;null==b&&(b="imagesdir");return q(q(c=g((p=this.document).$safe(),r(h(d,
751
+ "SafeMode"),"SECURE")))?p["$attr?"]("data-uri"):c)?q(q(c=q(e=h(d,"Helpers")["$uriish?"](a))?a=h(d,"Helpers").$encode_spaces_in_uri(a):e)?c:q(e=q(f=q(n=b)?k=p.$attr(b):n)?h(d,"Helpers")["$uriish?"](k):f)?a=this.$normalize_web_path(a,k,!1):e)?q(p["$attr?"]("allow-uri-read"))?this.$generate_data_uri_from_uri(a,p["$attr?"]("cache-uri")):a:this.$generate_data_uri(a,b):this.$normalize_web_path(a,q(b)?p.$attr(b):l)},ea.$$arity=-2);a.def(c,"$media_uri",da=function(a,b){null==b&&(b="imagesdir");return this.$normalize_web_path(a,
752
+ q(b)?this.document.$attr(b):l)},da.$$arity=-2);a.def(c,"$generate_data_uri",na=function(a,b){var c=l;null==b&&(b=l);var e=q(c=h(d,"Helpers").$extname(a,l))?c["$=="](".svg")?"image/svg+xml":"image/"+c.$slice(1,c.$length()):"application/octet-stream";a=q(b)?this.$normalize_system_path(a,this.document.$attr(b),l,p(["target_name"],{target_name:"image"})):this.$normalize_system_path(a);if(q(r("::","File")["$readable?"](a)))return"data:"+e+";base64,"+r("::","Base64").$strict_encode64(r("::","File").$binread(a));
753
+ this.$logger().$warn("image to embed not found or not readable: "+a);return"data:"+e+";base64,"},na.$$arity=-2);a.def(c,"$generate_data_uri_from_uri",M=function(b,c){var e,f=l,g=l;null==c&&(c=!1);q(c)?h(d,"Helpers").$require_library("open-uri/cached","open-uri-cached"):q(h(d,"RUBY_ENGINE_OPAL")["$!"]())&&r("::","OpenURI");try{var n=t(r("::","OpenURI"),"open_uri",[b,h(d,"URI_READ_MODE")],(e=function(a){null==a&&(a=l);return[a.$content_type(),a.$read()]},e.$$s=this,e.$$arity=1,e));var p=a.to_ary(n);
754
+ f=null==p[0]?l:p[0];g=null==p[1]?l:p[1];n;return"data:"+f+";base64,"+r("::","Base64").$strict_encode64(g)}catch(Qa){if(a.rescue(Qa,[h(d,"StandardError")]))try{return this.$logger().$warn("could not retrieve image data from URI: "+b),b}finally{a.pop_exception()}else throw Qa;}},M.$$arity=-2);a.def(c,"$normalize_asset_path",P=function(a,b,c){null==b&&(b="path");null==c&&(c=!0);return this.$normalize_system_path(a,this.document.$base_dir(),l,p(["target_name","recover"],{target_name:b,recover:c}))},P.$$arity=
755
+ -2);a.def(c,"$normalize_system_path",O=function(a,b,c,e){var f,n;null==b&&(b=l);null==c&&(c=l);null==e&&(e=p([],{}));q(g((n=this.document).$safe(),r(h(d,"SafeMode"),"SAFE")))?q(b)?q(n.$path_resolver()["$root?"](b))||(b=r("::","File").$join(n.$base_dir(),b)):b=n.$base_dir():(b=q(f=b)?f:n.$base_dir(),c=q(f=c)?f:n.$base_dir());return n.$path_resolver().$system_path(a,b,c,e)},O.$$arity=-2);a.def(c,"$normalize_web_path",R=function(a,b,c){var e;null==b&&(b=l);null==c&&(c=!0);return q(q(e=c)?h(d,"Helpers")["$uriish?"](a):
756
+ e)?h(d,"Helpers").$encode_spaces_in_uri(a):this.document.$path_resolver().$web_path(a,b)},R.$$arity=-2);a.def(c,"$read_asset",oa=function(a,b){var c;null==b&&(b=p([],{}));q(r("::","Hash")["$==="](b))||(b=p(["warn_on_failure"],{warn_on_failure:b["$!="](!1)}));if(q(r("::","File")["$readable?"](a)))return q(b["$[]"]("normalize"))?h(d,"Helpers").$prepare_source_string(r("::","File").$read(a,p(["mode"],{mode:h(d,"FILE_READ_MODE")}))).$join(h(d,"LF")):r("::","File").$read(a,p(["mode"],{mode:h(d,"FILE_READ_MODE")}));
757
+ q(b["$[]"]("warn_on_failure"))&&this.$logger().$warn(""+(q(c=this.$attr("docfile"))?c:"<stdin>")+": "+(q(c=b["$[]"]("label"))?c:"file")+" does not exist or cannot be read: "+a);return l},oa.$$arity=-2);a.def(c,"$read_contents",Aa=function(b,c){var e,f,g,n,k,v=l,y=l,A=l;null==c&&(c=p([],{}));v=this.document;if(q(q(e=h(d,"Helpers")["$uriish?"](b))?e:q(f=q(g=y=c["$[]"]("start"))?h(d,"Helpers")["$uriish?"](y):g)?b=v.$path_resolver().$web_path(b,y):f))if(q(v["$attr?"]("allow-uri-read"))){q(v["$attr?"]("cache-uri"))&&
758
+ h(d,"Helpers").$require_library("open-uri/cached","open-uri-cached");try{A=q(c["$[]"]("normalize"))?h(d,"Helpers").$prepare_source_string(t(r("::","OpenURI"),"open_uri",[b,h(d,"URI_READ_MODE")],(n=function(a){null==a&&(a=l);return a.$read()},n.$$s=this,n.$$arity=1,n))).$join(h(d,"LF")):t(r("::","OpenURI"),"open_uri",[b,h(d,"URI_READ_MODE")],(k=function(a){null==a&&(a=l);return a.$read()},k.$$s=this,k.$$arity=1,k))}catch(Ga){if(a.rescue(Ga,[h(d,"StandardError")]))try{q(c.$fetch("warn_on_failure",!0))&&
759
+ this.$logger().$warn("could not retrieve contents of "+(q(e=c["$[]"]("label"))?e:"asset")+" at URI: "+b)}finally{a.pop_exception()}else throw Ga;}}else q(c.$fetch("warn_on_failure",!0))&&this.$logger().$warn("cannot retrieve contents of "+(q(e=c["$[]"]("label"))?e:"asset")+" at URI: "+b+" (allow-uri-read attribute not enabled)");else b=this.$normalize_system_path(b,c["$[]"]("start"),l,p(["target_name"],{target_name:q(e=c["$[]"]("label"))?e:"asset"})),A=this.$read_asset(b,p(["normalize","warn_on_failure",
760
+ "label"],{normalize:c["$[]"]("normalize"),warn_on_failure:c.$fetch("warn_on_failure",!0),label:c["$[]"]("label")}));q(q(e=q(f=A)?c["$[]"]("warn_if_empty"):f)?A["$empty?"]():e)&&this.$logger().$warn("contents of "+(q(e=c["$[]"]("label"))?e:"asset")+" is empty: "+b);return A},Aa.$$arity=-2);return(a.def(c,"$is_uri?",ha=function(a){return h(d,"Helpers")["$uriish?"](a)},ha.$$arity=1),l)&&"is_uri?"})(d[0],null,d)}(k[0],k)};Opal.modules["asciidoctor/abstract_block"]=function(a){function b(a,b){return"number"===
761
+ typeof a&&"number"===typeof b?a-b:a["$-"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}var k=[],l=a.nil,r=a.const_get_qualified,h=a.const_get_relative,c=a.module,q=a.klass,p=a.hash2,t=a.send,m=a.truthy;a.add_stubs("$attr_reader $attr_writer $attr_accessor $== $=== $level $file $lineno $playback_attributes $convert $converter $join $map $to_s $parent $parent= $- $<< $empty? $> $Integer $find_by_internal $to_proc $context $[] $items $+ $find_index $include? $next_adjacent_block $blocks $select $sub_specialchars $match? $sub_replacements $title $apply_title_subs $delete $reftext $! $nil_or_empty? $sub_placeholder $sub_quotes $compat_mode $attributes $chomp $increment_and_store_counter $index= $numbered $sectname $counter $numeral= $numeral $caption= $int_to_roman $each $assign_numeral $reindex_sections $protected $has_role? $raise $header? $!= $flatten $head $rows $merge $body $foot $style $inner_document".split(" "));
762
+ return function(d,e){d=[c(d,"Asciidoctor")].concat(e);(function(c,$super,e){c=q(c,$super,"AbstractBlock");var d=[c].concat(e),f,n,k,v,A,u,B,S,x,L,D,z,C,E,U,xa,H,fa,I,G,sa,F,qa,ea,da,na,M,P,O,R;c.$$prototype.source_location=c.$$prototype.document=c.$$prototype.attributes=c.$$prototype.blocks=c.$$prototype.next_section_index=c.$$prototype.numeral=c.$$prototype.context=c.$$prototype.parent=c.$$prototype.caption=c.$$prototype.style=c.$$prototype.converted_title=c.$$prototype.title=c.$$prototype.subs=
763
+ c.$$prototype.next_section_ordinal=c.$$prototype.id=c.$$prototype.header=l;c.$attr_reader("blocks");c.$attr_writer("caption");c.$attr_accessor("content_model");c.$attr_accessor("level");c.$attr_accessor("numeral");c.$attr_accessor("source_location");c.$attr_accessor("style");c.$attr_reader("subs");a.def(c,"$initialize",f=function(b,c,e){var g,n=f.$$p,k;n&&(f.$$p=null);var r=0;var v=arguments.length;for(k=Array(v);r<v;r++)k[r]=arguments[r];null==e&&(e=p([],{}));t(this,a.find_super_dispatcher(this,
764
+ "initialize",f,!1),k,n);this.content_model="compound";this.blocks=[];this.subs=[];this.id=this.title=this.caption=this.numeral=this.style=this.default_subs=this.source_location=l;return m(m(g=c["$=="]("document"))?g:c["$=="]("section"))?(this.level=this.next_section_index=0,this.next_section_ordinal=1):m(h(d,"AbstractBlock")["$==="](b))?this.level=b.$level():this.level=l},f.$$arity=-3);a.def(c,"$block?",n=function(){return!0},n.$$arity=0);a.def(c,"$inline?",k=function(){return!1},k.$$arity=0);a.def(c,
765
+ "$file",v=function(){var a;return m(a=this.source_location)?this.source_location.$file():a},v.$$arity=0);a.def(c,"$lineno",A=function(){var a;return m(a=this.source_location)?this.source_location.$lineno():a},A.$$arity=0);a.def(c,"$convert",u=function(){this.document.$playback_attributes(this.attributes);return this.$converter().$convert(this)},u.$$arity=0);a.alias(c,"render","convert");a.def(c,"$content",B=function(){var a;return t(this.blocks,"map",[],(a=function(a){null==a&&(a=l);return a.$convert()},
766
+ a.$$s=this,a.$$arity=1,a)).$join(h(d,"LF"))},B.$$arity=0);a.def(c,"$context=",S=function(a){return this.node_name=(this.context=a).$to_s()},S.$$arity=1);a.def(c,"$<<",x=function(c){if(!c.$parent()["$=="](this)){var e=[this];t(c,"parent=",a.to_a(e));e[b(e.length,1)]}this.blocks["$<<"](c);return this},x.$$arity=1);a.alias(c,"append","<<");a.def(c,"$blocks?",L=function(){return m(this.blocks["$empty?"]())?!1:!0},L.$$arity=0);a.def(c,"$sections?",D=function(){var a=this.next_section_index;return"number"===
767
+ typeof a?0<a:a["$>"](0)},D.$$arity=0);a.def(c,"$number",z=function(){try{return this.$Integer(this.numeral)}catch(oa){if(a.rescue(oa,[h(d,"StandardError")]))try{return this.numeral}finally{a.pop_exception()}else throw oa;}},z.$$arity=0);a.def(c,"$number=",C=function(a){return this.numeral=a.$to_s()},C.$$arity=1);a.def(c,"$find_by",E=function(b){var c=E.$$p,e=c||l,d=l;c&&(E.$$p=null);c&&(E.$$p=null);null==b&&(b=p([],{}));try{return t(this,"find_by_internal",[b,d=[]],e.$to_proc())}catch(Ca){if(a.rescue(Ca,
768
+ [r("::","StopIteration")]))try{return d}finally{a.pop_exception()}else throw Ca;}},E.$$arity=-1);a.alias(c,"query","find_by");a.def(c,"$next_adjacent_block",U=function(){var a,b=l,c=l;return this.context["$=="]("document")?l:m((b=this.parent).$context()["$=="]("dlist")?this.context["$=="]("list_item"):(b=this.parent).$context()["$=="]("dlist"))?m(c=b.$items()["$[]"](g(t(b.$items(),"find_index",[],(a=function(b,c){var e=a.$$s||this,d;null==b&&(b=l);null==c&&(c=l);return m(d=b["$include?"](e))?d:c["$=="](e)},
769
+ a.$$s=this,a.$$arity=2,a)),1)))?c:b.$next_adjacent_block():m(c=b.$blocks()["$[]"](g(b.$blocks().$find_index(this),1)))?c:b.$next_adjacent_block()},U.$$arity=0);a.def(c,"$sections",xa=function(){var a;return t(this.blocks,"select",[],(a=function(a){null==a&&(a=l);return a.$context()["$=="]("section")},a.$$s=this,a.$$arity=1,a))},xa.$$arity=0);a.def(c,"$alt",H=function(){var a;if(m(a=this.attributes["$[]"]("alt"))){if(a["$=="](this.attributes["$[]"]("default-alt")))return this.$sub_specialchars(a);
770
+ a=this.$sub_specialchars(a);return m(h(d,"ReplaceableTextRx")["$match?"](a))?this.$sub_replacements(a):a}return""},H.$$arity=0);a.def(c,"$caption",fa=function(){return this.context["$=="]("admonition")?this.attributes["$[]"]("textlabel"):this.caption},fa.$$arity=0);a.def(c,"$captioned_title",I=function(){return""+this.caption+this.$title()},I.$$arity=0);a.def(c,"$list_marker_keyword",G=function(a){var b;null==a&&(a=l);return h(d,"ORDERED_LIST_KEYWORDS")["$[]"](m(b=a)?b:this.style)},G.$$arity=-1);
771
+ a.def(c,"$title",sa=function(){var a,b;return this.converted_title=m(a=this.converted_title)?a:m(b=this.title)?this.$apply_title_subs(this.title):b},sa.$$arity=0);a.def(c,"$title?",F=function(){return m(this.title)?!0:!1},F.$$arity=0);a.def(c,"$title=",qa=function(a){this.converted_title=l;return this.title=a},qa.$$arity=1);a.def(c,"$sub?",ea=function(a){return this.subs["$include?"](a)},ea.$$arity=1);a.def(c,"$remove_sub",da=function(a){this.subs.$delete(a);return l},da.$$arity=1);a.def(c,"$xreftext",
772
+ na=function(a){var b,c,e=l,f=l,g=l;null==a&&(a=l);m(m(b=e=this.$reftext())?e["$empty?"]()["$!"]():b)?b=e:(m(m(b=m(c=a)?this.title:c)?this.caption["$nil_or_empty?"]()["$!"]():b)?"full"["$==="](a)?(a=this.$sub_placeholder(this.$sub_quotes(m(this.document.$compat_mode())?"``%s''":'"`%s`"'),this.$title()),a=m(m(b=m(c=this.numeral)?f=h(d,"CAPTION_ATTRIBUTE_NAMES")["$[]"](this.context):c)?g=this.document.$attributes()["$[]"](f):b)?""+g+" "+this.numeral+", "+a:""+this.caption.$chomp(". ")+", "+a):a="short"["$==="](a)?
773
+ m(m(b=m(c=this.numeral)?f=h(d,"CAPTION_ATTRIBUTE_NAMES")["$[]"](this.context):c)?g=this.document.$attributes()["$[]"](f):b)?""+g+" "+this.numeral:this.caption.$chomp(". "):this.$title():a=this.$title(),b=a);return b},na.$$arity=-1);a.def(c,"$assign_caption",M=function(a,b){var c,e,f=l,g=l;null==b&&(b=this.context);!m(m(c=m(e=this.caption)?e:this.title["$!"]())?c:this.caption=m(e=a)?e:this.document.$attributes()["$[]"]("caption"))&&m(m(c=f=h(d,"CAPTION_ATTRIBUTE_NAMES")["$[]"](b))?g=this.document.$attributes()["$[]"](f):
774
+ c)&&(this.caption=""+g+" "+(this.numeral=this.document.$increment_and_store_counter(""+b+"-number",this))+". ");return l},M.$$arity=-2);a.def(c,"$assign_numeral",P=function(c){var e,f=l,n,p=l;this.next_section_index=g((f=[this.next_section_index],t(c,"index=",a.to_a(f)),f[b(f.length,1)]),1);m(f=c.$numbered())&&((n=c.$sectname())["$=="]("appendix")?(f=[this.document.$counter("appendix-number","A")],t(c,"numeral=",a.to_a(f)),f[b(f.length,1)],f=[m(p=this.document.$attributes()["$[]"]("appendix-caption"))?
775
+ ""+p+" "+c.$numeral()+": ":""+c.$numeral()+". "],t(c,"caption=",a.to_a(f)),f[b(f.length,1)]):m(m(e=n["$=="]("chapter"))?e:f["$=="]("chapter"))?(f=[this.document.$counter("chapter-number",1).$to_s()],t(c,"numeral=",a.to_a(f)),f[b(f.length,1)]):(f=[n["$=="]("part")?h(d,"Helpers").$int_to_roman(this.next_section_ordinal):this.next_section_ordinal.$to_s()],t(c,"numeral=",a.to_a(f)),f[b(f.length,1)],this.next_section_ordinal=g(this.next_section_ordinal,1)));return l},P.$$arity=1);a.def(c,"$reindex_sections",
776
+ O=function(){var a;this.next_section_index=0;this.next_section_ordinal=1;return t(this.blocks,"each",[],(a=function(b){var c=a.$$s||this;null==b&&(b=l);return b.$context()["$=="]("section")?(c.$assign_numeral(b),b.$reindex_sections()):l},a.$$s=this,a.$$arity=1,a))},O.$$arity=0);c.$protected();return(a.def(c,"$find_by_internal",R=function(b,c){var e=R.$$p,d=e||l,f,n,h,k,v,y,q,A,u,T,B=l,J=l,S=l,x=l,V=l,L=l;L=l;e&&(R.$$p=null);e&&(R.$$p=null);null==b&&(b=p([],{}));null==c&&(c=[]);if(m(m(f=m(n=m(h=m(k=
777
+ B=m(J=b["$[]"]("context"))?l:!0)?k:J["$=="](this.context))?m(k=(S=b["$[]"]("style"))["$!"]())?k:S["$=="](this.style):h)?m(h=(x=b["$[]"]("role"))["$!"]())?h:this["$has_role?"](x):n)?m(n=(V=b["$[]"]("id"))["$!"]())?n:V["$=="](this.id):f))if(d!==l)if(m(L=a.yield1(d,this))){if("prune"["$==="](L))return c["$<<"](this),m(V)&&this.$raise(r("::","StopIteration")),c;if("reject"["$==="](L))return m(V)&&this.$raise(r("::","StopIteration")),c;"stop"["$==="](L)?this.$raise(r("::","StopIteration")):(c["$<<"](this),
778
+ m(V)&&this.$raise(r("::","StopIteration")))}else m(V)&&this.$raise(r("::","StopIteration"));else c["$<<"](this),m(V)&&this.$raise(r("::","StopIteration"));L=this.context;"document"["$==="](L)?J["$=="]("document")||(m(m(f=this["$header?"]())?m(n=B)?n:J["$=="]("section"):f)&&t(this.header,"find_by_internal",[b,c],d.$to_proc()),t(this.blocks,"each",[],(v=function(a){null==a&&(a=l);return m(J["$=="]("section")?a.$context()["$!="]("section"):J["$=="]("section"))?l:t(a,"find_by_internal",[b,c],d.$to_proc())},
779
+ v.$$s=this,v.$$arity=1,v))):"dlist"["$==="](L)?m(m(f=B)?f:J["$!="]("section"))&&t(this.blocks.$flatten(),"each",[],(y=function(a){null==a&&(a=l);return m(a)?t(a,"find_by_internal",[b,c],d.$to_proc()):l},y.$$s=this,y.$$arity=1,y)):"table"["$==="](L)?m(b["$[]"]("traverse_documents"))?(t(this.$rows().$head(),"each",[],(q=function(a){var e=q.$$s||this,f;null==a&&(a=l);return t(a,"each",[],(f=function(a){null==a&&(a=l);return t(a,"find_by_internal",[b,c],d.$to_proc())},f.$$s=e,f.$$arity=1,f))},q.$$s=this,
780
+ q.$$arity=1,q)),J["$=="]("inner_document")&&(b=b.$merge(p(["context"],{context:"document"}))),t(g(this.$rows().$body(),this.$rows().$foot()),"each",[],(A=function(a){var e=A.$$s||this,f;null==a&&(a=l);return t(a,"each",[],(f=function(a){null==a&&(a=l);t(a,"find_by_internal",[b,c],d.$to_proc());return a.$style()["$=="]("asciidoc")?t(a.$inner_document(),"find_by_internal",[b,c],d.$to_proc()):l},f.$$s=e,f.$$arity=1,f))},A.$$s=this,A.$$arity=1,A))):t(g(g(this.$rows().$head(),this.$rows().$body()),this.$rows().$foot()),
781
+ "each",[],(u=function(a){var e=u.$$s||this,f;null==a&&(a=l);return t(a,"each",[],(f=function(a){null==a&&(a=l);return t(a,"find_by_internal",[b,c],d.$to_proc())},f.$$s=e,f.$$arity=1,f))},u.$$s=this,u.$$arity=1,u)):t(this.blocks,"each",[],(T=function(a){null==a&&(a=l);return m(J["$=="]("section")?a.$context()["$!="]("section"):J["$=="]("section"))?l:t(a,"find_by_internal",[b,c],d.$to_proc())},T.$$s=this,T.$$arity=1,T));return c},R.$$arity=-1),l)&&"find_by_internal"})(d[0],h(d,"AbstractNode"),d)}(k[0],
782
+ k)};Opal.modules["asciidoctor/attribute_list"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}var l=[],k=a.nil,r=a.const_get_qualified,h=a.const_get_relative,c=a.module,q=a.klass,p=a.hash,t=a.hash2,m=a.truthy,n=a.send;a.add_stubs("$new $[] $update $parse $parse_attribute $eos? $skip_delimiter $+ $rekey $each_with_index $[]= $- $private $skip_blank $peek $=== $parse_attribute_value $get_byte $start_with? $scan_name $end_with? $rstrip $string $== $unscan $scan_to_delimiter $* $include? $delete $each $split $empty? $apply_subs $scan_to_quote $gsub $skip $scan".split(" "));
783
+ return function(e,d){e=[c(e,"Asciidoctor")].concat(d);(function(c,$super,e){c=q(c,$super,"AttributeList");var d=[c].concat(e),f,l,v,A,u,B,x,S,N,L,D,z;c.$$prototype.attributes=c.$$prototype.scanner=c.$$prototype.delimiter=c.$$prototype.block=c.$$prototype.delimiter_skip_pattern=c.$$prototype.delimiter_boundary_pattern=k;a.const_set(d[0],"APOS","'");a.const_set(d[0],"BACKSLASH","\\");a.const_set(d[0],"QUOT",'"');a.const_set(d[0],"BoundaryRx",p(h(d,"QUOT"),/.*?[^\\](?=")/,h(d,"APOS"),/.*?[^\\](?=')/,
784
+ ",",/.*?(?=[ \t]*(,|$))/));a.const_set(d[0],"EscapedQuotes",p(h(d,"QUOT"),'\\"',h(d,"APOS"),"\\'"));a.const_set(d[0],"NameRx",new RegExp(""+h(d,"CG_WORD")+"["+h(d,"CC_WORD")+"\\-.]*"));a.const_set(d[0],"BlankRx",/[ \t]+/);a.const_set(d[0],"SkipRx",t([","],{",":/[ \t]*(,|$)/}));a.def(c,"$initialize",f=function(a,b,c){null==b&&(b=k);null==c&&(c=",");this.scanner=r("::","StringScanner").$new(a);this.block=b;this.delimiter=c;this.delimiter_skip_pattern=h(d,"SkipRx")["$[]"](c);this.delimiter_boundary_pattern=
785
+ h(d,"BoundaryRx")["$[]"](c);return this.attributes=k},f.$$arity=-2);a.def(c,"$parse_into",l=function(a,b){null==b&&(b=[]);return a.$update(this.$parse(b))},l.$$arity=-2);a.def(c,"$parse",v=function(a){var c;null==a&&(a=[]);if(m(this.attributes))return this.attributes;this.attributes=t([],{});for(c=0;m(this.$parse_attribute(c,a))&&!m(this.scanner["$eos?"]());)this.$skip_delimiter(),c=b(c,1);return this.attributes},v.$$arity=-1);a.def(c,"$rekey",A=function(a){return h(d,"AttributeList").$rekey(this.attributes,
786
+ a)},A.$$arity=1);a.defs(c,"$rekey",u=function(c,e){var d;n(e,"each_with_index",[],(d=function(e,d){var f,p=k;null==e&&(e=k);null==d&&(d=k);return m(m(f=e)?p=c["$[]"](b(d,1)):f)?(e=[e,p],n(c,"[]=",a.to_a(e)),e[g(e.length,1)]):k},d.$$s=this,d.$$arity=2,d));return c},u.$$arity=2);c.$private();a.def(c,"$parse_attribute",B=function(c,e){var f,p,l,r=k,v=k,y=k,q=k,A=v=k,t=k;A=A=k;r=!0;this.$skip_blank();v=this.scanner.$peek(1);if(h(d,"QUOT")["$==="](v))y=this.$parse_attribute_value(this.scanner.$get_byte());
787
+ else if(h(d,"APOS")["$==="](v))y=this.$parse_attribute_value(this.scanner.$get_byte()),m(y["$start_with?"](h(d,"APOS")))||(q=!0);else if(v=m(f=m(p=y=this.$scan_name())?this.$skip_blank():p)?f:0,m(this.scanner["$eos?"]())){if(!m(m(f=y)?f:this.scanner.$string().$rstrip()["$end_with?"](this.delimiter)))return k;r=k}else if((A=this.scanner.$get_byte())["$=="](this.delimiter))this.scanner.$unscan();else if(m(y))if(A["$=="]("="))if(this.$skip_blank(),v=A=this.scanner.$get_byte(),h(d,"QUOT")["$==="](v))t=
788
+ this.$parse_attribute_value(A);else if(h(d,"APOS")["$==="](v))t=this.$parse_attribute_value(A),m(t["$start_with?"](h(d,"APOS")))||(q=!0);else if(this.delimiter["$==="](v))t="",this.scanner.$unscan();else if(k["$==="](v))t="";else{if(t=""+A+this.$scan_to_delimiter(),t["$=="]("None"))return!0}else y=""+y+" "["$*"](v)+A+this.$scan_to_delimiter();else y=""+A+this.$scan_to_delimiter();m(t)?(v=y,"options"["$==="](v)||"opts"["$==="](v)?m(t["$include?"](","))?(m(t["$include?"](" "))&&(t=t.$delete(" ")),n(t.$split(","),
789
+ "each",[],(l=function(b){var c=l.$$s||this;null==c.attributes&&(c.attributes=k);null==b&&(b=k);if(m(b["$empty?"]()))return k;b=[""+b+"-option",""];n(c.attributes,"[]=",a.to_a(b));return b[g(b.length,1)]},l.$$s=this,l.$$arity=1,l))):m(t["$empty?"]())||(A=[""+t+"-option",""],n(this.attributes,"[]=",a.to_a(A)),A[g(A.length,1)]):(m(m(f=q)?this.block:f)?(v=y,A="title"["$==="](v)||"reftext"["$==="](v)?[y,t]:[y,this.block.$apply_subs(t)]):A=[y,t],n(this.attributes,"[]=",a.to_a(A)),A[g(A.length,1)])):(m(m(f=
790
+ q)?this.block:f)&&(y=this.block.$apply_subs(y)),m(m(f=A=e["$[]"](c))?y:f)&&(A=[A,y],n(this.attributes,"[]=",a.to_a(A)),A[g(A.length,1)]),A=[b(c,1),y],n(this.attributes,"[]=",a.to_a(A)),A[g(A.length,1)]);return r},B.$$arity=2);a.def(c,"$parse_attribute_value",x=function(a){var b;return this.scanner.$peek(1)["$=="](a)?(this.scanner.$get_byte(),""):m(b=this.$scan_to_quote(a))?(this.scanner.$get_byte(),m(b["$include?"](h(d,"BACKSLASH")))?b.$gsub(h(d,"EscapedQuotes")["$[]"](a),a):b):""+a+this.$scan_to_delimiter()},
791
+ x.$$arity=1);a.def(c,"$skip_blank",S=function(){return this.scanner.$skip(h(d,"BlankRx"))},S.$$arity=0);a.def(c,"$skip_delimiter",N=function(){return this.scanner.$skip(this.delimiter_skip_pattern)},N.$$arity=0);a.def(c,"$scan_name",L=function(){return this.scanner.$scan(h(d,"NameRx"))},L.$$arity=0);a.def(c,"$scan_to_delimiter",D=function(){return this.scanner.$scan(this.delimiter_boundary_pattern)},D.$$arity=0);return(a.def(c,"$scan_to_quote",z=function(a){return this.scanner.$scan(h(d,"BoundaryRx")["$[]"](a))},
792
+ z.$$arity=1),k)&&"scan_to_quote"})(e[0],null,e)}(l[0],l)};Opal.modules["asciidoctor/block"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}var g=[],l=a.nil,k=a.const_get_qualified,r=a.const_get_relative,h=a.module,c=a.klass,q=a.send,p=a.hash2,t=a.truthy;a.add_stubs("$default= $- $attr_accessor $[] $key? $=== $drop $delete $to_s $[]= $commit_subs $nil_or_empty? $prepare_source_string $apply_subs $join $< $size $empty? $rstrip $shift $pop $== $warn $logger $class $object_id $inspect".split(" "));
793
+ return function(d,g){d=[h(d,"Asciidoctor")].concat(g);(function(e,$super,d){e=c(e,$super,"Block");var g=[e].concat(d),n,h,v,A;d=l;e.$$prototype.attributes=e.$$prototype.content_model=e.$$prototype.lines=e.$$prototype.subs=e.$$prototype.blocks=e.$$prototype.context=e.$$prototype.style=l;d=["simple"];q(a.const_set(g[0],"DEFAULT_CONTENT_MODEL",p("audio image listing literal stem open page_break pass thematic_break video".split(" "),{audio:"empty",image:"empty",listing:"verbatim",literal:"verbatim",stem:"raw",
794
+ open:"compound",page_break:"empty",pass:"raw",thematic_break:"empty",video:"empty"})),"default=",a.to_a(d));d[b(d.length,1)];a.alias(e,"blockname","context");e.$attr_accessor("lines");a.def(e,"$initialize",n=function(c,e,d){var h,v=n.$$p,y,A;v&&(n.$$p=null);var m=0;var u=arguments.length;for(A=Array(u);m<u;m++)A[m]=arguments[m];null==d&&(d=p([],{}));q(this,a.find_super_dispatcher(this,"initialize",n,!1),A,v);this.content_model=t(h=d["$[]"]("content_model"))?h:r(g,"DEFAULT_CONTENT_MODEL")["$[]"](e);
795
+ t(d["$key?"]("subs"))?t(h=d["$[]"]("subs"))?("default"["$==="](h)?this.default_subs=d["$[]"]("default_subs"):k("::","Array")["$==="](h)?(this.default_subs=h.$drop(0),this.attributes.$delete("subs")):(this.default_subs=l,h=["subs",h.$to_s()],q(this.attributes,"[]=",a.to_a(h)),h[b(h.length,1)]),this.$commit_subs()):(this.default_subs=[],this.attributes.$delete("subs")):this.default_subs=l;return t((y=d["$[]"]("source"))["$nil_or_empty?"]())?this.lines=[]:t(k("::","String")["$==="](y))?this.lines=r(g,
796
+ "Helpers").$prepare_source_string(y):this.lines=y.$drop(0)},n.$$arity=-3);a.def(e,"$content",h=function(){var b,c=h.$$p,e=this,d=l,n=l,p=l,k=l,v=l,A=l,m=l;c&&(h.$$p=null);A=0;m=arguments.length;for(v=Array(m);A<m;A++)v[A]=arguments[A];return function(){d=e.content_model;if("compound"["$==="](d))return q(e,a.find_super_dispatcher(e,"content",h,!1),v,c);if("simple"["$==="](d))return e.$apply_subs(e.lines.$join(r(g,"LF")),e.subs);if("verbatim"["$==="](d)||"raw"["$==="](d)){n=e.$apply_subs(e.lines,e.subs);
797
+ var y=n.$size();y="number"===typeof y?2>y:y["$<"](2);if(t(y))return n["$[]"](0);for(;t(t(b=p=n["$[]"](0))?p.$rstrip()["$empty?"]():b);)n.$shift();for(;t(t(b=k=n["$[]"](-1))?k.$rstrip()["$empty?"]():b);)n.$pop();return n.$join(r(g,"LF"))}e.content_model["$=="]("empty")||e.$logger().$warn("Unknown content model '"+e.content_model+"' for block: "+e);return l}()},h.$$arity=0);a.def(e,"$source",v=function(){return this.lines.$join(r(g,"LF"))},v.$$arity=0);return(a.def(e,"$to_s",A=function(){var a=this.content_model["$=="]("compound")?
798
+ "blocks: "+this.blocks.$size():"lines: "+this.lines.$size();return"#<"+this.$class()+"@"+this.$object_id()+" {context: "+this.context.$inspect()+", content_model: "+this.content_model.$inspect()+", style: "+this.style.$inspect()+", "+a+"}>"},A.$$arity=0),l)&&"to_s"})(d[0],r(d,"AbstractBlock"),d)}(g[0],g)};Opal.modules["asciidoctor/callouts"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a-b:
799
+ a["$-"](b)}var l=[],k=a.nil,r=a.module,h=a.klass,c=a.hash2,q=a.truthy,p=a.send;a.add_stubs("$next_list $<< $current_list $to_i $generate_next_callout_id $+ $<= $size $[] $- $chop $join $map $== $< $private $generate_callout_id".split(" "));return function(d,l){d=[r(d,"Asciidoctor")].concat(l);(function(d,$super,f){d=h(d,$super,"Callouts");[d].concat(f);var n,l,r,v,A,t,y,m,u;d.$$prototype.co_index=d.$$prototype.lists=d.$$prototype.list_index=k;a.def(d,"$initialize",n=function(){this.lists=[];this.list_index=
800
+ 0;return this.$next_list()},n.$$arity=0);a.def(d,"$register",l=function(a){this.$current_list()["$<<"](c(["ordinal","id"],{ordinal:a.$to_i(),id:a=this.$generate_next_callout_id()}));this.co_index=b(this.co_index,1);return a},l.$$arity=1);a.def(d,"$read_next_id",r=function(){var a=k;var c=this.$current_list();var d=this.co_index;var f=c.$size();d="number"===typeof d&&"number"===typeof f?d<=f:d["$<="](f);q(d)&&(a=c["$[]"](g(this.co_index,1))["$[]"]("id"));this.co_index=b(this.co_index,1);return a},
801
+ r.$$arity=0);a.def(d,"$callout_ids",v=function(a){var b;return p(this.$current_list(),"map",[],(b=function(b){null==b&&(b=k);return b["$[]"]("ordinal")["$=="](a)?""+b["$[]"]("id")+" ":""},b.$$s=this,b.$$arity=1,b)).$join().$chop()},v.$$arity=1);a.def(d,"$current_list",A=function(){return this.lists["$[]"](g(this.list_index,1))},A.$$arity=0);a.def(d,"$next_list",t=function(){this.list_index=b(this.list_index,1);var a=this.lists.$size();var c=this.list_index;a="number"===typeof a&&"number"===typeof c?
802
+ a<c:a["$<"](c);if(q(a))this.lists["$<<"]([]);this.co_index=1;return k},t.$$arity=0);a.def(d,"$rewind",y=function(){this.co_index=this.list_index=1;return k},y.$$arity=0);d.$private();a.def(d,"$generate_next_callout_id",m=function(){return this.$generate_callout_id(this.list_index,this.co_index)},m.$$arity=0);return(a.def(d,"$generate_callout_id",u=function(a,b){return"CO"+a+"-"+b},u.$$arity=2),k)&&"generate_callout_id"})(d[0],null,d)}(l[0],l)};Opal.modules["asciidoctor/converter"]=function(a){function b(a,
803
+ b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}var l=[],k=a.nil,r=a.const_get_qualified,h=a.const_get_relative,c=a.module,q=a.hash2,p=a.truthy,t=a.send,m=a.klass,n=a.gvars;a.add_stubs("$autoload $__dir__ $attr_reader $raise $class $[] $sub $slice $length $== $[]= $backend_traits $- $derive_backend_traits $register $map $to_s $new $create $default $each $default= $registry $for $=== $supports_templates? $merge $private $include $delete $clear $send $extend $private_class_method $node_name $+ $receiver $name $warn $logger $respond_to? $content".split(" "));
804
+ return function(e,d){e=[c(e,"Asciidoctor")].concat(d);(function(e,d){e=c(e,"Converter");var f=[e].concat(d),l,v,A,y,u;e.$autoload("CompositeConverter",""+e.$__dir__()+"/converter/composite");e.$autoload("TemplateConverter",""+e.$__dir__()+"/converter/template");e.$attr_reader("backend");a.def(e,"$initialize",l=function(a,b){null==b&&q([],{});return this.backend=a},l.$$arity=-2);a.def(e,"$convert",v=function(a,b,c){null==this.backend&&(this.backend=k);return this.$raise(r("::","NotImplementedError"),
805
+ ""+this.$class()+" (backend: "+this.backend+") must implement the #convert method")},v.$$arity=-2);a.def(e,"$handles?",A=function(a){return!0},A.$$arity=1);a.defs(e,"$derive_backend_traits",y=function(a,b){var c,e,d;null==b&&(b=k);if(!p(a))return q([],{});p(e=h(f,"DEFAULT_EXTENSIONS")["$[]"](b=p(c=b)?c:a.$sub(h(f,"TrailingDigitsRx"),"")))?d=e.$slice(1,e.$length()):e="."+(d=b);return d["$=="]("html")?q(["basebackend","filetype","htmlsyntax","outfilesuffix"],{basebackend:b,filetype:d,htmlsyntax:"html",
806
+ outfilesuffix:e}):q(["basebackend","filetype","outfilesuffix"],{basebackend:b,filetype:d,outfilesuffix:e})},y.$$arity=-2);(function(e,d){e=c(e,"BackendTraits");var f=[e].concat(d),g,n,l,r,v,y,A,m,u;a.def(e,"$basebackend",g=function(c){null==c&&(c=k);if(p(c)){var e=["basebackend",c];t(this.$backend_traits(c),"[]=",a.to_a(e));return e[b(e.length,1)]}return this.$backend_traits()["$[]"]("basebackend")},g.$$arity=-1);a.def(e,"$filetype",n=function(c){null==c&&(c=k);return p(c)?(c=["filetype",c],t(this.$backend_traits(),
807
+ "[]=",a.to_a(c)),c[b(c.length,1)]):this.$backend_traits()["$[]"]("filetype")},n.$$arity=-1);a.def(e,"$htmlsyntax",l=function(c){null==c&&(c=k);return p(c)?(c=["htmlsyntax",c],t(this.$backend_traits(),"[]=",a.to_a(c)),c[b(c.length,1)]):this.$backend_traits()["$[]"]("htmlsyntax")},l.$$arity=-1);a.def(e,"$outfilesuffix",r=function(c){null==c&&(c=k);return p(c)?(c=["outfilesuffix",c],t(this.$backend_traits(),"[]=",a.to_a(c)),c[b(c.length,1)]):this.$backend_traits()["$[]"]("outfilesuffix")},r.$$arity=
808
+ -1);a.def(e,"$supports_templates",v=function(c){null==c&&(c=!0);c=["supports_templates",c];t(this.$backend_traits(),"[]=",a.to_a(c));return c[b(c.length,1)]},v.$$arity=-1);a.def(e,"$supports_templates?",y=function(){return this.$backend_traits()["$[]"]("supports_templates")},y.$$arity=0);a.def(e,"$init_backend_traits",A=function(a){var b;null==a&&(a=k);return this.backend_traits=p(b=a)?b:q([],{})},A.$$arity=-1);a.def(e,"$backend_traits",m=function(a){var b;null==this.backend_traits&&(this.backend_traits=
809
+ k);null==this.backend&&(this.backend=k);null==a&&(a=k);return this.backend_traits=p(b=this.backend_traits)?b:h(f,"Converter").$derive_backend_traits(this.backend,a)},m.$$arity=-1);a.alias(e,"backend_info","backend_traits");a.defs(e,"$derive_backend_traits",u=function(a,b){null==b&&(b=k);return h(f,"Converter").$derive_backend_traits(a,b)},u.$$arity=-2)})(f[0],f);(function(b,e){b=c(b,"Config");var d=[b].concat(e),f;a.def(b,"$register_for",f=function(b){var c;var e=a.slice.call(arguments,0,arguments.length);
810
+ return t(h(d,"Converter"),"register",[this].concat(a.to_a(t(e,"map",[],(c=function(a){null==a&&(a=k);return a.$to_s()},c.$$s=this,c.$$arity=1,c)))))},f.$$arity=-1)})(f[0],f);(function(e,d){e=c(e,"Factory");var f=[e].concat(d),g,n,l,v,y,A,m,u;a.defs(e,"$new",g=function(b,c){var e=a.slice.call(arguments,0,arguments.length);var d=a.extract_kwargs(e);if(null==d)d=q([],{});else if(!d.$$is_hash)throw a.ArgumentError.$new("expected kwargs");if(0<e.length){var g=e[0];e.splice(0,1)}null==g&&(g=k);e=d.$$smap.proxy_default;
811
+ null==e&&(e=!0);return p(e)?h(f,"DefaultFactoryProxy").$new(g):h(f,"CustomFactory").$new(g)},g.$$arity=-1);a.defs(e,"$default",n=function(b){a.slice.call(arguments,0,arguments.length);return h(f,"Converter")},n.$$arity=-1);a.defs(e,"$create",l=function(a,b){null==b&&(b=q([],{}));return this.$default().$create(a,b)},l.$$arity=-2);a.def(e,"$register",v=function(c,e){var d;var f=a.slice.call(arguments,1,arguments.length);return t(f,"each",[],(d=function(e){var f=d.$$s||this;null==e&&(e=k);e["$=="]("*")?
812
+ (e=[c],t(f.$registry(),"default=",a.to_a(e))):(e=[e,c],t(f.$registry(),"[]=",a.to_a(e)));return e[b(e.length,1)]},d.$$s=this,d.$$arity=1,d))},v.$$arity=-2);a.def(e,"$for",y=function(a){return this.$registry()["$[]"](a)},y.$$arity=1);a.def(e,"$create",A=function(a,b){var c,e,d,g,n=k;null==b&&(b=q([],{}));return p(d=this.$for(a))?(p(r("::","Class")["$==="](d))&&(d=d.$new(a,b)),p(p(c=p(e=g=b["$[]"]("template_dirs"))?h(f,"BackendTraits")["$==="](d):e)?d["$supports_templates?"]():c)?h(f,"CompositeConverter").$new(a,
813
+ h(f,"TemplateConverter").$new(a,g,b),d,q(["backend_traits_source"],{backend_traits_source:d})):d):p(g=b["$[]"]("template_dirs"))?p(p(c=n=b["$[]"]("delegate_backend"))?d=this.$for(n):c)?(p(r("::","Class")["$==="](d))&&(d=d.$new(n,b)),h(f,"CompositeConverter").$new(a,h(f,"TemplateConverter").$new(a,g,b),d,q(["backend_traits_source"],{backend_traits_source:d}))):h(f,"TemplateConverter").$new(a,g,b):k},A.$$arity=-2);a.def(e,"$converters",m=function(){return this.$registry().$merge()},m.$$arity=0);e.$private();
814
+ a.def(e,"$registry",u=function(){return this.$raise(r("::","NotImplementedError"),""+h(f,"Factory")+" subclass "+this.$class()+" must implement the #registry method")},u.$$arity=0)})(f[0],f);(function(c,$super,e){c=m(c,$super,"CustomFactory");e=[c].concat(e);var d,f;c.$include(h(e,"Factory"));a.def(c,"$initialize",d=function(c){null==c&&(c=k);if(p(c)){var e=[c.$delete("*")];t(c,"default=",a.to_a(e));e[b(e.length,1)];return this.registry=c}return this.registry=q([],{})},d.$$arity=-1);a.def(c,"$unregister_all",
815
+ f=function(){var c=[k];t(this.$registry().$clear(),"default=",a.to_a(c));return c[b(c.length,1)]},f.$$arity=0);c.$private();return c.$attr_reader("registry")})(f[0],null,f);(function(b,e){b=c(b,"DefaultFactory");var d=[b].concat(e),f;b.$include(h(d,"Factory"));b.$private();a.class_variable_set(d[0],"@@registry",q([],{}));a.def(b,"$registry",f=function(){var a;return null==(a=d[0].$$cvars["@@registry"])?k:a},f.$$arity=0);h(d,"RUBY_ENGINE")["$=="]("opal")||k})(f[0],f);(function(a,$super,b){a=m(a,$super,
816
+ "DefaultFactoryProxy");b=[a].concat(b);a.$include(h(b,"DefaultFactory"));h(b,"RUBY_ENGINE")["$=="]("opal");return k})(f[0],h(f,"CustomFactory"),f);a.defs(e,"$included",u=function(a){a.$send("include",h(f,"BackendTraits"));return a.$extend(h(f,"Config"))},u.$$arity=1);e.$private_class_method("included");(function(b,$super,c){b=m(b,$super,"Base");var e=[b].concat(c),d,f,l,v;b.$$prototype.backend=k;b.$include(h(e,"Logging"));b.$include(h(e,"Converter"));a.def(b,"$convert",d=function(b,c,d){var f,l,v=
817
+ k;null==n["!"]&&(n["!"]=k);null==c&&(c=b.$node_name());null==d&&(d=k);try{return p(d)?this.$send(g("convert_",c),b,d):this.$send(g("convert_",c),b)}catch(Y){if(a.rescue(Y,[h(e,"StandardError")]))try{return p(p(f=p(l=r("::","NoMethodError")["$==="](v=n["!"]))?v.$receiver()["$=="](this):l)?v.$name().$to_s()["$=="](c):f)||this.$raise(),this.$logger().$warn("missing convert handler for "+v.$name()+" node in "+this.backend+" backend ("+this.$class()+")"),k}finally{a.pop_exception()}else throw Y;}},d.$$arity=
818
+ -2);a.def(b,"$handles?",f=function(a){return this["$respond_to?"]("convert_"+a)},f.$$arity=1);a.def(b,"$content_only",l=function(a){return a.$content()},l.$$arity=1);return(a.def(b,"$skip",v=function(a){return k},v.$$arity=1),k)&&"skip"})(f[0],null,f);e.$extend(h(f,"DefaultFactory"))})(e[0],e)}(l[0],l)};Opal.modules["asciidoctor/document"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a>=b:a["$>="](b)}
819
+ function l(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}function k(a,b){return"number"===typeof a&&"number"===typeof b?a>b:a["$>"](b)}function r(a,b){return"number"===typeof a&&"number"===typeof b?a<b:a["$<"](b)}var h=[],c=a.nil,q=a.const_get_qualified,p=a.const_get_relative,t=a.module,m=a.klass,n=a.send,e=a.truthy,f=a.hash2,u=a.hash,x=a.gvars;a.add_stubs("$new $attr_reader $nil? $<< $[] $[]= $- $include? $strip $squeeze $gsub $empty? $! $rpartition $attr_accessor $delete $base_dir $options $merge $catalog $instance_variable_get $attributes $safe $compat_mode $outfilesuffix $sourcemap $path_resolver $converter $extensions $syntax_highlighter $each $end_with? $start_with? $slice $length $chop $== $downcase $=== $extname $value_for_name $key? $freeze $attribute_undefined $attribute_missing $update $& $keys $name_for_value $expand_path $pwd $to_s $>= $+ $abs $to_i $delete_if $update_doctype_attributes $cursor $parse $restore_attributes $update_backend_attributes $fetch $fill_datetime_attributes $activate $groups $create $to_proc $preprocessors? $preprocessors $process_method $tree_processors? $tree_processors $!= $counter $attribute_locked? $nil_or_empty? $nextval $value $save_to $register $tap $xreftext $source $source_lines $doctitle $sectname= $title= $first_section $title $reftext $> $< $find $context $assign_numeral $clear_playback_attributes $save_attributes $name $negate $rewind $replace $apply_attribute_value_subs $delete? $start $doctype $content_model $warn $logger $content $convert $postprocessors? $postprocessors $record $write $respond_to? $chomp $class $write_alternate_pages $map $split $resolve_docinfo_subs $normalize_system_path $read_asset $apply_subs $docinfo_processors? $join $concat $compact $docinfo_processors $object_id $inspect $size $private $=~ $resolve_pass_subs $apply_header_subs $limit_bytesize $bytesize $valid_encoding? $byteslice $resolve_subs $utc $at $Integer $now $index $strftime $year $utc_offset $partition $create_converter $basebackend $filetype $htmlsyntax $derive_backend_traits $raise".split(" "));
820
+ return function(d,h){d=[t(d,"Asciidoctor")].concat(h);(function(d,$super,h){d=m(d,$super,"Document");var v=[d].concat(h),y,t,A,B,T,J,S,N,D,L,z,C,E,I,H,G,U,F,ka,da,na,ea,M,P,O,R,Aa,ha,za,Ca,ua,Z,Ia,Ea,Sa,Qa,Pa,Fa,Ga,Wa,Ta,Xa,Ya,bb,Za,ia,w,Q,ra,ab,K,aa;d.$$prototype.attributes=d.$$prototype.safe=d.$$prototype.sourcemap=d.$$prototype.reader=d.$$prototype.base_dir=d.$$prototype.parsed=d.$$prototype.parent_document=d.$$prototype.extensions=d.$$prototype.options=d.$$prototype.counters=d.$$prototype.catalog=
821
+ d.$$prototype.reftexts=d.$$prototype.header=d.$$prototype.blocks=d.$$prototype.header_attributes=d.$$prototype.attributes_modified=d.$$prototype.backend=d.$$prototype.attribute_overrides=d.$$prototype.timings=d.$$prototype.converter=d.$$prototype.outfilesuffix=d.$$prototype.docinfo_processor_extensions=d.$$prototype.document=d.$$prototype.max_attribute_value_size=d.$$prototype.id=d.$$prototype.doctype=c;a.const_set(v[0],"ImageReference",n(q("::","Struct"),"new",["target","imagesdir"],(y=function(){return a.alias(y.$$s||
822
+ this,"to_s","target")},y.$$s=d,y.$$arity=0,y)));a.const_set(v[0],"Footnote",q("::","Struct").$new("index","id","text"));(function(d,$super,f){d=m(d,$super,"AttributeEntry");[d].concat(f);var g,p;d.$attr_reader("name","value","negate");a.def(d,"$initialize",g=function(a,b,d){null==d&&(d=c);this.name=a;this.value=b;return this.negate=e(d["$nil?"]())?b["$nil?"]():d},g.$$arity=-3);return(a.def(d,"$save_to",p=function(d){var f,g=c;(e(f=d["$[]"]("attribute_entries"))?f:(g=["attribute_entries",[]],n(d,"[]=",
823
+ a.to_a(g)),g[b(g.length,1)]))["$<<"](this);return this},p.$$arity=1),c)&&"save_to"})(v[0],null,v);(function(b,$super,d){b=m(b,$super,"Title");var g=[b].concat(d),n,w,h,l;b.$$prototype.sanitized=b.$$prototype.subtitle=b.$$prototype.combined=c;b.$attr_reader("main");a.alias(b,"title","main");b.$attr_reader("subtitle");b.$attr_reader("combined");a.def(b,"$initialize",n=function(b,d){var n,w,h=c;null==d&&(d=f([],{}));e(e(n=this.sanitized=d["$[]"]("sanitize"))?b["$include?"]("<"):n)&&(b=b.$gsub(p(g,"XmlSanitizeRx"),
824
+ "").$squeeze(" ").$strip());e(e(n=(h=e(w=d["$[]"]("separator"))?w:":")["$empty?"]())?n:b["$include?"](h=""+h+" ")["$!"]())?(this.main=b,this.subtitle=c):(w=b.$rpartition(h),n=a.to_ary(w),this.main=null==n[0]?c:n[0],this.subtitle=null==n[2]?c:n[2],w);return this.combined=b},n.$$arity=-2);a.def(b,"$sanitized?",w=function(){return this.sanitized},w.$$arity=0);a.def(b,"$subtitle?",h=function(){return e(this.subtitle)?!0:!1},h.$$arity=0);return(a.def(b,"$to_s",l=function(){return this.combined},l.$$arity=
825
+ 0),c)&&"to_s"})(v[0],null,v);a.const_set(v[0],"Author",q("::","Struct").$new("name","firstname","middlename","lastname","initials","email"));d.$attr_reader("safe");d.$attr_reader("compat_mode");d.$attr_reader("backend");d.$attr_reader("doctype");d.$attr_accessor("sourcemap");d.$attr_reader("catalog");a.alias(d,"references","catalog");d.$attr_reader("counters");d.$attr_reader("header");d.$attr_reader("base_dir");d.$attr_reader("options");d.$attr_reader("outfilesuffix");d.$attr_reader("parent_document");
826
+ d.$attr_reader("reader");d.$attr_reader("path_resolver");d.$attr_reader("converter");d.$attr_reader("syntax_highlighter");d.$attr_reader("extensions");a.def(d,"$initialize",t=function(d,w){var h,k,r,y,Q,A,m,W=c,K=c,X=c,ab=c,B=c,T=c,ra=T=T=c,aa=c,x=ra=c,J=ra=ra=c;W=W=W=c;t.$$p&&(t.$$p=null);null==d&&(d=c);null==w&&(w=f([],{}));n(this,a.find_super_dispatcher(this,"initialize",t,!1),[this,"document"],null);if(e(W=w.$delete("parent")))this.parent_document=W,e(h=w["$[]"]("base_dir"))?h:(K=["base_dir",
827
+ W.$base_dir()],n(w,"[]=",a.to_a(K)),K[b(K.length,1)]),e(W.$options()["$[]"]("catalog_assets"))&&(K=["catalog_assets",!0],n(w,"[]=",a.to_a(K)),K[b(K.length,1)]),this.catalog=W.$catalog().$merge(f(["footnotes"],{footnotes:[]})),this.attribute_overrides=X=W.$instance_variable_get("@attribute_overrides").$merge(W.$attributes()),X.$delete("compat-mode"),ab=X.$delete("doctype"),X.$delete("notitle"),X.$delete("showtitle"),X.$delete("toc"),K=["toc-placement",e(h=X.$delete("toc-placement"))?h:"auto"],n(this.attributes,
828
+ "[]=",a.to_a(K)),K[b(K.length,1)],X.$delete("toc-position"),this.safe=W.$safe(),e(this.compat_mode=W.$compat_mode())&&(K=["compat-mode",""],n(this.attributes,"[]=",a.to_a(K)),K[b(K.length,1)]),this.outfilesuffix=W.$outfilesuffix(),this.sourcemap=W.$sourcemap(),this.timings=c,this.path_resolver=W.$path_resolver(),this.converter=W.$converter(),B=c,this.extensions=W.$extensions(),this.syntax_highlighter=W.$syntax_highlighter();else{this.parent_document=c;this.catalog=f("ids refs footnotes links images callouts includes".split(" "),
829
+ {ids:f([],{}),refs:f([],{}),footnotes:[],links:[],images:[],callouts:p(v,"Callouts").$new(),includes:f([],{})});this.attribute_overrides=X=f([],{});n(e(h=w["$[]"]("attributes"))?h:f([],{}),"each",[],(k=function(d,f){var g;null==d&&(d=c);null==f&&(f=c);e(d["$end_with?"]("@"))?(e(d["$start_with?"]("!"))?(g=[d.$slice(1,b(d.$length(),2)),!1],d=g[0],f=g[1]):e(d["$end_with?"]("!@"))?(g=[d.$slice(0,b(d.$length(),2)),!1],d=g[0],f=g[1]):(g=[d.$chop(),""+f+"@"],d=g[0],f=g[1]),g):e(d["$start_with?"]("!"))?(g=
830
+ [d.$slice(1,d.$length()),f["$=="]("@")?!1:c],d=g[0],f=g[1],g):e(d["$end_with?"]("!"))&&(g=[d.$chop(),f["$=="]("@")?!1:c],d=g[0],f=g[1],g);K=[d.$downcase(),f];n(X,"[]=",a.to_a(K));return K[b(K.length,1)]},k.$$s=this,k.$$arity=2,k));e(q("::","String")["$==="](T=w["$[]"]("to_file")))&&(K=["outfilesuffix",p(v,"Helpers").$extname(T)],n(X,"[]=",a.to_a(K)),K[b(K.length,1)]);if(e((T=w["$[]"]("safe"))["$!"]()))this.safe=q(p(v,"SafeMode"),"SECURE");else if(e(q("::","Integer")["$==="](T)))this.safe=T;else{a:{try{var ia=
831
+ p(v,"SafeMode").$value_for_name(T);break a}catch(mb){if(a.rescue(mb,[p(v,"StandardError")]))try{ia=q(p(v,"SafeMode"),"SECURE");break a}finally{a.pop_exception()}else throw mb;}ia=void 0}this.safe=ia}T=w.$delete("input_mtime");this.compat_mode=X["$key?"]("compat-mode");this.sourcemap=w["$[]"]("sourcemap");this.timings=w.$delete("timings");this.path_resolver=p(v,"PathResolver").$new();B=e(e(h=(r=q("::","Asciidoctor","skip_raise"))&&q(r,"Extensions","skip_raise")?"constant":c)?h:w["$key?"]("extensions"))?
832
+ q(q("::","Asciidoctor"),"Extensions"):c;this.extensions=c;e(e(h=w["$key?"]("header_footer"))?w["$key?"]("standalone")["$!"]():h)&&(K=["standalone",w["$[]"]("header_footer")],n(w,"[]=",a.to_a(K)),K[b(K.length,1)])}this.parsed=this.reftexts=this.header=this.header_attributes=c;this.counters=f([],{});this.attributes_modified=q("::","Set").$new();this.docinfo_processor_extensions=f([],{});ra=w["$[]"]("standalone");(this.options=w).$freeze();aa=this.attributes;e(W)||(K=["attribute-undefined",p(v,"Compliance").$attribute_undefined()],
833
+ n(aa,"[]=",a.to_a(K)),K[b(K.length,1)],K=["attribute-missing",p(v,"Compliance").$attribute_missing()],n(aa,"[]=",a.to_a(K)),K[b(K.length,1)],aa.$update(p(v,"DEFAULT_ATTRIBUTES")));e(ra)?(K=["embedded",c],n(X,"[]=",a.to_a(K)),K[b(K.length,1)],K=["copycss",""],n(aa,"[]=",a.to_a(K)),K[b(K.length,1)],K=["iconfont-remote",""],n(aa,"[]=",a.to_a(K)),K[b(K.length,1)],K=["stylesheet",""],n(aa,"[]=",a.to_a(K)),K[b(K.length,1)],K=["webfonts",""],n(aa,"[]=",a.to_a(K))):(K=["embedded",""],n(X,"[]=",a.to_a(K)),
834
+ K[b(K.length,1)],e(e(h=X["$key?"]("showtitle"))?X.$keys()["$&"](["notitle","showtitle"])["$[]"](-1)["$=="]("showtitle"):h)?(K=["notitle",u(c,"",!1,"@","@",!1)["$[]"](X["$[]"]("showtitle"))],n(X,"[]=",a.to_a(K))):e(X["$key?"]("notitle"))?(K=["showtitle",u(c,"",!1,"@","@",!1)["$[]"](X["$[]"]("notitle"))],n(X,"[]=",a.to_a(K))):(K=["notitle",""],n(aa,"[]=",a.to_a(K))));K[b(K.length,1)];K=["asciidoctor",""];n(X,"[]=",a.to_a(K));K[b(K.length,1)];K=["asciidoctor-version",q(q("::","Asciidoctor"),"VERSION")];
835
+ n(X,"[]=",a.to_a(K));K[b(K.length,1)];K=["safe-mode-name",ra=p(v,"SafeMode").$name_for_value(this.safe)];n(X,"[]=",a.to_a(K));K[b(K.length,1)];K=["safe-mode-"+ra,""];n(X,"[]=",a.to_a(K));K[b(K.length,1)];K=["safe-mode-level",this.safe];n(X,"[]=",a.to_a(K));K[b(K.length,1)];e(h=X["$[]"]("max-include-depth"))?h:(K=["max-include-depth",64],n(X,"[]=",a.to_a(K)),K[b(K.length,1)]);e(h=X["$[]"]("allow-uri-read"))?h:(K=["allow-uri-read",c],n(X,"[]=",a.to_a(K)),K[b(K.length,1)]);e(X["$key?"]("numbered"))&&
836
+ (K=["sectnums",X.$delete("numbered")],n(X,"[]=",a.to_a(K)),K[b(K.length,1)]);e(X["$key?"]("hardbreaks"))&&(K=["hardbreaks-option",X.$delete("hardbreaks")],n(X,"[]=",a.to_a(K)),K[b(K.length,1)]);e(x=w["$[]"]("base_dir"))?this.base_dir=(K=["docdir",q("::","File").$expand_path(x)],n(X,"[]=",a.to_a(K)),K[b(K.length,1)]):e(X["$[]"]("docdir"))?this.base_dir=X["$[]"]("docdir"):this.base_dir=(K=["docdir",q("::","Dir").$pwd()],n(X,"[]=",a.to_a(K)),K[b(K.length,1)]);e(ra=w["$[]"]("backend"))&&(K=["backend",
837
+ ra.$to_s()],n(X,"[]=",a.to_a(K)),K[b(K.length,1)]);e(ra=w["$[]"]("doctype"))&&(K=["doctype",ra.$to_s()],n(X,"[]=",a.to_a(K)),K[b(K.length,1)]);e(g(this.safe,q(p(v,"SafeMode"),"SERVER")))?(e(h=X["$[]"]("copycss"))?h:(K=["copycss",c],n(X,"[]=",a.to_a(K)),K[b(K.length,1)]),e(h=X["$[]"]("source-highlighter"))?h:(K=["source-highlighter",c],n(X,"[]=",a.to_a(K)),K[b(K.length,1)]),e(h=X["$[]"]("backend"))?h:(K=["backend",p(v,"DEFAULT_BACKEND")],n(X,"[]=",a.to_a(K)),K[b(K.length,1)]),e(e(h=W["$!"]())?X["$key?"]("docfile"):
838
+ h)&&(K=["docfile",X["$[]"]("docfile")["$[]"](a.Range.$new(l(X["$[]"]("docdir").$length(),1),-1,!1))],n(X,"[]=",a.to_a(K)),K[b(K.length,1)]),K=["docdir",""],n(X,"[]=",a.to_a(K)),K[b(K.length,1)],e(h=X["$[]"]("user-home"))?h:(K=["user-home","."],n(X,"[]=",a.to_a(K)),K[b(K.length,1)]),e(g(this.safe,q(p(v,"SafeMode"),"SECURE")))&&(e(X["$key?"]("max-attribute-value-size"))||(K=["max-attribute-value-size",4096],n(X,"[]=",a.to_a(K)),K[b(K.length,1)]),e(X["$key?"]("linkcss"))||(K=["linkcss",""],n(X,"[]=",
839
+ a.to_a(K)),K[b(K.length,1)]),e(h=X["$[]"]("icons"))?h:(K=["icons",c],n(X,"[]=",a.to_a(K)),K[b(K.length,1)]))):e(h=X["$[]"]("user-home"))?h:(K=["user-home",p(v,"USER_HOME")],n(X,"[]=",a.to_a(K)),K[b(K.length,1)]);this.max_attribute_value_size=e(J=e(h=X["$[]"]("max-attribute-value-size"))?h:(K=["max-attribute-value-size",c],n(X,"[]=",a.to_a(K)),K[b(K.length,1)]))?J.$to_i().$abs():c;n(X,"delete_if",[],(y=function(d,f){var g,w=c;null==d&&(d=c);null==f&&(f=c);e(f)?(e(e(g=q("::","String")["$==="](f))?f["$end_with?"]("@"):
840
+ g)&&(g=[f.$chop(),!0],f=g[0],w=g[1],g),K=[d,f],n(aa,"[]=",a.to_a(K)),K[b(K.length,1)]):(aa.$delete(d),w=f["$=="](!1));return w},y.$$s=this,y.$$arity=2,y));if(e(W))return this.backend=aa["$[]"]("backend"),(this.doctype=(K=["doctype",ab],n(aa,"[]=",a.to_a(K)),K[b(K.length,1)]))["$=="](p(v,"DEFAULT_DOCTYPE"))||this.$update_doctype_attributes(p(v,"DEFAULT_DOCTYPE")),this.reader=p(v,"Reader").$new(d,w["$[]"]("cursor")),e(this.sourcemap)&&(this.source_location=this.reader.$cursor()),p(v,"Parser").$parse(this.reader,
841
+ this),this.$restore_attributes(),this.parsed=!0;this.backend=c;(W=e(h=aa["$[]"]("backend"))?h:p(v,"DEFAULT_BACKEND"))["$=="]("manpage")?this.doctype=(K=["doctype",(K=["doctype","manpage"],n(X,"[]=",a.to_a(K)),K[b(K.length,1)])],n(aa,"[]=",a.to_a(K)),K[b(K.length,1)]):this.doctype=e(h=aa["$[]"]("doctype"))?h:(K=["doctype",p(v,"DEFAULT_DOCTYPE")],n(aa,"[]=",a.to_a(K)),K[b(K.length,1)]);this.$update_backend_attributes(W,!0);e(h=aa["$[]"]("stylesdir"))?h:(K=["stylesdir","."],n(aa,"[]=",a.to_a(K)),K[b(K.length,
842
+ 1)]);e(h=aa["$[]"]("iconsdir"))?h:(K=["iconsdir",""+aa.$fetch("imagesdir","./images")+"/icons"],n(aa,"[]=",a.to_a(K)),K[b(K.length,1)]);this.$fill_datetime_attributes(aa,T);e(B)&&(e(W=w["$[]"]("extension_registry"))?e(e(h=q(p(v,"Extensions"),"Registry")["$==="](W))?h:e(Q=(m=q("::","AsciidoctorJ","skip_raise"))&&(A=q(m,"Extensions","skip_raise"))&&q(A,"ExtensionRegistry","skip_raise")?"constant":c)?q(q(q("::","AsciidoctorJ"),"Extensions"),"ExtensionRegistry")["$==="](W):Q)&&(this.extensions=W.$activate(this)):
843
+ e((W=w["$[]"]("extensions"))["$nil?"]())?e(p(v,"Extensions").$groups()["$empty?"]())||(this.extensions=q(p(v,"Extensions"),"Registry").$new().$activate(this)):e(q("::","Proc")["$==="](W))&&(this.extensions=n(p(v,"Extensions"),"create",[],W.$to_proc()).$activate(this)));this.reader=p(v,"PreprocessorReader").$new(this,d,q(p(v,"Reader"),"Cursor").$new(aa["$[]"]("docfile"),this.base_dir),f(["normalize"],{normalize:!0}));return e(this.sourcemap)?this.source_location=this.reader.$cursor():c},t.$$arity=
844
+ -1);a.def(d,"$parse",A=function(a){var b,d,g,w=c,h=c;null==a&&(a=c);if(e(this.parsed))return this;w=this;e(a)&&(this.reader=p(v,"PreprocessorReader").$new(w,a,q(p(v,"Reader"),"Cursor").$new(this.attributes["$[]"]("docfile"),this.base_dir),f(["normalize"],{normalize:!0})),e(this.sourcemap)&&(this.source_location=this.reader.$cursor()));e(e(b=h=e(this.parent_document)?c:this.extensions)?h["$preprocessors?"]():b)&&n(h.$preprocessors(),"each",[],(d=function(a){var b=d.$$s||this,f;null==b.reader&&(b.reader=
845
+ c);null==a&&(a=c);return b.reader=e(f=a.$process_method()["$[]"](w,b.reader))?f:b.reader},d.$$s=this,d.$$arity=1,d));p(v,"Parser").$parse(this.reader,w,f(["header_only"],{header_only:this.options["$[]"]("parse_header_only")}));this.$restore_attributes();e(e(b=h)?h["$tree_processors?"]():b)&&n(h.$tree_processors(),"each",[],(g=function(a){var b,d,f=c;null==a&&(a=c);return e(e(b=e(d=f=a.$process_method()["$[]"](w))?p(v,"Document")["$==="](f):d)?f["$!="](w):b)?w=f:c},g.$$s=this,g.$$arity=1,g));this.parsed=
846
+ !0;return w},A.$$arity=-1);a.def(d,"$parsed?",B=function(){return this.parsed},B.$$arity=0);a.def(d,"$counter",T=function(d,f){var g,w,h,l=c,k=c;null==f&&(f=c);if(e(this.parent_document))return this.parent_document.$counter(d,f);f=e(e(g=e(w=h=this["$attribute_locked?"](d))?l=this.counters["$[]"](d):w)?g:(l=this.attributes["$[]"](d))["$nil_or_empty?"]()["$!"]())?(k=[d,p(v,"Helpers").$nextval(l)],n(this.counters,"[]=",a.to_a(k)),k[b(k.length,1)]):e(f)?(k=[d,f["$=="](f.$to_i().$to_s())?f.$to_i():f],
847
+ n(this.counters,"[]=",a.to_a(k)),k[b(k.length,1)]):(k=[d,1],n(this.counters,"[]=",a.to_a(k)),k[b(k.length,1)]);e(h)||(k=[d,f],n(this.attributes,"[]=",a.to_a(k)),k[b(k.length,1)]);return f},T.$$arity=-2);a.def(d,"$increment_and_store_counter",J=function(a,b){return p(v,"AttributeEntry").$new(a,this.$counter(a)).$save_to(b.$attributes()).$value()},J.$$arity=2);a.alias(d,"counter_increment","increment_and_store_counter");a.def(d,"$register",S=function(d,g){var w,h=this,k=c,l=c,r=c,y=c,q=c;return function(){k=
848
+ d;return"ids"["$==="](k)?h.$register("refs",[l=g["$[]"](0),p(v,"Inline").$new(h,"anchor",g["$[]"](1),f(["type","id"],{type:"ref",id:l}))]):"refs"["$==="](k)?(r=h.catalog["$[]"]("refs"),e(w=r["$[]"](g["$[]"](0)))?w:(y=[g["$[]"](0),q=g["$[]"](1)],n(r,"[]=",a.to_a(y)),y[b(y.length,1)]),q):"footnotes"["$==="](k)?h.catalog["$[]"](d)["$<<"](g):e(h.options["$[]"]("catalog_assets"))?h.catalog["$[]"](d)["$<<"](d["$=="]("images")?p(v,"ImageReference").$new(g,h.attributes["$[]"]("imagesdir")):g):c}()},S.$$arity=
849
+ 2);a.def(d,"$resolve_id",N=function(d){var g,w,h=this,p=c,k=c;if(e(h.reftexts))return h.reftexts["$[]"](d);if(e(h.parsed))return n(h.reftexts=f([],{}),"tap",[],(g=function(d){var f=g.$$s||this,w;null==f.catalog&&(f.catalog=c);null==d&&(d=c);return n(f.catalog["$[]"]("refs"),"each",[],(w=function(f,g){var w,h=c;null==f&&(f=c);null==g&&(g=c);return e(w=d["$[]"](g.$xreftext()))?w:(h=[g.$xreftext(),f],n(d,"[]=",a.to_a(h)),h[b(h.length,1)])},w.$$s=f,w.$$arity=2,w))},g.$$s=h,g.$$arity=1,g))["$[]"](d);p=
850
+ c;h.reftexts=k=f([],{});(function(){var f=a.new_brk();try{return n(h.catalog["$[]"]("refs"),"each",[],(w=function(g,w){var h,l=c;null==g&&(g=c);null==w&&(w=c);(w=w.$xreftext())["$=="](d)&&(p=g,a.brk(c,f));return e(h=k["$[]"](w))?h:(l=[w,g],n(k,"[]=",a.to_a(l)),l[b(l.length,1)])},w.$$s=h,w.$$brk=f,w.$$arity=2,w))}catch(fb){if(fb===f)return fb.$v;throw fb;}})();h.reftexts=c;return p},N.$$arity=1);a.def(d,"$footnotes?",D=function(){return e(this.catalog["$[]"]("footnotes")["$empty?"]())?!1:!0},D.$$arity=
851
+ 0);a.def(d,"$footnotes",L=function(){return this.catalog["$[]"]("footnotes")},L.$$arity=0);a.def(d,"$callouts",z=function(){return this.catalog["$[]"]("callouts")},z.$$arity=0);a.def(d,"$nested?",C=function(){return e(this.parent_document)?!0:!1},C.$$arity=0);a.def(d,"$embedded?",E=function(){return this.attributes["$key?"]("embedded")},E.$$arity=0);a.def(d,"$extensions?",I=function(){return e(this.extensions)?!0:!1},I.$$arity=0);a.def(d,"$source",H=function(){return e(this.reader)?this.reader.$source():
852
+ c},H.$$arity=0);a.def(d,"$source_lines",G=function(){return e(this.reader)?this.reader.$source_lines():c},G.$$arity=0);a.def(d,"$basebackend?",U=function(a){return this.attributes["$[]"]("basebackend")["$=="](a)},U.$$arity=1);a.def(d,"$title",F=function(){return this.$doctitle()},F.$$arity=0);a.def(d,"$title=",ka=function(c){var d;if(!e(d=this.header)){var f=["header"];n(d=this.header=p(v,"Section").$new(this,0),"sectname=",a.to_a(f));f[b(f.length,1)]}f=[c];n(d,"title=",a.to_a(f));return f[b(f.length,
853
+ 1)]},ka.$$arity=1);a.def(d,"$doctitle",da=function(a){var b,d,g,n=c;null==a&&(a=f([],{}));if(!e(d=this.attributes["$[]"]("title")))if(e(g=this.$first_section()))d=g.$title();else if(e((e(b=a["$[]"]("use_fallback"))?d=this.attributes["$[]"]("untitled-label"):b)["$!"]()))return c;return e(n=a["$[]"]("partition"))?p(v,"Title").$new(d,a.$merge(f(["separator"],{separator:n["$=="](!0)?this.attributes["$[]"]("title-separator"):n}))):e(e(b=a["$[]"]("sanitize"))?d["$include?"]("<"):b)?d.$gsub(p(v,"XmlSanitizeRx"),
854
+ "").$squeeze(" ").$strip():d},da.$$arity=-1);a.alias(d,"name","doctitle");a.def(d,"$xreftext",na=function(a){var b;a=c;return e(e(b=a=this.$reftext())?a["$empty?"]()["$!"]():b)?a:this.$title()},na.$$arity=-1);a.def(d,"$author",ea=function(){return this.attributes["$[]"]("author")},ea.$$arity=0);a.def(d,"$authors",M=function(){var a,b,c;if(e((b=this.attributes)["$key?"]("author"))){var d=[p(v,"Author").$new(b["$[]"]("author"),b["$[]"]("firstname"),b["$[]"]("middlename"),b["$[]"]("lastname"),b["$[]"]("authorinitials"),
855
+ b["$[]"]("email"))];if(e(k(c=e(a=b["$[]"]("authorcount"))?a:0,1)))for(a=1;e(r(a,c));)a=l(a,1),d["$<<"](p(v,"Author").$new(b["$[]"]("author_"+a),b["$[]"]("firstname_"+a),b["$[]"]("middlename_"+a),b["$[]"]("lastname_"+a),b["$[]"]("authorinitials_"+a),b["$[]"]("email_"+a)));return d}return[]},M.$$arity=0);a.def(d,"$revdate",P=function(){return this.attributes["$[]"]("revdate")},P.$$arity=0);a.def(d,"$notitle",O=function(){return this.attributes["$key?"]("notitle")},O.$$arity=0);a.def(d,"$noheader",R=
856
+ function(){return this.attributes["$key?"]("noheader")},R.$$arity=0);a.def(d,"$nofooter",Aa=function(){return this.attributes["$key?"]("nofooter")},Aa.$$arity=0);a.def(d,"$first_section",ha=function(){var a,b;return e(a=this.header)?a:n(this.blocks,"find",[],(b=function(a){null==a&&(a=c);return a.$context()["$=="]("section")},b.$$s=this,b.$$arity=1,b))},ha.$$arity=0);a.def(d,"$header?",za=function(){return e(this.header)?!0:!1},za.$$arity=0);a.alias(d,"has_header?","header?");a.def(d,"$<<",Ca=function(b){var c=
857
+ Ca.$$p,e;c&&(Ca.$$p=null);var d=0;var f=arguments.length;for(e=Array(f);d<f;d++)e[d]=arguments[d];b.$context()["$=="]("section")&&this.$assign_numeral(b);return n(this,a.find_super_dispatcher(this,"<<",Ca,!1),e,c)},Ca.$$arity=1);a.def(d,"$finalize_header",ua=function(c,d){null==d&&(d=!0);this.$clear_playback_attributes(c);this.$save_attributes();e(d)||(d=["invalid-header",!0],n(c,"[]=",a.to_a(d)),d[b(d.length,1)]);return c},ua.$$arity=-2);a.def(d,"$playback_attributes",Z=function(d){var f;return e(d["$key?"]("attribute_entries"))?
858
+ n(d["$[]"]("attribute_entries"),"each",[],(f=function(d){var g=f.$$s||this;null==g.attributes&&(g.attributes=c);null==d&&(d=c);var w=d.$name();if(e(d.$negate()))return g.attributes.$delete(w),w["$=="]("compat-mode")?g.compat_mode=!1:c;d=[w,d.$value()];n(g.attributes,"[]=",a.to_a(d));d[b(d.length,1)];return w["$=="]("compat-mode")?g.compat_mode=!0:c},f.$$s=this,f.$$arity=1,f)):c},Z.$$arity=1);a.def(d,"$restore_attributes",Ia=function(){e(this.parent_document)||this.catalog["$[]"]("callouts").$rewind();
859
+ return this.attributes.$replace(this.header_attributes)},Ia.$$arity=0);a.def(d,"$set_attribute",Ea=function(d,f){null==f&&(f="");if(e(this["$attribute_locked?"](d)))return c;e(f["$empty?"]())||(f=this.$apply_attribute_value_subs(f));if(e(this.header_attributes)){var g=[d,f];n(this.attributes,"[]=",a.to_a(g));g[b(g.length,1)]}else"backend"["$==="](d)?this.$update_backend_attributes(f,e(g=this.attributes_modified["$delete?"]("htmlsyntax"))?f["$=="](this.backend):g):"doctype"["$==="](d)?this.$update_doctype_attributes(f):
860
+ (g=[d,f],n(this.attributes,"[]=",a.to_a(g)),g[b(g.length,1)]),this.attributes_modified["$<<"](d);return f},Ea.$$arity=-2);a.def(d,"$delete_attribute",Sa=function(a){if(e(this["$attribute_locked?"](a)))return!1;this.attributes.$delete(a);this.attributes_modified["$<<"](a);return!0},Sa.$$arity=1);a.def(d,"$attribute_locked?",Qa=function(a){return this.attribute_overrides["$key?"](a)},Qa.$$arity=1);a.def(d,"$set_header_attribute",Pa=function(c,d,f){var g;null==d&&(d="");null==f&&(f=!0);var w=e(g=this.header_attributes)?
861
+ g:this.attributes;if(e(f["$=="](!1)?w["$key?"](c):f["$=="](!1)))return!1;c=[c,d];n(w,"[]=",a.to_a(c));c[b(c.length,1)];return!0},Pa.$$arity=-2);a.def(d,"$convert",Fa=function(d){var w,h,k=c,l=c,r=c,y=c,Q=c;null==d&&(d=f([],{}));e(this.timings)&&this.timings.$start("convert");e(this.parsed)||this.$parse();e(e(w=g(this.safe,q(p(v,"SafeMode"),"SERVER")))?w:d["$empty?"]())||(e((k=["outfile",d["$[]"]("outfile")],n(this.attributes,"[]=",a.to_a(k)),k[b(k.length,1)]))||this.attributes.$delete("outfile"),
862
+ e((k=["outdir",d["$[]"]("outdir")],n(this.attributes,"[]=",a.to_a(k)),k[b(k.length,1)]))||this.attributes.$delete("outdir"));this.$doctype()["$=="]("inline")?e(l=e(w=this.blocks["$[]"](0))?w:this.header)&&(e(e(w=l.$content_model()["$=="]("compound"))?w:l.$content_model()["$=="]("empty"))?this.$logger().$warn("no inline candidate; use the inline doctype to convert a single paragragh, verbatim, or raw block"):r=l.$content()):(y=e(d["$key?"]("standalone"))?e(d["$[]"]("standalone"))?"document":"embedded":
863
+ e(d["$key?"]("header_footer"))?e(d["$[]"]("header_footer"))?"document":"embedded":e(this.options["$[]"]("standalone"))?"document":"embedded",r=this.converter.$convert(this,y));!e(this.parent_document)&&e(e(w=Q=this.extensions)?Q["$postprocessors?"]():w)&&n(Q.$postprocessors(),"each",[],(h=function(a){var b=h.$$s||this;null==a&&(a=c);return r=a.$process_method()["$[]"](b,r)},h.$$s=this,h.$$arity=1,h));e(this.timings)&&this.timings.$record("convert");return r},Fa.$$arity=-1);a.alias(d,"render","convert");
864
+ a.def(d,"$write",Ga=function(a,b){var d;e(this.timings)&&this.timings.$start("write");e(p(v,"Writer")["$==="](this.converter))?this.converter.$write(a,b):(e(b["$respond_to?"]("write"))?e(a["$nil_or_empty?"]())||(b.$write(a.$chomp()),b.$write(p(v,"LF"))):q("::","File").$write(b,a,f(["mode"],{mode:p(v,"FILE_WRITE_MODE")})),e(e(d=this.backend["$=="]("manpage")?q("::","String")["$==="](b):this.backend["$=="]("manpage"))?this.converter.$class()["$respond_to?"]("write_alternate_pages"):d)&&this.converter.$class().$write_alternate_pages(this.attributes["$[]"]("mannames"),
865
+ this.attributes["$[]"]("manvolnum"),b));e(this.timings)&&this.timings.$record("write");return c},Ga.$$arity=2);a.def(d,"$content",Wa=function(){var b=Wa.$$p,c;b&&(Wa.$$p=null);var e=0;var d=arguments.length;for(c=Array(d);e<d;e++)c[e]=arguments[e];this.attributes.$delete("title");return n(this,a.find_super_dispatcher(this,"content",Wa,!1),c,b)},Wa.$$arity=0);a.def(d,"$docinfo",Ta=function(a,b){var d,g,w,h=c,k=c,l=c,y=c,Q=c,t=c,A=c;y=A=c;null==a&&(a="head");null==b&&(b=c);if(e(r(this.$safe(),q(p(v,
866
+ "SafeMode"),"SECURE")))&&(a["$=="]("head")||(h="-"+a),b=e(d=b)?d:this.outfilesuffix,k=e((k=this.attributes["$[]"]("docinfo"))["$nil_or_empty?"]())?e(this.attributes["$key?"]("docinfo2"))?["private","shared"]:e(this.attributes["$key?"]("docinfo1"))?["shared"]:e(k)?["private"]:c:n(k.$split(","),"map",[],(g=function(a){null==a&&(a=c);return a.$strip()},g.$$s=this,g.$$arity=1,g)),e(k))){l=[];d=["docinfo"+h+b,this.attributes["$[]"]("docinfodir"),this.$resolve_docinfo_subs()];y=d[0];Q=d[1];t=d[2];d;if(!e(k["$&"](["shared",
867
+ "shared-"+a])["$empty?"]())&&(A=this.$normalize_system_path(y,Q),e(A=this.$read_asset(A,f(["normalize"],{normalize:!0})))))l["$<<"](this.$apply_subs(A,t));if(!e(e(d=this.attributes["$[]"]("docname")["$nil_or_empty?"]())?d:k["$&"](["private","private-"+a])["$empty?"]())&&(A=this.$normalize_system_path(""+this.attributes["$[]"]("docname")+"-"+y,Q),e(y=this.$read_asset(A,f(["normalize"],{normalize:!0})))))l["$<<"](this.$apply_subs(y,t))}return e(e(d=this.extensions)?this["$docinfo_processors?"](a):d)?
868
+ (e(d=l)?d:[]).$concat(n(this.docinfo_processor_extensions["$[]"](a),"map",[],(w=function(a){var b=w.$$s||this;null==a&&(a=c);return a.$process_method()["$[]"](b)},w.$$s=this,w.$$arity=1,w)).$compact()).$join(p(v,"LF")):e(l)?l.$join(p(v,"LF")):""},Ta.$$arity=-1);a.def(d,"$docinfo_processors?",Xa=function(d){var f,g=c;null==d&&(d="head");if(e(this.docinfo_processor_extensions["$key?"](d)))return this.docinfo_processor_extensions["$[]"](d)["$!="](!1);if(e(e(f=this.extensions)?this.document.$extensions()["$docinfo_processors?"](d):
869
+ f))return(g=[d,this.document.$extensions().$docinfo_processors(d)],n(this.docinfo_processor_extensions,"[]=",a.to_a(g)),g[b(g.length,1)])["$!"]()["$!"]();g=[d,!1];n(this.docinfo_processor_extensions,"[]=",a.to_a(g));return g[b(g.length,1)]},Xa.$$arity=-1);a.def(d,"$to_s",Ya=function(){var a;return"#<"+this.$class()+"@"+this.$object_id()+" {doctype: "+this.$doctype().$inspect()+", doctitle: "+(e(a=this.header)?this.header.$title():a).$inspect()+", blocks: "+this.blocks.$size()+"}>"},Ya.$$arity=0);
870
+ d.$private();a.def(d,"$apply_attribute_value_subs",bb=function(a){var b;e(p(v,"AttributeEntryPassMacroRx")["$=~"](a))?(a=(b=x["~"])===c?c:b["$[]"](2),e((b=x["~"])===c?c:b["$[]"](1))&&(a=this.$apply_subs(a,this.$resolve_pass_subs((b=x["~"])===c?c:b["$[]"](1))))):a=this.$apply_header_subs(a);return e(this.max_attribute_value_size)?this.$limit_bytesize(a,this.max_attribute_value_size):a},bb.$$arity=1);a.def(d,"$limit_bytesize",Za=function(a,c){if(e(k(a.$bytesize(),c)))for(;!e((a=a.$byteslice(0,c))["$valid_encoding?"]());)c=
871
+ b(c,1);return a},Za.$$arity=2);a.def(d,"$resolve_docinfo_subs",ia=function(){return e(this.attributes["$key?"]("docinfosubs"))?this.$resolve_subs(this.attributes["$[]"]("docinfosubs"),"block",c,"docinfo"):["attributes"]},ia.$$arity=0);a.def(d,"$create_converter",w=function(d,g){var w,h,k=c,l;var r=f(["document","htmlsyntax"],{document:this,htmlsyntax:this.attributes["$[]"]("htmlsyntax")});e(h=e(w=(k=this.options)["$[]"]("template_dirs"))?w:k["$[]"]("template_dir"))&&(w=["template_dirs",[].concat(a.to_a(h))],
872
+ n(r,"[]=",a.to_a(w)),w[b(w.length,1)],w=["template_cache",k.$fetch("template_cache",!0)],n(r,"[]=",a.to_a(w)),w[b(w.length,1)],w=["template_engine",k["$[]"]("template_engine")],n(r,"[]=",a.to_a(w)),w[b(w.length,1)],w=["template_engine_options",k["$[]"]("template_engine_options")],n(r,"[]=",a.to_a(w)),w[b(w.length,1)],w=["eruby",k["$[]"]("eruby")],n(r,"[]=",a.to_a(w)),w[b(w.length,1)],w=["safe",this.safe],n(r,"[]=",a.to_a(w)),w[b(w.length,1)],e(g)&&(w=["delegate_backend",g],n(r,"[]=",a.to_a(w)),w[b(w.length,
873
+ 1)]));return e(l=k["$[]"]("converter"))?q(p(v,"Converter"),"CustomFactory").$new(u(d,l)).$create(d,r):k.$fetch("converter_factory",p(v,"Converter")).$create(d,r)},w.$$arity=2);a.def(d,"$clear_playback_attributes",Q=function(a){return a.$delete("attribute_entries")},Q.$$arity=1);a.def(d,"$save_attributes",ra=function(){var d,g,w=c,h=c,k=c,l=k=c,r=c,y=c,Q=c,t=Q=Q=l=y=c,A=c,m=c;e(e(d=(w=this.attributes)["$key?"]("doctitle"))?d:(h=this.$doctitle())["$!"]())||(k=["doctitle",h],n(w,"[]=",a.to_a(k)),k[b(k.length,
874
+ 1)]);this.id=e(d=this.id)?d:w["$[]"]("css-signature");e(k=e(w.$delete("toc2"))?"left":w["$[]"]("toc"))&&(l=e(e(d=r=w.$fetch("toc-placement","macro"))?r["$!="]("auto"):d)?r:w["$[]"]("toc-position"),e(e(d=k["$empty?"]())?l["$nil_or_empty?"]():d)||(y="left",Q="toc2",y=e(l["$nil_or_empty?"]())?e(k["$empty?"]())?y:k:l,k=["toc",""],n(w,"[]=",a.to_a(k)),k[b(k.length,1)],k=["toc-placement","auto"],n(w,"[]=",a.to_a(k)),k[b(k.length,1)],l=y,"left"["$==="](l)||"<"["$==="](l)||"&lt;"["$==="](l)?(k=["toc-position",
875
+ "left"],n(w,"[]=",a.to_a(k)),k[b(k.length,1)]):"right"["$==="](l)||">"["$==="](l)||"&gt;"["$==="](l)?(k=["toc-position","right"],n(w,"[]=",a.to_a(k)),k[b(k.length,1)]):"top"["$==="](l)||"^"["$==="](l)?(k=["toc-position","top"],n(w,"[]=",a.to_a(k)),k[b(k.length,1)]):"bottom"["$==="](l)||"v"["$==="](l)?(k=["toc-position","bottom"],n(w,"[]=",a.to_a(k)),k[b(k.length,1)]):("preamble"["$==="](l)||"macro"["$==="](l)?(k=["toc-position","content"],n(w,"[]=",a.to_a(k)),k[b(k.length,1)],k=["toc-placement",y],
876
+ n(w,"[]=",a.to_a(k)),k[b(k.length,1)]):w.$delete("toc-position"),Q=c),e(Q)&&(e(d=w["$[]"]("toc-class"))?d:(k=["toc-class",Q],n(w,"[]=",a.to_a(k)),k[b(k.length,1)]))));e(e(d=Q=w["$[]"]("icons"))?w["$key?"]("icontype")["$!"]():d)&&(l=Q,""["$==="](l)||"font"["$==="](l)?c:(k=["icons",""],n(w,"[]=",a.to_a(k)),k[b(k.length,1)],Q["$=="]("image")||(k=["icontype",Q],n(w,"[]=",a.to_a(k)),k[b(k.length,1)])));e(e(d=this.compat_mode=w["$key?"]("compat-mode"))?w["$key?"]("language"):d)&&(k=["source-language",w["$[]"]("language")],
877
+ n(w,"[]=",a.to_a(k)),k[b(k.length,1)]);e(this.parent_document)||((Q=w["$[]"]("basebackend"))["$=="]("html")?e(e(d=t=w["$[]"]("source-highlighter"))?w["$[]"](""+t+"-unavailable")["$!"]():d)&&(e(A=this.options["$[]"]("syntax_highlighter_factory"))?this.syntax_highlighter=A.$create(t,this.backend,f(["document"],{document:this})):e(m=this.options["$[]"]("syntax_highlighters"))?this.syntax_highlighter=q(p(v,"SyntaxHighlighter"),"DefaultFactoryProxy").$new(m).$create(t,this.backend,f(["document"],{document:this})):
878
+ this.syntax_highlighter=p(v,"SyntaxHighlighter").$create(t,this.backend,f(["document"],{document:this}))):Q["$=="]("docbook")&&(e(e(d=this["$attribute_locked?"]("toc"))?d:this.attributes_modified["$include?"]("toc"))||(k=["toc",""],n(w,"[]=",a.to_a(k)),k[b(k.length,1)]),e(e(d=this["$attribute_locked?"]("sectnums"))?d:this.attributes_modified["$include?"]("sectnums"))||(k=["sectnums",""],n(w,"[]=",a.to_a(k)),k[b(k.length,1)])),this.outfilesuffix=w["$[]"]("outfilesuffix"),n(p(v,"FLEXIBLE_ATTRIBUTES"),
879
+ "each",[],(g=function(a){var b=g.$$s||this,d;null==b.attribute_overrides&&(b.attribute_overrides=c);null==a&&(a=c);return e(e(d=b.attribute_overrides["$key?"](a))?b.attribute_overrides["$[]"](a):d)?b.attribute_overrides.$delete(a):c},g.$$s=this,g.$$arity=1,g)));return this.header_attributes=w.$merge()},ra.$$arity=0);a.def(d,"$fill_datetime_attributes",ab=function(d,f){var g,w,h=c,p,k=c;var l=e(q("::","ENV")["$key?"]("SOURCE_DATE_EPOCH"))?h=q("::","Time").$at(this.$Integer(q("::","ENV")["$[]"]("SOURCE_DATE_EPOCH"))).$utc():
880
+ q("::","Time").$now();e(p=d["$[]"]("localdate"))?e(g=d["$[]"]("localyear"))?g:(k=["localyear",p.$index("-")["$=="](4)?p.$slice(0,4):c],n(d,"[]=",a.to_a(k)),k[b(k.length,1)]):(p=(k=["localdate",l.$strftime("%F")],n(d,"[]=",a.to_a(k)),k[b(k.length,1)]),e(g=d["$[]"]("localyear"))?g:(k=["localyear",l.$year().$to_s()],n(d,"[]=",a.to_a(k)),k[b(k.length,1)]));var r=e(g=d["$[]"]("localtime"))?g:(k=["localtime",l.$strftime("%T "+(l.$utc_offset()["$=="](0)?"UTC":"%z"))],n(d,"[]=",a.to_a(k)),k[b(k.length,1)]);
881
+ e(g=d["$[]"]("localdatetime"))?g:(k=["localdatetime",""+p+" "+r],n(d,"[]=",a.to_a(k)),k[b(k.length,1)]);f=e(g=e(w=h)?w:f)?g:l;e(w=d["$[]"]("docdate"))?e(g=d["$[]"]("docyear"))?g:(k=["docyear",w.$index("-")["$=="](4)?w.$slice(0,4):c],n(d,"[]=",a.to_a(k)),k[b(k.length,1)]):(w=(k=["docdate",f.$strftime("%F")],n(d,"[]=",a.to_a(k)),k[b(k.length,1)]),e(g=d["$[]"]("docyear"))?g:(k=["docyear",f.$year().$to_s()],n(d,"[]=",a.to_a(k)),k[b(k.length,1)]));f=e(g=d["$[]"]("doctime"))?g:(k=["doctime",f.$strftime("%T "+
882
+ (f.$utc_offset()["$=="](0)?"UTC":"%z"))],n(d,"[]=",a.to_a(k)),k[b(k.length,1)]);e(g=d["$[]"]("docdatetime"))?g:(k=["docdatetime",""+w+" "+f],n(d,"[]=",a.to_a(k)),k[b(k.length,1)]);return c},ab.$$arity=2);a.def(d,"$update_backend_attributes",K=function(d,f){var g,w,h=c,k=c,l=c,r=c,y=c,Q;null==f&&(f=c);if(e(e(g=f)?g:d["$!="](this.backend))){var t=this.backend;var A=(w=this.attributes)["$[]"]("basebackend");var m=this.doctype;if(e(d["$include?"](":"))){var K=d.$partition(":");g=a.to_ary(K);h=null==g[0]?
883
+ c:g[0];d=null==g[2]?c:g[2];K}e(d["$start_with?"]("xhtml"))?(k=["htmlsyntax","xml"],n(w,"[]=",a.to_a(k)),k[b(k.length,1)],d=d.$slice(1,d.$length())):e(d["$start_with?"]("html"))&&(e(g=w["$[]"]("htmlsyntax"))?g:(k=["htmlsyntax","html"],n(w,"[]=",a.to_a(k)),k[b(k.length,1)]));d=e(g=p(v,"BACKEND_ALIASES")["$[]"](d))?g:d;e(h)&&(g=[h,d],d=g[0],l=g[1],g);e(m)?(e(t)&&(w.$delete("backend-"+t),w.$delete("backend-"+t+"-doctype-"+m)),k=["backend-"+d+"-doctype-"+m,""],n(w,"[]=",a.to_a(k)),k[b(k.length,1)],k=["doctype-"+
884
+ m,""],n(w,"[]=",a.to_a(k)),k[b(k.length,1)]):e(t)&&w.$delete("backend-"+t);k=["backend-"+d,""];n(w,"[]=",a.to_a(k));k[b(k.length,1)];this.backend=(k=["backend",d],n(w,"[]=",a.to_a(k)),k[b(k.length,1)]);e(q(p(v,"Converter"),"BackendTraits")["$==="](K=this.$create_converter(d,l)))?(r=K.$basebackend(),y=K.$filetype(),e(t=K.$htmlsyntax())&&(k=["htmlsyntax",t],n(w,"[]=",a.to_a(k)),k[b(k.length,1)]),e(f)?e(g=w["$[]"]("outfilesuffix"))?g:(k=["outfilesuffix",K.$outfilesuffix()],n(w,"[]=",a.to_a(k)),k[b(k.length,
885
+ 1)]):e(this["$attribute_locked?"]("outfilesuffix"))||(k=["outfilesuffix",K.$outfilesuffix()],n(w,"[]=",a.to_a(k)),k[b(k.length,1)])):e(K)?(t=p(v,"Converter").$derive_backend_traits(d),r=t["$[]"]("basebackend"),y=t["$[]"]("filetype"),e(f)?e(g=w["$[]"]("outfilesuffix"))?g:(k=["outfilesuffix",t["$[]"]("outfilesuffix")],n(w,"[]=",a.to_a(k)),k[b(k.length,1)]):e(this["$attribute_locked?"]("outfilesuffix"))||(k=["outfilesuffix",t["$[]"]("outfilesuffix")],n(w,"[]=",a.to_a(k)),k[b(k.length,1)])):this.$raise(q("::",
886
+ "NotImplementedError"),"asciidoctor: FAILED: missing converter for backend '"+d+"'. Processing aborted.");this.converter=K;e(Q=w["$[]"]("filetype"))&&w.$delete("filetype-"+Q);k=["filetype",y];n(w,"[]=",a.to_a(k));k[b(k.length,1)];k=["filetype-"+y,""];n(w,"[]=",a.to_a(k));k[b(k.length,1)];e(f=p(v,"DEFAULT_PAGE_WIDTHS")["$[]"](r))?(k=["pagewidth",f],n(w,"[]=",a.to_a(k)),k[b(k.length,1)]):w.$delete("pagewidth");e(r["$!="](A))&&(e(m)?(e(A)&&(w.$delete("basebackend-"+A),w.$delete("basebackend-"+A+"-doctype-"+
887
+ m)),k=["basebackend-"+r+"-doctype-"+m,""],n(w,"[]=",a.to_a(k)),k[b(k.length,1)]):e(A)&&w.$delete("basebackend-"+A),k=["basebackend-"+r,""],n(w,"[]=",a.to_a(k)),k[b(k.length,1)],k=["basebackend",r],n(w,"[]=",a.to_a(k)),k[b(k.length,1)]);return d}return c},K.$$arity=-2);return(a.def(d,"$update_doctype_attributes",aa=function(d){var f,g;if(e(e(f=d)?d["$!="](this.doctype):f)){f=[this.backend,(g=this.attributes)["$[]"]("basebackend"),this.doctype];var w=f[0];var h=f[1];var k=f[2];f;e(k)?(g.$delete("doctype-"+
888
+ k),e(w)&&(g.$delete("backend-"+w+"-doctype-"+k),f=["backend-"+w+"-doctype-"+d,""],n(g,"[]=",a.to_a(f)),f[b(f.length,1)]),e(h)&&(g.$delete("basebackend-"+h+"-doctype-"+k),f=["basebackend-"+h+"-doctype-"+d,""],n(g,"[]=",a.to_a(f)),f[b(f.length,1)])):(e(w)&&(f=["backend-"+w+"-doctype-"+d,""],n(g,"[]=",a.to_a(f)),f[b(f.length,1)]),e(h)&&(f=["basebackend-"+h+"-doctype-"+d,""],n(g,"[]=",a.to_a(f)),f[b(f.length,1)]));f=["doctype-"+d,""];n(g,"[]=",a.to_a(f));f[b(f.length,1)];return this.doctype=(f=["doctype",
889
+ d],n(g,"[]=",a.to_a(f)),f[b(f.length,1)])}return c},aa.$$arity=1),c)&&"update_doctype_attributes"})(d[0],p(d,"AbstractBlock"),d)}(h[0],h)};Opal.modules["asciidoctor/inline"]=function(a){var b=[],g=a.nil,k=a.const_get_relative,l=a.module,r=a.klass,h=a.hash2,c=a.send,q=a.truthy;a.add_stubs("$attr_accessor $attr_reader $[] $convert $converter $attr $== $apply_reftext_subs $reftext".split(" "));return function(b,d){b=[l(b,"Asciidoctor")].concat(d);(function(b,$super,e){b=r(b,$super,"Inline");[b].concat(e);
890
+ var d,k,p,l,v,t,A,y;b.$$prototype.text=b.$$prototype.type=g;b.$attr_accessor("text");b.$attr_reader("type");b.$attr_accessor("target");a.def(b,"$initialize",d=function(b,e,f,k){d.$$p&&(d.$$p=null);null==f&&(f=g);null==k&&(k=h([],{}));c(this,a.find_super_dispatcher(this,"initialize",d,!1),[b,e,k],null);this.node_name="inline_"+e;this.text=f;this.id=k["$[]"]("id");this.type=k["$[]"]("type");return this.target=k["$[]"]("target")},d.$$arity=-3);a.def(b,"$block?",k=function(){return!1},k.$$arity=0);a.def(b,
891
+ "$inline?",p=function(){return!0},p.$$arity=0);a.def(b,"$convert",l=function(){return this.$converter().$convert(this)},l.$$arity=0);a.alias(b,"render","convert");a.def(b,"$alt",v=function(){var a;return q(a=this.$attr("alt"))?a:""},v.$$arity=0);a.def(b,"$reftext?",t=function(){var a,b;return q(a=this.text)?q(b=this.type["$=="]("ref"))?b:this.type["$=="]("bibref"):a},t.$$arity=0);a.def(b,"$reftext",A=function(){var a;return q(a=this.text)?this.$apply_reftext_subs(a):g},A.$$arity=0);return(a.def(b,
892
+ "$xreftext",y=function(a){return this.$reftext()},y.$$arity=-1),g)&&"xreftext"})(b[0],k(b,"AbstractNode"),b)}(b[0],b)};Opal.modules["asciidoctor/list"]=function(a){var b=[],g=a.nil,k=a.const_get_relative,l=a.module,r=a.klass,h=a.hash2,c=a.send,q=a.truthy;a.add_stubs("$== $next_list $callouts $class $object_id $inspect $size $items $attr_accessor $level $drop $nil_or_empty? $apply_subs $attr_writer $empty? $=== $[] $outline? $! $simple? $source $shift $context $parent".split(" "));return function(b,
893
+ d){b=[l(b,"Asciidoctor")].concat(d);(function(b,$super,e){b=r(b,$super,"List");[b].concat(e);var d,k,p,l;b.$$prototype.context=b.$$prototype.document=b.$$prototype.style=g;a.alias(b,"items","blocks");a.alias(b,"content","blocks");a.alias(b,"items?","blocks?");a.def(b,"$initialize",d=function(b,e,f){var g=d.$$p,k;g&&(d.$$p=null);var p=0;var l=arguments.length;for(k=Array(l);p<l;p++)k[p]=arguments[p];null==f&&(f=h([],{}));return c(this,a.find_super_dispatcher(this,"initialize",d,!1),k,g)},d.$$arity=
894
+ -3);a.def(b,"$outline?",k=function(){var a;return q(a=this.context["$=="]("ulist"))?a:this.context["$=="]("olist")},k.$$arity=0);a.def(b,"$convert",p=function(){var b=p.$$p,e;b&&(p.$$p=null);var d=0;var f=arguments.length;for(e=Array(f);d<f;d++)e[d]=arguments[d];return this.context["$=="]("colist")?(b=c(this,a.find_super_dispatcher(this,"convert",p,!1),e,b),this.document.$callouts().$next_list(),b):c(this,a.find_super_dispatcher(this,"convert",p,!1),e,b)},p.$$arity=0);a.alias(b,"render","convert");
895
+ return(a.def(b,"$to_s",l=function(){return"#<"+this.$class()+"@"+this.$object_id()+" {context: "+this.context.$inspect()+", style: "+this.style.$inspect()+", items: "+this.$items().$size()+"}>"},l.$$arity=0),g)&&"to_s"})(b[0],k(b,"AbstractBlock"),b);(function(b,$super,e){b=r(b,$super,"ListItem");var d=[b].concat(e),h,p,l,v,t,m,y;b.$$prototype.text=b.$$prototype.subs=b.$$prototype.blocks=g;a.alias(b,"list","parent");b.$attr_accessor("marker");a.def(b,"$initialize",h=function(b,e){h.$$p&&(h.$$p=null);
896
+ null==e&&(e=g);c(this,a.find_super_dispatcher(this,"initialize",h,!1),[b,"list_item"],null);this.text=e;this.level=b.$level();return this.subs=k(d,"NORMAL_SUBS").$drop(0)},h.$$arity=-2);a.def(b,"$text?",p=function(){return q(this.text["$nil_or_empty?"]())?!1:!0},p.$$arity=0);a.def(b,"$text",l=function(){var a;return q(a=this.text)?this.$apply_subs(this.text,this.subs):a},l.$$arity=0);b.$attr_writer("text");a.def(b,"$simple?",v=function(){var a,b,c=g;return q(a=this.blocks["$empty?"]())?a:q(b=this.blocks.$size()["$=="](1)?
897
+ k(d,"List")["$==="](c=this.blocks["$[]"](0)):this.blocks.$size()["$=="](1))?c["$outline?"]():b},v.$$arity=0);a.def(b,"$compound?",t=function(){return this["$simple?"]()["$!"]()},t.$$arity=0);a.def(b,"$fold_first",m=function(){this.text=q(this.text["$nil_or_empty?"]())?this.blocks.$shift().$source():""+this.text+k(d,"LF")+this.blocks.$shift().$source();return g},m.$$arity=0);return(a.def(b,"$to_s",y=function(){var a;return"#<"+this.$class()+"@"+this.$object_id()+" {list_context: "+this.$parent().$context().$inspect()+
898
+ ", text: "+this.text.$inspect()+", blocks: "+(q(a=this.blocks)?a:[]).$size()+"}>"},y.$$arity=0),g)&&"to_s"})(b[0],k(b,"AbstractBlock"),b)}(b[0],b)};Opal.modules["asciidoctor/parser"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}function k(a,b){return"number"===typeof a&&"number"===typeof b?a<b:a["$<"](b)}function l(a,b){return"number"===typeof a&&"number"===typeof b?a>b:a["$>"](b)}
899
+ function r(a,b){return"number"===typeof a&&"number"===typeof b?a*b:a["$*"](b)}var h=[],c=a.nil,q=a.const_get_qualified,p=a.const_get_relative,t=a.module,m=a.klass,n=a.send,e=a.truthy,f=a.hash2,u=a.gvars;a.add_stubs("$include $new $proc $start_with? $match? $is_delimited_block? $private_class_method $parse_document_header $[] $has_more_lines? $next_section $assign_numeral $<< $blocks $skip_blank_lines $parse_block_metadata_lines $attributes $is_next_line_doctitle? $finalize_header $nil_or_empty? $title= $- $sourcemap $cursor $parse_section_title $id= $include? $sub_specialchars $[]= $sub_attributes $source_location= $header $attribute_locked? $id $clear $delete $instance_variable_get $parse_header_metadata $== $! $register $doctype $parse_manpage_header $=~ $downcase $error $logger $message_with_context $cursor_at_line $backend $save $update $is_next_line_section? $initialize_section $join $map $read_lines_until $lstrip $split $title $restore_save $discard_save $context $empty? $header? $!= $attr? $attr $key? $document $+ $level $special $sectname $to_i $< $> $warn $next_block $blocks? $style $context= $style= $parent= $size $content_model $shift $unwrap_standalone_preamble $source_location $merge $fetch $parse_block_metadata_line $extensions $block_macros? $mark $read_line $terminator $to_s $masq $to_sym $registered_for_block? $debug? $debug $cursor_at_mark $strict_verbatim_paragraphs $unshift_line $markdown_syntax $keys $chr $uniform? $length $end_with? $=== $parse_attributes $attribute_missing $tr $basename $assign_caption $registered_for_block_macro? $config $process_method $replace $parse_callout_list $callouts $parse_list $parse_description_list $underline_style_section_titles $is_section_title? $peek_line $atx_section_title? $generate_id $level= $read_paragraph_lines $adjust_indentation! $map! $slice $pop $build_block $apply_subs $chop $catalog_inline_anchors $rekey $index $strip $parse_table $each $raise $title? $update_attributes $commit_subs $sub? $catalog_callouts $source $remove_sub $block_terminates_paragraph $to_proc $nil? $lines $parse_blocks $parse_list_item $items $scan $gsub $count $advance $dup $match $callout_ids $next_list $catalog_inline_anchor $marker= $catalog_inline_biblio_anchor $set_option $text= $resolve_ordered_list_marker $read_lines_for_list_item $skip_line_comments $unshift_lines $fold_first $text? $is_sibling_list_item? $concat $find $casecmp $sectname= $special= $numbered= $numbered $lineno $peek_lines $setext_section_title? $abs $cursor_at_prev_line $process_attribute_entries $next_line_empty? $process_authors $apply_header_subs $rstrip $each_with_index $compact $squeeze $to_a $parse_style_attribute $process_attribute_entry $skip_comment_lines $store_attribute $sanitize_attribute_name $set_attribute $save_to $delete_attribute $ord $int_to_roman $resolve_list_marker $parse_colspecs $create_columns $has_header_option= $format $starts_with_delimiter? $close_open_cell $parse_cellspec $delimiter $match_delimiter $pre_match $post_match $buffer_has_unclosed_quotes? $skip_past_delimiter $buffer $buffer= $skip_past_escaped_delimiter $keep_cell_open $push_cellspec $close_cell $cell_open? $columns $assign_column_widths $partition_header_footer $upto $partition $shorthand_property_syntax $each_char $yield_buffered_attribute $any? $* $each_byte $%".split(" "));
900
+ return function(d,h){d=[t(d,"Asciidoctor")].concat(h);(function(d,$super,h){d=m(d,$super,"Parser");var v=[d].concat(h),t,A,B,x,J,S,D,z,C,L,N,E,H,G,I,U,F,ka,qa,ba,da,na,ea,M,P,O,R,Aa,ha,za,Z,ua,Na,Ia,Ea,Sa,Qa,Pa,Fa,Ga,Wa,Ta,Xa,Ya,bb,Za;d.$include(p(v,"Logging"));a.const_set(v[0],"BlockMatchData",p(v,"Struct").$new("context","masq","tip","terminator"));a.const_set(v[0],"TAB","\t");a.const_set(v[0],"TabIndentRx",/^\t+/);a.const_set(v[0],"StartOfBlockProc",n(d,"proc",[],(t=function(a){var b=t.$$s||this,
901
+ d,f;null==a&&(a=c);return e(d=e(f=a["$start_with?"]("["))?p(v,"BlockAttributeLineRx")["$match?"](a):f)?d:b["$is_delimited_block?"](a)},t.$$s=d,t.$$arity=1,t)));a.const_set(v[0],"StartOfListProc",n(d,"proc",[],(A=function(a){null==a&&(a=c);return p(v,"AnyListRx")["$match?"](a)},A.$$s=d,A.$$arity=1,A)));a.const_set(v[0],"StartOfBlockOrListProc",n(d,"proc",[],(B=function(a){var b=B.$$s||this,d,f,g;null==a&&(a=c);return e(d=e(f=b["$is_delimited_block?"](a))?f:e(g=a["$start_with?"]("["))?p(v,"BlockAttributeLineRx")["$match?"](a):
902
+ g)?d:p(v,"AnyListRx")["$match?"](a)},B.$$s=d,B.$$arity=1,B)));a.const_set(v[0],"NoOp",c);a.const_set(v[0],"AuthorKeys","author authorinitials firstname middlename lastname email".split(" "));a.const_set(v[0],"TableCellHorzAlignments",f(["<",">","^"],{"<":"left",">":"right","^":"center"}));a.const_set(v[0],"TableCellVertAlignments",f(["<",">","^"],{"<":"top",">":"bottom","^":"middle"}));a.const_set(v[0],"TableCellStyles",f("dsemhla".split(""),{d:"none",s:"strong",e:"emphasis",m:"monospaced",h:"header",
903
+ l:"literal",a:"asciidoc"}));d.$private_class_method("new");a.defs(d,"$parse",x=function(b,d,g){null==g&&(g=f([],{}));var w=this.$parse_document_header(b,d);if(!e(g["$[]"]("header_only")))for(;e(b["$has_more_lines?"]());){g=this.$next_section(b,d,w);w=a.to_ary(g);var n=null==w[0]?c:w[0];w=null==w[1]?c:w[1];g;e(n)&&(d.$assign_numeral(n),d.$blocks()["$<<"](n))}return d},x.$$arity=-3);a.defs(d,"$parse_document_header",J=function(d,g){var w,k,h,l=c,r=c;var q=e(d.$skip_blank_lines())?this.$parse_block_metadata_lines(d,
904
+ g):f([],{});var t=g.$attributes();if(e(e(w=k=this["$is_next_line_doctitle?"](d,q,t["$[]"]("leveloffset")))?q["$[]"]("title"):w))return g.$finalize_header(q,!1);if(!e((h=t["$[]"]("doctitle"))["$nil_or_empty?"]())){var m=[l=h];n(g,"title=",a.to_a(m));m[b(m.length,1)]}if(e(k)){e(g.$sourcemap())&&(r=d.$cursor());m=this.$parse_section_title(d,g);w=a.to_ary(m);g["$id="](null==w[0]?c:w[0]);k=null==w[2]?c:w[2];var A=null==w[4]?c:w[4];m;e(l)?k=c:(m=[k],n(g,"title=",a.to_a(m)),m[b(m.length,1)],e((m=["doctitle",
905
+ l=g.$sub_specialchars(k)],n(t,"[]=",a.to_a(m)),m[b(m.length,1)])["$include?"](p(v,"ATTR_REF_HEAD")))&&(m=["doctitle",l=g.$sub_attributes(l,f(["attribute_missing"],{attribute_missing:"skip"}))],n(t,"[]=",a.to_a(m)),m[b(m.length,1)]));e(r)&&(m=[r],n(g.$header(),"source_location=",a.to_a(m)),m[b(m.length,1)]);e(e(w=A)?w:g["$attribute_locked?"]("compat-mode"))||(m=["compat-mode",""],n(t,"[]=",a.to_a(m)),m[b(m.length,1)]);e(m=q["$[]"]("separator"))&&!e(g["$attribute_locked?"]("title-separator"))&&(m=["title-separator",
906
+ m],n(t,"[]=",a.to_a(m)),m[b(m.length,1)]);e(r=q["$[]"]("id"))?(m=[r],n(g,"id=",a.to_a(m)),m[b(m.length,1)]):r=g.$id();e(m=q["$[]"]("role"))&&(m=["role",m],n(t,"[]=",a.to_a(m)),m[b(m.length,1)]);e(m=q["$[]"]("reftext"))&&(m=["reftext",m],n(t,"[]=",a.to_a(m)),m[b(m.length,1)]);q.$clear();(m=g.$instance_variable_get("@attributes_modified")).$delete("doctitle");this.$parse_header_metadata(d,g);if(e(m["$include?"]("doctitle")))e(e(w=(h=t["$[]"]("doctitle"))["$nil_or_empty?"]())?w:h["$=="](l))?(m=["doctitle",
907
+ l],n(t,"[]=",a.to_a(m))):(m=[h],n(g,"title=",a.to_a(m))),m[b(m.length,1)];else if(e(k["$!"]()))m["$<<"]("doctitle");e(r)&&g.$register("refs",[r,g])}g.$doctype()["$=="]("manpage")&&this.$parse_manpage_header(d,g,q);return g.$finalize_header(q)},J.$$arity=2);a.defs(d,"$parse_manpage_header",S=function(d,g,k){var w,h,l,r,q=c,m=c,t=c,Q=c,A=c,y=c,B=y=c,x=c,ia=c,J=c;e(p(v,"ManpageTitleVolnumRx")["$=~"]((q=g.$attributes())["$[]"]("doctitle")))?(m=["manvolnum",t=(w=u["~"])===c?c:w["$[]"](2)],n(q,"[]=",a.to_a(m)),
908
+ m[b(m.length,1)],m=["mantitle",(e((Q=(w=u["~"])===c?c:w["$[]"](1))["$include?"](p(v,"ATTR_REF_HEAD")))?g.$sub_attributes(Q):Q).$downcase()]):(this.$logger().$error(this.$message_with_context("non-conforming manpage title",f(["source_location"],{source_location:d.$cursor_at_line(1)}))),m=["mantitle",e(w=e(h=q["$[]"]("doctitle"))?h:q["$[]"]("docname"))?w:"command"],n(q,"[]=",a.to_a(m)),m[b(m.length,1)],m=["manvolnum",t="1"]);n(q,"[]=",a.to_a(m));m[b(m.length,1)];e(e(w=A=q["$[]"]("manname"))?q["$[]"]("manpurpose"):
909
+ w)?(e(w=q["$[]"]("manname-title"))?w:(m=["manname-title","Name"],n(q,"[]=",a.to_a(m)),m[b(m.length,1)]),m=["mannames",[A]],n(q,"[]=",a.to_a(m)),m[b(m.length,1)],g.$backend()["$=="]("manpage")&&(m=["docname",A],n(q,"[]=",a.to_a(m)),m[b(m.length,1)],m=["outfilesuffix","."+t],n(q,"[]=",a.to_a(m)),m[b(m.length,1)])):(d.$skip_blank_lines(),d.$save(),k.$update(this.$parse_block_metadata_lines(d,g)),e(y=this["$is_next_line_section?"](d,f([],{})))?y["$=="](1)?(y=this.$initialize_section(d,g,f([],{})),B=n(d.$read_lines_until(f(["break_on_blank_lines",
910
+ "skip_line_comments"],{break_on_blank_lines:!0,skip_line_comments:!0})),"map",[],(l=function(a){null==a&&(a=c);return a.$lstrip()},l.$$s=this,l.$$arity=1,l)).$join(" "),e(p(v,"ManpageNamePurposeRx")["$=~"](B))?(e((A=(w=u["~"])===c?c:w["$[]"](1))["$include?"](p(v,"ATTR_REF_HEAD")))&&(A=g.$sub_attributes(A)),e(A["$include?"](","))?A=(x=n(A.$split(","),"map",[],(r=function(a){null==a&&(a=c);return a.$lstrip()},r.$$s=this,r.$$arity=1,r)))["$[]"](0):x=[A],e((ia=(w=u["~"])===c?c:w["$[]"](2))["$include?"](p(v,
911
+ "ATTR_REF_HEAD")))&&(ia=g.$sub_attributes(ia)),e(w=q["$[]"]("manname-title"))?w:(m=["manname-title",y.$title()],n(q,"[]=",a.to_a(m)),m[b(m.length,1)]),e(y.$id())&&(m=["manname-id",y.$id()],n(q,"[]=",a.to_a(m)),m[b(m.length,1)]),m=["manname",A],n(q,"[]=",a.to_a(m)),m[b(m.length,1)],m=["mannames",x],n(q,"[]=",a.to_a(m)),m[b(m.length,1)],m=["manpurpose",ia],n(q,"[]=",a.to_a(m)),m[b(m.length,1)],g.$backend()["$=="]("manpage")&&(m=["docname",A],n(q,"[]=",a.to_a(m)),m[b(m.length,1)],m=["outfilesuffix",
912
+ "."+t],n(q,"[]=",a.to_a(m)),m[b(m.length,1)])):J="non-conforming name section body"):J="name section must be at level 1":J="name section expected",e(J)?(d.$restore_save(),this.$logger().$error(this.$message_with_context(J,f(["source_location"],{source_location:d.$cursor()}))),m=["manname",A=e(w=q["$[]"]("docname"))?w:"command"],n(q,"[]=",a.to_a(m)),m[b(m.length,1)],m=["mannames",[A]],n(q,"[]=",a.to_a(m)),m[b(m.length,1)],g.$backend()["$=="]("manpage")&&(m=["docname",A],n(q,"[]=",a.to_a(m)),m[b(m.length,
913
+ 1)],m=["outfilesuffix","."+t],n(q,"[]=",a.to_a(m)),m[b(m.length,1)])):d.$discard_save());return c},S.$$arity=3);a.defs(d,"$next_section",D=function(d,w,h){var r,q,m,t,A,Q,u=c,y,B,x=c,ia=B=c,J;null==h&&(h=f([],{}));var S=A=Q=!1;if(e(e(r=(q=w.$context()["$=="]("document"))?w.$blocks()["$empty?"]():w.$context()["$=="]("document"))?e(q=e(m=u=w["$header?"]())?m:h.$delete("invalid-header"))?q:this["$is_next_line_section?"](d,h)["$!"]():r)){var D=(y=w).$doctype()["$=="]("book");if(e(e(r=u)?r:e(q=D)?h["$[]"](1)["$!="]("abstract"):
914
+ q)){S=A=p(v,"Block").$new(w,"preamble",f(["content_model"],{content_model:"compound"}));if(e(e(r=D)?w["$attr?"]("preface-title"):r)){var z=[w.$attr("preface-title")];n(S,"title=",a.to_a(z));z[b(z.length,1)]}w.$blocks()["$<<"](S)}u=w;B=0;if(e(w.$attributes()["$key?"]("fragment")))var C=-1;else e(D)?(r=[1,0],C=r[0],x=r[1],r):C=1}else D=(y=w.$document()).$doctype()["$=="]("book"),u=this.$initialize_section(d,w,h),h=e(B=h["$[]"]("title"))?f(["title"],{title:B}):f([],{}),C=g(B=u.$level(),1),B["$=="](0)?
915
+ Q=D:e((r=B["$=="](1))?u.$special():B["$=="](1))&&!e(e(r=e(q=(ia=u.$sectname())["$=="]("appendix"))?q:ia["$=="]("preface"))?r:ia["$=="]("abstract"))&&(C=c);for(d.$skip_blank_lines();e(d["$has_more_lines?"]());){this.$parse_block_metadata_lines(d,y,h);if(e(J=this["$is_next_line_section?"](d,h)))if(e(y["$attr?"]("leveloffset"))&&(J=g(J,y.$attr("leveloffset").$to_i()),e(k(J,0))&&(J=0)),e(l(J,B)))e(C)?e(e(q=e(m=J["$=="](C))?m:e(t=x)?J["$=="](x):t)?q:k(C,0))||(q=e(x)?"expected levels "+x+" or "+C:"expected level "+
916
+ C,this.$logger().$warn(this.$message_with_context("section title out of sequence: "+q+", got level "+J,f(["source_location"],{source_location:d.$cursor()})))):this.$logger().$error(this.$message_with_context(""+ia+" sections do not support nested sections",f(["source_location"],{source_location:d.$cursor()}))),m=this.$next_section(d,u,h),q=a.to_ary(m),J=null==q[0]?c:q[0],h=null==q[1]?c:q[1],m,u.$assign_numeral(J),u.$blocks()["$<<"](J);else if(e((q=J["$=="](0))?u["$=="](y):J["$=="](0)))e(D)||this.$logger().$error(this.$message_with_context("level 0 sections can only be used when doctype is book",
917
+ f(["source_location"],{source_location:d.$cursor()}))),m=this.$next_section(d,u,h),q=a.to_ary(m),J=null==q[0]?c:q[0],h=null==q[1]?c:q[1],m,u.$assign_numeral(J),u.$blocks()["$<<"](J);else break;else if(z=d.$cursor(),e(J=this.$next_block(d,e(q=A)?q:u,h,f(["parse_metadata"],{parse_metadata:!1})))){if(e(Q))if(e(u["$blocks?"]()["$!"]()))e(J.$style()["$!="]("partintro"))&&(J.$context()["$=="]("paragraph")?(z=["open"],n(J,"context=",a.to_a(z)),z[b(z.length,1)],z=["partintro"],n(J,"style=",a.to_a(z)),z[b(z.length,
918
+ 1)]):(z=[A=p(v,"Block").$new(u,"open",f(["content_model"],{content_model:"compound"}))],n(J,"parent=",a.to_a(z)),z[b(z.length,1)],z=["partintro"],n(A,"style=",a.to_a(z)),z[b(z.length,1)],u.$blocks()["$<<"](A)));else if(u.$blocks().$size()["$=="](1)){var L=u.$blocks()["$[]"](0);e(e(q=A["$!"]())?L.$content_model()["$=="]("compound"):q)?this.$logger().$error(this.$message_with_context("illegal block content outside of partintro block",f(["source_location"],{source_location:z}))):e(L.$content_model()["$!="]("compound"))&&
919
+ (z=[A=p(v,"Block").$new(u,"open",f(["content_model"],{content_model:"compound"}))],n(J,"parent=",a.to_a(z)),z[b(z.length,1)],z=["partintro"],n(A,"style=",a.to_a(z)),z[b(z.length,1)],u.$blocks().$shift(),L.$style()["$=="]("partintro")&&(z=["paragraph"],n(L,"context=",a.to_a(z)),z[b(z.length,1)],z=[c],n(L,"style=",a.to_a(z)),z[b(z.length,1)]),A["$<<"](L),u.$blocks()["$<<"](A))}(e(q=A)?q:u).$blocks()["$<<"](J);h.$clear()}if(e(q=d.$skip_blank_lines()))q;else break}if(e(Q))e(e(r=u["$blocks?"]())?u.$blocks()["$[]"](-1).$context()["$=="]("section"):
920
+ r)||this.$logger().$error(this.$message_with_context("invalid part, must have at least one section (e.g., chapter, appendix, etc.)",f(["source_location"],{source_location:d.$cursor()})));else if(e(S))if(e(S["$blocks?"]()))if(e(e(r=e(q=D)?q:y.$blocks()["$[]"](1))?r:p(v,"Compliance").$unwrap_standalone_preamble()["$!"]()))e(y.$sourcemap())&&(z=[S.$blocks()["$[]"](0).$source_location()],n(S,"source_location=",a.to_a(z)),z[b(z.length,1)]);else for(y.$blocks().$shift();e(d=S.$blocks().$shift());)y["$<<"](d);
921
+ else y.$blocks().$shift();return[u["$=="](w)?c:u,h.$merge()]},D.$$arity=-3);a.defs(d,"$next_block",z=function(d,w,h,r){try{var q,m,t,A,y,Q,B,x=c,ra=c,J=c,z=c,S=c,D=c,C=c,ia=c,L=c,N=c,E=c,ma=c,V=c,H=c,I=c,G=c,xa=c,da=c,U=c,va=c,na=c,F=c,fa=c,ca=c,la=c,ya=c,ka=c,qa=c,Fa=c,wa=c,ba=c,ta=c,sa=c,Ha=c,ea=c,M=c,Y=c,P=c,Da=c,O=c,La=c,Ga=c,Ja=c,R=c,Va=c,Ba=c,Ma=c,Pa=c,ha=c;null==u["~"]&&(u["~"]=c);null==h&&(h=f([],{}));null==r&&(r=f([],{}));if(!e(x=d.$skip_blank_lines()))return c;e(e(q=ra=r["$[]"]("text_only"))?
922
+ l(x,0):q)&&(r.$delete("text_only"),ra=c);J=w.$document();if(e(r.$fetch("parse_metadata",!0)))for(;e(this.$parse_block_metadata_line(d,J,h,r));)d.$shift(),e(m=d.$skip_blank_lines())?m:a.ret(c);e(z=J.$extensions())&&(q=[z["$blocks?"](),z["$block_macros?"]()],S=q[0],D=q[1],q);d.$mark();q=[d.$read_line(),J.$attributes(),h["$[]"](1)];C=q[0];ia=q[1];L=q[2];q;N=E=ma=V=c;e(H=this["$is_delimited_block?"](C,!0))&&(E=ma=H.$context(),V=H.$terminator(),e(L)?L["$=="](E.$to_s())||(e(H.$masq()["$include?"](L))?E=
923
+ L.$to_sym():e(e(q=H.$masq()["$include?"]("admonition"))?p(v,"ADMONITION_STYLES")["$include?"](L):q)?E="admonition":e(e(q=S)?z["$registered_for_block?"](L,E):q)?E=L.$to_sym():(e(this.$logger()["$debug?"]())&&this.$logger().$debug(this.$message_with_context("unknown style for "+E+" block: "+L,f(["source_location"],{source_location:d.$cursor_at_mark()}))),L=E.$to_s())):L=(I=["style",E.$to_s()],n(h,"[]=",a.to_a(I)),I[b(I.length,1)]));if(!e(H))for(;e(!0);){if(e(e(m=e(t=L)?p(v,"Compliance").$strict_verbatim_paragraphs():
924
+ t)?p(v,"VERBATIM_STYLES")["$include?"](L):m)){E=L.$to_sym();d.$unshift_line(C);break}if(e(ra))G=C["$start_with?"](" ",p(v,"TAB"));else if(xa=p(v,"Compliance").$markdown_syntax(),e(C["$start_with?"](" "))){if(m=[!0," "],G=m[0],da=m[1],m,e(e(m=e(t=xa)?n(C.$lstrip(),"start_with?",a.to_a(p(v,"MARKDOWN_THEMATIC_BREAK_CHARS").$keys())):t)?p(v,"MarkdownThematicBreakRx")["$match?"](C):m)){N=p(v,"Block").$new(w,"thematic_break",f(["content_model"],{content_model:"empty"}));break}}else if(e(C["$start_with?"](p(v,
925
+ "TAB"))))m=[!0,p(v,"TAB")],G=m[0],da=m[1],m;else if(m=[!1,C.$chr()],G=m[0],da=m[1],m,U=e(xa)?p(v,"HYBRID_LAYOUT_BREAK_CHARS"):p(v,"LAYOUT_BREAK_CHARS"),e(e(m=U["$key?"](da))?e(xa)?p(v,"ExtLayoutBreakRx")["$match?"](C):e(t=this["$uniform?"](C,da,va=C.$length()))?l(va,2):t:m)){N=p(v,"Block").$new(w,U["$[]"](da),f(["content_model"],{content_model:"empty"}));break}else if(e(e(m=C["$end_with?"]("]"))?C["$include?"]("::"):m))if(e(e(m=e(t=da["$=="]("i"))?t:C["$start_with?"]("video:","audio:"))?p(v,"BlockMediaMacroRx")["$=~"](C):
926
+ m)){m=[((t=u["~"])===c?c:t["$[]"](1)).$to_sym(),(t=u["~"])===c?c:t["$[]"](2),(t=u["~"])===c?c:t["$[]"](3)];na=m[0];F=m[1];fa=m[2];m;N=p(v,"Block").$new(w,na,f(["content_model"],{content_model:"empty"}));e(fa)&&(ca=na,la="video"["$==="](ca)?["poster","width","height"]:"audio"["$==="](ca)?[]:["alt","width","height"],N.$parse_attributes(fa,la,f(["sub_input","into"],{sub_input:!0,into:h})));e(h["$key?"]("style"))&&h.$delete("style");if(e(F["$include?"](p(v,"ATTR_REF_HEAD")))){if(e(e(m=e(t=(ya=N.$sub_attributes(F))["$empty?"]())?
927
+ (e(A=ia["$[]"]("attribute-missing"))?A:p(v,"Compliance").$attribute_missing())["$=="]("drop-line"):t)?N.$sub_attributes(g(F," "),f(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]():m))return h.$clear(),c;F=ya}na["$=="]("image")&&(J.$register("images",F),I=["imagesdir",ia["$[]"]("imagesdir")],n(h,"[]=",a.to_a(I)),I[b(I.length,1)],e(m=h["$[]"]("alt"))?m:(I=["alt",e(t=L)?t:(I=["default-alt",p(v,"Helpers").$basename(F,!0).$tr("_-"," ")],
928
+ n(h,"[]=",a.to_a(I)),I[b(I.length,1)])],n(h,"[]=",a.to_a(I)),I[b(I.length,1)]),e((ka=h.$delete("scaledwidth"))["$nil_or_empty?"]())||(I=["scaledwidth",e(p(v,"TrailingDigitsRx")["$match?"](ka))?""+ka+"%":ka],n(h,"[]=",a.to_a(I)),I[b(I.length,1)]),e(h["$[]"]("title"))&&(I=[qa=h.$delete("title")],n(N,"title=",a.to_a(I)),I[b(I.length,1)],N.$assign_caption(h.$delete("caption"),"figure")));I=["target",F];n(h,"[]=",a.to_a(I));I[b(I.length,1)];break}else if(e(e(m=(t=da["$=="]("t"))?C["$start_with?"]("toc:"):
929
+ da["$=="]("t"))?p(v,"BlockTocMacroRx")["$=~"](C):m)){N=p(v,"Block").$new(w,"toc",f(["content_model"],{content_model:"empty"}));e((m=u["~"])===c?c:m["$[]"](1))&&N.$parse_attributes((m=u["~"])===c?c:m["$[]"](1),[],f(["into"],{into:h}));break}else if(e(e(D)?e(m=e(t=p(v,"CustomBlockMacroRx")["$=~"](C))?Fa=z["$registered_for_block_macro?"]((A=u["~"])===c?c:A["$[]"](1)):t)?m:wa=this.$logger()["$debug?"]():e(m=this.$logger()["$debug?"]())?wa=p(v,"CustomBlockMacroRx")["$=~"](C):m))if(e(wa))this.$logger().$debug(this.$message_with_context("unknown name for block macro: "+
930
+ ((m=u["~"])===c?c:m["$[]"](1)),f(["source_location"],{source_location:d.$cursor_at_mark()})));else{ba=(m=u["~"])===c?c:m["$[]"](3);if(e((F=(m=u["~"])===c?c:m["$[]"](2))["$include?"](p(v,"ATTR_REF_HEAD")))){if(e(e(m=e(t=(ya=w.$sub_attributes(F))["$empty?"]())?(e(A=ia["$[]"]("attribute-missing"))?A:p(v,"Compliance").$attribute_missing())["$=="]("drop-line"):t)?w.$sub_attributes(g(F," "),f(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]():
931
+ m))return h.$clear(),c;F=ya}(ta=Fa.$config())["$[]"]("content_model")["$=="]("attributes")?e(ba)&&J.$parse_attributes(ba,e(m=e(t=ta["$[]"]("positional_attrs"))?t:ta["$[]"]("pos_attrs"))?m:[],f(["sub_input","into"],{sub_input:!0,into:h})):(I=["text",e(m=ba)?m:""],n(h,"[]=",a.to_a(I)),I[b(I.length,1)]);e(sa=ta["$[]"]("default_attrs"))&&n(h,"update",[sa],(y=function(a,b){null==b&&(b=c);return b},y.$$s=this,y.$$arity=2,y));if(e(N=Fa.$process_method()["$[]"](w,F,h))){h.$replace(N.$attributes());break}else return h.$clear(),
932
+ c}if(e(e(m=e(t=G["$!"]())?(da=e(A=da)?A:C.$chr())["$=="]("<"):t)?p(v,"CalloutListRx")["$=~"](C):m)){d.$unshift_line(C);N=this.$parse_callout_list(d,u["~"],w,J.$callouts());I=["style","arabic"];n(h,"[]=",a.to_a(I));I[b(I.length,1)];break}else if(e(p(v,"UnorderedListRx")["$match?"](C))){d.$unshift_line(C);e(e(m=e(t=L["$!"]())?p(v,"Section")["$==="](w):t)?w.$sectname()["$=="]("bibliography"):m)&&(I=["style",L="bibliography"],n(h,"[]=",a.to_a(I)),I[b(I.length,1)]);N=this.$parse_list(d,"ulist",w,L);break}else if(e(p(v,
933
+ "OrderedListRx")["$match?"](C))){d.$unshift_line(C);N=this.$parse_list(d,"olist",w,L);e(N.$style())&&(I=["style",N.$style()],n(h,"[]=",a.to_a(I)),I[b(I.length,1)]);break}else if(e(e(m=e(t=C["$include?"]("::"))?t:C["$include?"](";;"))?p(v,"DescriptionListRx")["$=~"](C):m)){d.$unshift_line(C);N=this.$parse_description_list(d,u["~"],w);break}else if(e(e(m=e(t=L["$=="]("float"))?t:L["$=="]("discrete"))?e(p(v,"Compliance").$underline_style_section_titles())?this["$is_section_title?"](C,d.$peek_line()):
934
+ e(t=G["$!"]())?this["$atx_section_title?"](C):t:m)){d.$unshift_line(C);t=this.$parse_section_title(d,J,h["$[]"]("id"));m=a.to_ary(t);Ha=null==m[0]?c:m[0];ea=null==m[1]?c:m[1];qa=null==m[2]?c:m[2];M=null==m[3]?c:m[3];t;e(ea)&&(I=["reftext",ea],n(h,"[]=",a.to_a(I)),I[b(I.length,1)]);N=p(v,"Block").$new(w,"floating_title",f(["content_model"],{content_model:"empty"}));I=[qa];n(N,"title=",a.to_a(I));I[b(I.length,1)];h.$delete("title");I=[e(m=Ha)?m:e(ia["$key?"]("sectids"))?p(v,"Section").$generate_id(N.$title(),
935
+ J):c];n(N,"id=",a.to_a(I));I[b(I.length,1)];I=[M];n(N,"level=",a.to_a(I));I[b(I.length,1)];break}else if(e(e(m=L)?L["$!="]("normal"):m))if(e(p(v,"PARAGRAPH_STYLES")["$include?"](L))){E=L.$to_sym();ma="paragraph";d.$unshift_line(C);break}else if(e(p(v,"ADMONITION_STYLES")["$include?"](L))){E="admonition";ma="paragraph";d.$unshift_line(C);break}else if(e(e(m=S)?z["$registered_for_block?"](L,"paragraph"):m)){E=L.$to_sym();ma="paragraph";d.$unshift_line(C);break}else e(this.$logger()["$debug?"]())&&this.$logger().$debug(this.$message_with_context("unknown style for paragraph: "+
936
+ L,f(["source_location"],{source_location:d.$cursor_at_mark()}))),L=c;d.$unshift_line(C);if(e(e(m=G)?L["$!"]():m))Y=this.$read_paragraph_lines(d,P=x["$=="](0)?r["$[]"]("list_type"):c,f(["skip_line_comments"],{skip_line_comments:ra})),this["$adjust_indentation!"](Y),N=e(e(m=ra)?m:P["$=="]("dlist"))?p(v,"Block").$new(w,"paragraph",f(["content_model","source","attributes"],{content_model:"simple",source:Y,attributes:h})):p(v,"Block").$new(w,"literal",f(["content_model","source","attributes"],{content_model:"verbatim",
937
+ source:Y,attributes:h}));else{Y=this.$read_paragraph_lines(d,(m=x["$=="](0))?r["$[]"]("list_type"):x["$=="](0),f(["skip_line_comments"],{skip_line_comments:!0}));if(e(ra)){if(e(e(m=G)?L["$=="]("normal"):m))this["$adjust_indentation!"](Y);N=p(v,"Block").$new(w,"paragraph",f(["content_model","source","attributes"],{content_model:"simple",source:Y,attributes:h}))}else if(e(e(m=e(t=p(v,"ADMONITION_STYLE_HEADS")["$include?"](da))?C["$include?"](":"):t)?p(v,"AdmonitionParagraphRx")["$=~"](C):m))I=[0,(m=
938
+ u["~"])===c?c:m.$post_match()],n(Y,"[]=",a.to_a(I)),I[b(I.length,1)],I=["name",Da=(I=["style",(m=u["~"])===c?c:m["$[]"](1)],n(h,"[]=",a.to_a(I)),I[b(I.length,1)]).$downcase()],n(h,"[]=",a.to_a(I)),I[b(I.length,1)],I=["textlabel",e(m=h.$delete("caption"))?m:ia["$[]"](""+Da+"-caption")],n(h,"[]=",a.to_a(I)),I[b(I.length,1)],N=p(v,"Block").$new(w,"admonition",f(["content_model","source","attributes"],{content_model:"simple",source:Y,attributes:h}));else if(e(e(m=e(t=xa)?da["$=="](">"):t)?C["$start_with?"]("> "):
939
+ m)){n(Y,"map!",[],(Q=function(a){null==a&&(a=c);return a["$=="](">")?a.$slice(1,a.$length()):e(a["$start_with?"]("> "))?a.$slice(2,a.$length()):a},Q.$$s=this,Q.$$arity=1,Q));if(e(Y["$[]"](-1)["$start_with?"]("-- "))&&(O=(O=Y.$pop()).$slice(3,O.$length()),!e(Y["$empty?"]())))for(;e(Y["$[]"](-1)["$empty?"]());)Y.$pop();I=["style","quote"];n(h,"[]=",a.to_a(I));I[b(I.length,1)];N=this.$build_block("quote","compound",!1,w,p(v,"Reader").$new(Y),h);e(O)&&(t=N.$apply_subs(O).$split(", ",2),m=a.to_ary(t),
940
+ La=null==m[0]?c:m[0],Ga=null==m[1]?c:m[1],t,e(La)&&(I=["attribution",La],n(h,"[]=",a.to_a(I)),I[b(I.length,1)]),e(Ga)&&(I=["citetitle",Ga],n(h,"[]=",a.to_a(I)),I[b(I.length,1)]))}else if(e(e(m=e(t=(A=da["$=="]('"'))?l(Y.$size(),1):da["$=="]('"'))?Y["$[]"](-1)["$start_with?"]("-- "):t)?Y["$[]"](-2)["$end_with?"]('"'):m)){I=[0,C.$slice(1,C.$length())];n(Y,"[]=",a.to_a(I));I[b(I.length,1)];for(O=(O=Y.$pop()).$slice(3,O.$length());e(Y["$[]"](-1)["$empty?"]());)Y.$pop();Y["$<<"](Y.$pop().$chop());I=["style",
941
+ "quote"];n(h,"[]=",a.to_a(I));I[b(I.length,1)];N=p(v,"Block").$new(w,"quote",f(["content_model","source","attributes"],{content_model:"simple",source:Y,attributes:h}));t=N.$apply_subs(O).$split(", ",2);m=a.to_ary(t);La=null==m[0]?c:m[0];Ga=null==m[1]?c:m[1];t;e(La)&&(I=["attribution",La],n(h,"[]=",a.to_a(I)),I[b(I.length,1)]);e(Ga)&&(I=["citetitle",Ga],n(h,"[]=",a.to_a(I)),I[b(I.length,1)])}else{if(e(e(m=G)?L["$=="]("normal"):m))this["$adjust_indentation!"](Y);N=p(v,"Block").$new(w,"paragraph",f(["content_model",
942
+ "source","attributes"],{content_model:"simple",source:Y,attributes:h}))}this.$catalog_inline_anchors(Y.$join(p(v,"LF")),N,J,d)}break}if(!e(N))if(ca=E,"listing"["$==="](ca)||"source"["$==="](ca))e(e(q=E["$=="]("source"))?q:e(m=h["$[]"](1)["$!"]())?Ja=e(t=h["$[]"](2))?t:ia["$[]"]("source-language"):m)&&(e(Ja)?(I=["style","source"],n(h,"[]=",a.to_a(I)),I[b(I.length,1)],I=["language",Ja],n(h,"[]=",a.to_a(I)),I[b(I.length,1)],p(v,"AttributeList").$rekey(h,[c,c,"linenums"])):(p(v,"AttributeList").$rekey(h,
943
+ [c,"language","linenums"]),!e(h["$key?"]("language"))&&e(ia["$key?"]("source-language"))&&(I=["language",ia["$[]"]("source-language")],n(h,"[]=",a.to_a(I)),I[b(I.length,1)])),!e(h["$key?"]("linenums"))&&e(e(q=h["$[]"]("linenums-option"))?q:ia["$[]"]("source-linenums-option"))&&(I=["linenums",""],n(h,"[]=",a.to_a(I)),I[b(I.length,1)]),!e(h["$key?"]("indent"))&&e(ia["$key?"]("source-indent"))&&(I=["indent",ia["$[]"]("source-indent")],n(h,"[]=",a.to_a(I)),I[b(I.length,1)])),N=this.$build_block("listing",
944
+ "verbatim",V,w,d,h);else if("fenced_code"["$==="](ca))I=["style","source"],n(h,"[]=",a.to_a(I)),I[b(I.length,1)],e(l(va=C.$length(),3))&&(e(R=(Ja=C.$slice(3,va)).$index(","))?e(l(R,0))?(Ja=Ja.$slice(0,R).$strip(),e(k(R,b(va,4)))&&(I=["linenums",""],n(h,"[]=",a.to_a(I)),I[b(I.length,1)])):e(l(va,4))&&(I=["linenums",""],n(h,"[]=",a.to_a(I)),I[b(I.length,1)]):Ja=Ja.$lstrip()),e(Ja["$nil_or_empty?"]())?e(ia["$key?"]("source-language"))&&(I=["language",ia["$[]"]("source-language")],n(h,"[]=",a.to_a(I)),
945
+ I[b(I.length,1)]):(I=["language",Ja],n(h,"[]=",a.to_a(I)),I[b(I.length,1)]),!e(h["$key?"]("linenums"))&&e(e(q=h["$[]"]("linenums-option"))?q:ia["$[]"]("source-linenums-option"))&&(I=["linenums",""],n(h,"[]=",a.to_a(I)),I[b(I.length,1)]),!e(h["$key?"]("indent"))&&e(ia["$key?"]("source-indent"))&&(I=["indent",ia["$[]"]("source-indent")],n(h,"[]=",a.to_a(I)),I[b(I.length,1)]),V=V.$slice(0,3),N=this.$build_block("listing","verbatim",V,w,d,h);else if("table"["$==="](ca))Va=d.$cursor(),Ba=p(v,"Reader").$new(d.$read_lines_until(f(["terminator",
946
+ "skip_line_comments","context","cursor"],{terminator:V,skip_line_comments:!0,context:"table",cursor:"at_mark"})),Va),e(V["$start_with?"]("|","!"))||(e(q=h["$[]"]("format"))?q:(I=["format",e(V["$start_with?"](","))?"csv":"dsv"],n(h,"[]=",a.to_a(I)),I[b(I.length,1)])),N=this.$parse_table(Ba,w,h);else if("sidebar"["$==="](ca))N=this.$build_block(E,"compound",V,w,d,h);else if("admonition"["$==="](ca))I=["name",Da=L.$downcase()],n(h,"[]=",a.to_a(I)),I[b(I.length,1)],I=["textlabel",e(q=h.$delete("caption"))?
947
+ q:ia["$[]"](""+Da+"-caption")],n(h,"[]=",a.to_a(I)),I[b(I.length,1)],N=this.$build_block(E,"compound",V,w,d,h);else if("open"["$==="](ca)||"abstract"["$==="](ca)||"partintro"["$==="](ca))N=this.$build_block("open","compound",V,w,d,h);else if("literal"["$==="](ca))N=this.$build_block(E,"verbatim",V,w,d,h);else if("example"["$==="](ca))e(h["$[]"]("collapsible-option"))&&(I=["caption",""],n(h,"[]=",a.to_a(I)),I[b(I.length,1)]),N=this.$build_block(E,"compound",V,w,d,h);else if("quote"["$==="](ca)||"verse"["$==="](ca))p(v,
948
+ "AttributeList").$rekey(h,[c,"attribution","citetitle"]),N=this.$build_block(E,E["$=="]("verse")?"verbatim":"compound",V,w,d,h);else if("stem"["$==="](ca)||"latexmath"["$==="](ca)||"asciimath"["$==="](ca))E["$=="]("stem")&&(I=["style",p(v,"STEM_TYPE_ALIASES")["$[]"](e(q=h["$[]"](2))?q:ia["$[]"]("stem"))],n(h,"[]=",a.to_a(I)),I[b(I.length,1)]),N=this.$build_block("stem","raw",V,w,d,h);else if("pass"["$==="](ca))N=this.$build_block(E,"raw",V,w,d,h);else{if("comment"["$==="](ca))return this.$build_block(E,
949
+ "skip",V,w,d,h),h.$clear(),c;if(e(e(q=S)?Fa=z["$registered_for_block?"](E,ma):q)){if((Ma=(ta=Fa.$config())["$[]"]("content_model"))["$=="]("skip")||(e((Pa=e(q=ta["$[]"]("positional_attrs"))?q:ta["$[]"]("pos_attrs"))["$nil_or_empty?"]())||p(v,"AttributeList").$rekey(h,g([c],Pa)),e(sa=ta["$[]"]("default_attrs"))&&n(sa,"each",[],(B=function(d,f){var g;null==d&&(d=c);null==f&&(f=c);return e(g=h["$[]"](d))?g:(I=[d,f],n(h,"[]=",a.to_a(I)),I[b(I.length,1)])},B.$$s=this,B.$$arity=2,B)),I=["cloaked-context",
950
+ ma],n(h,"[]=",a.to_a(I)),I[b(I.length,1)]),!e(N=this.$build_block(E,Ma,V,w,d,h,f(["extension"],{extension:Fa}))))return h.$clear(),c}else this.$raise("Unsupported block type "+E+" at "+d.$cursor())}e(J.$sourcemap())&&(I=[d.$cursor_at_mark()],n(N,"source_location=",a.to_a(I)),I[b(I.length,1)]);e(h["$[]"]("title"))&&(I=[qa=h.$delete("title")],n(N,"title=",a.to_a(I)),I[b(I.length,1)],e(p(v,"CAPTION_ATTRIBUTE_NAMES")["$[]"](N.$context()))&&N.$assign_caption(h.$delete("caption")));I=[h["$[]"]("style")];
951
+ n(N,"style=",a.to_a(I));I[b(I.length,1)];e(ha=e(q=N.$id())?q:(I=[h["$[]"]("id")],n(N,"id=",a.to_a(I)),I[b(I.length,1)]))&&(e(e(qa)?qa["$include?"](p(v,"ATTR_REF_HEAD")):N["$title?"]())&&N.$title(),e(J.$register("refs",[ha,N]))||this.$logger().$warn(this.$message_with_context("id assigned to block already in use: "+ha,f(["source_location"],{source_location:d.$cursor_at_mark()}))));e(h["$empty?"]())||N.$update_attributes(h);N.$commit_subs();e(N["$sub?"]("callouts"))&&!e(this.$catalog_callouts(N.$source(),
952
+ J))&&N.$remove_sub("callouts");return N}catch(ib){if(ib===a.returner)return ib.$v;throw ib;}},z.$$arity=-3);a.defs(d,"$read_paragraph_lines",C=function(c,d,g){null==g&&(g=f([],{}));var h=["break_on_blank_lines",!0];n(g,"[]=",a.to_a(h));h[b(h.length,1)];h=["break_on_list_continuation",!0];n(g,"[]=",a.to_a(h));h[b(h.length,1)];h=["preserve_last_line",!0];n(g,"[]=",a.to_a(h));h[b(h.length,1)];d=e(d)?e(p(v,"Compliance").$block_terminates_paragraph())?p(v,"StartOfBlockOrListProc"):p(v,"StartOfListProc"):
953
+ e(p(v,"Compliance").$block_terminates_paragraph())?p(v,"StartOfBlockProc"):p(v,"NoOp");return n(c,"read_lines_until",[g],d.$to_proc())},C.$$arity=-3);a.defs(d,"$is_delimited_block?",L=function(d,f){var g,h;null==f&&(f=c);if(!e(e(g=l(h=d.$length(),1))?p(v,"DELIMITED_BLOCK_HEADS")["$[]"](d.$slice(0,2)):g))return c;if(h["$=="](2)){var w=d;var n=2}else if(e(k(h,5))?(w=d,n=h):w=d.$slice(0,n=4),e(e(g=p(v,"Compliance").$markdown_syntax())?w["$start_with?"]("`"):g))if(n["$=="](4)){if(e(e(g=w["$=="]("````"))?
954
+ g:(w=w.$chop())["$!="]("```")))return c;d=w;h=n=3}else{if(e(w["$!="]("```")))return c}else if(n["$=="](3))return c;var r=p(v,"DELIMITED_BLOCKS")["$[]"](w);g=a.to_ary(r);var m=null==g[0]?c:g[0];var q=null==g[1]?c:g[1];r;return e(e(g=m)?e(r=h["$=="](n))?r:this["$uniform?"](d.$slice(1,h),p(v,"DELIMITED_BLOCK_TAILS")["$[]"](w),b(h,1)):g)?e(f)?p(v,"BlockMatchData").$new(m,q,w,d):!0:c},L.$$arity=-2);a.defs(d,"$build_block",N=function(a,b,d,g,h,n,k){var w,r,m;null==k&&(k=f([],{}));var q=b;"skip"["$==="](q)?
955
+ (w=[!0,"simple"],r=w[0],m=w[1]):"raw"["$==="](q)?(w=[!1,"simple"],r=w[0],m=w[1]):(w=[!1,b],r=w[0],m=w[1]);w;e(d["$nil?"]())?(m["$=="]("verbatim")?m=h.$read_lines_until(f(["break_on_blank_lines","break_on_list_continuation"],{break_on_blank_lines:!0,break_on_list_continuation:!0})):(b["$=="]("compound")&&(b="simple"),m=this.$read_paragraph_lines(h,!1,f(["skip_line_comments","skip_processing"],{skip_line_comments:!0,skip_processing:r}))),d=c):e(m["$!="]("compound"))?(m=h.$read_lines_until(f(["terminator",
956
+ "skip_processing","context","cursor"],{terminator:d,skip_processing:r,context:a,cursor:"at_mark"})),d=c):d["$=="](!1)?(m=c,d=h):(m=c,q=h.$cursor(),d=p(v,"Reader").$new(h.$read_lines_until(f(["terminator","skip_processing","context","cursor"],{terminator:d,skip_processing:r,context:a,cursor:"at_mark"})),q));q=b;if("verbatim"["$==="](q))if(h=(e(w=n["$[]"]("tabsize"))?w:g.$document().$attributes()["$[]"]("tabsize")).$to_i(),e(q=n["$[]"]("indent")))this["$adjust_indentation!"](m,q.$to_i(),h);else{if(e(l(h,
957
+ 0)))this["$adjust_indentation!"](m,-1,h)}else if("skip"["$==="](q))return c;if(e(k=k["$[]"]("extension")))if(n.$delete("style"),e(a=k.$process_method()["$[]"](g,e(w=d)?w:p(v,"Reader").$new(m),n.$merge())))n.$replace(a.$attributes()),e(a.$content_model()["$=="]("compound")?(m=a.$lines())["$empty?"]()["$!"]():a.$content_model()["$=="]("compound"))&&(b="compound",d=p(v,"Reader").$new(m));else return c;else a=p(v,"Block").$new(g,a,f(["content_model","source","attributes"],{content_model:b,source:m,attributes:n}));
958
+ b["$=="]("compound")&&this.$parse_blocks(d,a);return a},N.$$arity=-7);a.defs(d,"$parse_blocks",E=function(a,b,d){var f,g,h=c;null==d&&(d=c);if(e(d))for(;e(e(f=e(g=h=this.$next_block(a,b,d.$merge()))?b.$blocks()["$<<"](h):g)?f:a["$has_more_lines?"]()););else for(;e(e(f=e(g=h=this.$next_block(a,b))?b.$blocks()["$<<"](h):g)?f:a["$has_more_lines?"]()););return c},E.$$arity=-3);a.defs(d,"$parse_list",H=function(a,b,d,f){var g,h;null==u["~"]&&(u["~"]=c);d=p(v,"List").$new(d,b);for(b=p(v,"ListRxMap")["$[]"](b);e(e(g=
959
+ a["$has_more_lines?"]())?b["$=~"](a.$peek_line()):g);){if(e(h=this.$parse_list_item(a,d,u["~"],(g=u["~"])===c?c:g["$[]"](1),f)))d.$items()["$<<"](h);if(e(g=a.$skip_blank_lines()))g;else break}return d},H.$$arity=4);a.defs(d,"$catalog_callouts",G=function(a,b){var d,f=c,h=c;f=!1;h=0;e(a["$include?"]("<"))&&n(a,"scan",[p(v,"CalloutScanRx")],(d=function(){var a;e(((a=u["~"])===c?c:a["$[]"](0))["$start_with?"]("\\"))||b.$callouts().$register(((a=u["~"])===c?c:a["$[]"](2))["$=="](".")?(h=g(h,1)).$to_s():
960
+ (a=u["~"])===c?c:a["$[]"](2));return f=!0},d.$$s=this,d.$$arity=0,d));return f},G.$$arity=2);a.defs(d,"$catalog_inline_anchor",I=function(a,b,d,g,h){var w;null==h&&(h=d.$document());e(e(w=b)?b["$include?"](p(v,"ATTR_REF_HEAD")):w)&&(b=h.$sub_attributes(b));e(h.$register("refs",[a,p(v,"Inline").$new(d,"anchor",b,f(["type","id"],{type:"ref",id:a}))]))||(e(p(v,"Reader")["$==="](g))&&(g=g.$cursor()),this.$logger().$warn(this.$message_with_context("id assigned to anchor already in use: "+a,f(["source_location"],
961
+ {source_location:g}))));return c},I.$$arity=-5);a.defs(d,"$catalog_inline_anchors",U=function(a,b,d,h){var w,k;e(e(w=a["$include?"]("[["))?w:a["$include?"]("or:"))&&n(a,"scan",[p(v,"InlineAnchorScanRx")],(k=function(){var a=k.$$s||this,w,n,r,m,q=c,t=c;if(e(m=(w=u["~"])===c?c:w["$[]"](1))){if(e(e(w=e(n=q=(r=u["~"])===c?c:r["$[]"](2))?q["$include?"](p(v,"ATTR_REF_HEAD")):n)?(q=d.$sub_attributes(q))["$empty?"]():w))return c}else if(m=(w=u["~"])===c?c:w["$[]"](3),e(q=(w=u["~"])===c?c:w["$[]"](4)))if(e(q["$include?"]("]")))q=
962
+ q.$gsub("\\]","]"),e(q["$include?"](p(v,"ATTR_REF_HEAD")))&&(q=d.$sub_attributes(q));else if(e(e(w=q["$include?"](p(v,"ATTR_REF_HEAD")))?(q=d.$sub_attributes(q))["$empty?"]():w))return c;if(e(d.$register("refs",[m,p(v,"Inline").$new(b,"anchor",q,f(["type","id"],{type:"ref",id:m}))])))return c;n=h.$cursor_at_mark();e(l(t=g(((w=u["~"])===c?c:w.$pre_match()).$count(p(v,"LF")),e(((w=u["~"])===c?c:w["$[]"](0))["$start_with?"](p(v,"LF")))?1:0),0))&&(n=n.$dup()).$advance(t);return a.$logger().$warn(a.$message_with_context("id assigned to anchor already in use: "+
963
+ m,f(["source_location"],{source_location:n})))},k.$$s=this,k.$$arity=0,k));return c},U.$$arity=4);a.defs(d,"$catalog_inline_biblio_anchor",F=function(a,b,d,g){e(d.$document().$register("refs",[a,p(v,"Inline").$new(d,"anchor",e(b)?"["+b+"]":b,f(["type","id"],{type:"bibref",id:a}))]))||this.$logger().$warn(this.$message_with_context("id assigned to bibliography anchor already in use: "+a,f(["source_location"],{source_location:g.$cursor()})));return c},F.$$arity=4);a.defs(d,"$parse_description_list",
964
+ ka=function(d,f,g){var h;null==u["~"]&&(u["~"]=c);g=p(v,"List").$new(g,"dlist");var w=p(v,"DescriptionListSiblingRx")["$[]"](f["$[]"](2));for(g.$items()["$<<"](f=this.$parse_list_item(d,g,f,w));e(e(h=d["$has_more_lines?"]())?w["$=~"](d.$peek_line()):h);){var k=this.$parse_list_item(d,g,u["~"],w);if(e(f["$[]"](1)))g.$items()["$<<"](f=k);else f["$[]"](0)["$<<"](k["$[]"](0)["$[]"](0)),k=[1,k["$[]"](1)],n(f,"[]=",a.to_a(k)),k[b(k.length,1)]}return g},ka.$$arity=3);a.defs(d,"$parse_callout_list",qa=function(d,
965
+ h,k,l){var w,r,m,q;k=p(v,"List").$new(k,"colist");var t=1;for(m=0;e(e(w=h)?w:e(r=h=p(v,"CalloutListRx").$match(d.$peek_line()))?d.$mark():r);)(q=h["$[]"](1))["$=="](".")&&(q=(m=g(m,1)).$to_s()),q["$=="](t.$to_s())||this.$logger().$warn(this.$message_with_context("callout list item index: expected "+t+", got "+q,f(["source_location"],{source_location:d.$cursor_at_mark()}))),e(h=this.$parse_list_item(d,k,h,"<1>"))&&(k.$items()["$<<"](h),e((q=l.$callout_ids(k.$items().$size()))["$empty?"]())?this.$logger().$warn(this.$message_with_context("no callout found for <"+
966
+ k.$items().$size()+">",f(["source_location"],{source_location:d.$cursor_at_mark()}))):(q=["coids",q],n(h.$attributes(),"[]=",a.to_a(q)),q[b(q.length,1)])),t=g(t,1),h=c;l.$next_list();return k},qa.$$arity=4);a.defs(d,"$parse_list_item",ba=function(d,g,h,k,l){var w,r,m,q=c,t=c,A,y=c,Q=c,B,x=c,I=c;null==l&&(l=c);if((m=g.$context())["$=="]("dlist")){if(q=!0,t=p(v,"ListItem").$new(g,l=h["$[]"](1)),e(e(w=l["$start_with?"]("[["))?p(v,"LeadingInlineAnchorRx")["$=~"](l):w)&&this.$catalog_inline_anchor((w=
967
+ u["~"])===c?c:w["$[]"](1),e(w=(r=u["~"])===c?c:r["$[]"](2))?w:((r=u["~"])===c?c:r.$post_match()).$lstrip(),t,d),e(A=h["$[]"](3))&&(y=!0),h=p(v,"ListItem").$new(g,A),e(g.$document().$sourcemap())){var J=[d.$cursor()];n(t,"source_location=",a.to_a(J));J[b(J.length,1)];e(y)?(J=[t.$source_location()],n(h,"source_location=",a.to_a(J)),J[b(J.length,1)]):Q=!0}}else if(y=!0,h=p(v,"ListItem").$new(g,A=h["$[]"](2)),e(g.$document().$sourcemap())&&(J=[d.$cursor()],n(h,"source_location=",a.to_a(J)),J[b(J.length,
968
+ 1)]),"ulist"["$==="](m))J=[k],n(h,"marker=",a.to_a(J)),J[b(J.length,1)],e(A["$start_with?"]("["))&&(e(e(w=l)?l["$=="]("bibliography"):w)?e(p(v,"InlineBiblioAnchorRx")["$=~"](A))&&this.$catalog_inline_biblio_anchor((w=u["~"])===c?c:w["$[]"](1),(w=u["~"])===c?c:w["$[]"](2),h,d):e(A["$start_with?"]("[["))?e(p(v,"LeadingInlineAnchorRx")["$=~"](A))&&this.$catalog_inline_anchor((w=u["~"])===c?c:w["$[]"](1),(w=u["~"])===c?c:w["$[]"](2),h,d):e(A["$start_with?"]("[ ] ","[x] ","[*] "))&&(g.$set_option("checklist"),
969
+ J=["checkbox",""],n(h.$attributes(),"[]=",a.to_a(J)),J[b(J.length,1)],e(A["$start_with?"]("[ "))||(J=["checked",""],n(h.$attributes(),"[]=",a.to_a(J)),J[b(J.length,1)]),J=[A.$slice(4,A.$length())],n(h,"text=",a.to_a(J)),J[b(J.length,1)]));else{if("olist"["$==="](m)){r=this.$resolve_ordered_list_marker(k,B=g.$items().$size(),!0,d);w=a.to_ary(r);k=null==w[0]?c:w[0];var z=null==w[1]?c:w[1];r;J=[k];n(h,"marker=",a.to_a(J));J[b(J.length,1)];e((w=B["$=="](0))?l["$!"]():B["$=="](0))&&(J=[e(w=z)?w:(e(r=p(v,
970
+ "ORDERED_LIST_STYLES")["$[]"](b(k.$length(),1)))?r:"arabic").$to_s()],n(g,"style=",a.to_a(J)),J[b(J.length,1)])}else J=[k],n(h,"marker=",a.to_a(J)),J[b(J.length,1)];e(e(w=A["$start_with?"]("[["))?p(v,"LeadingInlineAnchorRx")["$=~"](A):w)&&this.$catalog_inline_anchor((w=u["~"])===c?c:w["$[]"](1),(w=u["~"])===c?c:w["$[]"](2),h,d)}d.$shift();g=d.$cursor();d=p(v,"Reader").$new(this.$read_lines_for_list_item(d,m,k,y),g);if(e(d["$has_more_lines?"]())){e(Q)&&(J=[g],n(h,"source_location=",a.to_a(J)),J[b(J.length,
971
+ 1)]);Q=d.$skip_line_comments();e(k=d.$peek_line())&&(e(Q["$empty?"]())||d.$unshift_lines(Q),e(k["$empty?"]())||(x=!0,e(q)||(y=c)));if(e(y=this.$next_block(d,h,f([],{}),f(["text_only","list_type"],{text_only:e(y)?c:!0,list_type:m}))))h.$blocks()["$<<"](y);for(;e(d["$has_more_lines?"]());)if(e(y=this.$next_block(d,h,f([],{}),f(["list_type"],{list_type:m}))))h.$blocks()["$<<"](y);e(e(w=e(r=x)?I=h.$blocks()["$[]"](0):r)?I.$context()["$=="]("paragraph"):w)&&h.$fold_first()}return e(q)?[[t],e(e(w=h["$text?"]())?
972
+ w:h["$blocks?"]())?h:c]:h},ba.$$arity=-5);a.defs(d,"$read_lines_for_list_item",da=function(d,g,h,k){var w,l,r,m,q,t,A,y=c,Q=c,B=c,x=c,I=c,J=c,z=c,C=c;Q=z=C=c;null==h&&(h=c);null==k&&(k=!0);y=[];Q="inactive";B=!1;x=c;for(I=g["$=="]("dlist");e(d["$has_more_lines?"]());){J=d.$read_line();if(e(this["$is_sibling_list_item?"](J,g,h)))break;z=e(y["$empty?"]())?c:y["$[]"](-1);if(z["$=="](p(v,"LIST_CONTINUATION"))&&(Q["$=="]("inactive")&&(Q="active",k=!0,e(B)||(C=[-1,""],n(y,"[]=",a.to_a(C)),C[b(C.length,
973
+ 1)])),J["$=="](p(v,"LIST_CONTINUATION")))){e(Q["$!="]("frozen"))&&(Q="frozen",y["$<<"](J));J=c;continue}if(e(C=this["$is_delimited_block?"](J,!0)))if(Q["$=="]("active"))y["$<<"](J),y.$concat(d.$read_lines_until(f(["terminator","read_last_line","context"],{terminator:C.$terminator(),read_last_line:!0,context:c}))),Q="inactive";else break;else if(e(e(w=e(l=I)?Q["$!="]("active"):l)?p(v,"BlockAttributeLineRx")["$match?"](J):w))break;else if(e((w=Q["$=="]("active"))?J["$empty?"]()["$!"]():Q["$=="]("active")))if(e(p(v,
974
+ "LiteralParagraphRx")["$match?"](J)))d.$unshift_line(J),e(I)?y.$concat(n(d,"read_lines_until",[f(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0})],(r=function(a){var b=r.$$s||this;null==a&&(a=c);return b["$is_sibling_list_item?"](a,g,h)},r.$$s=this,r.$$arity=1,r))):y.$concat(d.$read_lines_until(f(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,
975
+ break_on_blank_lines:!0,break_on_list_continuation:!0}))),Q="inactive";else if(e(e(w=e(l=p(v,"BlockTitleRx")["$match?"](J))?l:p(v,"BlockAttributeLineRx")["$match?"](J))?w:p(v,"AttributeEntryRx")["$match?"](J)))y["$<<"](J);else e(z=n(e(B)?["dlist"]:p(v,"NESTABLE_LIST_CONTEXTS"),"find",[],(m=function(a){null==a&&(a=c);return p(v,"ListRxMap")["$[]"](a)["$match?"](J)},m.$$s=this,m.$$arity=1,m)))&&(B=!0,e((w=z["$=="]("dlist"))?((l=u["~"])===c?c:l["$[]"](3))["$nil_or_empty?"]():z["$=="]("dlist"))&&(k=!1)),
976
+ y["$<<"](J),Q="inactive";else if(e(e(w=z)?z["$empty?"]():w)){if(e(J["$empty?"]())){if(!e(J=e(w=d.$skip_blank_lines())?d.$read_line():w))break;if(e(this["$is_sibling_list_item?"](J,g,h)))break}if(J["$=="](p(v,"LIST_CONTINUATION")))x=y.$size(),y["$<<"](J);else if(e(k))if(e(this["$is_sibling_list_item?"](J,g,h)))break;else if(e(z=n(p(v,"NESTABLE_LIST_CONTEXTS"),"find",[],(q=function(a){null==a&&(a=c);return p(v,"ListRxMap")["$[]"](a)["$=~"](J)},q.$$s=this,q.$$arity=1,q))))y["$<<"](J),B=!0,e((w=z["$=="]("dlist"))?
977
+ ((l=u["~"])===c?c:l["$[]"](3))["$nil_or_empty?"]():z["$=="]("dlist"))&&(k=!1);else if(e(p(v,"LiteralParagraphRx")["$match?"](J)))d.$unshift_line(J),e(I)?y.$concat(n(d,"read_lines_until",[f(["preserve_last_line","break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0})],(t=function(a){var b=t.$$s||this;null==a&&(a=c);return b["$is_sibling_list_item?"](a,g,h)},t.$$s=this,t.$$arity=1,t))):y.$concat(d.$read_lines_until(f(["preserve_last_line",
978
+ "break_on_blank_lines","break_on_list_continuation"],{preserve_last_line:!0,break_on_blank_lines:!0,break_on_list_continuation:!0})));else break;else e(B)||y.$pop(),y["$<<"](J),k=!0}else e(J["$empty?"]())||(k=!0),e(z=n(e(B)?["dlist"]:p(v,"NESTABLE_LIST_CONTEXTS"),"find",[],(A=function(a){null==a&&(a=c);return p(v,"ListRxMap")["$[]"](a)["$=~"](J)},A.$$s=this,A.$$arity=1,A)))&&(B=!0,e((w=z["$=="]("dlist"))?((l=u["~"])===c?c:l["$[]"](3))["$nil_or_empty?"]():z["$=="]("dlist"))&&(k=!1)),y["$<<"](J);J=
979
+ c}e(J)&&d.$unshift_line(J);e(x)&&(C=[x,""],n(y,"[]=",a.to_a(C)),C[b(C.length,1)]);for(;!e(y["$empty?"]());)if(e((Q=y["$[]"](-1))["$empty?"]()))y.$pop();else{Q["$=="](p(v,"LIST_CONTINUATION"))&&y.$pop();break}return y},da.$$arity=-3);a.defs(d,"$initialize_section",na=function(d,g,h){var w,k=c,r=c,m=c,q=c,t=c;null==h&&(h=f([],{}));var A=g.$document();var y=(w=A.$doctype())["$=="]("book");e(A.$sourcemap())&&(k=d.$cursor());var u=h["$[]"](1);var Q=this.$parse_section_title(d,A,h["$[]"]("id"));var B=a.to_ary(Q);
980
+ var J=null==B[0]?c:B[0];var x=null==B[1]?c:B[1];var I=null==B[2]?c:B[2];var z=null==B[3]?c:B[3];var C=null==B[4]?c:B[4];Q;e(u)?e(e(B=y)?u["$=="]("abstract"):B)?(B=["chapter",1],w=B[0],z=B[1],B):e(e(B=u["$start_with?"]("sect"))?p(v,"SectionLevelStyleRx")["$match?"](u):B)?w="section":(B=[u,!0],w=B[0],r=B[1],B,z["$=="](0)&&(z=1),m=w["$=="]("appendix")):e(y)?w=z["$=="](0)?"part":e(l(z,1))?"section":"chapter":e(w["$=="]("manpage")?I.$casecmp("synopsis")["$=="](0):w["$=="]("manpage"))?(B=["synopsis",!0],
981
+ w=B[0],r=B[1],B):w="section";e(x)&&(q=["reftext",x],n(h,"[]=",a.to_a(q)),q[b(q.length,1)]);x=p(v,"Section").$new(g,z);B=[J,I,w,k];x["$id="](B[0]);x["$title="](B[1]);x["$sectname="](B[2]);x["$source_location="](B[3]);B;e(r)?(q=[!0],n(x,"special=",a.to_a(q)),q[b(q.length,1)],e(m)?(q=[!0],n(x,"numbered=",a.to_a(q)),q[b(q.length,1)]):A.$attributes()["$[]"]("sectnums")["$=="]("all")&&(q=[e(e(B=y)?z["$=="](1):B)?"chapter":!0],n(x,"numbered=",a.to_a(q)),q[b(q.length,1)])):e(e(B=A.$attributes()["$[]"]("sectnums"))?
982
+ l(z,0):B)?(q=[e(x.$special())?e(B=g.$numbered())?!0:B:!0],n(x,"numbered=",a.to_a(q)),q[b(q.length,1)]):e(e(B=e(Q=y)?z["$=="](0):Q)?A.$attributes()["$[]"]("partnums"):B)&&(q=[!0],n(x,"numbered=",a.to_a(q)),q[b(q.length,1)]);e(g=e(B=x.$id())?B:(q=[e(A.$attributes()["$key?"]("sectids"))?t=p(v,"Section").$generate_id(x.$title(),A):c],n(x,"id=",a.to_a(q)),q[b(q.length,1)]))&&(e(e(B=t)?B:I["$include?"](p(v,"ATTR_REF_HEAD"))["$!"]())||x.$title(),e(A.$register("refs",[g,x]))||this.$logger().$warn(this.$message_with_context("id assigned to section already in use: "+
983
+ g,f(["source_location"],{source_location:d.$cursor_at_line(b(d.$lineno(),e(C)?1:2))}))));x.$update_attributes(h);d.$skip_blank_lines();return x},na.$$arity=-3);a.defs(d,"$is_next_line_section?",ea=function(a,b){var d,f,g=c;return e(e(d=g=b["$[]"](1))?e(f=g["$=="]("discrete"))?f:g["$=="]("float"):d)?c:e(p(v,"Compliance").$underline_style_section_titles())?(a=a.$peek_lines(2,e(d=g)?g["$=="]("comment"):d),this["$is_section_title?"](e(d=a["$[]"](0))?d:"",a["$[]"](1))):this["$atx_section_title?"](e(d=
984
+ a.$peek_line())?d:"")},ea.$$arity=2);a.defs(d,"$is_next_line_doctitle?",M=function(a,b,d){var f,h=c;return e(d)?e(f=h=this["$is_next_line_section?"](a,b))?g(h,d.$to_i())["$=="](0):f:this["$is_next_line_section?"](a,b)["$=="](0)},M.$$arity=3);a.defs(d,"$is_section_title?",P=function(a,b){var d;null==b&&(b=c);return e(d=this["$atx_section_title?"](a))?d:e(b["$nil_or_empty?"]())?c:this["$setext_section_title?"](a,b)},P.$$arity=-2);a.defs(d,"$atx_section_title?",O=function(a){var d;return e(e(p(v,"Compliance").$markdown_syntax())?
985
+ e(d=a["$start_with?"]("=","#"))?p(v,"ExtAtxSectionTitleRx")["$=~"](a):d:e(d=a["$start_with?"]("="))?p(v,"AtxSectionTitleRx")["$=~"](a):d)?b(((d=u["~"])===c?c:d["$[]"](1)).$length(),1):c},O.$$arity=1);a.defs(d,"$setext_section_title?",R=function(a,d){var f,g,h,w,n=c,l=c;return e(e(f=e(g=e(h=w=p(v,"SETEXT_SECTION_LEVELS")["$[]"](n=d.$chr()))?this["$uniform?"](d,n,l=d.$length()):h)?p(v,"SetextSectionTitleRx")["$match?"](a):g)?k(b(a.$length(),l).$abs(),2):f)?w:c},R.$$arity=2);a.defs(d,"$parse_section_title",
986
+ Aa=function(a,d,f){var h,w,n,l,r,q=c,m=c,t=c,A=c,y=c,B=c;null==f&&(f=c);var Q=c;var x=a.$read_line();e(e(p(v,"Compliance").$markdown_syntax())?e(h=x["$start_with?"]("=","#"))?p(v,"ExtAtxSectionTitleRx")["$=~"](x):h:e(h=x["$start_with?"]("="))?p(v,"AtxSectionTitleRx")["$=~"](x):h)?(h=[b(((w=u["~"])===c?c:w["$[]"](1)).$length(),1),(w=u["~"])===c?c:w["$[]"](2),!0],q=h[0],m=h[1],t=h[2],h,!e(f)&&e(e(h=e(w=m["$end_with?"]("]]"))?p(v,"InlineSectionAnchorRx")["$=~"](m):w)?((w=u["~"])===c?c:w["$[]"](1))["$!"]():
987
+ h)&&(h=[m.$slice(0,b(m.$length(),((w=u["~"])===c?c:w["$[]"](0)).$length())),(w=u["~"])===c?c:w["$[]"](2),(w=u["~"])===c?c:w["$[]"](3)],m=h[0],f=h[1],Q=h[2],h)):e(e(h=e(w=e(n=e(l=e(r=p(v,"Compliance").$underline_style_section_titles())?A=a.$peek_line(!0):r)?q=p(v,"SETEXT_SECTION_LEVELS")["$[]"](y=A.$chr()):l)?this["$uniform?"](A,y,B=A.$length()):n)?m=e(n=p(v,"SetextSectionTitleRx")["$=~"](x))?(l=u["~"])===c?c:l["$[]"](1):n:w)?k(b(x.$length(),B).$abs(),2):h)?(t=!1,!e(f)&&e(e(h=e(w=m["$end_with?"]("]]"))?
988
+ p(v,"InlineSectionAnchorRx")["$=~"](m):w)?((w=u["~"])===c?c:w["$[]"](1))["$!"]():h)&&(h=[m.$slice(0,b(m.$length(),((w=u["~"])===c?c:w["$[]"](0)).$length())),(w=u["~"])===c?c:w["$[]"](2),(w=u["~"])===c?c:w["$[]"](3)],m=h[0],f=h[1],Q=h[2],h),a.$shift()):this.$raise("Unrecognized section at "+a.$cursor_at_prev_line());e(d["$attr?"]("leveloffset"))&&(q=g(q,d.$attr("leveloffset").$to_i()),e(k(q,0))&&(q=0));return[f,Q,m,q,t]},Aa.$$arity=-3);a.defs(d,"$parse_header_metadata",ha=function(d,h){var w,k,l,r,
989
+ m=c,t=c,A=c,y=c,u=c,B=c,x=c,J=c,I=c,z=c,C=J=c,N=c;I=x=u=y=t=c;null==h&&(h=c);m=e(w=h)?h.$attributes():w;this.$process_attribute_entries(d,h);w=[t=f([],{}),c,c];A=w[0];y=w[1];u=w[2];w;e(e(w=d["$has_more_lines?"]())?d["$next_line_empty?"]()["$!"]():w)?(e((B=this.$process_authors(d.$read_line()))["$empty?"]())||(e(h)&&(n(B,"each",[],(k=function(d,f){null==d&&(d=c);null==f&&(f=c);if(e(m["$key?"](d)))return c;d=[d,e(q("::","String")["$==="](f))?h.$apply_header_subs(f):f];n(m,"[]=",a.to_a(d));return d[b(d.length,
990
+ 1)]},k.$$s=this,k.$$arity=2,k)),y=m["$[]"]("author"),u=m["$[]"]("authorinitials"),t=m["$[]"]("authors")),A=B),this.$process_attribute_entries(d,h),x=f([],{}),e(e(w=d["$has_more_lines?"]())?d["$next_line_empty?"]()["$!"]():w)&&(J=d.$read_line(),e(I=p(v,"RevisionInfoLineRx").$match(J))?(e(I["$[]"](1))&&(z=["revnumber",I["$[]"](1).$rstrip()],n(x,"[]=",a.to_a(z)),z[b(z.length,1)]),e((J=I["$[]"](2).$strip())["$empty?"]())||(z=e(e(w=I["$[]"](1)["$!"]())?J["$start_with?"]("v"):w)?["revnumber",J.$slice(1,
991
+ J.$length())]:["revdate",J],n(x,"[]=",a.to_a(z)),z[b(z.length,1)]),e(I["$[]"](3))&&(z=["revremark",I["$[]"](3).$rstrip()],n(x,"[]=",a.to_a(z)),z[b(z.length,1)])):d.$unshift_line(J)),e(x["$empty?"]())||(e(h)&&n(x,"each",[],(l=function(d,f){null==d&&(d=c);null==f&&(f=c);if(e(m["$key?"](d)))return c;z=[d,h.$apply_header_subs(f)];n(m,"[]=",a.to_a(z));return z[b(z.length,1)]},l.$$s=this,l.$$arity=2,l)),A.$update(x)),this.$process_attribute_entries(d,h),d.$skip_blank_lines()):B=f([],{});if(e(h)){if(e(e(w=
992
+ m["$key?"]("author"))?(C=m["$[]"]("author"))["$!="](y):w))B=this.$process_authors(C,!0,!1),e(m["$[]"]("authorinitials")["$!="](u))&&B.$delete("authorinitials");else if(e(e(w=m["$key?"]("authors"))?(C=m["$[]"]("authors"))["$!="](t):w))B=this.$process_authors(C,!0);else{w=[[],1,"author_1",!1,!1];N=w[0];t=w[1];y=w[2];u=w[3];x=w[4];for(w;e(m["$key?"](y));)(I=m["$[]"](y))["$=="](B["$[]"](y))?(N["$<<"](c),x=!0):(N["$<<"](I),u=!0),y="author_"+(t=g(t,1));e(u)?(e(x)&&n(N,"each_with_index",[],(r=function(d,
993
+ f){var h=r.$$s||this,w,k=c;null==d&&(d=c);null==f&&(f=c);if(e(d))return c;z=[f,n([B["$[]"]("firstname_"+(k=g(f,1))),B["$[]"]("middlename_"+k),B["$[]"]("lastname_"+k)].$compact(),"map",[],(w=function(a){null==a&&(a=c);return a.$tr(" ","_")},w.$$s=h,w.$$arity=1,w)).$join(" ")];n(N,"[]=",a.to_a(z));return z[b(z.length,1)]},r.$$s=this,r.$$arity=2,r)),B=this.$process_authors(N,!0,!1)):B=f([],{})}e(B["$empty?"]())?e(w=A["$[]"]("authorcount"))?w:(z=["authorcount",(z=["authorcount",0],n(m,"[]=",a.to_a(z)),
994
+ z[b(z.length,1)])],n(A,"[]=",a.to_a(z)),z[b(z.length,1)]):(m.$update(B),e(e(w=m["$key?"]("email")["$!"]())?m["$key?"]("email_1"):w)&&(z=["email",m["$[]"]("email_1")],n(m,"[]=",a.to_a(z)),z[b(z.length,1)]))}return A},ha.$$arity=-2);a.defs(d,"$process_authors",za=function(d,h,k){var w,l,r=c,m=c,q=c;null==h&&(h=!1);null==k&&(k=!0);r=f([],{});m=0;n(e(e(w=k)?d["$include?"](";"):w)?d.$split(p(v,"AuthorDelimiterRx")):[].concat(a.to_a(d)),"each",[],(l=function(d){var w=l.$$s||this,k,q,t,A,y=c,u=c,B=c,Q=c,
995
+ x=c,J=c,I=c,K=c;null==d&&(d=c);if(e(d["$empty?"]()))return c;y=f([],{});(m=g(m,1))["$=="](1)?n(p(v,"AuthorKeys"),"each",[],(k=function(e){null==e&&(e=c);e=[e.$to_sym(),e];n(y,"[]=",a.to_a(e));return e[b(e.length,1)]},k.$$s=w,k.$$arity=1,k)):n(p(v,"AuthorKeys"),"each",[],(q=function(e){null==e&&(e=c);e=[e.$to_sym(),""+e+"_"+m];n(y,"[]=",a.to_a(e));return e[b(e.length,1)]},q.$$s=w,q.$$arity=1,q));if(e(h)){if(e(d["$include?"]("<"))&&(u=[y["$[]"]("author"),d.$tr("_"," ")],n(r,"[]=",a.to_a(u)),u[b(u.length,
996
+ 1)],d=d.$gsub(p(v,"XmlSanitizeRx"),"")),(B=d.$split(c,3)).$size()["$=="](3))B["$<<"](B.$pop().$squeeze(" "))}else e(Q=p(v,"AuthorInfoLineRx").$match(d))&&(B=Q.$to_a()).$shift();e(B)?(x=(u=[y["$[]"]("firstname"),J=B["$[]"](0).$tr("_"," ")],n(r,"[]=",a.to_a(u)),u[b(u.length,1)]),u=[y["$[]"]("authorinitials"),J.$chr()],n(r,"[]=",a.to_a(u)),u[b(u.length,1)],e(B["$[]"](1))&&(e(B["$[]"](2))?(u=[y["$[]"]("middlename"),I=B["$[]"](1).$tr("_"," ")],n(r,"[]=",a.to_a(u)),u[b(u.length,1)],u=[y["$[]"]("lastname"),
997
+ K=B["$[]"](2).$tr("_"," ")],n(r,"[]=",a.to_a(u)),u[b(u.length,1)],x=g(g(g(g(J," "),I)," "),K),u=[y["$[]"]("authorinitials"),""+J.$chr()+I.$chr()+K.$chr()]):(u=[y["$[]"]("lastname"),K=B["$[]"](1).$tr("_"," ")],n(r,"[]=",a.to_a(u)),u[b(u.length,1)],x=g(g(J," "),K),u=[y["$[]"]("authorinitials"),""+J.$chr()+K.$chr()]),n(r,"[]=",a.to_a(u)),u[b(u.length,1)]),e(t=r["$[]"](y["$[]"]("author")))?t:(u=[y["$[]"]("author"),x],n(r,"[]=",a.to_a(u)),u[b(u.length,1)]),e(e(t=h)?t:B["$[]"](3)["$!"]())||(u=[y["$[]"]("email"),
998
+ B["$[]"](3)],n(r,"[]=",a.to_a(u)),u[b(u.length,1)])):(u=[y["$[]"]("author"),(u=[y["$[]"]("firstname"),J=d.$squeeze(" ").$strip()],n(r,"[]=",a.to_a(u)),u[b(u.length,1)])],n(r,"[]=",a.to_a(u)),u[b(u.length,1)],u=[y["$[]"]("authorinitials"),J.$chr()],n(r,"[]=",a.to_a(u)),u[b(u.length,1)]);m["$=="](1)?u=["authors",r["$[]"](y["$[]"]("author"))]:(m["$=="](2)&&n(p(v,"AuthorKeys"),"each",[],(A=function(d){null==d&&(d=c);return e(r["$key?"](d))?(u=[""+d+"_1",r["$[]"](d)],n(r,"[]=",a.to_a(u)),u[b(u.length,
999
+ 1)]):c},A.$$s=w,A.$$arity=1,A)),u=["authors",""+r["$[]"]("authors")+", "+r["$[]"](y["$[]"]("author"))]);n(r,"[]=",a.to_a(u));return u[b(u.length,1)]},l.$$s=this,l.$$arity=1,l));q=["authorcount",m];n(r,"[]=",a.to_a(q));q[b(q.length,1)];return r},za.$$arity=-2);a.defs(d,"$parse_block_metadata_lines",Z=function(a,b,c,d){var g;null==c&&(c=f([],{}));for(null==d&&(d=f([],{}));e(this.$parse_block_metadata_line(a,b,c,d));)if(a.$shift(),e(g=a.$skip_blank_lines()))g;else break;return c},Z.$$arity=-3);a.defs(d,
1000
+ "$parse_block_metadata_line",ua=function(d,g,h,k){var w,l,r=c,m=c,q=c;null==u["~"]&&(u["~"]=c);null==k&&(k=f([],{}));if(e(e(w=r=d.$peek_line())?e(k["$[]"]("text_only"))?r["$start_with?"]("[","/"):m=r["$start_with?"]("[",".","/",":"):w))if(e(r["$start_with?"]("[")))if(e(r["$start_with?"]("[["))){if(e(e(w=r["$end_with?"]("]]"))?p(v,"BlockAnchorRx")["$=~"](r):w))return d=["id",(w=u["~"])===c?c:w["$[]"](1)],n(h,"[]=",a.to_a(d)),d[b(d.length,1)],e(d=(w=u["~"])===c?c:w["$[]"](2))&&(d=["reftext",e(d["$include?"](p(v,
1001
+ "ATTR_REF_HEAD")))?g.$sub_attributes(d):d],n(h,"[]=",a.to_a(d)),d[b(d.length,1)]),!0}else{if(e(e(w=r["$end_with?"]("]"))?p(v,"BlockAttributeListRx")["$=~"](r):w))return k=h["$[]"](1),e(g.$parse_attributes((w=u["~"])===c?c:w["$[]"](1),[],f(["sub_input","sub_result","into"],{sub_input:!0,sub_result:!0,into:h}))["$[]"](1))&&(d=[1,e(w=this.$parse_style_attribute(h,d))?w:k],n(h,"[]=",a.to_a(d)),d[b(d.length,1)]),!0}else if(e(e(w=m)?r["$start_with?"]("."):w)){if(e(p(v,"BlockTitleRx")["$=~"](r)))return d=
1002
+ ["title",(w=u["~"])===c?c:w["$[]"](1)],n(h,"[]=",a.to_a(d)),d[b(d.length,1)],!0}else if(e(e(w=m["$!"]())?w:r["$start_with?"]("/"))){if(e(r["$start_with?"]("//"))){if(r["$=="]("//"))return!0;if(e(e(w=m)?this["$uniform?"](r,"/",q=r.$length()):w)){if(!q["$=="](3))return d.$read_lines_until(f(["terminator","skip_first_line","preserve_last_line","skip_processing","context"],{terminator:r,skip_first_line:!0,preserve_last_line:!0,skip_processing:!0,context:"comment"})),!0}else if(!e(r["$start_with?"]("///")))return!0}}else if(e(e(w=
1003
+ e(l=m)?r["$start_with?"](":"):l)?p(v,"AttributeEntryRx")["$=~"](r):w))return this.$process_attribute_entry(d,g,h,u["~"]),!0;return c},ua.$$arity=-4);a.defs(d,"$process_attribute_entries",Na=function(a,b,d){null==d&&(d=c);for(a.$skip_comment_lines();e(this.$process_attribute_entry(a,b,d));)a.$shift(),a.$skip_comment_lines()},Na.$$arity=-3);a.defs(d,"$process_attribute_entry",Ia=function(a,d,f,g){var h,w,n,k,l=c;null==f&&(f=c);null==g&&(g=c);if(e(e(h=g)?h:g=e(a["$has_more_lines?"]())?p(v,"AttributeEntryRx").$match(a.$peek_line()):
1004
+ c)){if(e((k=g["$[]"](2))["$nil_or_empty?"]()))k="";else if(e(k["$end_with?"](p(v,"LINE_CONTINUATION"),p(v,"LINE_CONTINUATION_LEGACY")))){h=[k.$slice(b(k.$length(),2),2),k.$slice(0,b(k.$length(),2)).$rstrip()];var r=h[0];k=h[1];for(h;e(e(w=a.$advance())?(l=e(n=a.$peek_line())?n:"")["$empty?"]()["$!"]():w)&&(l=l.$lstrip(),e(h=l["$end_with?"](r))&&(l=l.$slice(0,b(l.$length(),2)).$rstrip()),k=""+k+(e(k["$end_with?"](p(v,"HARD_LINE_BREAK")))?p(v,"LF"):" ")+l,e(h)););}this.$store_attribute(g["$[]"](1),
1005
+ k,d,f);return!0}return c},Ia.$$arity=-3);a.defs(d,"$store_attribute",Ea=function(a,d,f,h){var w;null==f&&(f=c);null==h&&(h=c);e(a["$end_with?"]("!"))?(a=a.$chop(),d=c):e(a["$start_with?"]("!"))&&(a=a.$slice(1,a.$length()),d=c);(a=this.$sanitize_attribute_name(a))["$=="]("numbered")?a="sectnums":a["$=="]("hardbreaks")?a="hardbreaks-option":a["$=="]("showtitle")&&this.$store_attribute("notitle",e(d)?c:"",f,h);e(f)?e(d)?(a["$=="]("leveloffset")&&(e(d["$start_with?"]("+"))?d=g(f.$attr("leveloffset",0).$to_i(),
1006
+ d.$slice(1,d.$length()).$to_i()).$to_s():e(d["$start_with?"]("-"))&&(d=b(f.$attr("leveloffset",0).$to_i(),d.$slice(1,d.$length()).$to_i()).$to_s())),e(f=f.$set_attribute(a,d))&&(d=f,e(h)&&q(p(v,"Document"),"AttributeEntry").$new(a,d).$save_to(h))):e(e(w=f.$delete_attribute(a))?h:w)&&q(p(v,"Document"),"AttributeEntry").$new(a,d).$save_to(h):e(h)&&q(p(v,"Document"),"AttributeEntry").$new(a,d).$save_to(h);return[a,d]},Ea.$$arity=-3);a.defs(d,"$resolve_list_marker",Sa=function(a,b,e,d,f){null==e&&(e=
1007
+ 0);null==d&&(d=!1);null==f&&(f=c);return"ulist"["$==="](a)?b:"olist"["$==="](a)?this.$resolve_ordered_list_marker(b,e,d,f)["$[]"](0):"<1>"},Sa.$$arity=-3);a.defs(d,"$resolve_ordered_list_marker",Qa=function(a,b,d,h){var w,k,l=c,r=c,m=c,q=c;null==b&&(b=0);null==d&&(d=!1);null==h&&(h=c);if(e(a["$start_with?"](".")))return[a];l=r=n(p(v,"ORDERED_LIST_STYLES"),"find",[],(w=function(b){null==b&&(b=c);return p(v,"OrderedListMarkerRxMap")["$[]"](b)["$match?"](a)},w.$$s=this,w.$$arity=1,w));"arabic"["$==="](l)?
1008
+ (e(d)&&(m=g(b,1),q=a.$to_i()),a="1."):"loweralpha"["$==="](l)?(e(d)&&(m=g("a"["$[]"](0).$ord(),b).$chr(),q=a.$chop()),a="a."):"upperalpha"["$==="](l)?(e(d)&&(m=g("A"["$[]"](0).$ord(),b).$chr(),q=a.$chop()),a="A."):"lowerroman"["$==="](l)?(e(d)&&(m=p(v,"Helpers").$int_to_roman(g(b,1)).$downcase(),q=a.$chop()),a="i)"):"upperroman"["$==="](l)&&(e(d)&&(m=p(v,"Helpers").$int_to_roman(g(b,1)),q=a.$chop()),a="I)");e(e(k=d)?m["$!="](q):k)&&this.$logger().$warn(this.$message_with_context("list item index: expected "+
1009
+ m+", got "+q,f(["source_location"],{source_location:h.$cursor()})));return[a,r]},Qa.$$arity=-2);a.defs(d,"$is_sibling_list_item?",Pa=function(a,b,d){var f,g;return e(q("::","Regexp")["$==="](d))?d["$match?"](a):e(f=p(v,"ListRxMap")["$[]"](b)["$=~"](a))?d["$=="](this.$resolve_list_marker(b,(g=u["~"])===c?c:g["$[]"](1))):f},Pa.$$arity=3);a.defs(d,"$parse_table",Fa=function(d,f,h){var w,k,r,m=c,t=c,A=r=c,u=c,y,B=c,x=c;f=p(v,"Table").$new(f,h);e(e(w=h["$key?"]("cols"))?(m=this.$parse_colspecs(h["$[]"]("cols")))["$empty?"]()["$!"]():
1010
+ w)&&(f.$create_columns(m),t=!0);m=e(w=d.$skip_blank_lines())?w:0;e(h["$[]"]("header-option"))?(r=[!0],n(f,"has_header_option=",a.to_a(r)),r[b(r.length,1)]):e(m["$=="](0)?h["$[]"]("noheader-option")["$!"]():m["$=="](0))&&(r=["implicit"],n(f,"has_header_option=",a.to_a(r)),r[b(r.length,1)],A=!0);m=q(p(v,"Table"),"ParserContext").$new(d,f,h);w=[m.$format(),-1,c];var J=w[0];var I=w[1];var Q=w[2];w;for(w=!1;w||e(u=d.$read_line());){w=!1;if(e(e(k=y=l(I=g(I,1),0))?u["$empty?"]():k))u=c,e(Q)&&(Q=g(Q,1));
1011
+ else if(J["$=="]("psv"))if(e(m["$starts_with_delimiter?"](u)))u=u.$slice(1,u.$length()),m.$close_open_cell(),e(Q)&&(Q=c);else{var z=this.$parse_cellspec(u,"start",m.$delimiter());k=a.to_ary(z);var C=null==k[0]?c:k[0];u=null==k[1]?c:k[1];z;e(C)?(m.$close_open_cell(C),e(Q)&&(Q=c)):e(e(k=Q)?Q["$=="](I):k)&&(r=[A=Q=c],n(f,"has_header_option=",a.to_a(r)),r[b(r.length,1)])}e(y)||(d.$mark(),e(A)&&(e(e(k=d["$has_more_lines?"]())?d.$peek_line()["$empty?"]():k)?Q=1:(r=[A=c],n(f,"has_header_option=",a.to_a(r)),
1012
+ r[b(r.length,1)])));for(k=!1;k||e(!0);)if(k=!1,e(e(z=u)?B=m.$match_delimiter(u):z)){z=[B.$pre_match(),B.$post_match()];y=z[0];u=z[1];z;C=J;if("csv"["$==="](C)){if(e(m["$buffer_has_unclosed_quotes?"](y))){m.$skip_past_delimiter(y);if(e(u["$empty?"]()))break;k=!0;continue}r=[""+m.$buffer()+y]}else if("dsv"["$==="](C)){if(e(y["$end_with?"]("\\"))){m.$skip_past_escaped_delimiter(y);if(e(u["$empty?"]())){r=[""+m.$buffer()+p(v,"LF")];n(m,"buffer=",a.to_a(r));r[b(r.length,1)];m.$keep_cell_open();break}k=
1013
+ !0;continue}r=[""+m.$buffer()+y]}else{if(e(y["$end_with?"]("\\"))){m.$skip_past_escaped_delimiter(y);if(e(u["$empty?"]())){r=[""+m.$buffer()+p(v,"LF")];n(m,"buffer=",a.to_a(r));r[b(r.length,1)];m.$keep_cell_open();break}k=!0;continue}r=this.$parse_cellspec(y);z=a.to_ary(r);C=null==z[0]?c:z[0];y=null==z[1]?c:z[1];r;m.$push_cellspec(C);r=[""+m.$buffer()+y]}n(m,"buffer=",a.to_a(r));r[b(r.length,1)];e(u["$empty?"]())&&(u=c);m.$close_cell()}else{r=[""+m.$buffer()+u+p(v,"LF")];n(m,"buffer=",a.to_a(r));
1014
+ r[b(r.length,1)];C=J;"csv"["$==="](C)?e(m["$buffer_has_unclosed_quotes?"]())?(e(e(z=Q)?I["$=="](0):z)&&(r=[A=Q=c],n(f,"has_header_option=",a.to_a(r)),r[b(r.length,1)]),m.$keep_cell_open()):m.$close_cell(!0):"dsv"["$==="](C)?m.$close_cell(!0):m.$keep_cell_open();break}if(e(m["$cell_open?"]()))e(d["$has_more_lines?"]())||m.$close_cell(!0);else if(e(k=d.$skip_blank_lines()))k;else break}e(e(w=(x=f.$attributes(),e(k=x["$[]"]("colcount"))?k:(r=["colcount",f.$columns().$size()],n(x,"[]=",a.to_a(r)),r[b(r.length,
1015
+ 1)]))["$=="](0))?w:t)||f.$assign_column_widths();e(A)&&(r=[!0],n(f,"has_header_option=",a.to_a(r)),r[b(r.length,1)]);f.$partition_header_footer(h);return f},Fa.$$arity=3);a.defs(d,"$parse_colspecs",Ga=function(d){var g,h,k=c;e(d["$include?"](" "))&&(d=d.$delete(" "));if(d["$=="](d.$to_i().$to_s()))return n(q("::","Array"),"new",[d.$to_i()],(g=function(){return f(["width"],{width:1})},g.$$s=this,g.$$arity=0,g));k=[];n(e(d["$include?"](","))?d.$split(",",-1):d.$split(";",-1),"each",[],(h=function(d){var g=
1016
+ h.$$s||this,w,l=c,r=c,m=c,q=c,t=m=c;null==d&&(d=c);if(e(d["$empty?"]()))return k["$<<"](f(["width"],{width:1}));if(e(l=p(v,"ColumnSpecRx").$match(d))){r=f([],{});if(e(l["$[]"](2))){d=l["$[]"](2).$split(".");var A=a.to_ary(d);m=null==A[0]?c:A[0];q=null==A[1]?c:A[1];d;e(e(A=m["$nil_or_empty?"]()["$!"]())?p(v,"TableCellHorzAlignments")["$key?"](m):A)&&(m=["halign",p(v,"TableCellHorzAlignments")["$[]"](m)],n(r,"[]=",a.to_a(m)),m[b(m.length,1)]);e(e(A=q["$nil_or_empty?"]()["$!"]())?p(v,"TableCellVertAlignments")["$key?"](q):
1017
+ A)&&(m=["valign",p(v,"TableCellVertAlignments")["$[]"](q)],n(r,"[]=",a.to_a(m)),m[b(m.length,1)])}m=e(t=l["$[]"](3))?["width",t["$=="]("~")?-1:t.$to_i()]:["width",1];n(r,"[]=",a.to_a(m));m[b(m.length,1)];e(e(A=l["$[]"](4))?p(v,"TableCellStyles")["$key?"](l["$[]"](4)):A)&&(m=["style",p(v,"TableCellStyles")["$[]"](l["$[]"](4))],n(r,"[]=",a.to_a(m)),m[b(m.length,1)]);return e(l["$[]"](1))?n(1,"upto",[l["$[]"](1).$to_i()],(w=function(){return k["$<<"](r.$merge())},w.$$s=g,w.$$arity=0,w)):k["$<<"](r)}return c},
1018
+ h.$$s=this,h.$$arity=1,h));return k},Ga.$$arity=1);a.defs(d,"$parse_cellspec",Wa=function(d,g,h){null==g&&(g="end");null==h&&(h=c);var w=[c,""];w;if(g["$=="]("start"))if(e(d["$include?"](h))){var k=d.$partition(h);w=a.to_ary(k);h=null==w[0]?c:w[0];g=null==w[2]?c:w[2];k;if(e(h=p(v,"CellSpecStartRx").$match(h))){if(e(h["$[]"](0)["$empty?"]()))return[f([],{}),g]}else return[c,d]}else return[c,d];else if(e(h=p(v,"CellSpecEndRx").$match(d))){if(e(h["$[]"](0).$lstrip()["$empty?"]()))return[f([],{}),d.$rstrip()];
1019
+ g=h.$pre_match()}else return[f([],{}),d];d=f([],{});if(e(h["$[]"](1))){k=h["$[]"](1).$split(".");w=a.to_ary(k);var l=null==w[0]?c:w[0];var r=null==w[1]?c:w[1];k;l=e(l["$nil_or_empty?"]())?1:l.$to_i();r=e(r["$nil_or_empty?"]())?1:r.$to_i();k=h["$[]"](2);"+"["$==="](k)?(l["$=="](1)||(k=["colspan",l],n(d,"[]=",a.to_a(k)),k[b(k.length,1)]),r["$=="](1)||(k=["rowspan",r],n(d,"[]=",a.to_a(k)),k[b(k.length,1)])):"*"["$==="](k)&&!l["$=="](1)&&(k=["repeatcol",l],n(d,"[]=",a.to_a(k)),k[b(k.length,1)])}e(h["$[]"](3))&&
1020
+ (k=h["$[]"](3).$split("."),w=a.to_ary(k),l=null==w[0]?c:w[0],r=null==w[1]?c:w[1],k,e(e(w=l["$nil_or_empty?"]()["$!"]())?p(v,"TableCellHorzAlignments")["$key?"](l):w)&&(k=["halign",p(v,"TableCellHorzAlignments")["$[]"](l)],n(d,"[]=",a.to_a(k)),k[b(k.length,1)]),e(e(w=r["$nil_or_empty?"]()["$!"]())?p(v,"TableCellVertAlignments")["$key?"](r):w)&&(k=["valign",p(v,"TableCellVertAlignments")["$[]"](r)],n(d,"[]=",a.to_a(k)),k[b(k.length,1)]));e(e(w=h["$[]"](4))?p(v,"TableCellStyles")["$key?"](h["$[]"](4)):
1021
+ w)&&(k=["style",p(v,"TableCellStyles")["$[]"](h["$[]"](4))],n(d,"[]=",a.to_a(k)),k[b(k.length,1)]);return[d,g]},Wa.$$arity=-2);a.defs(d,"$parse_style_attribute",Ta=function(d,h){var w,k,l,r,m=c,q=c,t=c,A=c,u=c,y=c,B=c;null==h&&(h=c);if(e(e(w=e(k=m=d["$[]"](1))?m["$include?"](" ")["$!"]():k)?p(v,"Compliance").$shorthand_property_syntax():w)){q=c;t="";A=f([],{});n(m,"each_char",[],(l=function(a){var b=l.$$s||this,e=c;null==a&&(a=c);return function(){e=a;return"."["$==="](e)?(b.$yield_buffered_attribute(A,
1022
+ q,t,h),t="",q="role"):"#"["$==="](e)?(b.$yield_buffered_attribute(A,q,t,h),t="",q="id"):"%"["$==="](e)?(b.$yield_buffered_attribute(A,q,t,h),t="",q="option"):t=g(t,a)}()},l.$$s=this,l.$$arity=1,l));if(e(q))return this.$yield_buffered_attribute(A,q,t,h),e(u=A["$[]"]("style"))&&(y=["style",u],n(d,"[]=",a.to_a(y)),y[b(y.length,1)]),e(A["$key?"]("id"))&&(y=["id",A["$[]"]("id")],n(d,"[]=",a.to_a(y)),y[b(y.length,1)]),e(A["$key?"]("role"))&&(y=["role",e((B=d["$[]"]("role"))["$nil_or_empty?"]())?A["$[]"]("role").$join(" "):
1023
+ ""+B+" "+A["$[]"]("role").$join(" ")],n(d,"[]=",a.to_a(y)),y[b(y.length,1)]),e(A["$key?"]("option"))&&n(A["$[]"]("option"),"each",[],(r=function(e){null==e&&(e=c);y=[""+e+"-option",""];n(d,"[]=",a.to_a(y));return y[b(y.length,1)]},r.$$s=this,r.$$arity=1,r)),u;y=["style",m];n(d,"[]=",a.to_a(y));return y[b(y.length,1)]}y=["style",m];n(d,"[]=",a.to_a(y));return y[b(y.length,1)]},Ta.$$arity=-2);a.defs(d,"$yield_buffered_attribute",Xa=function(d,g,h,k){var w,p=c;if(e(g))if(e(h["$empty?"]()))e(k)?this.$logger().$warn(this.$message_with_context("invalid empty "+
1024
+ g+" detected in style attribute",f(["source_location"],{source_location:k.$cursor_at_prev_line()}))):this.$logger().$warn("invalid empty "+g+" detected in style attribute");else if(g["$=="]("id"))e(d["$key?"]("id"))&&(e(k)?this.$logger().$warn(this.$message_with_context("multiple ids detected in style attribute",f(["source_location"],{source_location:k.$cursor_at_prev_line()}))):this.$logger().$warn("multiple ids detected in style attribute")),p=[g,h],n(d,"[]=",a.to_a(p)),p[b(p.length,1)];else(e(w=
1025
+ d["$[]"](g))?w:(p=[g,[]],n(d,"[]=",a.to_a(p)),p[b(p.length,1)]))["$<<"](h);else e(h["$empty?"]())||(p=["style",h],n(d,"[]=",a.to_a(p)),p[b(p.length,1)]);return c},Xa.$$arity=4);a.defs(d,"$adjust_indentation!",Ya=function(d,f,h){var w,m,q,t,A,y,u,B=this,x=c,J=c,I=c;null==f&&(f=0);null==h&&(h=0);if(e(d["$empty?"]()))return c;e(e(w=l(h,0))?n(d,"any?",[],(m=function(a){null==a&&(a=c);return a["$include?"](p(v,"TAB"))},m.$$s=B,m.$$arity=1,m)):w)&&(x=r(" ",h),function(){var f=a.new_brk();try{return n(d,
1026
+ "map!",[],(q=function(d){var f=q.$$s||this,k,w,l,m=c,t=c,A=c,y=c,u=c;null==d&&(d=c);if(e(e(k=d["$empty?"]())?k:(m=d.$index(p(v,"TAB")))["$nil?"]())||m["$=="](0)&&(t=0,function(){var b=a.new_brk();try{return n(d,"each_byte",[],(w=function(e){null==e&&(e=c);e["$=="](9)||a.brk(c,b);return t=g(t,1)},w.$$s=f,w.$$brk=b,w.$$arity=1,w))}catch(db){if(db===b)return db.$v;throw db;}}(),d=""+r(x,t)+d.$slice(t,d.$length()),!e(d["$include?"](p(v,"TAB")))))return d;y=A=0;u="";n(d,"each_char",[],(l=function(a){var e;
1027
+ null==a&&(a=c);a["$=="](p(v,"TAB"))?(a=g(y,A))["$%"](h)["$=="](0)?(A=g(A,b(h,1)),u=g(u,x)):((e=b(h,a["$%"](h)))["$=="](1)||(A=g(A,b(e,1))),u=g(u,r(" ",e))):u=g(u,a);return y=g(y,1)},l.$$s=f,l.$$arity=1,l));return u},q.$$s=B,q.$$brk=f,q.$$arity=1,q))}catch(Ra){if(Ra===f)return Ra.$v;throw Ra;}}());if(e(k(f,0)))return c;J=c;(function(){var f=a.new_brk();try{return n(d,"each",[],(t=function(d){var g;null==d&&(d=c);if(e(d["$empty?"]()))return c;(d=b(d.$length(),d.$lstrip().$length()))["$=="](0)&&(J=c,
1028
+ a.brk(c,f));return e(e(g=J)?k(J,d):g)?c:J=d},t.$$s=B,t.$$brk=f,t.$$arity=1,t))}catch(Ra){if(Ra===f)return Ra.$v;throw Ra;}})();f["$=="](0)?e(J)&&n(d,"map!",[],(A=function(a){null==a&&(a=c);return e(a["$empty?"]())?a:a.$slice(J,a.$length())},A.$$s=B,A.$$arity=1,A)):(I=r(" ",f),e(J)?n(d,"map!",[],(y=function(a){null==a&&(a=c);return e(a["$empty?"]())?a:g(I,a.$slice(J,a.$length()))},y.$$s=B,y.$$arity=1,y)):n(d,"map!",[],(u=function(a){null==a&&(a=c);return e(a["$empty?"]())?a:g(I,a)},u.$$s=B,u.$$arity=
1029
+ 1,u)));return c},Ya.$$arity=-2);a.defs(d,"$uniform?",bb=function(a,b,c){return a.$count(b)["$=="](c)},bb.$$arity=3);return(a.defs(d,"$sanitize_attribute_name",Za=function(a){return a.$gsub(p(v,"InvalidAttributeNameCharsRx"),"").$downcase()},Za.$$arity=1),c)&&"sanitize_attribute_name"})(d[0],null,d)}(h[0],h)};Opal.modules["asciidoctor/path_resolver"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}var g=[],k=a.nil,l=a.const_get_qualified,r=a.const_get_relative,
1030
+ h=a.module,c=a.klass,m=a.truthy,p=a.hash2,q=a.send,t=a.gvars;a.add_stubs("$include $attr_accessor $root? $posixify $expand_path $pwd $start_with? $== $match? $absolute_path? $+ $length $descends_from? $slice $to_s $relative_path_from $new $include? $tr $partition_path $each $pop $<< $join_path $[] $web_root? $unc? $index $split $delete $[]= $- $join $raise $! $fetch $warn $logger $empty? $nil_or_empty? $chomp $!= $> $size $extract_uri_prefix $end_with? $gsub $private $=~".split(" "));return function(d,
1031
+ e){d=[h(d,"Asciidoctor")].concat(e);(function(e,$super,d){e=c(e,$super,"PathResolver");var f=[e].concat(d),g,h,n,v,u,A,B,x,z,C,S,D,L,E;e.$$prototype.file_separator=e.$$prototype._partition_path_web=e.$$prototype._partition_path_sys=e.$$prototype.working_dir=k;e.$include(r(f,"Logging"));a.const_set(f[0],"DOT",".");a.const_set(f[0],"DOT_DOT","..");a.const_set(f[0],"DOT_SLASH","./");a.const_set(f[0],"SLASH","/");a.const_set(f[0],"BACKSLASH","\\");a.const_set(f[0],"DOUBLE_SLASH","//");a.const_set(f[0],
1032
+ "WindowsRootRx",/^(?:[a-zA-Z]:)?[\\\/]/);e.$attr_accessor("file_separator");e.$attr_accessor("working_dir");a.def(e,"$initialize",g=function(a,b){var c,e;null==a&&(a=k);null==b&&(b=k);this.file_separator=m(c=m(e=a)?e:l(l("::","File"),"ALT_SEPARATOR"))?c:l(l("::","File"),"SEPARATOR");this.working_dir=m(b)?m(this["$root?"](b))?this.$posixify(b):l("::","File").$expand_path(b):l("::","Dir").$pwd();this._partition_path_sys=p([],{});return this._partition_path_web=p([],{})},g.$$arity=-1);a.def(e,"$absolute_path?",
1033
+ h=function(a){var b;return m(b=a["$start_with?"](r(f,"SLASH")))?b:this.file_separator["$=="](r(f,"BACKSLASH"))?r(f,"WindowsRootRx")["$match?"](a):this.file_separator["$=="](r(f,"BACKSLASH"))},h.$$arity=1);m(r(f,"RUBY_ENGINE")["$=="]("opal")?l("::","JAVASCRIPT_IO_MODULE")["$=="]("xmlhttprequest"):r(f,"RUBY_ENGINE")["$=="]("opal"))?a.def(e,"$root?",n=function(a){var b;return m(b=this["$absolute_path?"](a))?b:a["$start_with?"]("file://","http://","https://")},n.$$arity=1):a.alias(e,"root?","absolute_path?");
1034
+ a.def(e,"$unc?",v=function(a){return a["$start_with?"](r(f,"DOUBLE_SLASH"))},v.$$arity=1);a.def(e,"$web_root?",u=function(a){return a["$start_with?"](r(f,"SLASH"))},u.$$arity=1);a.def(e,"$descends_from?",A=function(a,c){var e;return c["$=="](a)?0:c["$=="](r(f,"SLASH"))?m(e=a["$start_with?"](r(f,"SLASH")))?1:e:m(e=a["$start_with?"](b(c,r(f,"SLASH"))))?b(c.$length(),1):e},A.$$arity=2);a.def(e,"$relative_path",B=function(b,c){var e;if(m(this["$root?"](b))){if(m(e=this["$descends_from?"](b,c)))return b.$slice(e,
1035
+ b.$length());try{return r(f,"Pathname").$new(b).$relative_path_from(r(f,"Pathname").$new(c)).$to_s()}catch(fa){if(a.rescue(fa,[r(f,"StandardError")]))try{return b}finally{a.pop_exception()}else throw fa;}}else return b},B.$$arity=2);a.def(e,"$posixify",x=function(a){return m(a)?m(this.file_separator["$=="](r(f,"BACKSLASH"))?a["$include?"](r(f,"BACKSLASH")):this.file_separator["$=="](r(f,"BACKSLASH")))?a.$tr(r(f,"BACKSLASH"),r(f,"SLASH")):a:""},x.$$arity=1);a.alias(e,"posixfy","posixify");a.def(e,
1036
+ "$expand_path",z=function(b){var c,e,d=k,g=c=k;var h=this.$partition_path(b);c=a.to_ary(h);d=null==c[0]?k:c[0];c=null==c[1]?k:c[1];h;return m(b["$include?"](r(f,"DOT_DOT")))?(g=[],q(d,"each",[],(e=function(a){null==a&&(a=k);return a["$=="](r(f,"DOT_DOT"))?g.$pop():g["$<<"](a)},e.$$s=this,e.$$arity=1,e)),this.$join_path(g,c)):this.$join_path(d,c)},z.$$arity=1);a.def(e,"$partition_path",C=function(c,e){var d,g,h=k;null==e&&(e=k);if(m(d=(g=m(e)?this._partition_path_web:this._partition_path_sys)["$[]"](c)))return d;
1037
+ d=this.$posixify(c);m(e)?m(this["$web_root?"](d))?h=r(f,"SLASH"):m(d["$start_with?"](r(f,"DOT_SLASH")))&&(h=r(f,"DOT_SLASH")):m(this["$root?"](d))?h=m(this["$unc?"](d))?r(f,"DOUBLE_SLASH"):m(d["$start_with?"](r(f,"SLASH")))?r(f,"SLASH"):d.$slice(0,b(d.$index(r(f,"SLASH")),1)):m(d["$start_with?"](r(f,"DOT_SLASH")))&&(h=r(f,"DOT_SLASH"));e=(m(h)?d.$slice(h.$length(),d.$length()):d).$split(r(f,"SLASH"));e.$delete(r(f,"DOT"));c=[c,[e,h]];q(g,"[]=",a.to_a(c));g=c.length;g="number"===typeof g?g-1:g["$-"](1);
1038
+ return c[g]},C.$$arity=-2);a.def(e,"$join_path",S=function(a,b){null==b&&(b=k);return m(b)?""+b+a.$join(r(f,"SLASH")):a.$join(r(f,"SLASH"))},S.$$arity=-2);a.def(e,"$system_path",D=function(c,e,d,g){var h,n,v,t=k,u=k,y=k,A=k,B=t=k,x=k,J=k,T=B=k;null==e&&(e=k);null==d&&(d=k);null==g&&(g=p([],{}));m(d)&&(m(this["$root?"](d))||this.$raise(l("::","SecurityError"),"Jail is not an absolute path: "+d),d=this.$posixify(d));if(m(c)){if(m(this["$root?"](c))){t=this.$expand_path(c);if(m(m(h=d)?this["$descends_from?"](t,
1039
+ d)["$!"]():h)){if(m(g.$fetch("recover",!0))){this.$logger().$warn(""+(m(h=g["$[]"]("target_name"))?h:"path")+" is outside of jail; recovering automatically");var z=this.$partition_path(t);h=a.to_ary(z);u=null==h[0]?k:h[0];z;z=this.$partition_path(d);h=a.to_ary(z);y=null==h[0]?k:h[0];A=null==h[1]?k:h[1];z;return this.$join_path(b(y,u),A)}this.$raise(l("::","SecurityError"),""+(m(h=g["$[]"]("target_name"))?h:"path")+" "+c+" is outside of jail: "+d+" (disallowed in safe mode)")}return t}z=this.$partition_path(c);
1040
+ h=a.to_ary(z);u=null==h[0]?k:h[0];z}else u=[];if(m(u["$empty?"]())){if(m(e["$nil_or_empty?"]()))return m(h=d)?h:this.working_dir;if(m(this["$root?"](e)))if(m(d))e=this.$posixify(e);else return this.$expand_path(e);else z=this.$partition_path(e),h=a.to_ary(z),u=null==h[0]?k:h[0],z,e=m(h=d)?h:this.working_dir}else m(e["$nil_or_empty?"]())?e=m(h=d)?h:this.working_dir:m(this["$root?"](e))?m(d)&&(e=this.$posixify(e)):e=""+(m(h=d)?h:this.working_dir).$chomp("/")+"/"+e;m(m(h=m(z=d)?t=this["$descends_from?"](e,
1041
+ d)["$!"]():z)?this.file_separator["$=="](r(f,"BACKSLASH")):h)?(z=this.$partition_path(e),h=a.to_ary(z),B=null==h[0]?k:h[0],x=null==h[1]?k:h[1],z,z=this.$partition_path(d),h=a.to_ary(z),y=null==h[0]?k:h[0],A=null==h[1]?k:h[1],z,m(x["$!="](A))&&(m(g.$fetch("recover",!0))?(this.$logger().$warn("start path for "+(m(h=g["$[]"]("target_name"))?h:"path")+" is outside of jail root; recovering automatically"),B=y,t=!1):this.$raise(l("::","SecurityError"),"start path for "+(m(h=g["$[]"]("target_name"))?h:"path")+
1042
+ " "+e+" refers to location outside jail root: "+d+" (disallowed in safe mode)"))):(z=this.$partition_path(e),h=a.to_ary(z),B=null==h[0]?k:h[0],A=null==h[1]?k:h[1],z);m((J=b(B,u))["$include?"](r(f,"DOT_DOT")))&&(h=[J,[]],B=h[0],J=h[1],h,m(d)?(m(y)||(z=this.$partition_path(d),h=a.to_ary(z),y=null==h[0]?k:h[0],z),T=!1,q(B,"each",[],(n=function(a){var b=n.$$s||this,e;null==a&&(a=k);if(a["$=="](r(f,"DOT_DOT"))){a=J.$size();var h=y.$size();a="number"===typeof a&&"number"===typeof h?a>h:a["$>"](h);if(m(a))return J.$pop();
1043
+ if(m(g.$fetch("recover",!0))){if(m(T))return k;b.$logger().$warn(""+(m(e=g["$[]"]("target_name"))?e:"path")+" has illegal reference to ancestor of jail; recovering automatically");return T=!0}return b.$raise(l("::","SecurityError"),""+(m(e=g["$[]"]("target_name"))?e:"path")+" "+c+" refers to location outside jail: "+d+" (disallowed in safe mode)")}return J["$<<"](a)},n.$$s=this,n.$$arity=1,n))):q(B,"each",[],(v=function(a){null==a&&(a=k);return a["$=="](r(f,"DOT_DOT"))?J.$pop():J["$<<"](a)},v.$$s=
1044
+ this,v.$$arity=1,v)));return m(t)?(t=this.$join_path(J,A),m(this["$descends_from?"](t,d))?t:m(g.$fetch("recover",!0))?(this.$logger().$warn(""+(m(h=g["$[]"]("target_name"))?h:"path")+" is outside of jail; recovering automatically"),m(y)||(z=this.$partition_path(d),h=a.to_ary(z),y=null==h[0]?k:h[0],z),this.$join_path(b(y,u),A)):this.$raise(l("::","SecurityError"),""+(m(h=g["$[]"]("target_name"))?h:"path")+" "+c+" is outside of jail: "+d+" (disallowed in safe mode)")):this.$join_path(J,A)},D.$$arity=
1045
+ -2);a.def(e,"$web_path",L=function(b,c){var e,d,g=k,h=k,n=k,p=k,l=k;null==c&&(c=k);b=this.$posixify(b);c=this.$posixify(c);m(m(e=c["$nil_or_empty?"]())?e:this["$web_root?"](b))||(c=this.$extract_uri_prefix(""+c+(m(c["$end_with?"](r(f,"SLASH")))?"":r(f,"SLASH"))+b),e=a.to_ary(c),b=null==e[0]?k:e[0],g=null==e[1]?k:e[1],c);c=this.$partition_path(b,!0);e=a.to_ary(c);h=null==e[0]?k:e[0];n=null==e[1]?k:e[1];c;p=[];q(h,"each",[],(d=function(a){var b;null==a&&(a=k);return a["$=="](r(f,"DOT_DOT"))?m(p["$empty?"]())?
1046
+ m(m(b=n)?n["$!="](r(f,"DOT_SLASH")):b)?k:p["$<<"](a):p["$[]"](-1)["$=="](r(f,"DOT_DOT"))?p["$<<"](a):p.$pop():p["$<<"](a)},d.$$s=this,d.$$arity=1,d));m((l=this.$join_path(p,n))["$include?"](" "))&&(l=l.$gsub(" ","%20"));return m(g)?""+g+l:l},L.$$arity=-2);e.$private();return(a.def(e,"$extract_uri_prefix",E=function(a){var b;return m(m(b=a["$include?"](":"))?r(f,"UriSniffRx")["$=~"](a):b)?[a.$slice(((b=t["~"])===k?k:b["$[]"](0)).$length(),a.$length()),(b=t["~"])===k?k:b["$[]"](0)]:a},E.$$arity=1),
1047
+ k)&&"extract_uri_prefix"})(d[0],null,d)}(g[0],g)};Opal.modules["asciidoctor/reader"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a>b:a["$>"](b)}function k(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}function l(a,b){return"number"===typeof a&&"number"===typeof b?a>=b:a["$>="](b)}var m=[],h=a.nil,c=a.const_get_qualified,q=a.const_get_relative,p=a.module,t=a.klass,u=a.hash2,
1048
+ n=a.truthy,e=a.send,f=a.gvars,x=a.hash;a.add_stubs("$include $attr_reader $+ $attr_accessor $! $=== $split $file $dir $dirname $path $basename $lineno $reverse $prepare_lines $empty? $nil_or_empty? $peek_line $> $slice $[] $length $process_line $times $shift $read_line $<< $- $unshift_all $has_more_lines? $join $read_lines $unshift $start_with? $== $* $read_lines_until $size $clear $cursor $[]= $!= $fetch $cursor_at_mark $warn $logger $message_with_context $pop $push $respond_to? $reverse_each $new $tap $each $instance_variables $instance_variable_get $drop $instance_variable_set $class $object_id $inspect $private $prepare_source_array $prepare_source_string $chomp $valid_encoding? $to_s $raise $to_i $attributes $catalog $pop_include $parse $path= $dup $end_with? $keys $rindex $rootname $key? $attr $reverse! $>= $nil? $extensions? $include_processors? $extensions $include_processors $map $skip_front_matter! $adjust_indentation! $include? $=~ $preprocess_conditional_directive $preprocess_include_directive $downcase $error $none? $any? $all? $strip $send $resolve_expr_val $replace_next_line $rstrip $sub_attributes $attribute_missing $info $parse_attributes $find $handles? $instance $process_method $safe $resolve_include_path $method $split_delimited_value $partition $< $to_a $uniq $sort $call $each_line $infinite? $push_include $delete $first $values $value? $create_include_cursor $delete_at $read $uriish? $attr? $require_library $normalize_system_path $file? $relative_path $path_resolver $base_dir $to_f".split(" "));
1049
+ return function(d,m){d=[p(d,"Asciidoctor")].concat(m);(function(d,$super,f){d=t(d,$super,"Reader");var p=[d].concat(f),l,m,r,v,A,B,x,z,J,C,N,D,L,E,I,S,H,G,F,U,da,na,ba,M,O,P,ea,R,ka,za,Z,ua,Na,Ia,Ea,Sa,Qa,Pa;d.$$prototype.file=d.$$prototype.lines=d.$$prototype.look_ahead=d.$$prototype.unescape_next_line=d.$$prototype.lineno=d.$$prototype.process_lines=d.$$prototype.dir=d.$$prototype.path=d.$$prototype.mark=d.$$prototype.source_lines=d.$$prototype.saved=h;d.$include(q(p,"Logging"));(function(c,$super,
1050
+ e){c=t(c,$super,"Cursor");[c].concat(e);var d,f,g;c.$$prototype.lineno=c.$$prototype.path=h;c.$attr_reader("file","dir","path","lineno");a.def(c,"$initialize",d=function(a,b,c,e){var d;null==b&&(b=h);null==c&&(c=h);null==e&&(e=1);return d=[a,b,c,e],this.file=d[0],this.dir=d[1],this.path=d[2],this.lineno=d[3],d},d.$$arity=-2);a.def(c,"$advance",f=function(a){return this.lineno=b(this.lineno,a)},f.$$arity=1);a.def(c,"$line_info",g=function(){return""+this.path+": line "+this.lineno},g.$$arity=0);return a.alias(c,
1051
+ "to_s","line_info")})(p[0],null,p);d.$attr_reader("file");d.$attr_reader("dir");d.$attr_reader("path");d.$attr_reader("lineno");d.$attr_reader("source_lines");d.$attr_accessor("process_lines");d.$attr_accessor("unterminated");a.def(d,"$initialize",l=function(b,e,d){null==b&&(b=h);null==e&&(e=h);null==d&&(d=u([],{}));if(n(e["$!"]()))this.file=h,this.dir=".",this.path="<stdin>",this.lineno=1;else if(n(c("::","String")["$==="](e))){this.file=e;e=c("::","File").$split(this.file);var f=a.to_ary(e);this.dir=
1052
+ null==f[0]?h:f[0];this.path=null==f[1]?h:f[1];e;this.lineno=1}else n(this.file=e.$file())?(this.dir=n(f=e.$dir())?f:c("::","File").$dirname(this.file),this.path=n(f=e.$path())?f:c("::","File").$basename(this.file)):(this.dir=n(f=e.$dir())?f:".",this.path=n(f=e.$path())?f:"<stdin>"),this.lineno=n(f=e.$lineno())?f:1;this.lines=(this.source_lines=this.$prepare_lines(b,d)).$reverse();this.mark=h;this.look_ahead=0;this.process_lines=!0;this.unescape_next_line=!1;return this.saved=this.unterminated=h},
1053
+ l.$$arity=-1);a.def(d,"$has_more_lines?",m=function(){return n(this.lines["$empty?"]())?(this.look_ahead=0,!1):!0},m.$$arity=0);a.def(d,"$empty?",r=function(){return n(this.lines["$empty?"]())?(this.look_ahead=0,!0):!1},r.$$arity=0);a.alias(d,"eof?","empty?");a.def(d,"$next_line_empty?",v=function(){return this.$peek_line()["$nil_or_empty?"]()},v.$$arity=0);a.def(d,"$peek_line",A=function(a){var b,c=h;null==a&&(a=!1);return n(n(b=a)?b:g(this.look_ahead,0))?n(this.unescape_next_line)?(c=this.lines["$[]"](-1)).$slice(1,
1054
+ c.$length()):this.lines["$[]"](-1):n(this.lines["$empty?"]())?(this.look_ahead=0,h):n(b=this.$process_line(this.lines["$[]"](-1)))?b:this.$peek_line()},A.$$arity=-1);a.def(d,"$peek_lines",B=function(b,c){var d,f,g=this,l=h,m=h;null==b&&(b=h);null==c&&(c=!1);l=g.look_ahead;m=[];(function(){var l=a.new_brk();try{return e(n(d=b)?d:q(p,"MAX_INT"),"times",[],(f=function(){var b=f.$$s||this,e;null==b.lineno&&(b.lineno=h);if(n(e=n(c)?b.$shift():b.$read_line()))return m["$<<"](e);n(c)&&(b.lineno=k(b.lineno,
1055
+ 1));a.brk(h,l)},f.$$s=g,f.$$brk=l,f.$$arity=0,f))}catch(ia){if(ia===l)return ia.$v;throw ia;}})();n(m["$empty?"]())||(g.$unshift_all(m),n(c)&&(g.look_ahead=l));return m},B.$$arity=-1);a.def(d,"$read_line",x=function(){var a;return n(n(a=g(this.look_ahead,0))?a:this["$has_more_lines?"]())?this.$shift():h},x.$$arity=0);a.def(d,"$read_lines",z=function(){var a;for(a=[];n(this["$has_more_lines?"]());)a["$<<"](this.$shift());return a},z.$$arity=0);a.alias(d,"readlines","read_lines");a.def(d,"$read",J=
1056
+ function(){return this.$read_lines().$join(q(p,"LF"))},J.$$arity=0);a.def(d,"$advance",C=function(){return n(this.$shift())?!0:!1},C.$$arity=0);a.def(d,"$unshift_line",N=function(a){this.$unshift(a);return h},N.$$arity=1);a.alias(d,"restore_line","unshift_line");a.def(d,"$unshift_lines",D=function(a){return this.$unshift_all(a)},D.$$arity=1);a.alias(d,"restore_lines","unshift_lines");a.def(d,"$replace_next_line",L=function(a){this.$shift();this.$unshift(a);return!0},L.$$arity=1);a.alias(d,"replace_line",
1057
+ "replace_next_line");a.def(d,"$skip_blank_lines",E=function(){var a,c;if(n(this["$empty?"]()))return h;for(a=0;n(c=this.$peek_line());)if(n(c["$empty?"]()))this.$shift(),a=b(a,1);else return a},E.$$arity=0);a.def(d,"$skip_comment_lines",I=function(){var a,b=h,c=h;if(n(this["$empty?"]()))return h;for(;n(n(a=b=this.$peek_line())?b["$empty?"]()["$!"]():a);)if(n(b["$start_with?"]("//")))if(n(b["$start_with?"]("///")))if(n(n(a=g(c=b.$length(),3))?b["$=="]("/"["$*"](c)):a))this.$read_lines_until(u(["terminator",
1058
+ "skip_first_line","read_last_line","skip_processing","context"],{terminator:b,skip_first_line:!0,read_last_line:!0,skip_processing:!0,context:"comment"}));else break;else this.$shift();else break;return h},I.$$arity=0);a.def(d,"$skip_line_comments",S=function(){var a,b,c=h;if(n(this["$empty?"]()))return[];for(b=[];n(n(a=c=this.$peek_line())?c["$empty?"]()["$!"]():a);)if(n(c["$start_with?"]("//")))b["$<<"](this.$shift());else break;return b},S.$$arity=0);a.def(d,"$terminate",H=function(){this.lineno=
1059
+ b(this.lineno,this.lines.$size());this.lines.$clear();this.look_ahead=0;return h},H.$$arity=0);a.def(d,"$read_lines_until",G=function(b){var c,d,f,g,l,m,r=G.$$p,v=r||h,w=h,t,y=h,A,B,x,z=h,J=h;r&&(G.$$p=null);null==b&&(b=u([],{}));r=[];n(n(c=this.process_lines)?b["$[]"]("skip_processing"):c)&&(this.process_lines=!1,w=!0);if(n(t=b["$[]"]("terminator"))){y=n(c=b["$[]"]("cursor"))?c:this.$cursor();var C=A=!1}else A=b["$[]"]("break_on_blank_lines"),C=b["$[]"]("break_on_list_continuation");var I=b["$[]"]("skip_line_comments");
1060
+ var N=B=h;for(n(b["$[]"]("skip_first_line"))&&this.$shift();n(x=this.$read_line());){if(n(n(t)?x["$=="](t):n(d=n(f=n(g=A)?x["$empty?"]():g)?f:n(g=n(l=n(m=C)?N:m)?x["$=="](q(p,"LIST_CONTINUATION")):l)?(z=["preserve_last_line",!0],e(b,"[]=",a.to_a(z)),z[k(z.length,1)]):g)?d:(f=v!==h)?a.yield1(v,x):v!==h)){if(n(b["$[]"]("read_last_line")))r["$<<"](x);n(b["$[]"]("preserve_last_line"))&&(this.$unshift(x),B=!0);break}n(n(d=n(f=I)?x["$start_with?"]("//"):f)?x["$start_with?"]("///")["$!"]():d)||(r["$<<"](x),
1061
+ N=!0)}n(w)&&(this.process_lines=!0,n(n(c=B)?t["$!"]():c)&&(this.look_ahead=k(this.look_ahead,1)));n(n(c=n(d=t)?t["$!="](x):d)?J=b.$fetch("context",t):c)&&(y["$=="]("at_mark")&&(y=this.$cursor_at_mark()),this.$logger().$warn(this.$message_with_context("unterminated "+J+" block",u(["source_location"],{source_location:y}))),this.unterminated=!0);return r},G.$$arity=-1);a.def(d,"$shift",F=function(){this.lineno=b(this.lineno,1);this.look_ahead["$=="](0)||(this.look_ahead=k(this.look_ahead,1));return this.lines.$pop()},
1062
+ F.$$arity=0);a.def(d,"$unshift",U=function(a){this.lineno=k(this.lineno,1);this.look_ahead=b(this.look_ahead,1);this.lines.$push(a);return h},U.$$arity=1);c("::","RUBY_ENGINE")["$=="]("jruby")?a.def(d,"$unshift_all",da=function(c){var d;this.lineno=k(this.lineno,c.$size());this.look_ahead=b(this.look_ahead,c.$size());n(c["$respond_to?"]("reverse"))?e(this.lines,"push",a.to_a(c.$reverse())):e(c,"reverse_each",[],(d=function(a){var b=d.$$s||this;null==b.lines&&(b.lines=h);null==a&&(a=h);return b.lines.$push(a)},
1063
+ d.$$s=this,d.$$arity=1,d));return h},da.$$arity=1):a.def(d,"$unshift_all",na=function(c){this.lineno=k(this.lineno,c.$size());this.look_ahead=b(this.look_ahead,c.$size());e(this.lines,"push",a.to_a(c.$reverse()));return h},na.$$arity=1);a.def(d,"$cursor",ba=function(){return q(p,"Cursor").$new(this.file,this.dir,this.path,this.lineno)},ba.$$arity=0);a.def(d,"$cursor_at_line",M=function(a){return q(p,"Cursor").$new(this.file,this.dir,this.path,a)},M.$$arity=1);a.def(d,"$cursor_at_mark",O=function(){return n(this.mark)?
1064
+ e(q(p,"Cursor"),"new",a.to_a(this.mark)):this.$cursor()},O.$$arity=0);a.def(d,"$cursor_before_mark",P=function(){if(n(this.mark)){var b=this.mark;var c=a.to_ary(b);var e=null==c[0]?h:c[0];var d=null==c[1]?h:c[1];var f=null==c[2]?h:c[2];c=null==c[3]?h:c[3];b;return q(p,"Cursor").$new(e,d,f,k(c,1))}return q(p,"Cursor").$new(this.file,this.dir,this.path,k(this.lineno,1))},P.$$arity=0);a.def(d,"$cursor_at_prev_line",ea=function(){return q(p,"Cursor").$new(this.file,this.dir,this.path,k(this.lineno,1))},
1065
+ ea.$$arity=0);a.def(d,"$mark",R=function(){return this.mark=[this.file,this.dir,this.path,this.lineno]},R.$$arity=0);a.def(d,"$line_info",ka=function(){return""+this.path+": line "+this.lineno},ka.$$arity=0);a.def(d,"$lines",za=function(){return this.lines.$reverse()},za.$$arity=0);a.def(d,"$string",Z=function(){return this.lines.$reverse().$join(q(p,"LF"))},Z.$$arity=0);a.def(d,"$source",ua=function(){return this.source_lines.$join(q(p,"LF"))},ua.$$arity=0);a.def(d,"$save",Na=function(){var b;this.saved=
1066
+ e(u([],{}),"tap",[],(b=function(d){var f=b.$$s||this,g;null==d&&(d=h);return e(f.$instance_variables(),"each",[],(g=function(b){var f=g.$$s||this,p,l=h;null==b&&(b=h);if(n(n(p=b["$=="]("@saved"))?p:b["$=="]("@source_lines")))return h;b=[b,n(c("::","Array")["$==="](l=f.$instance_variable_get(b)))?l.$drop(0):l];e(d,"[]=",a.to_a(b));return b[k(b.length,1)]},g.$$s=f,g.$$arity=1,g))},b.$$s=this,b.$$arity=1,b));return h},Na.$$arity=0);a.def(d,"$restore_save",Ia=function(){var a;return n(this.saved)?(e(this.saved,
1067
+ "each",[],(a=function(b,c){var e=a.$$s||this;null==b&&(b=h);null==c&&(c=h);return e.$instance_variable_set(b,c)},a.$$s=this,a.$$arity=2,a)),this.saved=h):h},Ia.$$arity=0);a.def(d,"$discard_save",Ea=function(){return this.saved=h},Ea.$$arity=0);a.def(d,"$to_s",Sa=function(){return"#<"+this.$class()+"@"+this.$object_id()+" {path: "+this.path.$inspect()+", line: "+this.lineno+"}>"},Sa.$$arity=0);d.$private();a.def(d,"$prepare_lines",Qa=function(b,e){var d=h;null==e&&(e=u([],{}));try{return n(d=e["$[]"]("normalize"))?
1068
+ n(c("::","Array")["$==="](b))?q(p,"Helpers").$prepare_source_array(b,d["$!="]("chomp")):q(p,"Helpers").$prepare_source_string(b,d["$!="]("chomp")):n(c("::","Array")["$==="](b))?b.$drop(0):n(b)?b.$chomp().$split(q(p,"LF"),-1):[]}catch(Ta){if(a.rescue(Ta,[q(p,"StandardError")]))try{return n((n(c("::","Array")["$==="](b))?b.$join():b.$to_s())["$valid_encoding?"]())?this.$raise():this.$raise(c("::","ArgumentError"),"source is either binary or contains invalid Unicode data")}finally{a.pop_exception()}else throw Ta;
1069
+ }},Qa.$$arity=-2);return(a.def(d,"$process_line",Pa=function(a){n(this.process_lines)&&(this.look_ahead=b(this.look_ahead,1));return a},Pa.$$arity=1),h)&&"process_line"})(d[0],null,d);(function(d,$super,p){d=t(d,$super,"PreprocessorReader");var m=[d].concat(p),r,v,A,B,z,C,J,N,D,L,E,S,G,H,I,F,U,ba,M,O;d.$$prototype.include_stack=d.$$prototype.lines=d.$$prototype.file=d.$$prototype.dir=d.$$prototype.path=d.$$prototype.lineno=d.$$prototype.maxdepth=d.$$prototype.process_lines=d.$$prototype.includes=
1070
+ d.$$prototype.document=d.$$prototype.unescape_next_line=d.$$prototype.include_processor_extensions=d.$$prototype.look_ahead=d.$$prototype.skipping=d.$$prototype.conditional_stack=h;d.$attr_reader("include_stack");a.def(d,"$initialize",r=function(b,c,d,f){var k,p;r.$$p&&(r.$$p=null);null==c&&(c=h);null==d&&(d=h);null==f&&(f=u([],{}));this.document=b;e(this,a.find_super_dispatcher(this,"initialize",r,!1),[c,d,f],null);n(g(p=(n(k=b.$attributes()["$[]"]("max-include-depth"))?k:64).$to_i(),0))?this.maxdepth=
1071
+ u(["abs","curr","rel"],{abs:p,curr:p,rel:p}):this.maxdepth=h;this.include_stack=[];this.includes=b.$catalog()["$[]"]("includes");this.skipping=!1;this.conditional_stack=[];return this.include_processor_extensions=h},r.$$arity=-2);a.def(d,"$has_more_lines?",v=function(){return n(this.$peek_line())?!0:!1},v.$$arity=0);a.def(d,"$empty?",A=function(){return n(this.$peek_line())?!1:!0},A.$$arity=0);a.alias(d,"eof?","empty?");a.def(d,"$peek_line",B=function(b){var c=B.$$p,d;c&&(B.$$p=null);var f=0;var g=
1072
+ arguments.length;for(d=Array(g);f<g;f++)d[f]=arguments[f];null==b&&(b=!1);if(n(c=e(this,a.find_super_dispatcher(this,"peek_line",B,!1),d,c)))return c;if(n(this.include_stack["$empty?"]()))return h;this.$pop_include();return this.$peek_line(b)},B.$$arity=-1);a.def(d,"$push_include",z=function(d,f,p,l,r){var v,t=h,y=h,A=h;null==f&&(f=h);null==p&&(p=h);null==l&&(l=1);null==r&&(r=u([],{}));this.include_stack["$<<"]([this.lines,this.file,this.dir,this.path,this.lineno,this.maxdepth,this.process_lines]);
1073
+ if(n(this.file=f)){if(n(c("::","String")["$==="](f)))this.dir=c("::","File").$dirname(f);else if(n(q(m,"RUBY_ENGINE_OPAL")))this.dir=c("::","URI").$parse(c("::","File").$dirname(f=f.$to_s()));else{var B=[(t=c("::","File").$dirname(f.$path()))["$=="]("/")?"":t];e(this.dir=f.$dup(),"path=",a.to_a(B));B[k(B.length,1)];f=f.$to_s()}this.path=p=n(v=p)?v:c("::","File").$basename(f);n(this.process_lines=e(f,"end_with?",a.to_a(q(m,"ASCIIDOC_EXTENSIONS").$keys())))&&(B=[p.$slice(0,p.$rindex(".")),n(r["$[]"]("partial-option"))?
1074
+ h:!0],e(this.includes,"[]=",a.to_a(B)),B[k(B.length,1)])}else this.dir=".",this.process_lines=!0,n(this.path=p)?(B=[q(m,"Helpers").$rootname(p),n(r["$[]"]("partial-option"))?h:!0],e(this.includes,"[]=",a.to_a(B)),B[k(B.length,1)]):this.path="<stdin>";this.lineno=l;n(n(v=this.maxdepth)?r["$key?"]("depth"):v)&&(n(g(f=r["$[]"]("depth").$to_i(),0))?(n(g(p=b(this.include_stack.$size(),f),y=this.maxdepth["$[]"]("abs")))&&(p=f=y),this.maxdepth=u(["abs","curr","rel"],{abs:y,curr:p,rel:f})):this.maxdepth=
1075
+ u(["abs","curr","rel"],{abs:this.maxdepth["$[]"]("abs"),curr:this.include_stack.$size(),rel:0}));if(n((this.lines=this.$prepare_lines(d,u(["normalize","condense","indent"],{normalize:n(v=this.process_lines)?v:"chomp",condense:!1,indent:r["$[]"]("indent")})))["$empty?"]()))this.$pop_include();else{if(n(r["$key?"]("leveloffset")))this.lines=b(b([n(A=this.document.$attr("leveloffset"))?":leveloffset: "+A:":leveloffset!:",""],this.lines.$reverse()),["",":leveloffset: "+r["$[]"]("leveloffset")]),this.lineno=
1076
+ k(this.lineno,2);else this.lines["$reverse!"]();this.look_ahead=0}return this},z.$$arity=-2);a.def(d,"$include_depth",C=function(){return this.include_stack.$size()},C.$$arity=0);a.def(d,"$exceeds_max_depth?",J=function(){var a,b;return n(a=n(b=this.maxdepth)?l(this.include_stack.$size(),this.maxdepth["$[]"]("curr")):b)?this.maxdepth["$[]"]("rel"):a},J.$$arity=0);a.alias(d,"exceeded_max_depth?","exceeds_max_depth?");a.def(d,"$shift",N=function(){var b=N.$$p,c=h,d;b&&(N.$$p=null);var f=0;var g=arguments.length;
1077
+ for(d=Array(g);f<g;f++)d[f]=arguments[f];return n(this.unescape_next_line)?(this.unescape_next_line=!1,(c=e(this,a.find_super_dispatcher(this,"shift",N,!1),d,b)).$slice(1,c.$length())):e(this,a.find_super_dispatcher(this,"shift",N,!1),d,b)},N.$$arity=0);a.def(d,"$include_processors?",D=function(){var a;return n(this.include_processor_extensions["$nil?"]())?n(n(a=this.document["$extensions?"]())?this.document.$extensions()["$include_processors?"]():a)?(this.include_processor_extensions=this.document.$extensions().$include_processors())["$!"]()["$!"]():
1078
+ this.include_processor_extensions=!1:this.include_processor_extensions["$!="](!1)},D.$$arity=0);a.def(d,"$create_include_cursor",L=function(a,b,e){var d=h;n(c("::","String")["$==="](a))?d=c("::","File").$dirname(a):n(q(m,"RUBY_ENGINE_OPAL"))?d=c("::","File").$dirname(a=a.$to_s()):(d=(d=c("::","File").$dirname(a.$path()))["$=="]("")?"/":d,a=a.$to_s());return q(m,"Cursor").$new(a,d,b,e)},L.$$arity=3);a.def(d,"$to_s",E=function(){var a;return"#<"+this.$class()+"@"+this.$object_id()+" {path: "+this.path.$inspect()+
1079
+ ", line: "+this.lineno+", include depth: "+this.include_stack.$size()+", include stack: ["+e(this.include_stack,"map",[],(a=function(a){null==a&&(a=h);return a.$to_s()},a.$$s=this,a.$$arity=1,a)).$join(", ")+"]}>"},E.$$arity=0);d.$private();a.def(d,"$prepare_lines",S=function(b,c){var d,f,g=S.$$p,p=h,l=h,r;g&&(S.$$p=null);var v=0;var t=arguments.length;for(r=Array(t);v<t;v++)r[v]=arguments[v];null==c&&(c=u([],{}));g=e(this,a.find_super_dispatcher(this,"prepare_lines",S,!1),r,g);n(n(d=n(f=this.document)?
1080
+ this.document.$attributes()["$[]"]("skip-front-matter"):f)?p=this["$skip_front_matter!"](g):d)&&(d=["front-matter",p.$join(q(m,"LF"))],e(this.document.$attributes(),"[]=",a.to_a(d)),d[k(d.length,1)]);if(n(c.$fetch("condense",!0)))for(;n(n(f=l=g["$[]"](-1))?l["$empty?"]():f);)g.$pop();if(n(c["$[]"]("indent")))q(m,"Parser")["$adjust_indentation!"](g,c["$[]"]("indent").$to_i(),this.document.$attr("tabsize").$to_i());return g},S.$$arity=-2);a.def(d,"$process_line",G=function(a){var c,e;if(!n(this.process_lines))return a;
1081
+ if(n(a["$empty?"]()))return this.look_ahead=b(this.look_ahead,1),a;if(n(n(c=n(e=a["$end_with?"]("]"))?a["$start_with?"]("[")["$!"]():e)?a["$include?"]("::"):c)){if(n(n(c=a["$include?"]("if"))?q(m,"ConditionalDirectiveRx")["$=~"](a):c)){if(((c=f["~"])===h?h:c["$[]"](1))["$=="]("\\"))return this.unescape_next_line=!0,this.look_ahead=b(this.look_ahead,1),a.$slice(1,a.$length());if(n(this.$preprocess_conditional_directive((c=f["~"])===h?h:c["$[]"](2),(c=f["~"])===h?h:c["$[]"](3),(c=f["~"])===h?h:c["$[]"](4),
1082
+ (c=f["~"])===h?h:c["$[]"](5))))return this.$shift(),h;this.look_ahead=b(this.look_ahead,1);return a}if(n(this.skipping))return this.$shift(),h;if(n(n(c=a["$start_with?"]("inc","\\inc"))?q(m,"IncludeDirectiveRx")["$=~"](a):c)){if(((c=f["~"])===h?h:c["$[]"](1))["$=="]("\\"))return this.unescape_next_line=!0,this.look_ahead=b(this.look_ahead,1),a.$slice(1,a.$length());if(n(this.$preprocess_include_directive((c=f["~"])===h?h:c["$[]"](2),(c=f["~"])===h?h:c["$[]"](3))))return h;this.look_ahead=b(this.look_ahead,
1083
+ 1);return a}this.look_ahead=b(this.look_ahead,1);return a}if(n(this.skipping))return this.$shift(),h;this.look_ahead=b(this.look_ahead,1);return a},G.$$arity=1);a.def(d,"$preprocess_conditional_directive",H=function(b,c,d,g){var p,l,r,v,t,y=h,A=h,B=h,x=h,z=x=y=h;n(y=c["$empty?"]())||(c=c.$downcase());if(b["$=="]("endif"))return n(g)?this.$logger().$error(this.$message_with_context("malformed preprocessor directive - text not permitted: endif::"+c+"["+g+"]",u(["source_location"],{source_location:this.$cursor()}))):
1084
+ n(this.conditional_stack["$empty?"]())?this.$logger().$error(this.$message_with_context("unmatched preprocessor directive: endif::"+c+"[]",u(["source_location"],{source_location:this.$cursor()}))):n(n(p=y)?p:c["$=="]((A=this.conditional_stack["$[]"](-1))["$[]"]("target")))?(this.conditional_stack.$pop(),this.skipping=n(this.conditional_stack["$empty?"]())?!1:this.conditional_stack["$[]"](-1)["$[]"]("skipping")):this.$logger().$error(this.$message_with_context("mismatched preprocessor directive: endif::"+
1085
+ c+"[], expected endif::"+A["$[]"]("target")+"[]",u(["source_location"],{source_location:this.$cursor()}))),!0;if(n(this.skipping))B=!1;else if(x=b,"ifdef"["$==="](x)){if(n(y))return this.$logger().$error(this.$message_with_context("malformed preprocessor directive - missing target: ifdef::["+g+"]",u(["source_location"],{source_location:this.$cursor()}))),!0;x=d;B=","["$==="](x)?e(c.$split(",",-1),"none?",[],(l=function(a){var b=l.$$s||this;null==b.document&&(b.document=h);null==a&&(a=h);return b.document.$attributes()["$key?"](a)},
1086
+ l.$$s=this,l.$$arity=1,l)):"+"["$==="](x)?e(c.$split("+",-1),"any?",[],(r=function(a){var b=r.$$s||this;null==b.document&&(b.document=h);null==a&&(a=h);return b.document.$attributes()["$key?"](a)["$!"]()},r.$$s=this,r.$$arity=1,r)):this.document.$attributes()["$key?"](c)["$!"]()}else if("ifndef"["$==="](x)){if(n(y))return this.$logger().$error(this.$message_with_context("malformed preprocessor directive - missing target: ifndef::["+g+"]",u(["source_location"],{source_location:this.$cursor()}))),!0;
1087
+ x=d;B=","["$==="](x)?e(c.$split(",",-1),"any?",[],(v=function(a){var b=v.$$s||this;null==b.document&&(b.document=h);null==a&&(a=h);return b.document.$attributes()["$key?"](a)},v.$$s=this,v.$$arity=1,v)):"+"["$==="](x)?e(c.$split("+",-1),"all?",[],(t=function(a){var b=t.$$s||this;null==b.document&&(b.document=h);null==a&&(a=h);return b.document.$attributes()["$key?"](a)},t.$$s=this,t.$$arity=1,t)):this.document.$attributes()["$key?"](c)}else if("ifeval"["$==="](x))if(n(y))if(n(n(p=g)?q(m,"EvalExpressionRx")["$=~"](g.$strip()):
1088
+ p)){y=(p=f["~"])===h?h:p["$[]"](1);x=(p=f["~"])===h?h:p["$[]"](2);z=(p=f["~"])===h?h:p["$[]"](3);a:{try{B=n(this.$resolve_expr_val(y).$send(x,this.$resolve_expr_val(z)))?!1:!0;break a}catch(Ea){if(a.rescue(Ea,[q(m,"StandardError")]))try{B=!0;break a}finally{a.pop_exception()}else throw Ea;}B=void 0}}else return this.$logger().$error(this.$message_with_context("malformed preprocessor directive - "+(n(g)?"invalid expression":"missing expression")+": ifeval::["+g+"]",u(["source_location"],{source_location:this.$cursor()}))),
1089
+ !0;else return this.$logger().$error(this.$message_with_context("malformed preprocessor directive - target not permitted: ifeval::"+c+"["+g+"]",u(["source_location"],{source_location:this.$cursor()}))),!0;n(n(p=b["$=="]("ifeval"))?p:g["$!"]())?(n(B)&&(this.skipping=!0),this.conditional_stack["$<<"](u(["target","skip","skipping"],{target:c,skip:B,skipping:this.skipping}))):n(n(p=this.skipping)?p:B)||(this.$replace_next_line(g.$rstrip()),this.$unshift(""),n(g["$start_with?"]("include::"))&&(this.look_ahead=
1090
+ k(this.look_ahead,1)));return!0},H.$$arity=4);a.def(d,"$preprocess_include_directive",I=function(d,p){var r,v,t,y,A,B,z,C,J,I,N,D=this,L=h,E=h,S=h,ma=h,V=h,G=h,H=h,F=h,U=h,va=h,ca=h,la=U=h,ba=U=h,w=h,Q=h,ra=h,fa=h,K=h,aa=h,W=h,X=h,M=h,Y=h,ta=h,da=h,wa=h;L=D.document;if(n(n(r=(E=d)["$include?"](q(m,"ATTR_REF_HEAD")))?(E=L.$sub_attributes(d,u(["attribute_missing"],{attribute_missing:(S=n(v=L.$attributes()["$[]"]("attribute-missing"))?v:q(m,"Compliance").$attribute_missing())["$=="]("warn")?"drop-line":
1091
+ S})))["$empty?"]():r)){if(n((r=S["$=="]("drop-line"))?L.$sub_attributes(b(d," "),u(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]():S["$=="]("drop-line")))return e(D.$logger(),"info",[],(t=function(){var a=t.$$s||this;return a.$message_with_context("include dropped due to missing attribute: include::"+d+"["+p+"]",u(["source_location"],{source_location:a.$cursor()}))},t.$$s=D,t.$$arity=0,t)),D.$shift(),!0;if(n(L.$parse_attributes(p,
1092
+ [],u(["sub_input"],{sub_input:!0}))["$[]"]("optional-option")))return e(D.$logger(),"info",[],(y=function(){var a=y.$$s||this;return a.$message_with_context("optional include dropped "+(n(S["$=="]("warn")?L.$sub_attributes(b(d," "),u(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]():S["$=="]("warn"))?"due to missing attribute":"because resolved target is blank")+": include::"+d+"["+p+"]",u(["source_location"],{source_location:a.$cursor()}))},
1093
+ y.$$s=D,y.$$arity=0,y)),D.$shift(),!0;D.$logger().$warn(D.$message_with_context("include dropped "+(n((r=S["$=="]("warn"))?L.$sub_attributes(b(d," "),u(["attribute_missing","drop_line_severity"],{attribute_missing:"drop-line",drop_line_severity:"ignore"}))["$empty?"]():S["$=="]("warn"))?"due to missing attribute":"because resolved target is blank")+": include::"+d+"["+p+"]",u(["source_location"],{source_location:D.$cursor()})));return D.$replace_next_line("Unresolved directive in "+D.path+" - include::"+
1094
+ d+"["+p+"]")}if(n(n(r=D["$include_processors?"]())?ma=e(D.include_processor_extensions,"find",[],(A=function(a){null==a&&(a=h);return a.$instance()["$handles?"](E)},A.$$s=D,A.$$arity=1,A)):r))return D.$shift(),ma.$process_method()["$[]"](L,D,E,L.$parse_attributes(p,[],u(["sub_input"],{sub_input:!0}))),!0;if(n(l(L.$safe(),c(q(m,"SafeMode"),"SECURE"))))return D.$replace_next_line("link:"+E+"[]");if(n(D.maxdepth)){if(n(l(D.include_stack.$size(),D.maxdepth["$[]"]("curr"))))return D.$logger().$error(D.$message_with_context("maximum include depth of "+
1095
+ D.maxdepth["$[]"]("rel")+" exceeded",u(["source_location"],{source_location:D.$cursor()}))),h;V=L.$parse_attributes(p,[],u(["sub_input"],{sub_input:!0}));v=D.$resolve_include_path(E,p,V);r=a.to_ary(v);G=null==r[0]?h:r[0];H=null==r[1]?h:r[1];F=null==r[2]?h:r[2];v;U=H;if("file"["$==="](U))va=c("::","File").$method("open"),ca=q(m,"FILE_READ_MODE");else if("uri"["$==="](U))va=c("::","OpenURI").$method("open_uri"),ca=q(m,"URI_READ_MODE");else return G;if(!n(q(m,"RUBY_ENGINE_OPAL"))){if(n(r=U=V["$[]"]("encoding")))a:{try{var qa=
1096
+ c("::","Encoding").$find(U);break a}catch(Ra){if(a.rescue(Ra,[q(m,"StandardError")]))try{qa=h;break a}finally{a.pop_exception()}else throw Ra;}qa=void 0}else qa=r;n(qa)&&(la=[1,U],e(U=ca.$split(":"),"[]=",a.to_a(la)),la[k(la.length,1)],ca=U.$join(":"))}ba=w=h;n(p)&&(n(V["$key?"]("lines"))?(ba=[],e(D.$split_delimited_value(V["$[]"]("lines")),"each",[],(B=function(e){null==e&&(e=h);if(n(e["$include?"](".."))){var d=e.$partition("..");var f=a.to_ary(d);e=null==f[0]?h:f[0];var g=null==f[2]?h:f[2];d;d=
1097
+ ba;n(f=g["$empty?"]())||(f=g=g.$to_i(),f="number"===typeof f?0>f:f["$<"](0));e=n(f)?[e.$to_i(),c(c("::","Float"),"INFINITY")]:a.Range.$new(e.$to_i(),g,!1).$to_a();return ba=b(d,e)}return ba["$<<"](e.$to_i())},B.$$s=D,B.$$arity=1,B)),ba=n(ba["$empty?"]())?h:ba.$sort().$uniq()):n(V["$key?"]("tag"))?n(n(r=(Q=V["$[]"]("tag"))["$empty?"]())?r:Q["$=="]("!"))||(w=n(Q["$start_with?"]("!"))?x(Q.$slice(1,Q.$length()),!1):x(Q,!0)):n(V["$key?"]("tags"))&&(w=u([],{}),e(D.$split_delimited_value(V["$[]"]("tags")),
1098
+ "each",[],(z=function(b){var c;null==b&&(b=h);if(n(n(c=b["$empty?"]())?c:b["$=="]("!")))return h;la=n(b["$start_with?"]("!"))?[b.$slice(1,b.$length()),!1]:[b,!0];e(w,"[]=",a.to_a(la));return la[k(la.length,1)]},z.$$s=D,z.$$arity=1,z)),n(w["$empty?"]())&&(w=h)));if(n(ba)){r=[[],h,0];ra=r[0];fa=r[1];K=r[2];r;try{(function(){var d=a.new_brk();try{return e(va,"call",[G,ca],(C=function(d){var f=C.$$s||this,g,k=h;null==d&&(d=h);k=h;return function(){var w=a.new_brk();try{return e(d,"each_line",[],(g=function(e){var d,
1099
+ f,g=h;null==e&&(e=h);K=b(K,1);if(n(n(d=k)?d:n(f=c("::","Float")["$==="](g=ba["$[]"](0)))?k=g["$infinite?"]():f))return fa=n(d=fa)?d:K,ra["$<<"](e);g["$=="](K)&&(fa=n(d=fa)?d:K,ra["$<<"](e),ba.$shift());if(n(ba["$empty?"]()))a.brk(h,w);else return h},g.$$s=f,g.$$brk=w,g.$$arity=1,g))}catch(eb){if(eb===w)return eb.$v;throw eb;}}()},C.$$s=D,C.$$brk=d,C.$$arity=1,C))}catch(cb){if(cb===d)return cb.$v;throw cb;}})()}catch(Ra){if(a.rescue(Ra,[q(m,"StandardError")]))try{return D.$logger().$error(D.$message_with_context("include "+
1100
+ H+" not readable: "+G,u(["source_location"],{source_location:D.$cursor()}))),D.$replace_next_line("Unresolved directive in "+D.path+" - include::"+E+"["+p+"]")}finally{a.pop_exception()}else throw Ra;}D.$shift();n(fa)&&(la=["partial-option",""],e(V,"[]=",a.to_a(la)),la[k(la.length,1)],D.$push_include(ra,G,F,fa,V))}else if(n(w)){r=[[],h,0,[],c("::","Set").$new(),h];ra=r[0];fa=r[1];K=r[2];aa=r[3];W=r[4];X=r[5];r;n(w["$key?"]("**"))?(M=Y=w.$delete("**"),n(w["$key?"]("*"))?ta=w.$delete("*"):n(n(r=M["$!"]())?
1101
+ w.$values().$first()["$=="](!1):r)&&(ta=!0)):n(w["$key?"]("*"))?w.$keys().$first()["$=="]("*")?M=Y=(ta=w.$delete("*"))["$!"]():(M=Y=!1,ta=w.$delete("*")):M=Y=w["$value?"](!0)["$!"]();try{e(va,"call",[G,ca],(J=function(c){var d=J.$$s||this,g,k=h,p=h;null==c&&(c=h);var l=["::","[]"];k=l[0];p=l[1];l;return e(c,"each_line",[],(g=function(c){var d=g.$$s||this,l,r,v,t=h,y=h,A=h;null==c&&(c=h);K=b(K,1);return n(n(l=n(r=c["$include?"](k))?c["$include?"](p):r)?q(m,"TagDirectiveRx")["$=~"](c):l)?(t=(l=f["~"])===
1102
+ h?h:l["$[]"](2),n((l=f["~"])===h?h:l["$[]"](1))?t["$=="](X)?(aa.$pop(),r=n(aa["$empty?"]())?[h,Y]:aa["$[]"](-1),l=a.to_ary(r),X=null==l[0]?h:l[0],M=null==l[1]?h:l[1],r):n(w["$key?"](t))?(y=d.$create_include_cursor(G,E,K),n(A=e(aa,"rindex",[],(v=function(a){null==a&&(a=h);return a["$=="](t)},v.$$s=d,v.$$arity=1,v.$$has_trailing_comma_in_args=!0,v)))?(A["$=="](0)?aa.$shift():aa.$delete_at(A),d.$logger().$warn(d.$message_with_context("mismatched end tag (expected '"+X+"' but found '"+t+"') at line "+
1103
+ K+" of include "+H+": "+G,u(["source_location","include_location"],{source_location:d.$cursor(),include_location:y})))):d.$logger().$warn(d.$message_with_context("unexpected end tag '"+t+"' at line "+K+" of include "+H+": "+G,u(["source_location","include_location"],{source_location:d.$cursor(),include_location:y})))):h:n(w["$key?"](t))?(W["$<<"](t),aa["$<<"]([X=t,M=w["$[]"](t),K])):n(ta["$nil?"]()["$!"]())?(M=n(n(l=X)?M["$!"]():l)?!1:ta,aa["$<<"]([X=t,M,K])):h):n(M)?(fa=n(l=fa)?l:K,ra["$<<"](c)):
1104
+ h},g.$$s=d,g.$$arity=1,g))},J.$$s=D,J.$$arity=1,J))}catch(Ra){if(a.rescue(Ra,[q(m,"StandardError")]))try{return D.$logger().$error(D.$message_with_context("include "+H+" not readable: "+G,u(["source_location"],{source_location:D.$cursor()}))),D.$replace_next_line("Unresolved directive in "+D.path+" - include::"+E+"["+p+"]")}finally{a.pop_exception()}else throw Ra;}n(aa["$empty?"]())||e(aa,"each",[],(I=function(a,b,c){b=I.$$s||this;null==a&&(a=h);null==c&&(c=h);return b.$logger().$warn(b.$message_with_context("detected unclosed tag '"+
1105
+ a+"' starting at line "+c+" of include "+H+": "+G,u(["source_location","include_location"],{source_location:b.$cursor(),include_location:b.$create_include_cursor(G,E,c)})))},I.$$s=D,I.$$arity=3,I));n((da=k(w.$keys(),W.$to_a()))["$empty?"]())||D.$logger().$warn(D.$message_with_context("tag"+(n(g(da.$size(),1))?"s":"")+" '"+da.$join(", ")+"' not found in include "+H+": "+G,u(["source_location"],{source_location:D.$cursor()})));D.$shift();n(fa)&&(n(n(r=n(v=Y)?ta["$!="](!1):v)?w["$empty?"]():r)||(la=
1106
+ ["partial-option",""],e(V,"[]=",a.to_a(la)),la[k(la.length,1)]),D.$push_include(ra,G,F,fa,V))}else try{wa=e(va,"call",[G,ca],(N=function(a){null==a&&(a=h);return a.$read()},N.$$s=D,N.$$arity=1,N)),D.$shift(),D.$push_include(wa,G,F,1,V)}catch(Ra){if(a.rescue(Ra,[q(m,"StandardError")]))try{return D.$logger().$error(D.$message_with_context("include "+H+" not readable: "+G,u(["source_location"],{source_location:D.$cursor()}))),D.$replace_next_line("Unresolved directive in "+D.path+" - include::"+E+"["+
1107
+ p+"]")}finally{a.pop_exception()}else throw Ra;}return!0}return h},I.$$arity=2);a.def(d,"$resolve_include_path",F=function(a,b,d){var f,g,k,p=h,l=h;p=h;p=this.document;if(n(n(f=q(m,"Helpers")["$uriish?"](a))?f:n(c("::","String")["$==="](this.dir))?h:a=""+this.dir+"/"+a)){if(!n(p["$attr?"]("allow-uri-read")))return this.$replace_next_line("link:"+a+"["+b+"]");n(p["$attr?"]("cache-uri"))?n((g=c("::","OpenURI","skip_raise"))&&(f=c(g,"Cache","skip_raise"))?"constant":h)||q(m,"Helpers").$require_library("open-uri/cached",
1108
+ "open-uri-cached"):n(q(m,"RUBY_ENGINE_OPAL")["$!"]())&&c("::","OpenURI");return[c("::","URI").$parse(a),"uri",a]}l=p.$normalize_system_path(a,this.dir,h,u(["target_name"],{target_name:"include file"}));if(!n(c("::","File")["$file?"](l))){if(n(d["$[]"]("optional-option")))return e(this.$logger(),"info",[],(k=function(){var a=k.$$s||this;return a.$message_with_context("optional include dropped because include file not found: "+l,u(["source_location"],{source_location:a.$cursor()}))},k.$$s=this,k.$$arity=
1109
+ 0,k)),this.$shift(),!0;this.$logger().$error(this.$message_with_context("include file not found: "+l,u(["source_location"],{source_location:this.$cursor()})));return this.$replace_next_line("Unresolved directive in "+this.path+" - include::"+a+"["+b+"]")}p=p.$path_resolver().$relative_path(l,p.$base_dir());return[l,"file",p]},F.$$arity=3);a.def(d,"$pop_include",U=function(){if(!n(this.include_stack["$empty?"]())){var b=this.include_stack.$pop();var c=a.to_ary(b);this.lines=null==c[0]?h:c[0];this.file=
1110
+ null==c[1]?h:c[1];this.dir=null==c[2]?h:c[2];this.path=null==c[3]?h:c[3];this.lineno=null==c[4]?h:c[4];this.maxdepth=null==c[5]?h:c[5];this.process_lines=null==c[6]?h:c[6];b;this.look_ahead=0}return h},U.$$arity=0);a.def(d,"$split_delimited_value",ba=function(a){return n(a["$include?"](","))?a.$split(","):a.$split(";")},ba.$$arity=1);a.def(d,"$skip_front_matter!",M=function(c,d){var f;null==d&&(d=!0);var g=h;if(c["$[]"](0)["$=="]("---")){var k=c.$drop(0);c.$shift();g=[];n(d)&&(this.lineno=b(this.lineno,
1111
+ 1));for(;n(n(f=c["$empty?"]()["$!"]())?c["$[]"](0)["$!="]("---"):f);)g["$<<"](c.$shift()),n(d)&&(this.lineno=b(this.lineno,1));n(c["$empty?"]())?(e(c,"unshift",a.to_a(k)),n(d)&&(this.lineno=0),g=h):(c.$shift(),n(d)&&(this.lineno=b(this.lineno,1)))}return g},M.$$arity=-2);return(a.def(d,"$resolve_expr_val",O=function(a){var b,c;n(n(b=n(c=a["$start_with?"]('"'))?a["$end_with?"]('"'):c)?b:n(c=a["$start_with?"]("'"))?a["$end_with?"]("'"):c)?(b=!0,a=a.$slice(1,k(a.$length(),1))):b=!1;n(a["$include?"](q(m,
1112
+ "ATTR_REF_HEAD")))&&(a=this.document.$sub_attributes(a,u(["attribute_missing"],{attribute_missing:"drop"})));return n(b)?a:n(a["$empty?"]())?h:a["$=="]("true")?!0:a["$=="]("false")?!1:n(a.$rstrip()["$empty?"]())?" ":n(a["$include?"]("."))?a.$to_f():a.$to_i()},O.$$arity=1),h)&&"resolve_expr_val"})(d[0],q(d,"Reader"),d)}(m[0],m)};Opal.modules["asciidoctor/section"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}var g=[],k=a.nil,l=a.const_get_relative,m=a.module,
1113
+ h=a.klass,c=a.hash2,q=a.send,p=a.truthy;a.add_stubs("$attr_accessor $attr_reader $=== $+ $level $special $generate_id $title $== $> $sectnum $reftext $! $empty? $sub_placeholder $sub_quotes $compat_mode $[] $attributes $context $assign_numeral $class $object_id $inspect $size $length $chr $[]= $- $gsub $downcase $delete $tr_s $end_with? $chop $start_with? $slice $key? $catalog $unique_id_start_index".split(" "));return function(d,g){d=[m(d,"Asciidoctor")].concat(g);(function(d,$super,f){d=h(d,$super,
1114
+ "Section");var g=[d].concat(f),n,m,r,v,t,u,A;d.$$prototype.document=d.$$prototype.level=d.$$prototype.parent=d.$$prototype.numeral=d.$$prototype.numbered=d.$$prototype.sectname=d.$$prototype.title=d.$$prototype.blocks=k;d.$attr_accessor("index");d.$attr_accessor("sectname");d.$attr_accessor("special");d.$attr_accessor("numbered");d.$attr_reader("caption");a.def(d,"$initialize",n=function(d,f,h,m){var r,v;n.$$p&&(n.$$p=null);null==d&&(d=k);null==f&&(f=k);null==h&&(h=!1);null==m&&(m=c([],{}));q(this,
1115
+ a.find_super_dispatcher(this,"initialize",n,!1),[d,"section",m],null);p(l(g,"Section")["$==="](d))?(r=[p(v=f)?v:b(d.$level(),1),d.$special()],this.level=r[0],this.special=r[1]):(r=[p(v=f)?v:1,!1],this.level=r[0],this.special=r[1]);r;this.numbered=h;return this.index=0},n.$$arity=-1);a.alias(d,"name","title");a.def(d,"$generate_id",m=function(){return l(g,"Section").$generate_id(this.$title(),this.document)},m.$$arity=0);a.def(d,"$sectnum",r=function(a,b){var c;null==a&&(a=".");null==b&&(b=k);b=p(c=
1116
+ b)?c:b["$=="](!1)?"":a;var d=this.level;d="number"===typeof d?1<d:d["$>"](1);return p(p(c=d)?l(g,"Section")["$==="](this.parent):c)?""+this.parent.$sectnum(a,a)+this.numeral+b:""+this.numeral+b},r.$$arity=-1);a.def(d,"$xreftext",v=function(a){var b,c=k,d=k,f=k;null==a&&(a=k);p(p(b=c=this.$reftext())?c["$empty?"]()["$!"]():b)?b=c:p(a)?(p(this.numbered)?"full"["$==="](a)?(a=p(p(b=(d=this.sectname)["$=="]("chapter"))?b:d["$=="]("appendix"))?this.$sub_placeholder(this.$sub_quotes("_%s_"),this.$title()):
1117
+ this.$sub_placeholder(this.$sub_quotes(p(this.document.$compat_mode())?"``%s''":'"`%s`"'),this.$title()),a=p(f=this.document.$attributes()["$[]"](""+d+"-refsig"))?""+f+" "+this.$sectnum(".",",")+" "+a:""+this.$sectnum(".",",")+" "+a):a="short"["$==="](a)?p(f=this.document.$attributes()["$[]"](""+this.sectname+"-refsig"))?""+f+" "+this.$sectnum(".",""):this.$sectnum(".",""):p(p(b=(d=this.sectname)["$=="]("chapter"))?b:d["$=="]("appendix"))?this.$sub_placeholder(this.$sub_quotes("_%s_"),this.$title()):
1118
+ this.$title():a=p(p(b=(d=this.sectname)["$=="]("chapter"))?b:d["$=="]("appendix"))?this.$sub_placeholder(this.$sub_quotes("_%s_"),this.$title()):this.$title(),b=a):b=this.$title();return b},v.$$arity=-1);a.def(d,"$<<",t=function(b){var c=t.$$p,d;c&&(t.$$p=null);var f=0;var g=arguments.length;for(d=Array(g);f<g;f++)d[f]=arguments[f];b.$context()["$=="]("section")&&this.$assign_numeral(b);return q(this,a.find_super_dispatcher(this,"<<",t,!1),d,c)},t.$$arity=1);a.def(d,"$to_s",u=function(){var b=u.$$p,
1119
+ c;b&&(u.$$p=null);var d=0;var f=arguments.length;for(c=Array(f);d<f;d++)c[d]=arguments[d];return p(this.title)?(b=p(this.numbered)?""+this.$sectnum()+" "+this.title:this.title,"#<"+this.$class()+"@"+this.$object_id()+" {level: "+this.level+", title: "+b.$inspect()+", blocks: "+this.blocks.$size()+"}>"):q(this,a.find_super_dispatcher(this,"to_s",u,!1),c,b)},u.$$arity=0);return(a.defs(d,"$generate_id",A=function(c,d){var f,h,n,m=k,r=h=k;var v=d.$attributes();var t=p(f=v["$[]"]("idprefix"))?f:"_";p(n=
1120
+ v["$[]"]("idseparator"))?(p(f=n.$length()["$=="](1))?v=f:p(h=(m=n["$empty?"]())["$!"]())?(h=["idseparator",n.$chr()],q(v,"[]=",a.to_a(h)),n=h,v=h.length,v="number"===typeof v?v-1:v["$-"](1),v=n=n[v]):v=h,p(v)&&(r=p(p(f=n["$=="]("-"))?f:n["$=="]("."))?" .-":" "+n+".-")):(f=["_"," _.-"],n=f[0],r=f[1],f);c=""+t+c.$downcase().$gsub(l(g,"InvalidSectionIdCharsRx"),"");p(m)?c=c.$delete(" "):(c=c.$tr_s(r,n),p(c["$end_with?"](n))&&(c=c.$chop()),p(p(f=t["$empty?"]())?c["$start_with?"](n):f)&&(c=c.$slice(1,
1121
+ c.$length())));if(p(d.$catalog()["$[]"]("refs")["$key?"](c))){d=d.$catalog()["$[]"]("refs");for(f=l(g,"Compliance").$unique_id_start_index();p(d["$[]"](t=""+c+n+f));)f=b(f,1);return t}return c},A.$$arity=2),k)&&"generate_id"})(d[0],l(d,"AbstractBlock"),d)}(g[0],g)};Opal.modules["asciidoctor/stylesheets"]=function(a){var b=[],g=a.nil,k=a.const_get_qualified,l=a.const_get_relative,m=a.module,h=a.klass,c=a.truthy,q=a.hash2;a.add_stubs("$join $new $rstrip $read $primary_stylesheet_data $write $primary_stylesheet_name $stylesheet_basename $for $read_stylesheet $coderay_stylesheet_data $coderay_stylesheet_name $pygments_stylesheet_data $pygments_stylesheet_name".split(" "));
1122
+ return function(b,d){b=[m(b,"Asciidoctor")].concat(d);(function(b,$super,e){b=h(b,$super,"Stylesheets");var d=[b].concat(e),p,m,r,v,t,u,y,A,x,B,z,C,D;b.$$prototype.primary_stylesheet_data=g;a.const_set(d[0],"DEFAULT_STYLESHEET_NAME","asciidoctor.css");a.const_set(d[0],"STYLESHEETS_DIR",k("::","File").$join(l(d,"DATA_DIR"),"stylesheets"));b.__instance__=b.$new();a.defs(b,"$instance",p=function(){null==this.__instance__&&(this.__instance__=g);return this.__instance__},p.$$arity=0);a.def(b,"$primary_stylesheet_name",
1123
+ m=function(){return l(d,"DEFAULT_STYLESHEET_NAME")},m.$$arity=0);a.def(b,"$primary_stylesheet_data",r=function(){var a;return this.primary_stylesheet_data=c(a=this.primary_stylesheet_data)?a:k("::","File").$read(k("::","File").$join(l(d,"STYLESHEETS_DIR"),"asciidoctor-default.css"),q(["mode"],{mode:l(d,"FILE_READ_MODE")})).$rstrip()},r.$$arity=0);a.def(b,"$embed_primary_stylesheet",v=function(){return"<style>\n"+this.$primary_stylesheet_data()+"\n</style>"},v.$$arity=0);a.def(b,"$write_primary_stylesheet",
1124
+ t=function(a){null==a&&(a=".");return k("::","File").$write(k("::","File").$join(a,this.$primary_stylesheet_name()),this.$primary_stylesheet_data(),q(["mode"],{mode:l(d,"FILE_WRITE_MODE")}))},t.$$arity=-1);a.def(b,"$coderay_stylesheet_name",u=function(){return l(d,"SyntaxHighlighter").$for("coderay").$stylesheet_basename()},u.$$arity=0);a.def(b,"$coderay_stylesheet_data",y=function(){return l(d,"SyntaxHighlighter").$for("coderay").$read_stylesheet()},y.$$arity=0);a.def(b,"$embed_coderay_stylesheet",
1125
+ A=function(){return"<style>\n"+this.$coderay_stylesheet_data()+"\n</style>"},A.$$arity=0);a.def(b,"$write_coderay_stylesheet",x=function(a){null==a&&(a=".");return k("::","File").$write(k("::","File").$join(a,this.$coderay_stylesheet_name()),this.$coderay_stylesheet_data(),q(["mode"],{mode:l(d,"FILE_WRITE_MODE")}))},x.$$arity=-1);a.def(b,"$pygments_stylesheet_name",B=function(a){null==a&&(a=g);return l(d,"SyntaxHighlighter").$for("pygments").$stylesheet_basename(a)},B.$$arity=-1);a.def(b,"$pygments_stylesheet_data",
1126
+ z=function(a){null==a&&(a=g);return l(d,"SyntaxHighlighter").$for("pygments").$read_stylesheet(a)},z.$$arity=-1);a.def(b,"$embed_pygments_stylesheet",C=function(a){null==a&&(a=g);return"<style>\n"+this.$pygments_stylesheet_data(a)+"\n</style>"},C.$$arity=-1);return(a.def(b,"$write_pygments_stylesheet",D=function(a,b){null==a&&(a=".");null==b&&(b=g);return k("::","File").$write(k("::","File").$join(a,this.$pygments_stylesheet_name(b)),this.$pygments_stylesheet_data(b),q(["mode"],{mode:l(d,"FILE_WRITE_MODE")}))},
1127
+ D.$$arity=-1),g)&&"write_pygments_stylesheet"})(b[0],null,b)}(b[0],b)};Opal.modules["asciidoctor/table"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a>b:a["$>"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a<b:a["$<"](b)}function k(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}function l(a,b){return"number"===typeof a&&"number"===typeof b?a*b:a["$*"](b)}function m(a,b){return"number"===typeof a&&"number"===typeof b?a/b:a["$/"](b)}
1128
+ function h(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}var c=[],q=a.nil,p=a.const_get_qualified,t=a.const_get_relative,u=a.module,n=a.klass,e=a.hash2,f=a.send,x=a.truthy,z=a.gvars;a.add_stubs("$attr_accessor $attr_reader $new $[] $> $to_i $< $== $[]= $- $attributes $truncate $* $/ $to_f $empty? $body $each $<< $size $+ $assign_column_widths $warn $logger $update_attributes $assign_width $round $map $shift $reinitialize $head= $nil? $unshift $pop $foot= $parent $sourcemap $dup $header_row? $table $style $merge $delete $=== $start_with? $rstrip $slice $length $advance $lstrip $strip $split $include? $readlines $catalog_inline_anchor $=~ $apply_subs $attr_writer $convert $text $!= $file $lineno $include $to_set $mark $key? $nested? $document $error $message_with_context $cursor_at_prev_line $nil_or_empty? $escape $columns $match $chop $end_with? $gsub $! $push_cellspec $cell_open? $close_cell $take_cellspec $squeeze $upto $times $cursor_before_mark $rowspan $activate_rowspan $colspan $end_of_row? $close_row $private $rows $effective_column_visits".split(" "));
1129
+ return function(c,d){c=[u(c,"Asciidoctor")].concat(d);(function(c,$super,d){c=n(c,$super,"Table");var p=[c].concat(d),r,v,u,y,A;c.$$prototype.attributes=c.$$prototype.document=c.$$prototype.has_header_option=c.$$prototype.rows=c.$$prototype.columns=q;a.const_set(p[0],"DEFAULT_PRECISION",4);(function(b,$super,c){b=n(b,$super,"Rows");[b].concat(c);var d,f,g;b.$$prototype.head=b.$$prototype.body=b.$$prototype.foot=q;b.$attr_accessor("head","foot","body");a.def(b,"$initialize",d=function(a,b,c){null==
1130
+ a&&(a=[]);null==b&&(b=[]);null==c&&(c=[]);this.head=a;this.foot=b;return this.body=c},d.$$arity=-1);a.alias(b,"[]","send");a.def(b,"$by_section",f=function(){return[["head",this.head],["body",this.body],["foot",this.foot]]},f.$$arity=0);return(a.def(b,"$to_h",g=function(){return e(["head","body","foot"],{head:this.head,body:this.body,foot:this.foot})},g.$$arity=0),q)&&"to_h"})(p[0],null,p);c.$attr_accessor("columns");c.$attr_accessor("rows");c.$attr_accessor("has_header_option");c.$attr_reader("caption");
1131
+ a.def(c,"$initialize",r=function(c,e){var d,h,n=q,v=q,u=q;r.$$p&&(r.$$p=null);f(this,a.find_super_dispatcher(this,"initialize",r,!1),[c,"table"],null);this.rows=t(p,"Rows").$new();this.columns=[];this.has_header_option=!1;x(n=e["$[]"]("width"))?x(x(d=b(v=n.$to_i(),100))?d:g(v,1))&&!x(v["$=="](0)?x(h=n["$=="]("0"))?h:n["$=="]("0%"):v["$=="](0))&&(v=100):v=100;c=["tablepcwidth",v];f(this.attributes,"[]=",a.to_a(c));c[k(c.length,1)];x(this.document.$attributes()["$[]"]("pagewidth"))&&(c=["tableabswidth",
1132
+ (u=l(m(v,100),this.document.$attributes()["$[]"]("pagewidth").$to_f()).$truncate(t(p,"DEFAULT_PRECISION")))["$=="](u.$to_i())?u.$to_i():u],f(this.attributes,"[]=",a.to_a(c)),c[k(c.length,1)]);return x(e["$[]"]("rotate-option"))?(c=["orientation","landscape"],f(this.attributes,"[]=",a.to_a(c)),c[k(c.length,1)]):q},r.$$arity=2);a.def(c,"$header_row?",v=function(){var a,b;return x(x(a=b=this.has_header_option)?this.rows.$body()["$empty?"]():a)?b:q},v.$$arity=0);a.def(c,"$create_columns",u=function(c){var e,
1133
+ d,n=q,l=q,m=q,r=q;r=q;n=[];l=q;m=0;f(c,"each",[],(e=function(a){var b=e.$$s||this,c;null==a&&(a=q);var d=a["$[]"]("width");n["$<<"](t(p,"Column").$new(b,n.$size(),a));return x(g(d,0))?(l=x(c=l)?c:[])["$<<"](n["$[]"](-1)):m=h(m,d)},e.$$s=this,e.$$arity=1,e));x(b(r=(this.columns=n).$size(),0))&&(r=["colcount",r],f(this.attributes,"[]=",a.to_a(r)),r[k(r.length,1)],x(x(d=b(m,0))?d:l)||(m=q),this.$assign_column_widths(m,l));return q},u.$$arity=1);a.def(c,"$assign_column_widths",y=function(a,c){var d,g,
1134
+ n,l=q,r=q,v=q,u=q,y=q;null==a&&(a=q);null==c&&(c=q);l=t(p,"DEFAULT_PRECISION");r=v=0;x(a)?(x(c)&&(x(b(a,100))?(u=0,this.$logger().$warn("total column width must not exceed 100% when using autowidth columns; got "+a+"%")):(u=m(k(100,a),c.$size()).$truncate(l),u.$to_i()["$=="](u)&&(u=u.$to_i()),a=100),y=e(["width","autowidth-option"],{width:u,"autowidth-option":""}),f(c,"each",[],(d=function(a){null==a&&(a=q);return a.$update_attributes(y)},d.$$s=this,d.$$arity=1,d))),f(this.columns,"each",[],(g=function(b){null==
1135
+ b&&(b=q);return r=h(r,v=b.$assign_width(q,a,l))},g.$$s=this,g.$$arity=1,g))):(v=m(100,this.columns.$size()).$truncate(l),v.$to_i()["$=="](v)&&(v=v.$to_i()),f(this.columns,"each",[],(n=function(a){null==a&&(a=q);return r=h(r,a.$assign_width(v,q,l))},n.$$s=this,n.$$arity=1,n)));r["$=="](100)||this.columns["$[]"](-1).$assign_width(h(k(100,r),v).$round(l),q,l);return q},y.$$arity=-1);return(a.def(c,"$partition_header_footer",A=function(c){var e,d,g,h=q,n=q,l=q;h=(n=["rowcount",(l=this.rows.$body()).$size()],
1136
+ f(this.attributes,"[]=",a.to_a(n)),n[k(n.length,1)]);x(b(h,0))&&(x(this.has_header_option)?(n=[[f(l.$shift(),"map",[],(e=function(a){null==a&&(a=q);return a.$reinitialize(!0)},e.$$s=this,e.$$arity=1,e))]],f(this.rows,"head=",a.to_a(n)),n[k(n.length,1)],h=k(h,1)):x(this.has_header_option["$nil?"]())&&(this.has_header_option=!1,l.$unshift(f(l.$shift(),"map",[],(d=function(a){null==a&&(a=q);return a.$reinitialize(!1)},d.$$s=this,d.$$arity=1,d)))));x(x(g=b(h,0))?c["$[]"]("footer-option"):g)&&(n=[[l.$pop()]],
1137
+ f(this.rows,"foot=",a.to_a(n)),n[k(n.length,1)]);return q},A.$$arity=1),q)&&"partition_header_footer"})(c[0],t(c,"AbstractBlock"),c);(function(b,$super,c){b=n(b,$super,"Column");[b].concat(c);var d,g,p,r;b.$$prototype.attributes=q;b.$attr_accessor("style");a.def(b,"$initialize",d=function(b,c,g){var n;d.$$p&&(d.$$p=null);null==g&&(g=e([],{}));f(this,a.find_super_dispatcher(this,"initialize",d,!1),[b,"table_column"],null);this.style=g["$[]"]("style");b=["colnumber",h(c,1)];f(g,"[]=",a.to_a(b));b[k(b.length,
1138
+ 1)];x(n=g["$[]"]("width"))?n:(b=["width",1],f(g,"[]=",a.to_a(b)),b[k(b.length,1)]);x(n=g["$[]"]("halign"))?n:(b=["halign","left"],f(g,"[]=",a.to_a(b)),b[k(b.length,1)]);x(n=g["$[]"]("valign"))?n:(b=["valign","top"],f(g,"[]=",a.to_a(b)),b[k(b.length,1)]);return this.$update_attributes(g)},d.$$arity=-3);a.alias(b,"table","parent");a.def(b,"$assign_width",g=function(b,c,e){var d=q;x(c)&&(b=m(l(this.attributes["$[]"]("width").$to_f(),100),c).$truncate(e),b.$to_i()["$=="](b)&&(b=b.$to_i()));x(this.$parent().$attributes()["$[]"]("tableabswidth"))&&
1139
+ (c=["colabswidth",(d=l(m(b,100),this.$parent().$attributes()["$[]"]("tableabswidth")).$truncate(e))["$=="](d.$to_i())?d.$to_i():d],f(this.attributes,"[]=",a.to_a(c)),c[k(c.length,1)]);c=["colpcwidth",b];f(this.attributes,"[]=",a.to_a(c));return c[k(c.length,1)]},g.$$arity=3);a.def(b,"$block?",p=function(){return!1},p.$$arity=0);return(a.def(b,"$inline?",r=function(){return!1},r.$$arity=0),q)&&"inline?"})(t(c,"Table"),t(c,"AbstractNode"),c);(function(b,$super,c){b=n(b,$super,"Cell");var d=[b].concat(c),
1140
+ m,r,v,u,y,A,B,C,D,T;b.$$prototype.document=b.$$prototype.reinitialize_args=b.$$prototype.attributes=b.$$prototype.cursor=b.$$prototype.text=b.$$prototype.subs=b.$$prototype.style=b.$$prototype.inner_document=b.$$prototype.source_location=b.$$prototype.colspan=b.$$prototype.rowspan=q;a.const_set(d[0],"DOUBLE_LF",l(t(d,"LF"),2));b.$attr_accessor("colspan");b.$attr_accessor("rowspan");a.alias(b,"column","parent");b.$attr_reader("inner_document");a.def(b,"$initialize",m=function(b,c,n,l){var p,r,v,u=
1141
+ q,y=q,A=q,B=q,z=q,C=q,D=q;m.$$p&&(m.$$p=null);null==n&&(n=e([],{}));null==l&&(l=e([],{}));f(this,a.find_super_dispatcher(this,"initialize",m,!1),[b,"table_cell"],null);this.cursor=this.reinitialize_args=q;x(this.document.$sourcemap())&&(this.source_location=l["$[]"]("cursor").$dup());x(b)&&(x(u=b.$table()["$header_row?"]())?x((p=u["$=="]("implicit"))?y=x(r=b.$style())?r:x(v=n)?n["$[]"]("style"):v:u["$=="]("implicit"))&&(x(x(p=y["$=="]("asciidoc"))?p:y["$=="]("literal"))&&(this.reinitialize_args=[b,
1142
+ c,x(p=n)?n.$merge():p,l]),y=q):y=b.$style(),this.$update_attributes(b.$attributes()));if(x(n))if(x(n["$empty?"]())?this.colspan=this.rowspan=q:(p=[n.$delete("colspan"),n.$delete("rowspan")],this.colspan=p[0],this.rowspan=p[1],p,x(u)||(y=x(p=n["$[]"]("style"))?p:y),this.$update_attributes(n)),b=y,"asciidoc"["$==="](b))if(A=!0,B=l["$[]"]("cursor"),x((c=c.$rstrip())["$start_with?"](t(d,"LF")))){for(b=1;x((c=c.$slice(1,c.$length()))["$start_with?"](t(d,"LF")));)b=h(b,1);B.$advance(b)}else c=c.$lstrip();
1143
+ else if("literal"["$==="](b))for(z=!0,c=c.$rstrip();x(c["$start_with?"](t(d,"LF")));)c=c.$slice(1,c.$length());else C=!0,c=x(c)?c.$strip():"";else this.colspan=this.rowspan=q,y["$=="]("asciidoc")&&(A=!0,B=l["$[]"]("cursor"));x(A)?(l=this.document.$attributes().$delete("doctitle"),u=c.$split(t(d,"LF"),-1),!x(u["$empty?"]())&&x((D=u["$[]"](0))["$include?"]("::"))&&(A=t(d,"PreprocessorReader").$new(this.document,[D]).$readlines(),x(D["$=="](A["$[]"](0))?g(A.$size(),2):D["$=="](A["$[]"](0)))||(u.$shift(),
1144
+ x(A["$empty?"]())||f(u,"unshift",a.to_a(A)))),this.inner_document=t(d,"Document").$new(u,e(["standalone","parent","cursor"],{standalone:!1,parent:this.document,cursor:B})),x(l["$nil?"]())||(B=["doctitle",l],f(this.document.$attributes(),"[]=",a.to_a(B)),B[k(B.length,1)]),this.subs=q):x(z)?(this.content_model="verbatim",this.subs=t(d,"BASIC_SUBS")):(x(C)&&(x(u)?this.cursor=l["$[]"]("cursor"):this.$catalog_inline_anchor(c,l["$[]"]("cursor"))),this.content_model="simple",this.subs=t(d,"NORMAL_SUBS"));
1145
+ this.text=c;return this.style=y},m.$$arity=-3);a.def(b,"$reinitialize",r=function(b){if(x(b))this.reinitialize_args=q;else{if(x(this.reinitialize_args))return f(p(t(d,"Table"),"Cell"),"new",a.to_a(this.reinitialize_args));this.style=this.attributes["$[]"]("style")}x(this.cursor)&&this.$catalog_inline_anchor();return this},r.$$arity=1);a.def(b,"$catalog_inline_anchor",v=function(a,b){null==a&&(a=this.text);null==b&&(b=q);if(!x(b)){var c=[this.cursor,q];b=c[0];this.cursor=c[1];c}return x(x(c=a["$start_with?"]("[["))?
1146
+ t(d,"LeadingInlineAnchorRx")["$=~"](a):c)?t(d,"Parser").$catalog_inline_anchor((c=z["~"])===q?q:c["$[]"](1),(c=z["~"])===q?q:c["$[]"](2),this,b,this.document):q},v.$$arity=-1);a.def(b,"$text",u=function(){return this.$apply_subs(this.text,this.subs)},u.$$arity=0);b.$attr_writer("text");a.def(b,"$content",y=function(){var a,b,c=q,g=q;return(c=this.style)["$=="]("asciidoc")?this.inner_document.$convert():x(this.text["$include?"](t(d,"DOUBLE_LF")))?f(this.$text().$split(t(d,"BlankLineRx")),"map",[],
1147
+ (a=function(b){var f=a.$$s||this,g;null==b&&(b=q);return x(x(g=c)?c["$!="]("header"):g)?t(d,"Inline").$new(f.$parent(),"quoted",b,e(["type"],{type:c})).$convert():b},a.$$s=this,a.$$arity=1,a)):x((g=this.$text())["$empty?"]())?[]:x(x(b=c)?c["$!="]("header"):b)?[t(d,"Inline").$new(this.$parent(),"quoted",g,e(["type"],{type:c})).$convert()]:[g]},y.$$arity=0);a.def(b,"$lines",A=function(){return this.text.$split(t(d,"LF"))},A.$$arity=0);a.def(b,"$source",B=function(){return this.text},B.$$arity=0);a.def(b,
1148
+ "$file",C=function(){var a;return x(a=this.source_location)?this.source_location.$file():a},C.$$arity=0);a.def(b,"$lineno",D=function(){var a;return x(a=this.source_location)?this.source_location.$lineno():a},D.$$arity=0);return(a.def(b,"$to_s",T=function(){var b,c=T.$$p,e;c&&(T.$$p=null);var d=0;var g=arguments.length;for(e=Array(g);d<g;d++)e[d]=arguments[d];return""+f(this,a.find_super_dispatcher(this,"to_s",T,!1),e,c)+" - [text: "+this.text+", colspan: "+(x(b=this.colspan)?b:1)+", rowspan: "+(x(b=
1149
+ this.rowspan)?b:1)+", attributes: "+this.attributes+"]"},T.$$arity=0),q)&&"to_s"})(t(c,"Table"),t(c,"AbstractBlock"),c);(function(c,$super,d){c=n(c,$super,"ParserContext");var g=[c].concat(d),l,m,r,v,u,y,A,B,z,C,D,J,T,I,E,L,S,G,H;c.$$prototype.delimiter=c.$$prototype.delimiter_rx=c.$$prototype.buffer=c.$$prototype.cellspecs=c.$$prototype.cell_open=c.$$prototype.format=c.$$prototype.start_cursor_data=c.$$prototype.reader=c.$$prototype.table=c.$$prototype.current_row=c.$$prototype.colcount=c.$$prototype.column_visits=
1150
+ c.$$prototype.active_rowspans=c.$$prototype.linenum=q;c.$include(t(g,"Logging"));a.const_set(g[0],"FORMATS",["psv","csv","dsv","tsv"].$to_set());a.const_set(g[0],"DELIMITERS",e(["psv","csv","dsv","tsv","!sv"],{psv:["|",/\|/],csv:[",",/,/],dsv:[":",/:/],tsv:["\t",/\t/],"!sv":["!",/!/]}));c.$attr_accessor("table");c.$attr_accessor("format");c.$attr_reader("colcount");c.$attr_accessor("buffer");c.$attr_reader("delimiter");c.$attr_reader("delimiter_re");a.def(c,"$initialize",l=function(b,c,d){var f;null==
1151
+ d&&(d=e([],{}));this.start_cursor_data=(this.reader=b).$mark();this.table=c;x(d["$key?"]("format"))?x(t(g,"FORMATS")["$include?"](f=d["$[]"]("format")))?f["$=="]("tsv")?this.format="csv":x((this.format=f)["$=="]("psv")?c.$document()["$nested?"]():(this.format=f)["$=="]("psv"))&&(f="!sv"):(this.$logger().$error(this.$message_with_context("illegal table format: "+f,e(["source_location"],{source_location:b.$cursor_at_prev_line()}))),b=["psv",x(c.$document()["$nested?"]())?"!sv":"psv"],this.format=b[0],
1152
+ f=b[1],b):(b=["psv",x(c.$document()["$nested?"]())?"!sv":"psv"],this.format=b[0],f=b[1],b);x(d["$key?"]("separator"))?x((d=d["$[]"]("separator"))["$nil_or_empty?"]())?(f=t(g,"DELIMITERS")["$[]"](f),b=a.to_ary(f),this.delimiter=null==b[0]?q:b[0],this.delimiter_rx=null==b[1]?q:b[1],f):d["$=="]("\\t")?(f=t(g,"DELIMITERS")["$[]"]("tsv"),b=a.to_ary(f),this.delimiter=null==b[0]?q:b[0],this.delimiter_rx=null==b[1]?q:b[1],f):(b=[d,new RegExp(p("::","Regexp").$escape(d))],this.delimiter=b[0],this.delimiter_rx=
1153
+ b[1],b):(f=t(g,"DELIMITERS")["$[]"](f),b=a.to_ary(f),this.delimiter=null==b[0]?q:b[0],this.delimiter_rx=null==b[1]?q:b[1],f);this.colcount=x(c.$columns()["$empty?"]())?-1:c.$columns().$size();this.buffer="";this.cellspecs=[];this.cell_open=!1;this.active_rowspans=[0];this.column_visits=0;this.current_row=[];return this.linenum=-1},l.$$arity=-3);a.def(c,"$starts_with_delimiter?",m=function(a){return a["$start_with?"](this.delimiter)},m.$$arity=1);a.def(c,"$match_delimiter",r=function(a){return this.delimiter_rx.$match(a)},
1154
+ r.$$arity=1);a.def(c,"$skip_past_delimiter",v=function(a){this.buffer=""+this.buffer+a+this.delimiter;return q},v.$$arity=1);a.def(c,"$skip_past_escaped_delimiter",u=function(a){this.buffer=""+this.buffer+a.$chop()+this.delimiter;return q},u.$$arity=1);a.def(c,"$buffer_has_unclosed_quotes?",y=function(a,b){var c,d,e=q;null==a&&(a=q);null==b&&(b='"');if((a=x(a)?h(this.buffer,a).$strip():this.buffer.$strip())["$=="](b))return!0;if(x(a["$start_with?"](b))){var f=h(b,b);return x(x(c=x(d=e=a["$end_with?"](b))?
1155
+ a["$end_with?"](f):d)?c:a["$start_with?"](f))?x(c=(a=a.$gsub(f,""))["$start_with?"](b))?a["$end_with?"](b)["$!"]():c:e["$!"]()}return!1},y.$$arity=-1);a.def(c,"$take_cellspec",A=function(){return this.cellspecs.$shift()},A.$$arity=0);a.def(c,"$push_cellspec",B=function(a){var b;null==a&&(a=e([],{}));this.cellspecs["$<<"](x(b=a)?b:e([],{}));return q},B.$$arity=-1);a.def(c,"$keep_cell_open",z=function(){this.cell_open=!0;return q},z.$$arity=0);a.def(c,"$mark_cell_closed",C=function(){this.cell_open=
1156
+ !1;return q},C.$$arity=0);a.def(c,"$cell_open?",D=function(){return this.cell_open},D.$$arity=0);a.def(c,"$cell_closed?",J=function(){return this.cell_open["$!"]()},J.$$arity=0);a.def(c,"$close_open_cell",T=function(a){null==a&&(a=e([],{}));this.$push_cellspec(a);x(this["$cell_open?"]())&&this.$close_cell(!0);this.$advance();return q},T.$$arity=-1);a.def(c,"$close_cell",I=function(c){try{var d,n,l=q,m=q,r=q,v=q;null==c&&(c=!1);this.format["$=="]("psv")?(l=this.buffer,this.buffer="",x(m=this.$take_cellspec())?
1157
+ r=x(d=m.$delete("repeatcol"))?d:1:(this.$logger().$error(this.$message_with_context("table missing leading separator; recovering automatically",e(["source_location"],{source_location:f(p(t(g,"Reader"),"Cursor"),"new",a.to_a(this.start_cursor_data))}))),m=e([],{}),r=1)):(l=this.buffer.$strip(),this.buffer="",m=q,r=1,x(x(d=this.format["$=="]("csv")?l["$empty?"]()["$!"]():this.format["$=="]("csv"))?l["$include?"](v='"'):d)&&(x(x(d=l["$start_with?"](v))?l["$end_with?"](v):d)?x(l=l.$slice(1,k(l.$length(),
1158
+ 2)))?l=l.$strip().$squeeze(v):(this.$logger().$error(this.$message_with_context("unclosed quote in CSV data; setting cell to empty",e(["source_location"],{source_location:this.reader.$cursor_at_prev_line()}))),l=""):l=l.$squeeze(v)));f(1,"upto",[r],(n=function(d){var v=n.$$s||this,u,y,A,B,z=q,C=q,D=q;z=q;null==v.colcount&&(v.colcount=q);null==v.table&&(v.table=q);null==v.current_row&&(v.current_row=q);null==v.reader&&(v.reader=q);null==v.column_visits&&(v.column_visits=q);null==v.linenum&&(v.linenum=
1159
+ q);null==d&&(d=q);v.colcount["$=="](-1)?(v.table.$columns()["$<<"](z=p(t(g,"Table"),"Column").$new(v.table,k(h(v.table.$columns().$size(),d),1))),x(x(u=x(y=m)?m["$key?"]("colspan"):y)?b(C=k(m["$[]"]("colspan").$to_i(),1),0):u)&&(D=v.table.$columns().$size(),f(C,"times",[],(A=function(a){var b=A.$$s||this;null==b.table&&(b.table=q);null==a&&(a=q);return b.table.$columns()["$<<"](p(t(g,"Table"),"Column").$new(b.table,h(D,a)))},A.$$s=v,A.$$arity=1,A)))):x(z=v.table.$columns()["$[]"](v.current_row.$size()))||
1160
+ (v.$logger().$error(v.$message_with_context("dropping cell because it exceeds specified number of columns",e(["source_location"],{source_location:v.reader.$cursor_before_mark()}))),a.ret(q));z=p(t(g,"Table"),"Cell").$new(z,l,m,e(["cursor"],{cursor:v.reader.$cursor_before_mark()}));v.reader.$mark();x(x(u=z.$rowspan()["$!"]())?u:z.$rowspan()["$=="](1))||v.$activate_rowspan(z.$rowspan(),x(u=z.$colspan())?u:1);v.column_visits=h(v.column_visits,x(u=z.$colspan())?u:1);v.current_row["$<<"](z);return x(x(u=
1161
+ v["$end_of_row?"]())?x(y=x(B=v.colcount["$!="](-1))?B:b(v.linenum,0))?y:x(B=c)?d["$=="](r):B:u)?v.$close_row():q},n.$$s=this,n.$$arity=1,n));this.cell_open=!1;return q}catch(Aa){if(Aa===a.returner)return Aa.$v;throw Aa;}},I.$$arity=-1);c.$private();a.def(c,"$close_row",E=function(){var b,c=q;this.table.$rows().$body()["$<<"](this.current_row);this.colcount["$=="](-1)&&(this.colcount=this.column_visits);this.column_visits=0;this.current_row=[];this.active_rowspans.$shift();x(b=this.active_rowspans["$[]"](0))?
1162
+ b:(c=[0,0],f(this.active_rowspans,"[]=",a.to_a(c)),c[k(c.length,1)]);return q},E.$$arity=0);a.def(c,"$activate_rowspan",L=function(b,c){var d;f(1,"upto",[k(b,1)],(d=function(b){var e=d.$$s||this,g;null==e.active_rowspans&&(e.active_rowspans=q);null==b&&(b=q);b=[b,h(x(g=e.active_rowspans["$[]"](b))?g:0,c)];f(e.active_rowspans,"[]=",a.to_a(b));return b[k(b.length,1)]},d.$$s=this,d.$$arity=1,d));return q},L.$$arity=2);a.def(c,"$end_of_row?",S=function(){var a;return x(a=this.colcount["$=="](-1))?a:this.$effective_column_visits()["$=="](this.colcount)},
1163
+ S.$$arity=0);a.def(c,"$effective_column_visits",G=function(){return h(this.column_visits,this.active_rowspans["$[]"](0))},G.$$arity=0);return(a.def(c,"$advance",H=function(){return this.linenum=h(this.linenum,1)},H.$$arity=0),q)&&"advance"})(t(c,"Table"),null,c)}(c[0],c)};Opal.modules["asciidoctor/writer"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}var g=[],k=a.nil,l=a.const_get_qualified,m=a.const_get_relative,h=a.module,c=a.truthy,q=a.hash2;a.add_stubs(["$respond_to?",
1164
+ "$write","$+","$chomp","$include"]);return function(d,g){d=[h(d,"Asciidoctor")].concat(g);(function(d,g){d=h(d,"Writer");var e=[d].concat(g),f;a.def(d,"$write",f=function(a,d){c(d["$respond_to?"]("write"))?d.$write(b(a.$chomp(),m(e,"LF"))):l("::","File").$write(d,a,q(["mode"],{mode:m(e,"FILE_WRITE_MODE")}));return k},f.$$arity=2)})(d[0],d);(function(b,c){b=h(b,"VoidWriter");c=[b].concat(c);var d;b.$include(m(c,"Writer"));a.def(b,"$write",d=function(a,b){return k},d.$$arity=2)})(d[0],d)}(g[0],g)};
1165
+ Opal.modules["asciidoctor/load"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}var k=[],l=a.nil,m=a.const_get_qualified,h=a.const_get_relative,c=a.module,q=a.hash2,p=a.truthy,t=a.send;a.add_stubs("$merge $[] $start $key? $!= $logger $new $logger= $- $! $=== $dup $tap $each $partition $[]= $split $gsub $+ $respond_to? $keys $raise $join $ancestors $class $== $at $to_i $mtime $absolute_path $path $dirname $basename $extname $read $rewind $drop $record $parse $exception $message $set_backtrace $backtrace $stack_trace $stack_trace= $open $load".split(" "));
1166
+ return function(d,k){d=c(d,"Asciidoctor");k=[d].concat(k);(function(c,d){var e=[c].concat(d),f,k;a.def(c,"$load",f=function(c,d){var f,k,n,r,v,u,A=l,x=l,B=l,z=l,C=l,D=l,J=l,T=l,E=l,L=l;null==d&&(d=q([],{}));try{d=d.$merge();p(A=d["$[]"]("timings"))&&A.$start("read");p(p(f=d["$key?"]("logger"))?(x=d["$[]"]("logger"))["$!="](h(e,"LoggerManager").$logger()):f)&&(B=[p(f=x)?f:h(e,"NullLogger").$new()],t(h(e,"LoggerManager"),"logger=",a.to_a(B)),B[b(B.length,1)]);p((z=d["$[]"]("attributes"))["$!"]())?z=
1167
+ q([],{}):p(m("::","Hash")["$==="](z))?z=z.$merge():p(p(f=(n=m("::","Java","skip_raise"))&&(k=m(n,"JavaUtil","skip_raise"))&&m(k,"Map","skip_raise")?"constant":l)?m(m(m("::","Java"),"JavaUtil"),"Map")["$==="](z):f)?z=z.$dup():p(m("::","Array")["$==="](z))?z=t(q([],{}),"tap",[],(r=function(c){var d=r.$$s||this,e;null==c&&(c=l);return t(z,"each",[],(e=function(d){null==d&&(d=l);d=d.$partition("=");var e=a.to_ary(d);var f=null==e[0]?l:e[0];e=null==e[2]?l:e[2];d;B=[f,e];t(c,"[]=",a.to_a(B));return B[b(B.length,
1168
+ 1)]},e.$$s=d,e.$$arity=1,e))},r.$$s=this,r.$$arity=1,r)):p(m("::","String")["$==="](z))?z=t(q([],{}),"tap",[],(v=function(c){var d=v.$$s||this,f;null==c&&(c=l);return t(z.$gsub(h(e,"SpaceDelimiterRx"),g("\\1",h(e,"NULL"))).$gsub(h(e,"EscapedSpaceRx"),"\\1").$split(h(e,"NULL")),"each",[],(f=function(d){null==d&&(d=l);d=d.$partition("=");var e=a.to_ary(d);var f=null==e[0]?l:e[0];e=null==e[2]?l:e[2];d;B=[f,e];t(c,"[]=",a.to_a(B));return B[b(B.length,1)]},f.$$s=d,f.$$arity=1,f))},v.$$s=this,v.$$arity=
1169
+ 1,v)):p(p(f=z["$respond_to?"]("keys"))?z["$respond_to?"]("[]"):f)?z=t(q([],{}),"tap",[],(u=function(c){var d=u.$$s||this,e;null==c&&(c=l);return t(z.$keys(),"each",[],(e=function(d){null==d&&(d=l);B=[d,z["$[]"](d)];t(c,"[]=",a.to_a(B));return B[b(B.length,1)]},e.$$s=d,e.$$arity=1,e))},u.$$s=this,u.$$arity=1,u)):this.$raise(m("::","ArgumentError"),"illegal type for attributes option: "+z.$class().$ancestors().$join(" < "));if(p(m("::","File")["$==="](c)))B=["input_mtime",h(e,"RUBY_ENGINE")["$=="]("jruby")?
1170
+ m("::","Time").$at(c.$mtime().$to_i()):c.$mtime()],t(d,"[]=",a.to_a(B)),B[b(B.length,1)],B=["docfile",C=m("::","File").$absolute_path(c.$path())],t(z,"[]=",a.to_a(B)),B[b(B.length,1)],B=["docdir",m("::","File").$dirname(C)],t(z,"[]=",a.to_a(B)),B[b(B.length,1)],B=["docname",h(e,"Helpers").$basename(C,(B=["docfilesuffix",h(e,"Helpers").$extname(C)],t(z,"[]=",a.to_a(B)),B[b(B.length,1)]))],t(z,"[]=",a.to_a(B)),B[b(B.length,1)],D=c.$read();else if(p(c["$respond_to?"]("read"))){try{c.$rewind()}catch(I){if(a.rescue(I,
1171
+ [h(e,"StandardError")]))try{l}finally{a.pop_exception()}else throw I;}D=c.$read()}else p(m("::","String")["$==="](c))?D=c:p(m("::","Array")["$==="](c))?D=c.$drop(0):p(c)&&this.$raise(m("::","ArgumentError"),"unsupported input type: "+c.$class());p(A)&&(A.$record("read"),A.$start("parse"));B=["attributes",z];t(d,"[]=",a.to_a(B));B[b(B.length,1)];J=d["$[]"]("parse")["$=="](!1)?h(e,"Document").$new(D,d):h(e,"Document").$new(D,d).$parse();p(A)&&A.$record("parse");return J}catch(I){if(a.rescue(I,[h(e,
1172
+ "StandardError")])){T=I;try{try{E="asciidoctor: FAILED: "+(p(f=z["$[]"]("docfile"))?f:"<stdin>")+": Failed to load AsciiDoc document",p(T["$respond_to?"]("exception"))?(L=T.$exception(""+E+" - "+T.$message()),L.$set_backtrace(T.$backtrace())):(L=T.$class().$new(E,T),B=[T.$stack_trace()],t(L,"stack_trace=",a.to_a(B)),B[b(B.length,1)])}catch(Y){if(a.rescue(Y,[h(e,"StandardError")]))try{L=T}finally{a.pop_exception()}else throw Y;}return this.$raise(L)}finally{a.pop_exception()}}else throw I;}},f.$$arity=
1173
+ -2);return(a.def(c,"$load_file",k=function(a,b){var c;null==b&&(b=q([],{}));return t(m("::","File"),"open",[a,h(e,"FILE_READ_MODE")],(c=function(a){var d=c.$$s||this;null==a&&(a=l);return d.$load(a,b)},c.$$s=this,c.$$arity=1,c))},k.$$arity=-2),l)&&"load_file"})(a.get_singleton_class(d),k)}(k[0],k)};Opal.modules["asciidoctor/convert"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a>=b:a["$>="](b)}
1174
+ var k=[],l=a.nil,m=a.const_get_qualified,h=a.const_get_relative,c=a.module,q=a.hash2,p=a.truthy,t=a.send;a.add_stubs("$delete $merge $=== $absolute_path $path $load $respond_to? $[]= $- $key? $fetch $[] $dirname $expand_path $join $attributes $outfilesuffix $== $raise $pwd $>= $safe $normalize_system_path $mkdir_p $directory? $! $convert $write $< $attr? $basebackend? $attr $uriish? $include? $syntax_highlighter $write_stylesheet? $write_primary_stylesheet $instance $to_s $!= $read_asset $file? $write_stylesheet $open".split(" "));
1175
+ return function(d,k){d=c(d,"Asciidoctor");k=[d].concat(k);(function(c,d){var e=[c].concat(d),f,k;a.def(c,"$convert",f=function(c,d){var f,k,n,r,v,u,A=l,x=l,B=v=l,z=l,C=l,D=l,J=l,E=l,T=l,L=l,I=l,G=l;null==d&&(d=q([],{}));(d=d.$merge()).$delete("parse");var H=d.$delete("to_dir");var S=d.$delete("mkdirs");var F=u=d.$delete("to_file");if((!0)["$==="](F)||l["$==="](F))p(A=H)||p(m("::","File")["$==="](c))&&(x=m("::","File").$absolute_path(c.$path())),u=l;else if((!1)["$==="](F))u=l;else{if("/dev/null"["$==="](F))return this.$load(c,
1176
+ d);p(v=u["$respond_to?"]("write"))||(F=["to_file",A=u],t(d,"[]=",a.to_a(F)),F[b(F.length,1)])}p(d["$key?"]("standalone"))||(p(p(f=x)?f:A)?(F=["standalone",d.$fetch("header_footer",!0)],t(d,"[]=",a.to_a(F)),F[b(F.length,1)]):p(d["$key?"]("header_footer"))&&(F=["standalone",d["$[]"]("header_footer")],t(d,"[]=",a.to_a(F)),F[b(F.length,1)]));p(x)?(F=["to_dir",B=m("::","File").$dirname(x)],t(d,"[]=",a.to_a(F)),F[b(F.length,1)]):p(A)&&(p(H)?(F=p(u)?["to_dir",m("::","File").$dirname(m("::","File").$expand_path(u,
1177
+ H))]:["to_dir",m("::","File").$expand_path(H)],t(d,"[]=",a.to_a(F)),F[b(F.length,1)]):p(u)&&(F=["to_dir",m("::","File").$dirname(m("::","File").$expand_path(u))],t(d,"[]=",a.to_a(F)),F[b(F.length,1)]));F=this.$load(c,d);p(x)?(z=m("::","File").$join(B,""+F.$attributes()["$[]"]("docname")+F.$outfilesuffix()),z["$=="](x)&&this.$raise(m("::","IOError"),"input file and output file cannot be the same: "+z)):p(A)?(d=p(d["$key?"]("base_dir"))?m("::","File").$expand_path(d["$[]"]("base_dir")):m("::","Dir").$pwd(),
1178
+ A=p(g(F.$safe(),m(h(e,"SafeMode"),"SAFE")))?d:l,p(H)?(B=F.$normalize_system_path(H,d,A,q(["target_name","recover"],{target_name:"to_dir",recover:!1})),p(u)?(z=F.$normalize_system_path(u,B,l,q(["target_name","recover"],{target_name:"to_dir",recover:!1})),B=m("::","File").$dirname(z)):z=m("::","File").$join(B,""+F.$attributes()["$[]"]("docname")+F.$outfilesuffix())):p(u)&&(z=F.$normalize_system_path(u,d,A,q(["target_name","recover"],{target_name:"to_dir",recover:!1})),B=m("::","File").$dirname(z)),
1179
+ p(p(f=m("::","File")["$==="](c))?z["$=="](m("::","File").$absolute_path(c.$path())):f)&&this.$raise(m("::","IOError"),"input file and output file cannot be the same: "+z),p(S)?h(e,"Helpers").$mkdir_p(B):p(m("::","File")["$directory?"](B))||this.$raise(m("::","IOError"),"target directory does not exist: "+H+" (hint: set :mkdirs option)")):(z=u,B=l);c=p(p(f=z)?v["$!"]():f)?F.$convert(q(["outfile","outdir"],{outfile:z,outdir:B})):F.$convert();return p(z)?(F.$write(c,z),p(v=v["$!"]())&&(v=F.$safe(),z=
1180
+ m(h(e,"SafeMode"),"SECURE"),v="number"===typeof v&&"number"===typeof z?v<z:v["$<"](z)),p(p(f=p(k=p(n=p(r=v)?F["$attr?"]("linkcss"):r)?F["$attr?"]("copycss"):n)?F["$basebackend?"]("html"):k)?(p(k=C=F.$attr("stylesdir"))?h(e,"Helpers")["$uriish?"](C):k)["$!"]():f)&&(p(D=F.$attr("stylesheet"))&&(p(h(e,"DEFAULT_STYLESHEET_KEYS")["$include?"](D))?J=!0:p(h(e,"Helpers")["$uriish?"](D)["$!"]())&&(E=!0)),n=p(f=T=F.$syntax_highlighter())?T["$write_stylesheet?"](F):f,p(p(f=p(k=J)?k:E)?f:n)&&(k=F.$normalize_system_path(C,
1181
+ B,p(g(F.$safe(),m(h(e,"SafeMode"),"SAFE")))?B:l),p(S)?h(e,"Helpers").$mkdir_p(k):p(m("::","File")["$directory?"](k))||this.$raise(m("::","IOError"),"target stylesheet directory does not exist: "+k+" (hint: set :mkdirs option)"),p(J)?h(e,"Stylesheets").$instance().$write_primary_stylesheet(k):p(E)&&(L=p(p(f=(L=F.$attr("copycss"))["$=="](""))?f:L["$=="](!0))?F.$normalize_system_path(D):F.$normalize_system_path(L.$to_s()),B=F.$normalize_system_path(D,k,p(g(F.$safe(),m(h(e,"SafeMode"),"SAFE")))?B:l),
1182
+ p(p(f=L["$!="](B))?I=F.$read_asset(L,q(["warn_on_failure","label"],{warn_on_failure:m("::","File")["$file?"](B)["$!"](),label:"stylesheet"})):f)&&(p(p(f=(G=m("::","File").$dirname(B))["$!="](k))?m("::","File")["$directory?"](G)["$!"]():f)&&(p(S)?h(e,"Helpers").$mkdir_p(G):this.$raise(m("::","IOError"),"target stylesheet directory does not exist: "+G+" (hint: set :mkdirs option)")),m("::","File").$write(B,I,q(["mode"],{mode:h(e,"FILE_WRITE_MODE")})))),p(n)&&T.$write_stylesheet(F,k))),F):c},f.$$arity=
1183
+ -2);a.def(c,"$convert_file",k=function(a,b){var c;null==b&&(b=q([],{}));return t(m("::","File"),"open",[a,h(e,"FILE_READ_MODE")],(c=function(a){var d=c.$$s||this;null==a&&(a=l);return d.$convert(a,b)},c.$$s=this,c.$$arity=1,c))},k.$$arity=-2);a.alias(c,"render","convert");return a.alias(c,"render_file","convert_file")})(a.get_singleton_class(d),k)}(k[0],k)};Opal.modules["asciidoctor/syntax_highlighter/highlightjs"]=function(a){var b=[],g=a.nil,k=a.const_get_qualified,l=a.const_get_relative,m=a.module,
1184
+ h=a.klass,c=a.send,q=a.hash2,p=a.truthy;a.add_stubs("$register_for $merge $proc $[]= $- $attr $[] $== $attr? $join $map $split $lstrip".split(" "));return function(b,d){b=[m(b,"Asciidoctor")].concat(d);(function(b,$super,d){b=h(b,$super,"HighlightJsAdapter");var f=[b].concat(d),k,n,m,r;b.$register_for("highlightjs","highlight.js");a.def(b,"$initialize",k=function(b){var d=k.$$p,f;d&&(k.$$p=null);var g=0;var h=arguments.length;for(f=Array(h);g<h;g++)f[g]=arguments[g];a.slice.call(arguments,0,arguments.length);
1185
+ c(this,a.find_super_dispatcher(this,"initialize",k,!1),f,d);return this.name=this.pre_class="highlightjs"},k.$$arity=-1);a.def(b,"$format",n=function(b,d,f){var h;n.$$p&&(n.$$p=null);return c(this,a.find_super_dispatcher(this,"format",n,!1),[b,d,f.$merge(q(["transform"],{transform:c(this,"proc",[],(h=function(b,f){null==f&&(f=g);b=["class","language-"+(p(d)?d:"none")+" hljs"];c(f,"[]=",a.to_a(b));f=b.length;f="number"===typeof f?f-1:f["$-"](1);return b[f]},h.$$s=this,h.$$arity=2,h))}))],null)},n.$$arity=
1186
+ 3);a.def(b,"$docinfo?",m=function(a){return!0},m.$$arity=1);return(a.def(b,"$docinfo",r=function(a,b,d){var h,k=this,n=g;n=b.$attr("highlightjsdir",""+d["$[]"]("cdn_base_url")+"/highlight.js/"+l(f,"HIGHLIGHT_JS_VERSION"));return a["$=="]("head")?'<link rel="stylesheet" href="'+n+"/styles/"+b.$attr("highlightjs-theme","github")+'.min.css"'+d["$[]"]("self_closing_tag_slash")+">":'<script src="'+n+'/highlight.min.js">\x3c/script>\n'+function(){return p(b["$attr?"]("highlightjs-languages"))?c(b.$attr("highlightjs-languages").$split(","),
1187
+ "map",[],(h=function(a){null==a&&(a=g);return'<script src="'+n+"/languages/"+a.$lstrip()+'.min.js">\x3c/script>\n'},h.$$s=k,h.$$arity=1,h)).$join():""}()+"<script>\nif (!hljs.initHighlighting.called) {\n hljs.initHighlighting.called = true\n ;[].slice.call(document.querySelectorAll('pre.highlight > code')).forEach(function (el) { hljs.highlightBlock(el) })\n}\n\x3c/script>"},r.$$arity=3),g)&&"docinfo"})(l(b,"SyntaxHighlighter"),k(l(b,"SyntaxHighlighter"),"Base"),b)}(b[0],b)};Opal.modules["asciidoctor/syntax_highlighter"]=
1188
+ function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}var g=a.top,k=[],l=a.nil,m=a.const_get_qualified,h=a.const_get_relative,c=a.module,q=a.hash2,p=a.send,t=a.truthy,u=a.klass;a.add_stubs("$attr_reader $raise $class $extend $private_class_method $register $map $to_s $each $[]= $registry $- $[] $for $=== $new $name $private $include $== $delete $join $content".split(" "));(function(d,e){d=[c(d,"Asciidoctor")].concat(e);(function(d,e){d=c(d,"SyntaxHighlighter");
1189
+ var f=[d].concat(e),g,k,n,r,v,A,x,B,z;d.$attr_reader("name");a.def(d,"$initialize",g=function(a,b,c){null==c&&q([],{});return this.name=this.pre_class=a},g.$$arity=-2);a.def(d,"$docinfo?",k=function(a){return l},k.$$arity=1);a.def(d,"$docinfo",n=function(a,b,c){return this.$raise(m("::","NotImplementedError"),""+h(f,"SyntaxHighlighter")+" subclass "+this.$class()+" must implement the #docinfo method since #docinfo? returns true")},n.$$arity=3);a.def(d,"$highlight?",r=function(){return l},r.$$arity=
1190
+ 0);a.def(d,"$highlight",v=function(a,b,c,d){return this.$raise(m("::","NotImplementedError"),""+h(f,"SyntaxHighlighter")+" subclass "+this.$class()+" must implement the #highlight method since #highlight? returns true")},v.$$arity=4);a.def(d,"$format",A=function(a,b,c){return this.$raise(m("::","NotImplementedError"),""+h(f,"SyntaxHighlighter")+" subclass "+this.$class()+" must implement the #format method")},A.$$arity=3);a.def(d,"$write_stylesheet?",x=function(a){return l},x.$$arity=1);a.def(d,"$write_stylesheet",
1191
+ B=function(a,b){return this.$raise(m("::","NotImplementedError"),""+h(f,"SyntaxHighlighter")+" subclass "+this.$class()+" must implement the #write_stylesheet method since #write_stylesheet? returns true")},B.$$arity=2);a.defs(d,"$included",z=function(a){return a.$extend(h(f,"Config"))},z.$$arity=1);d.$private_class_method("included");(function(b,d){b=c(b,"Config");var e=[b].concat(d),f;a.def(b,"$register_for",f=function(b){var c;var d=a.slice.call(arguments,0,arguments.length);return p(h(e,"SyntaxHighlighter"),
1192
+ "register",[this].concat(a.to_a(p(d,"map",[],(c=function(a){null==a&&(a=l);return a.$to_s()},c.$$s=this,c.$$arity=1,c)))))},f.$$arity=-1)})(f[0],f);(function(d,e){d=c(d,"Factory");var f=[d].concat(e),g,k,n,r;a.def(d,"$register",g=function(c,d){var e;var f=a.slice.call(arguments,1,arguments.length);return p(f,"each",[],(e=function(d){var f=e.$$s||this;null==d&&(d=l);d=[d,c];p(f.$registry(),"[]=",a.to_a(d));return d[b(d.length,1)]},e.$$s=this,e.$$arity=1,e))},g.$$arity=-2);a.def(d,"$for",k=function(a){return this.$registry()["$[]"](a)},
1193
+ k.$$arity=1);a.def(d,"$create",n=function(a,b,c){var d;null==b&&(b="html5");null==c&&(c=q([],{}));return t(d=this.$for(a))?(t(m("::","Class")["$==="](d))&&(d=d.$new(a,b,c)),t(d.$name())||this.$raise(m("::","NameError"),""+d.$class()+" must specify a value for `name'"),d):l},n.$$arity=-2);d.$private();a.def(d,"$registry",r=function(){return this.$raise(m("::","NotImplementedError"),""+h(f,"Factory")+" subclass "+this.$class()+" must implement the #registry method")},r.$$arity=0)})(f[0],f);(function(b,
1194
+ $super,c){b=u(b,$super,"CustomFactory");c=[b].concat(c);var d;b.$include(h(c,"Factory"));a.def(b,"$initialize",d=function(a){var b;null==a&&(a=l);return this.registry=t(b=a)?b:q([],{})},d.$$arity=-1);b.$private();return b.$attr_reader("registry")})(f[0],null,f);(function(b,d){b=c(b,"DefaultFactory");var e=[b].concat(d),f;b.$include(h(e,"Factory"));a.class_variable_set(e[0],"@@registry",q([],{}));b.$private();a.def(b,"$registry",f=function(){var a;return null==(a=e[0].$$cvars["@@registry"])?l:a},f.$$arity=
1195
+ 0);h(e,"RUBY_ENGINE")["$=="]("opal")||l})(f[0],f);(function(a,$super,b){a=u(a,$super,"DefaultFactoryProxy");b=[a].concat(b);a.$include(h(b,"DefaultFactory"));h(b,"RUBY_ENGINE")["$=="]("opal");return l})(f[0],h(f,"CustomFactory"),f);(function(c,$super,d){c=u(c,$super,"Base");d=[c].concat(d);var e;c.$$prototype.pre_class=l;c.$include(h(d,"SyntaxHighlighter"));return(a.def(c,"$format",e=function(c,d,e){var f,g,h=l,k=l,n=k=h=l;h=t(e["$[]"]("nowrap"))?""+this.pre_class+" highlight nowrap":""+this.pre_class+
1196
+ " highlight";return t(k=e["$[]"]("transform"))?(k["$[]"](h=q(["class"],{"class":h}),k=t(d)?q(["data-lang"],{"data-lang":d}):q([],{})),t(d=k.$delete("data-lang"))&&(n=["data-lang",d],p(k,"[]=",a.to_a(n)),n[b(n.length,1)]),"<pre"+p(h,"map",[],(f=function(a,b){null==a&&(a=l);null==b&&(b=l);return" "+a+'="'+b+'"'},f.$$s=this,f.$$arity=2,f)).$join()+"><code"+p(k,"map",[],(g=function(a,b){null==a&&(a=l);null==b&&(b=l);return" "+a+'="'+b+'"'},g.$$s=this,g.$$arity=2,g)).$join()+">"+c.$content()+"</code></pre>"):
1197
+ '<pre class="'+h+'"><code'+(t(d)?' data-lang="'+d+'"':"")+">"+c.$content()+"</code></pre>"},e.$$arity=3),l)&&"format"})(f[0],null,f);d.$extend(h(f,"DefaultFactory"))})(d[0],d)})(k[0],k);g.$require("asciidoctor/syntax_highlighter.rb/../syntax_highlighter/highlightjs");h(k,"RUBY_ENGINE")["$=="]("opal");return l};Opal.modules["asciidoctor/timings"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}var g=[],k=a.nil,l=a.const_get_qualified,m=a.const_get_relative,
1198
+ h=a.module,c=a.klass,q=a.hash2,p=a.send,t=a.truthy,u=a.gvars;a.add_stubs("$now $[]= $- $delete $reduce $+ $[] $> $time $puts $sprintf $to_f $read_parse $convert $read_parse_convert $private $const_defined? $== $clock_gettime".split(" "));return function(d,e){d=[h(d,"Asciidoctor")].concat(e);(function(d,$super,e){d=c(d,$super,"Timings");var f=[d].concat(e),g,h,n,r,v,A,x,B,z,C,D,E,F,G,H,L,S,M,I;d.$$prototype.timers=d.$$prototype.log=k;a.def(d,"$initialize",g=function(){this.log=q([],{});return this.timers=
1199
+ q([],{})},g.$$arity=0);a.def(d,"$start",h=function(c){c=[c,this.$now()];p(this.timers,"[]=",a.to_a(c));return c[b(c.length,1)]},h.$$arity=1);a.def(d,"$record",n=function(c){c=[c,b(this.$now(),this.timers.$delete(c))];p(this.log,"[]=",a.to_a(c));return c[b(c.length,1)]},n.$$arity=1);a.def(d,"$time",r=function(b){var c;var d=k;d=a.slice.call(arguments,0,arguments.length);d=p(d,"reduce",[0],(c=function(a,b){var d=c.$$s||this,e;null==d.log&&(d.log=k);null==a&&(a=k);null==b&&(b=k);b=t(e=d.log["$[]"](b))?
1200
+ e:0;return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)},c.$$s=this,c.$$arity=2,c));return t("number"===typeof d?0<d:d["$>"](0))?d:k},r.$$arity=-1);a.def(d,"$read",v=function(){return this.$time("read")},v.$$arity=0);a.def(d,"$parse",A=function(){return this.$time("parse")},A.$$arity=0);a.def(d,"$read_parse",x=function(){return this.$time("read","parse")},x.$$arity=0);a.def(d,"$convert",B=function(){return this.$time("convert")},B.$$arity=0);a.def(d,"$read_parse_convert",z=function(){return this.$time("read",
1201
+ "parse","convert")},z.$$arity=0);a.def(d,"$write",C=function(){return this.$time("write")},C.$$arity=0);a.def(d,"$total",D=function(){return this.$time("read","parse","convert","write")},D.$$arity=0);a.def(d,"$print_report",E=function(a,b){null==u.stdout&&(u.stdout=k);null==a&&(a=u.stdout);null==b&&(b=k);t(b)&&a.$puts("Input file: "+b);a.$puts(" Time to read and parse source: "+this.$sprintf("%05.5f",this.$read_parse().$to_f()));a.$puts(" Time to convert document: "+this.$sprintf("%05.5f",this.$convert().$to_f()));
1202
+ return a.$puts(" Total time (read, parse and convert): "+this.$sprintf("%05.5f",this.$read_parse_convert().$to_f()))},E.$$arity=-1);d.$private();return t(t(F=l("::","Process")["$const_defined?"]("CLOCK_MONOTONIC",!1))?((G=l("::","Process","skip_raise"))&&(H=G,H)&&(L=H)&&((S=L.$clock_gettime)&&!S.$$stub||L["$respond_to_missing?"]("clock_gettime"))?"method":k)["$=="]("method"):F)?(a.const_set(f[0],"CLOCK_ID",l(l("::","Process"),"CLOCK_MONOTONIC")),(a.def(d,"$now",M=function(){return l("::","Process").$clock_gettime(m(f,
1203
+ "CLOCK_ID"))},M.$$arity=0),k)&&"now"):(a.def(d,"$now",I=function(){return l("::","Time").$now()},I.$$arity=0),k)&&"now"})(d[0],null,d)}(g[0],g)};Opal.modules["asciidoctor/converter/composite"]=function(a){var b=[],g=a.nil,k=a.const_get_qualified,l=a.const_get_relative,m=a.module,h=a.klass,c=a.hash2,q=a.send,p=a.truthy;a.add_stubs("$attr_reader $each $respond_to? $composed $init_backend_traits $backend_traits $new $find_converter $[]= $- $convert $converter_for $node_name $[] $handles? $raise".split(" "));
1204
+ return function(b,d){b=[m(b,"Asciidoctor")].concat(d);(function(b,$super,d){b=h(b,$super,"CompositeConverter");[b].concat(d);var f,l,n,m;b.$$prototype.converter_cache=b.$$prototype.converters=g;b.$attr_reader("converters");a.def(b,"$initialize",f=function(b,d,f){var h,l;var n=a.slice.call(arguments,1,arguments.length);var m=a.extract_kwargs(n);if(null==m)m=c([],{});else if(!m.$$is_hash)throw a.ArgumentError.$new("expected kwargs");m=m.$$smap.backend_traits_source;null==m&&(m=g);this.backend=b;q(this.converters=
1205
+ n,"each",[],(h=function(a){var b=h.$$s||this;null==a&&(a=g);return p(a["$respond_to?"]("composed"))?a.$composed(b):g},h.$$s=this,h.$$arity=1,h));p(m)&&this.$init_backend_traits(m.$backend_traits());return this.converter_cache=q(k("::","Hash"),"new",[],(l=function(b,c){var d=l.$$s||this;null==b&&(b=g);null==c&&(c=g);c=[c,d.$find_converter(c)];q(b,"[]=",a.to_a(c));b=c.length;b="number"===typeof b?b-1:b["$-"](1);return c[b]},l.$$s=this,l.$$arity=2,l))},f.$$arity=-2);a.def(b,"$convert",l=function(a,b,
1206
+ c){var d;null==b&&(b=g);null==c&&(c=g);return this.$converter_for(b=p(d=b)?d:a.$node_name()).$convert(a,b,c)},l.$$arity=-2);a.def(b,"$converter_for",n=function(a){return this.converter_cache["$[]"](a)},n.$$arity=1);return(a.def(b,"$find_converter",m=function(b){try{var c;q(this.converters,"each",[],(c=function(c){null==c&&(c=g);if(p(c["$handles?"](b)))a.ret(c);else return g},c.$$s=this,c.$$arity=1,c));return this.$raise("Could not find a converter to handle transform: "+b)}catch(y){if(y===a.returner)return y.$v;
1207
+ throw y;}},m.$$arity=1),g)&&"find_converter"})(l(b,"Converter"),k(l(b,"Converter"),"Base"),b)}(b[0],b)};Opal.modules["asciidoctor/converter/html5"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?a>b:a["$>"](b)}function k(a,b){return"number"===typeof a&&"number"===typeof b?a+b:a["$+"](b)}function l(a,b){return"number"===typeof a&&"number"===typeof b?a<=b:a["$<="](b)}function m(a,b){return"number"===
1208
+ typeof a&&"number"===typeof b?a<b:a["$<"](b)}var h=[],c=a.nil,q=a.const_get_qualified,p=a.const_get_relative,t=a.module,u=a.klass,n=a.send,e=a.hash2,f=a.truthy,x=a.gvars;a.add_stubs("$register_for $default= $- $== $[] $init_backend_traits $node_name $=== $convert_inline_quoted $convert_paragraph $convert_inline_anchor $convert_section $convert_listing $convert_literal $convert_ulist $convert_olist $convert_dlist $convert_admonition $convert_colist $convert_embedded $convert_example $convert_floating_title $convert_image $convert_inline_break $convert_inline_button $convert_inline_callout $convert_inline_footnote $convert_inline_image $convert_inline_indexterm $convert_inline_kbd $convert_inline_menu $convert_open $convert_page_break $convert_preamble $convert_quote $convert_sidebar $convert_stem $convert_table $convert_thematic_break $convert_verse $convert_video $convert_document $convert_toc $convert_pass $convert_audio $empty? $attr $attr? $<< $include? $sub_replacements $gsub $extname $slice $length $doctitle $normalize_web_path $primary_stylesheet_data $instance $read_contents $syntax_highlighter $size $docinfo $id $sections? $doctype $role? $role $join $noheader $convert $converter $generate_manname_section $header? $notitle $title $header $each $authors $> $name $email $sub_macros $+ $downcase $concat $content $footnotes? $! $footnotes $index $text $nofooter $docinfo? $[]= $delete_at $inspect $!= $to_i $attributes $document $sections $level $caption $captioned_title $numbered $<= $< $sectname $sectnum $convert_outline $title? $icon_uri $compact $media_uri $option? $append_boolean_attribute $style $items $blocks? $text? $chomp $safe $read_svg_contents $alt $image_uri $encode_attribute_value $append_link_constraint_attrs $highlight? $to_sym $format $* $count $start_with? $end_with? $list_marker_keyword $parent $warn $logger $context $error $new $columns $to_h $rows $colspan $rowspan $unshift $shift $pop $split $nil_or_empty? $type $catalog $get_root_document $xreftext $target $reftext $chop $sub $match $private $upcase $nested? $parent_document $to_s $handles? $send".split(" "));
1209
+ return function(d,h){d=[t(d,"Asciidoctor")].concat(h);(function(d,$super,h){d=u(d,$super,"Html5Converter");var r=[d].concat(h),v,t,A,z,B,C,D,E,F,J,G,H,L,S,I,N,M,O,P,U,R,ba,ea,ka,Z,ja,oa,pa,ha,za,Ca,ua,Na,Ia,Ea,Sa,Qa,Pa,Fa,Ga,Wa,Ta,Xa,Ya,bb,Za,ia;h=c;d.$$prototype.void_element_slash=d.$$prototype.xml_mode=d.$$prototype.refs=d.$$prototype.resolving_xref=c;d.$register_for("html5");h=[["",""]];n(a.const_set(r[0],"QUOTE_TAGS",e("monospaced emphasis strong double single mark superscript subscript asciimath latexmath".split(" "),
1210
+ {monospaced:["<code>","</code>",!0],emphasis:["<em>","</em>",!0],strong:["<strong>","</strong>",!0],"double":["&#8220;","&#8221;"],single:["&#8216;","&#8217;"],mark:["<mark>","</mark>",!0],superscript:["<sup>","</sup>",!0],subscript:["<sub>","</sub>",!0],asciimath:["\\$","\\$"],latexmath:["\\(","\\)"]})),"default=",a.to_a(h));h[b(h.length,1)];a.const_set(r[0],"DropAnchorRx",/<(?:a\b[^>]*|\/a)>/);a.const_set(r[0],"StemBreakRx",/ *\\\n(?:\\?\n)*|\n\n+/);p(r,"RUBY_ENGINE")["$=="]("opal")?(a.const_set(r[0],
1211
+ "SvgPreambleRx",new RegExp("^"+p(r,"CC_ALL")+"*?(?=<svg[\\s>])")),a.const_set(r[0],"SvgStartTagRx",/^<svg(?:\s[^>]*)?>/)):c;a.const_set(r[0],"DimensionAttributeRx",new RegExp("\\s(?:width|height|style)=([\"'])"+p(r,"CC_ANY")+"*?\\1"));a.def(d,"$initialize",v=function(a,b){null==b&&(b=e([],{}));this.backend=a;b["$[]"]("htmlsyntax")["$=="]("xml")?(a="xml",this.xml_mode=!0,this.void_element_slash="/"):(a="html",this.xml_mode=c,this.void_element_slash="");return this.$init_backend_traits(e(["basebackend",
1212
+ "filetype","htmlsyntax","outfilesuffix","supports_templates"],{basebackend:"html",filetype:"html",htmlsyntax:a,outfilesuffix:".html",supports_templates:!0}))},v.$$arity=-2);a.def(d,"$convert",t=function(b,d,e){var f=t.$$p,g;f&&(t.$$p=null);var h=0;var k=arguments.length;for(g=Array(k);h<k;h++)g[h]=arguments[h];null==d&&(d=b.$node_name());null==e&&(e=c);h=d;return"inline_quoted"["$==="](h)?this.$convert_inline_quoted(b):"paragraph"["$==="](h)?this.$convert_paragraph(b):"inline_anchor"["$==="](h)?this.$convert_inline_anchor(b):
1213
+ "section"["$==="](h)?this.$convert_section(b):"listing"["$==="](h)?this.$convert_listing(b):"literal"["$==="](h)?this.$convert_literal(b):"ulist"["$==="](h)?this.$convert_ulist(b):"olist"["$==="](h)?this.$convert_olist(b):"dlist"["$==="](h)?this.$convert_dlist(b):"admonition"["$==="](h)?this.$convert_admonition(b):"colist"["$==="](h)?this.$convert_colist(b):"embedded"["$==="](h)?this.$convert_embedded(b):"example"["$==="](h)?this.$convert_example(b):"floating_title"["$==="](h)?this.$convert_floating_title(b):
1214
+ "image"["$==="](h)?this.$convert_image(b):"inline_break"["$==="](h)?this.$convert_inline_break(b):"inline_button"["$==="](h)?this.$convert_inline_button(b):"inline_callout"["$==="](h)?this.$convert_inline_callout(b):"inline_footnote"["$==="](h)?this.$convert_inline_footnote(b):"inline_image"["$==="](h)?this.$convert_inline_image(b):"inline_indexterm"["$==="](h)?this.$convert_inline_indexterm(b):"inline_kbd"["$==="](h)?this.$convert_inline_kbd(b):"inline_menu"["$==="](h)?this.$convert_inline_menu(b):
1215
+ "open"["$==="](h)?this.$convert_open(b):"page_break"["$==="](h)?this.$convert_page_break(b):"preamble"["$==="](h)?this.$convert_preamble(b):"quote"["$==="](h)?this.$convert_quote(b):"sidebar"["$==="](h)?this.$convert_sidebar(b):"stem"["$==="](h)?this.$convert_stem(b):"table"["$==="](h)?this.$convert_table(b):"thematic_break"["$==="](h)?this.$convert_thematic_break(b):"verse"["$==="](h)?this.$convert_verse(b):"video"["$==="](h)?this.$convert_video(b):"document"["$==="](h)?this.$convert_document(b):
1216
+ "toc"["$==="](h)?this.$convert_toc(b):"pass"["$==="](h)?this.$convert_pass(b):"audio"["$==="](h)?this.$convert_audio(b):n(this,a.find_super_dispatcher(this,"convert",t,!1),g,f)},t.$$arity=-2);a.def(d,"$convert_document",A=function(d){var h,l,w,m,q,v=c,t=c,u=c,y=c,A=c,x=c,z=c,B=c,C=c,D=B=c,E=c,I=B=B=B=c,F=c,J=D=F=c,G=c,H=c;t=t=x=c;v="<br"+(t=this.void_element_slash)+">";f((u=d.$attr("asset-uri-scheme","https"))["$empty?"]())||(u=""+u+":");y=""+u+"//cdnjs.cloudflare.com/ajax/libs";A=d["$attr?"]("linkcss");
1217
+ x=f(d["$attr?"]("max-width"))?' style="max-width: '+d.$attr("max-width")+';"':"";z=["<!DOCTYPE html>"];B=f(d["$attr?"]("nolang"))?"":' lang="'+d.$attr("lang","en")+'"';z["$<<"]("<html"+(f(this.xml_mode)?' xmlns="http://www.w3.org/1999/xhtml"':"")+B+">");z["$<<"]('<head>\n<meta charset="'+d.$attr("encoding","UTF-8")+'"'+t+'>\n<meta http-equiv="X-UA-Compatible" content="IE=edge"'+t+'>\n<meta name="viewport" content="width=device-width, initial-scale=1.0"'+t+'>\n<meta name="generator" content="Asciidoctor '+
1218
+ d.$attr("asciidoctor-version")+'"'+t+">");if(f(d["$attr?"]("app-name")))z["$<<"]('<meta name="application-name" content="'+d.$attr("app-name")+'"'+t+">");if(f(d["$attr?"]("description")))z["$<<"]('<meta name="description" content="'+d.$attr("description")+'"'+t+">");if(f(d["$attr?"]("keywords")))z["$<<"]('<meta name="keywords" content="'+d.$attr("keywords")+'"'+t+">");if(f(d["$attr?"]("authors")))z["$<<"]('<meta name="author" content="'+(f((C=d.$sub_replacements(d.$attr("authors")))["$include?"]("<"))?
1219
+ C.$gsub(p(r,"XmlSanitizeRx"),""):C)+'"'+t+">");if(f(d["$attr?"]("copyright")))z["$<<"]('<meta name="copyright" content="'+d.$attr("copyright")+'"'+t+">");f(d["$attr?"]("favicon"))&&(f((B=d.$attr("favicon"))["$empty?"]())?(B="favicon.ico",D="image/x-icon"):D=f(E=p(r,"Helpers").$extname(B,c))?E["$=="](".ico")?"image/x-icon":"image/"+E.$slice(1,E.$length()):"image/x-icon",z["$<<"]('<link rel="icon" type="'+D+'" href="'+B+'"'+t+">"));z["$<<"]("<title>"+d.$doctitle(e(["sanitize","use_fallback"],{sanitize:!0,
1220
+ use_fallback:!0}))+"</title>");if(f(p(r,"DEFAULT_STYLESHEET_KEYS")["$include?"](d.$attr("stylesheet")))){if(f(B=d.$attr("webfonts")))z["$<<"]('<link rel="stylesheet" href="'+u+"//fonts.googleapis.com/css?family="+(f(B["$empty?"]())?"Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700":B)+'"'+t+">");if(f(A))z["$<<"]('<link rel="stylesheet" href="'+d.$normalize_web_path(p(r,"DEFAULT_STYLESHEET_NAME"),d.$attr("stylesdir",""),!1)+'"'+
1221
+ t+">");else z["$<<"]("<style>\n"+p(r,"Stylesheets").$instance().$primary_stylesheet_data()+"\n</style>")}else if(f(d["$attr?"]("stylesheet")))if(f(A))z["$<<"]('<link rel="stylesheet" href="'+d.$normalize_web_path(d.$attr("stylesheet"),d.$attr("stylesdir",""))+'"'+t+">");else z["$<<"]("<style>\n"+d.$read_contents(d.$attr("stylesheet"),e(["start","warn_on_failure","label"],{start:d.$attr("stylesdir"),warn_on_failure:!0,label:"stylesheet"}))+"\n</style>");if(f(d["$attr?"]("icons","font")))if(f(d["$attr?"]("iconfont-remote")))z["$<<"]('<link rel="stylesheet" href="'+
1222
+ d.$attr("iconfont-cdn",""+y+"/font-awesome/"+p(r,"FONT_AWESOME_VERSION")+"/css/font-awesome.min.css")+'"'+t+">");else B=""+d.$attr("iconfont-name","font-awesome")+".css",z["$<<"]('<link rel="stylesheet" href="'+d.$normalize_web_path(B,d.$attr("stylesdir",""),!1)+'"'+t+">");if(f(B=d.$syntax_highlighter()))z["$<<"](I=z.$size());if(!f((F=d.$docinfo())["$empty?"]()))z["$<<"](F);z["$<<"]("</head>");F=f(d.$id())?' id="'+d.$id()+'"':"";J=f(f(h=f(l=f(w=D=d["$sections?"]())?d["$attr?"]("toc-class"):w)?d["$attr?"]("toc"):
1223
+ l)?d["$attr?"]("toc-placement","auto"):h)?[d.$doctype(),d.$attr("toc-class"),"toc-"+d.$attr("toc-position","header")]:[d.$doctype()];if(f(d["$role?"]()))J["$<<"](d.$role());z["$<<"]("<body"+F+' class="'+J.$join(" ")+'">');if(!f((F=d.$docinfo("header"))["$empty?"]()))z["$<<"](F);if(!f(d.$noheader())){z["$<<"]('<div id="header"'+x+">");if(d.$doctype()["$=="]("manpage")){z["$<<"]("<h1>"+d.$doctitle()+" Manual Page</h1>");if(f(f(h=f(l=D)?d["$attr?"]("toc"):l)?d["$attr?"]("toc-placement","auto"):h))z["$<<"]('<div id="toc" class="'+
1224
+ d.$attr("toc-class","toc")+'">\n<div id="toctitle">'+d.$attr("toc-title")+"</div>\n"+d.$converter().$convert(d,"outline")+"\n</div>");if(f(d["$attr?"]("manpurpose")))z["$<<"](this.$generate_manname_section(d))}else{if(f(d["$header?"]())){if(!f(d.$notitle()))z["$<<"]("<h1>"+d.$header().$title()+"</h1>");G=[];H=1;n(d.$authors(),"each",[],(m=function(a){null==a&&(a=c);G["$<<"]('<span id="author'+(f(g(H,1))?H:"")+'" class="author">'+d.$sub_replacements(a.$name())+"</span>"+v);if(f(a.$email()))G["$<<"]('<span id="email'+
1225
+ (f(g(H,1))?H:"")+'" class="email">'+d.$sub_macros(a.$email())+"</span>"+v);return H=k(H,1)},m.$$s=this,m.$$arity=1,m));if(f(d["$attr?"]("revnumber")))G["$<<"]('<span id="revnumber">'+(f(h=d.$attr("version-label"))?h:"").$downcase()+" "+d.$attr("revnumber")+(f(d["$attr?"]("revdate"))?",":"")+"</span>");if(f(d["$attr?"]("revdate")))G["$<<"]('<span id="revdate">'+d.$attr("revdate")+"</span>");if(f(d["$attr?"]("revremark")))G["$<<"](""+v+'<span id="revremark">'+d.$attr("revremark")+"</span>");f(G["$empty?"]())||
1226
+ (z["$<<"]('<div class="details">'),z.$concat(G),z["$<<"]("</div>"))}if(f(f(h=f(l=D)?d["$attr?"]("toc"):l)?d["$attr?"]("toc-placement","auto"):h))z["$<<"]('<div id="toc" class="'+d.$attr("toc-class","toc")+'">\n<div id="toctitle">'+d.$attr("toc-title")+"</div>\n"+d.$converter().$convert(d,"outline")+"\n</div>")}z["$<<"]("</div>")}z["$<<"]('<div id="content"'+x+">\n"+d.$content()+"\n</div>");f(f(h=d["$footnotes?"]())?d["$attr?"]("nofootnotes")["$!"]():h)&&(z["$<<"]('<div id="footnotes"'+x+">\n<hr"+
1227
+ t+">"),n(d.$footnotes(),"each",[],(q=function(a){null==a&&(a=c);return z["$<<"]('<div class="footnote" id="_footnotedef_'+a.$index()+'">\n<a href="#_footnoteref_'+a.$index()+'">'+a.$index()+"</a>. "+a.$text()+"\n</div>")},q.$$s=this,q.$$arity=1,q)),z["$<<"]("</div>"));if(!f(d.$nofooter())){z["$<<"]('<div id="footer"'+x+">");z["$<<"]('<div id="footer-text">');if(f(d["$attr?"]("revnumber")))z["$<<"](""+d.$attr("version-label")+" "+d.$attr("revnumber")+v);if(f(f(h=d["$attr?"]("last-update-label"))?d["$attr?"]("reproducible")["$!"]():
1228
+ h))z["$<<"](""+d.$attr("last-update-label")+" "+d.$attr("docdatetime"));z["$<<"]("</div>");z["$<<"]("</div>")}if(f(B)&&(f(B["$docinfo?"]("head"))?(x=[I,B.$docinfo("head",d,e(["cdn_base_url","linkcss","self_closing_tag_slash"],{cdn_base_url:y,linkcss:A,self_closing_tag_slash:t}))],n(z,"[]=",a.to_a(x)),x[b(x.length,1)]):z.$delete_at(I),f(B["$docinfo?"]("footer"))))z["$<<"](B.$docinfo("footer",d,e(["cdn_base_url","linkcss","self_closing_tag_slash"],{cdn_base_url:y,linkcss:A,self_closing_tag_slash:t})));
1229
+ f(d["$attr?"]("stem"))&&(t=d.$attr("eqnums","none"),f(t["$empty?"]())&&(t="AMS"),t=' equationNumbers: { autoNumber: "'+t+'" } ',z["$<<"]('<script type="text/x-mathjax-config">\nMathJax.Hub.Config({\n messageStyle: "none",\n tex2jax: {\n inlineMath: ['+p(r,"INLINE_MATH_DELIMITERS")["$[]"]("latexmath").$inspect()+"],\n displayMath: ["+p(r,"BLOCK_MATH_DELIMITERS")["$[]"]("latexmath").$inspect()+'],\n ignoreClass: "nostem|nolatexmath"\n },\n asciimath2jax: {\n delimiters: ['+p(r,"BLOCK_MATH_DELIMITERS")["$[]"]("asciimath").$inspect()+
1230
+ '],\n ignoreClass: "nostem|noasciimath"\n },\n TeX: {'+t+'}\n})\nMathJax.Hub.Register.StartupHook("AsciiMath Jax Ready", function () {\n MathJax.InputJax.AsciiMath.postfilterHooks.Add(function (data, node) {\n if ((node = data.script.parentNode) && (node = node.parentNode) && node.classList.contains("stemblock")) {\n data.math.root.display = "block"\n }\n return data\n })\n})\n\x3c/script>\n<script src="'+y+"/mathjax/"+p(r,"MATHJAX_VERSION")+'/MathJax.js?config=TeX-MML-AM_HTMLorMML">\x3c/script>'));
1231
+ if(!f((F=d.$docinfo("footer"))["$empty?"]()))z["$<<"](F);z["$<<"]("</body>");z["$<<"]("</html>");return z.$join(p(r,"LF"))},A.$$arity=1);a.def(d,"$convert_embedded",z=function(a){var b,d,e,g,h=c,k=c,l=c;h=[];if(a.$doctype()["$=="]("manpage")){if(f(a.$notitle())||(k=f(a.$id())?' id="'+a.$id()+'"':"",h["$<<"]("<h1"+k+">"+a.$doctitle()+" Manual Page</h1>")),f(a["$attr?"]("manpurpose")))h["$<<"](this.$generate_manname_section(a))}else f(f(b=a["$header?"]())?a.$notitle()["$!"]():b)&&(k=f(a.$id())?' id="'+
1232
+ a.$id()+'"':"",h["$<<"]("<h1"+k+">"+a.$header().$title()+"</h1>"));if(f(f(b=f(d=f(e=a["$sections?"]())?a["$attr?"]("toc"):e)?(l=a.$attr("toc-placement"))["$!="]("macro"):d)?l["$!="]("preamble"):b))h["$<<"]('<div id="toc" class="toc">\n<div id="toctitle">'+a.$attr("toc-title")+"</div>\n"+a.$converter().$convert(a,"outline")+"\n</div>");h["$<<"](a.$content());f(f(b=a["$footnotes?"]())?a["$attr?"]("nofootnotes")["$!"]():b)&&(h["$<<"]('<div id="footnotes">\n<hr'+this.void_element_slash+">"),n(a.$footnotes(),
1233
+ "each",[],(g=function(a){null==a&&(a=c);return h["$<<"]('<div class="footnote" id="_footnotedef_'+a.$index()+'">\n<a href="#_footnoteref_'+a.$index()+'">'+a.$index()+"</a>. "+a.$text()+"\n</div>")},g.$$s=this,g.$$arity=1,g)),h["$<<"]("</div>"));return h.$join(p(r,"LF"))},z.$$arity=1);a.def(d,"$convert_outline",B=function(a,b){var d,g,h,k=c,w=c,q=c,v=c;null==b&&(b=e([],{}));if(!f(a["$sections?"]()))return c;k=f(d=b["$[]"]("sectnumlevels"))?d:(f(g=a.$document().$attributes()["$[]"]("sectnumlevels"))?
1234
+ g:3).$to_i();w=f(d=b["$[]"]("toclevels"))?d:(f(g=a.$document().$attributes()["$[]"]("toclevels"))?g:2).$to_i();q=a.$sections();v=['<ul class="sectlevel'+q["$[]"](0).$level()+'">'];n(q,"each",[],(h=function(b){var d=h.$$s||this,g,n=c,q=c;null==b&&(b=c);var t=b.$level();if(f(b.$caption()))var u=b.$captioned_title();else f(f(g=b.$numbered())?l(t,k):g)?f(f(g=m(t,2))?a.$document().$doctype()["$=="]("book"):g)?(u=b.$sectname(),u="chapter"["$==="](u)?(f(n=a.$document().$attributes()["$[]"]("chapter-signifier"))?
1235
+ ""+n+" ":"")+b.$sectnum()+" "+b.$title():"part"["$==="](u)?(f(n=a.$document().$attributes()["$[]"]("part-signifier"))?""+n+" ":"")+b.$sectnum(c,":")+" "+b.$title():""+b.$sectnum()+" "+b.$title()):u=""+b.$sectnum()+" "+b.$title():u=b.$title();f(u["$include?"]("<a"))&&(u=u.$gsub(p(r,"DropAnchorRx"),""));return f(f(g=m(t,w))?q=d.$convert_outline(b,e(["toclevels","sectnumlevels"],{toclevels:w,sectnumlevels:k})):g)?(v["$<<"]('<li><a href="#'+b.$id()+'">'+u+"</a>"),v["$<<"](q),v["$<<"]("</li>")):v["$<<"]('<li><a href="#'+
1236
+ b.$id()+'">'+u+"</a></li>")},h.$$s=this,h.$$arity=1,h));v["$<<"]("</ul>");return v.$join(p(r,"LF"))},B.$$arity=-2);a.def(d,"$convert_section",C=function(a){var b,d=c,e=c;var g=a.$document().$attributes();var h=a.$level();if(f(a.$caption()))var n=a.$captioned_title();else f(f(n=a.$numbered())?l(h,(f(b=g["$[]"]("sectnumlevels"))?b:3).$to_i()):n)?f(f(n=m(h,2))?a.$document().$doctype()["$=="]("book"):n)?(n=a.$sectname(),n="chapter"["$==="](n)?(f(d=g["$[]"]("chapter-signifier"))?""+d+" ":"")+a.$sectnum()+
1237
+ " "+a.$title():"part"["$==="](n)?(f(d=g["$[]"]("part-signifier"))?""+d+" ":"")+a.$sectnum(c,":")+" "+a.$title():""+a.$sectnum()+" "+a.$title()):n=""+a.$sectnum()+" "+a.$title():n=a.$title();f(a.$id())?(d=' id="'+(b=a.$id())+'"',f(g["$[]"]("sectlinks"))&&(n='<a class="link" href="#'+b+'">'+n+"</a>"),f(g["$[]"]("sectanchors"))&&(n=g["$[]"]("sectanchors")["$=="]("after")?""+n+'<a class="anchor" href="#'+b+'"></a>':'<a class="anchor" href="#'+b+'"></a>'+n)):d="";return h["$=="](0)?"<h1"+d+' class="sect0'+
1238
+ (f(e=a.$role())?" "+e:"")+'">'+n+"</h1>\n"+a.$content():'<div class="sect'+h+(f(e=a.$role())?" "+e:"")+'">\n<h'+k(h,1)+d+">"+n+"</h"+k(h,1)+">\n"+(h["$=="](1)?'<div class="sectionbody">\n'+a.$content()+"\n</div>":a.$content())+"\n</div>"},C.$$arity=1);a.def(d,"$convert_admonition",D=function(a){var b,d=c;var e=f(a.$id())?' id="'+a.$id()+'"':"";var g=a.$attr("name");var h=f(a["$title?"]())?'<div class="title">'+a.$title()+"</div>\n":"";var k=f(a.$document()["$attr?"]("icons"))?f(f(b=a.$document()["$attr?"]("icons",
1239
+ "font"))?a["$attr?"]("icon")["$!"]():b)?'<i class="fa icon-'+g+'" title="'+a.$attr("textlabel")+'"></i>':'<img src="'+a.$icon_uri(g)+'" alt="'+a.$attr("textlabel")+'"'+this.void_element_slash+">":'<div class="title">'+a.$attr("textlabel")+"</div>";return"<div"+e+' class="admonitionblock '+g+(f(d=a.$role())?" "+d:"")+'">\n<table>\n<tr>\n<td class="icon">\n'+k+'\n</td>\n<td class="content">\n'+h+a.$content()+"\n</td>\n</tr>\n</table>\n</div>"},D.$$arity=1);a.def(d,"$convert_audio",E=function(a){var b;
1240
+ var c=this.xml_mode;var d=f(a.$id())?' id="'+a.$id()+'"':"";var e=' class="'+["audioblock",a.$role()].$compact().$join(" ")+'"';var g=f(a["$title?"]())?'<div class="title">'+a.$title()+"</div>\n":"";var h=a.$attr("start");var k=a.$attr("end");h=f(f(b=h)?b:k)?"#t="+(f(b=h)?b:"")+(f(k)?","+k:""):"";return"<div"+d+e+">\n"+g+'<div class="content">\n<audio src="'+a.$media_uri(a.$attr("target"))+h+'"'+(f(a["$option?"]("autoplay"))?this.$append_boolean_attribute("autoplay",c):"")+(f(a["$option?"]("nocontrols"))?
1241
+ "":this.$append_boolean_attribute("controls",c))+(f(a["$option?"]("loop"))?this.$append_boolean_attribute("loop",c):"")+">\nYour browser does not support the audio tag.\n</audio>\n</div>\n</div>"},E.$$arity=1);a.def(d,"$convert_colist",F=function(a){var b,d=c,e=c,g=c,h=g=c,l=c;d=[];e=f(a.$id())?' id="'+a.$id()+'"':"";g=["colist",a.$style(),a.$role()].$compact();g=' class="'+g.$join(" ")+'"';d["$<<"]("<div"+e+g+">");if(f(a["$title?"]()))d["$<<"]('<div class="title">'+a.$title()+"</div>");if(f(a.$document()["$attr?"]("icons"))){d["$<<"]("<table>");
1242
+ var m=[a.$document()["$attr?"]("icons","font"),0];h=m[0];l=m[1];m;n(a.$items(),"each",[],(b=function(e){var g=b.$$s||this;null==g.void_element_slash&&(g.void_element_slash=c);null==e&&(e=c);l=k(l,1);g=f(h)?'<i class="conum" data-value="'+l+'"></i><b>'+l+"</b>":'<img src="'+a.$icon_uri("callouts/"+l)+'" alt="'+l+'"'+g.void_element_slash+">";return d["$<<"]("<tr>\n<td>"+g+"</td>\n<td>"+e.$text()+(f(e["$blocks?"]())?k(p(r,"LF"),e.$content()):"")+"</td>\n</tr>")},b.$$s=this,b.$$arity=1,b));d["$<<"]("</table>")}else d["$<<"]("<ol>"),
1243
+ n(a.$items(),"each",[],(m=function(a){null==a&&(a=c);return d["$<<"]("<li>\n<p>"+a.$text()+"</p>"+(f(a["$blocks?"]())?k(p(r,"LF"),a.$content()):"")+"\n</li>")},m.$$s=this,m.$$arity=1,m)),d["$<<"]("</ol>");d["$<<"]("</div>");return d.$join(p(r,"LF"))},F.$$arity=1);a.def(d,"$convert_dlist",J=function(a){var b,d,e,g,h=c,k=c,l=c,m=l=l=c,w=k=c;h=[];k=f(a.$id())?' id="'+a.$id()+'"':"";l=a.$style();l="qanda"["$==="](l)?["qlist","qanda",a.$role()]:"horizontal"["$==="](l)?["hdlist",a.$role()]:["dlist",a.$style(),
1244
+ a.$role()];l=' class="'+l.$compact().$join(" ")+'"';h["$<<"]("<div"+k+l+">");if(f(a["$title?"]()))h["$<<"]('<div class="title">'+a.$title()+"</div>");l=a.$style();"qanda"["$==="](l)?(h["$<<"]("<ol>"),n(a.$items(),"each",[],(b=function(a,d){var e=b.$$s||this,g;null==a&&(a=c);null==d&&(d=c);h["$<<"]("<li>");n(a,"each",[],(g=function(a){null==a&&(a=c);return h["$<<"]("<p><em>"+a.$text()+"</em></p>")},g.$$s=e,g.$$arity=1,g));if(f(d)){if(f(d["$text?"]()))h["$<<"]("<p>"+d.$text()+"</p>");if(f(d["$blocks?"]()))h["$<<"](d.$content())}return h["$<<"]("</li>")},
1245
+ b.$$s=this,b.$$arity=2,b)),h["$<<"]("</ol>")):"horizontal"["$==="](l)?(m=this.void_element_slash,h["$<<"]("<table>"),f(f(d=a["$attr?"]("labelwidth"))?d:a["$attr?"]("itemwidth"))&&(h["$<<"]("<colgroup>"),k=f(a["$attr?"]("labelwidth"))?' style="width: '+a.$attr("labelwidth").$chomp("%")+'%;"':"",h["$<<"]("<col"+k+m+">"),k=f(a["$attr?"]("itemwidth"))?' style="width: '+a.$attr("itemwidth").$chomp("%")+'%;"':"",h["$<<"]("<col"+k+m+">"),h["$<<"]("</colgroup>")),n(a.$items(),"each",[],(e=function(b,d){var g=
1246
+ e.$$s||this,k,l=c;null==b&&(b=c);null==d&&(d=c);h["$<<"]("<tr>");h["$<<"]('<td class="hdlist1'+(f(a["$option?"]("strong"))?" strong":"")+'">');l=!0;n(b,"each",[],(k=function(a){null==a&&(a=c);if(!f(l))h["$<<"]("<br"+m+">");h["$<<"](a.$text());return l=c},k.$$s=g,k.$$arity=1,k));h["$<<"]("</td>");h["$<<"]('<td class="hdlist2">');if(f(d)){if(f(d["$text?"]()))h["$<<"]("<p>"+d.$text()+"</p>");if(f(d["$blocks?"]()))h["$<<"](d.$content())}h["$<<"]("</td>");return h["$<<"]("</tr>")},e.$$s=this,e.$$arity=
1247
+ 2,e)),h["$<<"]("</table>")):(h["$<<"]("<dl>"),w=f(a.$style())?"":' class="hdlist1"',n(a.$items(),"each",[],(g=function(a,b){var d=g.$$s||this,e;null==a&&(a=c);null==b&&(b=c);n(a,"each",[],(e=function(a){null==a&&(a=c);return h["$<<"]("<dt"+w+">"+a.$text()+"</dt>")},e.$$s=d,e.$$arity=1,e));if(!f(b))return c;h["$<<"]("<dd>");if(f(b["$text?"]()))h["$<<"]("<p>"+b.$text()+"</p>");if(f(b["$blocks?"]()))h["$<<"](b.$content());return h["$<<"]("</dd>")},g.$$s=this,g.$$arity=2,g)),h["$<<"]("</dl>"));h["$<<"]("</div>");
1248
+ return h.$join(p(r,"LF"))},J.$$arity=1);a.def(d,"$convert_example",G=function(a){var b=c;var d=f(a.$id())?' id="'+a.$id()+'"':"";if(f(a["$option?"]("collapsible"))){var e=f(a.$role())?' class="'+a.$role()+'"':"";b=f(a["$title?"]())?'<summary class="title">'+a.$title()+"</summary>":'<summary class="title">Details</summary>';return"<details"+d+e+(f(a["$option?"]("open"))?" open":"")+">\n"+b+'\n<div class="content">\n'+a.$content()+"\n</div>\n</details>"}e=f(a["$title?"]())?'<div class="title">'+a.$captioned_title()+
1249
+ "</div>\n":"";return"<div"+d+' class="exampleblock'+(f(b=a.$role())?" "+b:"")+'">\n'+e+'<div class="content">\n'+a.$content()+"\n</div>\n</div>"},G.$$arity=1);a.def(d,"$convert_floating_title",H=function(a){var b="h"+k(a.$level(),1);var c=f(a.$id())?' id="'+a.$id()+'"':"";var d=[a.$style(),a.$role()].$compact();return"<"+b+c+' class="'+d.$join(" ")+'">'+a.$title()+"</"+b+">"},H.$$arity=1);a.def(d,"$convert_image",L=function(a){var b,d,e,g=c,h=c,k=c;var l=a.$attr("target");var n=f(a["$attr?"]("width"))?
1250
+ ' width="'+a.$attr("width")+'"':"";var w=f(a["$attr?"]("height"))?' height="'+a.$attr("height")+'"':"";f(f(b=f(d=f(e=a["$attr?"]("format","svg"))?e:l["$include?"](".svg"))?m(a.$document().$safe(),q(p(r,"SafeMode"),"SECURE")):d)?f(d=g=a["$option?"]("inline"))?d:h=a["$option?"]("interactive"):b)&&(f(g)?k=f(b=this.$read_svg_contents(a,l))?b:'<span class="alt">'+a.$alt()+"</span>":f(h)&&(k=f(a["$attr?"]("fallback"))?'<img src="'+a.$image_uri(a.$attr("fallback"))+'" alt="'+this.$encode_attribute_value(a.$alt())+
1251
+ '"'+n+w+this.void_element_slash+">":'<span class="alt">'+a.$alt()+"</span>",k='<object type="image/svg+xml" data="'+a.$image_uri(l)+'"'+n+w+">"+k+"</object>"));k=f(b=k)?b:'<img src="'+a.$image_uri(l)+'" alt="'+this.$encode_attribute_value(a.$alt())+'"'+n+w+this.void_element_slash+">";f(a["$attr?"]("link"))&&(k='<a class="image" href="'+a.$attr("link")+'"'+this.$append_link_constraint_attrs(a).$join()+">"+k+"</a>");b=f(a.$id())?' id="'+a.$id()+'"':"";l=["imageblock"];if(f(a["$attr?"]("float")))l["$<<"](a.$attr("float"));
1252
+ if(f(a["$attr?"]("align")))l["$<<"]("text-"+a.$attr("align"));if(f(a.$role()))l["$<<"](a.$role());l=' class="'+l.$join(" ")+'"';a=f(a["$title?"]())?'\n<div class="title">'+a.$captioned_title()+"</div>":"";return"<div"+b+l+'>\n<div class="content">\n'+k+"\n</div>"+a+"\n</div>"},L.$$arity=1);a.def(d,"$convert_listing",S=function(d){var g,h=c,l=c,p=c,m=c,w=c,q=c,r=c;var v=f(g=d["$option?"]("nowrap"))?g:d.$document()["$attr?"]("prewrap")["$!"]();d.$style()["$=="]("source")?(h=d.$attr("language"),f(l=
1253
+ d.$document().$syntax_highlighter())?(p=f(l["$highlight?"]())?e(["css_mode","style"],{css_mode:(f(g=(m=d.$document().$attributes())["$[]"](""+l.$name()+"-css"))?g:"class").$to_sym(),style:m["$[]"](""+l.$name()+"-style")}):e([],{}),v=["nowrap",v],n(p,"[]=",a.to_a(v)),v[b(v.length,1)]):(w='<pre class="highlight'+(f(v)?" nowrap":"")+'"><code'+(f(h)?' class="language-'+h+'" data-lang="'+h+'"':"")+">",q="</code></pre>")):(w="<pre"+(f(v)?' class="nowrap"':"")+">",q="</pre>");v=f(d.$id())?' id="'+d.$id()+
1254
+ '"':"";m=f(d["$title?"]())?'<div class="title">'+d.$captioned_title()+"</div>\n":"";return"<div"+v+' class="listingblock'+(f(r=d.$role())?" "+r:"")+'">\n'+m+'<div class="content">\n'+(f(l)?l.$format(d,h,p):k(k(w,f(g=d.$content())?g:""),q))+"\n</div>\n</div>"},S.$$arity=1);a.def(d,"$convert_literal",I=function(a){var b,d=c;var e=f(a.$id())?' id="'+a.$id()+'"':"";var g=f(a["$title?"]())?'<div class="title">'+a.$title()+"</div>\n":"";var h=f(b=a.$document()["$attr?"]("prewrap")["$!"]())?b:a["$option?"]("nowrap");
1255
+ return"<div"+e+' class="literalblock'+(f(d=a.$role())?" "+d:"")+'">\n'+g+'<div class="content">\n<pre'+(f(h)?' class="nowrap"':"")+">"+a.$content()+"</pre>\n</div>\n</div>"},I.$$arity=1);a.def(d,"$convert_stem",N=function(d){var e,g,h=c,k=c,l=c,m=c,q=c,w=e=c,v=c;h=f(d.$id())?' id="'+d.$id()+'"':"";k=f(d["$title?"]())?'<div class="title">'+d.$title()+"</div>\n":"";e=p(r,"BLOCK_MATH_DELIMITERS")["$[]"](l=d.$style().$to_sym());var t=a.to_ary(e);m=null==t[0]?c:t[0];q=null==t[1]?c:t[1];e;f(e=d.$content())?
1256
+ (f((t=l["$=="]("asciimath"))?e["$include?"](p(r,"LF")):l["$=="]("asciimath"))&&(w=""+p(r,"LF")+"<br"+this.void_element_slash+">",e=n(e,"gsub",[p(r,"StemBreakRx")],(g=function(){var a,d=""+q,e=b(((a=x["~"])===c?c:a["$[]"](0)).$count(p(r,"LF")),1);a="number"===typeof w&&"number"===typeof e?w*e:w["$*"](e);return d+a+p(r,"LF")+m},g.$$s=this,g.$$arity=0,g))),f(f(t=e["$start_with?"](m))?e["$end_with?"](q):t)||(e=""+m+e+q)):e="";return"<div"+h+' class="stemblock'+(f(v=d.$role())?" "+v:"")+'">\n'+k+'<div class="content">\n'+
1257
+ e+"\n</div>\n</div>"},N.$$arity=1);a.def(d,"$convert_olist",M=function(a){var b,d=c,e=c,g=c,h=e=g=c,k=g=c;d=[];e=f(a.$id())?' id="'+a.$id()+'"':"";g=["olist",a.$style(),a.$role()].$compact();g=' class="'+g.$join(" ")+'"';d["$<<"]("<div"+e+g+">");if(f(a["$title?"]()))d["$<<"]('<div class="title">'+a.$title()+"</div>");e=f(h=a.$list_marker_keyword())?' type="'+h+'"':"";g=f(a["$attr?"]("start"))?' start="'+a.$attr("start")+'"':"";k=f(a["$option?"]("reversed"))?this.$append_boolean_attribute("reversed",
1258
+ this.xml_mode):"";d["$<<"]('<ol class="'+a.$style()+'"'+e+g+k+">");n(a.$items(),"each",[],(b=function(a){null==a&&(a=c);if(f(a.$id()))d["$<<"]('<li id="'+a.$id()+'"'+(f(a.$role())?' class="'+a.$role()+'"':"")+">");else if(f(a.$role()))d["$<<"]('<li class="'+a.$role()+'">');else d["$<<"]("<li>");d["$<<"]("<p>"+a.$text()+"</p>");if(f(a["$blocks?"]()))d["$<<"](a.$content());return d["$<<"]("</li>")},b.$$s=this,b.$$arity=1,b));d["$<<"]("</ol>");d["$<<"]("</div>");return d.$join(p(r,"LF"))},M.$$arity=
1259
+ 1);a.def(d,"$convert_open",O=function(a){var b,d,e=c;if((d=a.$style())["$=="]("abstract")){if(f(a.$parent()["$=="](a.$document())?a.$document().$doctype()["$=="]("book"):a.$parent()["$=="](a.$document())))return this.$logger().$warn("abstract block cannot be used in a document without a title when doctype is book. Excluding block content."),"";var h=f(a.$id())?' id="'+a.$id()+'"':"";var k=f(a["$title?"]())?'<div class="title">'+a.$title()+"</div>\n":"";return"<div"+h+' class="quoteblock abstract'+
1260
+ (f(e=a.$role())?" "+e:"")+'">\n'+k+"<blockquote>\n"+a.$content()+"\n</blockquote>\n</div>"}if(f((b=d["$=="]("partintro"))?f(h=f(k=g(a.$level(),0))?k:a.$parent().$context()["$!="]("section"))?h:a.$document().$doctype()["$!="]("book"):d["$=="]("partintro")))return this.$logger().$error("partintro block can only be used when doctype is book and must be a child of a book part. Excluding block content."),"";h=f(a.$id())?' id="'+a.$id()+'"':"";k=f(a["$title?"]())?'<div class="title">'+a.$title()+"</div>\n":
1261
+ "";return"<div"+h+' class="openblock'+(f(f(b=d)?d["$!="]("open"):b)?" "+d:"")+(f(e=a.$role())?" "+e:"")+'">\n'+k+'<div class="content">\n'+a.$content()+"\n</div>\n</div>"},O.$$arity=1);a.def(d,"$convert_page_break",P=function(a){return'<div style="page-break-after: always;"></div>'},P.$$arity=1);a.def(d,"$convert_paragraph",U=function(a){var b=f(a.$role())?(f(a.$id())?' id="'+a.$id()+'"':"")+' class="paragraph '+a.$role()+'"':f(a.$id())?' id="'+a.$id()+'" class="paragraph"':' class="paragraph"';return f(a["$title?"]())?
1262
+ "<div"+b+'>\n<div class="title">'+a.$title()+"</div>\n<p>"+a.$content()+"</p>\n</div>":"<div"+b+">\n<p>"+a.$content()+"</p>\n</div>"},U.$$arity=1);a.alias(d,"convert_pass","content_only");a.def(d,"$convert_preamble",R=function(a){var b,d,e=c;var g=f(f(b=f(d=(e=a.$document())["$attr?"]("toc-placement","preamble"))?e["$sections?"]():d)?e["$attr?"]("toc"):b)?'\n<div id="toc" class="'+e.$attr("toc-class","toc")+'">\n<div id="toctitle">'+e.$attr("toc-title")+"</div>\n"+e.$converter().$convert(e,"outline")+
1263
+ "\n</div>":"";return'<div id="preamble">\n<div class="sectionbody">\n'+a.$content()+"\n</div>"+g+"\n</div>"},R.$$arity=1);a.def(d,"$convert_quote",ba=function(a){var b=f(a.$id())?' id="'+a.$id()+'"':"";var d=' class="'+["quoteblock",a.$role()].$compact().$join(" ")+'"';var e=f(a["$title?"]())?'\n<div class="title">'+a.$title()+"</div>":"";var g=f(a["$attr?"]("attribution"))?a.$attr("attribution"):c;var h=f(a["$attr?"]("citetitle"))?a.$attr("citetitle"):c;if(f(f(g)?g:h)){var k=f(h)?"<cite>"+h+"</cite>":
1264
+ "";g=f(g)?"&#8212; "+g+(f(h)?"<br"+this.void_element_slash+">\n":""):"";k='\n<div class="attribution">\n'+g+k+"\n</div>"}else k="";return"<div"+b+d+">"+e+"\n<blockquote>\n"+a.$content()+"\n</blockquote>"+k+"\n</div>"},ba.$$arity=1);a.def(d,"$convert_thematic_break",ea=function(a){return"<hr"+this.void_element_slash+">"},ea.$$arity=1);a.def(d,"$convert_sidebar",ka=function(a){var b=c;var d=f(a.$id())?' id="'+a.$id()+'"':"";var e=f(a["$title?"]())?'<div class="title">'+a.$title()+"</div>\n":"";return"<div"+
1265
+ d+' class="sidebarblock'+(f(b=a.$role())?" "+b:"")+'">\n<div class="content">\n'+e+a.$content()+"\n</div>\n</div>"},ka.$$arity=1);a.def(d,"$convert_table",Z=function(a){var b,d,e,h=c,l=c,m=c,q=c,v=m=c,w=m=c,t=v=q=w=c;h=[];l=f(a.$id())?' id="'+a.$id()+'"':"";(m=a.$attr("frame","all","table-frame"))["$=="]("topbot")&&(m="ends");q=["tableblock","frame-"+m,"grid-"+a.$attr("grid","all","table-grid")];if(f(m=a.$attr("stripes",c,"table-stripes")))q["$<<"]("stripes-"+m);v=[];if(f(f(b=m=a["$option?"]("autowidth"))?
1266
+ a["$attr?"]("width")["$!"]():b))q["$<<"]("fit-content");else if((w=a.$attr("tablepcwidth"))["$=="](100))q["$<<"]("stretch");else v["$<<"]("width: "+w+"%;");if(f(a["$attr?"]("float")))q["$<<"](a.$attr("float"));if(f(w=a.$role()))q["$<<"](w);q=' class="'+q.$join(" ")+'"';v=f(v["$empty?"]())?"":' style="'+v.$join(" ")+'"';h["$<<"]("<table"+l+q+v+">");if(f(a["$title?"]()))h["$<<"]('<caption class="title">'+a.$captioned_title()+"</caption>");f(g(a.$attr("rowcount"),0))&&(t=this.void_element_slash,h["$<<"]("<colgroup>"),
1267
+ f(m)?h=k(h,p(r,"Array").$new(a.$columns().$size(),"<col"+t+">")):n(a.$columns(),"each",[],(d=function(a){null==a&&(a=c);return h["$<<"](f(a["$option?"]("autowidth"))?"<col"+t+">":'<col style="width: '+a.$attr("colpcwidth")+'%;"'+t+">")},d.$$s=this,d.$$arity=1,d)),h["$<<"]("</colgroup>"),n(a.$rows().$to_h(),"each",[],(e=function(b,d){var g=e.$$s||this,k;null==b&&(b=c);null==d&&(d=c);if(f(d["$empty?"]()))return c;h["$<<"]("<t"+b+">");n(d,"each",[],(k=function(d){var e=k.$$s||this,g;null==d&&(d=c);h["$<<"]("<tr>");
1268
+ n(d,"each",[],(g=function(d){var e,g=c;null==d&&(d=c);if(b["$=="]("head"))g=d.$text();else{var k=d.$style();g="asciidoc"["$==="](k)?'<div class="content">'+d.$content()+"</div>":"literal"["$==="](k)?'<div class="literal"><pre>'+d.$text()+"</pre></div>":f((g=d.$content())["$empty?"]())?"":'<p class="tableblock">'+g.$join('</p>\n<p class="tableblock">')+"</p>"}k=f(f(e=b["$=="]("head"))?e:d.$style()["$=="]("header"))?"th":"td";e=' class="tableblock halign-'+d.$attr("halign")+" valign-"+d.$attr("valign")+
1269
+ '"';var l=f(d.$colspan())?' colspan="'+d.$colspan()+'"':"";d=f(d.$rowspan())?' rowspan="'+d.$rowspan()+'"':"";var n=f(a.$document()["$attr?"]("cellbgcolor"))?' style="background-color: '+a.$document().$attr("cellbgcolor")+';"':"";return h["$<<"]("<"+k+e+l+d+n+">"+g+"</"+k+">")},g.$$s=e,g.$$arity=1,g));return h["$<<"]("</tr>")},k.$$s=g,k.$$arity=1,k));return h["$<<"]("</t"+b+">")},e.$$s=this,e.$$arity=2,e)));h["$<<"]("</table>");return h.$join(p(r,"LF"))},Z.$$arity=1);a.def(d,"$convert_toc",ja=function(a){var b,
1270
+ d,g=c;if(!f(f(b=f(d=(g=a.$document())["$attr?"]("toc-placement","macro"))?g["$sections?"]():d)?g["$attr?"]("toc"):b))return"\x3c!-- toc disabled --\x3e";f(a.$id())?(b=' id="'+a.$id()+'"',d=' id="'+a.$id()+'title"'):(b=' id="toc"',d=' id="toctitle"');var h=f(a["$title?"]())?a.$title():g.$attr("toc-title");var k=f(a["$attr?"]("levels"))?a.$attr("levels").$to_i():c;a=f(a["$role?"]())?a.$role():g.$attr("toc-class","toc");return"<div"+b+' class="'+a+'">\n<div'+d+' class="title">'+h+"</div>\n"+g.$converter().$convert(g,
1271
+ "outline",e(["toclevels"],{toclevels:k}))+"\n</div>"},ja.$$arity=1);a.def(d,"$convert_ulist",oa=function(a){var b,d=c,e=c,g=c,h=c,k=c,l=c,m=c;d=[];e=f(a.$id())?' id="'+a.$id()+'"':"";g=["ulist",a.$style(),a.$role()].$compact();h=k="";f(l=a["$option?"]("checklist"))?(g.$unshift(g.$shift(),"checklist"),m=' class="checklist"',f(a["$option?"]("interactive"))?f(this.xml_mode)?(h='<input type="checkbox" data-item-complete="1" checked="checked"/> ',k='<input type="checkbox" data-item-complete="0"/> '):(h=
1272
+ '<input type="checkbox" data-item-complete="1" checked> ',k='<input type="checkbox" data-item-complete="0"> '):f(a.$document()["$attr?"]("icons","font"))?(h='<i class="fa fa-check-square-o"></i> ',k='<i class="fa fa-square-o"></i> '):(h="&#10003; ",k="&#10063; ")):m=f(a.$style())?' class="'+a.$style()+'"':"";d["$<<"]("<div"+e+' class="'+g.$join(" ")+'">');if(f(a["$title?"]()))d["$<<"]('<div class="title">'+a.$title()+"</div>");d["$<<"]("<ul"+m+">");n(a.$items(),"each",[],(b=function(a){var b;null==
1273
+ a&&(a=c);if(f(a.$id()))d["$<<"]('<li id="'+a.$id()+'"'+(f(a.$role())?' class="'+a.$role()+'"':"")+">");else if(f(a.$role()))d["$<<"]('<li class="'+a.$role()+'">');else d["$<<"]("<li>");if(f(f(b=l)?a["$attr?"]("checkbox"):b))d["$<<"]("<p>"+(f(a["$attr?"]("checked"))?h:k)+a.$text()+"</p>");else d["$<<"]("<p>"+a.$text()+"</p>");if(f(a["$blocks?"]()))d["$<<"](a.$content());return d["$<<"]("</li>")},b.$$s=this,b.$$arity=1,b));d["$<<"]("</ul>");d["$<<"]("</div>");return d.$join(p(r,"LF"))},oa.$$arity=1);
1274
+ a.def(d,"$convert_verse",pa=function(a){var b=f(a.$id())?' id="'+a.$id()+'"':"";var d=' class="'+["verseblock",a.$role()].$compact().$join(" ")+'"';var e=f(a["$title?"]())?'\n<div class="title">'+a.$title()+"</div>":"";var g=f(a["$attr?"]("attribution"))?a.$attr("attribution"):c;var h=f(a["$attr?"]("citetitle"))?a.$attr("citetitle"):c;if(f(f(g)?g:h)){var k=f(h)?"<cite>"+h+"</cite>":"";g=f(g)?"&#8212; "+g+(f(h)?"<br"+this.void_element_slash+">\n":""):"";k='\n<div class="attribution">\n'+g+k+"\n</div>"}else k=
1275
+ "";return"<div"+b+d+">"+e+'\n<pre class="content">'+a.$content()+"</pre>"+k+"\n</div>"},pa.$$arity=1);a.def(d,"$convert_video",ha=function(b){var d,e,g=this,h=c,k=c,l=c,n=c,p=c,m=c,q=c,r=c,v=c,w=c,t=c,u=c,y=c,A=c,x=c,z=c,B=c,C=c,D=c,E=c,I=c,F=c,J=c,G=c,H=c,L=c,S=c,N=c,M=c,V=c,O=c,P=c,ca=c,U=c,R=c;h=g.xml_mode;k=f(b.$id())?' id="'+b.$id()+'"':"";l=["videoblock"];if(f(b["$attr?"]("float")))l["$<<"](b.$attr("float"));if(f(b["$attr?"]("align")))l["$<<"]("text-"+b.$attr("align"));if(f(b.$role()))l["$<<"](b.$role());
1276
+ n=' class="'+l.$join(" ")+'"';p=f(b["$title?"]())?'\n<div class="title">'+b.$title()+"</div>":"";m=f(b["$attr?"]("width"))?' width="'+b.$attr("width")+'"':"";q=f(b["$attr?"]("height"))?' height="'+b.$attr("height")+'"':"";return function(){r=b.$attr("poster");if("vimeo"["$==="](r))return f((v=b.$document().$attr("asset-uri-scheme","https"))["$empty?"]())||(v=""+v+":"),w=f(b["$attr?"]("start"))?"#at="+b.$attr("start"):"",t=["?"],u=f(b["$option?"]("autoplay"))?""+(f(d=t.$pop())?d:"&amp;")+"autoplay=1":
1277
+ "",y=f(b["$option?"]("loop"))?""+(f(d=t.$pop())?d:"&amp;")+"loop=1":"",A=f(b["$option?"]("muted"))?""+(f(d=t.$pop())?d:"&amp;")+"muted=1":"","<div"+k+n+">"+p+'\n<div class="content">\n<iframe'+m+q+' src="'+v+"//player.vimeo.com/video/"+b.$attr("target")+u+y+A+w+'" frameborder="0"'+(f(b["$option?"]("nofullscreen"))?"":g.$append_boolean_attribute("allowfullscreen",h))+"></iframe>\n</div>\n</div>";if("youtube"["$==="](r))return f((v=b.$document().$attr("asset-uri-scheme","https"))["$empty?"]())||(v=
1278
+ ""+v+":"),x=f(b["$option?"]("related"))?1:0,z=f(b["$attr?"]("start"))?"&amp;start="+b.$attr("start"):"",B=f(b["$attr?"]("end"))?"&amp;end="+b.$attr("end"):"",u=f(b["$option?"]("autoplay"))?"&amp;autoplay=1":"",y=f(C=b["$option?"]("loop"))?"&amp;loop=1":"",D=f(b["$option?"]("muted"))?"&amp;mute=1":"",E=f(b["$option?"]("nocontrols"))?"&amp;controls=0":"",f(b["$option?"]("nofullscreen"))?(I="&amp;fs=0",F=""):(I="",F=g.$append_boolean_attribute("allowfullscreen",h)),J=f(b["$option?"]("modest"))?"&amp;modestbranding=1":
1279
+ "",G=f(b["$attr?"]("theme"))?"&amp;theme="+b.$attr("theme"):"",H=f(b["$attr?"]("lang"))?"&amp;hl="+b.$attr("lang"):"",e=b.$attr("target").$split("/",2),d=a.to_ary(e),L=null==d[0]?c:d[0],S=null==d[1]?c:d[1],e,f(S=f(d=S)?d:b.$attr("list"))?N="&amp;list="+S:(e=L.$split(",",2),d=a.to_ary(e),L=null==d[0]?c:d[0],M=null==d[1]?c:d[1],e,N=f(M=f(d=M)?d:b.$attr("playlist"))?"&amp;playlist="+M:f(C)?"&amp;playlist="+L:""),"<div"+k+n+">"+p+'\n<div class="content">\n<iframe'+m+q+' src="'+v+"//www.youtube.com/embed/"+
1280
+ L+"?rel="+x+z+B+u+y+D+E+N+I+J+G+H+'" frameborder="0"'+F+"></iframe>\n</div>\n</div>";V=f((O=b.$attr("poster"))["$nil_or_empty?"]())?"":' poster="'+b.$media_uri(O)+'"';P=f((O=b.$attr("preload"))["$nil_or_empty?"]())?"":' preload="'+O+'"';ca=b.$attr("start");U=b.$attr("end");R=f(f(d=ca)?d:U)?"#t="+(f(d=ca)?d:"")+(f(U)?","+U:""):"";return"<div"+k+n+">"+p+'\n<div class="content">\n<video src="'+b.$media_uri(b.$attr("target"))+R+'"'+m+q+V+(f(b["$option?"]("autoplay"))?g.$append_boolean_attribute("autoplay",
1281
+ h):"")+(f(b["$option?"]("muted"))?g.$append_boolean_attribute("muted",h):"")+(f(b["$option?"]("nocontrols"))?"":g.$append_boolean_attribute("controls",h))+(f(b["$option?"]("loop"))?g.$append_boolean_attribute("loop",h):"")+P+">\nYour browser does not support the video tag.\n</video>\n</div>\n</div>"}()},ha.$$arity=1);a.def(d,"$convert_inline_anchor",za=function(a){var b,d,e=this,g=c,h=c,k=c,l=c,n=c,m=c,q=c,v=c;return function(){g=a.$type();if("xref"["$==="](g))return f(h=a.$attributes()["$[]"]("path"))?
1282
+ (k=e.$append_link_constraint_attrs(a,f(a.$role())?[' class="'+a.$role()+'"']:[]).$join(),l=f(b=a.$text())?b:h):(k=f(a.$role())?' class="'+a.$role()+'"':"",f(l=a.$text())||(f(p(r,"AbstractNode")["$==="](n=f(b=(e.refs=f(d=e.refs)?d:a.$document().$catalog()["$[]"]("refs"))["$[]"](m=a.$attributes()["$[]"]("refid")))?b:f(m["$nil_or_empty?"]())?q=e.$get_root_document(a):c))?f(f(b=e.resolving_xref=f(d=e.resolving_xref)?d:v=!0)?v:b)?(f(l=n.$xreftext(a.$attr("xrefstyle",c,!0)))?f(l["$include?"]("<a"))&&(l=
1283
+ l.$gsub(p(r,"DropAnchorRx"),"")):l=f(q)?"[^top]":"["+m+"]",e.resolving_xref=c):l=f(q)?"[^top]":"["+m+"]":l="["+m+"]")),'<a href="'+a.$target()+'"'+k+">"+l+"</a>";if("ref"["$==="](g))return'<a id="'+a.$id()+'"></a>';if("link"["$==="](g)){k=f(a.$id())?[' id="'+a.$id()+'"']:[];if(f(a.$role()))k["$<<"](' class="'+a.$role()+'"');if(f(a["$attr?"]("title")))k["$<<"](' title="'+a.$attr("title")+'"');return'<a href="'+a.$target()+'"'+e.$append_link_constraint_attrs(a,k).$join()+">"+a.$text()+"</a>"}if("bibref"["$==="](g))return'<a id="'+
1284
+ a.$id()+'"></a>['+(f(b=a.$reftext())?b:a.$id())+"]";e.$logger().$warn("unknown anchor type: "+a.$type().$inspect());return c}()},za.$$arity=1);a.def(d,"$convert_inline_break",Ca=function(a){return""+a.$text()+"<br"+this.void_element_slash+">"},Ca.$$arity=1);a.def(d,"$convert_inline_button",ua=function(a){return'<b class="button">'+a.$text()+"</b>"},ua.$$arity=1);a.def(d,"$convert_inline_callout",Na=function(a){if(f(a.$document()["$attr?"]("icons","font")))return'<i class="conum" data-value="'+a.$text()+
1285
+ '"></i><b>('+a.$text()+")</b>";if(f(a.$document()["$attr?"]("icons"))){var b=a.$icon_uri("callouts/"+a.$text());return'<img src="'+b+'" alt="'+a.$text()+'"'+this.void_element_slash+">"}return f(q("::","Array")["$==="](b=a.$attributes()["$[]"]("guard")))?'&lt;!--<b class="conum">('+a.$text()+")</b>--&gt;":""+b+'<b class="conum">('+a.$text()+")</b>"},Na.$$arity=1);a.def(d,"$convert_inline_footnote",Ia=function(a){var b;if(f(b=a.$attr("index"))){if(a.$type()["$=="]("xref"))return'<sup class="footnoteref">[<a class="footnote" href="#_footnotedef_'+
1286
+ b+'" title="View footnote.">'+b+"</a>]</sup>";a=f(a.$id())?' id="_footnote_'+a.$id()+'"':"";return'<sup class="footnote"'+a+'>[<a id="_footnoteref_'+b+'" class="footnote" href="#_footnotedef_'+b+'" title="View footnote.">'+b+"</a>]</sup>"}return a.$type()["$=="]("xref")?'<sup class="footnoteref red" title="Unresolved footnote reference.">['+a.$text()+"]</sup>":c},Ia.$$arity=1);a.def(d,"$convert_inline_image",Ea=function(a){var b,d,g,h,k,l=c,v=c,t=b=c,w=c,u=c,y=c,A=c,x=c,z=c;if(f((b=(l=f(d=a.$type())?
1287
+ d:"image")["$=="]("icon"))?a.$document()["$attr?"]("icons","font"):(l=f(d=a.$type())?d:"image")["$=="]("icon")))v="fa fa-"+a.$target(),n(e(["size","rotate","flip"],{size:"fa-",rotate:"fa-rotate-",flip:"fa-flip-"}),"each",[],(g=function(b,d){null==b&&(b=c);null==d&&(d=c);return f(a["$attr?"](b))?v=""+v+" "+d+a.$attr(b):c},g.$$s=this,g.$$arity=2,g)),b=f(a["$attr?"]("title"))?' title="'+a.$attr("title")+'"':"",t='<i class="'+v+'"'+b+"></i>";else if(f((b=l["$=="]("icon"))?a.$document()["$attr?"]("icons")["$!"]():
1288
+ l["$=="]("icon")))t="["+a.$alt()+"]";else{w=a.$target();u=[];if(f(a["$attr?"]("width")))u["$<<"](' width="'+a.$attr("width")+'"');if(f(a["$attr?"]("height")))u["$<<"](' height="'+a.$attr("height")+'"');if(f(a["$attr?"]("title")))u["$<<"](' title="'+a.$attr("title")+'"');u=f(u["$empty?"]())?"":u.$join();f(f(b=f(d=f(h=l["$!="]("icon"))?f(k=a["$attr?"]("format","svg"))?k:w["$include?"](".svg"):h)?m(a.$document().$safe(),q(p(r,"SafeMode"),"SECURE")):d)?f(d=y=a["$option?"]("inline"))?d:A=a["$option?"]("interactive"):
1289
+ b)&&(f(y)?t=f(b=this.$read_svg_contents(a,w))?b:'<span class="alt">'+a.$alt()+"</span>":f(A)&&(x=f(a["$attr?"]("fallback"))?'<img src="'+a.$image_uri(a.$attr("fallback"))+'" alt="'+this.$encode_attribute_value(a.$alt())+'"'+u+this.void_element_slash+">":'<span class="alt">'+a.$alt()+"</span>",t='<object type="image/svg+xml" data="'+a.$image_uri(w)+'"'+u+">"+x+"</object>"));t=f(b=t)?b:'<img src="'+(l["$=="]("icon")?a.$icon_uri(w):a.$image_uri(w))+'" alt="'+this.$encode_attribute_value(a.$alt())+'"'+
1290
+ u+this.void_element_slash+">"}f(a["$attr?"]("link"))&&(t='<a class="image" href="'+a.$attr("link")+'"'+this.$append_link_constraint_attrs(a).$join()+">"+t+"</a>");v=f(z=a.$role())?f(a["$attr?"]("float"))?""+l+" "+a.$attr("float")+" "+z:""+l+" "+z:f(a["$attr?"]("float"))?""+l+" "+a.$attr("float"):l;return'<span class="'+v+'">'+t+"</span>"},Ea.$$arity=1);a.def(d,"$convert_inline_indexterm",Sa=function(a){return a.$type()["$=="]("visible")?a.$text():""},Sa.$$arity=1);a.def(d,"$convert_inline_kbd",Qa=
1291
+ function(a){var b;return(b=a.$attr("keys")).$size()["$=="](1)?"<kbd>"+b["$[]"](0)+"</kbd>":'<span class="keyseq"><kbd>'+b.$join("</kbd>+<kbd>")+"</kbd></span>"},Qa.$$arity=1);a.def(d,"$convert_inline_menu",Pa=function(a){var b=c,d=c;var e=f(a.$document()["$attr?"]("icons","font"))?'&#160;<i class="fa fa-angle-right caret"></i> ':'&#160;<b class="caret">&#8250;</b> ';var g="</b>"+e+'<b class="submenu">';var h=a.$attr("menu");return f((b=a.$attr("submenus"))["$empty?"]())?f(d=a.$attr("menuitem"))?'<span class="menuseq"><b class="menu">'+
1292
+ h+"</b>"+e+'<b class="menuitem">'+d+"</b></span>":'<b class="menuref">'+h+"</b>":'<span class="menuseq"><b class="menu">'+h+"</b>"+e+'<b class="submenu">'+b.$join(g)+"</b>"+e+'<b class="menuitem">'+a.$attr("menuitem")+"</b></span>"},Pa.$$arity=1);a.def(d,"$convert_inline_quoted",Fa=function(b){var d=p(r,"QUOTE_TAGS")["$[]"](b.$type());var e=a.to_ary(d);var g=null==e[0]?c:e[0];var h=null==e[1]?c:e[1];e=null==e[2]?c:e[2];d;return f(b.$id())?(d=f(b.$role())?' class="'+b.$role()+'"':"",f(e)?""+g.$chop()+
1293
+ ' id="'+b.$id()+'"'+d+">"+b.$text()+h:'<span id="'+b.$id()+'"'+d+">"+g+b.$text()+h+"</span>"):f(b.$role())?f(e)?""+g.$chop()+' class="'+b.$role()+'">'+b.$text()+h:'<span class="'+b.$role()+'">'+g+b.$text()+h+"</span>":""+g+b.$text()+h},Fa.$$arity=1);a.def(d,"$read_svg_contents",Ga=function(b,d){var g,h=c,k=c,l=c,m=c;if(f(h=b.$read_contents(d,e(["start","normalize","label","warn_if_empty"],{start:b.$document().$attr("imagesdir"),normalize:!0,label:"SVG",warn_if_empty:!0})))){if(f(h["$empty?"]()))return c;
1294
+ f(h["$start_with?"]("<svg"))||(h=h.$sub(p(r,"SvgPreambleRx"),""));k=l=m=c;n(["width","height"],"each",[],(g=function(a){var d,e;null==a&&(a=c);if(!f(b["$attr?"](a)))return c;if(!f(l)){if((m=f(d=m)?d:f(e=h.$match(p(r,"SvgStartTagRx")))?e:"no_match")["$=="]("no_match"))return c;l=(k=m["$[]"](0)).$gsub(p(r,"DimensionAttributeRx"),"")}return l=""+l.$chop()+" "+a+'="'+b.$attr(a)+'">'},g.$$s=this,g.$$arity=1,g));f(l)&&(h=""+l+h["$[]"](a.Range.$new(k.$length(),-1,!1)))}return h},Ga.$$arity=2);d.$private();
1295
+ a.def(d,"$append_boolean_attribute",Wa=function(a,b){return f(b)?" "+a+'="'+a+'"':" "+a},Wa.$$arity=2);a.def(d,"$append_link_constraint_attrs",Ta=function(a,b){var d,e=c,g;null==b&&(b=[]);f(a["$option?"]("nofollow"))&&(e="nofollow");if(f(g=a.$attributes()["$[]"]("window"))){if(b["$<<"](' target="'+g+'"'),f(f(d=g["$=="]("_blank"))?d:a["$option?"]("noopener")))b["$<<"](f(e)?' rel="'+e+' noopener"':' rel="noopener"')}else if(f(e))b["$<<"](' rel="'+e+'"');return b},Ta.$$arity=-2);a.def(d,"$encode_attribute_value",
1296
+ Xa=function(a){return f(a["$include?"]('"'))?a.$gsub('"',"&quot;"):a},Xa.$$arity=1);a.def(d,"$generate_manname_section",Ya=function(a){var b,d=c,e=c,g=c;var h=a.$attr("manname-title","Name");f(f(b=d=a.$sections()["$[]"](0))?(e=d.$title())["$=="](e.$upcase()):b)&&(h=h.$upcase());return"<h2"+(f(g=a.$attr("manname-id"))?' id="'+g+'"':"")+">"+h+'</h2>\n<div class="sectionbody">\n<p>'+a.$attr("mannames").$join(", ")+" - "+a.$attr("manpurpose")+"</p>\n</div>"},Ya.$$arity=1);a.def(d,"$get_root_document",
1297
+ bb=function(a){for(;f((a=a.$document())["$nested?"]());)a=a.$parent_document();return a},bb.$$arity=1);a.def(d,"$method_missing",Za=function(b,d){var e,g=Za.$$p,h=c,k;g&&(Za.$$p=null);var l=0;var p=arguments.length;for(k=Array(p);l<p;l++)k[l]=arguments[l];l=a.slice.call(arguments,1,arguments.length);return f(f(e=(h=b.$to_s())["$start_with?"]("convert_")["$!"]())?this["$handles?"](h):e)?n(this,"send",["convert_"+h].concat(a.to_a(l))):n(this,a.find_super_dispatcher(this,"method_missing",Za,!1),k,g)},
1298
+ Za.$$arity=-2);return(a.def(d,"$respond_to_missing?",ia=function(b,d){var e,g=c;a.slice.call(arguments,1,arguments.length);return f(e=(g=b.$to_s())["$start_with?"]("convert_")["$!"]())?this["$handles?"](g):e},ia.$$arity=-2),c)&&"respond_to_missing?"})(p(d,"Converter"),q(p(d,"Converter"),"Base"),d)}(h[0],h)};Opal.modules["asciidoctor/extensions"]=function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}function g(a,b){return"number"===typeof a&&"number"===typeof b?
1299
+ a+b:a["$+"](b)}function k(a,b){return"number"===typeof a&&"number"===typeof b?a>b:a["$>"](b)}function l(a,b){return"number"===typeof a&&"number"===typeof b?a<b:a["$<"](b)}var m=[],h=a.nil,c=a.const_get_qualified,q=a.const_get_relative,p=a.module,t=a.klass,u=a.truthy,n=a.hash2,e=a.send,f=a.hash;a.add_stubs("$== $[]= $config $- $const_defined? $singleton_class? $include $const_get $extend $attr_reader $merge $class $update $raise $document $doctype $[] $+ $level $delete $> $casecmp $new $title= $sectname= $special= $fetch $numbered= $! $key? $attr? $special $numbered $generate_id $title $id= $update_attributes $tr $basename $create_block $assign_caption $=== $parse_blocks $empty? $include? $sub_attributes $parse $each $define_method $unshift $shift $send $size $binding $receiver $define_singleton_method $instance_exec $to_proc $call $option $flatten $respond_to? $to_s $partition $to_i $<< $compact $inspect $attr_accessor $to_set $match? $resolve_regexp $method $register $values $groups $arity $activate $add_document_processor $any? $select $add_syntax_processor $to_sym $instance_variable_get $kind $private $join $map $split $capitalize $instance_variable_set $resolve_args $enable_dsl $singleton_class $process_block_given? $source_location $freeze $resolve_class $< $update_config $as_symbol $name $name= $pop $-@ $next_auto_id $generate_name".split(" "));
1300
+ q(m,"RUBY_ENGINE")["$=="]("opal")||h;return function(d,m){d=[p(d,"Asciidoctor")].concat(m);(function(d,m){d=p(d,"Extensions");m=[d].concat(m);(function(d,$super,f){d=t(d,$super,"Processor");var l=[d].concat(f),m,p,r,v,y,x,z,A,B,C,D,E;d.$$prototype.config=h;(function(c,d){[c].concat(d);var f,g,k;a.def(c,"$config",f=function(){var a;null==this.config&&(this.config=h);return this.config=u(a=this.config)?a:n([],{})},f.$$arity=0);a.def(c,"$option",g=function(c,d){c=[c,d];e(this.$config(),"[]=",a.to_a(c));
1301
+ return c[b(c.length,1)]},g.$$arity=2);a.def(c,"$enable_dsl",k=function(){return u(this["$const_defined?"]("DSL"))?u(this["$singleton_class?"]())?this.$include(this.$const_get("DSL")):this.$extend(this.$const_get("DSL")):h},k.$$arity=0);return a.alias(c,"use_dsl","enable_dsl")})(a.get_singleton_class(d),l);d.$attr_reader("config");a.def(d,"$initialize",m=function(a){null==a&&(a=n([],{}));return this.config=this.$class().$config().$merge(a)},m.$$arity=-1);a.def(d,"$update_config",p=function(a){return this.config.$update(a)},
1302
+ p.$$arity=1);a.def(d,"$process",r=function(b){a.slice.call(arguments,0,arguments.length);return this.$raise(c("::","NotImplementedError"),""+q(l,"Processor")+" subclass "+this.$class()+" must implement the #process method")},r.$$arity=-1);a.def(d,"$create_section",v=function(c,d,f,m){var p,r,v,t=h,y=h;null==m&&(m=n([],{}));var x=c.$document();var z=(r=x.$doctype())["$=="]("book");var A=u(p=m["$[]"]("level"))?p:g(c.$level(),1);if(u(v=f.$delete("style")))if(u(u(p=z)?v["$=="]("abstract"):p)){p=["chapter",
1303
+ 1];var B=p[0];A=p[1];p}else p=[v,!0],B=p[0],t=p[1],p,A["$=="](0)&&(A=1);else u(z)?B=A["$=="](0)?"part":u(k(A,1))?"section":"chapter":u(r["$=="]("manpage")?d.$casecmp("synopsis")["$=="](0):r["$=="]("manpage"))?(p=["synopsis",!0],B=p[0],t=p[1],p):B="section";r=q(l,"Section").$new(c,A);p=[d,B];r["$title="](p[0]);r["$sectname="](p[1]);p;u(t)?(y=[!0],e(r,"special=",a.to_a(y)),y[b(y.length,1)],u(m.$fetch("numbered",v["$=="]("appendix")))?(y=[!0],e(r,"numbered=",a.to_a(y)),y[b(y.length,1)]):u(u(p=m["$key?"]("numbered")["$!"]())?
1304
+ x["$attr?"]("sectnums","all"):p)&&(y=[u(u(p=z)?A["$=="](1):p)?"chapter":!0],e(r,"numbered=",a.to_a(y)),y[b(y.length,1)])):u(k(A,0))?u(m.$fetch("numbered",x["$attr?"]("sectnums")))&&(y=[u(r.$special())?u(p=c.$numbered())?!0:p:!0],e(r,"numbered=",a.to_a(y)),y[b(y.length,1)]):u(m.$fetch("numbered",u(p=z)?x["$attr?"]("partnums"):p))&&(y=[!0],e(r,"numbered=",a.to_a(y)),y[b(y.length,1)]);(c=f["$[]"]("id"))["$=="](!1)?f.$delete("id"):(y=[(y=["id",u(p=c)?p:u(x["$attr?"]("sectids"))?q(l,"Section").$generate_id(r.$title(),
1305
+ x):h],e(f,"[]=",a.to_a(y)),y[b(y.length,1)])],e(r,"id=",a.to_a(y)),y[b(y.length,1)]);r.$update_attributes(f);return r},v.$$arity=-4);a.def(d,"$create_block",y=function(a,b,c,d,e){null==e&&(e=n([],{}));return q(l,"Block").$new(a,b,n(["source","attributes"],{source:c,attributes:d}).$merge(e))},y.$$arity=-5);a.def(d,"$create_list",x=function(a,b,c){null==c&&(c=h);a=q(l,"List").$new(a,b);u(c)&&a.$update_attributes(c);return a},x.$$arity=-3);a.def(d,"$create_list_item",z=function(a,b){null==b&&(b=h);return q(l,
1306
+ "ListItem").$new(a,b)},z.$$arity=-2);a.def(d,"$create_image_block",A=function(d,f,g){var k,p,m=h;null==g&&(g=n([],{}));u(p=f["$[]"]("target"))||this.$raise(c("::","ArgumentError"),"Unable to create an image block, target attribute is required");u(k=f["$[]"]("alt"))?k:(m=["alt",(m=["default-alt",q(l,"Helpers").$basename(p,!0).$tr("_-"," ")],e(f,"[]=",a.to_a(m)),m[b(m.length,1)])],e(f,"[]=",a.to_a(m)),m[b(m.length,1)]);m=u(f["$key?"]("title"))?f.$delete("title"):h;d=this.$create_block(d,"image",h,f,
1307
+ g);u(m)&&(m=[m],e(d,"title=",a.to_a(m)),m[b(m.length,1)],d.$assign_caption(f.$delete("caption"),"figure"));return d},A.$$arity=-3);a.def(d,"$create_inline",B=function(a,b,c,d){null==d&&(d=n([],{}));return q(l,"Inline").$new(a,b,c,b["$=="]("quoted")?n(["type"],{type:"unquoted"}).$merge(d):d)},B.$$arity=-4);a.def(d,"$parse_content",C=function(a,b,c){null==c&&(c=h);b=u(q(l,"Reader")["$==="](b))?b:q(l,"Reader").$new(b);q(l,"Parser").$parse_blocks(b,a,c);return a},C.$$arity=-3);a.def(d,"$parse_attributes",
1308
+ D=function(a,b,c){var d;null==c&&(c=n([],{}));if(u(u(b)?b["$empty?"]():!0))return n([],{});u(u(d=c["$[]"]("sub_attributes"))?b["$include?"](q(l,"ATTR_REF_HEAD")):d)&&(b=a.$sub_attributes(b));return q(l,"AttributeList").$new(b).$parse(u(d=c["$[]"]("positional_attributes"))?d:[])},D.$$arity=-3);return e([["create_paragraph","create_block","paragraph"],["create_open_block","create_block","open"],["create_example_block","create_block","example"],["create_pass_block","create_block","pass"],["create_listing_block",
1309
+ "create_block","listing"],["create_literal_block","create_block","literal"],["create_anchor","create_inline","anchor"],["create_inline_pass","create_inline","quoted"]],"each",[],(E=function(b,c,d){var f=E.$$s||this,g;null==b&&(b=h);null==c&&(c=h);null==d&&(d=h);return e(f,"define_method",[b],(g=function(b){var f=g.$$s||this;var h=a.slice.call(arguments,0,arguments.length);h.$unshift(h.$shift(),d);return e(f,"send",[c].concat(a.to_a(h)))},g.$$s=f,g.$$arity=-1,g))},E.$$s=d,E.$$arity=3,E))})(m[0],null,
1310
+ m);(function(d,f){d=p(d,"ProcessorDsl");[d].concat(f);var g,k,l;a.def(d,"$option",g=function(c,d){c=[c,d];e(this.$config(),"[]=",a.to_a(c));return c[b(c.length,1)]},g.$$arity=2);a.def(d,"$process",k=function(b){var d=k.$$p,f=d||h,g,l,n=h;null==this.process_block&&(this.process_block=h);d&&(k.$$p=null);d&&(k.$$p=null);d=a.slice.call(arguments,0,arguments.length);return f!==h?(u(d["$empty?"]())||this.$raise(c("::","ArgumentError"),"wrong number of arguments (given "+d.$size()+", expected 0)"),u(u(g=
1311
+ f.$binding())?this["$=="](f.$binding().$receiver()):g)||(n=this,e(f,"define_singleton_method",["call"],(l=function(b){var c=a.slice.call(arguments,0,arguments.length);return e(n,"instance_exec",a.to_a(c),f.$to_proc())},l.$$s=this,l.$$arity=-1,l))),this.process_block=f):u((g=this.process_block,null!=g&&g!==h)?"instance-variable":h)?e(this.process_block,"call",a.to_a(d)):this.$raise(c("::","NotImplementedError"),""+this.$class()+" #process method called before being registered")},k.$$arity=-1);a.def(d,
1312
+ "$process_block_given?",l=function(){var a;return(a=this.process_block,null!=a&&a!==h)?"instance-variable":h},l.$$arity=0)})(m[0],m);(function(b,c){b=p(b,"DocumentProcessorDsl");c=[b].concat(c);var d;b.$include(q(c,"ProcessorDsl"));a.def(b,"$prefer",d=function(){return this.$option("position",">>")},d.$$arity=0)})(m[0],m);(function(d,f){d=p(d,"SyntaxProcessorDsl");var g=[d].concat(f),l,m,r,v,t;d.$include(q(g,"ProcessorDsl"));a.def(d,"$named",l=function(a){return u(q(g,"Processor")["$==="](this))?
1313
+ this.name=a:this.$option("name",a)},l.$$arity=1);a.def(d,"$content_model",m=function(a){return this.$option("content_model",a)},m.$$arity=1);a.alias(d,"parse_content_as","content_model");a.def(d,"$positional_attributes",r=function(b){var c=a.slice.call(arguments,0,arguments.length);return this.$option("positional_attrs",c.$flatten())},r.$$arity=-1);a.alias(d,"name_positional_attributes","positional_attributes");a.alias(d,"positional_attrs","positional_attributes");a.def(d,"$default_attributes",v=
1314
+ function(a){return this.$option("default_attrs",a)},v.$$arity=1);a.alias(d,"default_attrs","default_attributes");a.def(d,"$resolve_attributes",t=function(d){var f,g,l,m=this,p=h,q=h,r=h;var v=a.slice.call(arguments,0,arguments.length);u(k(v.$size(),1))||u((v=v.$fetch(0,!0))["$respond_to?"]("to_sym"))&&(v=[v]);return function(){p=v;return(!0)["$==="](p)?(m.$option("positional_attrs",[]),m.$option("default_attrs",n([],{}))):c("::","Array")["$==="](p)?(f=[[],n([],{})],q=f[0],r=f[1],f,e(v,"each",[],(g=
1315
+ function(c){null==c&&(c=h);if(u((c=c.$to_s())["$include?"]("="))){var d=c.$partition("=");var f=a.to_ary(d);c=null==f[0]?h:f[0];var g=null==f[2]?h:f[2];d;if(u(c["$include?"](":"))){d=c.$partition(":");f=a.to_ary(d);var k=null==f[0]?h:f[0];c=null==f[2]?h:f[2];d;k=k["$=="]("@")?q.$size():k.$to_i();f=[k,c];e(q,"[]=",a.to_a(f));f[b(f.length,1)]}f=[c,g];e(r,"[]=",a.to_a(f));return f[b(f.length,1)]}return u(c["$include?"](":"))?(d=c.$partition(":"),f=a.to_ary(d),k=null==f[0]?h:f[0],c=null==f[2]?h:f[2],
1316
+ d,k=k["$=="]("@")?q.$size():k.$to_i(),f=[k,c],e(q,"[]=",a.to_a(f)),f[b(f.length,1)]):q["$<<"](c)},g.$$s=m,g.$$arity=1,g)),m.$option("positional_attrs",q.$compact()),m.$option("default_attrs",r)):c("::","Hash")["$==="](p)?(f=[[],n([],{})],q=f[0],r=f[1],f,e(v,"each",[],(l=function(c,d){var f;null==c&&(c=h);null==d&&(d=h);if(u((f=c.$to_s())["$include?"](":"))){c=f.$partition(":");f=a.to_ary(c);var g=null==f[0]?h:f[0];f=null==f[2]?h:f[2];c;g=g["$=="]("@")?q.$size():g.$to_i();c=[g,f];e(q,"[]=",a.to_a(c));
1317
+ c[b(c.length,1)]}return u(d)?(c=[f,d],e(r,"[]=",a.to_a(c)),c[b(c.length,1)]):h},l.$$s=m,l.$$arity=2,l)),m.$option("positional_attrs",q.$compact()),m.$option("default_attrs",r)):m.$raise(c("::","ArgumentError"),"unsupported attributes specification for macro: "+v.$inspect())}()},t.$$arity=-1);a.alias(d,"resolves_attributes","resolve_attributes")})(m[0],m);(function(b,$super,d){b=t(b,$super,"Preprocessor");var e=[b].concat(d),f;return(a.def(b,"$process",f=function(a,b){return this.$raise(c("::","NotImplementedError"),
1318
+ ""+q(e,"Preprocessor")+" subclass "+this.$class()+" must implement the #process method")},f.$$arity=2),h)&&"process"})(m[0],q(m,"Processor"),m);a.const_set(q(m,"Preprocessor"),"DSL",q(m,"DocumentProcessorDsl"));(function(b,$super,d){b=t(b,$super,"TreeProcessor");var e=[b].concat(d),f;return(a.def(b,"$process",f=function(a){return this.$raise(c("::","NotImplementedError"),""+q(e,"TreeProcessor")+" subclass "+this.$class()+" must implement the #process method")},f.$$arity=1),h)&&"process"})(m[0],q(m,
1319
+ "Processor"),m);a.const_set(q(m,"TreeProcessor"),"DSL",q(m,"DocumentProcessorDsl"));a.const_set(m[0],"Treeprocessor",q(m,"TreeProcessor"));(function(b,$super,d){b=t(b,$super,"Postprocessor");var e=[b].concat(d),f;return(a.def(b,"$process",f=function(a,b){return this.$raise(c("::","NotImplementedError"),""+q(e,"Postprocessor")+" subclass "+this.$class()+" must implement the #process method")},f.$$arity=2),h)&&"process"})(m[0],q(m,"Processor"),m);a.const_set(q(m,"Postprocessor"),"DSL",q(m,"DocumentProcessorDsl"));
1320
+ (function(b,$super,d){b=t(b,$super,"IncludeProcessor");var e=[b].concat(d),f,g;a.def(b,"$process",f=function(a,b,d,f){return this.$raise(c("::","NotImplementedError"),""+q(e,"IncludeProcessor")+" subclass "+this.$class()+" must implement the #process method")},f.$$arity=4);return(a.def(b,"$handles?",g=function(a){return!0},g.$$arity=1),h)&&"handles?"})(m[0],q(m,"Processor"),m);(function(b,d){b=p(b,"IncludeProcessorDsl");d=[b].concat(d);var e;b.$include(q(d,"DocumentProcessorDsl"));a.def(b,"$handles?",
1321
+ e=function(b){var d=e.$$p,f=d||h,g;null==this.handles_block&&(this.handles_block=h);d&&(e.$$p=null);d&&(e.$$p=null);d=a.slice.call(arguments,0,arguments.length);return f!==h?(u(d["$empty?"]())||this.$raise(c("::","ArgumentError"),"wrong number of arguments (given "+d.$size()+", expected 0)"),this.handles_block=f):u((g=this.handles_block,null!=g&&g!==h)?"instance-variable":h)?this.handles_block.$call(d["$[]"](0)):!0},e.$$arity=-1)})(m[0],m);a.const_set(q(m,"IncludeProcessor"),"DSL",q(m,"IncludeProcessorDsl"));
1322
+ (function(d,$super,f){d=t(d,$super,"DocinfoProcessor");var g=[d].concat(f),k,l;d.$$prototype.config=h;a.def(d,"$initialize",k=function(c){var d,f=h;k.$$p&&(k.$$p=null);null==c&&(c=n([],{}));e(this,a.find_super_dispatcher(this,"initialize",k,!1),[c],null);return u(d=this.config["$[]"]("location"))?d:(f=["location","head"],e(this.config,"[]=",a.to_a(f)),f[b(f.length,1)])},k.$$arity=-1);return(a.def(d,"$process",l=function(a){return this.$raise(c("::","NotImplementedError"),""+q(g,"DocinfoProcessor")+
1323
+ " subclass "+this.$class()+" must implement the #process method")},l.$$arity=1),h)&&"process"})(m[0],q(m,"Processor"),m);(function(b,c){b=p(b,"DocinfoProcessorDsl");c=[b].concat(c);var d;b.$include(q(c,"DocumentProcessorDsl"));a.def(b,"$at_location",d=function(a){return this.$option("location",a)},d.$$arity=1)})(m[0],m);a.const_set(q(m,"DocinfoProcessor"),"DSL",q(m,"DocinfoProcessorDsl"));(function(d,$super,f){d=t(d,$super,"BlockProcessor");var g=[d].concat(f),k,l;d.$$prototype.config=h;d.$attr_accessor("name");
1324
+ a.def(d,"$initialize",k=function(d,f){var g,l=h;k.$$p&&(k.$$p=null);null==d&&(d=h);null==f&&(f=n([],{}));e(this,a.find_super_dispatcher(this,"initialize",k,!1),[f],null);this.name=u(g=d)?g:this.config["$[]"]("name");d=this.config["$[]"]("contexts");c("::","NilClass")["$==="](d)?u(g=this.config["$[]"]("contexts"))?g:(l=["contexts",["open","paragraph"].$to_set()],e(this.config,"[]=",a.to_a(l)),l[b(l.length,1)]):(l=c("::","Symbol")["$==="](d)?["contexts",[this.config["$[]"]("contexts")].$to_set()]:["contexts",
1325
+ this.config["$[]"]("contexts").$to_set()],e(this.config,"[]=",a.to_a(l)),l[b(l.length,1)]);return u(g=this.config["$[]"]("content_model"))?g:(l=["content_model","compound"],e(this.config,"[]=",a.to_a(l)),l[b(l.length,1)])},k.$$arity=-1);return(a.def(d,"$process",l=function(a,b,d){return this.$raise(c("::","NotImplementedError"),""+q(g,"BlockProcessor")+" subclass "+this.$class()+" must implement the #process method")},l.$$arity=3),h)&&"process"})(m[0],q(m,"Processor"),m);(function(b,c){b=p(b,"BlockProcessorDsl");
1326
+ c=[b].concat(c);var d;b.$include(q(c,"SyntaxProcessorDsl"));a.def(b,"$contexts",d=function(b){var c=a.slice.call(arguments,0,arguments.length);return this.$option("contexts",c.$flatten().$to_set())},d.$$arity=-1);a.alias(b,"on_contexts","contexts");a.alias(b,"on_context","contexts");a.alias(b,"bind_to","contexts")})(m[0],m);a.const_set(q(m,"BlockProcessor"),"DSL",q(m,"BlockProcessorDsl"));(function(d,$super,f){d=t(d,$super,"MacroProcessor");var g=[d].concat(f),k,l;d.$$prototype.config=h;d.$attr_accessor("name");
1327
+ a.def(d,"$initialize",k=function(d,c){var f,g=h;k.$$p&&(k.$$p=null);null==d&&(d=h);null==c&&(c=n([],{}));e(this,a.find_super_dispatcher(this,"initialize",k,!1),[c],null);this.name=u(f=d)?f:this.config["$[]"]("name");return u(f=this.config["$[]"]("content_model"))?f:(g=["content_model","attributes"],e(this.config,"[]=",a.to_a(g)),g[b(g.length,1)])},k.$$arity=-1);return(a.def(d,"$process",l=function(a,b,d){return this.$raise(c("::","NotImplementedError"),""+q(g,"MacroProcessor")+" subclass "+this.$class()+
1328
+ " must implement the #process method")},l.$$arity=3),h)&&"process"})(m[0],q(m,"Processor"),m);(function(b,d){b=p(b,"MacroProcessorDsl");d=[b].concat(d);var c;b.$include(q(d,"SyntaxProcessorDsl"));a.def(b,"$resolve_attributes",c=function(b){var d=c.$$p,f;d&&(c.$$p=null);var g=0;var h=arguments.length;for(f=Array(h);g<h;g++)f[g]=arguments[g];g=a.slice.call(arguments,0,arguments.length);if(u(g.$size()["$=="](1)?g["$[]"](0)["$!"]():g.$size()["$=="](1)))return this.$option("content_model","text");e(this,
1329
+ a.find_super_dispatcher(this,"resolve_attributes",c,!1),f,d);return this.$option("content_model","attributes")},c.$$arity=-1);a.alias(b,"resolves_attributes","resolve_attributes")})(m[0],m);(function(b,$super,d){b=t(b,$super,"BlockMacroProcessor");var e=[b].concat(d),f;b.$$prototype.name=h;return(a.def(b,"$name",f=function(){u(q(e,"MacroNameRx")["$match?"](this.name.$to_s()))||this.$raise(c("::","ArgumentError"),"invalid name for block macro: "+this.name);return this.name},f.$$arity=0),h)&&"name"})(m[0],
1330
+ q(m,"MacroProcessor"),m);a.const_set(q(m,"BlockMacroProcessor"),"DSL",q(m,"MacroProcessorDsl"));(function(d,$super,f){d=t(d,$super,"InlineMacroProcessor");var g=[d].concat(f),k,l;d.$$prototype.config=d.$$prototype.name=h;a.class_variable_set(g[0],"@@rx_cache",n([],{}));a.def(d,"$regexp",k=function(){var d,c=h;return u(d=this.config["$[]"]("regexp"))?d:(c=["regexp",this.$resolve_regexp(this.name.$to_s(),this.config["$[]"]("format"))],e(this.config,"[]=",a.to_a(c)),c[b(c.length,1)])},k.$$arity=0);return(a.def(d,
1331
+ "$resolve_regexp",l=function(d,f){var k,l,n=h;u(q(g,"MacroNameRx")["$match?"](d))||this.$raise(c("::","ArgumentError"),"invalid name for inline macro: "+d);return u(k=(null==(l=g[0].$$cvars["@@rx_cache"])?h:l)["$[]"]([d,f]))?k:(n=[[d,f],new RegExp("\\\\?"+d+":"+(f["$=="]("short")?"(){0}":"(\\S+?)")+"\\[(|"+q(g,"CC_ANY")+"*?[^\\\\])\\]")],e(null==(l=g[0].$$cvars["@@rx_cache"])?h:l,"[]=",a.to_a(n)),n[b(n.length,1)])},l.$$arity=2),h)&&"resolve_regexp"})(m[0],q(m,"MacroProcessor"),m);(function(b,d){b=
1332
+ p(b,"InlineMacroProcessorDsl");d=[b].concat(d);var c,e;b.$include(q(d,"MacroProcessorDsl"));a.def(b,"$format",c=function(a){return this.$option("format",a)},c.$$arity=1);a.alias(b,"match_format","format");a.alias(b,"using_format","format");a.def(b,"$match",e=function(a){return this.$option("regexp",a)},e.$$arity=1)})(m[0],m);a.const_set(q(m,"InlineMacroProcessor"),"DSL",q(m,"InlineMacroProcessorDsl"));(function(b,$super,d){b=t(b,$super,"Extension");[b].concat(d);var c;b.$attr_reader("kind");b.$attr_reader("config");
1333
+ b.$attr_reader("instance");return(a.def(b,"$initialize",c=function(a,b,d){this.kind=a;this.instance=b;return this.config=d},c.$$arity=3),h)&&"initialize"})(m[0],null,m);(function(b,$super,d){b=t(b,$super,"ProcessorExtension");[b].concat(d);var c;b.$attr_reader("process_method");return(a.def(b,"$initialize",c=function(b,d,f){var g;c.$$p&&(c.$$p=null);null==f&&(f=h);e(this,a.find_super_dispatcher(this,"initialize",c,!1),[b,d,d.$config()],null);return this.process_method=u(g=f)?g:d.$method("process")},
1334
+ c.$$arity=-3),h)&&"initialize"})(m[0],q(m,"Extension"),m);(function(b,$super,d){b=t(b,$super,"Group");d=[b].concat(d);var e;(function(b,d){var c=[b].concat(d),e;return(a.def(b,"$register",e=function(a){null==a&&(a=h);return q(c,"Extensions").$register(a,this)},e.$$arity=-1),h)&&"register"})(a.get_singleton_class(b),d);return(a.def(b,"$activate",e=function(a){return this.$raise(c("::","NotImplementedError"))},e.$$arity=1),h)&&"activate"})(m[0],null,m);(function(d,$super,f){d=t(d,$super,"Registry");
1335
+ var m=[d].concat(f),p,r,v,y,x,z,A,B,C,D,E,F,G,H,L,J,N,M,S,O,P,R,U,T,ea,ka,Z,ha,ja,pa,ua,Na,Ia,Ea,Sa;d.$$prototype.groups=d.$$prototype.preprocessor_extensions=d.$$prototype.tree_processor_extensions=d.$$prototype.postprocessor_extensions=d.$$prototype.include_processor_extensions=d.$$prototype.docinfo_processor_extensions=d.$$prototype.block_extensions=d.$$prototype.block_macro_extensions=d.$$prototype.inline_macro_extensions=h;d.$attr_reader("document");d.$attr_reader("groups");a.def(d,"$initialize",
1336
+ p=function(a){null==a&&(a=n([],{}));this.groups=a;return this.document=this.preprocessor_extensions=this.tree_processor_extensions=this.postprocessor_extensions=this.include_processor_extensions=this.docinfo_processor_extensions=this.block_extensions=this.block_macro_extensions=this.inline_macro_extensions=h},p.$$arity=-1);a.def(d,"$activate",r=function(a){var b,d=h;this.document=a;u((d=g(q(m,"Extensions").$groups().$values(),this.groups.$values()))["$empty?"]())||e(d,"each",[],(b=function(a){var d=
1337
+ b.$$s||this;null==a&&(a=h);var f=a;c("::","Proc")["$==="](f)?(f=a.$arity(),a=0["$==="](f)||-1["$==="](f)?e(d,"instance_exec",[],a.$to_proc()):1["$==="](f)?a.$call(d):h):a=c("::","Class")["$==="](f)?a.$new().$activate(d):a.$activate(d);return a},b.$$s=this,b.$$arity=1,b));return this},r.$$arity=1);a.def(d,"$preprocessor",v=function(b){var d=v.$$p,c=d||h;d&&(v.$$p=null);d&&(v.$$p=null);d=a.slice.call(arguments,0,arguments.length);return e(this,"add_document_processor",["preprocessor",d],c.$to_proc())},
1338
+ v.$$arity=-1);a.def(d,"$preprocessors?",y=function(){return this.preprocessor_extensions["$!"]()["$!"]()},y.$$arity=0);a.def(d,"$preprocessors",x=function(){return this.preprocessor_extensions},x.$$arity=0);a.def(d,"$tree_processor",z=function(b){var d=z.$$p,c=d||h;d&&(z.$$p=null);d&&(z.$$p=null);d=a.slice.call(arguments,0,arguments.length);return e(this,"add_document_processor",["tree_processor",d],c.$to_proc())},z.$$arity=-1);a.def(d,"$tree_processors?",A=function(){return this.tree_processor_extensions["$!"]()["$!"]()},
1339
+ A.$$arity=0);a.def(d,"$tree_processors",B=function(){return this.tree_processor_extensions},B.$$arity=0);a.alias(d,"treeprocessor","tree_processor");a.alias(d,"treeprocessors?","tree_processors?");a.alias(d,"treeprocessors","tree_processors");a.def(d,"$postprocessor",C=function(b){var d=C.$$p,c=d||h;d&&(C.$$p=null);d&&(C.$$p=null);d=a.slice.call(arguments,0,arguments.length);return e(this,"add_document_processor",["postprocessor",d],c.$to_proc())},C.$$arity=-1);a.def(d,"$postprocessors?",D=function(){return this.postprocessor_extensions["$!"]()["$!"]()},
1340
+ D.$$arity=0);a.def(d,"$postprocessors",E=function(){return this.postprocessor_extensions},E.$$arity=0);a.def(d,"$include_processor",F=function(b){var d=F.$$p,c=d||h;d&&(F.$$p=null);d&&(F.$$p=null);d=a.slice.call(arguments,0,arguments.length);return e(this,"add_document_processor",["include_processor",d],c.$to_proc())},F.$$arity=-1);a.def(d,"$include_processors?",G=function(){return this.include_processor_extensions["$!"]()["$!"]()},G.$$arity=0);a.def(d,"$include_processors",H=function(){return this.include_processor_extensions},
1341
+ H.$$arity=0);a.def(d,"$docinfo_processor",L=function(b){var d=L.$$p,c=d||h;d&&(L.$$p=null);d&&(L.$$p=null);d=a.slice.call(arguments,0,arguments.length);return e(this,"add_document_processor",["docinfo_processor",d],c.$to_proc())},L.$$arity=-1);a.def(d,"$docinfo_processors?",J=function(a){var b;null==a&&(a=h);return u(this.docinfo_processor_extensions)?u(a)?e(this.docinfo_processor_extensions,"any?",[],(b=function(b){null==b&&(b=h);return b.$config()["$[]"]("location")["$=="](a)},b.$$s=this,b.$$arity=
1342
+ 1,b)):!0:!1},J.$$arity=-1);a.def(d,"$docinfo_processors",N=function(a){var b;null==a&&(a=h);return u(this.docinfo_processor_extensions)?u(a)?e(this.docinfo_processor_extensions,"select",[],(b=function(b){null==b&&(b=h);return b.$config()["$[]"]("location")["$=="](a)},b.$$s=this,b.$$arity=1,b)):this.docinfo_processor_extensions:h},N.$$arity=-1);a.def(d,"$block",M=function(b){var d=M.$$p,c=d||h;d&&(M.$$p=null);d&&(M.$$p=null);d=a.slice.call(arguments,0,arguments.length);return e(this,"add_syntax_processor",
1343
+ ["block",d],c.$to_proc())},M.$$arity=-1);a.def(d,"$blocks?",S=function(){return this.block_extensions["$!"]()["$!"]()},S.$$arity=0);a.def(d,"$registered_for_block?",O=function(a,b){var d;return u(d=this.block_extensions["$[]"](a.$to_sym()))?u(d.$config()["$[]"]("contexts")["$include?"](b))?d:!1:!1},O.$$arity=2);a.def(d,"$find_block_extension",P=function(a){return this.block_extensions["$[]"](a.$to_sym())},P.$$arity=1);a.def(d,"$block_macro",R=function(b){var d=R.$$p,c=d||h;d&&(R.$$p=null);d&&(R.$$p=
1344
+ null);d=a.slice.call(arguments,0,arguments.length);return e(this,"add_syntax_processor",["block_macro",d],c.$to_proc())},R.$$arity=-1);a.def(d,"$block_macros?",U=function(){return this.block_macro_extensions["$!"]()["$!"]()},U.$$arity=0);a.def(d,"$registered_for_block_macro?",T=function(a){var b;return u(b=this.block_macro_extensions["$[]"](a.$to_sym()))?b:!1},T.$$arity=1);a.def(d,"$find_block_macro_extension",ea=function(a){return this.block_macro_extensions["$[]"](a.$to_sym())},ea.$$arity=1);a.def(d,
1345
+ "$inline_macro",ka=function(b){var d=ka.$$p,c=d||h;d&&(ka.$$p=null);d&&(ka.$$p=null);d=a.slice.call(arguments,0,arguments.length);return e(this,"add_syntax_processor",["inline_macro",d],c.$to_proc())},ka.$$arity=-1);a.def(d,"$inline_macros?",Z=function(){return this.inline_macro_extensions["$!"]()["$!"]()},Z.$$arity=0);a.def(d,"$registered_for_inline_macro?",ha=function(a){var b;return u(b=this.inline_macro_extensions["$[]"](a.$to_sym()))?b:!1},ha.$$arity=1);a.def(d,"$find_inline_macro_extension",
1346
+ ja=function(a){return this.inline_macro_extensions["$[]"](a.$to_sym())},ja.$$arity=1);a.def(d,"$inline_macros",pa=function(){return this.inline_macro_extensions.$values()},pa.$$arity=0);a.def(d,"$prefer",ua=function(b){var d=ua.$$p,c=d||h,f=h;d&&(ua.$$p=null);d&&(ua.$$p=null);d=a.slice.call(arguments,0,arguments.length);c=u(q(m,"ProcessorExtension")["$==="](f=d.$shift()))?f:e(this,"send",[f].concat(a.to_a(d)),c.$to_proc());f=this.$instance_variable_get(("@"+c.$kind()+"_extensions").$to_sym());f.$unshift(f.$delete(c));
1347
+ return c},ua.$$arity=-1);d.$private();a.def(d,"$add_document_processor",Na=function(b,d){var f=Na.$$p,g=f||h,k,n,p=h,r=h,v=h,t=h,y=r=h,w=h,x=h,z=h;p=h;f&&(Na.$$p=null);f&&(Na.$$p=null);p=b.$to_s().$tr("_"," ");r=e(p.$split(),"map",[],(k=function(a){null==a&&(a=h);return a.$capitalize()},k.$$s=this,k.$$arity=1,k)).$join().$to_sym();v=q(m,"Extensions").$const_get(r,!1);t=u(c("::","AsciidoctorJ","skip_raise")?"constant":h)?c(c("::","AsciidoctorJ"),"Extensions").$const_get(r,!1):h;r=u(n=this.$instance_variable_get(("@"+
1348
+ b+"_extensions").$to_sym()))?n:this.$instance_variable_set(("@"+b+"_extensions").$to_sym(),[]);g!==h?(y=this.$resolve_args(d,1),(w=v.$new(y)).$singleton_class().$enable_dsl(),g.$arity()["$=="](0)?e(w,"instance_exec",[],g.$to_proc()):a.yield1(g,w),u(w["$process_block_given?"]())||this.$raise(c("::","ArgumentError"),"No block specified to process "+p+" extension at "+g.$source_location()),w.$freeze(),x=q(m,"ProcessorExtension").$new(b,w)):(f=this.$resolve_args(d,2),n=a.to_ary(f),w=null==n[0]?h:n[0],
1349
+ y=null==n[1]?h:n[1],f,u(z=q(m,"Helpers").$resolve_class(w))?(u(u(n=l(z,v))?n:u(f=t)?l(z,t):f)||this.$raise(c("::","ArgumentError"),"Invalid type for "+p+" extension: "+w),p=z.$new(y),p.$freeze(),x=q(m,"ProcessorExtension").$new(b,p)):u(u(n=v["$==="](w))?n:u(f=t)?t["$==="](w):f)?(w.$update_config(y),w.$freeze(),x=q(m,"ProcessorExtension").$new(b,w)):this.$raise(c("::","ArgumentError"),"Invalid arguments specified for registering "+p+" extension: "+d));if(x.$config()["$[]"]("position")["$=="](">>"))r.$unshift(x);
1350
+ else r["$<<"](x);return x},Na.$$arity=2);a.def(d,"$add_syntax_processor",Ia=function(d,f){var g=Ia.$$p,k=g||h,p,r,v=h,t=h,y=h,x=h,z=t=h,w=h,A=h,B=y=h;y=h;g&&(Ia.$$p=null);g&&(Ia.$$p=null);v=d.$to_s().$tr("_"," ");t=e(v.$split(),"map",[],(p=function(a){null==a&&(a=h);return a.$capitalize()},p.$$s=this,p.$$arity=1,p))["$<<"]("Processor").$join().$to_sym();y=q(m,"Extensions").$const_get(t,!1);x=u(c("::","AsciidoctorJ","skip_raise")?"constant":h)?c(c("::","AsciidoctorJ"),"Extensions").$const_get(t,!1):
1351
+ h;t=u(r=this.$instance_variable_get(("@"+d+"_extensions").$to_sym()))?r:this.$instance_variable_set(("@"+d+"_extensions").$to_sym(),n([],{}));if(k!==h)return g=this.$resolve_args(f,2),r=a.to_ary(g),z=null==r[0]?h:r[0],w=null==r[1]?h:r[1],g,(A=y.$new(this.$as_symbol(z),w)).$singleton_class().$enable_dsl(),k.$arity()["$=="](0)?e(A,"instance_exec",[],k.$to_proc()):a.yield1(k,A),u(z=this.$as_symbol(A.$name()))||this.$raise(c("::","ArgumentError"),"No name specified for "+v+" extension at "+k.$source_location()),
1352
+ u(A["$process_block_given?"]())||this.$raise(c("::","NoMethodError"),"No block specified to process "+v+" extension at "+k.$source_location()),A.$freeze(),y=[z,q(m,"ProcessorExtension").$new(d,A)],e(t,"[]=",a.to_a(y)),y[b(y.length,1)];g=this.$resolve_args(f,3);r=a.to_ary(g);A=null==r[0]?h:r[0];z=null==r[1]?h:r[1];w=null==r[2]?h:r[2];g;return u(B=q(m,"Helpers").$resolve_class(A))?(u(u(r=l(B,y))?r:u(g=x)?l(B,x):g)||this.$raise(c("::","ArgumentError"),"Class specified for "+v+" extension does not inherit from "+
1353
+ y+": "+A),y=B.$new(this.$as_symbol(z),w),u(z=this.$as_symbol(y.$name()))||this.$raise(c("::","ArgumentError"),"No name specified for "+v+" extension: "+A),y.$freeze(),y=[z,q(m,"ProcessorExtension").$new(d,y)],e(t,"[]=",a.to_a(y)),y[b(y.length,1)]):u(u(r=y["$==="](A))?r:u(g=x)?x["$==="](A):g)?(A.$update_config(w),u(z)?(y=[this.$as_symbol(z)],e(A,"name=",a.to_a(y)),f=y[b(y.length,1)]):f=this.$as_symbol(A.$name()),u(z=f)||this.$raise(c("::","ArgumentError"),"No name specified for "+v+" extension: "+
1354
+ A),A.$freeze(),y=[z,q(m,"ProcessorExtension").$new(d,A)],e(t,"[]=",a.to_a(y)),y[b(y.length,1)]):this.$raise(c("::","ArgumentError"),"Invalid arguments specified for registering "+v+" extension: "+f)},Ia.$$arity=2);a.def(d,"$resolve_args",Ea=function(a,d){var e=h;var f=u(c("::","Hash")["$==="](a["$[]"](-1)))?a.$pop():n([],{});if(d["$=="](1))return f;u(k(e=b(b(d,1),a.$size()),0))?a=g(a,c("::","Array").$new(e)):u(l(e,0))&&a.$pop(e["$-@"]());a["$<<"](f);return a},Ea.$$arity=2);return(a.def(d,"$as_symbol",
1355
+ Sa=function(a){return u(a)?a.$to_sym():h},Sa.$$arity=1),h)&&"as_symbol"})(m[0],null,m);(function(d,k){var l=[d].concat(k),m,p,r,v,t,x,z;a.def(d,"$generate_name",m=function(){return"extgrp"+this.$next_auto_id()},m.$$arity=0);a.def(d,"$next_auto_id",p=function(){var a;null==this.auto_id&&(this.auto_id=h);this.auto_id=u(a=this.auto_id)?a:-1;return this.auto_id=g(this.auto_id,1)},p.$$arity=0);a.def(d,"$groups",r=function(){var a;null==this.groups&&(this.groups=h);return this.groups=u(a=this.groups)?a:
1356
+ n([],{})},r.$$arity=0);a.def(d,"$create",v=function(a){var b=v.$$p,d=b||h,c;b&&(v.$$p=null);b&&(v.$$p=null);null==a&&(a=h);return d!==h?q(l,"Registry").$new(f(u(c=a)?c:this.$generate_name(),d)):q(l,"Registry").$new()},v.$$arity=-1);a.def(d,"$register",t=function(d){var f=t.$$p,g=f||h,k,n=h,m;f&&(t.$$p=null);f&&(t.$$p=null);f=a.slice.call(arguments,0,arguments.length);var p=f.$size();g!==h?n=g:u(m=f.$pop())?n=u(k=q(l,"Helpers").$resolve_class(m))?k:m:this.$raise(c("::","ArgumentError"),"Extension group to register not specified");
1357
+ g=u(k=f.$pop())?k:this.$generate_name();u(f["$empty?"]())||this.$raise(c("::","ArgumentError"),"Wrong number of arguments ("+p+" for 1..2)");k=[g.$to_sym(),n];e(this.$groups(),"[]=",a.to_a(k));return k[b(k.length,1)]},t.$$arity=-1);a.def(d,"$unregister_all",x=function(){this.groups=n([],{});return h},x.$$arity=0);return(a.def(d,"$unregister",z=function(b){var d;var c=a.slice.call(arguments,0,arguments.length);e(c,"each",[],(d=function(a){var b=d.$$s||this;null==b.groups&&(b.groups=h);null==a&&(a=
1358
+ h);return b.groups.$delete(a.$to_sym())},d.$$s=this,d.$$arity=1,d));return h},z.$$arity=-1),h)&&"unregister"})(a.get_singleton_class(d),m)})(d[0],d)}(m[0],m)};Opal.modules["asciidoctor/js/asciidoctor_ext/stylesheet"]=function(a){var b=[],g=a.nil,k=a.const_get_qualified,l=a.module,m=a.klass,h=a.truthy;a.add_stubs(["$rstrip","$read","$join"]);return function(b,d){b=[l(b,"Asciidoctor")].concat(d);(function(b,$super,d){b=m(b,$super,"Stylesheets");[b].concat(d);var c;b.$$prototype.primary_stylesheet_data=
1359
+ g;return(a.def(b,"$primary_stylesheet_data",c=function(){var a;return this.primary_stylesheet_data=h(a=this.primary_stylesheet_data)?a:k("::","IO").$read(k("::","File").$join("css","asciidoctor.css")).$rstrip()},c.$$arity=0),g)&&"primary_stylesheet_data"})(b[0],null,b)}(b[0],b)};Opal.modules["asciidoctor/js/asciidoctor_ext/document"]=function(a){var b=[],g=a.nil,k=a.const_get_relative,l=a.module,m=a.klass;return function(b,d){b=[l(b,"Asciidoctor")].concat(d);(function(b,$super,d){b=m(b,$super,"Document");
1360
+ [b].concat(d);var c;return(a.def(b,"$fill_datetime_attributes",c=function(b,d){var c=a.truthy,e=a.falsy,g=a.nil,h=function(a,b){return 0===b?a.getUTCFullYear():a.getFullYear()},k=function(a,b){return 0===b?a.getUTCMonth():a.getMonth()},l=function(a,b){return 0===b?a.getUTCDate():a.getDate()},n=function(a,b){return 0===b?a.getUTCHours():a.getHours()},m=new Date;if(a.const_get_qualified("::","ENV")["$key?"]("SOURCE_DATE_EPOCH")){m.setTime(1E3*parseInt(a.const_get_qualified("::","ENV")["$[]"]("SOURCE_DATE_EPOCH")));
1361
+ var q=m;var r=0}else r=-m.getTimezoneOffset()/60;if(c(localdate=b["$[]"]("localdate")))e(localyear=b["$[]"]("localyear"))&&(localyear=4===localdate.indexOf("-")?localdate.substring(0,4):g,b["$[]="]("localyear",localyear));else{var v=h(m,r).toString(),t=("0"+(k(m,r)+1)).slice(-2),u=("0"+l(m,r)).slice(-2);localdate=v+"-"+t+"-"+u;b["$[]="]("localdate",localdate);localyear=v;b["$[]="]("localyear",v)}if(e(localtime=b["$[]"]("localtime"))){t=("0"+n(m,r)).slice(-2);u=("0"+m.getMinutes()).slice(-2);var x=
1362
+ ("0"+m.getSeconds()).slice(-2);v=0===r?"UTC":0<r?("+0"+100*r).slice(-5):("-0"+100*-r).slice(-5);localtime=t+":"+u+":"+x+" "+v;b["$[]="]("localtime",localtime)}e(localdatetime=b["$[]"]("localdatetime"))&&(localdatetime=localdate+" "+localtime,b["$[]="]("localdatetime",localdatetime));c(q)?d=q:c(d)?r=-d.getTimezoneOffset()/60:d=m;if(c(docdate=b["$[]"]("docdate")))b["$[]="]("docyear",4===docdate.indexOf("-")?docdate.substring(0,4):g);else if(c=h(d,r).toString(),k=("0"+(k(d,r)+1)).slice(-2),l=("0"+l(d,
1363
+ r)).slice(-2),docdate=c+"-"+k+"-"+l,b["$[]="]("docdate",docdate),e(b["$[]"]("docyear")))b["$[]="]("docyear",c);e(doctime=b["$[]"]("doctime"))&&(n=("0"+n(d,r)).slice(-2),l=("0"+d.getMinutes()).slice(-2),d=("0"+d.getSeconds()).slice(-2),v=0===r?"UTC":0<r?("+0"+100*r).slice(-5):("-0"+100*-r).slice(-5),doctime=n+":"+l+":"+d+" "+v,b["$[]="]("doctime",doctime));if(e(b["$[]"]("docdatetime")))b["$[]="]("docdatetime",docdate+" "+doctime);return g},c.$$arity=2),g)&&"fill_datetime_attributes"})(b[0],k(b,"AbstractBlock"),
1364
+ b)}(b[0],b)};Opal.modules["asciidoctor/js/asciidoctor_ext/substitutors"]=function(a){var b=[],g=a.module;return function(b,d){b=[g(b,"Asciidoctor")].concat(d);(function(b,d){b=g(b,"Substitutors");[b].concat(d);var c;a.def(b,"$sub_placeholder",c=function(a,b){return a.replace("%s",b)},c.$$arity=2)})(b[0],b)}(b[0],b)};Opal.modules["asciidoctor/js/asciidoctor_ext/parser"]=function(a){var b=[],g=a.nil,k=a.module,l=a.klass,m=a.truthy;return function(b,d){b=[k(b,"Asciidoctor")].concat(d);(function(b,$super,
1365
+ d){b=l(b,$super,"Parser");[b].concat(d);var c,h;return m(String.prototype.repeat)?(a.defs(b,"$uniform?",c=function(a,b,d){return b.repeat(d)===a},c.$$arity=3),g)&&"uniform?":(a.defs(b,"$uniform?",h=function(a,b,d){return Array.apply(null,{length:d}).map(function(){return b}).join("")===a},h.$$arity=3),g)&&"uniform?"})(b[0],null,b)}(b[0],b)};Opal.modules["asciidoctor/js/asciidoctor_ext/syntax_highlighter"]=function(a){var b=[],g=a.nil,k=a.const_get_relative,l=a.module,m=a.truthy;a.add_stubs("$key? $registry $[] $include? $include $empty? $debug $logger $join $keys".split(" "));
1366
+ return function(b,d){b=[l(b,"Asciidoctor")].concat(d);(function(b,d){b=[l(b,"SyntaxHighlighter")].concat(d);(function(b,d){b=l(b,"Factory");var c=[b].concat(d),e;a.def(b,"$for",e=function(a){if(m(this.$registry()["$key?"](a)))return this.$registry()["$[]"](a);m(this["$include?"](k(c,"Logging")))||this.$include(k(c,"Logging"));m(this.$registry()["$empty?"]())?this.$logger().$debug("no syntax highlighter available, functionality disabled."):this.$logger().$debug("syntax highlighter named '"+a+"' is not available, must be one of: '"+
1367
+ this.$registry().$keys().$join("', '")+"'.");return g},e.$$arity=1)})(b[0],b)})(b[0],b)}(b[0],b)};Opal.modules["asciidoctor/js/asciidoctor_ext"]=function(a){var b=a.top;a.add_stubs(["$require"]);b.$require("asciidoctor/js/asciidoctor_ext/stylesheet");b.$require("asciidoctor/js/asciidoctor_ext/document");b.$require("asciidoctor/js/asciidoctor_ext/substitutors");b.$require("asciidoctor/js/asciidoctor_ext/parser");b.$require("asciidoctor/js/asciidoctor_ext/syntax_highlighter");b.$require("asciidoctor/js/asciidoctor_ext/browser")};
1368
+ Opal.modules["asciidoctor/js/opal_ext/logger"]=function(a){var b=[],g=a.nil,k=a.const_get_relative,l=a.klass,m=a.truthy;a.add_stubs("$chr $rjust $message_as_string $< $write $call $[]".split(" "));return function(b,$super,d){b=l(b,$super,"Logger");var h=[b].concat(d),q;b.$$prototype.level=b.$$prototype.progname=b.$$prototype.pipe=b.$$prototype.formatter=g;(function(b,$super,d){b=l(b,$super,"Formatter");[b].concat(d);var e;return(a.def(b,"$call",e=function(a,b,d,e){b=b.getFullYear()+"-"+("0"+(b.getMonth()+
1369
+ 1)).slice(-2)+"-"+("0"+b.getDate()).slice(-2)+"T"+("0"+b.getHours()).slice(-2)+":"+("0"+b.getMinutes()).slice(-2)+":"+("0"+b.getSeconds()).slice(-2)+"."+("00"+1E3*(new Date).getMilliseconds()).slice(-6);return""+a.$chr()+", ["+b+"] "+a.$rjust(5)+" -- "+d+": "+this.$message_as_string(e)},e.$$arity=4),g)&&"call"})(h[0],null,h);return(a.def(b,"$add",q=function(b,d,e){var f=q.$$p,l=f||g,n;f&&(q.$$p=null);f&&(q.$$p=null);null==d&&(d=g);null==e&&(e=g);f=b=m(n=b)?n:k(h,"UNKNOWN");var p=this.level;f="number"===
1370
+ typeof f&&"number"===typeof p?f<p:f["$<"](p);if(m(f))return!0;e=m(n=e)?n:this.progname;m(d)||(l!==g?d=a.yieldX(l,[]):(d=e,e=this.progname));this.pipe.$write(this.formatter.$call(m(n=k(h,"SEVERITY_LABELS")["$[]"](b))?n:"ANY",new Date,e,d));return!0},q.$$arity=-2),g)&&"add"}(b[0],null,b)};Opal.modules["asciidoctor/js/postscript"]=function(a){var b=a.top;a.add_stubs(["$require"]);b.$require("asciidoctor/converter/composite");b.$require("asciidoctor/converter/html5");b.$require("asciidoctor/extensions");
1371
+ b.$require("asciidoctor/js/asciidoctor_ext");return b.$require("asciidoctor/js/opal_ext/logger")};(function(a){function b(a,b){return"number"===typeof a&&"number"===typeof b?a-b:a["$-"](b)}var g=a.top,k=[],l=a.nil,m=a.const_get_qualified,h=a.const_get_relative,c=a.module,q=a.send,p=a.truthy,t=a.hash2;a.add_stubs("$require $== $to_h $sort $map $constants $const_get $downcase $to_s $<=> $upcase $[] $values $new $attr_reader $instance_variable_set $send $singleton_class $<< $define $dirname $absolute_path $__dir__ $join $home $pwd $to_set $tap $each $chr $each_key $slice $[]= $- $length $merge $default= $drop $insert".split(" "));
1372
+ g.$require("set");h(k,"RUBY_ENGINE")["$=="]("opal")?g.$require("asciidoctor/js"):l;(function(d,g){d=c(d,"Asciidoctor");var e=[d].concat(g),f,k,n,r,v,u=l;a.const_set(e[0],"RUBY_ENGINE_OPAL",a.const_set(e[0],"RUBY_ENGINE",m("::","RUBY_ENGINE"))["$=="]("opal"));(function(b,d){b=c(b,"SafeMode");d=[b].concat(d);var e,f,g,h,k;a.const_set(d[0],"UNSAFE",0);a.const_set(d[0],"SAFE",1);a.const_set(d[0],"SERVER",10);a.const_set(d[0],"SECURE",20);b.names_by_value=q(q(b.$constants(!1),"map",[],(e=function(a){var b=
1373
+ e.$$s||this;null==a&&(a=l);return[b.$const_get(a),a.$to_s().$downcase()]},e.$$s=b,e.$$arity=1,e)),"sort",[],(f=function(b,d){null==b&&(b=l);null==d&&(d=l);var c=a.to_ary(b);var e=null==c[0]?l:c[0];b;b=d;c=a.to_ary(b);d=null==c[0]?l:c[0];b;return e["$<=>"](d)},f.$$s=b,f.$$arity=2,f.$$has_top_level_mlhs_arg=!0,f)).$to_h();a.defs(b,"$value_for_name",g=function(a){return this.$const_get(a.$upcase(),!1)},g.$$arity=1);a.defs(b,"$name_for_value",h=function(a){null==this.names_by_value&&(this.names_by_value=
1374
+ l);return this.names_by_value["$[]"](a)},h.$$arity=1);a.defs(b,"$names",k=function(){null==this.names_by_value&&(this.names_by_value=l);return this.names_by_value.$values()},k.$$arity=0)})(e[0],e);(function(b,d){b=c(b,"Compliance");d=[b].concat(d);b.keys=m("::","Set").$new();(function(b,d){[b].concat(d);var c;b.$attr_reader("keys");return(a.def(b,"$define",c=function(a,b){null==this.keys&&(this.keys=l);this.$instance_variable_set("@"+a,b);this.$singleton_class().$send("attr_accessor",a);this.keys["$<<"](a);
1375
+ return l},c.$$arity=2),l)&&"define"})(a.get_singleton_class(b),d);b.$define("block_terminates_paragraph",!0);b.$define("strict_verbatim_paragraphs",!0);b.$define("underline_style_section_titles",!0);b.$define("unwrap_standalone_preamble",!0);b.$define("attribute_missing","skip");b.$define("attribute_undefined","drop-line");b.$define("shorthand_property_syntax",!0);b.$define("natural_xrefs",!0);b.$define("unique_id_start_index",2);b.$define("markdown_syntax",!0)})(e[0],e);p(h(e,"ROOT_DIR","skip_raise")?
1376
+ "constant":l)||a.const_set(e[0],"ROOT_DIR",m("::","File").$dirname(m("::","File").$absolute_path(d.$__dir__())));a.const_set(e[0],"LIB_DIR",m("::","File").$join(h(e,"ROOT_DIR"),"lib"));a.const_set(e[0],"DATA_DIR",m("::","File").$join(h(e,"ROOT_DIR"),"data"));a.const_set(e[0],"USER_HOME",function(){try{return m("::","Dir").$home()}catch(ba){if(a.rescue(ba,[h(e,"StandardError")]))try{return p(f=m("::","ENV")["$[]"]("HOME"))?f:m("::","Dir").$pwd()}finally{a.pop_exception()}else throw ba;}}());a.const_set(e[0],
1377
+ "LF","\n");a.const_set(e[0],"NULL","\x00");a.const_set(e[0],"TAB","\t");a.const_set(e[0],"MAX_INT",9007199254740991);a.const_set(e[0],"UTF_8",m(m("::","Encoding"),"UTF_8"));a.const_set(e[0],"BOM_BYTES_UTF_8",[239,187,191]);a.const_set(e[0],"BOM_BYTES_UTF_16LE",[255,254]);a.const_set(e[0],"BOM_BYTES_UTF_16BE",[254,255]);a.const_set(e[0],"FILE_READ_MODE",p(h(e,"RUBY_ENGINE_OPAL"))?"r":"rb:utf-8:utf-8");a.const_set(e[0],"URI_READ_MODE",h(e,"FILE_READ_MODE"));a.const_set(e[0],"FILE_WRITE_MODE",p(h(e,
1378
+ "RUBY_ENGINE_OPAL"))?"w":"w:utf-8");a.const_set(e[0],"DEFAULT_DOCTYPE","article");a.const_set(e[0],"DEFAULT_BACKEND","html5");a.const_set(e[0],"DEFAULT_STYLESHEET_KEYS",["","DEFAULT"].$to_set());a.const_set(e[0],"DEFAULT_STYLESHEET_NAME","asciidoctor.css");a.const_set(e[0],"BACKEND_ALIASES",t(["html","docbook"],{html:"html5",docbook:"docbook5"}));a.const_set(e[0],"DEFAULT_PAGE_WIDTHS",t(["docbook"],{docbook:425}));a.const_set(e[0],"DEFAULT_EXTENSIONS",t("html docbook pdf epub manpage asciidoc".split(" "),
1379
+ {html:".html",docbook:".xml",pdf:".pdf",epub:".epub",manpage:".man",asciidoc:".adoc"}));a.const_set(e[0],"ASCIIDOC_EXTENSIONS",t([".adoc",".asciidoc",".asc",".ad",".txt"],{".adoc":!0,".asciidoc":!0,".asc":!0,".ad":!0,".txt":!0}));a.const_set(e[0],"SETEXT_SECTION_LEVELS",t(["=","-","~","^","+"],{"=":0,"-":1,"~":2,"^":3,"+":4}));a.const_set(e[0],"ADMONITION_STYLES",["NOTE","TIP","IMPORTANT","WARNING","CAUTION"].$to_set());a.const_set(e[0],"ADMONITION_STYLE_HEADS",q(m("::","Set").$new(),"tap",[],(k=
1380
+ function(a){var b=k.$$s||this,d;null==a&&(a=l);return q(h(e,"ADMONITION_STYLES"),"each",[],(d=function(b){null==b&&(b=l);return a["$<<"](b.$chr())},d.$$s=b,d.$$arity=1,d))},k.$$s=d,k.$$arity=1,k)));a.const_set(e[0],"PARAGRAPH_STYLES","comment example literal listing normal open pass quote sidebar source verse abstract partintro".split(" ").$to_set());a.const_set(e[0],"VERBATIM_STYLES",["literal","listing","source","verse"].$to_set());a.const_set(e[0],"DELIMITED_BLOCKS",t("-- ---- .... ==== **** ____ ++++ |=== ,=== :=== !=== //// ```".split(" "),
1381
+ {"--":["open","comment example literal listing pass quote sidebar source verse admonition abstract partintro".split(" ").$to_set()],"----":["listing",["literal","source"].$to_set()],"....":["literal",["listing","source"].$to_set()],"====":["example",["admonition"].$to_set()],"****":["sidebar",m("::","Set").$new()],____:["quote",["verse"].$to_set()],"++++":["pass",["stem","latexmath","asciimath"].$to_set()],"|===":["table",m("::","Set").$new()],",===":["table",m("::","Set").$new()],":===":["table",
1382
+ m("::","Set").$new()],"!===":["table",m("::","Set").$new()],"////":["comment",m("::","Set").$new()],"```":["fenced_code",m("::","Set").$new()]}));a.const_set(e[0],"DELIMITED_BLOCK_HEADS",q(t([],{}),"tap",[],(n=function(d){var c=n.$$s||this,f;null==d&&(d=l);return q(h(e,"DELIMITED_BLOCKS"),"each_key",[],(f=function(c){null==c&&(c=l);c=[c.$slice(0,2),!0];q(d,"[]=",a.to_a(c));return c[b(c.length,1)]},f.$$s=c,f.$$arity=1,f))},n.$$s=d,n.$$arity=1,n)));a.const_set(e[0],"DELIMITED_BLOCK_TAILS",q(t([],{}),
1383
+ "tap",[],(r=function(d){var c=r.$$s||this,f;null==d&&(d=l);return q(h(e,"DELIMITED_BLOCKS"),"each_key",[],(f=function(c){null==c&&(c=l);return c.$length()["$=="](4)?(c=[c,c["$[]"](b(c.$length(),1))],q(d,"[]=",a.to_a(c)),c[b(c.length,1)]):l},f.$$s=c,f.$$arity=1,f))},r.$$s=d,r.$$arity=1,r)));a.const_set(e[0],"CAPTION_ATTRIBUTE_NAMES",t(["example","figure","listing","table"],{example:"example-caption",figure:"figure-caption",listing:"listing-caption",table:"table-caption"}));a.const_set(e[0],"LAYOUT_BREAK_CHARS",
1384
+ t(["'","<"],{"'":"thematic_break","<":"page_break"}));a.const_set(e[0],"MARKDOWN_THEMATIC_BREAK_CHARS",t(["-","*","_"],{"-":"thematic_break","*":"thematic_break",_:"thematic_break"}));a.const_set(e[0],"HYBRID_LAYOUT_BREAK_CHARS",h(e,"LAYOUT_BREAK_CHARS").$merge(h(e,"MARKDOWN_THEMATIC_BREAK_CHARS")));a.const_set(e[0],"NESTABLE_LIST_CONTEXTS",["ulist","olist","dlist"]);a.const_set(e[0],"ORDERED_LIST_STYLES",["arabic","loweralpha","lowerroman","upperalpha","upperroman"]);a.const_set(e[0],"ORDERED_LIST_KEYWORDS",
1385
+ t(["loweralpha","lowerroman","upperalpha","upperroman"],{loweralpha:"a",lowerroman:"i",upperalpha:"A",upperroman:"I"}));a.const_set(e[0],"ATTR_REF_HEAD","{");a.const_set(e[0],"LIST_CONTINUATION","+");a.const_set(e[0],"HARD_LINE_BREAK"," +");a.const_set(e[0],"LINE_CONTINUATION"," \\");a.const_set(e[0],"LINE_CONTINUATION_LEGACY"," +");a.const_set(e[0],"BLOCK_MATH_DELIMITERS",t(["asciimath","latexmath"],{asciimath:["\\$","\\$"],latexmath:["\\[","\\]"]}));a.const_set(e[0],"INLINE_MATH_DELIMITERS",t(["asciimath",
1386
+ "latexmath"],{asciimath:["\\$","\\$"],latexmath:["\\(","\\)"]}));u=["asciimath"];q(a.const_set(e[0],"STEM_TYPE_ALIASES",t(["latexmath","latex","tex"],{latexmath:"latexmath",latex:"latexmath",tex:"latexmath"})),"default=",a.to_a(u));u[b(u.length,1)];a.const_set(e[0],"FONT_AWESOME_VERSION","4.7.0");a.const_set(e[0],"HIGHLIGHT_JS_VERSION","9.18.3");a.const_set(e[0],"MATHJAX_VERSION","2.7.9");a.const_set(e[0],"DEFAULT_ATTRIBUTES",t("appendix-caption appendix-refsig caution-caption chapter-refsig example-caption figure-caption important-caption last-update-label note-caption part-refsig prewrap sectids section-refsig table-caption tip-caption toc-placement toc-title untitled-label version-label warning-caption".split(" "),
1387
+ {"appendix-caption":"Appendix","appendix-refsig":"Appendix","caution-caption":"Caution","chapter-refsig":"Chapter","example-caption":"Example","figure-caption":"Figure","important-caption":"Important","last-update-label":"Last updated","note-caption":"Note","part-refsig":"Part",prewrap:"",sectids:"","section-refsig":"Section","table-caption":"Table","tip-caption":"Tip","toc-placement":"auto","toc-title":"Table of Contents","untitled-label":"Untitled","version-label":"Version","warning-caption":"Warning"}));
1388
+ a.const_set(e[0],"FLEXIBLE_ATTRIBUTES",["sectnums"]);a.const_set(e[0],"INTRINSIC_ATTRIBUTES",t("startsb endsb vbar caret asterisk tilde plus backslash backtick blank empty sp two-colons two-semicolons nbsp deg zwsp quot apos lsquo rsquo ldquo rdquo wj brvbar pp cpp amp lt gt".split(" "),{startsb:"[",endsb:"]",vbar:"|",caret:"^",asterisk:"*",tilde:"~",plus:"&#43;",backslash:"\\",backtick:"`",blank:"",empty:"",sp:" ","two-colons":"::","two-semicolons":";;",nbsp:"&#160;",deg:"&#176;",zwsp:"&#8203;",
1389
+ quot:"&#34;",apos:"&#39;",lsquo:"&#8216;",rsquo:"&#8217;",ldquo:"&#8220;",rdquo:"&#8221;",wj:"&#8288;",brvbar:"&#166;",pp:"&#43;&#43;",cpp:"C&#43;&#43;",amp:"&",lt:"<",gt:">"}));h(e,"RUBY_ENGINE")["$=="]("opal")||l;a.const_set(e[0],"QUOTE_SUBS",q(t([],{}),"tap",[],(v=function(d){var c;null==d&&(d=l);u=[!1,c=[["strong","unconstrained",new RegExp("\\\\?(?:\\[([^\\]]+)\\])?\\*\\*("+h(e,"CC_ALL")+"+?)\\*\\*","m")],["strong","constrained",new RegExp("(^|[^"+h(e,"CC_WORD")+";:}])(?:\\[([^\\]]+)\\])?\\*(\\S|\\S"+
1390
+ h(e,"CC_ALL")+"*?\\S)\\*(?!"+h(e,"CG_WORD")+")","m")],["double","constrained",new RegExp("(^|[^"+h(e,"CC_WORD")+';:}])(?:\\[([^\\]]+)\\])?"`(\\S|\\S'+h(e,"CC_ALL")+'*?\\S)`"(?!'+h(e,"CG_WORD")+")","m")],["single","constrained",new RegExp("(^|[^"+h(e,"CC_WORD")+";:`}])(?:\\[([^\\]]+)\\])?'`(\\S|\\S"+h(e,"CC_ALL")+"*?\\S)`'(?!"+h(e,"CG_WORD")+")","m")],["monospaced","unconstrained",new RegExp("\\\\?(?:\\[([^\\]]+)\\])?``("+h(e,"CC_ALL")+"+?)``","m")],["monospaced","constrained",new RegExp("(^|[^"+h(e,
1391
+ "CC_WORD")+";:\"'`}])(?:\\[([^\\]]+)\\])?`(\\S|\\S"+h(e,"CC_ALL")+"*?\\S)`(?!["+h(e,"CC_WORD")+"\"'`])","m")],["emphasis","unconstrained",new RegExp("\\\\?(?:\\[([^\\]]+)\\])?__("+h(e,"CC_ALL")+"+?)__","m")],["emphasis","constrained",new RegExp("(^|[^"+h(e,"CC_WORD")+";:}])(?:\\[([^\\]]+)\\])?_(\\S|\\S"+h(e,"CC_ALL")+"*?\\S)_(?!"+h(e,"CG_WORD")+")","m")],["mark","unconstrained",new RegExp("\\\\?(?:\\[([^\\]]+)\\])?##("+h(e,"CC_ALL")+"+?)##","m")],["mark","constrained",new RegExp("(^|[^"+h(e,"CC_WORD")+
1392
+ "&;:}])(?:\\[([^\\]]+)\\])?#(\\S|\\S"+h(e,"CC_ALL")+"*?\\S)#(?!"+h(e,"CG_WORD")+")","m")],["superscript","unconstrained",/\\?(?:\[([^\]]+)\])?\^(\S+?)\^/],["subscript","unconstrained",/\\?(?:\[([^\]]+)\])?~(\S+?)~/]]];q(d,"[]=",a.to_a(u));u[b(u.length,1)];u=[!0,c=c.$drop(0)];q(d,"[]=",a.to_a(u));u[b(u.length,1)];u=[2,["double","constrained",new RegExp("(^|[^"+h(e,"CC_WORD")+";:}])(?:\\[([^\\]]+)\\])?``(\\S|\\S"+h(e,"CC_ALL")+"*?\\S)''(?!"+h(e,"CG_WORD")+")","m")]];q(c,"[]=",a.to_a(u));u[b(u.length,
1393
+ 1)];u=[3,["single","constrained",new RegExp("(^|[^"+h(e,"CC_WORD")+";:}])(?:\\[([^\\]]+)\\])?`(\\S|\\S"+h(e,"CC_ALL")+"*?\\S)'(?!"+h(e,"CG_WORD")+")","m")]];q(c,"[]=",a.to_a(u));u[b(u.length,1)];u=[4,["monospaced","unconstrained",new RegExp("\\\\?(?:\\[([^\\]]+)\\])?\\+\\+("+h(e,"CC_ALL")+"+?)\\+\\+","m")]];q(c,"[]=",a.to_a(u));u[b(u.length,1)];u=[5,["monospaced","constrained",new RegExp("(^|[^"+h(e,"CC_WORD")+";:}])(?:\\[([^\\]]+)\\])?\\+(\\S|\\S"+h(e,"CC_ALL")+"*?\\S)\\+(?!"+h(e,"CG_WORD")+")",
1394
+ "m")]];q(c,"[]=",a.to_a(u));u[b(u.length,1)];return c.$insert(3,["emphasis","constrained",new RegExp("(^|[^"+h(e,"CC_WORD")+";:}])(?:\\[([^\\]]+)\\])?'(\\S|\\S"+h(e,"CC_ALL")+"*?\\S)'(?!"+h(e,"CG_WORD")+")","m")])},v.$$s=d,v.$$arity=1,v)));a.const_set(e[0],"REPLACEMENTS",[[/\\?\(C\)/,"&#169;","none"],[/\\?\(R\)/,"&#174;","none"],[/\\?\(TM\)/,"&#8482;","none"],[/(?: |\n|^|\\)--(?: |\n|$)/,"&#8201;&#8212;&#8201;","none"],[new RegExp("("+h(e,"CG_WORD")+")\\\\?--(?="+h(e,"CG_WORD")+")"),"&#8212;&#8203;",
1395
+ "leading"],[/\\?\.\.\./,"&#8230;&#8203;","none"],[/\\?`'/,"&#8217;","none"],[new RegExp("("+h(e,"CG_ALNUM")+")\\\\?'(?="+h(e,"CG_ALPHA")+")"),"&#8217;","leading"],[/\\?-&gt;/,"&#8594;","none"],[/\\?=&gt;/,"&#8658;","none"],[/\\?&lt;-/,"&#8592;","none"],[/\\?&lt;=/,"&#8656;","none"],[/\\?(&)amp;((?:[a-zA-Z][a-zA-Z]+\d{0,2}|#\d\d\d{0,4}|#x[\da-fA-F][\da-fA-F][\da-fA-F]{0,3});)/,"","bounding"]]);h(e,"RUBY_ENGINE")["$=="]("opal")||l;h(e,"RUBY_ENGINE")["$=="]("opal")||l})(k[0],k);g.$require("asciidoctor.rb/../asciidoctor/core_ext");
1396
+ g.$require("asciidoctor.rb/../asciidoctor/helpers");g.$require("asciidoctor.rb/../asciidoctor/logging");g.$require("asciidoctor.rb/../asciidoctor/rx");g.$require("asciidoctor.rb/../asciidoctor/substitutors");g.$require("asciidoctor.rb/../asciidoctor/version");g.$require("asciidoctor.rb/../asciidoctor/abstract_node");g.$require("asciidoctor.rb/../asciidoctor/abstract_block");g.$require("asciidoctor.rb/../asciidoctor/attribute_list");g.$require("asciidoctor.rb/../asciidoctor/block");g.$require("asciidoctor.rb/../asciidoctor/callouts");
1397
+ g.$require("asciidoctor.rb/../asciidoctor/converter");g.$require("asciidoctor.rb/../asciidoctor/document");g.$require("asciidoctor.rb/../asciidoctor/inline");g.$require("asciidoctor.rb/../asciidoctor/list");g.$require("asciidoctor.rb/../asciidoctor/parser");g.$require("asciidoctor.rb/../asciidoctor/path_resolver");g.$require("asciidoctor.rb/../asciidoctor/reader");g.$require("asciidoctor.rb/../asciidoctor/section");g.$require("asciidoctor.rb/../asciidoctor/stylesheets");g.$require("asciidoctor.rb/../asciidoctor/table");
1398
+ g.$require("asciidoctor.rb/../asciidoctor/writer");g.$require("asciidoctor.rb/../asciidoctor/load");g.$require("asciidoctor.rb/../asciidoctor/convert");return h(k,"RUBY_ENGINE")["$=="]("opal")?(g.$require("asciidoctor.rb/../asciidoctor/syntax_highlighter"),g.$require("asciidoctor.rb/../asciidoctor/timings"),g.$require("asciidoctor/js/postscript")):l})(Opal);var t=function(a){return a&&!a.$$is_hash?Opal.hash2(Object.keys(a),a):a},g=function(a){var b={};if(a){var g=a.$$smap;for(m in g){var k=g[m];b[m]=
1399
+ k===Opal.nil?void 0:k}if(a=a.$$map){g=[];for(var l in a){var m=a[l];k=m.value;g[m.key-1]=k===Opal.nil?void 0:k}0<g.length&&(b.$positional=g)}}return b},H=function(a){if(a=t(a)){var b=a["$[]"]("attributes");b&&"object"===typeof b&&"Object"===b.constructor.name&&(a=a.$dup(),a["$[]="]("attributes",t(b)))}return a},l=Opal.Asciidoctor.$$class;l.prototype.getCoreVersion=function(){return this.$$const.VERSION};l.prototype.getRuntime=function(){return{ioModule:Opal.const_get_qualified("::","JAVASCRIPT_IO_MODULE"),
1400
+ platform:Opal.const_get_qualified("::","JAVASCRIPT_PLATFORM"),engine:Opal.const_get_qualified("::","JAVASCRIPT_ENGINE"),framework:Opal.const_get_qualified("::","JAVASCRIPT_FRAMEWORK")}};l.prototype.convert=function(a,b){"object"===typeof a&&"Buffer"===a.constructor.name&&(a=a.toString("utf8"));a=this.$convert(a,H(b));return a===Opal.nil?"":a};l.prototype.convertFile=function(a,b){return this.$convert_file(a,H(b))};l.prototype.load=function(a,b){"object"===typeof a&&"Buffer"===a.constructor.name&&
1401
+ (a=a.toString("utf8"));return this.$load(a,H(b))};l.prototype.loadFile=function(a,b){return this.$load_file(a,H(b))};l=Opal.Asciidoctor.AbstractBlock;l.prototype.append=function(a){this.$append(a);return this};l.prototype.getTitle=function(){var a=this.$title();return a===Opal.nil?void 0:a};l.prototype.setTitle=function(a){a="undefined"===typeof a?Opal.nil:a;return this["$title="](a)};l.prototype.assignCaption=function(a,b){a="undefined"===typeof a?Opal.nil:a;this.$assign_caption(a,"undefined"===
1402
+ typeof b?null:b)};l.prototype.getCaptionedTitle=function(){return this.$captioned_title()};l.prototype.getStyle=function(){var a=this.style;return a===Opal.nil?void 0:a};l.prototype.setStyle=function(a){this.style=a};l.prototype.getSourceLocation=function(){var a=this.source_location;if(a!==Opal.nil)return a.getFile=function(){var a=this.file;return a===Opal.nil?void 0:a},a.getDirectory=function(){var a=this.dir;return a===Opal.nil?void 0:a},a.getPath=function(){var a=this.path;return a===Opal.nil?
1403
+ void 0:a},a.getLineNumber=function(){var a=this.lineno;return a===Opal.nil?void 0:a},a};l.prototype.getCaption=function(){var a=this.$caption();return a===Opal.nil?void 0:a};l.prototype.setCaption=function(a){this.caption="undefined"===typeof a?Opal.nil:a};l.prototype.getLevel=function(){var a=this.level;return a===Opal.nil?void 0:a};l.prototype.getSubstitutions=function(){return this.subs};l.prototype.hasSubstitution=function(a){return this["$sub?"](a)};l.prototype.removeSubstitution=function(a){this.$remove_sub(a)};
1404
+ l.prototype.hasBlocks=function(){return 0<this.blocks.length};l.prototype.getBlocks=function(){return this.blocks};l.prototype.getContent=function(){return this.$content()};l.prototype.convert=function(){return this.$convert()};l.prototype.findBy=function(a,b){return"undefined"===typeof b&&"function"===typeof a?Opal.send(this,"find_by",null,a):"function"===typeof b?Opal.send(this,"find_by",[t(a)],b):this.$find_by(t(a))};l.prototype.getLineNumber=function(){var a=this.$lineno();return a===Opal.nil?
1405
+ void 0:a};l.prototype.hasSections=function(){return this.next_section_index!==Opal.nil&&0<this.next_section_index};l.prototype.getSections=function(){return this.$sections()};l.prototype.getNumeral=function(){return this.$numeral()};l.prototype.setNumeral=function(a){this["$numeral="](a)};l.prototype.hasTitle=function(){return this["$title?"]()};l.prototype.getAlt=function(){return this.$alt()};l=Opal.Asciidoctor.Section;l.create=function(a,b,g,k){k&&k.attributes&&(k.attributes=t(k.attributes));return this.$new(a,
1406
+ b,g,t(k))};l.prototype.setLevel=function(a){this.level=a};l.prototype.getIndex=function(){return this.index};l.prototype.setIndex=function(a){this.index=a};l.prototype.getSectionName=function(){var a=this.sectname;return a===Opal.nil?void 0:a};l.prototype.setSectionName=function(a){this.sectname=a};l.prototype.isSpecial=function(){return this.special};l.prototype.setSpecial=function(a){this.special=a};l.prototype.isNumbered=function(){return this.numbered};l.prototype.getCaption=function(){var a=
1407
+ this.caption;return a===Opal.nil?void 0:a};l.prototype.getName=function(){return this.getTitle()};l=Opal.Asciidoctor.Block;l.create=function(a,b,g){g&&g.attributes&&(g.attributes=t(g.attributes));return this.$new(a,b,t(g))};l.prototype.getSource=function(){return this.$source()};l.prototype.getSourceLines=function(){return this.lines};l=Opal.Asciidoctor.AbstractNode;l.prototype.applySubstitutions=function(a,b){return this.$apply_subs(a,b)};l.prototype.resolveSubstitutions=function(a,b,g,k){"undefined"===
1408
+ typeof b&&(b="block");"undefined"===typeof g&&(g=Opal.nil);"undefined"===typeof k&&(k=Opal.nil);a=this.$resolve_subs(a,b,g,k);return a===Opal.nil?void 0:a};l.prototype.resolveBlockSubstitutions=function(a,b,g){return this.resolveSubstitutions(a,"block",b,g)};l.prototype.resolvePassSubstitutions=function(a){return this.resolveSubstitutions(a,"inline",void 0,"passthrough macro")};l.prototype.getNodeName=function(){return this.node_name};l.prototype.getAttributes=function(){return g(this.attributes)};
1409
+ l.prototype.getAttribute=function(a,b,g){a=this.$attr(a,b,g);return a===Opal.nil?void 0:a};l.prototype.hasAttribute=function(a){return a in this.attributes.$$smap};l.prototype.isAttribute=function(a,b,g){a=this["$attr?"](a,b,g);return a===Opal.nil?!1:a};l.prototype.setAttribute=function(a,b,g){"undefined"===typeof g&&(g=!0);return this.$set_attr(a,b,g)};l.prototype.removeAttribute=function(a){a=this.$remove_attr(a);return a===Opal.nil?void 0:a};l.prototype.getDocument=function(){return this.document};
1410
+ l.prototype.getParent=function(){var a=this.parent;return a===Opal.nil?void 0:a};l.prototype.isInline=function(){return this["$inline?"]()};l.prototype.isBlock=function(){return this["$block?"]()};l.prototype.isRole=function(a){return this["$role?"](a)};l.prototype.getRole=function(){return this.$role()};l.prototype.hasRole=function(a){return this["$has_role?"](a)};l.prototype.getRoles=function(){return this.$roles()};l.prototype.addRole=function(a){return this.$add_role(a)};l.prototype.removeRole=
1411
+ function(a){return this.$remove_role(a)};l.prototype.isReftext=function(){return this["$reftext?"]()};l.prototype.getReftext=function(){var a=this.$reftext();return a===Opal.nil?void 0:a};l.prototype.getContext=function(){var a=this.context;return"string"===typeof a?a:a.toString()};l.prototype.getId=function(){var a=this.id;return a===Opal.nil?void 0:a};l.prototype.setId=function(a){this.id=a};l.prototype.isOption=function(a){return this["$option?"](a)};l.prototype.setOption=function(a){return this.$set_option(a)};
1412
+ l.prototype.getIconUri=function(a){return this.$icon_uri(a)};l.prototype.getMediaUri=function(a,b){return this.$media_uri(a,b)};l.prototype.getImageUri=function(a,b){return this.$image_uri(a,b)};l.prototype.getConverter=function(){return this.$converter()};l.prototype.readContents=function(a,b){return this.$read_contents(a,t(b))};l.prototype.readAsset=function(a,b){a=this.$read_asset(a,t(b));return a===Opal.nil?void 0:a};l.prototype.normalizeWebPath=function(a,b,g){return this.$normalize_web_path(a,
1413
+ b,g)};l.prototype.normalizeSystemPath=function(a,b,g,k){return this.$normalize_system_path(a,b,g,t(k))};l.prototype.normalizeAssetPath=function(a,b,g){return this.$normalize_asset_path(a,b,g)};var E=Opal.Asciidoctor.Document;E.prototype.getRefs=function(){return g(this.catalog.$$smap.refs)};E.prototype.getImages=function(){return this.catalog.$$smap.images};E.prototype.getLinks=function(){return this.catalog.$$smap.links};E.prototype.hasFootnotes=function(){return this["$footnotes?"]()};E.prototype.getFootnotes=
1414
+ function(){return this.$footnotes()};E.prototype.getHeader=function(){return this.header};E.prototype.setAttribute=function(a,b){return this.$set_attribute(a,b)};E.prototype.removeAttribute=function(a){this.attributes.$delete(a);this.attribute_overrides.$delete(a)};E.prototype.convert=function(a){a=this.$convert(t(a));return a===Opal.nil?"":a};E.prototype.write=function(a,b){return this.$write(a,b)};E.prototype.getAuthor=function(){return this.$author()};E.prototype.getSource=function(){return this.$source()};
1415
+ E.prototype.getSourceLines=function(){return this.$source_lines()};E.prototype.isNested=function(){return this["$nested?"]()};E.prototype.isEmbedded=function(){return this["$embedded?"]()};E.prototype.hasExtensions=function(){return this["$extensions?"]()};E.prototype.getDoctype=function(){return this.doctype};E.prototype.getBackend=function(){return this.backend};E.prototype.isBasebackend=function(a){return this["$basebackend?"](a)};E.prototype.getTitle=function(){var a=this.$title();return a===
1416
+ Opal.nil?void 0:a};E.prototype.setTitle=function(a){return this["$title="](a)};E.prototype.getDocumentTitle=function(a){a=this.$doctitle(t(a));return a===Opal.nil?void 0:a};E.prototype.getDoctitle=E.prototype.getDocumentTitle;E.prototype.getCatalog=function(){return g(this.catalog)};E.prototype.getReferences=E.prototype.getCatalog;E.prototype.getRevisionDate=function(){return this.getAttribute("revdate")};E.prototype.getRevdate=function(){return this.getRevisionDate()};E.prototype.getRevisionNumber=
1417
+ function(){return this.getAttribute("revnumber")};E.prototype.getRevisionRemark=function(){return this.getAttribute("revremark")};E.prototype.setHeaderAttribute=function(a,b,g){"undefined"===typeof g&&(g=!0);"undefined"===typeof b&&(b="");return this.$set_header_attribute(a,b,g)};E.prototype.getAuthors=function(){return this.$authors()};var x=E.Footnote;x.prototype.getIndex=function(){var a=this.$$data.index;return a===Opal.nil?void 0:a};x.prototype.getId=function(){var a=this.$$data.id;return a===
1418
+ Opal.nil?void 0:a};x.prototype.getText=function(){var a=this.$$data.text;return a===Opal.nil?void 0:a};x=E.ImageReference;x.prototype.getTarget=function(){return this.$$data.target};x.prototype.getImagesDirectory=function(){var a=this.$$data.imagesdir;return a===Opal.nil?void 0:a};x=E.Author;x.prototype.getName=function(){var a=this.$$data.name;return a===Opal.nil?void 0:a};x.prototype.getFirstName=function(){var a=this.$$data.firstname;return a===Opal.nil?void 0:a};x.prototype.getMiddleName=function(){var a=
1419
+ this.$$data.middlename;return a===Opal.nil?void 0:a};x.prototype.getLastName=function(){var a=this.$$data.lastname;return a===Opal.nil?void 0:a};x.prototype.getInitials=function(){var a=this.$$data.initials;return a===Opal.nil?void 0:a};x.prototype.getEmail=function(){var a=this.$$data.email;return a===Opal.nil?void 0:a};E.RevisionInfo=function(a,b,g){this.date=a;this.number=b;this.remark=g};x=E.RevisionInfo;x.prototype.getDate=function(){return this.date};x.prototype.getNumber=function(){return this.number};
1420
+ x.prototype.getRemark=function(){return this.remark};x.prototype.isEmpty=function(){return void 0===this.date&&void 0===this.number&&void 0===this.remark};x=Opal.Asciidoctor.SafeMode;x.getValueForName=function(a){return this.$value_for_name(a)};x.getNameForValue=function(a){a=this.$name_for_value(a);return a===Opal.nil?void 0:a};x.getNames=function(){return this.$names()};x=Opal.Asciidoctor.Callouts;x.create=function(){return this.$new()};x.prototype.register=function(a){return this.$register(a)};
1421
+ x.prototype.readNextId=function(){return this.$read_next_id()};x.prototype.getCalloutIds=function(a){return this.$callout_ids(a)};x.prototype.getLists=function(){var a=this.lists;if(a&&0<a.length)for(var b=0;b<a.length;b++){var k=a[b];if(k&&0<k.length)for(var l=0;l<k.length;l++)"object"===typeof k[l]&&"$$smap"in k[l]&&(k[l]=g(k[l]))}return a};x.prototype.getListIndex=function(){return this.list_index};x.prototype.getCurrentList=function(){var a=this.$current_list();if(a&&0<a.length)for(var b=0;b<
1422
+ a.length;b++)"object"===typeof a[b]&&"$$smap"in a[b]&&(a[b]=g(a[b]));return a};x.prototype.nextList=function(){return this.$nextList()};x.prototype.rewind=function(){return this.$rewind()};E.prototype.getRevisionInfo=function(){return new E.RevisionInfo(this.getRevisionDate(),this.getRevisionNumber(),this.getRevisionRemark())};E.prototype.hasRevisionInfo=function(){return!this.getRevisionInfo().isEmpty()};E.prototype.getNotitle=function(){return this.$notitle()};E.prototype.getNoheader=function(){return this.$noheader()};
1423
+ E.prototype.getNofooter=function(){return this.$nofooter()};E.prototype.hasHeader=function(){return this["$header?"]()};E.prototype.playbackAttributes=function(a){if(a=t(a)){var b=a["$[]"]("attribute_entries");if(b&&Array.isArray(b)){for(var g=[],k=0;k<b.length;k++){var l=b[k];l&&"object"===typeof l&&"Object"===l.constructor.name&&(l.$name=function(){return this.name},l.$value=function(){return this.value},l.$negate=function(){return this.negate});g.push(l)}a["$[]="]("attribute_entries",g)}}this.$playback_attributes(a)};
1424
+ E.prototype.deleteAttribute=function(a){return this.$delete_attribute(a)};E.prototype.isAttributeLocked=function(a){return this["$attribute_locked?"](a)};E.prototype.restoreAttributes=function(){return this.$restore_attributes()};E.prototype.parse=function(a){return this.$parse(a)};E.prototype.getDocinfo=function(a,b){return this.$docinfo(a,b)};E.prototype.hasDocinfoProcessors=function(a){return this["$docinfo_processors?"](a)};E.prototype.incrementAndStoreCounter=function(a,b){return this.$increment_and_store_counter(a,
1425
+ b)};E.prototype.counterIncrement=E.prototype.incrementAndStoreCounter;E.prototype.counter=function(a,b){return this.$counter(a,b)};E.prototype.getSafe=function(){return this.safe};E.prototype.getCompatMode=function(){return this.compat_mode};E.prototype.getSourcemap=function(){var a=this.sourcemap;return a===Opal.nil?!1:a};E.prototype.setSourcemap=function(a){this.sourcemap=a};E.prototype.getCounters=function(){return g(this.counters)};E.prototype.getCallouts=function(){return this.$callouts()};E.prototype.getBaseDir=
1426
+ function(){return this.base_dir};E.prototype.getOptions=function(){return g(this.options)};E.prototype.getOutfilesuffix=function(){return this.outfilesuffix};E.prototype.getParentDocument=function(){var a=this.parent_document;return a===Opal.nil?void 0:a};E.prototype.getReader=function(){return this.reader};E.prototype.getConverter=function(){return this.converter};E.prototype.getExtensions=function(){var a=this.extensions;return a===Opal.nil?void 0:a};x=E.Title;x.prototype.getMain=function(){return this.main};
1427
+ x.prototype.getCombined=function(){return this.combined};x.prototype.getSubtitle=function(){var a=this.subtitle;return a===Opal.nil?void 0:a};x.prototype.isSanitized=function(){var a=this["$sanitized?"]();return a===Opal.nil?!1:a};x.prototype.hasSubtitle=function(){return this["$subtitle?"]()};x=Opal.Asciidoctor.Inline;x.create=function(a,b,g,k){return this.$new(a,b,g,H(k))};x.prototype.convert=function(){return this.$convert()};x.prototype.getText=function(){var a=this.$text();return a===Opal.nil?
1428
+ void 0:a};x.prototype.getType=function(){return this.$type()};x.prototype.getTarget=function(){var a=this.$target();return a===Opal.nil?void 0:a};x.prototype.getAlt=function(){return this.$alt()};x=Opal.Asciidoctor.List;x.prototype.hasItems=function(){return this["$items?"]()};x.prototype.getItems=function(){return this.blocks};x=Opal.Asciidoctor.ListItem;x.prototype.getText=function(){return this.$text()};x.prototype.setText=function(a){return this["$text="](a)};x.prototype.hasText=function(){return this["$text?"]()};
1429
+ x.prototype.getMarker=function(){return this.marker};x.prototype.setMarker=function(a){this.marker=a};x.prototype.getList=function(){return this.$list()};x.prototype.getParent=x.prototype.getList;x=Opal.Asciidoctor.Reader;x.prototype.pushInclude=function(a,b,g,k,l){return this.$push_include(a,b,g,k,t(l))};x.prototype.getCursor=function(){return this.$cursor()};x.prototype.getLines=function(){return this.$lines()};x.prototype.getString=function(){return this.$string()};x.prototype.hasMoreLines=function(){return this["$has_more_lines?"]()};
1430
+ x.prototype.isEmpty=function(){return this["$empty?"]()};x.prototype.peekLine=function(a){a=this.$peek_line(a||!1);return a===Opal.nil?void 0:a};x.prototype.readLine=function(){var a=this.$read_line();return a===Opal.nil?void 0:a};x.prototype.readLines=function(){return this.$read_lines()};x.prototype.read=function(){return this.$read()};x.prototype.advance=function(){return this.$advance()};var q=Opal.Asciidoctor.Reader.Cursor;q.prototype.getFile=function(){var a=this.file;return a===Opal.nil?void 0:
1431
+ a};q.prototype.getDirectory=function(){var a=this.dir;return a===Opal.nil?void 0:a};q.prototype.getPath=function(){var a=this.path;return a===Opal.nil?void 0:a};q.prototype.getLineNumber=function(){return this.lineno};var O=Opal.const_get_qualified(Opal.Asciidoctor,"LoggerManager",!0);Opal.Asciidoctor.LoggerManager=O;O.getLogger=function(){return this.$logger()};O.setLogger=function(a){this["$logger="](a)};O.newLogger=function(a,b){return C(a,b).$new()};O.newFormatter=function(a,b){return D(a,b).$new()};
1432
+ var P=Opal.const_get_qualified(Opal.Logger,"Severity",!0);Opal.Asciidoctor.LoggerSeverity=P;P.get=function(a){return P.$constants()[a]};q=Opal.const_get_qualified(Opal.Logger,"Formatter",!0);Opal.Asciidoctor.LoggerFormatter=q;q.prototype.call=function(a,b,g,k){return this.$call(P.get(a),b,g,k)};q=Opal.const_get_qualified(Opal.Asciidoctor,"MemoryLogger",!0);Opal.Asciidoctor.MemoryLogger=q;q.create=function(){return this.$new()};q.prototype.getMessages=function(){for(var a=this.messages,b=[],k=0;k<
1433
+ a.length;k++){var l=g(a[k]);"string"===typeof l.message?l.getText=function(){return this.message}:(l.message=g(l.message),l.getText=function(){return this.message.text});l.getSeverity=function(){return this.severity.toString()};l.getSourceLocation=function(){return this.message.source_location};b.push(l)}return b};var M=Opal.const_get_qualified(Opal.Asciidoctor,"Logging",!0);Opal.Asciidoctor.Logging=M;M.getLogger=function(){return O.$logger()};M.createLogMessage=function(a,b){return M.prototype.$message_with_context(a,
1434
+ t(b))};x.prototype.getLogger=M.getLogger;x.prototype.createLogMessage=M.createLogMessage;l.prototype.getLogger=M.getLogger;l.prototype.createLogMessage=M.createLogMessage;l=Opal.const_get_qualified(Opal.Asciidoctor,"Logger",!0);Opal.Asciidoctor.Logger=l;l.prototype.getMaxSeverity=function(){var a=this.max_severity;return a===Opal.nil?void 0:a};l.prototype.getFormatter=function(){return this.formatter};l.prototype.setFormatter=function(a){this.formatter=a};l.prototype.getLevel=function(){return this.level};
1435
+ l.prototype.setLevel=function(a){this.level=a};l.prototype.getProgramName=function(){return this.progname};l.prototype.setProgramName=function(a){this.progname=a};l=Opal.const_get_qualified("::","Logger");l.prototype.add=function(a,b,g){a="string"===typeof a?P[a.toUpperCase()]:a;this.$add(a,b,g)};l.prototype.log=l.prototype.add;l.prototype.debug=function(a){this.$debug(a)};l.prototype.info=function(a){this.$info(a)};l.prototype.warn=function(a){this.$warn(a)};l.prototype.error=function(a){this.$error(a)};
1436
+ l.prototype.fatal=function(a){this.$fatal(a)};l.prototype.isDebugEnabled=function(){return this["$debug?"]()};l.prototype.isInfoEnabled=function(){return this["$info?"]()};l.prototype.isWarnEnabled=function(){return this["$warn?"]()};l.prototype.isErrorEnabled=function(){return this["$error?"]()};l.prototype.isFatalEnabled=function(){return this["$fatal?"]()};l=Opal.const_get_qualified(Opal.Asciidoctor,"NullLogger",!0);Opal.Asciidoctor.NullLogger=l;l.create=function(){return this.$new()};l.prototype.getMaxSeverity=
1437
+ function(){return this.max_severity};Opal.Asciidoctor.StopIteration=Opal.StopIteration;l=Opal.const_get_qualified(Opal.Asciidoctor,"Timings",!0);Opal.Asciidoctor.Timings=l;l.create=function(){return this.$new()};l.prototype.printReport=function(a,b){if(a)if("function"===typeof a.$add)var d=function(b){a.$add(1,b)};else if("function"===typeof a.log)d=a.log;else if("function"===typeof a.write)d=function(b){a.write(b,"utf-8")};else throw Error("The output should be a Stream (with a write function), an object with a log function or a Ruby Logger (with a add function)");
1438
+ else d=function(a){Opal.gvars.stdout.$write(a)};b&&d("Input file: "+b);d(" Time to read and parse source: "+this.$read_parse().toFixed(2));d(" Time to convert document: "+this.$convert().toFixed(2));d(" Total time (read, parse and convert): "+this.$read_parse_convert().toFixed(2))};var G=Opal.const_get_qualified(Opal.Asciidoctor,"SyntaxHighlighter",!0);Opal.Asciidoctor.SyntaxHighlighter=G;G.register=function(a,b){var d="string"===typeof a?a:a[0];if("function"===typeof b){var l=b.prototype,q=Object.getOwnPropertyNames(l);
1439
+ b={};for(var r in q){var h=q[r];b[h]=l[h]}}var c=m(k,d,b,{},{format:function(a){2<=a.length&&"object"===typeof a[2]&&"$$smap"in a[2]&&(a[2]=g(a[2]));1<=a.length&&(a[1]=a[1]===Opal.nil?void 0:a[1]);return a},highlight:function(a){if(3<=a.length&&"object"===typeof a[3]&&"$$smap"in a[3]){var b=a[3];b=g(b);for(var d in b){var c=b[d];if("callouts"===d){var e=void 0;var f={};if(c)for(e in c=c.$$keys,c){var h=c[e].value;f[e.toString()]=h===Opal.nil?void 0:h}e=f;for(var k in e)for(f=e[k],c=0;c<f.length;c++){h=
1440
+ f[c];for(var l=0;l<h.length;l++)h[l]=h[l]===Opal.nil?void 0:h[l]}b[d]=e}else b[d]=c===Opal.nil?void 0:c}a[3]=b}2<=a.length&&(a[2]=a[2]===Opal.nil?void 0:a[2]);return a}}),t;for(t in b)Object.prototype.hasOwnProperty.call(b,t)&&function(a){var d=b[a];"handlesHighlighting"===a?Opal.def(c,"$highlight?",function(){return d.call()}):"hasDocinfo"===a&&Opal.def(c,"$docinfo?",function(a){return d.apply(this,[a])})}(t);Opal.def(c,"$name",function(){return d});G.$register(c,a);return c};G.get=function(a){a=
1441
+ G.$for(a);return a===Opal.nil?void 0:a};G.for=G.get;var k=Opal.const_get_qualified(G,"Base",!0);Opal.Asciidoctor.SyntaxHighlighterBase=k;k.prototype.registerFor=function(a){G.$register(this,a)};l=Opal.Asciidoctor.Table;l.create=function(a,b){return this.$new(a,t(b))};l.prototype.getCaption=function(){return this.caption};l.prototype.getRows=function(){return this.rows};l.prototype.getColumns=function(){return this.columns};l.prototype.getHeadRows=function(){return this.rows.head};l.prototype.hasHeadRows=
1442
+ function(){return this.rows!==Opal.nil&&0<this.rows.head.length};l.prototype.getBodyRows=function(){return this.rows.body};l.prototype.hasBodyRows=function(){return this.rows!==Opal.nil&&0<this.rows.body.length};l.prototype.getFootRows=function(){return this.rows.foot};l.prototype.hasFootRows=function(){return this.rows!==Opal.nil&&0<this.rows.foot.length};l.prototype.hasHeaderOption=function(){return this.has_header_option};l.prototype.hasFooterOption=function(){return""===this.getAttributes()["footer-option"]};
1443
+ l.prototype.hasAutowidthOption=function(){return""===this.getAttributes()["autowidth-option"]};l.prototype.getRowCount=function(){return this.getAttribute("rowcount")};l.prototype.setRowCount=function(a){this.setAttribute("rowcount",a)};l.prototype.getColumnCount=function(){return this.getAttribute("colcount")};l.prototype.setColumnCount=function(a){this.setAttribute("colcount",a)};l=Opal.Asciidoctor.Table.Rows;l.create=function(a,b,g){return this.$new(a,b,g)};l.prototype.getHead=function(){return this.head};
1444
+ l.prototype.getFoot=function(){return this.foot};l.prototype.getBody=function(){return this.body};l.prototype.bySection=function(){return[["head",this.head],["body",this.body],["foot",this.foot]]};l=Opal.Asciidoctor.Table.Column;l.create=function(a,b,g){return this.$new(a,b,t(g))};l.prototype.getColumnNumber=function(){return this.getAttribute("colnumber")};l.prototype.getWidth=function(){return this.getAttribute("width")};l.prototype.getHorizontalAlign=function(){return this.getAttribute("halign")};
1445
+ l.prototype.getVerticalAlign=function(){return this.getAttribute("valign")};l.prototype.getStyle=function(){var a=this.style;return a===Opal.nil?void 0:a};l=Opal.Asciidoctor.Table.Cell;l.create=function(a,b,g,k){return this.$new(a,b,t(g),t(k))};l.prototype.getColumnSpan=function(){var a=this.colspan;return a===Opal.nil?void 0:a};l.prototype.setColumnSpan=function(a){return this["$colspan="](a)};l.prototype.getRowSpan=function(){var a=this.rowspan;return a===Opal.nil?void 0:a};l.prototype.setRowSpan=
1446
+ function(a){return this["$rowspan="](a)};l.prototype.getContent=function(){return this.$content()};l.prototype.getText=function(){return this.$text()};l.prototype.getSource=function(){return this.$source()};l.prototype.getLines=function(){return this.$lines()};l.prototype.getLineNumber=function(){var a=this.$lineno();return a===Opal.nil?void 0:a};l.prototype.getFile=function(){var a=this.$file();return a===Opal.nil?void 0:a};l.prototype.getStyle=function(){var a=this.$style();return a===Opal.nil?
1447
+ void 0:a};l.prototype.getColumn=function(){var a=this.$column();return a===Opal.nil?void 0:a};l.prototype.getWidth=function(){return this.getAttribute("width")};l.prototype.getColumnPercentageWidth=function(){return this.getAttribute("colpcwidth")};l.prototype.getInnerDocument=function(){var a=this.inner_document;return a===Opal.nil?void 0:a};if(l=Opal.Asciidoctor.Converter.TemplateConverter)Opal.Asciidoctor.TemplateConverter=l,l.create=function(a,b,g){g&&g.template_cache&&(g.template_cache=t(g.template_cache));
1448
+ this.$new(a,b,t(g))},l.getCache=function(){var a=g(this.caches);if(a){if(a.scans){a.scans=g(a.scans);for(var b in a.scans)a.scans[b]=g(a.scans[b])}a.templates&&(a.templates=g(a.templates))}return a},l.clearCache=function(){this.$clear_caches()},l.prototype.convert=function(a,b,g){return this.$convert(a,b,t(g))},l.prototype.handles=function(a){return this["$handles?"](a)},l.prototype.getTemplates=function(){return g(this.$templates())},l.prototype.register=function(a,b){return this.$register(a,b)},
1449
+ l={registry:{}},Opal.Asciidoctor.TemplateEngine=l,l.register=function(a,b){if("string"===typeof a)this.registry[a]=b;else for(var d=0;d<a.length;d++)this.registry[a[d]]=b};var pa=function(a){a.$$arity=a.length;return a},R=function(a,b,g,k){return"object"===typeof g||g.$$is_class?a["$"+b](g,k):Opal.send(a,b,k&&[k],pa(g))},z=Opal.const_get_qualified(Opal.Asciidoctor,"Extensions");Opal.Asciidoctor.Extensions=z;z.create=function(a,b){return"function"===typeof a&&"undefined"===typeof b?Opal.send(this,
1450
+ "create",null,pa(a)):"function"===typeof b?Opal.send(this,"create",[a],pa(b)):this.$create()};z.register=function(a,b){return"function"===typeof a&&"undefined"===typeof b?Opal.send(this,"register",null,pa(a)):Opal.send(this,"register",[a],pa(b))};z.getGroups=function(){return g(this.$groups())};z.unregisterAll=function(){this.$unregister_all()};z.unregister=function(){for(var a=Array.prototype.concat.apply([],arguments),b=this.$groups(),g={},k=0,l=b.$$keys;k<l.length;k++){var m=l[k];g[m.toString()]=
1451
+ m}for(k=0;k<a.length;k++)l=a[k],l in g&&Opal.hash_delete(b,g[l])};l=z.Registry;l.prototype.getGroups=z.getGroups;l.prototype.unregisterAll=function(){this.groups=Opal.hash()};l.prototype.unregister=z.unregister;l.prototype.prefer=function(a,b){1===arguments.length&&(b=a,a=null);return"object"===typeof b||b.$$is_class?this.$prefer(a,b):Opal.send(this,"prefer",a&&[a],pa(b))};l.prototype.block=function(a,b){1===arguments.length&&(b=a,a=null);return R(this,"block",b,a)};l.prototype.inlineMacro=function(a,
1452
+ b){1===arguments.length&&(b=a,a=null);return R(this,"inline_macro",b,a)};l.prototype.includeProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return R(this,"include_processor",b,a)};l.prototype.blockMacro=function(a,b){1===arguments.length&&(b=a,a=null);return R(this,"block_macro",b,a)};l.prototype.treeProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return R(this,"tree_processor",b,a)};l.prototype.postprocessor=function(a,b){1===arguments.length&&(b=a,a=null);return R(this,"postprocessor",
1453
+ b,a)};l.prototype.preprocessor=function(a,b){1===arguments.length&&(b=a,a=null);return R(this,"preprocessor",b,a)};l.prototype.docinfoProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return R(this,"docinfo_processor",b,a)};l.prototype.hasPreprocessors=function(){return this["$preprocessors?"]()};l.prototype.hasTreeProcessors=function(){return this["$tree_processors?"]()};l.prototype.hasIncludeProcessors=function(){return this["$include_processors?"]()};l.prototype.hasPostprocessors=function(){return this["$postprocessors?"]()};
1454
+ l.prototype.hasDocinfoProcessors=function(a){return this["$docinfo_processors?"](a)};l.prototype.hasBlocks=function(){return this["$blocks?"]()};l.prototype.hasBlockMacros=function(){return this["$block_macros?"]()};l.prototype.hasInlineMacros=function(){return this["$inline_macros?"]()};l.prototype.getPreprocessors=function(){return this.$preprocessors()};l.prototype.getTreeProcessors=function(){return this.$tree_processors()};l.prototype.getIncludeProcessors=function(){return this.$include_processors()};
1455
+ l.prototype.getPostprocessors=function(){return this.$postprocessors()};l.prototype.getDocinfoProcessors=function(a){return this.$docinfo_processors(a)};l.prototype.getBlocks=function(){return this.block_extensions.$values()};l.prototype.getBlockMacros=function(){return this.block_macro_extensions.$values()};l.prototype.getInlineMacros=function(){return this.$inline_macros()};l.prototype.getInlineMacroFor=function(a){a=this["$registered_for_inline_macro?"](a);return!1===a?void 0:a};l.prototype.getBlockFor=
1456
+ function(a,b){if("undefined"===typeof b)return a=this.$find_block_extension(a),a===Opal.nil?void 0:a;a=this["$registered_for_block?"](a,b);return!1===a?void 0:a};l.prototype.getBlockMacroFor=function(a){a=this["$registered_for_block_macro?"](a);return!1===a?void 0:a};l=z.Processor;l.prototype.prepend=function(){this.$option("position",">>")};l.prototype.process=function(a){a=new Proxy(a,{apply:function(a,b,k){for(var d=0;d<k.length;d++)"object"===typeof k[d]&&"$$smap"in k[d]&&(k[d]=g(k[d]));return a.apply(b,
1457
+ k)}});return Opal.send(this,"process",null,pa(a))};l.prototype.named=function(a){return this.$named(a)};l.prototype.createBlock=function(a,b,g,k,l){return this.$create_block(a,b,g,t(k),t(l))};l.prototype.createList=function(a,b,g){return this.$create_list(a,b,t(g))};l.prototype.createListItem=function(a,b){return this.$create_list_item(a,b)};l.prototype.createImageBlock=function(a,b,g){return this.$create_image_block(a,t(b),t(g))};l.prototype.createParagraph=function(a,b,g,k){return this.$create_paragraph(a,
1458
+ b,t(g),t(k))};l.prototype.createOpenBlock=function(a,b,g,k){return this.$create_open_block(a,b,t(g),t(k))};l.prototype.createExampleBlock=function(a,b,g,k){return this.$create_example_block(a,b,t(g),t(k))};l.prototype.createPassBlock=function(a,b,g,k){return this.$create_pass_block(a,b,t(g),t(k))};l.prototype.createListingBlock=function(a,b,g,k){return this.$create_listing_block(a,b,t(g),t(k))};l.prototype.createLiteralBlock=function(a,b,g,k){return this.$create_literal_block(a,b,t(g),t(k))};l.prototype.createAnchor=
1459
+ function(a,b,g){g&&g.attributes&&(g.attributes=t(g.attributes));return this.$create_anchor(a,b,t(g))};l.prototype.createInlinePass=function(a,b,g){g&&g.attributes&&(g.attributes=t(g.attributes));return this.$create_inline_pass(a,b,t(g))};l.prototype.createInline=function(a,b,g,k){k&&k.attributes&&(k.attributes=t(k.attributes));return this.$create_inline(a,b,g,t(k))};l.prototype.parseContent=function(a,b,g){return this.$parse_content(a,b,g)};l.prototype.parseAttributes=function(a,b,k){k&&k.attributes&&
1460
+ (k.attributes=t(k.attributes));return g(this.$parse_attributes(a,b,t(k)))};l.prototype.positionalAttributes=function(a){return this.$positional_attrs(a)};l.prototype.resolveAttributes=function(a){return"object"!==typeof a||Array.isArray(a)?1<arguments.length?this.$resolves_attributes(Array.prototype.slice.call(arguments)):"undefined"===typeof a?this.$resolves_attributes(Opal.nil):this.$resolves_attributes(a):this.$resolves_attributes(t(a))};l.prototype.resolvesAttributes=l.prototype.resolveAttributes;
1461
+ l.prototype.getConfig=function(){return g(this.config)};l.prototype.option=function(a,b){this.$option(a,b)};l=z.BlockProcessor;l.prototype.defaultAttributes=function(a){this.$default_attributes(t(a))};l.prototype.onContext=function(a){return this.$on_context(a)};l.prototype.onContexts=function(a){return this.$on_contexts(Array.prototype.slice.call(arguments))};l.prototype.getName=function(){var a=this.name;return a===Opal.nil?void 0:a};l.prototype.parseContentAs=function(a){this.$parse_content_as(a)};
1462
+ l=z.BlockMacroProcessor;l.prototype.defaultAttributes=function(a){this.$default_attributes(t(a))};l.prototype.getName=function(){var a=this.name;return a===Opal.nil?void 0:a};l.prototype.parseContentAs=function(a){this.$parse_content_as(a)};l=z.InlineMacroProcessor;l.prototype.defaultAttributes=function(a){this.$default_attributes(t(a))};l.prototype.getName=function(){var a=this.name;return a===Opal.nil?void 0:a};l.prototype.parseContentAs=function(a){this.$parse_content_as(a)};l.prototype.matchFormat=
1463
+ function(a){this.$match_format(a)};l.prototype.match=function(a){this.$match(a)};l=z.IncludeProcessor;l.prototype.handles=function(a){return Opal.send(this,"handles?",null,pa(a))};l.prototype.prefer=function(){this.$prefer()};z.TreeProcessor.prototype.prefer=function(){this.$prefer()};z.Postprocessor.prototype.prefer=function(){this.$prefer()};z.Preprocessor.prototype.prefer=function(){this.$prefer()};l=z.DocinfoProcessor;l.prototype.prefer=function(){this.$prefer()};l.prototype.atLocation=function(a){this.$at_location(a)};
1464
+ z.createPostprocessor=function(a,b){1===arguments.length&&(b=a,a=null);return u("Postprocessor",a,b)};z.newPostprocessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createPostprocessor(a,b).$new()};z.createPreprocessor=function(a,b){1===arguments.length&&(b=a,a=null);return u("Preprocessor",a,b)};z.newPreprocessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createPreprocessor(a,b).$new()};z.createTreeProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return u("TreeProcessor",
1465
+ a,b)};z.newTreeProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createTreeProcessor(a,b).$new()};z.createIncludeProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return u("IncludeProcessor",a,b)};z.newIncludeProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createIncludeProcessor(a,b).$new()};z.createDocinfoProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return u("DocinfoProcessor",a,b)};z.newDocinfoProcessor=function(a,b){1===arguments.length&&
1466
+ (b=a,a=null);return this.createDocinfoProcessor(a,b).$new()};z.createBlockProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return u("BlockProcessor",a,b)};z.newBlockProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createBlockProcessor(a,b).$new()};z.createInlineMacroProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return u("InlineMacroProcessor",a,b)};z.newInlineMacroProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createInlineMacroProcessor(a,
1467
+ b).$new()};z.createBlockMacroProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return u("BlockMacroProcessor",a,b)};z.newBlockMacroProcessor=function(a,b){1===arguments.length&&(b=a,a=null);return this.createBlockMacroProcessor(a,b).$new()};var F=Opal.const_get_qualified(Opal.Asciidoctor,"Converter");Opal.Asciidoctor.Converter=F;F.prototype.convert=function(a,b,g){return this.$convert(a,b,t(g))};F.create=function(a,b){return this.$create(a,t(b))};l=Opal.Asciidoctor.Converter.Factory;var ja=
1468
+ Opal.Asciidoctor.Converter.Base;Opal.Asciidoctor.ConverterFactory=l;var Z=Opal.Asciidoctor.Converter.BackendTraits;Opal.Asciidoctor.ConverterBackendTraits=Z;l.register=function(a,b){var d=function(a,b){if(a.backend_traits)b.backend_traits=t(a.backend_traits);else if(a.backendTraits)b.backend_traits=t(a.backendTraits);else if(a.basebackend||a.outfilesuffix||a.filetype||a.htmlsyntax||a.supports_templates)b.backend_traits=t(Object.assign({},a.basebackend?{basebackend:a.basebackend}:{},a.outfilesuffix?
1469
+ {outfilesuffix:a.outfilesuffix}:{},a.filetype?{filetype:a.filetype}:{},a.htmlsyntax?{htmlsyntax:a.htmlsyntax}:{},a.supports_templates?{supports_templates:a.supports_templates}:{}))},g=function(a,b){k(a,b,"$handles?","handles",function(){return!0})},k=function(a,b,c,d,g){"undefined"===typeof a[c]&&("function"===typeof a[d]?b[c]=a[d]:g&&(b[c]=g))},l=function(a){"function"!==typeof a["$respond_to?"]&&(a["$respond_to?"]=function(a){return"function"===typeof this[a]})};if("function"===typeof a){var h=
1470
+ m(ja,a.constructor.name,{initialize:function(b,c){var h=new a(b,c);Object.assign(this,h);d(h,this);for(var m=Object.getOwnPropertyNames(a.prototype),n=0;n<m.length;n++){var e=m[n];"constructor"!==e&&(this[e]=h[e])}"undefined"===typeof h.$convert&&"function"===typeof h.convert&&(this.$convert=h.convert);g(h,this);k(h,this,"$composed","composed");l(this);this.super(b,c)}});h.$extend(Z)}else if("object"===typeof a){"undefined"===typeof a.$convert&&"function"===typeof a.convert&&(a.$convert=a.convert);
1471
+ d(a,a);if(a.backend_traits){h=$jscomp.makeIterator("basebackend filetype htmlsyntax outfilesuffix supports_templates supports_templates? init_backend_traits backend_traits".split(" "));for(var c=h.next();!c.done;c=h.next())c=c.value,a["$"+c]=Z.prototype["$"+c];a.$$meta=Z}g(a,a);k(a,a,"$composed","composed");l(a);h=a}b=[h].concat(b);return F.$register.apply(F,b)};l.getDefault=function(a){return this.$default(a)};l.prototype.create=function(a,b){return this.$create(a,t(b))};l.getRegistry=function(){return g(F.$registry())};
1472
+ l.for=function(a){a=F.$for(a);return a===Opal.nil?void 0:a};l.unregisterAll=function(){F.DefaultFactory.$$cvars["@@registry"]=t({html5:F.DefaultFactory.$$cvars["@@registry"]["$[]"]("html5")})};l=Opal.Asciidoctor.Converter.Html5Converter;Opal.Asciidoctor.Html5Converter=l;l.create=function(){return this.$new()};l.prototype.convert=function(a,b,g){return this.$convert(a,b,g)};Opal.Asciidoctor.prototype.getVersion=function(){return"2.2.5"};return Opal.Asciidoctor});