@lssm/lib.graphql-prisma 0.0.0-canary-20251217083314 → 0.0.0-canary-20251220002821

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Chaman Ventures, SASU
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -52,6 +52,9 @@ builder.prismaObject('User', {
52
52
 
53
53
 
54
54
 
55
+
56
+
57
+
55
58
 
56
59
 
57
60
 
package/dist/index.js CHANGED
@@ -1,2 +1,63 @@
1
- import e from"@pothos/core";import t from"@pothos/plugin-prisma";import n from"@pothos/plugin-complexity";import r from"@pothos/plugin-dataloader";import i from"@pothos/plugin-relay";import a,{isRootField as o,wrapResolver as s}from"@pothos/plugin-tracing";import{GeoJSONResolver as c}from"graphql-scalars";import{ScalarTypeEnum as l}from"@lssm/lib.schema";function u(u){let d=process.env.CONTRACTSPEC_DEBUG_GRAPHQL_BUILDER===`true`,f=new e({defaultInputFieldRequiredness:!0,plugins:[i,n,a,r,t],relay:{},prisma:{client:u.prisma.client,dmmf:u.prisma.dmmf||{},exposeDescriptions:u.prisma.exposeDescriptions??!0,filterConnectionTotalCount:u.prisma.filterConnectionTotalCount??!0,onUnusedQuery:u.prisma.onUnusedQuery??null},complexity:{defaultComplexity:u.complexity?.defaultComplexity??1,defaultListMultiplier:u.complexity?.defaultListMultiplier??10},tracing:{default:e=>u.tracing?.enableByDefault??!0?o(e):!1,wrap:(e,t,n)=>s(e,(e,t)=>{u.tracing?.onResolved?.(n.parentType,n.name,t)})}});return d&&console.log(`[graphql-prisma] initializing schema builder`),Object.entries(l).forEach(([e,t])=>{if(![`ID`,`Boolean`].includes(e)){if(typeof t!=`function`)throw Error(`ScalarTypeEnum entry "${e}" must be a function but received ${typeof t}`);d&&console.log(`[graphql-prisma] registering scalar ${e}`),f.addScalarType(e,t())}}),f.addScalarType(`GeoJSON`,c),f.queryType({fields:e=>({})}),f.mutationType({fields:e=>({})}),d&&console.log(`[graphql-prisma] schema builder ready`),f}function d(e,t=`gql.field`){return{enableByDefault:!0,onResolved:(e,t,n,...r)=>{}}}export{d as createLoggerTracing,u as createPrismaSchemaBuilder};
1
+ import { E5 } from "./schema/dist/index.js";
2
+ import SchemaBuilder from "@pothos/core";
3
+ import PrismaPlugin from "@pothos/plugin-prisma";
4
+ import ComplexityPlugin from "@pothos/plugin-complexity";
5
+ import DataloaderPlugin from "@pothos/plugin-dataloader";
6
+ import RelayPlugin from "@pothos/plugin-relay";
7
+ import TracingPlugin, { isRootField, wrapResolver } from "@pothos/plugin-tracing";
8
+ import { GeoJSONResolver } from "graphql-scalars";
9
+
10
+ //#region src/index.ts
11
+ function createPrismaSchemaBuilder(options) {
12
+ const debugBuilder = process.env.CONTRACTSPEC_DEBUG_GRAPHQL_BUILDER === "true";
13
+ const builder = new SchemaBuilder({
14
+ defaultInputFieldRequiredness: true,
15
+ plugins: [
16
+ RelayPlugin,
17
+ ComplexityPlugin,
18
+ TracingPlugin,
19
+ DataloaderPlugin,
20
+ PrismaPlugin
21
+ ],
22
+ relay: {},
23
+ prisma: {
24
+ client: options.prisma.client,
25
+ dmmf: options.prisma.dmmf || {},
26
+ exposeDescriptions: options.prisma.exposeDescriptions ?? true,
27
+ filterConnectionTotalCount: options.prisma.filterConnectionTotalCount ?? true,
28
+ onUnusedQuery: options.prisma.onUnusedQuery ?? null
29
+ },
30
+ complexity: {
31
+ defaultComplexity: options.complexity?.defaultComplexity ?? 1,
32
+ defaultListMultiplier: options.complexity?.defaultListMultiplier ?? 10
33
+ },
34
+ tracing: {
35
+ default: (cfg) => options.tracing?.enableByDefault ?? true ? isRootField(cfg) : false,
36
+ wrap: (resolver, _opts, cfg) => wrapResolver(resolver, (_err, dur) => {
37
+ options.tracing?.onResolved?.(cfg.parentType, cfg.name, dur);
38
+ })
39
+ }
40
+ });
41
+ if (debugBuilder) console.log("[graphql-prisma] initializing schema builder");
42
+ Object.entries(E5).forEach(([name, type]) => {
43
+ if (["ID", "Boolean"].includes(name)) return;
44
+ if (typeof type !== "function") throw new Error(`ScalarTypeEnum entry "${name}" must be a function but received ${typeof type}`);
45
+ if (debugBuilder) console.log(`[graphql-prisma] registering scalar ${name}`);
46
+ builder.addScalarType(name, type());
47
+ });
48
+ builder.addScalarType("GeoJSON", GeoJSONResolver);
49
+ builder.queryType({ fields: (t) => ({}) });
50
+ builder.mutationType({ fields: (t) => ({}) });
51
+ if (debugBuilder) console.log("[graphql-prisma] schema builder ready");
52
+ return builder;
53
+ }
54
+ function createLoggerTracing(logger, opLabel = "gql.field") {
55
+ return {
56
+ enableByDefault: true,
57
+ onResolved: (parentType, fieldName, durationMs, ...others) => {}
58
+ };
59
+ }
60
+
61
+ //#endregion
62
+ export { createLoggerTracing, createPrismaSchemaBuilder };
2
63
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import SchemaBuilder, { type SchemaTypes } from '@pothos/core';\nimport PrismaPlugin, { type PrismaClient } from '@pothos/plugin-prisma';\nimport ComplexityPlugin from '@pothos/plugin-complexity';\nimport DataloaderPlugin from '@pothos/plugin-dataloader';\nimport RelayPlugin from '@pothos/plugin-relay';\nimport TracingPlugin, {\n isRootField,\n wrapResolver,\n} from '@pothos/plugin-tracing';\nimport '@pothos/plugin-prisma';\nimport '@pothos/plugin-relay';\nimport '@pothos/plugin-complexity';\nimport { GeoJSONResolver } from 'graphql-scalars';\nimport { ScalarTypeEnum } from '@lssm/lib.schema';\n\nexport interface PrismaBuilderOptions {\n complexity?: {\n defaultComplexity?: number;\n defaultListMultiplier?: number;\n };\n tracing?: {\n enableByDefault?: boolean;\n onResolved?: (\n parentType: string,\n fieldName: string,\n durationMs: number\n ) => void;\n };\n federation?: boolean;\n prisma: {\n client: PrismaClient;\n dmmf?: {\n datamodel: unknown;\n };\n exposeDescriptions?: boolean;\n filterConnectionTotalCount?: boolean;\n onUnusedQuery?: 'warn' | null;\n };\n}\n\nexport function createPrismaSchemaBuilder<\n C extends object,\n PT extends {} | undefined,\n Objects extends object = object,\n Scalars extends object = object,\n>(options: PrismaBuilderOptions) {\n const debugBuilder =\n process.env.CONTRACTSPEC_DEBUG_GRAPHQL_BUILDER === 'true';\n // const plugins: (keyof PothosSchemaTypes.Plugins<SchemaTypes>)[] = [\n const plugins = [\n RelayPlugin,\n ComplexityPlugin,\n TracingPlugin,\n DataloaderPlugin,\n PrismaPlugin,\n ] satisfies (keyof PothosSchemaTypes.Plugins<SchemaTypes>)[];\n // if (options.federation) plugins.push(FederationPlugin);\n\n const builder = new SchemaBuilder<{\n DefaultInputFieldRequiredness: true;\n PrismaTypes: PT;\n Context: C;\n Objects: Objects;\n Scalars: {\n JSON: { Input: unknown; Output: unknown };\n Date: { Input: Date; Output: Date };\n EmailAddress: { Input: string; Output: string };\n Locale: { Input: string; Output: string };\n URL: { Input: string; Output: string };\n GeoJSON: { Input: string; Output: string };\n } & Scalars;\n ObjectType: { CommunityRule: { id: string } };\n }>({\n defaultInputFieldRequiredness: true,\n plugins,\n relay: {},\n prisma: {\n client: options.prisma.client,\n // ...(options.prisma.dmmf ? { dmmf: options.prisma.dmmf as any } : {}),\n dmmf: (options.prisma.dmmf as any) || {},\n exposeDescriptions: options.prisma.exposeDescriptions ?? true,\n filterConnectionTotalCount:\n options.prisma.filterConnectionTotalCount ?? true,\n onUnusedQuery: options.prisma.onUnusedQuery ?? null,\n },\n complexity: {\n defaultComplexity: options.complexity?.defaultComplexity ?? 1,\n defaultListMultiplier: options.complexity?.defaultListMultiplier ?? 10,\n },\n tracing: {\n default: (cfg) =>\n (options.tracing?.enableByDefault ?? true) ? isRootField(cfg) : false,\n wrap: (resolver, _opts, cfg) =>\n wrapResolver(resolver, (_err, dur) => {\n options.tracing?.onResolved?.(cfg.parentType, cfg.name, dur);\n }),\n },\n });\n\n if (debugBuilder) {\n console.log('[graphql-prisma] initializing schema builder');\n }\n\n Object.entries(ScalarTypeEnum).forEach(([name, type]) => {\n if (['ID', 'Boolean'].includes(name)) {\n return;\n }\n if (typeof type !== 'function') {\n throw new Error(\n `ScalarTypeEnum entry \"${name}\" must be a function but received ${typeof type}`\n );\n }\n if (debugBuilder) {\n console.log(`[graphql-prisma] registering scalar ${name}`);\n }\n builder.addScalarType(name as any, type());\n });\n builder.addScalarType('GeoJSON', GeoJSONResolver);\n\n builder.queryType({\n fields: (t) => ({}),\n });\n\n // Mutation Type (reduced, moved fields into modules)\n builder.mutationType({\n fields: (t) => ({}),\n });\n\n if (debugBuilder) {\n console.log('[graphql-prisma] schema builder ready');\n }\n\n return builder;\n}\n\n// export async function loadDmmfFromClient(\n// client: any\n// ): Promise<PrismaDMMF.Document> {\n// const dmmf: PrismaDMMF.Document | undefined = (client as any)?._dmmf;\n// if (dmmf) return dmmf;\n// if (typeof (client as any).$extends === 'function') {\n// const ext = await (client as any).$extends({});\n// if (ext && ext._dmmf) return ext._dmmf as PrismaDMMF.Document;\n// }\n// throw new Error('Unable to load Prisma DMMF from client');\n// }\n\n// export type PrismaSchemaBuilder<\n// C extends object,\n// PT extends {} | undefined,\n// > = PothosSchemaTypes.SchemaBuilder<\n// PothosSchemaTypes.ExtendDefaultTypes<{\n// PrismaTypes: PT;\n// Context: C;\n// Scalars: {\n// JSON: { Input: unknown; Output: unknown };\n// Date: { Input: Date; Output: Date };\n// };\n// }>\n// >;\n\n// export type PrismaSchemaBuilder<C, PT> = InstanceType<typeof SchemaBuilder><{\n// PrismaTypes: PT;\n// Context: C;\n// Scalars: {\n// JSON: { Input: unknown; Output: unknown };\n// Date: { Input: Date; Output: Date };\n// };\n// }>;\n\n// export function createTypedPrismaBuilder<PT extends {}>() {\n// return function create<C extends object>(options: PrismaBuilderOptions<C>) {\n// return createPrismaSchemaBuilder<C, PT>(options);\n// };\n// }\n\n// Tracing helper that integrates with a logger-like object\nexport interface LoggerLike {\n info: (msg: string, meta?: unknown) => void;\n}\nexport function createLoggerTracing(logger: LoggerLike, opLabel = 'gql.field') {\n return {\n enableByDefault: true,\n onResolved: (\n parentType: string,\n fieldName: string,\n durationMs: number,\n ...others: any[]\n ) => {\n // logger.info(opLabel, { parentType, fieldName, durationMs, others });\n },\n } as PrismaBuilderOptions['tracing'];\n}\n"],"mappings":"qWAwCA,SAAgB,EAKd,EAA+B,CAC/B,IAAM,EACJ,QAAQ,IAAI,qCAAuC,OAW/C,EAAU,IAAI,EAcjB,CACD,8BAA+B,GAC/B,QAzBc,CACd,EACA,EACA,EACA,EACA,EACD,CAoBC,MAAO,EAAE,CACT,OAAQ,CACN,OAAQ,EAAQ,OAAO,OAEvB,KAAO,EAAQ,OAAO,MAAgB,EAAE,CACxC,mBAAoB,EAAQ,OAAO,oBAAsB,GACzD,2BACE,EAAQ,OAAO,4BAA8B,GAC/C,cAAe,EAAQ,OAAO,eAAiB,KAChD,CACD,WAAY,CACV,kBAAmB,EAAQ,YAAY,mBAAqB,EAC5D,sBAAuB,EAAQ,YAAY,uBAAyB,GACrE,CACD,QAAS,CACP,QAAU,GACP,EAAQ,SAAS,iBAAmB,GAAQ,EAAY,EAAI,CAAG,GAClE,MAAO,EAAU,EAAO,IACtB,EAAa,GAAW,EAAM,IAAQ,CACpC,EAAQ,SAAS,aAAa,EAAI,WAAY,EAAI,KAAM,EAAI,EAC5D,CACL,CACF,CAAC,CAmCF,OAjCI,GACF,QAAQ,IAAI,+CAA+C,CAG7D,OAAO,QAAQ,EAAe,CAAC,SAAS,CAAC,EAAM,KAAU,CACnD,KAAC,KAAM,UAAU,CAAC,SAAS,EAAK,CAGpC,IAAI,OAAO,GAAS,WAClB,MAAU,MACR,yBAAyB,EAAK,oCAAoC,OAAO,IAC1E,CAEC,GACF,QAAQ,IAAI,uCAAuC,IAAO,CAE5D,EAAQ,cAAc,EAAa,GAAM,CAAC,GAC1C,CACF,EAAQ,cAAc,UAAW,EAAgB,CAEjD,EAAQ,UAAU,CAChB,OAAS,IAAO,EAAE,EACnB,CAAC,CAGF,EAAQ,aAAa,CACnB,OAAS,IAAO,EAAE,EACnB,CAAC,CAEE,GACF,QAAQ,IAAI,wCAAwC,CAG/C,EAgDT,SAAgB,EAAoB,EAAoB,EAAU,YAAa,CAC7E,MAAO,CACL,gBAAiB,GACjB,YACE,EACA,EACA,EACA,GAAG,IACA,GAGN"}
1
+ {"version":3,"file":"index.js","names":["ScalarTypeEnum"],"sources":["../src/index.ts"],"sourcesContent":["import SchemaBuilder, { type SchemaTypes } from '@pothos/core';\nimport PrismaPlugin, { type PrismaClient } from '@pothos/plugin-prisma';\nimport ComplexityPlugin from '@pothos/plugin-complexity';\nimport DataloaderPlugin from '@pothos/plugin-dataloader';\nimport RelayPlugin from '@pothos/plugin-relay';\nimport TracingPlugin, {\n isRootField,\n wrapResolver,\n} from '@pothos/plugin-tracing';\nimport '@pothos/plugin-prisma';\nimport '@pothos/plugin-relay';\nimport '@pothos/plugin-complexity';\nimport { GeoJSONResolver } from 'graphql-scalars';\nimport { ScalarTypeEnum } from '@lssm/lib.schema';\n\nexport interface PrismaBuilderOptions {\n complexity?: {\n defaultComplexity?: number;\n defaultListMultiplier?: number;\n };\n tracing?: {\n enableByDefault?: boolean;\n onResolved?: (\n parentType: string,\n fieldName: string,\n durationMs: number\n ) => void;\n };\n federation?: boolean;\n prisma: {\n client: PrismaClient;\n dmmf?: {\n datamodel: unknown;\n };\n exposeDescriptions?: boolean;\n filterConnectionTotalCount?: boolean;\n onUnusedQuery?: 'warn' | null;\n };\n}\n\nexport function createPrismaSchemaBuilder<\n C extends object,\n PT extends {} | undefined,\n Objects extends object = object,\n Scalars extends object = object,\n>(options: PrismaBuilderOptions) {\n const debugBuilder =\n process.env.CONTRACTSPEC_DEBUG_GRAPHQL_BUILDER === 'true';\n // const plugins: (keyof PothosSchemaTypes.Plugins<SchemaTypes>)[] = [\n const plugins = [\n RelayPlugin,\n ComplexityPlugin,\n TracingPlugin,\n DataloaderPlugin,\n PrismaPlugin,\n ] satisfies (keyof PothosSchemaTypes.Plugins<SchemaTypes>)[];\n // if (options.federation) plugins.push(FederationPlugin);\n\n const builder = new SchemaBuilder<{\n DefaultInputFieldRequiredness: true;\n PrismaTypes: PT;\n Context: C;\n Objects: Objects;\n Scalars: {\n JSON: { Input: unknown; Output: unknown };\n Date: { Input: Date; Output: Date };\n EmailAddress: { Input: string; Output: string };\n Locale: { Input: string; Output: string };\n URL: { Input: string; Output: string };\n GeoJSON: { Input: string; Output: string };\n } & Scalars;\n ObjectType: { CommunityRule: { id: string } };\n }>({\n defaultInputFieldRequiredness: true,\n plugins,\n relay: {},\n prisma: {\n client: options.prisma.client,\n // ...(options.prisma.dmmf ? { dmmf: options.prisma.dmmf as any } : {}),\n dmmf: (options.prisma.dmmf as any) || {},\n exposeDescriptions: options.prisma.exposeDescriptions ?? true,\n filterConnectionTotalCount:\n options.prisma.filterConnectionTotalCount ?? true,\n onUnusedQuery: options.prisma.onUnusedQuery ?? null,\n },\n complexity: {\n defaultComplexity: options.complexity?.defaultComplexity ?? 1,\n defaultListMultiplier: options.complexity?.defaultListMultiplier ?? 10,\n },\n tracing: {\n default: (cfg) =>\n (options.tracing?.enableByDefault ?? true) ? isRootField(cfg) : false,\n wrap: (resolver, _opts, cfg) =>\n wrapResolver(resolver, (_err, dur) => {\n options.tracing?.onResolved?.(cfg.parentType, cfg.name, dur);\n }),\n },\n });\n\n if (debugBuilder) {\n console.log('[graphql-prisma] initializing schema builder');\n }\n\n Object.entries(ScalarTypeEnum).forEach(([name, type]) => {\n if (['ID', 'Boolean'].includes(name)) {\n return;\n }\n if (typeof type !== 'function') {\n throw new Error(\n `ScalarTypeEnum entry \"${name}\" must be a function but received ${typeof type}`\n );\n }\n if (debugBuilder) {\n console.log(`[graphql-prisma] registering scalar ${name}`);\n }\n builder.addScalarType(name as any, type());\n });\n builder.addScalarType('GeoJSON', GeoJSONResolver);\n\n builder.queryType({\n fields: (t) => ({}),\n });\n\n // Mutation Type (reduced, moved fields into modules)\n builder.mutationType({\n fields: (t) => ({}),\n });\n\n if (debugBuilder) {\n console.log('[graphql-prisma] schema builder ready');\n }\n\n return builder;\n}\n\n// export async function loadDmmfFromClient(\n// client: any\n// ): Promise<PrismaDMMF.Document> {\n// const dmmf: PrismaDMMF.Document | undefined = (client as any)?._dmmf;\n// if (dmmf) return dmmf;\n// if (typeof (client as any).$extends === 'function') {\n// const ext = await (client as any).$extends({});\n// if (ext && ext._dmmf) return ext._dmmf as PrismaDMMF.Document;\n// }\n// throw new Error('Unable to load Prisma DMMF from client');\n// }\n\n// export type PrismaSchemaBuilder<\n// C extends object,\n// PT extends {} | undefined,\n// > = PothosSchemaTypes.SchemaBuilder<\n// PothosSchemaTypes.ExtendDefaultTypes<{\n// PrismaTypes: PT;\n// Context: C;\n// Scalars: {\n// JSON: { Input: unknown; Output: unknown };\n// Date: { Input: Date; Output: Date };\n// };\n// }>\n// >;\n\n// export type PrismaSchemaBuilder<C, PT> = InstanceType<typeof SchemaBuilder><{\n// PrismaTypes: PT;\n// Context: C;\n// Scalars: {\n// JSON: { Input: unknown; Output: unknown };\n// Date: { Input: Date; Output: Date };\n// };\n// }>;\n\n// export function createTypedPrismaBuilder<PT extends {}>() {\n// return function create<C extends object>(options: PrismaBuilderOptions<C>) {\n// return createPrismaSchemaBuilder<C, PT>(options);\n// };\n// }\n\n// Tracing helper that integrates with a logger-like object\nexport interface LoggerLike {\n info: (msg: string, meta?: unknown) => void;\n}\nexport function createLoggerTracing(logger: LoggerLike, opLabel = 'gql.field') {\n return {\n enableByDefault: true,\n onResolved: (\n parentType: string,\n fieldName: string,\n durationMs: number,\n ...others: any[]\n ) => {\n // logger.info(opLabel, { parentType, fieldName, durationMs, others });\n },\n } as PrismaBuilderOptions['tracing'];\n}\n"],"mappings":";;;;;;;;;;AAwCA,SAAgB,0BAKd,SAA+B;CAC/B,MAAM,eACJ,QAAQ,IAAI,uCAAuC;CAWrD,MAAM,UAAU,IAAI,cAcjB;EACD,+BAA+B;EAC/B,SAzBc;GACd;GACA;GACA;GACA;GACA;GACD;EAoBC,OAAO,EAAE;EACT,QAAQ;GACN,QAAQ,QAAQ,OAAO;GAEvB,MAAO,QAAQ,OAAO,QAAgB,EAAE;GACxC,oBAAoB,QAAQ,OAAO,sBAAsB;GACzD,4BACE,QAAQ,OAAO,8BAA8B;GAC/C,eAAe,QAAQ,OAAO,iBAAiB;GAChD;EACD,YAAY;GACV,mBAAmB,QAAQ,YAAY,qBAAqB;GAC5D,uBAAuB,QAAQ,YAAY,yBAAyB;GACrE;EACD,SAAS;GACP,UAAU,QACP,QAAQ,SAAS,mBAAmB,OAAQ,YAAY,IAAI,GAAG;GAClE,OAAO,UAAU,OAAO,QACtB,aAAa,WAAW,MAAM,QAAQ;AACpC,YAAQ,SAAS,aAAa,IAAI,YAAY,IAAI,MAAM,IAAI;KAC5D;GACL;EACF,CAAC;AAEF,KAAI,aACF,SAAQ,IAAI,+CAA+C;AAG7D,QAAO,QAAQA,GAAe,CAAC,SAAS,CAAC,MAAM,UAAU;AACvD,MAAI,CAAC,MAAM,UAAU,CAAC,SAAS,KAAK,CAClC;AAEF,MAAI,OAAO,SAAS,WAClB,OAAM,IAAI,MACR,yBAAyB,KAAK,oCAAoC,OAAO,OAC1E;AAEH,MAAI,aACF,SAAQ,IAAI,uCAAuC,OAAO;AAE5D,UAAQ,cAAc,MAAa,MAAM,CAAC;GAC1C;AACF,SAAQ,cAAc,WAAW,gBAAgB;AAEjD,SAAQ,UAAU,EAChB,SAAS,OAAO,EAAE,GACnB,CAAC;AAGF,SAAQ,aAAa,EACnB,SAAS,OAAO,EAAE,GACnB,CAAC;AAEF,KAAI,aACF,SAAQ,IAAI,wCAAwC;AAGtD,QAAO;;AAgDT,SAAgB,oBAAoB,QAAoB,UAAU,aAAa;AAC7E,QAAO;EACL,iBAAiB;EACjB,aACE,YACA,WACA,YACA,GAAG,WACA;EAGN"}