@powerlines/plugin-date 0.12.67 → 0.12.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.
- package/dist/_virtual/rolldown_runtime.cjs +1 -0
- package/dist/{chunk-BGGBqwuQ.mjs → _virtual/rolldown_runtime.mjs} +1 -1
- package/dist/alloy/src/core/components/output.cjs +1 -0
- package/dist/alloy/src/core/components/output.mjs +1 -0
- package/dist/alloy/src/core/components/single-line-comment.cjs +1 -0
- package/dist/alloy/src/core/components/single-line-comment.mjs +1 -0
- package/dist/alloy/src/core/components/source-file.cjs +1 -0
- package/dist/alloy/src/core/components/source-file.mjs +1 -0
- package/dist/alloy/src/core/contexts/context.cjs +1 -0
- package/dist/alloy/src/core/contexts/context.mjs +1 -0
- package/dist/alloy/src/core/contexts/reflection.cjs +1 -0
- package/dist/alloy/src/core/contexts/reflection.mjs +1 -0
- package/dist/alloy/src/create-plugin.cjs +2 -0
- package/dist/alloy/src/create-plugin.mjs +2 -0
- package/dist/alloy/src/helpers/refkey.cjs +1 -0
- package/dist/alloy/src/helpers/refkey.mjs +1 -0
- package/dist/alloy/src/markdown/components/markdown-file.cjs +1 -0
- package/dist/alloy/src/markdown/components/markdown-file.mjs +1 -0
- package/dist/alloy/src/markdown/components/markdown-table.cjs +1 -0
- package/dist/alloy/src/markdown/components/markdown-table.mjs +1 -0
- package/dist/alloy/src/markdown/contexts/markdown-table.cjs +1 -0
- package/dist/alloy/src/markdown/contexts/markdown-table.mjs +1 -0
- package/dist/alloy/src/typescript/components/builtin-file.cjs +1 -0
- package/dist/alloy/src/typescript/components/builtin-file.mjs +1 -0
- package/dist/alloy/src/typescript/components/tsdoc-reflection.cjs +1 -0
- package/dist/alloy/src/typescript/components/tsdoc-reflection.mjs +1 -0
- package/dist/alloy/src/typescript/components/tsdoc.cjs +1 -0
- package/dist/alloy/src/typescript/components/tsdoc.mjs +1 -0
- package/dist/alloy/src/typescript/components/typescript-file.cjs +1 -0
- package/dist/alloy/src/typescript/components/typescript-file.mjs +1 -0
- package/dist/alloy/src/typescript/components/typescript-interface.cjs +1 -0
- package/dist/alloy/src/typescript/components/typescript-interface.mjs +1 -0
- package/dist/alloy/src/typescript/components/typescript-object.cjs +1 -0
- package/dist/alloy/src/typescript/components/typescript-object.mjs +1 -0
- package/dist/components/date-fns.cjs +513 -0
- package/dist/components/date-fns.d.cts +13 -0
- package/dist/components/date-fns.d.mts +13 -0
- package/dist/components/date-fns.mjs +513 -0
- package/dist/components/dayjs.cjs +458 -0
- package/dist/components/dayjs.d.cts +13 -0
- package/dist/components/dayjs.d.mts +13 -0
- package/dist/components/dayjs.mjs +458 -0
- package/dist/components/index.cjs +1 -0
- package/dist/components/index.d.mts +4 -0
- package/dist/components/index.mjs +1 -0
- package/dist/components/luxon.cjs +462 -0
- package/dist/components/luxon.d.cts +13 -0
- package/dist/components/luxon.d.mts +13 -0
- package/dist/components/luxon.mjs +462 -0
- package/dist/components/moment.cjs +448 -0
- package/dist/components/moment.d.cts +13 -0
- package/dist/components/moment.d.mts +13 -0
- package/dist/components/moment.mjs +448 -0
- package/dist/deepkit/schemas/reflection.cjs +1 -0
- package/dist/deepkit/schemas/reflection.d.cts +1560 -0
- package/dist/deepkit/schemas/reflection.d.mts +1560 -0
- package/dist/deepkit/schemas/reflection.mjs +1 -0
- package/dist/deepkit/schemas/reflection2.cjs +1 -0
- package/dist/deepkit/schemas/reflection2.mjs +1 -0
- package/dist/deepkit/src/capnp.cjs +1 -0
- package/dist/deepkit/src/capnp.mjs +1 -0
- package/dist/deepkit/src/reflect-type.cjs +1 -0
- package/dist/deepkit/src/reflect-type.mjs +1 -0
- package/dist/deepkit/src/resolve-reflections.cjs +1 -0
- package/dist/deepkit/src/resolve-reflections.mjs +1 -0
- package/dist/deepkit/src/types.d.cts +10 -0
- package/dist/deepkit/src/types.d.mts +10 -0
- package/dist/deepkit/src/utilities.cjs +1 -0
- package/dist/deepkit/src/utilities.mjs +1 -0
- package/dist/deepkit/src/vendor/type.cjs +1 -0
- package/dist/deepkit/src/vendor/type.d.cts +7 -0
- package/dist/deepkit/src/vendor/type.d.mts +7 -0
- package/dist/deepkit/src/vendor/type.mjs +1 -0
- package/dist/index.cjs +1 -1953
- package/dist/index.d.cts +7 -40
- package/dist/index.d.mts +9 -40
- package/dist/index.mjs +1 -1950
- package/dist/plugin-babel/src/helpers/ast-utils.cjs +1 -0
- package/dist/plugin-babel/src/helpers/ast-utils.mjs +1 -0
- package/dist/plugin-babel/src/helpers/create-plugin.cjs +1 -0
- package/dist/plugin-babel/src/helpers/create-plugin.mjs +1 -0
- package/dist/plugin-babel/src/helpers/filters.cjs +1 -0
- package/dist/plugin-babel/src/helpers/filters.mjs +1 -0
- package/dist/plugin-babel/src/helpers/index.cjs +1 -0
- package/dist/plugin-babel/src/helpers/index.mjs +1 -0
- package/dist/plugin-babel/src/helpers/module-helpers.cjs +1 -0
- package/dist/plugin-babel/src/helpers/module-helpers.mjs +1 -0
- package/dist/plugin-babel/src/helpers/options.cjs +1 -0
- package/dist/plugin-babel/src/helpers/options.mjs +1 -0
- package/dist/plugin-babel/src/index.cjs +1 -0
- package/dist/plugin-babel/src/index.mjs +1 -0
- package/dist/plugin-babel/src/types/index.d.mts +1 -0
- package/dist/plugin-babel/src/types/plugin.d.cts +15 -0
- package/dist/plugin-babel/src/types/plugin.d.mts +15 -0
- package/dist/plugin-env/src/babel/index.cjs +1 -0
- package/dist/plugin-env/src/babel/index.mjs +1 -0
- package/dist/plugin-env/src/babel/plugin.cjs +5 -0
- package/dist/plugin-env/src/babel/plugin.mjs +5 -0
- package/dist/plugin-env/src/components/docs.cjs +1 -0
- package/dist/plugin-env/src/components/docs.mjs +1 -0
- package/dist/plugin-env/src/components/env.cjs +34 -0
- package/dist/plugin-env/src/components/env.mjs +31 -0
- package/dist/plugin-env/src/components/index.cjs +1 -0
- package/dist/plugin-env/src/components/index.mjs +1 -0
- package/dist/plugin-env/src/helpers/create-reflection-resource.cjs +1 -0
- package/dist/plugin-env/src/helpers/create-reflection-resource.mjs +1 -0
- package/dist/plugin-env/src/helpers/index.cjs +1 -0
- package/dist/plugin-env/src/helpers/index.mjs +1 -0
- package/dist/plugin-env/src/helpers/load.cjs +1 -0
- package/dist/plugin-env/src/helpers/load.mjs +1 -0
- package/dist/plugin-env/src/helpers/persistence.cjs +1 -0
- package/dist/plugin-env/src/helpers/persistence.mjs +1 -0
- package/dist/plugin-env/src/helpers/reflect.cjs +1 -0
- package/dist/plugin-env/src/helpers/reflect.mjs +1 -0
- package/dist/plugin-env/src/helpers/source-file-env.cjs +1 -0
- package/dist/plugin-env/src/helpers/source-file-env.mjs +1 -0
- package/dist/plugin-env/src/helpers/template-helpers.cjs +1 -0
- package/dist/plugin-env/src/helpers/template-helpers.mjs +1 -0
- package/dist/plugin-env/src/index.cjs +16 -0
- package/dist/plugin-env/src/index.mjs +16 -0
- package/dist/plugin-env/src/types/plugin.d.cts +135 -0
- package/dist/plugin-env/src/types/plugin.d.mts +136 -0
- package/dist/plugin-env/src/types/runtime.d.cts +792 -0
- package/dist/plugin-env/src/types/runtime.d.mts +792 -0
- package/dist/powerlines/src/lib/build/esbuild.cjs +14 -0
- package/dist/powerlines/src/lib/build/esbuild.mjs +14 -0
- package/dist/powerlines/src/lib/entry.cjs +1 -0
- package/dist/powerlines/src/lib/entry.mjs +1 -0
- package/dist/powerlines/src/lib/logger.cjs +1 -0
- package/dist/powerlines/src/lib/logger.mjs +1 -0
- package/dist/powerlines/src/lib/utilities/bundle.cjs +1 -0
- package/dist/powerlines/src/lib/utilities/bundle.mjs +1 -0
- package/dist/powerlines/src/lib/utilities/file-header.cjs +10 -0
- package/dist/powerlines/src/lib/utilities/file-header.mjs +10 -0
- package/dist/powerlines/src/lib/utilities/resolve.cjs +1 -0
- package/dist/powerlines/src/lib/utilities/resolve.mjs +1 -0
- package/dist/powerlines/src/plugin-utils/helpers.cjs +1 -0
- package/dist/powerlines/src/plugin-utils/helpers.mjs +1 -0
- package/dist/powerlines/src/plugin-utils/paths.cjs +1 -0
- package/dist/powerlines/src/plugin-utils/paths.mjs +1 -0
- package/dist/powerlines/src/types/babel.d.cts +22 -0
- package/dist/powerlines/src/types/babel.d.mts +22 -0
- package/dist/powerlines/src/types/build.d.cts +139 -0
- package/dist/powerlines/src/types/build.d.mts +139 -0
- package/dist/powerlines/src/types/commands.d.cts +8 -0
- package/dist/powerlines/src/types/commands.d.mts +9 -0
- package/dist/powerlines/src/types/config.d.cts +356 -0
- package/dist/powerlines/src/types/config.d.mts +357 -0
- package/dist/powerlines/src/types/context.d.cts +358 -0
- package/dist/powerlines/src/types/context.d.mts +360 -0
- package/dist/powerlines/src/types/fs.d.cts +458 -0
- package/dist/powerlines/src/types/fs.d.mts +458 -0
- package/dist/powerlines/src/types/hooks.d.mts +2 -0
- package/dist/powerlines/src/types/plugin.d.cts +232 -0
- package/dist/powerlines/src/types/plugin.d.mts +232 -0
- package/dist/powerlines/src/types/resolved.d.cts +82 -0
- package/dist/powerlines/src/types/resolved.d.mts +82 -0
- package/dist/powerlines/src/types/tsconfig.d.cts +69 -0
- package/dist/powerlines/src/types/tsconfig.d.mts +69 -0
- package/dist/types/index.cjs +0 -1
- package/dist/types/index.d.cts +2 -3
- package/dist/types/index.d.mts +2 -3
- package/dist/types/index.mjs +1 -1
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.d.cts +42 -1
- package/dist/types/plugin.d.mts +42 -1
- package/dist/types/plugin.mjs +1 -1
- package/dist/types/runtime.cjs +0 -1
- package/dist/types/runtime.d.cts +710 -1
- package/dist/types/runtime.d.mts +710 -1
- package/dist/types/runtime.mjs +1 -1
- package/package.json +7 -7
- package/dist/index-CmCelmEL.d.cts +0 -1
- package/dist/index-ColiPbLk.d.mts +0 -1
- package/dist/plugin-D3G0L2i6.d.mts +0 -4208
- package/dist/plugin-DHXHjv16.cjs +0 -0
- package/dist/plugin-DNkZTQrj.d.cts +0 -4209
- package/dist/plugin-alze5tBm.mjs +0 -1
- package/dist/runtime-0ZpEtv0G.mjs +0 -1
- package/dist/runtime-B8LVkjWB.d.cts +0 -711
- package/dist/runtime-D4zTdSwv.cjs +0 -0
- package/dist/runtime-DPe0V01H.d.mts +0 -711
- package/dist/types-CBTc19th.cjs +0 -0
- package/dist/types-CZFQnkin.mjs +0 -1
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
import{getFileHeader as e}from"../powerlines/src/lib/utilities/file-header.mjs";function t(t){return`
|
|
2
|
+
/**
|
|
3
|
+
* The Date module provides utility functions for date manipulation and formatting
|
|
4
|
+
*
|
|
5
|
+
* @module ${t.config.output.builtinPrefix}:date
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
${e(t)}
|
|
9
|
+
|
|
10
|
+
import defaultMoment, { LongDateFormatKey } from "moment";
|
|
11
|
+
import {
|
|
12
|
+
StormDateInterface,
|
|
13
|
+
DateFormats,
|
|
14
|
+
TimeUnit
|
|
15
|
+
} from "@powerlines/plugin-date/types/runtime";
|
|
16
|
+
|
|
17
|
+
type Moment = defaultMoment.Moment;
|
|
18
|
+
|
|
19
|
+
export const formats: DateFormats = {
|
|
20
|
+
normalDateWithWeekday: "ddd, MMM D",
|
|
21
|
+
normalDate: "D MMMM",
|
|
22
|
+
shortDate: "MMM D",
|
|
23
|
+
monthAndDate: "MMMM D",
|
|
24
|
+
dayOfMonth: "D",
|
|
25
|
+
year: "YYYY",
|
|
26
|
+
month: "MMMM",
|
|
27
|
+
monthShort: "MMM",
|
|
28
|
+
monthAndYear: "MMMM YYYY",
|
|
29
|
+
weekday: "dddd",
|
|
30
|
+
weekdayShort: "ddd",
|
|
31
|
+
minutes: "mm",
|
|
32
|
+
hours12h: "hh",
|
|
33
|
+
hours24h: "HH",
|
|
34
|
+
seconds: "ss",
|
|
35
|
+
fullTime: "LT",
|
|
36
|
+
fullTime12h: "hh:mm A",
|
|
37
|
+
fullTime24h: "HH:mm",
|
|
38
|
+
fullDate: "ll",
|
|
39
|
+
fullDateWithWeekday: "dddd, LL",
|
|
40
|
+
fullDateTime: "lll",
|
|
41
|
+
fullDateTime12h: "ll hh:mm A",
|
|
42
|
+
fullDateTime24h: "ll HH:mm",
|
|
43
|
+
keyboardDate: "L",
|
|
44
|
+
keyboardDateTime: "L LT",
|
|
45
|
+
keyboardDateTime12h: "L hh:mm A",
|
|
46
|
+
keyboardDateTime24h: "L HH:mm",
|
|
47
|
+
systemDateTime: "L HH:mm:ss.SSS",
|
|
48
|
+
filePathDateTime: "L_HH-mm-ss-SSS"
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export let locale = $storm.env.DEFAULT_LOCALE;
|
|
52
|
+
|
|
53
|
+
export const type = "moment";
|
|
54
|
+
|
|
55
|
+
const moment = defaultMoment;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Creates a date object using the provided value.
|
|
59
|
+
*
|
|
60
|
+
* @remarks
|
|
61
|
+
* This function creates a date object using the provided value. If the value is \`null\`, it returns \`null\`. If the value is \`undefined\`, it returns the current date. If the value is a string, it parses the string as a date. If the value is a number, it treats it as a timestamp. If the value is a date object, it returns the date object.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* \`\`\`ts
|
|
65
|
+
* import { createDate } from "storm:date";
|
|
66
|
+
*
|
|
67
|
+
* const date = createDate("2023-10-01");
|
|
68
|
+
* console.log(date.format("YYYY-MM-DD")); // Outputs: 2023-10-01
|
|
69
|
+
* \`\`\`
|
|
70
|
+
*
|
|
71
|
+
* @param value - The value to create the date object from.
|
|
72
|
+
* @returns A date object or \`null\` if the value is \`null\`.
|
|
73
|
+
*/
|
|
74
|
+
export function createDate<
|
|
75
|
+
TArg extends unknown = undefined,
|
|
76
|
+
TResultingDate extends unknown = TArg extends null
|
|
77
|
+
? null
|
|
78
|
+
: TArg extends undefined
|
|
79
|
+
? defaultMoment.Moment
|
|
80
|
+
: defaultMoment.Moment | null
|
|
81
|
+
>(value?: TArg): TResultingDate {
|
|
82
|
+
if (value === null) {
|
|
83
|
+
return null as TResultingDate;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
const _moment = moment(value);
|
|
87
|
+
if (locale) {
|
|
88
|
+
_moment.locale(locale);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return _moment as TResultingDate;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
export function is12HourCycleInCurrentLocale(): boolean {
|
|
96
|
+
return /A|a/.test(
|
|
97
|
+
moment.localeData(getCurrentLocaleCode()).longDateFormat("LT")
|
|
98
|
+
);
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
export function getFormatHelperText(format: string) {
|
|
102
|
+
// @see https://github.com/moment/moment/blob/develop/src/lib/format/format.js#L6
|
|
103
|
+
const localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;
|
|
104
|
+
|
|
105
|
+
return (
|
|
106
|
+
format
|
|
107
|
+
.match(localFormattingTokens)
|
|
108
|
+
?.map((token) => {
|
|
109
|
+
const firstCharacter = token[0];
|
|
110
|
+
if (firstCharacter === "L" || firstCharacter === ";") {
|
|
111
|
+
return moment
|
|
112
|
+
.localeData(getCurrentLocaleCode())
|
|
113
|
+
.longDateFormat(token as LongDateFormatKey);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return token;
|
|
117
|
+
})
|
|
118
|
+
.join("")
|
|
119
|
+
.replace(/a/gi, "(a|p)m")
|
|
120
|
+
.toLocaleLowerCase() ?? format
|
|
121
|
+
);
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export function getCurrentLocaleCode() {
|
|
125
|
+
return locale || moment.locale();
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export function parseISO(isoString: string) {
|
|
129
|
+
return moment(isoString, true);
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
export function toISO(value: Moment) {
|
|
133
|
+
return value.toISOString();
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
export function parse(value: string, format: string) {
|
|
137
|
+
if (value === "") {
|
|
138
|
+
return null;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
if (locale) {
|
|
142
|
+
return moment(value, format, locale, true);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
return moment(value, format, true);
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
export function toJsDate(value: Moment) {
|
|
149
|
+
return value.toDate();
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
export function isValid(value: any) {
|
|
153
|
+
return moment(value).isValid();
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
export function isNull(date: Moment) {
|
|
157
|
+
return date === null;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
export function getDiff(date: Moment, comparing: Moment | string, unit?: TimeUnit) {
|
|
161
|
+
if (!moment(comparing).isValid()) {
|
|
162
|
+
return 0;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
return date.diff(comparing, unit);
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
export function isAfter(date: Moment, value: Moment) {
|
|
169
|
+
return date.isAfter(value);
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
export function isBefore(date: Moment, value: Moment) {
|
|
173
|
+
return date.isBefore(value);
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
export function isAfterDay(date: Moment, value: Moment) {
|
|
177
|
+
return date.isAfter(value, "day");
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
export function isBeforeDay(date: Moment, value: Moment) {
|
|
181
|
+
return date.isBefore(value, "day");
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
export function isBeforeMonth(date: Moment, value: Moment) {
|
|
185
|
+
return date.isBefore(value, "month");
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
export function isAfterMonth(date: Moment, value: Moment) {
|
|
189
|
+
return date.isAfter(value, "month");
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
export function isBeforeYear(date: Moment, value: Moment) {
|
|
193
|
+
return date.isBefore(value, "year");
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
export function isAfterYear(date: Moment, value: Moment) {
|
|
197
|
+
return date.isAfter(value, "year");
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
export function startOfDay(date: Moment) {
|
|
201
|
+
return date.clone().startOf("day");
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
export function endOfDay(date: Moment) {
|
|
205
|
+
return date.clone().endOf("day");
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
export function format(date: Moment, formatKey: keyof DateFormats) {
|
|
209
|
+
return formatByString(date, formats[formatKey]);
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
export function formatByString(date: Moment, formatString: string) {
|
|
213
|
+
const clonedDate = date.clone();
|
|
214
|
+
if (locale) {
|
|
215
|
+
clonedDate.locale(locale);
|
|
216
|
+
}
|
|
217
|
+
return clonedDate.format(formatString);
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
export function formatNumber(numberToFormat: string) {
|
|
221
|
+
return numberToFormat;
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
export function getHours(date: Moment) {
|
|
225
|
+
return date.get("hours");
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
export function addSeconds(date: Moment, count: number) {
|
|
229
|
+
return count < 0
|
|
230
|
+
? date.clone().subtract(Math.abs(count), "seconds")
|
|
231
|
+
: date.clone().add(count, "seconds");
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
export function addMinutes(date: Moment, count: number) {
|
|
235
|
+
return count < 0
|
|
236
|
+
? date.clone().subtract(Math.abs(count), "minutes")
|
|
237
|
+
: date.clone().add(count, "minutes");
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
export function addHours(date: Moment, count: number) {
|
|
241
|
+
return count < 0
|
|
242
|
+
? date.clone().subtract(Math.abs(count), "hours")
|
|
243
|
+
: date.clone().add(count, "hours");
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
export function addDays(date: Moment, count: number) {
|
|
247
|
+
return count < 0
|
|
248
|
+
? date.clone().subtract(Math.abs(count), "days")
|
|
249
|
+
: date.clone().add(count, "days");
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
export function addWeeks(date: Moment, count: number) {
|
|
253
|
+
return count < 0
|
|
254
|
+
? date.clone().subtract(Math.abs(count), "weeks")
|
|
255
|
+
: date.clone().add(count, "weeks");
|
|
256
|
+
};
|
|
257
|
+
|
|
258
|
+
export function addMonths(date: Moment, count: number) {
|
|
259
|
+
return count < 0
|
|
260
|
+
? date.clone().subtract(Math.abs(count), "months")
|
|
261
|
+
: date.clone().add(count, "months");
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
export function addYears(date: Moment, count: number) {
|
|
265
|
+
return count < 0
|
|
266
|
+
? date.clone().subtract(Math.abs(count), "years")
|
|
267
|
+
: date.clone().add(count, "years");
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
export function setHours(date: Moment, count: number) {
|
|
271
|
+
return date.clone().hours(count);
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
export function getMinutes(date: Moment) {
|
|
275
|
+
return date.get("minutes");
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
export function setMinutes(date: Moment, count: number) {
|
|
279
|
+
return date.clone().minutes(count);
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
export function getSeconds(date: Moment) {
|
|
283
|
+
return date.get("seconds");
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
export function setSeconds(date: Moment, count: number) {
|
|
287
|
+
return date.clone().seconds(count);
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
export function getWeek(date: Moment) {
|
|
291
|
+
return date.get("week");
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
export function getMonth(date: Moment) {
|
|
295
|
+
return date.get("month");
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
export function getDaysInMonth(date: Moment) {
|
|
299
|
+
return date.daysInMonth();
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
export function isSameDay(date: Moment, comparing: Moment) {
|
|
303
|
+
return date.isSame(comparing, "day");
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
export function isSameMonth(date: Moment, comparing: Moment) {
|
|
307
|
+
return date.isSame(comparing, "month");
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
export function isSameYear(date: Moment, comparing: Moment) {
|
|
311
|
+
return date.isSame(comparing, "year");
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
export function isSameHour(date: Moment, comparing: Moment) {
|
|
315
|
+
return date.isSame(comparing, "hour");
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
export function setMonth(date: Moment, count: number) {
|
|
319
|
+
return date.clone().month(count);
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
export function getMeridiemText(meridiem: "am" | "pm") {
|
|
323
|
+
if (is12HourCycleInCurrentLocale()) {
|
|
324
|
+
// AM/PM translation only possible in those who have 12 hour cycle in locale.
|
|
325
|
+
return moment
|
|
326
|
+
.localeData(getCurrentLocaleCode())
|
|
327
|
+
.meridiem(meridiem === "am" ? 0 : 13, 0, false);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
return meridiem === "am" ? "AM" : "PM"; // fallback for de, ru, ...etc
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
export function startOfYear(date: Moment) {
|
|
334
|
+
return date.clone().startOf("year");
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
export function endOfYear(date: Moment) {
|
|
338
|
+
return date.clone().endOf("year");
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
export function startOfMonth(date: Moment) {
|
|
342
|
+
return date.clone().startOf("month");
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
export function endOfMonth(date: Moment) {
|
|
346
|
+
return date.clone().endOf("month");
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
export function startOfWeek(date: Moment) {
|
|
350
|
+
return date.clone().startOf("week");
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
export function endOfWeek(date: Moment) {
|
|
354
|
+
return date.clone().endOf("week");
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
export function getNextMonth(date: Moment) {
|
|
358
|
+
return date.clone().add(1, "month");
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
export function getPreviousMonth(date: Moment) {
|
|
362
|
+
return date.clone().subtract(1, "month");
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
export function getMonthArray(date: Moment) {
|
|
366
|
+
const firstMonth = date.clone().startOf("year");
|
|
367
|
+
const monthArray = [firstMonth];
|
|
368
|
+
|
|
369
|
+
while (monthArray.length < 12) {
|
|
370
|
+
const prevMonth = monthArray[monthArray.length - 1];
|
|
371
|
+
monthArray.push(getNextMonth(prevMonth));
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
return monthArray;
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
export function getYear(date: Moment) {
|
|
378
|
+
return date.get("year");
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
export function setYear(date: Moment, year: number) {
|
|
382
|
+
return date.clone().set("year", year);
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
export function getDate(date: Moment) {
|
|
386
|
+
return date.get("date");
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
export function setDate(date: Moment, day: number) {
|
|
390
|
+
return date.clone().set("date", day);
|
|
391
|
+
};
|
|
392
|
+
|
|
393
|
+
export function mergeDateAndTime(date: Moment, time: Moment) {
|
|
394
|
+
return date.hour(time.hour()).minute(time.minute()).second(time.second());
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
export function getWeekdays() {
|
|
398
|
+
return moment.weekdaysShort(true);
|
|
399
|
+
};
|
|
400
|
+
|
|
401
|
+
export function isEqual(value: any, comparing: any) {
|
|
402
|
+
if (value === null && comparing === null) {
|
|
403
|
+
return true;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
return moment(value).isSame(comparing);
|
|
407
|
+
};
|
|
408
|
+
|
|
409
|
+
export function getWeekArray(date: Moment) {
|
|
410
|
+
const start = date.clone().startOf("month").startOf("week");
|
|
411
|
+
const end = date.clone().endOf("month").endOf("week");
|
|
412
|
+
|
|
413
|
+
let count = 0;
|
|
414
|
+
let current = start;
|
|
415
|
+
const nestedWeeks: Moment[][] = [];
|
|
416
|
+
|
|
417
|
+
while (current.isBefore(end)) {
|
|
418
|
+
const weekNumber = Math.floor(count / 7);
|
|
419
|
+
nestedWeeks[weekNumber] = nestedWeeks[weekNumber] || [];
|
|
420
|
+
nestedWeeks[weekNumber].push(current);
|
|
421
|
+
|
|
422
|
+
current = current.clone().add(1, "day");
|
|
423
|
+
count += 1;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
return nestedWeeks;
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
export function getYearRange(start: Moment, end: Moment) {
|
|
430
|
+
const startDate = moment(start).startOf("year");
|
|
431
|
+
const endDate = moment(end).endOf("year");
|
|
432
|
+
const years: Moment[] = [];
|
|
433
|
+
|
|
434
|
+
let current = startDate;
|
|
435
|
+
while (current.isBefore(endDate)) {
|
|
436
|
+
years.push(current);
|
|
437
|
+
current = current.clone().add(1, "year");
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
return years;
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
export function isWithinRange(date: Moment, [start, end]: [Moment, Moment]) {
|
|
444
|
+
return date.isBetween(start, end, null, "[]");
|
|
445
|
+
};
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
`}export{t as momentModule};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../../_virtual/rolldown_runtime.cjs`);let t=require(`@stryke/capnp`);t=e.__toESM(t);const n={PUBLIC:0,PROTECTED:1,PRIVATE:2};var r=class extends t.Struct{static _capnp={displayName:`TagsReflection`,id:`ab7e31d6b834bbf8`,size:new t.ObjectSize(8,4)};_adoptAlias(e){t.utils.adopt(e,t.utils.getPointer(0,this))}_disownAlias(){return t.utils.disown(this.alias)}get alias(){return t.utils.getList(0,t.TextList,this)}_hasAlias(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initAlias(e){return t.utils.initList(0,t.TextList,e,this)}set alias(e){t.utils.copyFrom(e,t.utils.getPointer(0,this))}get title(){return t.utils.getText(1,this)}set title(e){t.utils.setText(1,e,this)}get hidden(){return t.utils.getBit(0,this)}set hidden(e){t.utils.setBit(0,e,this)}get readonly(){return t.utils.getBit(1,this)}set readonly(e){t.utils.setBit(1,e,this)}get ignore(){return t.utils.getBit(2,this)}set ignore(e){t.utils.setBit(2,e,this)}get internal(){return t.utils.getBit(3,this)}set internal(e){t.utils.setBit(3,e,this)}_adoptPermission(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownPermission(){return t.utils.disown(this.permission)}get permission(){return t.utils.getList(2,t.TextList,this)}_hasPermission(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initPermission(e){return t.utils.initList(2,t.TextList,e,this)}set permission(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}get domain(){return t.utils.getText(3,this)}set domain(e){t.utils.setText(3,e,this)}toString(){return`TagsReflection_`+super.toString()}};const i={UNDEFINED:0,BOOLEAN:1,INTEGER:2,FLOAT:3,STRING:4};var a=class extends t.Struct{static UNDEFINED=i.UNDEFINED;static BOOLEAN=i.BOOLEAN;static INTEGER=i.INTEGER;static FLOAT=i.FLOAT;static STRING=i.STRING;static _capnp={displayName:`value`,id:`8748135e0497fe81`,size:new t.ObjectSize(16,1)};get _isUndefined(){return t.utils.getUint16(0,this)===0}set undefined(e){t.utils.setUint16(0,0,this)}get boolean(){return t.utils.testWhich(`boolean`,t.utils.getUint16(0,this),1,this),t.utils.getBit(16,this)}get _isBoolean(){return t.utils.getUint16(0,this)===1}set boolean(e){t.utils.setUint16(0,1,this),t.utils.setBit(16,e,this)}get integer(){return t.utils.testWhich(`integer`,t.utils.getUint16(0,this),2,this),t.utils.getInt32(4,this)}get _isInteger(){return t.utils.getUint16(0,this)===2}set integer(e){t.utils.setUint16(0,2,this),t.utils.setInt32(4,e,this)}get float(){return t.utils.testWhich(`float`,t.utils.getUint16(0,this),3,this),t.utils.getFloat64(8,this)}get _isFloat(){return t.utils.getUint16(0,this)===3}set float(e){t.utils.setUint16(0,3,this),t.utils.setFloat64(8,e,this)}get string(){return t.utils.testWhich(`string`,t.utils.getUint16(0,this),4,this),t.utils.getText(0,this)}get _isString(){return t.utils.getUint16(0,this)===4}set string(e){t.utils.setUint16(0,4,this),t.utils.setText(0,e,this)}toString(){return`DefaultValueReflection_Value_`+super.toString()}which(){return t.utils.getUint16(0,this)}},o=class extends t.Struct{static _capnp={displayName:`DefaultValueReflection`,id:`96fe6f07954197c9`,size:new t.ObjectSize(16,1)};get value(){return t.utils.getAs(a,this)}_initValue(){return t.utils.getAs(a,this)}toString(){return`DefaultValueReflection_`+super.toString()}},s=class extends t.Struct{static _capnp={displayName:`SerializedTypeReference`,id:`a83d8a28b5e80f3a`,size:new t.ObjectSize(8,0)};get id(){return t.utils.getUint32(0,this)}set id(e){t.utils.setUint32(0,e,this)}toString(){return`SerializedTypeReference_`+super.toString()}},c=class extends t.Struct{static _capnp={displayName:`IndexAccessOrigin`,id:`ca50b18186c87afe`,size:new t.ObjectSize(0,2)};_adoptContainer(e){t.utils.adopt(e,t.utils.getPointer(0,this))}_disownContainer(){return t.utils.disown(this.container)}get container(){return t.utils.getStruct(0,s,this)}_hasContainer(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initContainer(){return t.utils.initStructAt(0,s,this)}set container(e){t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptIndex(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownIndex(){return t.utils.disown(this.index)}get index(){return t.utils.getStruct(1,s,this)}_hasIndex(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initIndex(){return t.utils.initStructAt(1,s,this)}set index(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}toString(){return`IndexAccessOrigin_`+super.toString()}},l=class extends t.Struct{static _capnp={displayName:`EntityIndexOptions`,id:`de584ad10b7c5004`,size:new t.ObjectSize(0,2)};_adoptNames(e){t.utils.adopt(e,t.utils.getPointer(0,this))}_disownNames(){return t.utils.disown(this.names)}get names(){return t.utils.getList(0,t.TextList,this)}_hasNames(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initNames(e){return t.utils.initList(0,t.TextList,e,this)}set names(e){t.utils.copyFrom(e,t.utils.getPointer(0,this))}get options(){return t.utils.getText(1,this)}set options(e){t.utils.setText(1,e,this)}toString(){return`EntityOptions_EntityIndexOptions_`+super.toString()}},u=class e extends t.Struct{static EntityIndexOptions=l;static _capnp={displayName:`EntityOptions`,id:`948d2d02cf676d60`,size:new t.ObjectSize(8,5)};get name(){return t.utils.getText(0,this)}set name(e){t.utils.setText(0,e,this)}get description(){return t.utils.getText(1,this)}set description(e){t.utils.setText(1,e,this)}get collection(){return t.utils.getText(2,this)}set collection(e){t.utils.setText(2,e,this)}get database(){return t.utils.getText(3,this)}set database(e){t.utils.setText(3,e,this)}get singleTableInheritance(){return t.utils.getBit(0,this)}set singleTableInheritance(e){t.utils.setBit(0,e,this)}_adoptIndexes(e){t.utils.adopt(e,t.utils.getPointer(4,this))}_disownIndexes(){return t.utils.disown(this.indexes)}get indexes(){return t.utils.getList(4,e._Indexes,this)}_hasIndexes(){return!t.utils.isNull(t.utils.getPointer(4,this))}_initIndexes(n){return t.utils.initList(4,e._Indexes,n,this)}set indexes(e){t.utils.copyFrom(e,t.utils.getPointer(4,this))}toString(){return`EntityOptions_`+super.toString()}},d=class e extends t.Struct{static _capnp={displayName:`SerializedTypeObjectLiteral`,id:`8b56235ad9bcb2b1`,size:new t.ObjectSize(8,6)};get typeName(){return t.utils.getText(0,this)}set typeName(e){t.utils.setText(0,e,this)}_adoptTypeArguments(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownTypeArguments(){return t.utils.disown(this.typeArguments)}get typeArguments(){return t.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initTypeArguments(n){return t.utils.initList(1,e._TypeArguments,n,this)}set typeArguments(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return t.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return t.utils.getStruct(2,c,this)}_hasIndexAccessOrigin(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initIndexAccessOrigin(){return t.utils.initStructAt(2,c,this)}set indexAccessOrigin(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}_adoptDecorators(e){t.utils.adopt(e,t.utils.getPointer(3,this))}_disownDecorators(){return t.utils.disown(this.decorators)}get decorators(){return t.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!t.utils.isNull(t.utils.getPointer(3,this))}_initDecorators(n){return t.utils.initList(3,e._Decorators,n,this)}set decorators(e){t.utils.copyFrom(e,t.utils.getPointer(3,this))}get kind(){return t.utils.getUint16(0,this)}set kind(e){t.utils.setUint16(0,e,this)}_adoptTypes(e){t.utils.adopt(e,t.utils.getPointer(4,this))}_disownTypes(){return t.utils.disown(this.types)}get types(){return t.utils.getList(4,e._Types,this)}_hasTypes(){return!t.utils.isNull(t.utils.getPointer(4,this))}_initTypes(n){return t.utils.initList(4,e._Types,n,this)}set types(e){t.utils.copyFrom(e,t.utils.getPointer(4,this))}_adoptTags(e){t.utils.adopt(e,t.utils.getPointer(5,this))}_disownTags(){return t.utils.disown(this.tags)}get tags(){return t.utils.getStruct(5,r,this)}_hasTags(){return!t.utils.isNull(t.utils.getPointer(5,this))}_initTags(){return t.utils.initStructAt(5,r,this)}set tags(e){t.utils.copyFrom(e,t.utils.getPointer(5,this))}toString(){return`SerializedTypeObjectLiteral_`+super.toString()}},f=class e extends t.Struct{static _capnp={displayName:`SerializedTypeClassType`,id:`9855392bf9c48b25`,size:new t.ObjectSize(8,11)};get typeName(){return t.utils.getText(0,this)}set typeName(e){t.utils.setText(0,e,this)}_adoptTypeArguments(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownTypeArguments(){return t.utils.disown(this.typeArguments)}get typeArguments(){return t.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initTypeArguments(n){return t.utils.initList(1,e._TypeArguments,n,this)}set typeArguments(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return t.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return t.utils.getStruct(2,c,this)}_hasIndexAccessOrigin(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initIndexAccessOrigin(){return t.utils.initStructAt(2,c,this)}set indexAccessOrigin(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}_adoptDecorators(e){t.utils.adopt(e,t.utils.getPointer(3,this))}_disownDecorators(){return t.utils.disown(this.decorators)}get decorators(){return t.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!t.utils.isNull(t.utils.getPointer(3,this))}_initDecorators(n){return t.utils.initList(3,e._Decorators,n,this)}set decorators(e){t.utils.copyFrom(e,t.utils.getPointer(3,this))}get kind(){return t.utils.getUint16(0,this)}set kind(e){t.utils.setUint16(0,e,this)}get name(){return t.utils.getText(4,this)}set name(e){t.utils.setText(4,e,this)}get globalObject(){return t.utils.getBit(16,this)}set globalObject(e){t.utils.setBit(16,e,this)}get classType(){return t.utils.getText(5,this)}set classType(e){t.utils.setText(5,e,this)}_adoptExtendsArguments(e){t.utils.adopt(e,t.utils.getPointer(6,this))}_disownExtendsArguments(){return t.utils.disown(this.extendsArguments)}get extendsArguments(){return t.utils.getList(6,e._ExtendsArguments,this)}_hasExtendsArguments(){return!t.utils.isNull(t.utils.getPointer(6,this))}_initExtendsArguments(n){return t.utils.initList(6,e._ExtendsArguments,n,this)}set extendsArguments(e){t.utils.copyFrom(e,t.utils.getPointer(6,this))}_adoptArguments(e){t.utils.adopt(e,t.utils.getPointer(7,this))}_disownArguments(){return t.utils.disown(this.arguments)}get arguments(){return t.utils.getList(7,e._Arguments,this)}_hasArguments(){return!t.utils.isNull(t.utils.getPointer(7,this))}_initArguments(n){return t.utils.initList(7,e._Arguments,n,this)}set arguments(e){t.utils.copyFrom(e,t.utils.getPointer(7,this))}_adoptSuperClass(e){t.utils.adopt(e,t.utils.getPointer(8,this))}_disownSuperClass(){return t.utils.disown(this.superClass)}get superClass(){return t.utils.getStruct(8,s,this)}_hasSuperClass(){return!t.utils.isNull(t.utils.getPointer(8,this))}_initSuperClass(){return t.utils.initStructAt(8,s,this)}set superClass(e){t.utils.copyFrom(e,t.utils.getPointer(8,this))}_adoptTypes(e){t.utils.adopt(e,t.utils.getPointer(9,this))}_disownTypes(){return t.utils.disown(this.types)}get types(){return t.utils.getList(9,e._Types,this)}_hasTypes(){return!t.utils.isNull(t.utils.getPointer(9,this))}_initTypes(n){return t.utils.initList(9,e._Types,n,this)}set types(e){t.utils.copyFrom(e,t.utils.getPointer(9,this))}_adoptTags(e){t.utils.adopt(e,t.utils.getPointer(10,this))}_disownTags(){return t.utils.disown(this.tags)}get tags(){return t.utils.getStruct(10,r,this)}_hasTags(){return!t.utils.isNull(t.utils.getPointer(10,this))}_initTags(){return t.utils.initStructAt(10,r,this)}set tags(e){t.utils.copyFrom(e,t.utils.getPointer(10,this))}toString(){return`SerializedTypeClassType_`+super.toString()}},p=class e extends t.Struct{static _capnp={displayName:`SerializedTypeParameter`,id:`fcbaa08bb97b8b1a`,size:new t.ObjectSize(8,8)};get typeName(){return t.utils.getText(0,this)}set typeName(e){t.utils.setText(0,e,this)}_adoptTypeArguments(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownTypeArguments(){return t.utils.disown(this.typeArguments)}get typeArguments(){return t.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initTypeArguments(n){return t.utils.initList(1,e._TypeArguments,n,this)}set typeArguments(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return t.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return t.utils.getStruct(2,c,this)}_hasIndexAccessOrigin(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initIndexAccessOrigin(){return t.utils.initStructAt(2,c,this)}set indexAccessOrigin(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}_adoptDecorators(e){t.utils.adopt(e,t.utils.getPointer(3,this))}_disownDecorators(){return t.utils.disown(this.decorators)}get decorators(){return t.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!t.utils.isNull(t.utils.getPointer(3,this))}_initDecorators(n){return t.utils.initList(3,e._Decorators,n,this)}set decorators(e){t.utils.copyFrom(e,t.utils.getPointer(3,this))}get kind(){return t.utils.getUint16(0,this)}set kind(e){t.utils.setUint16(0,e,this)}get name(){return t.utils.getText(4,this)}set name(e){t.utils.setText(4,e,this)}_adoptType(e){t.utils.adopt(e,t.utils.getPointer(5,this))}_disownType(){return t.utils.disown(this.type)}get type(){return t.utils.getStruct(5,s,this)}_hasType(){return!t.utils.isNull(t.utils.getPointer(5,this))}_initType(){return t.utils.initStructAt(5,s,this)}set type(e){t.utils.copyFrom(e,t.utils.getPointer(5,this))}get visibility(){return t.utils.getUint16(2,this)}set visibility(e){t.utils.setUint16(2,e,this)}get readonly(){return t.utils.getBit(32,this)}set readonly(e){t.utils.setBit(32,e,this)}get optional(){return t.utils.getBit(33,this)}set optional(e){t.utils.setBit(33,e,this)}_adoptDefault(e){t.utils.adopt(e,t.utils.getPointer(6,this))}_disownDefault(){return t.utils.disown(this.default)}get default(){return t.utils.getStruct(6,o,this)}_hasDefault(){return!t.utils.isNull(t.utils.getPointer(6,this))}_initDefault(){return t.utils.initStructAt(6,o,this)}set default(e){t.utils.copyFrom(e,t.utils.getPointer(6,this))}_adoptTags(e){t.utils.adopt(e,t.utils.getPointer(7,this))}_disownTags(){return t.utils.disown(this.tags)}get tags(){return t.utils.getStruct(7,r,this)}_hasTags(){return!t.utils.isNull(t.utils.getPointer(7,this))}_initTags(){return t.utils.initStructAt(7,r,this)}set tags(e){t.utils.copyFrom(e,t.utils.getPointer(7,this))}toString(){return`SerializedTypeParameter_`+super.toString()}},m=class e extends t.Struct{static _capnp={displayName:`SerializedTypeMethod`,id:`8b5eff6d9ec2fb06`,size:new t.ObjectSize(8,8)};get typeName(){return t.utils.getText(0,this)}set typeName(e){t.utils.setText(0,e,this)}_adoptTypeArguments(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownTypeArguments(){return t.utils.disown(this.typeArguments)}get typeArguments(){return t.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initTypeArguments(n){return t.utils.initList(1,e._TypeArguments,n,this)}set typeArguments(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return t.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return t.utils.getStruct(2,c,this)}_hasIndexAccessOrigin(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initIndexAccessOrigin(){return t.utils.initStructAt(2,c,this)}set indexAccessOrigin(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}_adoptDecorators(e){t.utils.adopt(e,t.utils.getPointer(3,this))}_disownDecorators(){return t.utils.disown(this.decorators)}get decorators(){return t.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!t.utils.isNull(t.utils.getPointer(3,this))}_initDecorators(n){return t.utils.initList(3,e._Decorators,n,this)}set decorators(e){t.utils.copyFrom(e,t.utils.getPointer(3,this))}get visibility(){return t.utils.getUint16(0,this)}set visibility(e){t.utils.setUint16(0,e,this)}get abstract(){return t.utils.getBit(16,this)}set abstract(e){t.utils.setBit(16,e,this)}get optional(){return t.utils.getBit(17,this)}set optional(e){t.utils.setBit(17,e,this)}get readonly(){return t.utils.getBit(18,this)}set readonly(e){t.utils.setBit(18,e,this)}_adoptTags(e){t.utils.adopt(e,t.utils.getPointer(4,this))}_disownTags(){return t.utils.disown(this.tags)}get tags(){return t.utils.getStruct(4,r,this)}_hasTags(){return!t.utils.isNull(t.utils.getPointer(4,this))}_initTags(){return t.utils.initStructAt(4,r,this)}set tags(e){t.utils.copyFrom(e,t.utils.getPointer(4,this))}get kind(){return t.utils.getUint16(4,this)}set kind(e){t.utils.setUint16(4,e,this)}get name(){return t.utils.getText(5,this)}set name(e){t.utils.setText(5,e,this)}_adoptParameters(e){t.utils.adopt(e,t.utils.getPointer(6,this))}_disownParameters(){return t.utils.disown(this.parameters)}get parameters(){return t.utils.getList(6,e._Parameters,this)}_hasParameters(){return!t.utils.isNull(t.utils.getPointer(6,this))}_initParameters(n){return t.utils.initList(6,e._Parameters,n,this)}set parameters(e){t.utils.copyFrom(e,t.utils.getPointer(6,this))}_adoptReturn(e){t.utils.adopt(e,t.utils.getPointer(7,this))}_disownReturn(){return t.utils.disown(this.return)}get return(){return t.utils.getStruct(7,s,this)}_hasReturn(){return!t.utils.isNull(t.utils.getPointer(7,this))}_initReturn(){return t.utils.initStructAt(7,s,this)}set return(e){t.utils.copyFrom(e,t.utils.getPointer(7,this))}toString(){return`SerializedTypeMethod_`+super.toString()}},h=class e extends t.Struct{static _capnp={displayName:`SerializedTypeProperty`,id:`91d9dbea2037f78b`,size:new t.ObjectSize(8,9)};get typeName(){return t.utils.getText(0,this)}set typeName(e){t.utils.setText(0,e,this)}_adoptTypeArguments(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownTypeArguments(){return t.utils.disown(this.typeArguments)}get typeArguments(){return t.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initTypeArguments(n){return t.utils.initList(1,e._TypeArguments,n,this)}set typeArguments(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return t.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return t.utils.getStruct(2,c,this)}_hasIndexAccessOrigin(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initIndexAccessOrigin(){return t.utils.initStructAt(2,c,this)}set indexAccessOrigin(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}_adoptDecorators(e){t.utils.adopt(e,t.utils.getPointer(3,this))}_disownDecorators(){return t.utils.disown(this.decorators)}get decorators(){return t.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!t.utils.isNull(t.utils.getPointer(3,this))}_initDecorators(n){return t.utils.initList(3,e._Decorators,n,this)}set decorators(e){t.utils.copyFrom(e,t.utils.getPointer(3,this))}get visibility(){return t.utils.getUint16(0,this)}set visibility(e){t.utils.setUint16(0,e,this)}get abstract(){return t.utils.getBit(16,this)}set abstract(e){t.utils.setBit(16,e,this)}get optional(){return t.utils.getBit(17,this)}set optional(e){t.utils.setBit(17,e,this)}get readonly(){return t.utils.getBit(18,this)}set readonly(e){t.utils.setBit(18,e,this)}_adoptTags(e){t.utils.adopt(e,t.utils.getPointer(4,this))}_disownTags(){return t.utils.disown(this.tags)}get tags(){return t.utils.getStruct(4,r,this)}_hasTags(){return!t.utils.isNull(t.utils.getPointer(4,this))}_initTags(){return t.utils.initStructAt(4,r,this)}set tags(e){t.utils.copyFrom(e,t.utils.getPointer(4,this))}get kind(){return t.utils.getUint16(4,this)}set kind(e){t.utils.setUint16(4,e,this)}get name(){return t.utils.getText(5,this)}set name(e){t.utils.setText(5,e,this)}get description(){return t.utils.getText(6,this)}set description(e){t.utils.setText(6,e,this)}_adoptType(e){t.utils.adopt(e,t.utils.getPointer(7,this))}_disownType(){return t.utils.disown(this.type)}get type(){return t.utils.getStruct(7,s,this)}_hasType(){return!t.utils.isNull(t.utils.getPointer(7,this))}_initType(){return t.utils.initStructAt(7,s,this)}set type(e){t.utils.copyFrom(e,t.utils.getPointer(7,this))}_adoptDefault(e){t.utils.adopt(e,t.utils.getPointer(8,this))}_disownDefault(){return t.utils.disown(this.default)}get default(){return t.utils.getStruct(8,o,this)}_hasDefault(){return!t.utils.isNull(t.utils.getPointer(8,this))}_initDefault(){return t.utils.initStructAt(8,o,this)}set default(e){t.utils.copyFrom(e,t.utils.getPointer(8,this))}toString(){return`SerializedTypeProperty_`+super.toString()}},g=class e extends t.Struct{static _capnp={displayName:`SerializedTypeFunction`,id:`9130bccd82dfcfd4`,size:new t.ObjectSize(8,8)};get typeName(){return t.utils.getText(0,this)}set typeName(e){t.utils.setText(0,e,this)}_adoptTypeArguments(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownTypeArguments(){return t.utils.disown(this.typeArguments)}get typeArguments(){return t.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initTypeArguments(n){return t.utils.initList(1,e._TypeArguments,n,this)}set typeArguments(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return t.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return t.utils.getStruct(2,c,this)}_hasIndexAccessOrigin(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initIndexAccessOrigin(){return t.utils.initStructAt(2,c,this)}set indexAccessOrigin(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}_adoptDecorators(e){t.utils.adopt(e,t.utils.getPointer(3,this))}_disownDecorators(){return t.utils.disown(this.decorators)}get decorators(){return t.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!t.utils.isNull(t.utils.getPointer(3,this))}_initDecorators(n){return t.utils.initList(3,e._Decorators,n,this)}set decorators(e){t.utils.copyFrom(e,t.utils.getPointer(3,this))}get visibility(){return t.utils.getUint16(0,this)}set visibility(e){t.utils.setUint16(0,e,this)}get abstract(){return t.utils.getBit(16,this)}set abstract(e){t.utils.setBit(16,e,this)}get optional(){return t.utils.getBit(17,this)}set optional(e){t.utils.setBit(17,e,this)}get readonly(){return t.utils.getBit(18,this)}set readonly(e){t.utils.setBit(18,e,this)}_adoptTags(e){t.utils.adopt(e,t.utils.getPointer(4,this))}_disownTags(){return t.utils.disown(this.tags)}get tags(){return t.utils.getStruct(4,r,this)}_hasTags(){return!t.utils.isNull(t.utils.getPointer(4,this))}_initTags(){return t.utils.initStructAt(4,r,this)}set tags(e){t.utils.copyFrom(e,t.utils.getPointer(4,this))}get kind(){return t.utils.getUint16(4,this)}set kind(e){t.utils.setUint16(4,e,this)}get name(){return t.utils.getText(5,this)}set name(e){t.utils.setText(5,e,this)}_adoptParameters(e){t.utils.adopt(e,t.utils.getPointer(6,this))}_disownParameters(){return t.utils.disown(this.parameters)}get parameters(){return t.utils.getList(6,e._Parameters,this)}_hasParameters(){return!t.utils.isNull(t.utils.getPointer(6,this))}_initParameters(n){return t.utils.initList(6,e._Parameters,n,this)}set parameters(e){t.utils.copyFrom(e,t.utils.getPointer(6,this))}_adoptReturn(e){t.utils.adopt(e,t.utils.getPointer(7,this))}_disownReturn(){return t.utils.disown(this.return)}get return(){return t.utils.getStruct(7,s,this)}_hasReturn(){return!t.utils.isNull(t.utils.getPointer(7,this))}_initReturn(){return t.utils.initStructAt(7,s,this)}set return(e){t.utils.copyFrom(e,t.utils.getPointer(7,this))}toString(){return`SerializedTypeFunction_`+super.toString()}},_=class e extends t.Struct{static _capnp={displayName:`SerializedTypePromise`,id:`e9b0cbe936a42398`,size:new t.ObjectSize(8,4)};get typeName(){return t.utils.getText(0,this)}set typeName(e){t.utils.setText(0,e,this)}_adoptTypeArguments(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownTypeArguments(){return t.utils.disown(this.typeArguments)}get typeArguments(){return t.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initTypeArguments(n){return t.utils.initList(1,e._TypeArguments,n,this)}set typeArguments(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return t.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return t.utils.getStruct(2,c,this)}_hasIndexAccessOrigin(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initIndexAccessOrigin(){return t.utils.initStructAt(2,c,this)}set indexAccessOrigin(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}_adoptDecorators(e){t.utils.adopt(e,t.utils.getPointer(3,this))}_disownDecorators(){return t.utils.disown(this.decorators)}get decorators(){return t.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!t.utils.isNull(t.utils.getPointer(3,this))}_initDecorators(n){return t.utils.initList(3,e._Decorators,n,this)}set decorators(e){t.utils.copyFrom(e,t.utils.getPointer(3,this))}get visibility(){return t.utils.getUint16(0,this)}set visibility(e){t.utils.setUint16(0,e,this)}get abstract(){return t.utils.getBit(16,this)}set abstract(e){t.utils.setBit(16,e,this)}toString(){return`SerializedTypePromise_`+super.toString()}},v=class extends t.Struct{static _capnp={displayName:`SerializedTypeEnumEntry`,id:`d5bcb8b7c49ba556`,size:new t.ObjectSize(0,2)};get name(){return t.utils.getText(0,this)}set name(e){t.utils.setText(0,e,this)}get value(){return t.utils.getText(1,this)}set value(e){t.utils.setText(1,e,this)}toString(){return`SerializedTypeEnumEntry_`+super.toString()}},y=class e extends t.Struct{static _capnp={displayName:`SerializedTypeEnum`,id:`d7d36f0ae79e3841`,size:new t.ObjectSize(8,8)};get typeName(){return t.utils.getText(0,this)}set typeName(e){t.utils.setText(0,e,this)}_adoptTypeArguments(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownTypeArguments(){return t.utils.disown(this.typeArguments)}get typeArguments(){return t.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initTypeArguments(n){return t.utils.initList(1,e._TypeArguments,n,this)}set typeArguments(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return t.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return t.utils.getStruct(2,c,this)}_hasIndexAccessOrigin(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initIndexAccessOrigin(){return t.utils.initStructAt(2,c,this)}set indexAccessOrigin(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}_adoptDecorators(e){t.utils.adopt(e,t.utils.getPointer(3,this))}_disownDecorators(){return t.utils.disown(this.decorators)}get decorators(){return t.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!t.utils.isNull(t.utils.getPointer(3,this))}_initDecorators(n){return t.utils.initList(3,e._Decorators,n,this)}set decorators(e){t.utils.copyFrom(e,t.utils.getPointer(3,this))}get kind(){return t.utils.getUint16(0,this)}set kind(e){t.utils.setUint16(0,e,this)}_adoptEnumEntries(e){t.utils.adopt(e,t.utils.getPointer(4,this))}_disownEnumEntries(){return t.utils.disown(this.enumEntries)}get enumEntries(){return t.utils.getList(4,e._EnumEntries,this)}_hasEnumEntries(){return!t.utils.isNull(t.utils.getPointer(4,this))}_initEnumEntries(n){return t.utils.initList(4,e._EnumEntries,n,this)}set enumEntries(e){t.utils.copyFrom(e,t.utils.getPointer(4,this))}_adoptValues(e){t.utils.adopt(e,t.utils.getPointer(5,this))}_disownValues(){return t.utils.disown(this.values)}get values(){return t.utils.getList(5,t.TextList,this)}_hasValues(){return!t.utils.isNull(t.utils.getPointer(5,this))}_initValues(e){return t.utils.initList(5,t.TextList,e,this)}set values(e){t.utils.copyFrom(e,t.utils.getPointer(5,this))}_adoptIndexType(e){t.utils.adopt(e,t.utils.getPointer(6,this))}_disownIndexType(){return t.utils.disown(this.indexType)}get indexType(){return t.utils.getStruct(6,s,this)}_hasIndexType(){return!t.utils.isNull(t.utils.getPointer(6,this))}_initIndexType(){return t.utils.initStructAt(6,s,this)}set indexType(e){t.utils.copyFrom(e,t.utils.getPointer(6,this))}_adoptTags(e){t.utils.adopt(e,t.utils.getPointer(7,this))}_disownTags(){return t.utils.disown(this.tags)}get tags(){return t.utils.getStruct(7,r,this)}_hasTags(){return!t.utils.isNull(t.utils.getPointer(7,this))}_initTags(){return t.utils.initStructAt(7,r,this)}set tags(e){t.utils.copyFrom(e,t.utils.getPointer(7,this))}toString(){return`SerializedTypeEnum_`+super.toString()}},b=class e extends t.Struct{static _capnp={displayName:`SerializedTypeUnion`,id:`a9ae4c95e41ff4ab`,size:new t.ObjectSize(8,5)};get typeName(){return t.utils.getText(0,this)}set typeName(e){t.utils.setText(0,e,this)}_adoptTypeArguments(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownTypeArguments(){return t.utils.disown(this.typeArguments)}get typeArguments(){return t.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initTypeArguments(n){return t.utils.initList(1,e._TypeArguments,n,this)}set typeArguments(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return t.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return t.utils.getStruct(2,c,this)}_hasIndexAccessOrigin(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initIndexAccessOrigin(){return t.utils.initStructAt(2,c,this)}set indexAccessOrigin(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}_adoptDecorators(e){t.utils.adopt(e,t.utils.getPointer(3,this))}_disownDecorators(){return t.utils.disown(this.decorators)}get decorators(){return t.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!t.utils.isNull(t.utils.getPointer(3,this))}_initDecorators(n){return t.utils.initList(3,e._Decorators,n,this)}set decorators(e){t.utils.copyFrom(e,t.utils.getPointer(3,this))}get kind(){return t.utils.getUint16(0,this)}set kind(e){t.utils.setUint16(0,e,this)}_adoptTypes(e){t.utils.adopt(e,t.utils.getPointer(4,this))}_disownTypes(){return t.utils.disown(this.types)}get types(){return t.utils.getList(4,e._Types,this)}_hasTypes(){return!t.utils.isNull(t.utils.getPointer(4,this))}_initTypes(n){return t.utils.initList(4,e._Types,n,this)}set types(e){t.utils.copyFrom(e,t.utils.getPointer(4,this))}toString(){return`SerializedTypeUnion_`+super.toString()}},x=class e extends t.Struct{static _capnp={displayName:`SerializedTypeIntersection`,id:`9ae42bd17511c09b`,size:new t.ObjectSize(8,5)};get typeName(){return t.utils.getText(0,this)}set typeName(e){t.utils.setText(0,e,this)}_adoptTypeArguments(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownTypeArguments(){return t.utils.disown(this.typeArguments)}get typeArguments(){return t.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initTypeArguments(n){return t.utils.initList(1,e._TypeArguments,n,this)}set typeArguments(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return t.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return t.utils.getStruct(2,c,this)}_hasIndexAccessOrigin(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initIndexAccessOrigin(){return t.utils.initStructAt(2,c,this)}set indexAccessOrigin(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}_adoptDecorators(e){t.utils.adopt(e,t.utils.getPointer(3,this))}_disownDecorators(){return t.utils.disown(this.decorators)}get decorators(){return t.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!t.utils.isNull(t.utils.getPointer(3,this))}_initDecorators(n){return t.utils.initList(3,e._Decorators,n,this)}set decorators(e){t.utils.copyFrom(e,t.utils.getPointer(3,this))}get kind(){return t.utils.getUint16(0,this)}set kind(e){t.utils.setUint16(0,e,this)}_adoptTypes(e){t.utils.adopt(e,t.utils.getPointer(4,this))}_disownTypes(){return t.utils.disown(this.types)}get types(){return t.utils.getList(4,e._Types,this)}_hasTypes(){return!t.utils.isNull(t.utils.getPointer(4,this))}_initTypes(n){return t.utils.initList(4,e._Types,n,this)}set types(e){t.utils.copyFrom(e,t.utils.getPointer(4,this))}toString(){return`SerializedTypeIntersection_`+super.toString()}},S=class e extends t.Struct{static _capnp={displayName:`SerializedTypeArray`,id:`97d1d75240151501`,size:new t.ObjectSize(8,6)};get typeName(){return t.utils.getText(0,this)}set typeName(e){t.utils.setText(0,e,this)}_adoptTypeArguments(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownTypeArguments(){return t.utils.disown(this.typeArguments)}get typeArguments(){return t.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initTypeArguments(n){return t.utils.initList(1,e._TypeArguments,n,this)}set typeArguments(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return t.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return t.utils.getStruct(2,c,this)}_hasIndexAccessOrigin(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initIndexAccessOrigin(){return t.utils.initStructAt(2,c,this)}set indexAccessOrigin(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}_adoptDecorators(e){t.utils.adopt(e,t.utils.getPointer(3,this))}_disownDecorators(){return t.utils.disown(this.decorators)}get decorators(){return t.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!t.utils.isNull(t.utils.getPointer(3,this))}_initDecorators(n){return t.utils.initList(3,e._Decorators,n,this)}set decorators(e){t.utils.copyFrom(e,t.utils.getPointer(3,this))}get kind(){return t.utils.getUint16(0,this)}set kind(e){t.utils.setUint16(0,e,this)}_adoptType(e){t.utils.adopt(e,t.utils.getPointer(4,this))}_disownType(){return t.utils.disown(this.type)}get type(){return t.utils.getStruct(4,s,this)}_hasType(){return!t.utils.isNull(t.utils.getPointer(4,this))}_initType(){return t.utils.initStructAt(4,s,this)}set type(e){t.utils.copyFrom(e,t.utils.getPointer(4,this))}_adoptTags(e){t.utils.adopt(e,t.utils.getPointer(5,this))}_disownTags(){return t.utils.disown(this.tags)}get tags(){return t.utils.getStruct(5,r,this)}_hasTags(){return!t.utils.isNull(t.utils.getPointer(5,this))}_initTags(){return t.utils.initStructAt(5,r,this)}set tags(e){t.utils.copyFrom(e,t.utils.getPointer(5,this))}toString(){return`SerializedTypeArray_`+super.toString()}},C=class e extends t.Struct{static _capnp={displayName:`SerializedTypeIndexSignature`,id:`93e335e2756821d8`,size:new t.ObjectSize(8,6)};get typeName(){return t.utils.getText(0,this)}set typeName(e){t.utils.setText(0,e,this)}_adoptTypeArguments(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownTypeArguments(){return t.utils.disown(this.typeArguments)}get typeArguments(){return t.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initTypeArguments(n){return t.utils.initList(1,e._TypeArguments,n,this)}set typeArguments(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return t.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return t.utils.getStruct(2,c,this)}_hasIndexAccessOrigin(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initIndexAccessOrigin(){return t.utils.initStructAt(2,c,this)}set indexAccessOrigin(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}_adoptDecorators(e){t.utils.adopt(e,t.utils.getPointer(3,this))}_disownDecorators(){return t.utils.disown(this.decorators)}get decorators(){return t.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!t.utils.isNull(t.utils.getPointer(3,this))}_initDecorators(n){return t.utils.initList(3,e._Decorators,n,this)}set decorators(e){t.utils.copyFrom(e,t.utils.getPointer(3,this))}get kind(){return t.utils.getUint16(0,this)}set kind(e){t.utils.setUint16(0,e,this)}_adoptIndex(e){t.utils.adopt(e,t.utils.getPointer(4,this))}_disownIndex(){return t.utils.disown(this.index)}get index(){return t.utils.getStruct(4,s,this)}_hasIndex(){return!t.utils.isNull(t.utils.getPointer(4,this))}_initIndex(){return t.utils.initStructAt(4,s,this)}set index(e){t.utils.copyFrom(e,t.utils.getPointer(4,this))}_adoptType(e){t.utils.adopt(e,t.utils.getPointer(5,this))}_disownType(){return t.utils.disown(this.type)}get type(){return t.utils.getStruct(5,s,this)}_hasType(){return!t.utils.isNull(t.utils.getPointer(5,this))}_initType(){return t.utils.initStructAt(5,s,this)}set type(e){t.utils.copyFrom(e,t.utils.getPointer(5,this))}toString(){return`SerializedTypeIndexSignature_`+super.toString()}},w=class e extends t.Struct{static _capnp={displayName:`SerializedTypePropertySignature`,id:`9bc1cebd2ca1569a`,size:new t.ObjectSize(8,9)};get typeName(){return t.utils.getText(0,this)}set typeName(e){t.utils.setText(0,e,this)}_adoptTypeArguments(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownTypeArguments(){return t.utils.disown(this.typeArguments)}get typeArguments(){return t.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initTypeArguments(n){return t.utils.initList(1,e._TypeArguments,n,this)}set typeArguments(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return t.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return t.utils.getStruct(2,c,this)}_hasIndexAccessOrigin(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initIndexAccessOrigin(){return t.utils.initStructAt(2,c,this)}set indexAccessOrigin(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}_adoptDecorators(e){t.utils.adopt(e,t.utils.getPointer(3,this))}_disownDecorators(){return t.utils.disown(this.decorators)}get decorators(){return t.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!t.utils.isNull(t.utils.getPointer(3,this))}_initDecorators(n){return t.utils.initList(3,e._Decorators,n,this)}set decorators(e){t.utils.copyFrom(e,t.utils.getPointer(3,this))}get kind(){return t.utils.getUint16(0,this)}set kind(e){t.utils.setUint16(0,e,this)}get name(){return t.utils.getText(4,this)}set name(e){t.utils.setText(4,e,this)}get optional(){return t.utils.getBit(16,this)}set optional(e){t.utils.setBit(16,e,this)}get readonly(){return t.utils.getBit(17,this)}set readonly(e){t.utils.setBit(17,e,this)}get description(){return t.utils.getText(5,this)}set description(e){t.utils.setText(5,e,this)}_adoptDefault(e){t.utils.adopt(e,t.utils.getPointer(6,this))}_disownDefault(){return t.utils.disown(this.default)}get default(){return t.utils.getStruct(6,o,this)}_hasDefault(){return!t.utils.isNull(t.utils.getPointer(6,this))}_initDefault(){return t.utils.initStructAt(6,o,this)}set default(e){t.utils.copyFrom(e,t.utils.getPointer(6,this))}_adoptType(e){t.utils.adopt(e,t.utils.getPointer(7,this))}_disownType(){return t.utils.disown(this.type)}get type(){return t.utils.getStruct(7,s,this)}_hasType(){return!t.utils.isNull(t.utils.getPointer(7,this))}_initType(){return t.utils.initStructAt(7,s,this)}set type(e){t.utils.copyFrom(e,t.utils.getPointer(7,this))}_adoptTags(e){t.utils.adopt(e,t.utils.getPointer(8,this))}_disownTags(){return t.utils.disown(this.tags)}get tags(){return t.utils.getStruct(8,r,this)}_hasTags(){return!t.utils.isNull(t.utils.getPointer(8,this))}_initTags(){return t.utils.initStructAt(8,r,this)}set tags(e){t.utils.copyFrom(e,t.utils.getPointer(8,this))}toString(){return`SerializedTypePropertySignature_`+super.toString()}},T=class e extends t.Struct{static _capnp={displayName:`SerializedTypeMethodSignature`,id:`e25a2cc39d5930c8`,size:new t.ObjectSize(8,8)};get typeName(){return t.utils.getText(0,this)}set typeName(e){t.utils.setText(0,e,this)}_adoptTypeArguments(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownTypeArguments(){return t.utils.disown(this.typeArguments)}get typeArguments(){return t.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initTypeArguments(n){return t.utils.initList(1,e._TypeArguments,n,this)}set typeArguments(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return t.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return t.utils.getStruct(2,c,this)}_hasIndexAccessOrigin(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initIndexAccessOrigin(){return t.utils.initStructAt(2,c,this)}set indexAccessOrigin(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}_adoptDecorators(e){t.utils.adopt(e,t.utils.getPointer(3,this))}_disownDecorators(){return t.utils.disown(this.decorators)}get decorators(){return t.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!t.utils.isNull(t.utils.getPointer(3,this))}_initDecorators(n){return t.utils.initList(3,e._Decorators,n,this)}set decorators(e){t.utils.copyFrom(e,t.utils.getPointer(3,this))}get kind(){return t.utils.getUint16(0,this)}set kind(e){t.utils.setUint16(0,e,this)}get name(){return t.utils.getText(4,this)}set name(e){t.utils.setText(4,e,this)}get optional(){return t.utils.getBit(16,this)}set optional(e){t.utils.setBit(16,e,this)}_adoptParameters(e){t.utils.adopt(e,t.utils.getPointer(5,this))}_disownParameters(){return t.utils.disown(this.parameters)}get parameters(){return t.utils.getList(5,e._Parameters,this)}_hasParameters(){return!t.utils.isNull(t.utils.getPointer(5,this))}_initParameters(n){return t.utils.initList(5,e._Parameters,n,this)}set parameters(e){t.utils.copyFrom(e,t.utils.getPointer(5,this))}_adoptReturn(e){t.utils.adopt(e,t.utils.getPointer(6,this))}_disownReturn(){return t.utils.disown(this.return)}get return(){return t.utils.getStruct(6,s,this)}_hasReturn(){return!t.utils.isNull(t.utils.getPointer(6,this))}_initReturn(){return t.utils.initStructAt(6,s,this)}set return(e){t.utils.copyFrom(e,t.utils.getPointer(6,this))}_adoptTags(e){t.utils.adopt(e,t.utils.getPointer(7,this))}_disownTags(){return t.utils.disown(this.tags)}get tags(){return t.utils.getStruct(7,r,this)}_hasTags(){return!t.utils.isNull(t.utils.getPointer(7,this))}_initTags(){return t.utils.initStructAt(7,r,this)}set tags(e){t.utils.copyFrom(e,t.utils.getPointer(7,this))}toString(){return`SerializedTypeMethodSignature_`+super.toString()}},E=class e extends t.Struct{static _capnp={displayName:`SerializedTypeTypeParameter`,id:`81210361a54d5d71`,size:new t.ObjectSize(8,5)};get typeName(){return t.utils.getText(0,this)}set typeName(e){t.utils.setText(0,e,this)}_adoptTypeArguments(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownTypeArguments(){return t.utils.disown(this.typeArguments)}get typeArguments(){return t.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initTypeArguments(n){return t.utils.initList(1,e._TypeArguments,n,this)}set typeArguments(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return t.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return t.utils.getStruct(2,c,this)}_hasIndexAccessOrigin(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initIndexAccessOrigin(){return t.utils.initStructAt(2,c,this)}set indexAccessOrigin(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}_adoptDecorators(e){t.utils.adopt(e,t.utils.getPointer(3,this))}_disownDecorators(){return t.utils.disown(this.decorators)}get decorators(){return t.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!t.utils.isNull(t.utils.getPointer(3,this))}_initDecorators(n){return t.utils.initList(3,e._Decorators,n,this)}set decorators(e){t.utils.copyFrom(e,t.utils.getPointer(3,this))}get kind(){return t.utils.getUint16(0,this)}set kind(e){t.utils.setUint16(0,e,this)}get name(){return t.utils.getText(4,this)}set name(e){t.utils.setText(4,e,this)}toString(){return`SerializedTypeTypeParameter_`+super.toString()}},D=class e extends t.Struct{static _capnp={displayName:`SerializedTypeInfer`,id:`91c6dd1e13f2b14d`,size:new t.ObjectSize(8,4)};get typeName(){return t.utils.getText(0,this)}set typeName(e){t.utils.setText(0,e,this)}_adoptTypeArguments(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownTypeArguments(){return t.utils.disown(this.typeArguments)}get typeArguments(){return t.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initTypeArguments(n){return t.utils.initList(1,e._TypeArguments,n,this)}set typeArguments(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return t.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return t.utils.getStruct(2,c,this)}_hasIndexAccessOrigin(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initIndexAccessOrigin(){return t.utils.initStructAt(2,c,this)}set indexAccessOrigin(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}_adoptDecorators(e){t.utils.adopt(e,t.utils.getPointer(3,this))}_disownDecorators(){return t.utils.disown(this.decorators)}get decorators(){return t.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!t.utils.isNull(t.utils.getPointer(3,this))}_initDecorators(n){return t.utils.initList(3,e._Decorators,n,this)}set decorators(e){t.utils.copyFrom(e,t.utils.getPointer(3,this))}get kind(){return t.utils.getUint16(0,this)}set kind(e){t.utils.setUint16(0,e,this)}toString(){return`SerializedTypeInfer_`+super.toString()}},O=class e extends t.Struct{static _capnp={displayName:`SerializedTypeTupleMember`,id:`e21c2a18d0d56fdf`,size:new t.ObjectSize(8,6)};get typeName(){return t.utils.getText(0,this)}set typeName(e){t.utils.setText(0,e,this)}_adoptTypeArguments(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownTypeArguments(){return t.utils.disown(this.typeArguments)}get typeArguments(){return t.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initTypeArguments(n){return t.utils.initList(1,e._TypeArguments,n,this)}set typeArguments(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return t.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return t.utils.getStruct(2,c,this)}_hasIndexAccessOrigin(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initIndexAccessOrigin(){return t.utils.initStructAt(2,c,this)}set indexAccessOrigin(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}_adoptDecorators(e){t.utils.adopt(e,t.utils.getPointer(3,this))}_disownDecorators(){return t.utils.disown(this.decorators)}get decorators(){return t.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!t.utils.isNull(t.utils.getPointer(3,this))}_initDecorators(n){return t.utils.initList(3,e._Decorators,n,this)}set decorators(e){t.utils.copyFrom(e,t.utils.getPointer(3,this))}get kind(){return t.utils.getUint16(0,this)}set kind(e){t.utils.setUint16(0,e,this)}_adoptType(e){t.utils.adopt(e,t.utils.getPointer(4,this))}_disownType(){return t.utils.disown(this.type)}get type(){return t.utils.getStruct(4,s,this)}_hasType(){return!t.utils.isNull(t.utils.getPointer(4,this))}_initType(){return t.utils.initStructAt(4,s,this)}set type(e){t.utils.copyFrom(e,t.utils.getPointer(4,this))}get optional(){return t.utils.getBit(16,this)}set optional(e){t.utils.setBit(16,e,this)}get name(){return t.utils.getText(5,this)}set name(e){t.utils.setText(5,e,this)}toString(){return`SerializedTypeTupleMember_`+super.toString()}},k=class e extends t.Struct{static _capnp={displayName:`SerializedTypeTuple`,id:`eb7501eb1ee4fb6d`,size:new t.ObjectSize(8,5)};get typeName(){return t.utils.getText(0,this)}set typeName(e){t.utils.setText(0,e,this)}_adoptTypeArguments(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownTypeArguments(){return t.utils.disown(this.typeArguments)}get typeArguments(){return t.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initTypeArguments(n){return t.utils.initList(1,e._TypeArguments,n,this)}set typeArguments(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return t.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return t.utils.getStruct(2,c,this)}_hasIndexAccessOrigin(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initIndexAccessOrigin(){return t.utils.initStructAt(2,c,this)}set indexAccessOrigin(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}_adoptDecorators(e){t.utils.adopt(e,t.utils.getPointer(3,this))}_disownDecorators(){return t.utils.disown(this.decorators)}get decorators(){return t.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!t.utils.isNull(t.utils.getPointer(3,this))}_initDecorators(n){return t.utils.initList(3,e._Decorators,n,this)}set decorators(e){t.utils.copyFrom(e,t.utils.getPointer(3,this))}get kind(){return t.utils.getUint16(0,this)}set kind(e){t.utils.setUint16(0,e,this)}_adoptTypes(e){t.utils.adopt(e,t.utils.getPointer(4,this))}_disownTypes(){return t.utils.disown(this.types)}get types(){return t.utils.getList(4,e._Types,this)}_hasTypes(){return!t.utils.isNull(t.utils.getPointer(4,this))}_initTypes(n){return t.utils.initList(4,e._Types,n,this)}set types(e){t.utils.copyFrom(e,t.utils.getPointer(4,this))}toString(){return`SerializedTypeTuple_`+super.toString()}},A=class e extends t.Struct{static _capnp={displayName:`SerializedTypeRest`,id:`f9e684a435cce5d1`,size:new t.ObjectSize(8,5)};get typeName(){return t.utils.getText(0,this)}set typeName(e){t.utils.setText(0,e,this)}_adoptTypeArguments(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownTypeArguments(){return t.utils.disown(this.typeArguments)}get typeArguments(){return t.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initTypeArguments(n){return t.utils.initList(1,e._TypeArguments,n,this)}set typeArguments(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return t.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return t.utils.getStruct(2,c,this)}_hasIndexAccessOrigin(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initIndexAccessOrigin(){return t.utils.initStructAt(2,c,this)}set indexAccessOrigin(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}_adoptDecorators(e){t.utils.adopt(e,t.utils.getPointer(3,this))}_disownDecorators(){return t.utils.disown(this.decorators)}get decorators(){return t.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!t.utils.isNull(t.utils.getPointer(3,this))}_initDecorators(n){return t.utils.initList(3,e._Decorators,n,this)}set decorators(e){t.utils.copyFrom(e,t.utils.getPointer(3,this))}get kind(){return t.utils.getUint16(0,this)}set kind(e){t.utils.setUint16(0,e,this)}_adoptType(e){t.utils.adopt(e,t.utils.getPointer(4,this))}_disownType(){return t.utils.disown(this.type)}get type(){return t.utils.getStruct(4,s,this)}_hasType(){return!t.utils.isNull(t.utils.getPointer(4,this))}_initType(){return t.utils.initStructAt(4,s,this)}set type(e){t.utils.copyFrom(e,t.utils.getPointer(4,this))}toString(){return`SerializedTypeRest_`+super.toString()}},j=class e extends t.Struct{static _capnp={displayName:`SimpleSerializedType`,id:`80f983e4b811c3ca`,size:new t.ObjectSize(8,5)};get typeName(){return t.utils.getText(0,this)}set typeName(e){t.utils.setText(0,e,this)}_adoptTypeArguments(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownTypeArguments(){return t.utils.disown(this.typeArguments)}get typeArguments(){return t.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initTypeArguments(n){return t.utils.initList(1,e._TypeArguments,n,this)}set typeArguments(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return t.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return t.utils.getStruct(2,c,this)}_hasIndexAccessOrigin(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initIndexAccessOrigin(){return t.utils.initStructAt(2,c,this)}set indexAccessOrigin(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}_adoptDecorators(e){t.utils.adopt(e,t.utils.getPointer(3,this))}_disownDecorators(){return t.utils.disown(this.decorators)}get decorators(){return t.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!t.utils.isNull(t.utils.getPointer(3,this))}_initDecorators(n){return t.utils.initList(3,e._Decorators,n,this)}set decorators(e){t.utils.copyFrom(e,t.utils.getPointer(3,this))}get kind(){return t.utils.getUint16(0,this)}set kind(e){t.utils.setUint16(0,e,this)}_adoptOrigin(e){t.utils.adopt(e,t.utils.getPointer(4,this))}_disownOrigin(){return t.utils.disown(this.origin)}get origin(){return t.utils.getStruct(4,s,this)}_hasOrigin(){return!t.utils.isNull(t.utils.getPointer(4,this))}_initOrigin(){return t.utils.initStructAt(4,s,this)}set origin(e){t.utils.copyFrom(e,t.utils.getPointer(4,this))}toString(){return`SimpleSerializedType_`+super.toString()}},M=class extends t.Struct{static _capnp={displayName:`SerializedTypeLiteralSymbol`,id:`f3dd6a3c6054bd55`,size:new t.ObjectSize(0,2)};get type(){return t.utils.getText(0,this)}set type(e){t.utils.setText(0,e,this)}get name(){return t.utils.getText(1,this)}set name(e){t.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralSymbol_`+super.toString()}},N=class extends t.Struct{static _capnp={displayName:`SerializedTypeLiteralBigInt`,id:`821a872d8be30bb2`,size:new t.ObjectSize(0,2)};get type(){return t.utils.getText(0,this)}set type(e){t.utils.setText(0,e,this)}get value(){return t.utils.getText(1,this)}set value(e){t.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralBigInt_`+super.toString()}},P=class extends t.Struct{static _capnp={displayName:`SerializedTypeLiteralRegex`,id:`cc89f97b47927d99`,size:new t.ObjectSize(0,2)};get type(){return t.utils.getText(0,this)}set type(e){t.utils.setText(0,e,this)}get regex(){return t.utils.getText(1,this)}set regex(e){t.utils.setText(1,e,this)}toString(){return`SerializedTypeLiteralRegex_`+super.toString()}};const F={SYMBOL:0,STRING:1,NUMBER:2,BOOLEAN:3,BIGINT:4,REGEX:5};var I=class extends t.Struct{static SYMBOL=F.SYMBOL;static STRING=F.STRING;static NUMBER=F.NUMBER;static BOOLEAN=F.BOOLEAN;static BIGINT=F.BIGINT;static REGEX=F.REGEX;static _capnp={displayName:`literal`,id:`e4f0538973f3909f`,size:new t.ObjectSize(16,5)};_adoptSymbol(e){t.utils.setUint16(2,0,this),t.utils.adopt(e,t.utils.getPointer(4,this))}_disownSymbol(){return t.utils.disown(this.symbol)}get symbol(){return t.utils.testWhich(`symbol`,t.utils.getUint16(2,this),0,this),t.utils.getStruct(4,M,this)}_hasSymbol(){return!t.utils.isNull(t.utils.getPointer(4,this))}_initSymbol(){return t.utils.setUint16(2,0,this),t.utils.initStructAt(4,M,this)}get _isSymbol(){return t.utils.getUint16(2,this)===0}set symbol(e){t.utils.setUint16(2,0,this),t.utils.copyFrom(e,t.utils.getPointer(4,this))}get string(){return t.utils.testWhich(`string`,t.utils.getUint16(2,this),1,this),t.utils.getText(4,this)}get _isString(){return t.utils.getUint16(2,this)===1}set string(e){t.utils.setUint16(2,1,this),t.utils.setText(4,e,this)}get number(){return t.utils.testWhich(`number`,t.utils.getUint16(2,this),2,this),t.utils.getFloat64(8,this)}get _isNumber(){return t.utils.getUint16(2,this)===2}set number(e){t.utils.setUint16(2,2,this),t.utils.setFloat64(8,e,this)}get boolean(){return t.utils.testWhich(`boolean`,t.utils.getUint16(2,this),3,this),t.utils.getBit(64,this)}get _isBoolean(){return t.utils.getUint16(2,this)===3}set boolean(e){t.utils.setUint16(2,3,this),t.utils.setBit(64,e,this)}_adoptBigint(e){t.utils.setUint16(2,4,this),t.utils.adopt(e,t.utils.getPointer(4,this))}_disownBigint(){return t.utils.disown(this.bigint)}get bigint(){return t.utils.testWhich(`bigint`,t.utils.getUint16(2,this),4,this),t.utils.getStruct(4,N,this)}_hasBigint(){return!t.utils.isNull(t.utils.getPointer(4,this))}_initBigint(){return t.utils.setUint16(2,4,this),t.utils.initStructAt(4,N,this)}get _isBigint(){return t.utils.getUint16(2,this)===4}set bigint(e){t.utils.setUint16(2,4,this),t.utils.copyFrom(e,t.utils.getPointer(4,this))}_adoptRegex(e){t.utils.setUint16(2,5,this),t.utils.adopt(e,t.utils.getPointer(4,this))}_disownRegex(){return t.utils.disown(this.regex)}get regex(){return t.utils.testWhich(`regex`,t.utils.getUint16(2,this),5,this),t.utils.getStruct(4,P,this)}_hasRegex(){return!t.utils.isNull(t.utils.getPointer(4,this))}_initRegex(){return t.utils.setUint16(2,5,this),t.utils.initStructAt(4,P,this)}get _isRegex(){return t.utils.getUint16(2,this)===5}set regex(e){t.utils.setUint16(2,5,this),t.utils.copyFrom(e,t.utils.getPointer(4,this))}toString(){return`SerializedTypeLiteral_Literal_`+super.toString()}which(){return t.utils.getUint16(2,this)}},L=class e extends t.Struct{static _capnp={displayName:`SerializedTypeLiteral`,id:`b876ba24d27d88c8`,size:new t.ObjectSize(16,5)};get typeName(){return t.utils.getText(0,this)}set typeName(e){t.utils.setText(0,e,this)}_adoptTypeArguments(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownTypeArguments(){return t.utils.disown(this.typeArguments)}get typeArguments(){return t.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initTypeArguments(n){return t.utils.initList(1,e._TypeArguments,n,this)}set typeArguments(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return t.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return t.utils.getStruct(2,c,this)}_hasIndexAccessOrigin(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initIndexAccessOrigin(){return t.utils.initStructAt(2,c,this)}set indexAccessOrigin(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}_adoptDecorators(e){t.utils.adopt(e,t.utils.getPointer(3,this))}_disownDecorators(){return t.utils.disown(this.decorators)}get decorators(){return t.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!t.utils.isNull(t.utils.getPointer(3,this))}_initDecorators(n){return t.utils.initList(3,e._Decorators,n,this)}set decorators(e){t.utils.copyFrom(e,t.utils.getPointer(3,this))}get kind(){return t.utils.getUint16(0,this)}set kind(e){t.utils.setUint16(0,e,this)}get literal(){return t.utils.getAs(I,this)}_initLiteral(){return t.utils.getAs(I,this)}toString(){return`SerializedTypeLiteral_`+super.toString()}},R=class e extends t.Struct{static _capnp={displayName:`SerializedTypeTemplateLiteral`,id:`8dd6c284d46cc265`,size:new t.ObjectSize(8,5)};get typeName(){return t.utils.getText(0,this)}set typeName(e){t.utils.setText(0,e,this)}_adoptTypeArguments(e){t.utils.adopt(e,t.utils.getPointer(1,this))}_disownTypeArguments(){return t.utils.disown(this.typeArguments)}get typeArguments(){return t.utils.getList(1,e._TypeArguments,this)}_hasTypeArguments(){return!t.utils.isNull(t.utils.getPointer(1,this))}_initTypeArguments(n){return t.utils.initList(1,e._TypeArguments,n,this)}set typeArguments(e){t.utils.copyFrom(e,t.utils.getPointer(1,this))}_adoptIndexAccessOrigin(e){t.utils.adopt(e,t.utils.getPointer(2,this))}_disownIndexAccessOrigin(){return t.utils.disown(this.indexAccessOrigin)}get indexAccessOrigin(){return t.utils.getStruct(2,c,this)}_hasIndexAccessOrigin(){return!t.utils.isNull(t.utils.getPointer(2,this))}_initIndexAccessOrigin(){return t.utils.initStructAt(2,c,this)}set indexAccessOrigin(e){t.utils.copyFrom(e,t.utils.getPointer(2,this))}_adoptDecorators(e){t.utils.adopt(e,t.utils.getPointer(3,this))}_disownDecorators(){return t.utils.disown(this.decorators)}get decorators(){return t.utils.getList(3,e._Decorators,this)}_hasDecorators(){return!t.utils.isNull(t.utils.getPointer(3,this))}_initDecorators(n){return t.utils.initList(3,e._Decorators,n,this)}set decorators(e){t.utils.copyFrom(e,t.utils.getPointer(3,this))}get kind(){return t.utils.getUint16(0,this)}set kind(e){t.utils.setUint16(0,e,this)}_adoptTypes(e){t.utils.adopt(e,t.utils.getPointer(4,this))}_disownTypes(){return t.utils.disown(this.types)}get types(){return t.utils.getList(4,e._Types,this)}_hasTypes(){return!t.utils.isNull(t.utils.getPointer(4,this))}_initTypes(n){return t.utils.initList(4,e._Types,n,this)}set types(e){t.utils.copyFrom(e,t.utils.getPointer(4,this))}toString(){return`SerializedTypeTemplateLiteral_`+super.toString()}},z=class extends t.Struct{static _capnp={displayName:`SerializedTypeOther`,id:`9e1048a692ff49ce`,size:new t.ObjectSize(8,1)};get typeName(){return t.utils.getText(0,this)}set typeName(e){t.utils.setText(0,e,this)}get kind(){return t.utils.getUint16(0,this)}set kind(e){t.utils.setUint16(0,e,this)}toString(){return`SerializedTypeOther_`+super.toString()}};const B={SIMPLE:0,LITERAL:1,TEMPLATE_LITERAL:2,PARAMETER:3,FUNCTION:4,METHOD:5,PROPERTY:6,PROMISE:7,CLASS_TYPE:8,ENUM:9,UNION:10,INTERSECTION:11,ARRAY:12,OBJECT_LITERAL:13,INDEX_SIGNATURE:14,PROPERTY_SIGNATURE:15,METHOD_SIGNATURE:16,TYPE_PARAMETER:17,INFER:18,TUPLE:19,TUPLE_MEMBER:20,REST:21,OTHER:22};var V=class extends t.Struct{static SIMPLE=B.SIMPLE;static LITERAL=B.LITERAL;static TEMPLATE_LITERAL=B.TEMPLATE_LITERAL;static PARAMETER=B.PARAMETER;static FUNCTION=B.FUNCTION;static METHOD=B.METHOD;static PROPERTY=B.PROPERTY;static PROMISE=B.PROMISE;static CLASS_TYPE=B.CLASS_TYPE;static ENUM=B.ENUM;static UNION=B.UNION;static INTERSECTION=B.INTERSECTION;static ARRAY=B.ARRAY;static OBJECT_LITERAL=B.OBJECT_LITERAL;static INDEX_SIGNATURE=B.INDEX_SIGNATURE;static PROPERTY_SIGNATURE=B.PROPERTY_SIGNATURE;static METHOD_SIGNATURE=B.METHOD_SIGNATURE;static TYPE_PARAMETER=B.TYPE_PARAMETER;static INFER=B.INFER;static TUPLE=B.TUPLE;static TUPLE_MEMBER=B.TUPLE_MEMBER;static REST=B.REST;static OTHER=B.OTHER;static _capnp={displayName:`type`,id:`c677d7ed4a496eab`,size:new t.ObjectSize(8,1)};_adoptSimple(e){t.utils.setUint16(0,0,this),t.utils.adopt(e,t.utils.getPointer(0,this))}_disownSimple(){return t.utils.disown(this.simple)}get simple(){return t.utils.testWhich(`simple`,t.utils.getUint16(0,this),0,this),t.utils.getStruct(0,j,this)}_hasSimple(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initSimple(){return t.utils.setUint16(0,0,this),t.utils.initStructAt(0,j,this)}get _isSimple(){return t.utils.getUint16(0,this)===0}set simple(e){t.utils.setUint16(0,0,this),t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptLiteral(e){t.utils.setUint16(0,1,this),t.utils.adopt(e,t.utils.getPointer(0,this))}_disownLiteral(){return t.utils.disown(this.literal)}get literal(){return t.utils.testWhich(`literal`,t.utils.getUint16(0,this),1,this),t.utils.getStruct(0,L,this)}_hasLiteral(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initLiteral(){return t.utils.setUint16(0,1,this),t.utils.initStructAt(0,L,this)}get _isLiteral(){return t.utils.getUint16(0,this)===1}set literal(e){t.utils.setUint16(0,1,this),t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptTemplateLiteral(e){t.utils.setUint16(0,2,this),t.utils.adopt(e,t.utils.getPointer(0,this))}_disownTemplateLiteral(){return t.utils.disown(this.templateLiteral)}get templateLiteral(){return t.utils.testWhich(`templateLiteral`,t.utils.getUint16(0,this),2,this),t.utils.getStruct(0,R,this)}_hasTemplateLiteral(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initTemplateLiteral(){return t.utils.setUint16(0,2,this),t.utils.initStructAt(0,R,this)}get _isTemplateLiteral(){return t.utils.getUint16(0,this)===2}set templateLiteral(e){t.utils.setUint16(0,2,this),t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptParameter(e){t.utils.setUint16(0,3,this),t.utils.adopt(e,t.utils.getPointer(0,this))}_disownParameter(){return t.utils.disown(this.parameter)}get parameter(){return t.utils.testWhich(`parameter`,t.utils.getUint16(0,this),3,this),t.utils.getStruct(0,p,this)}_hasParameter(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initParameter(){return t.utils.setUint16(0,3,this),t.utils.initStructAt(0,p,this)}get _isParameter(){return t.utils.getUint16(0,this)===3}set parameter(e){t.utils.setUint16(0,3,this),t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptFunction(e){t.utils.setUint16(0,4,this),t.utils.adopt(e,t.utils.getPointer(0,this))}_disownFunction(){return t.utils.disown(this.function)}get function(){return t.utils.testWhich(`function`,t.utils.getUint16(0,this),4,this),t.utils.getStruct(0,g,this)}_hasFunction(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initFunction(){return t.utils.setUint16(0,4,this),t.utils.initStructAt(0,g,this)}get _isFunction(){return t.utils.getUint16(0,this)===4}set function(e){t.utils.setUint16(0,4,this),t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptMethod(e){t.utils.setUint16(0,5,this),t.utils.adopt(e,t.utils.getPointer(0,this))}_disownMethod(){return t.utils.disown(this.method)}get method(){return t.utils.testWhich(`method`,t.utils.getUint16(0,this),5,this),t.utils.getStruct(0,m,this)}_hasMethod(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initMethod(){return t.utils.setUint16(0,5,this),t.utils.initStructAt(0,m,this)}get _isMethod(){return t.utils.getUint16(0,this)===5}set method(e){t.utils.setUint16(0,5,this),t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptProperty(e){t.utils.setUint16(0,6,this),t.utils.adopt(e,t.utils.getPointer(0,this))}_disownProperty(){return t.utils.disown(this.property)}get property(){return t.utils.testWhich(`property`,t.utils.getUint16(0,this),6,this),t.utils.getStruct(0,h,this)}_hasProperty(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initProperty(){return t.utils.setUint16(0,6,this),t.utils.initStructAt(0,h,this)}get _isProperty(){return t.utils.getUint16(0,this)===6}set property(e){t.utils.setUint16(0,6,this),t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptPromise(e){t.utils.setUint16(0,7,this),t.utils.adopt(e,t.utils.getPointer(0,this))}_disownPromise(){return t.utils.disown(this.promise)}get promise(){return t.utils.testWhich(`promise`,t.utils.getUint16(0,this),7,this),t.utils.getStruct(0,_,this)}_hasPromise(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initPromise(){return t.utils.setUint16(0,7,this),t.utils.initStructAt(0,_,this)}get _isPromise(){return t.utils.getUint16(0,this)===7}set promise(e){t.utils.setUint16(0,7,this),t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptClassType(e){t.utils.setUint16(0,8,this),t.utils.adopt(e,t.utils.getPointer(0,this))}_disownClassType(){return t.utils.disown(this.classType)}get classType(){return t.utils.testWhich(`classType`,t.utils.getUint16(0,this),8,this),t.utils.getStruct(0,f,this)}_hasClassType(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initClassType(){return t.utils.setUint16(0,8,this),t.utils.initStructAt(0,f,this)}get _isClassType(){return t.utils.getUint16(0,this)===8}set classType(e){t.utils.setUint16(0,8,this),t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptEnum(e){t.utils.setUint16(0,9,this),t.utils.adopt(e,t.utils.getPointer(0,this))}_disownEnum(){return t.utils.disown(this.enum)}get enum(){return t.utils.testWhich(`enum`,t.utils.getUint16(0,this),9,this),t.utils.getStruct(0,y,this)}_hasEnum(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initEnum(){return t.utils.setUint16(0,9,this),t.utils.initStructAt(0,y,this)}get _isEnum(){return t.utils.getUint16(0,this)===9}set enum(e){t.utils.setUint16(0,9,this),t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptUnion(e){t.utils.setUint16(0,10,this),t.utils.adopt(e,t.utils.getPointer(0,this))}_disownUnion(){return t.utils.disown(this.union)}get union(){return t.utils.testWhich(`union`,t.utils.getUint16(0,this),10,this),t.utils.getStruct(0,b,this)}_hasUnion(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initUnion(){return t.utils.setUint16(0,10,this),t.utils.initStructAt(0,b,this)}get _isUnion(){return t.utils.getUint16(0,this)===10}set union(e){t.utils.setUint16(0,10,this),t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptIntersection(e){t.utils.setUint16(0,11,this),t.utils.adopt(e,t.utils.getPointer(0,this))}_disownIntersection(){return t.utils.disown(this.intersection)}get intersection(){return t.utils.testWhich(`intersection`,t.utils.getUint16(0,this),11,this),t.utils.getStruct(0,x,this)}_hasIntersection(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initIntersection(){return t.utils.setUint16(0,11,this),t.utils.initStructAt(0,x,this)}get _isIntersection(){return t.utils.getUint16(0,this)===11}set intersection(e){t.utils.setUint16(0,11,this),t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptArray(e){t.utils.setUint16(0,12,this),t.utils.adopt(e,t.utils.getPointer(0,this))}_disownArray(){return t.utils.disown(this.array)}get array(){return t.utils.testWhich(`array`,t.utils.getUint16(0,this),12,this),t.utils.getStruct(0,S,this)}_hasArray(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initArray(){return t.utils.setUint16(0,12,this),t.utils.initStructAt(0,S,this)}get _isArray(){return t.utils.getUint16(0,this)===12}set array(e){t.utils.setUint16(0,12,this),t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptObjectLiteral(e){t.utils.setUint16(0,13,this),t.utils.adopt(e,t.utils.getPointer(0,this))}_disownObjectLiteral(){return t.utils.disown(this.objectLiteral)}get objectLiteral(){return t.utils.testWhich(`objectLiteral`,t.utils.getUint16(0,this),13,this),t.utils.getStruct(0,d,this)}_hasObjectLiteral(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initObjectLiteral(){return t.utils.setUint16(0,13,this),t.utils.initStructAt(0,d,this)}get _isObjectLiteral(){return t.utils.getUint16(0,this)===13}set objectLiteral(e){t.utils.setUint16(0,13,this),t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptIndexSignature(e){t.utils.setUint16(0,14,this),t.utils.adopt(e,t.utils.getPointer(0,this))}_disownIndexSignature(){return t.utils.disown(this.indexSignature)}get indexSignature(){return t.utils.testWhich(`indexSignature`,t.utils.getUint16(0,this),14,this),t.utils.getStruct(0,C,this)}_hasIndexSignature(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initIndexSignature(){return t.utils.setUint16(0,14,this),t.utils.initStructAt(0,C,this)}get _isIndexSignature(){return t.utils.getUint16(0,this)===14}set indexSignature(e){t.utils.setUint16(0,14,this),t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptPropertySignature(e){t.utils.setUint16(0,15,this),t.utils.adopt(e,t.utils.getPointer(0,this))}_disownPropertySignature(){return t.utils.disown(this.propertySignature)}get propertySignature(){return t.utils.testWhich(`propertySignature`,t.utils.getUint16(0,this),15,this),t.utils.getStruct(0,w,this)}_hasPropertySignature(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initPropertySignature(){return t.utils.setUint16(0,15,this),t.utils.initStructAt(0,w,this)}get _isPropertySignature(){return t.utils.getUint16(0,this)===15}set propertySignature(e){t.utils.setUint16(0,15,this),t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptMethodSignature(e){t.utils.setUint16(0,16,this),t.utils.adopt(e,t.utils.getPointer(0,this))}_disownMethodSignature(){return t.utils.disown(this.methodSignature)}get methodSignature(){return t.utils.testWhich(`methodSignature`,t.utils.getUint16(0,this),16,this),t.utils.getStruct(0,T,this)}_hasMethodSignature(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initMethodSignature(){return t.utils.setUint16(0,16,this),t.utils.initStructAt(0,T,this)}get _isMethodSignature(){return t.utils.getUint16(0,this)===16}set methodSignature(e){t.utils.setUint16(0,16,this),t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptTypeParameter(e){t.utils.setUint16(0,17,this),t.utils.adopt(e,t.utils.getPointer(0,this))}_disownTypeParameter(){return t.utils.disown(this.typeParameter)}get typeParameter(){return t.utils.testWhich(`typeParameter`,t.utils.getUint16(0,this),17,this),t.utils.getStruct(0,E,this)}_hasTypeParameter(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initTypeParameter(){return t.utils.setUint16(0,17,this),t.utils.initStructAt(0,E,this)}get _isTypeParameter(){return t.utils.getUint16(0,this)===17}set typeParameter(e){t.utils.setUint16(0,17,this),t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptInfer(e){t.utils.setUint16(0,18,this),t.utils.adopt(e,t.utils.getPointer(0,this))}_disownInfer(){return t.utils.disown(this.infer)}get infer(){return t.utils.testWhich(`infer`,t.utils.getUint16(0,this),18,this),t.utils.getStruct(0,D,this)}_hasInfer(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initInfer(){return t.utils.setUint16(0,18,this),t.utils.initStructAt(0,D,this)}get _isInfer(){return t.utils.getUint16(0,this)===18}set infer(e){t.utils.setUint16(0,18,this),t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptTuple(e){t.utils.setUint16(0,19,this),t.utils.adopt(e,t.utils.getPointer(0,this))}_disownTuple(){return t.utils.disown(this.tuple)}get tuple(){return t.utils.testWhich(`tuple`,t.utils.getUint16(0,this),19,this),t.utils.getStruct(0,k,this)}_hasTuple(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initTuple(){return t.utils.setUint16(0,19,this),t.utils.initStructAt(0,k,this)}get _isTuple(){return t.utils.getUint16(0,this)===19}set tuple(e){t.utils.setUint16(0,19,this),t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptTupleMember(e){t.utils.setUint16(0,20,this),t.utils.adopt(e,t.utils.getPointer(0,this))}_disownTupleMember(){return t.utils.disown(this.tupleMember)}get tupleMember(){return t.utils.testWhich(`tupleMember`,t.utils.getUint16(0,this),20,this),t.utils.getStruct(0,O,this)}_hasTupleMember(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initTupleMember(){return t.utils.setUint16(0,20,this),t.utils.initStructAt(0,O,this)}get _isTupleMember(){return t.utils.getUint16(0,this)===20}set tupleMember(e){t.utils.setUint16(0,20,this),t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptRest(e){t.utils.setUint16(0,21,this),t.utils.adopt(e,t.utils.getPointer(0,this))}_disownRest(){return t.utils.disown(this.rest)}get rest(){return t.utils.testWhich(`rest`,t.utils.getUint16(0,this),21,this),t.utils.getStruct(0,A,this)}_hasRest(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initRest(){return t.utils.setUint16(0,21,this),t.utils.initStructAt(0,A,this)}get _isRest(){return t.utils.getUint16(0,this)===21}set rest(e){t.utils.setUint16(0,21,this),t.utils.copyFrom(e,t.utils.getPointer(0,this))}_adoptOther(e){t.utils.setUint16(0,22,this),t.utils.adopt(e,t.utils.getPointer(0,this))}_disownOther(){return t.utils.disown(this.other)}get other(){return t.utils.testWhich(`other`,t.utils.getUint16(0,this),22,this),t.utils.getStruct(0,z,this)}_hasOther(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initOther(){return t.utils.setUint16(0,22,this),t.utils.initStructAt(0,z,this)}get _isOther(){return t.utils.getUint16(0,this)===22}set other(e){t.utils.setUint16(0,22,this),t.utils.copyFrom(e,t.utils.getPointer(0,this))}toString(){return`SerializedType_Type_`+super.toString()}which(){return t.utils.getUint16(0,this)}},H=class extends t.Struct{static _capnp={displayName:`SerializedType`,id:`96856dcc2dd3d58f`,size:new t.ObjectSize(8,1)};get type(){return t.utils.getAs(V,this)}_initType(){return t.utils.getAs(V,this)}toString(){return`SerializedType_`+super.toString()}},U=class e extends t.Struct{static _capnp={displayName:`SerializedTypes`,id:`ac55398ab0ef4958`,size:new t.ObjectSize(0,1)};_adoptTypes(e){t.utils.adopt(e,t.utils.getPointer(0,this))}_disownTypes(){return t.utils.disown(this.types)}get types(){return t.utils.getList(0,e._Types,this)}_hasTypes(){return!t.utils.isNull(t.utils.getPointer(0,this))}_initTypes(n){return t.utils.initList(0,e._Types,n,this)}set types(e){t.utils.copyFrom(e,t.utils.getPointer(0,this))}toString(){return`SerializedTypes_`+super.toString()}};u._Indexes=t.CompositeList(l),d._TypeArguments=t.CompositeList(s),d._Decorators=t.CompositeList(s),d._Types=t.CompositeList(s),f._TypeArguments=t.CompositeList(s),f._Decorators=t.CompositeList(s),f._ExtendsArguments=t.CompositeList(s),f._Arguments=t.CompositeList(s),f._Types=t.CompositeList(s),p._TypeArguments=t.CompositeList(s),p._Decorators=t.CompositeList(s),m._TypeArguments=t.CompositeList(s),m._Decorators=t.CompositeList(s),m._Parameters=t.CompositeList(p),h._TypeArguments=t.CompositeList(s),h._Decorators=t.CompositeList(s),g._TypeArguments=t.CompositeList(s),g._Decorators=t.CompositeList(s),g._Parameters=t.CompositeList(p),_._TypeArguments=t.CompositeList(s),_._Decorators=t.CompositeList(s),y._TypeArguments=t.CompositeList(s),y._Decorators=t.CompositeList(s),y._EnumEntries=t.CompositeList(v),b._TypeArguments=t.CompositeList(s),b._Decorators=t.CompositeList(s),b._Types=t.CompositeList(s),x._TypeArguments=t.CompositeList(s),x._Decorators=t.CompositeList(s),x._Types=t.CompositeList(s),S._TypeArguments=t.CompositeList(s),S._Decorators=t.CompositeList(s),C._TypeArguments=t.CompositeList(s),C._Decorators=t.CompositeList(s),w._TypeArguments=t.CompositeList(s),w._Decorators=t.CompositeList(s),T._TypeArguments=t.CompositeList(s),T._Decorators=t.CompositeList(s),T._Parameters=t.CompositeList(p),E._TypeArguments=t.CompositeList(s),E._Decorators=t.CompositeList(s),D._TypeArguments=t.CompositeList(s),D._Decorators=t.CompositeList(s),O._TypeArguments=t.CompositeList(s),O._Decorators=t.CompositeList(s),k._TypeArguments=t.CompositeList(s),k._Decorators=t.CompositeList(s),k._Types=t.CompositeList(O),A._TypeArguments=t.CompositeList(s),A._Decorators=t.CompositeList(s),j._TypeArguments=t.CompositeList(s),j._Decorators=t.CompositeList(s),L._TypeArguments=t.CompositeList(s),L._Decorators=t.CompositeList(s),R._TypeArguments=t.CompositeList(s),R._Decorators=t.CompositeList(s),R._Types=t.CompositeList(s),U._Types=t.CompositeList(H),exports.ReflectionVisibility=n;
|