@powerlines/plugin-crypto 0.10.32 → 0.10.34
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-X42XA8SV.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/crypto.cjs +133 -0
- package/dist/components/crypto.d.cts +13 -0
- package/dist/components/crypto.d.mts +13 -0
- package/dist/components/crypto.mjs +133 -0
- package/dist/components/index.cjs +1 -0
- package/dist/components/index.d.mts +1 -0
- package/dist/components/index.mjs +1 -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 -208
- package/dist/index.d.cts +4 -12
- package/dist/index.d.mts +5 -12
- package/dist/index.mjs +1 -205
- 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 +1 -2
- package/dist/types/index.d.mts +1 -2
- package/dist/types/index.mjs +1 -1
- package/dist/types/plugin.cjs +0 -1
- package/dist/types/plugin.d.cts +41 -1
- package/dist/types/plugin.d.mts +41 -1
- package/dist/types/plugin.mjs +1 -1
- package/package.json +8 -8
- package/dist/index-CEgs-Dz2.d.cts +0 -1
- package/dist/index-D9zIjQH9.d.mts +0 -1
- package/dist/plugin-DHXHjv16.cjs +0 -0
- package/dist/plugin-DzeYlbKJ.mjs +0 -1
- package/dist/plugin-Eengqhgj.d.mts +0 -4207
- package/dist/plugin-QQeJHnEx.d.cts +0 -4208
- package/dist/types-BKeuN6sy.mjs +0 -1
- package/dist/types-DHkg7xmX.cjs +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,205 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
`)?`${r}\n`:r}function Ft(e){let t=[];for(let n of e)if(typeof n==`string`){let e=n.split(/\r?\n/).flatMap((e,t,n)=>(n.length-1,[e]));t.push(e)}else ue(n)?t.push(n.print(n.subtree,Ft)):t.push(Ft(n));return t}var O={};import*as It from"@deepkit/type";e(O,It);function Lt(e){return y(e)?e:Array.isArray(e)&&e.length>0?Lt(e[0]):e.$$name||e.name?e.$$name||e.name:void 0}function Rt(e,t){return!!(Lt(t)&&e.some(e=>Array.isArray(e)&&Lt(e[0])===Lt(t)))}function zt(e,t){try{return Array.isArray(t)&&t.length>0&&t[0]?b(t[0])?t[0](e):t[0]:b(t)?t(e):t}catch{return t[0]}}function Bt(e,t,n,r){if(Array.isArray(r)&&r.length>0&&r[0]){if(r.length>2&&r[2]&&b(r[2])&&!r[2](t,n)){e.log(v.TRACE,`Skipping filtered Babel plugin ${we.bold.cyanBright(Lt(r)||`unnamed`)} for ${n}`);return}return r.length>2?[zt(e,r),r[1],r[2]]:[zt(e,r),r[1],null]}return[zt(e,r),{},null]}let Vt=Te;`default`in Vt&&(Vt=Vt.default);const Ht=[`#00A0DD`,`#6FCE4E`,`#FBBF24`,`#F43F5E`,`#3B82F6`,`#A855F7`,`#469592`,`#288EDF`,`#10B981`,`#EF4444`,`#F0EC56`,`#F472B6`,`#22D3EE`,`#EAB308`,`#84CC16`,`#F87171`,`#0EA5E9`,`#D946EF`,`#FACC15`,`#34D399`],Ut=(e,t)=>(n,...r)=>e(n,` ${we.inverse.hex(Ht[t.split(``).map(e=>e.charCodeAt(0)).reduce((e,t)=>e+t,0)%Ht.length]||Ht[0])(` ${C(t)} `)} ${r.join(` `)} `);function Wt(e,t){let n=n=>Ee((r,i,a)=>{r.cache.using(()=>n.meta.checksum),r.assertVersion(`^7.0.0-0`);let o=Ut(n.log,e);o(v.TRACE,`Initializing the ${we.bold.cyanBright(e)} Babel plugin`);let s=t({log:o,name:e,api:r,options:i,context:n,dirname:a});return s.name=e,o(v.TRACE,`Completed initialization of the ${we.bold.cyanBright(e)} Babel plugin`),s});return n.$$name=e,n}function Gt(e,t){Jt(e.scope.getProgramParent().path,t)}function Kt(e){return e.get(`specifiers`).filter(Boolean).every(e=>e?.isImportSpecifier())&&e.node.importKind!==`type`&&e.node.importKind!==`typeof`}function qt(e){let t=new Map;return e.traverse({ImportDeclaration(e){Kt(e)&&t.set(e.node.source.value,e)}}),t}function Jt(e,t){qt(e).get(t.module)||e.unshiftContainer(`body`,De.importDeclaration([De.importSpecifier(De.identifier(t.name||t.imported),De.identifier(t.imported))],De.stringLiteral(t.module)))}var Yt=(e={})=>({name:`babel`,config(){if(ye(e))return{transform:{babel:e}}},configResolved:{order:`pre`,handler(){this.devDependencies[`@babel/core`]=`^7.28.4`,this.config.transform.babel=S(this.config.transform.babel??{},{plugins:[],presets:[]})}},async transform(t,n){if(_e(n,this.powerlinesPath)||t.includes(`/* @storm-ignore */`)||t.includes(`/* @storm-disable */`))return this.log(v.TRACE,`Skipping Babel transformation for: ${n}`),{code:t,id:n};this.log(v.TRACE,`Babel transforming file: ${n}`);let r=this.config.transform.babel.plugins.map(e=>Bt(this,t,n,e)).filter((e,t,n)=>e&&!Rt(n,e)),i=this.config.transform.babel.presets.map(e=>Bt(this,t,n,e)).filter((e,t,n)=>e&&!Rt(n,e));if(Array.isArray(r)&&r.length===0&&Array.isArray(i)&&i.length===0)return{code:t,id:n};[`ts`,`cts`,`mts`,`tsx`].includes(Ce(n))&&!Rt(r,`@babel/plugin-syntax-typescript`)&&!Rt(i,`@babel/preset-typescript`)&&r.unshift([`@babel/plugin-syntax-typescript`,{isTSX:Se(n)===`.tsx`}]);let a=await xe(t,{highlightCode:!0,code:!0,ast:!1,cloneInputAst:!1,comments:!0,sourceType:`module`,configFile:!1,babelrc:!1,envName:this.config.mode,caller:{name:this.config.framework},...this.config.transform.babel??{},filename:n,plugins:r.map(t=>Array.isArray(t)&&t.length>=2?[t[0],S(t.length>1&&t[1]?t[1]:{},{options:e})]:t).filter(Boolean),presets:i.map(t=>Array.isArray(t)&&t.length>=2?[t[0],S(t.length>1&&t[1]?t[1]:{},{options:e})]:t).filter(Boolean)});if(!a?.code)throw Error(`Powerlines - Babel plugin failed to compile ${n}`);return{code:a.code,id:n}}});const k={PUBLIC:0,PROTECTED:1,PRIVATE:2};var A=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 Xt={UNDEFINED:0,BOOLEAN:1,INTEGER:2,FLOAT:3,STRING:4};var Zt=class extends T.Struct{static UNDEFINED=Xt.UNDEFINED;static BOOLEAN=Xt.BOOLEAN;static INTEGER=Xt.INTEGER;static FLOAT=Xt.FLOAT;static STRING=Xt.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)}},j=class extends T.Struct{static _capnp={displayName:`DefaultValueReflection`,id:`96fe6f07954197c9`,size:new T.ObjectSize(16,1)};get value(){return T.utils.getAs(Zt,this)}_initValue(){return T.utils.getAs(Zt,this)}toString(){return`DefaultValueReflection_`+super.toString()}},M=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()}},N=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,M,this)}_hasContainer(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initContainer(){return T.utils.initStructAt(0,M,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,M,this)}_hasIndex(){return!T.utils.isNull(T.utils.getPointer(1,this))}_initIndex(){return T.utils.initStructAt(1,M,this)}set index(e){T.utils.copyFrom(e,T.utils.getPointer(1,this))}toString(){return`IndexAccessOrigin_`+super.toString()}},Qt=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()}},$t=class e extends T.Struct{static EntityIndexOptions=Qt;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(t){return T.utils.initList(4,e._Indexes,t,this)}set indexes(e){T.utils.copyFrom(e,T.utils.getPointer(4,this))}toString(){return`EntityOptions_`+super.toString()}},en=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(t){return T.utils.initList(1,e._TypeArguments,t,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,N,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,N,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(t){return T.utils.initList(3,e._Decorators,t,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(t){return T.utils.initList(4,e._Types,t,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,A,this)}_hasTags(){return!T.utils.isNull(T.utils.getPointer(5,this))}_initTags(){return T.utils.initStructAt(5,A,this)}set tags(e){T.utils.copyFrom(e,T.utils.getPointer(5,this))}toString(){return`SerializedTypeObjectLiteral_`+super.toString()}},P=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(t){return T.utils.initList(1,e._TypeArguments,t,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,N,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,N,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(t){return T.utils.initList(3,e._Decorators,t,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(t){return T.utils.initList(6,e._ExtendsArguments,t,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(t){return T.utils.initList(7,e._Arguments,t,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,M,this)}_hasSuperClass(){return!T.utils.isNull(T.utils.getPointer(8,this))}_initSuperClass(){return T.utils.initStructAt(8,M,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(t){return T.utils.initList(9,e._Types,t,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,A,this)}_hasTags(){return!T.utils.isNull(T.utils.getPointer(10,this))}_initTags(){return T.utils.initStructAt(10,A,this)}set tags(e){T.utils.copyFrom(e,T.utils.getPointer(10,this))}toString(){return`SerializedTypeClassType_`+super.toString()}},F=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(t){return T.utils.initList(1,e._TypeArguments,t,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,N,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,N,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(t){return T.utils.initList(3,e._Decorators,t,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,M,this)}_hasType(){return!T.utils.isNull(T.utils.getPointer(5,this))}_initType(){return T.utils.initStructAt(5,M,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,j,this)}_hasDefault(){return!T.utils.isNull(T.utils.getPointer(6,this))}_initDefault(){return T.utils.initStructAt(6,j,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,A,this)}_hasTags(){return!T.utils.isNull(T.utils.getPointer(7,this))}_initTags(){return T.utils.initStructAt(7,A,this)}set tags(e){T.utils.copyFrom(e,T.utils.getPointer(7,this))}toString(){return`SerializedTypeParameter_`+super.toString()}},tn=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(t){return T.utils.initList(1,e._TypeArguments,t,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,N,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,N,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(t){return T.utils.initList(3,e._Decorators,t,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,A,this)}_hasTags(){return!T.utils.isNull(T.utils.getPointer(4,this))}_initTags(){return T.utils.initStructAt(4,A,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(t){return T.utils.initList(6,e._Parameters,t,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,M,this)}_hasReturn(){return!T.utils.isNull(T.utils.getPointer(7,this))}_initReturn(){return T.utils.initStructAt(7,M,this)}set return(e){T.utils.copyFrom(e,T.utils.getPointer(7,this))}toString(){return`SerializedTypeMethod_`+super.toString()}},nn=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(t){return T.utils.initList(1,e._TypeArguments,t,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,N,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,N,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(t){return T.utils.initList(3,e._Decorators,t,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,A,this)}_hasTags(){return!T.utils.isNull(T.utils.getPointer(4,this))}_initTags(){return T.utils.initStructAt(4,A,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,M,this)}_hasType(){return!T.utils.isNull(T.utils.getPointer(7,this))}_initType(){return T.utils.initStructAt(7,M,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,j,this)}_hasDefault(){return!T.utils.isNull(T.utils.getPointer(8,this))}_initDefault(){return T.utils.initStructAt(8,j,this)}set default(e){T.utils.copyFrom(e,T.utils.getPointer(8,this))}toString(){return`SerializedTypeProperty_`+super.toString()}},rn=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(t){return T.utils.initList(1,e._TypeArguments,t,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,N,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,N,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(t){return T.utils.initList(3,e._Decorators,t,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,A,this)}_hasTags(){return!T.utils.isNull(T.utils.getPointer(4,this))}_initTags(){return T.utils.initStructAt(4,A,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(t){return T.utils.initList(6,e._Parameters,t,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,M,this)}_hasReturn(){return!T.utils.isNull(T.utils.getPointer(7,this))}_initReturn(){return T.utils.initStructAt(7,M,this)}set return(e){T.utils.copyFrom(e,T.utils.getPointer(7,this))}toString(){return`SerializedTypeFunction_`+super.toString()}},an=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(t){return T.utils.initList(1,e._TypeArguments,t,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,N,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,N,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(t){return T.utils.initList(3,e._Decorators,t,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()}},on=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()}},sn=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(t){return T.utils.initList(1,e._TypeArguments,t,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,N,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,N,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(t){return T.utils.initList(3,e._Decorators,t,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(t){return T.utils.initList(4,e._EnumEntries,t,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,M,this)}_hasIndexType(){return!T.utils.isNull(T.utils.getPointer(6,this))}_initIndexType(){return T.utils.initStructAt(6,M,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,A,this)}_hasTags(){return!T.utils.isNull(T.utils.getPointer(7,this))}_initTags(){return T.utils.initStructAt(7,A,this)}set tags(e){T.utils.copyFrom(e,T.utils.getPointer(7,this))}toString(){return`SerializedTypeEnum_`+super.toString()}},cn=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(t){return T.utils.initList(1,e._TypeArguments,t,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,N,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,N,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(t){return T.utils.initList(3,e._Decorators,t,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(t){return T.utils.initList(4,e._Types,t,this)}set types(e){T.utils.copyFrom(e,T.utils.getPointer(4,this))}toString(){return`SerializedTypeUnion_`+super.toString()}},ln=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(t){return T.utils.initList(1,e._TypeArguments,t,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,N,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,N,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(t){return T.utils.initList(3,e._Decorators,t,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(t){return T.utils.initList(4,e._Types,t,this)}set types(e){T.utils.copyFrom(e,T.utils.getPointer(4,this))}toString(){return`SerializedTypeIntersection_`+super.toString()}},un=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(t){return T.utils.initList(1,e._TypeArguments,t,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,N,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,N,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(t){return T.utils.initList(3,e._Decorators,t,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,M,this)}_hasType(){return!T.utils.isNull(T.utils.getPointer(4,this))}_initType(){return T.utils.initStructAt(4,M,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,A,this)}_hasTags(){return!T.utils.isNull(T.utils.getPointer(5,this))}_initTags(){return T.utils.initStructAt(5,A,this)}set tags(e){T.utils.copyFrom(e,T.utils.getPointer(5,this))}toString(){return`SerializedTypeArray_`+super.toString()}},dn=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(t){return T.utils.initList(1,e._TypeArguments,t,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,N,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,N,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(t){return T.utils.initList(3,e._Decorators,t,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,M,this)}_hasIndex(){return!T.utils.isNull(T.utils.getPointer(4,this))}_initIndex(){return T.utils.initStructAt(4,M,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,M,this)}_hasType(){return!T.utils.isNull(T.utils.getPointer(5,this))}_initType(){return T.utils.initStructAt(5,M,this)}set type(e){T.utils.copyFrom(e,T.utils.getPointer(5,this))}toString(){return`SerializedTypeIndexSignature_`+super.toString()}},fn=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(t){return T.utils.initList(1,e._TypeArguments,t,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,N,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,N,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(t){return T.utils.initList(3,e._Decorators,t,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,j,this)}_hasDefault(){return!T.utils.isNull(T.utils.getPointer(6,this))}_initDefault(){return T.utils.initStructAt(6,j,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,M,this)}_hasType(){return!T.utils.isNull(T.utils.getPointer(7,this))}_initType(){return T.utils.initStructAt(7,M,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,A,this)}_hasTags(){return!T.utils.isNull(T.utils.getPointer(8,this))}_initTags(){return T.utils.initStructAt(8,A,this)}set tags(e){T.utils.copyFrom(e,T.utils.getPointer(8,this))}toString(){return`SerializedTypePropertySignature_`+super.toString()}},pn=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(t){return T.utils.initList(1,e._TypeArguments,t,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,N,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,N,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(t){return T.utils.initList(3,e._Decorators,t,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(t){return T.utils.initList(5,e._Parameters,t,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,M,this)}_hasReturn(){return!T.utils.isNull(T.utils.getPointer(6,this))}_initReturn(){return T.utils.initStructAt(6,M,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,A,this)}_hasTags(){return!T.utils.isNull(T.utils.getPointer(7,this))}_initTags(){return T.utils.initStructAt(7,A,this)}set tags(e){T.utils.copyFrom(e,T.utils.getPointer(7,this))}toString(){return`SerializedTypeMethodSignature_`+super.toString()}},mn=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(t){return T.utils.initList(1,e._TypeArguments,t,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,N,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,N,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(t){return T.utils.initList(3,e._Decorators,t,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()}},hn=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(t){return T.utils.initList(1,e._TypeArguments,t,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,N,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,N,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(t){return T.utils.initList(3,e._Decorators,t,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()}},gn=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(t){return T.utils.initList(1,e._TypeArguments,t,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,N,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,N,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(t){return T.utils.initList(3,e._Decorators,t,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,M,this)}_hasType(){return!T.utils.isNull(T.utils.getPointer(4,this))}_initType(){return T.utils.initStructAt(4,M,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()}},_n=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(t){return T.utils.initList(1,e._TypeArguments,t,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,N,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,N,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(t){return T.utils.initList(3,e._Decorators,t,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(t){return T.utils.initList(4,e._Types,t,this)}set types(e){T.utils.copyFrom(e,T.utils.getPointer(4,this))}toString(){return`SerializedTypeTuple_`+super.toString()}},vn=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(t){return T.utils.initList(1,e._TypeArguments,t,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,N,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,N,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(t){return T.utils.initList(3,e._Decorators,t,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,M,this)}_hasType(){return!T.utils.isNull(T.utils.getPointer(4,this))}_initType(){return T.utils.initStructAt(4,M,this)}set type(e){T.utils.copyFrom(e,T.utils.getPointer(4,this))}toString(){return`SerializedTypeRest_`+super.toString()}},yn=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(t){return T.utils.initList(1,e._TypeArguments,t,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,N,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,N,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(t){return T.utils.initList(3,e._Decorators,t,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,M,this)}_hasOrigin(){return!T.utils.isNull(T.utils.getPointer(4,this))}_initOrigin(){return T.utils.initStructAt(4,M,this)}set origin(e){T.utils.copyFrom(e,T.utils.getPointer(4,this))}toString(){return`SimpleSerializedType_`+super.toString()}},bn=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()}},xn=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()}},Sn=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 I={SYMBOL:0,STRING:1,NUMBER:2,BOOLEAN:3,BIGINT:4,REGEX:5};var Cn=class extends T.Struct{static SYMBOL=I.SYMBOL;static STRING=I.STRING;static NUMBER=I.NUMBER;static BOOLEAN=I.BOOLEAN;static BIGINT=I.BIGINT;static REGEX=I.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,bn,this)}_hasSymbol(){return!T.utils.isNull(T.utils.getPointer(4,this))}_initSymbol(){return T.utils.setUint16(2,0,this),T.utils.initStructAt(4,bn,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,xn,this)}_hasBigint(){return!T.utils.isNull(T.utils.getPointer(4,this))}_initBigint(){return T.utils.setUint16(2,4,this),T.utils.initStructAt(4,xn,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,Sn,this)}_hasRegex(){return!T.utils.isNull(T.utils.getPointer(4,this))}_initRegex(){return T.utils.setUint16(2,5,this),T.utils.initStructAt(4,Sn,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)}},wn=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(t){return T.utils.initList(1,e._TypeArguments,t,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,N,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,N,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(t){return T.utils.initList(3,e._Decorators,t,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(Cn,this)}_initLiteral(){return T.utils.getAs(Cn,this)}toString(){return`SerializedTypeLiteral_`+super.toString()}},Tn=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(t){return T.utils.initList(1,e._TypeArguments,t,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,N,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,N,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(t){return T.utils.initList(3,e._Decorators,t,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(t){return T.utils.initList(4,e._Types,t,this)}set types(e){T.utils.copyFrom(e,T.utils.getPointer(4,this))}toString(){return`SerializedTypeTemplateLiteral_`+super.toString()}},En=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 L={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 Dn=class extends T.Struct{static SIMPLE=L.SIMPLE;static LITERAL=L.LITERAL;static TEMPLATE_LITERAL=L.TEMPLATE_LITERAL;static PARAMETER=L.PARAMETER;static FUNCTION=L.FUNCTION;static METHOD=L.METHOD;static PROPERTY=L.PROPERTY;static PROMISE=L.PROMISE;static CLASS_TYPE=L.CLASS_TYPE;static ENUM=L.ENUM;static UNION=L.UNION;static INTERSECTION=L.INTERSECTION;static ARRAY=L.ARRAY;static OBJECT_LITERAL=L.OBJECT_LITERAL;static INDEX_SIGNATURE=L.INDEX_SIGNATURE;static PROPERTY_SIGNATURE=L.PROPERTY_SIGNATURE;static METHOD_SIGNATURE=L.METHOD_SIGNATURE;static TYPE_PARAMETER=L.TYPE_PARAMETER;static INFER=L.INFER;static TUPLE=L.TUPLE;static TUPLE_MEMBER=L.TUPLE_MEMBER;static REST=L.REST;static OTHER=L.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,yn,this)}_hasSimple(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initSimple(){return T.utils.setUint16(0,0,this),T.utils.initStructAt(0,yn,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,wn,this)}_hasLiteral(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initLiteral(){return T.utils.setUint16(0,1,this),T.utils.initStructAt(0,wn,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,Tn,this)}_hasTemplateLiteral(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initTemplateLiteral(){return T.utils.setUint16(0,2,this),T.utils.initStructAt(0,Tn,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,F,this)}_hasParameter(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initParameter(){return T.utils.setUint16(0,3,this),T.utils.initStructAt(0,F,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,rn,this)}_hasFunction(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initFunction(){return T.utils.setUint16(0,4,this),T.utils.initStructAt(0,rn,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,tn,this)}_hasMethod(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initMethod(){return T.utils.setUint16(0,5,this),T.utils.initStructAt(0,tn,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,nn,this)}_hasProperty(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initProperty(){return T.utils.setUint16(0,6,this),T.utils.initStructAt(0,nn,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,an,this)}_hasPromise(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initPromise(){return T.utils.setUint16(0,7,this),T.utils.initStructAt(0,an,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,P,this)}_hasClassType(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initClassType(){return T.utils.setUint16(0,8,this),T.utils.initStructAt(0,P,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,sn,this)}_hasEnum(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initEnum(){return T.utils.setUint16(0,9,this),T.utils.initStructAt(0,sn,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,cn,this)}_hasUnion(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initUnion(){return T.utils.setUint16(0,10,this),T.utils.initStructAt(0,cn,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,ln,this)}_hasIntersection(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initIntersection(){return T.utils.setUint16(0,11,this),T.utils.initStructAt(0,ln,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,un,this)}_hasArray(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initArray(){return T.utils.setUint16(0,12,this),T.utils.initStructAt(0,un,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,en,this)}_hasObjectLiteral(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initObjectLiteral(){return T.utils.setUint16(0,13,this),T.utils.initStructAt(0,en,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,dn,this)}_hasIndexSignature(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initIndexSignature(){return T.utils.setUint16(0,14,this),T.utils.initStructAt(0,dn,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,fn,this)}_hasPropertySignature(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initPropertySignature(){return T.utils.setUint16(0,15,this),T.utils.initStructAt(0,fn,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,pn,this)}_hasMethodSignature(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initMethodSignature(){return T.utils.setUint16(0,16,this),T.utils.initStructAt(0,pn,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,mn,this)}_hasTypeParameter(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initTypeParameter(){return T.utils.setUint16(0,17,this),T.utils.initStructAt(0,mn,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,hn,this)}_hasInfer(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initInfer(){return T.utils.setUint16(0,18,this),T.utils.initStructAt(0,hn,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,_n,this)}_hasTuple(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initTuple(){return T.utils.setUint16(0,19,this),T.utils.initStructAt(0,_n,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,gn,this)}_hasTupleMember(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initTupleMember(){return T.utils.setUint16(0,20,this),T.utils.initStructAt(0,gn,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,vn,this)}_hasRest(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initRest(){return T.utils.setUint16(0,21,this),T.utils.initStructAt(0,vn,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,En,this)}_hasOther(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initOther(){return T.utils.setUint16(0,22,this),T.utils.initStructAt(0,En,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)}},On=class extends T.Struct{static _capnp={displayName:`SerializedType`,id:`96856dcc2dd3d58f`,size:new T.ObjectSize(8,1)};get type(){return T.utils.getAs(Dn,this)}_initType(){return T.utils.getAs(Dn,this)}toString(){return`SerializedType_`+super.toString()}},kn=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(t){return T.utils.initList(0,e._Types,t,this)}set types(e){T.utils.copyFrom(e,T.utils.getPointer(0,this))}toString(){return`SerializedTypes_`+super.toString()}};$t._Indexes=T.CompositeList(Qt),en._TypeArguments=T.CompositeList(M),en._Decorators=T.CompositeList(M),en._Types=T.CompositeList(M),P._TypeArguments=T.CompositeList(M),P._Decorators=T.CompositeList(M),P._ExtendsArguments=T.CompositeList(M),P._Arguments=T.CompositeList(M),P._Types=T.CompositeList(M),F._TypeArguments=T.CompositeList(M),F._Decorators=T.CompositeList(M),tn._TypeArguments=T.CompositeList(M),tn._Decorators=T.CompositeList(M),tn._Parameters=T.CompositeList(F),nn._TypeArguments=T.CompositeList(M),nn._Decorators=T.CompositeList(M),rn._TypeArguments=T.CompositeList(M),rn._Decorators=T.CompositeList(M),rn._Parameters=T.CompositeList(F),an._TypeArguments=T.CompositeList(M),an._Decorators=T.CompositeList(M),sn._TypeArguments=T.CompositeList(M),sn._Decorators=T.CompositeList(M),sn._EnumEntries=T.CompositeList(on),cn._TypeArguments=T.CompositeList(M),cn._Decorators=T.CompositeList(M),cn._Types=T.CompositeList(M),ln._TypeArguments=T.CompositeList(M),ln._Decorators=T.CompositeList(M),ln._Types=T.CompositeList(M),un._TypeArguments=T.CompositeList(M),un._Decorators=T.CompositeList(M),dn._TypeArguments=T.CompositeList(M),dn._Decorators=T.CompositeList(M),fn._TypeArguments=T.CompositeList(M),fn._Decorators=T.CompositeList(M),pn._TypeArguments=T.CompositeList(M),pn._Decorators=T.CompositeList(M),pn._Parameters=T.CompositeList(F),mn._TypeArguments=T.CompositeList(M),mn._Decorators=T.CompositeList(M),hn._TypeArguments=T.CompositeList(M),hn._Decorators=T.CompositeList(M),gn._TypeArguments=T.CompositeList(M),gn._Decorators=T.CompositeList(M),_n._TypeArguments=T.CompositeList(M),_n._Decorators=T.CompositeList(M),_n._Types=T.CompositeList(gn),vn._TypeArguments=T.CompositeList(M),vn._Decorators=T.CompositeList(M),yn._TypeArguments=T.CompositeList(M),yn._Decorators=T.CompositeList(M),wn._TypeArguments=T.CompositeList(M),wn._Decorators=T.CompositeList(M),Tn._TypeArguments=T.CompositeList(M),Tn._Decorators=T.CompositeList(M),Tn._Types=T.CompositeList(M),kn._Types=T.CompositeList(On);function An(e,t){if(!e||!Array.isArray(e)||e.length===0)throw Error(`Invalid serialized type provided for conversion.`);if(e.length!==t.length)throw Error(`Mismatch in length of serialized types: expected ${t.length}, got ${e.length}.`);return e.filter(e=>Ie(e)&&!Le(e.kind)).forEach((e,n)=>{Mn(e,t.get(n)._initType())}),t}function jn(e){if(!e)throw Error(`Invalid serialized type provided for conversion.`);let t=[];return e.forEach(e=>{let n=Nn(e.type);t.push(n)}),t}function R(e,t){if(t?.alias?.length){let n=e._initAlias(t.alias.length);t.alias.forEach((e,t)=>{n.set(t,e)})}if(e.hidden=t?.hidden??!1,e.ignore=t?.ignore??!1,e.internal=t?.internal??!1,e.readonly=t?.readonly??!1,t?.title&&(e.title=t?.title),t?.domain&&(e.domain=t?.domain),t?.permission?.length){let n=e._initPermission(t.permission.length);t.permission?.forEach((e,t)=>{n.set(t,e)})}return e}function z(e){return e._hasTags()?{alias:e.tags?.alias?.length?e.tags?.alias.map(e=>e):void 0,hidden:e.tags?.hidden,domain:e.tags?.domain?e.tags.domain:void 0,title:e.tags?.title?e.tags.title:void 0,ignore:e.tags?.ignore,internal:e.tags?.internal,readonly:e.tags?.readonly,permission:e.tags?.permission?.length?e.tags?.permission?.map(e=>e):void 0}:void 0}function B(e,t){let n=e._initIndex();n.id=t?.index??0;let r=e._initContainer();return r.id=t?.container??0,e}function V(e){return e._hasIndexAccessOrigin()?{container:Number(e.indexAccessOrigin?.container.id),index:Number(e.indexAccessOrigin?.index.id)}:void 0}function Mn(e,t){return e.kind===O.ReflectionKind.objectLiteral?mr(e,t._initObjectLiteral()):e.kind===O.ReflectionKind.class?fr(e,t._initClassType()):e.kind===O.ReflectionKind.parameter?gr(e,t._initParameter()):e.kind===O.ReflectionKind.function?cr(e,t._initFunction()):e.kind===O.ReflectionKind.method?lr(e,t._initMethod()):e.kind===O.ReflectionKind.infer?or(e,t._initInfer()):e.kind===O.ReflectionKind.union?ir(e,t._initUnion()):e.kind===O.ReflectionKind.array?nr(e,t._initArray()):e.kind===O.ReflectionKind.intersection?er(e,t._initIntersection()):e.kind===O.ReflectionKind.enum?Qn(e,t._initEnum()):e.kind===O.ReflectionKind.property?Xn(e,t._initProperty()):e.kind===O.ReflectionKind.tuple?Jn(e,t._initTuple()):e.kind===O.ReflectionKind.tupleMember?Kn(e,t._initTupleMember()):e.kind===O.ReflectionKind.propertySignature?Gn(e,t._initPropertySignature()):e.kind===O.ReflectionKind.methodSignature?Vn(e,t._initMethodSignature()):e.kind===O.ReflectionKind.literal?zn(e,t._initLiteral()):e.kind===O.ReflectionKind.never||e.kind===O.ReflectionKind.any||e.kind===O.ReflectionKind.unknown||e.kind===O.ReflectionKind.void||e.kind===O.ReflectionKind.object||e.kind===O.ReflectionKind.string||e.kind===O.ReflectionKind.number||e.kind===O.ReflectionKind.boolean||e.kind===O.ReflectionKind.symbol||e.kind===O.ReflectionKind.bigint||e.kind===O.ReflectionKind.null||e.kind===O.ReflectionKind.undefined||e.kind===O.ReflectionKind.regexp?Ln(e,t._initSimple()):In(e,t._initOther()),t}function Nn(e){if(e._isObjectLiteral)return hr(e.objectLiteral);if(e._isClassType)return pr(e.classType);if(e._isParameter)return _r(e.parameter);if(e._isFunction)return ur(e.function);if(e._isInfer)return sr(e.infer);if(e._isMethod)return dr(e.method);if(e._isUnion)return ar(e.union);if(e._isArray)return rr(e.array);if(e._isIntersection)return tr(e.intersection);if(e._isEnum)return $n(e.enum);if(e._isProperty)return Zn(e.property);if(e._isTuple)return Yn(e.tuple);if(e._isTupleMember)return qn(e.tupleMember);if(e._isPropertySignature)return Hn(e.propertySignature);if(e._isMethodSignature)return Bn(e.methodSignature);if(e._isLiteral)return Rn(e.literal);if(e._isSimple)return Fn(e.simple);if(e._isOther)return Pn(e.other);throw Error(`Unsupported serialized type kind: ${e.toString()}`)}function Pn(e){return{kind:e.kind,typeName:e.typeName||void 0}}function Fn(e){let t={kind:e.kind,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:V(e)};return e._hasOrigin()&&(t.origin=Number(e.origin.id)),t}function In(e,t){return t.kind=e.kind,t.typeName=e.typeName||``,t}function Ln(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,e.origin&&(t._initOrigin(),t.origin.id=e.origin??0),e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&B(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function Rn(e){return{kind:O.ReflectionKind.literal,literal:e.literal._isString?e.literal.string:e.literal._isNumber?e.literal.number:e.literal._isBoolean?e.literal.boolean:e.literal._isBigint?{type:`bigint`,value:e.literal.bigint.value}:e.literal._isSymbol?{type:`symbol`,name:e.literal.symbol.name}:{type:`regex`,regex:e.literal.regex.regex},typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:V(e)}}function zn(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initLiteral();if(typeof e.literal==`boolean`)n.boolean=e.literal;else if(typeof e.literal==`number`)n.number=e.literal;else if(typeof e.literal==`string`)n.string=e.literal;else if(e.literal.type===`bigint`){let t=n._initBigint();t.type=`bigint`,t.value=e.literal.value}else if(e.literal.type===`symbol`){let t=n._initSymbol();t.type=`symbol`,t.name=e.literal.name.toString().slice(7,-1)}else if(e.literal.type===`regex`){let t=n._initRegex();t.type=`regex`,t.regex=e.literal.regex}if(e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&B(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function Bn(e){return{kind:O.ReflectionKind.methodSignature,name:e.name,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,parameters:e._hasParameters()?e.parameters.map(e=>_r(e)):[],return:e.return.id,tags:z(e)}}function Vn(e,t){if(t.kind=e.kind,t.name=String(e.name),t.typeName=e.typeName||``,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&B(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&R(t._initTags(),e.tags),t}function Hn(e){return{kind:O.ReflectionKind.propertySignature,name:e.name,typeName:e.typeName||void 0,description:e.description,default:Wn(e.default),optional:e.optional?!0:void 0,readonly:e.readonly?!0:void 0,type:e.type.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:V(e),tags:z(e)}}function Un(e,t){e!==void 0&&e!==``&&(t._initValue(),typeof e==`string`?t.value.string=e:typeof e==`number`?Fe(e)?t.value.integer=e:t.value.float=e:typeof e==`boolean`&&(t.value.boolean=e))}function Wn(e){if(e.value!==void 0){if(e.value._isBoolean)return e.value.boolean;if(e.value._isInteger)return e.value.integer;if(e.value._isFloat)return e.value.float;if(e.value._isString)return e.value.string}}function Gn(e,t){if(t.kind=e.kind,t.name=String(e.name)||``,t.typeName=e.typeName||``,t.description=e.description||``,t.optional=e.optional??!1,t.readonly=e.readonly??!1,e.default!==void 0){let n=t._initDefault();Un(e.default,n)}let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&B(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&R(t._initTags(),e.tags),t}function Kn(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&B(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function qn(e){return{kind:O.ReflectionKind.tupleMember,type:e.type.id,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:V(e)}}function Jn(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initTypes(e.types.length);if(e.types.forEach((e,t)=>{Kn(e,n.get(t))}),e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&B(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function Yn(e){return{kind:O.ReflectionKind.tuple,typeName:e.typeName||void 0,types:e._hasTypes()?e.types.map(e=>qn(e)):[],decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:V(e)}}function Xn(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,t.description=e.description||``,t.optional=e.optional??!1,t.readonly=e.readonly??!1,t.visibility=e.visibility===O.ReflectionVisibility.public?k.PUBLIC:e.visibility===O.ReflectionVisibility.protected?k.PROTECTED:k.PRIVATE,t.abstract=e.abstract??!1,t.name=String(e.name)||``,e.default!==void 0){let n=t._initDefault();Un(e.default,n)}let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&B(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&R(t._initTags(),e.tags),t}function Zn(e){return{kind:O.ReflectionKind.property,typeName:e.typeName||void 0,description:e.description,default:Wn(e.default),optional:e.optional?!0:void 0,readonly:e.readonly?!0:void 0,visibility:e.visibility===k.PUBLIC?O.ReflectionVisibility.public:e.visibility===k.PROTECTED?O.ReflectionVisibility.protected:O.ReflectionVisibility.private,abstract:e.abstract?!0:void 0,name:e.name,type:e.type.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:V(e),tags:z(e)}}function Qn(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initIndexType();if(n.id=e.indexType,e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.indexAccessOrigin&&B(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.values?.length){let n=t._initValues(e.values?.length);e.values.forEach((e,t)=>{n.set(t,String(e))})}let r=t._initEnumEntries(Object.keys(e.enum).length??0);return Object.entries(e.enum).forEach(([e,t],n)=>{let i=r.get(n);i.name=e,i.value=String(t)}),e.tags&&R(t._initTags(),e.tags),t}function $n(e){return{kind:O.ReflectionKind.enum,typeName:e.typeName||void 0,indexType:e.indexType.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,values:e._hasValues()?e.values.map(e=>e):[],enum:e._hasEnumEntries()?Object.entries(e.enumEntries).reduce((e,[t,n])=>(e[t]=n.value,e),{}):{},indexAccessOrigin:V(e),tags:z(e)}}function er(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initTypes(e.types?.length??0);if(e.types?.forEach((e,t)=>{let r=n.get(t);r.id=e}),e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&B(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function tr(e){return{kind:O.ReflectionKind.intersection,typeName:e.typeName||void 0,types:e._hasTypes()?e.types.map(e=>e.id):[],decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:V(e)}}function nr(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&B(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&R(t._initTags(),e.tags),t}function rr(e){return{kind:O.ReflectionKind.array,typeName:e.typeName||void 0,type:e.type.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:V(e),tags:z(e)}}function ir(e,t){t.kind=e.kind,t.typeName=e.typeName||``;let n=t._initTypes(e.types?.length??0);if(e.types?.forEach((e,t)=>{let r=n.get(t);r.id=e}),e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&B(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function ar(e){return{kind:O.ReflectionKind.union,typeName:e.typeName||void 0,types:e._hasTypes()?e.types.map(e=>e.id):[],decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:V(e)}}function or(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators?.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments?.length??0);e.typeArguments?.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&B(t._initIndexAccessOrigin(),e.indexAccessOrigin),t}function sr(e){return{kind:O.ReflectionKind.infer,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:V(e)}}function cr(e,t){if(t.name=String(e.name)||``,t.kind=e.kind,t.typeName=e.typeName||``,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.parameters?.length){let n=t._initParameters(e.parameters.length);e.parameters.forEach((e,t)=>{gr(e,n.get(t))})}let n=t._initReturn();return n.id=e.return,e.indexAccessOrigin&&B(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&R(t._initTags(),e.tags),t}function lr(e,t){if(t.name=String(e.name)||``,t.kind=e.kind,t.typeName=e.typeName||``,t.abstract=e.abstract??!1,t.visibility=e.visibility===O.ReflectionVisibility.public?k.PUBLIC:e.visibility===O.ReflectionVisibility.protected?k.PROTECTED:k.PRIVATE,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.parameters?.length){let n=t._initParameters(e.parameters.length);e.parameters.forEach((e,t)=>{gr(e,n.get(t))})}let n=t._initReturn();return n.id=e.return,e.indexAccessOrigin&&B(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&R(t._initTags(),e.tags),t}function ur(e){return{kind:O.ReflectionKind.function,name:e.name,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,parameters:e._hasParameters()?e.parameters.map(e=>_r(e)):[],return:e.return.id,indexAccessOrigin:V(e),tags:z(e)}}function dr(e){return{kind:O.ReflectionKind.method,name:e.name,typeName:e.typeName||void 0,abstract:e.abstract?!0:void 0,return:e.return.id,visibility:e.visibility===k.PUBLIC?O.ReflectionVisibility.public:e.visibility===k.PROTECTED?O.ReflectionVisibility.protected:O.ReflectionVisibility.private,parameters:e._hasParameters()?e.parameters.map(e=>_r(e)):[]}}function fr(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,t.classType=e.classType||``,t.globalObject=e.globalObject??!1,e.arguments?.length){let n=t._initArguments(e.arguments.length);e.arguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.extendsArguments?.length){let n=t._initArguments(e.extendsArguments.length);e.extendsArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.superClass){let n=t._initSuperClass();n.id=e.superClass}return e.indexAccessOrigin&&B(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&R(t._initTags(),e.tags),t}function pr(e){return{kind:O.ReflectionKind.class,typeName:e.typeName||void 0,classType:e.classType,globalObject:e.globalObject?!0:void 0,arguments:e._hasArguments()?e.arguments.map(e=>e.id):void 0,extendsArguments:e._hasExtendsArguments()?e.extendsArguments.map(e=>e.id):void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,types:e._hasTypes()?e.types.map(e=>e.id):[],typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,superClass:e._hasSuperClass()?e.superClass.id:void 0,indexAccessOrigin:V(e),tags:z(e)}}function mr(e,t){if(e.decorators?.length){let n=t._initDecorators(e.decorators?.length??0);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.types?.length){let n=t._initTypes(e.types.length);e.types.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&B(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&R(t._initTags(),e.tags),t}function hr(e){return{kind:O.ReflectionKind.objectLiteral,typeName:e.typeName||void 0,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,types:e._hasTypes()?e.types.map(e=>e.id):[],typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:V(e),tags:z(e)}}function gr(e,t){if(t.kind=e.kind,t.typeName=e.typeName||``,t.name=e.name||``,t.optional=e.optional??!1,t.readonly=e.readonly??!1,t.visibility=e.visibility===O.ReflectionVisibility.public?k.PUBLIC:e.visibility===O.ReflectionVisibility.protected?k.PROTECTED:k.PRIVATE,e.default!==void 0){let n=t._initDefault();Un(e.default,n)}let n=t._initType();if(n.id=e.type,e.decorators?.length){let n=t._initDecorators(e.decorators.length);e.decorators.forEach((e,t)=>{let r=n.get(t);r.id=e})}if(e.typeArguments?.length){let n=t._initTypeArguments(e.typeArguments.length);e.typeArguments.forEach((e,t)=>{let r=n.get(t);r.id=e})}return e.indexAccessOrigin&&B(t._initIndexAccessOrigin(),e.indexAccessOrigin),e.tags&&R(t._initTags(),e.tags),t}function _r(e){return{kind:O.ReflectionKind.parameter,typeName:e.typeName||void 0,name:e.name,default:Wn(e.default),optional:e.optional?!0:void 0,readonly:e.readonly?!0:void 0,visibility:e.visibility===k.PUBLIC?O.ReflectionVisibility.public:e.visibility===k.PROTECTED?O.ReflectionVisibility.protected:O.ReflectionVisibility.private,type:e.type.id,decorators:e._hasDecorators()?e.decorators.map(e=>e.id):void 0,typeArguments:e._hasTypeArguments()?e.typeArguments.map(e=>e.id):void 0,indexAccessOrigin:V(e),tags:z(e)}}var vr=Object.defineProperty,H=(e,t)=>vr(e,`name`,{value:t,configurable:!0}),U=class extends T.Struct{static{H(this,`TagsReflection`)}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()}},yr={UNDEFINED:0,BOOLEAN:1,INTEGER:2,FLOAT:3,STRING:4},br=class extends T.Struct{static{H(this,`DefaultValueReflection_Value`)}static UNDEFINED=yr.UNDEFINED;static BOOLEAN=yr.BOOLEAN;static INTEGER=yr.INTEGER;static FLOAT=yr.FLOAT;static STRING=yr.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)}},xr=class extends T.Struct{static{H(this,`DefaultValueReflection`)}static _capnp={displayName:`DefaultValueReflection`,id:`96fe6f07954197c9`,size:new T.ObjectSize(16,1)};get value(){return T.utils.getAs(br,this)}_initValue(){return T.utils.getAs(br,this)}toString(){return`DefaultValueReflection_`+super.toString()}},W=class extends T.Struct{static{H(this,`SerializedTypeReference`)}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()}},G=class extends T.Struct{static{H(this,`IndexAccessOrigin`)}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,W,this)}_hasContainer(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initContainer(){return T.utils.initStructAt(0,W,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,W,this)}_hasIndex(){return!T.utils.isNull(T.utils.getPointer(1,this))}_initIndex(){return T.utils.initStructAt(1,W,this)}set index(e){T.utils.copyFrom(e,T.utils.getPointer(1,this))}toString(){return`IndexAccessOrigin_`+super.toString()}},Sr=class extends T.Struct{static{H(this,`EntityOptions_EntityIndexOptions`)}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()}},Cr=class e extends T.Struct{static{H(this,`EntityOptions`)}static EntityIndexOptions=Sr;static _capnp={displayName:`EntityOptions`,id:`948d2d02cf676d60`,size:new T.ObjectSize(8,5)};static _Indexes;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(t){return T.utils.initList(4,e._Indexes,t,this)}set indexes(e){T.utils.copyFrom(e,T.utils.getPointer(4,this))}toString(){return`EntityOptions_`+super.toString()}},wr=class e extends T.Struct{static{H(this,`SerializedTypeObjectLiteral`)}static _capnp={displayName:`SerializedTypeObjectLiteral`,id:`8b56235ad9bcb2b1`,size:new T.ObjectSize(8,6)};static _TypeArguments;static _Decorators;static _Types;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(t){return T.utils.initList(1,e._TypeArguments,t,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,G,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,G,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(t){return T.utils.initList(3,e._Decorators,t,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(t){return T.utils.initList(4,e._Types,t,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,U,this)}_hasTags(){return!T.utils.isNull(T.utils.getPointer(5,this))}_initTags(){return T.utils.initStructAt(5,U,this)}set tags(e){T.utils.copyFrom(e,T.utils.getPointer(5,this))}toString(){return`SerializedTypeObjectLiteral_`+super.toString()}},K=class e extends T.Struct{static{H(this,`SerializedTypeClassType`)}static _capnp={displayName:`SerializedTypeClassType`,id:`9855392bf9c48b25`,size:new T.ObjectSize(8,11)};static _TypeArguments;static _Decorators;static _ExtendsArguments;static _Arguments;static _Types;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(t){return T.utils.initList(1,e._TypeArguments,t,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,G,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,G,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(t){return T.utils.initList(3,e._Decorators,t,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(t){return T.utils.initList(6,e._ExtendsArguments,t,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(t){return T.utils.initList(7,e._Arguments,t,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,W,this)}_hasSuperClass(){return!T.utils.isNull(T.utils.getPointer(8,this))}_initSuperClass(){return T.utils.initStructAt(8,W,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(t){return T.utils.initList(9,e._Types,t,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,U,this)}_hasTags(){return!T.utils.isNull(T.utils.getPointer(10,this))}_initTags(){return T.utils.initStructAt(10,U,this)}set tags(e){T.utils.copyFrom(e,T.utils.getPointer(10,this))}toString(){return`SerializedTypeClassType_`+super.toString()}},q=class e extends T.Struct{static{H(this,`SerializedTypeParameter`)}static _capnp={displayName:`SerializedTypeParameter`,id:`fcbaa08bb97b8b1a`,size:new T.ObjectSize(8,8)};static _TypeArguments;static _Decorators;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(t){return T.utils.initList(1,e._TypeArguments,t,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,G,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,G,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(t){return T.utils.initList(3,e._Decorators,t,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,W,this)}_hasType(){return!T.utils.isNull(T.utils.getPointer(5,this))}_initType(){return T.utils.initStructAt(5,W,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,xr,this)}_hasDefault(){return!T.utils.isNull(T.utils.getPointer(6,this))}_initDefault(){return T.utils.initStructAt(6,xr,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,U,this)}_hasTags(){return!T.utils.isNull(T.utils.getPointer(7,this))}_initTags(){return T.utils.initStructAt(7,U,this)}set tags(e){T.utils.copyFrom(e,T.utils.getPointer(7,this))}toString(){return`SerializedTypeParameter_`+super.toString()}},Tr=class e extends T.Struct{static{H(this,`SerializedTypeMethod`)}static _capnp={displayName:`SerializedTypeMethod`,id:`8b5eff6d9ec2fb06`,size:new T.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _Parameters;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(t){return T.utils.initList(1,e._TypeArguments,t,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,G,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,G,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(t){return T.utils.initList(3,e._Decorators,t,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,U,this)}_hasTags(){return!T.utils.isNull(T.utils.getPointer(4,this))}_initTags(){return T.utils.initStructAt(4,U,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(t){return T.utils.initList(6,e._Parameters,t,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,W,this)}_hasReturn(){return!T.utils.isNull(T.utils.getPointer(7,this))}_initReturn(){return T.utils.initStructAt(7,W,this)}set return(e){T.utils.copyFrom(e,T.utils.getPointer(7,this))}toString(){return`SerializedTypeMethod_`+super.toString()}},Er=class e extends T.Struct{static{H(this,`SerializedTypeProperty`)}static _capnp={displayName:`SerializedTypeProperty`,id:`91d9dbea2037f78b`,size:new T.ObjectSize(8,9)};static _TypeArguments;static _Decorators;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(t){return T.utils.initList(1,e._TypeArguments,t,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,G,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,G,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(t){return T.utils.initList(3,e._Decorators,t,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,U,this)}_hasTags(){return!T.utils.isNull(T.utils.getPointer(4,this))}_initTags(){return T.utils.initStructAt(4,U,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,W,this)}_hasType(){return!T.utils.isNull(T.utils.getPointer(7,this))}_initType(){return T.utils.initStructAt(7,W,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,xr,this)}_hasDefault(){return!T.utils.isNull(T.utils.getPointer(8,this))}_initDefault(){return T.utils.initStructAt(8,xr,this)}set default(e){T.utils.copyFrom(e,T.utils.getPointer(8,this))}toString(){return`SerializedTypeProperty_`+super.toString()}},Dr=class e extends T.Struct{static{H(this,`SerializedTypeFunction`)}static _capnp={displayName:`SerializedTypeFunction`,id:`9130bccd82dfcfd4`,size:new T.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _Parameters;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(t){return T.utils.initList(1,e._TypeArguments,t,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,G,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,G,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(t){return T.utils.initList(3,e._Decorators,t,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,U,this)}_hasTags(){return!T.utils.isNull(T.utils.getPointer(4,this))}_initTags(){return T.utils.initStructAt(4,U,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(t){return T.utils.initList(6,e._Parameters,t,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,W,this)}_hasReturn(){return!T.utils.isNull(T.utils.getPointer(7,this))}_initReturn(){return T.utils.initStructAt(7,W,this)}set return(e){T.utils.copyFrom(e,T.utils.getPointer(7,this))}toString(){return`SerializedTypeFunction_`+super.toString()}},Or=class e extends T.Struct{static{H(this,`SerializedTypePromise`)}static _capnp={displayName:`SerializedTypePromise`,id:`e9b0cbe936a42398`,size:new T.ObjectSize(8,4)};static _TypeArguments;static _Decorators;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(t){return T.utils.initList(1,e._TypeArguments,t,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,G,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,G,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(t){return T.utils.initList(3,e._Decorators,t,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()}},kr=class extends T.Struct{static{H(this,`SerializedTypeEnumEntry`)}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()}},Ar=class e extends T.Struct{static{H(this,`SerializedTypeEnum`)}static _capnp={displayName:`SerializedTypeEnum`,id:`d7d36f0ae79e3841`,size:new T.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _EnumEntries;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(t){return T.utils.initList(1,e._TypeArguments,t,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,G,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,G,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(t){return T.utils.initList(3,e._Decorators,t,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(t){return T.utils.initList(4,e._EnumEntries,t,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,W,this)}_hasIndexType(){return!T.utils.isNull(T.utils.getPointer(6,this))}_initIndexType(){return T.utils.initStructAt(6,W,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,U,this)}_hasTags(){return!T.utils.isNull(T.utils.getPointer(7,this))}_initTags(){return T.utils.initStructAt(7,U,this)}set tags(e){T.utils.copyFrom(e,T.utils.getPointer(7,this))}toString(){return`SerializedTypeEnum_`+super.toString()}},jr=class e extends T.Struct{static{H(this,`SerializedTypeUnion`)}static _capnp={displayName:`SerializedTypeUnion`,id:`a9ae4c95e41ff4ab`,size:new T.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;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(t){return T.utils.initList(1,e._TypeArguments,t,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,G,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,G,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(t){return T.utils.initList(3,e._Decorators,t,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(t){return T.utils.initList(4,e._Types,t,this)}set types(e){T.utils.copyFrom(e,T.utils.getPointer(4,this))}toString(){return`SerializedTypeUnion_`+super.toString()}},Mr=class e extends T.Struct{static{H(this,`SerializedTypeIntersection`)}static _capnp={displayName:`SerializedTypeIntersection`,id:`9ae42bd17511c09b`,size:new T.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;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(t){return T.utils.initList(1,e._TypeArguments,t,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,G,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,G,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(t){return T.utils.initList(3,e._Decorators,t,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(t){return T.utils.initList(4,e._Types,t,this)}set types(e){T.utils.copyFrom(e,T.utils.getPointer(4,this))}toString(){return`SerializedTypeIntersection_`+super.toString()}},Nr=class e extends T.Struct{static{H(this,`SerializedTypeArray`)}static _capnp={displayName:`SerializedTypeArray`,id:`97d1d75240151501`,size:new T.ObjectSize(8,6)};static _TypeArguments;static _Decorators;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(t){return T.utils.initList(1,e._TypeArguments,t,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,G,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,G,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(t){return T.utils.initList(3,e._Decorators,t,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,W,this)}_hasType(){return!T.utils.isNull(T.utils.getPointer(4,this))}_initType(){return T.utils.initStructAt(4,W,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,U,this)}_hasTags(){return!T.utils.isNull(T.utils.getPointer(5,this))}_initTags(){return T.utils.initStructAt(5,U,this)}set tags(e){T.utils.copyFrom(e,T.utils.getPointer(5,this))}toString(){return`SerializedTypeArray_`+super.toString()}},Pr=class e extends T.Struct{static{H(this,`SerializedTypeIndexSignature`)}static _capnp={displayName:`SerializedTypeIndexSignature`,id:`93e335e2756821d8`,size:new T.ObjectSize(8,6)};static _TypeArguments;static _Decorators;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(t){return T.utils.initList(1,e._TypeArguments,t,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,G,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,G,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(t){return T.utils.initList(3,e._Decorators,t,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,W,this)}_hasIndex(){return!T.utils.isNull(T.utils.getPointer(4,this))}_initIndex(){return T.utils.initStructAt(4,W,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,W,this)}_hasType(){return!T.utils.isNull(T.utils.getPointer(5,this))}_initType(){return T.utils.initStructAt(5,W,this)}set type(e){T.utils.copyFrom(e,T.utils.getPointer(5,this))}toString(){return`SerializedTypeIndexSignature_`+super.toString()}},Fr=class e extends T.Struct{static{H(this,`SerializedTypePropertySignature`)}static _capnp={displayName:`SerializedTypePropertySignature`,id:`9bc1cebd2ca1569a`,size:new T.ObjectSize(8,9)};static _TypeArguments;static _Decorators;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(t){return T.utils.initList(1,e._TypeArguments,t,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,G,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,G,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(t){return T.utils.initList(3,e._Decorators,t,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,xr,this)}_hasDefault(){return!T.utils.isNull(T.utils.getPointer(6,this))}_initDefault(){return T.utils.initStructAt(6,xr,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,W,this)}_hasType(){return!T.utils.isNull(T.utils.getPointer(7,this))}_initType(){return T.utils.initStructAt(7,W,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,U,this)}_hasTags(){return!T.utils.isNull(T.utils.getPointer(8,this))}_initTags(){return T.utils.initStructAt(8,U,this)}set tags(e){T.utils.copyFrom(e,T.utils.getPointer(8,this))}toString(){return`SerializedTypePropertySignature_`+super.toString()}},Ir=class e extends T.Struct{static{H(this,`SerializedTypeMethodSignature`)}static _capnp={displayName:`SerializedTypeMethodSignature`,id:`e25a2cc39d5930c8`,size:new T.ObjectSize(8,8)};static _TypeArguments;static _Decorators;static _Parameters;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(t){return T.utils.initList(1,e._TypeArguments,t,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,G,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,G,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(t){return T.utils.initList(3,e._Decorators,t,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(t){return T.utils.initList(5,e._Parameters,t,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,W,this)}_hasReturn(){return!T.utils.isNull(T.utils.getPointer(6,this))}_initReturn(){return T.utils.initStructAt(6,W,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,U,this)}_hasTags(){return!T.utils.isNull(T.utils.getPointer(7,this))}_initTags(){return T.utils.initStructAt(7,U,this)}set tags(e){T.utils.copyFrom(e,T.utils.getPointer(7,this))}toString(){return`SerializedTypeMethodSignature_`+super.toString()}},Lr=class e extends T.Struct{static{H(this,`SerializedTypeTypeParameter`)}static _capnp={displayName:`SerializedTypeTypeParameter`,id:`81210361a54d5d71`,size:new T.ObjectSize(8,5)};static _TypeArguments;static _Decorators;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(t){return T.utils.initList(1,e._TypeArguments,t,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,G,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,G,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(t){return T.utils.initList(3,e._Decorators,t,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()}},Rr=class e extends T.Struct{static{H(this,`SerializedTypeInfer`)}static _capnp={displayName:`SerializedTypeInfer`,id:`91c6dd1e13f2b14d`,size:new T.ObjectSize(8,4)};static _TypeArguments;static _Decorators;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(t){return T.utils.initList(1,e._TypeArguments,t,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,G,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,G,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(t){return T.utils.initList(3,e._Decorators,t,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()}},zr=class e extends T.Struct{static{H(this,`SerializedTypeTupleMember`)}static _capnp={displayName:`SerializedTypeTupleMember`,id:`e21c2a18d0d56fdf`,size:new T.ObjectSize(8,6)};static _TypeArguments;static _Decorators;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(t){return T.utils.initList(1,e._TypeArguments,t,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,G,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,G,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(t){return T.utils.initList(3,e._Decorators,t,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,W,this)}_hasType(){return!T.utils.isNull(T.utils.getPointer(4,this))}_initType(){return T.utils.initStructAt(4,W,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()}},Br=class e extends T.Struct{static{H(this,`SerializedTypeTuple`)}static _capnp={displayName:`SerializedTypeTuple`,id:`eb7501eb1ee4fb6d`,size:new T.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;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(t){return T.utils.initList(1,e._TypeArguments,t,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,G,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,G,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(t){return T.utils.initList(3,e._Decorators,t,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(t){return T.utils.initList(4,e._Types,t,this)}set types(e){T.utils.copyFrom(e,T.utils.getPointer(4,this))}toString(){return`SerializedTypeTuple_`+super.toString()}},Vr=class e extends T.Struct{static{H(this,`SerializedTypeRest`)}static _capnp={displayName:`SerializedTypeRest`,id:`f9e684a435cce5d1`,size:new T.ObjectSize(8,5)};static _TypeArguments;static _Decorators;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(t){return T.utils.initList(1,e._TypeArguments,t,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,G,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,G,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(t){return T.utils.initList(3,e._Decorators,t,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,W,this)}_hasType(){return!T.utils.isNull(T.utils.getPointer(4,this))}_initType(){return T.utils.initStructAt(4,W,this)}set type(e){T.utils.copyFrom(e,T.utils.getPointer(4,this))}toString(){return`SerializedTypeRest_`+super.toString()}},Hr=class e extends T.Struct{static{H(this,`SimpleSerializedType`)}static _capnp={displayName:`SimpleSerializedType`,id:`80f983e4b811c3ca`,size:new T.ObjectSize(8,5)};static _TypeArguments;static _Decorators;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(t){return T.utils.initList(1,e._TypeArguments,t,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,G,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,G,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(t){return T.utils.initList(3,e._Decorators,t,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,W,this)}_hasOrigin(){return!T.utils.isNull(T.utils.getPointer(4,this))}_initOrigin(){return T.utils.initStructAt(4,W,this)}set origin(e){T.utils.copyFrom(e,T.utils.getPointer(4,this))}toString(){return`SimpleSerializedType_`+super.toString()}},Ur=class extends T.Struct{static{H(this,`SerializedTypeLiteralSymbol`)}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()}},Wr=class extends T.Struct{static{H(this,`SerializedTypeLiteralBigInt`)}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()}},Gr=class extends T.Struct{static{H(this,`SerializedTypeLiteralRegex`)}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()}},Kr={SYMBOL:0,STRING:1,NUMBER:2,BOOLEAN:3,BIGINT:4,REGEX:5},qr=class extends T.Struct{static{H(this,`SerializedTypeLiteral_Literal`)}static SYMBOL=Kr.SYMBOL;static STRING=Kr.STRING;static NUMBER=Kr.NUMBER;static BOOLEAN=Kr.BOOLEAN;static BIGINT=Kr.BIGINT;static REGEX=Kr.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,Ur,this)}_hasSymbol(){return!T.utils.isNull(T.utils.getPointer(4,this))}_initSymbol(){return T.utils.setUint16(2,0,this),T.utils.initStructAt(4,Ur,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,Wr,this)}_hasBigint(){return!T.utils.isNull(T.utils.getPointer(4,this))}_initBigint(){return T.utils.setUint16(2,4,this),T.utils.initStructAt(4,Wr,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,Gr,this)}_hasRegex(){return!T.utils.isNull(T.utils.getPointer(4,this))}_initRegex(){return T.utils.setUint16(2,5,this),T.utils.initStructAt(4,Gr,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)}},Jr=class e extends T.Struct{static{H(this,`SerializedTypeLiteral`)}static _capnp={displayName:`SerializedTypeLiteral`,id:`b876ba24d27d88c8`,size:new T.ObjectSize(16,5)};static _TypeArguments;static _Decorators;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(t){return T.utils.initList(1,e._TypeArguments,t,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,G,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,G,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(t){return T.utils.initList(3,e._Decorators,t,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(qr,this)}_initLiteral(){return T.utils.getAs(qr,this)}toString(){return`SerializedTypeLiteral_`+super.toString()}},Yr=class e extends T.Struct{static{H(this,`SerializedTypeTemplateLiteral`)}static _capnp={displayName:`SerializedTypeTemplateLiteral`,id:`8dd6c284d46cc265`,size:new T.ObjectSize(8,5)};static _TypeArguments;static _Decorators;static _Types;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(t){return T.utils.initList(1,e._TypeArguments,t,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,G,this)}_hasIndexAccessOrigin(){return!T.utils.isNull(T.utils.getPointer(2,this))}_initIndexAccessOrigin(){return T.utils.initStructAt(2,G,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(t){return T.utils.initList(3,e._Decorators,t,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(t){return T.utils.initList(4,e._Types,t,this)}set types(e){T.utils.copyFrom(e,T.utils.getPointer(4,this))}toString(){return`SerializedTypeTemplateLiteral_`+super.toString()}},Xr=class extends T.Struct{static{H(this,`SerializedTypeOther`)}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()}},J={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},Zr=class extends T.Struct{static{H(this,`SerializedType_Type`)}static SIMPLE=J.SIMPLE;static LITERAL=J.LITERAL;static TEMPLATE_LITERAL=J.TEMPLATE_LITERAL;static PARAMETER=J.PARAMETER;static FUNCTION=J.FUNCTION;static METHOD=J.METHOD;static PROPERTY=J.PROPERTY;static PROMISE=J.PROMISE;static CLASS_TYPE=J.CLASS_TYPE;static ENUM=J.ENUM;static UNION=J.UNION;static INTERSECTION=J.INTERSECTION;static ARRAY=J.ARRAY;static OBJECT_LITERAL=J.OBJECT_LITERAL;static INDEX_SIGNATURE=J.INDEX_SIGNATURE;static PROPERTY_SIGNATURE=J.PROPERTY_SIGNATURE;static METHOD_SIGNATURE=J.METHOD_SIGNATURE;static TYPE_PARAMETER=J.TYPE_PARAMETER;static INFER=J.INFER;static TUPLE=J.TUPLE;static TUPLE_MEMBER=J.TUPLE_MEMBER;static REST=J.REST;static OTHER=J.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,Hr,this)}_hasSimple(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initSimple(){return T.utils.setUint16(0,0,this),T.utils.initStructAt(0,Hr,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,Jr,this)}_hasLiteral(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initLiteral(){return T.utils.setUint16(0,1,this),T.utils.initStructAt(0,Jr,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,Yr,this)}_hasTemplateLiteral(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initTemplateLiteral(){return T.utils.setUint16(0,2,this),T.utils.initStructAt(0,Yr,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,q,this)}_hasParameter(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initParameter(){return T.utils.setUint16(0,3,this),T.utils.initStructAt(0,q,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,Dr,this)}_hasFunction(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initFunction(){return T.utils.setUint16(0,4,this),T.utils.initStructAt(0,Dr,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,Tr,this)}_hasMethod(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initMethod(){return T.utils.setUint16(0,5,this),T.utils.initStructAt(0,Tr,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,Er,this)}_hasProperty(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initProperty(){return T.utils.setUint16(0,6,this),T.utils.initStructAt(0,Er,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,Or,this)}_hasPromise(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initPromise(){return T.utils.setUint16(0,7,this),T.utils.initStructAt(0,Or,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,K,this)}_hasClassType(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initClassType(){return T.utils.setUint16(0,8,this),T.utils.initStructAt(0,K,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,Ar,this)}_hasEnum(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initEnum(){return T.utils.setUint16(0,9,this),T.utils.initStructAt(0,Ar,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,jr,this)}_hasUnion(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initUnion(){return T.utils.setUint16(0,10,this),T.utils.initStructAt(0,jr,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,Mr,this)}_hasIntersection(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initIntersection(){return T.utils.setUint16(0,11,this),T.utils.initStructAt(0,Mr,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,Nr,this)}_hasArray(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initArray(){return T.utils.setUint16(0,12,this),T.utils.initStructAt(0,Nr,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,wr,this)}_hasObjectLiteral(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initObjectLiteral(){return T.utils.setUint16(0,13,this),T.utils.initStructAt(0,wr,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,Pr,this)}_hasIndexSignature(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initIndexSignature(){return T.utils.setUint16(0,14,this),T.utils.initStructAt(0,Pr,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,Fr,this)}_hasPropertySignature(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initPropertySignature(){return T.utils.setUint16(0,15,this),T.utils.initStructAt(0,Fr,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,Ir,this)}_hasMethodSignature(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initMethodSignature(){return T.utils.setUint16(0,16,this),T.utils.initStructAt(0,Ir,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,Lr,this)}_hasTypeParameter(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initTypeParameter(){return T.utils.setUint16(0,17,this),T.utils.initStructAt(0,Lr,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,Rr,this)}_hasInfer(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initInfer(){return T.utils.setUint16(0,18,this),T.utils.initStructAt(0,Rr,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,Br,this)}_hasTuple(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initTuple(){return T.utils.setUint16(0,19,this),T.utils.initStructAt(0,Br,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,zr,this)}_hasTupleMember(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initTupleMember(){return T.utils.setUint16(0,20,this),T.utils.initStructAt(0,zr,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,Vr,this)}_hasRest(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initRest(){return T.utils.setUint16(0,21,this),T.utils.initStructAt(0,Vr,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,Xr,this)}_hasOther(){return!T.utils.isNull(T.utils.getPointer(0,this))}_initOther(){return T.utils.setUint16(0,22,this),T.utils.initStructAt(0,Xr,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)}},Qr=class extends T.Struct{static{H(this,`SerializedType`)}static _capnp={displayName:`SerializedType`,id:`96856dcc2dd3d58f`,size:new T.ObjectSize(8,1)};get type(){return T.utils.getAs(Zr,this)}_initType(){return T.utils.getAs(Zr,this)}toString(){return`SerializedType_`+super.toString()}},Y=class e extends T.Struct{static{H(this,`SerializedTypes`)}static _capnp={displayName:`SerializedTypes`,id:`ac55398ab0ef4958`,size:new T.ObjectSize(0,1)};static _Types;_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(t){return T.utils.initList(0,e._Types,t,this)}set types(e){T.utils.copyFrom(e,T.utils.getPointer(0,this))}toString(){return`SerializedTypes_`+super.toString()}};Cr._Indexes=T.CompositeList(Sr),wr._TypeArguments=T.CompositeList(W),wr._Decorators=T.CompositeList(W),wr._Types=T.CompositeList(W),K._TypeArguments=T.CompositeList(W),K._Decorators=T.CompositeList(W),K._ExtendsArguments=T.CompositeList(W),K._Arguments=T.CompositeList(W),K._Types=T.CompositeList(W),q._TypeArguments=T.CompositeList(W),q._Decorators=T.CompositeList(W),Tr._TypeArguments=T.CompositeList(W),Tr._Decorators=T.CompositeList(W),Tr._Parameters=T.CompositeList(q),Er._TypeArguments=T.CompositeList(W),Er._Decorators=T.CompositeList(W),Dr._TypeArguments=T.CompositeList(W),Dr._Decorators=T.CompositeList(W),Dr._Parameters=T.CompositeList(q),Or._TypeArguments=T.CompositeList(W),Or._Decorators=T.CompositeList(W),Ar._TypeArguments=T.CompositeList(W),Ar._Decorators=T.CompositeList(W),Ar._EnumEntries=T.CompositeList(kr),jr._TypeArguments=T.CompositeList(W),jr._Decorators=T.CompositeList(W),jr._Types=T.CompositeList(W),Mr._TypeArguments=T.CompositeList(W),Mr._Decorators=T.CompositeList(W),Mr._Types=T.CompositeList(W),Nr._TypeArguments=T.CompositeList(W),Nr._Decorators=T.CompositeList(W),Pr._TypeArguments=T.CompositeList(W),Pr._Decorators=T.CompositeList(W),Fr._TypeArguments=T.CompositeList(W),Fr._Decorators=T.CompositeList(W),Ir._TypeArguments=T.CompositeList(W),Ir._Decorators=T.CompositeList(W),Ir._Parameters=T.CompositeList(q),Lr._TypeArguments=T.CompositeList(W),Lr._Decorators=T.CompositeList(W),Rr._TypeArguments=T.CompositeList(W),Rr._Decorators=T.CompositeList(W),zr._TypeArguments=T.CompositeList(W),zr._Decorators=T.CompositeList(W),Br._TypeArguments=T.CompositeList(W),Br._Decorators=T.CompositeList(W),Br._Types=T.CompositeList(zr),Vr._TypeArguments=T.CompositeList(W),Vr._Decorators=T.CompositeList(W),Hr._TypeArguments=T.CompositeList(W),Hr._Decorators=T.CompositeList(W),Jr._TypeArguments=T.CompositeList(W),Jr._Decorators=T.CompositeList(W),Yr._TypeArguments=T.CompositeList(W),Yr._Decorators=T.CompositeList(W),Yr._Types=T.CompositeList(W),Y._Types=T.CompositeList(Qr);function $r(e,t){return ti(e.type,t??e.getDefaultValue())}function ei(e){return`"${String(e).replaceAll(`"`,`\\"`)}"`}function ti(e,t){return x(t)?`undefined`:Be(t)?`null`:e.kind===O.ReflectionKind.boolean?String(t).trim().toLowerCase()===`true`?`true`:`false`:e.kind===O.ReflectionKind.string||e.kind===O.ReflectionKind.literal&&w(e.literal)?ei(t):e.kind===O.ReflectionKind.enum?ni(e).kind===O.ReflectionKind.string?ei(t):`${String(t)}`:e.kind===O.ReflectionKind.union?ii(e)?ei(t):`${String(t)}`:e.kind===O.ReflectionKind.array?ei(ze.stringify(t)):e.kind===O.ReflectionKind.object||e.kind===O.ReflectionKind.objectLiteral?ze.stringify(t):e.kind===O.ReflectionKind.property||e.kind===O.ReflectionKind.parameter?ti(e.type,t):String(t)}function ni(e){if(e.kind!==O.ReflectionKind.enum)throw Error(`Expected a TypeEnum, but received ${e.kind}.`);let t=Re(e.values.filter(e=>e!=null),e=>w(e)?{kind:O.ReflectionKind.string}:{kind:O.ReflectionKind.number});if(t.length===0)throw Error(`No valid enum members could be found.`);return t[0]&&w(t[0])?{kind:O.ReflectionKind.string}:{kind:O.ReflectionKind.number}}function ri(e){if(e.kind===O.ReflectionKind.union&&e.types.length>0)return Re(e.types,e=>e.kind);throw Error(`Expected a TypeUnion, but received ${e.kind}.`)}function ii(e){return ri(e).some(e=>e.kind===O.ReflectionKind.string||e.kind===O.ReflectionKind.literal&&w(e.literal))}function ai(e){return E(e.dataPath,`reflections`)}const oi={target:`esnext`,platform:`neutral`,format:`esm`,write:!0,minify:!0,sourcemap:!1,bundle:!0,treeShaking:!0,keepNames:!0,splitting:!0,logLevel:`silent`};function si(e){let t=e.config.build.override.inject??e.config.build.inject;return t&&Object.keys(t).length>0&&e.fs.writeSync(E(e.workspaceConfig.workspaceRoot,e.config.projectRoot,e.artifactsPath,`inject-shim.js`),Object.entries(t).map(([e,t])=>{if(t)if(Array.isArray(t)){if(D(e)!==e){if(t.length===1)return`
|
|
3
|
-
import ${D(e)} from "${t[0]}";
|
|
4
|
-
export { ${D(e)} as "${e}" }`;if(t.length>1)return`
|
|
5
|
-
import ${t[1]===`*`?`* as ${D(e)}`:`{ ${t[1]} as ${D(e)} }`} from "${t[0]}";
|
|
6
|
-
export { ${D(e)} as "${e}" }`}else if(t.length===1)return`
|
|
7
|
-
import ${e} from "${t[0]}";
|
|
8
|
-
export { ${e} };`;else if(t.length>1)return`
|
|
9
|
-
import ${t[1]===`*`?`* as ${e}`:`{ ${t[1]} as ${e} }`} from "${t[0]}";
|
|
10
|
-
export { ${e} };`}else if(D(e)!==e)return`
|
|
11
|
-
import ${D(e)} from "${t[0]}";
|
|
12
|
-
export { ${D(e)} as "${e}" }`;else return`
|
|
13
|
-
import ${e} from "${t}";
|
|
14
|
-
export { ${e} };`;return``}).join(`
|
|
15
|
-
`)),S({alias:e.builtins.reduce((t,n)=>{if(!t[n]){let r=e.fs.ids[n];r&&(t[n]=r)}return t},e.config.build.alias?Array.isArray(e.config.build.alias)?e.config.build.alias.reduce((e,t)=>(e[t.find.toString()]||(e[t.find.toString()]=t.replacement),e),{}):e.config.build.alias:{}),inject:t&&Object.keys(t).length>0?[E(e.workspaceConfig.workspaceRoot,e.config.projectRoot,e.artifactsPath,`inject-shim.js`)]:void 0},e.config.build.variant===`esbuild`?Je(e.config.build.override,[`alias`,`inject`,`external`,`noExternal`,`skipNodeModulesBundle`,`extensions`]):{},e.config.build.variant===`esbuild`?Je(e.config.build,[`alias`,`inject`,`external`,`noExternal`,`skipNodeModulesBundle`,`extensions`,`variant`,`override`]):{},{mainFields:e.config.build.mainFields,conditions:e.config.build.conditions,define:e.config.build.define,resolveExtensions:e.config.build.extensions,packages:e.config.build.skipNodeModulesBundle?`external`:e.config.build.variant===`esbuild`?e.config.build.packages:void 0,format:Array.isArray(e.config.output.format)?e.config.output.format[0]:e.config.output.format,platform:e.config.build.platform,treeShaking:!!e.config.build?.treeshake||e.config.build?.treeShaking,outdir:e.config.output.buildPath,tsconfig:e.tsconfig.tsconfigFilePath,tsconfigRaw:e.tsconfig.tsconfigJson,minify:e.config.mode!==`development`,metafile:e.config.mode===`development`,sourcemap:e.config.mode===`development`},oi)}async function ci(e,t,n={}){let r=await e.fs.resolve(t);if(!r||!e.fs.existsSync(r))throw Error(`Module not found: "${t}". Please check the path and try again.`);let i=await qe({...si(e),entry:[r],write:!1,sourcemap:!1,splitting:!1,treeShaking:!1,bundle:!0,...n});if(i.errors.length>0)throw Error(`Failed to transpile ${t}: ${i.errors.map(e=>e.text).join(`, `)}`);if(i.warnings.length>0&&e.log(v.WARN,`Warnings while transpiling ${t}: ${i.warnings.map(e=>e.text).join(`, `)}`),!i.outputFiles||i.outputFiles.filter(Boolean).length===0)throw Error(`No output files generated for ${t}. Please check the configuration and try again.`);return i.outputFiles.filter(Boolean)[0]}async function li(e,t,n={}){let r;r=y(t)?Oe(t):t;let i=await ci(e,r.file,n),a=await e.resolver.evalModule(i.text,{filename:i.path,forceTranspile:!0}),o=r.name;return o||=`default`,a[o]??a[`__Ω${o}`]}async function ui(e,t,n){return(0,O.reflect)(await li(e,t,n))}function di(e,t){return hi(e,{type:(0,O.merge)(t.map(e=>e.type))})}function fi(e,t){return gi(e,{type:(0,O.merge)(t.map(e=>e.type))})}var pi=class{PLATFORM=`neutral`;MODE=`production`;DEBUG=!1;TEST=!1;MINIMAL=!1;NO_COLOR=!1;FORCE_COLOR=!1;FORCE_HYPERLINK=!1;STACKTRACE=!1;INCLUDE_ERROR_DATA=!1;CI=!1},mi=class{};function hi(e,t={}){let n=t.superReflection??new O.ReflectionClass({kind:O.ReflectionKind.class,description:`The base environment configuration definition for the ${C(e.config.name)} project.`,classType:pi,types:[],implements:[{kind:O.ReflectionKind.objectLiteral,typeName:`EnvInterface`,description:`The environment configuration interface definition for the ${C(e.config.name)} project.`,types:[]}]});n.name=`Env`;let r=new O.ReflectionClass(t.type??{kind:O.ReflectionKind.objectLiteral,typeName:`Env`,description:`A schema describing the list of available environment variables that can be used by the ${e.config.name?`${C(e.config.name)} application`:`application`}.`,types:[]},n);return r.name=`Env`,r}function gi(e,t={}){let n=t.superReflection??new O.ReflectionClass({kind:O.ReflectionKind.class,description:`The base secrets configuration definition for the ${C(e.config.name)} project.`,classType:mi,types:[],implements:[{kind:O.ReflectionKind.objectLiteral,typeName:`SecretsInterface`,description:`The secrets configuration interface definition for the ${C(e.config.name)} project.`,types:[]}]});n.name=`Secrets`;let r=new O.ReflectionClass(t.type??{kind:O.ReflectionKind.objectLiteral,typeName:`Secrets`,description:`A schema describing the list of available environment secrets that can be used by the ${e.config.name?`${C(e.config.name)} application`:`application`}.`,types:[]},n);return r.name=`Secrets`,r}async function _i(e,t,n){let r;t&&(r=(0,O.resolveClassType)(await ui(e,{file:_e(t,e.workspaceConfig.workspaceRoot)?t:E(e.workspaceConfig.workspaceRoot,t),name:n},{skipNodeModulesBundle:!0})));let i=await ui(e,await bi(e));return di(e,[await X(e,`env`),r,(0,O.resolveClassType)(i)].filter(Boolean))}async function vi(e,t,n){let r;t&&(r=(0,O.resolveClassType)(await ui(e,{file:_e(t,e.workspaceConfig.workspaceRoot)?t:E(e.workspaceConfig.workspaceRoot,t),name:n},{skipNodeModulesBundle:!0})));let i=await ui(e,await xi(e));return fi(e,[await Ti(e),r,(0,O.resolveClassType)(i)].filter(Boolean))}async function yi(e){return Ge(`@powerlines/plugin-env/types/runtime`,{paths:[e.workspaceConfig.workspaceRoot,E(e.workspaceConfig.workspaceRoot,e.config.projectRoot)]})}async function bi(e){return{file:await yi(e),name:`EnvInterface`}}async function xi(e){return{file:await yi(e),name:`SecretsInterface`}}function Si(e,t=`env`){return E(ai(e),`env`,`${t}-types.bin`)}async function X(e,t=`env`){let n=Si(e,t);if(!We(n)){if(!e.env.types.env||Ke(e.env.types.env)){let n=hi(e),r=new T.Message;n.messageRoot=r.initRoot(Y),n.dataBuffer=r.toArrayBuffer(),e.env.types.env=n,await Ci(e,e.env.types.env,t)}return e.env.types.env}let r=await Ve(n),i=new T.Message(r,!1).getRoot(Y),a=(0,O.resolveClassType)((0,O.deserializeType)(jn(i.types)));return e.env.types[t]=a,e.env.types[t].messageRoot=i,e.env.types[t].dataBuffer=r,a}async function Ci(e,t,n=`env`){let r=t.serializeType(),i=new T.Message;An(r,i.initRoot(Y)._initTypes(r.length)),await Ue(Si(e,n),i.toArrayBuffer())}function Z(e,t){return E(ai(e),`env`,`${t}.bin`)}async function wi(e){let t=Z(e,`env`);if(!We(t)){if(e.env.types.env||(e.env.types.env=await X(e,`env`)),!e.env.used.env||Ke(e.env.used.env)){let t=hi(e,{type:{kind:O.ReflectionKind.objectLiteral,typeName:`Env`,description:`An object containing the environment configuration parameters that are used (at least once) by the ${e.config.name?`${e.config.name} application`:`application`}.`,types:[]},superReflection:e.env.types.env});t.name=`Env`;let n=new T.Message;t.messageRoot=n.initRoot(Y),t.dataBuffer=n.toArrayBuffer(),e.env.used.env=t,await Ei(e,e.env.used.env,`env`)}return e.env.used.env}let n=await Ve(t),r=new T.Message(n,!1).getRoot(Y),i=(0,O.resolveClassType)((0,O.deserializeType)(jn(r.types)));return e.env.used.env=i,e.env.used.env.messageRoot=r,e.env.used.env.dataBuffer=n,i}async function Ti(e){let t=Z(e,`secrets`);if(!We(t)){if(e.env.types.secrets||(e.env.types.secrets=await X(e,`secrets`)),!e.env.used.secrets||Ke(e.env.used.secrets)){let t=hi(e,{type:{kind:O.ReflectionKind.objectLiteral,typeName:`Secrets`,description:`An object containing the secret configuration parameters that are used (at least once) by the ${e.config.name?`${e.config.name} application`:`application`}.`,types:[]},superReflection:e.env.types.secrets});t.name=`Secrets`;let n=new T.Message;t.messageRoot=n.initRoot(Y),t.dataBuffer=n.toArrayBuffer(),e.env.used.secrets=t,await Ei(e,e.env.used.secrets,`secrets`)}return e.env.used.secrets}let n=await Ve(t),r=new T.Message(n,!1).getRoot(Y),i=(0,O.resolveClassType)((0,O.deserializeType)(jn(r.types)));return e.env.used.secrets=i,e.env.used.secrets.messageRoot=r,e.env.used.secrets.dataBuffer=n,i}async function Ei(e,t,n=`env`){let r=t.serializeType(),i=new T.Message;An(r,i.initRoot(Y)._initTypes(r.length)),await Ue(Z(e,n),i.toArrayBuffer())}const Di=Wt(`env`,({log:e,context:t})=>{function n(n,r,i=!1){let a=t.env.types.env?.getProperties().filter(e=>e.getAlias().length>0);if(n.name){let o=t.config.env.prefix.find(e=>n.name&&n.name.startsWith(e)&&(t.env.types.env?.hasProperty(n.name.replace(`${e}_`,``))||a.some(t=>t.getAlias().includes(n.name.replace(`${e}_`,``))))),s=n.name;if(o&&(s=n.name.replace(`${o}_`,``)),e(v.TRACE,`Environment variable ${s} found in ${r.filename||`unknown file`}.`),t.env.types.env?.hasProperty(s)||a.some(e=>e.getAlias().includes(s))){let e=t.env.types.env.hasProperty(s)?t.env.types.env.getProperty(s):a.find(e=>e.getAlias().includes(s));if(!e||e.isIgnored())return;if(t.env.used.env.hasProperty(s)||t.env.used.env.addProperty(e.property),t.config.env.inject&&i){let n=t.env.parsed?.[s];if(n===void 0){let e=t.config.env.prefix.find(e=>t.env.parsed[`${e.replace(/_$/g,``)}_${s}`]);e&&(n=t.env.parsed[`${e.replace(/_$/g,``)}_${s}`])}if(n??=e.getDefaultValue(),e.isValueRequired()&&n===void 0)throw Error(`Environment variable \`${s}\` is not defined in the .env configuration files`);return $r(e,n)}}else throw Error(`The "${s}" environment variable is not defined in the \`env\` type definition, but is used in the source code file ${r.filename?r.filename:`unknown`}.
|
|
16
|
-
|
|
17
|
-
The following environment configuration names are defined in the \`env\` type definition: \n${t.env.types.env?.getPropertyNames().sort((e,t)=>String(e).localeCompare(String(t))).map(e=>` - ${String(e)} ${a.some(t=>t.getNameAsString()===String(e)&&t.getAlias().length>0)?`(Alias: ${a?.find(t=>t.getNameAsString()===String(e))?.getAlias().join(`, `)})`:``}`).join(`
|
|
18
|
-
`)} \n\nUsing the following env prefix: \n${t.config.env.prefix.map(e=>` - ${e}`).join(`
|
|
19
|
-
`)} \n\nPlease check your \`env\` configuration option. If you are using a custom dotenv type definition, please make sure that the configuration names match the ones in the code. \n\n`)}}return{visitor:{MemberExpression(e,t){if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isIdentifier({name:`$storm`})&&e.get(`property`)?.isIdentifier()){let r=e.get(`property`)?.node;n(r,t,!1),e.replaceWithSourceString(`env.${r.name}`),Gt(e,{module:`storm:env`,name:`env`,imported:`env`})}else if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isCallExpression({callee:{name:`useStorm`,type:`Identifier`}})&&e.get(`property`)?.isIdentifier()){let r=e.get(`property`)?.node;n(r,t,!1),e.replaceWithSourceString(`env.${r.name}`),Gt(e,{module:`storm:env`,name:`env`,imported:`env`})}else if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isIdentifier({name:`process`})&&e.get(`property`)?.isIdentifier()){let r=e.get(`property`)?.node;if(!r.name)return;n(r,t,!1),e.replaceWithSourceString(`env.${r.name}`),Gt(e,{module:`storm:env`,name:`env`,imported:`env`})}else if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isMetaProperty()&&e.get(`property`)?.isIdentifier()){let r=e.get(`property`)?.node;if(!r.name)return;n(r,t,!1),e.replaceWithSourceString(`env.${r.name}`),Gt(e,{module:`storm:env`,name:`env`,imported:`env`})}}},post(){e(v.TRACE,`Adding environment variables from ${this.filename||`unknown file`} to env.json.`);let n=O.ReflectionClass.from({kind:O.ReflectionKind.objectLiteral,description:`An object containing the environment variables used by the application.`,types:[]}),r=Z(t,`env`);r&&We(r)&&(e(v.TRACE,`Environment reflection file found at ${r}, reading existing reflection.`),n=(0,O.resolveClassType)((0,O.deserializeType)(jn(new T.Message(He(r),!1).getRoot(Y).types)))),e(v.TRACE,`Adding new variables to env reflection at ${r}.`),n.getProperties().filter(e=>e.getNameAsString()&&!t.env.used.env.hasProperty(e.getNameAsString())).forEach(e=>{t.env.used.env.addProperty({...e,name:e.getNameAsString(),description:e.getDescription()??`The ${e.getNameAsString()} variable.`,default:e.getDefaultValue(),optional:e.isOptional()?!0:void 0,readonly:e.isReadonly()?!0:void 0,visibility:e.getVisibility(),type:e.getType(),tags:e.getTags()})})}}});function Oi(...e){return fe(`powerlines`,...e)}function Q(e){let[{children:t,heading:n}]=_(e,[`children`,`heading`]);return[`/**`,i(`align`,{string:` * `,get children(){return[i(`hbr`,{}),r(p,{get when(){return!x(n)},get children(){return[n,i(`hbr`,{}),r(p,{get when(){return a(()=>!x(t))()&&m(()=>t).length>0},get children(){return i(`hbr`,{})}})]}}),r(p,{get when(){return a(()=>!x(t))()&&m(()=>t).length>0},get children(){return r(l,{get children(){return m(()=>t)}})}})]}}),i(`hbr`,{}),` */`,i(`hbr`,{})]}function $(e){let[{children:t,tag:n}]=_(e,[`children`,`tag`]);return[`@${n} `,r(p,{get when(){return!!t},get children(){return i(`align`,{width:2,get children(){return r(f,{children:t})}})}}),i(`hbr`,{})]}function ki(e){let[{children:t},n]=_(e,[`children`]);return r($,o(n,{tag:`title`,children:t}))}function Ai(e){let[{children:t},n]=_(e,[`children`]);return r($,o(n,{tag:`domain`,children:t}))}function ji(e){let[{children:t},n]=_(e,[`children`]);return r($,o(n,{tag:`alias`,children:t}))}function Mi(e){let[{children:t},n]=_(e,[`children`]);return r($,o(n,{tag:`permission`,children:t}))}function Ni(e){return[`@defaultValue `,r(p,{get when(){return!x(e.value)},get children(){return i(`align`,{width:2,get children(){return r(f,{get children(){return $r(e.value)}})}})}}),i(`hbr`,{})]}function Pi(e){return[`@remarks `,i(`hbr`,{}),r(l,{hardline:!0,get children(){return m(()=>e.children)}})]}function Fi(e){return r($,o(e,{tag:`see`}))}function Ii(e){let[{tsx:t,fenced:n=!0,language:a,children:o}]=_(e,[`tsx`,`fenced`,`language`,`children`]);return[`@example `,i(`hbr`,{}),r(p,{when:n,get children(){return["```",a||(t?`tsx`:`ts`),i(`hbr`,{})]}}),o,r(p,{when:n,get children(){return[i(`hbr`,{}),"```"]}})]}function Li(){return r($,{tag:`readonly`})}function Ri(){return r($,{tag:`internal`})}function zi(){return r($,{tag:`ignore`})}function Bi(){return r($,{tag:`hidden`})}function Vi(e){let[{title:t,alias:n,permission:i,domain:a,readonly:o,internal:s,ignore:l,hidden:u,defaultValue:d}]=_(e,[`title`,`alias`,`permission`,`domain`,`readonly`,`internal`,`ignore`,`hidden`,`defaultValue`]);return[r(p,{get when(){return y(t)},get children(){return r(ki,{children:t})}}),r(p,{get when(){return!x(n)&&n.length>0},get children(){return r(c,{each:n??[],children:e=>r(ji,{children:e})})}}),r(p,{get when(){return y(a)},get children(){return r(Ai,{children:a})}}),r(p,{get when(){return!x(i)&&i.length>0},get children(){return r(c,{each:i??[],children:e=>r(Mi,{children:e})})}}),r(p,{when:o===!0,get children(){return r(Li,{})}}),r(p,{when:s===!0,get children(){return r(Ri,{})}}),r(p,{when:l===!0,get children(){return r(zi,{})}}),r(p,{when:u===!0,get children(){return r(Bi,{})}}),r(p,{get when(){return!x(d)},get children(){return r(Ni,{value:d})}})]}function Hi(e){return[`@param `,r(Ui,{get name(){return e.name},get optional(){return e.optional},get defaultValue(){return e.defaultValue}}),r(Wi,{get children(){return e.children}})]}function Ui(e){return[r(p,{get when(){return e.optional},children:`[`}),a(()=>e.name),r(p,{get when(){return!!e.defaultValue},get children(){return[`=`,a(()=>e.defaultValue)]}}),r(p,{get when(){return e.optional},children:`]`})]}function Wi(e){return r(p,{get when(){return!!e.children},get children(){return[` - `,i(`align`,{width:2,get children(){return r(f,{get children(){return e.children}})}})]}})}function Gi(e){return r($,o(e,{tag:`returns`}))}function Ki(e){return r($,o(e,{tag:`throws`}))}function qi(e){let[{children:t,name:n,prefix:o}]=_(e,[`children`,`name`,`prefix`]),s=At();return[`/**`,i(`align`,{string:` * `,get children(){return[i(`hbr`,{}),r(p,{get when(){return!!t},get children(){return[r(l,{hardline:!0,get children(){return m(()=>t)}}),i(`hbr`,{}),i(`hbr`,{})]}}),`@module `,a(()=>o||s?.config.output.builtinPrefix),`:`,n]}}),i(`hbr`,{}),` */`]}function Ji(e){let{variant:t=`double-slash`,children:n}=e,a=t===`slash-star`?`/* `:t===`slash-star-star`?`/** `:t===`triple-slash`?`/// `:t===`markdown`?`<!-- `:`// `;return[a,i(`align`,{string:a,get children(){return[r(f,{children:n}),t===`slash-star`||t===`slash-star-star`?` */ `:t===`markdown`?` -->`:``]}})]}function Yi(e){let[{children:t,meta:n,path:a,header:o,preset:s,filetype:c,reference:l}]=_(e,[`children`,`meta`,`path`,`header`,`preset`,`filetype`,`reference`]),u=me(te),d={path:Ye(a,u.path),filetype:c,reference:l};u?.addContent(d);let f=he({printWidth:e.printWidth,tabWidth:e.tabWidth,useTabs:e.useTabs,insertFinalNewLine:e.insertFinalNewLine}),ee=ce();return ee.meta=S({sourceFile:d,printOptions:f,output:{preset:s}},n??{}),r(ne.Provider,{value:d,get children(){return[r(p,{when:o!==void 0,get children(){return[o,i(`hbr`,{})]}}),t]}})}function Xi(e){let[{children:t,path:n,imports:i,tsx:a,header:s},c]=_(e,[`children`,`path`,`imports`,`tsx`,`header`]),l=me(te),u=ht(l),d=Ye(n,l.path),f=new lt(d,ge());u.modules.add(f);let p=me(st);return p&&p.scope.addModule(f),e.export&&p&&(vt(e.export)?p.scope.addExport(d,f):p.scope.addExport(e.export,f)),r(ct.Provider,{value:{scope:f},get children(){return r(ee,{value:f,get children(){return r(Yi,o(c,{path:d,get header(){return s??r(Zi,{get children(){return r(Qi,{imports:i,scope:f})}})},filetype:a?`tsx`:`typescript`,children:t}))}})}})}function Zi(e){let{header:t,disableEslint:n=!0,disableBiome:a=!0,disablePrettier:o=!1,children:s}=e;return[r(p,{get when(){return!!t},get children(){return[t,i(`hbr`,{})]}}),i(`hbr`,{}),r(p,{get when(){return!!n},get children(){return[r(Ji,{variant:`slash-star`,children:`eslint-disable`}),i(`hbr`,{})]}}),r(p,{get when(){return!!o},get children(){return[r(Ji,{variant:`slash-star`,children:`prettier-ignore`}),i(`hbr`,{})]}}),r(p,{get when(){return!!a},get children(){return[r(Ji,{children:`biome-ignore lint: disable`}),i(`hbr`,{})]}}),r(p,{get when(){return!!n||!!o||!!a},get children(){return i(`hbr`,{})}}),r(p,{get when(){return!!s},get children(){return[s,i(`hbr`,{})]}}),r(Ji,{children:h`Generated by Powerlines`}),i(`hbr`,{}),r(Ji,{children:h`NOTE: Do not edit this file manually - it will be overwritten automatically by the "storm prepare" command`}),i(`hbr`,{})]}function Qi(e){let{imports:t}=e,n=gt(),a=e.scope??n.scope;return r(p,{get when(){return a.importedModules.size>0||!!t&&Object.keys(t).length>0},get children(){return[r(p,{get when(){return!!t&&Object.keys(t).length>0},get children(){return Object.entries(t??{}).map(([e,t])=>h`import ${t===null?``:t.filter(e=>!w(e)&&e.default).map(e=>e.alias?e.alias:e.name).join(`, `)+(t.filter(e=>!w(e)&&e.default).length>0&&t.filter(e=>w(e)||!e.default).length>0?`, `:``)+(t.filter(e=>w(e)||!e.default).length>0?`{ ${t.map(e=>w(e)?e:e.alias?`${e.name} as ${e.alias}`:e.name).join(`, `)} }`:``)} from "${e}";`)}}),r(p,{get when(){return a.importedModules.size>0},get children(){return r(tt,{get records(){return a.importedModules}})}}),i(`hbr`,{})]}})}function $i(e){let[{children:t,imports:n,id:i,description:a,tsx:s},c]=_(e,[`children`,`imports`,`id`,`description`,`tsx`]);return r(Xi,o({get header(){return r(Zi,{get header(){return r(qi,{name:i,children:a})},get children(){return r(Qi,{imports:n})}})},meta:{builtin:{id:i}}},c,{path:`${i}${s?`.tsx`:`.ts`}`,children:t}))}const ea=re();function ta(){let e=me(ea);if(!e)throw Error("Powerlines - ReflectionClass Context is not set. Make sure this component is wrapped in a `Output` component or being rendered by the `RenderPlugin` from `@powerlines/devkit`.");return e}const na=ie(`reflection-property`);function ra(){let e=me(na);if(!e)throw Error("Powerlines - Reflection Property Context is not set. Make sure this component is wrapped in a `Output` component or being rendered by the `RenderPlugin` from `@powerlines/devkit`.");return e}ie(`reflection-method`),ie(`reflection-parameter`);function ia(e){let[{children:t},n]=_(e,[`children`]),i=ta(),s=g(()=>i.reflection.getTitle()||C(i.reflection.getName())),c=g(()=>i.reflection.getAlias()),u=g(()=>i.reflection.getDomain()),d=g(()=>i.reflection.getPermission()),f=g(()=>i.reflection.isReadonly()),ee=g(()=>i.reflection.isInternal()),te=g(()=>i.reflection.isIgnored()),ne=g(()=>i.reflection.isHidden());return i.reflection.getName()?r(Q,o(n,{get heading(){return i.reflection.getDescription()},get children(){return[r(p,{get when(){return y(s.value)||!x(c.value)&&c.value.length>0||!x(d.value)&&d.value.length>0||y(u.value)||!x(f.value)||!x(ee.value)||!x(te.value)||!x(ne.value)},get children(){return r(Vi,{get title(){return s.value},get alias(){return c.value},get domain(){return u.value},get permission(){return d.value},get readonly(){return f.value},get internal(){return ee.value},get ignore(){return te.value},get hidden(){return ne.value}})}}),r(p,{get when(){return a(()=>!!t)()&&m(()=>t).length>0},get children(){return r(l,{get children(){return m(()=>t)}})}})]}})):null}function aa(e){let[{children:t},n]=_(e,[`children`]),i=ra();return r(Q,o({get heading(){return i.getDescription()}},n,{get children(){return[r(Vi,{get title(){return i.getTitle()},get alias(){return i.getAlias()},get domain(){return i.getDomain()},get permission(){return i.getPermission()},get readonly(){return i.isReadonly()},get internal(){return i.isInternal()},get ignore(){return i.isIgnored()},get hidden(){return i.isHidden()}}),r(p,{get when(){return a(()=>!!t)()&&m(()=>t).length>0},get children(){return r(l,{get children(){return m(()=>t)}})}})]}}))}function oa(e){let[{name:t,reflection:n},i]=_(e,[`name`,`reflection`]),a=g(()=>yt(t||n.getName())),s=n.getProperties().filter(e=>!e.isIgnored()).sort((e,t)=>e.isReadonly()&&t.isReadonly()||!e.isReadonly()&&!t.isReadonly()?e.getNameAsString().localeCompare(t.getNameAsString()):e.isReadonly()?1:-1);return r(ea.Provider,{value:{reflection:n},get children(){return[r(ia,{}),r(nt,o({export:!0,get name(){return a.value}},i,{get children(){return r(c,{each:s,doubleHardline:!0,semicolon:!0,children:e=>r(sa,{property:e})})}}))]}})}function sa(e){let[{property:t},n]=_(e,[`property`]);return r(na.Provider,{value:t,get children(){return[r(aa,{}),r(rt,o({get name(){return t.getNameAsString()},get readonly(){return t.isReadonly()},get optional(){return t.isOptional()},get nullish(){return t.isNullable()},get type(){return(0,O.stringifyType)(t.getType())}},n))]}})}function ca(e){if(!e.reflection?.value)return null;let t=g(()=>D(e.name||e.reflection.value.getName())),n=g(()=>e.type||yt(e.reflection.value.getName())),o=g(()=>e.reflection.value.getProperties().filter(t=>!t.isIgnored()&&!x(e.defaultValue?.value?.[t.getNameAsString()]??t.getAlias().reduce((t,n)=>x(t)&&!x(e.defaultValue?.value?.[n])?e.defaultValue?.value?.[n]:t,void 0)??t.getDefaultValue())).sort((e,t)=>e.isReadonly()&&t.isReadonly()||!e.isReadonly()&&!t.isReadonly()?e.getNameAsString().localeCompare(t.getNameAsString()):e.isReadonly()?1:-1)),l=oe(),d=oe(),f=mt(e.name,{refkeys:e.refkey,default:e.default,export:e.export,metadata:e.metadata,tsFlags:e.nullish?ut.Nullish:ut.None,type:e.type?l.firstSymbol:void 0,namePolicy:_t().for(`variable`)});e.type||d.moveMembersTo(f);let ee=e.var?`var`:e.let?`let`:`const`,te=e.type?r(ft,{get children(){return[`: `,r(l,{get children(){return e.type}})]}}):void 0;return r(p,{get when(){return!!e.reflection.value},get children(){return r(ea.Provider,{get value(){return{reflection:e.reflection.value,override:{name:t.value,type:n.value,defaultValue:e.defaultValue?.value}}},get children(){return[r(p,{get when(){return!!t.value&&!!n.value},get children(){return[r(ia,{}),r(s,{symbol:f,get children(){return[a(()=>e.export?`export `:``),a(()=>e.default?`default `:``),ee,` `,r(u,{}),te,` =`,` `,r(d,{get children(){return e.initializer??e.children??r(at,{get children(){return r(c,{get each(){return o.value??[]},comma:!0,doubleHardline:!0,children:e=>r(la,{property:e})})}})}})]}})]}}),i(`hbr`,{})]}})}})}function la(e){let[{property:t}]=_(e,[`property`]);return r(na.Provider,{value:t,get children(){return[r(aa,{}),r(ot,{get name(){return t.getNameAsString()},get value(){return $r(t)}}),i(`hbr`,{})]}})}function ua(e){if(w(e)){let t=Ae.reduce((e,t)=>(e.startsWith(t)&&(e=e.slice(t.length)),e),e.toUpperCase());for(;t.startsWith(`_`);)t=t.slice(1);return t}return Object.keys(e).reduce((t,n)=>{let r=ua(n);return r&&(t[r]=e[n]),t},{})}async function da(e,t,n){let r=await bt(n,t);if(e.additionalFiles&&e.additionalFiles?.length>0){let t=await Promise.all(e.additionalFiles.map(async e=>xt(e,n)));for(let e of t)r=S(e,r)}return ua(r)}async function fa(e,t,n,r,i,a){let[o,s]=await Promise.all([da(e,n,t),Ct({cwd:t,name:`storm`,envName:n,defaults:{NAME:i.name?.replace(`@${a.namespace}/`,``),MODE:n,ORG:a.organization},globalRc:!0,packageJson:!0,dotenv:!0,jitiOptions:{fsCache:E(r,`jiti`),moduleCache:!0}})]);return S(o,s.config,a)}function pa(e,t){return S({APP_NAME:St(e.config.name||e.packageJson.name?.replace(`/${e.workspaceConfig.namespace}`,``)),APP_VERSION:e.packageJson.version,BUILD_ID:e.meta.buildId,BUILD_TIMESTAMP:new Date(e.meta.timestamp).toISOString(),BUILD_CHECKSUM:e.meta.checksum,RELEASE_ID:e.meta.releaseId,RELEASE_TAG:`${St(e.config.name)}@${e.packageJson.version}`,DEFAULT_LOCALE:e.workspaceConfig.locale,DEFAULT_TIMEZONE:e.workspaceConfig.timezone,LOG_LEVEL:e.config.logLevel,ERROR_URL:e.workspaceConfig.error?.url,ORGANIZATION:y(e.workspaceConfig.organization)?e.workspaceConfig.organization:e.workspaceConfig.organization?.name,PLATFORM:e.config.build.platform,MODE:e.workspaceConfig.mode,DEBUG:e.workspaceConfig.mode===`development`,STACKTRACE:e.workspaceConfig.mode===`development`,ENVIRONMENT:e.environment},ye(e?.env?.types?.env)?e.env.types.env?.getProperties().reduce((e,n)=>(e[n.name]=t[n.name]??n.getDefaultValue(),e),{}):{})}async function ma(e,t){let[n,r,i]=await Promise.all([fa(t,e.config.projectRoot,e.config.mode,e.cachePath,e.packageJson,e.workspaceConfig),fa(t,e.workspaceConfig.workspaceRoot,e.config.mode,e.cachePath,e.packageJson,e.workspaceConfig),fa(t,e.envPaths.config,e.config.mode,e.cachePath,e.packageJson,e.workspaceConfig)]);return S(pa(e,process.env),n,r,i)}function ha(e){let t=g(()=>e&&pa(e,process.env));return ae(async()=>{if(!e)return new O.ReflectionClass({kind:O.ReflectionKind.objectLiteral,description:`The initial environment configuration state for the Powerlines project.`,types:[]});let n=await X(e,`env`);return n.getProperties().forEach(e=>{e.getAlias().filter(Boolean).forEach(t=>{n.addProperty({name:t,optional:e.isOptional()?!0:void 0,readonly:e.isReadonly()?!0:void 0,description:e.getDescription(),visibility:e.getVisibility(),type:e.getType(),default:e.getDefaultValue(),tags:{hidden:e.isHidden(),ignore:e.isIgnored(),internal:e.isInternal(),alias:e.getAlias().filter(e=>e!==t).concat(e.name),title:e.getTitle()||C(e.name),readonly:e.isReadonly(),permission:e.getPermission(),domain:e.getDomain()}})})}),n.getProperties().forEach(e=>{e.setDefaultValue(t.value?.[e.getNameAsString()]??e.getAlias().reduce((e,n)=>e??t.value?.[n],void 0)??e.getDefaultValue())}),n})}function ga(e){let[{defaultValue:t,reflection:n}]=_(e,[`defaultValue`,`reflection`]),a=At();return[r(oa,{name:` EnvBase`,extends:[`EnvInterface`],defaultValue:t,reflection:n,export:!0}),i(`hbr`,{}),i(`hbr`,{}),r(dt,{name:`Env`,export:!0,get children(){return h` {
|
|
20
|
-
[Key in keyof EnvBase as Key ${a?.config.env.prefix.map(e=>`| \`${e.replace(/_$/g,``)}_\${Key}\``).join(` `)}]: EnvBase[Key];
|
|
21
|
-
}
|
|
22
|
-
`}})]}function _a(e){let[{context:t,name:n}]=_(e,[`context`,`name`]);return t?h`propertyName === "${n}" || propertyName.replace(/^(${t.config.env.prefix.sort((e,t)=>e.startsWith(t)?-1:t.startsWith(e)?1:e.localeCompare(t)).map(e=>`${e.replace(/_$/,``)}_`).join(`|`)})/g, "").toLowerCase().replace(/[\\s\\-_]+/g, "") === "${n.toLowerCase().replace(/[\s\-_]+/g,``)}"`:null}function va(e){let[{context:t,property:n,index:i}]=_(e,[`context`,`property`,`index`]);return t?[r(i===0?et:Qe,{get condition(){return[r(_a,{get name(){return n.getNameAsString()},context:t}),r(p,{get when(){return a(()=>!!n.getAlias())()&&n.getAlias().length>0},get children(){return[h` || `,r(c,{get each(){return n.getAlias()},joiner:h` || `,children:e=>r(_a,{name:e,context:t})})]}})]},get children(){return h`return target["${n.getNameAsString()}"];`}})]:null}function ya(e){let[{context:t,property:n,index:i}]=_(e,[`context`,`property`,`index`]);return t?[r(i===0?et:Qe,{get condition(){return[r(_a,{get name(){return n.getNameAsString()},context:t}),r(p,{get when(){return a(()=>!!n.getAlias())()&&n.getAlias().length>0},get children(){return[h` || `,r(c,{get each(){return n.getAlias()},joiner:h` || `,children:e=>r(_a,{name:e,context:t})})]}})]},get children(){return h`
|
|
23
|
-
target["${n.getNameAsString()}"] = newValue;
|
|
24
|
-
return true;
|
|
25
|
-
`}})]:null}const ba=Oi(`createEnv`),xa=Oi(`env`),Sa=Oi(`EnvSerializer`);function Ca(e){let[{defaultConfig:t},n]=_(e,[`defaultConfig`]),a=At(),s=g(()=>a&&pa(a,process.env)),l=ha(a),u=g(()=>new O.ReflectionClass({kind:O.ReflectionKind.objectLiteral,description:`The initial environment configuration state for the ${C(a?.config?.name)} project.`,types:[]},l.data??void 0)),d=g(()=>l.data?.getProperties().filter(e=>!e.isIgnored()).sort((e,t)=>e.getNameAsString().localeCompare(t.getNameAsString()))??[]),f=g(()=>l.data?.getProperties().filter(e=>!e.isIgnored()&&!e.isReadonly()).sort((e,t)=>e.getNameAsString().localeCompare(t.getNameAsString()))??[]);return r($i,o(n,{id:`env`,description:`The Powerlines environment configuration module provides an interface to define environment configuration parameters.`,get imports(){return S({"@powerlines/deepkit/vendor/type":[`Type`,`stringify`,`serializer`,`serializeFunction`,`deserializeFunction`,`ReflectionKind`,`TemplateState`,`Serializer`,`TypeProperty`,`TypePropertySignature`],"@powerlines/plugin-env/types/runtime":[{name:`EnvInterface`}]},n.imports??{})},get children(){return[r(p,{get when(){return!Be(l.data)},get children(){return[r(ga,{get defaultValue(){return s.value},get reflection(){return l.data}}),i(`hbr`,{}),i(`hbr`,{})]}}),r(ca,{name:`initialEnv`,type:`Partial<EnvBase>`,defaultValue:s,reflection:u,export:!0,const:!0}),i(`hbr`,{}),i(`hbr`,{}),r(Q,{heading:`The environment configuration serializer for the Powerlines application.`,get children(){return[r(Fi,{children:`https://deepkit.io/docs/serialization/serializers`}),r(Fi,{children:`https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918`}),r(Pi,{children:`This serializer is used to serialize and deserialize the Powerlines environment configuration.`})]}}),r(Xe,{refkey:Sa,name:`EnvSerializer`,extends:`Serializer`,export:!0,get children(){return r(Ze,{name:`constructor`,public:!0,children:h`
|
|
26
|
-
super("env");
|
|
27
|
-
|
|
28
|
-
this.deserializeRegistry.register(
|
|
29
|
-
ReflectionKind.boolean,
|
|
30
|
-
(type: Type, state: TemplateState) => {
|
|
31
|
-
state.addSetter(
|
|
32
|
-
\`typeof \${state.accessor.toString()} !== "boolean" ? \${state.accessor.toString()} === 1 || \${state.accessor.toString()} === "1" || \${state.accessor.toString()}.toLowerCase() === "t" || \${state.accessor.toString()}.toLowerCase() === "true" || \${state.accessor.toString()}.toLowerCase() === "y" || \${state.accessor.toString()}.toLowerCase() === "yes" : \${state.accessor.toString()}\`
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
`})}}),i(`hbr`,{}),i(`hbr`,{}),r(Q,{heading:`A {@link EnvSerializer | environment configuration serializer} instance for the Powerlines application.`,get children(){return[r(Fi,{children:`https://deepkit.io/docs/serialization/serializers`}),r(Fi,{children:`https://github.com/marcj/untitled-code/blob/master/packages/type/src/serializer.ts#L1918`}),r(Pi,{children:`This serializer is used to serialize and deserialize the Powerlines environment configuration.`})]}}),r(pt,{name:`envSerializer`,export:!1,const:!0,get initializer(){return r(it,{args:[],target:`EnvSerializer`})}}),i(`hbr`,{}),i(`hbr`,{}),r(Q,{heading:`Serialize a environment configuration object to JSON data objects (not a JSON string).`,get children(){return[r(Pi,{children:`The resulting JSON object can be stringified using JSON.stringify().`}),r(Ii,{children:`const json = serializeEnv(env);`}),r(Ki,{children:`ValidationError when serialization or validation fails.`})]}}),r(pt,{name:`serializeEnv`,export:!0,const:!0,initializer:`serializeFunction<EnvBase>(envSerializer)`}),i(`hbr`,{}),i(`hbr`,{}),r(Q,{heading:`Deserialize a environment configuration object from JSON data objects to JavaScript objects, without running any validators.`,get children(){return[r(Pi,{children:`Types that are already correct will be used as-is.`}),r(Ii,{children:`const env = deserializeEnv(json);`}),r(Ki,{children:`ValidationError when deserialization fails.`})]}}),r(pt,{name:`deserializeEnv`,export:!0,const:!0,initializer:`deserializeFunction<EnvBase>(envSerializer)`}),i(`hbr`,{}),i(`hbr`,{}),r(Q,{heading:`Initializes the Powerlines environment configuration module.`,get children(){return[r(Pi,{children:`This function initializes the Powerlines environment configuration object.`}),r(Hi,{name:`environmentConfig`,children:`The dynamic/runtime configuration - this could include the current environment variables or any other environment-specific settings provided by the runtime.`}),r(Gi,{children:`The initialized Powerlines configuration object.`})]}}),r(p,{get when(){return!!a?.entryPath},get children(){return r($e,{refkey:ba,async:!1,export:!0,name:`createEnv`,parameters:[{name:`environmentConfig`,type:`Partial<Env>`,optional:!1,default:`{}`}],returnType:`Env`,get children(){return[h`
|
|
37
|
-
return new Proxy<Env>(
|
|
38
|
-
deserializeEnv({
|
|
39
|
-
...initialEnv,
|
|
40
|
-
...environmentConfig
|
|
41
|
-
}) as Env,
|
|
42
|
-
{
|
|
43
|
-
get: (target: EnvBase, propertyName: string) => { `,i(`hbr`,{}),r(c,{each:d,children:(e,t)=>r(va,{index:t,context:a,property:e})}),h`
|
|
44
|
-
return undefined;
|
|
45
|
-
}, `,i(`hbr`,{}),i(`hbr`,{}),h` set: (target: EnvBase, propertyName: string, newValue: any) => { `,i(`hbr`,{}),r(c,{each:f,ender:h` else `,children:(e,t)=>r(ya,{index:t,context:a,property:e})}),i(`hbr`,{}),h`return false;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
);
|
|
49
|
-
`]}})}}),i(`hbr`,{}),i(`hbr`,{}),i(`hbr`,{}),r(pt,{refkey:xa,name:`env`,type:`Env`,export:!0,const:!0,get initializer(){return[h`createEnv(`,t||`{}`,h` as Partial<Env>)`]}})]}}))}ie(`markdown-table-column`,{}),re({columns:[],data:[]});var wa=Mt((e={})=>({name:`env`,dependsOn:[Yt(e.babel)],async config(){this.log(v.TRACE,"Providing default configuration for the Powerlines `env` build plugin.");let t={env:S(e,{types:{},prefix:[]}),transform:{babel:{plugins:[Di]}}};if(t.env.types)t.env.types=Oe(t.env.types);else{this.log(v.WARN,"The `env.types` configuration parameter was not provided. Please ensure this is expected.");let e=await bi(this);t.env.types=Oe(`${e.file}#${e.name}`)}if(t.env.secrets)t.env.secrets=Oe(t.env.secrets);else{let e=await xi(this);t.env.secrets=Oe(`${e.file}#${e.name}`)}return t.env.prefix=ke(t.env.prefix??[]).reduce((e,t)=>{let n=Pe(t);return e.includes(n)||e.push(n),e},[...Ae,`POWERLINES_`]),t.env.prefix=t.env.prefix.reduce((e,t)=>(e.includes(t.replace(/_$/g,``))||e.push(t.replace(/_$/g,``)),e),[]),t},async configResolved(){if(this.log(v.TRACE,`Environment plugin configuration has been resolved for the Powerlines project.`),this.config.env.inject??=this.config.projectType===`application`,this.env=S({parsed:await ma(this,this.config.env)},this.env??{},{types:{env:{}},used:{env:{},secrets:{}},parsed:{},injected:{}}),this.config.command!==`prepare`&&this.persistedMeta?.checksum===this.meta.checksum&&je(Si(this,`env`)))this.log(v.TRACE,`Skipping reflection initialization as the meta checksum has not changed.`),this.env.types.env=await X(this,`env`),je(Z(this,`env`))&&(this.env.used.env=await wi(this)),je(Si(this,`secrets`))&&(this.env.types.secrets=await X(this,`secrets`)),je(Z(this,`secrets`))&&(this.env.used.secrets=await Ti(this));else{if(this.env.types.env=await _i(this,this.config.env.types?.file?_e(this.config.env.types?.file,this.workspaceConfig.workspaceRoot)?this.config.env.types?.file:Ne(this.config.projectRoot,this.config.env.types?.file):void 0,this.config.env.types?.name),!this.env.types.env)throw Error(`Failed to find the environment configuration type reflection in the context.`);if(await Ci(this,this.env.types.env,`env`),this.env.types.secrets=await vi(this,this.config.env.secrets?.file?_e(this.config.env.secrets?.file,this.workspaceConfig.workspaceRoot)?this.config.env.secrets?.file:Ne(this.config.projectRoot,this.config.env.secrets?.file):void 0,this.config.env.secrets?.name),!this.env.types.secrets)throw Error(`Failed to find the secrets configuration type reflection in the context.`);await Ci(this,this.env.types.secrets,`secrets`),this.log(v.TRACE,`Resolved ${this.env.types.env.getProperties().length??0} environment configuration parameters and ${this.env.types.secrets?.getProperties().length??0} secret configuration parameters`);let e=this.env.types.env.getProperties().filter(e=>e.getAlias().length>0);Object.entries(await ma(this,this.config.env)).forEach(([t,n])=>{let r=this.config.env.prefix.reduce((e,n)=>t.replace(/_$/g,``).startsWith(n)?t.replace(/_$/g,``).slice(n.length):e,t),i=e.find(e=>e?.getAlias().reverse().includes(r));(this.env.types.env?.hasProperty(r)||i)&&this.env.types.env.getProperty(r).setDefaultValue(n)}),this.env.used.env=new O.ReflectionClass({kind:O.ReflectionKind.objectLiteral,typeName:`Env`,description:`An object containing the environment configuration parameters used by the ${this.config.name?`${this.config.name} application`:`application`}.`,types:[]},this.env.types.env),await Ei(this,this.env.used.env,`env`),this.env.types.secrets&&(await Ci(this,this.env.types.secrets,`secrets`),this.env.used.secrets=new O.ReflectionClass({kind:O.ReflectionKind.objectLiteral,typeName:`Secrets`,description:`An object containing the secret configuration parameters used by the ${this.config.name?`${this.config.name} application`:`application`}.`,types:[]},this.env.types.secrets),await Ei(this,this.env.used.secrets,`secrets`))}},render(){let e=this;return this.log(v.TRACE,`Preparing the Environment runtime artifacts for the Powerlines project.`),r(Ca,{get defaultConfig(){return e.config.env.defaultConfig}})},async docs(){this.log(v.TRACE,`Writing Environment documentation for the Powerlines project artifacts.`);let e=Ne(this.config.projectRoot,`docs`,`generated`);je(e)||await Me(e);let t=await X(this,`env`),n=Ne(e,`env.md`);this.log(v.TRACE,`Documenting environment variables configuration in "${n}"`),await this.fs.write(n,`<!-- Generated by Powerlines -->
|
|
50
|
-
|
|
51
|
-
# Environment variables configuration
|
|
52
|
-
|
|
53
|
-
Below is a list of environment variables used by the [${this.packageJson.name}](https://www.npmjs.com/package/${this.packageJson.name}) package. These values can be updated in the \`.env\` file in the root of the project.
|
|
54
|
-
|
|
55
|
-
## Environment Configuration
|
|
56
|
-
|
|
57
|
-
The below list of environment variables are used as configuration parameters to drive the processing of the application. The data contained in these variables are **not** considered sensitive or confidential. Any values provided in these variables will be available in plain text to the public.
|
|
58
|
-
|
|
59
|
-
| Name | Description | Type | Default Value | Required |
|
|
60
|
-
| ---- | ----------- | ---- | ------------- | :------: |
|
|
61
|
-
${t.getProperties().filter(e=>e.getNameAsString()!==`__STORM_INJECTED__`).sort((e,t)=>e.getNameAsString().localeCompare(t.getNameAsString())).map(e=>`| ${e.getNameAsString().trim()} | ${(e.getDescription()?.replaceAll(`\r`,``)?.replaceAll(`
|
|
62
|
-
`,``)??``).trim()} | ${(0,O.stringifyType)(e.getType()).trim().replaceAll(` | `,`, or `)} | ${e.hasDefault()?String(e.getDefaultValue())?.includes(`"`)?e.getDefaultValue():`\`${e.getDefaultValue()}\``:``} | ${e.isValueRequired()?``:`✔`} |`).join(`
|
|
63
|
-
`)}
|
|
64
|
-
`)},async buildEnd(){let e=Z(this,`env`);this.log(v.TRACE,`Writing env reflection types to ${e}.`),await Ei(this,this.env.used.env,`env`)}}));function Ta(e){return`
|
|
65
|
-
// Generated with ${C(e.config.framework)}
|
|
66
|
-
// Note: Do not edit this file manually - it will be overwritten automatically
|
|
67
|
-
`}function Ea(e,t={}){let{directive:n=null,prettierIgnore:r=!1}=t;return`/* eslint-disable */
|
|
68
|
-
// biome-ignore lint: disable
|
|
69
|
-
${r?`// prettier-ignore`:``}${n?`\n\n${n}\n`:`
|
|
70
|
-
`}
|
|
71
|
-
${Ta(e)}
|
|
72
|
-
|
|
73
|
-
`}function Da(e){return`
|
|
74
|
-
/**
|
|
75
|
-
* The cryptography module provides custom helper functions to support encrypting and decrypting data.
|
|
76
|
-
*
|
|
77
|
-
* @module ${e.config.output.builtinPrefix}:crypto
|
|
78
|
-
*/
|
|
79
|
-
|
|
80
|
-
${Ea(e)}
|
|
81
|
-
|
|
82
|
-
import { xchacha20poly1305, chacha20poly1305 } from "@noble/ciphers/chacha.js";
|
|
83
|
-
import { randomBytes, managedNonce, hexToBytes } from "@noble/ciphers/utils.js";
|
|
84
|
-
import { scrypt } from "@noble/hashes/scrypt.js";
|
|
85
|
-
import { blake3 } from "@noble/hashes/blake3.js";
|
|
86
|
-
${e.config.crypto.encryptionKey?`
|
|
87
|
-
const nonce = randomBytes(24);
|
|
88
|
-
const chacha = xchacha20poly1305(hexToBytes("${e.config.crypto.encryptionKey}"), nonce);
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Symmetrically encrypts data using the [ChaCha20-Poly1305](https://en.wikipedia.org/wiki/ChaCha20-Poly1305) cipher.
|
|
92
|
-
*
|
|
93
|
-
* @see https://en.wikipedia.org/wiki/ChaCha20-Poly1305
|
|
94
|
-
*
|
|
95
|
-
* @param plaintext - The data to encrypt.
|
|
96
|
-
* @returns The encrypted data.
|
|
97
|
-
*/
|
|
98
|
-
export function encrypt(plaintext: string): string {
|
|
99
|
-
return chacha.encrypt(
|
|
100
|
-
nonce,
|
|
101
|
-
new TextEncoder().encode(plaintext),
|
|
102
|
-
null
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Symmetrically decrypts data using the [ChaCha20-Poly1305](https://en.wikipedia.org/wiki/ChaCha20-Poly1305) cipher.
|
|
108
|
-
*
|
|
109
|
-
* @see https://en.wikipedia.org/wiki/ChaCha20-Poly1305
|
|
110
|
-
*
|
|
111
|
-
* @param encrypted - The encrypted data to decrypt.
|
|
112
|
-
* @returns The decrypted data.
|
|
113
|
-
*/
|
|
114
|
-
export function decrypt(encrypted: string): string {
|
|
115
|
-
const decrypted = chacha.decrypt(
|
|
116
|
-
nonce,
|
|
117
|
-
encrypted,
|
|
118
|
-
null
|
|
119
|
-
);
|
|
120
|
-
|
|
121
|
-
return new TextDecoder().decode(decrypted);
|
|
122
|
-
}
|
|
123
|
-
`:``}
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Symmetrically encrypts data using the [ChaCha20-Poly1305](https://en.wikipedia.org/wiki/ChaCha20-Poly1305) cipher with a password.
|
|
127
|
-
*
|
|
128
|
-
* @see https://en.wikipedia.org/wiki/ChaCha20-Poly1305
|
|
129
|
-
*
|
|
130
|
-
* @param password - The password used to derive the encryption key.
|
|
131
|
-
* @param plaintext - The data to encrypt.
|
|
132
|
-
* @returns The encrypted data.
|
|
133
|
-
*/
|
|
134
|
-
export function encryptWithPassword(password: string, plaintext: string): string {
|
|
135
|
-
const key = scrypt(
|
|
136
|
-
new TextEncoder().encode(password),
|
|
137
|
-
hexToBytes("${e.config.crypto.salt?e.config.crypto.salt:`nonce`}"),
|
|
138
|
-
1048576, // requires 1GB of RAM to calculate
|
|
139
|
-
8,
|
|
140
|
-
1,
|
|
141
|
-
32
|
|
142
|
-
);
|
|
143
|
-
|
|
144
|
-
return chacha20poly1305(key).encrypt(
|
|
145
|
-
nonce,
|
|
146
|
-
new TextEncoder().encode(plaintext),
|
|
147
|
-
null
|
|
148
|
-
);
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Symmetrically decrypts data using the [ChaCha20-Poly1305](https://en.wikipedia.org/wiki/ChaCha20-Poly1305) cipher with a password.
|
|
153
|
-
*
|
|
154
|
-
* @see https://en.wikipedia.org/wiki/ChaCha20-Poly1305
|
|
155
|
-
*
|
|
156
|
-
* @param password - The password used to derive the decryption key.
|
|
157
|
-
* @param encrypted - The encrypted data to decrypt.
|
|
158
|
-
* @returns The decrypted data.
|
|
159
|
-
*/
|
|
160
|
-
export function decryptWithPassword(password: string, encrypted: string): string {
|
|
161
|
-
const key = scrypt(
|
|
162
|
-
new TextEncoder().encode(password),
|
|
163
|
-
hexToBytes("${e.config.crypto.salt?e.config.crypto.salt:`nonce`}"),
|
|
164
|
-
1048576, // requires 1GB of RAM to calculate
|
|
165
|
-
8,
|
|
166
|
-
1,
|
|
167
|
-
32
|
|
168
|
-
);
|
|
169
|
-
|
|
170
|
-
const decrypted = chacha20poly1305(key).decrypt(
|
|
171
|
-
nonce,
|
|
172
|
-
encrypted,
|
|
173
|
-
null
|
|
174
|
-
);
|
|
175
|
-
|
|
176
|
-
return new TextDecoder().decode(decrypted);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Hashes data using the [BLAKE3](https://en.wikipedia.org/wiki/BLAKE_(hash_function)#BLAKE3) hash function.
|
|
181
|
-
*
|
|
182
|
-
* @see https://en.wikipedia.org/wiki/BLAKE_(hash_function)#BLAKE3
|
|
183
|
-
*
|
|
184
|
-
* @param data - The data to hash.
|
|
185
|
-
* @returns The hashed data.
|
|
186
|
-
*/
|
|
187
|
-
export function hash(data: string): string {
|
|
188
|
-
return Buffer.from(
|
|
189
|
-
blake3(new TextEncoder().encode(data), {
|
|
190
|
-
key: ${e.config.crypto.salt?`hexToBytes("${e.config.crypto.salt}")`:`new TextEncoder().encode("powerlines")`})
|
|
191
|
-
})
|
|
192
|
-
).toString("hex");
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
// Export noble cipher and hash functions for advanced usage
|
|
196
|
-
|
|
197
|
-
export * from "@noble/ciphers/chacha.js";
|
|
198
|
-
export * from "@noble/ciphers/aes.js";
|
|
199
|
-
export * from "@noble/ciphers/utils.js";
|
|
200
|
-
export * from '@noble/hashes/blake3.js';
|
|
201
|
-
export * from '@noble/hashes/pbkdf2.js';
|
|
202
|
-
export * from '@noble/hashes/scrypt.js';
|
|
203
|
-
export * from '@noble/hashes/utils.js';
|
|
204
|
-
|
|
205
|
-
`}function Oa(e={}){return{name:`crypto`,dependsOn:[wa(e.env)],config(){return{crypto:S(e,{salt:`${this.config.name||this.workspaceConfig?.name||this.packageJson?.name}-application`})}},configResolved(){this.dependencies[`@noble/ciphers`]=`^2.0.1`,this.dependencies[`@noble/hashes`]=`^2.0.1`,this.config.crypto.salt??=this.env.parsed.SALT,this.config.crypto.salt||(this.log(v.WARN,"No salt provided to the Crypto plugin - a salt value will be generated automatically. Please note: It's highly recommended to provide a unique salt value via the `salt` plugin option or the `SALT` environment variable."),this.config.crypto.salt=t(n(12))),this.config.crypto.encryptionKey??=this.env.parsed.ENCRYPTION_KEY,this.config.crypto.encryptionKey||(this.log(v.WARN,"No encryption key provided to the Crypto plugin - a secure key will be generated automatically. Please note: it's highly recommended to provide a secure encryption key via the `encryptionKey` plugin option or the `ENCRYPTION_KEY` environment variable."),this.config.crypto.encryptionKey=t(n(32)))},async prepare(){this.log(v.TRACE,`Preparing the Crypto runtime artifacts for the Powerlines project.`),await this.emitBuiltin(await Promise.resolve(Da(this)),`crypto`,`crypto.ts`)}}}var ka=Oa;export{Da as cryptoModule,ka as default,Oa as plugin};
|
|
1
|
+
import e from"./plugin-env/src/index.mjs";import{cryptoModule as t}from"./components/crypto.mjs";import"./components/index.mjs";import{bytesToHex as n,randomBytes as r}from"@noble/ciphers/utils.js";import{LogLevelLabel as i}from"@storm-software/config-tools/types";import a from"defu";function o(o={}){return{name:`crypto`,dependsOn:[e(o.env)],config(){return{crypto:a(o,{salt:`${this.config.name||this.workspaceConfig?.name||this.packageJson?.name}-application`})}},configResolved(){this.dependencies[`@noble/ciphers`]=`^2.0.1`,this.dependencies[`@noble/hashes`]=`^2.0.1`,this.config.crypto.salt??=this.env.parsed.SALT,this.config.crypto.salt||(this.log(i.WARN,"No salt provided to the Crypto plugin - a salt value will be generated automatically. Please note: It's highly recommended to provide a unique salt value via the `salt` plugin option or the `SALT` environment variable."),this.config.crypto.salt=n(r(12))),this.config.crypto.encryptionKey??=this.env.parsed.ENCRYPTION_KEY,this.config.crypto.encryptionKey||(this.log(i.WARN,"No encryption key provided to the Crypto plugin - a secure key will be generated automatically. Please note: it's highly recommended to provide a secure encryption key via the `encryptionKey` plugin option or the `ENCRYPTION_KEY` environment variable."),this.config.crypto.encryptionKey=n(r(32)))},async prepare(){this.log(i.TRACE,`Preparing the Crypto runtime artifacts for the Powerlines project.`),await this.emitBuiltin(await Promise.resolve(t(this)),`crypto`,`crypto.ts`)}}}var s=o;export{t as cryptoModule,s as default,o as plugin};
|