@lukoweb/create-apitogo 0.1.1 → 0.1.3

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 CHANGED
@@ -1,114 +1,115 @@
1
- # Create APIToGo App
2
-
3
- Create a new APIToGo app in seconds with `@lukoweb/create-apitogo`.
4
-
5
- ### Interactive
6
-
7
- You can create a new project interactively by running:
8
-
9
- ```bash
10
- npm create @lukoweb/apitogo@latest
11
- # or
12
- yarn create @lukoweb/apitogo
13
- # or
14
- pnpm create @lukoweb/apitogo
15
- # or
16
- bunx @lukoweb/create-apitogo
17
- ```
18
-
19
- You will be asked for the name of your project, and then whether you want to create a TypeScript
20
- project:
21
-
22
- ```bash
23
- ✔ Would you like to use TypeScript? … No / Yes
24
- ```
25
-
26
- Select **Yes** to install the necessary types/dependencies and create a new TS project.
27
-
28
- ### Non-interactive
29
-
30
- You can also pass command line arguments to set up a new project non-interactively. See
31
- `@lukoweb/create-apitogo --help`:
32
-
33
- ```bash
34
- Usage: @lukoweb/create-apitogo [project-directory] [options]
35
-
36
- Options:
37
- -V, --version output the version number
38
- --ts, --typescript
39
-
40
- Initialize as a TypeScript project. (default)
41
-
42
- --js, --javascript
43
-
44
- Initialize as a JavaScript project.
45
-
46
- --eslint
47
-
48
- Initialize with ESLint config.
49
-
50
- --import-alias <alias-to-configure>
51
-
52
- Specify import alias to use (default "@/*").
53
-
54
- --empty
55
-
56
- Initialize an empty project.
57
-
58
- --use-npm
59
-
60
- Explicitly tell the CLI to bootstrap the application using npm
61
-
62
- --use-pnpm
63
-
64
- Explicitly tell the CLI to bootstrap the application using pnpm
65
-
66
- --use-yarn
67
-
68
- Explicitly tell the CLI to bootstrap the application using Yarn
69
-
70
- --use-bun
71
-
72
- Explicitly tell the CLI to bootstrap the application using Bun
73
-
74
- -e, --example [name]|[github-url]
75
-
76
- An example to bootstrap the app with. You can use an example name
77
- from the official Zudoku repo or a GitHub URL. The URL can use
78
- any branch and/or subdirectory
79
-
80
- --example-path <path-to-example>
81
-
82
- In a rare case, your GitHub URL might contain a branch name with
83
- a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).
84
- In this case, you must specify the path to the example separately:
85
- --example-path foo/bar
86
-
87
- --reset-preferences
88
-
89
- Explicitly tell the CLI to reset any stored preferences
90
-
91
- --skip-install
92
-
93
- Explicitly tell the CLI to skip installing packages
94
-
95
- --yes
96
-
97
- Use previous preferences or defaults for all options that were not
98
- explicitly specified, without prompting.
99
-
100
- -h, --help display help for command
101
- ```
102
-
103
- ### Why use Create APIToGo App?
104
-
105
- `@lukoweb/create-apitogo` allows you to create a new APIToGo app within seconds. It includes a number of benefits:
106
-
107
- - **Interactive Experience**: Running `npm create @lukoweb/apitogo@latest` (with no arguments) launches an
108
- interactive experience that guides you through setting up a project.
109
- - **Zero Dependencies**: Initializing a project is as quick as one second. Create APIToGo App has
110
- zero dependencies.
111
- - **Offline Support**: Create APIToGo App will automatically detect if you're offline and bootstrap
112
- your project using your local package cache.
113
- - **Support for Examples**: Create APIToGo App can bootstrap your application using an example from
114
- the examples collection (e.g. `npx @lukoweb/create-apitogo --example my-docs`).
1
+ # Create APIToGo App
2
+
3
+ Create a new APIToGo app in seconds with `@lukoweb/create-apitogo`.
4
+
5
+ ### Interactive
6
+
7
+ You can create a new project interactively by running:
8
+
9
+ ```bash
10
+ npm create @lukoweb/apitogo@latest
11
+ # or
12
+ yarn create @lukoweb/apitogo
13
+ # or
14
+ pnpm create @lukoweb/apitogo
15
+ # or
16
+ bunx @lukoweb/create-apitogo
17
+ ```
18
+
19
+ You will be asked for the name of your project, and then whether you want to create a TypeScript
20
+ project:
21
+
22
+ ```bash
23
+ ✔ Would you like to use TypeScript? … No / Yes
24
+ ```
25
+
26
+ Select **Yes** to install the necessary types/dependencies and create a new TS project.
27
+
28
+ ### Non-interactive
29
+
30
+ You can also pass command line arguments to set up a new project non-interactively. See
31
+ `@lukoweb/create-apitogo --help`:
32
+
33
+ ```bash
34
+ Usage: @lukoweb/create-apitogo [project-directory] [options]
35
+
36
+ Options:
37
+ -V, --version output the version number
38
+ --ts, --typescript
39
+
40
+ Initialize as a TypeScript project. (default)
41
+
42
+ --js, --javascript
43
+
44
+ Initialize as a JavaScript project.
45
+
46
+ --eslint
47
+
48
+ Initialize with ESLint config.
49
+
50
+ --import-alias <alias-to-configure>
51
+
52
+ Specify import alias to use (default "@/*").
53
+
54
+ --empty
55
+
56
+ Initialize an empty project.
57
+
58
+ --use-npm
59
+
60
+ Explicitly tell the CLI to bootstrap the application using npm
61
+
62
+ --use-pnpm
63
+
64
+ Explicitly tell the CLI to bootstrap the application using pnpm
65
+
66
+ --use-yarn
67
+
68
+ Explicitly tell the CLI to bootstrap the application using Yarn
69
+
70
+ --use-bun
71
+
72
+ Explicitly tell the CLI to bootstrap the application using Bun
73
+
74
+ -e, --example [name]|[github-url]
75
+
76
+ An example to bootstrap the app with. You can use an example name
77
+ from the official Zudoku repo or a GitHub URL. The URL can use
78
+ any branch and/or subdirectory
79
+
80
+ --example-path <path-to-example>
81
+
82
+ In a rare case, your GitHub URL might contain a branch name with
83
+ a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).
84
+ In this case, you must specify the path to the example separately:
85
+ --example-path foo/bar
86
+
87
+ --reset-preferences
88
+
89
+ Explicitly tell the CLI to reset any stored preferences
90
+
91
+ --skip-install
92
+
93
+ Explicitly tell the CLI to skip installing packages
94
+
95
+ --yes
96
+
97
+ Use previous preferences or defaults for all options that were not
98
+ explicitly specified, without prompting.
99
+
100
+ -h, --help display help for command
101
+ ```
102
+
103
+ ### Why use Create APIToGo App?
104
+
105
+ `@lukoweb/create-apitogo` allows you to create a new APIToGo app within seconds. It includes a
106
+ number of benefits:
107
+
108
+ - **Interactive Experience**: Running `npm create @lukoweb/apitogo@latest` (with no arguments)
109
+ launches an interactive experience that guides you through setting up a project.
110
+ - **Zero Dependencies**: Initializing a project is as quick as one second. Create APIToGo App has
111
+ zero dependencies.
112
+ - **Offline Support**: Create APIToGo App will automatically detect if you're offline and bootstrap
113
+ your project using your local package cache.
114
+ - **Support for Examples**: Create APIToGo App can bootstrap your application using an example from
115
+ the examples collection (e.g. `npx @lukoweb/create-apitogo --example my-docs`).
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+
2
3
  (()=>{var t={5254:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.createFileSystemAdapter=u.FILE_SYSTEM_ADAPTER=void 0;const m=p(7515);u.FILE_SYSTEM_ADAPTER={lstat:m.lstat,stat:m.stat,lstatSync:m.lstatSync,statSync:m.statSync,readdir:m.readdir,readdirSync:m.readdirSync};function createFileSystemAdapter(t){if(t===undefined){return u.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},u.FILE_SYSTEM_ADAPTER),t)}u.createFileSystemAdapter=createFileSystemAdapter},1121:(t,u)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const p=process.versions.node.split(".");if(p[0]===undefined||p[1]===undefined){throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`)}const m=Number.parseInt(p[0],10);const g=Number.parseInt(p[1],10);const y=10;const v=10;const b=m>y;const w=m===y&&g>=v;u.IS_SUPPORT_READDIR_WITH_FILE_TYPES=b||w},1484:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.Settings=u.scandirSync=u.scandir=void 0;const m=p(9977);const g=p(5554);const y=p(595);u.Settings=y.default;function scandir(t,u,p){if(typeof u==="function"){m.read(t,getSettings(),u);return}m.read(t,getSettings(u),p)}u.scandir=scandir;function scandirSync(t,u){const p=getSettings(u);return g.read(t,p)}u.scandirSync=scandirSync;function getSettings(t={}){if(t instanceof y.default){return t}return new y.default(t)}},9977:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.readdir=u.readdirWithFileTypes=u.read=void 0;const m=p(1309);const g=p(7906);const y=p(1121);const v=p(2046);const b=p(9392);function read(t,u,p){if(!u.stats&&y.IS_SUPPORT_READDIR_WITH_FILE_TYPES){readdirWithFileTypes(t,u,p);return}readdir(t,u,p)}u.read=read;function readdirWithFileTypes(t,u,p){u.fs.readdir(t,{withFileTypes:true},((m,y)=>{if(m!==null){callFailureCallback(p,m);return}const v=y.map((p=>({dirent:p,name:p.name,path:b.joinPathSegments(t,p.name,u.pathSegmentSeparator)})));if(!u.followSymbolicLinks){callSuccessCallback(p,v);return}const w=v.map((t=>makeRplTaskEntry(t,u)));g(w,((t,u)=>{if(t!==null){callFailureCallback(p,t);return}callSuccessCallback(p,u)}))}))}u.readdirWithFileTypes=readdirWithFileTypes;function makeRplTaskEntry(t,u){return p=>{if(!t.dirent.isSymbolicLink()){p(null,t);return}u.fs.stat(t.path,((m,g)=>{if(m!==null){if(u.throwErrorOnBrokenSymbolicLink){p(m);return}p(null,t);return}t.dirent=v.fs.createDirentFromStats(t.name,g);p(null,t)}))}}function readdir(t,u,p){u.fs.readdir(t,((y,w)=>{if(y!==null){callFailureCallback(p,y);return}const E=w.map((p=>{const g=b.joinPathSegments(t,p,u.pathSegmentSeparator);return t=>{m.stat(g,u.fsStatSettings,((m,y)=>{if(m!==null){t(m);return}const b={name:p,path:g,dirent:v.fs.createDirentFromStats(p,y)};if(u.stats){b.stats=y}t(null,b)}))}}));g(E,((t,u)=>{if(t!==null){callFailureCallback(p,t);return}callSuccessCallback(p,u)}))}))}u.readdir=readdir;function callFailureCallback(t,u){t(u)}function callSuccessCallback(t,u){t(null,u)}},9392:(t,u)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.joinPathSegments=void 0;function joinPathSegments(t,u,p){if(t.endsWith(p)){return t+u}return t+p+u}u.joinPathSegments=joinPathSegments},5554:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.readdir=u.readdirWithFileTypes=u.read=void 0;const m=p(1309);const g=p(1121);const y=p(2046);const v=p(9392);function read(t,u){if(!u.stats&&g.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(t,u)}return readdir(t,u)}u.read=read;function readdirWithFileTypes(t,u){const p=u.fs.readdirSync(t,{withFileTypes:true});return p.map((p=>{const m={dirent:p,name:p.name,path:v.joinPathSegments(t,p.name,u.pathSegmentSeparator)};if(m.dirent.isSymbolicLink()&&u.followSymbolicLinks){try{const t=u.fs.statSync(m.path);m.dirent=y.fs.createDirentFromStats(m.name,t)}catch(t){if(u.throwErrorOnBrokenSymbolicLink){throw t}}}return m}))}u.readdirWithFileTypes=readdirWithFileTypes;function readdir(t,u){const p=u.fs.readdirSync(t);return p.map((p=>{const g=v.joinPathSegments(t,p,u.pathSegmentSeparator);const b=m.statSync(g,u.fsStatSettings);const w={name:p,path:g,dirent:y.fs.createDirentFromStats(p,b)};if(u.stats){w.stats=b}return w}))}u.readdir=readdir},595:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});const m=p(6928);const g=p(1309);const y=p(5254);class Settings{constructor(t={}){this._options=t;this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,false);this.fs=y.createFileSystemAdapter(this._options.fs);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,m.sep);this.stats=this._getValue(this._options.stats,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true);this.fsStatSettings=new g.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,u){return t!==null&&t!==void 0?t:u}}u["default"]=Settings},2535:(t,u)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.createDirentFromStats=void 0;class DirentFromStats{constructor(t,u){this.name=t;this.isBlockDevice=u.isBlockDevice.bind(u);this.isCharacterDevice=u.isCharacterDevice.bind(u);this.isDirectory=u.isDirectory.bind(u);this.isFIFO=u.isFIFO.bind(u);this.isFile=u.isFile.bind(u);this.isSocket=u.isSocket.bind(u);this.isSymbolicLink=u.isSymbolicLink.bind(u)}}function createDirentFromStats(t,u){return new DirentFromStats(t,u)}u.createDirentFromStats=createDirentFromStats},2046:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.fs=void 0;const m=p(2535);u.fs=m},5375:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.createFileSystemAdapter=u.FILE_SYSTEM_ADAPTER=void 0;const m=p(7515);u.FILE_SYSTEM_ADAPTER={lstat:m.lstat,stat:m.stat,lstatSync:m.lstatSync,statSync:m.statSync};function createFileSystemAdapter(t){if(t===undefined){return u.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},u.FILE_SYSTEM_ADAPTER),t)}u.createFileSystemAdapter=createFileSystemAdapter},1309:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.statSync=u.stat=u.Settings=void 0;const m=p(9100);const g=p(4421);const y=p(8448);u.Settings=y.default;function stat(t,u,p){if(typeof u==="function"){m.read(t,getSettings(),u);return}m.read(t,getSettings(u),p)}u.stat=stat;function statSync(t,u){const p=getSettings(u);return g.read(t,p)}u.statSync=statSync;function getSettings(t={}){if(t instanceof y.default){return t}return new y.default(t)}},9100:(t,u)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.read=void 0;function read(t,u,p){u.fs.lstat(t,((m,g)=>{if(m!==null){callFailureCallback(p,m);return}if(!g.isSymbolicLink()||!u.followSymbolicLink){callSuccessCallback(p,g);return}u.fs.stat(t,((t,m)=>{if(t!==null){if(u.throwErrorOnBrokenSymbolicLink){callFailureCallback(p,t);return}callSuccessCallback(p,g);return}if(u.markSymbolicLink){m.isSymbolicLink=()=>true}callSuccessCallback(p,m)}))}))}u.read=read;function callFailureCallback(t,u){t(u)}function callSuccessCallback(t,u){t(null,u)}},4421:(t,u)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.read=void 0;function read(t,u){const p=u.fs.lstatSync(t);if(!p.isSymbolicLink()||!u.followSymbolicLink){return p}try{const p=u.fs.statSync(t);if(u.markSymbolicLink){p.isSymbolicLink=()=>true}return p}catch(t){if(!u.throwErrorOnBrokenSymbolicLink){return p}throw t}}u.read=read},8448:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});const m=p(5375);class Settings{constructor(t={}){this._options=t;this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,true);this.fs=m.createFileSystemAdapter(this._options.fs);this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true)}_getValue(t,u){return t!==null&&t!==void 0?t:u}}u["default"]=Settings},2705:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.Settings=u.walkStream=u.walkSync=u.walk=void 0;const m=p(6200);const g=p(2);const y=p(6345);const v=p(4668);u.Settings=v.default;function walk(t,u,p){if(typeof u==="function"){new m.default(t,getSettings()).read(u);return}new m.default(t,getSettings(u)).read(p)}u.walk=walk;function walkSync(t,u){const p=getSettings(u);const m=new y.default(t,p);return m.read()}u.walkSync=walkSync;function walkStream(t,u){const p=getSettings(u);const m=new g.default(t,p);return m.read()}u.walkStream=walkStream;function getSettings(t={}){if(t instanceof v.default){return t}return new v.default(t)}},6200:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});const m=p(826);class AsyncProvider{constructor(t,u){this._root=t;this._settings=u;this._reader=new m.default(this._root,this._settings);this._storage=[]}read(t){this._reader.onError((u=>{callFailureCallback(t,u)}));this._reader.onEntry((t=>{this._storage.push(t)}));this._reader.onEnd((()=>{callSuccessCallback(t,this._storage)}));this._reader.read()}}u["default"]=AsyncProvider;function callFailureCallback(t,u){t(u)}function callSuccessCallback(t,u){t(null,u)}},2:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});const m=p(2203);const g=p(826);class StreamProvider{constructor(t,u){this._root=t;this._settings=u;this._reader=new g.default(this._root,this._settings);this._stream=new m.Readable({objectMode:true,read:()=>{},destroy:()=>{if(!this._reader.isDestroyed){this._reader.destroy()}}})}read(){this._reader.onError((t=>{this._stream.emit("error",t)}));this._reader.onEntry((t=>{this._stream.push(t)}));this._reader.onEnd((()=>{this._stream.push(null)}));this._reader.read();return this._stream}}u["default"]=StreamProvider},6345:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});const m=p(127);class SyncProvider{constructor(t,u){this._root=t;this._settings=u;this._reader=new m.default(this._root,this._settings)}read(){return this._reader.read()}}u["default"]=SyncProvider},826:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});const m=p(4434);const g=p(1484);const y=p(4506);const v=p(5305);const b=p(2983);class AsyncReader extends b.default{constructor(t,u){super(t,u);this._settings=u;this._scandir=g.scandir;this._emitter=new m.EventEmitter;this._queue=y(this._worker.bind(this),this._settings.concurrency);this._isFatalError=false;this._isDestroyed=false;this._queue.drain=()=>{if(!this._isFatalError){this._emitter.emit("end")}}}read(){this._isFatalError=false;this._isDestroyed=false;setImmediate((()=>{this._pushToQueue(this._root,this._settings.basePath)}));return this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed){throw new Error("The reader is already destroyed")}this._isDestroyed=true;this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,u){const p={directory:t,base:u};this._queue.push(p,(t=>{if(t!==null){this._handleError(t)}}))}_worker(t,u){this._scandir(t.directory,this._settings.fsScandirSettings,((p,m)=>{if(p!==null){u(p,undefined);return}for(const u of m){this._handleEntry(u,t.base)}u(null,undefined)}))}_handleError(t){if(this._isDestroyed||!v.isFatalError(this._settings,t)){return}this._isFatalError=true;this._isDestroyed=true;this._emitter.emit("error",t)}_handleEntry(t,u){if(this._isDestroyed||this._isFatalError){return}const p=t.path;if(u!==undefined){t.path=v.joinPathSegments(u,t.name,this._settings.pathSegmentSeparator)}if(v.isAppliedFilter(this._settings.entryFilter,t)){this._emitEntry(t)}if(t.dirent.isDirectory()&&v.isAppliedFilter(this._settings.deepFilter,t)){this._pushToQueue(p,u===undefined?undefined:t.path)}}_emitEntry(t){this._emitter.emit("entry",t)}}u["default"]=AsyncReader},5305:(t,u)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.joinPathSegments=u.replacePathSegmentSeparator=u.isAppliedFilter=u.isFatalError=void 0;function isFatalError(t,u){if(t.errorFilter===null){return true}return!t.errorFilter(u)}u.isFatalError=isFatalError;function isAppliedFilter(t,u){return t===null||t(u)}u.isAppliedFilter=isAppliedFilter;function replacePathSegmentSeparator(t,u){return t.split(/[/\\]/).join(u)}u.replacePathSegmentSeparator=replacePathSegmentSeparator;function joinPathSegments(t,u,p){if(t===""){return u}if(t.endsWith(p)){return t+u}return t+p+u}u.joinPathSegments=joinPathSegments},2983:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});const m=p(5305);class Reader{constructor(t,u){this._root=t;this._settings=u;this._root=m.replacePathSegmentSeparator(t,u.pathSegmentSeparator)}}u["default"]=Reader},127:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});const m=p(1484);const g=p(5305);const y=p(2983);class SyncReader extends y.default{constructor(){super(...arguments);this._scandir=m.scandirSync;this._storage=[];this._queue=new Set}read(){this._pushToQueue(this._root,this._settings.basePath);this._handleQueue();return this._storage}_pushToQueue(t,u){this._queue.add({directory:t,base:u})}_handleQueue(){for(const t of this._queue.values()){this._handleDirectory(t.directory,t.base)}}_handleDirectory(t,u){try{const p=this._scandir(t,this._settings.fsScandirSettings);for(const t of p){this._handleEntry(t,u)}}catch(t){this._handleError(t)}}_handleError(t){if(!g.isFatalError(this._settings,t)){return}throw t}_handleEntry(t,u){const p=t.path;if(u!==undefined){t.path=g.joinPathSegments(u,t.name,this._settings.pathSegmentSeparator)}if(g.isAppliedFilter(this._settings.entryFilter,t)){this._pushToStorage(t)}if(t.dirent.isDirectory()&&g.isAppliedFilter(this._settings.deepFilter,t)){this._pushToQueue(p,u===undefined?undefined:t.path)}}_pushToStorage(t){this._storage.push(t)}}u["default"]=SyncReader},4668:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});const m=p(6928);const g=p(1484);class Settings{constructor(t={}){this._options=t;this.basePath=this._getValue(this._options.basePath,undefined);this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY);this.deepFilter=this._getValue(this._options.deepFilter,null);this.entryFilter=this._getValue(this._options.entryFilter,null);this.errorFilter=this._getValue(this._options.errorFilter,null);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,m.sep);this.fsScandirSettings=new g.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,u){return t!==null&&t!==void 0?t:u}}u["default"]=Settings},691:(t,u)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.formatNames=u.fastFormats=u.fullFormats=void 0;function fmtDef(t,u){return{validate:t,compare:u}}u.fullFormats={date:fmtDef(date,compareDate),time:fmtDef(getTime(true),compareTime),"date-time":fmtDef(getDateTime(true),compareDateTime),"iso-time":fmtDef(getTime(),compareIsoTime),"iso-date-time":fmtDef(getDateTime(),compareIsoDateTime),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:uri,"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:regex,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:byte,int32:{type:"number",validate:validateInt32},int64:{type:"number",validate:validateInt64},float:{type:"number",validate:validateNumber},double:{type:"number",validate:validateNumber},password:true,binary:true};u.fastFormats={...u.fullFormats,date:fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,compareDate),time:fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,compareTime),"date-time":fmtDef(/^\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,compareDateTime),"iso-time":fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,compareIsoTime),"iso-date-time":fmtDef(/^\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,compareIsoDateTime),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};u.formatNames=Object.keys(u.fullFormats);function isLeapYear(t){return t%4===0&&(t%100!==0||t%400===0)}const p=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;const m=[0,31,28,31,30,31,30,31,31,30,31,30,31];function date(t){const u=p.exec(t);if(!u)return false;const g=+u[1];const y=+u[2];const v=+u[3];return y>=1&&y<=12&&v>=1&&v<=(y===2&&isLeapYear(g)?29:m[y])}function compareDate(t,u){if(!(t&&u))return undefined;if(t>u)return 1;if(t<u)return-1;return 0}const g=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function getTime(t){return function time(u){const p=g.exec(u);if(!p)return false;const m=+p[1];const y=+p[2];const v=+p[3];const b=p[4];const w=p[5]==="-"?-1:1;const E=+(p[6]||0);const $=+(p[7]||0);if(E>23||$>59||t&&!b)return false;if(m<=23&&y<=59&&v<60)return true;const O=y-$*w;const R=m-E*w-(O<0?1:0);return(R===23||R===-1)&&(O===59||O===-1)&&v<61}}function compareTime(t,u){if(!(t&&u))return undefined;const p=new Date("2020-01-01T"+t).valueOf();const m=new Date("2020-01-01T"+u).valueOf();if(!(p&&m))return undefined;return p-m}function compareIsoTime(t,u){if(!(t&&u))return undefined;const p=g.exec(t);const m=g.exec(u);if(!(p&&m))return undefined;t=p[1]+p[2]+p[3];u=m[1]+m[2]+m[3];if(t>u)return 1;if(t<u)return-1;return 0}const y=/t|\s/i;function getDateTime(t){const u=getTime(t);return function date_time(t){const p=t.split(y);return p.length===2&&date(p[0])&&u(p[1])}}function compareDateTime(t,u){if(!(t&&u))return undefined;const p=new Date(t).valueOf();const m=new Date(u).valueOf();if(!(p&&m))return undefined;return p-m}function compareIsoDateTime(t,u){if(!(t&&u))return undefined;const[p,m]=t.split(y);const[g,v]=u.split(y);const b=compareDate(p,g);if(b===undefined)return undefined;return b||compareTime(m,v)}const v=/\/|:/;const b=/^(?:[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 uri(t){return v.test(t)&&b.test(t)}const w=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function byte(t){w.lastIndex=0;return w.test(t)}const E=-(2**31);const $=2**31-1;function validateInt32(t){return Number.isInteger(t)&&t<=$&&t>=E}function validateInt64(t){return Number.isInteger(t)}function validateNumber(){return true}const O=/[^\\]\\Z/;function regex(t){if(O.test(t))return false;try{new RegExp(t);return true}catch(t){return false}}},8631:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});const m=p(691);const g=p(2604);const y=p(4809);const v=new y.Name("fullFormats");const b=new y.Name("fastFormats");const formatsPlugin=(t,u={keywords:true})=>{if(Array.isArray(u)){addFormats(t,u,m.fullFormats,v);return t}const[p,y]=u.mode==="fast"?[m.fastFormats,b]:[m.fullFormats,v];const w=u.formats||m.formatNames;addFormats(t,w,p,y);if(u.keywords)(0,g.default)(t);return t};formatsPlugin.get=(t,u="full")=>{const p=u==="fast"?m.fastFormats:m.fullFormats;const g=p[t];if(!g)throw new Error(`Unknown format "${t}"`);return g};function addFormats(t,u,p,m){var g;var v;(g=(v=t.opts.code).formats)!==null&&g!==void 0?g:v.formats=(0,y._)`require("ajv-formats/dist/formats").${m}`;for(const m of u)t.addFormat(m,p[m])}t.exports=u=formatsPlugin;Object.defineProperty(u,"__esModule",{value:true});u["default"]=formatsPlugin},2604:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.formatLimitDefinition=void 0;const m=p(7382);const g=p(4809);const y=g.operators;const v={formatMaximum:{okStr:"<=",ok:y.LTE,fail:y.GT},formatMinimum:{okStr:">=",ok:y.GTE,fail:y.LT},formatExclusiveMaximum:{okStr:"<",ok:y.LT,fail:y.GTE},formatExclusiveMinimum:{okStr:">",ok:y.GT,fail:y.LTE}};const b={message:({keyword:t,schemaCode:u})=>(0,g.str)`should be ${v[t].okStr} ${u}`,params:({keyword:t,schemaCode:u})=>(0,g._)`{comparison: ${v[t].okStr}, limit: ${u}}`};u.formatLimitDefinition={keyword:Object.keys(v),type:"string",schemaType:"string",$data:true,error:b,code(t){const{gen:u,data:p,schemaCode:y,keyword:b,it:w}=t;const{opts:E,self:$}=w;if(!E.validateFormats)return;const O=new m.KeywordCxt(w,$.RULES.all.format.definition,"format");if(O.$data)validate$DataFormat();else validateFormat();function validate$DataFormat(){const p=u.scopeValue("formats",{ref:$.formats,code:E.code.formats});const m=u.const("fmt",(0,g._)`${p}[${O.schemaCode}]`);t.fail$data((0,g.or)((0,g._)`typeof ${m} != "object"`,(0,g._)`${m} instanceof RegExp`,(0,g._)`typeof ${m}.compare != "function"`,compareCode(m)))}function validateFormat(){const p=O.schema;const m=$.formats[p];if(!m||m===true)return;if(typeof m!="object"||m instanceof RegExp||typeof m.compare!="function"){throw new Error(`"${b}": format "${p}" does not define "compare" function`)}const y=u.scopeValue("formats",{key:p,ref:m,code:E.code.formats?(0,g._)`${E.code.formats}${(0,g.getProperty)(p)}`:undefined});t.fail$data(compareCode(y))}function compareCode(t){return(0,g._)`${t}.compare(${p}, ${y}) ${v[b].fail} 0`}},dependencies:["format"]};const formatLimitPlugin=t=>{t.addKeyword(u.formatLimitDefinition);return t};u["default"]=formatLimitPlugin},8861:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.MissingRefError=u.ValidationError=u.CodeGen=u.Name=u.nil=u.stringify=u.str=u._=u.KeywordCxt=u.Ajv2020=void 0;const m=p(7326);const g=p(6117);const y=p(4665);const v=p(440);const b="https://json-schema.org/draft/2020-12/schema";class Ajv2020 extends m.default{constructor(t={}){super({...t,dynamicRef:true,next:true,unevaluated:true})}_addVocabularies(){super._addVocabularies();g.default.forEach((t=>this.addVocabulary(t)));if(this.opts.discriminator)this.addKeyword(y.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:t,meta:u}=this.opts;if(!u)return;v.default.call(this,t);this.refs["http://json-schema.org/schema"]=b}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(b)?b:undefined)}}u.Ajv2020=Ajv2020;t.exports=u=Ajv2020;t.exports.Ajv2020=Ajv2020;Object.defineProperty(u,"__esModule",{value:true});u["default"]=Ajv2020;var w=p(9278);Object.defineProperty(u,"KeywordCxt",{enumerable:true,get:function(){return w.KeywordCxt}});var E=p(4809);Object.defineProperty(u,"_",{enumerable:true,get:function(){return E._}});Object.defineProperty(u,"str",{enumerable:true,get:function(){return E.str}});Object.defineProperty(u,"stringify",{enumerable:true,get:function(){return E.stringify}});Object.defineProperty(u,"nil",{enumerable:true,get:function(){return E.nil}});Object.defineProperty(u,"Name",{enumerable:true,get:function(){return E.Name}});Object.defineProperty(u,"CodeGen",{enumerable:true,get:function(){return E.CodeGen}});var $=p(4242);Object.defineProperty(u,"ValidationError",{enumerable:true,get:function(){return $.default}});var O=p(8547);Object.defineProperty(u,"MissingRefError",{enumerable:true,get:function(){return O.default}})},7382:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.MissingRefError=u.ValidationError=u.CodeGen=u.Name=u.nil=u.stringify=u.str=u._=u.KeywordCxt=u.Ajv=void 0;const m=p(7326);const g=p(540);const y=p(4665);const v=p(7578);const b=["/properties"];const w="http://json-schema.org/draft-07/schema";class Ajv extends m.default{_addVocabularies(){super._addVocabularies();g.default.forEach((t=>this.addVocabulary(t)));if(this.opts.discriminator)this.addKeyword(y.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();if(!this.opts.meta)return;const t=this.opts.$data?this.$dataMetaSchema(v,b):v;this.addMetaSchema(t,w,false);this.refs["http://json-schema.org/schema"]=w}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(w)?w:undefined)}}u.Ajv=Ajv;t.exports=u=Ajv;t.exports.Ajv=Ajv;Object.defineProperty(u,"__esModule",{value:true});u["default"]=Ajv;var E=p(9278);Object.defineProperty(u,"KeywordCxt",{enumerable:true,get:function(){return E.KeywordCxt}});var $=p(4809);Object.defineProperty(u,"_",{enumerable:true,get:function(){return $._}});Object.defineProperty(u,"str",{enumerable:true,get:function(){return $.str}});Object.defineProperty(u,"stringify",{enumerable:true,get:function(){return $.stringify}});Object.defineProperty(u,"nil",{enumerable:true,get:function(){return $.nil}});Object.defineProperty(u,"Name",{enumerable:true,get:function(){return $.Name}});Object.defineProperty(u,"CodeGen",{enumerable:true,get:function(){return $.CodeGen}});var O=p(4242);Object.defineProperty(u,"ValidationError",{enumerable:true,get:function(){return O.default}});var R=p(8547);Object.defineProperty(u,"MissingRefError",{enumerable:true,get:function(){return R.default}})},9356:(t,u)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.regexpCode=u.getEsmExportName=u.getProperty=u.safeStringify=u.stringify=u.strConcat=u.addCodeArg=u.str=u._=u.nil=u._Code=u.Name=u.IDENTIFIER=u._CodeOrName=void 0;class _CodeOrName{}u._CodeOrName=_CodeOrName;u.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class Name extends _CodeOrName{constructor(t){super();if(!u.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return false}get names(){return{[this.str]:1}}}u.Name=Name;class _Code extends _CodeOrName{constructor(t){super();this._items=typeof t==="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return false;const t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce(((t,u)=>`${t}${u}`),"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce(((t,u)=>{if(u instanceof Name)t[u.str]=(t[u.str]||0)+1;return t}),{})}}u._Code=_Code;u.nil=new _Code("");function _(t,...u){const p=[t[0]];let m=0;while(m<u.length){addCodeArg(p,u[m]);p.push(t[++m])}return new _Code(p)}u._=_;const p=new _Code("+");function str(t,...u){const m=[safeStringify(t[0])];let g=0;while(g<u.length){m.push(p);addCodeArg(m,u[g]);m.push(p,safeStringify(t[++g]))}optimize(m);return new _Code(m)}u.str=str;function addCodeArg(t,u){if(u instanceof _Code)t.push(...u._items);else if(u instanceof Name)t.push(u);else t.push(interpolate(u))}u.addCodeArg=addCodeArg;function optimize(t){let u=1;while(u<t.length-1){if(t[u]===p){const p=mergeExprItems(t[u-1],t[u+1]);if(p!==undefined){t.splice(u-1,3,p);continue}t[u++]="+"}u++}}function mergeExprItems(t,u){if(u==='""')return t;if(t==='""')return u;if(typeof t=="string"){if(u instanceof Name||t[t.length-1]!=='"')return;if(typeof u!="string")return`${t.slice(0,-1)}${u}"`;if(u[0]==='"')return t.slice(0,-1)+u.slice(1);return}if(typeof u=="string"&&u[0]==='"'&&!(t instanceof Name))return`"${t}${u.slice(1)}`;return}function strConcat(t,u){return u.emptyStr()?t:t.emptyStr()?u:str`${t}${u}`}u.strConcat=strConcat;function interpolate(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:safeStringify(Array.isArray(t)?t.join(","):t)}function stringify(t){return new _Code(safeStringify(t))}u.stringify=stringify;function safeStringify(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}u.safeStringify=safeStringify;function getProperty(t){return typeof t=="string"&&u.IDENTIFIER.test(t)?new _Code(`.${t}`):_`[${t}]`}u.getProperty=getProperty;function getEsmExportName(t){if(typeof t=="string"&&u.IDENTIFIER.test(t)){return new _Code(`${t}`)}throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}u.getEsmExportName=getEsmExportName;function regexpCode(t){return new _Code(t.toString())}u.regexpCode=regexpCode},4809:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.or=u.and=u.not=u.CodeGen=u.operators=u.varKinds=u.ValueScopeName=u.ValueScope=u.Scope=u.Name=u.regexpCode=u.stringify=u.getProperty=u.nil=u.strConcat=u.str=u._=void 0;const m=p(9356);const g=p(6785);var y=p(9356);Object.defineProperty(u,"_",{enumerable:true,get:function(){return y._}});Object.defineProperty(u,"str",{enumerable:true,get:function(){return y.str}});Object.defineProperty(u,"strConcat",{enumerable:true,get:function(){return y.strConcat}});Object.defineProperty(u,"nil",{enumerable:true,get:function(){return y.nil}});Object.defineProperty(u,"getProperty",{enumerable:true,get:function(){return y.getProperty}});Object.defineProperty(u,"stringify",{enumerable:true,get:function(){return y.stringify}});Object.defineProperty(u,"regexpCode",{enumerable:true,get:function(){return y.regexpCode}});Object.defineProperty(u,"Name",{enumerable:true,get:function(){return y.Name}});var v=p(6785);Object.defineProperty(u,"Scope",{enumerable:true,get:function(){return v.Scope}});Object.defineProperty(u,"ValueScope",{enumerable:true,get:function(){return v.ValueScope}});Object.defineProperty(u,"ValueScopeName",{enumerable:true,get:function(){return v.ValueScopeName}});Object.defineProperty(u,"varKinds",{enumerable:true,get:function(){return v.varKinds}});u.operators={GT:new m._Code(">"),GTE:new m._Code(">="),LT:new m._Code("<"),LTE:new m._Code("<="),EQ:new m._Code("==="),NEQ:new m._Code("!=="),NOT:new m._Code("!"),OR:new m._Code("||"),AND:new m._Code("&&"),ADD:new m._Code("+")};class Node{optimizeNodes(){return this}optimizeNames(t,u){return this}}class Def extends Node{constructor(t,u,p){super();this.varKind=t;this.name=u;this.rhs=p}render({es5:t,_n:u}){const p=t?g.varKinds.var:this.varKind;const m=this.rhs===undefined?"":` = ${this.rhs}`;return`${p} ${this.name}${m};`+u}optimizeNames(t,u){if(!t[this.name.str])return;if(this.rhs)this.rhs=optimizeExpr(this.rhs,t,u);return this}get names(){return this.rhs instanceof m._CodeOrName?this.rhs.names:{}}}class Assign extends Node{constructor(t,u,p){super();this.lhs=t;this.rhs=u;this.sideEffects=p}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,u){if(this.lhs instanceof m.Name&&!t[this.lhs.str]&&!this.sideEffects)return;this.rhs=optimizeExpr(this.rhs,t,u);return this}get names(){const t=this.lhs instanceof m.Name?{}:{...this.lhs.names};return addExprNames(t,this.rhs)}}class AssignOp extends Assign{constructor(t,u,p,m){super(t,p,m);this.op=u}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}}class Label extends Node{constructor(t){super();this.label=t;this.names={}}render({_n:t}){return`${this.label}:`+t}}class Break extends Node{constructor(t){super();this.label=t;this.names={}}render({_n:t}){const u=this.label?` ${this.label}`:"";return`break${u};`+t}}class Throw extends Node{constructor(t){super();this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}}class AnyCode extends Node{constructor(t){super();this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:undefined}optimizeNames(t,u){this.code=optimizeExpr(this.code,t,u);return this}get names(){return this.code instanceof m._CodeOrName?this.code.names:{}}}class ParentNode extends Node{constructor(t=[]){super();this.nodes=t}render(t){return this.nodes.reduce(((u,p)=>u+p.render(t)),"")}optimizeNodes(){const{nodes:t}=this;let u=t.length;while(u--){const p=t[u].optimizeNodes();if(Array.isArray(p))t.splice(u,1,...p);else if(p)t[u]=p;else t.splice(u,1)}return t.length>0?this:undefined}optimizeNames(t,u){const{nodes:p}=this;let m=p.length;while(m--){const g=p[m];if(g.optimizeNames(t,u))continue;subtractNames(t,g.names);p.splice(m,1)}return p.length>0?this:undefined}get names(){return this.nodes.reduce(((t,u)=>addNames(t,u.names)),{})}}class BlockNode extends ParentNode{render(t){return"{"+t._n+super.render(t)+"}"+t._n}}class Root extends ParentNode{}class Else extends BlockNode{}Else.kind="else";class If extends BlockNode{constructor(t,u){super(u);this.condition=t}render(t){let u=`if(${this.condition})`+super.render(t);if(this.else)u+="else "+this.else.render(t);return u}optimizeNodes(){super.optimizeNodes();const t=this.condition;if(t===true)return this.nodes;let u=this.else;if(u){const t=u.optimizeNodes();u=this.else=Array.isArray(t)?new Else(t):t}if(u){if(t===false)return u instanceof If?u:u.nodes;if(this.nodes.length)return this;return new If(not(t),u instanceof If?[u]:u.nodes)}if(t===false||!this.nodes.length)return undefined;return this}optimizeNames(t,u){var p;this.else=(p=this.else)===null||p===void 0?void 0:p.optimizeNames(t,u);if(!(super.optimizeNames(t,u)||this.else))return;this.condition=optimizeExpr(this.condition,t,u);return this}get names(){const t=super.names;addExprNames(t,this.condition);if(this.else)addNames(t,this.else.names);return t}}If.kind="if";class For extends BlockNode{}For.kind="for";class ForLoop extends For{constructor(t){super();this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,u){if(!super.optimizeNames(t,u))return;this.iteration=optimizeExpr(this.iteration,t,u);return this}get names(){return addNames(super.names,this.iteration.names)}}class ForRange extends For{constructor(t,u,p,m){super();this.varKind=t;this.name=u;this.from=p;this.to=m}render(t){const u=t.es5?g.varKinds.var:this.varKind;const{name:p,from:m,to:y}=this;return`for(${u} ${p}=${m}; ${p}<${y}; ${p}++)`+super.render(t)}get names(){const t=addExprNames(super.names,this.from);return addExprNames(t,this.to)}}class ForIter extends For{constructor(t,u,p,m){super();this.loop=t;this.varKind=u;this.name=p;this.iterable=m}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,u){if(!super.optimizeNames(t,u))return;this.iterable=optimizeExpr(this.iterable,t,u);return this}get names(){return addNames(super.names,this.iterable.names)}}class Func extends BlockNode{constructor(t,u,p){super();this.name=t;this.args=u;this.async=p}render(t){const u=this.async?"async ":"";return`${u}function ${this.name}(${this.args})`+super.render(t)}}Func.kind="func";class Return extends ParentNode{render(t){return"return "+super.render(t)}}Return.kind="return";class Try extends BlockNode{render(t){let u="try"+super.render(t);if(this.catch)u+=this.catch.render(t);if(this.finally)u+=this.finally.render(t);return u}optimizeNodes(){var t,u;super.optimizeNodes();(t=this.catch)===null||t===void 0?void 0:t.optimizeNodes();(u=this.finally)===null||u===void 0?void 0:u.optimizeNodes();return this}optimizeNames(t,u){var p,m;super.optimizeNames(t,u);(p=this.catch)===null||p===void 0?void 0:p.optimizeNames(t,u);(m=this.finally)===null||m===void 0?void 0:m.optimizeNames(t,u);return this}get names(){const t=super.names;if(this.catch)addNames(t,this.catch.names);if(this.finally)addNames(t,this.finally.names);return t}}class Catch extends BlockNode{constructor(t){super();this.error=t}render(t){return`catch(${this.error})`+super.render(t)}}Catch.kind="catch";class Finally extends BlockNode{render(t){return"finally"+super.render(t)}}Finally.kind="finally";class CodeGen{constructor(t,u={}){this._values={};this._blockStarts=[];this._constants={};this.opts={...u,_n:u.lines?"\n":""};this._extScope=t;this._scope=new g.Scope({parent:t});this._nodes=[new Root]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,u){const p=this._extScope.value(t,u);const m=this._values[p.prefix]||(this._values[p.prefix]=new Set);m.add(p);return p}getScopeValue(t,u){return this._extScope.getValue(t,u)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,u,p,m){const g=this._scope.toName(u);if(p!==undefined&&m)this._constants[g.str]=p;this._leafNode(new Def(t,g,p));return g}const(t,u,p){return this._def(g.varKinds.const,t,u,p)}let(t,u,p){return this._def(g.varKinds.let,t,u,p)}var(t,u,p){return this._def(g.varKinds.var,t,u,p)}assign(t,u,p){return this._leafNode(new Assign(t,u,p))}add(t,p){return this._leafNode(new AssignOp(t,u.operators.ADD,p))}code(t){if(typeof t=="function")t();else if(t!==m.nil)this._leafNode(new AnyCode(t));return this}object(...t){const u=["{"];for(const[p,g]of t){if(u.length>1)u.push(",");u.push(p);if(p!==g||this.opts.es5){u.push(":");(0,m.addCodeArg)(u,g)}}u.push("}");return new m._Code(u)}if(t,u,p){this._blockNode(new If(t));if(u&&p){this.code(u).else().code(p).endIf()}else if(u){this.code(u).endIf()}else if(p){throw new Error('CodeGen: "else" body without "then" body')}return this}elseIf(t){return this._elseNode(new If(t))}else(){return this._elseNode(new Else)}endIf(){return this._endBlockNode(If,Else)}_for(t,u){this._blockNode(t);if(u)this.code(u).endFor();return this}for(t,u){return this._for(new ForLoop(t),u)}forRange(t,u,p,m,y=(this.opts.es5?g.varKinds.var:g.varKinds.let)){const v=this._scope.toName(t);return this._for(new ForRange(y,v,u,p),(()=>m(v)))}forOf(t,u,p,y=g.varKinds.const){const v=this._scope.toName(t);if(this.opts.es5){const t=u instanceof m.Name?u:this.var("_arr",u);return this.forRange("_i",0,(0,m._)`${t}.length`,(u=>{this.var(v,(0,m._)`${t}[${u}]`);p(v)}))}return this._for(new ForIter("of",y,v,u),(()=>p(v)))}forIn(t,u,p,y=(this.opts.es5?g.varKinds.var:g.varKinds.const)){if(this.opts.ownProperties){return this.forOf(t,(0,m._)`Object.keys(${u})`,p)}const v=this._scope.toName(t);return this._for(new ForIter("in",y,v,u),(()=>p(v)))}endFor(){return this._endBlockNode(For)}label(t){return this._leafNode(new Label(t))}break(t){return this._leafNode(new Break(t))}return(t){const u=new Return;this._blockNode(u);this.code(t);if(u.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Return)}try(t,u,p){if(!u&&!p)throw new Error('CodeGen: "try" without "catch" and "finally"');const m=new Try;this._blockNode(m);this.code(t);if(u){const t=this.name("e");this._currNode=m.catch=new Catch(t);u(t)}if(p){this._currNode=m.finally=new Finally;this.code(p)}return this._endBlockNode(Catch,Finally)}throw(t){return this._leafNode(new Throw(t))}block(t,u){this._blockStarts.push(this._nodes.length);if(t)this.code(t).endBlock(u);return this}endBlock(t){const u=this._blockStarts.pop();if(u===undefined)throw new Error("CodeGen: not in self-balancing block");const p=this._nodes.length-u;if(p<0||t!==undefined&&p!==t){throw new Error(`CodeGen: wrong number of nodes: ${p} vs ${t} expected`)}this._nodes.length=u;return this}func(t,u=m.nil,p,g){this._blockNode(new Func(t,u,p));if(g)this.code(g).endFunc();return this}endFunc(){return this._endBlockNode(Func)}optimize(t=1){while(t-- >0){this._root.optimizeNodes();this._root.optimizeNames(this._root.names,this._constants)}}_leafNode(t){this._currNode.nodes.push(t);return this}_blockNode(t){this._currNode.nodes.push(t);this._nodes.push(t)}_endBlockNode(t,u){const p=this._currNode;if(p instanceof t||u&&p instanceof u){this._nodes.pop();return this}throw new Error(`CodeGen: not in block "${u?`${t.kind}/${u.kind}`:t.kind}"`)}_elseNode(t){const u=this._currNode;if(!(u instanceof If)){throw new Error('CodeGen: "else" without "if"')}this._currNode=u.else=t;return this}get _root(){return this._nodes[0]}get _currNode(){const t=this._nodes;return t[t.length-1]}set _currNode(t){const u=this._nodes;u[u.length-1]=t}}u.CodeGen=CodeGen;function addNames(t,u){for(const p in u)t[p]=(t[p]||0)+(u[p]||0);return t}function addExprNames(t,u){return u instanceof m._CodeOrName?addNames(t,u.names):t}function optimizeExpr(t,u,p){if(t instanceof m.Name)return replaceName(t);if(!canOptimize(t))return t;return new m._Code(t._items.reduce(((t,u)=>{if(u instanceof m.Name)u=replaceName(u);if(u instanceof m._Code)t.push(...u._items);else t.push(u);return t}),[]));function replaceName(t){const m=p[t.str];if(m===undefined||u[t.str]!==1)return t;delete u[t.str];return m}function canOptimize(t){return t instanceof m._Code&&t._items.some((t=>t instanceof m.Name&&u[t.str]===1&&p[t.str]!==undefined))}}function subtractNames(t,u){for(const p in u)t[p]=(t[p]||0)-(u[p]||0)}function not(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,m._)`!${par(t)}`}u.not=not;const b=mappend(u.operators.AND);function and(...t){return t.reduce(b)}u.and=and;const w=mappend(u.operators.OR);function or(...t){return t.reduce(w)}u.or=or;function mappend(t){return(u,p)=>u===m.nil?p:p===m.nil?u:(0,m._)`${par(u)} ${t} ${par(p)}`}function par(t){return t instanceof m.Name?t:(0,m._)`(${t})`}},6785:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.ValueScope=u.ValueScopeName=u.Scope=u.varKinds=u.UsedValueState=void 0;const m=p(9356);class ValueError extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`);this.value=t.value}}var g;(function(t){t[t["Started"]=0]="Started";t[t["Completed"]=1]="Completed"})(g||(u.UsedValueState=g={}));u.varKinds={const:new m.Name("const"),let:new m.Name("let"),var:new m.Name("var")};class Scope{constructor({prefixes:t,parent:u}={}){this._names={};this._prefixes=t;this._parent=u}toName(t){return t instanceof m.Name?t:this.name(t)}name(t){return new m.Name(this._newName(t))}_newName(t){const u=this._names[t]||this._nameGroup(t);return`${t}${u.index++}`}_nameGroup(t){var u,p;if(((p=(u=this._parent)===null||u===void 0?void 0:u._prefixes)===null||p===void 0?void 0:p.has(t))||this._prefixes&&!this._prefixes.has(t)){throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`)}return this._names[t]={prefix:t,index:0}}}u.Scope=Scope;class ValueScopeName extends m.Name{constructor(t,u){super(u);this.prefix=t}setValue(t,{property:u,itemIndex:p}){this.value=t;this.scopePath=(0,m._)`.${new m.Name(u)}[${p}]`}}u.ValueScopeName=ValueScopeName;const y=(0,m._)`\n`;class ValueScope extends Scope{constructor(t){super(t);this._values={};this._scope=t.scope;this.opts={...t,_n:t.lines?y:m.nil}}get(){return this._scope}name(t){return new ValueScopeName(t,this._newName(t))}value(t,u){var p;if(u.ref===undefined)throw new Error("CodeGen: ref must be passed in value");const m=this.toName(t);const{prefix:g}=m;const y=(p=u.key)!==null&&p!==void 0?p:u.ref;let v=this._values[g];if(v){const t=v.get(y);if(t)return t}else{v=this._values[g]=new Map}v.set(y,m);const b=this._scope[g]||(this._scope[g]=[]);const w=b.length;b[w]=u.ref;m.setValue(u,{property:g,itemIndex:w});return m}getValue(t,u){const p=this._values[t];if(!p)return;return p.get(u)}scopeRefs(t,u=this._values){return this._reduceValues(u,(u=>{if(u.scopePath===undefined)throw new Error(`CodeGen: name "${u}" has no value`);return(0,m._)`${t}${u.scopePath}`}))}scopeCode(t=this._values,u,p){return this._reduceValues(t,(t=>{if(t.value===undefined)throw new Error(`CodeGen: name "${t}" has no value`);return t.value.code}),u,p)}_reduceValues(t,p,y={},v){let b=m.nil;for(const w in t){const E=t[w];if(!E)continue;const $=y[w]=y[w]||new Map;E.forEach((t=>{if($.has(t))return;$.set(t,g.Started);let y=p(t);if(y){const p=this.opts.es5?u.varKinds.var:u.varKinds.const;b=(0,m._)`${b}${p} ${t} = ${y};${this.opts._n}`}else if(y=v===null||v===void 0?void 0:v(t)){b=(0,m._)`${b}${y}${this.opts._n}`}else{throw new ValueError(t)}$.set(t,g.Completed)}))}return b}}u.ValueScope=ValueScope},5456:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.extendErrors=u.resetErrorsCount=u.reportExtraError=u.reportError=u.keyword$DataError=u.keywordError=void 0;const m=p(4809);const g=p(4359);const y=p(1267);u.keywordError={message:({keyword:t})=>(0,m.str)`must pass "${t}" keyword validation`};u.keyword$DataError={message:({keyword:t,schemaType:u})=>u?(0,m.str)`"${t}" keyword must be ${u} ($data)`:(0,m.str)`"${t}" keyword is invalid ($data)`};function reportError(t,p=u.keywordError,g,y){const{it:v}=t;const{gen:b,compositeRule:w,allErrors:E}=v;const $=errorObjectCode(t,p,g);if(y!==null&&y!==void 0?y:w||E){addError(b,$)}else{returnErrors(v,(0,m._)`[${$}]`)}}u.reportError=reportError;function reportExtraError(t,p=u.keywordError,m){const{it:g}=t;const{gen:v,compositeRule:b,allErrors:w}=g;const E=errorObjectCode(t,p,m);addError(v,E);if(!(b||w)){returnErrors(g,y.default.vErrors)}}u.reportExtraError=reportExtraError;function resetErrorsCount(t,u){t.assign(y.default.errors,u);t.if((0,m._)`${y.default.vErrors} !== null`,(()=>t.if(u,(()=>t.assign((0,m._)`${y.default.vErrors}.length`,u)),(()=>t.assign(y.default.vErrors,null)))))}u.resetErrorsCount=resetErrorsCount;function extendErrors({gen:t,keyword:u,schemaValue:p,data:g,errsCount:v,it:b}){if(v===undefined)throw new Error("ajv implementation error");const w=t.name("err");t.forRange("i",v,y.default.errors,(v=>{t.const(w,(0,m._)`${y.default.vErrors}[${v}]`);t.if((0,m._)`${w}.instancePath === undefined`,(()=>t.assign((0,m._)`${w}.instancePath`,(0,m.strConcat)(y.default.instancePath,b.errorPath))));t.assign((0,m._)`${w}.schemaPath`,(0,m.str)`${b.errSchemaPath}/${u}`);if(b.opts.verbose){t.assign((0,m._)`${w}.schema`,p);t.assign((0,m._)`${w}.data`,g)}}))}u.extendErrors=extendErrors;function addError(t,u){const p=t.const("err",u);t.if((0,m._)`${y.default.vErrors} === null`,(()=>t.assign(y.default.vErrors,(0,m._)`[${p}]`)),(0,m._)`${y.default.vErrors}.push(${p})`);t.code((0,m._)`${y.default.errors}++`)}function returnErrors(t,u){const{gen:p,validateName:g,schemaEnv:y}=t;if(y.$async){p.throw((0,m._)`new ${t.ValidationError}(${u})`)}else{p.assign((0,m._)`${g}.errors`,u);p.return(false)}}const v={keyword:new m.Name("keyword"),schemaPath:new m.Name("schemaPath"),params:new m.Name("params"),propertyName:new m.Name("propertyName"),message:new m.Name("message"),schema:new m.Name("schema"),parentSchema:new m.Name("parentSchema")};function errorObjectCode(t,u,p){const{createErrors:g}=t.it;if(g===false)return(0,m._)`{}`;return errorObject(t,u,p)}function errorObject(t,u,p={}){const{gen:m,it:g}=t;const y=[errorInstancePath(g,p),errorSchemaPath(t,p)];extraErrorProps(t,u,y);return m.object(...y)}function errorInstancePath({errorPath:t},{instancePath:u}){const p=u?(0,m.str)`${t}${(0,g.getErrorPath)(u,g.Type.Str)}`:t;return[y.default.instancePath,(0,m.strConcat)(y.default.instancePath,p)]}function errorSchemaPath({keyword:t,it:{errSchemaPath:u}},{schemaPath:p,parentSchema:y}){let b=y?u:(0,m.str)`${u}/${t}`;if(p){b=(0,m.str)`${b}${(0,g.getErrorPath)(p,g.Type.Str)}`}return[v.schemaPath,b]}function extraErrorProps(t,{params:u,message:p},g){const{keyword:b,data:w,schemaValue:E,it:$}=t;const{opts:O,propertyName:R,topSchemaRef:P,schemaPath:A}=$;g.push([v.keyword,b],[v.params,typeof u=="function"?u(t):u||(0,m._)`{}`]);if(O.messages){g.push([v.message,typeof p=="function"?p(t):p])}if(O.verbose){g.push([v.schema,E],[v.parentSchema,(0,m._)`${P}${A}`],[y.default.data,w])}if(R)g.push([v.propertyName,R])}},2407:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.resolveSchema=u.getCompilingSchema=u.resolveRef=u.compileSchema=u.SchemaEnv=void 0;const m=p(4809);const g=p(4242);const y=p(1267);const v=p(5351);const b=p(4359);const w=p(9278);class SchemaEnv{constructor(t){var u;this.refs={};this.dynamicAnchors={};let p;if(typeof t.schema=="object")p=t.schema;this.schema=t.schema;this.schemaId=t.schemaId;this.root=t.root||this;this.baseId=(u=t.baseId)!==null&&u!==void 0?u:(0,v.normalizeId)(p===null||p===void 0?void 0:p[t.schemaId||"$id"]);this.schemaPath=t.schemaPath;this.localRefs=t.localRefs;this.meta=t.meta;this.$async=p===null||p===void 0?void 0:p.$async;this.refs={}}}u.SchemaEnv=SchemaEnv;function compileSchema(t){const u=getCompilingSchema.call(this,t);if(u)return u;const p=(0,v.getFullPath)(this.opts.uriResolver,t.root.baseId);const{es5:b,lines:E}=this.opts.code;const{ownProperties:$}=this.opts;const O=new m.CodeGen(this.scope,{es5:b,lines:E,ownProperties:$});let R;if(t.$async){R=O.scopeValue("Error",{ref:g.default,code:(0,m._)`require("ajv/dist/runtime/validation_error").default`})}const P=O.scopeName("validate");t.validateName=P;const A={gen:O,allErrors:this.opts.allErrors,data:y.default.data,parentData:y.default.parentData,parentDataProperty:y.default.parentDataProperty,dataNames:[y.default.data],dataPathArr:[m.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:O.scopeValue("schema",this.opts.code.source===true?{ref:t.schema,code:(0,m.stringify)(t.schema)}:{ref:t.schema}),validateName:P,ValidationError:R,schema:t.schema,schemaEnv:t,rootId:p,baseId:t.baseId||p,schemaPath:m.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,m._)`""`,opts:this.opts,self:this};let x;try{this._compilations.add(t);(0,w.validateFunctionCode)(A);O.optimize(this.opts.code.optimize);const u=O.toString();x=`${O.scopeRefs(y.default.scope)}return ${u}`;if(this.opts.code.process)x=this.opts.code.process(x,t);const p=new Function(`${y.default.self}`,`${y.default.scope}`,x);const g=p(this,this.scope.get());this.scope.value(P,{ref:g});g.errors=null;g.schema=t.schema;g.schemaEnv=t;if(t.$async)g.$async=true;if(this.opts.code.source===true){g.source={validateName:P,validateCode:u,scopeValues:O._values}}if(this.opts.unevaluated){const{props:t,items:u}=A;g.evaluated={props:t instanceof m.Name?undefined:t,items:u instanceof m.Name?undefined:u,dynamicProps:t instanceof m.Name,dynamicItems:u instanceof m.Name};if(g.source)g.source.evaluated=(0,m.stringify)(g.evaluated)}t.validate=g;return t}catch(u){delete t.validate;delete t.validateName;if(x)this.logger.error("Error compiling schema, function code:",x);throw u}finally{this._compilations.delete(t)}}u.compileSchema=compileSchema;function resolveRef(t,u,p){var m;p=(0,v.resolveUrl)(this.opts.uriResolver,u,p);const g=t.refs[p];if(g)return g;let y=resolve.call(this,t,p);if(y===undefined){const g=(m=t.localRefs)===null||m===void 0?void 0:m[p];const{schemaId:v}=this.opts;if(g)y=new SchemaEnv({schema:g,schemaId:v,root:t,baseId:u})}if(y===undefined)return;return t.refs[p]=inlineOrCompile.call(this,y)}u.resolveRef=resolveRef;function inlineOrCompile(t){if((0,v.inlineRef)(t.schema,this.opts.inlineRefs))return t.schema;return t.validate?t:compileSchema.call(this,t)}function getCompilingSchema(t){for(const u of this._compilations){if(sameSchemaEnv(u,t))return u}}u.getCompilingSchema=getCompilingSchema;function sameSchemaEnv(t,u){return t.schema===u.schema&&t.root===u.root&&t.baseId===u.baseId}function resolve(t,u){let p;while(typeof(p=this.refs[u])=="string")u=p;return p||this.schemas[u]||resolveSchema.call(this,t,u)}function resolveSchema(t,u){const p=this.opts.uriResolver.parse(u);const m=(0,v._getFullPath)(this.opts.uriResolver,p);let g=(0,v.getFullPath)(this.opts.uriResolver,t.baseId,undefined);if(Object.keys(t.schema).length>0&&m===g){return getJsonPointer.call(this,p,t)}const y=(0,v.normalizeId)(m);const b=this.refs[y]||this.schemas[y];if(typeof b=="string"){const u=resolveSchema.call(this,t,b);if(typeof(u===null||u===void 0?void 0:u.schema)!=="object")return;return getJsonPointer.call(this,p,u)}if(typeof(b===null||b===void 0?void 0:b.schema)!=="object")return;if(!b.validate)compileSchema.call(this,b);if(y===(0,v.normalizeId)(u)){const{schema:u}=b;const{schemaId:p}=this.opts;const m=u[p];if(m)g=(0,v.resolveUrl)(this.opts.uriResolver,g,m);return new SchemaEnv({schema:u,schemaId:p,root:t,baseId:g})}return getJsonPointer.call(this,p,b)}u.resolveSchema=resolveSchema;const E=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function getJsonPointer(t,{baseId:u,schema:p,root:m}){var g;if(((g=t.fragment)===null||g===void 0?void 0:g[0])!=="/")return;for(const m of t.fragment.slice(1).split("/")){if(typeof p==="boolean")return;const t=p[(0,b.unescapeFragment)(m)];if(t===undefined)return;p=t;const g=typeof p==="object"&&p[this.opts.schemaId];if(!E.has(m)&&g){u=(0,v.resolveUrl)(this.opts.uriResolver,u,g)}}let y;if(typeof p!="boolean"&&p.$ref&&!(0,b.schemaHasRulesButRef)(p,this.RULES)){const t=(0,v.resolveUrl)(this.opts.uriResolver,u,p.$ref);y=resolveSchema.call(this,m,t)}const{schemaId:w}=this.opts;y=y||new SchemaEnv({schema:p,schemaId:w,root:m,baseId:u});if(y.schema!==y.root.schema)return y;return undefined}},1267:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});const m=p(4809);const g={data:new m.Name("data"),valCxt:new m.Name("valCxt"),instancePath:new m.Name("instancePath"),parentData:new m.Name("parentData"),parentDataProperty:new m.Name("parentDataProperty"),rootData:new m.Name("rootData"),dynamicAnchors:new m.Name("dynamicAnchors"),vErrors:new m.Name("vErrors"),errors:new m.Name("errors"),this:new m.Name("this"),self:new m.Name("self"),scope:new m.Name("scope"),json:new m.Name("json"),jsonPos:new m.Name("jsonPos"),jsonLen:new m.Name("jsonLen"),jsonPart:new m.Name("jsonPart")};u["default"]=g},8547:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});const m=p(5351);class MissingRefError extends Error{constructor(t,u,p,g){super(g||`can't resolve reference ${p} from id ${u}`);this.missingRef=(0,m.resolveUrl)(t,u,p);this.missingSchema=(0,m.normalizeId)((0,m.getFullPath)(t,this.missingRef))}}u["default"]=MissingRefError},5351:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.getSchemaRefs=u.resolveUrl=u.normalizeId=u._getFullPath=u.getFullPath=u.inlineRef=void 0;const m=p(4359);const g=p(3222);const y=p(3456);const v=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function inlineRef(t,u=true){if(typeof t=="boolean")return true;if(u===true)return!hasRef(t);if(!u)return false;return countKeys(t)<=u}u.inlineRef=inlineRef;const b=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function hasRef(t){for(const u in t){if(b.has(u))return true;const p=t[u];if(Array.isArray(p)&&p.some(hasRef))return true;if(typeof p=="object"&&hasRef(p))return true}return false}function countKeys(t){let u=0;for(const p in t){if(p==="$ref")return Infinity;u++;if(v.has(p))continue;if(typeof t[p]=="object"){(0,m.eachItem)(t[p],(t=>u+=countKeys(t)))}if(u===Infinity)return Infinity}return u}function getFullPath(t,u="",p){if(p!==false)u=normalizeId(u);const m=t.parse(u);return _getFullPath(t,m)}u.getFullPath=getFullPath;function _getFullPath(t,u){const p=t.serialize(u);return p.split("#")[0]+"#"}u._getFullPath=_getFullPath;const w=/#\/?$/;function normalizeId(t){return t?t.replace(w,""):""}u.normalizeId=normalizeId;function resolveUrl(t,u,p){p=normalizeId(p);return t.resolve(u,p)}u.resolveUrl=resolveUrl;const E=/^[a-z_][-a-z0-9._]*$/i;function getSchemaRefs(t,u){if(typeof t=="boolean")return{};const{schemaId:p,uriResolver:m}=this.opts;const v=normalizeId(t[p]||u);const b={"":v};const w=getFullPath(m,v,false);const $={};const O=new Set;y(t,{allKeys:true},((t,u,m,g)=>{if(g===undefined)return;const y=w+u;let v=b[g];if(typeof t[p]=="string")v=addRef.call(this,t[p]);addAnchor.call(this,t.$anchor);addAnchor.call(this,t.$dynamicAnchor);b[u]=v;function addRef(u){const p=this.opts.uriResolver.resolve;u=normalizeId(v?p(v,u):u);if(O.has(u))throw ambiguos(u);O.add(u);let m=this.refs[u];if(typeof m=="string")m=this.refs[m];if(typeof m=="object"){checkAmbiguosRef(t,m.schema,u)}else if(u!==normalizeId(y)){if(u[0]==="#"){checkAmbiguosRef(t,$[u],u);$[u]=t}else{this.refs[u]=y}}return u}function addAnchor(t){if(typeof t=="string"){if(!E.test(t))throw new Error(`invalid anchor "${t}"`);addRef.call(this,`#${t}`)}}}));return $;function checkAmbiguosRef(t,u,p){if(u!==undefined&&!g(t,u))throw ambiguos(p)}function ambiguos(t){return new Error(`reference "${t}" resolves to more than one schema`)}}u.getSchemaRefs=getSchemaRefs},8888:(t,u)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.getRules=u.isJSONType=void 0;const p=["string","number","integer","boolean","null","object","array"];const m=new Set(p);function isJSONType(t){return typeof t=="string"&&m.has(t)}u.isJSONType=isJSONType;function getRules(){const t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:true,boolean:true,null:true},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}u.getRules=getRules},4359:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.checkStrictMode=u.getErrorPath=u.Type=u.useFunc=u.setEvaluated=u.evaluatedPropsToName=u.mergeEvaluated=u.eachItem=u.unescapeJsonPointer=u.escapeJsonPointer=u.escapeFragment=u.unescapeFragment=u.schemaRefOrVal=u.schemaHasRulesButRef=u.schemaHasRules=u.checkUnknownRules=u.alwaysValidSchema=u.toHash=void 0;const m=p(4809);const g=p(9356);function toHash(t){const u={};for(const p of t)u[p]=true;return u}u.toHash=toHash;function alwaysValidSchema(t,u){if(typeof u=="boolean")return u;if(Object.keys(u).length===0)return true;checkUnknownRules(t,u);return!schemaHasRules(u,t.self.RULES.all)}u.alwaysValidSchema=alwaysValidSchema;function checkUnknownRules(t,u=t.schema){const{opts:p,self:m}=t;if(!p.strictSchema)return;if(typeof u==="boolean")return;const g=m.RULES.keywords;for(const p in u){if(!g[p])checkStrictMode(t,`unknown keyword: "${p}"`)}}u.checkUnknownRules=checkUnknownRules;function schemaHasRules(t,u){if(typeof t=="boolean")return!t;for(const p in t)if(u[p])return true;return false}u.schemaHasRules=schemaHasRules;function schemaHasRulesButRef(t,u){if(typeof t=="boolean")return!t;for(const p in t)if(p!=="$ref"&&u.all[p])return true;return false}u.schemaHasRulesButRef=schemaHasRulesButRef;function schemaRefOrVal({topSchemaRef:t,schemaPath:u},p,g,y){if(!y){if(typeof p=="number"||typeof p=="boolean")return p;if(typeof p=="string")return(0,m._)`${p}`}return(0,m._)`${t}${u}${(0,m.getProperty)(g)}`}u.schemaRefOrVal=schemaRefOrVal;function unescapeFragment(t){return unescapeJsonPointer(decodeURIComponent(t))}u.unescapeFragment=unescapeFragment;function escapeFragment(t){return encodeURIComponent(escapeJsonPointer(t))}u.escapeFragment=escapeFragment;function escapeJsonPointer(t){if(typeof t=="number")return`${t}`;return t.replace(/~/g,"~0").replace(/\//g,"~1")}u.escapeJsonPointer=escapeJsonPointer;function unescapeJsonPointer(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}u.unescapeJsonPointer=unescapeJsonPointer;function eachItem(t,u){if(Array.isArray(t)){for(const p of t)u(p)}else{u(t)}}u.eachItem=eachItem;function makeMergeEvaluated({mergeNames:t,mergeToName:u,mergeValues:p,resultToName:g}){return(y,v,b,w)=>{const E=b===undefined?v:b instanceof m.Name?(v instanceof m.Name?t(y,v,b):u(y,v,b),b):v instanceof m.Name?(u(y,b,v),v):p(v,b);return w===m.Name&&!(E instanceof m.Name)?g(y,E):E}}u.mergeEvaluated={props:makeMergeEvaluated({mergeNames:(t,u,p)=>t.if((0,m._)`${p} !== true && ${u} !== undefined`,(()=>{t.if((0,m._)`${u} === true`,(()=>t.assign(p,true)),(()=>t.assign(p,(0,m._)`${p} || {}`).code((0,m._)`Object.assign(${p}, ${u})`)))})),mergeToName:(t,u,p)=>t.if((0,m._)`${p} !== true`,(()=>{if(u===true){t.assign(p,true)}else{t.assign(p,(0,m._)`${p} || {}`);setEvaluated(t,p,u)}})),mergeValues:(t,u)=>t===true?true:{...t,...u},resultToName:evaluatedPropsToName}),items:makeMergeEvaluated({mergeNames:(t,u,p)=>t.if((0,m._)`${p} !== true && ${u} !== undefined`,(()=>t.assign(p,(0,m._)`${u} === true ? true : ${p} > ${u} ? ${p} : ${u}`))),mergeToName:(t,u,p)=>t.if((0,m._)`${p} !== true`,(()=>t.assign(p,u===true?true:(0,m._)`${p} > ${u} ? ${p} : ${u}`))),mergeValues:(t,u)=>t===true?true:Math.max(t,u),resultToName:(t,u)=>t.var("items",u)})};function evaluatedPropsToName(t,u){if(u===true)return t.var("props",true);const p=t.var("props",(0,m._)`{}`);if(u!==undefined)setEvaluated(t,p,u);return p}u.evaluatedPropsToName=evaluatedPropsToName;function setEvaluated(t,u,p){Object.keys(p).forEach((p=>t.assign((0,m._)`${u}${(0,m.getProperty)(p)}`,true)))}u.setEvaluated=setEvaluated;const y={};function useFunc(t,u){return t.scopeValue("func",{ref:u,code:y[u.code]||(y[u.code]=new g._Code(u.code))})}u.useFunc=useFunc;var v;(function(t){t[t["Num"]=0]="Num";t[t["Str"]=1]="Str"})(v||(u.Type=v={}));function getErrorPath(t,u,p){if(t instanceof m.Name){const g=u===v.Num;return p?g?(0,m._)`"[" + ${t} + "]"`:(0,m._)`"['" + ${t} + "']"`:g?(0,m._)`"/" + ${t}`:(0,m._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return p?(0,m.getProperty)(t).toString():"/"+escapeJsonPointer(t)}u.getErrorPath=getErrorPath;function checkStrictMode(t,u,p=t.opts.strictSchema){if(!p)return;u=`strict mode: ${u}`;if(p===true)throw new Error(u);t.self.logger.warn(u)}u.checkStrictMode=checkStrictMode},2867:(t,u)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.shouldUseRule=u.shouldUseGroup=u.schemaHasRulesForType=void 0;function schemaHasRulesForType({schema:t,self:u},p){const m=u.RULES.types[p];return m&&m!==true&&shouldUseGroup(t,m)}u.schemaHasRulesForType=schemaHasRulesForType;function shouldUseGroup(t,u){return u.rules.some((u=>shouldUseRule(t,u)))}u.shouldUseGroup=shouldUseGroup;function shouldUseRule(t,u){var p;return t[u.keyword]!==undefined||((p=u.definition.implements)===null||p===void 0?void 0:p.some((u=>t[u]!==undefined)))}u.shouldUseRule=shouldUseRule},6499:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.boolOrEmptySchema=u.topBoolOrEmptySchema=void 0;const m=p(5456);const g=p(4809);const y=p(1267);const v={message:"boolean schema is false"};function topBoolOrEmptySchema(t){const{gen:u,schema:p,validateName:m}=t;if(p===false){falseSchemaError(t,false)}else if(typeof p=="object"&&p.$async===true){u.return(y.default.data)}else{u.assign((0,g._)`${m}.errors`,null);u.return(true)}}u.topBoolOrEmptySchema=topBoolOrEmptySchema;function boolOrEmptySchema(t,u){const{gen:p,schema:m}=t;if(m===false){p.var(u,false);falseSchemaError(t)}else{p.var(u,true)}}u.boolOrEmptySchema=boolOrEmptySchema;function falseSchemaError(t,u){const{gen:p,data:g}=t;const y={gen:p,keyword:"false schema",data:g,schema:false,schemaCode:false,schemaValue:false,params:{},it:t};(0,m.reportError)(y,v,undefined,u)}},5044:(t,u,p)=>{"use strict";Object.defineProperty(u,"__esModule",{value:true});u.reportTypeError=u.checkDataTypes=u.checkDataType=u.coerceAndCheckDataType=u.getJSONTypes=u.getSchemaTypes=u.DataType=void 0;const m=p(8888);const g=p(2867);const y=p(5456);const v=p(4809);const b=p(4359);var w;(function(t){t[t["Correct"]=0]="Correct";t[t["Wrong"]=1]="Wrong"})(w||(u.DataType=w={}));function getSchemaTypes(t){const u=getJSONTypes(t.type);const p=u.includes("null");if(p){if(t.nullable===false)throw new Error("type: null contradicts nullable: false")}else{if(!u.length&&t.nullable!==undefined){throw new Error('"nullable" cannot be used without "type"')}if(t.nullable===true)u.push("null")}return u}u.getSchemaTypes=getSchemaTypes;function getJSONTypes(t){const u=Array.isArray(t)?t:t?[t]:[];if(u.every(m.isJSONType))return u;throw new Error("type must be JSONType or JSONType[]: "+u.join(","))}u.getJSONTypes=getJSONTypes;function coerceAndCheckDataType(t,u){const{gen:p,data:m,opts:y}=t;const v=coerceToTypes(u,y.coerceTypes);const b=u.length>0&&!(v.length===0&&u.length===1&&(0,g.schemaHasRulesForType)(t,u[0]));if(b){const g=checkDataTypes(u,m,y.strictNumbers,w.Wrong);p.if(g,(()=>{if(v.length)coerceData(t,u,v);else reportTypeError(t)}))}return b}u.coerceAndCheckDataType=coerceAndCheckDataType;const E=new Set(["string","number","integer","boolean","null"]);function coerceToTypes(t,u){return u?t.filter((t=>E.has(t)||u==="array"&&t==="array")):[]}function coerceData(t,u,p){const{gen:m,data:g,opts:y}=t;const b=m.let("dataType",(0,v._)`typeof ${g}`);const w=m.let("coerced",(0,v._)`undefined`);if(y.coerceTypes==="array"){m.if((0,v._)`${b} == 'object' && Array.isArray(${g}) && ${g}.length == 1`,(()=>m.assign(g,(0,v._)`${g}[0]`).assign(b,(0,v._)`typeof ${g}`).if(checkDataTypes(u,g,y.strictNumbers),(()=>m.assign(w,g)))))}m.if((0,v._)`${w} !== undefined`);for(const t of p){if(E.has(t)||t==="array"&&y.coerceTypes==="array"){coerceSpecificType(t)}}m.else();reportTypeError(t);m.endIf();m.if((0,v._)`${w} !== undefined`,(()=>{m.assign(g,w);assignParentData(t,w)}));function coerceSpecificType(t){switch(t){case"string":m.elseIf((0,v._)`${b} == "number" || ${b} == "boolean"`).assign(w,(0,v._)`"" + ${g}`).elseIf((0,v._)`${g} === null`).assign(w,(0,v._)`""`);return;case"number":m.elseIf((0,v._)`${b} == "boolean" || ${g} === null
3
4
  || (${b} == "string" && ${g} && ${g} == +${g})`).assign(w,(0,v._)`+${g}`);return;case"integer":m.elseIf((0,v._)`${b} === "boolean" || ${g} === null
4
5
  || (${b} === "string" && ${g} && ${g} == +${g} && !(${g} % 1))`).assign(w,(0,v._)`+${g}`);return;case"boolean":m.elseIf((0,v._)`${g} === "false" || ${g} === 0 || ${g} === null`).assign(w,false).elseIf((0,v._)`${g} === "true" || ${g} === 1`).assign(w,true);return;case"null":m.elseIf((0,v._)`${g} === "" || ${g} === 0 || ${g} === false`);m.assign(w,null);return;case"array":m.elseIf((0,v._)`${b} === "string" || ${b} === "number"
@@ -1,28 +1,28 @@
1
- # APIToGo App
2
-
3
- This APIToGo app was created with [`@lukoweb/create-apitogo`](https://apitogo.com).
4
-
5
- ## Getting Started
6
-
7
- First, run the development server:
8
-
9
- ```bash
10
- npm run dev
11
- # or
12
- yarn dev
13
- # or
14
- pnpm dev
15
- ```
16
-
17
- Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18
-
19
- You can start editing the page by modifying `pages/intro.mdx`. You will see the content
20
- automatically update as you save the file.
21
-
22
- ## Learn More
23
-
24
- To learn more about APIToGo, you can visit [apitogo.com](https://apitogo.com).
25
-
26
- To connect with the community join the
27
- [GitHub Discussions](https://github.com/zuplo/zudoku/discussions) or
28
- [Discord](https://discord.zudoku.dev).
1
+ # APIToGo App
2
+
3
+ This APIToGo app was created with [`@lukoweb/create-apitogo`](https://apitogo.com).
4
+
5
+ ## Getting Started
6
+
7
+ First, run the development server:
8
+
9
+ ```bash
10
+ npm run dev
11
+ # or
12
+ yarn dev
13
+ # or
14
+ pnpm dev
15
+ ```
16
+
17
+ Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
18
+
19
+ You can start editing the page by modifying `pages/intro.mdx`. You will see the content
20
+ automatically update as you save the file.
21
+
22
+ ## Learn More
23
+
24
+ To learn more about APIToGo, you can visit [apitogo.com](https://apitogo.com).
25
+
26
+ To connect with the community join the
27
+ [GitHub Discussions](https://github.com/zuplo/zudoku/discussions) or
28
+ [Discord](https://discord.zudoku.dev).
@@ -1,65 +1,65 @@
1
- /** @type {import('@lukoweb/apitogo').ZudokuConfig} */
2
- const config = {
3
- site: {
4
- logo: {
5
- src: { light: "/logo-light.png", dark: "/logo-dark.png" },
6
- alt: "APIToGo",
7
- width: "130px",
8
- },
9
- },
10
- navigation: [
11
- {
12
- type: "category",
13
- label: "Documentation",
14
- items: [
15
- {
16
- type: "category",
17
- label: "Getting Started",
18
- icon: "sparkles",
19
- items: [
20
- "/introduction",
21
- {
22
- type: "link",
23
- icon: "folder-cog",
24
- badge: {
25
- label: "New",
26
- color: "purple",
27
- },
28
- label: "API Reference",
29
- to: "/api",
30
- },
31
- ],
32
- },
33
- {
34
- type: "category",
35
- label: "Useful Links",
36
- collapsible: false,
37
- icon: "link",
38
- items: [
39
- {
40
- type: "link",
41
- icon: "book",
42
- label: "APIToGo",
43
- to: "https://apitogo.com",
44
- },
45
- ],
46
- },
47
- ],
48
- },
49
- {
50
- type: "link",
51
- to: "/api",
52
- label: "API Reference",
53
- },
54
- ],
55
- redirects: [{ from: "/", to: "/introduction" }],
56
- apis: [
57
- {
58
- type: "file",
59
- input: "./apis/openapi.yaml",
60
- path: "/api",
61
- },
62
- ],
63
- };
64
-
65
- export default config;
1
+ /** @type {import('@lukoweb/apitogo').ZudokuConfig} */
2
+ const config = {
3
+ site: {
4
+ logo: {
5
+ src: { light: "/logo-light.png", dark: "/logo-dark.png" },
6
+ alt: "APIToGo",
7
+ width: "130px",
8
+ },
9
+ },
10
+ navigation: [
11
+ {
12
+ type: "category",
13
+ label: "Documentation",
14
+ items: [
15
+ {
16
+ type: "category",
17
+ label: "Getting Started",
18
+ icon: "sparkles",
19
+ items: [
20
+ "/introduction",
21
+ {
22
+ type: "link",
23
+ icon: "folder-cog",
24
+ badge: {
25
+ label: "New",
26
+ color: "purple",
27
+ },
28
+ label: "API Reference",
29
+ to: "/api",
30
+ },
31
+ ],
32
+ },
33
+ {
34
+ type: "category",
35
+ label: "Useful Links",
36
+ collapsible: false,
37
+ icon: "link",
38
+ items: [
39
+ {
40
+ type: "link",
41
+ icon: "book",
42
+ label: "APIToGo",
43
+ to: "https://apitogo.com",
44
+ },
45
+ ],
46
+ },
47
+ ],
48
+ },
49
+ {
50
+ type: "link",
51
+ to: "/api",
52
+ label: "API Reference",
53
+ },
54
+ ],
55
+ redirects: [{ from: "/", to: "/introduction" }],
56
+ apis: [
57
+ {
58
+ type: "file",
59
+ input: "./apis/openapi.yaml",
60
+ path: "/api",
61
+ },
62
+ ],
63
+ };
64
+
65
+ export default config;