@powerlines/plugin-env 0.16.66 → 0.16.68

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 (142) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +0 -2
  2. package/dist/_virtual/_rolldown/runtime.mjs +2 -31
  3. package/dist/babel/plugin.cjs +83 -11
  4. package/dist/babel/plugin.mjs +83 -11
  5. package/dist/babel/plugin.mjs.map +1 -1
  6. package/dist/components/env-builtin.cjs +1 -1
  7. package/dist/components/env-builtin.mjs +1 -1
  8. package/dist/helpers/automd-generator.cjs +14 -4
  9. package/dist/helpers/automd-generator.d.mts +1 -1
  10. package/dist/helpers/automd-generator.mjs +14 -4
  11. package/dist/helpers/automd-generator.mjs.map +1 -1
  12. package/dist/helpers/create-reflection-resource.cjs +8 -0
  13. package/dist/helpers/create-reflection-resource.mjs +9 -0
  14. package/dist/helpers/create-reflection-resource.mjs.map +1 -1
  15. package/dist/helpers/docs-helper.cjs +8 -0
  16. package/dist/helpers/docs-helper.mjs +8 -0
  17. package/dist/helpers/docs-helper.mjs.map +1 -1
  18. package/dist/helpers/index.cjs +1 -0
  19. package/dist/helpers/index.mjs +2 -2
  20. package/dist/helpers/load.cjs +61 -10
  21. package/dist/helpers/load.mjs +60 -9
  22. package/dist/helpers/load.mjs.map +1 -1
  23. package/dist/helpers/persistence.cjs +108 -1
  24. package/dist/helpers/persistence.mjs +108 -1
  25. package/dist/helpers/persistence.mjs.map +1 -1
  26. package/dist/helpers/reflect.cjs +156 -3
  27. package/dist/helpers/reflect.mjs +156 -4
  28. package/dist/helpers/reflect.mjs.map +1 -1
  29. package/dist/helpers/source-file-env.cjs +34 -4
  30. package/dist/helpers/source-file-env.mjs +34 -4
  31. package/dist/helpers/source-file-env.mjs.map +1 -1
  32. package/dist/helpers/template-helpers.cjs +33 -5
  33. package/dist/helpers/template-helpers.mjs +33 -5
  34. package/dist/helpers/template-helpers.mjs.map +1 -1
  35. package/dist/types/index.cjs +11 -0
  36. package/dist/types/index.mjs +4 -1
  37. package/dist/types/plugin.cjs +137 -0
  38. package/dist/types/plugin.d.mts +4 -4
  39. package/dist/types/plugin.mjs +132 -1
  40. package/dist/types/plugin.mjs.map +1 -0
  41. package/dist/types/runtime.cjs +244 -0
  42. package/dist/types/runtime.mjs +242 -1
  43. package/dist/types/runtime.mjs.map +1 -0
  44. package/package.json +11 -26
  45. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.2/node_modules/c12/dist/index.cjs +0 -346
  46. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.2/node_modules/c12/dist/index.mjs +0 -347
  47. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.2/node_modules/c12/dist/index.mjs.map +0 -1
  48. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/_format.cjs +0 -23
  49. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/_format.mjs +0 -23
  50. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/_format.mjs.map +0 -1
  51. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.cjs +0 -10
  52. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.mjs +0 -11
  53. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.mjs.map +0 -1
  54. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.cjs +0 -1060
  55. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs +0 -1060
  56. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs.map +0 -1
  57. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/json5.cjs +0 -761
  58. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/json5.mjs +0 -761
  59. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/json5.mjs.map +0 -1
  60. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/jsonc-parser.cjs +0 -388
  61. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/jsonc-parser.mjs +0 -388
  62. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/jsonc-parser.mjs.map +0 -1
  63. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.cjs +0 -639
  64. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.mjs +0 -639
  65. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.mjs.map +0 -1
  66. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.cjs +0 -17
  67. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs +0 -15
  68. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs.map +0 -1
  69. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/json5.cjs +0 -13
  70. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/json5.mjs +0 -14
  71. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/json5.mjs.map +0 -1
  72. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/jsonc.cjs +0 -11
  73. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/jsonc.mjs +0 -12
  74. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/jsonc.mjs.map +0 -1
  75. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/toml.cjs +0 -11
  76. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/toml.mjs +0 -12
  77. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/toml.mjs.map +0 -1
  78. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.cjs +0 -11
  79. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.mjs +0 -12
  80. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.mjs.map +0 -1
  81. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +0 -46
  82. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs +0 -46
  83. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs.map +0 -1
  84. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/lib/main.cjs +0 -285
  85. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/lib/main.mjs +0 -283
  86. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/lib/main.mjs.map +0 -1
  87. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/package.cjs +0 -71
  88. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/package.mjs +0 -69
  89. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/package.mjs.map +0 -1
  90. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.cjs +0 -1013
  91. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +0 -1008
  92. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs.map +0 -1
  93. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.cjs +0 -23
  94. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +0 -10
  95. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs.map +0 -1
  96. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.cjs +0 -2695
  97. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +0 -2682
  98. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs.map +0 -1
  99. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.cjs +0 -4457
  100. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs +0 -4455
  101. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs.map +0 -1
  102. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.cjs +0 -29
  103. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs +0 -30
  104. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs.map +0 -1
  105. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +0 -181
  106. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +0 -177
  107. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs.map +0 -1
  108. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs +0 -22
  109. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +0 -18
  110. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs.map +0 -1
  111. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs +0 -3967
  112. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs +0 -3963
  113. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs.map +0 -1
  114. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.cjs +0 -11766
  115. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs +0 -11762
  116. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs.map +0 -1
  117. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +0 -25
  118. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs +0 -21
  119. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs.map +0 -1
  120. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs +0 -20
  121. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs +0 -18
  122. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs.map +0 -1
  123. package/dist/node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.cjs +0 -178
  124. package/dist/node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.mjs +0 -176
  125. package/dist/node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.mjs.map +0 -1
  126. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.cjs +0 -13
  127. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs +0 -13
  128. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs.map +0 -1
  129. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.cjs +0 -3
  130. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.mjs +0 -3
  131. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs +0 -145
  132. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +0 -139
  133. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs.map +0 -1
  134. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.cjs +0 -128
  135. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +0 -127
  136. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs.map +0 -1
  137. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.cjs +0 -138
  138. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +0 -137
  139. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs.map +0 -1
  140. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.cjs +0 -629
  141. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs +0 -628
  142. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs.map +0 -1
@@ -1,639 +0,0 @@
1
-
2
- //#region ../../node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.mjs
3
- /*!
4
- * Copyright (c) Squirrel Chat et al., All rights reserved.
5
- * SPDX-License-Identifier: BSD-3-Clause
6
- *
7
- * Redistribution and use in source and binary forms, with or without
8
- * modification, are permitted provided that the following conditions are met:
9
- *
10
- * 1. Redistributions of source code must retain the above copyright notice, this
11
- * list of conditions and the following disclaimer.
12
- * 2. Redistributions in binary form must reproduce the above copyright notice,
13
- * this list of conditions and the following disclaimer in the
14
- * documentation and/or other materials provided with the distribution.
15
- * 3. Neither the name of the copyright holder nor the names of its contributors
16
- * may be used to endorse or promote products derived from this software without
17
- * specific prior written permission.
18
- *
19
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
- */
30
- function e(e, t) {
31
- let n = e.slice(0, t).split(/\r\n|\n|\r/g);
32
- return [n.length, n.pop().length + 1];
33
- }
34
- function t(e, t, n) {
35
- let r = e.split(/\r\n|\n|\r/g), i = ``, a = (Math.log10(t + 1) | 0) + 1;
36
- for (let e = t - 1; e <= t + 1; e++) {
37
- let o = r[e - 1];
38
- o && (i += e.toString().padEnd(a, ` `), i += `: `, i += o, i += `
39
- `, e === t && (i += ` `.repeat(a + n + 2), i += `^
40
- `));
41
- }
42
- return i;
43
- }
44
- var n = class extends Error {
45
- line;
46
- column;
47
- codeblock;
48
- constructor(n, r) {
49
- let [i, a] = e(r.toml, r.ptr), o = t(r.toml, i, a);
50
- super(`Invalid TOML document: ${n}\n\n${o}`, r), this.line = i, this.column = a, this.codeblock = o;
51
- }
52
- };
53
- /*!
54
- * Copyright (c) Squirrel Chat et al., All rights reserved.
55
- * SPDX-License-Identifier: BSD-3-Clause
56
- *
57
- * Redistribution and use in source and binary forms, with or without
58
- * modification, are permitted provided that the following conditions are met:
59
- *
60
- * 1. Redistributions of source code must retain the above copyright notice, this
61
- * list of conditions and the following disclaimer.
62
- * 2. Redistributions in binary form must reproduce the above copyright notice,
63
- * this list of conditions and the following disclaimer in the
64
- * documentation and/or other materials provided with the distribution.
65
- * 3. Neither the name of the copyright holder nor the names of its contributors
66
- * may be used to endorse or promote products derived from this software without
67
- * specific prior written permission.
68
- *
69
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
70
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
71
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
72
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
73
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
74
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
75
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
76
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
77
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
78
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
79
- */
80
- function r(e, t) {
81
- let n = 0;
82
- for (; e[t - ++n] === `\\`;);
83
- return --n && n % 2;
84
- }
85
- function i(e, t = 0, n = e.length) {
86
- let r = e.indexOf(`
87
- `, t);
88
- return e[r - 1] === `\r` && r--, r <= n ? r : -1;
89
- }
90
- function a(e, t) {
91
- for (let r = t; r < e.length; r++) {
92
- let i = e[r];
93
- if (i === `
94
- `) return r;
95
- if (i === `\r` && e[r + 1] === `
96
- `) return r + 1;
97
- if (i < ` ` && i !== ` ` || i === ``) throw new n(`control characters are not allowed in comments`, {
98
- toml: e,
99
- ptr: t
100
- });
101
- }
102
- return e.length;
103
- }
104
- function o(e, t, n, r) {
105
- let i;
106
- for (; (i = e[t]) === ` ` || i === ` ` || !n && (i === `
107
- ` || i === `\r` && e[t + 1] === `
108
- `);) t++;
109
- return r || i !== `#` ? t : o(e, a(e, t), n);
110
- }
111
- function s(e, t, r, a, o = !1) {
112
- if (!a) return t = i(e, t), t < 0 ? e.length : t;
113
- for (let n = t; n < e.length; n++) {
114
- let t = e[n];
115
- if (t === `#`) n = i(e, n);
116
- else if (t === r) return n + 1;
117
- else if (t === a || o && (t === `
118
- ` || t === `\r` && e[n + 1] === `
119
- `)) return n;
120
- }
121
- throw new n(`cannot find end of structure`, {
122
- toml: e,
123
- ptr: t
124
- });
125
- }
126
- function c(e, t) {
127
- let n = e[t], i = n === e[t + 1] && e[t + 1] === e[t + 2] ? e.slice(t, t + 3) : n;
128
- t += i.length - 1;
129
- do
130
- t = e.indexOf(i, ++t);
131
- while (t > -1 && n !== `'` && r(e, t));
132
- return t > -1 && (t += i.length, i.length > 1 && (e[t] === n && t++, e[t] === n && t++)), t;
133
- }
134
- /*!
135
- * Copyright (c) Squirrel Chat et al., All rights reserved.
136
- * SPDX-License-Identifier: BSD-3-Clause
137
- *
138
- * Redistribution and use in source and binary forms, with or without
139
- * modification, are permitted provided that the following conditions are met:
140
- *
141
- * 1. Redistributions of source code must retain the above copyright notice, this
142
- * list of conditions and the following disclaimer.
143
- * 2. Redistributions in binary form must reproduce the above copyright notice,
144
- * this list of conditions and the following disclaimer in the
145
- * documentation and/or other materials provided with the distribution.
146
- * 3. Neither the name of the copyright holder nor the names of its contributors
147
- * may be used to endorse or promote products derived from this software without
148
- * specific prior written permission.
149
- *
150
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
151
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
152
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
153
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
154
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
155
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
156
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
157
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
158
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
159
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
160
- */
161
- let l = /^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i;
162
- var u = class e extends Date {
163
- #e = !1;
164
- #t = !1;
165
- #n = null;
166
- constructor(e) {
167
- let t = !0, n = !0, r = `Z`;
168
- if (typeof e == `string`) {
169
- let i = e.match(l);
170
- i ? (i[1] || (t = !1, e = `0000-01-01T${e}`), n = !!i[2], n && e[10] === ` ` && (e = e.replace(` `, `T`)), i[2] && +i[2] > 23 ? e = `` : (r = i[3] || null, e = e.toUpperCase(), !r && n && (e += `Z`))) : e = ``;
171
- }
172
- super(e), isNaN(this.getTime()) || (this.#e = t, this.#t = n, this.#n = r);
173
- }
174
- isDateTime() {
175
- return this.#e && this.#t;
176
- }
177
- isLocal() {
178
- return !this.#e || !this.#t || !this.#n;
179
- }
180
- isDate() {
181
- return this.#e && !this.#t;
182
- }
183
- isTime() {
184
- return this.#t && !this.#e;
185
- }
186
- isValid() {
187
- return this.#e || this.#t;
188
- }
189
- toISOString() {
190
- let e = super.toISOString();
191
- if (this.isDate()) return e.slice(0, 10);
192
- if (this.isTime()) return e.slice(11, 23);
193
- if (this.#n === null) return e.slice(0, -1);
194
- if (this.#n === `Z`) return e;
195
- let t = this.#n.slice(1, 3) * 60 + +this.#n.slice(4, 6);
196
- return t = this.#n[0] === `-` ? t : -t, (/* @__PURE__ */ new Date(this.getTime() - t * 6e4)).toISOString().slice(0, -1) + this.#n;
197
- }
198
- static wrapAsOffsetDateTime(t, n = `Z`) {
199
- let r = new e(t);
200
- return r.#n = n, r;
201
- }
202
- static wrapAsLocalDateTime(t) {
203
- let n = new e(t);
204
- return n.#n = null, n;
205
- }
206
- static wrapAsLocalDate(t) {
207
- let n = new e(t);
208
- return n.#t = !1, n.#n = null, n;
209
- }
210
- static wrapAsLocalTime(t) {
211
- let n = new e(t);
212
- return n.#e = !1, n.#n = null, n;
213
- }
214
- };
215
- /*!
216
- * Copyright (c) Squirrel Chat et al., All rights reserved.
217
- * SPDX-License-Identifier: BSD-3-Clause
218
- *
219
- * Redistribution and use in source and binary forms, with or without
220
- * modification, are permitted provided that the following conditions are met:
221
- *
222
- * 1. Redistributions of source code must retain the above copyright notice, this
223
- * list of conditions and the following disclaimer.
224
- * 2. Redistributions in binary form must reproduce the above copyright notice,
225
- * this list of conditions and the following disclaimer in the
226
- * documentation and/or other materials provided with the distribution.
227
- * 3. Neither the name of the copyright holder nor the names of its contributors
228
- * may be used to endorse or promote products derived from this software without
229
- * specific prior written permission.
230
- *
231
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
232
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
233
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
234
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
235
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
236
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
237
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
238
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
239
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
240
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
241
- */
242
- let d = /^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/, f = /^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/, p = /^[+-]?0[0-9_]/, m = /^[0-9a-f]{2,8}$/i, h = {
243
- b: `\b`,
244
- t: ` `,
245
- n: `
246
- `,
247
- f: `\f`,
248
- r: `\r`,
249
- e: `\x1B`,
250
- "\"": `"`,
251
- "\\": `\\`
252
- };
253
- function g(e, t = 0, r = e.length) {
254
- let i = e[t] === `'`, a = e[t++] === e[t] && e[t] === e[t + 1];
255
- a && (r -= 2, e[t += 2] === `\r` && t++, e[t] === `
256
- ` && t++);
257
- let s = 0, c, l = ``, u = t;
258
- for (; t < r - 1;) {
259
- let r = e[t++];
260
- if (r === `
261
- ` || r === `\r` && e[t] === `
262
- `) {
263
- if (!a) throw new n(`newlines are not allowed in strings`, {
264
- toml: e,
265
- ptr: t - 1
266
- });
267
- } else if (r < ` ` && r !== ` ` || r === ``) throw new n(`control characters are not allowed in strings`, {
268
- toml: e,
269
- ptr: t - 1
270
- });
271
- if (c) {
272
- if (c = !1, r === `x` || r === `u` || r === `U`) {
273
- let i = e.slice(t, t += r === `x` ? 2 : r === `u` ? 4 : 8);
274
- if (!m.test(i)) throw new n(`invalid unicode escape`, {
275
- toml: e,
276
- ptr: s
277
- });
278
- try {
279
- l += String.fromCodePoint(parseInt(i, 16));
280
- } catch {
281
- throw new n(`invalid unicode escape`, {
282
- toml: e,
283
- ptr: s
284
- });
285
- }
286
- } else if (a && (r === `
287
- ` || r === ` ` || r === ` ` || r === `\r`)) {
288
- if (t = o(e, t - 1, !0), e[t] !== `
289
- ` && e[t] !== `\r`) throw new n(`invalid escape: only line-ending whitespace may be escaped`, {
290
- toml: e,
291
- ptr: s
292
- });
293
- t = o(e, t);
294
- } else if (r in h) l += h[r];
295
- else throw new n(`unrecognized escape sequence`, {
296
- toml: e,
297
- ptr: s
298
- });
299
- u = t;
300
- } else !i && r === `\\` && (s = t - 1, c = !0, l += e.slice(u, s));
301
- }
302
- return l + e.slice(u, r - 1);
303
- }
304
- function _(e, t, r, i) {
305
- if (e === `true`) return !0;
306
- if (e === `false`) return !1;
307
- if (e === `-inf`) return -Infinity;
308
- if (e === `inf` || e === `+inf`) return Infinity;
309
- if (e === `nan` || e === `+nan` || e === `-nan`) return NaN;
310
- if (e === `-0`) return i ? 0n : 0;
311
- let a = d.test(e);
312
- if (a || f.test(e)) {
313
- if (p.test(e)) throw new n(`leading zeroes are not allowed`, {
314
- toml: t,
315
- ptr: r
316
- });
317
- e = e.replace(/_/g, ``);
318
- let o = +e;
319
- if (isNaN(o)) throw new n(`invalid number`, {
320
- toml: t,
321
- ptr: r
322
- });
323
- if (a) {
324
- if ((a = !Number.isSafeInteger(o)) && !i) throw new n(`integer value cannot be represented losslessly`, {
325
- toml: t,
326
- ptr: r
327
- });
328
- (a || i === !0) && (o = BigInt(e));
329
- }
330
- return o;
331
- }
332
- let o = new u(e);
333
- if (!o.isValid()) throw new n(`invalid value`, {
334
- toml: t,
335
- ptr: r
336
- });
337
- return o;
338
- }
339
- /*!
340
- * Copyright (c) Squirrel Chat et al., All rights reserved.
341
- * SPDX-License-Identifier: BSD-3-Clause
342
- *
343
- * Redistribution and use in source and binary forms, with or without
344
- * modification, are permitted provided that the following conditions are met:
345
- *
346
- * 1. Redistributions of source code must retain the above copyright notice, this
347
- * list of conditions and the following disclaimer.
348
- * 2. Redistributions in binary form must reproduce the above copyright notice,
349
- * this list of conditions and the following disclaimer in the
350
- * documentation and/or other materials provided with the distribution.
351
- * 3. Neither the name of the copyright holder nor the names of its contributors
352
- * may be used to endorse or promote products derived from this software without
353
- * specific prior written permission.
354
- *
355
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
356
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
357
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
358
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
359
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
360
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
361
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
362
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
363
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
364
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
365
- */
366
- function v(e, t, n) {
367
- let r = e.slice(t, n), i = r.indexOf(`#`);
368
- return i > -1 && (a(e, i), r = r.slice(0, i)), [r.trimEnd(), i];
369
- }
370
- function y(e, t, r, i, a) {
371
- if (i === 0) throw new n(`document contains excessively nested structures. aborting.`, {
372
- toml: e,
373
- ptr: t
374
- });
375
- let l = e[t];
376
- if (l === `[` || l === `{`) {
377
- let [s, c] = l === `[` ? C(e, t, i, a) : S(e, t, i, a);
378
- if (r) {
379
- if (c = o(e, c), e[c] === `,`) c++;
380
- else if (e[c] !== r) throw new n(`expected comma or end of structure`, {
381
- toml: e,
382
- ptr: c
383
- });
384
- }
385
- return [s, c];
386
- }
387
- let u;
388
- if (l === `"` || l === `'`) {
389
- u = c(e, t);
390
- let i = g(e, t, u);
391
- if (r) {
392
- if (u = o(e, u), e[u] && e[u] !== `,` && e[u] !== r && e[u] !== `
393
- ` && e[u] !== `\r`) throw new n(`unexpected character encountered`, {
394
- toml: e,
395
- ptr: u
396
- });
397
- u += +(e[u] === `,`);
398
- }
399
- return [i, u];
400
- }
401
- u = s(e, t, `,`, r);
402
- let d = v(e, t, u - +(e[u - 1] === `,`));
403
- if (!d[0]) throw new n(`incomplete key-value declaration: no value specified`, {
404
- toml: e,
405
- ptr: t
406
- });
407
- return r && d[1] > -1 && (u = o(e, t + d[1]), u += +(e[u] === `,`)), [_(d[0], e, t, a), u];
408
- }
409
- /*!
410
- * Copyright (c) Squirrel Chat et al., All rights reserved.
411
- * SPDX-License-Identifier: BSD-3-Clause
412
- *
413
- * Redistribution and use in source and binary forms, with or without
414
- * modification, are permitted provided that the following conditions are met:
415
- *
416
- * 1. Redistributions of source code must retain the above copyright notice, this
417
- * list of conditions and the following disclaimer.
418
- * 2. Redistributions in binary form must reproduce the above copyright notice,
419
- * this list of conditions and the following disclaimer in the
420
- * documentation and/or other materials provided with the distribution.
421
- * 3. Neither the name of the copyright holder nor the names of its contributors
422
- * may be used to endorse or promote products derived from this software without
423
- * specific prior written permission.
424
- *
425
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
426
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
427
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
428
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
429
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
430
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
431
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
432
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
433
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
434
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
435
- */
436
- let b = /^[a-zA-Z0-9-_]+[ \t]*$/;
437
- function x(e, t, r = `=`) {
438
- let a = t - 1, s = [], l = e.indexOf(r, t);
439
- if (l < 0) throw new n(`incomplete key-value: cannot find end of key`, {
440
- toml: e,
441
- ptr: t
442
- });
443
- do {
444
- let o = e[t = ++a];
445
- if (o !== ` ` && o !== ` `) if (o === `"` || o === `'`) {
446
- if (o === e[t + 1] && o === e[t + 2]) throw new n(`multiline strings are not allowed in keys`, {
447
- toml: e,
448
- ptr: t
449
- });
450
- let u = c(e, t);
451
- if (u < 0) throw new n(`unfinished string encountered`, {
452
- toml: e,
453
- ptr: t
454
- });
455
- a = e.indexOf(`.`, u);
456
- let d = e.slice(u, a < 0 || a > l ? l : a), f = i(d);
457
- if (f > -1) throw new n(`newlines are not allowed in keys`, {
458
- toml: e,
459
- ptr: t + a + f
460
- });
461
- if (d.trimStart()) throw new n(`found extra tokens after the string part`, {
462
- toml: e,
463
- ptr: u
464
- });
465
- if (l < u && (l = e.indexOf(r, u), l < 0)) throw new n(`incomplete key-value: cannot find end of key`, {
466
- toml: e,
467
- ptr: t
468
- });
469
- s.push(g(e, t, u));
470
- } else {
471
- a = e.indexOf(`.`, t);
472
- let r = e.slice(t, a < 0 || a > l ? l : a);
473
- if (!b.test(r)) throw new n(`only letter, numbers, dashes and underscores are allowed in keys`, {
474
- toml: e,
475
- ptr: t
476
- });
477
- s.push(r.trimEnd());
478
- }
479
- } while (a + 1 && a < l);
480
- return [s, o(e, l + 1, !0, !0)];
481
- }
482
- function S(e, t, r, i) {
483
- let o = {}, s = /* @__PURE__ */ new Set(), c;
484
- for (t++; (c = e[t++]) !== `}` && c;) if (c === `,`) throw new n(`expected value, found comma`, {
485
- toml: e,
486
- ptr: t - 1
487
- });
488
- else if (c === `#`) t = a(e, t);
489
- else if (c !== ` ` && c !== ` ` && c !== `
490
- ` && c !== `\r`) {
491
- let a, c = o, l = !1, [u, d] = x(e, t - 1);
492
- for (let r = 0; r < u.length; r++) {
493
- if (r && (c = l ? c[a] : c[a] = {}), a = u[r], (l = Object.hasOwn(c, a)) && (typeof c[a] != `object` || s.has(c[a]))) throw new n(`trying to redefine an already defined value`, {
494
- toml: e,
495
- ptr: t
496
- });
497
- !l && a === `__proto__` && Object.defineProperty(c, a, {
498
- enumerable: !0,
499
- configurable: !0,
500
- writable: !0
501
- });
502
- }
503
- if (l) throw new n(`trying to redefine an already defined value`, {
504
- toml: e,
505
- ptr: t
506
- });
507
- let [f, p] = y(e, d, `}`, r - 1, i);
508
- s.add(f), c[a] = f, t = p;
509
- }
510
- if (!c) throw new n(`unfinished table encountered`, {
511
- toml: e,
512
- ptr: t
513
- });
514
- return [o, t];
515
- }
516
- function C(e, t, r, i) {
517
- let o = [], s;
518
- for (t++; (s = e[t++]) !== `]` && s;) if (s === `,`) throw new n(`expected value, found comma`, {
519
- toml: e,
520
- ptr: t - 1
521
- });
522
- else if (s === `#`) t = a(e, t);
523
- else if (s !== ` ` && s !== ` ` && s !== `
524
- ` && s !== `\r`) {
525
- let n = y(e, t - 1, `]`, r - 1, i);
526
- o.push(n[0]), t = n[1];
527
- }
528
- if (!s) throw new n(`unfinished array encountered`, {
529
- toml: e,
530
- ptr: t
531
- });
532
- return [o, t];
533
- }
534
- /*!
535
- * Copyright (c) Squirrel Chat et al., All rights reserved.
536
- * SPDX-License-Identifier: BSD-3-Clause
537
- *
538
- * Redistribution and use in source and binary forms, with or without
539
- * modification, are permitted provided that the following conditions are met:
540
- *
541
- * 1. Redistributions of source code must retain the above copyright notice, this
542
- * list of conditions and the following disclaimer.
543
- * 2. Redistributions in binary form must reproduce the above copyright notice,
544
- * this list of conditions and the following disclaimer in the
545
- * documentation and/or other materials provided with the distribution.
546
- * 3. Neither the name of the copyright holder nor the names of its contributors
547
- * may be used to endorse or promote products derived from this software without
548
- * specific prior written permission.
549
- *
550
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
551
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
552
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
553
- * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
554
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
555
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
556
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
557
- * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
558
- * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
559
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
560
- */
561
- function w(e, t, n, r) {
562
- let i = t, a = n, o, s = !1, c;
563
- for (let t = 0; t < e.length; t++) {
564
- if (t) {
565
- if (i = s ? i[o] : i[o] = {}, a = (c = a[o]).c, r === 0 && (c.t === 1 || c.t === 2)) return null;
566
- if (c.t === 2) {
567
- let e = i.length - 1;
568
- i = i[e], a = a[e].c;
569
- }
570
- }
571
- if (o = e[t], (s = Object.hasOwn(i, o)) && a[o]?.t === 0 && a[o]?.d) return null;
572
- s || (o === `__proto__` && (Object.defineProperty(i, o, {
573
- enumerable: !0,
574
- configurable: !0,
575
- writable: !0
576
- }), Object.defineProperty(a, o, {
577
- enumerable: !0,
578
- configurable: !0,
579
- writable: !0
580
- })), a[o] = {
581
- t: t < e.length - 1 && r === 2 ? 3 : r,
582
- d: !1,
583
- i: 0,
584
- c: {}
585
- });
586
- }
587
- if (c = a[o], c.t !== r && !(r === 1 && c.t === 3) || (r === 2 && (c.d || (c.d = !0, i[o] = []), i[o].push(i = {}), c.c[c.i++] = c = {
588
- t: 1,
589
- d: !1,
590
- i: 0,
591
- c: {}
592
- }), c.d)) return null;
593
- if (c.d = !0, r === 1) i = s ? i[o] : i[o] = {};
594
- else if (r === 0 && s) return null;
595
- return [
596
- o,
597
- i,
598
- c.c
599
- ];
600
- }
601
- function T(e, { maxDepth: t = 1e3, integersAsBigInt: r } = {}) {
602
- let i = {}, a = {}, s = i, c = a;
603
- for (let l = o(e, 0); l < e.length;) {
604
- if (e[l] === `[`) {
605
- let t = e[++l] === `[`, r = x(e, l += +t, `]`);
606
- if (t) {
607
- if (e[r[1] - 1] !== `]`) throw new n(`expected end of table declaration`, {
608
- toml: e,
609
- ptr: r[1] - 1
610
- });
611
- r[1]++;
612
- }
613
- let o = w(r[0], i, a, t ? 2 : 1);
614
- if (!o) throw new n(`trying to redefine an already defined table or value`, {
615
- toml: e,
616
- ptr: l
617
- });
618
- c = o[2], s = o[1], l = r[1];
619
- } else {
620
- let i = x(e, l), a = w(i[0], s, c, 0);
621
- if (!a) throw new n(`trying to redefine an already defined table or value`, {
622
- toml: e,
623
- ptr: l
624
- });
625
- let o = y(e, i[1], void 0, t, r);
626
- a[1][a[0]] = o[0], l = o[1];
627
- }
628
- if (l = o(e, l, !0), e[l] && e[l] !== `
629
- ` && e[l] !== `\r`) throw new n(`each key-value declaration must be followed by an end-of-line`, {
630
- toml: e,
631
- ptr: l
632
- });
633
- l = o(e, l);
634
- }
635
- return i;
636
- }
637
-
638
- //#endregion
639
- exports.T = T;