@wp-playground/blueprints 1.0.11 → 1.0.13
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 +17 -17
- package/index.js +142 -141
- package/lib/steps/set-site-language.d.ts +7 -0
- package/package.json +11 -11
package/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@php-wasm/node-polyfills");const W=require("@php-wasm/util"),ce=require("@php-wasm/logger"),Ne=require("@php-wasm/universal"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@php-wasm/node-polyfills");const W=require("@php-wasm/util"),ce=require("@php-wasm/logger"),Ne=require("@php-wasm/universal"),kr=require("@wp-playground/common"),wr=require("@wp-playground/wordpress-builds"),Or=require("@php-wasm/progress"),ir=require("@wp-playground/storage"),ar=["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"],pr=async(r,{pluginPath:t,pluginName:p},c)=>{c==null||c.tracker.setCaption(`Activating ${p||t}`);const h=await r.documentRoot,i=await r.run({code:`<?php
|
|
2
2
|
define( 'WP_ADMIN', true );
|
|
3
3
|
require_once( ${W.phpVar(h)}. "/wp-load.php" );
|
|
4
4
|
require_once( ${W.phpVar(h)}. "/wp-admin/includes/plugin.php" );
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
throw new Exception( 'Theme ' . getenv('themeFolderName') . ' could not be activated.' );
|
|
50
50
|
}
|
|
51
51
|
die('Theme activated successfully');
|
|
52
|
-
`,env:{docroot:c,themeFolderName:t}});if(i.text!=="Theme activated successfully")throw ce.logger.debug(i),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`)}
|
|
52
|
+
`,env:{docroot:c,themeFolderName:t}});if(i.text!=="Theme activated successfully")throw ce.logger.debug(i),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`)},$r=async(r,{code:t})=>await r.run({code:t}),Er=async(r,{options:t})=>await r.run(t),lr=async(r,{path:t})=>{await r.unlink(t)},jr=async(r,{sql:t},p)=>{p==null||p.tracker.setCaption("Executing SQL Queries");const c=`/tmp/${W.randomFilename()}.sql`;await r.writeFile(c,new Uint8Array(await t.arrayBuffer()));const h=await r.documentRoot,i=W.phpVars({docroot:h,sqlFilename:c}),e=await r.run({code:`<?php
|
|
53
53
|
require_once ${i.docroot} . '/wp-load.php';
|
|
54
54
|
|
|
55
55
|
$handle = fopen(${i.sqlFilename}, 'r');
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
|
|
65
65
|
$wpdb->query($line);
|
|
66
66
|
}
|
|
67
|
-
`});return await lr(r,{path:c}),e},
|
|
67
|
+
`});return await lr(r,{path:c}),e},Tr=async(r,{request:t})=>{ce.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 ce.logger.warn("WordPress response was",{response:p}),new Error(`Request failed with status ${p.httpStatusCode}`);return p},Kr=`<?php
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
* Rewrites the wp-config.php file to ensure specific constants are defined
|
|
@@ -395,7 +395,7 @@ function skip_whitespace($tokens) {
|
|
|
395
395
|
}
|
|
396
396
|
return $output;
|
|
397
397
|
}
|
|
398
|
-
`,Ke=async(r,{consts:t,method:p="define-before-run"})=>{switch(p){case"define-before-run":await
|
|
398
|
+
`,Ke=async(r,{consts:t,method:p="define-before-run"})=>{switch(p){case"define-before-run":await et(r,t);break;case"rewrite-wp-config":{const c=await r.documentRoot,h=W.joinPaths(c,"/wp-config.php"),i=await r.readFileAsText(h),e=await rt(r,i,t);await r.writeFile(h,e);break}default:throw new Error(`Invalid method: ${p}`)}};async function et(r,t){for(const p in t)await r.defineConstant(p,t[p])}async function rt(r,t,p){await r.writeFile("/tmp/code.php",t);const c=W.phpVars({consts:p});return await r.run({code:`${Kr}
|
|
399
399
|
$wp_config_path = '/tmp/code.php';
|
|
400
400
|
$wp_config = file_get_contents($wp_config_path);
|
|
401
401
|
$new_wp_config = rewrite_wp_config_to_define_constants($wp_config, ${c.consts});
|
|
@@ -407,19 +407,19 @@ function skip_whitespace($tokens) {
|
|
|
407
407
|
update_option($name, $value);
|
|
408
408
|
}
|
|
409
409
|
echo "Success";
|
|
410
|
-
`})},
|
|
410
|
+
`})},qr=async(r,{meta:t,userId:p})=>{const c=await r.documentRoot;await r.run({code:`<?php
|
|
411
411
|
include ${W.phpVar(c)} . '/wp-load.php';
|
|
412
412
|
$meta = ${W.phpVar(t)};
|
|
413
413
|
foreach($meta as $name => $value) {
|
|
414
414
|
update_user_meta(${W.phpVar(p)}, $name, $value);
|
|
415
415
|
}
|
|
416
|
-
`})},ur="/tmp/wp-cli.phar",
|
|
416
|
+
`})},ur="/tmp/wp-cli.phar",tt={resource:"url",url:"https://playground.wordpress.net/wp-cli.phar"},Ar=async(r,t=ur)=>{if(!await r.fileExists(t))throw new Error(`wp-cli.phar not found at ${t}.
|
|
417
417
|
You can enable wp-cli support by adding "wp-cli" to the list of extra libraries in your blueprint as follows:
|
|
418
418
|
{
|
|
419
419
|
"extraLibraries": [ "wp-cli" ]
|
|
420
420
|
}
|
|
421
421
|
Read more about it in the documentation.
|
|
422
|
-
https://wordpress.github.io/wordpress-playground/blueprints/data-format#extra-libraries`)},cr=async(r,{command:t,wpCliPath:p=ur})=>{await
|
|
422
|
+
https://wordpress.github.io/wordpress-playground/blueprints/data-format#extra-libraries`)},cr=async(r,{command:t,wpCliPath:p=ur})=>{await Ar(r,p);let c;if(typeof t=="string"?(t=t.trim(),c=st(t)):c=t,c.shift()!=="wp")throw new Error('The first argument must be "wp".');const i=await r.documentRoot;await r.writeFile("/tmp/stdout",""),await r.writeFile("/tmp/stderr",""),await r.writeFile(W.joinPaths(i,"run-cli.php"),`<?php
|
|
423
423
|
// Set up the environment to emulate a shell script
|
|
424
424
|
// call.
|
|
425
425
|
|
|
@@ -441,7 +441,7 @@ function skip_whitespace($tokens) {
|
|
|
441
441
|
define('STDERR', fopen('php://stderr', 'wb'));
|
|
442
442
|
|
|
443
443
|
require( ${W.phpVar(p)} );
|
|
444
|
-
`);const e=await r.run({scriptPath:W.joinPaths(i,"run-cli.php")});if(e.errors)throw new Error(e.errors);return e};function
|
|
444
|
+
`);const e=await r.run({scriptPath:W.joinPaths(i,"run-cli.php")});if(e.errors)throw new Error(e.errors);return e};function st(r){let c=0,h="";const i=[];let e="";for(let d=0;d<r.length;d++){const g=r[d];c===0?g==='"'||g==="'"?(c=1,h=g):g.match(/\s/)?(e&&i.push(e),e=""):e+=g:c===1&&(g==="\\"?(d++,e+=r[d]):g===h?(c=0,h=""):e+=g)}return e&&i.push(e),i}const Rr=async(r,{wpCliPath:t})=>{await Ar(r,t),await Ke(r,{consts:{WP_ALLOW_MULTISITE:1}});const p=new URL(await r.absoluteUrl);if(p.port!==""){let i=`The current host is ${p.host}, but WordPress multisites do not support custom ports.`;throw p.hostname==="localhost"&&(i+=" For development, you can set up a playground.test domain using the instructions at https://wordpress.github.io/wordpress-playground/contributing/code."),new Error(i)}const c=p.pathname.replace(/\/$/,"")+"/",h=`${p.protocol}//${p.hostname}${c}`;await dr(r,{options:{siteurl:h,home:h}}),await cr(r,{command:"wp core multisite-convert"})},Lr=async(r,{fromPath:t,toPath:p})=>{await r.writeFile(p,await r.readFileAsBuffer(t))},Fr=async(r,{fromPath:t,toPath:p})=>{await r.mv(t,p)},Sr=async(r,{path:t})=>{await r.mkdir(t)},Nr=async(r,{path:t})=>{await r.rmdir(t)},mr=async(r,{path:t,data:p})=>{p instanceof File&&(p=new Uint8Array(await p.arrayBuffer())),t.startsWith("/wordpress/wp-content/mu-plugins")&&!await r.fileExists("/wordpress/wp-content/mu-plugins")&&await r.mkdir("/wordpress/wp-content/mu-plugins"),await r.writeFile(t,p)},Dr=async(r,{writeToPath:t,filesTree:p})=>{await Ne.writeFiles(r,t,p.files)},yr=async(r,{siteUrl:t})=>{await Ke(r,{consts:{WP_HOME:t,WP_SITEURL:t}})},xr=async(r,{file:t},p)=>{var h;(h=p==null?void 0:p.tracker)==null||h.setCaption("Importing content"),await mr(r,{path:"/tmp/import.wxr",data:t});const c=await r.documentRoot;await r.run({code:`<?php
|
|
445
445
|
require ${W.phpVar(c)} . '/wp-load.php';
|
|
446
446
|
require ${W.phpVar(c)} . '/wp-admin/includes/admin.php';
|
|
447
447
|
|
|
@@ -508,10 +508,10 @@ function skip_whitespace($tokens) {
|
|
|
508
508
|
|
|
509
509
|
// Publish the changeset, which publishes the starter content.
|
|
510
510
|
wp_publish_post( $wp_customize->changeset_post_id() );
|
|
511
|
-
`})},er=async(r,{zipFile:t,zipPath:p,extractToPath:c})=>{if(p)ce.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
|
|
511
|
+
`})},er=async(r,{zipFile:t,zipPath:p,extractToPath:c})=>{if(p)ce.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 kr.unzipFile(r,t||p,c)},Cr=async(r,{wordPressFilesZip:t,pathInZip:p=""})=>{const c=await r.documentRoot;let h=W.joinPaths("/tmp","import");await r.mkdir(h),await er(r,{zipFile:t,extractToPath:h}),h=W.joinPaths(h,p);const i=W.joinPaths(h,"wp-content"),e=W.joinPaths(c,"wp-content");for(const q of ar){const P=W.joinPaths(i,q);await vr(r,P);const $=W.joinPaths(e,q);await r.fileExists($)&&(await r.mkdir(W.dirname(P)),await r.mv($,P))}const d=W.joinPaths(h,"wp-content","database");await r.fileExists(d)||await r.mv(W.joinPaths(c,"wp-content","database"),d);const g=await r.listFiles(h);for(const q of g)await vr(r,W.joinPaths(c,q)),await r.mv(W.joinPaths(h,q),W.joinPaths(c,q));await r.rmdir(h),await yr(r,{siteUrl:await r.absoluteUrl});const x=W.phpVar(W.joinPaths(c,"wp-admin","upgrade.php"));await r.run({code:`<?php
|
|
512
512
|
$_GET['step'] = 'upgrade_db';
|
|
513
513
|
require ${x};
|
|
514
|
-
`})};async function
|
|
514
|
+
`})};async function vr(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 Ir(r,{targetPath:t,zipFile:p,ifAlreadyInstalled:c="overwrite",targetFolderName:h=""}){const e=p.name.replace(/\.zip$/,""),d=W.joinPaths(await r.documentRoot,"wp-content"),g=W.joinPaths(d,W.randomString()),x=W.joinPaths(g,"assets",e);await r.fileExists(x)&&await r.rmdir(g,{recursive:!0}),await r.mkdir(g);try{await er(r,{zipFile:p,extractToPath:x});let q=await r.listFiles(x,{prependPath:!0});q=q.filter(m=>!m.endsWith("/__MACOSX"));const P=q.length===1&&await r.isDir(q[0]);let $,L="";P?(L=q[0],$=q[0].split("/").pop()):(L=x,$=e),h&&h.length&&($=h);const N=`${t}/${$}`;if(await r.fileExists(N)){if(!await r.isDir(N))throw new Error(`Cannot install asset ${$} to ${N} because a file with the same name already exists. Note it's a file, not a directory! Is this by mistake?`);if(c==="overwrite")await r.rmdir(N,{recursive:!0});else{if(c==="skip")return{assetFolderPath:N,assetFolderName:$};throw new Error(`Cannot install asset ${$} to ${t} because it already exists and the ifAlreadyInstalled option was set to ${c}`)}}return await r.mv(L,N),{assetFolderPath:N,assetFolderName:$}}finally{await r.rmdir(g,{recursive:!0})}}function rr(r){const t=r.split(".").shift().replace(/-/g," ");return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}const Ur=async(r,{pluginData:t,pluginZipFile:p,ifAlreadyInstalled:c,options:h={}},i)=>{p&&(t=p,ce.logger.warn('The "pluginZipFile" option is deprecated. Use "pluginData" instead.'));const e="targetFolderName"in h?h.targetFolderName:"";let d="",g="";if(t instanceof File){const q=t.name.split("/").pop()||"plugin.zip";g=rr(q),i==null||i.tracker.setCaption(`Installing the ${g} plugin`);const P=await Ir(r,{ifAlreadyInstalled:c,zipFile:t,targetPath:`${await r.documentRoot}/wp-content/plugins`,targetFolderName:e});d=P.assetFolderPath,g=P.assetFolderName}else if(t){g=t.name,i==null||i.tracker.setCaption(`Installing the ${g} plugin`);const q=W.joinPaths(await r.documentRoot,"wp-content","plugins",e||t.name);await Ne.writeFiles(r,q,t.files,{rmRoot:!0}),d=q}("activate"in h?h.activate:!0)&&await pr(r,{pluginPath:d,pluginName:g},i)},Vr=async(r,{themeData:t,themeZipFile:p,ifAlreadyInstalled:c,options:h={}},i)=>{p&&(t=p,ce.logger.warn('The "themeZipFile" option is deprecated. Use "themeData" instead.'));const e="targetFolderName"in h?h.targetFolderName:"";let d="",g="";if(t instanceof File){const P=t.name.split("/").pop()||"theme.zip";g=rr(P),i==null||i.tracker.setCaption(`Installing the ${g} theme`),d=(await Ir(r,{ifAlreadyInstalled:c,zipFile:t,targetPath:`${await r.documentRoot}/wp-content/themes`,targetFolderName:e})).assetFolderName}else{g=t.name,d=e||g,i==null||i.tracker.setCaption(`Installing the ${g} theme`);const P=W.joinPaths(await r.documentRoot,"wp-content","themes",d);await Ne.writeFiles(r,P,t.files,{rmRoot:!0})}("activate"in h?h.activate:!0)&&await fr(r,{themeFolderName:d},i),("importStarterContent"in h?h.importStarterContent:!1)&&await hr(r,{themeSlug:d},i)},Mr=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)},zr=async(r,t,p)=>{var h;(h=p==null?void 0:p.tracker)==null||h.setCaption("Resetting WordPress data");const c=await r.documentRoot;await r.run({env:{DOCROOT:c},code:`<?php
|
|
515
515
|
require getenv('DOCROOT') . '/wp-load.php';
|
|
516
516
|
|
|
517
517
|
$GLOBALS['@pdo']->query('DELETE FROM wp_posts WHERE id > 0');
|
|
@@ -525,11 +525,11 @@ function skip_whitespace($tokens) {
|
|
|
525
525
|
|
|
526
526
|
$GLOBALS['@pdo']->query('DELETE FROM wp_commentmeta');
|
|
527
527
|
$GLOBALS['@pdo']->query("UPDATE SQLITE_SEQUENCE SET SEQ=0 WHERE NAME='wp_commentmeta'");
|
|
528
|
-
`})},
|
|
528
|
+
`})},Br=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"}})},Hr=async(r,{selfContained:t=!1}={})=>{const p="/tmp/wordpress-playground.zip",c=await r.documentRoot,h=W.joinPaths(c,"wp-content");let i=ar;t&&(i=i.filter(g=>!g.startsWith("themes/twenty")).filter(g=>g!=="mu-plugins/sqlite-database-integration"));const e=W.phpVars({zipPath:p,wpContentPath:h,documentRoot:c,exceptPaths:i.map(g=>W.joinPaths(c,"wp-content",g)),additionalPaths:t?{[W.joinPaths(c,"wp-config.php")]:"wp-config.php"}:{}});await ot(r,`zipDir(${e.wpContentPath}, ${e.zipPath}, array(
|
|
529
529
|
'exclude_paths' => ${e.exceptPaths},
|
|
530
530
|
'zip_root' => ${e.documentRoot},
|
|
531
531
|
'additional_paths' => ${e.additionalPaths}
|
|
532
|
-
));`);const d=await r.readFileAsBuffer(p);return r.unlink(p),d},
|
|
532
|
+
));`);const d=await r.readFileAsBuffer(p);return r.unlink(p),d},it=`<?php
|
|
533
533
|
|
|
534
534
|
function zipDir($root, $output, $options = array())
|
|
535
535
|
{
|
|
@@ -588,10 +588,10 @@ function join_paths()
|
|
|
588
588
|
|
|
589
589
|
return preg_replace('#/+#', '/', join('/', $paths));
|
|
590
590
|
}
|
|
591
|
-
`;async function
|
|
591
|
+
`;async function ot(r,t){return await r.run({code:it+t})}const nt=(r,t,p=wr.MinifiedWordPressVersions.beta,c=wr.LatestMinifiedWordPressVersion)=>(r.match(/^(\d.\d(.\d)?)-(alpha|beta|nightly|rc).*$/i)?r=p.replace(/^(\d.\d)(.\d+)/i,"$1").replace(/(rc|beta).*$/i,"RC"):r.match(/^(\d+\.\d+)(?:\.\d+)?$/)||(r=c),`https://downloads.wordpress.org/translation/core/${r}/${t}.zip`),Gr=async(r,{language:t},p)=>{p==null||p.tracker.setCaption((p==null?void 0:p.initialCaption)||"Translating"),await r.defineConstant("WPLANG",t);const c=await r.documentRoot,h=(await r.run({code:`<?php
|
|
592
592
|
require '${c}/wp-includes/version.php';
|
|
593
593
|
echo $wp_version;
|
|
594
|
-
`})).text
|
|
594
|
+
`})).text,i=[{url:nt(h,t),type:"core"}],d=(await r.run({code:`<?php
|
|
595
595
|
require_once('${c}/wp-load.php');
|
|
596
596
|
require_once('${c}/wp-admin/includes/plugin.php');
|
|
597
597
|
echo json_encode(
|
|
@@ -626,7 +626,7 @@ function join_paths()
|
|
|
626
626
|
wp_get_themes()
|
|
627
627
|
)
|
|
628
628
|
)
|
|
629
|
-
);`})).json;for(const{slug:q,version:P}of x)i.push({url:`https://downloads.wordpress.org/translation/theme/${q}/${P}/${t}.zip`,type:"theme"});await r.isDir(`${c}/wp-content/languages/plugins`)||await r.mkdir(`${c}/wp-content/languages/plugins`),await r.isDir(`${c}/wp-content/languages/themes`)||await r.mkdir(`${c}/wp-content/languages/themes`);for(const{url:q,type:P}of i)try{const $=await fetch(q);if(!$.ok)throw new Error(`Failed to download translations for ${P}: ${$.statusText}`);let L=`${c}/wp-content/languages`;P==="plugin"?L+="/plugins":P==="theme"&&(L+="/themes"),await
|
|
629
|
+
);`})).json;for(const{slug:q,version:P}of x)i.push({url:`https://downloads.wordpress.org/translation/theme/${q}/${P}/${t}.zip`,type:"theme"});await r.isDir(`${c}/wp-content/languages/plugins`)||await r.mkdir(`${c}/wp-content/languages/plugins`),await r.isDir(`${c}/wp-content/languages/themes`)||await r.mkdir(`${c}/wp-content/languages/themes`);for(const{url:q,type:P}of i)try{const $=await fetch(q);if(!$.ok)throw new Error(`Failed to download translations for ${P}: ${$.statusText}`);let L=`${c}/wp-content/languages`;P==="plugin"?L+="/plugins":P==="theme"&&(L+="/themes"),await kr.unzipFile(r,new File([await $.blob()],`${t}-${P}.zip`),L)}catch($){if(P==="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/.`);ce.logger.warn(`Error downloading translations for ${P}: ${$}`)}},at=Object.freeze(Object.defineProperty({__proto__:null,activatePlugin:pr,activateTheme:fr,cp:Lr,defineSiteUrl:yr,defineWpConfigConsts:Ke,enableMultisite:Rr,exportWXR:Wr,importThemeStarterContent:hr,importWordPressFiles:Cr,importWxr:xr,installPlugin:Ur,installTheme:Vr,login:Mr,mkdir:Sr,mv:Fr,request:Tr,resetData:zr,rm:lr,rmdir:Nr,runPHP:$r,runPHPWithOptions:Er,runSql:jr,runWpInstallationWizard:Br,setSiteLanguage:Gr,setSiteOptions:dr,unzip:er,updateUserMeta:qr,wpCLI:cr,writeFile:mr,writeFiles:Dr,zipWpContent:Hr},Symbol.toStringTag,{value:"Module"})),pt=["vfs","literal","wordpress.org/themes","wordpress.org/plugins","url","git:directory"];function ft(r){return r&&typeof r=="object"&&typeof r.resource=="string"&&pt.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:c,corsProxy:h}){let i;switch(t.resource){case"vfs":i=new lt(t,c);break;case"literal":i=new dt(t,c);break;case"wordpress.org/themes":i=new ht(t,c);break;case"wordpress.org/plugins":i=new gt(t,c);break;case"url":i=new ct(t,c);break;case"git:directory":i=new mt(t,c,{corsProxy:h});break;case"literal:directory":i=new yt(t,c);break;default:throw new Error(`Invalid resource: ${t}`)}return i=new bt(i),p&&(i=new wt(i,p)),i}}class Yr 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 lt 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 dt 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 gr extends ke{constructor(t){super(),this._progress=t}async resolve(){var p,c;(p=this.progress)==null||p.setCaption(this.caption);const t=this.getURL();try{let h=await fetch(t);if(!h.ok)throw new Error(`Could not download "${t}"`);if(h=await Or.cloneResponseMonitorProgress(h,((c=this.progress)==null?void 0:c.loadingListener)??ut),h.status!==200)throw new Error(`Could not download "${t}"`);return new File([await h.blob()],this.name)}catch(h){throw new Error(`Could not download "${t}".
|
|
630
630
|
Check if the URL is correct and the server is reachable.
|
|
631
631
|
If it is reachable, the server might be blocking the request.
|
|
632
632
|
Check the browser console and network tabs for more information.
|
|
@@ -650,11 +650,11 @@ function join_paths()
|
|
|
650
650
|
https://raw.githubusercontent.com/username/repository/branch/filename
|
|
651
651
|
|
|
652
652
|
Error:
|
|
653
|
-
${h}`)}}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 lt=()=>{};class dt extends gr{constructor(t,p){if(super(p),this.resource=t,this.resource.url.startsWith("https://github.com/")){const c=this.resource.url.match(/^https:\/\/github\.com\/(?<owner>[^/]+)\/(?<repo>[^/]+)\/blob\/(?<branch>[^/]+)\/(?<path>.+[^/])$/);c!=null&&c.groups&&(this.resource={...this.resource,url:`https://raw.githubusercontent.com/${c.groups.owner}/${c.groups.repo}/${c.groups.branch}/${c.groups.path}`})}}getURL(){return this.resource.url}get caption(){return this.resource.caption??super.caption}}class ut extends ke{constructor(t,p,c){super(),this.reference=t,this._progress=p,this.options=c}async resolve(){var d;const t=(d=this.options)!=null&&d.corsProxy?`${this.options.corsProxy}?${this.reference.url}`:this.reference.url,p=["","HEAD"].includes(this.reference.ref)?"HEAD":`refs/heads/${this.reference.ref}`,c=await ir.listGitFiles(t,p),h=this.reference.path.replace(/^\/+/,""),i=ir.listDescendantFiles(c,h);let e=await ir.sparseCheckout(t,p,i);return e=Object.fromEntries(Object.entries(e).map(([g,x])=>(g=g.substring(this.reference.path.length),g=g.replace(/^\/+/,""),[g,x]))),{name:W.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()}}class ct extends ke{constructor(t,p){super(),this.reference=t,this._progress=p}async resolve(){return this.reference}get name(){return this.reference.name}}class mt extends gr{constructor(t,p){super(p),this.resource=t}get name(){return rr(this.resource.slug)}getURL(){return`https://downloads.wordpress.org/theme/${Yr(this.resource.slug)}`}}class yt extends gr{constructor(t,p){super(p),this.resource=t}get name(){return rr(this.resource.slug)}getURL(){return`https://downloads.wordpress.org/plugin/${Yr(this.resource.slug)}`}}function Yr(r){return!r||r.endsWith(".zip")?r:r+".latest-stable.zip"}class ht extends Gr{async resolve(){return this.promise||(this.promise=this.resource.resolve()),this.promise}}class gt extends Gr{constructor(t,p){super(t),this.semaphore=p}async resolve(){return this.isAsync?this.semaphore.run(()=>this.resource.resolve()):this.resource.resolve()}}const bt={type:"object",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:{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"}},additionalProperties:!1},wt={type:"string",enum:["8.3","8.2","8.1","8.0","7.4","7.3","7.2","7.1","7.0"]},vt={type:"object",additionalProperties:{type:["string","boolean","number"]}},Zr=Object.prototype.hasOwnProperty;function K(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;const d=e;let g=!1;const x=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let M;if(r.resource===void 0&&(M="resource")||r.path===void 0&&(M="path")){const E={instancePath:t,schemaPath:"#/definitions/VFSReference/required",keyword:"required",params:{missingProperty:M},message:"must have required property '"+M+"'"};i===null?i=[E]:i.push(E),e++}else{const E=e;for(const u in r)if(!(u==="resource"||u==="path")){const j={instancePath:t,schemaPath:"#/definitions/VFSReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:u},message:"must NOT have additional properties"};i===null?i=[j]:i.push(j),e++;break}if(E===e){if(r.resource!==void 0){let u=r.resource;const j=e;if(typeof u!="string"){const z={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[z]:i.push(z),e++}if(u!=="vfs"){const z={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/const",keyword:"const",params:{allowedValue:"vfs"},message:"must be equal to constant"};i===null?i=[z]:i.push(z),e++}var P=j===e}else var P=!0;if(P)if(r.path!==void 0){const u=e;if(typeof r.path!="string"){const z={instancePath:t+"/path",schemaPath:"#/definitions/VFSReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[z]:i.push(z),e++}var P=u===e}else var P=!0}}}else{const M={instancePath:t,schemaPath:"#/definitions/VFSReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[M]:i.push(M),e++}var $=x===e;if(g=g||$,!g){const M=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let j;if(r.resource===void 0&&(j="resource")||r.name===void 0&&(j="name")||r.contents===void 0&&(j="contents")){const z={instancePath:t,schemaPath:"#/definitions/LiteralReference/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"};i===null?i=[z]:i.push(z),e++}else{const z=e;for(const y in r)if(!(y==="resource"||y==="name"||y==="contents")){const v={instancePath:t,schemaPath:"#/definitions/LiteralReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"};i===null?i=[v]:i.push(v),e++;break}if(z===e){if(r.resource!==void 0){let y=r.resource;const v=e;if(typeof y!="string"){const b={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[b]:i.push(b),e++}if(y!=="literal"){const b={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/const",keyword:"const",params:{allowedValue:"literal"},message:"must be equal to constant"};i===null?i=[b]:i.push(b),e++}var L=v===e}else var L=!0;if(L){if(r.name!==void 0){const y=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"};i===null?i=[b]:i.push(b),e++}var L=y===e}else var L=!0;if(L)if(r.contents!==void 0){let y=r.contents;const v=e,b=e;let T=!1;const w=e;if(typeof y!="string"){const D={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[D]:i.push(D),e++}var N=w===e;if(T=T||N,!T){const D=e;if(e===D)if(y&&typeof y=="object"&&!Array.isArray(y)){let R;if(y.BYTES_PER_ELEMENT===void 0&&(R="BYTES_PER_ELEMENT")||y.buffer===void 0&&(R="buffer")||y.byteLength===void 0&&(R="byteLength")||y.byteOffset===void 0&&(R="byteOffset")||y.length===void 0&&(R="length")){const U={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/required",keyword:"required",params:{missingProperty:R},message:"must have required property '"+R+"'"};i===null?i=[U]:i.push(U),e++}else{const U=e;for(const F in y)if(!(F==="BYTES_PER_ELEMENT"||F==="buffer"||F==="byteLength"||F==="byteOffset"||F==="length")){let G=y[F];const se=e;if(!(typeof G=="number"&&isFinite(G))){const Y={instancePath:t+"/contents/"+F.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Y]:i.push(Y),e++}var m=se===e;if(!m)break}if(U===e){if(y.BYTES_PER_ELEMENT!==void 0){let F=y.BYTES_PER_ELEMENT;const G=e;if(!(typeof F=="number"&&isFinite(F))){const se={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"};i===null?i=[se]:i.push(se),e++}var I=G===e}else var I=!0;if(I){if(y.buffer!==void 0){let F=y.buffer;const G=e;if(e===G)if(F&&typeof F=="object"&&!Array.isArray(F)){let Y;if(F.byteLength===void 0&&(Y="byteLength")){const C={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:Y},message:"must have required property '"+Y+"'"};i===null?i=[C]:i.push(C),e++}else{const C=e;for(const H in F)if(H!=="byteLength"){const X={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:H},message:"must NOT have additional properties"};i===null?i=[X]:i.push(X),e++;break}if(C===e&&F.byteLength!==void 0){let H=F.byteLength;if(!(typeof H=="number"&&isFinite(H))){const X={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"};i===null?i=[X]:i.push(X),e++}}}}else{const Y={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[Y]:i.push(Y),e++}var I=G===e}else var I=!0;if(I){if(y.byteLength!==void 0){let F=y.byteLength;const G=e;if(!(typeof F=="number"&&isFinite(F))){const Y={instancePath:t+"/contents/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Y]:i.push(Y),e++}var I=G===e}else var I=!0;if(I){if(y.byteOffset!==void 0){let F=y.byteOffset;const G=e;if(!(typeof F=="number"&&isFinite(F))){const Y={instancePath:t+"/contents/byteOffset",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Y]:i.push(Y),e++}var I=G===e}else var I=!0;if(I)if(y.length!==void 0){let F=y.length;const G=e;if(!(typeof F=="number"&&isFinite(F))){const Y={instancePath:t+"/contents/length",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Y]:i.push(Y),e++}var I=G===e}else var I=!0}}}}}}else{const R={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[R]:i.push(R),e++}var N=D===e;T=T||N}if(T)e=b,i!==null&&(b?i.length=b:i=null);else{const D={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};i===null?i=[D]:i.push(D),e++}var L=v===e}else var L=!0}}}}else{const j={instancePath:t,schemaPath:"#/definitions/LiteralReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[j]:i.push(j),e++}var $=M===e;if(g=g||$,!g){const j=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let v;if(r.resource===void 0&&(v="resource")||r.slug===void 0&&(v="slug")){const b={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/required",keyword:"required",params:{missingProperty:v},message:"must have required property '"+v+"'"};i===null?i=[b]:i.push(b),e++}else{const b=e;for(const T in r)if(!(T==="resource"||T==="slug")){const w={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:T},message:"must NOT have additional properties"};i===null?i=[w]:i.push(w),e++;break}if(b===e){if(r.resource!==void 0){let T=r.resource;const w=e;if(typeof T!="string"){const l={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[l]:i.push(l),e++}if(T!=="wordpress.org/themes"){const l={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/themes"},message:"must be equal to constant"};i===null?i=[l]:i.push(l),e++}var V=w===e}else var V=!0;if(V)if(r.slug!==void 0){const T=e;if(typeof r.slug!="string"){const l={instancePath:t+"/slug",schemaPath:"#/definitions/CoreThemeReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[l]:i.push(l),e++}var V=T===e}else var V=!0}}}else{const v={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[v]:i.push(v),e++}var $=j===e;if(g=g||$,!g){const v=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 l={instancePath:t,schemaPath:"#/definitions/CorePluginReference/required",keyword:"required",params:{missingProperty:w},message:"must have required property '"+w+"'"};i===null?i=[l]:i.push(l),e++}else{const l=e;for(const D in r)if(!(D==="resource"||D==="slug")){const A={instancePath:t,schemaPath:"#/definitions/CorePluginReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:D},message:"must NOT have additional properties"};i===null?i=[A]:i.push(A),e++;break}if(l===e){if(r.resource!==void 0){let D=r.resource;const A=e;if(typeof D!="string"){const R={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[R]:i.push(R),e++}if(D!=="wordpress.org/plugins"){const R={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/plugins"},message:"must be equal to constant"};i===null?i=[R]:i.push(R),e++}var Q=A===e}else var Q=!0;if(Q)if(r.slug!==void 0){const D=e;if(typeof r.slug!="string"){const R={instancePath:t+"/slug",schemaPath:"#/definitions/CorePluginReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[R]:i.push(R),e++}var Q=D===e}else var Q=!0}}}else{const w={instancePath:t,schemaPath:"#/definitions/CorePluginReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[w]:i.push(w),e++}var $=v===e;if(g=g||$,!g){const w=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let A;if(r.resource===void 0&&(A="resource")||r.url===void 0&&(A="url")){const R={instancePath:t,schemaPath:"#/definitions/UrlReference/required",keyword:"required",params:{missingProperty:A},message:"must have required property '"+A+"'"};i===null?i=[R]:i.push(R),e++}else{const R=e;for(const U in r)if(!(U==="resource"||U==="url"||U==="caption")){const F={instancePath:t,schemaPath:"#/definitions/UrlReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:U},message:"must NOT have additional properties"};i===null?i=[F]:i.push(F),e++;break}if(R===e){if(r.resource!==void 0){let U=r.resource;const F=e;if(typeof U!="string"){const G={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[G]:i.push(G),e++}if(U!=="url"){const G={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant"};i===null?i=[G]:i.push(G),e++}var _=F===e}else var _=!0;if(_){if(r.url!==void 0){const U=e;if(typeof r.url!="string"){const G={instancePath:t+"/url",schemaPath:"#/definitions/UrlReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[G]:i.push(G),e++}var _=U===e}else var _=!0;if(_)if(r.caption!==void 0){const U=e;if(typeof r.caption!="string"){const G={instancePath:t+"/caption",schemaPath:"#/definitions/UrlReference/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[G]:i.push(G),e++}var _=U===e}else var _=!0}}}}else{const A={instancePath:t,schemaPath:"#/definitions/UrlReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[A]:i.push(A),e++}var $=w===e;g=g||$}}}}if(g)e=d,i!==null&&(d?i.length=d:i=null);else{const M={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[M]:i.push(M),e++,K.errors=i,!1}return K.errors=i,e===0}const or={type:"object",discriminator:{propertyName:"step"},required:["step"],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:
|
|
653
|
+
${h}`)}}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 ut=()=>{};class ct extends gr{constructor(t,p){if(super(p),this.resource=t,this.resource.url.startsWith("https://github.com/")){const c=this.resource.url.match(/^https:\/\/github\.com\/(?<owner>[^/]+)\/(?<repo>[^/]+)\/blob\/(?<branch>[^/]+)\/(?<path>.+[^/])$/);c!=null&&c.groups&&(this.resource={...this.resource,url:`https://raw.githubusercontent.com/${c.groups.owner}/${c.groups.repo}/${c.groups.branch}/${c.groups.path}`})}}getURL(){return this.resource.url}get caption(){return this.resource.caption??super.caption}}class mt extends ke{constructor(t,p,c){super(),this.reference=t,this._progress=p,this.options=c}async resolve(){var d;const t=(d=this.options)!=null&&d.corsProxy?`${this.options.corsProxy}?${this.reference.url}`:this.reference.url,p=["","HEAD"].includes(this.reference.ref)?"HEAD":`refs/heads/${this.reference.ref}`,c=await ir.listGitFiles(t,p),h=this.reference.path.replace(/^\/+/,""),i=ir.listDescendantFiles(c,h);let e=await ir.sparseCheckout(t,p,i);return e=Object.fromEntries(Object.entries(e).map(([g,x])=>(g=g.substring(this.reference.path.length),g=g.replace(/^\/+/,""),[g,x]))),{name:W.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()}}class yt extends ke{constructor(t,p){super(),this.reference=t,this._progress=p}async resolve(){return this.reference}get name(){return this.reference.name}}class ht extends gr{constructor(t,p){super(p),this.resource=t}get name(){return rr(this.resource.slug)}getURL(){return`https://downloads.wordpress.org/theme/${Zr(this.resource.slug)}`}}class gt extends gr{constructor(t,p){super(p),this.resource=t}get name(){return rr(this.resource.slug)}getURL(){return`https://downloads.wordpress.org/plugin/${Zr(this.resource.slug)}`}}function Zr(r){return!r||r.endsWith(".zip")?r:r+".latest-stable.zip"}class bt extends Yr{async resolve(){return this.promise||(this.promise=this.resource.resolve()),this.promise}}class wt extends Yr{constructor(t,p){super(t),this.semaphore=p}async resolve(){return this.isAsync?this.semaphore.run(()=>this.resource.resolve()):this.resource.resolve()}}const vt={type:"object",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:{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"}},additionalProperties:!1},Pt={type:"string",enum:["8.3","8.2","8.1","8.0","7.4","7.3","7.2","7.1","7.0"]},_t={type:"object",additionalProperties:{type:["string","boolean","number"]}},Qr=Object.prototype.hasOwnProperty;function K(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;const d=e;let g=!1;const x=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let M;if(r.resource===void 0&&(M="resource")||r.path===void 0&&(M="path")){const E={instancePath:t,schemaPath:"#/definitions/VFSReference/required",keyword:"required",params:{missingProperty:M},message:"must have required property '"+M+"'"};i===null?i=[E]:i.push(E),e++}else{const E=e;for(const u in r)if(!(u==="resource"||u==="path")){const j={instancePath:t,schemaPath:"#/definitions/VFSReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:u},message:"must NOT have additional properties"};i===null?i=[j]:i.push(j),e++;break}if(E===e){if(r.resource!==void 0){let u=r.resource;const j=e;if(typeof u!="string"){const z={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[z]:i.push(z),e++}if(u!=="vfs"){const z={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/const",keyword:"const",params:{allowedValue:"vfs"},message:"must be equal to constant"};i===null?i=[z]:i.push(z),e++}var P=j===e}else var P=!0;if(P)if(r.path!==void 0){const u=e;if(typeof r.path!="string"){const z={instancePath:t+"/path",schemaPath:"#/definitions/VFSReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[z]:i.push(z),e++}var P=u===e}else var P=!0}}}else{const M={instancePath:t,schemaPath:"#/definitions/VFSReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[M]:i.push(M),e++}var $=x===e;if(g=g||$,!g){const M=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let j;if(r.resource===void 0&&(j="resource")||r.name===void 0&&(j="name")||r.contents===void 0&&(j="contents")){const z={instancePath:t,schemaPath:"#/definitions/LiteralReference/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"};i===null?i=[z]:i.push(z),e++}else{const z=e;for(const y in r)if(!(y==="resource"||y==="name"||y==="contents")){const v={instancePath:t,schemaPath:"#/definitions/LiteralReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"};i===null?i=[v]:i.push(v),e++;break}if(z===e){if(r.resource!==void 0){let y=r.resource;const v=e;if(typeof y!="string"){const b={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[b]:i.push(b),e++}if(y!=="literal"){const b={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/const",keyword:"const",params:{allowedValue:"literal"},message:"must be equal to constant"};i===null?i=[b]:i.push(b),e++}var L=v===e}else var L=!0;if(L){if(r.name!==void 0){const y=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"};i===null?i=[b]:i.push(b),e++}var L=y===e}else var L=!0;if(L)if(r.contents!==void 0){let y=r.contents;const v=e,b=e;let T=!1;const w=e;if(typeof y!="string"){const D={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[D]:i.push(D),e++}var N=w===e;if(T=T||N,!T){const D=e;if(e===D)if(y&&typeof y=="object"&&!Array.isArray(y)){let R;if(y.BYTES_PER_ELEMENT===void 0&&(R="BYTES_PER_ELEMENT")||y.buffer===void 0&&(R="buffer")||y.byteLength===void 0&&(R="byteLength")||y.byteOffset===void 0&&(R="byteOffset")||y.length===void 0&&(R="length")){const U={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/required",keyword:"required",params:{missingProperty:R},message:"must have required property '"+R+"'"};i===null?i=[U]:i.push(U),e++}else{const U=e;for(const F in y)if(!(F==="BYTES_PER_ELEMENT"||F==="buffer"||F==="byteLength"||F==="byteOffset"||F==="length")){let G=y[F];const se=e;if(!(typeof G=="number"&&isFinite(G))){const Y={instancePath:t+"/contents/"+F.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Y]:i.push(Y),e++}var m=se===e;if(!m)break}if(U===e){if(y.BYTES_PER_ELEMENT!==void 0){let F=y.BYTES_PER_ELEMENT;const G=e;if(!(typeof F=="number"&&isFinite(F))){const se={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"};i===null?i=[se]:i.push(se),e++}var I=G===e}else var I=!0;if(I){if(y.buffer!==void 0){let F=y.buffer;const G=e;if(e===G)if(F&&typeof F=="object"&&!Array.isArray(F)){let Y;if(F.byteLength===void 0&&(Y="byteLength")){const C={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:Y},message:"must have required property '"+Y+"'"};i===null?i=[C]:i.push(C),e++}else{const C=e;for(const H in F)if(H!=="byteLength"){const X={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:H},message:"must NOT have additional properties"};i===null?i=[X]:i.push(X),e++;break}if(C===e&&F.byteLength!==void 0){let H=F.byteLength;if(!(typeof H=="number"&&isFinite(H))){const X={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"};i===null?i=[X]:i.push(X),e++}}}}else{const Y={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[Y]:i.push(Y),e++}var I=G===e}else var I=!0;if(I){if(y.byteLength!==void 0){let F=y.byteLength;const G=e;if(!(typeof F=="number"&&isFinite(F))){const Y={instancePath:t+"/contents/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Y]:i.push(Y),e++}var I=G===e}else var I=!0;if(I){if(y.byteOffset!==void 0){let F=y.byteOffset;const G=e;if(!(typeof F=="number"&&isFinite(F))){const Y={instancePath:t+"/contents/byteOffset",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Y]:i.push(Y),e++}var I=G===e}else var I=!0;if(I)if(y.length!==void 0){let F=y.length;const G=e;if(!(typeof F=="number"&&isFinite(F))){const Y={instancePath:t+"/contents/length",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Y]:i.push(Y),e++}var I=G===e}else var I=!0}}}}}}else{const R={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[R]:i.push(R),e++}var N=D===e;T=T||N}if(T)e=b,i!==null&&(b?i.length=b:i=null);else{const D={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};i===null?i=[D]:i.push(D),e++}var L=v===e}else var L=!0}}}}else{const j={instancePath:t,schemaPath:"#/definitions/LiteralReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[j]:i.push(j),e++}var $=M===e;if(g=g||$,!g){const j=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let v;if(r.resource===void 0&&(v="resource")||r.slug===void 0&&(v="slug")){const b={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/required",keyword:"required",params:{missingProperty:v},message:"must have required property '"+v+"'"};i===null?i=[b]:i.push(b),e++}else{const b=e;for(const T in r)if(!(T==="resource"||T==="slug")){const w={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:T},message:"must NOT have additional properties"};i===null?i=[w]:i.push(w),e++;break}if(b===e){if(r.resource!==void 0){let T=r.resource;const w=e;if(typeof T!="string"){const l={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[l]:i.push(l),e++}if(T!=="wordpress.org/themes"){const l={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/themes"},message:"must be equal to constant"};i===null?i=[l]:i.push(l),e++}var V=w===e}else var V=!0;if(V)if(r.slug!==void 0){const T=e;if(typeof r.slug!="string"){const l={instancePath:t+"/slug",schemaPath:"#/definitions/CoreThemeReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[l]:i.push(l),e++}var V=T===e}else var V=!0}}}else{const v={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[v]:i.push(v),e++}var $=j===e;if(g=g||$,!g){const v=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 l={instancePath:t,schemaPath:"#/definitions/CorePluginReference/required",keyword:"required",params:{missingProperty:w},message:"must have required property '"+w+"'"};i===null?i=[l]:i.push(l),e++}else{const l=e;for(const D in r)if(!(D==="resource"||D==="slug")){const A={instancePath:t,schemaPath:"#/definitions/CorePluginReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:D},message:"must NOT have additional properties"};i===null?i=[A]:i.push(A),e++;break}if(l===e){if(r.resource!==void 0){let D=r.resource;const A=e;if(typeof D!="string"){const R={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[R]:i.push(R),e++}if(D!=="wordpress.org/plugins"){const R={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/plugins"},message:"must be equal to constant"};i===null?i=[R]:i.push(R),e++}var Q=A===e}else var Q=!0;if(Q)if(r.slug!==void 0){const D=e;if(typeof r.slug!="string"){const R={instancePath:t+"/slug",schemaPath:"#/definitions/CorePluginReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[R]:i.push(R),e++}var Q=D===e}else var Q=!0}}}else{const w={instancePath:t,schemaPath:"#/definitions/CorePluginReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[w]:i.push(w),e++}var $=v===e;if(g=g||$,!g){const w=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let A;if(r.resource===void 0&&(A="resource")||r.url===void 0&&(A="url")){const R={instancePath:t,schemaPath:"#/definitions/UrlReference/required",keyword:"required",params:{missingProperty:A},message:"must have required property '"+A+"'"};i===null?i=[R]:i.push(R),e++}else{const R=e;for(const U in r)if(!(U==="resource"||U==="url"||U==="caption")){const F={instancePath:t,schemaPath:"#/definitions/UrlReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:U},message:"must NOT have additional properties"};i===null?i=[F]:i.push(F),e++;break}if(R===e){if(r.resource!==void 0){let U=r.resource;const F=e;if(typeof U!="string"){const G={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[G]:i.push(G),e++}if(U!=="url"){const G={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant"};i===null?i=[G]:i.push(G),e++}var _=F===e}else var _=!0;if(_){if(r.url!==void 0){const U=e;if(typeof r.url!="string"){const G={instancePath:t+"/url",schemaPath:"#/definitions/UrlReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[G]:i.push(G),e++}var _=U===e}else var _=!0;if(_)if(r.caption!==void 0){const U=e;if(typeof r.caption!="string"){const G={instancePath:t+"/caption",schemaPath:"#/definitions/UrlReference/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[G]:i.push(G),e++}var _=U===e}else var _=!0}}}}else{const A={instancePath:t,schemaPath:"#/definitions/UrlReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[A]:i.push(A),e++}var $=w===e;g=g||$}}}}if(g)e=d,i!==null&&(d?i.length=d:i=null);else{const M={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[M]:i.push(M),e++,K.errors=i,!1}return K.errors=i,e===0}const or={type:"object",discriminator:{propertyName:"step"},required:["step"],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:
|
|
654
654
|
|
|
655
655
|
- 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.
|
|
656
656
|
|
|
657
657
|
- 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.
|
|
658
658
|
This option is only kept in here to avoid breaking Blueprint schema validation
|
|
659
659
|
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"}},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 either a plugin zip 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.
|
|
660
|
-
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 data to write"}},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"]}]},Pt={type:"object",additionalProperties:{anyOf:[{$ref:"#/definitions/FileTree"},{type:["object","string"]}]},properties:{}},nr={validate:Re};function Re(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r))for(const x in r){let q=r[x];const P=e,$=e;let L=!1;const N=e;nr.validate(q,{instancePath:t+"/"+x.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:r,parentDataProperty:x,rootData:h})||(i=i===null?nr.validate.errors:i.concat(nr.validate.errors),e=i.length);var d=N===e;if(L=L||d,!L){const m=e;if(!(q&&typeof q=="object"&&!Array.isArray(q))&&typeof q!="string"){const V={instancePath:t+"/"+x.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf/1/type",keyword:"type",params:{type:Pt.additionalProperties.anyOf[1].type},message:"must be object,string"};i===null?i=[V]:i.push(V),e++}var d=m===e;L=L||d}if(L)e=$,i!==null&&($?i.length=$:i=null);else{const m={instancePath:t+"/"+x.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[m]:i.push(m),e++,Re.errors=i,!1}var g=P===e;if(!g)break}else return Re.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Re.errors=i,e===0}function _e(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=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 x=e;for(const q in r)if(!(q==="resource"||q==="files"||q==="name"))return _e.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:q},message:"must NOT have additional properties"}],!1;if(x===e){if(r.resource!==void 0){let q=r.resource;const P=e;if(typeof q!="string")return _e.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(q!=="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=P===e}else var d=!0;if(d){if(r.files!==void 0){const q=e;Re(r.files,{instancePath:t+"/files",parentData:r,parentDataProperty:"files",rootData:h})||(i=i===null?Re.errors:i.concat(Re.errors),e=i.length);var d=q===e}else var d=!0;if(d)if(r.name!==void 0){const q=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=q===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=i,e===0}function ye(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;const d=e;let g=!1;const x=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let L;if(r.resource===void 0&&(L="resource")||r.url===void 0&&(L="url")||r.ref===void 0&&(L="ref")||r.path===void 0&&(L="path")){const N={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/required",keyword:"required",params:{missingProperty:L},message:"must have required property '"+L+"'"};i===null?i=[N]:i.push(N),e++}else{const N=e;for(const m in r)if(!(m==="resource"||m==="url"||m==="ref"||m==="path")){const I={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};i===null?i=[I]:i.push(I),e++;break}if(N===e){if(r.resource!==void 0){let m=r.resource;const I=e;if(typeof m!="string"){const V={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[V]:i.push(V),e++}if(m!=="git:directory"){const V={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/const",keyword:"const",params:{allowedValue:"git:directory"},message:"must be equal to constant"};i===null?i=[V]:i.push(V),e++}var P=I===e}else var P=!0;if(P){if(r.url!==void 0){const m=e;if(typeof r.url!="string"){const V={instancePath:t+"/url",schemaPath:"#/definitions/GitDirectoryReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[V]:i.push(V),e++}var P=m===e}else var P=!0;if(P){if(r.ref!==void 0){const m=e;if(typeof r.ref!="string"){const V={instancePath:t+"/ref",schemaPath:"#/definitions/GitDirectoryReference/properties/ref/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[V]:i.push(V),e++}var P=m===e}else var P=!0;if(P)if(r.path!==void 0){const m=e;if(typeof r.path!="string"){const V={instancePath:t+"/path",schemaPath:"#/definitions/GitDirectoryReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[V]:i.push(V),e++}var P=m===e}else var P=!0}}}}}else{const L={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[L]:i.push(L),e++}var $=x===e;if(g=g||$,!g){const L=e;_e(r,{instancePath:t,parentData:p,parentDataProperty:c,rootData:h})||(i=i===null?_e.errors:i.concat(_e.errors),e=i.length);var $=L===e;g=g||$}if(g)e=d,i!==null&&(d?i.length=d:i=null);else{const L={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[L]:i.push(L),e++,ye.errors=i,!1}return ye.errors=i,e===0}const Qr={type:"string",enum:["GET","POST","HEAD","OPTIONS","PATCH","PUT","DELETE"]};function ue(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let V;if(r.url===void 0&&(V="url"))return ue.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:V},message:"must have required property '"+V+"'"}],!1;{const Q=e;for(const _ in r)if(!(_==="method"||_==="url"||_==="headers"||_==="body"))return ue.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:_},message:"must NOT have additional properties"}],!1;if(Q===e){if(r.method!==void 0){let _=r.method;const M=e;if(typeof _!="string")return ue.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 ue.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Qr.enum},message:"must be equal to one of the allowed values"}],!1;var d=M===e}else var d=!0;if(d){if(r.url!==void 0){const _=e;if(typeof r.url!="string")return ue.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=_===e}else var d=!0;if(d){if(r.headers!==void 0){let _=r.headers;const M=e;if(e===e)if(_&&typeof _=="object"&&!Array.isArray(_))for(const j in _){const z=e;if(typeof _[j]!="string")return ue.errors=[{instancePath:t+"/headers/"+j.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=z===e;if(!g)break}else return ue.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=M===e}else var d=!0;if(d)if(r.body!==void 0){let _=r.body;const M=e,E=e;let u=!1;const j=e;if(typeof _!="string"){const y={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[y]:i.push(y),e++}var x=j===e;if(u=u||x,!u){const y=e;if(e===y)if(_&&typeof _=="object"&&!Array.isArray(_)){let b;if(_.BYTES_PER_ELEMENT===void 0&&(b="BYTES_PER_ELEMENT")||_.buffer===void 0&&(b="buffer")||_.byteLength===void 0&&(b="byteLength")||_.byteOffset===void 0&&(b="byteOffset")||_.length===void 0&&(b="length")){const T={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"};i===null?i=[T]:i.push(T),e++}else{const T=e;for(const w in _)if(!(w==="BYTES_PER_ELEMENT"||w==="buffer"||w==="byteLength"||w==="byteOffset"||w==="length")){let l=_[w];const D=e;if(!(typeof l=="number"&&isFinite(l))){const A={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"};i===null?i=[A]:i.push(A),e++}var q=D===e;if(!q)break}if(T===e){if(_.BYTES_PER_ELEMENT!==void 0){let w=_.BYTES_PER_ELEMENT;const l=e;if(!(typeof w=="number"&&isFinite(w))){const D={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"};i===null?i=[D]:i.push(D),e++}var P=l===e}else var P=!0;if(P){if(_.buffer!==void 0){let w=_.buffer;const l=e;if(e===l)if(w&&typeof w=="object"&&!Array.isArray(w)){let A;if(w.byteLength===void 0&&(A="byteLength")){const R={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:A},message:"must have required property '"+A+"'"};i===null?i=[R]:i.push(R),e++}else{const R=e;for(const U in w)if(U!=="byteLength"){const F={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:U},message:"must NOT have additional properties"};i===null?i=[F]:i.push(F),e++;break}if(R===e&&w.byteLength!==void 0){let U=w.byteLength;if(!(typeof U=="number"&&isFinite(U))){const F={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[F]:i.push(F),e++}}}}else{const A={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[A]:i.push(A),e++}var P=l===e}else var P=!0;if(P){if(_.byteLength!==void 0){let w=_.byteLength;const l=e;if(!(typeof w=="number"&&isFinite(w))){const A={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[A]:i.push(A),e++}var P=l===e}else var P=!0;if(P){if(_.byteOffset!==void 0){let w=_.byteOffset;const l=e;if(!(typeof w=="number"&&isFinite(w))){const A={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[A]:i.push(A),e++}var P=l===e}else var P=!0;if(P)if(_.length!==void 0){let w=_.length;const l=e;if(!(typeof w=="number"&&isFinite(w))){const A={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[A]:i.push(A),e++}var P=l===e}else var P=!0}}}}}}else{const b={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[b]:i.push(b),e++}var x=y===e;if(u=u||x,!u){const b=e;if(e===b)if(_&&typeof _=="object"&&!Array.isArray(_))for(const w in _){let l=_[w];const D=e,A=e;let R=!1;const U=e;if(typeof l!="string"){const F={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"};i===null?i=[F]:i.push(F),e++}var $=U===e;if(R=R||$,!R){const F=e;if(e===F)if(l&&typeof l=="object"&&!Array.isArray(l)){let se;if(l.BYTES_PER_ELEMENT===void 0&&(se="BYTES_PER_ELEMENT")||l.buffer===void 0&&(se="buffer")||l.byteLength===void 0&&(se="byteLength")||l.byteOffset===void 0&&(se="byteOffset")||l.length===void 0&&(se="length")){const Y={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/required",keyword:"required",params:{missingProperty:se},message:"must have required property '"+se+"'"};i===null?i=[Y]:i.push(Y),e++}else{const Y=e;for(const C in l)if(!(C==="BYTES_PER_ELEMENT"||C==="buffer"||C==="byteLength"||C==="byteOffset"||C==="length")){let H=l[C];const X=e;if(!(typeof H=="number"&&isFinite(H))){const Z={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+C.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"};i===null?i=[Z]:i.push(Z),e++}var L=X===e;if(!L)break}if(Y===e){if(l.BYTES_PER_ELEMENT!==void 0){let C=l.BYTES_PER_ELEMENT;const H=e;if(!(typeof C=="number"&&isFinite(C))){const X={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"};i===null?i=[X]:i.push(X),e++}var N=H===e}else var N=!0;if(N){if(l.buffer!==void 0){let C=l.buffer;const H=e;if(e===H)if(C&&typeof C=="object"&&!Array.isArray(C)){let Z;if(C.byteLength===void 0&&(Z="byteLength")){const oe={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:Z},message:"must have required property '"+Z+"'"};i===null?i=[oe]:i.push(oe),e++}else{const oe=e;for(const pe in C)if(pe!=="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:pe},message:"must NOT have additional properties"};i===null?i=[he]:i.push(he),e++;break}if(oe===e&&C.byteLength!==void 0){let pe=C.byteLength;if(!(typeof pe=="number"&&isFinite(pe))){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"};i===null?i=[he]:i.push(he),e++}}}}else{const Z={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"};i===null?i=[Z]:i.push(Z),e++}var N=H===e}else var N=!0;if(N){if(l.byteLength!==void 0){let C=l.byteLength;const H=e;if(!(typeof C=="number"&&isFinite(C))){const Z={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"};i===null?i=[Z]:i.push(Z),e++}var N=H===e}else var N=!0;if(N){if(l.byteOffset!==void 0){let C=l.byteOffset;const H=e;if(!(typeof C=="number"&&isFinite(C))){const Z={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"};i===null?i=[Z]:i.push(Z),e++}var N=H===e}else var N=!0;if(N)if(l.length!==void 0){let C=l.length;const H=e;if(!(typeof C=="number"&&isFinite(C))){const Z={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"};i===null?i=[Z]:i.push(Z),e++}var N=H===e}else var N=!0}}}}}}else{const se={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"};i===null?i=[se]:i.push(se),e++}var $=F===e;if(R=R||$,!R){const se=e;if(e===se)if(l&&typeof l=="object"&&!Array.isArray(l)){let C;if(l.lastModified===void 0&&(C="lastModified")||l.name===void 0&&(C="name")||l.size===void 0&&(C="size")||l.type===void 0&&(C="type")||l.webkitRelativePath===void 0&&(C="webkitRelativePath")){const H={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/required",keyword:"required",params:{missingProperty:C},message:"must have required property '"+C+"'"};i===null?i=[H]:i.push(H),e++}else{const H=e;for(const X in l)if(!(X==="size"||X==="type"||X==="lastModified"||X==="name"||X==="webkitRelativePath")){const Z={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:X},message:"must NOT have additional properties"};i===null?i=[Z]:i.push(Z),e++;break}if(H===e){if(l.size!==void 0){let X=l.size;const Z=e;if(!(typeof X=="number"&&isFinite(X))){const oe={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"};i===null?i=[oe]:i.push(oe),e++}var m=Z===e}else var m=!0;if(m){if(l.type!==void 0){const X=e;if(typeof l.type!="string"){const oe={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"};i===null?i=[oe]:i.push(oe),e++}var m=X===e}else var m=!0;if(m){if(l.lastModified!==void 0){let X=l.lastModified;const Z=e;if(!(typeof X=="number"&&isFinite(X))){const pe={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"};i===null?i=[pe]:i.push(pe),e++}var m=Z===e}else var m=!0;if(m){if(l.name!==void 0){const X=e;if(typeof l.name!="string"){const oe={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"};i===null?i=[oe]:i.push(oe),e++}var m=X===e}else var m=!0;if(m)if(l.webkitRelativePath!==void 0){const X=e;if(typeof l.webkitRelativePath!="string"){const oe={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"};i===null?i=[oe]:i.push(oe),e++}var m=X===e}else var m=!0}}}}}}else{const C={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"};i===null?i=[C]:i.push(C),e++}var $=se===e;R=R||$}}if(R)e=A,i!==null&&(A?i.length=A:i=null);else{const F={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"};i===null?i=[F]:i.push(F),e++}var I=D===e;if(!I)break}else{const w={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[w]:i.push(w),e++}var x=b===e;u=u||x}}if(u)e=E,i!==null&&(E?i.length=E:i=null);else{const y={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[y]:i.push(y),e++,ue.errors=i,!1}var d=M===e}else var d=!0}}}}}else return ue.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ue.errors=i,e===0}const _t={type:"object",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."}},additionalProperties:!1};function ne(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){const N=e;for(const m in r)if(!Zr.call(_t.properties,m))return ne.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"}],!1;if(N===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 I=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:Qr.enum},message:"must be equal to one of the allowed values"}],!1;var d=I===e}else var d=!0;if(d){if(r.headers!==void 0){let m=r.headers;const I=e;if(e===e)if(m&&typeof m=="object"&&!Array.isArray(m))for(const _ in m){const M=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=M===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 d=I===e}else var d=!0;if(d){if(r.body!==void 0){let m=r.body;const I=e,V=e;let Q=!1;const _=e;if(typeof m!="string"){const E={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[E]:i.push(E),e++}var x=_===e;if(Q=Q||x,!Q){const E=e;if(e===E)if(m&&typeof m=="object"&&!Array.isArray(m)){let j;if(m.BYTES_PER_ELEMENT===void 0&&(j="BYTES_PER_ELEMENT")||m.buffer===void 0&&(j="buffer")||m.byteLength===void 0&&(j="byteLength")||m.byteOffset===void 0&&(j="byteOffset")||m.length===void 0&&(j="length")){const z={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"};i===null?i=[z]:i.push(z),e++}else{const z=e;for(const y in m)if(!(y==="BYTES_PER_ELEMENT"||y==="buffer"||y==="byteLength"||y==="byteOffset"||y==="length")){let v=m[y];const b=e;if(!(typeof v=="number"&&isFinite(v))){const T={instancePath:t+"/body/"+y.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[T]:i.push(T),e++}var q=b===e;if(!q)break}if(z===e){if(m.BYTES_PER_ELEMENT!==void 0){let y=m.BYTES_PER_ELEMENT;const v=e;if(!(typeof y=="number"&&isFinite(y))){const b={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"};i===null?i=[b]:i.push(b),e++}var P=v===e}else var P=!0;if(P){if(m.buffer!==void 0){let y=m.buffer;const v=e;if(e===v)if(y&&typeof y=="object"&&!Array.isArray(y)){let T;if(y.byteLength===void 0&&(T="byteLength")){const w={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:T},message:"must have required property '"+T+"'"};i===null?i=[w]:i.push(w),e++}else{const w=e;for(const l in y)if(l!=="byteLength"){const D={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};i===null?i=[D]:i.push(D),e++;break}if(w===e&&y.byteLength!==void 0){let l=y.byteLength;if(!(typeof l=="number"&&isFinite(l))){const D={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[D]:i.push(D),e++}}}}else{const T={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[T]:i.push(T),e++}var P=v===e}else var P=!0;if(P){if(m.byteLength!==void 0){let y=m.byteLength;const v=e;if(!(typeof y=="number"&&isFinite(y))){const T={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[T]:i.push(T),e++}var P=v===e}else var P=!0;if(P){if(m.byteOffset!==void 0){let y=m.byteOffset;const v=e;if(!(typeof y=="number"&&isFinite(y))){const T={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[T]:i.push(T),e++}var P=v===e}else var P=!0;if(P)if(m.length!==void 0){let y=m.length;const v=e;if(!(typeof y=="number"&&isFinite(y))){const T={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[T]:i.push(T),e++}var P=v===e}else var P=!0}}}}}}else{const j={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[j]:i.push(j),e++}var x=E===e;Q=Q||x}if(Q)e=V,i!==null&&(V?i.length=V:i=null);else{const E={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[E]:i.push(E),e++,ne.errors=i,!1}var d=I===e}else var d=!0;if(d){if(r.env!==void 0){let m=r.env;const I=e;if(e===I)if(m&&typeof m=="object"&&!Array.isArray(m))for(const Q in m){const _=e;if(typeof m[Q]!="string")return ne.errors=[{instancePath:t+"/env/"+Q.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/env/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var $=_===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=I===e}else var d=!0;if(d){if(r.$_SERVER!==void 0){let m=r.$_SERVER;const I=e;if(e===I)if(m&&typeof m=="object"&&!Array.isArray(m))for(const Q in m){const _=e;if(typeof m[Q]!="string")return ne.errors=[{instancePath:t+"/$_SERVER/"+Q.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/%24_SERVER/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var L=_===e;if(!L)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=I===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=i,e===0}function o(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let sr;if(r.step===void 0&&(sr="step"))return o.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:sr},message:"must have required property '"+sr+"'"}],!1;{const J=r.step;if(typeof J=="string")if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="pluginPath"||s==="pluginName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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=O===e}else var d=!0;if(d)if(s.caption!==void 0){const n=e;if(typeof s.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=n===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 g=a===e}else var g=!0;if(g){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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=a===e}else var g=!0;if(g){if(r.pluginPath!==void 0){const s=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=s===e}else var g=!0;if(g)if(r.pluginName!==void 0){const s=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=s===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(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="themeFolderName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 x=O===e}else var x=!0;if(x)if(s.caption!==void 0){const n=e;if(typeof s.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 x=n===e}else var x=!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 q=a===e}else var q=!0;if(q){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 q=a===e}else var q=!0;if(q)if(r.themeFolderName!==void 0){const s=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 q=s===e}else var q=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="fromPath"||s==="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 P=O===e}else var P=!0;if(P)if(s.caption!==void 0){const n=e;if(typeof s.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 P=n===e}else var P=!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 $=a===e}else var $=!0;if($){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 $=a===e}else var $=!0;if($){if(r.fromPath!==void 0){const s=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 $=s===e}else var $=!0;if($)if(r.toPath!==void 0){const s=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 $=s===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(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="consts"||s==="method"||s==="virtualize"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 L=O===e}else var L=!0;if(L)if(s.caption!==void 0){const n=e;if(typeof s.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 L=n===e}else var L=!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 N=a===e}else var N=!0;if(N){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 N=a===e}else var N=!0;if(N){if(r.consts!==void 0){let s=r.consts;const a=e;if(e===a&&!(s&&typeof s=="object"&&!Array.isArray(s)))return o.errors=[{instancePath:t+"/consts",schemaPath:"#/oneOf/3/properties/consts/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var N=a===e}else var N=!0;if(N){if(r.method!==void 0){let s=r.method;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="rewrite-wp-config"||s==="define-before-run"))return o.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/enum",keyword:"enum",params:{allowedValues:or.oneOf[3].properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var N=a===e}else var N=!0;if(N)if(r.virtualize!==void 0){const s=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 N=s===e}else var N=!0}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="siteUrl"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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=O===e}else var m=!0;if(m)if(s.caption!==void 0){const n=e;if(typeof s.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=n===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 I=a===e}else var I=!0;if(I){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 I=a===e}else var I=!0;if(I)if(r.siteUrl!==void 0){const s=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 I=s===e}else var I=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="wpCliPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 V=O===e}else var V=!0;if(V)if(s.caption!==void 0){const n=e;if(typeof s.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 V=n===e}else var V=!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 Q=a===e}else var Q=!0;if(Q){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 Q=a===e}else var Q=!0;if(Q)if(r.wpCliPath!==void 0){const s=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 Q=s===e}else var Q=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="file"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 _=O===e}else var _=!0;if(_)if(s.caption!==void 0){const n=e;if(typeof s.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 _=n===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 M=a===e}else var M=!0;if(M){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 M=a===e}else var M=!0;if(M)if(r.file!==void 0){const s=e;K(r.file,{instancePath:t+"/file",parentData:r,parentDataProperty:"file",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var M=s===e}else var M=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="themeSlug"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 E=O===e}else var E=!0;if(E)if(s.caption!==void 0){const n=e;if(typeof s.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 E=n===e}else var E=!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 u=a===e}else var u=!0;if(u){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 u=a===e}else var u=!0;if(u)if(r.themeSlug!==void 0){const s=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 u=s===e}else var u=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="wordPressFilesZip"||s==="pathInZip"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 j=O===e}else var j=!0;if(j)if(s.caption!==void 0){const n=e;if(typeof s.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 j=n===e}else var j=!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 z=a===e}else var z=!0;if(z){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 z=a===e}else var z=!0;if(z){if(r.wordPressFilesZip!==void 0){const s=e;K(r.wordPressFilesZip,{instancePath:t+"/wordPressFilesZip",parentData:r,parentDataProperty:"wordPressFilesZip",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var z=s===e}else var z=!0;if(z)if(r.pathInZip!==void 0){const s=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 z=s===e}else var z=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="ifAlreadyInstalled"||s==="step"||s==="pluginData"||s==="pluginZipFile"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 y=O===e}else var y=!0;if(y)if(s.caption!==void 0){const n=e;if(typeof s.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 y=n===e}else var y=!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=a===e}else var v=!0;if(v){if(r.ifAlreadyInstalled!==void 0){let s=r.ifAlreadyInstalled;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="overwrite"||s==="skip"||s==="error"))return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:or.oneOf[9].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var v=a===e}else var v=!0;if(v){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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=a===e}else var v=!0;if(v){if(r.pluginData!==void 0){let s=r.pluginData;const a=e,k=e;let n=!1;const O=e;K(s,{instancePath:t+"/pluginData",parentData:r,parentDataProperty:"pluginData",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var b=O===e;if(n=n||b,!n){const ie=e;ye(s,{instancePath:t+"/pluginData",parentData:r,parentDataProperty:"pluginData",rootData:h})||(i=i===null?ye.errors:i.concat(ye.errors),e=i.length);var b=ie===e;n=n||b}if(n)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/pluginData",schemaPath:"#/oneOf/9/properties/pluginData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var v=a===e}else var v=!0;if(v){if(r.pluginZipFile!==void 0){const s=e;K(r.pluginZipFile,{instancePath:t+"/pluginZipFile",parentData:r,parentDataProperty:"pluginZipFile",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var v=s===e}else var v=!0;if(v)if(r.options!==void 0){let s=r.options;const a=e;if(e===e)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const te in s)if(!(te==="activate"||te==="targetFolderName"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:te},message:"must NOT have additional properties"}],!1;if(O===e){if(s.activate!==void 0){const te=e;if(typeof s.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 T=te===e}else var T=!0;if(T)if(s.targetFolderName!==void 0){const te=e;if(typeof s.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 T=te===e}else var T=!0}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var v=a===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(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="ifAlreadyInstalled"||s==="step"||s==="themeData"||s==="themeZipFile"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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=O===e}else var w=!0;if(w)if(s.caption!==void 0){const n=e;if(typeof s.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=n===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 l=a===e}else var l=!0;if(l){if(r.ifAlreadyInstalled!==void 0){let s=r.ifAlreadyInstalled;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="overwrite"||s==="skip"||s==="error"))return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:or.oneOf[10].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var l=a===e}else var l=!0;if(l){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 l=a===e}else var l=!0;if(l){if(r.themeData!==void 0){let s=r.themeData;const a=e,k=e;let n=!1;const O=e;K(s,{instancePath:t+"/themeData",parentData:r,parentDataProperty:"themeData",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var D=O===e;if(n=n||D,!n){const ie=e;ye(s,{instancePath:t+"/themeData",parentData:r,parentDataProperty:"themeData",rootData:h})||(i=i===null?ye.errors:i.concat(ye.errors),e=i.length);var D=ie===e;n=n||D}if(n)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/themeData",schemaPath:"#/oneOf/10/properties/themeData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var l=a===e}else var l=!0;if(l){if(r.themeZipFile!==void 0){const s=e;K(r.themeZipFile,{instancePath:t+"/themeZipFile",parentData:r,parentDataProperty:"themeZipFile",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var l=s===e}else var l=!0;if(l)if(r.options!==void 0){let s=r.options;const a=e;if(e===e)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const te in s)if(!(te==="activate"||te==="importStarterContent"||te==="targetFolderName"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:te},message:"must NOT have additional properties"}],!1;if(O===e){if(s.activate!==void 0){const te=e;if(typeof s.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 A=te===e}else var A=!0;if(A){if(s.importStarterContent!==void 0){const te=e;if(typeof s.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 A=te===e}else var A=!0;if(A)if(s.targetFolderName!==void 0){const te=e;if(typeof s.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 A=te===e}else var A=!0}}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var l=a===e}else var l=!0}}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="username"||s==="password"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 R=O===e}else var R=!0;if(R)if(s.caption!==void 0){const n=e;if(typeof s.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 R=n===e}else var R=!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 U=a===e}else var U=!0;if(U){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 U=a===e}else var U=!0;if(U){if(r.username!==void 0){const s=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 U=s===e}else var U=!0;if(U)if(r.password!==void 0){const s=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 U=s===e}else var U=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 F=O===e}else var F=!0;if(F)if(s.caption!==void 0){const n=e;if(typeof s.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 F=n===e}else var F=!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 G=a===e}else var G=!0;if(G){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 G=a===e}else var G=!0;if(G)if(r.path!==void 0){const s=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 G=s===e}else var G=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="fromPath"||s==="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 se=O===e}else var se=!0;if(se)if(s.caption!==void 0){const n=e;if(typeof s.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 se=n===e}else var se=!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 Y=a===e}else var Y=!0;if(Y){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 Y=a===e}else var Y=!0;if(Y){if(r.fromPath!==void 0){const s=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 Y=s===e}else var Y=!0;if(Y)if(r.toPath!==void 0){const s=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 Y=s===e}else var Y=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 C=O===e}else var C=!0;if(C)if(s.caption!==void 0){const n=e;if(typeof s.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 C=n===e}else var C=!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 H=a===e}else var H=!0;if(H)if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 H=a===e}else var H=!0}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="request"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 X=O===e}else var X=!0;if(X)if(s.caption!==void 0){const n=e;if(typeof s.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 X=n===e}else var X=!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 Z=a===e}else var Z=!0;if(Z){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 Z=a===e}else var Z=!0;if(Z)if(r.request!==void 0){const s=e;ue(r.request,{instancePath:t+"/request",parentData:r,parentDataProperty:"request",rootData:h})||(i=i===null?ue.errors:i.concat(ue.errors),e=i.length);var Z=s===e}else var Z=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 oe=O===e}else var oe=!0;if(oe)if(s.caption!==void 0){const n=e;if(typeof s.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 oe=n===e}else var oe=!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 pe=a===e}else var pe=!0;if(pe){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 pe=a===e}else var pe=!0;if(pe)if(r.path!==void 0){const s=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 pe=s===e}else var pe=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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=O===e}else var he=!0;if(he)if(s.caption!==void 0){const n=e;if(typeof s.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=n===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 Oe=a===e}else var Oe=!0;if(Oe){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 Oe=a===e}else var Oe=!0;if(Oe)if(r.path!==void 0){const s=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 Oe=s===e}else var Oe=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="code"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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=O===e}else var De=!0;if(De)if(s.caption!==void 0){const n=e;if(typeof s.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=n===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 $e=a===e}else var $e=!0;if($e){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 $e=a===e}else var $e=!0;if($e)if(r.code!==void 0){const s=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 $e=s===e}else var $e=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 xe=O===e}else var xe=!0;if(xe)if(s.caption!==void 0){const n=e;if(typeof s.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 xe=n===e}else var xe=!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=a===e}else var Ee=!0;if(Ee){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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=a===e}else var Ee=!0;if(Ee)if(r.options!==void 0){const s=e;ne(r.options,{instancePath:t+"/options",parentData:r,parentDataProperty:"options",rootData:h})||(i=i===null?ne.errors:i.concat(ne.errors),e=i.length);var Ee=s===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(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 Ce=O===e}else var Ce=!0;if(Ce)if(s.caption!==void 0){const n=e;if(typeof s.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 Ce=n===e}else var Ce=!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 je=a===e}else var je=!0;if(je){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 je=a===e}else var je=!0;if(je)if(r.options!==void 0){let s=r.options;const a=e;if(e===e)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const te in s)if(!(te==="adminUsername"||te==="adminPassword"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:te},message:"must NOT have additional properties"}],!1;if(O===e){if(s.adminUsername!==void 0){const te=e;if(typeof s.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=te===e}else var We=!0;if(We)if(s.adminPassword!==void 0){const te=e;if(typeof s.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=te===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 je=a===e}else var je=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="sql"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 Ie=O===e}else var Ie=!0;if(Ie)if(s.caption!==void 0){const n=e;if(typeof s.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 Ie=n===e}else var Ie=!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 Te=a===e}else var Te=!0;if(Te){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 Te=a===e}else var Te=!0;if(Te)if(r.sql!==void 0){const s=e;K(r.sql,{instancePath:t+"/sql",parentData:r,parentDataProperty:"sql",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var Te=s===e}else var Te=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 Ue=O===e}else var Ue=!0;if(Ue)if(s.caption!==void 0){const n=e;if(typeof s.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 Ue=n===e}else var Ue=!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 qe=a===e}else var qe=!0;if(qe){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 qe=a===e}else var qe=!0;if(qe)if(r.options!==void 0){let s=r.options;const a=e;if(e===a&&!(s&&typeof s=="object"&&!Array.isArray(s)))return o.errors=[{instancePath:t+"/options",schemaPath:"#/oneOf/22/properties/options/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var qe=a===e}else var qe=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="zipFile"||s==="zipPath"||s==="extractToPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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=O===e}else var Ve=!0;if(Ve)if(s.caption!==void 0){const n=e;if(typeof s.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=n===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=a===e}else var fe=!0;if(fe){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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=a===e}else var fe=!0;if(fe){if(r.zipFile!==void 0){const s=e;K(r.zipFile,{instancePath:t+"/zipFile",parentData:r,parentDataProperty:"zipFile",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var fe=s===e}else var fe=!0;if(fe){if(r.zipPath!==void 0){const s=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=s===e}else var fe=!0;if(fe)if(r.extractToPath!==void 0){const s=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=s===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(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="meta"||s==="userId"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 Me=O===e}else var Me=!0;if(Me)if(s.caption!==void 0){const n=e;if(typeof s.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 Me=n===e}else var Me=!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=a===e}else var ge=!0;if(ge){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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=a===e}else var ge=!0;if(ge){if(r.meta!==void 0){let s=r.meta;const a=e;if(e===a&&!(s&&typeof s=="object"&&!Array.isArray(s)))return o.errors=[{instancePath:t+"/meta",schemaPath:"#/oneOf/24/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ge=a===e}else var ge=!0;if(ge)if(r.userId!==void 0){let s=r.userId;const a=e;if(!(typeof s=="number"&&isFinite(s)))return o.errors=[{instancePath:t+"/userId",schemaPath:"#/oneOf/24/properties/userId/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ge=a===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(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"||s==="data"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 ze=O===e}else var ze=!0;if(ze)if(s.caption!==void 0){const n=e;if(typeof s.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 ze=n===e}else var ze=!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=a===e}else var be=!0;if(be){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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=a===e}else var be=!0;if(be){if(r.path!==void 0){const s=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=s===e}else var be=!0;if(be)if(r.data!==void 0){let s=r.data;const a=e,k=e;let n=!1;const O=e;K(s,{instancePath:t+"/data",parentData:r,parentDataProperty:"data",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var Le=O===e;if(n=n||Le,!n){const ie=e;if(typeof s!="string"){const Pe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[Pe]:i.push(Pe),e++}var Le=ie===e;if(n=n||Le,!n){const Pe=e;if(e===Pe)if(s&&typeof s=="object"&&!Array.isArray(s)){let me;if(s.BYTES_PER_ELEMENT===void 0&&(me="BYTES_PER_ELEMENT")||s.buffer===void 0&&(me="buffer")||s.byteLength===void 0&&(me="byteLength")||s.byteOffset===void 0&&(me="byteOffset")||s.length===void 0&&(me="length")){const Ze={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/required",keyword:"required",params:{missingProperty:me},message:"must have required property '"+me+"'"};i===null?i=[Ze]:i.push(Ze),e++}else{const Ze=e;for(const ee in s)if(!(ee==="BYTES_PER_ELEMENT"||ee==="buffer"||ee==="byteLength"||ee==="byteOffset"||ee==="length")){let de=s[ee];const Qe=e;if(!(typeof de=="number"&&isFinite(de))){const ae={instancePath:t+"/data/"+ee.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/oneOf/25/properties/data/anyOf/2/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ae]:i.push(ae),e++}var Xr=Qe===e;if(!Xr)break}if(Ze===e){if(s.BYTES_PER_ELEMENT!==void 0){let ee=s.BYTES_PER_ELEMENT;const de=e;if(!(typeof ee=="number"&&isFinite(ee))){const Qe={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"};i===null?i=[Qe]:i.push(Qe),e++}var le=de===e}else var le=!0;if(le){if(s.buffer!==void 0){let ee=s.buffer;const de=e;if(e===de)if(ee&&typeof ee=="object"&&!Array.isArray(ee)){let ae;if(ee.byteLength===void 0&&(ae="byteLength")){const Xe={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/required",keyword:"required",params:{missingProperty:ae},message:"must have required property '"+ae+"'"};i===null?i=[Xe]:i.push(Xe),e++}else{const Xe=e;for(const Fe in ee)if(Fe!=="byteLength"){const Se={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Fe},message:"must NOT have additional properties"};i===null?i=[Se]:i.push(Se),e++;break}if(Xe===e&&ee.byteLength!==void 0){let Fe=ee.byteLength;if(!(typeof Fe=="number"&&isFinite(Fe))){const Se={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"};i===null?i=[Se]:i.push(Se),e++}}}}else{const ae={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[ae]:i.push(ae),e++}var le=de===e}else var le=!0;if(le){if(s.byteLength!==void 0){let ee=s.byteLength;const de=e;if(!(typeof ee=="number"&&isFinite(ee))){const ae={instancePath:t+"/data/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ae]:i.push(ae),e++}var le=de===e}else var le=!0;if(le){if(s.byteOffset!==void 0){let ee=s.byteOffset;const de=e;if(!(typeof ee=="number"&&isFinite(ee))){const ae={instancePath:t+"/data/byteOffset",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ae]:i.push(ae),e++}var le=de===e}else var le=!0;if(le)if(s.length!==void 0){let ee=s.length;const de=e;if(!(typeof ee=="number"&&isFinite(ee))){const ae={instancePath:t+"/data/length",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ae]:i.push(ae),e++}var le=de===e}else var le=!0}}}}}}else{const me={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[me]:i.push(me),e++}var Le=Pe===e;n=n||Le}}if(n)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var be=a===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(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="writeToPath"||s==="filesTree"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 Be=O===e}else var Be=!0;if(Be)if(s.caption!==void 0){const n=e;if(typeof s.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 Be=n===e}else var Be=!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=a===e}else var we=!0;if(we){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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=a===e}else var we=!0;if(we){if(r.writeToPath!==void 0){const s=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=s===e}else var we=!0;if(we)if(r.filesTree!==void 0){const s=e;ye(r.filesTree,{instancePath:t+"/filesTree",parentData:r,parentDataProperty:"filesTree",rootData:h})||(i=i===null?ye.errors:i.concat(ye.errors),e=i.length);var we=s===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(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="command"||s==="wpCliPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 He=O===e}else var He=!0;if(He)if(s.caption!==void 0){const n=e;if(typeof s.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 He=n===e}else var He=!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=a===e}else var ve=!0;if(ve){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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=a===e}else var ve=!0;if(ve){if(r.command!==void 0){let s=r.command;const a=e,k=e;let n=!1;const O=e;if(typeof s!="string"){const ie={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ie]:i.push(ie),e++}var tr=O===e;if(n=n||tr,!n){const ie=e;if(e===ie)if(Array.isArray(s)){var br=!0;const Pe=s.length;for(let Ye=0;Ye<Pe;Ye++){const me=e;if(typeof s[Ye]!="string"){const ee={instancePath:t+"/command/"+Ye,schemaPath:"#/oneOf/27/properties/command/anyOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ee]:i.push(ee),e++}var br=me===e;if(!br)break}}else{const Pe={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};i===null?i=[Pe]:i.push(Pe),e++}var tr=ie===e;n=n||tr}if(n)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var ve=a===e}else var ve=!0;if(ve)if(r.wpCliPath!==void 0){const s=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=s===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(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="language"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 Ge=O===e}else var Ge=!0;if(Ge)if(s.caption!==void 0){const n=e;if(typeof s.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 Ge=n===e}else var Ge=!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 Ae=a===e}else var Ae=!0;if(Ae){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 Ae=a===e}else var Ae=!0;if(Ae)if(r.language!==void 0){const s=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 Ae=s===e}else var Ae=!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:J},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:J},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=i,e===0}function B(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){const E=e;for(const u in r)if(!Zr.call(bt.properties,u))return B.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:u},message:"must NOT have additional properties"}],!1;if(E===e){if(r.landingPage!==void 0){const u=e;if(typeof r.landingPage!="string")return B.errors=[{instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=u===e}else var d=!0;if(d){if(r.description!==void 0){const u=e;if(typeof r.description!="string")return B.errors=[{instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=u===e}else var d=!0;if(d){if(r.meta!==void 0){let u=r.meta;const j=e;if(e===j)if(u&&typeof u=="object"&&!Array.isArray(u)){let y;if(u.title===void 0&&(y="title")||u.author===void 0&&(y="author"))return B.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty:y},message:"must have required property '"+y+"'"}],!1;{const v=e;for(const b in u)if(!(b==="title"||b==="description"||b==="author"||b==="categories"))return B.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:b},message:"must NOT have additional properties"}],!1;if(v===e){if(u.title!==void 0){const b=e;if(typeof u.title!="string")return B.errors=[{instancePath:t+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=b===e}else var g=!0;if(g){if(u.description!==void 0){const b=e;if(typeof u.description!="string")return B.errors=[{instancePath:t+"/meta/description",schemaPath:"#/properties/meta/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=b===e}else var g=!0;if(g){if(u.author!==void 0){const b=e;if(typeof u.author!="string")return B.errors=[{instancePath:t+"/meta/author",schemaPath:"#/properties/meta/properties/author/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=b===e}else var g=!0;if(g)if(u.categories!==void 0){let b=u.categories;const T=e;if(e===T)if(Array.isArray(b)){var x=!0;const l=b.length;for(let D=0;D<l;D++){const A=e;if(typeof b[D]!="string")return B.errors=[{instancePath:t+"/meta/categories/"+D,schemaPath:"#/properties/meta/properties/categories/items/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var x=A===e;if(!x)break}}else return B.errors=[{instancePath:t+"/meta/categories",schemaPath:"#/properties/meta/properties/categories/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var g=T===e}else var g=!0}}}}}else return B.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=j===e}else var d=!0;if(d){if(r.preferredVersions!==void 0){let u=r.preferredVersions;const j=e;if(e===j)if(u&&typeof u=="object"&&!Array.isArray(u)){let y;if(u.php===void 0&&(y="php")||u.wp===void 0&&(y="wp"))return B.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/required",keyword:"required",params:{missingProperty:y},message:"must have required property '"+y+"'"}],!1;{const v=e;for(const b in u)if(!(b==="php"||b==="wp"))return B.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:b},message:"must NOT have additional properties"}],!1;if(v===e){if(u.php!==void 0){let b=u.php;const T=e,w=e;let l=!1;const D=e;if(typeof b!="string"){const A={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[A]:i.push(A),e++}if(!(b==="8.3"||b==="8.2"||b==="8.1"||b==="8.0"||b==="7.4"||b==="7.3"||b==="7.2"||b==="7.1"||b==="7.0")){const A={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/enum",keyword:"enum",params:{allowedValues:wt.enum},message:"must be equal to one of the allowed values"};i===null?i=[A]:i.push(A),e++}var q=D===e;if(l=l||q,!l){const A=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"};i===null?i=[U]:i.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"};i===null?i=[U]:i.push(U),e++}var q=A===e;l=l||q}if(l)e=w,i!==null&&(w?i.length=w:i=null);else{const A={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[A]:i.push(A),e++,B.errors=i,!1}var P=T===e}else var P=!0;if(P)if(u.wp!==void 0){const b=e;if(typeof u.wp!="string")return B.errors=[{instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var P=b===e}else var P=!0}}}else return B.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=j===e}else var d=!0;if(d){if(r.features!==void 0){let u=r.features;const j=e;if(e===j)if(u&&typeof u=="object"&&!Array.isArray(u)){const y=e;for(const v in u)if(v!=="networking")return B.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:v},message:"must NOT have additional properties"}],!1;if(y===e&&u.networking!==void 0&&typeof u.networking!="boolean")return B.errors=[{instancePath:t+"/features/networking",schemaPath:"#/properties/features/properties/networking/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1}else return B.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=j===e}else var d=!0;if(d){if(r.extraLibraries!==void 0){let u=r.extraLibraries;const j=e;if(e===j)if(Array.isArray(u)){var $=!0;const y=u.length;for(let v=0;v<y;v++){let b=u[v];const T=e;if(typeof b!="string")return B.errors=[{instancePath:t+"/extraLibraries/"+v,schemaPath:"#/definitions/ExtraLibrary/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(b!=="wp-cli")return B.errors=[{instancePath:t+"/extraLibraries/"+v,schemaPath:"#/definitions/ExtraLibrary/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var $=T===e;if(!$)break}}else return B.errors=[{instancePath:t+"/extraLibraries",schemaPath:"#/properties/extraLibraries/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=j===e}else var d=!0;if(d){if(r.constants!==void 0){let u=r.constants;const j=e;if(e===e)if(u&&typeof u=="object"&&!Array.isArray(u))for(const v in u){let b=u[v];const T=e;if(typeof b!="string"&&typeof b!="boolean"&&!(typeof b=="number"&&isFinite(b)))return B.errors=[{instancePath:t+"/constants/"+v.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPConstants/additionalProperties/type",keyword:"type",params:{type:vt.additionalProperties.type},message:"must be string,boolean,number"}],!1;var L=T===e;if(!L)break}else return B.errors=[{instancePath:t+"/constants",schemaPath:"#/definitions/PHPConstants/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=j===e}else var d=!0;if(d){if(r.plugins!==void 0){let u=r.plugins;const j=e;if(e===j)if(Array.isArray(u)){var N=!0;const y=u.length;for(let v=0;v<y;v++){let b=u[v];const T=e,w=e;let l=!1;const D=e;if(typeof b!="string"){const R={instancePath:t+"/plugins/"+v,schemaPath:"#/properties/plugins/items/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[R]:i.push(R),e++}var m=D===e;if(l=l||m,!l){const R=e;K(b,{instancePath:t+"/plugins/"+v,parentData:u,parentDataProperty:v,rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var m=R===e;l=l||m}if(l)e=w,i!==null&&(w?i.length=w:i=null);else{const R={instancePath:t+"/plugins/"+v,schemaPath:"#/properties/plugins/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[R]:i.push(R),e++,B.errors=i,!1}var N=T===e;if(!N)break}}else return B.errors=[{instancePath:t+"/plugins",schemaPath:"#/properties/plugins/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=j===e}else var d=!0;if(d){if(r.siteOptions!==void 0){let u=r.siteOptions;const j=e;if(e===j)if(u&&typeof u=="object"&&!Array.isArray(u)){const y=e;for(const v in u)if(v!=="blogname"){const b=e;if(typeof u[v]!="string")return B.errors=[{instancePath:t+"/siteOptions/"+v.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/siteOptions/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var I=b===e;if(!I)break}if(y===e&&u.blogname!==void 0&&typeof u.blogname!="string")return B.errors=[{instancePath:t+"/siteOptions/blogname",schemaPath:"#/properties/siteOptions/properties/blogname/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1}else return B.errors=[{instancePath:t+"/siteOptions",schemaPath:"#/properties/siteOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=j===e}else var d=!0;if(d){if(r.login!==void 0){let u=r.login;const j=e,z=e;let y=!1;const v=e;if(typeof u!="boolean"){const T={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};i===null?i=[T]:i.push(T),e++}var V=v===e;if(y=y||V,!y){const T=e;if(e===T)if(u&&typeof u=="object"&&!Array.isArray(u)){let l;if(u.username===void 0&&(l="username")||u.password===void 0&&(l="password")){const D={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"};i===null?i=[D]:i.push(D),e++}else{const D=e;for(const A in u)if(!(A==="username"||A==="password")){const R={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:A},message:"must NOT have additional properties"};i===null?i=[R]:i.push(R),e++;break}if(D===e){if(u.username!==void 0){const A=e;if(typeof u.username!="string"){const R={instancePath:t+"/login/username",schemaPath:"#/properties/login/anyOf/1/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[R]:i.push(R),e++}var Q=A===e}else var Q=!0;if(Q)if(u.password!==void 0){const A=e;if(typeof u.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"};i===null?i=[U]:i.push(U),e++}var Q=A===e}else var Q=!0}}}else{const l={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[l]:i.push(l),e++}var V=T===e;y=y||V}if(y)e=z,i!==null&&(z?i.length=z:i=null);else{const T={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[T]:i.push(T),e++,B.errors=i,!1}var d=j===e}else var d=!0;if(d){if(r.steps!==void 0){let u=r.steps;const j=e;if(e===j)if(Array.isArray(u)){var _=!0;const y=u.length;for(let v=0;v<y;v++){let b=u[v];const T=e,w=e;let l=!1;const D=e;o(b,{instancePath:t+"/steps/"+v,parentData:u,parentDataProperty:v,rootData:h})||(i=i===null?o.errors:i.concat(o.errors),e=i.length);var M=D===e;if(l=l||M,!l){const R=e;if(typeof b!="string"){const F={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[F]:i.push(F),e++}var M=R===e;if(l=l||M,!l){const F=e,G={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};i===null?i=[G]:i.push(G),e++;var M=F===e;if(l=l||M,!l){const Y=e;if(typeof b!="boolean"){const H={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf/3/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};i===null?i=[H]:i.push(H),e++}if(b!==!1){const H={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf/3/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};i===null?i=[H]:i.push(H),e++}var M=Y===e;if(l=l||M,!l){const H=e;if(b!==null){const Z={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf/4/type",keyword:"type",params:{type:"null"},message:"must be null"};i===null?i=[Z]:i.push(Z),e++}var M=H===e;l=l||M}}}}if(l)e=w,i!==null&&(w?i.length=w:i=null);else{const R={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[R]:i.push(R),e++,B.errors=i,!1}var _=T===e;if(!_)break}}else return B.errors=[{instancePath:t+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=j===e}else var d=!0;if(d)if(r.$schema!==void 0){const u=e;if(typeof r.$schema!="string")return B.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=u===e}else var d=!0}}}}}}}}}}}}else return B.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return B.errors=i,e===0}function Je(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;return B(r,{instancePath:t,parentData:p,parentDataProperty:c,rootData:h})||(i=i===null?B.errors:i.concat(B.errors),e=i.length),Je.errors=i,e===0}const{wpCLI:kt,...vr}=ot,Ot={...vr,"wp-cli":kt,importFile:vr.importWxr};function $t(r,{progress:t=new kr.ProgressTracker,semaphore:p=new W.Semaphore({concurrency:3}),onStepCompleted:c=()=>{},corsProxy:h}={}){var $,L,N,m,I,V,Q,_,M;r=structuredClone(r),r={...r,steps:(r.steps||[]).filter(Tt).filter(qt)};for(const E of r.steps)!E||typeof E!="object"||(E.step==="importFile"?(E.step="importWxr",ce.logger.warn('The "importFile" step is deprecated. Use "importWxr" instead.')):(E==null?void 0:E.step)==="installPlugin"&&"pluginZipFile"in E?(E.pluginData=E.pluginZipFile,ce.logger.warn('The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.')):(E==null?void 0:E.step)==="installTheme"&&"themeZipFile"in E&&(E.themeData=E.themeZipFile,ce.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 E=r.plugins.map(u=>typeof u=="string"?u.startsWith("https://")?{resource:"url",url:u}:{resource:"wordpress.org/plugins",slug:u}:u).map(u=>({step:"installPlugin",pluginData:u}));r.steps.unshift(...E)}r.login&&r.steps.push({step:"login",...r.login===!0?{username:"admin"}:r.login});const i=(($=r.steps)==null?void 0:$.findIndex(E=>typeof E=="object"&&(E==null?void 0:E.step)&&["wp-cli","enableMultisite"].includes(E.step)))??-1;if((L=r==null?void 0:r.extraLibraries)!=null&&L.includes("wp-cli")||i!==-1){const E={step:"writeFile",data:rt,path:ur};i===-1?(N=r.steps)==null||N.push(E):(m=r.steps)==null||m.splice(i,0,E)}const e=(I=r.steps)==null?void 0:I.findIndex(E=>typeof E=="object"&&(E==null?void 0:E.step)==="importWxr");e!==void 0&&e>-1&&((V=r.steps)==null||V.splice(e,0,{step:"installPlugin",pluginData:{resource:"url",url:"https://playground.wordpress.net/wordpress-importer.zip",caption:"Downloading the WordPress Importer plugin"}}));const{valid:d,errors:g}=Et(r);if(!d){const E=new Error(`Invalid blueprint: ${g[0].message} at ${g[0].instancePath}`);throw E.errors=g,E}const x=r.steps||[],q=x.reduce((E,u)=>{var j;return E+(((j=u.progress)==null?void 0:j.weight)||1)},0),P=x.map(E=>At(E,{semaphore:p,rootProgressTracker:t,totalProgressWeight:q,corsProxy:h}));return{versions:{php:jt((Q=r.preferredVersions)==null?void 0:Q.php,Ne.SupportedPHPVersions,Ne.LatestSupportedPHPVersion),wp:((_=r.preferredVersions)==null?void 0:_.wp)||"latest"},features:{networking:((M=r.features)==null?void 0:M.networking)??!1},extraLibraries:r.extraLibraries||[],run:async E=>{try{for(const{resources:u}of P)for(const j of u)j.setPlayground(E),j.isAsync&&j.resolve();for(const[u,{run:j,step:z}]of Object.entries(P))try{const y=await j(E);c(y,z)}catch(y){throw ce.logger.error(y),new Error(`Error when executing the blueprint step #${u} (${JSON.stringify(z)}) ${y instanceof Error?`: ${y.message}`:y}`,{cause:y})}}finally{try{await E.goTo(r.landingPage||"/")}catch{}t.finish()}}}}function Et(r){var h;const t=Je(r);if(t)return{valid:t};const p=new Set;for(const i of Je.errors)i.schemaPath.startsWith("#/properties/steps/items/anyOf")||p.add(i.instancePath);const c=(h=Je.errors)==null?void 0:h.filter(i=>!(i.schemaPath.startsWith("#/properties/steps/items/anyOf")&&p.has(i.instancePath)));return{valid:t,errors:c}}function jt(r,t,p){return r&&t.includes(r)?r:p}function Tt(r){return!!(typeof r=="object"&&r)}function qt(r){return["setPhpIniEntry","request"].includes(r.step)?(ce.logger.warn(`The "${r.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`),!1):!0}function At(r,{semaphore:t,rootProgressTracker:p,totalProgressWeight:c,corsProxy:h}){var P;const i=p.stage((((P=r.progress)==null?void 0:P.weight)||1)/c),e={};for(const $ of Object.keys(r)){let L=r[$];at(L)&&(L=ke.create(L,{semaphore:t,corsProxy:h})),e[$]=L}const d=async $=>{var L;try{return i.fillSlowly(),await Ot[r.step]($,await Rt(e),{tracker:i,initialCaption:(L=r.progress)==null?void 0:L.caption})}finally{i.finish()}},g=Pr(e),x=Pr(e).filter($=>$.isAsync),q=1/(x.length+1);for(const $ of x)$.progress=i.stage(q);return{run:d,step:r,resources:g}}function Pr(r){const t=[];for(const p in r){const c=r[p];c instanceof ke&&t.push(c)}return t}async function Rt(r){const t={};for(const p in r){const c=r[p];c instanceof ke?t[p]=await c.resolve():t[p]=c}return t}async function Lt(r,t){await r.run(t)}function Ft(){}exports.activatePlugin=pr;exports.activateTheme=fr;exports.compileBlueprint=$t;exports.cp=Rr;exports.defineSiteUrl=yr;exports.defineWpConfigConsts=Ke;exports.enableMultisite=Ar;exports.exportWXR=Cr;exports.importThemeStarterContent=hr;exports.importWordPressFiles=xr;exports.importWxr=Dr;exports.installPlugin=Ir;exports.installTheme=Ur;exports.login=Vr;exports.mkdir=Fr;exports.mv=Lr;exports.request=jr;exports.resetData=Mr;exports.rm=lr;exports.rmdir=Sr;exports.runBlueprintSteps=Lt;exports.runPHP=Or;exports.runPHPWithOptions=$r;exports.runSql=Er;exports.runWpInstallationWizard=zr;exports.setPluginProxyURL=Ft;exports.setSiteLanguage=Hr;exports.setSiteOptions=dr;exports.unzip=er;exports.updateUserMeta=Tr;exports.wpCLI=cr;exports.wpContentFilesExcludedFromExport=ar;exports.writeFile=mr;exports.writeFiles=Nr;exports.zipWpContent=Br;
|
|
660
|
+
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 data to write"}},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"]}]},kt={type:"object",additionalProperties:{anyOf:[{$ref:"#/definitions/FileTree"},{type:["object","string"]}]},properties:{}},nr={validate:Re};function Re(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r))for(const x in r){let q=r[x];const P=e,$=e;let L=!1;const N=e;nr.validate(q,{instancePath:t+"/"+x.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:r,parentDataProperty:x,rootData:h})||(i=i===null?nr.validate.errors:i.concat(nr.validate.errors),e=i.length);var d=N===e;if(L=L||d,!L){const m=e;if(!(q&&typeof q=="object"&&!Array.isArray(q))&&typeof q!="string"){const V={instancePath:t+"/"+x.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf/1/type",keyword:"type",params:{type:kt.additionalProperties.anyOf[1].type},message:"must be object,string"};i===null?i=[V]:i.push(V),e++}var d=m===e;L=L||d}if(L)e=$,i!==null&&($?i.length=$:i=null);else{const m={instancePath:t+"/"+x.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[m]:i.push(m),e++,Re.errors=i,!1}var g=P===e;if(!g)break}else return Re.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Re.errors=i,e===0}function _e(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=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 x=e;for(const q in r)if(!(q==="resource"||q==="files"||q==="name"))return _e.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:q},message:"must NOT have additional properties"}],!1;if(x===e){if(r.resource!==void 0){let q=r.resource;const P=e;if(typeof q!="string")return _e.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(q!=="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=P===e}else var d=!0;if(d){if(r.files!==void 0){const q=e;Re(r.files,{instancePath:t+"/files",parentData:r,parentDataProperty:"files",rootData:h})||(i=i===null?Re.errors:i.concat(Re.errors),e=i.length);var d=q===e}else var d=!0;if(d)if(r.name!==void 0){const q=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=q===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=i,e===0}function ye(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;const d=e;let g=!1;const x=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let L;if(r.resource===void 0&&(L="resource")||r.url===void 0&&(L="url")||r.ref===void 0&&(L="ref")||r.path===void 0&&(L="path")){const N={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/required",keyword:"required",params:{missingProperty:L},message:"must have required property '"+L+"'"};i===null?i=[N]:i.push(N),e++}else{const N=e;for(const m in r)if(!(m==="resource"||m==="url"||m==="ref"||m==="path")){const I={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};i===null?i=[I]:i.push(I),e++;break}if(N===e){if(r.resource!==void 0){let m=r.resource;const I=e;if(typeof m!="string"){const V={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[V]:i.push(V),e++}if(m!=="git:directory"){const V={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/const",keyword:"const",params:{allowedValue:"git:directory"},message:"must be equal to constant"};i===null?i=[V]:i.push(V),e++}var P=I===e}else var P=!0;if(P){if(r.url!==void 0){const m=e;if(typeof r.url!="string"){const V={instancePath:t+"/url",schemaPath:"#/definitions/GitDirectoryReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[V]:i.push(V),e++}var P=m===e}else var P=!0;if(P){if(r.ref!==void 0){const m=e;if(typeof r.ref!="string"){const V={instancePath:t+"/ref",schemaPath:"#/definitions/GitDirectoryReference/properties/ref/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[V]:i.push(V),e++}var P=m===e}else var P=!0;if(P)if(r.path!==void 0){const m=e;if(typeof r.path!="string"){const V={instancePath:t+"/path",schemaPath:"#/definitions/GitDirectoryReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[V]:i.push(V),e++}var P=m===e}else var P=!0}}}}}else{const L={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[L]:i.push(L),e++}var $=x===e;if(g=g||$,!g){const L=e;_e(r,{instancePath:t,parentData:p,parentDataProperty:c,rootData:h})||(i=i===null?_e.errors:i.concat(_e.errors),e=i.length);var $=L===e;g=g||$}if(g)e=d,i!==null&&(d?i.length=d:i=null);else{const L={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[L]:i.push(L),e++,ye.errors=i,!1}return ye.errors=i,e===0}const Xr={type:"string",enum:["GET","POST","HEAD","OPTIONS","PATCH","PUT","DELETE"]};function ue(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let V;if(r.url===void 0&&(V="url"))return ue.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:V},message:"must have required property '"+V+"'"}],!1;{const Q=e;for(const _ in r)if(!(_==="method"||_==="url"||_==="headers"||_==="body"))return ue.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:_},message:"must NOT have additional properties"}],!1;if(Q===e){if(r.method!==void 0){let _=r.method;const M=e;if(typeof _!="string")return ue.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 ue.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=M===e}else var d=!0;if(d){if(r.url!==void 0){const _=e;if(typeof r.url!="string")return ue.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=_===e}else var d=!0;if(d){if(r.headers!==void 0){let _=r.headers;const M=e;if(e===e)if(_&&typeof _=="object"&&!Array.isArray(_))for(const j in _){const z=e;if(typeof _[j]!="string")return ue.errors=[{instancePath:t+"/headers/"+j.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=z===e;if(!g)break}else return ue.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=M===e}else var d=!0;if(d)if(r.body!==void 0){let _=r.body;const M=e,E=e;let u=!1;const j=e;if(typeof _!="string"){const y={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[y]:i.push(y),e++}var x=j===e;if(u=u||x,!u){const y=e;if(e===y)if(_&&typeof _=="object"&&!Array.isArray(_)){let b;if(_.BYTES_PER_ELEMENT===void 0&&(b="BYTES_PER_ELEMENT")||_.buffer===void 0&&(b="buffer")||_.byteLength===void 0&&(b="byteLength")||_.byteOffset===void 0&&(b="byteOffset")||_.length===void 0&&(b="length")){const T={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"};i===null?i=[T]:i.push(T),e++}else{const T=e;for(const w in _)if(!(w==="BYTES_PER_ELEMENT"||w==="buffer"||w==="byteLength"||w==="byteOffset"||w==="length")){let l=_[w];const D=e;if(!(typeof l=="number"&&isFinite(l))){const A={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"};i===null?i=[A]:i.push(A),e++}var q=D===e;if(!q)break}if(T===e){if(_.BYTES_PER_ELEMENT!==void 0){let w=_.BYTES_PER_ELEMENT;const l=e;if(!(typeof w=="number"&&isFinite(w))){const D={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"};i===null?i=[D]:i.push(D),e++}var P=l===e}else var P=!0;if(P){if(_.buffer!==void 0){let w=_.buffer;const l=e;if(e===l)if(w&&typeof w=="object"&&!Array.isArray(w)){let A;if(w.byteLength===void 0&&(A="byteLength")){const R={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:A},message:"must have required property '"+A+"'"};i===null?i=[R]:i.push(R),e++}else{const R=e;for(const U in w)if(U!=="byteLength"){const F={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:U},message:"must NOT have additional properties"};i===null?i=[F]:i.push(F),e++;break}if(R===e&&w.byteLength!==void 0){let U=w.byteLength;if(!(typeof U=="number"&&isFinite(U))){const F={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[F]:i.push(F),e++}}}}else{const A={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[A]:i.push(A),e++}var P=l===e}else var P=!0;if(P){if(_.byteLength!==void 0){let w=_.byteLength;const l=e;if(!(typeof w=="number"&&isFinite(w))){const A={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[A]:i.push(A),e++}var P=l===e}else var P=!0;if(P){if(_.byteOffset!==void 0){let w=_.byteOffset;const l=e;if(!(typeof w=="number"&&isFinite(w))){const A={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[A]:i.push(A),e++}var P=l===e}else var P=!0;if(P)if(_.length!==void 0){let w=_.length;const l=e;if(!(typeof w=="number"&&isFinite(w))){const A={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[A]:i.push(A),e++}var P=l===e}else var P=!0}}}}}}else{const b={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[b]:i.push(b),e++}var x=y===e;if(u=u||x,!u){const b=e;if(e===b)if(_&&typeof _=="object"&&!Array.isArray(_))for(const w in _){let l=_[w];const D=e,A=e;let R=!1;const U=e;if(typeof l!="string"){const F={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"};i===null?i=[F]:i.push(F),e++}var $=U===e;if(R=R||$,!R){const F=e;if(e===F)if(l&&typeof l=="object"&&!Array.isArray(l)){let se;if(l.BYTES_PER_ELEMENT===void 0&&(se="BYTES_PER_ELEMENT")||l.buffer===void 0&&(se="buffer")||l.byteLength===void 0&&(se="byteLength")||l.byteOffset===void 0&&(se="byteOffset")||l.length===void 0&&(se="length")){const Y={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/required",keyword:"required",params:{missingProperty:se},message:"must have required property '"+se+"'"};i===null?i=[Y]:i.push(Y),e++}else{const Y=e;for(const C in l)if(!(C==="BYTES_PER_ELEMENT"||C==="buffer"||C==="byteLength"||C==="byteOffset"||C==="length")){let H=l[C];const X=e;if(!(typeof H=="number"&&isFinite(H))){const Z={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+C.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"};i===null?i=[Z]:i.push(Z),e++}var L=X===e;if(!L)break}if(Y===e){if(l.BYTES_PER_ELEMENT!==void 0){let C=l.BYTES_PER_ELEMENT;const H=e;if(!(typeof C=="number"&&isFinite(C))){const X={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"};i===null?i=[X]:i.push(X),e++}var N=H===e}else var N=!0;if(N){if(l.buffer!==void 0){let C=l.buffer;const H=e;if(e===H)if(C&&typeof C=="object"&&!Array.isArray(C)){let Z;if(C.byteLength===void 0&&(Z="byteLength")){const oe={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:Z},message:"must have required property '"+Z+"'"};i===null?i=[oe]:i.push(oe),e++}else{const oe=e;for(const pe in C)if(pe!=="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:pe},message:"must NOT have additional properties"};i===null?i=[he]:i.push(he),e++;break}if(oe===e&&C.byteLength!==void 0){let pe=C.byteLength;if(!(typeof pe=="number"&&isFinite(pe))){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"};i===null?i=[he]:i.push(he),e++}}}}else{const Z={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"};i===null?i=[Z]:i.push(Z),e++}var N=H===e}else var N=!0;if(N){if(l.byteLength!==void 0){let C=l.byteLength;const H=e;if(!(typeof C=="number"&&isFinite(C))){const Z={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"};i===null?i=[Z]:i.push(Z),e++}var N=H===e}else var N=!0;if(N){if(l.byteOffset!==void 0){let C=l.byteOffset;const H=e;if(!(typeof C=="number"&&isFinite(C))){const Z={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"};i===null?i=[Z]:i.push(Z),e++}var N=H===e}else var N=!0;if(N)if(l.length!==void 0){let C=l.length;const H=e;if(!(typeof C=="number"&&isFinite(C))){const Z={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"};i===null?i=[Z]:i.push(Z),e++}var N=H===e}else var N=!0}}}}}}else{const se={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"};i===null?i=[se]:i.push(se),e++}var $=F===e;if(R=R||$,!R){const se=e;if(e===se)if(l&&typeof l=="object"&&!Array.isArray(l)){let C;if(l.lastModified===void 0&&(C="lastModified")||l.name===void 0&&(C="name")||l.size===void 0&&(C="size")||l.type===void 0&&(C="type")||l.webkitRelativePath===void 0&&(C="webkitRelativePath")){const H={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/required",keyword:"required",params:{missingProperty:C},message:"must have required property '"+C+"'"};i===null?i=[H]:i.push(H),e++}else{const H=e;for(const X in l)if(!(X==="size"||X==="type"||X==="lastModified"||X==="name"||X==="webkitRelativePath")){const Z={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:X},message:"must NOT have additional properties"};i===null?i=[Z]:i.push(Z),e++;break}if(H===e){if(l.size!==void 0){let X=l.size;const Z=e;if(!(typeof X=="number"&&isFinite(X))){const oe={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"};i===null?i=[oe]:i.push(oe),e++}var m=Z===e}else var m=!0;if(m){if(l.type!==void 0){const X=e;if(typeof l.type!="string"){const oe={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"};i===null?i=[oe]:i.push(oe),e++}var m=X===e}else var m=!0;if(m){if(l.lastModified!==void 0){let X=l.lastModified;const Z=e;if(!(typeof X=="number"&&isFinite(X))){const pe={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"};i===null?i=[pe]:i.push(pe),e++}var m=Z===e}else var m=!0;if(m){if(l.name!==void 0){const X=e;if(typeof l.name!="string"){const oe={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"};i===null?i=[oe]:i.push(oe),e++}var m=X===e}else var m=!0;if(m)if(l.webkitRelativePath!==void 0){const X=e;if(typeof l.webkitRelativePath!="string"){const oe={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"};i===null?i=[oe]:i.push(oe),e++}var m=X===e}else var m=!0}}}}}}else{const C={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"};i===null?i=[C]:i.push(C),e++}var $=se===e;R=R||$}}if(R)e=A,i!==null&&(A?i.length=A:i=null);else{const F={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"};i===null?i=[F]:i.push(F),e++}var I=D===e;if(!I)break}else{const w={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[w]:i.push(w),e++}var x=b===e;u=u||x}}if(u)e=E,i!==null&&(E?i.length=E:i=null);else{const y={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[y]:i.push(y),e++,ue.errors=i,!1}var d=M===e}else var d=!0}}}}}else return ue.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ue.errors=i,e===0}const Ot={type:"object",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."}},additionalProperties:!1};function ne(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){const N=e;for(const m in r)if(!Qr.call(Ot.properties,m))return ne.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"}],!1;if(N===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 I=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=I===e}else var d=!0;if(d){if(r.headers!==void 0){let m=r.headers;const I=e;if(e===e)if(m&&typeof m=="object"&&!Array.isArray(m))for(const _ in m){const M=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=M===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 d=I===e}else var d=!0;if(d){if(r.body!==void 0){let m=r.body;const I=e,V=e;let Q=!1;const _=e;if(typeof m!="string"){const E={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[E]:i.push(E),e++}var x=_===e;if(Q=Q||x,!Q){const E=e;if(e===E)if(m&&typeof m=="object"&&!Array.isArray(m)){let j;if(m.BYTES_PER_ELEMENT===void 0&&(j="BYTES_PER_ELEMENT")||m.buffer===void 0&&(j="buffer")||m.byteLength===void 0&&(j="byteLength")||m.byteOffset===void 0&&(j="byteOffset")||m.length===void 0&&(j="length")){const z={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"};i===null?i=[z]:i.push(z),e++}else{const z=e;for(const y in m)if(!(y==="BYTES_PER_ELEMENT"||y==="buffer"||y==="byteLength"||y==="byteOffset"||y==="length")){let v=m[y];const b=e;if(!(typeof v=="number"&&isFinite(v))){const T={instancePath:t+"/body/"+y.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[T]:i.push(T),e++}var q=b===e;if(!q)break}if(z===e){if(m.BYTES_PER_ELEMENT!==void 0){let y=m.BYTES_PER_ELEMENT;const v=e;if(!(typeof y=="number"&&isFinite(y))){const b={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"};i===null?i=[b]:i.push(b),e++}var P=v===e}else var P=!0;if(P){if(m.buffer!==void 0){let y=m.buffer;const v=e;if(e===v)if(y&&typeof y=="object"&&!Array.isArray(y)){let T;if(y.byteLength===void 0&&(T="byteLength")){const w={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:T},message:"must have required property '"+T+"'"};i===null?i=[w]:i.push(w),e++}else{const w=e;for(const l in y)if(l!=="byteLength"){const D={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};i===null?i=[D]:i.push(D),e++;break}if(w===e&&y.byteLength!==void 0){let l=y.byteLength;if(!(typeof l=="number"&&isFinite(l))){const D={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[D]:i.push(D),e++}}}}else{const T={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[T]:i.push(T),e++}var P=v===e}else var P=!0;if(P){if(m.byteLength!==void 0){let y=m.byteLength;const v=e;if(!(typeof y=="number"&&isFinite(y))){const T={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[T]:i.push(T),e++}var P=v===e}else var P=!0;if(P){if(m.byteOffset!==void 0){let y=m.byteOffset;const v=e;if(!(typeof y=="number"&&isFinite(y))){const T={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[T]:i.push(T),e++}var P=v===e}else var P=!0;if(P)if(m.length!==void 0){let y=m.length;const v=e;if(!(typeof y=="number"&&isFinite(y))){const T={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[T]:i.push(T),e++}var P=v===e}else var P=!0}}}}}}else{const j={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[j]:i.push(j),e++}var x=E===e;Q=Q||x}if(Q)e=V,i!==null&&(V?i.length=V:i=null);else{const E={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[E]:i.push(E),e++,ne.errors=i,!1}var d=I===e}else var d=!0;if(d){if(r.env!==void 0){let m=r.env;const I=e;if(e===I)if(m&&typeof m=="object"&&!Array.isArray(m))for(const Q in m){const _=e;if(typeof m[Q]!="string")return ne.errors=[{instancePath:t+"/env/"+Q.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/env/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var $=_===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=I===e}else var d=!0;if(d){if(r.$_SERVER!==void 0){let m=r.$_SERVER;const I=e;if(e===I)if(m&&typeof m=="object"&&!Array.isArray(m))for(const Q in m){const _=e;if(typeof m[Q]!="string")return ne.errors=[{instancePath:t+"/$_SERVER/"+Q.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/%24_SERVER/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var L=_===e;if(!L)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=I===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=i,e===0}function o(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let sr;if(r.step===void 0&&(sr="step"))return o.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:sr},message:"must have required property '"+sr+"'"}],!1;{const J=r.step;if(typeof J=="string")if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="pluginPath"||s==="pluginName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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=O===e}else var d=!0;if(d)if(s.caption!==void 0){const n=e;if(typeof s.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=n===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 g=a===e}else var g=!0;if(g){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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=a===e}else var g=!0;if(g){if(r.pluginPath!==void 0){const s=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=s===e}else var g=!0;if(g)if(r.pluginName!==void 0){const s=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=s===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(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="themeFolderName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 x=O===e}else var x=!0;if(x)if(s.caption!==void 0){const n=e;if(typeof s.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 x=n===e}else var x=!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 q=a===e}else var q=!0;if(q){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 q=a===e}else var q=!0;if(q)if(r.themeFolderName!==void 0){const s=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 q=s===e}else var q=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="fromPath"||s==="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 P=O===e}else var P=!0;if(P)if(s.caption!==void 0){const n=e;if(typeof s.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 P=n===e}else var P=!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 $=a===e}else var $=!0;if($){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 $=a===e}else var $=!0;if($){if(r.fromPath!==void 0){const s=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 $=s===e}else var $=!0;if($)if(r.toPath!==void 0){const s=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 $=s===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(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="consts"||s==="method"||s==="virtualize"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 L=O===e}else var L=!0;if(L)if(s.caption!==void 0){const n=e;if(typeof s.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 L=n===e}else var L=!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 N=a===e}else var N=!0;if(N){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 N=a===e}else var N=!0;if(N){if(r.consts!==void 0){let s=r.consts;const a=e;if(e===a&&!(s&&typeof s=="object"&&!Array.isArray(s)))return o.errors=[{instancePath:t+"/consts",schemaPath:"#/oneOf/3/properties/consts/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var N=a===e}else var N=!0;if(N){if(r.method!==void 0){let s=r.method;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="rewrite-wp-config"||s==="define-before-run"))return o.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/enum",keyword:"enum",params:{allowedValues:or.oneOf[3].properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var N=a===e}else var N=!0;if(N)if(r.virtualize!==void 0){const s=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 N=s===e}else var N=!0}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="siteUrl"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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=O===e}else var m=!0;if(m)if(s.caption!==void 0){const n=e;if(typeof s.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=n===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 I=a===e}else var I=!0;if(I){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 I=a===e}else var I=!0;if(I)if(r.siteUrl!==void 0){const s=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 I=s===e}else var I=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="wpCliPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 V=O===e}else var V=!0;if(V)if(s.caption!==void 0){const n=e;if(typeof s.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 V=n===e}else var V=!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 Q=a===e}else var Q=!0;if(Q){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 Q=a===e}else var Q=!0;if(Q)if(r.wpCliPath!==void 0){const s=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 Q=s===e}else var Q=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="file"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 _=O===e}else var _=!0;if(_)if(s.caption!==void 0){const n=e;if(typeof s.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 _=n===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 M=a===e}else var M=!0;if(M){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 M=a===e}else var M=!0;if(M)if(r.file!==void 0){const s=e;K(r.file,{instancePath:t+"/file",parentData:r,parentDataProperty:"file",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var M=s===e}else var M=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="themeSlug"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 E=O===e}else var E=!0;if(E)if(s.caption!==void 0){const n=e;if(typeof s.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 E=n===e}else var E=!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 u=a===e}else var u=!0;if(u){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 u=a===e}else var u=!0;if(u)if(r.themeSlug!==void 0){const s=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 u=s===e}else var u=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="wordPressFilesZip"||s==="pathInZip"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 j=O===e}else var j=!0;if(j)if(s.caption!==void 0){const n=e;if(typeof s.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 j=n===e}else var j=!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 z=a===e}else var z=!0;if(z){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 z=a===e}else var z=!0;if(z){if(r.wordPressFilesZip!==void 0){const s=e;K(r.wordPressFilesZip,{instancePath:t+"/wordPressFilesZip",parentData:r,parentDataProperty:"wordPressFilesZip",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var z=s===e}else var z=!0;if(z)if(r.pathInZip!==void 0){const s=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 z=s===e}else var z=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="ifAlreadyInstalled"||s==="step"||s==="pluginData"||s==="pluginZipFile"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 y=O===e}else var y=!0;if(y)if(s.caption!==void 0){const n=e;if(typeof s.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 y=n===e}else var y=!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=a===e}else var v=!0;if(v){if(r.ifAlreadyInstalled!==void 0){let s=r.ifAlreadyInstalled;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="overwrite"||s==="skip"||s==="error"))return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:or.oneOf[9].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var v=a===e}else var v=!0;if(v){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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=a===e}else var v=!0;if(v){if(r.pluginData!==void 0){let s=r.pluginData;const a=e,k=e;let n=!1;const O=e;K(s,{instancePath:t+"/pluginData",parentData:r,parentDataProperty:"pluginData",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var b=O===e;if(n=n||b,!n){const ie=e;ye(s,{instancePath:t+"/pluginData",parentData:r,parentDataProperty:"pluginData",rootData:h})||(i=i===null?ye.errors:i.concat(ye.errors),e=i.length);var b=ie===e;n=n||b}if(n)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/pluginData",schemaPath:"#/oneOf/9/properties/pluginData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var v=a===e}else var v=!0;if(v){if(r.pluginZipFile!==void 0){const s=e;K(r.pluginZipFile,{instancePath:t+"/pluginZipFile",parentData:r,parentDataProperty:"pluginZipFile",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var v=s===e}else var v=!0;if(v)if(r.options!==void 0){let s=r.options;const a=e;if(e===e)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const te in s)if(!(te==="activate"||te==="targetFolderName"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:te},message:"must NOT have additional properties"}],!1;if(O===e){if(s.activate!==void 0){const te=e;if(typeof s.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 T=te===e}else var T=!0;if(T)if(s.targetFolderName!==void 0){const te=e;if(typeof s.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 T=te===e}else var T=!0}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var v=a===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(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="ifAlreadyInstalled"||s==="step"||s==="themeData"||s==="themeZipFile"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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=O===e}else var w=!0;if(w)if(s.caption!==void 0){const n=e;if(typeof s.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=n===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 l=a===e}else var l=!0;if(l){if(r.ifAlreadyInstalled!==void 0){let s=r.ifAlreadyInstalled;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="overwrite"||s==="skip"||s==="error"))return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:or.oneOf[10].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var l=a===e}else var l=!0;if(l){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 l=a===e}else var l=!0;if(l){if(r.themeData!==void 0){let s=r.themeData;const a=e,k=e;let n=!1;const O=e;K(s,{instancePath:t+"/themeData",parentData:r,parentDataProperty:"themeData",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var D=O===e;if(n=n||D,!n){const ie=e;ye(s,{instancePath:t+"/themeData",parentData:r,parentDataProperty:"themeData",rootData:h})||(i=i===null?ye.errors:i.concat(ye.errors),e=i.length);var D=ie===e;n=n||D}if(n)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/themeData",schemaPath:"#/oneOf/10/properties/themeData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var l=a===e}else var l=!0;if(l){if(r.themeZipFile!==void 0){const s=e;K(r.themeZipFile,{instancePath:t+"/themeZipFile",parentData:r,parentDataProperty:"themeZipFile",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var l=s===e}else var l=!0;if(l)if(r.options!==void 0){let s=r.options;const a=e;if(e===e)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const te in s)if(!(te==="activate"||te==="importStarterContent"||te==="targetFolderName"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:te},message:"must NOT have additional properties"}],!1;if(O===e){if(s.activate!==void 0){const te=e;if(typeof s.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 A=te===e}else var A=!0;if(A){if(s.importStarterContent!==void 0){const te=e;if(typeof s.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 A=te===e}else var A=!0;if(A)if(s.targetFolderName!==void 0){const te=e;if(typeof s.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 A=te===e}else var A=!0}}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var l=a===e}else var l=!0}}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="username"||s==="password"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 R=O===e}else var R=!0;if(R)if(s.caption!==void 0){const n=e;if(typeof s.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 R=n===e}else var R=!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 U=a===e}else var U=!0;if(U){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 U=a===e}else var U=!0;if(U){if(r.username!==void 0){const s=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 U=s===e}else var U=!0;if(U)if(r.password!==void 0){const s=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 U=s===e}else var U=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 F=O===e}else var F=!0;if(F)if(s.caption!==void 0){const n=e;if(typeof s.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 F=n===e}else var F=!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 G=a===e}else var G=!0;if(G){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 G=a===e}else var G=!0;if(G)if(r.path!==void 0){const s=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 G=s===e}else var G=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="fromPath"||s==="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 se=O===e}else var se=!0;if(se)if(s.caption!==void 0){const n=e;if(typeof s.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 se=n===e}else var se=!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 Y=a===e}else var Y=!0;if(Y){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 Y=a===e}else var Y=!0;if(Y){if(r.fromPath!==void 0){const s=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 Y=s===e}else var Y=!0;if(Y)if(r.toPath!==void 0){const s=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 Y=s===e}else var Y=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 C=O===e}else var C=!0;if(C)if(s.caption!==void 0){const n=e;if(typeof s.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 C=n===e}else var C=!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 H=a===e}else var H=!0;if(H)if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 H=a===e}else var H=!0}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="request"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 X=O===e}else var X=!0;if(X)if(s.caption!==void 0){const n=e;if(typeof s.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 X=n===e}else var X=!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 Z=a===e}else var Z=!0;if(Z){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 Z=a===e}else var Z=!0;if(Z)if(r.request!==void 0){const s=e;ue(r.request,{instancePath:t+"/request",parentData:r,parentDataProperty:"request",rootData:h})||(i=i===null?ue.errors:i.concat(ue.errors),e=i.length);var Z=s===e}else var Z=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 oe=O===e}else var oe=!0;if(oe)if(s.caption!==void 0){const n=e;if(typeof s.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 oe=n===e}else var oe=!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 pe=a===e}else var pe=!0;if(pe){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 pe=a===e}else var pe=!0;if(pe)if(r.path!==void 0){const s=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 pe=s===e}else var pe=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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=O===e}else var he=!0;if(he)if(s.caption!==void 0){const n=e;if(typeof s.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=n===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 Oe=a===e}else var Oe=!0;if(Oe){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 Oe=a===e}else var Oe=!0;if(Oe)if(r.path!==void 0){const s=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 Oe=s===e}else var Oe=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="code"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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=O===e}else var De=!0;if(De)if(s.caption!==void 0){const n=e;if(typeof s.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=n===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 $e=a===e}else var $e=!0;if($e){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 $e=a===e}else var $e=!0;if($e)if(r.code!==void 0){const s=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 $e=s===e}else var $e=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 xe=O===e}else var xe=!0;if(xe)if(s.caption!==void 0){const n=e;if(typeof s.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 xe=n===e}else var xe=!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=a===e}else var Ee=!0;if(Ee){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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=a===e}else var Ee=!0;if(Ee)if(r.options!==void 0){const s=e;ne(r.options,{instancePath:t+"/options",parentData:r,parentDataProperty:"options",rootData:h})||(i=i===null?ne.errors:i.concat(ne.errors),e=i.length);var Ee=s===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(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 Ce=O===e}else var Ce=!0;if(Ce)if(s.caption!==void 0){const n=e;if(typeof s.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 Ce=n===e}else var Ce=!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 je=a===e}else var je=!0;if(je){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 je=a===e}else var je=!0;if(je)if(r.options!==void 0){let s=r.options;const a=e;if(e===e)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const te in s)if(!(te==="adminUsername"||te==="adminPassword"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:te},message:"must NOT have additional properties"}],!1;if(O===e){if(s.adminUsername!==void 0){const te=e;if(typeof s.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=te===e}else var We=!0;if(We)if(s.adminPassword!==void 0){const te=e;if(typeof s.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=te===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 je=a===e}else var je=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="sql"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 Ie=O===e}else var Ie=!0;if(Ie)if(s.caption!==void 0){const n=e;if(typeof s.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 Ie=n===e}else var Ie=!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 Te=a===e}else var Te=!0;if(Te){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 Te=a===e}else var Te=!0;if(Te)if(r.sql!==void 0){const s=e;K(r.sql,{instancePath:t+"/sql",parentData:r,parentDataProperty:"sql",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var Te=s===e}else var Te=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 Ue=O===e}else var Ue=!0;if(Ue)if(s.caption!==void 0){const n=e;if(typeof s.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 Ue=n===e}else var Ue=!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 qe=a===e}else var qe=!0;if(qe){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 qe=a===e}else var qe=!0;if(qe)if(r.options!==void 0){let s=r.options;const a=e;if(e===a&&!(s&&typeof s=="object"&&!Array.isArray(s)))return o.errors=[{instancePath:t+"/options",schemaPath:"#/oneOf/22/properties/options/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var qe=a===e}else var qe=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="zipFile"||s==="zipPath"||s==="extractToPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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=O===e}else var Ve=!0;if(Ve)if(s.caption!==void 0){const n=e;if(typeof s.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=n===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=a===e}else var fe=!0;if(fe){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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=a===e}else var fe=!0;if(fe){if(r.zipFile!==void 0){const s=e;K(r.zipFile,{instancePath:t+"/zipFile",parentData:r,parentDataProperty:"zipFile",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var fe=s===e}else var fe=!0;if(fe){if(r.zipPath!==void 0){const s=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=s===e}else var fe=!0;if(fe)if(r.extractToPath!==void 0){const s=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=s===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(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="meta"||s==="userId"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 Me=O===e}else var Me=!0;if(Me)if(s.caption!==void 0){const n=e;if(typeof s.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 Me=n===e}else var Me=!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=a===e}else var ge=!0;if(ge){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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=a===e}else var ge=!0;if(ge){if(r.meta!==void 0){let s=r.meta;const a=e;if(e===a&&!(s&&typeof s=="object"&&!Array.isArray(s)))return o.errors=[{instancePath:t+"/meta",schemaPath:"#/oneOf/24/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ge=a===e}else var ge=!0;if(ge)if(r.userId!==void 0){let s=r.userId;const a=e;if(!(typeof s=="number"&&isFinite(s)))return o.errors=[{instancePath:t+"/userId",schemaPath:"#/oneOf/24/properties/userId/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ge=a===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(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"||s==="data"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 ze=O===e}else var ze=!0;if(ze)if(s.caption!==void 0){const n=e;if(typeof s.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 ze=n===e}else var ze=!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=a===e}else var be=!0;if(be){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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=a===e}else var be=!0;if(be){if(r.path!==void 0){const s=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=s===e}else var be=!0;if(be)if(r.data!==void 0){let s=r.data;const a=e,k=e;let n=!1;const O=e;K(s,{instancePath:t+"/data",parentData:r,parentDataProperty:"data",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var Le=O===e;if(n=n||Le,!n){const ie=e;if(typeof s!="string"){const Pe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[Pe]:i.push(Pe),e++}var Le=ie===e;if(n=n||Le,!n){const Pe=e;if(e===Pe)if(s&&typeof s=="object"&&!Array.isArray(s)){let me;if(s.BYTES_PER_ELEMENT===void 0&&(me="BYTES_PER_ELEMENT")||s.buffer===void 0&&(me="buffer")||s.byteLength===void 0&&(me="byteLength")||s.byteOffset===void 0&&(me="byteOffset")||s.length===void 0&&(me="length")){const Ze={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/required",keyword:"required",params:{missingProperty:me},message:"must have required property '"+me+"'"};i===null?i=[Ze]:i.push(Ze),e++}else{const Ze=e;for(const ee in s)if(!(ee==="BYTES_PER_ELEMENT"||ee==="buffer"||ee==="byteLength"||ee==="byteOffset"||ee==="length")){let de=s[ee];const Qe=e;if(!(typeof de=="number"&&isFinite(de))){const ae={instancePath:t+"/data/"+ee.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/oneOf/25/properties/data/anyOf/2/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ae]:i.push(ae),e++}var Jr=Qe===e;if(!Jr)break}if(Ze===e){if(s.BYTES_PER_ELEMENT!==void 0){let ee=s.BYTES_PER_ELEMENT;const de=e;if(!(typeof ee=="number"&&isFinite(ee))){const Qe={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"};i===null?i=[Qe]:i.push(Qe),e++}var le=de===e}else var le=!0;if(le){if(s.buffer!==void 0){let ee=s.buffer;const de=e;if(e===de)if(ee&&typeof ee=="object"&&!Array.isArray(ee)){let ae;if(ee.byteLength===void 0&&(ae="byteLength")){const Xe={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/required",keyword:"required",params:{missingProperty:ae},message:"must have required property '"+ae+"'"};i===null?i=[Xe]:i.push(Xe),e++}else{const Xe=e;for(const Fe in ee)if(Fe!=="byteLength"){const Se={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Fe},message:"must NOT have additional properties"};i===null?i=[Se]:i.push(Se),e++;break}if(Xe===e&&ee.byteLength!==void 0){let Fe=ee.byteLength;if(!(typeof Fe=="number"&&isFinite(Fe))){const Se={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"};i===null?i=[Se]:i.push(Se),e++}}}}else{const ae={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[ae]:i.push(ae),e++}var le=de===e}else var le=!0;if(le){if(s.byteLength!==void 0){let ee=s.byteLength;const de=e;if(!(typeof ee=="number"&&isFinite(ee))){const ae={instancePath:t+"/data/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ae]:i.push(ae),e++}var le=de===e}else var le=!0;if(le){if(s.byteOffset!==void 0){let ee=s.byteOffset;const de=e;if(!(typeof ee=="number"&&isFinite(ee))){const ae={instancePath:t+"/data/byteOffset",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ae]:i.push(ae),e++}var le=de===e}else var le=!0;if(le)if(s.length!==void 0){let ee=s.length;const de=e;if(!(typeof ee=="number"&&isFinite(ee))){const ae={instancePath:t+"/data/length",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ae]:i.push(ae),e++}var le=de===e}else var le=!0}}}}}}else{const me={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[me]:i.push(me),e++}var Le=Pe===e;n=n||Le}}if(n)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var be=a===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(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="writeToPath"||s==="filesTree"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 Be=O===e}else var Be=!0;if(Be)if(s.caption!==void 0){const n=e;if(typeof s.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 Be=n===e}else var Be=!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=a===e}else var we=!0;if(we){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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=a===e}else var we=!0;if(we){if(r.writeToPath!==void 0){const s=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=s===e}else var we=!0;if(we)if(r.filesTree!==void 0){const s=e;ye(r.filesTree,{instancePath:t+"/filesTree",parentData:r,parentDataProperty:"filesTree",rootData:h})||(i=i===null?ye.errors:i.concat(ye.errors),e=i.length);var we=s===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(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="command"||s==="wpCliPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 He=O===e}else var He=!0;if(He)if(s.caption!==void 0){const n=e;if(typeof s.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 He=n===e}else var He=!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=a===e}else var ve=!0;if(ve){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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=a===e}else var ve=!0;if(ve){if(r.command!==void 0){let s=r.command;const a=e,k=e;let n=!1;const O=e;if(typeof s!="string"){const ie={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ie]:i.push(ie),e++}var tr=O===e;if(n=n||tr,!n){const ie=e;if(e===ie)if(Array.isArray(s)){var br=!0;const Pe=s.length;for(let Ye=0;Ye<Pe;Ye++){const me=e;if(typeof s[Ye]!="string"){const ee={instancePath:t+"/command/"+Ye,schemaPath:"#/oneOf/27/properties/command/anyOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ee]:i.push(ee),e++}var br=me===e;if(!br)break}}else{const Pe={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};i===null?i=[Pe]:i.push(Pe),e++}var tr=ie===e;n=n||tr}if(n)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var ve=a===e}else var ve=!0;if(ve)if(r.wpCliPath!==void 0){const s=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=s===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(J==="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 S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="language"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))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 Ge=O===e}else var Ge=!0;if(Ge)if(s.caption!==void 0){const n=e;if(typeof s.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 Ge=n===e}else var Ge=!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 Ae=a===e}else var Ae=!0;if(Ae){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="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 Ae=a===e}else var Ae=!0;if(Ae)if(r.language!==void 0){const s=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 Ae=s===e}else var Ae=!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:J},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:J},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=i,e===0}function B(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){const E=e;for(const u in r)if(!Qr.call(vt.properties,u))return B.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:u},message:"must NOT have additional properties"}],!1;if(E===e){if(r.landingPage!==void 0){const u=e;if(typeof r.landingPage!="string")return B.errors=[{instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=u===e}else var d=!0;if(d){if(r.description!==void 0){const u=e;if(typeof r.description!="string")return B.errors=[{instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=u===e}else var d=!0;if(d){if(r.meta!==void 0){let u=r.meta;const j=e;if(e===j)if(u&&typeof u=="object"&&!Array.isArray(u)){let y;if(u.title===void 0&&(y="title")||u.author===void 0&&(y="author"))return B.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty:y},message:"must have required property '"+y+"'"}],!1;{const v=e;for(const b in u)if(!(b==="title"||b==="description"||b==="author"||b==="categories"))return B.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:b},message:"must NOT have additional properties"}],!1;if(v===e){if(u.title!==void 0){const b=e;if(typeof u.title!="string")return B.errors=[{instancePath:t+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=b===e}else var g=!0;if(g){if(u.description!==void 0){const b=e;if(typeof u.description!="string")return B.errors=[{instancePath:t+"/meta/description",schemaPath:"#/properties/meta/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=b===e}else var g=!0;if(g){if(u.author!==void 0){const b=e;if(typeof u.author!="string")return B.errors=[{instancePath:t+"/meta/author",schemaPath:"#/properties/meta/properties/author/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=b===e}else var g=!0;if(g)if(u.categories!==void 0){let b=u.categories;const T=e;if(e===T)if(Array.isArray(b)){var x=!0;const l=b.length;for(let D=0;D<l;D++){const A=e;if(typeof b[D]!="string")return B.errors=[{instancePath:t+"/meta/categories/"+D,schemaPath:"#/properties/meta/properties/categories/items/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var x=A===e;if(!x)break}}else return B.errors=[{instancePath:t+"/meta/categories",schemaPath:"#/properties/meta/properties/categories/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var g=T===e}else var g=!0}}}}}else return B.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=j===e}else var d=!0;if(d){if(r.preferredVersions!==void 0){let u=r.preferredVersions;const j=e;if(e===j)if(u&&typeof u=="object"&&!Array.isArray(u)){let y;if(u.php===void 0&&(y="php")||u.wp===void 0&&(y="wp"))return B.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/required",keyword:"required",params:{missingProperty:y},message:"must have required property '"+y+"'"}],!1;{const v=e;for(const b in u)if(!(b==="php"||b==="wp"))return B.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:b},message:"must NOT have additional properties"}],!1;if(v===e){if(u.php!==void 0){let b=u.php;const T=e,w=e;let l=!1;const D=e;if(typeof b!="string"){const A={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[A]:i.push(A),e++}if(!(b==="8.3"||b==="8.2"||b==="8.1"||b==="8.0"||b==="7.4"||b==="7.3"||b==="7.2"||b==="7.1"||b==="7.0")){const A={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/enum",keyword:"enum",params:{allowedValues:Pt.enum},message:"must be equal to one of the allowed values"};i===null?i=[A]:i.push(A),e++}var q=D===e;if(l=l||q,!l){const A=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"};i===null?i=[U]:i.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"};i===null?i=[U]:i.push(U),e++}var q=A===e;l=l||q}if(l)e=w,i!==null&&(w?i.length=w:i=null);else{const A={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[A]:i.push(A),e++,B.errors=i,!1}var P=T===e}else var P=!0;if(P)if(u.wp!==void 0){const b=e;if(typeof u.wp!="string")return B.errors=[{instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var P=b===e}else var P=!0}}}else return B.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=j===e}else var d=!0;if(d){if(r.features!==void 0){let u=r.features;const j=e;if(e===j)if(u&&typeof u=="object"&&!Array.isArray(u)){const y=e;for(const v in u)if(v!=="networking")return B.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:v},message:"must NOT have additional properties"}],!1;if(y===e&&u.networking!==void 0&&typeof u.networking!="boolean")return B.errors=[{instancePath:t+"/features/networking",schemaPath:"#/properties/features/properties/networking/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1}else return B.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=j===e}else var d=!0;if(d){if(r.extraLibraries!==void 0){let u=r.extraLibraries;const j=e;if(e===j)if(Array.isArray(u)){var $=!0;const y=u.length;for(let v=0;v<y;v++){let b=u[v];const T=e;if(typeof b!="string")return B.errors=[{instancePath:t+"/extraLibraries/"+v,schemaPath:"#/definitions/ExtraLibrary/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(b!=="wp-cli")return B.errors=[{instancePath:t+"/extraLibraries/"+v,schemaPath:"#/definitions/ExtraLibrary/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var $=T===e;if(!$)break}}else return B.errors=[{instancePath:t+"/extraLibraries",schemaPath:"#/properties/extraLibraries/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=j===e}else var d=!0;if(d){if(r.constants!==void 0){let u=r.constants;const j=e;if(e===e)if(u&&typeof u=="object"&&!Array.isArray(u))for(const v in u){let b=u[v];const T=e;if(typeof b!="string"&&typeof b!="boolean"&&!(typeof b=="number"&&isFinite(b)))return B.errors=[{instancePath:t+"/constants/"+v.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPConstants/additionalProperties/type",keyword:"type",params:{type:_t.additionalProperties.type},message:"must be string,boolean,number"}],!1;var L=T===e;if(!L)break}else return B.errors=[{instancePath:t+"/constants",schemaPath:"#/definitions/PHPConstants/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=j===e}else var d=!0;if(d){if(r.plugins!==void 0){let u=r.plugins;const j=e;if(e===j)if(Array.isArray(u)){var N=!0;const y=u.length;for(let v=0;v<y;v++){let b=u[v];const T=e,w=e;let l=!1;const D=e;if(typeof b!="string"){const R={instancePath:t+"/plugins/"+v,schemaPath:"#/properties/plugins/items/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[R]:i.push(R),e++}var m=D===e;if(l=l||m,!l){const R=e;K(b,{instancePath:t+"/plugins/"+v,parentData:u,parentDataProperty:v,rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var m=R===e;l=l||m}if(l)e=w,i!==null&&(w?i.length=w:i=null);else{const R={instancePath:t+"/plugins/"+v,schemaPath:"#/properties/plugins/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[R]:i.push(R),e++,B.errors=i,!1}var N=T===e;if(!N)break}}else return B.errors=[{instancePath:t+"/plugins",schemaPath:"#/properties/plugins/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=j===e}else var d=!0;if(d){if(r.siteOptions!==void 0){let u=r.siteOptions;const j=e;if(e===j)if(u&&typeof u=="object"&&!Array.isArray(u)){const y=e;for(const v in u)if(v!=="blogname"){const b=e;if(typeof u[v]!="string")return B.errors=[{instancePath:t+"/siteOptions/"+v.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/siteOptions/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var I=b===e;if(!I)break}if(y===e&&u.blogname!==void 0&&typeof u.blogname!="string")return B.errors=[{instancePath:t+"/siteOptions/blogname",schemaPath:"#/properties/siteOptions/properties/blogname/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1}else return B.errors=[{instancePath:t+"/siteOptions",schemaPath:"#/properties/siteOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=j===e}else var d=!0;if(d){if(r.login!==void 0){let u=r.login;const j=e,z=e;let y=!1;const v=e;if(typeof u!="boolean"){const T={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};i===null?i=[T]:i.push(T),e++}var V=v===e;if(y=y||V,!y){const T=e;if(e===T)if(u&&typeof u=="object"&&!Array.isArray(u)){let l;if(u.username===void 0&&(l="username")||u.password===void 0&&(l="password")){const D={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"};i===null?i=[D]:i.push(D),e++}else{const D=e;for(const A in u)if(!(A==="username"||A==="password")){const R={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:A},message:"must NOT have additional properties"};i===null?i=[R]:i.push(R),e++;break}if(D===e){if(u.username!==void 0){const A=e;if(typeof u.username!="string"){const R={instancePath:t+"/login/username",schemaPath:"#/properties/login/anyOf/1/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[R]:i.push(R),e++}var Q=A===e}else var Q=!0;if(Q)if(u.password!==void 0){const A=e;if(typeof u.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"};i===null?i=[U]:i.push(U),e++}var Q=A===e}else var Q=!0}}}else{const l={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[l]:i.push(l),e++}var V=T===e;y=y||V}if(y)e=z,i!==null&&(z?i.length=z:i=null);else{const T={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[T]:i.push(T),e++,B.errors=i,!1}var d=j===e}else var d=!0;if(d){if(r.steps!==void 0){let u=r.steps;const j=e;if(e===j)if(Array.isArray(u)){var _=!0;const y=u.length;for(let v=0;v<y;v++){let b=u[v];const T=e,w=e;let l=!1;const D=e;o(b,{instancePath:t+"/steps/"+v,parentData:u,parentDataProperty:v,rootData:h})||(i=i===null?o.errors:i.concat(o.errors),e=i.length);var M=D===e;if(l=l||M,!l){const R=e;if(typeof b!="string"){const F={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[F]:i.push(F),e++}var M=R===e;if(l=l||M,!l){const F=e,G={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};i===null?i=[G]:i.push(G),e++;var M=F===e;if(l=l||M,!l){const Y=e;if(typeof b!="boolean"){const H={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf/3/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};i===null?i=[H]:i.push(H),e++}if(b!==!1){const H={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf/3/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};i===null?i=[H]:i.push(H),e++}var M=Y===e;if(l=l||M,!l){const H=e;if(b!==null){const Z={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf/4/type",keyword:"type",params:{type:"null"},message:"must be null"};i===null?i=[Z]:i.push(Z),e++}var M=H===e;l=l||M}}}}if(l)e=w,i!==null&&(w?i.length=w:i=null);else{const R={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[R]:i.push(R),e++,B.errors=i,!1}var _=T===e;if(!_)break}}else return B.errors=[{instancePath:t+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=j===e}else var d=!0;if(d)if(r.$schema!==void 0){const u=e;if(typeof r.$schema!="string")return B.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=u===e}else var d=!0}}}}}}}}}}}}else return B.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return B.errors=i,e===0}function Je(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;return B(r,{instancePath:t,parentData:p,parentDataProperty:c,rootData:h})||(i=i===null?B.errors:i.concat(B.errors),e=i.length),Je.errors=i,e===0}const{wpCLI:$t,...Pr}=at,Et={...Pr,"wp-cli":$t,importFile:Pr.importWxr};function jt(r,{progress:t=new Or.ProgressTracker,semaphore:p=new W.Semaphore({concurrency:3}),onStepCompleted:c=()=>{},corsProxy:h}={}){var $,L,N,m,I,V,Q,_,M;r=structuredClone(r),r={...r,steps:(r.steps||[]).filter(At).filter(Rt)};for(const E of r.steps)!E||typeof E!="object"||(E.step==="importFile"?(E.step="importWxr",ce.logger.warn('The "importFile" step is deprecated. Use "importWxr" instead.')):(E==null?void 0:E.step)==="installPlugin"&&"pluginZipFile"in E?(E.pluginData=E.pluginZipFile,ce.logger.warn('The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.')):(E==null?void 0:E.step)==="installTheme"&&"themeZipFile"in E&&(E.themeData=E.themeZipFile,ce.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 E=r.plugins.map(u=>typeof u=="string"?u.startsWith("https://")?{resource:"url",url:u}:{resource:"wordpress.org/plugins",slug:u}:u).map(u=>({step:"installPlugin",pluginData:u}));r.steps.unshift(...E)}r.login&&r.steps.push({step:"login",...r.login===!0?{username:"admin"}:r.login});const i=(($=r.steps)==null?void 0:$.findIndex(E=>typeof E=="object"&&(E==null?void 0:E.step)&&["wp-cli","enableMultisite"].includes(E.step)))??-1;if((L=r==null?void 0:r.extraLibraries)!=null&&L.includes("wp-cli")||i!==-1){const E={step:"writeFile",data:tt,path:ur};i===-1?(N=r.steps)==null||N.push(E):(m=r.steps)==null||m.splice(i,0,E)}const e=(I=r.steps)==null?void 0:I.findIndex(E=>typeof E=="object"&&(E==null?void 0:E.step)==="importWxr");e!==void 0&&e>-1&&((V=r.steps)==null||V.splice(e,0,{step:"installPlugin",pluginData:{resource:"url",url:"https://playground.wordpress.net/wordpress-importer.zip",caption:"Downloading the WordPress Importer plugin"}}));const{valid:d,errors:g}=Tt(r);if(!d){const E=new Error(`Invalid blueprint: ${g[0].message} at ${g[0].instancePath}`);throw E.errors=g,E}const x=r.steps||[],q=x.reduce((E,u)=>{var j;return E+(((j=u.progress)==null?void 0:j.weight)||1)},0),P=x.map(E=>Lt(E,{semaphore:p,rootProgressTracker:t,totalProgressWeight:q,corsProxy:h}));return{versions:{php:qt((Q=r.preferredVersions)==null?void 0:Q.php,Ne.SupportedPHPVersions,Ne.LatestSupportedPHPVersion),wp:((_=r.preferredVersions)==null?void 0:_.wp)||"latest"},features:{networking:((M=r.features)==null?void 0:M.networking)??!1},extraLibraries:r.extraLibraries||[],run:async E=>{try{for(const{resources:u}of P)for(const j of u)j.setPlayground(E),j.isAsync&&j.resolve();for(const[u,{run:j,step:z}]of Object.entries(P))try{const y=await j(E);c(y,z)}catch(y){throw ce.logger.error(y),new Error(`Error when executing the blueprint step #${u} (${JSON.stringify(z)}) ${y instanceof Error?`: ${y.message}`:y}`,{cause:y})}}finally{try{await E.goTo(r.landingPage||"/")}catch{}t.finish()}}}}function Tt(r){var h;const t=Je(r);if(t)return{valid:t};const p=new Set;for(const i of Je.errors)i.schemaPath.startsWith("#/properties/steps/items/anyOf")||p.add(i.instancePath);const c=(h=Je.errors)==null?void 0:h.filter(i=>!(i.schemaPath.startsWith("#/properties/steps/items/anyOf")&&p.has(i.instancePath)));return{valid:t,errors:c}}function qt(r,t,p){return r&&t.includes(r)?r:p}function At(r){return!!(typeof r=="object"&&r)}function Rt(r){return["setPhpIniEntry","request"].includes(r.step)?(ce.logger.warn(`The "${r.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`),!1):!0}function Lt(r,{semaphore:t,rootProgressTracker:p,totalProgressWeight:c,corsProxy:h}){var P;const i=p.stage((((P=r.progress)==null?void 0:P.weight)||1)/c),e={};for(const $ of Object.keys(r)){let L=r[$];ft(L)&&(L=ke.create(L,{semaphore:t,corsProxy:h})),e[$]=L}const d=async $=>{var L;try{return i.fillSlowly(),await Et[r.step]($,await Ft(e),{tracker:i,initialCaption:(L=r.progress)==null?void 0:L.caption})}finally{i.finish()}},g=_r(e),x=_r(e).filter($=>$.isAsync),q=1/(x.length+1);for(const $ of x)$.progress=i.stage(q);return{run:d,step:r,resources:g}}function _r(r){const t=[];for(const p in r){const c=r[p];c instanceof ke&&t.push(c)}return t}async function Ft(r){const t={};for(const p in r){const c=r[p];c instanceof ke?t[p]=await c.resolve():t[p]=c}return t}async function St(r,t){await r.run(t)}function Nt(){}exports.activatePlugin=pr;exports.activateTheme=fr;exports.compileBlueprint=jt;exports.cp=Lr;exports.defineSiteUrl=yr;exports.defineWpConfigConsts=Ke;exports.enableMultisite=Rr;exports.exportWXR=Wr;exports.importThemeStarterContent=hr;exports.importWordPressFiles=Cr;exports.importWxr=xr;exports.installPlugin=Ur;exports.installTheme=Vr;exports.login=Mr;exports.mkdir=Sr;exports.mv=Fr;exports.request=Tr;exports.resetData=zr;exports.rm=lr;exports.rmdir=Nr;exports.runBlueprintSteps=St;exports.runPHP=$r;exports.runPHPWithOptions=Er;exports.runSql=jr;exports.runWpInstallationWizard=Br;exports.setPluginProxyURL=Nt;exports.setSiteLanguage=Gr;exports.setSiteOptions=dr;exports.unzip=er;exports.updateUserMeta=qr;exports.wpCLI=cr;exports.wpContentFilesExcludedFromExport=ar;exports.writeFile=mr;exports.writeFiles=Dr;exports.zipWpContent=Hr;
|