hfbcast 1.0.2 → 1.0.8-lib7

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 (43) hide show
  1. package/README.md +30 -30
  2. package/assets/database.sqlite.gz +0 -0
  3. package/commithash.json +1 -0
  4. package/dist/hfbcast.min.js +2 -0
  5. package/dist/hfbcast.min.js.map +1 -0
  6. package/dist/index.html +1 -13
  7. package/dist/index.min.js +2 -0
  8. package/dist/index.min.js.map +1 -0
  9. package/doc/README.md +12 -0
  10. package/doc/documentation.adoc +23 -0
  11. package/doc/images/figure1.png +0 -0
  12. package/doc/images/figure2.png +0 -0
  13. package/doc/styles/asciidoctor-default.css +393 -0
  14. package/doc/styles/coderay-asciidoctor.css +87 -0
  15. package/doc/styles/stylesheet.css +6 -0
  16. package/index.js +80 -0
  17. package/package.json +71 -28
  18. package/server.js +122 -0
  19. package/src/index.html +14 -0
  20. package/src/index.js +48 -84
  21. package/src/lib.js +133 -0
  22. package/test/runTests.js +22 -0
  23. package/.vscode/tasks.json +0 -28
  24. package/dist/demo.js +0 -206
  25. package/dist/rfdfhfbroadcast.js +0 -195
  26. package/release +0 -1
  27. package/scripts/build.js +0 -19
  28. package/scripts/cicd/jobs.sh +0 -14
  29. package/scripts/local/publish.bat +0 -11
  30. package/sources/shortwave_AOKI.html +0 -55006
  31. package/sources/shortwave_EIBI.html +0 -97450
  32. package/sources/shortwave_HFCC.html +0 -33631
  33. package/sqlite/build.ts +0 -127
  34. package/sqlite/data-source.ts +0 -17
  35. package/sqlite/entity/Broadcast.ts +0 -38
  36. package/sqlite/entity/Site.ts +0 -26
  37. package/sqlite/package-lock.json +0 -2303
  38. package/sqlite/package.json +0 -17
  39. package/src/demo.html +0 -13
  40. package/src/demo.js +0 -6
  41. package/src/index.d.ts +0 -33
  42. package/tsconfig.json +0 -15
  43. package/webpack.config.js +0 -28
package/doc/README.md ADDED
@@ -0,0 +1,12 @@
1
+ To compile
2
+
3
+ create HTML
4
+ ```
5
+ > docker run -v /path/to/this/folder:/documents asciidoctor/docker-asciidoctor asciidoctor AsciidocFile.adoc
6
+ ```
7
+
8
+ create word docx in two steps
9
+ ```
10
+ > docker run -v /path/top/this/folder:/documents asciidoctor/docker-asciidoctor asciidoctor -b docbook AsciidocFile.adoc
11
+ > docker run -v /path/top/this/folder:/data pandoc/latex -r docbook -t docx -o AsciidocFile.docx AsciidocFile.xml
12
+ ```
@@ -0,0 +1,23 @@
1
+ = *iqplayer*
2
+ Author Name
3
+ LPR1, {docdate}
4
+ :stem: latexmath
5
+ :eqnums:
6
+ :sectnums:
7
+ :xrefstyle: short
8
+ :figure-caption: Figure
9
+ :stylesheet: asciidoctor-default.css
10
+ :stylesdir: styles
11
+
12
+ [[sec:chapter1]]
13
+ == Chapter 1
14
+
15
+ [[sec:section1]]
16
+ === Section
17
+
18
+ [[sec:section2]]
19
+ === Section
20
+
21
+ [[sec:chapter2]]
22
+ == Chapter 2
23
+ ...
Binary file
Binary file
@@ -0,0 +1,393 @@
1
+ /*! Asciidoctor default stylesheet | MIT License | https://asciidoctor.org */
2
+ /* Uncomment the following line when using as a custom stylesheet */
3
+ /* @import "https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700"; */
4
+ *,::before,::after{box-sizing:border-box}
5
+ html{font-size:100%;-webkit-text-size-adjust:100%}
6
+ body{background:#fff;color:rgba(0,0,0,.8);padding:0;margin:0;font-family:"Noto Serif","DejaVu Serif",serif;font-size:inherit;line-height:1;position:relative;cursor:auto;-moz-tab-size:4;-o-tab-size:4;tab-size:4;word-wrap:anywhere;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}
7
+ dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,p,blockquote,th,td{margin:0;padding:0}
8
+ a{background:none;color:#2156a5;text-decoration:underline;line-height:inherit}
9
+ a:active,a:hover{cursor:pointer;outline:0}
10
+ a:focus{outline:thin dotted}
11
+ a:hover,a:focus{color:#1d4b8f}
12
+ abbr{font-size:.9em}
13
+ abbr[title]{cursor:help;border-bottom:1px dotted #dddddf;text-decoration:none}
14
+ b,strong{font-weight:bold;line-height:inherit}
15
+ strong strong{font-weight:400}
16
+ code,kbd,pre{font-family:"Droid Sans Mono","DejaVu Sans Mono",monospace;font-size:1em}
17
+ code{font-weight:400;color:rgba(0,0,0,.9)}
18
+ pre{color:rgba(0,0,0,.9);line-height:1.45;text-rendering:optimizeSpeed;white-space:pre-wrap}
19
+ dfn{font-style:italic}
20
+ em,i{font-style:italic;line-height:inherit}
21
+ em em{font-style:normal}
22
+ hr{border:solid #dddddf;border-width:1px 0 0;clear:both;height:0;margin:1.25em 0 1.1875em}
23
+ mark{background:#ff0;color:#000}
24
+ p{line-height:1.6;margin-bottom:1.25rem;text-rendering:optimizeLegibility}
25
+ q{quotes:"\201C" "\201D" "\2018" "\2019"}
26
+ small{font-size:60%;line-height:inherit}
27
+ sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}
28
+ sup{top:-.5em}
29
+ sub{bottom:-.25em}
30
+ img,object[type^="image/"],svg{display:inline-block;height:auto;max-width:100%;vertical-align:middle}
31
+ img{border:0;-ms-interpolation-mode:bicubic}
32
+ object{max-width:100%}
33
+ svg:not(:root){overflow:hidden}
34
+ figure{margin:0}
35
+ audio,video{display:inline-block}
36
+ audio:not([controls]){display:none;height:0}
37
+ .left{float:left!important}
38
+ .right{float:right!important}
39
+ .text-left,div.text-left>*{text-align:left!important}
40
+ .text-right,div.text-right>*{text-align:right!important}
41
+ .text-center,div.text-center>*{text-align:center!important}
42
+ .text-justify,div.text-justify>*{text-align:justify!important}
43
+ .hide{display:none}
44
+ .subheader,.admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{line-height:1.45;color:#7a2518;font-weight:400;margin-top:0;margin-bottom:.25em}
45
+ p aside{font-size:.875em;line-height:1.35;font-style:italic}
46
+ h1,h2,h3,#toctitle,.sidebarblock>.content>.title,h4,h5,h6{font-family:"Open Sans","DejaVu Sans",sans-serif;font-weight:300;font-style:normal;color:#ba3925;text-rendering:optimizeLegibility;margin-top:1em;margin-bottom:.5em;line-height:1.2;word-spacing:-.05em}
47
+ h1 small,h2 small,h3 small,#toctitle small,.sidebarblock>.content>.title small,h4 small,h5 small,h6 small{color:#e99b8f;line-height:0}
48
+ h1{font-size:2.125em}
49
+ h2{font-size:1.6875em}
50
+ h3,#toctitle,.sidebarblock>.content>.title{font-size:1.375em}
51
+ h4,h5{font-size:1.125em}
52
+ h6{font-size:1em}
53
+ ul,ol,dl{line-height:1.6;margin-bottom:1.25em;list-style-position:outside;font-family:inherit}
54
+ ul,ol{margin-left:1.5em}
55
+ ul li ul,ul li ol{margin-left:1.25em;margin-bottom:0}
56
+ ul.circle{list-style-type:circle}
57
+ ul.disc{list-style-type:disc}
58
+ ul.square{list-style-type:square}
59
+ ul.circle ul:not([class]),ul.disc ul:not([class]),ul.square ul:not([class]){list-style:inherit}
60
+ ol li ul,ol li ol{margin-left:1.25em;margin-bottom:0}
61
+ dl dt{margin-bottom:.3125em;font-weight:bold}
62
+ dl dd{margin-bottom:1.25em;margin-left:1.125em}
63
+ blockquote{margin:0 0 1.25em;padding:.5625em 1.25em 0 1.1875em;border-left:1px solid #ddd}
64
+ blockquote,blockquote p{line-height:1.6;color:rgba(0,0,0,.85)}
65
+ @media screen and (min-width:768px){h1{font-size:2.75em}
66
+ h2{font-size:2.3125em}
67
+ h3,#toctitle,.sidebarblock>.content>.title{font-size:1.6875em}
68
+ h4{font-size:1.4375em}}
69
+ table{background:#fff;border:1px solid #dedede;border-collapse:collapse;border-spacing:0;margin-bottom:1.25em;word-wrap:normal}
70
+ table thead,table tfoot{background:#f7f8f7}
71
+ table thead tr th,table thead tr td,table tfoot tr th,table tfoot tr td{padding:.5em .625em .625em;font-size:inherit;color:rgba(0,0,0,.8);text-align:left}
72
+ table tr th,table tr td{padding:.5625em .625em;font-size:inherit;color:rgba(0,0,0,.8)}
73
+ table tr.even,table tr.alt{background:#f8f8f7}
74
+ table thead tr th,table tfoot tr th,table tbody tr td,table tr td,table tfoot tr td{line-height:1.6}
75
+ h1 strong,h2 strong,h3 strong,#toctitle strong,.sidebarblock>.content>.title strong,h4 strong,h5 strong,h6 strong{font-weight:400}
76
+ .center{margin-left:auto;margin-right:auto}
77
+ .stretch{width:100%}
78
+ .clearfix::before,.clearfix::after,.float-group::before,.float-group::after{content:"";display:table}
79
+ .clearfix::after,.float-group::after{clear:both}
80
+ :not(pre).nobreak{word-wrap:normal}
81
+ :not(pre).nowrap{white-space:nowrap}
82
+ :not(pre).pre-wrap{white-space:pre-wrap}
83
+ :not(pre):not([class^=L])>code{font-size:.9375em;font-style:normal!important;letter-spacing:0;padding:.1em .5ex;word-spacing:-.15em;background:#f7f7f8;border-radius:4px;line-height:1.45;text-rendering:optimizeSpeed}
84
+ pre code,pre pre{color:inherit;font-size:inherit;line-height:inherit}
85
+ pre>code{display:block}
86
+ pre.nowrap,pre.nowrap pre{white-space:pre;word-wrap:normal}
87
+ .keyseq{color:rgba(51,51,51,.8)}
88
+ kbd{display:inline-block;color:rgba(0,0,0,.8);font-size:.65em;line-height:1.45;background:#f7f7f7;border:1px solid #ccc;border-radius:3px;box-shadow:0 1px 0 rgba(0,0,0,.2),inset 0 0 0 .1em #fff;margin:0 .15em;padding:.2em .5em;vertical-align:middle;position:relative;top:-.1em;white-space:nowrap}
89
+ .keyseq kbd:first-child{margin-left:0}
90
+ .keyseq kbd:last-child{margin-right:0}
91
+ .menuseq,.menuref{color:#000}
92
+ .menuseq b:not(.caret),.menuref{font-weight:inherit}
93
+ .menuseq{word-spacing:-.02em}
94
+ .menuseq b.caret{font-size:1.25em;line-height:.8}
95
+ .menuseq i.caret{font-weight:bold;text-align:center;width:.45em}
96
+ b.button::before,b.button::after{position:relative;top:-1px;font-weight:400}
97
+ b.button::before{content:"[";padding:0 3px 0 2px}
98
+ b.button::after{content:"]";padding:0 2px 0 3px}
99
+ p a>code:hover{color:rgba(0,0,0,.9)}
100
+ body>div[id]{margin:0 auto;max-width:62.5em;position:relative;padding-left:.9375em;padding-right:.9375em;width:100%}
101
+ body>div[id]::before,body>div[id]::after,#content #footnotes::before{content:"";display:table;clear:both}
102
+ #content{margin-top:1.25em;margin-bottom:.625em}
103
+ #content::before{content:none}
104
+ #header>h1:first-child{color:rgba(0,0,0,.85);margin-top:2.25rem;margin-bottom:0}
105
+ #header>h1:first-child+#toc{margin-top:8px;border-top:1px solid #dddddf}
106
+ #header>h1:only-child{border-bottom:1px solid #dddddf;padding-bottom:8px}
107
+ #header .details{border-bottom:1px solid #dddddf;line-height:1.45;padding-top:.25em;padding-bottom:.25em;padding-left:.25em;color:rgba(0,0,0,.6);display:flex;flex-flow:row wrap}
108
+ #header .details span:first-child{margin-left:-.125em}
109
+ #header .details span.email a{color:rgba(0,0,0,.85)}
110
+ #header .details br{display:none}
111
+ #header .details br+span::before{content:"\00a0\2013\00a0"}
112
+ #header .details br+span.author::before{content:"\00a0\22c5\00a0";color:rgba(0,0,0,.85)}
113
+ #header .details br+span#revremark::before{content:"\00a0|\00a0"}
114
+ #header #revnumber{text-transform:capitalize}
115
+ #header #revnumber::after{content:"\00a0"}
116
+ #content>h1:first-child:not([class]){color:rgba(0,0,0,.85);border-bottom:1px solid #dddddf;padding-bottom:8px;margin-top:0;padding-top:1rem;margin-bottom:1.25rem}
117
+ #toc{border-bottom:1px solid #e7e7e9;padding-bottom:.5em}
118
+ #toc>ul{margin-left:.125em}
119
+ #toc ul.sectlevel0>li>a{font-style:italic}
120
+ #toc ul.sectlevel0 ul.sectlevel1{margin:.5em 0}
121
+ #toc ul{font-family:"Open Sans","DejaVu Sans",sans-serif;list-style-type:none}
122
+ #toc li{line-height:1.3334;margin-top:.3334em}
123
+ #toc a{text-decoration:none}
124
+ #toc a:active{text-decoration:underline}
125
+ #toctitle{color:#7a2518;font-size:1.2em}
126
+ @media screen and (min-width:768px){#toctitle{font-size:1.375em}
127
+ body.toc2{padding-left:15em;padding-right:0}
128
+ body.toc2 #header>h1:nth-last-child(2){border-bottom:1px solid #dddddf;padding-bottom:8px}
129
+ #toc.toc2{margin-top:0!important;background:#f8f8f7;position:fixed;width:15em;left:0;top:0;border-right:1px solid #e7e7e9;border-top-width:0!important;border-bottom-width:0!important;z-index:1000;padding:1.25em 1em;height:100%;overflow:auto}
130
+ #toc.toc2 #toctitle{margin-top:0;margin-bottom:.8rem;font-size:1.2em}
131
+ #toc.toc2>ul{font-size:.9em;margin-bottom:0}
132
+ #toc.toc2 ul ul{margin-left:0;padding-left:1em}
133
+ #toc.toc2 ul.sectlevel0 ul.sectlevel1{padding-left:0;margin-top:.5em;margin-bottom:.5em}
134
+ body.toc2.toc-right{padding-left:0;padding-right:15em}
135
+ body.toc2.toc-right #toc.toc2{border-right-width:0;border-left:1px solid #e7e7e9;left:auto;right:0}}
136
+ @media screen and (min-width:1280px){body.toc2{padding-left:20em;padding-right:0}
137
+ #toc.toc2{width:20em}
138
+ #toc.toc2 #toctitle{font-size:1.375em}
139
+ #toc.toc2>ul{font-size:.95em}
140
+ #toc.toc2 ul ul{padding-left:1.25em}
141
+ body.toc2.toc-right{padding-left:0;padding-right:20em}}
142
+ #content #toc{border:1px solid #e0e0dc;margin-bottom:1.25em;padding:1.25em;background:#f8f8f7;border-radius:4px}
143
+ #footer{max-width:none;background:rgba(0,0,0,.8);padding:1.25em}
144
+ #footer-text{color:hsla(0,0%,100%,.8);line-height:1.44}
145
+ .sect1{padding-bottom:.625em}
146
+ @media screen and (min-width:768px){#content{margin-bottom:1.25em}
147
+ .sect1{padding-bottom:1.25em}}
148
+ .sect1:last-child{padding-bottom:0}
149
+ .sect1+.sect1{border-top:1px solid #e7e7e9}
150
+ #content h1>a.anchor,h2>a.anchor,h3>a.anchor,#toctitle>a.anchor,.sidebarblock>.content>.title>a.anchor,h4>a.anchor,h5>a.anchor,h6>a.anchor{position:absolute;z-index:1001;width:1.5ex;margin-left:-1.5ex;display:block;text-decoration:none!important;visibility:hidden;text-align:center;font-weight:400}
151
+ #content h1>a.anchor::before,h2>a.anchor::before,h3>a.anchor::before,#toctitle>a.anchor::before,.sidebarblock>.content>.title>a.anchor::before,h4>a.anchor::before,h5>a.anchor::before,h6>a.anchor::before{content:"\00A7";font-size:.85em;display:block;padding-top:.1em}
152
+ #content h1:hover>a.anchor,#content h1>a.anchor:hover,h2:hover>a.anchor,h2>a.anchor:hover,h3:hover>a.anchor,#toctitle:hover>a.anchor,.sidebarblock>.content>.title:hover>a.anchor,h3>a.anchor:hover,#toctitle>a.anchor:hover,.sidebarblock>.content>.title>a.anchor:hover,h4:hover>a.anchor,h4>a.anchor:hover,h5:hover>a.anchor,h5>a.anchor:hover,h6:hover>a.anchor,h6>a.anchor:hover{visibility:visible}
153
+ #content h1>a.link,h2>a.link,h3>a.link,#toctitle>a.link,.sidebarblock>.content>.title>a.link,h4>a.link,h5>a.link,h6>a.link{color:#ba3925;text-decoration:none}
154
+ #content h1>a.link:hover,h2>a.link:hover,h3>a.link:hover,#toctitle>a.link:hover,.sidebarblock>.content>.title>a.link:hover,h4>a.link:hover,h5>a.link:hover,h6>a.link:hover{color:#a53221}
155
+ details,.audioblock,.imageblock,.literalblock,.listingblock,.stemblock,.videoblock{margin-bottom:1.25em}
156
+ details{margin-left:1.25rem}
157
+ details>summary{cursor:pointer;display:block;position:relative;line-height:1.6;margin-bottom:.625rem;outline:none;-webkit-tap-highlight-color:transparent}
158
+ details>summary::-webkit-details-marker{display:none}
159
+ details>summary::before{content:"";border:solid transparent;border-left:solid;border-width:.3em 0 .3em .5em;position:absolute;top:.5em;left:-1.25rem;transform:translateX(15%)}
160
+ details[open]>summary::before{border:solid transparent;border-top:solid;border-width:.5em .3em 0;transform:translateY(15%)}
161
+ details>summary::after{content:"";width:1.25rem;height:1em;position:absolute;top:.3em;left:-1.25rem}
162
+ .admonitionblock td.content>.title,.audioblock>.title,.exampleblock>.title,.imageblock>.title,.listingblock>.title,.literalblock>.title,.stemblock>.title,.openblock>.title,.paragraph>.title,.quoteblock>.title,table.tableblock>.title,.verseblock>.title,.videoblock>.title,.dlist>.title,.olist>.title,.ulist>.title,.qlist>.title,.hdlist>.title{text-rendering:optimizeLegibility;text-align:left;font-family:"Noto Serif","DejaVu Serif",serif;font-size:1rem;font-style:italic}
163
+ table.tableblock.fit-content>caption.title{white-space:nowrap;width:0}
164
+ .paragraph.lead>p,#preamble>.sectionbody>[class=paragraph]:first-of-type p{font-size:1.21875em;line-height:1.6;color:rgba(0,0,0,.85)}
165
+ .admonitionblock>table{border-collapse:separate;border:0;background:none;width:100%}
166
+ .admonitionblock>table td.icon{text-align:center;width:80px}
167
+ .admonitionblock>table td.icon img{max-width:none}
168
+ .admonitionblock>table td.icon .title{font-weight:bold;font-family:"Open Sans","DejaVu Sans",sans-serif;text-transform:uppercase}
169
+ .admonitionblock>table td.content{padding-left:1.125em;padding-right:1.25em;border-left:1px solid #dddddf;color:rgba(0,0,0,.6);word-wrap:anywhere}
170
+ .admonitionblock>table td.content>:last-child>:last-child{margin-bottom:0}
171
+ .exampleblock>.content{border:1px solid #e0e0dc;margin-bottom:1.25em;padding:1.25em;background:#fffef7;border-radius:4px;box-shadow:0 1px 4px #e0e0dc}
172
+ .sidebarblock{border:1px solid #dbdbd6;margin-bottom:1.25em;padding:1.25em;background:#f3f3f2;border-radius:4px}
173
+ .sidebarblock>.content>.title{color:#7a2518;margin-top:0;text-align:center}
174
+ #content #toc>:first-child,.exampleblock>.content>:first-child,.sidebarblock>.content>:first-child{margin-top:0}
175
+ #content #toc>:last-child,.exampleblock>.content>:last-child,.exampleblock>.content>:last-child>:last-child,.exampleblock>.content .olist>ol>li:last-child>:last-child,.exampleblock>.content .ulist>ul>li:last-child>:last-child,.exampleblock>.content .qlist>ol>li:last-child>:last-child,.sidebarblock>.content>:last-child,.sidebarblock>.content>:last-child>:last-child,.sidebarblock>.content .olist>ol>li:last-child>:last-child,.sidebarblock>.content .ulist>ul>li:last-child>:last-child,.sidebarblock>.content .qlist>ol>li:last-child>:last-child{margin-bottom:0}
176
+ .literalblock pre,.listingblock>.content>pre{border-radius:4px;overflow-x:auto;padding:1em;font-size:.8125em}
177
+ @media screen and (min-width:768px){.literalblock pre,.listingblock>.content>pre{font-size:.90625em}}
178
+ @media screen and (min-width:1280px){.literalblock pre,.listingblock>.content>pre{font-size:1em}}
179
+ .literalblock pre,.listingblock>.content>pre:not(.highlight),.listingblock>.content>pre[class=highlight],.listingblock>.content>pre[class^="highlight "]{background:#f7f7f8}
180
+ .literalblock.output pre{color:#f7f7f8;background:rgba(0,0,0,.9)}
181
+ .listingblock>.content{position:relative}
182
+ .listingblock code[data-lang]::before{display:none;content:attr(data-lang);position:absolute;font-size:.75em;top:.425rem;right:.5rem;line-height:1;text-transform:uppercase;color:inherit;opacity:.5}
183
+ .listingblock:hover code[data-lang]::before{display:block}
184
+ .listingblock.terminal pre .command::before{content:attr(data-prompt);padding-right:.5em;color:inherit;opacity:.5}
185
+ .listingblock.terminal pre .command:not([data-prompt])::before{content:"$"}
186
+ .listingblock pre.highlightjs{padding:0}
187
+ .listingblock pre.highlightjs>code{padding:1em;border-radius:4px}
188
+ .listingblock pre.prettyprint{border-width:0}
189
+ .prettyprint{background:#f7f7f8}
190
+ pre.prettyprint .linenums{line-height:1.45;margin-left:2em}
191
+ pre.prettyprint li{background:none;list-style-type:inherit;padding-left:0}
192
+ pre.prettyprint li code[data-lang]::before{opacity:1}
193
+ pre.prettyprint li:not(:first-child) code[data-lang]::before{display:none}
194
+ table.linenotable{border-collapse:separate;border:0;margin-bottom:0;background:none}
195
+ table.linenotable td[class]{color:inherit;vertical-align:top;padding:0;line-height:inherit;white-space:normal}
196
+ table.linenotable td.code{padding-left:.75em}
197
+ table.linenotable td.linenos{width:.01%}
198
+ table.linenotable td.linenos,pre.pygments .linenos,pre.rouge .linenos{border-right:1px solid;opacity:.35;padding-right:.5em;-webkit-user-select:none;-moz-user-select:none;user-select:none}
199
+ pre.pygments span.linenos,pre.rouge span.linenos{display:inline-block;margin-right:.75em}
200
+ .quoteblock{margin:0 1em 1.25em 1.5em;display:table}
201
+ .quoteblock:not(.excerpt)>.title{margin-left:-1.5em;margin-bottom:.75em}
202
+ .quoteblock blockquote,.quoteblock p{color:rgba(0,0,0,.85);font-size:1.15rem;line-height:1.75;word-spacing:.1em;letter-spacing:0;font-style:italic;text-align:justify}
203
+ .quoteblock blockquote{margin:0;padding:0;border:0}
204
+ .quoteblock blockquote::before{content:"\201c";float:left;font-size:2.75em;font-weight:bold;line-height:.6em;margin-left:-.6em;color:#7a2518;text-shadow:0 1px 2px rgba(0,0,0,.1)}
205
+ .quoteblock blockquote>.paragraph:last-child p{margin-bottom:0}
206
+ .quoteblock .attribution{margin-top:.75em;margin-right:.5ex;text-align:right}
207
+ .verseblock{margin:0 1em 1.25em}
208
+ .verseblock pre{font-family:"Open Sans","DejaVu Sans",sans-serif;font-size:1.15rem;color:rgba(0,0,0,.85);font-weight:300;text-rendering:optimizeLegibility}
209
+ .verseblock pre strong{font-weight:400}
210
+ .verseblock .attribution{margin-top:1.25rem;margin-left:.5ex}
211
+ .quoteblock .attribution,.verseblock .attribution{font-size:.9375em;line-height:1.45;font-style:italic}
212
+ .quoteblock .attribution br,.verseblock .attribution br{display:none}
213
+ .quoteblock .attribution cite,.verseblock .attribution cite{display:block;letter-spacing:-.025em;color:rgba(0,0,0,.6)}
214
+ .quoteblock.abstract blockquote::before,.quoteblock.excerpt blockquote::before,.quoteblock .quoteblock blockquote::before{display:none}
215
+ .quoteblock.abstract blockquote,.quoteblock.abstract p,.quoteblock.excerpt blockquote,.quoteblock.excerpt p,.quoteblock .quoteblock blockquote,.quoteblock .quoteblock p{line-height:1.6;word-spacing:0}
216
+ .quoteblock.abstract{margin:0 1em 1.25em;display:block}
217
+ .quoteblock.abstract>.title{margin:0 0 .375em;font-size:1.15em;text-align:center}
218
+ .quoteblock.excerpt>blockquote,.quoteblock .quoteblock{padding:0 0 .25em 1em;border-left:.25em solid #dddddf}
219
+ .quoteblock.excerpt,.quoteblock .quoteblock{margin-left:0}
220
+ .quoteblock.excerpt blockquote,.quoteblock.excerpt p,.quoteblock .quoteblock blockquote,.quoteblock .quoteblock p{color:inherit;font-size:1.0625rem}
221
+ .quoteblock.excerpt .attribution,.quoteblock .quoteblock .attribution{color:inherit;font-size:.85rem;text-align:left;margin-right:0}
222
+ p.tableblock:last-child{margin-bottom:0}
223
+ td.tableblock>.content{margin-bottom:1.25em;word-wrap:anywhere}
224
+ td.tableblock>.content>:last-child{margin-bottom:-1.25em}
225
+ table.tableblock,th.tableblock,td.tableblock{border:0 solid #dedede}
226
+ table.grid-all>*>tr>*{border-width:1px}
227
+ table.grid-cols>*>tr>*{border-width:0 1px}
228
+ table.grid-rows>*>tr>*{border-width:1px 0}
229
+ table.frame-all{border-width:1px}
230
+ table.frame-ends{border-width:1px 0}
231
+ table.frame-sides{border-width:0 1px}
232
+ table.frame-none>colgroup+*>:first-child>*,table.frame-sides>colgroup+*>:first-child>*{border-top-width:0}
233
+ table.frame-none>:last-child>:last-child>*,table.frame-sides>:last-child>:last-child>*{border-bottom-width:0}
234
+ table.frame-none>*>tr>:first-child,table.frame-ends>*>tr>:first-child{border-left-width:0}
235
+ table.frame-none>*>tr>:last-child,table.frame-ends>*>tr>:last-child{border-right-width:0}
236
+ table.stripes-all>*>tr,table.stripes-odd>*>tr:nth-of-type(odd),table.stripes-even>*>tr:nth-of-type(even),table.stripes-hover>*>tr:hover{background:#f8f8f7}
237
+ th.halign-left,td.halign-left{text-align:left}
238
+ th.halign-right,td.halign-right{text-align:right}
239
+ th.halign-center,td.halign-center{text-align:center}
240
+ th.valign-top,td.valign-top{vertical-align:top}
241
+ th.valign-bottom,td.valign-bottom{vertical-align:bottom}
242
+ th.valign-middle,td.valign-middle{vertical-align:middle}
243
+ table thead th,table tfoot th{font-weight:bold}
244
+ tbody tr th{background:#f7f8f7}
245
+ tbody tr th,tbody tr th p,tfoot tr th,tfoot tr th p{color:rgba(0,0,0,.8);font-weight:bold}
246
+ p.tableblock>code:only-child{background:none;padding:0}
247
+ p.tableblock{font-size:1em}
248
+ ol{margin-left:1.75em}
249
+ ul li ol{margin-left:1.5em}
250
+ dl dd:last-child,dl dd:last-child>:last-child{margin-bottom:0}
251
+ li p,ul dd,ol dd,.olist .olist,.ulist .ulist,.ulist .olist,.olist .ulist{margin-bottom:.625em}
252
+ ul.checklist,ul.none,ol.none,ul.no-bullet,ol.no-bullet,ol.unnumbered,ul.unstyled,ol.unstyled{list-style-type:none}
253
+ ul.no-bullet,ol.no-bullet,ol.unnumbered{margin-left:.625em}
254
+ ul.unstyled,ol.unstyled{margin-left:0}
255
+ li>p:empty:only-child::before{content:"";display:inline-block}
256
+ ul.checklist>li>p:first-child{margin-left:-1em}
257
+ ul.checklist>li>p:first-child>.fa-square-o:first-child,ul.checklist>li>p:first-child>.fa-check-square-o:first-child{width:1.25em;font-size:.8em;position:relative;bottom:.125em}
258
+ ul.checklist>li>p:first-child>input[type=checkbox]:first-child{font:inherit;margin:0 .25em 0 0;padding:0}
259
+ ul.inline{display:flex;flex-flow:row wrap;list-style:none;margin:0 0 .625em -1.25em}
260
+ ul.inline>li{margin-left:1.25em}
261
+ .unstyled dl dt{font-weight:400;font-style:normal}
262
+ ol.arabic{list-style-type:decimal}
263
+ ol.decimal{list-style-type:decimal-leading-zero}
264
+ ol.loweralpha{list-style-type:lower-alpha}
265
+ ol.upperalpha{list-style-type:upper-alpha}
266
+ ol.lowerroman{list-style-type:lower-roman}
267
+ ol.upperroman{list-style-type:upper-roman}
268
+ ol.lowergreek{list-style-type:lower-greek}
269
+ .hdlist>table,.colist>table{border:0;background:none}
270
+ .hdlist>table>tbody>tr,.colist>table>tbody>tr{background:none}
271
+ td.hdlist1,td.hdlist2{vertical-align:top;padding:0 .625em}
272
+ td.hdlist1{font-weight:bold;padding-bottom:1.25em}
273
+ td.hdlist2{word-wrap:anywhere}
274
+ .literalblock+.colist,.listingblock+.colist{margin-top:-.5em}
275
+ .colist td:not([class]):first-child{padding:.4em .75em 0;line-height:1;vertical-align:top}
276
+ .colist td:not([class]):first-child img{max-width:none}
277
+ .colist td:not([class]):last-child{padding:.25em 0}
278
+ .thumb,.th{line-height:0;display:inline-block;border:4px solid #fff;box-shadow:0 0 0 1px #ddd}
279
+ .imageblock.left{margin:.25em .625em 1.25em 0}
280
+ .imageblock.right{margin:.25em 0 1.25em .625em}
281
+ .imageblock>.title{margin-bottom:0}
282
+ .imageblock.thumb,.imageblock.th{border-width:6px}
283
+ .imageblock.thumb>.title,.imageblock.th>.title{padding:0 .125em}
284
+ .image.left,.image.right{margin-top:.25em;margin-bottom:.25em;display:inline-block;line-height:0}
285
+ .image.left{margin-right:.625em}
286
+ .image.right{margin-left:.625em}
287
+ a.image{text-decoration:none;display:inline-block}
288
+ a.image object{pointer-events:none}
289
+ sup.footnote,sup.footnoteref{font-size:.875em;position:static;vertical-align:super}
290
+ sup.footnote a,sup.footnoteref a{text-decoration:none}
291
+ sup.footnote a:active,sup.footnoteref a:active,#footnotes .footnote a:first-of-type:active{text-decoration:underline}
292
+ #footnotes{padding-top:.75em;padding-bottom:.75em;margin-bottom:.625em}
293
+ #footnotes hr{width:20%;min-width:6.25em;margin:-.25em 0 .75em;border-width:1px 0 0}
294
+ #footnotes .footnote{padding:0 .375em 0 .225em;line-height:1.3334;font-size:.875em;margin-left:1.2em;margin-bottom:.2em}
295
+ #footnotes .footnote a:first-of-type{font-weight:bold;text-decoration:none;margin-left:-1.05em}
296
+ #footnotes .footnote:last-of-type{margin-bottom:0}
297
+ #content #footnotes{margin-top:-.625em;margin-bottom:0;padding:.75em 0}
298
+ div.page-break{display:none}
299
+ div.unbreakable{-moz-column-break-inside:avoid;break-inside:avoid}
300
+ .big{font-size:larger}
301
+ .small{font-size:smaller}
302
+ .underline{text-decoration:underline}
303
+ .overline{text-decoration:overline}
304
+ .line-through{text-decoration:line-through}
305
+ .aqua{color:#00bfbf}
306
+ .aqua-background{background:#00fafa}
307
+ .black{color:#000}
308
+ .black-background{background:#000}
309
+ .blue{color:#0000bf}
310
+ .blue-background{background:#0000fa}
311
+ .fuchsia{color:#bf00bf}
312
+ .fuchsia-background{background:#fa00fa}
313
+ .gray{color:#606060}
314
+ .gray-background{background:#7d7d7d}
315
+ .green{color:#006000}
316
+ .green-background{background:#007d00}
317
+ .lime{color:#00bf00}
318
+ .lime-background{background:#00fa00}
319
+ .maroon{color:#600000}
320
+ .maroon-background{background:#7d0000}
321
+ .navy{color:#000060}
322
+ .navy-background{background:#00007d}
323
+ .olive{color:#606000}
324
+ .olive-background{background:#7d7d00}
325
+ .purple{color:#600060}
326
+ .purple-background{background:#7d007d}
327
+ .red{color:#bf0000}
328
+ .red-background{background:#fa0000}
329
+ .silver{color:#909090}
330
+ .silver-background{background:#bcbcbc}
331
+ .teal{color:#006060}
332
+ .teal-background{background:#007d7d}
333
+ .white{color:#bfbfbf}
334
+ .white-background{background:#fafafa}
335
+ .yellow{color:#bfbf00}
336
+ .yellow-background{background:#fafa00}
337
+ span.icon>.fa{cursor:default}
338
+ a span.icon>.fa{cursor:inherit}
339
+ .admonitionblock td.icon [class^="fa icon-"]{font-size:2.5em;text-shadow:1px 1px 2px rgba(0,0,0,.5);cursor:default}
340
+ .admonitionblock td.icon .icon-note::before{content:"\f05a";color:#19407c}
341
+ .admonitionblock td.icon .icon-tip::before{content:"\f0eb";text-shadow:1px 1px 2px rgba(155,155,0,.8);color:#111}
342
+ .admonitionblock td.icon .icon-warning::before{content:"\f071";color:#bf6900}
343
+ .admonitionblock td.icon .icon-caution::before{content:"\f06d";color:#bf3400}
344
+ .admonitionblock td.icon .icon-important::before{content:"\f06a";color:#bf0000}
345
+ .conum[data-value]{display:inline-block;color:#fff!important;background:rgba(0,0,0,.8);border-radius:50%;text-align:center;font-size:.75em;width:1.67em;height:1.67em;line-height:1.67em;font-family:"Open Sans","DejaVu Sans",sans-serif;font-style:normal;font-weight:bold}
346
+ .conum[data-value] *{color:#fff!important}
347
+ .conum[data-value]+b{display:none}
348
+ .conum[data-value]::after{content:attr(data-value)}
349
+ pre .conum[data-value]{position:relative;top:-.125em}
350
+ b.conum *{color:inherit!important}
351
+ .conum:not([data-value]):empty{display:none}
352
+ dt,th.tableblock,td.content,div.footnote{text-rendering:optimizeLegibility}
353
+ h1,h2,p,td.content,span.alt,summary{letter-spacing:-.01em}
354
+ p strong,td.content strong,div.footnote strong{letter-spacing:-.005em}
355
+ p,blockquote,dt,td.content,td.hdlist1,span.alt,summary{font-size:1.0625rem}
356
+ .sidebarblock p,.sidebarblock dt,.sidebarblock td.content,p.tableblock{font-size:1em}
357
+ .print-only{display:none!important}
358
+ @page{margin:1.25cm .75cm}
359
+ @media print{*{box-shadow:none!important;text-shadow:none!important}
360
+ html{font-size:80%}
361
+ a{color:inherit!important;text-decoration:underline!important}
362
+ a.bare,a[href^="#"],a[href^="mailto:"]{text-decoration:none!important}
363
+ a[href^="http:"]:not(.bare)::after,a[href^="https:"]:not(.bare)::after{content:"(" attr(href) ")";display:inline-block;font-size:.875em;padding-left:.25em}
364
+ abbr[title]{border-bottom:1px dotted}
365
+ abbr[title]::after{content:" (" attr(title) ")"}
366
+ pre,blockquote,tr,img,object,svg{-moz-column-break-inside:avoid;break-inside:avoid}
367
+ thead{display:table-header-group}
368
+ p,blockquote,dt,td.content{font-size:1em;orphans:3;widows:3}
369
+ h2,h3,#toctitle,.sidebarblock>.content>.title{-moz-column-break-after:avoid;break-after:avoid}
370
+ body>div[id]{max-width:none}
371
+ #toc,.sidebarblock,.exampleblock>.content{background:none!important}
372
+ #toc{border-bottom:1px solid #dddddf!important;padding-bottom:0!important}
373
+ body.book #header{text-align:center}
374
+ body.book #header>h1:first-child{border:0!important;margin:2.5em 0 1em}
375
+ body.book #header .details{border:0!important;display:block;padding:0!important}
376
+ body.book #header .details span:first-child{margin-left:0!important}
377
+ body.book #header .details br{display:block}
378
+ body.book #header .details br+span::before{content:none!important}
379
+ body.book #toc{border:0!important;text-align:left!important;padding:0!important;margin:0!important}
380
+ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{-moz-column-break-before:page;break-before:page}
381
+ .listingblock code[data-lang]::before{display:block}
382
+ div.page-break{display:block;-moz-column-break-after:page;break-after:page}
383
+ #footer{padding:0 .9375em}
384
+ .hide-on-print{display:none!important}
385
+ .print-only{display:block!important}
386
+ .hide-for-print{display:none!important}
387
+ .show-for-print{display:inherit!important}}
388
+ @media amzn-kf8,print{#header>h1:first-child{margin-top:1.25rem}
389
+ .sect1{padding:0!important}
390
+ .sect1+.sect1{border:0}
391
+ #footer{background:none}
392
+ #footer-text{color:rgba(0,0,0,.6);font-size:.9em}}
393
+ @media amzn-kf8{body>div[id]{padding:0}}
@@ -0,0 +1,87 @@
1
+ /*! Stylesheet for CodeRay to loosely match GitHub themes | MIT License */
2
+ pre.CodeRay{background:#f7f7f8}
3
+ .CodeRay .line-numbers{border-right:1px solid;opacity:.35;padding:0 .5em 0 0;-webkit-user-select:none;-moz-user-select:none;user-select:none}
4
+ .CodeRay span.line-numbers{display:inline-block;margin-right:.75em}
5
+ .CodeRay .line-numbers strong{color:#000}
6
+ table.CodeRay{border-collapse:separate;border:0;margin-bottom:0;background:none}
7
+ table.CodeRay td{vertical-align:top;line-height:inherit}
8
+ table.CodeRay td.line-numbers{text-align:right}
9
+ table.CodeRay td.code{padding:0 0 0 .75em}
10
+ .CodeRay .debug{color:#fff!important;background:navy!important}
11
+ .CodeRay .annotation{color:#007}
12
+ .CodeRay .attribute-name{color:navy}
13
+ .CodeRay .attribute-value{color:#700}
14
+ .CodeRay .binary{color:#509}
15
+ .CodeRay .comment{color:#998;font-style:italic}
16
+ .CodeRay .char{color:#04d}
17
+ .CodeRay .char .content{color:#04d}
18
+ .CodeRay .char .delimiter{color:#039}
19
+ .CodeRay .class{color:#458;font-weight:bold}
20
+ .CodeRay .complex{color:#a08}
21
+ .CodeRay .constant,.CodeRay .predefined-constant{color:teal}
22
+ .CodeRay .color{color:#099}
23
+ .CodeRay .class-variable{color:#369}
24
+ .CodeRay .decorator{color:#b0b}
25
+ .CodeRay .definition{color:#099}
26
+ .CodeRay .delimiter{color:#000}
27
+ .CodeRay .doc{color:#970}
28
+ .CodeRay .doctype{color:#34b}
29
+ .CodeRay .doc-string{color:#d42}
30
+ .CodeRay .escape{color:#666}
31
+ .CodeRay .entity{color:#800}
32
+ .CodeRay .error{color:#808}
33
+ .CodeRay .exception{color:inherit}
34
+ .CodeRay .filename{color:#099}
35
+ .CodeRay .function{color:#900;font-weight:bold}
36
+ .CodeRay .global-variable{color:teal}
37
+ .CodeRay .hex{color:#058}
38
+ .CodeRay .integer,.CodeRay .float{color:#099}
39
+ .CodeRay .include{color:#555}
40
+ .CodeRay .inline{color:#000}
41
+ .CodeRay .inline .inline{background:#ccc}
42
+ .CodeRay .inline .inline .inline{background:#bbb}
43
+ .CodeRay .inline .inline-delimiter{color:#d14}
44
+ .CodeRay .inline-delimiter{color:#d14}
45
+ .CodeRay .important{color:#555;font-weight:bold}
46
+ .CodeRay .interpreted{color:#b2b}
47
+ .CodeRay .instance-variable{color:teal}
48
+ .CodeRay .label{color:#970}
49
+ .CodeRay .local-variable{color:#963}
50
+ .CodeRay .octal{color:#40e}
51
+ .CodeRay .predefined{color:#369}
52
+ .CodeRay .preprocessor{color:#579}
53
+ .CodeRay .pseudo-class{color:#555}
54
+ .CodeRay .directive{font-weight:bold}
55
+ .CodeRay .type{font-weight:bold}
56
+ .CodeRay .predefined-type{color:inherit}
57
+ .CodeRay .reserved,.CodeRay .keyword{color:#000;font-weight:bold}
58
+ .CodeRay .key{color:#808}
59
+ .CodeRay .key .delimiter{color:#606}
60
+ .CodeRay .key .char{color:#80f}
61
+ .CodeRay .value{color:#088}
62
+ .CodeRay .regexp .delimiter{color:#808}
63
+ .CodeRay .regexp .content{color:#808}
64
+ .CodeRay .regexp .modifier{color:#808}
65
+ .CodeRay .regexp .char{color:#d14}
66
+ .CodeRay .regexp .function{color:#404;font-weight:bold}
67
+ .CodeRay .string{color:#d20}
68
+ .CodeRay .string .string .string{background:#ffd0d0}
69
+ .CodeRay .string .content{color:#d14}
70
+ .CodeRay .string .char{color:#d14}
71
+ .CodeRay .string .delimiter{color:#d14}
72
+ .CodeRay .shell{color:#d14}
73
+ .CodeRay .shell .delimiter{color:#d14}
74
+ .CodeRay .symbol{color:#990073}
75
+ .CodeRay .symbol .content{color:#a60}
76
+ .CodeRay .symbol .delimiter{color:#630}
77
+ .CodeRay .tag{color:teal}
78
+ .CodeRay .tag-special{color:#d70}
79
+ .CodeRay .variable{color:#036}
80
+ .CodeRay .insert{background:#afa}
81
+ .CodeRay .delete{background:#faa}
82
+ .CodeRay .change{color:#aaf;background:#007}
83
+ .CodeRay .head{color:#f8f;background:#505}
84
+ .CodeRay .insert .insert{color:#080}
85
+ .CodeRay .delete .delete{color:#800}
86
+ .CodeRay .change .change{color:#66f}
87
+ .CodeRay .head .head{color:#f4f}
@@ -0,0 +1,6 @@
1
+ @import url('asciidoctor-default.css');
2
+
3
+ /* body {
4
+ color: red !important;
5
+ } */
6
+
package/index.js ADDED
@@ -0,0 +1,80 @@
1
+ const commitHash = require("./commithash.json").commitHash;
2
+
3
+ const isWebWorker = typeof WorkerGlobalScope !== 'undefined';
4
+ const isJavascript = typeof window !== 'undefined' && !isWebWorker;
5
+ const isNodejs = !isJavascript && !isWebWorker;
6
+
7
+ const BroadcastDb = require('./src/lib.js').BroadcastDb;
8
+
9
+ let globalObject;
10
+
11
+ if (isNodejs) {
12
+ globalObject = global;
13
+ }
14
+
15
+ if (isJavascript) {
16
+ globalObject = window;
17
+ }
18
+
19
+ if (isWebWorker) {
20
+ globalObject = self;
21
+ }
22
+
23
+
24
+ class MyWasmClass {
25
+
26
+ constructor(config, wasmModule) {
27
+ this.wasmModule = wasmModule;
28
+ const jsonInput = JSON.stringify(config);
29
+ const configAddress = wasmModule._malloc(jsonInput.length + 1);
30
+ wasmModule.stringToUTF8(jsonInput, configAddress, jsonInput.length + 1);
31
+ this.myClass = new wasmModule.MyClass(configAddress);
32
+ }
33
+
34
+ emArray(array) {
35
+ const ptr = this.wasmModule._malloc(array.length*64);
36
+ (new Float64Array(this.wasmModule.HEAPU8.buffer, ptr, array.length)).set(array);
37
+ return ptr;
38
+ }
39
+
40
+ emString(string) {
41
+ const ptr = this.wasmModule._malloc(string.length*8);
42
+ (new Float64Array(this.wasmModule.HEAPU8.buffer, ptr, string.length)).set(string);
43
+ return ptr;
44
+ }
45
+
46
+ method1(data) {
47
+ return new Promise((resolve, reject) => {
48
+ globalObject.methodResolver = resolve;
49
+ this.myClass.method1(data.length, this.emArray(data));
50
+ })
51
+ }
52
+
53
+ logBuildTime() {
54
+ this.wasmModule.MyClass.logBuildTime();
55
+ }
56
+
57
+ logCommitHash() {
58
+ this.wasmModule.MyClass.logCommitHash();
59
+ }
60
+
61
+ getCommitHash() {
62
+ return this.wasmModule.UTF8ToString(this.wasmModule.MyClass.getCommitHash());
63
+ }
64
+ }
65
+
66
+ // const moduleGenerator = require('./lib/wasm-module');
67
+
68
+ // loadWasm = function (config) {
69
+ // return new Promise(resolve => {
70
+ // moduleGenerator().then(wasmModule => {
71
+ // resolve(new MyWasmClass(config, wasmModule));
72
+ // })
73
+ // })
74
+ // }
75
+
76
+ module.exports = {
77
+ BroadcastDb,
78
+ // loadWasm,
79
+ commitHash
80
+ }