j1-template 2024.1.3 → 2024.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/assets/themes/j1/core/js/template.js +60 -56
  3. data/assets/themes/j1/core/js/template.min.js +1 -1
  4. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  5. data/lib/j1/version.rb +1 -1
  6. data/lib/starter_web/README.md +5 -5
  7. data/lib/starter_web/_config.yml +2 -2
  8. data/lib/starter_web/_data/blocks/footer.yml +5 -5
  9. data/lib/starter_web/_data/modules/navigator_menu.yml +781 -771
  10. data/lib/starter_web/_data/templates/feed.xml +1 -1
  11. data/lib/starter_web/_plugins/index/lunr.rb +1 -1
  12. data/lib/starter_web/assets/images/modules/attics/1920x1280/markus-spiske.jpg +0 -0
  13. data/lib/starter_web/assets/videos/gallery/kick-it-old-school-poster.jpg +0 -0
  14. data/lib/starter_web/assets/videos/gallery/stay-colorful-poster.jpg +0 -0
  15. data/lib/starter_web/assets/videos/gallery/video2-poster.jpg +0 -0
  16. data/lib/starter_web/assets/videos/gallery/video_adele-poster.jpg +0 -0
  17. data/lib/starter_web/assets/videos/gallery/video_adele_last_carpool_caraoke_poster.jpg +0 -0
  18. data/lib/starter_web/assets/videos/gallery/video_gaga-poster.jpg +0 -0
  19. data/lib/starter_web/assets/videos/gallery/video_gwen-poster.jpg +0 -0
  20. data/lib/starter_web/assets/videos/gallery/video_james_carpool_caraoke_poster.jpg +0 -0
  21. data/lib/starter_web/assets/videos/gallery/video_michelle-poster.jpg +0 -0
  22. data/lib/starter_web/assets/videos/gallery/videojs-poster.png +0 -0
  23. data/lib/starter_web/collections/_biography/a-life-in-questions.adoc +1 -1
  24. data/lib/starter_web/collections/_biography/becoming.adoc +1 -1
  25. data/lib/starter_web/collections/_biography/born-to-run.adoc +1 -1
  26. data/lib/starter_web/collections/_biography/forty-autumns.adoc +1 -1
  27. data/lib/starter_web/collections/_biography/not-dead-yet.adoc +1 -1
  28. data/lib/starter_web/collections/_biography/princess-diarist-the.adoc +1 -1
  29. data/lib/starter_web/collections/_biography/when-breath-becomes-air.adoc +1 -1
  30. data/lib/starter_web/collections/_fantasy/harry-potter-deathly-hallows.adoc +1 -1
  31. data/lib/starter_web/collections/_fantasy/harry-potter-philosophers-stone.adoc +1 -1
  32. data/lib/starter_web/collections/_fantasy/mistborn-trilogy.adoc +1 -1
  33. data/lib/starter_web/collections/_fantasy/ready-player-one.adoc +1 -1
  34. data/lib/starter_web/collections/_fantasy/sword-of-destiny.adoc +1 -1
  35. data/lib/starter_web/collections/_fantasy/terry-pratchet-diary.adoc +1 -1
  36. data/lib/starter_web/collections/_portfolio/branding.adoc +1 -1
  37. data/lib/starter_web/collections/_portfolio/graphic_design.adoc +1 -1
  38. data/lib/starter_web/collections/_portfolio/identity.adoc +1 -1
  39. data/lib/starter_web/collections/_portfolio/illustration.adoc +1 -1
  40. data/lib/starter_web/collections/_portfolio/photography.adoc +1 -1
  41. data/lib/starter_web/collections/_portfolio/web_design.adoc +1 -1
  42. data/lib/starter_web/collections/_romance/breath-of-snow-and-ashes.adoc +1 -1
  43. data/lib/starter_web/collections/_romance/it-ends-with-us.adoc +1 -1
  44. data/lib/starter_web/collections/_romance/outlander-novel.adoc +1 -1
  45. data/lib/starter_web/collections/_romance/outlander-virgins-short-story.adoc +1 -1
  46. data/lib/starter_web/collections/_romance/the-dressmaker.adoc +1 -1
  47. data/lib/starter_web/collections/_romance/the-fiery-cross.adoc +1 -1
  48. data/lib/starter_web/collections/asciidoc_skeletons/simple-post/_posts/yyyy-mm-dd-your-post-name.asciidoc +1 -1
  49. data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +1 -1
  50. data/lib/starter_web/collections/posts/public/featured/_posts/2021-01-01-about-cookies.adoc +1 -1
  51. data/lib/starter_web/collections/posts/public/featured/_posts/2021-02-01-static-site-generators.adoc +1 -1
  52. data/lib/starter_web/index.html +1 -1
  53. data/lib/starter_web/package.json +1 -1
  54. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/000_intro.adoc +1 -1
  55. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/100_converter.adoc +1 -1
  56. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/200_themes.adoc +1 -1
  57. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +1 -1
  58. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +1 -1
  59. data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +1 -1
  60. data/lib/starter_web/pages/public/blog/navigator/archive/allview.html +1 -1
  61. data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +1 -1
  62. data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +1 -1
  63. data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +1 -1
  64. data/lib/starter_web/pages/public/blog/navigator/index.html +1 -1
  65. data/lib/starter_web/pages/public/features/general.adoc +1 -1
  66. data/lib/starter_web/pages/public/features/template.adoc +1 -1
  67. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_biography.adoc +1 -1
  68. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_fantasy.adoc +1 -1
  69. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_romance.adoc +1 -1
  70. data/lib/starter_web/pages/public/learn/bookshelf/jekyll_collections.adoc +1 -1
  71. data/lib/starter_web/pages/public/learn/bookshelf/viewer_all_books.adoc +1 -1
  72. data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +1 -1
  73. data/lib/starter_web/pages/public/learn/roundtrip/bootstrap_themes.adoc +1 -1
  74. data/lib/starter_web/pages/public/learn/roundtrip/highlghter_rouge.adoc +1 -1
  75. data/lib/starter_web/pages/public/learn/roundtrip/icon_fonts.adoc +1 -1
  76. data/lib/starter_web/pages/public/learn/roundtrip/{present_videos.adoc → present_audio_video.adoc} +32 -19
  77. data/lib/starter_web/pages/public/learn/roundtrip/present_images.adoc +11 -9
  78. data/lib/starter_web/pages/public/learn/roundtrip/responsive_tables.adoc +1 -1
  79. data/lib/starter_web/pages/public/learn/roundtrip/typography.adoc +1 -1
  80. data/lib/starter_web/pages/public/learn/where_to_go.adoc +1 -1
  81. data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +1 -1
  82. data/lib/starter_web/pages/public/legal/en/200_impress.adoc +1 -1
  83. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +1 -1
  84. data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +1 -1
  85. data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +1 -1
  86. data/lib/starter_web/pages/public/plans/plans.adoc +1 -1
  87. data/lib/starter_web/pages/public/tools/previewer/preview_bootstrap_theme.adoc +1 -1
  88. data/lib/starter_web/pages/public/tools/previewer/preview_speak2me.adoc +740 -0
  89. metadata +6 -4
  90. /data/_layouts/{readme → !readme} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4bf8a48f126552dd9fa1d4726c075ff81e50d233d330627b961910517242b5a
4
- data.tar.gz: da3f34bdc1a927daef176fdbc34d09be69a332b11e6d65b39220f3b89f6d63da
3
+ metadata.gz: 69527fc36e3fd5e55e41fe6fcab2428374f0cd4512db05a492144b5f53790295
4
+ data.tar.gz: 25c2b962677ca643515ee1b5b2d2b188e2c053cd8c935ec0ac9df438d1fd1ee7
5
5
  SHA512:
6
- metadata.gz: d7aaf94857f6f7c6978518bbe836452eae91643dc180818411a988572efd8110c443927d40f1d3622cfe106c727ac37d8b6048cb54f19b87017d449093a79ba0
7
- data.tar.gz: 1c077687d5a1a6bb195d8e92bbde146976f4c27cb57e167f7e8794d412edcd317b832c558fec6daad953fa9517342c449fac66934000478f7a4ae282d9d5fa5c
6
+ metadata.gz: 83a9d72bc70ecd97888f7131e8c8900b06c09bcbf049d333618fbc63467a35c15531d633545597adc3d91515bc0540563fb2905e00d620cc3883093dc6ab07be
7
+ data.tar.gz: 78b8ac9c29a6e61a16e175595b11b264f26135de4d07c0cf880e5afb9bc393e55209c328af899bbcead7150a0450394a7e62938e6dafe20734c6ec0216087cdb
@@ -5137,35 +5137,35 @@ module.exports = function parseContent(options) {
5137
5137
 
5138
5138
  // Default values
5139
5139
  //
5140
- voiceTags['a'] = new voiceTag('Link ', '');
5140
+ voiceTags['a'] = new voiceTag('Link' + pause_spoken, '');
5141
5141
  voiceTags['q'] = new voiceTag(pause_spoken, '');
5142
5142
  voiceTags['ol'] = new voiceTag(pause_spoken, '');
5143
5143
  voiceTags['ul'] = new voiceTag(pause_spoken, '');
5144
5144
  voiceTags['dl'] = new voiceTag(pause_spoken, '');
5145
5145
  voiceTags['dt'] = new voiceTag(pause_spoken, '');
5146
- voiceTags['img'] = new voiceTag('Image element ', 'Element not spoken ');
5147
- voiceTags['table'] = new voiceTag('Table element ', 'Element not spoken ');
5146
+ voiceTags['img'] = new voiceTag('Image element' + pause_spoken, 'Element not spoken' + pause_spoken);
5147
+ voiceTags['table'] = new voiceTag('Table element' + pause_spoken, 'Element not spoken' + pause_spoken);
5148
5148
  voiceTags['card-header'] = new voiceTag(pause_spoken, '');
5149
- voiceTags['.doc-example'] = new voiceTag('Example element ', 'Element not spoken ');
5150
- voiceTags['.admonitionblock'] = new voiceTag('Attention element ', '');
5151
- voiceTags['.listingblock'] = new voiceTag('Text element ', 'Element not spoken ');
5152
- voiceTags['.gist'] = new voiceTag('Gist element ', 'Element not spoken ');
5153
- voiceTags['.slider'] = new voiceTag('Slider element ', 'Element not spoken ');
5154
- voiceTags['.modal'] = new voiceTag('Info element — ', 'Element not spoken ');
5155
- voiceTags['.masonry'] = new voiceTag('Masonry element ', 'Element not spoken ');
5156
- voiceTags['.lightbox-block'] = new voiceTag('Lightbox element ', 'Element not spoken ');
5157
- voiceTags['.gallery'] = new voiceTag('Gallery element ', 'Element not spoken ');
5158
- voiceTags['.audioblock'] = new voiceTag('Audio element ', 'Element not spoken ');
5159
- voiceTags['.videoblock'] = new voiceTag('Video element ', 'Element not spoken ');
5160
- voiceTags['.videojs-player'] = new voiceTag('Video element ', 'Element not spoken ');
5161
- voiceTags['.youtube-player'] = new voiceTag('Video element ', 'Element not spoken ');
5162
- voiceTags['.dailymotion-player'] = new voiceTag('Video element ', 'Element not spoken ');
5163
- voiceTags['.vimeo-player'] = new voiceTag('Video element ', 'Element not spoken ');
5164
- voiceTags['.wistia-player'] = new voiceTag('Video element ', 'Element not spoken ');
5165
- voiceTags['figure'] = new voiceTag('Figure element ', 'Element not spoken ');
5166
- voiceTags['parallax-quoteblock'] = new voiceTag(pause_spoken, '');
5167
- voiceTags['blockquote'] = new voiceTag(pause_spoken, '');
5168
- voiceTags['quoteblock'] = new voiceTag(pause_spoken, '');
5149
+ voiceTags['.doc-example'] = new voiceTag('Example element' + pause_spoken, 'Element not spoken' + pause_spoken);
5150
+ voiceTags['.admonitionblock'] = new voiceTag('Attention element' + pause_spoken, pause_spoken);
5151
+ voiceTags['.listingblock'] = new voiceTag('Text element' + pause_spoken, 'Element not spoken' + pause_spoken);
5152
+ voiceTags['.gist'] = new voiceTag('Gist element' + pause_spoken, 'Element not spoken' + pause_spoken);
5153
+ voiceTags['.slider'] = new voiceTag('Slider element' + pause_spoken, 'Element not spoken' + pause_spoken);
5154
+ voiceTags['.modal'] = new voiceTag('Info element' + pause_spoken, 'Element not spoken' + pause_spoken);
5155
+ voiceTags['.masonry'] = new voiceTag('Masonry element' + pause_spoken, 'Element not spoken' + pause_spoken);
5156
+ voiceTags['.lightbox-block'] = new voiceTag('Lightbox element' + pause_spoken, 'Element not spoken' + pause_spoken);
5157
+ voiceTags['.gallery'] = new voiceTag('Gallery element' + pause_spoken, 'Element not spoken' + pause_spoken);
5158
+ voiceTags['.audioblock'] = new voiceTag('Audio element' + pause_spoken, 'Element not spoken' + pause_spoken);
5159
+ voiceTags['.videoblock'] = new voiceTag('Video element' + pause_spoken, 'Element not spoken' + pause_spoken);
5160
+ voiceTags['.videojs-player'] = new voiceTag('Video element' + pause_spoken, 'Element not spoken' + pause_spoken);
5161
+ voiceTags['.youtube-player'] = new voiceTag('Video element' + pause_spoken, 'Element not spoken' + pause_spoken);
5162
+ voiceTags['.dailymotion-player'] = new voiceTag('Video element' + pause_spoken, 'Element not spoken' + pause_spoken);
5163
+ voiceTags['.vimeo-player'] = new voiceTag('Video element' + pause_spoken, 'Element not spoken' + pause_spoken);
5164
+ voiceTags['.wistia-player'] = new voiceTag('Video element' + pause_spoken, 'Element not spoken' + pause_spoken);
5165
+ voiceTags['figure'] = new voiceTag('Figure element' + pause_spoken, 'Element not spoken' + pause_spoken);
5166
+ voiceTags['parallax-quoteblock'] = new voiceTag('', pause_spoken);
5167
+ voiceTags['blockquote'] = new voiceTag('', pause_spoken);
5168
+ voiceTags['quoteblock'] = new voiceTag('', pause_spoken);
5169
5169
  ignoreTags = ['audio', 'button', 'canvas', 'code', 'del', 'pre', 'dialog', 'embed', 'form', 'head', 'iframe', 'meter', 'nav', 'noscript', 'object', 'picture', 'script', 'select', 'style', 'textarea', 'video'];
5170
5170
 
5171
5171
  // TODO: NOT working for multiple 'tab' windows
@@ -5338,6 +5338,7 @@ module.exports = function parseContent(options) {
5338
5338
  //
5339
5339
  innerText = node.innerText.replaceAll('?', '');
5340
5340
  innerText = node.innerText.replaceAll('!', '');
5341
+ innerText = node.innerText + pause_spoken;
5341
5342
  if (innerText == text) {
5342
5343
  var headline = $('#' + node.id);
5343
5344
  if (headline.length > 0) {
@@ -5577,13 +5578,16 @@ module.exports = function parseContent(options) {
5577
5578
  // because these tags require a pause, but often don't
5578
5579
  // have a comma or period at the end of their text.
5579
5580
  //
5580
- $(clone).find('h1,h2,h3,h4,h5,h6,li,p').addBack('h1,h2,h3,h4,h5,h6,li,p').each(function () {
5581
- $(this).append(pause_spoken);
5581
+ $(clone).find('h1,h2,h3,h4,h5,h6,p,li').addBack('h1,h2,h3,h4,h5,h6,p,li').each(function () {
5582
+ var text = $(this)[0].innerText;
5583
+ text.replace(/\s+/g, '\s');
5584
+ text = text + pause_spoken;
5585
+ $(this)[0].innerText = text;
5582
5586
  });
5583
5587
 
5584
5588
  // Search for <br> tags to add a pause at the end.
5585
5589
  $(clone).find('br').each(function () {
5586
- $(this).after(pause_spoken);
5590
+ $(this).append(pause_spoken);
5587
5591
  });
5588
5592
 
5589
5593
  // Search for <figure>, check for <figcaption>, insert
@@ -5659,7 +5663,7 @@ module.exports = function parseContent(options) {
5659
5663
  //
5660
5664
  $(clone).find('.parallax-quoteblock').addBack('.parallax-quoteblock').each(function () {
5661
5665
  content_element = $(this).find('.quote-text');
5662
- content = content_element[0].innerText + ' ';
5666
+ content = content_element[0].innerText + '' + pause_spoken;
5663
5667
  prepend = voiceTags['quoteblock'].prepend;
5664
5668
  appended = voiceTags['quoteblock'].append;
5665
5669
  if (content !== undefined && content != '') {
@@ -5674,7 +5678,7 @@ module.exports = function parseContent(options) {
5674
5678
  $(clone).find('.quoteblock').addBack('.quoteblock').each(function () {
5675
5679
  var attribution = $(this).find('.attribution');
5676
5680
  content_element = $(this).find('blockquote');
5677
- content = content_element[0].innerText + '' + attribution[0].innerText + ' — ';
5681
+ content = content_element[0].innerText + '' + attribution[0].innerText;
5678
5682
  prepend = voiceTags['quoteblock'].prepend;
5679
5683
  appended = voiceTags['quoteblock'].append;
5680
5684
  if (content !== undefined && content != '') {
@@ -5709,11 +5713,11 @@ module.exports = function parseContent(options) {
5709
5713
  prepend = voiceTags['.audioblock'].prepend;
5710
5714
  appended = voiceTags['.audioblock'].append;
5711
5715
  if (copy !== undefined && copy != '') {
5712
- $('<div>' + prepend + pause_spoken + 'with the title, ' + copy + pause_spoken + '</div>').insertBefore(this);
5713
- $('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
5716
+ $('<div>' + prepend + 'with the title, ' + copy + pause_spoken + '</div>').insertBefore(this);
5717
+ $('<div>' + appended + '</div>').insertBefore(this);
5714
5718
  } else {
5715
- $('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
5716
- $('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
5719
+ $('<div>' + prepend + '</div>').insertBefore(this);
5720
+ $('<div>' + appended + '</div>').insertBefore(this);
5717
5721
  }
5718
5722
  $(this).remove();
5719
5723
  });
@@ -5726,11 +5730,11 @@ module.exports = function parseContent(options) {
5726
5730
  prepend = voiceTags['.videoblock'].prepend;
5727
5731
  appended = voiceTags['.videoblock'].append;
5728
5732
  if (copy !== undefined && copy != '') {
5729
- $('<div>' + prepend + pause_spoken + 'with the title, ' + copy + pause_spoken + '</div>').insertBefore(this);
5730
- $('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
5733
+ $('<div>' + prepend + 'with the title, ' + copy + pause_spoken + '</div>').insertBefore(this);
5734
+ $('<div>' + appended + '</div>').insertBefore(this);
5731
5735
  } else {
5732
- $('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
5733
- $('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
5736
+ $('<div>' + prepend + '</div>').insertBefore(this);
5737
+ $('<div>' + appended + '</div>').insertBefore(this);
5734
5738
  }
5735
5739
  $(this).remove();
5736
5740
  });
@@ -5743,11 +5747,11 @@ module.exports = function parseContent(options) {
5743
5747
  prepend = voiceTags['.videojs-player'].prepend;
5744
5748
  appended = voiceTags['.videojs-player'].append;
5745
5749
  if (copy !== undefined && copy != '') {
5746
- $('<div>' + prepend + pause_spoken + 'with the title, ' + copy + pause_spoken + '</div>').insertBefore(this);
5747
- $('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
5750
+ $('<div>' + prepend + 'with the title, ' + copy + pause_spoken + '</div>').insertBefore(this);
5751
+ $('<div>' + appended + '</div>').insertBefore(this);
5748
5752
  } else {
5749
- $('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
5750
- $('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
5753
+ $('<div>' + prepend + '</div>').insertBefore(this);
5754
+ $('<div>' + appended + '</div>').insertBefore(this);
5751
5755
  }
5752
5756
  $(this).remove();
5753
5757
  });
@@ -5760,11 +5764,11 @@ module.exports = function parseContent(options) {
5760
5764
  prepend = voiceTags['.youtube-player'].prepend;
5761
5765
  appended = voiceTags['.youtube-player'].append;
5762
5766
  if (copy !== undefined && copy != '') {
5763
- $('<div>' + prepend + pause_spoken + 'with the title, ' + copy + pause_spoken + '</div>').insertBefore(this);
5764
- $('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
5767
+ $('<div>' + prepend + 'with the title, ' + copy + pause_spoken + '</div>').insertBefore(this);
5768
+ $('<div>' + appended + '</div>').insertBefore(this);
5765
5769
  } else {
5766
- $('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
5767
- $('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
5770
+ $('<div>' + prepend + '</div>').insertBefore(this);
5771
+ $('<div>' + appended + '</div>').insertBefore(this);
5768
5772
  }
5769
5773
  $(this).remove();
5770
5774
  });
@@ -5777,11 +5781,11 @@ module.exports = function parseContent(options) {
5777
5781
  prepend = voiceTags['.dailymotion-player'].prepend;
5778
5782
  appended = voiceTags['.dailymotion-player'].append;
5779
5783
  if (copy !== undefined && copy != '') {
5780
- $('<div>' + prepend + pause_spoken + 'with the title, ' + copy + pause_spoken + '</div>').insertBefore(this);
5781
- $('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
5784
+ $('<div>' + prepend + 'with the title, ' + copy + pause_spoken + '</div>').insertBefore(this);
5785
+ $('<div>' + appended + '</div>').insertBefore(this);
5782
5786
  } else {
5783
- $('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
5784
- $('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
5787
+ $('<div>' + prepend + '</div>').insertBefore(this);
5788
+ $('<div>' + appended + '</div>').insertBefore(this);
5785
5789
  }
5786
5790
  $(this).remove();
5787
5791
  });
@@ -5794,11 +5798,11 @@ module.exports = function parseContent(options) {
5794
5798
  prepend = voiceTags['.vimeo-player'].prepend;
5795
5799
  appended = voiceTags['.vimeo-player'].append;
5796
5800
  if (copy !== undefined && copy != '') {
5797
- $('<div>' + prepend + pause_spoken + 'with the title, ' + copy + pause_spoken + '</div>').insertBefore(this);
5798
- $('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
5801
+ $('<div>' + prepend + 'with the title, ' + copy + pause_spoken + '</div>').insertBefore(this);
5802
+ $('<div>' + appended + '</div>').insertBefore(this);
5799
5803
  } else {
5800
- $('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
5801
- $('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
5804
+ $('<div>' + prepend + '</div>').insertBefore(this);
5805
+ $('<div>' + appended + '</div>').insertBefore(this);
5802
5806
  }
5803
5807
  $(this).remove();
5804
5808
  });
@@ -5811,11 +5815,11 @@ module.exports = function parseContent(options) {
5811
5815
  prepend = voiceTags['.wistia-player'].prepend;
5812
5816
  appended = voiceTags['.wistia-player'].append;
5813
5817
  if (copy !== undefined && copy != '') {
5814
- $('<div>' + prepend + pause_spoken + 'with the title, ' + copy + pause_spoken + '</div>').insertBefore(this);
5815
- $('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
5818
+ $('<div>' + prepend + 'with the title, ' + copy + pause_spoken + '</div>').insertBefore(this);
5819
+ $('<div>' + appended + '</div>').insertBefore(this);
5816
5820
  } else {
5817
- $('<div>' + prepend + pause_spoken + '</div>').insertBefore(this);
5818
- $('<div>' + appended + pause_spoken + '</div>').insertBefore(this);
5821
+ $('<div>' + prepend + '</div>').insertBefore(this);
5822
+ $('<div>' + appended + '</div>').insertBefore(this);
5819
5823
  }
5820
5824
  $(this).remove();
5821
5825
  });
@@ -15,7 +15,7 @@ e.exports=function e(t){return{init:function(e){var t=e;var n=log4javascript.get
15
15
  See Github page at: https://github.com/acoti/articulate.js
16
16
  See Web site at: https://purefreedom.com/articulate/
17
17
  */
18
- (function(e){"use strict";const t=n(4552);const r=n(4544);const i=r(t);const a="smooth";const o=10;const s=10;const l=30;const c=3;const u=1e3;const d=1e4;const p=/Firefox/i.test(navigator.userAgent);const f=/Edg/i.test(navigator.userAgent);const h=/chrome/i.test(navigator.userAgent);const m=h&&!f;const g="Google UK English Female";const v="Google US English";const y="Microsoft";const b=document.getElementsByTagName("html")[0].getAttribute("lang");var w="";var C=navigator.language||navigator.userLanguage;var x=ne("googtrans");var E=100;var S={};var L={};var k=new Array;var T=new Array;var A=new Array;var I=new Array;var M=new Array;var N=[];var D=.9;var O=1;var _=.9;var P=D;var F=O;var B=_;var R=" — ";var j=0;var $=false;var W=false;var H=false;var U;var G;var q;var V;var z;var K;var X;var Y;var J={"de-DE":"Google Deutsch","en-GB":"Google UK English Female","es-ES":"Google español","fr-FR":"Google français","it-IT":"Google italiano"};var Q={"en-GB":"Microsoft Libby Online (Natural) - English (United Kingdom)","es-ES":"Microsoft Elvira Online (Natural) - Spanish (Spain)","fr-FR":"Microsoft Denise Online (Natural) - French (France)","de-DE":"Microsoft Katja Online (Natural) - German (Germany)","it-IT":"Microsoft Elsa Online (Natural) - Italian (Italy)"};var Z={"en-GB":"Microsoft Hazel - English (United Kingdom)","de-DE":"Microsoft Katja - German (Germany)"};if(b=="en"){w=b+"-"+"GB"}else{w=b+"-"+b.toUpperCase()}function ee(t){var n=t.startLine;var r;function i(t){r=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight);e("#content").attr("style","opacity: .3");if(n<r){setTimeout((function(){t++;n=n+d;window.scrollTo({top:n,behavior:"smooth"});i(t)}),u)}else{setTimeout((function(){Y=true;e("#content").attr("style","opacity: 1")}),u)}}i({startLine:0})}function te(){var e={};for(var t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e}function ne(e){var t=e+"=";var n=document.cookie.split(";");for(var r=0;r<n.length;r++){var i=n[r];while(i.charAt(0)===" "){i=i.substring(1,i.length)}if(i.indexOf(t)===0){var a=i.substring(t.length,i.length);return a}}return undefined}function re(e,t){this.prepend=e;this.append=t}function ie(e,t){this.name=e;this.language=t}function ae(e){var t=0;var n=e.split(" ");for(var r=0;r<n.length;r++){if(n[r]!=""){t+=1}}return t}function oe(){let e="systemVoices START - ";var t=speechSynthesis.getVoices();for(var n=0;n<t.length;n++){M.push(new ie(t[n].name,t[n].lang));if(t[n].lang.includes("en")||t[n].lang.includes("de-DE")||t[n].lang.includes("es-ES")||t[n].lang.includes("pl")||t[n].lang.includes("nl")){e+=t[n].lang.toString();e+=" : ";e+=t[n].name.toString();e+="\n"}}e+=" - systemVoices END."}oe();if(typeof speechSynthesis!=="undefined"&&speechSynthesis.onvoiceschanged!==undefined){speechSynthesis.onvoiceschanged=oe}if("speechSynthesis"in window){var se=new SpeechSynthesisUtterance;window.speechSynthesis.cancel()}if(x===undefined){V=w}else{var le=x.split("/");if(le[2]=="en"){V="en-GB"}else if(le[2].includes("ar")){V="ar-EG"}else if(le[2].includes("cs")){V="cs-CZ"}else if(le[2].includes("da")){V="da-DK"}else if(le[2].includes("en")){V="en-UK"}else if(le[2].includes("et")){V="et-EE"}else if(le[2].includes("ka")){V="ka-GE"}else if(le[2].includes("el")){V="el-GR"}else if(le[2].includes("iw")){V="he-IL"}else if(le[2].includes("hi")){V="hi-IN"}else if(le[2].includes("ja")){V="ja-JP"}else if(le[2].includes("zh")){V="zh-CN"}else{V=le[2]+"-"+le[2].toUpperCase()}}if(m){var z=J[V]}if(f){var z=Q[V]}if(p){var z=Z[V]}var ce={speak:function(n){var r="";var u=new Array;var d=this;var p,f,h;var m;Y=false;L=te(n,t,S||{});if(!L.isPaused){ee({startLine:0})}else{Y=true}u["a"]=new re("Link — ","");u["q"]=new re(R,"");u["ol"]=new re(R,"");u["ul"]=new re(R,"");u["dl"]=new re(R,"");u["dt"]=new re(R,"");u["img"]=new re("Image element — ","Element not spoken — ");u["table"]=new re("Table element — ","Element not spoken — ");u["card-header"]=new re(R,"");u[".doc-example"]=new re("Example element — ","Element not spoken — ");u[".admonitionblock"]=new re("Attention element — ","");u[".listingblock"]=new re("Text element — ","Element not spoken — ");u[".gist"]=new re("Gist element — ","Element not spoken — ");u[".slider"]=new re("Slider element — ","Element not spoken — ");u[".modal"]=new re("Info element — ","Element not spoken — ");u[".masonry"]=new re("Masonry element — ","Element not spoken — ");u[".lightbox-block"]=new re("Lightbox element — ","Element not spoken — ");u[".gallery"]=new re("Gallery element — ","Element not spoken — ");u[".audioblock"]=new re("Audio element — ","Element not spoken — ");u[".videoblock"]=new re("Video element — ","Element not spoken — ");u[".videojs-player"]=new re("Video element — ","Element not spoken — ");u[".youtube-player"]=new re("Video element — ","Element not spoken — ");u[".dailymotion-player"]=new re("Video element — ","Element not spoken — ");u[".vimeo-player"]=new re("Video element — ","Element not spoken — ");u[".wistia-player"]=new re("Video element — ","Element not spoken — ");u["figure"]=new re("Figure element — ","Element not spoken — ");u["parallax-quoteblock"]=new re(R,"");u["blockquote"]=new re(R,"");u["quoteblock"]=new re(R,"");m=["audio","button","canvas","code","del","pre","dialog","embed","form","head","iframe","meter","nav","noscript","object","picture","script","select","style","textarea","video"];if(window.speechSynthesis.speaking){return}var g=setInterval((function(){if(Y){d.each((function(){p=e(this).clone();f=w(p);f=e(f).html();h=C(f);r=h}));if(U!==undefined){P=U}else{P=D}if(G!==undefined){F=G}else{F=O}if(q!==undefined){B=q}else{B=_}se=new SpeechSynthesisUtterance;se.rate=P;se.pitch=F;se.volume=B;se.voice=speechSynthesis.getVoices().filter((function(e){return e.name==z}))[0];se.previousScrollPosition=0;b(se,r);clearInterval(g)}}),o);function v(n){var r=[];n=n.replace(/^\s+>/gm,"");n=n.replaceAll(" ..",".");n=n.replace(/(\r\n|\n|\r)/gm,"");n=n.replace(/\s+/gm," ");r=n.split(".");r.forEach(((e,t)=>{r[t]=r[t].replace(/^\s+/g,"");r[t]=r[t].replaceAll('""',"")}));r.forEach(((e,t)=>{if(r[t].length>0){r[t]=r[t]+". "}else{r.splice(t,1)}}));r.forEach(((e,t)=>{if(r[t].length==0){r.splice(t,1)}}));var a=[];r.forEach(((t,n)=>{var i=r[n];var o=y(i,l,c);var s=e("#content").find("p:contains('"+o+"')");var u;if(s.length>0){u=Math.round(s[0].offsetTop)}else{u=undefined;s=undefined}a.push({text:i,offsetTop:u,$paragraph:s})}));N=i.selectHeadings(t.contentSelector,t.headingSelector);a.forEach(((t,n)=>{var r;var i;if(t.offset===undefined){r=t.text.replaceAll(". ","");if(N!==null){for(var a of N){i=a.innerText.replaceAll("?","");i=a.innerText.replaceAll("!","");if(i==r){var o=e("#"+a.id);if(o.length>0){var s=o.offset().top;t.offsetTop=Math.round(s)}else{}}}}}}));return a}function y(e,t,n){var r=0;var i=r+t;var a=e.substr(r,i);var o=a.split(/(\s+)/);var s;o.pop();o.pop();a=o.join("");a=a.replaceAll(".","");s=ae(a);if(s<n){console.warn("no search possible on this fraction of subText");return undefined}else{return a}}function b(t,n){const r=window.speechSynthesis;e(".mdib-speaker").addClass("mdib-spin");t.addEventListener("start",(e=>{if(t.offsetTop!==undefined){if(t.offsetTop>=t.previousScrollPosition){window.scrollTo({top:t.offsetTop-E,behavior:a})}}if(t.$paragraph!==undefined){t.$paragraph.addClass("speak-highlighted")}}));t.addEventListener("end",(function(e){if(t.offsetTop!==undefined){if(t.offsetTop>=t.previousScrollPosition){t.previousScrollPosition=t.offsetTop}H=t.offsetTop-E}if(t.$paragraph!==undefined){t.$paragraph.removeClass("speak-highlighted")}W=false;j++}));var i=false;var o=setInterval((function(){if(j==K||$){j=0;$=false;W=false;t.$paragraph!==undefined&&t.$paragraph.removeClass("speak-highlighted");e(".mdib-speaker").removeClass("mdib-spin");clearInterval(o)}else{if(!i&&L.isPaused){j=L.lastChunk;i=true}t.text=n[j].text;t.offsetTop=n[j].offsetTop;t.$paragraph=n[j].$paragraph;if(!W){r.speak(t);W=true}}}),s)}function w(t){var n,r,i,a,o,s,l,c;if(T.length>0){for(var d in T){var p=m.indexOf(T[d]);if(p>-1){m.splice(p,1)}}}for(var d in m){e(t).find(m[d]).addBack(m[d]).not("[data-speak2me-recognize]").each((function(){e(this).html("")}))}if(k.length>0){for(var d in k){e(t).find(k[d]).addBack(k[d]).not("[data-speak2me-recognize]").each((function(){e(this).html("")}))}}e(t).find("[data-speak2me-ignore]").addBack("[data-speak2me-ignore]").each((function(){e(this).html("")}));e(t).find(".speak2me-ignore").addBack("[data-speak2me-ignore]").each((function(){e(this).html("")}));e(t).find("[data-speak2me-prepend]").addBack("[data-speak2me-prepend]").each((function(){n=e(this).data("speak2me-prepend");e(this).prepend(n+" ")}));e(t).find("[data-speak2me-append]").addBack("[data-speak2me-append]").each((function(){n=e(this).data("speak2me-append");e(this).append(" "+n)}));var f=0;for(var h in u){e(t).find(h).each((function(){if(I[h]){e(this).prepend(I[h].prepend+R);e(this).append(I[h].append+R)}else{e(this).prepend(u[h].prepend+R);e(this).append(u[h].append+R)}}))}e(t).find("h1,h2,h3,h4,h5,h6,li,p").addBack("h1,h2,h3,h4,h5,h6,li,p").each((function(){e(this).append(R)}));e(t).find("br").each((function(){e(this).after(R)}));e(t).find("figure").addBack("figure").each((function(){n=e(this).find("figcaption").html();if(I["figure"]){c=I["figure"].prepend}else{c=u["figure"].prepend}if(n!=undefined&&n!==""){e("<div>"+c+R+n+"</div>").insertBefore(this)}e(this).remove()}));e(t).find("img").addBack("img").each((function(){n=e(this).attr("alt");var t=e(this).parent();var r=t.get(0).tagName;if(I["img"]){c=I["img"].prepend}else{c=u["img"].prepend}if(n!==undefined&&n!=""){if(r=="PICTURE"){var i;e("<div>"+c+R+n+R+"</div>").insertBefore(t)}else{e("<div>"+c+R+n+R+"</div>").insertBefore(this)}}e(this).remove()}));e(t).find("a").addBack("a").each((function(){var t=e(this);n=t[0].innerText;c=u["a"].prepend;l=u["a"].append;e("<div>"+n+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this);e(this).remove()}));e(t).find(".admonitionblock").addBack(".admonitionblock").each((function(){a=this.classList[1];o=e(this).find(".content");s=o[0].innerText;c=u[".admonitionblock"].prepend+a+". ";l=u[".admonitionblock"].append;if(s!==undefined&&s!=""){e("<div>"+c+" "+s+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".parallax-quoteblock").addBack(".parallax-quoteblock").each((function(){o=e(this).find(".quote-text");s=o[0].innerText+" — ";c=u["quoteblock"].prepend;l=u["quoteblock"].append;if(s!==undefined&&s!=""){e("<div>"+c+R+s+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".quoteblock").addBack(".quoteblock").each((function(){var t=e(this).find(".attribution");o=e(this).find("blockquote");s=o[0].innerText+" — "+t[0].innerText+" — ";c=u["quoteblock"].prepend;l=u["quoteblock"].append;if(s!==undefined&&s!=""){e("<div>"+c+R+s+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find("table").addBack("table").each((function(){n=e(this).find("caption").text();c=u["table"].prepend;l=u["table"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+n+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".audioblock").addBack(".audioblock").each((function(){n=e(this).find(".title").text();c=u[".audioblock"].prepend;l=u[".audioblock"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".videoblock").addBack(".videoblock").each((function(){n=e(this).find(".title").text();c=u[".videoblock"].prepend;l=u[".videoblock"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".videojs-player").addBack(".videojs-player").each((function(){n=e(this).find(".video-title").text();c=u[".videojs-player"].prepend;l=u[".videojs-player"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".youtube-player").addBack(".youtube-player").each((function(){n=e(this).find(".video-title").text();c=u[".youtube-player"].prepend;l=u[".youtube-player"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".dailymotion-player").addBack(".dailymotion-player").each((function(){n=e(this).find(".video-title").text();c=u[".dailymotion-player"].prepend;l=u[".dailymotion-player"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".vimeo-player").addBack(".vimeo-player").each((function(){n=e(this).find(".video-title").text();c=u[".vimeo-player"].prepend;l=u[".vimeo-player"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".wistia-player").addBack(".wistia-player").each((function(){n=e(this).find(".video-title").text();c=u[".wistia-player"].prepend;l=u[".wistia-player"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".card-header").addBack("card-header").each((function(){i=e(this).find(".card-title");c=u["card-header"].prepend;l=u["card-header"].append;if(i.length){r=i[0].innerText+R}else{r=""}e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+r+"</div>").insertBefore(this);e(i).remove()}));e(t).find(".doc-example").addBack(".doc-example").each((function(){c=u[".doc-example"].prepend;l=u[".doc-example"].append;e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this);e(this).remove()}));e(t).find(".listingblock").addBack(".listingblock").each((function(){i=e(this).find(".title");if(i.length){n=i[0].innerText}else{n=""}c=u[".listingblock"].prepend;l=u[".listingblock"].append;if(n!==undefined&&n!=""){e("<div>"+c+" with the title,"+n+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".gist").addBack(".gist").each((function(){if(e(this).prev()[0]!==undefined){r=e(this).prev()[0].innerText;i=e(this).prev();e(i).remove()}else{r=""}c=u[".gist"].prepend;l=u[".gist"].append;if(r!==undefined&&r!=""){e("<div>"+c+" with the title, "+r+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".modal").addBack(".modal").each((function(){e(this).remove()}));e(t).find(".masonry").addBack(".masonry").each((function(){if(e(this).prev()[0]!==undefined){r=e(this).prev()[0].innerText;i=e(this).prev();e(i).remove()}else{r=""}c=u[".masonry"].prepend;l=u[".masonry"].append;if(r!==undefined&&r!=""){e("<div>"+c+" with the title,"+r+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".slider").addBack(".slider").each((function(){if(e(this).prev()[0]!==undefined){r=e(this).prev()[0].innerText;i=e(this).prev();e(i).remove()}else{r=""}c=u[".slider"].prepend;l=u[".slider"].append;if(r!==undefined&&r!=""){e("<div>"+c+" with the title, "+r+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".gallery").addBack(".gallery").each((function(){if(e(this).prev()[0]!==undefined){r=e(this).prev()[0].innerText;i=e(this).prev();e(i).remove()}else{r=""}c=u[".gallery"].prepend;l=u[".gallery"].append;if(r!==undefined&&r!=""){c!==""&&e("<div>"+c+" with the title "+r+R+"</div>").insertBefore(this);l!==""&&e("<div>"+l+"</div>").insertBefore(this)}else{c!==""&&e("<div>"+c+R+"</div>").insertBefore(this);l!==""&&e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".lightbox-block").addBack(".lightbox-block").each((function(){if(e(this).prev()[0]!==undefined){r=e(this).prev()[0].innerText;i=e(this).prev();e(i).remove()}else{r=""}c=u[".lightbox-block"].prepend;l=u[".lightbox-block"].append;if(r!==undefined&&r!=""){e("<div>"+c+" with the title,"+r+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find("[data-speak2me-swap]").addBack("[data-speak2me-swap]").each((function(){n=e(this).data("speak2me-swap");e(this).text(n)}));e(t).find("[data-speak2me-spell]").addBack("[data-speak2me-spell]").each((function(){n=e(this).text();n=n.split("").join(" ");e(this).text(n)}));return t}function C(e){var t,n,r,i,a,e;while(e.indexOf("\x3c!-- <speak2me>")!=-1){t=e.indexOf("\x3c!-- <speak2me>");n=e.indexOf("</speak2me> --\x3e",t);if(n==-1){break}r=e.substring(t+17,n);i=e.substring(0,t);a=e.substring(n+17);e=i+" "+r+" "+a}e=e.replace(/<!--[\s\S]*?-->/g,"");e=e.replace(/(<([^>]+)>)/gi,"");var o=A.length;var s=0;var l,c;while(s<o){l=A[s];l=l.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");c=A[s+1]+" ";var u=new RegExp(l,"gi");var e=e.replace(u,c);s=s+2}e=e.replaceAll('"',"");e=e.replaceAll("“","");e=e.replaceAll("”","");e=e.replaceAll(":",".");e=e.replaceAll("., ",". ");e=e.replaceAll(" , ",", ");e=e.replaceAll(". .","");e=e.replaceAll(", .","");e=e.replaceAll(" , ","");e=e.replace(/^$/g,"\n");e=e.replace(/^\s+$/g,"\n");e=e.replace(/\s+\.\s+/g,"\n");e=e.replace(/\s+\.\s+$/g,"\n");e=e.replace(/\.\./g,".");e=e.replaceAll("e.g.","for example");e=e.replaceAll("E.g.","For example, ");e=e.replaceAll("etc.","and so on, ");e=e.replaceAll("z. B.","zum Beispiel, ");e=e.replace(/[\!\?]/g,". ");e=e.replaceAll("—",R);e=e.replaceAll("–",R);e=e.replaceAll("--",R);var d=document.createElement("textarea");d.innerHTML=e;e=d.value;e=e.replace(/^\s*(\b\w+\b)\s*$/gm,"$1. ");e=e.replace(/^\s*(\b\w+\b\s*[0-9]{4})$/gm,"$1. ");e=e.replace(/\s+/g," ");const p=v(e);K=p.length;return p}return se},pause:function(){window.speechSynthesis.pause();return this},resume:function(){window.speechSynthesis.resume();return this},stop:function(){window.speechSynthesis.cancel();$=true},enabled:function(){return"speechSynthesis"in window},isSpeaking:function(){return window.speechSynthesis.speaking},isSpoken:function(){if(window.speechSynthesis.speaking){return j}else{return false}},isScrolled:function(){if(window.speechSynthesis.speaking){return H}else{return false}},isPaused:function(){return window.speechSynthesis.paused},rate:function(){var e=arguments[0];if(e>=.1&&e<=10){U=e}else if(e===undefined){U=void 0;P=D}return this},pitch:function(){var e=arguments[0];if(e>=.1&&e<=2){G=e}else if(e===undefined){G=void 0;F=O}return this},volume:function(){var e=arguments[0];if(e>=0&&e<=1){q=e}else if(e===undefined){q=void 0;B=_}return this},ignore:function(){var e=arguments.length;k.length=0;while(e>0){e--;k.push(arguments[e])}return this},recognize:function(){var e=arguments.length;T.length=0;while(e>0){e--;T.push(arguments[e])}return this},replace:function(){var e=arguments.length;A.length=0;var t=0;while(t<e){A.push(arguments[t],arguments[t+1]);t=t+2;if(e-t==1){break}}return this},customize:function(){var e=arguments.length;if(e==0){I=[]}if(e==2){if(["img","table","figure"].indexOf(arguments[0])==-1){console.warn("When customizing, tag indicated must be either 'img', 'table', or 'figure'.");return}I[arguments[0].toString()]=new re(arguments[1].toString())}if(e==3){if(["q","ol","ul","blockquote"].indexOf(arguments[0])==-1){console.warn("When customizing, tag indicated must be either 'q', 'ol', 'ul' or 'blockquote'.");return}I[arguments[0].toString()]=new re(arguments[1].toString(),arguments[2].toString())}return this},getVoices:function(){if(arguments.length==0){return M}var t=e(arguments[0]);var n="Choose a voice";if(arguments[1]!==undefined){n=arguments[1]}t.append(e("<select id='voiceSelect' name='voiceSelect'><option value='none'>"+n+"</option></select>"));var r=0;for(var i=0;i<M.length;i++){if(m&&M[i].name.includes(y)){r++;continue}if(f&&!M[i].name.includes("Natural")){r++;continue}var a=document.createElement("option");a.textContent=M[i].name+" ("+M[i].language+")";a.setAttribute("value",M[i].name);if(z!==undefined){if(M[i].name===z){a.setAttribute("selected","selected")}}else{if(M[i].name.includes(g)){}}a.setAttribute("data-speak2me-language",M[i].language);t.find("select").append(a)}return i-r},setVoice:function(){if(arguments.length<2){return this}var e,t;if(arguments[0]=="name"){e=arguments[1];for(var n=0;n<M.length;n++){if(M[n].name==e){g=e}}}if(arguments[0]=="language"){t=arguments[1].toUpperCase();if(t.length==2){for(var n=0;n<M.length;n++){if(M[n].language.substring(0,2).toUpperCase()==t){g=M[n].name;break}}}else{for(var n=0;n<M.length;n++){if(M[n].language==t){g=M[n].name;break}}}}return this}};e.fn.speak2me=function(t){if(ce[t]){return ce[t].apply(this,Array.prototype.slice.call(arguments,1))}else if(typeof t==="object"||!t){return ce.speak.apply(this,arguments)}else{e.error("Method "+t+" does not exist on $.speak2me")}}})($)},1068:e=>{e.exports=function(e){var t=[].forEach;var n=[].some;var r=document.body;var i=true;var a=" ";function o(e,t){var n=t.appendChild(l(e));if(e.children.length){var r=c(e.isCollapsed);e.children.forEach((function(e){o(e,r)}));n.appendChild(r)}}function s(e,t){var n=false;var r=c(n);t.forEach((function(e){o(e,r)}));var i=document.querySelector(e);if(i===null){return}if(i.firstChild){i.removeChild(i.firstChild)}if(t.length===0){return i}return i.appendChild(r)}function l(n){var r=document.createElement("li");var i=document.createElement("a");if(e.listItemClass){r.setAttribute("class",e.listItemClass)}if(e.onClick){i.onclick=e.onClick}if(e.includeHtml&&n.childNodes.length){t.call(n.childNodes,(function(e){i.appendChild(e.cloneNode(true))}))}else{i.textContent=n.textContent}i.setAttribute("href",e.basePath+"#"+n.id);i.setAttribute("class",e.linkClass+a+"node-name--"+n.nodeName+a+e.extraLinkClasses);r.appendChild(i);return r}function c(t){var n=e.orderedList?"ol":"ul";var r=document.createElement(n);var i=e.listClass+a+e.extraListClasses;if(t){i+=a+e.collapsibleClass;i+=a+e.isCollapsedClass}r.setAttribute("class",i);return r}function u(){if(e.scrollContainer&&document.querySelector(e.scrollContainer)){var t;t=document.querySelector(e.scrollContainer).scrollTop}else{t=document.documentElement.scrollTop||r.scrollTop}var n=document.querySelector(e.positionFixedSelector);if(e.fixedSidebarOffset==="auto"){e.fixedSidebarOffset=document.querySelector(e.tocSelector).offsetTop}if(t>e.fixedSidebarOffset){if(n.className.indexOf(e.positionFixedClass)===-1){n.className+=a+e.positionFixedClass}}else{n.className=n.className.split(a+e.positionFixedClass).join("")}}function d(t){var n=0;if(t!==document.querySelector(e.contentSelector&&t!=null)){n=t.offsetTop;if(e.hasInnerContainers){n+=d(t.offsetParent)}}return n}function p(o){if(e.scrollContainer&&document.querySelector(e.scrollContainer)){var s;s=document.querySelector(e.scrollContainer).scrollTop}else{s=document.documentElement.scrollTop||r.scrollTop}if(e.positionFixedSelector){u()}var l=o;var c;var p;if(i&&document.querySelector(e.tocSelector)!==null&&l.length>0){n.call(l,(function(t,n){p=d(t);if(p>s+e.headingsOffset+10){c=l[n];return true}else if(n===l.length-1){c=l[l.length-1];return true}}));var h=document.querySelector(e.tocSelector).querySelectorAll("."+e.linkClass);t.call(h,(function(t){t.className=t.className.split(a+e.activeLinkClass).join("")}));var m=document.querySelector(e.tocSelector).querySelectorAll("."+e.listItemClass);t.call(m,(function(t){t.className=t.className.split(a+e.activeListItemClass).join("")}));var g=document.querySelector(e.tocSelector).querySelector("."+e.linkClass+".node-name--"+c.nodeName+'[href="'+e.basePath+"#"+c.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/@])/g,"\\$1")+'"]');if(g.className.indexOf(e.activeLinkClass)===-1){g.className+=a+e.activeLinkClass}var v=g.parentNode;if(v&&v.className.indexOf(e.activeListItemClass)===-1){v.className+=a+e.activeListItemClass}var y=document.querySelector(e.tocSelector).querySelectorAll("."+e.listClass+"."+e.collapsibleClass);t.call(y,(function(t){if(t.className.indexOf(e.isCollapsedClass)===-1){t.className+=a+e.isCollapsedClass}}));if(g.nextSibling&&g.nextSibling.className.indexOf(e.isCollapsedClass)!==-1){g.nextSibling.className=g.nextSibling.className.split(a+e.isCollapsedClass).join("")}f(g.parentNode.parentNode)}}function f(t){if(t.className.indexOf(e.collapsibleClass)!==-1&&t.className.indexOf(e.isCollapsedClass)!==-1){t.className=t.className.split(a+e.isCollapsedClass).join("");return f(t.parentNode.parentNode)}return t}function h(t){var n=t.target||t.srcElement;if(typeof n.className!=="string"||n.className.indexOf(e.linkClass)===-1){return}i=false}function m(){i=true}return{enableTocAnimation:m,disableTocAnimation:h,render:s,updateToc:p}}},4012:e=>{e.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:false,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:true,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:false,onClick:function(e){},orderedList:true,scrollContainer:null,skipRendering:false,headingLabelCallback:false,ignoreHiddenElements:false,headingObjectCallback:null,basePath:"",disableTocScrollSync:false}},1976:e=>{e.exports=function e(t){var n=[].reduce;function r(e){return e[e.length-1]}function i(e){return+e.nodeName.split("H").join("")}function a(e){if(!(e instanceof window.HTMLElement))return e;if(t.ignoreHiddenElements&&(!e.offsetHeight||!e.offsetParent)){return null}var n={id:e.id,children:[],nodeName:e.nodeName,headingLevel:i(e),textContent:t.headingLabelCallback?String(t.headingLabelCallback(e.textContent)):e.textContent.trim()};if(t.includeHtml){n.childNodes=e.childNodes}if(t.headingObjectCallback){return t.headingObjectCallback(n,e)}return n}function o(e,n){var i=a(e);var o=i.headingLevel;var s=n;var l=r(s);var c=l?l.headingLevel:0;var u=o-c;while(u>0){l=r(s);if(l&&l.children!==undefined){s=l.children}u--}if(o>=t.collapseDepth){i.isCollapsed=true}s.push(i);return s}function s(e,n){var r=n;if(t.ignoreSelector){r=n.split(",").map((function e(n){return n.trim()+":not("+t.ignoreSelector+")"}))}try{return document.querySelector(e).querySelectorAll(r)}catch(t){console.warn("Element not found: "+e);return null}}function l(e){return n.call(e,(function e(t,n){var r=a(n);if(r){o(r,t.nest)}return t}),{nest:[]})}return{nestHeadingsArray:l,selectHeadings:s}}},3696:(e,t)=>{t.initSmoothScrolling=n;function n(e){if(l()){}var t=e.duration;var n=e.offset;var i=location.hash?s(location.href):location.href;a();function a(){document.body.addEventListener("click",i,false);function i(i){if(!o(i.target)||i.target.className.indexOf("no-smooth-scroll")>-1||i.target.href.charAt(i.target.href.length-2)==="#"&&i.target.href.charAt(i.target.href.length-1)==="!"||i.target.className.indexOf(e.linkClass)===-1){return}r(i.target.hash,{duration:t,offset:n,callback:false})}}function o(e){return e.tagName.toLowerCase()==="a"&&(e.hash.length>0||e.href.charAt(e.href.length-1)==="#")&&(s(e.href)===i||s(e.href)+"#"===i)}function s(e){return e.slice(0,e.lastIndexOf("#"))}function l(){return"scrollBehavior"in document.documentElement.style}function c(e){var t=document.getElementById(e.substring(1));if(t){if(!/^(?:a|select|input|button|textarea)$/i.test(t.tagName)){t.tabIndex=-1}t.focus()}}}function r(e,t){var n=window.pageYOffset;var r={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||d};var i=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]');var a=typeof e==="string"?r.offset+(e?i&&i.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e;var o=typeof r.duration==="function"?r.duration(a):r.duration;var s;var l;requestAnimationFrame((function(e){s=e;c(e)}));function c(e){l=e-s;window.scrollTo(0,r.easing(l,n,a,o));if(l<o){requestAnimationFrame(c)}else{u()}}function u(){if(typeof r.callback==="function"){r.callback()}}function d(e,t,n,r){e/=r/2;if(e<1)return n/2*e*e+t;e--;return-n/2*(e*(e-2)-1)+t}}},8756:function(e,t,n){var r,i,a;(function(n,o){if(true){!(i=[],r=o(n),a=typeof r==="function"?r.apply(t,i):r,a!==undefined&&(e.exports=a))}else{}})(typeof n.g!=="undefined"?n.g:this.window||this.global,(function(e){"use strict";var t=n(4012);var r={};var i={};var a=n(1068);var o=n(1976);var s=n(600);var l;var c;var u=!!e&&!!e.document&&!!e.document.querySelector&&!!e.addEventListener;if(typeof window==="undefined"&&!u){return}var d;var p=Object.prototype.hasOwnProperty;function f(){var e={};for(var t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(p.call(n,r)){e[r]=n[r]}}}return e}function h(e,t,n){t||(t=250);var r;var i;return function(){var a=n||this;var o=+new Date;var s=arguments;if(r&&o<r+t){clearTimeout(i);i=setTimeout((function(){r=o;e.apply(a,s)}),t)}else{r=o;e.apply(a,s)}}}i.destroy=function(){if(!r.skipRendering){try{document.querySelector(r.tocSelector).innerHTML=""}catch(e){console.warn("Element not found: "+r.tocSelector)}}if(r.scrollContainer&&document.querySelector(r.scrollContainer)){document.querySelector(r.scrollContainer).removeEventListener("scroll",this._scrollListener,false);document.querySelector(r.scrollContainer).removeEventListener("resize",this._scrollListener,false);if(l){document.querySelector(r.scrollContainer).removeEventListener("click",this._clickListener,false)}}else{document.removeEventListener("scroll",this._scrollListener,false);document.removeEventListener("resize",this._scrollListener,false);if(l){document.removeEventListener("click",this._clickListener,false)}}};i.init=function(e){if(!u){return}r=f(t,e||{});this.options=r;this.state={};if(r.scrollSmooth){r.duration=r.scrollSmoothDuration;r.offset=r.scrollSmoothOffset;i.scrollSmooth=n(3696).initSmoothScrolling(r)}l=a(r);c=o(r);this._buildHtml=l;this._parseContent=c;i.destroy();d=c.selectHeadings(r.contentSelector,r.headingSelector);if(d===null){return}var p=c.nestHeadingsArray(d);var m=p.nest;if(!r.skipRendering){l.render(r.tocSelector,m)}this._scrollListener=h((function(e){l.updateToc(d);!r.disableTocScrollSync&&s(r);var t=e&&e.target&&e.target.scrollingElement&&e.target.scrollingElement.scrollTop===0;if(e&&(e.eventPhase===0||e.currentTarget===null)||t){l.updateToc(d);if(r.scrollEndCallback){r.scrollEndCallback(e)}}}),r.throttleTimeout);this._scrollListener();if(r.scrollContainer&&document.querySelector(r.scrollContainer)){document.querySelector(r.scrollContainer).addEventListener("scroll",this._scrollListener,false);document.querySelector(r.scrollContainer).addEventListener("resize",this._scrollListener,false)}else{document.addEventListener("scroll",this._scrollListener,false);document.addEventListener("resize",this._scrollListener,false)}var g=null;this._clickListener=h((function(e){if(r.scrollSmooth){l.disableTocAnimation(e)}l.updateToc(d);g&&clearTimeout(g);g=setTimeout((function(){l.enableTocAnimation()}),r.scrollSmoothDuration)}),r.throttleTimeout);if(r.scrollContainer&&document.querySelector(r.scrollContainer)){document.querySelector(r.scrollContainer).addEventListener("click",this._clickListener,false)}else{document.addEventListener("click",this._clickListener,false)}return this};i.refresh=function(e){i.destroy();i.init(e||this.options)};e.tocbot=i;return i}))},600:e=>{e.exports=function e(t){var n=document.querySelector(t.tocSelector);if(n&&n.scrollHeight>n.clientHeight){var r=n.querySelector("."+t.activeListItemClass);if(r){n.scrollTop=r.offsetTop}}}},1192:(e,t,n)=>{var r,i;
18
+ (function(e){"use strict";const t=n(4552);const r=n(4544);const i=r(t);const a="smooth";const o=10;const s=10;const l=30;const c=3;const u=1e3;const d=1e4;const p=/Firefox/i.test(navigator.userAgent);const f=/Edg/i.test(navigator.userAgent);const h=/chrome/i.test(navigator.userAgent);const m=h&&!f;const g="Google UK English Female";const v="Google US English";const y="Microsoft";const b=document.getElementsByTagName("html")[0].getAttribute("lang");var w="";var C=navigator.language||navigator.userLanguage;var x=ne("googtrans");var E=100;var S={};var L={};var k=new Array;var T=new Array;var A=new Array;var I=new Array;var M=new Array;var N=[];var D=.9;var O=1;var _=.9;var P=D;var F=O;var B=_;var R=" — ";var j=0;var $=false;var W=false;var H=false;var U;var G;var q;var V;var z;var K;var X;var Y;var J={"de-DE":"Google Deutsch","en-GB":"Google UK English Female","es-ES":"Google español","fr-FR":"Google français","it-IT":"Google italiano"};var Q={"en-GB":"Microsoft Libby Online (Natural) - English (United Kingdom)","es-ES":"Microsoft Elvira Online (Natural) - Spanish (Spain)","fr-FR":"Microsoft Denise Online (Natural) - French (France)","de-DE":"Microsoft Katja Online (Natural) - German (Germany)","it-IT":"Microsoft Elsa Online (Natural) - Italian (Italy)"};var Z={"en-GB":"Microsoft Hazel - English (United Kingdom)","de-DE":"Microsoft Katja - German (Germany)"};if(b=="en"){w=b+"-"+"GB"}else{w=b+"-"+b.toUpperCase()}function ee(t){var n=t.startLine;var r;function i(t){r=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight);e("#content").attr("style","opacity: .3");if(n<r){setTimeout((function(){t++;n=n+d;window.scrollTo({top:n,behavior:"smooth"});i(t)}),u)}else{setTimeout((function(){Y=true;e("#content").attr("style","opacity: 1")}),u)}}i({startLine:0})}function te(){var e={};for(var t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e}function ne(e){var t=e+"=";var n=document.cookie.split(";");for(var r=0;r<n.length;r++){var i=n[r];while(i.charAt(0)===" "){i=i.substring(1,i.length)}if(i.indexOf(t)===0){var a=i.substring(t.length,i.length);return a}}return undefined}function re(e,t){this.prepend=e;this.append=t}function ie(e,t){this.name=e;this.language=t}function ae(e){var t=0;var n=e.split(" ");for(var r=0;r<n.length;r++){if(n[r]!=""){t+=1}}return t}function oe(){let e="systemVoices START - ";var t=speechSynthesis.getVoices();for(var n=0;n<t.length;n++){M.push(new ie(t[n].name,t[n].lang));if(t[n].lang.includes("en")||t[n].lang.includes("de-DE")||t[n].lang.includes("es-ES")||t[n].lang.includes("pl")||t[n].lang.includes("nl")){e+=t[n].lang.toString();e+=" : ";e+=t[n].name.toString();e+="\n"}}e+=" - systemVoices END."}oe();if(typeof speechSynthesis!=="undefined"&&speechSynthesis.onvoiceschanged!==undefined){speechSynthesis.onvoiceschanged=oe}if("speechSynthesis"in window){var se=new SpeechSynthesisUtterance;window.speechSynthesis.cancel()}if(x===undefined){V=w}else{var le=x.split("/");if(le[2]=="en"){V="en-GB"}else if(le[2].includes("ar")){V="ar-EG"}else if(le[2].includes("cs")){V="cs-CZ"}else if(le[2].includes("da")){V="da-DK"}else if(le[2].includes("en")){V="en-UK"}else if(le[2].includes("et")){V="et-EE"}else if(le[2].includes("ka")){V="ka-GE"}else if(le[2].includes("el")){V="el-GR"}else if(le[2].includes("iw")){V="he-IL"}else if(le[2].includes("hi")){V="hi-IN"}else if(le[2].includes("ja")){V="ja-JP"}else if(le[2].includes("zh")){V="zh-CN"}else{V=le[2]+"-"+le[2].toUpperCase()}}if(m){var z=J[V]}if(f){var z=Q[V]}if(p){var z=Z[V]}var ce={speak:function(n){var r="";var u=new Array;var d=this;var p,f,h;var m;Y=false;L=te(n,t,S||{});if(!L.isPaused){ee({startLine:0})}else{Y=true}u["a"]=new re("Link"+R,"");u["q"]=new re(R,"");u["ol"]=new re(R,"");u["ul"]=new re(R,"");u["dl"]=new re(R,"");u["dt"]=new re(R,"");u["img"]=new re("Image element"+R,"Element not spoken"+R);u["table"]=new re("Table element"+R,"Element not spoken"+R);u["card-header"]=new re(R,"");u[".doc-example"]=new re("Example element"+R,"Element not spoken"+R);u[".admonitionblock"]=new re("Attention element"+R,R);u[".listingblock"]=new re("Text element"+R,"Element not spoken"+R);u[".gist"]=new re("Gist element"+R,"Element not spoken"+R);u[".slider"]=new re("Slider element"+R,"Element not spoken"+R);u[".modal"]=new re("Info element"+R,"Element not spoken"+R);u[".masonry"]=new re("Masonry element"+R,"Element not spoken"+R);u[".lightbox-block"]=new re("Lightbox element"+R,"Element not spoken"+R);u[".gallery"]=new re("Gallery element"+R,"Element not spoken"+R);u[".audioblock"]=new re("Audio element"+R,"Element not spoken"+R);u[".videoblock"]=new re("Video element"+R,"Element not spoken"+R);u[".videojs-player"]=new re("Video element"+R,"Element not spoken"+R);u[".youtube-player"]=new re("Video element"+R,"Element not spoken"+R);u[".dailymotion-player"]=new re("Video element"+R,"Element not spoken"+R);u[".vimeo-player"]=new re("Video element"+R,"Element not spoken"+R);u[".wistia-player"]=new re("Video element"+R,"Element not spoken"+R);u["figure"]=new re("Figure element"+R,"Element not spoken"+R);u["parallax-quoteblock"]=new re("",R);u["blockquote"]=new re("",R);u["quoteblock"]=new re("",R);m=["audio","button","canvas","code","del","pre","dialog","embed","form","head","iframe","meter","nav","noscript","object","picture","script","select","style","textarea","video"];if(window.speechSynthesis.speaking){return}var g=setInterval((function(){if(Y){d.each((function(){p=e(this).clone();f=w(p);f=e(f).html();h=C(f);r=h}));if(U!==undefined){P=U}else{P=D}if(G!==undefined){F=G}else{F=O}if(q!==undefined){B=q}else{B=_}se=new SpeechSynthesisUtterance;se.rate=P;se.pitch=F;se.volume=B;se.voice=speechSynthesis.getVoices().filter((function(e){return e.name==z}))[0];se.previousScrollPosition=0;b(se,r);clearInterval(g)}}),o);function v(n){var r=[];n=n.replace(/^\s+>/gm,"");n=n.replaceAll(" ..",".");n=n.replace(/(\r\n|\n|\r)/gm,"");n=n.replace(/\s+/gm," ");r=n.split(".");r.forEach(((e,t)=>{r[t]=r[t].replace(/^\s+/g,"");r[t]=r[t].replaceAll('""',"")}));r.forEach(((e,t)=>{if(r[t].length>0){r[t]=r[t]+". "}else{r.splice(t,1)}}));r.forEach(((e,t)=>{if(r[t].length==0){r.splice(t,1)}}));var a=[];r.forEach(((t,n)=>{var i=r[n];var o=y(i,l,c);var s=e("#content").find("p:contains('"+o+"')");var u;if(s.length>0){u=Math.round(s[0].offsetTop)}else{u=undefined;s=undefined}a.push({text:i,offsetTop:u,$paragraph:s})}));N=i.selectHeadings(t.contentSelector,t.headingSelector);a.forEach(((t,n)=>{var r;var i;if(t.offset===undefined){r=t.text.replaceAll(". ","");if(N!==null){for(var a of N){i=a.innerText.replaceAll("?","");i=a.innerText.replaceAll("!","");i=a.innerText+R;if(i==r){var o=e("#"+a.id);if(o.length>0){var s=o.offset().top;t.offsetTop=Math.round(s)}else{}}}}}}));return a}function y(e,t,n){var r=0;var i=r+t;var a=e.substr(r,i);var o=a.split(/(\s+)/);var s;o.pop();o.pop();a=o.join("");a=a.replaceAll(".","");s=ae(a);if(s<n){console.warn("no search possible on this fraction of subText");return undefined}else{return a}}function b(t,n){const r=window.speechSynthesis;e(".mdib-speaker").addClass("mdib-spin");t.addEventListener("start",(e=>{if(t.offsetTop!==undefined){if(t.offsetTop>=t.previousScrollPosition){window.scrollTo({top:t.offsetTop-E,behavior:a})}}if(t.$paragraph!==undefined){t.$paragraph.addClass("speak-highlighted")}}));t.addEventListener("end",(function(e){if(t.offsetTop!==undefined){if(t.offsetTop>=t.previousScrollPosition){t.previousScrollPosition=t.offsetTop}H=t.offsetTop-E}if(t.$paragraph!==undefined){t.$paragraph.removeClass("speak-highlighted")}W=false;j++}));var i=false;var o=setInterval((function(){if(j==K||$){j=0;$=false;W=false;t.$paragraph!==undefined&&t.$paragraph.removeClass("speak-highlighted");e(".mdib-speaker").removeClass("mdib-spin");clearInterval(o)}else{if(!i&&L.isPaused){j=L.lastChunk;i=true}t.text=n[j].text;t.offsetTop=n[j].offsetTop;t.$paragraph=n[j].$paragraph;if(!W){r.speak(t);W=true}}}),s)}function w(t){var n,r,i,a,o,s,l,c;if(T.length>0){for(var d in T){var p=m.indexOf(T[d]);if(p>-1){m.splice(p,1)}}}for(var d in m){e(t).find(m[d]).addBack(m[d]).not("[data-speak2me-recognize]").each((function(){e(this).html("")}))}if(k.length>0){for(var d in k){e(t).find(k[d]).addBack(k[d]).not("[data-speak2me-recognize]").each((function(){e(this).html("")}))}}e(t).find("[data-speak2me-ignore]").addBack("[data-speak2me-ignore]").each((function(){e(this).html("")}));e(t).find(".speak2me-ignore").addBack("[data-speak2me-ignore]").each((function(){e(this).html("")}));e(t).find("[data-speak2me-prepend]").addBack("[data-speak2me-prepend]").each((function(){n=e(this).data("speak2me-prepend");e(this).prepend(n+" ")}));e(t).find("[data-speak2me-append]").addBack("[data-speak2me-append]").each((function(){n=e(this).data("speak2me-append");e(this).append(" "+n)}));var f=0;for(var h in u){e(t).find(h).each((function(){if(I[h]){e(this).prepend(I[h].prepend+R);e(this).append(I[h].append+R)}else{e(this).prepend(u[h].prepend+R);e(this).append(u[h].append+R)}}))}e(t).find("h1,h2,h3,h4,h5,h6,p,li").addBack("h1,h2,h3,h4,h5,h6,p,li").each((function(){var t=e(this)[0].innerText;t.replace(/\s+/g,"s");t=t+R;e(this)[0].innerText=t}));e(t).find("br").each((function(){e(this).append(R)}));e(t).find("figure").addBack("figure").each((function(){n=e(this).find("figcaption").html();if(I["figure"]){c=I["figure"].prepend}else{c=u["figure"].prepend}if(n!=undefined&&n!==""){e("<div>"+c+R+n+"</div>").insertBefore(this)}e(this).remove()}));e(t).find("img").addBack("img").each((function(){n=e(this).attr("alt");var t=e(this).parent();var r=t.get(0).tagName;if(I["img"]){c=I["img"].prepend}else{c=u["img"].prepend}if(n!==undefined&&n!=""){if(r=="PICTURE"){var i;e("<div>"+c+R+n+R+"</div>").insertBefore(t)}else{e("<div>"+c+R+n+R+"</div>").insertBefore(this)}}e(this).remove()}));e(t).find("a").addBack("a").each((function(){var t=e(this);n=t[0].innerText;c=u["a"].prepend;l=u["a"].append;e("<div>"+n+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this);e(this).remove()}));e(t).find(".admonitionblock").addBack(".admonitionblock").each((function(){a=this.classList[1];o=e(this).find(".content");s=o[0].innerText;c=u[".admonitionblock"].prepend+a+". ";l=u[".admonitionblock"].append;if(s!==undefined&&s!=""){e("<div>"+c+" "+s+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".parallax-quoteblock").addBack(".parallax-quoteblock").each((function(){o=e(this).find(".quote-text");s=o[0].innerText+""+R;c=u["quoteblock"].prepend;l=u["quoteblock"].append;if(s!==undefined&&s!=""){e("<div>"+c+R+s+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".quoteblock").addBack(".quoteblock").each((function(){var t=e(this).find(".attribution");o=e(this).find("blockquote");s=o[0].innerText+""+t[0].innerText;c=u["quoteblock"].prepend;l=u["quoteblock"].append;if(s!==undefined&&s!=""){e("<div>"+c+R+s+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find("table").addBack("table").each((function(){n=e(this).find("caption").text();c=u["table"].prepend;l=u["table"].append;if(n!==undefined&&n!=""){e("<div>"+c+R+n+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".audioblock").addBack(".audioblock").each((function(){n=e(this).find(".title").text();c=u[".audioblock"].prepend;l=u[".audioblock"].append;if(n!==undefined&&n!=""){e("<div>"+c+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".videoblock").addBack(".videoblock").each((function(){n=e(this).find(".title").text();c=u[".videoblock"].prepend;l=u[".videoblock"].append;if(n!==undefined&&n!=""){e("<div>"+c+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".videojs-player").addBack(".videojs-player").each((function(){n=e(this).find(".video-title").text();c=u[".videojs-player"].prepend;l=u[".videojs-player"].append;if(n!==undefined&&n!=""){e("<div>"+c+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".youtube-player").addBack(".youtube-player").each((function(){n=e(this).find(".video-title").text();c=u[".youtube-player"].prepend;l=u[".youtube-player"].append;if(n!==undefined&&n!=""){e("<div>"+c+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".dailymotion-player").addBack(".dailymotion-player").each((function(){n=e(this).find(".video-title").text();c=u[".dailymotion-player"].prepend;l=u[".dailymotion-player"].append;if(n!==undefined&&n!=""){e("<div>"+c+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".vimeo-player").addBack(".vimeo-player").each((function(){n=e(this).find(".video-title").text();c=u[".vimeo-player"].prepend;l=u[".vimeo-player"].append;if(n!==undefined&&n!=""){e("<div>"+c+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".wistia-player").addBack(".wistia-player").each((function(){n=e(this).find(".video-title").text();c=u[".wistia-player"].prepend;l=u[".wistia-player"].append;if(n!==undefined&&n!=""){e("<div>"+c+"with the title, "+n+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".card-header").addBack("card-header").each((function(){i=e(this).find(".card-title");c=u["card-header"].prepend;l=u["card-header"].append;if(i.length){r=i[0].innerText+R}else{r=""}e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+r+"</div>").insertBefore(this);e(i).remove()}));e(t).find(".doc-example").addBack(".doc-example").each((function(){c=u[".doc-example"].prepend;l=u[".doc-example"].append;e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this);e(this).remove()}));e(t).find(".listingblock").addBack(".listingblock").each((function(){i=e(this).find(".title");if(i.length){n=i[0].innerText}else{n=""}c=u[".listingblock"].prepend;l=u[".listingblock"].append;if(n!==undefined&&n!=""){e("<div>"+c+" with the title,"+n+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".gist").addBack(".gist").each((function(){if(e(this).prev()[0]!==undefined){r=e(this).prev()[0].innerText;i=e(this).prev();e(i).remove()}else{r=""}c=u[".gist"].prepend;l=u[".gist"].append;if(r!==undefined&&r!=""){e("<div>"+c+" with the title, "+r+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".modal").addBack(".modal").each((function(){e(this).remove()}));e(t).find(".masonry").addBack(".masonry").each((function(){if(e(this).prev()[0]!==undefined){r=e(this).prev()[0].innerText;i=e(this).prev();e(i).remove()}else{r=""}c=u[".masonry"].prepend;l=u[".masonry"].append;if(r!==undefined&&r!=""){e("<div>"+c+" with the title,"+r+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".slider").addBack(".slider").each((function(){if(e(this).prev()[0]!==undefined){r=e(this).prev()[0].innerText;i=e(this).prev();e(i).remove()}else{r=""}c=u[".slider"].prepend;l=u[".slider"].append;if(r!==undefined&&r!=""){e("<div>"+c+" with the title, "+r+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".gallery").addBack(".gallery").each((function(){if(e(this).prev()[0]!==undefined){r=e(this).prev()[0].innerText;i=e(this).prev();e(i).remove()}else{r=""}c=u[".gallery"].prepend;l=u[".gallery"].append;if(r!==undefined&&r!=""){c!==""&&e("<div>"+c+" with the title "+r+R+"</div>").insertBefore(this);l!==""&&e("<div>"+l+"</div>").insertBefore(this)}else{c!==""&&e("<div>"+c+R+"</div>").insertBefore(this);l!==""&&e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find(".lightbox-block").addBack(".lightbox-block").each((function(){if(e(this).prev()[0]!==undefined){r=e(this).prev()[0].innerText;i=e(this).prev();e(i).remove()}else{r=""}c=u[".lightbox-block"].prepend;l=u[".lightbox-block"].append;if(r!==undefined&&r!=""){e("<div>"+c+" with the title,"+r+R+"</div>").insertBefore(this);e("<div>"+l+"</div>").insertBefore(this)}else{e("<div>"+c+R+"</div>").insertBefore(this);e("<div>"+l+R+"</div>").insertBefore(this)}e(this).remove()}));e(t).find("[data-speak2me-swap]").addBack("[data-speak2me-swap]").each((function(){n=e(this).data("speak2me-swap");e(this).text(n)}));e(t).find("[data-speak2me-spell]").addBack("[data-speak2me-spell]").each((function(){n=e(this).text();n=n.split("").join(" ");e(this).text(n)}));return t}function C(e){var t,n,r,i,a,e;while(e.indexOf("\x3c!-- <speak2me>")!=-1){t=e.indexOf("\x3c!-- <speak2me>");n=e.indexOf("</speak2me> --\x3e",t);if(n==-1){break}r=e.substring(t+17,n);i=e.substring(0,t);a=e.substring(n+17);e=i+" "+r+" "+a}e=e.replace(/<!--[\s\S]*?-->/g,"");e=e.replace(/(<([^>]+)>)/gi,"");var o=A.length;var s=0;var l,c;while(s<o){l=A[s];l=l.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");c=A[s+1]+" ";var u=new RegExp(l,"gi");var e=e.replace(u,c);s=s+2}e=e.replaceAll('"',"");e=e.replaceAll("“","");e=e.replaceAll("”","");e=e.replaceAll(":",".");e=e.replaceAll("., ",". ");e=e.replaceAll(" , ",", ");e=e.replaceAll(". .","");e=e.replaceAll(", .","");e=e.replaceAll(" , ","");e=e.replace(/^$/g,"\n");e=e.replace(/^\s+$/g,"\n");e=e.replace(/\s+\.\s+/g,"\n");e=e.replace(/\s+\.\s+$/g,"\n");e=e.replace(/\.\./g,".");e=e.replaceAll("e.g.","for example");e=e.replaceAll("E.g.","For example, ");e=e.replaceAll("etc.","and so on, ");e=e.replaceAll("z. B.","zum Beispiel, ");e=e.replace(/[\!\?]/g,". ");e=e.replaceAll("—",R);e=e.replaceAll("–",R);e=e.replaceAll("--",R);var d=document.createElement("textarea");d.innerHTML=e;e=d.value;e=e.replace(/^\s*(\b\w+\b)\s*$/gm,"$1. ");e=e.replace(/^\s*(\b\w+\b\s*[0-9]{4})$/gm,"$1. ");e=e.replace(/\s+/g," ");const p=v(e);K=p.length;return p}return se},pause:function(){window.speechSynthesis.pause();return this},resume:function(){window.speechSynthesis.resume();return this},stop:function(){window.speechSynthesis.cancel();$=true},enabled:function(){return"speechSynthesis"in window},isSpeaking:function(){return window.speechSynthesis.speaking},isSpoken:function(){if(window.speechSynthesis.speaking){return j}else{return false}},isScrolled:function(){if(window.speechSynthesis.speaking){return H}else{return false}},isPaused:function(){return window.speechSynthesis.paused},rate:function(){var e=arguments[0];if(e>=.1&&e<=10){U=e}else if(e===undefined){U=void 0;P=D}return this},pitch:function(){var e=arguments[0];if(e>=.1&&e<=2){G=e}else if(e===undefined){G=void 0;F=O}return this},volume:function(){var e=arguments[0];if(e>=0&&e<=1){q=e}else if(e===undefined){q=void 0;B=_}return this},ignore:function(){var e=arguments.length;k.length=0;while(e>0){e--;k.push(arguments[e])}return this},recognize:function(){var e=arguments.length;T.length=0;while(e>0){e--;T.push(arguments[e])}return this},replace:function(){var e=arguments.length;A.length=0;var t=0;while(t<e){A.push(arguments[t],arguments[t+1]);t=t+2;if(e-t==1){break}}return this},customize:function(){var e=arguments.length;if(e==0){I=[]}if(e==2){if(["img","table","figure"].indexOf(arguments[0])==-1){console.warn("When customizing, tag indicated must be either 'img', 'table', or 'figure'.");return}I[arguments[0].toString()]=new re(arguments[1].toString())}if(e==3){if(["q","ol","ul","blockquote"].indexOf(arguments[0])==-1){console.warn("When customizing, tag indicated must be either 'q', 'ol', 'ul' or 'blockquote'.");return}I[arguments[0].toString()]=new re(arguments[1].toString(),arguments[2].toString())}return this},getVoices:function(){if(arguments.length==0){return M}var t=e(arguments[0]);var n="Choose a voice";if(arguments[1]!==undefined){n=arguments[1]}t.append(e("<select id='voiceSelect' name='voiceSelect'><option value='none'>"+n+"</option></select>"));var r=0;for(var i=0;i<M.length;i++){if(m&&M[i].name.includes(y)){r++;continue}if(f&&!M[i].name.includes("Natural")){r++;continue}var a=document.createElement("option");a.textContent=M[i].name+" ("+M[i].language+")";a.setAttribute("value",M[i].name);if(z!==undefined){if(M[i].name===z){a.setAttribute("selected","selected")}}else{if(M[i].name.includes(g)){}}a.setAttribute("data-speak2me-language",M[i].language);t.find("select").append(a)}return i-r},setVoice:function(){if(arguments.length<2){return this}var e,t;if(arguments[0]=="name"){e=arguments[1];for(var n=0;n<M.length;n++){if(M[n].name==e){g=e}}}if(arguments[0]=="language"){t=arguments[1].toUpperCase();if(t.length==2){for(var n=0;n<M.length;n++){if(M[n].language.substring(0,2).toUpperCase()==t){g=M[n].name;break}}}else{for(var n=0;n<M.length;n++){if(M[n].language==t){g=M[n].name;break}}}}return this}};e.fn.speak2me=function(t){if(ce[t]){return ce[t].apply(this,Array.prototype.slice.call(arguments,1))}else if(typeof t==="object"||!t){return ce.speak.apply(this,arguments)}else{e.error("Method "+t+" does not exist on $.speak2me")}}})($)},1068:e=>{e.exports=function(e){var t=[].forEach;var n=[].some;var r=document.body;var i=true;var a=" ";function o(e,t){var n=t.appendChild(l(e));if(e.children.length){var r=c(e.isCollapsed);e.children.forEach((function(e){o(e,r)}));n.appendChild(r)}}function s(e,t){var n=false;var r=c(n);t.forEach((function(e){o(e,r)}));var i=document.querySelector(e);if(i===null){return}if(i.firstChild){i.removeChild(i.firstChild)}if(t.length===0){return i}return i.appendChild(r)}function l(n){var r=document.createElement("li");var i=document.createElement("a");if(e.listItemClass){r.setAttribute("class",e.listItemClass)}if(e.onClick){i.onclick=e.onClick}if(e.includeHtml&&n.childNodes.length){t.call(n.childNodes,(function(e){i.appendChild(e.cloneNode(true))}))}else{i.textContent=n.textContent}i.setAttribute("href",e.basePath+"#"+n.id);i.setAttribute("class",e.linkClass+a+"node-name--"+n.nodeName+a+e.extraLinkClasses);r.appendChild(i);return r}function c(t){var n=e.orderedList?"ol":"ul";var r=document.createElement(n);var i=e.listClass+a+e.extraListClasses;if(t){i+=a+e.collapsibleClass;i+=a+e.isCollapsedClass}r.setAttribute("class",i);return r}function u(){if(e.scrollContainer&&document.querySelector(e.scrollContainer)){var t;t=document.querySelector(e.scrollContainer).scrollTop}else{t=document.documentElement.scrollTop||r.scrollTop}var n=document.querySelector(e.positionFixedSelector);if(e.fixedSidebarOffset==="auto"){e.fixedSidebarOffset=document.querySelector(e.tocSelector).offsetTop}if(t>e.fixedSidebarOffset){if(n.className.indexOf(e.positionFixedClass)===-1){n.className+=a+e.positionFixedClass}}else{n.className=n.className.split(a+e.positionFixedClass).join("")}}function d(t){var n=0;if(t!==document.querySelector(e.contentSelector&&t!=null)){n=t.offsetTop;if(e.hasInnerContainers){n+=d(t.offsetParent)}}return n}function p(o){if(e.scrollContainer&&document.querySelector(e.scrollContainer)){var s;s=document.querySelector(e.scrollContainer).scrollTop}else{s=document.documentElement.scrollTop||r.scrollTop}if(e.positionFixedSelector){u()}var l=o;var c;var p;if(i&&document.querySelector(e.tocSelector)!==null&&l.length>0){n.call(l,(function(t,n){p=d(t);if(p>s+e.headingsOffset+10){c=l[n];return true}else if(n===l.length-1){c=l[l.length-1];return true}}));var h=document.querySelector(e.tocSelector).querySelectorAll("."+e.linkClass);t.call(h,(function(t){t.className=t.className.split(a+e.activeLinkClass).join("")}));var m=document.querySelector(e.tocSelector).querySelectorAll("."+e.listItemClass);t.call(m,(function(t){t.className=t.className.split(a+e.activeListItemClass).join("")}));var g=document.querySelector(e.tocSelector).querySelector("."+e.linkClass+".node-name--"+c.nodeName+'[href="'+e.basePath+"#"+c.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/@])/g,"\\$1")+'"]');if(g.className.indexOf(e.activeLinkClass)===-1){g.className+=a+e.activeLinkClass}var v=g.parentNode;if(v&&v.className.indexOf(e.activeListItemClass)===-1){v.className+=a+e.activeListItemClass}var y=document.querySelector(e.tocSelector).querySelectorAll("."+e.listClass+"."+e.collapsibleClass);t.call(y,(function(t){if(t.className.indexOf(e.isCollapsedClass)===-1){t.className+=a+e.isCollapsedClass}}));if(g.nextSibling&&g.nextSibling.className.indexOf(e.isCollapsedClass)!==-1){g.nextSibling.className=g.nextSibling.className.split(a+e.isCollapsedClass).join("")}f(g.parentNode.parentNode)}}function f(t){if(t.className.indexOf(e.collapsibleClass)!==-1&&t.className.indexOf(e.isCollapsedClass)!==-1){t.className=t.className.split(a+e.isCollapsedClass).join("");return f(t.parentNode.parentNode)}return t}function h(t){var n=t.target||t.srcElement;if(typeof n.className!=="string"||n.className.indexOf(e.linkClass)===-1){return}i=false}function m(){i=true}return{enableTocAnimation:m,disableTocAnimation:h,render:s,updateToc:p}}},4012:e=>{e.exports={tocSelector:".js-toc",contentSelector:".js-toc-content",headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:false,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:true,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:false,onClick:function(e){},orderedList:true,scrollContainer:null,skipRendering:false,headingLabelCallback:false,ignoreHiddenElements:false,headingObjectCallback:null,basePath:"",disableTocScrollSync:false}},1976:e=>{e.exports=function e(t){var n=[].reduce;function r(e){return e[e.length-1]}function i(e){return+e.nodeName.split("H").join("")}function a(e){if(!(e instanceof window.HTMLElement))return e;if(t.ignoreHiddenElements&&(!e.offsetHeight||!e.offsetParent)){return null}var n={id:e.id,children:[],nodeName:e.nodeName,headingLevel:i(e),textContent:t.headingLabelCallback?String(t.headingLabelCallback(e.textContent)):e.textContent.trim()};if(t.includeHtml){n.childNodes=e.childNodes}if(t.headingObjectCallback){return t.headingObjectCallback(n,e)}return n}function o(e,n){var i=a(e);var o=i.headingLevel;var s=n;var l=r(s);var c=l?l.headingLevel:0;var u=o-c;while(u>0){l=r(s);if(l&&l.children!==undefined){s=l.children}u--}if(o>=t.collapseDepth){i.isCollapsed=true}s.push(i);return s}function s(e,n){var r=n;if(t.ignoreSelector){r=n.split(",").map((function e(n){return n.trim()+":not("+t.ignoreSelector+")"}))}try{return document.querySelector(e).querySelectorAll(r)}catch(t){console.warn("Element not found: "+e);return null}}function l(e){return n.call(e,(function e(t,n){var r=a(n);if(r){o(r,t.nest)}return t}),{nest:[]})}return{nestHeadingsArray:l,selectHeadings:s}}},3696:(e,t)=>{t.initSmoothScrolling=n;function n(e){if(l()){}var t=e.duration;var n=e.offset;var i=location.hash?s(location.href):location.href;a();function a(){document.body.addEventListener("click",i,false);function i(i){if(!o(i.target)||i.target.className.indexOf("no-smooth-scroll")>-1||i.target.href.charAt(i.target.href.length-2)==="#"&&i.target.href.charAt(i.target.href.length-1)==="!"||i.target.className.indexOf(e.linkClass)===-1){return}r(i.target.hash,{duration:t,offset:n,callback:false})}}function o(e){return e.tagName.toLowerCase()==="a"&&(e.hash.length>0||e.href.charAt(e.href.length-1)==="#")&&(s(e.href)===i||s(e.href)+"#"===i)}function s(e){return e.slice(0,e.lastIndexOf("#"))}function l(){return"scrollBehavior"in document.documentElement.style}function c(e){var t=document.getElementById(e.substring(1));if(t){if(!/^(?:a|select|input|button|textarea)$/i.test(t.tagName)){t.tabIndex=-1}t.focus()}}}function r(e,t){var n=window.pageYOffset;var r={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||d};var i=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]');var a=typeof e==="string"?r.offset+(e?i&&i.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e;var o=typeof r.duration==="function"?r.duration(a):r.duration;var s;var l;requestAnimationFrame((function(e){s=e;c(e)}));function c(e){l=e-s;window.scrollTo(0,r.easing(l,n,a,o));if(l<o){requestAnimationFrame(c)}else{u()}}function u(){if(typeof r.callback==="function"){r.callback()}}function d(e,t,n,r){e/=r/2;if(e<1)return n/2*e*e+t;e--;return-n/2*(e*(e-2)-1)+t}}},8756:function(e,t,n){var r,i,a;(function(n,o){if(true){!(i=[],r=o(n),a=typeof r==="function"?r.apply(t,i):r,a!==undefined&&(e.exports=a))}else{}})(typeof n.g!=="undefined"?n.g:this.window||this.global,(function(e){"use strict";var t=n(4012);var r={};var i={};var a=n(1068);var o=n(1976);var s=n(600);var l;var c;var u=!!e&&!!e.document&&!!e.document.querySelector&&!!e.addEventListener;if(typeof window==="undefined"&&!u){return}var d;var p=Object.prototype.hasOwnProperty;function f(){var e={};for(var t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(p.call(n,r)){e[r]=n[r]}}}return e}function h(e,t,n){t||(t=250);var r;var i;return function(){var a=n||this;var o=+new Date;var s=arguments;if(r&&o<r+t){clearTimeout(i);i=setTimeout((function(){r=o;e.apply(a,s)}),t)}else{r=o;e.apply(a,s)}}}i.destroy=function(){if(!r.skipRendering){try{document.querySelector(r.tocSelector).innerHTML=""}catch(e){console.warn("Element not found: "+r.tocSelector)}}if(r.scrollContainer&&document.querySelector(r.scrollContainer)){document.querySelector(r.scrollContainer).removeEventListener("scroll",this._scrollListener,false);document.querySelector(r.scrollContainer).removeEventListener("resize",this._scrollListener,false);if(l){document.querySelector(r.scrollContainer).removeEventListener("click",this._clickListener,false)}}else{document.removeEventListener("scroll",this._scrollListener,false);document.removeEventListener("resize",this._scrollListener,false);if(l){document.removeEventListener("click",this._clickListener,false)}}};i.init=function(e){if(!u){return}r=f(t,e||{});this.options=r;this.state={};if(r.scrollSmooth){r.duration=r.scrollSmoothDuration;r.offset=r.scrollSmoothOffset;i.scrollSmooth=n(3696).initSmoothScrolling(r)}l=a(r);c=o(r);this._buildHtml=l;this._parseContent=c;i.destroy();d=c.selectHeadings(r.contentSelector,r.headingSelector);if(d===null){return}var p=c.nestHeadingsArray(d);var m=p.nest;if(!r.skipRendering){l.render(r.tocSelector,m)}this._scrollListener=h((function(e){l.updateToc(d);!r.disableTocScrollSync&&s(r);var t=e&&e.target&&e.target.scrollingElement&&e.target.scrollingElement.scrollTop===0;if(e&&(e.eventPhase===0||e.currentTarget===null)||t){l.updateToc(d);if(r.scrollEndCallback){r.scrollEndCallback(e)}}}),r.throttleTimeout);this._scrollListener();if(r.scrollContainer&&document.querySelector(r.scrollContainer)){document.querySelector(r.scrollContainer).addEventListener("scroll",this._scrollListener,false);document.querySelector(r.scrollContainer).addEventListener("resize",this._scrollListener,false)}else{document.addEventListener("scroll",this._scrollListener,false);document.addEventListener("resize",this._scrollListener,false)}var g=null;this._clickListener=h((function(e){if(r.scrollSmooth){l.disableTocAnimation(e)}l.updateToc(d);g&&clearTimeout(g);g=setTimeout((function(){l.enableTocAnimation()}),r.scrollSmoothDuration)}),r.throttleTimeout);if(r.scrollContainer&&document.querySelector(r.scrollContainer)){document.querySelector(r.scrollContainer).addEventListener("click",this._clickListener,false)}else{document.addEventListener("click",this._clickListener,false)}return this};i.refresh=function(e){i.destroy();i.init(e||this.options)};e.tocbot=i;return i}))},600:e=>{e.exports=function e(t){var n=document.querySelector(t.tocSelector);if(n&&n.scrollHeight>n.clientHeight){var r=n.querySelector("."+t.activeListItemClass);if(r){n.scrollTop=r.offsetTop}}}},1192:(e,t,n)=>{var r,i;
19
19
  /*!
20
20
  * JavaScript Cookie v2.2.1
21
21
  * https://github.com/js-cookie/js-cookie