o2c-opendoc-theme 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +2 -0
  4. data/_includes/directory.html +127 -0
  5. data/_includes/document-title.txt +57 -0
  6. data/_includes/toc.html +127 -0
  7. data/_includes/toolbar.html +68 -0
  8. data/_includes/welcome.html +5 -0
  9. data/_layouts/default.html +147 -0
  10. data/_layouts/home.html +4 -0
  11. data/_layouts/iframe.html +13 -0
  12. data/_layouts/page.html +4 -0
  13. data/_layouts/print.html +27 -0
  14. data/_sass/_base.scss +398 -0
  15. data/_sass/_constants.scss +87 -0
  16. data/_sass/_iframe.scss +7 -0
  17. data/_sass/_layout.scss +419 -0
  18. data/_sass/_nav.scss +592 -0
  19. data/_sass/_print.scss +70 -0
  20. data/_sass/_syntax-highlighting.scss +61 -0
  21. data/_sass/_toolbar.scss +372 -0
  22. data/_sass/_welcome.scss +41 -0
  23. data/assets/export.md +30 -0
  24. data/assets/images/chevron-up-white.svg +1 -0
  25. data/assets/images/chevron-up.svg +1 -0
  26. data/assets/images/close.svg +17 -0
  27. data/assets/images/favicon.ico +0 -0
  28. data/assets/images/feedback-hover.svg +3 -0
  29. data/assets/images/feedback-mobile.svg +1 -0
  30. data/assets/images/feedback.svg +1 -0
  31. data/assets/images/github-hover.svg +3 -0
  32. data/assets/images/github.svg +1 -0
  33. data/assets/images/home.svg +14 -0
  34. data/assets/images/index-img.png +0 -0
  35. data/assets/images/logo-order2cash.svg +65 -0
  36. data/assets/images/logo.png +0 -0
  37. data/assets/images/menu.svg +1 -0
  38. data/assets/images/opendoc-logo-full.svg +10 -0
  39. data/assets/images/pdf-hover.svg +11 -0
  40. data/assets/images/pdf.svg +9 -0
  41. data/assets/images/search-icon-dark.svg +19 -0
  42. data/assets/images/search-icon-white.svg +12 -0
  43. data/assets/images/share.svg +1 -0
  44. data/assets/images/sidebar-hover.svg +3 -0
  45. data/assets/images/sidebar.svg +1 -0
  46. data/assets/images/vertical-dots.svg +1 -0
  47. data/assets/images/x-mobile.svg +1 -0
  48. data/assets/index.html +5 -0
  49. data/assets/js/banner.js +20 -0
  50. data/assets/js/google_analytics.js +11 -0
  51. data/assets/js/header.js +31 -0
  52. data/assets/js/helpers.js +24 -0
  53. data/assets/js/lunr.min.js +6 -0
  54. data/assets/js/navigation.js +214 -0
  55. data/assets/js/page-index.js +57 -0
  56. data/assets/js/pqueue.js +373 -0
  57. data/assets/js/pre-loader.js +43 -0
  58. data/assets/js/search.js +580 -0
  59. data/assets/js/toolbar.js +144 -0
  60. data/assets/pdfs/empty +0 -0
  61. data/assets/siteIndex.json +56 -0
  62. data/assets/startup/build.sh +41 -0
  63. data/assets/startup/docprint.html +20 -0
  64. data/assets/startup/pdf-gen.js +397 -0
  65. data/assets/startup/prebuild-lunr-index.js +52 -0
  66. data/assets/styles/main.scss +13 -0
  67. data/assets/styles/normalize.css +427 -0
  68. data/assets/vendor/babel-polyfill.min.js +3 -0
  69. data/assets/vendor/dom4.js +2 -0
  70. data/assets/vendor/fetch.umd.js +531 -0
  71. data/assets/vendor/headroom.min.js +7 -0
  72. data/assets/vendor/jump.min.js +2 -0
  73. data/assets/vendor/mark.min.js +7 -0
  74. data/assets/vendor/popper.min.js +5 -0
  75. data/assets/vendor/web-share-shim.bundle.min.js +2 -0
  76. metadata +159 -0
@@ -0,0 +1,41 @@
1
+ .welcome-container {
2
+ display: flex;
3
+ justify-content: center;
4
+ align-items: center;
5
+ flex-direction: column;
6
+ width: 70%;
7
+ margin-left: 15%;
8
+ padding-top: 3vh;
9
+ @include mobile-screen {
10
+ padding-top: 7vh;
11
+ }
12
+
13
+ .welcome-text {
14
+ font-size: 24px;
15
+ color: $header-text-color;
16
+ width: auto;
17
+ text-align: center;
18
+ }
19
+
20
+ .welcome-image {
21
+ width: auto;
22
+ max-height: 30vh;
23
+ }
24
+
25
+ .welcome-button {
26
+ display: none;
27
+ margin-top: 7vh;
28
+ }
29
+
30
+ @include mobile-screen {
31
+ width: 90%;
32
+ margin-left: 5%;
33
+ .welcome-button {
34
+ display: block;
35
+ }
36
+ .welcome-text {
37
+ font-size: 20px;
38
+ display: none;
39
+ }
40
+ }
41
+ }
data/assets/export.md ADDED
@@ -0,0 +1,30 @@
1
+ ---
2
+ exclude: true
3
+ layout: print
4
+ permalink: /export
5
+ ---
6
+ {% assign site_pages = '' | split: ',' %}
7
+ {% for site_page in site.html_pages %}
8
+ {% unless site_page.exclude %}
9
+ {% assign site_pages = site_pages | push: site_page %}
10
+ {% endunless %}
11
+ {% endfor %}
12
+
13
+ {% if site.document_order %}
14
+ {% assign sorted_folders = '' | split: '' %}
15
+ {% for document in site.document_order %}
16
+ {% assign document_to_compare = document | strip | uri_escape | downcase %}
17
+ {% for page in site_pages %}
18
+ {% assign dir_to_compare = page.dir | remove: '/' | downcase %}
19
+ {% if document_to_compare == dir_to_compare %}
20
+ {{page.content}}
21
+ {% endif %}
22
+ {% endfor %}
23
+ {% endfor %}
24
+
25
+ {% else %}
26
+
27
+ {% for page in site_pages %}
28
+ {{page.content}}
29
+ {% endfor %}
30
+ {% endif %}
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-up"><polyline points="18 15 12 9 6 15"></polyline></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#454f5b" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-up"><polyline points="18 15 12 9 6 15"></polyline></svg>
@@ -0,0 +1,17 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" version="1.1" viewBox="-2 -4 24 24">
2
+ <title>close</title>
3
+ <g fill="none" fill-rule="evenodd">
4
+ <g transform="translate(-767 -522)">
5
+ <g transform="translate(766 521)">
6
+ <rect width="23" height="21"/>
7
+ <g transform="translate(2 2)" stroke="#454F5B" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5">
8
+ <g transform="translate(7 7) scale(-1 1) translate(-7 -7)">
9
+ <path d="m14 7h-14"/>
10
+ <polyline points="7 14 0 7 7 0"/>
11
+ </g>
12
+ <path d="m15.5 0v14" opacity=".24"/>
13
+ </g>
14
+ </g>
15
+ </g>
16
+ </g>
17
+ </svg>
Binary file
@@ -0,0 +1,3 @@
1
+ ---
2
+ ---
3
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="{{site.styling_options.primary_brand_color}}" fill-opacity="0.3" stroke="{{site.styling_options.primary_brand_color}}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="feather feather-message-square"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#484848" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="feather feather-message-square"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#454f5b" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="feather feather-message-square"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path></svg>
@@ -0,0 +1,3 @@
1
+ ---
2
+ ---
3
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="{{site.styling_options.primary_brand_color}}" fill-opacity="0.3" stroke="{{site.styling_options.primary_brand_color}}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="feather feather-github"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#454f5b" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="feather feather-github"><path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path></svg>
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="20px" height="22px" viewBox="0 0 20 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <!-- Generator: Sketch 55.2 (78181) - https://sketchapp.com -->
4
+ <title>home</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
7
+ <g id="MobileTopNavC" transform="translate(-199.000000, -29.000000)" stroke="#454F5B" stroke-width="1.5">
8
+ <g id="home" transform="translate(200.000000, 30.000000)">
9
+ <path d="M0,7 L9,0 L18,7 L18,18 C18,19.1045695 17.1045695,20 16,20 L2,20 C0.8954305,20 0,19.1045695 0,18 L0,7 Z" id="Path"></path>
10
+ <polyline id="Path" opacity="0.25" points="6 20 6 10 12 10 12 20"></polyline>
11
+ </g>
12
+ </g>
13
+ </g>
14
+ </svg>
Binary file
@@ -0,0 +1,65 @@
1
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="450" height="99"
2
+ viewBox="0 0 450 99" xml:space="preserve">
3
+ <style type="text/css">
4
+ .Half_x0020_Highlight_x0020_Blue{fill:url(#SVGID_1_);stroke:#FFFFFF;stroke-width:0.25;stroke-miterlimit:1;}
5
+ .st0{display:none;}
6
+ .st1{fill:#003899;}
7
+ .st2{fill:#FF6B00;}
8
+ </style>
9
+ <linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="6.123234e-17" y2="-1">
10
+ <stop offset="0" style="stop-color:#2E3E97"/>
11
+ <stop offset="0.618" style="stop-color:#2A3180"/>
12
+ <stop offset="0.6292" style="stop-color:#2B348F"/>
13
+ <stop offset="0.9831" style="stop-color:#00629D"/>
14
+ </linearGradient>
15
+ <g id="logo_here" class="st0">
16
+ </g>
17
+ <g id="template">
18
+ <g>
19
+ <path class="st1" d="M111.9,42.1V19.3h5.9v38.2c0,0.2,0,0.3,0,0.3c0,6.5-2.4,12.1-7.1,16.9c-4.7,4.7-10.4,7-16.9,6.8
20
+ c-6.3-0.2-11.6-2.5-16-7.1c-4.4-4.6-6.5-10.1-6.5-16.4c0-6.6,2.4-12.3,7.1-17c4.7-4.7,10.3-7,16.8-6.8c4,0.2,7.5,1.2,10.7,3l0,7.1
21
+ c-3.1-2.8-6.8-4.2-11-4.2c-4.8,0-8.9,1.7-12.3,5.1c-3.4,3.4-5.2,7.5-5.3,12.4c-0.1,4.8,1.5,9,4.8,12.5c3.2,3.6,7.2,5.5,11.9,5.6
22
+ c5,0.3,9.3-1.5,12.8-5.2c3.5-3.7,5.2-8.1,5.1-13.1V42.1z"/>
23
+ <path class="st1" d="M328.2,57.4c-0.1-4.7-1.8-8.7-5-12c-3.2-3.4-7.1-5-11.6-5c-4.8,0-8.7,1.6-12.1,5c-3.4,3.4-5,7.3-5.1,12.1
24
+ c-0.1,4.7,1.4,8.8,4.6,12.3c3.2,3.5,7.1,5.3,11.6,5.5c4.5,0.2,8.4-1.2,11.7-4.3v7.2c-3.5,2.1-7.4,3-11.8,2.9
25
+ c-6.2-0.2-11.4-2.6-15.7-7.1c-4.3-4.5-6.5-9.9-6.5-16.1c0-6.5,2.3-12.1,6.9-16.7c4.6-4.7,10.1-6.9,16.6-6.6
26
+ c6.2,0.2,11.5,2.6,15.9,7.2c4.4,4.5,6.5,9.9,6.2,16.1v0.3v22h-5.9V57.4z"/>
27
+ <path class="st1" d="M45.7,58c0,6.4-2.3,11.9-7,16.6c-4.6,4.6-10.2,6.9-16.6,6.7c-6.2-0.2-11.4-2.5-15.7-7C2.1,69.7,0,64.3,0,58.1
28
+ C0,51.6,2.3,46,6.9,41.4c4.6-4.6,10.1-6.9,16.5-6.7c6.2,0.2,11.4,2.6,15.7,7.1C43.5,46.4,45.7,51.8,45.7,58z M39.7,57.5
29
+ c-0.2-4.7-1.8-8.7-5-12c-3.2-3.3-7.1-5-11.6-5c-4.7,0-8.8,1.6-12.1,5c-3.3,3.4-5,7.4-5.1,12.2c-0.1,4.7,1.4,8.8,4.6,12.3
30
+ c3.2,3.5,7.1,5.4,11.6,5.5c4.9,0.3,9.1-1.4,12.5-5.1C38.2,66.7,39.8,62.4,39.7,57.5z"/>
31
+ <path class="st1" d="M168.3,60h-39.9c0.5,4.5,2.4,8.2,5.7,11.1c3.3,2.9,7.2,4.3,11.8,4.3c7-0.1,12-3.4,15-9.7h6.3
32
+ c-1.7,4.8-4.5,8.6-8.4,11.4c-3.9,2.8-8.3,4.2-13.2,4.3c-6.1,0.1-11.5-2.1-16.1-6.7c-4.7-4.5-7.1-10-7.2-16.2
33
+ c-0.2-6.6,2.2-12.4,7.1-17.2c4.9-4.8,10.6-7,17.2-6.7c5.9,0.4,11.1,2.8,15.4,7.3c4.2,4.5,6.3,9.5,6.3,15V60z M162.4,54.6
34
+ c-0.8-4.2-2.8-7.5-5.8-10.1c-3.1-2.6-6.7-3.9-11-3.9c-4.3,0-8,1.2-11.2,3.8c-3.2,2.6-5.2,6-6,10.2H162.4z"/>
35
+ <path class="st1" d="M285.1,67.1l-0.6,1.3c-4.7,8.6-11.9,12.9-21.7,12.8c-6.4-0.1-12-2.3-16.7-6.8c-4.7-4.5-7-9.9-7.1-16.3
36
+ c-0.1-6.4,2.2-12,6.9-16.6c4.7-4.6,10.3-6.9,16.9-7.1c4.7-0.1,9,1.2,13.1,3.7c3.8,2.4,6.6,5.4,8.3,9l0.9,1.9h-6.7
37
+ c-3.3-5.8-8.4-8.7-15.3-8.9c-4.6-0.1-8.7,1.6-12.3,5c-3.8,3.5-5.7,7.7-5.7,12.6c0,4.8,1.8,9,5.3,12.5c3.5,3.5,7.7,5.2,12.6,5.1
38
+ c6.9-0.1,12.1-2.9,15.5-8.3H285.1z"/>
39
+ <path class="st1" d="M409.2,80.2h-5.9V54.3c0-3.7-1.4-7-4.2-9.7c-2.8-2.7-6-4-9.7-3.9c-3.8,0.1-7,1.3-9.5,3.8
40
+ c-2.6,2.5-3.9,5.6-3.9,9.4v26.3H370V20.1h5.9v22c3.4-4.4,7.7-6.8,13-7c5.5-0.3,10.3,1.6,14.3,5.5s6,8.7,6,14.4V80.2z"/>
41
+ <path class="st1" d="M70.4,40.3c-3.7,0-6.9,1.3-9.7,4.1c-2.7,2.7-4.1,5.9-4.1,9.7v26h-6V54.6c0-5.8,1.9-10.5,5.6-14.4
42
+ c3.7-3.8,8.4-5.8,14.1-5.8V40.3z"/>
43
+ <path class="st1" d="M193.1,40.3c-3.7,0-6.9,1.3-9.7,4.1c-2.7,2.7-4.1,5.9-4.1,9.7v26h-6V54.6c0-5.8,1.9-10.5,5.6-14.4
44
+ c3.7-3.8,8.4-5.8,14.1-5.8V40.3z"/>
45
+ <g>
46
+ <path class="st2" d="M207.4,17.1c13.3,0,24.8,9.9,24.8,23.6c0,5.8-2.2,11.7-5.8,16.2L202.5,86c-0.8,1-0.1,2.5,1.2,2.5h28.5v9
47
+ h-38.1c-5.1,0-7.8-5.9-4.7-9.8l26.4-32.4c3.2-4,7-8.9,7-14.1c0-8.2-7.3-15-15.4-15V17.1z"/>
48
+ </g>
49
+ <path class="st1" d="M339.2,74.4h11.7c4.7,0,8.3-3.7,8.3-8.3c0-4.3-3.1-5.7-7.4-7.2c-5.7-2.1-12.7-4.7-12.7-12.4
50
+ c0-6.4,5.4-11.4,12.3-11.4h9v5.7l-9.2,0c-2.9,0-6.1,2.3-6.1,5.5c0,3.6,3,4.9,7.9,6.7c5.5,2,12.2,4.5,12.2,13.4
51
+ c0,7.9-6.2,13.9-14.3,13.9h-11.7V74.4z"/>
52
+ <g>
53
+ <polygon class="st2" points="424.9,25.5 429.1,26.9 430,25.2 425.8,23.8 "/>
54
+ <polygon class="st2" points="422.5,20.8 430.9,23.5 431.8,21.8 423.4,19.1 "/>
55
+ <polygon class="st2" points="424.4,17.4 432.8,20.1 433.7,18.4 425.3,15.7 "/>
56
+ <polygon class="st2" points="427.1,12.3 426.2,14 434.6,16.7 435.5,15 "/>
57
+ <path class="st2" d="M428.4,0c-10.8,0-19.5,8.7-19.5,19.5c0,9.5,6.8,17.4,15.8,19.2l1.9-3.5c-7.8-0.9-13.9-7.6-13.9-15.6
58
+ c0-8.7,7.1-15.7,15.7-15.7c8.7,0,15.7,7.1,15.7,15.7c0.1,4-1.6,7.2-4.8,9.7c-1.1,0.8-2,1-3,1c-1,0-2.3-0.5-2.7-1.3
59
+ c-0.3-0.5-0.3-1,0-1.6c0.2-0.3,6.8-12.7,7.2-13.5c0.4-0.8,0.1-1.5-0.7-1.8c-0.8-0.3-12.3-4-13.5-4.4c-1.2-0.4-1.7,0-2.2,0.9
60
+ c-0.5,0.9-8.4,15.8-8.9,16.8c-0.5,1,0,1.6,0.7,1.8c0.7,0.2,18.1,6,18.1,6c2.1,0.6,5.5,0.3,7.8-1.2c3.3-2.2,5.7-6.5,5.7-12.4
61
+ C447.9,8.7,439.2,0,428.4,0z M418.5,25.1l7.9-14.9l11.5,3.7l-7.9,14.8L418.5,25.1z M437.9,14l-7.9,14.8"/>
62
+ </g>
63
+ </g>
64
+ </g>
65
+ </svg>
Binary file
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-menu"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg>
@@ -0,0 +1,10 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="489" height="124" viewBox="0 0 489 124">
2
+ <g fill="#454F5B" fill-rule="nonzero">
3
+ <g opacity=".3">
4
+ <path d="M98.48 43.399a8.06 8.06 0 1 0 8.047 8.048 8.048 8.048 0 0 0-8.048-8.048z"/>
5
+ <circle cx="46.534" cy="51.447" r="8.059"/>
6
+ <path d="M130.672 9.418h-.09a3.396 3.396 0 0 0-3.284 3.396c0 .056.102 6.123-3.497 9.191-1.698 1.46-4.11 2.06-7.177 1.811a52.975 52.975 0 0 0-88.291 0c-3.034.227-5.422-.373-7.109-1.822-3.577-3.045-3.51-9.056-3.498-9.192a3.397 3.397 0 0 0-6.791-.192c0 .373-.215 9.27 5.818 14.466a14.489 14.489 0 0 0 7.776 3.396 53.009 53.009 0 0 0 6.973 56.303L0 116.477l6.452 6.905 31.695-29.827c19.015 16.153 46.722 16.852 66.528 1.68 19.805-15.174 26.342-42.108 15.696-64.672a14.512 14.512 0 0 0 7.844-3.396c6.034-5.196 5.83-14.093 5.819-14.467a3.396 3.396 0 0 0-3.362-3.282zM72.444 8.24A44.814 44.814 0 0 1 105.6 22.865c-6.192 0-14.33.883-20.296 5.128-1.471.838-8.512 5.264-12.802 15.62-4.29-10.356-11.32-14.782-12.802-15.62-5.988-4.267-14.16-5.173-20.375-5.128a44.814 44.814 0 0 1 33.12-14.624zm0 89.83A44.893 44.893 0 0 1 34.05 29.918c4.777-.51 15.474-1.018 21.858 3.634l.419.26c.52.283 12.813 7.12 12.813 28.072a3.396 3.396 0 0 0 6.724 0c0-20.952 12.293-27.789 12.79-28.06l.442-.272c6.35-4.63 16.98-4.154 21.79-3.645a44.904 44.904 0 0 1-38.44 68.166z"/>
7
+ </g>
8
+ <path d="M163.962 54.039c-8.048 0-13.029 3.022-16.04 6.214 0-1.573-.113-2.762-.203-3.531l-.193-1.472h-8.07v1.72c.09 3.634.09 7.347.09 10.924v53.7h8.41V97.822c2.898 3.01 7.324 5.478 14.716 5.478 13.164 0 23.08-10.89 23.08-25.344.068-13.855-9.169-23.918-21.79-23.918zm-1.302 8.06c10.018 0 14.5 8.025 14.5 15.971 0 8.512-4.527 17.104-14.715 17.104-9.18 0-14.715-6.067-14.715-16.232.08-15.202 10.47-16.844 14.93-16.844zM234.03 87.703c-2.83 5.218-7.086 7.64-13.403 7.64-8.421 0-14.341-5.41-15.462-13.934h37.852V78.24c0-11.161-6.09-24.201-23.25-24.201-13.481 0-23.261 10.437-23.261 24.812 0 16.82 12.19 24.473 23.51 24.473 15.055 0 20.534-9.939 22.186-14.206l.894-2.264h-8.591l-.475.85zm-14.354-25.786c10.403 0 13.414 6.724 14.206 11.773h-28.434c1.471-7.505 6.577-11.773 14.228-11.773zM280.722 54.039c-7.606 0-12.225 3.192-14.919 6.362 0-1.495-.102-2.808-.192-3.645l-.159-1.506h-8.116v1.732c.09 3.283.09 7.335.09 10.912v34.207h8.411V79.983c0-11.195 5.252-17.885 14.059-17.885 7.176 0 10.663 4.28 10.663 13.097v26.906h8.5V74.154c.012-12.599-6.859-20.115-18.337-20.115zM407.874 54.039c-13.957 0-24.145 10.403-24.145 24.722 0 16.13 11.954 24.563 23.771 24.563 16.515 0 24.031-12.78 24.031-24.643.023-16.175-11.885-24.642-23.657-24.642zm15.01 24.722c0 7.923-3.985 16.503-15.192 16.503-9.972 0-15.36-8.5-15.36-16.503 0-7.731 3.95-16.753 15.1-16.753 10.618 0 15.451 8.682 15.451 16.753zM480.092 85.7l-.442 1.007c-2.501 5.818-6.973 8.637-13.674 8.637-9.191 0-15.36-6.656-15.36-16.583s6.135-16.844 15.27-16.844c6.927 0 11.421 2.92 13.741 8.931l.42 1.076h8.206l-.385-1.981c-1.324-7.335-7.822-15.847-21.756-15.847-13.934 0-24.088 10.425-24.088 24.846 0 12.134 7.403 24.382 23.952 24.382 10.822 0 19.028-5.784 21.96-15.462l.668-2.162h-8.512zM314.24 37.773h26.475c20.783 0 32.895 13.583 32.895 31.128 0 20.613-14.5 33.2-33.065 33.2H314.24V37.773zm9.055 56.801h15.337c17.048 0 25.254-10.686 25.254-25.412 0-14.727-9.587-23.828-24.506-23.884h-16.051l-.034 49.296zM72.603 0C43.164 0 19.3 23.865 19.3 53.303c0 29.439 23.864 53.304 53.303 53.304 29.438 0 53.303-23.865 53.303-53.304C125.875 23.878 102.03.031 72.603 0zm44.621 53.303a44.621 44.621 0 1 1-44.621-44.61c24.629.025 44.59 19.981 44.621 44.61z"/>
9
+ </g>
10
+ </svg>
@@ -0,0 +1,11 @@
1
+ ---
2
+ ---
3
+ <svg xmlns="http://www.w3.org/2000/svg" width="18" height="22" viewBox="0 0 18 22">
4
+ <g fill="{{site.styling_options.primary_brand_color}}" fill-rule="evenodd">
5
+ <path fill-opacity=".3" stroke="{{site.styling_options.primary_brand_color}}" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" d="M10 1H3a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-7-7z"/>
6
+ <path fill-opacity="0" stroke="{{site.styling_options.primary_brand_color}}" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" d="M10 1v7h7"/>
7
+ <text font-family="sans-serif" font-size="6" transform="translate(1 1)" fill="{{site.styling_options.primary_brand_color}}">
8
+ <tspan x="2.438" y="16">PDF</tspan>
9
+ </text>
10
+ </g>
11
+ </svg>
@@ -0,0 +1,9 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="18" height="22" viewBox="0 0 18 22">
2
+ <g fill="none" fill-rule="evenodd">
3
+ <path stroke="#454F5B" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" d="M10 1H3a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-7-7z"/>
4
+ <path stroke="#454F5B" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.2" d="M10 1v7h7"/>
5
+ <text fill="#454F5B" font-family="sans-serif" font-size="6" transform="translate(1 1)">
6
+ <tspan x="2.438" y="16">PDF</tspan>
7
+ </text>
8
+ </g>
9
+ </svg>
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="24px" height="22px" viewBox="0 0 24 22" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <!-- Generator: Sketch 55.2 (78181) - https://sketchapp.com -->
4
+ <title>Search</title>
5
+ <desc>Created with Sketch.</desc>
6
+ <g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
7
+ <g id="MobileTopNavC" transform="translate(-243.000000, -29.000000)" fill="#454F5B" fill-rule="nonzero">
8
+ <g id="Search" transform="translate(243.000000, 29.000000)">
9
+ <g id="Group" opacity="0.3">
10
+ <path d="M17.3460494,7.739875 C16.5622823,7.739875 15.9269136,8.38318585 15.9269136,9.17675 C15.9269136,9.97031415 16.5622823,10.613625 17.3460494,10.613625 C18.1298164,10.613625 18.7651852,9.97031415 18.7651852,9.17675 C18.7651852,8.38318585 18.1298164,7.739875 17.3460494,7.739875 Z" id="Path"></path>
11
+ <ellipse id="Oval" cx="8.19839506" cy="9.17675" rx="1.4191358" ry="1.436875"></ellipse>
12
+ <path d="M23.0198765,1.68025 L23.0035802,1.68025 C22.6768562,1.68924786 22.4188196,1.96403404 22.4264198,2.294875 C22.4264198,2.3045 22.4440741,3.394875 21.8112346,3.93525 C21.5111111,4.19375 21.0860494,4.301 20.5455556,4.257 C18.8155528,1.6168134 15.8939409,0.0300861947 12.764653,0.0311918065 C9.63536511,0.0322985742 6.71484821,1.62109095 4.98666667,4.2625 C4.45296296,4.30375 4.03604938,4.1965 3.7345679,3.939375 C3.10444444,3.392125 3.12345679,2.31825 3.12345679,2.29625 C3.12100627,1.97316027 2.86665315,1.70987395 2.54768421,1.70025555 C2.22871527,1.69063716 1.95933772,1.93813058 1.93790123,2.2605 C1.93790123,2.327875 1.89987654,3.9105 2.96185185,4.84275 C3.35038366,5.17515735 3.82787267,5.38290053 4.33345679,5.4395 C2.79031499,8.74325403 3.26622491,12.6516642 5.55567901,15.477 L0,20.77625 L1.13666667,22 L6.71950617,16.680125 C10.0691972,19.5665658 14.9546348,19.6933915 18.4460147,16.9845444 C21.9373947,14.2756974 23.0870604,9.46643326 21.2055556,5.440875 C21.7151606,5.386258 22.1968034,5.1778753 22.5880247,4.84275 C23.65,3.916 23.6133333,2.327875 23.6119753,2.2605 C23.601709,1.93694637 23.3396005,1.68008307 23.0198765,1.68025 Z M12.7654321,1.4698739 C14.9884056,1.46939774 17.1085517,2.41791661 18.6049383,4.082375 C17.5185185,4.074125 16.0790123,4.23775 15.0306173,4.995375 C14.7698765,5.14525 13.5367901,5.935875 12.7735802,7.7825 C12.0171605,5.933125 10.777284,5.1425 10.5165432,4.992625 C9.46271605,4.23225 8.02185185,4.07 6.92592593,4.079625 C8.42279573,2.41618424 10.5428766,1.46869297 12.7654321,1.4698739 Z M12.7654321,17.4927505 C9.90939311,17.4937286 7.27467896,15.9356076 5.87247009,13.4163802 C4.47026122,10.8971529 4.51839384,7.80818665 5.99839506,5.335 C6.84037037,5.24425 8.72530864,5.154875 9.84975309,5.985375 L9.9217284,6.032125 C10.0140741,6.081625 12.1801235,7.30125 12.1801235,11.0385 C12.1696599,11.2597801 12.2802985,11.4689395 12.468015,11.5827515 C12.6557315,11.6965635 12.890071,11.6965635 13.0777875,11.5827515 C13.265504,11.4689395 13.3761426,11.2597801 13.365679,11.0385 C13.365679,7.30125 15.5303704,6.081625 15.618642,6.0335 L15.6960494,5.985375 C16.8137037,5.160375 18.6837037,5.24425 19.5338272,5.333625 C21.0137307,7.80722904 21.0616522,10.896501 19.6592019,13.4159416 C18.2567516,15.9353822 15.6217731,17.4936446 12.7654321,17.4927505 Z" id="Shape"></path>
13
+ </g>
14
+ <path d="M12.6297666,0 C8.83973763,0 5.42292484,2.28313078 3.97267018,5.78471343 C2.52241553,9.28629608 3.32434131,13.3167069 6.00449025,15.9964682 C8.68463918,18.6762296 12.7151658,19.4775725 16.2165386,18.0268115 C19.7179115,16.5760504 22.000548,13.1589074 22,9.36887844 C21.9940247,4.19653784 17.8021079,0.00522717683 12.6297666,0 Z M20.4714933,9.36887844 C20.4714933,13.6997446 16.9606326,17.2106053 12.6297666,17.2106053 C8.29890046,17.2106053 4.78803981,13.6997446 4.78803981,9.36887844 C4.78803981,5.03801228 8.29890046,1.52715158 12.6297666,1.52715158 C16.9584659,1.53237813 20.4662667,5.04017904 20.4714933,9.36887844 L20.4714933,9.36887844 Z" id="Shape"></path>
15
+ <polygon id="Path" points="0 20.7758005 1.10266774 22 6.51851852 16.6781709 5.38818528 15.4814815"></polygon>
16
+ </g>
17
+ </g>
18
+ </g>
19
+ </svg>
@@ -0,0 +1,12 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="29" height="26" viewBox="0 0 29 26">
2
+ <defs>
3
+ <path id="a" d="M0 .133h28.487V26H0z"/>
4
+ </defs>
5
+ <g fill="none" fill-rule="evenodd">
6
+ <path fill="#FFF" d="M20.15 10.4a1.95 1.95 0 1 0 0 3.9 1.95 1.95 0 0 0 0-3.9M9.75 10.4a1.95 1.95 0 1 0 0 3.9 1.95 1.95 0 0 0 0-3.9"/>
7
+ <mask id="b" fill="#fff">
8
+ <use xlink:href="#a"/>
9
+ </mask>
10
+ <path fill="#FFF" d="M15.402 20.694c-5.263 0-9.546-4.232-9.546-9.433 0-1.785.505-3.457 1.38-4.882 1.016-.107 3.29-.212 4.646.765l.089.055c.11.058 2.723 1.494 2.723 5.895 0 .39.32.706.715.706a.71.71 0 0 0 .715-.706c0-4.401 2.612-5.837 2.719-5.893l.093-.057c1.349-.972 3.608-.873 4.63-.766a9.294 9.294 0 0 1 1.382 4.883c0 5.201-4.282 9.433-9.546 9.433m0-18.866A9.574 9.574 0 0 1 22.444 4.9c-1.316-.01-3.047.184-4.313 1.076-.315.176-1.81 1.106-2.722 3.28-.911-2.174-2.408-3.104-2.722-3.28-1.27-.896-3.01-1.087-4.327-1.076a9.574 9.574 0 0 1 7.042-3.072m12.37.248h-.02a.712.712 0 0 0-.695.724c0 .013.02 1.287-.744 1.931-.361.306-.875.431-1.526.38A11.285 11.285 0 0 0 15.402.133c-3.919 0-7.369 1.979-9.386 4.98-.643.047-1.152-.078-1.511-.382-.76-.64-.744-1.905-.743-1.93a.71.71 0 0 0-.693-.727.711.711 0 0 0-.737.685c-.002.079-.046 1.949 1.235 3.039.457.39 1.012.62 1.654.703a10.974 10.974 0 0 0-1.081 4.76c0 2.683.961 5.144 2.562 7.066L0 24.559 1.372 26l6.735-6.263a11.294 11.294 0 0 0 7.295 2.653c6.22 0 11.262-4.982 11.262-11.128 0-1.703-.388-3.315-1.08-4.758.647-.08 1.207-.313 1.667-.705 1.281-1.09 1.238-2.96 1.235-3.04a.71.71 0 0 0-.714-.682" mask="url(#b)"/>
11
+ </g>
12
+ </svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#454f5b" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="feather feather-share-2"><circle cx="18" cy="5" r="3"></circle><circle cx="6" cy="12" r="3"></circle><circle cx="18" cy="19" r="3"></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line></svg>
@@ -0,0 +1,3 @@
1
+ ---
2
+ ---
3
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="{{site.styling_options.primary_brand_color}}" fill-opacity="0.3" stroke="{{site.styling_options.primary_brand_color}}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sidebar"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="3" x2="9" y2="21"></line></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#454f5b" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sidebar"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="3" x2="9" y2="21"></line></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path stroke="transparent" fill="#FFFFFF" d="M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2S13.1 10 12 10zM12 4c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2S13.1 4 12 4zM12 16c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2S13.1 16 12 16z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>
data/assets/index.html ADDED
@@ -0,0 +1,5 @@
1
+ ---
2
+ permalink: /
3
+ layout: default
4
+ exclude: true
5
+ ---
@@ -0,0 +1,20 @@
1
+ (function () {
2
+ if (Popper) {
3
+ var feedbackButton = document.getElementById('contact-us')
4
+ var banner = document.getElementById('banner')
5
+ banner.style.display = 'flex'
6
+ var popper = new Popper(feedbackButton, banner, {
7
+ placement: 'bottom'
8
+ })
9
+ var closeBannerButton = document.getElementById('close-banner')
10
+ closeBannerButton.onclick = function () {
11
+ popper.destroy()
12
+ banner.style.display = 'none'
13
+ }
14
+
15
+ // Remove banner after a while
16
+ setTimeout(function () {
17
+ closeBannerButton.onclick()
18
+ }, 8000)
19
+ }
20
+ })()
@@ -0,0 +1,11 @@
1
+ ---
2
+ ---
3
+ (function (i, s, o, g, r, a, m) {
4
+ i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
5
+ (i[r].q = i[r].q || []).push(arguments)
6
+ }, i[r].l = 1 * new Date(); a = s.createElement(o),
7
+ m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
8
+ })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
9
+ ga('create', '{{ site.google_analytics }}', 'auto');
10
+ ga('send', 'pageview');
11
+ window.ga = ga
@@ -0,0 +1,31 @@
1
+ (function () {
2
+ var header = document.querySelector('header')
3
+ var headroom = new Headroom(header, {
4
+ tolerance: 30,
5
+ offset : 50
6
+ })
7
+ headroom.init()
8
+
9
+ // Flash and hide header
10
+ function hideHeader() {
11
+ if (window.pageYOffset > 0) {
12
+ setTimeout(function () {
13
+ header.classList.remove('headroom--pinned')
14
+ header.classList.add('headroom--unpinned')
15
+ }, 200)
16
+ }
17
+ }
18
+
19
+ // Prevent the header from appearing when scrolling to anchors
20
+ window.addEventListener('link-click', function () {
21
+ if (isMobileView()) {
22
+ hideHeader()
23
+ }
24
+ })
25
+ window.addEventListener('load', function() {
26
+ if (isMobileView()) {
27
+ hideHeader()
28
+ }
29
+ })
30
+
31
+ })()
@@ -0,0 +1,24 @@
1
+
2
+ // Resize
3
+ function resizeIframe(obj) {
4
+ obj.style.height = obj.contentWindow.document.body.scrollHeight + 'px';
5
+ }
6
+
7
+ // Fetch API helpers
8
+ function checkStatus(response) {
9
+ if (response.status >= 200 && response.status < 300) {
10
+ return response
11
+ } else {
12
+ var error = new Error(response.statusText)
13
+ error.response = response
14
+ throw error
15
+ }
16
+ }
17
+
18
+ function parseText(response) {
19
+ return response.text()
20
+ }
21
+
22
+ function parseJSON(response) {
23
+ return response.json()
24
+ }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.6
3
+ * Copyright (C) 2019 Oliver Nightingale
4
+ * @license MIT
5
+ */
6
+ !function(){var e=function(t){var r=new e.Builder;return r.pipeline.add(e.trimmer,e.stopWordFilter,e.stemmer),r.searchPipeline.add(e.stemmer),t.call(r,r),r.build()};e.version="2.3.6",e.utils={},e.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),e.utils.asString=function(e){return void 0===e||null===e?"":e.toString()},e.utils.clone=function(e){if(null===e||void 0===e)return e;for(var t=Object.create(null),r=Object.keys(e),i=0;i<r.length;i++){var n=r[i],s=e[n];if(Array.isArray(s))t[n]=s.slice();else{if("string"!=typeof s&&"number"!=typeof s&&"boolean"!=typeof s)throw new TypeError("clone is not deep and does not support nested objects");t[n]=s}}return t},e.FieldRef=function(e,t,r){this.docRef=e,this.fieldName=t,this._stringValue=r},e.FieldRef.joiner="/",e.FieldRef.fromString=function(t){var r=t.indexOf(e.FieldRef.joiner);if(r===-1)throw"malformed field ref string";var i=t.slice(0,r),n=t.slice(r+1);return new e.FieldRef(n,i,t)},e.FieldRef.prototype.toString=function(){return void 0==this._stringValue&&(this._stringValue=this.fieldName+e.FieldRef.joiner+this.docRef),this._stringValue},e.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},e.Set.complete={intersect:function(e){return e},union:function(e){return e},contains:function(){return!0}},e.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},e.Set.prototype.contains=function(e){return!!this.elements[e]},e.Set.prototype.intersect=function(t){var r,i,n,s=[];if(t===e.Set.complete)return this;if(t===e.Set.empty)return t;this.length<t.length?(r=this,i=t):(r=t,i=this),n=Object.keys(r.elements);for(var o=0;o<n.length;o++){var a=n[o];a in i.elements&&s.push(a)}return new e.Set(s)},e.Set.prototype.union=function(t){return t===e.Set.complete?e.Set.complete:t===e.Set.empty?this:new e.Set(Object.keys(this.elements).concat(Object.keys(t.elements)))},e.idf=function(e,t){var r=0;for(var i in e)"_index"!=i&&(r+=Object.keys(e[i]).length);var n=(t-r+.5)/(r+.5);return Math.log(1+Math.abs(n))},e.Token=function(e,t){this.str=e||"",this.metadata=t||{}},e.Token.prototype.toString=function(){return this.str},e.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},e.Token.prototype.clone=function(t){return t=t||function(e){return e},new e.Token(t(this.str,this.metadata),this.metadata)},e.tokenizer=function(t,r){if(null==t||void 0==t)return[];if(Array.isArray(t))return t.map(function(t){return new e.Token(e.utils.asString(t).toLowerCase(),e.utils.clone(r))});for(var i=t.toString().trim().toLowerCase(),n=i.length,s=[],o=0,a=0;o<=n;o++){var u=i.charAt(o),l=o-a;if(u.match(e.tokenizer.separator)||o==n){if(l>0){var c=e.utils.clone(r)||{};c.position=[a,l],c.index=s.length,s.push(new e.Token(i.slice(a,o),c))}a=o+1}}return s},e.tokenizer.separator=/[\s\-]+/,e.Pipeline=function(){this._stack=[]},e.Pipeline.registeredFunctions=Object.create(null),e.Pipeline.registerFunction=function(t,r){r in this.registeredFunctions&&e.utils.warn("Overwriting existing registered function: "+r),t.label=r,e.Pipeline.registeredFunctions[t.label]=t},e.Pipeline.warnIfFunctionNotRegistered=function(t){var r=t.label&&t.label in this.registeredFunctions;r||e.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\n",t)},e.Pipeline.load=function(t){var r=new e.Pipeline;return t.forEach(function(t){var i=e.Pipeline.registeredFunctions[t];if(!i)throw new Error("Cannot load unregistered function: "+t);r.add(i)}),r},e.Pipeline.prototype.add=function(){var t=Array.prototype.slice.call(arguments);t.forEach(function(t){e.Pipeline.warnIfFunctionNotRegistered(t),this._stack.push(t)},this)},e.Pipeline.prototype.after=function(t,r){e.Pipeline.warnIfFunctionNotRegistered(r);var i=this._stack.indexOf(t);if(i==-1)throw new Error("Cannot find existingFn");i+=1,this._stack.splice(i,0,r)},e.Pipeline.prototype.before=function(t,r){e.Pipeline.warnIfFunctionNotRegistered(r);var i=this._stack.indexOf(t);if(i==-1)throw new Error("Cannot find existingFn");this._stack.splice(i,0,r)},e.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);t!=-1&&this._stack.splice(t,1)},e.Pipeline.prototype.run=function(e){for(var t=this._stack.length,r=0;r<t;r++){for(var i=this._stack[r],n=[],s=0;s<e.length;s++){var o=i(e[s],s,e);if(void 0!==o&&""!==o)if(Array.isArray(o))for(var a=0;a<o.length;a++)n.push(o[a]);else n.push(o)}e=n}return e},e.Pipeline.prototype.runString=function(t,r){var i=new e.Token(t,r);return this.run([i]).map(function(e){return e.toString()})},e.Pipeline.prototype.reset=function(){this._stack=[]},e.Pipeline.prototype.toJSON=function(){return this._stack.map(function(t){return e.Pipeline.warnIfFunctionNotRegistered(t),t.label})},e.Vector=function(e){this._magnitude=0,this.elements=e||[]},e.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,r=this.elements.length/2,i=r-t,n=Math.floor(i/2),s=this.elements[2*n];i>1&&(s<e&&(t=n),s>e&&(r=n),s!=e);)i=r-t,n=t+Math.floor(i/2),s=this.elements[2*n];return s==e?2*n:s>e?2*n:s<e?2*(n+1):void 0},e.Vector.prototype.insert=function(e,t){this.upsert(e,t,function(){throw"duplicate index"})},e.Vector.prototype.upsert=function(e,t,r){this._magnitude=0;var i=this.positionForIndex(e);this.elements[i]==e?this.elements[i+1]=r(this.elements[i+1],t):this.elements.splice(i,0,e,t)},e.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,r=1;r<t;r+=2){var i=this.elements[r];e+=i*i}return this._magnitude=Math.sqrt(e)},e.Vector.prototype.dot=function(e){for(var t=0,r=this.elements,i=e.elements,n=r.length,s=i.length,o=0,a=0,u=0,l=0;u<n&&l<s;)o=r[u],a=i[l],o<a?u+=2:o>a?l+=2:o==a&&(t+=r[u+1]*i[l+1],u+=2,l+=2);return t},e.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},e.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,r=0;t<this.elements.length;t+=2,r++)e[r]=this.elements[t];return e},e.Vector.prototype.toJSON=function(){return this.elements},e.stemmer=function(){var e={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},t={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},r="[^aeiou]",i="[aeiouy]",n=r+"[^aeiouy]*",s=i+"[aeiou]*",o="^("+n+")?"+s+n,a="^("+n+")?"+s+n+"("+s+")?$",u="^("+n+")?"+s+n+s+n,l="^("+n+")?"+i,c=new RegExp(o),h=new RegExp(u),d=new RegExp(a),f=new RegExp(l),p=/^(.+?)(ss|i)es$/,y=/^(.+?)([^s])s$/,m=/^(.+?)eed$/,v=/^(.+?)(ed|ing)$/,g=/.$/,x=/(at|bl|iz)$/,w=new RegExp("([^aeiouylsz])\\1$"),Q=new RegExp("^"+n+i+"[^aeiouwxy]$"),k=/^(.+?[^aeiou])y$/,S=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,E=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,L=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,b=/^(.+?)(s|t)(ion)$/,P=/^(.+?)e$/,T=/ll$/,O=new RegExp("^"+n+i+"[^aeiouwxy]$"),I=function(r){var i,n,s,o,a,u,l;if(r.length<3)return r;if(s=r.substr(0,1),"y"==s&&(r=s.toUpperCase()+r.substr(1)),o=p,a=y,o.test(r)?r=r.replace(o,"$1$2"):a.test(r)&&(r=r.replace(a,"$1$2")),o=m,a=v,o.test(r)){var I=o.exec(r);o=c,o.test(I[1])&&(o=g,r=r.replace(o,""))}else if(a.test(r)){var I=a.exec(r);i=I[1],a=f,a.test(i)&&(r=i,a=x,u=w,l=Q,a.test(r)?r+="e":u.test(r)?(o=g,r=r.replace(o,"")):l.test(r)&&(r+="e"))}if(o=k,o.test(r)){var I=o.exec(r);i=I[1],r=i+"i"}if(o=S,o.test(r)){var I=o.exec(r);i=I[1],n=I[2],o=c,o.test(i)&&(r=i+e[n])}if(o=E,o.test(r)){var I=o.exec(r);i=I[1],n=I[2],o=c,o.test(i)&&(r=i+t[n])}if(o=L,a=b,o.test(r)){var I=o.exec(r);i=I[1],o=h,o.test(i)&&(r=i)}else if(a.test(r)){var I=a.exec(r);i=I[1]+I[2],a=h,a.test(i)&&(r=i)}if(o=P,o.test(r)){var I=o.exec(r);i=I[1],o=h,a=d,u=O,(o.test(i)||a.test(i)&&!u.test(i))&&(r=i)}return o=T,a=h,o.test(r)&&a.test(r)&&(o=g,r=r.replace(o,"")),"y"==s&&(r=s.toLowerCase()+r.substr(1)),r};return function(e){return e.update(I)}}(),e.Pipeline.registerFunction(e.stemmer,"stemmer"),e.generateStopWordFilter=function(e){var t=e.reduce(function(e,t){return e[t]=t,e},{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},e.stopWordFilter=e.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),e.Pipeline.registerFunction(e.stopWordFilter,"stopWordFilter"),e.trimmer=function(e){return e.update(function(e){return e.replace(/^\W+/,"").replace(/\W+$/,"")})},e.Pipeline.registerFunction(e.trimmer,"trimmer"),e.TokenSet=function(){this["final"]=!1,this.edges={},this.id=e.TokenSet._nextId,e.TokenSet._nextId+=1},e.TokenSet._nextId=1,e.TokenSet.fromArray=function(t){for(var r=new e.TokenSet.Builder,i=0,n=t.length;i<n;i++)r.insert(t[i]);return r.finish(),r.root},e.TokenSet.fromClause=function(t){return"editDistance"in t?e.TokenSet.fromFuzzyString(t.term,t.editDistance):e.TokenSet.fromString(t.term)},e.TokenSet.fromFuzzyString=function(t,r){for(var i=new e.TokenSet,n=[{node:i,editsRemaining:r,str:t}];n.length;){var s=n.pop();if(s.str.length>0){var o,a=s.str.charAt(0);a in s.node.edges?o=s.node.edges[a]:(o=new e.TokenSet,s.node.edges[a]=o),1==s.str.length&&(o["final"]=!0),n.push({node:o,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(0!=s.editsRemaining){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new e.TokenSet;s.node.edges["*"]=u}if(0==s.str.length&&(u["final"]=!0),n.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&n.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),1==s.str.length&&(s.node["final"]=!0),s.str.length>=1){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new e.TokenSet;s.node.edges["*"]=l}1==s.str.length&&(l["final"]=!0),n.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var c,h=s.str.charAt(0),d=s.str.charAt(1);d in s.node.edges?c=s.node.edges[d]:(c=new e.TokenSet,s.node.edges[d]=c),1==s.str.length&&(c["final"]=!0),n.push({node:c,editsRemaining:s.editsRemaining-1,str:h+s.str.slice(2)})}}}return i},e.TokenSet.fromString=function(t){for(var r=new e.TokenSet,i=r,n=0,s=t.length;n<s;n++){var o=t[n],a=n==s-1;if("*"==o)r.edges[o]=r,r["final"]=a;else{var u=new e.TokenSet;u["final"]=a,r.edges[o]=u,r=u}}return i},e.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var r=t.pop(),i=Object.keys(r.node.edges),n=i.length;r.node["final"]&&(r.prefix.charAt(0),e.push(r.prefix));for(var s=0;s<n;s++){var o=i[s];t.push({prefix:r.prefix.concat(o),node:r.node.edges[o]})}}return e},e.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this["final"]?"1":"0",t=Object.keys(this.edges).sort(),r=t.length,i=0;i<r;i++){var n=t[i],s=this.edges[n];e=e+n+s.id}return e},e.TokenSet.prototype.intersect=function(t){for(var r=new e.TokenSet,i=void 0,n=[{qNode:t,output:r,node:this}];n.length;){i=n.pop();for(var s=Object.keys(i.qNode.edges),o=s.length,a=Object.keys(i.node.edges),u=a.length,l=0;l<o;l++)for(var c=s[l],h=0;h<u;h++){var d=a[h];if(d==c||"*"==c){var f=i.node.edges[d],p=i.qNode.edges[c],y=f["final"]&&p["final"],m=void 0;d in i.output.edges?(m=i.output.edges[d],m["final"]=m["final"]||y):(m=new e.TokenSet,m["final"]=y,i.output.edges[d]=m),n.push({qNode:p,output:m,node:f})}}}return r},e.TokenSet.Builder=function(){this.previousWord="",this.root=new e.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},e.TokenSet.Builder.prototype.insert=function(t){var r,i=0;if(t<this.previousWord)throw new Error("Out of order word insertion");for(var n=0;n<t.length&&n<this.previousWord.length&&t[n]==this.previousWord[n];n++)i++;this.minimize(i),r=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(var n=i;n<t.length;n++){var s=new e.TokenSet,o=t[n];r.edges[o]=s,this.uncheckedNodes.push({parent:r,"char":o,child:s}),r=s}r["final"]=!0,this.previousWord=t},e.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},e.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var r=this.uncheckedNodes[t],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r["char"]]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}},e.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},e.Index.prototype.search=function(t){return this.query(function(r){var i=new e.QueryParser(t,r);i.parse()})},e.Index.prototype.query=function(t){for(var r=new e.Query(this.fields),i=Object.create(null),n=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),u=0;u<this.fields.length;u++)n[this.fields[u]]=new e.Vector;t.call(r,r);for(var u=0;u<r.clauses.length;u++){var l=r.clauses[u],c=null,h=e.Set.complete;c=l.usePipeline?this.pipeline.runString(l.term,{fields:l.fields}):[l.term];for(var d=0;d<c.length;d++){var f=c[d];l.term=f;var p=e.TokenSet.fromClause(l),y=this.tokenSet.intersect(p).toArray();if(0===y.length&&l.presence===e.Query.presence.REQUIRED){for(var m=0;m<l.fields.length;m++){var v=l.fields[m];o[v]=e.Set.empty}break}for(var g=0;g<y.length;g++)for(var x=y[g],w=this.invertedIndex[x],Q=w._index,m=0;m<l.fields.length;m++){var v=l.fields[m],k=w[v],S=Object.keys(k),E=x+"/"+v,L=new e.Set(S);if(l.presence==e.Query.presence.REQUIRED&&(h=h.union(L),void 0===o[v]&&(o[v]=e.Set.complete)),l.presence!=e.Query.presence.PROHIBITED){if(n[v].upsert(Q,l.boost,function(e,t){return e+t}),!s[E]){for(var b=0;b<S.length;b++){var P,T=S[b],O=new e.FieldRef(T,v),I=k[T];void 0===(P=i[O])?i[O]=new e.MatchData(x,v,I):P.add(x,v,I)}s[E]=!0}}else void 0===a[v]&&(a[v]=e.Set.empty),a[v]=a[v].union(L)}}if(l.presence===e.Query.presence.REQUIRED)for(var m=0;m<l.fields.length;m++){var v=l.fields[m];o[v]=o[v].intersect(h)}}for(var R=e.Set.complete,F=e.Set.empty,u=0;u<this.fields.length;u++){var v=this.fields[u];o[v]&&(R=R.intersect(o[v])),a[v]&&(F=F.union(a[v]))}var C=Object.keys(i),N=[],_=Object.create(null);if(r.isNegated()){C=Object.keys(this.fieldVectors);for(var u=0;u<C.length;u++){var O=C[u],j=e.FieldRef.fromString(O);i[O]=new e.MatchData}}for(var u=0;u<C.length;u++){var j=e.FieldRef.fromString(C[u]),D=j.docRef;if(R.contains(D)&&!F.contains(D)){var A,B=this.fieldVectors[j],V=n[j.fieldName].similarity(B);if(void 0!==(A=_[D]))A.score+=V,A.matchData.combine(i[j]);else{var z={ref:D,score:V,matchData:i[j]};_[D]=z,N.push(z)}}}return N.sort(function(e,t){return t.score-e.score})},e.Index.prototype.toJSON=function(){var t=Object.keys(this.invertedIndex).sort().map(function(e){return[e,this.invertedIndex[e]]},this),r=Object.keys(this.fieldVectors).map(function(e){return[e,this.fieldVectors[e].toJSON()]},this);return{version:e.version,fields:this.fields,fieldVectors:r,invertedIndex:t,pipeline:this.pipeline.toJSON()}},e.Index.load=function(t){var r={},i={},n=t.fieldVectors,s=Object.create(null),o=t.invertedIndex,a=new e.TokenSet.Builder,u=e.Pipeline.load(t.pipeline);t.version!=e.version&&e.utils.warn("Version mismatch when loading serialised index. Current version of lunr '"+e.version+"' does not match serialized index '"+t.version+"'");for(var l=0;l<n.length;l++){var c=n[l],h=c[0],d=c[1];i[h]=new e.Vector(d)}for(var l=0;l<o.length;l++){var c=o[l],f=c[0],p=c[1];a.insert(f),s[f]=p}return a.finish(),r.fields=t.fields,r.fieldVectors=i,r.invertedIndex=s,r.tokenSet=a.root,r.pipeline=u,new e.Index(r)},e.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=e.tokenizer,this.pipeline=new e.Pipeline,this.searchPipeline=new e.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},e.Builder.prototype.ref=function(e){this._ref=e},e.Builder.prototype.field=function(e,t){if(/\//.test(e))throw new RangeError("Field '"+e+"' contains illegal character '/'");this._fields[e]=t||{}},e.Builder.prototype.b=function(e){e<0?this._b=0:e>1?this._b=1:this._b=e},e.Builder.prototype.k1=function(e){this._k1=e},e.Builder.prototype.add=function(t,r){var i=t[this._ref],n=Object.keys(this._fields);this._documents[i]=r||{},this.documentCount+=1;for(var s=0;s<n.length;s++){var o=n[s],a=this._fields[o].extractor,u=a?a(t):t[o],l=this.tokenizer(u,{fields:[o]}),c=this.pipeline.run(l),h=new e.FieldRef(i,o),d=Object.create(null);this.fieldTermFrequencies[h]=d,this.fieldLengths[h]=0,this.fieldLengths[h]+=c.length;for(var f=0;f<c.length;f++){var p=c[f];if(void 0==d[p]&&(d[p]=0),d[p]+=1,void 0==this.invertedIndex[p]){var y=Object.create(null);y._index=this.termIndex,this.termIndex+=1;for(var m=0;m<n.length;m++)y[n[m]]=Object.create(null);this.invertedIndex[p]=y}void 0==this.invertedIndex[p][o][i]&&(this.invertedIndex[p][o][i]=Object.create(null));for(var v=0;v<this.metadataWhitelist.length;v++){var g=this.metadataWhitelist[v],x=p.metadata[g];void 0==this.invertedIndex[p][o][i][g]&&(this.invertedIndex[p][o][i][g]=[]),this.invertedIndex[p][o][i][g].push(x)}}}},e.Builder.prototype.calculateAverageFieldLengths=function(){for(var t=Object.keys(this.fieldLengths),r=t.length,i={},n={},s=0;s<r;s++){var o=e.FieldRef.fromString(t[s]),a=o.fieldName;n[a]||(n[a]=0),n[a]+=1,i[a]||(i[a]=0),i[a]+=this.fieldLengths[o]}for(var u=Object.keys(this._fields),s=0;s<u.length;s++){var l=u[s];i[l]=i[l]/n[l]}this.averageFieldLength=i},e.Builder.prototype.createFieldVectors=function(){for(var t={},r=Object.keys(this.fieldTermFrequencies),i=r.length,n=Object.create(null),s=0;s<i;s++){for(var o=e.FieldRef.fromString(r[s]),a=o.fieldName,u=this.fieldLengths[o],l=new e.Vector,c=this.fieldTermFrequencies[o],h=Object.keys(c),d=h.length,f=this._fields[a].boost||1,p=this._documents[o.docRef].boost||1,y=0;y<d;y++){var m,v,g,x=h[y],w=c[x],Q=this.invertedIndex[x]._index;void 0===n[x]?(m=e.idf(this.invertedIndex[x],this.documentCount),n[x]=m):m=n[x],v=m*((this._k1+1)*w)/(this._k1*(1-this._b+this._b*(u/this.averageFieldLength[a]))+w),v*=f,v*=p,g=Math.round(1e3*v)/1e3,l.insert(Q,g)}t[o]=l}this.fieldVectors=t},e.Builder.prototype.createTokenSet=function(){this.tokenSet=e.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},e.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new e.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},e.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},e.MatchData=function(e,t,r){for(var i=Object.create(null),n=Object.keys(r||{}),s=0;s<n.length;s++){var o=n[s];i[o]=r[o].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=i)},e.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),r=0;r<t.length;r++){var i=t[r],n=Object.keys(e.metadata[i]);void 0==this.metadata[i]&&(this.metadata[i]=Object.create(null));for(var s=0;s<n.length;s++){var o=n[s],a=Object.keys(e.metadata[i][o]);void 0==this.metadata[i][o]&&(this.metadata[i][o]=Object.create(null));for(var u=0;u<a.length;u++){var l=a[u];void 0==this.metadata[i][o][l]?this.metadata[i][o][l]=e.metadata[i][o][l]:this.metadata[i][o][l]=this.metadata[i][o][l].concat(e.metadata[i][o][l])}}}},e.MatchData.prototype.add=function(e,t,r){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=r);if(!(t in this.metadata[e]))return void(this.metadata[e][t]=r);for(var i=Object.keys(r),n=0;n<i.length;n++){var s=i[n];s in this.metadata[e][t]?this.metadata[e][t][s]=this.metadata[e][t][s].concat(r[s]):this.metadata[e][t][s]=r[s]}},e.Query=function(e){this.clauses=[],this.allFields=e},e.Query.wildcard=new String("*"),e.Query.wildcard.NONE=0,e.Query.wildcard.LEADING=1,e.Query.wildcard.TRAILING=2,e.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},e.Query.prototype.clause=function(t){return"fields"in t||(t.fields=this.allFields),"boost"in t||(t.boost=1),"usePipeline"in t||(t.usePipeline=!0),"wildcard"in t||(t.wildcard=e.Query.wildcard.NONE),t.wildcard&e.Query.wildcard.LEADING&&t.term.charAt(0)!=e.Query.wildcard&&(t.term="*"+t.term),t.wildcard&e.Query.wildcard.TRAILING&&t.term.slice(-1)!=e.Query.wildcard&&(t.term=""+t.term+"*"),"presence"in t||(t.presence=e.Query.presence.OPTIONAL),this.clauses.push(t),this},e.Query.prototype.isNegated=function(){for(var t=0;t<this.clauses.length;t++)if(this.clauses[t].presence!=e.Query.presence.PROHIBITED)return!1;return!0},e.Query.prototype.term=function(t,r){if(Array.isArray(t))return t.forEach(function(t){this.term(t,e.utils.clone(r))},this),this;var i=r||{};return i.term=t.toString(),this.clause(i),this},e.QueryParseError=function(e,t,r){this.name="QueryParseError",this.message=e,this.start=t,this.end=r},e.QueryParseError.prototype=new Error,e.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},e.QueryLexer.prototype.run=function(){for(var t=e.QueryLexer.lexText;t;)t=t(this)},e.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,r=this.pos,i=0;i<this.escapeCharPositions.length;i++)r=this.escapeCharPositions[i],e.push(this.str.slice(t,r)),t=r+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},e.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},e.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},e.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return e.QueryLexer.EOS;var t=this.str.charAt(this.pos);return this.pos+=1,t},e.QueryLexer.prototype.width=function(){return this.pos-this.start},e.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},e.QueryLexer.prototype.backup=function(){this.pos-=1},e.QueryLexer.prototype.acceptDigitRun=function(){var t,r;do t=this.next(),r=t.charCodeAt(0);while(r>47&&r<58);t!=e.QueryLexer.EOS&&this.backup()},e.QueryLexer.prototype.more=function(){return this.pos<this.length},e.QueryLexer.EOS="EOS",e.QueryLexer.FIELD="FIELD",e.QueryLexer.TERM="TERM",e.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",e.QueryLexer.BOOST="BOOST",e.QueryLexer.PRESENCE="PRESENCE",e.QueryLexer.lexField=function(t){return t.backup(),t.emit(e.QueryLexer.FIELD),t.ignore(),e.QueryLexer.lexText},e.QueryLexer.lexTerm=function(t){if(t.width()>1&&(t.backup(),t.emit(e.QueryLexer.TERM)),t.ignore(),t.more())return e.QueryLexer.lexText},e.QueryLexer.lexEditDistance=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(e.QueryLexer.EDIT_DISTANCE),e.QueryLexer.lexText},e.QueryLexer.lexBoost=function(t){return t.ignore(),t.acceptDigitRun(),t.emit(e.QueryLexer.BOOST),e.QueryLexer.lexText},e.QueryLexer.lexEOS=function(t){t.width()>0&&t.emit(e.QueryLexer.TERM)},e.QueryLexer.termSeparator=e.tokenizer.separator,e.QueryLexer.lexText=function(t){for(;;){var r=t.next();if(r==e.QueryLexer.EOS)return e.QueryLexer.lexEOS;if(92!=r.charCodeAt(0)){if(":"==r)return e.QueryLexer.lexField;if("~"==r)return t.backup(),t.width()>0&&t.emit(e.QueryLexer.TERM),e.QueryLexer.lexEditDistance;if("^"==r)return t.backup(),t.width()>0&&t.emit(e.QueryLexer.TERM),e.QueryLexer.lexBoost;if("+"==r&&1===t.width())return t.emit(e.QueryLexer.PRESENCE),e.QueryLexer.lexText;if("-"==r&&1===t.width())return t.emit(e.QueryLexer.PRESENCE),e.QueryLexer.lexText;if(r.match(e.QueryLexer.termSeparator))return e.QueryLexer.lexTerm}else t.escapeCharacter()}},e.QueryParser=function(t,r){this.lexer=new e.QueryLexer(t),this.query=r,this.currentClause={},this.lexemeIdx=0},e.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var t=e.QueryParser.parseClause;t;)t=t(this);return this.query},e.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},e.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},e.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},e.QueryParser.parseClause=function(t){var r=t.peekLexeme();if(void 0!=r)switch(r.type){case e.QueryLexer.PRESENCE:return e.QueryParser.parsePresence;case e.QueryLexer.FIELD:return e.QueryParser.parseField;case e.QueryLexer.TERM:return e.QueryParser.parseTerm;default:var i="expected either a field or a term, found "+r.type;throw r.str.length>=1&&(i+=" with value '"+r.str+"'"),new e.QueryParseError(i,r.start,r.end)}},e.QueryParser.parsePresence=function(t){var r=t.consumeLexeme();if(void 0!=r){switch(r.str){case"-":t.currentClause.presence=e.Query.presence.PROHIBITED;break;case"+":t.currentClause.presence=e.Query.presence.REQUIRED;break;default:var i="unrecognised presence operator'"+r.str+"'";throw new e.QueryParseError(i,r.start,r.end)}var n=t.peekLexeme();if(void 0==n){var i="expecting term or field, found nothing";throw new e.QueryParseError(i,r.start,r.end)}switch(n.type){case e.QueryLexer.FIELD:return e.QueryParser.parseField;case e.QueryLexer.TERM:return e.QueryParser.parseTerm;default:var i="expecting term or field, found '"+n.type+"'";throw new e.QueryParseError(i,n.start,n.end)}}},e.QueryParser.parseField=function(t){var r=t.consumeLexeme();if(void 0!=r){if(t.query.allFields.indexOf(r.str)==-1){var i=t.query.allFields.map(function(e){return"'"+e+"'"}).join(", "),n="unrecognised field '"+r.str+"', possible fields: "+i;throw new e.QueryParseError(n,r.start,r.end)}t.currentClause.fields=[r.str];var s=t.peekLexeme();if(void 0==s){var n="expecting term, found nothing";throw new e.QueryParseError(n,r.start,r.end)}switch(s.type){case e.QueryLexer.TERM:return e.QueryParser.parseTerm;default:var n="expecting term, found '"+s.type+"'";throw new e.QueryParseError(n,s.start,s.end)}}},e.QueryParser.parseTerm=function(t){var r=t.consumeLexeme();if(void 0!=r){t.currentClause.term=r.str.toLowerCase(),r.str.indexOf("*")!=-1&&(t.currentClause.usePipeline=!1);var i=t.peekLexeme();if(void 0==i)return void t.nextClause();switch(i.type){case e.QueryLexer.TERM:return t.nextClause(),e.QueryParser.parseTerm;case e.QueryLexer.FIELD:return t.nextClause(),e.QueryParser.parseField;case e.QueryLexer.EDIT_DISTANCE:return e.QueryParser.parseEditDistance;case e.QueryLexer.BOOST:return e.QueryParser.parseBoost;case e.QueryLexer.PRESENCE:return t.nextClause(),e.QueryParser.parsePresence;default:var n="Unexpected lexeme type '"+i.type+"'";throw new e.QueryParseError(n,i.start,i.end)}}},e.QueryParser.parseEditDistance=function(t){var r=t.consumeLexeme();if(void 0!=r){var i=parseInt(r.str,10);if(isNaN(i)){var n="edit distance must be numeric";throw new e.QueryParseError(n,r.start,r.end)}t.currentClause.editDistance=i;var s=t.peekLexeme();if(void 0==s)return void t.nextClause();switch(s.type){case e.QueryLexer.TERM:return t.nextClause(),e.QueryParser.parseTerm;case e.QueryLexer.FIELD:return t.nextClause(),e.QueryParser.parseField;case e.QueryLexer.EDIT_DISTANCE:return e.QueryParser.parseEditDistance;case e.QueryLexer.BOOST:return e.QueryParser.parseBoost;case e.QueryLexer.PRESENCE:return t.nextClause(),e.QueryParser.parsePresence;default:var n="Unexpected lexeme type '"+s.type+"'";throw new e.QueryParseError(n,s.start,s.end)}}},e.QueryParser.parseBoost=function(t){var r=t.consumeLexeme();if(void 0!=r){var i=parseInt(r.str,10);if(isNaN(i)){var n="boost must be numeric";throw new e.QueryParseError(n,r.start,r.end)}t.currentClause.boost=i;var s=t.peekLexeme();if(void 0==s)return void t.nextClause();switch(s.type){case e.QueryLexer.TERM:return t.nextClause(),e.QueryParser.parseTerm;case e.QueryLexer.FIELD:return t.nextClause(),e.QueryParser.parseField;case e.QueryLexer.EDIT_DISTANCE:return e.QueryParser.parseEditDistance;case e.QueryLexer.BOOST:return e.QueryParser.parseBoost;case e.QueryLexer.PRESENCE:return t.nextClause(),e.QueryParser.parsePresence;default:var n="Unexpected lexeme type '"+s.type+"'";throw new e.QueryParseError(n,s.start,s.end)}}},function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.lunr=t()}(this,function(){return e})}();
@@ -0,0 +1,214 @@
1
+ ---
2
+ ---
3
+ (function () {
4
+ var main = document.getElementsByTagName('main')[0]
5
+ var tod = document.getElementsByClassName('table-of-directories')[0]
6
+ var backButton = document.getElementsByClassName('back-to-documents')[0]
7
+ var docHeader = document.getElementsByTagName('header')[0]
8
+ var siteHeader = document.getElementsByClassName('site-header')[0]
9
+ var documentTitle = document.getElementById('document-title')
10
+ var documentSubtitle = document.getElementById('document-subtitle')
11
+ var navigation = document.getElementsByClassName('navigation')[0]
12
+ var searchFilter = document.getElementsByClassName('search-filter')[0]
13
+ var searchBoxElement = document.getElementById('search-box')
14
+ var indexDiv = document.getElementById('index-div')
15
+
16
+ var preloadPages = '{{ site.preload_pages | default: true }}' === 'true'
17
+
18
+ // If subfolder was accessed directory via url, load the subfolder's pages
19
+ if (documentTitle && documentTitle.innerText.trim() && preloadPages) {
20
+ loadDocumentContent(documentTitle.innerText, 1)
21
+ }
22
+
23
+ // Directory navigation
24
+ var allDirectories = document.querySelectorAll('a.tod-container')
25
+ allDirectories.forEach(function (directory) {
26
+ directory.addEventListener('click', function (event) {
27
+ event.stopPropagation()
28
+ event.preventDefault()
29
+ var target = event.target;
30
+ while (target !== this) {
31
+ // Goes to parent node if child element is clicked
32
+ target = target.parentNode;
33
+ }
34
+ // this tocId is basically the directory path
35
+ // e.g. /Document%20One/ with spaces replaced with underscores
36
+ var tocId = target.id.replace(/^dir_/, 'toc_')
37
+ if (showToc(tocId)) {
38
+ // TODO: May break if user changes the html
39
+ // Loads on document click if it hasnt loaded yet
40
+ var directoryTitle = target.innerText.trim()
41
+ loadDocumentContent(directoryTitle, 1)
42
+ }
43
+ }, true)
44
+
45
+ /*
46
+ Uncomment this to preload all pages in the background
47
+ -----------------------------------------------------
48
+ */
49
+ // Load pages in background based on directory order
50
+ // var directoryTitle = directory.innerText.trim()
51
+ // loadDocumentContent(directoryTitle, 0)
52
+ })
53
+
54
+ // Returns whether corresponding toc is found and displays it
55
+ function showToc(tocId) {
56
+ var correspondingToc = document.getElementById(tocId)
57
+ if (correspondingToc) {
58
+ document.querySelectorAll('.contents').forEach(function (toc) {
59
+ toc.hidden = true
60
+ })
61
+ correspondingToc.hidden = false
62
+ if (tod) tod.classList.add('hidden')
63
+ return true
64
+ }
65
+ return false
66
+ }
67
+
68
+ if (backButton) {
69
+ // Reminder: If there is only one document, backButton is hidden
70
+ backButton.addEventListener('click', function () {
71
+ tod.classList.remove('hidden')
72
+ })
73
+ }
74
+
75
+ // Nav bar expansion and selection
76
+ function setSelectedAnchor() {
77
+ var path = window.location.pathname
78
+ var hash = window.location.hash
79
+
80
+ // Make the nav - link pointing to this path selected
81
+ var selectedBranches = document.querySelectorAll('li.nav-branch.expanded')
82
+ for (var i = 0; i < selectedBranches.length; i++) {
83
+ selectedBranches[i].classList.remove('expanded')
84
+ }
85
+ var selectedAnchors = document.querySelectorAll('a.nav-link.selected')
86
+ for (var i = 0; i < selectedAnchors.length; i++) {
87
+ selectedAnchors[i].classList.remove('selected')
88
+ }
89
+
90
+ selectedAnchors = document.querySelectorAll('a.nav-link[href$="' + path + '"]')
91
+ if (selectedAnchors.length > 0) {
92
+ let parentLinkNode = selectedAnchors[0].parentNode
93
+ parentLinkNode.classList.add('expanded')
94
+ // Checks if there are sublinks (contains <a> and <ul> elements)
95
+ if (parentLinkNode.children.length === 1) {
96
+ // Closes menu if there are no sublinks
97
+ window.dispatchEvent(new Event('link-click'))
98
+ }
99
+ }
100
+ if (hash.length > 0) {
101
+ selectedAnchors = document.querySelectorAll('a.nav-link[href$="' + path + hash + '"]')
102
+ if (selectedAnchors.length > 0) {
103
+ selectedAnchors.forEach(function (anchor) {
104
+ anchor.classList.add('selected')
105
+ })
106
+ }
107
+ }
108
+ }
109
+
110
+ // HTML5 History
111
+ // =============================================================================
112
+ // Setup HTML 5 history for single page goodness
113
+
114
+ document.body.addEventListener('click', function (event) {
115
+ // Check if its within an anchor tag any any point
116
+ // Traverse up its click tree and see if it affects any of them
117
+ // If it does not find anything it just terminates as a null
118
+ var anchor = event.target
119
+ while (anchor && anchor.tagName !== 'A') {
120
+ anchor = anchor.parentNode
121
+ }
122
+ if (anchor && (anchor.host === '' || anchor.host === window.location.host) && anchor.classList.contains('nav-link') && !anchor.hasAttribute('download')) {
123
+ // Prevent page load
124
+ event.preventDefault()
125
+ event.stopPropagation()
126
+ if (anchor.hash.length > 0) {
127
+ window.location = anchor.hash
128
+ } else {
129
+ window.location = '#'
130
+ }
131
+
132
+ // This does not trigger hashchange for IE but is needed to replace the url
133
+ history.pushState(null, null, anchor.href)
134
+ }
135
+ }, true)
136
+
137
+ // Event when path changes
138
+ // =============================================================================
139
+ function onHashChange(firstLoad) {
140
+ var path = window.location.pathname
141
+
142
+ var page = pageIndex[path]
143
+ // Only reflow the main content if necessary
144
+ if (!page) {
145
+ return
146
+ }
147
+ showToc(page.tocId)
148
+ setSelectedAnchor()
149
+ if (firstLoad) {
150
+ return
151
+ }
152
+
153
+ // Send GA page view
154
+ if (window.ga) {
155
+ window.ga('send', 'pageview', window.location.pathname);
156
+ }
157
+
158
+ loadPageContent(page, 2).then(function (pageContent) {
159
+ /*
160
+ * Search filter disabled, uncomment to enable
161
+ */
162
+ // setSearchFilter(page)
163
+ // Don't compare iframes
164
+ if (main.innerHTML.trim().replace(/\<iframe.*\<\/iframe\>/g, '') !== pageContent.trim().replace(/\<iframe.*\<\/iframe\>/g, '')) {
165
+ main.innerHTML = pageContent
166
+ document.title = page.title
167
+ documentTitle.innerText = page.documentInfo[0] // document title
168
+ documentSubtitle.innerText = page.documentInfo[1] // document subtitle
169
+ if (indexDiv) {
170
+ indexDiv.classList.remove('index')
171
+ }
172
+ }
173
+ scrollAnchorIntoView()
174
+
175
+ // Hide menu if sub link clicked or clicking on search results
176
+ if (window.location.hash.replace('#', '').length > 0 || navigation.classList.contains('hidden')) {
177
+ window.dispatchEvent(new Event('link-click'))
178
+ }
179
+ highlightBody()
180
+ })
181
+ }
182
+
183
+ function scrollAnchorIntoView() {
184
+ if (window.location.hash) {
185
+ // Dont use querySelector because it needs special handling for ids that start with numbers
186
+ // ref: https://stackoverflow.com/questions/20306204/using-queryselector-with-ids-that-are-numbers
187
+ var anchorEl = document.getElementById(window.location.hash.substring(1))
188
+ if (anchorEl) {
189
+ // When page is rendered by assigning to innerHTML, it does not scroll to anchor.
190
+ // scrollIntoView(true) aligns anchor to top of page
191
+ anchorEl.scrollIntoView(true)
192
+ }
193
+ }
194
+ }
195
+
196
+ // Search filter disabled, not in use
197
+ function setSearchFilter(page) {
198
+ if (tod) {
199
+ searchFilter.innerText = page.documentInfo[0] // document title
200
+ searchFilter.classList.remove('hidden')
201
+ searchBoxElement.placeholder = 'Search within doc'
202
+ }
203
+ }
204
+
205
+ // Dont use onpopstate as it is not supported in IE
206
+ window.addEventListener('hashchange', function () {
207
+ onHashChange()
208
+ })
209
+
210
+ // Scroll to view onload
211
+ window.onload = function () {
212
+ onHashChange(true)
213
+ }
214
+ })()