@wp-playground/client 3.0.4 → 3.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.cjs +63 -63
  2. package/index.js +2015 -1713
  3. package/package.json +2 -2
package/index.cjs CHANGED
@@ -1,24 +1,24 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var zr=typeof document<"u"?document.currentScript:null;const Xl=function(){var e;return typeof process<"u"&&((e=process.release)==null?void 0:e.name)==="node"?"NODE":typeof window<"u"?"WEB":typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?"WORKER":"NODE"}();if(Xl==="NODE"){let e=function(r){return new Promise(function(i,a){r.onload=r.onerror=function(n){r.onload=r.onerror=null,n.type==="load"?i(r.result):a(new Error("Failed to read the blob/file"))}})},t=function(){const r=new Uint8Array([1,2,3,4]),a=new File([r],"test").stream();try{return a.getReader({mode:"byob"}),!0}catch{return!1}};if(typeof File>"u"){class r extends Blob{constructor(a,n,s){super(a);let o;s!=null&&s.lastModified&&(o=new Date),(!o||isNaN(o.getFullYear()))&&(o=new Date),this.lastModifiedDate=o,this.lastModified=o.getMilliseconds(),this.name=n||""}}global.File=r}typeof Blob.prototype.arrayBuffer>"u"&&(Blob.prototype.arrayBuffer=function(){const i=new FileReader;return i.readAsArrayBuffer(this),e(i)}),typeof Blob.prototype.text>"u"&&(Blob.prototype.text=function(){const i=new FileReader;return i.readAsText(this),e(i)}),(typeof Blob.prototype.stream>"u"||!t())&&(Blob.prototype.stream=function(){let r=0;const i=this;return new ReadableStream({type:"bytes",autoAllocateChunkSize:512*1024,async pull(a){const n=a.byobRequest.view,o=await i.slice(r,r+n.byteLength).arrayBuffer(),f=new Uint8Array(o);new Uint8Array(n.buffer).set(f);const p=f.byteLength;a.byobRequest.respond(p),r+=p,r>=i.size&&a.close()}})})}if(Xl==="NODE"&&typeof CustomEvent>"u"){class e extends Event{constructor(r,i={}){super(r,i),this.detail=i.detail}initCustomEvent(){}}globalThis.CustomEvent=e}function Jl(e){return e&&"read"in e&&typeof e.read=="function"}async function qc(e){if(!Jl(e))return e;const r=await(await e.read("blueprint.json")).text();return JSON.parse(r)}class Jr{constructor(t,r,i){this.declaration=t,this.bundle=r,this.version=i}static async create(t){const r=await qc(t),i=Jl(t)?t:void 0;return Jr.createFromDeclaration(r,i)}static createFromDeclaration(t,r=void 0){return new Jr(t,r,t.version||1)}getVersion(){return this.version}getDeclaration(){return this.declaration}isBundle(){return this.bundle!==void 0}getBundle(){return this.bundle}getBlueprint(){return this.getBundle()||this.getDeclaration()}}const Kc="playground-log",ja=(e,...t)=>{Pe.dispatchEvent(new CustomEvent(Kc,{detail:{log:e,args:t}}))},zc=(e,...t)=>{switch(typeof e.message=="string"?Reflect.set(e,"message",Fi(e.message)):e.message.message&&typeof e.message.message=="string"&&Reflect.set(e.message,"message",Fi(e.message.message)),e.severity){case ft.Debug:console.debug(e.message,...t);break;case ft.Info:console.info(e.message,...t);break;case ft.Warn:console.warn(e.message,...t);break;case ft.Error:console.error(e.message,...t);break;case ft.Fatal:console.error(e.message,...t);break;default:console.log(e.message,...t)}},Vc=e=>e instanceof Error?[e.message,e.stack].join(`
2
- `):JSON.stringify(e,null,2),Ql=[],Wa=e=>{Ql.push(e)},Hi=e=>{if(e.raw===!0)Wa(e.message);else{const t=Xc(typeof e.message=="object"?Vc(e.message):e.message,e.severity,e.prefix??cr.JS);Wa(t)}};let ei=0;const Ua="/wordpress/wp-content/debug.log",Gc=async e=>await e.fileExists(Ua)?await e.readFileAsText(Ua):"",ef=(e,t)=>{t.addEventListener("request.end",async()=>{const r=await Gc(t);if(r.length>ei){const i=r.substring(ei);e.logMessage({message:i,severity:ft.Log,raw:!0}),ei=r.length}}),t.addEventListener("request.error",r=>{r=r,r.error&&(e.logMessage({message:`${r.error.message} ${r.error.stack}`,severity:ft.Fatal,prefix:r.source==="request"?cr.PHP:cr.WASM}),e.dispatchEvent(new CustomEvent(e.fatalErrorEvent,{detail:{logs:e.getLogs(),source:r.source}})))})},ft={Fatal:{name:"fatal",level:0},Error:{name:"error",level:1},Warn:{name:"warn",level:2},Log:{name:"log",level:3},Info:{name:"info",level:4},Debug:{name:"debug",level:5}},cr={WASM:"Wasm Crash",PHP:"PHP",JS:"JavaScript"};class Zc extends EventTarget{constructor(t=[]){super(),this.fatalErrorEvent="playground-fatal-error",this.severity=ft.Info,this.handlers=t}getLogs(){return this.handlers.includes(Hi)?[...Ql]:(this.error(`Logs aren't stored because the logToMemory handler isn't registered.
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var zr=typeof document<"u"?document.currentScript:null;const tf=function(){var e;return typeof process<"u"&&((e=process.release)==null?void 0:e.name)==="node"?"NODE":typeof window<"u"?"WEB":typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?"WORKER":"NODE"}();if(tf==="NODE"){let e=function(r){return new Promise(function(i,a){r.onload=r.onerror=function(n){r.onload=r.onerror=null,n.type==="load"?i(r.result):a(new Error("Failed to read the blob/file"))}})},t=function(){const r=new Uint8Array([1,2,3,4]),a=new File([r],"test").stream();try{return a.getReader({mode:"byob"}),!0}catch{return!1}};if(typeof File>"u"){class r extends Blob{constructor(a,n,s){super(a);let o;s!=null&&s.lastModified&&(o=new Date),(!o||isNaN(o.getFullYear()))&&(o=new Date),this.lastModifiedDate=o,this.lastModified=o.getMilliseconds(),this.name=n||""}}global.File=r}typeof Blob.prototype.arrayBuffer>"u"&&(Blob.prototype.arrayBuffer=function(){const i=new FileReader;return i.readAsArrayBuffer(this),e(i)}),typeof Blob.prototype.text>"u"&&(Blob.prototype.text=function(){const i=new FileReader;return i.readAsText(this),e(i)}),(typeof Blob.prototype.stream>"u"||!t())&&(Blob.prototype.stream=function(){let r=0;const i=this;return new ReadableStream({type:"bytes",autoAllocateChunkSize:512*1024,async pull(a){const n=a.byobRequest.view,o=await i.slice(r,r+n.byteLength).arrayBuffer(),f=new Uint8Array(o);new Uint8Array(n.buffer).set(f);const p=f.byteLength;a.byobRequest.respond(p),r+=p,r>=i.size&&a.close()}})})}if(tf==="NODE"&&typeof CustomEvent>"u"){class e extends Event{constructor(r,i={}){super(r,i),this.detail=i.detail}initCustomEvent(){}}globalThis.CustomEvent=e}function rf(e){return e&&"read"in e&&typeof e.read=="function"}async function Zc(e){if(!rf(e))return e;const r=await(await e.read("blueprint.json")).text();return JSON.parse(r)}class Jr{constructor(t,r,i){this.declaration=t,this.bundle=r,this.version=i}static async create(t){const r=await Zc(t),i=rf(t)?t:void 0;return Jr.createFromDeclaration(r,i)}static createFromDeclaration(t,r=void 0){return new Jr(t,r,t.version||1)}getVersion(){return this.version}getDeclaration(){return this.declaration}isBundle(){return this.bundle!==void 0}getBundle(){return this.bundle}getBlueprint(){return this.getBundle()||this.getDeclaration()}}const Yc="playground-log",Ma=(e,...t)=>{Pe.dispatchEvent(new CustomEvent(Yc,{detail:{log:e,args:t}}))},Xc=(e,...t)=>{switch(typeof e.message=="string"?Reflect.set(e,"message",ji(e.message)):e.message.message&&typeof e.message.message=="string"&&Reflect.set(e.message,"message",ji(e.message.message)),e.severity){case ft.Debug:console.debug(e.message,...t);break;case ft.Info:console.info(e.message,...t);break;case ft.Warn:console.warn(e.message,...t);break;case ft.Error:console.error(e.message,...t);break;case ft.Fatal:console.error(e.message,...t);break;default:console.log(e.message,...t)}},Jc=e=>e instanceof Error?[e.message,e.stack].join(`
2
+ `):JSON.stringify(e,null,2),sf=[],qa=e=>{sf.push(e)},Ni=e=>{if(e.raw===!0)qa(e.message);else{const t=ru(typeof e.message=="object"?Jc(e.message):e.message,e.severity,e.prefix??cr.JS);qa(t)}};let ei=0;const Ka="/wordpress/wp-content/debug.log",Qc=async e=>await e.fileExists(Ka)?await e.readFileAsText(Ka):"",nf=(e,t)=>{t.addEventListener("request.end",async()=>{const r=await Qc(t);if(r.length>ei){const i=r.substring(ei);e.logMessage({message:i,severity:ft.Log,raw:!0}),ei=r.length}}),t.addEventListener("request.error",r=>{r=r,r.error&&(e.logMessage({message:`${r.error.message} ${r.error.stack}`,severity:ft.Fatal,prefix:r.source==="request"?cr.PHP:cr.WASM}),e.dispatchEvent(new CustomEvent(e.fatalErrorEvent,{detail:{logs:e.getLogs(),source:r.source}})))})},ft={Fatal:{name:"fatal",level:0},Error:{name:"error",level:1},Warn:{name:"warn",level:2},Log:{name:"log",level:3},Info:{name:"info",level:4},Debug:{name:"debug",level:5}},cr={WASM:"Wasm Crash",PHP:"PHP",JS:"JavaScript"};class eu extends EventTarget{constructor(t=[]){super(),this.fatalErrorEvent="playground-fatal-error",this.severity=ft.Info,this.handlers=t}getLogs(){return this.handlers.includes(Ni)?[...sf]:(this.error(`Logs aren't stored because the logToMemory handler isn't registered.
3
3
  If you're using a custom logger instance, make sure to register logToMemory handler.
4
- `),[])}logMessage(t,...r){const i={...t,severity:t.severity??ft.Log};for(const a of this.handlers)i.severity.level<=this.severity.level&&a(i,...r)}setSeverityFilterLevel(t){this.severity=t}log(t,...r){this.logMessage({message:t,severity:ft.Log,prefix:cr.JS,raw:!1},...r)}debug(t,...r){this.logMessage({message:t,severity:ft.Debug,prefix:cr.JS,raw:!1},...r)}info(t,...r){this.logMessage({message:t,severity:ft.Info,prefix:cr.JS,raw:!1},...r)}warn(t,...r){this.logMessage({message:t,severity:ft.Warn,prefix:cr.JS,raw:!1},...r)}error(t,...r){this.logMessage({message:t,severity:ft.Error,prefix:cr.JS,raw:!1},...r)}}const Yc=()=>{try{if(process.env.NODE_ENV==="test")return[Hi,ja]}catch{}return[Hi,zc,ja]},Pe=new Zc(Yc()),Fi=e=>e.replace(/\t/g,""),Xc=(e,t,r)=>{const i=new Date,a=new Intl.DateTimeFormat("en-GB",{year:"numeric",month:"short",day:"2-digit",timeZone:"UTC"}).format(i).replace(/ /g,"-"),n=new Intl.DateTimeFormat("en-GB",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:"UTC",timeZoneName:"short"}).format(i),s=a+" "+n;return e=Fi(e),`[${s}] ${r} ${t.name}: ${e}`},Jc=5*1024*1024;function Qc(e,t){const r=e.headers.get("content-length")||"",i=parseInt(r,10)||Jc;return new Response(tf(e.body,i,t),{status:e.status,statusText:e.statusText,headers:e.headers})}function tf(e,t,r){function i(a,n){r(new CustomEvent("progress",{detail:{loaded:a,total:n}}))}return new ReadableStream({async start(a){if(!e){a.close();return}const n=e.getReader();let s=0;for(;;)try{const{done:o,value:f}=await n.read();if(f&&(s+=f.byteLength),o){i(s,s),a.close();break}else i(s,t),a.enqueue(f)}catch(o){Pe.error({e:o}),a.error(o);break}}})}const Ma=1e-5;class Dn extends EventTarget{constructor({weight:t=1,caption:r="",fillTime:i=4}={}){super(),this._selfWeight=1,this._selfDone=!1,this._selfProgress=0,this._selfCaption="",this._isFilling=!1,this._subTrackers=[],this._weight=t,this._selfCaption=r,this._fillTime=i}stage(t,r=""){if(t||(t=this._selfWeight),this._selfWeight-t<-1e-5)throw new Error(`Cannot add a stage with weight ${t} as the total weight of registered stages would exceed 1.`);this._selfWeight-=t;const i=new Dn({caption:r,weight:t,fillTime:this._fillTime});return this._subTrackers.push(i),i.addEventListener("progress",()=>this.notifyProgress()),i.addEventListener("done",()=>{this.done&&this.notifyDone()}),i}fillSlowly({stopBeforeFinishing:t=!0}={}){if(this._isFilling)return;this._isFilling=!0;const i=this._fillTime/100;this._fillInterval=setInterval(()=>{this.set(this._selfProgress+1),t&&this._selfProgress>=99&&clearInterval(this._fillInterval)},i)}set(t){this._selfProgress=Math.min(t,100),this.notifyProgress(),this._selfProgress+Ma>=100&&this.finish()}finish(){this._fillInterval&&clearInterval(this._fillInterval),this._selfDone=!0,this._selfProgress=100,this._isFilling=!1,this._fillInterval=void 0,this.notifyProgress(),this.notifyDone()}get caption(){for(let t=this._subTrackers.length-1;t>=0;t--)if(!this._subTrackers[t].done){const r=this._subTrackers[t].caption;if(r)return r}return this._selfCaption}setCaption(t){this._selfCaption=t,this.notifyProgress()}get done(){return this.progress+Ma>=100}get progress(){if(this._selfDone)return 100;const t=this._subTrackers.reduce((r,i)=>r+i.progress*i.weight,this._selfProgress*this._selfWeight);return Math.round(t*1e4)/1e4}get weight(){return this._weight}get observer(){return this._progressObserver||(this._progressObserver=t=>{this.set(t)}),this._progressObserver}get loadingListener(){return this._loadingListener||(this._loadingListener=t=>{this.set(t.detail.loaded/t.detail.total*100)}),this._loadingListener}pipe(t){t.setProgress({progress:this.progress,caption:this.caption}),this.addEventListener("progress",r=>{t.setProgress({progress:r.detail.progress,caption:r.detail.caption})}),this.addEventListener("done",()=>{t.setLoaded()})}addEventListener(t,r){super.addEventListener(t,r)}removeEventListener(t,r){super.removeEventListener(t,r)}notifyProgress(){const t=this;this.dispatchEvent(new CustomEvent("progress",{detail:{get progress(){return t.progress},get caption(){return t.caption}}}))}notifyDone(){this.dispatchEvent(new CustomEvent("done"))}}const rf=Symbol("SleepFinished");function eu(e){return new Promise(t=>{setTimeout(()=>t(rf),e)})}class tu extends Error{constructor(){super("Acquiring lock timed out")}}class Qr{constructor({concurrency:t,timeout:r}){this._running=0,this.concurrency=t,this.timeout=r,this.queue=[]}get remaining(){return this.concurrency-this.running}get running(){return this._running}async acquire(){for(;;)if(this._running>=this.concurrency){const t=new Promise(r=>{this.queue.push(r)});this.timeout!==void 0?await Promise.race([t,eu(this.timeout)]).then(r=>{if(r===rf)throw new tu}):await t}else{this._running++;let t=!1;return()=>{t||(t=!0,this._running--,this.queue.length>0&&this.queue.shift()())}}}async run(t){const r=await this.acquire();try{return await t()}finally{r()}}}function Ee(...e){function t(n){return n.substring(n.length-1)==="/"}let r=e.join("/");const i=r[0]==="/",a=t(r);return r=$n(r),!r&&!i&&(r="."),r&&a&&!t(r)&&(r+="/"),r}function bn(e){if(e==="/")return"/";e=$n(e);const t=e.lastIndexOf("/");return t===-1?"":t===0?"/":e.substr(0,t)}function $n(e){const t=e[0]==="/";return e=ru(e.split("/").filter(r=>!!r),!t).join("/"),(t?"/":"")+e.replace(/\/$/,"")}function ru(e,t){let r=0;for(let i=e.length-1;i>=0;i--){const a=e[i];a==="."?e.splice(i,1):a===".."?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r;r--)e.unshift("..");return e}function su(e=36,t="!@#$%^&*()_+=-[]/.,<>?"){const r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"+t;let i="";for(let a=e;a>0;--a)i+=r[Math.floor(Math.random()*r.length)];return i}function sf(){return su(36,"-_")}function ct(e){return`json_decode(base64_decode('${nu(JSON.stringify(e))}'), true)`}function Is(e){const t={};for(const r in e)t[r]=ct(e[r]);return t}function nu(e){return iu(new TextEncoder().encode(e))}function iu(e){const t=String.fromCodePoint(...e);return btoa(t)}function au(e){let t=0;e.forEach(a=>t+=a.length);const r=new Uint8Array(t);let i=0;return e.forEach(a=>{r.set(a,i),i+=a.length}),r}(function(){var e;return typeof process<"u"&&((e=process.release)==null?void 0:e.name)==="node"?"NODE":typeof window<"u"?"WEB":typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?"WORKER":"NODE"})();const ou={500:"Internal Server Error",502:"Bad Gateway",404:"Not Found",403:"Forbidden",401:"Unauthorized",400:"Bad Request",301:"Moved Permanently",302:"Found",307:"Temporary Redirect",308:"Permanent Redirect",204:"No Content",201:"Created",200:"OK"};class ds{constructor(t,r,i,a="",n=0){this.httpStatusCode=t,this.headers=r,this.bytes=i,this.exitCode=n,this.errors=a}static forHttpCode(t,r=""){return new ds(t,{},new TextEncoder().encode(r||ou[t]||""))}static fromRawData(t){return new ds(t.httpStatusCode,t.headers,t.bytes,t.errors,t.exitCode)}static async fromStreamedResponse(t){return await t.finished,new ds(await t.httpStatusCode,await t.headers,await t.stdoutBytes,await t.stderrText,await t.exitCode)}ok(){return this.httpStatusCode>=200&&this.httpStatusCode<400}toRawData(){return{headers:this.headers,bytes:this.bytes,errors:this.errors,exitCode:this.exitCode,httpStatusCode:this.httpStatusCode}}get json(){return JSON.parse(this.text)}get text(){return new TextDecoder().decode(this.bytes)}}const qa="/internal/shared/php.ini";function oa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const{hasOwnProperty:ti}=Object.prototype,Ni=(e,t={})=>{typeof t=="string"&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<"u"&&process.platform,t.bracketedArray=t.bracketedArray!==!1;const r=t.platform==="win32"?`\r
4
+ `),[])}logMessage(t,...r){const i={...t,severity:t.severity??ft.Log};for(const a of this.handlers)i.severity.level<=this.severity.level&&a(i,...r)}setSeverityFilterLevel(t){this.severity=t}log(t,...r){this.logMessage({message:t,severity:ft.Log,prefix:cr.JS,raw:!1},...r)}debug(t,...r){this.logMessage({message:t,severity:ft.Debug,prefix:cr.JS,raw:!1},...r)}info(t,...r){this.logMessage({message:t,severity:ft.Info,prefix:cr.JS,raw:!1},...r)}warn(t,...r){this.logMessage({message:t,severity:ft.Warn,prefix:cr.JS,raw:!1},...r)}error(t,...r){this.logMessage({message:t,severity:ft.Error,prefix:cr.JS,raw:!1},...r)}}const tu=()=>{try{if(process.env.NODE_ENV==="test")return[Ni,Ma]}catch{}return[Ni,Xc,Ma]},Pe=new eu(tu()),ji=e=>e.replace(/\t/g,""),ru=(e,t,r)=>{const i=new Date,a=new Intl.DateTimeFormat("en-GB",{year:"numeric",month:"short",day:"2-digit",timeZone:"UTC"}).format(i).replace(/ /g,"-"),n=new Intl.DateTimeFormat("en-GB",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:"UTC",timeZoneName:"short"}).format(i),s=a+" "+n;return e=ji(e),`[${s}] ${r} ${t.name}: ${e}`},su=5*1024*1024;function nu(e,t){const r=e.headers.get("content-length")||"",i=parseInt(r,10)||su;return new Response(af(e.body,i,t),{status:e.status,statusText:e.statusText,headers:e.headers})}function af(e,t,r){function i(a,n){r(new CustomEvent("progress",{detail:{loaded:a,total:n}}))}return new ReadableStream({async start(a){if(!e){a.close();return}const n=e.getReader();let s=0;for(;;)try{const{done:o,value:f}=await n.read();if(f&&(s+=f.byteLength),o){i(s,s),a.close();break}else i(s,t),a.enqueue(f)}catch(o){Pe.error({e:o}),a.error(o);break}}})}const za=1e-5;class Dn extends EventTarget{constructor({weight:t=1,caption:r="",fillTime:i=4}={}){super(),this._selfWeight=1,this._selfDone=!1,this._selfProgress=0,this._selfCaption="",this._isFilling=!1,this._subTrackers=[],this._weight=t,this._selfCaption=r,this._fillTime=i}stage(t,r=""){if(t||(t=this._selfWeight),this._selfWeight-t<-1e-5)throw new Error(`Cannot add a stage with weight ${t} as the total weight of registered stages would exceed 1.`);this._selfWeight-=t;const i=new Dn({caption:r,weight:t,fillTime:this._fillTime});return this._subTrackers.push(i),i.addEventListener("progress",()=>this.notifyProgress()),i.addEventListener("done",()=>{this.done&&this.notifyDone()}),i}fillSlowly({stopBeforeFinishing:t=!0}={}){if(this._isFilling)return;this._isFilling=!0;const i=this._fillTime/100;this._fillInterval=setInterval(()=>{this.set(this._selfProgress+1),t&&this._selfProgress>=99&&clearInterval(this._fillInterval)},i)}set(t){this._selfProgress=Math.min(t,100),this.notifyProgress(),this._selfProgress+za>=100&&this.finish()}finish(){this._fillInterval&&clearInterval(this._fillInterval),this._selfDone=!0,this._selfProgress=100,this._isFilling=!1,this._fillInterval=void 0,this.notifyProgress(),this.notifyDone()}get caption(){for(let t=this._subTrackers.length-1;t>=0;t--)if(!this._subTrackers[t].done){const r=this._subTrackers[t].caption;if(r)return r}return this._selfCaption}setCaption(t){this._selfCaption=t,this.notifyProgress()}get done(){return this.progress+za>=100}get progress(){if(this._selfDone)return 100;const t=this._subTrackers.reduce((r,i)=>r+i.progress*i.weight,this._selfProgress*this._selfWeight);return Math.round(t*1e4)/1e4}get weight(){return this._weight}get observer(){return this._progressObserver||(this._progressObserver=t=>{this.set(t)}),this._progressObserver}get loadingListener(){return this._loadingListener||(this._loadingListener=t=>{this.set(t.detail.loaded/t.detail.total*100)}),this._loadingListener}pipe(t){t.setProgress({progress:this.progress,caption:this.caption}),this.addEventListener("progress",r=>{t.setProgress({progress:r.detail.progress,caption:r.detail.caption})}),this.addEventListener("done",()=>{t.setLoaded()})}addEventListener(t,r){super.addEventListener(t,r)}removeEventListener(t,r){super.removeEventListener(t,r)}notifyProgress(){const t=this;this.dispatchEvent(new CustomEvent("progress",{detail:{get progress(){return t.progress},get caption(){return t.caption}}}))}notifyDone(){this.dispatchEvent(new CustomEvent("done"))}}const of=Symbol("SleepFinished");function iu(e){return new Promise(t=>{setTimeout(()=>t(of),e)})}class au extends Error{constructor(){super("Acquiring lock timed out")}}class Qr{constructor({concurrency:t,timeout:r}){this._running=0,this.concurrency=t,this.timeout=r,this.queue=[]}get remaining(){return this.concurrency-this.running}get running(){return this._running}async acquire(){for(;;)if(this._running>=this.concurrency){const t=new Promise(r=>{this.queue.push(r)});this.timeout!==void 0?await Promise.race([t,iu(this.timeout)]).then(r=>{if(r===of)throw new au}):await t}else{this._running++;let t=!1;return()=>{t||(t=!0,this._running--,this.queue.length>0&&this.queue.shift()())}}}async run(t){const r=await this.acquire();try{return await t()}finally{r()}}}function Ee(...e){function t(n){return n.substring(n.length-1)==="/"}let r=e.join("/");const i=r[0]==="/",a=t(r);return r=Hn(r),!r&&!i&&(r="."),r&&a&&!t(r)&&(r+="/"),r}function bn(e){if(e==="/")return"/";e=Hn(e);const t=e.lastIndexOf("/");return t===-1?"":t===0?"/":e.substr(0,t)}function Hn(e){const t=e[0]==="/";return e=ou(e.split("/").filter(r=>!!r),!t).join("/"),(t?"/":"")+e.replace(/\/$/,"")}function ou(e,t){let r=0;for(let i=e.length-1;i>=0;i--){const a=e[i];a==="."?e.splice(i,1):a===".."?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r;r--)e.unshift("..");return e}function lu(e=36,t="!@#$%^&*()_+=-[]/.,<>?"){const r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"+t;let i="";for(let a=e;a>0;--a)i+=r[Math.floor(Math.random()*r.length)];return i}function lf(){return lu(36,"-_")}function ct(e){return`json_decode(base64_decode('${fu(JSON.stringify(e))}'), true)`}function Is(e){const t={};for(const r in e)t[r]=ct(e[r]);return t}function fu(e){return pu(new TextEncoder().encode(e))}function pu(e){const t=String.fromCodePoint(...e);return btoa(t)}function cu(e){let t=0;e.forEach(a=>t+=a.length);const r=new Uint8Array(t);let i=0;return e.forEach(a=>{r.set(a,i),i+=a.length}),r}(function(){var e;return typeof process<"u"&&((e=process.release)==null?void 0:e.name)==="node"?"NODE":typeof window<"u"?"WEB":typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?"WORKER":"NODE"})();const uu={500:"Internal Server Error",502:"Bad Gateway",404:"Not Found",403:"Forbidden",401:"Unauthorized",400:"Bad Request",301:"Moved Permanently",302:"Found",307:"Temporary Redirect",308:"Permanent Redirect",204:"No Content",201:"Created",200:"OK"};class ti{constructor(t,r,i,a){this.parsedHeaders=null,this.cachedStdoutBytes=null,this.cachedStderrText=null,this.headersStream=t,this.stdout=r,this.stderr=i,this.exitCode=a}async ok(){try{const t=await this.httpStatusCode;return t>=200&&t<400}catch{return!1}}get finished(){return Promise.allSettled([this.exitCode.finally(()=>{})]).then(()=>{})}get headers(){return this.getParsedHeaders().then(t=>t.headers)}get httpStatusCode(){return this.getParsedHeaders().then(t=>t.httpStatusCode).then(t=>t!==void 0?t:this.getParsedHeaders().then(r=>r.httpStatusCode,()=>200)).catch(()=>500)}get stdoutText(){return this.stdoutBytes.then(t=>new TextDecoder().decode(t))}get stdoutBytes(){return this.cachedStdoutBytes||(this.cachedStdoutBytes=hu(this.stdout)),this.cachedStdoutBytes}get stderrText(){return this.cachedStderrText||(this.cachedStderrText=ff(this.stderr)),this.cachedStderrText}async getParsedHeaders(){return this.parsedHeaders||(this.parsedHeaders=du(this.headersStream)),await this.parsedHeaders}}async function du(e){const t=await ff(e);let r;try{r=JSON.parse(t)}catch{return{headers:{},httpStatusCode:200}}const i={};for(const a of r.headers){if(!a.includes(": "))continue;const n=a.indexOf(": "),s=a.substring(0,n).toLowerCase(),o=a.substring(n+2);s in i||(i[s]=[]),i[s].push(o)}return{headers:i,httpStatusCode:r.status}}async function ff(e){const t=e.pipeThrough(new TextDecoderStream).getReader(),r=[];for(;;){const{done:i,value:a}=await t.read();if(i)return r.join("");a&&r.push(a)}}async function hu(e){const t=e.getReader(),r=[];for(;;){const{done:i,value:a}=await t.read();if(i){const n=r.reduce((f,p)=>f+p.byteLength,0),s=new Uint8Array(n);let o=0;for(const f of r)s.set(f,o),o+=f.byteLength;return s}a&&r.push(a)}}class ds{constructor(t,r,i,a="",n=0){this.httpStatusCode=t,this.headers=r,this.bytes=i,this.exitCode=n,this.errors=a}static forHttpCode(t,r=""){return new ds(t,{},new TextEncoder().encode(r||uu[t]||""))}static fromRawData(t){return new ds(t.httpStatusCode,t.headers,t.bytes,t.errors,t.exitCode)}static async fromStreamedResponse(t){return await t.finished,new ds(await t.httpStatusCode,await t.headers,await t.stdoutBytes,await t.stderrText,await t.exitCode)}ok(){return this.httpStatusCode>=200&&this.httpStatusCode<400}toRawData(){return{headers:this.headers,bytes:this.bytes,errors:this.errors,exitCode:this.exitCode,httpStatusCode:this.httpStatusCode}}get json(){return JSON.parse(this.text)}get text(){return new TextDecoder().decode(this.bytes)}}const Va="/internal/shared/php.ini";function pa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const{hasOwnProperty:ri}=Object.prototype,Ui=(e,t={})=>{typeof t=="string"&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<"u"&&process.platform,t.bracketedArray=t.bracketedArray!==!1;const r=t.platform==="win32"?`\r
5
5
  `:`
6
- `,i=t.whitespace?" = ":"=",a=[],n=t.sort?Object.keys(e).sort():Object.keys(e);let s=0;t.align&&(s=Gt(n.filter(p=>e[p]===null||Array.isArray(e[p])||typeof e[p]!="object").map(p=>Array.isArray(e[p])?`${p}[]`:p).concat([""]).reduce((p,c)=>Gt(p).length>=Gt(c).length?p:c)).length);let o="";const f=t.bracketedArray?"[]":"";for(const p of n){const c=e[p];if(c&&Array.isArray(c))for(const m of c)o+=Gt(`${p}${f}`).padEnd(s," ")+i+Gt(m)+r;else c&&typeof c=="object"?a.push(p):o+=Gt(p).padEnd(s," ")+i+Gt(c)+r}t.section&&o.length&&(o="["+Gt(t.section)+"]"+(t.newline?r+r:r)+o);for(const p of a){const c=nf(p,".").join("\\."),m=(t.section?t.section+".":"")+c,h=Ni(e[p],{...t,section:m});o.length&&h.length&&(o+=r),o+=h}return o};function nf(e,t){var r=0,i=0,a=0,n=[];do if(a=e.indexOf(t,r),a!==-1){if(r=a+t.length,a>0&&e[a-1]==="\\")continue;n.push(e.slice(i,a)),i=a+t.length}while(a!==-1);return n.push(e.slice(i)),n}const Ka=(e,t={})=>{t.bracketedArray=t.bracketedArray!==!1;const r=Object.create(null);let i=r,a=null;const n=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,s=e.split(/[\r\n]+/g),o={};for(const p of s){if(!p||p.match(/^\s*[;#]/)||p.match(/^\s*$/))continue;const c=p.match(n);if(!c)continue;if(c[1]!==void 0){if(a=on(c[1]),a==="__proto__"){i=Object.create(null);continue}i=r[a]=r[a]||Object.create(null);continue}const m=on(c[2]);let h;t.bracketedArray?h=m.length>2&&m.slice(-2)==="[]":(o[m]=((o==null?void 0:o[m])||0)+1,h=o[m]>1);const _=h?m.slice(0,-2):m;if(_==="__proto__")continue;const L=c[3]?on(c[4]):!0,y=L==="true"||L==="false"||L==="null"?JSON.parse(L):L;h&&(ti.call(i,_)?Array.isArray(i[_])||(i[_]=[i[_]]):i[_]=[]),Array.isArray(i[_])?i[_].push(y):i[_]=y}const f=[];for(const p of Object.keys(r)){if(!ti.call(r,p)||typeof r[p]!="object"||Array.isArray(r[p]))continue;const c=nf(p,".");i=r;const m=c.pop(),h=m.replace(/\\\./g,".");for(const _ of c)_!=="__proto__"&&((!ti.call(i,_)||typeof i[_]!="object")&&(i[_]=Object.create(null)),i=i[_]);i===r&&h===m||(i[h]=r[p],f.push(p))}for(const p of f)delete r[p];return r},af=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),Gt=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&af(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),on=e=>{if(e=(e||"").trim(),af(e)){e.charAt(0)==="'"&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let t=!1,r="";for(let i=0,a=e.length;i<a;i++){const n=e.charAt(i);if(t)"\\;#".indexOf(n)!==-1?r+=n:r+="\\"+n,t=!1;else{if(";#".indexOf(n)!==-1)break;n==="\\"?t=!0:r+=n}}return t&&(r+="\\"),r.trim()}return e};var za={parse:Ka,decode:Ka,stringify:Ni,encode:Ni,safe:Gt,unsafe:on};async function lu(e,t){const r=za.parse(await e.readFileAsText(qa));for(const[i,a]of Object.entries(t))a==null?delete r[i]:r[i]=a;await e.writeFile(qa,za.stringify(r))}function fu(...e){const t=new Uint8Array(e.reduce((i,a)=>i+a.length,0));let r=0;for(const i of e)t.set(i,r),r+=i.length;return t}function pu(e){{let t=new Uint8Array;return new TransformStream({transform(r){t=fu(t,r)},flush(r){r.enqueue(t)}})}}async function cu(e,t){return await e.pipeThrough(pu()).getReader().read().then(({value:r})=>r)}class bs extends File{constructor(t,r,i){super([],r,{type:i==null?void 0:i.type}),this.readableStream=t,this.filesize=i==null?void 0:i.filesize}slice(){throw new Error("slice() is not possible on a StreamedFile")}stream(){return this.readableStream}async text(){return new TextDecoder().decode(await this.arrayBuffer())}async arrayBuffer(){return await cu(this.stream())}}ReadableStream.prototype[Symbol.asyncIterator]||(ReadableStream.prototype[Symbol.asyncIterator]=async function*(){const e=this.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)return;yield r}}finally{e.releaseLock()}},ReadableStream.prototype.iterate=ReadableStream.prototype[Symbol.asyncIterator]);new Qr({concurrency:10});const Hn=["8.4","8.3","8.2","8.1","8.0","7.4","7.3","7.2"],of=Hn[0],uu=Hn;async function Fn(e,t,r,{rmRoot:i=!1}={}){i&&await e.isDir(t)&&await e.rmdir(t,{recursive:!0});for(const[a,n]of Object.entries(r)){const s=Ee(t,a);await e.fileExists(bn(s))||await e.mkdir(bn(s)),n instanceof Uint8Array||typeof n=="string"?await e.writeFile(s,n):await Fn(e,s,n)}}/**
6
+ `,i=t.whitespace?" = ":"=",a=[],n=t.sort?Object.keys(e).sort():Object.keys(e);let s=0;t.align&&(s=Zt(n.filter(p=>e[p]===null||Array.isArray(e[p])||typeof e[p]!="object").map(p=>Array.isArray(e[p])?`${p}[]`:p).concat([""]).reduce((p,c)=>Zt(p).length>=Zt(c).length?p:c)).length);let o="";const f=t.bracketedArray?"[]":"";for(const p of n){const c=e[p];if(c&&Array.isArray(c))for(const m of c)o+=Zt(`${p}${f}`).padEnd(s," ")+i+Zt(m)+r;else c&&typeof c=="object"?a.push(p):o+=Zt(p).padEnd(s," ")+i+Zt(c)+r}t.section&&o.length&&(o="["+Zt(t.section)+"]"+(t.newline?r+r:r)+o);for(const p of a){const c=pf(p,".").join("\\."),m=(t.section?t.section+".":"")+c,h=Ui(e[p],{...t,section:m});o.length&&h.length&&(o+=r),o+=h}return o};function pf(e,t){var r=0,i=0,a=0,n=[];do if(a=e.indexOf(t,r),a!==-1){if(r=a+t.length,a>0&&e[a-1]==="\\")continue;n.push(e.slice(i,a)),i=a+t.length}while(a!==-1);return n.push(e.slice(i)),n}const Ga=(e,t={})=>{t.bracketedArray=t.bracketedArray!==!1;const r=Object.create(null);let i=r,a=null;const n=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,s=e.split(/[\r\n]+/g),o={};for(const p of s){if(!p||p.match(/^\s*[;#]/)||p.match(/^\s*$/))continue;const c=p.match(n);if(!c)continue;if(c[1]!==void 0){if(a=on(c[1]),a==="__proto__"){i=Object.create(null);continue}i=r[a]=r[a]||Object.create(null);continue}const m=on(c[2]);let h;t.bracketedArray?h=m.length>2&&m.slice(-2)==="[]":(o[m]=((o==null?void 0:o[m])||0)+1,h=o[m]>1);const _=h?m.slice(0,-2):m;if(_==="__proto__")continue;const L=c[3]?on(c[4]):!0,y=L==="true"||L==="false"||L==="null"?JSON.parse(L):L;h&&(ri.call(i,_)?Array.isArray(i[_])||(i[_]=[i[_]]):i[_]=[]),Array.isArray(i[_])?i[_].push(y):i[_]=y}const f=[];for(const p of Object.keys(r)){if(!ri.call(r,p)||typeof r[p]!="object"||Array.isArray(r[p]))continue;const c=pf(p,".");i=r;const m=c.pop(),h=m.replace(/\\\./g,".");for(const _ of c)_!=="__proto__"&&((!ri.call(i,_)||typeof i[_]!="object")&&(i[_]=Object.create(null)),i=i[_]);i===r&&h===m||(i[h]=r[p],f.push(p))}for(const p of f)delete r[p];return r},cf=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),Zt=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&cf(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),on=e=>{if(e=(e||"").trim(),cf(e)){e.charAt(0)==="'"&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let t=!1,r="";for(let i=0,a=e.length;i<a;i++){const n=e.charAt(i);if(t)"\\;#".indexOf(n)!==-1?r+=n:r+="\\"+n,t=!1;else{if(";#".indexOf(n)!==-1)break;n==="\\"?t=!0:r+=n}}return t&&(r+="\\"),r.trim()}return e};var Za={parse:Ga,decode:Ga,stringify:Ui,encode:Ui,safe:Zt,unsafe:on};async function mu(e,t){const r=Za.parse(await e.readFileAsText(Va));for(const[i,a]of Object.entries(t))a==null?delete r[i]:r[i]=a;await e.writeFile(Va,Za.stringify(r))}function yu(...e){const t=new Uint8Array(e.reduce((i,a)=>i+a.length,0));let r=0;for(const i of e)t.set(i,r),r+=i.length;return t}function _u(e){{let t=new Uint8Array;return new TransformStream({transform(r){t=yu(t,r)},flush(r){r.enqueue(t)}})}}async function gu(e,t){return await e.pipeThrough(_u()).getReader().read().then(({value:r})=>r)}class bs extends File{constructor(t,r,i){super([],r,{type:i==null?void 0:i.type}),this.readableStream=t,this.filesize=i==null?void 0:i.filesize}slice(){throw new Error("slice() is not possible on a StreamedFile")}stream(){return this.readableStream}async text(){return new TextDecoder().decode(await this.arrayBuffer())}async arrayBuffer(){return await gu(this.stream())}}ReadableStream.prototype[Symbol.asyncIterator]||(ReadableStream.prototype[Symbol.asyncIterator]=async function*(){const e=this.getReader();try{for(;;){const{done:t,value:r}=await e.read();if(t)return;yield r}}finally{e.releaseLock()}},ReadableStream.prototype.iterate=ReadableStream.prototype[Symbol.asyncIterator]);new Qr({concurrency:10});const $n=["8.4","8.3","8.2","8.1","8.0","7.4","7.3","7.2"],uf=$n[0],wu=$n;async function Fn(e,t,r,{rmRoot:i=!1}={}){i&&await e.isDir(t)&&await e.rmdir(t,{recursive:!0});for(const[a,n]of Object.entries(r)){const s=Ee(t,a);await e.fileExists(bn(s))||await e.mkdir(bn(s)),n instanceof Uint8Array||typeof n=="string"?await e.writeFile(s,n):await Fn(e,s,n)}}/**
7
7
  * Original, unmodified Comlink library from Google:
8
8
  *
9
9
  * @license
10
10
  * Copyright 2019 Google LLC
11
11
  * SPDX-License-Identifier: Apache-2.0
12
- */const lf=Symbol("Comlink.proxy"),du=Symbol("Comlink.endpoint"),hu=Symbol("Comlink.releaseProxy"),ri=Symbol("Comlink.finalizer"),ln=Symbol("Comlink.thrown");/**
12
+ */const df=Symbol("Comlink.proxy"),bu=Symbol("Comlink.endpoint"),vu=Symbol("Comlink.releaseProxy"),si=Symbol("Comlink.finalizer"),ln=Symbol("Comlink.thrown");/**
13
13
  * @license
14
14
  * Copyright 2019 Google LLC
15
15
  * SPDX-License-Identifier: Apache-2.0
16
- */const vn={RAW:"RAW",HANDLER:"HANDLER"},gt={GET:"GET",SET:"SET",APPLY:"APPLY",CONSTRUCT:"CONSTRUCT",ENDPOINT:"ENDPOINT",RELEASE:"RELEASE"},ff=e=>typeof e=="object"&&e!==null||typeof e=="function",mu={canHandle:e=>ff(e)&&e[lf],serialize(e){const{port1:t,port2:r}=new MessageChannel;return la(e,t),[r,[r]]},deserialize(e){return e.start(),fa(e)}},yu={canHandle:e=>ff(e)&&ln in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},Xt=new Map([["proxy",mu],["throw",yu]]);function _u(e,t){for(const r of e)if(t===r||r==="*"||r instanceof RegExp&&r.test(t))return!0;return!1}function la(e,t=globalThis,r=["*"],i){t.addEventListener("message",function a(n){if(!n||!n.data)return;if(!_u(r,n.origin)){console.warn(`Invalid origin '${n.origin}' for comlink proxy`);return}const{id:s,type:o,path:f}={path:[],...n.data},p=(n.data.argumentList||[]).map(wr);let c;try{const m=f.slice(0,-1).reduce((_,L)=>_[L],e),h=f.reduce((_,L)=>_[L],e);switch(o){case gt.GET:c=h;break;case gt.SET:m[f.slice(-1)[0]]=wr(n.data.value),c=!0;break;case gt.APPLY:c=h.apply(m,p);break;case gt.CONSTRUCT:{const _=new h(...p);c=df(_)}break;case gt.ENDPOINT:{const{port1:_,port2:L}=new MessageChannel;la(e,L),c=xu(_,[_])}break;case gt.RELEASE:c=void 0;break;default:return}}catch(m){c={value:m,[ln]:0}}Promise.resolve(c).catch(m=>({value:m,[ln]:0})).then(m=>{const[h,_]=Sn(m);t.postMessage({...h,id:s},_),o===gt.RELEASE&&(t.removeEventListener("message",a),pf(t),ri in e&&typeof e[ri]=="function"&&e[ri]())}).catch(()=>{const[m,h]=Sn({value:new TypeError("Unserializable return value"),[ln]:0});t.postMessage({...m,id:s},h)}).finally(()=>{})}),t.start&&t.start()}function gu(e){return e.constructor.name==="MessagePort"}function pf(e){gu(e)&&e.close()}function fa(e,t){const r=new Map;return e.addEventListener("message",function(a){const{data:n}=a;if(!n||!n.id)return;const s=r.get(n.id);if(s)try{s(n)}finally{r.delete(n.id)}}),Bi(e,r,[],t)}function Ms(e){if(e)throw new Error("Proxy has been released and is not useable")}function cf(e){return Ur(e,new Map,{type:gt.RELEASE}).then(()=>{pf(e)})}const xn=new WeakMap,kn="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(xn.get(e)||0)-1;xn.set(e,t),t===0&&cf(e)});function wu(e,t){const r=(xn.get(t)||0)+1;xn.set(t,r),kn&&kn.register(e,t,e)}function bu(e){kn&&kn.unregister(e)}function Bi(e,t,r=[],i=function(){}){let a=!1;const n=new Proxy(i,{get(s,o){if(Ms(a),o===hu)return()=>{bu(n),cf(e),t.clear(),a=!0};if(o==="then"){if(r.length===0)return{then:()=>n};const f=Ur(e,t,{type:gt.GET,path:r.map(p=>p.toString())}).then(wr);return f.then.bind(f)}return Bi(e,t,[...r,o])},set(s,o,f){Ms(a);const[p,c]=Sn(f);return Ur(e,t,{type:gt.SET,path:[...r,o].map(m=>m.toString()),value:p},c).then(wr)},apply(s,o,f){Ms(a);const p=r[r.length-1];if(p===du)return Ur(e,t,{type:gt.ENDPOINT}).then(wr);if(p==="bind")return Bi(e,t,r.slice(0,-1));const[c,m]=Va(f);return Ur(e,t,{type:gt.APPLY,path:r.map(h=>h.toString()),argumentList:c},m).then(wr)},construct(s,o){Ms(a);const[f,p]=Va(o);return Ur(e,t,{type:gt.CONSTRUCT,path:r.map(c=>c.toString()),argumentList:f},p).then(wr)}});return wu(n,e),n}function vu(e){return Array.prototype.concat.apply([],e)}function Va(e){const t=e.map(Sn);return[t.map(r=>r[0]),vu(t.map(r=>r[1]))]}const uf=new WeakMap;function xu(e,t){return uf.set(e,t),e}function df(e){return Object.assign(e,{[lf]:!0})}function ku(e,t=globalThis,r="*"){return{postMessage:(i,a)=>e.postMessage(i,r,a),addEventListener:t.addEventListener.bind(t),removeEventListener:t.removeEventListener.bind(t)}}function Sn(e){for(const[t,r]of Xt)if(r.canHandle(e)){const[i,a]=r.serialize(e);return[{type:vn.HANDLER,name:t,value:i},a]}return[{type:vn.RAW,value:e},uf.get(e)||[]]}function wr(e){switch(e.type){case vn.HANDLER:return Xt.get(e.name).deserialize(e.value);case vn.RAW:return e.value}}function Ur(e,t,r,i){return new Promise(a=>{const n=Su();t.set(n,a),e.start&&e.start(),e.postMessage({id:n,...r},i)})}function Su(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}function Eu(e){const t=new WeakMap;return{postMessage:e.postMessage.bind(e),addEventListener:(r,i)=>{const a=n=>{"handleEvent"in i?i.handleEvent({data:n}):i({data:n})};e.on("message",a),t.set(i,a)},removeEventListener:(r,i)=>{const a=t.get(i);a&&(e.off("message",a),t.delete(i))},start:e.start&&e.start.bind(e)}}const Pu=[Error,EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError,AggregateError,globalThis.DOMException,globalThis.AssertionError,globalThis.SystemError].filter(Boolean).map(e=>[e.name,e]),Au=new Map(Pu);class pa extends Error{constructor(t){super(pa._prepareSuperMessage(t)),this.name="NonError"}static _prepareSuperMessage(t){try{return JSON.stringify(t)}catch{return String(t)}}}const Tu=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0},{property:"cause",enumerable:!1},{property:"errors",enumerable:!1}],ji=new WeakSet,Cu=e=>{ji.add(e);const t=e.toJSON();return ji.delete(e),t},hf=e=>{const t=Au.get(e)??Error;return t===AggregateError?new t([]):new t},ca=({from:e,seen:t,to:r,forceEnumerable:i,maxDepth:a,depth:n,useToJSON:s,serialize:o})=>{if(r||(Array.isArray(e)?r=[]:!o&&Ga(e)?r=hf(e.name):r={}),t.push(e),n>=a)return r;if(s&&typeof e.toJSON=="function"&&!ji.has(e))return Cu(e);const f=p=>ca({from:p,seen:[...t],forceEnumerable:i,maxDepth:a,depth:n,useToJSON:s,serialize:o});for(const[p,c]of Object.entries(e)){if(c&&c instanceof Uint8Array&&c.constructor.name==="Buffer"){r[p]="[object Buffer]";continue}if(c!==null&&typeof c=="object"&&typeof c.pipe=="function"){r[p]="[object Stream]";continue}if(typeof c!="function"){if(!c||typeof c!="object"){try{r[p]=c}catch{}continue}if(!t.includes(e[p])){n++,r[p]=f(e[p]);continue}r[p]="[Circular]"}}if(o||r instanceof Error)for(const{property:p,enumerable:c}of Tu)e[p]!==void 0&&e[p]!==null&&Object.defineProperty(r,p,{value:Ga(e[p])||Array.isArray(e[p])?f(e[p]):e[p],enumerable:i?!0:c,configurable:!0,writable:!0});return r};function Ou(e,t={}){const{maxDepth:r=Number.POSITIVE_INFINITY,useToJSON:i=!0}=t;return typeof e=="object"&&e!==null?ca({from:e,seen:[],forceEnumerable:!0,maxDepth:r,depth:0,useToJSON:i,serialize:!0}):typeof e=="function"?`[Function: ${e.name||"anonymous"}]`:e}function Lu(e,t={}){const{maxDepth:r=Number.POSITIVE_INFINITY}=t;return e instanceof Error?e:Ru(e)?ca({from:e,seen:[],to:hf(e.name),maxDepth:r,depth:0,serialize:!1}):new pa(e)}function Ga(e){return!!e&&typeof e=="object"&&typeof e.name=="string"&&typeof e.message=="string"&&typeof e.stack=="string"}function Ru(e){return!!e&&typeof e=="object"&&typeof e.message=="string"&&!Array.isArray(e)}function mf(e,t=void 0){Du();let r;(typeof document>"u"?require("url").pathToFileURL(__filename).href:zr&&zr.tagName.toUpperCase()==="SCRIPT"&&zr.src||new URL("index.cjs",document.baseURI).href).startsWith("file://")?r=Eu(e):r=e instanceof Worker?e:ku(e,t);const a=fa(r),n=yf(a);return new Proxy(n,{get:(s,o)=>o==="isConnected"?async()=>{for(;;)try{await Iu(a.isConnected(),200);break}catch{}}:a[o]})}async function Iu(e,t){return new Promise((r,i)=>{setTimeout(i,t),e.then(r)})}let Za=!1;function Du(){if(Za)return;Za=!0,Xt.set("EVENT",{canHandle:r=>r instanceof CustomEvent,serialize:r=>[{detail:r.detail},[]],deserialize:r=>r}),Xt.set("FUNCTION",{canHandle:r=>typeof r=="function",serialize(r){const{port1:i,port2:a}=new MessageChannel;return la(r,i),[a,[a]]},deserialize(r){return r.start(),fa(r)}}),Xt.set("MESSAGE_PORT",{canHandle:r=>r instanceof MessagePort,serialize(r){return[r,[r]]},deserialize(r){return r}}),Xt.set("PHPResponse",{canHandle:r=>typeof r=="object"&&r!==null&&"headers"in r&&"bytes"in r&&"errors"in r&&"exitCode"in r&&"httpStatusCode"in r,serialize(r){return[r.toRawData(),[]]},deserialize(r){return ds.fromRawData(r)}});const e=Xt.get("throw"),t=e==null?void 0:e.serialize;e.serialize=({value:r})=>{const i=t({value:r});return r.response&&(i[0].value.response=r.response),r.source&&(i[0].value.source=r.source),i}}const $u=Xt.get("throw"),Hu={canHandle:$u.canHandle,serialize:({value:e})=>{let t;return e instanceof Error?(t={isError:!0,value:Ou(e)},t.value.originalErrorClassName=e.constructor.name):t={isError:!1,value:e},[t,[]]},deserialize:e=>{if(e.isError){const t=Lu(e.value),r=new Error("Comlink method call failed");let i=t;for(;i.cause;)i=i.cause;throw i.cause=r,t}throw e.value}};Xt.set("throw",Hu);function yf(e){return new Proxy(e,{get(t,r){switch(typeof t[r]){case"function":return(...i)=>t[r](...i);case"object":return t[r]===null?t[r]:yf(t[r]);case"undefined":case"number":case"string":return t[r];default:return df(t[r])}}})}new Qr({concurrency:15});new Qr({concurrency:10});function Fu(e){let t=[e];return{next(){return Promise.resolve({done:t.length===0,value:t.pop()})},return(){return t=[],{}},[Symbol.asyncIterator](){return this}}}function _f(e){return e[Symbol.asyncIterator]?e[Symbol.asyncIterator]():e[Symbol.iterator]?e[Symbol.iterator]():e.next?e:Fu(e)}class gf{constructor(t){if(typeof Buffer>"u")throw new Error("Missing Buffer dependency");this.stream=_f(t),this.buffer=null,this.cursor=0,this.undoCursor=0,this.started=!1,this._ended=!1,this._discardedBytes=0}eof(){return this._ended&&this.cursor===this.buffer.length}tell(){return this._discardedBytes+this.cursor}async byte(){if(!this.eof()&&(this.started||await this._init(),!(this.cursor===this.buffer.length&&(await this._loadnext(),this._ended))))return this._moveCursor(1),this.buffer[this.undoCursor]}async chunk(){if(!this.eof()&&(this.started||await this._init(),!(this.cursor===this.buffer.length&&(await this._loadnext(),this._ended))))return this._moveCursor(this.buffer.length),this.buffer.slice(this.undoCursor,this.cursor)}async read(t){if(!this.eof())return this.started||await this._init(),this.cursor+t>this.buffer.length&&(this._trim(),await this._accumulate(t)),this._moveCursor(t),this.buffer.slice(this.undoCursor,this.cursor)}async skip(t){this.eof()||(this.started||await this._init(),this.cursor+t>this.buffer.length&&(this._trim(),await this._accumulate(t)),this._moveCursor(t))}async undo(){this.cursor=this.undoCursor}async _next(){this.started=!0;let{done:t,value:r}=await this.stream.next();return t&&(this._ended=!0,!r)?Buffer.alloc(0):(r&&(r=Buffer.from(r)),r)}_trim(){this.buffer=this.buffer.slice(this.undoCursor),this.cursor-=this.undoCursor,this._discardedBytes+=this.undoCursor,this.undoCursor=0}_moveCursor(t){this.undoCursor=this.cursor,this.cursor+=t,this.cursor>this.buffer.length&&(this.cursor=this.buffer.length)}async _accumulate(t){if(this._ended)return;const r=[this.buffer];for(;this.cursor+t>Nu(r);){const i=await this._next();if(this._ended)break;r.push(i)}this.buffer=Buffer.concat(r)}async _loadnext(){this._discardedBytes+=this.buffer.length,this.undoCursor=0,this.cursor=0,this.buffer=await this._next()}async _init(){this.buffer=await this._next()}}function Nu(e){return e.reduce((t,r)=>t+r.length,0)}function Bu(e,t){const r=t.toString(16);return"0".repeat(e-r.length)+r}class Ge{static flush(){return Buffer.from("0000","utf8")}static delim(){return Buffer.from("0001","utf8")}static encode(t){typeof t=="string"&&(t=Buffer.from(t));const r=t.length+4,i=Bu(4,r);return Buffer.concat([Buffer.from(i,"utf8"),t])}static streamReader(t){const r=new gf(t);return async function(){try{let a=await r.read(4);if(a==null)return!0;if(a=parseInt(a.toString("utf8"),16),a===0||a===1)return null;const n=await r.read(a-4);return n??!0}catch(a){return t.error=a,!0}}}}class es extends Error{constructor(t){super(t),this.caller=""}toJSON(){return{code:this.code,data:this.data,caller:this.caller,message:this.message,stack:this.stack}}fromJSON(t){const r=new es(t.message);return r.code=t.code,r.data=t.data,r.caller=t.caller,r.stack=t.stack,r}get isIsomorphicGitError(){return!0}}class He extends es{constructor(t){super(`An internal error caused this command to fail. Please file a bug report at https://github.com/isomorphic-git/isomorphic-git/issues with this error message: ${t}`),this.code=this.name=He.code,this.data={message:t}}}He.code="InternalError";class Nn extends es{constructor(t){super(`The filepath "${t}" contains unsafe character sequences`),this.code=this.name=Nn.code,this.data={filepath:t}}}Nn.code="UnsafeFilepathError";function wf(e,t){return-(e<t)||+(e>t)}function ju(e,t){return wf(e.path,t.path)}function Wu(e,t){return wf(Ya(e),Ya(t))}function Ya(e){return e.mode==="040000"?e.path+"/":e.path}function bf(e){switch(e){case"040000":return"tree";case"100644":return"blob";case"100755":return"blob";case"120000":return"blob";case"160000":return"commit"}throw new He(`Unexpected GitTree entry mode: ${e}`)}function Uu(e){const t=[];let r=0;for(;r<e.length;){const i=e.indexOf(32,r);if(i===-1)throw new He(`GitTree: Error parsing buffer at byte location ${r}: Could not find the next space character.`);const a=e.indexOf(0,r);if(a===-1)throw new He(`GitTree: Error parsing buffer at byte location ${r}: Could not find the next null character.`);let n=e.slice(r,i).toString("utf8");n==="40000"&&(n="040000");const s=bf(n),o=e.slice(i+1,a).toString("utf8");if(o.includes("\\")||o.includes("/"))throw new Nn(o);const f=e.slice(a+1,a+21).toString("hex");r=a+21,t.push({mode:n,path:o,oid:f,type:s})}return t}function Mu(e){if(typeof e=="number"&&(e=e.toString(8)),e.match(/^0?4.*/))return"040000";if(e.match(/^1006.*/))return"100644";if(e.match(/^1007.*/))return"100755";if(e.match(/^120.*/))return"120000";if(e.match(/^160.*/))return"160000";throw new He(`Could not understand file mode: ${e}`)}function qu(e){return!e.oid&&e.sha&&(e.oid=e.sha),e.mode=Mu(e.mode),e.type||(e.type=bf(e.mode)),e}class ua{constructor(t){if(Buffer.isBuffer(t))this._entries=Uu(t);else if(Array.isArray(t))this._entries=t.map(qu);else throw new He("invalid type passed to GitTree constructor");this._entries.sort(ju)}static from(t){return new ua(t)}render(){return this._entries.map(t=>`${t.mode} ${t.type} ${t.oid} ${t.path}`).join(`
17
- `)}toObject(){const t=[...this._entries];return t.sort(Wu),Buffer.concat(t.map(r=>{const i=Buffer.from(r.mode.replace(/^0/,"")),a=Buffer.from(" "),n=Buffer.from(r.path,"utf8"),s=Buffer.from([0]),o=Buffer.from(r.oid,"hex");return Buffer.concat([i,a,n,s,o])}))}entries(){return this._entries}*[Symbol.iterator](){for(const t of this._entries)yield t}}function Wi({name:e,email:t,timestamp:r,timezoneOffset:i}){return i=Ku(i),`${e} <${t}> ${r} ${i}`}function Ku(e){const t=zu(Vu(e));e=Math.abs(e);const r=Math.floor(e/60);e-=r*60;let i=String(r),a=String(e);return i.length<2&&(i="0"+i),a.length<2&&(a="0"+a),(t===-1?"-":"+")+i+a}function zu(e){return Math.sign(e)||(Object.is(e,-0)?-1:1)}function Vu(e){return e===0?e:-e}function Zt(e){return e=e.replace(/\r/g,""),e=e.replace(/^\n+/,""),e=e.replace(/\n+$/,"")+`
18
- `,e}function En(e){const[,t,r,i,a]=e.match(/^(.*) <(.*)> (.*) (.*)$/);return{name:t,email:r,timestamp:Number(i),timezoneOffset:Gu(a)}}function Gu(e){let[,t,r,i]=e.match(/(\+|-)(\d\d)(\d\d)/);return i=(t==="+"?1:-1)*(Number(r)*60+Number(i)),Zu(i)}function Zu(e){return e===0?e:-e}class hs{constructor(t){if(typeof t=="string")this._tag=t;else if(Buffer.isBuffer(t))this._tag=t.toString("utf8");else if(typeof t=="object")this._tag=hs.render(t);else throw new He("invalid type passed to GitAnnotatedTag constructor")}static from(t){return new hs(t)}static render(t){return`object ${t.object}
16
+ */const vn={RAW:"RAW",HANDLER:"HANDLER"},gt={GET:"GET",SET:"SET",APPLY:"APPLY",CONSTRUCT:"CONSTRUCT",ENDPOINT:"ENDPOINT",RELEASE:"RELEASE"},hf=e=>typeof e=="object"&&e!==null||typeof e=="function",xu={canHandle:e=>hf(e)&&e[df],serialize(e){const{port1:t,port2:r}=new MessageChannel;return ca(e,t),[r,[r]]},deserialize(e){return e.start(),ua(e)}},ku={canHandle:e=>hf(e)&&ln in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},Nt=new Map([["proxy",xu],["throw",ku]]);function Su(e,t){for(const r of e)if(t===r||r==="*"||r instanceof RegExp&&r.test(t))return!0;return!1}function ca(e,t=globalThis,r=["*"],i){t.addEventListener("message",function a(n){if(!n||!n.data)return;if(!Su(r,n.origin)){console.warn(`Invalid origin '${n.origin}' for comlink proxy`);return}const{id:s,type:o,path:f}={path:[],...n.data},p=(n.data.argumentList||[]).map(wr);let c;try{const m=f.slice(0,-1).reduce((_,L)=>_[L],e),h=f.reduce((_,L)=>_[L],e);switch(o){case gt.GET:c=h;break;case gt.SET:m[f.slice(-1)[0]]=wr(n.data.value),c=!0;break;case gt.APPLY:c=h.apply(m,p);break;case gt.CONSTRUCT:{const _=new h(...p);c=gf(_)}break;case gt.ENDPOINT:{const{port1:_,port2:L}=new MessageChannel;ca(e,L),c=Cu(_,[_])}break;case gt.RELEASE:c=void 0;break;default:return}}catch(m){c={value:m,[ln]:0}}Promise.resolve(c).catch(m=>({value:m,[ln]:0})).then(m=>{const[h,_]=Sn(m);t.postMessage({...h,id:s},_),o===gt.RELEASE&&(t.removeEventListener("message",a),mf(t),si in e&&typeof e[si]=="function"&&e[si]())}).catch(()=>{const[m,h]=Sn({value:new TypeError("Unserializable return value"),[ln]:0});t.postMessage({...m,id:s},h)}).finally(()=>{})}),t.start&&t.start()}function Eu(e){return e.constructor.name==="MessagePort"}function mf(e){Eu(e)&&e.close()}function ua(e,t){const r=new Map;return e.addEventListener("message",function(a){const{data:n}=a;if(!n||!n.id)return;const s=r.get(n.id);if(s)try{s(n)}finally{r.delete(n.id)}}),Wi(e,r,[],t)}function Ms(e){if(e)throw new Error("Proxy has been released and is not useable")}function yf(e){return Wr(e,new Map,{type:gt.RELEASE}).then(()=>{mf(e)})}const xn=new WeakMap,kn="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(xn.get(e)||0)-1;xn.set(e,t),t===0&&yf(e)});function Pu(e,t){const r=(xn.get(t)||0)+1;xn.set(t,r),kn&&kn.register(e,t,e)}function Au(e){kn&&kn.unregister(e)}function Wi(e,t,r=[],i=function(){}){let a=!1;const n=new Proxy(i,{get(s,o){if(Ms(a),o===vu)return()=>{Au(n),yf(e),t.clear(),a=!0};if(o==="then"){if(r.length===0)return{then:()=>n};const f=Wr(e,t,{type:gt.GET,path:r.map(p=>p.toString())}).then(wr);return f.then.bind(f)}return Wi(e,t,[...r,o])},set(s,o,f){Ms(a);const[p,c]=Sn(f);return Wr(e,t,{type:gt.SET,path:[...r,o].map(m=>m.toString()),value:p},c).then(wr)},apply(s,o,f){Ms(a);const p=r[r.length-1];if(p===bu)return Wr(e,t,{type:gt.ENDPOINT}).then(wr);if(p==="bind")return Wi(e,t,r.slice(0,-1));const[c,m]=Ya(f);return Wr(e,t,{type:gt.APPLY,path:r.map(h=>h.toString()),argumentList:c},m).then(wr)},construct(s,o){Ms(a);const[f,p]=Ya(o);return Wr(e,t,{type:gt.CONSTRUCT,path:r.map(c=>c.toString()),argumentList:f},p).then(wr)}});return Pu(n,e),n}function Tu(e){return Array.prototype.concat.apply([],e)}function Ya(e){const t=e.map(Sn);return[t.map(r=>r[0]),Tu(t.map(r=>r[1]))]}const _f=new WeakMap;function Cu(e,t){return _f.set(e,t),e}function gf(e){return Object.assign(e,{[df]:!0})}function Ou(e,t=globalThis,r="*"){return{postMessage:(i,a)=>e.postMessage(i,r,a),addEventListener:t.addEventListener.bind(t),removeEventListener:t.removeEventListener.bind(t)}}function Sn(e){for(const[t,r]of Nt)if(r.canHandle(e)){const[i,a]=r.serialize(e);return[{type:vn.HANDLER,name:t,value:i},a]}return[{type:vn.RAW,value:e},_f.get(e)||[]]}function wr(e){switch(e.type){case vn.HANDLER:return Nt.get(e.name).deserialize(e.value);case vn.RAW:return e.value}}function Wr(e,t,r,i){return new Promise(a=>{const n=Lu();t.set(n,a),e.start&&e.start(),e.postMessage({id:n,...r},i)})}function Lu(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}function Ru(e){const t=new WeakMap;return{postMessage:e.postMessage.bind(e),addEventListener:(r,i)=>{const a=n=>{"handleEvent"in i?i.handleEvent({data:n}):i({data:n})};e.on("message",a),t.set(i,a)},removeEventListener:(r,i)=>{const a=t.get(i);a&&(e.off("message",a),t.delete(i))},start:e.start&&e.start.bind(e)}}const Iu=[Error,EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError,AggregateError,globalThis.DOMException,globalThis.AssertionError,globalThis.SystemError].filter(Boolean).map(e=>[e.name,e]),Du=new Map(Iu);class da extends Error{constructor(t){super(da._prepareSuperMessage(t)),this.name="NonError"}static _prepareSuperMessage(t){try{return JSON.stringify(t)}catch{return String(t)}}}const Hu=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0},{property:"cause",enumerable:!1},{property:"errors",enumerable:!1}],Mi=new WeakSet,$u=e=>{Mi.add(e);const t=e.toJSON();return Mi.delete(e),t},wf=e=>{const t=Du.get(e)??Error;return t===AggregateError?new t([]):new t},ha=({from:e,seen:t,to:r,forceEnumerable:i,maxDepth:a,depth:n,useToJSON:s,serialize:o})=>{if(r||(Array.isArray(e)?r=[]:!o&&Xa(e)?r=wf(e.name):r={}),t.push(e),n>=a)return r;if(s&&typeof e.toJSON=="function"&&!Mi.has(e))return $u(e);const f=p=>ha({from:p,seen:[...t],forceEnumerable:i,maxDepth:a,depth:n,useToJSON:s,serialize:o});for(const[p,c]of Object.entries(e)){if(c&&c instanceof Uint8Array&&c.constructor.name==="Buffer"){r[p]="[object Buffer]";continue}if(c!==null&&typeof c=="object"&&typeof c.pipe=="function"){r[p]="[object Stream]";continue}if(typeof c!="function"){if(!c||typeof c!="object"){try{r[p]=c}catch{}continue}if(!t.includes(e[p])){n++,r[p]=f(e[p]);continue}r[p]="[Circular]"}}if(o||r instanceof Error)for(const{property:p,enumerable:c}of Hu)e[p]!==void 0&&e[p]!==null&&Object.defineProperty(r,p,{value:Xa(e[p])||Array.isArray(e[p])?f(e[p]):e[p],enumerable:i?!0:c,configurable:!0,writable:!0});return r};function Fu(e,t={}){const{maxDepth:r=Number.POSITIVE_INFINITY,useToJSON:i=!0}=t;return typeof e=="object"&&e!==null?ha({from:e,seen:[],forceEnumerable:!0,maxDepth:r,depth:0,useToJSON:i,serialize:!0}):typeof e=="function"?`[Function: ${e.name||"anonymous"}]`:e}function Bu(e,t={}){const{maxDepth:r=Number.POSITIVE_INFINITY}=t;return e instanceof Error?e:Nu(e)?ha({from:e,seen:[],to:wf(e.name),maxDepth:r,depth:0,serialize:!1}):new da(e)}function Xa(e){return!!e&&typeof e=="object"&&typeof e.name=="string"&&typeof e.message=="string"&&typeof e.stack=="string"}function Nu(e){return!!e&&typeof e=="object"&&typeof e.message=="string"&&!Array.isArray(e)}function bf(e,t=void 0){Uu();let r;(typeof document>"u"?require("url").pathToFileURL(__filename).href:zr&&zr.tagName.toUpperCase()==="SCRIPT"&&zr.src||new URL("index.cjs",document.baseURI).href).startsWith("file://")?r=Ru(e):r=e instanceof Worker?e:Ou(e,t);const a=ua(r),n=vf(a);return new Proxy(n,{get:(s,o)=>o==="isConnected"?async()=>{for(;;)try{await ju(a.isConnected(),200);break}catch{}}:a[o]})}async function ju(e,t){return new Promise((r,i)=>{setTimeout(i,t),e.then(r)})}let Ja=!1;function Uu(){if(Ja)return;Ja=!0,Nt.set("EVENT",{canHandle:r=>r instanceof CustomEvent,serialize:r=>[{detail:r.detail},[]],deserialize:r=>r}),Nt.set("FUNCTION",{canHandle:r=>typeof r=="function",serialize(r){const{port1:i,port2:a}=new MessageChannel;return ca(r,i),[a,[a]]},deserialize(r){return r.start(),ua(r)}}),Nt.set("MESSAGE_PORT",{canHandle:r=>r instanceof MessagePort,serialize(r){return[r,[r]]},deserialize(r){return r}}),Nt.set("PHPResponse",{canHandle:r=>typeof r=="object"&&r!==null&&"headers"in r&&"bytes"in r&&"errors"in r&&"exitCode"in r&&"httpStatusCode"in r,serialize(r){return[r.toRawData(),[]]},deserialize(r){return ds.fromRawData(r)}});const e=Nt.get("throw"),t=e==null?void 0:e.serialize;e.serialize=({value:r})=>{const i=t({value:r});return r.response&&(i[0].value.response=r.response),r.source&&(i[0].value.source=r.source),i},Nt.set("StreamedPHPResponse",{canHandle:r=>r instanceof ti,serialize(r){const i=Wu(),a=Mu(r.exitCode);if(i)return[{__type:"StreamedPHPResponse",headers:r.headersStream,stdout:r.stdout,stderr:r.stderr,exitCodePort:a},[a]];const n=ni(r.headersStream),s=ni(r.stdout),o=ni(r.stderr);return[{__type:"StreamedPHPResponse",headersPort:n,stdoutPort:s,stderrPort:o,exitCodePort:a},[n,s,o,a]]},deserialize(r){if(r.headers&&r.stdout&&r.stderr){const o=Qa(r.exitCodePort);return new ti(r.headers,r.stdout,r.stderr,o)}const i=ii(r.headersPort),a=ii(r.stdoutPort),n=ii(r.stderrPort),s=Qa(r.exitCodePort);return new ti(i,a,n,s)}})}function Wu(){try{if(typeof ReadableStream>"u")return!1;const{port1:e}=new MessageChannel,t=new ReadableStream;e.postMessage(t);try{e.close()}catch{}return!0}catch{return!1}}function ni(e){const{port1:t,port2:r}=new MessageChannel;return(async()=>{const i=e.getReader();try{for(;;){const{done:a,value:n}=await i.read();if(a){try{t.postMessage({t:"close"})}catch{}try{t.close()}catch{}break}if(n){const s=n.byteOffset===0&&n.byteLength===n.buffer.byteLength?n:n.slice(),o=s.buffer;try{t.postMessage({t:"chunk",b:o},[o])}catch{t.postMessage({t:"chunk",b:s.buffer.slice(0)})}}}}catch(a){try{t.postMessage({t:"error",m:(a==null?void 0:a.message)||String(a)})}catch{}}finally{try{t.close()}catch{}}})(),r}function ii(e){return new ReadableStream({start(t){const r=a=>{const n=a.data;if(n)switch(n.t){case"chunk":t.enqueue(new Uint8Array(n.b));break;case"close":t.close(),i();break;case"error":t.error(new Error(n.m||"Stream error")),i();break}},i=()=>{var a;try{(a=e.removeEventListener)==null||a.call(e,"message",r)}catch{}try{e.onmessage=null}catch{}try{e.close()}catch{}};e.addEventListener?e.addEventListener("message",r):e.on?e.on("message",a=>r({data:a})):e.onmessage=r,typeof e.start=="function"&&e.start()},cancel(){try{e.close()}catch{}}})}function Mu(e){const{port1:t,port2:r}=new MessageChannel;return e.then(i=>{try{t.postMessage({t:"resolve",v:i})}catch{}}).catch(i=>{try{t.postMessage({t:"reject",m:(i==null?void 0:i.message)||String(i)})}catch{}}).finally(()=>{try{t.close()}catch{}}),r}function Qa(e){return new Promise((t,r)=>{const i=n=>{const s=n.data;s&&(s.t==="resolve"?(a(),t(s.v)):s.t==="reject"&&(a(),r(new Error(s.m||""))))},a=()=>{var n;try{(n=e.removeEventListener)==null||n.call(e,"message",i)}catch{}try{e.onmessage=null}catch{}try{e.close()}catch{}};e.addEventListener?e.addEventListener("message",i):e.on?e.on("message",n=>i({data:n})):e.onmessage=i,typeof e.start=="function"&&e.start()})}const qu=Nt.get("throw"),Ku={canHandle:qu.canHandle,serialize:({value:e})=>{let t;return e instanceof Error?(t={isError:!0,value:Fu(e)},t.value.originalErrorClassName=e.constructor.name):t={isError:!1,value:e},[t,[]]},deserialize:e=>{if(e.isError){const t=Bu(e.value),r=new Error("Comlink method call failed");let i=t;for(;i.cause;)i=i.cause;throw i.cause=r,t}throw e.value}};Nt.set("throw",Ku);function vf(e){return new Proxy(e,{get(t,r){switch(typeof t[r]){case"function":return(...i)=>t[r](...i);case"object":return t[r]===null?t[r]:vf(t[r]);case"undefined":case"number":case"string":return t[r];default:return gf(t[r])}}})}new Qr({concurrency:15});new Qr({concurrency:10});function zu(e){let t=[e];return{next(){return Promise.resolve({done:t.length===0,value:t.pop()})},return(){return t=[],{}},[Symbol.asyncIterator](){return this}}}function xf(e){return e[Symbol.asyncIterator]?e[Symbol.asyncIterator]():e[Symbol.iterator]?e[Symbol.iterator]():e.next?e:zu(e)}class kf{constructor(t){if(typeof Buffer>"u")throw new Error("Missing Buffer dependency");this.stream=xf(t),this.buffer=null,this.cursor=0,this.undoCursor=0,this.started=!1,this._ended=!1,this._discardedBytes=0}eof(){return this._ended&&this.cursor===this.buffer.length}tell(){return this._discardedBytes+this.cursor}async byte(){if(!this.eof()&&(this.started||await this._init(),!(this.cursor===this.buffer.length&&(await this._loadnext(),this._ended))))return this._moveCursor(1),this.buffer[this.undoCursor]}async chunk(){if(!this.eof()&&(this.started||await this._init(),!(this.cursor===this.buffer.length&&(await this._loadnext(),this._ended))))return this._moveCursor(this.buffer.length),this.buffer.slice(this.undoCursor,this.cursor)}async read(t){if(!this.eof())return this.started||await this._init(),this.cursor+t>this.buffer.length&&(this._trim(),await this._accumulate(t)),this._moveCursor(t),this.buffer.slice(this.undoCursor,this.cursor)}async skip(t){this.eof()||(this.started||await this._init(),this.cursor+t>this.buffer.length&&(this._trim(),await this._accumulate(t)),this._moveCursor(t))}async undo(){this.cursor=this.undoCursor}async _next(){this.started=!0;let{done:t,value:r}=await this.stream.next();return t&&(this._ended=!0,!r)?Buffer.alloc(0):(r&&(r=Buffer.from(r)),r)}_trim(){this.buffer=this.buffer.slice(this.undoCursor),this.cursor-=this.undoCursor,this._discardedBytes+=this.undoCursor,this.undoCursor=0}_moveCursor(t){this.undoCursor=this.cursor,this.cursor+=t,this.cursor>this.buffer.length&&(this.cursor=this.buffer.length)}async _accumulate(t){if(this._ended)return;const r=[this.buffer];for(;this.cursor+t>Vu(r);){const i=await this._next();if(this._ended)break;r.push(i)}this.buffer=Buffer.concat(r)}async _loadnext(){this._discardedBytes+=this.buffer.length,this.undoCursor=0,this.cursor=0,this.buffer=await this._next()}async _init(){this.buffer=await this._next()}}function Vu(e){return e.reduce((t,r)=>t+r.length,0)}function Gu(e,t){const r=t.toString(16);return"0".repeat(e-r.length)+r}class Ge{static flush(){return Buffer.from("0000","utf8")}static delim(){return Buffer.from("0001","utf8")}static encode(t){typeof t=="string"&&(t=Buffer.from(t));const r=t.length+4,i=Gu(4,r);return Buffer.concat([Buffer.from(i,"utf8"),t])}static streamReader(t){const r=new kf(t);return async function(){try{let a=await r.read(4);if(a==null)return!0;if(a=parseInt(a.toString("utf8"),16),a===0||a===1)return null;const n=await r.read(a-4);return n??!0}catch(a){return t.error=a,!0}}}}class es extends Error{constructor(t){super(t),this.caller=""}toJSON(){return{code:this.code,data:this.data,caller:this.caller,message:this.message,stack:this.stack}}fromJSON(t){const r=new es(t.message);return r.code=t.code,r.data=t.data,r.caller=t.caller,r.stack=t.stack,r}get isIsomorphicGitError(){return!0}}class $e extends es{constructor(t){super(`An internal error caused this command to fail. Please file a bug report at https://github.com/isomorphic-git/isomorphic-git/issues with this error message: ${t}`),this.code=this.name=$e.code,this.data={message:t}}}$e.code="InternalError";class Bn extends es{constructor(t){super(`The filepath "${t}" contains unsafe character sequences`),this.code=this.name=Bn.code,this.data={filepath:t}}}Bn.code="UnsafeFilepathError";function Sf(e,t){return-(e<t)||+(e>t)}function Zu(e,t){return Sf(e.path,t.path)}function Yu(e,t){return Sf(eo(e),eo(t))}function eo(e){return e.mode==="040000"?e.path+"/":e.path}function Ef(e){switch(e){case"040000":return"tree";case"100644":return"blob";case"100755":return"blob";case"120000":return"blob";case"160000":return"commit"}throw new $e(`Unexpected GitTree entry mode: ${e}`)}function Xu(e){const t=[];let r=0;for(;r<e.length;){const i=e.indexOf(32,r);if(i===-1)throw new $e(`GitTree: Error parsing buffer at byte location ${r}: Could not find the next space character.`);const a=e.indexOf(0,r);if(a===-1)throw new $e(`GitTree: Error parsing buffer at byte location ${r}: Could not find the next null character.`);let n=e.slice(r,i).toString("utf8");n==="40000"&&(n="040000");const s=Ef(n),o=e.slice(i+1,a).toString("utf8");if(o.includes("\\")||o.includes("/"))throw new Bn(o);const f=e.slice(a+1,a+21).toString("hex");r=a+21,t.push({mode:n,path:o,oid:f,type:s})}return t}function Ju(e){if(typeof e=="number"&&(e=e.toString(8)),e.match(/^0?4.*/))return"040000";if(e.match(/^1006.*/))return"100644";if(e.match(/^1007.*/))return"100755";if(e.match(/^120.*/))return"120000";if(e.match(/^160.*/))return"160000";throw new $e(`Could not understand file mode: ${e}`)}function Qu(e){return!e.oid&&e.sha&&(e.oid=e.sha),e.mode=Ju(e.mode),e.type||(e.type=Ef(e.mode)),e}class ma{constructor(t){if(Buffer.isBuffer(t))this._entries=Xu(t);else if(Array.isArray(t))this._entries=t.map(Qu);else throw new $e("invalid type passed to GitTree constructor");this._entries.sort(Zu)}static from(t){return new ma(t)}render(){return this._entries.map(t=>`${t.mode} ${t.type} ${t.oid} ${t.path}`).join(`
17
+ `)}toObject(){const t=[...this._entries];return t.sort(Yu),Buffer.concat(t.map(r=>{const i=Buffer.from(r.mode.replace(/^0/,"")),a=Buffer.from(" "),n=Buffer.from(r.path,"utf8"),s=Buffer.from([0]),o=Buffer.from(r.oid,"hex");return Buffer.concat([i,a,n,s,o])}))}entries(){return this._entries}*[Symbol.iterator](){for(const t of this._entries)yield t}}function qi({name:e,email:t,timestamp:r,timezoneOffset:i}){return i=ed(i),`${e} <${t}> ${r} ${i}`}function ed(e){const t=td(rd(e));e=Math.abs(e);const r=Math.floor(e/60);e-=r*60;let i=String(r),a=String(e);return i.length<2&&(i="0"+i),a.length<2&&(a="0"+a),(t===-1?"-":"+")+i+a}function td(e){return Math.sign(e)||(Object.is(e,-0)?-1:1)}function rd(e){return e===0?e:-e}function Yt(e){return e=e.replace(/\r/g,""),e=e.replace(/^\n+/,""),e=e.replace(/\n+$/,"")+`
18
+ `,e}function En(e){const[,t,r,i,a]=e.match(/^(.*) <(.*)> (.*) (.*)$/);return{name:t,email:r,timestamp:Number(i),timezoneOffset:sd(a)}}function sd(e){let[,t,r,i]=e.match(/(\+|-)(\d\d)(\d\d)/);return i=(t==="+"?1:-1)*(Number(r)*60+Number(i)),nd(i)}function nd(e){return e===0?e:-e}class hs{constructor(t){if(typeof t=="string")this._tag=t;else if(Buffer.isBuffer(t))this._tag=t.toString("utf8");else if(typeof t=="object")this._tag=hs.render(t);else throw new $e("invalid type passed to GitAnnotatedTag constructor")}static from(t){return new hs(t)}static render(t){return`object ${t.object}
19
19
  type ${t.type}
20
20
  tag ${t.tag}
21
- tagger ${Wi(t.tagger)}
21
+ tagger ${qi(t.tagger)}
22
22
 
23
23
  ${t.message}
24
24
  ${t.gpgsig?t.gpgsig:""}`}justHeaders(){return this._tag.slice(0,this._tag.indexOf(`
@@ -27,18 +27,18 @@ ${t.gpgsig?t.gpgsig:""}`}justHeaders(){return this._tag.slice(0,this._tag.indexO
27
27
 
28
28
  `)+2)}parse(){return Object.assign(this.headers(),{message:this.message(),gpgsig:this.gpgsig()})}render(){return this._tag}headers(){const t=this.justHeaders().split(`
29
29
  `),r=[];for(const a of t)a[0]===" "?r[r.length-1]+=`
30
- `+a.slice(1):r.push(a);const i={};for(const a of r){const n=a.slice(0,a.indexOf(" ")),s=a.slice(a.indexOf(" ")+1);Array.isArray(i[n])?i[n].push(s):i[n]=s}return i.tagger&&(i.tagger=En(i.tagger)),i.committer&&(i.committer=En(i.committer)),i}withoutSignature(){const t=Zt(this._tag);return t.indexOf(`
30
+ `+a.slice(1):r.push(a);const i={};for(const a of r){const n=a.slice(0,a.indexOf(" ")),s=a.slice(a.indexOf(" ")+1);Array.isArray(i[n])?i[n].push(s):i[n]=s}return i.tagger&&(i.tagger=En(i.tagger)),i.committer&&(i.committer=En(i.committer)),i}withoutSignature(){const t=Yt(this._tag);return t.indexOf(`
31
31
  -----BEGIN PGP SIGNATURE-----`)===-1?t:t.slice(0,t.lastIndexOf(`
32
32
  -----BEGIN PGP SIGNATURE-----`))}gpgsig(){if(this._tag.indexOf(`
33
- -----BEGIN PGP SIGNATURE-----`)===-1)return;const t=this._tag.slice(this._tag.indexOf("-----BEGIN PGP SIGNATURE-----"),this._tag.indexOf("-----END PGP SIGNATURE-----")+27);return Zt(t)}payload(){return this.withoutSignature()+`
34
- `}toObject(){return Buffer.from(this._tag,"utf8")}static async sign(t,r,i){const a=t.payload();let{signature:n}=await r({payload:a,secretKey:i});n=Zt(n);const s=a+n;return hs.from(s)}}function si(e){return e.trim().split(`
33
+ -----BEGIN PGP SIGNATURE-----`)===-1)return;const t=this._tag.slice(this._tag.indexOf("-----BEGIN PGP SIGNATURE-----"),this._tag.indexOf("-----END PGP SIGNATURE-----")+27);return Yt(t)}payload(){return this.withoutSignature()+`
34
+ `}toObject(){return Buffer.from(this._tag,"utf8")}static async sign(t,r,i){const a=t.payload();let{signature:n}=await r({payload:a,secretKey:i});n=Yt(n);const s=a+n;return hs.from(s)}}function ai(e){return e.trim().split(`
35
35
  `).map(t=>" "+t).join(`
36
36
  `)+`
37
- `}function Yu(e){return e.split(`
37
+ `}function id(e){return e.split(`
38
38
  `).map(t=>t.replace(/^ /,"")).join(`
39
- `)}class mt{constructor(t){if(typeof t=="string")this._commit=t;else if(Buffer.isBuffer(t))this._commit=t.toString("utf8");else if(typeof t=="object")this._commit=mt.render(t);else throw new He("invalid type passed to GitCommit constructor")}static fromPayloadSignature({payload:t,signature:r}){const i=mt.justHeaders(t),a=mt.justMessage(t),n=Zt(i+`
40
- gpgsig`+si(r)+`
41
- `+a);return new mt(n)}static from(t){return new mt(t)}toObject(){return Buffer.from(this._commit,"utf8")}headers(){return this.parseHeaders()}message(){return mt.justMessage(this._commit)}parse(){return Object.assign({message:this.message()},this.headers())}static justMessage(t){return Zt(t.slice(t.indexOf(`
39
+ `)}class mt{constructor(t){if(typeof t=="string")this._commit=t;else if(Buffer.isBuffer(t))this._commit=t.toString("utf8");else if(typeof t=="object")this._commit=mt.render(t);else throw new $e("invalid type passed to GitCommit constructor")}static fromPayloadSignature({payload:t,signature:r}){const i=mt.justHeaders(t),a=mt.justMessage(t),n=Yt(i+`
40
+ gpgsig`+ai(r)+`
41
+ `+a);return new mt(n)}static from(t){return new mt(t)}toObject(){return Buffer.from(this._commit,"utf8")}headers(){return this.parseHeaders()}message(){return mt.justMessage(this._commit)}parse(){return Object.assign({message:this.message()},this.headers())}static justMessage(t){return Yt(t.slice(t.indexOf(`
42
42
 
43
43
  `)+2))}static justHeaders(t){return t.slice(0,t.indexOf(`
44
44
 
@@ -46,36 +46,36 @@ gpgsig`+si(r)+`
46
46
  `),r=[];for(const a of t)a[0]===" "?r[r.length-1]+=`
47
47
  `+a.slice(1):r.push(a);const i={parent:[]};for(const a of r){const n=a.slice(0,a.indexOf(" ")),s=a.slice(a.indexOf(" ")+1);Array.isArray(i[n])?i[n].push(s):i[n]=s}return i.author&&(i.author=En(i.author)),i.committer&&(i.committer=En(i.committer)),i}static renderHeaders(t){let r="";if(t.tree?r+=`tree ${t.tree}
48
48
  `:r+=`tree 4b825dc642cb6eb9a060e54bf8d69288fbee4904
49
- `,t.parent){if(t.parent.length===void 0)throw new He("commit 'parent' property should be an array");for(const n of t.parent)r+=`parent ${n}
50
- `}const i=t.author;r+=`author ${Wi(i)}
51
- `;const a=t.committer||t.author;return r+=`committer ${Wi(a)}
52
- `,t.gpgsig&&(r+="gpgsig"+si(t.gpgsig)),r}static render(t){return mt.renderHeaders(t)+`
53
- `+Zt(t.message)}render(){return this._commit}withoutSignature(){const t=Zt(this._commit);if(t.indexOf(`
49
+ `,t.parent){if(t.parent.length===void 0)throw new $e("commit 'parent' property should be an array");for(const n of t.parent)r+=`parent ${n}
50
+ `}const i=t.author;r+=`author ${qi(i)}
51
+ `;const a=t.committer||t.author;return r+=`committer ${qi(a)}
52
+ `,t.gpgsig&&(r+="gpgsig"+ai(t.gpgsig)),r}static render(t){return mt.renderHeaders(t)+`
53
+ `+Yt(t.message)}render(){return this._commit}withoutSignature(){const t=Yt(this._commit);if(t.indexOf(`
54
54
  gpgsig`)===-1)return t;const r=t.slice(0,t.indexOf(`
55
55
  gpgsig`)),i=t.slice(t.indexOf(`-----END PGP SIGNATURE-----
56
- `)+28);return Zt(r+`
57
- `+i)}isolateSignature(){const t=this._commit.slice(this._commit.indexOf("-----BEGIN PGP SIGNATURE-----"),this._commit.indexOf("-----END PGP SIGNATURE-----")+27);return Yu(t)}static async sign(t,r,i){const a=t.withoutSignature(),n=mt.justMessage(t._commit);let{signature:s}=await r({payload:a,secretKey:i});s=Zt(s);const f=mt.justHeaders(t._commit)+`
58
- gpgsig`+si(s)+`
59
- `+n;return mt.from(f)}}var vf={};/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */(function(e){(function(t){t(typeof DO_NOT_EXPORT_CRC>"u"?e:{})})(function(t){t.version="1.2.2";function r(){for(var P=0,C=new Array(256),k=0;k!=256;++k)P=k,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,C[k]=P;return typeof Int32Array<"u"?new Int32Array(C):C}var i=r();function a(P){var C=0,k=0,E=0,D=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(E=0;E!=256;++E)D[E]=P[E];for(E=0;E!=256;++E)for(k=P[E],C=256+E;C<4096;C+=256)k=D[C]=k>>>8^P[k&255];var I=[];for(E=1;E!=16;++E)I[E-1]=typeof Int32Array<"u"?D.subarray(E*256,E*256+256):D.slice(E*256,E*256+256);return I}var n=a(i),s=n[0],o=n[1],f=n[2],p=n[3],c=n[4],m=n[5],h=n[6],_=n[7],L=n[8],y=n[9],g=n[10],b=n[11],R=n[12],O=n[13],H=n[14];function A(P,C){for(var k=C^-1,E=0,D=P.length;E<D;)k=k>>>8^i[(k^P.charCodeAt(E++))&255];return~k}function $(P,C){for(var k=C^-1,E=P.length-15,D=0;D<E;)k=H[P[D++]^k&255]^O[P[D++]^k>>8&255]^R[P[D++]^k>>16&255]^b[P[D++]^k>>>24]^g[P[D++]]^y[P[D++]]^L[P[D++]]^_[P[D++]]^h[P[D++]]^m[P[D++]]^c[P[D++]]^p[P[D++]]^f[P[D++]]^o[P[D++]]^s[P[D++]]^i[P[D++]];for(E+=15;D<E;)k=k>>>8^i[(k^P[D++])&255];return~k}function S(P,C){for(var k=C^-1,E=0,D=P.length,I=0,B=0;E<D;)I=P.charCodeAt(E++),I<128?k=k>>>8^i[(k^I)&255]:I<2048?(k=k>>>8^i[(k^(192|I>>6&31))&255],k=k>>>8^i[(k^(128|I&63))&255]):I>=55296&&I<57344?(I=(I&1023)+64,B=P.charCodeAt(E++)&1023,k=k>>>8^i[(k^(240|I>>8&7))&255],k=k>>>8^i[(k^(128|I>>2&63))&255],k=k>>>8^i[(k^(128|B>>6&15|(I&3)<<4))&255],k=k>>>8^i[(k^(128|B&63))&255]):(k=k>>>8^i[(k^(224|I>>12&15))&255],k=k>>>8^i[(k^(128|I>>6&63))&255],k=k>>>8^i[(k^(128|I&63))&255]);return~k}t.table=i,t.bstr=A,t.buf=$,t.str=S})})(vf);const Xu=oa(vf);class Ju{static wrap({type:t,object:r}){return Buffer.concat([Buffer.from(`${t} ${r.byteLength.toString()}\0`),Buffer.from(r)])}static unwrap(t){const r=t.indexOf(32),i=t.indexOf(0),a=t.slice(0,r).toString("utf8"),n=t.slice(r+1,i).toString("utf8"),s=t.length-(i+1);if(parseInt(n)!==s)throw new He(`Length mismatch: expected ${n} bytes but got ${s} instead.`);return{type:a,object:Buffer.from(t.slice(i+1))}}}class br{constructor(t){this.buffer=t,this._start=0}eof(){return this._start>=this.buffer.length}tell(){return this._start}seek(t){this._start=t}slice(t){const r=this.buffer.slice(this._start,this._start+t);return this._start+=t,r}toString(t,r){const i=this.buffer.toString(t,this._start,this._start+r);return this._start+=r,i}write(t,r,i){const a=this.buffer.write(t,this._start,r,i);return this._start+=r,a}copy(t,r,i){const a=t.copy(this.buffer,this._start,r,i);return this._start+=a,a}readUInt8(){const t=this.buffer.readUInt8(this._start);return this._start+=1,t}writeUInt8(t){const r=this.buffer.writeUInt8(t,this._start);return this._start+=1,r}readUInt16BE(){const t=this.buffer.readUInt16BE(this._start);return this._start+=2,t}writeUInt16BE(t){const r=this.buffer.writeUInt16BE(t,this._start);return this._start+=2,r}readUInt32BE(){const t=this.buffer.readUInt32BE(this._start);return this._start+=4,t}writeUInt32BE(t){const r=this.buffer.writeUInt32BE(t,this._start);return this._start+=4,r}}function Qu(e,t){const r=new br(e),i=Xa(r);if(i!==t.byteLength)throw new He(`applyDelta expected source buffer to be ${i} bytes but the provided buffer was ${t.length} bytes`);const a=Xa(r);let n;const s=Qa(r,t);if(s.byteLength===a)n=s;else{n=Buffer.alloc(a);const o=new br(n);for(o.copy(s);!r.eof();)o.copy(Qa(r,t));const f=o.tell();if(a!==f)throw new He(`applyDelta expected target buffer to be ${a} bytes but the resulting buffer was ${f} bytes`)}return n}function Xa(e){let t=0,r=0,i=null;do i=e.readUInt8(),t|=(i&127)<<r,r+=7;while(i&128);return t}function Ja(e,t,r){let i=0,a=0;for(;r--;)t&1&&(i|=e.readUInt8()<<a),t>>=1,a+=8;return i}function Qa(e,t){const r=e.readUInt8(),i=128,a=15,n=112;if(r&i){const s=Ja(e,r&a,4);let o=Ja(e,(r&n)>>4,3);return o===0&&(o=65536),t.slice(s,s+o)}else return e.slice(r)}var er={};(function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function r(n,s){return Object.prototype.hasOwnProperty.call(n,s)}e.assign=function(n){for(var s=Array.prototype.slice.call(arguments,1);s.length;){var o=s.shift();if(o){if(typeof o!="object")throw new TypeError(o+"must be non-object");for(var f in o)r(o,f)&&(n[f]=o[f])}}return n},e.shrinkBuf=function(n,s){return n.length===s?n:n.subarray?n.subarray(0,s):(n.length=s,n)};var i={arraySet:function(n,s,o,f,p){if(s.subarray&&n.subarray){n.set(s.subarray(o,o+f),p);return}for(var c=0;c<f;c++)n[p+c]=s[o+c]},flattenChunks:function(n){var s,o,f,p,c,m;for(f=0,s=0,o=n.length;s<o;s++)f+=n[s].length;for(m=new Uint8Array(f),p=0,s=0,o=n.length;s<o;s++)c=n[s],m.set(c,p),p+=c.length;return m}},a={arraySet:function(n,s,o,f,p){for(var c=0;c<f;c++)n[p+c]=s[o+c]},flattenChunks:function(n){return[].concat.apply([],n)}};e.setTyped=function(n){n?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(t)})(er);var Ds={},qt={},ts={},ed=er,td=4,eo=0,to=1,rd=2;function rs(e){for(var t=e.length;--t>=0;)e[t]=0}var sd=0,xf=1,nd=2,id=3,ad=258,da=29,$s=256,vs=$s+1+da,Vr=30,ha=19,kf=2*vs+1,xr=15,ni=16,od=7,ma=256,Sf=16,Ef=17,Pf=18,Ui=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],fn=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ld=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Af=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],fd=512,Yt=new Array((vs+2)*2);rs(Yt);var ms=new Array(Vr*2);rs(ms);var xs=new Array(fd);rs(xs);var ks=new Array(ad-id+1);rs(ks);var ya=new Array(da);rs(ya);var Pn=new Array(Vr);rs(Pn);function ii(e,t,r,i,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=a,this.has_stree=e&&e.length}var Tf,Cf,Of;function ai(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Lf(e){return e<256?xs[e]:xs[256+(e>>>7)]}function Ss(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function pt(e,t,r){e.bi_valid>ni-r?(e.bi_buf|=t<<e.bi_valid&65535,Ss(e,e.bi_buf),e.bi_buf=t>>ni-e.bi_valid,e.bi_valid+=r-ni):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function Bt(e,t,r){pt(e,r[t*2],r[t*2+1])}function Rf(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function pd(e){e.bi_valid===16?(Ss(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function cd(e,t){var r=t.dyn_tree,i=t.max_code,a=t.stat_desc.static_tree,n=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,o=t.stat_desc.extra_base,f=t.stat_desc.max_length,p,c,m,h,_,L,y=0;for(h=0;h<=xr;h++)e.bl_count[h]=0;for(r[e.heap[e.heap_max]*2+1]=0,p=e.heap_max+1;p<kf;p++)c=e.heap[p],h=r[r[c*2+1]*2+1]+1,h>f&&(h=f,y++),r[c*2+1]=h,!(c>i)&&(e.bl_count[h]++,_=0,c>=o&&(_=s[c-o]),L=r[c*2],e.opt_len+=L*(h+_),n&&(e.static_len+=L*(a[c*2+1]+_)));if(y!==0){do{for(h=f-1;e.bl_count[h]===0;)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[f]--,y-=2}while(y>0);for(h=f;h!==0;h--)for(c=e.bl_count[h];c!==0;)m=e.heap[--p],!(m>i)&&(r[m*2+1]!==h&&(e.opt_len+=(h-r[m*2+1])*r[m*2],r[m*2+1]=h),c--)}}function If(e,t,r){var i=new Array(xr+1),a=0,n,s;for(n=1;n<=xr;n++)i[n]=a=a+r[n-1]<<1;for(s=0;s<=t;s++){var o=e[s*2+1];o!==0&&(e[s*2]=Rf(i[o]++,o))}}function ud(){var e,t,r,i,a,n=new Array(xr+1);for(r=0,i=0;i<da-1;i++)for(ya[i]=r,e=0;e<1<<Ui[i];e++)ks[r++]=i;for(ks[r-1]=i,a=0,i=0;i<16;i++)for(Pn[i]=a,e=0;e<1<<fn[i];e++)xs[a++]=i;for(a>>=7;i<Vr;i++)for(Pn[i]=a<<7,e=0;e<1<<fn[i]-7;e++)xs[256+a++]=i;for(t=0;t<=xr;t++)n[t]=0;for(e=0;e<=143;)Yt[e*2+1]=8,e++,n[8]++;for(;e<=255;)Yt[e*2+1]=9,e++,n[9]++;for(;e<=279;)Yt[e*2+1]=7,e++,n[7]++;for(;e<=287;)Yt[e*2+1]=8,e++,n[8]++;for(If(Yt,vs+1,n),e=0;e<Vr;e++)ms[e*2+1]=5,ms[e*2]=Rf(e,5);Tf=new ii(Yt,Ui,$s+1,vs,xr),Cf=new ii(ms,fn,0,Vr,xr),Of=new ii(new Array(0),ld,0,ha,od)}function Df(e){var t;for(t=0;t<vs;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Vr;t++)e.dyn_dtree[t*2]=0;for(t=0;t<ha;t++)e.bl_tree[t*2]=0;e.dyn_ltree[ma*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function $f(e){e.bi_valid>8?Ss(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function dd(e,t,r,i){$f(e),Ss(e,r),Ss(e,~r),ed.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function ro(e,t,r,i){var a=t*2,n=r*2;return e[a]<e[n]||e[a]===e[n]&&i[t]<=i[r]}function oi(e,t,r){for(var i=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&ro(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!ro(t,i,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=i}function so(e,t,r){var i,a,n=0,s,o;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+n*2]<<8|e.pending_buf[e.d_buf+n*2+1],a=e.pending_buf[e.l_buf+n],n++,i===0?Bt(e,a,t):(s=ks[a],Bt(e,s+$s+1,t),o=Ui[s],o!==0&&(a-=ya[s],pt(e,a,o)),i--,s=Lf(i),Bt(e,s,r),o=fn[s],o!==0&&(i-=Pn[s],pt(e,i,o)));while(n<e.last_lit);Bt(e,ma,t)}function Mi(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,n=t.stat_desc.elems,s,o,f=-1,p;for(e.heap_len=0,e.heap_max=kf,s=0;s<n;s++)r[s*2]!==0?(e.heap[++e.heap_len]=f=s,e.depth[s]=0):r[s*2+1]=0;for(;e.heap_len<2;)p=e.heap[++e.heap_len]=f<2?++f:0,r[p*2]=1,e.depth[p]=0,e.opt_len--,a&&(e.static_len-=i[p*2+1]);for(t.max_code=f,s=e.heap_len>>1;s>=1;s--)oi(e,r,s);p=n;do s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],oi(e,r,1),o=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=o,r[p*2]=r[s*2]+r[o*2],e.depth[p]=(e.depth[s]>=e.depth[o]?e.depth[s]:e.depth[o])+1,r[s*2+1]=r[o*2+1]=p,e.heap[1]=p++,oi(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],cd(e,t),If(r,f,e.bl_count)}function no(e,t,r){var i,a=-1,n,s=t[0*2+1],o=0,f=7,p=4;for(s===0&&(f=138,p=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)n=s,s=t[(i+1)*2+1],!(++o<f&&n===s)&&(o<p?e.bl_tree[n*2]+=o:n!==0?(n!==a&&e.bl_tree[n*2]++,e.bl_tree[Sf*2]++):o<=10?e.bl_tree[Ef*2]++:e.bl_tree[Pf*2]++,o=0,a=n,s===0?(f=138,p=3):n===s?(f=6,p=3):(f=7,p=4))}function io(e,t,r){var i,a=-1,n,s=t[0*2+1],o=0,f=7,p=4;for(s===0&&(f=138,p=3),i=0;i<=r;i++)if(n=s,s=t[(i+1)*2+1],!(++o<f&&n===s)){if(o<p)do Bt(e,n,e.bl_tree);while(--o!==0);else n!==0?(n!==a&&(Bt(e,n,e.bl_tree),o--),Bt(e,Sf,e.bl_tree),pt(e,o-3,2)):o<=10?(Bt(e,Ef,e.bl_tree),pt(e,o-3,3)):(Bt(e,Pf,e.bl_tree),pt(e,o-11,7));o=0,a=n,s===0?(f=138,p=3):n===s?(f=6,p=3):(f=7,p=4)}}function hd(e){var t;for(no(e,e.dyn_ltree,e.l_desc.max_code),no(e,e.dyn_dtree,e.d_desc.max_code),Mi(e,e.bl_desc),t=ha-1;t>=3&&e.bl_tree[Af[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function md(e,t,r,i){var a;for(pt(e,t-257,5),pt(e,r-1,5),pt(e,i-4,4),a=0;a<i;a++)pt(e,e.bl_tree[Af[a]*2+1],3);io(e,e.dyn_ltree,t-1),io(e,e.dyn_dtree,r-1)}function yd(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return eo;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return to;for(r=32;r<$s;r++)if(e.dyn_ltree[r*2]!==0)return to;return eo}var ao=!1;function _d(e){ao||(ud(),ao=!0),e.l_desc=new ai(e.dyn_ltree,Tf),e.d_desc=new ai(e.dyn_dtree,Cf),e.bl_desc=new ai(e.bl_tree,Of),e.bi_buf=0,e.bi_valid=0,Df(e)}function Hf(e,t,r,i){pt(e,(sd<<1)+(i?1:0),3),dd(e,t,r)}function gd(e){pt(e,xf<<1,3),Bt(e,ma,Yt),pd(e)}function wd(e,t,r,i){var a,n,s=0;e.level>0?(e.strm.data_type===rd&&(e.strm.data_type=yd(e)),Mi(e,e.l_desc),Mi(e,e.d_desc),s=hd(e),a=e.opt_len+3+7>>>3,n=e.static_len+3+7>>>3,n<=a&&(a=n)):a=n=r+5,r+4<=a&&t!==-1?Hf(e,t,r,i):e.strategy===td||n===a?(pt(e,(xf<<1)+(i?1:0),3),so(e,Yt,ms)):(pt(e,(nd<<1)+(i?1:0),3),md(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),so(e,e.dyn_ltree,e.dyn_dtree)),Df(e),i&&$f(e)}function bd(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(ks[r]+$s+1)*2]++,e.dyn_dtree[Lf(t)*2]++),e.last_lit===e.lit_bufsize-1}ts._tr_init=_d;ts._tr_stored_block=Hf;ts._tr_flush_block=wd;ts._tr_tally=bd;ts._tr_align=gd;function vd(e,t,r,i){for(var a=e&65535|0,n=e>>>16&65535|0,s=0;r!==0;){s=r>2e3?2e3:r,r-=s;do a=a+t[i++]|0,n=n+a|0;while(--s);a%=65521,n%=65521}return a|n<<16|0}var Ff=vd;function xd(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var kd=xd();function Sd(e,t,r,i){var a=kd,n=i+r;e^=-1;for(var s=i;s<n;s++)e=e>>>8^a[(e^t[s])&255];return e^-1}var Nf=Sd,_a={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},st=er,St=ts,Bf=Ff,ar=Nf,Ed=_a,Ir=0,Pd=1,Ad=3,mr=4,oo=5,jt=0,lo=1,Et=-2,Td=-3,li=-5,Cd=-1,Od=1,qs=2,Ld=3,Rd=4,Id=0,Dd=2,Bn=8,$d=9,Hd=15,Fd=8,Nd=29,Bd=256,qi=Bd+1+Nd,jd=30,Wd=19,Ud=2*qi+1,Md=15,ye=3,dr=258,Rt=dr+ye+1,qd=32,jn=42,Ki=69,pn=73,cn=91,un=103,kr=113,us=666,Me=1,Hs=2,Ar=3,ss=4,Kd=3;function hr(e,t){return e.msg=Ed[t],t}function fo(e){return(e<<1)-(e>4?9:0)}function ur(e){for(var t=e.length;--t>=0;)e[t]=0}function or(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(st.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function Xe(e,t){St._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,or(e.strm)}function xe(e,t){e.pending_buf[e.pending++]=t}function as(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function zd(e,t,r,i){var a=e.avail_in;return a>i&&(a=i),a===0?0:(e.avail_in-=a,st.arraySet(t,e.input,e.next_in,a,r),e.state.wrap===1?e.adler=Bf(e.adler,t,a,r):e.state.wrap===2&&(e.adler=ar(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)}function jf(e,t){var r=e.max_chain_length,i=e.strstart,a,n,s=e.prev_length,o=e.nice_match,f=e.strstart>e.w_size-Rt?e.strstart-(e.w_size-Rt):0,p=e.window,c=e.w_mask,m=e.prev,h=e.strstart+dr,_=p[i+s-1],L=p[i+s];e.prev_length>=e.good_match&&(r>>=2),o>e.lookahead&&(o=e.lookahead);do if(a=t,!(p[a+s]!==L||p[a+s-1]!==_||p[a]!==p[i]||p[++a]!==p[i+1])){i+=2,a++;do;while(p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&i<h);if(n=dr-(h-i),i=h-dr,n>s){if(e.match_start=t,s=n,n>=o)break;_=p[i+s-1],L=p[i+s]}}while((t=m[t&c])>f&&--r!==0);return s<=e.lookahead?s:e.lookahead}function Tr(e){var t=e.w_size,r,i,a,n,s;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Rt)){st.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do a=e.head[--r],e.head[r]=a>=t?a-t:0;while(--i);i=t,r=i;do a=e.prev[--r],e.prev[r]=a>=t?a-t:0;while(--i);n+=t}if(e.strm.avail_in===0)break;if(i=zd(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=i,e.lookahead+e.insert>=ye)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+ye-1])&e.hash_mask,e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert<ye)););}while(e.lookahead<Rt&&e.strm.avail_in!==0)}function Vd(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Tr(e),e.lookahead===0&&t===Ir)return Me;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,Xe(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-Rt&&(Xe(e,!1),e.strm.avail_out===0))return Me}return e.insert=0,t===mr?(Xe(e,!0),e.strm.avail_out===0?Ar:ss):(e.strstart>e.block_start&&(Xe(e,!1),e.strm.avail_out===0),Me)}function fi(e,t){for(var r,i;;){if(e.lookahead<Rt){if(Tr(e),e.lookahead<Rt&&t===Ir)return Me;if(e.lookahead===0)break}if(r=0,e.lookahead>=ye&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ye-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-Rt&&(e.match_length=jf(e,r)),e.match_length>=ye)if(i=St._tr_tally(e,e.strstart-e.match_start,e.match_length-ye),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ye){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ye-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=St._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Xe(e,!1),e.strm.avail_out===0))return Me}return e.insert=e.strstart<ye-1?e.strstart:ye-1,t===mr?(Xe(e,!0),e.strm.avail_out===0?Ar:ss):e.last_lit&&(Xe(e,!1),e.strm.avail_out===0)?Me:Hs}function Hr(e,t){for(var r,i,a;;){if(e.lookahead<Rt){if(Tr(e),e.lookahead<Rt&&t===Ir)return Me;if(e.lookahead===0)break}if(r=0,e.lookahead>=ye&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ye-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=ye-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-Rt&&(e.match_length=jf(e,r),e.match_length<=5&&(e.strategy===Od||e.match_length===ye&&e.strstart-e.match_start>4096)&&(e.match_length=ye-1)),e.prev_length>=ye&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-ye,i=St._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-ye),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ye-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=ye-1,e.strstart++,i&&(Xe(e,!1),e.strm.avail_out===0))return Me}else if(e.match_available){if(i=St._tr_tally(e,0,e.window[e.strstart-1]),i&&Xe(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Me}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=St._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<ye-1?e.strstart:ye-1,t===mr?(Xe(e,!0),e.strm.avail_out===0?Ar:ss):e.last_lit&&(Xe(e,!1),e.strm.avail_out===0)?Me:Hs}function Gd(e,t){for(var r,i,a,n,s=e.window;;){if(e.lookahead<=dr){if(Tr(e),e.lookahead<=dr&&t===Ir)return Me;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=ye&&e.strstart>0&&(a=e.strstart-1,i=s[a],i===s[++a]&&i===s[++a]&&i===s[++a])){n=e.strstart+dr;do;while(i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&a<n);e.match_length=dr-(n-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ye?(r=St._tr_tally(e,1,e.match_length-ye),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=St._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Xe(e,!1),e.strm.avail_out===0))return Me}return e.insert=0,t===mr?(Xe(e,!0),e.strm.avail_out===0?Ar:ss):e.last_lit&&(Xe(e,!1),e.strm.avail_out===0)?Me:Hs}function Zd(e,t){for(var r;;){if(e.lookahead===0&&(Tr(e),e.lookahead===0)){if(t===Ir)return Me;break}if(e.match_length=0,r=St._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Xe(e,!1),e.strm.avail_out===0))return Me}return e.insert=0,t===mr?(Xe(e,!0),e.strm.avail_out===0?Ar:ss):e.last_lit&&(Xe(e,!1),e.strm.avail_out===0)?Me:Hs}function $t(e,t,r,i,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=a}var qr;qr=[new $t(0,0,0,0,Vd),new $t(4,4,8,4,fi),new $t(4,5,16,8,fi),new $t(4,6,32,32,fi),new $t(4,4,16,16,Hr),new $t(8,16,32,32,Hr),new $t(8,16,128,128,Hr),new $t(8,32,128,256,Hr),new $t(32,128,258,1024,Hr),new $t(32,258,258,4096,Hr)];function Yd(e){e.window_size=2*e.w_size,ur(e.head),e.max_lazy_match=qr[e.level].max_lazy,e.good_match=qr[e.level].good_length,e.nice_match=qr[e.level].nice_length,e.max_chain_length=qr[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ye-1,e.match_available=0,e.ins_h=0}function Xd(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Bn,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new st.Buf16(Ud*2),this.dyn_dtree=new st.Buf16((2*jd+1)*2),this.bl_tree=new st.Buf16((2*Wd+1)*2),ur(this.dyn_ltree),ur(this.dyn_dtree),ur(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new st.Buf16(Md+1),this.heap=new st.Buf16(2*qi+1),ur(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new st.Buf16(2*qi+1),ur(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Wf(e){var t;return!e||!e.state?hr(e,Et):(e.total_in=e.total_out=0,e.data_type=Dd,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?jn:kr,e.adler=t.wrap===2?0:1,t.last_flush=Ir,St._tr_init(t),jt)}function Uf(e){var t=Wf(e);return t===jt&&Yd(e.state),t}function Jd(e,t){return!e||!e.state||e.state.wrap!==2?Et:(e.state.gzhead=t,jt)}function Mf(e,t,r,i,a,n){if(!e)return Et;var s=1;if(t===Cd&&(t=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),a<1||a>$d||r!==Bn||i<8||i>15||t<0||t>9||n<0||n>Rd)return hr(e,Et);i===8&&(i=9);var o=new Xd;return e.state=o,o.strm=e,o.wrap=s,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=a+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+ye-1)/ye),o.window=new st.Buf8(o.w_size*2),o.head=new st.Buf16(o.hash_size),o.prev=new st.Buf16(o.w_size),o.lit_bufsize=1<<a+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new st.Buf8(o.pending_buf_size),o.d_buf=1*o.lit_bufsize,o.l_buf=3*o.lit_bufsize,o.level=t,o.strategy=n,o.method=r,Uf(e)}function Qd(e,t){return Mf(e,t,Bn,Hd,Fd,Id)}function eh(e,t){var r,i,a,n;if(!e||!e.state||t>oo||t<0)return e?hr(e,Et):Et;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===us&&t!==mr)return hr(e,e.avail_out===0?li:Et);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===jn)if(i.wrap===2)e.adler=0,xe(i,31),xe(i,139),xe(i,8),i.gzhead?(xe(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),xe(i,i.gzhead.time&255),xe(i,i.gzhead.time>>8&255),xe(i,i.gzhead.time>>16&255),xe(i,i.gzhead.time>>24&255),xe(i,i.level===9?2:i.strategy>=qs||i.level<2?4:0),xe(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(xe(i,i.gzhead.extra.length&255),xe(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=ar(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Ki):(xe(i,0),xe(i,0),xe(i,0),xe(i,0),xe(i,0),xe(i,i.level===9?2:i.strategy>=qs||i.level<2?4:0),xe(i,Kd),i.status=kr);else{var s=Bn+(i.w_bits-8<<4)<<8,o=-1;i.strategy>=qs||i.level<2?o=0:i.level<6?o=1:i.level===6?o=2:o=3,s|=o<<6,i.strstart!==0&&(s|=qd),s+=31-s%31,i.status=kr,as(i,s),i.strstart!==0&&(as(i,e.adler>>>16),as(i,e.adler&65535)),e.adler=1}if(i.status===Ki)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=ar(e.adler,i.pending_buf,i.pending-a,a)),or(e),a=i.pending,i.pending===i.pending_buf_size));)xe(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=ar(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=pn)}else i.status=pn;if(i.status===pn)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=ar(e.adler,i.pending_buf,i.pending-a,a)),or(e),a=i.pending,i.pending===i.pending_buf_size)){n=1;break}i.gzindex<i.gzhead.name.length?n=i.gzhead.name.charCodeAt(i.gzindex++)&255:n=0,xe(i,n)}while(n!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=ar(e.adler,i.pending_buf,i.pending-a,a)),n===0&&(i.gzindex=0,i.status=cn)}else i.status=cn;if(i.status===cn)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=ar(e.adler,i.pending_buf,i.pending-a,a)),or(e),a=i.pending,i.pending===i.pending_buf_size)){n=1;break}i.gzindex<i.gzhead.comment.length?n=i.gzhead.comment.charCodeAt(i.gzindex++)&255:n=0,xe(i,n)}while(n!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=ar(e.adler,i.pending_buf,i.pending-a,a)),n===0&&(i.status=un)}else i.status=un;if(i.status===un&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&or(e),i.pending+2<=i.pending_buf_size&&(xe(i,e.adler&255),xe(i,e.adler>>8&255),e.adler=0,i.status=kr)):i.status=kr),i.pending!==0){if(or(e),e.avail_out===0)return i.last_flush=-1,jt}else if(e.avail_in===0&&fo(t)<=fo(r)&&t!==mr)return hr(e,li);if(i.status===us&&e.avail_in!==0)return hr(e,li);if(e.avail_in!==0||i.lookahead!==0||t!==Ir&&i.status!==us){var f=i.strategy===qs?Zd(i,t):i.strategy===Ld?Gd(i,t):qr[i.level].func(i,t);if((f===Ar||f===ss)&&(i.status=us),f===Me||f===Ar)return e.avail_out===0&&(i.last_flush=-1),jt;if(f===Hs&&(t===Pd?St._tr_align(i):t!==oo&&(St._tr_stored_block(i,0,0,!1),t===Ad&&(ur(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),or(e),e.avail_out===0))return i.last_flush=-1,jt}return t!==mr?jt:i.wrap<=0?lo:(i.wrap===2?(xe(i,e.adler&255),xe(i,e.adler>>8&255),xe(i,e.adler>>16&255),xe(i,e.adler>>24&255),xe(i,e.total_in&255),xe(i,e.total_in>>8&255),xe(i,e.total_in>>16&255),xe(i,e.total_in>>24&255)):(as(i,e.adler>>>16),as(i,e.adler&65535)),or(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?jt:lo)}function th(e){var t;return!e||!e.state?Et:(t=e.state.status,t!==jn&&t!==Ki&&t!==pn&&t!==cn&&t!==un&&t!==kr&&t!==us?hr(e,Et):(e.state=null,t===kr?hr(e,Td):jt))}function rh(e,t){var r=t.length,i,a,n,s,o,f,p,c;if(!e||!e.state||(i=e.state,s=i.wrap,s===2||s===1&&i.status!==jn||i.lookahead))return Et;for(s===1&&(e.adler=Bf(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(s===0&&(ur(i.head),i.strstart=0,i.block_start=0,i.insert=0),c=new st.Buf8(i.w_size),st.arraySet(c,t,r-i.w_size,i.w_size,0),t=c,r=i.w_size),o=e.avail_in,f=e.next_in,p=e.input,e.avail_in=r,e.next_in=0,e.input=t,Tr(i);i.lookahead>=ye;){a=i.strstart,n=i.lookahead-(ye-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[a+ye-1])&i.hash_mask,i.prev[a&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=a,a++;while(--n);i.strstart=a,i.lookahead=ye-1,Tr(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=ye-1,i.match_available=0,e.next_in=f,e.input=p,e.avail_in=o,i.wrap=s,jt}qt.deflateInit=Qd;qt.deflateInit2=Mf;qt.deflateReset=Uf;qt.deflateResetKeep=Wf;qt.deflateSetHeader=Jd;qt.deflate=eh;qt.deflateEnd=th;qt.deflateSetDictionary=rh;qt.deflateInfo="pako deflate (from Nodeca project)";var Dr={},Wn=er,qf=!0,Kf=!0;try{String.fromCharCode.apply(null,[0])}catch{qf=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Kf=!1}var Es=new Wn.Buf8(256);for(var rr=0;rr<256;rr++)Es[rr]=rr>=252?6:rr>=248?5:rr>=240?4:rr>=224?3:rr>=192?2:1;Es[254]=Es[254]=1;Dr.string2buf=function(e){var t,r,i,a,n,s=e.length,o=0;for(a=0;a<s;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<s&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),o+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Wn.Buf8(o),n=0,a=0;n<o;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<s&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?t[n++]=r:r<2048?(t[n++]=192|r>>>6,t[n++]=128|r&63):r<65536?(t[n++]=224|r>>>12,t[n++]=128|r>>>6&63,t[n++]=128|r&63):(t[n++]=240|r>>>18,t[n++]=128|r>>>12&63,t[n++]=128|r>>>6&63,t[n++]=128|r&63);return t};function zf(e,t){if(t<65534&&(e.subarray&&Kf||!e.subarray&&qf))return String.fromCharCode.apply(null,Wn.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}Dr.buf2binstring=function(e){return zf(e,e.length)};Dr.binstring2buf=function(e){for(var t=new Wn.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};Dr.buf2string=function(e,t){var r,i,a,n,s=t||e.length,o=new Array(s*2);for(i=0,r=0;r<s;){if(a=e[r++],a<128){o[i++]=a;continue}if(n=Es[a],n>4){o[i++]=65533,r+=n-1;continue}for(a&=n===2?31:n===3?15:7;n>1&&r<s;)a=a<<6|e[r++]&63,n--;if(n>1){o[i++]=65533;continue}a<65536?o[i++]=a:(a-=65536,o[i++]=55296|a>>10&1023,o[i++]=56320|a&1023)}return zf(o,i)};Dr.utf8border=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+Es[e[r]]>t?r:t};function sh(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Vf=sh,ys=qt,_s=er,zi=Dr,Vi=_a,nh=Vf,Gf=Object.prototype.toString,ih=0,pi=4,Gr=0,po=1,co=2,ah=-1,oh=0,lh=8;function Cr(e){if(!(this instanceof Cr))return new Cr(e);this.options=_s.assign({level:ah,method:lh,chunkSize:16384,windowBits:15,memLevel:8,strategy:oh,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new nh,this.strm.avail_out=0;var r=ys.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==Gr)throw new Error(Vi[r]);if(t.header&&ys.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=zi.string2buf(t.dictionary):Gf.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=ys.deflateSetDictionary(this.strm,i),r!==Gr)throw new Error(Vi[r]);this._dict_set=!0}}Cr.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a,n;if(this.ended)return!1;n=t===~~t?t:t===!0?pi:ih,typeof e=="string"?r.input=zi.string2buf(e):Gf.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new _s.Buf8(i),r.next_out=0,r.avail_out=i),a=ys.deflate(r,n),a!==po&&a!==Gr)return this.onEnd(a),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(n===pi||n===co))&&(this.options.to==="string"?this.onData(zi.buf2binstring(_s.shrinkBuf(r.output,r.next_out))):this.onData(_s.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&a!==po);return n===pi?(a=ys.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Gr):(n===co&&(this.onEnd(Gr),r.avail_out=0),!0)};Cr.prototype.onData=function(e){this.chunks.push(e)};Cr.prototype.onEnd=function(e){e===Gr&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=_s.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function ga(e,t){var r=new Cr(t);if(r.push(e,!0),r.err)throw r.msg||Vi[r.err];return r.result}function fh(e,t){return t=t||{},t.raw=!0,ga(e,t)}function ph(e,t){return t=t||{},t.gzip=!0,ga(e,t)}Ds.Deflate=Cr;Ds.deflate=ga;Ds.deflateRaw=fh;Ds.gzip=ph;var Fs={},It={},Ks=30,ch=12,uh=function(t,r){var i,a,n,s,o,f,p,c,m,h,_,L,y,g,b,R,O,H,A,$,S,P,C,k,E;i=t.state,a=t.next_in,k=t.input,n=a+(t.avail_in-5),s=t.next_out,E=t.output,o=s-(r-t.avail_out),f=s+(t.avail_out-257),p=i.dmax,c=i.wsize,m=i.whave,h=i.wnext,_=i.window,L=i.hold,y=i.bits,g=i.lencode,b=i.distcode,R=(1<<i.lenbits)-1,O=(1<<i.distbits)-1;e:do{y<15&&(L+=k[a++]<<y,y+=8,L+=k[a++]<<y,y+=8),H=g[L&R];t:for(;;){if(A=H>>>24,L>>>=A,y-=A,A=H>>>16&255,A===0)E[s++]=H&65535;else if(A&16){$=H&65535,A&=15,A&&(y<A&&(L+=k[a++]<<y,y+=8),$+=L&(1<<A)-1,L>>>=A,y-=A),y<15&&(L+=k[a++]<<y,y+=8,L+=k[a++]<<y,y+=8),H=b[L&O];r:for(;;){if(A=H>>>24,L>>>=A,y-=A,A=H>>>16&255,A&16){if(S=H&65535,A&=15,y<A&&(L+=k[a++]<<y,y+=8,y<A&&(L+=k[a++]<<y,y+=8)),S+=L&(1<<A)-1,S>p){t.msg="invalid distance too far back",i.mode=Ks;break e}if(L>>>=A,y-=A,A=s-o,S>A){if(A=S-A,A>m&&i.sane){t.msg="invalid distance too far back",i.mode=Ks;break e}if(P=0,C=_,h===0){if(P+=c-A,A<$){$-=A;do E[s++]=_[P++];while(--A);P=s-S,C=E}}else if(h<A){if(P+=c+h-A,A-=h,A<$){$-=A;do E[s++]=_[P++];while(--A);if(P=0,h<$){A=h,$-=A;do E[s++]=_[P++];while(--A);P=s-S,C=E}}}else if(P+=h-A,A<$){$-=A;do E[s++]=_[P++];while(--A);P=s-S,C=E}for(;$>2;)E[s++]=C[P++],E[s++]=C[P++],E[s++]=C[P++],$-=3;$&&(E[s++]=C[P++],$>1&&(E[s++]=C[P++]))}else{P=s-S;do E[s++]=E[P++],E[s++]=E[P++],E[s++]=E[P++],$-=3;while($>2);$&&(E[s++]=E[P++],$>1&&(E[s++]=E[P++]))}}else if(A&64){t.msg="invalid distance code",i.mode=Ks;break e}else{H=b[(H&65535)+(L&(1<<A)-1)];continue r}break}}else if(A&64)if(A&32){i.mode=ch;break e}else{t.msg="invalid literal/length code",i.mode=Ks;break e}else{H=g[(H&65535)+(L&(1<<A)-1)];continue t}break}}while(a<n&&s<f);$=y>>3,a-=$,y-=$<<3,L&=(1<<y)-1,t.next_in=a,t.next_out=s,t.avail_in=a<n?5+(n-a):5-(a-n),t.avail_out=s<f?257+(f-s):257-(s-f),i.hold=L,i.bits=y},uo=er,Fr=15,ho=852,mo=592,yo=0,ci=1,_o=2,dh=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],hh=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],mh=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],yh=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],_h=function(t,r,i,a,n,s,o,f){var p=f.bits,c=0,m=0,h=0,_=0,L=0,y=0,g=0,b=0,R=0,O=0,H,A,$,S,P,C=null,k=0,E,D=new uo.Buf16(Fr+1),I=new uo.Buf16(Fr+1),B=null,W=0,M,Z,z;for(c=0;c<=Fr;c++)D[c]=0;for(m=0;m<a;m++)D[r[i+m]]++;for(L=p,_=Fr;_>=1&&D[_]===0;_--);if(L>_&&(L=_),_===0)return n[s++]=1<<24|64<<16|0,n[s++]=1<<24|64<<16|0,f.bits=1,0;for(h=1;h<_&&D[h]===0;h++);for(L<h&&(L=h),b=1,c=1;c<=Fr;c++)if(b<<=1,b-=D[c],b<0)return-1;if(b>0&&(t===yo||_!==1))return-1;for(I[1]=0,c=1;c<Fr;c++)I[c+1]=I[c]+D[c];for(m=0;m<a;m++)r[i+m]!==0&&(o[I[r[i+m]]++]=m);if(t===yo?(C=B=o,E=19):t===ci?(C=dh,k-=257,B=hh,W-=257,E=256):(C=mh,B=yh,E=-1),O=0,m=0,c=h,P=s,y=L,g=0,$=-1,R=1<<L,S=R-1,t===ci&&R>ho||t===_o&&R>mo)return 1;for(;;){M=c-g,o[m]<E?(Z=0,z=o[m]):o[m]>E?(Z=B[W+o[m]],z=C[k+o[m]]):(Z=96,z=0),H=1<<c-g,A=1<<y,h=A;do A-=H,n[P+(O>>g)+A]=M<<24|Z<<16|z|0;while(A!==0);for(H=1<<c-1;O&H;)H>>=1;if(H!==0?(O&=H-1,O+=H):O=0,m++,--D[c]===0){if(c===_)break;c=r[i+o[m]]}if(c>L&&(O&S)!==$){for(g===0&&(g=L),P+=h,y=c-g,b=1<<y;y+g<_&&(b-=D[y+g],!(b<=0));)y++,b<<=1;if(R+=1<<y,t===ci&&R>ho||t===_o&&R>mo)return 1;$=O&S,n[$]=L<<24|y<<16|P-s|0}}return O!==0&&(n[P+O]=c-g<<24|64<<16|0),f.bits=L,0},wt=er,Gi=Ff,Ht=Nf,gh=uh,gs=_h,wh=0,Zf=1,Yf=2,go=4,bh=5,zs=6,Or=0,vh=1,xh=2,Pt=-2,Xf=-3,Jf=-4,kh=-5,wo=8,Qf=1,bo=2,vo=3,xo=4,ko=5,So=6,Eo=7,Po=8,Ao=9,To=10,An=11,Vt=12,ui=13,Co=14,di=15,Oo=16,Lo=17,Ro=18,Io=19,Vs=20,Gs=21,Do=22,$o=23,Ho=24,Fo=25,No=26,hi=27,Bo=28,jo=29,De=30,ep=31,Sh=32,Eh=852,Ph=592,Ah=15,Th=Ah;function Wo(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function Ch(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new wt.Buf16(320),this.work=new wt.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function tp(e){var t;return!e||!e.state?Pt:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Qf,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new wt.Buf32(Eh),t.distcode=t.distdyn=new wt.Buf32(Ph),t.sane=1,t.back=-1,Or)}function rp(e){var t;return!e||!e.state?Pt:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,tp(e))}function sp(e,t){var r,i;return!e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?Pt:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,rp(e))}function np(e,t){var r,i;return e?(i=new Ch,e.state=i,i.window=null,r=sp(e,t),r!==Or&&(e.state=null),r):Pt}function Oh(e){return np(e,Th)}var Uo=!0,mi,yi;function Lh(e){if(Uo){var t;for(mi=new wt.Buf32(512),yi=new wt.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(gs(Zf,e.lens,0,288,mi,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;gs(Yf,e.lens,0,32,yi,0,e.work,{bits:5}),Uo=!1}e.lencode=mi,e.lenbits=9,e.distcode=yi,e.distbits=5}function ip(e,t,r,i){var a,n=e.state;return n.window===null&&(n.wsize=1<<n.wbits,n.wnext=0,n.whave=0,n.window=new wt.Buf8(n.wsize)),i>=n.wsize?(wt.arraySet(n.window,t,r-n.wsize,n.wsize,0),n.wnext=0,n.whave=n.wsize):(a=n.wsize-n.wnext,a>i&&(a=i),wt.arraySet(n.window,t,r-i,a,n.wnext),i-=a,i?(wt.arraySet(n.window,t,r-i,i,0),n.wnext=i,n.whave=n.wsize):(n.wnext+=a,n.wnext===n.wsize&&(n.wnext=0),n.whave<n.wsize&&(n.whave+=a))),0}function Rh(e,t){var r,i,a,n,s,o,f,p,c,m,h,_,L,y,g=0,b,R,O,H,A,$,S,P,C=new wt.Buf8(4),k,E,D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return Pt;r=e.state,r.mode===Vt&&(r.mode=ui),s=e.next_out,a=e.output,f=e.avail_out,n=e.next_in,i=e.input,o=e.avail_in,p=r.hold,c=r.bits,m=o,h=f,P=Or;e:for(;;)switch(r.mode){case Qf:if(r.wrap===0){r.mode=ui;break}for(;c<16;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}if(r.wrap&2&&p===35615){r.check=0,C[0]=p&255,C[1]=p>>>8&255,r.check=Ht(r.check,C,2,0),p=0,c=0,r.mode=bo;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((p&255)<<8)+(p>>8))%31){e.msg="incorrect header check",r.mode=De;break}if((p&15)!==wo){e.msg="unknown compression method",r.mode=De;break}if(p>>>=4,c-=4,S=(p&15)+8,r.wbits===0)r.wbits=S;else if(S>r.wbits){e.msg="invalid window size",r.mode=De;break}r.dmax=1<<S,e.adler=r.check=1,r.mode=p&512?To:Vt,p=0,c=0;break;case bo:for(;c<16;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}if(r.flags=p,(r.flags&255)!==wo){e.msg="unknown compression method",r.mode=De;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=De;break}r.head&&(r.head.text=p>>8&1),r.flags&512&&(C[0]=p&255,C[1]=p>>>8&255,r.check=Ht(r.check,C,2,0)),p=0,c=0,r.mode=vo;case vo:for(;c<32;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}r.head&&(r.head.time=p),r.flags&512&&(C[0]=p&255,C[1]=p>>>8&255,C[2]=p>>>16&255,C[3]=p>>>24&255,r.check=Ht(r.check,C,4,0)),p=0,c=0,r.mode=xo;case xo:for(;c<16;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}r.head&&(r.head.xflags=p&255,r.head.os=p>>8),r.flags&512&&(C[0]=p&255,C[1]=p>>>8&255,r.check=Ht(r.check,C,2,0)),p=0,c=0,r.mode=ko;case ko:if(r.flags&1024){for(;c<16;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}r.length=p,r.head&&(r.head.extra_len=p),r.flags&512&&(C[0]=p&255,C[1]=p>>>8&255,r.check=Ht(r.check,C,2,0)),p=0,c=0}else r.head&&(r.head.extra=null);r.mode=So;case So:if(r.flags&1024&&(_=r.length,_>o&&(_=o),_&&(r.head&&(S=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),wt.arraySet(r.head.extra,i,n,_,S)),r.flags&512&&(r.check=Ht(r.check,i,_,n)),o-=_,n+=_,r.length-=_),r.length))break e;r.length=0,r.mode=Eo;case Eo:if(r.flags&2048){if(o===0)break e;_=0;do S=i[n+_++],r.head&&S&&r.length<65536&&(r.head.name+=String.fromCharCode(S));while(S&&_<o);if(r.flags&512&&(r.check=Ht(r.check,i,_,n)),o-=_,n+=_,S)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=Po;case Po:if(r.flags&4096){if(o===0)break e;_=0;do S=i[n+_++],r.head&&S&&r.length<65536&&(r.head.comment+=String.fromCharCode(S));while(S&&_<o);if(r.flags&512&&(r.check=Ht(r.check,i,_,n)),o-=_,n+=_,S)break e}else r.head&&(r.head.comment=null);r.mode=Ao;case Ao:if(r.flags&512){for(;c<16;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}if(p!==(r.check&65535)){e.msg="header crc mismatch",r.mode=De;break}p=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Vt;break;case To:for(;c<32;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}e.adler=r.check=Wo(p),p=0,c=0,r.mode=An;case An:if(r.havedict===0)return e.next_out=s,e.avail_out=f,e.next_in=n,e.avail_in=o,r.hold=p,r.bits=c,xh;e.adler=r.check=1,r.mode=Vt;case Vt:if(t===bh||t===zs)break e;case ui:if(r.last){p>>>=c&7,c-=c&7,r.mode=hi;break}for(;c<3;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}switch(r.last=p&1,p>>>=1,c-=1,p&3){case 0:r.mode=Co;break;case 1:if(Lh(r),r.mode=Vs,t===zs){p>>>=2,c-=2;break e}break;case 2:r.mode=Lo;break;case 3:e.msg="invalid block type",r.mode=De}p>>>=2,c-=2;break;case Co:for(p>>>=c&7,c-=c&7;c<32;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}if((p&65535)!==(p>>>16^65535)){e.msg="invalid stored block lengths",r.mode=De;break}if(r.length=p&65535,p=0,c=0,r.mode=di,t===zs)break e;case di:r.mode=Oo;case Oo:if(_=r.length,_){if(_>o&&(_=o),_>f&&(_=f),_===0)break e;wt.arraySet(a,i,n,_,s),o-=_,n+=_,f-=_,s+=_,r.length-=_;break}r.mode=Vt;break;case Lo:for(;c<14;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}if(r.nlen=(p&31)+257,p>>>=5,c-=5,r.ndist=(p&31)+1,p>>>=5,c-=5,r.ncode=(p&15)+4,p>>>=4,c-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=De;break}r.have=0,r.mode=Ro;case Ro:for(;r.have<r.ncode;){for(;c<3;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}r.lens[D[r.have++]]=p&7,p>>>=3,c-=3}for(;r.have<19;)r.lens[D[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,k={bits:r.lenbits},P=gs(wh,r.lens,0,19,r.lencode,0,r.work,k),r.lenbits=k.bits,P){e.msg="invalid code lengths set",r.mode=De;break}r.have=0,r.mode=Io;case Io:for(;r.have<r.nlen+r.ndist;){for(;g=r.lencode[p&(1<<r.lenbits)-1],b=g>>>24,R=g>>>16&255,O=g&65535,!(b<=c);){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}if(O<16)p>>>=b,c-=b,r.lens[r.have++]=O;else{if(O===16){for(E=b+2;c<E;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}if(p>>>=b,c-=b,r.have===0){e.msg="invalid bit length repeat",r.mode=De;break}S=r.lens[r.have-1],_=3+(p&3),p>>>=2,c-=2}else if(O===17){for(E=b+3;c<E;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}p>>>=b,c-=b,S=0,_=3+(p&7),p>>>=3,c-=3}else{for(E=b+7;c<E;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}p>>>=b,c-=b,S=0,_=11+(p&127),p>>>=7,c-=7}if(r.have+_>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=De;break}for(;_--;)r.lens[r.have++]=S}}if(r.mode===De)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=De;break}if(r.lenbits=9,k={bits:r.lenbits},P=gs(Zf,r.lens,0,r.nlen,r.lencode,0,r.work,k),r.lenbits=k.bits,P){e.msg="invalid literal/lengths set",r.mode=De;break}if(r.distbits=6,r.distcode=r.distdyn,k={bits:r.distbits},P=gs(Yf,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,k),r.distbits=k.bits,P){e.msg="invalid distances set",r.mode=De;break}if(r.mode=Vs,t===zs)break e;case Vs:r.mode=Gs;case Gs:if(o>=6&&f>=258){e.next_out=s,e.avail_out=f,e.next_in=n,e.avail_in=o,r.hold=p,r.bits=c,gh(e,h),s=e.next_out,a=e.output,f=e.avail_out,n=e.next_in,i=e.input,o=e.avail_in,p=r.hold,c=r.bits,r.mode===Vt&&(r.back=-1);break}for(r.back=0;g=r.lencode[p&(1<<r.lenbits)-1],b=g>>>24,R=g>>>16&255,O=g&65535,!(b<=c);){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}if(R&&!(R&240)){for(H=b,A=R,$=O;g=r.lencode[$+((p&(1<<H+A)-1)>>H)],b=g>>>24,R=g>>>16&255,O=g&65535,!(H+b<=c);){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}p>>>=H,c-=H,r.back+=H}if(p>>>=b,c-=b,r.back+=b,r.length=O,R===0){r.mode=No;break}if(R&32){r.back=-1,r.mode=Vt;break}if(R&64){e.msg="invalid literal/length code",r.mode=De;break}r.extra=R&15,r.mode=Do;case Do:if(r.extra){for(E=r.extra;c<E;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}r.length+=p&(1<<r.extra)-1,p>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=$o;case $o:for(;g=r.distcode[p&(1<<r.distbits)-1],b=g>>>24,R=g>>>16&255,O=g&65535,!(b<=c);){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}if(!(R&240)){for(H=b,A=R,$=O;g=r.distcode[$+((p&(1<<H+A)-1)>>H)],b=g>>>24,R=g>>>16&255,O=g&65535,!(H+b<=c);){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}p>>>=H,c-=H,r.back+=H}if(p>>>=b,c-=b,r.back+=b,R&64){e.msg="invalid distance code",r.mode=De;break}r.offset=O,r.extra=R&15,r.mode=Ho;case Ho:if(r.extra){for(E=r.extra;c<E;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}r.offset+=p&(1<<r.extra)-1,p>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=De;break}r.mode=Fo;case Fo:if(f===0)break e;if(_=h-f,r.offset>_){if(_=r.offset-_,_>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=De;break}_>r.wnext?(_-=r.wnext,L=r.wsize-_):L=r.wnext-_,_>r.length&&(_=r.length),y=r.window}else y=a,L=s-r.offset,_=r.length;_>f&&(_=f),f-=_,r.length-=_;do a[s++]=y[L++];while(--_);r.length===0&&(r.mode=Gs);break;case No:if(f===0)break e;a[s++]=r.length,f--,r.mode=Gs;break;case hi:if(r.wrap){for(;c<32;){if(o===0)break e;o--,p|=i[n++]<<c,c+=8}if(h-=f,e.total_out+=h,r.total+=h,h&&(e.adler=r.check=r.flags?Ht(r.check,a,h,s-h):Gi(r.check,a,h,s-h)),h=f,(r.flags?p:Wo(p))!==r.check){e.msg="incorrect data check",r.mode=De;break}p=0,c=0}r.mode=Bo;case Bo:if(r.wrap&&r.flags){for(;c<32;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}if(p!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=De;break}p=0,c=0}r.mode=jo;case jo:P=vh;break e;case De:P=Xf;break e;case ep:return Jf;case Sh:default:return Pt}return e.next_out=s,e.avail_out=f,e.next_in=n,e.avail_in=o,r.hold=p,r.bits=c,(r.wsize||h!==e.avail_out&&r.mode<De&&(r.mode<hi||t!==go))&&ip(e,e.output,e.next_out,h-e.avail_out),m-=e.avail_in,h-=e.avail_out,e.total_in+=m,e.total_out+=h,r.total+=h,r.wrap&&h&&(e.adler=r.check=r.flags?Ht(r.check,a,h,e.next_out-h):Gi(r.check,a,h,e.next_out-h)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Vt?128:0)+(r.mode===Vs||r.mode===di?256:0),(m===0&&h===0||t===go)&&P===Or&&(P=kh),P}function Ih(e){if(!e||!e.state)return Pt;var t=e.state;return t.window&&(t.window=null),e.state=null,Or}function Dh(e,t){var r;return!e||!e.state||(r=e.state,!(r.wrap&2))?Pt:(r.head=t,t.done=!1,Or)}function $h(e,t){var r=t.length,i,a,n;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==An)?Pt:i.mode===An&&(a=1,a=Gi(a,t,r,0),a!==i.check)?Xf:(n=ip(e,t,r,r),n?(i.mode=ep,Jf):(i.havedict=1,Or))}It.inflateReset=rp;It.inflateReset2=sp;It.inflateResetKeep=tp;It.inflateInit=Oh;It.inflateInit2=np;It.inflate=Rh;It.inflateEnd=Ih;It.inflateGetHeader=Dh;It.inflateSetDictionary=$h;It.inflateInfo="pako inflate (from Nodeca project)";var ap={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};function Hh(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Fh=Hh,Zr=It,ws=er,dn=Dr,Ne=ap,Zi=_a,Nh=Vf,Bh=Fh,op=Object.prototype.toString;function Lr(e){if(!(this instanceof Lr))return new Lr(e);this.options=ws.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Nh,this.strm.avail_out=0;var r=Zr.inflateInit2(this.strm,t.windowBits);if(r!==Ne.Z_OK)throw new Error(Zi[r]);if(this.header=new Bh,Zr.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=dn.string2buf(t.dictionary):op.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Zr.inflateSetDictionary(this.strm,t.dictionary),r!==Ne.Z_OK)))throw new Error(Zi[r])}Lr.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a=this.options.dictionary,n,s,o,f,p,c=!1;if(this.ended)return!1;s=t===~~t?t:t===!0?Ne.Z_FINISH:Ne.Z_NO_FLUSH,typeof e=="string"?r.input=dn.binstring2buf(e):op.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new ws.Buf8(i),r.next_out=0,r.avail_out=i),n=Zr.inflate(r,Ne.Z_NO_FLUSH),n===Ne.Z_NEED_DICT&&a&&(n=Zr.inflateSetDictionary(this.strm,a)),n===Ne.Z_BUF_ERROR&&c===!0&&(n=Ne.Z_OK,c=!1),n!==Ne.Z_STREAM_END&&n!==Ne.Z_OK)return this.onEnd(n),this.ended=!0,!1;r.next_out&&(r.avail_out===0||n===Ne.Z_STREAM_END||r.avail_in===0&&(s===Ne.Z_FINISH||s===Ne.Z_SYNC_FLUSH))&&(this.options.to==="string"?(o=dn.utf8border(r.output,r.next_out),f=r.next_out-o,p=dn.buf2string(r.output,o),r.next_out=f,r.avail_out=i-f,f&&ws.arraySet(r.output,r.output,o,f,0),this.onData(p)):this.onData(ws.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(c=!0)}while((r.avail_in>0||r.avail_out===0)&&n!==Ne.Z_STREAM_END);return n===Ne.Z_STREAM_END&&(s=Ne.Z_FINISH),s===Ne.Z_FINISH?(n=Zr.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Ne.Z_OK):(s===Ne.Z_SYNC_FLUSH&&(this.onEnd(Ne.Z_OK),r.avail_out=0),!0)};Lr.prototype.onData=function(e){this.chunks.push(e)};Lr.prototype.onEnd=function(e){e===Ne.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ws.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function wa(e,t){var r=new Lr(t);if(r.push(e,!0),r.err)throw r.msg||Zi[r.err];return r.result}function jh(e,t){return t=t||{},t.raw=!0,wa(e,t)}Fs.Inflate=Lr;Fs.inflate=wa;Fs.inflateRaw=jh;Fs.ungzip=wa;var Wh=er.assign,Uh=Ds,Mh=Fs,qh=ap,lp={};Wh(lp,Uh,Mh,qh);var Kh=lp;const fp=oa(Kh);async function zh(e,t){const r=new gf(e);let i=await r.read(4);if(i=i.toString("utf8"),i!=="PACK")throw new He(`Invalid PACK header '${i}'`);let a=await r.read(4);if(a=a.readUInt32BE(0),a!==2)throw new He(`Invalid packfile version: ${a}`);let n=await r.read(4);if(n=n.readUInt32BE(0),!(n<1))for(;!r.eof()&&n--;){const s=r.tell(),{type:o,length:f,ofs:p,reference:c}=await Vh(r),m=new fp.Inflate;for(;!m.result;){const h=await r.chunk();if(!h)break;if(m.push(h,!1),m.err)throw new He(`Pako error: ${m.msg}`);if(m.result){if(m.result.length!==f)throw new He("Inflated object size is different from that stated in packfile.");await r.undo(),await r.read(h.length-m.strm.avail_in);const _=r.tell();await t({data:m.result,type:o,num:n,offset:s,end:_,reference:c,ofs:p})}}}}async function Vh(e){let t=await e.byte();const r=t>>4&7;let i=t&15;if(t&128){let s=4;do t=await e.byte(),i|=(t&127)<<s,s+=7;while(t&128)}let a,n;if(r===6){let s=0;a=0;const o=[];do t=await e.byte(),a|=(t&127)<<s,s+=7,o.push(t);while(t&128);n=Buffer.from(o)}return r===7&&(n=await e.read(20)),{type:r,length:i,ofs:a,reference:n}}async function Gh(e){return fp.inflate(e)}var Yi={exports:{}};typeof Object.create=="function"?Yi.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Yi.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}};var Zh=Yi.exports,Xi={exports:{}},ba={},Un={};Un.byteLength=Jh;Un.toByteArray=em;Un.fromByteArray=sm;var Wt=[],xt=[],Yh=typeof Uint8Array<"u"?Uint8Array:Array,_i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Nr=0,Xh=_i.length;Nr<Xh;++Nr)Wt[Nr]=_i[Nr],xt[_i.charCodeAt(Nr)]=Nr;xt[45]=62;xt[95]=63;function pp(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function Jh(e){var t=pp(e),r=t[0],i=t[1];return(r+i)*3/4-i}function Qh(e,t,r){return(t+r)*3/4-r}function em(e){var t,r=pp(e),i=r[0],a=r[1],n=new Yh(Qh(e,i,a)),s=0,o=a>0?i-4:i,f;for(f=0;f<o;f+=4)t=xt[e.charCodeAt(f)]<<18|xt[e.charCodeAt(f+1)]<<12|xt[e.charCodeAt(f+2)]<<6|xt[e.charCodeAt(f+3)],n[s++]=t>>16&255,n[s++]=t>>8&255,n[s++]=t&255;return a===2&&(t=xt[e.charCodeAt(f)]<<2|xt[e.charCodeAt(f+1)]>>4,n[s++]=t&255),a===1&&(t=xt[e.charCodeAt(f)]<<10|xt[e.charCodeAt(f+1)]<<4|xt[e.charCodeAt(f+2)]>>2,n[s++]=t>>8&255,n[s++]=t&255),n}function tm(e){return Wt[e>>18&63]+Wt[e>>12&63]+Wt[e>>6&63]+Wt[e&63]}function rm(e,t,r){for(var i,a=[],n=t;n<r;n+=3)i=(e[n]<<16&16711680)+(e[n+1]<<8&65280)+(e[n+2]&255),a.push(tm(i));return a.join("")}function sm(e){for(var t,r=e.length,i=r%3,a=[],n=16383,s=0,o=r-i;s<o;s+=n)a.push(rm(e,s,s+n>o?o:s+n));return i===1?(t=e[r-1],a.push(Wt[t>>2]+Wt[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],a.push(Wt[t>>10]+Wt[t>>4&63]+Wt[t<<2&63]+"=")),a.join("")}var va={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */va.read=function(e,t,r,i,a){var n,s,o=a*8-i-1,f=(1<<o)-1,p=f>>1,c=-7,m=r?a-1:0,h=r?-1:1,_=e[t+m];for(m+=h,n=_&(1<<-c)-1,_>>=-c,c+=o;c>0;n=n*256+e[t+m],m+=h,c-=8);for(s=n&(1<<-c)-1,n>>=-c,c+=i;c>0;s=s*256+e[t+m],m+=h,c-=8);if(n===0)n=1-p;else{if(n===f)return s?NaN:(_?-1:1)*(1/0);s=s+Math.pow(2,i),n=n-p}return(_?-1:1)*s*Math.pow(2,n-i)};va.write=function(e,t,r,i,a,n){var s,o,f,p=n*8-a-1,c=(1<<p)-1,m=c>>1,h=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=i?0:n-1,L=i?1:-1,y=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-s))<1&&(s--,f*=2),s+m>=1?t+=h/f:t+=h*Math.pow(2,1-m),t*f>=2&&(s++,f/=2),s+m>=c?(o=0,s=c):s+m>=1?(o=(t*f-1)*Math.pow(2,a),s=s+m):(o=t*Math.pow(2,m-1)*Math.pow(2,a),s=0));a>=8;e[r+_]=o&255,_+=L,o/=256,a-=8);for(s=s<<a|o,p+=a;p>0;e[r+_]=s&255,_+=L,s/=256,p-=8);e[r+_-L]|=y*128};/*!
56
+ `)+28);return Yt(r+`
57
+ `+i)}isolateSignature(){const t=this._commit.slice(this._commit.indexOf("-----BEGIN PGP SIGNATURE-----"),this._commit.indexOf("-----END PGP SIGNATURE-----")+27);return id(t)}static async sign(t,r,i){const a=t.withoutSignature(),n=mt.justMessage(t._commit);let{signature:s}=await r({payload:a,secretKey:i});s=Yt(s);const f=mt.justHeaders(t._commit)+`
58
+ gpgsig`+ai(s)+`
59
+ `+n;return mt.from(f)}}var Pf={};/*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */(function(e){(function(t){t(typeof DO_NOT_EXPORT_CRC>"u"?e:{})})(function(t){t.version="1.2.2";function r(){for(var P=0,C=new Array(256),k=0;k!=256;++k)P=k,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,C[k]=P;return typeof Int32Array<"u"?new Int32Array(C):C}var i=r();function a(P){var C=0,k=0,E=0,D=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(E=0;E!=256;++E)D[E]=P[E];for(E=0;E!=256;++E)for(k=P[E],C=256+E;C<4096;C+=256)k=D[C]=k>>>8^P[k&255];var I=[];for(E=1;E!=16;++E)I[E-1]=typeof Int32Array<"u"?D.subarray(E*256,E*256+256):D.slice(E*256,E*256+256);return I}var n=a(i),s=n[0],o=n[1],f=n[2],p=n[3],c=n[4],m=n[5],h=n[6],_=n[7],L=n[8],y=n[9],g=n[10],b=n[11],R=n[12],O=n[13],$=n[14];function A(P,C){for(var k=C^-1,E=0,D=P.length;E<D;)k=k>>>8^i[(k^P.charCodeAt(E++))&255];return~k}function H(P,C){for(var k=C^-1,E=P.length-15,D=0;D<E;)k=$[P[D++]^k&255]^O[P[D++]^k>>8&255]^R[P[D++]^k>>16&255]^b[P[D++]^k>>>24]^g[P[D++]]^y[P[D++]]^L[P[D++]]^_[P[D++]]^h[P[D++]]^m[P[D++]]^c[P[D++]]^p[P[D++]]^f[P[D++]]^o[P[D++]]^s[P[D++]]^i[P[D++]];for(E+=15;D<E;)k=k>>>8^i[(k^P[D++])&255];return~k}function S(P,C){for(var k=C^-1,E=0,D=P.length,I=0,N=0;E<D;)I=P.charCodeAt(E++),I<128?k=k>>>8^i[(k^I)&255]:I<2048?(k=k>>>8^i[(k^(192|I>>6&31))&255],k=k>>>8^i[(k^(128|I&63))&255]):I>=55296&&I<57344?(I=(I&1023)+64,N=P.charCodeAt(E++)&1023,k=k>>>8^i[(k^(240|I>>8&7))&255],k=k>>>8^i[(k^(128|I>>2&63))&255],k=k>>>8^i[(k^(128|N>>6&15|(I&3)<<4))&255],k=k>>>8^i[(k^(128|N&63))&255]):(k=k>>>8^i[(k^(224|I>>12&15))&255],k=k>>>8^i[(k^(128|I>>6&63))&255],k=k>>>8^i[(k^(128|I&63))&255]);return~k}t.table=i,t.bstr=A,t.buf=H,t.str=S})})(Pf);const ad=pa(Pf);class od{static wrap({type:t,object:r}){return Buffer.concat([Buffer.from(`${t} ${r.byteLength.toString()}\0`),Buffer.from(r)])}static unwrap(t){const r=t.indexOf(32),i=t.indexOf(0),a=t.slice(0,r).toString("utf8"),n=t.slice(r+1,i).toString("utf8"),s=t.length-(i+1);if(parseInt(n)!==s)throw new $e(`Length mismatch: expected ${n} bytes but got ${s} instead.`);return{type:a,object:Buffer.from(t.slice(i+1))}}}class br{constructor(t){this.buffer=t,this._start=0}eof(){return this._start>=this.buffer.length}tell(){return this._start}seek(t){this._start=t}slice(t){const r=this.buffer.slice(this._start,this._start+t);return this._start+=t,r}toString(t,r){const i=this.buffer.toString(t,this._start,this._start+r);return this._start+=r,i}write(t,r,i){const a=this.buffer.write(t,this._start,r,i);return this._start+=r,a}copy(t,r,i){const a=t.copy(this.buffer,this._start,r,i);return this._start+=a,a}readUInt8(){const t=this.buffer.readUInt8(this._start);return this._start+=1,t}writeUInt8(t){const r=this.buffer.writeUInt8(t,this._start);return this._start+=1,r}readUInt16BE(){const t=this.buffer.readUInt16BE(this._start);return this._start+=2,t}writeUInt16BE(t){const r=this.buffer.writeUInt16BE(t,this._start);return this._start+=2,r}readUInt32BE(){const t=this.buffer.readUInt32BE(this._start);return this._start+=4,t}writeUInt32BE(t){const r=this.buffer.writeUInt32BE(t,this._start);return this._start+=4,r}}function ld(e,t){const r=new br(e),i=to(r);if(i!==t.byteLength)throw new $e(`applyDelta expected source buffer to be ${i} bytes but the provided buffer was ${t.length} bytes`);const a=to(r);let n;const s=so(r,t);if(s.byteLength===a)n=s;else{n=Buffer.alloc(a);const o=new br(n);for(o.copy(s);!r.eof();)o.copy(so(r,t));const f=o.tell();if(a!==f)throw new $e(`applyDelta expected target buffer to be ${a} bytes but the resulting buffer was ${f} bytes`)}return n}function to(e){let t=0,r=0,i=null;do i=e.readUInt8(),t|=(i&127)<<r,r+=7;while(i&128);return t}function ro(e,t,r){let i=0,a=0;for(;r--;)t&1&&(i|=e.readUInt8()<<a),t>>=1,a+=8;return i}function so(e,t){const r=e.readUInt8(),i=128,a=15,n=112;if(r&i){const s=ro(e,r&a,4);let o=ro(e,(r&n)>>4,3);return o===0&&(o=65536),t.slice(s,s+o)}else return e.slice(r)}var er={};(function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function r(n,s){return Object.prototype.hasOwnProperty.call(n,s)}e.assign=function(n){for(var s=Array.prototype.slice.call(arguments,1);s.length;){var o=s.shift();if(o){if(typeof o!="object")throw new TypeError(o+"must be non-object");for(var f in o)r(o,f)&&(n[f]=o[f])}}return n},e.shrinkBuf=function(n,s){return n.length===s?n:n.subarray?n.subarray(0,s):(n.length=s,n)};var i={arraySet:function(n,s,o,f,p){if(s.subarray&&n.subarray){n.set(s.subarray(o,o+f),p);return}for(var c=0;c<f;c++)n[p+c]=s[o+c]},flattenChunks:function(n){var s,o,f,p,c,m;for(f=0,s=0,o=n.length;s<o;s++)f+=n[s].length;for(m=new Uint8Array(f),p=0,s=0,o=n.length;s<o;s++)c=n[s],m.set(c,p),p+=c.length;return m}},a={arraySet:function(n,s,o,f,p){for(var c=0;c<f;c++)n[p+c]=s[o+c]},flattenChunks:function(n){return[].concat.apply([],n)}};e.setTyped=function(n){n?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,i)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(t)})(er);var Ds={},Kt={},ts={},fd=er,pd=4,no=0,io=1,cd=2;function rs(e){for(var t=e.length;--t>=0;)e[t]=0}var ud=0,Af=1,dd=2,hd=3,md=258,ya=29,Hs=256,vs=Hs+1+ya,Vr=30,_a=19,Tf=2*vs+1,xr=15,oi=16,yd=7,ga=256,Cf=16,Of=17,Lf=18,Ki=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],fn=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],_d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Rf=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],gd=512,Xt=new Array((vs+2)*2);rs(Xt);var ms=new Array(Vr*2);rs(ms);var xs=new Array(gd);rs(xs);var ks=new Array(md-hd+1);rs(ks);var wa=new Array(ya);rs(wa);var Pn=new Array(Vr);rs(Pn);function li(e,t,r,i,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=i,this.max_length=a,this.has_stree=e&&e.length}var If,Df,Hf;function fi(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function $f(e){return e<256?xs[e]:xs[256+(e>>>7)]}function Ss(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function pt(e,t,r){e.bi_valid>oi-r?(e.bi_buf|=t<<e.bi_valid&65535,Ss(e,e.bi_buf),e.bi_buf=t>>oi-e.bi_valid,e.bi_valid+=r-oi):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function jt(e,t,r){pt(e,r[t*2],r[t*2+1])}function Ff(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function wd(e){e.bi_valid===16?(Ss(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function bd(e,t){var r=t.dyn_tree,i=t.max_code,a=t.stat_desc.static_tree,n=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,o=t.stat_desc.extra_base,f=t.stat_desc.max_length,p,c,m,h,_,L,y=0;for(h=0;h<=xr;h++)e.bl_count[h]=0;for(r[e.heap[e.heap_max]*2+1]=0,p=e.heap_max+1;p<Tf;p++)c=e.heap[p],h=r[r[c*2+1]*2+1]+1,h>f&&(h=f,y++),r[c*2+1]=h,!(c>i)&&(e.bl_count[h]++,_=0,c>=o&&(_=s[c-o]),L=r[c*2],e.opt_len+=L*(h+_),n&&(e.static_len+=L*(a[c*2+1]+_)));if(y!==0){do{for(h=f-1;e.bl_count[h]===0;)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[f]--,y-=2}while(y>0);for(h=f;h!==0;h--)for(c=e.bl_count[h];c!==0;)m=e.heap[--p],!(m>i)&&(r[m*2+1]!==h&&(e.opt_len+=(h-r[m*2+1])*r[m*2],r[m*2+1]=h),c--)}}function Bf(e,t,r){var i=new Array(xr+1),a=0,n,s;for(n=1;n<=xr;n++)i[n]=a=a+r[n-1]<<1;for(s=0;s<=t;s++){var o=e[s*2+1];o!==0&&(e[s*2]=Ff(i[o]++,o))}}function vd(){var e,t,r,i,a,n=new Array(xr+1);for(r=0,i=0;i<ya-1;i++)for(wa[i]=r,e=0;e<1<<Ki[i];e++)ks[r++]=i;for(ks[r-1]=i,a=0,i=0;i<16;i++)for(Pn[i]=a,e=0;e<1<<fn[i];e++)xs[a++]=i;for(a>>=7;i<Vr;i++)for(Pn[i]=a<<7,e=0;e<1<<fn[i]-7;e++)xs[256+a++]=i;for(t=0;t<=xr;t++)n[t]=0;for(e=0;e<=143;)Xt[e*2+1]=8,e++,n[8]++;for(;e<=255;)Xt[e*2+1]=9,e++,n[9]++;for(;e<=279;)Xt[e*2+1]=7,e++,n[7]++;for(;e<=287;)Xt[e*2+1]=8,e++,n[8]++;for(Bf(Xt,vs+1,n),e=0;e<Vr;e++)ms[e*2+1]=5,ms[e*2]=Ff(e,5);If=new li(Xt,Ki,Hs+1,vs,xr),Df=new li(ms,fn,0,Vr,xr),Hf=new li(new Array(0),_d,0,_a,yd)}function Nf(e){var t;for(t=0;t<vs;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Vr;t++)e.dyn_dtree[t*2]=0;for(t=0;t<_a;t++)e.bl_tree[t*2]=0;e.dyn_ltree[ga*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function jf(e){e.bi_valid>8?Ss(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function xd(e,t,r,i){jf(e),Ss(e,r),Ss(e,~r),fd.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function ao(e,t,r,i){var a=t*2,n=r*2;return e[a]<e[n]||e[a]===e[n]&&i[t]<=i[r]}function pi(e,t,r){for(var i=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&ao(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!ao(t,i,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=i}function oo(e,t,r){var i,a,n=0,s,o;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+n*2]<<8|e.pending_buf[e.d_buf+n*2+1],a=e.pending_buf[e.l_buf+n],n++,i===0?jt(e,a,t):(s=ks[a],jt(e,s+Hs+1,t),o=Ki[s],o!==0&&(a-=wa[s],pt(e,a,o)),i--,s=$f(i),jt(e,s,r),o=fn[s],o!==0&&(i-=Pn[s],pt(e,i,o)));while(n<e.last_lit);jt(e,ga,t)}function zi(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,n=t.stat_desc.elems,s,o,f=-1,p;for(e.heap_len=0,e.heap_max=Tf,s=0;s<n;s++)r[s*2]!==0?(e.heap[++e.heap_len]=f=s,e.depth[s]=0):r[s*2+1]=0;for(;e.heap_len<2;)p=e.heap[++e.heap_len]=f<2?++f:0,r[p*2]=1,e.depth[p]=0,e.opt_len--,a&&(e.static_len-=i[p*2+1]);for(t.max_code=f,s=e.heap_len>>1;s>=1;s--)pi(e,r,s);p=n;do s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],pi(e,r,1),o=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=o,r[p*2]=r[s*2]+r[o*2],e.depth[p]=(e.depth[s]>=e.depth[o]?e.depth[s]:e.depth[o])+1,r[s*2+1]=r[o*2+1]=p,e.heap[1]=p++,pi(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],bd(e,t),Bf(r,f,e.bl_count)}function lo(e,t,r){var i,a=-1,n,s=t[0*2+1],o=0,f=7,p=4;for(s===0&&(f=138,p=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)n=s,s=t[(i+1)*2+1],!(++o<f&&n===s)&&(o<p?e.bl_tree[n*2]+=o:n!==0?(n!==a&&e.bl_tree[n*2]++,e.bl_tree[Cf*2]++):o<=10?e.bl_tree[Of*2]++:e.bl_tree[Lf*2]++,o=0,a=n,s===0?(f=138,p=3):n===s?(f=6,p=3):(f=7,p=4))}function fo(e,t,r){var i,a=-1,n,s=t[0*2+1],o=0,f=7,p=4;for(s===0&&(f=138,p=3),i=0;i<=r;i++)if(n=s,s=t[(i+1)*2+1],!(++o<f&&n===s)){if(o<p)do jt(e,n,e.bl_tree);while(--o!==0);else n!==0?(n!==a&&(jt(e,n,e.bl_tree),o--),jt(e,Cf,e.bl_tree),pt(e,o-3,2)):o<=10?(jt(e,Of,e.bl_tree),pt(e,o-3,3)):(jt(e,Lf,e.bl_tree),pt(e,o-11,7));o=0,a=n,s===0?(f=138,p=3):n===s?(f=6,p=3):(f=7,p=4)}}function kd(e){var t;for(lo(e,e.dyn_ltree,e.l_desc.max_code),lo(e,e.dyn_dtree,e.d_desc.max_code),zi(e,e.bl_desc),t=_a-1;t>=3&&e.bl_tree[Rf[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function Sd(e,t,r,i){var a;for(pt(e,t-257,5),pt(e,r-1,5),pt(e,i-4,4),a=0;a<i;a++)pt(e,e.bl_tree[Rf[a]*2+1],3);fo(e,e.dyn_ltree,t-1),fo(e,e.dyn_dtree,r-1)}function Ed(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return no;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return io;for(r=32;r<Hs;r++)if(e.dyn_ltree[r*2]!==0)return io;return no}var po=!1;function Pd(e){po||(vd(),po=!0),e.l_desc=new fi(e.dyn_ltree,If),e.d_desc=new fi(e.dyn_dtree,Df),e.bl_desc=new fi(e.bl_tree,Hf),e.bi_buf=0,e.bi_valid=0,Nf(e)}function Uf(e,t,r,i){pt(e,(ud<<1)+(i?1:0),3),xd(e,t,r)}function Ad(e){pt(e,Af<<1,3),jt(e,ga,Xt),wd(e)}function Td(e,t,r,i){var a,n,s=0;e.level>0?(e.strm.data_type===cd&&(e.strm.data_type=Ed(e)),zi(e,e.l_desc),zi(e,e.d_desc),s=kd(e),a=e.opt_len+3+7>>>3,n=e.static_len+3+7>>>3,n<=a&&(a=n)):a=n=r+5,r+4<=a&&t!==-1?Uf(e,t,r,i):e.strategy===pd||n===a?(pt(e,(Af<<1)+(i?1:0),3),oo(e,Xt,ms)):(pt(e,(dd<<1)+(i?1:0),3),Sd(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),oo(e,e.dyn_ltree,e.dyn_dtree)),Nf(e),i&&jf(e)}function Cd(e,t,r){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=r&255,e.last_lit++,t===0?e.dyn_ltree[r*2]++:(e.matches++,t--,e.dyn_ltree[(ks[r]+Hs+1)*2]++,e.dyn_dtree[$f(t)*2]++),e.last_lit===e.lit_bufsize-1}ts._tr_init=Pd;ts._tr_stored_block=Uf;ts._tr_flush_block=Td;ts._tr_tally=Cd;ts._tr_align=Ad;function Od(e,t,r,i){for(var a=e&65535|0,n=e>>>16&65535|0,s=0;r!==0;){s=r>2e3?2e3:r,r-=s;do a=a+t[i++]|0,n=n+a|0;while(--s);a%=65521,n%=65521}return a|n<<16|0}var Wf=Od;function Ld(){for(var e,t=[],r=0;r<256;r++){e=r;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t}var Rd=Ld();function Id(e,t,r,i){var a=Rd,n=i+r;e^=-1;for(var s=i;s<n;s++)e=e>>>8^a[(e^t[s])&255];return e^-1}var Mf=Id,ba={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},st=er,St=ts,qf=Wf,ar=Mf,Dd=ba,Ir=0,Hd=1,$d=3,mr=4,co=5,Ut=0,uo=1,Et=-2,Fd=-3,ci=-5,Bd=-1,Nd=1,qs=2,jd=3,Ud=4,Wd=0,Md=2,Nn=8,qd=9,Kd=15,zd=8,Vd=29,Gd=256,Vi=Gd+1+Vd,Zd=30,Yd=19,Xd=2*Vi+1,Jd=15,ye=3,dr=258,Rt=dr+ye+1,Qd=32,jn=42,Gi=69,pn=73,cn=91,un=103,kr=113,us=666,Me=1,$s=2,Ar=3,ss=4,eh=3;function hr(e,t){return e.msg=Dd[t],t}function ho(e){return(e<<1)-(e>4?9:0)}function ur(e){for(var t=e.length;--t>=0;)e[t]=0}function or(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(st.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,t.pending===0&&(t.pending_out=0))}function Xe(e,t){St._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,or(e.strm)}function xe(e,t){e.pending_buf[e.pending++]=t}function as(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function th(e,t,r,i){var a=e.avail_in;return a>i&&(a=i),a===0?0:(e.avail_in-=a,st.arraySet(t,e.input,e.next_in,a,r),e.state.wrap===1?e.adler=qf(e.adler,t,a,r):e.state.wrap===2&&(e.adler=ar(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)}function Kf(e,t){var r=e.max_chain_length,i=e.strstart,a,n,s=e.prev_length,o=e.nice_match,f=e.strstart>e.w_size-Rt?e.strstart-(e.w_size-Rt):0,p=e.window,c=e.w_mask,m=e.prev,h=e.strstart+dr,_=p[i+s-1],L=p[i+s];e.prev_length>=e.good_match&&(r>>=2),o>e.lookahead&&(o=e.lookahead);do if(a=t,!(p[a+s]!==L||p[a+s-1]!==_||p[a]!==p[i]||p[++a]!==p[i+1])){i+=2,a++;do;while(p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&p[++i]===p[++a]&&i<h);if(n=dr-(h-i),i=h-dr,n>s){if(e.match_start=t,s=n,n>=o)break;_=p[i+s-1],L=p[i+s]}}while((t=m[t&c])>f&&--r!==0);return s<=e.lookahead?s:e.lookahead}function Tr(e){var t=e.w_size,r,i,a,n,s;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Rt)){st.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,i=e.hash_size,r=i;do a=e.head[--r],e.head[r]=a>=t?a-t:0;while(--i);i=t,r=i;do a=e.prev[--r],e.prev[r]=a>=t?a-t:0;while(--i);n+=t}if(e.strm.avail_in===0)break;if(i=th(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=i,e.lookahead+e.insert>=ye)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+ye-1])&e.hash_mask,e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert<ye)););}while(e.lookahead<Rt&&e.strm.avail_in!==0)}function rh(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Tr(e),e.lookahead===0&&t===Ir)return Me;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var i=e.block_start+r;if((e.strstart===0||e.strstart>=i)&&(e.lookahead=e.strstart-i,e.strstart=i,Xe(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-Rt&&(Xe(e,!1),e.strm.avail_out===0))return Me}return e.insert=0,t===mr?(Xe(e,!0),e.strm.avail_out===0?Ar:ss):(e.strstart>e.block_start&&(Xe(e,!1),e.strm.avail_out===0),Me)}function ui(e,t){for(var r,i;;){if(e.lookahead<Rt){if(Tr(e),e.lookahead<Rt&&t===Ir)return Me;if(e.lookahead===0)break}if(r=0,e.lookahead>=ye&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ye-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),r!==0&&e.strstart-r<=e.w_size-Rt&&(e.match_length=Kf(e,r)),e.match_length>=ye)if(i=St._tr_tally(e,e.strstart-e.match_start,e.match_length-ye),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ye){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ye-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else i=St._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Xe(e,!1),e.strm.avail_out===0))return Me}return e.insert=e.strstart<ye-1?e.strstart:ye-1,t===mr?(Xe(e,!0),e.strm.avail_out===0?Ar:ss):e.last_lit&&(Xe(e,!1),e.strm.avail_out===0)?Me:$s}function $r(e,t){for(var r,i,a;;){if(e.lookahead<Rt){if(Tr(e),e.lookahead<Rt&&t===Ir)return Me;if(e.lookahead===0)break}if(r=0,e.lookahead>=ye&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ye-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=ye-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-Rt&&(e.match_length=Kf(e,r),e.match_length<=5&&(e.strategy===Nd||e.match_length===ye&&e.strstart-e.match_start>4096)&&(e.match_length=ye-1)),e.prev_length>=ye&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-ye,i=St._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-ye),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ye-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=ye-1,e.strstart++,i&&(Xe(e,!1),e.strm.avail_out===0))return Me}else if(e.match_available){if(i=St._tr_tally(e,0,e.window[e.strstart-1]),i&&Xe(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Me}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=St._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<ye-1?e.strstart:ye-1,t===mr?(Xe(e,!0),e.strm.avail_out===0?Ar:ss):e.last_lit&&(Xe(e,!1),e.strm.avail_out===0)?Me:$s}function sh(e,t){for(var r,i,a,n,s=e.window;;){if(e.lookahead<=dr){if(Tr(e),e.lookahead<=dr&&t===Ir)return Me;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=ye&&e.strstart>0&&(a=e.strstart-1,i=s[a],i===s[++a]&&i===s[++a]&&i===s[++a])){n=e.strstart+dr;do;while(i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&a<n);e.match_length=dr-(n-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ye?(r=St._tr_tally(e,1,e.match_length-ye),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=St._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Xe(e,!1),e.strm.avail_out===0))return Me}return e.insert=0,t===mr?(Xe(e,!0),e.strm.avail_out===0?Ar:ss):e.last_lit&&(Xe(e,!1),e.strm.avail_out===0)?Me:$s}function nh(e,t){for(var r;;){if(e.lookahead===0&&(Tr(e),e.lookahead===0)){if(t===Ir)return Me;break}if(e.match_length=0,r=St._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Xe(e,!1),e.strm.avail_out===0))return Me}return e.insert=0,t===mr?(Xe(e,!0),e.strm.avail_out===0?Ar:ss):e.last_lit&&(Xe(e,!1),e.strm.avail_out===0)?Me:$s}function Ht(e,t,r,i,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=i,this.func=a}var qr;qr=[new Ht(0,0,0,0,rh),new Ht(4,4,8,4,ui),new Ht(4,5,16,8,ui),new Ht(4,6,32,32,ui),new Ht(4,4,16,16,$r),new Ht(8,16,32,32,$r),new Ht(8,16,128,128,$r),new Ht(8,32,128,256,$r),new Ht(32,128,258,1024,$r),new Ht(32,258,258,4096,$r)];function ih(e){e.window_size=2*e.w_size,ur(e.head),e.max_lazy_match=qr[e.level].max_lazy,e.good_match=qr[e.level].good_length,e.nice_match=qr[e.level].nice_length,e.max_chain_length=qr[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ye-1,e.match_available=0,e.ins_h=0}function ah(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Nn,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new st.Buf16(Xd*2),this.dyn_dtree=new st.Buf16((2*Zd+1)*2),this.bl_tree=new st.Buf16((2*Yd+1)*2),ur(this.dyn_ltree),ur(this.dyn_dtree),ur(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new st.Buf16(Jd+1),this.heap=new st.Buf16(2*Vi+1),ur(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new st.Buf16(2*Vi+1),ur(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function zf(e){var t;return!e||!e.state?hr(e,Et):(e.total_in=e.total_out=0,e.data_type=Md,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?jn:kr,e.adler=t.wrap===2?0:1,t.last_flush=Ir,St._tr_init(t),Ut)}function Vf(e){var t=zf(e);return t===Ut&&ih(e.state),t}function oh(e,t){return!e||!e.state||e.state.wrap!==2?Et:(e.state.gzhead=t,Ut)}function Gf(e,t,r,i,a,n){if(!e)return Et;var s=1;if(t===Bd&&(t=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),a<1||a>qd||r!==Nn||i<8||i>15||t<0||t>9||n<0||n>Ud)return hr(e,Et);i===8&&(i=9);var o=new ah;return e.state=o,o.strm=e,o.wrap=s,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=a+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+ye-1)/ye),o.window=new st.Buf8(o.w_size*2),o.head=new st.Buf16(o.hash_size),o.prev=new st.Buf16(o.w_size),o.lit_bufsize=1<<a+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new st.Buf8(o.pending_buf_size),o.d_buf=1*o.lit_bufsize,o.l_buf=3*o.lit_bufsize,o.level=t,o.strategy=n,o.method=r,Vf(e)}function lh(e,t){return Gf(e,t,Nn,Kd,zd,Wd)}function fh(e,t){var r,i,a,n;if(!e||!e.state||t>co||t<0)return e?hr(e,Et):Et;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===us&&t!==mr)return hr(e,e.avail_out===0?ci:Et);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===jn)if(i.wrap===2)e.adler=0,xe(i,31),xe(i,139),xe(i,8),i.gzhead?(xe(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),xe(i,i.gzhead.time&255),xe(i,i.gzhead.time>>8&255),xe(i,i.gzhead.time>>16&255),xe(i,i.gzhead.time>>24&255),xe(i,i.level===9?2:i.strategy>=qs||i.level<2?4:0),xe(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(xe(i,i.gzhead.extra.length&255),xe(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=ar(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Gi):(xe(i,0),xe(i,0),xe(i,0),xe(i,0),xe(i,0),xe(i,i.level===9?2:i.strategy>=qs||i.level<2?4:0),xe(i,eh),i.status=kr);else{var s=Nn+(i.w_bits-8<<4)<<8,o=-1;i.strategy>=qs||i.level<2?o=0:i.level<6?o=1:i.level===6?o=2:o=3,s|=o<<6,i.strstart!==0&&(s|=Qd),s+=31-s%31,i.status=kr,as(i,s),i.strstart!==0&&(as(i,e.adler>>>16),as(i,e.adler&65535)),e.adler=1}if(i.status===Gi)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(i.gzhead.extra.length&65535)&&!(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=ar(e.adler,i.pending_buf,i.pending-a,a)),or(e),a=i.pending,i.pending===i.pending_buf_size));)xe(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=ar(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=pn)}else i.status=pn;if(i.status===pn)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=ar(e.adler,i.pending_buf,i.pending-a,a)),or(e),a=i.pending,i.pending===i.pending_buf_size)){n=1;break}i.gzindex<i.gzhead.name.length?n=i.gzhead.name.charCodeAt(i.gzindex++)&255:n=0,xe(i,n)}while(n!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=ar(e.adler,i.pending_buf,i.pending-a,a)),n===0&&(i.gzindex=0,i.status=cn)}else i.status=cn;if(i.status===cn)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=ar(e.adler,i.pending_buf,i.pending-a,a)),or(e),a=i.pending,i.pending===i.pending_buf_size)){n=1;break}i.gzindex<i.gzhead.comment.length?n=i.gzhead.comment.charCodeAt(i.gzindex++)&255:n=0,xe(i,n)}while(n!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=ar(e.adler,i.pending_buf,i.pending-a,a)),n===0&&(i.status=un)}else i.status=un;if(i.status===un&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&or(e),i.pending+2<=i.pending_buf_size&&(xe(i,e.adler&255),xe(i,e.adler>>8&255),e.adler=0,i.status=kr)):i.status=kr),i.pending!==0){if(or(e),e.avail_out===0)return i.last_flush=-1,Ut}else if(e.avail_in===0&&ho(t)<=ho(r)&&t!==mr)return hr(e,ci);if(i.status===us&&e.avail_in!==0)return hr(e,ci);if(e.avail_in!==0||i.lookahead!==0||t!==Ir&&i.status!==us){var f=i.strategy===qs?nh(i,t):i.strategy===jd?sh(i,t):qr[i.level].func(i,t);if((f===Ar||f===ss)&&(i.status=us),f===Me||f===Ar)return e.avail_out===0&&(i.last_flush=-1),Ut;if(f===$s&&(t===Hd?St._tr_align(i):t!==co&&(St._tr_stored_block(i,0,0,!1),t===$d&&(ur(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),or(e),e.avail_out===0))return i.last_flush=-1,Ut}return t!==mr?Ut:i.wrap<=0?uo:(i.wrap===2?(xe(i,e.adler&255),xe(i,e.adler>>8&255),xe(i,e.adler>>16&255),xe(i,e.adler>>24&255),xe(i,e.total_in&255),xe(i,e.total_in>>8&255),xe(i,e.total_in>>16&255),xe(i,e.total_in>>24&255)):(as(i,e.adler>>>16),as(i,e.adler&65535)),or(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Ut:uo)}function ph(e){var t;return!e||!e.state?Et:(t=e.state.status,t!==jn&&t!==Gi&&t!==pn&&t!==cn&&t!==un&&t!==kr&&t!==us?hr(e,Et):(e.state=null,t===kr?hr(e,Fd):Ut))}function ch(e,t){var r=t.length,i,a,n,s,o,f,p,c;if(!e||!e.state||(i=e.state,s=i.wrap,s===2||s===1&&i.status!==jn||i.lookahead))return Et;for(s===1&&(e.adler=qf(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(s===0&&(ur(i.head),i.strstart=0,i.block_start=0,i.insert=0),c=new st.Buf8(i.w_size),st.arraySet(c,t,r-i.w_size,i.w_size,0),t=c,r=i.w_size),o=e.avail_in,f=e.next_in,p=e.input,e.avail_in=r,e.next_in=0,e.input=t,Tr(i);i.lookahead>=ye;){a=i.strstart,n=i.lookahead-(ye-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[a+ye-1])&i.hash_mask,i.prev[a&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=a,a++;while(--n);i.strstart=a,i.lookahead=ye-1,Tr(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=ye-1,i.match_available=0,e.next_in=f,e.input=p,e.avail_in=o,i.wrap=s,Ut}Kt.deflateInit=lh;Kt.deflateInit2=Gf;Kt.deflateReset=Vf;Kt.deflateResetKeep=zf;Kt.deflateSetHeader=oh;Kt.deflate=fh;Kt.deflateEnd=ph;Kt.deflateSetDictionary=ch;Kt.deflateInfo="pako deflate (from Nodeca project)";var Dr={},Un=er,Zf=!0,Yf=!0;try{String.fromCharCode.apply(null,[0])}catch{Zf=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Yf=!1}var Es=new Un.Buf8(256);for(var rr=0;rr<256;rr++)Es[rr]=rr>=252?6:rr>=248?5:rr>=240?4:rr>=224?3:rr>=192?2:1;Es[254]=Es[254]=1;Dr.string2buf=function(e){var t,r,i,a,n,s=e.length,o=0;for(a=0;a<s;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<s&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),o+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Un.Buf8(o),n=0,a=0;n<o;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<s&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?t[n++]=r:r<2048?(t[n++]=192|r>>>6,t[n++]=128|r&63):r<65536?(t[n++]=224|r>>>12,t[n++]=128|r>>>6&63,t[n++]=128|r&63):(t[n++]=240|r>>>18,t[n++]=128|r>>>12&63,t[n++]=128|r>>>6&63,t[n++]=128|r&63);return t};function Xf(e,t){if(t<65534&&(e.subarray&&Yf||!e.subarray&&Zf))return String.fromCharCode.apply(null,Un.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}Dr.buf2binstring=function(e){return Xf(e,e.length)};Dr.binstring2buf=function(e){for(var t=new Un.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};Dr.buf2string=function(e,t){var r,i,a,n,s=t||e.length,o=new Array(s*2);for(i=0,r=0;r<s;){if(a=e[r++],a<128){o[i++]=a;continue}if(n=Es[a],n>4){o[i++]=65533,r+=n-1;continue}for(a&=n===2?31:n===3?15:7;n>1&&r<s;)a=a<<6|e[r++]&63,n--;if(n>1){o[i++]=65533;continue}a<65536?o[i++]=a:(a-=65536,o[i++]=55296|a>>10&1023,o[i++]=56320|a&1023)}return Xf(o,i)};Dr.utf8border=function(e,t){var r;for(t=t||e.length,t>e.length&&(t=e.length),r=t-1;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+Es[e[r]]>t?r:t};function uh(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Jf=uh,ys=Kt,_s=er,Zi=Dr,Yi=ba,dh=Jf,Qf=Object.prototype.toString,hh=0,di=4,Gr=0,mo=1,yo=2,mh=-1,yh=0,_h=8;function Cr(e){if(!(this instanceof Cr))return new Cr(e);this.options=_s.assign({level:mh,method:_h,chunkSize:16384,windowBits:15,memLevel:8,strategy:yh,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new dh,this.strm.avail_out=0;var r=ys.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==Gr)throw new Error(Yi[r]);if(t.header&&ys.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=Zi.string2buf(t.dictionary):Qf.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=ys.deflateSetDictionary(this.strm,i),r!==Gr)throw new Error(Yi[r]);this._dict_set=!0}}Cr.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a,n;if(this.ended)return!1;n=t===~~t?t:t===!0?di:hh,typeof e=="string"?r.input=Zi.string2buf(e):Qf.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new _s.Buf8(i),r.next_out=0,r.avail_out=i),a=ys.deflate(r,n),a!==mo&&a!==Gr)return this.onEnd(a),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(n===di||n===yo))&&(this.options.to==="string"?this.onData(Zi.buf2binstring(_s.shrinkBuf(r.output,r.next_out))):this.onData(_s.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&a!==mo);return n===di?(a=ys.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Gr):(n===yo&&(this.onEnd(Gr),r.avail_out=0),!0)};Cr.prototype.onData=function(e){this.chunks.push(e)};Cr.prototype.onEnd=function(e){e===Gr&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=_s.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function va(e,t){var r=new Cr(t);if(r.push(e,!0),r.err)throw r.msg||Yi[r.err];return r.result}function gh(e,t){return t=t||{},t.raw=!0,va(e,t)}function wh(e,t){return t=t||{},t.gzip=!0,va(e,t)}Ds.Deflate=Cr;Ds.deflate=va;Ds.deflateRaw=gh;Ds.gzip=wh;var Fs={},It={},Ks=30,bh=12,vh=function(t,r){var i,a,n,s,o,f,p,c,m,h,_,L,y,g,b,R,O,$,A,H,S,P,C,k,E;i=t.state,a=t.next_in,k=t.input,n=a+(t.avail_in-5),s=t.next_out,E=t.output,o=s-(r-t.avail_out),f=s+(t.avail_out-257),p=i.dmax,c=i.wsize,m=i.whave,h=i.wnext,_=i.window,L=i.hold,y=i.bits,g=i.lencode,b=i.distcode,R=(1<<i.lenbits)-1,O=(1<<i.distbits)-1;e:do{y<15&&(L+=k[a++]<<y,y+=8,L+=k[a++]<<y,y+=8),$=g[L&R];t:for(;;){if(A=$>>>24,L>>>=A,y-=A,A=$>>>16&255,A===0)E[s++]=$&65535;else if(A&16){H=$&65535,A&=15,A&&(y<A&&(L+=k[a++]<<y,y+=8),H+=L&(1<<A)-1,L>>>=A,y-=A),y<15&&(L+=k[a++]<<y,y+=8,L+=k[a++]<<y,y+=8),$=b[L&O];r:for(;;){if(A=$>>>24,L>>>=A,y-=A,A=$>>>16&255,A&16){if(S=$&65535,A&=15,y<A&&(L+=k[a++]<<y,y+=8,y<A&&(L+=k[a++]<<y,y+=8)),S+=L&(1<<A)-1,S>p){t.msg="invalid distance too far back",i.mode=Ks;break e}if(L>>>=A,y-=A,A=s-o,S>A){if(A=S-A,A>m&&i.sane){t.msg="invalid distance too far back",i.mode=Ks;break e}if(P=0,C=_,h===0){if(P+=c-A,A<H){H-=A;do E[s++]=_[P++];while(--A);P=s-S,C=E}}else if(h<A){if(P+=c+h-A,A-=h,A<H){H-=A;do E[s++]=_[P++];while(--A);if(P=0,h<H){A=h,H-=A;do E[s++]=_[P++];while(--A);P=s-S,C=E}}}else if(P+=h-A,A<H){H-=A;do E[s++]=_[P++];while(--A);P=s-S,C=E}for(;H>2;)E[s++]=C[P++],E[s++]=C[P++],E[s++]=C[P++],H-=3;H&&(E[s++]=C[P++],H>1&&(E[s++]=C[P++]))}else{P=s-S;do E[s++]=E[P++],E[s++]=E[P++],E[s++]=E[P++],H-=3;while(H>2);H&&(E[s++]=E[P++],H>1&&(E[s++]=E[P++]))}}else if(A&64){t.msg="invalid distance code",i.mode=Ks;break e}else{$=b[($&65535)+(L&(1<<A)-1)];continue r}break}}else if(A&64)if(A&32){i.mode=bh;break e}else{t.msg="invalid literal/length code",i.mode=Ks;break e}else{$=g[($&65535)+(L&(1<<A)-1)];continue t}break}}while(a<n&&s<f);H=y>>3,a-=H,y-=H<<3,L&=(1<<y)-1,t.next_in=a,t.next_out=s,t.avail_in=a<n?5+(n-a):5-(a-n),t.avail_out=s<f?257+(f-s):257-(s-f),i.hold=L,i.bits=y},_o=er,Fr=15,go=852,wo=592,bo=0,hi=1,vo=2,xh=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],kh=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Sh=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Eh=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64],Ph=function(t,r,i,a,n,s,o,f){var p=f.bits,c=0,m=0,h=0,_=0,L=0,y=0,g=0,b=0,R=0,O=0,$,A,H,S,P,C=null,k=0,E,D=new _o.Buf16(Fr+1),I=new _o.Buf16(Fr+1),N=null,U=0,M,Z,z;for(c=0;c<=Fr;c++)D[c]=0;for(m=0;m<a;m++)D[r[i+m]]++;for(L=p,_=Fr;_>=1&&D[_]===0;_--);if(L>_&&(L=_),_===0)return n[s++]=1<<24|64<<16|0,n[s++]=1<<24|64<<16|0,f.bits=1,0;for(h=1;h<_&&D[h]===0;h++);for(L<h&&(L=h),b=1,c=1;c<=Fr;c++)if(b<<=1,b-=D[c],b<0)return-1;if(b>0&&(t===bo||_!==1))return-1;for(I[1]=0,c=1;c<Fr;c++)I[c+1]=I[c]+D[c];for(m=0;m<a;m++)r[i+m]!==0&&(o[I[r[i+m]]++]=m);if(t===bo?(C=N=o,E=19):t===hi?(C=xh,k-=257,N=kh,U-=257,E=256):(C=Sh,N=Eh,E=-1),O=0,m=0,c=h,P=s,y=L,g=0,H=-1,R=1<<L,S=R-1,t===hi&&R>go||t===vo&&R>wo)return 1;for(;;){M=c-g,o[m]<E?(Z=0,z=o[m]):o[m]>E?(Z=N[U+o[m]],z=C[k+o[m]]):(Z=96,z=0),$=1<<c-g,A=1<<y,h=A;do A-=$,n[P+(O>>g)+A]=M<<24|Z<<16|z|0;while(A!==0);for($=1<<c-1;O&$;)$>>=1;if($!==0?(O&=$-1,O+=$):O=0,m++,--D[c]===0){if(c===_)break;c=r[i+o[m]]}if(c>L&&(O&S)!==H){for(g===0&&(g=L),P+=h,y=c-g,b=1<<y;y+g<_&&(b-=D[y+g],!(b<=0));)y++,b<<=1;if(R+=1<<y,t===hi&&R>go||t===vo&&R>wo)return 1;H=O&S,n[H]=L<<24|y<<16|P-s|0}}return O!==0&&(n[P+O]=c-g<<24|64<<16|0),f.bits=L,0},wt=er,Xi=Wf,$t=Mf,Ah=vh,gs=Ph,Th=0,ep=1,tp=2,xo=4,Ch=5,zs=6,Or=0,Oh=1,Lh=2,Pt=-2,rp=-3,sp=-4,Rh=-5,ko=8,np=1,So=2,Eo=3,Po=4,Ao=5,To=6,Co=7,Oo=8,Lo=9,Ro=10,An=11,Gt=12,mi=13,Io=14,yi=15,Do=16,Ho=17,$o=18,Fo=19,Vs=20,Gs=21,Bo=22,No=23,jo=24,Uo=25,Wo=26,_i=27,Mo=28,qo=29,De=30,ip=31,Ih=32,Dh=852,Hh=592,$h=15,Fh=$h;function Ko(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function Bh(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new wt.Buf16(320),this.work=new wt.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ap(e){var t;return!e||!e.state?Pt:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=np,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new wt.Buf32(Dh),t.distcode=t.distdyn=new wt.Buf32(Hh),t.sane=1,t.back=-1,Or)}function op(e){var t;return!e||!e.state?Pt:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,ap(e))}function lp(e,t){var r,i;return!e||!e.state||(i=e.state,t<0?(r=0,t=-t):(r=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?Pt:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,op(e))}function fp(e,t){var r,i;return e?(i=new Bh,e.state=i,i.window=null,r=lp(e,t),r!==Or&&(e.state=null),r):Pt}function Nh(e){return fp(e,Fh)}var zo=!0,gi,wi;function jh(e){if(zo){var t;for(gi=new wt.Buf32(512),wi=new wt.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(gs(ep,e.lens,0,288,gi,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;gs(tp,e.lens,0,32,wi,0,e.work,{bits:5}),zo=!1}e.lencode=gi,e.lenbits=9,e.distcode=wi,e.distbits=5}function pp(e,t,r,i){var a,n=e.state;return n.window===null&&(n.wsize=1<<n.wbits,n.wnext=0,n.whave=0,n.window=new wt.Buf8(n.wsize)),i>=n.wsize?(wt.arraySet(n.window,t,r-n.wsize,n.wsize,0),n.wnext=0,n.whave=n.wsize):(a=n.wsize-n.wnext,a>i&&(a=i),wt.arraySet(n.window,t,r-i,a,n.wnext),i-=a,i?(wt.arraySet(n.window,t,r-i,i,0),n.wnext=i,n.whave=n.wsize):(n.wnext+=a,n.wnext===n.wsize&&(n.wnext=0),n.whave<n.wsize&&(n.whave+=a))),0}function Uh(e,t){var r,i,a,n,s,o,f,p,c,m,h,_,L,y,g=0,b,R,O,$,A,H,S,P,C=new wt.Buf8(4),k,E,D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return Pt;r=e.state,r.mode===Gt&&(r.mode=mi),s=e.next_out,a=e.output,f=e.avail_out,n=e.next_in,i=e.input,o=e.avail_in,p=r.hold,c=r.bits,m=o,h=f,P=Or;e:for(;;)switch(r.mode){case np:if(r.wrap===0){r.mode=mi;break}for(;c<16;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}if(r.wrap&2&&p===35615){r.check=0,C[0]=p&255,C[1]=p>>>8&255,r.check=$t(r.check,C,2,0),p=0,c=0,r.mode=So;break}if(r.flags=0,r.head&&(r.head.done=!1),!(r.wrap&1)||(((p&255)<<8)+(p>>8))%31){e.msg="incorrect header check",r.mode=De;break}if((p&15)!==ko){e.msg="unknown compression method",r.mode=De;break}if(p>>>=4,c-=4,S=(p&15)+8,r.wbits===0)r.wbits=S;else if(S>r.wbits){e.msg="invalid window size",r.mode=De;break}r.dmax=1<<S,e.adler=r.check=1,r.mode=p&512?Ro:Gt,p=0,c=0;break;case So:for(;c<16;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}if(r.flags=p,(r.flags&255)!==ko){e.msg="unknown compression method",r.mode=De;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=De;break}r.head&&(r.head.text=p>>8&1),r.flags&512&&(C[0]=p&255,C[1]=p>>>8&255,r.check=$t(r.check,C,2,0)),p=0,c=0,r.mode=Eo;case Eo:for(;c<32;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}r.head&&(r.head.time=p),r.flags&512&&(C[0]=p&255,C[1]=p>>>8&255,C[2]=p>>>16&255,C[3]=p>>>24&255,r.check=$t(r.check,C,4,0)),p=0,c=0,r.mode=Po;case Po:for(;c<16;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}r.head&&(r.head.xflags=p&255,r.head.os=p>>8),r.flags&512&&(C[0]=p&255,C[1]=p>>>8&255,r.check=$t(r.check,C,2,0)),p=0,c=0,r.mode=Ao;case Ao:if(r.flags&1024){for(;c<16;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}r.length=p,r.head&&(r.head.extra_len=p),r.flags&512&&(C[0]=p&255,C[1]=p>>>8&255,r.check=$t(r.check,C,2,0)),p=0,c=0}else r.head&&(r.head.extra=null);r.mode=To;case To:if(r.flags&1024&&(_=r.length,_>o&&(_=o),_&&(r.head&&(S=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),wt.arraySet(r.head.extra,i,n,_,S)),r.flags&512&&(r.check=$t(r.check,i,_,n)),o-=_,n+=_,r.length-=_),r.length))break e;r.length=0,r.mode=Co;case Co:if(r.flags&2048){if(o===0)break e;_=0;do S=i[n+_++],r.head&&S&&r.length<65536&&(r.head.name+=String.fromCharCode(S));while(S&&_<o);if(r.flags&512&&(r.check=$t(r.check,i,_,n)),o-=_,n+=_,S)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=Oo;case Oo:if(r.flags&4096){if(o===0)break e;_=0;do S=i[n+_++],r.head&&S&&r.length<65536&&(r.head.comment+=String.fromCharCode(S));while(S&&_<o);if(r.flags&512&&(r.check=$t(r.check,i,_,n)),o-=_,n+=_,S)break e}else r.head&&(r.head.comment=null);r.mode=Lo;case Lo:if(r.flags&512){for(;c<16;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}if(p!==(r.check&65535)){e.msg="header crc mismatch",r.mode=De;break}p=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Gt;break;case Ro:for(;c<32;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}e.adler=r.check=Ko(p),p=0,c=0,r.mode=An;case An:if(r.havedict===0)return e.next_out=s,e.avail_out=f,e.next_in=n,e.avail_in=o,r.hold=p,r.bits=c,Lh;e.adler=r.check=1,r.mode=Gt;case Gt:if(t===Ch||t===zs)break e;case mi:if(r.last){p>>>=c&7,c-=c&7,r.mode=_i;break}for(;c<3;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}switch(r.last=p&1,p>>>=1,c-=1,p&3){case 0:r.mode=Io;break;case 1:if(jh(r),r.mode=Vs,t===zs){p>>>=2,c-=2;break e}break;case 2:r.mode=Ho;break;case 3:e.msg="invalid block type",r.mode=De}p>>>=2,c-=2;break;case Io:for(p>>>=c&7,c-=c&7;c<32;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}if((p&65535)!==(p>>>16^65535)){e.msg="invalid stored block lengths",r.mode=De;break}if(r.length=p&65535,p=0,c=0,r.mode=yi,t===zs)break e;case yi:r.mode=Do;case Do:if(_=r.length,_){if(_>o&&(_=o),_>f&&(_=f),_===0)break e;wt.arraySet(a,i,n,_,s),o-=_,n+=_,f-=_,s+=_,r.length-=_;break}r.mode=Gt;break;case Ho:for(;c<14;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}if(r.nlen=(p&31)+257,p>>>=5,c-=5,r.ndist=(p&31)+1,p>>>=5,c-=5,r.ncode=(p&15)+4,p>>>=4,c-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=De;break}r.have=0,r.mode=$o;case $o:for(;r.have<r.ncode;){for(;c<3;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}r.lens[D[r.have++]]=p&7,p>>>=3,c-=3}for(;r.have<19;)r.lens[D[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,k={bits:r.lenbits},P=gs(Th,r.lens,0,19,r.lencode,0,r.work,k),r.lenbits=k.bits,P){e.msg="invalid code lengths set",r.mode=De;break}r.have=0,r.mode=Fo;case Fo:for(;r.have<r.nlen+r.ndist;){for(;g=r.lencode[p&(1<<r.lenbits)-1],b=g>>>24,R=g>>>16&255,O=g&65535,!(b<=c);){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}if(O<16)p>>>=b,c-=b,r.lens[r.have++]=O;else{if(O===16){for(E=b+2;c<E;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}if(p>>>=b,c-=b,r.have===0){e.msg="invalid bit length repeat",r.mode=De;break}S=r.lens[r.have-1],_=3+(p&3),p>>>=2,c-=2}else if(O===17){for(E=b+3;c<E;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}p>>>=b,c-=b,S=0,_=3+(p&7),p>>>=3,c-=3}else{for(E=b+7;c<E;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}p>>>=b,c-=b,S=0,_=11+(p&127),p>>>=7,c-=7}if(r.have+_>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=De;break}for(;_--;)r.lens[r.have++]=S}}if(r.mode===De)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=De;break}if(r.lenbits=9,k={bits:r.lenbits},P=gs(ep,r.lens,0,r.nlen,r.lencode,0,r.work,k),r.lenbits=k.bits,P){e.msg="invalid literal/lengths set",r.mode=De;break}if(r.distbits=6,r.distcode=r.distdyn,k={bits:r.distbits},P=gs(tp,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,k),r.distbits=k.bits,P){e.msg="invalid distances set",r.mode=De;break}if(r.mode=Vs,t===zs)break e;case Vs:r.mode=Gs;case Gs:if(o>=6&&f>=258){e.next_out=s,e.avail_out=f,e.next_in=n,e.avail_in=o,r.hold=p,r.bits=c,Ah(e,h),s=e.next_out,a=e.output,f=e.avail_out,n=e.next_in,i=e.input,o=e.avail_in,p=r.hold,c=r.bits,r.mode===Gt&&(r.back=-1);break}for(r.back=0;g=r.lencode[p&(1<<r.lenbits)-1],b=g>>>24,R=g>>>16&255,O=g&65535,!(b<=c);){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}if(R&&!(R&240)){for($=b,A=R,H=O;g=r.lencode[H+((p&(1<<$+A)-1)>>$)],b=g>>>24,R=g>>>16&255,O=g&65535,!($+b<=c);){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}p>>>=$,c-=$,r.back+=$}if(p>>>=b,c-=b,r.back+=b,r.length=O,R===0){r.mode=Wo;break}if(R&32){r.back=-1,r.mode=Gt;break}if(R&64){e.msg="invalid literal/length code",r.mode=De;break}r.extra=R&15,r.mode=Bo;case Bo:if(r.extra){for(E=r.extra;c<E;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}r.length+=p&(1<<r.extra)-1,p>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=No;case No:for(;g=r.distcode[p&(1<<r.distbits)-1],b=g>>>24,R=g>>>16&255,O=g&65535,!(b<=c);){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}if(!(R&240)){for($=b,A=R,H=O;g=r.distcode[H+((p&(1<<$+A)-1)>>$)],b=g>>>24,R=g>>>16&255,O=g&65535,!($+b<=c);){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}p>>>=$,c-=$,r.back+=$}if(p>>>=b,c-=b,r.back+=b,R&64){e.msg="invalid distance code",r.mode=De;break}r.offset=O,r.extra=R&15,r.mode=jo;case jo:if(r.extra){for(E=r.extra;c<E;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}r.offset+=p&(1<<r.extra)-1,p>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=De;break}r.mode=Uo;case Uo:if(f===0)break e;if(_=h-f,r.offset>_){if(_=r.offset-_,_>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=De;break}_>r.wnext?(_-=r.wnext,L=r.wsize-_):L=r.wnext-_,_>r.length&&(_=r.length),y=r.window}else y=a,L=s-r.offset,_=r.length;_>f&&(_=f),f-=_,r.length-=_;do a[s++]=y[L++];while(--_);r.length===0&&(r.mode=Gs);break;case Wo:if(f===0)break e;a[s++]=r.length,f--,r.mode=Gs;break;case _i:if(r.wrap){for(;c<32;){if(o===0)break e;o--,p|=i[n++]<<c,c+=8}if(h-=f,e.total_out+=h,r.total+=h,h&&(e.adler=r.check=r.flags?$t(r.check,a,h,s-h):Xi(r.check,a,h,s-h)),h=f,(r.flags?p:Ko(p))!==r.check){e.msg="incorrect data check",r.mode=De;break}p=0,c=0}r.mode=Mo;case Mo:if(r.wrap&&r.flags){for(;c<32;){if(o===0)break e;o--,p+=i[n++]<<c,c+=8}if(p!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=De;break}p=0,c=0}r.mode=qo;case qo:P=Oh;break e;case De:P=rp;break e;case ip:return sp;case Ih:default:return Pt}return e.next_out=s,e.avail_out=f,e.next_in=n,e.avail_in=o,r.hold=p,r.bits=c,(r.wsize||h!==e.avail_out&&r.mode<De&&(r.mode<_i||t!==xo))&&pp(e,e.output,e.next_out,h-e.avail_out),m-=e.avail_in,h-=e.avail_out,e.total_in+=m,e.total_out+=h,r.total+=h,r.wrap&&h&&(e.adler=r.check=r.flags?$t(r.check,a,h,e.next_out-h):Xi(r.check,a,h,e.next_out-h)),e.data_type=r.bits+(r.last?64:0)+(r.mode===Gt?128:0)+(r.mode===Vs||r.mode===yi?256:0),(m===0&&h===0||t===xo)&&P===Or&&(P=Rh),P}function Wh(e){if(!e||!e.state)return Pt;var t=e.state;return t.window&&(t.window=null),e.state=null,Or}function Mh(e,t){var r;return!e||!e.state||(r=e.state,!(r.wrap&2))?Pt:(r.head=t,t.done=!1,Or)}function qh(e,t){var r=t.length,i,a,n;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==An)?Pt:i.mode===An&&(a=1,a=Xi(a,t,r,0),a!==i.check)?rp:(n=pp(e,t,r,r),n?(i.mode=ip,sp):(i.havedict=1,Or))}It.inflateReset=op;It.inflateReset2=lp;It.inflateResetKeep=ap;It.inflateInit=Nh;It.inflateInit2=fp;It.inflate=Uh;It.inflateEnd=Wh;It.inflateGetHeader=Mh;It.inflateSetDictionary=qh;It.inflateInfo="pako inflate (from Nodeca project)";var cp={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};function Kh(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var zh=Kh,Zr=It,ws=er,dn=Dr,Be=cp,Ji=ba,Vh=Jf,Gh=zh,up=Object.prototype.toString;function Lr(e){if(!(this instanceof Lr))return new Lr(e);this.options=ws.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Vh,this.strm.avail_out=0;var r=Zr.inflateInit2(this.strm,t.windowBits);if(r!==Be.Z_OK)throw new Error(Ji[r]);if(this.header=new Gh,Zr.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=dn.string2buf(t.dictionary):up.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Zr.inflateSetDictionary(this.strm,t.dictionary),r!==Be.Z_OK)))throw new Error(Ji[r])}Lr.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a=this.options.dictionary,n,s,o,f,p,c=!1;if(this.ended)return!1;s=t===~~t?t:t===!0?Be.Z_FINISH:Be.Z_NO_FLUSH,typeof e=="string"?r.input=dn.binstring2buf(e):up.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;do{if(r.avail_out===0&&(r.output=new ws.Buf8(i),r.next_out=0,r.avail_out=i),n=Zr.inflate(r,Be.Z_NO_FLUSH),n===Be.Z_NEED_DICT&&a&&(n=Zr.inflateSetDictionary(this.strm,a)),n===Be.Z_BUF_ERROR&&c===!0&&(n=Be.Z_OK,c=!1),n!==Be.Z_STREAM_END&&n!==Be.Z_OK)return this.onEnd(n),this.ended=!0,!1;r.next_out&&(r.avail_out===0||n===Be.Z_STREAM_END||r.avail_in===0&&(s===Be.Z_FINISH||s===Be.Z_SYNC_FLUSH))&&(this.options.to==="string"?(o=dn.utf8border(r.output,r.next_out),f=r.next_out-o,p=dn.buf2string(r.output,o),r.next_out=f,r.avail_out=i-f,f&&ws.arraySet(r.output,r.output,o,f,0),this.onData(p)):this.onData(ws.shrinkBuf(r.output,r.next_out))),r.avail_in===0&&r.avail_out===0&&(c=!0)}while((r.avail_in>0||r.avail_out===0)&&n!==Be.Z_STREAM_END);return n===Be.Z_STREAM_END&&(s=Be.Z_FINISH),s===Be.Z_FINISH?(n=Zr.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Be.Z_OK):(s===Be.Z_SYNC_FLUSH&&(this.onEnd(Be.Z_OK),r.avail_out=0),!0)};Lr.prototype.onData=function(e){this.chunks.push(e)};Lr.prototype.onEnd=function(e){e===Be.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ws.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function xa(e,t){var r=new Lr(t);if(r.push(e,!0),r.err)throw r.msg||Ji[r.err];return r.result}function Zh(e,t){return t=t||{},t.raw=!0,xa(e,t)}Fs.Inflate=Lr;Fs.inflate=xa;Fs.inflateRaw=Zh;Fs.ungzip=xa;var Yh=er.assign,Xh=Ds,Jh=Fs,Qh=cp,dp={};Yh(dp,Xh,Jh,Qh);var em=dp;const hp=pa(em);async function tm(e,t){const r=new kf(e);let i=await r.read(4);if(i=i.toString("utf8"),i!=="PACK")throw new $e(`Invalid PACK header '${i}'`);let a=await r.read(4);if(a=a.readUInt32BE(0),a!==2)throw new $e(`Invalid packfile version: ${a}`);let n=await r.read(4);if(n=n.readUInt32BE(0),!(n<1))for(;!r.eof()&&n--;){const s=r.tell(),{type:o,length:f,ofs:p,reference:c}=await rm(r),m=new hp.Inflate;for(;!m.result;){const h=await r.chunk();if(!h)break;if(m.push(h,!1),m.err)throw new $e(`Pako error: ${m.msg}`);if(m.result){if(m.result.length!==f)throw new $e("Inflated object size is different from that stated in packfile.");await r.undo(),await r.read(h.length-m.strm.avail_in);const _=r.tell();await t({data:m.result,type:o,num:n,offset:s,end:_,reference:c,ofs:p})}}}}async function rm(e){let t=await e.byte();const r=t>>4&7;let i=t&15;if(t&128){let s=4;do t=await e.byte(),i|=(t&127)<<s,s+=7;while(t&128)}let a,n;if(r===6){let s=0;a=0;const o=[];do t=await e.byte(),a|=(t&127)<<s,s+=7,o.push(t);while(t&128);n=Buffer.from(o)}return r===7&&(n=await e.read(20)),{type:r,length:i,ofs:a,reference:n}}async function sm(e){return hp.inflate(e)}var Qi={exports:{}};typeof Object.create=="function"?Qi.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Qi.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}};var nm=Qi.exports,ea={exports:{}},ka={},Wn={};Wn.byteLength=om;Wn.toByteArray=fm;Wn.fromByteArray=um;var Wt=[],xt=[],im=typeof Uint8Array<"u"?Uint8Array:Array,bi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Br=0,am=bi.length;Br<am;++Br)Wt[Br]=bi[Br],xt[bi.charCodeAt(Br)]=Br;xt[45]=62;xt[95]=63;function mp(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function om(e){var t=mp(e),r=t[0],i=t[1];return(r+i)*3/4-i}function lm(e,t,r){return(t+r)*3/4-r}function fm(e){var t,r=mp(e),i=r[0],a=r[1],n=new im(lm(e,i,a)),s=0,o=a>0?i-4:i,f;for(f=0;f<o;f+=4)t=xt[e.charCodeAt(f)]<<18|xt[e.charCodeAt(f+1)]<<12|xt[e.charCodeAt(f+2)]<<6|xt[e.charCodeAt(f+3)],n[s++]=t>>16&255,n[s++]=t>>8&255,n[s++]=t&255;return a===2&&(t=xt[e.charCodeAt(f)]<<2|xt[e.charCodeAt(f+1)]>>4,n[s++]=t&255),a===1&&(t=xt[e.charCodeAt(f)]<<10|xt[e.charCodeAt(f+1)]<<4|xt[e.charCodeAt(f+2)]>>2,n[s++]=t>>8&255,n[s++]=t&255),n}function pm(e){return Wt[e>>18&63]+Wt[e>>12&63]+Wt[e>>6&63]+Wt[e&63]}function cm(e,t,r){for(var i,a=[],n=t;n<r;n+=3)i=(e[n]<<16&16711680)+(e[n+1]<<8&65280)+(e[n+2]&255),a.push(pm(i));return a.join("")}function um(e){for(var t,r=e.length,i=r%3,a=[],n=16383,s=0,o=r-i;s<o;s+=n)a.push(cm(e,s,s+n>o?o:s+n));return i===1?(t=e[r-1],a.push(Wt[t>>2]+Wt[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],a.push(Wt[t>>10]+Wt[t>>4&63]+Wt[t<<2&63]+"=")),a.join("")}var Sa={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Sa.read=function(e,t,r,i,a){var n,s,o=a*8-i-1,f=(1<<o)-1,p=f>>1,c=-7,m=r?a-1:0,h=r?-1:1,_=e[t+m];for(m+=h,n=_&(1<<-c)-1,_>>=-c,c+=o;c>0;n=n*256+e[t+m],m+=h,c-=8);for(s=n&(1<<-c)-1,n>>=-c,c+=i;c>0;s=s*256+e[t+m],m+=h,c-=8);if(n===0)n=1-p;else{if(n===f)return s?NaN:(_?-1:1)*(1/0);s=s+Math.pow(2,i),n=n-p}return(_?-1:1)*s*Math.pow(2,n-i)};Sa.write=function(e,t,r,i,a,n){var s,o,f,p=n*8-a-1,c=(1<<p)-1,m=c>>1,h=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=i?0:n-1,L=i?1:-1,y=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-s))<1&&(s--,f*=2),s+m>=1?t+=h/f:t+=h*Math.pow(2,1-m),t*f>=2&&(s++,f/=2),s+m>=c?(o=0,s=c):s+m>=1?(o=(t*f-1)*Math.pow(2,a),s=s+m):(o=t*Math.pow(2,m-1)*Math.pow(2,a),s=0));a>=8;e[r+_]=o&255,_+=L,o/=256,a-=8);for(s=s<<a|o,p+=a;p>0;e[r+_]=s&255,_+=L,s/=256,p-=8);e[r+_-L]|=y*128};/*!
60
60
  * The buffer module from node.js, for the browser.
61
61
  *
62
62
  * @author Feross Aboukhadijeh <https://feross.org>
63
63
  * @license MIT
64
- */(function(e){var t=Un,r=va,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.SlowBuffer=R,e.INSPECT_MAX_BYTES=50;var a=2147483647;e.kMaxLength=a,o.TYPED_ARRAY_SUPPORT=n(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function n(){try{var v=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(v,u),v.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function s(v){if(v>a)throw new RangeError('The value "'+v+'" is invalid for option "size"');var u=new Uint8Array(v);return Object.setPrototypeOf(u,o.prototype),u}function o(v,u,d){if(typeof v=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(v)}return f(v,u,d)}o.poolSize=8192;function f(v,u,d){if(typeof v=="string")return h(v,u);if(ArrayBuffer.isView(v))return L(v);if(v==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v);if(Ie(v,ArrayBuffer)||v&&Ie(v.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ie(v,SharedArrayBuffer)||v&&Ie(v.buffer,SharedArrayBuffer)))return y(v,u,d);if(typeof v=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var T=v.valueOf&&v.valueOf();if(T!=null&&T!==v)return o.from(T,u,d);var N=g(v);if(N)return N;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof v[Symbol.toPrimitive]=="function")return o.from(v[Symbol.toPrimitive]("string"),u,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v)}o.from=function(v,u,d){return f(v,u,d)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function p(v){if(typeof v!="number")throw new TypeError('"size" argument must be of type number');if(v<0)throw new RangeError('The value "'+v+'" is invalid for option "size"')}function c(v,u,d){return p(v),v<=0?s(v):u!==void 0?typeof d=="string"?s(v).fill(u,d):s(v).fill(u):s(v)}o.alloc=function(v,u,d){return c(v,u,d)};function m(v){return p(v),s(v<0?0:b(v)|0)}o.allocUnsafe=function(v){return m(v)},o.allocUnsafeSlow=function(v){return m(v)};function h(v,u){if((typeof u!="string"||u==="")&&(u="utf8"),!o.isEncoding(u))throw new TypeError("Unknown encoding: "+u);var d=O(v,u)|0,T=s(d),N=T.write(v,u);return N!==d&&(T=T.slice(0,N)),T}function _(v){for(var u=v.length<0?0:b(v.length)|0,d=s(u),T=0;T<u;T+=1)d[T]=v[T]&255;return d}function L(v){if(Ie(v,Uint8Array)){var u=new Uint8Array(v);return y(u.buffer,u.byteOffset,u.byteLength)}return _(v)}function y(v,u,d){if(u<0||v.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(v.byteLength<u+(d||0))throw new RangeError('"length" is outside of buffer bounds');var T;return u===void 0&&d===void 0?T=new Uint8Array(v):d===void 0?T=new Uint8Array(v,u):T=new Uint8Array(v,u,d),Object.setPrototypeOf(T,o.prototype),T}function g(v){if(o.isBuffer(v)){var u=b(v.length)|0,d=s(u);return d.length===0||v.copy(d,0,0,u),d}if(v.length!==void 0)return typeof v.length!="number"||at(v.length)?s(0):_(v);if(v.type==="Buffer"&&Array.isArray(v.data))return _(v.data)}function b(v){if(v>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return v|0}function R(v){return+v!=v&&(v=0),o.alloc(+v)}o.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==o.prototype},o.compare=function(u,d){if(Ie(u,Uint8Array)&&(u=o.from(u,u.offset,u.byteLength)),Ie(d,Uint8Array)&&(d=o.from(d,d.offset,d.byteLength)),!o.isBuffer(u)||!o.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===d)return 0;for(var T=u.length,N=d.length,K=0,X=Math.min(T,N);K<X;++K)if(u[K]!==d[K]){T=u[K],N=d[K];break}return T<N?-1:N<T?1:0},o.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(u,d){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return o.alloc(0);var T;if(d===void 0)for(d=0,T=0;T<u.length;++T)d+=u[T].length;var N=o.allocUnsafe(d),K=0;for(T=0;T<u.length;++T){var X=u[T];if(Ie(X,Uint8Array))K+X.length>N.length?o.from(X).copy(N,K):Uint8Array.prototype.set.call(N,X,K);else if(o.isBuffer(X))X.copy(N,K);else throw new TypeError('"list" argument must be an Array of Buffers');K+=X.length}return N};function O(v,u){if(o.isBuffer(v))return v.length;if(ArrayBuffer.isView(v)||Ie(v,ArrayBuffer))return v.byteLength;if(typeof v!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof v);var d=v.length,T=arguments.length>2&&arguments[2]===!0;if(!T&&d===0)return 0;for(var N=!1;;)switch(u){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return Ae(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return bt(v).length;default:if(N)return T?-1:Ae(v).length;u=(""+u).toLowerCase(),N=!0}}o.byteLength=O;function H(v,u,d){var T=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,u>>>=0,d<=u))return"";for(v||(v="utf8");;)switch(v){case"hex":return ne(this,u,d);case"utf8":case"utf-8":return B(this,u,d);case"ascii":return Z(this,u,d);case"latin1":case"binary":return z(this,u,d);case"base64":return I(this,u,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,u,d);default:if(T)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),T=!0}}o.prototype._isBuffer=!0;function A(v,u,d){var T=v[u];v[u]=v[d],v[d]=T}o.prototype.swap16=function(){var u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var d=0;d<u;d+=2)A(this,d,d+1);return this},o.prototype.swap32=function(){var u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var d=0;d<u;d+=4)A(this,d,d+3),A(this,d+1,d+2);return this},o.prototype.swap64=function(){var u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var d=0;d<u;d+=8)A(this,d,d+7),A(this,d+1,d+6),A(this,d+2,d+5),A(this,d+3,d+4);return this},o.prototype.toString=function(){var u=this.length;return u===0?"":arguments.length===0?B(this,0,u):H.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(u){if(!o.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:o.compare(this,u)===0},o.prototype.inspect=function(){var u="",d=e.INSPECT_MAX_BYTES;return u=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(u+=" ... "),"<Buffer "+u+">"},i&&(o.prototype[i]=o.prototype.inspect),o.prototype.compare=function(u,d,T,N,K){if(Ie(u,Uint8Array)&&(u=o.from(u,u.offset,u.byteLength)),!o.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(d===void 0&&(d=0),T===void 0&&(T=u?u.length:0),N===void 0&&(N=0),K===void 0&&(K=this.length),d<0||T>u.length||N<0||K>this.length)throw new RangeError("out of range index");if(N>=K&&d>=T)return 0;if(N>=K)return-1;if(d>=T)return 1;if(d>>>=0,T>>>=0,N>>>=0,K>>>=0,this===u)return 0;for(var X=K-N,pe=T-d,_e=Math.min(X,pe),he=this.slice(N,K),Fe=u.slice(d,T),ue=0;ue<_e;++ue)if(he[ue]!==Fe[ue]){X=he[ue],pe=Fe[ue];break}return X<pe?-1:pe<X?1:0};function $(v,u,d,T,N){if(v.length===0)return-1;if(typeof d=="string"?(T=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,at(d)&&(d=N?0:v.length-1),d<0&&(d=v.length+d),d>=v.length){if(N)return-1;d=v.length-1}else if(d<0)if(N)d=0;else return-1;if(typeof u=="string"&&(u=o.from(u,T)),o.isBuffer(u))return u.length===0?-1:S(v,u,d,T,N);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(v,u,d):Uint8Array.prototype.lastIndexOf.call(v,u,d):S(v,[u],d,T,N);throw new TypeError("val must be string, number or Buffer")}function S(v,u,d,T,N){var K=1,X=v.length,pe=u.length;if(T!==void 0&&(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le")){if(v.length<2||u.length<2)return-1;K=2,X/=2,pe/=2,d/=2}function _e(et,At){return K===1?et[At]:et.readUInt16BE(At*K)}var he;if(N){var Fe=-1;for(he=d;he<X;he++)if(_e(v,he)===_e(u,Fe===-1?0:he-Fe)){if(Fe===-1&&(Fe=he),he-Fe+1===pe)return Fe*K}else Fe!==-1&&(he-=he-Fe),Fe=-1}else for(d+pe>X&&(d=X-pe),he=d;he>=0;he--){for(var ue=!0,ut=0;ut<pe;ut++)if(_e(v,he+ut)!==_e(u,ut)){ue=!1;break}if(ue)return he}return-1}o.prototype.includes=function(u,d,T){return this.indexOf(u,d,T)!==-1},o.prototype.indexOf=function(u,d,T){return $(this,u,d,T,!0)},o.prototype.lastIndexOf=function(u,d,T){return $(this,u,d,T,!1)};function P(v,u,d,T){d=Number(d)||0;var N=v.length-d;T?(T=Number(T),T>N&&(T=N)):T=N;var K=u.length;T>K/2&&(T=K/2);for(var X=0;X<T;++X){var pe=parseInt(u.substr(X*2,2),16);if(at(pe))return X;v[d+X]=pe}return X}function C(v,u,d,T){return Re(Ae(u,v.length-d),v,d,T)}function k(v,u,d,T){return Re(Ze(u),v,d,T)}function E(v,u,d,T){return Re(bt(u),v,d,T)}function D(v,u,d,T){return Re(Qe(u,v.length-d),v,d,T)}o.prototype.write=function(u,d,T,N){if(d===void 0)N="utf8",T=this.length,d=0;else if(T===void 0&&typeof d=="string")N=d,T=this.length,d=0;else if(isFinite(d))d=d>>>0,isFinite(T)?(T=T>>>0,N===void 0&&(N="utf8")):(N=T,T=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var K=this.length-d;if((T===void 0||T>K)&&(T=K),u.length>0&&(T<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");for(var X=!1;;)switch(N){case"hex":return P(this,u,d,T);case"utf8":case"utf-8":return C(this,u,d,T);case"ascii":case"latin1":case"binary":return k(this,u,d,T);case"base64":return E(this,u,d,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,u,d,T);default:if(X)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),X=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(v,u,d){return u===0&&d===v.length?t.fromByteArray(v):t.fromByteArray(v.slice(u,d))}function B(v,u,d){d=Math.min(v.length,d);for(var T=[],N=u;N<d;){var K=v[N],X=null,pe=K>239?4:K>223?3:K>191?2:1;if(N+pe<=d){var _e,he,Fe,ue;switch(pe){case 1:K<128&&(X=K);break;case 2:_e=v[N+1],(_e&192)===128&&(ue=(K&31)<<6|_e&63,ue>127&&(X=ue));break;case 3:_e=v[N+1],he=v[N+2],(_e&192)===128&&(he&192)===128&&(ue=(K&15)<<12|(_e&63)<<6|he&63,ue>2047&&(ue<55296||ue>57343)&&(X=ue));break;case 4:_e=v[N+1],he=v[N+2],Fe=v[N+3],(_e&192)===128&&(he&192)===128&&(Fe&192)===128&&(ue=(K&15)<<18|(_e&63)<<12|(he&63)<<6|Fe&63,ue>65535&&ue<1114112&&(X=ue))}}X===null?(X=65533,pe=1):X>65535&&(X-=65536,T.push(X>>>10&1023|55296),X=56320|X&1023),T.push(X),N+=pe}return M(T)}var W=4096;function M(v){var u=v.length;if(u<=W)return String.fromCharCode.apply(String,v);for(var d="",T=0;T<u;)d+=String.fromCharCode.apply(String,v.slice(T,T+=W));return d}function Z(v,u,d){var T="";d=Math.min(v.length,d);for(var N=u;N<d;++N)T+=String.fromCharCode(v[N]&127);return T}function z(v,u,d){var T="";d=Math.min(v.length,d);for(var N=u;N<d;++N)T+=String.fromCharCode(v[N]);return T}function ne(v,u,d){var T=v.length;(!u||u<0)&&(u=0),(!d||d<0||d>T)&&(d=T);for(var N="",K=u;K<d;++K)N+=Ce[v[K]];return N}function V(v,u,d){for(var T=v.slice(u,d),N="",K=0;K<T.length-1;K+=2)N+=String.fromCharCode(T[K]+T[K+1]*256);return N}o.prototype.slice=function(u,d){var T=this.length;u=~~u,d=d===void 0?T:~~d,u<0?(u+=T,u<0&&(u=0)):u>T&&(u=T),d<0?(d+=T,d<0&&(d=0)):d>T&&(d=T),d<u&&(d=u);var N=this.subarray(u,d);return Object.setPrototypeOf(N,o.prototype),N};function Q(v,u,d){if(v%1!==0||v<0)throw new RangeError("offset is not uint");if(v+u>d)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(u,d,T){u=u>>>0,d=d>>>0,T||Q(u,d,this.length);for(var N=this[u],K=1,X=0;++X<d&&(K*=256);)N+=this[u+X]*K;return N},o.prototype.readUintBE=o.prototype.readUIntBE=function(u,d,T){u=u>>>0,d=d>>>0,T||Q(u,d,this.length);for(var N=this[u+--d],K=1;d>0&&(K*=256);)N+=this[u+--d]*K;return N},o.prototype.readUint8=o.prototype.readUInt8=function(u,d){return u=u>>>0,d||Q(u,1,this.length),this[u]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(u,d){return u=u>>>0,d||Q(u,2,this.length),this[u]|this[u+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(u,d){return u=u>>>0,d||Q(u,2,this.length),this[u]<<8|this[u+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},o.prototype.readIntLE=function(u,d,T){u=u>>>0,d=d>>>0,T||Q(u,d,this.length);for(var N=this[u],K=1,X=0;++X<d&&(K*=256);)N+=this[u+X]*K;return K*=128,N>=K&&(N-=Math.pow(2,8*d)),N},o.prototype.readIntBE=function(u,d,T){u=u>>>0,d=d>>>0,T||Q(u,d,this.length);for(var N=d,K=1,X=this[u+--N];N>0&&(K*=256);)X+=this[u+--N]*K;return K*=128,X>=K&&(X-=Math.pow(2,8*d)),X},o.prototype.readInt8=function(u,d){return u=u>>>0,d||Q(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},o.prototype.readInt16LE=function(u,d){u=u>>>0,d||Q(u,2,this.length);var T=this[u]|this[u+1]<<8;return T&32768?T|4294901760:T},o.prototype.readInt16BE=function(u,d){u=u>>>0,d||Q(u,2,this.length);var T=this[u+1]|this[u]<<8;return T&32768?T|4294901760:T},o.prototype.readInt32LE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},o.prototype.readInt32BE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},o.prototype.readFloatLE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),r.read(this,u,!0,23,4)},o.prototype.readFloatBE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),r.read(this,u,!1,23,4)},o.prototype.readDoubleLE=function(u,d){return u=u>>>0,d||Q(u,8,this.length),r.read(this,u,!0,52,8)},o.prototype.readDoubleBE=function(u,d){return u=u>>>0,d||Q(u,8,this.length),r.read(this,u,!1,52,8)};function ee(v,u,d,T,N,K){if(!o.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>N||u<K)throw new RangeError('"value" argument is out of bounds');if(d+T>v.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(u,d,T,N){if(u=+u,d=d>>>0,T=T>>>0,!N){var K=Math.pow(2,8*T)-1;ee(this,u,d,T,K,0)}var X=1,pe=0;for(this[d]=u&255;++pe<T&&(X*=256);)this[d+pe]=u/X&255;return d+T},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(u,d,T,N){if(u=+u,d=d>>>0,T=T>>>0,!N){var K=Math.pow(2,8*T)-1;ee(this,u,d,T,K,0)}var X=T-1,pe=1;for(this[d+X]=u&255;--X>=0&&(pe*=256);)this[d+X]=u/pe&255;return d+T},o.prototype.writeUint8=o.prototype.writeUInt8=function(u,d,T){return u=+u,d=d>>>0,T||ee(this,u,d,1,255,0),this[d]=u&255,d+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(u,d,T){return u=+u,d=d>>>0,T||ee(this,u,d,2,65535,0),this[d]=u&255,this[d+1]=u>>>8,d+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(u,d,T){return u=+u,d=d>>>0,T||ee(this,u,d,2,65535,0),this[d]=u>>>8,this[d+1]=u&255,d+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(u,d,T){return u=+u,d=d>>>0,T||ee(this,u,d,4,4294967295,0),this[d+3]=u>>>24,this[d+2]=u>>>16,this[d+1]=u>>>8,this[d]=u&255,d+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(u,d,T){return u=+u,d=d>>>0,T||ee(this,u,d,4,4294967295,0),this[d]=u>>>24,this[d+1]=u>>>16,this[d+2]=u>>>8,this[d+3]=u&255,d+4},o.prototype.writeIntLE=function(u,d,T,N){if(u=+u,d=d>>>0,!N){var K=Math.pow(2,8*T-1);ee(this,u,d,T,K-1,-K)}var X=0,pe=1,_e=0;for(this[d]=u&255;++X<T&&(pe*=256);)u<0&&_e===0&&this[d+X-1]!==0&&(_e=1),this[d+X]=(u/pe>>0)-_e&255;return d+T},o.prototype.writeIntBE=function(u,d,T,N){if(u=+u,d=d>>>0,!N){var K=Math.pow(2,8*T-1);ee(this,u,d,T,K-1,-K)}var X=T-1,pe=1,_e=0;for(this[d+X]=u&255;--X>=0&&(pe*=256);)u<0&&_e===0&&this[d+X+1]!==0&&(_e=1),this[d+X]=(u/pe>>0)-_e&255;return d+T},o.prototype.writeInt8=function(u,d,T){return u=+u,d=d>>>0,T||ee(this,u,d,1,127,-128),u<0&&(u=255+u+1),this[d]=u&255,d+1},o.prototype.writeInt16LE=function(u,d,T){return u=+u,d=d>>>0,T||ee(this,u,d,2,32767,-32768),this[d]=u&255,this[d+1]=u>>>8,d+2},o.prototype.writeInt16BE=function(u,d,T){return u=+u,d=d>>>0,T||ee(this,u,d,2,32767,-32768),this[d]=u>>>8,this[d+1]=u&255,d+2},o.prototype.writeInt32LE=function(u,d,T){return u=+u,d=d>>>0,T||ee(this,u,d,4,2147483647,-2147483648),this[d]=u&255,this[d+1]=u>>>8,this[d+2]=u>>>16,this[d+3]=u>>>24,d+4},o.prototype.writeInt32BE=function(u,d,T){return u=+u,d=d>>>0,T||ee(this,u,d,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[d]=u>>>24,this[d+1]=u>>>16,this[d+2]=u>>>8,this[d+3]=u&255,d+4};function G(v,u,d,T,N,K){if(d+T>v.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function fe(v,u,d,T,N){return u=+u,d=d>>>0,N||G(v,u,d,4),r.write(v,u,d,T,23,4),d+4}o.prototype.writeFloatLE=function(u,d,T){return fe(this,u,d,!0,T)},o.prototype.writeFloatBE=function(u,d,T){return fe(this,u,d,!1,T)};function ie(v,u,d,T,N){return u=+u,d=d>>>0,N||G(v,u,d,8),r.write(v,u,d,T,52,8),d+8}o.prototype.writeDoubleLE=function(u,d,T){return ie(this,u,d,!0,T)},o.prototype.writeDoubleBE=function(u,d,T){return ie(this,u,d,!1,T)},o.prototype.copy=function(u,d,T,N){if(!o.isBuffer(u))throw new TypeError("argument should be a Buffer");if(T||(T=0),!N&&N!==0&&(N=this.length),d>=u.length&&(d=u.length),d||(d=0),N>0&&N<T&&(N=T),N===T||u.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(T<0||T>=this.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),u.length-d<N-T&&(N=u.length-d+T);var K=N-T;return this===u&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(d,T,N):Uint8Array.prototype.set.call(u,this.subarray(T,N),d),K},o.prototype.fill=function(u,d,T,N){if(typeof u=="string"){if(typeof d=="string"?(N=d,d=0,T=this.length):typeof T=="string"&&(N=T,T=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!o.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(u.length===1){var K=u.charCodeAt(0);(N==="utf8"&&K<128||N==="latin1")&&(u=K)}}else typeof u=="number"?u=u&255:typeof u=="boolean"&&(u=Number(u));if(d<0||this.length<d||this.length<T)throw new RangeError("Out of range index");if(T<=d)return this;d=d>>>0,T=T===void 0?this.length:T>>>0,u||(u=0);var X;if(typeof u=="number")for(X=d;X<T;++X)this[X]=u;else{var pe=o.isBuffer(u)?u:o.from(u,N),_e=pe.length;if(_e===0)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(X=0;X<T-d;++X)this[X+d]=pe[X%_e]}return this};var ae=/[^+/0-9A-Za-z-_]/g;function Se(v){if(v=v.split("=")[0],v=v.trim().replace(ae,""),v.length<2)return"";for(;v.length%4!==0;)v=v+"=";return v}function Ae(v,u){u=u||1/0;for(var d,T=v.length,N=null,K=[],X=0;X<T;++X){if(d=v.charCodeAt(X),d>55295&&d<57344){if(!N){if(d>56319){(u-=3)>-1&&K.push(239,191,189);continue}else if(X+1===T){(u-=3)>-1&&K.push(239,191,189);continue}N=d;continue}if(d<56320){(u-=3)>-1&&K.push(239,191,189),N=d;continue}d=(N-55296<<10|d-56320)+65536}else N&&(u-=3)>-1&&K.push(239,191,189);if(N=null,d<128){if((u-=1)<0)break;K.push(d)}else if(d<2048){if((u-=2)<0)break;K.push(d>>6|192,d&63|128)}else if(d<65536){if((u-=3)<0)break;K.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((u-=4)<0)break;K.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return K}function Ze(v){for(var u=[],d=0;d<v.length;++d)u.push(v.charCodeAt(d)&255);return u}function Qe(v,u){for(var d,T,N,K=[],X=0;X<v.length&&!((u-=2)<0);++X)d=v.charCodeAt(X),T=d>>8,N=d%256,K.push(N),K.push(T);return K}function bt(v){return t.toByteArray(Se(v))}function Re(v,u,d,T){for(var N=0;N<T&&!(N+d>=u.length||N>=v.length);++N)u[N+d]=v[N];return N}function Ie(v,u){return v instanceof u||v!=null&&v.constructor!=null&&v.constructor.name!=null&&v.constructor.name===u.name}function at(v){return v!==v}var Ce=function(){for(var v="0123456789abcdef",u=new Array(256),d=0;d<16;++d)for(var T=d*16,N=0;N<16;++N)u[T+N]=v[d]+v[N];return u}()})(ba);/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(e,t){var r=ba,i=r.Buffer;function a(s,o){for(var f in s)o[f]=s[f]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=n);function n(s,o,f){return i(s,o,f)}n.prototype=Object.create(i.prototype),a(i,n),n.from=function(s,o,f){if(typeof s=="number")throw new TypeError("Argument must not be a number");return i(s,o,f)},n.alloc=function(s,o,f){if(typeof s!="number")throw new TypeError("Argument must be a number");var p=i(s);return o!==void 0?typeof f=="string"?p.fill(o,f):p.fill(o):p.fill(0),p},n.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return i(s)},n.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(s)}})(Xi,Xi.exports);var cp=Xi.exports,up=cp.Buffer;function Mn(e,t){this._block=up.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Mn.prototype.update=function(e,t){typeof e=="string"&&(t=t||"utf8",e=up.from(e,t));for(var r=this._block,i=this._blockSize,a=e.length,n=this._len,s=0;s<a;){for(var o=n%i,f=Math.min(a-s,i-o),p=0;p<f;p++)r[o+p]=e[s+p];n+=f,s+=f,n%i===0&&this._update(r)}return this._len+=a,this};Mn.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(r&4294967295)>>>0,a=(r-i)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var n=this._hash();return e?n.toString(e):n};Mn.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var nm=Mn,im=Zh,dp=nm,am=cp.Buffer,om=[1518500249,1859775393,-1894007588,-899497514],lm=new Array(80);function Ns(){this.init(),this._w=lm,dp.call(this,64,56)}im(Ns,dp);Ns.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function fm(e){return e<<1|e>>>31}function pm(e){return e<<5|e>>>27}function cm(e){return e<<30|e>>>2}function um(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}Ns.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,a=this._c|0,n=this._d|0,s=this._e|0,o=0;o<16;++o)t[o]=e.readInt32BE(o*4);for(;o<80;++o)t[o]=fm(t[o-3]^t[o-8]^t[o-14]^t[o-16]);for(var f=0;f<80;++f){var p=~~(f/20),c=pm(r)+um(p,i,a,n)+s+t[f]+om[p]|0;s=n,n=a,a=cm(i),i=r,r=c}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=n+this._d|0,this._e=s+this._e|0};Ns.prototype._hash=function(){var e=am.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var dm=Ns;const hm=oa(dm);function mm(e){let t="";for(const r of new Uint8Array(e))r<16&&(t+="0"),t+=r.toString(16);return t}let gi=null;async function Mo(e){return gi===null&&(gi=await _m()),gi?hp(e):ym(e)}function ym(e){return new hm().update(e).digest("hex")}async function hp(e){const t=await crypto.subtle.digest("SHA-1",e);return mm(t)}async function _m(){try{if(await hp(new Uint8Array([]))==="da39a3ee5e6b4b0d3255bfef95601890afd80709")return!0}catch{}return!1}function gm(e){const t=[];let r=0,i=0;do{r=e.readUInt8();const a=r&127;t.push(a),i=r&128}while(i);return t.reduce((a,n)=>a+1<<7|n,-1)}function wm(e,t){let r=t,i=4,a=null;do a=e.readUInt8(),r|=(a&127)<<i,i+=7;while(a&128);return r}class Ps{constructor(t){Object.assign(this,t),this.offsetCache={}}static async fromIdx({idx:t,getExternalRefDelta:r}){const i=new br(t);if(i.slice(4).toString("hex")!=="ff744f63")return;const n=i.readUInt32BE();if(n!==2)throw new He(`Unable to read version ${n} packfile IDX. (Only version 2 supported)`);if(t.byteLength>2048*1024*1024)throw new He("To keep implementation simple, I haven't implemented the layer 5 feature needed to support packfiles > 2GB in size.");i.seek(i.tell()+4*255);const s=i.readUInt32BE(),o=[];for(let c=0;c<s;c++){const m=i.slice(20).toString("hex");o[c]=m}i.seek(i.tell()+4*s);const f=new Map;for(let c=0;c<s;c++)f.set(o[c],i.readUInt32BE());const p=i.slice(20).toString("hex");return new Ps({hashes:o,crcs:{},offsets:f,packfileSha:p,getExternalRefDelta:r})}static async fromPack({pack:t,getExternalRefDelta:r,onProgress:i}){const a={1:"commit",2:"tree",3:"blob",4:"tag",6:"ofs-delta",7:"ref-delta"},n={},s=t.slice(-20).toString("hex"),o=[],f={},p=new Map;let c=null,m=null;await zh([t],async({data:g,type:b,reference:R,offset:O,num:H})=>{c===null&&(c=H);const A=Math.floor((c-H)*100/c);A!==m&&i&&await i({phase:"Receiving objects",loaded:c-H,total:c}),m=A,b=a[b],["commit","tree","blob","tag"].includes(b)?n[O]={type:b,offset:O}:b==="ofs-delta"?n[O]={type:b,offset:O}:b==="ref-delta"&&(n[O]={type:b,offset:O})});const h=Object.keys(n).map(Number);for(const[g,b]of h.entries()){const R=g+1===h.length?t.byteLength-20:h[g+1],O=n[b],H=Xu.buf(t.slice(b,R))>>>0;O.end=R,O.crc=H}const _=new Ps({pack:Promise.resolve(t),packfileSha:s,crcs:f,hashes:o,offsets:p,getExternalRefDelta:r});m=null;let L=0;const y=[0,0,0,0,0,0,0,0,0,0,0,0];for(let g in n){g=Number(g);const b=Math.floor(L*100/c);b!==m&&i&&await i({phase:"Resolving deltas",loaded:L,total:c}),L++,m=b;const R=n[g];if(!R.oid)try{_.readDepth=0,_.externalReadDepth=0;const{type:O,object:H}=await _.readSlice({start:g});y[_.readDepth]+=1;const A=await Mo(Ju.wrap({type:O,object:H}));R.oid=A,o.push(A),p.set(A,g),f[A]=R.crc}catch{continue}}return o.sort(),_}async toBuffer(){const t=[],r=(p,c)=>{t.push(Buffer.from(p,c))};r("ff744f63","hex"),r("00000002","hex");const i=new br(Buffer.alloc(256*4));for(let p=0;p<256;p++){let c=0;for(const m of this.hashes)parseInt(m.slice(0,2),16)<=p&&c++;i.writeUInt32BE(c)}t.push(i.buffer);for(const p of this.hashes)r(p,"hex");const a=new br(Buffer.alloc(this.hashes.length*4));for(const p of this.hashes)a.writeUInt32BE(this.crcs[p]);t.push(a.buffer);const n=new br(Buffer.alloc(this.hashes.length*4));for(const p of this.hashes)n.writeUInt32BE(this.offsets.get(p));t.push(n.buffer),r(this.packfileSha,"hex");const s=Buffer.concat(t),o=await Mo(s),f=Buffer.alloc(20);return f.write(o,"hex"),Buffer.concat([s,f])}async load({pack:t}){this.pack=t}async unload(){this.pack=null}async read({oid:t}){if(!this.offsets.get(t)){if(this.getExternalRefDelta)return this.externalReadDepth++,this.getExternalRefDelta(t);throw new He(`Could not read object ${t} from packfile`)}const r=this.offsets.get(t);return this.readSlice({start:r})}async readSlice({start:t}){if(this.offsetCache[t])return Object.assign({},this.offsetCache[t]);this.readDepth++;const r={16:"commit",32:"tree",48:"blob",64:"tag",96:"ofs_delta",112:"ref_delta"};if(!this.pack)throw new He("Tried to read from a GitPackIndex with no packfile loaded into memory");const i=(await this.pack).slice(t),a=new br(i),n=a.readUInt8(),s=n&112;let o=r[s];if(o===void 0)throw new He("Unrecognized type: 0b"+s.toString(2));const f=n&15;let p=f;n&128&&(p=wm(a,f));let m=null,h=null;if(o==="ofs_delta"){const L=gm(a),y=t-L;({object:m,type:o}=await this.readSlice({start:y}))}if(o==="ref_delta"){const L=a.slice(20).toString("hex");({object:m,type:o}=await this.read({oid:L}))}const _=i.slice(a.tell());if(h=Buffer.from(await Gh(_)),h.byteLength!==p)throw new He(`Packfile told us object would have length ${p} but it had length ${h.byteLength}`);return m&&(h=Buffer.from(Qu(h,m))),this.readDepth>3&&(this.offsetCache[t]={type:o,object:h}),{type:o,format:"content",object:h}}}class As extends es{constructor(t){super(`Expected a 40-char hex object id but saw "${t}".`),this.code=this.name=As.code,this.data={value:t}}}As.code="InvalidOidError";class qn extends es{constructor(t,r,i,a){super(`Object ${t} ${a?`at ${a}`:""}was anticipated to be a ${i} but it is a ${r}.`),this.code=this.name=qn.code,this.data={oid:t,actual:r,expected:i,filepath:a}}}qn.code="ObjectTypeError";async function mp(e,t){const r=_f(e);for(;;){const{value:i,done:a}=await r.next();if(i&&await t(i),a)break}r.return&&r.return()}async function Ts(e){let t=0;const r=[];await mp(e,n=>{r.push(n),t+=n.byteLength});const i=new Uint8Array(t);let a=0;for(const n of r)i.set(n,a),a+=n.byteLength;return i}class wi{constructor(){this._queue=[]}write(t){if(this._ended)throw Error("You cannot write to a FIFO that has already been ended!");if(this._waiting){const r=this._waiting;this._waiting=null,r({value:t})}else this._queue.push(t)}end(){if(this._ended=!0,this._waiting){const t=this._waiting;this._waiting=null,t({done:!0})}}destroy(t){this.error=t,this.end()}async next(){if(this._queue.length>0)return{value:this._queue.shift()};if(this._ended)return{done:!0};if(this._waiting)throw Error("You cannot call read until the previous call to read has returned!");return new Promise(t=>{this._waiting=t})}}class bm{static demux(t){const r=Ge.streamReader(t),i=new wi,a=new wi,n=new wi,s=async function(){const o=await r();if(o===null)return s();if(o===!0){i.end(),n.end(),t.error?a.destroy(t.error):a.end();return}switch(o[0]){case 1:{a.write(o.slice(1));break}case 2:{n.write(o.slice(1));break}case 3:{const f=o.slice(1);n.write(f),i.end(),n.end(),a.destroy(new Error(f.toString("utf8")));return}default:i.write(o)}s()};return s(),{packetlines:i,packfile:a,progress:n}}}async function yp(e){const{packetlines:t,packfile:r,progress:i}=bm.demux(e),a=[],n=[],s=[];let o=!1,f=!1;return new Promise((p,c)=>{mp(t,m=>{const h=m.toString("utf8").trim();if(h.startsWith("shallow")){const _=h.slice(-41).trim();_.length!==40&&c(new As(_)),a.push(_)}else if(h.startsWith("unshallow")){const _=h.slice(-41).trim();_.length!==40&&c(new As(_)),n.push(_)}else if(h.startsWith("ACK")){const[,_,L]=h.split(" ");s.push({oid:_,status:L}),L||(f=!0)}else h.startsWith("NAK")?(o=!0,f=!0):(f=!0,o=!0);f&&(e.error?c(e.error):p({shallows:a,unshallows:n,acks:s,nak:o,packfile:r,progress:i}))}).finally(()=>{f||(e.error?c(e.error):p({shallows:a,unshallows:n,acks:s,nak:o,packfile:r,progress:i}))})})}typeof globalThis.Buffer>"u"&&(globalThis.Buffer=ba.Buffer);async function vm(e,t,r){const i=await gp(e,t),a=await Pm(i,t,r),n=await Am(e,r.map(o=>a[o].oid)),s={};return await Promise.all(r.map(async o=>{s[o]=await wp(n,a[o].oid)})),s}async function xm(e,t){const r=await gp(e,t),i=await Em(r,t);return i!=null&&i.object?_p(i):[]}async function km(e,t){switch((t.type==="infer"||t.type===void 0)&&(["","HEAD"].includes(t.value)?t={value:t.value,type:"refname"}:typeof t.value=="string"&&t.value.length===40&&(t={value:t.value,type:"commit"})),t.type==="branch"&&(t={value:`refs/heads/${t.value}`,type:"refname"}),t.type){case"commit":return t.value;case"refname":{const r=await Sm(e,t.value);if(!(t.value in r))throw new Error(`Branch ${t.value} not found`);return r[t.value]}default:throw new Error(`Invalid ref type: ${t.type}`)}}function _p(e){return e.object.map(t=>{if(t.type==="blob")return{name:t.path,type:"file"};if(t.type==="tree"&&t.object)return{name:t.path,type:"folder",children:_p(t)}}).filter(t=>!!(t!=null&&t.name))}async function Sm(e,t){const r=Buffer.from(await Ts([Ge.encode(`command=ls-refs
64
+ */(function(e){var t=Wn,r=Sa,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.SlowBuffer=R,e.INSPECT_MAX_BYTES=50;var a=2147483647;e.kMaxLength=a,o.TYPED_ARRAY_SUPPORT=n(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function n(){try{var v=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(v,u),v.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function s(v){if(v>a)throw new RangeError('The value "'+v+'" is invalid for option "size"');var u=new Uint8Array(v);return Object.setPrototypeOf(u,o.prototype),u}function o(v,u,d){if(typeof v=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(v)}return f(v,u,d)}o.poolSize=8192;function f(v,u,d){if(typeof v=="string")return h(v,u);if(ArrayBuffer.isView(v))return L(v);if(v==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v);if(Ie(v,ArrayBuffer)||v&&Ie(v.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ie(v,SharedArrayBuffer)||v&&Ie(v.buffer,SharedArrayBuffer)))return y(v,u,d);if(typeof v=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var T=v.valueOf&&v.valueOf();if(T!=null&&T!==v)return o.from(T,u,d);var B=g(v);if(B)return B;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof v[Symbol.toPrimitive]=="function")return o.from(v[Symbol.toPrimitive]("string"),u,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof v)}o.from=function(v,u,d){return f(v,u,d)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function p(v){if(typeof v!="number")throw new TypeError('"size" argument must be of type number');if(v<0)throw new RangeError('The value "'+v+'" is invalid for option "size"')}function c(v,u,d){return p(v),v<=0?s(v):u!==void 0?typeof d=="string"?s(v).fill(u,d):s(v).fill(u):s(v)}o.alloc=function(v,u,d){return c(v,u,d)};function m(v){return p(v),s(v<0?0:b(v)|0)}o.allocUnsafe=function(v){return m(v)},o.allocUnsafeSlow=function(v){return m(v)};function h(v,u){if((typeof u!="string"||u==="")&&(u="utf8"),!o.isEncoding(u))throw new TypeError("Unknown encoding: "+u);var d=O(v,u)|0,T=s(d),B=T.write(v,u);return B!==d&&(T=T.slice(0,B)),T}function _(v){for(var u=v.length<0?0:b(v.length)|0,d=s(u),T=0;T<u;T+=1)d[T]=v[T]&255;return d}function L(v){if(Ie(v,Uint8Array)){var u=new Uint8Array(v);return y(u.buffer,u.byteOffset,u.byteLength)}return _(v)}function y(v,u,d){if(u<0||v.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(v.byteLength<u+(d||0))throw new RangeError('"length" is outside of buffer bounds');var T;return u===void 0&&d===void 0?T=new Uint8Array(v):d===void 0?T=new Uint8Array(v,u):T=new Uint8Array(v,u,d),Object.setPrototypeOf(T,o.prototype),T}function g(v){if(o.isBuffer(v)){var u=b(v.length)|0,d=s(u);return d.length===0||v.copy(d,0,0,u),d}if(v.length!==void 0)return typeof v.length!="number"||at(v.length)?s(0):_(v);if(v.type==="Buffer"&&Array.isArray(v.data))return _(v.data)}function b(v){if(v>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return v|0}function R(v){return+v!=v&&(v=0),o.alloc(+v)}o.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==o.prototype},o.compare=function(u,d){if(Ie(u,Uint8Array)&&(u=o.from(u,u.offset,u.byteLength)),Ie(d,Uint8Array)&&(d=o.from(d,d.offset,d.byteLength)),!o.isBuffer(u)||!o.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===d)return 0;for(var T=u.length,B=d.length,K=0,X=Math.min(T,B);K<X;++K)if(u[K]!==d[K]){T=u[K],B=d[K];break}return T<B?-1:B<T?1:0},o.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(u,d){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return o.alloc(0);var T;if(d===void 0)for(d=0,T=0;T<u.length;++T)d+=u[T].length;var B=o.allocUnsafe(d),K=0;for(T=0;T<u.length;++T){var X=u[T];if(Ie(X,Uint8Array))K+X.length>B.length?o.from(X).copy(B,K):Uint8Array.prototype.set.call(B,X,K);else if(o.isBuffer(X))X.copy(B,K);else throw new TypeError('"list" argument must be an Array of Buffers');K+=X.length}return B};function O(v,u){if(o.isBuffer(v))return v.length;if(ArrayBuffer.isView(v)||Ie(v,ArrayBuffer))return v.byteLength;if(typeof v!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof v);var d=v.length,T=arguments.length>2&&arguments[2]===!0;if(!T&&d===0)return 0;for(var B=!1;;)switch(u){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return Ae(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return bt(v).length;default:if(B)return T?-1:Ae(v).length;u=(""+u).toLowerCase(),B=!0}}o.byteLength=O;function $(v,u,d){var T=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,u>>>=0,d<=u))return"";for(v||(v="utf8");;)switch(v){case"hex":return ne(this,u,d);case"utf8":case"utf-8":return N(this,u,d);case"ascii":return Z(this,u,d);case"latin1":case"binary":return z(this,u,d);case"base64":return I(this,u,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,u,d);default:if(T)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),T=!0}}o.prototype._isBuffer=!0;function A(v,u,d){var T=v[u];v[u]=v[d],v[d]=T}o.prototype.swap16=function(){var u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var d=0;d<u;d+=2)A(this,d,d+1);return this},o.prototype.swap32=function(){var u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var d=0;d<u;d+=4)A(this,d,d+3),A(this,d+1,d+2);return this},o.prototype.swap64=function(){var u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var d=0;d<u;d+=8)A(this,d,d+7),A(this,d+1,d+6),A(this,d+2,d+5),A(this,d+3,d+4);return this},o.prototype.toString=function(){var u=this.length;return u===0?"":arguments.length===0?N(this,0,u):$.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(u){if(!o.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:o.compare(this,u)===0},o.prototype.inspect=function(){var u="",d=e.INSPECT_MAX_BYTES;return u=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(u+=" ... "),"<Buffer "+u+">"},i&&(o.prototype[i]=o.prototype.inspect),o.prototype.compare=function(u,d,T,B,K){if(Ie(u,Uint8Array)&&(u=o.from(u,u.offset,u.byteLength)),!o.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(d===void 0&&(d=0),T===void 0&&(T=u?u.length:0),B===void 0&&(B=0),K===void 0&&(K=this.length),d<0||T>u.length||B<0||K>this.length)throw new RangeError("out of range index");if(B>=K&&d>=T)return 0;if(B>=K)return-1;if(d>=T)return 1;if(d>>>=0,T>>>=0,B>>>=0,K>>>=0,this===u)return 0;for(var X=K-B,pe=T-d,_e=Math.min(X,pe),he=this.slice(B,K),Fe=u.slice(d,T),ue=0;ue<_e;++ue)if(he[ue]!==Fe[ue]){X=he[ue],pe=Fe[ue];break}return X<pe?-1:pe<X?1:0};function H(v,u,d,T,B){if(v.length===0)return-1;if(typeof d=="string"?(T=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,at(d)&&(d=B?0:v.length-1),d<0&&(d=v.length+d),d>=v.length){if(B)return-1;d=v.length-1}else if(d<0)if(B)d=0;else return-1;if(typeof u=="string"&&(u=o.from(u,T)),o.isBuffer(u))return u.length===0?-1:S(v,u,d,T,B);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?B?Uint8Array.prototype.indexOf.call(v,u,d):Uint8Array.prototype.lastIndexOf.call(v,u,d):S(v,[u],d,T,B);throw new TypeError("val must be string, number or Buffer")}function S(v,u,d,T,B){var K=1,X=v.length,pe=u.length;if(T!==void 0&&(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le")){if(v.length<2||u.length<2)return-1;K=2,X/=2,pe/=2,d/=2}function _e(et,At){return K===1?et[At]:et.readUInt16BE(At*K)}var he;if(B){var Fe=-1;for(he=d;he<X;he++)if(_e(v,he)===_e(u,Fe===-1?0:he-Fe)){if(Fe===-1&&(Fe=he),he-Fe+1===pe)return Fe*K}else Fe!==-1&&(he-=he-Fe),Fe=-1}else for(d+pe>X&&(d=X-pe),he=d;he>=0;he--){for(var ue=!0,ut=0;ut<pe;ut++)if(_e(v,he+ut)!==_e(u,ut)){ue=!1;break}if(ue)return he}return-1}o.prototype.includes=function(u,d,T){return this.indexOf(u,d,T)!==-1},o.prototype.indexOf=function(u,d,T){return H(this,u,d,T,!0)},o.prototype.lastIndexOf=function(u,d,T){return H(this,u,d,T,!1)};function P(v,u,d,T){d=Number(d)||0;var B=v.length-d;T?(T=Number(T),T>B&&(T=B)):T=B;var K=u.length;T>K/2&&(T=K/2);for(var X=0;X<T;++X){var pe=parseInt(u.substr(X*2,2),16);if(at(pe))return X;v[d+X]=pe}return X}function C(v,u,d,T){return Re(Ae(u,v.length-d),v,d,T)}function k(v,u,d,T){return Re(Ze(u),v,d,T)}function E(v,u,d,T){return Re(bt(u),v,d,T)}function D(v,u,d,T){return Re(Qe(u,v.length-d),v,d,T)}o.prototype.write=function(u,d,T,B){if(d===void 0)B="utf8",T=this.length,d=0;else if(T===void 0&&typeof d=="string")B=d,T=this.length,d=0;else if(isFinite(d))d=d>>>0,isFinite(T)?(T=T>>>0,B===void 0&&(B="utf8")):(B=T,T=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var K=this.length-d;if((T===void 0||T>K)&&(T=K),u.length>0&&(T<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");B||(B="utf8");for(var X=!1;;)switch(B){case"hex":return P(this,u,d,T);case"utf8":case"utf-8":return C(this,u,d,T);case"ascii":case"latin1":case"binary":return k(this,u,d,T);case"base64":return E(this,u,d,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,u,d,T);default:if(X)throw new TypeError("Unknown encoding: "+B);B=(""+B).toLowerCase(),X=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(v,u,d){return u===0&&d===v.length?t.fromByteArray(v):t.fromByteArray(v.slice(u,d))}function N(v,u,d){d=Math.min(v.length,d);for(var T=[],B=u;B<d;){var K=v[B],X=null,pe=K>239?4:K>223?3:K>191?2:1;if(B+pe<=d){var _e,he,Fe,ue;switch(pe){case 1:K<128&&(X=K);break;case 2:_e=v[B+1],(_e&192)===128&&(ue=(K&31)<<6|_e&63,ue>127&&(X=ue));break;case 3:_e=v[B+1],he=v[B+2],(_e&192)===128&&(he&192)===128&&(ue=(K&15)<<12|(_e&63)<<6|he&63,ue>2047&&(ue<55296||ue>57343)&&(X=ue));break;case 4:_e=v[B+1],he=v[B+2],Fe=v[B+3],(_e&192)===128&&(he&192)===128&&(Fe&192)===128&&(ue=(K&15)<<18|(_e&63)<<12|(he&63)<<6|Fe&63,ue>65535&&ue<1114112&&(X=ue))}}X===null?(X=65533,pe=1):X>65535&&(X-=65536,T.push(X>>>10&1023|55296),X=56320|X&1023),T.push(X),B+=pe}return M(T)}var U=4096;function M(v){var u=v.length;if(u<=U)return String.fromCharCode.apply(String,v);for(var d="",T=0;T<u;)d+=String.fromCharCode.apply(String,v.slice(T,T+=U));return d}function Z(v,u,d){var T="";d=Math.min(v.length,d);for(var B=u;B<d;++B)T+=String.fromCharCode(v[B]&127);return T}function z(v,u,d){var T="";d=Math.min(v.length,d);for(var B=u;B<d;++B)T+=String.fromCharCode(v[B]);return T}function ne(v,u,d){var T=v.length;(!u||u<0)&&(u=0),(!d||d<0||d>T)&&(d=T);for(var B="",K=u;K<d;++K)B+=Ce[v[K]];return B}function V(v,u,d){for(var T=v.slice(u,d),B="",K=0;K<T.length-1;K+=2)B+=String.fromCharCode(T[K]+T[K+1]*256);return B}o.prototype.slice=function(u,d){var T=this.length;u=~~u,d=d===void 0?T:~~d,u<0?(u+=T,u<0&&(u=0)):u>T&&(u=T),d<0?(d+=T,d<0&&(d=0)):d>T&&(d=T),d<u&&(d=u);var B=this.subarray(u,d);return Object.setPrototypeOf(B,o.prototype),B};function Q(v,u,d){if(v%1!==0||v<0)throw new RangeError("offset is not uint");if(v+u>d)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(u,d,T){u=u>>>0,d=d>>>0,T||Q(u,d,this.length);for(var B=this[u],K=1,X=0;++X<d&&(K*=256);)B+=this[u+X]*K;return B},o.prototype.readUintBE=o.prototype.readUIntBE=function(u,d,T){u=u>>>0,d=d>>>0,T||Q(u,d,this.length);for(var B=this[u+--d],K=1;d>0&&(K*=256);)B+=this[u+--d]*K;return B},o.prototype.readUint8=o.prototype.readUInt8=function(u,d){return u=u>>>0,d||Q(u,1,this.length),this[u]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(u,d){return u=u>>>0,d||Q(u,2,this.length),this[u]|this[u+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(u,d){return u=u>>>0,d||Q(u,2,this.length),this[u]<<8|this[u+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},o.prototype.readIntLE=function(u,d,T){u=u>>>0,d=d>>>0,T||Q(u,d,this.length);for(var B=this[u],K=1,X=0;++X<d&&(K*=256);)B+=this[u+X]*K;return K*=128,B>=K&&(B-=Math.pow(2,8*d)),B},o.prototype.readIntBE=function(u,d,T){u=u>>>0,d=d>>>0,T||Q(u,d,this.length);for(var B=d,K=1,X=this[u+--B];B>0&&(K*=256);)X+=this[u+--B]*K;return K*=128,X>=K&&(X-=Math.pow(2,8*d)),X},o.prototype.readInt8=function(u,d){return u=u>>>0,d||Q(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},o.prototype.readInt16LE=function(u,d){u=u>>>0,d||Q(u,2,this.length);var T=this[u]|this[u+1]<<8;return T&32768?T|4294901760:T},o.prototype.readInt16BE=function(u,d){u=u>>>0,d||Q(u,2,this.length);var T=this[u+1]|this[u]<<8;return T&32768?T|4294901760:T},o.prototype.readInt32LE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},o.prototype.readInt32BE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},o.prototype.readFloatLE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),r.read(this,u,!0,23,4)},o.prototype.readFloatBE=function(u,d){return u=u>>>0,d||Q(u,4,this.length),r.read(this,u,!1,23,4)},o.prototype.readDoubleLE=function(u,d){return u=u>>>0,d||Q(u,8,this.length),r.read(this,u,!0,52,8)},o.prototype.readDoubleBE=function(u,d){return u=u>>>0,d||Q(u,8,this.length),r.read(this,u,!1,52,8)};function ee(v,u,d,T,B,K){if(!o.isBuffer(v))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>B||u<K)throw new RangeError('"value" argument is out of bounds');if(d+T>v.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(u,d,T,B){if(u=+u,d=d>>>0,T=T>>>0,!B){var K=Math.pow(2,8*T)-1;ee(this,u,d,T,K,0)}var X=1,pe=0;for(this[d]=u&255;++pe<T&&(X*=256);)this[d+pe]=u/X&255;return d+T},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(u,d,T,B){if(u=+u,d=d>>>0,T=T>>>0,!B){var K=Math.pow(2,8*T)-1;ee(this,u,d,T,K,0)}var X=T-1,pe=1;for(this[d+X]=u&255;--X>=0&&(pe*=256);)this[d+X]=u/pe&255;return d+T},o.prototype.writeUint8=o.prototype.writeUInt8=function(u,d,T){return u=+u,d=d>>>0,T||ee(this,u,d,1,255,0),this[d]=u&255,d+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(u,d,T){return u=+u,d=d>>>0,T||ee(this,u,d,2,65535,0),this[d]=u&255,this[d+1]=u>>>8,d+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(u,d,T){return u=+u,d=d>>>0,T||ee(this,u,d,2,65535,0),this[d]=u>>>8,this[d+1]=u&255,d+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(u,d,T){return u=+u,d=d>>>0,T||ee(this,u,d,4,4294967295,0),this[d+3]=u>>>24,this[d+2]=u>>>16,this[d+1]=u>>>8,this[d]=u&255,d+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(u,d,T){return u=+u,d=d>>>0,T||ee(this,u,d,4,4294967295,0),this[d]=u>>>24,this[d+1]=u>>>16,this[d+2]=u>>>8,this[d+3]=u&255,d+4},o.prototype.writeIntLE=function(u,d,T,B){if(u=+u,d=d>>>0,!B){var K=Math.pow(2,8*T-1);ee(this,u,d,T,K-1,-K)}var X=0,pe=1,_e=0;for(this[d]=u&255;++X<T&&(pe*=256);)u<0&&_e===0&&this[d+X-1]!==0&&(_e=1),this[d+X]=(u/pe>>0)-_e&255;return d+T},o.prototype.writeIntBE=function(u,d,T,B){if(u=+u,d=d>>>0,!B){var K=Math.pow(2,8*T-1);ee(this,u,d,T,K-1,-K)}var X=T-1,pe=1,_e=0;for(this[d+X]=u&255;--X>=0&&(pe*=256);)u<0&&_e===0&&this[d+X+1]!==0&&(_e=1),this[d+X]=(u/pe>>0)-_e&255;return d+T},o.prototype.writeInt8=function(u,d,T){return u=+u,d=d>>>0,T||ee(this,u,d,1,127,-128),u<0&&(u=255+u+1),this[d]=u&255,d+1},o.prototype.writeInt16LE=function(u,d,T){return u=+u,d=d>>>0,T||ee(this,u,d,2,32767,-32768),this[d]=u&255,this[d+1]=u>>>8,d+2},o.prototype.writeInt16BE=function(u,d,T){return u=+u,d=d>>>0,T||ee(this,u,d,2,32767,-32768),this[d]=u>>>8,this[d+1]=u&255,d+2},o.prototype.writeInt32LE=function(u,d,T){return u=+u,d=d>>>0,T||ee(this,u,d,4,2147483647,-2147483648),this[d]=u&255,this[d+1]=u>>>8,this[d+2]=u>>>16,this[d+3]=u>>>24,d+4},o.prototype.writeInt32BE=function(u,d,T){return u=+u,d=d>>>0,T||ee(this,u,d,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[d]=u>>>24,this[d+1]=u>>>16,this[d+2]=u>>>8,this[d+3]=u&255,d+4};function G(v,u,d,T,B,K){if(d+T>v.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function fe(v,u,d,T,B){return u=+u,d=d>>>0,B||G(v,u,d,4),r.write(v,u,d,T,23,4),d+4}o.prototype.writeFloatLE=function(u,d,T){return fe(this,u,d,!0,T)},o.prototype.writeFloatBE=function(u,d,T){return fe(this,u,d,!1,T)};function ie(v,u,d,T,B){return u=+u,d=d>>>0,B||G(v,u,d,8),r.write(v,u,d,T,52,8),d+8}o.prototype.writeDoubleLE=function(u,d,T){return ie(this,u,d,!0,T)},o.prototype.writeDoubleBE=function(u,d,T){return ie(this,u,d,!1,T)},o.prototype.copy=function(u,d,T,B){if(!o.isBuffer(u))throw new TypeError("argument should be a Buffer");if(T||(T=0),!B&&B!==0&&(B=this.length),d>=u.length&&(d=u.length),d||(d=0),B>0&&B<T&&(B=T),B===T||u.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(T<0||T>=this.length)throw new RangeError("Index out of range");if(B<0)throw new RangeError("sourceEnd out of bounds");B>this.length&&(B=this.length),u.length-d<B-T&&(B=u.length-d+T);var K=B-T;return this===u&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(d,T,B):Uint8Array.prototype.set.call(u,this.subarray(T,B),d),K},o.prototype.fill=function(u,d,T,B){if(typeof u=="string"){if(typeof d=="string"?(B=d,d=0,T=this.length):typeof T=="string"&&(B=T,T=this.length),B!==void 0&&typeof B!="string")throw new TypeError("encoding must be a string");if(typeof B=="string"&&!o.isEncoding(B))throw new TypeError("Unknown encoding: "+B);if(u.length===1){var K=u.charCodeAt(0);(B==="utf8"&&K<128||B==="latin1")&&(u=K)}}else typeof u=="number"?u=u&255:typeof u=="boolean"&&(u=Number(u));if(d<0||this.length<d||this.length<T)throw new RangeError("Out of range index");if(T<=d)return this;d=d>>>0,T=T===void 0?this.length:T>>>0,u||(u=0);var X;if(typeof u=="number")for(X=d;X<T;++X)this[X]=u;else{var pe=o.isBuffer(u)?u:o.from(u,B),_e=pe.length;if(_e===0)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(X=0;X<T-d;++X)this[X+d]=pe[X%_e]}return this};var ae=/[^+/0-9A-Za-z-_]/g;function Se(v){if(v=v.split("=")[0],v=v.trim().replace(ae,""),v.length<2)return"";for(;v.length%4!==0;)v=v+"=";return v}function Ae(v,u){u=u||1/0;for(var d,T=v.length,B=null,K=[],X=0;X<T;++X){if(d=v.charCodeAt(X),d>55295&&d<57344){if(!B){if(d>56319){(u-=3)>-1&&K.push(239,191,189);continue}else if(X+1===T){(u-=3)>-1&&K.push(239,191,189);continue}B=d;continue}if(d<56320){(u-=3)>-1&&K.push(239,191,189),B=d;continue}d=(B-55296<<10|d-56320)+65536}else B&&(u-=3)>-1&&K.push(239,191,189);if(B=null,d<128){if((u-=1)<0)break;K.push(d)}else if(d<2048){if((u-=2)<0)break;K.push(d>>6|192,d&63|128)}else if(d<65536){if((u-=3)<0)break;K.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((u-=4)<0)break;K.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return K}function Ze(v){for(var u=[],d=0;d<v.length;++d)u.push(v.charCodeAt(d)&255);return u}function Qe(v,u){for(var d,T,B,K=[],X=0;X<v.length&&!((u-=2)<0);++X)d=v.charCodeAt(X),T=d>>8,B=d%256,K.push(B),K.push(T);return K}function bt(v){return t.toByteArray(Se(v))}function Re(v,u,d,T){for(var B=0;B<T&&!(B+d>=u.length||B>=v.length);++B)u[B+d]=v[B];return B}function Ie(v,u){return v instanceof u||v!=null&&v.constructor!=null&&v.constructor.name!=null&&v.constructor.name===u.name}function at(v){return v!==v}var Ce=function(){for(var v="0123456789abcdef",u=new Array(256),d=0;d<16;++d)for(var T=d*16,B=0;B<16;++B)u[T+B]=v[d]+v[B];return u}()})(ka);/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(e,t){var r=ka,i=r.Buffer;function a(s,o){for(var f in s)o[f]=s[f]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=n);function n(s,o,f){return i(s,o,f)}n.prototype=Object.create(i.prototype),a(i,n),n.from=function(s,o,f){if(typeof s=="number")throw new TypeError("Argument must not be a number");return i(s,o,f)},n.alloc=function(s,o,f){if(typeof s!="number")throw new TypeError("Argument must be a number");var p=i(s);return o!==void 0?typeof f=="string"?p.fill(o,f):p.fill(o):p.fill(0),p},n.allocUnsafe=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return i(s)},n.allocUnsafeSlow=function(s){if(typeof s!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(s)}})(ea,ea.exports);var yp=ea.exports,_p=yp.Buffer;function Mn(e,t){this._block=_p.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Mn.prototype.update=function(e,t){typeof e=="string"&&(t=t||"utf8",e=_p.from(e,t));for(var r=this._block,i=this._blockSize,a=e.length,n=this._len,s=0;s<a;){for(var o=n%i,f=Math.min(a-s,i-o),p=0;p<f;p++)r[o+p]=e[s+p];n+=f,s+=f,n%i===0&&this._update(r)}return this._len+=a,this};Mn.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(r&4294967295)>>>0,a=(r-i)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var n=this._hash();return e?n.toString(e):n};Mn.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var dm=Mn,hm=nm,gp=dm,mm=yp.Buffer,ym=[1518500249,1859775393,-1894007588,-899497514],_m=new Array(80);function Bs(){this.init(),this._w=_m,gp.call(this,64,56)}hm(Bs,gp);Bs.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function gm(e){return e<<1|e>>>31}function wm(e){return e<<5|e>>>27}function bm(e){return e<<30|e>>>2}function vm(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}Bs.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,a=this._c|0,n=this._d|0,s=this._e|0,o=0;o<16;++o)t[o]=e.readInt32BE(o*4);for(;o<80;++o)t[o]=gm(t[o-3]^t[o-8]^t[o-14]^t[o-16]);for(var f=0;f<80;++f){var p=~~(f/20),c=wm(r)+vm(p,i,a,n)+s+t[f]+ym[p]|0;s=n,n=a,a=bm(i),i=r,r=c}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=n+this._d|0,this._e=s+this._e|0};Bs.prototype._hash=function(){var e=mm.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var xm=Bs;const km=pa(xm);function Sm(e){let t="";for(const r of new Uint8Array(e))r<16&&(t+="0"),t+=r.toString(16);return t}let vi=null;async function Vo(e){return vi===null&&(vi=await Pm()),vi?wp(e):Em(e)}function Em(e){return new km().update(e).digest("hex")}async function wp(e){const t=await crypto.subtle.digest("SHA-1",e);return Sm(t)}async function Pm(){try{if(await wp(new Uint8Array([]))==="da39a3ee5e6b4b0d3255bfef95601890afd80709")return!0}catch{}return!1}function Am(e){const t=[];let r=0,i=0;do{r=e.readUInt8();const a=r&127;t.push(a),i=r&128}while(i);return t.reduce((a,n)=>a+1<<7|n,-1)}function Tm(e,t){let r=t,i=4,a=null;do a=e.readUInt8(),r|=(a&127)<<i,i+=7;while(a&128);return r}class Ps{constructor(t){Object.assign(this,t),this.offsetCache={}}static async fromIdx({idx:t,getExternalRefDelta:r}){const i=new br(t);if(i.slice(4).toString("hex")!=="ff744f63")return;const n=i.readUInt32BE();if(n!==2)throw new $e(`Unable to read version ${n} packfile IDX. (Only version 2 supported)`);if(t.byteLength>2048*1024*1024)throw new $e("To keep implementation simple, I haven't implemented the layer 5 feature needed to support packfiles > 2GB in size.");i.seek(i.tell()+4*255);const s=i.readUInt32BE(),o=[];for(let c=0;c<s;c++){const m=i.slice(20).toString("hex");o[c]=m}i.seek(i.tell()+4*s);const f=new Map;for(let c=0;c<s;c++)f.set(o[c],i.readUInt32BE());const p=i.slice(20).toString("hex");return new Ps({hashes:o,crcs:{},offsets:f,packfileSha:p,getExternalRefDelta:r})}static async fromPack({pack:t,getExternalRefDelta:r,onProgress:i}){const a={1:"commit",2:"tree",3:"blob",4:"tag",6:"ofs-delta",7:"ref-delta"},n={},s=t.slice(-20).toString("hex"),o=[],f={},p=new Map;let c=null,m=null;await tm([t],async({data:g,type:b,reference:R,offset:O,num:$})=>{c===null&&(c=$);const A=Math.floor((c-$)*100/c);A!==m&&i&&await i({phase:"Receiving objects",loaded:c-$,total:c}),m=A,b=a[b],["commit","tree","blob","tag"].includes(b)?n[O]={type:b,offset:O}:b==="ofs-delta"?n[O]={type:b,offset:O}:b==="ref-delta"&&(n[O]={type:b,offset:O})});const h=Object.keys(n).map(Number);for(const[g,b]of h.entries()){const R=g+1===h.length?t.byteLength-20:h[g+1],O=n[b],$=ad.buf(t.slice(b,R))>>>0;O.end=R,O.crc=$}const _=new Ps({pack:Promise.resolve(t),packfileSha:s,crcs:f,hashes:o,offsets:p,getExternalRefDelta:r});m=null;let L=0;const y=[0,0,0,0,0,0,0,0,0,0,0,0];for(let g in n){g=Number(g);const b=Math.floor(L*100/c);b!==m&&i&&await i({phase:"Resolving deltas",loaded:L,total:c}),L++,m=b;const R=n[g];if(!R.oid)try{_.readDepth=0,_.externalReadDepth=0;const{type:O,object:$}=await _.readSlice({start:g});y[_.readDepth]+=1;const A=await Vo(od.wrap({type:O,object:$}));R.oid=A,o.push(A),p.set(A,g),f[A]=R.crc}catch{continue}}return o.sort(),_}async toBuffer(){const t=[],r=(p,c)=>{t.push(Buffer.from(p,c))};r("ff744f63","hex"),r("00000002","hex");const i=new br(Buffer.alloc(256*4));for(let p=0;p<256;p++){let c=0;for(const m of this.hashes)parseInt(m.slice(0,2),16)<=p&&c++;i.writeUInt32BE(c)}t.push(i.buffer);for(const p of this.hashes)r(p,"hex");const a=new br(Buffer.alloc(this.hashes.length*4));for(const p of this.hashes)a.writeUInt32BE(this.crcs[p]);t.push(a.buffer);const n=new br(Buffer.alloc(this.hashes.length*4));for(const p of this.hashes)n.writeUInt32BE(this.offsets.get(p));t.push(n.buffer),r(this.packfileSha,"hex");const s=Buffer.concat(t),o=await Vo(s),f=Buffer.alloc(20);return f.write(o,"hex"),Buffer.concat([s,f])}async load({pack:t}){this.pack=t}async unload(){this.pack=null}async read({oid:t}){if(!this.offsets.get(t)){if(this.getExternalRefDelta)return this.externalReadDepth++,this.getExternalRefDelta(t);throw new $e(`Could not read object ${t} from packfile`)}const r=this.offsets.get(t);return this.readSlice({start:r})}async readSlice({start:t}){if(this.offsetCache[t])return Object.assign({},this.offsetCache[t]);this.readDepth++;const r={16:"commit",32:"tree",48:"blob",64:"tag",96:"ofs_delta",112:"ref_delta"};if(!this.pack)throw new $e("Tried to read from a GitPackIndex with no packfile loaded into memory");const i=(await this.pack).slice(t),a=new br(i),n=a.readUInt8(),s=n&112;let o=r[s];if(o===void 0)throw new $e("Unrecognized type: 0b"+s.toString(2));const f=n&15;let p=f;n&128&&(p=Tm(a,f));let m=null,h=null;if(o==="ofs_delta"){const L=Am(a),y=t-L;({object:m,type:o}=await this.readSlice({start:y}))}if(o==="ref_delta"){const L=a.slice(20).toString("hex");({object:m,type:o}=await this.read({oid:L}))}const _=i.slice(a.tell());if(h=Buffer.from(await sm(_)),h.byteLength!==p)throw new $e(`Packfile told us object would have length ${p} but it had length ${h.byteLength}`);return m&&(h=Buffer.from(ld(h,m))),this.readDepth>3&&(this.offsetCache[t]={type:o,object:h}),{type:o,format:"content",object:h}}}class As extends es{constructor(t){super(`Expected a 40-char hex object id but saw "${t}".`),this.code=this.name=As.code,this.data={value:t}}}As.code="InvalidOidError";class qn extends es{constructor(t,r,i,a){super(`Object ${t} ${a?`at ${a}`:""}was anticipated to be a ${i} but it is a ${r}.`),this.code=this.name=qn.code,this.data={oid:t,actual:r,expected:i,filepath:a}}}qn.code="ObjectTypeError";async function bp(e,t){const r=xf(e);for(;;){const{value:i,done:a}=await r.next();if(i&&await t(i),a)break}r.return&&r.return()}async function Ts(e){let t=0;const r=[];await bp(e,n=>{r.push(n),t+=n.byteLength});const i=new Uint8Array(t);let a=0;for(const n of r)i.set(n,a),a+=n.byteLength;return i}class xi{constructor(){this._queue=[]}write(t){if(this._ended)throw Error("You cannot write to a FIFO that has already been ended!");if(this._waiting){const r=this._waiting;this._waiting=null,r({value:t})}else this._queue.push(t)}end(){if(this._ended=!0,this._waiting){const t=this._waiting;this._waiting=null,t({done:!0})}}destroy(t){this.error=t,this.end()}async next(){if(this._queue.length>0)return{value:this._queue.shift()};if(this._ended)return{done:!0};if(this._waiting)throw Error("You cannot call read until the previous call to read has returned!");return new Promise(t=>{this._waiting=t})}}class Cm{static demux(t){const r=Ge.streamReader(t),i=new xi,a=new xi,n=new xi,s=async function(){const o=await r();if(o===null)return s();if(o===!0){i.end(),n.end(),t.error?a.destroy(t.error):a.end();return}switch(o[0]){case 1:{a.write(o.slice(1));break}case 2:{n.write(o.slice(1));break}case 3:{const f=o.slice(1);n.write(f),i.end(),n.end(),a.destroy(new Error(f.toString("utf8")));return}default:i.write(o)}s()};return s(),{packetlines:i,packfile:a,progress:n}}}async function vp(e){const{packetlines:t,packfile:r,progress:i}=Cm.demux(e),a=[],n=[],s=[];let o=!1,f=!1;return new Promise((p,c)=>{bp(t,m=>{const h=m.toString("utf8").trim();if(h.startsWith("shallow")){const _=h.slice(-41).trim();_.length!==40&&c(new As(_)),a.push(_)}else if(h.startsWith("unshallow")){const _=h.slice(-41).trim();_.length!==40&&c(new As(_)),n.push(_)}else if(h.startsWith("ACK")){const[,_,L]=h.split(" ");s.push({oid:_,status:L}),L||(f=!0)}else h.startsWith("NAK")?(o=!0,f=!0):(f=!0,o=!0);f&&(e.error?c(e.error):p({shallows:a,unshallows:n,acks:s,nak:o,packfile:r,progress:i}))}).finally(()=>{f||(e.error?c(e.error):p({shallows:a,unshallows:n,acks:s,nak:o,packfile:r,progress:i}))})})}typeof globalThis.Buffer>"u"&&(globalThis.Buffer=ka.Buffer);async function Om(e,t,r){const i=await kp(e,t),a=await Hm(i,t,r),n=await $m(e,r.map(o=>a[o].oid)),s={};return await Promise.all(r.map(async o=>{s[o]=await Sp(n,a[o].oid)})),s}async function Lm(e,t){const r=await kp(e,t),i=await Dm(r,t);return i!=null&&i.object?xp(i):[]}async function Rm(e,t){switch((t.type==="infer"||t.type===void 0)&&(["","HEAD"].includes(t.value)?t={value:t.value,type:"refname"}:typeof t.value=="string"&&t.value.length===40&&(t={value:t.value,type:"commit"})),t.type==="branch"&&(t={value:`refs/heads/${t.value}`,type:"refname"}),t.type){case"commit":return t.value;case"refname":{const r=await Im(e,t.value);if(!(t.value in r))throw new Error(`Branch ${t.value} not found`);return r[t.value]}default:throw new Error(`Invalid ref type: ${t.type}`)}}function xp(e){return e.object.map(t=>{if(t.type==="blob")return{name:t.path,type:"file"};if(t.type==="tree"&&t.object)return{name:t.path,type:"folder",children:xp(t)}}).filter(t=>!!(t!=null&&t.name))}async function Im(e,t){const r=Buffer.from(await Ts([Ge.encode(`command=ls-refs
65
65
  `),Ge.encode(`agent=git/2.37.3
66
66
  `),Ge.encode(`object-format=sha1
67
67
  `),Ge.delim(),Ge.encode(`peel
68
68
  `),Ge.encode(`ref-prefix ${t}
69
- `),Ge.flush()])),i=await fetch(e+"/git-upload-pack",{method:"POST",headers:{Accept:"application/x-git-upload-pack-advertisement","content-type":"application/x-git-upload-pack-request","Content-Length":`${r.length}`,"Git-Protocol":"version=2"},body:r}),a={};for await(const n of Tm(i)){const s=n.indexOf(" "),o=n.slice(0,s),f=n.slice(s+1,n.length-1);a[f]=o}return a}async function gp(e,t){const r=Buffer.from(await Ts([Ge.encode(`want ${t} multi_ack_detailed no-done side-band-64k thin-pack ofs-delta agent=git/2.37.3 filter
69
+ `),Ge.flush()])),i=await fetch(e+"/git-upload-pack",{method:"POST",headers:{Accept:"application/x-git-upload-pack-advertisement","content-type":"application/x-git-upload-pack-request","Content-Length":`${r.length}`,"Git-Protocol":"version=2"},body:r}),a={};for await(const n of Fm(i)){const s=n.indexOf(" "),o=n.slice(0,s),f=n.slice(s+1,n.length-1);a[f]=o}return a}async function kp(e,t){const r=Buffer.from(await Ts([Ge.encode(`want ${t} multi_ack_detailed no-done side-band-64k thin-pack ofs-delta agent=git/2.37.3 filter
70
70
  `),Ge.encode(`filter blob:none
71
71
  `),Ge.encode(`shallow ${t}
72
72
  `),Ge.encode(`deepen 1
73
73
  `),Ge.flush(),Ge.encode(`done
74
74
  `),Ge.encode(`done
75
- `)])),i=await fetch(e+"/git-upload-pack",{method:"POST",headers:{Accept:"application/x-git-upload-pack-advertisement","content-type":"application/x-git-upload-pack-request","Content-Length":`${r.length}`},body:r}),a=bp(i.body),n=await yp(a),s=Buffer.from(await Ts(n.packfile)),o=await Ps.fromPack({pack:s}),f=o.read;return o.read=async function({oid:p,...c}){const m=await f.call(this,{oid:p,...c});return m.oid=p,m},o}async function Em(e,t){const r=await e.read({oid:t});Sr(r);const i=await e.read({oid:r.object.tree}),a=[i];for(;a.length>0;){const n=a.pop(),s=await e.read({oid:n.oid});if(Sr(s),n.object=s.object,s.type==="tree")for(const o of s.object)o.type==="tree"&&a.push(o)}return i}async function Pm(e,t,r){const i=await e.read({oid:t});Sr(i);const a=await e.read({oid:i.object.tree});Sr(a);const n={};for(const s of r){let o=a;const f=s.split("/");for(const p of f){if(o.type!=="tree")throw new Error(`Path not found in the repo: ${s}`);let c=!1;for(const m of o.object)if(m.path===p){try{o=await e.read({oid:m.oid}),Sr(o)}catch{o=m}c=!0;break}if(!c)throw new Error(`Path not found in the repo: ${s}`)}n[s]=o}return n}async function Am(e,t){const r=Buffer.from(await Ts([...t.map(o=>Ge.encode(`want ${o} multi_ack_detailed no-done side-band-64k thin-pack ofs-delta agent=git/2.37.3
75
+ `)])),i=await fetch(e+"/git-upload-pack",{method:"POST",headers:{Accept:"application/x-git-upload-pack-advertisement","content-type":"application/x-git-upload-pack-request","Content-Length":`${r.length}`},body:r}),a=Ep(i.body),n=await vp(a),s=Buffer.from(await Ts(n.packfile)),o=await Ps.fromPack({pack:s}),f=o.read;return o.read=async function({oid:p,...c}){const m=await f.call(this,{oid:p,...c});return m.oid=p,m},o}async function Dm(e,t){const r=await e.read({oid:t});Sr(r);const i=await e.read({oid:r.object.tree}),a=[i];for(;a.length>0;){const n=a.pop(),s=await e.read({oid:n.oid});if(Sr(s),n.object=s.object,s.type==="tree")for(const o of s.object)o.type==="tree"&&a.push(o)}return i}async function Hm(e,t,r){const i=await e.read({oid:t});Sr(i);const a=await e.read({oid:i.object.tree});Sr(a);const n={};for(const s of r){let o=a;const f=s.split("/");for(const p of f){if(o.type!=="tree")throw new Error(`Path not found in the repo: ${s}`);let c=!1;for(const m of o.object)if(m.path===p){try{o=await e.read({oid:m.oid}),Sr(o)}catch{o=m}c=!0;break}if(!c)throw new Error(`Path not found in the repo: ${s}`)}n[s]=o}return n}async function $m(e,t){const r=Buffer.from(await Ts([...t.map(o=>Ge.encode(`want ${o} multi_ack_detailed no-done side-band-64k thin-pack ofs-delta agent=git/2.37.3
76
76
  `)),Ge.flush(),Ge.encode(`done
77
- `)])),i=await fetch(e+"/git-upload-pack",{method:"POST",headers:{Accept:"application/x-git-upload-pack-advertisement","content-type":"application/x-git-upload-pack-request","Content-Length":`${r.length}`},body:r}),a=bp(i.body),n=await yp(a),s=Buffer.from(await Ts(n.packfile));return await Ps.fromPack({pack:s})}async function wp(e,t){const r=await e.read({oid:t});if(Sr(r),r.type==="blob")return r.object;const i={};for(const{path:a,oid:n,type:s}of r.object)if(s==="blob"){const o=await e.read({oid:n});Sr(o),i[a]=o.object}else s==="tree"&&(i[a]=await wp(e,n));return i}function Sr(e){if(e.object instanceof Buffer)switch(e.type){case"commit":e.object=mt.from(e.object).parse();break;case"tree":e.object=ua.from(e.object).entries();break;case"blob":e.object=new Uint8Array(e.object),e.format="content";break;case"tag":e.object=hs.from(e.object).parse();break;default:throw new qn(e.oid,e.type,"blob|commit|tag|tree")}}async function*Tm(e){const t=await e.text();let r=0;for(;r<=t.length;){const i=parseInt(t.substring(r,r+4),16);if(i===0)break;yield t.substring(r+4,r+i),r+=i}}function bp(e){if(e[Symbol.asyncIterator])return e;const t=e.getReader();return{next(){return t.read()},return(){return t.releaseLock(),{}},[Symbol.asyncIterator](){return this}}}function Cm(e,t){t=$n(t);const r=["",".","/"].includes(t);let i=e;if(r)t="";else{const s=t.split("/");for(const o of s){const f=i==null?void 0:i.find(p=>p.name===o);if((f==null?void 0:f.type)==="folder")i=f.children;else return f?[f.name]:[]}}const a=[],n=[{tree:i,path:t}];for(;n.length>0;){const{tree:s,path:o}=n.pop();for(const f of s){const p=`${o}${o?"/":""}${f.name}`;f.type==="folder"?n.push({tree:f.children,path:p}):a.push(p)}}return a}const Cs=15,Ji=30,Qi=19,Om=29,Tn=256,xa=Tn+1+Om,qo=2*xa+1,os=256,Lm=7,Ko=16,zo=17,Vo=18,bi=8*2,Cn=-1,Rm=1,Zs=2,Im=0,Mr=0,Go=1,Dm=3,ot=4,Ct=0,vp=1,Ys=2,Lt=-2,$m=-3,Br=-5;function Kn(e){return zn(e.map(([t,r])=>new Array(t).fill(r,0,t)))}function zn(e){return e.reduce((t,r)=>t.concat(Array.isArray(r)?zn(r):r),[])}const Zo=[0,1,2,3].concat(...Kn([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function Oe(){const e=this;function t(a){const n=e.dyn_tree,s=e.stat_desc.static_tree,o=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,p=e.stat_desc.max_length;let c,m,h,_,L,y,g=0;for(_=0;_<=Cs;_++)a.bl_count[_]=0;for(n[a.heap[a.heap_max]*2+1]=0,c=a.heap_max+1;c<qo;c++)m=a.heap[c],_=n[n[m*2+1]*2+1]+1,_>p&&(_=p,g++),n[m*2+1]=_,!(m>e.max_code)&&(a.bl_count[_]++,L=0,m>=f&&(L=o[m-f]),y=n[m*2],a.opt_len+=y*(_+L),s&&(a.static_len+=y*(s[m*2+1]+L)));if(g!==0){do{for(_=p-1;a.bl_count[_]===0;)_--;a.bl_count[_]--,a.bl_count[_+1]+=2,a.bl_count[p]--,g-=2}while(g>0);for(_=p;_!==0;_--)for(m=a.bl_count[_];m!==0;)h=a.heap[--c],!(h>e.max_code)&&(n[h*2+1]!=_&&(a.opt_len+=(_-n[h*2+1])*n[h*2],n[h*2+1]=_),m--)}}function r(a,n){let s=0;do s|=a&1,a>>>=1,s<<=1;while(--n>0);return s>>>1}function i(a,n,s){const o=[];let f=0,p,c,m;for(p=1;p<=Cs;p++)o[p]=f=f+s[p-1]<<1;for(c=0;c<=n;c++)m=a[c*2+1],m!==0&&(a[c*2]=r(o[m]++,m))}e.build_tree=function(a){const n=e.dyn_tree,s=e.stat_desc.static_tree,o=e.stat_desc.elems;let f,p,c=-1,m;for(a.heap_len=0,a.heap_max=qo,f=0;f<o;f++)n[f*2]!==0?(a.heap[++a.heap_len]=c=f,a.depth[f]=0):n[f*2+1]=0;for(;a.heap_len<2;)m=a.heap[++a.heap_len]=c<2?++c:0,n[m*2]=1,a.depth[m]=0,a.opt_len--,s&&(a.static_len-=s[m*2+1]);for(e.max_code=c,f=Math.floor(a.heap_len/2);f>=1;f--)a.pqdownheap(n,f);m=o;do f=a.heap[1],a.heap[1]=a.heap[a.heap_len--],a.pqdownheap(n,1),p=a.heap[1],a.heap[--a.heap_max]=f,a.heap[--a.heap_max]=p,n[m*2]=n[f*2]+n[p*2],a.depth[m]=Math.max(a.depth[f],a.depth[p])+1,n[f*2+1]=n[p*2+1]=m,a.heap[1]=m++,a.pqdownheap(n,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],t(a),i(n,e.max_code,a.bl_count)}}Oe._length_code=[0,1,2,3,4,5,6,7].concat(...Kn([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]]));Oe.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0];Oe.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576];Oe.d_code=function(e){return e<256?Zo[e]:Zo[256+(e>>>7)]};Oe.extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0];Oe.extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];Oe.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];Oe.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function Ye(e,t,r,i,a){const n=this;n.static_tree=e,n.extra_bits=t,n.extra_base=r,n.elems=i,n.max_length=a}const Hm=[12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227],Fm=Kn([[144,8],[112,9],[24,7],[8,8]]);Ye.static_ltree=zn(Hm.map((e,t)=>[e,Fm[t]]));const Nm=[0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23],Bm=Kn([[30,5]]);Ye.static_dtree=zn(Nm.map((e,t)=>[e,Bm[t]]));Ye.static_l_desc=new Ye(Ye.static_ltree,Oe.extra_lbits,Tn+1,xa,Cs);Ye.static_d_desc=new Ye(Ye.static_dtree,Oe.extra_dbits,0,Ji,Cs);Ye.static_bl_desc=new Ye(null,Oe.extra_blbits,0,Qi,Lm);const jm=9,Wm=8;function Ft(e,t,r,i,a){const n=this;n.good_length=e,n.max_lazy=t,n.nice_length=r,n.max_chain=i,n.func=a}const xp=0,hn=1,gr=2,Tt=[new Ft(0,0,0,0,xp),new Ft(4,4,8,4,hn),new Ft(4,5,16,8,hn),new Ft(4,6,32,32,hn),new Ft(4,4,16,16,gr),new Ft(8,16,32,32,gr),new Ft(8,16,128,128,gr),new Ft(8,32,128,256,gr),new Ft(32,128,258,1024,gr),new Ft(32,258,258,4096,gr)],Xs=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],vt=0,Js=1,ls=2,Qs=3,Um=32,vi=42,en=113,fs=666,xi=8,Mm=0,ki=1,qm=2,$e=3,mn=258,ht=mn+$e+1;function Yo(e,t,r,i){const a=e[t*2],n=e[r*2];return a<n||a==n&&i[t]<=i[r]}function Km(){const e=this;let t,r,i,a,n,s,o,f,p,c,m,h,_,L,y,g,b,R,O,H,A,$,S,P,C,k,E,D,I,B,W,M,Z;const z=new Oe,ne=new Oe,V=new Oe;e.depth=[];let Q,ee,G,fe,ie,ae;e.bl_count=[],e.heap=[],W=[],M=[],Z=[];function Se(){p=2*n,m[_-1]=0;for(let U=0;U<_-1;U++)m[U]=0;k=Tt[E].max_lazy,I=Tt[E].good_length,B=Tt[E].nice_length,C=Tt[E].max_chain,A=0,b=0,S=0,R=P=$e-1,H=0,h=0}function Ae(){let U;for(U=0;U<xa;U++)W[U*2]=0;for(U=0;U<Ji;U++)M[U*2]=0;for(U=0;U<Qi;U++)Z[U*2]=0;W[os*2]=1,e.opt_len=e.static_len=0,ee=G=0}function Ze(){z.dyn_tree=W,z.stat_desc=Ye.static_l_desc,ne.dyn_tree=M,ne.stat_desc=Ye.static_d_desc,V.dyn_tree=Z,V.stat_desc=Ye.static_bl_desc,ie=0,ae=0,fe=8,Ae()}e.pqdownheap=function(U,Y){const q=e.heap,J=q[Y];let se=Y<<1;for(;se<=e.heap_len&&(se<e.heap_len&&Yo(U,q[se+1],q[se],e.depth)&&se++,!Yo(U,J,q[se],e.depth));)q[Y]=q[se],Y=se,se<<=1;q[Y]=J};function Qe(U,Y){let q=-1,J,se=U[0*2+1],le=0,de=7,We=4;se===0&&(de=138,We=3),U[(Y+1)*2+1]=65535;for(let ce=0;ce<=Y;ce++)J=se,se=U[(ce+1)*2+1],!(++le<de&&J==se)&&(le<We?Z[J*2]+=le:J!==0?(J!=q&&Z[J*2]++,Z[Ko*2]++):le<=10?Z[zo*2]++:Z[Vo*2]++,le=0,q=J,se===0?(de=138,We=3):J==se?(de=6,We=3):(de=7,We=4))}function bt(){let U;for(Qe(W,z.max_code),Qe(M,ne.max_code),V.build_tree(e),U=Qi-1;U>=3&&Z[Oe.bl_order[U]*2+1]===0;U--);return e.opt_len+=3*(U+1)+5+5+4,U}function Re(U){e.pending_buf[e.pending++]=U}function Ie(U){Re(U&255),Re(U>>>8&255)}function at(U){Re(U>>8&255),Re(U&255&255)}function Ce(U,Y){let q;const J=Y;ae>bi-J?(q=U,ie|=q<<ae&65535,Ie(ie),ie=q>>>bi-ae,ae+=J-bi):(ie|=U<<ae&65535,ae+=J)}function v(U,Y){const q=U*2;Ce(Y[q]&65535,Y[q+1]&65535)}function u(U,Y){let q,J=-1,se,le=U[0*2+1],de=0,We=7,ce=4;for(le===0&&(We=138,ce=3),q=0;q<=Y;q++)if(se=le,le=U[(q+1)*2+1],!(++de<We&&se==le)){if(de<ce)do v(se,Z);while(--de!==0);else se!==0?(se!=J&&(v(se,Z),de--),v(Ko,Z),Ce(de-3,2)):de<=10?(v(zo,Z),Ce(de-3,3)):(v(Vo,Z),Ce(de-11,7));de=0,J=se,le===0?(We=138,ce=3):se==le?(We=6,ce=3):(We=7,ce=4)}}function d(U,Y,q){let J;for(Ce(U-257,5),Ce(Y-1,5),Ce(q-4,4),J=0;J<q;J++)Ce(Z[Oe.bl_order[J]*2+1],3);u(W,U-1),u(M,Y-1)}function T(){ae==16?(Ie(ie),ie=0,ae=0):ae>=8&&(Re(ie&255),ie>>>=8,ae-=8)}function N(){Ce(ki<<1,3),v(os,Ye.static_ltree),T(),1+fe+10-ae<9&&(Ce(ki<<1,3),v(os,Ye.static_ltree),T()),fe=7}function K(U,Y){let q,J,se;if(e.dist_buf[ee]=U,e.lc_buf[ee]=Y&255,ee++,U===0?W[Y*2]++:(G++,U--,W[(Oe._length_code[Y]+Tn+1)*2]++,M[Oe.d_code(U)*2]++),!(ee&8191)&&E>2){for(q=ee*8,J=A-b,se=0;se<Ji;se++)q+=M[se*2]*(5+Oe.extra_dbits[se]);if(q>>>=3,G<Math.floor(ee/2)&&q<Math.floor(J/2))return!0}return ee==Q-1}function X(U,Y){let q,J,se=0,le,de;if(ee!==0)do q=e.dist_buf[se],J=e.lc_buf[se],se++,q===0?v(J,U):(le=Oe._length_code[J],v(le+Tn+1,U),de=Oe.extra_lbits[le],de!==0&&(J-=Oe.base_length[le],Ce(J,de)),q--,le=Oe.d_code(q),v(le,Y),de=Oe.extra_dbits[le],de!==0&&(q-=Oe.base_dist[le],Ce(q,de)));while(se<ee);v(os,U),fe=U[os*2+1]}function pe(){ae>8?Ie(ie):ae>0&&Re(ie&255),ie=0,ae=0}function _e(U,Y,q){pe(),fe=8,Ie(Y),Ie(~Y),e.pending_buf.set(f.subarray(U,U+Y),e.pending),e.pending+=Y}function he(U,Y,q){Ce((Mm<<1)+(q?1:0),3),_e(U,Y)}function Fe(U,Y,q){let J,se,le=0;E>0?(z.build_tree(e),ne.build_tree(e),le=bt(),J=e.opt_len+3+7>>>3,se=e.static_len+3+7>>>3,se<=J&&(J=se)):J=se=Y+5,Y+4<=J&&U!=-1?he(U,Y,q):se==J?(Ce((ki<<1)+(q?1:0),3),X(Ye.static_ltree,Ye.static_dtree)):(Ce((qm<<1)+(q?1:0),3),d(z.max_code+1,ne.max_code+1,le+1),X(W,M)),Ae(),q&&pe()}function ue(U){Fe(b>=0?b:-1,A-b,U),b=A,t.flush_pending()}function ut(){let U,Y,q,J;do{if(J=p-S-A,J===0&&A===0&&S===0)J=n;else if(J==-1)J--;else if(A>=n+n-ht){f.set(f.subarray(n,n+n),0),$-=n,A-=n,b-=n,U=_,q=U;do Y=m[--q]&65535,m[q]=Y>=n?Y-n:0;while(--U!==0);U=n,q=U;do Y=c[--q]&65535,c[q]=Y>=n?Y-n:0;while(--U!==0);J+=n}if(t.avail_in===0)return;U=t.read_buf(f,A+S,J),S+=U,S>=$e&&(h=f[A]&255,h=(h<<g^f[A+1]&255)&y)}while(S<ht&&t.avail_in!==0)}function et(U){let Y=65535,q;for(Y>i-5&&(Y=i-5);;){if(S<=1){if(ut(),S===0&&U==Mr)return vt;if(S===0)break}if(A+=S,S=0,q=b+Y,(A===0||A>=q)&&(S=A-q,A=q,ue(!1),t.avail_out===0)||A-b>=n-ht&&(ue(!1),t.avail_out===0))return vt}return ue(U==ot),t.avail_out===0?U==ot?ls:vt:U==ot?Qs:Js}function At(U){let Y=C,q=A,J,se,le=P;const de=A>n-ht?A-(n-ht):0;let We=B;const ce=o,be=A+mn;let j=f[q+le-1],oe=f[q+le];P>=I&&(Y>>=2),We>S&&(We=S);do if(J=U,!(f[J+le]!=oe||f[J+le-1]!=j||f[J]!=f[q]||f[++J]!=f[q+1])){q+=2,J++;do;while(f[++q]==f[++J]&&f[++q]==f[++J]&&f[++q]==f[++J]&&f[++q]==f[++J]&&f[++q]==f[++J]&&f[++q]==f[++J]&&f[++q]==f[++J]&&f[++q]==f[++J]&&q<be);if(se=mn-(be-q),q=be-mn,se>le){if($=U,le=se,se>=We)break;j=f[q+le-1],oe=f[q+le]}}while((U=c[U&ce]&65535)>de&&--Y!==0);return le<=S?le:S}function Qn(U){let Y=0,q;for(;;){if(S<ht){if(ut(),S<ht&&U==Mr)return vt;if(S===0)break}if(S>=$e&&(h=(h<<g^f[A+($e-1)]&255)&y,Y=m[h]&65535,c[A&o]=m[h],m[h]=A),Y!==0&&(A-Y&65535)<=n-ht&&D!=Zs&&(R=At(Y)),R>=$e)if(q=K(A-$,R-$e),S-=R,R<=k&&S>=$e){R--;do A++,h=(h<<g^f[A+($e-1)]&255)&y,Y=m[h]&65535,c[A&o]=m[h],m[h]=A;while(--R!==0);A++}else A+=R,R=0,h=f[A]&255,h=(h<<g^f[A+1]&255)&y;else q=K(0,f[A]&255),S--,A++;if(q&&(ue(!1),t.avail_out===0))return vt}return ue(U==ot),t.avail_out===0?U==ot?ls:vt:U==ot?Qs:Js}function tt(U){let Y=0,q,J;for(;;){if(S<ht){if(ut(),S<ht&&U==Mr)return vt;if(S===0)break}if(S>=$e&&(h=(h<<g^f[A+($e-1)]&255)&y,Y=m[h]&65535,c[A&o]=m[h],m[h]=A),P=R,O=$,R=$e-1,Y!==0&&P<k&&(A-Y&65535)<=n-ht&&(D!=Zs&&(R=At(Y)),R<=5&&(D==Rm||R==$e&&A-$>4096)&&(R=$e-1)),P>=$e&&R<=P){J=A+S-$e,q=K(A-1-O,P-$e),S-=P-1,P-=2;do++A<=J&&(h=(h<<g^f[A+($e-1)]&255)&y,Y=m[h]&65535,c[A&o]=m[h],m[h]=A);while(--P!==0);if(H=0,R=$e-1,A++,q&&(ue(!1),t.avail_out===0))return vt}else if(H!==0){if(q=K(0,f[A-1]&255),q&&ue(!1),A++,S--,t.avail_out===0)return vt}else H=1,A++,S--}return H!==0&&(q=K(0,f[A-1]&255),H=0),ue(U==ot),t.avail_out===0?U==ot?ls:vt:U==ot?Qs:Js}function $r(U){return U.total_in=U.total_out=0,U.msg=null,e.pending=0,e.pending_out=0,r=en,a=Mr,Ze(),Se(),Ct}e.deflateInit=function(U,Y,q,J,se,le){return J||(J=xi),se||(se=Wm),le||(le=Im),U.msg=null,Y==Cn&&(Y=6),se<1||se>jm||J!=xi||q<9||q>15||Y<0||Y>9||le<0||le>Zs?Lt:(U.dstate=e,s=q,n=1<<s,o=n-1,L=se+7,_=1<<L,y=_-1,g=Math.floor((L+$e-1)/$e),f=new Uint8Array(n*2),c=[],m=[],Q=1<<se+6,e.pending_buf=new Uint8Array(Q*4),i=Q*4,e.dist_buf=new Uint16Array(Q),e.lc_buf=new Uint8Array(Q),E=Y,D=le,$r(U))},e.deflateEnd=function(){return r!=vi&&r!=en&&r!=fs?Lt:(e.lc_buf=null,e.dist_buf=null,e.pending_buf=null,m=null,c=null,f=null,e.dstate=null,r==en?$m:Ct)},e.deflateParams=function(U,Y,q){let J=Ct;return Y==Cn&&(Y=6),Y<0||Y>9||q<0||q>Zs?Lt:(Tt[E].func!=Tt[Y].func&&U.total_in!==0&&(J=U.deflate(Go)),E!=Y&&(E=Y,k=Tt[E].max_lazy,I=Tt[E].good_length,B=Tt[E].nice_length,C=Tt[E].max_chain),D=q,J)},e.deflateSetDictionary=function(U,Y,q){let J=q,se,le=0;if(!Y||r!=vi)return Lt;if(J<$e)return Ct;for(J>n-ht&&(J=n-ht,le=q-J),f.set(Y.subarray(le,le+J),0),A=J,b=J,h=f[0]&255,h=(h<<g^f[1]&255)&y,se=0;se<=J-$e;se++)h=(h<<g^f[se+($e-1)]&255)&y,c[se&o]=m[h],m[h]=se;return Ct},e.deflate=function(U,Y){let q,J,se,le,de;if(Y>ot||Y<0)return Lt;if(!U.next_out||!U.next_in&&U.avail_in!==0||r==fs&&Y!=ot)return U.msg=Xs[Ys-Lt],Lt;if(U.avail_out===0)return U.msg=Xs[Ys-Br],Br;if(t=U,le=a,a=Y,r==vi&&(J=xi+(s-8<<4)<<8,se=(E-1&255)>>1,se>3&&(se=3),J|=se<<6,A!==0&&(J|=Um),J+=31-J%31,r=en,at(J)),e.pending!==0){if(t.flush_pending(),t.avail_out===0)return a=-1,Ct}else if(t.avail_in===0&&Y<=le&&Y!=ot)return t.msg=Xs[Ys-Br],Br;if(r==fs&&t.avail_in!==0)return U.msg=Xs[Ys-Br],Br;if(t.avail_in!==0||S!==0||Y!=Mr&&r!=fs){switch(de=-1,Tt[E].func){case xp:de=et(Y);break;case hn:de=Qn(Y);break;case gr:de=tt(Y);break}if((de==ls||de==Qs)&&(r=fs),de==vt||de==ls)return t.avail_out===0&&(a=-1),Ct;if(de==Js){if(Y==Go)N();else if(he(0,0,!1),Y==Dm)for(q=0;q<_;q++)m[q]=0;if(t.flush_pending(),t.avail_out===0)return a=-1,Ct}}return Y!=ot?Ct:vp}}function kp(){const e=this;e.next_in_index=0,e.next_out_index=0,e.avail_in=0,e.total_in=0,e.avail_out=0,e.total_out=0}kp.prototype={deflateInit(e,t){const r=this;return r.dstate=new Km,t||(t=Cs),r.dstate.deflateInit(r,e,t)},deflate(e){const t=this;return t.dstate?t.dstate.deflate(t,e):Lt},deflateEnd(){const e=this;if(!e.dstate)return Lt;const t=e.dstate.deflateEnd();return e.dstate=null,t},deflateParams(e,t){const r=this;return r.dstate?r.dstate.deflateParams(r,e,t):Lt},deflateSetDictionary(e,t){const r=this;return r.dstate?r.dstate.deflateSetDictionary(r,e,t):Lt},read_buf(e,t,r){const i=this;let a=i.avail_in;return a>r&&(a=r),a===0?0:(i.avail_in-=a,e.set(i.next_in.subarray(i.next_in_index,i.next_in_index+a),t),i.next_in_index+=a,i.total_in+=a,a)},flush_pending(){const e=this;let t=e.dstate.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.next_out.set(e.dstate.pending_buf.subarray(e.dstate.pending_out,e.dstate.pending_out+t),e.next_out_index),e.next_out_index+=t,e.dstate.pending_out+=t,e.total_out+=t,e.avail_out-=t,e.dstate.pending-=t,e.dstate.pending===0&&(e.dstate.pending_out=0))}};function zm(e){const t=this,r=new kp,i=Vm(e&&e.chunkSize?e.chunkSize:64*1024),a=Mr,n=new Uint8Array(i);let s=e?e.level:Cn;typeof s>"u"&&(s=Cn),r.deflateInit(s),r.next_out=n,t.append=function(o,f){let p,c,m=0,h=0,_=0;const L=[];if(o.length){r.next_in_index=0,r.next_in=o,r.avail_in=o.length;do{if(r.next_out_index=0,r.avail_out=i,p=r.deflate(a),p!=Ct)throw new Error("deflating: "+r.msg);r.next_out_index&&(r.next_out_index==i?L.push(new Uint8Array(n)):L.push(n.subarray(0,r.next_out_index))),_+=r.next_out_index,f&&r.next_in_index>0&&r.next_in_index!=m&&(f(r.next_in_index),m=r.next_in_index)}while(r.avail_in>0||r.avail_out===0);return L.length>1?(c=new Uint8Array(_),L.forEach(function(y){c.set(y,h),h+=y.length})):c=L[0]?new Uint8Array(L[0]):new Uint8Array,c}},t.flush=function(){let o,f,p=0,c=0;const m=[];do{if(r.next_out_index=0,r.avail_out=i,o=r.deflate(ot),o!=vp&&o!=Ct)throw new Error("deflating: "+r.msg);i-r.avail_out>0&&m.push(n.slice(0,r.next_out_index)),c+=r.next_out_index}while(r.avail_in>0||r.avail_out===0);return r.deflateEnd(),f=new Uint8Array(c),m.forEach(function(h){f.set(h,p),p+=h.length}),f}}function Vm(e){return e+5*(Math.floor(e/16383)+1)}const Gm=15,we=0,Jt=1,Zm=2,lt=-2,Le=-3,Xo=-4,Qt=-5,yt=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],Sp=1440,Ym=0,Xm=4,Jm=9,Qm=5,e0=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],t0=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],r0=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s0=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],n0=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],i0=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],sr=15;function ea(){const e=this;let t,r,i,a,n,s;function o(p,c,m,h,_,L,y,g,b,R,O){let H,A,$,S,P,C,k,E,D,I,B,W,M,Z,z;I=0,P=m;do i[p[c+I]]++,I++,P--;while(P!==0);if(i[0]==m)return y[0]=-1,g[0]=0,we;for(E=g[0],C=1;C<=sr&&i[C]===0;C++);for(k=C,E<C&&(E=C),P=sr;P!==0&&i[P]===0;P--);for($=P,E>P&&(E=P),g[0]=E,Z=1<<C;C<P;C++,Z<<=1)if((Z-=i[C])<0)return Le;if((Z-=i[P])<0)return Le;for(i[P]+=Z,s[1]=C=0,I=1,M=2;--P!==0;)s[M]=C+=i[I],M++,I++;P=0,I=0;do(C=p[c+I])!==0&&(O[s[C]++]=P),I++;while(++P<m);for(m=s[$],s[0]=P=0,I=0,S=-1,W=-E,n[0]=0,B=0,z=0;k<=$;k++)for(H=i[k];H--!==0;){for(;k>W+E;){if(S++,W+=E,z=$-W,z=z>E?E:z,(A=1<<(C=k-W))>H+1&&(A-=H+1,M=k,C<z))for(;++C<z&&!((A<<=1)<=i[++M]);)A-=i[M];if(z=1<<C,R[0]+z>Sp)return Le;n[S]=B=R[0],R[0]+=z,S!==0?(s[S]=P,a[0]=C,a[1]=E,C=P>>>W-E,a[2]=B-n[S-1]-C,b.set(a,(n[S-1]+C)*3)):y[0]=B}for(a[1]=k-W,I>=m?a[0]=192:O[I]<h?(a[0]=O[I]<256?0:96,a[2]=O[I++]):(a[0]=L[O[I]-h]+16+64,a[2]=_[O[I++]-h]),A=1<<k-W,C=P>>>W;C<z;C+=A)b.set(a,(B+C)*3);for(C=1<<k-1;P&C;C>>>=1)P^=C;for(P^=C,D=(1<<W)-1;(P&D)!=s[S];)S--,W-=E,D=(1<<W)-1}return Z!==0&&$!=1?Qt:we}function f(p){let c;for(t||(t=[],r=[],i=new Int32Array(sr+1),a=[],n=new Int32Array(sr),s=new Int32Array(sr+1)),r.length<p&&(r=[]),c=0;c<p;c++)r[c]=0;for(c=0;c<sr+1;c++)i[c]=0;for(c=0;c<3;c++)a[c]=0;n.set(i.subarray(0,sr),0),s.set(i.subarray(0,sr+1),0)}e.inflate_trees_bits=function(p,c,m,h,_){let L;return f(19),t[0]=0,L=o(p,0,19,19,null,null,m,c,h,t,r),L==Le?_.msg="oversubscribed dynamic bit lengths tree":(L==Qt||c[0]===0)&&(_.msg="incomplete dynamic bit lengths tree",L=Le),L},e.inflate_trees_dynamic=function(p,c,m,h,_,L,y,g,b){let R;return f(288),t[0]=0,R=o(m,0,p,257,r0,s0,L,h,g,t,r),R!=we||h[0]===0?(R==Le?b.msg="oversubscribed literal/length tree":R!=Xo&&(b.msg="incomplete literal/length tree",R=Le),R):(f(288),R=o(m,p,c,0,n0,i0,y,_,g,t,r),R!=we||_[0]===0&&p>257?(R==Le?b.msg="oversubscribed distance tree":R==Qt?(b.msg="incomplete distance tree",R=Le):R!=Xo&&(b.msg="empty distance tree with lengths",R=Le),R):we)}}ea.inflate_trees_fixed=function(e,t,r,i){return e[0]=Jm,t[0]=Qm,r[0]=e0,i[0]=t0,we};const tn=0,Jo=1,Qo=2,el=3,tl=4,rl=5,sl=6,Si=7,nl=8,rn=9;function a0(){const e=this;let t,r=0,i,a=0,n=0,s=0,o=0,f=0,p=0,c=0,m,h=0,_,L=0;function y(g,b,R,O,H,A,$,S){let P,C,k,E,D,I,B,W,M,Z,z,ne,V,Q,ee,G;B=S.next_in_index,W=S.avail_in,D=$.bitb,I=$.bitk,M=$.write,Z=M<$.read?$.read-M-1:$.end-M,z=yt[g],ne=yt[b];do{for(;I<20;)W--,D|=(S.read_byte(B++)&255)<<I,I+=8;if(P=D&z,C=R,k=O,G=(k+P)*3,(E=C[G])===0){D>>=C[G+1],I-=C[G+1],$.win[M++]=C[G+2],Z--;continue}do{if(D>>=C[G+1],I-=C[G+1],E&16){for(E&=15,V=C[G+2]+(D&yt[E]),D>>=E,I-=E;I<15;)W--,D|=(S.read_byte(B++)&255)<<I,I+=8;P=D&ne,C=H,k=A,G=(k+P)*3,E=C[G];do if(D>>=C[G+1],I-=C[G+1],E&16){for(E&=15;I<E;)W--,D|=(S.read_byte(B++)&255)<<I,I+=8;if(Q=C[G+2]+(D&yt[E]),D>>=E,I-=E,Z-=V,M>=Q)ee=M-Q,M-ee>0&&2>M-ee?($.win[M++]=$.win[ee++],$.win[M++]=$.win[ee++],V-=2):($.win.set($.win.subarray(ee,ee+2),M),M+=2,ee+=2,V-=2);else{ee=M-Q;do ee+=$.end;while(ee<0);if(E=$.end-ee,V>E){if(V-=E,M-ee>0&&E>M-ee)do $.win[M++]=$.win[ee++];while(--E!==0);else $.win.set($.win.subarray(ee,ee+E),M),M+=E,ee+=E,E=0;ee=0}}if(M-ee>0&&V>M-ee)do $.win[M++]=$.win[ee++];while(--V!==0);else $.win.set($.win.subarray(ee,ee+V),M),M+=V,ee+=V,V=0;break}else if(!(E&64))P+=C[G+2],P+=D&yt[E],G=(k+P)*3,E=C[G];else return S.msg="invalid distance code",V=S.avail_in-W,V=I>>3<V?I>>3:V,W+=V,B-=V,I-=V<<3,$.bitb=D,$.bitk=I,S.avail_in=W,S.total_in+=B-S.next_in_index,S.next_in_index=B,$.write=M,Le;while(!0);break}if(E&64)return E&32?(V=S.avail_in-W,V=I>>3<V?I>>3:V,W+=V,B-=V,I-=V<<3,$.bitb=D,$.bitk=I,S.avail_in=W,S.total_in+=B-S.next_in_index,S.next_in_index=B,$.write=M,Jt):(S.msg="invalid literal/length code",V=S.avail_in-W,V=I>>3<V?I>>3:V,W+=V,B-=V,I-=V<<3,$.bitb=D,$.bitk=I,S.avail_in=W,S.total_in+=B-S.next_in_index,S.next_in_index=B,$.write=M,Le);if(P+=C[G+2],P+=D&yt[E],G=(k+P)*3,(E=C[G])===0){D>>=C[G+1],I-=C[G+1],$.win[M++]=C[G+2],Z--;break}}while(!0)}while(Z>=258&&W>=10);return V=S.avail_in-W,V=I>>3<V?I>>3:V,W+=V,B-=V,I-=V<<3,$.bitb=D,$.bitk=I,S.avail_in=W,S.total_in+=B-S.next_in_index,S.next_in_index=B,$.write=M,we}e.init=function(g,b,R,O,H,A){t=tn,p=g,c=b,m=R,h=O,_=H,L=A,i=null},e.proc=function(g,b,R){let O,H,A,$=0,S=0,P=0,C,k,E,D;for(P=b.next_in_index,C=b.avail_in,$=g.bitb,S=g.bitk,k=g.write,E=k<g.read?g.read-k-1:g.end-k;;)switch(t){case tn:if(E>=258&&C>=10&&(g.bitb=$,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,R=y(p,c,m,h,_,L,g,b),P=b.next_in_index,C=b.avail_in,$=g.bitb,S=g.bitk,k=g.write,E=k<g.read?g.read-k-1:g.end-k,R!=we)){t=R==Jt?Si:rn;break}n=p,i=m,a=h,t=Jo;case Jo:for(O=n;S<O;){if(C!==0)R=we;else return g.bitb=$,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R);C--,$|=(b.read_byte(P++)&255)<<S,S+=8}if(H=(a+($&yt[O]))*3,$>>>=i[H+1],S-=i[H+1],A=i[H],A===0){s=i[H+2],t=sl;break}if(A&16){o=A&15,r=i[H+2],t=Qo;break}if(!(A&64)){n=A,a=H/3+i[H+2];break}if(A&32){t=Si;break}return t=rn,b.msg="invalid literal/length code",R=Le,g.bitb=$,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R);case Qo:for(O=o;S<O;){if(C!==0)R=we;else return g.bitb=$,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R);C--,$|=(b.read_byte(P++)&255)<<S,S+=8}r+=$&yt[O],$>>=O,S-=O,n=c,i=_,a=L,t=el;case el:for(O=n;S<O;){if(C!==0)R=we;else return g.bitb=$,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R);C--,$|=(b.read_byte(P++)&255)<<S,S+=8}if(H=(a+($&yt[O]))*3,$>>=i[H+1],S-=i[H+1],A=i[H],A&16){o=A&15,f=i[H+2],t=tl;break}if(!(A&64)){n=A,a=H/3+i[H+2];break}return t=rn,b.msg="invalid distance code",R=Le,g.bitb=$,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R);case tl:for(O=o;S<O;){if(C!==0)R=we;else return g.bitb=$,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R);C--,$|=(b.read_byte(P++)&255)<<S,S+=8}f+=$&yt[O],$>>=O,S-=O,t=rl;case rl:for(D=k-f;D<0;)D+=g.end;for(;r!==0;){if(E===0&&(k==g.end&&g.read!==0&&(k=0,E=k<g.read?g.read-k-1:g.end-k),E===0&&(g.write=k,R=g.inflate_flush(b,R),k=g.write,E=k<g.read?g.read-k-1:g.end-k,k==g.end&&g.read!==0&&(k=0,E=k<g.read?g.read-k-1:g.end-k),E===0)))return g.bitb=$,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R);g.win[k++]=g.win[D++],E--,D==g.end&&(D=0),r--}t=tn;break;case sl:if(E===0&&(k==g.end&&g.read!==0&&(k=0,E=k<g.read?g.read-k-1:g.end-k),E===0&&(g.write=k,R=g.inflate_flush(b,R),k=g.write,E=k<g.read?g.read-k-1:g.end-k,k==g.end&&g.read!==0&&(k=0,E=k<g.read?g.read-k-1:g.end-k),E===0)))return g.bitb=$,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R);R=we,g.win[k++]=s,E--,t=tn;break;case Si:if(S>7&&(S-=8,C++,P--),g.write=k,R=g.inflate_flush(b,R),k=g.write,E=k<g.read?g.read-k-1:g.end-k,g.read!=g.write)return g.bitb=$,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R);t=nl;case nl:return R=Jt,g.bitb=$,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R);case rn:return R=Le,g.bitb=$,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R);default:return R=lt,g.bitb=$,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R)}},e.free=function(){}}const il=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],jr=0,Ei=1,al=2,ol=3,ll=4,fl=5,sn=6,nn=7,pl=8,_r=9;function o0(e,t){const r=this;let i=jr,a=0,n=0,s=0,o;const f=[0],p=[0],c=new a0;let m=0,h=new Int32Array(Sp*3);const _=0,L=new ea;r.bitk=0,r.bitb=0,r.win=new Uint8Array(t),r.end=t,r.read=0,r.write=0,r.reset=function(y,g){g&&(g[0]=_),i==sn&&c.free(y),i=jr,r.bitk=0,r.bitb=0,r.read=r.write=0},r.reset(e,null),r.inflate_flush=function(y,g){let b,R,O;return R=y.next_out_index,O=r.read,b=(O<=r.write?r.write:r.end)-O,b>y.avail_out&&(b=y.avail_out),b!==0&&g==Qt&&(g=we),y.avail_out-=b,y.total_out+=b,y.next_out.set(r.win.subarray(O,O+b),R),R+=b,O+=b,O==r.end&&(O=0,r.write==r.end&&(r.write=0),b=r.write-O,b>y.avail_out&&(b=y.avail_out),b!==0&&g==Qt&&(g=we),y.avail_out-=b,y.total_out+=b,y.next_out.set(r.win.subarray(O,O+b),R),R+=b,O+=b),y.next_out_index=R,r.read=O,g},r.proc=function(y,g){let b,R,O,H,A,$,S,P;for(H=y.next_in_index,A=y.avail_in,R=r.bitb,O=r.bitk,$=r.write,S=$<r.read?r.read-$-1:r.end-$;;){let C,k,E,D,I,B,W,M;switch(i){case jr:for(;O<3;){if(A!==0)g=we;else return r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=H-y.next_in_index,y.next_in_index=H,r.write=$,r.inflate_flush(y,g);A--,R|=(y.read_byte(H++)&255)<<O,O+=8}switch(b=R&7,m=b&1,b>>>1){case 0:R>>>=3,O-=3,b=O&7,R>>>=b,O-=b,i=Ei;break;case 1:C=[],k=[],E=[[]],D=[[]],ea.inflate_trees_fixed(C,k,E,D),c.init(C[0],k[0],E[0],0,D[0],0),R>>>=3,O-=3,i=sn;break;case 2:R>>>=3,O-=3,i=ol;break;case 3:return R>>>=3,O-=3,i=_r,y.msg="invalid block type",g=Le,r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=H-y.next_in_index,y.next_in_index=H,r.write=$,r.inflate_flush(y,g)}break;case Ei:for(;O<32;){if(A!==0)g=we;else return r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=H-y.next_in_index,y.next_in_index=H,r.write=$,r.inflate_flush(y,g);A--,R|=(y.read_byte(H++)&255)<<O,O+=8}if((~R>>>16&65535)!=(R&65535))return i=_r,y.msg="invalid stored block lengths",g=Le,r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=H-y.next_in_index,y.next_in_index=H,r.write=$,r.inflate_flush(y,g);a=R&65535,R=O=0,i=a!==0?al:m!==0?nn:jr;break;case al:if(A===0||S===0&&($==r.end&&r.read!==0&&($=0,S=$<r.read?r.read-$-1:r.end-$),S===0&&(r.write=$,g=r.inflate_flush(y,g),$=r.write,S=$<r.read?r.read-$-1:r.end-$,$==r.end&&r.read!==0&&($=0,S=$<r.read?r.read-$-1:r.end-$),S===0)))return r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=H-y.next_in_index,y.next_in_index=H,r.write=$,r.inflate_flush(y,g);if(g=we,b=a,b>A&&(b=A),b>S&&(b=S),r.win.set(y.read_buf(H,b),$),H+=b,A-=b,$+=b,S-=b,(a-=b)!==0)break;i=m!==0?nn:jr;break;case ol:for(;O<14;){if(A!==0)g=we;else return r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=H-y.next_in_index,y.next_in_index=H,r.write=$,r.inflate_flush(y,g);A--,R|=(y.read_byte(H++)&255)<<O,O+=8}if(n=b=R&16383,(b&31)>29||(b>>5&31)>29)return i=_r,y.msg="too many length or distance symbols",g=Le,r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=H-y.next_in_index,y.next_in_index=H,r.write=$,r.inflate_flush(y,g);if(b=258+(b&31)+(b>>5&31),!o||o.length<b)o=[];else for(P=0;P<b;P++)o[P]=0;R>>>=14,O-=14,s=0,i=ll;case ll:for(;s<4+(n>>>10);){for(;O<3;){if(A!==0)g=we;else return r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=H-y.next_in_index,y.next_in_index=H,r.write=$,r.inflate_flush(y,g);A--,R|=(y.read_byte(H++)&255)<<O,O+=8}o[il[s++]]=R&7,R>>>=3,O-=3}for(;s<19;)o[il[s++]]=0;if(f[0]=7,b=L.inflate_trees_bits(o,f,p,h,y),b!=we)return g=b,g==Le&&(o=null,i=_r),r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=H-y.next_in_index,y.next_in_index=H,r.write=$,r.inflate_flush(y,g);s=0,i=fl;case fl:for(;b=n,!(s>=258+(b&31)+(b>>5&31));){let Z,z;for(b=f[0];O<b;){if(A!==0)g=we;else return r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=H-y.next_in_index,y.next_in_index=H,r.write=$,r.inflate_flush(y,g);A--,R|=(y.read_byte(H++)&255)<<O,O+=8}if(b=h[(p[0]+(R&yt[b]))*3+1],z=h[(p[0]+(R&yt[b]))*3+2],z<16)R>>>=b,O-=b,o[s++]=z;else{for(P=z==18?7:z-14,Z=z==18?11:3;O<b+P;){if(A!==0)g=we;else return r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=H-y.next_in_index,y.next_in_index=H,r.write=$,r.inflate_flush(y,g);A--,R|=(y.read_byte(H++)&255)<<O,O+=8}if(R>>>=b,O-=b,Z+=R&yt[P],R>>>=P,O-=P,P=s,b=n,P+Z>258+(b&31)+(b>>5&31)||z==16&&P<1)return o=null,i=_r,y.msg="invalid bit length repeat",g=Le,r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=H-y.next_in_index,y.next_in_index=H,r.write=$,r.inflate_flush(y,g);z=z==16?o[P-1]:0;do o[P++]=z;while(--Z!==0);s=P}}if(p[0]=-1,I=[],B=[],W=[],M=[],I[0]=9,B[0]=6,b=n,b=L.inflate_trees_dynamic(257+(b&31),1+(b>>5&31),o,I,B,W,M,h,y),b!=we)return b==Le&&(o=null,i=_r),g=b,r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=H-y.next_in_index,y.next_in_index=H,r.write=$,r.inflate_flush(y,g);c.init(I[0],B[0],h,W[0],h,M[0]),i=sn;case sn:if(r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=H-y.next_in_index,y.next_in_index=H,r.write=$,(g=c.proc(r,y,g))!=Jt)return r.inflate_flush(y,g);if(g=we,c.free(y),H=y.next_in_index,A=y.avail_in,R=r.bitb,O=r.bitk,$=r.write,S=$<r.read?r.read-$-1:r.end-$,m===0){i=jr;break}i=nn;case nn:if(r.write=$,g=r.inflate_flush(y,g),$=r.write,S=$<r.read?r.read-$-1:r.end-$,r.read!=r.write)return r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=H-y.next_in_index,y.next_in_index=H,r.write=$,r.inflate_flush(y,g);i=pl;case pl:return g=Jt,r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=H-y.next_in_index,y.next_in_index=H,r.write=$,r.inflate_flush(y,g);case _r:return g=Le,r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=H-y.next_in_index,y.next_in_index=H,r.write=$,r.inflate_flush(y,g);default:return g=lt,r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=H-y.next_in_index,y.next_in_index=H,r.write=$,r.inflate_flush(y,g)}}},r.free=function(y){r.reset(y,null),r.win=null,h=null},r.set_dictionary=function(y,g,b){r.win.set(y.subarray(g,g+b),0),r.read=r.write=b},r.sync_point=function(){return i==Ei?1:0}}const l0=32,f0=8,p0=0,cl=1,ul=2,dl=3,hl=4,ml=5,Pi=6,ps=7,yl=12,nr=13,c0=[0,0,255,255];function u0(){const e=this;e.mode=0,e.method=0,e.was=[0],e.need=0,e.marker=0,e.wbits=0;function t(r){return!r||!r.istate?lt:(r.total_in=r.total_out=0,r.msg=null,r.istate.mode=ps,r.istate.blocks.reset(r,null),we)}e.inflateEnd=function(r){return e.blocks&&e.blocks.free(r),e.blocks=null,we},e.inflateInit=function(r,i){return r.msg=null,e.blocks=null,i<8||i>15?(e.inflateEnd(r),lt):(e.wbits=i,r.istate.blocks=new o0(r,1<<i),t(r),we)},e.inflate=function(r,i){let a,n;if(!r||!r.istate||!r.next_in)return lt;const s=r.istate;for(i=i==Xm?Qt:we,a=Qt;;)switch(s.mode){case p0:if(r.avail_in===0)return a;if(a=i,r.avail_in--,r.total_in++,((s.method=r.read_byte(r.next_in_index++))&15)!=f0){s.mode=nr,r.msg="unknown compression method",s.marker=5;break}if((s.method>>4)+8>s.wbits){s.mode=nr,r.msg="invalid win size",s.marker=5;break}s.mode=cl;case cl:if(r.avail_in===0)return a;if(a=i,r.avail_in--,r.total_in++,n=r.read_byte(r.next_in_index++)&255,((s.method<<8)+n)%31!==0){s.mode=nr,r.msg="incorrect header check",s.marker=5;break}if(!(n&l0)){s.mode=ps;break}s.mode=ul;case ul:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,s.need=(r.read_byte(r.next_in_index++)&255)<<24&4278190080,s.mode=dl;case dl:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,s.need+=(r.read_byte(r.next_in_index++)&255)<<16&16711680,s.mode=hl;case hl:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,s.need+=(r.read_byte(r.next_in_index++)&255)<<8&65280,s.mode=ml;case ml:return r.avail_in===0?a:(a=i,r.avail_in--,r.total_in++,s.need+=r.read_byte(r.next_in_index++)&255,s.mode=Pi,Zm);case Pi:return s.mode=nr,r.msg="need dictionary",s.marker=0,lt;case ps:if(a=s.blocks.proc(r,a),a==Le){s.mode=nr,s.marker=0;break}if(a==we&&(a=i),a!=Jt)return a;a=i,s.blocks.reset(r,s.was),s.mode=yl;case yl:return r.avail_in=0,Jt;case nr:return Le;default:return lt}},e.inflateSetDictionary=function(r,i,a){let n=0,s=a;if(!r||!r.istate||r.istate.mode!=Pi)return lt;const o=r.istate;return s>=1<<o.wbits&&(s=(1<<o.wbits)-1,n=a-s),o.blocks.set_dictionary(i,n,s),o.mode=ps,we},e.inflateSync=function(r){let i,a,n,s,o;if(!r||!r.istate)return lt;const f=r.istate;if(f.mode!=nr&&(f.mode=nr,f.marker=0),(i=r.avail_in)===0)return Qt;for(a=r.next_in_index,n=f.marker;i!==0&&n<4;)r.read_byte(a)==c0[n]?n++:r.read_byte(a)!==0?n=0:n=4-n,a++,i--;return r.total_in+=a-r.next_in_index,r.next_in_index=a,r.avail_in=i,f.marker=n,n!=4?Le:(s=r.total_in,o=r.total_out,t(r),r.total_in=s,r.total_out=o,f.mode=ps,we)},e.inflateSyncPoint=function(r){return!r||!r.istate||!r.istate.blocks?lt:r.istate.blocks.sync_point()}}function Ep(){}Ep.prototype={inflateInit(e){const t=this;return t.istate=new u0,e||(e=Gm),t.istate.inflateInit(t,e)},inflate(e){const t=this;return t.istate?t.istate.inflate(t,e):lt},inflateEnd(){const e=this;if(!e.istate)return lt;const t=e.istate.inflateEnd(e);return e.istate=null,t},inflateSync(){const e=this;return e.istate?e.istate.inflateSync(e):lt},inflateSetDictionary(e,t){const r=this;return r.istate?r.istate.inflateSetDictionary(r,e,t):lt},read_byte(e){return this.next_in[e]},read_buf(e,t){return this.next_in.subarray(e,e+t)}};function d0(e){const t=this,r=new Ep,i=e&&e.chunkSize?Math.floor(e.chunkSize*2):128*1024,a=Ym,n=new Uint8Array(i);let s=!1;r.inflateInit(),r.next_out=n,t.append=function(o,f){const p=[];let c,m,h=0,_=0,L=0;if(o.length!==0){r.next_in_index=0,r.next_in=o,r.avail_in=o.length;do{if(r.next_out_index=0,r.avail_out=i,r.avail_in===0&&!s&&(r.next_in_index=0,s=!0),c=r.inflate(a),s&&c===Qt){if(r.avail_in!==0)throw new Error("inflating: bad input")}else if(c!==we&&c!==Jt)throw new Error("inflating: "+r.msg);if((s||c===Jt)&&r.avail_in===o.length)throw new Error("inflating: bad input");r.next_out_index&&(r.next_out_index===i?p.push(new Uint8Array(n)):p.push(n.subarray(0,r.next_out_index))),L+=r.next_out_index,f&&r.next_in_index>0&&r.next_in_index!=h&&(f(r.next_in_index),h=r.next_in_index)}while(r.avail_in>0||r.avail_out===0);return p.length>1?(m=new Uint8Array(L),p.forEach(function(y){m.set(y,_),_+=y.length})):m=p[0]?new Uint8Array(p[0]):new Uint8Array,m}},t.flush=function(){r.inflateEnd()}}const Er=4294967295,fr=65535,h0=8,m0=0,y0=99,_0=67324752,g0=134695760,_l=33639248,w0=101010256,gl=101075792,b0=117853008,Wr=22,Ai=20,Ti=56,v0=1,x0=39169,k0=10,S0=1,E0=21589,P0=28789,A0=25461,T0=6534,wl=1,C0=6,bl=8,vl=2048,xl=16,kl=16384,Sl=73,El="/",it=void 0,yr="undefined",Bs="function";class Pl{constructor(t){return class extends TransformStream{constructor(r,i){const a=new t(i);super({transform(n,s){s.enqueue(a.append(n))},flush(n){const s=a.flush();s&&n.enqueue(s)}})}}}}const O0=64;let Pp=2;try{typeof navigator!=yr&&navigator.hardwareConcurrency&&(Pp=navigator.hardwareConcurrency)}catch{}const L0={chunkSize:512*1024,maxWorkers:Pp,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:it,CompressionStreamNative:typeof CompressionStream!=yr&&CompressionStream,DecompressionStreamNative:typeof DecompressionStream!=yr&&DecompressionStream},pr=Object.assign({},L0);function R0(){return pr}function I0(e){return Math.max(e.chunkSize,O0)}function ka(e){const{baseURL:t,chunkSize:r,maxWorkers:i,terminateWorkerTimeout:a,useCompressionStream:n,useWebWorkers:s,Deflate:o,Inflate:f,CompressionStream:p,DecompressionStream:c,workerScripts:m}=e;if(ir("baseURL",t),ir("chunkSize",r),ir("maxWorkers",i),ir("terminateWorkerTimeout",a),ir("useCompressionStream",n),ir("useWebWorkers",s),o&&(pr.CompressionStream=new Pl(o)),f&&(pr.DecompressionStream=new Pl(f)),ir("CompressionStream",p),ir("DecompressionStream",c),m!==it){const{deflate:h,inflate:_}=m;if((h||_)&&(pr.workerScripts||(pr.workerScripts={})),h){if(!Array.isArray(h))throw new Error("workerScripts.deflate must be an array");pr.workerScripts.deflate=h}if(_){if(!Array.isArray(_))throw new Error("workerScripts.inflate must be an array");pr.workerScripts.inflate=_}}}function ir(e,t){t!==it&&(pr[e]=t)}const Ci={application:{"andrew-inset":"ez",annodex:"anx","atom+xml":"atom","atomcat+xml":"atomcat","atomserv+xml":"atomsrv",bbolin:"lin","cu-seeme":"cu","davmount+xml":"davmount",dsptype:"tsp",ecmascript:["es","ecma"],futuresplash:"spl",hta:"hta","java-archive":"jar","java-serialized-object":"ser","java-vm":"class",m3g:"m3g","mac-binhex40":"hqx",mathematica:["nb","ma","mb"],msaccess:"mdb",msword:["doc","dot","wiz"],mxf:"mxf",oda:"oda",ogg:"ogx",pdf:"pdf","pgp-keys":"key","pgp-signature":["asc","sig"],"pics-rules":"prf",postscript:["ps","ai","eps","epsi","epsf","eps2","eps3"],rar:"rar","rdf+xml":"rdf","rss+xml":"rss",rtf:"rtf","xhtml+xml":["xhtml","xht"],xml:["xml","xsl","xsd","xpdl"],"xspf+xml":"xspf",zip:"zip","vnd.android.package-archive":"apk","vnd.cinderella":"cdy","vnd.google-earth.kml+xml":"kml","vnd.google-earth.kmz":"kmz","vnd.mozilla.xul+xml":"xul","vnd.ms-excel":["xls","xlb","xlt","xlm","xla","xlc","xlw"],"vnd.ms-pki.seccat":"cat","vnd.ms-pki.stl":"stl","vnd.ms-powerpoint":["ppt","pps","pot","ppa","pwz"],"vnd.oasis.opendocument.chart":"odc","vnd.oasis.opendocument.database":"odb","vnd.oasis.opendocument.formula":"odf","vnd.oasis.opendocument.graphics":"odg","vnd.oasis.opendocument.graphics-template":"otg","vnd.oasis.opendocument.image":"odi","vnd.oasis.opendocument.presentation":"odp","vnd.oasis.opendocument.presentation-template":"otp","vnd.oasis.opendocument.spreadsheet":"ods","vnd.oasis.opendocument.spreadsheet-template":"ots","vnd.oasis.opendocument.text":"odt","vnd.oasis.opendocument.text-master":["odm","otm"],"vnd.oasis.opendocument.text-template":"ott","vnd.oasis.opendocument.text-web":"oth","vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","vnd.openxmlformats-officedocument.spreadsheetml.template":"xltx","vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","vnd.openxmlformats-officedocument.presentationml.slideshow":"ppsx","vnd.openxmlformats-officedocument.presentationml.template":"potx","vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","vnd.openxmlformats-officedocument.wordprocessingml.template":"dotx","vnd.smaf":"mmf","vnd.stardivision.calc":"sdc","vnd.stardivision.chart":"sds","vnd.stardivision.draw":"sda","vnd.stardivision.impress":"sdd","vnd.stardivision.math":["sdf","smf"],"vnd.stardivision.writer":["sdw","vor"],"vnd.stardivision.writer-global":"sgl","vnd.sun.xml.calc":"sxc","vnd.sun.xml.calc.template":"stc","vnd.sun.xml.draw":"sxd","vnd.sun.xml.draw.template":"std","vnd.sun.xml.impress":"sxi","vnd.sun.xml.impress.template":"sti","vnd.sun.xml.math":"sxm","vnd.sun.xml.writer":"sxw","vnd.sun.xml.writer.global":"sxg","vnd.sun.xml.writer.template":"stw","vnd.symbian.install":["sis","sisx"],"vnd.visio":["vsd","vst","vss","vsw","vsdx","vssx","vstx","vssm","vstm"],"vnd.wap.wbxml":"wbxml","vnd.wap.wmlc":"wmlc","vnd.wap.wmlscriptc":"wmlsc","vnd.wordperfect":"wpd","vnd.wordperfect5.1":"wp5","x-123":"wk","x-7z-compressed":"7z","x-abiword":"abw","x-apple-diskimage":"dmg","x-bcpio":"bcpio","x-bittorrent":"torrent","x-cbr":["cbr","cba","cbt","cb7"],"x-cbz":"cbz","x-cdf":["cdf","cda"],"x-cdlink":"vcd","x-chess-pgn":"pgn","x-cpio":"cpio","x-csh":"csh","x-director":["dir","dxr","cst","cct","cxt","w3d","fgd","swa"],"x-dms":"dms","x-doom":"wad","x-dvi":"dvi","x-httpd-eruby":"rhtml","x-font":"pcf.Z","x-freemind":"mm","x-gnumeric":"gnumeric","x-go-sgf":"sgf","x-graphing-calculator":"gcf","x-gtar":["gtar","taz"],"x-hdf":"hdf","x-httpd-php":["phtml","pht","php"],"x-httpd-php-source":"phps","x-httpd-php3":"php3","x-httpd-php3-preprocessed":"php3p","x-httpd-php4":"php4","x-httpd-php5":"php5","x-ica":"ica","x-info":"info","x-internet-signup":["ins","isp"],"x-iphone":"iii","x-iso9660-image":"iso","x-java-jnlp-file":"jnlp","x-jmol":"jmz","x-killustrator":"kil","x-latex":"latex","x-lyx":"lyx","x-lzx":"lzx","x-maker":["frm","fb","fbdoc"],"x-ms-wmd":"wmd","x-msdos-program":["com","exe","bat","dll"],"x-netcdf":["nc"],"x-ns-proxy-autoconfig":["pac","dat"],"x-nwc":"nwc","x-object":"o","x-oz-application":"oza","x-pkcs7-certreqresp":"p7r","x-python-code":["pyc","pyo"],"x-qgis":["qgs","shp","shx"],"x-quicktimeplayer":"qtl","x-redhat-package-manager":["rpm","rpa"],"x-ruby":"rb","x-sh":"sh","x-shar":"shar","x-shockwave-flash":["swf","swfl"],"x-silverlight":"scr","x-stuffit":"sit","x-sv4cpio":"sv4cpio","x-sv4crc":"sv4crc","x-tar":"tar","x-tex-gf":"gf","x-tex-pk":"pk","x-texinfo":["texinfo","texi"],"x-trash":["~","%","bak","old","sik"],"x-ustar":"ustar","x-wais-source":"src","x-wingz":"wz","x-x509-ca-cert":["crt","der","cer"],"x-xcf":"xcf","x-xfig":"fig","x-xpinstall":"xpi",applixware:"aw","atomsvc+xml":"atomsvc","ccxml+xml":"ccxml","cdmi-capability":"cdmia","cdmi-container":"cdmic","cdmi-domain":"cdmid","cdmi-object":"cdmio","cdmi-queue":"cdmiq","docbook+xml":"dbk","dssc+der":"dssc","dssc+xml":"xdssc","emma+xml":"emma","epub+zip":"epub",exi:"exi","font-tdpfr":"pfr","gml+xml":"gml","gpx+xml":"gpx",gxf:"gxf",hyperstudio:"stk","inkml+xml":["ink","inkml"],ipfix:"ipfix","jsonml+json":"jsonml","lost+xml":"lostxml","mads+xml":"mads",marc:"mrc","marcxml+xml":"mrcx","mathml+xml":["mathml","mml"],mbox:"mbox","mediaservercontrol+xml":"mscml","metalink+xml":"metalink","metalink4+xml":"meta4","mets+xml":"mets","mods+xml":"mods",mp21:["m21","mp21"],mp4:"mp4s","oebps-package+xml":"opf","omdoc+xml":"omdoc",onenote:["onetoc","onetoc2","onetmp","onepkg"],oxps:"oxps","patch-ops-error+xml":"xer","pgp-encrypted":"pgp",pkcs10:"p10","pkcs7-mime":["p7m","p7c"],"pkcs7-signature":"p7s",pkcs8:"p8","pkix-attr-cert":"ac","pkix-crl":"crl","pkix-pkipath":"pkipath",pkixcmp:"pki","pls+xml":"pls","prs.cww":"cww","pskc+xml":"pskcxml","reginfo+xml":"rif","relax-ng-compact-syntax":"rnc","resource-lists+xml":"rl","resource-lists-diff+xml":"rld","rls-services+xml":"rs","rpki-ghostbusters":"gbr","rpki-manifest":"mft","rpki-roa":"roa","rsd+xml":"rsd","sbml+xml":"sbml","scvp-cv-request":"scq","scvp-cv-response":"scs","scvp-vp-request":"spq","scvp-vp-response":"spp",sdp:"sdp","set-payment-initiation":"setpay","set-registration-initiation":"setreg","shf+xml":"shf","sparql-query":"rq","sparql-results+xml":"srx",srgs:"gram","srgs+xml":"grxml","sru+xml":"sru","ssdl+xml":"ssdl","ssml+xml":"ssml","tei+xml":["tei","teicorpus"],"thraud+xml":"tfi","timestamped-data":"tsd","vnd.3gpp.pic-bw-large":"plb","vnd.3gpp.pic-bw-small":"psb","vnd.3gpp.pic-bw-var":"pvb","vnd.3gpp2.tcap":"tcap","vnd.3m.post-it-notes":"pwn","vnd.accpac.simply.aso":"aso","vnd.accpac.simply.imp":"imp","vnd.acucobol":"acu","vnd.acucorp":["atc","acutc"],"vnd.adobe.air-application-installer-package+zip":"air","vnd.adobe.formscentral.fcdt":"fcdt","vnd.adobe.fxp":["fxp","fxpl"],"vnd.adobe.xdp+xml":"xdp","vnd.adobe.xfdf":"xfdf","vnd.ahead.space":"ahead","vnd.airzip.filesecure.azf":"azf","vnd.airzip.filesecure.azs":"azs","vnd.amazon.ebook":"azw","vnd.americandynamics.acc":"acc","vnd.amiga.ami":"ami","vnd.anser-web-certificate-issue-initiation":"cii","vnd.anser-web-funds-transfer-initiation":"fti","vnd.antix.game-component":"atx","vnd.apple.installer+xml":"mpkg","vnd.apple.mpegurl":"m3u8","vnd.aristanetworks.swi":"swi","vnd.astraea-software.iota":"iota","vnd.audiograph":"aep","vnd.blueice.multipass":"mpm","vnd.bmi":"bmi","vnd.businessobjects":"rep","vnd.chemdraw+xml":"cdxml","vnd.chipnuts.karaoke-mmd":"mmd","vnd.claymore":"cla","vnd.cloanto.rp9":"rp9","vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"vnd.cluetrust.cartomobile-config":"c11amc","vnd.cluetrust.cartomobile-config-pkg":"c11amz","vnd.commonspace":"csp","vnd.contact.cmsg":"cdbcmsg","vnd.cosmocaller":"cmc","vnd.crick.clicker":"clkx","vnd.crick.clicker.keyboard":"clkk","vnd.crick.clicker.palette":"clkp","vnd.crick.clicker.template":"clkt","vnd.crick.clicker.wordbank":"clkw","vnd.criticaltools.wbs+xml":"wbs","vnd.ctc-posml":"pml","vnd.cups-ppd":"ppd","vnd.curl.car":"car","vnd.curl.pcurl":"pcurl","vnd.dart":"dart","vnd.data-vision.rdz":"rdz","vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"vnd.dece.ttml+xml":["uvt","uvvt"],"vnd.dece.unspecified":["uvx","uvvx"],"vnd.dece.zip":["uvz","uvvz"],"vnd.denovo.fcselayout-link":"fe_launch","vnd.dna":"dna","vnd.dolby.mlp":"mlp","vnd.dpgraph":"dpg","vnd.dreamfactory":"dfac","vnd.ds-keypoint":"kpxx","vnd.dvb.ait":"ait","vnd.dvb.service":"svc","vnd.dynageo":"geo","vnd.ecowin.chart":"mag","vnd.enliven":"nml","vnd.epson.esf":"esf","vnd.epson.msf":"msf","vnd.epson.quickanime":"qam","vnd.epson.salt":"slt","vnd.epson.ssf":"ssf","vnd.eszigno3+xml":["es3","et3"],"vnd.ezpix-album":"ez2","vnd.ezpix-package":"ez3","vnd.fdf":"fdf","vnd.fdsn.mseed":"mseed","vnd.fdsn.seed":["seed","dataless"],"vnd.flographit":"gph","vnd.fluxtime.clip":"ftc","vnd.framemaker":["fm","frame","maker","book"],"vnd.frogans.fnc":"fnc","vnd.frogans.ltf":"ltf","vnd.fsc.weblaunch":"fsc","vnd.fujitsu.oasys":"oas","vnd.fujitsu.oasys2":"oa2","vnd.fujitsu.oasys3":"oa3","vnd.fujitsu.oasysgp":"fg5","vnd.fujitsu.oasysprs":"bh2","vnd.fujixerox.ddd":"ddd","vnd.fujixerox.docuworks":"xdw","vnd.fujixerox.docuworks.binder":"xbd","vnd.fuzzysheet":"fzs","vnd.genomatix.tuxedo":"txd","vnd.geogebra.file":"ggb","vnd.geogebra.tool":"ggt","vnd.geometry-explorer":["gex","gre"],"vnd.geonext":"gxt","vnd.geoplan":"g2w","vnd.geospace":"g3w","vnd.gmx":"gmx","vnd.grafeq":["gqf","gqs"],"vnd.groove-account":"gac","vnd.groove-help":"ghf","vnd.groove-identity-message":"gim","vnd.groove-injector":"grv","vnd.groove-tool-message":"gtm","vnd.groove-tool-template":"tpl","vnd.groove-vcard":"vcg","vnd.hal+xml":"hal","vnd.handheld-entertainment+xml":"zmm","vnd.hbci":"hbci","vnd.hhe.lesson-player":"les","vnd.hp-hpgl":"hpgl","vnd.hp-hpid":"hpid","vnd.hp-hps":"hps","vnd.hp-jlyt":"jlt","vnd.hp-pcl":"pcl","vnd.hp-pclxl":"pclxl","vnd.hydrostatix.sof-data":"sfd-hdstx","vnd.ibm.minipay":"mpy","vnd.ibm.modcap":["afp","listafp","list3820"],"vnd.ibm.rights-management":"irm","vnd.ibm.secure-container":"sc","vnd.iccprofile":["icc","icm"],"vnd.igloader":"igl","vnd.immervision-ivp":"ivp","vnd.immervision-ivu":"ivu","vnd.insors.igm":"igm","vnd.intercon.formnet":["xpw","xpx"],"vnd.intergeo":"i2g","vnd.intu.qbo":"qbo","vnd.intu.qfx":"qfx","vnd.ipunplugged.rcprofile":"rcprofile","vnd.irepository.package+xml":"irp","vnd.is-xpr":"xpr","vnd.isac.fcs":"fcs","vnd.jam":"jam","vnd.jcp.javame.midlet-rms":"rms","vnd.jisp":"jisp","vnd.joost.joda-archive":"joda","vnd.kahootz":["ktz","ktr"],"vnd.kde.karbon":"karbon","vnd.kde.kchart":"chrt","vnd.kde.kformula":"kfo","vnd.kde.kivio":"flw","vnd.kde.kontour":"kon","vnd.kde.kpresenter":["kpr","kpt"],"vnd.kde.kspread":"ksp","vnd.kde.kword":["kwd","kwt"],"vnd.kenameaapp":"htke","vnd.kidspiration":"kia","vnd.kinar":["kne","knp"],"vnd.koan":["skp","skd","skt","skm"],"vnd.kodak-descriptor":"sse","vnd.las.las+xml":"lasxml","vnd.llamagraphics.life-balance.desktop":"lbd","vnd.llamagraphics.life-balance.exchange+xml":"lbe","vnd.lotus-1-2-3":"123","vnd.lotus-approach":"apr","vnd.lotus-freelance":"pre","vnd.lotus-notes":"nsf","vnd.lotus-organizer":"org","vnd.lotus-screencam":"scm","vnd.lotus-wordpro":"lwp","vnd.macports.portpkg":"portpkg","vnd.mcd":"mcd","vnd.medcalcdata":"mc1","vnd.mediastation.cdkey":"cdkey","vnd.mfer":"mwf","vnd.mfmp":"mfm","vnd.micrografx.flo":"flo","vnd.micrografx.igx":"igx","vnd.mif":"mif","vnd.mobius.daf":"daf","vnd.mobius.dis":"dis","vnd.mobius.mbk":"mbk","vnd.mobius.mqy":"mqy","vnd.mobius.msl":"msl","vnd.mobius.plc":"plc","vnd.mobius.txf":"txf","vnd.mophun.application":"mpn","vnd.mophun.certificate":"mpc","vnd.ms-artgalry":"cil","vnd.ms-cab-compressed":"cab","vnd.ms-excel.addin.macroenabled.12":"xlam","vnd.ms-excel.sheet.binary.macroenabled.12":"xlsb","vnd.ms-excel.sheet.macroenabled.12":"xlsm","vnd.ms-excel.template.macroenabled.12":"xltm","vnd.ms-fontobject":"eot","vnd.ms-htmlhelp":"chm","vnd.ms-ims":"ims","vnd.ms-lrm":"lrm","vnd.ms-officetheme":"thmx","vnd.ms-powerpoint.addin.macroenabled.12":"ppam","vnd.ms-powerpoint.presentation.macroenabled.12":"pptm","vnd.ms-powerpoint.slide.macroenabled.12":"sldm","vnd.ms-powerpoint.slideshow.macroenabled.12":"ppsm","vnd.ms-powerpoint.template.macroenabled.12":"potm","vnd.ms-project":["mpp","mpt"],"vnd.ms-word.document.macroenabled.12":"docm","vnd.ms-word.template.macroenabled.12":"dotm","vnd.ms-works":["wps","wks","wcm","wdb"],"vnd.ms-wpl":"wpl","vnd.ms-xpsdocument":"xps","vnd.mseq":"mseq","vnd.musician":"mus","vnd.muvee.style":"msty","vnd.mynfc":"taglet","vnd.neurolanguage.nlu":"nlu","vnd.nitf":["ntf","nitf"],"vnd.noblenet-directory":"nnd","vnd.noblenet-sealer":"nns","vnd.noblenet-web":"nnw","vnd.nokia.n-gage.data":"ngdat","vnd.nokia.n-gage.symbian.install":"n-gage","vnd.nokia.radio-preset":"rpst","vnd.nokia.radio-presets":"rpss","vnd.novadigm.edm":"edm","vnd.novadigm.edx":"edx","vnd.novadigm.ext":"ext","vnd.oasis.opendocument.chart-template":"otc","vnd.oasis.opendocument.formula-template":"odft","vnd.oasis.opendocument.image-template":"oti","vnd.olpc-sugar":"xo","vnd.oma.dd2+xml":"dd2","vnd.openofficeorg.extension":"oxt","vnd.openxmlformats-officedocument.presentationml.slide":"sldx","vnd.osgeo.mapguide.package":"mgp","vnd.osgi.dp":"dp","vnd.osgi.subsystem":"esa","vnd.palm":["pdb","pqa","oprc"],"vnd.pawaafile":"paw","vnd.pg.format":"str","vnd.pg.osasli":"ei6","vnd.picsel":"efif","vnd.pmi.widget":"wg","vnd.pocketlearn":"plf","vnd.powerbuilder6":"pbd","vnd.previewsystems.box":"box","vnd.proteus.magazine":"mgz","vnd.publishare-delta-tree":"qps","vnd.pvi.ptid1":"ptid","vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"vnd.realvnc.bed":"bed","vnd.recordare.musicxml":"mxl","vnd.recordare.musicxml+xml":"musicxml","vnd.rig.cryptonote":"cryptonote","vnd.rn-realmedia":"rm","vnd.rn-realmedia-vbr":"rmvb","vnd.route66.link66+xml":"link66","vnd.sailingtracker.track":"st","vnd.seemail":"see","vnd.sema":"sema","vnd.semd":"semd","vnd.semf":"semf","vnd.shana.informed.formdata":"ifm","vnd.shana.informed.formtemplate":"itp","vnd.shana.informed.interchange":"iif","vnd.shana.informed.package":"ipk","vnd.simtech-mindmapper":["twd","twds"],"vnd.smart.teacher":"teacher","vnd.solent.sdkm+xml":["sdkm","sdkd"],"vnd.spotfire.dxp":"dxp","vnd.spotfire.sfs":"sfs","vnd.stepmania.package":"smzip","vnd.stepmania.stepchart":"sm","vnd.sus-calendar":["sus","susp"],"vnd.svd":"svd","vnd.syncml+xml":"xsm","vnd.syncml.dm+wbxml":"bdm","vnd.syncml.dm+xml":"xdm","vnd.tao.intent-module-archive":"tao","vnd.tcpdump.pcap":["pcap","cap","dmp"],"vnd.tmobile-livetv":"tmo","vnd.trid.tpt":"tpt","vnd.triscape.mxs":"mxs","vnd.trueapp":"tra","vnd.ufdl":["ufd","ufdl"],"vnd.uiq.theme":"utz","vnd.umajin":"umj","vnd.unity":"unityweb","vnd.uoml+xml":"uoml","vnd.vcx":"vcx","vnd.visionary":"vis","vnd.vsf":"vsf","vnd.webturbo":"wtb","vnd.wolfram.player":"nbp","vnd.wqd":"wqd","vnd.wt.stf":"stf","vnd.xara":"xar","vnd.xfdl":"xfdl","vnd.yamaha.hv-dic":"hvd","vnd.yamaha.hv-script":"hvs","vnd.yamaha.hv-voice":"hvp","vnd.yamaha.openscoreformat":"osf","vnd.yamaha.openscoreformat.osfpvg+xml":"osfpvg","vnd.yamaha.smaf-audio":"saf","vnd.yamaha.smaf-phrase":"spf","vnd.yellowriver-custom-menu":"cmp","vnd.zul":["zir","zirz"],"vnd.zzazz.deck+xml":"zaz","voicexml+xml":"vxml",widget:"wgt",winhlp:"hlp","wsdl+xml":"wsdl","wspolicy+xml":"wspolicy","x-ace-compressed":"ace","x-authorware-bin":["aab","x32","u32","vox"],"x-authorware-map":"aam","x-authorware-seg":"aas","x-blorb":["blb","blorb"],"x-bzip":"bz","x-bzip2":["bz2","boz"],"x-cfs-compressed":"cfs","x-chat":"chat","x-conference":"nsc","x-dgc-compressed":"dgc","x-dtbncx+xml":"ncx","x-dtbook+xml":"dtb","x-dtbresource+xml":"res","x-eva":"eva","x-font-bdf":"bdf","x-font-ghostscript":"gsf","x-font-linux-psf":"psf","x-font-pcf":"pcf","x-font-snf":"snf","x-font-ttf":["ttf","ttc"],"x-font-type1":["pfa","pfb","pfm","afm"],"x-freearc":"arc","x-gca-compressed":"gca","x-glulx":"ulx","x-gramps-xml":"gramps","x-install-instructions":"install","x-lzh-compressed":["lzh","lha"],"x-mie":"mie","x-mobipocket-ebook":["prc","mobi"],"x-ms-application":"application","x-ms-shortcut":"lnk","x-ms-xbap":"xbap","x-msbinder":"obd","x-mscardfile":"crd","x-msclip":"clp","application/x-ms-installer":"msi","x-msmediaview":["mvb","m13","m14"],"x-msmetafile":["wmf","wmz","emf","emz"],"x-msmoney":"mny","x-mspublisher":"pub","x-msschedule":"scd","x-msterminal":"trm","x-mswrite":"wri","x-nzb":"nzb","x-pkcs12":["p12","pfx"],"x-pkcs7-certificates":["p7b","spc"],"x-research-info-systems":"ris","x-silverlight-app":"xap","x-sql":"sql","x-stuffitx":"sitx","x-subrip":"srt","x-t3vm-image":"t3","x-tex-tfm":"tfm","x-tgif":"obj","x-xliff+xml":"xlf","x-xz":"xz","x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"xaml+xml":"xaml","xcap-diff+xml":"xdf","xenc+xml":"xenc","xml-dtd":"dtd","xop+xml":"xop","xproc+xml":"xpl","xslt+xml":"xslt","xv+xml":["mxml","xhvml","xvml","xvm"],yang:"yang","yin+xml":"yin",envoy:"evy",fractals:"fif","internet-property-stream":"acx",olescript:"axs","vnd.ms-outlook":"msg","vnd.ms-pkicertstore":"sst","x-compress":"z","x-perfmon":["pma","pmc","pmr","pmw"],"ynd.ms-pkipko":"pko",gzip:["gz","tgz"],"smil+xml":["smi","smil"],"vnd.debian.binary-package":["deb","udeb"],"vnd.hzn-3d-crossword":"x3d","vnd.sqlite3":["db","sqlite","sqlite3","db-wal","sqlite-wal","db-shm","sqlite-shm"],"vnd.wap.sic":"sic","vnd.wap.slc":"slc","x-krita":["kra","krz"],"x-perl":["pm","pl"],yaml:["yaml","yml"]},audio:{amr:"amr","amr-wb":"awb",annodex:"axa",basic:["au","snd"],flac:"flac",midi:["mid","midi","kar","rmi"],mpeg:["mpga","mpega","mp3","m4a","mp2a","m2a","m3a"],mpegurl:"m3u",ogg:["oga","ogg","spx"],"prs.sid":"sid","x-aiff":"aifc","x-gsm":"gsm","x-ms-wma":"wma","x-ms-wax":"wax","x-pn-realaudio":"ram","x-realaudio":"ra","x-sd2":"sd2",adpcm:"adp",mp4:"mp4a",s3m:"s3m",silk:"sil","vnd.dece.audio":["uva","uvva"],"vnd.digital-winds":"eol","vnd.dra":"dra","vnd.dts":"dts","vnd.dts.hd":"dtshd","vnd.lucent.voice":"lvp","vnd.ms-playready.media.pya":"pya","vnd.nuera.ecelp4800":"ecelp4800","vnd.nuera.ecelp7470":"ecelp7470","vnd.nuera.ecelp9600":"ecelp9600","vnd.rip":"rip",webm:"weba","x-caf":"caf","x-matroska":"mka","x-pn-realaudio-plugin":"rmp",xm:"xm",aac:"aac",aiff:["aiff","aif","aff"],opus:"opus",wav:"wav"},chemical:{"x-alchemy":"alc","x-cache":["cac","cache"],"x-cache-csf":"csf","x-cactvs-binary":["cbin","cascii","ctab"],"x-cdx":"cdx","x-chem3d":"c3d","x-cif":"cif","x-cmdf":"cmdf","x-cml":"cml","x-compass":"cpa","x-crossfire":"bsd","x-csml":["csml","csm"],"x-ctx":"ctx","x-cxf":["cxf","cef"],"x-embl-dl-nucleotide":["emb","embl"],"x-gamess-input":["inp","gam","gamin"],"x-gaussian-checkpoint":["fch","fchk"],"x-gaussian-cube":"cub","x-gaussian-input":["gau","gjc","gjf"],"x-gaussian-log":"gal","x-gcg8-sequence":"gcg","x-genbank":"gen","x-hin":"hin","x-isostar":["istr","ist"],"x-jcamp-dx":["jdx","dx"],"x-kinemage":"kin","x-macmolecule":"mcm","x-macromodel-input":"mmod","x-mdl-molfile":"mol","x-mdl-rdfile":"rd","x-mdl-rxnfile":"rxn","x-mdl-sdfile":"sd","x-mdl-tgf":"tgf","x-mmcif":"mcif","x-mol2":"mol2","x-molconn-Z":"b","x-mopac-graph":"gpt","x-mopac-input":["mop","mopcrt","zmt"],"x-mopac-out":"moo","x-ncbi-asn1":"asn","x-ncbi-asn1-ascii":["prt","ent"],"x-ncbi-asn1-binary":"val","x-rosdal":"ros","x-swissprot":"sw","x-vamas-iso14976":"vms","x-vmd":"vmd","x-xtel":"xtel","x-xyz":"xyz"},font:{otf:"otf",woff:"woff",woff2:"woff2"},image:{gif:"gif",ief:"ief",jpeg:["jpeg","jpg","jpe","jfif","jfif-tbnl","jif"],pcx:"pcx",png:"png","svg+xml":["svg","svgz"],tiff:["tiff","tif"],"vnd.djvu":["djvu","djv"],"vnd.wap.wbmp":"wbmp","x-canon-cr2":"cr2","x-canon-crw":"crw","x-cmu-raster":"ras","x-coreldraw":"cdr","x-coreldrawpattern":"pat","x-coreldrawtemplate":"cdt","x-corelphotopaint":"cpt","x-epson-erf":"erf","x-icon":"ico","x-jg":"art","x-jng":"jng","x-nikon-nef":"nef","x-olympus-orf":"orf","x-portable-anymap":"pnm","x-portable-bitmap":"pbm","x-portable-graymap":"pgm","x-portable-pixmap":"ppm","x-rgb":"rgb","x-xbitmap":"xbm","x-xpixmap":"xpm","x-xwindowdump":"xwd",bmp:"bmp",cgm:"cgm",g3fax:"g3",ktx:"ktx","prs.btif":"btif",sgi:"sgi","vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"vnd.dwg":"dwg","vnd.dxf":"dxf","vnd.fastbidsheet":"fbs","vnd.fpx":"fpx","vnd.fst":"fst","vnd.fujixerox.edmics-mmr":"mmr","vnd.fujixerox.edmics-rlc":"rlc","vnd.ms-modi":"mdi","vnd.ms-photo":"wdp","vnd.net-fpx":"npx","vnd.xiff":"xif",webp:"webp","x-3ds":"3ds","x-cmx":"cmx","x-freehand":["fh","fhc","fh4","fh5","fh7"],"x-pict":["pic","pct"],"x-tga":"tga","cis-cod":"cod",avif:"avifs",heic:["heif","heic"],pjpeg:["pjpg"],"vnd.adobe.photoshop":"psd","x-adobe-dng":"dng","x-fuji-raf":"raf","x-icns":"icns","x-kodak-dcr":"dcr","x-kodak-k25":"k25","x-kodak-kdc":"kdc","x-minolta-mrw":"mrw","x-panasonic-raw":["raw","rw2","rwl"],"x-pentax-pef":["pef","ptx"],"x-sigma-x3f":"x3f","x-sony-arw":"arw","x-sony-sr2":"sr2","x-sony-srf":"srf"},message:{rfc822:["eml","mime","mht","mhtml","nws"]},model:{iges:["igs","iges"],mesh:["msh","mesh","silo"],vrml:["wrl","vrml"],"x3d+vrml":["x3dv","x3dvz"],"x3d+xml":"x3dz","x3d+binary":["x3db","x3dbz"],"vnd.collada+xml":"dae","vnd.dwf":"dwf","vnd.gdl":"gdl","vnd.gtw":"gtw","vnd.mts":"mts","vnd.usdz+zip":"usdz","vnd.vtu":"vtu"},text:{"cache-manifest":["manifest","appcache"],calendar:["ics","icz","ifb"],css:"css",csv:"csv",h323:"323",html:["html","htm","shtml","stm"],iuls:"uls",plain:["txt","text","brf","conf","def","list","log","in","bas","diff","ksh"],richtext:"rtx",scriptlet:["sct","wsc"],texmacs:"tm","tab-separated-values":"tsv","vnd.sun.j2me.app-descriptor":"jad","vnd.wap.wml":"wml","vnd.wap.wmlscript":"wmls","x-bibtex":"bib","x-boo":"boo","x-c++hdr":["h++","hpp","hxx","hh"],"x-c++src":["c++","cpp","cxx","cc"],"x-component":"htc","x-dsrc":"d","x-diff":"patch","x-haskell":"hs","x-java":"java","x-literate-haskell":"lhs","x-moc":"moc","x-pascal":["p","pas","pp","inc"],"x-pcs-gcd":"gcd","x-python":"py","x-scala":"scala","x-setext":"etx","x-tcl":["tcl","tk"],"x-tex":["tex","ltx","sty","cls"],"x-vcalendar":"vcs","x-vcard":"vcf",n3:"n3","prs.lines.tag":"dsc",sgml:["sgml","sgm"],troff:["t","tr","roff","man","me","ms"],turtle:"ttl","uri-list":["uri","uris","urls"],vcard:"vcard","vnd.curl":"curl","vnd.curl.dcurl":"dcurl","vnd.curl.scurl":"scurl","vnd.curl.mcurl":"mcurl","vnd.dvb.subtitle":"sub","vnd.fly":"fly","vnd.fmi.flexstor":"flx","vnd.graphviz":"gv","vnd.in3d.3dml":"3dml","vnd.in3d.spot":"spot","x-asm":["s","asm"],"x-c":["c","h","dic"],"x-fortran":["f","for","f77","f90"],"x-opml":"opml","x-nfo":"nfo","x-sfv":"sfv","x-uuencode":"uu",webviewhtml:"htt",javascript:"js",json:"json",markdown:["md","markdown","mdown","markdn"],"vnd.wap.si":"si","vnd.wap.sl":"sl"},video:{avif:"avif","3gpp":"3gp",annodex:"axv",dl:"dl",dv:["dif","dv"],fli:"fli",gl:"gl",mpeg:["mpeg","mpg","mpe","m1v","m2v","mp2","mpa","mpv2"],mp4:["mp4","mp4v","mpg4"],quicktime:["qt","mov"],ogg:"ogv","vnd.mpegurl":["mxu","m4u"],"x-flv":"flv","x-la-asf":["lsf","lsx"],"x-mng":"mng","x-ms-asf":["asf","asx","asr"],"x-ms-wm":"wm","x-ms-wmv":"wmv","x-ms-wmx":"wmx","x-ms-wvx":"wvx","x-msvideo":"avi","x-sgi-movie":"movie","x-matroska":["mpv","mkv","mk3d","mks"],"3gpp2":"3g2",h261:"h261",h263:"h263",h264:"h264",jpeg:"jpgv",jpm:["jpm","jpgm"],mj2:["mj2","mjp2"],"vnd.dece.hd":["uvh","uvvh"],"vnd.dece.mobile":["uvm","uvvm"],"vnd.dece.pd":["uvp","uvvp"],"vnd.dece.sd":["uvs","uvvs"],"vnd.dece.video":["uvv","uvvv"],"vnd.dvb.file":"dvb","vnd.fvt":"fvt","vnd.ms-playready.media.pyv":"pyv","vnd.uvvu.mp4":["uvu","uvvu"],"vnd.vivo":"viv",webm:"webm","x-f4v":"f4v","x-m4v":"m4v","x-ms-vob":"vob","x-smv":"smv",mp2t:"ts"},"x-conference":{"x-cooltalk":"ice"},"x-world":{"x-vrml":["vrm","flr","wrz","xaf","xof"]}};(()=>{const e={};for(const t of Object.keys(Ci))for(const r of Object.keys(Ci[t])){const i=Ci[t][r];if(typeof i=="string")e[i]=t+"/"+r;else for(let a=0;a<i.length;a++)e[i[a]]=t+"/"+r}return e})();const Ap=[];for(let e=0;e<256;e++){let t=e;for(let r=0;r<8;r++)t&1?t=t>>>1^3988292384:t=t>>>1;Ap[e]=t}class On{constructor(t){this.crc=t||-1}append(t){let r=this.crc|0;for(let i=0,a=t.length|0;i<a;i++)r=r>>>8^Ap[(r^t[i])&255];this.crc=r}get(){return~this.crc}}class Tp extends TransformStream{constructor(){let t;const r=new On;super({transform(i,a){r.append(i),a.enqueue(i)},flush(){const i=new Uint8Array(4);new DataView(i.buffer).setUint32(0,r.get()),t.value=i}}),t=this}}function D0(e){if(typeof TextEncoder==yr){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let r=0;r<t.length;r++)t[r]=e.charCodeAt(r);return t}else return new TextEncoder().encode(e)}const nt={concat(e,t){if(e.length===0||t.length===0)return e.concat(t);const r=e[e.length-1],i=nt.getPartial(r);return i===32?e.concat(t):nt._shiftRight(t,i,r|0,e.slice(0,e.length-1))},bitLength(e){const t=e.length;if(t===0)return 0;const r=e[t-1];return(t-1)*32+nt.getPartial(r)},clamp(e,t){if(e.length*32<t)return e;e=e.slice(0,Math.ceil(t/32));const r=e.length;return t=t&31,r>0&&t&&(e[r-1]=nt.partial(t,e[r-1]&2147483648>>t-1,1)),e},partial(e,t,r){return e===32?t:(r?t|0:t<<32-e)+e*1099511627776},getPartial(e){return Math.round(e/1099511627776)||32},_shiftRight(e,t,r,i){for(i===void 0&&(i=[]);t>=32;t-=32)i.push(r),r=0;if(t===0)return i.concat(e);for(let s=0;s<e.length;s++)i.push(r|e[s]>>>t),r=e[s]<<32-t;const a=e.length?e[e.length-1]:0,n=nt.getPartial(a);return i.push(nt.partial(t+n&31,t+n>32?r:i.pop(),1)),i}},Ln={bytes:{fromBits(e){const r=nt.bitLength(e)/8,i=new Uint8Array(r);let a;for(let n=0;n<r;n++)n&3||(a=e[n/4]),i[n]=a>>>24,a<<=8;return i},toBits(e){const t=[];let r,i=0;for(r=0;r<e.length;r++)i=i<<8|e[r],(r&3)===3&&(t.push(i),i=0);return r&3&&t.push(nt.partial(8*(r&3),i)),t}}},Cp={};Cp.sha1=class{constructor(e){const t=this;t.blockSize=512,t._init=[1732584193,4023233417,2562383102,271733878,3285377520],t._key=[1518500249,1859775393,2400959708,3395469782],e?(t._h=e._h.slice(0),t._buffer=e._buffer.slice(0),t._length=e._length):t.reset()}reset(){const e=this;return e._h=e._init.slice(0),e._buffer=[],e._length=0,e}update(e){const t=this;typeof e=="string"&&(e=Ln.utf8String.toBits(e));const r=t._buffer=nt.concat(t._buffer,e),i=t._length,a=t._length=i+nt.bitLength(e);if(a>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const n=new Uint32Array(r);let s=0;for(let o=t.blockSize+i-(t.blockSize+i&t.blockSize-1);o<=a;o+=t.blockSize)t._block(n.subarray(16*s,16*(s+1))),s+=1;return r.splice(0,16*s),t}finalize(){const e=this;let t=e._buffer;const r=e._h;t=nt.concat(t,[nt.partial(1,1)]);for(let i=t.length+2;i&15;i++)t.push(0);for(t.push(Math.floor(e._length/4294967296)),t.push(e._length|0);t.length;)e._block(t.splice(0,16));return e.reset(),r}_f(e,t,r,i){if(e<=19)return t&r|~t&i;if(e<=39)return t^r^i;if(e<=59)return t&r|t&i|r&i;if(e<=79)return t^r^i}_S(e,t){return t<<e|t>>>32-e}_block(e){const t=this,r=t._h,i=Array(80);for(let p=0;p<16;p++)i[p]=e[p];let a=r[0],n=r[1],s=r[2],o=r[3],f=r[4];for(let p=0;p<=79;p++){p>=16&&(i[p]=t._S(1,i[p-3]^i[p-8]^i[p-14]^i[p-16]));const c=t._S(5,a)+t._f(p,n,s,o)+f+i[p]+t._key[Math.floor(p/20)]|0;f=o,o=s,s=t._S(30,n),n=a,a=c}r[0]=r[0]+a|0,r[1]=r[1]+n|0,r[2]=r[2]+s|0,r[3]=r[3]+o|0,r[4]=r[4]+f|0}};const Op={};Op.aes=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const r=t._tables[0][4],i=t._tables[1],a=e.length;let n,s,o,f=1;if(a!==4&&a!==6&&a!==8)throw new Error("invalid aes key size");for(t._key=[s=e.slice(0),o=[]],n=a;n<4*a+28;n++){let p=s[n-1];(n%a===0||a===8&&n%a===4)&&(p=r[p>>>24]<<24^r[p>>16&255]<<16^r[p>>8&255]<<8^r[p&255],n%a===0&&(p=p<<8^p>>>24^f<<24,f=f<<1^(f>>7)*283)),s[n]=s[n-a]^p}for(let p=0;n;p++,n--){const c=s[p&3?n:n-4];n<=4||p<4?o[p]=c:o[p]=i[0][r[c>>>24]]^i[1][r[c>>16&255]]^i[2][r[c>>8&255]]^i[3][r[c&255]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],r=e[4],i=t[4],a=[],n=[];let s,o,f,p;for(let c=0;c<256;c++)n[(a[c]=c<<1^(c>>7)*283)^c]=c;for(let c=s=0;!r[c];c^=o||1,s=n[s]||1){let m=s^s<<1^s<<2^s<<3^s<<4;m=m>>8^m&255^99,r[c]=m,i[m]=c,p=a[f=a[o=a[c]]];let h=p*16843009^f*65537^o*257^c*16843008,_=a[m]*257^m*16843008;for(let L=0;L<4;L++)e[L][c]=_=_<<24^_>>>8,t[L][m]=h=h<<24^h>>>8}for(let c=0;c<5;c++)e[c]=e[c].slice(0),t[c]=t[c].slice(0)}_crypt(e,t){if(e.length!==4)throw new Error("invalid aes block size");const r=this._key[t],i=r.length/4-2,a=[0,0,0,0],n=this._tables[t],s=n[0],o=n[1],f=n[2],p=n[3],c=n[4];let m=e[0]^r[0],h=e[t?3:1]^r[1],_=e[2]^r[2],L=e[t?1:3]^r[3],y=4,g,b,R;for(let O=0;O<i;O++)g=s[m>>>24]^o[h>>16&255]^f[_>>8&255]^p[L&255]^r[y],b=s[h>>>24]^o[_>>16&255]^f[L>>8&255]^p[m&255]^r[y+1],R=s[_>>>24]^o[L>>16&255]^f[m>>8&255]^p[h&255]^r[y+2],L=s[L>>>24]^o[m>>16&255]^f[h>>8&255]^p[_&255]^r[y+3],y+=4,m=g,h=b,_=R;for(let O=0;O<4;O++)a[t?3&-O:O]=c[m>>>24]<<24^c[h>>16&255]<<16^c[_>>8&255]<<8^c[L&255]^r[y++],g=m,m=h,h=_,_=L,L=g;return a}};const $0={getRandomValues(e){const t=new Uint32Array(e.buffer),r=i=>{let a=987654321;const n=4294967295;return function(){return a=36969*(a&65535)+(a>>16)&n,i=18e3*(i&65535)+(i>>16)&n,(((a<<16)+i&n)/4294967296+.5)*(Math.random()>.5?1:-1)}};for(let i=0,a;i<e.length;i+=4){const n=r((a||Math.random())*4294967296);a=n()*987654071,t[i/4]=n()*4294967296|0}return e}},Lp={};Lp.ctrGladman=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if((e>>24&255)===255){let t=e>>16&255,r=e>>8&255,i=e&255;t===255?(t=0,r===255?(r=0,i===255?i=0:++i):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=i}else e+=1<<24;return e}incCounter(e){(e[0]=this.incWord(e[0]))===0&&(e[1]=this.incWord(e[1]))}calculate(e,t,r){let i;if(!(i=t.length))return[];const a=nt.bitLength(t);for(let n=0;n<i;n+=4){this.incCounter(r);const s=e.encrypt(r);t[n]^=s[0],t[n+1]^=s[1],t[n+2]^=s[2],t[n+3]^=s[3]}return nt.clamp(t,a)}};const Rr={importKey(e){return new Rr.hmacSha1(Ln.bytes.toBits(e))},pbkdf2(e,t,r,i){if(r=r||1e4,i<0||r<0)throw new Error("invalid params to pbkdf2");const a=(i>>5)+1<<2;let n,s,o,f,p;const c=new ArrayBuffer(a),m=new DataView(c);let h=0;const _=nt;for(t=Ln.bytes.toBits(t),p=1;h<(a||1);p++){for(n=s=e.encrypt(_.concat(t,[p])),o=1;o<r;o++)for(s=e.encrypt(s),f=0;f<s.length;f++)n[f]^=s[f];for(o=0;h<(a||1)&&o<n.length;o++)m.setInt32(h,n[o]),h+=4}return c.slice(0,i/8)}};Rr.hmacSha1=class{constructor(e){const t=this,r=t._hash=Cp.sha1,i=[[],[]];t._baseHash=[new r,new r];const a=t._baseHash[0].blockSize/32;e.length>a&&(e=new r().update(e).finalize());for(let n=0;n<a;n++)i[0][n]=e[n]^909522486,i[1][n]=e[n]^1549556828;t._baseHash[0].update(i[0]),t._baseHash[1].update(i[1]),t._resultHash=new r(t._baseHash[0])}reset(){const e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){const t=this;t._updated=!0,t._resultHash.update(e)}digest(){const e=this,t=e._resultHash.finalize(),r=new e._hash(e._baseHash[1]).update(t).finalize();return e.reset(),r}encrypt(e){if(this._updated)throw new Error("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}};const H0=typeof crypto!=yr&&typeof crypto.getRandomValues==Bs,Rp="Invalid password",Ip="Invalid signature",Sa="zipjs-abort-check-password";function Dp(e){return H0?crypto.getRandomValues(e):$0.getRandomValues(e)}const Kr=16,F0="raw",$p={name:"PBKDF2"},N0={name:"HMAC"},B0="SHA-1",j0=Object.assign({hash:N0},$p),ta=Object.assign({iterations:1e3,hash:{name:B0}},$p),W0=["deriveBits"],Os=[8,12,16],cs=[16,24,32],lr=10,U0=[0,0,0,0],Vn=typeof crypto!=yr,js=Vn&&crypto.subtle,Hp=Vn&&typeof js!=yr,Ut=Ln.bytes,M0=Op.aes,q0=Lp.ctrGladman,K0=Rr.hmacSha1;let Al=Vn&&Hp&&typeof js.importKey==Bs,Tl=Vn&&Hp&&typeof js.deriveBits==Bs;class z0 extends TransformStream{constructor({password:t,rawPassword:r,signed:i,encryptionStrength:a,checkPasswordOnly:n}){super({start(){Object.assign(this,{ready:new Promise(s=>this.resolveReady=s),password:Bp(t,r),signed:i,strength:a-1,pending:new Uint8Array})},async transform(s,o){const f=this,{password:p,strength:c,resolveReady:m,ready:h}=f;p?(await G0(f,c,p,kt(s,0,Os[c]+2)),s=kt(s,Os[c]+2),n?o.error(new Error(Sa)):m()):await h;const _=new Uint8Array(s.length-lr-(s.length-lr)%Kr);o.enqueue(Fp(f,s,_,0,lr,!0))},async flush(s){const{signed:o,ctr:f,hmac:p,pending:c,ready:m}=this;if(p&&f){await m;const h=kt(c,0,c.length-lr),_=kt(c,c.length-lr);let L=new Uint8Array;if(h.length){const y=Rs(Ut,h);p.update(y);const g=f.update(y);L=Ls(Ut,g)}if(o){const y=kt(Ls(Ut,p.digest()),0,lr);for(let g=0;g<lr;g++)if(y[g]!=_[g])throw new Error(Ip)}s.enqueue(L)}}})}}class V0 extends TransformStream{constructor({password:t,rawPassword:r,encryptionStrength:i}){let a;super({start(){Object.assign(this,{ready:new Promise(n=>this.resolveReady=n),password:Bp(t,r),strength:i-1,pending:new Uint8Array})},async transform(n,s){const o=this,{password:f,strength:p,resolveReady:c,ready:m}=o;let h=new Uint8Array;f?(h=await Z0(o,p,f),c()):await m;const _=new Uint8Array(h.length+n.length-n.length%Kr);_.set(h,0),s.enqueue(Fp(o,n,_,h.length,0))},async flush(n){const{ctr:s,hmac:o,pending:f,ready:p}=this;if(o&&s){await p;let c=new Uint8Array;if(f.length){const m=s.update(Rs(Ut,f));o.update(m),c=Ls(Ut,m)}a.signature=Ls(Ut,o.digest()).slice(0,lr),n.enqueue(Ea(c,a.signature))}}}),a=this}}function Fp(e,t,r,i,a,n){const{ctr:s,hmac:o,pending:f}=e,p=t.length-a;f.length&&(t=Ea(f,t),r=J0(r,p-p%Kr));let c;for(c=0;c<=p-Kr;c+=Kr){const m=Rs(Ut,kt(t,c,c+Kr));n&&o.update(m);const h=s.update(m);n||o.update(h),r.set(Ls(Ut,h),c+i)}return e.pending=kt(t,c),r}async function G0(e,t,r,i){const a=await Np(e,t,r,kt(i,0,Os[t])),n=kt(i,Os[t]);if(a[0]!=n[0]||a[1]!=n[1])throw new Error(Rp)}async function Z0(e,t,r){const i=Dp(new Uint8Array(Os[t])),a=await Np(e,t,r,i);return Ea(i,a)}async function Np(e,t,r,i){e.password=null;const a=await Y0(F0,r,j0,!1,W0),n=await X0(Object.assign({salt:i},ta),a,8*(cs[t]*2+2)),s=new Uint8Array(n),o=Rs(Ut,kt(s,0,cs[t])),f=Rs(Ut,kt(s,cs[t],cs[t]*2)),p=kt(s,cs[t]*2);return Object.assign(e,{keys:{key:o,authentication:f,passwordVerification:p},ctr:new q0(new M0(o),Array.from(U0)),hmac:new K0(f)}),p}async function Y0(e,t,r,i,a){if(Al)try{return await js.importKey(e,t,r,i,a)}catch{return Al=!1,Rr.importKey(t)}else return Rr.importKey(t)}async function X0(e,t,r){if(Tl)try{return await js.deriveBits(e,t,r)}catch{return Tl=!1,Rr.pbkdf2(t,e.salt,ta.iterations,r)}else return Rr.pbkdf2(t,e.salt,ta.iterations,r)}function Bp(e,t){return t===it?D0(e):t}function Ea(e,t){let r=e;return e.length+t.length&&(r=new Uint8Array(e.length+t.length),r.set(e,0),r.set(t,e.length)),r}function J0(e,t){if(t&&t>e.length){const r=e;e=new Uint8Array(t),e.set(r,0)}return e}function kt(e,t,r){return e.subarray(t,r)}function Ls(e,t){return e.fromBits(t)}function Rs(e,t){return e.toBits(t)}const Yr=12;class Q0 extends TransformStream{constructor({password:t,passwordVerification:r,checkPasswordOnly:i}){super({start(){Object.assign(this,{password:t,passwordVerification:r}),jp(this,t)},transform(a,n){const s=this;if(s.password){const o=Cl(s,a.subarray(0,Yr));if(s.password=null,o[Yr-1]!=s.passwordVerification)throw new Error(Rp);a=a.subarray(Yr)}i?n.error(new Error(Sa)):n.enqueue(Cl(s,a))}})}}class ey extends TransformStream{constructor({password:t,passwordVerification:r}){super({start(){Object.assign(this,{password:t,passwordVerification:r}),jp(this,t)},transform(i,a){const n=this;let s,o;if(n.password){n.password=null;const f=Dp(new Uint8Array(Yr));f[Yr-1]=n.passwordVerification,s=new Uint8Array(i.length+f.length),s.set(Ol(n,f),0),o=Yr}else s=new Uint8Array(i.length),o=0;s.set(Ol(n,i),o),a.enqueue(s)}})}}function Cl(e,t){const r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=Wp(e)^t[i],Pa(e,r[i]);return r}function Ol(e,t){const r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=Wp(e)^t[i],Pa(e,t[i]);return r}function jp(e,t){const r=[305419896,591751049,878082192];Object.assign(e,{keys:r,crcKey0:new On(r[0]),crcKey2:new On(r[2])});for(let i=0;i<t.length;i++)Pa(e,t.charCodeAt(i))}function Pa(e,t){let[r,i,a]=e.keys;e.crcKey0.append([t]),r=~e.crcKey0.get(),i=Ll(Math.imul(Ll(i+Up(r)),134775813)+1),e.crcKey2.append([i>>>24]),a=~e.crcKey2.get(),e.keys=[r,i,a]}function Wp(e){const t=e.keys[2]|2;return Up(Math.imul(t,t^1)>>>8)}function Up(e){return e&255}function Ll(e){return e&4294967295}const Rl="deflate-raw";class ty extends TransformStream{constructor(t,{chunkSize:r,CompressionStream:i,CompressionStreamNative:a}){super({});const{compressed:n,encrypted:s,useCompressionStream:o,zipCrypto:f,signed:p,level:c}=t,m=this;let h,_,L=Mp(super.readable);(!s||f)&&p&&(h=new Tp,L=Mt(L,h)),n&&(L=Kp(L,o,{level:c,chunkSize:r},a,i)),s&&(f?L=Mt(L,new ey(t)):(_=new V0(t),L=Mt(L,_))),qp(m,L,()=>{let y;s&&!f&&(y=_.signature),(!s||f)&&p&&(y=new DataView(h.value.buffer).getUint32(0)),m.signature=y})}}class ry extends TransformStream{constructor(t,{chunkSize:r,DecompressionStream:i,DecompressionStreamNative:a}){super({});const{zipCrypto:n,encrypted:s,signed:o,signature:f,compressed:p,useCompressionStream:c}=t;let m,h,_=Mp(super.readable);s&&(n?_=Mt(_,new Q0(t)):(h=new z0(t),_=Mt(_,h))),p&&(_=Kp(_,c,{chunkSize:r},a,i)),(!s||n)&&o&&(m=new Tp,_=Mt(_,m)),qp(this,_,()=>{if((!s||n)&&o){const L=new DataView(m.value.buffer);if(f!=L.getUint32(0,!1))throw new Error(Ip)}})}}function Mp(e){return Mt(e,new TransformStream({transform(t,r){t&&t.length&&r.enqueue(t)}}))}function qp(e,t,r){t=Mt(t,new TransformStream({flush:r})),Object.defineProperty(e,"readable",{get(){return t}})}function Kp(e,t,r,i,a){try{const n=t&&i?i:a;e=Mt(e,new n(Rl,r))}catch{if(t)try{e=Mt(e,new a(Rl,r))}catch{return e}else return e}return e}function Mt(e,t){return e.pipeThrough(t)}const sy="message",ny="start",iy="pull",Il="data",ay="ack",Dl="close",oy="deflate",zp="inflate";class ly extends TransformStream{constructor(t,r){super({});const i=this,{codecType:a}=t;let n;a.startsWith(oy)?n=ty:a.startsWith(zp)&&(n=ry);let s=0,o=0;const f=new n(t,r),p=super.readable,c=new TransformStream({transform(h,_){h&&h.length&&(o+=h.length,_.enqueue(h))},flush(){Object.assign(i,{inputSize:o})}}),m=new TransformStream({transform(h,_){h&&h.length&&(s+=h.length,_.enqueue(h))},flush(){const{signature:h}=f;Object.assign(i,{signature:h,outputSize:s,inputSize:o})}});Object.defineProperty(i,"readable",{get(){return p.pipeThrough(c).pipeThrough(f).pipeThrough(m)}})}}class fy extends TransformStream{constructor(t){let r;super({transform:i,flush(a){r&&r.length&&a.enqueue(r)}});function i(a,n){if(r){const s=new Uint8Array(r.length+a.length);s.set(r),s.set(a,r.length),a=s,r=null}a.length>t?(n.enqueue(a.slice(0,t)),i(a.slice(t),n)):r=a}}}let Vp=typeof Worker!=yr;class Oi{constructor(t,{readable:r,writable:i},{options:a,config:n,streamOptions:s,useWebWorkers:o,transferStreams:f,scripts:p},c){const{signal:m}=s;return Object.assign(t,{busy:!0,readable:r.pipeThrough(new fy(n.chunkSize)).pipeThrough(new py(r,s),{signal:m}),writable:i,options:Object.assign({},a),scripts:p,transferStreams:f,terminate(){return new Promise(h=>{const{worker:_,busy:L}=t;_?(L?t.resolveTerminated=h:(_.terminate(),h()),t.interface=null):h()})},onTaskFinished(){const{resolveTerminated:h}=t;h&&(t.resolveTerminated=null,t.terminated=!0,t.worker.terminate(),h()),t.busy=!1,c(t)}}),(o&&Vp?cy:Gp)(t,n)}}class py extends TransformStream{constructor(t,{onstart:r,onprogress:i,size:a,onend:n}){let s=0;super({async start(){r&&await Li(r,a)},async transform(o,f){s+=o.length,i&&await Li(i,s,a),f.enqueue(o)},async flush(){t.size=s,n&&await Li(n,s)}})}}async function Li(e,...t){try{await e(...t)}catch{}}function Gp(e,t){return{run:()=>uy(e,t)}}function cy(e,t){const{baseURL:r,chunkSize:i}=t;if(!e.interface){let a;try{a=my(e.scripts[0],r,e)}catch{return Vp=!1,Gp(e,t)}Object.assign(e,{worker:a,interface:{run:()=>dy(e,{chunkSize:i})}})}return e.interface}async function uy({options:e,readable:t,writable:r,onTaskFinished:i},a){try{const n=new ly(e,a);await t.pipeThrough(n).pipeTo(r,{preventClose:!0,preventAbort:!0});const{signature:s,inputSize:o,outputSize:f}=n;return{signature:s,inputSize:o,outputSize:f}}finally{i()}}async function dy(e,t){let r,i;const a=new Promise((h,_)=>{r=h,i=_});Object.assign(e,{reader:null,writer:null,resolveResult:r,rejectResult:i,result:a});const{readable:n,options:s,scripts:o}=e,{writable:f,closed:p}=hy(e.writable),c=yn({type:ny,scripts:o.slice(1),options:s,config:t,readable:n,writable:f},e);c||Object.assign(e,{reader:n.getReader(),writer:f.getWriter()});const m=await a;return c||await f.getWriter().close(),await p,m}function hy(e){let t;const r=new Promise(a=>t=a);return{writable:new WritableStream({async write(a){const n=e.getWriter();await n.ready,await n.write(a),n.releaseLock()},close(){t()},abort(a){return e.getWriter().abort(a)}}),closed:r}}let $l=!0,Hl=!0;function my(e,t,r){const i={type:"module"};let a,n;typeof e==Bs&&(e=e());try{a=new URL(e,t)}catch{a=e}if($l)try{n=new Worker(a)}catch{$l=!1,n=new Worker(a,i)}else n=new Worker(a,i);return n.addEventListener(sy,s=>yy(s,r)),n}function yn(e,{worker:t,writer:r,onTaskFinished:i,transferStreams:a}){try{const{value:n,readable:s,writable:o}=e,f=[];if(n&&(n.byteLength<n.buffer.byteLength?e.value=n.buffer.slice(0,n.byteLength):e.value=n.buffer,f.push(e.value)),a&&Hl?(s&&f.push(s),o&&f.push(o)):e.readable=e.writable=null,f.length)try{return t.postMessage(e,f),!0}catch{Hl=!1,e.readable=e.writable=null,t.postMessage(e)}else t.postMessage(e)}catch(n){throw r&&r.releaseLock(),i(),n}}async function yy({data:e},t){const{type:r,value:i,messageId:a,result:n,error:s}=e,{reader:o,writer:f,resolveResult:p,rejectResult:c,onTaskFinished:m}=t;try{if(s){const{message:_,stack:L,code:y,name:g}=s,b=new Error(_);Object.assign(b,{stack:L,code:y,name:g}),h(b)}else{if(r==iy){const{value:_,done:L}=await o.read();yn({type:Il,value:_,done:L,messageId:a},t)}r==Il&&(await f.ready,await f.write(new Uint8Array(i)),yn({type:ay,messageId:a},t)),r==Dl&&h(null,n)}}catch(_){yn({type:Dl,messageId:a},t),h(_)}function h(_,L){_?c(_):p(L),f&&f.releaseLock(),m()}}let vr=[];const Ri=[];let Fl=0;async function _y(e,t){const{options:r,config:i}=t,{transferStreams:a,useWebWorkers:n,useCompressionStream:s,codecType:o,compressed:f,signed:p,encrypted:c}=r,{workerScripts:m,maxWorkers:h}=i;t.transferStreams=a||a===it;const _=!f&&!p&&!c&&!t.transferStreams;return t.useWebWorkers=!_&&(n||n===it&&i.useWebWorkers),t.scripts=t.useWebWorkers&&m?m[o]:[],r.useCompressionStream=s||s===it&&i.useCompressionStream,(await L()).run();async function L(){const g=vr.find(b=>!b.busy);if(g)return Nl(g),new Oi(g,e,t,y);if(vr.length<h){const b={indexWorker:Fl};return Fl++,vr.push(b),new Oi(b,e,t,y)}else return new Promise(b=>Ri.push({resolve:b,stream:e,workerOptions:t}))}function y(g){if(Ri.length){const[{resolve:b,stream:R,workerOptions:O}]=Ri.splice(0,1);b(new Oi(g,R,O,y))}else g.worker?(Nl(g),gy(g,t)):vr=vr.filter(b=>b!=g)}}function gy(e,t){const{config:r}=t,{terminateWorkerTimeout:i}=r;Number.isFinite(i)&&i>=0&&(e.terminated?e.terminated=!1:e.terminateTimeout=setTimeout(async()=>{vr=vr.filter(a=>a!=e);try{await e.terminate()}catch{}},i))}function Nl(e){const{terminateTimeout:t}=e;t&&(clearTimeout(t),e.terminateTimeout=null)}function wy(e,t={}){const r=`const{Array:e,Object:t,Number:n,Math:r,Error:s,Uint8Array:i,Uint16Array:o,Uint32Array:c,Int32Array:f,Map:a,DataView:l,Promise:u,TextEncoder:w,crypto:h,postMessage:d,TransformStream:p,ReadableStream:y,WritableStream:m,CompressionStream:b,DecompressionStream:g}=self,k=void 0,v="undefined",S="function";class z{constructor(e){return class extends p{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}const C=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;C[e]=t}class x{constructor(e){this.t=e||-1}append(e){let t=0|this.t;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^C[255&(t^e[n])];this.t=t}get(){return~this.t}}class A extends p{constructor(){let e;const t=new x;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new i(4);new l(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}const _={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=_.i(n);return 32===r?e.concat(t):_.o(t,r,0|n,e.slice(0,e.length-1))},l(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+_.i(n)},u(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,r.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=_.h(t,e[n-1]&2147483648>>t-1,1)),e},h:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,i:e=>r.round(e/1099511627776)||32,o(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let s=0;s<e.length;s++)r.push(n|e[s]>>>t),n=e[s]<<32-t;const s=e.length?e[e.length-1]:0,i=_.i(s);return r.push(_.h(t+i&31,t+i>32?n:r.pop(),1)),r}},I={bytes:{p(e){const t=_.l(e)/8,n=new i(t);let r;for(let s=0;t>s;s++)3&s||(r=e[s/4]),n[s]=r>>>24,r<<=8;return n},m(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3&~n||(t.push(r),r=0);return 3&n&&t.push(_.h(8*(3&n),r)),t}}},P=class{constructor(e){const t=this;t.blockSize=512,t.k=[1732584193,4023233417,2562383102,271733878,3285377520],t.v=[1518500249,1859775393,2400959708,3395469782],e?(t.S=e.S.slice(0),t.C=e.C.slice(0),t.A=e.A):t.reset()}reset(){const e=this;return e.S=e.k.slice(0),e.C=[],e.A=0,e}update(e){const t=this;"string"==typeof e&&(e=I._.m(e));const n=t.C=_.concat(t.C,e),r=t.A,i=t.A=r+_.l(e);if(i>9007199254740991)throw new s("Cannot hash more than 2^53 - 1 bits");const o=new c(n);let f=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t.I(o.subarray(16*f,16*(f+1))),f+=1;return n.splice(0,16*f),t}P(){const e=this;let t=e.C;const n=e.S;t=_.concat(t,[_.h(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(r.floor(e.A/4294967296)),t.push(0|e.A);t.length;)e.I(t.splice(0,16));return e.reset(),n}D(e,t,n,r){return e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r}V(e,t){return t<<e|t>>>32-e}I(t){const n=this,s=n.S,i=e(80);for(let e=0;16>e;e++)i[e]=t[e];let o=s[0],c=s[1],f=s[2],a=s[3],l=s[4];for(let e=0;79>=e;e++){16>e||(i[e]=n.V(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n.V(5,o)+n.D(e,c,f,a)+l+i[e]+n.v[r.floor(e/20)]|0;l=a,a=f,f=n.V(30,c),c=o,o=t}s[0]=s[0]+o|0,s[1]=s[1]+c|0,s[2]=s[2]+f|0,s[3]=s[3]+a|0,s[4]=s[4]+l|0}},D={getRandomValues(e){const t=new c(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(r.random()>.5?1:-1))};for(let s,i=0;i<e.length;i+=4){const e=n(4294967296*(s||r.random()));s=987654071*e(),t[i/4]=4294967296*e()|0}return e}},V={importKey:e=>new V.R(I.bytes.m(e)),B(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new s("invalid params to pbkdf2");const i=1+(r>>5)<<2;let o,c,f,a,u;const w=new ArrayBuffer(i),h=new l(w);let d=0;const p=_;for(t=I.bytes.m(t),u=1;(i||1)>d;u++){for(o=c=e.encrypt(p.concat(t,[u])),f=1;n>f;f++)for(c=e.encrypt(c),a=0;a<c.length;a++)o[a]^=c[a];for(f=0;(i||1)>d&&f<o.length;f++)h.setInt32(d,o[f]),d+=4}return w.slice(0,r/8)},R:class{constructor(e){const t=this,n=t.M=P,r=[[],[]];t.U=[new n,new n];const s=t.U[0].blockSize/32;e.length>s&&(e=(new n).update(e).P());for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t.U[0].update(r[0]),t.U[1].update(r[1]),t.K=new n(t.U[0])}reset(){const e=this;e.K=new e.M(e.U[0]),e.N=!1}update(e){this.N=!0,this.K.update(e)}digest(){const e=this,t=e.K.P(),n=new e.M(e.U[1]).update(t).P();return e.reset(),n}encrypt(e){if(this.N)throw new s("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},R=typeof h!=v&&typeof h.getRandomValues==S,B="Invalid password",E="Invalid signature",M="zipjs-abort-check-password";function U(e){return R?h.getRandomValues(e):D.getRandomValues(e)}const K=16,N={name:"PBKDF2"},O=t.assign({hash:{name:"HMAC"}},N),T=t.assign({iterations:1e3,hash:{name:"SHA-1"}},N),W=["deriveBits"],j=[8,12,16],H=[16,24,32],L=10,F=[0,0,0,0],q=typeof h!=v,G=q&&h.subtle,J=q&&typeof G!=v,Q=I.bytes,X=class{constructor(e){const t=this;t.O=[[[],[],[],[],[]],[[],[],[],[],[]]],t.O[0][0][0]||t.T();const n=t.O[0][4],r=t.O[1],i=e.length;let o,c,f,a=1;if(4!==i&&6!==i&&8!==i)throw new s("invalid aes key size");for(t.v=[c=e.slice(0),f=[]],o=i;4*i+28>o;o++){let e=c[o-1];(o%i==0||8===i&&o%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],o%i==0&&(e=e<<8^e>>>24^a<<24,a=a<<1^283*(a>>7))),c[o]=c[o-i]^e}for(let e=0;o;e++,o--){const t=c[3&e?o:o-4];f[e]=4>=o||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this.W(e,0)}decrypt(e){return this.W(e,1)}T(){const e=this.O[0],t=this.O[1],n=e[4],r=t[4],s=[],i=[];let o,c,f,a;for(let e=0;256>e;e++)i[(s[e]=e<<1^283*(e>>7))^e]=e;for(let l=o=0;!n[l];l^=c||1,o=i[o]||1){let i=o^o<<1^o<<2^o<<3^o<<4;i=i>>8^255&i^99,n[l]=i,r[i]=l,a=s[f=s[c=s[l]]];let u=16843009*a^65537*f^257*c^16843008*l,w=257*s[i]^16843008*i;for(let n=0;4>n;n++)e[n][l]=w=w<<24^w>>>8,t[n][i]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}W(e,t){if(4!==e.length)throw new s("invalid aes block size");const n=this.v[t],r=n.length/4-2,i=[0,0,0,0],o=this.O[t],c=o[0],f=o[1],a=o[2],l=o[3],u=o[4];let w,h,d,p=e[0]^n[0],y=e[t?3:1]^n[1],m=e[2]^n[2],b=e[t?1:3]^n[3],g=4;for(let e=0;r>e;e++)w=c[p>>>24]^f[y>>16&255]^a[m>>8&255]^l[255&b]^n[g],h=c[y>>>24]^f[m>>16&255]^a[b>>8&255]^l[255&p]^n[g+1],d=c[m>>>24]^f[b>>16&255]^a[p>>8&255]^l[255&y]^n[g+2],b=c[b>>>24]^f[p>>16&255]^a[y>>8&255]^l[255&m]^n[g+3],g+=4,p=w,y=h,m=d;for(let e=0;4>e;e++)i[t?3&-e:e]=u[p>>>24]<<24^u[y>>16&255]<<16^u[m>>8&255]<<8^u[255&b]^n[g++],w=p,p=y,y=m,m=b,b=w;return i}},Y=class{constructor(e,t){this.j=e,this.H=t,this.L=t}reset(){this.L=this.H}update(e){return this.F(this.j,e,this.L)}q(e){if(255&~(e>>24))e+=1<<24;else{let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}G(e){0===(e[0]=this.q(e[0]))&&(e[1]=this.q(e[1]))}F(e,t,n){let r;if(!(r=t.length))return[];const s=_.l(t);for(let s=0;r>s;s+=4){this.G(n);const r=e.encrypt(n);t[s]^=r[0],t[s+1]^=r[1],t[s+2]^=r[2],t[s+3]^=r[3]}return _.u(t,s)}},Z=V.R;let $=q&&J&&typeof G.importKey==S,ee=q&&J&&typeof G.deriveBits==S;class te extends p{constructor({password:e,rawPassword:n,signed:r,encryptionStrength:o,checkPasswordOnly:c}){super({start(){t.assign(this,{ready:new u((e=>this.J=e)),password:ie(e,n),signed:r,X:o-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:o,J:f,ready:a}=n;r?(await(async(e,t,n,r)=>{const i=await se(e,t,n,ce(r,0,j[t])),o=ce(r,j[t]);if(i[0]!=o[0]||i[1]!=o[1])throw new s(B)})(n,o,r,ce(e,0,j[o]+2)),e=ce(e,j[o]+2),c?t.error(new s(M)):f()):await a;const l=new i(e.length-L-(e.length-L)%K);t.enqueue(re(n,e,l,0,L,!0))},async flush(e){const{signed:t,Y:n,Z:r,pending:o,ready:c}=this;if(r&&n){await c;const f=ce(o,0,o.length-L),a=ce(o,o.length-L);let l=new i;if(f.length){const e=ae(Q,f);r.update(e);const t=n.update(e);l=fe(Q,t)}if(t){const e=ce(fe(Q,r.digest()),0,L);for(let t=0;L>t;t++)if(e[t]!=a[t])throw new s(E)}e.enqueue(l)}}})}}class ne extends p{constructor({password:e,rawPassword:n,encryptionStrength:r}){let s;super({start(){t.assign(this,{ready:new u((e=>this.J=e)),password:ie(e,n),X:r-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:s,J:o,ready:c}=n;let f=new i;r?(f=await(async(e,t,n)=>{const r=U(new i(j[t]));return oe(r,await se(e,t,n,r))})(n,s,r),o()):await c;const a=new i(f.length+e.length-e.length%K);a.set(f,0),t.enqueue(re(n,e,a,f.length,0))},async flush(e){const{Y:t,Z:n,pending:r,ready:o}=this;if(n&&t){await o;let c=new i;if(r.length){const e=t.update(ae(Q,r));n.update(e),c=fe(Q,e)}s.signature=fe(Q,n.digest()).slice(0,L),e.enqueue(oe(c,s.signature))}}}),s=this}}function re(e,t,n,r,s,o){const{Y:c,Z:f,pending:a}=e,l=t.length-s;let u;for(a.length&&(t=oe(a,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new i(t)).set(n,0)}return e})(n,l-l%K)),u=0;l-K>=u;u+=K){const e=ae(Q,ce(t,u,u+K));o&&f.update(e);const s=c.update(e);o||f.update(s),n.set(fe(Q,s),u+r)}return e.pending=ce(t,u),n}async function se(n,r,s,o){n.password=null;const c=await(async(e,t,n,r,s)=>{if(!$)return V.importKey(t);try{return await G.importKey("raw",t,n,!1,s)}catch(e){return $=!1,V.importKey(t)}})(0,s,O,0,W),f=await(async(e,t,n)=>{if(!ee)return V.B(t,e.salt,T.iterations,n);try{return await G.deriveBits(e,t,n)}catch(r){return ee=!1,V.B(t,e.salt,T.iterations,n)}})(t.assign({salt:o},T),c,8*(2*H[r]+2)),a=new i(f),l=ae(Q,ce(a,0,H[r])),u=ae(Q,ce(a,H[r],2*H[r])),w=ce(a,2*H[r]);return t.assign(n,{keys:{key:l,$:u,passwordVerification:w},Y:new Y(new X(l),e.from(F)),Z:new Z(u)}),w}function ie(e,t){return t===k?(e=>{if(typeof w==v){const t=new i((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new w).encode(e)})(e):t}function oe(e,t){let n=e;return e.length+t.length&&(n=new i(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function ce(e,t,n){return e.subarray(t,n)}function fe(e,t){return e.p(t)}function ae(e,t){return e.m(t)}class le extends p{constructor({password:e,passwordVerification:n,checkPasswordOnly:r}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;if(n.password){const t=we(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new s(B);e=e.subarray(12)}r?t.error(new s(M)):t.enqueue(we(n,e))}})}}class ue extends p{constructor({password:e,passwordVerification:n}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;let r,s;if(n.password){n.password=null;const t=U(new i(12));t[11]=n.passwordVerification,r=new i(e.length+t.length),r.set(he(n,t),0),s=12}else r=new i(e.length),s=0;r.set(he(n,e),s),t.enqueue(r)}})}}function we(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,n[r]);return n}function he(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,t[r]);return n}function de(e,n){const r=[305419896,591751049,878082192];t.assign(e,{keys:r,ee:new x(r[0]),te:new x(r[2])});for(let t=0;t<n.length;t++)pe(e,n.charCodeAt(t))}function pe(e,t){let[n,s,i]=e.keys;e.ee.append([t]),n=~e.ee.get(),s=be(r.imul(be(s+me(n)),134775813)+1),e.te.append([s>>>24]),i=~e.te.get(),e.keys=[n,s,i]}function ye(e){const t=2|e.keys[2];return me(r.imul(t,1^t)>>>8)}function me(e){return 255&e}function be(e){return 4294967295&e}const ge="deflate-raw";class ke extends p{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:s,encrypted:i,useCompressionStream:o,zipCrypto:c,signed:f,level:a}=e,u=this;let w,h,d=Se(super.readable);i&&!c||!f||(w=new A,d=xe(d,w)),s&&(d=Ce(d,o,{level:a,chunkSize:t},r,n)),i&&(c?d=xe(d,new ue(e)):(h=new ne(e),d=xe(d,h))),ze(u,d,(()=>{let e;i&&!c&&(e=h.signature),i&&!c||!f||(e=new l(w.value.buffer).getUint32(0)),u.signature=e}))}}class ve extends p{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:o,signed:c,signature:f,compressed:a,useCompressionStream:u}=e;let w,h,d=Se(super.readable);o&&(i?d=xe(d,new le(e)):(h=new te(e),d=xe(d,h))),a&&(d=Ce(d,u,{chunkSize:t},r,n)),o&&!i||!c||(w=new A,d=xe(d,w)),ze(this,d,(()=>{if((!o||i)&&c){const e=new l(w.value.buffer);if(f!=e.getUint32(0,!1))throw new s(E)}}))}}function Se(e){return xe(e,new p({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function ze(e,n,r){n=xe(n,new p({flush:r})),t.defineProperty(e,"readable",{get:()=>n})}function Ce(e,t,n,r,s){try{e=xe(e,new(t&&r?r:s)(ge,n))}catch(r){if(!t)return e;try{e=xe(e,new s(ge,n))}catch(t){return e}}return e}function xe(e,t){return e.pipeThrough(t)}const Ae="data",_e="close";class Ie extends p{constructor(e,n){super({});const r=this,{codecType:s}=e;let i;s.startsWith("deflate")?i=ke:s.startsWith("inflate")&&(i=ve);let o=0,c=0;const f=new i(e,n),a=super.readable,l=new p({transform(e,t){e&&e.length&&(c+=e.length,t.enqueue(e))},flush(){t.assign(r,{inputSize:c})}}),u=new p({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){const{signature:e}=f;t.assign(r,{signature:e,outputSize:o,inputSize:c})}});t.defineProperty(r,"readable",{get:()=>a.pipeThrough(l).pipeThrough(f).pipeThrough(u)})}}class Pe extends p{constructor(e){let t;super({transform:function n(r,s){if(t){const e=new i(t.length+r.length);e.set(t),e.set(r,t.length),r=e,t=null}r.length>e?(s.enqueue(r.slice(0,e)),n(r.slice(e),s)):t=r},flush(e){t&&t.length&&e.enqueue(t)}})}}const De=new a,Ve=new a;let Re,Be=0,Ee=!0;async function Me(e){try{const{options:t,scripts:r,config:s}=e;if(r&&r.length)try{Ee?importScripts.apply(k,r):await Ue(r)}catch(e){Ee=!1,await Ue(r)}self.initCodec&&self.initCodec(),s.CompressionStreamNative=self.CompressionStream,s.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(s.CompressionStream=new z(self.Deflate)),self.Inflate&&(s.DecompressionStream=new z(self.Inflate));const i={highWaterMark:1},o=e.readable||new y({async pull(e){const t=new u((e=>De.set(Be,e)));Ke({type:"pull",messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER;const{value:r,done:s}=await t;e.enqueue(r),s&&e.close()}},i),c=e.writable||new m({async write(e){let t;const r=new u((e=>t=e));Ve.set(Be,t),Ke({type:Ae,value:e,messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER,await r}},i),f=new Ie(t,s);Re=new AbortController;const{signal:a}=Re;await o.pipeThrough(f).pipeThrough(new Pe(s.chunkSize)).pipeTo(c,{signal:a,preventClose:!0,preventAbort:!0}),await c.getWriter().close();const{signature:l,inputSize:w,outputSize:h}=f;Ke({type:_e,result:{signature:l,inputSize:w,outputSize:h}})}catch(e){Ne(e)}}async function Ue(e){for(const t of e)await import(t)}function Ke(e){let{value:t}=e;if(t)if(t.length)try{t=new i(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Ne(e=new s("Unknown error")){const{message:t,stack:n,code:r,name:i}=e;d({error:{message:t,stack:n,code:r,name:i}})}addEventListener("message",(({data:e})=>{const{type:t,messageId:n,value:r,done:s}=e;try{if("start"==t&&Me(e),t==Ae){const e=De.get(n);De.delete(n),e({value:new i(r),done:s})}if("ack"==t){const e=Ve.get(n);Ve.delete(n),e()}t==_e&&Re.abort()}catch(e){Ne(e)}}));const Oe=-2;function Te(t){return We(t.map((([t,n])=>new e(t).fill(n,0,t))))}function We(t){return t.reduce(((t,n)=>t.concat(e.isArray(n)?We(n):n)),[])}const je=[0,1,2,3].concat(...Te([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function He(){const e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.ne=n=>{const s=e.re,i=e.ie.se,o=e.ie.oe;let c,f,a,l=-1;for(n.ce=0,n.fe=573,c=0;o>c;c++)0!==s[2*c]?(n.ae[++n.ce]=l=c,n.le[c]=0):s[2*c+1]=0;for(;2>n.ce;)a=n.ae[++n.ce]=2>l?++l:0,s[2*a]=1,n.le[a]=0,n.ue--,i&&(n.we-=i[2*a+1]);for(e.he=l,c=r.floor(n.ce/2);c>=1;c--)n.de(s,c);a=o;do{c=n.ae[1],n.ae[1]=n.ae[n.ce--],n.de(s,1),f=n.ae[1],n.ae[--n.fe]=c,n.ae[--n.fe]=f,s[2*a]=s[2*c]+s[2*f],n.le[a]=r.max(n.le[c],n.le[f])+1,s[2*c+1]=s[2*f+1]=a,n.ae[1]=a++,n.de(s,1)}while(n.ce>=2);n.ae[--n.fe]=n.ae[1],(t=>{const n=e.re,r=e.ie.se,s=e.ie.pe,i=e.ie.ye,o=e.ie.me;let c,f,a,l,u,w,h=0;for(l=0;15>=l;l++)t.be[l]=0;for(n[2*t.ae[t.fe]+1]=0,c=t.fe+1;573>c;c++)f=t.ae[c],l=n[2*n[2*f+1]+1]+1,l>o&&(l=o,h++),n[2*f+1]=l,f>e.he||(t.be[l]++,u=0,i>f||(u=s[f-i]),w=n[2*f],t.ue+=w*(l+u),r&&(t.we+=w*(r[2*f+1]+u)));if(0!==h){do{for(l=o-1;0===t.be[l];)l--;t.be[l]--,t.be[l+1]+=2,t.be[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(f=t.be[l];0!==f;)a=t.ae[--c],a>e.he||(n[2*a+1]!=l&&(t.ue+=(l-n[2*a+1])*n[2*a],n[2*a+1]=l),f--)}})(n),((e,n,r)=>{const s=[];let i,o,c,f=0;for(i=1;15>=i;i++)s[i]=f=f+r[i-1]<<1;for(o=0;n>=o;o++)c=e[2*o+1],0!==c&&(e[2*o]=t(s[c]++,c))})(s,e.he,n.be)}}function Le(e,t,n,r,s){const i=this;i.se=e,i.pe=t,i.ye=n,i.oe=r,i.me=s}He.ge=[0,1,2,3,4,5,6,7].concat(...Te([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),He.ke=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],He.ve=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],He.Se=e=>256>e?je[e]:je[256+(e>>>7)],He.ze=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],He.Ce=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],He.xe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],He.Ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const Fe=Te([[144,8],[112,9],[24,7],[8,8]]);Le._e=We([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,Fe[t]])));const qe=Te([[30,5]]);function Ge(e,t,n,r,s){const i=this;i.Ie=e,i.Pe=t,i.De=n,i.Ve=r,i.Re=s}Le.Be=We([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((e,t)=>[e,qe[t]]))),Le.Ee=new Le(Le._e,He.ze,257,286,15),Le.Me=new Le(Le.Be,He.Ce,0,30,15),Le.Ue=new Le(null,He.xe,0,19,7);const Je=[new Ge(0,0,0,0,0),new Ge(4,4,8,4,1),new Ge(4,5,16,8,1),new Ge(4,6,32,32,1),new Ge(4,4,16,16,2),new Ge(8,16,32,32,2),new Ge(8,16,128,128,2),new Ge(8,32,128,256,2),new Ge(32,128,258,1024,2),new Ge(32,258,258,4096,2)],Qe=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],Xe=113,Ye=666,Ze=262;function $e(e,t,n,r){const s=e[2*t],i=e[2*n];return i>s||s==i&&r[t]<=r[n]}function et(){const e=this;let t,n,s,c,f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z,C,x,A,_,I,P,D,V,R,B,E,M,U;const K=new He,N=new He,O=new He;let T,W,j,H,L,F;function q(){let t;for(t=0;286>t;t++)E[2*t]=0;for(t=0;30>t;t++)M[2*t]=0;for(t=0;19>t;t++)U[2*t]=0;E[512]=1,e.ue=e.we=0,W=j=0}function G(e,t){let n,r=-1,s=e[1],i=0,o=7,c=4;0===s&&(o=138,c=3),e[2*(t+1)+1]=65535;for(let f=0;t>=f;f++)n=s,s=e[2*(f+1)+1],++i<o&&n==s||(c>i?U[2*n]+=i:0!==n?(n!=r&&U[2*n]++,U[32]++):i>10?U[36]++:U[34]++,i=0,r=n,0===s?(o=138,c=3):n==s?(o=6,c=3):(o=7,c=4))}function J(t){e.Ke[e.pending++]=t}function Q(e){J(255&e),J(e>>>8&255)}function X(e,t){let n;const r=t;F>16-r?(n=e,L|=n<<F&65535,Q(L),L=n>>>16-F,F+=r-16):(L|=e<<F&65535,F+=r)}function Y(e,t){const n=2*e;X(65535&t[n],65535&t[n+1])}function Z(e,t){let n,r,s=-1,i=e[1],o=0,c=7,f=4;for(0===i&&(c=138,f=3),n=0;t>=n;n++)if(r=i,i=e[2*(n+1)+1],++o>=c||r!=i){if(f>o)do{Y(r,U)}while(0!=--o);else 0!==r?(r!=s&&(Y(r,U),o--),Y(16,U),X(o-3,2)):o>10?(Y(18,U),X(o-11,7)):(Y(17,U),X(o-3,3));o=0,s=r,0===i?(c=138,f=3):r==i?(c=6,f=3):(c=7,f=4)}}function $(){16==F?(Q(L),L=0,F=0):8>F||(J(255&L),L>>>=8,F-=8)}function ee(t,n){let s,i,o;if(e.Ne[W]=t,e.Oe[W]=255&n,W++,0===t?E[2*n]++:(j++,t--,E[2*(He.ge[n]+256+1)]++,M[2*He.Se(t)]++),!(8191&W)&&D>2){for(s=8*W,i=C-k,o=0;30>o;o++)s+=M[2*o]*(5+He.Ce[o]);if(s>>>=3,j<r.floor(W/2)&&s<r.floor(i/2))return!0}return W==T-1}function te(t,n){let r,s,i,o,c=0;if(0!==W)do{r=e.Ne[c],s=e.Oe[c],c++,0===r?Y(s,t):(i=He.ge[s],Y(i+256+1,t),o=He.ze[i],0!==o&&(s-=He.ke[i],X(s,o)),r--,i=He.Se(r),Y(i,n),o=He.Ce[i],0!==o&&(r-=He.ve[i],X(r,o)))}while(W>c);Y(256,t),H=t[513]}function ne(){F>8?Q(L):F>0&&J(255&L),L=0,F=0}function re(t,n,r){X(0+(r?1:0),3),((t,n)=>{ne(),H=8,Q(n),Q(~n),e.Ke.set(u.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function se(n){((t,n,r)=>{let s,i,o=0;D>0?(K.ne(e),N.ne(e),o=(()=>{let t;for(G(E,K.he),G(M,N.he),O.ne(e),t=18;t>=3&&0===U[2*He.Ae[t]+1];t--);return e.ue+=14+3*(t+1),t})(),s=e.ue+3+7>>>3,i=e.we+3+7>>>3,i>s||(s=i)):s=i=n+5,n+4>s||-1==t?i==s?(X(2+(r?1:0),3),te(Le._e,Le.Be)):(X(4+(r?1:0),3),((e,t,n)=>{let r;for(X(e-257,5),X(t-1,5),X(n-4,4),r=0;n>r;r++)X(U[2*He.Ae[r]+1],3);Z(E,e-1),Z(M,t-1)})(K.he+1,N.he+1,o+1),te(E,M)):re(t,n,r),q(),r&&ne()})(0>k?-1:k,C-k,n),k=C,t.Te()}function ie(){let e,n,r,s;do{if(s=w-A-C,0===s&&0===C&&0===A)s=f;else if(-1==s)s--;else if(C>=f+f-Ze){u.set(u.subarray(f,f+f),0),x-=f,C-=f,k-=f,e=y,r=e;do{n=65535&d[--r],d[r]=f>n?0:n-f}while(0!=--e);e=f,r=e;do{n=65535&h[--r],h[r]=f>n?0:n-f}while(0!=--e);s+=f}if(0===t.We)return;e=t.je(u,C+A,s),A+=e,3>A||(p=255&u[C],p=(p<<g^255&u[C+1])&b)}while(Ze>A&&0!==t.We)}function oe(e){let t,n,r=I,s=C,i=_;const o=C>f-Ze?C-(f-Ze):0;let c=B;const a=l,w=C+258;let d=u[s+i-1],p=u[s+i];R>_||(r>>=2),c>A&&(c=A);do{if(t=e,u[t+i]==p&&u[t+i-1]==d&&u[t]==u[s]&&u[++t]==u[s+1]){s+=2,t++;do{}while(u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&w>s);if(n=258-(w-s),s=w-258,n>i){if(x=e,i=n,n>=c)break;d=u[s+i-1],p=u[s+i]}}}while((e=65535&h[e&a])>o&&0!=--r);return i>A?A:i}e.le=[],e.be=[],e.ae=[],E=[],M=[],U=[],e.de=(t,n)=>{const r=e.ae,s=r[n];let i=n<<1;for(;i<=e.ce&&(i<e.ce&&$e(t,r[i+1],r[i],e.le)&&i++,!$e(t,s,r[i],e.le));)r[n]=r[i],n=i,i<<=1;r[n]=s},e.He=(t,S,x,W,j,G)=>(W||(W=8),j||(j=8),G||(G=0),t.Le=null,-1==S&&(S=6),1>j||j>9||8!=W||9>x||x>15||0>S||S>9||0>G||G>2?Oe:(t.Fe=e,a=x,f=1<<a,l=f-1,m=j+7,y=1<<m,b=y-1,g=r.floor((m+3-1)/3),u=new i(2*f),h=[],d=[],T=1<<j+6,e.Ke=new i(4*T),s=4*T,e.Ne=new o(T),e.Oe=new i(T),D=S,V=G,(t=>(t.qe=t.Ge=0,t.Le=null,e.pending=0,e.Je=0,n=Xe,c=0,K.re=E,K.ie=Le.Ee,N.re=M,N.ie=Le.Me,O.re=U,O.ie=Le.Ue,L=0,F=0,H=8,q(),(()=>{w=2*f,d[y-1]=0;for(let e=0;y-1>e;e++)d[e]=0;P=Je[D].Pe,R=Je[D].Ie,B=Je[D].De,I=Je[D].Ve,C=0,k=0,A=0,v=_=2,z=0,p=0})(),0))(t))),e.Qe=()=>42!=n&&n!=Xe&&n!=Ye?Oe:(e.Oe=null,e.Ne=null,e.Ke=null,d=null,h=null,u=null,e.Fe=null,n==Xe?-3:0),e.Xe=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?Oe:(Je[D].Re!=Je[t].Re&&0!==e.qe&&(r=e.Ye(1)),D!=t&&(D=t,P=Je[D].Pe,R=Je[D].Ie,B=Je[D].De,I=Je[D].Ve),V=n,r)},e.Ze=(e,t,r)=>{let s,i=r,o=0;if(!t||42!=n)return Oe;if(3>i)return 0;for(i>f-Ze&&(i=f-Ze,o=r-i),u.set(t.subarray(o,o+i),0),C=i,k=i,p=255&u[0],p=(p<<g^255&u[1])&b,s=0;i-3>=s;s++)p=(p<<g^255&u[s+2])&b,h[s&l]=d[p],d[p]=s;return 0},e.Ye=(r,i)=>{let o,w,m,I,R;if(i>4||0>i)return Oe;if(!r.$e||!r.et&&0!==r.We||n==Ye&&4!=i)return r.Le=Qe[4],Oe;if(0===r.tt)return r.Le=Qe[7],-5;var B;if(t=r,I=c,c=i,42==n&&(w=8+(a-8<<4)<<8,m=(D-1&255)>>1,m>3&&(m=3),w|=m<<6,0!==C&&(w|=32),w+=31-w%31,n=Xe,J((B=w)>>8&255),J(255&B)),0!==e.pending){if(t.Te(),0===t.tt)return c=-1,0}else if(0===t.We&&I>=i&&4!=i)return t.Le=Qe[7],-5;if(n==Ye&&0!==t.We)return r.Le=Qe[7],-5;if(0!==t.We||0!==A||0!=i&&n!=Ye){switch(R=-1,Je[D].Re){case 0:R=(e=>{let n,r=65535;for(r>s-5&&(r=s-5);;){if(1>=A){if(ie(),0===A&&0==e)return 0;if(0===A)break}if(C+=A,A=0,n=k+r,(0===C||C>=n)&&(A=C-n,C=n,se(!1),0===t.tt))return 0;if(C-k>=f-Ze&&(se(!1),0===t.tt))return 0}return se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i);break;case 1:R=(e=>{let n,r=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C),0===r||(C-r&65535)>f-Ze||2!=V&&(v=oe(r)),3>v)n=ee(0,255&u[C]),A--,C++;else if(n=ee(C-x,v-3),A-=v,v>P||3>A)C+=v,v=0,p=255&u[C],p=(p<<g^255&u[C+1])&b;else{v--;do{C++,p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C}while(0!=--v);C++}if(n&&(se(!1),0===t.tt))return 0}return se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i);break;case 2:R=(e=>{let n,r,s=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C),_=v,S=x,v=2,0!==s&&P>_&&f-Ze>=(C-s&65535)&&(2!=V&&(v=oe(s)),5>=v&&(1==V||3==v&&C-x>4096)&&(v=2)),3>_||v>_)if(0!==z){if(n=ee(0,255&u[C-1]),n&&se(!1),C++,A--,0===t.tt)return 0}else z=1,C++,A--;else{r=C+A-3,n=ee(C-1-S,_-3),A-=_-1,_-=2;do{++C>r||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C)}while(0!=--_);if(z=0,v=2,C++,n&&(se(!1),0===t.tt))return 0}}return 0!==z&&(n=ee(0,255&u[C-1]),z=0),se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i)}if(2!=R&&3!=R||(n=Ye),0==R||2==R)return 0===t.tt&&(c=-1),0;if(1==R){if(1==i)X(2,3),Y(256,Le._e),$(),9>1+H+10-F&&(X(2,3),Y(256,Le._e),$()),H=7;else if(re(0,0,!1),3==i)for(o=0;y>o;o++)d[o]=0;if(t.Te(),0===t.tt)return c=-1,0}}return 4!=i?0:1}}function tt(){const e=this;e.nt=0,e.rt=0,e.We=0,e.qe=0,e.tt=0,e.Ge=0}function nt(e){const t=new tt,n=(o=e&&e.chunkSize?e.chunkSize:65536)+5*(r.floor(o/16383)+1);var o;const c=new i(n);let f=e?e.level:-1;void 0===f&&(f=-1),t.He(f),t.$e=c,this.append=(e,r)=>{let o,f,a=0,l=0,u=0;const w=[];if(e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,o=t.Ye(0),0!=o)throw new s("deflating: "+t.Le);t.rt&&(t.rt==n?w.push(new i(c)):w.push(c.subarray(0,t.rt))),u+=t.rt,r&&t.nt>0&&t.nt!=a&&(r(t.nt),a=t.nt)}while(t.We>0||0===t.tt);return w.length>1?(f=new i(u),w.forEach((e=>{f.set(e,l),l+=e.length}))):f=w[0]?new i(w[0]):new i,f}},this.flush=()=>{let e,r,o=0,f=0;const a=[];do{if(t.rt=0,t.tt=n,e=t.Ye(4),1!=e&&0!=e)throw new s("deflating: "+t.Le);n-t.tt>0&&a.push(c.slice(0,t.rt)),f+=t.rt}while(t.We>0||0===t.tt);return t.Qe(),r=new i(f),a.forEach((e=>{r.set(e,o),o+=e.length})),r}}tt.prototype={He(e,t){const n=this;return n.Fe=new et,t||(t=15),n.Fe.He(n,e,t)},Ye(e){const t=this;return t.Fe?t.Fe.Ye(t,e):Oe},Qe(){const e=this;if(!e.Fe)return Oe;const t=e.Fe.Qe();return e.Fe=null,t},Xe(e,t){const n=this;return n.Fe?n.Fe.Xe(n,e,t):Oe},Ze(e,t){const n=this;return n.Fe?n.Fe.Ze(n,e,t):Oe},je(e,t,n){const r=this;let s=r.We;return s>n&&(s=n),0===s?0:(r.We-=s,e.set(r.et.subarray(r.nt,r.nt+s),t),r.nt+=s,r.qe+=s,s)},Te(){const e=this;let t=e.Fe.pending;t>e.tt&&(t=e.tt),0!==t&&(e.$e.set(e.Fe.Ke.subarray(e.Fe.Je,e.Fe.Je+t),e.rt),e.rt+=t,e.Fe.Je+=t,e.Ge+=t,e.tt-=t,e.Fe.pending-=t,0===e.Fe.pending&&(e.Fe.Je=0))}};const rt=-2,st=-3,it=-5,ot=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],ct=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],ft=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],at=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],lt=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],ut=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],wt=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function ht(){let e,t,n,r,s,i;function o(e,t,o,c,f,a,l,u,w,h,d){let p,y,m,b,g,k,v,S,z,C,x,A,_,I,P;C=0,g=o;do{n[e[t+C]]++,C++,g--}while(0!==g);if(n[0]==o)return l[0]=-1,u[0]=0,0;for(S=u[0],k=1;15>=k&&0===n[k];k++);for(v=k,k>S&&(S=k),g=15;0!==g&&0===n[g];g--);for(m=g,S>g&&(S=g),u[0]=S,I=1<<k;g>k;k++,I<<=1)if(0>(I-=n[k]))return st;if(0>(I-=n[g]))return st;for(n[g]+=I,i[1]=k=0,C=1,_=2;0!=--g;)i[_]=k+=n[C],_++,C++;g=0,C=0;do{0!==(k=e[t+C])&&(d[i[k]++]=g),C++}while(++g<o);for(o=i[m],i[0]=g=0,C=0,b=-1,A=-S,s[0]=0,x=0,P=0;m>=v;v++)for(p=n[v];0!=p--;){for(;v>A+S;){if(b++,A+=S,P=m-A,P=P>S?S:P,(y=1<<(k=v-A))>p+1&&(y-=p+1,_=v,P>k))for(;++k<P&&(y<<=1)>n[++_];)y-=n[_];if(P=1<<k,h[0]+P>1440)return st;s[b]=x=h[0],h[0]+=P,0!==b?(i[b]=g,r[0]=k,r[1]=S,k=g>>>A-S,r[2]=x-s[b-1]-k,w.set(r,3*(s[b-1]+k))):l[0]=x}for(r[1]=v-A,o>C?d[C]<c?(r[0]=256>d[C]?0:96,r[2]=d[C++]):(r[0]=a[d[C]-c]+16+64,r[2]=f[d[C++]-c]):r[0]=192,y=1<<v-A,k=g>>>A;P>k;k+=y)w.set(r,3*(x+k));for(k=1<<v-1;g&k;k>>>=1)g^=k;for(g^=k,z=(1<<A)-1;(g&z)!=i[b];)b--,A-=S,z=(1<<A)-1}return 0!==I&&1!=m?it:0}function c(o){let c;for(e||(e=[],t=[],n=new f(16),r=[],s=new f(15),i=new f(16)),t.length<o&&(t=[]),c=0;o>c;c++)t[c]=0;for(c=0;16>c;c++)n[c]=0;for(c=0;3>c;c++)r[c]=0;s.set(n.subarray(0,15),0),i.set(n.subarray(0,16),0)}this.st=(n,r,s,i,f)=>{let a;return c(19),e[0]=0,a=o(n,0,19,19,null,null,s,r,i,e,t),a==st?f.Le="oversubscribed dynamic bit lengths tree":a!=it&&0!==r[0]||(f.Le="incomplete dynamic bit lengths tree",a=st),a},this.it=(n,r,s,i,f,a,l,u,w)=>{let h;return c(288),e[0]=0,h=o(s,0,n,257,at,lt,a,i,u,e,t),0!=h||0===i[0]?(h==st?w.Le="oversubscribed literal/length tree":-4!=h&&(w.Le="incomplete literal/length tree",h=st),h):(c(288),h=o(s,n,r,0,ut,wt,l,f,u,e,t),0!=h||0===f[0]&&n>257?(h==st?w.Le="oversubscribed distance tree":h==it?(w.Le="incomplete distance tree",h=st):-4!=h&&(w.Le="empty distance tree with lengths",h=st),h):0)}}function dt(){const e=this;let t,n,r,s,i=0,o=0,c=0,f=0,a=0,l=0,u=0,w=0,h=0,d=0;function p(e,t,n,r,s,i,o,c){let f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z;d=c.nt,p=c.We,w=o.ot,h=o.ct,y=o.write,m=y<o.read?o.read-y-1:o.end-y,b=ot[e],g=ot[t];do{for(;20>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;if(f=w&b,a=n,l=r,z=3*(l+f),0!==(u=a[z]))for(;;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15,k=a[z+2]+(w&ot[u]),w>>=u,h-=u;15>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;for(f=w&g,a=s,l=i,z=3*(l+f),u=a[z];;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15;u>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;if(v=a[z+2]+(w&ot[u]),w>>=u,h-=u,m-=k,v>y){S=y-v;do{S+=o.end}while(0>S);if(u=o.end-S,k>u){if(k-=u,y-S>0&&u>y-S)do{o.lt[y++]=o.lt[S++]}while(0!=--u);else o.lt.set(o.lt.subarray(S,S+u),y),y+=u,S+=u,u=0;S=0}}else S=y-v,y-S>0&&2>y-S?(o.lt[y++]=o.lt[S++],o.lt[y++]=o.lt[S++],k-=2):(o.lt.set(o.lt.subarray(S,S+2),y),y+=2,S+=2,k-=2);if(y-S>0&&k>y-S)do{o.lt[y++]=o.lt[S++]}while(0!=--k);else o.lt.set(o.lt.subarray(S,S+k),y),y+=k,S+=k,k=0;break}if(64&u)return c.Le="invalid distance code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,st;f+=a[z+2],f+=w&ot[u],z=3*(l+f),u=a[z]}break}if(64&u)return 32&u?(k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,1):(c.Le="invalid literal/length code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,st);if(f+=a[z+2],f+=w&ot[u],z=3*(l+f),0===(u=a[z])){w>>=a[z+1],h-=a[z+1],o.lt[y++]=a[z+2],m--;break}}else w>>=a[z+1],h-=a[z+1],o.lt[y++]=a[z+2],m--}while(m>=258&&p>=10);return k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,0}e.init=(e,i,o,c,f,a)=>{t=0,u=e,w=i,r=o,h=c,s=f,d=a,n=null},e.ut=(e,y,m)=>{let b,g,k,v,S,z,C,x=0,A=0,_=0;for(_=y.nt,v=y.We,x=e.ot,A=e.ct,S=e.write,z=S<e.read?e.read-S-1:e.end-S;;)switch(t){case 0:if(z>=258&&v>=10&&(e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,m=p(u,w,r,h,s,d,e,y),_=y.nt,v=y.We,x=e.ot,A=e.ct,S=e.write,z=S<e.read?e.read-S-1:e.end-S,0!=m)){t=1==m?7:9;break}c=u,n=r,o=h,t=1;case 1:for(b=c;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>>=n[g+1],A-=n[g+1],k=n[g],0===k){f=n[g+2],t=6;break}if(16&k){a=15&k,i=n[g+2],t=2;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}if(32&k){t=7;break}return t=9,y.Le="invalid literal/length code",m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 2:for(b=a;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}i+=x&ot[b],x>>=b,A-=b,c=w,n=s,o=d,t=3;case 3:for(b=c;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>=n[g+1],A-=n[g+1],k=n[g],16&k){a=15&k,l=n[g+2],t=4;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}return t=9,y.Le="invalid distance code",m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 4:for(b=a;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}l+=x&ot[b],x>>=b,A-=b,t=5;case 5:for(C=S-l;0>C;)C+=e.end;for(;0!==i;){if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);e.lt[S++]=e.lt[C++],z--,C==e.end&&(C=0),i--}t=0;break;case 6:if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,e.lt[S++]=f,z--,t=0;break;case 7:if(A>7&&(A-=8,v++,_--),e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,e.read!=e.write)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);t=8;case 8:return m=1,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 9:return m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);default:return m=rt,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m)}},e.ht=()=>{}}ht.dt=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=ct,r[0]=ft,0);const pt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function yt(e,t){const n=this;let r,s=0,o=0,c=0,a=0;const l=[0],u=[0],w=new dt;let h=0,d=new f(4320);const p=new ht;n.ct=0,n.ot=0,n.lt=new i(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),6==s&&w.ht(e),s=0,n.ct=0,n.ot=0,n.read=n.write=0},n.reset(e,null),n.wt=(e,t)=>{let r,s,i;return s=e.rt,i=n.read,r=(i>n.write?n.end:n.write)-i,r>e.tt&&(r=e.tt),0!==r&&t==it&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.subarray(i,i+r),s),s+=r,i+=r,i==n.end&&(i=0,n.write==n.end&&(n.write=0),r=n.write-i,r>e.tt&&(r=e.tt),0!==r&&t==it&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.subarray(i,i+r),s),s+=r,i+=r),e.rt=s,n.read=i,t},n.ut=(e,t)=>{let i,f,y,m,b,g,k,v;for(m=e.nt,b=e.We,f=n.ot,y=n.ct,g=n.write,k=g<n.read?n.read-g-1:n.end-g;;){let S,z,C,x,A,_,I,P;switch(s){case 0:for(;3>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}switch(i=7&f,h=1&i,i>>>1){case 0:f>>>=3,y-=3,i=7&y,f>>>=i,y-=i,s=1;break;case 1:S=[],z=[],C=[[]],x=[[]],ht.dt(S,z,C,x),w.init(S[0],z[0],C[0],0,x[0],0),f>>>=3,y-=3,s=6;break;case 2:f>>>=3,y-=3,s=3;break;case 3:return f>>>=3,y-=3,s=9,e.Le="invalid block type",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}break;case 1:for(;32>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if((~f>>>16&65535)!=(65535&f))return s=9,e.Le="invalid stored block lengths",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);o=65535&f,f=y=0,s=0!==o?2:0!==h?7:0;break;case 2:if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(0===k&&(g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k&&(n.write=g,t=n.wt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k)))return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(t=0,i=o,i>b&&(i=b),i>k&&(i=k),n.lt.set(e.je(m,i),g),m+=i,b-=i,g+=i,k-=i,0!=(o-=i))break;s=0!==h?7:0;break;case 3:for(;14>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(c=i=16383&f,(31&i)>29||(i>>5&31)>29)return s=9,e.Le="too many length or distance symbols",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(i=258+(31&i)+(i>>5&31),!r||r.length<i)r=[];else for(v=0;i>v;v++)r[v]=0;f>>>=14,y-=14,a=0,s=4;case 4:for(;4+(c>>>10)>a;){for(;3>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}r[pt[a++]]=7&f,f>>>=3,y-=3}for(;19>a;)r[pt[a++]]=0;if(l[0]=7,i=p.st(r,l,u,d,e),0!=i)return(t=i)==st&&(r=null,s=9),n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);a=0,s=5;case 5:for(;i=c,258+(31&i)+(i>>5&31)>a;){let o,w;for(i=l[0];i>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(i=d[3*(u[0]+(f&ot[i]))+1],w=d[3*(u[0]+(f&ot[i]))+2],16>w)f>>>=i,y-=i,r[a++]=w;else{for(v=18==w?7:w-14,o=18==w?11:3;i+v>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(f>>>=i,y-=i,o+=f&ot[v],f>>>=v,y-=v,v=a,i=c,v+o>258+(31&i)+(i>>5&31)||16==w&&1>v)return r=null,s=9,e.Le="invalid bit length repeat",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);w=16==w?r[v-1]:0;do{r[v++]=w}while(0!=--o);a=v}}if(u[0]=-1,A=[],_=[],I=[],P=[],A[0]=9,_[0]=6,i=c,i=p.it(257+(31&i),1+(i>>5&31),r,A,_,I,P,d,e),0!=i)return i==st&&(r=null,s=9),t=i,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);w.init(A[0],_[0],d,I[0],d,P[0]),s=6;case 6:if(n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,1!=(t=w.ut(n,e,t)))return n.wt(e,t);if(t=0,w.ht(e),m=e.nt,b=e.We,f=n.ot,y=n.ct,g=n.write,k=g<n.read?n.read-g-1:n.end-g,0===h){s=0;break}s=7;case 7:if(n.write=g,t=n.wt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,n.read!=n.write)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);s=8;case 8:return t=1,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);case 9:return t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);default:return t=rt,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}}},n.ht=e=>{n.reset(e,null),n.lt=null,d=null},n.yt=(e,t,r)=>{n.lt.set(e.subarray(t,t+r),0),n.read=n.write=r},n.bt=()=>1==s?1:0}const mt=13,bt=[0,0,255,255];function gt(){const e=this;function t(e){return e&&e.gt?(e.qe=e.Ge=0,e.Le=null,e.gt.mode=7,e.gt.kt.reset(e,null),0):rt}e.mode=0,e.method=0,e.vt=[0],e.St=0,e.marker=0,e.zt=0,e.Ct=t=>(e.kt&&e.kt.ht(t),e.kt=null,0),e.xt=(n,r)=>(n.Le=null,e.kt=null,8>r||r>15?(e.Ct(n),rt):(e.zt=r,n.gt.kt=new yt(n,1<<r),t(n),0)),e.At=(e,t)=>{let n,r;if(!e||!e.gt||!e.et)return rt;const s=e.gt;for(t=4==t?it:0,n=it;;)switch(s.mode){case 0:if(0===e.We)return n;if(n=t,e.We--,e.qe++,8!=(15&(s.method=e.ft(e.nt++)))){s.mode=mt,e.Le="unknown compression method",s.marker=5;break}if(8+(s.method>>4)>s.zt){s.mode=mt,e.Le="invalid win size",s.marker=5;break}s.mode=1;case 1:if(0===e.We)return n;if(n=t,e.We--,e.qe++,r=255&e.ft(e.nt++),((s.method<<8)+r)%31!=0){s.mode=mt,e.Le="incorrect header check",s.marker=5;break}if(!(32&r)){s.mode=7;break}s.mode=2;case 2:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St=(255&e.ft(e.nt++))<<24&4278190080,s.mode=3;case 3:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<16&16711680,s.mode=4;case 4:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<8&65280,s.mode=5;case 5:return 0===e.We?n:(n=t,e.We--,e.qe++,s.St+=255&e.ft(e.nt++),s.mode=6,2);case 6:return s.mode=mt,e.Le="need dictionary",s.marker=0,rt;case 7:if(n=s.kt.ut(e,n),n==st){s.mode=mt,s.marker=0;break}if(0==n&&(n=t),1!=n)return n;n=t,s.kt.reset(e,s.vt),s.mode=12;case 12:return e.We=0,1;case mt:return st;default:return rt}},e._t=(e,t,n)=>{let r=0,s=n;if(!e||!e.gt||6!=e.gt.mode)return rt;const i=e.gt;return s<1<<i.zt||(s=(1<<i.zt)-1,r=n-s),i.kt.yt(t,r,s),i.mode=7,0},e.It=e=>{let n,r,s,i,o;if(!e||!e.gt)return rt;const c=e.gt;if(c.mode!=mt&&(c.mode=mt,c.marker=0),0===(n=e.We))return it;for(r=e.nt,s=c.marker;0!==n&&4>s;)e.ft(r)==bt[s]?s++:s=0!==e.ft(r)?0:4-s,r++,n--;return e.qe+=r-e.nt,e.nt=r,e.We=n,c.marker=s,4!=s?st:(i=e.qe,o=e.Ge,t(e),e.qe=i,e.Ge=o,c.mode=7,0)},e.Pt=e=>e&&e.gt&&e.gt.kt?e.gt.kt.bt():rt}function kt(){}function vt(e){const t=new kt,n=e&&e.chunkSize?r.floor(2*e.chunkSize):131072,o=new i(n);let c=!1;t.xt(),t.$e=o,this.append=(e,r)=>{const f=[];let a,l,u=0,w=0,h=0;if(0!==e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,0!==t.We||c||(t.nt=0,c=!0),a=t.At(0),c&&a===it){if(0!==t.We)throw new s("inflating: bad input")}else if(0!==a&&1!==a)throw new s("inflating: "+t.Le);if((c||1===a)&&t.We===e.length)throw new s("inflating: bad input");t.rt&&(t.rt===n?f.push(new i(o)):f.push(o.subarray(0,t.rt))),h+=t.rt,r&&t.nt>0&&t.nt!=u&&(r(t.nt),u=t.nt)}while(t.We>0||0===t.tt);return f.length>1?(l=new i(h),f.forEach((e=>{l.set(e,w),w+=e.length}))):l=f[0]?new i(f[0]):new i,l}},this.flush=()=>{t.Ct()}}kt.prototype={xt(e){const t=this;return t.gt=new gt,e||(e=15),t.gt.xt(t,e)},At(e){const t=this;return t.gt?t.gt.At(t,e):rt},Ct(){const e=this;if(!e.gt)return rt;const t=e.gt.Ct(e);return e.gt=null,t},It(){const e=this;return e.gt?e.gt.It(e):rt},_t(e,t){const n=this;return n.gt?n.gt._t(n,e,t):rt},ft(e){return this.et[e]},je(e,t){return this.et.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=nt,self.Inflate=vt};
78
- `,i=()=>t.useDataURI?"data:text/javascript,"+encodeURIComponent(r):URL.createObjectURL(new Blob([r],{type:"text/javascript"}));e({workerScripts:{inflate:[i],deflate:[i]}})}const by="Writer iterator completed too soon",vy="Content-Type",xy=64*1024,Zp="writable";class Aa{constructor(){this.size=0}init(){this.initialized=!0}}class Yp extends Aa{get readable(){const t=this,{chunkSize:r=xy}=t,i=new ReadableStream({start(){this.chunkOffset=0},async pull(a){const{offset:n=0,size:s,diskNumberStart:o}=i,{chunkOffset:f}=this;a.enqueue(await Je(t,n+f,Math.min(r,s-f),o)),f+r>s?a.close():this.chunkOffset+=r}});return i}}class ra extends Yp{constructor(t){super(),Object.assign(this,{blob:t,size:t.size})}async readUint8Array(t,r){const i=this,a=t+r;let s=await(t||a<i.size?i.blob.slice(t,a):i.blob).arrayBuffer();return s.byteLength>r&&(s=s.slice(t,a)),new Uint8Array(s)}}class ky extends Aa{constructor(t){super();const r=this,i=new TransformStream,a=[];t&&a.push([vy,t]),Object.defineProperty(r,Zp,{get(){return i.writable}}),r.blob=new Response(i.readable,{headers:a}).blob()}getData(){return this.blob}}class Sy extends Yp{constructor(t){super(),this.readers=t}async init(){const t=this,{readers:r}=t;t.lastDiskNumber=0,t.lastDiskOffset=0,await Promise.all(r.map(async(i,a)=>{await i.init(),a!=r.length-1&&(t.lastDiskOffset+=i.size),t.size+=i.size})),super.init()}async readUint8Array(t,r,i=0){const a=this,{readers:n}=this;let s,o=i;o==-1&&(o=n.length-1);let f=t;for(;f>=n[o].size;)f-=n[o].size,o++;const p=n[o],c=p.size;if(f+r<=c)s=await Je(p,f,r);else{const m=c-f;s=new Uint8Array(r),s.set(await Je(p,f,m)),s.set(await a.readUint8Array(t+m,r-m,i),m)}return a.lastDiskNumber=Math.max(o,a.lastDiskNumber),s}}class Bl extends Aa{constructor(t,r=4294967295){super();const i=this;Object.assign(i,{diskNumber:0,diskOffset:0,size:0,maxSize:r,availableSize:r});let a,n,s;const o=new WritableStream({async write(c){const{availableSize:m}=i;if(s)c.length>=m?(await f(c.slice(0,m)),await p(),i.diskOffset+=a.size,i.diskNumber++,s=null,await this.write(c.slice(m))):await f(c);else{const{value:h,done:_}=await t.next();if(_&&!h)throw new Error(by);a=h,a.size=0,a.maxSize&&(i.maxSize=a.maxSize),i.availableSize=i.maxSize,await Rn(a),n=h.writable,s=n.getWriter(),await this.write(c)}},async close(){await s.ready,await p()}});Object.defineProperty(i,Zp,{get(){return o}});async function f(c){const m=c.length;m&&(await s.ready,await s.write(c),a.size+=m,i.size+=m,i.availableSize-=m)}async function p(){n.size=a.size,await s.close()}}}async function Rn(e,t){if(e.init&&!e.initialized)await e.init(t);else return Promise.resolve()}function Ey(e){return Array.isArray(e)&&(e=new Sy(e)),e instanceof ReadableStream&&(e={readable:e}),e}function Py(e){e.writable===it&&typeof e.next==Bs&&(e=new Bl(e)),e instanceof WritableStream&&(e={writable:e});const{writable:t}=e;return t.size===it&&(t.size=0),e instanceof Bl||Object.assign(e,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),e}function Je(e,t,r,i){return e.readUint8Array(t,r,i)}const Xp="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),Ay=Xp.length==256;function Ty(e){if(Ay){let t="";for(let r=0;r<e.length;r++)t+=Xp[e[r]];return t}else return new TextDecoder().decode(e)}function _n(e,t){return t&&t.trim().toLowerCase()=="cp437"?Ty(e):new TextDecoder(t).decode(e)}const Jp="filename",Qp="rawFilename",ec="comment",tc="rawComment",rc="uncompressedSize",sc="compressedSize",nc="offset",sa="diskNumberStart",na="lastModDate",ia="rawLastModDate",ic="lastAccessDate",Cy="rawLastAccessDate",ac="creationDate",Oy="rawCreationDate",Ly="internalFileAttribute",Ry="internalFileAttributes",Iy="externalFileAttribute",Dy="externalFileAttributes",$y="msDosCompatible",Hy="zip64",Fy="encrypted",Ny="version",By="versionMadeBy",jy="zipCrypto",Wy="directory",Uy="executable",My=[Jp,Qp,sc,rc,na,ia,ec,tc,ic,ac,nc,sa,sa,Ly,Ry,Iy,Dy,$y,Hy,Fy,Ny,By,jy,Wy,Uy,"bitFlag","signature","filenameUTF8","commentUTF8","compressionMethod","extraField","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp"];class jl{constructor(t){My.forEach(r=>this[r]=t[r])}}const Ii="File format is not recognized",qy="End of central directory not found",Ky="End of Zip64 central directory locator not found",zy="Central directory header not found",Vy="Local file header not found",Gy="Zip64 extra field not found",Zy="File contains encrypted entry",Yy="Encryption method not supported",Wl="Compression method not supported",Ul="Split zip file",Ml="utf-8",ql="cp437",Xy=[[rc,Er],[sc,Er],[nc,Er],[sa,fr]],Jy={[fr]:{getValue:Be,bytes:4},[Er]:{getValue:gn,bytes:8}};class Kl{constructor(t,r={}){Object.assign(this,{reader:Ey(t),options:r,config:R0()})}async*getEntriesGenerator(t={}){const r=this;let{reader:i}=r;const{config:a}=r;if(await Rn(i),(i.size===it||!i.readUint8Array)&&(i=new ra(await new Response(i.readable).blob()),await Rn(i)),i.size<Wr)throw new Error(Ii);i.chunkSize=I0(a);const n=await n_(i,w0,i.size,Wr,fr*16);if(!n){const k=await Je(i,0,4),E=Ve(k);throw Be(E)==g0?new Error(Ul):new Error(qy)}const s=Ve(n);let o=Be(s,12),f=Be(s,16);const p=n.offset,c=ze(s,20),m=p+Wr+c;let h=ze(s,4);const _=i.lastDiskNumber||0;let L=ze(s,6),y=ze(s,8),g=0,b=0;if(f==Er||o==Er||y==fr||L==fr){const k=await Je(i,n.offset-Ai,Ai),E=Ve(k);if(Be(E,0)==b0){f=gn(E,8);let D=await Je(i,f,Ti,-1),I=Ve(D);const B=n.offset-Ai-Ti;if(Be(I,0)!=gl&&f!=B){const W=f;f=B,g=f-W,D=await Je(i,f,Ti,-1),I=Ve(D)}if(Be(I,0)!=gl)throw new Error(Ky);h==fr&&(h=Be(I,16)),L==fr&&(L=Be(I,20)),y==fr&&(y=gn(I,32)),o==Er&&(o=gn(I,40)),f-=o}}if(f>=i.size&&(g=i.size-f-o-Wr,f=i.size-o-Wr),_!=h)throw new Error(Ul);if(f<0)throw new Error(Ii);let R=0,O=await Je(i,f,o,L),H=Ve(O);if(o){const k=n.offset-o;if(Be(H,R)!=_l&&f!=k){const E=f;f=k,g+=f-E,O=await Je(i,f,o,L),H=Ve(O)}}const A=n.offset-f-(i.lastDiskOffset||0);if(o!=A&&A>=0&&(o=A,O=await Je(i,f,o,L),H=Ve(O)),f<0||f>=i.size)throw new Error(Ii);const $=rt(r,t,"filenameEncoding"),S=rt(r,t,"commentEncoding");for(let k=0;k<y;k++){const E=new Qy(i,a,r.options);if(Be(H,R)!=_l)throw new Error(zy);oc(E,H,R+6);const D=!!E.bitFlag.languageEncodingFlag,I=R+46,B=I+E.filenameLength,W=B+E.extraFieldLength,M=ze(H,R+4),Z=M>>8==0,z=M>>8==3,ne=O.subarray(I,B),V=ze(H,R+32),Q=W+V,ee=O.subarray(W,Q),G=D,fe=D,ie=Be(H,R+38),ae=Z&&(Xr(H,R+38)&xl)==xl||z&&(ie>>16&kl)==kl||ne.length&&ne[ne.length-1]==El.charCodeAt(0),Se=z&&(ie>>16&Sl)==Sl,Ae=Be(H,R+42)+g;Object.assign(E,{versionMadeBy:M,msDosCompatible:Z,compressedSize:0,uncompressedSize:0,commentLength:V,directory:ae,offset:Ae,diskNumberStart:ze(H,R+34),internalFileAttributes:ze(H,R+36),externalFileAttributes:ie,rawFilename:ne,filenameUTF8:G,commentUTF8:fe,rawExtraField:O.subarray(B,W),executable:Se}),E.internalFileAttribute=E.internalFileAttributes,E.externalFileAttribute=E.externalFileAttributes;const Ze=rt(r,t,"decodeText")||_n,Qe=G?Ml:$||ql,bt=fe?Ml:S||ql;let Re=Ze(ne,Qe);Re===it&&(Re=_n(ne,Qe));let Ie=Ze(ee,bt);Ie===it&&(Ie=_n(ee,bt)),Object.assign(E,{rawComment:ee,filename:Re,comment:Ie,directory:ae||Re.endsWith(El)}),b=Math.max(Ae,b),lc(E,E,H,R+6),E.zipCrypto=E.encrypted&&!E.extraFieldAES;const at=new jl(E);at.getData=(v,u)=>E.getData(v,at,u),R=Q;const{onprogress:Ce}=t;if(Ce)try{await Ce(k+1,y,new jl(E))}catch{}yield at}const P=rt(r,t,"extractPrependedData"),C=rt(r,t,"extractAppendedData");return P&&(r.prependedData=b>0?await Je(i,0,b):new Uint8Array),r.comment=c?await Je(i,p+Wr,c):new Uint8Array,C&&(r.appendedData=m<i.size?await Je(i,m,i.size-m):new Uint8Array),!0}async getEntries(t={}){const r=[];for await(const i of this.getEntriesGenerator(t))r.push(i);return r}async close(){}}class Qy{constructor(t,r,i){Object.assign(this,{reader:t,config:r,options:i})}async getData(t,r,i={}){const a=this,{reader:n,offset:s,diskNumberStart:o,extraFieldAES:f,compressionMethod:p,config:c,bitFlag:m,signature:h,rawLastModDate:_,uncompressedSize:L,compressedSize:y}=a,g=r.localDirectory={},b=await Je(n,s,30,o),R=Ve(b);let O=rt(a,i,"password"),H=rt(a,i,"rawPassword");const A=rt(a,i,"passThrough");if(O=O&&O.length&&O,H=H&&H.length&&H,f&&f.originalCompressionMethod!=y0)throw new Error(Wl);if(p!=m0&&p!=h0&&!A)throw new Error(Wl);if(Be(R,0)!=_0)throw new Error(Vy);oc(g,R,4),g.rawExtraField=g.extraFieldLength?await Je(n,s+30+g.filenameLength,g.extraFieldLength,o):new Uint8Array,lc(a,g,R,4,!0),Object.assign(r,{lastAccessDate:g.lastAccessDate,creationDate:g.creationDate});const $=a.encrypted&&g.encrypted&&!A,S=$&&!f;if(A||(r.zipCrypto=S),$){if(!S&&f.strength===it)throw new Error(Yy);if(!O&&!H)throw new Error(Zy)}const P=s+30+g.filenameLength+g.extraFieldLength,C=y,k=n.readable;Object.assign(k,{diskNumberStart:o,offset:P,size:C});const E=rt(a,i,"signal"),D=rt(a,i,"checkPasswordOnly");D&&(t=new WritableStream),t=Py(t),await Rn(t,A?y:L);const{writable:I}=t,{onstart:B,onprogress:W,onend:M}=i,Z={options:{codecType:zp,password:O,rawPassword:H,zipCrypto:S,encryptionStrength:f&&f.strength,signed:rt(a,i,"checkSignature")&&!A,passwordVerification:S&&(m.dataDescriptor?_>>>8&255:h>>>24&255),signature:h,compressed:p!=0&&!A,encrypted:a.encrypted&&!A,useWebWorkers:rt(a,i,"useWebWorkers"),useCompressionStream:rt(a,i,"useCompressionStream"),transferStreams:rt(a,i,"transferStreams"),checkPasswordOnly:D},config:c,streamOptions:{signal:E,size:C,onstart:B,onprogress:W,onend:M}};let z=0;try{({outputSize:z}=await _y({readable:k,writable:I},Z))}catch(ne){if(!D||ne.message!=Sa)throw ne}finally{const ne=rt(a,i,"preventClose");I.size+=z,!ne&&!I.locked&&await I.getWriter().close()}return D?it:t.getData?t.getData():I}}function oc(e,t,r){const i=e.rawBitFlag=ze(t,r+2),a=(i&wl)==wl,n=Be(t,r+6);Object.assign(e,{encrypted:a,version:ze(t,r),bitFlag:{level:(i&C0)>>1,dataDescriptor:(i&bl)==bl,languageEncodingFlag:(i&vl)==vl},rawLastModDate:n,lastModDate:i_(n),filenameLength:ze(t,r+22),extraFieldLength:ze(t,r+24)})}function lc(e,t,r,i,a){const{rawExtraField:n}=t,s=t.extraField=new Map,o=Ve(new Uint8Array(n));let f=0;try{for(;f<n.length;){const b=ze(o,f),R=ze(o,f+2);s.set(b,{type:b,data:n.slice(f+4,f+4+R)}),f+=4+R}}catch{}const p=ze(r,i+4);Object.assign(t,{signature:Be(r,i+10),uncompressedSize:Be(r,i+18),compressedSize:Be(r,i+14)});const c=s.get(v0);c&&(e_(c,t),t.extraFieldZip64=c);const m=s.get(P0);m&&(zl(m,Jp,Qp,t,e),t.extraFieldUnicodePath=m);const h=s.get(A0);h&&(zl(h,ec,tc,t,e),t.extraFieldUnicodeComment=h);const _=s.get(x0);_?(t_(_,t,p),t.extraFieldAES=_):t.compressionMethod=p;const L=s.get(k0);L&&(r_(L,t),t.extraFieldNTFS=L);const y=s.get(E0);y&&(s_(y,t,a),t.extraFieldExtendedTimestamp=y);const g=s.get(T0);g&&(t.extraFieldUSDZ=g)}function e_(e,t){t.zip64=!0;const r=Ve(e.data),i=Xy.filter(([a,n])=>t[a]==n);for(let a=0,n=0;a<i.length;a++){const[s,o]=i[a];if(t[s]==o){const f=Jy[o];t[s]=e[s]=f.getValue(r,n),n+=f.bytes}else if(e[s])throw new Error(Gy)}}function zl(e,t,r,i,a){const n=Ve(e.data),s=new On;s.append(a[r]);const o=Ve(new Uint8Array(4));o.setUint32(0,s.get(),!0);const f=Be(n,1);Object.assign(e,{version:Xr(n,0),[t]:_n(e.data.subarray(5)),valid:!a.bitFlag.languageEncodingFlag&&f==Be(o,0)}),e.valid&&(i[t]=e[t],i[t+"UTF8"]=!0)}function t_(e,t,r){const i=Ve(e.data),a=Xr(i,4);Object.assign(e,{vendorVersion:Xr(i,0),vendorId:Xr(i,2),strength:a,originalCompressionMethod:r,compressionMethod:ze(i,5)}),t.compressionMethod=e.compressionMethod}function r_(e,t){const r=Ve(e.data);let i=4,a;try{for(;i<e.data.length&&!a;){const n=ze(r,i),s=ze(r,i+2);n==S0&&(a=e.data.slice(i+4,i+4+s)),i+=4+s}}catch{}try{if(a&&a.length==24){const n=Ve(a),s=n.getBigUint64(0,!0),o=n.getBigUint64(8,!0),f=n.getBigUint64(16,!0);Object.assign(e,{rawLastModDate:s,rawLastAccessDate:o,rawCreationDate:f});const p=Di(s),c=Di(o),m=Di(f),h={lastModDate:p,lastAccessDate:c,creationDate:m};Object.assign(e,h),Object.assign(t,h)}}catch{}}function s_(e,t,r){const i=Ve(e.data),a=Xr(i,0),n=[],s=[];r?((a&1)==1&&(n.push(na),s.push(ia)),(a&2)==2&&(n.push(ic),s.push(Cy)),(a&4)==4&&(n.push(ac),s.push(Oy))):e.data.length>=5&&(n.push(na),s.push(ia));let o=1;n.forEach((f,p)=>{if(e.data.length>=o+4){const c=Be(i,o);t[f]=e[f]=new Date(c*1e3);const m=s[p];e[m]=c}o+=4})}async function n_(e,t,r,i,a){const n=new Uint8Array(4),s=Ve(n);a_(s,0,t);const o=i+a;return await f(i)||await f(Math.min(o,r));async function f(p){const c=r-p,m=await Je(e,c,p);for(let h=m.length-i;h>=0;h--)if(m[h]==n[0]&&m[h+1]==n[1]&&m[h+2]==n[2]&&m[h+3]==n[3])return{offset:c+h,buffer:m.slice(h,h+i).buffer}}}function rt(e,t,r){return t[r]===it?e.options[r]:t[r]}function i_(e){const t=(e&4294901760)>>16,r=e&65535;try{return new Date(1980+((t&65024)>>9),((t&480)>>5)-1,t&31,(r&63488)>>11,(r&2016)>>5,(r&31)*2,0)}catch{}}function Di(e){return new Date(Number(e/BigInt(1e4)-BigInt(116444736e5)))}function Xr(e,t){return e.getUint8(t)}function ze(e,t){return e.getUint16(t,!0)}function Be(e,t){return e.getUint32(t,!0)}function gn(e,t){return Number(e.getBigUint64(t,!0))}function a_(e,t,r){e.setUint32(t,r,!0)}function Ve(e){return new DataView(e.buffer)}let fc;try{fc=typeof document>"u"?require("url").pathToFileURL(__filename).href:zr&&zr.tagName.toUpperCase()==="SCRIPT"&&zr.src||new URL("index.cjs",document.baseURI).href}catch{}ka({baseURL:fc});wy(ka);ka({Deflate:zm,Inflate:d0});class o_{constructor(t){this.fileTree=t}async read(t){let r=this.getEntryAtPath(t);if(typeof r=="string")r=new TextEncoder().encode(r);else if(!(r instanceof Uint8Array))throw new Error(`Unsupported content type: ${typeof r}`);const i=new ReadableStream({start(a){a.enqueue(r),a.close()}});return new bs(i,t,{filesize:r.byteLength})}getEntryAtPath(t){let r=t.replace(/^\//,""),i=this.fileTree;for(;r;){if(i[r])return i[r];const a=r.split("/"),n=a.shift();if(!n||!i[n])break;i=i[n],r=a.join("/")}throw new Error(`File not found at ${t}`)}}class In{constructor(t){this.entries=new Map,this.zipReader=t}static fromStream(t){const r=new Kl(new ra(new bs(t,"archive.zip")));return new In(r)}static fromArrayBuffer(t){const r=new Kl(new ra(new Blob([t])));return new In(r)}async read(t){const r=await this.getEntry(t),i=await r.getData(new ky);return new bs(i.stream(),t,{filesize:r.uncompressedSize})}async getEntry(t){const i=(await this.getEntries()).get(t.replace(/^\//,""));if(!i)throw new Error(`File ${t} not found in the zip.`);return i}async getEntries(){if(this.entries.size===0){const t=await this.zipReader.getEntries();for(const r of t)this.entries.set(r.filename,r)}return this.entries}}class l_{constructor(t){if(!t.length)throw new Error("OverlayFilesystem requires at least one filesystem");this.filesystems=t}async read(t){const r=[];for(const a of this.filesystems)try{return await a.read(t)}catch(n){r.push(n instanceof Error?n:new Error(String(n)))}const i=r.map(a=>a.message).join("; ");throw new Error(`Failed to read ${t} from any filesystem: ${i}`,{cause:r})}}class f_{constructor(t){if(this.baseUrl="",this.options=t,this.isDataUrl=t.baseUrl.startsWith("data:"),this.isDataUrl)return;const r=new URL("./",t.baseUrl);if(r.protocol!=="http:"&&r.protocol!=="https:")throw new Error("Unsupported protocol: "+r.protocol+". Only HTTP and HTTPS are supported.");this.baseUrl=r.origin+r.pathname}async read(t){if(this.isDataUrl)throw new Error("FetchFilesystem cannot fetch files from data URLs");t=$n(t);const r=t.replace(/^\//,""),i=new URL(r,this.baseUrl).toString();if(!i.startsWith(this.baseUrl))throw new Error(`Refused to read a file outside of the base URL: ${i}`);const a=this.options.corsProxy?`${this.options.corsProxy}${encodeURIComponent(i)}`:i,n=await fetch(a);if(!n.ok)throw new Error(`Failed to fetch file at ${t}: ${n.statusText}`);const s=n.headers.get("content-length")?parseInt(n.headers.get("content-length"),10):void 0;return new bs(n.body,t,{filesize:s})}}function Gn(e){const t=e.split(".").shift().replace(/-/g," ");return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}function tr(e){return Object.fromEntries(Object.entries(e).map(([t,r])=>[r,t]))}const p_={server_name:0,max_fragment_length:1,client_certificate_url:2,trusted_ca_keys:3,truncated_hmac:4,status_request:5,user_mapping:6,client_authz:7,server_authz:8,cert_type:9,supported_groups:10,ec_point_formats:11,srp:12,signature_algorithms:13,use_srtp:14,heartbeat:15,application_layer_protocol_negotiation:16,status_request_v2:17,signed_certificate_timestamp:18,client_certificate_type:19,server_certificate_type:20,padding:21,encrypt_then_mac:22,extended_master_secret:23,token_binding:24,cached_info:25,tls_its:26,compress_certificate:27,record_size_limit:28,pwd_protect:29,pwo_clear:30,password_salt:31,ticket_pinning:32,tls_cert_with_extern_psk:33,delegated_credential:34,session_ticket:35,TLMSP:36,TLMSP_proxying:37,TLMSP_delegate:38,supported_ekt_ciphers:39,pre_shared_key:41,early_data:42,supported_versions:43,cookie:44,psk_key_exchange_modes:45,reserved:46,certificate_authorities:47,oid_filters:48,post_handshake_auth:49,signature_algorithms_cert:50,key_share:51,transparency_info:52,connection_id:54};tr(p_);const c_={host_name:0};tr(c_);const u_={TLS1_CK_PSK_WITH_RC4_128_SHA:138,TLS1_CK_PSK_WITH_3DES_EDE_CBC_SHA:139,TLS1_CK_PSK_WITH_AES_128_CBC_SHA:140,TLS1_CK_PSK_WITH_AES_256_CBC_SHA:141,TLS1_CK_DHE_PSK_WITH_RC4_128_SHA:142,TLS1_CK_DHE_PSK_WITH_3DES_EDE_CBC_SHA:143,TLS1_CK_DHE_PSK_WITH_AES_128_CBC_SHA:144,TLS1_CK_DHE_PSK_WITH_AES_256_CBC_SHA:145,TLS1_CK_RSA_PSK_WITH_RC4_128_SHA:146,TLS1_CK_RSA_PSK_WITH_3DES_EDE_CBC_SHA:147,TLS1_CK_RSA_PSK_WITH_AES_128_CBC_SHA:148,TLS1_CK_RSA_PSK_WITH_AES_256_CBC_SHA:149,TLS1_CK_PSK_WITH_AES_128_GCM_SHA256:168,TLS1_CK_PSK_WITH_AES_256_GCM_SHA384:169,TLS1_CK_DHE_PSK_WITH_AES_128_GCM_SHA256:170,TLS1_CK_DHE_PSK_WITH_AES_256_GCM_SHA384:171,TLS1_CK_RSA_PSK_WITH_AES_128_GCM_SHA256:172,TLS1_CK_RSA_PSK_WITH_AES_256_GCM_SHA384:173,TLS1_CK_PSK_WITH_AES_128_CBC_SHA256:174,TLS1_CK_PSK_WITH_AES_256_CBC_SHA384:175,TLS1_CK_PSK_WITH_NULL_SHA256:176,TLS1_CK_PSK_WITH_NULL_SHA384:177,TLS1_CK_DHE_PSK_WITH_AES_128_CBC_SHA256:178,TLS1_CK_DHE_PSK_WITH_AES_256_CBC_SHA384:179,TLS1_CK_DHE_PSK_WITH_NULL_SHA256:180,TLS1_CK_DHE_PSK_WITH_NULL_SHA384:181,TLS1_CK_RSA_PSK_WITH_AES_128_CBC_SHA256:182,TLS1_CK_RSA_PSK_WITH_AES_256_CBC_SHA384:183,TLS1_CK_RSA_PSK_WITH_NULL_SHA256:184,TLS1_CK_RSA_PSK_WITH_NULL_SHA384:185,TLS1_CK_PSK_WITH_NULL_SHA:44,TLS1_CK_DHE_PSK_WITH_NULL_SHA:45,TLS1_CK_RSA_PSK_WITH_NULL_SHA:46,TLS1_CK_RSA_WITH_AES_128_SHA:47,TLS1_CK_DH_DSS_WITH_AES_128_SHA:48,TLS1_CK_DH_RSA_WITH_AES_128_SHA:49,TLS1_CK_DHE_DSS_WITH_AES_128_SHA:50,TLS1_CK_DHE_RSA_WITH_AES_128_SHA:51,TLS1_CK_ADH_WITH_AES_128_SHA:52,TLS1_CK_RSA_WITH_AES_256_SHA:53,TLS1_CK_DH_DSS_WITH_AES_256_SHA:54,TLS1_CK_DH_RSA_WITH_AES_256_SHA:55,TLS1_CK_DHE_DSS_WITH_AES_256_SHA:56,TLS1_CK_DHE_RSA_WITH_AES_256_SHA:57,TLS1_CK_ADH_WITH_AES_256_SHA:58,TLS1_CK_RSA_WITH_NULL_SHA256:59,TLS1_CK_RSA_WITH_AES_128_SHA256:60,TLS1_CK_RSA_WITH_AES_256_SHA256:61,TLS1_CK_DH_DSS_WITH_AES_128_SHA256:62,TLS1_CK_DH_RSA_WITH_AES_128_SHA256:63,TLS1_CK_DHE_DSS_WITH_AES_128_SHA256:64,TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA:65,TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA:66,TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA:67,TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA:68,TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA:69,TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA:70,TLS1_CK_DHE_RSA_WITH_AES_128_SHA256:103,TLS1_CK_DH_DSS_WITH_AES_256_SHA256:104,TLS1_CK_DH_RSA_WITH_AES_256_SHA256:105,TLS1_CK_DHE_DSS_WITH_AES_256_SHA256:106,TLS1_CK_DHE_RSA_WITH_AES_256_SHA256:107,TLS1_CK_ADH_WITH_AES_128_SHA256:108,TLS1_CK_ADH_WITH_AES_256_SHA256:109,TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA:132,TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA:133,TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA:134,TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA:135,TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA:136,TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA:137,TLS1_CK_RSA_WITH_SEED_SHA:150,TLS1_CK_DH_DSS_WITH_SEED_SHA:151,TLS1_CK_DH_RSA_WITH_SEED_SHA:152,TLS1_CK_DHE_DSS_WITH_SEED_SHA:153,TLS1_CK_DHE_RSA_WITH_SEED_SHA:154,TLS1_CK_ADH_WITH_SEED_SHA:155,TLS1_CK_RSA_WITH_AES_128_GCM_SHA256:156,TLS1_CK_RSA_WITH_AES_256_GCM_SHA384:157,TLS1_CK_DHE_RSA_WITH_AES_128_GCM_SHA256:158,TLS1_CK_DHE_RSA_WITH_AES_256_GCM_SHA384:159,TLS1_CK_DH_RSA_WITH_AES_128_GCM_SHA256:160,TLS1_CK_DH_RSA_WITH_AES_256_GCM_SHA384:161,TLS1_CK_DHE_DSS_WITH_AES_128_GCM_SHA256:162,TLS1_CK_DHE_DSS_WITH_AES_256_GCM_SHA384:163,TLS1_CK_DH_DSS_WITH_AES_128_GCM_SHA256:164,TLS1_CK_DH_DSS_WITH_AES_256_GCM_SHA384:165,TLS1_CK_ADH_WITH_AES_128_GCM_SHA256:166,TLS1_CK_ADH_WITH_AES_256_GCM_SHA384:167,TLS1_CK_RSA_WITH_AES_128_CCM:49308,TLS1_CK_RSA_WITH_AES_256_CCM:49309,TLS1_CK_DHE_RSA_WITH_AES_128_CCM:49310,TLS1_CK_DHE_RSA_WITH_AES_256_CCM:49311,TLS1_CK_RSA_WITH_AES_128_CCM_8:49312,TLS1_CK_RSA_WITH_AES_256_CCM_8:49313,TLS1_CK_DHE_RSA_WITH_AES_128_CCM_8:49314,TLS1_CK_DHE_RSA_WITH_AES_256_CCM_8:49315,TLS1_CK_PSK_WITH_AES_128_CCM:49316,TLS1_CK_PSK_WITH_AES_256_CCM:49317,TLS1_CK_DHE_PSK_WITH_AES_128_CCM:49318,TLS1_CK_DHE_PSK_WITH_AES_256_CCM:49319,TLS1_CK_PSK_WITH_AES_128_CCM_8:49320,TLS1_CK_PSK_WITH_AES_256_CCM_8:49321,TLS1_CK_DHE_PSK_WITH_AES_128_CCM_8:49322,TLS1_CK_DHE_PSK_WITH_AES_256_CCM_8:49323,TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM:49324,TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM:49325,TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM_8:49326,TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM_8:49327,TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA256:186,TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256:187,TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256:188,TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256:189,TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256:190,TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA256:191,TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA256:192,TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256:193,TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256:194,TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256:195,TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256:196,TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA256:197,TLS1_CK_ECDH_ECDSA_WITH_NULL_SHA:49153,TLS1_CK_ECDH_ECDSA_WITH_RC4_128_SHA:49154,TLS1_CK_ECDH_ECDSA_WITH_DES_192_CBC3_SHA:49155,TLS1_CK_ECDH_ECDSA_WITH_AES_128_CBC_SHA:49156,TLS1_CK_ECDH_ECDSA_WITH_AES_256_CBC_SHA:49157,TLS1_CK_ECDHE_ECDSA_WITH_NULL_SHA:49158,TLS1_CK_ECDHE_ECDSA_WITH_RC4_128_SHA:49159,TLS1_CK_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA:49160,TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CBC_SHA:49161,TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CBC_SHA:49162,TLS1_CK_ECDH_RSA_WITH_NULL_SHA:49163,TLS1_CK_ECDH_RSA_WITH_RC4_128_SHA:49164,TLS1_CK_ECDH_RSA_WITH_DES_192_CBC3_SHA:49165,TLS1_CK_ECDH_RSA_WITH_AES_128_CBC_SHA:49166,TLS1_CK_ECDH_RSA_WITH_AES_256_CBC_SHA:49167,TLS1_CK_ECDHE_RSA_WITH_NULL_SHA:49168,TLS1_CK_ECDHE_RSA_WITH_RC4_128_SHA:49169,TLS1_CK_ECDHE_RSA_WITH_DES_192_CBC3_SHA:49170,TLS1_CK_ECDHE_RSA_WITH_AES_128_CBC_SHA:49171,TLS1_CK_ECDHE_RSA_WITH_AES_256_CBC_SHA:49172,TLS1_CK_ECDH_anon_WITH_NULL_SHA:49173,TLS1_CK_ECDH_anon_WITH_RC4_128_SHA:49174,TLS1_CK_ECDH_anon_WITH_DES_192_CBC3_SHA:49175,TLS1_CK_ECDH_anon_WITH_AES_128_CBC_SHA:49176,TLS1_CK_ECDH_anon_WITH_AES_256_CBC_SHA:49177,TLS1_CK_SRP_SHA_WITH_3DES_EDE_CBC_SHA:49178,TLS1_CK_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA:49179,TLS1_CK_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA:49180,TLS1_CK_SRP_SHA_WITH_AES_128_CBC_SHA:49181,TLS1_CK_SRP_SHA_RSA_WITH_AES_128_CBC_SHA:49182,TLS1_CK_SRP_SHA_DSS_WITH_AES_128_CBC_SHA:49183,TLS1_CK_SRP_SHA_WITH_AES_256_CBC_SHA:49184,TLS1_CK_SRP_SHA_RSA_WITH_AES_256_CBC_SHA:49185,TLS1_CK_SRP_SHA_DSS_WITH_AES_256_CBC_SHA:49186,TLS1_CK_ECDHE_ECDSA_WITH_AES_128_SHA256:49187,TLS1_CK_ECDHE_ECDSA_WITH_AES_256_SHA384:49188,TLS1_CK_ECDH_ECDSA_WITH_AES_128_SHA256:49189,TLS1_CK_ECDH_ECDSA_WITH_AES_256_SHA384:49190,TLS1_CK_ECDHE_RSA_WITH_AES_128_SHA256:49191,TLS1_CK_ECDHE_RSA_WITH_AES_256_SHA384:49192,TLS1_CK_ECDH_RSA_WITH_AES_128_SHA256:49193,TLS1_CK_ECDH_RSA_WITH_AES_256_SHA384:49194,TLS1_CK_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256:49195,TLS1_CK_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384:49196,TLS1_CK_ECDH_ECDSA_WITH_AES_128_GCM_SHA256:49197,TLS1_CK_ECDH_ECDSA_WITH_AES_256_GCM_SHA384:49198,TLS1_CK_ECDHE_RSA_WITH_AES_128_GCM_SHA256:49199,TLS1_CK_ECDHE_RSA_WITH_AES_256_GCM_SHA384:49200,TLS1_CK_ECDH_RSA_WITH_AES_128_GCM_SHA256:49201,TLS1_CK_ECDH_RSA_WITH_AES_256_GCM_SHA384:49202,TLS1_CK_ECDHE_PSK_WITH_RC4_128_SHA:49203,TLS1_CK_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA:49204,TLS1_CK_ECDHE_PSK_WITH_AES_128_CBC_SHA:49205,TLS1_CK_ECDHE_PSK_WITH_AES_256_CBC_SHA:49206,TLS1_CK_ECDHE_PSK_WITH_AES_128_CBC_SHA256:49207,TLS1_CK_ECDHE_PSK_WITH_AES_256_CBC_SHA384:49208,TLS1_CK_ECDHE_PSK_WITH_NULL_SHA:49209,TLS1_CK_ECDHE_PSK_WITH_NULL_SHA256:49210,TLS1_CK_ECDHE_PSK_WITH_NULL_SHA384:49211,TLS1_CK_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256:49266,TLS1_CK_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384:49267,TLS1_CK_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256:49268,TLS1_CK_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384:49269,TLS1_CK_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256:49270,TLS1_CK_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384:49271,TLS1_CK_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256:49272,TLS1_CK_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384:49273,TLS1_CK_PSK_WITH_CAMELLIA_128_CBC_SHA256:49300,TLS1_CK_PSK_WITH_CAMELLIA_256_CBC_SHA384:49301,TLS1_CK_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256:49302,TLS1_CK_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384:49303,TLS1_CK_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256:49304,TLS1_CK_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384:49305,TLS1_CK_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256:49306,TLS1_CK_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384:49307,TLS1_CK_ECDHE_RSA_WITH_CHACHA20_POLY1305:52392,TLS1_CK_ECDHE_ECDSA_WITH_CHACHA20_POLY1305:52393,TLS1_CK_DHE_RSA_WITH_CHACHA20_POLY1305:52394,TLS1_CK_PSK_WITH_CHACHA20_POLY1305:52395,TLS1_CK_ECDHE_PSK_WITH_CHACHA20_POLY1305:52396,TLS1_CK_DHE_PSK_WITH_CHACHA20_POLY1305:52397,TLS1_CK_RSA_PSK_WITH_CHACHA20_POLY1305:52398};tr(u_);const d_={secp256r1:23,secp384r1:24,secp521r1:25,x25519:29,x448:30};tr(d_);const h_={uncompressed:0,ansiX962_compressed_prime:1,ansiX962_compressed_char2:2};tr(h_);const m_={anonymous:0,rsa:1,dsa:2,ecdsa:3};tr(m_);const y_={none:0,md5:1,sha1:2,sha224:3,sha256:4,sha384:5,sha512:6};tr(y_);const __={Warning:1,Fatal:2};tr(__);const g_={CloseNotify:0,UnexpectedMessage:10,BadRecordMac:20,DecryptionFailed:21,RecordOverflow:22,DecompressionFailure:30,HandshakeFailure:40,NoCertificate:41,BadCertificate:42,UnsupportedCertificate:43,CertificateRevoked:44,CertificateExpired:45,CertificateUnknown:46,IllegalParameter:47,UnknownCa:48,AccessDenied:49,DecodeError:50,DecryptError:51,ExportRestriction:60,ProtocolVersion:70,InsufficientSecurity:71,InternalError:80,UserCanceled:90,NoRenegotiation:100,UnsupportedExtension:110};tr(g_);crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!0,["deriveKey","deriveBits"]);async function aa(e,t){const r=["GET","HEAD"].includes(e.method)||"body"in t?void 0:await e.blob();return new Request(t.url||e.url,{body:r,method:e.method,headers:e.headers,referrer:e.referrer,referrerPolicy:e.referrerPolicy,mode:e.mode==="navigate"?"same-origin":e.mode,credentials:e.credentials,cache:e.cache,redirect:e.redirect,integrity:e.integrity,...t})}async function w_(e){if(!e.body)return[e,e];const[t,r]=e.body.tee();return[await aa(e,{body:t,duplex:"half"}),await aa(e,{body:r,duplex:"half"})]}async function b_(e,t,r,i){var p;const a=typeof e=="string"?new Request(e,t):e;if(!r)return await fetch(a);const n=i?new URL(i):null,s=new URL(a.url,n||void 0);if(n&&s.protocol===n.protocol&&s.hostname===n.hostname&&s.port===n.port&&s.pathname.startsWith(n.pathname))return await fetch(a);const[o,f]=await w_(a);try{return await fetch(o)}catch{const m=((p=new Headers(f.headers).get("x-cors-proxy-allowed-request-headers"))==null?void 0:p.split(","))||[],h=m.includes("authorization")||m.includes("cookie"),_=await aa(f,{url:`${r}${a.url}`,...h&&{credentials:"include"}});return await fetch(_,t)}}class xg extends TransformStream{constructor(){let t=new Uint8Array(0),r="SCAN_CHUNK_SIZE",i=0;super({transform(a,n){for(t=au([t,a]);t.length>0;)if(r==="SCAN_CHUNK_SIZE"){if(t.length<3)return;let s=0;for(;s<t.length;){const p=t[s];if(!(p>=48&&p<=57||p>=97&&p<=102||p>=65&&p<=70))break;s++}if(s===0)throw new Error("Invalid chunk size format");if(t.length<s+2)return;if(t[s]!==13||t[s+1]!==10)throw new Error("Invalid chunk size format. Expected CRLF after chunk size");const o=new TextDecoder().decode(t.slice(0,s)),f=parseInt(o,16);if(t=t.slice(s+2),f===0){r="SCAN_FINAL_CHUNK",n.terminate();return}i=f,r="SCAN_CHUNK_DATA"}else if(r==="SCAN_CHUNK_DATA"){const s=Math.min(i,t.length),o=t.slice(0,s);t=t.slice(s),i-=s,n.enqueue(o),i===0&&(r="SCAN_CHUNK_TRAILER")}else if(r==="SCAN_CHUNK_TRAILER"){if(t.length<2)return;if(t[0]!==13||t[1]!==10)throw new Error("Invalid chunk trailer format. Expected CRLF after chunk data");t=t.slice(2),r="SCAN_CHUNK_SIZE"}}})}}new Qr({concurrency:15});const v_=["vfs","literal","wordpress.org/themes","wordpress.org/plugins","url","git:directory","bundled"];function x_(e){return e&&typeof e=="object"&&typeof e.resource=="string"&&v_.includes(e.resource)}class Kt{get progress(){return this._progress}set progress(t){this._progress=t}setPlayground(t){this.playground=t}get isAsync(){return!1}static create(t,{semaphore:r,progress:i,corsProxy:a,streamBundledFile:n}){let s;switch(t.resource){case"vfs":s=new k_(t,i);break;case"literal":s=new S_(t,i);break;case"wordpress.org/themes":s=new L_(t,i);break;case"wordpress.org/plugins":s=new R_(t,i);break;case"url":s=new A_(t,i,{corsProxy:a});break;case"git:directory":s=new T_(t,i,{corsProxy:a});break;case"literal:directory":s=new O_(t,i);break;case"bundled":if(!n)throw new Error("Filesystem is required for blueprint resources");s=new $_(t,n,i);break;default:throw new Error(`Unknown resource type: ${t.resource}`)}return r&&(s=new D_(s,r)),new I_(s)}}class pc extends Kt{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 k_ extends Kt{constructor(t,r){super(),this.resource=t,this._progress=r}async resolve(){var r;const t=await this.playground.readFileAsBuffer(this.resource.path);return(r=this.progress)==null||r.set(100),new File([t],this.name)}get name(){return this.resource.path.split("/").pop()||""}}class S_ extends Kt{constructor(t,r){super(),this.resource=t,this._progress=r}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 Ta extends Kt{constructor(t,r){super(),this._progress=t,this.corsProxy=r}async resolve(){var r,i,a;(r=this.progress)==null||r.setCaption(this.caption);const t=this.getURL();try{let n=await b_(t,void 0,this.corsProxy,await((i=this.playground)==null?void 0:i.absoluteUrl));if(!n.ok)throw new Error(`Could not download "${t}"`);if(n=await Qc(n,((a=this.progress)==null?void 0:a.loadingListener)??P_),n.status!==200)throw new Error(`Could not download "${t}"`);const s=this.name||E_(n.headers.get("content-disposition")||"")||encodeURIComponent(t);return new File([await n.blob()],s)}catch(n){throw new Error(`Could not download "${t}".
77
+ `)])),i=await fetch(e+"/git-upload-pack",{method:"POST",headers:{Accept:"application/x-git-upload-pack-advertisement","content-type":"application/x-git-upload-pack-request","Content-Length":`${r.length}`},body:r}),a=Ep(i.body),n=await vp(a),s=Buffer.from(await Ts(n.packfile));return await Ps.fromPack({pack:s})}async function Sp(e,t){const r=await e.read({oid:t});if(Sr(r),r.type==="blob")return r.object;const i={};for(const{path:a,oid:n,type:s}of r.object)if(s==="blob"){const o=await e.read({oid:n});Sr(o),i[a]=o.object}else s==="tree"&&(i[a]=await Sp(e,n));return i}function Sr(e){if(e.object instanceof Buffer)switch(e.type){case"commit":e.object=mt.from(e.object).parse();break;case"tree":e.object=ma.from(e.object).entries();break;case"blob":e.object=new Uint8Array(e.object),e.format="content";break;case"tag":e.object=hs.from(e.object).parse();break;default:throw new qn(e.oid,e.type,"blob|commit|tag|tree")}}async function*Fm(e){const t=await e.text();let r=0;for(;r<=t.length;){const i=parseInt(t.substring(r,r+4),16);if(i===0)break;yield t.substring(r+4,r+i),r+=i}}function Ep(e){if(e[Symbol.asyncIterator])return e;const t=e.getReader();return{next(){return t.read()},return(){return t.releaseLock(),{}},[Symbol.asyncIterator](){return this}}}function Bm(e,t){t=Hn(t);const r=["",".","/"].includes(t);let i=e;if(r)t="";else{const s=t.split("/");for(const o of s){const f=i==null?void 0:i.find(p=>p.name===o);if((f==null?void 0:f.type)==="folder")i=f.children;else return f?[f.name]:[]}}const a=[],n=[{tree:i,path:t}];for(;n.length>0;){const{tree:s,path:o}=n.pop();for(const f of s){const p=`${o}${o?"/":""}${f.name}`;f.type==="folder"?n.push({tree:f.children,path:p}):a.push(p)}}return a}const Cs=15,ta=30,ra=19,Nm=29,Tn=256,Ea=Tn+1+Nm,Go=2*Ea+1,os=256,jm=7,Zo=16,Yo=17,Xo=18,ki=8*2,Cn=-1,Um=1,Zs=2,Wm=0,Mr=0,Jo=1,Mm=3,ot=4,Ct=0,Pp=1,Ys=2,Lt=-2,qm=-3,Nr=-5;function Kn(e){return zn(e.map(([t,r])=>new Array(t).fill(r,0,t)))}function zn(e){return e.reduce((t,r)=>t.concat(Array.isArray(r)?zn(r):r),[])}const Qo=[0,1,2,3].concat(...Kn([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function Oe(){const e=this;function t(a){const n=e.dyn_tree,s=e.stat_desc.static_tree,o=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,p=e.stat_desc.max_length;let c,m,h,_,L,y,g=0;for(_=0;_<=Cs;_++)a.bl_count[_]=0;for(n[a.heap[a.heap_max]*2+1]=0,c=a.heap_max+1;c<Go;c++)m=a.heap[c],_=n[n[m*2+1]*2+1]+1,_>p&&(_=p,g++),n[m*2+1]=_,!(m>e.max_code)&&(a.bl_count[_]++,L=0,m>=f&&(L=o[m-f]),y=n[m*2],a.opt_len+=y*(_+L),s&&(a.static_len+=y*(s[m*2+1]+L)));if(g!==0){do{for(_=p-1;a.bl_count[_]===0;)_--;a.bl_count[_]--,a.bl_count[_+1]+=2,a.bl_count[p]--,g-=2}while(g>0);for(_=p;_!==0;_--)for(m=a.bl_count[_];m!==0;)h=a.heap[--c],!(h>e.max_code)&&(n[h*2+1]!=_&&(a.opt_len+=(_-n[h*2+1])*n[h*2],n[h*2+1]=_),m--)}}function r(a,n){let s=0;do s|=a&1,a>>>=1,s<<=1;while(--n>0);return s>>>1}function i(a,n,s){const o=[];let f=0,p,c,m;for(p=1;p<=Cs;p++)o[p]=f=f+s[p-1]<<1;for(c=0;c<=n;c++)m=a[c*2+1],m!==0&&(a[c*2]=r(o[m]++,m))}e.build_tree=function(a){const n=e.dyn_tree,s=e.stat_desc.static_tree,o=e.stat_desc.elems;let f,p,c=-1,m;for(a.heap_len=0,a.heap_max=Go,f=0;f<o;f++)n[f*2]!==0?(a.heap[++a.heap_len]=c=f,a.depth[f]=0):n[f*2+1]=0;for(;a.heap_len<2;)m=a.heap[++a.heap_len]=c<2?++c:0,n[m*2]=1,a.depth[m]=0,a.opt_len--,s&&(a.static_len-=s[m*2+1]);for(e.max_code=c,f=Math.floor(a.heap_len/2);f>=1;f--)a.pqdownheap(n,f);m=o;do f=a.heap[1],a.heap[1]=a.heap[a.heap_len--],a.pqdownheap(n,1),p=a.heap[1],a.heap[--a.heap_max]=f,a.heap[--a.heap_max]=p,n[m*2]=n[f*2]+n[p*2],a.depth[m]=Math.max(a.depth[f],a.depth[p])+1,n[f*2+1]=n[p*2+1]=m,a.heap[1]=m++,a.pqdownheap(n,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],t(a),i(n,e.max_code,a.bl_count)}}Oe._length_code=[0,1,2,3,4,5,6,7].concat(...Kn([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]]));Oe.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0];Oe.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576];Oe.d_code=function(e){return e<256?Qo[e]:Qo[256+(e>>>7)]};Oe.extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0];Oe.extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];Oe.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];Oe.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function Ye(e,t,r,i,a){const n=this;n.static_tree=e,n.extra_bits=t,n.extra_base=r,n.elems=i,n.max_length=a}const Km=[12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227],zm=Kn([[144,8],[112,9],[24,7],[8,8]]);Ye.static_ltree=zn(Km.map((e,t)=>[e,zm[t]]));const Vm=[0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23],Gm=Kn([[30,5]]);Ye.static_dtree=zn(Vm.map((e,t)=>[e,Gm[t]]));Ye.static_l_desc=new Ye(Ye.static_ltree,Oe.extra_lbits,Tn+1,Ea,Cs);Ye.static_d_desc=new Ye(Ye.static_dtree,Oe.extra_dbits,0,ta,Cs);Ye.static_bl_desc=new Ye(null,Oe.extra_blbits,0,ra,jm);const Zm=9,Ym=8;function Ft(e,t,r,i,a){const n=this;n.good_length=e,n.max_lazy=t,n.nice_length=r,n.max_chain=i,n.func=a}const Ap=0,hn=1,gr=2,Tt=[new Ft(0,0,0,0,Ap),new Ft(4,4,8,4,hn),new Ft(4,5,16,8,hn),new Ft(4,6,32,32,hn),new Ft(4,4,16,16,gr),new Ft(8,16,32,32,gr),new Ft(8,16,128,128,gr),new Ft(8,32,128,256,gr),new Ft(32,128,258,1024,gr),new Ft(32,258,258,4096,gr)],Xs=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],vt=0,Js=1,ls=2,Qs=3,Xm=32,Si=42,en=113,fs=666,Ei=8,Jm=0,Pi=1,Qm=2,He=3,mn=258,ht=mn+He+1;function el(e,t,r,i){const a=e[t*2],n=e[r*2];return a<n||a==n&&i[t]<=i[r]}function e0(){const e=this;let t,r,i,a,n,s,o,f,p,c,m,h,_,L,y,g,b,R,O,$,A,H,S,P,C,k,E,D,I,N,U,M,Z;const z=new Oe,ne=new Oe,V=new Oe;e.depth=[];let Q,ee,G,fe,ie,ae;e.bl_count=[],e.heap=[],U=[],M=[],Z=[];function Se(){p=2*n,m[_-1]=0;for(let W=0;W<_-1;W++)m[W]=0;k=Tt[E].max_lazy,I=Tt[E].good_length,N=Tt[E].nice_length,C=Tt[E].max_chain,A=0,b=0,S=0,R=P=He-1,$=0,h=0}function Ae(){let W;for(W=0;W<Ea;W++)U[W*2]=0;for(W=0;W<ta;W++)M[W*2]=0;for(W=0;W<ra;W++)Z[W*2]=0;U[os*2]=1,e.opt_len=e.static_len=0,ee=G=0}function Ze(){z.dyn_tree=U,z.stat_desc=Ye.static_l_desc,ne.dyn_tree=M,ne.stat_desc=Ye.static_d_desc,V.dyn_tree=Z,V.stat_desc=Ye.static_bl_desc,ie=0,ae=0,fe=8,Ae()}e.pqdownheap=function(W,Y){const q=e.heap,J=q[Y];let se=Y<<1;for(;se<=e.heap_len&&(se<e.heap_len&&el(W,q[se+1],q[se],e.depth)&&se++,!el(W,J,q[se],e.depth));)q[Y]=q[se],Y=se,se<<=1;q[Y]=J};function Qe(W,Y){let q=-1,J,se=W[0*2+1],le=0,de=7,Ue=4;se===0&&(de=138,Ue=3),W[(Y+1)*2+1]=65535;for(let ce=0;ce<=Y;ce++)J=se,se=W[(ce+1)*2+1],!(++le<de&&J==se)&&(le<Ue?Z[J*2]+=le:J!==0?(J!=q&&Z[J*2]++,Z[Zo*2]++):le<=10?Z[Yo*2]++:Z[Xo*2]++,le=0,q=J,se===0?(de=138,Ue=3):J==se?(de=6,Ue=3):(de=7,Ue=4))}function bt(){let W;for(Qe(U,z.max_code),Qe(M,ne.max_code),V.build_tree(e),W=ra-1;W>=3&&Z[Oe.bl_order[W]*2+1]===0;W--);return e.opt_len+=3*(W+1)+5+5+4,W}function Re(W){e.pending_buf[e.pending++]=W}function Ie(W){Re(W&255),Re(W>>>8&255)}function at(W){Re(W>>8&255),Re(W&255&255)}function Ce(W,Y){let q;const J=Y;ae>ki-J?(q=W,ie|=q<<ae&65535,Ie(ie),ie=q>>>ki-ae,ae+=J-ki):(ie|=W<<ae&65535,ae+=J)}function v(W,Y){const q=W*2;Ce(Y[q]&65535,Y[q+1]&65535)}function u(W,Y){let q,J=-1,se,le=W[0*2+1],de=0,Ue=7,ce=4;for(le===0&&(Ue=138,ce=3),q=0;q<=Y;q++)if(se=le,le=W[(q+1)*2+1],!(++de<Ue&&se==le)){if(de<ce)do v(se,Z);while(--de!==0);else se!==0?(se!=J&&(v(se,Z),de--),v(Zo,Z),Ce(de-3,2)):de<=10?(v(Yo,Z),Ce(de-3,3)):(v(Xo,Z),Ce(de-11,7));de=0,J=se,le===0?(Ue=138,ce=3):se==le?(Ue=6,ce=3):(Ue=7,ce=4)}}function d(W,Y,q){let J;for(Ce(W-257,5),Ce(Y-1,5),Ce(q-4,4),J=0;J<q;J++)Ce(Z[Oe.bl_order[J]*2+1],3);u(U,W-1),u(M,Y-1)}function T(){ae==16?(Ie(ie),ie=0,ae=0):ae>=8&&(Re(ie&255),ie>>>=8,ae-=8)}function B(){Ce(Pi<<1,3),v(os,Ye.static_ltree),T(),1+fe+10-ae<9&&(Ce(Pi<<1,3),v(os,Ye.static_ltree),T()),fe=7}function K(W,Y){let q,J,se;if(e.dist_buf[ee]=W,e.lc_buf[ee]=Y&255,ee++,W===0?U[Y*2]++:(G++,W--,U[(Oe._length_code[Y]+Tn+1)*2]++,M[Oe.d_code(W)*2]++),!(ee&8191)&&E>2){for(q=ee*8,J=A-b,se=0;se<ta;se++)q+=M[se*2]*(5+Oe.extra_dbits[se]);if(q>>>=3,G<Math.floor(ee/2)&&q<Math.floor(J/2))return!0}return ee==Q-1}function X(W,Y){let q,J,se=0,le,de;if(ee!==0)do q=e.dist_buf[se],J=e.lc_buf[se],se++,q===0?v(J,W):(le=Oe._length_code[J],v(le+Tn+1,W),de=Oe.extra_lbits[le],de!==0&&(J-=Oe.base_length[le],Ce(J,de)),q--,le=Oe.d_code(q),v(le,Y),de=Oe.extra_dbits[le],de!==0&&(q-=Oe.base_dist[le],Ce(q,de)));while(se<ee);v(os,W),fe=W[os*2+1]}function pe(){ae>8?Ie(ie):ae>0&&Re(ie&255),ie=0,ae=0}function _e(W,Y,q){pe(),fe=8,Ie(Y),Ie(~Y),e.pending_buf.set(f.subarray(W,W+Y),e.pending),e.pending+=Y}function he(W,Y,q){Ce((Jm<<1)+(q?1:0),3),_e(W,Y)}function Fe(W,Y,q){let J,se,le=0;E>0?(z.build_tree(e),ne.build_tree(e),le=bt(),J=e.opt_len+3+7>>>3,se=e.static_len+3+7>>>3,se<=J&&(J=se)):J=se=Y+5,Y+4<=J&&W!=-1?he(W,Y,q):se==J?(Ce((Pi<<1)+(q?1:0),3),X(Ye.static_ltree,Ye.static_dtree)):(Ce((Qm<<1)+(q?1:0),3),d(z.max_code+1,ne.max_code+1,le+1),X(U,M)),Ae(),q&&pe()}function ue(W){Fe(b>=0?b:-1,A-b,W),b=A,t.flush_pending()}function ut(){let W,Y,q,J;do{if(J=p-S-A,J===0&&A===0&&S===0)J=n;else if(J==-1)J--;else if(A>=n+n-ht){f.set(f.subarray(n,n+n),0),H-=n,A-=n,b-=n,W=_,q=W;do Y=m[--q]&65535,m[q]=Y>=n?Y-n:0;while(--W!==0);W=n,q=W;do Y=c[--q]&65535,c[q]=Y>=n?Y-n:0;while(--W!==0);J+=n}if(t.avail_in===0)return;W=t.read_buf(f,A+S,J),S+=W,S>=He&&(h=f[A]&255,h=(h<<g^f[A+1]&255)&y)}while(S<ht&&t.avail_in!==0)}function et(W){let Y=65535,q;for(Y>i-5&&(Y=i-5);;){if(S<=1){if(ut(),S===0&&W==Mr)return vt;if(S===0)break}if(A+=S,S=0,q=b+Y,(A===0||A>=q)&&(S=A-q,A=q,ue(!1),t.avail_out===0)||A-b>=n-ht&&(ue(!1),t.avail_out===0))return vt}return ue(W==ot),t.avail_out===0?W==ot?ls:vt:W==ot?Qs:Js}function At(W){let Y=C,q=A,J,se,le=P;const de=A>n-ht?A-(n-ht):0;let Ue=N;const ce=o,be=A+mn;let j=f[q+le-1],oe=f[q+le];P>=I&&(Y>>=2),Ue>S&&(Ue=S);do if(J=W,!(f[J+le]!=oe||f[J+le-1]!=j||f[J]!=f[q]||f[++J]!=f[q+1])){q+=2,J++;do;while(f[++q]==f[++J]&&f[++q]==f[++J]&&f[++q]==f[++J]&&f[++q]==f[++J]&&f[++q]==f[++J]&&f[++q]==f[++J]&&f[++q]==f[++J]&&f[++q]==f[++J]&&q<be);if(se=mn-(be-q),q=be-mn,se>le){if(H=W,le=se,se>=Ue)break;j=f[q+le-1],oe=f[q+le]}}while((W=c[W&ce]&65535)>de&&--Y!==0);return le<=S?le:S}function Qn(W){let Y=0,q;for(;;){if(S<ht){if(ut(),S<ht&&W==Mr)return vt;if(S===0)break}if(S>=He&&(h=(h<<g^f[A+(He-1)]&255)&y,Y=m[h]&65535,c[A&o]=m[h],m[h]=A),Y!==0&&(A-Y&65535)<=n-ht&&D!=Zs&&(R=At(Y)),R>=He)if(q=K(A-H,R-He),S-=R,R<=k&&S>=He){R--;do A++,h=(h<<g^f[A+(He-1)]&255)&y,Y=m[h]&65535,c[A&o]=m[h],m[h]=A;while(--R!==0);A++}else A+=R,R=0,h=f[A]&255,h=(h<<g^f[A+1]&255)&y;else q=K(0,f[A]&255),S--,A++;if(q&&(ue(!1),t.avail_out===0))return vt}return ue(W==ot),t.avail_out===0?W==ot?ls:vt:W==ot?Qs:Js}function tt(W){let Y=0,q,J;for(;;){if(S<ht){if(ut(),S<ht&&W==Mr)return vt;if(S===0)break}if(S>=He&&(h=(h<<g^f[A+(He-1)]&255)&y,Y=m[h]&65535,c[A&o]=m[h],m[h]=A),P=R,O=H,R=He-1,Y!==0&&P<k&&(A-Y&65535)<=n-ht&&(D!=Zs&&(R=At(Y)),R<=5&&(D==Um||R==He&&A-H>4096)&&(R=He-1)),P>=He&&R<=P){J=A+S-He,q=K(A-1-O,P-He),S-=P-1,P-=2;do++A<=J&&(h=(h<<g^f[A+(He-1)]&255)&y,Y=m[h]&65535,c[A&o]=m[h],m[h]=A);while(--P!==0);if($=0,R=He-1,A++,q&&(ue(!1),t.avail_out===0))return vt}else if($!==0){if(q=K(0,f[A-1]&255),q&&ue(!1),A++,S--,t.avail_out===0)return vt}else $=1,A++,S--}return $!==0&&(q=K(0,f[A-1]&255),$=0),ue(W==ot),t.avail_out===0?W==ot?ls:vt:W==ot?Qs:Js}function Hr(W){return W.total_in=W.total_out=0,W.msg=null,e.pending=0,e.pending_out=0,r=en,a=Mr,Ze(),Se(),Ct}e.deflateInit=function(W,Y,q,J,se,le){return J||(J=Ei),se||(se=Ym),le||(le=Wm),W.msg=null,Y==Cn&&(Y=6),se<1||se>Zm||J!=Ei||q<9||q>15||Y<0||Y>9||le<0||le>Zs?Lt:(W.dstate=e,s=q,n=1<<s,o=n-1,L=se+7,_=1<<L,y=_-1,g=Math.floor((L+He-1)/He),f=new Uint8Array(n*2),c=[],m=[],Q=1<<se+6,e.pending_buf=new Uint8Array(Q*4),i=Q*4,e.dist_buf=new Uint16Array(Q),e.lc_buf=new Uint8Array(Q),E=Y,D=le,Hr(W))},e.deflateEnd=function(){return r!=Si&&r!=en&&r!=fs?Lt:(e.lc_buf=null,e.dist_buf=null,e.pending_buf=null,m=null,c=null,f=null,e.dstate=null,r==en?qm:Ct)},e.deflateParams=function(W,Y,q){let J=Ct;return Y==Cn&&(Y=6),Y<0||Y>9||q<0||q>Zs?Lt:(Tt[E].func!=Tt[Y].func&&W.total_in!==0&&(J=W.deflate(Jo)),E!=Y&&(E=Y,k=Tt[E].max_lazy,I=Tt[E].good_length,N=Tt[E].nice_length,C=Tt[E].max_chain),D=q,J)},e.deflateSetDictionary=function(W,Y,q){let J=q,se,le=0;if(!Y||r!=Si)return Lt;if(J<He)return Ct;for(J>n-ht&&(J=n-ht,le=q-J),f.set(Y.subarray(le,le+J),0),A=J,b=J,h=f[0]&255,h=(h<<g^f[1]&255)&y,se=0;se<=J-He;se++)h=(h<<g^f[se+(He-1)]&255)&y,c[se&o]=m[h],m[h]=se;return Ct},e.deflate=function(W,Y){let q,J,se,le,de;if(Y>ot||Y<0)return Lt;if(!W.next_out||!W.next_in&&W.avail_in!==0||r==fs&&Y!=ot)return W.msg=Xs[Ys-Lt],Lt;if(W.avail_out===0)return W.msg=Xs[Ys-Nr],Nr;if(t=W,le=a,a=Y,r==Si&&(J=Ei+(s-8<<4)<<8,se=(E-1&255)>>1,se>3&&(se=3),J|=se<<6,A!==0&&(J|=Xm),J+=31-J%31,r=en,at(J)),e.pending!==0){if(t.flush_pending(),t.avail_out===0)return a=-1,Ct}else if(t.avail_in===0&&Y<=le&&Y!=ot)return t.msg=Xs[Ys-Nr],Nr;if(r==fs&&t.avail_in!==0)return W.msg=Xs[Ys-Nr],Nr;if(t.avail_in!==0||S!==0||Y!=Mr&&r!=fs){switch(de=-1,Tt[E].func){case Ap:de=et(Y);break;case hn:de=Qn(Y);break;case gr:de=tt(Y);break}if((de==ls||de==Qs)&&(r=fs),de==vt||de==ls)return t.avail_out===0&&(a=-1),Ct;if(de==Js){if(Y==Jo)B();else if(he(0,0,!1),Y==Mm)for(q=0;q<_;q++)m[q]=0;if(t.flush_pending(),t.avail_out===0)return a=-1,Ct}}return Y!=ot?Ct:Pp}}function Tp(){const e=this;e.next_in_index=0,e.next_out_index=0,e.avail_in=0,e.total_in=0,e.avail_out=0,e.total_out=0}Tp.prototype={deflateInit(e,t){const r=this;return r.dstate=new e0,t||(t=Cs),r.dstate.deflateInit(r,e,t)},deflate(e){const t=this;return t.dstate?t.dstate.deflate(t,e):Lt},deflateEnd(){const e=this;if(!e.dstate)return Lt;const t=e.dstate.deflateEnd();return e.dstate=null,t},deflateParams(e,t){const r=this;return r.dstate?r.dstate.deflateParams(r,e,t):Lt},deflateSetDictionary(e,t){const r=this;return r.dstate?r.dstate.deflateSetDictionary(r,e,t):Lt},read_buf(e,t,r){const i=this;let a=i.avail_in;return a>r&&(a=r),a===0?0:(i.avail_in-=a,e.set(i.next_in.subarray(i.next_in_index,i.next_in_index+a),t),i.next_in_index+=a,i.total_in+=a,a)},flush_pending(){const e=this;let t=e.dstate.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.next_out.set(e.dstate.pending_buf.subarray(e.dstate.pending_out,e.dstate.pending_out+t),e.next_out_index),e.next_out_index+=t,e.dstate.pending_out+=t,e.total_out+=t,e.avail_out-=t,e.dstate.pending-=t,e.dstate.pending===0&&(e.dstate.pending_out=0))}};function t0(e){const t=this,r=new Tp,i=r0(e&&e.chunkSize?e.chunkSize:64*1024),a=Mr,n=new Uint8Array(i);let s=e?e.level:Cn;typeof s>"u"&&(s=Cn),r.deflateInit(s),r.next_out=n,t.append=function(o,f){let p,c,m=0,h=0,_=0;const L=[];if(o.length){r.next_in_index=0,r.next_in=o,r.avail_in=o.length;do{if(r.next_out_index=0,r.avail_out=i,p=r.deflate(a),p!=Ct)throw new Error("deflating: "+r.msg);r.next_out_index&&(r.next_out_index==i?L.push(new Uint8Array(n)):L.push(n.subarray(0,r.next_out_index))),_+=r.next_out_index,f&&r.next_in_index>0&&r.next_in_index!=m&&(f(r.next_in_index),m=r.next_in_index)}while(r.avail_in>0||r.avail_out===0);return L.length>1?(c=new Uint8Array(_),L.forEach(function(y){c.set(y,h),h+=y.length})):c=L[0]?new Uint8Array(L[0]):new Uint8Array,c}},t.flush=function(){let o,f,p=0,c=0;const m=[];do{if(r.next_out_index=0,r.avail_out=i,o=r.deflate(ot),o!=Pp&&o!=Ct)throw new Error("deflating: "+r.msg);i-r.avail_out>0&&m.push(n.slice(0,r.next_out_index)),c+=r.next_out_index}while(r.avail_in>0||r.avail_out===0);return r.deflateEnd(),f=new Uint8Array(c),m.forEach(function(h){f.set(h,p),p+=h.length}),f}}function r0(e){return e+5*(Math.floor(e/16383)+1)}const s0=15,we=0,Jt=1,n0=2,lt=-2,Le=-3,tl=-4,Qt=-5,yt=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],Cp=1440,i0=0,a0=4,o0=9,l0=5,f0=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],p0=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],c0=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],u0=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],d0=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],h0=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],sr=15;function sa(){const e=this;let t,r,i,a,n,s;function o(p,c,m,h,_,L,y,g,b,R,O){let $,A,H,S,P,C,k,E,D,I,N,U,M,Z,z;I=0,P=m;do i[p[c+I]]++,I++,P--;while(P!==0);if(i[0]==m)return y[0]=-1,g[0]=0,we;for(E=g[0],C=1;C<=sr&&i[C]===0;C++);for(k=C,E<C&&(E=C),P=sr;P!==0&&i[P]===0;P--);for(H=P,E>P&&(E=P),g[0]=E,Z=1<<C;C<P;C++,Z<<=1)if((Z-=i[C])<0)return Le;if((Z-=i[P])<0)return Le;for(i[P]+=Z,s[1]=C=0,I=1,M=2;--P!==0;)s[M]=C+=i[I],M++,I++;P=0,I=0;do(C=p[c+I])!==0&&(O[s[C]++]=P),I++;while(++P<m);for(m=s[H],s[0]=P=0,I=0,S=-1,U=-E,n[0]=0,N=0,z=0;k<=H;k++)for($=i[k];$--!==0;){for(;k>U+E;){if(S++,U+=E,z=H-U,z=z>E?E:z,(A=1<<(C=k-U))>$+1&&(A-=$+1,M=k,C<z))for(;++C<z&&!((A<<=1)<=i[++M]);)A-=i[M];if(z=1<<C,R[0]+z>Cp)return Le;n[S]=N=R[0],R[0]+=z,S!==0?(s[S]=P,a[0]=C,a[1]=E,C=P>>>U-E,a[2]=N-n[S-1]-C,b.set(a,(n[S-1]+C)*3)):y[0]=N}for(a[1]=k-U,I>=m?a[0]=192:O[I]<h?(a[0]=O[I]<256?0:96,a[2]=O[I++]):(a[0]=L[O[I]-h]+16+64,a[2]=_[O[I++]-h]),A=1<<k-U,C=P>>>U;C<z;C+=A)b.set(a,(N+C)*3);for(C=1<<k-1;P&C;C>>>=1)P^=C;for(P^=C,D=(1<<U)-1;(P&D)!=s[S];)S--,U-=E,D=(1<<U)-1}return Z!==0&&H!=1?Qt:we}function f(p){let c;for(t||(t=[],r=[],i=new Int32Array(sr+1),a=[],n=new Int32Array(sr),s=new Int32Array(sr+1)),r.length<p&&(r=[]),c=0;c<p;c++)r[c]=0;for(c=0;c<sr+1;c++)i[c]=0;for(c=0;c<3;c++)a[c]=0;n.set(i.subarray(0,sr),0),s.set(i.subarray(0,sr+1),0)}e.inflate_trees_bits=function(p,c,m,h,_){let L;return f(19),t[0]=0,L=o(p,0,19,19,null,null,m,c,h,t,r),L==Le?_.msg="oversubscribed dynamic bit lengths tree":(L==Qt||c[0]===0)&&(_.msg="incomplete dynamic bit lengths tree",L=Le),L},e.inflate_trees_dynamic=function(p,c,m,h,_,L,y,g,b){let R;return f(288),t[0]=0,R=o(m,0,p,257,c0,u0,L,h,g,t,r),R!=we||h[0]===0?(R==Le?b.msg="oversubscribed literal/length tree":R!=tl&&(b.msg="incomplete literal/length tree",R=Le),R):(f(288),R=o(m,p,c,0,d0,h0,y,_,g,t,r),R!=we||_[0]===0&&p>257?(R==Le?b.msg="oversubscribed distance tree":R==Qt?(b.msg="incomplete distance tree",R=Le):R!=tl&&(b.msg="empty distance tree with lengths",R=Le),R):we)}}sa.inflate_trees_fixed=function(e,t,r,i){return e[0]=o0,t[0]=l0,r[0]=f0,i[0]=p0,we};const tn=0,rl=1,sl=2,nl=3,il=4,al=5,ol=6,Ai=7,ll=8,rn=9;function m0(){const e=this;let t,r=0,i,a=0,n=0,s=0,o=0,f=0,p=0,c=0,m,h=0,_,L=0;function y(g,b,R,O,$,A,H,S){let P,C,k,E,D,I,N,U,M,Z,z,ne,V,Q,ee,G;N=S.next_in_index,U=S.avail_in,D=H.bitb,I=H.bitk,M=H.write,Z=M<H.read?H.read-M-1:H.end-M,z=yt[g],ne=yt[b];do{for(;I<20;)U--,D|=(S.read_byte(N++)&255)<<I,I+=8;if(P=D&z,C=R,k=O,G=(k+P)*3,(E=C[G])===0){D>>=C[G+1],I-=C[G+1],H.win[M++]=C[G+2],Z--;continue}do{if(D>>=C[G+1],I-=C[G+1],E&16){for(E&=15,V=C[G+2]+(D&yt[E]),D>>=E,I-=E;I<15;)U--,D|=(S.read_byte(N++)&255)<<I,I+=8;P=D&ne,C=$,k=A,G=(k+P)*3,E=C[G];do if(D>>=C[G+1],I-=C[G+1],E&16){for(E&=15;I<E;)U--,D|=(S.read_byte(N++)&255)<<I,I+=8;if(Q=C[G+2]+(D&yt[E]),D>>=E,I-=E,Z-=V,M>=Q)ee=M-Q,M-ee>0&&2>M-ee?(H.win[M++]=H.win[ee++],H.win[M++]=H.win[ee++],V-=2):(H.win.set(H.win.subarray(ee,ee+2),M),M+=2,ee+=2,V-=2);else{ee=M-Q;do ee+=H.end;while(ee<0);if(E=H.end-ee,V>E){if(V-=E,M-ee>0&&E>M-ee)do H.win[M++]=H.win[ee++];while(--E!==0);else H.win.set(H.win.subarray(ee,ee+E),M),M+=E,ee+=E,E=0;ee=0}}if(M-ee>0&&V>M-ee)do H.win[M++]=H.win[ee++];while(--V!==0);else H.win.set(H.win.subarray(ee,ee+V),M),M+=V,ee+=V,V=0;break}else if(!(E&64))P+=C[G+2],P+=D&yt[E],G=(k+P)*3,E=C[G];else return S.msg="invalid distance code",V=S.avail_in-U,V=I>>3<V?I>>3:V,U+=V,N-=V,I-=V<<3,H.bitb=D,H.bitk=I,S.avail_in=U,S.total_in+=N-S.next_in_index,S.next_in_index=N,H.write=M,Le;while(!0);break}if(E&64)return E&32?(V=S.avail_in-U,V=I>>3<V?I>>3:V,U+=V,N-=V,I-=V<<3,H.bitb=D,H.bitk=I,S.avail_in=U,S.total_in+=N-S.next_in_index,S.next_in_index=N,H.write=M,Jt):(S.msg="invalid literal/length code",V=S.avail_in-U,V=I>>3<V?I>>3:V,U+=V,N-=V,I-=V<<3,H.bitb=D,H.bitk=I,S.avail_in=U,S.total_in+=N-S.next_in_index,S.next_in_index=N,H.write=M,Le);if(P+=C[G+2],P+=D&yt[E],G=(k+P)*3,(E=C[G])===0){D>>=C[G+1],I-=C[G+1],H.win[M++]=C[G+2],Z--;break}}while(!0)}while(Z>=258&&U>=10);return V=S.avail_in-U,V=I>>3<V?I>>3:V,U+=V,N-=V,I-=V<<3,H.bitb=D,H.bitk=I,S.avail_in=U,S.total_in+=N-S.next_in_index,S.next_in_index=N,H.write=M,we}e.init=function(g,b,R,O,$,A){t=tn,p=g,c=b,m=R,h=O,_=$,L=A,i=null},e.proc=function(g,b,R){let O,$,A,H=0,S=0,P=0,C,k,E,D;for(P=b.next_in_index,C=b.avail_in,H=g.bitb,S=g.bitk,k=g.write,E=k<g.read?g.read-k-1:g.end-k;;)switch(t){case tn:if(E>=258&&C>=10&&(g.bitb=H,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,R=y(p,c,m,h,_,L,g,b),P=b.next_in_index,C=b.avail_in,H=g.bitb,S=g.bitk,k=g.write,E=k<g.read?g.read-k-1:g.end-k,R!=we)){t=R==Jt?Ai:rn;break}n=p,i=m,a=h,t=rl;case rl:for(O=n;S<O;){if(C!==0)R=we;else return g.bitb=H,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R);C--,H|=(b.read_byte(P++)&255)<<S,S+=8}if($=(a+(H&yt[O]))*3,H>>>=i[$+1],S-=i[$+1],A=i[$],A===0){s=i[$+2],t=ol;break}if(A&16){o=A&15,r=i[$+2],t=sl;break}if(!(A&64)){n=A,a=$/3+i[$+2];break}if(A&32){t=Ai;break}return t=rn,b.msg="invalid literal/length code",R=Le,g.bitb=H,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R);case sl:for(O=o;S<O;){if(C!==0)R=we;else return g.bitb=H,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R);C--,H|=(b.read_byte(P++)&255)<<S,S+=8}r+=H&yt[O],H>>=O,S-=O,n=c,i=_,a=L,t=nl;case nl:for(O=n;S<O;){if(C!==0)R=we;else return g.bitb=H,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R);C--,H|=(b.read_byte(P++)&255)<<S,S+=8}if($=(a+(H&yt[O]))*3,H>>=i[$+1],S-=i[$+1],A=i[$],A&16){o=A&15,f=i[$+2],t=il;break}if(!(A&64)){n=A,a=$/3+i[$+2];break}return t=rn,b.msg="invalid distance code",R=Le,g.bitb=H,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R);case il:for(O=o;S<O;){if(C!==0)R=we;else return g.bitb=H,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R);C--,H|=(b.read_byte(P++)&255)<<S,S+=8}f+=H&yt[O],H>>=O,S-=O,t=al;case al:for(D=k-f;D<0;)D+=g.end;for(;r!==0;){if(E===0&&(k==g.end&&g.read!==0&&(k=0,E=k<g.read?g.read-k-1:g.end-k),E===0&&(g.write=k,R=g.inflate_flush(b,R),k=g.write,E=k<g.read?g.read-k-1:g.end-k,k==g.end&&g.read!==0&&(k=0,E=k<g.read?g.read-k-1:g.end-k),E===0)))return g.bitb=H,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R);g.win[k++]=g.win[D++],E--,D==g.end&&(D=0),r--}t=tn;break;case ol:if(E===0&&(k==g.end&&g.read!==0&&(k=0,E=k<g.read?g.read-k-1:g.end-k),E===0&&(g.write=k,R=g.inflate_flush(b,R),k=g.write,E=k<g.read?g.read-k-1:g.end-k,k==g.end&&g.read!==0&&(k=0,E=k<g.read?g.read-k-1:g.end-k),E===0)))return g.bitb=H,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R);R=we,g.win[k++]=s,E--,t=tn;break;case Ai:if(S>7&&(S-=8,C++,P--),g.write=k,R=g.inflate_flush(b,R),k=g.write,E=k<g.read?g.read-k-1:g.end-k,g.read!=g.write)return g.bitb=H,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R);t=ll;case ll:return R=Jt,g.bitb=H,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R);case rn:return R=Le,g.bitb=H,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R);default:return R=lt,g.bitb=H,g.bitk=S,b.avail_in=C,b.total_in+=P-b.next_in_index,b.next_in_index=P,g.write=k,g.inflate_flush(b,R)}},e.free=function(){}}const fl=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],jr=0,Ti=1,pl=2,cl=3,ul=4,dl=5,sn=6,nn=7,hl=8,_r=9;function y0(e,t){const r=this;let i=jr,a=0,n=0,s=0,o;const f=[0],p=[0],c=new m0;let m=0,h=new Int32Array(Cp*3);const _=0,L=new sa;r.bitk=0,r.bitb=0,r.win=new Uint8Array(t),r.end=t,r.read=0,r.write=0,r.reset=function(y,g){g&&(g[0]=_),i==sn&&c.free(y),i=jr,r.bitk=0,r.bitb=0,r.read=r.write=0},r.reset(e,null),r.inflate_flush=function(y,g){let b,R,O;return R=y.next_out_index,O=r.read,b=(O<=r.write?r.write:r.end)-O,b>y.avail_out&&(b=y.avail_out),b!==0&&g==Qt&&(g=we),y.avail_out-=b,y.total_out+=b,y.next_out.set(r.win.subarray(O,O+b),R),R+=b,O+=b,O==r.end&&(O=0,r.write==r.end&&(r.write=0),b=r.write-O,b>y.avail_out&&(b=y.avail_out),b!==0&&g==Qt&&(g=we),y.avail_out-=b,y.total_out+=b,y.next_out.set(r.win.subarray(O,O+b),R),R+=b,O+=b),y.next_out_index=R,r.read=O,g},r.proc=function(y,g){let b,R,O,$,A,H,S,P;for($=y.next_in_index,A=y.avail_in,R=r.bitb,O=r.bitk,H=r.write,S=H<r.read?r.read-H-1:r.end-H;;){let C,k,E,D,I,N,U,M;switch(i){case jr:for(;O<3;){if(A!==0)g=we;else return r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=$-y.next_in_index,y.next_in_index=$,r.write=H,r.inflate_flush(y,g);A--,R|=(y.read_byte($++)&255)<<O,O+=8}switch(b=R&7,m=b&1,b>>>1){case 0:R>>>=3,O-=3,b=O&7,R>>>=b,O-=b,i=Ti;break;case 1:C=[],k=[],E=[[]],D=[[]],sa.inflate_trees_fixed(C,k,E,D),c.init(C[0],k[0],E[0],0,D[0],0),R>>>=3,O-=3,i=sn;break;case 2:R>>>=3,O-=3,i=cl;break;case 3:return R>>>=3,O-=3,i=_r,y.msg="invalid block type",g=Le,r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=$-y.next_in_index,y.next_in_index=$,r.write=H,r.inflate_flush(y,g)}break;case Ti:for(;O<32;){if(A!==0)g=we;else return r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=$-y.next_in_index,y.next_in_index=$,r.write=H,r.inflate_flush(y,g);A--,R|=(y.read_byte($++)&255)<<O,O+=8}if((~R>>>16&65535)!=(R&65535))return i=_r,y.msg="invalid stored block lengths",g=Le,r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=$-y.next_in_index,y.next_in_index=$,r.write=H,r.inflate_flush(y,g);a=R&65535,R=O=0,i=a!==0?pl:m!==0?nn:jr;break;case pl:if(A===0||S===0&&(H==r.end&&r.read!==0&&(H=0,S=H<r.read?r.read-H-1:r.end-H),S===0&&(r.write=H,g=r.inflate_flush(y,g),H=r.write,S=H<r.read?r.read-H-1:r.end-H,H==r.end&&r.read!==0&&(H=0,S=H<r.read?r.read-H-1:r.end-H),S===0)))return r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=$-y.next_in_index,y.next_in_index=$,r.write=H,r.inflate_flush(y,g);if(g=we,b=a,b>A&&(b=A),b>S&&(b=S),r.win.set(y.read_buf($,b),H),$+=b,A-=b,H+=b,S-=b,(a-=b)!==0)break;i=m!==0?nn:jr;break;case cl:for(;O<14;){if(A!==0)g=we;else return r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=$-y.next_in_index,y.next_in_index=$,r.write=H,r.inflate_flush(y,g);A--,R|=(y.read_byte($++)&255)<<O,O+=8}if(n=b=R&16383,(b&31)>29||(b>>5&31)>29)return i=_r,y.msg="too many length or distance symbols",g=Le,r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=$-y.next_in_index,y.next_in_index=$,r.write=H,r.inflate_flush(y,g);if(b=258+(b&31)+(b>>5&31),!o||o.length<b)o=[];else for(P=0;P<b;P++)o[P]=0;R>>>=14,O-=14,s=0,i=ul;case ul:for(;s<4+(n>>>10);){for(;O<3;){if(A!==0)g=we;else return r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=$-y.next_in_index,y.next_in_index=$,r.write=H,r.inflate_flush(y,g);A--,R|=(y.read_byte($++)&255)<<O,O+=8}o[fl[s++]]=R&7,R>>>=3,O-=3}for(;s<19;)o[fl[s++]]=0;if(f[0]=7,b=L.inflate_trees_bits(o,f,p,h,y),b!=we)return g=b,g==Le&&(o=null,i=_r),r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=$-y.next_in_index,y.next_in_index=$,r.write=H,r.inflate_flush(y,g);s=0,i=dl;case dl:for(;b=n,!(s>=258+(b&31)+(b>>5&31));){let Z,z;for(b=f[0];O<b;){if(A!==0)g=we;else return r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=$-y.next_in_index,y.next_in_index=$,r.write=H,r.inflate_flush(y,g);A--,R|=(y.read_byte($++)&255)<<O,O+=8}if(b=h[(p[0]+(R&yt[b]))*3+1],z=h[(p[0]+(R&yt[b]))*3+2],z<16)R>>>=b,O-=b,o[s++]=z;else{for(P=z==18?7:z-14,Z=z==18?11:3;O<b+P;){if(A!==0)g=we;else return r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=$-y.next_in_index,y.next_in_index=$,r.write=H,r.inflate_flush(y,g);A--,R|=(y.read_byte($++)&255)<<O,O+=8}if(R>>>=b,O-=b,Z+=R&yt[P],R>>>=P,O-=P,P=s,b=n,P+Z>258+(b&31)+(b>>5&31)||z==16&&P<1)return o=null,i=_r,y.msg="invalid bit length repeat",g=Le,r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=$-y.next_in_index,y.next_in_index=$,r.write=H,r.inflate_flush(y,g);z=z==16?o[P-1]:0;do o[P++]=z;while(--Z!==0);s=P}}if(p[0]=-1,I=[],N=[],U=[],M=[],I[0]=9,N[0]=6,b=n,b=L.inflate_trees_dynamic(257+(b&31),1+(b>>5&31),o,I,N,U,M,h,y),b!=we)return b==Le&&(o=null,i=_r),g=b,r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=$-y.next_in_index,y.next_in_index=$,r.write=H,r.inflate_flush(y,g);c.init(I[0],N[0],h,U[0],h,M[0]),i=sn;case sn:if(r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=$-y.next_in_index,y.next_in_index=$,r.write=H,(g=c.proc(r,y,g))!=Jt)return r.inflate_flush(y,g);if(g=we,c.free(y),$=y.next_in_index,A=y.avail_in,R=r.bitb,O=r.bitk,H=r.write,S=H<r.read?r.read-H-1:r.end-H,m===0){i=jr;break}i=nn;case nn:if(r.write=H,g=r.inflate_flush(y,g),H=r.write,S=H<r.read?r.read-H-1:r.end-H,r.read!=r.write)return r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=$-y.next_in_index,y.next_in_index=$,r.write=H,r.inflate_flush(y,g);i=hl;case hl:return g=Jt,r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=$-y.next_in_index,y.next_in_index=$,r.write=H,r.inflate_flush(y,g);case _r:return g=Le,r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=$-y.next_in_index,y.next_in_index=$,r.write=H,r.inflate_flush(y,g);default:return g=lt,r.bitb=R,r.bitk=O,y.avail_in=A,y.total_in+=$-y.next_in_index,y.next_in_index=$,r.write=H,r.inflate_flush(y,g)}}},r.free=function(y){r.reset(y,null),r.win=null,h=null},r.set_dictionary=function(y,g,b){r.win.set(y.subarray(g,g+b),0),r.read=r.write=b},r.sync_point=function(){return i==Ti?1:0}}const _0=32,g0=8,w0=0,ml=1,yl=2,_l=3,gl=4,wl=5,Ci=6,ps=7,bl=12,nr=13,b0=[0,0,255,255];function v0(){const e=this;e.mode=0,e.method=0,e.was=[0],e.need=0,e.marker=0,e.wbits=0;function t(r){return!r||!r.istate?lt:(r.total_in=r.total_out=0,r.msg=null,r.istate.mode=ps,r.istate.blocks.reset(r,null),we)}e.inflateEnd=function(r){return e.blocks&&e.blocks.free(r),e.blocks=null,we},e.inflateInit=function(r,i){return r.msg=null,e.blocks=null,i<8||i>15?(e.inflateEnd(r),lt):(e.wbits=i,r.istate.blocks=new y0(r,1<<i),t(r),we)},e.inflate=function(r,i){let a,n;if(!r||!r.istate||!r.next_in)return lt;const s=r.istate;for(i=i==a0?Qt:we,a=Qt;;)switch(s.mode){case w0:if(r.avail_in===0)return a;if(a=i,r.avail_in--,r.total_in++,((s.method=r.read_byte(r.next_in_index++))&15)!=g0){s.mode=nr,r.msg="unknown compression method",s.marker=5;break}if((s.method>>4)+8>s.wbits){s.mode=nr,r.msg="invalid win size",s.marker=5;break}s.mode=ml;case ml:if(r.avail_in===0)return a;if(a=i,r.avail_in--,r.total_in++,n=r.read_byte(r.next_in_index++)&255,((s.method<<8)+n)%31!==0){s.mode=nr,r.msg="incorrect header check",s.marker=5;break}if(!(n&_0)){s.mode=ps;break}s.mode=yl;case yl:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,s.need=(r.read_byte(r.next_in_index++)&255)<<24&4278190080,s.mode=_l;case _l:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,s.need+=(r.read_byte(r.next_in_index++)&255)<<16&16711680,s.mode=gl;case gl:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,s.need+=(r.read_byte(r.next_in_index++)&255)<<8&65280,s.mode=wl;case wl:return r.avail_in===0?a:(a=i,r.avail_in--,r.total_in++,s.need+=r.read_byte(r.next_in_index++)&255,s.mode=Ci,n0);case Ci:return s.mode=nr,r.msg="need dictionary",s.marker=0,lt;case ps:if(a=s.blocks.proc(r,a),a==Le){s.mode=nr,s.marker=0;break}if(a==we&&(a=i),a!=Jt)return a;a=i,s.blocks.reset(r,s.was),s.mode=bl;case bl:return r.avail_in=0,Jt;case nr:return Le;default:return lt}},e.inflateSetDictionary=function(r,i,a){let n=0,s=a;if(!r||!r.istate||r.istate.mode!=Ci)return lt;const o=r.istate;return s>=1<<o.wbits&&(s=(1<<o.wbits)-1,n=a-s),o.blocks.set_dictionary(i,n,s),o.mode=ps,we},e.inflateSync=function(r){let i,a,n,s,o;if(!r||!r.istate)return lt;const f=r.istate;if(f.mode!=nr&&(f.mode=nr,f.marker=0),(i=r.avail_in)===0)return Qt;for(a=r.next_in_index,n=f.marker;i!==0&&n<4;)r.read_byte(a)==b0[n]?n++:r.read_byte(a)!==0?n=0:n=4-n,a++,i--;return r.total_in+=a-r.next_in_index,r.next_in_index=a,r.avail_in=i,f.marker=n,n!=4?Le:(s=r.total_in,o=r.total_out,t(r),r.total_in=s,r.total_out=o,f.mode=ps,we)},e.inflateSyncPoint=function(r){return!r||!r.istate||!r.istate.blocks?lt:r.istate.blocks.sync_point()}}function Op(){}Op.prototype={inflateInit(e){const t=this;return t.istate=new v0,e||(e=s0),t.istate.inflateInit(t,e)},inflate(e){const t=this;return t.istate?t.istate.inflate(t,e):lt},inflateEnd(){const e=this;if(!e.istate)return lt;const t=e.istate.inflateEnd(e);return e.istate=null,t},inflateSync(){const e=this;return e.istate?e.istate.inflateSync(e):lt},inflateSetDictionary(e,t){const r=this;return r.istate?r.istate.inflateSetDictionary(r,e,t):lt},read_byte(e){return this.next_in[e]},read_buf(e,t){return this.next_in.subarray(e,e+t)}};function x0(e){const t=this,r=new Op,i=e&&e.chunkSize?Math.floor(e.chunkSize*2):128*1024,a=i0,n=new Uint8Array(i);let s=!1;r.inflateInit(),r.next_out=n,t.append=function(o,f){const p=[];let c,m,h=0,_=0,L=0;if(o.length!==0){r.next_in_index=0,r.next_in=o,r.avail_in=o.length;do{if(r.next_out_index=0,r.avail_out=i,r.avail_in===0&&!s&&(r.next_in_index=0,s=!0),c=r.inflate(a),s&&c===Qt){if(r.avail_in!==0)throw new Error("inflating: bad input")}else if(c!==we&&c!==Jt)throw new Error("inflating: "+r.msg);if((s||c===Jt)&&r.avail_in===o.length)throw new Error("inflating: bad input");r.next_out_index&&(r.next_out_index===i?p.push(new Uint8Array(n)):p.push(n.subarray(0,r.next_out_index))),L+=r.next_out_index,f&&r.next_in_index>0&&r.next_in_index!=h&&(f(r.next_in_index),h=r.next_in_index)}while(r.avail_in>0||r.avail_out===0);return p.length>1?(m=new Uint8Array(L),p.forEach(function(y){m.set(y,_),_+=y.length})):m=p[0]?new Uint8Array(p[0]):new Uint8Array,m}},t.flush=function(){r.inflateEnd()}}const Er=4294967295,fr=65535,k0=8,S0=0,E0=99,P0=67324752,A0=134695760,vl=33639248,T0=101010256,xl=101075792,C0=117853008,Ur=22,Oi=20,Li=56,O0=1,L0=39169,R0=10,I0=1,D0=21589,H0=28789,$0=25461,F0=6534,kl=1,B0=6,Sl=8,El=2048,Pl=16,Al=16384,Tl=73,Cl="/",it=void 0,yr="undefined",Ns="function";class Ol{constructor(t){return class extends TransformStream{constructor(r,i){const a=new t(i);super({transform(n,s){s.enqueue(a.append(n))},flush(n){const s=a.flush();s&&n.enqueue(s)}})}}}}const N0=64;let Lp=2;try{typeof navigator!=yr&&navigator.hardwareConcurrency&&(Lp=navigator.hardwareConcurrency)}catch{}const j0={chunkSize:512*1024,maxWorkers:Lp,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:it,CompressionStreamNative:typeof CompressionStream!=yr&&CompressionStream,DecompressionStreamNative:typeof DecompressionStream!=yr&&DecompressionStream},pr=Object.assign({},j0);function U0(){return pr}function W0(e){return Math.max(e.chunkSize,N0)}function Pa(e){const{baseURL:t,chunkSize:r,maxWorkers:i,terminateWorkerTimeout:a,useCompressionStream:n,useWebWorkers:s,Deflate:o,Inflate:f,CompressionStream:p,DecompressionStream:c,workerScripts:m}=e;if(ir("baseURL",t),ir("chunkSize",r),ir("maxWorkers",i),ir("terminateWorkerTimeout",a),ir("useCompressionStream",n),ir("useWebWorkers",s),o&&(pr.CompressionStream=new Ol(o)),f&&(pr.DecompressionStream=new Ol(f)),ir("CompressionStream",p),ir("DecompressionStream",c),m!==it){const{deflate:h,inflate:_}=m;if((h||_)&&(pr.workerScripts||(pr.workerScripts={})),h){if(!Array.isArray(h))throw new Error("workerScripts.deflate must be an array");pr.workerScripts.deflate=h}if(_){if(!Array.isArray(_))throw new Error("workerScripts.inflate must be an array");pr.workerScripts.inflate=_}}}function ir(e,t){t!==it&&(pr[e]=t)}const Ri={application:{"andrew-inset":"ez",annodex:"anx","atom+xml":"atom","atomcat+xml":"atomcat","atomserv+xml":"atomsrv",bbolin:"lin","cu-seeme":"cu","davmount+xml":"davmount",dsptype:"tsp",ecmascript:["es","ecma"],futuresplash:"spl",hta:"hta","java-archive":"jar","java-serialized-object":"ser","java-vm":"class",m3g:"m3g","mac-binhex40":"hqx",mathematica:["nb","ma","mb"],msaccess:"mdb",msword:["doc","dot","wiz"],mxf:"mxf",oda:"oda",ogg:"ogx",pdf:"pdf","pgp-keys":"key","pgp-signature":["asc","sig"],"pics-rules":"prf",postscript:["ps","ai","eps","epsi","epsf","eps2","eps3"],rar:"rar","rdf+xml":"rdf","rss+xml":"rss",rtf:"rtf","xhtml+xml":["xhtml","xht"],xml:["xml","xsl","xsd","xpdl"],"xspf+xml":"xspf",zip:"zip","vnd.android.package-archive":"apk","vnd.cinderella":"cdy","vnd.google-earth.kml+xml":"kml","vnd.google-earth.kmz":"kmz","vnd.mozilla.xul+xml":"xul","vnd.ms-excel":["xls","xlb","xlt","xlm","xla","xlc","xlw"],"vnd.ms-pki.seccat":"cat","vnd.ms-pki.stl":"stl","vnd.ms-powerpoint":["ppt","pps","pot","ppa","pwz"],"vnd.oasis.opendocument.chart":"odc","vnd.oasis.opendocument.database":"odb","vnd.oasis.opendocument.formula":"odf","vnd.oasis.opendocument.graphics":"odg","vnd.oasis.opendocument.graphics-template":"otg","vnd.oasis.opendocument.image":"odi","vnd.oasis.opendocument.presentation":"odp","vnd.oasis.opendocument.presentation-template":"otp","vnd.oasis.opendocument.spreadsheet":"ods","vnd.oasis.opendocument.spreadsheet-template":"ots","vnd.oasis.opendocument.text":"odt","vnd.oasis.opendocument.text-master":["odm","otm"],"vnd.oasis.opendocument.text-template":"ott","vnd.oasis.opendocument.text-web":"oth","vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","vnd.openxmlformats-officedocument.spreadsheetml.template":"xltx","vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","vnd.openxmlformats-officedocument.presentationml.slideshow":"ppsx","vnd.openxmlformats-officedocument.presentationml.template":"potx","vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","vnd.openxmlformats-officedocument.wordprocessingml.template":"dotx","vnd.smaf":"mmf","vnd.stardivision.calc":"sdc","vnd.stardivision.chart":"sds","vnd.stardivision.draw":"sda","vnd.stardivision.impress":"sdd","vnd.stardivision.math":["sdf","smf"],"vnd.stardivision.writer":["sdw","vor"],"vnd.stardivision.writer-global":"sgl","vnd.sun.xml.calc":"sxc","vnd.sun.xml.calc.template":"stc","vnd.sun.xml.draw":"sxd","vnd.sun.xml.draw.template":"std","vnd.sun.xml.impress":"sxi","vnd.sun.xml.impress.template":"sti","vnd.sun.xml.math":"sxm","vnd.sun.xml.writer":"sxw","vnd.sun.xml.writer.global":"sxg","vnd.sun.xml.writer.template":"stw","vnd.symbian.install":["sis","sisx"],"vnd.visio":["vsd","vst","vss","vsw","vsdx","vssx","vstx","vssm","vstm"],"vnd.wap.wbxml":"wbxml","vnd.wap.wmlc":"wmlc","vnd.wap.wmlscriptc":"wmlsc","vnd.wordperfect":"wpd","vnd.wordperfect5.1":"wp5","x-123":"wk","x-7z-compressed":"7z","x-abiword":"abw","x-apple-diskimage":"dmg","x-bcpio":"bcpio","x-bittorrent":"torrent","x-cbr":["cbr","cba","cbt","cb7"],"x-cbz":"cbz","x-cdf":["cdf","cda"],"x-cdlink":"vcd","x-chess-pgn":"pgn","x-cpio":"cpio","x-csh":"csh","x-director":["dir","dxr","cst","cct","cxt","w3d","fgd","swa"],"x-dms":"dms","x-doom":"wad","x-dvi":"dvi","x-httpd-eruby":"rhtml","x-font":"pcf.Z","x-freemind":"mm","x-gnumeric":"gnumeric","x-go-sgf":"sgf","x-graphing-calculator":"gcf","x-gtar":["gtar","taz"],"x-hdf":"hdf","x-httpd-php":["phtml","pht","php"],"x-httpd-php-source":"phps","x-httpd-php3":"php3","x-httpd-php3-preprocessed":"php3p","x-httpd-php4":"php4","x-httpd-php5":"php5","x-ica":"ica","x-info":"info","x-internet-signup":["ins","isp"],"x-iphone":"iii","x-iso9660-image":"iso","x-java-jnlp-file":"jnlp","x-jmol":"jmz","x-killustrator":"kil","x-latex":"latex","x-lyx":"lyx","x-lzx":"lzx","x-maker":["frm","fb","fbdoc"],"x-ms-wmd":"wmd","x-msdos-program":["com","exe","bat","dll"],"x-netcdf":["nc"],"x-ns-proxy-autoconfig":["pac","dat"],"x-nwc":"nwc","x-object":"o","x-oz-application":"oza","x-pkcs7-certreqresp":"p7r","x-python-code":["pyc","pyo"],"x-qgis":["qgs","shp","shx"],"x-quicktimeplayer":"qtl","x-redhat-package-manager":["rpm","rpa"],"x-ruby":"rb","x-sh":"sh","x-shar":"shar","x-shockwave-flash":["swf","swfl"],"x-silverlight":"scr","x-stuffit":"sit","x-sv4cpio":"sv4cpio","x-sv4crc":"sv4crc","x-tar":"tar","x-tex-gf":"gf","x-tex-pk":"pk","x-texinfo":["texinfo","texi"],"x-trash":["~","%","bak","old","sik"],"x-ustar":"ustar","x-wais-source":"src","x-wingz":"wz","x-x509-ca-cert":["crt","der","cer"],"x-xcf":"xcf","x-xfig":"fig","x-xpinstall":"xpi",applixware:"aw","atomsvc+xml":"atomsvc","ccxml+xml":"ccxml","cdmi-capability":"cdmia","cdmi-container":"cdmic","cdmi-domain":"cdmid","cdmi-object":"cdmio","cdmi-queue":"cdmiq","docbook+xml":"dbk","dssc+der":"dssc","dssc+xml":"xdssc","emma+xml":"emma","epub+zip":"epub",exi:"exi","font-tdpfr":"pfr","gml+xml":"gml","gpx+xml":"gpx",gxf:"gxf",hyperstudio:"stk","inkml+xml":["ink","inkml"],ipfix:"ipfix","jsonml+json":"jsonml","lost+xml":"lostxml","mads+xml":"mads",marc:"mrc","marcxml+xml":"mrcx","mathml+xml":["mathml","mml"],mbox:"mbox","mediaservercontrol+xml":"mscml","metalink+xml":"metalink","metalink4+xml":"meta4","mets+xml":"mets","mods+xml":"mods",mp21:["m21","mp21"],mp4:"mp4s","oebps-package+xml":"opf","omdoc+xml":"omdoc",onenote:["onetoc","onetoc2","onetmp","onepkg"],oxps:"oxps","patch-ops-error+xml":"xer","pgp-encrypted":"pgp",pkcs10:"p10","pkcs7-mime":["p7m","p7c"],"pkcs7-signature":"p7s",pkcs8:"p8","pkix-attr-cert":"ac","pkix-crl":"crl","pkix-pkipath":"pkipath",pkixcmp:"pki","pls+xml":"pls","prs.cww":"cww","pskc+xml":"pskcxml","reginfo+xml":"rif","relax-ng-compact-syntax":"rnc","resource-lists+xml":"rl","resource-lists-diff+xml":"rld","rls-services+xml":"rs","rpki-ghostbusters":"gbr","rpki-manifest":"mft","rpki-roa":"roa","rsd+xml":"rsd","sbml+xml":"sbml","scvp-cv-request":"scq","scvp-cv-response":"scs","scvp-vp-request":"spq","scvp-vp-response":"spp",sdp:"sdp","set-payment-initiation":"setpay","set-registration-initiation":"setreg","shf+xml":"shf","sparql-query":"rq","sparql-results+xml":"srx",srgs:"gram","srgs+xml":"grxml","sru+xml":"sru","ssdl+xml":"ssdl","ssml+xml":"ssml","tei+xml":["tei","teicorpus"],"thraud+xml":"tfi","timestamped-data":"tsd","vnd.3gpp.pic-bw-large":"plb","vnd.3gpp.pic-bw-small":"psb","vnd.3gpp.pic-bw-var":"pvb","vnd.3gpp2.tcap":"tcap","vnd.3m.post-it-notes":"pwn","vnd.accpac.simply.aso":"aso","vnd.accpac.simply.imp":"imp","vnd.acucobol":"acu","vnd.acucorp":["atc","acutc"],"vnd.adobe.air-application-installer-package+zip":"air","vnd.adobe.formscentral.fcdt":"fcdt","vnd.adobe.fxp":["fxp","fxpl"],"vnd.adobe.xdp+xml":"xdp","vnd.adobe.xfdf":"xfdf","vnd.ahead.space":"ahead","vnd.airzip.filesecure.azf":"azf","vnd.airzip.filesecure.azs":"azs","vnd.amazon.ebook":"azw","vnd.americandynamics.acc":"acc","vnd.amiga.ami":"ami","vnd.anser-web-certificate-issue-initiation":"cii","vnd.anser-web-funds-transfer-initiation":"fti","vnd.antix.game-component":"atx","vnd.apple.installer+xml":"mpkg","vnd.apple.mpegurl":"m3u8","vnd.aristanetworks.swi":"swi","vnd.astraea-software.iota":"iota","vnd.audiograph":"aep","vnd.blueice.multipass":"mpm","vnd.bmi":"bmi","vnd.businessobjects":"rep","vnd.chemdraw+xml":"cdxml","vnd.chipnuts.karaoke-mmd":"mmd","vnd.claymore":"cla","vnd.cloanto.rp9":"rp9","vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"vnd.cluetrust.cartomobile-config":"c11amc","vnd.cluetrust.cartomobile-config-pkg":"c11amz","vnd.commonspace":"csp","vnd.contact.cmsg":"cdbcmsg","vnd.cosmocaller":"cmc","vnd.crick.clicker":"clkx","vnd.crick.clicker.keyboard":"clkk","vnd.crick.clicker.palette":"clkp","vnd.crick.clicker.template":"clkt","vnd.crick.clicker.wordbank":"clkw","vnd.criticaltools.wbs+xml":"wbs","vnd.ctc-posml":"pml","vnd.cups-ppd":"ppd","vnd.curl.car":"car","vnd.curl.pcurl":"pcurl","vnd.dart":"dart","vnd.data-vision.rdz":"rdz","vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"vnd.dece.ttml+xml":["uvt","uvvt"],"vnd.dece.unspecified":["uvx","uvvx"],"vnd.dece.zip":["uvz","uvvz"],"vnd.denovo.fcselayout-link":"fe_launch","vnd.dna":"dna","vnd.dolby.mlp":"mlp","vnd.dpgraph":"dpg","vnd.dreamfactory":"dfac","vnd.ds-keypoint":"kpxx","vnd.dvb.ait":"ait","vnd.dvb.service":"svc","vnd.dynageo":"geo","vnd.ecowin.chart":"mag","vnd.enliven":"nml","vnd.epson.esf":"esf","vnd.epson.msf":"msf","vnd.epson.quickanime":"qam","vnd.epson.salt":"slt","vnd.epson.ssf":"ssf","vnd.eszigno3+xml":["es3","et3"],"vnd.ezpix-album":"ez2","vnd.ezpix-package":"ez3","vnd.fdf":"fdf","vnd.fdsn.mseed":"mseed","vnd.fdsn.seed":["seed","dataless"],"vnd.flographit":"gph","vnd.fluxtime.clip":"ftc","vnd.framemaker":["fm","frame","maker","book"],"vnd.frogans.fnc":"fnc","vnd.frogans.ltf":"ltf","vnd.fsc.weblaunch":"fsc","vnd.fujitsu.oasys":"oas","vnd.fujitsu.oasys2":"oa2","vnd.fujitsu.oasys3":"oa3","vnd.fujitsu.oasysgp":"fg5","vnd.fujitsu.oasysprs":"bh2","vnd.fujixerox.ddd":"ddd","vnd.fujixerox.docuworks":"xdw","vnd.fujixerox.docuworks.binder":"xbd","vnd.fuzzysheet":"fzs","vnd.genomatix.tuxedo":"txd","vnd.geogebra.file":"ggb","vnd.geogebra.tool":"ggt","vnd.geometry-explorer":["gex","gre"],"vnd.geonext":"gxt","vnd.geoplan":"g2w","vnd.geospace":"g3w","vnd.gmx":"gmx","vnd.grafeq":["gqf","gqs"],"vnd.groove-account":"gac","vnd.groove-help":"ghf","vnd.groove-identity-message":"gim","vnd.groove-injector":"grv","vnd.groove-tool-message":"gtm","vnd.groove-tool-template":"tpl","vnd.groove-vcard":"vcg","vnd.hal+xml":"hal","vnd.handheld-entertainment+xml":"zmm","vnd.hbci":"hbci","vnd.hhe.lesson-player":"les","vnd.hp-hpgl":"hpgl","vnd.hp-hpid":"hpid","vnd.hp-hps":"hps","vnd.hp-jlyt":"jlt","vnd.hp-pcl":"pcl","vnd.hp-pclxl":"pclxl","vnd.hydrostatix.sof-data":"sfd-hdstx","vnd.ibm.minipay":"mpy","vnd.ibm.modcap":["afp","listafp","list3820"],"vnd.ibm.rights-management":"irm","vnd.ibm.secure-container":"sc","vnd.iccprofile":["icc","icm"],"vnd.igloader":"igl","vnd.immervision-ivp":"ivp","vnd.immervision-ivu":"ivu","vnd.insors.igm":"igm","vnd.intercon.formnet":["xpw","xpx"],"vnd.intergeo":"i2g","vnd.intu.qbo":"qbo","vnd.intu.qfx":"qfx","vnd.ipunplugged.rcprofile":"rcprofile","vnd.irepository.package+xml":"irp","vnd.is-xpr":"xpr","vnd.isac.fcs":"fcs","vnd.jam":"jam","vnd.jcp.javame.midlet-rms":"rms","vnd.jisp":"jisp","vnd.joost.joda-archive":"joda","vnd.kahootz":["ktz","ktr"],"vnd.kde.karbon":"karbon","vnd.kde.kchart":"chrt","vnd.kde.kformula":"kfo","vnd.kde.kivio":"flw","vnd.kde.kontour":"kon","vnd.kde.kpresenter":["kpr","kpt"],"vnd.kde.kspread":"ksp","vnd.kde.kword":["kwd","kwt"],"vnd.kenameaapp":"htke","vnd.kidspiration":"kia","vnd.kinar":["kne","knp"],"vnd.koan":["skp","skd","skt","skm"],"vnd.kodak-descriptor":"sse","vnd.las.las+xml":"lasxml","vnd.llamagraphics.life-balance.desktop":"lbd","vnd.llamagraphics.life-balance.exchange+xml":"lbe","vnd.lotus-1-2-3":"123","vnd.lotus-approach":"apr","vnd.lotus-freelance":"pre","vnd.lotus-notes":"nsf","vnd.lotus-organizer":"org","vnd.lotus-screencam":"scm","vnd.lotus-wordpro":"lwp","vnd.macports.portpkg":"portpkg","vnd.mcd":"mcd","vnd.medcalcdata":"mc1","vnd.mediastation.cdkey":"cdkey","vnd.mfer":"mwf","vnd.mfmp":"mfm","vnd.micrografx.flo":"flo","vnd.micrografx.igx":"igx","vnd.mif":"mif","vnd.mobius.daf":"daf","vnd.mobius.dis":"dis","vnd.mobius.mbk":"mbk","vnd.mobius.mqy":"mqy","vnd.mobius.msl":"msl","vnd.mobius.plc":"plc","vnd.mobius.txf":"txf","vnd.mophun.application":"mpn","vnd.mophun.certificate":"mpc","vnd.ms-artgalry":"cil","vnd.ms-cab-compressed":"cab","vnd.ms-excel.addin.macroenabled.12":"xlam","vnd.ms-excel.sheet.binary.macroenabled.12":"xlsb","vnd.ms-excel.sheet.macroenabled.12":"xlsm","vnd.ms-excel.template.macroenabled.12":"xltm","vnd.ms-fontobject":"eot","vnd.ms-htmlhelp":"chm","vnd.ms-ims":"ims","vnd.ms-lrm":"lrm","vnd.ms-officetheme":"thmx","vnd.ms-powerpoint.addin.macroenabled.12":"ppam","vnd.ms-powerpoint.presentation.macroenabled.12":"pptm","vnd.ms-powerpoint.slide.macroenabled.12":"sldm","vnd.ms-powerpoint.slideshow.macroenabled.12":"ppsm","vnd.ms-powerpoint.template.macroenabled.12":"potm","vnd.ms-project":["mpp","mpt"],"vnd.ms-word.document.macroenabled.12":"docm","vnd.ms-word.template.macroenabled.12":"dotm","vnd.ms-works":["wps","wks","wcm","wdb"],"vnd.ms-wpl":"wpl","vnd.ms-xpsdocument":"xps","vnd.mseq":"mseq","vnd.musician":"mus","vnd.muvee.style":"msty","vnd.mynfc":"taglet","vnd.neurolanguage.nlu":"nlu","vnd.nitf":["ntf","nitf"],"vnd.noblenet-directory":"nnd","vnd.noblenet-sealer":"nns","vnd.noblenet-web":"nnw","vnd.nokia.n-gage.data":"ngdat","vnd.nokia.n-gage.symbian.install":"n-gage","vnd.nokia.radio-preset":"rpst","vnd.nokia.radio-presets":"rpss","vnd.novadigm.edm":"edm","vnd.novadigm.edx":"edx","vnd.novadigm.ext":"ext","vnd.oasis.opendocument.chart-template":"otc","vnd.oasis.opendocument.formula-template":"odft","vnd.oasis.opendocument.image-template":"oti","vnd.olpc-sugar":"xo","vnd.oma.dd2+xml":"dd2","vnd.openofficeorg.extension":"oxt","vnd.openxmlformats-officedocument.presentationml.slide":"sldx","vnd.osgeo.mapguide.package":"mgp","vnd.osgi.dp":"dp","vnd.osgi.subsystem":"esa","vnd.palm":["pdb","pqa","oprc"],"vnd.pawaafile":"paw","vnd.pg.format":"str","vnd.pg.osasli":"ei6","vnd.picsel":"efif","vnd.pmi.widget":"wg","vnd.pocketlearn":"plf","vnd.powerbuilder6":"pbd","vnd.previewsystems.box":"box","vnd.proteus.magazine":"mgz","vnd.publishare-delta-tree":"qps","vnd.pvi.ptid1":"ptid","vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"vnd.realvnc.bed":"bed","vnd.recordare.musicxml":"mxl","vnd.recordare.musicxml+xml":"musicxml","vnd.rig.cryptonote":"cryptonote","vnd.rn-realmedia":"rm","vnd.rn-realmedia-vbr":"rmvb","vnd.route66.link66+xml":"link66","vnd.sailingtracker.track":"st","vnd.seemail":"see","vnd.sema":"sema","vnd.semd":"semd","vnd.semf":"semf","vnd.shana.informed.formdata":"ifm","vnd.shana.informed.formtemplate":"itp","vnd.shana.informed.interchange":"iif","vnd.shana.informed.package":"ipk","vnd.simtech-mindmapper":["twd","twds"],"vnd.smart.teacher":"teacher","vnd.solent.sdkm+xml":["sdkm","sdkd"],"vnd.spotfire.dxp":"dxp","vnd.spotfire.sfs":"sfs","vnd.stepmania.package":"smzip","vnd.stepmania.stepchart":"sm","vnd.sus-calendar":["sus","susp"],"vnd.svd":"svd","vnd.syncml+xml":"xsm","vnd.syncml.dm+wbxml":"bdm","vnd.syncml.dm+xml":"xdm","vnd.tao.intent-module-archive":"tao","vnd.tcpdump.pcap":["pcap","cap","dmp"],"vnd.tmobile-livetv":"tmo","vnd.trid.tpt":"tpt","vnd.triscape.mxs":"mxs","vnd.trueapp":"tra","vnd.ufdl":["ufd","ufdl"],"vnd.uiq.theme":"utz","vnd.umajin":"umj","vnd.unity":"unityweb","vnd.uoml+xml":"uoml","vnd.vcx":"vcx","vnd.visionary":"vis","vnd.vsf":"vsf","vnd.webturbo":"wtb","vnd.wolfram.player":"nbp","vnd.wqd":"wqd","vnd.wt.stf":"stf","vnd.xara":"xar","vnd.xfdl":"xfdl","vnd.yamaha.hv-dic":"hvd","vnd.yamaha.hv-script":"hvs","vnd.yamaha.hv-voice":"hvp","vnd.yamaha.openscoreformat":"osf","vnd.yamaha.openscoreformat.osfpvg+xml":"osfpvg","vnd.yamaha.smaf-audio":"saf","vnd.yamaha.smaf-phrase":"spf","vnd.yellowriver-custom-menu":"cmp","vnd.zul":["zir","zirz"],"vnd.zzazz.deck+xml":"zaz","voicexml+xml":"vxml",widget:"wgt",winhlp:"hlp","wsdl+xml":"wsdl","wspolicy+xml":"wspolicy","x-ace-compressed":"ace","x-authorware-bin":["aab","x32","u32","vox"],"x-authorware-map":"aam","x-authorware-seg":"aas","x-blorb":["blb","blorb"],"x-bzip":"bz","x-bzip2":["bz2","boz"],"x-cfs-compressed":"cfs","x-chat":"chat","x-conference":"nsc","x-dgc-compressed":"dgc","x-dtbncx+xml":"ncx","x-dtbook+xml":"dtb","x-dtbresource+xml":"res","x-eva":"eva","x-font-bdf":"bdf","x-font-ghostscript":"gsf","x-font-linux-psf":"psf","x-font-pcf":"pcf","x-font-snf":"snf","x-font-ttf":["ttf","ttc"],"x-font-type1":["pfa","pfb","pfm","afm"],"x-freearc":"arc","x-gca-compressed":"gca","x-glulx":"ulx","x-gramps-xml":"gramps","x-install-instructions":"install","x-lzh-compressed":["lzh","lha"],"x-mie":"mie","x-mobipocket-ebook":["prc","mobi"],"x-ms-application":"application","x-ms-shortcut":"lnk","x-ms-xbap":"xbap","x-msbinder":"obd","x-mscardfile":"crd","x-msclip":"clp","application/x-ms-installer":"msi","x-msmediaview":["mvb","m13","m14"],"x-msmetafile":["wmf","wmz","emf","emz"],"x-msmoney":"mny","x-mspublisher":"pub","x-msschedule":"scd","x-msterminal":"trm","x-mswrite":"wri","x-nzb":"nzb","x-pkcs12":["p12","pfx"],"x-pkcs7-certificates":["p7b","spc"],"x-research-info-systems":"ris","x-silverlight-app":"xap","x-sql":"sql","x-stuffitx":"sitx","x-subrip":"srt","x-t3vm-image":"t3","x-tex-tfm":"tfm","x-tgif":"obj","x-xliff+xml":"xlf","x-xz":"xz","x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"xaml+xml":"xaml","xcap-diff+xml":"xdf","xenc+xml":"xenc","xml-dtd":"dtd","xop+xml":"xop","xproc+xml":"xpl","xslt+xml":"xslt","xv+xml":["mxml","xhvml","xvml","xvm"],yang:"yang","yin+xml":"yin",envoy:"evy",fractals:"fif","internet-property-stream":"acx",olescript:"axs","vnd.ms-outlook":"msg","vnd.ms-pkicertstore":"sst","x-compress":"z","x-perfmon":["pma","pmc","pmr","pmw"],"ynd.ms-pkipko":"pko",gzip:["gz","tgz"],"smil+xml":["smi","smil"],"vnd.debian.binary-package":["deb","udeb"],"vnd.hzn-3d-crossword":"x3d","vnd.sqlite3":["db","sqlite","sqlite3","db-wal","sqlite-wal","db-shm","sqlite-shm"],"vnd.wap.sic":"sic","vnd.wap.slc":"slc","x-krita":["kra","krz"],"x-perl":["pm","pl"],yaml:["yaml","yml"]},audio:{amr:"amr","amr-wb":"awb",annodex:"axa",basic:["au","snd"],flac:"flac",midi:["mid","midi","kar","rmi"],mpeg:["mpga","mpega","mp3","m4a","mp2a","m2a","m3a"],mpegurl:"m3u",ogg:["oga","ogg","spx"],"prs.sid":"sid","x-aiff":"aifc","x-gsm":"gsm","x-ms-wma":"wma","x-ms-wax":"wax","x-pn-realaudio":"ram","x-realaudio":"ra","x-sd2":"sd2",adpcm:"adp",mp4:"mp4a",s3m:"s3m",silk:"sil","vnd.dece.audio":["uva","uvva"],"vnd.digital-winds":"eol","vnd.dra":"dra","vnd.dts":"dts","vnd.dts.hd":"dtshd","vnd.lucent.voice":"lvp","vnd.ms-playready.media.pya":"pya","vnd.nuera.ecelp4800":"ecelp4800","vnd.nuera.ecelp7470":"ecelp7470","vnd.nuera.ecelp9600":"ecelp9600","vnd.rip":"rip",webm:"weba","x-caf":"caf","x-matroska":"mka","x-pn-realaudio-plugin":"rmp",xm:"xm",aac:"aac",aiff:["aiff","aif","aff"],opus:"opus",wav:"wav"},chemical:{"x-alchemy":"alc","x-cache":["cac","cache"],"x-cache-csf":"csf","x-cactvs-binary":["cbin","cascii","ctab"],"x-cdx":"cdx","x-chem3d":"c3d","x-cif":"cif","x-cmdf":"cmdf","x-cml":"cml","x-compass":"cpa","x-crossfire":"bsd","x-csml":["csml","csm"],"x-ctx":"ctx","x-cxf":["cxf","cef"],"x-embl-dl-nucleotide":["emb","embl"],"x-gamess-input":["inp","gam","gamin"],"x-gaussian-checkpoint":["fch","fchk"],"x-gaussian-cube":"cub","x-gaussian-input":["gau","gjc","gjf"],"x-gaussian-log":"gal","x-gcg8-sequence":"gcg","x-genbank":"gen","x-hin":"hin","x-isostar":["istr","ist"],"x-jcamp-dx":["jdx","dx"],"x-kinemage":"kin","x-macmolecule":"mcm","x-macromodel-input":"mmod","x-mdl-molfile":"mol","x-mdl-rdfile":"rd","x-mdl-rxnfile":"rxn","x-mdl-sdfile":"sd","x-mdl-tgf":"tgf","x-mmcif":"mcif","x-mol2":"mol2","x-molconn-Z":"b","x-mopac-graph":"gpt","x-mopac-input":["mop","mopcrt","zmt"],"x-mopac-out":"moo","x-ncbi-asn1":"asn","x-ncbi-asn1-ascii":["prt","ent"],"x-ncbi-asn1-binary":"val","x-rosdal":"ros","x-swissprot":"sw","x-vamas-iso14976":"vms","x-vmd":"vmd","x-xtel":"xtel","x-xyz":"xyz"},font:{otf:"otf",woff:"woff",woff2:"woff2"},image:{gif:"gif",ief:"ief",jpeg:["jpeg","jpg","jpe","jfif","jfif-tbnl","jif"],pcx:"pcx",png:"png","svg+xml":["svg","svgz"],tiff:["tiff","tif"],"vnd.djvu":["djvu","djv"],"vnd.wap.wbmp":"wbmp","x-canon-cr2":"cr2","x-canon-crw":"crw","x-cmu-raster":"ras","x-coreldraw":"cdr","x-coreldrawpattern":"pat","x-coreldrawtemplate":"cdt","x-corelphotopaint":"cpt","x-epson-erf":"erf","x-icon":"ico","x-jg":"art","x-jng":"jng","x-nikon-nef":"nef","x-olympus-orf":"orf","x-portable-anymap":"pnm","x-portable-bitmap":"pbm","x-portable-graymap":"pgm","x-portable-pixmap":"ppm","x-rgb":"rgb","x-xbitmap":"xbm","x-xpixmap":"xpm","x-xwindowdump":"xwd",bmp:"bmp",cgm:"cgm",g3fax:"g3",ktx:"ktx","prs.btif":"btif",sgi:"sgi","vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"vnd.dwg":"dwg","vnd.dxf":"dxf","vnd.fastbidsheet":"fbs","vnd.fpx":"fpx","vnd.fst":"fst","vnd.fujixerox.edmics-mmr":"mmr","vnd.fujixerox.edmics-rlc":"rlc","vnd.ms-modi":"mdi","vnd.ms-photo":"wdp","vnd.net-fpx":"npx","vnd.xiff":"xif",webp:"webp","x-3ds":"3ds","x-cmx":"cmx","x-freehand":["fh","fhc","fh4","fh5","fh7"],"x-pict":["pic","pct"],"x-tga":"tga","cis-cod":"cod",avif:"avifs",heic:["heif","heic"],pjpeg:["pjpg"],"vnd.adobe.photoshop":"psd","x-adobe-dng":"dng","x-fuji-raf":"raf","x-icns":"icns","x-kodak-dcr":"dcr","x-kodak-k25":"k25","x-kodak-kdc":"kdc","x-minolta-mrw":"mrw","x-panasonic-raw":["raw","rw2","rwl"],"x-pentax-pef":["pef","ptx"],"x-sigma-x3f":"x3f","x-sony-arw":"arw","x-sony-sr2":"sr2","x-sony-srf":"srf"},message:{rfc822:["eml","mime","mht","mhtml","nws"]},model:{iges:["igs","iges"],mesh:["msh","mesh","silo"],vrml:["wrl","vrml"],"x3d+vrml":["x3dv","x3dvz"],"x3d+xml":"x3dz","x3d+binary":["x3db","x3dbz"],"vnd.collada+xml":"dae","vnd.dwf":"dwf","vnd.gdl":"gdl","vnd.gtw":"gtw","vnd.mts":"mts","vnd.usdz+zip":"usdz","vnd.vtu":"vtu"},text:{"cache-manifest":["manifest","appcache"],calendar:["ics","icz","ifb"],css:"css",csv:"csv",h323:"323",html:["html","htm","shtml","stm"],iuls:"uls",plain:["txt","text","brf","conf","def","list","log","in","bas","diff","ksh"],richtext:"rtx",scriptlet:["sct","wsc"],texmacs:"tm","tab-separated-values":"tsv","vnd.sun.j2me.app-descriptor":"jad","vnd.wap.wml":"wml","vnd.wap.wmlscript":"wmls","x-bibtex":"bib","x-boo":"boo","x-c++hdr":["h++","hpp","hxx","hh"],"x-c++src":["c++","cpp","cxx","cc"],"x-component":"htc","x-dsrc":"d","x-diff":"patch","x-haskell":"hs","x-java":"java","x-literate-haskell":"lhs","x-moc":"moc","x-pascal":["p","pas","pp","inc"],"x-pcs-gcd":"gcd","x-python":"py","x-scala":"scala","x-setext":"etx","x-tcl":["tcl","tk"],"x-tex":["tex","ltx","sty","cls"],"x-vcalendar":"vcs","x-vcard":"vcf",n3:"n3","prs.lines.tag":"dsc",sgml:["sgml","sgm"],troff:["t","tr","roff","man","me","ms"],turtle:"ttl","uri-list":["uri","uris","urls"],vcard:"vcard","vnd.curl":"curl","vnd.curl.dcurl":"dcurl","vnd.curl.scurl":"scurl","vnd.curl.mcurl":"mcurl","vnd.dvb.subtitle":"sub","vnd.fly":"fly","vnd.fmi.flexstor":"flx","vnd.graphviz":"gv","vnd.in3d.3dml":"3dml","vnd.in3d.spot":"spot","x-asm":["s","asm"],"x-c":["c","h","dic"],"x-fortran":["f","for","f77","f90"],"x-opml":"opml","x-nfo":"nfo","x-sfv":"sfv","x-uuencode":"uu",webviewhtml:"htt",javascript:"js",json:"json",markdown:["md","markdown","mdown","markdn"],"vnd.wap.si":"si","vnd.wap.sl":"sl"},video:{avif:"avif","3gpp":"3gp",annodex:"axv",dl:"dl",dv:["dif","dv"],fli:"fli",gl:"gl",mpeg:["mpeg","mpg","mpe","m1v","m2v","mp2","mpa","mpv2"],mp4:["mp4","mp4v","mpg4"],quicktime:["qt","mov"],ogg:"ogv","vnd.mpegurl":["mxu","m4u"],"x-flv":"flv","x-la-asf":["lsf","lsx"],"x-mng":"mng","x-ms-asf":["asf","asx","asr"],"x-ms-wm":"wm","x-ms-wmv":"wmv","x-ms-wmx":"wmx","x-ms-wvx":"wvx","x-msvideo":"avi","x-sgi-movie":"movie","x-matroska":["mpv","mkv","mk3d","mks"],"3gpp2":"3g2",h261:"h261",h263:"h263",h264:"h264",jpeg:"jpgv",jpm:["jpm","jpgm"],mj2:["mj2","mjp2"],"vnd.dece.hd":["uvh","uvvh"],"vnd.dece.mobile":["uvm","uvvm"],"vnd.dece.pd":["uvp","uvvp"],"vnd.dece.sd":["uvs","uvvs"],"vnd.dece.video":["uvv","uvvv"],"vnd.dvb.file":"dvb","vnd.fvt":"fvt","vnd.ms-playready.media.pyv":"pyv","vnd.uvvu.mp4":["uvu","uvvu"],"vnd.vivo":"viv",webm:"webm","x-f4v":"f4v","x-m4v":"m4v","x-ms-vob":"vob","x-smv":"smv",mp2t:"ts"},"x-conference":{"x-cooltalk":"ice"},"x-world":{"x-vrml":["vrm","flr","wrz","xaf","xof"]}};(()=>{const e={};for(const t of Object.keys(Ri))for(const r of Object.keys(Ri[t])){const i=Ri[t][r];if(typeof i=="string")e[i]=t+"/"+r;else for(let a=0;a<i.length;a++)e[i[a]]=t+"/"+r}return e})();const Rp=[];for(let e=0;e<256;e++){let t=e;for(let r=0;r<8;r++)t&1?t=t>>>1^3988292384:t=t>>>1;Rp[e]=t}class On{constructor(t){this.crc=t||-1}append(t){let r=this.crc|0;for(let i=0,a=t.length|0;i<a;i++)r=r>>>8^Rp[(r^t[i])&255];this.crc=r}get(){return~this.crc}}class Ip extends TransformStream{constructor(){let t;const r=new On;super({transform(i,a){r.append(i),a.enqueue(i)},flush(){const i=new Uint8Array(4);new DataView(i.buffer).setUint32(0,r.get()),t.value=i}}),t=this}}function M0(e){if(typeof TextEncoder==yr){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let r=0;r<t.length;r++)t[r]=e.charCodeAt(r);return t}else return new TextEncoder().encode(e)}const nt={concat(e,t){if(e.length===0||t.length===0)return e.concat(t);const r=e[e.length-1],i=nt.getPartial(r);return i===32?e.concat(t):nt._shiftRight(t,i,r|0,e.slice(0,e.length-1))},bitLength(e){const t=e.length;if(t===0)return 0;const r=e[t-1];return(t-1)*32+nt.getPartial(r)},clamp(e,t){if(e.length*32<t)return e;e=e.slice(0,Math.ceil(t/32));const r=e.length;return t=t&31,r>0&&t&&(e[r-1]=nt.partial(t,e[r-1]&2147483648>>t-1,1)),e},partial(e,t,r){return e===32?t:(r?t|0:t<<32-e)+e*1099511627776},getPartial(e){return Math.round(e/1099511627776)||32},_shiftRight(e,t,r,i){for(i===void 0&&(i=[]);t>=32;t-=32)i.push(r),r=0;if(t===0)return i.concat(e);for(let s=0;s<e.length;s++)i.push(r|e[s]>>>t),r=e[s]<<32-t;const a=e.length?e[e.length-1]:0,n=nt.getPartial(a);return i.push(nt.partial(t+n&31,t+n>32?r:i.pop(),1)),i}},Ln={bytes:{fromBits(e){const r=nt.bitLength(e)/8,i=new Uint8Array(r);let a;for(let n=0;n<r;n++)n&3||(a=e[n/4]),i[n]=a>>>24,a<<=8;return i},toBits(e){const t=[];let r,i=0;for(r=0;r<e.length;r++)i=i<<8|e[r],(r&3)===3&&(t.push(i),i=0);return r&3&&t.push(nt.partial(8*(r&3),i)),t}}},Dp={};Dp.sha1=class{constructor(e){const t=this;t.blockSize=512,t._init=[1732584193,4023233417,2562383102,271733878,3285377520],t._key=[1518500249,1859775393,2400959708,3395469782],e?(t._h=e._h.slice(0),t._buffer=e._buffer.slice(0),t._length=e._length):t.reset()}reset(){const e=this;return e._h=e._init.slice(0),e._buffer=[],e._length=0,e}update(e){const t=this;typeof e=="string"&&(e=Ln.utf8String.toBits(e));const r=t._buffer=nt.concat(t._buffer,e),i=t._length,a=t._length=i+nt.bitLength(e);if(a>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const n=new Uint32Array(r);let s=0;for(let o=t.blockSize+i-(t.blockSize+i&t.blockSize-1);o<=a;o+=t.blockSize)t._block(n.subarray(16*s,16*(s+1))),s+=1;return r.splice(0,16*s),t}finalize(){const e=this;let t=e._buffer;const r=e._h;t=nt.concat(t,[nt.partial(1,1)]);for(let i=t.length+2;i&15;i++)t.push(0);for(t.push(Math.floor(e._length/4294967296)),t.push(e._length|0);t.length;)e._block(t.splice(0,16));return e.reset(),r}_f(e,t,r,i){if(e<=19)return t&r|~t&i;if(e<=39)return t^r^i;if(e<=59)return t&r|t&i|r&i;if(e<=79)return t^r^i}_S(e,t){return t<<e|t>>>32-e}_block(e){const t=this,r=t._h,i=Array(80);for(let p=0;p<16;p++)i[p]=e[p];let a=r[0],n=r[1],s=r[2],o=r[3],f=r[4];for(let p=0;p<=79;p++){p>=16&&(i[p]=t._S(1,i[p-3]^i[p-8]^i[p-14]^i[p-16]));const c=t._S(5,a)+t._f(p,n,s,o)+f+i[p]+t._key[Math.floor(p/20)]|0;f=o,o=s,s=t._S(30,n),n=a,a=c}r[0]=r[0]+a|0,r[1]=r[1]+n|0,r[2]=r[2]+s|0,r[3]=r[3]+o|0,r[4]=r[4]+f|0}};const Hp={};Hp.aes=class{constructor(e){const t=this;t._tables=[[[],[],[],[],[]],[[],[],[],[],[]]],t._tables[0][0][0]||t._precompute();const r=t._tables[0][4],i=t._tables[1],a=e.length;let n,s,o,f=1;if(a!==4&&a!==6&&a!==8)throw new Error("invalid aes key size");for(t._key=[s=e.slice(0),o=[]],n=a;n<4*a+28;n++){let p=s[n-1];(n%a===0||a===8&&n%a===4)&&(p=r[p>>>24]<<24^r[p>>16&255]<<16^r[p>>8&255]<<8^r[p&255],n%a===0&&(p=p<<8^p>>>24^f<<24,f=f<<1^(f>>7)*283)),s[n]=s[n-a]^p}for(let p=0;n;p++,n--){const c=s[p&3?n:n-4];n<=4||p<4?o[p]=c:o[p]=i[0][r[c>>>24]]^i[1][r[c>>16&255]]^i[2][r[c>>8&255]]^i[3][r[c&255]]}}encrypt(e){return this._crypt(e,0)}decrypt(e){return this._crypt(e,1)}_precompute(){const e=this._tables[0],t=this._tables[1],r=e[4],i=t[4],a=[],n=[];let s,o,f,p;for(let c=0;c<256;c++)n[(a[c]=c<<1^(c>>7)*283)^c]=c;for(let c=s=0;!r[c];c^=o||1,s=n[s]||1){let m=s^s<<1^s<<2^s<<3^s<<4;m=m>>8^m&255^99,r[c]=m,i[m]=c,p=a[f=a[o=a[c]]];let h=p*16843009^f*65537^o*257^c*16843008,_=a[m]*257^m*16843008;for(let L=0;L<4;L++)e[L][c]=_=_<<24^_>>>8,t[L][m]=h=h<<24^h>>>8}for(let c=0;c<5;c++)e[c]=e[c].slice(0),t[c]=t[c].slice(0)}_crypt(e,t){if(e.length!==4)throw new Error("invalid aes block size");const r=this._key[t],i=r.length/4-2,a=[0,0,0,0],n=this._tables[t],s=n[0],o=n[1],f=n[2],p=n[3],c=n[4];let m=e[0]^r[0],h=e[t?3:1]^r[1],_=e[2]^r[2],L=e[t?1:3]^r[3],y=4,g,b,R;for(let O=0;O<i;O++)g=s[m>>>24]^o[h>>16&255]^f[_>>8&255]^p[L&255]^r[y],b=s[h>>>24]^o[_>>16&255]^f[L>>8&255]^p[m&255]^r[y+1],R=s[_>>>24]^o[L>>16&255]^f[m>>8&255]^p[h&255]^r[y+2],L=s[L>>>24]^o[m>>16&255]^f[h>>8&255]^p[_&255]^r[y+3],y+=4,m=g,h=b,_=R;for(let O=0;O<4;O++)a[t?3&-O:O]=c[m>>>24]<<24^c[h>>16&255]<<16^c[_>>8&255]<<8^c[L&255]^r[y++],g=m,m=h,h=_,_=L,L=g;return a}};const q0={getRandomValues(e){const t=new Uint32Array(e.buffer),r=i=>{let a=987654321;const n=4294967295;return function(){return a=36969*(a&65535)+(a>>16)&n,i=18e3*(i&65535)+(i>>16)&n,(((a<<16)+i&n)/4294967296+.5)*(Math.random()>.5?1:-1)}};for(let i=0,a;i<e.length;i+=4){const n=r((a||Math.random())*4294967296);a=n()*987654071,t[i/4]=n()*4294967296|0}return e}},$p={};$p.ctrGladman=class{constructor(e,t){this._prf=e,this._initIv=t,this._iv=t}reset(){this._iv=this._initIv}update(e){return this.calculate(this._prf,e,this._iv)}incWord(e){if((e>>24&255)===255){let t=e>>16&255,r=e>>8&255,i=e&255;t===255?(t=0,r===255?(r=0,i===255?i=0:++i):++r):++t,e=0,e+=t<<16,e+=r<<8,e+=i}else e+=1<<24;return e}incCounter(e){(e[0]=this.incWord(e[0]))===0&&(e[1]=this.incWord(e[1]))}calculate(e,t,r){let i;if(!(i=t.length))return[];const a=nt.bitLength(t);for(let n=0;n<i;n+=4){this.incCounter(r);const s=e.encrypt(r);t[n]^=s[0],t[n+1]^=s[1],t[n+2]^=s[2],t[n+3]^=s[3]}return nt.clamp(t,a)}};const Rr={importKey(e){return new Rr.hmacSha1(Ln.bytes.toBits(e))},pbkdf2(e,t,r,i){if(r=r||1e4,i<0||r<0)throw new Error("invalid params to pbkdf2");const a=(i>>5)+1<<2;let n,s,o,f,p;const c=new ArrayBuffer(a),m=new DataView(c);let h=0;const _=nt;for(t=Ln.bytes.toBits(t),p=1;h<(a||1);p++){for(n=s=e.encrypt(_.concat(t,[p])),o=1;o<r;o++)for(s=e.encrypt(s),f=0;f<s.length;f++)n[f]^=s[f];for(o=0;h<(a||1)&&o<n.length;o++)m.setInt32(h,n[o]),h+=4}return c.slice(0,i/8)}};Rr.hmacSha1=class{constructor(e){const t=this,r=t._hash=Dp.sha1,i=[[],[]];t._baseHash=[new r,new r];const a=t._baseHash[0].blockSize/32;e.length>a&&(e=new r().update(e).finalize());for(let n=0;n<a;n++)i[0][n]=e[n]^909522486,i[1][n]=e[n]^1549556828;t._baseHash[0].update(i[0]),t._baseHash[1].update(i[1]),t._resultHash=new r(t._baseHash[0])}reset(){const e=this;e._resultHash=new e._hash(e._baseHash[0]),e._updated=!1}update(e){const t=this;t._updated=!0,t._resultHash.update(e)}digest(){const e=this,t=e._resultHash.finalize(),r=new e._hash(e._baseHash[1]).update(t).finalize();return e.reset(),r}encrypt(e){if(this._updated)throw new Error("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}};const K0=typeof crypto!=yr&&typeof crypto.getRandomValues==Ns,Fp="Invalid password",Bp="Invalid signature",Aa="zipjs-abort-check-password";function Np(e){return K0?crypto.getRandomValues(e):q0.getRandomValues(e)}const Kr=16,z0="raw",jp={name:"PBKDF2"},V0={name:"HMAC"},G0="SHA-1",Z0=Object.assign({hash:V0},jp),na=Object.assign({iterations:1e3,hash:{name:G0}},jp),Y0=["deriveBits"],Os=[8,12,16],cs=[16,24,32],lr=10,X0=[0,0,0,0],Vn=typeof crypto!=yr,js=Vn&&crypto.subtle,Up=Vn&&typeof js!=yr,Mt=Ln.bytes,J0=Hp.aes,Q0=$p.ctrGladman,ey=Rr.hmacSha1;let Ll=Vn&&Up&&typeof js.importKey==Ns,Rl=Vn&&Up&&typeof js.deriveBits==Ns;class ty extends TransformStream{constructor({password:t,rawPassword:r,signed:i,encryptionStrength:a,checkPasswordOnly:n}){super({start(){Object.assign(this,{ready:new Promise(s=>this.resolveReady=s),password:qp(t,r),signed:i,strength:a-1,pending:new Uint8Array})},async transform(s,o){const f=this,{password:p,strength:c,resolveReady:m,ready:h}=f;p?(await sy(f,c,p,kt(s,0,Os[c]+2)),s=kt(s,Os[c]+2),n?o.error(new Error(Aa)):m()):await h;const _=new Uint8Array(s.length-lr-(s.length-lr)%Kr);o.enqueue(Wp(f,s,_,0,lr,!0))},async flush(s){const{signed:o,ctr:f,hmac:p,pending:c,ready:m}=this;if(p&&f){await m;const h=kt(c,0,c.length-lr),_=kt(c,c.length-lr);let L=new Uint8Array;if(h.length){const y=Rs(Mt,h);p.update(y);const g=f.update(y);L=Ls(Mt,g)}if(o){const y=kt(Ls(Mt,p.digest()),0,lr);for(let g=0;g<lr;g++)if(y[g]!=_[g])throw new Error(Bp)}s.enqueue(L)}}})}}class ry extends TransformStream{constructor({password:t,rawPassword:r,encryptionStrength:i}){let a;super({start(){Object.assign(this,{ready:new Promise(n=>this.resolveReady=n),password:qp(t,r),strength:i-1,pending:new Uint8Array})},async transform(n,s){const o=this,{password:f,strength:p,resolveReady:c,ready:m}=o;let h=new Uint8Array;f?(h=await ny(o,p,f),c()):await m;const _=new Uint8Array(h.length+n.length-n.length%Kr);_.set(h,0),s.enqueue(Wp(o,n,_,h.length,0))},async flush(n){const{ctr:s,hmac:o,pending:f,ready:p}=this;if(o&&s){await p;let c=new Uint8Array;if(f.length){const m=s.update(Rs(Mt,f));o.update(m),c=Ls(Mt,m)}a.signature=Ls(Mt,o.digest()).slice(0,lr),n.enqueue(Ta(c,a.signature))}}}),a=this}}function Wp(e,t,r,i,a,n){const{ctr:s,hmac:o,pending:f}=e,p=t.length-a;f.length&&(t=Ta(f,t),r=oy(r,p-p%Kr));let c;for(c=0;c<=p-Kr;c+=Kr){const m=Rs(Mt,kt(t,c,c+Kr));n&&o.update(m);const h=s.update(m);n||o.update(h),r.set(Ls(Mt,h),c+i)}return e.pending=kt(t,c),r}async function sy(e,t,r,i){const a=await Mp(e,t,r,kt(i,0,Os[t])),n=kt(i,Os[t]);if(a[0]!=n[0]||a[1]!=n[1])throw new Error(Fp)}async function ny(e,t,r){const i=Np(new Uint8Array(Os[t])),a=await Mp(e,t,r,i);return Ta(i,a)}async function Mp(e,t,r,i){e.password=null;const a=await iy(z0,r,Z0,!1,Y0),n=await ay(Object.assign({salt:i},na),a,8*(cs[t]*2+2)),s=new Uint8Array(n),o=Rs(Mt,kt(s,0,cs[t])),f=Rs(Mt,kt(s,cs[t],cs[t]*2)),p=kt(s,cs[t]*2);return Object.assign(e,{keys:{key:o,authentication:f,passwordVerification:p},ctr:new Q0(new J0(o),Array.from(X0)),hmac:new ey(f)}),p}async function iy(e,t,r,i,a){if(Ll)try{return await js.importKey(e,t,r,i,a)}catch{return Ll=!1,Rr.importKey(t)}else return Rr.importKey(t)}async function ay(e,t,r){if(Rl)try{return await js.deriveBits(e,t,r)}catch{return Rl=!1,Rr.pbkdf2(t,e.salt,na.iterations,r)}else return Rr.pbkdf2(t,e.salt,na.iterations,r)}function qp(e,t){return t===it?M0(e):t}function Ta(e,t){let r=e;return e.length+t.length&&(r=new Uint8Array(e.length+t.length),r.set(e,0),r.set(t,e.length)),r}function oy(e,t){if(t&&t>e.length){const r=e;e=new Uint8Array(t),e.set(r,0)}return e}function kt(e,t,r){return e.subarray(t,r)}function Ls(e,t){return e.fromBits(t)}function Rs(e,t){return e.toBits(t)}const Yr=12;class ly extends TransformStream{constructor({password:t,passwordVerification:r,checkPasswordOnly:i}){super({start(){Object.assign(this,{password:t,passwordVerification:r}),Kp(this,t)},transform(a,n){const s=this;if(s.password){const o=Il(s,a.subarray(0,Yr));if(s.password=null,o[Yr-1]!=s.passwordVerification)throw new Error(Fp);a=a.subarray(Yr)}i?n.error(new Error(Aa)):n.enqueue(Il(s,a))}})}}class fy extends TransformStream{constructor({password:t,passwordVerification:r}){super({start(){Object.assign(this,{password:t,passwordVerification:r}),Kp(this,t)},transform(i,a){const n=this;let s,o;if(n.password){n.password=null;const f=Np(new Uint8Array(Yr));f[Yr-1]=n.passwordVerification,s=new Uint8Array(i.length+f.length),s.set(Dl(n,f),0),o=Yr}else s=new Uint8Array(i.length),o=0;s.set(Dl(n,i),o),a.enqueue(s)}})}}function Il(e,t){const r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=zp(e)^t[i],Ca(e,r[i]);return r}function Dl(e,t){const r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=zp(e)^t[i],Ca(e,t[i]);return r}function Kp(e,t){const r=[305419896,591751049,878082192];Object.assign(e,{keys:r,crcKey0:new On(r[0]),crcKey2:new On(r[2])});for(let i=0;i<t.length;i++)Ca(e,t.charCodeAt(i))}function Ca(e,t){let[r,i,a]=e.keys;e.crcKey0.append([t]),r=~e.crcKey0.get(),i=Hl(Math.imul(Hl(i+Vp(r)),134775813)+1),e.crcKey2.append([i>>>24]),a=~e.crcKey2.get(),e.keys=[r,i,a]}function zp(e){const t=e.keys[2]|2;return Vp(Math.imul(t,t^1)>>>8)}function Vp(e){return e&255}function Hl(e){return e&4294967295}const $l="deflate-raw";class py extends TransformStream{constructor(t,{chunkSize:r,CompressionStream:i,CompressionStreamNative:a}){super({});const{compressed:n,encrypted:s,useCompressionStream:o,zipCrypto:f,signed:p,level:c}=t,m=this;let h,_,L=Gp(super.readable);(!s||f)&&p&&(h=new Ip,L=qt(L,h)),n&&(L=Yp(L,o,{level:c,chunkSize:r},a,i)),s&&(f?L=qt(L,new fy(t)):(_=new ry(t),L=qt(L,_))),Zp(m,L,()=>{let y;s&&!f&&(y=_.signature),(!s||f)&&p&&(y=new DataView(h.value.buffer).getUint32(0)),m.signature=y})}}class cy extends TransformStream{constructor(t,{chunkSize:r,DecompressionStream:i,DecompressionStreamNative:a}){super({});const{zipCrypto:n,encrypted:s,signed:o,signature:f,compressed:p,useCompressionStream:c}=t;let m,h,_=Gp(super.readable);s&&(n?_=qt(_,new ly(t)):(h=new ty(t),_=qt(_,h))),p&&(_=Yp(_,c,{chunkSize:r},a,i)),(!s||n)&&o&&(m=new Ip,_=qt(_,m)),Zp(this,_,()=>{if((!s||n)&&o){const L=new DataView(m.value.buffer);if(f!=L.getUint32(0,!1))throw new Error(Bp)}})}}function Gp(e){return qt(e,new TransformStream({transform(t,r){t&&t.length&&r.enqueue(t)}}))}function Zp(e,t,r){t=qt(t,new TransformStream({flush:r})),Object.defineProperty(e,"readable",{get(){return t}})}function Yp(e,t,r,i,a){try{const n=t&&i?i:a;e=qt(e,new n($l,r))}catch{if(t)try{e=qt(e,new a($l,r))}catch{return e}else return e}return e}function qt(e,t){return e.pipeThrough(t)}const uy="message",dy="start",hy="pull",Fl="data",my="ack",Bl="close",yy="deflate",Xp="inflate";class _y extends TransformStream{constructor(t,r){super({});const i=this,{codecType:a}=t;let n;a.startsWith(yy)?n=py:a.startsWith(Xp)&&(n=cy);let s=0,o=0;const f=new n(t,r),p=super.readable,c=new TransformStream({transform(h,_){h&&h.length&&(o+=h.length,_.enqueue(h))},flush(){Object.assign(i,{inputSize:o})}}),m=new TransformStream({transform(h,_){h&&h.length&&(s+=h.length,_.enqueue(h))},flush(){const{signature:h}=f;Object.assign(i,{signature:h,outputSize:s,inputSize:o})}});Object.defineProperty(i,"readable",{get(){return p.pipeThrough(c).pipeThrough(f).pipeThrough(m)}})}}class gy extends TransformStream{constructor(t){let r;super({transform:i,flush(a){r&&r.length&&a.enqueue(r)}});function i(a,n){if(r){const s=new Uint8Array(r.length+a.length);s.set(r),s.set(a,r.length),a=s,r=null}a.length>t?(n.enqueue(a.slice(0,t)),i(a.slice(t),n)):r=a}}}let Jp=typeof Worker!=yr;class Ii{constructor(t,{readable:r,writable:i},{options:a,config:n,streamOptions:s,useWebWorkers:o,transferStreams:f,scripts:p},c){const{signal:m}=s;return Object.assign(t,{busy:!0,readable:r.pipeThrough(new gy(n.chunkSize)).pipeThrough(new wy(r,s),{signal:m}),writable:i,options:Object.assign({},a),scripts:p,transferStreams:f,terminate(){return new Promise(h=>{const{worker:_,busy:L}=t;_?(L?t.resolveTerminated=h:(_.terminate(),h()),t.interface=null):h()})},onTaskFinished(){const{resolveTerminated:h}=t;h&&(t.resolveTerminated=null,t.terminated=!0,t.worker.terminate(),h()),t.busy=!1,c(t)}}),(o&&Jp?by:Qp)(t,n)}}class wy extends TransformStream{constructor(t,{onstart:r,onprogress:i,size:a,onend:n}){let s=0;super({async start(){r&&await Di(r,a)},async transform(o,f){s+=o.length,i&&await Di(i,s,a),f.enqueue(o)},async flush(){t.size=s,n&&await Di(n,s)}})}}async function Di(e,...t){try{await e(...t)}catch{}}function Qp(e,t){return{run:()=>vy(e,t)}}function by(e,t){const{baseURL:r,chunkSize:i}=t;if(!e.interface){let a;try{a=Sy(e.scripts[0],r,e)}catch{return Jp=!1,Qp(e,t)}Object.assign(e,{worker:a,interface:{run:()=>xy(e,{chunkSize:i})}})}return e.interface}async function vy({options:e,readable:t,writable:r,onTaskFinished:i},a){try{const n=new _y(e,a);await t.pipeThrough(n).pipeTo(r,{preventClose:!0,preventAbort:!0});const{signature:s,inputSize:o,outputSize:f}=n;return{signature:s,inputSize:o,outputSize:f}}finally{i()}}async function xy(e,t){let r,i;const a=new Promise((h,_)=>{r=h,i=_});Object.assign(e,{reader:null,writer:null,resolveResult:r,rejectResult:i,result:a});const{readable:n,options:s,scripts:o}=e,{writable:f,closed:p}=ky(e.writable),c=yn({type:dy,scripts:o.slice(1),options:s,config:t,readable:n,writable:f},e);c||Object.assign(e,{reader:n.getReader(),writer:f.getWriter()});const m=await a;return c||await f.getWriter().close(),await p,m}function ky(e){let t;const r=new Promise(a=>t=a);return{writable:new WritableStream({async write(a){const n=e.getWriter();await n.ready,await n.write(a),n.releaseLock()},close(){t()},abort(a){return e.getWriter().abort(a)}}),closed:r}}let Nl=!0,jl=!0;function Sy(e,t,r){const i={type:"module"};let a,n;typeof e==Ns&&(e=e());try{a=new URL(e,t)}catch{a=e}if(Nl)try{n=new Worker(a)}catch{Nl=!1,n=new Worker(a,i)}else n=new Worker(a,i);return n.addEventListener(uy,s=>Ey(s,r)),n}function yn(e,{worker:t,writer:r,onTaskFinished:i,transferStreams:a}){try{const{value:n,readable:s,writable:o}=e,f=[];if(n&&(n.byteLength<n.buffer.byteLength?e.value=n.buffer.slice(0,n.byteLength):e.value=n.buffer,f.push(e.value)),a&&jl?(s&&f.push(s),o&&f.push(o)):e.readable=e.writable=null,f.length)try{return t.postMessage(e,f),!0}catch{jl=!1,e.readable=e.writable=null,t.postMessage(e)}else t.postMessage(e)}catch(n){throw r&&r.releaseLock(),i(),n}}async function Ey({data:e},t){const{type:r,value:i,messageId:a,result:n,error:s}=e,{reader:o,writer:f,resolveResult:p,rejectResult:c,onTaskFinished:m}=t;try{if(s){const{message:_,stack:L,code:y,name:g}=s,b=new Error(_);Object.assign(b,{stack:L,code:y,name:g}),h(b)}else{if(r==hy){const{value:_,done:L}=await o.read();yn({type:Fl,value:_,done:L,messageId:a},t)}r==Fl&&(await f.ready,await f.write(new Uint8Array(i)),yn({type:my,messageId:a},t)),r==Bl&&h(null,n)}}catch(_){yn({type:Bl,messageId:a},t),h(_)}function h(_,L){_?c(_):p(L),f&&f.releaseLock(),m()}}let vr=[];const Hi=[];let Ul=0;async function Py(e,t){const{options:r,config:i}=t,{transferStreams:a,useWebWorkers:n,useCompressionStream:s,codecType:o,compressed:f,signed:p,encrypted:c}=r,{workerScripts:m,maxWorkers:h}=i;t.transferStreams=a||a===it;const _=!f&&!p&&!c&&!t.transferStreams;return t.useWebWorkers=!_&&(n||n===it&&i.useWebWorkers),t.scripts=t.useWebWorkers&&m?m[o]:[],r.useCompressionStream=s||s===it&&i.useCompressionStream,(await L()).run();async function L(){const g=vr.find(b=>!b.busy);if(g)return Wl(g),new Ii(g,e,t,y);if(vr.length<h){const b={indexWorker:Ul};return Ul++,vr.push(b),new Ii(b,e,t,y)}else return new Promise(b=>Hi.push({resolve:b,stream:e,workerOptions:t}))}function y(g){if(Hi.length){const[{resolve:b,stream:R,workerOptions:O}]=Hi.splice(0,1);b(new Ii(g,R,O,y))}else g.worker?(Wl(g),Ay(g,t)):vr=vr.filter(b=>b!=g)}}function Ay(e,t){const{config:r}=t,{terminateWorkerTimeout:i}=r;Number.isFinite(i)&&i>=0&&(e.terminated?e.terminated=!1:e.terminateTimeout=setTimeout(async()=>{vr=vr.filter(a=>a!=e);try{await e.terminate()}catch{}},i))}function Wl(e){const{terminateTimeout:t}=e;t&&(clearTimeout(t),e.terminateTimeout=null)}function Ty(e,t={}){const r=`const{Array:e,Object:t,Number:n,Math:r,Error:s,Uint8Array:i,Uint16Array:o,Uint32Array:c,Int32Array:f,Map:a,DataView:l,Promise:u,TextEncoder:w,crypto:h,postMessage:d,TransformStream:p,ReadableStream:y,WritableStream:m,CompressionStream:b,DecompressionStream:g}=self,k=void 0,v="undefined",S="function";class z{constructor(e){return class extends p{constructor(t,n){const r=new e(n);super({transform(e,t){t.enqueue(r.append(e))},flush(e){const t=r.flush();t&&e.enqueue(t)}})}}}}const C=[];for(let e=0;256>e;e++){let t=e;for(let e=0;8>e;e++)1&t?t=t>>>1^3988292384:t>>>=1;C[e]=t}class x{constructor(e){this.t=e||-1}append(e){let t=0|this.t;for(let n=0,r=0|e.length;r>n;n++)t=t>>>8^C[255&(t^e[n])];this.t=t}get(){return~this.t}}class A extends p{constructor(){let e;const t=new x;super({transform(e,n){t.append(e),n.enqueue(e)},flush(){const n=new i(4);new l(n.buffer).setUint32(0,t.get()),e.value=n}}),e=this}}const _={concat(e,t){if(0===e.length||0===t.length)return e.concat(t);const n=e[e.length-1],r=_.i(n);return 32===r?e.concat(t):_.o(t,r,0|n,e.slice(0,e.length-1))},l(e){const t=e.length;if(0===t)return 0;const n=e[t-1];return 32*(t-1)+_.i(n)},u(e,t){if(32*e.length<t)return e;const n=(e=e.slice(0,r.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=_.h(t,e[n-1]&2147483648>>t-1,1)),e},h:(e,t,n)=>32===e?t:(n?0|t:t<<32-e)+1099511627776*e,i:e=>r.round(e/1099511627776)||32,o(e,t,n,r){for(void 0===r&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(let s=0;s<e.length;s++)r.push(n|e[s]>>>t),n=e[s]<<32-t;const s=e.length?e[e.length-1]:0,i=_.i(s);return r.push(_.h(t+i&31,t+i>32?n:r.pop(),1)),r}},I={bytes:{p(e){const t=_.l(e)/8,n=new i(t);let r;for(let s=0;t>s;s++)3&s||(r=e[s/4]),n[s]=r>>>24,r<<=8;return n},m(e){const t=[];let n,r=0;for(n=0;n<e.length;n++)r=r<<8|e[n],3&~n||(t.push(r),r=0);return 3&n&&t.push(_.h(8*(3&n),r)),t}}},P=class{constructor(e){const t=this;t.blockSize=512,t.k=[1732584193,4023233417,2562383102,271733878,3285377520],t.v=[1518500249,1859775393,2400959708,3395469782],e?(t.S=e.S.slice(0),t.C=e.C.slice(0),t.A=e.A):t.reset()}reset(){const e=this;return e.S=e.k.slice(0),e.C=[],e.A=0,e}update(e){const t=this;"string"==typeof e&&(e=I._.m(e));const n=t.C=_.concat(t.C,e),r=t.A,i=t.A=r+_.l(e);if(i>9007199254740991)throw new s("Cannot hash more than 2^53 - 1 bits");const o=new c(n);let f=0;for(let e=t.blockSize+r-(t.blockSize+r&t.blockSize-1);i>=e;e+=t.blockSize)t.I(o.subarray(16*f,16*(f+1))),f+=1;return n.splice(0,16*f),t}P(){const e=this;let t=e.C;const n=e.S;t=_.concat(t,[_.h(1,1)]);for(let e=t.length+2;15&e;e++)t.push(0);for(t.push(r.floor(e.A/4294967296)),t.push(0|e.A);t.length;)e.I(t.splice(0,16));return e.reset(),n}D(e,t,n,r){return e>19?e>39?e>59?e>79?void 0:t^n^r:t&n|t&r|n&r:t^n^r:t&n|~t&r}V(e,t){return t<<e|t>>>32-e}I(t){const n=this,s=n.S,i=e(80);for(let e=0;16>e;e++)i[e]=t[e];let o=s[0],c=s[1],f=s[2],a=s[3],l=s[4];for(let e=0;79>=e;e++){16>e||(i[e]=n.V(1,i[e-3]^i[e-8]^i[e-14]^i[e-16]));const t=n.V(5,o)+n.D(e,c,f,a)+l+i[e]+n.v[r.floor(e/20)]|0;l=a,a=f,f=n.V(30,c),c=o,o=t}s[0]=s[0]+o|0,s[1]=s[1]+c|0,s[2]=s[2]+f|0,s[3]=s[3]+a|0,s[4]=s[4]+l|0}},D={getRandomValues(e){const t=new c(e.buffer),n=e=>{let t=987654321;const n=4294967295;return()=>(t=36969*(65535&t)+(t>>16)&n,(((t<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n)/4294967296+.5)*(r.random()>.5?1:-1))};for(let s,i=0;i<e.length;i+=4){const e=n(4294967296*(s||r.random()));s=987654071*e(),t[i/4]=4294967296*e()|0}return e}},V={importKey:e=>new V.R(I.bytes.m(e)),B(e,t,n,r){if(n=n||1e4,0>r||0>n)throw new s("invalid params to pbkdf2");const i=1+(r>>5)<<2;let o,c,f,a,u;const w=new ArrayBuffer(i),h=new l(w);let d=0;const p=_;for(t=I.bytes.m(t),u=1;(i||1)>d;u++){for(o=c=e.encrypt(p.concat(t,[u])),f=1;n>f;f++)for(c=e.encrypt(c),a=0;a<c.length;a++)o[a]^=c[a];for(f=0;(i||1)>d&&f<o.length;f++)h.setInt32(d,o[f]),d+=4}return w.slice(0,r/8)},R:class{constructor(e){const t=this,n=t.M=P,r=[[],[]];t.U=[new n,new n];const s=t.U[0].blockSize/32;e.length>s&&(e=(new n).update(e).P());for(let t=0;s>t;t++)r[0][t]=909522486^e[t],r[1][t]=1549556828^e[t];t.U[0].update(r[0]),t.U[1].update(r[1]),t.K=new n(t.U[0])}reset(){const e=this;e.K=new e.M(e.U[0]),e.N=!1}update(e){this.N=!0,this.K.update(e)}digest(){const e=this,t=e.K.P(),n=new e.M(e.U[1]).update(t).P();return e.reset(),n}encrypt(e){if(this.N)throw new s("encrypt on already updated hmac called!");return this.update(e),this.digest(e)}}},R=typeof h!=v&&typeof h.getRandomValues==S,B="Invalid password",E="Invalid signature",M="zipjs-abort-check-password";function U(e){return R?h.getRandomValues(e):D.getRandomValues(e)}const K=16,N={name:"PBKDF2"},O=t.assign({hash:{name:"HMAC"}},N),T=t.assign({iterations:1e3,hash:{name:"SHA-1"}},N),W=["deriveBits"],j=[8,12,16],H=[16,24,32],L=10,F=[0,0,0,0],q=typeof h!=v,G=q&&h.subtle,J=q&&typeof G!=v,Q=I.bytes,X=class{constructor(e){const t=this;t.O=[[[],[],[],[],[]],[[],[],[],[],[]]],t.O[0][0][0]||t.T();const n=t.O[0][4],r=t.O[1],i=e.length;let o,c,f,a=1;if(4!==i&&6!==i&&8!==i)throw new s("invalid aes key size");for(t.v=[c=e.slice(0),f=[]],o=i;4*i+28>o;o++){let e=c[o-1];(o%i==0||8===i&&o%i==4)&&(e=n[e>>>24]<<24^n[e>>16&255]<<16^n[e>>8&255]<<8^n[255&e],o%i==0&&(e=e<<8^e>>>24^a<<24,a=a<<1^283*(a>>7))),c[o]=c[o-i]^e}for(let e=0;o;e++,o--){const t=c[3&e?o:o-4];f[e]=4>=o||4>e?t:r[0][n[t>>>24]]^r[1][n[t>>16&255]]^r[2][n[t>>8&255]]^r[3][n[255&t]]}}encrypt(e){return this.W(e,0)}decrypt(e){return this.W(e,1)}T(){const e=this.O[0],t=this.O[1],n=e[4],r=t[4],s=[],i=[];let o,c,f,a;for(let e=0;256>e;e++)i[(s[e]=e<<1^283*(e>>7))^e]=e;for(let l=o=0;!n[l];l^=c||1,o=i[o]||1){let i=o^o<<1^o<<2^o<<3^o<<4;i=i>>8^255&i^99,n[l]=i,r[i]=l,a=s[f=s[c=s[l]]];let u=16843009*a^65537*f^257*c^16843008*l,w=257*s[i]^16843008*i;for(let n=0;4>n;n++)e[n][l]=w=w<<24^w>>>8,t[n][i]=u=u<<24^u>>>8}for(let n=0;5>n;n++)e[n]=e[n].slice(0),t[n]=t[n].slice(0)}W(e,t){if(4!==e.length)throw new s("invalid aes block size");const n=this.v[t],r=n.length/4-2,i=[0,0,0,0],o=this.O[t],c=o[0],f=o[1],a=o[2],l=o[3],u=o[4];let w,h,d,p=e[0]^n[0],y=e[t?3:1]^n[1],m=e[2]^n[2],b=e[t?1:3]^n[3],g=4;for(let e=0;r>e;e++)w=c[p>>>24]^f[y>>16&255]^a[m>>8&255]^l[255&b]^n[g],h=c[y>>>24]^f[m>>16&255]^a[b>>8&255]^l[255&p]^n[g+1],d=c[m>>>24]^f[b>>16&255]^a[p>>8&255]^l[255&y]^n[g+2],b=c[b>>>24]^f[p>>16&255]^a[y>>8&255]^l[255&m]^n[g+3],g+=4,p=w,y=h,m=d;for(let e=0;4>e;e++)i[t?3&-e:e]=u[p>>>24]<<24^u[y>>16&255]<<16^u[m>>8&255]<<8^u[255&b]^n[g++],w=p,p=y,y=m,m=b,b=w;return i}},Y=class{constructor(e,t){this.j=e,this.H=t,this.L=t}reset(){this.L=this.H}update(e){return this.F(this.j,e,this.L)}q(e){if(255&~(e>>24))e+=1<<24;else{let t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}G(e){0===(e[0]=this.q(e[0]))&&(e[1]=this.q(e[1]))}F(e,t,n){let r;if(!(r=t.length))return[];const s=_.l(t);for(let s=0;r>s;s+=4){this.G(n);const r=e.encrypt(n);t[s]^=r[0],t[s+1]^=r[1],t[s+2]^=r[2],t[s+3]^=r[3]}return _.u(t,s)}},Z=V.R;let $=q&&J&&typeof G.importKey==S,ee=q&&J&&typeof G.deriveBits==S;class te extends p{constructor({password:e,rawPassword:n,signed:r,encryptionStrength:o,checkPasswordOnly:c}){super({start(){t.assign(this,{ready:new u((e=>this.J=e)),password:ie(e,n),signed:r,X:o-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:o,J:f,ready:a}=n;r?(await(async(e,t,n,r)=>{const i=await se(e,t,n,ce(r,0,j[t])),o=ce(r,j[t]);if(i[0]!=o[0]||i[1]!=o[1])throw new s(B)})(n,o,r,ce(e,0,j[o]+2)),e=ce(e,j[o]+2),c?t.error(new s(M)):f()):await a;const l=new i(e.length-L-(e.length-L)%K);t.enqueue(re(n,e,l,0,L,!0))},async flush(e){const{signed:t,Y:n,Z:r,pending:o,ready:c}=this;if(r&&n){await c;const f=ce(o,0,o.length-L),a=ce(o,o.length-L);let l=new i;if(f.length){const e=ae(Q,f);r.update(e);const t=n.update(e);l=fe(Q,t)}if(t){const e=ce(fe(Q,r.digest()),0,L);for(let t=0;L>t;t++)if(e[t]!=a[t])throw new s(E)}e.enqueue(l)}}})}}class ne extends p{constructor({password:e,rawPassword:n,encryptionStrength:r}){let s;super({start(){t.assign(this,{ready:new u((e=>this.J=e)),password:ie(e,n),X:r-1,pending:new i})},async transform(e,t){const n=this,{password:r,X:s,J:o,ready:c}=n;let f=new i;r?(f=await(async(e,t,n)=>{const r=U(new i(j[t]));return oe(r,await se(e,t,n,r))})(n,s,r),o()):await c;const a=new i(f.length+e.length-e.length%K);a.set(f,0),t.enqueue(re(n,e,a,f.length,0))},async flush(e){const{Y:t,Z:n,pending:r,ready:o}=this;if(n&&t){await o;let c=new i;if(r.length){const e=t.update(ae(Q,r));n.update(e),c=fe(Q,e)}s.signature=fe(Q,n.digest()).slice(0,L),e.enqueue(oe(c,s.signature))}}}),s=this}}function re(e,t,n,r,s,o){const{Y:c,Z:f,pending:a}=e,l=t.length-s;let u;for(a.length&&(t=oe(a,t),n=((e,t)=>{if(t&&t>e.length){const n=e;(e=new i(t)).set(n,0)}return e})(n,l-l%K)),u=0;l-K>=u;u+=K){const e=ae(Q,ce(t,u,u+K));o&&f.update(e);const s=c.update(e);o||f.update(s),n.set(fe(Q,s),u+r)}return e.pending=ce(t,u),n}async function se(n,r,s,o){n.password=null;const c=await(async(e,t,n,r,s)=>{if(!$)return V.importKey(t);try{return await G.importKey("raw",t,n,!1,s)}catch(e){return $=!1,V.importKey(t)}})(0,s,O,0,W),f=await(async(e,t,n)=>{if(!ee)return V.B(t,e.salt,T.iterations,n);try{return await G.deriveBits(e,t,n)}catch(r){return ee=!1,V.B(t,e.salt,T.iterations,n)}})(t.assign({salt:o},T),c,8*(2*H[r]+2)),a=new i(f),l=ae(Q,ce(a,0,H[r])),u=ae(Q,ce(a,H[r],2*H[r])),w=ce(a,2*H[r]);return t.assign(n,{keys:{key:l,$:u,passwordVerification:w},Y:new Y(new X(l),e.from(F)),Z:new Z(u)}),w}function ie(e,t){return t===k?(e=>{if(typeof w==v){const t=new i((e=unescape(encodeURIComponent(e))).length);for(let n=0;n<t.length;n++)t[n]=e.charCodeAt(n);return t}return(new w).encode(e)})(e):t}function oe(e,t){let n=e;return e.length+t.length&&(n=new i(e.length+t.length),n.set(e,0),n.set(t,e.length)),n}function ce(e,t,n){return e.subarray(t,n)}function fe(e,t){return e.p(t)}function ae(e,t){return e.m(t)}class le extends p{constructor({password:e,passwordVerification:n,checkPasswordOnly:r}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;if(n.password){const t=we(n,e.subarray(0,12));if(n.password=null,t[11]!=n.passwordVerification)throw new s(B);e=e.subarray(12)}r?t.error(new s(M)):t.enqueue(we(n,e))}})}}class ue extends p{constructor({password:e,passwordVerification:n}){super({start(){t.assign(this,{password:e,passwordVerification:n}),de(this,e)},transform(e,t){const n=this;let r,s;if(n.password){n.password=null;const t=U(new i(12));t[11]=n.passwordVerification,r=new i(e.length+t.length),r.set(he(n,t),0),s=12}else r=new i(e.length),s=0;r.set(he(n,e),s),t.enqueue(r)}})}}function we(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,n[r]);return n}function he(e,t){const n=new i(t.length);for(let r=0;r<t.length;r++)n[r]=ye(e)^t[r],pe(e,t[r]);return n}function de(e,n){const r=[305419896,591751049,878082192];t.assign(e,{keys:r,ee:new x(r[0]),te:new x(r[2])});for(let t=0;t<n.length;t++)pe(e,n.charCodeAt(t))}function pe(e,t){let[n,s,i]=e.keys;e.ee.append([t]),n=~e.ee.get(),s=be(r.imul(be(s+me(n)),134775813)+1),e.te.append([s>>>24]),i=~e.te.get(),e.keys=[n,s,i]}function ye(e){const t=2|e.keys[2];return me(r.imul(t,1^t)>>>8)}function me(e){return 255&e}function be(e){return 4294967295&e}const ge="deflate-raw";class ke extends p{constructor(e,{chunkSize:t,CompressionStream:n,CompressionStreamNative:r}){super({});const{compressed:s,encrypted:i,useCompressionStream:o,zipCrypto:c,signed:f,level:a}=e,u=this;let w,h,d=Se(super.readable);i&&!c||!f||(w=new A,d=xe(d,w)),s&&(d=Ce(d,o,{level:a,chunkSize:t},r,n)),i&&(c?d=xe(d,new ue(e)):(h=new ne(e),d=xe(d,h))),ze(u,d,(()=>{let e;i&&!c&&(e=h.signature),i&&!c||!f||(e=new l(w.value.buffer).getUint32(0)),u.signature=e}))}}class ve extends p{constructor(e,{chunkSize:t,DecompressionStream:n,DecompressionStreamNative:r}){super({});const{zipCrypto:i,encrypted:o,signed:c,signature:f,compressed:a,useCompressionStream:u}=e;let w,h,d=Se(super.readable);o&&(i?d=xe(d,new le(e)):(h=new te(e),d=xe(d,h))),a&&(d=Ce(d,u,{chunkSize:t},r,n)),o&&!i||!c||(w=new A,d=xe(d,w)),ze(this,d,(()=>{if((!o||i)&&c){const e=new l(w.value.buffer);if(f!=e.getUint32(0,!1))throw new s(E)}}))}}function Se(e){return xe(e,new p({transform(e,t){e&&e.length&&t.enqueue(e)}}))}function ze(e,n,r){n=xe(n,new p({flush:r})),t.defineProperty(e,"readable",{get:()=>n})}function Ce(e,t,n,r,s){try{e=xe(e,new(t&&r?r:s)(ge,n))}catch(r){if(!t)return e;try{e=xe(e,new s(ge,n))}catch(t){return e}}return e}function xe(e,t){return e.pipeThrough(t)}const Ae="data",_e="close";class Ie extends p{constructor(e,n){super({});const r=this,{codecType:s}=e;let i;s.startsWith("deflate")?i=ke:s.startsWith("inflate")&&(i=ve);let o=0,c=0;const f=new i(e,n),a=super.readable,l=new p({transform(e,t){e&&e.length&&(c+=e.length,t.enqueue(e))},flush(){t.assign(r,{inputSize:c})}}),u=new p({transform(e,t){e&&e.length&&(o+=e.length,t.enqueue(e))},flush(){const{signature:e}=f;t.assign(r,{signature:e,outputSize:o,inputSize:c})}});t.defineProperty(r,"readable",{get:()=>a.pipeThrough(l).pipeThrough(f).pipeThrough(u)})}}class Pe extends p{constructor(e){let t;super({transform:function n(r,s){if(t){const e=new i(t.length+r.length);e.set(t),e.set(r,t.length),r=e,t=null}r.length>e?(s.enqueue(r.slice(0,e)),n(r.slice(e),s)):t=r},flush(e){t&&t.length&&e.enqueue(t)}})}}const De=new a,Ve=new a;let Re,Be=0,Ee=!0;async function Me(e){try{const{options:t,scripts:r,config:s}=e;if(r&&r.length)try{Ee?importScripts.apply(k,r):await Ue(r)}catch(e){Ee=!1,await Ue(r)}self.initCodec&&self.initCodec(),s.CompressionStreamNative=self.CompressionStream,s.DecompressionStreamNative=self.DecompressionStream,self.Deflate&&(s.CompressionStream=new z(self.Deflate)),self.Inflate&&(s.DecompressionStream=new z(self.Inflate));const i={highWaterMark:1},o=e.readable||new y({async pull(e){const t=new u((e=>De.set(Be,e)));Ke({type:"pull",messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER;const{value:r,done:s}=await t;e.enqueue(r),s&&e.close()}},i),c=e.writable||new m({async write(e){let t;const r=new u((e=>t=e));Ve.set(Be,t),Ke({type:Ae,value:e,messageId:Be}),Be=(Be+1)%n.MAX_SAFE_INTEGER,await r}},i),f=new Ie(t,s);Re=new AbortController;const{signal:a}=Re;await o.pipeThrough(f).pipeThrough(new Pe(s.chunkSize)).pipeTo(c,{signal:a,preventClose:!0,preventAbort:!0}),await c.getWriter().close();const{signature:l,inputSize:w,outputSize:h}=f;Ke({type:_e,result:{signature:l,inputSize:w,outputSize:h}})}catch(e){Ne(e)}}async function Ue(e){for(const t of e)await import(t)}function Ke(e){let{value:t}=e;if(t)if(t.length)try{t=new i(t),e.value=t.buffer,d(e,[e.value])}catch(t){d(e)}else d(e);else d(e)}function Ne(e=new s("Unknown error")){const{message:t,stack:n,code:r,name:i}=e;d({error:{message:t,stack:n,code:r,name:i}})}addEventListener("message",(({data:e})=>{const{type:t,messageId:n,value:r,done:s}=e;try{if("start"==t&&Me(e),t==Ae){const e=De.get(n);De.delete(n),e({value:new i(r),done:s})}if("ack"==t){const e=Ve.get(n);Ve.delete(n),e()}t==_e&&Re.abort()}catch(e){Ne(e)}}));const Oe=-2;function Te(t){return We(t.map((([t,n])=>new e(t).fill(n,0,t))))}function We(t){return t.reduce(((t,n)=>t.concat(e.isArray(n)?We(n):n)),[])}const je=[0,1,2,3].concat(...Te([[2,4],[2,5],[4,6],[4,7],[8,8],[8,9],[16,10],[16,11],[32,12],[32,13],[64,14],[64,15],[2,0],[1,16],[1,17],[2,18],[2,19],[4,20],[4,21],[8,22],[8,23],[16,24],[16,25],[32,26],[32,27],[64,28],[64,29]]));function He(){const e=this;function t(e,t){let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}e.ne=n=>{const s=e.re,i=e.ie.se,o=e.ie.oe;let c,f,a,l=-1;for(n.ce=0,n.fe=573,c=0;o>c;c++)0!==s[2*c]?(n.ae[++n.ce]=l=c,n.le[c]=0):s[2*c+1]=0;for(;2>n.ce;)a=n.ae[++n.ce]=2>l?++l:0,s[2*a]=1,n.le[a]=0,n.ue--,i&&(n.we-=i[2*a+1]);for(e.he=l,c=r.floor(n.ce/2);c>=1;c--)n.de(s,c);a=o;do{c=n.ae[1],n.ae[1]=n.ae[n.ce--],n.de(s,1),f=n.ae[1],n.ae[--n.fe]=c,n.ae[--n.fe]=f,s[2*a]=s[2*c]+s[2*f],n.le[a]=r.max(n.le[c],n.le[f])+1,s[2*c+1]=s[2*f+1]=a,n.ae[1]=a++,n.de(s,1)}while(n.ce>=2);n.ae[--n.fe]=n.ae[1],(t=>{const n=e.re,r=e.ie.se,s=e.ie.pe,i=e.ie.ye,o=e.ie.me;let c,f,a,l,u,w,h=0;for(l=0;15>=l;l++)t.be[l]=0;for(n[2*t.ae[t.fe]+1]=0,c=t.fe+1;573>c;c++)f=t.ae[c],l=n[2*n[2*f+1]+1]+1,l>o&&(l=o,h++),n[2*f+1]=l,f>e.he||(t.be[l]++,u=0,i>f||(u=s[f-i]),w=n[2*f],t.ue+=w*(l+u),r&&(t.we+=w*(r[2*f+1]+u)));if(0!==h){do{for(l=o-1;0===t.be[l];)l--;t.be[l]--,t.be[l+1]+=2,t.be[o]--,h-=2}while(h>0);for(l=o;0!==l;l--)for(f=t.be[l];0!==f;)a=t.ae[--c],a>e.he||(n[2*a+1]!=l&&(t.ue+=(l-n[2*a+1])*n[2*a],n[2*a+1]=l),f--)}})(n),((e,n,r)=>{const s=[];let i,o,c,f=0;for(i=1;15>=i;i++)s[i]=f=f+r[i-1]<<1;for(o=0;n>=o;o++)c=e[2*o+1],0!==c&&(e[2*o]=t(s[c]++,c))})(s,e.he,n.be)}}function Le(e,t,n,r,s){const i=this;i.se=e,i.pe=t,i.ye=n,i.oe=r,i.me=s}He.ge=[0,1,2,3,4,5,6,7].concat(...Te([[2,8],[2,9],[2,10],[2,11],[4,12],[4,13],[4,14],[4,15],[8,16],[8,17],[8,18],[8,19],[16,20],[16,21],[16,22],[16,23],[32,24],[32,25],[32,26],[31,27],[1,28]])),He.ke=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],He.ve=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],He.Se=e=>256>e?je[e]:je[256+(e>>>7)],He.ze=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],He.Ce=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],He.xe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],He.Ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];const Fe=Te([[144,8],[112,9],[24,7],[8,8]]);Le._e=We([12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,19,275,147,403,83,339,211,467,51,307,179,435,115,371,243,499,11,267,139,395,75,331,203,459,43,299,171,427,107,363,235,491,27,283,155,411,91,347,219,475,59,315,187,443,123,379,251,507,7,263,135,391,71,327,199,455,39,295,167,423,103,359,231,487,23,279,151,407,87,343,215,471,55,311,183,439,119,375,247,503,15,271,143,399,79,335,207,463,47,303,175,431,111,367,239,495,31,287,159,415,95,351,223,479,63,319,191,447,127,383,255,511,0,64,32,96,16,80,48,112,8,72,40,104,24,88,56,120,4,68,36,100,20,84,52,116,3,131,67,195,35,163,99,227].map(((e,t)=>[e,Fe[t]])));const qe=Te([[30,5]]);function Ge(e,t,n,r,s){const i=this;i.Ie=e,i.Pe=t,i.De=n,i.Ve=r,i.Re=s}Le.Be=We([0,16,8,24,4,20,12,28,2,18,10,26,6,22,14,30,1,17,9,25,5,21,13,29,3,19,11,27,7,23].map(((e,t)=>[e,qe[t]]))),Le.Ee=new Le(Le._e,He.ze,257,286,15),Le.Me=new Le(Le.Be,He.Ce,0,30,15),Le.Ue=new Le(null,He.xe,0,19,7);const Je=[new Ge(0,0,0,0,0),new Ge(4,4,8,4,1),new Ge(4,5,16,8,1),new Ge(4,6,32,32,1),new Ge(4,4,16,16,2),new Ge(8,16,32,32,2),new Ge(8,16,128,128,2),new Ge(8,32,128,256,2),new Ge(32,128,258,1024,2),new Ge(32,258,258,4096,2)],Qe=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],Xe=113,Ye=666,Ze=262;function $e(e,t,n,r){const s=e[2*t],i=e[2*n];return i>s||s==i&&r[t]<=r[n]}function et(){const e=this;let t,n,s,c,f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z,C,x,A,_,I,P,D,V,R,B,E,M,U;const K=new He,N=new He,O=new He;let T,W,j,H,L,F;function q(){let t;for(t=0;286>t;t++)E[2*t]=0;for(t=0;30>t;t++)M[2*t]=0;for(t=0;19>t;t++)U[2*t]=0;E[512]=1,e.ue=e.we=0,W=j=0}function G(e,t){let n,r=-1,s=e[1],i=0,o=7,c=4;0===s&&(o=138,c=3),e[2*(t+1)+1]=65535;for(let f=0;t>=f;f++)n=s,s=e[2*(f+1)+1],++i<o&&n==s||(c>i?U[2*n]+=i:0!==n?(n!=r&&U[2*n]++,U[32]++):i>10?U[36]++:U[34]++,i=0,r=n,0===s?(o=138,c=3):n==s?(o=6,c=3):(o=7,c=4))}function J(t){e.Ke[e.pending++]=t}function Q(e){J(255&e),J(e>>>8&255)}function X(e,t){let n;const r=t;F>16-r?(n=e,L|=n<<F&65535,Q(L),L=n>>>16-F,F+=r-16):(L|=e<<F&65535,F+=r)}function Y(e,t){const n=2*e;X(65535&t[n],65535&t[n+1])}function Z(e,t){let n,r,s=-1,i=e[1],o=0,c=7,f=4;for(0===i&&(c=138,f=3),n=0;t>=n;n++)if(r=i,i=e[2*(n+1)+1],++o>=c||r!=i){if(f>o)do{Y(r,U)}while(0!=--o);else 0!==r?(r!=s&&(Y(r,U),o--),Y(16,U),X(o-3,2)):o>10?(Y(18,U),X(o-11,7)):(Y(17,U),X(o-3,3));o=0,s=r,0===i?(c=138,f=3):r==i?(c=6,f=3):(c=7,f=4)}}function $(){16==F?(Q(L),L=0,F=0):8>F||(J(255&L),L>>>=8,F-=8)}function ee(t,n){let s,i,o;if(e.Ne[W]=t,e.Oe[W]=255&n,W++,0===t?E[2*n]++:(j++,t--,E[2*(He.ge[n]+256+1)]++,M[2*He.Se(t)]++),!(8191&W)&&D>2){for(s=8*W,i=C-k,o=0;30>o;o++)s+=M[2*o]*(5+He.Ce[o]);if(s>>>=3,j<r.floor(W/2)&&s<r.floor(i/2))return!0}return W==T-1}function te(t,n){let r,s,i,o,c=0;if(0!==W)do{r=e.Ne[c],s=e.Oe[c],c++,0===r?Y(s,t):(i=He.ge[s],Y(i+256+1,t),o=He.ze[i],0!==o&&(s-=He.ke[i],X(s,o)),r--,i=He.Se(r),Y(i,n),o=He.Ce[i],0!==o&&(r-=He.ve[i],X(r,o)))}while(W>c);Y(256,t),H=t[513]}function ne(){F>8?Q(L):F>0&&J(255&L),L=0,F=0}function re(t,n,r){X(0+(r?1:0),3),((t,n)=>{ne(),H=8,Q(n),Q(~n),e.Ke.set(u.subarray(t,t+n),e.pending),e.pending+=n})(t,n)}function se(n){((t,n,r)=>{let s,i,o=0;D>0?(K.ne(e),N.ne(e),o=(()=>{let t;for(G(E,K.he),G(M,N.he),O.ne(e),t=18;t>=3&&0===U[2*He.Ae[t]+1];t--);return e.ue+=14+3*(t+1),t})(),s=e.ue+3+7>>>3,i=e.we+3+7>>>3,i>s||(s=i)):s=i=n+5,n+4>s||-1==t?i==s?(X(2+(r?1:0),3),te(Le._e,Le.Be)):(X(4+(r?1:0),3),((e,t,n)=>{let r;for(X(e-257,5),X(t-1,5),X(n-4,4),r=0;n>r;r++)X(U[2*He.Ae[r]+1],3);Z(E,e-1),Z(M,t-1)})(K.he+1,N.he+1,o+1),te(E,M)):re(t,n,r),q(),r&&ne()})(0>k?-1:k,C-k,n),k=C,t.Te()}function ie(){let e,n,r,s;do{if(s=w-A-C,0===s&&0===C&&0===A)s=f;else if(-1==s)s--;else if(C>=f+f-Ze){u.set(u.subarray(f,f+f),0),x-=f,C-=f,k-=f,e=y,r=e;do{n=65535&d[--r],d[r]=f>n?0:n-f}while(0!=--e);e=f,r=e;do{n=65535&h[--r],h[r]=f>n?0:n-f}while(0!=--e);s+=f}if(0===t.We)return;e=t.je(u,C+A,s),A+=e,3>A||(p=255&u[C],p=(p<<g^255&u[C+1])&b)}while(Ze>A&&0!==t.We)}function oe(e){let t,n,r=I,s=C,i=_;const o=C>f-Ze?C-(f-Ze):0;let c=B;const a=l,w=C+258;let d=u[s+i-1],p=u[s+i];R>_||(r>>=2),c>A&&(c=A);do{if(t=e,u[t+i]==p&&u[t+i-1]==d&&u[t]==u[s]&&u[++t]==u[s+1]){s+=2,t++;do{}while(u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&u[++s]==u[++t]&&w>s);if(n=258-(w-s),s=w-258,n>i){if(x=e,i=n,n>=c)break;d=u[s+i-1],p=u[s+i]}}}while((e=65535&h[e&a])>o&&0!=--r);return i>A?A:i}e.le=[],e.be=[],e.ae=[],E=[],M=[],U=[],e.de=(t,n)=>{const r=e.ae,s=r[n];let i=n<<1;for(;i<=e.ce&&(i<e.ce&&$e(t,r[i+1],r[i],e.le)&&i++,!$e(t,s,r[i],e.le));)r[n]=r[i],n=i,i<<=1;r[n]=s},e.He=(t,S,x,W,j,G)=>(W||(W=8),j||(j=8),G||(G=0),t.Le=null,-1==S&&(S=6),1>j||j>9||8!=W||9>x||x>15||0>S||S>9||0>G||G>2?Oe:(t.Fe=e,a=x,f=1<<a,l=f-1,m=j+7,y=1<<m,b=y-1,g=r.floor((m+3-1)/3),u=new i(2*f),h=[],d=[],T=1<<j+6,e.Ke=new i(4*T),s=4*T,e.Ne=new o(T),e.Oe=new i(T),D=S,V=G,(t=>(t.qe=t.Ge=0,t.Le=null,e.pending=0,e.Je=0,n=Xe,c=0,K.re=E,K.ie=Le.Ee,N.re=M,N.ie=Le.Me,O.re=U,O.ie=Le.Ue,L=0,F=0,H=8,q(),(()=>{w=2*f,d[y-1]=0;for(let e=0;y-1>e;e++)d[e]=0;P=Je[D].Pe,R=Je[D].Ie,B=Je[D].De,I=Je[D].Ve,C=0,k=0,A=0,v=_=2,z=0,p=0})(),0))(t))),e.Qe=()=>42!=n&&n!=Xe&&n!=Ye?Oe:(e.Oe=null,e.Ne=null,e.Ke=null,d=null,h=null,u=null,e.Fe=null,n==Xe?-3:0),e.Xe=(e,t,n)=>{let r=0;return-1==t&&(t=6),0>t||t>9||0>n||n>2?Oe:(Je[D].Re!=Je[t].Re&&0!==e.qe&&(r=e.Ye(1)),D!=t&&(D=t,P=Je[D].Pe,R=Je[D].Ie,B=Je[D].De,I=Je[D].Ve),V=n,r)},e.Ze=(e,t,r)=>{let s,i=r,o=0;if(!t||42!=n)return Oe;if(3>i)return 0;for(i>f-Ze&&(i=f-Ze,o=r-i),u.set(t.subarray(o,o+i),0),C=i,k=i,p=255&u[0],p=(p<<g^255&u[1])&b,s=0;i-3>=s;s++)p=(p<<g^255&u[s+2])&b,h[s&l]=d[p],d[p]=s;return 0},e.Ye=(r,i)=>{let o,w,m,I,R;if(i>4||0>i)return Oe;if(!r.$e||!r.et&&0!==r.We||n==Ye&&4!=i)return r.Le=Qe[4],Oe;if(0===r.tt)return r.Le=Qe[7],-5;var B;if(t=r,I=c,c=i,42==n&&(w=8+(a-8<<4)<<8,m=(D-1&255)>>1,m>3&&(m=3),w|=m<<6,0!==C&&(w|=32),w+=31-w%31,n=Xe,J((B=w)>>8&255),J(255&B)),0!==e.pending){if(t.Te(),0===t.tt)return c=-1,0}else if(0===t.We&&I>=i&&4!=i)return t.Le=Qe[7],-5;if(n==Ye&&0!==t.We)return r.Le=Qe[7],-5;if(0!==t.We||0!==A||0!=i&&n!=Ye){switch(R=-1,Je[D].Re){case 0:R=(e=>{let n,r=65535;for(r>s-5&&(r=s-5);;){if(1>=A){if(ie(),0===A&&0==e)return 0;if(0===A)break}if(C+=A,A=0,n=k+r,(0===C||C>=n)&&(A=C-n,C=n,se(!1),0===t.tt))return 0;if(C-k>=f-Ze&&(se(!1),0===t.tt))return 0}return se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i);break;case 1:R=(e=>{let n,r=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C),0===r||(C-r&65535)>f-Ze||2!=V&&(v=oe(r)),3>v)n=ee(0,255&u[C]),A--,C++;else if(n=ee(C-x,v-3),A-=v,v>P||3>A)C+=v,v=0,p=255&u[C],p=(p<<g^255&u[C+1])&b;else{v--;do{C++,p=(p<<g^255&u[C+2])&b,r=65535&d[p],h[C&l]=d[p],d[p]=C}while(0!=--v);C++}if(n&&(se(!1),0===t.tt))return 0}return se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i);break;case 2:R=(e=>{let n,r,s=0;for(;;){if(Ze>A){if(ie(),Ze>A&&0==e)return 0;if(0===A)break}if(3>A||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C),_=v,S=x,v=2,0!==s&&P>_&&f-Ze>=(C-s&65535)&&(2!=V&&(v=oe(s)),5>=v&&(1==V||3==v&&C-x>4096)&&(v=2)),3>_||v>_)if(0!==z){if(n=ee(0,255&u[C-1]),n&&se(!1),C++,A--,0===t.tt)return 0}else z=1,C++,A--;else{r=C+A-3,n=ee(C-1-S,_-3),A-=_-1,_-=2;do{++C>r||(p=(p<<g^255&u[C+2])&b,s=65535&d[p],h[C&l]=d[p],d[p]=C)}while(0!=--_);if(z=0,v=2,C++,n&&(se(!1),0===t.tt))return 0}}return 0!==z&&(n=ee(0,255&u[C-1]),z=0),se(4==e),0===t.tt?4==e?2:0:4==e?3:1})(i)}if(2!=R&&3!=R||(n=Ye),0==R||2==R)return 0===t.tt&&(c=-1),0;if(1==R){if(1==i)X(2,3),Y(256,Le._e),$(),9>1+H+10-F&&(X(2,3),Y(256,Le._e),$()),H=7;else if(re(0,0,!1),3==i)for(o=0;y>o;o++)d[o]=0;if(t.Te(),0===t.tt)return c=-1,0}}return 4!=i?0:1}}function tt(){const e=this;e.nt=0,e.rt=0,e.We=0,e.qe=0,e.tt=0,e.Ge=0}function nt(e){const t=new tt,n=(o=e&&e.chunkSize?e.chunkSize:65536)+5*(r.floor(o/16383)+1);var o;const c=new i(n);let f=e?e.level:-1;void 0===f&&(f=-1),t.He(f),t.$e=c,this.append=(e,r)=>{let o,f,a=0,l=0,u=0;const w=[];if(e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,o=t.Ye(0),0!=o)throw new s("deflating: "+t.Le);t.rt&&(t.rt==n?w.push(new i(c)):w.push(c.subarray(0,t.rt))),u+=t.rt,r&&t.nt>0&&t.nt!=a&&(r(t.nt),a=t.nt)}while(t.We>0||0===t.tt);return w.length>1?(f=new i(u),w.forEach((e=>{f.set(e,l),l+=e.length}))):f=w[0]?new i(w[0]):new i,f}},this.flush=()=>{let e,r,o=0,f=0;const a=[];do{if(t.rt=0,t.tt=n,e=t.Ye(4),1!=e&&0!=e)throw new s("deflating: "+t.Le);n-t.tt>0&&a.push(c.slice(0,t.rt)),f+=t.rt}while(t.We>0||0===t.tt);return t.Qe(),r=new i(f),a.forEach((e=>{r.set(e,o),o+=e.length})),r}}tt.prototype={He(e,t){const n=this;return n.Fe=new et,t||(t=15),n.Fe.He(n,e,t)},Ye(e){const t=this;return t.Fe?t.Fe.Ye(t,e):Oe},Qe(){const e=this;if(!e.Fe)return Oe;const t=e.Fe.Qe();return e.Fe=null,t},Xe(e,t){const n=this;return n.Fe?n.Fe.Xe(n,e,t):Oe},Ze(e,t){const n=this;return n.Fe?n.Fe.Ze(n,e,t):Oe},je(e,t,n){const r=this;let s=r.We;return s>n&&(s=n),0===s?0:(r.We-=s,e.set(r.et.subarray(r.nt,r.nt+s),t),r.nt+=s,r.qe+=s,s)},Te(){const e=this;let t=e.Fe.pending;t>e.tt&&(t=e.tt),0!==t&&(e.$e.set(e.Fe.Ke.subarray(e.Fe.Je,e.Fe.Je+t),e.rt),e.rt+=t,e.Fe.Je+=t,e.Ge+=t,e.tt-=t,e.Fe.pending-=t,0===e.Fe.pending&&(e.Fe.Je=0))}};const rt=-2,st=-3,it=-5,ot=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],ct=[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255],ft=[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577],at=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],lt=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112],ut=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],wt=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13];function ht(){let e,t,n,r,s,i;function o(e,t,o,c,f,a,l,u,w,h,d){let p,y,m,b,g,k,v,S,z,C,x,A,_,I,P;C=0,g=o;do{n[e[t+C]]++,C++,g--}while(0!==g);if(n[0]==o)return l[0]=-1,u[0]=0,0;for(S=u[0],k=1;15>=k&&0===n[k];k++);for(v=k,k>S&&(S=k),g=15;0!==g&&0===n[g];g--);for(m=g,S>g&&(S=g),u[0]=S,I=1<<k;g>k;k++,I<<=1)if(0>(I-=n[k]))return st;if(0>(I-=n[g]))return st;for(n[g]+=I,i[1]=k=0,C=1,_=2;0!=--g;)i[_]=k+=n[C],_++,C++;g=0,C=0;do{0!==(k=e[t+C])&&(d[i[k]++]=g),C++}while(++g<o);for(o=i[m],i[0]=g=0,C=0,b=-1,A=-S,s[0]=0,x=0,P=0;m>=v;v++)for(p=n[v];0!=p--;){for(;v>A+S;){if(b++,A+=S,P=m-A,P=P>S?S:P,(y=1<<(k=v-A))>p+1&&(y-=p+1,_=v,P>k))for(;++k<P&&(y<<=1)>n[++_];)y-=n[_];if(P=1<<k,h[0]+P>1440)return st;s[b]=x=h[0],h[0]+=P,0!==b?(i[b]=g,r[0]=k,r[1]=S,k=g>>>A-S,r[2]=x-s[b-1]-k,w.set(r,3*(s[b-1]+k))):l[0]=x}for(r[1]=v-A,o>C?d[C]<c?(r[0]=256>d[C]?0:96,r[2]=d[C++]):(r[0]=a[d[C]-c]+16+64,r[2]=f[d[C++]-c]):r[0]=192,y=1<<v-A,k=g>>>A;P>k;k+=y)w.set(r,3*(x+k));for(k=1<<v-1;g&k;k>>>=1)g^=k;for(g^=k,z=(1<<A)-1;(g&z)!=i[b];)b--,A-=S,z=(1<<A)-1}return 0!==I&&1!=m?it:0}function c(o){let c;for(e||(e=[],t=[],n=new f(16),r=[],s=new f(15),i=new f(16)),t.length<o&&(t=[]),c=0;o>c;c++)t[c]=0;for(c=0;16>c;c++)n[c]=0;for(c=0;3>c;c++)r[c]=0;s.set(n.subarray(0,15),0),i.set(n.subarray(0,16),0)}this.st=(n,r,s,i,f)=>{let a;return c(19),e[0]=0,a=o(n,0,19,19,null,null,s,r,i,e,t),a==st?f.Le="oversubscribed dynamic bit lengths tree":a!=it&&0!==r[0]||(f.Le="incomplete dynamic bit lengths tree",a=st),a},this.it=(n,r,s,i,f,a,l,u,w)=>{let h;return c(288),e[0]=0,h=o(s,0,n,257,at,lt,a,i,u,e,t),0!=h||0===i[0]?(h==st?w.Le="oversubscribed literal/length tree":-4!=h&&(w.Le="incomplete literal/length tree",h=st),h):(c(288),h=o(s,n,r,0,ut,wt,l,f,u,e,t),0!=h||0===f[0]&&n>257?(h==st?w.Le="oversubscribed distance tree":h==it?(w.Le="incomplete distance tree",h=st):-4!=h&&(w.Le="empty distance tree with lengths",h=st),h):0)}}function dt(){const e=this;let t,n,r,s,i=0,o=0,c=0,f=0,a=0,l=0,u=0,w=0,h=0,d=0;function p(e,t,n,r,s,i,o,c){let f,a,l,u,w,h,d,p,y,m,b,g,k,v,S,z;d=c.nt,p=c.We,w=o.ot,h=o.ct,y=o.write,m=y<o.read?o.read-y-1:o.end-y,b=ot[e],g=ot[t];do{for(;20>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;if(f=w&b,a=n,l=r,z=3*(l+f),0!==(u=a[z]))for(;;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15,k=a[z+2]+(w&ot[u]),w>>=u,h-=u;15>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;for(f=w&g,a=s,l=i,z=3*(l+f),u=a[z];;){if(w>>=a[z+1],h-=a[z+1],16&u){for(u&=15;u>h;)p--,w|=(255&c.ft(d++))<<h,h+=8;if(v=a[z+2]+(w&ot[u]),w>>=u,h-=u,m-=k,v>y){S=y-v;do{S+=o.end}while(0>S);if(u=o.end-S,k>u){if(k-=u,y-S>0&&u>y-S)do{o.lt[y++]=o.lt[S++]}while(0!=--u);else o.lt.set(o.lt.subarray(S,S+u),y),y+=u,S+=u,u=0;S=0}}else S=y-v,y-S>0&&2>y-S?(o.lt[y++]=o.lt[S++],o.lt[y++]=o.lt[S++],k-=2):(o.lt.set(o.lt.subarray(S,S+2),y),y+=2,S+=2,k-=2);if(y-S>0&&k>y-S)do{o.lt[y++]=o.lt[S++]}while(0!=--k);else o.lt.set(o.lt.subarray(S,S+k),y),y+=k,S+=k,k=0;break}if(64&u)return c.Le="invalid distance code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,st;f+=a[z+2],f+=w&ot[u],z=3*(l+f),u=a[z]}break}if(64&u)return 32&u?(k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,1):(c.Le="invalid literal/length code",k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,st);if(f+=a[z+2],f+=w&ot[u],z=3*(l+f),0===(u=a[z])){w>>=a[z+1],h-=a[z+1],o.lt[y++]=a[z+2],m--;break}}else w>>=a[z+1],h-=a[z+1],o.lt[y++]=a[z+2],m--}while(m>=258&&p>=10);return k=c.We-p,k=k>h>>3?h>>3:k,p+=k,d-=k,h-=k<<3,o.ot=w,o.ct=h,c.We=p,c.qe+=d-c.nt,c.nt=d,o.write=y,0}e.init=(e,i,o,c,f,a)=>{t=0,u=e,w=i,r=o,h=c,s=f,d=a,n=null},e.ut=(e,y,m)=>{let b,g,k,v,S,z,C,x=0,A=0,_=0;for(_=y.nt,v=y.We,x=e.ot,A=e.ct,S=e.write,z=S<e.read?e.read-S-1:e.end-S;;)switch(t){case 0:if(z>=258&&v>=10&&(e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,m=p(u,w,r,h,s,d,e,y),_=y.nt,v=y.We,x=e.ot,A=e.ct,S=e.write,z=S<e.read?e.read-S-1:e.end-S,0!=m)){t=1==m?7:9;break}c=u,n=r,o=h,t=1;case 1:for(b=c;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>>=n[g+1],A-=n[g+1],k=n[g],0===k){f=n[g+2],t=6;break}if(16&k){a=15&k,i=n[g+2],t=2;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}if(32&k){t=7;break}return t=9,y.Le="invalid literal/length code",m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 2:for(b=a;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}i+=x&ot[b],x>>=b,A-=b,c=w,n=s,o=d,t=3;case 3:for(b=c;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}if(g=3*(o+(x&ot[b])),x>>=n[g+1],A-=n[g+1],k=n[g],16&k){a=15&k,l=n[g+2],t=4;break}if(!(64&k)){c=k,o=g/3+n[g+2];break}return t=9,y.Le="invalid distance code",m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 4:for(b=a;b>A;){if(0===v)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,v--,x|=(255&y.ft(_++))<<A,A+=8}l+=x&ot[b],x>>=b,A-=b,t=5;case 5:for(C=S-l;0>C;)C+=e.end;for(;0!==i;){if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);e.lt[S++]=e.lt[C++],z--,C==e.end&&(C=0),i--}t=0;break;case 6:if(0===z&&(S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z&&(e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,S==e.end&&0!==e.read&&(S=0,z=S<e.read?e.read-S-1:e.end-S),0===z)))return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);m=0,e.lt[S++]=f,z--,t=0;break;case 7:if(A>7&&(A-=8,v++,_--),e.write=S,m=e.wt(y,m),S=e.write,z=S<e.read?e.read-S-1:e.end-S,e.read!=e.write)return e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);t=8;case 8:return m=1,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);case 9:return m=st,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m);default:return m=rt,e.ot=x,e.ct=A,y.We=v,y.qe+=_-y.nt,y.nt=_,e.write=S,e.wt(y,m)}},e.ht=()=>{}}ht.dt=(e,t,n,r)=>(e[0]=9,t[0]=5,n[0]=ct,r[0]=ft,0);const pt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function yt(e,t){const n=this;let r,s=0,o=0,c=0,a=0;const l=[0],u=[0],w=new dt;let h=0,d=new f(4320);const p=new ht;n.ct=0,n.ot=0,n.lt=new i(t),n.end=t,n.read=0,n.write=0,n.reset=(e,t)=>{t&&(t[0]=0),6==s&&w.ht(e),s=0,n.ct=0,n.ot=0,n.read=n.write=0},n.reset(e,null),n.wt=(e,t)=>{let r,s,i;return s=e.rt,i=n.read,r=(i>n.write?n.end:n.write)-i,r>e.tt&&(r=e.tt),0!==r&&t==it&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.subarray(i,i+r),s),s+=r,i+=r,i==n.end&&(i=0,n.write==n.end&&(n.write=0),r=n.write-i,r>e.tt&&(r=e.tt),0!==r&&t==it&&(t=0),e.tt-=r,e.Ge+=r,e.$e.set(n.lt.subarray(i,i+r),s),s+=r,i+=r),e.rt=s,n.read=i,t},n.ut=(e,t)=>{let i,f,y,m,b,g,k,v;for(m=e.nt,b=e.We,f=n.ot,y=n.ct,g=n.write,k=g<n.read?n.read-g-1:n.end-g;;){let S,z,C,x,A,_,I,P;switch(s){case 0:for(;3>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}switch(i=7&f,h=1&i,i>>>1){case 0:f>>>=3,y-=3,i=7&y,f>>>=i,y-=i,s=1;break;case 1:S=[],z=[],C=[[]],x=[[]],ht.dt(S,z,C,x),w.init(S[0],z[0],C[0],0,x[0],0),f>>>=3,y-=3,s=6;break;case 2:f>>>=3,y-=3,s=3;break;case 3:return f>>>=3,y-=3,s=9,e.Le="invalid block type",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}break;case 1:for(;32>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if((~f>>>16&65535)!=(65535&f))return s=9,e.Le="invalid stored block lengths",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);o=65535&f,f=y=0,s=0!==o?2:0!==h?7:0;break;case 2:if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(0===k&&(g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k&&(n.write=g,t=n.wt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,g==n.end&&0!==n.read&&(g=0,k=g<n.read?n.read-g-1:n.end-g),0===k)))return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(t=0,i=o,i>b&&(i=b),i>k&&(i=k),n.lt.set(e.je(m,i),g),m+=i,b-=i,g+=i,k-=i,0!=(o-=i))break;s=0!==h?7:0;break;case 3:for(;14>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(c=i=16383&f,(31&i)>29||(i>>5&31)>29)return s=9,e.Le="too many length or distance symbols",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);if(i=258+(31&i)+(i>>5&31),!r||r.length<i)r=[];else for(v=0;i>v;v++)r[v]=0;f>>>=14,y-=14,a=0,s=4;case 4:for(;4+(c>>>10)>a;){for(;3>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}r[pt[a++]]=7&f,f>>>=3,y-=3}for(;19>a;)r[pt[a++]]=0;if(l[0]=7,i=p.st(r,l,u,d,e),0!=i)return(t=i)==st&&(r=null,s=9),n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);a=0,s=5;case 5:for(;i=c,258+(31&i)+(i>>5&31)>a;){let o,w;for(i=l[0];i>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(i=d[3*(u[0]+(f&ot[i]))+1],w=d[3*(u[0]+(f&ot[i]))+2],16>w)f>>>=i,y-=i,r[a++]=w;else{for(v=18==w?7:w-14,o=18==w?11:3;i+v>y;){if(0===b)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);t=0,b--,f|=(255&e.ft(m++))<<y,y+=8}if(f>>>=i,y-=i,o+=f&ot[v],f>>>=v,y-=v,v=a,i=c,v+o>258+(31&i)+(i>>5&31)||16==w&&1>v)return r=null,s=9,e.Le="invalid bit length repeat",t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);w=16==w?r[v-1]:0;do{r[v++]=w}while(0!=--o);a=v}}if(u[0]=-1,A=[],_=[],I=[],P=[],A[0]=9,_[0]=6,i=c,i=p.it(257+(31&i),1+(i>>5&31),r,A,_,I,P,d,e),0!=i)return i==st&&(r=null,s=9),t=i,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);w.init(A[0],_[0],d,I[0],d,P[0]),s=6;case 6:if(n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,1!=(t=w.ut(n,e,t)))return n.wt(e,t);if(t=0,w.ht(e),m=e.nt,b=e.We,f=n.ot,y=n.ct,g=n.write,k=g<n.read?n.read-g-1:n.end-g,0===h){s=0;break}s=7;case 7:if(n.write=g,t=n.wt(e,t),g=n.write,k=g<n.read?n.read-g-1:n.end-g,n.read!=n.write)return n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);s=8;case 8:return t=1,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);case 9:return t=st,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t);default:return t=rt,n.ot=f,n.ct=y,e.We=b,e.qe+=m-e.nt,e.nt=m,n.write=g,n.wt(e,t)}}},n.ht=e=>{n.reset(e,null),n.lt=null,d=null},n.yt=(e,t,r)=>{n.lt.set(e.subarray(t,t+r),0),n.read=n.write=r},n.bt=()=>1==s?1:0}const mt=13,bt=[0,0,255,255];function gt(){const e=this;function t(e){return e&&e.gt?(e.qe=e.Ge=0,e.Le=null,e.gt.mode=7,e.gt.kt.reset(e,null),0):rt}e.mode=0,e.method=0,e.vt=[0],e.St=0,e.marker=0,e.zt=0,e.Ct=t=>(e.kt&&e.kt.ht(t),e.kt=null,0),e.xt=(n,r)=>(n.Le=null,e.kt=null,8>r||r>15?(e.Ct(n),rt):(e.zt=r,n.gt.kt=new yt(n,1<<r),t(n),0)),e.At=(e,t)=>{let n,r;if(!e||!e.gt||!e.et)return rt;const s=e.gt;for(t=4==t?it:0,n=it;;)switch(s.mode){case 0:if(0===e.We)return n;if(n=t,e.We--,e.qe++,8!=(15&(s.method=e.ft(e.nt++)))){s.mode=mt,e.Le="unknown compression method",s.marker=5;break}if(8+(s.method>>4)>s.zt){s.mode=mt,e.Le="invalid win size",s.marker=5;break}s.mode=1;case 1:if(0===e.We)return n;if(n=t,e.We--,e.qe++,r=255&e.ft(e.nt++),((s.method<<8)+r)%31!=0){s.mode=mt,e.Le="incorrect header check",s.marker=5;break}if(!(32&r)){s.mode=7;break}s.mode=2;case 2:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St=(255&e.ft(e.nt++))<<24&4278190080,s.mode=3;case 3:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<16&16711680,s.mode=4;case 4:if(0===e.We)return n;n=t,e.We--,e.qe++,s.St+=(255&e.ft(e.nt++))<<8&65280,s.mode=5;case 5:return 0===e.We?n:(n=t,e.We--,e.qe++,s.St+=255&e.ft(e.nt++),s.mode=6,2);case 6:return s.mode=mt,e.Le="need dictionary",s.marker=0,rt;case 7:if(n=s.kt.ut(e,n),n==st){s.mode=mt,s.marker=0;break}if(0==n&&(n=t),1!=n)return n;n=t,s.kt.reset(e,s.vt),s.mode=12;case 12:return e.We=0,1;case mt:return st;default:return rt}},e._t=(e,t,n)=>{let r=0,s=n;if(!e||!e.gt||6!=e.gt.mode)return rt;const i=e.gt;return s<1<<i.zt||(s=(1<<i.zt)-1,r=n-s),i.kt.yt(t,r,s),i.mode=7,0},e.It=e=>{let n,r,s,i,o;if(!e||!e.gt)return rt;const c=e.gt;if(c.mode!=mt&&(c.mode=mt,c.marker=0),0===(n=e.We))return it;for(r=e.nt,s=c.marker;0!==n&&4>s;)e.ft(r)==bt[s]?s++:s=0!==e.ft(r)?0:4-s,r++,n--;return e.qe+=r-e.nt,e.nt=r,e.We=n,c.marker=s,4!=s?st:(i=e.qe,o=e.Ge,t(e),e.qe=i,e.Ge=o,c.mode=7,0)},e.Pt=e=>e&&e.gt&&e.gt.kt?e.gt.kt.bt():rt}function kt(){}function vt(e){const t=new kt,n=e&&e.chunkSize?r.floor(2*e.chunkSize):131072,o=new i(n);let c=!1;t.xt(),t.$e=o,this.append=(e,r)=>{const f=[];let a,l,u=0,w=0,h=0;if(0!==e.length){t.nt=0,t.et=e,t.We=e.length;do{if(t.rt=0,t.tt=n,0!==t.We||c||(t.nt=0,c=!0),a=t.At(0),c&&a===it){if(0!==t.We)throw new s("inflating: bad input")}else if(0!==a&&1!==a)throw new s("inflating: "+t.Le);if((c||1===a)&&t.We===e.length)throw new s("inflating: bad input");t.rt&&(t.rt===n?f.push(new i(o)):f.push(o.subarray(0,t.rt))),h+=t.rt,r&&t.nt>0&&t.nt!=u&&(r(t.nt),u=t.nt)}while(t.We>0||0===t.tt);return f.length>1?(l=new i(h),f.forEach((e=>{l.set(e,w),w+=e.length}))):l=f[0]?new i(f[0]):new i,l}},this.flush=()=>{t.Ct()}}kt.prototype={xt(e){const t=this;return t.gt=new gt,e||(e=15),t.gt.xt(t,e)},At(e){const t=this;return t.gt?t.gt.At(t,e):rt},Ct(){const e=this;if(!e.gt)return rt;const t=e.gt.Ct(e);return e.gt=null,t},It(){const e=this;return e.gt?e.gt.It(e):rt},_t(e,t){const n=this;return n.gt?n.gt._t(n,e,t):rt},ft(e){return this.et[e]},je(e,t){return this.et.subarray(e,e+t)}},self.initCodec=()=>{self.Deflate=nt,self.Inflate=vt};
78
+ `,i=()=>t.useDataURI?"data:text/javascript,"+encodeURIComponent(r):URL.createObjectURL(new Blob([r],{type:"text/javascript"}));e({workerScripts:{inflate:[i],deflate:[i]}})}const Cy="Writer iterator completed too soon",Oy="Content-Type",Ly=64*1024,ec="writable";class Oa{constructor(){this.size=0}init(){this.initialized=!0}}class tc extends Oa{get readable(){const t=this,{chunkSize:r=Ly}=t,i=new ReadableStream({start(){this.chunkOffset=0},async pull(a){const{offset:n=0,size:s,diskNumberStart:o}=i,{chunkOffset:f}=this;a.enqueue(await Je(t,n+f,Math.min(r,s-f),o)),f+r>s?a.close():this.chunkOffset+=r}});return i}}class ia extends tc{constructor(t){super(),Object.assign(this,{blob:t,size:t.size})}async readUint8Array(t,r){const i=this,a=t+r;let s=await(t||a<i.size?i.blob.slice(t,a):i.blob).arrayBuffer();return s.byteLength>r&&(s=s.slice(t,a)),new Uint8Array(s)}}class Ry extends Oa{constructor(t){super();const r=this,i=new TransformStream,a=[];t&&a.push([Oy,t]),Object.defineProperty(r,ec,{get(){return i.writable}}),r.blob=new Response(i.readable,{headers:a}).blob()}getData(){return this.blob}}class Iy extends tc{constructor(t){super(),this.readers=t}async init(){const t=this,{readers:r}=t;t.lastDiskNumber=0,t.lastDiskOffset=0,await Promise.all(r.map(async(i,a)=>{await i.init(),a!=r.length-1&&(t.lastDiskOffset+=i.size),t.size+=i.size})),super.init()}async readUint8Array(t,r,i=0){const a=this,{readers:n}=this;let s,o=i;o==-1&&(o=n.length-1);let f=t;for(;f>=n[o].size;)f-=n[o].size,o++;const p=n[o],c=p.size;if(f+r<=c)s=await Je(p,f,r);else{const m=c-f;s=new Uint8Array(r),s.set(await Je(p,f,m)),s.set(await a.readUint8Array(t+m,r-m,i),m)}return a.lastDiskNumber=Math.max(o,a.lastDiskNumber),s}}class Ml extends Oa{constructor(t,r=4294967295){super();const i=this;Object.assign(i,{diskNumber:0,diskOffset:0,size:0,maxSize:r,availableSize:r});let a,n,s;const o=new WritableStream({async write(c){const{availableSize:m}=i;if(s)c.length>=m?(await f(c.slice(0,m)),await p(),i.diskOffset+=a.size,i.diskNumber++,s=null,await this.write(c.slice(m))):await f(c);else{const{value:h,done:_}=await t.next();if(_&&!h)throw new Error(Cy);a=h,a.size=0,a.maxSize&&(i.maxSize=a.maxSize),i.availableSize=i.maxSize,await Rn(a),n=h.writable,s=n.getWriter(),await this.write(c)}},async close(){await s.ready,await p()}});Object.defineProperty(i,ec,{get(){return o}});async function f(c){const m=c.length;m&&(await s.ready,await s.write(c),a.size+=m,i.size+=m,i.availableSize-=m)}async function p(){n.size=a.size,await s.close()}}}async function Rn(e,t){if(e.init&&!e.initialized)await e.init(t);else return Promise.resolve()}function Dy(e){return Array.isArray(e)&&(e=new Iy(e)),e instanceof ReadableStream&&(e={readable:e}),e}function Hy(e){e.writable===it&&typeof e.next==Ns&&(e=new Ml(e)),e instanceof WritableStream&&(e={writable:e});const{writable:t}=e;return t.size===it&&(t.size=0),e instanceof Ml||Object.assign(e,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),e}function Je(e,t,r,i){return e.readUint8Array(t,r,i)}const rc="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),$y=rc.length==256;function Fy(e){if($y){let t="";for(let r=0;r<e.length;r++)t+=rc[e[r]];return t}else return new TextDecoder().decode(e)}function _n(e,t){return t&&t.trim().toLowerCase()=="cp437"?Fy(e):new TextDecoder(t).decode(e)}const sc="filename",nc="rawFilename",ic="comment",ac="rawComment",oc="uncompressedSize",lc="compressedSize",fc="offset",aa="diskNumberStart",oa="lastModDate",la="rawLastModDate",pc="lastAccessDate",By="rawLastAccessDate",cc="creationDate",Ny="rawCreationDate",jy="internalFileAttribute",Uy="internalFileAttributes",Wy="externalFileAttribute",My="externalFileAttributes",qy="msDosCompatible",Ky="zip64",zy="encrypted",Vy="version",Gy="versionMadeBy",Zy="zipCrypto",Yy="directory",Xy="executable",Jy=[sc,nc,lc,oc,oa,la,ic,ac,pc,cc,fc,aa,aa,jy,Uy,Wy,My,qy,Ky,zy,Vy,Gy,Zy,Yy,Xy,"bitFlag","signature","filenameUTF8","commentUTF8","compressionMethod","extraField","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp"];class ql{constructor(t){Jy.forEach(r=>this[r]=t[r])}}const $i="File format is not recognized",Qy="End of central directory not found",e_="End of Zip64 central directory locator not found",t_="Central directory header not found",r_="Local file header not found",s_="Zip64 extra field not found",n_="File contains encrypted entry",i_="Encryption method not supported",Kl="Compression method not supported",zl="Split zip file",Vl="utf-8",Gl="cp437",a_=[[oc,Er],[lc,Er],[fc,Er],[aa,fr]],o_={[fr]:{getValue:Ne,bytes:4},[Er]:{getValue:gn,bytes:8}};class Zl{constructor(t,r={}){Object.assign(this,{reader:Dy(t),options:r,config:U0()})}async*getEntriesGenerator(t={}){const r=this;let{reader:i}=r;const{config:a}=r;if(await Rn(i),(i.size===it||!i.readUint8Array)&&(i=new ia(await new Response(i.readable).blob()),await Rn(i)),i.size<Ur)throw new Error($i);i.chunkSize=W0(a);const n=await d_(i,T0,i.size,Ur,fr*16);if(!n){const k=await Je(i,0,4),E=Ve(k);throw Ne(E)==A0?new Error(zl):new Error(Qy)}const s=Ve(n);let o=Ne(s,12),f=Ne(s,16);const p=n.offset,c=ze(s,20),m=p+Ur+c;let h=ze(s,4);const _=i.lastDiskNumber||0;let L=ze(s,6),y=ze(s,8),g=0,b=0;if(f==Er||o==Er||y==fr||L==fr){const k=await Je(i,n.offset-Oi,Oi),E=Ve(k);if(Ne(E,0)==C0){f=gn(E,8);let D=await Je(i,f,Li,-1),I=Ve(D);const N=n.offset-Oi-Li;if(Ne(I,0)!=xl&&f!=N){const U=f;f=N,g=f-U,D=await Je(i,f,Li,-1),I=Ve(D)}if(Ne(I,0)!=xl)throw new Error(e_);h==fr&&(h=Ne(I,16)),L==fr&&(L=Ne(I,20)),y==fr&&(y=gn(I,32)),o==Er&&(o=gn(I,40)),f-=o}}if(f>=i.size&&(g=i.size-f-o-Ur,f=i.size-o-Ur),_!=h)throw new Error(zl);if(f<0)throw new Error($i);let R=0,O=await Je(i,f,o,L),$=Ve(O);if(o){const k=n.offset-o;if(Ne($,R)!=vl&&f!=k){const E=f;f=k,g+=f-E,O=await Je(i,f,o,L),$=Ve(O)}}const A=n.offset-f-(i.lastDiskOffset||0);if(o!=A&&A>=0&&(o=A,O=await Je(i,f,o,L),$=Ve(O)),f<0||f>=i.size)throw new Error($i);const H=rt(r,t,"filenameEncoding"),S=rt(r,t,"commentEncoding");for(let k=0;k<y;k++){const E=new l_(i,a,r.options);if(Ne($,R)!=vl)throw new Error(t_);uc(E,$,R+6);const D=!!E.bitFlag.languageEncodingFlag,I=R+46,N=I+E.filenameLength,U=N+E.extraFieldLength,M=ze($,R+4),Z=M>>8==0,z=M>>8==3,ne=O.subarray(I,N),V=ze($,R+32),Q=U+V,ee=O.subarray(U,Q),G=D,fe=D,ie=Ne($,R+38),ae=Z&&(Xr($,R+38)&Pl)==Pl||z&&(ie>>16&Al)==Al||ne.length&&ne[ne.length-1]==Cl.charCodeAt(0),Se=z&&(ie>>16&Tl)==Tl,Ae=Ne($,R+42)+g;Object.assign(E,{versionMadeBy:M,msDosCompatible:Z,compressedSize:0,uncompressedSize:0,commentLength:V,directory:ae,offset:Ae,diskNumberStart:ze($,R+34),internalFileAttributes:ze($,R+36),externalFileAttributes:ie,rawFilename:ne,filenameUTF8:G,commentUTF8:fe,rawExtraField:O.subarray(N,U),executable:Se}),E.internalFileAttribute=E.internalFileAttributes,E.externalFileAttribute=E.externalFileAttributes;const Ze=rt(r,t,"decodeText")||_n,Qe=G?Vl:H||Gl,bt=fe?Vl:S||Gl;let Re=Ze(ne,Qe);Re===it&&(Re=_n(ne,Qe));let Ie=Ze(ee,bt);Ie===it&&(Ie=_n(ee,bt)),Object.assign(E,{rawComment:ee,filename:Re,comment:Ie,directory:ae||Re.endsWith(Cl)}),b=Math.max(Ae,b),dc(E,E,$,R+6),E.zipCrypto=E.encrypted&&!E.extraFieldAES;const at=new ql(E);at.getData=(v,u)=>E.getData(v,at,u),R=Q;const{onprogress:Ce}=t;if(Ce)try{await Ce(k+1,y,new ql(E))}catch{}yield at}const P=rt(r,t,"extractPrependedData"),C=rt(r,t,"extractAppendedData");return P&&(r.prependedData=b>0?await Je(i,0,b):new Uint8Array),r.comment=c?await Je(i,p+Ur,c):new Uint8Array,C&&(r.appendedData=m<i.size?await Je(i,m,i.size-m):new Uint8Array),!0}async getEntries(t={}){const r=[];for await(const i of this.getEntriesGenerator(t))r.push(i);return r}async close(){}}class l_{constructor(t,r,i){Object.assign(this,{reader:t,config:r,options:i})}async getData(t,r,i={}){const a=this,{reader:n,offset:s,diskNumberStart:o,extraFieldAES:f,compressionMethod:p,config:c,bitFlag:m,signature:h,rawLastModDate:_,uncompressedSize:L,compressedSize:y}=a,g=r.localDirectory={},b=await Je(n,s,30,o),R=Ve(b);let O=rt(a,i,"password"),$=rt(a,i,"rawPassword");const A=rt(a,i,"passThrough");if(O=O&&O.length&&O,$=$&&$.length&&$,f&&f.originalCompressionMethod!=E0)throw new Error(Kl);if(p!=S0&&p!=k0&&!A)throw new Error(Kl);if(Ne(R,0)!=P0)throw new Error(r_);uc(g,R,4),g.rawExtraField=g.extraFieldLength?await Je(n,s+30+g.filenameLength,g.extraFieldLength,o):new Uint8Array,dc(a,g,R,4,!0),Object.assign(r,{lastAccessDate:g.lastAccessDate,creationDate:g.creationDate});const H=a.encrypted&&g.encrypted&&!A,S=H&&!f;if(A||(r.zipCrypto=S),H){if(!S&&f.strength===it)throw new Error(i_);if(!O&&!$)throw new Error(n_)}const P=s+30+g.filenameLength+g.extraFieldLength,C=y,k=n.readable;Object.assign(k,{diskNumberStart:o,offset:P,size:C});const E=rt(a,i,"signal"),D=rt(a,i,"checkPasswordOnly");D&&(t=new WritableStream),t=Hy(t),await Rn(t,A?y:L);const{writable:I}=t,{onstart:N,onprogress:U,onend:M}=i,Z={options:{codecType:Xp,password:O,rawPassword:$,zipCrypto:S,encryptionStrength:f&&f.strength,signed:rt(a,i,"checkSignature")&&!A,passwordVerification:S&&(m.dataDescriptor?_>>>8&255:h>>>24&255),signature:h,compressed:p!=0&&!A,encrypted:a.encrypted&&!A,useWebWorkers:rt(a,i,"useWebWorkers"),useCompressionStream:rt(a,i,"useCompressionStream"),transferStreams:rt(a,i,"transferStreams"),checkPasswordOnly:D},config:c,streamOptions:{signal:E,size:C,onstart:N,onprogress:U,onend:M}};let z=0;try{({outputSize:z}=await Py({readable:k,writable:I},Z))}catch(ne){if(!D||ne.message!=Aa)throw ne}finally{const ne=rt(a,i,"preventClose");I.size+=z,!ne&&!I.locked&&await I.getWriter().close()}return D?it:t.getData?t.getData():I}}function uc(e,t,r){const i=e.rawBitFlag=ze(t,r+2),a=(i&kl)==kl,n=Ne(t,r+6);Object.assign(e,{encrypted:a,version:ze(t,r),bitFlag:{level:(i&B0)>>1,dataDescriptor:(i&Sl)==Sl,languageEncodingFlag:(i&El)==El},rawLastModDate:n,lastModDate:h_(n),filenameLength:ze(t,r+22),extraFieldLength:ze(t,r+24)})}function dc(e,t,r,i,a){const{rawExtraField:n}=t,s=t.extraField=new Map,o=Ve(new Uint8Array(n));let f=0;try{for(;f<n.length;){const b=ze(o,f),R=ze(o,f+2);s.set(b,{type:b,data:n.slice(f+4,f+4+R)}),f+=4+R}}catch{}const p=ze(r,i+4);Object.assign(t,{signature:Ne(r,i+10),uncompressedSize:Ne(r,i+18),compressedSize:Ne(r,i+14)});const c=s.get(O0);c&&(f_(c,t),t.extraFieldZip64=c);const m=s.get(H0);m&&(Yl(m,sc,nc,t,e),t.extraFieldUnicodePath=m);const h=s.get($0);h&&(Yl(h,ic,ac,t,e),t.extraFieldUnicodeComment=h);const _=s.get(L0);_?(p_(_,t,p),t.extraFieldAES=_):t.compressionMethod=p;const L=s.get(R0);L&&(c_(L,t),t.extraFieldNTFS=L);const y=s.get(D0);y&&(u_(y,t,a),t.extraFieldExtendedTimestamp=y);const g=s.get(F0);g&&(t.extraFieldUSDZ=g)}function f_(e,t){t.zip64=!0;const r=Ve(e.data),i=a_.filter(([a,n])=>t[a]==n);for(let a=0,n=0;a<i.length;a++){const[s,o]=i[a];if(t[s]==o){const f=o_[o];t[s]=e[s]=f.getValue(r,n),n+=f.bytes}else if(e[s])throw new Error(s_)}}function Yl(e,t,r,i,a){const n=Ve(e.data),s=new On;s.append(a[r]);const o=Ve(new Uint8Array(4));o.setUint32(0,s.get(),!0);const f=Ne(n,1);Object.assign(e,{version:Xr(n,0),[t]:_n(e.data.subarray(5)),valid:!a.bitFlag.languageEncodingFlag&&f==Ne(o,0)}),e.valid&&(i[t]=e[t],i[t+"UTF8"]=!0)}function p_(e,t,r){const i=Ve(e.data),a=Xr(i,4);Object.assign(e,{vendorVersion:Xr(i,0),vendorId:Xr(i,2),strength:a,originalCompressionMethod:r,compressionMethod:ze(i,5)}),t.compressionMethod=e.compressionMethod}function c_(e,t){const r=Ve(e.data);let i=4,a;try{for(;i<e.data.length&&!a;){const n=ze(r,i),s=ze(r,i+2);n==I0&&(a=e.data.slice(i+4,i+4+s)),i+=4+s}}catch{}try{if(a&&a.length==24){const n=Ve(a),s=n.getBigUint64(0,!0),o=n.getBigUint64(8,!0),f=n.getBigUint64(16,!0);Object.assign(e,{rawLastModDate:s,rawLastAccessDate:o,rawCreationDate:f});const p=Fi(s),c=Fi(o),m=Fi(f),h={lastModDate:p,lastAccessDate:c,creationDate:m};Object.assign(e,h),Object.assign(t,h)}}catch{}}function u_(e,t,r){const i=Ve(e.data),a=Xr(i,0),n=[],s=[];r?((a&1)==1&&(n.push(oa),s.push(la)),(a&2)==2&&(n.push(pc),s.push(By)),(a&4)==4&&(n.push(cc),s.push(Ny))):e.data.length>=5&&(n.push(oa),s.push(la));let o=1;n.forEach((f,p)=>{if(e.data.length>=o+4){const c=Ne(i,o);t[f]=e[f]=new Date(c*1e3);const m=s[p];e[m]=c}o+=4})}async function d_(e,t,r,i,a){const n=new Uint8Array(4),s=Ve(n);m_(s,0,t);const o=i+a;return await f(i)||await f(Math.min(o,r));async function f(p){const c=r-p,m=await Je(e,c,p);for(let h=m.length-i;h>=0;h--)if(m[h]==n[0]&&m[h+1]==n[1]&&m[h+2]==n[2]&&m[h+3]==n[3])return{offset:c+h,buffer:m.slice(h,h+i).buffer}}}function rt(e,t,r){return t[r]===it?e.options[r]:t[r]}function h_(e){const t=(e&4294901760)>>16,r=e&65535;try{return new Date(1980+((t&65024)>>9),((t&480)>>5)-1,t&31,(r&63488)>>11,(r&2016)>>5,(r&31)*2,0)}catch{}}function Fi(e){return new Date(Number(e/BigInt(1e4)-BigInt(116444736e5)))}function Xr(e,t){return e.getUint8(t)}function ze(e,t){return e.getUint16(t,!0)}function Ne(e,t){return e.getUint32(t,!0)}function gn(e,t){return Number(e.getBigUint64(t,!0))}function m_(e,t,r){e.setUint32(t,r,!0)}function Ve(e){return new DataView(e.buffer)}let hc;try{hc=typeof document>"u"?require("url").pathToFileURL(__filename).href:zr&&zr.tagName.toUpperCase()==="SCRIPT"&&zr.src||new URL("index.cjs",document.baseURI).href}catch{}Pa({baseURL:hc});Ty(Pa);Pa({Deflate:t0,Inflate:x0});class y_{constructor(t){this.fileTree=t}async read(t){let r=this.getEntryAtPath(t);if(typeof r=="string")r=new TextEncoder().encode(r);else if(!(r instanceof Uint8Array))throw new Error(`Unsupported content type: ${typeof r}`);const i=new ReadableStream({start(a){a.enqueue(r),a.close()}});return new bs(i,t,{filesize:r.byteLength})}getEntryAtPath(t){let r=t.replace(/^\//,""),i=this.fileTree;for(;r;){if(i[r])return i[r];const a=r.split("/"),n=a.shift();if(!n||!i[n])break;i=i[n],r=a.join("/")}throw new Error(`File not found at ${t}`)}}class In{constructor(t){this.entries=new Map,this.zipReader=t}static fromStream(t){const r=new Zl(new ia(new bs(t,"archive.zip")));return new In(r)}static fromArrayBuffer(t){const r=new Zl(new ia(new Blob([t])));return new In(r)}async read(t){const r=await this.getEntry(t),i=await r.getData(new Ry);return new bs(i.stream(),t,{filesize:r.uncompressedSize})}async getEntry(t){const i=(await this.getEntries()).get(t.replace(/^\//,""));if(!i)throw new Error(`File ${t} not found in the zip.`);return i}async getEntries(){if(this.entries.size===0){const t=await this.zipReader.getEntries();for(const r of t)this.entries.set(r.filename,r)}return this.entries}}class __{constructor(t){if(!t.length)throw new Error("OverlayFilesystem requires at least one filesystem");this.filesystems=t}async read(t){const r=[];for(const a of this.filesystems)try{return await a.read(t)}catch(n){r.push(n instanceof Error?n:new Error(String(n)))}const i=r.map(a=>a.message).join("; ");throw new Error(`Failed to read ${t} from any filesystem: ${i}`,{cause:r})}}class g_{constructor(t){if(this.baseUrl="",this.options=t,this.isDataUrl=t.baseUrl.startsWith("data:"),this.isDataUrl)return;const r=new URL("./",t.baseUrl);if(r.protocol!=="http:"&&r.protocol!=="https:")throw new Error("Unsupported protocol: "+r.protocol+". Only HTTP and HTTPS are supported.");this.baseUrl=r.origin+r.pathname}async read(t){if(this.isDataUrl)throw new Error("FetchFilesystem cannot fetch files from data URLs");t=Hn(t);const r=t.replace(/^\//,""),i=new URL(r,this.baseUrl).toString();if(!i.startsWith(this.baseUrl))throw new Error(`Refused to read a file outside of the base URL: ${i}`);const a=this.options.corsProxy?`${this.options.corsProxy}${encodeURIComponent(i)}`:i,n=await fetch(a);if(!n.ok)throw new Error(`Failed to fetch file at ${t}: ${n.statusText}`);const s=n.headers.get("content-length")?parseInt(n.headers.get("content-length"),10):void 0;return new bs(n.body,t,{filesize:s})}}function Gn(e){const t=e.split(".").shift().replace(/-/g," ");return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}function tr(e){return Object.fromEntries(Object.entries(e).map(([t,r])=>[r,t]))}const w_={server_name:0,max_fragment_length:1,client_certificate_url:2,trusted_ca_keys:3,truncated_hmac:4,status_request:5,user_mapping:6,client_authz:7,server_authz:8,cert_type:9,supported_groups:10,ec_point_formats:11,srp:12,signature_algorithms:13,use_srtp:14,heartbeat:15,application_layer_protocol_negotiation:16,status_request_v2:17,signed_certificate_timestamp:18,client_certificate_type:19,server_certificate_type:20,padding:21,encrypt_then_mac:22,extended_master_secret:23,token_binding:24,cached_info:25,tls_its:26,compress_certificate:27,record_size_limit:28,pwd_protect:29,pwo_clear:30,password_salt:31,ticket_pinning:32,tls_cert_with_extern_psk:33,delegated_credential:34,session_ticket:35,TLMSP:36,TLMSP_proxying:37,TLMSP_delegate:38,supported_ekt_ciphers:39,pre_shared_key:41,early_data:42,supported_versions:43,cookie:44,psk_key_exchange_modes:45,reserved:46,certificate_authorities:47,oid_filters:48,post_handshake_auth:49,signature_algorithms_cert:50,key_share:51,transparency_info:52,connection_id:54};tr(w_);const b_={host_name:0};tr(b_);const v_={TLS1_CK_PSK_WITH_RC4_128_SHA:138,TLS1_CK_PSK_WITH_3DES_EDE_CBC_SHA:139,TLS1_CK_PSK_WITH_AES_128_CBC_SHA:140,TLS1_CK_PSK_WITH_AES_256_CBC_SHA:141,TLS1_CK_DHE_PSK_WITH_RC4_128_SHA:142,TLS1_CK_DHE_PSK_WITH_3DES_EDE_CBC_SHA:143,TLS1_CK_DHE_PSK_WITH_AES_128_CBC_SHA:144,TLS1_CK_DHE_PSK_WITH_AES_256_CBC_SHA:145,TLS1_CK_RSA_PSK_WITH_RC4_128_SHA:146,TLS1_CK_RSA_PSK_WITH_3DES_EDE_CBC_SHA:147,TLS1_CK_RSA_PSK_WITH_AES_128_CBC_SHA:148,TLS1_CK_RSA_PSK_WITH_AES_256_CBC_SHA:149,TLS1_CK_PSK_WITH_AES_128_GCM_SHA256:168,TLS1_CK_PSK_WITH_AES_256_GCM_SHA384:169,TLS1_CK_DHE_PSK_WITH_AES_128_GCM_SHA256:170,TLS1_CK_DHE_PSK_WITH_AES_256_GCM_SHA384:171,TLS1_CK_RSA_PSK_WITH_AES_128_GCM_SHA256:172,TLS1_CK_RSA_PSK_WITH_AES_256_GCM_SHA384:173,TLS1_CK_PSK_WITH_AES_128_CBC_SHA256:174,TLS1_CK_PSK_WITH_AES_256_CBC_SHA384:175,TLS1_CK_PSK_WITH_NULL_SHA256:176,TLS1_CK_PSK_WITH_NULL_SHA384:177,TLS1_CK_DHE_PSK_WITH_AES_128_CBC_SHA256:178,TLS1_CK_DHE_PSK_WITH_AES_256_CBC_SHA384:179,TLS1_CK_DHE_PSK_WITH_NULL_SHA256:180,TLS1_CK_DHE_PSK_WITH_NULL_SHA384:181,TLS1_CK_RSA_PSK_WITH_AES_128_CBC_SHA256:182,TLS1_CK_RSA_PSK_WITH_AES_256_CBC_SHA384:183,TLS1_CK_RSA_PSK_WITH_NULL_SHA256:184,TLS1_CK_RSA_PSK_WITH_NULL_SHA384:185,TLS1_CK_PSK_WITH_NULL_SHA:44,TLS1_CK_DHE_PSK_WITH_NULL_SHA:45,TLS1_CK_RSA_PSK_WITH_NULL_SHA:46,TLS1_CK_RSA_WITH_AES_128_SHA:47,TLS1_CK_DH_DSS_WITH_AES_128_SHA:48,TLS1_CK_DH_RSA_WITH_AES_128_SHA:49,TLS1_CK_DHE_DSS_WITH_AES_128_SHA:50,TLS1_CK_DHE_RSA_WITH_AES_128_SHA:51,TLS1_CK_ADH_WITH_AES_128_SHA:52,TLS1_CK_RSA_WITH_AES_256_SHA:53,TLS1_CK_DH_DSS_WITH_AES_256_SHA:54,TLS1_CK_DH_RSA_WITH_AES_256_SHA:55,TLS1_CK_DHE_DSS_WITH_AES_256_SHA:56,TLS1_CK_DHE_RSA_WITH_AES_256_SHA:57,TLS1_CK_ADH_WITH_AES_256_SHA:58,TLS1_CK_RSA_WITH_NULL_SHA256:59,TLS1_CK_RSA_WITH_AES_128_SHA256:60,TLS1_CK_RSA_WITH_AES_256_SHA256:61,TLS1_CK_DH_DSS_WITH_AES_128_SHA256:62,TLS1_CK_DH_RSA_WITH_AES_128_SHA256:63,TLS1_CK_DHE_DSS_WITH_AES_128_SHA256:64,TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA:65,TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA:66,TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA:67,TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA:68,TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA:69,TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA:70,TLS1_CK_DHE_RSA_WITH_AES_128_SHA256:103,TLS1_CK_DH_DSS_WITH_AES_256_SHA256:104,TLS1_CK_DH_RSA_WITH_AES_256_SHA256:105,TLS1_CK_DHE_DSS_WITH_AES_256_SHA256:106,TLS1_CK_DHE_RSA_WITH_AES_256_SHA256:107,TLS1_CK_ADH_WITH_AES_128_SHA256:108,TLS1_CK_ADH_WITH_AES_256_SHA256:109,TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA:132,TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA:133,TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA:134,TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA:135,TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA:136,TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA:137,TLS1_CK_RSA_WITH_SEED_SHA:150,TLS1_CK_DH_DSS_WITH_SEED_SHA:151,TLS1_CK_DH_RSA_WITH_SEED_SHA:152,TLS1_CK_DHE_DSS_WITH_SEED_SHA:153,TLS1_CK_DHE_RSA_WITH_SEED_SHA:154,TLS1_CK_ADH_WITH_SEED_SHA:155,TLS1_CK_RSA_WITH_AES_128_GCM_SHA256:156,TLS1_CK_RSA_WITH_AES_256_GCM_SHA384:157,TLS1_CK_DHE_RSA_WITH_AES_128_GCM_SHA256:158,TLS1_CK_DHE_RSA_WITH_AES_256_GCM_SHA384:159,TLS1_CK_DH_RSA_WITH_AES_128_GCM_SHA256:160,TLS1_CK_DH_RSA_WITH_AES_256_GCM_SHA384:161,TLS1_CK_DHE_DSS_WITH_AES_128_GCM_SHA256:162,TLS1_CK_DHE_DSS_WITH_AES_256_GCM_SHA384:163,TLS1_CK_DH_DSS_WITH_AES_128_GCM_SHA256:164,TLS1_CK_DH_DSS_WITH_AES_256_GCM_SHA384:165,TLS1_CK_ADH_WITH_AES_128_GCM_SHA256:166,TLS1_CK_ADH_WITH_AES_256_GCM_SHA384:167,TLS1_CK_RSA_WITH_AES_128_CCM:49308,TLS1_CK_RSA_WITH_AES_256_CCM:49309,TLS1_CK_DHE_RSA_WITH_AES_128_CCM:49310,TLS1_CK_DHE_RSA_WITH_AES_256_CCM:49311,TLS1_CK_RSA_WITH_AES_128_CCM_8:49312,TLS1_CK_RSA_WITH_AES_256_CCM_8:49313,TLS1_CK_DHE_RSA_WITH_AES_128_CCM_8:49314,TLS1_CK_DHE_RSA_WITH_AES_256_CCM_8:49315,TLS1_CK_PSK_WITH_AES_128_CCM:49316,TLS1_CK_PSK_WITH_AES_256_CCM:49317,TLS1_CK_DHE_PSK_WITH_AES_128_CCM:49318,TLS1_CK_DHE_PSK_WITH_AES_256_CCM:49319,TLS1_CK_PSK_WITH_AES_128_CCM_8:49320,TLS1_CK_PSK_WITH_AES_256_CCM_8:49321,TLS1_CK_DHE_PSK_WITH_AES_128_CCM_8:49322,TLS1_CK_DHE_PSK_WITH_AES_256_CCM_8:49323,TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM:49324,TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM:49325,TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CCM_8:49326,TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CCM_8:49327,TLS1_CK_RSA_WITH_CAMELLIA_128_CBC_SHA256:186,TLS1_CK_DH_DSS_WITH_CAMELLIA_128_CBC_SHA256:187,TLS1_CK_DH_RSA_WITH_CAMELLIA_128_CBC_SHA256:188,TLS1_CK_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256:189,TLS1_CK_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256:190,TLS1_CK_ADH_WITH_CAMELLIA_128_CBC_SHA256:191,TLS1_CK_RSA_WITH_CAMELLIA_256_CBC_SHA256:192,TLS1_CK_DH_DSS_WITH_CAMELLIA_256_CBC_SHA256:193,TLS1_CK_DH_RSA_WITH_CAMELLIA_256_CBC_SHA256:194,TLS1_CK_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256:195,TLS1_CK_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256:196,TLS1_CK_ADH_WITH_CAMELLIA_256_CBC_SHA256:197,TLS1_CK_ECDH_ECDSA_WITH_NULL_SHA:49153,TLS1_CK_ECDH_ECDSA_WITH_RC4_128_SHA:49154,TLS1_CK_ECDH_ECDSA_WITH_DES_192_CBC3_SHA:49155,TLS1_CK_ECDH_ECDSA_WITH_AES_128_CBC_SHA:49156,TLS1_CK_ECDH_ECDSA_WITH_AES_256_CBC_SHA:49157,TLS1_CK_ECDHE_ECDSA_WITH_NULL_SHA:49158,TLS1_CK_ECDHE_ECDSA_WITH_RC4_128_SHA:49159,TLS1_CK_ECDHE_ECDSA_WITH_DES_192_CBC3_SHA:49160,TLS1_CK_ECDHE_ECDSA_WITH_AES_128_CBC_SHA:49161,TLS1_CK_ECDHE_ECDSA_WITH_AES_256_CBC_SHA:49162,TLS1_CK_ECDH_RSA_WITH_NULL_SHA:49163,TLS1_CK_ECDH_RSA_WITH_RC4_128_SHA:49164,TLS1_CK_ECDH_RSA_WITH_DES_192_CBC3_SHA:49165,TLS1_CK_ECDH_RSA_WITH_AES_128_CBC_SHA:49166,TLS1_CK_ECDH_RSA_WITH_AES_256_CBC_SHA:49167,TLS1_CK_ECDHE_RSA_WITH_NULL_SHA:49168,TLS1_CK_ECDHE_RSA_WITH_RC4_128_SHA:49169,TLS1_CK_ECDHE_RSA_WITH_DES_192_CBC3_SHA:49170,TLS1_CK_ECDHE_RSA_WITH_AES_128_CBC_SHA:49171,TLS1_CK_ECDHE_RSA_WITH_AES_256_CBC_SHA:49172,TLS1_CK_ECDH_anon_WITH_NULL_SHA:49173,TLS1_CK_ECDH_anon_WITH_RC4_128_SHA:49174,TLS1_CK_ECDH_anon_WITH_DES_192_CBC3_SHA:49175,TLS1_CK_ECDH_anon_WITH_AES_128_CBC_SHA:49176,TLS1_CK_ECDH_anon_WITH_AES_256_CBC_SHA:49177,TLS1_CK_SRP_SHA_WITH_3DES_EDE_CBC_SHA:49178,TLS1_CK_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA:49179,TLS1_CK_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA:49180,TLS1_CK_SRP_SHA_WITH_AES_128_CBC_SHA:49181,TLS1_CK_SRP_SHA_RSA_WITH_AES_128_CBC_SHA:49182,TLS1_CK_SRP_SHA_DSS_WITH_AES_128_CBC_SHA:49183,TLS1_CK_SRP_SHA_WITH_AES_256_CBC_SHA:49184,TLS1_CK_SRP_SHA_RSA_WITH_AES_256_CBC_SHA:49185,TLS1_CK_SRP_SHA_DSS_WITH_AES_256_CBC_SHA:49186,TLS1_CK_ECDHE_ECDSA_WITH_AES_128_SHA256:49187,TLS1_CK_ECDHE_ECDSA_WITH_AES_256_SHA384:49188,TLS1_CK_ECDH_ECDSA_WITH_AES_128_SHA256:49189,TLS1_CK_ECDH_ECDSA_WITH_AES_256_SHA384:49190,TLS1_CK_ECDHE_RSA_WITH_AES_128_SHA256:49191,TLS1_CK_ECDHE_RSA_WITH_AES_256_SHA384:49192,TLS1_CK_ECDH_RSA_WITH_AES_128_SHA256:49193,TLS1_CK_ECDH_RSA_WITH_AES_256_SHA384:49194,TLS1_CK_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256:49195,TLS1_CK_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384:49196,TLS1_CK_ECDH_ECDSA_WITH_AES_128_GCM_SHA256:49197,TLS1_CK_ECDH_ECDSA_WITH_AES_256_GCM_SHA384:49198,TLS1_CK_ECDHE_RSA_WITH_AES_128_GCM_SHA256:49199,TLS1_CK_ECDHE_RSA_WITH_AES_256_GCM_SHA384:49200,TLS1_CK_ECDH_RSA_WITH_AES_128_GCM_SHA256:49201,TLS1_CK_ECDH_RSA_WITH_AES_256_GCM_SHA384:49202,TLS1_CK_ECDHE_PSK_WITH_RC4_128_SHA:49203,TLS1_CK_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA:49204,TLS1_CK_ECDHE_PSK_WITH_AES_128_CBC_SHA:49205,TLS1_CK_ECDHE_PSK_WITH_AES_256_CBC_SHA:49206,TLS1_CK_ECDHE_PSK_WITH_AES_128_CBC_SHA256:49207,TLS1_CK_ECDHE_PSK_WITH_AES_256_CBC_SHA384:49208,TLS1_CK_ECDHE_PSK_WITH_NULL_SHA:49209,TLS1_CK_ECDHE_PSK_WITH_NULL_SHA256:49210,TLS1_CK_ECDHE_PSK_WITH_NULL_SHA384:49211,TLS1_CK_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256:49266,TLS1_CK_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384:49267,TLS1_CK_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256:49268,TLS1_CK_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384:49269,TLS1_CK_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256:49270,TLS1_CK_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384:49271,TLS1_CK_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256:49272,TLS1_CK_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384:49273,TLS1_CK_PSK_WITH_CAMELLIA_128_CBC_SHA256:49300,TLS1_CK_PSK_WITH_CAMELLIA_256_CBC_SHA384:49301,TLS1_CK_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256:49302,TLS1_CK_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384:49303,TLS1_CK_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256:49304,TLS1_CK_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384:49305,TLS1_CK_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256:49306,TLS1_CK_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384:49307,TLS1_CK_ECDHE_RSA_WITH_CHACHA20_POLY1305:52392,TLS1_CK_ECDHE_ECDSA_WITH_CHACHA20_POLY1305:52393,TLS1_CK_DHE_RSA_WITH_CHACHA20_POLY1305:52394,TLS1_CK_PSK_WITH_CHACHA20_POLY1305:52395,TLS1_CK_ECDHE_PSK_WITH_CHACHA20_POLY1305:52396,TLS1_CK_DHE_PSK_WITH_CHACHA20_POLY1305:52397,TLS1_CK_RSA_PSK_WITH_CHACHA20_POLY1305:52398};tr(v_);const x_={secp256r1:23,secp384r1:24,secp521r1:25,x25519:29,x448:30};tr(x_);const k_={uncompressed:0,ansiX962_compressed_prime:1,ansiX962_compressed_char2:2};tr(k_);const S_={anonymous:0,rsa:1,dsa:2,ecdsa:3};tr(S_);const E_={none:0,md5:1,sha1:2,sha224:3,sha256:4,sha384:5,sha512:6};tr(E_);const P_={Warning:1,Fatal:2};tr(P_);const A_={CloseNotify:0,UnexpectedMessage:10,BadRecordMac:20,DecryptionFailed:21,RecordOverflow:22,DecompressionFailure:30,HandshakeFailure:40,NoCertificate:41,BadCertificate:42,UnsupportedCertificate:43,CertificateRevoked:44,CertificateExpired:45,CertificateUnknown:46,IllegalParameter:47,UnknownCa:48,AccessDenied:49,DecodeError:50,DecryptError:51,ExportRestriction:60,ProtocolVersion:70,InsufficientSecurity:71,InternalError:80,UserCanceled:90,NoRenegotiation:100,UnsupportedExtension:110};tr(A_);crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!0,["deriveKey","deriveBits"]);async function fa(e,t){const r=["GET","HEAD"].includes(e.method)||"body"in t?void 0:await e.blob();return new Request(t.url||e.url,{body:r,method:e.method,headers:e.headers,referrer:e.referrer,referrerPolicy:e.referrerPolicy,mode:e.mode==="navigate"?"same-origin":e.mode,credentials:e.credentials,cache:e.cache,redirect:e.redirect,integrity:e.integrity,...t})}async function T_(e){if(!e.body)return[e,e];const[t,r]=e.body.tee();return[await fa(e,{body:t,duplex:"half"}),await fa(e,{body:r,duplex:"half"})]}async function C_(e,t,r,i){var p;const a=typeof e=="string"?new Request(e,t):e;if(!r)return await fetch(a);const n=i?new URL(i):null,s=new URL(a.url,n||void 0);if(n&&s.protocol===n.protocol&&s.hostname===n.hostname&&s.port===n.port&&s.pathname.startsWith(n.pathname))return await fetch(a);const[o,f]=await T_(a);try{return await fetch(o)}catch{const m=((p=new Headers(f.headers).get("x-cors-proxy-allowed-request-headers"))==null?void 0:p.split(","))||[],h=m.includes("authorization")||m.includes("cookie"),_=await fa(f,{url:`${r}${a.url}`,...h&&{credentials:"include"}});return await fetch(_,t)}}class Lg extends TransformStream{constructor(){let t=new Uint8Array(0),r="SCAN_CHUNK_SIZE",i=0;super({transform(a,n){for(t=cu([t,a]);t.length>0;)if(r==="SCAN_CHUNK_SIZE"){if(t.length<3)return;let s=0;for(;s<t.length;){const p=t[s];if(!(p>=48&&p<=57||p>=97&&p<=102||p>=65&&p<=70))break;s++}if(s===0)throw new Error("Invalid chunk size format");if(t.length<s+2)return;if(t[s]!==13||t[s+1]!==10)throw new Error("Invalid chunk size format. Expected CRLF after chunk size");const o=new TextDecoder().decode(t.slice(0,s)),f=parseInt(o,16);if(t=t.slice(s+2),f===0){r="SCAN_FINAL_CHUNK",n.terminate();return}i=f,r="SCAN_CHUNK_DATA"}else if(r==="SCAN_CHUNK_DATA"){const s=Math.min(i,t.length),o=t.slice(0,s);t=t.slice(s),i-=s,n.enqueue(o),i===0&&(r="SCAN_CHUNK_TRAILER")}else if(r==="SCAN_CHUNK_TRAILER"){if(t.length<2)return;if(t[0]!==13||t[1]!==10)throw new Error("Invalid chunk trailer format. Expected CRLF after chunk data");t=t.slice(2),r="SCAN_CHUNK_SIZE"}}})}}new Qr({concurrency:15});const O_=["vfs","literal","wordpress.org/themes","wordpress.org/plugins","url","git:directory","bundled"];function L_(e){return e&&typeof e=="object"&&typeof e.resource=="string"&&O_.includes(e.resource)}class zt{get progress(){return this._progress}set progress(t){this._progress=t}setPlayground(t){this.playground=t}get isAsync(){return!1}static create(t,{semaphore:r,progress:i,corsProxy:a,streamBundledFile:n}){let s;switch(t.resource){case"vfs":s=new R_(t,i);break;case"literal":s=new I_(t,i);break;case"wordpress.org/themes":s=new j_(t,i);break;case"wordpress.org/plugins":s=new U_(t,i);break;case"url":s=new $_(t,i,{corsProxy:a});break;case"git:directory":s=new F_(t,i,{corsProxy:a});break;case"literal:directory":s=new N_(t,i);break;case"bundled":if(!n)throw new Error("Filesystem is required for blueprint resources");s=new q_(t,n,i);break;default:throw new Error(`Unknown resource type: ${t.resource}`)}return r&&(s=new M_(s,r)),new W_(s)}}class mc extends zt{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 R_ extends zt{constructor(t,r){super(),this.resource=t,this._progress=r}async resolve(){var r;const t=await this.playground.readFileAsBuffer(this.resource.path);return(r=this.progress)==null||r.set(100),new File([t],this.name)}get name(){return this.resource.path.split("/").pop()||""}}class I_ extends zt{constructor(t,r){super(),this.resource=t,this._progress=r}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 La extends zt{constructor(t,r){super(),this._progress=t,this.corsProxy=r}async resolve(){var r,i,a;(r=this.progress)==null||r.setCaption(this.caption);const t=this.getURL();try{let n=await C_(t,void 0,this.corsProxy,await((i=this.playground)==null?void 0:i.absoluteUrl));if(!n.ok)throw new Error(`Could not download "${t}"`);if(n=await nu(n,((a=this.progress)==null?void 0:a.loadingListener)??H_),n.status!==200)throw new Error(`Could not download "${t}"`);const s=this.name||D_(n.headers.get("content-disposition")||"")||encodeURIComponent(t);return new File([await n.blob()],s)}catch(n){throw new Error(`Could not download "${t}".
79
79
  Check if the URL is correct and the server is reachable.
80
80
  If it is reachable, the server might be blocking the request.
81
81
  Check the browser console and network tabs for more information.
@@ -99,9 +99,9 @@ gpgsig`+si(s)+`
99
99
  https://raw.githubusercontent.com/username/repository/branch/filename
100
100
 
101
101
  Error:
102
- ${n}`)}}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}}function E_(e){if(!e)return null;const t=e.match(/filename\*?=([^;]+)/i);if(!t)return null;let r=t[1].trim();if((r.startsWith('"')&&r.endsWith('"')||r.startsWith("'")&&r.endsWith("'"))&&(r=r.slice(1,-1)),t[0].includes("filename*")){const i=r.match(/^[^']*'[^']*'(.+)$/);if(i)try{r=decodeURIComponent(i[1])}catch{}}return r}const P_=()=>{};class A_ extends Ta{constructor(t,r,i){if(super(r,i==null?void 0:i.corsProxy),this.resource=t,this.options=i,this.resource.url.startsWith("https://github.com/")){const a=this.resource.url.match(/^https:\/\/github\.com\/(?<owner>[^/]+)\/(?<repo>[^/]+)\/blob\/(?<branch>[^/]+)\/(?<path>.+[^/])$/);a!=null&&a.groups&&(this.resource={...this.resource,url:`https://raw.githubusercontent.com/${a.groups.owner}/${a.groups.repo}/${a.groups.branch}/${a.groups.path}`})}}getURL(){return this.resource.url}get caption(){return this.resource.caption??super.caption}}class T_ extends Kt{constructor(t,r,i){super(),this.reference=t,this._progress=r,this.options=i}async resolve(){var o;const t=(o=this.options)!=null&&o.corsProxy?`${this.options.corsProxy}${this.reference.url}`:this.reference.url,r=await km(t,{value:this.reference.ref,type:"infer"}),i=await xm(t,r),a=this.reference.path.replace(/^\/+/,""),n=Cm(i,a);let s=await vm(t,r,n);return s=C_(s,f=>f.substring(a.length).replace(/^\/+/,"")),{name:bn(this.reference.path)||this.reference.url.replaceAll(/[^a-zA-Z0-9-.]/g,"-").replaceAll(/-+/g,"-"),files:s}}get name(){return this.reference.path.split("/").pop()}}function C_(e,t){return Object.fromEntries(Object.entries(e).map(([r,i])=>[t(r),i]))}class O_ extends Kt{constructor(t,r){super(),this.reference=t,this._progress=r}async resolve(){return this.reference}get name(){return this.reference.name}}class L_ extends Ta{constructor(t,r){super(r),this.resource=t}get name(){return Gn(this.resource.slug)}getURL(){return`https://downloads.wordpress.org/theme/${cc(this.resource.slug)}`}}class R_ extends Ta{constructor(t,r){super(r),this.resource=t}get name(){return Gn(this.resource.slug)}getURL(){return`https://downloads.wordpress.org/plugin/${cc(this.resource.slug)}`}}function cc(e){return!e||e.endsWith(".zip")?e:e+".latest-stable.zip"}class I_ extends pc{async resolve(){return this.promise||(this.promise=this.resource.resolve()),this.promise}}class D_ extends pc{constructor(t,r){super(t),this.semaphore=r}async resolve(){return this.isAsync?this.semaphore.run(()=>this.resource.resolve()):this.resource.resolve()}}class $_ extends Kt{constructor(t,r,i){if(!r)throw new Error(`You are trying to run a Blueprint that refers to a bundled file ("blueprint" resource type), but you did not provide the rest of the bundle. This Blueprint won't work as a standalone JSON file. You'll need to load the entire bundle, e.g. a blueprint.zip file. Alternatively, you may try loading it directly from a URL or a local directory and Playground will try (with your permission) to source the missing files from paths relative to the blueprint file.`);super(),this.resource=t,this.streamBundledFile=r,this._progress=i}async resolve(){var t,r,i;(t=this.progress)==null||t.set(0);try{const a=await this.streamBundledFile(this.resource.path),n=a.filesize;if(!n)return(r=this.progress)==null||r.set(100),a;const s=tf(a.stream(),n,o=>{var f;(f=this.progress)==null||f.set(o.detail.loaded/o.detail.total*100)});return new bs(s,this.name,{filesize:n})}catch(a){throw(i=this.progress)==null||i.set(100),new Error(`Failed to read file from blueprint. This Blueprint refers to a resource of type "bundled" with path "${this.resource.path}" that was not available. Please ensure that the entire bundle, such as a blueprint.zip file, is loaded. If you are trying to load the Blueprint directly from a URL or a local directory, make sure that all the necessary files are accessible and located relative to the blueprint file.
102
+ ${n}`)}}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}}function D_(e){if(!e)return null;const t=e.match(/filename\*?=([^;]+)/i);if(!t)return null;let r=t[1].trim();if((r.startsWith('"')&&r.endsWith('"')||r.startsWith("'")&&r.endsWith("'"))&&(r=r.slice(1,-1)),t[0].includes("filename*")){const i=r.match(/^[^']*'[^']*'(.+)$/);if(i)try{r=decodeURIComponent(i[1])}catch{}}return r}const H_=()=>{};class $_ extends La{constructor(t,r,i){if(super(r,i==null?void 0:i.corsProxy),this.resource=t,this.options=i,this.resource.url.startsWith("https://github.com/")){const a=this.resource.url.match(/^https:\/\/github\.com\/(?<owner>[^/]+)\/(?<repo>[^/]+)\/blob\/(?<branch>[^/]+)\/(?<path>.+[^/])$/);a!=null&&a.groups&&(this.resource={...this.resource,url:`https://raw.githubusercontent.com/${a.groups.owner}/${a.groups.repo}/${a.groups.branch}/${a.groups.path}`})}}getURL(){return this.resource.url}get caption(){return this.resource.caption??super.caption}}class F_ extends zt{constructor(t,r,i){super(),this.reference=t,this._progress=r,this.options=i}async resolve(){var o;const t=(o=this.options)!=null&&o.corsProxy?`${this.options.corsProxy}${this.reference.url}`:this.reference.url,r=await Rm(t,{value:this.reference.ref,type:"infer"}),i=await Lm(t,r),a=this.reference.path.replace(/^\/+/,""),n=Bm(i,a);let s=await Om(t,r,n);return s=B_(s,f=>f.substring(a.length).replace(/^\/+/,"")),{name:bn(this.reference.path)||this.reference.url.replaceAll(/[^a-zA-Z0-9-.]/g,"-").replaceAll(/-+/g,"-"),files:s}}get name(){return this.reference.path.split("/").pop()}}function B_(e,t){return Object.fromEntries(Object.entries(e).map(([r,i])=>[t(r),i]))}class N_ extends zt{constructor(t,r){super(),this.reference=t,this._progress=r}async resolve(){return this.reference}get name(){return this.reference.name}}class j_ extends La{constructor(t,r){super(r),this.resource=t}get name(){return Gn(this.resource.slug)}getURL(){return`https://downloads.wordpress.org/theme/${yc(this.resource.slug)}`}}class U_ extends La{constructor(t,r){super(r),this.resource=t}get name(){return Gn(this.resource.slug)}getURL(){return`https://downloads.wordpress.org/plugin/${yc(this.resource.slug)}`}}function yc(e){return!e||e.endsWith(".zip")?e:e+".latest-stable.zip"}class W_ extends mc{async resolve(){return this.promise||(this.promise=this.resource.resolve()),this.promise}}class M_ extends mc{constructor(t,r){super(t),this.semaphore=r}async resolve(){return this.isAsync?this.semaphore.run(()=>this.resource.resolve()):this.resource.resolve()}}class q_ extends zt{constructor(t,r,i){if(!r)throw new Error(`You are trying to run a Blueprint that refers to a bundled file ("blueprint" resource type), but you did not provide the rest of the bundle. This Blueprint won't work as a standalone JSON file. You'll need to load the entire bundle, e.g. a blueprint.zip file. Alternatively, you may try loading it directly from a URL or a local directory and Playground will try (with your permission) to source the missing files from paths relative to the blueprint file.`);super(),this.resource=t,this.streamBundledFile=r,this._progress=i}async resolve(){var t,r,i;(t=this.progress)==null||t.set(0);try{const a=await this.streamBundledFile(this.resource.path),n=a.filesize;if(!n)return(r=this.progress)==null||r.set(100),a;const s=af(a.stream(),n,o=>{var f;(f=this.progress)==null||f.set(o.detail.loaded/o.detail.total*100)});return new bs(s,this.name,{filesize:n})}catch(a){throw(i=this.progress)==null||i.set(100),new Error(`Failed to read file from blueprint. This Blueprint refers to a resource of type "bundled" with path "${this.resource.path}" that was not available. Please ensure that the entire bundle, such as a blueprint.zip file, is loaded. If you are trying to load the Blueprint directly from a URL or a local directory, make sure that all the necessary files are accessible and located relative to the blueprint file.
103
103
 
104
- Error details: ${a instanceof Error?a.message:String(a)}`,{cause:a})}}get name(){return this.resource.path.split("/").pop()||""}get isAsync(){return!0}}const Ca=async(e,{pluginPath:t,pluginName:r},i)=>{i==null||i.tracker.setCaption(`Activating ${r||t}`);const a=await e.documentRoot,n=await e.run({code:`<?php
104
+ Error details: ${a instanceof Error?a.message:String(a)}`,{cause:a})}}get name(){return this.resource.path.split("/").pop()||""}get isAsync(){return!0}}const Ra=async(e,{pluginPath:t,pluginName:r},i)=>{i==null||i.tracker.setCaption(`Activating ${r||t}`);const a=await e.documentRoot,n=await e.run({code:`<?php
105
105
  define( 'WP_ADMIN', true );
106
106
  require_once( getenv('DOCROOT') . "/wp-load.php" );
107
107
  require_once( getenv('DOCROOT') . "/wp-admin/includes/plugin.php" );
@@ -169,7 +169,7 @@ Error details: ${a instanceof Error?a.message:String(a)}`,{cause:a})}}get name()
169
169
  }
170
170
  }
171
171
  die( ob_get_flush() ?: 'false' );
172
- `,env:{DOCROOT:a,PLUGIN_PATH:t}});if(s.text!=="true")throw s.text!=="false"&&Pe.debug(s.text),new Error(`Plugin ${t} could not be activated – WordPress exited with no error. Sometimes, when $_SERVER or site options are not configured correctly, WordPress exits early with a 301 redirect. Inspect the "debug" logs in the console for more details.`)},Oa=async(e,{themeFolderName:t},r)=>{r==null||r.tracker.setCaption(`Activating ${t}`);const i=await e.documentRoot,a=`${i}/wp-content/themes/${t}`;if(!await e.fileExists(a))throw new Error(`
172
+ `,env:{DOCROOT:a,PLUGIN_PATH:t}});if(s.text!=="true")throw s.text!=="false"&&Pe.debug(s.text),new Error(`Plugin ${t} could not be activated – WordPress exited with no error. Sometimes, when $_SERVER or site options are not configured correctly, WordPress exits early with a 301 redirect. Inspect the "debug" logs in the console for more details.`)},Ia=async(e,{themeFolderName:t},r)=>{r==null||r.tracker.setCaption(`Activating ${t}`);const i=await e.documentRoot,a=`${i}/wp-content/themes/${t}`;if(!await e.fileExists(a))throw new Error(`
173
173
  Couldn't activate theme ${t}.
174
174
  Theme not found at the provided theme path: ${a}.
175
175
  Check the theme path to ensure it's correct.
@@ -188,7 +188,7 @@ Error details: ${a instanceof Error?a.message:String(a)}`,{cause:a})}}get name()
188
188
  throw new Exception( 'Theme ' . getenv('themeFolderName') . ' could not be activated.' );
189
189
  }
190
190
  die('Theme activated successfully');
191
- `,env:{docroot:i,themeFolderName:t}});if(n.text!=="Theme activated successfully")throw Pe.debug(n),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`)},uc=async(e,{code:t})=>{let r=typeof t=="string"?t:t.content;return(r.includes('"wordpress/wp-load.php"')||r.includes("'wordpress/wp-load.php'"))&&(Pe.error(`
191
+ `,env:{docroot:i,themeFolderName:t}});if(n.text!=="Theme activated successfully")throw Pe.debug(n),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`)},_c=async(e,{code:t})=>{let r=typeof t=="string"?t:t.content;return(r.includes('"wordpress/wp-load.php"')||r.includes("'wordpress/wp-load.php'"))&&(Pe.error(`
192
192
  It looks like you're trying to load WordPress using a relative path 'wordpress/wp-load.php'.
193
193
 
194
194
  Playground recently changed the working directory from '/' to '/wordpress' to better mimic
@@ -202,7 +202,7 @@ Instead of: require_once 'wordpress/wp-load.php';
202
202
  Use: require_once '/wordpress/wp-load.php';
203
203
 
204
204
  This will ensure your code works reliably regardless of the current working directory.
205
- `.trim()),r=r.replace("'wordpress/wp-load.php'","'/wordpress/wp-load.php'"),r=r.replace('"wordpress/wp-load.php"','"/wordpress/wp-load.php"')),await e.run({code:r})},dc=async(e,{options:t})=>await e.run(t),La=async(e,{path:t})=>{t.startsWith("/")||(Pe.error(`
205
+ `.trim()),r=r.replace("'wordpress/wp-load.php'","'/wordpress/wp-load.php'"),r=r.replace('"wordpress/wp-load.php"','"/wordpress/wp-load.php"')),await e.run({code:r})},gc=async(e,{options:t})=>await e.run(t),Da=async(e,{path:t})=>{t.startsWith("/")||(Pe.error(`
206
206
  The rm() step in your Blueprint refers to a relative path.
207
207
 
208
208
  Playground recently changed the working directory from '/' to '/wordpress' to better mimic
@@ -216,7 +216,7 @@ Instead of: rm({ path: 'wordpress/wp-load.php' });
216
216
  Use: rm({ path: '/wordpress/wp-load.php' });
217
217
 
218
218
  This will ensure your code works reliably regardless of the current working directory.
219
- `.trim()),t=`/${t}`),await e.unlink(t)},hc=async(e,{sql:t},r)=>{r==null||r.tracker.setCaption("Executing SQL Queries");const i=`/tmp/${sf()}.sql`;await e.writeFile(i,new Uint8Array(await t.arrayBuffer()));const a=await e.documentRoot,n=Is({docroot:a,sqlFilename:i}),s=await e.run({code:`<?php
219
+ `.trim()),t=`/${t}`),await e.unlink(t)},wc=async(e,{sql:t},r)=>{r==null||r.tracker.setCaption("Executing SQL Queries");const i=`/tmp/${lf()}.sql`;await e.writeFile(i,new Uint8Array(await t.arrayBuffer()));const a=await e.documentRoot,n=Is({docroot:a,sqlFilename:i}),s=await e.run({code:`<?php
220
220
  require_once ${n.docroot} . '/wp-load.php';
221
221
 
222
222
  $handle = fopen(${n.sqlFilename}, 'r');
@@ -231,7 +231,7 @@ This will ensure your code works reliably regardless of the current working dire
231
231
 
232
232
  $wpdb->query($line);
233
233
  }
234
- `});return await La(e,{path:i}),s},mc=async(e,{request:t})=>{Pe.warn('Deprecated: The Blueprint step "request" is deprecated and will be removed in a future release.');const r=await e.request(t);if(r.httpStatusCode>399||r.httpStatusCode<200)throw Pe.warn("WordPress response was",{response:r}),new Error(`Request failed with status ${r.httpStatusCode}`);return r},H_="8.3",yc=async(e,t,r,i=!0)=>{const a=`/tmp/file-${Math.random()}.zip`;if(t instanceof File){const s=t;t=a,await e.writeFile(t,new Uint8Array(await s.arrayBuffer()))}const n=Is({zipPath:t,extractToPath:r,overwriteFiles:i});await e.run({code:`<?php
234
+ `});return await Da(e,{path:i}),s},bc=async(e,{request:t})=>{Pe.warn('Deprecated: The Blueprint step "request" is deprecated and will be removed in a future release.');const r=await e.request(t);if(r.httpStatusCode>399||r.httpStatusCode<200)throw Pe.warn("WordPress response was",{response:r}),new Error(`Request failed with status ${r.httpStatusCode}`);return r},K_="8.3",vc=async(e,t,r,i=!0)=>{const a=`/tmp/file-${Math.random()}.zip`;if(t instanceof File){const s=t;t=a,await e.writeFile(t,new Uint8Array(await s.arrayBuffer()))}const n=Is({zipPath:t,extractToPath:r,overwriteFiles:i});await e.run({code:`<?php
235
235
  function unzip($zipPath, $extractTo, $overwriteFiles = true)
236
236
  {
237
237
  if (!is_dir($extractTo)) {
@@ -257,7 +257,7 @@ This will ensure your code works reliably regardless of the current working dire
257
257
  }
258
258
  }
259
259
  unzip(${n.zipPath}, ${n.extractToPath}, ${n.overwriteFiles});
260
- `}),await e.fileExists(a)&&await e.unlink(a)},F_=`<?php
260
+ `}),await e.fileExists(a)&&await e.unlink(a)},z_=`<?php
261
261
 
262
262
  /**
263
263
  * Rewrites the wp-config.php file to ensure specific constants are defined
@@ -602,8 +602,8 @@ function skip_whitespace($tokens) {
602
602
  }
603
603
  return $output;
604
604
  }
605
- `;async function _c(e,t,r,i="rewrite"){const a=Is({wpConfigPath:t,constants:r,whenAlreadyDefined:i});if((await e.run({code:`<?php ob_start(); ?>
606
- ${F_}
605
+ `;async function xc(e,t,r,i="rewrite"){const a=Is({wpConfigPath:t,constants:r,whenAlreadyDefined:i});if((await e.run({code:`<?php ob_start(); ?>
606
+ ${z_}
607
607
  $wp_config_path = ${a.wpConfigPath};
608
608
  $wp_config = file_get_contents($wp_config_path);
609
609
  $new_wp_config = rewrite_wp_config_to_define_constants($wp_config, ${a.constants}, ${a.whenAlreadyDefined});
@@ -611,26 +611,26 @@ function skip_whitespace($tokens) {
611
611
  ob_clean();
612
612
  echo false === $return_value ? '0' : '1';
613
613
  ob_end_flush();
614
- `})).text!=="1")throw new Error("Failed to rewrite constants in wp-config.php.")}async function N_(e,t){const r=Ee(t,"wp-config.php"),i={DB_NAME:"wordpress"};!e.fileExists(r)&&e.fileExists(Ee(t,"wp-config-sample.php"))&&await e.writeFile(r,await e.readFileAsBuffer(Ee(t,"wp-config-sample.php"))),await _c(e,r,i,"skip")}const Zn=async(e,{consts:t,method:r="define-before-run"})=>{switch(r){case"define-before-run":await B_(e,t);break;case"rewrite-wp-config":{const i=await e.documentRoot,a=Ee(i,"/wp-config.php");await _c(e,a,t,"rewrite");break}default:throw new Error(`Invalid method: ${r}`)}};async function B_(e,t){for(const r in t)await e.defineConstant(r,t[r])}const Ra=async(e,{options:t})=>{const r=await e.documentRoot;await e.run({code:`<?php
614
+ `})).text!=="1")throw new Error("Failed to rewrite constants in wp-config.php.")}async function V_(e,t){const r=Ee(t,"wp-config.php"),i={DB_NAME:"wordpress"};!e.fileExists(r)&&e.fileExists(Ee(t,"wp-config-sample.php"))&&await e.writeFile(r,await e.readFileAsBuffer(Ee(t,"wp-config-sample.php"))),await xc(e,r,i,"skip")}const Zn=async(e,{consts:t,method:r="define-before-run"})=>{switch(r){case"define-before-run":await G_(e,t);break;case"rewrite-wp-config":{const i=await e.documentRoot,a=Ee(i,"/wp-config.php");await xc(e,a,t,"rewrite");break}default:throw new Error(`Invalid method: ${r}`)}};async function G_(e,t){for(const r in t)await e.defineConstant(r,t[r])}const Ha=async(e,{options:t})=>{const r=await e.documentRoot;await e.run({code:`<?php
615
615
  include ${ct(r)} . '/wp-load.php';
616
616
  $site_options = ${ct(t)};
617
617
  foreach($site_options as $name => $value) {
618
618
  update_option($name, $value);
619
619
  }
620
620
  echo "Success";
621
- `})},gc=async(e,{meta:t,userId:r})=>{const i=await e.documentRoot;await e.run({code:`<?php
621
+ `})},kc=async(e,{meta:t,userId:r})=>{const i=await e.documentRoot;await e.run({code:`<?php
622
622
  include ${ct(i)} . '/wp-load.php';
623
623
  $meta = ${ct(t)};
624
624
  foreach($meta as $name => $value) {
625
625
  update_user_meta(${ct(r)}, $name, $value);
626
626
  }
627
- `})},Ia="/tmp/wp-cli.phar",j_={resource:"url",url:"https://playground.wordpress.net/wp-cli.phar"},wc=async(e,t=Ia)=>{if(!await e.fileExists(t))throw new Error(`wp-cli.phar not found at ${t}.
627
+ `})},$a="/tmp/wp-cli.phar",Z_={resource:"url",url:"https://playground.wordpress.net/wp-cli.phar"},Sc=async(e,t=$a)=>{if(!await e.fileExists(t))throw new Error(`wp-cli.phar not found at ${t}.
628
628
  You can enable wp-cli support by adding "wp-cli" to the list of extra libraries in your blueprint as follows:
629
629
  {
630
630
  "extraLibraries": [ "wp-cli" ]
631
631
  }
632
632
  Read more about it in the documentation.
633
- https://wordpress.github.io/wordpress-playground/blueprints/data-format#extra-libraries`)},Da=async(e,{command:t,wpCliPath:r=Ia})=>{await wc(e,r);let i;if(typeof t=="string"?(t=t.trim(),i=W_(t)):i=t,i.shift()!=="wp")throw new Error('The first argument must be "wp".');let n=!1;const s=i.map(p=>p.startsWith("wordpress/")?(n=!0,`/${p}`):p);n&&Pe.error(`
633
+ https://wordpress.github.io/wordpress-playground/blueprints/data-format#extra-libraries`)},Fa=async(e,{command:t,wpCliPath:r=$a})=>{await Sc(e,r);let i;if(typeof t=="string"?(t=t.trim(),i=Y_(t)):i=t,i.shift()!=="wp")throw new Error('The first argument must be "wp".');let n=!1;const s=i.map(p=>p.startsWith("wordpress/")?(n=!0,`/${p}`):p);n&&Pe.error(`
634
634
  The wp-cli step in your Blueprint refers to a relative path.
635
635
 
636
636
  Playground recently changed the working directory from '/' to '/wordpress' to better mimic
@@ -677,7 +677,7 @@ This will ensure your code works reliably regardless of the current working dire
677
677
  define('STDERR', fopen('php://stderr', 'wb'));
678
678
 
679
679
  require( ${ct(r)} );
680
- `);const f=await e.run({scriptPath:Ee(o,"run-cli.php")});if(f.errors)throw new Error(f.errors);return f};function W_(e){let i=0,a="";const n=[];let s="";for(let o=0;o<e.length;o++){const f=e[o];i===0?f==='"'||f==="'"?(i=1,a=f):f.match(/\s/)?(s&&n.push(s),s=""):s+=f:i===1&&(f==="\\"?(o++,s+=e[o]):f===a?(i=0,a=""):s+=f)}return s&&n.push(s),n}const bc=async(e,{wpCliPath:t})=>{await wc(e,t),await Zn(e,{consts:{WP_ALLOW_MULTISITE:1}});const r=new URL(await e.absoluteUrl);if(r.port!==""){let n=`The current host is ${r.host}, but WordPress multisites do not support custom ports.`;throw r.hostname==="localhost"&&(n+=" For development, you can set up a playground.test domain using the instructions at https://wordpress.github.io/wordpress-playground/contributing/code."),new Error(n)}const i=r.pathname.replace(/\/$/,"")+"/",a=`${r.protocol}//${r.hostname}${i}`;await Ra(e,{options:{siteurl:a,home:a}}),await Da(e,{command:"wp core multisite-convert"})},vc=async(e,{fromPath:t,toPath:r})=>{(!t.startsWith("/")||!r.startsWith("/"))&&Pe.error(`
680
+ `);const f=await e.run({scriptPath:Ee(o,"run-cli.php")});if(f.errors)throw new Error(f.errors);return f};function Y_(e){let i=0,a="";const n=[];let s="";for(let o=0;o<e.length;o++){const f=e[o];i===0?f==='"'||f==="'"?(i=1,a=f):f.match(/\s/)?(s&&n.push(s),s=""):s+=f:i===1&&(f==="\\"?(o++,s+=e[o]):f===a?(i=0,a=""):s+=f)}return s&&n.push(s),n}const Ec=async(e,{wpCliPath:t})=>{await Sc(e,t),await Zn(e,{consts:{WP_ALLOW_MULTISITE:1}});const r=new URL(await e.absoluteUrl);if(r.port!==""){let n=`The current host is ${r.host}, but WordPress multisites do not support custom ports.`;throw r.hostname==="localhost"&&(n+=" For development, you can set up a playground.test domain using the instructions at https://wordpress.github.io/wordpress-playground/contributing/code."),new Error(n)}const i=r.pathname.replace(/\/$/,"")+"/",a=`${r.protocol}//${r.hostname}${i}`;await Ha(e,{options:{siteurl:a,home:a}}),await Fa(e,{command:"wp core multisite-convert"})},Pc=async(e,{fromPath:t,toPath:r})=>{(!t.startsWith("/")||!r.startsWith("/"))&&Pe.error(`
681
681
  The cp() step in your Blueprint refers to a relative path.
682
682
 
683
683
  Playground recently changed the working directory from '/' to '/wordpress' to better mimic
@@ -691,7 +691,7 @@ Instead of: cp({ fromPath: 'wordpress/wp-load.php', toPath: 'wordpress/wp-load.
691
691
  Use: cp({ fromPath: '/wordpress/wp-load.php', toPath: '/wordpress/wp-load.php' });
692
692
 
693
693
  This will ensure your code works reliably regardless of the current working directory.
694
- `.trim()),t.startsWith("/")||(t=`/${t}`),r.startsWith("/")||(r=`/${r}`),await e.writeFile(r,await e.readFileAsBuffer(t))},xc=async(e,{fromPath:t,toPath:r})=>{(!t.startsWith("/")||!r.startsWith("/"))&&Pe.error(`
694
+ `.trim()),t.startsWith("/")||(t=`/${t}`),r.startsWith("/")||(r=`/${r}`),await e.writeFile(r,await e.readFileAsBuffer(t))},Ac=async(e,{fromPath:t,toPath:r})=>{(!t.startsWith("/")||!r.startsWith("/"))&&Pe.error(`
695
695
  The mv() step in your Blueprint refers to a relative path.
696
696
 
697
697
  Playground recently changed the working directory from '/' to '/wordpress' to better mimic
@@ -705,7 +705,7 @@ Instead of: mv({ fromPath: 'wordpress/wp-load.php', toPath: 'wordpress/wp-load.
705
705
  Use: mv({ fromPath: '/wordpress/wp-load.php', toPath: '/wordpress/wp-load.php' });
706
706
 
707
707
  This will ensure your code works reliably regardless of the current working directory.
708
- `.trim()),t.startsWith("/")||(t=`/${t}`),r.startsWith("/")||(r=`/${r}`),await e.mv(t,r)},kc=async(e,{path:t})=>{t.startsWith("/")||Pe.error(`
708
+ `.trim()),t.startsWith("/")||(t=`/${t}`),r.startsWith("/")||(r=`/${r}`),await e.mv(t,r)},Tc=async(e,{path:t})=>{t.startsWith("/")||Pe.error(`
709
709
  The mkdir() step in your Blueprint refers to a relative path.
710
710
 
711
711
  Playground recently changed the working directory from '/' to '/wordpress' to better mimic
@@ -719,7 +719,7 @@ Instead of: mkdir({ path: 'wordpress/my-new-folder' });
719
719
  Use: mkdir({ path: '/wordpress/my-new-folder' });
720
720
 
721
721
  This will ensure your code works reliably regardless of the current working directory.
722
- `.trim()),await e.mkdir(t)},Sc=async(e,{path:t})=>{t.startsWith("/")||(Pe.error(`
722
+ `.trim()),await e.mkdir(t)},Cc=async(e,{path:t})=>{t.startsWith("/")||(Pe.error(`
723
723
  The rmdir() step in your Blueprint refers to a relative path.
724
724
 
725
725
  Playground recently changed the working directory from '/' to '/wordpress' to better mimic
@@ -747,7 +747,7 @@ Instead of: writeFile({ path: 'wordpress/wp-load.php', data: '<?php echo "Hello
747
747
  Use: writeFile({ path: '/wordpress/wp-load.php', data: '<?php echo "Hello World!"; ?>' });
748
748
 
749
749
  This will ensure your code works reliably regardless of the current working directory.
750
- `.trim()),t=`/${t}`),t.startsWith("/wordpress/wp-content/mu-plugins")&&!await e.fileExists("/wordpress/wp-content/mu-plugins")&&await e.mkdir("/wordpress/wp-content/mu-plugins"),await e.writeFile(t,r)},Ec=async(e,{writeToPath:t,filesTree:r})=>{t.startsWith("/")||(Pe.error(`
750
+ `.trim()),t=`/${t}`),t.startsWith("/wordpress/wp-content/mu-plugins")&&!await e.fileExists("/wordpress/wp-content/mu-plugins")&&await e.mkdir("/wordpress/wp-content/mu-plugins"),await e.writeFile(t,r)},Oc=async(e,{writeToPath:t,filesTree:r})=>{t.startsWith("/")||(Pe.error(`
751
751
  The writeFiles() step in your Blueprint refers to a relative path.
752
752
 
753
753
  Playground recently changed the working directory from '/' to '/wordpress' to better mimic
@@ -761,7 +761,7 @@ Instead of: writeFiles({ writeToPath: 'wordpress/wp-content/plugins/my-plugin',
761
761
  Use: writeFiles({ writeToPath: '/wordpress/wp-content/plugins/my-plugin', filesTree: { name: 'style.css': 'a { color: red; }' });
762
762
 
763
763
  This will ensure your code works reliably regardless of the current working directory.
764
- `.trim()),t=`/${t}`),await Fn(e,t,r.files)},$a=async(e,{siteUrl:t})=>{await Zn(e,{consts:{WP_HOME:t,WP_SITEURL:t}})},Pc=async(e,{file:t},r)=>{await U_(e,t,r)};async function U_(e,t,r){var i;(i=r==null?void 0:r.tracker)==null||i.setCaption("Importing content"),await Yn(e,{path:"/tmp/import.wxr",data:t}),await e.run({code:`<?php
764
+ `.trim()),t=`/${t}`),await Fn(e,t,r.files)},Ba=async(e,{siteUrl:t})=>{await Zn(e,{consts:{WP_HOME:t,WP_SITEURL:t}})},Lc=async(e,{file:t},r)=>{await X_(e,t,r)};async function X_(e,t,r){var i;(i=r==null?void 0:r.tracker)==null||i.setCaption("Importing content"),await Yn(e,{path:"/tmp/import.wxr",data:t}),await e.run({code:`<?php
765
765
  define('WP_LOAD_IMPORTERS', true);
766
766
  require 'wp-load.php';
767
767
  require 'wp-admin/includes/admin.php';
@@ -810,7 +810,7 @@ This will ensure your code works reliably regardless of the current working dire
810
810
  $wp_import->import( getenv('IMPORT_FILE'), [
811
811
  'rewrite_urls' => true,
812
812
  ] );
813
- `,env:{IMPORT_FILE:"/tmp/import.wxr",FETCH_ATTACHMENTS:"true"}})}const Ha=async(e,{themeSlug:t=""},r)=>{var a;(a=r==null?void 0:r.tracker)==null||a.setCaption("Importing theme starter content");const i=await e.documentRoot;await e.run({code:`<?php
813
+ `,env:{IMPORT_FILE:"/tmp/import.wxr",FETCH_ATTACHMENTS:"true"}})}const Na=async(e,{themeSlug:t=""},r)=>{var a;(a=r==null?void 0:r.tracker)==null||a.setCaption("Importing theme starter content");const i=await e.documentRoot;await e.run({code:`<?php
814
814
 
815
815
  /**
816
816
  * Ensure that the customizer loads as an admin user.
@@ -857,10 +857,10 @@ This will ensure your code works reliably regardless of the current working dire
857
857
 
858
858
  // Publish the changeset, which publishes the starter content.
859
859
  wp_publish_post( $wp_customize->changeset_post_id() );
860
- `})},Xn=async(e,{zipFile:t,zipPath:r,extractToPath:i})=>{if(r)Pe.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 yc(e,t||r,i)},Fa=["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"],Ac=async(e,{wordPressFilesZip:t,pathInZip:r=""})=>{const i=await e.documentRoot;let a=Ee("/tmp","import");await e.mkdir(a),await Xn(e,{zipFile:t,extractToPath:a}),a=Ee(a,r);const n=Ee(a,"wp-content"),s=Ee(i,"wp-content");for(const c of Fa){const m=Ee(n,c);await Vl(e,m);const h=Ee(s,c);await e.fileExists(h)&&(await e.mkdir(bn(m)),await e.mv(h,m))}const o=Ee(a,"wp-content","database");await e.fileExists(o)||await e.mv(Ee(i,"wp-content","database"),o);const f=await e.listFiles(a);for(const c of f)await Vl(e,Ee(i,c)),await e.mv(Ee(a,c),Ee(i,c));await e.rmdir(a),await N_(e,i),await $a(e,{siteUrl:await e.absoluteUrl});const p=ct(Ee(i,"wp-admin","upgrade.php"));await e.run({code:`<?php
860
+ `})},Xn=async(e,{zipFile:t,zipPath:r,extractToPath:i})=>{if(r)Pe.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 vc(e,t||r,i)},ja=["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"],Rc=async(e,{wordPressFilesZip:t,pathInZip:r=""})=>{const i=await e.documentRoot;let a=Ee("/tmp","import");await e.mkdir(a),await Xn(e,{zipFile:t,extractToPath:a}),a=Ee(a,r);const n=Ee(a,"wp-content"),s=Ee(i,"wp-content");for(const c of ja){const m=Ee(n,c);await Xl(e,m);const h=Ee(s,c);await e.fileExists(h)&&(await e.mkdir(bn(m)),await e.mv(h,m))}const o=Ee(a,"wp-content","database");await e.fileExists(o)||await e.mv(Ee(i,"wp-content","database"),o);const f=await e.listFiles(a);for(const c of f)await Xl(e,Ee(i,c)),await e.mv(Ee(a,c),Ee(i,c));await e.rmdir(a),await V_(e,i),await Ba(e,{siteUrl:await e.absoluteUrl});const p=ct(Ee(i,"wp-admin","upgrade.php"));await e.run({code:`<?php
861
861
  $_GET['step'] = 'upgrade_db';
862
862
  require ${p};
863
- `})};async function Vl(e,t){await e.fileExists(t)&&(await e.isDir(t)?await e.rmdir(t):await e.unlink(t))}async function Tc(e){const t=await e.request({url:"/wp-admin/export.php?download=true&content=all"});return new File([t.bytes],"export.xml")}async function Cc(e,{targetPath:t,zipFile:r,ifAlreadyInstalled:i="overwrite",targetFolderName:a=""}){const s=r.name.replace(/\.zip$/,""),o=Ee(await e.documentRoot,"wp-content"),f=Ee(o,sf()),p=Ee(f,"assets",s);await e.fileExists(p)&&await e.rmdir(f,{recursive:!0}),await e.mkdir(f);try{await Xn(e,{zipFile:r,extractToPath:p});let c=await e.listFiles(p,{prependPath:!0});c=c.filter(y=>!y.endsWith("/__MACOSX"));const m=c.length===1&&await e.isDir(c[0]);let h,_="";m?(_=c[0],h=c[0].split("/").pop()):(_=p,h=s),a&&a.length&&(h=a);const L=`${t}/${h}`;if(await e.fileExists(L)){if(!await e.isDir(L))throw new Error(`Cannot install asset ${h} to ${L} because a file with the same name already exists. Note it's a file, not a directory! Is this by mistake?`);if(i==="overwrite")await e.rmdir(L,{recursive:!0});else{if(i==="skip")return{assetFolderPath:L,assetFolderName:h};throw new Error(`Cannot install asset ${h} to ${t} because it already exists and the ifAlreadyInstalled option was set to ${i}`)}}return await e.mv(_,L),{assetFolderPath:L,assetFolderName:h}}finally{await e.rmdir(f,{recursive:!0})}}const Oc=async(e,{pluginData:t,pluginZipFile:r,ifAlreadyInstalled:i,options:a={}},n)=>{r&&(t=r,Pe.warn('The "pluginZipFile" option is deprecated. Use "pluginData" instead.'));const s=Ee(await e.documentRoot,"wp-content","plugins"),o="targetFolderName"in a?a.targetFolderName:"";let f="",p="";const c=async h=>{if(h.name.toLowerCase().endsWith(".zip"))return!0;const _=new Uint8Array(await h.arrayBuffer(),0,4);return _[0]===80&&_[1]===75&&_[2]===3&&_[3]===4};if(t instanceof File)if(await c(t)){const h=t.name.split("/").pop()||"plugin.zip";p=Gn(h),n==null||n.tracker.setCaption(`Installing the ${p} plugin`);const _=await Cc(e,{ifAlreadyInstalled:i,zipFile:t,targetPath:`${await e.documentRoot}/wp-content/plugins`,targetFolderName:o});f=_.assetFolderPath,p=_.assetFolderName}else if(t.name.endsWith(".php")){const h=Ee(s,t.name);await Yn(e,{path:h,data:t}),f=s,p=t.name}else throw new Error("pluginData looks like a file but does not look like a .zip or .php file.");else if(t){p=t.name,n==null||n.tracker.setCaption(`Installing the ${p} plugin`);const h=Ee(s,o||t.name);await Fn(e,h,t.files,{rmRoot:!0}),f=h}("activate"in a?a.activate:!0)&&await Ca(e,{pluginPath:f,pluginName:p},n)},Lc=async(e,{themeData:t,themeZipFile:r,ifAlreadyInstalled:i,options:a={}},n)=>{r&&(t=r,Pe.warn('The "themeZipFile" option is deprecated. Use "themeData" instead.'));const s="targetFolderName"in a?a.targetFolderName:"";let o="",f="";if(t instanceof File){const m=t.name.split("/").pop()||"theme.zip";f=Gn(m),n==null||n.tracker.setCaption(`Installing the ${f} theme`),o=(await Cc(e,{ifAlreadyInstalled:i,zipFile:t,targetPath:`${await e.documentRoot}/wp-content/themes`,targetFolderName:s})).assetFolderName}else{f=t.name,o=s||f,n==null||n.tracker.setCaption(`Installing the ${f} theme`);const m=Ee(await e.documentRoot,"wp-content","themes",o);await Fn(e,m,t.files,{rmRoot:!0})}("activate"in a?a.activate:!0)&&await Oa(e,{themeFolderName:o},n),("importStarterContent"in a?a.importStarterContent:!1)&&await Ha(e,{themeSlug:o},n)},Rc=async(e,{username:t="admin"}={},r)=>{r==null||r.tracker.setCaption((r==null?void 0:r.initialCaption)||"Logging in"),e.defineConstant("PLAYGROUND_AUTO_LOGIN_AS_USER",t)},Ic=async(e,t,r)=>{var a;(a=r==null?void 0:r.tracker)==null||a.setCaption("Resetting WordPress data");const i=await e.documentRoot;await e.run({env:{DOCROOT:i},code:`<?php
863
+ `})};async function Xl(e,t){await e.fileExists(t)&&(await e.isDir(t)?await e.rmdir(t):await e.unlink(t))}async function Ic(e){const t=await e.request({url:"/wp-admin/export.php?download=true&content=all"});return new File([t.bytes],"export.xml")}async function Dc(e,{targetPath:t,zipFile:r,ifAlreadyInstalled:i="overwrite",targetFolderName:a=""}){const s=r.name.replace(/\.zip$/,""),o=Ee(await e.documentRoot,"wp-content"),f=Ee(o,lf()),p=Ee(f,"assets",s);await e.fileExists(p)&&await e.rmdir(f,{recursive:!0}),await e.mkdir(f);try{await Xn(e,{zipFile:r,extractToPath:p});let c=await e.listFiles(p,{prependPath:!0});c=c.filter(y=>!y.endsWith("/__MACOSX"));const m=c.length===1&&await e.isDir(c[0]);let h,_="";m?(_=c[0],h=c[0].split("/").pop()):(_=p,h=s),a&&a.length&&(h=a);const L=`${t}/${h}`;if(await e.fileExists(L)){if(!await e.isDir(L))throw new Error(`Cannot install asset ${h} to ${L} because a file with the same name already exists. Note it's a file, not a directory! Is this by mistake?`);if(i==="overwrite")await e.rmdir(L,{recursive:!0});else{if(i==="skip")return{assetFolderPath:L,assetFolderName:h};throw new Error(`Cannot install asset ${h} to ${t} because it already exists and the ifAlreadyInstalled option was set to ${i}`)}}return await e.mv(_,L),{assetFolderPath:L,assetFolderName:h}}finally{await e.rmdir(f,{recursive:!0})}}const Hc=async(e,{pluginData:t,pluginZipFile:r,ifAlreadyInstalled:i,options:a={}},n)=>{r&&(t=r,Pe.warn('The "pluginZipFile" option is deprecated. Use "pluginData" instead.'));const s=Ee(await e.documentRoot,"wp-content","plugins"),o="targetFolderName"in a?a.targetFolderName:"";let f="",p="";const c=async h=>{if(h.name.toLowerCase().endsWith(".zip"))return!0;const _=new Uint8Array(await h.arrayBuffer(),0,4);return _[0]===80&&_[1]===75&&_[2]===3&&_[3]===4};if(t instanceof File)if(await c(t)){const h=t.name.split("/").pop()||"plugin.zip";p=Gn(h),n==null||n.tracker.setCaption(`Installing the ${p} plugin`);const _=await Dc(e,{ifAlreadyInstalled:i,zipFile:t,targetPath:`${await e.documentRoot}/wp-content/plugins`,targetFolderName:o});f=_.assetFolderPath,p=_.assetFolderName}else if(t.name.endsWith(".php")){const h=Ee(s,t.name);await Yn(e,{path:h,data:t}),f=s,p=t.name}else throw new Error("pluginData looks like a file but does not look like a .zip or .php file.");else if(t){p=t.name,n==null||n.tracker.setCaption(`Installing the ${p} plugin`);const h=Ee(s,o||t.name);await Fn(e,h,t.files,{rmRoot:!0}),f=h}("activate"in a?a.activate:!0)&&await Ra(e,{pluginPath:f,pluginName:p},n)},$c=async(e,{themeData:t,themeZipFile:r,ifAlreadyInstalled:i,options:a={}},n)=>{r&&(t=r,Pe.warn('The "themeZipFile" option is deprecated. Use "themeData" instead.'));const s="targetFolderName"in a?a.targetFolderName:"";let o="",f="";if(t instanceof File){const m=t.name.split("/").pop()||"theme.zip";f=Gn(m),n==null||n.tracker.setCaption(`Installing the ${f} theme`),o=(await Dc(e,{ifAlreadyInstalled:i,zipFile:t,targetPath:`${await e.documentRoot}/wp-content/themes`,targetFolderName:s})).assetFolderName}else{f=t.name,o=s||f,n==null||n.tracker.setCaption(`Installing the ${f} theme`);const m=Ee(await e.documentRoot,"wp-content","themes",o);await Fn(e,m,t.files,{rmRoot:!0})}("activate"in a?a.activate:!0)&&await Ia(e,{themeFolderName:o},n),("importStarterContent"in a?a.importStarterContent:!1)&&await Na(e,{themeSlug:o},n)},Fc=async(e,{username:t="admin"}={},r)=>{r==null||r.tracker.setCaption((r==null?void 0:r.initialCaption)||"Logging in"),e.defineConstant("PLAYGROUND_AUTO_LOGIN_AS_USER",t)},Bc=async(e,t,r)=>{var a;(a=r==null?void 0:r.tracker)==null||a.setCaption("Resetting WordPress data");const i=await e.documentRoot;await e.run({env:{DOCROOT:i},code:`<?php
864
864
  require getenv('DOCROOT') . '/wp-load.php';
865
865
 
866
866
  $GLOBALS['@pdo']->query('DELETE FROM wp_posts WHERE id > 0');
@@ -874,11 +874,11 @@ This will ensure your code works reliably regardless of the current working dire
874
874
 
875
875
  $GLOBALS['@pdo']->query('DELETE FROM wp_commentmeta');
876
876
  $GLOBALS['@pdo']->query("UPDATE SQLITE_SEQUENCE SET SEQ=0 WHERE NAME='wp_commentmeta'");
877
- `})},Dc=async(e,{options:t})=>{await e.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"}})},$c=async(e,{selfContained:t=!1}={})=>{const r="/tmp/wordpress-playground.zip",i=await e.documentRoot,a=Ee(i,"wp-content");let n=Fa;t&&(n=n.filter(f=>!f.startsWith("themes/twenty")).filter(f=>f!=="mu-plugins/sqlite-database-integration"));const s=Is({zipPath:r,wpContentPath:a,documentRoot:i,exceptPaths:n.map(f=>Ee(i,"wp-content",f)),additionalPaths:t?{[Ee(i,"wp-config.php")]:"wp-config.php"}:{}});await q_(e,`zipDir(${s.wpContentPath}, ${s.zipPath}, array(
877
+ `})},Nc=async(e,{options:t})=>{await e.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"}})},jc=async(e,{selfContained:t=!1}={})=>{const r="/tmp/wordpress-playground.zip",i=await e.documentRoot,a=Ee(i,"wp-content");let n=ja;t&&(n=n.filter(f=>!f.startsWith("themes/twenty")).filter(f=>f!=="mu-plugins/sqlite-database-integration"));const s=Is({zipPath:r,wpContentPath:a,documentRoot:i,exceptPaths:n.map(f=>Ee(i,"wp-content",f)),additionalPaths:t?{[Ee(i,"wp-config.php")]:"wp-config.php"}:{}});await Q_(e,`zipDir(${s.wpContentPath}, ${s.zipPath}, array(
878
878
  'exclude_paths' => ${s.exceptPaths},
879
879
  'zip_root' => ${s.documentRoot},
880
880
  'additional_paths' => ${s.additionalPaths}
881
- ));`);const o=await e.readFileAsBuffer(r);return e.unlink(r),o},M_=`<?php
881
+ ));`);const o=await e.readFileAsBuffer(r);return e.unlink(r),o},J_=`<?php
882
882
 
883
883
  function zipDir($root, $output, $options = array())
884
884
  {
@@ -938,10 +938,10 @@ function join_paths()
938
938
 
939
939
  return preg_replace('#/+#', '/', join('/', $paths));
940
940
  }
941
- `;async function q_(e,t){return await e.run({code:M_+t})}const K_=async(e,t)=>{const a=(await(await fetch(`https://api.wordpress.org/translations/core/1.0/?version=${e}`)).json()).translations.find(n=>n.language.toLowerCase()===t.toLowerCase());if(!a)throw new Error(`Failed to get ${t} translation package for WordPress ${e}.`);return a.package},Hc=async(e,{language:t},r)=>{r==null||r.tracker.setCaption((r==null?void 0:r.initialCaption)||"Translating"),await e.defineConstant("WPLANG",t);const i=await e.documentRoot,a=(await e.run({code:`<?php
941
+ `;async function Q_(e,t){return await e.run({code:J_+t})}const eg=async(e,t)=>{const a=(await(await fetch(`https://api.wordpress.org/translations/core/1.0/?version=${e}`)).json()).translations.find(n=>n.language.toLowerCase()===t.toLowerCase());if(!a)throw new Error(`Failed to get ${t} translation package for WordPress ${e}.`);return a.package},Uc=async(e,{language:t},r)=>{r==null||r.tracker.setCaption((r==null?void 0:r.initialCaption)||"Translating"),await e.defineConstant("WPLANG",t);const i=await e.documentRoot,a=(await e.run({code:`<?php
942
942
  require '${i}/wp-includes/version.php';
943
943
  echo $wp_version;
944
- `})).text,n=[{url:await K_(a,t),type:"core"}],o=(await e.run({code:`<?php
944
+ `})).text,n=[{url:await eg(a,t),type:"core"}],o=(await e.run({code:`<?php
945
945
  require_once('${i}/wp-load.php');
946
946
  require_once('${i}/wp-admin/includes/plugin.php');
947
947
  echo json_encode(
@@ -976,14 +976,14 @@ function join_paths()
976
976
  wp_get_themes()
977
977
  )
978
978
  )
979
- );`})).json;for(const{slug:h,version:_}of p)n.push({url:`https://downloads.wordpress.org/translation/theme/${h}/${_}/${t}.zip`,type:"theme"});await e.isDir(`${i}/wp-content/languages/plugins`)||await e.mkdir(`${i}/wp-content/languages/plugins`),await e.isDir(`${i}/wp-content/languages/themes`)||await e.mkdir(`${i}/wp-content/languages/themes`);const c=new Qr({concurrency:5}),m=n.map(({url:h,type:_})=>c.run(async()=>{try{const L=await fetch(h);if(!L.ok)throw new Error(`Failed to download translations for ${_}: ${L.statusText}`);let y=`${i}/wp-content/languages`;_==="plugin"?y+="/plugins":_==="theme"&&(y+="/themes"),await yc(e,new File([await L.blob()],`${t}-${_}.zip`),y)}catch(L){if(_==="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/.`);Pe.warn(`Error downloading translations for ${_}: ${L}`)}}));await Promise.all(m)},z_=Object.freeze(Object.defineProperty({__proto__:null,activatePlugin:Ca,activateTheme:Oa,cp:vc,defineSiteUrl:$a,defineWpConfigConsts:Zn,enableMultisite:bc,exportWXR:Tc,importThemeStarterContent:Ha,importWordPressFiles:Ac,importWxr:Pc,installPlugin:Oc,installTheme:Lc,login:Rc,mkdir:kc,mv:xc,request:mc,resetData:Ic,rm:La,rmdir:Sc,runPHP:uc,runPHPWithOptions:dc,runSql:hc,runWpInstallationWizard:Dc,setSiteLanguage:Hc,setSiteOptions:Ra,unzip:Xn,updateUserMeta:gc,wpCLI:Da,writeFile:Yn,writeFiles:Ec,zipWpContent:$c},Symbol.toStringTag,{value:"Module"})),V_={properties:{landingPage:{type:"string",description:"The URL to navigate to after the blueprint has been run."},description:{type:"string",description:"Optional description. It doesn't do anything but is exposed as a courtesy to developers who may want to document which blueprint file does what.",deprecated:"Use meta.description instead."},meta:{type:"object",properties:{title:{type:"string",description:"A clear and concise name for your Blueprint."},description:{type:"string",description:"A brief explanation of what your Blueprint offers."},author:{type:"string",description:"A GitHub username of the author of this Blueprint."},categories:{type:"array",items:{type:"string"},description:"Relevant categories to help users find your Blueprint in the future Blueprints section on WordPress.org."}},required:["title","author"],additionalProperties:!1,description:"Optional metadata. Used by the Blueprints gallery at https://github.com/WordPress/blueprints"},preferredVersions:{type:"object",properties:{php:{anyOf:[{$ref:"#/definitions/SupportedPHPVersion"},{type:"string",const:"latest"}],description:"The preferred PHP version to use. If not specified, the latest supported version will be used"},wp:{type:"string",description:"The preferred WordPress version to use. If not specified, the latest supported version will be used"}},required:["php","wp"],additionalProperties:!1,description:"The preferred PHP and WordPress versions to use."},features:{type:"object",properties:{intl:{type:"boolean"},networking:{type:"boolean",description:"Should boot with support for network request via wp_safe_remote_get?"}},additionalProperties:!1},extraLibraries:{type:"array",items:{$ref:"#/definitions/ExtraLibrary"},description:"Extra libraries to preload into the Playground instance."},constants:{$ref:"#/definitions/PHPConstants",description:"PHP Constants to define on every request"},plugins:{type:"array",items:{anyOf:[{type:"string"},{$ref:"#/definitions/FileReference"}]},description:"WordPress plugins to install and activate"},siteOptions:{type:"object",additionalProperties:{type:"string"},properties:{blogname:{type:"string",description:"The site title"}},description:"WordPress site options to define"},login:{anyOf:[{type:"boolean"},{type:"object",properties:{username:{type:"string"},password:{type:"string"}},required:["username","password"],additionalProperties:!1}],description:"User to log in as. If true, logs the user in as admin/password."},phpExtensionBundles:{deprecated:"No longer used. Feel free to remove it from your Blueprint."},steps:{type:"array",items:{anyOf:[{$ref:"#/definitions/StepDefinition"},{type:"string"},{not:{}},{type:"boolean",const:!1},{type:"null"}]},description:"The steps to run after every other operation in this Blueprint was executed."},$schema:{type:"string"}}},G_={enum:["8.4","8.3","8.2","8.1","8.0","7.4","7.3","7.2"]},Z_={additionalProperties:{type:["string","boolean","number"]}},Fc=Object.prototype.hasOwnProperty;function ke(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let n=null,s=0;const o=s;let f=!1;const p=s;if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let A;if(e.resource===void 0&&(A="resource")||e.path===void 0&&(A="path")){const $={instancePath:t,schemaPath:"#/definitions/VFSReference/required",keyword:"required",params:{missingProperty:A},message:"must have required property '"+A+"'"};n===null?n=[$]:n.push($),s++}else{const $=s;for(const S in e)if(!(S==="resource"||S==="path")){const P={instancePath:t,schemaPath:"#/definitions/VFSReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:S},message:"must NOT have additional properties"};n===null?n=[P]:n.push(P),s++;break}if($===s){if(e.resource!==void 0){let S=e.resource;const P=s;if(typeof S!="string"){const C={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[C]:n.push(C),s++}if(S!=="vfs"){const C={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/const",keyword:"const",params:{allowedValue:"vfs"},message:"must be equal to constant"};n===null?n=[C]:n.push(C),s++}var m=P===s}else var m=!0;if(m)if(e.path!==void 0){const S=s;if(typeof e.path!="string"){const C={instancePath:t+"/path",schemaPath:"#/definitions/VFSReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[C]:n.push(C),s++}var m=S===s}else var m=!0}}}else{const A={instancePath:t,schemaPath:"#/definitions/VFSReference/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[A]:n.push(A),s++}var h=p===s;if(f=f||h,!f){const A=s;if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let P;if(e.resource===void 0&&(P="resource")||e.name===void 0&&(P="name")||e.contents===void 0&&(P="contents")){const C={instancePath:t,schemaPath:"#/definitions/LiteralReference/required",keyword:"required",params:{missingProperty:P},message:"must have required property '"+P+"'"};n===null?n=[C]:n.push(C),s++}else{const C=s;for(const k in e)if(!(k==="resource"||k==="name"||k==="contents")){const E={instancePath:t,schemaPath:"#/definitions/LiteralReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"};n===null?n=[E]:n.push(E),s++;break}if(C===s){if(e.resource!==void 0){let k=e.resource;const E=s;if(typeof k!="string"){const D={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[D]:n.push(D),s++}if(k!=="literal"){const D={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/const",keyword:"const",params:{allowedValue:"literal"},message:"must be equal to constant"};n===null?n=[D]:n.push(D),s++}var _=E===s}else var _=!0;if(_){if(e.name!==void 0){const k=s;if(typeof e.name!="string"){const D={instancePath:t+"/name",schemaPath:"#/definitions/LiteralReference/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[D]:n.push(D),s++}var _=k===s}else var _=!0;if(_)if(e.contents!==void 0){let k=e.contents;const E=s,D=s;let I=!1;const B=s;if(typeof k!="string"){const M={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[M]:n.push(M),s++}var L=B===s;if(I=I||L,!I){const M=s;if(s===M)if(k&&typeof k=="object"&&!Array.isArray(k)){let z;if(k.BYTES_PER_ELEMENT===void 0&&(z="BYTES_PER_ELEMENT")||k.buffer===void 0&&(z="buffer")||k.byteLength===void 0&&(z="byteLength")||k.byteOffset===void 0&&(z="byteOffset")||k.length===void 0&&(z="length")){const ne={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/required",keyword:"required",params:{missingProperty:z},message:"must have required property '"+z+"'"};n===null?n=[ne]:n.push(ne),s++}else{const ne=s;for(const V in k)if(!(V==="BYTES_PER_ELEMENT"||V==="buffer"||V==="byteLength"||V==="byteOffset"||V==="length")){let Q=k[V];const ee=s;if(!(typeof Q=="number"&&isFinite(Q))){const G={instancePath:t+"/contents/"+V.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[G]:n.push(G),s++}var y=ee===s;if(!y)break}if(ne===s){if(k.BYTES_PER_ELEMENT!==void 0){let V=k.BYTES_PER_ELEMENT;const Q=s;if(!(typeof V=="number"&&isFinite(V))){const ee={instancePath:t+"/contents/BYTES_PER_ELEMENT",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[ee]:n.push(ee),s++}var g=Q===s}else var g=!0;if(g){if(k.buffer!==void 0){let V=k.buffer;const Q=s;if(s===Q)if(V&&typeof V=="object"&&!Array.isArray(V)){let G;if(V.byteLength===void 0&&(G="byteLength")){const fe={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:G},message:"must have required property '"+G+"'"};n===null?n=[fe]:n.push(fe),s++}else{const fe=s;for(const ie in V)if(ie!=="byteLength"){const ae={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ie},message:"must NOT have additional properties"};n===null?n=[ae]:n.push(ae),s++;break}if(fe===s&&V.byteLength!==void 0){let ie=V.byteLength;if(!(typeof ie=="number"&&isFinite(ie))){const ae={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"};n===null?n=[ae]:n.push(ae),s++}}}}else{const G={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[G]:n.push(G),s++}var g=Q===s}else var g=!0;if(g){if(k.byteLength!==void 0){let V=k.byteLength;const Q=s;if(!(typeof V=="number"&&isFinite(V))){const G={instancePath:t+"/contents/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[G]:n.push(G),s++}var g=Q===s}else var g=!0;if(g){if(k.byteOffset!==void 0){let V=k.byteOffset;const Q=s;if(!(typeof V=="number"&&isFinite(V))){const G={instancePath:t+"/contents/byteOffset",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[G]:n.push(G),s++}var g=Q===s}else var g=!0;if(g)if(k.length!==void 0){let V=k.length;const Q=s;if(!(typeof V=="number"&&isFinite(V))){const G={instancePath:t+"/contents/length",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[G]:n.push(G),s++}var g=Q===s}else var g=!0}}}}}}else{const z={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[z]:n.push(z),s++}var L=M===s;I=I||L}if(I)s=D,n!==null&&(D?n.length=D:n=null);else{const M={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};n===null?n=[M]:n.push(M),s++}var _=E===s}else var _=!0}}}}else{const P={instancePath:t,schemaPath:"#/definitions/LiteralReference/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[P]:n.push(P),s++}var h=A===s;if(f=f||h,!f){const P=s;if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let E;if(e.resource===void 0&&(E="resource")||e.slug===void 0&&(E="slug")){const D={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/required",keyword:"required",params:{missingProperty:E},message:"must have required property '"+E+"'"};n===null?n=[D]:n.push(D),s++}else{const D=s;for(const I in e)if(!(I==="resource"||I==="slug")){const B={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:I},message:"must NOT have additional properties"};n===null?n=[B]:n.push(B),s++;break}if(D===s){if(e.resource!==void 0){let I=e.resource;const B=s;if(typeof I!="string"){const W={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[W]:n.push(W),s++}if(I!=="wordpress.org/themes"){const W={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/themes"},message:"must be equal to constant"};n===null?n=[W]:n.push(W),s++}var b=B===s}else var b=!0;if(b)if(e.slug!==void 0){const I=s;if(typeof e.slug!="string"){const W={instancePath:t+"/slug",schemaPath:"#/definitions/CoreThemeReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[W]:n.push(W),s++}var b=I===s}else var b=!0}}}else{const E={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[E]:n.push(E),s++}var h=P===s;if(f=f||h,!f){const E=s;if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let B;if(e.resource===void 0&&(B="resource")||e.slug===void 0&&(B="slug")){const W={instancePath:t,schemaPath:"#/definitions/CorePluginReference/required",keyword:"required",params:{missingProperty:B},message:"must have required property '"+B+"'"};n===null?n=[W]:n.push(W),s++}else{const W=s;for(const M in e)if(!(M==="resource"||M==="slug")){const Z={instancePath:t,schemaPath:"#/definitions/CorePluginReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:M},message:"must NOT have additional properties"};n===null?n=[Z]:n.push(Z),s++;break}if(W===s){if(e.resource!==void 0){let M=e.resource;const Z=s;if(typeof M!="string"){const z={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[z]:n.push(z),s++}if(M!=="wordpress.org/plugins"){const z={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/plugins"},message:"must be equal to constant"};n===null?n=[z]:n.push(z),s++}var R=Z===s}else var R=!0;if(R)if(e.slug!==void 0){const M=s;if(typeof e.slug!="string"){const z={instancePath:t+"/slug",schemaPath:"#/definitions/CorePluginReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[z]:n.push(z),s++}var R=M===s}else var R=!0}}}else{const B={instancePath:t,schemaPath:"#/definitions/CorePluginReference/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[B]:n.push(B),s++}var h=E===s;if(f=f||h,!f){const B=s;if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let Z;if(e.resource===void 0&&(Z="resource")||e.url===void 0&&(Z="url")){const z={instancePath:t,schemaPath:"#/definitions/UrlReference/required",keyword:"required",params:{missingProperty:Z},message:"must have required property '"+Z+"'"};n===null?n=[z]:n.push(z),s++}else{const z=s;for(const ne in e)if(!(ne==="resource"||ne==="url"||ne==="caption")){const V={instancePath:t,schemaPath:"#/definitions/UrlReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ne},message:"must NOT have additional properties"};n===null?n=[V]:n.push(V),s++;break}if(z===s){if(e.resource!==void 0){let ne=e.resource;const V=s;if(typeof ne!="string"){const Q={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[Q]:n.push(Q),s++}if(ne!=="url"){const Q={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant"};n===null?n=[Q]:n.push(Q),s++}var O=V===s}else var O=!0;if(O){if(e.url!==void 0){const ne=s;if(typeof e.url!="string"){const Q={instancePath:t+"/url",schemaPath:"#/definitions/UrlReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[Q]:n.push(Q),s++}var O=ne===s}else var O=!0;if(O)if(e.caption!==void 0){const ne=s;if(typeof e.caption!="string"){const Q={instancePath:t+"/caption",schemaPath:"#/definitions/UrlReference/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[Q]:n.push(Q),s++}var O=ne===s}else var O=!0}}}}else{const Z={instancePath:t,schemaPath:"#/definitions/UrlReference/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[Z]:n.push(Z),s++}var h=B===s;if(f=f||h,!f){const Z=s;if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let V;if(e.resource===void 0&&(V="resource")||e.path===void 0&&(V="path")){const Q={instancePath:t,schemaPath:"#/definitions/BundledReference/required",keyword:"required",params:{missingProperty:V},message:"must have required property '"+V+"'"};n===null?n=[Q]:n.push(Q),s++}else{const Q=s;for(const ee in e)if(!(ee==="resource"||ee==="path")){const G={instancePath:t,schemaPath:"#/definitions/BundledReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ee},message:"must NOT have additional properties"};n===null?n=[G]:n.push(G),s++;break}if(Q===s){if(e.resource!==void 0){let ee=e.resource;const G=s;if(typeof ee!="string"){const fe={instancePath:t+"/resource",schemaPath:"#/definitions/BundledReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[fe]:n.push(fe),s++}if(ee!=="bundled"){const fe={instancePath:t+"/resource",schemaPath:"#/definitions/BundledReference/properties/resource/const",keyword:"const",params:{allowedValue:"bundled"},message:"must be equal to constant"};n===null?n=[fe]:n.push(fe),s++}var H=G===s}else var H=!0;if(H)if(e.path!==void 0){const ee=s;if(typeof e.path!="string"){const fe={instancePath:t+"/path",schemaPath:"#/definitions/BundledReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[fe]:n.push(fe),s++}var H=ee===s}else var H=!0}}}else{const V={instancePath:t,schemaPath:"#/definitions/BundledReference/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[V]:n.push(V),s++}var h=Z===s;f=f||h}}}}}if(f)s=o,n!==null&&(o?n.length=o:n=null);else{const A={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[A]:n.push(A),s++,ke.errors=n,!1}return ke.errors=n,s===0}const an={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:
979
+ );`})).json;for(const{slug:h,version:_}of p)n.push({url:`https://downloads.wordpress.org/translation/theme/${h}/${_}/${t}.zip`,type:"theme"});await e.isDir(`${i}/wp-content/languages/plugins`)||await e.mkdir(`${i}/wp-content/languages/plugins`),await e.isDir(`${i}/wp-content/languages/themes`)||await e.mkdir(`${i}/wp-content/languages/themes`);const c=new Qr({concurrency:5}),m=n.map(({url:h,type:_})=>c.run(async()=>{try{const L=await fetch(h);if(!L.ok)throw new Error(`Failed to download translations for ${_}: ${L.statusText}`);let y=`${i}/wp-content/languages`;_==="plugin"?y+="/plugins":_==="theme"&&(y+="/themes"),await vc(e,new File([await L.blob()],`${t}-${_}.zip`),y)}catch(L){if(_==="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/.`);Pe.warn(`Error downloading translations for ${_}: ${L}`)}}));await Promise.all(m)},tg=Object.freeze(Object.defineProperty({__proto__:null,activatePlugin:Ra,activateTheme:Ia,cp:Pc,defineSiteUrl:Ba,defineWpConfigConsts:Zn,enableMultisite:Ec,exportWXR:Ic,importThemeStarterContent:Na,importWordPressFiles:Rc,importWxr:Lc,installPlugin:Hc,installTheme:$c,login:Fc,mkdir:Tc,mv:Ac,request:bc,resetData:Bc,rm:Da,rmdir:Cc,runPHP:_c,runPHPWithOptions:gc,runSql:wc,runWpInstallationWizard:Nc,setSiteLanguage:Uc,setSiteOptions:Ha,unzip:Xn,updateUserMeta:kc,wpCLI:Fa,writeFile:Yn,writeFiles:Oc,zipWpContent:jc},Symbol.toStringTag,{value:"Module"})),rg={properties:{landingPage:{type:"string",description:"The URL to navigate to after the blueprint has been run."},description:{type:"string",description:"Optional description. It doesn't do anything but is exposed as a courtesy to developers who may want to document which blueprint file does what.",deprecated:"Use meta.description instead."},meta:{type:"object",properties:{title:{type:"string",description:"A clear and concise name for your Blueprint."},description:{type:"string",description:"A brief explanation of what your Blueprint offers."},author:{type:"string",description:"A GitHub username of the author of this Blueprint."},categories:{type:"array",items:{type:"string"},description:"Relevant categories to help users find your Blueprint in the future Blueprints section on WordPress.org."}},required:["title","author"],additionalProperties:!1,description:"Optional metadata. Used by the Blueprints gallery at https://github.com/WordPress/blueprints"},preferredVersions:{type:"object",properties:{php:{anyOf:[{$ref:"#/definitions/SupportedPHPVersion"},{type:"string",const:"latest"}],description:"The preferred PHP version to use. If not specified, the latest supported version will be used"},wp:{type:"string",description:"The preferred WordPress version to use. If not specified, the latest supported version will be used"}},required:["php","wp"],additionalProperties:!1,description:"The preferred PHP and WordPress versions to use."},features:{type:"object",properties:{intl:{type:"boolean"},networking:{type:"boolean",description:"Should boot with support for network request via wp_safe_remote_get?"}},additionalProperties:!1},extraLibraries:{type:"array",items:{$ref:"#/definitions/ExtraLibrary"},description:"Extra libraries to preload into the Playground instance."},constants:{$ref:"#/definitions/PHPConstants",description:"PHP Constants to define on every request"},plugins:{type:"array",items:{anyOf:[{type:"string"},{$ref:"#/definitions/FileReference"}]},description:"WordPress plugins to install and activate"},siteOptions:{type:"object",additionalProperties:{type:"string"},properties:{blogname:{type:"string",description:"The site title"}},description:"WordPress site options to define"},login:{anyOf:[{type:"boolean"},{type:"object",properties:{username:{type:"string"},password:{type:"string"}},required:["username","password"],additionalProperties:!1}],description:"User to log in as. If true, logs the user in as admin/password."},phpExtensionBundles:{deprecated:"No longer used. Feel free to remove it from your Blueprint."},steps:{type:"array",items:{anyOf:[{$ref:"#/definitions/StepDefinition"},{type:"string"},{not:{}},{type:"boolean",const:!1},{type:"null"}]},description:"The steps to run after every other operation in this Blueprint was executed."},$schema:{type:"string"}}},sg={enum:["8.4","8.3","8.2","8.1","8.0","7.4","7.3","7.2"]},ng={additionalProperties:{type:["string","boolean","number"]}},Wc=Object.prototype.hasOwnProperty;function ke(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let n=null,s=0;const o=s;let f=!1;const p=s;if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let A;if(e.resource===void 0&&(A="resource")||e.path===void 0&&(A="path")){const H={instancePath:t,schemaPath:"#/definitions/VFSReference/required",keyword:"required",params:{missingProperty:A},message:"must have required property '"+A+"'"};n===null?n=[H]:n.push(H),s++}else{const H=s;for(const S in e)if(!(S==="resource"||S==="path")){const P={instancePath:t,schemaPath:"#/definitions/VFSReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:S},message:"must NOT have additional properties"};n===null?n=[P]:n.push(P),s++;break}if(H===s){if(e.resource!==void 0){let S=e.resource;const P=s;if(typeof S!="string"){const C={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[C]:n.push(C),s++}if(S!=="vfs"){const C={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/const",keyword:"const",params:{allowedValue:"vfs"},message:"must be equal to constant"};n===null?n=[C]:n.push(C),s++}var m=P===s}else var m=!0;if(m)if(e.path!==void 0){const S=s;if(typeof e.path!="string"){const C={instancePath:t+"/path",schemaPath:"#/definitions/VFSReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[C]:n.push(C),s++}var m=S===s}else var m=!0}}}else{const A={instancePath:t,schemaPath:"#/definitions/VFSReference/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[A]:n.push(A),s++}var h=p===s;if(f=f||h,!f){const A=s;if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let P;if(e.resource===void 0&&(P="resource")||e.name===void 0&&(P="name")||e.contents===void 0&&(P="contents")){const C={instancePath:t,schemaPath:"#/definitions/LiteralReference/required",keyword:"required",params:{missingProperty:P},message:"must have required property '"+P+"'"};n===null?n=[C]:n.push(C),s++}else{const C=s;for(const k in e)if(!(k==="resource"||k==="name"||k==="contents")){const E={instancePath:t,schemaPath:"#/definitions/LiteralReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"};n===null?n=[E]:n.push(E),s++;break}if(C===s){if(e.resource!==void 0){let k=e.resource;const E=s;if(typeof k!="string"){const D={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[D]:n.push(D),s++}if(k!=="literal"){const D={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/const",keyword:"const",params:{allowedValue:"literal"},message:"must be equal to constant"};n===null?n=[D]:n.push(D),s++}var _=E===s}else var _=!0;if(_){if(e.name!==void 0){const k=s;if(typeof e.name!="string"){const D={instancePath:t+"/name",schemaPath:"#/definitions/LiteralReference/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[D]:n.push(D),s++}var _=k===s}else var _=!0;if(_)if(e.contents!==void 0){let k=e.contents;const E=s,D=s;let I=!1;const N=s;if(typeof k!="string"){const M={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[M]:n.push(M),s++}var L=N===s;if(I=I||L,!I){const M=s;if(s===M)if(k&&typeof k=="object"&&!Array.isArray(k)){let z;if(k.BYTES_PER_ELEMENT===void 0&&(z="BYTES_PER_ELEMENT")||k.buffer===void 0&&(z="buffer")||k.byteLength===void 0&&(z="byteLength")||k.byteOffset===void 0&&(z="byteOffset")||k.length===void 0&&(z="length")){const ne={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/required",keyword:"required",params:{missingProperty:z},message:"must have required property '"+z+"'"};n===null?n=[ne]:n.push(ne),s++}else{const ne=s;for(const V in k)if(!(V==="BYTES_PER_ELEMENT"||V==="buffer"||V==="byteLength"||V==="byteOffset"||V==="length")){let Q=k[V];const ee=s;if(!(typeof Q=="number"&&isFinite(Q))){const G={instancePath:t+"/contents/"+V.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[G]:n.push(G),s++}var y=ee===s;if(!y)break}if(ne===s){if(k.BYTES_PER_ELEMENT!==void 0){let V=k.BYTES_PER_ELEMENT;const Q=s;if(!(typeof V=="number"&&isFinite(V))){const ee={instancePath:t+"/contents/BYTES_PER_ELEMENT",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[ee]:n.push(ee),s++}var g=Q===s}else var g=!0;if(g){if(k.buffer!==void 0){let V=k.buffer;const Q=s;if(s===Q)if(V&&typeof V=="object"&&!Array.isArray(V)){let G;if(V.byteLength===void 0&&(G="byteLength")){const fe={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:G},message:"must have required property '"+G+"'"};n===null?n=[fe]:n.push(fe),s++}else{const fe=s;for(const ie in V)if(ie!=="byteLength"){const ae={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ie},message:"must NOT have additional properties"};n===null?n=[ae]:n.push(ae),s++;break}if(fe===s&&V.byteLength!==void 0){let ie=V.byteLength;if(!(typeof ie=="number"&&isFinite(ie))){const ae={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"};n===null?n=[ae]:n.push(ae),s++}}}}else{const G={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[G]:n.push(G),s++}var g=Q===s}else var g=!0;if(g){if(k.byteLength!==void 0){let V=k.byteLength;const Q=s;if(!(typeof V=="number"&&isFinite(V))){const G={instancePath:t+"/contents/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[G]:n.push(G),s++}var g=Q===s}else var g=!0;if(g){if(k.byteOffset!==void 0){let V=k.byteOffset;const Q=s;if(!(typeof V=="number"&&isFinite(V))){const G={instancePath:t+"/contents/byteOffset",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[G]:n.push(G),s++}var g=Q===s}else var g=!0;if(g)if(k.length!==void 0){let V=k.length;const Q=s;if(!(typeof V=="number"&&isFinite(V))){const G={instancePath:t+"/contents/length",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[G]:n.push(G),s++}var g=Q===s}else var g=!0}}}}}}else{const z={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[z]:n.push(z),s++}var L=M===s;I=I||L}if(I)s=D,n!==null&&(D?n.length=D:n=null);else{const M={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};n===null?n=[M]:n.push(M),s++}var _=E===s}else var _=!0}}}}else{const P={instancePath:t,schemaPath:"#/definitions/LiteralReference/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[P]:n.push(P),s++}var h=A===s;if(f=f||h,!f){const P=s;if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let E;if(e.resource===void 0&&(E="resource")||e.slug===void 0&&(E="slug")){const D={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/required",keyword:"required",params:{missingProperty:E},message:"must have required property '"+E+"'"};n===null?n=[D]:n.push(D),s++}else{const D=s;for(const I in e)if(!(I==="resource"||I==="slug")){const N={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:I},message:"must NOT have additional properties"};n===null?n=[N]:n.push(N),s++;break}if(D===s){if(e.resource!==void 0){let I=e.resource;const N=s;if(typeof I!="string"){const U={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[U]:n.push(U),s++}if(I!=="wordpress.org/themes"){const U={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/themes"},message:"must be equal to constant"};n===null?n=[U]:n.push(U),s++}var b=N===s}else var b=!0;if(b)if(e.slug!==void 0){const I=s;if(typeof e.slug!="string"){const U={instancePath:t+"/slug",schemaPath:"#/definitions/CoreThemeReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[U]:n.push(U),s++}var b=I===s}else var b=!0}}}else{const E={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[E]:n.push(E),s++}var h=P===s;if(f=f||h,!f){const E=s;if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.resource===void 0&&(N="resource")||e.slug===void 0&&(N="slug")){const U={instancePath:t,schemaPath:"#/definitions/CorePluginReference/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"};n===null?n=[U]:n.push(U),s++}else{const U=s;for(const M in e)if(!(M==="resource"||M==="slug")){const Z={instancePath:t,schemaPath:"#/definitions/CorePluginReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:M},message:"must NOT have additional properties"};n===null?n=[Z]:n.push(Z),s++;break}if(U===s){if(e.resource!==void 0){let M=e.resource;const Z=s;if(typeof M!="string"){const z={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[z]:n.push(z),s++}if(M!=="wordpress.org/plugins"){const z={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/plugins"},message:"must be equal to constant"};n===null?n=[z]:n.push(z),s++}var R=Z===s}else var R=!0;if(R)if(e.slug!==void 0){const M=s;if(typeof e.slug!="string"){const z={instancePath:t+"/slug",schemaPath:"#/definitions/CorePluginReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[z]:n.push(z),s++}var R=M===s}else var R=!0}}}else{const N={instancePath:t,schemaPath:"#/definitions/CorePluginReference/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[N]:n.push(N),s++}var h=E===s;if(f=f||h,!f){const N=s;if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let Z;if(e.resource===void 0&&(Z="resource")||e.url===void 0&&(Z="url")){const z={instancePath:t,schemaPath:"#/definitions/UrlReference/required",keyword:"required",params:{missingProperty:Z},message:"must have required property '"+Z+"'"};n===null?n=[z]:n.push(z),s++}else{const z=s;for(const ne in e)if(!(ne==="resource"||ne==="url"||ne==="caption")){const V={instancePath:t,schemaPath:"#/definitions/UrlReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ne},message:"must NOT have additional properties"};n===null?n=[V]:n.push(V),s++;break}if(z===s){if(e.resource!==void 0){let ne=e.resource;const V=s;if(typeof ne!="string"){const Q={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[Q]:n.push(Q),s++}if(ne!=="url"){const Q={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant"};n===null?n=[Q]:n.push(Q),s++}var O=V===s}else var O=!0;if(O){if(e.url!==void 0){const ne=s;if(typeof e.url!="string"){const Q={instancePath:t+"/url",schemaPath:"#/definitions/UrlReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[Q]:n.push(Q),s++}var O=ne===s}else var O=!0;if(O)if(e.caption!==void 0){const ne=s;if(typeof e.caption!="string"){const Q={instancePath:t+"/caption",schemaPath:"#/definitions/UrlReference/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[Q]:n.push(Q),s++}var O=ne===s}else var O=!0}}}}else{const Z={instancePath:t,schemaPath:"#/definitions/UrlReference/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[Z]:n.push(Z),s++}var h=N===s;if(f=f||h,!f){const Z=s;if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let V;if(e.resource===void 0&&(V="resource")||e.path===void 0&&(V="path")){const Q={instancePath:t,schemaPath:"#/definitions/BundledReference/required",keyword:"required",params:{missingProperty:V},message:"must have required property '"+V+"'"};n===null?n=[Q]:n.push(Q),s++}else{const Q=s;for(const ee in e)if(!(ee==="resource"||ee==="path")){const G={instancePath:t,schemaPath:"#/definitions/BundledReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ee},message:"must NOT have additional properties"};n===null?n=[G]:n.push(G),s++;break}if(Q===s){if(e.resource!==void 0){let ee=e.resource;const G=s;if(typeof ee!="string"){const fe={instancePath:t+"/resource",schemaPath:"#/definitions/BundledReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[fe]:n.push(fe),s++}if(ee!=="bundled"){const fe={instancePath:t+"/resource",schemaPath:"#/definitions/BundledReference/properties/resource/const",keyword:"const",params:{allowedValue:"bundled"},message:"must be equal to constant"};n===null?n=[fe]:n.push(fe),s++}var $=G===s}else var $=!0;if($)if(e.path!==void 0){const ee=s;if(typeof e.path!="string"){const fe={instancePath:t+"/path",schemaPath:"#/definitions/BundledReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[fe]:n.push(fe),s++}var $=ee===s}else var $=!0}}}else{const V={instancePath:t,schemaPath:"#/definitions/BundledReference/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[V]:n.push(V),s++}var h=Z===s;f=f||h}}}}}if(f)s=o,n!==null&&(o?n.length=o:n=null);else{const A={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[A]:n.push(A),s++,ke.errors=n,!1}return ke.errors=n,s===0}const an={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:
980
980
 
981
981
  - 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.
982
982
 
983
983
  - 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.
984
984
  This option is only kept in here to avoid breaking Blueprint schema validation
985
985
  for existing apps using this option.`}},required:["consts","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"defineSiteUrl"},siteUrl:{type:"string",description:"The URL"}},required:["siteUrl","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"enableMultisite"},wpCliPath:{type:"string",description:"wp-cli.phar path"}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"importWxr"},file:{$ref:"#/definitions/FileReference",description:"The file to import"},importer:{type:"string",enum:["data-liberation","default"],description:"The importer to use. Possible values:\n\n- `default`: The importer from https://github.com/humanmade/WordPress-Importer\n- `data-liberation`: The experimental Data Liberation WXR importer developed at https://github.com/WordPress/wordpress-playground/issues/1894\n\nThis option is deprecated. The syntax will not be removed, but once the Data Liberation importer matures, it will become the only supported importer and the `importer` option will be ignored.",deprecated:!0}},required:["file","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"importThemeStarterContent",description:"The step identifier."},themeSlug:{type:"string",description:"The name of the theme to import content from."}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"importWordPressFiles"},wordPressFilesZip:{$ref:"#/definitions/FileReference",description:"The zip file containing the top-level WordPress files and directories."},pathInZip:{type:"string",description:"The path inside the zip file where the WordPress files are."}},required:["step","wordPressFilesZip"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},ifAlreadyInstalled:{type:"string",enum:["overwrite","skip","error"],description:"What to do if the asset already exists."},step:{type:"string",const:"installPlugin",description:"The step identifier."},pluginData:{anyOf:[{$ref:"#/definitions/FileReference"},{$ref:"#/definitions/DirectoryReference"}],description:"The plugin files to install. It can be a plugin zip file, a single PHP file, or a directory containing all the plugin files at its root."},pluginZipFile:{$ref:"#/definitions/FileReference",deprecated:". Use 'pluginData' instead."},options:{$ref:"#/definitions/InstallPluginOptions",description:"Optional installation options."}},required:["pluginData","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},ifAlreadyInstalled:{type:"string",enum:["overwrite","skip","error"],description:"What to do if the asset already exists."},step:{type:"string",const:"installTheme",description:"The step identifier."},themeData:{anyOf:[{$ref:"#/definitions/FileReference"},{$ref:"#/definitions/DirectoryReference"}],description:"The theme files to install. It can be either a theme zip file, or a directory containing all the theme files at its root."},themeZipFile:{$ref:"#/definitions/FileReference",deprecated:". Use 'themeData' instead."},options:{$ref:"#/definitions/InstallThemeOptions",description:"Optional installation options."}},required:["step","themeData"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"login"},username:{type:"string",description:"The user to log in as. Defaults to 'admin'."},password:{type:"string",deprecated:`The password field is deprecated and will be removed in a future version.
986
- 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:{anyOf:[{type:"string"},{type:"object",properties:{filename:{type:"string",description:"This property is ignored during Blueprint v1 execution but exists so the same runPHP step structure can be used for Blueprints v1 and v2."},content:{type:"string"}},required:["filename","content"],additionalProperties:!1}],description:"The PHP code to run."}},required:["code","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runPHPWithOptions"},options:{$ref:"#/definitions/PHPRunOptions",description:"Run options (See /wordpress-playground/api/universal/interface/PHPRunOptions/))"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runWpInstallationWizard"},options:{$ref:"#/definitions/WordPressInstallationOptions"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runSql",description:"The step identifier."},sql:{$ref:"#/definitions/FileReference",description:"The SQL to run. Each non-empty line must contain a valid SQL query."}},required:["sql","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteOptions",description:'The name of the step. Must be "setSiteOptions".'},options:{type:"object",additionalProperties:{},description:"The options to set on the site."}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"unzip"},zipFile:{$ref:"#/definitions/FileReference",description:"The zip file to extract"},zipPath:{type:"string",description:"The path of the zip file to extract",deprecated:"Use zipFile instead."},extractToPath:{type:"string",description:"The path to extract the zip file to"}},required:["extractToPath","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"updateUserMeta"},meta:{type:"object",additionalProperties:{},description:'An object of user meta values to set, e.g. { "first_name": "John" }'},userId:{type:"number",description:"User ID"}},required:["meta","step","userId"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFile"},path:{type:"string",description:"The path of the file to write to"},data:{anyOf:[{$ref:"#/definitions/FileReference"},{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"The data to write"}},required:["data","path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFiles"},writeToPath:{type:"string",description:"The path of the file to write to"},filesTree:{$ref:"#/definitions/DirectoryReference",description:"The 'filesTree' defines the directory structure, supporting 'literal:directory' or 'git:directory' types. The 'name' represents the root directory, while 'files' is an object where keys are file paths, and values contain either file content as a string or nested objects for subdirectories."}},required:["filesTree","step","writeToPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"wp-cli",description:"The step identifier."},command:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}],description:"The WP CLI command to run."},wpCliPath:{type:"string",description:"wp-cli.phar path"}},required:["command","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteLanguage"},language:{type:"string",description:"The language to set, e.g. 'en_US'"}},required:["language","step"]}]},Y_={additionalProperties:{anyOf:[{$ref:"#/definitions/FileTree"},{type:["object","string"]}]}},$i={validate:Pr};function Pr(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let n=null,s=0;if(s===0)if(e&&typeof e=="object"&&!Array.isArray(e))for(const p in e){let c=e[p];const m=s,h=s;let _=!1;const L=s;$i.validate(c,{instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:p,rootData:a})||(n=n===null?$i.validate.errors:n.concat($i.validate.errors),s=n.length);var o=L===s;if(_=_||o,!_){const y=s;if(!(c&&typeof c=="object"&&!Array.isArray(c))&&typeof c!="string"){const b={instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf/1/type",keyword:"type",params:{type:Y_.additionalProperties.anyOf[1].type},message:"must be object,string"};n===null?n=[b]:n.push(b),s++}var o=y===s;_=_||o}if(_)s=h,n!==null&&(h?n.length=h:n=null);else{const y={instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[y]:n.push(y),s++,Pr.errors=n,!1}var f=m===s;if(!f)break}else return Pr.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Pr.errors=n,s===0}function Nt(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let n=null,s=0;if(s===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let f;if(e.files===void 0&&(f="files")||e.name===void 0&&(f="name")||e.resource===void 0&&(f="resource"))return Nt.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const p=s;for(const c in e)if(!(c==="resource"||c==="files"||c==="name"))return Nt.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:c},message:"must NOT have additional properties"}],!1;if(p===s){if(e.resource!==void 0){let c=e.resource;const m=s;if(typeof c!="string")return Nt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(c!=="literal:directory")return Nt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"literal:directory"},message:"must be equal to constant"}],!1;var o=m===s}else var o=!0;if(o){if(e.files!==void 0){const c=s;Pr(e.files,{instancePath:t+"/files",parentData:e,parentDataProperty:"files",rootData:a})||(n=n===null?Pr.errors:n.concat(Pr.errors),s=n.length);var o=c===s}else var o=!0;if(o)if(e.name!==void 0){const c=s;if(typeof e.name!="string")return Nt.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=c===s}else var o=!0}}}}else return Nt.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Nt.errors=n,s===0}function Ot(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let n=null,s=0;const o=s;let f=!1;const p=s;if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let _;if(e.resource===void 0&&(_="resource")||e.url===void 0&&(_="url")||e.ref===void 0&&(_="ref")||e.path===void 0&&(_="path")){const L={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/required",keyword:"required",params:{missingProperty:_},message:"must have required property '"+_+"'"};n===null?n=[L]:n.push(L),s++}else{const L=s;for(const y in e)if(!(y==="resource"||y==="url"||y==="ref"||y==="path")){const g={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"};n===null?n=[g]:n.push(g),s++;break}if(L===s){if(e.resource!==void 0){let y=e.resource;const g=s;if(typeof y!="string"){const b={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[b]:n.push(b),s++}if(y!=="git:directory"){const b={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/const",keyword:"const",params:{allowedValue:"git:directory"},message:"must be equal to constant"};n===null?n=[b]:n.push(b),s++}var m=g===s}else var m=!0;if(m){if(e.url!==void 0){const y=s;if(typeof e.url!="string"){const b={instancePath:t+"/url",schemaPath:"#/definitions/GitDirectoryReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[b]:n.push(b),s++}var m=y===s}else var m=!0;if(m){if(e.ref!==void 0){const y=s;if(typeof e.ref!="string"){const b={instancePath:t+"/ref",schemaPath:"#/definitions/GitDirectoryReference/properties/ref/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[b]:n.push(b),s++}var m=y===s}else var m=!0;if(m)if(e.path!==void 0){const y=s;if(typeof e.path!="string"){const b={instancePath:t+"/path",schemaPath:"#/definitions/GitDirectoryReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[b]:n.push(b),s++}var m=y===s}else var m=!0}}}}}else{const _={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[_]:n.push(_),s++}var h=p===s;if(f=f||h,!f){const _=s;Nt(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(n=n===null?Nt.errors:n.concat(Nt.errors),s=n.length);var h=_===s;f=f||h}if(f)s=o,n!==null&&(o?n.length=o:n=null);else{const _={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[_]:n.push(_),s++,Ot.errors=n,!1}return Ot.errors=n,s===0}const Nc={enum:["GET","POST","HEAD","OPTIONS","PATCH","PUT","DELETE"]};function _t(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let n=null,s=0;if(s===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let b;if(e.url===void 0&&(b="url"))return _t.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"}],!1;{const R=s;for(const O in e)if(!(O==="method"||O==="url"||O==="headers"||O==="body"))return _t.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:O},message:"must NOT have additional properties"}],!1;if(R===s){if(e.method!==void 0){let O=e.method;const H=s;if(typeof O!="string")return _t.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(O==="GET"||O==="POST"||O==="HEAD"||O==="OPTIONS"||O==="PATCH"||O==="PUT"||O==="DELETE"))return _t.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Nc.enum},message:"must be equal to one of the allowed values"}],!1;var o=H===s}else var o=!0;if(o){if(e.url!==void 0){const O=s;if(typeof e.url!="string")return _t.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=O===s}else var o=!0;if(o){if(e.headers!==void 0){let O=e.headers;const H=s;if(s===s)if(O&&typeof O=="object"&&!Array.isArray(O))for(const S in O){const P=s;if(typeof O[S]!="string")return _t.errors=[{instancePath:t+"/headers/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=P===s;if(!f)break}else return _t.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=H===s}else var o=!0;if(o)if(e.body!==void 0){let O=e.body;const H=s,A=s;let $=!1;const S=s;if(typeof O!="string"){const C={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[C]:n.push(C),s++}var p=S===s;if($=$||p,!$){const C=s;if(s===C)if(O&&typeof O=="object"&&!Array.isArray(O)){let E;if(O.BYTES_PER_ELEMENT===void 0&&(E="BYTES_PER_ELEMENT")||O.buffer===void 0&&(E="buffer")||O.byteLength===void 0&&(E="byteLength")||O.byteOffset===void 0&&(E="byteOffset")||O.length===void 0&&(E="length")){const D={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:E},message:"must have required property '"+E+"'"};n===null?n=[D]:n.push(D),s++}else{const D=s;for(const I in O)if(!(I==="BYTES_PER_ELEMENT"||I==="buffer"||I==="byteLength"||I==="byteOffset"||I==="length")){let B=O[I];const W=s;if(!(typeof B=="number"&&isFinite(B))){const M={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[M]:n.push(M),s++}var c=W===s;if(!c)break}if(D===s){if(O.BYTES_PER_ELEMENT!==void 0){let I=O.BYTES_PER_ELEMENT;const B=s;if(!(typeof I=="number"&&isFinite(I))){const W={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[W]:n.push(W),s++}var m=B===s}else var m=!0;if(m){if(O.buffer!==void 0){let I=O.buffer;const B=s;if(s===B)if(I&&typeof I=="object"&&!Array.isArray(I)){let M;if(I.byteLength===void 0&&(M="byteLength")){const Z={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:M},message:"must have required property '"+M+"'"};n===null?n=[Z]:n.push(Z),s++}else{const Z=s;for(const z in I)if(z!=="byteLength"){const ne={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:z},message:"must NOT have additional properties"};n===null?n=[ne]:n.push(ne),s++;break}if(Z===s&&I.byteLength!==void 0){let z=I.byteLength;if(!(typeof z=="number"&&isFinite(z))){const ne={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[ne]:n.push(ne),s++}}}}else{const M={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[M]:n.push(M),s++}var m=B===s}else var m=!0;if(m){if(O.byteLength!==void 0){let I=O.byteLength;const B=s;if(!(typeof I=="number"&&isFinite(I))){const M={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[M]:n.push(M),s++}var m=B===s}else var m=!0;if(m){if(O.byteOffset!==void 0){let I=O.byteOffset;const B=s;if(!(typeof I=="number"&&isFinite(I))){const M={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[M]:n.push(M),s++}var m=B===s}else var m=!0;if(m)if(O.length!==void 0){let I=O.length;const B=s;if(!(typeof I=="number"&&isFinite(I))){const M={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[M]:n.push(M),s++}var m=B===s}else var m=!0}}}}}}else{const E={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[E]:n.push(E),s++}var p=C===s;if($=$||p,!$){const E=s;if(s===E)if(O&&typeof O=="object"&&!Array.isArray(O))for(const I in O){let B=O[I];const W=s,M=s;let Z=!1;const z=s;if(typeof B!="string"){const ne={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[ne]:n.push(ne),s++}var h=z===s;if(Z=Z||h,!Z){const ne=s;if(s===ne)if(B&&typeof B=="object"&&!Array.isArray(B)){let Q;if(B.BYTES_PER_ELEMENT===void 0&&(Q="BYTES_PER_ELEMENT")||B.buffer===void 0&&(Q="buffer")||B.byteLength===void 0&&(Q="byteLength")||B.byteOffset===void 0&&(Q="byteOffset")||B.length===void 0&&(Q="length")){const ee={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/required",keyword:"required",params:{missingProperty:Q},message:"must have required property '"+Q+"'"};n===null?n=[ee]:n.push(ee),s++}else{const ee=s;for(const G in B)if(!(G==="BYTES_PER_ELEMENT"||G==="buffer"||G==="byteLength"||G==="byteOffset"||G==="length")){let fe=B[G];const ie=s;if(!(typeof fe=="number"&&isFinite(fe))){const ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+G.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"};n===null?n=[ae]:n.push(ae),s++}var _=ie===s;if(!_)break}if(ee===s){if(B.BYTES_PER_ELEMENT!==void 0){let G=B.BYTES_PER_ELEMENT;const fe=s;if(!(typeof G=="number"&&isFinite(G))){const ie={instancePath:t+"/body/"+I.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"};n===null?n=[ie]:n.push(ie),s++}var L=fe===s}else var L=!0;if(L){if(B.buffer!==void 0){let G=B.buffer;const fe=s;if(s===fe)if(G&&typeof G=="object"&&!Array.isArray(G)){let ae;if(G.byteLength===void 0&&(ae="byteLength")){const Se={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:ae},message:"must have required property '"+ae+"'"};n===null?n=[Se]:n.push(Se),s++}else{const Se=s;for(const Ae in G)if(Ae!=="byteLength"){const Ze={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Ae},message:"must NOT have additional properties"};n===null?n=[Ze]:n.push(Ze),s++;break}if(Se===s&&G.byteLength!==void 0){let Ae=G.byteLength;if(!(typeof Ae=="number"&&isFinite(Ae))){const Ze={instancePath:t+"/body/"+I.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"};n===null?n=[Ze]:n.push(Ze),s++}}}}else{const ae={instancePath:t+"/body/"+I.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"};n===null?n=[ae]:n.push(ae),s++}var L=fe===s}else var L=!0;if(L){if(B.byteLength!==void 0){let G=B.byteLength;const fe=s;if(!(typeof G=="number"&&isFinite(G))){const ae={instancePath:t+"/body/"+I.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"};n===null?n=[ae]:n.push(ae),s++}var L=fe===s}else var L=!0;if(L){if(B.byteOffset!==void 0){let G=B.byteOffset;const fe=s;if(!(typeof G=="number"&&isFinite(G))){const ae={instancePath:t+"/body/"+I.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"};n===null?n=[ae]:n.push(ae),s++}var L=fe===s}else var L=!0;if(L)if(B.length!==void 0){let G=B.length;const fe=s;if(!(typeof G=="number"&&isFinite(G))){const ae={instancePath:t+"/body/"+I.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"};n===null?n=[ae]:n.push(ae),s++}var L=fe===s}else var L=!0}}}}}}else{const Q={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[Q]:n.push(Q),s++}var h=ne===s;if(Z=Z||h,!Z){const Q=s;if(s===Q)if(B&&typeof B=="object"&&!Array.isArray(B)){let G;if(B.lastModified===void 0&&(G="lastModified")||B.name===void 0&&(G="name")||B.size===void 0&&(G="size")||B.type===void 0&&(G="type")||B.webkitRelativePath===void 0&&(G="webkitRelativePath")){const fe={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/required",keyword:"required",params:{missingProperty:G},message:"must have required property '"+G+"'"};n===null?n=[fe]:n.push(fe),s++}else{const fe=s;for(const ie in B)if(!(ie==="size"||ie==="type"||ie==="lastModified"||ie==="name"||ie==="webkitRelativePath")){const ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ie},message:"must NOT have additional properties"};n===null?n=[ae]:n.push(ae),s++;break}if(fe===s){if(B.size!==void 0){let ie=B.size;const ae=s;if(!(typeof ie=="number"&&isFinite(ie))){const Se={instancePath:t+"/body/"+I.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"};n===null?n=[Se]:n.push(Se),s++}var y=ae===s}else var y=!0;if(y){if(B.type!==void 0){const ie=s;if(typeof B.type!="string"){const Se={instancePath:t+"/body/"+I.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"};n===null?n=[Se]:n.push(Se),s++}var y=ie===s}else var y=!0;if(y){if(B.lastModified!==void 0){let ie=B.lastModified;const ae=s;if(!(typeof ie=="number"&&isFinite(ie))){const Ae={instancePath:t+"/body/"+I.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"};n===null?n=[Ae]:n.push(Ae),s++}var y=ae===s}else var y=!0;if(y){if(B.name!==void 0){const ie=s;if(typeof B.name!="string"){const Se={instancePath:t+"/body/"+I.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"};n===null?n=[Se]:n.push(Se),s++}var y=ie===s}else var y=!0;if(y)if(B.webkitRelativePath!==void 0){const ie=s;if(typeof B.webkitRelativePath!="string"){const Se={instancePath:t+"/body/"+I.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"};n===null?n=[Se]:n.push(Se),s++}var y=ie===s}else var y=!0}}}}}}else{const G={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[G]:n.push(G),s++}var h=Q===s;Z=Z||h}}if(Z)s=M,n!==null&&(M?n.length=M:n=null);else{const ne={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};n===null?n=[ne]:n.push(ne),s++}var g=W===s;if(!g)break}else{const I={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[I]:n.push(I),s++}var p=E===s;$=$||p}}if($)s=A,n!==null&&(A?n.length=A:n=null);else{const C={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[C]:n.push(C),s++,_t.errors=n,!1}var o=H===s}else var o=!0}}}}}else return _t.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return _t.errors=n,s===0}const X_={properties:{relativeUri:{type:"string",description:"Request path following the domain:port part."},scriptPath:{type:"string",description:"Path of the .php file to execute."},protocol:{type:"string",description:"Request protocol."},method:{$ref:"#/definitions/HTTPMethod",description:"Request method. Default: `GET`."},headers:{$ref:"#/definitions/PHPRequestHeaders",description:"Request headers."},body:{anyOf:[{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"Request body."},env:{type:"object",additionalProperties:{type:"string"},description:"Environment variables to set for this run."},$_SERVER:{type:"object",additionalProperties:{type:"string"},description:"$_SERVER entries to set for this run."},code:{type:"string",description:"The code snippet to eval instead of a php file."}}};function Ue(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let n=null,s=0;if(s===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const L=s;for(const y in e)if(!Fc.call(X_.properties,y))return Ue.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(L===s){if(e.relativeUri!==void 0){const y=s;if(typeof e.relativeUri!="string")return Ue.errors=[{instancePath:t+"/relativeUri",schemaPath:"#/properties/relativeUri/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===s}else var o=!0;if(o){if(e.scriptPath!==void 0){const y=s;if(typeof e.scriptPath!="string")return Ue.errors=[{instancePath:t+"/scriptPath",schemaPath:"#/properties/scriptPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===s}else var o=!0;if(o){if(e.protocol!==void 0){const y=s;if(typeof e.protocol!="string")return Ue.errors=[{instancePath:t+"/protocol",schemaPath:"#/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===s}else var o=!0;if(o){if(e.method!==void 0){let y=e.method;const g=s;if(typeof y!="string")return Ue.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(y==="GET"||y==="POST"||y==="HEAD"||y==="OPTIONS"||y==="PATCH"||y==="PUT"||y==="DELETE"))return Ue.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Nc.enum},message:"must be equal to one of the allowed values"}],!1;var o=g===s}else var o=!0;if(o){if(e.headers!==void 0){let y=e.headers;const g=s;if(s===s)if(y&&typeof y=="object"&&!Array.isArray(y))for(const O in y){const H=s;if(typeof y[O]!="string")return Ue.errors=[{instancePath:t+"/headers/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=H===s;if(!f)break}else return Ue.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=g===s}else var o=!0;if(o){if(e.body!==void 0){let y=e.body;const g=s,b=s;let R=!1;const O=s;if(typeof y!="string"){const A={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[A]:n.push(A),s++}var p=O===s;if(R=R||p,!R){const A=s;if(s===A)if(y&&typeof y=="object"&&!Array.isArray(y)){let S;if(y.BYTES_PER_ELEMENT===void 0&&(S="BYTES_PER_ELEMENT")||y.buffer===void 0&&(S="buffer")||y.byteLength===void 0&&(S="byteLength")||y.byteOffset===void 0&&(S="byteOffset")||y.length===void 0&&(S="length")){const P={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:S},message:"must have required property '"+S+"'"};n===null?n=[P]:n.push(P),s++}else{const P=s;for(const C in y)if(!(C==="BYTES_PER_ELEMENT"||C==="buffer"||C==="byteLength"||C==="byteOffset"||C==="length")){let k=y[C];const E=s;if(!(typeof k=="number"&&isFinite(k))){const D={instancePath:t+"/body/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[D]:n.push(D),s++}var c=E===s;if(!c)break}if(P===s){if(y.BYTES_PER_ELEMENT!==void 0){let C=y.BYTES_PER_ELEMENT;const k=s;if(!(typeof C=="number"&&isFinite(C))){const E={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[E]:n.push(E),s++}var m=k===s}else var m=!0;if(m){if(y.buffer!==void 0){let C=y.buffer;const k=s;if(s===k)if(C&&typeof C=="object"&&!Array.isArray(C)){let D;if(C.byteLength===void 0&&(D="byteLength")){const I={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"};n===null?n=[I]:n.push(I),s++}else{const I=s;for(const B in C)if(B!=="byteLength"){const W={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:B},message:"must NOT have additional properties"};n===null?n=[W]:n.push(W),s++;break}if(I===s&&C.byteLength!==void 0){let B=C.byteLength;if(!(typeof B=="number"&&isFinite(B))){const W={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[W]:n.push(W),s++}}}}else{const D={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[D]:n.push(D),s++}var m=k===s}else var m=!0;if(m){if(y.byteLength!==void 0){let C=y.byteLength;const k=s;if(!(typeof C=="number"&&isFinite(C))){const D={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[D]:n.push(D),s++}var m=k===s}else var m=!0;if(m){if(y.byteOffset!==void 0){let C=y.byteOffset;const k=s;if(!(typeof C=="number"&&isFinite(C))){const D={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[D]:n.push(D),s++}var m=k===s}else var m=!0;if(m)if(y.length!==void 0){let C=y.length;const k=s;if(!(typeof C=="number"&&isFinite(C))){const D={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[D]:n.push(D),s++}var m=k===s}else var m=!0}}}}}}else{const S={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[S]:n.push(S),s++}var p=A===s;R=R||p}if(R)s=b,n!==null&&(b?n.length=b:n=null);else{const A={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[A]:n.push(A),s++,Ue.errors=n,!1}var o=g===s}else var o=!0;if(o){if(e.env!==void 0){let y=e.env;const g=s;if(s===g)if(y&&typeof y=="object"&&!Array.isArray(y))for(const R in y){const O=s;if(typeof y[R]!="string")return Ue.errors=[{instancePath:t+"/env/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/env/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=O===s;if(!h)break}else return Ue.errors=[{instancePath:t+"/env",schemaPath:"#/properties/env/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=g===s}else var o=!0;if(o){if(e.$_SERVER!==void 0){let y=e.$_SERVER;const g=s;if(s===g)if(y&&typeof y=="object"&&!Array.isArray(y))for(const R in y){const O=s;if(typeof y[R]!="string")return Ue.errors=[{instancePath:t+"/$_SERVER/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/%24_SERVER/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _=O===s;if(!_)break}else return Ue.errors=[{instancePath:t+"/$_SERVER",schemaPath:"#/properties/%24_SERVER/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=g===s}else var o=!0;if(o)if(e.code!==void 0){const y=s;if(typeof e.code!="string")return Ue.errors=[{instancePath:t+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===s}else var o=!0}}}}}}}}}else return Ue.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Ue.errors=n,s===0}function w(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let n=null,s=0;if(s===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let We;if(e.step===void 0&&(We="step"))return w.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:We},message:"must have required property '"+We+"'"}],!1;{const ce=e.step;if(typeof ce=="string")if(ce==="activatePlugin"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.pluginPath===void 0&&(j="pluginPath")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="pluginPath"||l==="pluginName"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/0/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var o=re===s}else var o=!0;if(o)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/0/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=x===s}else var o=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var f=F===s}else var f=!0;if(f){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="activatePlugin")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/const",keyword:"const",params:{allowedValue:"activatePlugin"},message:"must be equal to constant"}],!1;var f=F===s}else var f=!0;if(f){if(e.pluginPath!==void 0){const l=s;if(typeof e.pluginPath!="string")return w.errors=[{instancePath:t+"/pluginPath",schemaPath:"#/oneOf/0/properties/pluginPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=l===s}else var f=!0;if(f)if(e.pluginName!==void 0){const l=s;if(typeof e.pluginName!="string")return w.errors=[{instancePath:t+"/pluginName",schemaPath:"#/oneOf/0/properties/pluginName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=l===s}else var f=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="activateTheme"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.step===void 0&&(j="step")||e.themeFolderName===void 0&&(j="themeFolderName"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="themeFolderName"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/1/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var p=re===s}else var p=!0;if(p)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/1/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=x===s}else var p=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var c=F===s}else var c=!0;if(c){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="activateTheme")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/const",keyword:"const",params:{allowedValue:"activateTheme"},message:"must be equal to constant"}],!1;var c=F===s}else var c=!0;if(c)if(e.themeFolderName!==void 0){const l=s;if(typeof e.themeFolderName!="string")return w.errors=[{instancePath:t+"/themeFolderName",schemaPath:"#/oneOf/1/properties/themeFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var c=l===s}else var c=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="cp"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.fromPath===void 0&&(j="fromPath")||e.step===void 0&&(j="step")||e.toPath===void 0&&(j="toPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="fromPath"||l==="toPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/2/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var m=re===s}else var m=!0;if(m)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/2/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=x===s}else var m=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var h=F===s}else var h=!0;if(h){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="cp")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/const",keyword:"const",params:{allowedValue:"cp"},message:"must be equal to constant"}],!1;var h=F===s}else var h=!0;if(h){if(e.fromPath!==void 0){const l=s;if(typeof e.fromPath!="string")return w.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/2/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=l===s}else var h=!0;if(h)if(e.toPath!==void 0){const l=s;if(typeof e.toPath!="string")return w.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/2/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=l===s}else var h=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="defineWpConfigConsts"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.consts===void 0&&(j="consts")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="consts"||l==="method"||l==="virtualize"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/3/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var _=re===s}else var _=!0;if(_)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/3/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _=x===s}else var _=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var L=F===s}else var L=!0;if(L){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="defineWpConfigConsts")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/const",keyword:"const",params:{allowedValue:"defineWpConfigConsts"},message:"must be equal to constant"}],!1;var L=F===s}else var L=!0;if(L){if(e.consts!==void 0){let l=e.consts;const F=s;if(s===F&&!(l&&typeof l=="object"&&!Array.isArray(l)))return w.errors=[{instancePath:t+"/consts",schemaPath:"#/oneOf/3/properties/consts/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var L=F===s}else var L=!0;if(L){if(e.method!==void 0){let l=e.method;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(l==="rewrite-wp-config"||l==="define-before-run"))return w.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/enum",keyword:"enum",params:{allowedValues:an.oneOf[3].properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var L=F===s}else var L=!0;if(L)if(e.virtualize!==void 0){const l=s;if(typeof e.virtualize!="boolean")return w.errors=[{instancePath:t+"/virtualize",schemaPath:"#/oneOf/3/properties/virtualize/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var L=l===s}else var L=!0}}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="defineSiteUrl"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.siteUrl===void 0&&(j="siteUrl")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="siteUrl"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/4/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var y=re===s}else var y=!0;if(y)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/4/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var y=x===s}else var y=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var g=F===s}else var g=!0;if(g){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="defineSiteUrl")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/const",keyword:"const",params:{allowedValue:"defineSiteUrl"},message:"must be equal to constant"}],!1;var g=F===s}else var g=!0;if(g)if(e.siteUrl!==void 0){const l=s;if(typeof e.siteUrl!="string")return w.errors=[{instancePath:t+"/siteUrl",schemaPath:"#/oneOf/4/properties/siteUrl/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=l===s}else var g=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="enableMultisite"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="wpCliPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/5/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var b=re===s}else var b=!0;if(b)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/5/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var b=x===s}else var b=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var R=F===s}else var R=!0;if(R){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="enableMultisite")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/const",keyword:"const",params:{allowedValue:"enableMultisite"},message:"must be equal to constant"}],!1;var R=F===s}else var R=!0;if(R)if(e.wpCliPath!==void 0){const l=s;if(typeof e.wpCliPath!="string")return w.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/5/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var R=l===s}else var R=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importWxr"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.file===void 0&&(j="file")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="file"||l==="importer"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.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=re===s}else var O=!0;if(O)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/6/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var O=x===s}else var O=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var H=F===s}else var H=!0;if(H){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="importWxr")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/const",keyword:"const",params:{allowedValue:"importWxr"},message:"must be equal to constant"}],!1;var H=F===s}else var H=!0;if(H){if(e.file!==void 0){const l=s;ke(e.file,{instancePath:t+"/file",parentData:e,parentDataProperty:"file",rootData:a})||(n=n===null?ke.errors:n.concat(ke.errors),s=n.length);var H=l===s}else var H=!0;if(H)if(e.importer!==void 0){let l=e.importer;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(l==="data-liberation"||l==="default"))return w.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/enum",keyword:"enum",params:{allowedValues:an.oneOf[6].properties.importer.enum},message:"must be equal to one of the allowed values"}],!1;var H=F===s}else var H=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importThemeStarterContent"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="themeSlug"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/7/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var A=re===s}else var A=!0;if(A)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/7/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var A=x===s}else var A=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var $=F===s}else var $=!0;if($){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="importThemeStarterContent")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/const",keyword:"const",params:{allowedValue:"importThemeStarterContent"},message:"must be equal to constant"}],!1;var $=F===s}else var $=!0;if($)if(e.themeSlug!==void 0){const l=s;if(typeof e.themeSlug!="string")return w.errors=[{instancePath:t+"/themeSlug",schemaPath:"#/oneOf/7/properties/themeSlug/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var $=l===s}else var $=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importWordPressFiles"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.step===void 0&&(j="step")||e.wordPressFilesZip===void 0&&(j="wordPressFilesZip"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="wordPressFilesZip"||l==="pathInZip"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/8/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var S=re===s}else var S=!0;if(S)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/8/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var S=x===s}else var S=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var P=F===s}else var P=!0;if(P){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="importWordPressFiles")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/const",keyword:"const",params:{allowedValue:"importWordPressFiles"},message:"must be equal to constant"}],!1;var P=F===s}else var P=!0;if(P){if(e.wordPressFilesZip!==void 0){const l=s;ke(e.wordPressFilesZip,{instancePath:t+"/wordPressFilesZip",parentData:e,parentDataProperty:"wordPressFilesZip",rootData:a})||(n=n===null?ke.errors:n.concat(ke.errors),s=n.length);var P=l===s}else var P=!0;if(P)if(e.pathInZip!==void 0){const l=s;if(typeof e.pathInZip!="string")return w.errors=[{instancePath:t+"/pathInZip",schemaPath:"#/oneOf/8/properties/pathInZip/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var P=l===s}else var P=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="installPlugin"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.pluginData===void 0&&(j="pluginData")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="ifAlreadyInstalled"||l==="step"||l==="pluginData"||l==="pluginZipFile"||l==="options"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/9/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var C=re===s}else var C=!0;if(C)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/9/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=x===s}else var C=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var k=F===s}else var k=!0;if(k){if(e.ifAlreadyInstalled!==void 0){let l=e.ifAlreadyInstalled;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(l==="overwrite"||l==="skip"||l==="error"))return w.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:an.oneOf[9].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var k=F===s}else var k=!0;if(k){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="installPlugin")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/const",keyword:"const",params:{allowedValue:"installPlugin"},message:"must be equal to constant"}],!1;var k=F===s}else var k=!0;if(k){if(e.pluginData!==void 0){let l=e.pluginData;const F=s,te=s;let x=!1;const re=s;ke(l,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:a})||(n=n===null?ke.errors:n.concat(ke.errors),s=n.length);var E=re===s;if(x=x||E,!x){const ve=s;Ot(l,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:a})||(n=n===null?Ot.errors:n.concat(Ot.errors),s=n.length);var E=ve===s;x=x||E}if(x)s=te,n!==null&&(te?n.length=te:n=null);else{const ve={instancePath:t+"/pluginData",schemaPath:"#/oneOf/9/properties/pluginData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[ve]:n.push(ve),s++,w.errors=n,!1}var k=F===s}else var k=!0;if(k){if(e.pluginZipFile!==void 0){const l=s;ke(e.pluginZipFile,{instancePath:t+"/pluginZipFile",parentData:e,parentDataProperty:"pluginZipFile",rootData:a})||(n=n===null?ke.errors:n.concat(ke.errors),s=n.length);var k=l===s}else var k=!0;if(k)if(e.options!==void 0){let l=e.options;const F=s;if(s===s)if(l&&typeof l=="object"&&!Array.isArray(l)){const re=s;for(const Te in l)if(!(Te==="activate"||Te==="targetFolderName"))return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Te},message:"must NOT have additional properties"}],!1;if(re===s){if(l.activate!==void 0){const Te=s;if(typeof l.activate!="boolean")return w.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallPluginOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var D=Te===s}else var D=!0;if(D)if(l.targetFolderName!==void 0){const Te=s;if(typeof l.targetFolderName!="string")return w.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallPluginOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var D=Te===s}else var D=!0}}else return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var k=F===s}else var k=!0}}}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/9/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="installTheme"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.step===void 0&&(j="step")||e.themeData===void 0&&(j="themeData"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="ifAlreadyInstalled"||l==="step"||l==="themeData"||l==="themeZipFile"||l==="options"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/10/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var I=re===s}else var I=!0;if(I)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/10/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var I=x===s}else var I=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var B=F===s}else var B=!0;if(B){if(e.ifAlreadyInstalled!==void 0){let l=e.ifAlreadyInstalled;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(l==="overwrite"||l==="skip"||l==="error"))return w.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:an.oneOf[10].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var B=F===s}else var B=!0;if(B){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="installTheme")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/const",keyword:"const",params:{allowedValue:"installTheme"},message:"must be equal to constant"}],!1;var B=F===s}else var B=!0;if(B){if(e.themeData!==void 0){let l=e.themeData;const F=s,te=s;let x=!1;const re=s;ke(l,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:a})||(n=n===null?ke.errors:n.concat(ke.errors),s=n.length);var W=re===s;if(x=x||W,!x){const ve=s;Ot(l,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:a})||(n=n===null?Ot.errors:n.concat(Ot.errors),s=n.length);var W=ve===s;x=x||W}if(x)s=te,n!==null&&(te?n.length=te:n=null);else{const ve={instancePath:t+"/themeData",schemaPath:"#/oneOf/10/properties/themeData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[ve]:n.push(ve),s++,w.errors=n,!1}var B=F===s}else var B=!0;if(B){if(e.themeZipFile!==void 0){const l=s;ke(e.themeZipFile,{instancePath:t+"/themeZipFile",parentData:e,parentDataProperty:"themeZipFile",rootData:a})||(n=n===null?ke.errors:n.concat(ke.errors),s=n.length);var B=l===s}else var B=!0;if(B)if(e.options!==void 0){let l=e.options;const F=s;if(s===s)if(l&&typeof l=="object"&&!Array.isArray(l)){const re=s;for(const Te in l)if(!(Te==="activate"||Te==="importStarterContent"||Te==="targetFolderName"))return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Te},message:"must NOT have additional properties"}],!1;if(re===s){if(l.activate!==void 0){const Te=s;if(typeof l.activate!="boolean")return w.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallThemeOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var M=Te===s}else var M=!0;if(M){if(l.importStarterContent!==void 0){const Te=s;if(typeof l.importStarterContent!="boolean")return w.errors=[{instancePath:t+"/options/importStarterContent",schemaPath:"#/definitions/InstallThemeOptions/properties/importStarterContent/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var M=Te===s}else var M=!0;if(M)if(l.targetFolderName!==void 0){const Te=s;if(typeof l.targetFolderName!="string")return w.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallThemeOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var M=Te===s}else var M=!0}}}else return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var B=F===s}else var B=!0}}}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="login"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="username"||l==="password"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/11/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Z=re===s}else var Z=!0;if(Z)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/11/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Z=x===s}else var Z=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var z=F===s}else var z=!0;if(z){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="login")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/const",keyword:"const",params:{allowedValue:"login"},message:"must be equal to constant"}],!1;var z=F===s}else var z=!0;if(z){if(e.username!==void 0){const l=s;if(typeof e.username!="string")return w.errors=[{instancePath:t+"/username",schemaPath:"#/oneOf/11/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var z=l===s}else var z=!0;if(z)if(e.password!==void 0){const l=s;if(typeof e.password!="string")return w.errors=[{instancePath:t+"/password",schemaPath:"#/oneOf/11/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var z=l===s}else var z=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="mkdir"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.path===void 0&&(j="path")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="path"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/12/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ne=re===s}else var ne=!0;if(ne)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/12/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ne=x===s}else var ne=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var V=F===s}else var V=!0;if(V){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="mkdir")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/const",keyword:"const",params:{allowedValue:"mkdir"},message:"must be equal to constant"}],!1;var V=F===s}else var V=!0;if(V)if(e.path!==void 0){const l=s;if(typeof e.path!="string")return w.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/12/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var V=l===s}else var V=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="mv"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.fromPath===void 0&&(j="fromPath")||e.step===void 0&&(j="step")||e.toPath===void 0&&(j="toPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="fromPath"||l==="toPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/13/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Q=re===s}else var Q=!0;if(Q)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/13/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Q=x===s}else var Q=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ee=F===s}else var ee=!0;if(ee){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="mv")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/const",keyword:"const",params:{allowedValue:"mv"},message:"must be equal to constant"}],!1;var ee=F===s}else var ee=!0;if(ee){if(e.fromPath!==void 0){const l=s;if(typeof e.fromPath!="string")return w.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/13/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=l===s}else var ee=!0;if(ee)if(e.toPath!==void 0){const l=s;if(typeof e.toPath!="string")return w.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/13/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=l===s}else var ee=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="resetData"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/14/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var G=re===s}else var G=!0;if(G)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/14/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var G=x===s}else var G=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var fe=F===s}else var fe=!0;if(fe)if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="resetData")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/const",keyword:"const",params:{allowedValue:"resetData"},message:"must be equal to constant"}],!1;var fe=F===s}else var fe=!0}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/14/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="request"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.request===void 0&&(j="request")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="request"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/15/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ie=re===s}else var ie=!0;if(ie)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/15/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ie=x===s}else var ie=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ae=F===s}else var ae=!0;if(ae){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="request")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/const",keyword:"const",params:{allowedValue:"request"},message:"must be equal to constant"}],!1;var ae=F===s}else var ae=!0;if(ae)if(e.request!==void 0){const l=s;_t(e.request,{instancePath:t+"/request",parentData:e,parentDataProperty:"request",rootData:a})||(n=n===null?_t.errors:n.concat(_t.errors),s=n.length);var ae=l===s}else var ae=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/15/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="rm"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.path===void 0&&(j="path")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/16/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="path"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/16/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/16/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Se=re===s}else var Se=!0;if(Se)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/16/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Se=x===s}else var Se=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ae=F===s}else var Ae=!0;if(Ae){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="rm")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/const",keyword:"const",params:{allowedValue:"rm"},message:"must be equal to constant"}],!1;var Ae=F===s}else var Ae=!0;if(Ae)if(e.path!==void 0){const l=s;if(typeof e.path!="string")return w.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/16/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ae=l===s}else var Ae=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/16/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="rmdir"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.path===void 0&&(j="path")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/17/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="path"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/17/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/17/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ze=re===s}else var Ze=!0;if(Ze)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/17/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ze=x===s}else var Ze=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Qe=F===s}else var Qe=!0;if(Qe){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="rmdir")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/const",keyword:"const",params:{allowedValue:"rmdir"},message:"must be equal to constant"}],!1;var Qe=F===s}else var Qe=!0;if(Qe)if(e.path!==void 0){const l=s;if(typeof e.path!="string")return w.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/17/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Qe=l===s}else var Qe=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/17/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runPHP"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.code===void 0&&(j="code")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/18/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="code"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/18/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/18/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var bt=re===s}else var bt=!0;if(bt)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/18/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var bt=x===s}else var bt=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Re=F===s}else var Re=!0;if(Re){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="runPHP")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/const",keyword:"const",params:{allowedValue:"runPHP"},message:"must be equal to constant"}],!1;var Re=F===s}else var Re=!0;if(Re)if(e.code!==void 0){let l=e.code;const F=s,te=s;let x=!1;const re=s;if(typeof l!="string"){const ve={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[ve]:n.push(ve),s++}var Ie=re===s;if(x=x||Ie,!x){const ve=s;if(s===ve)if(l&&typeof l=="object"&&!Array.isArray(l)){let qe;if(l.filename===void 0&&(qe="filename")||l.content===void 0&&(qe="content")){const zt={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/required",keyword:"required",params:{missingProperty:qe},message:"must have required property '"+qe+"'"};n===null?n=[zt]:n.push(zt),s++}else{const zt=s;for(const je in l)if(!(je==="filename"||je==="content")){const Dt={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:je},message:"must NOT have additional properties"};n===null?n=[Dt]:n.push(Dt),s++;break}if(zt===s){if(l.filename!==void 0){const je=s;if(typeof l.filename!="string"){const Dt={instancePath:t+"/code/filename",schemaPath:"#/oneOf/18/properties/code/anyOf/1/properties/filename/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[Dt]:n.push(Dt),s++}var at=je===s}else var at=!0;if(at)if(l.content!==void 0){const je=s;if(typeof l.content!="string"){const ge={instancePath:t+"/code/content",schemaPath:"#/oneOf/18/properties/code/anyOf/1/properties/content/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[ge]:n.push(ge),s++}var at=je===s}else var at=!0}}}else{const qe={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[qe]:n.push(qe),s++}var Ie=ve===s;x=x||Ie}if(x)s=te,n!==null&&(te?n.length=te:n=null);else{const ve={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[ve]:n.push(ve),s++,w.errors=n,!1}var Re=F===s}else var Re=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/18/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runPHPWithOptions"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.options===void 0&&(j="options")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/19/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="options"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/19/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/19/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ce=re===s}else var Ce=!0;if(Ce)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/19/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ce=x===s}else var Ce=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var v=F===s}else var v=!0;if(v){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="runPHPWithOptions")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/const",keyword:"const",params:{allowedValue:"runPHPWithOptions"},message:"must be equal to constant"}],!1;var v=F===s}else var v=!0;if(v)if(e.options!==void 0){const l=s;Ue(e.options,{instancePath:t+"/options",parentData:e,parentDataProperty:"options",rootData:a})||(n=n===null?Ue.errors:n.concat(Ue.errors),s=n.length);var v=l===s}else var v=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/19/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runWpInstallationWizard"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.options===void 0&&(j="options")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/20/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="options"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/20/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/20/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var u=re===s}else var u=!0;if(u)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/20/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=x===s}else var u=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=F===s}else var d=!0;if(d){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="runWpInstallationWizard")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/const",keyword:"const",params:{allowedValue:"runWpInstallationWizard"},message:"must be equal to constant"}],!1;var d=F===s}else var d=!0;if(d)if(e.options!==void 0){let l=e.options;const F=s;if(s===s)if(l&&typeof l=="object"&&!Array.isArray(l)){const re=s;for(const Te in l)if(!(Te==="adminUsername"||Te==="adminPassword"))return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Te},message:"must NOT have additional properties"}],!1;if(re===s){if(l.adminUsername!==void 0){const Te=s;if(typeof l.adminUsername!="string")return w.errors=[{instancePath:t+"/options/adminUsername",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminUsername/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var T=Te===s}else var T=!0;if(T)if(l.adminPassword!==void 0){const Te=s;if(typeof l.adminPassword!="string")return w.errors=[{instancePath:t+"/options/adminPassword",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminPassword/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var T=Te===s}else var T=!0}}else return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=F===s}else var d=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/20/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runSql"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.sql===void 0&&(j="sql")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/21/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="sql"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/21/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/21/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var N=re===s}else var N=!0;if(N)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/21/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var N=x===s}else var N=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var K=F===s}else var K=!0;if(K){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="runSql")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/const",keyword:"const",params:{allowedValue:"runSql"},message:"must be equal to constant"}],!1;var K=F===s}else var K=!0;if(K)if(e.sql!==void 0){const l=s;ke(e.sql,{instancePath:t+"/sql",parentData:e,parentDataProperty:"sql",rootData:a})||(n=n===null?ke.errors:n.concat(ke.errors),s=n.length);var K=l===s}else var K=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/21/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="setSiteOptions"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.options===void 0&&(j="options")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/22/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="options"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/22/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/22/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var X=re===s}else var X=!0;if(X)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/22/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var X=x===s}else var X=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var pe=F===s}else var pe=!0;if(pe){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="setSiteOptions")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/const",keyword:"const",params:{allowedValue:"setSiteOptions"},message:"must be equal to constant"}],!1;var pe=F===s}else var pe=!0;if(pe)if(e.options!==void 0){let l=e.options;const F=s;if(s===F&&!(l&&typeof l=="object"&&!Array.isArray(l)))return w.errors=[{instancePath:t+"/options",schemaPath:"#/oneOf/22/properties/options/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var pe=F===s}else var pe=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/22/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="unzip"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.extractToPath===void 0&&(j="extractToPath")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/23/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="zipFile"||l==="zipPath"||l==="extractToPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/23/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/23/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var _e=re===s}else var _e=!0;if(_e)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/23/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _e=x===s}else var _e=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var he=F===s}else var he=!0;if(he){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="unzip")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/const",keyword:"const",params:{allowedValue:"unzip"},message:"must be equal to constant"}],!1;var he=F===s}else var he=!0;if(he){if(e.zipFile!==void 0){const l=s;ke(e.zipFile,{instancePath:t+"/zipFile",parentData:e,parentDataProperty:"zipFile",rootData:a})||(n=n===null?ke.errors:n.concat(ke.errors),s=n.length);var he=l===s}else var he=!0;if(he){if(e.zipPath!==void 0){const l=s;if(typeof e.zipPath!="string")return w.errors=[{instancePath:t+"/zipPath",schemaPath:"#/oneOf/23/properties/zipPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=l===s}else var he=!0;if(he)if(e.extractToPath!==void 0){const l=s;if(typeof e.extractToPath!="string")return w.errors=[{instancePath:t+"/extractToPath",schemaPath:"#/oneOf/23/properties/extractToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=l===s}else var he=!0}}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/23/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="updateUserMeta"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.meta===void 0&&(j="meta")||e.step===void 0&&(j="step")||e.userId===void 0&&(j="userId"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/24/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="meta"||l==="userId"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/24/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Fe=re===s}else var Fe=!0;if(Fe)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/24/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Fe=x===s}else var Fe=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ue=F===s}else var ue=!0;if(ue){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="updateUserMeta")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/const",keyword:"const",params:{allowedValue:"updateUserMeta"},message:"must be equal to constant"}],!1;var ue=F===s}else var ue=!0;if(ue){if(e.meta!==void 0){let l=e.meta;const F=s;if(s===F&&!(l&&typeof l=="object"&&!Array.isArray(l)))return w.errors=[{instancePath:t+"/meta",schemaPath:"#/oneOf/24/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ue=F===s}else var ue=!0;if(ue)if(e.userId!==void 0){let l=e.userId;const F=s;if(!(typeof l=="number"&&isFinite(l)))return w.errors=[{instancePath:t+"/userId",schemaPath:"#/oneOf/24/properties/userId/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ue=F===s}else var ue=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/24/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="writeFile"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.data===void 0&&(j="data")||e.path===void 0&&(j="path")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/25/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="path"||l==="data"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/25/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/25/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ut=re===s}else var ut=!0;if(ut)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/25/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ut=x===s}else var ut=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var et=F===s}else var et=!0;if(et){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="writeFile")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/const",keyword:"const",params:{allowedValue:"writeFile"},message:"must be equal to constant"}],!1;var et=F===s}else var et=!0;if(et){if(e.path!==void 0){const l=s;if(typeof e.path!="string")return w.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/25/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var et=l===s}else var et=!0;if(et)if(e.data!==void 0){let l=e.data;const F=s,te=s;let x=!1;const re=s;ke(l,{instancePath:t+"/data",parentData:e,parentDataProperty:"data",rootData:a})||(n=n===null?ke.errors:n.concat(ke.errors),s=n.length);var At=re===s;if(x=x||At,!x){const ve=s;if(typeof l!="string"){const qe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[qe]:n.push(qe),s++}var At=ve===s;if(x=x||At,!x){const qe=s;if(s===qe)if(l&&typeof l=="object"&&!Array.isArray(l)){let je;if(l.BYTES_PER_ELEMENT===void 0&&(je="BYTES_PER_ELEMENT")||l.buffer===void 0&&(je="buffer")||l.byteLength===void 0&&(je="byteLength")||l.byteOffset===void 0&&(je="byteOffset")||l.length===void 0&&(je="length")){const Dt={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/required",keyword:"required",params:{missingProperty:je},message:"must have required property '"+je+"'"};n===null?n=[Dt]:n.push(Dt),s++}else{const Dt=s;for(const ge in l)if(!(ge==="BYTES_PER_ELEMENT"||ge==="buffer"||ge==="byteLength"||ge==="byteOffset"||ge==="length")){let dt=l[ge];const Ws=s;if(!(typeof dt=="number"&&isFinite(dt))){const Ke={instancePath:t+"/data/"+ge.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/oneOf/25/properties/data/anyOf/2/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[Ke]:n.push(Ke),s++}var Qn=Ws===s;if(!Qn)break}if(Dt===s){if(l.BYTES_PER_ELEMENT!==void 0){let ge=l.BYTES_PER_ELEMENT;const dt=s;if(!(typeof ge=="number"&&isFinite(ge))){const Ws={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"};n===null?n=[Ws]:n.push(Ws),s++}var tt=dt===s}else var tt=!0;if(tt){if(l.buffer!==void 0){let ge=l.buffer;const dt=s;if(s===dt)if(ge&&typeof ge=="object"&&!Array.isArray(ge)){let Ke;if(ge.byteLength===void 0&&(Ke="byteLength")){const Us={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/required",keyword:"required",params:{missingProperty:Ke},message:"must have required property '"+Ke+"'"};n===null?n=[Us]:n.push(Us),s++}else{const Us=s;for(const ns in ge)if(ns!=="byteLength"){const is={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ns},message:"must NOT have additional properties"};n===null?n=[is]:n.push(is),s++;break}if(Us===s&&ge.byteLength!==void 0){let ns=ge.byteLength;if(!(typeof ns=="number"&&isFinite(ns))){const is={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"};n===null?n=[is]:n.push(is),s++}}}}else{const Ke={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[Ke]:n.push(Ke),s++}var tt=dt===s}else var tt=!0;if(tt){if(l.byteLength!==void 0){let ge=l.byteLength;const dt=s;if(!(typeof ge=="number"&&isFinite(ge))){const Ke={instancePath:t+"/data/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[Ke]:n.push(Ke),s++}var tt=dt===s}else var tt=!0;if(tt){if(l.byteOffset!==void 0){let ge=l.byteOffset;const dt=s;if(!(typeof ge=="number"&&isFinite(ge))){const Ke={instancePath:t+"/data/byteOffset",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[Ke]:n.push(Ke),s++}var tt=dt===s}else var tt=!0;if(tt)if(l.length!==void 0){let ge=l.length;const dt=s;if(!(typeof ge=="number"&&isFinite(ge))){const Ke={instancePath:t+"/data/length",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[Ke]:n.push(Ke),s++}var tt=dt===s}else var tt=!0}}}}}}else{const je={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[je]:n.push(je),s++}var At=qe===s;x=x||At}}if(x)s=te,n!==null&&(te?n.length=te:n=null);else{const ve={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[ve]:n.push(ve),s++,w.errors=n,!1}var et=F===s}else var et=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/25/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="writeFiles"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.filesTree===void 0&&(j="filesTree")||e.step===void 0&&(j="step")||e.writeToPath===void 0&&(j="writeToPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/26/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="writeToPath"||l==="filesTree"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/26/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/26/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var $r=re===s}else var $r=!0;if($r)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/26/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var $r=x===s}else var $r=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var U=F===s}else var U=!0;if(U){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="writeFiles")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/const",keyword:"const",params:{allowedValue:"writeFiles"},message:"must be equal to constant"}],!1;var U=F===s}else var U=!0;if(U){if(e.writeToPath!==void 0){const l=s;if(typeof e.writeToPath!="string")return w.errors=[{instancePath:t+"/writeToPath",schemaPath:"#/oneOf/26/properties/writeToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var U=l===s}else var U=!0;if(U)if(e.filesTree!==void 0){const l=s;Ot(e.filesTree,{instancePath:t+"/filesTree",parentData:e,parentDataProperty:"filesTree",rootData:a})||(n=n===null?Ot.errors:n.concat(Ot.errors),s=n.length);var U=l===s}else var U=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/26/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="wp-cli"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.command===void 0&&(j="command")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/27/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="command"||l==="wpCliPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/27/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/27/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Y=re===s}else var Y=!0;if(Y)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/27/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Y=x===s}else var Y=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var q=F===s}else var q=!0;if(q){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="wp-cli")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var q=F===s}else var q=!0;if(q){if(e.command!==void 0){let l=e.command;const F=s,te=s;let x=!1;const re=s;if(typeof l!="string"){const ve={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[ve]:n.push(ve),s++}var J=re===s;if(x=x||J,!x){const ve=s;if(s===ve)if(Array.isArray(l)){var se=!0;const qe=l.length;for(let zt=0;zt<qe;zt++){const je=s;if(typeof l[zt]!="string"){const ge={instancePath:t+"/command/"+zt,schemaPath:"#/oneOf/27/properties/command/anyOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[ge]:n.push(ge),s++}var se=je===s;if(!se)break}}else{const qe={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};n===null?n=[qe]:n.push(qe),s++}var J=ve===s;x=x||J}if(x)s=te,n!==null&&(te?n.length=te:n=null);else{const ve={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[ve]:n.push(ve),s++,w.errors=n,!1}var q=F===s}else var q=!0;if(q)if(e.wpCliPath!==void 0){const l=s;if(typeof e.wpCliPath!="string")return w.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/27/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var q=l===s}else var q=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/27/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="setSiteLanguage"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.language===void 0&&(j="language")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/28/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="language"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/28/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/28/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var le=re===s}else var le=!0;if(le)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/28/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var le=x===s}else var le=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var de=F===s}else var de=!0;if(de){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="setSiteLanguage")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/const",keyword:"const",params:{allowedValue:"setSiteLanguage"},message:"must be equal to constant"}],!1;var de=F===s}else var de=!0;if(de)if(e.language!==void 0){const l=s;if(typeof e.language!="string")return w.errors=[{instancePath:t+"/language",schemaPath:"#/oneOf/28/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var de=l===s}else var de=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/28/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else return w.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"mapping",tag:"step",tagValue:ce},message:'value of tag "step" must be in oneOf'}],!1;else return w.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"tag",tag:"step",tagValue:ce},message:'tag "step" must be string'}],!1}}else return w.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return w.errors=n,s===0}function me(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let n=null,s=0;if(s===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const $=s;for(const S in e)if(!Fc.call(V_.properties,S))return me.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:S},message:"must NOT have additional properties"}],!1;if($===s){if(e.landingPage!==void 0){const S=s;if(typeof e.landingPage!="string")return me.errors=[{instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=S===s}else var o=!0;if(o){if(e.description!==void 0){const S=s;if(typeof e.description!="string")return me.errors=[{instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=S===s}else var o=!0;if(o){if(e.meta!==void 0){let S=e.meta;const P=s;if(s===P)if(S&&typeof S=="object"&&!Array.isArray(S)){let k;if(S.title===void 0&&(k="title")||S.author===void 0&&(k="author"))return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty:k},message:"must have required property '"+k+"'"}],!1;{const E=s;for(const D in S)if(!(D==="title"||D==="description"||D==="author"||D==="categories"))return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:D},message:"must NOT have additional properties"}],!1;if(E===s){if(S.title!==void 0){const D=s;if(typeof S.title!="string")return me.errors=[{instancePath:t+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=D===s}else var f=!0;if(f){if(S.description!==void 0){const D=s;if(typeof S.description!="string")return me.errors=[{instancePath:t+"/meta/description",schemaPath:"#/properties/meta/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=D===s}else var f=!0;if(f){if(S.author!==void 0){const D=s;if(typeof S.author!="string")return me.errors=[{instancePath:t+"/meta/author",schemaPath:"#/properties/meta/properties/author/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=D===s}else var f=!0;if(f)if(S.categories!==void 0){let D=S.categories;const I=s;if(s===I)if(Array.isArray(D)){var p=!0;const W=D.length;for(let M=0;M<W;M++){const Z=s;if(typeof D[M]!="string")return me.errors=[{instancePath:t+"/meta/categories/"+M,schemaPath:"#/properties/meta/properties/categories/items/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=Z===s;if(!p)break}}else return me.errors=[{instancePath:t+"/meta/categories",schemaPath:"#/properties/meta/properties/categories/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var f=I===s}else var f=!0}}}}}else return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=P===s}else var o=!0;if(o){if(e.preferredVersions!==void 0){let S=e.preferredVersions;const P=s;if(s===P)if(S&&typeof S=="object"&&!Array.isArray(S)){let k;if(S.php===void 0&&(k="php")||S.wp===void 0&&(k="wp"))return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/required",keyword:"required",params:{missingProperty:k},message:"must have required property '"+k+"'"}],!1;{const E=s;for(const D in S)if(!(D==="php"||D==="wp"))return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:D},message:"must NOT have additional properties"}],!1;if(E===s){if(S.php!==void 0){let D=S.php;const I=s,B=s;let W=!1;const M=s;if(typeof D!="string"){const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[Z]:n.push(Z),s++}if(!(D==="8.4"||D==="8.3"||D==="8.2"||D==="8.1"||D==="8.0"||D==="7.4"||D==="7.3"||D==="7.2")){const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/enum",keyword:"enum",params:{allowedValues:G_.enum},message:"must be equal to one of the allowed values"};n===null?n=[Z]:n.push(Z),s++}var c=M===s;if(W=W||c,!W){const Z=s;if(typeof D!="string"){const ne={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[ne]:n.push(ne),s++}if(D!=="latest"){const ne={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/const",keyword:"const",params:{allowedValue:"latest"},message:"must be equal to constant"};n===null?n=[ne]:n.push(ne),s++}var c=Z===s;W=W||c}if(W)s=B,n!==null&&(B?n.length=B:n=null);else{const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[Z]:n.push(Z),s++,me.errors=n,!1}var m=I===s}else var m=!0;if(m)if(S.wp!==void 0){const D=s;if(typeof S.wp!="string")return me.errors=[{instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=D===s}else var m=!0}}}else return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=P===s}else var o=!0;if(o){if(e.features!==void 0){let S=e.features;const P=s;if(s===P)if(S&&typeof S=="object"&&!Array.isArray(S)){const k=s;for(const E in S)if(!(E==="intl"||E==="networking"))return me.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:E},message:"must NOT have additional properties"}],!1;if(k===s){if(S.intl!==void 0){const E=s;if(typeof S.intl!="boolean")return me.errors=[{instancePath:t+"/features/intl",schemaPath:"#/properties/features/properties/intl/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var h=E===s}else var h=!0;if(h)if(S.networking!==void 0){const E=s;if(typeof S.networking!="boolean")return me.errors=[{instancePath:t+"/features/networking",schemaPath:"#/properties/features/properties/networking/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var h=E===s}else var h=!0}}else return me.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=P===s}else var o=!0;if(o){if(e.extraLibraries!==void 0){let S=e.extraLibraries;const P=s;if(s===P)if(Array.isArray(S)){var _=!0;const k=S.length;for(let E=0;E<k;E++){let D=S[E];const I=s;if(typeof D!="string")return me.errors=[{instancePath:t+"/extraLibraries/"+E,schemaPath:"#/definitions/ExtraLibrary/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(D!=="wp-cli")return me.errors=[{instancePath:t+"/extraLibraries/"+E,schemaPath:"#/definitions/ExtraLibrary/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var _=I===s;if(!_)break}}else return me.errors=[{instancePath:t+"/extraLibraries",schemaPath:"#/properties/extraLibraries/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=P===s}else var o=!0;if(o){if(e.constants!==void 0){let S=e.constants;const P=s;if(s===s)if(S&&typeof S=="object"&&!Array.isArray(S))for(const E in S){let D=S[E];const I=s;if(typeof D!="string"&&typeof D!="boolean"&&!(typeof D=="number"&&isFinite(D)))return me.errors=[{instancePath:t+"/constants/"+E.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPConstants/additionalProperties/type",keyword:"type",params:{type:Z_.additionalProperties.type},message:"must be string,boolean,number"}],!1;var L=I===s;if(!L)break}else return me.errors=[{instancePath:t+"/constants",schemaPath:"#/definitions/PHPConstants/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=P===s}else var o=!0;if(o){if(e.plugins!==void 0){let S=e.plugins;const P=s;if(s===P)if(Array.isArray(S)){var y=!0;const k=S.length;for(let E=0;E<k;E++){let D=S[E];const I=s,B=s;let W=!1;const M=s;if(typeof D!="string"){const z={instancePath:t+"/plugins/"+E,schemaPath:"#/properties/plugins/items/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[z]:n.push(z),s++}var g=M===s;if(W=W||g,!W){const z=s;ke(D,{instancePath:t+"/plugins/"+E,parentData:S,parentDataProperty:E,rootData:a})||(n=n===null?ke.errors:n.concat(ke.errors),s=n.length);var g=z===s;W=W||g}if(W)s=B,n!==null&&(B?n.length=B:n=null);else{const z={instancePath:t+"/plugins/"+E,schemaPath:"#/properties/plugins/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[z]:n.push(z),s++,me.errors=n,!1}var y=I===s;if(!y)break}}else return me.errors=[{instancePath:t+"/plugins",schemaPath:"#/properties/plugins/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=P===s}else var o=!0;if(o){if(e.siteOptions!==void 0){let S=e.siteOptions;const P=s;if(s===P)if(S&&typeof S=="object"&&!Array.isArray(S)){const k=s;for(const E in S)if(E!=="blogname"){const D=s;if(typeof S[E]!="string")return me.errors=[{instancePath:t+"/siteOptions/"+E.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/siteOptions/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var b=D===s;if(!b)break}if(k===s&&S.blogname!==void 0&&typeof S.blogname!="string")return me.errors=[{instancePath:t+"/siteOptions/blogname",schemaPath:"#/properties/siteOptions/properties/blogname/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1}else return me.errors=[{instancePath:t+"/siteOptions",schemaPath:"#/properties/siteOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=P===s}else var o=!0;if(o){if(e.login!==void 0){let S=e.login;const P=s,C=s;let k=!1;const E=s;if(typeof S!="boolean"){const I={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};n===null?n=[I]:n.push(I),s++}var R=E===s;if(k=k||R,!k){const I=s;if(s===I)if(S&&typeof S=="object"&&!Array.isArray(S)){let W;if(S.username===void 0&&(W="username")||S.password===void 0&&(W="password")){const M={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/required",keyword:"required",params:{missingProperty:W},message:"must have required property '"+W+"'"};n===null?n=[M]:n.push(M),s++}else{const M=s;for(const Z in S)if(!(Z==="username"||Z==="password")){const z={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Z},message:"must NOT have additional properties"};n===null?n=[z]:n.push(z),s++;break}if(M===s){if(S.username!==void 0){const Z=s;if(typeof S.username!="string"){const z={instancePath:t+"/login/username",schemaPath:"#/properties/login/anyOf/1/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[z]:n.push(z),s++}var O=Z===s}else var O=!0;if(O)if(S.password!==void 0){const Z=s;if(typeof S.password!="string"){const ne={instancePath:t+"/login/password",schemaPath:"#/properties/login/anyOf/1/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[ne]:n.push(ne),s++}var O=Z===s}else var O=!0}}}else{const W={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[W]:n.push(W),s++}var R=I===s;k=k||R}if(k)s=C,n!==null&&(C?n.length=C:n=null);else{const I={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[I]:n.push(I),s++,me.errors=n,!1}var o=P===s}else var o=!0;if(o){if(e.steps!==void 0){let S=e.steps;const P=s;if(s===P)if(Array.isArray(S)){var H=!0;const k=S.length;for(let E=0;E<k;E++){let D=S[E];const I=s,B=s;let W=!1;const M=s;w(D,{instancePath:t+"/steps/"+E,parentData:S,parentDataProperty:E,rootData:a})||(n=n===null?w.errors:n.concat(w.errors),s=n.length);var A=M===s;if(W=W||A,!W){const z=s;if(typeof D!="string"){const V={instancePath:t+"/steps/"+E,schemaPath:"#/properties/steps/items/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[V]:n.push(V),s++}var A=z===s;if(W=W||A,!W){const V=s,Q={instancePath:t+"/steps/"+E,schemaPath:"#/properties/steps/items/anyOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};n===null?n=[Q]:n.push(Q),s++;var A=V===s;if(W=W||A,!W){const G=s;if(typeof D!="boolean"){const ie={instancePath:t+"/steps/"+E,schemaPath:"#/properties/steps/items/anyOf/3/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};n===null?n=[ie]:n.push(ie),s++}if(D!==!1){const ie={instancePath:t+"/steps/"+E,schemaPath:"#/properties/steps/items/anyOf/3/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};n===null?n=[ie]:n.push(ie),s++}var A=G===s;if(W=W||A,!W){const ie=s;if(D!==null){const Se={instancePath:t+"/steps/"+E,schemaPath:"#/properties/steps/items/anyOf/4/type",keyword:"type",params:{type:"null"},message:"must be null"};n===null?n=[Se]:n.push(Se),s++}var A=ie===s;W=W||A}}}}if(W)s=B,n!==null&&(B?n.length=B:n=null);else{const z={instancePath:t+"/steps/"+E,schemaPath:"#/properties/steps/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[z]:n.push(z),s++,me.errors=n,!1}var H=I===s;if(!H)break}}else return me.errors=[{instancePath:t+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=P===s}else var o=!0;if(o)if(e.$schema!==void 0){const S=s;if(typeof e.$schema!="string")return me.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=S===s}else var o=!0}}}}}}}}}}}}else return me.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return me.errors=n,s===0}function wn(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let n=null,s=0;return me(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(n=n===null?me.errors:n.concat(me.errors),s=n.length),wn.errors=n,s===0}const{wpCLI:J_,...Gl}=z_,Q_={...Gl,"wp-cli":J_,importFile:Gl.importWxr};async function Jn(e,t={}){const r={...t};let i;return Na(e)?(i=await Bc(e),r.streamBundledFile=function(...a){return e.read(...a)}):i=e,eg(i,r)}function Na(e){return e&&"read"in e&&typeof e.read=="function"}async function Bc(e){if(!Na(e))return e;const r=await(await e.read("blueprint.json")).text();return JSON.parse(r)}function eg(e,{progress:t=new Dn,semaphore:r=new Qr({concurrency:3}),onStepCompleted:i=()=>{},onBlueprintValidated:a=()=>{},corsProxy:n,streamBundledFile:s,additionalSteps:o}={}){var y,g,b,R,O,H,A,$,S,P;e=structuredClone(e),e={...e,steps:(e.steps||[]).filter(sg).filter(ng)},e.steps=[...e.steps||[],...o||[]];for(const C of e.steps)!C||typeof C!="object"||(C.step==="importFile"?(C.step="importWxr",Pe.warn('The "importFile" step is deprecated. Use "importWxr" instead.')):(C==null?void 0:C.step)==="installPlugin"&&"pluginZipFile"in C?(C.pluginData=C.pluginZipFile,Pe.warn('The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.')):(C==null?void 0:C.step)==="installTheme"&&"themeZipFile"in C&&(C.themeData=C.themeZipFile,Pe.warn('The "themeZipFile" option of the "installTheme" step is deprecated. Use "themeData" instead.')));if(e.constants&&e.steps.unshift({step:"defineWpConfigConsts",consts:e.constants}),e.siteOptions&&e.steps.unshift({step:"setSiteOptions",options:e.siteOptions}),e.plugins){const C=e.plugins.map(k=>typeof k=="string"?k.startsWith("https://")?{resource:"url",url:k}:{resource:"wordpress.org/plugins",slug:k}:k).map(k=>({step:"installPlugin",pluginData:k}));e.steps.unshift(...C)}e.login&&e.steps.push({step:"login",...e.login===!0?{username:"admin"}:e.login});const f=((y=e.steps)==null?void 0:y.findIndex(C=>typeof C=="object"&&(C==null?void 0:C.step)&&["wp-cli","enableMultisite"].includes(C.step)))??-1;if((g=e==null?void 0:e.extraLibraries)!=null&&g.includes("wp-cli")||f!==-1){const C={step:"writeFile",data:j_,path:Ia};f===-1?(b=e.steps)==null||b.push(C):(R=e.steps)==null||R.splice(f,0,C)}const p=(O=e.steps)==null?void 0:O.findIndex(C=>typeof C=="object"&&(C==null?void 0:C.step)==="importWxr");p!==void 0&&p>-1&&((H=e.steps)==null||H.splice(p,0,{step:"installPlugin",pluginData:{resource:"wordpress.org/plugins",slug:"wordpress-importer"}}));const{valid:c,errors:m}=tg(e);if(!c){const C=new Error(`Invalid blueprint: ${m[0].message} at ${m[0].instancePath}`);throw C.errors=m,C}a(e);const h=e.steps||[],_=h.reduce((C,k)=>{var E;return C+(((E=k.progress)==null?void 0:E.weight)||1)},0),L=h.map(C=>ig(C,{semaphore:r,rootProgressTracker:t,totalProgressWeight:_,corsProxy:n,streamBundledFile:s}));return{versions:{php:rg((A=e.preferredVersions)==null?void 0:A.php,Hn,of),wp:(($=e.preferredVersions)==null?void 0:$.wp)||"latest"},features:{intl:((S=e.features)==null?void 0:S.intl)??!1,networking:((P=e.features)==null?void 0:P.networking)??!0},extraLibraries:e.extraLibraries||[],run:async C=>{try{for(const{resources:k}of L)for(const E of k)E.setPlayground(C),E.isAsync&&E.resolve().catch(()=>{});for(const[k,{run:E,step:D}]of Object.entries(L))try{const I=await E(C);i(I,D)}catch(I){throw new Error(`Error when executing the blueprint step #${k} (${JSON.stringify(D)}) ${I instanceof Error?`: ${I.message}`:I}`,{cause:I})}}finally{try{const k=await C.pathToInternalUrl(e.landingPage||"/");await C.goTo("/index.php?playground-redirection-handler&next="+encodeURIComponent(k))}catch{}t.finish()}}}}function tg(e){var a;const t=wn(e);if(t)return{valid:t};const r=new Set;for(const n of wn.errors)n.schemaPath.startsWith("#/properties/steps/items/anyOf")||r.add(n.instancePath);const i=(a=wn.errors)==null?void 0:a.filter(n=>!(n.schemaPath.startsWith("#/properties/steps/items/anyOf")&&r.has(n.instancePath)));return{valid:t,errors:i}}function rg(e,t,r){return e&&t.includes(e)?e:r}function sg(e){return!!(typeof e=="object"&&e)}function ng(e){return["setPhpIniEntry","request"].includes(e.step)?(Pe.warn(`The "${e.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`),!1):!0}function ig(e,{semaphore:t,rootProgressTracker:r,totalProgressWeight:i,corsProxy:a,streamBundledFile:n}){var h;const s=r.stage((((h=e.progress)==null?void 0:h.weight)||1)/i),o={};for(const _ of Object.keys(e)){let L=e[_];x_(L)&&(L=Kt.create(L,{semaphore:t,corsProxy:a,streamBundledFile:n})),o[_]=L}const f=async _=>{var L;try{return s.fillSlowly(),await Q_[e.step](_,await ag(o),{tracker:s,initialCaption:(L=e.progress)==null?void 0:L.caption})}finally{s.finish()}},p=Zl(o),c=Zl(o).filter(_=>_.isAsync),m=1/(c.length+1);for(const _ of c)_.progress=s.stage(m);return{run:f,step:e,resources:p}}function Zl(e){const t=[];for(const r in e){const i=e[r];i instanceof Kt&&t.push(i)}return t}async function ag(e){const t={};for(const r in e){const i=e[r];i instanceof Kt?t[r]=await i.resolve():t[r]=i}return t}async function Ba(e,t){await e.run(t)}async function jc(){const e=(await Promise.resolve().then(()=>require("./blueprints-DY7omvFh.cjs"))).default;return new File([e],"blueprints.phar",{type:"application/zip"})}function og(e){if(typeof e=="object"&&"type"in e&&["inline-file","file-reference"].includes(e.type))return e;if(!e)return{type:"inline-file",contents:"{}"};if(typeof e!="string")return{type:"inline-file",contents:JSON.stringify(e)};try{return JSON.parse(e),{type:"inline-file",contents:e}}catch{return{type:"file-reference",reference:e}}}async function lg(e){var c,m;const t=e.cliArgs||[];for(const h of t)if(h.startsWith("--site-path="))throw new Error("The --site-path CLI argument must not be provided. In Playground, it is always set to /wordpress.");t.push("--site-path=/wordpress"),t.find(h=>h.startsWith("--db-engine="))||t.push("--db-engine=sqlite");const i=e.php,a=(e==null?void 0:e.onMessage)||(()=>{}),n=await jc();i.writeFile("/tmp/blueprints.phar",new Uint8Array(await n.arrayBuffer()));const s=og(e.blueprint);let o="";switch(s.type){case"inline-file":i.writeFile("/tmp/blueprint.json",s.contents),o="/tmp/blueprint.json";break;case"file-reference":o=s.reference;break}const f=await i.onMessage(async h=>{try{const _=typeof h=="string"?JSON.parse(h):h;if(!_)return;await new Promise(L=>setTimeout(L,0)),_.type.startsWith("blueprint.")&&await a(_)}catch(_){Pe.warn("Failed to parse message as JSON:",h,_)}});await(i==null?void 0:i.writeFile("/tmp/run-blueprints.php",`<?php
986
+ 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:{anyOf:[{type:"string"},{type:"object",properties:{filename:{type:"string",description:"This property is ignored during Blueprint v1 execution but exists so the same runPHP step structure can be used for Blueprints v1 and v2."},content:{type:"string"}},required:["filename","content"],additionalProperties:!1}],description:"The PHP code to run."}},required:["code","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runPHPWithOptions"},options:{$ref:"#/definitions/PHPRunOptions",description:"Run options (See /wordpress-playground/api/universal/interface/PHPRunOptions/))"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runWpInstallationWizard"},options:{$ref:"#/definitions/WordPressInstallationOptions"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runSql",description:"The step identifier."},sql:{$ref:"#/definitions/FileReference",description:"The SQL to run. Each non-empty line must contain a valid SQL query."}},required:["sql","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteOptions",description:'The name of the step. Must be "setSiteOptions".'},options:{type:"object",additionalProperties:{},description:"The options to set on the site."}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"unzip"},zipFile:{$ref:"#/definitions/FileReference",description:"The zip file to extract"},zipPath:{type:"string",description:"The path of the zip file to extract",deprecated:"Use zipFile instead."},extractToPath:{type:"string",description:"The path to extract the zip file to"}},required:["extractToPath","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"updateUserMeta"},meta:{type:"object",additionalProperties:{},description:'An object of user meta values to set, e.g. { "first_name": "John" }'},userId:{type:"number",description:"User ID"}},required:["meta","step","userId"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFile"},path:{type:"string",description:"The path of the file to write to"},data:{anyOf:[{$ref:"#/definitions/FileReference"},{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"The data to write"}},required:["data","path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFiles"},writeToPath:{type:"string",description:"The path of the file to write to"},filesTree:{$ref:"#/definitions/DirectoryReference",description:"The 'filesTree' defines the directory structure, supporting 'literal:directory' or 'git:directory' types. The 'name' represents the root directory, while 'files' is an object where keys are file paths, and values contain either file content as a string or nested objects for subdirectories."}},required:["filesTree","step","writeToPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"wp-cli",description:"The step identifier."},command:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}],description:"The WP CLI command to run."},wpCliPath:{type:"string",description:"wp-cli.phar path"}},required:["command","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteLanguage"},language:{type:"string",description:"The language to set, e.g. 'en_US'"}},required:["language","step"]}]},ig={additionalProperties:{anyOf:[{$ref:"#/definitions/FileTree"},{type:["object","string"]}]}},Bi={validate:Pr};function Pr(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let n=null,s=0;if(s===0)if(e&&typeof e=="object"&&!Array.isArray(e))for(const p in e){let c=e[p];const m=s,h=s;let _=!1;const L=s;Bi.validate(c,{instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:p,rootData:a})||(n=n===null?Bi.validate.errors:n.concat(Bi.validate.errors),s=n.length);var o=L===s;if(_=_||o,!_){const y=s;if(!(c&&typeof c=="object"&&!Array.isArray(c))&&typeof c!="string"){const b={instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf/1/type",keyword:"type",params:{type:ig.additionalProperties.anyOf[1].type},message:"must be object,string"};n===null?n=[b]:n.push(b),s++}var o=y===s;_=_||o}if(_)s=h,n!==null&&(h?n.length=h:n=null);else{const y={instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[y]:n.push(y),s++,Pr.errors=n,!1}var f=m===s;if(!f)break}else return Pr.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Pr.errors=n,s===0}function Bt(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let n=null,s=0;if(s===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let f;if(e.files===void 0&&(f="files")||e.name===void 0&&(f="name")||e.resource===void 0&&(f="resource"))return Bt.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const p=s;for(const c in e)if(!(c==="resource"||c==="files"||c==="name"))return Bt.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:c},message:"must NOT have additional properties"}],!1;if(p===s){if(e.resource!==void 0){let c=e.resource;const m=s;if(typeof c!="string")return Bt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(c!=="literal:directory")return Bt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"literal:directory"},message:"must be equal to constant"}],!1;var o=m===s}else var o=!0;if(o){if(e.files!==void 0){const c=s;Pr(e.files,{instancePath:t+"/files",parentData:e,parentDataProperty:"files",rootData:a})||(n=n===null?Pr.errors:n.concat(Pr.errors),s=n.length);var o=c===s}else var o=!0;if(o)if(e.name!==void 0){const c=s;if(typeof e.name!="string")return Bt.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=c===s}else var o=!0}}}}else return Bt.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Bt.errors=n,s===0}function Ot(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let n=null,s=0;const o=s;let f=!1;const p=s;if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let _;if(e.resource===void 0&&(_="resource")||e.url===void 0&&(_="url")||e.ref===void 0&&(_="ref")||e.path===void 0&&(_="path")){const L={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/required",keyword:"required",params:{missingProperty:_},message:"must have required property '"+_+"'"};n===null?n=[L]:n.push(L),s++}else{const L=s;for(const y in e)if(!(y==="resource"||y==="url"||y==="ref"||y==="path")){const g={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"};n===null?n=[g]:n.push(g),s++;break}if(L===s){if(e.resource!==void 0){let y=e.resource;const g=s;if(typeof y!="string"){const b={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[b]:n.push(b),s++}if(y!=="git:directory"){const b={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/const",keyword:"const",params:{allowedValue:"git:directory"},message:"must be equal to constant"};n===null?n=[b]:n.push(b),s++}var m=g===s}else var m=!0;if(m){if(e.url!==void 0){const y=s;if(typeof e.url!="string"){const b={instancePath:t+"/url",schemaPath:"#/definitions/GitDirectoryReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[b]:n.push(b),s++}var m=y===s}else var m=!0;if(m){if(e.ref!==void 0){const y=s;if(typeof e.ref!="string"){const b={instancePath:t+"/ref",schemaPath:"#/definitions/GitDirectoryReference/properties/ref/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[b]:n.push(b),s++}var m=y===s}else var m=!0;if(m)if(e.path!==void 0){const y=s;if(typeof e.path!="string"){const b={instancePath:t+"/path",schemaPath:"#/definitions/GitDirectoryReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[b]:n.push(b),s++}var m=y===s}else var m=!0}}}}}else{const _={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[_]:n.push(_),s++}var h=p===s;if(f=f||h,!f){const _=s;Bt(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(n=n===null?Bt.errors:n.concat(Bt.errors),s=n.length);var h=_===s;f=f||h}if(f)s=o,n!==null&&(o?n.length=o:n=null);else{const _={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[_]:n.push(_),s++,Ot.errors=n,!1}return Ot.errors=n,s===0}const Mc={enum:["GET","POST","HEAD","OPTIONS","PATCH","PUT","DELETE"]};function _t(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let n=null,s=0;if(s===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let b;if(e.url===void 0&&(b="url"))return _t.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"}],!1;{const R=s;for(const O in e)if(!(O==="method"||O==="url"||O==="headers"||O==="body"))return _t.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:O},message:"must NOT have additional properties"}],!1;if(R===s){if(e.method!==void 0){let O=e.method;const $=s;if(typeof O!="string")return _t.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(O==="GET"||O==="POST"||O==="HEAD"||O==="OPTIONS"||O==="PATCH"||O==="PUT"||O==="DELETE"))return _t.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Mc.enum},message:"must be equal to one of the allowed values"}],!1;var o=$===s}else var o=!0;if(o){if(e.url!==void 0){const O=s;if(typeof e.url!="string")return _t.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=O===s}else var o=!0;if(o){if(e.headers!==void 0){let O=e.headers;const $=s;if(s===s)if(O&&typeof O=="object"&&!Array.isArray(O))for(const S in O){const P=s;if(typeof O[S]!="string")return _t.errors=[{instancePath:t+"/headers/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=P===s;if(!f)break}else return _t.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=$===s}else var o=!0;if(o)if(e.body!==void 0){let O=e.body;const $=s,A=s;let H=!1;const S=s;if(typeof O!="string"){const C={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[C]:n.push(C),s++}var p=S===s;if(H=H||p,!H){const C=s;if(s===C)if(O&&typeof O=="object"&&!Array.isArray(O)){let E;if(O.BYTES_PER_ELEMENT===void 0&&(E="BYTES_PER_ELEMENT")||O.buffer===void 0&&(E="buffer")||O.byteLength===void 0&&(E="byteLength")||O.byteOffset===void 0&&(E="byteOffset")||O.length===void 0&&(E="length")){const D={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:E},message:"must have required property '"+E+"'"};n===null?n=[D]:n.push(D),s++}else{const D=s;for(const I in O)if(!(I==="BYTES_PER_ELEMENT"||I==="buffer"||I==="byteLength"||I==="byteOffset"||I==="length")){let N=O[I];const U=s;if(!(typeof N=="number"&&isFinite(N))){const M={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[M]:n.push(M),s++}var c=U===s;if(!c)break}if(D===s){if(O.BYTES_PER_ELEMENT!==void 0){let I=O.BYTES_PER_ELEMENT;const N=s;if(!(typeof I=="number"&&isFinite(I))){const U={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"};n===null?n=[U]:n.push(U),s++}var m=N===s}else var m=!0;if(m){if(O.buffer!==void 0){let I=O.buffer;const N=s;if(s===N)if(I&&typeof I=="object"&&!Array.isArray(I)){let M;if(I.byteLength===void 0&&(M="byteLength")){const Z={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:M},message:"must have required property '"+M+"'"};n===null?n=[Z]:n.push(Z),s++}else{const Z=s;for(const z in I)if(z!=="byteLength"){const ne={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:z},message:"must NOT have additional properties"};n===null?n=[ne]:n.push(ne),s++;break}if(Z===s&&I.byteLength!==void 0){let z=I.byteLength;if(!(typeof z=="number"&&isFinite(z))){const ne={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[ne]:n.push(ne),s++}}}}else{const M={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[M]:n.push(M),s++}var m=N===s}else var m=!0;if(m){if(O.byteLength!==void 0){let I=O.byteLength;const N=s;if(!(typeof I=="number"&&isFinite(I))){const M={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[M]:n.push(M),s++}var m=N===s}else var m=!0;if(m){if(O.byteOffset!==void 0){let I=O.byteOffset;const N=s;if(!(typeof I=="number"&&isFinite(I))){const M={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[M]:n.push(M),s++}var m=N===s}else var m=!0;if(m)if(O.length!==void 0){let I=O.length;const N=s;if(!(typeof I=="number"&&isFinite(I))){const M={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[M]:n.push(M),s++}var m=N===s}else var m=!0}}}}}}else{const E={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[E]:n.push(E),s++}var p=C===s;if(H=H||p,!H){const E=s;if(s===E)if(O&&typeof O=="object"&&!Array.isArray(O))for(const I in O){let N=O[I];const U=s,M=s;let Z=!1;const z=s;if(typeof N!="string"){const ne={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[ne]:n.push(ne),s++}var h=z===s;if(Z=Z||h,!Z){const ne=s;if(s===ne)if(N&&typeof N=="object"&&!Array.isArray(N)){let Q;if(N.BYTES_PER_ELEMENT===void 0&&(Q="BYTES_PER_ELEMENT")||N.buffer===void 0&&(Q="buffer")||N.byteLength===void 0&&(Q="byteLength")||N.byteOffset===void 0&&(Q="byteOffset")||N.length===void 0&&(Q="length")){const ee={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/required",keyword:"required",params:{missingProperty:Q},message:"must have required property '"+Q+"'"};n===null?n=[ee]:n.push(ee),s++}else{const ee=s;for(const G in N)if(!(G==="BYTES_PER_ELEMENT"||G==="buffer"||G==="byteLength"||G==="byteOffset"||G==="length")){let fe=N[G];const ie=s;if(!(typeof fe=="number"&&isFinite(fe))){const ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+G.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"};n===null?n=[ae]:n.push(ae),s++}var _=ie===s;if(!_)break}if(ee===s){if(N.BYTES_PER_ELEMENT!==void 0){let G=N.BYTES_PER_ELEMENT;const fe=s;if(!(typeof G=="number"&&isFinite(G))){const ie={instancePath:t+"/body/"+I.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"};n===null?n=[ie]:n.push(ie),s++}var L=fe===s}else var L=!0;if(L){if(N.buffer!==void 0){let G=N.buffer;const fe=s;if(s===fe)if(G&&typeof G=="object"&&!Array.isArray(G)){let ae;if(G.byteLength===void 0&&(ae="byteLength")){const Se={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:ae},message:"must have required property '"+ae+"'"};n===null?n=[Se]:n.push(Se),s++}else{const Se=s;for(const Ae in G)if(Ae!=="byteLength"){const Ze={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Ae},message:"must NOT have additional properties"};n===null?n=[Ze]:n.push(Ze),s++;break}if(Se===s&&G.byteLength!==void 0){let Ae=G.byteLength;if(!(typeof Ae=="number"&&isFinite(Ae))){const Ze={instancePath:t+"/body/"+I.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"};n===null?n=[Ze]:n.push(Ze),s++}}}}else{const ae={instancePath:t+"/body/"+I.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"};n===null?n=[ae]:n.push(ae),s++}var L=fe===s}else var L=!0;if(L){if(N.byteLength!==void 0){let G=N.byteLength;const fe=s;if(!(typeof G=="number"&&isFinite(G))){const ae={instancePath:t+"/body/"+I.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"};n===null?n=[ae]:n.push(ae),s++}var L=fe===s}else var L=!0;if(L){if(N.byteOffset!==void 0){let G=N.byteOffset;const fe=s;if(!(typeof G=="number"&&isFinite(G))){const ae={instancePath:t+"/body/"+I.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"};n===null?n=[ae]:n.push(ae),s++}var L=fe===s}else var L=!0;if(L)if(N.length!==void 0){let G=N.length;const fe=s;if(!(typeof G=="number"&&isFinite(G))){const ae={instancePath:t+"/body/"+I.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"};n===null?n=[ae]:n.push(ae),s++}var L=fe===s}else var L=!0}}}}}}else{const Q={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[Q]:n.push(Q),s++}var h=ne===s;if(Z=Z||h,!Z){const Q=s;if(s===Q)if(N&&typeof N=="object"&&!Array.isArray(N)){let G;if(N.lastModified===void 0&&(G="lastModified")||N.name===void 0&&(G="name")||N.size===void 0&&(G="size")||N.type===void 0&&(G="type")||N.webkitRelativePath===void 0&&(G="webkitRelativePath")){const fe={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/required",keyword:"required",params:{missingProperty:G},message:"must have required property '"+G+"'"};n===null?n=[fe]:n.push(fe),s++}else{const fe=s;for(const ie in N)if(!(ie==="size"||ie==="type"||ie==="lastModified"||ie==="name"||ie==="webkitRelativePath")){const ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ie},message:"must NOT have additional properties"};n===null?n=[ae]:n.push(ae),s++;break}if(fe===s){if(N.size!==void 0){let ie=N.size;const ae=s;if(!(typeof ie=="number"&&isFinite(ie))){const Se={instancePath:t+"/body/"+I.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"};n===null?n=[Se]:n.push(Se),s++}var y=ae===s}else var y=!0;if(y){if(N.type!==void 0){const ie=s;if(typeof N.type!="string"){const Se={instancePath:t+"/body/"+I.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"};n===null?n=[Se]:n.push(Se),s++}var y=ie===s}else var y=!0;if(y){if(N.lastModified!==void 0){let ie=N.lastModified;const ae=s;if(!(typeof ie=="number"&&isFinite(ie))){const Ae={instancePath:t+"/body/"+I.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"};n===null?n=[Ae]:n.push(Ae),s++}var y=ae===s}else var y=!0;if(y){if(N.name!==void 0){const ie=s;if(typeof N.name!="string"){const Se={instancePath:t+"/body/"+I.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"};n===null?n=[Se]:n.push(Se),s++}var y=ie===s}else var y=!0;if(y)if(N.webkitRelativePath!==void 0){const ie=s;if(typeof N.webkitRelativePath!="string"){const Se={instancePath:t+"/body/"+I.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"};n===null?n=[Se]:n.push(Se),s++}var y=ie===s}else var y=!0}}}}}}else{const G={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[G]:n.push(G),s++}var h=Q===s;Z=Z||h}}if(Z)s=M,n!==null&&(M?n.length=M:n=null);else{const ne={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};n===null?n=[ne]:n.push(ne),s++}var g=U===s;if(!g)break}else{const I={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[I]:n.push(I),s++}var p=E===s;H=H||p}}if(H)s=A,n!==null&&(A?n.length=A:n=null);else{const C={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[C]:n.push(C),s++,_t.errors=n,!1}var o=$===s}else var o=!0}}}}}else return _t.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return _t.errors=n,s===0}const ag={properties:{relativeUri:{type:"string",description:"Request path following the domain:port part."},scriptPath:{type:"string",description:"Path of the .php file to execute."},protocol:{type:"string",description:"Request protocol."},method:{$ref:"#/definitions/HTTPMethod",description:"Request method. Default: `GET`."},headers:{$ref:"#/definitions/PHPRequestHeaders",description:"Request headers."},body:{anyOf:[{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"Request body."},env:{type:"object",additionalProperties:{type:"string"},description:"Environment variables to set for this run."},$_SERVER:{type:"object",additionalProperties:{type:"string"},description:"$_SERVER entries to set for this run."},code:{type:"string",description:"The code snippet to eval instead of a php file."}}};function We(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let n=null,s=0;if(s===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const L=s;for(const y in e)if(!Wc.call(ag.properties,y))return We.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(L===s){if(e.relativeUri!==void 0){const y=s;if(typeof e.relativeUri!="string")return We.errors=[{instancePath:t+"/relativeUri",schemaPath:"#/properties/relativeUri/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===s}else var o=!0;if(o){if(e.scriptPath!==void 0){const y=s;if(typeof e.scriptPath!="string")return We.errors=[{instancePath:t+"/scriptPath",schemaPath:"#/properties/scriptPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===s}else var o=!0;if(o){if(e.protocol!==void 0){const y=s;if(typeof e.protocol!="string")return We.errors=[{instancePath:t+"/protocol",schemaPath:"#/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===s}else var o=!0;if(o){if(e.method!==void 0){let y=e.method;const g=s;if(typeof y!="string")return We.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(y==="GET"||y==="POST"||y==="HEAD"||y==="OPTIONS"||y==="PATCH"||y==="PUT"||y==="DELETE"))return We.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Mc.enum},message:"must be equal to one of the allowed values"}],!1;var o=g===s}else var o=!0;if(o){if(e.headers!==void 0){let y=e.headers;const g=s;if(s===s)if(y&&typeof y=="object"&&!Array.isArray(y))for(const O in y){const $=s;if(typeof y[O]!="string")return We.errors=[{instancePath:t+"/headers/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=$===s;if(!f)break}else return We.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=g===s}else var o=!0;if(o){if(e.body!==void 0){let y=e.body;const g=s,b=s;let R=!1;const O=s;if(typeof y!="string"){const A={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[A]:n.push(A),s++}var p=O===s;if(R=R||p,!R){const A=s;if(s===A)if(y&&typeof y=="object"&&!Array.isArray(y)){let S;if(y.BYTES_PER_ELEMENT===void 0&&(S="BYTES_PER_ELEMENT")||y.buffer===void 0&&(S="buffer")||y.byteLength===void 0&&(S="byteLength")||y.byteOffset===void 0&&(S="byteOffset")||y.length===void 0&&(S="length")){const P={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:S},message:"must have required property '"+S+"'"};n===null?n=[P]:n.push(P),s++}else{const P=s;for(const C in y)if(!(C==="BYTES_PER_ELEMENT"||C==="buffer"||C==="byteLength"||C==="byteOffset"||C==="length")){let k=y[C];const E=s;if(!(typeof k=="number"&&isFinite(k))){const D={instancePath:t+"/body/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[D]:n.push(D),s++}var c=E===s;if(!c)break}if(P===s){if(y.BYTES_PER_ELEMENT!==void 0){let C=y.BYTES_PER_ELEMENT;const k=s;if(!(typeof C=="number"&&isFinite(C))){const E={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[E]:n.push(E),s++}var m=k===s}else var m=!0;if(m){if(y.buffer!==void 0){let C=y.buffer;const k=s;if(s===k)if(C&&typeof C=="object"&&!Array.isArray(C)){let D;if(C.byteLength===void 0&&(D="byteLength")){const I={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"};n===null?n=[I]:n.push(I),s++}else{const I=s;for(const N in C)if(N!=="byteLength"){const U={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:N},message:"must NOT have additional properties"};n===null?n=[U]:n.push(U),s++;break}if(I===s&&C.byteLength!==void 0){let N=C.byteLength;if(!(typeof N=="number"&&isFinite(N))){const U={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[U]:n.push(U),s++}}}}else{const D={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[D]:n.push(D),s++}var m=k===s}else var m=!0;if(m){if(y.byteLength!==void 0){let C=y.byteLength;const k=s;if(!(typeof C=="number"&&isFinite(C))){const D={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[D]:n.push(D),s++}var m=k===s}else var m=!0;if(m){if(y.byteOffset!==void 0){let C=y.byteOffset;const k=s;if(!(typeof C=="number"&&isFinite(C))){const D={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[D]:n.push(D),s++}var m=k===s}else var m=!0;if(m)if(y.length!==void 0){let C=y.length;const k=s;if(!(typeof C=="number"&&isFinite(C))){const D={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[D]:n.push(D),s++}var m=k===s}else var m=!0}}}}}}else{const S={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[S]:n.push(S),s++}var p=A===s;R=R||p}if(R)s=b,n!==null&&(b?n.length=b:n=null);else{const A={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[A]:n.push(A),s++,We.errors=n,!1}var o=g===s}else var o=!0;if(o){if(e.env!==void 0){let y=e.env;const g=s;if(s===g)if(y&&typeof y=="object"&&!Array.isArray(y))for(const R in y){const O=s;if(typeof y[R]!="string")return We.errors=[{instancePath:t+"/env/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/env/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=O===s;if(!h)break}else return We.errors=[{instancePath:t+"/env",schemaPath:"#/properties/env/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=g===s}else var o=!0;if(o){if(e.$_SERVER!==void 0){let y=e.$_SERVER;const g=s;if(s===g)if(y&&typeof y=="object"&&!Array.isArray(y))for(const R in y){const O=s;if(typeof y[R]!="string")return We.errors=[{instancePath:t+"/$_SERVER/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/%24_SERVER/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _=O===s;if(!_)break}else return We.errors=[{instancePath:t+"/$_SERVER",schemaPath:"#/properties/%24_SERVER/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=g===s}else var o=!0;if(o)if(e.code!==void 0){const y=s;if(typeof e.code!="string")return We.errors=[{instancePath:t+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===s}else var o=!0}}}}}}}}}else return We.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return We.errors=n,s===0}function w(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let n=null,s=0;if(s===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let Ue;if(e.step===void 0&&(Ue="step"))return w.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:Ue},message:"must have required property '"+Ue+"'"}],!1;{const ce=e.step;if(typeof ce=="string")if(ce==="activatePlugin"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.pluginPath===void 0&&(j="pluginPath")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="pluginPath"||l==="pluginName"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/0/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var o=re===s}else var o=!0;if(o)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/0/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=x===s}else var o=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var f=F===s}else var f=!0;if(f){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="activatePlugin")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/const",keyword:"const",params:{allowedValue:"activatePlugin"},message:"must be equal to constant"}],!1;var f=F===s}else var f=!0;if(f){if(e.pluginPath!==void 0){const l=s;if(typeof e.pluginPath!="string")return w.errors=[{instancePath:t+"/pluginPath",schemaPath:"#/oneOf/0/properties/pluginPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=l===s}else var f=!0;if(f)if(e.pluginName!==void 0){const l=s;if(typeof e.pluginName!="string")return w.errors=[{instancePath:t+"/pluginName",schemaPath:"#/oneOf/0/properties/pluginName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=l===s}else var f=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="activateTheme"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.step===void 0&&(j="step")||e.themeFolderName===void 0&&(j="themeFolderName"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="themeFolderName"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/1/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var p=re===s}else var p=!0;if(p)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/1/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=x===s}else var p=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var c=F===s}else var c=!0;if(c){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="activateTheme")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/const",keyword:"const",params:{allowedValue:"activateTheme"},message:"must be equal to constant"}],!1;var c=F===s}else var c=!0;if(c)if(e.themeFolderName!==void 0){const l=s;if(typeof e.themeFolderName!="string")return w.errors=[{instancePath:t+"/themeFolderName",schemaPath:"#/oneOf/1/properties/themeFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var c=l===s}else var c=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="cp"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.fromPath===void 0&&(j="fromPath")||e.step===void 0&&(j="step")||e.toPath===void 0&&(j="toPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="fromPath"||l==="toPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/2/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var m=re===s}else var m=!0;if(m)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/2/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=x===s}else var m=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var h=F===s}else var h=!0;if(h){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="cp")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/const",keyword:"const",params:{allowedValue:"cp"},message:"must be equal to constant"}],!1;var h=F===s}else var h=!0;if(h){if(e.fromPath!==void 0){const l=s;if(typeof e.fromPath!="string")return w.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/2/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=l===s}else var h=!0;if(h)if(e.toPath!==void 0){const l=s;if(typeof e.toPath!="string")return w.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/2/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=l===s}else var h=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="defineWpConfigConsts"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.consts===void 0&&(j="consts")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="consts"||l==="method"||l==="virtualize"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/3/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var _=re===s}else var _=!0;if(_)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/3/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _=x===s}else var _=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var L=F===s}else var L=!0;if(L){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="defineWpConfigConsts")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/const",keyword:"const",params:{allowedValue:"defineWpConfigConsts"},message:"must be equal to constant"}],!1;var L=F===s}else var L=!0;if(L){if(e.consts!==void 0){let l=e.consts;const F=s;if(s===F&&!(l&&typeof l=="object"&&!Array.isArray(l)))return w.errors=[{instancePath:t+"/consts",schemaPath:"#/oneOf/3/properties/consts/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var L=F===s}else var L=!0;if(L){if(e.method!==void 0){let l=e.method;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(l==="rewrite-wp-config"||l==="define-before-run"))return w.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/enum",keyword:"enum",params:{allowedValues:an.oneOf[3].properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var L=F===s}else var L=!0;if(L)if(e.virtualize!==void 0){const l=s;if(typeof e.virtualize!="boolean")return w.errors=[{instancePath:t+"/virtualize",schemaPath:"#/oneOf/3/properties/virtualize/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var L=l===s}else var L=!0}}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="defineSiteUrl"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.siteUrl===void 0&&(j="siteUrl")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="siteUrl"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/4/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var y=re===s}else var y=!0;if(y)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/4/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var y=x===s}else var y=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var g=F===s}else var g=!0;if(g){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="defineSiteUrl")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/const",keyword:"const",params:{allowedValue:"defineSiteUrl"},message:"must be equal to constant"}],!1;var g=F===s}else var g=!0;if(g)if(e.siteUrl!==void 0){const l=s;if(typeof e.siteUrl!="string")return w.errors=[{instancePath:t+"/siteUrl",schemaPath:"#/oneOf/4/properties/siteUrl/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=l===s}else var g=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="enableMultisite"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="wpCliPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/5/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var b=re===s}else var b=!0;if(b)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/5/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var b=x===s}else var b=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var R=F===s}else var R=!0;if(R){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="enableMultisite")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/const",keyword:"const",params:{allowedValue:"enableMultisite"},message:"must be equal to constant"}],!1;var R=F===s}else var R=!0;if(R)if(e.wpCliPath!==void 0){const l=s;if(typeof e.wpCliPath!="string")return w.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/5/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var R=l===s}else var R=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importWxr"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.file===void 0&&(j="file")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="file"||l==="importer"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.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=re===s}else var O=!0;if(O)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/6/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var O=x===s}else var O=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var $=F===s}else var $=!0;if($){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="importWxr")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/const",keyword:"const",params:{allowedValue:"importWxr"},message:"must be equal to constant"}],!1;var $=F===s}else var $=!0;if($){if(e.file!==void 0){const l=s;ke(e.file,{instancePath:t+"/file",parentData:e,parentDataProperty:"file",rootData:a})||(n=n===null?ke.errors:n.concat(ke.errors),s=n.length);var $=l===s}else var $=!0;if($)if(e.importer!==void 0){let l=e.importer;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(l==="data-liberation"||l==="default"))return w.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/enum",keyword:"enum",params:{allowedValues:an.oneOf[6].properties.importer.enum},message:"must be equal to one of the allowed values"}],!1;var $=F===s}else var $=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importThemeStarterContent"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="themeSlug"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/7/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var A=re===s}else var A=!0;if(A)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/7/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var A=x===s}else var A=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var H=F===s}else var H=!0;if(H){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="importThemeStarterContent")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/const",keyword:"const",params:{allowedValue:"importThemeStarterContent"},message:"must be equal to constant"}],!1;var H=F===s}else var H=!0;if(H)if(e.themeSlug!==void 0){const l=s;if(typeof e.themeSlug!="string")return w.errors=[{instancePath:t+"/themeSlug",schemaPath:"#/oneOf/7/properties/themeSlug/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var H=l===s}else var H=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importWordPressFiles"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.step===void 0&&(j="step")||e.wordPressFilesZip===void 0&&(j="wordPressFilesZip"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="wordPressFilesZip"||l==="pathInZip"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/8/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var S=re===s}else var S=!0;if(S)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/8/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var S=x===s}else var S=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var P=F===s}else var P=!0;if(P){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="importWordPressFiles")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/const",keyword:"const",params:{allowedValue:"importWordPressFiles"},message:"must be equal to constant"}],!1;var P=F===s}else var P=!0;if(P){if(e.wordPressFilesZip!==void 0){const l=s;ke(e.wordPressFilesZip,{instancePath:t+"/wordPressFilesZip",parentData:e,parentDataProperty:"wordPressFilesZip",rootData:a})||(n=n===null?ke.errors:n.concat(ke.errors),s=n.length);var P=l===s}else var P=!0;if(P)if(e.pathInZip!==void 0){const l=s;if(typeof e.pathInZip!="string")return w.errors=[{instancePath:t+"/pathInZip",schemaPath:"#/oneOf/8/properties/pathInZip/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var P=l===s}else var P=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="installPlugin"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.pluginData===void 0&&(j="pluginData")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="ifAlreadyInstalled"||l==="step"||l==="pluginData"||l==="pluginZipFile"||l==="options"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/9/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var C=re===s}else var C=!0;if(C)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/9/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=x===s}else var C=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var k=F===s}else var k=!0;if(k){if(e.ifAlreadyInstalled!==void 0){let l=e.ifAlreadyInstalled;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(l==="overwrite"||l==="skip"||l==="error"))return w.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:an.oneOf[9].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var k=F===s}else var k=!0;if(k){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="installPlugin")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/const",keyword:"const",params:{allowedValue:"installPlugin"},message:"must be equal to constant"}],!1;var k=F===s}else var k=!0;if(k){if(e.pluginData!==void 0){let l=e.pluginData;const F=s,te=s;let x=!1;const re=s;ke(l,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:a})||(n=n===null?ke.errors:n.concat(ke.errors),s=n.length);var E=re===s;if(x=x||E,!x){const ve=s;Ot(l,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:a})||(n=n===null?Ot.errors:n.concat(Ot.errors),s=n.length);var E=ve===s;x=x||E}if(x)s=te,n!==null&&(te?n.length=te:n=null);else{const ve={instancePath:t+"/pluginData",schemaPath:"#/oneOf/9/properties/pluginData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[ve]:n.push(ve),s++,w.errors=n,!1}var k=F===s}else var k=!0;if(k){if(e.pluginZipFile!==void 0){const l=s;ke(e.pluginZipFile,{instancePath:t+"/pluginZipFile",parentData:e,parentDataProperty:"pluginZipFile",rootData:a})||(n=n===null?ke.errors:n.concat(ke.errors),s=n.length);var k=l===s}else var k=!0;if(k)if(e.options!==void 0){let l=e.options;const F=s;if(s===s)if(l&&typeof l=="object"&&!Array.isArray(l)){const re=s;for(const Te in l)if(!(Te==="activate"||Te==="targetFolderName"))return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Te},message:"must NOT have additional properties"}],!1;if(re===s){if(l.activate!==void 0){const Te=s;if(typeof l.activate!="boolean")return w.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallPluginOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var D=Te===s}else var D=!0;if(D)if(l.targetFolderName!==void 0){const Te=s;if(typeof l.targetFolderName!="string")return w.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallPluginOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var D=Te===s}else var D=!0}}else return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var k=F===s}else var k=!0}}}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/9/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="installTheme"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.step===void 0&&(j="step")||e.themeData===void 0&&(j="themeData"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="ifAlreadyInstalled"||l==="step"||l==="themeData"||l==="themeZipFile"||l==="options"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/10/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var I=re===s}else var I=!0;if(I)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/10/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var I=x===s}else var I=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var N=F===s}else var N=!0;if(N){if(e.ifAlreadyInstalled!==void 0){let l=e.ifAlreadyInstalled;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(l==="overwrite"||l==="skip"||l==="error"))return w.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:an.oneOf[10].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var N=F===s}else var N=!0;if(N){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="installTheme")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/const",keyword:"const",params:{allowedValue:"installTheme"},message:"must be equal to constant"}],!1;var N=F===s}else var N=!0;if(N){if(e.themeData!==void 0){let l=e.themeData;const F=s,te=s;let x=!1;const re=s;ke(l,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:a})||(n=n===null?ke.errors:n.concat(ke.errors),s=n.length);var U=re===s;if(x=x||U,!x){const ve=s;Ot(l,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:a})||(n=n===null?Ot.errors:n.concat(Ot.errors),s=n.length);var U=ve===s;x=x||U}if(x)s=te,n!==null&&(te?n.length=te:n=null);else{const ve={instancePath:t+"/themeData",schemaPath:"#/oneOf/10/properties/themeData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[ve]:n.push(ve),s++,w.errors=n,!1}var N=F===s}else var N=!0;if(N){if(e.themeZipFile!==void 0){const l=s;ke(e.themeZipFile,{instancePath:t+"/themeZipFile",parentData:e,parentDataProperty:"themeZipFile",rootData:a})||(n=n===null?ke.errors:n.concat(ke.errors),s=n.length);var N=l===s}else var N=!0;if(N)if(e.options!==void 0){let l=e.options;const F=s;if(s===s)if(l&&typeof l=="object"&&!Array.isArray(l)){const re=s;for(const Te in l)if(!(Te==="activate"||Te==="importStarterContent"||Te==="targetFolderName"))return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Te},message:"must NOT have additional properties"}],!1;if(re===s){if(l.activate!==void 0){const Te=s;if(typeof l.activate!="boolean")return w.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallThemeOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var M=Te===s}else var M=!0;if(M){if(l.importStarterContent!==void 0){const Te=s;if(typeof l.importStarterContent!="boolean")return w.errors=[{instancePath:t+"/options/importStarterContent",schemaPath:"#/definitions/InstallThemeOptions/properties/importStarterContent/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var M=Te===s}else var M=!0;if(M)if(l.targetFolderName!==void 0){const Te=s;if(typeof l.targetFolderName!="string")return w.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallThemeOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var M=Te===s}else var M=!0}}}else return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var N=F===s}else var N=!0}}}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="login"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="username"||l==="password"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/11/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Z=re===s}else var Z=!0;if(Z)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/11/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Z=x===s}else var Z=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var z=F===s}else var z=!0;if(z){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="login")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/const",keyword:"const",params:{allowedValue:"login"},message:"must be equal to constant"}],!1;var z=F===s}else var z=!0;if(z){if(e.username!==void 0){const l=s;if(typeof e.username!="string")return w.errors=[{instancePath:t+"/username",schemaPath:"#/oneOf/11/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var z=l===s}else var z=!0;if(z)if(e.password!==void 0){const l=s;if(typeof e.password!="string")return w.errors=[{instancePath:t+"/password",schemaPath:"#/oneOf/11/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var z=l===s}else var z=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="mkdir"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.path===void 0&&(j="path")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="path"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/12/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ne=re===s}else var ne=!0;if(ne)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/12/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ne=x===s}else var ne=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var V=F===s}else var V=!0;if(V){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="mkdir")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/const",keyword:"const",params:{allowedValue:"mkdir"},message:"must be equal to constant"}],!1;var V=F===s}else var V=!0;if(V)if(e.path!==void 0){const l=s;if(typeof e.path!="string")return w.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/12/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var V=l===s}else var V=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="mv"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.fromPath===void 0&&(j="fromPath")||e.step===void 0&&(j="step")||e.toPath===void 0&&(j="toPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="fromPath"||l==="toPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/13/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Q=re===s}else var Q=!0;if(Q)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/13/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Q=x===s}else var Q=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ee=F===s}else var ee=!0;if(ee){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="mv")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/const",keyword:"const",params:{allowedValue:"mv"},message:"must be equal to constant"}],!1;var ee=F===s}else var ee=!0;if(ee){if(e.fromPath!==void 0){const l=s;if(typeof e.fromPath!="string")return w.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/13/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=l===s}else var ee=!0;if(ee)if(e.toPath!==void 0){const l=s;if(typeof e.toPath!="string")return w.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/13/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=l===s}else var ee=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="resetData"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/14/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var G=re===s}else var G=!0;if(G)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/14/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var G=x===s}else var G=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var fe=F===s}else var fe=!0;if(fe)if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="resetData")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/const",keyword:"const",params:{allowedValue:"resetData"},message:"must be equal to constant"}],!1;var fe=F===s}else var fe=!0}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/14/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="request"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.request===void 0&&(j="request")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="request"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/15/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ie=re===s}else var ie=!0;if(ie)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/15/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ie=x===s}else var ie=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ae=F===s}else var ae=!0;if(ae){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="request")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/const",keyword:"const",params:{allowedValue:"request"},message:"must be equal to constant"}],!1;var ae=F===s}else var ae=!0;if(ae)if(e.request!==void 0){const l=s;_t(e.request,{instancePath:t+"/request",parentData:e,parentDataProperty:"request",rootData:a})||(n=n===null?_t.errors:n.concat(_t.errors),s=n.length);var ae=l===s}else var ae=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/15/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="rm"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.path===void 0&&(j="path")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/16/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="path"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/16/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/16/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Se=re===s}else var Se=!0;if(Se)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/16/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Se=x===s}else var Se=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ae=F===s}else var Ae=!0;if(Ae){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="rm")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/const",keyword:"const",params:{allowedValue:"rm"},message:"must be equal to constant"}],!1;var Ae=F===s}else var Ae=!0;if(Ae)if(e.path!==void 0){const l=s;if(typeof e.path!="string")return w.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/16/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ae=l===s}else var Ae=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/16/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="rmdir"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.path===void 0&&(j="path")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/17/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="path"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/17/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/17/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ze=re===s}else var Ze=!0;if(Ze)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/17/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ze=x===s}else var Ze=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Qe=F===s}else var Qe=!0;if(Qe){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="rmdir")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/const",keyword:"const",params:{allowedValue:"rmdir"},message:"must be equal to constant"}],!1;var Qe=F===s}else var Qe=!0;if(Qe)if(e.path!==void 0){const l=s;if(typeof e.path!="string")return w.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/17/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Qe=l===s}else var Qe=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/17/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runPHP"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.code===void 0&&(j="code")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/18/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="code"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/18/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/18/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var bt=re===s}else var bt=!0;if(bt)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/18/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var bt=x===s}else var bt=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Re=F===s}else var Re=!0;if(Re){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="runPHP")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/const",keyword:"const",params:{allowedValue:"runPHP"},message:"must be equal to constant"}],!1;var Re=F===s}else var Re=!0;if(Re)if(e.code!==void 0){let l=e.code;const F=s,te=s;let x=!1;const re=s;if(typeof l!="string"){const ve={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[ve]:n.push(ve),s++}var Ie=re===s;if(x=x||Ie,!x){const ve=s;if(s===ve)if(l&&typeof l=="object"&&!Array.isArray(l)){let qe;if(l.filename===void 0&&(qe="filename")||l.content===void 0&&(qe="content")){const Vt={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/required",keyword:"required",params:{missingProperty:qe},message:"must have required property '"+qe+"'"};n===null?n=[Vt]:n.push(Vt),s++}else{const Vt=s;for(const je in l)if(!(je==="filename"||je==="content")){const Dt={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:je},message:"must NOT have additional properties"};n===null?n=[Dt]:n.push(Dt),s++;break}if(Vt===s){if(l.filename!==void 0){const je=s;if(typeof l.filename!="string"){const Dt={instancePath:t+"/code/filename",schemaPath:"#/oneOf/18/properties/code/anyOf/1/properties/filename/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[Dt]:n.push(Dt),s++}var at=je===s}else var at=!0;if(at)if(l.content!==void 0){const je=s;if(typeof l.content!="string"){const ge={instancePath:t+"/code/content",schemaPath:"#/oneOf/18/properties/code/anyOf/1/properties/content/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[ge]:n.push(ge),s++}var at=je===s}else var at=!0}}}else{const qe={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[qe]:n.push(qe),s++}var Ie=ve===s;x=x||Ie}if(x)s=te,n!==null&&(te?n.length=te:n=null);else{const ve={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[ve]:n.push(ve),s++,w.errors=n,!1}var Re=F===s}else var Re=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/18/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runPHPWithOptions"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.options===void 0&&(j="options")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/19/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="options"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/19/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/19/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ce=re===s}else var Ce=!0;if(Ce)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/19/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ce=x===s}else var Ce=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var v=F===s}else var v=!0;if(v){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="runPHPWithOptions")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/const",keyword:"const",params:{allowedValue:"runPHPWithOptions"},message:"must be equal to constant"}],!1;var v=F===s}else var v=!0;if(v)if(e.options!==void 0){const l=s;We(e.options,{instancePath:t+"/options",parentData:e,parentDataProperty:"options",rootData:a})||(n=n===null?We.errors:n.concat(We.errors),s=n.length);var v=l===s}else var v=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/19/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runWpInstallationWizard"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.options===void 0&&(j="options")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/20/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="options"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/20/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/20/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var u=re===s}else var u=!0;if(u)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/20/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=x===s}else var u=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=F===s}else var d=!0;if(d){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="runWpInstallationWizard")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/const",keyword:"const",params:{allowedValue:"runWpInstallationWizard"},message:"must be equal to constant"}],!1;var d=F===s}else var d=!0;if(d)if(e.options!==void 0){let l=e.options;const F=s;if(s===s)if(l&&typeof l=="object"&&!Array.isArray(l)){const re=s;for(const Te in l)if(!(Te==="adminUsername"||Te==="adminPassword"))return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Te},message:"must NOT have additional properties"}],!1;if(re===s){if(l.adminUsername!==void 0){const Te=s;if(typeof l.adminUsername!="string")return w.errors=[{instancePath:t+"/options/adminUsername",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminUsername/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var T=Te===s}else var T=!0;if(T)if(l.adminPassword!==void 0){const Te=s;if(typeof l.adminPassword!="string")return w.errors=[{instancePath:t+"/options/adminPassword",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminPassword/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var T=Te===s}else var T=!0}}else return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=F===s}else var d=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/20/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runSql"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.sql===void 0&&(j="sql")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/21/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="sql"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/21/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/21/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var B=re===s}else var B=!0;if(B)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/21/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var B=x===s}else var B=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var K=F===s}else var K=!0;if(K){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="runSql")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/const",keyword:"const",params:{allowedValue:"runSql"},message:"must be equal to constant"}],!1;var K=F===s}else var K=!0;if(K)if(e.sql!==void 0){const l=s;ke(e.sql,{instancePath:t+"/sql",parentData:e,parentDataProperty:"sql",rootData:a})||(n=n===null?ke.errors:n.concat(ke.errors),s=n.length);var K=l===s}else var K=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/21/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="setSiteOptions"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.options===void 0&&(j="options")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/22/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="options"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/22/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/22/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var X=re===s}else var X=!0;if(X)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/22/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var X=x===s}else var X=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var pe=F===s}else var pe=!0;if(pe){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="setSiteOptions")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/const",keyword:"const",params:{allowedValue:"setSiteOptions"},message:"must be equal to constant"}],!1;var pe=F===s}else var pe=!0;if(pe)if(e.options!==void 0){let l=e.options;const F=s;if(s===F&&!(l&&typeof l=="object"&&!Array.isArray(l)))return w.errors=[{instancePath:t+"/options",schemaPath:"#/oneOf/22/properties/options/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var pe=F===s}else var pe=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/22/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="unzip"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.extractToPath===void 0&&(j="extractToPath")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/23/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="zipFile"||l==="zipPath"||l==="extractToPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/23/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/23/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var _e=re===s}else var _e=!0;if(_e)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/23/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _e=x===s}else var _e=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var he=F===s}else var he=!0;if(he){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="unzip")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/const",keyword:"const",params:{allowedValue:"unzip"},message:"must be equal to constant"}],!1;var he=F===s}else var he=!0;if(he){if(e.zipFile!==void 0){const l=s;ke(e.zipFile,{instancePath:t+"/zipFile",parentData:e,parentDataProperty:"zipFile",rootData:a})||(n=n===null?ke.errors:n.concat(ke.errors),s=n.length);var he=l===s}else var he=!0;if(he){if(e.zipPath!==void 0){const l=s;if(typeof e.zipPath!="string")return w.errors=[{instancePath:t+"/zipPath",schemaPath:"#/oneOf/23/properties/zipPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=l===s}else var he=!0;if(he)if(e.extractToPath!==void 0){const l=s;if(typeof e.extractToPath!="string")return w.errors=[{instancePath:t+"/extractToPath",schemaPath:"#/oneOf/23/properties/extractToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=l===s}else var he=!0}}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/23/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="updateUserMeta"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.meta===void 0&&(j="meta")||e.step===void 0&&(j="step")||e.userId===void 0&&(j="userId"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/24/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="meta"||l==="userId"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/24/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Fe=re===s}else var Fe=!0;if(Fe)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/24/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Fe=x===s}else var Fe=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ue=F===s}else var ue=!0;if(ue){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="updateUserMeta")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/const",keyword:"const",params:{allowedValue:"updateUserMeta"},message:"must be equal to constant"}],!1;var ue=F===s}else var ue=!0;if(ue){if(e.meta!==void 0){let l=e.meta;const F=s;if(s===F&&!(l&&typeof l=="object"&&!Array.isArray(l)))return w.errors=[{instancePath:t+"/meta",schemaPath:"#/oneOf/24/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ue=F===s}else var ue=!0;if(ue)if(e.userId!==void 0){let l=e.userId;const F=s;if(!(typeof l=="number"&&isFinite(l)))return w.errors=[{instancePath:t+"/userId",schemaPath:"#/oneOf/24/properties/userId/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ue=F===s}else var ue=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/24/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="writeFile"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.data===void 0&&(j="data")||e.path===void 0&&(j="path")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/25/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="path"||l==="data"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/25/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/25/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ut=re===s}else var ut=!0;if(ut)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/25/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ut=x===s}else var ut=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var et=F===s}else var et=!0;if(et){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="writeFile")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/const",keyword:"const",params:{allowedValue:"writeFile"},message:"must be equal to constant"}],!1;var et=F===s}else var et=!0;if(et){if(e.path!==void 0){const l=s;if(typeof e.path!="string")return w.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/25/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var et=l===s}else var et=!0;if(et)if(e.data!==void 0){let l=e.data;const F=s,te=s;let x=!1;const re=s;ke(l,{instancePath:t+"/data",parentData:e,parentDataProperty:"data",rootData:a})||(n=n===null?ke.errors:n.concat(ke.errors),s=n.length);var At=re===s;if(x=x||At,!x){const ve=s;if(typeof l!="string"){const qe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[qe]:n.push(qe),s++}var At=ve===s;if(x=x||At,!x){const qe=s;if(s===qe)if(l&&typeof l=="object"&&!Array.isArray(l)){let je;if(l.BYTES_PER_ELEMENT===void 0&&(je="BYTES_PER_ELEMENT")||l.buffer===void 0&&(je="buffer")||l.byteLength===void 0&&(je="byteLength")||l.byteOffset===void 0&&(je="byteOffset")||l.length===void 0&&(je="length")){const Dt={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/required",keyword:"required",params:{missingProperty:je},message:"must have required property '"+je+"'"};n===null?n=[Dt]:n.push(Dt),s++}else{const Dt=s;for(const ge in l)if(!(ge==="BYTES_PER_ELEMENT"||ge==="buffer"||ge==="byteLength"||ge==="byteOffset"||ge==="length")){let dt=l[ge];const Us=s;if(!(typeof dt=="number"&&isFinite(dt))){const Ke={instancePath:t+"/data/"+ge.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/oneOf/25/properties/data/anyOf/2/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[Ke]:n.push(Ke),s++}var Qn=Us===s;if(!Qn)break}if(Dt===s){if(l.BYTES_PER_ELEMENT!==void 0){let ge=l.BYTES_PER_ELEMENT;const dt=s;if(!(typeof ge=="number"&&isFinite(ge))){const Us={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"};n===null?n=[Us]:n.push(Us),s++}var tt=dt===s}else var tt=!0;if(tt){if(l.buffer!==void 0){let ge=l.buffer;const dt=s;if(s===dt)if(ge&&typeof ge=="object"&&!Array.isArray(ge)){let Ke;if(ge.byteLength===void 0&&(Ke="byteLength")){const Ws={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/required",keyword:"required",params:{missingProperty:Ke},message:"must have required property '"+Ke+"'"};n===null?n=[Ws]:n.push(Ws),s++}else{const Ws=s;for(const ns in ge)if(ns!=="byteLength"){const is={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ns},message:"must NOT have additional properties"};n===null?n=[is]:n.push(is),s++;break}if(Ws===s&&ge.byteLength!==void 0){let ns=ge.byteLength;if(!(typeof ns=="number"&&isFinite(ns))){const is={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"};n===null?n=[is]:n.push(is),s++}}}}else{const Ke={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[Ke]:n.push(Ke),s++}var tt=dt===s}else var tt=!0;if(tt){if(l.byteLength!==void 0){let ge=l.byteLength;const dt=s;if(!(typeof ge=="number"&&isFinite(ge))){const Ke={instancePath:t+"/data/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[Ke]:n.push(Ke),s++}var tt=dt===s}else var tt=!0;if(tt){if(l.byteOffset!==void 0){let ge=l.byteOffset;const dt=s;if(!(typeof ge=="number"&&isFinite(ge))){const Ke={instancePath:t+"/data/byteOffset",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[Ke]:n.push(Ke),s++}var tt=dt===s}else var tt=!0;if(tt)if(l.length!==void 0){let ge=l.length;const dt=s;if(!(typeof ge=="number"&&isFinite(ge))){const Ke={instancePath:t+"/data/length",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};n===null?n=[Ke]:n.push(Ke),s++}var tt=dt===s}else var tt=!0}}}}}}else{const je={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[je]:n.push(je),s++}var At=qe===s;x=x||At}}if(x)s=te,n!==null&&(te?n.length=te:n=null);else{const ve={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[ve]:n.push(ve),s++,w.errors=n,!1}var et=F===s}else var et=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/25/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="writeFiles"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.filesTree===void 0&&(j="filesTree")||e.step===void 0&&(j="step")||e.writeToPath===void 0&&(j="writeToPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/26/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="writeToPath"||l==="filesTree"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/26/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/26/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Hr=re===s}else var Hr=!0;if(Hr)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/26/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Hr=x===s}else var Hr=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var W=F===s}else var W=!0;if(W){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="writeFiles")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/const",keyword:"const",params:{allowedValue:"writeFiles"},message:"must be equal to constant"}],!1;var W=F===s}else var W=!0;if(W){if(e.writeToPath!==void 0){const l=s;if(typeof e.writeToPath!="string")return w.errors=[{instancePath:t+"/writeToPath",schemaPath:"#/oneOf/26/properties/writeToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var W=l===s}else var W=!0;if(W)if(e.filesTree!==void 0){const l=s;Ot(e.filesTree,{instancePath:t+"/filesTree",parentData:e,parentDataProperty:"filesTree",rootData:a})||(n=n===null?Ot.errors:n.concat(Ot.errors),s=n.length);var W=l===s}else var W=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/26/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="wp-cli"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.command===void 0&&(j="command")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/27/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="command"||l==="wpCliPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/27/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/27/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Y=re===s}else var Y=!0;if(Y)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/27/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Y=x===s}else var Y=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var q=F===s}else var q=!0;if(q){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="wp-cli")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var q=F===s}else var q=!0;if(q){if(e.command!==void 0){let l=e.command;const F=s,te=s;let x=!1;const re=s;if(typeof l!="string"){const ve={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[ve]:n.push(ve),s++}var J=re===s;if(x=x||J,!x){const ve=s;if(s===ve)if(Array.isArray(l)){var se=!0;const qe=l.length;for(let Vt=0;Vt<qe;Vt++){const je=s;if(typeof l[Vt]!="string"){const ge={instancePath:t+"/command/"+Vt,schemaPath:"#/oneOf/27/properties/command/anyOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[ge]:n.push(ge),s++}var se=je===s;if(!se)break}}else{const qe={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};n===null?n=[qe]:n.push(qe),s++}var J=ve===s;x=x||J}if(x)s=te,n!==null&&(te?n.length=te:n=null);else{const ve={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[ve]:n.push(ve),s++,w.errors=n,!1}var q=F===s}else var q=!0;if(q)if(e.wpCliPath!==void 0){const l=s;if(typeof e.wpCliPath!="string")return w.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/27/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var q=l===s}else var q=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/27/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="setSiteLanguage"){if(s===s)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.language===void 0&&(j="language")||e.step===void 0&&(j="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/28/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"}],!1;{const oe=s;for(const l in e)if(!(l==="progress"||l==="step"||l==="language"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/28/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===s){if(e.progress!==void 0){let l=e.progress;const F=s;if(s===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=s;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===s){if(l.weight!==void 0){let x=l.weight;const re=s;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/28/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var le=re===s}else var le=!0;if(le)if(l.caption!==void 0){const x=s;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/28/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var le=x===s}else var le=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var de=F===s}else var de=!0;if(de){if(e.step!==void 0){let l=e.step;const F=s;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="setSiteLanguage")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/const",keyword:"const",params:{allowedValue:"setSiteLanguage"},message:"must be equal to constant"}],!1;var de=F===s}else var de=!0;if(de)if(e.language!==void 0){const l=s;if(typeof e.language!="string")return w.errors=[{instancePath:t+"/language",schemaPath:"#/oneOf/28/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var de=l===s}else var de=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/28/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else return w.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"mapping",tag:"step",tagValue:ce},message:'value of tag "step" must be in oneOf'}],!1;else return w.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"tag",tag:"step",tagValue:ce},message:'tag "step" must be string'}],!1}}else return w.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return w.errors=n,s===0}function me(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let n=null,s=0;if(s===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const H=s;for(const S in e)if(!Wc.call(rg.properties,S))return me.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:S},message:"must NOT have additional properties"}],!1;if(H===s){if(e.landingPage!==void 0){const S=s;if(typeof e.landingPage!="string")return me.errors=[{instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=S===s}else var o=!0;if(o){if(e.description!==void 0){const S=s;if(typeof e.description!="string")return me.errors=[{instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=S===s}else var o=!0;if(o){if(e.meta!==void 0){let S=e.meta;const P=s;if(s===P)if(S&&typeof S=="object"&&!Array.isArray(S)){let k;if(S.title===void 0&&(k="title")||S.author===void 0&&(k="author"))return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty:k},message:"must have required property '"+k+"'"}],!1;{const E=s;for(const D in S)if(!(D==="title"||D==="description"||D==="author"||D==="categories"))return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:D},message:"must NOT have additional properties"}],!1;if(E===s){if(S.title!==void 0){const D=s;if(typeof S.title!="string")return me.errors=[{instancePath:t+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=D===s}else var f=!0;if(f){if(S.description!==void 0){const D=s;if(typeof S.description!="string")return me.errors=[{instancePath:t+"/meta/description",schemaPath:"#/properties/meta/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=D===s}else var f=!0;if(f){if(S.author!==void 0){const D=s;if(typeof S.author!="string")return me.errors=[{instancePath:t+"/meta/author",schemaPath:"#/properties/meta/properties/author/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=D===s}else var f=!0;if(f)if(S.categories!==void 0){let D=S.categories;const I=s;if(s===I)if(Array.isArray(D)){var p=!0;const U=D.length;for(let M=0;M<U;M++){const Z=s;if(typeof D[M]!="string")return me.errors=[{instancePath:t+"/meta/categories/"+M,schemaPath:"#/properties/meta/properties/categories/items/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=Z===s;if(!p)break}}else return me.errors=[{instancePath:t+"/meta/categories",schemaPath:"#/properties/meta/properties/categories/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var f=I===s}else var f=!0}}}}}else return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=P===s}else var o=!0;if(o){if(e.preferredVersions!==void 0){let S=e.preferredVersions;const P=s;if(s===P)if(S&&typeof S=="object"&&!Array.isArray(S)){let k;if(S.php===void 0&&(k="php")||S.wp===void 0&&(k="wp"))return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/required",keyword:"required",params:{missingProperty:k},message:"must have required property '"+k+"'"}],!1;{const E=s;for(const D in S)if(!(D==="php"||D==="wp"))return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:D},message:"must NOT have additional properties"}],!1;if(E===s){if(S.php!==void 0){let D=S.php;const I=s,N=s;let U=!1;const M=s;if(typeof D!="string"){const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[Z]:n.push(Z),s++}if(!(D==="8.4"||D==="8.3"||D==="8.2"||D==="8.1"||D==="8.0"||D==="7.4"||D==="7.3"||D==="7.2")){const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/enum",keyword:"enum",params:{allowedValues:sg.enum},message:"must be equal to one of the allowed values"};n===null?n=[Z]:n.push(Z),s++}var c=M===s;if(U=U||c,!U){const Z=s;if(typeof D!="string"){const ne={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[ne]:n.push(ne),s++}if(D!=="latest"){const ne={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/const",keyword:"const",params:{allowedValue:"latest"},message:"must be equal to constant"};n===null?n=[ne]:n.push(ne),s++}var c=Z===s;U=U||c}if(U)s=N,n!==null&&(N?n.length=N:n=null);else{const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[Z]:n.push(Z),s++,me.errors=n,!1}var m=I===s}else var m=!0;if(m)if(S.wp!==void 0){const D=s;if(typeof S.wp!="string")return me.errors=[{instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=D===s}else var m=!0}}}else return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=P===s}else var o=!0;if(o){if(e.features!==void 0){let S=e.features;const P=s;if(s===P)if(S&&typeof S=="object"&&!Array.isArray(S)){const k=s;for(const E in S)if(!(E==="intl"||E==="networking"))return me.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:E},message:"must NOT have additional properties"}],!1;if(k===s){if(S.intl!==void 0){const E=s;if(typeof S.intl!="boolean")return me.errors=[{instancePath:t+"/features/intl",schemaPath:"#/properties/features/properties/intl/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var h=E===s}else var h=!0;if(h)if(S.networking!==void 0){const E=s;if(typeof S.networking!="boolean")return me.errors=[{instancePath:t+"/features/networking",schemaPath:"#/properties/features/properties/networking/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var h=E===s}else var h=!0}}else return me.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=P===s}else var o=!0;if(o){if(e.extraLibraries!==void 0){let S=e.extraLibraries;const P=s;if(s===P)if(Array.isArray(S)){var _=!0;const k=S.length;for(let E=0;E<k;E++){let D=S[E];const I=s;if(typeof D!="string")return me.errors=[{instancePath:t+"/extraLibraries/"+E,schemaPath:"#/definitions/ExtraLibrary/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(D!=="wp-cli")return me.errors=[{instancePath:t+"/extraLibraries/"+E,schemaPath:"#/definitions/ExtraLibrary/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var _=I===s;if(!_)break}}else return me.errors=[{instancePath:t+"/extraLibraries",schemaPath:"#/properties/extraLibraries/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=P===s}else var o=!0;if(o){if(e.constants!==void 0){let S=e.constants;const P=s;if(s===s)if(S&&typeof S=="object"&&!Array.isArray(S))for(const E in S){let D=S[E];const I=s;if(typeof D!="string"&&typeof D!="boolean"&&!(typeof D=="number"&&isFinite(D)))return me.errors=[{instancePath:t+"/constants/"+E.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPConstants/additionalProperties/type",keyword:"type",params:{type:ng.additionalProperties.type},message:"must be string,boolean,number"}],!1;var L=I===s;if(!L)break}else return me.errors=[{instancePath:t+"/constants",schemaPath:"#/definitions/PHPConstants/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=P===s}else var o=!0;if(o){if(e.plugins!==void 0){let S=e.plugins;const P=s;if(s===P)if(Array.isArray(S)){var y=!0;const k=S.length;for(let E=0;E<k;E++){let D=S[E];const I=s,N=s;let U=!1;const M=s;if(typeof D!="string"){const z={instancePath:t+"/plugins/"+E,schemaPath:"#/properties/plugins/items/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[z]:n.push(z),s++}var g=M===s;if(U=U||g,!U){const z=s;ke(D,{instancePath:t+"/plugins/"+E,parentData:S,parentDataProperty:E,rootData:a})||(n=n===null?ke.errors:n.concat(ke.errors),s=n.length);var g=z===s;U=U||g}if(U)s=N,n!==null&&(N?n.length=N:n=null);else{const z={instancePath:t+"/plugins/"+E,schemaPath:"#/properties/plugins/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[z]:n.push(z),s++,me.errors=n,!1}var y=I===s;if(!y)break}}else return me.errors=[{instancePath:t+"/plugins",schemaPath:"#/properties/plugins/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=P===s}else var o=!0;if(o){if(e.siteOptions!==void 0){let S=e.siteOptions;const P=s;if(s===P)if(S&&typeof S=="object"&&!Array.isArray(S)){const k=s;for(const E in S)if(E!=="blogname"){const D=s;if(typeof S[E]!="string")return me.errors=[{instancePath:t+"/siteOptions/"+E.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/siteOptions/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var b=D===s;if(!b)break}if(k===s&&S.blogname!==void 0&&typeof S.blogname!="string")return me.errors=[{instancePath:t+"/siteOptions/blogname",schemaPath:"#/properties/siteOptions/properties/blogname/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1}else return me.errors=[{instancePath:t+"/siteOptions",schemaPath:"#/properties/siteOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=P===s}else var o=!0;if(o){if(e.login!==void 0){let S=e.login;const P=s,C=s;let k=!1;const E=s;if(typeof S!="boolean"){const I={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};n===null?n=[I]:n.push(I),s++}var R=E===s;if(k=k||R,!k){const I=s;if(s===I)if(S&&typeof S=="object"&&!Array.isArray(S)){let U;if(S.username===void 0&&(U="username")||S.password===void 0&&(U="password")){const M={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/required",keyword:"required",params:{missingProperty:U},message:"must have required property '"+U+"'"};n===null?n=[M]:n.push(M),s++}else{const M=s;for(const Z in S)if(!(Z==="username"||Z==="password")){const z={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Z},message:"must NOT have additional properties"};n===null?n=[z]:n.push(z),s++;break}if(M===s){if(S.username!==void 0){const Z=s;if(typeof S.username!="string"){const z={instancePath:t+"/login/username",schemaPath:"#/properties/login/anyOf/1/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[z]:n.push(z),s++}var O=Z===s}else var O=!0;if(O)if(S.password!==void 0){const Z=s;if(typeof S.password!="string"){const ne={instancePath:t+"/login/password",schemaPath:"#/properties/login/anyOf/1/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[ne]:n.push(ne),s++}var O=Z===s}else var O=!0}}}else{const U={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};n===null?n=[U]:n.push(U),s++}var R=I===s;k=k||R}if(k)s=C,n!==null&&(C?n.length=C:n=null);else{const I={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[I]:n.push(I),s++,me.errors=n,!1}var o=P===s}else var o=!0;if(o){if(e.steps!==void 0){let S=e.steps;const P=s;if(s===P)if(Array.isArray(S)){var $=!0;const k=S.length;for(let E=0;E<k;E++){let D=S[E];const I=s,N=s;let U=!1;const M=s;w(D,{instancePath:t+"/steps/"+E,parentData:S,parentDataProperty:E,rootData:a})||(n=n===null?w.errors:n.concat(w.errors),s=n.length);var A=M===s;if(U=U||A,!U){const z=s;if(typeof D!="string"){const V={instancePath:t+"/steps/"+E,schemaPath:"#/properties/steps/items/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};n===null?n=[V]:n.push(V),s++}var A=z===s;if(U=U||A,!U){const V=s,Q={instancePath:t+"/steps/"+E,schemaPath:"#/properties/steps/items/anyOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};n===null?n=[Q]:n.push(Q),s++;var A=V===s;if(U=U||A,!U){const G=s;if(typeof D!="boolean"){const ie={instancePath:t+"/steps/"+E,schemaPath:"#/properties/steps/items/anyOf/3/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};n===null?n=[ie]:n.push(ie),s++}if(D!==!1){const ie={instancePath:t+"/steps/"+E,schemaPath:"#/properties/steps/items/anyOf/3/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};n===null?n=[ie]:n.push(ie),s++}var A=G===s;if(U=U||A,!U){const ie=s;if(D!==null){const Se={instancePath:t+"/steps/"+E,schemaPath:"#/properties/steps/items/anyOf/4/type",keyword:"type",params:{type:"null"},message:"must be null"};n===null?n=[Se]:n.push(Se),s++}var A=ie===s;U=U||A}}}}if(U)s=N,n!==null&&(N?n.length=N:n=null);else{const z={instancePath:t+"/steps/"+E,schemaPath:"#/properties/steps/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return n===null?n=[z]:n.push(z),s++,me.errors=n,!1}var $=I===s;if(!$)break}}else return me.errors=[{instancePath:t+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=P===s}else var o=!0;if(o)if(e.$schema!==void 0){const S=s;if(typeof e.$schema!="string")return me.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=S===s}else var o=!0}}}}}}}}}}}}else return me.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return me.errors=n,s===0}function wn(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let n=null,s=0;return me(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(n=n===null?me.errors:n.concat(me.errors),s=n.length),wn.errors=n,s===0}const{wpCLI:og,...Jl}=tg,lg={...Jl,"wp-cli":og,importFile:Jl.importWxr};async function Jn(e,t={}){const r={...t};let i;return Ua(e)?(i=await qc(e),r.streamBundledFile=function(...a){return e.read(...a)}):i=e,fg(i,r)}function Ua(e){return e&&"read"in e&&typeof e.read=="function"}async function qc(e){if(!Ua(e))return e;const r=await(await e.read("blueprint.json")).text();return JSON.parse(r)}function fg(e,{progress:t=new Dn,semaphore:r=new Qr({concurrency:3}),onStepCompleted:i=()=>{},onBlueprintValidated:a=()=>{},corsProxy:n,streamBundledFile:s,additionalSteps:o}={}){var y,g,b,R,O,$,A,H,S,P;e=structuredClone(e),e={...e,steps:(e.steps||[]).filter(ug).filter(dg)},e.steps=[...e.steps||[],...o||[]];for(const C of e.steps)!C||typeof C!="object"||(C.step==="importFile"?(C.step="importWxr",Pe.warn('The "importFile" step is deprecated. Use "importWxr" instead.')):(C==null?void 0:C.step)==="installPlugin"&&"pluginZipFile"in C?(C.pluginData=C.pluginZipFile,Pe.warn('The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.')):(C==null?void 0:C.step)==="installTheme"&&"themeZipFile"in C&&(C.themeData=C.themeZipFile,Pe.warn('The "themeZipFile" option of the "installTheme" step is deprecated. Use "themeData" instead.')));if(e.constants&&e.steps.unshift({step:"defineWpConfigConsts",consts:e.constants}),e.siteOptions&&e.steps.unshift({step:"setSiteOptions",options:e.siteOptions}),e.plugins){const C=e.plugins.map(k=>typeof k=="string"?k.startsWith("https://")?{resource:"url",url:k}:{resource:"wordpress.org/plugins",slug:k}:k).map(k=>({step:"installPlugin",pluginData:k}));e.steps.unshift(...C)}e.login&&e.steps.push({step:"login",...e.login===!0?{username:"admin"}:e.login});const f=((y=e.steps)==null?void 0:y.findIndex(C=>typeof C=="object"&&(C==null?void 0:C.step)&&["wp-cli","enableMultisite"].includes(C.step)))??-1;if((g=e==null?void 0:e.extraLibraries)!=null&&g.includes("wp-cli")||f!==-1){const C={step:"writeFile",data:Z_,path:$a};f===-1?(b=e.steps)==null||b.push(C):(R=e.steps)==null||R.splice(f,0,C)}const p=(O=e.steps)==null?void 0:O.findIndex(C=>typeof C=="object"&&(C==null?void 0:C.step)==="importWxr");p!==void 0&&p>-1&&(($=e.steps)==null||$.splice(p,0,{step:"installPlugin",pluginData:{resource:"wordpress.org/plugins",slug:"wordpress-importer"}}));const{valid:c,errors:m}=pg(e);if(!c){const C=new Error(`Invalid blueprint: ${m[0].message} at ${m[0].instancePath}`);throw C.errors=m,C}a(e);const h=e.steps||[],_=h.reduce((C,k)=>{var E;return C+(((E=k.progress)==null?void 0:E.weight)||1)},0),L=h.map(C=>hg(C,{semaphore:r,rootProgressTracker:t,totalProgressWeight:_,corsProxy:n,streamBundledFile:s}));return{versions:{php:cg((A=e.preferredVersions)==null?void 0:A.php,$n,uf),wp:((H=e.preferredVersions)==null?void 0:H.wp)||"latest"},features:{intl:((S=e.features)==null?void 0:S.intl)??!1,networking:((P=e.features)==null?void 0:P.networking)??!0},extraLibraries:e.extraLibraries||[],run:async C=>{try{for(const{resources:k}of L)for(const E of k)E.setPlayground(C),E.isAsync&&E.resolve().catch(()=>{});for(const[k,{run:E,step:D}]of Object.entries(L))try{const I=await E(C);i(I,D)}catch(I){throw new Error(`Error when executing the blueprint step #${k} (${JSON.stringify(D)}) ${I instanceof Error?`: ${I.message}`:I}`,{cause:I})}}finally{try{const k=await C.pathToInternalUrl(e.landingPage||"/");await C.goTo("/index.php?playground-redirection-handler&next="+encodeURIComponent(k))}catch{}t.finish()}}}}function pg(e){var a;const t=wn(e);if(t)return{valid:t};const r=new Set;for(const n of wn.errors)n.schemaPath.startsWith("#/properties/steps/items/anyOf")||r.add(n.instancePath);const i=(a=wn.errors)==null?void 0:a.filter(n=>!(n.schemaPath.startsWith("#/properties/steps/items/anyOf")&&r.has(n.instancePath)));return{valid:t,errors:i}}function cg(e,t,r){return e&&t.includes(e)?e:r}function ug(e){return!!(typeof e=="object"&&e)}function dg(e){return["setPhpIniEntry","request"].includes(e.step)?(Pe.warn(`The "${e.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`),!1):!0}function hg(e,{semaphore:t,rootProgressTracker:r,totalProgressWeight:i,corsProxy:a,streamBundledFile:n}){var h;const s=r.stage((((h=e.progress)==null?void 0:h.weight)||1)/i),o={};for(const _ of Object.keys(e)){let L=e[_];L_(L)&&(L=zt.create(L,{semaphore:t,corsProxy:a,streamBundledFile:n})),o[_]=L}const f=async _=>{var L;try{return s.fillSlowly(),await lg[e.step](_,await mg(o),{tracker:s,initialCaption:(L=e.progress)==null?void 0:L.caption})}finally{s.finish()}},p=Ql(o),c=Ql(o).filter(_=>_.isAsync),m=1/(c.length+1);for(const _ of c)_.progress=s.stage(m);return{run:f,step:e,resources:p}}function Ql(e){const t=[];for(const r in e){const i=e[r];i instanceof zt&&t.push(i)}return t}async function mg(e){const t={};for(const r in e){const i=e[r];i instanceof zt?t[r]=await i.resolve():t[r]=i}return t}async function Wa(e,t){await e.run(t)}async function Kc(){const e=(await Promise.resolve().then(()=>require("./blueprints-DY7omvFh.cjs"))).default;return new File([e],"blueprints.phar",{type:"application/zip"})}function yg(e){if(typeof e=="object"&&"type"in e&&["inline-file","file-reference"].includes(e.type))return e;if(!e)return{type:"inline-file",contents:"{}"};if(typeof e!="string")return{type:"inline-file",contents:JSON.stringify(e)};try{return JSON.parse(e),{type:"inline-file",contents:e}}catch{return{type:"file-reference",reference:e}}}async function _g(e){var c,m;const t=e.cliArgs||[];for(const h of t)if(h.startsWith("--site-path="))throw new Error("The --site-path CLI argument must not be provided. In Playground, it is always set to /wordpress.");t.push("--site-path=/wordpress"),t.find(h=>h.startsWith("--db-engine="))||t.push("--db-engine=sqlite");const i=e.php,a=(e==null?void 0:e.onMessage)||(()=>{}),n=await Kc();i.writeFile("/tmp/blueprints.phar",new Uint8Array(await n.arrayBuffer()));const s=yg(e.blueprint);let o="";switch(s.type){case"inline-file":i.writeFile("/tmp/blueprint.json",s.contents),o="/tmp/blueprint.json";break;case"file-reference":o=s.reference;break}const f=await i.onMessage(async h=>{try{const _=typeof h=="string"?JSON.parse(h):h;if(!_)return;await new Promise(L=>setTimeout(L,0)),_.type.startsWith("blueprint.")&&await a(_)}catch(_){Pe.warn("Failed to parse message as JSON:",h,_)}});await(i==null?void 0:i.writeFile("/tmp/run-blueprints.php",`<?php
987
987
  function playground_http_client_factory() {
988
988
  return new WordPress\\HttpClient\\Client([
989
989
  // sockets transport is somehow faster than curl in Playground. Maybe
@@ -1064,10 +1064,10 @@ function playground_progress_reporter() {
1064
1064
  }
1065
1065
  playground_add_filter('blueprint.progress_reporter', 'playground_progress_reporter');
1066
1066
  require( "/tmp/blueprints.phar" );
1067
- `));const p=await i.cli(["/internal/shared/bin/php","/tmp/run-blueprints.php","exec",o,...t]);return p.finished.finally(f),p}async function fg(e){const t=await fetch(e,{credentials:"omit"});if(!t.ok)throw new Error(`Failed to fetch blueprint from ${e}`);const r=await t.arrayBuffer();try{const i=new TextDecoder().decode(r);return JSON.parse(i),new l_([new o_({"blueprint.json":i}),new f_({baseUrl:e})])}catch{if(await pg(r))return In.fromArrayBuffer(r);throw new Error(`Blueprint file at ${e} is neither a valid JSON nor a ZIP file.`)}}async function pg(e){if(e.byteLength<4)return!1;const t=new Uint8Array(e,0,4);return t[0]===80&&t[1]===75&&t[2]===3&&t[3]===4}async function Wc(e){if((await Jr.create(e)).getVersion()===1){const r=await Jn(e);return{wpVersion:r.versions.wp,phpVersion:r.versions.php,intl:r.features.intl,networking:r.features.networking,extraLibraries:r.extraLibraries,constants:{}}}else return{phpVersion:H_,wpVersion:"latest",intl:!1,networking:!0,constants:{},extraLibraries:[]}}function cg(){}const ug=[],dg="127.0.0.1",hg=4400;class mg{constructor(t){this.options=t}async bootPlayground(t,r){const{onBlueprintValidated:i,onBlueprintStepCompleted:a,corsProxy:n,mounts:s,sapiName:o,scope:f,shouldInstallWordPress:p,sqliteDriverVersion:c,onClientConnected:m}=this.options,h=r.stage(.5),_=r.stage(),L=this.options.blueprint||{},y=mf(t.contentWindow,t.ownerDocument.defaultView);await y.isConnected(),r.pipe(y);const g=await Wc(L);if(await y.onDownloadProgress(_.loadingListener),await y.boot({mounts:s,sapiName:o,scope:f??Math.random().toFixed(16),shouldInstallWordPress:p,phpVersion:g.phpVersion,wpVersion:g.wpVersion,withICU:g.intl,withNetworking:g.networking,corsProxyUrl:n,sqliteDriverVersion:c}),await y.isReady(),_.finish(),ef(Pe,y),m==null||m(y),(await Jr.create(L)).getVersion()===1){const R=await Jn(L,{progress:h,onStepCompleted:a,onBlueprintValidated:i,corsProxy:n});await Ba(R,y)}return g.networking&&await y.prefetchUpdateChecks(),y}}class yg{constructor(t){this.options=t}async bootPlayground(t,r){const{blueprint:i,onClientConnected:a,corsProxy:n,mounts:s,sapiName:o,scope:f}=this.options,p=r.stage(.25),c=r.stage(.75),m=mf(t.contentWindow,t.ownerDocument.defaultView);return await m.isConnected(),r.pipe(m),await m.onDownloadProgress(p.loadingListener),await m.addEventListener("blueprint.message",({message:h})=>{switch(h.type){case"blueprint.target_resolved":break;case"blueprint.progress":{c.set(h.progress),c.setCaption(h.caption);break}case"blueprint.error":{const _="\x1B[31m",L="\x1B[1m",y="\x1B[0m";throw h.details?Pe.error(`${_}${L}Fatal error:${y} Uncaught ${h.details.exception}: ${h.details.message}
1067
+ `));const p=await i.cli(["/internal/shared/bin/php","/tmp/run-blueprints.php","exec",o,...t]);return p.finished.finally(f),p}async function gg(e){const t=await fetch(e,{credentials:"omit"});if(!t.ok)throw new Error(`Failed to fetch blueprint from ${e}`);const r=await t.arrayBuffer();try{const i=new TextDecoder().decode(r);return JSON.parse(i),new __([new y_({"blueprint.json":i}),new g_({baseUrl:e})])}catch{if(await wg(r))return In.fromArrayBuffer(r);throw new Error(`Blueprint file at ${e} is neither a valid JSON nor a ZIP file.`)}}async function wg(e){if(e.byteLength<4)return!1;const t=new Uint8Array(e,0,4);return t[0]===80&&t[1]===75&&t[2]===3&&t[3]===4}async function zc(e){if((await Jr.create(e)).getVersion()===1){const r=await Jn(e);return{wpVersion:r.versions.wp,phpVersion:r.versions.php,intl:r.features.intl,networking:r.features.networking,extraLibraries:r.extraLibraries,constants:{}}}else return{phpVersion:K_,wpVersion:"latest",intl:!1,networking:!0,constants:{},extraLibraries:[]}}function bg(){}const vg=[],xg="127.0.0.1",kg=4400;class Sg{constructor(t){this.options=t}async bootPlayground(t,r){const{onBlueprintValidated:i,onBlueprintStepCompleted:a,corsProxy:n,mounts:s,sapiName:o,scope:f,shouldInstallWordPress:p,sqliteDriverVersion:c,onClientConnected:m}=this.options,h=r.stage(.5),_=r.stage(),L=this.options.blueprint||{},y=bf(t.contentWindow,t.ownerDocument.defaultView);await y.isConnected(),r.pipe(y);const g=await zc(L);if(await y.onDownloadProgress(_.loadingListener),await y.boot({mounts:s,sapiName:o,scope:f??Math.random().toFixed(16),shouldInstallWordPress:p,phpVersion:g.phpVersion,wpVersion:g.wpVersion,withICU:g.intl,withNetworking:g.networking,corsProxyUrl:n,sqliteDriverVersion:c}),await y.isReady(),_.finish(),nf(Pe,y),m==null||m(y),(await Jr.create(L)).getVersion()===1){const R=await Jn(L,{progress:h,onStepCompleted:a,onBlueprintValidated:i,corsProxy:n});await Wa(R,y)}return g.networking&&await y.prefetchUpdateChecks(),y}}class Eg{constructor(t){this.options=t}async bootPlayground(t,r){const{blueprint:i,onClientConnected:a,corsProxy:n,mounts:s,sapiName:o,scope:f}=this.options,p=r.stage(.25),c=r.stage(.75),m=bf(t.contentWindow,t.ownerDocument.defaultView);return await m.isConnected(),r.pipe(m),await m.onDownloadProgress(p.loadingListener),await m.addEventListener("blueprint.message",({message:h})=>{switch(h.type){case"blueprint.target_resolved":break;case"blueprint.progress":{c.set(h.progress),c.setCaption(h.caption);break}case"blueprint.error":{const _="\x1B[31m",L="\x1B[1m",y="\x1B[0m";throw h.details?Pe.error(`${_}${L}Fatal error:${y} Uncaught ${h.details.exception}: ${h.details.message}
1068
1068
  at ${h.details.file}:${h.details.line}
1069
1069
  `+(h.details.trace?h.details.trace+`
1070
1070
  `:"")):Pe.error(`${_}${L}Error:${y} ${h.message}
1071
- `),new Error(h.message)}}}),await m.boot({mounts:s,sapiName:o,scope:f??Math.random().toFixed(16),corsProxyUrl:n,experimentalBlueprintsV2Runner:!0,blueprint:i}),await m.isReady(),p.finish(),ef(Pe,m),a==null||a(m),m.goTo("/"),m}}async function _g(e){const{iframe:t,progressTracker:r=new Dn,disableProgressBar:i}=e;let{remoteUrl:a}=e;bg(a),gg(t),a=vg(a,{progressbar:!i,"blueprints-runner":e.experimentalBlueprintsV2Runner?"v2":"v1"}),r.setCaption("Preparing WordPress"),await new Promise(o=>{t.src=a,t.addEventListener("load",o,!1)});const s=await(e.experimentalBlueprintsV2Runner?new yg(e):new mg(e)).bootPlayground(t,r);return r.finish(),s}function gg(e){var t,r;(t=e.sandbox)!=null&&t.length&&!((r=e.sandbox)!=null&&r.contains("allow-storage-access-by-user-activation"))&&e.sandbox.add("allow-storage-access-by-user-activation")}const Uc="https://playground.wordpress.net",wg=`http://${dg}:${hg}`,Yl=[Uc,wg,"https://wasm.wordpress.net",location.origin,"http://localhost","https://localhost","http://127.0.0.1","https://127.0.0.1",...ug],Mc=Uc;function bg(e){const t=new URL(e,Mc);if(!(Yl.includes(t.origin)&&t.pathname==="/remote.html"))throw new Error(`Invalid remote URL: ${t}. Expected remote URL to have a path of "/remote.html" based on one of the following origins:
1072
- ${Yl.join(`
1073
- `)}`)}function vg(e,t){const r=new URL(e,Mc),i=new URLSearchParams(r.search);for(const[a,n]of Object.entries(t))if(n!=null&&n!==!1)if(Array.isArray(n))for(const s of n)i.append(a,s.toString());else i.set(a,n.toString());return r.search=i.toString(),r.toString()}exports.BlueprintReflection=Jr;exports.LatestSupportedPHPVersion=of;exports.SupportedPHPVersions=Hn;exports.SupportedPHPVersionsList=uu;exports.activatePlugin=Ca;exports.activateTheme=Oa;exports.compileBlueprint=Jn;exports.compileBlueprintV1=Jn;exports.cp=vc;exports.defineSiteUrl=$a;exports.defineWpConfigConsts=Zn;exports.enableMultisite=bc;exports.exportWXR=Tc;exports.getBlueprintDeclaration=Bc;exports.getV2Runner=jc;exports.importThemeStarterContent=Ha;exports.importWordPressFiles=Ac;exports.importWxr=Pc;exports.installPlugin=Oc;exports.installTheme=Lc;exports.isBlueprintBundle=Na;exports.login=Rc;exports.mkdir=kc;exports.mv=xc;exports.phpVar=ct;exports.phpVars=Is;exports.request=mc;exports.resetData=Ic;exports.resolveRemoteBlueprint=fg;exports.resolveRuntimeConfiguration=Wc;exports.rm=La;exports.rmdir=Sc;exports.runBlueprintSteps=Ba;exports.runBlueprintV1Steps=Ba;exports.runBlueprintV2=lg;exports.runPHP=uc;exports.runPHPWithOptions=dc;exports.runSql=hc;exports.runWpInstallationWizard=Dc;exports.setPhpIniEntries=lu;exports.setPluginProxyURL=cg;exports.setSiteLanguage=Hc;exports.setSiteOptions=Ra;exports.startPlaygroundWeb=_g;exports.unzip=Xn;exports.updateUserMeta=gc;exports.wpCLI=Da;exports.wpContentFilesExcludedFromExport=Fa;exports.writeFile=Yn;exports.writeFiles=Ec;exports.zipWpContent=$c;
1071
+ `),new Error(h.message)}}}),await m.boot({mounts:s,sapiName:o,scope:f??Math.random().toFixed(16),corsProxyUrl:n,experimentalBlueprintsV2Runner:!0,blueprint:i}),await m.isReady(),p.finish(),nf(Pe,m),a==null||a(m),m.goTo("/"),m}}async function Pg(e){const{iframe:t,progressTracker:r=new Dn,disableProgressBar:i}=e;let{remoteUrl:a}=e;Cg(a),Ag(t),a=Og(a,{progressbar:!i,"blueprints-runner":e.experimentalBlueprintsV2Runner?"v2":"v1"}),r.setCaption("Preparing WordPress"),await new Promise(o=>{t.src=a,t.addEventListener("load",o,!1)});const s=await(e.experimentalBlueprintsV2Runner?new Eg(e):new Sg(e)).bootPlayground(t,r);return r.finish(),s}function Ag(e){var t,r;(t=e.sandbox)!=null&&t.length&&!((r=e.sandbox)!=null&&r.contains("allow-storage-access-by-user-activation"))&&e.sandbox.add("allow-storage-access-by-user-activation")}const Vc="https://playground.wordpress.net",Tg=`http://${xg}:${kg}`,ef=[Vc,Tg,"https://wasm.wordpress.net",location.origin,"http://localhost","https://localhost","http://127.0.0.1","https://127.0.0.1",...vg],Gc=Vc;function Cg(e){const t=new URL(e,Gc);if(!(ef.includes(t.origin)&&t.pathname==="/remote.html"))throw new Error(`Invalid remote URL: ${t}. Expected remote URL to have a path of "/remote.html" based on one of the following origins:
1072
+ ${ef.join(`
1073
+ `)}`)}function Og(e,t){const r=new URL(e,Gc),i=new URLSearchParams(r.search);for(const[a,n]of Object.entries(t))if(n!=null&&n!==!1)if(Array.isArray(n))for(const s of n)i.append(a,s.toString());else i.set(a,n.toString());return r.search=i.toString(),r.toString()}exports.BlueprintReflection=Jr;exports.LatestSupportedPHPVersion=uf;exports.SupportedPHPVersions=$n;exports.SupportedPHPVersionsList=wu;exports.activatePlugin=Ra;exports.activateTheme=Ia;exports.compileBlueprint=Jn;exports.compileBlueprintV1=Jn;exports.cp=Pc;exports.defineSiteUrl=Ba;exports.defineWpConfigConsts=Zn;exports.enableMultisite=Ec;exports.exportWXR=Ic;exports.getBlueprintDeclaration=qc;exports.getV2Runner=Kc;exports.importThemeStarterContent=Na;exports.importWordPressFiles=Rc;exports.importWxr=Lc;exports.installPlugin=Hc;exports.installTheme=$c;exports.isBlueprintBundle=Ua;exports.login=Fc;exports.mkdir=Tc;exports.mv=Ac;exports.phpVar=ct;exports.phpVars=Is;exports.request=bc;exports.resetData=Bc;exports.resolveRemoteBlueprint=gg;exports.resolveRuntimeConfiguration=zc;exports.rm=Da;exports.rmdir=Cc;exports.runBlueprintSteps=Wa;exports.runBlueprintV1Steps=Wa;exports.runBlueprintV2=_g;exports.runPHP=_c;exports.runPHPWithOptions=gc;exports.runSql=wc;exports.runWpInstallationWizard=Nc;exports.setPhpIniEntries=mu;exports.setPluginProxyURL=bg;exports.setSiteLanguage=Uc;exports.setSiteOptions=Ha;exports.startPlaygroundWeb=Pg;exports.unzip=Xn;exports.updateUserMeta=kc;exports.wpCLI=Fa;exports.wpContentFilesExcludedFromExport=ja;exports.writeFile=Yn;exports.writeFiles=Oc;exports.zipWpContent=jc;