@banyan_cloud/roots 1.0.86 → 1.0.88
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/dist/cjs/index.js +531 -524
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +531 -524
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +531 -524
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -6462,8 +6462,8 @@ var Databases = {
|
|
|
6462
6462
|
MySql: MySql
|
|
6463
6463
|
};
|
|
6464
6464
|
|
|
6465
|
-
var css$$ = ".
|
|
6466
|
-
var modules_8207625f = {"root":"
|
|
6465
|
+
var css$$ = ".Accordion_module_root__4d824a08 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n width: 100%;\n}\n.Accordion_module_root__4d824a08 > .Accordion_module_header__4d824a08[data-elem=base-cell] {\n display: flex;\n flex-direction: row;\n justify-content: flex-start;\n align-items: center;\n gap: 0.5rem;\n padding: 0.5rem 1rem;\n cursor: pointer;\n}\n.Accordion_module_root__4d824a08 > .Accordion_module_header__4d824a08[data-elem=base-cell] > [data-elem=component1] {\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n.Accordion_module_root__4d824a08 > .Accordion_module_header__4d824a08[data-elem=base-cell] > [data-elem=component1] .Accordion_module_icon__4d824a08 {\n transform: rotate(-90deg);\n width: 1rem;\n height: 1rem;\n fill: var(--dark-grey);\n}\n.Accordion_module_root__4d824a08 > .Accordion_module_header__4d824a08[data-elem=base-cell] .Accordion_module_title__4d824a08 {\n flex: 1 1 auto;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n.Accordion_module_root__4d824a08 > .Accordion_module_header__4d824a08[data-elem=base-cell]:hover {\n background: var(--background);\n}\n.Accordion_module_root__4d824a08 > .Accordion_module_header__4d824a08[data-elem=base-cell]:hover .Accordion_module_icon__4d824a08,\n.Accordion_module_root__4d824a08 > .Accordion_module_header__4d824a08[data-elem=base-cell]:hover .Accordion_module_title__4d824a08 {\n color: var(--highlight);\n fill: var(--highlight);\n}\n.Accordion_module_root__4d824a08 > .Accordion_module_body__4d824a08 {\n display: none;\n padding: 0.5rem 2.5rem;\n}\n.Accordion_module_root__4d824a08.Accordion_module_open__4d824a08 > .Accordion_module_header__4d824a08[data-elem=base-cell] [data-elem=component1] .Accordion_module_icon__4d824a08 {\n transform: none;\n}\n.Accordion_module_root__4d824a08.Accordion_module_open__4d824a08 > .Accordion_module_body__4d824a08 {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: stretch;\n}\n.Accordion_module_root__4d824a08.Accordion_module_open__4d824a08 > .Accordion_module_body__4d824a08 > button[data-elem=base-cell] {\n width: -moz-fit-content;\n width: fit-content;\n align-self: flex-end;\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n}\n.Accordion_module_root__4d824a08.Accordion_module_open__4d824a08 > .Accordion_module_body__4d824a08 > button[data-elem=base-cell] .Accordion_module_expand__4d824a08 {\n height: 1.5rem;\n width: 1.5rem;\n}";
|
|
6466
|
+
var modules_8207625f = {"root":"Accordion_module_root__4d824a08","header":"Accordion_module_header__4d824a08","icon":"Accordion_module_icon__4d824a08","title":"Accordion_module_title__4d824a08","body":"Accordion_module_body__4d824a08","open":"Accordion_module_open__4d824a08","expand":"Accordion_module_expand__4d824a08"};
|
|
6467
6467
|
n(css$$,{});
|
|
6468
6468
|
|
|
6469
6469
|
var Accordion = function Accordion(props) {
|
|
@@ -6476,7 +6476,8 @@ var Accordion = function Accordion(props) {
|
|
|
6476
6476
|
children = props.children,
|
|
6477
6477
|
_onClick = props.onClick,
|
|
6478
6478
|
className = props.className,
|
|
6479
|
-
onExpand = props.onExpand
|
|
6479
|
+
onExpand = props.onExpand,
|
|
6480
|
+
CustomIcon = props.icon;
|
|
6480
6481
|
|
|
6481
6482
|
// uncontrolled
|
|
6482
6483
|
var _useState = React.useState(defaultOpen),
|
|
@@ -6486,6 +6487,10 @@ var Accordion = function Accordion(props) {
|
|
|
6486
6487
|
var _useRef = React.useRef(open !== undefined),
|
|
6487
6488
|
isControlled = _useRef.current;
|
|
6488
6489
|
var isOpen = isControlled ? open : uncontrolledOpen;
|
|
6490
|
+
var Icon = Caret;
|
|
6491
|
+
if (CustomIcon) {
|
|
6492
|
+
Icon = CustomIcon;
|
|
6493
|
+
}
|
|
6489
6494
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
6490
6495
|
className: classes(className, modules_8207625f.root, isOpen ? modules_8207625f.open : ''),
|
|
6491
6496
|
"data-state-open": isOpen,
|
|
@@ -6507,14 +6512,14 @@ var Accordion = function Accordion(props) {
|
|
|
6507
6512
|
}
|
|
6508
6513
|
}
|
|
6509
6514
|
},
|
|
6510
|
-
component1: iconPlacement === 'left' && /*#__PURE__*/jsxRuntime.jsx(
|
|
6515
|
+
component1: iconPlacement === 'left' && /*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
6511
6516
|
className: modules_8207625f.icon
|
|
6512
6517
|
}),
|
|
6513
6518
|
component2: /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
6514
6519
|
className: modules_8207625f.title,
|
|
6515
6520
|
children: title
|
|
6516
6521
|
}),
|
|
6517
|
-
component3: iconPlacement === 'right' && /*#__PURE__*/jsxRuntime.jsx(
|
|
6522
|
+
component3: iconPlacement === 'right' && /*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
6518
6523
|
className: modules_8207625f.icon
|
|
6519
6524
|
})
|
|
6520
6525
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
@@ -20633,29 +20638,20 @@ function arduino(Prism) {
|
|
|
20633
20638
|
Prism.languages.ino = Prism.languages.arduino;
|
|
20634
20639
|
}
|
|
20635
20640
|
|
|
20636
|
-
var arff_1;
|
|
20637
|
-
|
|
20638
|
-
|
|
20639
|
-
function
|
|
20640
|
-
|
|
20641
|
-
|
|
20642
|
-
|
|
20643
|
-
|
|
20644
|
-
|
|
20645
|
-
|
|
20646
|
-
|
|
20647
|
-
|
|
20648
|
-
|
|
20649
|
-
|
|
20650
|
-
pattern: /(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,
|
|
20651
|
-
greedy: true
|
|
20652
|
-
},
|
|
20653
|
-
keyword: /@(?:attribute|data|end|relation)\b/i,
|
|
20654
|
-
number: /\b\d+(?:\.\d+)?\b/,
|
|
20655
|
-
punctuation: /[{},]/
|
|
20656
|
-
};
|
|
20657
|
-
}
|
|
20658
|
-
return arff_1;
|
|
20641
|
+
var arff_1 = arff;
|
|
20642
|
+
arff.displayName = 'arff';
|
|
20643
|
+
arff.aliases = [];
|
|
20644
|
+
function arff(Prism) {
|
|
20645
|
+
Prism.languages.arff = {
|
|
20646
|
+
comment: /%.*/,
|
|
20647
|
+
string: {
|
|
20648
|
+
pattern: /(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,
|
|
20649
|
+
greedy: true
|
|
20650
|
+
},
|
|
20651
|
+
keyword: /@(?:attribute|data|end|relation)\b/i,
|
|
20652
|
+
number: /\b\d+(?:\.\d+)?\b/,
|
|
20653
|
+
punctuation: /[{},]/
|
|
20654
|
+
};
|
|
20659
20655
|
}
|
|
20660
20656
|
|
|
20661
20657
|
var asciidoc_1 = asciidoc;
|
|
@@ -21759,314 +21755,341 @@ function avisynth(Prism) {
|
|
|
21759
21755
|
})(Prism);
|
|
21760
21756
|
}
|
|
21761
21757
|
|
|
21762
|
-
var avroIdl_1
|
|
21763
|
-
|
|
21764
|
-
|
|
21765
|
-
function
|
|
21766
|
-
|
|
21767
|
-
|
|
21768
|
-
|
|
21769
|
-
|
|
21770
|
-
|
|
21771
|
-
|
|
21772
|
-
|
|
21773
|
-
|
|
21774
|
-
|
|
21775
|
-
|
|
21776
|
-
|
|
21777
|
-
|
|
21778
|
-
|
|
21779
|
-
|
|
21780
|
-
|
|
21781
|
-
|
|
21782
|
-
|
|
21783
|
-
|
|
21784
|
-
|
|
21785
|
-
|
|
21786
|
-
|
|
21787
|
-
|
|
21788
|
-
|
|
21789
|
-
|
|
21790
|
-
|
|
21791
|
-
|
|
21792
|
-
|
|
21793
|
-
|
|
21794
|
-
|
|
21795
|
-
|
|
21796
|
-
|
|
21797
|
-
|
|
21798
|
-
|
|
21799
|
-
|
|
21800
|
-
|
|
21801
|
-
|
|
21802
|
-
|
|
21803
|
-
|
|
21804
|
-
|
|
21805
|
-
|
|
21806
|
-
|
|
21807
|
-
|
|
21808
|
-
|
|
21809
|
-
|
|
21810
|
-
|
|
21811
|
-
|
|
21758
|
+
var avroIdl_1;
|
|
21759
|
+
var hasRequiredAvroIdl;
|
|
21760
|
+
|
|
21761
|
+
function requireAvroIdl () {
|
|
21762
|
+
if (hasRequiredAvroIdl) return avroIdl_1;
|
|
21763
|
+
hasRequiredAvroIdl = 1;
|
|
21764
|
+
|
|
21765
|
+
avroIdl_1 = avroIdl;
|
|
21766
|
+
avroIdl.displayName = 'avroIdl';
|
|
21767
|
+
avroIdl.aliases = [];
|
|
21768
|
+
function avroIdl(Prism) {
|
|
21769
|
+
// GitHub: https://github.com/apache/avro
|
|
21770
|
+
// Docs: https://avro.apache.org/docs/current/idl.html
|
|
21771
|
+
Prism.languages['avro-idl'] = {
|
|
21772
|
+
comment: {
|
|
21773
|
+
pattern: /\/\/.*|\/\*[\s\S]*?\*\//,
|
|
21774
|
+
greedy: true
|
|
21775
|
+
},
|
|
21776
|
+
string: {
|
|
21777
|
+
pattern: /(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,
|
|
21778
|
+
lookbehind: true,
|
|
21779
|
+
greedy: true
|
|
21780
|
+
},
|
|
21781
|
+
annotation: {
|
|
21782
|
+
pattern: /@(?:[$\w.-]|`[^\r\n`]+`)+/,
|
|
21783
|
+
greedy: true,
|
|
21784
|
+
alias: 'function'
|
|
21785
|
+
},
|
|
21786
|
+
'function-identifier': {
|
|
21787
|
+
pattern: /`[^\r\n`]+`(?=\s*\()/,
|
|
21788
|
+
greedy: true,
|
|
21789
|
+
alias: 'function'
|
|
21790
|
+
},
|
|
21791
|
+
identifier: {
|
|
21792
|
+
pattern: /`[^\r\n`]+`/,
|
|
21793
|
+
greedy: true
|
|
21794
|
+
},
|
|
21795
|
+
'class-name': {
|
|
21796
|
+
pattern: /(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,
|
|
21797
|
+
lookbehind: true,
|
|
21798
|
+
greedy: true
|
|
21799
|
+
},
|
|
21800
|
+
keyword:
|
|
21801
|
+
/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,
|
|
21802
|
+
function: /\b[a-z_]\w*(?=\s*\()/i,
|
|
21803
|
+
number: [
|
|
21804
|
+
{
|
|
21805
|
+
pattern:
|
|
21806
|
+
/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,
|
|
21807
|
+
lookbehind: true
|
|
21808
|
+
},
|
|
21809
|
+
/-?\b(?:Infinity|NaN)\b/
|
|
21810
|
+
],
|
|
21811
|
+
operator: /=/,
|
|
21812
|
+
punctuation: /[()\[\]{}<>.:,;-]/
|
|
21813
|
+
};
|
|
21814
|
+
Prism.languages.avdl = Prism.languages['avro-idl'];
|
|
21815
|
+
}
|
|
21816
|
+
return avroIdl_1;
|
|
21812
21817
|
}
|
|
21813
21818
|
|
|
21814
|
-
var bash_1
|
|
21815
|
-
|
|
21816
|
-
|
|
21817
|
-
function
|
|
21819
|
+
var bash_1;
|
|
21820
|
+
var hasRequiredBash;
|
|
21821
|
+
|
|
21822
|
+
function requireBash () {
|
|
21823
|
+
if (hasRequiredBash) return bash_1;
|
|
21824
|
+
hasRequiredBash = 1;
|
|
21825
|
+
|
|
21826
|
+
bash_1 = bash;
|
|
21827
|
+
bash.displayName = 'bash';
|
|
21828
|
+
bash.aliases = ['shell'];
|
|
21829
|
+
function bash(Prism) {
|
|
21818
21830
|
(function (Prism) {
|
|
21819
|
-
|
|
21820
|
-
|
|
21821
|
-
|
|
21822
|
-
|
|
21823
|
-
|
|
21824
|
-
|
|
21825
|
-
|
|
21826
|
-
|
|
21827
|
-
|
|
21828
|
-
|
|
21829
|
-
|
|
21830
|
-
|
|
21831
|
-
|
|
21832
|
-
|
|
21833
|
-
|
|
21834
|
-
|
|
21835
|
-
|
|
21836
|
-
|
|
21837
|
-
|
|
21838
|
-
|
|
21839
|
-
|
|
21840
|
-
|
|
21841
|
-
|
|
21842
|
-
|
|
21843
|
-
|
|
21844
|
-
|
|
21845
|
-
|
|
21846
|
-
|
|
21847
|
-
|
|
21848
|
-
|
|
21849
|
-
|
|
21850
|
-
|
|
21851
|
-
|
|
21852
|
-
|
|
21853
|
-
|
|
21854
|
-
|
|
21855
|
-
|
|
21856
|
-
|
|
21857
|
-
|
|
21858
|
-
|
|
21859
|
-
|
|
21860
|
-
|
|
21861
|
-
|
|
21862
|
-
|
|
21863
|
-
|
|
21864
|
-
|
|
21865
|
-
|
|
21866
|
-
|
|
21867
|
-
|
|
21868
|
-
|
|
21869
|
-
|
|
21870
|
-
|
|
21871
|
-
|
|
21872
|
-
|
|
21873
|
-
|
|
21874
|
-
|
|
21875
|
-
|
|
21876
|
-
|
|
21877
|
-
|
|
21878
|
-
|
|
21879
|
-
|
|
21880
|
-
|
|
21881
|
-
|
|
21882
|
-
|
|
21883
|
-
|
|
21884
|
-
|
|
21885
|
-
|
|
21886
|
-
|
|
21887
|
-
|
|
21888
|
-
|
|
21889
|
-
|
|
21890
|
-
|
|
21891
|
-
|
|
21892
|
-
|
|
21893
|
-
|
|
21894
|
-
|
|
21895
|
-
|
|
21896
|
-
|
|
21897
|
-
|
|
21898
|
-
|
|
21899
|
-
|
|
21900
|
-
|
|
21901
|
-
|
|
21902
|
-
|
|
21903
|
-
|
|
21904
|
-
|
|
21905
|
-
|
|
21906
|
-
|
|
21907
|
-
|
|
21908
|
-
|
|
21909
|
-
|
|
21910
|
-
|
|
21911
|
-
|
|
21912
|
-
|
|
21913
|
-
|
|
21914
|
-
|
|
21915
|
-
|
|
21916
|
-
|
|
21917
|
-
|
|
21918
|
-
|
|
21919
|
-
|
|
21920
|
-
|
|
21921
|
-
|
|
21922
|
-
|
|
21923
|
-
|
|
21924
|
-
|
|
21925
|
-
|
|
21926
|
-
|
|
21927
|
-
|
|
21928
|
-
|
|
21929
|
-
|
|
21930
|
-
|
|
21931
|
-
|
|
21932
|
-
|
|
21933
|
-
|
|
21934
|
-
|
|
21935
|
-
|
|
21936
|
-
|
|
21937
|
-
|
|
21938
|
-
|
|
21939
|
-
|
|
21940
|
-
|
|
21941
|
-
|
|
21942
|
-
|
|
21943
|
-
|
|
21944
|
-
|
|
21945
|
-
|
|
21946
|
-
|
|
21947
|
-
|
|
21948
|
-
|
|
21949
|
-
|
|
21950
|
-
|
|
21951
|
-
|
|
21952
|
-
|
|
21953
|
-
|
|
21954
|
-
|
|
21955
|
-
|
|
21956
|
-
|
|
21957
|
-
|
|
21958
|
-
|
|
21959
|
-
|
|
21960
|
-
|
|
21961
|
-
|
|
21962
|
-
|
|
21963
|
-
|
|
21964
|
-
|
|
21965
|
-
|
|
21966
|
-
|
|
21967
|
-
|
|
21968
|
-
|
|
21969
|
-
|
|
21970
|
-
|
|
21971
|
-
|
|
21972
|
-
|
|
21973
|
-
|
|
21974
|
-
|
|
21975
|
-
|
|
21976
|
-
|
|
21977
|
-
|
|
21978
|
-
|
|
21979
|
-
|
|
21980
|
-
|
|
21981
|
-
|
|
21982
|
-
|
|
21983
|
-
|
|
21984
|
-
|
|
21985
|
-
|
|
21986
|
-
|
|
21987
|
-
|
|
21988
|
-
|
|
21989
|
-
|
|
21990
|
-
|
|
21991
|
-
|
|
21992
|
-
|
|
21993
|
-
|
|
21994
|
-
|
|
21995
|
-
|
|
21996
|
-
|
|
21997
|
-
|
|
21998
|
-
|
|
21999
|
-
|
|
22000
|
-
|
|
22001
|
-
|
|
22002
|
-
|
|
22003
|
-
|
|
22004
|
-
|
|
22005
|
-
|
|
22006
|
-
|
|
22007
|
-
|
|
22008
|
-
|
|
22009
|
-
|
|
22010
|
-
|
|
22011
|
-
|
|
22012
|
-
|
|
22013
|
-
|
|
22014
|
-
|
|
22015
|
-
|
|
22016
|
-
|
|
22017
|
-
|
|
22018
|
-
|
|
22019
|
-
|
|
22020
|
-
|
|
22021
|
-
|
|
22022
|
-
|
|
22023
|
-
|
|
22024
|
-
|
|
22025
|
-
|
|
22026
|
-
|
|
22027
|
-
|
|
22028
|
-
|
|
22029
|
-
|
|
22030
|
-
|
|
22031
|
-
|
|
22032
|
-
|
|
22033
|
-
|
|
22034
|
-
|
|
22035
|
-
|
|
22036
|
-
|
|
22037
|
-
|
|
22038
|
-
|
|
22039
|
-
|
|
22040
|
-
|
|
22041
|
-
|
|
22042
|
-
|
|
22043
|
-
|
|
22044
|
-
|
|
21831
|
+
// $ set | grep '^[A-Z][^[:space:]]*=' | cut -d= -f1 | tr '\n' '|'
|
|
21832
|
+
// + LC_ALL, RANDOM, REPLY, SECONDS.
|
|
21833
|
+
// + make sure PS1..4 are here as they are not always set,
|
|
21834
|
+
// - some useless things.
|
|
21835
|
+
var envVars =
|
|
21836
|
+
'\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b';
|
|
21837
|
+
var commandAfterHeredoc = {
|
|
21838
|
+
pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
|
|
21839
|
+
lookbehind: true,
|
|
21840
|
+
alias: 'punctuation',
|
|
21841
|
+
// this looks reasonably well in all themes
|
|
21842
|
+
inside: null // see below
|
|
21843
|
+
};
|
|
21844
|
+
var insideString = {
|
|
21845
|
+
bash: commandAfterHeredoc,
|
|
21846
|
+
environment: {
|
|
21847
|
+
pattern: RegExp('\\$' + envVars),
|
|
21848
|
+
alias: 'constant'
|
|
21849
|
+
},
|
|
21850
|
+
variable: [
|
|
21851
|
+
// [0]: Arithmetic Environment
|
|
21852
|
+
{
|
|
21853
|
+
pattern: /\$?\(\([\s\S]+?\)\)/,
|
|
21854
|
+
greedy: true,
|
|
21855
|
+
inside: {
|
|
21856
|
+
// If there is a $ sign at the beginning highlight $(( and )) as variable
|
|
21857
|
+
variable: [
|
|
21858
|
+
{
|
|
21859
|
+
pattern: /(^\$\(\([\s\S]+)\)\)/,
|
|
21860
|
+
lookbehind: true
|
|
21861
|
+
},
|
|
21862
|
+
/^\$\(\(/
|
|
21863
|
+
],
|
|
21864
|
+
number:
|
|
21865
|
+
/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,
|
|
21866
|
+
// Operators according to https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic
|
|
21867
|
+
operator:
|
|
21868
|
+
/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,
|
|
21869
|
+
// If there is no $ sign at the beginning highlight (( and )) as punctuation
|
|
21870
|
+
punctuation: /\(\(?|\)\)?|,|;/
|
|
21871
|
+
}
|
|
21872
|
+
}, // [1]: Command Substitution
|
|
21873
|
+
{
|
|
21874
|
+
pattern: /\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,
|
|
21875
|
+
greedy: true,
|
|
21876
|
+
inside: {
|
|
21877
|
+
variable: /^\$\(|^`|\)$|`$/
|
|
21878
|
+
}
|
|
21879
|
+
}, // [2]: Brace expansion
|
|
21880
|
+
{
|
|
21881
|
+
pattern: /\$\{[^}]+\}/,
|
|
21882
|
+
greedy: true,
|
|
21883
|
+
inside: {
|
|
21884
|
+
operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
|
|
21885
|
+
punctuation: /[\[\]]/,
|
|
21886
|
+
environment: {
|
|
21887
|
+
pattern: RegExp('(\\{)' + envVars),
|
|
21888
|
+
lookbehind: true,
|
|
21889
|
+
alias: 'constant'
|
|
21890
|
+
}
|
|
21891
|
+
}
|
|
21892
|
+
},
|
|
21893
|
+
/\$(?:\w+|[#?*!@$])/
|
|
21894
|
+
],
|
|
21895
|
+
// Escape sequences from echo and printf's manuals, and escaped quotes.
|
|
21896
|
+
entity:
|
|
21897
|
+
/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
|
|
21898
|
+
};
|
|
21899
|
+
Prism.languages.bash = {
|
|
21900
|
+
shebang: {
|
|
21901
|
+
pattern: /^#!\s*\/.*/,
|
|
21902
|
+
alias: 'important'
|
|
21903
|
+
},
|
|
21904
|
+
comment: {
|
|
21905
|
+
pattern: /(^|[^"{\\$])#.*/,
|
|
21906
|
+
lookbehind: true
|
|
21907
|
+
},
|
|
21908
|
+
'function-name': [
|
|
21909
|
+
// a) function foo {
|
|
21910
|
+
// b) foo() {
|
|
21911
|
+
// c) function foo() {
|
|
21912
|
+
// but not “foo {”
|
|
21913
|
+
{
|
|
21914
|
+
// a) and c)
|
|
21915
|
+
pattern: /(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,
|
|
21916
|
+
lookbehind: true,
|
|
21917
|
+
alias: 'function'
|
|
21918
|
+
},
|
|
21919
|
+
{
|
|
21920
|
+
// b)
|
|
21921
|
+
pattern: /\b[\w-]+(?=\s*\(\s*\)\s*\{)/,
|
|
21922
|
+
alias: 'function'
|
|
21923
|
+
}
|
|
21924
|
+
],
|
|
21925
|
+
// Highlight variable names as variables in for and select beginnings.
|
|
21926
|
+
'for-or-select': {
|
|
21927
|
+
pattern: /(\b(?:for|select)\s+)\w+(?=\s+in\s)/,
|
|
21928
|
+
alias: 'variable',
|
|
21929
|
+
lookbehind: true
|
|
21930
|
+
},
|
|
21931
|
+
// Highlight variable names as variables in the left-hand part
|
|
21932
|
+
// of assignments (“=” and “+=”).
|
|
21933
|
+
'assign-left': {
|
|
21934
|
+
pattern: /(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,
|
|
21935
|
+
inside: {
|
|
21936
|
+
environment: {
|
|
21937
|
+
pattern: RegExp('(^|[\\s;|&]|[<>]\\()' + envVars),
|
|
21938
|
+
lookbehind: true,
|
|
21939
|
+
alias: 'constant'
|
|
21940
|
+
}
|
|
21941
|
+
},
|
|
21942
|
+
alias: 'variable',
|
|
21943
|
+
lookbehind: true
|
|
21944
|
+
},
|
|
21945
|
+
string: [
|
|
21946
|
+
// Support for Here-documents https://en.wikipedia.org/wiki/Here_document
|
|
21947
|
+
{
|
|
21948
|
+
pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
|
|
21949
|
+
lookbehind: true,
|
|
21950
|
+
greedy: true,
|
|
21951
|
+
inside: insideString
|
|
21952
|
+
}, // Here-document with quotes around the tag
|
|
21953
|
+
// → No expansion (so no “inside”).
|
|
21954
|
+
{
|
|
21955
|
+
pattern: /((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,
|
|
21956
|
+
lookbehind: true,
|
|
21957
|
+
greedy: true,
|
|
21958
|
+
inside: {
|
|
21959
|
+
bash: commandAfterHeredoc
|
|
21960
|
+
}
|
|
21961
|
+
}, // “Normal” string
|
|
21962
|
+
{
|
|
21963
|
+
// https://www.gnu.org/software/bash/manual/html_node/Double-Quotes.html
|
|
21964
|
+
pattern:
|
|
21965
|
+
/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
|
|
21966
|
+
lookbehind: true,
|
|
21967
|
+
greedy: true,
|
|
21968
|
+
inside: insideString
|
|
21969
|
+
},
|
|
21970
|
+
{
|
|
21971
|
+
// https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
|
|
21972
|
+
pattern: /(^|[^$\\])'[^']*'/,
|
|
21973
|
+
lookbehind: true,
|
|
21974
|
+
greedy: true
|
|
21975
|
+
},
|
|
21976
|
+
{
|
|
21977
|
+
// https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html
|
|
21978
|
+
pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
|
|
21979
|
+
greedy: true,
|
|
21980
|
+
inside: {
|
|
21981
|
+
entity: insideString.entity
|
|
21982
|
+
}
|
|
21983
|
+
}
|
|
21984
|
+
],
|
|
21985
|
+
environment: {
|
|
21986
|
+
pattern: RegExp('\\$?' + envVars),
|
|
21987
|
+
alias: 'constant'
|
|
21988
|
+
},
|
|
21989
|
+
variable: insideString.variable,
|
|
21990
|
+
function: {
|
|
21991
|
+
pattern:
|
|
21992
|
+
/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
|
|
21993
|
+
lookbehind: true
|
|
21994
|
+
},
|
|
21995
|
+
keyword: {
|
|
21996
|
+
pattern:
|
|
21997
|
+
/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,
|
|
21998
|
+
lookbehind: true
|
|
21999
|
+
},
|
|
22000
|
+
// https://www.gnu.org/software/bash/manual/html_node/Shell-Builtin-Commands.html
|
|
22001
|
+
builtin: {
|
|
22002
|
+
pattern:
|
|
22003
|
+
/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,
|
|
22004
|
+
lookbehind: true,
|
|
22005
|
+
// Alias added to make those easier to distinguish from strings.
|
|
22006
|
+
alias: 'class-name'
|
|
22007
|
+
},
|
|
22008
|
+
boolean: {
|
|
22009
|
+
pattern: /(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,
|
|
22010
|
+
lookbehind: true
|
|
22011
|
+
},
|
|
22012
|
+
'file-descriptor': {
|
|
22013
|
+
pattern: /\B&\d\b/,
|
|
22014
|
+
alias: 'important'
|
|
22015
|
+
},
|
|
22016
|
+
operator: {
|
|
22017
|
+
// Lots of redirections here, but not just that.
|
|
22018
|
+
pattern:
|
|
22019
|
+
/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,
|
|
22020
|
+
inside: {
|
|
22021
|
+
'file-descriptor': {
|
|
22022
|
+
pattern: /^\d/,
|
|
22023
|
+
alias: 'important'
|
|
22024
|
+
}
|
|
22025
|
+
}
|
|
22026
|
+
},
|
|
22027
|
+
punctuation: /\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,
|
|
22028
|
+
number: {
|
|
22029
|
+
pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
|
|
22030
|
+
lookbehind: true
|
|
22031
|
+
}
|
|
22032
|
+
};
|
|
22033
|
+
commandAfterHeredoc.inside = Prism.languages.bash;
|
|
22034
|
+
/* Patterns in command substitution. */
|
|
22035
|
+
var toBeCopied = [
|
|
22036
|
+
'comment',
|
|
22037
|
+
'function-name',
|
|
22038
|
+
'for-or-select',
|
|
22039
|
+
'assign-left',
|
|
22040
|
+
'string',
|
|
22041
|
+
'environment',
|
|
22042
|
+
'function',
|
|
22043
|
+
'keyword',
|
|
22044
|
+
'builtin',
|
|
22045
|
+
'boolean',
|
|
22046
|
+
'file-descriptor',
|
|
22047
|
+
'operator',
|
|
22048
|
+
'punctuation',
|
|
22049
|
+
'number'
|
|
22050
|
+
];
|
|
22051
|
+
var inside = insideString.variable[1].inside;
|
|
22052
|
+
for (var i = 0; i < toBeCopied.length; i++) {
|
|
22053
|
+
inside[toBeCopied[i]] = Prism.languages.bash[toBeCopied[i]];
|
|
22054
|
+
}
|
|
22055
|
+
Prism.languages.shell = Prism.languages.bash;
|
|
22056
|
+
})(Prism);
|
|
22057
|
+
}
|
|
22058
|
+
return bash_1;
|
|
22045
22059
|
}
|
|
22046
22060
|
|
|
22047
|
-
var basic_1
|
|
22048
|
-
|
|
22049
|
-
|
|
22050
|
-
function
|
|
22051
|
-
|
|
22052
|
-
|
|
22053
|
-
|
|
22054
|
-
|
|
22055
|
-
|
|
22056
|
-
|
|
22057
|
-
|
|
22058
|
-
|
|
22059
|
-
|
|
22060
|
-
|
|
22061
|
-
|
|
22062
|
-
|
|
22063
|
-
|
|
22064
|
-
|
|
22065
|
-
|
|
22066
|
-
|
|
22067
|
-
|
|
22068
|
-
|
|
22069
|
-
|
|
22061
|
+
var basic_1;
|
|
22062
|
+
var hasRequiredBasic;
|
|
22063
|
+
|
|
22064
|
+
function requireBasic () {
|
|
22065
|
+
if (hasRequiredBasic) return basic_1;
|
|
22066
|
+
hasRequiredBasic = 1;
|
|
22067
|
+
|
|
22068
|
+
basic_1 = basic;
|
|
22069
|
+
basic.displayName = 'basic';
|
|
22070
|
+
basic.aliases = [];
|
|
22071
|
+
function basic(Prism) {
|
|
22072
|
+
Prism.languages.basic = {
|
|
22073
|
+
comment: {
|
|
22074
|
+
pattern: /(?:!|REM\b).+/i,
|
|
22075
|
+
inside: {
|
|
22076
|
+
keyword: /^REM/i
|
|
22077
|
+
}
|
|
22078
|
+
},
|
|
22079
|
+
string: {
|
|
22080
|
+
pattern: /"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,
|
|
22081
|
+
greedy: true
|
|
22082
|
+
},
|
|
22083
|
+
number: /(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,
|
|
22084
|
+
keyword:
|
|
22085
|
+
/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,
|
|
22086
|
+
function:
|
|
22087
|
+
/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,
|
|
22088
|
+
operator: /<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,
|
|
22089
|
+
punctuation: /[,;:()]/
|
|
22090
|
+
};
|
|
22091
|
+
}
|
|
22092
|
+
return basic_1;
|
|
22070
22093
|
}
|
|
22071
22094
|
|
|
22072
22095
|
var batch_1 = batch;
|
|
@@ -22866,183 +22889,165 @@ function cobol(Prism) {
|
|
|
22866
22889
|
};
|
|
22867
22890
|
}
|
|
22868
22891
|
|
|
22869
|
-
var coffeescript_1;
|
|
22870
|
-
|
|
22871
|
-
|
|
22872
|
-
function
|
|
22873
|
-
if (hasRequiredCoffeescript) return coffeescript_1;
|
|
22874
|
-
hasRequiredCoffeescript = 1;
|
|
22875
|
-
|
|
22876
|
-
coffeescript_1 = coffeescript;
|
|
22877
|
-
coffeescript.displayName = 'coffeescript';
|
|
22878
|
-
coffeescript.aliases = ['coffee'];
|
|
22879
|
-
function coffeescript(Prism) {
|
|
22892
|
+
var coffeescript_1 = coffeescript;
|
|
22893
|
+
coffeescript.displayName = 'coffeescript';
|
|
22894
|
+
coffeescript.aliases = ['coffee'];
|
|
22895
|
+
function coffeescript(Prism) {
|
|
22880
22896
|
(function (Prism) {
|
|
22881
|
-
|
|
22882
|
-
|
|
22883
|
-
|
|
22884
|
-
|
|
22885
|
-
|
|
22886
|
-
|
|
22887
|
-
|
|
22888
|
-
|
|
22889
|
-
|
|
22890
|
-
|
|
22891
|
-
|
|
22892
|
-
|
|
22893
|
-
|
|
22894
|
-
|
|
22895
|
-
|
|
22896
|
-
|
|
22897
|
-
|
|
22898
|
-
|
|
22899
|
-
|
|
22900
|
-
|
|
22901
|
-
|
|
22902
|
-
|
|
22903
|
-
|
|
22904
|
-
|
|
22905
|
-
|
|
22906
|
-
|
|
22907
|
-
|
|
22908
|
-
|
|
22909
|
-
|
|
22910
|
-
|
|
22911
|
-
|
|
22912
|
-
|
|
22913
|
-
|
|
22914
|
-
|
|
22915
|
-
|
|
22916
|
-
|
|
22917
|
-
|
|
22918
|
-
|
|
22919
|
-
|
|
22920
|
-
|
|
22921
|
-
|
|
22922
|
-
|
|
22923
|
-
|
|
22924
|
-
|
|
22925
|
-
|
|
22926
|
-
|
|
22927
|
-
|
|
22928
|
-
|
|
22929
|
-
|
|
22930
|
-
|
|
22931
|
-
|
|
22932
|
-
|
|
22933
|
-
|
|
22934
|
-
|
|
22935
|
-
|
|
22936
|
-
|
|
22937
|
-
|
|
22938
|
-
|
|
22939
|
-
|
|
22940
|
-
|
|
22941
|
-
|
|
22942
|
-
|
|
22943
|
-
|
|
22944
|
-
|
|
22945
|
-
|
|
22946
|
-
|
|
22947
|
-
|
|
22948
|
-
|
|
22949
|
-
|
|
22950
|
-
|
|
22951
|
-
|
|
22952
|
-
|
|
22953
|
-
|
|
22954
|
-
|
|
22955
|
-
|
|
22956
|
-
|
|
22957
|
-
|
|
22958
|
-
|
|
22959
|
-
|
|
22960
|
-
|
|
22961
|
-
|
|
22962
|
-
|
|
22963
|
-
|
|
22964
|
-
|
|
22965
|
-
}
|
|
22966
|
-
return coffeescript_1;
|
|
22897
|
+
// Ignore comments starting with { to privilege string interpolation highlighting
|
|
22898
|
+
var comment = /#(?!\{).+/;
|
|
22899
|
+
var interpolation = {
|
|
22900
|
+
pattern: /#\{[^}]+\}/,
|
|
22901
|
+
alias: 'variable'
|
|
22902
|
+
};
|
|
22903
|
+
Prism.languages.coffeescript = Prism.languages.extend('javascript', {
|
|
22904
|
+
comment: comment,
|
|
22905
|
+
string: [
|
|
22906
|
+
// Strings are multiline
|
|
22907
|
+
{
|
|
22908
|
+
pattern: /'(?:\\[\s\S]|[^\\'])*'/,
|
|
22909
|
+
greedy: true
|
|
22910
|
+
},
|
|
22911
|
+
{
|
|
22912
|
+
// Strings are multiline
|
|
22913
|
+
pattern: /"(?:\\[\s\S]|[^\\"])*"/,
|
|
22914
|
+
greedy: true,
|
|
22915
|
+
inside: {
|
|
22916
|
+
interpolation: interpolation
|
|
22917
|
+
}
|
|
22918
|
+
}
|
|
22919
|
+
],
|
|
22920
|
+
keyword:
|
|
22921
|
+
/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,
|
|
22922
|
+
'class-member': {
|
|
22923
|
+
pattern: /@(?!\d)\w+/,
|
|
22924
|
+
alias: 'variable'
|
|
22925
|
+
}
|
|
22926
|
+
});
|
|
22927
|
+
Prism.languages.insertBefore('coffeescript', 'comment', {
|
|
22928
|
+
'multiline-comment': {
|
|
22929
|
+
pattern: /###[\s\S]+?###/,
|
|
22930
|
+
alias: 'comment'
|
|
22931
|
+
},
|
|
22932
|
+
// Block regexp can contain comments and interpolation
|
|
22933
|
+
'block-regex': {
|
|
22934
|
+
pattern: /\/{3}[\s\S]*?\/{3}/,
|
|
22935
|
+
alias: 'regex',
|
|
22936
|
+
inside: {
|
|
22937
|
+
comment: comment,
|
|
22938
|
+
interpolation: interpolation
|
|
22939
|
+
}
|
|
22940
|
+
}
|
|
22941
|
+
});
|
|
22942
|
+
Prism.languages.insertBefore('coffeescript', 'string', {
|
|
22943
|
+
'inline-javascript': {
|
|
22944
|
+
pattern: /`(?:\\[\s\S]|[^\\`])*`/,
|
|
22945
|
+
inside: {
|
|
22946
|
+
delimiter: {
|
|
22947
|
+
pattern: /^`|`$/,
|
|
22948
|
+
alias: 'punctuation'
|
|
22949
|
+
},
|
|
22950
|
+
script: {
|
|
22951
|
+
pattern: /[\s\S]+/,
|
|
22952
|
+
alias: 'language-javascript',
|
|
22953
|
+
inside: Prism.languages.javascript
|
|
22954
|
+
}
|
|
22955
|
+
}
|
|
22956
|
+
},
|
|
22957
|
+
// Block strings
|
|
22958
|
+
'multiline-string': [
|
|
22959
|
+
{
|
|
22960
|
+
pattern: /'''[\s\S]*?'''/,
|
|
22961
|
+
greedy: true,
|
|
22962
|
+
alias: 'string'
|
|
22963
|
+
},
|
|
22964
|
+
{
|
|
22965
|
+
pattern: /"""[\s\S]*?"""/,
|
|
22966
|
+
greedy: true,
|
|
22967
|
+
alias: 'string',
|
|
22968
|
+
inside: {
|
|
22969
|
+
interpolation: interpolation
|
|
22970
|
+
}
|
|
22971
|
+
}
|
|
22972
|
+
]
|
|
22973
|
+
});
|
|
22974
|
+
Prism.languages.insertBefore('coffeescript', 'keyword', {
|
|
22975
|
+
// Object property
|
|
22976
|
+
property: /(?!\d)\w+(?=\s*:(?!:))/
|
|
22977
|
+
});
|
|
22978
|
+
delete Prism.languages.coffeescript['template-string'];
|
|
22979
|
+
Prism.languages.coffee = Prism.languages.coffeescript;
|
|
22980
|
+
})(Prism);
|
|
22967
22981
|
}
|
|
22968
22982
|
|
|
22969
|
-
var concurnas_1;
|
|
22970
|
-
|
|
22971
|
-
|
|
22972
|
-
function
|
|
22973
|
-
|
|
22974
|
-
|
|
22975
|
-
|
|
22976
|
-
|
|
22977
|
-
|
|
22978
|
-
|
|
22979
|
-
|
|
22980
|
-
|
|
22981
|
-
|
|
22982
|
-
|
|
22983
|
-
|
|
22984
|
-
|
|
22985
|
-
|
|
22986
|
-
|
|
22987
|
-
|
|
22988
|
-
|
|
22989
|
-
|
|
22990
|
-
|
|
22991
|
-
|
|
22992
|
-
|
|
22993
|
-
|
|
22994
|
-
|
|
22995
|
-
|
|
22996
|
-
|
|
22997
|
-
|
|
22998
|
-
|
|
22999
|
-
|
|
23000
|
-
|
|
23001
|
-
|
|
23002
|
-
|
|
23003
|
-
|
|
23004
|
-
|
|
23005
|
-
|
|
23006
|
-
|
|
23007
|
-
|
|
23008
|
-
|
|
23009
|
-
|
|
23010
|
-
|
|
23011
|
-
|
|
23012
|
-
|
|
23013
|
-
|
|
23014
|
-
|
|
23015
|
-
|
|
23016
|
-
|
|
23017
|
-
|
|
23018
|
-
|
|
23019
|
-
|
|
23020
|
-
|
|
23021
|
-
|
|
23022
|
-
|
|
23023
|
-
|
|
23024
|
-
|
|
23025
|
-
|
|
23026
|
-
|
|
23027
|
-
|
|
23028
|
-
|
|
23029
|
-
|
|
23030
|
-
|
|
23031
|
-
|
|
23032
|
-
|
|
23033
|
-
|
|
23034
|
-
|
|
23035
|
-
|
|
23036
|
-
|
|
23037
|
-
inside: Prism.languages.concurnas
|
|
23038
|
-
},
|
|
23039
|
-
string: /[\s\S]+/
|
|
23040
|
-
}
|
|
23041
|
-
}
|
|
23042
|
-
});
|
|
23043
|
-
Prism.languages.conc = Prism.languages.concurnas;
|
|
23044
|
-
}
|
|
23045
|
-
return concurnas_1;
|
|
22983
|
+
var concurnas_1 = concurnas;
|
|
22984
|
+
concurnas.displayName = 'concurnas';
|
|
22985
|
+
concurnas.aliases = ['conc'];
|
|
22986
|
+
function concurnas(Prism) {
|
|
22987
|
+
Prism.languages.concurnas = {
|
|
22988
|
+
comment: {
|
|
22989
|
+
pattern: /(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,
|
|
22990
|
+
lookbehind: true,
|
|
22991
|
+
greedy: true
|
|
22992
|
+
},
|
|
22993
|
+
langext: {
|
|
22994
|
+
pattern: /\b\w+\s*\|\|[\s\S]+?\|\|/,
|
|
22995
|
+
greedy: true,
|
|
22996
|
+
inside: {
|
|
22997
|
+
'class-name': /^\w+/,
|
|
22998
|
+
string: {
|
|
22999
|
+
pattern: /(^\s*\|\|)[\s\S]+(?=\|\|$)/,
|
|
23000
|
+
lookbehind: true
|
|
23001
|
+
},
|
|
23002
|
+
punctuation: /\|\|/
|
|
23003
|
+
}
|
|
23004
|
+
},
|
|
23005
|
+
function: {
|
|
23006
|
+
pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,
|
|
23007
|
+
lookbehind: true
|
|
23008
|
+
},
|
|
23009
|
+
keyword:
|
|
23010
|
+
/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,
|
|
23011
|
+
boolean: /\b(?:false|true)\b/,
|
|
23012
|
+
number:
|
|
23013
|
+
/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,
|
|
23014
|
+
punctuation: /[{}[\];(),.:]/,
|
|
23015
|
+
operator:
|
|
23016
|
+
/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,
|
|
23017
|
+
annotation: {
|
|
23018
|
+
pattern: /@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,
|
|
23019
|
+
alias: 'builtin'
|
|
23020
|
+
}
|
|
23021
|
+
};
|
|
23022
|
+
Prism.languages.insertBefore('concurnas', 'langext', {
|
|
23023
|
+
'regex-literal': {
|
|
23024
|
+
pattern: /\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,
|
|
23025
|
+
greedy: true,
|
|
23026
|
+
inside: {
|
|
23027
|
+
interpolation: {
|
|
23028
|
+
pattern:
|
|
23029
|
+
/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
|
|
23030
|
+
lookbehind: true,
|
|
23031
|
+
inside: Prism.languages.concurnas
|
|
23032
|
+
},
|
|
23033
|
+
regex: /[\s\S]+/
|
|
23034
|
+
}
|
|
23035
|
+
},
|
|
23036
|
+
'string-literal': {
|
|
23037
|
+
pattern: /(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,
|
|
23038
|
+
greedy: true,
|
|
23039
|
+
inside: {
|
|
23040
|
+
interpolation: {
|
|
23041
|
+
pattern:
|
|
23042
|
+
/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,
|
|
23043
|
+
lookbehind: true,
|
|
23044
|
+
inside: Prism.languages.concurnas
|
|
23045
|
+
},
|
|
23046
|
+
string: /[\s\S]+/
|
|
23047
|
+
}
|
|
23048
|
+
}
|
|
23049
|
+
});
|
|
23050
|
+
Prism.languages.conc = Prism.languages.concurnas;
|
|
23046
23051
|
}
|
|
23047
23052
|
|
|
23048
23053
|
var coq_1;
|
|
@@ -38629,7 +38634,7 @@ var hasRequiredShellSession;
|
|
|
38629
38634
|
function requireShellSession () {
|
|
38630
38635
|
if (hasRequiredShellSession) return shellSession_1;
|
|
38631
38636
|
hasRequiredShellSession = 1;
|
|
38632
|
-
var refractorBash =
|
|
38637
|
+
var refractorBash = requireBash();
|
|
38633
38638
|
shellSession_1 = shellSession;
|
|
38634
38639
|
shellSession.displayName = 'shellSession';
|
|
38635
38640
|
shellSession.aliases = [];
|
|
@@ -40096,7 +40101,7 @@ var hasRequiredVbnet;
|
|
|
40096
40101
|
function requireVbnet () {
|
|
40097
40102
|
if (hasRequiredVbnet) return vbnet_1;
|
|
40098
40103
|
hasRequiredVbnet = 1;
|
|
40099
|
-
var refractorBasic =
|
|
40104
|
+
var refractorBasic = requireBasic();
|
|
40100
40105
|
vbnet_1 = vbnet;
|
|
40101
40106
|
vbnet.displayName = 'vbnet';
|
|
40102
40107
|
vbnet.aliases = [];
|
|
@@ -42827,7 +42832,7 @@ refractor.register(apl_1);
|
|
|
42827
42832
|
refractor.register(applescript_1);
|
|
42828
42833
|
refractor.register(aql_1);
|
|
42829
42834
|
refractor.register(arduino_1);
|
|
42830
|
-
refractor.register(
|
|
42835
|
+
refractor.register(arff_1);
|
|
42831
42836
|
refractor.register(asciidoc_1);
|
|
42832
42837
|
refractor.register(asm6502_1);
|
|
42833
42838
|
refractor.register(asmatmel_1);
|
|
@@ -42835,9 +42840,9 @@ refractor.register(aspnet_1);
|
|
|
42835
42840
|
refractor.register(autohotkey_1);
|
|
42836
42841
|
refractor.register(autoit_1);
|
|
42837
42842
|
refractor.register(avisynth_1);
|
|
42838
|
-
refractor.register(
|
|
42839
|
-
refractor.register(
|
|
42840
|
-
refractor.register(
|
|
42843
|
+
refractor.register(requireAvroIdl());
|
|
42844
|
+
refractor.register(requireBash());
|
|
42845
|
+
refractor.register(requireBasic());
|
|
42841
42846
|
refractor.register(batch_1);
|
|
42842
42847
|
refractor.register(bbcode_1);
|
|
42843
42848
|
refractor.register(bicep_1);
|
|
@@ -42855,8 +42860,8 @@ refractor.register(cil_1);
|
|
|
42855
42860
|
refractor.register(clojure_1);
|
|
42856
42861
|
refractor.register(cmake_1);
|
|
42857
42862
|
refractor.register(cobol_1);
|
|
42858
|
-
refractor.register(
|
|
42859
|
-
refractor.register(
|
|
42863
|
+
refractor.register(coffeescript_1);
|
|
42864
|
+
refractor.register(concurnas_1);
|
|
42860
42865
|
refractor.register(requireCoq());
|
|
42861
42866
|
refractor.register(requireCpp());
|
|
42862
42867
|
refractor.register(requireCrystal());
|
|
@@ -45895,7 +45900,7 @@ var getDateRangeTag = function getDateRangeTag() {
|
|
|
45895
45900
|
var dayDifference = differenceInDays(fromUnixTime(endUnix), fromUnixTime(startUnix));
|
|
45896
45901
|
var hourDifference = differenceInHours(fromUnixTime(endUnix), fromUnixTime(startUnix));
|
|
45897
45902
|
if (hourDifference <= 24) {
|
|
45898
|
-
return '
|
|
45903
|
+
return 'hour';
|
|
45899
45904
|
}
|
|
45900
45905
|
if (dayDifference >= 30) {
|
|
45901
45906
|
return 'month';
|
|
@@ -109674,7 +109679,7 @@ var BaseAreaChart = function BaseAreaChart(props) {
|
|
|
109674
109679
|
gridContainLabel = props.gridContainLabel,
|
|
109675
109680
|
seriesData = props.seriesData,
|
|
109676
109681
|
tooltip = props.tooltip,
|
|
109677
|
-
|
|
109682
|
+
legend = props.legend,
|
|
109678
109683
|
xAxisLabelShow = props.xAxisLabelShow,
|
|
109679
109684
|
xSplitLineShow = props.xSplitLineShow,
|
|
109680
109685
|
xAxisLineShow = props.xAxisLineShow,
|
|
@@ -109775,10 +109780,9 @@ var BaseAreaChart = function BaseAreaChart(props) {
|
|
|
109775
109780
|
containLabel: gridContainLabel
|
|
109776
109781
|
}, gridOptions),
|
|
109777
109782
|
tooltip: _objectSpread2({}, tooltip),
|
|
109778
|
-
legend: {
|
|
109779
|
-
show: legendShow,
|
|
109783
|
+
legend: _objectSpread2(_objectSpread2({}, legend), {}, {
|
|
109780
109784
|
data: Object.keys((_seriesData$chartData6 = seriesData === null || seriesData === void 0 ? void 0 : seriesData.chartData) !== null && _seriesData$chartData6 !== void 0 ? _seriesData$chartData6 : [])
|
|
109781
|
-
},
|
|
109785
|
+
}),
|
|
109782
109786
|
xAxis: [{
|
|
109783
109787
|
type: 'category',
|
|
109784
109788
|
axisLabel: {
|
|
@@ -109827,7 +109831,7 @@ BaseAreaChart.propTypes = {
|
|
|
109827
109831
|
gridOptions: propTypes$1.exports.object,
|
|
109828
109832
|
gridContainLabel: propTypes$1.exports.bool,
|
|
109829
109833
|
tooltip: propTypes$1.exports.object,
|
|
109830
|
-
|
|
109834
|
+
legend: propTypes$1.exports.object,
|
|
109831
109835
|
xAxisLabelShow: propTypes$1.exports.bool,
|
|
109832
109836
|
xSplitLineShow: propTypes$1.exports.bool,
|
|
109833
109837
|
xAxisLineShow: propTypes$1.exports.bool,
|
|
@@ -109863,7 +109867,7 @@ BaseAreaChart.defaultProps = {
|
|
|
109863
109867
|
gridContainLabel: false,
|
|
109864
109868
|
tooltip: {},
|
|
109865
109869
|
stacked: false,
|
|
109866
|
-
|
|
109870
|
+
legend: {},
|
|
109867
109871
|
xAxisLabelShow: false,
|
|
109868
109872
|
xSplitLineShow: false,
|
|
109869
109873
|
xAxisLineShow: false,
|
|
@@ -110144,7 +110148,8 @@ var BaseWidget = function BaseWidget(props) {
|
|
|
110144
110148
|
children = props.children,
|
|
110145
110149
|
fallbackProps = props.fallbackProps,
|
|
110146
110150
|
theme = props.theme,
|
|
110147
|
-
setFallback = props.setFallback
|
|
110151
|
+
setFallback = props.setFallback,
|
|
110152
|
+
showFallback = props.showFallback;
|
|
110148
110153
|
var emptyChartData = React.useMemo(function () {
|
|
110149
110154
|
return React.Children.toArray(children).every(function (child) {
|
|
110150
110155
|
var _child$props$seriesDa, _child$props, _child$props$seriesDa2;
|
|
@@ -110189,7 +110194,7 @@ var BaseWidget = function BaseWidget(props) {
|
|
|
110189
110194
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
110190
110195
|
className: modules_6a0e74b6.children,
|
|
110191
110196
|
"data-elem": "children",
|
|
110192
|
-
children: [!loading && emptyChartData && /*#__PURE__*/jsxRuntime.jsx(WidgetFallback, _objectSpread2(_objectSpread2({}, fallbackProps), {}, {
|
|
110197
|
+
children: [showFallback && !loading && emptyChartData && /*#__PURE__*/jsxRuntime.jsx(WidgetFallback, _objectSpread2(_objectSpread2({}, fallbackProps), {}, {
|
|
110193
110198
|
onReload: onReload,
|
|
110194
110199
|
theme: theme
|
|
110195
110200
|
})), React.Children.map(children, function (child) {
|
|
@@ -110217,7 +110222,8 @@ BaseWidget.propTypes = {
|
|
|
110217
110222
|
subtitle: propTypes$1.exports.string
|
|
110218
110223
|
}),
|
|
110219
110224
|
theme: propTypes$1.exports.oneOf(['light', 'dark']),
|
|
110220
|
-
setFallback: propTypes$1.exports.func
|
|
110225
|
+
setFallback: propTypes$1.exports.func,
|
|
110226
|
+
showFallback: propTypes$1.exports.bool
|
|
110221
110227
|
};
|
|
110222
110228
|
BaseWidget.defaultProps = {
|
|
110223
110229
|
loading: false,
|
|
@@ -110233,7 +110239,8 @@ BaseWidget.defaultProps = {
|
|
|
110233
110239
|
subtitle: 'There could be something happening on our end. Reload this widget to try again.'
|
|
110234
110240
|
},
|
|
110235
110241
|
theme: 'dark',
|
|
110236
|
-
setFallback: function setFallback() {}
|
|
110242
|
+
setFallback: function setFallback() {},
|
|
110243
|
+
showFallback: false
|
|
110237
110244
|
};
|
|
110238
110245
|
|
|
110239
110246
|
var css$1 = ".DisplayPicture_module_root__a7ba07d1.DisplayPicture_module_sm__a7ba07d1 img {\n height: 1.5rem;\n width: 1.5rem;\n border-radius: 100%;\n}\n.DisplayPicture_module_root__a7ba07d1.DisplayPicture_module_sm__a7ba07d1 div {\n height: 1.5rem;\n width: 1.5rem;\n border-radius: 100%;\n background-color: var(--highlight);\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n.DisplayPicture_module_root__a7ba07d1.DisplayPicture_module_sm__a7ba07d1 div span {\n font-size: 1rem;\n font-weight: 600;\n color: var(--white);\n}\n.DisplayPicture_module_root__a7ba07d1.DisplayPicture_module_md__a7ba07d1 img {\n height: 5.3125rem;\n width: 5.3125rem;\n border-radius: 100%;\n}\n.DisplayPicture_module_root__a7ba07d1.DisplayPicture_module_md__a7ba07d1 div {\n height: 5.3125rem;\n width: 5.3125rem;\n border-radius: 100%;\n background-color: var(--highlight);\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n}\n.DisplayPicture_module_root__a7ba07d1.DisplayPicture_module_md__a7ba07d1 div span {\n font-size: 2rem;\n font-weight: 600;\n color: var(--white);\n}";
|