@hpcc-js/codemirror 2.66.0 → 2.66.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,43 +1,43 @@
1
- HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems.
2
-
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
6
-
7
- http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.
14
-
15
-
16
- Intersection Algorithms Provided by Kevin Lindsey
17
- Copyright (c) 2000-2011, Kevin Lindsey
18
- All rights reserved.
19
-
20
- Redistribution and use in source and binary forms, with or without
21
- modification, are permitted provided that the following conditions are met:
22
-
23
- - Redistributions of source code must retain the above copyright notice,
24
- this list of conditions and the following disclaimer.
25
-
26
- - Redistributions in binary form must reproduce the above copyright
27
- notice, this list of conditions and the following disclaimer in the
28
- documentation and/or other materials provided with the distribution.
29
-
30
- - Neither the name of this software nor the names of its contributors
31
- may be used to endorse or promote products derived from this software
32
- without specific prior written permission.
33
-
34
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
35
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
36
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
37
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
38
- ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
39
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
40
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
41
- ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
42
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
43
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1
+ HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
14
+
15
+
16
+ Intersection Algorithms Provided by Kevin Lindsey
17
+ Copyright (c) 2000-2011, Kevin Lindsey
18
+ All rights reserved.
19
+
20
+ Redistribution and use in source and binary forms, with or without
21
+ modification, are permitted provided that the following conditions are met:
22
+
23
+ - Redistributions of source code must retain the above copyright notice,
24
+ this list of conditions and the following disclaimer.
25
+
26
+ - Redistributions in binary form must reproduce the above copyright
27
+ notice, this list of conditions and the following disclaimer in the
28
+ documentation and/or other materials provided with the distribution.
29
+
30
+ - Neither the name of this software nor the names of its contributors
31
+ may be used to endorse or promote products derived from this software
32
+ without specific prior written permission.
33
+
34
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
35
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
36
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
37
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
38
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
39
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
40
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
41
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
42
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
43
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/README.md CHANGED
@@ -1,60 +1,60 @@
1
- # @hpcc-js/codemirror
2
- This package is part of the mono repository "@hpcc-js" (aka Visualization Framework), for more information including [Quick Start](https://github.com/hpcc-systems/Visualization/wiki/Quick-Start), [Gallery](https://raw.githack.com/hpcc-systems/Visualization/trunk/demos/gallery/gallery.html) and [Tutorials](https://github.com/hpcc-systems/Visualization/wiki/Tutorials), please visit the main page on GitHub: [hpcc-systems/Visualization](https://github.com/hpcc-systems/Visualization).
3
-
4
- ## Exported Widgets
5
- * [CSSEditor](https://rawgit.com/hpcc-systems/Visualization/trunk/demos/gallery/playground.html?./samples/codemirror/CSSEditor.js)
6
- * [ECLEditor](https://rawgit.com/hpcc-systems/Visualization/trunk/demos/gallery/playground.html?./samples/codemirror/ECLEditor.js)
7
- * [HTMLEditor](https://rawgit.com/hpcc-systems/Visualization/trunk/demos/gallery/playground.html?./samples/codemirror/HTMLEditor.js)
8
- * [JSEditor](https://rawgit.com/hpcc-systems/Visualization/trunk/demos/gallery/playground.html?./samples/codemirror/JSEditor.js)
9
- * [JSONEditor](https://rawgit.com/hpcc-systems/Visualization/trunk/demos/gallery/playground.html?./samples/codemirror/JSONEditor.js)
10
- * [XMLEditor](https://rawgit.com/hpcc-systems/Visualization/trunk/demos/gallery/playground.html?./samples/codemirror/XMLEditor.js)
11
-
12
- ## Stand-alone HTML Example
13
- ```html
14
- <html>
15
- <head>
16
- <title>Simple JSONEditor</title>
17
- <script src="https://unpkg.com/@hpcc-js/common"></script>
18
- <script src="https://unpkg.com/@hpcc-js/api"></script>
19
- <script src="https://unpkg.com/@hpcc-js/codemirror"></script>
20
- </head>
21
- <body>
22
- <div id="placeholder" style="width:400px;height:400px;"></div>
23
- <script>
24
- var code = {"fruit": "Apple","size": "Large","color": "Red"};
25
-
26
- new window["@hpcc-js/codemirror"].JSONEditor()
27
- .target("placeholder")
28
- .json(code)
29
- .render()
30
- ;
31
- </script>
32
- </body>
33
- </html>
34
- ```
35
-
36
- <ClientOnly>
37
- <hpcc-vitepress style="width:100%;height:600px">
38
- <div id="target" style="height:600px">
39
- </div>
40
- <script type="module">
41
- import { ECLEditor } from "@hpcc-js/codemirror";
42
-
43
- const code = `\
44
- MySample := SAMPLE(Person,10,1) // get every 10th record
45
- SomeFile := DATASET([{'A'},{'B'},{'C'},{'D'},{'E'},
46
- {'F'},{'G'},{'H'},{'I'},{'J'},
47
- {'K'},{'L'},{'M'},{'N'},{'O'},
48
- {'P'},{'Q'},{'R'},{'S'},{'T'},
49
- {'U'},{'V'},{'W'},{'X'},{'Y'}],
50
- {STRING1 Letter});
51
- Set1 := SAMPLE(SomeFile,5,1); // returns A, F, K, P, U`;
52
-
53
- new ECLEditor()
54
- .ecl(code)
55
- .target("target")
56
- .render()
57
- ;
58
- </script>
59
- </hpcc-vitepress>
60
- </ClientOnly>
1
+ # @hpcc-js/codemirror
2
+ This package is part of the mono repository "@hpcc-js" (aka Visualization Framework), for more information including [Quick Start](https://github.com/hpcc-systems/Visualization/wiki/Quick-Start), [Gallery](https://raw.githack.com/hpcc-systems/Visualization/trunk/demos/gallery/gallery.html) and [Tutorials](https://github.com/hpcc-systems/Visualization/wiki/Tutorials), please visit the main page on GitHub: [hpcc-systems/Visualization](https://github.com/hpcc-systems/Visualization).
3
+
4
+ ## Exported Widgets
5
+ * [CSSEditor](https://rawgit.com/hpcc-systems/Visualization/trunk/demos/gallery/playground.html?./samples/codemirror/CSSEditor.js)
6
+ * [ECLEditor](https://rawgit.com/hpcc-systems/Visualization/trunk/demos/gallery/playground.html?./samples/codemirror/ECLEditor.js)
7
+ * [HTMLEditor](https://rawgit.com/hpcc-systems/Visualization/trunk/demos/gallery/playground.html?./samples/codemirror/HTMLEditor.js)
8
+ * [JSEditor](https://rawgit.com/hpcc-systems/Visualization/trunk/demos/gallery/playground.html?./samples/codemirror/JSEditor.js)
9
+ * [JSONEditor](https://rawgit.com/hpcc-systems/Visualization/trunk/demos/gallery/playground.html?./samples/codemirror/JSONEditor.js)
10
+ * [XMLEditor](https://rawgit.com/hpcc-systems/Visualization/trunk/demos/gallery/playground.html?./samples/codemirror/XMLEditor.js)
11
+
12
+ ## Stand-alone HTML Example
13
+ ```html
14
+ <html>
15
+ <head>
16
+ <title>Simple JSONEditor</title>
17
+ <script src="https://unpkg.com/@hpcc-js/common"></script>
18
+ <script src="https://unpkg.com/@hpcc-js/api"></script>
19
+ <script src="https://unpkg.com/@hpcc-js/codemirror"></script>
20
+ </head>
21
+ <body>
22
+ <div id="placeholder" style="width:400px;height:400px;"></div>
23
+ <script>
24
+ var code = {"fruit": "Apple","size": "Large","color": "Red"};
25
+
26
+ new window["@hpcc-js/codemirror"].JSONEditor()
27
+ .target("placeholder")
28
+ .json(code)
29
+ .render()
30
+ ;
31
+ </script>
32
+ </body>
33
+ </html>
34
+ ```
35
+
36
+ <ClientOnly>
37
+ <hpcc-vitepress style="width:100%;height:600px">
38
+ <div id="target" style="height:600px">
39
+ </div>
40
+ <script type="module">
41
+ import { ECLEditor } from "@hpcc-js/codemirror";
42
+
43
+ const code = `\
44
+ MySample := SAMPLE(Person,10,1) // get every 10th record
45
+ SomeFile := DATASET([{'A'},{'B'},{'C'},{'D'},{'E'},
46
+ {'F'},{'G'},{'H'},{'I'},{'J'},
47
+ {'K'},{'L'},{'M'},{'N'},{'O'},
48
+ {'P'},{'Q'},{'R'},{'S'},{'T'},
49
+ {'U'},{'V'},{'W'},{'X'},{'Y'}],
50
+ {STRING1 Letter});
51
+ Set1 := SAMPLE(SomeFile,5,1); // returns A, F, K, P, U`;
52
+
53
+ new ECLEditor()
54
+ .ecl(code)
55
+ .target("target")
56
+ .render()
57
+ ;
58
+ </script>
59
+ </hpcc-vitepress>
60
+ </ClientOnly>
package/dist/index.es6.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Palette, HTMLWidget } from '@hpcc-js/common';
2
2
 
3
3
  var PKG_NAME = "@hpcc-js/codemirror";
4
- var PKG_VERSION = "2.66.0";
5
- var BUILD_VERSION = "2.108.5";
4
+ var PKG_VERSION = "2.66.1";
5
+ var BUILD_VERSION = "2.108.6";
6
6
 
7
7
  /******************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
@@ -66,7 +66,7 @@ var hasRequiredCodemirror;
66
66
  function requireCodemirror () {
67
67
  if (hasRequiredCodemirror) return codemirror$1.exports;
68
68
  hasRequiredCodemirror = 1;
69
- (function (module, exports) {
69
+ (function (module, exports$1) {
70
70
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
71
71
  // Distributed under an MIT license: https://codemirror.net/5/LICENSE
72
72
 
@@ -232,7 +232,7 @@ function requireCodemirror () {
232
232
  function copyObj(obj, target, overwrite) {
233
233
  if (!target) { target = {}; }
234
234
  for (var prop in obj)
235
- { if (obj.hasOwnProperty(prop) && (overwrite !== false || !target.hasOwnProperty(prop)))
235
+ { if (Object.prototype.hasOwnProperty.call(obj, prop) && (overwrite !== false || !Object.prototype.hasOwnProperty.call(target, prop)))
236
236
  { target[prop] = obj[prop]; } }
237
237
  return target
238
238
  }
@@ -4492,7 +4492,7 @@ function requireCodemirror () {
4492
4492
  // The element in which the editor lives.
4493
4493
  d.wrapper = elt("div", [d.scrollbarFiller, d.gutterFiller, d.scroller], "CodeMirror");
4494
4494
  // See #6982. FIXME remove when this has been fixed for a while in Chrome
4495
- if (chrome && chrome_version >= 105) { d.wrapper.style.clipPath = "inset(0px)"; }
4495
+ if (chrome && chrome_version === 105) { d.wrapper.style.clipPath = "inset(0px)"; }
4496
4496
 
4497
4497
  // This attribute is respected by automatic translation systems such as Google Translate,
4498
4498
  // and may also be respected by tools used by human translators.
@@ -9943,7 +9943,7 @@ function requireCodemirror () {
9943
9943
 
9944
9944
  addLegacyProps(CodeMirror);
9945
9945
 
9946
- CodeMirror.version = "5.65.19";
9946
+ CodeMirror.version = "5.65.21";
9947
9947
 
9948
9948
  return CodeMirror;
9949
9949
 
@@ -9957,7 +9957,7 @@ var hasRequiredCss;
9957
9957
  function requireCss () {
9958
9958
  if (hasRequiredCss) return css.exports;
9959
9959
  hasRequiredCss = 1;
9960
- (function (module, exports) {
9960
+ (function (module, exports$1) {
9961
9961
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
9962
9962
  // Distributed under an MIT license: https://codemirror.net/5/LICENSE
9963
9963
 
@@ -10827,7 +10827,7 @@ var hasRequiredEcl;
10827
10827
  function requireEcl () {
10828
10828
  if (hasRequiredEcl) return ecl.exports;
10829
10829
  hasRequiredEcl = 1;
10830
- (function (module, exports) {
10830
+ (function (module, exports$1) {
10831
10831
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
10832
10832
  // Distributed under an MIT license: https://codemirror.net/5/LICENSE
10833
10833
 
@@ -11045,7 +11045,7 @@ var hasRequiredXml;
11045
11045
  function requireXml () {
11046
11046
  if (hasRequiredXml) return xml.exports;
11047
11047
  hasRequiredXml = 1;
11048
- (function (module, exports) {
11048
+ (function (module, exports$1) {
11049
11049
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
11050
11050
  // Distributed under an MIT license: https://codemirror.net/5/LICENSE
11051
11051
 
@@ -11468,7 +11468,7 @@ var hasRequiredMeta;
11468
11468
  function requireMeta () {
11469
11469
  if (hasRequiredMeta) return meta.exports;
11470
11470
  hasRequiredMeta = 1;
11471
- (function (module, exports) {
11471
+ (function (module, exports$1) {
11472
11472
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
11473
11473
  // Distributed under an MIT license: https://codemirror.net/5/LICENSE
11474
11474
 
@@ -11693,7 +11693,7 @@ var hasRequiredMarkdown;
11693
11693
  function requireMarkdown () {
11694
11694
  if (hasRequiredMarkdown) return markdown.exports;
11695
11695
  hasRequiredMarkdown = 1;
11696
- (function (module, exports) {
11696
+ (function (module, exports$1) {
11697
11697
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
11698
11698
  // Distributed under an MIT license: https://codemirror.net/5/LICENSE
11699
11699
 
@@ -12585,7 +12585,7 @@ var hasRequiredOverlay;
12585
12585
  function requireOverlay () {
12586
12586
  if (hasRequiredOverlay) return overlay.exports;
12587
12587
  hasRequiredOverlay = 1;
12588
- (function (module, exports) {
12588
+ (function (module, exports$1) {
12589
12589
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
12590
12590
  // Distributed under an MIT license: https://codemirror.net/5/LICENSE
12591
12591
 
@@ -12679,7 +12679,7 @@ var hasRequiredGfm;
12679
12679
  function requireGfm () {
12680
12680
  if (hasRequiredGfm) return gfm.exports;
12681
12681
  hasRequiredGfm = 1;
12682
- (function (module, exports) {
12682
+ (function (module, exports$1) {
12683
12683
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
12684
12684
  // Distributed under an MIT license: https://codemirror.net/5/LICENSE
12685
12685
 
@@ -12818,7 +12818,7 @@ var hasRequiredJavascript;
12818
12818
  function requireJavascript () {
12819
12819
  if (hasRequiredJavascript) return javascript.exports;
12820
12820
  hasRequiredJavascript = 1;
12821
- (function (module, exports) {
12821
+ (function (module, exports$1) {
12822
12822
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
12823
12823
  // Distributed under an MIT license: https://codemirror.net/5/LICENSE
12824
12824
 
@@ -13781,7 +13781,7 @@ var hasRequiredHtmlmixed;
13781
13781
  function requireHtmlmixed () {
13782
13782
  if (hasRequiredHtmlmixed) return htmlmixed.exports;
13783
13783
  hasRequiredHtmlmixed = 1;
13784
- (function (module, exports) {
13784
+ (function (module, exports$1) {
13785
13785
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
13786
13786
  // Distributed under an MIT license: https://codemirror.net/5/LICENSE
13787
13787
 
@@ -13945,7 +13945,7 @@ var hasRequiredSql;
13945
13945
  function requireSql () {
13946
13946
  if (hasRequiredSql) return sql.exports;
13947
13947
  hasRequiredSql = 1;
13948
- (function (module, exports) {
13948
+ (function (module, exports$1) {
13949
13949
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
13950
13950
  // Distributed under an MIT license: https://codemirror.net/5/LICENSE
13951
13951
 
@@ -15470,7 +15470,7 @@ var hasRequiredBraceFold;
15470
15470
  function requireBraceFold () {
15471
15471
  if (hasRequiredBraceFold) return braceFold.exports;
15472
15472
  hasRequiredBraceFold = 1;
15473
- (function (module, exports) {
15473
+ (function (module, exports$1) {
15474
15474
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
15475
15475
  // Distributed under an MIT license: https://codemirror.net/5/LICENSE
15476
15476
 
@@ -15597,7 +15597,7 @@ var hasRequiredCommentFold;
15597
15597
  function requireCommentFold () {
15598
15598
  if (hasRequiredCommentFold) return commentFold.exports;
15599
15599
  hasRequiredCommentFold = 1;
15600
- (function (module, exports) {
15600
+ (function (module, exports$1) {
15601
15601
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
15602
15602
  // Distributed under an MIT license: https://codemirror.net/5/LICENSE
15603
15603
 
@@ -15664,7 +15664,7 @@ var hasRequiredFoldcode;
15664
15664
  function requireFoldcode () {
15665
15665
  if (hasRequiredFoldcode) return foldcode.exports;
15666
15666
  hasRequiredFoldcode = 1;
15667
- (function (module, exports) {
15667
+ (function (module, exports$1) {
15668
15668
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
15669
15669
  // Distributed under an MIT license: https://codemirror.net/5/LICENSE
15670
15670
 
@@ -15831,7 +15831,7 @@ var hasRequiredFoldgutter;
15831
15831
  function requireFoldgutter () {
15832
15832
  if (hasRequiredFoldgutter) return foldgutter.exports;
15833
15833
  hasRequiredFoldgutter = 1;
15834
- (function (module, exports) {
15834
+ (function (module, exports$1) {
15835
15835
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
15836
15836
  // Distributed under an MIT license: https://codemirror.net/5/LICENSE
15837
15837
 
@@ -16008,7 +16008,7 @@ var hasRequiredIndentFold;
16008
16008
  function requireIndentFold () {
16009
16009
  if (hasRequiredIndentFold) return indentFold.exports;
16010
16010
  hasRequiredIndentFold = 1;
16011
- (function (module, exports) {
16011
+ (function (module, exports$1) {
16012
16012
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
16013
16013
  // Distributed under an MIT license: https://codemirror.net/5/LICENSE
16014
16014
 
@@ -16063,7 +16063,7 @@ var hasRequiredXmlFold;
16063
16063
  function requireXmlFold () {
16064
16064
  if (hasRequiredXmlFold) return xmlFold.exports;
16065
16065
  hasRequiredXmlFold = 1;
16066
- (function (module, exports) {
16066
+ (function (module, exports$1) {
16067
16067
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
16068
16068
  // Distributed under an MIT license: https://codemirror.net/5/LICENSE
16069
16069
 
@@ -16258,7 +16258,7 @@ var hasRequiredDialog;
16258
16258
  function requireDialog () {
16259
16259
  if (hasRequiredDialog) return dialog.exports;
16260
16260
  hasRequiredDialog = 1;
16261
- (function (module, exports) {
16261
+ (function (module, exports$1) {
16262
16262
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
16263
16263
  // Distributed under an MIT license: https://codemirror.net/5/LICENSE
16264
16264
 
@@ -16433,7 +16433,7 @@ var hasRequiredJumpToLine;
16433
16433
  function requireJumpToLine () {
16434
16434
  if (hasRequiredJumpToLine) return jumpToLine.exports;
16435
16435
  hasRequiredJumpToLine = 1;
16436
- (function (module, exports) {
16436
+ (function (module, exports$1) {
16437
16437
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
16438
16438
  // Distributed under an MIT license: https://codemirror.net/5/LICENSE
16439
16439
 
@@ -16496,7 +16496,7 @@ var hasRequiredSearchcursor;
16496
16496
  function requireSearchcursor () {
16497
16497
  if (hasRequiredSearchcursor) return searchcursor.exports;
16498
16498
  hasRequiredSearchcursor = 1;
16499
- (function (module, exports) {
16499
+ (function (module, exports$1) {
16500
16500
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
16501
16501
  // Distributed under an MIT license: https://codemirror.net/5/LICENSE
16502
16502
 
@@ -16805,7 +16805,7 @@ var hasRequiredSearch;
16805
16805
  function requireSearch () {
16806
16806
  if (hasRequiredSearch) return search.exports;
16807
16807
  hasRequiredSearch = 1;
16808
- (function (module, exports) {
16808
+ (function (module, exports$1) {
16809
16809
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
16810
16810
  // Distributed under an MIT license: https://codemirror.net/5/LICENSE
16811
16811
 
@@ -17110,7 +17110,7 @@ var hasRequiredShowHint;
17110
17110
  function requireShowHint () {
17111
17111
  if (hasRequiredShowHint) return showHint.exports;
17112
17112
  hasRequiredShowHint = 1;
17113
- (function (module, exports) {
17113
+ (function (module, exports$1) {
17114
17114
  // CodeMirror, copyright (c) by Marijn Haverbeke and others
17115
17115
  // Distributed under an MIT license: https://codemirror.net/5/LICENSE
17116
17116
 
@@ -17397,7 +17397,7 @@ function requireShowHint () {
17397
17397
  var height = box.bottom - box.top, spaceAbove = box.top - (pos.bottom - pos.top) - 2;
17398
17398
  if (winH - box.top < spaceAbove) { // More room at the top
17399
17399
  if (height > spaceAbove) hints.style.height = (height = spaceAbove) + "px";
17400
- hints.style.top = ((top = pos.top - height) + offsetTop) + "px";
17400
+ hints.style.top = ((top = pos.top - height) - offsetTop) + "px";
17401
17401
  below = false;
17402
17402
  } else {
17403
17403
  hints.style.height = (winH - box.top - 2) + "px";