@infineit-nestjs/core 1.0.37 → 1.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/cjs/errors/common.errors.js +1 -1
  2. package/dist/cjs/filters/prisma-exception.filter.d.ts +1 -1
  3. package/dist/cjs/filters/prisma-exception.filter.js +1 -1
  4. package/dist/cjs/generated/prisma/browser.d.ts +4 -0
  5. package/dist/cjs/generated/prisma/client.d.ts +8 -0
  6. package/dist/cjs/generated/prisma/commonInputTypes.d.ts +1 -0
  7. package/dist/cjs/generated/prisma/enums.d.ts +1 -0
  8. package/dist/cjs/generated/prisma/internal/class.d.ts +32 -0
  9. package/dist/cjs/generated/prisma/internal/prismaNamespace.d.ts +248 -0
  10. package/dist/cjs/generated/prisma/internal/prismaNamespace.js +2 -0
  11. package/dist/cjs/generated/prisma/internal/prismaNamespaceBrowser.d.ts +21 -0
  12. package/dist/cjs/generated/prisma/models.d.ts +1 -0
  13. package/dist/cjs/node_modules/@prisma/client/runtime/client.js +8 -0
  14. package/dist/cjs/node_modules/@prisma/client-runtime-utils/dist/index.js +14 -0
  15. package/dist/es/errors/common.errors.js +1 -1
  16. package/dist/es/filters/prisma-exception.filter.d.ts +1 -1
  17. package/dist/es/filters/prisma-exception.filter.js +1 -1
  18. package/dist/es/generated/prisma/browser.d.ts +4 -0
  19. package/dist/es/generated/prisma/client.d.ts +8 -0
  20. package/dist/es/generated/prisma/commonInputTypes.d.ts +1 -0
  21. package/dist/es/generated/prisma/enums.d.ts +1 -0
  22. package/dist/es/generated/prisma/internal/class.d.ts +32 -0
  23. package/dist/es/generated/prisma/internal/prismaNamespace.d.ts +248 -0
  24. package/dist/es/generated/prisma/internal/prismaNamespace.js +2 -0
  25. package/dist/es/generated/prisma/internal/prismaNamespaceBrowser.d.ts +21 -0
  26. package/dist/es/generated/prisma/models.d.ts +1 -0
  27. package/dist/es/node_modules/@prisma/client/runtime/client.js +7 -0
  28. package/dist/es/node_modules/@prisma/client-runtime-utils/dist/index.js +14 -0
  29. package/dist/types/filters/prisma-exception.filter.d.ts +1 -1
  30. package/dist/types/generated/prisma/internal/prismaNamespace.d.ts +6 -0
  31. package/package.json +3 -3
  32. package/dist/cjs/node_modules/@prisma/client/runtime/library.js +0 -14
  33. package/dist/es/node_modules/@prisma/client/runtime/library.js +0 -14
@@ -1,2 +1,2 @@
1
- "use strict";var r=require("@nestjs/common"),n=require("../node_modules/@prisma/client/runtime/library.js");exports.handleCommonErrors=function(e){if(e instanceof r.HttpException)throw e;if(e instanceof n.PrismaClientUnknownRequestError||e instanceof n.PrismaClientKnownRequestError)throw e;throw e};
1
+ "use strict";var r=require("@nestjs/common"),e=require("../generated/prisma/internal/prismaNamespace.js");exports.handleCommonErrors=function(n){if(n instanceof r.HttpException)throw n;if(n instanceof e.PrismaClientUnknownRequestError||n instanceof e.PrismaClientKnownRequestError)throw n;throw n};
2
2
  //# sourceMappingURL=common.errors.js.map
@@ -1,6 +1,6 @@
1
1
  import { ArgumentsHost } from '@nestjs/common';
2
2
  import { BaseExceptionFilter } from '@nestjs/core';
3
- import { PrismaClientKnownRequestError } from '@prisma/client/runtime/library';
3
+ import { PrismaClientKnownRequestError } from '../generated/prisma/internal/prismaNamespace';
4
4
  export declare class PrismaClientExceptionFilter extends BaseExceptionFilter {
5
5
  catch(exception: PrismaClientKnownRequestError, host: ArgumentsHost): void;
6
6
  }
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("@nestjs/common"),s=require("@nestjs/core"),r=require("../node_modules/@prisma/client/runtime/library.js");exports.PrismaClientExceptionFilter=class extends s.BaseExceptionFilter{catch(e,s){const r=s.switchToHttp().getResponse(),a=e.message.replace(/\n/g,"");let i;switch(e.code){case"P2002":i=t.HttpStatus.CONFLICT;break;case"P2000":case"P2010":i=t.HttpStatus.BAD_REQUEST;break;case"P2025":i=t.HttpStatus.NOT_FOUND;break;default:return void super.catch(e,s)}r.status(i).json({statusCode:i,message:e.meta&&e.meta.message?e.meta.message:a,error:e.meta?e.meta:{}})}},exports.PrismaClientExceptionFilter=e.__decorate([t.Catch(r.PrismaClientKnownRequestError)],exports.PrismaClientExceptionFilter);
1
+ "use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("@nestjs/common"),s=require("@nestjs/core"),a=require("../generated/prisma/internal/prismaNamespace.js");exports.PrismaClientExceptionFilter=class extends s.BaseExceptionFilter{catch(e,s){const a=s.switchToHttp().getResponse(),r=e.message.replace(/\n/g,"");let i;switch(e.code){case"P2002":i=t.HttpStatus.CONFLICT;break;case"P2000":case"P2010":i=t.HttpStatus.BAD_REQUEST;break;case"P2025":i=t.HttpStatus.NOT_FOUND;break;default:return void super.catch(e,s)}a.status(i).json({statusCode:i,message:e.meta&&e.meta.message?e.meta.message:r,error:e.meta?e.meta:{}})}},exports.PrismaClientExceptionFilter=e.__decorate([t.Catch(a.PrismaClientKnownRequestError)],exports.PrismaClientExceptionFilter);
2
2
  //# sourceMappingURL=prisma-exception.filter.js.map
@@ -0,0 +1,4 @@
1
+ import * as Prisma from './internal/prismaNamespaceBrowser';
2
+ export { Prisma };
3
+ export * as $Enums from './enums';
4
+ export * from './enums';
@@ -0,0 +1,8 @@
1
+ import * as runtime from '@prisma/client/runtime/client';
2
+ import * as $Class from './internal/class';
3
+ import * as Prisma from './internal/prismaNamespace';
4
+ export * as $Enums from './enums';
5
+ export * from './enums';
6
+ export declare const PrismaClient: $Class.PrismaClientConstructor;
7
+ export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions['omit'] = Prisma.PrismaClientOptions['omit'], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>;
8
+ export { Prisma };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,32 @@
1
+ import * as runtime from '@prisma/client/runtime/client';
2
+ import type * as Prisma from './prismaNamespace';
3
+ export type LogOptions<ClientOptions extends Prisma.PrismaClientOptions> = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never;
4
+ export interface PrismaClientConstructor {
5
+ new <Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, LogOpts extends LogOptions<Options> = LogOptions<Options>, OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends {
6
+ omit: infer U;
7
+ } ? U : Prisma.PrismaClientOptions['omit'], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs>(options: Prisma.Subset<Options, Prisma.PrismaClientOptions>): PrismaClient<LogOpts, OmitOpts, ExtArgs>;
8
+ }
9
+ export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined, in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> {
10
+ [K: symbol]: {
11
+ types: Prisma.TypeMap<ExtArgs>['other'];
12
+ };
13
+ $on<V extends LogOpts>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
14
+ $connect(): runtime.Types.Utils.JsPromise<void>;
15
+ $disconnect(): runtime.Types.Utils.JsPromise<void>;
16
+ $executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
17
+ $executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
18
+ $queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
19
+ $queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
20
+ $transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: {
21
+ isolationLevel?: Prisma.TransactionIsolationLevel;
22
+ }): runtime.Types.Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>;
23
+ $transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => runtime.Types.Utils.JsPromise<R>, options?: {
24
+ maxWait?: number;
25
+ timeout?: number;
26
+ isolationLevel?: Prisma.TransactionIsolationLevel;
27
+ }): runtime.Types.Utils.JsPromise<R>;
28
+ $extends: runtime.Types.Extensions.ExtendsHook<'extends', Prisma.TypeMapCb<OmitOpts>, ExtArgs, runtime.Types.Utils.Call<Prisma.TypeMapCb<OmitOpts>, {
29
+ extArgs: ExtArgs;
30
+ }>>;
31
+ }
32
+ export declare function getPrismaClientClass(): PrismaClientConstructor;
@@ -0,0 +1,248 @@
1
+ import * as runtime from '@prisma/client/runtime/client';
2
+ import { type PrismaClient } from './class';
3
+ export type * from '../models';
4
+ export type DMMF = typeof runtime.DMMF;
5
+ export type PrismaPromise<T> = runtime.Types.Public.PrismaPromise<T>;
6
+ export declare const PrismaClientKnownRequestError: typeof runtime.PrismaClientKnownRequestError;
7
+ export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError;
8
+ export declare const PrismaClientUnknownRequestError: typeof runtime.PrismaClientUnknownRequestError;
9
+ export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError;
10
+ export declare const PrismaClientRustPanicError: typeof runtime.PrismaClientRustPanicError;
11
+ export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError;
12
+ export declare const PrismaClientInitializationError: typeof runtime.PrismaClientInitializationError;
13
+ export type PrismaClientInitializationError = runtime.PrismaClientInitializationError;
14
+ export declare const PrismaClientValidationError: typeof runtime.PrismaClientValidationError;
15
+ export type PrismaClientValidationError = runtime.PrismaClientValidationError;
16
+ export declare const sql: typeof runtime.sqltag;
17
+ export declare const empty: runtime.Sql;
18
+ export declare const join: typeof runtime.join;
19
+ export declare const raw: typeof runtime.raw;
20
+ export declare const Sql: typeof runtime.Sql;
21
+ export type Sql = runtime.Sql;
22
+ export declare const Decimal: typeof runtime.Decimal;
23
+ export type Decimal = runtime.Decimal;
24
+ export type DecimalJsLike = runtime.DecimalJsLike;
25
+ export type Extension = runtime.Types.Extensions.UserArgs;
26
+ export declare const getExtensionContext: typeof runtime.Extensions.getExtensionContext;
27
+ export type Args<T, F extends runtime.Operation> = runtime.Types.Public.Args<T, F>;
28
+ export type Payload<T, F extends runtime.Operation = never> = runtime.Types.Public.Payload<T, F>;
29
+ export type Result<T, A, F extends runtime.Operation> = runtime.Types.Public.Result<T, A, F>;
30
+ export type Exact<A, W> = runtime.Types.Public.Exact<A, W>;
31
+ export type PrismaVersion = {
32
+ client: string;
33
+ engine: string;
34
+ };
35
+ export declare const prismaVersion: PrismaVersion;
36
+ export type Bytes = runtime.Bytes;
37
+ export type JsonObject = runtime.JsonObject;
38
+ export type JsonArray = runtime.JsonArray;
39
+ export type JsonValue = runtime.JsonValue;
40
+ export type InputJsonObject = runtime.InputJsonObject;
41
+ export type InputJsonArray = runtime.InputJsonArray;
42
+ export type InputJsonValue = runtime.InputJsonValue;
43
+ export declare const NullTypes: {
44
+ DbNull: new (secret: never) => typeof runtime.DbNull;
45
+ JsonNull: new (secret: never) => typeof runtime.JsonNull;
46
+ AnyNull: new (secret: never) => typeof runtime.AnyNull;
47
+ };
48
+ export declare const DbNull: runtime.DbNullClass;
49
+ export declare const JsonNull: runtime.JsonNullClass;
50
+ export declare const AnyNull: runtime.AnyNullClass;
51
+ type SelectAndInclude = {
52
+ select: any;
53
+ include: any;
54
+ };
55
+ type SelectAndOmit = {
56
+ select: any;
57
+ omit: any;
58
+ };
59
+ type Prisma__Pick<T, K extends keyof T> = {
60
+ [P in K]: T[P];
61
+ };
62
+ export type Enumerable<T> = T | Array<T>;
63
+ export type Subset<T, U> = {
64
+ [key in keyof T]: key extends keyof U ? T[key] : never;
65
+ };
66
+ export type SelectSubset<T, U> = {
67
+ [key in keyof T]: key extends keyof U ? T[key] : never;
68
+ } & (T extends SelectAndInclude ? 'Please either choose `select` or `include`.' : T extends SelectAndOmit ? 'Please either choose `select` or `omit`.' : {});
69
+ export type SubsetIntersection<T, U, K> = {
70
+ [key in keyof T]: key extends keyof U ? T[key] : never;
71
+ } & K;
72
+ type Without<T, U> = {
73
+ [P in Exclude<keyof T, keyof U>]?: never;
74
+ };
75
+ export type XOR<T, U> = T extends object ? U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : U : T;
76
+ type IsObject<T extends any> = T extends Array<any> ? False : T extends Date ? False : T extends Uint8Array ? False : T extends BigInt ? False : T extends object ? True : False;
77
+ export type UnEnumerate<T extends unknown> = T extends Array<infer U> ? U : T;
78
+ type __Either<O extends object, K extends Key> = Omit<O, K> & {
79
+ [P in K]: Prisma__Pick<O, P & keyof O>;
80
+ }[K];
81
+ type EitherStrict<O extends object, K extends Key> = Strict<__Either<O, K>>;
82
+ type EitherLoose<O extends object, K extends Key> = ComputeRaw<__Either<O, K>>;
83
+ type _Either<O extends object, K extends Key, strict extends Boolean> = {
84
+ 1: EitherStrict<O, K>;
85
+ 0: EitherLoose<O, K>;
86
+ }[strict];
87
+ export type Either<O extends object, K extends Key, strict extends Boolean = 1> = O extends unknown ? _Either<O, K, strict> : never;
88
+ export type Union = any;
89
+ export type PatchUndefined<O extends object, O1 extends object> = {
90
+ [K in keyof O]: O[K] extends undefined ? At<O1, K> : O[K];
91
+ } & {};
92
+ export type IntersectOf<U extends Union> = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
93
+ export type Overwrite<O extends object, O1 extends object> = {
94
+ [K in keyof O]: K extends keyof O1 ? O1[K] : O[K];
95
+ } & {};
96
+ type _Merge<U extends object> = IntersectOf<Overwrite<U, {
97
+ [K in keyof U]-?: At<U, K>;
98
+ }>>;
99
+ type Key = string | number | symbol;
100
+ type AtStrict<O extends object, K extends Key> = O[K & keyof O];
101
+ type AtLoose<O extends object, K extends Key> = O extends unknown ? AtStrict<O, K> : never;
102
+ export type At<O extends object, K extends Key, strict extends Boolean = 1> = {
103
+ 1: AtStrict<O, K>;
104
+ 0: AtLoose<O, K>;
105
+ }[strict];
106
+ export type ComputeRaw<A extends any> = A extends Function ? A : {
107
+ [K in keyof A]: A[K];
108
+ } & {};
109
+ export type OptionalFlat<O> = {
110
+ [K in keyof O]?: O[K];
111
+ } & {};
112
+ type _Record<K extends keyof any, T> = {
113
+ [P in K]: T;
114
+ };
115
+ type NoExpand<T> = T extends unknown ? T : never;
116
+ export type AtLeast<O extends object, K extends string> = NoExpand<O extends unknown ? (K extends keyof O ? {
117
+ [P in K]: O[P];
118
+ } & O : O) | ({
119
+ [P in keyof O as P extends K ? P : never]-?: O[P];
120
+ } & O) : never>;
121
+ type _Strict<U, _U = U> = U extends unknown ? U & OptionalFlat<_Record<Exclude<Keys<_U>, keyof U>, never>> : never;
122
+ export type Strict<U extends object> = ComputeRaw<_Strict<U>>;
123
+ export type Merge<U extends object> = ComputeRaw<_Merge<Strict<U>>>;
124
+ export type Boolean = True | False;
125
+ export type True = 1;
126
+ export type False = 0;
127
+ export type Not<B extends Boolean> = {
128
+ 0: 1;
129
+ 1: 0;
130
+ }[B];
131
+ export type Extends<A1 extends any, A2 extends any> = [A1] extends [never] ? 0 : A1 extends A2 ? 1 : 0;
132
+ export type Has<U extends Union, U1 extends Union> = Not<Extends<Exclude<U1, U>, U1>>;
133
+ export type Or<B1 extends Boolean, B2 extends Boolean> = {
134
+ 0: {
135
+ 0: 0;
136
+ 1: 1;
137
+ };
138
+ 1: {
139
+ 0: 1;
140
+ 1: 1;
141
+ };
142
+ }[B1][B2];
143
+ export type Keys<U extends Union> = U extends unknown ? keyof U : never;
144
+ export type GetScalarType<T, O> = O extends object ? {
145
+ [P in keyof T]: P extends keyof O ? O[P] : never;
146
+ } : never;
147
+ type FieldPaths<T, U = Omit<T, '_avg' | '_sum' | '_count' | '_min' | '_max'>> = IsObject<T> extends True ? U : T;
148
+ export type GetHavingFields<T> = {
149
+ [K in keyof T]: Or<Or<Extends<'OR', K>, Extends<'AND', K>>, Extends<'NOT', K>> extends True ? T[K] extends infer TK ? GetHavingFields<UnEnumerate<TK> extends object ? Merge<UnEnumerate<TK>> : never> : never : {} extends FieldPaths<T[K]> ? never : K;
150
+ }[keyof T];
151
+ type _TupleToUnion<T> = T extends (infer E)[] ? E : never;
152
+ type TupleToUnion<K extends readonly any[]> = _TupleToUnion<K>;
153
+ export type MaybeTupleToUnion<T> = T extends any[] ? TupleToUnion<T> : T;
154
+ export type PickEnumerable<T, K extends Enumerable<keyof T> | keyof T> = Prisma__Pick<T, MaybeTupleToUnion<K>>;
155
+ export type ExcludeUnderscoreKeys<T extends string> = T extends `_${string}` ? never : T;
156
+ export type FieldRef<Model, FieldType> = runtime.FieldRef<Model, FieldType>;
157
+ export declare const ModelName: {};
158
+ export type ModelName = (typeof ModelName)[keyof typeof ModelName];
159
+ export interface TypeMapCb<GlobalOmitOptions = {}> extends runtime.Types.Utils.Fn<{
160
+ extArgs: runtime.Types.Extensions.InternalArgs;
161
+ }, runtime.Types.Utils.Record<string, any>> {
162
+ returns: TypeMap<this['params']['extArgs'], GlobalOmitOptions>;
163
+ }
164
+ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> = {
165
+ globalOmitOptions: {
166
+ omit: GlobalOmitOptions;
167
+ };
168
+ meta: {
169
+ modelProps: never;
170
+ txIsolationLevel: TransactionIsolationLevel;
171
+ };
172
+ model: {};
173
+ } & {
174
+ other: {
175
+ payload: any;
176
+ operations: {
177
+ $executeRaw: {
178
+ args: [query: TemplateStringsArray | Sql, ...values: any[]];
179
+ result: any;
180
+ };
181
+ $executeRawUnsafe: {
182
+ args: [query: string, ...values: any[]];
183
+ result: any;
184
+ };
185
+ $queryRaw: {
186
+ args: [query: TemplateStringsArray | Sql, ...values: any[]];
187
+ result: any;
188
+ };
189
+ $queryRawUnsafe: {
190
+ args: [query: string, ...values: any[]];
191
+ result: any;
192
+ };
193
+ };
194
+ };
195
+ };
196
+ export declare const TransactionIsolationLevel: {
197
+ readonly ReadUncommitted: "ReadUncommitted";
198
+ readonly ReadCommitted: "ReadCommitted";
199
+ readonly RepeatableRead: "RepeatableRead";
200
+ readonly Serializable: "Serializable";
201
+ };
202
+ export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel];
203
+ export type BatchPayload = {
204
+ count: number;
205
+ };
206
+ export declare const defineExtension: runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs>;
207
+ export type DefaultPrismaClient = PrismaClient;
208
+ export type ErrorFormat = 'pretty' | 'colorless' | 'minimal';
209
+ export type PrismaClientOptions = ({
210
+ adapter: runtime.SqlDriverAdapterFactory;
211
+ accelerateUrl?: never;
212
+ } | {
213
+ accelerateUrl: string;
214
+ adapter?: never;
215
+ }) & {
216
+ errorFormat?: ErrorFormat;
217
+ log?: (LogLevel | LogDefinition)[];
218
+ transactionOptions?: {
219
+ maxWait?: number;
220
+ timeout?: number;
221
+ isolationLevel?: TransactionIsolationLevel;
222
+ };
223
+ omit?: GlobalOmitConfig;
224
+ comments?: runtime.SqlCommenterPlugin[];
225
+ };
226
+ export type GlobalOmitConfig = {};
227
+ export type LogLevel = 'info' | 'query' | 'warn' | 'error';
228
+ export type LogDefinition = {
229
+ level: LogLevel;
230
+ emit: 'stdout' | 'event';
231
+ };
232
+ export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
233
+ export type GetLogType<T> = CheckIsLogLevel<T extends LogDefinition ? T['level'] : T>;
234
+ export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition> ? GetLogType<T[number]> : never;
235
+ export type QueryEvent = {
236
+ timestamp: Date;
237
+ query: string;
238
+ params: string;
239
+ duration: number;
240
+ target: string;
241
+ };
242
+ export type LogEvent = {
243
+ timestamp: Date;
244
+ message: string;
245
+ target: string;
246
+ };
247
+ export type PrismaAction = 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'executeRaw' | 'queryRaw' | 'aggregate' | 'count' | 'runCommandRaw' | 'findRaw' | 'groupBy';
248
+ export type TransactionClient = Omit<DefaultPrismaClient, runtime.ITXClientDenyList>;
@@ -0,0 +1,2 @@
1
+ "use strict";var e=require("../../../node_modules/@prisma/client/runtime/client.js"),t=require("../../../node_modules/@prisma/client-runtime-utils/dist/index.js");const n=t.PrismaClientKnownRequestError,i=t.PrismaClientUnknownRequestError;e.Extensions.getExtensionContext,e.makeStrictEnum({ReadUncommitted:"ReadUncommitted",ReadCommitted:"ReadCommitted",RepeatableRead:"RepeatableRead",Serializable:"Serializable"}),e.Extensions.defineExtension,exports.PrismaClientKnownRequestError=n,exports.PrismaClientUnknownRequestError=i;
2
+ //# sourceMappingURL=prismaNamespace.js.map
@@ -0,0 +1,21 @@
1
+ import * as runtime from '@prisma/client/runtime/index-browser';
2
+ export type * from '../models';
3
+ export type * from './prismaNamespace';
4
+ export declare const Decimal: typeof runtime.Decimal;
5
+ export declare const NullTypes: {
6
+ DbNull: new (secret: never) => typeof runtime.DbNull;
7
+ JsonNull: new (secret: never) => typeof runtime.JsonNull;
8
+ AnyNull: new (secret: never) => typeof runtime.AnyNull;
9
+ };
10
+ export declare const DbNull: import("@prisma/client-runtime-utils").DbNullClass;
11
+ export declare const JsonNull: import("@prisma/client-runtime-utils").JsonNullClass;
12
+ export declare const AnyNull: import("@prisma/client-runtime-utils").AnyNullClass;
13
+ export declare const ModelName: {};
14
+ export type ModelName = (typeof ModelName)[keyof typeof ModelName];
15
+ export declare const TransactionIsolationLevel: {
16
+ readonly ReadUncommitted: "ReadUncommitted";
17
+ readonly ReadCommitted: "ReadCommitted";
18
+ readonly RepeatableRead: "RepeatableRead";
19
+ readonly Serializable: "Serializable";
20
+ };
21
+ export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel];
@@ -0,0 +1 @@
1
+ export type * from './commonInputTypes';
@@ -0,0 +1,8 @@
1
+ "use strict";var e=require("node:module"),t=require("node:path"),r=require("node:process"),n=require("node:url"),o=require("../../client-runtime-utils/dist/index.js");require("node:fs"),require("node:async_hooks"),require("node:events");var i=require("node:os");require("node:crypto");var a="undefined"!=typeof document?document.currentScript:null;function s(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var u=s(e),l=s(t),c=s(r);const d=s(n).fileURLToPath("undefined"==typeof document?require("url").pathToFileURL(__filename).href:a&&"SCRIPT"===a.tagName.toUpperCase()&&a.src||new URL("node_modules/@prisma/client/runtime/client.js",document.baseURI).href);globalThis.__dirname=l.dirname(d);const f=u.createRequire("undefined"==typeof document?require("url").pathToFileURL(__filename).href:a&&"SCRIPT"===a.tagName.toUpperCase()&&a.src||new URL("node_modules/@prisma/client/runtime/client.js",document.baseURI).href);var p,h=Object.create,g=Object.defineProperty,y=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,m=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,E=(p=function(e){if(typeof f<"u")return f.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')},typeof f<"u"?f:typeof Proxy<"u"?new Proxy(p,{get:(e,t)=>(typeof f<"u"?f:e)[t]}):p),v=(e,t)=>()=>(e&&(t=e(e=0)),t),x=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_=(e,t)=>{for(var r in t)g(e,r,{get:t[r],enumerable:!0})},A=(e,t,r)=>(r=null!=e?h(m(e)):{},((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of b(t))!w.call(e,o)&&o!==r&&g(e,o,{get:()=>t[o],enumerable:!(n=y(t,o))||n.enumerable});return e})(!t&&e&&e.__esModule?r:g(r,"default",{value:e,enumerable:!0}),e)),k=x((e,t)=>{t.exports={name:"@prisma/engines-version",version:"7.1.0-6.ab635e6b9d606fa5c8fb8b1a7f909c3c3c1c98ba",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek <suchanek@prisma.io>",prisma:{enginesVersion:"ab635e6b9d606fa5c8fb8b1a7f909c3c3c1c98ba"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.76",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}}),L=x(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.enginesVersion=void 0,e.enginesVersion=k().prisma.enginesVersion}),F=x((e,t)=>{t.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((e,t)=>Math.min(e,t.length),1/0):0}}),O=x((e,t)=>{t.exports=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},"string"!=typeof e)throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if("string"!=typeof r.indent)throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(0===t)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}}),S=x((e,t)=>{t.exports=(e={})=>{let t;if(e.repoUrl)t=e.repoUrl;else{if(!e.user||!e.repo)throw new Error("You need to specify either the `repoUrl` option or both the `user` and `repo` options");t=`https://github.com/${e.user}/${e.repo}`}let r=new URL(`${t}/issues/new`),n=["body","title","labels","template","milestone","assignee","projects"];for(let t of n){let n=e[t];if(void 0!==n){if("labels"===t||"projects"===t){if(!Array.isArray(n))throw new TypeError(`The \`${t}\` option should be an array`);n=n.join(",")}r.searchParams.set(t,n)}}return r.toString()},t.exports.default=t.exports}),C=x((e,t)=>{t.exports=function(){function e(e,t,r,n,o){return e<t||r<t?e>r?r+1:e+1:n===o?t:t+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var o=t.length,i=r.length;o>0&&t.charCodeAt(o-1)===r.charCodeAt(i-1);)o--,i--;for(var a=0;a<o&&t.charCodeAt(a)===r.charCodeAt(a);)a++;if(i-=a,0===(o-=a)||i<3)return i;var s,u,l,c,d,f,p,h,g,y,b,m,w=0,E=[];for(s=0;s<o;s++)E.push(s+1),E.push(t.charCodeAt(a+s));for(var v=E.length-1;w<i-3;)for(g=r.charCodeAt(a+(u=w)),y=r.charCodeAt(a+(l=w+1)),b=r.charCodeAt(a+(c=w+2)),m=r.charCodeAt(a+(d=w+3)),f=w+=4,s=0;s<v;s+=2)u=e(p=E[s],u,l,g,h=E[s+1]),l=e(u,l,c,y,h),c=e(l,c,d,b,h),f=e(c,d,f,m,h),E[s]=f,d=c,c=l,l=u,u=p;for(;w<i;)for(g=r.charCodeAt(a+(u=w)),f=++w,s=0;s<v;s+=2)p=E[s],E[s]=f=e(p,u,f,g,E[s+1]),u=p;return f}}()}),I=v(()=>{}),R=v(()=>{}),B=x(e=>{function t(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function r(e,...t){if(!function(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}Object.defineProperty(e,"__esModule",{value:!0}),e.anumber=t,e.abytes=r,e.ahash=function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");t(e.outputLen),t(e.blockLen)},e.aexists=function(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")},e.aoutput=function(e,t){r(e);let n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}}),T=x(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.add5L=e.add5H=e.add4H=e.add4L=e.add3H=e.add3L=e.rotlBL=e.rotlBH=e.rotlSL=e.rotlSH=e.rotr32L=e.rotr32H=e.rotrBL=e.rotrBH=e.rotrSL=e.rotrSH=e.shrSL=e.shrSH=e.toBig=void 0,e.fromBig=n,e.split=o,e.add=m;var t=BigInt(2**32-1),r=BigInt(32);function n(e,n=!1){return n?{h:Number(e&t),l:Number(e>>r&t)}:{h:0|Number(e>>r&t),l:0|Number(e&t)}}function o(e,t=!1){let r=new Uint32Array(e.length),o=new Uint32Array(e.length);for(let i=0;i<e.length;i++){let{h:a,l:s}=n(e[i],t);[r[i],o[i]]=[a,s]}return[r,o]}var i=(e,t)=>BigInt(e>>>0)<<r|BigInt(t>>>0);e.toBig=i;var a=(e,t,r)=>e>>>r;e.shrSH=a;var s=(e,t,r)=>e<<32-r|t>>>r;e.shrSL=s;var u=(e,t,r)=>e>>>r|t<<32-r;e.rotrSH=u;var l=(e,t,r)=>e<<32-r|t>>>r;e.rotrSL=l;var c=(e,t,r)=>e<<64-r|t>>>r-32;e.rotrBH=c;var d=(e,t,r)=>e>>>r-32|t<<64-r;e.rotrBL=d;var f=(e,t)=>t;e.rotr32H=f;var p=(e,t)=>e;e.rotr32L=p;var h=(e,t,r)=>e<<r|t>>>32-r;e.rotlSH=h;var g=(e,t,r)=>t<<r|e>>>32-r;e.rotlSL=g;var y=(e,t,r)=>t<<r-32|e>>>64-r;e.rotlBH=y;var b=(e,t,r)=>e<<r-32|t>>>64-r;function m(e,t,r,n){let o=(t>>>0)+(n>>>0);return{h:e+r+(o/2**32|0)|0,l:0|o}}e.rotlBL=b;var w=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);e.add3L=w;var E=(e,t,r,n)=>t+r+n+(e/2**32|0)|0;e.add3H=E;var v=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);e.add4L=v;var x=(e,t,r,n,o)=>t+r+n+o+(e/2**32|0)|0;e.add4H=x;var _=(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0);e.add5L=_;var A=(e,t,r,n,o,i)=>t+r+n+o+i+(e/2**32|0)|0;e.add5H=A;var k={fromBig:n,split:o,toBig:i,shrSH:a,shrSL:s,rotrSH:u,rotrSL:l,rotrBH:c,rotrBL:d,rotr32H:f,rotr32L:p,rotlSH:h,rotlSL:g,rotlBH:y,rotlBL:b,add:m,add3L:w,add3H:E,add4L:v,add4H:x,add5H:A,add5L:_};e.default=k}),P=x(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.crypto=void 0;var t=E("node:crypto");e.crypto=t&&"object"==typeof t&&"webcrypto"in t?t.webcrypto:t&&"object"==typeof t&&"randomBytes"in t?t:void 0}),U=x(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Hash=e.nextTick=e.byteSwapIfBE=e.isLE=void 0,e.isBytes=function(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name},e.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},e.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},e.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},e.rotr=function(e,t){return e<<32-t|e>>>t},e.rotl=function(e,t){return e<<t|e>>>32-t>>>0},e.byteSwap=n,e.byteSwap32=function(e){for(let t=0;t<e.length;t++)e[t]=n(e[t])},e.bytesToHex=function(e){(0,r.abytes)(e);let t="";for(let r=0;r<e.length;r++)t+=o[e[r]];return t},e.hexToBytes=function(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);let t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,o=0;t<r;t++,o+=2){let r=a(e.charCodeAt(o)),i=a(e.charCodeAt(o+1));if(void 0===r||void 0===i){let t=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+o)}n[t]=16*r+i}return n},e.asyncLoop=async function(t,r,n){let o=Date.now();for(let i=0;i<t;i++){n(i);let t=Date.now()-o;t>=0&&t<r||(await(0,e.nextTick)(),o+=t)}},e.utf8ToBytes=s,e.toBytes=u,e.concatBytes=function(...e){let t=0;for(let n=0;n<e.length;n++){let o=e[n];(0,r.abytes)(o),t+=o.length}let n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){let o=e[t];n.set(o,r),r+=o.length}return n},e.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!=={}.toString.call(t))throw new Error("Options should be object or undefined");return Object.assign(e,t)},e.wrapConstructor=function(e){let t=t=>e().update(u(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},e.wrapConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(u(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},e.wrapXOFConstructorWithOpts=function(e){let t=(t,r)=>e(r).update(u(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},e.randomBytes=function(e=32){if(t.crypto&&"function"==typeof t.crypto.getRandomValues)return t.crypto.getRandomValues(new Uint8Array(e));if(t.crypto&&"function"==typeof t.crypto.randomBytes)return t.crypto.randomBytes(e);throw new Error("crypto.getRandomValues must be defined")};var t=P(),r=B();function n(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}e.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],e.byteSwapIfBE=e.isLE?e=>e:e=>n(e);var o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));var i={_0:48,_9:57,A:65,F:70,a:97,f:102};function a(e){return e>=i._0&&e<=i._9?e-i._0:e>=i.A&&e<=i.F?e-(i.A-10):e>=i.a&&e<=i.f?e-(i.a-10):void 0}function s(e){if("string"!=typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}function u(e){return"string"==typeof e&&(e=s(e)),(0,r.abytes)(e),e}e.nextTick=async()=>{};e.Hash=class{clone(){return this._cloneInto()}}}),j=x(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.shake256=e.shake128=e.keccak_512=e.keccak_384=e.keccak_256=e.keccak_224=e.sha3_512=e.sha3_384=e.sha3_256=e.sha3_224=e.Keccak=void 0,e.keccakP=b;var t=B(),r=T(),n=U(),o=[],i=[],a=[],s=BigInt(0),u=BigInt(1),l=BigInt(2),c=BigInt(7),d=BigInt(256),f=BigInt(113);for(let e=0,t=u,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],o.push(2*(5*n+r)),i.push((e+1)*(e+2)/2%64);let p=s;for(let e=0;e<7;e++)t=(t<<u^(t>>c)*f)%d,t&l&&(p^=u<<(u<<BigInt(e))-u);a.push(p)}var[p,h]=(0,r.split)(a,!0),g=(e,t,n)=>n>32?(0,r.rotlBH)(e,t,n):(0,r.rotlSH)(e,t,n),y=(e,t,n)=>n>32?(0,r.rotlBL)(e,t,n):(0,r.rotlSL)(e,t,n);function b(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)r[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,o=(t+2)%10,i=r[o],a=r[o+1],s=g(i,a,1)^r[n],u=y(i,a,1)^r[n+1];for(let r=0;r<50;r+=10)e[t+r]^=s,e[t+r+1]^=u}let t=e[2],a=e[3];for(let r=0;r<24;r++){let n=i[r],s=g(t,a,n),u=y(t,a,n),l=o[r];t=e[l],a=e[l+1],e[l]=s,e[l+1]=u}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)r[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~r[(n+2)%10]&r[(n+4)%10]}e[0]^=p[n],e[1]^=h[n]}r.fill(0)}var m=class e extends n.Hash{constructor(e,r,o,i=!1,a=24){if(super(),this.blockLen=e,this.suffix=r,this.outputLen=o,this.enableXOF=i,this.rounds=a,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,t.anumber)(o),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,n.u32)(this.state)}keccak(){n.isLE||(0,n.byteSwap32)(this.state32),b(this.state32,this.rounds),n.isLE||(0,n.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(e){(0,t.aexists)(this);let{blockLen:r,state:o}=this,i=(e=(0,n.toBytes)(e)).length;for(let t=0;t<i;){let n=Math.min(r-this.pos,i-t);for(let r=0;r<n;r++)o[this.pos++]^=e[t++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:n}=this;e[r]^=t,!!(128&t)&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,t.aexists)(this,!1),(0,t.abytes)(e),this.finish();let r=this.state,{blockLen:n}=this;for(let t=0,o=e.length;t<o;){this.posOut>=n&&this.keccak();let i=Math.min(n-this.posOut,o-t);e.set(r.subarray(this.posOut,this.posOut+i),t),this.posOut+=i,t+=i}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,t.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,t.aoutput)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){let{blockLen:r,suffix:n,outputLen:o,rounds:i,enableXOF:a}=this;return t||(t=new e(r,n,o,a,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=n,t.outputLen=o,t.enableXOF=a,t.destroyed=this.destroyed,t}};e.Keccak=m;var w=(e,t,r)=>(0,n.wrapConstructor)(()=>new m(t,e,r));e.sha3_224=w(6,144,28),e.sha3_256=w(6,136,32),e.sha3_384=w(6,104,48),e.sha3_512=w(6,72,64),e.keccak_224=w(1,144,28),e.keccak_256=w(1,136,32),e.keccak_384=w(1,104,48),e.keccak_512=w(1,72,64);var E=(e,t,r)=>(0,n.wrapXOFConstructorWithOpts)((n={})=>new m(t,e,void 0===n.dkLen?r:n.dkLen,!0));e.shake128=E(31,168,16),e.shake256=E(31,136,32)}),M=x((e,t)=>{var{sha3_512:r}=j(),n=(e=4,t=Math.random)=>{let r="";for(;r.length<e;)r+=Math.floor(36*t()).toString(36);return r};function o(e){let t=0n;for(let r of e.values()){t=(t<<8n)+BigInt(r)}return t}var i=(e="")=>o(r(e)).toString(36).slice(1),a=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),s=({globalObj:e=(typeof global<"u"?global:typeof window<"u"?window:{}),random:t=Math.random}={})=>{let r=Object.keys(e).toString(),o=r.length?r+n(32,t):n(32,t);return i(o).substring(0,32)},u=e=>()=>e++,l=({random:e=Math.random,counter:t=u(Math.floor(476782367*e())),length:r=24,fingerprint:o=s({random:e})}={})=>function(){let s=(e=>a[Math.floor(e()*a.length)])(e),u=Date.now().toString(36),l=t().toString(36),c=n(r,e);return`${s+i(`${u+c+l+o}`).substring(1,r)}`},c=l();t.exports.getConstants=()=>({defaultLength:24,bigLength:32}),t.exports.init=l,t.exports.createId=c,t.exports.bufToBigInt=o,t.exports.createCounter=u,t.exports.createFingerprint=s,t.exports.isCuid=(e,{minLength:t=2,maxLength:r=32}={})=>{let n=e.length,o=/^[0-9a-z]+$/;try{if("string"==typeof e&&n>=t&&n<=r&&o.test(e))return!0}finally{}return!1}}),$=x((e,t)=>{var{createId:r,init:n,getConstants:o,isCuid:i}=M();t.exports.createId=r,t.exports.init=n,t.exports.getConstants=o,t.exports.isCuid=i}),D={};function N(e){return"function"==typeof e?e:t=>t.$extends(e)}function H(e){return e}_(D,{defineExtension:()=>N,getExtensionContext:()=>H});var q={};function V(...e){return e=>e}_(q,{validator:()=>V});var G={};_(G,{$:()=>Y,bgBlack:()=>be,bgBlue:()=>ve,bgCyan:()=>_e,bgGreen:()=>we,bgMagenta:()=>xe,bgRed:()=>me,bgWhite:()=>Ae,bgYellow:()=>Ee,black:()=>se,blue:()=>de,bold:()=>ee,cyan:()=>pe,dim:()=>te,gray:()=>ge,green:()=>le,grey:()=>ye,hidden:()=>ie,inverse:()=>oe,italic:()=>re,magenta:()=>fe,red:()=>ue,reset:()=>Q,strikethrough:()=>ae,underline:()=>ne,white:()=>he,yellow:()=>ce});var z,Z,X,W,K=!0;typeof c<"u"&&(({FORCE_COLOR:z,NODE_DISABLE_COLORS:Z,NO_COLOR:X,TERM:W}=c.env||{}),K=c.stdout&&c.stdout.isTTY);var Y={enabled:!Z&&null==X&&"dumb"!==W&&(null!=z&&"0"!==z||K)};function J(e,t){let r=new RegExp(`\\x1b\\[${t}m`,"g"),n=`[${e}m`,o=`[${t}m`;return function(e){return Y.enabled&&null!=e?n+(~(""+e).indexOf(o)?e.replace(r,o+n):e)+o:e}}var Q=J(0,0),ee=J(1,22),te=J(2,22),re=J(3,23),ne=J(4,24),oe=J(7,27),ie=J(8,28),ae=J(9,29),se=J(30,39),ue=J(31,39),le=J(32,39),ce=J(33,39),de=J(34,39),fe=J(35,39),pe=J(36,39),he=J(37,39),ge=J(90,39),ye=J(90,39),be=J(40,49),me=J(41,49),we=J(42,49),Ee=J(43,49),ve=J(44,49),xe=J(45,49),_e=J(46,49),Ae=J(47,49),ke=["green","yellow","blue","magenta","cyan","red"],Le=[],Fe=Date.now(),Oe=0,Se=typeof c<"u"?c.env:{};globalThis.DEBUG??=Se.DEBUG??"",globalThis.DEBUG_COLORS??=!Se.DEBUG_COLORS||"true"===Se.DEBUG_COLORS;var Ce={enable(e){"string"==typeof e&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let t=globalThis.DEBUG.split(",").map(e=>e.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),r=t.some(t=>""!==t&&"-"!==t[0]&&e.match(RegExp(t.split("*").join(".*")+"$"))),n=t.some(t=>""!==t&&"-"===t[0]&&e.match(RegExp(t.slice(1).split("*").join(".*")+"$")));return r&&!n},log:(...e)=>{let[t,r,...n]=e;(console.warn??console.log)(`${t} ${r}`,...n)},formatters:{}};var Ie=new Proxy(function(e){let t={color:ke[Oe++%ke.length],enabled:Ce.enabled(e),namespace:e,log:Ce.log,extend:()=>{}};return new Proxy((...e)=>{let{enabled:r,namespace:n,color:o,log:i}=t;if(0!==e.length&&Le.push([n,...e]),Le.length>100&&Le.shift(),Ce.enabled(n)||r){let t=e.map(e=>"string"==typeof e?e:function(e,t=2){let r=new Set;return JSON.stringify(e,(e,t)=>{if("object"==typeof t&&null!==t){if(r.has(t))return"[Circular *]";r.add(t)}else if("bigint"==typeof t)return t.toString();return t},t)}(e)),r=`+${Date.now()-Fe}ms`;Fe=Date.now(),globalThis.DEBUG_COLORS?i(G[o](ee(n)),...t,G[o](r)):i(n,...t,r)}},{get:(e,r)=>t[r],set:(e,r,n)=>t[r]=n})},{get:(e,t)=>Ce[t],set:(e,t,r)=>Ce[t]=r});A(F(),1);_({},{error:()=>je,info:()=>Ue,log:()=>Te,query:()=>Me,should:()=>Be,tags:()=>Re,warn:()=>Pe});var Re={error:ue("prisma:error"),warn:ce("prisma:warn"),info:pe("prisma:info"),query:de("prisma:query")},Be={warn:()=>!c.env.PRISMA_DISABLE_WARNINGS};function Te(...e){console.log(...e)}function Pe(e,...t){Be.warn()&&console.warn(`${Re.warn} ${e}`,...t)}function Ue(e,...t){console.info(`${Re.info} ${e}`,...t)}function je(e,...t){console.error(`${Re.error} ${e}`,...t)}function Me(e,...t){console.log(`${Re.query} ${e}`,...t)}function $e(e,t){Object.defineProperty(e,"name",{value:t,configurable:!0})}!function({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");new RegExp(t,e?void 0:"g")}();var De={};function Ne(e){return{name:e.name,data:e.values.map(e=>({key:e.name,value:e.dbName??e.name}))}}function He(e){return{name:e.name,data:e.values.map(e=>({key:e,value:e}))}}_(De,{ModelAction:()=>Ve,datamodelEnumToSchemaEnum:()=>Ne,datamodelSchemaEnumToSchemaEnum:()=>He});var qe,Ve=((qe=Ve||{}).findUnique="findUnique",qe.findUniqueOrThrow="findUniqueOrThrow",qe.findFirst="findFirst",qe.findFirstOrThrow="findFirstOrThrow",qe.findMany="findMany",qe.create="create",qe.createMany="createMany",qe.createManyAndReturn="createManyAndReturn",qe.update="update",qe.updateMany="updateMany",qe.updateManyAndReturn="updateManyAndReturn",qe.upsert="upsert",qe.delete="delete",qe.deleteMany="deleteMany",qe.groupBy="groupBy",qe.count="count",qe.aggregate="aggregate",qe.findRaw="findRaw",qe.aggregateRaw="aggregateRaw",qe);A(O());var Ge={keyword:pe,entity:pe,value:e=>ee(de(e)),punctuation:de,directive:pe,function:pe,variable:e=>ee(de(e)),string:e=>ee(le(e)),boolean:ce,number:pe,comment:ge},ze=e=>e,Ze={},Xe=0,We={manual:Ze.Prism&&Ze.Prism.manual,disableWorkerMessageHandler:Ze.Prism&&Ze.Prism.disableWorkerMessageHandler,util:{encode:function(e){if(e instanceof Ke){let t=e;return new Ke(t.type,We.util.encode(t.content),t.alias)}return Array.isArray(e)?e.map(We.util.encode):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++Xe}),e.__id},clone:function e(t,r){let n,o,i=We.util.type(t);switch(r=r||{},i){case"Object":if(o=We.util.objId(t),r[o])return r[o];n={},r[o]=n;for(let o in t)t.hasOwnProperty(o)&&(n[o]=e(t[o],r));return n;case"Array":return o=We.util.objId(t),r[o]?r[o]:(n=[],r[o]=n,t.forEach(function(t,o){n[o]=e(t,r)}),n);default:return t}}},languages:{extend:function(e,t){let r=We.util.clone(We.languages[e]);for(let e in t)r[e]=t[e];return r},insertBefore:function(e,t,r,n){let o=(n=n||We.languages)[e],i={};for(let e in o)if(o.hasOwnProperty(e)){if(e==t)for(let e in r)r.hasOwnProperty(e)&&(i[e]=r[e]);r.hasOwnProperty(e)||(i[e]=o[e])}let a=n[e];return n[e]=i,We.languages.DFS(We.languages,function(t,r){r===a&&t!=e&&(this[t]=i)}),i},DFS:function e(t,r,n,o){o=o||{};let i=We.util.objId;for(let a in t)if(t.hasOwnProperty(a)){r.call(t,a,t[a],n||a);let s=t[a],u=We.util.type(s);"Object"!==u||o[i(s)]?"Array"===u&&!o[i(s)]&&(o[i(s)]=!0,e(s,r,a,o)):(o[i(s)]=!0,e(s,r,null,o))}}}};function Ke(e,t,r,n,o){this.type=e,this.content=t,this.alias=r,this.length=0|(n||"").length,this.greedy=!!o}We.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,punctuation:/[{}[\];(),.:]/},We.languages.javascript=We.languages.extend("clike",{"class-name":[We.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.])\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/-[-=]?|\+[+=]?|!=?=?|<<?=?|>>?>?=?|=(?:==?|>)?|&[&=]?|\|[|=]?|\*\*?=?|\/=?|~|\^=?|%=?|\?|\.{3}/}),We.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,We.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=\s*($|[\r\n,.;})\]]))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:We.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:We.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:We.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:We.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),We.languages.markup&&We.languages.markup.tag.addInlined("script","javascript"),We.languages.js=We.languages.javascript,We.languages.typescript=We.languages.extend("javascript",{keyword:/\b(?:abstract|as|async|await|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|is|keyof|let|module|namespace|new|null|of|package|private|protected|public|readonly|return|require|set|static|super|switch|this|throw|try|type|typeof|var|void|while|with|yield)\b/,builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),We.languages.ts=We.languages.typescript,Ke.stringify=function(e,t){return"string"==typeof e?e:Array.isArray(e)?e.map(function(e){return Ke.stringify(e,t)}).join(""):function(e){return Ge[e]||ze}(e.type)(e.content)},A(C()),R(),I();var Ye,Je=Symbol(),Qe=new class{constructor(e){if(e!==Je)throw new Error("Skip instance can not be constructed directly")}ifUndefined(e){return void 0===e?Qe:e}}(Je);function et(e,t){var r="000000000"+e;return r.substr(r.length-t)}!function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"}(Ye||(Ye={}));et(c.pid.toString(36),2);var tt,rt=function(){try{return i.hostname()}catch{return c.env._CLUSTER_NETWORK_NAME_||c.env.COMPUTERNAME||"hostname"}}(),nt=rt.length;et(rt.split("").reduce(function(e,t){return+e+t.charCodeAt(0)},+nt+36).toString(36),2),A($()),function(e){e.Base32IncorrectEncoding="B32_ENC_INVALID",e.DecodeTimeInvalidCharacter="DEC_TIME_CHAR",e.DecodeTimeValueMalformed="DEC_TIME_MALFORMED",e.EncodeTimeNegative="ENC_TIME_NEG",e.EncodeTimeSizeExceeded="ENC_TIME_SIZE_EXCEED",e.EncodeTimeValueMalformed="ENC_TIME_MALFORMED",e.PRNGDetectFailure="PRNG_DETECT",e.ULIDInvalid="ULID_INVALID",e.Unexpected="UNEXPECTED",e.UUIDInvalid="UUID_INVALID"}(tt||(tt={}));var ot=[];for(let e=0;e<256;++e)ot.push((e+256).toString(16).slice(1));new Uint8Array(256).length,Ie("prisma:client:transactionManager");A(S());var it=class extends Error{clientVersion;cause;constructor(e,t){super(e),this.clientVersion=t.clientVersion,this.cause=t.cause}get[Symbol.toStringTag](){return this.name}},at=class extends it{isRetryable;constructor(e,t){super(e,t),this.isRetryable=t.isRetryable??!0}};$e(class extends at{name="InvalidDatasourceError";code="P6001";constructor(e,t){super(e,function(e,t){return{...e,isRetryable:t}}(t,!1))}},"InvalidDatasourceError"),A(L()),Ie("prisma:client:clientEngine:remoteExecutor"),Ie("prisma:client:clientEngine"),globalThis.PRISMA_WASM_PANIC_REGISTRY={set_message(e){throw new o.PrismaClientRustPanicError(e,"7.1.0")}},Ie("prisma:client");"7.1.0".split(".")[0],Ie("prisma:client:request_handler"),A(C()),$e(class extends Error{constructor(e){super(e+"\nRead more at https://pris.ly/d/client-constructor"),this.name="PrismaClientConstructorValidationError"}get[Symbol.toStringTag](){return"PrismaClientConstructorValidationError"}},"PrismaClientConstructorValidationError"),Ie("prisma:client"),"object"==typeof globalThis&&(globalThis.NODE_CLIENT=!0);var st=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);
2
+ /*! Bundled license information:
3
+
4
+ @noble/hashes/utils.js:
5
+ (*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
6
+ */
7
+ exports.Decimal=o.Decimal,exports.ObjectEnumValue=o.ObjectEnumValue,exports.PrismaClientInitializationError=o.PrismaClientInitializationError,exports.PrismaClientKnownRequestError=o.PrismaClientKnownRequestError,exports.PrismaClientRustPanicError=o.PrismaClientRustPanicError,exports.PrismaClientUnknownRequestError=o.PrismaClientUnknownRequestError,exports.PrismaClientValidationError=o.PrismaClientValidationError,exports.Sql=o.Sql,exports.raw=o.raw,exports.DMMF=De,exports.Debug=Ie,exports.Extensions=D,exports.Public=q,exports.makeStrictEnum=function(e){return new Proxy(e,{get(e,t){if(t in e)return e[t];if(!st.has(t))throw new TypeError(`Invalid enum value: ${String(t)}`)}})},exports.skip=Qe;
8
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1,14 @@
1
+ "use strict";function n(n,e){Object.defineProperty(n,"name",{value:e,configurable:!0})}var e=class n extends Error{clientVersion;errorCode;retryable;constructor(e,r,t){super(e),this.name="PrismaClientInitializationError",this.clientVersion=r,this.errorCode=t,Error.captureStackTrace(n)}get[Symbol.toStringTag](){return"PrismaClientInitializationError"}};n(e,"PrismaClientInitializationError");var r=class extends Error{code;meta;clientVersion;batchRequestIdx;constructor(n,{code:e,clientVersion:r,meta:t,batchRequestIdx:i}){super(n),this.name="PrismaClientKnownRequestError",this.code=e,this.clientVersion=r,this.meta=t,Object.defineProperty(this,"batchRequestIdx",{value:i,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};n(r,"PrismaClientKnownRequestError");var t=class extends Error{clientVersion;_isPanic;constructor({clientVersion:n,error:e}){var r;super(function(n){if(n.fields?.message){let e=n.fields?.message;return n.fields?.file&&(e+=` in ${n.fields.file}`,n.fields?.line&&(e+=`:${n.fields.line}`),n.fields?.column&&(e+=`:${n.fields.column}`)),n.fields?.reason&&(e+=`\n${n.fields?.reason}`),e}return"Unknown error"}(e)??"Unknown error"),this._isPanic=(r=e,"PANIC"===r.fields?.message),this.clientVersion=n}get[Symbol.toStringTag](){return"PrismaClientRustError"}isPanic(){return this._isPanic}};n(t,"PrismaClientRustError");var i=class extends Error{clientVersion;constructor(n,e){super(n),this.name="PrismaClientRustPanicError",this.clientVersion=e}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};n(i,"PrismaClientRustPanicError");var s=class extends Error{clientVersion;batchRequestIdx;constructor(n,{clientVersion:e,batchRequestIdx:r}){super(n),this.name="PrismaClientUnknownRequestError",this.clientVersion=e,Object.defineProperty(this,"batchRequestIdx",{value:r,writable:!0,enumerable:!1})}get[Symbol.toStringTag](){return"PrismaClientUnknownRequestError"}};n(s,"PrismaClientUnknownRequestError");var o=class extends Error{name="PrismaClientValidationError";clientVersion;constructor(n,{clientVersion:e}){super(n),this.clientVersion=e}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};n(o,"PrismaClientValidationError");var u=Symbol(),c=new WeakMap,a=class{constructor(n){n===u?c.set(this,`Prisma.${this._getName()}`):c.set(this,`new Prisma.${this._getNamespace()}.${this._getName()}()`)}_getName(){return this.constructor.name}toString(){return c.get(this)}};function l(n,e){Object.defineProperty(n,"name",{value:e,configurable:!0})}var f=class extends a{_getNamespace(){return"NullTypes"}},h=class extends f{#n};l(h,"DbNull");var d=class extends f{#e};l(d,"JsonNull");var g=class extends f{#r};l(g,"AnyNull"),new h(u),new d(u),new g(u);var p,m,w=9e15,v=1e9,N="0123456789abcdef",b="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",E="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",x={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-w,maxE:w,crypto:!1},y=!0,P="[DecimalError] ",q=P+"Invalid argument: ",C=P+"Precision limit exceeded",R=P+"crypto unavailable",M="[object Decimal]",S=Math.floor,O=Math.pow,_=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,A=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,T=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,V=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,D=1e7,F=b.length-1,I=E.length-1,k={toStringTag:M};function Z(n){var e,r,t,i=n.length-1,s="",o=n[0];if(i>0){for(s+=o,e=1;e<i;e++)(r=7-(t=n[e]+"").length)&&(s+=G(r)),s+=t;(r=7-(t=(o=n[e])+"").length)&&(s+=G(r))}else if(0===o)return"0";for(;o%10==0;)o/=10;return s+o}function U(n,e,r){if(n!==~~n||n<e||n>r)throw Error(q+n)}function $(n,e,r,t){var i,s,o,u;for(s=n[0];s>=10;s/=10)--e;return--e<0?(e+=7,i=0):(i=Math.ceil((e+1)/7),e%=7),s=O(10,7-e),u=n[i]%s|0,null==t?e<3?(0==e?u=u/100|0:1==e&&(u=u/10|0),o=r<4&&99999==u||r>3&&49999==u||5e4==u||0==u):o=(r<4&&u+1==s||r>3&&u+1==s/2)&&(n[i+1]/s/100|0)==O(10,e-2)-1||(u==s/2||0==u)&&!(n[i+1]/s/100|0):e<4?(0==e?u=u/1e3|0:1==e?u=u/100|0:2==e&&(u=u/10|0),o=(t||r<4)&&9999==u||!t&&r>3&&4999==u):o=((t||r<4)&&u+1==s||!t&&r>3&&u+1==s/2)&&(n[i+1]/s/1e3|0)==O(10,e-3)-1,o}function L(n,e,r){for(var t,i,s=[0],o=0,u=n.length;o<u;){for(i=s.length;i--;)s[i]*=e;for(s[0]+=N.indexOf(n.charAt(o++)),t=0;t<s.length;t++)s[t]>r-1&&(void 0===s[t+1]&&(s[t+1]=0),s[t+1]+=s[t]/r|0,s[t]%=r)}return s.reverse()}k.absoluteValue=k.abs=function(){var n=new this.constructor(this);return n.s<0&&(n.s=1),j(n)},k.ceil=function(){return j(new this.constructor(this),this.e+1,2)},k.clampedTo=k.clamp=function(n,e){var r=this,t=r.constructor;if(n=new t(n),e=new t(e),!n.s||!e.s)return new t(NaN);if(n.gt(e))throw Error(q+e);return r.cmp(n)<0?n:r.cmp(e)>0?e:new t(r)},k.comparedTo=k.cmp=function(n){var e,r,t,i,s=this,o=s.d,u=(n=new s.constructor(n)).d,c=s.s,a=n.s;if(!o||!u)return c&&a?c!==a?c:o===u?0:!o^c<0?1:-1:NaN;if(!o[0]||!u[0])return o[0]?c:u[0]?-a:0;if(c!==a)return c;if(s.e!==n.e)return s.e>n.e^c<0?1:-1;for(e=0,r=(t=o.length)<(i=u.length)?t:i;e<r;++e)if(o[e]!==u[e])return o[e]>u[e]^c<0?1:-1;return t===i?0:t>i^c<0?1:-1},k.cosine=k.cos=function(){var n,e,r=this,t=r.constructor;return r.d?r.d[0]?(n=t.precision,e=t.rounding,t.precision=n+Math.max(r.e,r.sd())+7,t.rounding=1,r=function(n,e){var r,t,i;if(e.isZero())return e;t=e.d.length,t<32?i=(1/on(4,r=Math.ceil(t/3))).toString():(r=16,i="2.3283064365386962890625e-10");n.precision+=r,e=sn(n,1,e.times(i),new n(1));for(var s=r;s--;){var o=e.times(e);e=o.times(o).minus(o).times(8).plus(1)}return n.precision-=r,e}(t,un(t,r)),t.precision=n,t.rounding=e,j(2==m||3==m?r.neg():r,n,e,!0)):new t(1):new t(NaN)},k.cubeRoot=k.cbrt=function(){var n,e,r,t,i,s,o,u,c,a,l=this,f=l.constructor;if(!l.isFinite()||l.isZero())return new f(l);for(y=!1,(s=l.s*O(l.s*l,1/3))&&Math.abs(s)!=1/0?t=new f(s.toString()):(r=Z(l.d),(s=((n=l.e)-r.length+1)%3)&&(r+=1==s||-2==s?"0":"00"),s=O(r,1/3),n=S((n+1)/3)-(n%3==(n<0?-1:2)),(t=new f(r=s==1/0?"5e"+n:(r=s.toExponential()).slice(0,r.indexOf("e")+1)+n)).s=l.s),o=(n=f.precision)+3;;)if(a=(c=(u=t).times(u).times(u)).plus(l),t=H(a.plus(l).times(u),a.plus(c),o+2,1),Z(u.d).slice(0,o)===(r=Z(t.d)).slice(0,o)){if("9999"!=(r=r.slice(o-3,o+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(j(t,n+1,1),e=!t.times(t).times(t).eq(l));break}if(!i&&(j(u,n+1,0),u.times(u).times(u).eq(l))){t=u;break}o+=4,i=1}return y=!0,j(t,n,f.rounding,e)},k.decimalPlaces=k.dp=function(){var n,e=this.d,r=NaN;if(e){if(r=7*((n=e.length-1)-S(this.e/7)),n=e[n])for(;n%10==0;n/=10)r--;r<0&&(r=0)}return r},k.dividedBy=k.div=function(n){return H(this,new this.constructor(n))},k.dividedToIntegerBy=k.divToInt=function(n){var e=this.constructor;return j(H(this,new e(n),0,1,1),e.precision,e.rounding)},k.equals=k.eq=function(n){return 0===this.cmp(n)},k.floor=function(){return j(new this.constructor(this),this.e+1,3)},k.greaterThan=k.gt=function(n){return this.cmp(n)>0},k.greaterThanOrEqualTo=k.gte=function(n){var e=this.cmp(n);return 1==e||0===e},k.hyperbolicCosine=k.cosh=function(){var n,e,r,t,i,s=this,o=s.constructor,u=new o(1);if(!s.isFinite())return new o(s.s?1/0:NaN);if(s.isZero())return u;r=o.precision,t=o.rounding,o.precision=r+Math.max(s.e,s.sd())+4,o.rounding=1,(i=s.d.length)<32?e=(1/on(4,n=Math.ceil(i/3))).toString():(n=16,e="2.3283064365386962890625e-10"),s=sn(o,1,s.times(e),new o(1),!0);for(var c,a=n,l=new o(8);a--;)c=s.times(s),s=u.minus(c.times(l.minus(c.times(l))));return j(s,o.precision=r,o.rounding=t,!0)},k.hyperbolicSine=k.sinh=function(){var n,e,r,t,i=this,s=i.constructor;if(!i.isFinite()||i.isZero())return new s(i);if(e=s.precision,r=s.rounding,s.precision=e+Math.max(i.e,i.sd())+4,s.rounding=1,(t=i.d.length)<3)i=sn(s,2,i,i,!0);else{n=(n=1.4*Math.sqrt(t))>16?16:0|n,i=sn(s,2,i=i.times(1/on(5,n)),i,!0);for(var o,u=new s(5),c=new s(16),a=new s(20);n--;)o=i.times(i),i=i.times(u.plus(o.times(c.times(o).plus(a))))}return s.precision=e,s.rounding=r,j(i,e,r,!0)},k.hyperbolicTangent=k.tanh=function(){var n,e,r=this,t=r.constructor;return r.isFinite()?r.isZero()?new t(r):(n=t.precision,e=t.rounding,t.precision=n+7,t.rounding=1,H(r.sinh(),r.cosh(),t.precision=n,t.rounding=e)):new t(r.s)},k.inverseCosine=k.acos=function(){var n=this,e=n.constructor,r=n.abs().cmp(1),t=e.precision,i=e.rounding;return-1!==r?0===r?n.isNeg()?K(e,t,i):new e(0):new e(NaN):n.isZero()?K(e,t+4,i).times(.5):(e.precision=t+6,e.rounding=1,n=new e(1).minus(n).div(n.plus(1)).sqrt().atan(),e.precision=t,e.rounding=i,n.times(2))},k.inverseHyperbolicCosine=k.acosh=function(){var n,e,r=this,t=r.constructor;return r.lte(1)?new t(r.eq(1)?0:NaN):r.isFinite()?(n=t.precision,e=t.rounding,t.precision=n+Math.max(Math.abs(r.e),r.sd())+4,t.rounding=1,y=!1,r=r.times(r).minus(1).sqrt().plus(r),y=!0,t.precision=n,t.rounding=e,r.ln()):new t(r)},k.inverseHyperbolicSine=k.asinh=function(){var n,e,r=this,t=r.constructor;return!r.isFinite()||r.isZero()?new t(r):(n=t.precision,e=t.rounding,t.precision=n+2*Math.max(Math.abs(r.e),r.sd())+6,t.rounding=1,y=!1,r=r.times(r).plus(1).sqrt().plus(r),y=!0,t.precision=n,t.rounding=e,r.ln())},k.inverseHyperbolicTangent=k.atanh=function(){var n,e,r,t,i=this,s=i.constructor;return i.isFinite()?i.e>=0?new s(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(n=s.precision,e=s.rounding,t=i.sd(),Math.max(t,n)<2*-i.e-1?j(new s(i),n,e,!0):(s.precision=r=t-i.e,i=H(i.plus(1),new s(1).minus(i),r+n,1),s.precision=n+4,s.rounding=1,i=i.ln(),s.precision=n,s.rounding=e,i.times(.5))):new s(NaN)},k.inverseSine=k.asin=function(){var n,e,r,t,i=this,s=i.constructor;return i.isZero()?new s(i):(e=i.abs().cmp(1),r=s.precision,t=s.rounding,-1!==e?0===e?((n=K(s,r+4,t).times(.5)).s=i.s,n):new s(NaN):(s.precision=r+6,s.rounding=1,i=i.div(new s(1).minus(i.times(i)).sqrt().plus(1)).atan(),s.precision=r,s.rounding=t,i.times(2)))},k.inverseTangent=k.atan=function(){var n,e,r,t,i,s,o,u,c,a=this,l=a.constructor,f=l.precision,h=l.rounding;if(a.isFinite()){if(a.isZero())return new l(a);if(a.abs().eq(1)&&f+4<=I)return(o=K(l,f+4,h).times(.25)).s=a.s,o}else{if(!a.s)return new l(NaN);if(f+4<=I)return(o=K(l,f+4,h).times(.5)).s=a.s,o}for(l.precision=u=f+10,l.rounding=1,n=r=Math.min(28,u/7+2|0);n;--n)a=a.div(a.times(a).plus(1).sqrt().plus(1));for(y=!1,e=Math.ceil(u/7),t=1,c=a.times(a),o=new l(a),i=a;-1!==n;)if(i=i.times(c),s=o.minus(i.div(t+=2)),i=i.times(c),void 0!==(o=s.plus(i.div(t+=2))).d[e])for(n=e;o.d[n]===s.d[n]&&n--;);return r&&(o=o.times(2<<r-1)),y=!0,j(o,l.precision=f,l.rounding=h,!0)},k.isFinite=function(){return!!this.d},k.isInteger=k.isInt=function(){return!!this.d&&S(this.e/7)>this.d.length-2},k.isNaN=function(){return!this.s},k.isNegative=k.isNeg=function(){return this.s<0},k.isPositive=k.isPos=function(){return this.s>0},k.isZero=function(){return!!this.d&&0===this.d[0]},k.lessThan=k.lt=function(n){return this.cmp(n)<0},k.lessThanOrEqualTo=k.lte=function(n){return this.cmp(n)<1},k.logarithm=k.log=function(n){var e,r,t,i,s,o,u,c,a=this,l=a.constructor,f=l.precision,h=l.rounding;if(null==n)n=new l(10),e=!0;else{if(r=(n=new l(n)).d,n.s<0||!r||!r[0]||n.eq(1))return new l(NaN);e=n.eq(10)}if(r=a.d,a.s<0||!r||!r[0]||a.eq(1))return new l(r&&!r[0]?-1/0:1!=a.s?NaN:r?0:1/0);if(e)if(r.length>1)s=!0;else{for(i=r[0];i%10==0;)i/=10;s=1!==i}if(y=!1,o=en(a,u=f+5),t=e?J(l,u+10):en(n,u),$((c=H(o,t,u,1)).d,i=f,h))do{if(o=en(a,u+=10),t=e?J(l,u+10):en(n,u),c=H(o,t,u,1),!s){+Z(c.d).slice(i+1,i+15)+1==1e14&&(c=j(c,f+1,0));break}}while($(c.d,i+=10,h));return y=!0,j(c,f,h)},k.minus=k.sub=function(n){var e,r,t,i,s,o,u,c,a,l,f,h,d=this,g=d.constructor;if(n=new g(n),!d.d||!n.d)return d.s&&n.s?d.d?n.s=-n.s:n=new g(n.d||d.s!==n.s?d:NaN):n=new g(NaN),n;if(d.s!=n.s)return n.s=-n.s,d.plus(n);if(a=d.d,h=n.d,u=g.precision,c=g.rounding,!a[0]||!h[0]){if(h[0])n.s=-n.s;else{if(!a[0])return new g(3===c?-0:0);n=new g(d)}return y?j(n,u,c):n}if(r=S(n.e/7),l=S(d.e/7),a=a.slice(),s=l-r){for((f=s<0)?(e=a,s=-s,o=h.length):(e=h,r=l,o=a.length),s>(t=Math.max(Math.ceil(u/7),o)+2)&&(s=t,e.length=1),e.reverse(),t=s;t--;)e.push(0);e.reverse()}else{for((f=(t=a.length)<(o=h.length))&&(o=t),t=0;t<o;t++)if(a[t]!=h[t]){f=a[t]<h[t];break}s=0}for(f&&(e=a,a=h,h=e,n.s=-n.s),o=a.length,t=h.length-o;t>0;--t)a[o++]=0;for(t=h.length;t>s;){if(a[--t]<h[t]){for(i=t;i&&0===a[--i];)a[i]=D-1;--a[i],a[t]+=D}a[t]-=h[t]}for(;0===a[--o];)a.pop();for(;0===a[0];a.shift())--r;return a[0]?(n.d=a,n.e=z(a,r),y?j(n,u,c):n):new g(3===c?-0:0)},k.modulo=k.mod=function(n){var e,r=this,t=r.constructor;return n=new t(n),!r.d||!n.s||n.d&&!n.d[0]?new t(NaN):!n.d||r.d&&!r.d[0]?j(new t(r),t.precision,t.rounding):(y=!1,9==t.modulo?(e=H(r,n.abs(),0,3,1)).s*=n.s:e=H(r,n,0,t.modulo,1),e=e.times(n),y=!0,r.minus(e))},k.naturalExponential=k.exp=function(){return nn(this)},k.naturalLogarithm=k.ln=function(){return en(this)},k.negated=k.neg=function(){var n=new this.constructor(this);return n.s=-n.s,j(n)},k.plus=k.add=function(n){var e,r,t,i,s,o,u,c,a,l,f=this,h=f.constructor;if(n=new h(n),!f.d||!n.d)return f.s&&n.s?f.d||(n=new h(n.d||f.s===n.s?f:NaN)):n=new h(NaN),n;if(f.s!=n.s)return n.s=-n.s,f.minus(n);if(a=f.d,l=n.d,u=h.precision,c=h.rounding,!a[0]||!l[0])return l[0]||(n=new h(f)),y?j(n,u,c):n;if(s=S(f.e/7),t=S(n.e/7),a=a.slice(),i=s-t){for(i<0?(r=a,i=-i,o=l.length):(r=l,t=s,o=a.length),i>(o=(s=Math.ceil(u/7))>o?s+1:o+1)&&(i=o,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((o=a.length)-(i=l.length)<0&&(i=o,r=l,l=a,a=r),e=0;i;)e=(a[--i]=a[i]+l[i]+e)/D|0,a[i]%=D;for(e&&(a.unshift(e),++t),o=a.length;0==a[--o];)a.pop();return n.d=a,n.e=z(a,t),y?j(n,u,c):n},k.precision=k.sd=function(n){var e,r=this;if(void 0!==n&&n!==!!n&&1!==n&&0!==n)throw Error(q+n);return r.d?(e=W(r.d),n&&r.e+1>e&&(e=r.e+1)):e=NaN,e},k.round=function(){var n=this,e=n.constructor;return j(new e(n),n.e+1,e.rounding)},k.sine=k.sin=function(){var n,e,r=this,t=r.constructor;return r.isFinite()?r.isZero()?new t(r):(n=t.precision,e=t.rounding,t.precision=n+Math.max(r.e,r.sd())+7,t.rounding=1,r=function(n,e){var r,t=e.d.length;if(t<3)return e.isZero()?e:sn(n,2,e,e);r=(r=1.4*Math.sqrt(t))>16?16:0|r,e=e.times(1/on(5,r)),e=sn(n,2,e,e);for(var i,s=new n(5),o=new n(16),u=new n(20);r--;)i=e.times(e),e=e.times(s.plus(i.times(o.times(i).minus(u))));return e}(t,un(t,r)),t.precision=n,t.rounding=e,j(m>2?r.neg():r,n,e,!0)):new t(NaN)},k.squareRoot=k.sqrt=function(){var n,e,r,t,i,s,o=this,u=o.d,c=o.e,a=o.s,l=o.constructor;if(1!==a||!u||!u[0])return new l(!a||a<0&&(!u||u[0])?NaN:u?o:1/0);for(y=!1,0==(a=Math.sqrt(+o))||a==1/0?(((e=Z(u)).length+c)%2==0&&(e+="0"),a=Math.sqrt(e),c=S((c+1)/2)-(c<0||c%2),t=new l(e=a==1/0?"5e"+c:(e=a.toExponential()).slice(0,e.indexOf("e")+1)+c)):t=new l(a.toString()),r=(c=l.precision)+3;;)if(t=(s=t).plus(H(o,s,r+2,1)).times(.5),Z(s.d).slice(0,r)===(e=Z(t.d)).slice(0,r)){if("9999"!=(e=e.slice(r-3,r+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(j(t,c+1,1),n=!t.times(t).eq(o));break}if(!i&&(j(s,c+1,0),s.times(s).eq(o))){t=s;break}r+=4,i=1}return y=!0,j(t,c,l.rounding,n)},k.tangent=k.tan=function(){var n,e,r=this,t=r.constructor;return r.isFinite()?r.isZero()?new t(r):(n=t.precision,e=t.rounding,t.precision=n+10,t.rounding=1,(r=r.sin()).s=1,r=H(r,new t(1).minus(r.times(r)).sqrt(),n+10,0),t.precision=n,t.rounding=e,j(2==m||4==m?r.neg():r,n,e,!0)):new t(NaN)},k.times=k.mul=function(n){var e,r,t,i,s,o,u,c,a,l=this,f=l.constructor,h=l.d,d=(n=new f(n)).d;if(n.s*=l.s,!(h&&h[0]&&d&&d[0]))return new f(!n.s||h&&!h[0]&&!d||d&&!d[0]&&!h?NaN:h&&d?0*n.s:n.s/0);for(r=S(l.e/7)+S(n.e/7),(c=h.length)<(a=d.length)&&(s=h,h=d,d=s,o=c,c=a,a=o),s=[],t=o=c+a;t--;)s.push(0);for(t=a;--t>=0;){for(e=0,i=c+t;i>t;)u=s[i]+d[t]*h[i-t-1]+e,s[i--]=u%D|0,e=u/D|0;s[i]=(s[i]+e)%D|0}for(;!s[--o];)s.pop();return e?++r:s.shift(),n.d=s,n.e=z(s,r),y?j(n,f.precision,f.rounding):n},k.toBinary=function(n,e){return cn(this,2,n,e)},k.toDecimalPlaces=k.toDP=function(n,e){var r=this,t=r.constructor;return r=new t(r),void 0===n?r:(U(n,0,v),void 0===e?e=t.rounding:U(e,0,8),j(r,n+r.e+1,e))},k.toExponential=function(n,e){var r,t=this,i=t.constructor;return void 0===n?r=B(t,!0):(U(n,0,v),void 0===e?e=i.rounding:U(e,0,8),r=B(t=j(new i(t),n+1,e),!0,n+1)),t.isNeg()&&!t.isZero()?"-"+r:r},k.toFixed=function(n,e){var r,t,i=this,s=i.constructor;return void 0===n?r=B(i):(U(n,0,v),void 0===e?e=s.rounding:U(e,0,8),r=B(t=j(new s(i),n+i.e+1,e),!1,n+t.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r},k.toFraction=function(n){var e,r,t,i,s,o,u,c,a,l,f,h,d=this,g=d.d,p=d.constructor;if(!g)return new p(d);if(a=r=new p(1),t=c=new p(0),o=(s=(e=new p(t)).e=W(g)-d.e-1)%7,e.d[0]=O(10,o<0?7+o:o),null==n)n=s>0?e:a;else{if(!(u=new p(n)).isInt()||u.lt(a))throw Error(q+u);n=u.gt(e)?s>0?e:a:u}for(y=!1,u=new p(Z(g)),l=p.precision,p.precision=s=7*g.length*2;f=H(u,e,0,1,1),1!=(i=r.plus(f.times(t))).cmp(n);)r=t,t=i,i=a,a=c.plus(f.times(i)),c=i,i=e,e=u.minus(f.times(i)),u=i;return i=H(n.minus(r),t,0,1,1),c=c.plus(i.times(a)),r=r.plus(i.times(t)),c.s=a.s=d.s,h=H(a,t,s,1).minus(d).abs().cmp(H(c,r,s,1).minus(d).abs())<1?[a,t]:[c,r],p.precision=l,y=!0,h},k.toHexadecimal=k.toHex=function(n,e){return cn(this,16,n,e)},k.toNearest=function(n,e){var r=this,t=r.constructor;if(r=new t(r),null==n){if(!r.d)return r;n=new t(1),e=t.rounding}else{if(n=new t(n),void 0===e?e=t.rounding:U(e,0,8),!r.d)return n.s?r:n;if(!n.d)return n.s&&(n.s=r.s),n}return n.d[0]?(y=!1,r=H(r,n,0,e,1).times(n),y=!0,j(r)):(n.s=r.s,r=n),r},k.toNumber=function(){return+this},k.toOctal=function(n,e){return cn(this,8,n,e)},k.toPower=k.pow=function(n){var e,r,t,i,s,o,u=this,c=u.constructor,a=+(n=new c(n));if(!(u.d&&n.d&&u.d[0]&&n.d[0]))return new c(O(+u,a));if((u=new c(u)).eq(1))return u;if(t=c.precision,s=c.rounding,n.eq(1))return j(u,t,s);if((e=S(n.e/7))>=n.d.length-1&&(r=a<0?-a:a)<=9007199254740991)return i=Q(c,u,r,t),n.s<0?new c(1).div(i):j(i,t,s);if((o=u.s)<0){if(e<n.d.length-1)return new c(NaN);if(1&n.d[e]||(o=1),0==u.e&&1==u.d[0]&&1==u.d.length)return u.s=o,u}return(e=0!=(r=O(+u,a))&&isFinite(r)?new c(r+"").e:S(a*(Math.log("0."+Z(u.d))/Math.LN10+u.e+1)))>c.maxE+1||e<c.minE-1?new c(e>0?o/0:0):(y=!1,c.rounding=u.s=1,r=Math.min(12,(e+"").length),(i=nn(n.times(en(u,t+r)),t)).d&&$((i=j(i,t+5,1)).d,t,s)&&(e=t+10,+Z((i=j(nn(n.times(en(u,e+r)),e),e+5,1)).d).slice(t+1,t+15)+1==1e14&&(i=j(i,t+1,0))),i.s=o,y=!0,c.rounding=s,j(i,t,s))},k.toPrecision=function(n,e){var r,t=this,i=t.constructor;return void 0===n?r=B(t,t.e<=i.toExpNeg||t.e>=i.toExpPos):(U(n,1,v),void 0===e?e=i.rounding:U(e,0,8),r=B(t=j(new i(t),n,e),n<=t.e||t.e<=i.toExpNeg,n)),t.isNeg()&&!t.isZero()?"-"+r:r},k.toSignificantDigits=k.toSD=function(n,e){var r=this.constructor;return void 0===n?(n=r.precision,e=r.rounding):(U(n,1,v),void 0===e?e=r.rounding:U(e,0,8)),j(new r(this),n,e)},k.toString=function(){var n=this,e=n.constructor,r=B(n,n.e<=e.toExpNeg||n.e>=e.toExpPos);return n.isNeg()&&!n.isZero()?"-"+r:r},k.truncated=k.trunc=function(){return j(new this.constructor(this),this.e+1,1)},k.valueOf=k.toJSON=function(){var n=this,e=n.constructor,r=B(n,n.e<=e.toExpNeg||n.e>=e.toExpPos);return n.isNeg()?"-"+r:r};var H=function(){function n(n,e,r){var t,i=0,s=n.length;for(n=n.slice();s--;)t=n[s]*e+i,n[s]=t%r|0,i=t/r|0;return i&&n.unshift(i),n}function e(n,e,r,t){var i,s;if(r!=t)s=r>t?1:-1;else for(i=s=0;i<r;i++)if(n[i]!=e[i]){s=n[i]>e[i]?1:-1;break}return s}function r(n,e,r,t){for(var i=0;r--;)n[r]-=i,i=n[r]<e[r]?1:0,n[r]=i*t+n[r]-e[r];for(;!n[0]&&n.length>1;)n.shift()}return function(t,i,s,o,u,c){var a,l,f,h,d,g,m,w,v,N,b,E,x,y,P,q,C,R,M,O,_=t.constructor,A=t.s==i.s?1:-1,T=t.d,V=i.d;if(!(T&&T[0]&&V&&V[0]))return new _(t.s&&i.s&&(T?!V||T[0]!=V[0]:V)?T&&0==T[0]||!V?0*A:A/0:NaN);for(c?(d=1,l=t.e-i.e):(c=D,d=7,l=S(t.e/d)-S(i.e/d)),M=V.length,C=T.length,N=(v=new _(A)).d=[],f=0;V[f]==(T[f]||0);f++);if(V[f]>(T[f]||0)&&l--,null==s?(y=s=_.precision,o=_.rounding):y=u?s+(t.e-i.e)+1:s,y<0)N.push(1),g=!0;else{if(y=y/d+2|0,f=0,1==M){for(h=0,V=V[0],y++;(f<C||h)&&y--;f++)P=h*c+(T[f]||0),N[f]=P/V|0,h=P%V|0;g=h||f<C}else{for((h=c/(V[0]+1)|0)>1&&(V=n(V,h,c),T=n(T,h,c),M=V.length,C=T.length),q=M,E=(b=T.slice(0,M)).length;E<M;)b[E++]=0;(O=V.slice()).unshift(0),R=V[0],V[1]>=c/2&&++R;do{h=0,(a=e(V,b,M,E))<0?(x=b[0],M!=E&&(x=x*c+(b[1]||0)),(h=x/R|0)>1?(h>=c&&(h=c-1),1==(a=e(m=n(V,h,c),b,w=m.length,E=b.length))&&(h--,r(m,M<w?O:V,w,c))):(0==h&&(a=h=1),m=V.slice()),(w=m.length)<E&&m.unshift(0),r(b,m,E,c),-1==a&&(a=e(V,b,M,E=b.length))<1&&(h++,r(b,M<E?O:V,E,c)),E=b.length):0===a&&(h++,b=[0]),N[f++]=h,a&&b[0]?b[E++]=T[q]||0:(b=[T[q]],E=1)}while((q++<C||void 0!==b[0])&&y--);g=void 0!==b[0]}N[0]||N.shift()}if(1==d)v.e=l,p=g;else{for(f=1,h=N[0];h>=10;h/=10)f++;v.e=f+l*d-1,j(v,u?s+v.e+1:s,o,g)}return v}}();function j(n,e,r,t){var i,s,o,u,c,a,l,f,h,d=n.constructor;n:if(null!=e){if(!(f=n.d))return n;for(i=1,u=f[0];u>=10;u/=10)i++;if((s=e-i)<0)s+=7,o=e,c=(l=f[h=0])/O(10,i-o-1)%10|0;else if((h=Math.ceil((s+1)/7))>=(u=f.length)){if(!t)break n;for(;u++<=h;)f.push(0);l=c=0,i=1,o=(s%=7)-7+1}else{for(l=u=f[h],i=1;u>=10;u/=10)i++;c=(o=(s%=7)-7+i)<0?0:l/O(10,i-o-1)%10|0}if(t=t||e<0||void 0!==f[h+1]||(o<0?l:l%O(10,i-o-1)),a=r<4?(c||t)&&(0==r||r==(n.s<0?3:2)):c>5||5==c&&(4==r||t||6==r&&(s>0?o>0?l/O(10,i-o):0:f[h-1])%10&1||r==(n.s<0?8:7)),e<1||!f[0])return f.length=0,a?(e-=n.e+1,f[0]=O(10,(7-e%7)%7),n.e=-e||0):f[0]=n.e=0,n;if(0==s?(f.length=h,u=1,h--):(f.length=h+1,u=O(10,7-s),f[h]=o>0?(l/O(10,i-o)%O(10,o)|0)*u:0),a)for(;;){if(0==h){for(s=1,o=f[0];o>=10;o/=10)s++;for(o=f[0]+=u,u=1;o>=10;o/=10)u++;s!=u&&(n.e++,f[0]==D&&(f[0]=1));break}if(f[h]+=u,f[h]!=D)break;f[h--]=0,u=1}for(s=f.length;0===f[--s];)f.pop()}return y&&(n.e>d.maxE?(n.d=null,n.e=NaN):n.e<d.minE&&(n.e=0,n.d=[0])),n}function B(n,e,r){if(!n.isFinite())return rn(n);var t,i=n.e,s=Z(n.d),o=s.length;return e?(r&&(t=r-o)>0?s=s.charAt(0)+"."+s.slice(1)+G(t):o>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(n.e<0?"e":"e+")+n.e):i<0?(s="0."+G(-i-1)+s,r&&(t=r-o)>0&&(s+=G(t))):i>=o?(s+=G(i+1-o),r&&(t=r-i-1)>0&&(s=s+"."+G(t))):((t=i+1)<o&&(s=s.slice(0,t)+"."+s.slice(t)),r&&(t=r-o)>0&&(i+1===o&&(s+="."),s+=G(t))),s}function z(n,e){var r=n[0];for(e*=7;r>=10;r/=10)e++;return e}function J(n,e,r){if(e>F)throw y=!0,r&&(n.precision=r),Error(C);return j(new n(b),e,1,!0)}function K(n,e,r){if(e>I)throw Error(C);return j(new n(E),e,r,!0)}function W(n){var e=n.length-1,r=7*e+1;if(e=n[e]){for(;e%10==0;e/=10)r--;for(e=n[0];e>=10;e/=10)r++}return r}function G(n){for(var e="";n--;)e+="0";return e}function Q(n,e,r,t){var i,s=new n(1),o=Math.ceil(t/7+4);for(y=!1;;){if(r%2&&an((s=s.times(e)).d,o)&&(i=!0),0===(r=S(r/2))){r=s.d.length-1,i&&0===s.d[r]&&++s.d[r];break}an((e=e.times(e)).d,o)}return y=!0,s}function X(n){return 1&n.d[n.d.length-1]}function Y(n,e,r){for(var t,i,s=new n(e[0]),o=0;++o<e.length;){if(!(i=new n(e[o])).s){s=i;break}((t=s.cmp(i))===r||0===t&&s.s===r)&&(s=i)}return s}function nn(n,e){var r,t,i,s,o,u,c,a=0,l=0,f=0,h=n.constructor,d=h.rounding,g=h.precision;if(!n.d||!n.d[0]||n.e>17)return new h(n.d?n.d[0]?n.s<0?0:1/0:1:n.s?n.s<0?0:n:NaN);for(null==e?(y=!1,c=g):c=e,u=new h(.03125);n.e>-2;)n=n.times(u),f+=5;for(c+=t=Math.log(O(2,f))/Math.LN10*2+5|0,r=s=o=new h(1),h.precision=c;;){if(s=j(s.times(n),c,1),r=r.times(++l),Z((u=o.plus(H(s,r,c,1))).d).slice(0,c)===Z(o.d).slice(0,c)){for(i=f;i--;)o=j(o.times(o),c,1);if(null!=e)return h.precision=g,o;if(!(a<3&&$(o.d,c-t,d,a)))return j(o,h.precision=g,d,y=!0);h.precision=c+=10,r=s=u=new h(1),l=0,a++}o=u}}function en(n,e){var r,t,i,s,o,u,c,a,l,f,h,d=1,g=n,p=g.d,m=g.constructor,w=m.rounding,v=m.precision;if(g.s<0||!p||!p[0]||!g.e&&1==p[0]&&1==p.length)return new m(p&&!p[0]?-1/0:1!=g.s?NaN:p?0:g);if(null==e?(y=!1,l=v):l=e,m.precision=l+=10,t=(r=Z(p)).charAt(0),!(Math.abs(s=g.e)<15e14))return a=J(m,l+2,v).times(s+""),g=en(new m(t+"."+r.slice(1)),l-10).plus(a),m.precision=v,null==e?j(g,v,w,y=!0):g;for(;t<7&&1!=t||1==t&&r.charAt(1)>3;)t=(r=Z((g=g.times(n)).d)).charAt(0),d++;for(s=g.e,t>1?(g=new m("0."+r),s++):g=new m(t+"."+r.slice(1)),f=g,c=o=g=H(g.minus(1),g.plus(1),l,1),h=j(g.times(g),l,1),i=3;;){if(o=j(o.times(h),l,1),Z((a=c.plus(H(o,new m(i),l,1))).d).slice(0,l)===Z(c.d).slice(0,l)){if(c=c.times(2),0!==s&&(c=c.plus(J(m,l+2,v).times(s+""))),c=H(c,new m(d),l,1),null!=e)return m.precision=v,c;if(!$(c.d,l-10,w,u))return j(c,m.precision=v,w,y=!0);m.precision=l+=10,a=o=g=H(f.minus(1),f.plus(1),l,1),h=j(g.times(g),l,1),i=u=1}c=a,i+=2}}function rn(n){return String(n.s*n.s/0)}function tn(n,e){var r,t,i;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(t=e.search(/e/i))>0?(r<0&&(r=t),r+=+e.slice(t+1),e=e.substring(0,t)):r<0&&(r=e.length),t=0;48===e.charCodeAt(t);t++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(t,i)){if(i-=t,n.e=r=r-t-1,n.d=[],t=(r+1)%7,r<0&&(t+=7),t<i){for(t&&n.d.push(+e.slice(0,t)),i-=7;t<i;)n.d.push(+e.slice(t,t+=7));t=7-(e=e.slice(t)).length}else t-=i;for(;t--;)e+="0";n.d.push(+e),y&&(n.e>n.constructor.maxE?(n.d=null,n.e=NaN):n.e<n.constructor.minE&&(n.e=0,n.d=[0]))}else n.e=0,n.d=[0];return n}function sn(n,e,r,t,i){var s,o,u,c,a=n.precision,l=Math.ceil(a/7);for(y=!1,c=r.times(r),u=new n(t);;){if(o=H(u.times(c),new n(e++*e++),a,1),u=i?t.plus(o):t.minus(o),t=H(o.times(c),new n(e++*e++),a,1),void 0!==(o=u.plus(t)).d[l]){for(s=l;o.d[s]===u.d[s]&&s--;);if(-1==s)break}s=u,u=t,t=o,o=s}return y=!0,o.d.length=l+1,o}function on(n,e){for(var r=n;--e;)r*=n;return r}function un(n,e){var r,t=e.s<0,i=K(n,n.precision,1),s=i.times(.5);if((e=e.abs()).lte(s))return m=t?4:1,e;if((r=e.divToInt(i)).isZero())m=t?3:2;else{if((e=e.minus(r.times(i))).lte(s))return m=X(r)?t?2:3:t?4:1,e;m=X(r)?t?1:4:t?3:2}return e.minus(i).abs()}function cn(n,e,r,t){var i,s,o,u,c,a,l,f,h,d=n.constructor,g=void 0!==r;if(g?(U(r,1,v),void 0===t?t=d.rounding:U(t,0,8)):(r=d.precision,t=d.rounding),n.isFinite()){for(g?(i=2,16==e?r=4*r-3:8==e&&(r=3*r-2)):i=e,(o=(l=B(n)).indexOf("."))>=0&&(l=l.replace(".",""),(h=new d(1)).e=l.length-o,h.d=L(B(h),10,i),h.e=h.d.length),s=c=(f=L(l,10,i)).length;0==f[--c];)f.pop();if(f[0]){if(o<0?s--:((n=new d(n)).d=f,n.e=s,f=(n=H(n,h,r,t,0,i)).d,s=n.e,a=p),o=f[r],u=i/2,a=a||void 0!==f[r+1],a=t<4?(void 0!==o||a)&&(0===t||t===(n.s<0?3:2)):o>u||o===u&&(4===t||a||6===t&&1&f[r-1]||t===(n.s<0?8:7)),f.length=r,a)for(;++f[--r]>i-1;)f[r]=0,r||(++s,f.unshift(1));for(c=f.length;!f[c-1];--c);for(o=0,l="";o<c;o++)l+=N.charAt(f[o]);if(g){if(c>1)if(16==e||8==e){for(o=16==e?4:3,--c;c%o;c++)l+="0";for(c=(f=L(l,i,e)).length;!f[c-1];--c);for(o=1,l="1.";o<c;o++)l+=N.charAt(f[o])}else l=l.charAt(0)+"."+l.slice(1);l=l+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)l="0"+l;l="0."+l}else if(++s>c)for(s-=c;s--;)l+="0";else s<c&&(l=l.slice(0,s)+"."+l.slice(s))}else l=g?"0p+0":"0";l=(16==e?"0x":2==e?"0b":8==e?"0o":"")+l}else l=rn(n);return n.s<0?"-"+l:l}function an(n,e){if(n.length>e)return n.length=e,!0}function ln(n){return new this(n).abs()}function fn(n){return new this(n).acos()}function hn(n){return new this(n).acosh()}function dn(n,e){return new this(n).plus(e)}function gn(n){return new this(n).asin()}function pn(n){return new this(n).asinh()}function mn(n){return new this(n).atan()}function wn(n){return new this(n).atanh()}function vn(n,e){n=new this(n),e=new this(e);var r,t=this.precision,i=this.rounding,s=t+4;return n.s&&e.s?n.d||e.d?!e.d||n.isZero()?(r=e.s<0?K(this,t,i):new this(0)).s=n.s:!n.d||e.isZero()?(r=K(this,s,1).times(.5)).s=n.s:e.s<0?(this.precision=s,this.rounding=1,r=this.atan(H(n,e,s,1)),e=K(this,s,1),this.precision=t,this.rounding=i,r=n.s<0?r.minus(e):r.plus(e)):r=this.atan(H(n,e,s,1)):(r=K(this,s,1).times(e.s>0?.25:.75)).s=n.s:r=new this(NaN),r}function Nn(n){return new this(n).cbrt()}function bn(n){return j(n=new this(n),n.e+1,2)}function En(n,e,r){return new this(n).clamp(e,r)}function xn(n){if(!n||"object"!=typeof n)throw Error(P+"Object expected");var e,r,t,i=!0===n.defaults,s=["precision",1,v,"rounding",0,8,"toExpNeg",-w,0,"toExpPos",0,w,"maxE",0,w,"minE",-w,0,"modulo",0,9];for(e=0;e<s.length;e+=3)if(r=s[e],i&&(this[r]=x[r]),void 0!==(t=n[r])){if(!(S(t)===t&&t>=s[e+1]&&t<=s[e+2]))throw Error(q+r+": "+t);this[r]=t}if(r="crypto",i&&(this[r]=x[r]),void 0!==(t=n[r])){if(!0!==t&&!1!==t&&0!==t&&1!==t)throw Error(q+r+": "+t);if(t){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(R);this[r]=!0}else this[r]=!1}return this}function yn(n){return new this(n).cos()}function Pn(n){return new this(n).cosh()}function qn(n,e){return new this(n).div(e)}function Cn(n){return new this(n).exp()}function Rn(n){return j(n=new this(n),n.e+1,3)}function Mn(){var n,e,r=new this(0);for(y=!1,n=0;n<arguments.length;)if((e=new this(arguments[n++])).d)r.d&&(r=r.plus(e.times(e)));else{if(e.s)return y=!0,new this(1/0);r=e}return y=!0,r.sqrt()}function Sn(n){return n instanceof Gn||n&&n.toStringTag===M||!1}function On(n){return new this(n).ln()}function _n(n,e){return new this(n).log(e)}function An(n){return new this(n).log(2)}function Tn(n){return new this(n).log(10)}function Vn(){return Y(this,arguments,-1)}function Dn(){return Y(this,arguments,1)}function Fn(n,e){return new this(n).mod(e)}function In(n,e){return new this(n).mul(e)}function kn(n,e){return new this(n).pow(e)}function Zn(n){var e,r,t,i,s=0,o=new this(1),u=[];if(void 0===n?n=this.precision:U(n,1,v),t=Math.ceil(n/7),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(t));s<t;)(i=e[s])>=429e7?e[s]=crypto.getRandomValues(new Uint32Array(1))[0]:u[s++]=i%1e7;else{if(!crypto.randomBytes)throw Error(R);for(e=crypto.randomBytes(t*=4);s<t;)(i=e[s]+(e[s+1]<<8)+(e[s+2]<<16)+((127&e[s+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,s):(u.push(i%1e7),s+=4);s=t/4}else for(;s<t;)u[s++]=1e7*Math.random()|0;for(n%=7,(t=u[--s])&&n&&(i=O(10,7-n),u[s]=(t/i|0)*i);0===u[s];s--)u.pop();if(s<0)r=0,u=[0];else{for(r=-1;0===u[0];r-=7)u.shift();for(t=1,i=u[0];i>=10;i/=10)t++;t<7&&(r-=7-t)}return o.e=r,o.d=u,o}function Un(n){return j(n=new this(n),n.e+1,this.rounding)}function $n(n){return(n=new this(n)).d?n.d[0]?n.s:0*n.s:n.s||NaN}function Ln(n){return new this(n).sin()}function Hn(n){return new this(n).sinh()}function jn(n){return new this(n).sqrt()}function Bn(n,e){return new this(n).sub(e)}function zn(){var n=0,e=arguments,r=new this(e[n]);for(y=!1;r.s&&++n<e.length;)r=r.plus(e[n]);return y=!0,j(r,this.precision,this.rounding)}function Jn(n){return new this(n).tan()}function Kn(n){return new this(n).tanh()}function Wn(n){return j(n=new this(n),n.e+1,1)}k[Symbol.for("nodejs.util.inspect.custom")]=k.toString,k[Symbol.toStringTag]="Decimal";var Gn=k.constructor=function n(e){var r,t,i;function s(n){var e,r,t,i=this;if(!(i instanceof s))return new s(n);if(i.constructor=s,Sn(n))return i.s=n.s,void(y?!n.d||n.e>s.maxE?(i.e=NaN,i.d=null):n.e<s.minE?(i.e=0,i.d=[0]):(i.e=n.e,i.d=n.d.slice()):(i.e=n.e,i.d=n.d?n.d.slice():n.d));if("number"===(t=typeof n)){if(0===n)return i.s=1/n<0?-1:1,i.e=0,void(i.d=[0]);if(n<0?(n=-n,i.s=-1):i.s=1,n===~~n&&n<1e7){for(e=0,r=n;r>=10;r/=10)e++;return void(y?e>s.maxE?(i.e=NaN,i.d=null):e<s.minE?(i.e=0,i.d=[0]):(i.e=e,i.d=[n]):(i.e=e,i.d=[n]))}return 0*n!=0?(n||(i.s=NaN),i.e=NaN,void(i.d=null)):tn(i,n.toString())}if("string"===t)return 45===(r=n.charCodeAt(0))?(n=n.slice(1),i.s=-1):(43===r&&(n=n.slice(1)),i.s=1),V.test(n)?tn(i,n):function(n,e){var r,t,i,s,o,u,c,a,l;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),V.test(e))return tn(n,e)}else if("Infinity"===e||"NaN"===e)return+e||(n.s=NaN),n.e=NaN,n.d=null,n;if(A.test(e))r=16,e=e.toLowerCase();else if(_.test(e))r=2;else{if(!T.test(e))throw Error(q+e);r=8}for((s=e.search(/p/i))>0?(c=+e.slice(s+1),e=e.substring(2,s)):e=e.slice(2),o=(s=e.indexOf("."))>=0,t=n.constructor,o&&(s=(u=(e=e.replace(".","")).length)-s,i=Q(t,new t(r),s,2*s)),s=l=(a=L(e,r,D)).length-1;0===a[s];--s)a.pop();return s<0?new t(0*n.s):(n.e=z(a,l),n.d=a,y=!1,o&&(n=H(n,i,4*u)),c&&(n=n.times(Math.abs(c)<54?O(2,c):Gn.pow(2,c))),y=!0,n)}(i,n);if("bigint"===t)return n<0?(n=-n,i.s=-1):i.s=1,tn(i,n.toString());throw Error(q+n)}if(s.prototype=k,s.ROUND_UP=0,s.ROUND_DOWN=1,s.ROUND_CEIL=2,s.ROUND_FLOOR=3,s.ROUND_HALF_UP=4,s.ROUND_HALF_DOWN=5,s.ROUND_HALF_EVEN=6,s.ROUND_HALF_CEIL=7,s.ROUND_HALF_FLOOR=8,s.EUCLID=9,s.config=s.set=xn,s.clone=n,s.isDecimal=Sn,s.abs=ln,s.acos=fn,s.acosh=hn,s.add=dn,s.asin=gn,s.asinh=pn,s.atan=mn,s.atanh=wn,s.atan2=vn,s.cbrt=Nn,s.ceil=bn,s.clamp=En,s.cos=yn,s.cosh=Pn,s.div=qn,s.exp=Cn,s.floor=Rn,s.hypot=Mn,s.ln=On,s.log=_n,s.log10=Tn,s.log2=An,s.max=Vn,s.min=Dn,s.mod=Fn,s.mul=In,s.pow=kn,s.random=Zn,s.round=Un,s.sign=$n,s.sin=Ln,s.sinh=Hn,s.sqrt=jn,s.sub=Bn,s.sum=zn,s.tan=Jn,s.tanh=Kn,s.trunc=Wn,void 0===e&&(e={}),e&&!0!==e.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],r=0;r<i.length;)e.hasOwnProperty(t=i[r++])||(e[t]=this[t]);return s.config(e),s}(x);b=new Gn(b),E=new Gn(E);var Qn=class n{constructor(e,r){if(e.length-1!==r.length){if(0===e.length)throw new TypeError("Expected at least 1 string");throw new TypeError(`Expected ${e.length} strings to have ${e.length-1} values`)}const t=r.reduce((e,r)=>e+(r instanceof n?r.values.length:1),0);this.values=new Array(t),this.strings=new Array(t+1),this.strings[0]=e[0];let i=0,s=0;for(;i<r.length;){const t=r[i++],o=e[i];if(t instanceof n){this.strings[s]+=t.strings[0];let n=0;for(;n<t.values.length;)this.values[s++]=t.values[n++],this.strings[s]=t.strings[n];this.strings[s]+=o}else this.values[s++]=t,this.strings[s]=o}}get sql(){const n=this.strings.length;let e=1,r=this.strings[0];for(;e<n;)r+=`?${this.strings[e++]}`;return r}get statement(){const n=this.strings.length;let e=1,r=this.strings[0];for(;e<n;)r+=`:${e}${this.strings[e++]}`;return r}get text(){const n=this.strings.length;let e=1,r=this.strings[0];for(;e<n;)r+=`$${e}${this.strings[e++]}`;return r}inspect(){return{sql:this.sql,statement:this.statement,text:this.text,values:this.values}}};function Xn(n){return new Qn([n],[])}Xn(""),
2
+ /*! Bundled license information:
3
+
4
+ decimal.js/decimal.mjs:
5
+ (*!
6
+ * decimal.js v10.5.0
7
+ * An arbitrary-precision Decimal type for JavaScript.
8
+ * https://github.com/MikeMcl/decimal.js
9
+ * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
10
+ * MIT Licence
11
+ *)
12
+ */
13
+ exports.AnyNullClass=g,exports.DbNullClass=h,exports.Decimal=Gn,exports.JsonNullClass=d,exports.ObjectEnumValue=a,exports.PrismaClientInitializationError=e,exports.PrismaClientKnownRequestError=r,exports.PrismaClientRustError=t,exports.PrismaClientRustPanicError=i,exports.PrismaClientUnknownRequestError=s,exports.PrismaClientValidationError=o,exports.Sql=Qn,exports.raw=Xn;
14
+ //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{HttpException as n}from"@nestjs/common";import{PrismaClientUnknownRequestError as o,PrismaClientKnownRequestError as r}from"../node_modules/@prisma/client/runtime/library.js";function t(t){if(t instanceof n)throw t;if(t instanceof o||t instanceof r)throw t;throw t}export{t as handleCommonErrors};
1
+ import{HttpException as o}from"@nestjs/common";import{PrismaClientUnknownRequestError as n,PrismaClientKnownRequestError as t}from"../generated/prisma/internal/prismaNamespace.js";function r(r){if(r instanceof o)throw r;if(r instanceof n||r instanceof t)throw r;throw r}export{r as handleCommonErrors};
2
2
  //# sourceMappingURL=common.errors.js.map
@@ -1,6 +1,6 @@
1
1
  import { ArgumentsHost } from '@nestjs/common';
2
2
  import { BaseExceptionFilter } from '@nestjs/core';
3
- import { PrismaClientKnownRequestError } from '@prisma/client/runtime/library';
3
+ import { PrismaClientKnownRequestError } from '../generated/prisma/internal/prismaNamespace';
4
4
  export declare class PrismaClientExceptionFilter extends BaseExceptionFilter {
5
5
  catch(exception: PrismaClientKnownRequestError, host: ArgumentsHost): void;
6
6
  }
@@ -1,2 +1,2 @@
1
- import{__decorate as e}from"../node_modules/tslib/tslib.es6.js";import{Catch as s,HttpStatus as t}from"@nestjs/common";import{BaseExceptionFilter as r}from"@nestjs/core";import{PrismaClientKnownRequestError as a}from"../node_modules/@prisma/client/runtime/library.js";let o=class extends r{catch(e,s){const r=s.switchToHttp().getResponse(),a=e.message.replace(/\n/g,"");let o;switch(e.code){case"P2002":o=t.CONFLICT;break;case"P2000":case"P2010":o=t.BAD_REQUEST;break;case"P2025":o=t.NOT_FOUND;break;default:return void super.catch(e,s)}r.status(o).json({statusCode:o,message:e.meta&&e.meta.message?e.meta.message:a,error:e.meta?e.meta:{}})}};o=e([s(a)],o);export{o as PrismaClientExceptionFilter};
1
+ import{__decorate as e}from"../node_modules/tslib/tslib.es6.js";import{Catch as s,HttpStatus as t}from"@nestjs/common";import{BaseExceptionFilter as a}from"@nestjs/core";import{PrismaClientKnownRequestError as r}from"../generated/prisma/internal/prismaNamespace.js";let m=class extends a{catch(e,s){const a=s.switchToHttp().getResponse(),r=e.message.replace(/\n/g,"");let m;switch(e.code){case"P2002":m=t.CONFLICT;break;case"P2000":case"P2010":m=t.BAD_REQUEST;break;case"P2025":m=t.NOT_FOUND;break;default:return void super.catch(e,s)}a.status(m).json({statusCode:m,message:e.meta&&e.meta.message?e.meta.message:r,error:e.meta?e.meta:{}})}};m=e([s(r)],m);export{m as PrismaClientExceptionFilter};
2
2
  //# sourceMappingURL=prisma-exception.filter.js.map
@@ -0,0 +1,4 @@
1
+ import * as Prisma from './internal/prismaNamespaceBrowser';
2
+ export { Prisma };
3
+ export * as $Enums from './enums';
4
+ export * from './enums';
@@ -0,0 +1,8 @@
1
+ import * as runtime from '@prisma/client/runtime/client';
2
+ import * as $Class from './internal/class';
3
+ import * as Prisma from './internal/prismaNamespace';
4
+ export * as $Enums from './enums';
5
+ export * from './enums';
6
+ export declare const PrismaClient: $Class.PrismaClientConstructor;
7
+ export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions['omit'] = Prisma.PrismaClientOptions['omit'], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>;
8
+ export { Prisma };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};