@zoominfo/gtm-ai-cli 1.0.0 → 1.0.1
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/README.md +84 -43
- package/dist/index.js +1 -1
- package/package.json +19 -6
package/README.md
CHANGED
|
@@ -1,41 +1,82 @@
|
|
|
1
1
|
# GTM AI CLI
|
|
2
2
|
|
|
3
|
-
A command-line interface for
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
A command-line interface for searching [ZoomInfo](https://www.zoominfo.com/) go-to-market (GTM) data.
|
|
4
|
+
Search and enrich companies and contacts, surface intent signals and news, manage GTM context, and pipe results
|
|
5
|
+
through your shell as JSON, JSONL, CSV, YAML, or a table.
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
|
+
### Homebrew (macOS and Linux)
|
|
10
|
+
|
|
11
|
+
The easiest way to install the GTM CLI on MacOS or Linux is using [Homebrew](https://brew.sh/).
|
|
12
|
+
|
|
13
|
+
```shell
|
|
14
|
+
brew install zoominfo/gtm-ai/gtm-ai-cli
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
To upgrade to the latest version, run
|
|
18
|
+
|
|
19
|
+
```shell
|
|
20
|
+
brew upgrade gtm-ai-cli
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### NPM
|
|
24
|
+
|
|
25
|
+
For Windows users or users unable to use Homebrew, you can also install the GTM CLI through NPM
|
|
26
|
+
or any other node package installer (yarn, bun, etc.)
|
|
27
|
+
|
|
28
|
+
Ensure that you install it as a **global** package
|
|
29
|
+
|
|
30
|
+
```shell
|
|
31
|
+
npm install -g @zoominfo/gtm-ai-cli
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Download a Prebuilt Binary
|
|
35
|
+
|
|
36
|
+
Download the latest binary from the [releases](https://github.com/Zoominfo/gtm-ai-cli/releases) page for your platform.
|
|
37
|
+
The platforms supported by this tool are:
|
|
38
|
+
* macOS w/ Apple Silicon (arm64)
|
|
39
|
+
* macOS w/ Intel processor (x64)
|
|
40
|
+
* Linux
|
|
41
|
+
* Windows
|
|
42
|
+
|
|
43
|
+
Make the downloaded package executable and place it on your PATH
|
|
44
|
+
|
|
45
|
+
**macOS and Linux**
|
|
46
|
+
```shell
|
|
47
|
+
chmod +x gtm-macos-arm64
|
|
48
|
+
mv gtm-macos-arm64 /usr/local/bin/gtm
|
|
49
|
+
xattr -d com.apple.quarantine /usr/local/bin/apollo #only required on macOS
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
**Windows**
|
|
53
|
+
```powershell
|
|
54
|
+
Move-Item .\gtm-windows-x64.exe "$env:USERPROFILE\bin\gtm.exe"
|
|
55
|
+
```
|
|
56
|
+
|
|
9
57
|
### From source (Node 18+)
|
|
10
58
|
|
|
11
|
-
```
|
|
12
|
-
git clone https://github.com/
|
|
59
|
+
```shell
|
|
60
|
+
git clone https://github.com/Zoominfo/gtm-ai-cli.git
|
|
13
61
|
cd gtm-ai-cli
|
|
14
62
|
npm install
|
|
15
|
-
npm run build
|
|
63
|
+
npm run build
|
|
16
64
|
npm link # makes `gtm` available globally
|
|
17
65
|
```
|
|
18
66
|
|
|
19
|
-
### Homebrew (coming soon)
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
# planned once binary releases are signed and published
|
|
23
|
-
brew install zoominfo/gtm-ai-cli/gtm-ai-cli
|
|
24
|
-
```
|
|
25
|
-
|
|
26
67
|
## Authentication
|
|
27
68
|
|
|
28
69
|
OAuth 2.0 + PKCE via your browser. Tokens are saved to `~/.config/gtm-ai/` at mode `0600`.
|
|
29
70
|
|
|
30
|
-
```
|
|
71
|
+
```shell
|
|
31
72
|
gtm auth login # opens browser to authorize, saves token
|
|
32
|
-
gtm auth whoami # show login status
|
|
73
|
+
gtm auth whoami # show login status
|
|
33
74
|
gtm auth logout # revoke token and remove saved credentials
|
|
34
75
|
```
|
|
35
76
|
|
|
36
77
|
If you ever need a clean slate (e.g. to re-trigger DCR), remove the saved client:
|
|
37
78
|
|
|
38
|
-
```
|
|
79
|
+
```shell
|
|
39
80
|
rm ~/.config/gtm-ai/client_id ~/.config/gtm-ai/credentials
|
|
40
81
|
gtm auth login
|
|
41
82
|
```
|
|
@@ -52,7 +93,7 @@ Every subcommand accepts `-f, --format`. The `table` and `csv` formats auto-flat
|
|
|
52
93
|
| `yaml` | Human-readable diffs of deeply nested responses. |
|
|
53
94
|
| `table` | ASCII bordered table. Best for terminal browsing of small responses. |
|
|
54
95
|
|
|
55
|
-
```
|
|
96
|
+
```shell
|
|
56
97
|
gtm companies search --industry software -f table
|
|
57
98
|
gtm contacts search --management-level "C Level Exec" -f jsonl > c-level-contacts.jsonl
|
|
58
99
|
gtm-context get -f yaml
|
|
@@ -65,7 +106,7 @@ dotted paths to project from each record, applied before formatting. Handy for n
|
|
|
65
106
|
quick scans without `jq`. (Distinct from the enrich commands' `--fields`, which selects which
|
|
66
107
|
fields ZoomInfo returns server-side.)
|
|
67
108
|
|
|
68
|
-
```
|
|
109
|
+
```shell
|
|
69
110
|
gtm companies search --industry software --page-size 5 --select id,name,revenue -f table
|
|
70
111
|
gtm companies search --industry software --select name,company.id -f csv > orgs.csv
|
|
71
112
|
```
|
|
@@ -78,7 +119,7 @@ gtm companies search --industry software --select name,company.id -f csv > orgs.
|
|
|
78
119
|
|
|
79
120
|
ZoomInfo's search endpoints reject unknown industry/metro/topic strings with 422. **Always look up the canonical ID first**, then pass it to the search filters.
|
|
80
121
|
|
|
81
|
-
```
|
|
122
|
+
```shell
|
|
82
123
|
# Industries containing "software"
|
|
83
124
|
gtm lookup --field industries --fuzzy software -f table
|
|
84
125
|
|
|
@@ -104,7 +145,7 @@ Valid `--field` names: `industries`, `metro-regions`, `states`, `countries`, `co
|
|
|
104
145
|
|
|
105
146
|
**Search.** Requires at least one filter.
|
|
106
147
|
|
|
107
|
-
```
|
|
148
|
+
```shell
|
|
108
149
|
# By name
|
|
109
150
|
gtm companies search --name "ZoomInfo"
|
|
110
151
|
|
|
@@ -126,7 +167,7 @@ gtm companies search --naics "541511,541512"
|
|
|
126
167
|
|
|
127
168
|
**Enrich.** Provide any identifier:
|
|
128
169
|
|
|
129
|
-
```
|
|
170
|
+
```shell
|
|
130
171
|
gtm companies enrich --id 344589814
|
|
131
172
|
gtm companies enrich --domain stripe.com
|
|
132
173
|
gtm companies enrich --name "Stripe"
|
|
@@ -143,7 +184,7 @@ gtm companies enrich --file companies.json
|
|
|
143
184
|
|
|
144
185
|
**Similar companies** (machine-learning ranked list of look-alikes):
|
|
145
186
|
|
|
146
|
-
```
|
|
187
|
+
```shell
|
|
147
188
|
gtm companies similar --id 344589814
|
|
148
189
|
gtm companies similar --name "Stripe"
|
|
149
190
|
```
|
|
@@ -154,7 +195,7 @@ gtm companies similar --name "Stripe"
|
|
|
154
195
|
|
|
155
196
|
**Search.** Requires at least one filter.
|
|
156
197
|
|
|
157
|
-
```
|
|
198
|
+
```shell
|
|
158
199
|
# By name
|
|
159
200
|
gtm contacts search --first-name Henry --last-name Schuck
|
|
160
201
|
|
|
@@ -174,7 +215,7 @@ gtm contacts search --management-level "VP Level Exec" --department Sales --accu
|
|
|
174
215
|
|
|
175
216
|
**Enrich.** Provide any valid identifier combination — `personId` (most accurate), `email`, `phone`, or `firstName + lastName + (company OR companyId)`:
|
|
176
217
|
|
|
177
|
-
```
|
|
218
|
+
```shell
|
|
178
219
|
gtm contacts enrich --id 1260398587
|
|
179
220
|
gtm contacts enrich --email henry@zoominfo.com
|
|
180
221
|
gtm contacts enrich --phone 555-303-1234
|
|
@@ -191,14 +232,14 @@ gtm contacts enrich --file contacts.json
|
|
|
191
232
|
|
|
192
233
|
**Similar contacts** (find people who look like a reference person; optionally constrain to a target company):
|
|
193
234
|
|
|
194
|
-
```
|
|
235
|
+
```shell
|
|
195
236
|
gtm contacts similar --person-id 1260398587
|
|
196
237
|
gtm contacts similar --person-id 1260398587 --company-id 239305146 # similar contacts within Salesforce
|
|
197
238
|
```
|
|
198
239
|
|
|
199
240
|
**Recommended contacts** at a target company, based on your interaction history:
|
|
200
241
|
|
|
201
|
-
```
|
|
242
|
+
```shell
|
|
202
243
|
gtm contacts recommended --company-id 344589814 --use-case PROSPECTING
|
|
203
244
|
gtm contacts recommended --company-id 344589814 --use-case DEAL_ACCELERATION
|
|
204
245
|
gtm contacts recommended --company-id 344589814 --use-case RENEWAL_AND_GROWTH
|
|
@@ -210,7 +251,7 @@ gtm contacts recommended --company-id 344589814 --use-case RENEWAL_AND_GROWTH
|
|
|
210
251
|
|
|
211
252
|
Every request needs `--topics` (1-50). Look up exact topic names first.
|
|
212
253
|
|
|
213
|
-
```
|
|
254
|
+
```shell
|
|
214
255
|
gtm lookup --field intent-topics --fuzzy "data warehouse"
|
|
215
256
|
|
|
216
257
|
# Companies showing high intent for Cloud Applications + Java
|
|
@@ -227,7 +268,7 @@ gtm intent search --topics "AI Agents" --audience-strength-min B --audience-stre
|
|
|
227
268
|
|
|
228
269
|
**Enrich** — pull intent signals for a specific company:
|
|
229
270
|
|
|
230
|
-
```
|
|
271
|
+
```shell
|
|
231
272
|
gtm intent enrich --company-id 344589814 --topics "Cloud Applications" "Java"
|
|
232
273
|
gtm intent enrich --name "ZoomInfo" --topics "AI Agents" --signal-score-min 70
|
|
233
274
|
gtm intent enrich --website https://www.stripe.com --topics "Payments"
|
|
@@ -239,7 +280,7 @@ gtm intent enrich --website https://www.stripe.com --topics "Payments"
|
|
|
239
280
|
|
|
240
281
|
Scoops capture earnings, funding, M&A, leadership moves, layoffs, product launches, awards, partnerships, and more. Search requires at least one filter.
|
|
241
282
|
|
|
242
|
-
```
|
|
283
|
+
```shell
|
|
243
284
|
# Funding announcements at SF software companies in May 2026
|
|
244
285
|
gtm scoops search --scoop-types Funding --industry software --metro "MA - Boston" \
|
|
245
286
|
--published-start 2026-05-01 --published-end 2026-05-31
|
|
@@ -256,7 +297,7 @@ gtm scoops search --scoop-types "Product Launch" --description "artificial intel
|
|
|
256
297
|
|
|
257
298
|
**Enrich** — get scoops for a specific company:
|
|
258
299
|
|
|
259
|
-
```
|
|
300
|
+
```shell
|
|
260
301
|
gtm scoops enrich --company-id 344589814 --scoop-types "New Hire" Promotion
|
|
261
302
|
gtm scoops enrich --name "Stripe" --published-start 2026-01-01
|
|
262
303
|
```
|
|
@@ -267,7 +308,7 @@ gtm scoops enrich --name "Stripe" --published-start 2026-01-01
|
|
|
267
308
|
|
|
268
309
|
`enrich_news` is currently the only news tool. Requires `--company-id`.
|
|
269
310
|
|
|
270
|
-
```
|
|
311
|
+
```shell
|
|
271
312
|
# Recent funding/financial news for ZoomInfo
|
|
272
313
|
gtm news enrich --company-id 344589814 --categories FINANCIAL_RESULTS FUNDING
|
|
273
314
|
|
|
@@ -286,7 +327,7 @@ Valid `--categories`: `FINANCIAL_RESULTS`, `FUNDING`, `GENERAL_NEWS`, `GENERAL_P
|
|
|
286
327
|
|
|
287
328
|
This is the context that shapes how every other ZoomInfo tool interprets your queries — your offerings, ICPs, buyer personas, competitors, strategic priorities. Zero credits consumed.
|
|
288
329
|
|
|
289
|
-
```
|
|
330
|
+
```shell
|
|
290
331
|
# Compressed view (~1k tokens)
|
|
291
332
|
gtm-context get
|
|
292
333
|
|
|
@@ -304,7 +345,7 @@ gtm-context update --query "Create buyer personas from these interviews" --sourc
|
|
|
304
345
|
|
|
305
346
|
### `gtm feedback` — submit feedback to ZoomInfo
|
|
306
347
|
|
|
307
|
-
```
|
|
348
|
+
```shell
|
|
308
349
|
gtm feedback submit --category DATA_QUALITY --message "Henry Schuck's company should be ZoomInfo Technologies, not ZoomInfo"
|
|
309
350
|
gtm feedback submit --category FEATURE_REQUEST --message "Want a --csv-headers flag to control column order"
|
|
310
351
|
```
|
|
@@ -319,7 +360,7 @@ Natural-language research that blends ZoomInfo market data with your CRM and con
|
|
|
319
360
|
history. Frame the goal in `--query` (the tool decides what to retrieve) rather than passing
|
|
320
361
|
keywords. Get the ZoomInfo IDs from `gtm companies search` / `gtm contacts search`.
|
|
321
362
|
|
|
322
|
-
```
|
|
363
|
+
```shell
|
|
323
364
|
# Company/account research
|
|
324
365
|
gtm research account --company-id 344589814 \
|
|
325
366
|
--query "Prepping for a renewal call — relationship status, recent news, and open risks"
|
|
@@ -335,7 +376,7 @@ gtm research contact --contact-id 1260398587 \
|
|
|
335
376
|
|
|
336
377
|
Use this when you need a tool that doesn't have a curated wrapper yet.
|
|
337
378
|
|
|
338
|
-
```
|
|
379
|
+
```shell
|
|
339
380
|
# What tools does the MCP server expose?
|
|
340
381
|
gtm raw list-tools -f table
|
|
341
382
|
|
|
@@ -350,7 +391,7 @@ gtm raw call search_intent --args '{"topics":["Cloud Applications"],"signalScore
|
|
|
350
391
|
|
|
351
392
|
### Pipe to `jq` for field extraction
|
|
352
393
|
|
|
353
|
-
```
|
|
394
|
+
```shell
|
|
354
395
|
# Just the company names from a search
|
|
355
396
|
gtm companies search --industry software --metro "CA - San Francisco" | jq '.data[].attributes.name'
|
|
356
397
|
|
|
@@ -363,7 +404,7 @@ gtm intent search --topics "Cloud Applications" --signal-score-min 80 | jq '.dat
|
|
|
363
404
|
|
|
364
405
|
### Two-step: search companies, enrich top results
|
|
365
406
|
|
|
366
|
-
```
|
|
407
|
+
```shell
|
|
367
408
|
# Get top 3 company IDs, then enrich each with full details
|
|
368
409
|
gtm companies search --industry software --metro "CA - San Francisco" --page-size 3 -f json \
|
|
369
410
|
| jq -r '.data[].id' \
|
|
@@ -372,13 +413,13 @@ gtm companies search --industry software --metro "CA - San Francisco" --page-siz
|
|
|
372
413
|
|
|
373
414
|
### Export contacts to CSV
|
|
374
415
|
|
|
375
|
-
```
|
|
416
|
+
```shell
|
|
376
417
|
gtm contacts search --management-level "VP Level Exec" --department Sales --company-id 344589814 -f csv > vp-sales.csv
|
|
377
418
|
```
|
|
378
419
|
|
|
379
420
|
### Find lookalike companies, then enrich them
|
|
380
421
|
|
|
381
|
-
```
|
|
422
|
+
```shell
|
|
382
423
|
gtm companies similar --id 344589814 -f json \
|
|
383
424
|
| jq -r '.data[0:10][].id' \
|
|
384
425
|
| xargs -I{} gtm companies enrich --id {} --fields name domain employeeCount revenue industries
|
|
@@ -388,7 +429,7 @@ gtm companies similar --id 344589814 -f json \
|
|
|
388
429
|
|
|
389
430
|
## Development
|
|
390
431
|
|
|
391
|
-
```
|
|
432
|
+
```shell
|
|
392
433
|
npm install
|
|
393
434
|
npm run typecheck # tsc --noEmit
|
|
394
435
|
npm test # unit tests (Vitest, mocked)
|
|
@@ -402,14 +443,14 @@ The live suite (`src/live/`) drives the built CLI against the real MCP server, c
|
|
|
402
443
|
read-only command end-to-end (it skips when you're not logged in). Run it against the compiled
|
|
403
444
|
output and opt into the mutating tier explicitly:
|
|
404
445
|
|
|
405
|
-
```
|
|
446
|
+
```shell
|
|
406
447
|
GTM_CLI_CMD="node dist/js/index.js" npm run test:live # read-only (default)
|
|
407
448
|
GTM_LIVE_WRITES=1 GTM_CLI_CMD="node dist/js/index.js" npm run test:live # + feedback / gtm-context update
|
|
408
449
|
```
|
|
409
450
|
|
|
410
451
|
Build standalone single-file binaries (requires [Bun](https://bun.sh)):
|
|
411
452
|
|
|
412
|
-
```
|
|
453
|
+
```shell
|
|
413
454
|
npm run build # → dist/gtm (current platform)
|
|
414
455
|
npm run build:all # cross-compile macOS arm64/x64, Linux x64, Windows x64
|
|
415
456
|
```
|
|
@@ -424,4 +465,4 @@ https://raw.githubusercontent.com/zoominfo/gtm-ai-cli/main/.claude/skills/gtm-ai
|
|
|
424
465
|
|
|
425
466
|
## License
|
|
426
467
|
|
|
427
|
-
|
|
468
|
+
MIT
|
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ Expecting one of '${Y.join("', '")}'`);let J=`${X}Help`;return this.on(J,(G)=>{l
|
|
|
31
31
|
|| ${W} === "boolean" || ${G} === null`).assign(z,e._`[${G}]`)}}}function sU({gen:X,parentData:Q,parentDataProperty:Y},J){X.if(e._`${Q} !== undefined`,()=>X.assign(e._`${Q}[${Y}]`,J))}function Z5(X,Q,Y,J=h6.Correct){let G=J===h6.Correct?e.operators.EQ:e.operators.NEQ,$;switch(X){case"null":return e._`${Q} ${G} null`;case"array":$=e._`Array.isArray(${Q})`;break;case"object":$=e._`${Q} && typeof ${Q} == "object" && !Array.isArray(${Q})`;break;case"integer":$=W(e._`!(${Q} % 1) && !isNaN(${Q})`);break;case"number":$=W();break;default:return e._`typeof ${Q} ${G} ${X}`}return J===h6.Correct?$:(0,e.not)($);function W(z=e.nil){return(0,e.and)(e._`typeof ${Q} == "number"`,z,Y?e._`isFinite(${Q})`:e.nil)}}TW.checkDataType=Z5;function H5(X,Q,Y,J){if(X.length===1)return Z5(X[0],Q,Y,J);let G,$=(0,RW.toHash)(X);if($.array&&$.object){let W=e._`typeof ${Q} != "object"`;G=$.null?W:e._`!${Q} || ${W}`,delete $.null,delete $.array,delete $.object}else G=e.nil;if($.number)delete $.integer;for(let W in $)G=(0,e.and)(G,Z5(W,Q,Y,J));return G}TW.checkDataTypes=H5;var aU={message:({schema:X})=>`must be ${X}`,params:({schema:X,schemaValue:Q})=>typeof X=="string"?e._`{type: ${X}}`:e._`{type: ${Q}}`};function K5(X){let Q=tU(X);(0,dU.reportError)(Q,aU)}TW.reportTypeError=K5;function tU(X){let{gen:Q,data:Y,schema:J}=X,G=(0,RW.schemaRefOrVal)(X,J,"type");return{gen:Q,keyword:"type",data:Y,schema:J.type,schemaCode:G,schemaValue:G,parentSchema:J,params:{},it:X}}});var kW=g((EW)=>{Object.defineProperty(EW,"__esModule",{value:!0});EW.assignDefaults=void 0;var u6=X0(),$L=G0();function WL(X,Q){let{properties:Y,items:J}=X.schema;if(Q==="object"&&Y)for(let G in Y)SW(X,G,Y[G].default);else if(Q==="array"&&Array.isArray(J))J.forEach((G,$)=>SW(X,$,G.default))}EW.assignDefaults=WL;function SW(X,Q,Y){let{gen:J,compositeRule:G,data:$,opts:W}=X;if(Y===void 0)return;let z=u6._`${$}${(0,u6.getProperty)(Q)}`;if(G){(0,$L.checkStrictMode)(X,`default is ignored for: ${z}`);return}let H=u6._`${z} === undefined`;if(W.useDefaults==="empty")H=u6._`${H} || ${z} === null || ${z} === ""`;J.if(H,u6._`${z} = ${(0,u6.stringify)(Y)}`)}});var B1=g((xW)=>{Object.defineProperty(xW,"__esModule",{value:!0});xW.validateUnion=xW.validateArray=xW.usePattern=xW.callValidateCode=xW.schemaProperties=xW.allSchemaProperties=xW.noPropertyInData=xW.propertyInData=xW.isOwnProperty=xW.hasPropFunc=xW.reportMissingProp=xW.checkMissingProp=xW.checkReportMissingProp=void 0;var P0=X0(),D5=G0(),a1=x1(),zL=G0();function BL(X,Q){let{gen:Y,data:J,it:G}=X;Y.if(F5(Y,J,Q,G.opts.ownProperties),()=>{X.setParams({missingProperty:P0._`${Q}`},!0),X.error()})}xW.checkReportMissingProp=BL;function ZL({gen:X,data:Q,it:{opts:Y}},J,G){return(0,P0.or)(...J.map(($)=>(0,P0.and)(F5(X,Q,$,Y.ownProperties),P0._`${G} = ${$}`)))}xW.checkMissingProp=ZL;function HL(X,Q){X.setParams({missingProperty:Q},!0),X.error()}xW.reportMissingProp=HL;function vW(X){return X.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:P0._`Object.prototype.hasOwnProperty`})}xW.hasPropFunc=vW;function V5(X,Q,Y){return P0._`${vW(X)}.call(${Q}, ${Y})`}xW.isOwnProperty=V5;function KL(X,Q,Y,J){let G=P0._`${Q}${(0,P0.getProperty)(Y)} !== undefined`;return J?P0._`${G} && ${V5(X,Q,Y)}`:G}xW.propertyInData=KL;function F5(X,Q,Y,J){let G=P0._`${Q}${(0,P0.getProperty)(Y)} === undefined`;return J?(0,P0.or)(G,(0,P0.not)(V5(X,Q,Y))):G}xW.noPropertyInData=F5;function _W(X){return X?Object.keys(X).filter((Q)=>Q!=="__proto__"):[]}xW.allSchemaProperties=_W;function DL(X,Q){return _W(Q).filter((Y)=>!(0,D5.alwaysValidSchema)(X,Q[Y]))}xW.schemaProperties=DL;function VL({schemaCode:X,data:Q,it:{gen:Y,topSchemaRef:J,schemaPath:G,errorPath:$},it:W},z,H,Z){let K=Z?P0._`${X}, ${Q}, ${J}${G}`:Q,D=[[a1.default.instancePath,(0,P0.strConcat)(a1.default.instancePath,$)],[a1.default.parentData,W.parentData],[a1.default.parentDataProperty,W.parentDataProperty],[a1.default.rootData,a1.default.rootData]];if(W.opts.dynamicRef)D.push([a1.default.dynamicAnchors,a1.default.dynamicAnchors]);let F=P0._`${K}, ${Y.object(...D)}`;return H!==P0.nil?P0._`${z}.call(${H}, ${F})`:P0._`${z}(${F})`}xW.callValidateCode=VL;var FL=P0._`new RegExp`;function qL({gen:X,it:{opts:Q}},Y){let J=Q.unicodeRegExp?"u":"",{regExp:G}=Q.code,$=G(Y,J);return X.scopeValue("pattern",{key:$.toString(),ref:$,code:P0._`${G.code==="new RegExp"?FL:(0,zL.useFunc)(X,G)}(${Y}, ${J})`})}xW.usePattern=qL;function ML(X){let{gen:Q,data:Y,keyword:J,it:G}=X,$=Q.name("valid");if(G.allErrors){let z=Q.let("valid",!0);return W(()=>Q.assign(z,!1)),z}return Q.var($,!0),W(()=>Q.break()),$;function W(z){let H=Q.const("len",P0._`${Y}.length`);Q.forRange("i",0,H,(Z)=>{X.subschema({keyword:J,dataProp:Z,dataPropType:D5.Type.Num},$),Q.if((0,P0.not)($),z)})}}xW.validateArray=ML;function UL(X){let{gen:Q,schema:Y,keyword:J,it:G}=X;if(!Array.isArray(Y))throw Error("ajv implementation error");if(Y.some((H)=>(0,D5.alwaysValidSchema)(G,H))&&!G.opts.unevaluated)return;let W=Q.let("valid",!1),z=Q.name("_valid");Q.block(()=>Y.forEach((H,Z)=>{let K=X.subschema({keyword:J,schemaProp:Z,compositeRule:!0},z);if(Q.assign(W,P0._`${W} || ${z}`),!X.mergeValidEvaluated(K,z))Q.if((0,P0.not)(W))})),X.result(W,()=>X.reset(),()=>X.error(!0))}xW.validateUnion=UL});var mW=g((hW)=>{Object.defineProperty(hW,"__esModule",{value:!0});hW.validateKeywordUsage=hW.validSchemaType=hW.funcKeywordCode=hW.macroKeywordCode=void 0;var i0=X0(),H6=x1(),EL=B1(),CL=x4();function kL(X,Q){let{gen:Y,keyword:J,schema:G,parentSchema:$,it:W}=X,z=Q.macro.call(W.self,G,$,W),H=fW(Y,J,z);if(W.opts.validateSchema!==!1)W.self.validateSchema(z,!0);let Z=Y.name("valid");X.subschema({schema:z,schemaPath:i0.nil,errSchemaPath:`${W.errSchemaPath}/${J}`,topSchemaRef:H,compositeRule:!0},Z),X.pass(Z,()=>X.error(!0))}hW.macroKeywordCode=kL;function vL(X,Q){var Y;let{gen:J,keyword:G,schema:$,parentSchema:W,$data:z,it:H}=X;xL(H,Q);let Z=!z&&Q.compile?Q.compile.call(H.self,$,W,H):Q.validate,K=fW(J,G,Z),D=J.let("valid");X.block$data(D,F),X.ok((Y=Q.valid)!==null&&Y!==void 0?Y:D);function F(){if(Q.errors===!1){if(A(),Q.modifying)gW(X);j(()=>X.error())}else{let w=Q.async?q():U();if(Q.modifying)gW(X);j(()=>_L(X,w))}}function q(){let w=J.let("ruleErrs",null);return J.try(()=>A(i0._`await `),(u)=>J.assign(D,!1).if(i0._`${u} instanceof ${H.ValidationError}`,()=>J.assign(w,i0._`${u}.errors`),()=>J.throw(u))),w}function U(){let w=i0._`${K}.errors`;return J.assign(w,null),A(i0.nil),w}function A(w=Q.async?i0._`await `:i0.nil){let u=H.opts.passContext?H6.default.this:H6.default.self,x=!(("compile"in Q)&&!z||Q.schema===!1);J.assign(D,i0._`${w}${(0,EL.callValidateCode)(X,K,u,x)}`,Q.modifying)}function j(w){var u;J.if((0,i0.not)((u=Q.valid)!==null&&u!==void 0?u:D),w)}}hW.funcKeywordCode=vL;function gW(X){let{gen:Q,data:Y,it:J}=X;Q.if(J.parentData,()=>Q.assign(Y,i0._`${J.parentData}[${J.parentDataProperty}]`))}function _L(X,Q){let{gen:Y}=X;Y.if(i0._`Array.isArray(${Q})`,()=>{Y.assign(H6.default.vErrors,i0._`${H6.default.vErrors} === null ? ${Q} : ${H6.default.vErrors}.concat(${Q})`).assign(H6.default.errors,i0._`${H6.default.vErrors}.length`),(0,CL.extendErrors)(X)},()=>X.error())}function xL({schemaEnv:X},Q){if(Q.async&&!X.$async)throw Error("async keyword in sync schema")}function fW(X,Q,Y){if(Y===void 0)throw Error(`keyword "${Q}" failed to compile`);return X.scopeValue("keyword",typeof Y=="function"?{ref:Y}:{ref:Y,code:(0,i0.stringify)(Y)})}function yL(X,Q,Y=!1){return!Q.length||Q.some((J)=>J==="array"?Array.isArray(X):J==="object"?X&&typeof X=="object"&&!Array.isArray(X):typeof X==J||Y&&typeof X>"u")}hW.validSchemaType=yL;function gL({schema:X,opts:Q,self:Y,errSchemaPath:J},G,$){if(Array.isArray(G.keyword)?!G.keyword.includes($):G.keyword!==$)throw Error("ajv implementation error");let W=G.dependencies;if(W===null||W===void 0?void 0:W.some((z)=>!Object.prototype.hasOwnProperty.call(X,z)))throw Error(`parent schema must have dependencies of ${$}: ${W.join(",")}`);if(G.validateSchema){if(!G.validateSchema(X[$])){let H=`keyword "${$}" value is invalid at path "${J}": `+Y.errorsText(G.validateSchema.errors);if(Q.validateSchema==="log")Y.logger.error(H);else throw Error(H)}}}hW.validateKeywordUsage=gL});var dW=g((cW)=>{Object.defineProperty(cW,"__esModule",{value:!0});cW.extendSubschemaMode=cW.extendSubschemaData=cW.getSubschema=void 0;var N1=X0(),lW=G0();function mL(X,{keyword:Q,schemaProp:Y,schema:J,schemaPath:G,errSchemaPath:$,topSchemaRef:W}){if(Q!==void 0&&J!==void 0)throw Error('both "keyword" and "schema" passed, only one allowed');if(Q!==void 0){let z=X.schema[Q];return Y===void 0?{schema:z,schemaPath:N1._`${X.schemaPath}${(0,N1.getProperty)(Q)}`,errSchemaPath:`${X.errSchemaPath}/${Q}`}:{schema:z[Y],schemaPath:N1._`${X.schemaPath}${(0,N1.getProperty)(Q)}${(0,N1.getProperty)(Y)}`,errSchemaPath:`${X.errSchemaPath}/${Q}/${(0,lW.escapeFragment)(Y)}`}}if(J!==void 0){if(G===void 0||$===void 0||W===void 0)throw Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:J,schemaPath:G,topSchemaRef:W,errSchemaPath:$}}throw Error('either "keyword" or "schema" must be passed')}cW.getSubschema=mL;function lL(X,Q,{dataProp:Y,dataPropType:J,data:G,dataTypes:$,propertyName:W}){if(G!==void 0&&Y!==void 0)throw Error('both "data" and "dataProp" passed, only one allowed');let{gen:z}=Q;if(Y!==void 0){let{errorPath:Z,dataPathArr:K,opts:D}=Q,F=z.let("data",N1._`${Q.data}${(0,N1.getProperty)(Y)}`,!0);H(F),X.errorPath=N1.str`${Z}${(0,lW.getErrorPath)(Y,J,D.jsPropertySyntax)}`,X.parentDataProperty=N1._`${Y}`,X.dataPathArr=[...K,X.parentDataProperty]}if(G!==void 0){let Z=G instanceof N1.Name?G:z.let("data",G,!0);if(H(Z),W!==void 0)X.propertyName=W}if($)X.dataTypes=$;function H(Z){X.data=Z,X.dataLevel=Q.dataLevel+1,X.dataTypes=[],Q.definedProperties=new Set,X.parentData=Q.data,X.dataNames=[...Q.dataNames,Z]}}cW.extendSubschemaData=lL;function cL(X,{jtdDiscriminator:Q,jtdMetadata:Y,compositeRule:J,createErrors:G,allErrors:$}){if(J!==void 0)X.compositeRule=J;if(G!==void 0)X.createErrors=G;if($!==void 0)X.allErrors=$;X.jtdDiscriminator=Q,X.jtdMetadata=Y}cW.extendSubschemaMode=cL});var q5=g((Qk,iW)=>{iW.exports=function X(Q,Y){if(Q===Y)return!0;if(Q&&Y&&typeof Q=="object"&&typeof Y=="object"){if(Q.constructor!==Y.constructor)return!1;var J,G,$;if(Array.isArray(Q)){if(J=Q.length,J!=Y.length)return!1;for(G=J;G--!==0;)if(!X(Q[G],Y[G]))return!1;return!0}if(Q.constructor===RegExp)return Q.source===Y.source&&Q.flags===Y.flags;if(Q.valueOf!==Object.prototype.valueOf)return Q.valueOf()===Y.valueOf();if(Q.toString!==Object.prototype.toString)return Q.toString()===Y.toString();if($=Object.keys(Q),J=$.length,J!==Object.keys(Y).length)return!1;for(G=J;G--!==0;)if(!Object.prototype.hasOwnProperty.call(Y,$[G]))return!1;for(G=J;G--!==0;){var W=$[G];if(!X(Q[W],Y[W]))return!1}return!0}return Q!==Q&&Y!==Y}});var oW=g((Yk,nW)=>{var t1=nW.exports=function(X,Q,Y){if(typeof Q=="function")Y=Q,Q={};Y=Q.cb||Y;var J=typeof Y=="function"?Y:Y.pre||function(){},G=Y.post||function(){};Z8(Q,J,G,X,"",X)};t1.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};t1.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};t1.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};t1.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Z8(X,Q,Y,J,G,$,W,z,H,Z){if(J&&typeof J=="object"&&!Array.isArray(J)){Q(J,G,$,W,z,H,Z);for(var K in J){var D=J[K];if(Array.isArray(D)){if(K in t1.arrayKeywords)for(var F=0;F<D.length;F++)Z8(X,Q,Y,D[F],G+"/"+K+"/"+F,$,G,K,J,F)}else if(K in t1.propsKeywords){if(D&&typeof D=="object")for(var q in D)Z8(X,Q,Y,D[q],G+"/"+K+"/"+iL(q),$,G,K,J,q)}else if(K in t1.keywords||X.allKeys&&!(K in t1.skipKeywords))Z8(X,Q,Y,D,G+"/"+K,$,G,K,J)}Y(J,G,$,W,z,H,Z)}}function iL(X){return X.replace(/~/g,"~0").replace(/\//g,"~1")}});var g4=g((tW)=>{Object.defineProperty(tW,"__esModule",{value:!0});tW.getSchemaRefs=tW.resolveUrl=tW.normalizeId=tW._getFullPath=tW.getFullPath=tW.inlineRef=void 0;var nL=G0(),oL=q5(),rL=oW(),sL=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function aL(X,Q=!0){if(typeof X=="boolean")return!0;if(Q===!0)return!M5(X);if(!Q)return!1;return rW(X)<=Q}tW.inlineRef=aL;var tL=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function M5(X){for(let Q in X){if(tL.has(Q))return!0;let Y=X[Q];if(Array.isArray(Y)&&Y.some(M5))return!0;if(typeof Y=="object"&&M5(Y))return!0}return!1}function rW(X){let Q=0;for(let Y in X){if(Y==="$ref")return 1/0;if(Q++,sL.has(Y))continue;if(typeof X[Y]=="object")(0,nL.eachItem)(X[Y],(J)=>Q+=rW(J));if(Q===1/0)return 1/0}return Q}function sW(X,Q="",Y){if(Y!==!1)Q=m6(Q);let J=X.parse(Q);return aW(X,J)}tW.getFullPath=sW;function aW(X,Q){return X.serialize(Q).split("#")[0]+"#"}tW._getFullPath=aW;var eL=/#\/?$/;function m6(X){return X?X.replace(eL,""):""}tW.normalizeId=m6;function XA(X,Q,Y){return Y=m6(Y),X.resolve(Q,Y)}tW.resolveUrl=XA;var QA=/^[a-z_][-a-z0-9._]*$/i;function YA(X,Q){if(typeof X=="boolean")return{};let{schemaId:Y,uriResolver:J}=this.opts,G=m6(X[Y]||Q),$={"":G},W=sW(J,G,!1),z={},H=new Set;return rL(X,{allKeys:!0},(D,F,q,U)=>{if(U===void 0)return;let A=W+F,j=$[U];if(typeof D[Y]=="string")j=w.call(this,D[Y]);u.call(this,D.$anchor),u.call(this,D.$dynamicAnchor),$[F]=j;function w(x){let h=this.opts.uriResolver.resolve;if(x=m6(j?h(j,x):x),H.has(x))throw K(x);H.add(x);let P=this.refs[x];if(typeof P=="string")P=this.refs[P];if(typeof P=="object")Z(D,P.schema,x);else if(x!==m6(A))if(x[0]==="#")Z(D,z[x],x),z[x]=D;else this.refs[x]=A;return x}function u(x){if(typeof x=="string"){if(!QA.test(x))throw Error(`invalid anchor "${x}"`);w.call(this,`#${x}`)}}}),z;function Z(D,F,q){if(F!==void 0&&!oL(D,F))throw K(q)}function K(D){return Error(`reference "${D}" resolves to more than one schema`)}}tW.getSchemaRefs=YA});var u4=g((Fz)=>{Object.defineProperty(Fz,"__esModule",{value:!0});Fz.getData=Fz.KeywordCxt=Fz.validateFunctionCode=void 0;var Gz=UW(),Xz=y4(),L5=B5(),H8=y4(),BA=kW(),h4=mW(),U5=dW(),d=X0(),t=x1(),ZA=g4(),y1=G0(),f4=x4();function HA(X){if(zz(X)){if(Bz(X),Wz(X)){VA(X);return}}$z(X,()=>(0,Gz.topBoolOrEmptySchema)(X))}Fz.validateFunctionCode=HA;function $z({gen:X,validateName:Q,schema:Y,schemaEnv:J,opts:G},$){if(G.code.es5)X.func(Q,d._`${t.default.data}, ${t.default.valCxt}`,J.$async,()=>{X.code(d._`"use strict"; ${Qz(Y,G)}`),DA(X,G),X.code($)});else X.func(Q,d._`${t.default.data}, ${KA(G)}`,J.$async,()=>X.code(Qz(Y,G)).code($))}function KA(X){return d._`{${t.default.instancePath}="", ${t.default.parentData}, ${t.default.parentDataProperty}, ${t.default.rootData}=${t.default.data}${X.dynamicRef?d._`, ${t.default.dynamicAnchors}={}`:d.nil}}={}`}function DA(X,Q){X.if(t.default.valCxt,()=>{if(X.var(t.default.instancePath,d._`${t.default.valCxt}.${t.default.instancePath}`),X.var(t.default.parentData,d._`${t.default.valCxt}.${t.default.parentData}`),X.var(t.default.parentDataProperty,d._`${t.default.valCxt}.${t.default.parentDataProperty}`),X.var(t.default.rootData,d._`${t.default.valCxt}.${t.default.rootData}`),Q.dynamicRef)X.var(t.default.dynamicAnchors,d._`${t.default.valCxt}.${t.default.dynamicAnchors}`)},()=>{if(X.var(t.default.instancePath,d._`""`),X.var(t.default.parentData,d._`undefined`),X.var(t.default.parentDataProperty,d._`undefined`),X.var(t.default.rootData,t.default.data),Q.dynamicRef)X.var(t.default.dynamicAnchors,d._`{}`)})}function VA(X){let{schema:Q,opts:Y,gen:J}=X;$z(X,()=>{if(Y.$comment&&Q.$comment)Hz(X);if(LA(X),J.let(t.default.vErrors,null),J.let(t.default.errors,0),Y.unevaluated)FA(X);Zz(X),OA(X)});return}function FA(X){let{gen:Q,validateName:Y}=X;X.evaluated=Q.const("evaluated",d._`${Y}.evaluated`),Q.if(d._`${X.evaluated}.dynamicProps`,()=>Q.assign(d._`${X.evaluated}.props`,d._`undefined`)),Q.if(d._`${X.evaluated}.dynamicItems`,()=>Q.assign(d._`${X.evaluated}.items`,d._`undefined`))}function Qz(X,Q){let Y=typeof X=="object"&&X[Q.schemaId];return Y&&(Q.code.source||Q.code.process)?d._`/*# sourceURL=${Y} */`:d.nil}function qA(X,Q){if(zz(X)){if(Bz(X),Wz(X)){MA(X,Q);return}}(0,Gz.boolOrEmptySchema)(X,Q)}function Wz({schema:X,self:Q}){if(typeof X=="boolean")return!X;for(let Y in X)if(Q.RULES.all[Y])return!0;return!1}function zz(X){return typeof X.schema!="boolean"}function MA(X,Q){let{schema:Y,gen:J,opts:G}=X;if(G.$comment&&Y.$comment)Hz(X);AA(X),NA(X);let $=J.const("_errs",t.default.errors);Zz(X,$),J.var(Q,d._`${$} === ${t.default.errors}`)}function Bz(X){(0,y1.checkUnknownRules)(X),UA(X)}function Zz(X,Q){if(X.opts.jtd)return Yz(X,[],!1,Q);let Y=(0,Xz.getSchemaTypes)(X.schema),J=(0,Xz.coerceAndCheckDataType)(X,Y);Yz(X,Y,!J,Q)}function UA(X){let{schema:Q,errSchemaPath:Y,opts:J,self:G}=X;if(Q.$ref&&J.ignoreKeywordsWithRef&&(0,y1.schemaHasRulesButRef)(Q,G.RULES))G.logger.warn(`$ref: keywords ignored in schema at path "${Y}"`)}function LA(X){let{schema:Q,opts:Y}=X;if(Q.default!==void 0&&Y.useDefaults&&Y.strictSchema)(0,y1.checkStrictMode)(X,"default is ignored in the schema root")}function AA(X){let Q=X.schema[X.opts.schemaId];if(Q)X.baseId=(0,ZA.resolveUrl)(X.opts.uriResolver,X.baseId,Q)}function NA(X){if(X.schema.$async&&!X.schemaEnv.$async)throw Error("async schema in sync schema")}function Hz({gen:X,schemaEnv:Q,schema:Y,errSchemaPath:J,opts:G}){let $=Y.$comment;if(G.$comment===!0)X.code(d._`${t.default.self}.logger.log(${$})`);else if(typeof G.$comment=="function"){let W=d.str`${J}/$comment`,z=X.scopeValue("root",{ref:Q.root});X.code(d._`${t.default.self}.opts.$comment(${$}, ${W}, ${z}.schema)`)}}function OA(X){let{gen:Q,schemaEnv:Y,validateName:J,ValidationError:G,opts:$}=X;if(Y.$async)Q.if(d._`${t.default.errors} === 0`,()=>Q.return(t.default.data),()=>Q.throw(d._`new ${G}(${t.default.vErrors})`));else{if(Q.assign(d._`${J}.errors`,t.default.vErrors),$.unevaluated)PA(X);Q.return(d._`${t.default.errors} === 0`)}}function PA({gen:X,evaluated:Q,props:Y,items:J}){if(Y instanceof d.Name)X.assign(d._`${Q}.props`,Y);if(J instanceof d.Name)X.assign(d._`${Q}.items`,J)}function Yz(X,Q,Y,J){let{gen:G,schema:$,data:W,allErrors:z,opts:H,self:Z}=X,{RULES:K}=Z;if($.$ref&&(H.ignoreKeywordsWithRef||!(0,y1.schemaHasRulesButRef)($,K))){G.block(()=>Dz(X,"$ref",K.all.$ref.definition));return}if(!H.jtd)wA(X,Q);G.block(()=>{for(let F of K.rules)D(F);D(K.post)});function D(F){if(!(0,L5.shouldUseGroup)($,F))return;if(F.type){if(G.if((0,H8.checkDataType)(F.type,W,H.strictNumbers)),Jz(X,F),Q.length===1&&Q[0]===F.type&&Y)G.else(),(0,H8.reportTypeError)(X);G.endIf()}else Jz(X,F);if(!z)G.if(d._`${t.default.errors} === ${J||0}`)}}function Jz(X,Q){let{gen:Y,schema:J,opts:{useDefaults:G}}=X;if(G)(0,BA.assignDefaults)(X,Q.type);Y.block(()=>{for(let $ of Q.rules)if((0,L5.shouldUseRule)(J,$))Dz(X,$.keyword,$.definition,Q.type)})}function wA(X,Q){if(X.schemaEnv.meta||!X.opts.strictTypes)return;if(RA(X,Q),!X.opts.allowUnionTypes)IA(X,Q);jA(X,X.dataTypes)}function RA(X,Q){if(!Q.length)return;if(!X.dataTypes.length){X.dataTypes=Q;return}Q.forEach((Y)=>{if(!Kz(X.dataTypes,Y))A5(X,`type "${Y}" not allowed by context "${X.dataTypes.join(",")}"`)}),bA(X,Q)}function IA(X,Q){if(Q.length>1&&!(Q.length===2&&Q.includes("null")))A5(X,"use allowUnionTypes to allow union type keyword")}function jA(X,Q){let Y=X.self.RULES.all;for(let J in Y){let G=Y[J];if(typeof G=="object"&&(0,L5.shouldUseRule)(X.schema,G)){let{type:$}=G.definition;if($.length&&!$.some((W)=>TA(Q,W)))A5(X,`missing type "${$.join(",")}" for keyword "${J}"`)}}}function TA(X,Q){return X.includes(Q)||Q==="number"&&X.includes("integer")}function Kz(X,Q){return X.includes(Q)||Q==="integer"&&X.includes("number")}function bA(X,Q){let Y=[];for(let J of X.dataTypes)if(Kz(Q,J))Y.push(J);else if(Q.includes("integer")&&J==="number")Y.push("integer");X.dataTypes=Y}function A5(X,Q){let Y=X.schemaEnv.baseId+X.errSchemaPath;Q+=` at "${Y}" (strictTypes)`,(0,y1.checkStrictMode)(X,Q,X.opts.strictTypes)}class N5{constructor(X,Q,Y){if((0,h4.validateKeywordUsage)(X,Q,Y),this.gen=X.gen,this.allErrors=X.allErrors,this.keyword=Y,this.data=X.data,this.schema=X.schema[Y],this.$data=Q.$data&&X.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,y1.schemaRefOrVal)(X,this.schema,Y,this.$data),this.schemaType=Q.schemaType,this.parentSchema=X.schema,this.params={},this.it=X,this.def=Q,this.$data)this.schemaCode=X.gen.const("vSchema",Vz(this.$data,X));else if(this.schemaCode=this.schemaValue,!(0,h4.validSchemaType)(this.schema,Q.schemaType,Q.allowUndefined))throw Error(`${Y} value must be ${JSON.stringify(Q.schemaType)}`);if("code"in Q?Q.trackErrors:Q.errors!==!1)this.errsCount=X.gen.const("_errs",t.default.errors)}result(X,Q,Y){this.failResult((0,d.not)(X),Q,Y)}failResult(X,Q,Y){if(this.gen.if(X),Y)Y();else this.error();if(Q){if(this.gen.else(),Q(),this.allErrors)this.gen.endIf()}else if(this.allErrors)this.gen.endIf();else this.gen.else()}pass(X,Q){this.failResult((0,d.not)(X),void 0,Q)}fail(X){if(X===void 0){if(this.error(),!this.allErrors)this.gen.if(!1);return}if(this.gen.if(X),this.error(),this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(X){if(!this.$data)return this.fail(X);let{schemaCode:Q}=this;this.fail(d._`${Q} !== undefined && (${(0,d.or)(this.invalid$data(),X)})`)}error(X,Q,Y){if(Q){this.setParams(Q),this._error(X,Y),this.setParams({});return}this._error(X,Y)}_error(X,Q){(X?f4.reportExtraError:f4.reportError)(this,this.def.error,Q)}$dataError(){(0,f4.reportError)(this,this.def.$dataError||f4.keyword$DataError)}reset(){if(this.errsCount===void 0)throw Error('add "trackErrors" to keyword definition');(0,f4.resetErrorsCount)(this.gen,this.errsCount)}ok(X){if(!this.allErrors)this.gen.if(X)}setParams(X,Q){if(Q)Object.assign(this.params,X);else this.params=X}block$data(X,Q,Y=d.nil){this.gen.block(()=>{this.check$data(X,Y),Q()})}check$data(X=d.nil,Q=d.nil){if(!this.$data)return;let{gen:Y,schemaCode:J,schemaType:G,def:$}=this;if(Y.if((0,d.or)(d._`${J} === undefined`,Q)),X!==d.nil)Y.assign(X,!0);if(G.length||$.validateSchema){if(Y.elseIf(this.invalid$data()),this.$dataError(),X!==d.nil)Y.assign(X,!1)}Y.else()}invalid$data(){let{gen:X,schemaCode:Q,schemaType:Y,def:J,it:G}=this;return(0,d.or)($(),W());function $(){if(Y.length){if(!(Q instanceof d.Name))throw Error("ajv implementation error");let z=Array.isArray(Y)?Y:[Y];return d._`${(0,H8.checkDataTypes)(z,Q,G.opts.strictNumbers,H8.DataType.Wrong)}`}return d.nil}function W(){if(J.validateSchema){let z=X.scopeValue("validate$data",{ref:J.validateSchema});return d._`!${z}(${Q})`}return d.nil}}subschema(X,Q){let Y=(0,U5.getSubschema)(this.it,X);(0,U5.extendSubschemaData)(Y,this.it,X),(0,U5.extendSubschemaMode)(Y,X);let J={...this.it,...Y,items:void 0,props:void 0};return qA(J,Q),J}mergeEvaluated(X,Q){let{it:Y,gen:J}=this;if(!Y.opts.unevaluated)return;if(Y.props!==!0&&X.props!==void 0)Y.props=y1.mergeEvaluated.props(J,X.props,Y.props,Q);if(Y.items!==!0&&X.items!==void 0)Y.items=y1.mergeEvaluated.items(J,X.items,Y.items,Q)}mergeValidEvaluated(X,Q){let{it:Y,gen:J}=this;if(Y.opts.unevaluated&&(Y.props!==!0||Y.items!==!0))return J.if(Q,()=>this.mergeEvaluated(X,d.Name)),!0}}Fz.KeywordCxt=N5;function Dz(X,Q,Y,J){let G=new N5(X,Y,Q);if("code"in Y)Y.code(G,J);else if(G.$data&&Y.validate)(0,h4.funcKeywordCode)(G,Y);else if("macro"in Y)(0,h4.macroKeywordCode)(G,Y);else if(Y.compile||Y.validate)(0,h4.funcKeywordCode)(G,Y)}var SA=/^\/(?:[^~]|~0|~1)*$/,EA=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Vz(X,{dataLevel:Q,dataNames:Y,dataPathArr:J}){let G,$;if(X==="")return t.default.rootData;if(X[0]==="/"){if(!SA.test(X))throw Error(`Invalid JSON-pointer: ${X}`);G=X,$=t.default.rootData}else{let Z=EA.exec(X);if(!Z)throw Error(`Invalid JSON-pointer: ${X}`);let K=+Z[1];if(G=Z[2],G==="#"){if(K>=Q)throw Error(H("property/index",K));return J[Q-K]}if(K>Q)throw Error(H("data",K));if($=Y[Q-K],!G)return $}let W=$,z=G.split("/");for(let Z of z)if(Z)$=d._`${$}${(0,d.getProperty)((0,y1.unescapeJsonPointer)(Z))}`,W=d._`${W} && ${$}`;return W;function H(Z,K){return`Cannot access ${Z} ${K} levels up, current level is ${Q}`}}Fz.getData=Vz});var K8=g((Uz)=>{Object.defineProperty(Uz,"__esModule",{value:!0});class Mz extends Error{constructor(X){super("validation failed");this.errors=X,this.ajv=this.validation=!0}}Uz.default=Mz});var m4=g((Az)=>{Object.defineProperty(Az,"__esModule",{value:!0});var O5=g4();class Lz extends Error{constructor(X,Q,Y,J){super(J||`can't resolve reference ${Y} from id ${Q}`);this.missingRef=(0,O5.resolveUrl)(X,Q,Y),this.missingSchema=(0,O5.normalizeId)((0,O5.getFullPath)(X,this.missingRef))}}Az.default=Lz});var V8=g((Pz)=>{Object.defineProperty(Pz,"__esModule",{value:!0});Pz.resolveSchema=Pz.getCompilingSchema=Pz.resolveRef=Pz.compileSchema=Pz.SchemaEnv=void 0;var q1=X0(),xA=K8(),K6=x1(),M1=g4(),Nz=G0(),yA=u4();class l4{constructor(X){var Q;this.refs={},this.dynamicAnchors={};let Y;if(typeof X.schema=="object")Y=X.schema;this.schema=X.schema,this.schemaId=X.schemaId,this.root=X.root||this,this.baseId=(Q=X.baseId)!==null&&Q!==void 0?Q:(0,M1.normalizeId)(Y===null||Y===void 0?void 0:Y[X.schemaId||"$id"]),this.schemaPath=X.schemaPath,this.localRefs=X.localRefs,this.meta=X.meta,this.$async=Y===null||Y===void 0?void 0:Y.$async,this.refs={}}}Pz.SchemaEnv=l4;function w5(X){let Q=Oz.call(this,X);if(Q)return Q;let Y=(0,M1.getFullPath)(this.opts.uriResolver,X.root.baseId),{es5:J,lines:G}=this.opts.code,{ownProperties:$}=this.opts,W=new q1.CodeGen(this.scope,{es5:J,lines:G,ownProperties:$}),z;if(X.$async)z=W.scopeValue("Error",{ref:xA.default,code:q1._`require("ajv/dist/runtime/validation_error").default`});let H=W.scopeName("validate");X.validateName=H;let Z={gen:W,allErrors:this.opts.allErrors,data:K6.default.data,parentData:K6.default.parentData,parentDataProperty:K6.default.parentDataProperty,dataNames:[K6.default.data],dataPathArr:[q1.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:W.scopeValue("schema",this.opts.code.source===!0?{ref:X.schema,code:(0,q1.stringify)(X.schema)}:{ref:X.schema}),validateName:H,ValidationError:z,schema:X.schema,schemaEnv:X,rootId:Y,baseId:X.baseId||Y,schemaPath:q1.nil,errSchemaPath:X.schemaPath||(this.opts.jtd?"":"#"),errorPath:q1._`""`,opts:this.opts,self:this},K;try{this._compilations.add(X),(0,yA.validateFunctionCode)(Z),W.optimize(this.opts.code.optimize);let D=W.toString();if(K=`${W.scopeRefs(K6.default.scope)}return ${D}`,this.opts.code.process)K=this.opts.code.process(K,X);let q=Function(`${K6.default.self}`,`${K6.default.scope}`,K)(this,this.scope.get());if(this.scope.value(H,{ref:q}),q.errors=null,q.schema=X.schema,q.schemaEnv=X,X.$async)q.$async=!0;if(this.opts.code.source===!0)q.source={validateName:H,validateCode:D,scopeValues:W._values};if(this.opts.unevaluated){let{props:U,items:A}=Z;if(q.evaluated={props:U instanceof q1.Name?void 0:U,items:A instanceof q1.Name?void 0:A,dynamicProps:U instanceof q1.Name,dynamicItems:A instanceof q1.Name},q.source)q.source.evaluated=(0,q1.stringify)(q.evaluated)}return X.validate=q,X}catch(D){if(delete X.validate,delete X.validateName,K)this.logger.error("Error compiling schema, function code:",K);throw D}finally{this._compilations.delete(X)}}Pz.compileSchema=w5;function gA(X,Q,Y){var J;Y=(0,M1.resolveUrl)(this.opts.uriResolver,Q,Y);let G=X.refs[Y];if(G)return G;let $=uA.call(this,X,Y);if($===void 0){let W=(J=X.localRefs)===null||J===void 0?void 0:J[Y],{schemaId:z}=this.opts;if(W)$=new l4({schema:W,schemaId:z,root:X,baseId:Q})}if($===void 0)return;return X.refs[Y]=fA.call(this,$)}Pz.resolveRef=gA;function fA(X){if((0,M1.inlineRef)(X.schema,this.opts.inlineRefs))return X.schema;return X.validate?X:w5.call(this,X)}function Oz(X){for(let Q of this._compilations)if(hA(Q,X))return Q}Pz.getCompilingSchema=Oz;function hA(X,Q){return X.schema===Q.schema&&X.root===Q.root&&X.baseId===Q.baseId}function uA(X,Q){let Y;while(typeof(Y=this.refs[Q])=="string")Q=Y;return Y||this.schemas[Q]||D8.call(this,X,Q)}function D8(X,Q){let Y=this.opts.uriResolver.parse(Q),J=(0,M1._getFullPath)(this.opts.uriResolver,Y),G=(0,M1.getFullPath)(this.opts.uriResolver,X.baseId,void 0);if(Object.keys(X.schema).length>0&&J===G)return P5.call(this,Y,X);let $=(0,M1.normalizeId)(J),W=this.refs[$]||this.schemas[$];if(typeof W=="string"){let z=D8.call(this,X,W);if(typeof(z===null||z===void 0?void 0:z.schema)!=="object")return;return P5.call(this,Y,z)}if(typeof(W===null||W===void 0?void 0:W.schema)!=="object")return;if(!W.validate)w5.call(this,W);if($===(0,M1.normalizeId)(Q)){let{schema:z}=W,{schemaId:H}=this.opts,Z=z[H];if(Z)G=(0,M1.resolveUrl)(this.opts.uriResolver,G,Z);return new l4({schema:z,schemaId:H,root:X,baseId:G})}return P5.call(this,Y,W)}Pz.resolveSchema=D8;var mA=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function P5(X,{baseId:Q,schema:Y,root:J}){var G;if(((G=X.fragment)===null||G===void 0?void 0:G[0])!=="/")return;for(let z of X.fragment.slice(1).split("/")){if(typeof Y==="boolean")return;let H=Y[(0,Nz.unescapeFragment)(z)];if(H===void 0)return;Y=H;let Z=typeof Y==="object"&&Y[this.opts.schemaId];if(!mA.has(z)&&Z)Q=(0,M1.resolveUrl)(this.opts.uriResolver,Q,Z)}let $;if(typeof Y!="boolean"&&Y.$ref&&!(0,Nz.schemaHasRulesButRef)(Y,this.RULES)){let z=(0,M1.resolveUrl)(this.opts.uriResolver,Q,Y.$ref);$=D8.call(this,J,z)}let{schemaId:W}=this.opts;if($=$||new l4({schema:Y,schemaId:W,root:J,baseId:Q}),$.schema!==$.root.schema)return $;return}});var Rz=g((Bk,iA)=>{iA.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var j5=g((Zk,Ez)=>{var nA=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),jz=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),R5=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),Tz=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),oA=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function I5(X){let Q="",Y=0,J=0;for(J=0;J<X.length;J++){if(Y=X[J].charCodeAt(0),Y===48)continue;if(!(Y>=48&&Y<=57||Y>=65&&Y<=70||Y>=97&&Y<=102))return"";Q+=X[J];break}for(J+=1;J<X.length;J++){if(Y=X[J].charCodeAt(0),!(Y>=48&&Y<=57||Y>=65&&Y<=70||Y>=97&&Y<=102))return"";Q+=X[J]}return Q}var rA=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function Iz(X){return X.length=0,!0}function sA(X,Q,Y){if(X.length){let J=I5(X);if(J!=="")Q.push(J);else return Y.error=!0,!1;X.length=0}return!0}function aA(X){let Q=0,Y={error:!1,address:"",zone:""},J=[],G=[],$=!1,W=!1,z=sA;for(let H=0;H<X.length;H++){let Z=X[H];if(Z==="["||Z==="]")continue;if(Z===":"){if($===!0)W=!0;if(!z(G,J,Y))break;if(++Q>7){Y.error=!0;break}if(H>0&&X[H-1]===":")$=!0;J.push(":");continue}else if(Z==="%"){if(!z(G,J,Y))break;z=Iz}else{G.push(Z);continue}}if(G.length)if(z===Iz)Y.zone=G.join("");else if(W)J.push(G.join(""));else J.push(I5(G));return Y.address=J.join(""),Y}function bz(X){if(tA(X,":")<2)return{host:X,isIPV6:!1};let Q=aA(X);if(!Q.error){let{address:Y,address:J}=Q;if(Q.zone)Y+="%"+Q.zone,J+="%25"+Q.zone;return{host:Y,isIPV6:!0,escapedHost:J}}else return{host:X,isIPV6:!1}}function tA(X,Q){let Y=0;for(let J=0;J<X.length;J++)if(X[J]===Q)Y++;return Y}function eA(X){let Q=X,Y=[],J=-1,G=0;while(G=Q.length){if(G===1)if(Q===".")break;else if(Q==="/"){Y.push("/");break}else{Y.push(Q);break}else if(G===2){if(Q[0]==="."){if(Q[1]===".")break;else if(Q[1]==="/"){Q=Q.slice(2);continue}}else if(Q[0]==="/"){if(Q[1]==="."||Q[1]==="/"){Y.push("/");break}}}else if(G===3){if(Q==="/.."){if(Y.length!==0)Y.pop();Y.push("/");break}}if(Q[0]==="."){if(Q[1]==="."){if(Q[2]==="/"){Q=Q.slice(3);continue}}else if(Q[1]==="/"){Q=Q.slice(2);continue}}else if(Q[0]==="/"){if(Q[1]==="."){if(Q[2]==="/"){Q=Q.slice(2);continue}else if(Q[2]==="."){if(Q[3]==="/"){if(Q=Q.slice(3),Y.length!==0)Y.pop();continue}}}}if((J=Q.indexOf("/",1))===-1){Y.push(Q);break}else Y.push(Q.slice(0,J)),Q=Q.slice(J)}return Y.join("")}var XN={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},QN=/[@/?#:]/g,YN=/[@/?#]/g;function Sz(X,Q){let Y=Q?YN:QN;return Y.lastIndex=0,X.replace(Y,(J)=>XN[J])}function JN(X,Q=!1){if(X.indexOf("%")===-1)return X;let Y="";for(let J=0;J<X.length;J++){if(X[J]==="%"&&J+2<X.length){let G=X.slice(J+1,J+3);if(R5(G)){let $=G.toUpperCase(),W=String.fromCharCode(parseInt($,16));if(Q&&Tz(W))Y+=W;else Y+="%"+$;J+=2;continue}}Y+=X[J]}return Y}function GN(X){let Q="";for(let Y=0;Y<X.length;Y++){if(X[Y]==="%"&&Y+2<X.length){let J=X.slice(Y+1,Y+3);if(R5(J)){let G=J.toUpperCase(),$=String.fromCharCode(parseInt(G,16));if($!=="."&&Tz($))Q+=$;else Q+="%"+G;Y+=2;continue}}if(oA(X[Y]))Q+=X[Y];else Q+=escape(X[Y])}return Q}function $N(X){let Q="";for(let Y=0;Y<X.length;Y++){if(X[Y]==="%"&&Y+2<X.length){let J=X.slice(Y+1,Y+3);if(R5(J)){Q+="%"+J.toUpperCase(),Y+=2;continue}}Q+=escape(X[Y])}return Q}function WN(X){let Q=[];if(X.userinfo!==void 0)Q.push(X.userinfo),Q.push("@");if(X.host!==void 0){let Y=unescape(X.host);if(!jz(Y)){let J=bz(Y);if(J.isIPV6===!0)Y=`[${J.escapedHost}]`;else Y=Sz(Y,!1)}Q.push(Y)}if(typeof X.port==="number"||typeof X.port==="string")Q.push(":"),Q.push(String(X.port));return Q.length?Q.join(""):void 0}Ez.exports={nonSimpleDomain:rA,recomposeAuthority:WN,reescapeHostDelimiters:Sz,normalizePercentEncoding:JN,normalizePathEncoding:GN,escapePreservingEscapes:$N,removeDotSegments:eA,isIPv4:jz,isUUID:nA,normalizeIPv6:bz,stringArrayToHexStripped:I5}});var xz=g((Hk,_z)=>{var{isUUID:zN}=j5(),BN=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,ZN=["http","https","ws","wss","urn","urn:uuid"];function HN(X){return ZN.indexOf(X)!==-1}function T5(X){if(X.secure===!0)return!0;else if(X.secure===!1)return!1;else if(X.scheme)return X.scheme.length===3&&(X.scheme[0]==="w"||X.scheme[0]==="W")&&(X.scheme[1]==="s"||X.scheme[1]==="S")&&(X.scheme[2]==="s"||X.scheme[2]==="S");else return!1}function Cz(X){if(!X.host)X.error=X.error||"HTTP URIs must have a host.";return X}function kz(X){let Q=String(X.scheme).toLowerCase()==="https";if(X.port===(Q?443:80)||X.port==="")X.port=void 0;if(!X.path)X.path="/";return X}function KN(X){return X.secure=T5(X),X.resourceName=(X.path||"/")+(X.query?"?"+X.query:""),X.path=void 0,X.query=void 0,X}function DN(X){if(X.port===(T5(X)?443:80)||X.port==="")X.port=void 0;if(typeof X.secure==="boolean")X.scheme=X.secure?"wss":"ws",X.secure=void 0;if(X.resourceName){let[Q,Y]=X.resourceName.split("?");X.path=Q&&Q!=="/"?Q:void 0,X.query=Y,X.resourceName=void 0}return X.fragment=void 0,X}function VN(X,Q){if(!X.path)return X.error="URN can not be parsed",X;let Y=X.path.match(BN);if(Y){let J=Q.scheme||X.scheme||"urn";X.nid=Y[1].toLowerCase(),X.nss=Y[2];let G=`${J}:${Q.nid||X.nid}`,$=b5(G);if(X.path=void 0,$)X=$.parse(X,Q)}else X.error=X.error||"URN can not be parsed.";return X}function FN(X,Q){if(X.nid===void 0)throw Error("URN without nid cannot be serialized");let Y=Q.scheme||X.scheme||"urn",J=X.nid.toLowerCase(),G=`${Y}:${Q.nid||J}`,$=b5(G);if($)X=$.serialize(X,Q);let W=X,z=X.nss;return W.path=`${J||Q.nid}:${z}`,Q.skipEscape=!0,W}function qN(X,Q){let Y=X;if(Y.uuid=Y.nss,Y.nss=void 0,!Q.tolerant&&(!Y.uuid||!zN(Y.uuid)))Y.error=Y.error||"UUID is not valid.";return Y}function MN(X){let Q=X;return Q.nss=(X.uuid||"").toLowerCase(),Q}var vz={scheme:"http",domainHost:!0,parse:Cz,serialize:kz},UN={scheme:"https",domainHost:vz.domainHost,parse:Cz,serialize:kz},F8={scheme:"ws",domainHost:!0,parse:KN,serialize:DN},LN={scheme:"wss",domainHost:F8.domainHost,parse:F8.parse,serialize:F8.serialize},AN={scheme:"urn",parse:VN,serialize:FN,skipNormalize:!0},NN={scheme:"urn:uuid",parse:qN,serialize:MN,skipNormalize:!0},q8={http:vz,https:UN,ws:F8,wss:LN,urn:AN,"urn:uuid":NN};Object.setPrototypeOf(q8,null);function b5(X){return X&&(q8[X]||q8[X.toLowerCase()])||void 0}_z.exports={wsIsSecure:T5,SCHEMES:q8,isValidSchemeName:HN,getSchemeHandler:b5}});var mz=g((Kk,M8)=>{var{normalizeIPv6:ON,removeDotSegments:c4,recomposeAuthority:PN,normalizePercentEncoding:wN,normalizePathEncoding:RN,escapePreservingEscapes:IN,reescapeHostDelimiters:jN,isIPv4:TN,nonSimpleDomain:bN}=j5(),{SCHEMES:SN,getSchemeHandler:gz}=xz();function EN(X,Q){if(typeof X==="string")X=xN(X,Q);else if(typeof X==="object")X=l6(D6(X,Q),Q);return X}function CN(X,Q,Y){let J=Y?Object.assign({scheme:"null"},Y):{scheme:"null"},G=fz(l6(X,J),l6(Q,J),J,!0);return J.skipEscape=!0,D6(G,J)}function fz(X,Q,Y,J){let G={};if(!J)X=l6(D6(X,Y),Y),Q=l6(D6(Q,Y),Y);if(Y=Y||{},!Y.tolerant&&Q.scheme)G.scheme=Q.scheme,G.userinfo=Q.userinfo,G.host=Q.host,G.port=Q.port,G.path=c4(Q.path||""),G.query=Q.query;else{if(Q.userinfo!==void 0||Q.host!==void 0||Q.port!==void 0)G.userinfo=Q.userinfo,G.host=Q.host,G.port=Q.port,G.path=c4(Q.path||""),G.query=Q.query;else{if(!Q.path)if(G.path=X.path,Q.query!==void 0)G.query=Q.query;else G.query=X.query;else{if(Q.path[0]==="/")G.path=c4(Q.path);else{if((X.userinfo!==void 0||X.host!==void 0||X.port!==void 0)&&!X.path)G.path="/"+Q.path;else if(!X.path)G.path=Q.path;else G.path=X.path.slice(0,X.path.lastIndexOf("/")+1)+Q.path;G.path=c4(G.path)}G.query=Q.query}G.userinfo=X.userinfo,G.host=X.host,G.port=X.port}G.scheme=X.scheme}return G.fragment=Q.fragment,G}function kN(X,Q,Y){let J=yz(X,Y),G=yz(Q,Y);return J!==void 0&&G!==void 0&&J.toLowerCase()===G.toLowerCase()}function D6(X,Q){let Y={host:X.host,scheme:X.scheme,userinfo:X.userinfo,port:X.port,path:X.path,query:X.query,nid:X.nid,nss:X.nss,uuid:X.uuid,fragment:X.fragment,reference:X.reference,resourceName:X.resourceName,secure:X.secure,error:""},J=Object.assign({},Q),G=[],$=gz(J.scheme||Y.scheme);if($&&$.serialize)$.serialize(Y,J);if(Y.path!==void 0)if(!J.skipEscape){if(Y.path=IN(Y.path),Y.scheme!==void 0)Y.path=Y.path.split("%3A").join(":")}else Y.path=wN(Y.path);if(J.reference!=="suffix"&&Y.scheme)G.push(Y.scheme,":");let W=PN(Y);if(W!==void 0){if(J.reference!=="suffix")G.push("//");if(G.push(W),Y.path&&Y.path[0]!=="/")G.push("/")}if(Y.path!==void 0){let z=Y.path;if(!J.absolutePath&&(!$||!$.absolutePath))z=c4(z);if(W===void 0&&z[0]==="/"&&z[1]==="/")z="/%2F"+z.slice(2);G.push(z)}if(Y.query!==void 0)G.push("?",Y.query);if(Y.fragment!==void 0)G.push("#",Y.fragment);return G.join("")}var vN=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function _N(X,Q){if(Q[2]!==void 0&&X.path&&X.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof X.port==="number"&&(X.port<0||X.port>65535))return"URI port is malformed.";return}function hz(X,Q){let Y=Object.assign({},Q),J={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},G=!1,$=!1;if(Y.reference==="suffix")if(Y.scheme)X=Y.scheme+":"+X;else X="//"+X;let W=X.match(vN);if(W){if(J.scheme=W[1],J.userinfo=W[3],J.host=W[4],J.port=parseInt(W[5],10),J.path=W[6]||"",J.query=W[7],J.fragment=W[8],isNaN(J.port))J.port=W[5];let z=_N(J,W);if(z!==void 0)J.error=J.error||z,G=!0;if(J.host)if(TN(J.host)===!1){let K=ON(J.host);J.host=K.host.toLowerCase(),$=K.isIPV6}else $=!0;if(J.scheme===void 0&&J.userinfo===void 0&&J.host===void 0&&J.port===void 0&&J.query===void 0&&!J.path)J.reference="same-document";else if(J.scheme===void 0)J.reference="relative";else if(J.fragment===void 0)J.reference="absolute";else J.reference="uri";if(Y.reference&&Y.reference!=="suffix"&&Y.reference!==J.reference)J.error=J.error||"URI is not a "+Y.reference+" reference.";let H=gz(Y.scheme||J.scheme);if(!Y.unicodeSupport&&(!H||!H.unicodeSupport)){if(J.host&&(Y.domainHost||H&&H.domainHost)&&$===!1&&bN(J.host))try{J.host=URL.domainToASCII(J.host.toLowerCase())}catch(Z){J.error=J.error||"Host's domain name can not be converted to ASCII: "+Z}}if(!H||H&&!H.skipNormalize){if(X.indexOf("%")!==-1){if(J.scheme!==void 0)J.scheme=unescape(J.scheme);if(J.host!==void 0)J.host=jN(unescape(J.host),$)}if(J.path)J.path=RN(J.path);if(J.fragment)try{J.fragment=encodeURI(decodeURIComponent(J.fragment))}catch{J.error=J.error||"URI malformed"}}if(H&&H.parse)H.parse(J,Y)}else J.error=J.error||"URI can not be parsed.";return{parsed:J,malformedAuthorityOrPort:G}}function l6(X,Q){return hz(X,Q).parsed}function xN(X,Q){return uz(X,Q).normalized}function uz(X,Q){let{parsed:Y,malformedAuthorityOrPort:J}=hz(X,Q);return{normalized:J?X:D6(Y,Q),malformedAuthorityOrPort:J}}function yz(X,Q){if(typeof X==="string"){let{normalized:Y,malformedAuthorityOrPort:J}=uz(X,Q);return J?void 0:Y}if(typeof X==="object")return D6(X,Q)}var S5={SCHEMES:SN,normalize:EN,resolve:CN,resolveComponent:fz,equal:kN,serialize:D6,parse:l6};M8.exports=S5;M8.exports.default=S5;M8.exports.fastUri=S5});var pz=g((cz)=>{Object.defineProperty(cz,"__esModule",{value:!0});var lz=mz();lz.code='require("ajv/dist/runtime/uri").default';cz.default=lz});var tz=g((g1)=>{Object.defineProperty(g1,"__esModule",{value:!0});g1.CodeGen=g1.Name=g1.nil=g1.stringify=g1.str=g1._=g1.KeywordCxt=void 0;var gN=u4();Object.defineProperty(g1,"KeywordCxt",{enumerable:!0,get:function(){return gN.KeywordCxt}});var c6=X0();Object.defineProperty(g1,"_",{enumerable:!0,get:function(){return c6._}});Object.defineProperty(g1,"str",{enumerable:!0,get:function(){return c6.str}});Object.defineProperty(g1,"stringify",{enumerable:!0,get:function(){return c6.stringify}});Object.defineProperty(g1,"nil",{enumerable:!0,get:function(){return c6.nil}});Object.defineProperty(g1,"Name",{enumerable:!0,get:function(){return c6.Name}});Object.defineProperty(g1,"CodeGen",{enumerable:!0,get:function(){return c6.CodeGen}});var fN=K8(),rz=m4(),hN=z5(),p4=V8(),uN=X0(),d4=g4(),U8=y4(),C5=G0(),dz=Rz(),mN=pz(),sz=(X,Q)=>new RegExp(X,Q);sz.code="new RegExp";var lN=["removeAdditional","useDefaults","coerceTypes"],cN=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),pN={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},dN={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},iz=200;function iN(X){var Q,Y,J,G,$,W,z,H,Z,K,D,F,q,U,A,j,w,u,x,h,P,v,o,F0,A0;let k0=X.strict,H1=(Q=X.code)===null||Q===void 0?void 0:Q.optimize,f1=H1===!0||H1===void 0?1:H1||0,A1=(J=(Y=X.code)===null||Y===void 0?void 0:Y.regExp)!==null&&J!==void 0?J:sz,X1=(G=X.uriResolver)!==null&&G!==void 0?G:mN.default;return{strictSchema:(W=($=X.strictSchema)!==null&&$!==void 0?$:k0)!==null&&W!==void 0?W:!0,strictNumbers:(H=(z=X.strictNumbers)!==null&&z!==void 0?z:k0)!==null&&H!==void 0?H:!0,strictTypes:(K=(Z=X.strictTypes)!==null&&Z!==void 0?Z:k0)!==null&&K!==void 0?K:"log",strictTuples:(F=(D=X.strictTuples)!==null&&D!==void 0?D:k0)!==null&&F!==void 0?F:"log",strictRequired:(U=(q=X.strictRequired)!==null&&q!==void 0?q:k0)!==null&&U!==void 0?U:!1,code:X.code?{...X.code,optimize:f1,regExp:A1}:{optimize:f1,regExp:A1},loopRequired:(A=X.loopRequired)!==null&&A!==void 0?A:iz,loopEnum:(j=X.loopEnum)!==null&&j!==void 0?j:iz,meta:(w=X.meta)!==null&&w!==void 0?w:!0,messages:(u=X.messages)!==null&&u!==void 0?u:!0,inlineRefs:(x=X.inlineRefs)!==null&&x!==void 0?x:!0,schemaId:(h=X.schemaId)!==null&&h!==void 0?h:"$id",addUsedSchema:(P=X.addUsedSchema)!==null&&P!==void 0?P:!0,validateSchema:(v=X.validateSchema)!==null&&v!==void 0?v:!0,validateFormats:(o=X.validateFormats)!==null&&o!==void 0?o:!0,unicodeRegExp:(F0=X.unicodeRegExp)!==null&&F0!==void 0?F0:!0,int32range:(A0=X.int32range)!==null&&A0!==void 0?A0:!0,uriResolver:X1}}class L8{constructor(X={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,X=this.opts={...X,...iN(X)};let{es5:Q,lines:Y}=this.opts.code;this.scope=new uN.ValueScope({scope:{},prefixes:cN,es5:Q,lines:Y}),this.logger=tN(X.logger);let J=X.validateFormats;if(X.validateFormats=!1,this.RULES=(0,hN.getRules)(),nz.call(this,pN,X,"NOT SUPPORTED"),nz.call(this,dN,X,"DEPRECATED","warn"),this._metaOpts=sN.call(this),X.formats)oN.call(this);if(this._addVocabularies(),this._addDefaultMetaSchema(),X.keywords)rN.call(this,X.keywords);if(typeof X.meta=="object")this.addMetaSchema(X.meta);nN.call(this),X.validateFormats=J}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:X,meta:Q,schemaId:Y}=this.opts,J=dz;if(Y==="id")J={...dz},J.id=J.$id,delete J.$id;if(Q&&X)this.addMetaSchema(J,J[Y],!1)}defaultMeta(){let{meta:X,schemaId:Q}=this.opts;return this.opts.defaultMeta=typeof X=="object"?X[Q]||X:void 0}validate(X,Q){let Y;if(typeof X=="string"){if(Y=this.getSchema(X),!Y)throw Error(`no schema with key or ref "${X}"`)}else Y=this.compile(X);let J=Y(Q);if(!("$async"in Y))this.errors=Y.errors;return J}compile(X,Q){let Y=this._addSchema(X,Q);return Y.validate||this._compileSchemaEnv(Y)}compileAsync(X,Q){if(typeof this.opts.loadSchema!="function")throw Error("options.loadSchema should be a function");let{loadSchema:Y}=this.opts;return J.call(this,X,Q);async function J(Z,K){await G.call(this,Z.$schema);let D=this._addSchema(Z,K);return D.validate||$.call(this,D)}async function G(Z){if(Z&&!this.getSchema(Z))await J.call(this,{$ref:Z},!0)}async function $(Z){try{return this._compileSchemaEnv(Z)}catch(K){if(!(K instanceof rz.default))throw K;return W.call(this,K),await z.call(this,K.missingSchema),$.call(this,Z)}}function W({missingSchema:Z,missingRef:K}){if(this.refs[Z])throw Error(`AnySchema ${Z} is loaded but ${K} cannot be resolved`)}async function z(Z){let K=await H.call(this,Z);if(!this.refs[Z])await G.call(this,K.$schema);if(!this.refs[Z])this.addSchema(K,Z,Q)}async function H(Z){let K=this._loading[Z];if(K)return K;try{return await(this._loading[Z]=Y(Z))}finally{delete this._loading[Z]}}}addSchema(X,Q,Y,J=this.opts.validateSchema){if(Array.isArray(X)){for(let $ of X)this.addSchema($,void 0,Y,J);return this}let G;if(typeof X==="object"){let{schemaId:$}=this.opts;if(G=X[$],G!==void 0&&typeof G!="string")throw Error(`schema ${$} must be string`)}return Q=(0,d4.normalizeId)(Q||G),this._checkUnique(Q),this.schemas[Q]=this._addSchema(X,Y,Q,J,!0),this}addMetaSchema(X,Q,Y=this.opts.validateSchema){return this.addSchema(X,Q,!0,Y),this}validateSchema(X,Q){if(typeof X=="boolean")return!0;let Y;if(Y=X.$schema,Y!==void 0&&typeof Y!="string")throw Error("$schema must be a string");if(Y=Y||this.opts.defaultMeta||this.defaultMeta(),!Y)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let J=this.validate(Y,X);if(!J&&Q){let G="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(G);else throw Error(G)}return J}getSchema(X){let Q;while(typeof(Q=oz.call(this,X))=="string")X=Q;if(Q===void 0){let{schemaId:Y}=this.opts,J=new p4.SchemaEnv({schema:{},schemaId:Y});if(Q=p4.resolveSchema.call(this,J,X),!Q)return;this.refs[X]=Q}return Q.validate||this._compileSchemaEnv(Q)}removeSchema(X){if(X instanceof RegExp)return this._removeAllSchemas(this.schemas,X),this._removeAllSchemas(this.refs,X),this;switch(typeof X){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let Q=oz.call(this,X);if(typeof Q=="object")this._cache.delete(Q.schema);return delete this.schemas[X],delete this.refs[X],this}case"object":{let Q=X;this._cache.delete(Q);let Y=X[this.opts.schemaId];if(Y)Y=(0,d4.normalizeId)(Y),delete this.schemas[Y],delete this.refs[Y];return this}default:throw Error("ajv.removeSchema: invalid parameter")}}addVocabulary(X){for(let Q of X)this.addKeyword(Q);return this}addKeyword(X,Q){let Y;if(typeof X=="string"){if(Y=X,typeof Q=="object")this.logger.warn("these parameters are deprecated, see docs for addKeyword"),Q.keyword=Y}else if(typeof X=="object"&&Q===void 0){if(Q=X,Y=Q.keyword,Array.isArray(Y)&&!Y.length)throw Error("addKeywords: keyword must be string or non-empty array")}else throw Error("invalid addKeywords parameters");if(XO.call(this,Y,Q),!Q)return(0,C5.eachItem)(Y,(G)=>E5.call(this,G)),this;YO.call(this,Q);let J={...Q,type:(0,U8.getJSONTypes)(Q.type),schemaType:(0,U8.getJSONTypes)(Q.schemaType)};return(0,C5.eachItem)(Y,J.type.length===0?(G)=>E5.call(this,G,J):(G)=>J.type.forEach(($)=>E5.call(this,G,J,$))),this}getKeyword(X){let Q=this.RULES.all[X];return typeof Q=="object"?Q.definition:!!Q}removeKeyword(X){let{RULES:Q}=this;delete Q.keywords[X],delete Q.all[X];for(let Y of Q.rules){let J=Y.rules.findIndex((G)=>G.keyword===X);if(J>=0)Y.rules.splice(J,1)}return this}addFormat(X,Q){if(typeof Q=="string")Q=new RegExp(Q);return this.formats[X]=Q,this}errorsText(X=this.errors,{separator:Q=", ",dataVar:Y="data"}={}){if(!X||X.length===0)return"No errors";return X.map((J)=>`${Y}${J.instancePath} ${J.message}`).reduce((J,G)=>J+Q+G)}$dataMetaSchema(X,Q){let Y=this.RULES.all;X=JSON.parse(JSON.stringify(X));for(let J of Q){let G=J.split("/").slice(1),$=X;for(let W of G)$=$[W];for(let W in Y){let z=Y[W];if(typeof z!="object")continue;let{$data:H}=z.definition,Z=$[W];if(H&&Z)$[W]=az(Z)}}return X}_removeAllSchemas(X,Q){for(let Y in X){let J=X[Y];if(!Q||Q.test(Y)){if(typeof J=="string")delete X[Y];else if(J&&!J.meta)this._cache.delete(J.schema),delete X[Y]}}}_addSchema(X,Q,Y,J=this.opts.validateSchema,G=this.opts.addUsedSchema){let $,{schemaId:W}=this.opts;if(typeof X=="object")$=X[W];else if(this.opts.jtd)throw Error("schema must be object");else if(typeof X!="boolean")throw Error("schema must be object or boolean");let z=this._cache.get(X);if(z!==void 0)return z;Y=(0,d4.normalizeId)($||Y);let H=d4.getSchemaRefs.call(this,X,Y);if(z=new p4.SchemaEnv({schema:X,schemaId:W,meta:Q,baseId:Y,localRefs:H}),this._cache.set(z.schema,z),G&&!Y.startsWith("#")){if(Y)this._checkUnique(Y);this.refs[Y]=z}if(J)this.validateSchema(X,!0);return z}_checkUnique(X){if(this.schemas[X]||this.refs[X])throw Error(`schema with key or id "${X}" already exists`)}_compileSchemaEnv(X){if(X.meta)this._compileMetaSchema(X);else p4.compileSchema.call(this,X);if(!X.validate)throw Error("ajv implementation error");return X.validate}_compileMetaSchema(X){let Q=this.opts;this.opts=this._metaOpts;try{p4.compileSchema.call(this,X)}finally{this.opts=Q}}}L8.ValidationError=fN.default;L8.MissingRefError=rz.default;g1.default=L8;function nz(X,Q,Y,J="error"){for(let G in X){let $=G;if($ in Q)this.logger[J](`${Y}: option ${G}. ${X[$]}`)}}function oz(X){return X=(0,d4.normalizeId)(X),this.schemas[X]||this.refs[X]}function nN(){let X=this.opts.schemas;if(!X)return;if(Array.isArray(X))this.addSchema(X);else for(let Q in X)this.addSchema(X[Q],Q)}function oN(){for(let X in this.opts.formats){let Q=this.opts.formats[X];if(Q)this.addFormat(X,Q)}}function rN(X){if(Array.isArray(X)){this.addVocabulary(X);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let Q in X){let Y=X[Q];if(!Y.keyword)Y.keyword=Q;this.addKeyword(Y)}}function sN(){let X={...this.opts};for(let Q of lN)delete X[Q];return X}var aN={log(){},warn(){},error(){}};function tN(X){if(X===!1)return aN;if(X===void 0)return console;if(X.log&&X.warn&&X.error)return X;throw Error("logger must implement log, warn and error methods")}var eN=/^[a-z_$][a-z0-9_$:-]*$/i;function XO(X,Q){let{RULES:Y}=this;if((0,C5.eachItem)(X,(J)=>{if(Y.keywords[J])throw Error(`Keyword ${J} is already defined`);if(!eN.test(J))throw Error(`Keyword ${J} has invalid name`)}),!Q)return;if(Q.$data&&!(("code"in Q)||("validate"in Q)))throw Error('$data keyword must have "code" or "validate" function')}function E5(X,Q,Y){var J;let G=Q===null||Q===void 0?void 0:Q.post;if(Y&&G)throw Error('keyword with "post" flag cannot have "type"');let{RULES:$}=this,W=G?$.post:$.rules.find(({type:H})=>H===Y);if(!W)W={type:Y,rules:[]},$.rules.push(W);if($.keywords[X]=!0,!Q)return;let z={keyword:X,definition:{...Q,type:(0,U8.getJSONTypes)(Q.type),schemaType:(0,U8.getJSONTypes)(Q.schemaType)}};if(Q.before)QO.call(this,W,z,Q.before);else W.rules.push(z);$.all[X]=z,(J=Q.implements)===null||J===void 0||J.forEach((H)=>this.addKeyword(H))}function QO(X,Q,Y){let J=X.rules.findIndex((G)=>G.keyword===Y);if(J>=0)X.rules.splice(J,0,Q);else X.rules.push(Q),this.logger.warn(`rule ${Y} is not defined`)}function YO(X){let{metaSchema:Q}=X;if(Q===void 0)return;if(X.$data&&this.opts.$data)Q=az(Q);X.validateSchema=this.compile(Q,!0)}var JO={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function az(X){return{anyOf:[X,JO]}}});var XB=g((ez)=>{Object.defineProperty(ez,"__esModule",{value:!0});var WO={keyword:"id",code(){throw Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};ez.default=WO});var WB=g((GB)=>{Object.defineProperty(GB,"__esModule",{value:!0});GB.callRef=GB.getValidate=void 0;var BO=m4(),QB=B1(),t0=X0(),p6=x1(),YB=V8(),A8=G0(),ZO={keyword:"$ref",schemaType:"string",code(X){let{gen:Q,schema:Y,it:J}=X,{baseId:G,schemaEnv:$,validateName:W,opts:z,self:H}=J,{root:Z}=$;if((Y==="#"||Y==="#/")&&G===Z.baseId)return D();let K=YB.resolveRef.call(H,Z,G,Y);if(K===void 0)throw new BO.default(J.opts.uriResolver,G,Y);if(K instanceof YB.SchemaEnv)return F(K);return q(K);function D(){if($===Z)return N8(X,W,$,$.$async);let U=Q.scopeValue("root",{ref:Z});return N8(X,t0._`${U}.validate`,Z,Z.$async)}function F(U){let A=JB(X,U);N8(X,A,U,U.$async)}function q(U){let A=Q.scopeValue("schema",z.code.source===!0?{ref:U,code:(0,t0.stringify)(U)}:{ref:U}),j=Q.name("valid"),w=X.subschema({schema:U,dataTypes:[],schemaPath:t0.nil,topSchemaRef:A,errSchemaPath:Y},j);X.mergeEvaluated(w),X.ok(j)}}};function JB(X,Q){let{gen:Y}=X;return Q.validate?Y.scopeValue("validate",{ref:Q.validate}):t0._`${Y.scopeValue("wrapper",{ref:Q})}.validate`}GB.getValidate=JB;function N8(X,Q,Y,J){let{gen:G,it:$}=X,{allErrors:W,schemaEnv:z,opts:H}=$,Z=H.passContext?p6.default.this:t0.nil;if(J)K();else D();function K(){if(!z.$async)throw Error("async schema referenced by sync schema");let U=G.let("valid");G.try(()=>{if(G.code(t0._`await ${(0,QB.callValidateCode)(X,Q,Z)}`),q(Q),!W)G.assign(U,!0)},(A)=>{if(G.if(t0._`!(${A} instanceof ${$.ValidationError})`,()=>G.throw(A)),F(A),!W)G.assign(U,!1)}),X.ok(U)}function D(){X.result((0,QB.callValidateCode)(X,Q,Z),()=>q(Q),()=>F(Q))}function F(U){let A=t0._`${U}.errors`;G.assign(p6.default.vErrors,t0._`${p6.default.vErrors} === null ? ${A} : ${p6.default.vErrors}.concat(${A})`),G.assign(p6.default.errors,t0._`${p6.default.vErrors}.length`)}function q(U){var A;if(!$.opts.unevaluated)return;let j=(A=Y===null||Y===void 0?void 0:Y.validate)===null||A===void 0?void 0:A.evaluated;if($.props!==!0)if(j&&!j.dynamicProps){if(j.props!==void 0)$.props=A8.mergeEvaluated.props(G,j.props,$.props)}else{let w=G.var("props",t0._`${U}.evaluated.props`);$.props=A8.mergeEvaluated.props(G,w,$.props,t0.Name)}if($.items!==!0)if(j&&!j.dynamicItems){if(j.items!==void 0)$.items=A8.mergeEvaluated.items(G,j.items,$.items)}else{let w=G.var("items",t0._`${U}.evaluated.items`);$.items=A8.mergeEvaluated.items(G,w,$.items,t0.Name)}}}GB.callRef=N8;GB.default=ZO});var BB=g((zB)=>{Object.defineProperty(zB,"__esModule",{value:!0});var DO=XB(),VO=WB(),FO=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",DO.default,VO.default];zB.default=FO});var HB=g((ZB)=>{Object.defineProperty(ZB,"__esModule",{value:!0});var O8=X0(),e1=O8.operators,P8={maximum:{okStr:"<=",ok:e1.LTE,fail:e1.GT},minimum:{okStr:">=",ok:e1.GTE,fail:e1.LT},exclusiveMaximum:{okStr:"<",ok:e1.LT,fail:e1.GTE},exclusiveMinimum:{okStr:">",ok:e1.GT,fail:e1.LTE}},MO={message:({keyword:X,schemaCode:Q})=>O8.str`must be ${P8[X].okStr} ${Q}`,params:({keyword:X,schemaCode:Q})=>O8._`{comparison: ${P8[X].okStr}, limit: ${Q}}`},UO={keyword:Object.keys(P8),type:"number",schemaType:"number",$data:!0,error:MO,code(X){let{keyword:Q,data:Y,schemaCode:J}=X;X.fail$data(O8._`${Y} ${P8[Q].fail} ${J} || isNaN(${Y})`)}};ZB.default=UO});var DB=g((KB)=>{Object.defineProperty(KB,"__esModule",{value:!0});var i4=X0(),AO={message:({schemaCode:X})=>i4.str`must be multiple of ${X}`,params:({schemaCode:X})=>i4._`{multipleOf: ${X}}`},NO={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:AO,code(X){let{gen:Q,data:Y,schemaCode:J,it:G}=X,$=G.opts.multipleOfPrecision,W=Q.let("res"),z=$?i4._`Math.abs(Math.round(${W}) - ${W}) > 1e-${$}`:i4._`${W} !== parseInt(${W})`;X.fail$data(i4._`(${J} === 0 || (${W} = ${Y}/${J}, ${z}))`)}};KB.default=NO});var qB=g((FB)=>{Object.defineProperty(FB,"__esModule",{value:!0});function VB(X){let Q=X.length,Y=0,J=0,G;while(J<Q)if(Y++,G=X.charCodeAt(J++),G>=55296&&G<=56319&&J<Q){if(G=X.charCodeAt(J),(G&64512)===56320)J++}return Y}FB.default=VB;VB.code='require("ajv/dist/runtime/ucs2length").default'});var UB=g((MB)=>{Object.defineProperty(MB,"__esModule",{value:!0});var V6=X0(),wO=G0(),RO=qB(),IO={message({keyword:X,schemaCode:Q}){let Y=X==="maxLength"?"more":"fewer";return V6.str`must NOT have ${Y} than ${Q} characters`},params:({schemaCode:X})=>V6._`{limit: ${X}}`},jO={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:IO,code(X){let{keyword:Q,data:Y,schemaCode:J,it:G}=X,$=Q==="maxLength"?V6.operators.GT:V6.operators.LT,W=G.opts.unicode===!1?V6._`${Y}.length`:V6._`${(0,wO.useFunc)(X.gen,RO.default)}(${Y})`;X.fail$data(V6._`${W} ${$} ${J}`)}};MB.default=jO});var AB=g((LB)=>{Object.defineProperty(LB,"__esModule",{value:!0});var bO=B1(),SO=G0(),d6=X0(),EO={message:({schemaCode:X})=>d6.str`must match pattern "${X}"`,params:({schemaCode:X})=>d6._`{pattern: ${X}}`},CO={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:EO,code(X){let{gen:Q,data:Y,$data:J,schema:G,schemaCode:$,it:W}=X,z=W.opts.unicodeRegExp?"u":"";if(J){let{regExp:H}=W.opts.code,Z=H.code==="new RegExp"?d6._`new RegExp`:(0,SO.useFunc)(Q,H),K=Q.let("valid");Q.try(()=>Q.assign(K,d6._`${Z}(${$}, ${z}).test(${Y})`),()=>Q.assign(K,!1)),X.fail$data(d6._`!${K}`)}else{let H=(0,bO.usePattern)(X,G);X.fail$data(d6._`!${H}.test(${Y})`)}}};LB.default=CO});var OB=g((NB)=>{Object.defineProperty(NB,"__esModule",{value:!0});var n4=X0(),vO={message({keyword:X,schemaCode:Q}){let Y=X==="maxProperties"?"more":"fewer";return n4.str`must NOT have ${Y} than ${Q} properties`},params:({schemaCode:X})=>n4._`{limit: ${X}}`},_O={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:vO,code(X){let{keyword:Q,data:Y,schemaCode:J}=X,G=Q==="maxProperties"?n4.operators.GT:n4.operators.LT;X.fail$data(n4._`Object.keys(${Y}).length ${G} ${J}`)}};NB.default=_O});var wB=g((PB)=>{Object.defineProperty(PB,"__esModule",{value:!0});var o4=B1(),r4=X0(),yO=G0(),gO={message:({params:{missingProperty:X}})=>r4.str`must have required property '${X}'`,params:({params:{missingProperty:X}})=>r4._`{missingProperty: ${X}}`},fO={keyword:"required",type:"object",schemaType:"array",$data:!0,error:gO,code(X){let{gen:Q,schema:Y,schemaCode:J,data:G,$data:$,it:W}=X,{opts:z}=W;if(!$&&Y.length===0)return;let H=Y.length>=z.loopRequired;if(W.allErrors)Z();else K();if(z.strictRequired){let q=X.parentSchema.properties,{definedProperties:U}=X.it;for(let A of Y)if((q===null||q===void 0?void 0:q[A])===void 0&&!U.has(A)){let j=W.schemaEnv.baseId+W.errSchemaPath,w=`required property "${A}" is not defined at "${j}" (strictRequired)`;(0,yO.checkStrictMode)(W,w,W.opts.strictRequired)}}function Z(){if(H||$)X.block$data(r4.nil,D);else for(let q of Y)(0,o4.checkReportMissingProp)(X,q)}function K(){let q=Q.let("missing");if(H||$){let U=Q.let("valid",!0);X.block$data(U,()=>F(q,U)),X.ok(U)}else Q.if((0,o4.checkMissingProp)(X,Y,q)),(0,o4.reportMissingProp)(X,q),Q.else()}function D(){Q.forOf("prop",J,(q)=>{X.setParams({missingProperty:q}),Q.if((0,o4.noPropertyInData)(Q,G,q,z.ownProperties),()=>X.error())})}function F(q,U){X.setParams({missingProperty:q}),Q.forOf(q,J,()=>{Q.assign(U,(0,o4.propertyInData)(Q,G,q,z.ownProperties)),Q.if((0,r4.not)(U),()=>{X.error(),Q.break()})},r4.nil)}}};PB.default=fO});var IB=g((RB)=>{Object.defineProperty(RB,"__esModule",{value:!0});var s4=X0(),uO={message({keyword:X,schemaCode:Q}){let Y=X==="maxItems"?"more":"fewer";return s4.str`must NOT have ${Y} than ${Q} items`},params:({schemaCode:X})=>s4._`{limit: ${X}}`},mO={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:uO,code(X){let{keyword:Q,data:Y,schemaCode:J}=X,G=Q==="maxItems"?s4.operators.GT:s4.operators.LT;X.fail$data(s4._`${Y}.length ${G} ${J}`)}};RB.default=mO});var w8=g((TB)=>{Object.defineProperty(TB,"__esModule",{value:!0});var jB=q5();jB.code='require("ajv/dist/runtime/equal").default';TB.default=jB});var SB=g((bB)=>{Object.defineProperty(bB,"__esModule",{value:!0});var k5=y4(),u0=X0(),pO=G0(),dO=w8(),iO={message:({params:{i:X,j:Q}})=>u0.str`must NOT have duplicate items (items ## ${Q} and ${X} are identical)`,params:({params:{i:X,j:Q}})=>u0._`{i: ${X}, j: ${Q}}`},nO={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:iO,code(X){let{gen:Q,data:Y,$data:J,schema:G,parentSchema:$,schemaCode:W,it:z}=X;if(!J&&!G)return;let H=Q.let("valid"),Z=$.items?(0,k5.getSchemaTypes)($.items):[];X.block$data(H,K,u0._`${W} === false`),X.ok(H);function K(){let U=Q.let("i",u0._`${Y}.length`),A=Q.let("j");X.setParams({i:U,j:A}),Q.assign(H,!0),Q.if(u0._`${U} > 1`,()=>(D()?F:q)(U,A))}function D(){return Z.length>0&&!Z.some((U)=>U==="object"||U==="array")}function F(U,A){let j=Q.name("item"),w=(0,k5.checkDataTypes)(Z,j,z.opts.strictNumbers,k5.DataType.Wrong),u=Q.const("indices",u0._`{}`);Q.for(u0._`;${U}--;`,()=>{if(Q.let(j,u0._`${Y}[${U}]`),Q.if(w,u0._`continue`),Z.length>1)Q.if(u0._`typeof ${j} == "string"`,u0._`${j} += "_"`);Q.if(u0._`typeof ${u}[${j}] == "number"`,()=>{Q.assign(A,u0._`${u}[${j}]`),X.error(),Q.assign(H,!1).break()}).code(u0._`${u}[${j}] = ${U}`)})}function q(U,A){let j=(0,pO.useFunc)(Q,dO.default),w=Q.name("outer");Q.label(w).for(u0._`;${U}--;`,()=>Q.for(u0._`${A} = ${U}; ${A}--;`,()=>Q.if(u0._`${j}(${Y}[${U}], ${Y}[${A}])`,()=>{X.error(),Q.assign(H,!1).break(w)})))}}};bB.default=nO});var CB=g((EB)=>{Object.defineProperty(EB,"__esModule",{value:!0});var v5=X0(),rO=G0(),sO=w8(),aO={message:"must be equal to constant",params:({schemaCode:X})=>v5._`{allowedValue: ${X}}`},tO={keyword:"const",$data:!0,error:aO,code(X){let{gen:Q,data:Y,$data:J,schemaCode:G,schema:$}=X;if(J||$&&typeof $=="object")X.fail$data(v5._`!${(0,rO.useFunc)(Q,sO.default)}(${Y}, ${G})`);else X.fail(v5._`${$} !== ${Y}`)}};EB.default=tO});var vB=g((kB)=>{Object.defineProperty(kB,"__esModule",{value:!0});var a4=X0(),XP=G0(),QP=w8(),YP={message:"must be equal to one of the allowed values",params:({schemaCode:X})=>a4._`{allowedValues: ${X}}`},JP={keyword:"enum",schemaType:"array",$data:!0,error:YP,code(X){let{gen:Q,data:Y,$data:J,schema:G,schemaCode:$,it:W}=X;if(!J&&G.length===0)throw Error("enum must have non-empty array");let z=G.length>=W.opts.loopEnum,H,Z=()=>H!==null&&H!==void 0?H:H=(0,XP.useFunc)(Q,QP.default),K;if(z||J)K=Q.let("valid"),X.block$data(K,D);else{if(!Array.isArray(G))throw Error("ajv implementation error");let q=Q.const("vSchema",$);K=(0,a4.or)(...G.map((U,A)=>F(q,A)))}X.pass(K);function D(){Q.assign(K,!1),Q.forOf("v",$,(q)=>Q.if(a4._`${Z()}(${Y}, ${q})`,()=>Q.assign(K,!0).break()))}function F(q,U){let A=G[U];return typeof A==="object"&&A!==null?a4._`${Z()}(${Y}, ${q}[${U}])`:a4._`${Y} === ${A}`}}};kB.default=JP});var xB=g((_B)=>{Object.defineProperty(_B,"__esModule",{value:!0});var $P=HB(),WP=DB(),zP=UB(),BP=AB(),ZP=OB(),HP=wB(),KP=IB(),DP=SB(),VP=CB(),FP=vB(),qP=[$P.default,WP.default,zP.default,BP.default,ZP.default,HP.default,KP.default,DP.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},VP.default,FP.default];_B.default=qP});var x5=g((gB)=>{Object.defineProperty(gB,"__esModule",{value:!0});gB.validateAdditionalItems=void 0;var F6=X0(),_5=G0(),UP={message:({params:{len:X}})=>F6.str`must NOT have more than ${X} items`,params:({params:{len:X}})=>F6._`{limit: ${X}}`},LP={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:UP,code(X){let{parentSchema:Q,it:Y}=X,{items:J}=Q;if(!Array.isArray(J)){(0,_5.checkStrictMode)(Y,'"additionalItems" is ignored when "items" is not an array of schemas');return}yB(X,J)}};function yB(X,Q){let{gen:Y,schema:J,data:G,keyword:$,it:W}=X;W.items=!0;let z=Y.const("len",F6._`${G}.length`);if(J===!1)X.setParams({len:Q.length}),X.pass(F6._`${z} <= ${Q.length}`);else if(typeof J=="object"&&!(0,_5.alwaysValidSchema)(W,J)){let Z=Y.var("valid",F6._`${z} <= ${Q.length}`);Y.if((0,F6.not)(Z),()=>H(Z)),X.ok(Z)}function H(Z){Y.forRange("i",Q.length,z,(K)=>{if(X.subschema({keyword:$,dataProp:K,dataPropType:_5.Type.Num},Z),!W.allErrors)Y.if((0,F6.not)(Z),()=>Y.break())})}}gB.validateAdditionalItems=yB;gB.default=LP});var y5=g((mB)=>{Object.defineProperty(mB,"__esModule",{value:!0});mB.validateTuple=void 0;var hB=X0(),R8=G0(),NP=B1(),OP={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(X){let{schema:Q,it:Y}=X;if(Array.isArray(Q))return uB(X,"additionalItems",Q);if(Y.items=!0,(0,R8.alwaysValidSchema)(Y,Q))return;X.ok((0,NP.validateArray)(X))}};function uB(X,Q,Y=X.schema){let{gen:J,parentSchema:G,data:$,keyword:W,it:z}=X;if(K(G),z.opts.unevaluated&&Y.length&&z.items!==!0)z.items=R8.mergeEvaluated.items(J,Y.length,z.items);let H=J.name("valid"),Z=J.const("len",hB._`${$}.length`);Y.forEach((D,F)=>{if((0,R8.alwaysValidSchema)(z,D))return;J.if(hB._`${Z} > ${F}`,()=>X.subschema({keyword:W,schemaProp:F,dataProp:F},H)),X.ok(H)});function K(D){let{opts:F,errSchemaPath:q}=z,U=Y.length,A=U===D.minItems&&(U===D.maxItems||D[Q]===!1);if(F.strictTuples&&!A){let j=`"${W}" is ${U}-tuple, but minItems or maxItems/${Q} are not specified or different at path "${q}"`;(0,R8.checkStrictMode)(z,j,F.strictTuples)}}}mB.validateTuple=uB;mB.default=OP});var pB=g((cB)=>{Object.defineProperty(cB,"__esModule",{value:!0});var wP=y5(),RP={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:(X)=>(0,wP.validateTuple)(X,"items")};cB.default=RP});var nB=g((iB)=>{Object.defineProperty(iB,"__esModule",{value:!0});var dB=X0(),jP=G0(),TP=B1(),bP=x5(),SP={message:({params:{len:X}})=>dB.str`must NOT have more than ${X} items`,params:({params:{len:X}})=>dB._`{limit: ${X}}`},EP={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:SP,code(X){let{schema:Q,parentSchema:Y,it:J}=X,{prefixItems:G}=Y;if(J.items=!0,(0,jP.alwaysValidSchema)(J,Q))return;if(G)(0,bP.validateAdditionalItems)(X,G);else X.ok((0,TP.validateArray)(X))}};iB.default=EP});var rB=g((oB)=>{Object.defineProperty(oB,"__esModule",{value:!0});var Z1=X0(),I8=G0(),kP={message:({params:{min:X,max:Q}})=>Q===void 0?Z1.str`must contain at least ${X} valid item(s)`:Z1.str`must contain at least ${X} and no more than ${Q} valid item(s)`,params:({params:{min:X,max:Q}})=>Q===void 0?Z1._`{minContains: ${X}}`:Z1._`{minContains: ${X}, maxContains: ${Q}}`},vP={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:kP,code(X){let{gen:Q,schema:Y,parentSchema:J,data:G,it:$}=X,W,z,{minContains:H,maxContains:Z}=J;if($.opts.next)W=H===void 0?1:H,z=Z;else W=1;let K=Q.const("len",Z1._`${G}.length`);if(X.setParams({min:W,max:z}),z===void 0&&W===0){(0,I8.checkStrictMode)($,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(z!==void 0&&W>z){(0,I8.checkStrictMode)($,'"minContains" > "maxContains" is always invalid'),X.fail();return}if((0,I8.alwaysValidSchema)($,Y)){let A=Z1._`${K} >= ${W}`;if(z!==void 0)A=Z1._`${A} && ${K} <= ${z}`;X.pass(A);return}$.items=!0;let D=Q.name("valid");if(z===void 0&&W===1)q(D,()=>Q.if(D,()=>Q.break()));else if(W===0){if(Q.let(D,!0),z!==void 0)Q.if(Z1._`${G}.length > 0`,F)}else Q.let(D,!1),F();X.result(D,()=>X.reset());function F(){let A=Q.name("_valid"),j=Q.let("count",0);q(A,()=>Q.if(A,()=>U(j)))}function q(A,j){Q.forRange("i",0,K,(w)=>{X.subschema({keyword:"contains",dataProp:w,dataPropType:I8.Type.Num,compositeRule:!0},A),j()})}function U(A){if(Q.code(Z1._`${A}++`),z===void 0)Q.if(Z1._`${A} >= ${W}`,()=>Q.assign(D,!0).break());else if(Q.if(Z1._`${A} > ${z}`,()=>Q.assign(D,!1).break()),W===1)Q.assign(D,!0);else Q.if(Z1._`${A} >= ${W}`,()=>Q.assign(D,!0))}}};oB.default=vP});var QZ=g((tB)=>{Object.defineProperty(tB,"__esModule",{value:!0});tB.validateSchemaDeps=tB.validatePropertyDeps=tB.error=void 0;var g5=X0(),xP=G0(),t4=B1();tB.error={message:({params:{property:X,depsCount:Q,deps:Y}})=>{let J=Q===1?"property":"properties";return g5.str`must have ${J} ${Y} when property ${X} is present`},params:({params:{property:X,depsCount:Q,deps:Y,missingProperty:J}})=>g5._`{property: ${X},
|
|
32
32
|
missingProperty: ${J},
|
|
33
33
|
depsCount: ${Q},
|
|
34
|
-
deps: ${Y}}`};var yP={keyword:"dependencies",type:"object",schemaType:"object",error:tB.error,code(X){let[Q,Y]=gP(X);sB(X,Q),aB(X,Y)}};function gP({schema:X}){let Q={},Y={};for(let J in X){if(J==="__proto__")continue;let G=Array.isArray(X[J])?Q:Y;G[J]=X[J]}return[Q,Y]}function sB(X,Q=X.schema){let{gen:Y,data:J,it:G}=X;if(Object.keys(Q).length===0)return;let $=Y.let("missing");for(let W in Q){let z=Q[W];if(z.length===0)continue;let H=(0,t4.propertyInData)(Y,J,W,G.opts.ownProperties);if(X.setParams({property:W,depsCount:z.length,deps:z.join(", ")}),G.allErrors)Y.if(H,()=>{for(let Z of z)(0,t4.checkReportMissingProp)(X,Z)});else Y.if(g5._`${H} && (${(0,t4.checkMissingProp)(X,z,$)})`),(0,t4.reportMissingProp)(X,$),Y.else()}}tB.validatePropertyDeps=sB;function aB(X,Q=X.schema){let{gen:Y,data:J,keyword:G,it:$}=X,W=Y.name("valid");for(let z in Q){if((0,xP.alwaysValidSchema)($,Q[z]))continue;Y.if((0,t4.propertyInData)(Y,J,z,$.opts.ownProperties),()=>{let H=X.subschema({keyword:G,schemaProp:z},W);X.mergeValidEvaluated(H,W)},()=>Y.var(W,!0)),X.ok(W)}}tB.validateSchemaDeps=aB;tB.default=yP});var GZ=g((JZ)=>{Object.defineProperty(JZ,"__esModule",{value:!0});var YZ=X0(),uP=G0(),mP={message:"property name must be valid",params:({params:X})=>YZ._`{propertyName: ${X.propertyName}}`},lP={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:mP,code(X){let{gen:Q,schema:Y,data:J,it:G}=X;if((0,uP.alwaysValidSchema)(G,Y))return;let $=Q.name("valid");Q.forIn("key",J,(W)=>{X.setParams({propertyName:W}),X.subschema({keyword:"propertyNames",data:W,dataTypes:["string"],propertyName:W,compositeRule:!0},$),Q.if((0,YZ.not)($),()=>{if(X.error(!0),!G.allErrors)Q.break()})}),X.ok($)}};JZ.default=lP});var f5=g(($Z)=>{Object.defineProperty($Z,"__esModule",{value:!0});var j8=B1(),U1=X0(),pP=x1(),T8=G0(),dP={message:"must NOT have additional properties",params:({params:X})=>U1._`{additionalProperty: ${X.additionalProperty}}`},iP={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:dP,code(X){let{gen:Q,schema:Y,parentSchema:J,data:G,errsCount:$,it:W}=X;if(!$)throw Error("ajv implementation error");let{allErrors:z,opts:H}=W;if(W.props=!0,H.removeAdditional!=="all"&&(0,T8.alwaysValidSchema)(W,Y))return;let Z=(0,j8.allSchemaProperties)(J.properties),K=(0,j8.allSchemaProperties)(J.patternProperties);D(),X.ok(U1._`${$} === ${pP.default.errors}`);function D(){Q.forIn("key",G,(j)=>{if(!Z.length&&!K.length)U(j);else Q.if(F(j),()=>U(j))})}function F(j){let w;if(Z.length>8){let u=(0,T8.schemaRefOrVal)(W,J.properties,"properties");w=(0,j8.isOwnProperty)(Q,u,j)}else if(Z.length)w=(0,U1.or)(...Z.map((u)=>U1._`${j} === ${u}`));else w=U1.nil;if(K.length)w=(0,U1.or)(w,...K.map((u)=>U1._`${(0,j8.usePattern)(X,u)}.test(${j})`));return(0,U1.not)(w)}function q(j){Q.code(U1._`delete ${G}[${j}]`)}function U(j){if(H.removeAdditional==="all"||H.removeAdditional&&Y===!1){q(j);return}if(Y===!1){if(X.setParams({additionalProperty:j}),X.error(),!z)Q.break();return}if(typeof Y=="object"&&!(0,T8.alwaysValidSchema)(W,Y)){let w=Q.name("valid");if(H.removeAdditional==="failing")A(j,w,!1),Q.if((0,U1.not)(w),()=>{X.reset(),q(j)});else if(A(j,w),!z)Q.if((0,U1.not)(w),()=>Q.break())}}function A(j,w,u){let x={keyword:"additionalProperties",dataProp:j,dataPropType:T8.Type.Str};if(u===!1)Object.assign(x,{compositeRule:!0,createErrors:!1,allErrors:!1});X.subschema(x,w)}}};$Z.default=iP});var ZZ=g((BZ)=>{Object.defineProperty(BZ,"__esModule",{value:!0});var oP=u4(),WZ=B1(),h5=G0(),zZ=f5(),rP={keyword:"properties",type:"object",schemaType:"object",code(X){let{gen:Q,schema:Y,parentSchema:J,data:G,it:$}=X;if($.opts.removeAdditional==="all"&&J.additionalProperties===void 0)zZ.default.code(new oP.KeywordCxt($,zZ.default,"additionalProperties"));let W=(0,WZ.allSchemaProperties)(Y);for(let D of W)$.definedProperties.add(D);if($.opts.unevaluated&&W.length&&$.props!==!0)$.props=h5.mergeEvaluated.props(Q,(0,h5.toHash)(W),$.props);let z=W.filter((D)=>!(0,h5.alwaysValidSchema)($,Y[D]));if(z.length===0)return;let H=Q.name("valid");for(let D of z){if(Z(D))K(D);else{if(Q.if((0,WZ.propertyInData)(Q,G,D,$.opts.ownProperties)),K(D),!$.allErrors)Q.else().var(H,!0);Q.endIf()}X.it.definedProperties.add(D),X.ok(H)}function Z(D){return $.opts.useDefaults&&!$.compositeRule&&Y[D].default!==void 0}function K(D){X.subschema({keyword:"properties",schemaProp:D,dataProp:D},H)}}};BZ.default=rP});var FZ=g((VZ)=>{Object.defineProperty(VZ,"__esModule",{value:!0});var HZ=B1(),b8=X0(),KZ=G0(),DZ=G0(),aP={keyword:"patternProperties",type:"object",schemaType:"object",code(X){let{gen:Q,schema:Y,data:J,parentSchema:G,it:$}=X,{opts:W}=$,z=(0,HZ.allSchemaProperties)(Y),H=z.filter((A)=>(0,KZ.alwaysValidSchema)($,Y[A]));if(z.length===0||H.length===z.length&&(!$.opts.unevaluated||$.props===!0))return;let Z=W.strictSchema&&!W.allowMatchingProperties&&G.properties,K=Q.name("valid");if($.props!==!0&&!($.props instanceof b8.Name))$.props=(0,DZ.evaluatedPropsToName)(Q,$.props);let{props:D}=$;F();function F(){for(let A of z){if(Z)q(A);if($.allErrors)U(A);else Q.var(K,!0),U(A),Q.if(K)}}function q(A){for(let j in Z)if(new RegExp(A).test(j))(0,KZ.checkStrictMode)($,`property ${j} matches pattern ${A} (use allowMatchingProperties)`)}function U(A){Q.forIn("key",J,(j)=>{Q.if(b8._`${(0,HZ.usePattern)(X,A)}.test(${j})`,()=>{let w=H.includes(A);if(!w)X.subschema({keyword:"patternProperties",schemaProp:A,dataProp:j,dataPropType:DZ.Type.Str},K);if($.opts.unevaluated&&D!==!0)Q.assign(b8._`${D}[${j}]`,!0);else if(!w&&!$.allErrors)Q.if((0,b8.not)(K),()=>Q.break())})})}}};VZ.default=aP});var MZ=g((qZ)=>{Object.defineProperty(qZ,"__esModule",{value:!0});var eP=G0(),Xw={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(X){let{gen:Q,schema:Y,it:J}=X;if((0,eP.alwaysValidSchema)(J,Y)){X.fail();return}let G=Q.name("valid");X.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},G),X.failResult(G,()=>X.reset(),()=>X.error())},error:{message:"must NOT be valid"}};qZ.default=Xw});var LZ=g((UZ)=>{Object.defineProperty(UZ,"__esModule",{value:!0});var Yw=B1(),Jw={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Yw.validateUnion,error:{message:"must match a schema in anyOf"}};UZ.default=Jw});var NZ=g((AZ)=>{Object.defineProperty(AZ,"__esModule",{value:!0});var S8=X0(),$w=G0(),Ww={message:"must match exactly one schema in oneOf",params:({params:X})=>S8._`{passingSchemas: ${X.passing}}`},zw={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Ww,code(X){let{gen:Q,schema:Y,parentSchema:J,it:G}=X;if(!Array.isArray(Y))throw Error("ajv implementation error");if(G.opts.discriminator&&J.discriminator)return;let $=Y,W=Q.let("valid",!1),z=Q.let("passing",null),H=Q.name("_valid");X.setParams({passing:z}),Q.block(Z),X.result(W,()=>X.reset(),()=>X.error(!0));function Z(){$.forEach((K,D)=>{let F;if((0,$w.alwaysValidSchema)(G,K))Q.var(H,!0);else F=X.subschema({keyword:"oneOf",schemaProp:D,compositeRule:!0},H);if(D>0)Q.if(S8._`${H} && ${W}`).assign(W,!1).assign(z,S8._`[${z}, ${D}]`).else();Q.if(H,()=>{if(Q.assign(W,!0),Q.assign(z,D),F)X.mergeEvaluated(F,S8.Name)})})}}};AZ.default=zw});var PZ=g((OZ)=>{Object.defineProperty(OZ,"__esModule",{value:!0});var Zw=G0(),Hw={keyword:"allOf",schemaType:"array",code(X){let{gen:Q,schema:Y,it:J}=X;if(!Array.isArray(Y))throw Error("ajv implementation error");let G=Q.name("valid");Y.forEach(($,W)=>{if((0,Zw.alwaysValidSchema)(J,$))return;let z=X.subschema({keyword:"allOf",schemaProp:W},G);X.ok(G),X.mergeEvaluated(z)})}};OZ.default=Hw});var jZ=g((IZ)=>{Object.defineProperty(IZ,"__esModule",{value:!0});var E8=X0(),RZ=G0(),Dw={message:({params:X})=>E8.str`must match "${X.ifClause}" schema`,params:({params:X})=>E8._`{failingKeyword: ${X.ifClause}}`},Vw={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Dw,code(X){let{gen:Q,parentSchema:Y,it:J}=X;if(Y.then===void 0&&Y.else===void 0)(0,RZ.checkStrictMode)(J,'"if" without "then" and "else" is ignored');let G=wZ(J,"then"),$=wZ(J,"else");if(!G&&!$)return;let W=Q.let("valid",!0),z=Q.name("_valid");if(H(),X.reset(),G&&$){let K=Q.let("ifClause");X.setParams({ifClause:K}),Q.if(z,Z("then",K),Z("else",K))}else if(G)Q.if(z,Z("then"));else Q.if((0,E8.not)(z),Z("else"));X.pass(W,()=>X.error(!0));function H(){let K=X.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},z);X.mergeEvaluated(K)}function Z(K,D){return()=>{let F=X.subschema({keyword:K},z);if(Q.assign(W,z),X.mergeValidEvaluated(F,W),D)Q.assign(D,E8._`${K}`);else X.setParams({ifClause:K})}}}};function wZ(X,Q){let Y=X.schema[Q];return Y!==void 0&&!(0,RZ.alwaysValidSchema)(X,Y)}IZ.default=Vw});var bZ=g((TZ)=>{Object.defineProperty(TZ,"__esModule",{value:!0});var qw=G0(),Mw={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:X,parentSchema:Q,it:Y}){if(Q.if===void 0)(0,qw.checkStrictMode)(Y,`"${X}" without "if" is ignored`)}};TZ.default=Mw});var EZ=g((SZ)=>{Object.defineProperty(SZ,"__esModule",{value:!0});var Lw=x5(),Aw=pB(),Nw=y5(),Ow=nB(),Pw=rB(),ww=QZ(),Rw=GZ(),Iw=f5(),jw=ZZ(),Tw=FZ(),bw=MZ(),Sw=LZ(),Ew=NZ(),Cw=PZ(),kw=jZ(),vw=bZ();function _w(X=!1){let Q=[bw.default,Sw.default,Ew.default,Cw.default,kw.default,vw.default,Rw.default,Iw.default,ww.default,jw.default,Tw.default];if(X)Q.push(Aw.default,Ow.default);else Q.push(Lw.default,Nw.default);return Q.push(Pw.default),Q}SZ.default=_w});var kZ=g((CZ)=>{Object.defineProperty(CZ,"__esModule",{value:!0});var E0=X0(),yw={message:({schemaCode:X})=>E0.str`must match format "${X}"`,params:({schemaCode:X})=>E0._`{format: ${X}}`},gw={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:yw,code(X,Q){let{gen:Y,data:J,$data:G,schema:$,schemaCode:W,it:z}=X,{opts:H,errSchemaPath:Z,schemaEnv:K,self:D}=z;if(!H.validateFormats)return;if(G)F();else q();function F(){let U=Y.scopeValue("formats",{ref:D.formats,code:H.code.formats}),A=Y.const("fDef",E0._`${U}[${W}]`),j=Y.let("fType"),w=Y.let("format");Y.if(E0._`typeof ${A} == "object" && !(${A} instanceof RegExp)`,()=>Y.assign(j,E0._`${A}.type || "string"`).assign(w,E0._`${A}.validate`),()=>Y.assign(j,E0._`"string"`).assign(w,A)),X.fail$data((0,E0.or)(u(),x()));function u(){if(H.strictSchema===!1)return E0.nil;return E0._`${W} && !${w}`}function x(){let h=K.$async?E0._`(${A}.async ? await ${w}(${J}) : ${w}(${J}))`:E0._`${w}(${J})`,P=E0._`(typeof ${w} == "function" ? ${h} : ${w}.test(${J}))`;return E0._`${w} && ${w} !== true && ${j} === ${Q} && !${P}`}}function q(){let U=D.formats[$];if(!U){u();return}if(U===!0)return;let[A,j,w]=x(U);if(A===Q)X.pass(h());function u(){if(H.strictSchema===!1){D.logger.warn(P());return}throw Error(P());function P(){return`unknown format "${$}" ignored in schema at path "${Z}"`}}function x(P){let v=P instanceof RegExp?(0,E0.regexpCode)(P):H.code.formats?E0._`${H.code.formats}${(0,E0.getProperty)($)}`:void 0,o=Y.scopeValue("formats",{key:$,ref:P,code:v});if(typeof P=="object"&&!(P instanceof RegExp))return[P.type||"string",P.validate,E0._`${o}.validate`];return["string",P,o]}function h(){if(typeof U=="object"&&!(U instanceof RegExp)&&U.async){if(!K.$async)throw Error("async format in sync schema");return E0._`await ${w}(${J})`}return typeof j=="function"?E0._`${w}(${J})`:E0._`${w}.test(${J})`}}}};CZ.default=gw});var _Z=g((vZ)=>{Object.defineProperty(vZ,"__esModule",{value:!0});var hw=kZ(),uw=[hw.default];vZ.default=uw});var gZ=g((xZ)=>{Object.defineProperty(xZ,"__esModule",{value:!0});xZ.contentVocabulary=xZ.metadataVocabulary=void 0;xZ.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];xZ.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var uZ=g((hZ)=>{Object.defineProperty(hZ,"__esModule",{value:!0});var cw=BB(),pw=xB(),dw=EZ(),iw=_Z(),fZ=gZ(),nw=[cw.default,pw.default,(0,dw.default)(),iw.default,fZ.metadataVocabulary,fZ.contentVocabulary];hZ.default=nw});var pZ=g((lZ)=>{Object.defineProperty(lZ,"__esModule",{value:!0});lZ.DiscrError=void 0;var mZ;(function(X){X.Tag="tag",X.Mapping="mapping"})(mZ||(lZ.DiscrError=mZ={}))});var nZ=g((iZ)=>{Object.defineProperty(iZ,"__esModule",{value:!0});var i6=X0(),u5=pZ(),dZ=V8(),rw=m4(),sw=G0(),aw={message:({params:{discrError:X,tagName:Q}})=>X===u5.DiscrError.Tag?`tag "${Q}" must be string`:`value of tag "${Q}" must be in oneOf`,params:({params:{discrError:X,tag:Q,tagName:Y}})=>i6._`{error: ${X}, tag: ${Y}, tagValue: ${Q}}`},tw={keyword:"discriminator",type:"object",schemaType:"object",error:aw,code(X){let{gen:Q,data:Y,schema:J,parentSchema:G,it:$}=X,{oneOf:W}=G;if(!$.opts.discriminator)throw Error("discriminator: requires discriminator option");let z=J.propertyName;if(typeof z!="string")throw Error("discriminator: requires propertyName");if(J.mapping)throw Error("discriminator: mapping is not supported");if(!W)throw Error("discriminator: requires oneOf keyword");let H=Q.let("valid",!1),Z=Q.const("tag",i6._`${Y}${(0,i6.getProperty)(z)}`);Q.if(i6._`typeof ${Z} == "string"`,()=>K(),()=>X.error(!1,{discrError:u5.DiscrError.Tag,tag:Z,tagName:z})),X.ok(H);function K(){let q=F();Q.if(!1);for(let U in q)Q.elseIf(i6._`${Z} === ${U}`),Q.assign(H,D(q[U]));Q.else(),X.error(!1,{discrError:u5.DiscrError.Mapping,tag:Z,tagName:z}),Q.endIf()}function D(q){let U=Q.name("valid"),A=X.subschema({keyword:"oneOf",schemaProp:q},U);return X.mergeEvaluated(A,i6.Name),U}function F(){var q;let U={},A=w(G),j=!0;for(let h=0;h<W.length;h++){let P=W[h];if((P===null||P===void 0?void 0:P.$ref)&&!(0,sw.schemaHasRulesButRef)(P,$.self.RULES)){let o=P.$ref;if(P=dZ.resolveRef.call($.self,$.schemaEnv.root,$.baseId,o),P instanceof dZ.SchemaEnv)P=P.schema;if(P===void 0)throw new rw.default($.opts.uriResolver,$.baseId,o)}let v=(q=P===null||P===void 0?void 0:P.properties)===null||q===void 0?void 0:q[z];if(typeof v!="object")throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${z}"`);j=j&&(A||w(P)),u(v,h)}if(!j)throw Error(`discriminator: "${z}" must be required`);return U;function w({required:h}){return Array.isArray(h)&&h.includes(z)}function u(h,P){if(h.const)x(h.const,P);else if(h.enum)for(let v of h.enum)x(v,P);else throw Error(`discriminator: "properties/${z}" must have "const" or "enum"`)}function x(h,P){if(typeof h!="string"||h in U)throw Error(`discriminator: "${z}" values must be unique strings`);U[h]=P}}}};iZ.default=tw});var oZ=g(($v,XR)=>{XR.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var l5=g((e0,m5)=>{Object.defineProperty(e0,"__esModule",{value:!0});e0.MissingRefError=e0.ValidationError=e0.CodeGen=e0.Name=e0.nil=e0.stringify=e0.str=e0._=e0.KeywordCxt=e0.Ajv=void 0;var QR=tz(),YR=uZ(),JR=nZ(),rZ=oZ(),GR=["/properties"],C8="http://json-schema.org/draft-07/schema";class e4 extends QR.default{_addVocabularies(){if(super._addVocabularies(),YR.default.forEach((X)=>this.addVocabulary(X)),this.opts.discriminator)this.addKeyword(JR.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let X=this.opts.$data?this.$dataMetaSchema(rZ,GR):rZ;this.addMetaSchema(X,C8,!1),this.refs["http://json-schema.org/schema"]=C8}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(C8)?C8:void 0)}}e0.Ajv=e4;m5.exports=e0=e4;m5.exports.Ajv=e4;Object.defineProperty(e0,"__esModule",{value:!0});e0.default=e4;var $R=u4();Object.defineProperty(e0,"KeywordCxt",{enumerable:!0,get:function(){return $R.KeywordCxt}});var n6=X0();Object.defineProperty(e0,"_",{enumerable:!0,get:function(){return n6._}});Object.defineProperty(e0,"str",{enumerable:!0,get:function(){return n6.str}});Object.defineProperty(e0,"stringify",{enumerable:!0,get:function(){return n6.stringify}});Object.defineProperty(e0,"nil",{enumerable:!0,get:function(){return n6.nil}});Object.defineProperty(e0,"Name",{enumerable:!0,get:function(){return n6.Name}});Object.defineProperty(e0,"CodeGen",{enumerable:!0,get:function(){return n6.CodeGen}});var WR=K8();Object.defineProperty(e0,"ValidationError",{enumerable:!0,get:function(){return WR.default}});var zR=m4();Object.defineProperty(e0,"MissingRefError",{enumerable:!0,get:function(){return zR.default}})});var $H=g((JH)=>{Object.defineProperty(JH,"__esModule",{value:!0});JH.formatNames=JH.fastFormats=JH.fullFormats=void 0;function O1(X,Q){return{validate:X,compare:Q}}JH.fullFormats={date:O1(eZ,i5),time:O1(p5(!0),n5),"date-time":O1(sZ(!0),QH),"iso-time":O1(p5(),XH),"iso-date-time":O1(sZ(),YH),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:qR,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:PR,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:MR,int32:{type:"number",validate:AR},int64:{type:"number",validate:NR},float:{type:"number",validate:tZ},double:{type:"number",validate:tZ},password:!0,binary:!0};JH.fastFormats={...JH.fullFormats,date:O1(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i5),time:O1(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,n5),"date-time":O1(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,QH),"iso-time":O1(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,XH),"iso-date-time":O1(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,YH),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};JH.formatNames=Object.keys(JH.fullFormats);function HR(X){return X%4===0&&(X%100!==0||X%400===0)}var KR=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,DR=[0,31,28,31,30,31,30,31,31,30,31,30,31];function eZ(X){let Q=KR.exec(X);if(!Q)return!1;let Y=+Q[1],J=+Q[2],G=+Q[3];return J>=1&&J<=12&&G>=1&&G<=(J===2&&HR(Y)?29:DR[J])}function i5(X,Q){if(!(X&&Q))return;if(X>Q)return 1;if(X<Q)return-1;return 0}var c5=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function p5(X){return function(Y){let J=c5.exec(Y);if(!J)return!1;let G=+J[1],$=+J[2],W=+J[3],z=J[4],H=J[5]==="-"?-1:1,Z=+(J[6]||0),K=+(J[7]||0);if(Z>23||K>59||X&&!z)return!1;if(G<=23&&$<=59&&W<60)return!0;let D=$-K*H,F=G-Z*H-(D<0?1:0);return(F===23||F===-1)&&(D===59||D===-1)&&W<61}}function n5(X,Q){if(!(X&&Q))return;let Y=new Date("2020-01-01T"+X).valueOf(),J=new Date("2020-01-01T"+Q).valueOf();if(!(Y&&J))return;return Y-J}function XH(X,Q){if(!(X&&Q))return;let Y=c5.exec(X),J=c5.exec(Q);if(!(Y&&J))return;if(X=Y[1]+Y[2]+Y[3],Q=J[1]+J[2]+J[3],X>Q)return 1;if(X<Q)return-1;return 0}var d5=/t|\s/i;function sZ(X){let Q=p5(X);return function(J){let G=J.split(d5);return G.length===2&&eZ(G[0])&&Q(G[1])}}function QH(X,Q){if(!(X&&Q))return;let Y=new Date(X).valueOf(),J=new Date(Q).valueOf();if(!(Y&&J))return;return Y-J}function YH(X,Q){if(!(X&&Q))return;let[Y,J]=X.split(d5),[G,$]=Q.split(d5),W=i5(Y,G);if(W===void 0)return;return W||n5(J,$)}var VR=/\/|:/,FR=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function qR(X){return VR.test(X)&&FR.test(X)}var aZ=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function MR(X){return aZ.lastIndex=0,aZ.test(X)}var UR=-2147483648,LR=2147483647;function AR(X){return Number.isInteger(X)&&X<=LR&&X>=UR}function NR(X){return Number.isInteger(X)}function tZ(){return!0}var OR=/[^\\]\\Z/;function PR(X){if(OR.test(X))return!1;try{return new RegExp(X),!0}catch(Q){return!1}}});var zH=g((WH)=>{Object.defineProperty(WH,"__esModule",{value:!0});WH.formatLimitDefinition=void 0;var RR=l5(),L1=X0(),X6=L1.operators,k8={formatMaximum:{okStr:"<=",ok:X6.LTE,fail:X6.GT},formatMinimum:{okStr:">=",ok:X6.GTE,fail:X6.LT},formatExclusiveMaximum:{okStr:"<",ok:X6.LT,fail:X6.GTE},formatExclusiveMinimum:{okStr:">",ok:X6.GT,fail:X6.LTE}},IR={message:({keyword:X,schemaCode:Q})=>L1.str`should be ${k8[X].okStr} ${Q}`,params:({keyword:X,schemaCode:Q})=>L1._`{comparison: ${k8[X].okStr}, limit: ${Q}}`};WH.formatLimitDefinition={keyword:Object.keys(k8),type:"string",schemaType:"string",$data:!0,error:IR,code(X){let{gen:Q,data:Y,schemaCode:J,keyword:G,it:$}=X,{opts:W,self:z}=$;if(!W.validateFormats)return;let H=new RR.KeywordCxt($,z.RULES.all.format.definition,"format");if(H.$data)Z();else K();function Z(){let F=Q.scopeValue("formats",{ref:z.formats,code:W.code.formats}),q=Q.const("fmt",L1._`${F}[${H.schemaCode}]`);X.fail$data((0,L1.or)(L1._`typeof ${q} != "object"`,L1._`${q} instanceof RegExp`,L1._`typeof ${q}.compare != "function"`,D(q)))}function K(){let F=H.schema,q=z.formats[F];if(!q||q===!0)return;if(typeof q!="object"||q instanceof RegExp||typeof q.compare!="function")throw Error(`"${G}": format "${F}" does not define "compare" function`);let U=Q.scopeValue("formats",{key:F,ref:q,code:W.code.formats?L1._`${W.code.formats}${(0,L1.getProperty)(F)}`:void 0});X.fail$data(D(U))}function D(F){return L1._`${F}.compare(${Y}, ${J}) ${k8[G].fail} 0`}},dependencies:["format"]};var jR=(X)=>{return X.addKeyword(WH.formatLimitDefinition),X};WH.default=jR});var KH=g((X9,HH)=>{Object.defineProperty(X9,"__esModule",{value:!0});var o6=$H(),bR=zH(),s5=X0(),BH=new s5.Name("fullFormats"),SR=new s5.Name("fastFormats"),a5=(X,Q={keywords:!0})=>{if(Array.isArray(Q))return ZH(X,Q,o6.fullFormats,BH),X;let[Y,J]=Q.mode==="fast"?[o6.fastFormats,SR]:[o6.fullFormats,BH],G=Q.formats||o6.formatNames;if(ZH(X,G,Y,J),Q.keywords)(0,bR.default)(X);return X};a5.get=(X,Q="full")=>{let J=(Q==="fast"?o6.fastFormats:o6.fullFormats)[X];if(!J)throw Error(`Unknown format "${X}"`);return J};function ZH(X,Q,Y,J){var G,$;(G=($=X.opts.code).formats)!==null&&G!==void 0||($.formats=s5._`require("ajv-formats/dist/formats").${J}`);for(let W of Q)X.addFormat(W,Y[W])}HH.exports=X9=a5;Object.defineProperty(X9,"__esModule",{value:!0});X9.default=a5});var v7=GX(k7(),1),{program:Xj,createCommand:Qj,createArgument:Yj,createOption:Jj,CommanderError:Gj,InvalidArgumentError:$j,InvalidOptionArgumentError:Wj,Command:FX,Argument:zj,Option:Bj,Help:Zj}=v7.default;var qX={name:"@zoominfo/gtm-ai-cli",version:"1.0.0",description:"Command-line interface for the ZoomInfo GTM AI MCP server",type:"module",bin:{gtm:"dist/index.js"},files:["dist/index.js","README.md"],scripts:{build:"bun build ./src/index.ts --target node --format esm --minify --outdir dist","build:all":"bun build ./src/index.ts --compile --minify --target=bun-darwin-arm64 --outfile dist/gtm-macos-arm64 && bun build ./src/index.ts --compile --minify --target=bun-darwin-x64 --outfile dist/gtm-macos-x64 && bun build ./src/index.ts --compile --minify --target=bun-linux-x64 --outfile dist/gtm-linux-x64 && bun build ./src/index.ts --compile --minify --target=bun-windows-x64 --outfile dist/gtm-windows-x64.exe",prepublishOnly:"npm run build","start:dev":"bun run src/index.ts",test:"vitest run -c vitest.config.ts","test:watch":"vitest -c vitest.config.ts","test:live":"vitest run -c vitest.config.live.ts",typecheck:"tsc --noEmit"},dependencies:{"@modelcontextprotocol/sdk":"^1.0.0",commander:"^14.0.3","js-yaml":"^4.1.1"},devDependencies:{"@semantic-release/git":"10.0.1","@types/js-yaml":"^4.0.9","@types/node":"^25.7.0",bun:"^1.3.14",tsx:"^4.20.0",typescript:"^6.0.3",vitest:"^4.1.8"},publishConfig:{access:"public"},release:{branches:["main"],plugins:["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",["@semantic-release/npm",{npmPublish:!1}],"@semantic-release/git"]}};var z4={name:qX.name,version:qX.version};import vD from"http";import u7 from"crypto";import{spawnSync as OX}from"child_process";import{mkdirSync as _7,writeFileSync as x7,readFileSync as y7,existsSync as UX,unlinkSync as TD}from"fs";import{join as LX,dirname as bD}from"path";import{homedir as SD}from"os";var ED=60000,AX=LX(SD(),".config","gtm-ai"),P6=LX(AX,"credentials"),MX=LX(AX,"client_id");function g7(){if(!UX(MX))return null;return y7(MX,"utf8").trim()||null}function CD(X){_7(AX,{recursive:!0,mode:448}),x7(MX,X,{mode:384})}function NX({clientId:X,access_token:Q,refresh_token:Y,expires_in:J}){_7(bD(P6),{recursive:!0,mode:448}),CD(X);let G={type:"oauth",access_token:Q,refresh_token:Y,client_id:X,expires_at:J?Date.now()+J*1000:null};x7(P6,JSON.stringify(G),{mode:384})}function kD(X){if(typeof X!=="object"||X===null)return!1;let Q=X;return Q.type==="oauth"&&typeof Q.access_token==="string"&&typeof Q.refresh_token==="string"&&typeof Q.client_id==="string"&&(Q.expires_at===null||typeof Q.expires_at==="number")}function U9(){if(!UX(P6))return null;let X=JSON.parse(y7(P6,"utf8"));return kD(X)?X:null}async function L9(){let X=U9();if(!X)return null;if(!(X.expires_at!==null&&Date.now()>=X.expires_at-ED))return X;if(!X.refresh_token)return X;try{let Y=await h7(X.refresh_token,X.client_id);return NX({clientId:X.client_id,access_token:Y.access_token,refresh_token:Y.refresh_token,expires_in:Y.expires_in}),U9()}catch{console.error("Session expired. Run: gtm auth login"),process.exit(1)}}function f7(){if(UX(P6))TD(P6)}import{randomUUID as _D}from"node:crypto";import{clearTimeout as xD}from"node:timers";var yD="https://mcp.zoominfo.com/oauth/authorize",gD="https://mcp.zoominfo.com/oauth/register",m7="https://okta-login.zoominfo.com/oauth2/default/v1/token",fD="https://okta-login.zoominfo.com/oauth2/default/v1/revoke",PX=9876,wX=`http://localhost:${PX}/callback`,hD="GTM AI CLI",l7="openid offline_access api:data:mcp zi_mcp profile email",uD=300000;function mD(){let X=u7.randomBytes(32).toString("base64url"),Q=u7.createHash("sha256").update(X).digest("base64url");return{verifier:X,challenge:Q}}function c7(X){if(typeof X!=="object"||X===null)return!1;let Q=X;return typeof Q.access_token==="string"&&typeof Q.refresh_token==="string"&&typeof Q.expires_in==="number"}async function lD(){let X=await fetch(gD,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_name:hD,redirect_uris:[wX],grant_types:["authorization_code","refresh_token"],response_types:["code"],token_endpoint_auth_method:"none",scope:l7})});if(!X.ok)throw Error(`Client registration failed: ${await X.text()}`);let Q=await X.json();if(typeof Q!=="object"||Q===null||typeof Q.client_id!=="string")throw Error("Client registration response missing client_id");return Q.client_id}async function cD(X,Q,Y){let J=await fetch(m7,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"authorization_code",code:X,client_id:Q,redirect_uri:wX,code_verifier:Y})});if(!J.ok)throw Error(`Token exchange failed: ${await J.text()}`);let G=await J.json();if(!c7(G))throw Error("Token exchange returned unexpected payload");return G}async function h7(X,Q){let Y=await fetch(m7,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"refresh_token",refresh_token:X,client_id:Q})});if(!Y.ok)throw Error(`Token refresh failed: ${await Y.text()}`);let J=await Y.json();if(!c7(J))throw Error("Token refresh returned unexpected payload");return J}async function p7(X,Q){await fetch(fD,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({token:X,client_id:Q})})}function pD(X){let Q=process.platform==="darwin"?OX("open",[X]):process.platform==="win32"?OX("rundll32",["url.dll,FileProtocolHandler",X]):OX("xdg-open",[X]);if(Q.error||Q.status!==0)console.log(`
|
|
34
|
+
deps: ${Y}}`};var yP={keyword:"dependencies",type:"object",schemaType:"object",error:tB.error,code(X){let[Q,Y]=gP(X);sB(X,Q),aB(X,Y)}};function gP({schema:X}){let Q={},Y={};for(let J in X){if(J==="__proto__")continue;let G=Array.isArray(X[J])?Q:Y;G[J]=X[J]}return[Q,Y]}function sB(X,Q=X.schema){let{gen:Y,data:J,it:G}=X;if(Object.keys(Q).length===0)return;let $=Y.let("missing");for(let W in Q){let z=Q[W];if(z.length===0)continue;let H=(0,t4.propertyInData)(Y,J,W,G.opts.ownProperties);if(X.setParams({property:W,depsCount:z.length,deps:z.join(", ")}),G.allErrors)Y.if(H,()=>{for(let Z of z)(0,t4.checkReportMissingProp)(X,Z)});else Y.if(g5._`${H} && (${(0,t4.checkMissingProp)(X,z,$)})`),(0,t4.reportMissingProp)(X,$),Y.else()}}tB.validatePropertyDeps=sB;function aB(X,Q=X.schema){let{gen:Y,data:J,keyword:G,it:$}=X,W=Y.name("valid");for(let z in Q){if((0,xP.alwaysValidSchema)($,Q[z]))continue;Y.if((0,t4.propertyInData)(Y,J,z,$.opts.ownProperties),()=>{let H=X.subschema({keyword:G,schemaProp:z},W);X.mergeValidEvaluated(H,W)},()=>Y.var(W,!0)),X.ok(W)}}tB.validateSchemaDeps=aB;tB.default=yP});var GZ=g((JZ)=>{Object.defineProperty(JZ,"__esModule",{value:!0});var YZ=X0(),uP=G0(),mP={message:"property name must be valid",params:({params:X})=>YZ._`{propertyName: ${X.propertyName}}`},lP={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:mP,code(X){let{gen:Q,schema:Y,data:J,it:G}=X;if((0,uP.alwaysValidSchema)(G,Y))return;let $=Q.name("valid");Q.forIn("key",J,(W)=>{X.setParams({propertyName:W}),X.subschema({keyword:"propertyNames",data:W,dataTypes:["string"],propertyName:W,compositeRule:!0},$),Q.if((0,YZ.not)($),()=>{if(X.error(!0),!G.allErrors)Q.break()})}),X.ok($)}};JZ.default=lP});var f5=g(($Z)=>{Object.defineProperty($Z,"__esModule",{value:!0});var j8=B1(),U1=X0(),pP=x1(),T8=G0(),dP={message:"must NOT have additional properties",params:({params:X})=>U1._`{additionalProperty: ${X.additionalProperty}}`},iP={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:dP,code(X){let{gen:Q,schema:Y,parentSchema:J,data:G,errsCount:$,it:W}=X;if(!$)throw Error("ajv implementation error");let{allErrors:z,opts:H}=W;if(W.props=!0,H.removeAdditional!=="all"&&(0,T8.alwaysValidSchema)(W,Y))return;let Z=(0,j8.allSchemaProperties)(J.properties),K=(0,j8.allSchemaProperties)(J.patternProperties);D(),X.ok(U1._`${$} === ${pP.default.errors}`);function D(){Q.forIn("key",G,(j)=>{if(!Z.length&&!K.length)U(j);else Q.if(F(j),()=>U(j))})}function F(j){let w;if(Z.length>8){let u=(0,T8.schemaRefOrVal)(W,J.properties,"properties");w=(0,j8.isOwnProperty)(Q,u,j)}else if(Z.length)w=(0,U1.or)(...Z.map((u)=>U1._`${j} === ${u}`));else w=U1.nil;if(K.length)w=(0,U1.or)(w,...K.map((u)=>U1._`${(0,j8.usePattern)(X,u)}.test(${j})`));return(0,U1.not)(w)}function q(j){Q.code(U1._`delete ${G}[${j}]`)}function U(j){if(H.removeAdditional==="all"||H.removeAdditional&&Y===!1){q(j);return}if(Y===!1){if(X.setParams({additionalProperty:j}),X.error(),!z)Q.break();return}if(typeof Y=="object"&&!(0,T8.alwaysValidSchema)(W,Y)){let w=Q.name("valid");if(H.removeAdditional==="failing")A(j,w,!1),Q.if((0,U1.not)(w),()=>{X.reset(),q(j)});else if(A(j,w),!z)Q.if((0,U1.not)(w),()=>Q.break())}}function A(j,w,u){let x={keyword:"additionalProperties",dataProp:j,dataPropType:T8.Type.Str};if(u===!1)Object.assign(x,{compositeRule:!0,createErrors:!1,allErrors:!1});X.subschema(x,w)}}};$Z.default=iP});var ZZ=g((BZ)=>{Object.defineProperty(BZ,"__esModule",{value:!0});var oP=u4(),WZ=B1(),h5=G0(),zZ=f5(),rP={keyword:"properties",type:"object",schemaType:"object",code(X){let{gen:Q,schema:Y,parentSchema:J,data:G,it:$}=X;if($.opts.removeAdditional==="all"&&J.additionalProperties===void 0)zZ.default.code(new oP.KeywordCxt($,zZ.default,"additionalProperties"));let W=(0,WZ.allSchemaProperties)(Y);for(let D of W)$.definedProperties.add(D);if($.opts.unevaluated&&W.length&&$.props!==!0)$.props=h5.mergeEvaluated.props(Q,(0,h5.toHash)(W),$.props);let z=W.filter((D)=>!(0,h5.alwaysValidSchema)($,Y[D]));if(z.length===0)return;let H=Q.name("valid");for(let D of z){if(Z(D))K(D);else{if(Q.if((0,WZ.propertyInData)(Q,G,D,$.opts.ownProperties)),K(D),!$.allErrors)Q.else().var(H,!0);Q.endIf()}X.it.definedProperties.add(D),X.ok(H)}function Z(D){return $.opts.useDefaults&&!$.compositeRule&&Y[D].default!==void 0}function K(D){X.subschema({keyword:"properties",schemaProp:D,dataProp:D},H)}}};BZ.default=rP});var FZ=g((VZ)=>{Object.defineProperty(VZ,"__esModule",{value:!0});var HZ=B1(),b8=X0(),KZ=G0(),DZ=G0(),aP={keyword:"patternProperties",type:"object",schemaType:"object",code(X){let{gen:Q,schema:Y,data:J,parentSchema:G,it:$}=X,{opts:W}=$,z=(0,HZ.allSchemaProperties)(Y),H=z.filter((A)=>(0,KZ.alwaysValidSchema)($,Y[A]));if(z.length===0||H.length===z.length&&(!$.opts.unevaluated||$.props===!0))return;let Z=W.strictSchema&&!W.allowMatchingProperties&&G.properties,K=Q.name("valid");if($.props!==!0&&!($.props instanceof b8.Name))$.props=(0,DZ.evaluatedPropsToName)(Q,$.props);let{props:D}=$;F();function F(){for(let A of z){if(Z)q(A);if($.allErrors)U(A);else Q.var(K,!0),U(A),Q.if(K)}}function q(A){for(let j in Z)if(new RegExp(A).test(j))(0,KZ.checkStrictMode)($,`property ${j} matches pattern ${A} (use allowMatchingProperties)`)}function U(A){Q.forIn("key",J,(j)=>{Q.if(b8._`${(0,HZ.usePattern)(X,A)}.test(${j})`,()=>{let w=H.includes(A);if(!w)X.subschema({keyword:"patternProperties",schemaProp:A,dataProp:j,dataPropType:DZ.Type.Str},K);if($.opts.unevaluated&&D!==!0)Q.assign(b8._`${D}[${j}]`,!0);else if(!w&&!$.allErrors)Q.if((0,b8.not)(K),()=>Q.break())})})}}};VZ.default=aP});var MZ=g((qZ)=>{Object.defineProperty(qZ,"__esModule",{value:!0});var eP=G0(),Xw={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(X){let{gen:Q,schema:Y,it:J}=X;if((0,eP.alwaysValidSchema)(J,Y)){X.fail();return}let G=Q.name("valid");X.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},G),X.failResult(G,()=>X.reset(),()=>X.error())},error:{message:"must NOT be valid"}};qZ.default=Xw});var LZ=g((UZ)=>{Object.defineProperty(UZ,"__esModule",{value:!0});var Yw=B1(),Jw={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Yw.validateUnion,error:{message:"must match a schema in anyOf"}};UZ.default=Jw});var NZ=g((AZ)=>{Object.defineProperty(AZ,"__esModule",{value:!0});var S8=X0(),$w=G0(),Ww={message:"must match exactly one schema in oneOf",params:({params:X})=>S8._`{passingSchemas: ${X.passing}}`},zw={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:Ww,code(X){let{gen:Q,schema:Y,parentSchema:J,it:G}=X;if(!Array.isArray(Y))throw Error("ajv implementation error");if(G.opts.discriminator&&J.discriminator)return;let $=Y,W=Q.let("valid",!1),z=Q.let("passing",null),H=Q.name("_valid");X.setParams({passing:z}),Q.block(Z),X.result(W,()=>X.reset(),()=>X.error(!0));function Z(){$.forEach((K,D)=>{let F;if((0,$w.alwaysValidSchema)(G,K))Q.var(H,!0);else F=X.subschema({keyword:"oneOf",schemaProp:D,compositeRule:!0},H);if(D>0)Q.if(S8._`${H} && ${W}`).assign(W,!1).assign(z,S8._`[${z}, ${D}]`).else();Q.if(H,()=>{if(Q.assign(W,!0),Q.assign(z,D),F)X.mergeEvaluated(F,S8.Name)})})}}};AZ.default=zw});var PZ=g((OZ)=>{Object.defineProperty(OZ,"__esModule",{value:!0});var Zw=G0(),Hw={keyword:"allOf",schemaType:"array",code(X){let{gen:Q,schema:Y,it:J}=X;if(!Array.isArray(Y))throw Error("ajv implementation error");let G=Q.name("valid");Y.forEach(($,W)=>{if((0,Zw.alwaysValidSchema)(J,$))return;let z=X.subschema({keyword:"allOf",schemaProp:W},G);X.ok(G),X.mergeEvaluated(z)})}};OZ.default=Hw});var jZ=g((IZ)=>{Object.defineProperty(IZ,"__esModule",{value:!0});var E8=X0(),RZ=G0(),Dw={message:({params:X})=>E8.str`must match "${X.ifClause}" schema`,params:({params:X})=>E8._`{failingKeyword: ${X.ifClause}}`},Vw={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:Dw,code(X){let{gen:Q,parentSchema:Y,it:J}=X;if(Y.then===void 0&&Y.else===void 0)(0,RZ.checkStrictMode)(J,'"if" without "then" and "else" is ignored');let G=wZ(J,"then"),$=wZ(J,"else");if(!G&&!$)return;let W=Q.let("valid",!0),z=Q.name("_valid");if(H(),X.reset(),G&&$){let K=Q.let("ifClause");X.setParams({ifClause:K}),Q.if(z,Z("then",K),Z("else",K))}else if(G)Q.if(z,Z("then"));else Q.if((0,E8.not)(z),Z("else"));X.pass(W,()=>X.error(!0));function H(){let K=X.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},z);X.mergeEvaluated(K)}function Z(K,D){return()=>{let F=X.subschema({keyword:K},z);if(Q.assign(W,z),X.mergeValidEvaluated(F,W),D)Q.assign(D,E8._`${K}`);else X.setParams({ifClause:K})}}}};function wZ(X,Q){let Y=X.schema[Q];return Y!==void 0&&!(0,RZ.alwaysValidSchema)(X,Y)}IZ.default=Vw});var bZ=g((TZ)=>{Object.defineProperty(TZ,"__esModule",{value:!0});var qw=G0(),Mw={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:X,parentSchema:Q,it:Y}){if(Q.if===void 0)(0,qw.checkStrictMode)(Y,`"${X}" without "if" is ignored`)}};TZ.default=Mw});var EZ=g((SZ)=>{Object.defineProperty(SZ,"__esModule",{value:!0});var Lw=x5(),Aw=pB(),Nw=y5(),Ow=nB(),Pw=rB(),ww=QZ(),Rw=GZ(),Iw=f5(),jw=ZZ(),Tw=FZ(),bw=MZ(),Sw=LZ(),Ew=NZ(),Cw=PZ(),kw=jZ(),vw=bZ();function _w(X=!1){let Q=[bw.default,Sw.default,Ew.default,Cw.default,kw.default,vw.default,Rw.default,Iw.default,ww.default,jw.default,Tw.default];if(X)Q.push(Aw.default,Ow.default);else Q.push(Lw.default,Nw.default);return Q.push(Pw.default),Q}SZ.default=_w});var kZ=g((CZ)=>{Object.defineProperty(CZ,"__esModule",{value:!0});var E0=X0(),yw={message:({schemaCode:X})=>E0.str`must match format "${X}"`,params:({schemaCode:X})=>E0._`{format: ${X}}`},gw={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:yw,code(X,Q){let{gen:Y,data:J,$data:G,schema:$,schemaCode:W,it:z}=X,{opts:H,errSchemaPath:Z,schemaEnv:K,self:D}=z;if(!H.validateFormats)return;if(G)F();else q();function F(){let U=Y.scopeValue("formats",{ref:D.formats,code:H.code.formats}),A=Y.const("fDef",E0._`${U}[${W}]`),j=Y.let("fType"),w=Y.let("format");Y.if(E0._`typeof ${A} == "object" && !(${A} instanceof RegExp)`,()=>Y.assign(j,E0._`${A}.type || "string"`).assign(w,E0._`${A}.validate`),()=>Y.assign(j,E0._`"string"`).assign(w,A)),X.fail$data((0,E0.or)(u(),x()));function u(){if(H.strictSchema===!1)return E0.nil;return E0._`${W} && !${w}`}function x(){let h=K.$async?E0._`(${A}.async ? await ${w}(${J}) : ${w}(${J}))`:E0._`${w}(${J})`,P=E0._`(typeof ${w} == "function" ? ${h} : ${w}.test(${J}))`;return E0._`${w} && ${w} !== true && ${j} === ${Q} && !${P}`}}function q(){let U=D.formats[$];if(!U){u();return}if(U===!0)return;let[A,j,w]=x(U);if(A===Q)X.pass(h());function u(){if(H.strictSchema===!1){D.logger.warn(P());return}throw Error(P());function P(){return`unknown format "${$}" ignored in schema at path "${Z}"`}}function x(P){let v=P instanceof RegExp?(0,E0.regexpCode)(P):H.code.formats?E0._`${H.code.formats}${(0,E0.getProperty)($)}`:void 0,o=Y.scopeValue("formats",{key:$,ref:P,code:v});if(typeof P=="object"&&!(P instanceof RegExp))return[P.type||"string",P.validate,E0._`${o}.validate`];return["string",P,o]}function h(){if(typeof U=="object"&&!(U instanceof RegExp)&&U.async){if(!K.$async)throw Error("async format in sync schema");return E0._`await ${w}(${J})`}return typeof j=="function"?E0._`${w}(${J})`:E0._`${w}.test(${J})`}}}};CZ.default=gw});var _Z=g((vZ)=>{Object.defineProperty(vZ,"__esModule",{value:!0});var hw=kZ(),uw=[hw.default];vZ.default=uw});var gZ=g((xZ)=>{Object.defineProperty(xZ,"__esModule",{value:!0});xZ.contentVocabulary=xZ.metadataVocabulary=void 0;xZ.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];xZ.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var uZ=g((hZ)=>{Object.defineProperty(hZ,"__esModule",{value:!0});var cw=BB(),pw=xB(),dw=EZ(),iw=_Z(),fZ=gZ(),nw=[cw.default,pw.default,(0,dw.default)(),iw.default,fZ.metadataVocabulary,fZ.contentVocabulary];hZ.default=nw});var pZ=g((lZ)=>{Object.defineProperty(lZ,"__esModule",{value:!0});lZ.DiscrError=void 0;var mZ;(function(X){X.Tag="tag",X.Mapping="mapping"})(mZ||(lZ.DiscrError=mZ={}))});var nZ=g((iZ)=>{Object.defineProperty(iZ,"__esModule",{value:!0});var i6=X0(),u5=pZ(),dZ=V8(),rw=m4(),sw=G0(),aw={message:({params:{discrError:X,tagName:Q}})=>X===u5.DiscrError.Tag?`tag "${Q}" must be string`:`value of tag "${Q}" must be in oneOf`,params:({params:{discrError:X,tag:Q,tagName:Y}})=>i6._`{error: ${X}, tag: ${Y}, tagValue: ${Q}}`},tw={keyword:"discriminator",type:"object",schemaType:"object",error:aw,code(X){let{gen:Q,data:Y,schema:J,parentSchema:G,it:$}=X,{oneOf:W}=G;if(!$.opts.discriminator)throw Error("discriminator: requires discriminator option");let z=J.propertyName;if(typeof z!="string")throw Error("discriminator: requires propertyName");if(J.mapping)throw Error("discriminator: mapping is not supported");if(!W)throw Error("discriminator: requires oneOf keyword");let H=Q.let("valid",!1),Z=Q.const("tag",i6._`${Y}${(0,i6.getProperty)(z)}`);Q.if(i6._`typeof ${Z} == "string"`,()=>K(),()=>X.error(!1,{discrError:u5.DiscrError.Tag,tag:Z,tagName:z})),X.ok(H);function K(){let q=F();Q.if(!1);for(let U in q)Q.elseIf(i6._`${Z} === ${U}`),Q.assign(H,D(q[U]));Q.else(),X.error(!1,{discrError:u5.DiscrError.Mapping,tag:Z,tagName:z}),Q.endIf()}function D(q){let U=Q.name("valid"),A=X.subschema({keyword:"oneOf",schemaProp:q},U);return X.mergeEvaluated(A,i6.Name),U}function F(){var q;let U={},A=w(G),j=!0;for(let h=0;h<W.length;h++){let P=W[h];if((P===null||P===void 0?void 0:P.$ref)&&!(0,sw.schemaHasRulesButRef)(P,$.self.RULES)){let o=P.$ref;if(P=dZ.resolveRef.call($.self,$.schemaEnv.root,$.baseId,o),P instanceof dZ.SchemaEnv)P=P.schema;if(P===void 0)throw new rw.default($.opts.uriResolver,$.baseId,o)}let v=(q=P===null||P===void 0?void 0:P.properties)===null||q===void 0?void 0:q[z];if(typeof v!="object")throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${z}"`);j=j&&(A||w(P)),u(v,h)}if(!j)throw Error(`discriminator: "${z}" must be required`);return U;function w({required:h}){return Array.isArray(h)&&h.includes(z)}function u(h,P){if(h.const)x(h.const,P);else if(h.enum)for(let v of h.enum)x(v,P);else throw Error(`discriminator: "properties/${z}" must have "const" or "enum"`)}function x(h,P){if(typeof h!="string"||h in U)throw Error(`discriminator: "${z}" values must be unique strings`);U[h]=P}}}};iZ.default=tw});var oZ=g(($v,XR)=>{XR.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var l5=g((e0,m5)=>{Object.defineProperty(e0,"__esModule",{value:!0});e0.MissingRefError=e0.ValidationError=e0.CodeGen=e0.Name=e0.nil=e0.stringify=e0.str=e0._=e0.KeywordCxt=e0.Ajv=void 0;var QR=tz(),YR=uZ(),JR=nZ(),rZ=oZ(),GR=["/properties"],C8="http://json-schema.org/draft-07/schema";class e4 extends QR.default{_addVocabularies(){if(super._addVocabularies(),YR.default.forEach((X)=>this.addVocabulary(X)),this.opts.discriminator)this.addKeyword(JR.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let X=this.opts.$data?this.$dataMetaSchema(rZ,GR):rZ;this.addMetaSchema(X,C8,!1),this.refs["http://json-schema.org/schema"]=C8}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(C8)?C8:void 0)}}e0.Ajv=e4;m5.exports=e0=e4;m5.exports.Ajv=e4;Object.defineProperty(e0,"__esModule",{value:!0});e0.default=e4;var $R=u4();Object.defineProperty(e0,"KeywordCxt",{enumerable:!0,get:function(){return $R.KeywordCxt}});var n6=X0();Object.defineProperty(e0,"_",{enumerable:!0,get:function(){return n6._}});Object.defineProperty(e0,"str",{enumerable:!0,get:function(){return n6.str}});Object.defineProperty(e0,"stringify",{enumerable:!0,get:function(){return n6.stringify}});Object.defineProperty(e0,"nil",{enumerable:!0,get:function(){return n6.nil}});Object.defineProperty(e0,"Name",{enumerable:!0,get:function(){return n6.Name}});Object.defineProperty(e0,"CodeGen",{enumerable:!0,get:function(){return n6.CodeGen}});var WR=K8();Object.defineProperty(e0,"ValidationError",{enumerable:!0,get:function(){return WR.default}});var zR=m4();Object.defineProperty(e0,"MissingRefError",{enumerable:!0,get:function(){return zR.default}})});var $H=g((JH)=>{Object.defineProperty(JH,"__esModule",{value:!0});JH.formatNames=JH.fastFormats=JH.fullFormats=void 0;function O1(X,Q){return{validate:X,compare:Q}}JH.fullFormats={date:O1(eZ,i5),time:O1(p5(!0),n5),"date-time":O1(sZ(!0),QH),"iso-time":O1(p5(),XH),"iso-date-time":O1(sZ(),YH),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:qR,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:PR,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:MR,int32:{type:"number",validate:AR},int64:{type:"number",validate:NR},float:{type:"number",validate:tZ},double:{type:"number",validate:tZ},password:!0,binary:!0};JH.fastFormats={...JH.fullFormats,date:O1(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i5),time:O1(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,n5),"date-time":O1(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,QH),"iso-time":O1(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,XH),"iso-date-time":O1(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,YH),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};JH.formatNames=Object.keys(JH.fullFormats);function HR(X){return X%4===0&&(X%100!==0||X%400===0)}var KR=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,DR=[0,31,28,31,30,31,30,31,31,30,31,30,31];function eZ(X){let Q=KR.exec(X);if(!Q)return!1;let Y=+Q[1],J=+Q[2],G=+Q[3];return J>=1&&J<=12&&G>=1&&G<=(J===2&&HR(Y)?29:DR[J])}function i5(X,Q){if(!(X&&Q))return;if(X>Q)return 1;if(X<Q)return-1;return 0}var c5=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function p5(X){return function(Y){let J=c5.exec(Y);if(!J)return!1;let G=+J[1],$=+J[2],W=+J[3],z=J[4],H=J[5]==="-"?-1:1,Z=+(J[6]||0),K=+(J[7]||0);if(Z>23||K>59||X&&!z)return!1;if(G<=23&&$<=59&&W<60)return!0;let D=$-K*H,F=G-Z*H-(D<0?1:0);return(F===23||F===-1)&&(D===59||D===-1)&&W<61}}function n5(X,Q){if(!(X&&Q))return;let Y=new Date("2020-01-01T"+X).valueOf(),J=new Date("2020-01-01T"+Q).valueOf();if(!(Y&&J))return;return Y-J}function XH(X,Q){if(!(X&&Q))return;let Y=c5.exec(X),J=c5.exec(Q);if(!(Y&&J))return;if(X=Y[1]+Y[2]+Y[3],Q=J[1]+J[2]+J[3],X>Q)return 1;if(X<Q)return-1;return 0}var d5=/t|\s/i;function sZ(X){let Q=p5(X);return function(J){let G=J.split(d5);return G.length===2&&eZ(G[0])&&Q(G[1])}}function QH(X,Q){if(!(X&&Q))return;let Y=new Date(X).valueOf(),J=new Date(Q).valueOf();if(!(Y&&J))return;return Y-J}function YH(X,Q){if(!(X&&Q))return;let[Y,J]=X.split(d5),[G,$]=Q.split(d5),W=i5(Y,G);if(W===void 0)return;return W||n5(J,$)}var VR=/\/|:/,FR=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function qR(X){return VR.test(X)&&FR.test(X)}var aZ=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function MR(X){return aZ.lastIndex=0,aZ.test(X)}var UR=-2147483648,LR=2147483647;function AR(X){return Number.isInteger(X)&&X<=LR&&X>=UR}function NR(X){return Number.isInteger(X)}function tZ(){return!0}var OR=/[^\\]\\Z/;function PR(X){if(OR.test(X))return!1;try{return new RegExp(X),!0}catch(Q){return!1}}});var zH=g((WH)=>{Object.defineProperty(WH,"__esModule",{value:!0});WH.formatLimitDefinition=void 0;var RR=l5(),L1=X0(),X6=L1.operators,k8={formatMaximum:{okStr:"<=",ok:X6.LTE,fail:X6.GT},formatMinimum:{okStr:">=",ok:X6.GTE,fail:X6.LT},formatExclusiveMaximum:{okStr:"<",ok:X6.LT,fail:X6.GTE},formatExclusiveMinimum:{okStr:">",ok:X6.GT,fail:X6.LTE}},IR={message:({keyword:X,schemaCode:Q})=>L1.str`should be ${k8[X].okStr} ${Q}`,params:({keyword:X,schemaCode:Q})=>L1._`{comparison: ${k8[X].okStr}, limit: ${Q}}`};WH.formatLimitDefinition={keyword:Object.keys(k8),type:"string",schemaType:"string",$data:!0,error:IR,code(X){let{gen:Q,data:Y,schemaCode:J,keyword:G,it:$}=X,{opts:W,self:z}=$;if(!W.validateFormats)return;let H=new RR.KeywordCxt($,z.RULES.all.format.definition,"format");if(H.$data)Z();else K();function Z(){let F=Q.scopeValue("formats",{ref:z.formats,code:W.code.formats}),q=Q.const("fmt",L1._`${F}[${H.schemaCode}]`);X.fail$data((0,L1.or)(L1._`typeof ${q} != "object"`,L1._`${q} instanceof RegExp`,L1._`typeof ${q}.compare != "function"`,D(q)))}function K(){let F=H.schema,q=z.formats[F];if(!q||q===!0)return;if(typeof q!="object"||q instanceof RegExp||typeof q.compare!="function")throw Error(`"${G}": format "${F}" does not define "compare" function`);let U=Q.scopeValue("formats",{key:F,ref:q,code:W.code.formats?L1._`${W.code.formats}${(0,L1.getProperty)(F)}`:void 0});X.fail$data(D(U))}function D(F){return L1._`${F}.compare(${Y}, ${J}) ${k8[G].fail} 0`}},dependencies:["format"]};var jR=(X)=>{return X.addKeyword(WH.formatLimitDefinition),X};WH.default=jR});var KH=g((X9,HH)=>{Object.defineProperty(X9,"__esModule",{value:!0});var o6=$H(),bR=zH(),s5=X0(),BH=new s5.Name("fullFormats"),SR=new s5.Name("fastFormats"),a5=(X,Q={keywords:!0})=>{if(Array.isArray(Q))return ZH(X,Q,o6.fullFormats,BH),X;let[Y,J]=Q.mode==="fast"?[o6.fastFormats,SR]:[o6.fullFormats,BH],G=Q.formats||o6.formatNames;if(ZH(X,G,Y,J),Q.keywords)(0,bR.default)(X);return X};a5.get=(X,Q="full")=>{let J=(Q==="fast"?o6.fastFormats:o6.fullFormats)[X];if(!J)throw Error(`Unknown format "${X}"`);return J};function ZH(X,Q,Y,J){var G,$;(G=($=X.opts.code).formats)!==null&&G!==void 0||($.formats=s5._`require("ajv-formats/dist/formats").${J}`);for(let W of Q)X.addFormat(W,Y[W])}HH.exports=X9=a5;Object.defineProperty(X9,"__esModule",{value:!0});X9.default=a5});var v7=GX(k7(),1),{program:Xj,createCommand:Qj,createArgument:Yj,createOption:Jj,CommanderError:Gj,InvalidArgumentError:$j,InvalidOptionArgumentError:Wj,Command:FX,Argument:zj,Option:Bj,Help:Zj}=v7.default;var qX={name:"@zoominfo/gtm-ai-cli",version:"1.0.1",description:"A command-line tool for searching ZoomInfo's go-to-market data",repository:"https://github.com/Zoominfo/gtm-ai-cli",author:{name:"ZoomInfo",email:"developers@zoominfo.com"},homepage:"https://github.com/Zoominfo/gtm-ai-cli",license:"MIT",type:"module",bin:{gtm:"dist/index.js"},files:["dist/index.js","README.md"],scripts:{build:"bun build ./src/index.ts --target node --format esm --minify --outdir dist","build:all":"bun build ./src/index.ts --compile --minify --target=bun-darwin-arm64 --outfile dist/gtm-macos-arm64 && bun build ./src/index.ts --compile --minify --target=bun-darwin-x64 --outfile dist/gtm-macos-x64 && bun build ./src/index.ts --compile --minify --target=bun-linux-x64 --outfile dist/gtm-linux-x64 && bun build ./src/index.ts --compile --minify --target=bun-windows-x64 --outfile dist/gtm-windows-x64.exe",prepublishOnly:"npm run build","start:dev":"bun run src/index.ts",test:"vitest run -c vitest.config.ts","test:watch":"vitest -c vitest.config.ts","test:live":"vitest run -c vitest.config.live.ts",typecheck:"tsc --noEmit"},dependencies:{"@modelcontextprotocol/sdk":"^1.0.0",commander:"^14.0.3","js-yaml":"^4.1.1"},devDependencies:{"@semantic-release/git":"10.0.1","@types/js-yaml":"^4.0.9","@types/node":"^25.7.0",bun:"^1.3.14",tsx:"^4.20.0",typescript:"^6.0.3",vitest:"^4.1.8"},publishConfig:{access:"public"},release:{branches:["main"],plugins:[["@semantic-release/commit-analyzer",{releaseRules:[{type:"docs",scope:"README",release:"patch"}]}],"@semantic-release/release-notes-generator","@semantic-release/npm","@semantic-release/git"]}};var z4={name:qX.name,version:qX.version};import vD from"http";import u7 from"crypto";import{spawnSync as OX}from"child_process";import{mkdirSync as _7,writeFileSync as x7,readFileSync as y7,existsSync as UX,unlinkSync as TD}from"fs";import{join as LX,dirname as bD}from"path";import{homedir as SD}from"os";var ED=60000,AX=LX(SD(),".config","gtm-ai"),P6=LX(AX,"credentials"),MX=LX(AX,"client_id");function g7(){if(!UX(MX))return null;return y7(MX,"utf8").trim()||null}function CD(X){_7(AX,{recursive:!0,mode:448}),x7(MX,X,{mode:384})}function NX({clientId:X,access_token:Q,refresh_token:Y,expires_in:J}){_7(bD(P6),{recursive:!0,mode:448}),CD(X);let G={type:"oauth",access_token:Q,refresh_token:Y,client_id:X,expires_at:J?Date.now()+J*1000:null};x7(P6,JSON.stringify(G),{mode:384})}function kD(X){if(typeof X!=="object"||X===null)return!1;let Q=X;return Q.type==="oauth"&&typeof Q.access_token==="string"&&typeof Q.refresh_token==="string"&&typeof Q.client_id==="string"&&(Q.expires_at===null||typeof Q.expires_at==="number")}function U9(){if(!UX(P6))return null;let X=JSON.parse(y7(P6,"utf8"));return kD(X)?X:null}async function L9(){let X=U9();if(!X)return null;if(!(X.expires_at!==null&&Date.now()>=X.expires_at-ED))return X;if(!X.refresh_token)return X;try{let Y=await h7(X.refresh_token,X.client_id);return NX({clientId:X.client_id,access_token:Y.access_token,refresh_token:Y.refresh_token,expires_in:Y.expires_in}),U9()}catch{console.error("Session expired. Run: gtm auth login"),process.exit(1)}}function f7(){if(UX(P6))TD(P6)}import{randomUUID as _D}from"node:crypto";import{clearTimeout as xD}from"node:timers";var yD="https://mcp.zoominfo.com/oauth/authorize",gD="https://mcp.zoominfo.com/oauth/register",m7="https://okta-login.zoominfo.com/oauth2/default/v1/token",fD="https://okta-login.zoominfo.com/oauth2/default/v1/revoke",PX=9876,wX=`http://localhost:${PX}/callback`,hD="GTM AI CLI",l7="openid offline_access api:data:mcp zi_mcp profile email",uD=300000;function mD(){let X=u7.randomBytes(32).toString("base64url"),Q=u7.createHash("sha256").update(X).digest("base64url");return{verifier:X,challenge:Q}}function c7(X){if(typeof X!=="object"||X===null)return!1;let Q=X;return typeof Q.access_token==="string"&&typeof Q.refresh_token==="string"&&typeof Q.expires_in==="number"}async function lD(){let X=await fetch(gD,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_name:hD,redirect_uris:[wX],grant_types:["authorization_code","refresh_token"],response_types:["code"],token_endpoint_auth_method:"none",scope:l7})});if(!X.ok)throw Error(`Client registration failed: ${await X.text()}`);let Q=await X.json();if(typeof Q!=="object"||Q===null||typeof Q.client_id!=="string")throw Error("Client registration response missing client_id");return Q.client_id}async function cD(X,Q,Y){let J=await fetch(m7,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"authorization_code",code:X,client_id:Q,redirect_uri:wX,code_verifier:Y})});if(!J.ok)throw Error(`Token exchange failed: ${await J.text()}`);let G=await J.json();if(!c7(G))throw Error("Token exchange returned unexpected payload");return G}async function h7(X,Q){let Y=await fetch(m7,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({grant_type:"refresh_token",refresh_token:X,client_id:Q})});if(!Y.ok)throw Error(`Token refresh failed: ${await Y.text()}`);let J=await Y.json();if(!c7(J))throw Error("Token refresh returned unexpected payload");return J}async function p7(X,Q){await fetch(fD,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({token:X,client_id:Q})})}function pD(X){let Q=process.platform==="darwin"?OX("open",[X]):process.platform==="win32"?OX("rundll32",["url.dll,FileProtocolHandler",X]):OX("xdg-open",[X]);if(Q.error||Q.status!==0)console.log(`
|
|
35
35
|
Could not open browser automatically. Visit:
|
|
36
36
|
${X}
|
|
37
37
|
`)}async function d7(){let X=g7()??await lD(),{verifier:Q,challenge:Y}=mD(),J=_D().toString(),G=new URLSearchParams({client_id:X,redirect_uri:wX,response_type:"code",scope:l7,code_challenge:Y,code_challenge_method:"S256",state:J}),$=`${yD}?${G.toString()}`;return new Promise((W,z)=>{let H=!1,Z=setTimeout(()=>K(()=>z(Error("Authorization timed out"))),uD),K=(F)=>{if(H)return;H=!0,xD(Z),D.close(F)},D=vD.createServer(async(F,q)=>{let U=new URL(F.url??"/",`http://localhost:${PX}`);if(F.method!=="GET"||U.pathname!=="/callback"){q.writeHead(404,{"Content-Type":"text/plain"}),q.end("Not Found");return}let A=U.searchParams.get("code"),j=U.searchParams.get("state"),w=U.searchParams.get("error"),u=U.searchParams.get("error_description");if(q.writeHead(200,{"Content-Type":"text/html"}),q.end("<html><body><h2>Authorization complete. You can close this tab.</h2></body></html>"),w){let x=u?`${w}: ${u}`:w;return K(()=>z(Error(`Authorization denied: ${x}`)))}if(j!==J)return K(()=>z(Error("State mismatch — possible CSRF attack")));if(!A)return K(()=>z(Error("No authorization code received")));try{let x=await cD(A,X,Q);K(()=>W({clientId:X,...x}))}catch(x){K(()=>z(x instanceof Error?x:Error(String(x))))}});D.on("error",(F)=>K(()=>z(F))),D.listen(PX,"127.0.0.1",()=>{console.log("Opening browser for ZoomInfo login..."),pD($),console.log("Waiting for authorization...")})})}function i7(X){let Q=X.command("auth").description("Authenticate with ZoomInfo");Q.command("login").description("Authenticate to ZoomInfo via the browser").action(async()=>{let Y=await d7();NX({clientId:Y.clientId,access_token:Y.access_token,refresh_token:Y.refresh_token,expires_in:Y.expires_in}),console.log("Logged in.")}),Q.command("logout").description("Revoke the current token and remove saved credentials").action(async()=>{let Y=U9();if(Y)try{await p7(Y.access_token,Y.client_id)}catch{}f7(),console.log("Logged out.")}),Q.command("whoami").description("Show whether you are logged in").action(async()=>{let Y;try{Y=await L9()}catch(z){Y=null}if(!Y){console.log("No valid user found. Run `gtm auth login` to authenticate.");return}let J=Y?.access_token?.split(".");if((J?.length??0)!==3){console.log("No valid user found. Run `gtm auth login` to authenticate.");return}let{firstName:G,lastName:$,ziUsername:W}=JSON.parse(atob(J[1]));console.log(`Logged in as ${G} ${$} (${W})`)})}import{readFile as kI}from"node:fs/promises";var n7,RX=Object.freeze({status:"aborted"});function O(X,Q,Y){function J(z,H){if(!z._zod)Object.defineProperty(z,"_zod",{value:{def:H,constr:W,traits:new Set},enumerable:!1});if(z._zod.traits.has(X))return;z._zod.traits.add(X),Q(z,H);let Z=W.prototype,K=Object.keys(Z);for(let D=0;D<K.length;D++){let F=K[D];if(!(F in z))z[F]=Z[F].bind(z)}}let G=Y?.Parent??Object;class $ extends G{}Object.defineProperty($,"name",{value:X});function W(z){var H;let Z=Y?.Parent?new $:this;J(Z,z),(H=Z._zod).deferred??(H.deferred=[]);for(let K of Z._zod.deferred)K();return Z}return Object.defineProperty(W,"init",{value:J}),Object.defineProperty(W,Symbol.hasInstance,{value:(z)=>{if(Y?.Parent&&z instanceof Y.Parent)return!0;return z?._zod?.traits?.has(X)}}),Object.defineProperty(W,"name",{value:X}),W}var dD=Symbol("zod_brand");class b1 extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class B4 extends Error{constructor(X){super(`Encountered unidirectional transform during encode: ${X}`);this.name="ZodEncodeError"}}(n7=globalThis).__zod_globalConfig??(n7.__zod_globalConfig={});var w6=globalThis.__zod_globalConfig;function o0(X){if(X)Object.assign(w6,X);return w6}var Y0={};$X(Y0,{unwrapMessage:()=>Z4,uint8ArrayToHex:()=>MV,uint8ArrayToBase64url:()=>FV,uint8ArrayToBase64:()=>XY,stringifyPrimitive:()=>P9,slugify:()=>TX,shallowClone:()=>r7,safeExtend:()=>BV,required:()=>KV,randomString:()=>QV,propertyKeyTypes:()=>SX,promiseAllObject:()=>XV,primitiveTypes:()=>s7,prefixIssues:()=>C1,pick:()=>$V,partial:()=>HV,parsedType:()=>vX,optionalKeys:()=>EX,omit:()=>WV,objectClone:()=>aD,numKeys:()=>YV,nullish:()=>K4,normalizeParams:()=>n,mergeDefs:()=>S1,merge:()=>ZV,jsonStringifyReplacer:()=>R6,joinValues:()=>A9,issue:()=>j6,isPlainObject:()=>l1,isObject:()=>G6,hexToUint8Array:()=>qV,getSizableOrigin:()=>t7,getParsedType:()=>JV,getLengthableOrigin:()=>V4,getEnumValues:()=>H4,getElementAtPath:()=>eD,floatSafeRemainder:()=>jX,finalizeIssue:()=>$1,extend:()=>zV,explicitlyAborted:()=>kX,escapeRegex:()=>E1,esc:()=>N9,defineLazy:()=>B0,createTransparentProxy:()=>GV,cloneDef:()=>tD,clone:()=>G1,cleanRegex:()=>D4,cleanEnum:()=>DV,captureStackTrace:()=>O9,cached:()=>I6,base64urlToUint8Array:()=>VV,base64ToUint8Array:()=>e7,assignProp:()=>m1,assertNotEqual:()=>nD,assertNever:()=>rD,assertIs:()=>oD,assertEqual:()=>iD,assert:()=>sD,allowsEval:()=>bX,aborted:()=>c1,NUMBER_FORMAT_RANGES:()=>CX,Class:()=>QY,BIGINT_FORMAT_RANGES:()=>a7});function iD(X){return X}function nD(X){return X}function oD(X){}function rD(X){throw Error("Unexpected value in exhaustive check")}function sD(X){}function H4(X){let Q=Object.values(X).filter((J)=>typeof J==="number");return Object.entries(X).filter(([J,G])=>Q.indexOf(+J)===-1).map(([J,G])=>G)}function A9(X,Q="|"){return X.map((Y)=>P9(Y)).join(Q)}function R6(X,Q){if(typeof Q==="bigint")return Q.toString();return Q}function I6(X){return{get value(){{let Y=X();return Object.defineProperty(this,"value",{value:Y}),Y}throw Error("cached value already set")}}}function K4(X){return X===null||X===void 0}function D4(X){let Q=X.startsWith("^")?1:0,Y=X.endsWith("$")?X.length-1:X.length;return X.slice(Q,Y)}function jX(X,Q){let Y=X/Q,J=Math.round(Y),G=Number.EPSILON*Math.max(Math.abs(Y),1);if(Math.abs(Y-J)<G)return 0;return Y-J}var o7=Symbol("evaluating");function B0(X,Q,Y){let J=void 0;Object.defineProperty(X,Q,{get(){if(J===o7)return;if(J===void 0)J=o7,J=Y();return J},set(G){Object.defineProperty(X,Q,{value:G})},configurable:!0})}function aD(X){return Object.create(Object.getPrototypeOf(X),Object.getOwnPropertyDescriptors(X))}function m1(X,Q,Y){Object.defineProperty(X,Q,{value:Y,writable:!0,enumerable:!0,configurable:!0})}function S1(...X){let Q={};for(let Y of X){let J=Object.getOwnPropertyDescriptors(Y);Object.assign(Q,J)}return Object.defineProperties({},Q)}function tD(X){return S1(X._zod.def)}function eD(X,Q){if(!Q)return X;return Q.reduce((Y,J)=>Y?.[J],X)}function XV(X){let Q=Object.keys(X),Y=Q.map((J)=>X[J]);return Promise.all(Y).then((J)=>{let G={};for(let $=0;$<Q.length;$++)G[Q[$]]=J[$];return G})}function QV(X=10){let Y="";for(let J=0;J<X;J++)Y+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return Y}function N9(X){return JSON.stringify(X)}function TX(X){return X.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var O9="captureStackTrace"in Error?Error.captureStackTrace:(...X)=>{};function G6(X){return typeof X==="object"&&X!==null&&!Array.isArray(X)}var bX=I6(()=>{if(w6.jitless)return!1;if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(X){return!1}});function l1(X){if(G6(X)===!1)return!1;let Q=X.constructor;if(Q===void 0)return!0;if(typeof Q!=="function")return!0;let Y=Q.prototype;if(G6(Y)===!1)return!1;if(Object.prototype.hasOwnProperty.call(Y,"isPrototypeOf")===!1)return!1;return!0}function r7(X){if(l1(X))return{...X};if(Array.isArray(X))return[...X];if(X instanceof Map)return new Map(X);if(X instanceof Set)return new Set(X);return X}function YV(X){let Q=0;for(let Y in X)if(Object.prototype.hasOwnProperty.call(X,Y))Q++;return Q}var JV=(X)=>{let Q=typeof X;switch(Q){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(X)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(X))return"array";if(X===null)return"null";if(X.then&&typeof X.then==="function"&&X.catch&&typeof X.catch==="function")return"promise";if(typeof Map<"u"&&X instanceof Map)return"map";if(typeof Set<"u"&&X instanceof Set)return"set";if(typeof Date<"u"&&X instanceof Date)return"date";if(typeof File<"u"&&X instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${Q}`)}},SX=new Set(["string","number","symbol"]),s7=new Set(["string","number","bigint","boolean","symbol","undefined"]);function E1(X){return X.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function G1(X,Q,Y){let J=new X._zod.constr(Q??X._zod.def);if(!Q||Y?.parent)J._zod.parent=X;return J}function n(X){let Q=X;if(!Q)return{};if(typeof Q==="string")return{error:()=>Q};if(Q?.message!==void 0){if(Q?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");Q.error=Q.message}if(delete Q.message,typeof Q.error==="string")return{...Q,error:()=>Q.error};return Q}function GV(X){let Q;return new Proxy({},{get(Y,J,G){return Q??(Q=X()),Reflect.get(Q,J,G)},set(Y,J,G,$){return Q??(Q=X()),Reflect.set(Q,J,G,$)},has(Y,J){return Q??(Q=X()),Reflect.has(Q,J)},deleteProperty(Y,J){return Q??(Q=X()),Reflect.deleteProperty(Q,J)},ownKeys(Y){return Q??(Q=X()),Reflect.ownKeys(Q)},getOwnPropertyDescriptor(Y,J){return Q??(Q=X()),Reflect.getOwnPropertyDescriptor(Q,J)},defineProperty(Y,J,G){return Q??(Q=X()),Reflect.defineProperty(Q,J,G)}})}function P9(X){if(typeof X==="bigint")return X.toString()+"n";if(typeof X==="string")return`"${X}"`;return`${X}`}function EX(X){return Object.keys(X).filter((Q)=>{return X[Q]._zod.optin==="optional"&&X[Q]._zod.optout==="optional"})}var CX={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},a7={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function $V(X,Q){let Y=X._zod.def,J=Y.checks;if(J&&J.length>0)throw Error(".pick() cannot be used on object schemas containing refinements");let $=S1(X._zod.def,{get shape(){let W={};for(let z in Q){if(!(z in Y.shape))throw Error(`Unrecognized key: "${z}"`);if(!Q[z])continue;W[z]=Y.shape[z]}return m1(this,"shape",W),W},checks:[]});return G1(X,$)}function WV(X,Q){let Y=X._zod.def,J=Y.checks;if(J&&J.length>0)throw Error(".omit() cannot be used on object schemas containing refinements");let $=S1(X._zod.def,{get shape(){let W={...X._zod.def.shape};for(let z in Q){if(!(z in Y.shape))throw Error(`Unrecognized key: "${z}"`);if(!Q[z])continue;delete W[z]}return m1(this,"shape",W),W},checks:[]});return G1(X,$)}function zV(X,Q){if(!l1(Q))throw Error("Invalid input to extend: expected a plain object");let Y=X._zod.def.checks;if(Y&&Y.length>0){let $=X._zod.def.shape;for(let W in Q)if(Object.getOwnPropertyDescriptor($,W)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let G=S1(X._zod.def,{get shape(){let $={...X._zod.def.shape,...Q};return m1(this,"shape",$),$}});return G1(X,G)}function BV(X,Q){if(!l1(Q))throw Error("Invalid input to safeExtend: expected a plain object");let Y=S1(X._zod.def,{get shape(){let J={...X._zod.def.shape,...Q};return m1(this,"shape",J),J}});return G1(X,Y)}function ZV(X,Q){if(X._zod.def.checks?.length)throw Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let Y=S1(X._zod.def,{get shape(){let J={...X._zod.def.shape,...Q._zod.def.shape};return m1(this,"shape",J),J},get catchall(){return Q._zod.def.catchall},checks:Q._zod.def.checks??[]});return G1(X,Y)}function HV(X,Q,Y){let G=Q._zod.def.checks;if(G&&G.length>0)throw Error(".partial() cannot be used on object schemas containing refinements");let W=S1(Q._zod.def,{get shape(){let z=Q._zod.def.shape,H={...z};if(Y)for(let Z in Y){if(!(Z in z))throw Error(`Unrecognized key: "${Z}"`);if(!Y[Z])continue;H[Z]=X?new X({type:"optional",innerType:z[Z]}):z[Z]}else for(let Z in z)H[Z]=X?new X({type:"optional",innerType:z[Z]}):z[Z];return m1(this,"shape",H),H},checks:[]});return G1(Q,W)}function KV(X,Q,Y){let J=S1(Q._zod.def,{get shape(){let G=Q._zod.def.shape,$={...G};if(Y)for(let W in Y){if(!(W in $))throw Error(`Unrecognized key: "${W}"`);if(!Y[W])continue;$[W]=new X({type:"nonoptional",innerType:G[W]})}else for(let W in G)$[W]=new X({type:"nonoptional",innerType:G[W]});return m1(this,"shape",$),$}});return G1(Q,J)}function c1(X,Q=0){if(X.aborted===!0)return!0;for(let Y=Q;Y<X.issues.length;Y++)if(X.issues[Y]?.continue!==!0)return!0;return!1}function kX(X,Q=0){if(X.aborted===!0)return!0;for(let Y=Q;Y<X.issues.length;Y++)if(X.issues[Y]?.continue===!1)return!0;return!1}function C1(X,Q){return Q.map((Y)=>{var J;return(J=Y).path??(J.path=[]),Y.path.unshift(X),Y})}function Z4(X){return typeof X==="string"?X:X?.message}function $1(X,Q,Y){let J=X.message?X.message:Z4(X.inst?._zod.def?.error?.(X))??Z4(Q?.error?.(X))??Z4(Y.customError?.(X))??Z4(Y.localeError?.(X))??"Invalid input",{inst:G,continue:$,input:W,...z}=X;if(z.path??(z.path=[]),z.message=J,Q?.reportInput)z.input=W;return z}function t7(X){if(X instanceof Set)return"set";if(X instanceof Map)return"map";if(X instanceof File)return"file";return"unknown"}function V4(X){if(Array.isArray(X))return"array";if(typeof X==="string")return"string";return"unknown"}function vX(X){let Q=typeof X;switch(Q){case"number":return Number.isNaN(X)?"nan":"number";case"object":{if(X===null)return"null";if(Array.isArray(X))return"array";let Y=X;if(Y&&Object.getPrototypeOf(Y)!==Object.prototype&&"constructor"in Y&&Y.constructor)return Y.constructor.name}}return Q}function j6(...X){let[Q,Y,J]=X;if(typeof Q==="string")return{message:Q,code:"custom",input:Y,inst:J};return{...Q}}function DV(X){return Object.entries(X).filter(([Q,Y])=>{return Number.isNaN(Number.parseInt(Q,10))}).map((Q)=>Q[1])}function e7(X){let Q=atob(X),Y=new Uint8Array(Q.length);for(let J=0;J<Q.length;J++)Y[J]=Q.charCodeAt(J);return Y}function XY(X){let Q="";for(let Y=0;Y<X.length;Y++)Q+=String.fromCharCode(X[Y]);return btoa(Q)}function VV(X){let Q=X.replace(/-/g,"+").replace(/_/g,"/"),Y="=".repeat((4-Q.length%4)%4);return e7(Q+Y)}function FV(X){return XY(X).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function qV(X){let Q=X.replace(/^0x/,"");if(Q.length%2!==0)throw Error("Invalid hex string length");let Y=new Uint8Array(Q.length/2);for(let J=0;J<Q.length;J+=2)Y[J/2]=Number.parseInt(Q.slice(J,J+2),16);return Y}function MV(X){return Array.from(X).map((Q)=>Q.toString(16).padStart(2,"0")).join("")}class QY{constructor(...X){}}var YY=(X,Q)=>{X.name="$ZodError",Object.defineProperty(X,"_zod",{value:X._zod,enumerable:!1}),Object.defineProperty(X,"issues",{value:Q,enumerable:!1}),X.message=JSON.stringify(Q,R6,2),Object.defineProperty(X,"toString",{value:()=>X.message,enumerable:!1})},w9=O("$ZodError",YY),_X=O("$ZodError",YY,{Parent:Error});function xX(X,Q=(Y)=>Y.message){let Y={},J=[];for(let G of X.issues)if(G.path.length>0)Y[G.path[0]]=Y[G.path[0]]||[],Y[G.path[0]].push(Q(G));else J.push(Q(G));return{formErrors:J,fieldErrors:Y}}function yX(X,Q=(Y)=>Y.message){let Y={_errors:[]},J=(G,$=[])=>{for(let W of G.issues)if(W.code==="invalid_union"&&W.errors.length)W.errors.map((z)=>J({issues:z},[...$,...W.path]));else if(W.code==="invalid_key")J({issues:W.issues},[...$,...W.path]);else if(W.code==="invalid_element")J({issues:W.issues},[...$,...W.path]);else{let z=[...$,...W.path];if(z.length===0)Y._errors.push(Q(W));else{let H=Y,Z=0;while(Z<z.length){let K=z[Z];if(Z!==z.length-1)H[K]=H[K]||{_errors:[]};else H[K]=H[K]||{_errors:[]},H[K]._errors.push(Q(W));H=H[K],Z++}}}};return J(X),Y}var R9=(X)=>(Q,Y,J,G)=>{let $=J?{...J,async:!1}:{async:!1},W=Q._zod.run({value:Y,issues:[]},$);if(W instanceof Promise)throw new b1;if(W.issues.length){let z=new(G?.Err??X)(W.issues.map((H)=>$1(H,$,o0())));throw O9(z,G?.callee),z}return W.value};var I9=(X)=>async(Q,Y,J,G)=>{let $=J?{...J,async:!0}:{async:!0},W=Q._zod.run({value:Y,issues:[]},$);if(W instanceof Promise)W=await W;if(W.issues.length){let z=new(G?.Err??X)(W.issues.map((H)=>$1(H,$,o0())));throw O9(z,G?.callee),z}return W.value};var F4=(X)=>(Q,Y,J)=>{let G=J?{...J,async:!1}:{async:!1},$=Q._zod.run({value:Y,issues:[]},G);if($ instanceof Promise)throw new b1;return $.issues.length?{success:!1,error:new(X??w9)($.issues.map((W)=>$1(W,G,o0())))}:{success:!0,data:$.value}},q4=F4(_X),M4=(X)=>async(Q,Y,J)=>{let G=J?{...J,async:!0}:{async:!0},$=Q._zod.run({value:Y,issues:[]},G);if($ instanceof Promise)$=await $;return $.issues.length?{success:!1,error:new X($.issues.map((W)=>$1(W,G,o0())))}:{success:!0,data:$.value}},j9=M4(_X),JY=(X)=>(Q,Y,J)=>{let G=J?{...J,direction:"backward"}:{direction:"backward"};return R9(X)(Q,Y,G)};var GY=(X)=>(Q,Y,J)=>{return R9(X)(Q,Y,J)};var $Y=(X)=>async(Q,Y,J)=>{let G=J?{...J,direction:"backward"}:{direction:"backward"};return I9(X)(Q,Y,G)};var WY=(X)=>async(Q,Y,J)=>{return I9(X)(Q,Y,J)};var zY=(X)=>(Q,Y,J)=>{let G=J?{...J,direction:"backward"}:{direction:"backward"};return F4(X)(Q,Y,G)};var BY=(X)=>(Q,Y,J)=>{return F4(X)(Q,Y,J)};var ZY=(X)=>async(Q,Y,J)=>{let G=J?{...J,direction:"backward"}:{direction:"backward"};return M4(X)(Q,Y,G)};var HY=(X)=>async(Q,Y,J)=>{return M4(X)(Q,Y,J)};var KY=/^[cC][0-9a-z]{6,}$/,DY=/^[0-9a-z]+$/,VY=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,FY=/^[0-9a-vA-V]{20}$/,qY=/^[A-Za-z0-9]{27}$/,MY=/^[a-zA-Z0-9_-]{21}$/,UY=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/;var LY=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,gX=(X)=>{if(!X)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${X}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)};var AY=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/;var LV="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function NY(){return new RegExp(LV,"u")}var OY=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,PY=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/;var wY=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,RY=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,IY=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,fX=/^[A-Za-z0-9_-]*$/;var jY=/^https?$/,TY=/^\+[1-9]\d{6,14}$/,bY="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",SY=new RegExp(`^${bY}$`);function EY(X){return typeof X.precision==="number"?X.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":X.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${X.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function CY(X){return new RegExp(`^${EY(X)}$`)}function kY(X){let Q=EY({precision:X.precision}),Y=["Z"];if(X.local)Y.push("");if(X.offset)Y.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let J=`${Q}(?:${Y.join("|")})`;return new RegExp(`^${bY}T(?:${J})$`)}var vY=(X)=>{let Q=X?`[\\s\\S]{${X?.minimum??0},${X?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${Q}$`)},_Y=/^-?\d+n?$/,xY=/^-?\d+$/,T9=/^-?\d+(?:\.\d+)?$/,yY=/^(?:true|false)$/i,gY=/^null$/i;var fY=/^[^A-Z]*$/,hY=/^[^a-z]*$/;var y0=O("$ZodCheck",(X,Q)=>{var Y;X._zod??(X._zod={}),X._zod.def=Q,(Y=X._zod).onattach??(Y.onattach=[])}),uY={number:"number",bigint:"bigint",object:"date"},hX=O("$ZodCheckLessThan",(X,Q)=>{y0.init(X,Q);let Y=uY[typeof Q.value];X._zod.onattach.push((J)=>{let G=J._zod.bag,$=(Q.inclusive?G.maximum:G.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(Q.value<$)if(Q.inclusive)G.maximum=Q.value;else G.exclusiveMaximum=Q.value}),X._zod.check=(J)=>{if(Q.inclusive?J.value<=Q.value:J.value<Q.value)return;J.issues.push({origin:Y,code:"too_big",maximum:typeof Q.value==="object"?Q.value.getTime():Q.value,input:J.value,inclusive:Q.inclusive,inst:X,continue:!Q.abort})}}),uX=O("$ZodCheckGreaterThan",(X,Q)=>{y0.init(X,Q);let Y=uY[typeof Q.value];X._zod.onattach.push((J)=>{let G=J._zod.bag,$=(Q.inclusive?G.minimum:G.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(Q.value>$)if(Q.inclusive)G.minimum=Q.value;else G.exclusiveMinimum=Q.value}),X._zod.check=(J)=>{if(Q.inclusive?J.value>=Q.value:J.value>Q.value)return;J.issues.push({origin:Y,code:"too_small",minimum:typeof Q.value==="object"?Q.value.getTime():Q.value,input:J.value,inclusive:Q.inclusive,inst:X,continue:!Q.abort})}}),mY=O("$ZodCheckMultipleOf",(X,Q)=>{y0.init(X,Q),X._zod.onattach.push((Y)=>{var J;(J=Y._zod.bag).multipleOf??(J.multipleOf=Q.value)}),X._zod.check=(Y)=>{if(typeof Y.value!==typeof Q.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof Y.value==="bigint"?Y.value%Q.value===BigInt(0):jX(Y.value,Q.value)===0)return;Y.issues.push({origin:typeof Y.value,code:"not_multiple_of",divisor:Q.value,input:Y.value,inst:X,continue:!Q.abort})}}),lY=O("$ZodCheckNumberFormat",(X,Q)=>{y0.init(X,Q),Q.format=Q.format||"float64";let Y=Q.format?.includes("int"),J=Y?"int":"number",[G,$]=CX[Q.format];X._zod.onattach.push((W)=>{let z=W._zod.bag;if(z.format=Q.format,z.minimum=G,z.maximum=$,Y)z.pattern=xY}),X._zod.check=(W)=>{let z=W.value;if(Y){if(!Number.isInteger(z)){W.issues.push({expected:J,format:Q.format,code:"invalid_type",continue:!1,input:z,inst:X});return}if(!Number.isSafeInteger(z)){if(z>0)W.issues.push({input:z,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:X,origin:J,inclusive:!0,continue:!Q.abort});else W.issues.push({input:z,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:X,origin:J,inclusive:!0,continue:!Q.abort});return}}if(z<G)W.issues.push({origin:"number",input:z,code:"too_small",minimum:G,inclusive:!0,inst:X,continue:!Q.abort});if(z>$)W.issues.push({origin:"number",input:z,code:"too_big",maximum:$,inclusive:!0,inst:X,continue:!Q.abort})}});var cY=O("$ZodCheckMaxLength",(X,Q)=>{var Y;y0.init(X,Q),(Y=X._zod.def).when??(Y.when=(J)=>{let G=J.value;return!K4(G)&&G.length!==void 0}),X._zod.onattach.push((J)=>{let G=J._zod.bag.maximum??Number.POSITIVE_INFINITY;if(Q.maximum<G)J._zod.bag.maximum=Q.maximum}),X._zod.check=(J)=>{let G=J.value;if(G.length<=Q.maximum)return;let W=V4(G);J.issues.push({origin:W,code:"too_big",maximum:Q.maximum,inclusive:!0,input:G,inst:X,continue:!Q.abort})}}),pY=O("$ZodCheckMinLength",(X,Q)=>{var Y;y0.init(X,Q),(Y=X._zod.def).when??(Y.when=(J)=>{let G=J.value;return!K4(G)&&G.length!==void 0}),X._zod.onattach.push((J)=>{let G=J._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(Q.minimum>G)J._zod.bag.minimum=Q.minimum}),X._zod.check=(J)=>{let G=J.value;if(G.length>=Q.minimum)return;let W=V4(G);J.issues.push({origin:W,code:"too_small",minimum:Q.minimum,inclusive:!0,input:G,inst:X,continue:!Q.abort})}}),dY=O("$ZodCheckLengthEquals",(X,Q)=>{var Y;y0.init(X,Q),(Y=X._zod.def).when??(Y.when=(J)=>{let G=J.value;return!K4(G)&&G.length!==void 0}),X._zod.onattach.push((J)=>{let G=J._zod.bag;G.minimum=Q.length,G.maximum=Q.length,G.length=Q.length}),X._zod.check=(J)=>{let G=J.value,$=G.length;if($===Q.length)return;let W=V4(G),z=$>Q.length;J.issues.push({origin:W,...z?{code:"too_big",maximum:Q.length}:{code:"too_small",minimum:Q.length},inclusive:!0,exact:!0,input:J.value,inst:X,continue:!Q.abort})}}),L4=O("$ZodCheckStringFormat",(X,Q)=>{var Y,J;if(y0.init(X,Q),X._zod.onattach.push((G)=>{let $=G._zod.bag;if($.format=Q.format,Q.pattern)$.patterns??($.patterns=new Set),$.patterns.add(Q.pattern)}),Q.pattern)(Y=X._zod).check??(Y.check=(G)=>{if(Q.pattern.lastIndex=0,Q.pattern.test(G.value))return;G.issues.push({origin:"string",code:"invalid_format",format:Q.format,input:G.value,...Q.pattern?{pattern:Q.pattern.toString()}:{},inst:X,continue:!Q.abort})});else(J=X._zod).check??(J.check=()=>{})}),iY=O("$ZodCheckRegex",(X,Q)=>{L4.init(X,Q),X._zod.check=(Y)=>{if(Q.pattern.lastIndex=0,Q.pattern.test(Y.value))return;Y.issues.push({origin:"string",code:"invalid_format",format:"regex",input:Y.value,pattern:Q.pattern.toString(),inst:X,continue:!Q.abort})}}),nY=O("$ZodCheckLowerCase",(X,Q)=>{Q.pattern??(Q.pattern=fY),L4.init(X,Q)}),oY=O("$ZodCheckUpperCase",(X,Q)=>{Q.pattern??(Q.pattern=hY),L4.init(X,Q)}),rY=O("$ZodCheckIncludes",(X,Q)=>{y0.init(X,Q);let Y=E1(Q.includes),J=new RegExp(typeof Q.position==="number"?`^.{${Q.position}}${Y}`:Y);Q.pattern=J,X._zod.onattach.push((G)=>{let $=G._zod.bag;$.patterns??($.patterns=new Set),$.patterns.add(J)}),X._zod.check=(G)=>{if(G.value.includes(Q.includes,Q.position))return;G.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:Q.includes,input:G.value,inst:X,continue:!Q.abort})}}),sY=O("$ZodCheckStartsWith",(X,Q)=>{y0.init(X,Q);let Y=new RegExp(`^${E1(Q.prefix)}.*`);Q.pattern??(Q.pattern=Y),X._zod.onattach.push((J)=>{let G=J._zod.bag;G.patterns??(G.patterns=new Set),G.patterns.add(Y)}),X._zod.check=(J)=>{if(J.value.startsWith(Q.prefix))return;J.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:Q.prefix,input:J.value,inst:X,continue:!Q.abort})}}),aY=O("$ZodCheckEndsWith",(X,Q)=>{y0.init(X,Q);let Y=new RegExp(`.*${E1(Q.suffix)}$`);Q.pattern??(Q.pattern=Y),X._zod.onattach.push((J)=>{let G=J._zod.bag;G.patterns??(G.patterns=new Set),G.patterns.add(Y)}),X._zod.check=(J)=>{if(J.value.endsWith(Q.suffix))return;J.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:Q.suffix,input:J.value,inst:X,continue:!Q.abort})}});var tY=O("$ZodCheckOverwrite",(X,Q)=>{y0.init(X,Q),X._zod.check=(Y)=>{Y.value=Q.tx(Y.value)}});class mX{constructor(X=[]){if(this.content=[],this.indent=0,this)this.args=X}indented(X){this.indent+=1,X(this),this.indent-=1}write(X){if(typeof X==="function"){X(this,{execution:"sync"}),X(this,{execution:"async"});return}let Y=X.split(`
|
package/package.json
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zoominfo/gtm-ai-cli",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "A command-line tool for searching ZoomInfo's go-to-market data",
|
|
5
|
+
"repository": "https://github.com/Zoominfo/gtm-ai-cli",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "ZoomInfo",
|
|
8
|
+
"email": "developers@zoominfo.com"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/Zoominfo/gtm-ai-cli",
|
|
11
|
+
"license": "MIT",
|
|
5
12
|
"type": "module",
|
|
6
13
|
"bin": {
|
|
7
14
|
"gtm": "dist/index.js"
|
|
@@ -42,14 +49,20 @@
|
|
|
42
49
|
"main"
|
|
43
50
|
],
|
|
44
51
|
"plugins": [
|
|
45
|
-
"@semantic-release/commit-analyzer",
|
|
46
|
-
"@semantic-release/release-notes-generator",
|
|
47
52
|
[
|
|
48
|
-
"@semantic-release/
|
|
53
|
+
"@semantic-release/commit-analyzer",
|
|
49
54
|
{
|
|
50
|
-
"
|
|
55
|
+
"releaseRules": [
|
|
56
|
+
{
|
|
57
|
+
"type": "docs",
|
|
58
|
+
"scope": "README",
|
|
59
|
+
"release": "patch"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
51
62
|
}
|
|
52
63
|
],
|
|
64
|
+
"@semantic-release/release-notes-generator",
|
|
65
|
+
"@semantic-release/npm",
|
|
53
66
|
"@semantic-release/git"
|
|
54
67
|
]
|
|
55
68
|
}
|