@wp-playground/blueprints 1.2.2 → 2.0.0
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/index.cjs +34 -34
- package/index.js +1485 -1484
- package/index.js.map +1 -1
- package/lib/compile.d.ts +4 -0
- package/package.json +13 -13
- package/blueprints.phar +0 -0
- package/lib/v2.d.ts +0 -41
package/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@php-wasm/node-polyfills");const ae=require("@php-wasm/logger"),z=require("@php-wasm/util"),Or=require("@wp-playground/wordpress"),xe=require("@php-wasm/universal"),jr=require("@wp-playground/common"),pr=require("@php-wasm/progress"),Oe=require("@wp-playground/storage"),rt=require("@php-wasm/web"),tt=require("@php-wasm/stream-compression"),lr=["db.php","plugins/akismet","plugins/hello.php","plugins/wordpress-importer","mu-plugins/sqlite-database-integration","mu-plugins/playground-includes","mu-plugins/0-playground.php","mu-plugins/0-sqlite.php","themes/twentytwenty","themes/twentytwentyone","themes/twentytwentytwo","themes/twentytwentythree","themes/twentytwentyfour","themes/twentytwentyfive","themes/twentytwentysix"],fr=async(r,{pluginPath:t,pluginName:p},
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@php-wasm/node-polyfills");const ae=require("@php-wasm/logger"),z=require("@php-wasm/util"),Or=require("@wp-playground/wordpress"),xe=require("@php-wasm/universal"),jr=require("@wp-playground/common"),pr=require("@php-wasm/progress"),Oe=require("@wp-playground/storage"),rt=require("@php-wasm/web"),tt=require("@php-wasm/stream-compression"),lr=["db.php","plugins/akismet","plugins/hello.php","plugins/wordpress-importer","mu-plugins/sqlite-database-integration","mu-plugins/playground-includes","mu-plugins/0-playground.php","mu-plugins/0-sqlite.php","themes/twentytwenty","themes/twentytwentyone","themes/twentytwentytwo","themes/twentytwentythree","themes/twentytwentyfour","themes/twentytwentyfive","themes/twentytwentysix"],fr=async(r,{pluginPath:t,pluginName:p},d)=>{d==null||d.tracker.setCaption(`Activating ${p||t}`);const u=await r.documentRoot,s=await r.run({code:`<?php
|
|
2
2
|
define( 'WP_ADMIN', true );
|
|
3
3
|
require_once( getenv('DOCROOT') . "/wp-load.php" );
|
|
4
4
|
require_once( getenv('DOCROOT') . "/wp-admin/includes/plugin.php" );
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
} else if ( false === $response ) {
|
|
29
29
|
die( "The activatePlugin step wasn't able to find the plugin $plugin_path." );
|
|
30
30
|
}
|
|
31
|
-
`,env:{PLUGIN_PATH:t,DOCROOT:
|
|
31
|
+
`,env:{PLUGIN_PATH:t,DOCROOT:u}});s.text&&ae.logger.warn(`Plugin ${t} activation printed the following bytes: ${s.text}`);const e=await r.run({code:`<?php
|
|
32
32
|
ob_start();
|
|
33
33
|
require_once( getenv( 'DOCROOT' ) . "/wp-load.php" );
|
|
34
34
|
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
die( ob_get_flush() ?: 'false' );
|
|
69
|
-
`,env:{DOCROOT:
|
|
69
|
+
`,env:{DOCROOT:u,PLUGIN_PATH:t}});if(e.text!=="true")throw e.text!=="false"&&ae.logger.debug(e.text),new Error(`Plugin ${t} could not be activated – WordPress exited with no error. Sometimes, when $_SERVER or site options are not configured correctly, WordPress exits early with a 301 redirect. Inspect the "debug" logs in the console for more details.`)},dr=async(r,{themeFolderName:t},p)=>{p==null||p.tracker.setCaption(`Activating ${t}`);const d=await r.documentRoot,u=`${d}/wp-content/themes/${t}`;if(!await r.fileExists(u))throw new Error(`
|
|
70
70
|
Couldn't activate theme ${t}.
|
|
71
|
-
Theme not found at the provided theme path: ${
|
|
71
|
+
Theme not found at the provided theme path: ${u}.
|
|
72
72
|
Check the theme path to ensure it's correct.
|
|
73
73
|
If the theme is not installed, you can install it using the installTheme step.
|
|
74
74
|
More info can be found in the Blueprint documentation: https://wordpress.github.io/wordpress-playground/blueprints/steps/#ActivateThemeStep
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
throw new Exception( 'Theme ' . getenv('themeFolderName') . ' could not be activated.' );
|
|
86
86
|
}
|
|
87
87
|
die('Theme activated successfully');
|
|
88
|
-
`,env:{docroot:
|
|
88
|
+
`,env:{docroot:d,themeFolderName:t}});if(s.text!=="Theme activated successfully")throw ae.logger.debug(s),new Error(`Theme ${t} could not be activated – WordPress exited with no error. Sometimes, when $_SERVER or site options are not configured correctly, WordPress exits early with a 301 redirect. Inspect the "debug" logs in the console for more details`)},Tr=async(r,{code:t})=>((t.includes('"wordpress/wp-load.php"')||t.includes("'wordpress/wp-load.php'"))&&(ae.logger.error(`
|
|
89
89
|
It looks like you're trying to load WordPress using a relative path 'wordpress/wp-load.php'.
|
|
90
90
|
|
|
91
91
|
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
@@ -113,7 +113,7 @@ Instead of: rm({ path: 'wordpress/wp-load.php' });
|
|
|
113
113
|
Use: rm({ path: '/wordpress/wp-load.php' });
|
|
114
114
|
|
|
115
115
|
This will ensure your code works reliably regardless of the current working directory.
|
|
116
|
-
`.trim()),t=`/${t}`),await r.unlink(t)},qr=async(r,{sql:t},p)=>{p==null||p.tracker.setCaption("Executing SQL Queries");const
|
|
116
|
+
`.trim()),t=`/${t}`),await r.unlink(t)},qr=async(r,{sql:t},p)=>{p==null||p.tracker.setCaption("Executing SQL Queries");const d=`/tmp/${z.randomFilename()}.sql`;await r.writeFile(d,new Uint8Array(await t.arrayBuffer()));const u=await r.documentRoot,s=z.phpVars({docroot:u,sqlFilename:d}),e=await r.run({code:`<?php
|
|
117
117
|
require_once ${s.docroot} . '/wp-load.php';
|
|
118
118
|
|
|
119
119
|
$handle = fopen(${s.sqlFilename}, 'r');
|
|
@@ -128,15 +128,15 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
128
128
|
|
|
129
129
|
$wpdb->query($line);
|
|
130
130
|
}
|
|
131
|
-
`});return await ur(r,{path:
|
|
131
|
+
`});return await ur(r,{path:d}),e},$r=async(r,{request:t})=>{ae.logger.warn('Deprecated: The Blueprint step "request" is deprecated and will be removed in a future release.');const p=await r.request(t);if(p.httpStatusCode>399||p.httpStatusCode<200)throw ae.logger.warn("WordPress response was",{response:p}),new Error(`Request failed with status ${p.httpStatusCode}`);return p},rr=async(r,{consts:t,method:p="define-before-run"})=>{switch(p){case"define-before-run":await st(r,t);break;case"rewrite-wp-config":{const d=await r.documentRoot,u=z.joinPaths(d,"/wp-config.php");await Or.defineWpConfigConstants(r,u,t,"rewrite");break}default:throw new Error(`Invalid method: ${p}`)}};async function st(r,t){for(const p in t)await r.defineConstant(p,t[p])}const cr=async(r,{options:t})=>{const p=await r.documentRoot;await r.run({code:`<?php
|
|
132
132
|
include ${z.phpVar(p)} . '/wp-load.php';
|
|
133
133
|
$site_options = ${z.phpVar(t)};
|
|
134
134
|
foreach($site_options as $name => $value) {
|
|
135
135
|
update_option($name, $value);
|
|
136
136
|
}
|
|
137
137
|
echo "Success";
|
|
138
|
-
`})},Ar=async(r,{meta:t,userId:p})=>{const
|
|
139
|
-
include ${z.phpVar(
|
|
138
|
+
`})},Ar=async(r,{meta:t,userId:p})=>{const d=await r.documentRoot;await r.run({code:`<?php
|
|
139
|
+
include ${z.phpVar(d)} . '/wp-load.php';
|
|
140
140
|
$meta = ${z.phpVar(t)};
|
|
141
141
|
foreach($meta as $name => $value) {
|
|
142
142
|
update_user_meta(${z.phpVar(p)}, $name, $value);
|
|
@@ -147,7 +147,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
147
147
|
"extraLibraries": [ "wp-cli" ]
|
|
148
148
|
}
|
|
149
149
|
Read more about it in the documentation.
|
|
150
|
-
https://wordpress.github.io/wordpress-playground/blueprints/data-format#extra-libraries`)},yr=async(r,{command:t,wpCliPath:p=mr})=>{await Rr(r,p);let
|
|
150
|
+
https://wordpress.github.io/wordpress-playground/blueprints/data-format#extra-libraries`)},yr=async(r,{command:t,wpCliPath:p=mr})=>{await Rr(r,p);let d;if(typeof t=="string"?(t=t.trim(),d=ot(t)):d=t,d.shift()!=="wp")throw new Error('The first argument must be "wp".');const s=await r.documentRoot;await r.writeFile("/tmp/stdout",""),await r.writeFile("/tmp/stderr",""),await r.writeFile(z.joinPaths(s,"run-cli.php"),`<?php
|
|
151
151
|
// Set up the environment to emulate a shell script
|
|
152
152
|
// call.
|
|
153
153
|
|
|
@@ -160,7 +160,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
160
160
|
$GLOBALS['argv'] = array_merge([
|
|
161
161
|
"/tmp/wp-cli.phar",
|
|
162
162
|
"--path=${s}"
|
|
163
|
-
], ${z.phpVar(
|
|
163
|
+
], ${z.phpVar(d)});
|
|
164
164
|
|
|
165
165
|
// Provide stdin, stdout, stderr streams outside of
|
|
166
166
|
// the CLI SAPI.
|
|
@@ -169,7 +169,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
169
169
|
define('STDERR', fopen('php://stderr', 'wb'));
|
|
170
170
|
|
|
171
171
|
require( ${z.phpVar(p)} );
|
|
172
|
-
`);const e=await r.run({scriptPath:z.joinPaths(s,"run-cli.php")});if(e.errors)throw new Error(e.errors);return e};function ot(r){let
|
|
172
|
+
`);const e=await r.run({scriptPath:z.joinPaths(s,"run-cli.php")});if(e.errors)throw new Error(e.errors);return e};function ot(r){let d=0,u="";const s=[];let e="";for(let f=0;f<r.length;f++){const g=r[f];d===0?g==='"'||g==="'"?(d=1,u=g):g.match(/\s/)?(e&&s.push(e),e=""):e+=g:d===1&&(g==="\\"?(f++,e+=r[f]):g===u?(d=0,u=""):e+=g)}return e&&s.push(e),s}const Lr=async(r,{wpCliPath:t})=>{await Rr(r,t),await rr(r,{consts:{WP_ALLOW_MULTISITE:1}});const p=new URL(await r.absoluteUrl);if(p.port!==""){let s=`The current host is ${p.host}, but WordPress multisites do not support custom ports.`;throw p.hostname==="localhost"&&(s+=" For development, you can set up a playground.test domain using the instructions at https://wordpress.github.io/wordpress-playground/contributing/code."),new Error(s)}const d=p.pathname.replace(/\/$/,"")+"/",u=`${p.protocol}//${p.hostname}${d}`;await cr(r,{options:{siteurl:u,home:u}}),await yr(r,{command:"wp core multisite-convert"})},Fr=async(r,{fromPath:t,toPath:p})=>{(!t.startsWith("/")||!p.startsWith("/"))&&ae.logger.error(`
|
|
173
173
|
The cp() step in your Blueprint refers to a relative path.
|
|
174
174
|
|
|
175
175
|
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
@@ -253,9 +253,9 @@ Instead of: writeFiles({ writeToPath: 'wordpress/wp-content/plugins/my-plugin',
|
|
|
253
253
|
Use: writeFiles({ writeToPath: '/wordpress/wp-content/plugins/my-plugin', filesTree: { name: 'style.css': 'a { color: red; }' });
|
|
254
254
|
|
|
255
255
|
This will ensure your code works reliably regardless of the current working directory.
|
|
256
|
-
`.trim()),t=`/${t}`),await xe.writeFiles(r,t,p.files)},hr=async(r,{siteUrl:t})=>{await rr(r,{consts:{WP_HOME:t,WP_SITEURL:t}})},Cr=async(r,{file:t},p)=>{await at(r,t,p)};async function at(r,t,p){var
|
|
257
|
-
require ${z.phpVar(
|
|
258
|
-
require ${z.phpVar(
|
|
256
|
+
`.trim()),t=`/${t}`),await xe.writeFiles(r,t,p.files)},hr=async(r,{siteUrl:t})=>{await rr(r,{consts:{WP_HOME:t,WP_SITEURL:t}})},Cr=async(r,{file:t},p)=>{await at(r,t,p)};async function at(r,t,p){var u;(u=p==null?void 0:p.tracker)==null||u.setCaption("Importing content"),await tr(r,{path:"/tmp/import.wxr",data:t});const d=await r.documentRoot;await r.run({code:`<?php
|
|
257
|
+
require ${z.phpVar(d)} . '/wp-load.php';
|
|
258
|
+
require ${z.phpVar(d)} . '/wp-admin/includes/admin.php';
|
|
259
259
|
|
|
260
260
|
kses_remove_filters();
|
|
261
261
|
$admin_id = get_users(array('role' => 'Administrator') )[0]->ID;
|
|
@@ -290,7 +290,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
290
290
|
return $terms;
|
|
291
291
|
}, 10, 2 );
|
|
292
292
|
$result = $importer->import( '/tmp/import.wxr' );
|
|
293
|
-
`})}const gr=async(r,{themeSlug:t=""},p)=>{var
|
|
293
|
+
`})}const gr=async(r,{themeSlug:t=""},p)=>{var u;(u=p==null?void 0:p.tracker)==null||u.setCaption("Importing theme starter content");const d=await r.documentRoot;await r.run({code:`<?php
|
|
294
294
|
|
|
295
295
|
/**
|
|
296
296
|
* Ensure that the customizer loads as an admin user.
|
|
@@ -325,7 +325,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
325
325
|
}
|
|
326
326
|
playground_add_filter( 'plugins_loaded', 'importThemeStarterContent_plugins_loaded', 0 );
|
|
327
327
|
|
|
328
|
-
require ${z.phpVar(
|
|
328
|
+
require ${z.phpVar(d)} . '/wp-load.php';
|
|
329
329
|
|
|
330
330
|
// Return early if there's no starter content.
|
|
331
331
|
if ( ! get_theme_starter_content() ) {
|
|
@@ -337,10 +337,10 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
337
337
|
|
|
338
338
|
// Publish the changeset, which publishes the starter content.
|
|
339
339
|
wp_publish_post( $wp_customize->changeset_post_id() );
|
|
340
|
-
`})},sr=async(r,{zipFile:t,zipPath:p,extractToPath:
|
|
340
|
+
`})},sr=async(r,{zipFile:t,zipPath:p,extractToPath:d})=>{if(p)ae.logger.warn('The "zipPath" option of the unzip() Blueprint step is deprecated and will be removed. Use "zipFile" instead.');else if(!t)throw new Error("Either zipPath or zipFile must be provided");await jr.unzipFile(r,t||p,d)},Ir=async(r,{wordPressFilesZip:t,pathInZip:p=""})=>{const d=await r.documentRoot;let u=z.joinPaths("/tmp","import");await r.mkdir(u),await sr(r,{zipFile:t,extractToPath:u}),u=z.joinPaths(u,p);const s=z.joinPaths(u,"wp-content"),e=z.joinPaths(d,"wp-content");for(const S of lr){const T=z.joinPaths(s,S);await Pr(r,T);const k=z.joinPaths(e,S);await r.fileExists(k)&&(await r.mkdir(z.dirname(T)),await r.mv(k,T))}const f=z.joinPaths(u,"wp-content","database");await r.fileExists(f)||await r.mv(z.joinPaths(d,"wp-content","database"),f);const g=await r.listFiles(u);for(const S of g)await Pr(r,z.joinPaths(d,S)),await r.mv(z.joinPaths(u,S),z.joinPaths(d,S));await r.rmdir(u),await Or.ensureWpConfig(r,d),await hr(r,{siteUrl:await r.absoluteUrl});const I=z.phpVar(z.joinPaths(d,"wp-admin","upgrade.php"));await r.run({code:`<?php
|
|
341
341
|
$_GET['step'] = 'upgrade_db';
|
|
342
|
-
require ${
|
|
343
|
-
`})};async function Pr(r,t){await r.fileExists(t)&&(await r.isDir(t)?await r.rmdir(t):await r.unlink(t))}async function Wr(r){const t=await r.request({url:"/wp-admin/export.php?download=true&content=all"});return new File([t.bytes],"export.xml")}async function Ur(r,{targetPath:t,zipFile:p,ifAlreadyInstalled:
|
|
342
|
+
require ${I};
|
|
343
|
+
`})};async function Pr(r,t){await r.fileExists(t)&&(await r.isDir(t)?await r.rmdir(t):await r.unlink(t))}async function Wr(r){const t=await r.request({url:"/wp-admin/export.php?download=true&content=all"});return new File([t.bytes],"export.xml")}async function Ur(r,{targetPath:t,zipFile:p,ifAlreadyInstalled:d="overwrite",targetFolderName:u=""}){const e=p.name.replace(/\.zip$/,""),f=z.joinPaths(await r.documentRoot,"wp-content"),g=z.joinPaths(f,z.randomString()),I=z.joinPaths(g,"assets",e);await r.fileExists(I)&&await r.rmdir(g,{recursive:!0}),await r.mkdir(g);try{await sr(r,{zipFile:p,extractToPath:I});let S=await r.listFiles(I,{prependPath:!0});S=S.filter(m=>!m.endsWith("/__MACOSX"));const T=S.length===1&&await r.isDir(S[0]);let k,O="";T?(O=S[0],k=S[0].split("/").pop()):(O=I,k=e),u&&u.length&&(k=u);const R=`${t}/${k}`;if(await r.fileExists(R)){if(!await r.isDir(R))throw new Error(`Cannot install asset ${k} to ${R} because a file with the same name already exists. Note it's a file, not a directory! Is this by mistake?`);if(d==="overwrite")await r.rmdir(R,{recursive:!0});else{if(d==="skip")return{assetFolderPath:R,assetFolderName:k};throw new Error(`Cannot install asset ${k} to ${t} because it already exists and the ifAlreadyInstalled option was set to ${d}`)}}return await r.mv(O,R),{assetFolderPath:R,assetFolderName:k}}finally{await r.rmdir(g,{recursive:!0})}}function ir(r){const t=r.split(".").shift().replace(/-/g," ");return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}const zr=async(r,{pluginData:t,pluginZipFile:p,ifAlreadyInstalled:d,options:u={}},s)=>{p&&(t=p,ae.logger.warn('The "pluginZipFile" option is deprecated. Use "pluginData" instead.'));const e=z.joinPaths(await r.documentRoot,"wp-content","plugins"),f="targetFolderName"in u?u.targetFolderName:"";let g="",I="";const S=async k=>{if(k.name.toLowerCase().endsWith(".zip"))return!0;const O=new Uint8Array(await k.arrayBuffer(),0,4);return O[0]===80&&O[1]===75&&O[2]===3&&O[3]===4};if(t instanceof File)if(await S(t)){const k=t.name.split("/").pop()||"plugin.zip";I=ir(k),s==null||s.tracker.setCaption(`Installing the ${I} plugin`);const O=await Ur(r,{ifAlreadyInstalled:d,zipFile:t,targetPath:`${await r.documentRoot}/wp-content/plugins`,targetFolderName:f});g=O.assetFolderPath,I=O.assetFolderName}else if(t.name.endsWith(".php")){const k=z.joinPaths(e,t.name);await tr(r,{path:k,data:t}),g=e,I=t.name}else throw new Error("pluginData looks like a file but does not look like a .zip or .php file.");else if(t){I=t.name,s==null||s.tracker.setCaption(`Installing the ${I} plugin`);const k=z.joinPaths(e,f||t.name);await xe.writeFiles(r,k,t.files,{rmRoot:!0}),g=k}("activate"in u?u.activate:!0)&&await fr(r,{pluginPath:g,pluginName:I},s)},Vr=async(r,{themeData:t,themeZipFile:p,ifAlreadyInstalled:d,options:u={}},s)=>{p&&(t=p,ae.logger.warn('The "themeZipFile" option is deprecated. Use "themeData" instead.'));const e="targetFolderName"in u?u.targetFolderName:"";let f="",g="";if(t instanceof File){const T=t.name.split("/").pop()||"theme.zip";g=ir(T),s==null||s.tracker.setCaption(`Installing the ${g} theme`),f=(await Ur(r,{ifAlreadyInstalled:d,zipFile:t,targetPath:`${await r.documentRoot}/wp-content/themes`,targetFolderName:e})).assetFolderName}else{g=t.name,f=e||g,s==null||s.tracker.setCaption(`Installing the ${g} theme`);const T=z.joinPaths(await r.documentRoot,"wp-content","themes",f);await xe.writeFiles(r,T,t.files,{rmRoot:!0})}("activate"in u?u.activate:!0)&&await dr(r,{themeFolderName:f},s),("importStarterContent"in u?u.importStarterContent:!1)&&await gr(r,{themeSlug:f},s)},Br=async(r,{username:t="admin"}={},p)=>{p==null||p.tracker.setCaption((p==null?void 0:p.initialCaption)||"Logging in"),r.defineConstant("PLAYGROUND_AUTO_LOGIN_AS_USER",t)},Mr=async(r,t,p)=>{var u;(u=p==null?void 0:p.tracker)==null||u.setCaption("Resetting WordPress data");const d=await r.documentRoot;await r.run({env:{DOCROOT:d},code:`<?php
|
|
344
344
|
require getenv('DOCROOT') . '/wp-load.php';
|
|
345
345
|
|
|
346
346
|
$GLOBALS['@pdo']->query('DELETE FROM wp_posts WHERE id > 0');
|
|
@@ -354,11 +354,11 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
354
354
|
|
|
355
355
|
$GLOBALS['@pdo']->query('DELETE FROM wp_commentmeta');
|
|
356
356
|
$GLOBALS['@pdo']->query("UPDATE SQLITE_SEQUENCE SET SEQ=0 WHERE NAME='wp_commentmeta'");
|
|
357
|
-
`})},Hr=async(r,{options:t})=>{await r.request({url:"/wp-admin/install.php?step=2",method:"POST",body:{language:"en",prefix:"wp_",weblog_title:"My WordPress Website",user_name:t.adminPassword||"admin",admin_password:t.adminPassword||"password",admin_password2:t.adminPassword||"password",Submit:"Install WordPress",pw_weak:"1",admin_email:"admin@localhost.com"}})},Zr=async(r,{selfContained:t=!1}={})=>{const p="/tmp/wordpress-playground.zip",
|
|
357
|
+
`})},Hr=async(r,{options:t})=>{await r.request({url:"/wp-admin/install.php?step=2",method:"POST",body:{language:"en",prefix:"wp_",weblog_title:"My WordPress Website",user_name:t.adminPassword||"admin",admin_password:t.adminPassword||"password",admin_password2:t.adminPassword||"password",Submit:"Install WordPress",pw_weak:"1",admin_email:"admin@localhost.com"}})},Zr=async(r,{selfContained:t=!1}={})=>{const p="/tmp/wordpress-playground.zip",d=await r.documentRoot,u=z.joinPaths(d,"wp-content");let s=lr;t&&(s=s.filter(g=>!g.startsWith("themes/twenty")).filter(g=>g!=="mu-plugins/sqlite-database-integration"));const e=z.phpVars({zipPath:p,wpContentPath:u,documentRoot:d,exceptPaths:s.map(g=>z.joinPaths(d,"wp-content",g)),additionalPaths:t?{[z.joinPaths(d,"wp-config.php")]:"wp-config.php"}:{}});await pt(r,`zipDir(${e.wpContentPath}, ${e.zipPath}, array(
|
|
358
358
|
'exclude_paths' => ${e.exceptPaths},
|
|
359
359
|
'zip_root' => ${e.documentRoot},
|
|
360
360
|
'additional_paths' => ${e.additionalPaths}
|
|
361
|
-
));`);const
|
|
361
|
+
));`);const f=await r.readFileAsBuffer(p);return r.unlink(p),f},nt=`<?php
|
|
362
362
|
|
|
363
363
|
function zipDir($root, $output, $options = array())
|
|
364
364
|
{
|
|
@@ -418,12 +418,12 @@ function join_paths()
|
|
|
418
418
|
|
|
419
419
|
return preg_replace('#/+#', '/', join('/', $paths));
|
|
420
420
|
}
|
|
421
|
-
`;async function pt(r,t){return await r.run({code:nt+t})}const lt=async(r,t)=>{const
|
|
422
|
-
require '${
|
|
421
|
+
`;async function pt(r,t){return await r.run({code:nt+t})}const lt=async(r,t)=>{const u=(await(await fetch(`https://api.wordpress.org/translations/core/1.0/?version=${r}`)).json()).translations.find(s=>s.language.toLowerCase()===t.toLowerCase());if(!u)throw new Error(`Failed to get ${t} translation package for WordPress ${r}.`);return u.package},Yr=async(r,{language:t},p)=>{p==null||p.tracker.setCaption((p==null?void 0:p.initialCaption)||"Translating"),await r.defineConstant("WPLANG",t);const d=await r.documentRoot,u=(await r.run({code:`<?php
|
|
422
|
+
require '${d}/wp-includes/version.php';
|
|
423
423
|
echo $wp_version;
|
|
424
|
-
`})).text,s=[{url:await lt(
|
|
425
|
-
require_once('${
|
|
426
|
-
require_once('${
|
|
424
|
+
`})).text,s=[{url:await lt(u,t),type:"core"}],f=(await r.run({code:`<?php
|
|
425
|
+
require_once('${d}/wp-load.php');
|
|
426
|
+
require_once('${d}/wp-admin/includes/plugin.php');
|
|
427
427
|
echo json_encode(
|
|
428
428
|
array_values(
|
|
429
429
|
array_map(
|
|
@@ -441,9 +441,9 @@ function join_paths()
|
|
|
441
441
|
)
|
|
442
442
|
)
|
|
443
443
|
)
|
|
444
|
-
);`})).json;for(const{slug:
|
|
445
|
-
require_once('${
|
|
446
|
-
require_once('${
|
|
444
|
+
);`})).json;for(const{slug:k,version:O}of f)s.push({url:`https://downloads.wordpress.org/translation/plugin/${k}/${O}/${t}.zip`,type:"plugin"});const I=(await r.run({code:`<?php
|
|
445
|
+
require_once('${d}/wp-load.php');
|
|
446
|
+
require_once('${d}/wp-admin/includes/theme.php');
|
|
447
447
|
echo json_encode(
|
|
448
448
|
array_values(
|
|
449
449
|
array_map(
|
|
@@ -456,7 +456,7 @@ function join_paths()
|
|
|
456
456
|
wp_get_themes()
|
|
457
457
|
)
|
|
458
458
|
)
|
|
459
|
-
);`})).json;for(const{slug:
|
|
459
|
+
);`})).json;for(const{slug:k,version:O}of I)s.push({url:`https://downloads.wordpress.org/translation/theme/${k}/${O}/${t}.zip`,type:"theme"});await r.isDir(`${d}/wp-content/languages/plugins`)||await r.mkdir(`${d}/wp-content/languages/plugins`),await r.isDir(`${d}/wp-content/languages/themes`)||await r.mkdir(`${d}/wp-content/languages/themes`);const S=new z.Semaphore({concurrency:5}),T=s.map(({url:k,type:O})=>S.run(async()=>{try{const R=await fetch(k);if(!R.ok)throw new Error(`Failed to download translations for ${O}: ${R.statusText}`);let m=`${d}/wp-content/languages`;O==="plugin"?m+="/plugins":O==="theme"&&(m+="/themes"),await jr.unzipFile(r,new File([await R.blob()],`${t}-${O}.zip`),m)}catch(R){if(O==="core")throw new Error(`Failed to download translations for WordPress. Please check if the language code ${t} is correct. You can find all available languages and translations on https://translate.wordpress.org/.`);ae.logger.warn(`Error downloading translations for ${O}: ${R}`)}}));await Promise.all(T)},ft=Object.freeze(Object.defineProperty({__proto__:null,activatePlugin:fr,activateTheme:dr,cp:Fr,defineSiteUrl:hr,defineWpConfigConsts:rr,enableMultisite:Lr,exportWXR:Wr,importThemeStarterContent:gr,importWordPressFiles:Ir,importWxr:Cr,installPlugin:zr,installTheme:Vr,login:Br,mkdir:Nr,mv:Sr,request:$r,resetData:Mr,rm:ur,rmdir:xr,runPHP:Tr,runPHPWithOptions:Er,runSql:qr,runWpInstallationWizard:Hr,setSiteLanguage:Yr,setSiteOptions:cr,unzip:sr,updateUserMeta:Ar,wpCLI:yr,writeFile:tr,writeFiles:Dr,zipWpContent:Zr},Symbol.toStringTag,{value:"Module"})),dt=["vfs","literal","wordpress.org/themes","wordpress.org/plugins","url","git:directory","bundled"];function ut(r){return r&&typeof r=="object"&&typeof r.resource=="string"&&dt.includes(r.resource)}class ke{get progress(){return this._progress}set progress(t){this._progress=t}setPlayground(t){this.playground=t}get isAsync(){return!1}static create(t,{semaphore:p,progress:d,corsProxy:u,streamBundledFile:s}){let e;switch(t.resource){case"vfs":e=new ct(t,d);break;case"literal":e=new mt(t,d);break;case"wordpress.org/themes":e=new vt(t,d);break;case"wordpress.org/plugins":e=new Pt(t,d);break;case"url":e=new ht(t,d,{corsProxy:u});break;case"git:directory":e=new gt(t,d,{corsProxy:u});break;case"literal:directory":e=new wt(t,d);break;case"bundled":if(!s)throw new Error("Filesystem is required for blueprint resources");e=new Ot(t,s,d);break;default:throw new Error(`Unknown resource type: ${t.resource}`)}return p&&(e=new kt(e,p)),new _t(e)}}class Gr extends ke{constructor(t){super(),this.resource=t}get progress(){return this.resource.progress}set progress(t){this.resource.progress=t}get name(){return this.resource.name}get isAsync(){return this.resource.isAsync}setPlayground(t){this.resource.setPlayground(t)}}class ct extends ke{constructor(t,p){super(),this.resource=t,this._progress=p}async resolve(){var p;const t=await this.playground.readFileAsBuffer(this.resource.path);return(p=this.progress)==null||p.set(100),new File([t],this.name)}get name(){return this.resource.path.split("/").pop()||""}}class mt extends ke{constructor(t,p){super(),this.resource=t,this._progress=p}async resolve(){var t;return(t=this.progress)==null||t.set(100),new File([this.resource.contents],this.resource.name)}get name(){return this.resource.name}}class br extends ke{constructor(t,p){super(),this._progress=t,this.corsProxy=p}async resolve(){var p,d,u;(p=this.progress)==null||p.setCaption(this.caption);const t=this.getURL();try{let s=await rt.fetchWithCorsProxy(t,void 0,this.corsProxy,await((d=this.playground)==null?void 0:d.absoluteUrl));if(!s.ok)throw new Error(`Could not download "${t}"`);if(s=await pr.cloneResponseMonitorProgress(s,((u=this.progress)==null?void 0:u.loadingListener)??yt),s.status!==200)throw new Error(`Could not download "${t}"`);return new File([await s.blob()],this.name)}catch(s){throw new Error(`Could not download "${t}".
|
|
460
460
|
Check if the URL is correct and the server is reachable.
|
|
461
461
|
If it is reachable, the server might be blocking the request.
|
|
462
462
|
Check the browser console and network tabs for more information.
|
|
@@ -480,14 +480,14 @@ function join_paths()
|
|
|
480
480
|
https://raw.githubusercontent.com/username/repository/branch/filename
|
|
481
481
|
|
|
482
482
|
Error:
|
|
483
|
-
${s}`)}}get caption(){return`Downloading ${this.name}`}get name(){try{return new URL(this.getURL(),"http://example.com").pathname.split("/").pop()}catch{return this.getURL()}}get isAsync(){return!0}}const yt=()=>{};class ht extends br{constructor(t,p,
|
|
483
|
+
${s}`)}}get caption(){return`Downloading ${this.name}`}get name(){try{return new URL(this.getURL(),"http://example.com").pathname.split("/").pop()}catch{return this.getURL()}}get isAsync(){return!0}}const yt=()=>{};class ht extends br{constructor(t,p,d){if(super(p,d==null?void 0:d.corsProxy),this.resource=t,this.options=d,this.resource.url.startsWith("https://github.com/")){const u=this.resource.url.match(/^https:\/\/github\.com\/(?<owner>[^/]+)\/(?<repo>[^/]+)\/blob\/(?<branch>[^/]+)\/(?<path>.+[^/])$/);u!=null&&u.groups&&(this.resource={...this.resource,url:`https://raw.githubusercontent.com/${u.groups.owner}/${u.groups.repo}/${u.groups.branch}/${u.groups.path}`})}}getURL(){return this.resource.url}get caption(){return this.resource.caption??super.caption}}class gt extends ke{constructor(t,p,d){super(),this.reference=t,this._progress=p,this.options=d}async resolve(){var f;const t=(f=this.options)!=null&&f.corsProxy?`${this.options.corsProxy}${this.reference.url}`:this.reference.url,p=await Oe.resolveCommitHash(t,{value:this.reference.ref,type:"infer"}),d=await Oe.listGitFiles(t,p),u=this.reference.path.replace(/^\/+/,""),s=Oe.listDescendantFiles(d,u);let e=await Oe.sparseCheckout(t,p,s);return e=bt(e,g=>g.substring(u.length).replace(/^\/+/,"")),{name:z.dirname(this.reference.path)||this.reference.url.replaceAll(/[^a-zA-Z0-9-.]/g,"-").replaceAll(/-+/g,"-"),files:e}}get name(){return this.reference.path.split("/").pop()}}function bt(r,t){return Object.fromEntries(Object.entries(r).map(([p,d])=>[t(p),d]))}class wt extends ke{constructor(t,p){super(),this.reference=t,this._progress=p}async resolve(){return this.reference}get name(){return this.reference.name}}class vt extends br{constructor(t,p){super(p),this.resource=t}get name(){return ir(this.resource.slug)}getURL(){return`https://downloads.wordpress.org/theme/${Qr(this.resource.slug)}`}}class Pt extends br{constructor(t,p){super(p),this.resource=t}get name(){return ir(this.resource.slug)}getURL(){return`https://downloads.wordpress.org/plugin/${Qr(this.resource.slug)}`}}function Qr(r){return!r||r.endsWith(".zip")?r:r+".latest-stable.zip"}class _t extends Gr{async resolve(){return this.promise||(this.promise=this.resource.resolve()),this.promise}}class kt extends Gr{constructor(t,p){super(t),this.semaphore=p}async resolve(){return this.isAsync?this.semaphore.run(()=>this.resource.resolve()):this.resource.resolve()}}class Ot extends ke{constructor(t,p,d){if(!p)throw new Error(`You are trying to run a Blueprint that refers to a bundled file ("blueprint" resource type), but you did not provide the rest of the bundle. This Blueprint won't work as a standalone JSON file. You'll need to load the entire bundle, e.g. a blueprint.zip file. Alternatively, you may try loading it directly from a URL or a local directory and Playground will try (with your permission) to source the missing files from paths relative to the blueprint file.`);super(),this.resource=t,this.streamBundledFile=p,this._progress=d}async resolve(){var t,p,d;(t=this.progress)==null||t.set(0);try{const u=await this.streamBundledFile(this.resource.path),s=u.filesize;if(!s)return(p=this.progress)==null||p.set(100),u;const e=pr.cloneStreamMonitorProgress(u.stream(),s,f=>{var g;(g=this.progress)==null||g.set(f.detail.loaded/f.detail.total*100)});return new tt.StreamedFile(e,this.name,{filesize:s})}catch(u){throw(d=this.progress)==null||d.set(100),new Error(`Failed to read file from blueprint. This Blueprint refers to a resource of type "bundled" with path "${this.resource.path}" that was not available. Please ensure that the entire bundle, such as a blueprint.zip file, is loaded. If you are trying to load the Blueprint directly from a URL or a local directory, make sure that all the necessary files are accessible and located relative to the blueprint file.
|
|
484
484
|
|
|
485
|
-
Error details: ${c instanceof Error?c.message:String(c)}`,{cause:c})}}get name(){return this.resource.path.split("/").pop()||""}get isAsync(){return!0}}const jt={properties:{landingPage:{type:"string",description:"The URL to navigate to after the blueprint has been run."},description:{type:"string",description:"Optional description. It doesn't do anything but is exposed as a courtesy to developers who may want to document which blueprint file does what.",deprecated:"Use meta.description instead."},meta:{type:"object",properties:{title:{type:"string",description:"A clear and concise name for your Blueprint."},description:{type:"string",description:"A brief explanation of what your Blueprint offers."},author:{type:"string",description:"A GitHub username of the author of this Blueprint."},categories:{type:"array",items:{type:"string"},description:"Relevant categories to help users find your Blueprint in the future Blueprints section on WordPress.org."}},required:["title","author"],additionalProperties:!1,description:"Optional metadata. Used by the Blueprints gallery at https://github.com/WordPress/blueprints"},preferredVersions:{type:"object",properties:{php:{anyOf:[{$ref:"#/definitions/SupportedPHPVersion"},{type:"string",const:"latest"}],description:"The preferred PHP version to use. If not specified, the latest supported version will be used"},wp:{type:"string",description:"The preferred WordPress version to use. If not specified, the latest supported version will be used"}},required:["php","wp"],additionalProperties:!1,description:"The preferred PHP and WordPress versions to use."},features:{type:"object",properties:{intl:{type:"boolean"},networking:{type:"boolean",description:"Should boot with support for network request via wp_safe_remote_get?"}},additionalProperties:!1},extraLibraries:{type:"array",items:{$ref:"#/definitions/ExtraLibrary"},description:"Extra libraries to preload into the Playground instance."},constants:{$ref:"#/definitions/PHPConstants",description:"PHP Constants to define on every request"},plugins:{type:"array",items:{anyOf:[{type:"string"},{$ref:"#/definitions/FileReference"}]},description:"WordPress plugins to install and activate"},siteOptions:{type:"object",additionalProperties:{type:"string"},properties:{blogname:{type:"string",description:"The site title"}},description:"WordPress site options to define"},login:{anyOf:[{type:"boolean"},{type:"object",properties:{username:{type:"string"},password:{type:"string"}},required:["username","password"],additionalProperties:!1}],description:"User to log in as. If true, logs the user in as admin/password."},phpExtensionBundles:{deprecated:"No longer used. Feel free to remove it from your Blueprint."},steps:{type:"array",items:{anyOf:[{$ref:"#/definitions/StepDefinition"},{type:"string"},{not:{}},{type:"boolean",const:!1},{type:"null"}]},description:"The steps to run after every other operation in this Blueprint was executed."},$schema:{type:"string"}}},Tt={enum:["8.4","8.3","8.2","8.1","8.0","7.4","7.3","7.2"]},Et={additionalProperties:{type:["string","boolean","number"]}},Jr=Object.prototype.hasOwnProperty;function J(r,{instancePath:t="",parentData:p,parentDataProperty:u,rootData:c=r}={}){let s=null,e=0;const d=e;let h=!1;const D=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let V;if(r.resource===void 0&&(V="resource")||r.path===void 0&&(V="path")){const re={instancePath:t,schemaPath:"#/definitions/VFSReference/required",keyword:"required",params:{missingProperty:V},message:"must have required property '"+V+"'"};s===null?s=[re]:s.push(re),e++}else{const re=e;for(const l in r)if(!(l==="resource"||l==="path")){const T={instancePath:t,schemaPath:"#/definitions/VFSReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};s===null?s=[T]:s.push(T),e++;break}if(re===e){if(r.resource!==void 0){let l=r.resource;const T=e;if(typeof l!="string"){const $={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[$]:s.push($),e++}if(l!=="vfs"){const $={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/const",keyword:"const",params:{allowedValue:"vfs"},message:"must be equal to constant"};s===null?s=[$]:s.push($),e++}var j=T===e}else var j=!0;if(j)if(r.path!==void 0){const l=e;if(typeof r.path!="string"){const $={instancePath:t+"/path",schemaPath:"#/definitions/VFSReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[$]:s.push($),e++}var j=l===e}else var j=!0}}}else{const V={instancePath:t,schemaPath:"#/definitions/VFSReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[V]:s.push(V),e++}var _=D===e;if(h=h||_,!h){const V=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let T;if(r.resource===void 0&&(T="resource")||r.name===void 0&&(T="name")||r.contents===void 0&&(T="contents")){const $={instancePath:t,schemaPath:"#/definitions/LiteralReference/required",keyword:"required",params:{missingProperty:T},message:"must have required property '"+T+"'"};s===null?s=[$]:s.push($),e++}else{const $=e;for(const v in r)if(!(v==="resource"||v==="name"||v==="contents")){const w={instancePath:t,schemaPath:"#/definitions/LiteralReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:v},message:"must NOT have additional properties"};s===null?s=[w]:s.push(w),e++;break}if($===e){if(r.resource!==void 0){let v=r.resource;const w=e;if(typeof v!="string"){const b={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[b]:s.push(b),e++}if(v!=="literal"){const b={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/const",keyword:"const",params:{allowedValue:"literal"},message:"must be equal to constant"};s===null?s=[b]:s.push(b),e++}var k=w===e}else var k=!0;if(k){if(r.name!==void 0){const v=e;if(typeof r.name!="string"){const b={instancePath:t+"/name",schemaPath:"#/definitions/LiteralReference/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[b]:s.push(b),e++}var k=v===e}else var k=!0;if(k)if(r.contents!==void 0){let v=r.contents;const w=e,b=e;let g=!1;const y=e;if(typeof v!="string"){const L={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[L]:s.push(L),e++}var R=y===e;if(g=g||R,!g){const L=e;if(e===L)if(v&&typeof v=="object"&&!Array.isArray(v)){let F;if(v.BYTES_PER_ELEMENT===void 0&&(F="BYTES_PER_ELEMENT")||v.buffer===void 0&&(F="buffer")||v.byteLength===void 0&&(F="byteLength")||v.byteOffset===void 0&&(F="byteOffset")||v.length===void 0&&(F="length")){const U={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/required",keyword:"required",params:{missingProperty:F},message:"must have required property '"+F+"'"};s===null?s=[U]:s.push(U),e++}else{const U=e;for(const C in v)if(!(C==="BYTES_PER_ELEMENT"||C==="buffer"||C==="byteLength"||C==="byteOffset"||C==="length")){let I=v[C];const ee=e;if(!(typeof I=="number"&&isFinite(I))){const A={instancePath:t+"/contents/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[A]:s.push(A),e++}var m=ee===e;if(!m)break}if(U===e){if(v.BYTES_PER_ELEMENT!==void 0){let C=v.BYTES_PER_ELEMENT;const I=e;if(!(typeof C=="number"&&isFinite(C))){const ee={instancePath:t+"/contents/BYTES_PER_ELEMENT",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ee]:s.push(ee),e++}var W=I===e}else var W=!0;if(W){if(v.buffer!==void 0){let C=v.buffer;const I=e;if(e===I)if(C&&typeof C=="object"&&!Array.isArray(C)){let A;if(C.byteLength===void 0&&(A="byteLength")){const Y={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:A},message:"must have required property '"+A+"'"};s===null?s=[Y]:s.push(Y),e++}else{const Y=e;for(const B in C)if(B!=="byteLength"){const H={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:B},message:"must NOT have additional properties"};s===null?s=[H]:s.push(H),e++;break}if(Y===e&&C.byteLength!==void 0){let B=C.byteLength;if(!(typeof B=="number"&&isFinite(B))){const H={instancePath:t+"/contents/buffer/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[H]:s.push(H),e++}}}}else{const A={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[A]:s.push(A),e++}var W=I===e}else var W=!0;if(W){if(v.byteLength!==void 0){let C=v.byteLength;const I=e;if(!(typeof C=="number"&&isFinite(C))){const A={instancePath:t+"/contents/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[A]:s.push(A),e++}var W=I===e}else var W=!0;if(W){if(v.byteOffset!==void 0){let C=v.byteOffset;const I=e;if(!(typeof C=="number"&&isFinite(C))){const A={instancePath:t+"/contents/byteOffset",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[A]:s.push(A),e++}var W=I===e}else var W=!0;if(W)if(v.length!==void 0){let C=v.length;const I=e;if(!(typeof C=="number"&&isFinite(C))){const A={instancePath:t+"/contents/length",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[A]:s.push(A),e++}var W=I===e}else var W=!0}}}}}}else{const F={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[F]:s.push(F),e++}var R=L===e;g=g||R}if(g)e=b,s!==null&&(b?s.length=b:s=null);else{const L={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};s===null?s=[L]:s.push(L),e++}var k=w===e}else var k=!0}}}}else{const T={instancePath:t,schemaPath:"#/definitions/LiteralReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[T]:s.push(T),e++}var _=V===e;if(h=h||_,!h){const T=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let w;if(r.resource===void 0&&(w="resource")||r.slug===void 0&&(w="slug")){const b={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/required",keyword:"required",params:{missingProperty:w},message:"must have required property '"+w+"'"};s===null?s=[b]:s.push(b),e++}else{const b=e;for(const g in r)if(!(g==="resource"||g==="slug")){const y={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:g},message:"must NOT have additional properties"};s===null?s=[y]:s.push(y),e++;break}if(b===e){if(r.resource!==void 0){let g=r.resource;const y=e;if(typeof g!="string"){const E={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[E]:s.push(E),e++}if(g!=="wordpress.org/themes"){const E={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/themes"},message:"must be equal to constant"};s===null?s=[E]:s.push(E),e++}var M=y===e}else var M=!0;if(M)if(r.slug!==void 0){const g=e;if(typeof r.slug!="string"){const E={instancePath:t+"/slug",schemaPath:"#/definitions/CoreThemeReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[E]:s.push(E),e++}var M=g===e}else var M=!0}}}else{const w={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[w]:s.push(w),e++}var _=T===e;if(h=h||_,!h){const w=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let y;if(r.resource===void 0&&(y="resource")||r.slug===void 0&&(y="slug")){const E={instancePath:t,schemaPath:"#/definitions/CorePluginReference/required",keyword:"required",params:{missingProperty:y},message:"must have required property '"+y+"'"};s===null?s=[E]:s.push(E),e++}else{const E=e;for(const L in r)if(!(L==="resource"||L==="slug")){const x={instancePath:t,schemaPath:"#/definitions/CorePluginReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:L},message:"must NOT have additional properties"};s===null?s=[x]:s.push(x),e++;break}if(E===e){if(r.resource!==void 0){let L=r.resource;const x=e;if(typeof L!="string"){const F={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[F]:s.push(F),e++}if(L!=="wordpress.org/plugins"){const F={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/plugins"},message:"must be equal to constant"};s===null?s=[F]:s.push(F),e++}var G=x===e}else var G=!0;if(G)if(r.slug!==void 0){const L=e;if(typeof r.slug!="string"){const F={instancePath:t+"/slug",schemaPath:"#/definitions/CorePluginReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[F]:s.push(F),e++}var G=L===e}else var G=!0}}}else{const y={instancePath:t,schemaPath:"#/definitions/CorePluginReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[y]:s.push(y),e++}var _=w===e;if(h=h||_,!h){const y=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let x;if(r.resource===void 0&&(x="resource")||r.url===void 0&&(x="url")){const F={instancePath:t,schemaPath:"#/definitions/UrlReference/required",keyword:"required",params:{missingProperty:x},message:"must have required property '"+x+"'"};s===null?s=[F]:s.push(F),e++}else{const F=e;for(const U in r)if(!(U==="resource"||U==="url"||U==="caption")){const C={instancePath:t,schemaPath:"#/definitions/UrlReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:U},message:"must NOT have additional properties"};s===null?s=[C]:s.push(C),e++;break}if(F===e){if(r.resource!==void 0){let U=r.resource;const C=e;if(typeof U!="string"){const I={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[I]:s.push(I),e++}if(U!=="url"){const I={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant"};s===null?s=[I]:s.push(I),e++}var P=C===e}else var P=!0;if(P){if(r.url!==void 0){const U=e;if(typeof r.url!="string"){const I={instancePath:t+"/url",schemaPath:"#/definitions/UrlReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[I]:s.push(I),e++}var P=U===e}else var P=!0;if(P)if(r.caption!==void 0){const U=e;if(typeof r.caption!="string"){const I={instancePath:t+"/caption",schemaPath:"#/definitions/UrlReference/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[I]:s.push(I),e++}var P=U===e}else var P=!0}}}}else{const x={instancePath:t,schemaPath:"#/definitions/UrlReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[x]:s.push(x),e++}var _=y===e;if(h=h||_,!h){const x=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let C;if(r.resource===void 0&&(C="resource")||r.path===void 0&&(C="path")){const I={instancePath:t,schemaPath:"#/definitions/BundledReference/required",keyword:"required",params:{missingProperty:C},message:"must have required property '"+C+"'"};s===null?s=[I]:s.push(I),e++}else{const I=e;for(const ee in r)if(!(ee==="resource"||ee==="path")){const A={instancePath:t,schemaPath:"#/definitions/BundledReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ee},message:"must NOT have additional properties"};s===null?s=[A]:s.push(A),e++;break}if(I===e){if(r.resource!==void 0){let ee=r.resource;const A=e;if(typeof ee!="string"){const Y={instancePath:t+"/resource",schemaPath:"#/definitions/BundledReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Y]:s.push(Y),e++}if(ee!=="bundled"){const Y={instancePath:t+"/resource",schemaPath:"#/definitions/BundledReference/properties/resource/const",keyword:"const",params:{allowedValue:"bundled"},message:"must be equal to constant"};s===null?s=[Y]:s.push(Y),e++}var K=A===e}else var K=!0;if(K)if(r.path!==void 0){const ee=e;if(typeof r.path!="string"){const Y={instancePath:t+"/path",schemaPath:"#/definitions/BundledReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Y]:s.push(Y),e++}var K=ee===e}else var K=!0}}}else{const C={instancePath:t,schemaPath:"#/definitions/BundledReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[C]:s.push(C),e++}var _=x===e;h=h||_}}}}}if(h)e=d,s!==null&&(d?s.length=d:s=null);else{const V={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[V]:s.push(V),e++,J.errors=s,!1}return J.errors=s,e===0}const Ke={oneOf:[{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"activatePlugin"},pluginPath:{type:"string",description:"Path to the plugin directory as absolute path (/wordpress/wp-content/plugins/plugin-name); or the plugin entry file relative to the plugins directory (plugin-name/plugin-name.php)."},pluginName:{type:"string",description:"Optional. Plugin name to display in the progress bar."}},required:["pluginPath","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"activateTheme"},themeFolderName:{type:"string",description:"The name of the theme folder inside wp-content/themes/"}},required:["step","themeFolderName"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"cp"},fromPath:{type:"string",description:"Source path"},toPath:{type:"string",description:"Target path"}},required:["fromPath","step","toPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"defineWpConfigConsts"},consts:{type:"object",additionalProperties:{},description:"The constants to define"},method:{type:"string",enum:["rewrite-wp-config","define-before-run"],description:`The method of defining the constants in wp-config.php. Possible values are:
|
|
485
|
+
Error details: ${u instanceof Error?u.message:String(u)}`,{cause:u})}}get name(){return this.resource.path.split("/").pop()||""}get isAsync(){return!0}}const jt={properties:{landingPage:{type:"string",description:"The URL to navigate to after the blueprint has been run."},description:{type:"string",description:"Optional description. It doesn't do anything but is exposed as a courtesy to developers who may want to document which blueprint file does what.",deprecated:"Use meta.description instead."},meta:{type:"object",properties:{title:{type:"string",description:"A clear and concise name for your Blueprint."},description:{type:"string",description:"A brief explanation of what your Blueprint offers."},author:{type:"string",description:"A GitHub username of the author of this Blueprint."},categories:{type:"array",items:{type:"string"},description:"Relevant categories to help users find your Blueprint in the future Blueprints section on WordPress.org."}},required:["title","author"],additionalProperties:!1,description:"Optional metadata. Used by the Blueprints gallery at https://github.com/WordPress/blueprints"},preferredVersions:{type:"object",properties:{php:{anyOf:[{$ref:"#/definitions/SupportedPHPVersion"},{type:"string",const:"latest"}],description:"The preferred PHP version to use. If not specified, the latest supported version will be used"},wp:{type:"string",description:"The preferred WordPress version to use. If not specified, the latest supported version will be used"}},required:["php","wp"],additionalProperties:!1,description:"The preferred PHP and WordPress versions to use."},features:{type:"object",properties:{intl:{type:"boolean"},networking:{type:"boolean",description:"Should boot with support for network request via wp_safe_remote_get?"}},additionalProperties:!1},extraLibraries:{type:"array",items:{$ref:"#/definitions/ExtraLibrary"},description:"Extra libraries to preload into the Playground instance."},constants:{$ref:"#/definitions/PHPConstants",description:"PHP Constants to define on every request"},plugins:{type:"array",items:{anyOf:[{type:"string"},{$ref:"#/definitions/FileReference"}]},description:"WordPress plugins to install and activate"},siteOptions:{type:"object",additionalProperties:{type:"string"},properties:{blogname:{type:"string",description:"The site title"}},description:"WordPress site options to define"},login:{anyOf:[{type:"boolean"},{type:"object",properties:{username:{type:"string"},password:{type:"string"}},required:["username","password"],additionalProperties:!1}],description:"User to log in as. If true, logs the user in as admin/password."},phpExtensionBundles:{deprecated:"No longer used. Feel free to remove it from your Blueprint."},steps:{type:"array",items:{anyOf:[{$ref:"#/definitions/StepDefinition"},{type:"string"},{not:{}},{type:"boolean",const:!1},{type:"null"}]},description:"The steps to run after every other operation in this Blueprint was executed."},$schema:{type:"string"}}},Tt={enum:["8.4","8.3","8.2","8.1","8.0","7.4","7.3","7.2"]},Et={additionalProperties:{type:["string","boolean","number"]}},Jr=Object.prototype.hasOwnProperty;function J(r,{instancePath:t="",parentData:p,parentDataProperty:d,rootData:u=r}={}){let s=null,e=0;const f=e;let g=!1;const I=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let V;if(r.resource===void 0&&(V="resource")||r.path===void 0&&(V="path")){const re={instancePath:t,schemaPath:"#/definitions/VFSReference/required",keyword:"required",params:{missingProperty:V},message:"must have required property '"+V+"'"};s===null?s=[re]:s.push(re),e++}else{const re=e;for(const c in r)if(!(c==="resource"||c==="path")){const b={instancePath:t,schemaPath:"#/definitions/VFSReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:c},message:"must NOT have additional properties"};s===null?s=[b]:s.push(b),e++;break}if(re===e){if(r.resource!==void 0){let c=r.resource;const b=e;if(typeof c!="string"){const E={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[E]:s.push(E),e++}if(c!=="vfs"){const E={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/const",keyword:"const",params:{allowedValue:"vfs"},message:"must be equal to constant"};s===null?s=[E]:s.push(E),e++}var T=b===e}else var T=!0;if(T)if(r.path!==void 0){const c=e;if(typeof r.path!="string"){const E={instancePath:t+"/path",schemaPath:"#/definitions/VFSReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[E]:s.push(E),e++}var T=c===e}else var T=!0}}}else{const V={instancePath:t,schemaPath:"#/definitions/VFSReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[V]:s.push(V),e++}var k=I===e;if(g=g||k,!g){const V=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let b;if(r.resource===void 0&&(b="resource")||r.name===void 0&&(b="name")||r.contents===void 0&&(b="contents")){const E={instancePath:t,schemaPath:"#/definitions/LiteralReference/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"};s===null?s=[E]:s.push(E),e++}else{const E=e;for(const v in r)if(!(v==="resource"||v==="name"||v==="contents")){const P={instancePath:t,schemaPath:"#/definitions/LiteralReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:v},message:"must NOT have additional properties"};s===null?s=[P]:s.push(P),e++;break}if(E===e){if(r.resource!==void 0){let v=r.resource;const P=e;if(typeof v!="string"){const y={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[y]:s.push(y),e++}if(v!=="literal"){const y={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/const",keyword:"const",params:{allowedValue:"literal"},message:"must be equal to constant"};s===null?s=[y]:s.push(y),e++}var O=P===e}else var O=!0;if(O){if(r.name!==void 0){const v=e;if(typeof r.name!="string"){const y={instancePath:t+"/name",schemaPath:"#/definitions/LiteralReference/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[y]:s.push(y),e++}var O=v===e}else var O=!0;if(O)if(r.contents!==void 0){let v=r.contents;const P=e,y=e;let w=!1;const h=e;if(typeof v!="string"){const L={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[L]:s.push(L),e++}var R=h===e;if(w=w||R,!w){const L=e;if(e===L)if(v&&typeof v=="object"&&!Array.isArray(v)){let F;if(v.BYTES_PER_ELEMENT===void 0&&(F="BYTES_PER_ELEMENT")||v.buffer===void 0&&(F="buffer")||v.byteLength===void 0&&(F="byteLength")||v.byteOffset===void 0&&(F="byteOffset")||v.length===void 0&&(F="length")){const U={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/required",keyword:"required",params:{missingProperty:F},message:"must have required property '"+F+"'"};s===null?s=[U]:s.push(U),e++}else{const U=e;for(const D in v)if(!(D==="BYTES_PER_ELEMENT"||D==="buffer"||D==="byteLength"||D==="byteOffset"||D==="length")){let C=v[D];const ee=e;if(!(typeof C=="number"&&isFinite(C))){const A={instancePath:t+"/contents/"+D.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[A]:s.push(A),e++}var m=ee===e;if(!m)break}if(U===e){if(v.BYTES_PER_ELEMENT!==void 0){let D=v.BYTES_PER_ELEMENT;const C=e;if(!(typeof D=="number"&&isFinite(D))){const ee={instancePath:t+"/contents/BYTES_PER_ELEMENT",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ee]:s.push(ee),e++}var W=C===e}else var W=!0;if(W){if(v.buffer!==void 0){let D=v.buffer;const C=e;if(e===C)if(D&&typeof D=="object"&&!Array.isArray(D)){let A;if(D.byteLength===void 0&&(A="byteLength")){const Y={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:A},message:"must have required property '"+A+"'"};s===null?s=[Y]:s.push(Y),e++}else{const Y=e;for(const B in D)if(B!=="byteLength"){const H={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:B},message:"must NOT have additional properties"};s===null?s=[H]:s.push(H),e++;break}if(Y===e&&D.byteLength!==void 0){let B=D.byteLength;if(!(typeof B=="number"&&isFinite(B))){const H={instancePath:t+"/contents/buffer/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[H]:s.push(H),e++}}}}else{const A={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[A]:s.push(A),e++}var W=C===e}else var W=!0;if(W){if(v.byteLength!==void 0){let D=v.byteLength;const C=e;if(!(typeof D=="number"&&isFinite(D))){const A={instancePath:t+"/contents/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[A]:s.push(A),e++}var W=C===e}else var W=!0;if(W){if(v.byteOffset!==void 0){let D=v.byteOffset;const C=e;if(!(typeof D=="number"&&isFinite(D))){const A={instancePath:t+"/contents/byteOffset",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[A]:s.push(A),e++}var W=C===e}else var W=!0;if(W)if(v.length!==void 0){let D=v.length;const C=e;if(!(typeof D=="number"&&isFinite(D))){const A={instancePath:t+"/contents/length",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[A]:s.push(A),e++}var W=C===e}else var W=!0}}}}}}else{const F={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[F]:s.push(F),e++}var R=L===e;w=w||R}if(w)e=y,s!==null&&(y?s.length=y:s=null);else{const L={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};s===null?s=[L]:s.push(L),e++}var O=P===e}else var O=!0}}}}else{const b={instancePath:t,schemaPath:"#/definitions/LiteralReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[b]:s.push(b),e++}var k=V===e;if(g=g||k,!g){const b=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let P;if(r.resource===void 0&&(P="resource")||r.slug===void 0&&(P="slug")){const y={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/required",keyword:"required",params:{missingProperty:P},message:"must have required property '"+P+"'"};s===null?s=[y]:s.push(y),e++}else{const y=e;for(const w in r)if(!(w==="resource"||w==="slug")){const h={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:w},message:"must NOT have additional properties"};s===null?s=[h]:s.push(h),e++;break}if(y===e){if(r.resource!==void 0){let w=r.resource;const h=e;if(typeof w!="string"){const q={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[q]:s.push(q),e++}if(w!=="wordpress.org/themes"){const q={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/themes"},message:"must be equal to constant"};s===null?s=[q]:s.push(q),e++}var M=h===e}else var M=!0;if(M)if(r.slug!==void 0){const w=e;if(typeof r.slug!="string"){const q={instancePath:t+"/slug",schemaPath:"#/definitions/CoreThemeReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[q]:s.push(q),e++}var M=w===e}else var M=!0}}}else{const P={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[P]:s.push(P),e++}var k=b===e;if(g=g||k,!g){const P=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let h;if(r.resource===void 0&&(h="resource")||r.slug===void 0&&(h="slug")){const q={instancePath:t,schemaPath:"#/definitions/CorePluginReference/required",keyword:"required",params:{missingProperty:h},message:"must have required property '"+h+"'"};s===null?s=[q]:s.push(q),e++}else{const q=e;for(const L in r)if(!(L==="resource"||L==="slug")){const x={instancePath:t,schemaPath:"#/definitions/CorePluginReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:L},message:"must NOT have additional properties"};s===null?s=[x]:s.push(x),e++;break}if(q===e){if(r.resource!==void 0){let L=r.resource;const x=e;if(typeof L!="string"){const F={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[F]:s.push(F),e++}if(L!=="wordpress.org/plugins"){const F={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/plugins"},message:"must be equal to constant"};s===null?s=[F]:s.push(F),e++}var G=x===e}else var G=!0;if(G)if(r.slug!==void 0){const L=e;if(typeof r.slug!="string"){const F={instancePath:t+"/slug",schemaPath:"#/definitions/CorePluginReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[F]:s.push(F),e++}var G=L===e}else var G=!0}}}else{const h={instancePath:t,schemaPath:"#/definitions/CorePluginReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[h]:s.push(h),e++}var k=P===e;if(g=g||k,!g){const h=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let x;if(r.resource===void 0&&(x="resource")||r.url===void 0&&(x="url")){const F={instancePath:t,schemaPath:"#/definitions/UrlReference/required",keyword:"required",params:{missingProperty:x},message:"must have required property '"+x+"'"};s===null?s=[F]:s.push(F),e++}else{const F=e;for(const U in r)if(!(U==="resource"||U==="url"||U==="caption")){const D={instancePath:t,schemaPath:"#/definitions/UrlReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:U},message:"must NOT have additional properties"};s===null?s=[D]:s.push(D),e++;break}if(F===e){if(r.resource!==void 0){let U=r.resource;const D=e;if(typeof U!="string"){const C={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[C]:s.push(C),e++}if(U!=="url"){const C={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant"};s===null?s=[C]:s.push(C),e++}var _=D===e}else var _=!0;if(_){if(r.url!==void 0){const U=e;if(typeof r.url!="string"){const C={instancePath:t+"/url",schemaPath:"#/definitions/UrlReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[C]:s.push(C),e++}var _=U===e}else var _=!0;if(_)if(r.caption!==void 0){const U=e;if(typeof r.caption!="string"){const C={instancePath:t+"/caption",schemaPath:"#/definitions/UrlReference/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[C]:s.push(C),e++}var _=U===e}else var _=!0}}}}else{const x={instancePath:t,schemaPath:"#/definitions/UrlReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[x]:s.push(x),e++}var k=h===e;if(g=g||k,!g){const x=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let D;if(r.resource===void 0&&(D="resource")||r.path===void 0&&(D="path")){const C={instancePath:t,schemaPath:"#/definitions/BundledReference/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"};s===null?s=[C]:s.push(C),e++}else{const C=e;for(const ee in r)if(!(ee==="resource"||ee==="path")){const A={instancePath:t,schemaPath:"#/definitions/BundledReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ee},message:"must NOT have additional properties"};s===null?s=[A]:s.push(A),e++;break}if(C===e){if(r.resource!==void 0){let ee=r.resource;const A=e;if(typeof ee!="string"){const Y={instancePath:t+"/resource",schemaPath:"#/definitions/BundledReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Y]:s.push(Y),e++}if(ee!=="bundled"){const Y={instancePath:t+"/resource",schemaPath:"#/definitions/BundledReference/properties/resource/const",keyword:"const",params:{allowedValue:"bundled"},message:"must be equal to constant"};s===null?s=[Y]:s.push(Y),e++}var K=A===e}else var K=!0;if(K)if(r.path!==void 0){const ee=e;if(typeof r.path!="string"){const Y={instancePath:t+"/path",schemaPath:"#/definitions/BundledReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Y]:s.push(Y),e++}var K=ee===e}else var K=!0}}}else{const D={instancePath:t,schemaPath:"#/definitions/BundledReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[D]:s.push(D),e++}var k=x===e;g=g||k}}}}}if(g)e=f,s!==null&&(f?s.length=f:s=null);else{const V={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[V]:s.push(V),e++,J.errors=s,!1}return J.errors=s,e===0}const Ke={oneOf:[{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"activatePlugin"},pluginPath:{type:"string",description:"Path to the plugin directory as absolute path (/wordpress/wp-content/plugins/plugin-name); or the plugin entry file relative to the plugins directory (plugin-name/plugin-name.php)."},pluginName:{type:"string",description:"Optional. Plugin name to display in the progress bar."}},required:["pluginPath","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"activateTheme"},themeFolderName:{type:"string",description:"The name of the theme folder inside wp-content/themes/"}},required:["step","themeFolderName"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"cp"},fromPath:{type:"string",description:"Source path"},toPath:{type:"string",description:"Target path"}},required:["fromPath","step","toPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"defineWpConfigConsts"},consts:{type:"object",additionalProperties:{},description:"The constants to define"},method:{type:"string",enum:["rewrite-wp-config","define-before-run"],description:`The method of defining the constants in wp-config.php. Possible values are:
|
|
486
486
|
|
|
487
487
|
- rewrite-wp-config: Default. Rewrites the wp-config.php file to explicitly call define() with the requested name and value. This method alters the file on the disk, but it doesn't conflict with existing define() calls in wp-config.php.
|
|
488
488
|
|
|
489
489
|
- define-before-run: Defines the constant before running the requested script. It doesn't alter any files on the disk, but constants defined this way may conflict with existing define() calls in wp-config.php.`},virtualize:{type:"boolean",deprecated:`This option is noop and will be removed in a future version.
|
|
490
490
|
This option is only kept in here to avoid breaking Blueprint schema validation
|
|
491
491
|
for existing apps using this option.`}},required:["consts","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"defineSiteUrl"},siteUrl:{type:"string",description:"The URL"}},required:["siteUrl","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"enableMultisite"},wpCliPath:{type:"string",description:"wp-cli.phar path"}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"importWxr"},file:{$ref:"#/definitions/FileReference",description:"The file to import"},importer:{type:"string",enum:["data-liberation","default"],description:"The importer to use. Possible values:\n\n- `default`: The importer from https://github.com/humanmade/WordPress-Importer\n- `data-liberation`: The experimental Data Liberation WXR importer developed at https://github.com/WordPress/wordpress-playground/issues/1894\n\nThis option is deprecated. The syntax will not be removed, but once the Data Liberation importer matures, it will become the only supported importer and the `importer` option will be ignored.",deprecated:!0}},required:["file","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"importThemeStarterContent",description:"The step identifier."},themeSlug:{type:"string",description:"The name of the theme to import content from."}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"importWordPressFiles"},wordPressFilesZip:{$ref:"#/definitions/FileReference",description:"The zip file containing the top-level WordPress files and directories."},pathInZip:{type:"string",description:"The path inside the zip file where the WordPress files are."}},required:["step","wordPressFilesZip"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},ifAlreadyInstalled:{type:"string",enum:["overwrite","skip","error"],description:"What to do if the asset already exists."},step:{type:"string",const:"installPlugin",description:"The step identifier."},pluginData:{anyOf:[{$ref:"#/definitions/FileReference"},{$ref:"#/definitions/DirectoryReference"}],description:"The plugin files to install. It can be a plugin zip file, a single PHP file, or a directory containing all the plugin files at its root."},pluginZipFile:{$ref:"#/definitions/FileReference",deprecated:". Use 'pluginData' instead."},options:{$ref:"#/definitions/InstallPluginOptions",description:"Optional installation options."}},required:["pluginData","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},ifAlreadyInstalled:{type:"string",enum:["overwrite","skip","error"],description:"What to do if the asset already exists."},step:{type:"string",const:"installTheme",description:"The step identifier."},themeData:{anyOf:[{$ref:"#/definitions/FileReference"},{$ref:"#/definitions/DirectoryReference"}],description:"The theme files to install. It can be either a theme zip file, or a directory containing all the theme files at its root."},themeZipFile:{$ref:"#/definitions/FileReference",deprecated:". Use 'themeData' instead."},options:{$ref:"#/definitions/InstallThemeOptions",description:"Optional installation options."}},required:["step","themeData"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"login"},username:{type:"string",description:"The user to log in as. Defaults to 'admin'."},password:{type:"string",deprecated:`The password field is deprecated and will be removed in a future version.
|
|
492
|
-
Only the username field is required for user authentication.`}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"mkdir"},path:{type:"string",description:"The path of the directory you want to create"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"mv"},fromPath:{type:"string",description:"Source path"},toPath:{type:"string",description:"Target path"}},required:["fromPath","step","toPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"resetData"}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"request"},request:{$ref:"#/definitions/PHPRequest",description:"Request details (See /wordpress-playground/api/universal/interface/PHPRequest)"}},required:["request","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"rm"},path:{type:"string",description:"The path to remove"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"rmdir"},path:{type:"string",description:"The path to remove"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runPHP",description:"The step identifier."},code:{type:"string",description:"The PHP code to run."}},required:["code","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runPHPWithOptions"},options:{$ref:"#/definitions/PHPRunOptions",description:"Run options (See /wordpress-playground/api/universal/interface/PHPRunOptions/))"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runWpInstallationWizard"},options:{$ref:"#/definitions/WordPressInstallationOptions"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runSql",description:"The step identifier."},sql:{$ref:"#/definitions/FileReference",description:"The SQL to run. Each non-empty line must contain a valid SQL query."}},required:["sql","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteOptions",description:'The name of the step. Must be "setSiteOptions".'},options:{type:"object",additionalProperties:{},description:"The options to set on the site."}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"unzip"},zipFile:{$ref:"#/definitions/FileReference",description:"The zip file to extract"},zipPath:{type:"string",description:"The path of the zip file to extract",deprecated:"Use zipFile instead."},extractToPath:{type:"string",description:"The path to extract the zip file to"}},required:["extractToPath","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"updateUserMeta"},meta:{type:"object",additionalProperties:{},description:'An object of user meta values to set, e.g. { "first_name": "John" }'},userId:{type:"number",description:"User ID"}},required:["meta","step","userId"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFile"},path:{type:"string",description:"The path of the file to write to"},data:{anyOf:[{$ref:"#/definitions/FileReference"},{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"The data to write"}},required:["data","path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFiles"},writeToPath:{type:"string",description:"The path of the file to write to"},filesTree:{$ref:"#/definitions/DirectoryReference",description:"The 'filesTree' defines the directory structure, supporting 'literal:directory' or 'git:directory' types. The 'name' represents the root directory, while 'files' is an object where keys are file paths, and values contain either file content as a string or nested objects for subdirectories."}},required:["filesTree","step","writeToPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"wp-cli",description:"The step identifier."},command:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}],description:"The WP CLI command to run."},wpCliPath:{type:"string",description:"wp-cli.phar path"}},required:["command","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteLanguage"},language:{type:"string",description:"The language to set, e.g. 'en_US'"}},required:["language","step"]}]},qt={additionalProperties:{anyOf:[{$ref:"#/definitions/FileTree"},{type:["object","string"]}]}},nr={validate:Le};function Le(r,{instancePath:t="",parentData:p,parentDataProperty:u,rootData:c=r}={}){let s=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r))for(const D in r){let S=r[D];const j=e,_=e;let k=!1;const R=e;nr.validate(S,{instancePath:t+"/"+D.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:r,parentDataProperty:D,rootData:c})||(s=s===null?nr.validate.errors:s.concat(nr.validate.errors),e=s.length);var d=R===e;if(k=k||d,!k){const m=e;if(!(S&&typeof S=="object"&&!Array.isArray(S))&&typeof S!="string"){const M={instancePath:t+"/"+D.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf/1/type",keyword:"type",params:{type:qt.additionalProperties.anyOf[1].type},message:"must be object,string"};s===null?s=[M]:s.push(M),e++}var d=m===e;k=k||d}if(k)e=_,s!==null&&(_?s.length=_:s=null);else{const m={instancePath:t+"/"+D.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[m]:s.push(m),e++,Le.errors=s,!1}var h=j===e;if(!h)break}else return Le.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Le.errors=s,e===0}function _e(r,{instancePath:t="",parentData:p,parentDataProperty:u,rootData:c=r}={}){let s=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let h;if(r.files===void 0&&(h="files")||r.name===void 0&&(h="name")||r.resource===void 0&&(h="resource"))return _e.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:h},message:"must have required property '"+h+"'"}],!1;{const D=e;for(const S in r)if(!(S==="resource"||S==="files"||S==="name"))return _e.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:S},message:"must NOT have additional properties"}],!1;if(D===e){if(r.resource!==void 0){let S=r.resource;const j=e;if(typeof S!="string")return _e.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(S!=="literal:directory")return _e.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"literal:directory"},message:"must be equal to constant"}],!1;var d=j===e}else var d=!0;if(d){if(r.files!==void 0){const S=e;Le(r.files,{instancePath:t+"/files",parentData:r,parentDataProperty:"files",rootData:c})||(s=s===null?Le.errors:s.concat(Le.errors),e=s.length);var d=S===e}else var d=!0;if(d)if(r.name!==void 0){const S=e;if(typeof r.name!="string")return _e.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=S===e}else var d=!0}}}}else return _e.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return _e.errors=s,e===0}function ye(r,{instancePath:t="",parentData:p,parentDataProperty:u,rootData:c=r}={}){let s=null,e=0;const d=e;let h=!1;const D=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let k;if(r.resource===void 0&&(k="resource")||r.url===void 0&&(k="url")||r.ref===void 0&&(k="ref")||r.path===void 0&&(k="path")){const R={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/required",keyword:"required",params:{missingProperty:k},message:"must have required property '"+k+"'"};s===null?s=[R]:s.push(R),e++}else{const R=e;for(const m in r)if(!(m==="resource"||m==="url"||m==="ref"||m==="path")){const W={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};s===null?s=[W]:s.push(W),e++;break}if(R===e){if(r.resource!==void 0){let m=r.resource;const W=e;if(typeof m!="string"){const M={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[M]:s.push(M),e++}if(m!=="git:directory"){const M={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/const",keyword:"const",params:{allowedValue:"git:directory"},message:"must be equal to constant"};s===null?s=[M]:s.push(M),e++}var j=W===e}else var j=!0;if(j){if(r.url!==void 0){const m=e;if(typeof r.url!="string"){const M={instancePath:t+"/url",schemaPath:"#/definitions/GitDirectoryReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[M]:s.push(M),e++}var j=m===e}else var j=!0;if(j){if(r.ref!==void 0){const m=e;if(typeof r.ref!="string"){const M={instancePath:t+"/ref",schemaPath:"#/definitions/GitDirectoryReference/properties/ref/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[M]:s.push(M),e++}var j=m===e}else var j=!0;if(j)if(r.path!==void 0){const m=e;if(typeof r.path!="string"){const M={instancePath:t+"/path",schemaPath:"#/definitions/GitDirectoryReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[M]:s.push(M),e++}var j=m===e}else var j=!0}}}}}else{const k={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[k]:s.push(k),e++}var _=D===e;if(h=h||_,!h){const k=e;_e(r,{instancePath:t,parentData:p,parentDataProperty:u,rootData:c})||(s=s===null?_e.errors:s.concat(_e.errors),e=s.length);var _=k===e;h=h||_}if(h)e=d,s!==null&&(d?s.length=d:s=null);else{const k={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[k]:s.push(k),e++,ye.errors=s,!1}return ye.errors=s,e===0}const Xr={enum:["GET","POST","HEAD","OPTIONS","PATCH","PUT","DELETE"]};function ce(r,{instancePath:t="",parentData:p,parentDataProperty:u,rootData:c=r}={}){let s=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let M;if(r.url===void 0&&(M="url"))return ce.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:M},message:"must have required property '"+M+"'"}],!1;{const G=e;for(const P in r)if(!(P==="method"||P==="url"||P==="headers"||P==="body"))return ce.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:P},message:"must NOT have additional properties"}],!1;if(G===e){if(r.method!==void 0){let P=r.method;const K=e;if(typeof P!="string")return ce.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(P==="GET"||P==="POST"||P==="HEAD"||P==="OPTIONS"||P==="PATCH"||P==="PUT"||P==="DELETE"))return ce.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Xr.enum},message:"must be equal to one of the allowed values"}],!1;var d=K===e}else var d=!0;if(d){if(r.url!==void 0){const P=e;if(typeof r.url!="string")return ce.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=P===e}else var d=!0;if(d){if(r.headers!==void 0){let P=r.headers;const K=e;if(e===e)if(P&&typeof P=="object"&&!Array.isArray(P))for(const l in P){const T=e;if(typeof P[l]!="string")return ce.errors=[{instancePath:t+"/headers/"+l.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=T===e;if(!h)break}else return ce.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=K===e}else var d=!0;if(d)if(r.body!==void 0){let P=r.body;const K=e,V=e;let re=!1;const l=e;if(typeof P!="string"){const $={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[$]:s.push($),e++}var D=l===e;if(re=re||D,!re){const $=e;if(e===$)if(P&&typeof P=="object"&&!Array.isArray(P)){let w;if(P.BYTES_PER_ELEMENT===void 0&&(w="BYTES_PER_ELEMENT")||P.buffer===void 0&&(w="buffer")||P.byteLength===void 0&&(w="byteLength")||P.byteOffset===void 0&&(w="byteOffset")||P.length===void 0&&(w="length")){const b={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:w},message:"must have required property '"+w+"'"};s===null?s=[b]:s.push(b),e++}else{const b=e;for(const g in P)if(!(g==="BYTES_PER_ELEMENT"||g==="buffer"||g==="byteLength"||g==="byteOffset"||g==="length")){let y=P[g];const E=e;if(!(typeof y=="number"&&isFinite(y))){const L={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[L]:s.push(L),e++}var S=E===e;if(!S)break}if(b===e){if(P.BYTES_PER_ELEMENT!==void 0){let g=P.BYTES_PER_ELEMENT;const y=e;if(!(typeof g=="number"&&isFinite(g))){const E={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[E]:s.push(E),e++}var j=y===e}else var j=!0;if(j){if(P.buffer!==void 0){let g=P.buffer;const y=e;if(e===y)if(g&&typeof g=="object"&&!Array.isArray(g)){let L;if(g.byteLength===void 0&&(L="byteLength")){const x={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:L},message:"must have required property '"+L+"'"};s===null?s=[x]:s.push(x),e++}else{const x=e;for(const F in g)if(F!=="byteLength"){const U={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:F},message:"must NOT have additional properties"};s===null?s=[U]:s.push(U),e++;break}if(x===e&&g.byteLength!==void 0){let F=g.byteLength;if(!(typeof F=="number"&&isFinite(F))){const U={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[U]:s.push(U),e++}}}}else{const L={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[L]:s.push(L),e++}var j=y===e}else var j=!0;if(j){if(P.byteLength!==void 0){let g=P.byteLength;const y=e;if(!(typeof g=="number"&&isFinite(g))){const L={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[L]:s.push(L),e++}var j=y===e}else var j=!0;if(j){if(P.byteOffset!==void 0){let g=P.byteOffset;const y=e;if(!(typeof g=="number"&&isFinite(g))){const L={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[L]:s.push(L),e++}var j=y===e}else var j=!0;if(j)if(P.length!==void 0){let g=P.length;const y=e;if(!(typeof g=="number"&&isFinite(g))){const L={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[L]:s.push(L),e++}var j=y===e}else var j=!0}}}}}}else{const w={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[w]:s.push(w),e++}var D=$===e;if(re=re||D,!re){const w=e;if(e===w)if(P&&typeof P=="object"&&!Array.isArray(P))for(const g in P){let y=P[g];const E=e,L=e;let x=!1;const F=e;if(typeof y!="string"){const U={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[U]:s.push(U),e++}var _=F===e;if(x=x||_,!x){const U=e;if(e===U)if(y&&typeof y=="object"&&!Array.isArray(y)){let I;if(y.BYTES_PER_ELEMENT===void 0&&(I="BYTES_PER_ELEMENT")||y.buffer===void 0&&(I="buffer")||y.byteLength===void 0&&(I="byteLength")||y.byteOffset===void 0&&(I="byteOffset")||y.length===void 0&&(I="length")){const ee={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/required",keyword:"required",params:{missingProperty:I},message:"must have required property '"+I+"'"};s===null?s=[ee]:s.push(ee),e++}else{const ee=e;for(const A in y)if(!(A==="BYTES_PER_ELEMENT"||A==="buffer"||A==="byteLength"||A==="byteOffset"||A==="length")){let Y=y[A];const B=e;if(!(typeof Y=="number"&&isFinite(Y))){const H={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+A.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[H]:s.push(H),e++}var k=B===e;if(!k)break}if(ee===e){if(y.BYTES_PER_ELEMENT!==void 0){let A=y.BYTES_PER_ELEMENT;const Y=e;if(!(typeof A=="number"&&isFinite(A))){const B={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[B]:s.push(B),e++}var R=Y===e}else var R=!0;if(R){if(y.buffer!==void 0){let A=y.buffer;const Y=e;if(e===Y)if(A&&typeof A=="object"&&!Array.isArray(A)){let H;if(A.byteLength===void 0&&(H="byteLength")){const ie={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:H},message:"must have required property '"+H+"'"};s===null?s=[ie]:s.push(ie),e++}else{const ie=e;for(const le in A)if(le!=="byteLength"){const he={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:le},message:"must NOT have additional properties"};s===null?s=[he]:s.push(he),e++;break}if(ie===e&&A.byteLength!==void 0){let le=A.byteLength;if(!(typeof le=="number"&&isFinite(le))){const he={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[he]:s.push(he),e++}}}}else{const H={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[H]:s.push(H),e++}var R=Y===e}else var R=!0;if(R){if(y.byteLength!==void 0){let A=y.byteLength;const Y=e;if(!(typeof A=="number"&&isFinite(A))){const H={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[H]:s.push(H),e++}var R=Y===e}else var R=!0;if(R){if(y.byteOffset!==void 0){let A=y.byteOffset;const Y=e;if(!(typeof A=="number"&&isFinite(A))){const H={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteOffset",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[H]:s.push(H),e++}var R=Y===e}else var R=!0;if(R)if(y.length!==void 0){let A=y.length;const Y=e;if(!(typeof A=="number"&&isFinite(A))){const H={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/length",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[H]:s.push(H),e++}var R=Y===e}else var R=!0}}}}}}else{const I={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[I]:s.push(I),e++}var _=U===e;if(x=x||_,!x){const I=e;if(e===I)if(y&&typeof y=="object"&&!Array.isArray(y)){let A;if(y.lastModified===void 0&&(A="lastModified")||y.name===void 0&&(A="name")||y.size===void 0&&(A="size")||y.type===void 0&&(A="type")||y.webkitRelativePath===void 0&&(A="webkitRelativePath")){const Y={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/required",keyword:"required",params:{missingProperty:A},message:"must have required property '"+A+"'"};s===null?s=[Y]:s.push(Y),e++}else{const Y=e;for(const B in y)if(!(B==="size"||B==="type"||B==="lastModified"||B==="name"||B==="webkitRelativePath")){const H={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:B},message:"must NOT have additional properties"};s===null?s=[H]:s.push(H),e++;break}if(Y===e){if(y.size!==void 0){let B=y.size;const H=e;if(!(typeof B=="number"&&isFinite(B))){const ie={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/size",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/size/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ie]:s.push(ie),e++}var m=H===e}else var m=!0;if(m){if(y.type!==void 0){const B=e;if(typeof y.type!="string"){const ie={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/type",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[ie]:s.push(ie),e++}var m=B===e}else var m=!0;if(m){if(y.lastModified!==void 0){let B=y.lastModified;const H=e;if(!(typeof B=="number"&&isFinite(B))){const le={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/lastModified",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/lastModified/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[le]:s.push(le),e++}var m=H===e}else var m=!0;if(m){if(y.name!==void 0){const B=e;if(typeof y.name!="string"){const ie={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/name",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[ie]:s.push(ie),e++}var m=B===e}else var m=!0;if(m)if(y.webkitRelativePath!==void 0){const B=e;if(typeof y.webkitRelativePath!="string"){const ie={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1")+"/webkitRelativePath",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/webkitRelativePath/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[ie]:s.push(ie),e++}var m=B===e}else var m=!0}}}}}}else{const A={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[A]:s.push(A),e++}var _=I===e;x=x||_}}if(x)e=L,s!==null&&(L?s.length=L:s=null);else{const U={instancePath:t+"/body/"+g.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};s===null?s=[U]:s.push(U),e++}var W=E===e;if(!W)break}else{const g={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[g]:s.push(g),e++}var D=w===e;re=re||D}}if(re)e=V,s!==null&&(V?s.length=V:s=null);else{const $={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[$]:s.push($),e++,ce.errors=s,!1}var d=K===e}else var d=!0}}}}}else return ce.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ce.errors=s,e===0}const $t={properties:{relativeUri:{type:"string",description:"Request path following the domain:port part."},scriptPath:{type:"string",description:"Path of the .php file to execute."},protocol:{type:"string",description:"Request protocol."},method:{$ref:"#/definitions/HTTPMethod",description:"Request method. Default: `GET`."},headers:{$ref:"#/definitions/PHPRequestHeaders",description:"Request headers."},body:{anyOf:[{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"Request body."},env:{type:"object",additionalProperties:{type:"string"},description:"Environment variables to set for this run."},$_SERVER:{type:"object",additionalProperties:{type:"string"},description:"$_SERVER entries to set for this run."},code:{type:"string",description:"The code snippet to eval instead of a php file."}}};function ne(r,{instancePath:t="",parentData:p,parentDataProperty:u,rootData:c=r}={}){let s=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){const R=e;for(const m in r)if(!Jr.call($t.properties,m))return ne.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"}],!1;if(R===e){if(r.relativeUri!==void 0){const m=e;if(typeof r.relativeUri!="string")return ne.errors=[{instancePath:t+"/relativeUri",schemaPath:"#/properties/relativeUri/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=m===e}else var d=!0;if(d){if(r.scriptPath!==void 0){const m=e;if(typeof r.scriptPath!="string")return ne.errors=[{instancePath:t+"/scriptPath",schemaPath:"#/properties/scriptPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=m===e}else var d=!0;if(d){if(r.protocol!==void 0){const m=e;if(typeof r.protocol!="string")return ne.errors=[{instancePath:t+"/protocol",schemaPath:"#/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=m===e}else var d=!0;if(d){if(r.method!==void 0){let m=r.method;const W=e;if(typeof m!="string")return ne.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(m==="GET"||m==="POST"||m==="HEAD"||m==="OPTIONS"||m==="PATCH"||m==="PUT"||m==="DELETE"))return ne.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Xr.enum},message:"must be equal to one of the allowed values"}],!1;var d=W===e}else var d=!0;if(d){if(r.headers!==void 0){let m=r.headers;const W=e;if(e===e)if(m&&typeof m=="object"&&!Array.isArray(m))for(const P in m){const K=e;if(typeof m[P]!="string")return ne.errors=[{instancePath:t+"/headers/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=K===e;if(!h)break}else return ne.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=W===e}else var d=!0;if(d){if(r.body!==void 0){let m=r.body;const W=e,M=e;let G=!1;const P=e;if(typeof m!="string"){const V={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[V]:s.push(V),e++}var D=P===e;if(G=G||D,!G){const V=e;if(e===V)if(m&&typeof m=="object"&&!Array.isArray(m)){let l;if(m.BYTES_PER_ELEMENT===void 0&&(l="BYTES_PER_ELEMENT")||m.buffer===void 0&&(l="buffer")||m.byteLength===void 0&&(l="byteLength")||m.byteOffset===void 0&&(l="byteOffset")||m.length===void 0&&(l="length")){const T={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"};s===null?s=[T]:s.push(T),e++}else{const T=e;for(const $ in m)if(!($==="BYTES_PER_ELEMENT"||$==="buffer"||$==="byteLength"||$==="byteOffset"||$==="length")){let v=m[$];const w=e;if(!(typeof v=="number"&&isFinite(v))){const b={instancePath:t+"/body/"+$.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[b]:s.push(b),e++}var S=w===e;if(!S)break}if(T===e){if(m.BYTES_PER_ELEMENT!==void 0){let $=m.BYTES_PER_ELEMENT;const v=e;if(!(typeof $=="number"&&isFinite($))){const w={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[w]:s.push(w),e++}var j=v===e}else var j=!0;if(j){if(m.buffer!==void 0){let $=m.buffer;const v=e;if(e===v)if($&&typeof $=="object"&&!Array.isArray($)){let b;if($.byteLength===void 0&&(b="byteLength")){const g={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"};s===null?s=[g]:s.push(g),e++}else{const g=e;for(const y in $)if(y!=="byteLength"){const E={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"};s===null?s=[E]:s.push(E),e++;break}if(g===e&&$.byteLength!==void 0){let y=$.byteLength;if(!(typeof y=="number"&&isFinite(y))){const E={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[E]:s.push(E),e++}}}}else{const b={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[b]:s.push(b),e++}var j=v===e}else var j=!0;if(j){if(m.byteLength!==void 0){let $=m.byteLength;const v=e;if(!(typeof $=="number"&&isFinite($))){const b={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[b]:s.push(b),e++}var j=v===e}else var j=!0;if(j){if(m.byteOffset!==void 0){let $=m.byteOffset;const v=e;if(!(typeof $=="number"&&isFinite($))){const b={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[b]:s.push(b),e++}var j=v===e}else var j=!0;if(j)if(m.length!==void 0){let $=m.length;const v=e;if(!(typeof $=="number"&&isFinite($))){const b={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[b]:s.push(b),e++}var j=v===e}else var j=!0}}}}}}else{const l={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[l]:s.push(l),e++}var D=V===e;G=G||D}if(G)e=M,s!==null&&(M?s.length=M:s=null);else{const V={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[V]:s.push(V),e++,ne.errors=s,!1}var d=W===e}else var d=!0;if(d){if(r.env!==void 0){let m=r.env;const W=e;if(e===W)if(m&&typeof m=="object"&&!Array.isArray(m))for(const G in m){const P=e;if(typeof m[G]!="string")return ne.errors=[{instancePath:t+"/env/"+G.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/env/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _=P===e;if(!_)break}else return ne.errors=[{instancePath:t+"/env",schemaPath:"#/properties/env/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=W===e}else var d=!0;if(d){if(r.$_SERVER!==void 0){let m=r.$_SERVER;const W=e;if(e===W)if(m&&typeof m=="object"&&!Array.isArray(m))for(const G in m){const P=e;if(typeof m[G]!="string")return ne.errors=[{instancePath:t+"/$_SERVER/"+G.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/%24_SERVER/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var k=P===e;if(!k)break}else return ne.errors=[{instancePath:t+"/$_SERVER",schemaPath:"#/properties/%24_SERVER/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=W===e}else var d=!0;if(d)if(r.code!==void 0){const m=e;if(typeof r.code!="string")return ne.errors=[{instancePath:t+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=m===e}else var d=!0}}}}}}}}}else return ne.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ne.errors=s,e===0}function o(r,{instancePath:t="",parentData:p,parentDataProperty:u,rootData:c=r}={}){let s=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let ar;if(r.step===void 0&&(ar="step"))return o.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:ar},message:"must have required property '"+ar+"'"}],!1;{const Q=r.step;if(typeof Q=="string")if(Q==="activatePlugin"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.pluginPath===void 0&&(f="pluginPath")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="pluginPath"||i==="pluginName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/0/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var d=q===e}else var d=!0;if(d)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/0/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=a===e}else var d=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var h=n===e}else var h=!0;if(h){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="activatePlugin")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/const",keyword:"const",params:{allowedValue:"activatePlugin"},message:"must be equal to constant"}],!1;var h=n===e}else var h=!0;if(h){if(r.pluginPath!==void 0){const i=e;if(typeof r.pluginPath!="string")return o.errors=[{instancePath:t+"/pluginPath",schemaPath:"#/oneOf/0/properties/pluginPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=i===e}else var h=!0;if(h)if(r.pluginName!==void 0){const i=e;if(typeof r.pluginName!="string")return o.errors=[{instancePath:t+"/pluginName",schemaPath:"#/oneOf/0/properties/pluginName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=i===e}else var h=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="activateTheme"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step")||r.themeFolderName===void 0&&(f="themeFolderName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="themeFolderName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/1/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var D=q===e}else var D=!0;if(D)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/1/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var D=a===e}else var D=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var S=n===e}else var S=!0;if(S){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="activateTheme")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/const",keyword:"const",params:{allowedValue:"activateTheme"},message:"must be equal to constant"}],!1;var S=n===e}else var S=!0;if(S)if(r.themeFolderName!==void 0){const i=e;if(typeof r.themeFolderName!="string")return o.errors=[{instancePath:t+"/themeFolderName",schemaPath:"#/oneOf/1/properties/themeFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var S=i===e}else var S=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="cp"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.fromPath===void 0&&(f="fromPath")||r.step===void 0&&(f="step")||r.toPath===void 0&&(f="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="fromPath"||i==="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/2/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var j=q===e}else var j=!0;if(j)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/2/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var j=a===e}else var j=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var _=n===e}else var _=!0;if(_){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="cp")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/const",keyword:"const",params:{allowedValue:"cp"},message:"must be equal to constant"}],!1;var _=n===e}else var _=!0;if(_){if(r.fromPath!==void 0){const i=e;if(typeof r.fromPath!="string")return o.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/2/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _=i===e}else var _=!0;if(_)if(r.toPath!==void 0){const i=e;if(typeof r.toPath!="string")return o.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/2/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _=i===e}else var _=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="defineWpConfigConsts"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.consts===void 0&&(f="consts")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="consts"||i==="method"||i==="virtualize"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/3/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var k=q===e}else var k=!0;if(k)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/3/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var k=a===e}else var k=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var R=n===e}else var R=!0;if(R){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="defineWpConfigConsts")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/const",keyword:"const",params:{allowedValue:"defineWpConfigConsts"},message:"must be equal to constant"}],!1;var R=n===e}else var R=!0;if(R){if(r.consts!==void 0){let i=r.consts;const n=e;if(e===n&&!(i&&typeof i=="object"&&!Array.isArray(i)))return o.errors=[{instancePath:t+"/consts",schemaPath:"#/oneOf/3/properties/consts/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var R=n===e}else var R=!0;if(R){if(r.method!==void 0){let i=r.method;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(i==="rewrite-wp-config"||i==="define-before-run"))return o.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/enum",keyword:"enum",params:{allowedValues:Ke.oneOf[3].properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var R=n===e}else var R=!0;if(R)if(r.virtualize!==void 0){const i=e;if(typeof r.virtualize!="boolean")return o.errors=[{instancePath:t+"/virtualize",schemaPath:"#/oneOf/3/properties/virtualize/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var R=i===e}else var R=!0}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="defineSiteUrl"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.siteUrl===void 0&&(f="siteUrl")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="siteUrl"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/4/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var m=q===e}else var m=!0;if(m)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/4/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=a===e}else var m=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var W=n===e}else var W=!0;if(W){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="defineSiteUrl")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/const",keyword:"const",params:{allowedValue:"defineSiteUrl"},message:"must be equal to constant"}],!1;var W=n===e}else var W=!0;if(W)if(r.siteUrl!==void 0){const i=e;if(typeof r.siteUrl!="string")return o.errors=[{instancePath:t+"/siteUrl",schemaPath:"#/oneOf/4/properties/siteUrl/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var W=i===e}else var W=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="enableMultisite"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="wpCliPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/5/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var M=q===e}else var M=!0;if(M)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/5/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var M=a===e}else var M=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var G=n===e}else var G=!0;if(G){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="enableMultisite")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/const",keyword:"const",params:{allowedValue:"enableMultisite"},message:"must be equal to constant"}],!1;var G=n===e}else var G=!0;if(G)if(r.wpCliPath!==void 0){const i=e;if(typeof r.wpCliPath!="string")return o.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/5/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var G=i===e}else var G=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="importWxr"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.file===void 0&&(f="file")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="file"||i==="importer"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/6/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var P=q===e}else var P=!0;if(P)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/6/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var P=a===e}else var P=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var K=n===e}else var K=!0;if(K){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="importWxr")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/const",keyword:"const",params:{allowedValue:"importWxr"},message:"must be equal to constant"}],!1;var K=n===e}else var K=!0;if(K){if(r.file!==void 0){const i=e;J(r.file,{instancePath:t+"/file",parentData:r,parentDataProperty:"file",rootData:c})||(s=s===null?J.errors:s.concat(J.errors),e=s.length);var K=i===e}else var K=!0;if(K)if(r.importer!==void 0){let i=r.importer;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(i==="data-liberation"||i==="default"))return o.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/enum",keyword:"enum",params:{allowedValues:Ke.oneOf[6].properties.importer.enum},message:"must be equal to one of the allowed values"}],!1;var K=n===e}else var K=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="importThemeStarterContent"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="themeSlug"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/7/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var V=q===e}else var V=!0;if(V)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/7/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var V=a===e}else var V=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var re=n===e}else var re=!0;if(re){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="importThemeStarterContent")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/const",keyword:"const",params:{allowedValue:"importThemeStarterContent"},message:"must be equal to constant"}],!1;var re=n===e}else var re=!0;if(re)if(r.themeSlug!==void 0){const i=e;if(typeof r.themeSlug!="string")return o.errors=[{instancePath:t+"/themeSlug",schemaPath:"#/oneOf/7/properties/themeSlug/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var re=i===e}else var re=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="importWordPressFiles"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step")||r.wordPressFilesZip===void 0&&(f="wordPressFilesZip"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="wordPressFilesZip"||i==="pathInZip"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/8/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var l=q===e}else var l=!0;if(l)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/8/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=a===e}else var l=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var T=n===e}else var T=!0;if(T){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="importWordPressFiles")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/const",keyword:"const",params:{allowedValue:"importWordPressFiles"},message:"must be equal to constant"}],!1;var T=n===e}else var T=!0;if(T){if(r.wordPressFilesZip!==void 0){const i=e;J(r.wordPressFilesZip,{instancePath:t+"/wordPressFilesZip",parentData:r,parentDataProperty:"wordPressFilesZip",rootData:c})||(s=s===null?J.errors:s.concat(J.errors),e=s.length);var T=i===e}else var T=!0;if(T)if(r.pathInZip!==void 0){const i=e;if(typeof r.pathInZip!="string")return o.errors=[{instancePath:t+"/pathInZip",schemaPath:"#/oneOf/8/properties/pathInZip/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var T=i===e}else var T=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="installPlugin"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.pluginData===void 0&&(f="pluginData")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="ifAlreadyInstalled"||i==="step"||i==="pluginData"||i==="pluginZipFile"||i==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/9/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var $=q===e}else var $=!0;if($)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/9/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var $=a===e}else var $=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var v=n===e}else var v=!0;if(v){if(r.ifAlreadyInstalled!==void 0){let i=r.ifAlreadyInstalled;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(i==="overwrite"||i==="skip"||i==="error"))return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:Ke.oneOf[9].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var v=n===e}else var v=!0;if(v){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="installPlugin")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/const",keyword:"const",params:{allowedValue:"installPlugin"},message:"must be equal to constant"}],!1;var v=n===e}else var v=!0;if(v){if(r.pluginData!==void 0){let i=r.pluginData;const n=e,O=e;let a=!1;const q=e;J(i,{instancePath:t+"/pluginData",parentData:r,parentDataProperty:"pluginData",rootData:c})||(s=s===null?J.errors:s.concat(J.errors),e=s.length);var w=q===e;if(a=a||w,!a){const oe=e;ye(i,{instancePath:t+"/pluginData",parentData:r,parentDataProperty:"pluginData",rootData:c})||(s=s===null?ye.errors:s.concat(ye.errors),e=s.length);var w=oe===e;a=a||w}if(a)e=O,s!==null&&(O?s.length=O:s=null);else{const oe={instancePath:t+"/pluginData",schemaPath:"#/oneOf/9/properties/pluginData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[oe]:s.push(oe),e++,o.errors=s,!1}var v=n===e}else var v=!0;if(v){if(r.pluginZipFile!==void 0){const i=e;J(r.pluginZipFile,{instancePath:t+"/pluginZipFile",parentData:r,parentDataProperty:"pluginZipFile",rootData:c})||(s=s===null?J.errors:s.concat(J.errors),e=s.length);var v=i===e}else var v=!0;if(v)if(r.options!==void 0){let i=r.options;const n=e;if(e===e)if(i&&typeof i=="object"&&!Array.isArray(i)){const q=e;for(const se in i)if(!(se==="activate"||se==="targetFolderName"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:se},message:"must NOT have additional properties"}],!1;if(q===e){if(i.activate!==void 0){const se=e;if(typeof i.activate!="boolean")return o.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallPluginOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var b=se===e}else var b=!0;if(b)if(i.targetFolderName!==void 0){const se=e;if(typeof i.targetFolderName!="string")return o.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallPluginOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var b=se===e}else var b=!0}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var v=n===e}else var v=!0}}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="installTheme"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step")||r.themeData===void 0&&(f="themeData"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="ifAlreadyInstalled"||i==="step"||i==="themeData"||i==="themeZipFile"||i==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/10/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var g=q===e}else var g=!0;if(g)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/10/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=a===e}else var g=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var y=n===e}else var y=!0;if(y){if(r.ifAlreadyInstalled!==void 0){let i=r.ifAlreadyInstalled;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(i==="overwrite"||i==="skip"||i==="error"))return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:Ke.oneOf[10].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var y=n===e}else var y=!0;if(y){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="installTheme")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/const",keyword:"const",params:{allowedValue:"installTheme"},message:"must be equal to constant"}],!1;var y=n===e}else var y=!0;if(y){if(r.themeData!==void 0){let i=r.themeData;const n=e,O=e;let a=!1;const q=e;J(i,{instancePath:t+"/themeData",parentData:r,parentDataProperty:"themeData",rootData:c})||(s=s===null?J.errors:s.concat(J.errors),e=s.length);var E=q===e;if(a=a||E,!a){const oe=e;ye(i,{instancePath:t+"/themeData",parentData:r,parentDataProperty:"themeData",rootData:c})||(s=s===null?ye.errors:s.concat(ye.errors),e=s.length);var E=oe===e;a=a||E}if(a)e=O,s!==null&&(O?s.length=O:s=null);else{const oe={instancePath:t+"/themeData",schemaPath:"#/oneOf/10/properties/themeData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[oe]:s.push(oe),e++,o.errors=s,!1}var y=n===e}else var y=!0;if(y){if(r.themeZipFile!==void 0){const i=e;J(r.themeZipFile,{instancePath:t+"/themeZipFile",parentData:r,parentDataProperty:"themeZipFile",rootData:c})||(s=s===null?J.errors:s.concat(J.errors),e=s.length);var y=i===e}else var y=!0;if(y)if(r.options!==void 0){let i=r.options;const n=e;if(e===e)if(i&&typeof i=="object"&&!Array.isArray(i)){const q=e;for(const se in i)if(!(se==="activate"||se==="importStarterContent"||se==="targetFolderName"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:se},message:"must NOT have additional properties"}],!1;if(q===e){if(i.activate!==void 0){const se=e;if(typeof i.activate!="boolean")return o.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallThemeOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var L=se===e}else var L=!0;if(L){if(i.importStarterContent!==void 0){const se=e;if(typeof i.importStarterContent!="boolean")return o.errors=[{instancePath:t+"/options/importStarterContent",schemaPath:"#/definitions/InstallThemeOptions/properties/importStarterContent/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var L=se===e}else var L=!0;if(L)if(i.targetFolderName!==void 0){const se=e;if(typeof i.targetFolderName!="string")return o.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallThemeOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var L=se===e}else var L=!0}}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var y=n===e}else var y=!0}}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="login"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="username"||i==="password"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/11/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var x=q===e}else var x=!0;if(x)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/11/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var x=a===e}else var x=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var F=n===e}else var F=!0;if(F){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="login")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/const",keyword:"const",params:{allowedValue:"login"},message:"must be equal to constant"}],!1;var F=n===e}else var F=!0;if(F){if(r.username!==void 0){const i=e;if(typeof r.username!="string")return o.errors=[{instancePath:t+"/username",schemaPath:"#/oneOf/11/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var F=i===e}else var F=!0;if(F)if(r.password!==void 0){const i=e;if(typeof r.password!="string")return o.errors=[{instancePath:t+"/password",schemaPath:"#/oneOf/11/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var F=i===e}else var F=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="mkdir"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.path===void 0&&(f="path")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/12/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var U=q===e}else var U=!0;if(U)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/12/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var U=a===e}else var U=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var C=n===e}else var C=!0;if(C){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="mkdir")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/const",keyword:"const",params:{allowedValue:"mkdir"},message:"must be equal to constant"}],!1;var C=n===e}else var C=!0;if(C)if(r.path!==void 0){const i=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/12/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=i===e}else var C=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="mv"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.fromPath===void 0&&(f="fromPath")||r.step===void 0&&(f="step")||r.toPath===void 0&&(f="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="fromPath"||i==="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/13/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var I=q===e}else var I=!0;if(I)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/13/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var I=a===e}else var I=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ee=n===e}else var ee=!0;if(ee){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="mv")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/const",keyword:"const",params:{allowedValue:"mv"},message:"must be equal to constant"}],!1;var ee=n===e}else var ee=!0;if(ee){if(r.fromPath!==void 0){const i=e;if(typeof r.fromPath!="string")return o.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/13/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=i===e}else var ee=!0;if(ee)if(r.toPath!==void 0){const i=e;if(typeof r.toPath!="string")return o.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/13/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=i===e}else var ee=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="resetData"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/14/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var A=q===e}else var A=!0;if(A)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/14/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var A=a===e}else var A=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Y=n===e}else var Y=!0;if(Y)if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="resetData")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/const",keyword:"const",params:{allowedValue:"resetData"},message:"must be equal to constant"}],!1;var Y=n===e}else var Y=!0}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="request"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.request===void 0&&(f="request")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="request"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/15/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var B=q===e}else var B=!0;if(B)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/15/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var B=a===e}else var B=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var H=n===e}else var H=!0;if(H){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="request")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/const",keyword:"const",params:{allowedValue:"request"},message:"must be equal to constant"}],!1;var H=n===e}else var H=!0;if(H)if(r.request!==void 0){const i=e;ce(r.request,{instancePath:t+"/request",parentData:r,parentDataProperty:"request",rootData:c})||(s=s===null?ce.errors:s.concat(ce.errors),e=s.length);var H=i===e}else var H=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="rm"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.path===void 0&&(f="path")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/16/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ie=q===e}else var ie=!0;if(ie)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/16/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ie=a===e}else var ie=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var le=n===e}else var le=!0;if(le){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="rm")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/const",keyword:"const",params:{allowedValue:"rm"},message:"must be equal to constant"}],!1;var le=n===e}else var le=!0;if(le)if(r.path!==void 0){const i=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/16/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var le=i===e}else var le=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="rmdir"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.path===void 0&&(f="path")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/17/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var he=q===e}else var he=!0;if(he)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/17/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=a===e}else var he=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var je=n===e}else var je=!0;if(je){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="rmdir")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/const",keyword:"const",params:{allowedValue:"rmdir"},message:"must be equal to constant"}],!1;var je=n===e}else var je=!0;if(je)if(r.path!==void 0){const i=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/17/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var je=i===e}else var je=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="runPHP"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.code===void 0&&(f="code")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="code"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/18/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var De=q===e}else var De=!0;if(De)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/18/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var De=a===e}else var De=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Te=n===e}else var Te=!0;if(Te){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="runPHP")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/const",keyword:"const",params:{allowedValue:"runPHP"},message:"must be equal to constant"}],!1;var Te=n===e}else var Te=!0;if(Te)if(r.code!==void 0){const i=e;if(typeof r.code!="string")return o.errors=[{instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Te=i===e}else var Te=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="runPHPWithOptions"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.options===void 0&&(f="options")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/19/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ce=q===e}else var Ce=!0;if(Ce)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/19/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ce=a===e}else var Ce=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ee=n===e}else var Ee=!0;if(Ee){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="runPHPWithOptions")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/const",keyword:"const",params:{allowedValue:"runPHPWithOptions"},message:"must be equal to constant"}],!1;var Ee=n===e}else var Ee=!0;if(Ee)if(r.options!==void 0){const i=e;ne(r.options,{instancePath:t+"/options",parentData:r,parentDataProperty:"options",rootData:c})||(s=s===null?ne.errors:s.concat(ne.errors),e=s.length);var Ee=i===e}else var Ee=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="runWpInstallationWizard"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.options===void 0&&(f="options")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/20/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ie=q===e}else var Ie=!0;if(Ie)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/20/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ie=a===e}else var Ie=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var qe=n===e}else var qe=!0;if(qe){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="runWpInstallationWizard")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/const",keyword:"const",params:{allowedValue:"runWpInstallationWizard"},message:"must be equal to constant"}],!1;var qe=n===e}else var qe=!0;if(qe)if(r.options!==void 0){let i=r.options;const n=e;if(e===e)if(i&&typeof i=="object"&&!Array.isArray(i)){const q=e;for(const se in i)if(!(se==="adminUsername"||se==="adminPassword"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:se},message:"must NOT have additional properties"}],!1;if(q===e){if(i.adminUsername!==void 0){const se=e;if(typeof i.adminUsername!="string")return o.errors=[{instancePath:t+"/options/adminUsername",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminUsername/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var We=se===e}else var We=!0;if(We)if(i.adminPassword!==void 0){const se=e;if(typeof i.adminPassword!="string")return o.errors=[{instancePath:t+"/options/adminPassword",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminPassword/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var We=se===e}else var We=!0}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var qe=n===e}else var qe=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="runSql"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.sql===void 0&&(f="sql")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="sql"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/21/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ue=q===e}else var Ue=!0;if(Ue)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/21/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ue=a===e}else var Ue=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var $e=n===e}else var $e=!0;if($e){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="runSql")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/const",keyword:"const",params:{allowedValue:"runSql"},message:"must be equal to constant"}],!1;var $e=n===e}else var $e=!0;if($e)if(r.sql!==void 0){const i=e;J(r.sql,{instancePath:t+"/sql",parentData:r,parentDataProperty:"sql",rootData:c})||(s=s===null?J.errors:s.concat(J.errors),e=s.length);var $e=i===e}else var $e=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="setSiteOptions"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.options===void 0&&(f="options")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/22/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ze=q===e}else var ze=!0;if(ze)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/22/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ze=a===e}else var ze=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ae=n===e}else var Ae=!0;if(Ae){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="setSiteOptions")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/const",keyword:"const",params:{allowedValue:"setSiteOptions"},message:"must be equal to constant"}],!1;var Ae=n===e}else var Ae=!0;if(Ae)if(r.options!==void 0){let i=r.options;const n=e;if(e===n&&!(i&&typeof i=="object"&&!Array.isArray(i)))return o.errors=[{instancePath:t+"/options",schemaPath:"#/oneOf/22/properties/options/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ae=n===e}else var Ae=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="unzip"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.extractToPath===void 0&&(f="extractToPath")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="zipFile"||i==="zipPath"||i==="extractToPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/23/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ve=q===e}else var Ve=!0;if(Ve)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/23/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ve=a===e}else var Ve=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var fe=n===e}else var fe=!0;if(fe){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="unzip")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/const",keyword:"const",params:{allowedValue:"unzip"},message:"must be equal to constant"}],!1;var fe=n===e}else var fe=!0;if(fe){if(r.zipFile!==void 0){const i=e;J(r.zipFile,{instancePath:t+"/zipFile",parentData:r,parentDataProperty:"zipFile",rootData:c})||(s=s===null?J.errors:s.concat(J.errors),e=s.length);var fe=i===e}else var fe=!0;if(fe){if(r.zipPath!==void 0){const i=e;if(typeof r.zipPath!="string")return o.errors=[{instancePath:t+"/zipPath",schemaPath:"#/oneOf/23/properties/zipPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var fe=i===e}else var fe=!0;if(fe)if(r.extractToPath!==void 0){const i=e;if(typeof r.extractToPath!="string")return o.errors=[{instancePath:t+"/extractToPath",schemaPath:"#/oneOf/23/properties/extractToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var fe=i===e}else var fe=!0}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="updateUserMeta"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.meta===void 0&&(f="meta")||r.step===void 0&&(f="step")||r.userId===void 0&&(f="userId"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="meta"||i==="userId"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/24/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Be=q===e}else var Be=!0;if(Be)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/24/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Be=a===e}else var Be=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ge=n===e}else var ge=!0;if(ge){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="updateUserMeta")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/const",keyword:"const",params:{allowedValue:"updateUserMeta"},message:"must be equal to constant"}],!1;var ge=n===e}else var ge=!0;if(ge){if(r.meta!==void 0){let i=r.meta;const n=e;if(e===n&&!(i&&typeof i=="object"&&!Array.isArray(i)))return o.errors=[{instancePath:t+"/meta",schemaPath:"#/oneOf/24/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ge=n===e}else var ge=!0;if(ge)if(r.userId!==void 0){let i=r.userId;const n=e;if(!(typeof i=="number"&&isFinite(i)))return o.errors=[{instancePath:t+"/userId",schemaPath:"#/oneOf/24/properties/userId/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ge=n===e}else var ge=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="writeFile"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.data===void 0&&(f="data")||r.path===void 0&&(f="path")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="path"||i==="data"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/25/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Me=q===e}else var Me=!0;if(Me)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/25/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Me=a===e}else var Me=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var be=n===e}else var be=!0;if(be){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="writeFile")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/const",keyword:"const",params:{allowedValue:"writeFile"},message:"must be equal to constant"}],!1;var be=n===e}else var be=!0;if(be){if(r.path!==void 0){const i=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/25/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var be=i===e}else var be=!0;if(be)if(r.data!==void 0){let i=r.data;const n=e,O=e;let a=!1;const q=e;J(i,{instancePath:t+"/data",parentData:r,parentDataProperty:"data",rootData:c})||(s=s===null?J.errors:s.concat(J.errors),e=s.length);var Fe=q===e;if(a=a||Fe,!a){const oe=e;if(typeof i!="string"){const Pe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Pe]:s.push(Pe),e++}var Fe=oe===e;if(a=a||Fe,!a){const Pe=e;if(e===Pe)if(i&&typeof i=="object"&&!Array.isArray(i)){let me;if(i.BYTES_PER_ELEMENT===void 0&&(me="BYTES_PER_ELEMENT")||i.buffer===void 0&&(me="buffer")||i.byteLength===void 0&&(me="byteLength")||i.byteOffset===void 0&&(me="byteOffset")||i.length===void 0&&(me="length")){const Qe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/required",keyword:"required",params:{missingProperty:me},message:"must have required property '"+me+"'"};s===null?s=[Qe]:s.push(Qe),e++}else{const Qe=e;for(const X in i)if(!(X==="BYTES_PER_ELEMENT"||X==="buffer"||X==="byteLength"||X==="byteOffset"||X==="length")){let ue=i[X];const Je=e;if(!(typeof ue=="number"&&isFinite(ue))){const pe={instancePath:t+"/data/"+X.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/oneOf/25/properties/data/anyOf/2/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[pe]:s.push(pe),e++}var et=Je===e;if(!et)break}if(Qe===e){if(i.BYTES_PER_ELEMENT!==void 0){let X=i.BYTES_PER_ELEMENT;const ue=e;if(!(typeof X=="number"&&isFinite(X))){const Je={instancePath:t+"/data/BYTES_PER_ELEMENT",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Je]:s.push(Je),e++}var de=ue===e}else var de=!0;if(de){if(i.buffer!==void 0){let X=i.buffer;const ue=e;if(e===ue)if(X&&typeof X=="object"&&!Array.isArray(X)){let pe;if(X.byteLength===void 0&&(pe="byteLength")){const Xe={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/required",keyword:"required",params:{missingProperty:pe},message:"must have required property '"+pe+"'"};s===null?s=[Xe]:s.push(Xe),e++}else{const Xe=e;for(const Se in X)if(Se!=="byteLength"){const Ne={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Se},message:"must NOT have additional properties"};s===null?s=[Ne]:s.push(Ne),e++;break}if(Xe===e&&X.byteLength!==void 0){let Se=X.byteLength;if(!(typeof Se=="number"&&isFinite(Se))){const Ne={instancePath:t+"/data/buffer/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Ne]:s.push(Ne),e++}}}}else{const pe={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[pe]:s.push(pe),e++}var de=ue===e}else var de=!0;if(de){if(i.byteLength!==void 0){let X=i.byteLength;const ue=e;if(!(typeof X=="number"&&isFinite(X))){const pe={instancePath:t+"/data/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[pe]:s.push(pe),e++}var de=ue===e}else var de=!0;if(de){if(i.byteOffset!==void 0){let X=i.byteOffset;const ue=e;if(!(typeof X=="number"&&isFinite(X))){const pe={instancePath:t+"/data/byteOffset",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[pe]:s.push(pe),e++}var de=ue===e}else var de=!0;if(de)if(i.length!==void 0){let X=i.length;const ue=e;if(!(typeof X=="number"&&isFinite(X))){const pe={instancePath:t+"/data/length",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[pe]:s.push(pe),e++}var de=ue===e}else var de=!0}}}}}}else{const me={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[me]:s.push(me),e++}var Fe=Pe===e;a=a||Fe}}if(a)e=O,s!==null&&(O?s.length=O:s=null);else{const oe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[oe]:s.push(oe),e++,o.errors=s,!1}var be=n===e}else var be=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="writeFiles"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.filesTree===void 0&&(f="filesTree")||r.step===void 0&&(f="step")||r.writeToPath===void 0&&(f="writeToPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="writeToPath"||i==="filesTree"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/26/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var He=q===e}else var He=!0;if(He)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/26/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var He=a===e}else var He=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var we=n===e}else var we=!0;if(we){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="writeFiles")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/const",keyword:"const",params:{allowedValue:"writeFiles"},message:"must be equal to constant"}],!1;var we=n===e}else var we=!0;if(we){if(r.writeToPath!==void 0){const i=e;if(typeof r.writeToPath!="string")return o.errors=[{instancePath:t+"/writeToPath",schemaPath:"#/oneOf/26/properties/writeToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var we=i===e}else var we=!0;if(we)if(r.filesTree!==void 0){const i=e;ye(r.filesTree,{instancePath:t+"/filesTree",parentData:r,parentDataProperty:"filesTree",rootData:c})||(s=s===null?ye.errors:s.concat(ye.errors),e=s.length);var we=i===e}else var we=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="wp-cli"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.command===void 0&&(f="command")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="command"||i==="wpCliPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/27/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ze=q===e}else var Ze=!0;if(Ze)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/27/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ze=a===e}else var Ze=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ve=n===e}else var ve=!0;if(ve){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="wp-cli")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var ve=n===e}else var ve=!0;if(ve){if(r.command!==void 0){let i=r.command;const n=e,O=e;let a=!1;const q=e;if(typeof i!="string"){const oe={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[oe]:s.push(oe),e++}var or=q===e;if(a=a||or,!a){const oe=e;if(e===oe)if(Array.isArray(i)){var vr=!0;const Pe=i.length;for(let Ge=0;Ge<Pe;Ge++){const me=e;if(typeof i[Ge]!="string"){const X={instancePath:t+"/command/"+Ge,schemaPath:"#/oneOf/27/properties/command/anyOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[X]:s.push(X),e++}var vr=me===e;if(!vr)break}}else{const Pe={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};s===null?s=[Pe]:s.push(Pe),e++}var or=oe===e;a=a||or}if(a)e=O,s!==null&&(O?s.length=O:s=null);else{const oe={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[oe]:s.push(oe),e++,o.errors=s,!1}var ve=n===e}else var ve=!0;if(ve)if(r.wpCliPath!==void 0){const i=e;if(typeof r.wpCliPath!="string")return o.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/27/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ve=i===e}else var ve=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="setSiteLanguage"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.language===void 0&&(f="language")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="language"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const O=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(O===e){if(i.weight!==void 0){let a=i.weight;const q=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/28/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ye=q===e}else var Ye=!0;if(Ye)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/28/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ye=a===e}else var Ye=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Re=n===e}else var Re=!0;if(Re){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="setSiteLanguage")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/const",keyword:"const",params:{allowedValue:"setSiteLanguage"},message:"must be equal to constant"}],!1;var Re=n===e}else var Re=!0;if(Re)if(r.language!==void 0){const i=e;if(typeof r.language!="string")return o.errors=[{instancePath:t+"/language",schemaPath:"#/oneOf/28/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Re=i===e}else var Re=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else return o.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"mapping",tag:"step",tagValue:Q},message:'value of tag "step" must be in oneOf'}],!1;else return o.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"tag",tag:"step",tagValue:Q},message:'tag "step" must be string'}],!1}}else return o.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return o.errors=s,e===0}function Z(r,{instancePath:t="",parentData:p,parentDataProperty:u,rootData:c=r}={}){let s=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){const re=e;for(const l in r)if(!Jr.call(jt.properties,l))return Z.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(re===e){if(r.landingPage!==void 0){const l=e;if(typeof r.landingPage!="string")return Z.errors=[{instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=l===e}else var d=!0;if(d){if(r.description!==void 0){const l=e;if(typeof r.description!="string")return Z.errors=[{instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=l===e}else var d=!0;if(d){if(r.meta!==void 0){let l=r.meta;const T=e;if(e===T)if(l&&typeof l=="object"&&!Array.isArray(l)){let v;if(l.title===void 0&&(v="title")||l.author===void 0&&(v="author"))return Z.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty:v},message:"must have required property '"+v+"'"}],!1;{const w=e;for(const b in l)if(!(b==="title"||b==="description"||b==="author"||b==="categories"))return Z.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:b},message:"must NOT have additional properties"}],!1;if(w===e){if(l.title!==void 0){const b=e;if(typeof l.title!="string")return Z.errors=[{instancePath:t+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=b===e}else var h=!0;if(h){if(l.description!==void 0){const b=e;if(typeof l.description!="string")return Z.errors=[{instancePath:t+"/meta/description",schemaPath:"#/properties/meta/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=b===e}else var h=!0;if(h){if(l.author!==void 0){const b=e;if(typeof l.author!="string")return Z.errors=[{instancePath:t+"/meta/author",schemaPath:"#/properties/meta/properties/author/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=b===e}else var h=!0;if(h)if(l.categories!==void 0){let b=l.categories;const g=e;if(e===g)if(Array.isArray(b)){var D=!0;const E=b.length;for(let L=0;L<E;L++){const x=e;if(typeof b[L]!="string")return Z.errors=[{instancePath:t+"/meta/categories/"+L,schemaPath:"#/properties/meta/properties/categories/items/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var D=x===e;if(!D)break}}else return Z.errors=[{instancePath:t+"/meta/categories",schemaPath:"#/properties/meta/properties/categories/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var h=g===e}else var h=!0}}}}}else return Z.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=T===e}else var d=!0;if(d){if(r.preferredVersions!==void 0){let l=r.preferredVersions;const T=e;if(e===T)if(l&&typeof l=="object"&&!Array.isArray(l)){let v;if(l.php===void 0&&(v="php")||l.wp===void 0&&(v="wp"))return Z.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/required",keyword:"required",params:{missingProperty:v},message:"must have required property '"+v+"'"}],!1;{const w=e;for(const b in l)if(!(b==="php"||b==="wp"))return Z.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:b},message:"must NOT have additional properties"}],!1;if(w===e){if(l.php!==void 0){let b=l.php;const g=e,y=e;let E=!1;const L=e;if(typeof b!="string"){const x={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[x]:s.push(x),e++}if(!(b==="8.4"||b==="8.3"||b==="8.2"||b==="8.1"||b==="8.0"||b==="7.4"||b==="7.3"||b==="7.2")){const x={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/enum",keyword:"enum",params:{allowedValues:Tt.enum},message:"must be equal to one of the allowed values"};s===null?s=[x]:s.push(x),e++}var S=L===e;if(E=E||S,!E){const x=e;if(typeof b!="string"){const U={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[U]:s.push(U),e++}if(b!=="latest"){const U={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/const",keyword:"const",params:{allowedValue:"latest"},message:"must be equal to constant"};s===null?s=[U]:s.push(U),e++}var S=x===e;E=E||S}if(E)e=y,s!==null&&(y?s.length=y:s=null);else{const x={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[x]:s.push(x),e++,Z.errors=s,!1}var j=g===e}else var j=!0;if(j)if(l.wp!==void 0){const b=e;if(typeof l.wp!="string")return Z.errors=[{instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var j=b===e}else var j=!0}}}else return Z.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=T===e}else var d=!0;if(d){if(r.features!==void 0){let l=r.features;const T=e;if(e===T)if(l&&typeof l=="object"&&!Array.isArray(l)){const v=e;for(const w in l)if(!(w==="intl"||w==="networking"))return Z.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:w},message:"must NOT have additional properties"}],!1;if(v===e){if(l.intl!==void 0){const w=e;if(typeof l.intl!="boolean")return Z.errors=[{instancePath:t+"/features/intl",schemaPath:"#/properties/features/properties/intl/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var _=w===e}else var _=!0;if(_)if(l.networking!==void 0){const w=e;if(typeof l.networking!="boolean")return Z.errors=[{instancePath:t+"/features/networking",schemaPath:"#/properties/features/properties/networking/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var _=w===e}else var _=!0}}else return Z.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=T===e}else var d=!0;if(d){if(r.extraLibraries!==void 0){let l=r.extraLibraries;const T=e;if(e===T)if(Array.isArray(l)){var k=!0;const v=l.length;for(let w=0;w<v;w++){let b=l[w];const g=e;if(typeof b!="string")return Z.errors=[{instancePath:t+"/extraLibraries/"+w,schemaPath:"#/definitions/ExtraLibrary/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(b!=="wp-cli")return Z.errors=[{instancePath:t+"/extraLibraries/"+w,schemaPath:"#/definitions/ExtraLibrary/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var k=g===e;if(!k)break}}else return Z.errors=[{instancePath:t+"/extraLibraries",schemaPath:"#/properties/extraLibraries/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=T===e}else var d=!0;if(d){if(r.constants!==void 0){let l=r.constants;const T=e;if(e===e)if(l&&typeof l=="object"&&!Array.isArray(l))for(const w in l){let b=l[w];const g=e;if(typeof b!="string"&&typeof b!="boolean"&&!(typeof b=="number"&&isFinite(b)))return Z.errors=[{instancePath:t+"/constants/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPConstants/additionalProperties/type",keyword:"type",params:{type:Et.additionalProperties.type},message:"must be string,boolean,number"}],!1;var R=g===e;if(!R)break}else return Z.errors=[{instancePath:t+"/constants",schemaPath:"#/definitions/PHPConstants/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=T===e}else var d=!0;if(d){if(r.plugins!==void 0){let l=r.plugins;const T=e;if(e===T)if(Array.isArray(l)){var m=!0;const v=l.length;for(let w=0;w<v;w++){let b=l[w];const g=e,y=e;let E=!1;const L=e;if(typeof b!="string"){const F={instancePath:t+"/plugins/"+w,schemaPath:"#/properties/plugins/items/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[F]:s.push(F),e++}var W=L===e;if(E=E||W,!E){const F=e;J(b,{instancePath:t+"/plugins/"+w,parentData:l,parentDataProperty:w,rootData:c})||(s=s===null?J.errors:s.concat(J.errors),e=s.length);var W=F===e;E=E||W}if(E)e=y,s!==null&&(y?s.length=y:s=null);else{const F={instancePath:t+"/plugins/"+w,schemaPath:"#/properties/plugins/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[F]:s.push(F),e++,Z.errors=s,!1}var m=g===e;if(!m)break}}else return Z.errors=[{instancePath:t+"/plugins",schemaPath:"#/properties/plugins/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=T===e}else var d=!0;if(d){if(r.siteOptions!==void 0){let l=r.siteOptions;const T=e;if(e===T)if(l&&typeof l=="object"&&!Array.isArray(l)){const v=e;for(const w in l)if(w!=="blogname"){const b=e;if(typeof l[w]!="string")return Z.errors=[{instancePath:t+"/siteOptions/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/siteOptions/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var M=b===e;if(!M)break}if(v===e&&l.blogname!==void 0&&typeof l.blogname!="string")return Z.errors=[{instancePath:t+"/siteOptions/blogname",schemaPath:"#/properties/siteOptions/properties/blogname/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1}else return Z.errors=[{instancePath:t+"/siteOptions",schemaPath:"#/properties/siteOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=T===e}else var d=!0;if(d){if(r.login!==void 0){let l=r.login;const T=e,$=e;let v=!1;const w=e;if(typeof l!="boolean"){const g={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[g]:s.push(g),e++}var G=w===e;if(v=v||G,!v){const g=e;if(e===g)if(l&&typeof l=="object"&&!Array.isArray(l)){let E;if(l.username===void 0&&(E="username")||l.password===void 0&&(E="password")){const L={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/required",keyword:"required",params:{missingProperty:E},message:"must have required property '"+E+"'"};s===null?s=[L]:s.push(L),e++}else{const L=e;for(const x in l)if(!(x==="username"||x==="password")){const F={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"};s===null?s=[F]:s.push(F),e++;break}if(L===e){if(l.username!==void 0){const x=e;if(typeof l.username!="string"){const F={instancePath:t+"/login/username",schemaPath:"#/properties/login/anyOf/1/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[F]:s.push(F),e++}var P=x===e}else var P=!0;if(P)if(l.password!==void 0){const x=e;if(typeof l.password!="string"){const U={instancePath:t+"/login/password",schemaPath:"#/properties/login/anyOf/1/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[U]:s.push(U),e++}var P=x===e}else var P=!0}}}else{const E={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[E]:s.push(E),e++}var G=g===e;v=v||G}if(v)e=$,s!==null&&($?s.length=$:s=null);else{const g={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[g]:s.push(g),e++,Z.errors=s,!1}var d=T===e}else var d=!0;if(d){if(r.steps!==void 0){let l=r.steps;const T=e;if(e===T)if(Array.isArray(l)){var K=!0;const v=l.length;for(let w=0;w<v;w++){let b=l[w];const g=e,y=e;let E=!1;const L=e;o(b,{instancePath:t+"/steps/"+w,parentData:l,parentDataProperty:w,rootData:c})||(s=s===null?o.errors:s.concat(o.errors),e=s.length);var V=L===e;if(E=E||V,!E){const F=e;if(typeof b!="string"){const C={instancePath:t+"/steps/"+w,schemaPath:"#/properties/steps/items/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[C]:s.push(C),e++}var V=F===e;if(E=E||V,!E){const C=e,I={instancePath:t+"/steps/"+w,schemaPath:"#/properties/steps/items/anyOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};s===null?s=[I]:s.push(I),e++;var V=C===e;if(E=E||V,!E){const A=e;if(typeof b!="boolean"){const B={instancePath:t+"/steps/"+w,schemaPath:"#/properties/steps/items/anyOf/3/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[B]:s.push(B),e++}if(b!==!1){const B={instancePath:t+"/steps/"+w,schemaPath:"#/properties/steps/items/anyOf/3/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};s===null?s=[B]:s.push(B),e++}var V=A===e;if(E=E||V,!E){const B=e;if(b!==null){const ie={instancePath:t+"/steps/"+w,schemaPath:"#/properties/steps/items/anyOf/4/type",keyword:"type",params:{type:"null"},message:"must be null"};s===null?s=[ie]:s.push(ie),e++}var V=B===e;E=E||V}}}}if(E)e=y,s!==null&&(y?s.length=y:s=null);else{const F={instancePath:t+"/steps/"+w,schemaPath:"#/properties/steps/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[F]:s.push(F),e++,Z.errors=s,!1}var K=g===e;if(!K)break}}else return Z.errors=[{instancePath:t+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=T===e}else var d=!0;if(d)if(r.$schema!==void 0){const l=e;if(typeof r.$schema!="string")return Z.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=l===e}else var d=!0}}}}}}}}}}}}else return Z.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Z.errors=s,e===0}function er(r,{instancePath:t="",parentData:p,parentDataProperty:u,rootData:c=r}={}){let s=null,e=0;return Z(r,{instancePath:t,parentData:p,parentDataProperty:u,rootData:c})||(s=s===null?Z.errors:s.concat(Z.errors),e=s.length),er.errors=s,e===0}const{wpCLI:At,..._r}=ft,Rt={..._r,"wp-cli":At,importFile:_r.importWxr};async function Lt(r,t={}){const p={...t};let u;return wr(r)?(u=await Kr(r),p.streamBundledFile=function(...c){return r.read(...c)}):u=r,Ft(u,p)}function wr(r){return r&&"read"in r&&typeof r.read=="function"}async function Kr(r){if(!wr(r))return r;const p=await(await r.read("blueprint.json")).text();return JSON.parse(p)}function Ft(r,{progress:t=new pr.ProgressTracker,semaphore:p=new z.Semaphore({concurrency:3}),onStepCompleted:u=()=>{},corsProxy:c,streamBundledFile:s}={}){var k,R,m,W,M,G,P,K,V,re;r=structuredClone(r),r={...r,steps:(r.steps||[]).filter(xt).filter(Dt)};for(const l of r.steps)!l||typeof l!="object"||(l.step==="importFile"?(l.step="importWxr",ae.logger.warn('The "importFile" step is deprecated. Use "importWxr" instead.')):(l==null?void 0:l.step)==="installPlugin"&&"pluginZipFile"in l?(l.pluginData=l.pluginZipFile,ae.logger.warn('The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.')):(l==null?void 0:l.step)==="installTheme"&&"themeZipFile"in l&&(l.themeData=l.themeZipFile,ae.logger.warn('The "themeZipFile" option of the "installTheme" step is deprecated. Use "themeData" instead.')));if(r.constants&&r.steps.unshift({step:"defineWpConfigConsts",consts:r.constants}),r.siteOptions&&r.steps.unshift({step:"setSiteOptions",options:r.siteOptions}),r.plugins){const l=r.plugins.map(T=>typeof T=="string"?T.startsWith("https://")?{resource:"url",url:T}:{resource:"wordpress.org/plugins",slug:T}:T).map(T=>({step:"installPlugin",pluginData:T}));r.steps.unshift(...l)}r.login&&r.steps.push({step:"login",...r.login===!0?{username:"admin"}:r.login});const e=((k=r.steps)==null?void 0:k.findIndex(l=>typeof l=="object"&&(l==null?void 0:l.step)&&["wp-cli","enableMultisite"].includes(l.step)))??-1;if((R=r==null?void 0:r.extraLibraries)!=null&&R.includes("wp-cli")||e!==-1){const l={step:"writeFile",data:it,path:mr};e===-1?(m=r.steps)==null||m.push(l):(W=r.steps)==null||W.splice(e,0,l)}const d=(M=r.steps)==null?void 0:M.findIndex(l=>typeof l=="object"&&(l==null?void 0:l.step)==="importWxr");d!==void 0&&d>-1&&((G=r.steps)==null||G.splice(d,0,{step:"installPlugin",pluginData:{resource:"url",url:"https://playground.wordpress.net/wordpress-importer.zip",caption:"Downloading the WordPress Importer plugin"}}));const{valid:h,errors:D}=St(r);if(!h){const l=new Error(`Invalid blueprint: ${D[0].message} at ${D[0].instancePath}`);throw l.errors=D,l}const S=r.steps||[],j=S.reduce((l,T)=>{var $;return l+((($=T.progress)==null?void 0:$.weight)||1)},0),_=S.map(l=>Ct(l,{semaphore:p,rootProgressTracker:t,totalProgressWeight:j,corsProxy:c,streamBundledFile:s}));return{versions:{php:Nt((P=r.preferredVersions)==null?void 0:P.php,xe.SupportedPHPVersions,xe.LatestSupportedPHPVersion),wp:((K=r.preferredVersions)==null?void 0:K.wp)||"latest"},features:{intl:((V=r.features)==null?void 0:V.intl)??!1,networking:((re=r.features)==null?void 0:re.networking)??!0},extraLibraries:r.extraLibraries||[],run:async l=>{try{for(const{resources:T}of _)for(const $ of T)$.setPlayground(l),$.isAsync&&$.resolve().catch(()=>{});for(const[T,{run:$,step:v}]of Object.entries(_))try{const w=await $(l);u(w,v)}catch(w){throw new Error(`Error when executing the blueprint step #${T} (${JSON.stringify(v)}) ${w instanceof Error?`: ${w.message}`:w}`,{cause:w})}}finally{try{await l.goTo(r.landingPage||"/")}catch{}t.finish()}}}}function St(r){var c;const t=er(r);if(t)return{valid:t};const p=new Set;for(const s of er.errors)s.schemaPath.startsWith("#/properties/steps/items/anyOf")||p.add(s.instancePath);const u=(c=er.errors)==null?void 0:c.filter(s=>!(s.schemaPath.startsWith("#/properties/steps/items/anyOf")&&p.has(s.instancePath)));return{valid:t,errors:u}}function Nt(r,t,p){return r&&t.includes(r)?r:p}function xt(r){return!!(typeof r=="object"&&r)}function Dt(r){return["setPhpIniEntry","request"].includes(r.step)?(ae.logger.warn(`The "${r.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`),!1):!0}function Ct(r,{semaphore:t,rootProgressTracker:p,totalProgressWeight:u,corsProxy:c,streamBundledFile:s}){var _;const e=p.stage((((_=r.progress)==null?void 0:_.weight)||1)/u),d={};for(const k of Object.keys(r)){let R=r[k];ut(R)&&(R=ke.create(R,{semaphore:t,corsProxy:c,streamBundledFile:s})),d[k]=R}const h=async k=>{var R;try{return e.fillSlowly(),await Rt[r.step](k,await It(d),{tracker:e,initialCaption:(R=r.progress)==null?void 0:R.caption})}finally{e.finish()}},D=kr(d),S=kr(d).filter(k=>k.isAsync),j=1/(S.length+1);for(const k of S)k.progress=e.stage(j);return{run:h,step:r,resources:D}}function kr(r){const t=[];for(const p in r){const u=r[p];u instanceof ke&&t.push(u)}return t}async function It(r){const t={};for(const p in r){const u=r[p];u instanceof ke?t[p]=await u.resolve():t[p]=u}return t}async function Wt(r,t){await r.run(t)}async function Ut(r){const t=await fetch(r,{credentials:"omit"});if(!t.ok)throw new Error(`Failed to fetch blueprint from ${r}`);const p=await t.arrayBuffer();try{const u=new TextDecoder().decode(p);return JSON.parse(u),new Oe.OverlayFilesystem([new Oe.InMemoryFilesystem({"blueprint.json":u}),new Oe.FetchFilesystem({baseUrl:r})])}catch{if(await zt(p))return Oe.ZipFilesystem.fromArrayBuffer(p);throw new Error(`Blueprint file at ${r} is neither a valid JSON nor a ZIP file.`)}}async function zt(r){if(r.byteLength<4)return!1;const t=new Uint8Array(r,0,4);return t[0]===80&&t[1]===75&&t[2]===3&&t[3]===4}function Vt(){}exports.activatePlugin=fr;exports.activateTheme=dr;exports.compileBlueprint=Lt;exports.cp=Fr;exports.defineSiteUrl=hr;exports.defineWpConfigConsts=rr;exports.enableMultisite=Lr;exports.exportWXR=Wr;exports.getBlueprintDeclaration=Kr;exports.importThemeStarterContent=gr;exports.importWordPressFiles=Ir;exports.importWxr=Cr;exports.installPlugin=zr;exports.installTheme=Vr;exports.isBlueprintBundle=wr;exports.login=Br;exports.mkdir=Nr;exports.mv=Sr;exports.request=$r;exports.resetData=Mr;exports.resolveRemoteBlueprint=Ut;exports.rm=ur;exports.rmdir=xr;exports.runBlueprintSteps=Wt;exports.runPHP=Tr;exports.runPHPWithOptions=Er;exports.runSql=qr;exports.runWpInstallationWizard=Hr;exports.setPluginProxyURL=Vt;exports.setSiteLanguage=Yr;exports.setSiteOptions=cr;exports.unzip=sr;exports.updateUserMeta=Ar;exports.wpCLI=yr;exports.wpContentFilesExcludedFromExport=lr;exports.writeFile=tr;exports.writeFiles=Dr;exports.zipWpContent=Zr;
|
|
492
|
+
Only the username field is required for user authentication.`}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"mkdir"},path:{type:"string",description:"The path of the directory you want to create"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"mv"},fromPath:{type:"string",description:"Source path"},toPath:{type:"string",description:"Target path"}},required:["fromPath","step","toPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"resetData"}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"request"},request:{$ref:"#/definitions/PHPRequest",description:"Request details (See /wordpress-playground/api/universal/interface/PHPRequest)"}},required:["request","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"rm"},path:{type:"string",description:"The path to remove"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"rmdir"},path:{type:"string",description:"The path to remove"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runPHP",description:"The step identifier."},code:{type:"string",description:"The PHP code to run."}},required:["code","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runPHPWithOptions"},options:{$ref:"#/definitions/PHPRunOptions",description:"Run options (See /wordpress-playground/api/universal/interface/PHPRunOptions/))"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runWpInstallationWizard"},options:{$ref:"#/definitions/WordPressInstallationOptions"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runSql",description:"The step identifier."},sql:{$ref:"#/definitions/FileReference",description:"The SQL to run. Each non-empty line must contain a valid SQL query."}},required:["sql","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteOptions",description:'The name of the step. Must be "setSiteOptions".'},options:{type:"object",additionalProperties:{},description:"The options to set on the site."}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"unzip"},zipFile:{$ref:"#/definitions/FileReference",description:"The zip file to extract"},zipPath:{type:"string",description:"The path of the zip file to extract",deprecated:"Use zipFile instead."},extractToPath:{type:"string",description:"The path to extract the zip file to"}},required:["extractToPath","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"updateUserMeta"},meta:{type:"object",additionalProperties:{},description:'An object of user meta values to set, e.g. { "first_name": "John" }'},userId:{type:"number",description:"User ID"}},required:["meta","step","userId"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFile"},path:{type:"string",description:"The path of the file to write to"},data:{anyOf:[{$ref:"#/definitions/FileReference"},{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"The data to write"}},required:["data","path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFiles"},writeToPath:{type:"string",description:"The path of the file to write to"},filesTree:{$ref:"#/definitions/DirectoryReference",description:"The 'filesTree' defines the directory structure, supporting 'literal:directory' or 'git:directory' types. The 'name' represents the root directory, while 'files' is an object where keys are file paths, and values contain either file content as a string or nested objects for subdirectories."}},required:["filesTree","step","writeToPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"wp-cli",description:"The step identifier."},command:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}],description:"The WP CLI command to run."},wpCliPath:{type:"string",description:"wp-cli.phar path"}},required:["command","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteLanguage"},language:{type:"string",description:"The language to set, e.g. 'en_US'"}},required:["language","step"]}]},qt={additionalProperties:{anyOf:[{$ref:"#/definitions/FileTree"},{type:["object","string"]}]}},nr={validate:Le};function Le(r,{instancePath:t="",parentData:p,parentDataProperty:d,rootData:u=r}={}){let s=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r))for(const I in r){let S=r[I];const T=e,k=e;let O=!1;const R=e;nr.validate(S,{instancePath:t+"/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:r,parentDataProperty:I,rootData:u})||(s=s===null?nr.validate.errors:s.concat(nr.validate.errors),e=s.length);var f=R===e;if(O=O||f,!O){const m=e;if(!(S&&typeof S=="object"&&!Array.isArray(S))&&typeof S!="string"){const M={instancePath:t+"/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf/1/type",keyword:"type",params:{type:qt.additionalProperties.anyOf[1].type},message:"must be object,string"};s===null?s=[M]:s.push(M),e++}var f=m===e;O=O||f}if(O)e=k,s!==null&&(k?s.length=k:s=null);else{const m={instancePath:t+"/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[m]:s.push(m),e++,Le.errors=s,!1}var g=T===e;if(!g)break}else return Le.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Le.errors=s,e===0}function _e(r,{instancePath:t="",parentData:p,parentDataProperty:d,rootData:u=r}={}){let s=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let g;if(r.files===void 0&&(g="files")||r.name===void 0&&(g="name")||r.resource===void 0&&(g="resource"))return _e.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:g},message:"must have required property '"+g+"'"}],!1;{const I=e;for(const S in r)if(!(S==="resource"||S==="files"||S==="name"))return _e.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:S},message:"must NOT have additional properties"}],!1;if(I===e){if(r.resource!==void 0){let S=r.resource;const T=e;if(typeof S!="string")return _e.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(S!=="literal:directory")return _e.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"literal:directory"},message:"must be equal to constant"}],!1;var f=T===e}else var f=!0;if(f){if(r.files!==void 0){const S=e;Le(r.files,{instancePath:t+"/files",parentData:r,parentDataProperty:"files",rootData:u})||(s=s===null?Le.errors:s.concat(Le.errors),e=s.length);var f=S===e}else var f=!0;if(f)if(r.name!==void 0){const S=e;if(typeof r.name!="string")return _e.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=S===e}else var f=!0}}}}else return _e.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return _e.errors=s,e===0}function ye(r,{instancePath:t="",parentData:p,parentDataProperty:d,rootData:u=r}={}){let s=null,e=0;const f=e;let g=!1;const I=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let O;if(r.resource===void 0&&(O="resource")||r.url===void 0&&(O="url")||r.ref===void 0&&(O="ref")||r.path===void 0&&(O="path")){const R={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/required",keyword:"required",params:{missingProperty:O},message:"must have required property '"+O+"'"};s===null?s=[R]:s.push(R),e++}else{const R=e;for(const m in r)if(!(m==="resource"||m==="url"||m==="ref"||m==="path")){const W={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};s===null?s=[W]:s.push(W),e++;break}if(R===e){if(r.resource!==void 0){let m=r.resource;const W=e;if(typeof m!="string"){const M={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[M]:s.push(M),e++}if(m!=="git:directory"){const M={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/const",keyword:"const",params:{allowedValue:"git:directory"},message:"must be equal to constant"};s===null?s=[M]:s.push(M),e++}var T=W===e}else var T=!0;if(T){if(r.url!==void 0){const m=e;if(typeof r.url!="string"){const M={instancePath:t+"/url",schemaPath:"#/definitions/GitDirectoryReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[M]:s.push(M),e++}var T=m===e}else var T=!0;if(T){if(r.ref!==void 0){const m=e;if(typeof r.ref!="string"){const M={instancePath:t+"/ref",schemaPath:"#/definitions/GitDirectoryReference/properties/ref/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[M]:s.push(M),e++}var T=m===e}else var T=!0;if(T)if(r.path!==void 0){const m=e;if(typeof r.path!="string"){const M={instancePath:t+"/path",schemaPath:"#/definitions/GitDirectoryReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[M]:s.push(M),e++}var T=m===e}else var T=!0}}}}}else{const O={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[O]:s.push(O),e++}var k=I===e;if(g=g||k,!g){const O=e;_e(r,{instancePath:t,parentData:p,parentDataProperty:d,rootData:u})||(s=s===null?_e.errors:s.concat(_e.errors),e=s.length);var k=O===e;g=g||k}if(g)e=f,s!==null&&(f?s.length=f:s=null);else{const O={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[O]:s.push(O),e++,ye.errors=s,!1}return ye.errors=s,e===0}const Xr={enum:["GET","POST","HEAD","OPTIONS","PATCH","PUT","DELETE"]};function ce(r,{instancePath:t="",parentData:p,parentDataProperty:d,rootData:u=r}={}){let s=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let M;if(r.url===void 0&&(M="url"))return ce.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:M},message:"must have required property '"+M+"'"}],!1;{const G=e;for(const _ in r)if(!(_==="method"||_==="url"||_==="headers"||_==="body"))return ce.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:_},message:"must NOT have additional properties"}],!1;if(G===e){if(r.method!==void 0){let _=r.method;const K=e;if(typeof _!="string")return ce.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(_==="GET"||_==="POST"||_==="HEAD"||_==="OPTIONS"||_==="PATCH"||_==="PUT"||_==="DELETE"))return ce.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Xr.enum},message:"must be equal to one of the allowed values"}],!1;var f=K===e}else var f=!0;if(f){if(r.url!==void 0){const _=e;if(typeof r.url!="string")return ce.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=_===e}else var f=!0;if(f){if(r.headers!==void 0){let _=r.headers;const K=e;if(e===e)if(_&&typeof _=="object"&&!Array.isArray(_))for(const c in _){const b=e;if(typeof _[c]!="string")return ce.errors=[{instancePath:t+"/headers/"+c.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=b===e;if(!g)break}else return ce.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var f=K===e}else var f=!0;if(f)if(r.body!==void 0){let _=r.body;const K=e,V=e;let re=!1;const c=e;if(typeof _!="string"){const E={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[E]:s.push(E),e++}var I=c===e;if(re=re||I,!re){const E=e;if(e===E)if(_&&typeof _=="object"&&!Array.isArray(_)){let P;if(_.BYTES_PER_ELEMENT===void 0&&(P="BYTES_PER_ELEMENT")||_.buffer===void 0&&(P="buffer")||_.byteLength===void 0&&(P="byteLength")||_.byteOffset===void 0&&(P="byteOffset")||_.length===void 0&&(P="length")){const y={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:P},message:"must have required property '"+P+"'"};s===null?s=[y]:s.push(y),e++}else{const y=e;for(const w in _)if(!(w==="BYTES_PER_ELEMENT"||w==="buffer"||w==="byteLength"||w==="byteOffset"||w==="length")){let h=_[w];const q=e;if(!(typeof h=="number"&&isFinite(h))){const L={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[L]:s.push(L),e++}var S=q===e;if(!S)break}if(y===e){if(_.BYTES_PER_ELEMENT!==void 0){let w=_.BYTES_PER_ELEMENT;const h=e;if(!(typeof w=="number"&&isFinite(w))){const q={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[q]:s.push(q),e++}var T=h===e}else var T=!0;if(T){if(_.buffer!==void 0){let w=_.buffer;const h=e;if(e===h)if(w&&typeof w=="object"&&!Array.isArray(w)){let L;if(w.byteLength===void 0&&(L="byteLength")){const x={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:L},message:"must have required property '"+L+"'"};s===null?s=[x]:s.push(x),e++}else{const x=e;for(const F in w)if(F!=="byteLength"){const U={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:F},message:"must NOT have additional properties"};s===null?s=[U]:s.push(U),e++;break}if(x===e&&w.byteLength!==void 0){let F=w.byteLength;if(!(typeof F=="number"&&isFinite(F))){const U={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[U]:s.push(U),e++}}}}else{const L={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[L]:s.push(L),e++}var T=h===e}else var T=!0;if(T){if(_.byteLength!==void 0){let w=_.byteLength;const h=e;if(!(typeof w=="number"&&isFinite(w))){const L={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[L]:s.push(L),e++}var T=h===e}else var T=!0;if(T){if(_.byteOffset!==void 0){let w=_.byteOffset;const h=e;if(!(typeof w=="number"&&isFinite(w))){const L={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[L]:s.push(L),e++}var T=h===e}else var T=!0;if(T)if(_.length!==void 0){let w=_.length;const h=e;if(!(typeof w=="number"&&isFinite(w))){const L={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[L]:s.push(L),e++}var T=h===e}else var T=!0}}}}}}else{const P={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[P]:s.push(P),e++}var I=E===e;if(re=re||I,!re){const P=e;if(e===P)if(_&&typeof _=="object"&&!Array.isArray(_))for(const w in _){let h=_[w];const q=e,L=e;let x=!1;const F=e;if(typeof h!="string"){const U={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[U]:s.push(U),e++}var k=F===e;if(x=x||k,!x){const U=e;if(e===U)if(h&&typeof h=="object"&&!Array.isArray(h)){let C;if(h.BYTES_PER_ELEMENT===void 0&&(C="BYTES_PER_ELEMENT")||h.buffer===void 0&&(C="buffer")||h.byteLength===void 0&&(C="byteLength")||h.byteOffset===void 0&&(C="byteOffset")||h.length===void 0&&(C="length")){const ee={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/required",keyword:"required",params:{missingProperty:C},message:"must have required property '"+C+"'"};s===null?s=[ee]:s.push(ee),e++}else{const ee=e;for(const A in h)if(!(A==="BYTES_PER_ELEMENT"||A==="buffer"||A==="byteLength"||A==="byteOffset"||A==="length")){let Y=h[A];const B=e;if(!(typeof Y=="number"&&isFinite(Y))){const H={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+A.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[H]:s.push(H),e++}var O=B===e;if(!O)break}if(ee===e){if(h.BYTES_PER_ELEMENT!==void 0){let A=h.BYTES_PER_ELEMENT;const Y=e;if(!(typeof A=="number"&&isFinite(A))){const B={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[B]:s.push(B),e++}var R=Y===e}else var R=!0;if(R){if(h.buffer!==void 0){let A=h.buffer;const Y=e;if(e===Y)if(A&&typeof A=="object"&&!Array.isArray(A)){let H;if(A.byteLength===void 0&&(H="byteLength")){const ie={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:H},message:"must have required property '"+H+"'"};s===null?s=[ie]:s.push(ie),e++}else{const ie=e;for(const le in A)if(le!=="byteLength"){const he={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:le},message:"must NOT have additional properties"};s===null?s=[he]:s.push(he),e++;break}if(ie===e&&A.byteLength!==void 0){let le=A.byteLength;if(!(typeof le=="number"&&isFinite(le))){const he={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[he]:s.push(he),e++}}}}else{const H={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[H]:s.push(H),e++}var R=Y===e}else var R=!0;if(R){if(h.byteLength!==void 0){let A=h.byteLength;const Y=e;if(!(typeof A=="number"&&isFinite(A))){const H={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[H]:s.push(H),e++}var R=Y===e}else var R=!0;if(R){if(h.byteOffset!==void 0){let A=h.byteOffset;const Y=e;if(!(typeof A=="number"&&isFinite(A))){const H={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteOffset",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[H]:s.push(H),e++}var R=Y===e}else var R=!0;if(R)if(h.length!==void 0){let A=h.length;const Y=e;if(!(typeof A=="number"&&isFinite(A))){const H={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/length",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[H]:s.push(H),e++}var R=Y===e}else var R=!0}}}}}}else{const C={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[C]:s.push(C),e++}var k=U===e;if(x=x||k,!x){const C=e;if(e===C)if(h&&typeof h=="object"&&!Array.isArray(h)){let A;if(h.lastModified===void 0&&(A="lastModified")||h.name===void 0&&(A="name")||h.size===void 0&&(A="size")||h.type===void 0&&(A="type")||h.webkitRelativePath===void 0&&(A="webkitRelativePath")){const Y={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/required",keyword:"required",params:{missingProperty:A},message:"must have required property '"+A+"'"};s===null?s=[Y]:s.push(Y),e++}else{const Y=e;for(const B in h)if(!(B==="size"||B==="type"||B==="lastModified"||B==="name"||B==="webkitRelativePath")){const H={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:B},message:"must NOT have additional properties"};s===null?s=[H]:s.push(H),e++;break}if(Y===e){if(h.size!==void 0){let B=h.size;const H=e;if(!(typeof B=="number"&&isFinite(B))){const ie={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/size",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/size/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ie]:s.push(ie),e++}var m=H===e}else var m=!0;if(m){if(h.type!==void 0){const B=e;if(typeof h.type!="string"){const ie={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/type",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[ie]:s.push(ie),e++}var m=B===e}else var m=!0;if(m){if(h.lastModified!==void 0){let B=h.lastModified;const H=e;if(!(typeof B=="number"&&isFinite(B))){const le={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/lastModified",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/lastModified/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[le]:s.push(le),e++}var m=H===e}else var m=!0;if(m){if(h.name!==void 0){const B=e;if(typeof h.name!="string"){const ie={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/name",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[ie]:s.push(ie),e++}var m=B===e}else var m=!0;if(m)if(h.webkitRelativePath!==void 0){const B=e;if(typeof h.webkitRelativePath!="string"){const ie={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/webkitRelativePath",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/webkitRelativePath/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[ie]:s.push(ie),e++}var m=B===e}else var m=!0}}}}}}else{const A={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[A]:s.push(A),e++}var k=C===e;x=x||k}}if(x)e=L,s!==null&&(L?s.length=L:s=null);else{const U={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};s===null?s=[U]:s.push(U),e++}var W=q===e;if(!W)break}else{const w={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[w]:s.push(w),e++}var I=P===e;re=re||I}}if(re)e=V,s!==null&&(V?s.length=V:s=null);else{const E={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[E]:s.push(E),e++,ce.errors=s,!1}var f=K===e}else var f=!0}}}}}else return ce.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ce.errors=s,e===0}const $t={properties:{relativeUri:{type:"string",description:"Request path following the domain:port part."},scriptPath:{type:"string",description:"Path of the .php file to execute."},protocol:{type:"string",description:"Request protocol."},method:{$ref:"#/definitions/HTTPMethod",description:"Request method. Default: `GET`."},headers:{$ref:"#/definitions/PHPRequestHeaders",description:"Request headers."},body:{anyOf:[{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"Request body."},env:{type:"object",additionalProperties:{type:"string"},description:"Environment variables to set for this run."},$_SERVER:{type:"object",additionalProperties:{type:"string"},description:"$_SERVER entries to set for this run."},code:{type:"string",description:"The code snippet to eval instead of a php file."}}};function ne(r,{instancePath:t="",parentData:p,parentDataProperty:d,rootData:u=r}={}){let s=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){const R=e;for(const m in r)if(!Jr.call($t.properties,m))return ne.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"}],!1;if(R===e){if(r.relativeUri!==void 0){const m=e;if(typeof r.relativeUri!="string")return ne.errors=[{instancePath:t+"/relativeUri",schemaPath:"#/properties/relativeUri/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=m===e}else var f=!0;if(f){if(r.scriptPath!==void 0){const m=e;if(typeof r.scriptPath!="string")return ne.errors=[{instancePath:t+"/scriptPath",schemaPath:"#/properties/scriptPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=m===e}else var f=!0;if(f){if(r.protocol!==void 0){const m=e;if(typeof r.protocol!="string")return ne.errors=[{instancePath:t+"/protocol",schemaPath:"#/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=m===e}else var f=!0;if(f){if(r.method!==void 0){let m=r.method;const W=e;if(typeof m!="string")return ne.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(m==="GET"||m==="POST"||m==="HEAD"||m==="OPTIONS"||m==="PATCH"||m==="PUT"||m==="DELETE"))return ne.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Xr.enum},message:"must be equal to one of the allowed values"}],!1;var f=W===e}else var f=!0;if(f){if(r.headers!==void 0){let m=r.headers;const W=e;if(e===e)if(m&&typeof m=="object"&&!Array.isArray(m))for(const _ in m){const K=e;if(typeof m[_]!="string")return ne.errors=[{instancePath:t+"/headers/"+_.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=K===e;if(!g)break}else return ne.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var f=W===e}else var f=!0;if(f){if(r.body!==void 0){let m=r.body;const W=e,M=e;let G=!1;const _=e;if(typeof m!="string"){const V={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[V]:s.push(V),e++}var I=_===e;if(G=G||I,!G){const V=e;if(e===V)if(m&&typeof m=="object"&&!Array.isArray(m)){let c;if(m.BYTES_PER_ELEMENT===void 0&&(c="BYTES_PER_ELEMENT")||m.buffer===void 0&&(c="buffer")||m.byteLength===void 0&&(c="byteLength")||m.byteOffset===void 0&&(c="byteOffset")||m.length===void 0&&(c="length")){const b={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:c},message:"must have required property '"+c+"'"};s===null?s=[b]:s.push(b),e++}else{const b=e;for(const E in m)if(!(E==="BYTES_PER_ELEMENT"||E==="buffer"||E==="byteLength"||E==="byteOffset"||E==="length")){let v=m[E];const P=e;if(!(typeof v=="number"&&isFinite(v))){const y={instancePath:t+"/body/"+E.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[y]:s.push(y),e++}var S=P===e;if(!S)break}if(b===e){if(m.BYTES_PER_ELEMENT!==void 0){let E=m.BYTES_PER_ELEMENT;const v=e;if(!(typeof E=="number"&&isFinite(E))){const P={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[P]:s.push(P),e++}var T=v===e}else var T=!0;if(T){if(m.buffer!==void 0){let E=m.buffer;const v=e;if(e===v)if(E&&typeof E=="object"&&!Array.isArray(E)){let y;if(E.byteLength===void 0&&(y="byteLength")){const w={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:y},message:"must have required property '"+y+"'"};s===null?s=[w]:s.push(w),e++}else{const w=e;for(const h in E)if(h!=="byteLength"){const q={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties"};s===null?s=[q]:s.push(q),e++;break}if(w===e&&E.byteLength!==void 0){let h=E.byteLength;if(!(typeof h=="number"&&isFinite(h))){const q={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[q]:s.push(q),e++}}}}else{const y={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[y]:s.push(y),e++}var T=v===e}else var T=!0;if(T){if(m.byteLength!==void 0){let E=m.byteLength;const v=e;if(!(typeof E=="number"&&isFinite(E))){const y={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[y]:s.push(y),e++}var T=v===e}else var T=!0;if(T){if(m.byteOffset!==void 0){let E=m.byteOffset;const v=e;if(!(typeof E=="number"&&isFinite(E))){const y={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[y]:s.push(y),e++}var T=v===e}else var T=!0;if(T)if(m.length!==void 0){let E=m.length;const v=e;if(!(typeof E=="number"&&isFinite(E))){const y={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[y]:s.push(y),e++}var T=v===e}else var T=!0}}}}}}else{const c={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[c]:s.push(c),e++}var I=V===e;G=G||I}if(G)e=M,s!==null&&(M?s.length=M:s=null);else{const V={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[V]:s.push(V),e++,ne.errors=s,!1}var f=W===e}else var f=!0;if(f){if(r.env!==void 0){let m=r.env;const W=e;if(e===W)if(m&&typeof m=="object"&&!Array.isArray(m))for(const G in m){const _=e;if(typeof m[G]!="string")return ne.errors=[{instancePath:t+"/env/"+G.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/env/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var k=_===e;if(!k)break}else return ne.errors=[{instancePath:t+"/env",schemaPath:"#/properties/env/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var f=W===e}else var f=!0;if(f){if(r.$_SERVER!==void 0){let m=r.$_SERVER;const W=e;if(e===W)if(m&&typeof m=="object"&&!Array.isArray(m))for(const G in m){const _=e;if(typeof m[G]!="string")return ne.errors=[{instancePath:t+"/$_SERVER/"+G.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/%24_SERVER/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var O=_===e;if(!O)break}else return ne.errors=[{instancePath:t+"/$_SERVER",schemaPath:"#/properties/%24_SERVER/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var f=W===e}else var f=!0;if(f)if(r.code!==void 0){const m=e;if(typeof r.code!="string")return ne.errors=[{instancePath:t+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=m===e}else var f=!0}}}}}}}}}else return ne.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ne.errors=s,e===0}function o(r,{instancePath:t="",parentData:p,parentDataProperty:d,rootData:u=r}={}){let s=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let ar;if(r.step===void 0&&(ar="step"))return o.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:ar},message:"must have required property '"+ar+"'"}],!1;{const Q=r.step;if(typeof Q=="string")if(Q==="activatePlugin"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.pluginPath===void 0&&(l="pluginPath")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="pluginPath"||i==="pluginName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/0/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var f=$===e}else var f=!0;if(f)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/0/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=a===e}else var f=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var g=n===e}else var g=!0;if(g){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="activatePlugin")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/const",keyword:"const",params:{allowedValue:"activatePlugin"},message:"must be equal to constant"}],!1;var g=n===e}else var g=!0;if(g){if(r.pluginPath!==void 0){const i=e;if(typeof r.pluginPath!="string")return o.errors=[{instancePath:t+"/pluginPath",schemaPath:"#/oneOf/0/properties/pluginPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=i===e}else var g=!0;if(g)if(r.pluginName!==void 0){const i=e;if(typeof r.pluginName!="string")return o.errors=[{instancePath:t+"/pluginName",schemaPath:"#/oneOf/0/properties/pluginName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=i===e}else var g=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="activateTheme"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step")||r.themeFolderName===void 0&&(l="themeFolderName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="themeFolderName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/1/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var I=$===e}else var I=!0;if(I)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/1/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var I=a===e}else var I=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var S=n===e}else var S=!0;if(S){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="activateTheme")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/const",keyword:"const",params:{allowedValue:"activateTheme"},message:"must be equal to constant"}],!1;var S=n===e}else var S=!0;if(S)if(r.themeFolderName!==void 0){const i=e;if(typeof r.themeFolderName!="string")return o.errors=[{instancePath:t+"/themeFolderName",schemaPath:"#/oneOf/1/properties/themeFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var S=i===e}else var S=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="cp"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.fromPath===void 0&&(l="fromPath")||r.step===void 0&&(l="step")||r.toPath===void 0&&(l="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="fromPath"||i==="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/2/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var T=$===e}else var T=!0;if(T)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/2/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var T=a===e}else var T=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var k=n===e}else var k=!0;if(k){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="cp")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/const",keyword:"const",params:{allowedValue:"cp"},message:"must be equal to constant"}],!1;var k=n===e}else var k=!0;if(k){if(r.fromPath!==void 0){const i=e;if(typeof r.fromPath!="string")return o.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/2/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var k=i===e}else var k=!0;if(k)if(r.toPath!==void 0){const i=e;if(typeof r.toPath!="string")return o.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/2/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var k=i===e}else var k=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="defineWpConfigConsts"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.consts===void 0&&(l="consts")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="consts"||i==="method"||i==="virtualize"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/3/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var O=$===e}else var O=!0;if(O)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/3/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var O=a===e}else var O=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var R=n===e}else var R=!0;if(R){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="defineWpConfigConsts")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/const",keyword:"const",params:{allowedValue:"defineWpConfigConsts"},message:"must be equal to constant"}],!1;var R=n===e}else var R=!0;if(R){if(r.consts!==void 0){let i=r.consts;const n=e;if(e===n&&!(i&&typeof i=="object"&&!Array.isArray(i)))return o.errors=[{instancePath:t+"/consts",schemaPath:"#/oneOf/3/properties/consts/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var R=n===e}else var R=!0;if(R){if(r.method!==void 0){let i=r.method;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(i==="rewrite-wp-config"||i==="define-before-run"))return o.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/enum",keyword:"enum",params:{allowedValues:Ke.oneOf[3].properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var R=n===e}else var R=!0;if(R)if(r.virtualize!==void 0){const i=e;if(typeof r.virtualize!="boolean")return o.errors=[{instancePath:t+"/virtualize",schemaPath:"#/oneOf/3/properties/virtualize/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var R=i===e}else var R=!0}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="defineSiteUrl"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.siteUrl===void 0&&(l="siteUrl")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="siteUrl"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/4/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var m=$===e}else var m=!0;if(m)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/4/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=a===e}else var m=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var W=n===e}else var W=!0;if(W){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="defineSiteUrl")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/const",keyword:"const",params:{allowedValue:"defineSiteUrl"},message:"must be equal to constant"}],!1;var W=n===e}else var W=!0;if(W)if(r.siteUrl!==void 0){const i=e;if(typeof r.siteUrl!="string")return o.errors=[{instancePath:t+"/siteUrl",schemaPath:"#/oneOf/4/properties/siteUrl/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var W=i===e}else var W=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="enableMultisite"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="wpCliPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/5/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var M=$===e}else var M=!0;if(M)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/5/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var M=a===e}else var M=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var G=n===e}else var G=!0;if(G){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="enableMultisite")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/const",keyword:"const",params:{allowedValue:"enableMultisite"},message:"must be equal to constant"}],!1;var G=n===e}else var G=!0;if(G)if(r.wpCliPath!==void 0){const i=e;if(typeof r.wpCliPath!="string")return o.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/5/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var G=i===e}else var G=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="importWxr"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.file===void 0&&(l="file")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="file"||i==="importer"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/6/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var _=$===e}else var _=!0;if(_)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/6/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _=a===e}else var _=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var K=n===e}else var K=!0;if(K){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="importWxr")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/const",keyword:"const",params:{allowedValue:"importWxr"},message:"must be equal to constant"}],!1;var K=n===e}else var K=!0;if(K){if(r.file!==void 0){const i=e;J(r.file,{instancePath:t+"/file",parentData:r,parentDataProperty:"file",rootData:u})||(s=s===null?J.errors:s.concat(J.errors),e=s.length);var K=i===e}else var K=!0;if(K)if(r.importer!==void 0){let i=r.importer;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(i==="data-liberation"||i==="default"))return o.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/enum",keyword:"enum",params:{allowedValues:Ke.oneOf[6].properties.importer.enum},message:"must be equal to one of the allowed values"}],!1;var K=n===e}else var K=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="importThemeStarterContent"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="themeSlug"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/7/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var V=$===e}else var V=!0;if(V)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/7/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var V=a===e}else var V=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var re=n===e}else var re=!0;if(re){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="importThemeStarterContent")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/const",keyword:"const",params:{allowedValue:"importThemeStarterContent"},message:"must be equal to constant"}],!1;var re=n===e}else var re=!0;if(re)if(r.themeSlug!==void 0){const i=e;if(typeof r.themeSlug!="string")return o.errors=[{instancePath:t+"/themeSlug",schemaPath:"#/oneOf/7/properties/themeSlug/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var re=i===e}else var re=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="importWordPressFiles"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step")||r.wordPressFilesZip===void 0&&(l="wordPressFilesZip"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="wordPressFilesZip"||i==="pathInZip"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/8/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var c=$===e}else var c=!0;if(c)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/8/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var c=a===e}else var c=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var b=n===e}else var b=!0;if(b){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="importWordPressFiles")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/const",keyword:"const",params:{allowedValue:"importWordPressFiles"},message:"must be equal to constant"}],!1;var b=n===e}else var b=!0;if(b){if(r.wordPressFilesZip!==void 0){const i=e;J(r.wordPressFilesZip,{instancePath:t+"/wordPressFilesZip",parentData:r,parentDataProperty:"wordPressFilesZip",rootData:u})||(s=s===null?J.errors:s.concat(J.errors),e=s.length);var b=i===e}else var b=!0;if(b)if(r.pathInZip!==void 0){const i=e;if(typeof r.pathInZip!="string")return o.errors=[{instancePath:t+"/pathInZip",schemaPath:"#/oneOf/8/properties/pathInZip/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var b=i===e}else var b=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="installPlugin"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.pluginData===void 0&&(l="pluginData")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="ifAlreadyInstalled"||i==="step"||i==="pluginData"||i==="pluginZipFile"||i==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/9/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var E=$===e}else var E=!0;if(E)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/9/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var E=a===e}else var E=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var v=n===e}else var v=!0;if(v){if(r.ifAlreadyInstalled!==void 0){let i=r.ifAlreadyInstalled;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(i==="overwrite"||i==="skip"||i==="error"))return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:Ke.oneOf[9].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var v=n===e}else var v=!0;if(v){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="installPlugin")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/const",keyword:"const",params:{allowedValue:"installPlugin"},message:"must be equal to constant"}],!1;var v=n===e}else var v=!0;if(v){if(r.pluginData!==void 0){let i=r.pluginData;const n=e,j=e;let a=!1;const $=e;J(i,{instancePath:t+"/pluginData",parentData:r,parentDataProperty:"pluginData",rootData:u})||(s=s===null?J.errors:s.concat(J.errors),e=s.length);var P=$===e;if(a=a||P,!a){const oe=e;ye(i,{instancePath:t+"/pluginData",parentData:r,parentDataProperty:"pluginData",rootData:u})||(s=s===null?ye.errors:s.concat(ye.errors),e=s.length);var P=oe===e;a=a||P}if(a)e=j,s!==null&&(j?s.length=j:s=null);else{const oe={instancePath:t+"/pluginData",schemaPath:"#/oneOf/9/properties/pluginData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[oe]:s.push(oe),e++,o.errors=s,!1}var v=n===e}else var v=!0;if(v){if(r.pluginZipFile!==void 0){const i=e;J(r.pluginZipFile,{instancePath:t+"/pluginZipFile",parentData:r,parentDataProperty:"pluginZipFile",rootData:u})||(s=s===null?J.errors:s.concat(J.errors),e=s.length);var v=i===e}else var v=!0;if(v)if(r.options!==void 0){let i=r.options;const n=e;if(e===e)if(i&&typeof i=="object"&&!Array.isArray(i)){const $=e;for(const se in i)if(!(se==="activate"||se==="targetFolderName"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:se},message:"must NOT have additional properties"}],!1;if($===e){if(i.activate!==void 0){const se=e;if(typeof i.activate!="boolean")return o.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallPluginOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var y=se===e}else var y=!0;if(y)if(i.targetFolderName!==void 0){const se=e;if(typeof i.targetFolderName!="string")return o.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallPluginOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var y=se===e}else var y=!0}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var v=n===e}else var v=!0}}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="installTheme"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step")||r.themeData===void 0&&(l="themeData"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="ifAlreadyInstalled"||i==="step"||i==="themeData"||i==="themeZipFile"||i==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/10/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var w=$===e}else var w=!0;if(w)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/10/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var w=a===e}else var w=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var h=n===e}else var h=!0;if(h){if(r.ifAlreadyInstalled!==void 0){let i=r.ifAlreadyInstalled;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(i==="overwrite"||i==="skip"||i==="error"))return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:Ke.oneOf[10].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var h=n===e}else var h=!0;if(h){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="installTheme")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/const",keyword:"const",params:{allowedValue:"installTheme"},message:"must be equal to constant"}],!1;var h=n===e}else var h=!0;if(h){if(r.themeData!==void 0){let i=r.themeData;const n=e,j=e;let a=!1;const $=e;J(i,{instancePath:t+"/themeData",parentData:r,parentDataProperty:"themeData",rootData:u})||(s=s===null?J.errors:s.concat(J.errors),e=s.length);var q=$===e;if(a=a||q,!a){const oe=e;ye(i,{instancePath:t+"/themeData",parentData:r,parentDataProperty:"themeData",rootData:u})||(s=s===null?ye.errors:s.concat(ye.errors),e=s.length);var q=oe===e;a=a||q}if(a)e=j,s!==null&&(j?s.length=j:s=null);else{const oe={instancePath:t+"/themeData",schemaPath:"#/oneOf/10/properties/themeData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[oe]:s.push(oe),e++,o.errors=s,!1}var h=n===e}else var h=!0;if(h){if(r.themeZipFile!==void 0){const i=e;J(r.themeZipFile,{instancePath:t+"/themeZipFile",parentData:r,parentDataProperty:"themeZipFile",rootData:u})||(s=s===null?J.errors:s.concat(J.errors),e=s.length);var h=i===e}else var h=!0;if(h)if(r.options!==void 0){let i=r.options;const n=e;if(e===e)if(i&&typeof i=="object"&&!Array.isArray(i)){const $=e;for(const se in i)if(!(se==="activate"||se==="importStarterContent"||se==="targetFolderName"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:se},message:"must NOT have additional properties"}],!1;if($===e){if(i.activate!==void 0){const se=e;if(typeof i.activate!="boolean")return o.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallThemeOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var L=se===e}else var L=!0;if(L){if(i.importStarterContent!==void 0){const se=e;if(typeof i.importStarterContent!="boolean")return o.errors=[{instancePath:t+"/options/importStarterContent",schemaPath:"#/definitions/InstallThemeOptions/properties/importStarterContent/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var L=se===e}else var L=!0;if(L)if(i.targetFolderName!==void 0){const se=e;if(typeof i.targetFolderName!="string")return o.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallThemeOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var L=se===e}else var L=!0}}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var h=n===e}else var h=!0}}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="login"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="username"||i==="password"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/11/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var x=$===e}else var x=!0;if(x)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/11/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var x=a===e}else var x=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var F=n===e}else var F=!0;if(F){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="login")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/const",keyword:"const",params:{allowedValue:"login"},message:"must be equal to constant"}],!1;var F=n===e}else var F=!0;if(F){if(r.username!==void 0){const i=e;if(typeof r.username!="string")return o.errors=[{instancePath:t+"/username",schemaPath:"#/oneOf/11/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var F=i===e}else var F=!0;if(F)if(r.password!==void 0){const i=e;if(typeof r.password!="string")return o.errors=[{instancePath:t+"/password",schemaPath:"#/oneOf/11/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var F=i===e}else var F=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="mkdir"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.path===void 0&&(l="path")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/12/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var U=$===e}else var U=!0;if(U)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/12/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var U=a===e}else var U=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var D=n===e}else var D=!0;if(D){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="mkdir")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/const",keyword:"const",params:{allowedValue:"mkdir"},message:"must be equal to constant"}],!1;var D=n===e}else var D=!0;if(D)if(r.path!==void 0){const i=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/12/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var D=i===e}else var D=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="mv"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.fromPath===void 0&&(l="fromPath")||r.step===void 0&&(l="step")||r.toPath===void 0&&(l="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="fromPath"||i==="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/13/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var C=$===e}else var C=!0;if(C)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/13/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=a===e}else var C=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ee=n===e}else var ee=!0;if(ee){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="mv")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/const",keyword:"const",params:{allowedValue:"mv"},message:"must be equal to constant"}],!1;var ee=n===e}else var ee=!0;if(ee){if(r.fromPath!==void 0){const i=e;if(typeof r.fromPath!="string")return o.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/13/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=i===e}else var ee=!0;if(ee)if(r.toPath!==void 0){const i=e;if(typeof r.toPath!="string")return o.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/13/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=i===e}else var ee=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="resetData"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/14/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var A=$===e}else var A=!0;if(A)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/14/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var A=a===e}else var A=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Y=n===e}else var Y=!0;if(Y)if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="resetData")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/const",keyword:"const",params:{allowedValue:"resetData"},message:"must be equal to constant"}],!1;var Y=n===e}else var Y=!0}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="request"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.request===void 0&&(l="request")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="request"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/15/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var B=$===e}else var B=!0;if(B)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/15/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var B=a===e}else var B=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var H=n===e}else var H=!0;if(H){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="request")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/const",keyword:"const",params:{allowedValue:"request"},message:"must be equal to constant"}],!1;var H=n===e}else var H=!0;if(H)if(r.request!==void 0){const i=e;ce(r.request,{instancePath:t+"/request",parentData:r,parentDataProperty:"request",rootData:u})||(s=s===null?ce.errors:s.concat(ce.errors),e=s.length);var H=i===e}else var H=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="rm"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.path===void 0&&(l="path")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/16/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ie=$===e}else var ie=!0;if(ie)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/16/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ie=a===e}else var ie=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var le=n===e}else var le=!0;if(le){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="rm")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/const",keyword:"const",params:{allowedValue:"rm"},message:"must be equal to constant"}],!1;var le=n===e}else var le=!0;if(le)if(r.path!==void 0){const i=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/16/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var le=i===e}else var le=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="rmdir"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.path===void 0&&(l="path")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/17/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var he=$===e}else var he=!0;if(he)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/17/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=a===e}else var he=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var je=n===e}else var je=!0;if(je){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="rmdir")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/const",keyword:"const",params:{allowedValue:"rmdir"},message:"must be equal to constant"}],!1;var je=n===e}else var je=!0;if(je)if(r.path!==void 0){const i=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/17/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var je=i===e}else var je=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="runPHP"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.code===void 0&&(l="code")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="code"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/18/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var De=$===e}else var De=!0;if(De)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/18/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var De=a===e}else var De=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Te=n===e}else var Te=!0;if(Te){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="runPHP")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/const",keyword:"const",params:{allowedValue:"runPHP"},message:"must be equal to constant"}],!1;var Te=n===e}else var Te=!0;if(Te)if(r.code!==void 0){const i=e;if(typeof r.code!="string")return o.errors=[{instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Te=i===e}else var Te=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="runPHPWithOptions"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.options===void 0&&(l="options")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/19/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ce=$===e}else var Ce=!0;if(Ce)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/19/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ce=a===e}else var Ce=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ee=n===e}else var Ee=!0;if(Ee){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="runPHPWithOptions")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/const",keyword:"const",params:{allowedValue:"runPHPWithOptions"},message:"must be equal to constant"}],!1;var Ee=n===e}else var Ee=!0;if(Ee)if(r.options!==void 0){const i=e;ne(r.options,{instancePath:t+"/options",parentData:r,parentDataProperty:"options",rootData:u})||(s=s===null?ne.errors:s.concat(ne.errors),e=s.length);var Ee=i===e}else var Ee=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="runWpInstallationWizard"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.options===void 0&&(l="options")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/20/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ie=$===e}else var Ie=!0;if(Ie)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/20/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ie=a===e}else var Ie=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var qe=n===e}else var qe=!0;if(qe){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="runWpInstallationWizard")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/const",keyword:"const",params:{allowedValue:"runWpInstallationWizard"},message:"must be equal to constant"}],!1;var qe=n===e}else var qe=!0;if(qe)if(r.options!==void 0){let i=r.options;const n=e;if(e===e)if(i&&typeof i=="object"&&!Array.isArray(i)){const $=e;for(const se in i)if(!(se==="adminUsername"||se==="adminPassword"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:se},message:"must NOT have additional properties"}],!1;if($===e){if(i.adminUsername!==void 0){const se=e;if(typeof i.adminUsername!="string")return o.errors=[{instancePath:t+"/options/adminUsername",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminUsername/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var We=se===e}else var We=!0;if(We)if(i.adminPassword!==void 0){const se=e;if(typeof i.adminPassword!="string")return o.errors=[{instancePath:t+"/options/adminPassword",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminPassword/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var We=se===e}else var We=!0}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var qe=n===e}else var qe=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="runSql"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.sql===void 0&&(l="sql")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="sql"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/21/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ue=$===e}else var Ue=!0;if(Ue)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/21/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ue=a===e}else var Ue=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var $e=n===e}else var $e=!0;if($e){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="runSql")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/const",keyword:"const",params:{allowedValue:"runSql"},message:"must be equal to constant"}],!1;var $e=n===e}else var $e=!0;if($e)if(r.sql!==void 0){const i=e;J(r.sql,{instancePath:t+"/sql",parentData:r,parentDataProperty:"sql",rootData:u})||(s=s===null?J.errors:s.concat(J.errors),e=s.length);var $e=i===e}else var $e=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="setSiteOptions"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.options===void 0&&(l="options")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/22/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ze=$===e}else var ze=!0;if(ze)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/22/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ze=a===e}else var ze=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ae=n===e}else var Ae=!0;if(Ae){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="setSiteOptions")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/const",keyword:"const",params:{allowedValue:"setSiteOptions"},message:"must be equal to constant"}],!1;var Ae=n===e}else var Ae=!0;if(Ae)if(r.options!==void 0){let i=r.options;const n=e;if(e===n&&!(i&&typeof i=="object"&&!Array.isArray(i)))return o.errors=[{instancePath:t+"/options",schemaPath:"#/oneOf/22/properties/options/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ae=n===e}else var Ae=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="unzip"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.extractToPath===void 0&&(l="extractToPath")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="zipFile"||i==="zipPath"||i==="extractToPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/23/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ve=$===e}else var Ve=!0;if(Ve)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/23/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ve=a===e}else var Ve=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var fe=n===e}else var fe=!0;if(fe){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="unzip")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/const",keyword:"const",params:{allowedValue:"unzip"},message:"must be equal to constant"}],!1;var fe=n===e}else var fe=!0;if(fe){if(r.zipFile!==void 0){const i=e;J(r.zipFile,{instancePath:t+"/zipFile",parentData:r,parentDataProperty:"zipFile",rootData:u})||(s=s===null?J.errors:s.concat(J.errors),e=s.length);var fe=i===e}else var fe=!0;if(fe){if(r.zipPath!==void 0){const i=e;if(typeof r.zipPath!="string")return o.errors=[{instancePath:t+"/zipPath",schemaPath:"#/oneOf/23/properties/zipPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var fe=i===e}else var fe=!0;if(fe)if(r.extractToPath!==void 0){const i=e;if(typeof r.extractToPath!="string")return o.errors=[{instancePath:t+"/extractToPath",schemaPath:"#/oneOf/23/properties/extractToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var fe=i===e}else var fe=!0}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="updateUserMeta"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.meta===void 0&&(l="meta")||r.step===void 0&&(l="step")||r.userId===void 0&&(l="userId"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="meta"||i==="userId"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/24/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Be=$===e}else var Be=!0;if(Be)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/24/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Be=a===e}else var Be=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ge=n===e}else var ge=!0;if(ge){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="updateUserMeta")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/const",keyword:"const",params:{allowedValue:"updateUserMeta"},message:"must be equal to constant"}],!1;var ge=n===e}else var ge=!0;if(ge){if(r.meta!==void 0){let i=r.meta;const n=e;if(e===n&&!(i&&typeof i=="object"&&!Array.isArray(i)))return o.errors=[{instancePath:t+"/meta",schemaPath:"#/oneOf/24/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ge=n===e}else var ge=!0;if(ge)if(r.userId!==void 0){let i=r.userId;const n=e;if(!(typeof i=="number"&&isFinite(i)))return o.errors=[{instancePath:t+"/userId",schemaPath:"#/oneOf/24/properties/userId/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ge=n===e}else var ge=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="writeFile"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.data===void 0&&(l="data")||r.path===void 0&&(l="path")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="path"||i==="data"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/25/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Me=$===e}else var Me=!0;if(Me)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/25/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Me=a===e}else var Me=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var be=n===e}else var be=!0;if(be){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="writeFile")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/const",keyword:"const",params:{allowedValue:"writeFile"},message:"must be equal to constant"}],!1;var be=n===e}else var be=!0;if(be){if(r.path!==void 0){const i=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/25/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var be=i===e}else var be=!0;if(be)if(r.data!==void 0){let i=r.data;const n=e,j=e;let a=!1;const $=e;J(i,{instancePath:t+"/data",parentData:r,parentDataProperty:"data",rootData:u})||(s=s===null?J.errors:s.concat(J.errors),e=s.length);var Fe=$===e;if(a=a||Fe,!a){const oe=e;if(typeof i!="string"){const Pe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Pe]:s.push(Pe),e++}var Fe=oe===e;if(a=a||Fe,!a){const Pe=e;if(e===Pe)if(i&&typeof i=="object"&&!Array.isArray(i)){let me;if(i.BYTES_PER_ELEMENT===void 0&&(me="BYTES_PER_ELEMENT")||i.buffer===void 0&&(me="buffer")||i.byteLength===void 0&&(me="byteLength")||i.byteOffset===void 0&&(me="byteOffset")||i.length===void 0&&(me="length")){const Qe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/required",keyword:"required",params:{missingProperty:me},message:"must have required property '"+me+"'"};s===null?s=[Qe]:s.push(Qe),e++}else{const Qe=e;for(const X in i)if(!(X==="BYTES_PER_ELEMENT"||X==="buffer"||X==="byteLength"||X==="byteOffset"||X==="length")){let ue=i[X];const Je=e;if(!(typeof ue=="number"&&isFinite(ue))){const pe={instancePath:t+"/data/"+X.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/oneOf/25/properties/data/anyOf/2/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[pe]:s.push(pe),e++}var et=Je===e;if(!et)break}if(Qe===e){if(i.BYTES_PER_ELEMENT!==void 0){let X=i.BYTES_PER_ELEMENT;const ue=e;if(!(typeof X=="number"&&isFinite(X))){const Je={instancePath:t+"/data/BYTES_PER_ELEMENT",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Je]:s.push(Je),e++}var de=ue===e}else var de=!0;if(de){if(i.buffer!==void 0){let X=i.buffer;const ue=e;if(e===ue)if(X&&typeof X=="object"&&!Array.isArray(X)){let pe;if(X.byteLength===void 0&&(pe="byteLength")){const Xe={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/required",keyword:"required",params:{missingProperty:pe},message:"must have required property '"+pe+"'"};s===null?s=[Xe]:s.push(Xe),e++}else{const Xe=e;for(const Se in X)if(Se!=="byteLength"){const Ne={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Se},message:"must NOT have additional properties"};s===null?s=[Ne]:s.push(Ne),e++;break}if(Xe===e&&X.byteLength!==void 0){let Se=X.byteLength;if(!(typeof Se=="number"&&isFinite(Se))){const Ne={instancePath:t+"/data/buffer/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Ne]:s.push(Ne),e++}}}}else{const pe={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[pe]:s.push(pe),e++}var de=ue===e}else var de=!0;if(de){if(i.byteLength!==void 0){let X=i.byteLength;const ue=e;if(!(typeof X=="number"&&isFinite(X))){const pe={instancePath:t+"/data/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[pe]:s.push(pe),e++}var de=ue===e}else var de=!0;if(de){if(i.byteOffset!==void 0){let X=i.byteOffset;const ue=e;if(!(typeof X=="number"&&isFinite(X))){const pe={instancePath:t+"/data/byteOffset",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[pe]:s.push(pe),e++}var de=ue===e}else var de=!0;if(de)if(i.length!==void 0){let X=i.length;const ue=e;if(!(typeof X=="number"&&isFinite(X))){const pe={instancePath:t+"/data/length",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[pe]:s.push(pe),e++}var de=ue===e}else var de=!0}}}}}}else{const me={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[me]:s.push(me),e++}var Fe=Pe===e;a=a||Fe}}if(a)e=j,s!==null&&(j?s.length=j:s=null);else{const oe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[oe]:s.push(oe),e++,o.errors=s,!1}var be=n===e}else var be=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="writeFiles"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.filesTree===void 0&&(l="filesTree")||r.step===void 0&&(l="step")||r.writeToPath===void 0&&(l="writeToPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="writeToPath"||i==="filesTree"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/26/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var He=$===e}else var He=!0;if(He)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/26/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var He=a===e}else var He=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var we=n===e}else var we=!0;if(we){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="writeFiles")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/const",keyword:"const",params:{allowedValue:"writeFiles"},message:"must be equal to constant"}],!1;var we=n===e}else var we=!0;if(we){if(r.writeToPath!==void 0){const i=e;if(typeof r.writeToPath!="string")return o.errors=[{instancePath:t+"/writeToPath",schemaPath:"#/oneOf/26/properties/writeToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var we=i===e}else var we=!0;if(we)if(r.filesTree!==void 0){const i=e;ye(r.filesTree,{instancePath:t+"/filesTree",parentData:r,parentDataProperty:"filesTree",rootData:u})||(s=s===null?ye.errors:s.concat(ye.errors),e=s.length);var we=i===e}else var we=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="wp-cli"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.command===void 0&&(l="command")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="command"||i==="wpCliPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/27/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ze=$===e}else var Ze=!0;if(Ze)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/27/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ze=a===e}else var Ze=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ve=n===e}else var ve=!0;if(ve){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="wp-cli")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var ve=n===e}else var ve=!0;if(ve){if(r.command!==void 0){let i=r.command;const n=e,j=e;let a=!1;const $=e;if(typeof i!="string"){const oe={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[oe]:s.push(oe),e++}var or=$===e;if(a=a||or,!a){const oe=e;if(e===oe)if(Array.isArray(i)){var vr=!0;const Pe=i.length;for(let Ge=0;Ge<Pe;Ge++){const me=e;if(typeof i[Ge]!="string"){const X={instancePath:t+"/command/"+Ge,schemaPath:"#/oneOf/27/properties/command/anyOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[X]:s.push(X),e++}var vr=me===e;if(!vr)break}}else{const Pe={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};s===null?s=[Pe]:s.push(Pe),e++}var or=oe===e;a=a||or}if(a)e=j,s!==null&&(j?s.length=j:s=null);else{const oe={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[oe]:s.push(oe),e++,o.errors=s,!1}var ve=n===e}else var ve=!0;if(ve)if(r.wpCliPath!==void 0){const i=e;if(typeof r.wpCliPath!="string")return o.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/27/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ve=i===e}else var ve=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(Q==="setSiteLanguage"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.language===void 0&&(l="language")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="language"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const n=e;if(e===n)if(i&&typeof i=="object"&&!Array.isArray(i)){const j=e;for(const a in i)if(!(a==="weight"||a==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(j===e){if(i.weight!==void 0){let a=i.weight;const $=e;if(!(typeof a=="number"&&isFinite(a)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/28/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ye=$===e}else var Ye=!0;if(Ye)if(i.caption!==void 0){const a=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/28/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ye=a===e}else var Ye=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Re=n===e}else var Re=!0;if(Re){if(r.step!==void 0){let i=r.step;const n=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="setSiteLanguage")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/const",keyword:"const",params:{allowedValue:"setSiteLanguage"},message:"must be equal to constant"}],!1;var Re=n===e}else var Re=!0;if(Re)if(r.language!==void 0){const i=e;if(typeof r.language!="string")return o.errors=[{instancePath:t+"/language",schemaPath:"#/oneOf/28/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Re=i===e}else var Re=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else return o.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"mapping",tag:"step",tagValue:Q},message:'value of tag "step" must be in oneOf'}],!1;else return o.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"tag",tag:"step",tagValue:Q},message:'tag "step" must be string'}],!1}}else return o.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return o.errors=s,e===0}function Z(r,{instancePath:t="",parentData:p,parentDataProperty:d,rootData:u=r}={}){let s=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){const re=e;for(const c in r)if(!Jr.call(jt.properties,c))return Z.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:c},message:"must NOT have additional properties"}],!1;if(re===e){if(r.landingPage!==void 0){const c=e;if(typeof r.landingPage!="string")return Z.errors=[{instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=c===e}else var f=!0;if(f){if(r.description!==void 0){const c=e;if(typeof r.description!="string")return Z.errors=[{instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=c===e}else var f=!0;if(f){if(r.meta!==void 0){let c=r.meta;const b=e;if(e===b)if(c&&typeof c=="object"&&!Array.isArray(c)){let v;if(c.title===void 0&&(v="title")||c.author===void 0&&(v="author"))return Z.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty:v},message:"must have required property '"+v+"'"}],!1;{const P=e;for(const y in c)if(!(y==="title"||y==="description"||y==="author"||y==="categories"))return Z.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(P===e){if(c.title!==void 0){const y=e;if(typeof c.title!="string")return Z.errors=[{instancePath:t+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=y===e}else var g=!0;if(g){if(c.description!==void 0){const y=e;if(typeof c.description!="string")return Z.errors=[{instancePath:t+"/meta/description",schemaPath:"#/properties/meta/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=y===e}else var g=!0;if(g){if(c.author!==void 0){const y=e;if(typeof c.author!="string")return Z.errors=[{instancePath:t+"/meta/author",schemaPath:"#/properties/meta/properties/author/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=y===e}else var g=!0;if(g)if(c.categories!==void 0){let y=c.categories;const w=e;if(e===w)if(Array.isArray(y)){var I=!0;const q=y.length;for(let L=0;L<q;L++){const x=e;if(typeof y[L]!="string")return Z.errors=[{instancePath:t+"/meta/categories/"+L,schemaPath:"#/properties/meta/properties/categories/items/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var I=x===e;if(!I)break}}else return Z.errors=[{instancePath:t+"/meta/categories",schemaPath:"#/properties/meta/properties/categories/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var g=w===e}else var g=!0}}}}}else return Z.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var f=b===e}else var f=!0;if(f){if(r.preferredVersions!==void 0){let c=r.preferredVersions;const b=e;if(e===b)if(c&&typeof c=="object"&&!Array.isArray(c)){let v;if(c.php===void 0&&(v="php")||c.wp===void 0&&(v="wp"))return Z.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/required",keyword:"required",params:{missingProperty:v},message:"must have required property '"+v+"'"}],!1;{const P=e;for(const y in c)if(!(y==="php"||y==="wp"))return Z.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(P===e){if(c.php!==void 0){let y=c.php;const w=e,h=e;let q=!1;const L=e;if(typeof y!="string"){const x={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[x]:s.push(x),e++}if(!(y==="8.4"||y==="8.3"||y==="8.2"||y==="8.1"||y==="8.0"||y==="7.4"||y==="7.3"||y==="7.2")){const x={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/enum",keyword:"enum",params:{allowedValues:Tt.enum},message:"must be equal to one of the allowed values"};s===null?s=[x]:s.push(x),e++}var S=L===e;if(q=q||S,!q){const x=e;if(typeof y!="string"){const U={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[U]:s.push(U),e++}if(y!=="latest"){const U={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/const",keyword:"const",params:{allowedValue:"latest"},message:"must be equal to constant"};s===null?s=[U]:s.push(U),e++}var S=x===e;q=q||S}if(q)e=h,s!==null&&(h?s.length=h:s=null);else{const x={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[x]:s.push(x),e++,Z.errors=s,!1}var T=w===e}else var T=!0;if(T)if(c.wp!==void 0){const y=e;if(typeof c.wp!="string")return Z.errors=[{instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var T=y===e}else var T=!0}}}else return Z.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var f=b===e}else var f=!0;if(f){if(r.features!==void 0){let c=r.features;const b=e;if(e===b)if(c&&typeof c=="object"&&!Array.isArray(c)){const v=e;for(const P in c)if(!(P==="intl"||P==="networking"))return Z.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:P},message:"must NOT have additional properties"}],!1;if(v===e){if(c.intl!==void 0){const P=e;if(typeof c.intl!="boolean")return Z.errors=[{instancePath:t+"/features/intl",schemaPath:"#/properties/features/properties/intl/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var k=P===e}else var k=!0;if(k)if(c.networking!==void 0){const P=e;if(typeof c.networking!="boolean")return Z.errors=[{instancePath:t+"/features/networking",schemaPath:"#/properties/features/properties/networking/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var k=P===e}else var k=!0}}else return Z.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var f=b===e}else var f=!0;if(f){if(r.extraLibraries!==void 0){let c=r.extraLibraries;const b=e;if(e===b)if(Array.isArray(c)){var O=!0;const v=c.length;for(let P=0;P<v;P++){let y=c[P];const w=e;if(typeof y!="string")return Z.errors=[{instancePath:t+"/extraLibraries/"+P,schemaPath:"#/definitions/ExtraLibrary/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(y!=="wp-cli")return Z.errors=[{instancePath:t+"/extraLibraries/"+P,schemaPath:"#/definitions/ExtraLibrary/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var O=w===e;if(!O)break}}else return Z.errors=[{instancePath:t+"/extraLibraries",schemaPath:"#/properties/extraLibraries/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var f=b===e}else var f=!0;if(f){if(r.constants!==void 0){let c=r.constants;const b=e;if(e===e)if(c&&typeof c=="object"&&!Array.isArray(c))for(const P in c){let y=c[P];const w=e;if(typeof y!="string"&&typeof y!="boolean"&&!(typeof y=="number"&&isFinite(y)))return Z.errors=[{instancePath:t+"/constants/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPConstants/additionalProperties/type",keyword:"type",params:{type:Et.additionalProperties.type},message:"must be string,boolean,number"}],!1;var R=w===e;if(!R)break}else return Z.errors=[{instancePath:t+"/constants",schemaPath:"#/definitions/PHPConstants/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var f=b===e}else var f=!0;if(f){if(r.plugins!==void 0){let c=r.plugins;const b=e;if(e===b)if(Array.isArray(c)){var m=!0;const v=c.length;for(let P=0;P<v;P++){let y=c[P];const w=e,h=e;let q=!1;const L=e;if(typeof y!="string"){const F={instancePath:t+"/plugins/"+P,schemaPath:"#/properties/plugins/items/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[F]:s.push(F),e++}var W=L===e;if(q=q||W,!q){const F=e;J(y,{instancePath:t+"/plugins/"+P,parentData:c,parentDataProperty:P,rootData:u})||(s=s===null?J.errors:s.concat(J.errors),e=s.length);var W=F===e;q=q||W}if(q)e=h,s!==null&&(h?s.length=h:s=null);else{const F={instancePath:t+"/plugins/"+P,schemaPath:"#/properties/plugins/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[F]:s.push(F),e++,Z.errors=s,!1}var m=w===e;if(!m)break}}else return Z.errors=[{instancePath:t+"/plugins",schemaPath:"#/properties/plugins/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var f=b===e}else var f=!0;if(f){if(r.siteOptions!==void 0){let c=r.siteOptions;const b=e;if(e===b)if(c&&typeof c=="object"&&!Array.isArray(c)){const v=e;for(const P in c)if(P!=="blogname"){const y=e;if(typeof c[P]!="string")return Z.errors=[{instancePath:t+"/siteOptions/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/siteOptions/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var M=y===e;if(!M)break}if(v===e&&c.blogname!==void 0&&typeof c.blogname!="string")return Z.errors=[{instancePath:t+"/siteOptions/blogname",schemaPath:"#/properties/siteOptions/properties/blogname/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1}else return Z.errors=[{instancePath:t+"/siteOptions",schemaPath:"#/properties/siteOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var f=b===e}else var f=!0;if(f){if(r.login!==void 0){let c=r.login;const b=e,E=e;let v=!1;const P=e;if(typeof c!="boolean"){const w={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[w]:s.push(w),e++}var G=P===e;if(v=v||G,!v){const w=e;if(e===w)if(c&&typeof c=="object"&&!Array.isArray(c)){let q;if(c.username===void 0&&(q="username")||c.password===void 0&&(q="password")){const L={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"};s===null?s=[L]:s.push(L),e++}else{const L=e;for(const x in c)if(!(x==="username"||x==="password")){const F={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"};s===null?s=[F]:s.push(F),e++;break}if(L===e){if(c.username!==void 0){const x=e;if(typeof c.username!="string"){const F={instancePath:t+"/login/username",schemaPath:"#/properties/login/anyOf/1/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[F]:s.push(F),e++}var _=x===e}else var _=!0;if(_)if(c.password!==void 0){const x=e;if(typeof c.password!="string"){const U={instancePath:t+"/login/password",schemaPath:"#/properties/login/anyOf/1/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[U]:s.push(U),e++}var _=x===e}else var _=!0}}}else{const q={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[q]:s.push(q),e++}var G=w===e;v=v||G}if(v)e=E,s!==null&&(E?s.length=E:s=null);else{const w={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[w]:s.push(w),e++,Z.errors=s,!1}var f=b===e}else var f=!0;if(f){if(r.steps!==void 0){let c=r.steps;const b=e;if(e===b)if(Array.isArray(c)){var K=!0;const v=c.length;for(let P=0;P<v;P++){let y=c[P];const w=e,h=e;let q=!1;const L=e;o(y,{instancePath:t+"/steps/"+P,parentData:c,parentDataProperty:P,rootData:u})||(s=s===null?o.errors:s.concat(o.errors),e=s.length);var V=L===e;if(q=q||V,!q){const F=e;if(typeof y!="string"){const D={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[D]:s.push(D),e++}var V=F===e;if(q=q||V,!q){const D=e,C={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};s===null?s=[C]:s.push(C),e++;var V=D===e;if(q=q||V,!q){const A=e;if(typeof y!="boolean"){const B={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/3/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[B]:s.push(B),e++}if(y!==!1){const B={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/3/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};s===null?s=[B]:s.push(B),e++}var V=A===e;if(q=q||V,!q){const B=e;if(y!==null){const ie={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/4/type",keyword:"type",params:{type:"null"},message:"must be null"};s===null?s=[ie]:s.push(ie),e++}var V=B===e;q=q||V}}}}if(q)e=h,s!==null&&(h?s.length=h:s=null);else{const F={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[F]:s.push(F),e++,Z.errors=s,!1}var K=w===e;if(!K)break}}else return Z.errors=[{instancePath:t+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var f=b===e}else var f=!0;if(f)if(r.$schema!==void 0){const c=e;if(typeof r.$schema!="string")return Z.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=c===e}else var f=!0}}}}}}}}}}}}else return Z.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Z.errors=s,e===0}function er(r,{instancePath:t="",parentData:p,parentDataProperty:d,rootData:u=r}={}){let s=null,e=0;return Z(r,{instancePath:t,parentData:p,parentDataProperty:d,rootData:u})||(s=s===null?Z.errors:s.concat(Z.errors),e=s.length),er.errors=s,e===0}const{wpCLI:At,..._r}=ft,Rt={..._r,"wp-cli":At,importFile:_r.importWxr};async function Lt(r,t={}){const p={...t};let d;return wr(r)?(d=await Kr(r),p.streamBundledFile=function(...u){return r.read(...u)}):d=r,Ft(d,p)}function wr(r){return r&&"read"in r&&typeof r.read=="function"}async function Kr(r){if(!wr(r))return r;const p=await(await r.read("blueprint.json")).text();return JSON.parse(p)}function Ft(r,{progress:t=new pr.ProgressTracker,semaphore:p=new z.Semaphore({concurrency:3}),onStepCompleted:d=()=>{},corsProxy:u,streamBundledFile:s,additionalSteps:e}={}){var R,m,W,M,G,_,K,V,re,c;r=structuredClone(r),r={...r,steps:(r.steps||[]).filter(xt).filter(Dt)},r.steps=[...r.steps||[],...e||[]];for(const b of r.steps)!b||typeof b!="object"||(b.step==="importFile"?(b.step="importWxr",ae.logger.warn('The "importFile" step is deprecated. Use "importWxr" instead.')):(b==null?void 0:b.step)==="installPlugin"&&"pluginZipFile"in b?(b.pluginData=b.pluginZipFile,ae.logger.warn('The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.')):(b==null?void 0:b.step)==="installTheme"&&"themeZipFile"in b&&(b.themeData=b.themeZipFile,ae.logger.warn('The "themeZipFile" option of the "installTheme" step is deprecated. Use "themeData" instead.')));if(r.constants&&r.steps.unshift({step:"defineWpConfigConsts",consts:r.constants}),r.siteOptions&&r.steps.unshift({step:"setSiteOptions",options:r.siteOptions}),r.plugins){const b=r.plugins.map(E=>typeof E=="string"?E.startsWith("https://")?{resource:"url",url:E}:{resource:"wordpress.org/plugins",slug:E}:E).map(E=>({step:"installPlugin",pluginData:E}));r.steps.unshift(...b)}r.login&&r.steps.push({step:"login",...r.login===!0?{username:"admin"}:r.login});const f=((R=r.steps)==null?void 0:R.findIndex(b=>typeof b=="object"&&(b==null?void 0:b.step)&&["wp-cli","enableMultisite"].includes(b.step)))??-1;if((m=r==null?void 0:r.extraLibraries)!=null&&m.includes("wp-cli")||f!==-1){const b={step:"writeFile",data:it,path:mr};f===-1?(W=r.steps)==null||W.push(b):(M=r.steps)==null||M.splice(f,0,b)}const g=(G=r.steps)==null?void 0:G.findIndex(b=>typeof b=="object"&&(b==null?void 0:b.step)==="importWxr");g!==void 0&&g>-1&&((_=r.steps)==null||_.splice(g,0,{step:"installPlugin",pluginData:{resource:"url",url:"https://playground.wordpress.net/wordpress-importer.zip",caption:"Downloading the WordPress Importer plugin"}}));const{valid:I,errors:S}=St(r);if(!I){const b=new Error(`Invalid blueprint: ${S[0].message} at ${S[0].instancePath}`);throw b.errors=S,b}const T=r.steps||[],k=T.reduce((b,E)=>{var v;return b+(((v=E.progress)==null?void 0:v.weight)||1)},0),O=T.map(b=>Ct(b,{semaphore:p,rootProgressTracker:t,totalProgressWeight:k,corsProxy:u,streamBundledFile:s}));return{versions:{php:Nt((K=r.preferredVersions)==null?void 0:K.php,xe.SupportedPHPVersions,xe.LatestSupportedPHPVersion),wp:((V=r.preferredVersions)==null?void 0:V.wp)||"latest"},features:{intl:((re=r.features)==null?void 0:re.intl)??!1,networking:((c=r.features)==null?void 0:c.networking)??!0},extraLibraries:r.extraLibraries||[],run:async b=>{try{for(const{resources:E}of O)for(const v of E)v.setPlayground(b),v.isAsync&&v.resolve().catch(()=>{});for(const[E,{run:v,step:P}]of Object.entries(O))try{const y=await v(b);d(y,P)}catch(y){throw new Error(`Error when executing the blueprint step #${E} (${JSON.stringify(P)}) ${y instanceof Error?`: ${y.message}`:y}`,{cause:y})}}finally{try{await b.goTo(r.landingPage||"/")}catch{}t.finish()}}}}function St(r){var u;const t=er(r);if(t)return{valid:t};const p=new Set;for(const s of er.errors)s.schemaPath.startsWith("#/properties/steps/items/anyOf")||p.add(s.instancePath);const d=(u=er.errors)==null?void 0:u.filter(s=>!(s.schemaPath.startsWith("#/properties/steps/items/anyOf")&&p.has(s.instancePath)));return{valid:t,errors:d}}function Nt(r,t,p){return r&&t.includes(r)?r:p}function xt(r){return!!(typeof r=="object"&&r)}function Dt(r){return["setPhpIniEntry","request"].includes(r.step)?(ae.logger.warn(`The "${r.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`),!1):!0}function Ct(r,{semaphore:t,rootProgressTracker:p,totalProgressWeight:d,corsProxy:u,streamBundledFile:s}){var k;const e=p.stage((((k=r.progress)==null?void 0:k.weight)||1)/d),f={};for(const O of Object.keys(r)){let R=r[O];ut(R)&&(R=ke.create(R,{semaphore:t,corsProxy:u,streamBundledFile:s})),f[O]=R}const g=async O=>{var R;try{return e.fillSlowly(),await Rt[r.step](O,await It(f),{tracker:e,initialCaption:(R=r.progress)==null?void 0:R.caption})}finally{e.finish()}},I=kr(f),S=kr(f).filter(O=>O.isAsync),T=1/(S.length+1);for(const O of S)O.progress=e.stage(T);return{run:g,step:r,resources:I}}function kr(r){const t=[];for(const p in r){const d=r[p];d instanceof ke&&t.push(d)}return t}async function It(r){const t={};for(const p in r){const d=r[p];d instanceof ke?t[p]=await d.resolve():t[p]=d}return t}async function Wt(r,t){await r.run(t)}async function Ut(r){const t=await fetch(r,{credentials:"omit"});if(!t.ok)throw new Error(`Failed to fetch blueprint from ${r}`);const p=await t.arrayBuffer();try{const d=new TextDecoder().decode(p);return JSON.parse(d),new Oe.OverlayFilesystem([new Oe.InMemoryFilesystem({"blueprint.json":d}),new Oe.FetchFilesystem({baseUrl:r})])}catch{if(await zt(p))return Oe.ZipFilesystem.fromArrayBuffer(p);throw new Error(`Blueprint file at ${r} is neither a valid JSON nor a ZIP file.`)}}async function zt(r){if(r.byteLength<4)return!1;const t=new Uint8Array(r,0,4);return t[0]===80&&t[1]===75&&t[2]===3&&t[3]===4}function Vt(){}exports.activatePlugin=fr;exports.activateTheme=dr;exports.compileBlueprint=Lt;exports.cp=Fr;exports.defineSiteUrl=hr;exports.defineWpConfigConsts=rr;exports.enableMultisite=Lr;exports.exportWXR=Wr;exports.getBlueprintDeclaration=Kr;exports.importThemeStarterContent=gr;exports.importWordPressFiles=Ir;exports.importWxr=Cr;exports.installPlugin=zr;exports.installTheme=Vr;exports.isBlueprintBundle=wr;exports.login=Br;exports.mkdir=Nr;exports.mv=Sr;exports.request=$r;exports.resetData=Mr;exports.resolveRemoteBlueprint=Ut;exports.rm=ur;exports.rmdir=xr;exports.runBlueprintSteps=Wt;exports.runPHP=Tr;exports.runPHPWithOptions=Er;exports.runSql=qr;exports.runWpInstallationWizard=Hr;exports.setPluginProxyURL=Vt;exports.setSiteLanguage=Yr;exports.setSiteOptions=cr;exports.unzip=sr;exports.updateUserMeta=Ar;exports.wpCLI=yr;exports.wpContentFilesExcludedFromExport=lr;exports.writeFile=tr;exports.writeFiles=Dr;exports.zipWpContent=Zr;
|
|
493
493
|
//# sourceMappingURL=index.cjs.map
|