@wp-playground/client 3.0.22 → 3.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blueprints-Gs5fAvvo.cjs +1 -0
- package/blueprints-pMn3V9MZ.js +4 -0
- package/index.cjs +424 -175
- package/index.d.ts +5 -0
- package/index.js +8252 -7422
- package/package.json +2 -2
- package/blueprints-DY7omvFh.cjs +0 -1
- package/blueprints-Dg6flSLH.js +0 -4
package/index.cjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var
|
|
2
|
-
`):JSON.stringify(e,null,2),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var ir=typeof document<"u"?document.currentScript:null;const $p=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($p==="NODE"){let e=function(r){return new Promise(function(i,a){r.onload=r.onerror=function(s){r.onload=r.onerror=null,s.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,s,n){super(a);let o;n!=null&&n.lastModified&&(o=new Date),(!o||isNaN(o.getFullYear()))&&(o=new Date),this.lastModifiedDate=o,this.lastModified=o.getMilliseconds(),this.name=s||""}}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 s=a.byobRequest.view,o=await i.slice(r,r+s.byteLength).arrayBuffer(),l=new Uint8Array(o);new Uint8Array(s.buffer).set(l);const p=l.byteLength;a.byobRequest.respond(p),r+=p,r>=i.size&&a.close()}})})}if($p==="NODE"&&typeof CustomEvent>"u"){class e extends Event{constructor(r,i={}){super(r,i),this.detail=i.detail}initCustomEvent(){}}globalThis.CustomEvent=e}function Rp(e){return e&&"read"in e&&typeof e.read=="function"}async function Md(e){if(!Rp(e))return e;const r=await(await e.read("blueprint.json")).text();return JSON.parse(r)}class cn{static async create(t){const r=await Md(t),i=Rp(t)?t:void 0;return cn.createFromDeclaration(r,i)}static createFromDeclaration(t,r=void 0){return new cn(t,r,t.version||1)}constructor(t,r,i){this.declaration=t,this.bundle=r,this.version=i}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 qd="playground-log",Zo=(e,...t)=>{Te.dispatchEvent(new CustomEvent(qd,{detail:{log:e,args:t}}))},Kd=(e,...t)=>{switch(typeof e.message=="string"?Reflect.set(e,"message",Ua(e.message)):e.message.message&&typeof e.message.message=="string"&&Reflect.set(e.message,"message",Ua(e.message.message)),e.severity){case dt.Debug:console.debug(e.message,...t);break;case dt.Info:console.info(e.message,...t);break;case dt.Warn:console.warn(e.message,...t);break;case dt.Error:console.error(e.message,...t);break;case dt.Fatal:console.error(e.message,...t);break;default:console.log(e.message,...t)}},zd=e=>e instanceof Error?[e.message,e.stack].join(`
|
|
2
|
+
`):JSON.stringify(e,null,2),Ip=[],Yo=e=>{Ip.push(e)},Ba=e=>{if(e.raw===!0)Yo(e.message);else{const t=Yd(typeof e.message=="object"?zd(e.message):e.message,e.severity,e.prefix??wr.JS);Yo(t)}};let Oi=0;const Xo="/wordpress/wp-content/debug.log",Gd=async e=>await e.fileExists(Xo)?await e.readFileAsText(Xo):"",Dp=(e,t)=>{t.addEventListener("request.end",async()=>{const r=await Gd(t);if(r.length>Oi){const i=r.substring(Oi);e.logMessage({message:i,severity:dt.Log,raw:!0}),Oi=r.length}}),t.addEventListener("request.error",r=>{r=r,r.error&&(e.logMessage({message:`${r.error.message} ${r.error.stack}`,severity:dt.Fatal,prefix:r.source==="request"?wr.PHP:wr.WASM}),e.dispatchEvent(new CustomEvent(e.fatalErrorEvent,{detail:{logs:e.getLogs(),source:r.source}})))})},dt={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}},wr={WASM:"Wasm Crash",PHP:"PHP",JS:"JavaScript"};class Vd extends EventTarget{constructor(t=[]){super(),this.fatalErrorEvent="playground-fatal-error",this.severity=dt.Info,this.handlers=t}getLogs(){return this.handlers.includes(Ba)?[...Ip]:(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??
|
|
4
|
+
`),[])}logMessage(t,...r){const i={...t,severity:t.severity??dt.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:dt.Log,prefix:wr.JS,raw:!1},...r)}debug(t,...r){this.logMessage({message:t,severity:dt.Debug,prefix:wr.JS,raw:!1},...r)}info(t,...r){this.logMessage({message:t,severity:dt.Info,prefix:wr.JS,raw:!1},...r)}warn(t,...r){this.logMessage({message:t,severity:dt.Warn,prefix:wr.JS,raw:!1},...r)}error(t,...r){this.logMessage({message:t,severity:dt.Error,prefix:wr.JS,raw:!1},...r)}}const Zd=()=>{try{if(process.env.NODE_ENV==="test")return[Ba,Zo]}catch{}return[Ba,Kd,Zo]},Te=new Vd(Zd()),Ua=e=>e.replace(/\t/g,""),Yd=(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,"-"),s=new Intl.DateTimeFormat("en-GB",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZone:"UTC",timeZoneName:"short"}).format(i),n=a+" "+s;return e=Ua(e),`[${n}] ${r} ${t.name}: ${e}`},Xd=5*1024*1024;function Jd(e,t){const r=e.headers.get("content-length")||"",i=parseInt(r,10)||Xd;return new Response(Hp(e.body,i,t),{status:e.status,statusText:e.statusText,headers:e.headers})}function Hp(e,t,r){function i(a,s){r(new CustomEvent("progress",{detail:{loaded:a,total:s}}))}return new ReadableStream({async start(a){if(!e){a.close();return}const s=e.getReader();let n=0;for(;;)try{const{done:o,value:l}=await s.read();if(l&&(n+=l.byteLength),o){i(n,n),a.close();break}else i(n,t),a.enqueue(l)}catch(o){Te.error({e:o}),a.error(o);break}}})}const Ci=1e-5;class fi 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<-Ci)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 fi({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+Ci>=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+Ci>=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 Fp=Symbol("SleepFinished");function Qd(e){return new Promise(t=>{setTimeout(()=>t(Fp),e)})}class eh extends Error{constructor(){super("Acquiring lock timed out")}}class hn{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,Qd(this.timeout)]).then(r=>{if(r===Fp)throw new eh}):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 Ae(...e){function t(s){return s.substring(s.length-1)==="/"}let r=e.join("/");const i=r[0]==="/",a=t(r);return r=pi(r),!r&&!i&&(r="."),r&&a&&!t(r)&&(r+="/"),r}function Na(e){if(e==="/")return"/";e=pi(e);const t=e.lastIndexOf("/");return t===-1?"":t===0?"/":e.substr(0,t)}function pi(e){const t=e[0]==="/";return e=th(e.split("/").filter(r=>!!r),!t).join("/"),(t?"/":"")+e.replace(/\/$/,"")}function th(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 rh(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 qs(){return rh(36,"-_")}function mt(e){return`json_decode(base64_decode('${nh(JSON.stringify(e))}'), true)`}function mn(e){const t={};for(const r in e)t[r]=mt(e[r]);return t}function nh(e){return sh(new TextEncoder().encode(e))}function sh(e){const t=String.fromCodePoint(...e);return btoa(t)}function ih(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 ah={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 Li{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=lh(this.stdout)),this.cachedStdoutBytes}get stderrText(){return this.cachedStderrText||(this.cachedStderrText=Bp(this.stderr)),this.cachedStderrText}async getParsedHeaders(){return this.parsedHeaders||(this.parsedHeaders=oh(this.headersStream)),await this.parsedHeaders}}async function oh(e){const t=await Bp(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 s=a.indexOf(": "),n=a.substring(0,s).toLowerCase(),o=a.substring(s+2);n in i||(i[n]=[]),i[n].push(o)}return{headers:i,httpStatusCode:r.status}}async function Bp(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 lh(e){const t=e.getReader(),r=[];for(;;){const{done:i,value:a}=await t.read();if(i){const s=r.reduce((l,p)=>l+p.byteLength,0),n=new Uint8Array(s);let o=0;for(const l of r)n.set(l,o),o+=l.byteLength;return n}a&&r.push(a)}}class On{constructor(t,r,i,a="",s=0){this.httpStatusCode=t,this.headers=r,this.bytes=i,this.exitCode=s,this.errors=a}static forHttpCode(t,r=""){return new On(t,{},new TextEncoder().encode(r||ah[t]||""))}static fromRawData(t){return new On(t.httpStatusCode,t.headers,t.bytes,t.errors,t.exitCode)}static async fromStreamedResponse(t){return await t.finished,new On(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 Jo="/internal/shared/php.ini";var Up=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function po(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const{hasOwnProperty:$i}=Object.prototype,ja=(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=[],s=t.sort?Object.keys(e).sort():Object.keys(e);let n=0;t.align&&(n=
|
|
6
|
+
`,i=t.whitespace?" = ":"=",a=[],s=t.sort?Object.keys(e).sort():Object.keys(e);let n=0;t.align&&(n=rr(s.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)=>rr(p).length>=rr(c).length?p:c)).length);let o="";const l=t.bracketedArray?"[]":"";for(const p of s){const c=e[p];if(c&&Array.isArray(c))for(const h of c)o+=rr(`${p}${l}`).padEnd(n," ")+i+rr(h)+r;else c&&typeof c=="object"?a.push(p):o+=rr(p).padEnd(n," ")+i+rr(c)+r}t.section&&o.length&&(o="["+rr(t.section)+"]"+(t.newline?r+r:r)+o);for(const p of a){const c=Np(p,".").join("\\."),h=(t.section?t.section+".":"")+c,m=ja(e[p],{...t,section:h});o.length&&m.length&&(o+=r),o+=m}return o};function Np(e,t){var r=0,i=0,a=0,s=[];do if(a=e.indexOf(t,r),a!==-1){if(r=a+t.length,a>0&&e[a-1]==="\\")continue;s.push(e.slice(i,a)),i=a+t.length}while(a!==-1);return s.push(e.slice(i)),s}const Qo=(e,t={})=>{t.bracketedArray=t.bracketedArray!==!1;const r=Object.create(null);let i=r,a=null;const s=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,n=e.split(/[\r\n]+/g),o={};for(const p of n){if(!p||p.match(/^\s*[;#]/)||p.match(/^\s*$/))continue;const c=p.match(s);if(!c)continue;if(c[1]!==void 0){if(a=Ts(c[1]),a==="__proto__"){i=Object.create(null);continue}i=r[a]=r[a]||Object.create(null);continue}const h=Ts(c[2]);let m;t.bracketedArray?m=h.length>2&&h.slice(-2)==="[]":(o[h]=((o==null?void 0:o[h])||0)+1,m=o[h]>1);const _=m?h.slice(0,-2):h;if(_==="__proto__")continue;const T=c[3]?Ts(c[4]):!0,y=T==="true"||T==="false"||T==="null"?JSON.parse(T):T;m&&($i.call(i,_)?Array.isArray(i[_])||(i[_]=[i[_]]):i[_]=[]),Array.isArray(i[_])?i[_].push(y):i[_]=y}const l=[];for(const p of Object.keys(r)){if(!$i.call(r,p)||typeof r[p]!="object"||Array.isArray(r[p]))continue;const c=Np(p,".");i=r;const h=c.pop(),m=h.replace(/\\\./g,".");for(const _ of c)_!=="__proto__"&&((!$i.call(i,_)||typeof i[_]!="object")&&(i[_]=Object.create(null)),i=i[_]);i===r&&m===h||(i[m]=r[p],l.push(p))}for(const p of l)delete r[p];return r},jp=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),rr=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&jp(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),Ts=e=>{if(e=(e||"").trim(),jp(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 s=e.charAt(i);if(t)"\\;#".indexOf(s)!==-1?r+=s:r+="\\"+s,t=!1;else{if(";#".indexOf(s)!==-1)break;s==="\\"?t=!0:r+=s}}return t&&(r+="\\"),r.trim()}return e};var el={parse:Qo,decode:Qo,stringify:ja,encode:ja,safe:rr,unsafe:Ts};async function fh(e,t){const r=el.parse(await e.readFileAsText(Jo));for(const[i,a]of Object.entries(t))a==null?delete r[i]:r[i]=a;await e.writeFile(Jo,el.stringify(r))}function ph(...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 ch(e){{let t=new Uint8Array;return new TransformStream({transform(r){t=ph(t,r)},flush(r){r.enqueue(t)}})}}async function co(e,t){return await e.pipeThrough(ch()).getReader().read().then(({value:r})=>r)}async function uh(e,t){return new File([await co(t)],e)}function dh(e){if(e instanceof ReadableStream)return e;let t;return Symbol.asyncIterator in e?t=e[Symbol.asyncIterator]():Symbol.iterator in e?t=e[Symbol.iterator]():t=e,new ReadableStream({async pull(r){const{done:i,value:a}=await t.next();if(i){r.close();return}r.enqueue(a)}})}class Hr extends File{static fromArrayBuffer(t,r,i){return new Hr(new ReadableStream({start(a){a.enqueue(new Uint8Array(t)),a.close()}}),r,i)}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 co(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]);const hh=67324752,mh=33639248,yh=101010256,_h=0,gh=8;new hn({concurrency:10});function wh(e){return dh(e).pipeThrough(bh())}function bh(){const e=new Map;let t=0;return new TransformStream({async transform(r,i){const a=new Uint8Array(await r.arrayBuffer());let s=await co(new Blob([a]).stream().pipeThrough(new CompressionStream("gzip")));const n=new DataView(s.buffer).getUint32(s.byteLength-8,!0);s=s.slice(10,s.byteLength-8);const o=new TextEncoder().encode(r.name),l={signature:hh,version:2,generalPurpose:0,compressionMethod:r.type==="directory"||s.byteLength===0?_h:gh,lastModifiedTime:0,lastModifiedDate:0,crc:n,compressedSize:s.byteLength,uncompressedSize:a.byteLength,path:o,extra:new Uint8Array(0)};e.set(t,l);const p=vh(l);i.enqueue(p),t+=p.byteLength,i.enqueue(s),t+=s.byteLength},flush(r){const i=t;let a=0;for(const[o,l]of e.entries()){const p={...l,signature:mh,fileComment:new Uint8Array(0),diskNumber:0,internalAttributes:0,externalAttributes:0},c=xh(p,o);r.enqueue(c),a+=c.byteLength}const s={signature:yh,numberOfDisks:0,centralDirectoryOffset:i,centralDirectorySize:a,centralDirectoryStartDisk:0,numberCentralDirectoryRecordsOnThisDisk:e.size,numberCentralDirectoryRecords:e.size,comment:new Uint8Array(0)},n=Eh(s);r.enqueue(n),e.clear()}})}function vh(e){const t=new ArrayBuffer(30+e.path.byteLength+e.extra.byteLength),r=new DataView(t);r.setUint32(0,e.signature,!0),r.setUint16(4,e.version,!0),r.setUint16(6,e.generalPurpose,!0),r.setUint16(8,e.compressionMethod,!0),r.setUint16(10,e.lastModifiedDate,!0),r.setUint16(12,e.lastModifiedTime,!0),r.setUint32(14,e.crc,!0),r.setUint32(18,e.compressedSize,!0),r.setUint32(22,e.uncompressedSize,!0),r.setUint16(26,e.path.byteLength,!0),r.setUint16(28,e.extra.byteLength,!0);const i=new Uint8Array(t);return i.set(e.path,30),i.set(e.extra,30+e.path.byteLength),i}function xh(e,t){const r=new ArrayBuffer(46+e.path.byteLength+e.extra.byteLength),i=new DataView(r);i.setUint32(0,e.signature,!0),i.setUint16(4,e.versionCreated,!0),i.setUint16(6,e.versionNeeded,!0),i.setUint16(8,e.generalPurpose,!0),i.setUint16(10,e.compressionMethod,!0),i.setUint16(12,e.lastModifiedDate,!0),i.setUint16(14,e.lastModifiedTime,!0),i.setUint32(16,e.crc,!0),i.setUint32(20,e.compressedSize,!0),i.setUint32(24,e.uncompressedSize,!0),i.setUint16(28,e.path.byteLength,!0),i.setUint16(30,e.extra.byteLength,!0),i.setUint16(32,e.fileComment.byteLength,!0),i.setUint16(34,e.diskNumber,!0),i.setUint16(36,e.internalAttributes,!0),i.setUint32(38,e.externalAttributes,!0),i.setUint32(42,t,!0);const a=new Uint8Array(r);return a.set(e.path,46),a.set(e.extra,46+e.path.byteLength),a}function Eh(e){const t=new ArrayBuffer(22+e.comment.byteLength),r=new DataView(t);r.setUint32(0,e.signature,!0),r.setUint16(4,e.numberOfDisks,!0),r.setUint16(6,e.centralDirectoryStartDisk,!0),r.setUint16(8,e.numberCentralDirectoryRecordsOnThisDisk,!0),r.setUint16(10,e.numberCentralDirectoryRecords,!0),r.setUint32(12,e.centralDirectorySize,!0),r.setUint32(16,e.centralDirectoryOffset,!0),r.setUint16(20,e.comment.byteLength,!0);const i=new Uint8Array(t);return i.set(e.comment,22),i}const ci=["8.5","8.4","8.3","8.2","8.1","8.0","7.4","7.3","7.2"],Wp=ci[0],Sh=ci;async function ui(e,t,r,{rmRoot:i=!1}={}){i&&await e.isDir(t)&&await e.rmdir(t,{recursive:!0});for(const[a,s]of Object.entries(r)){const n=Ae(t,a);await e.fileExists(Na(n))||await e.mkdir(Na(n)),s instanceof Uint8Array||typeof s=="string"?await e.writeFile(n,s):await ui(e,n,s)}}/**
|
|
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
|
|
12
|
+
*/const Mp=Symbol("Comlink.proxy"),kh=Symbol("Comlink.endpoint"),Ph=Symbol("Comlink.releaseProxy"),Ri=Symbol("Comlink.finalizer"),Os=Symbol("Comlink.thrown");/**
|
|
13
13
|
* @license
|
|
14
14
|
* Copyright 2019 Google LLC
|
|
15
15
|
* SPDX-License-Identifier: Apache-2.0
|
|
16
|
-
*/const Us={RAW:"RAW",HANDLER:"HANDLER"},vt={GET:"GET",SET:"SET",APPLY:"APPLY",CONSTRUCT:"CONSTRUCT",ENDPOINT:"ENDPOINT",RELEASE:"RELEASE"},Bp=e=>typeof e=="object"&&e!==null||typeof e=="function",sh={canHandle:e=>Bp(e)&&e[Fp],serialize(e){const{port1:t,port2:r}=new MessageChannel;return ao(e,t),[r,[r]]},deserialize(e){return e.start(),oo(e)}},ih={canHandle:e=>Bp(e)&&As 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}},qt=new Map([["proxy",sh],["throw",ih]]);function ah(e,t){for(const r of e)if(t===r||r==="*"||r instanceof RegExp&&r.test(t))return!0;return!1}function ao(e,t=globalThis,r=["*"],i){t.addEventListener("message",function a(s){if(!s||!s.data)return;if(!ah(r,s.origin)){console.warn(`Invalid origin '${s.origin}' for comlink proxy`);return}const{id:n,type:o,path:f}={path:[],...s.data},p=(s.data.argumentList||[]).map(Pr);let c;try{const m=f.slice(0,-1).reduce((g,R)=>g[R],e),h=f.reduce((g,R)=>g[R],e);switch(o){case vt.GET:c=h;break;case vt.SET:m[f.slice(-1)[0]]=Pr(s.data.value),c=!0;break;case vt.APPLY:c=h.apply(m,p);break;case vt.CONSTRUCT:{const g=new h(...p);c=Wp(g)}break;case vt.ENDPOINT:{const{port1:g,port2:R}=new MessageChannel;ao(e,R),c=ch(g,[g])}break;case vt.RELEASE:c=void 0;break;default:return}}catch(m){c={value:m,[As]:0}}Promise.resolve(c).catch(m=>({value:m,[As]:0})).then(m=>{const[h,g]=qs(m);t.postMessage({...h,id:n},g),o===vt.RELEASE&&(t.removeEventListener("message",a),jp(t),Ai in e&&typeof e[Ai]=="function"&&e[Ai]())}).catch(()=>{const[m,h]=qs({value:new TypeError("Unserializable return value"),[As]:0});t.postMessage({...m,id:n},h)}).finally(()=>{})}),t.start&&t.start()}function oh(e){return e.constructor.name==="MessagePort"}function jp(e){oh(e)&&e.close()}function oo(e,t){const r=new Map;return e.addEventListener("message",function(a){const{data:s}=a;if(!s||!s.id)return;const n=r.get(s.id);if(n)try{n(s)}finally{r.delete(s.id)}}),Da(e,r,[],t)}function fs(e){if(e)throw new Error("Proxy has been released and is not useable")}function Np(e){return Xr(e,new Map,{type:vt.RELEASE}).then(()=>{jp(e)})}const Ws=new WeakMap,Ms="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(Ws.get(e)||0)-1;Ws.set(e,t),t===0&&Np(e)});function lh(e,t){const r=(Ws.get(t)||0)+1;Ws.set(t,r),Ms&&Ms.register(e,t,e)}function fh(e){Ms&&Ms.unregister(e)}function Da(e,t,r=[],i=function(){}){let a=!1;const s=new Proxy(i,{get(n,o){if(fs(a),o===nh)return()=>{fh(s),Np(e),t.clear(),a=!0};if(o==="then"){if(r.length===0)return{then:()=>s};const f=Xr(e,t,{type:vt.GET,path:r.map(p=>p.toString())}).then(Pr);return f.then.bind(f)}return Da(e,t,[...r,o])},set(n,o,f){fs(a);const[p,c]=qs(f);return Xr(e,t,{type:vt.SET,path:[...r,o].map(m=>m.toString()),value:p},c).then(Pr)},apply(n,o,f){fs(a);const p=r[r.length-1];if(p===rh)return Xr(e,t,{type:vt.ENDPOINT}).then(Pr);if(p==="bind")return Da(e,t,r.slice(0,-1));const[c,m]=Yo(f);return Xr(e,t,{type:vt.APPLY,path:r.map(h=>h.toString()),argumentList:c},m).then(Pr)},construct(n,o){fs(a);const[f,p]=Yo(o);return Xr(e,t,{type:vt.CONSTRUCT,path:r.map(c=>c.toString()),argumentList:f},p).then(Pr)}});return lh(s,e),s}function ph(e){return Array.prototype.concat.apply([],e)}function Yo(e){const t=e.map(qs);return[t.map(r=>r[0]),ph(t.map(r=>r[1]))]}const Up=new WeakMap;function ch(e,t){return Up.set(e,t),e}function Wp(e){return Object.assign(e,{[Fp]:!0})}function uh(e,t=globalThis,r="*"){return{postMessage:(i,a)=>e.postMessage(i,r,a),addEventListener:t.addEventListener.bind(t),removeEventListener:t.removeEventListener.bind(t)}}function qs(e){for(const[t,r]of qt)if(r.canHandle(e)){const[i,a]=r.serialize(e);return[{type:Us.HANDLER,name:t,value:i},a]}return[{type:Us.RAW,value:e},Up.get(e)||[]]}function Pr(e){switch(e.type){case Us.HANDLER:return qt.get(e.name).deserialize(e.value);case Us.RAW:return e.value}}function Xr(e,t,r,i){return new Promise(a=>{const s=dh();t.set(s,a),e.start&&e.start(),e.postMessage({id:s,...r},i)})}function dh(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}function hh(e){const t=new WeakMap;return{postMessage:e.postMessage.bind(e),addEventListener:(r,i)=>{const a=s=>{"handleEvent"in i?i.handleEvent({data:s}):i({data:s})};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 mh=[Error,EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError,AggregateError,globalThis.DOMException,globalThis.AssertionError,globalThis.SystemError].filter(Boolean).map(e=>[e.name,e]),yh=new Map(mh);class lo extends Error{constructor(t){super(lo._prepareSuperMessage(t)),this.name="NonError"}static _prepareSuperMessage(t){try{return JSON.stringify(t)}catch{return String(t)}}}const gh=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0},{property:"cause",enumerable:!1},{property:"errors",enumerable:!1}],Ha=new WeakSet,_h=e=>{Ha.add(e);const t=e.toJSON();return Ha.delete(e),t},Mp=e=>{const t=yh.get(e)??Error;return t===AggregateError?new t([]):new t},fo=({from:e,seen:t,to:r,forceEnumerable:i,maxDepth:a,depth:s,useToJSON:n,serialize:o})=>{if(r||(Array.isArray(e)?r=[]:!o&&Xo(e)?r=Mp(e.name):r={}),t.push(e),s>=a)return r;if(n&&typeof e.toJSON=="function"&&!Ha.has(e))return _h(e);const f=p=>fo({from:p,seen:[...t],forceEnumerable:i,maxDepth:a,depth:s,useToJSON:n,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])){s++,r[p]=f(e[p]);continue}r[p]="[Circular]"}}if(o||r instanceof Error)for(const{property:p,enumerable:c}of gh)e[p]!==void 0&&e[p]!==null&&Object.defineProperty(r,p,{value:Xo(e[p])||Array.isArray(e[p])?f(e[p]):e[p],enumerable:i?!0:c,configurable:!0,writable:!0});return r};function wh(e,t={}){const{maxDepth:r=Number.POSITIVE_INFINITY,useToJSON:i=!0}=t;return typeof e=="object"&&e!==null?fo({from:e,seen:[],forceEnumerable:!0,maxDepth:r,depth:0,useToJSON:i,serialize:!0}):typeof e=="function"?`[Function: ${e.name||"anonymous"}]`:e}function bh(e,t={}){const{maxDepth:r=Number.POSITIVE_INFINITY}=t;return e instanceof Error?e:vh(e)?fo({from:e,seen:[],to:Mp(e.name),maxDepth:r,depth:0,serialize:!1}):new lo(e)}function Xo(e){return!!e&&typeof e=="object"&&typeof e.name=="string"&&typeof e.message=="string"&&typeof e.stack=="string"}function vh(e){return!!e&&typeof e=="object"&&typeof e.message=="string"&&!Array.isArray(e)}function qp(e,t=void 0){Sh();let r;(typeof document>"u"?require("url").pathToFileURL(__filename).href:sr&&sr.tagName.toUpperCase()==="SCRIPT"&&sr.src||new URL("index.cjs",document.baseURI).href).startsWith("file://")?r=hh(e):r=e instanceof Worker?e:uh(e,t);const a=oo(r),s=Kp(a);return new Proxy(s,{get:(n,o)=>o==="isConnected"?async()=>{for(;;)try{await xh(a.isConnected(),200);break}catch{}}:a[o]})}async function xh(e,t){return new Promise((r,i)=>{setTimeout(i,t),e.then(r)})}let Jo=!1;function Sh(){if(Jo)return;Jo=!0,qt.set("EVENT",{canHandle:r=>r instanceof CustomEvent,serialize:r=>[{detail:r.detail},[]],deserialize:r=>r}),qt.set("FUNCTION",{canHandle:r=>typeof r=="function",serialize(r){const{port1:i,port2:a}=new MessageChannel;return ao(r,i),[a,[a]]},deserialize(r){return r.start(),oo(r)}}),qt.set("MESSAGE_PORT",{canHandle:r=>r instanceof MessagePort,serialize(r){return[r,[r]]},deserialize(r){return r}}),qt.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 Pn.fromRawData(r)}});const e=qt.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},qt.set("StreamedPHPResponse",{canHandle:r=>r instanceof Ei,serialize(r){const i=kh(),a=Eh(r.exitCode);if(i)return[{__type:"StreamedPHPResponse",headers:r.headersStream,stdout:r.stdout,stderr:r.stderr,exitCodePort:a},[a]];const s=Ti(r.headersStream),n=Ti(r.stdout),o=Ti(r.stderr);return[{__type:"StreamedPHPResponse",headersPort:s,stdoutPort:n,stderrPort:o,exitCodePort:a},[s,n,o,a]]},deserialize(r){if(r.headers&&r.stdout&&r.stderr){const o=Qo(r.exitCodePort);return new Ei(r.headers,r.stdout,r.stderr,o)}const i=Ci(r.headersPort),a=Ci(r.stdoutPort),s=Ci(r.stderrPort),n=Qo(r.exitCodePort);return new Ei(i,a,s,n)}})}function kh(){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 Ti(e){const{port1:t,port2:r}=new MessageChannel;return(async()=>{const i=e.getReader();try{for(;;){const{done:a,value:s}=await i.read();if(a){try{t.postMessage({t:"close"})}catch{}try{t.close()}catch{}break}if(s){const n=s.byteOffset===0&&s.byteLength===s.buffer.byteLength?s:s.slice(),o=n.buffer;try{t.postMessage({t:"chunk",b:o},[o])}catch{t.postMessage({t:"chunk",b:n.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 Ci(e){return new ReadableStream({start(t){const r=a=>{const s=a.data;if(s)switch(s.t){case"chunk":t.enqueue(new Uint8Array(s.b));break;case"close":t.close(),i();break;case"error":t.error(new Error(s.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 Eh(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 Qo(e){return new Promise((t,r)=>{const i=s=>{const n=s.data;n&&(n.t==="resolve"?(a(),t(n.v)):n.t==="reject"&&(a(),r(new Error(n.m||""))))},a=()=>{var s;try{(s=e.removeEventListener)==null||s.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",s=>i({data:s})):e.onmessage=i,typeof e.start=="function"&&e.start()})}const Ph=qt.get("throw"),Ah={canHandle:Ph.canHandle,serialize:({value:e})=>{let t;return e instanceof Error?(t={isError:!0,value:wh(e)},t.value.originalErrorClassName=e.constructor.name):t={isError:!1,value:e},[t,[]]},deserialize:e=>{if(e.isError){const t=bh(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}};qt.set("throw",Ah);function Kp(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]:Kp(t[r]);case"undefined":case"number":case"string":return t[r];default:return Wp(t[r])}}})}new un({concurrency:15});new un({concurrency:10});function Th(e){let t=[e];return{next(){return Promise.resolve({done:t.length===0,value:t.pop()})},return(){return t=[],{}},[Symbol.asyncIterator](){return this}}}function zp(e){return e[Symbol.asyncIterator]?e[Symbol.asyncIterator]():e[Symbol.iterator]?e[Symbol.iterator]():e.next?e:Th(e)}class Gp{constructor(t){if(typeof Buffer>"u")throw new Error("Missing Buffer dependency");this.stream=zp(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>Ch(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 Ch(e){return e.reduce((t,r)=>t+r.length,0)}function Oh(e,t){const r=t.toString(16);return"0".repeat(e-r.length)+r}class Ye{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=Oh(4,r);return Buffer.concat([Buffer.from(i,"utf8"),t])}static streamReader(t){const r=new Gp(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 s=await r.read(a-4);return s??!0}catch(a){return t.error=a,!0}}}}class dn 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 dn(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 Ee extends dn{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=Ee.code,this.data={message:t}}}Ee.code="InternalError";class Vn extends dn{constructor(t){super(`The filepath "${t}" contains unsafe character sequences`),this.code=this.name=Vn.code,this.data={filepath:t}}}Vn.code="UnsafeFilepathError";function Vp(e,t){return-(e<t)||+(e>t)}function Zp(e,t){return Vp(e.path,t.path)}function Lh(e,t){return Vp(el(e),el(t))}function el(e){return e.mode==="040000"?e.path+"/":e.path}function Yp(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 Ee(`Unexpected GitTree entry mode: ${e}`)}function Rh(e){const t=[];let r=0;for(;r<e.length;){const i=e.indexOf(32,r);if(i===-1)throw new Ee(`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 Ee(`GitTree: Error parsing buffer at byte location ${r}: Could not find the next null character.`);let s=e.slice(r,i).toString("utf8");s==="40000"&&(s="040000");const n=Yp(s),o=e.slice(i+1,a).toString("utf8");if(o.includes("\\")||o.includes("/"))throw new Vn(o);const f=e.slice(a+1,a+21).toString("hex");r=a+21,t.push({mode:s,path:o,oid:f,type:n})}return t}function Ih(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 Ee(`Could not understand file mode: ${e}`)}function $h(e){return!e.oid&&e.sha&&(e.oid=e.sha),e.mode=Ih(e.mode),e.type||(e.type=Yp(e.mode)),e}class po{constructor(t){if(Buffer.isBuffer(t))this._entries=Rh(t);else if(Array.isArray(t))this._entries=t.map($h);else throw new Ee("invalid type passed to GitTree constructor");this._entries.sort(Zp)}static from(t){return new po(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(
|
|
18
|
-
`,e}function
|
|
16
|
+
*/const Ks={RAW:"RAW",HANDLER:"HANDLER"},xt={GET:"GET",SET:"SET",APPLY:"APPLY",CONSTRUCT:"CONSTRUCT",ENDPOINT:"ENDPOINT",RELEASE:"RELEASE"},qp=e=>typeof e=="object"&&e!==null||typeof e=="function",Ah={canHandle:e=>qp(e)&&e[Mp],serialize(e){const{port1:t,port2:r}=new MessageChannel;return uo(e,t),[r,[r]]},deserialize(e){return e.start(),ho(e)}},Th={canHandle:e=>qp(e)&&Os 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}},zt=new Map([["proxy",Ah],["throw",Th]]);function Oh(e,t){for(const r of e)if(t===r||r==="*"||r instanceof RegExp&&r.test(t))return!0;return!1}function uo(e,t=globalThis,r=["*"],i){t.addEventListener("message",function a(s){if(!s||!s.data)return;if(!Oh(r,s.origin)){console.warn(`Invalid origin '${s.origin}' for comlink proxy`);return}const{id:n,type:o,path:l}={path:[],...s.data},p=(s.data.argumentList||[]).map(Ar);let c;try{const h=l.slice(0,-1).reduce((_,T)=>_[T],e),m=l.reduce((_,T)=>_[T],e);switch(o){case xt.GET:c=m;break;case xt.SET:h[l.slice(-1)[0]]=Ar(s.data.value),c=!0;break;case xt.APPLY:c=m.apply(h,p);break;case xt.CONSTRUCT:{const _=new m(...p);c=Vp(_)}break;case xt.ENDPOINT:{const{port1:_,port2:T}=new MessageChannel;uo(e,T),c=Ih(_,[_])}break;case xt.RELEASE:c=void 0;break;default:return}}catch(h){c={value:h,[Os]:0}}Promise.resolve(c).catch(h=>({value:h,[Os]:0})).then(h=>{const[m,_]=Vs(h);t.postMessage({...m,id:n},_),o===xt.RELEASE&&(t.removeEventListener("message",a),Kp(t),Ri in e&&typeof e[Ri]=="function"&&e[Ri]())}).catch(()=>{const[h,m]=Vs({value:new TypeError("Unserializable return value"),[Os]:0});t.postMessage({...h,id:n},m)}).finally(()=>{})}),t.start&&t.start()}function Ch(e){return e.constructor.name==="MessagePort"}function Kp(e){Ch(e)&&e.close()}function ho(e,t){const r=new Map;return e.addEventListener("message",function(a){const{data:s}=a;if(!s||!s.id)return;const n=r.get(s.id);if(n)try{n(s)}finally{r.delete(s.id)}}),Wa(e,r,[],t)}function cs(e){if(e)throw new Error("Proxy has been released and is not useable")}function zp(e){return Qr(e,new Map,{type:xt.RELEASE}).then(()=>{Kp(e)})}const zs=new WeakMap,Gs="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(zs.get(e)||0)-1;zs.set(e,t),t===0&&zp(e)});function Lh(e,t){const r=(zs.get(t)||0)+1;zs.set(t,r),Gs&&Gs.register(e,t,e)}function $h(e){Gs&&Gs.unregister(e)}function Wa(e,t,r=[],i=function(){}){let a=!1;const s=new Proxy(i,{get(n,o){if(cs(a),o===Ph)return()=>{$h(s),zp(e),t.clear(),a=!0};if(o==="then"){if(r.length===0)return{then:()=>s};const l=Qr(e,t,{type:xt.GET,path:r.map(p=>p.toString())}).then(Ar);return l.then.bind(l)}return Wa(e,t,[...r,o])},set(n,o,l){cs(a);const[p,c]=Vs(l);return Qr(e,t,{type:xt.SET,path:[...r,o].map(h=>h.toString()),value:p},c).then(Ar)},apply(n,o,l){cs(a);const p=r[r.length-1];if(p===kh)return Qr(e,t,{type:xt.ENDPOINT}).then(Ar);if(p==="bind")return Wa(e,t,r.slice(0,-1));const[c,h]=tl(l);return Qr(e,t,{type:xt.APPLY,path:r.map(m=>m.toString()),argumentList:c},h).then(Ar)},construct(n,o){cs(a);const[l,p]=tl(o);return Qr(e,t,{type:xt.CONSTRUCT,path:r.map(c=>c.toString()),argumentList:l},p).then(Ar)}});return Lh(s,e),s}function Rh(e){return Array.prototype.concat.apply([],e)}function tl(e){const t=e.map(Vs);return[t.map(r=>r[0]),Rh(t.map(r=>r[1]))]}const Gp=new WeakMap;function Ih(e,t){return Gp.set(e,t),e}function Vp(e){return Object.assign(e,{[Mp]:!0})}function Dh(e,t=globalThis,r="*"){return{postMessage:(i,a)=>e.postMessage(i,r,a),addEventListener:t.addEventListener.bind(t),removeEventListener:t.removeEventListener.bind(t)}}function Vs(e){for(const[t,r]of zt)if(r.canHandle(e)){const[i,a]=r.serialize(e);return[{type:Ks.HANDLER,name:t,value:i},a]}return[{type:Ks.RAW,value:e},Gp.get(e)||[]]}function Ar(e){switch(e.type){case Ks.HANDLER:return zt.get(e.name).deserialize(e.value);case Ks.RAW:return e.value}}function Qr(e,t,r,i){return new Promise(a=>{const s=Hh();t.set(s,a),e.start&&e.start(),e.postMessage({id:s,...r},i)})}function Hh(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}function Fh(e){const t=new WeakMap;return{postMessage:e.postMessage.bind(e),addEventListener:(r,i)=>{const a=s=>{"handleEvent"in i?i.handleEvent({data:s}):i({data:s})};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 Bh=[Error,EvalError,RangeError,ReferenceError,SyntaxError,TypeError,URIError,AggregateError,globalThis.DOMException,globalThis.AssertionError,globalThis.SystemError].filter(Boolean).map(e=>[e.name,e]),Uh=new Map(Bh);class mo extends Error{constructor(t){super(mo._prepareSuperMessage(t)),this.name="NonError"}static _prepareSuperMessage(t){try{return JSON.stringify(t)}catch{return String(t)}}}const Nh=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0},{property:"cause",enumerable:!1},{property:"errors",enumerable:!1}],Ma=new WeakSet,jh=e=>{Ma.add(e);const t=e.toJSON();return Ma.delete(e),t},Zp=e=>{const t=Uh.get(e)??Error;return t===AggregateError?new t([]):new t},yo=({from:e,seen:t,to:r,forceEnumerable:i,maxDepth:a,depth:s,useToJSON:n,serialize:o})=>{if(r||(Array.isArray(e)?r=[]:!o&&rl(e)?r=Zp(e.name):r={}),t.push(e),s>=a)return r;if(n&&typeof e.toJSON=="function"&&!Ma.has(e))return jh(e);const l=p=>yo({from:p,seen:[...t],forceEnumerable:i,maxDepth:a,depth:s,useToJSON:n,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])){s++,r[p]=l(e[p]);continue}r[p]="[Circular]"}}if(o||r instanceof Error)for(const{property:p,enumerable:c}of Nh)e[p]!==void 0&&e[p]!==null&&Object.defineProperty(r,p,{value:rl(e[p])||Array.isArray(e[p])?l(e[p]):e[p],enumerable:i?!0:c,configurable:!0,writable:!0});return r};function Wh(e,t={}){const{maxDepth:r=Number.POSITIVE_INFINITY,useToJSON:i=!0}=t;return typeof e=="object"&&e!==null?yo({from:e,seen:[],forceEnumerable:!0,maxDepth:r,depth:0,useToJSON:i,serialize:!0}):typeof e=="function"?`[Function: ${e.name||"anonymous"}]`:e}function Mh(e,t={}){const{maxDepth:r=Number.POSITIVE_INFINITY}=t;return e instanceof Error?e:qh(e)?yo({from:e,seen:[],to:Zp(e.name),maxDepth:r,depth:0,serialize:!1}):new mo(e)}function rl(e){return!!e&&typeof e=="object"&&typeof e.name=="string"&&typeof e.message=="string"&&typeof e.stack=="string"}function qh(e){return!!e&&typeof e=="object"&&typeof e.message=="string"&&!Array.isArray(e)}function Yp(e,t=void 0){zh();let r;(typeof document>"u"?require("url").pathToFileURL(__filename).href:ir&&ir.tagName.toUpperCase()==="SCRIPT"&&ir.src||new URL("index.cjs",document.baseURI).href).startsWith("file://")?r=Fh(e):r=e instanceof Worker?e:Dh(e,t);const a=ho(r),s=Xp(a);return new Proxy(s,{get:(n,o)=>o==="isConnected"?async()=>{for(;;)try{await Kh(a.isConnected(),200);break}catch{}}:a[o]})}async function Kh(e,t){return new Promise((r,i)=>{setTimeout(i,t),e.then(r)})}let nl=!1;function zh(){if(nl)return;nl=!0,zt.set("EVENT",{canHandle:r=>r instanceof CustomEvent,serialize:r=>[{detail:r.detail},[]],deserialize:r=>r}),zt.set("FUNCTION",{canHandle:r=>typeof r=="function",serialize(r){const{port1:i,port2:a}=new MessageChannel;return uo(r,i),[a,[a]]},deserialize(r){return r.start(),ho(r)}}),zt.set("MESSAGE_PORT",{canHandle:r=>r instanceof MessagePort,serialize(r){return[r,[r]]},deserialize(r){return r}}),zt.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){const i=r.toRawData(),a=[];return i.bytes.buffer.byteLength>0&&a.push(i.bytes.buffer),[i,a]},deserialize(r){return On.fromRawData(r)}});const e=zt.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},zt.set("StreamedPHPResponse",{canHandle:r=>r instanceof Li,serialize(r){const i=Gh(),a=Vh(r.exitCode);if(i)return[{__type:"StreamedPHPResponse",headers:r.headersStream,stdout:r.stdout,stderr:r.stderr,exitCodePort:a},[a]];const s=Ii(r.headersStream),n=Ii(r.stdout),o=Ii(r.stderr);return[{__type:"StreamedPHPResponse",headersPort:s,stdoutPort:n,stderrPort:o,exitCodePort:a},[s,n,o,a]]},deserialize(r){if(r.headers&&r.stdout&&r.stderr){const o=sl(r.exitCodePort);return new Li(r.headers,r.stdout,r.stderr,o)}const i=Di(r.headersPort),a=Di(r.stdoutPort),s=Di(r.stderrPort),n=sl(r.exitCodePort);return new Li(i,a,s,n)}})}function Gh(){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 Ii(e){const{port1:t,port2:r}=new MessageChannel;return(async()=>{const i=e.getReader();try{for(;;){const{done:a,value:s}=await i.read();if(a){try{t.postMessage({t:"close"})}catch{}try{t.close()}catch{}break}if(s){const n=s.byteOffset===0&&s.byteLength===s.buffer.byteLength?s:s.slice(),o=n.buffer;try{t.postMessage({t:"chunk",b:o},[o])}catch{t.postMessage({t:"chunk",b:n.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 Di(e){return new ReadableStream({start(t){const r=a=>{const s=a.data;if(s)switch(s.t){case"chunk":t.enqueue(new Uint8Array(s.b));break;case"close":t.close(),i();break;case"error":t.error(new Error(s.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 Vh(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 sl(e){return new Promise((t,r)=>{const i=s=>{const n=s.data;n&&(n.t==="resolve"?(a(),t(n.v)):n.t==="reject"&&(a(),r(new Error(n.m||""))))},a=()=>{var s;try{(s=e.removeEventListener)==null||s.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",s=>i({data:s})):e.onmessage=i,typeof e.start=="function"&&e.start()})}const Zh=zt.get("throw"),Yh={canHandle:Zh.canHandle,serialize:({value:e})=>{let t;return e instanceof Error?(t={isError:!0,value:Wh(e)},t.value.originalErrorClassName=e.constructor.name):t={isError:!1,value:e},[t,[]]},deserialize:e=>{if(e.isError){const t=Mh(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}};zt.set("throw",Yh);function Xp(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]:Xp(t[r]);case"undefined":case"number":case"string":return t[r];default:return Vp(t[r])}}})}new hn({concurrency:15});new hn({concurrency:10});function Xh(e){let t=[e];return{next(){return Promise.resolve({done:t.length===0,value:t.pop()})},return(){return t=[],{}},[Symbol.asyncIterator](){return this}}}function Jp(e){return e[Symbol.asyncIterator]?e[Symbol.asyncIterator]():e[Symbol.iterator]?e[Symbol.iterator]():e.next?e:Xh(e)}class Qp{constructor(t){if(typeof Buffer>"u")throw new Error("Missing Buffer dependency");this.stream=Jp(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>Jh(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 Jh(e){return e.reduce((t,r)=>t+r.length,0)}function Qh(e,t){const r=t.toString(16);return"0".repeat(e-r.length)+r}class Ye{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=Qh(4,r);return Buffer.concat([Buffer.from(i,"utf8"),t])}static streamReader(t){const r=new Qp(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 s=await r.read(a-4);return s??!0}catch(a){return t.error=a,!0}}}}class yn 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 yn(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 ke extends yn{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=ke.code,this.data={message:t}}}ke.code="InternalError";class Yn extends yn{constructor(t){super(`The filepath "${t}" contains unsafe character sequences`),this.code=this.name=Yn.code,this.data={filepath:t}}}Yn.code="UnsafeFilepathError";function ec(e,t){return-(e<t)||+(e>t)}function tc(e,t){return ec(e.path,t.path)}function em(e,t){return ec(il(e),il(t))}function il(e){return e.mode==="040000"?e.path+"/":e.path}function rc(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 ke(`Unexpected GitTree entry mode: ${e}`)}function tm(e){const t=[];let r=0;for(;r<e.length;){const i=e.indexOf(32,r);if(i===-1)throw new ke(`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 ke(`GitTree: Error parsing buffer at byte location ${r}: Could not find the next null character.`);let s=e.slice(r,i).toString("utf8");s==="40000"&&(s="040000");const n=rc(s),o=e.slice(i+1,a).toString("utf8");if(o.includes("\\")||o.includes("/"))throw new Yn(o);const l=e.slice(a+1,a+21).toString("hex");r=a+21,t.push({mode:s,path:o,oid:l,type:n})}return t}function rm(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 ke(`Could not understand file mode: ${e}`)}function nm(e){return!e.oid&&e.sha&&(e.oid=e.sha),e.mode=rm(e.mode),e.type||(e.type=rc(e.mode)),e}class _o{constructor(t){if(Buffer.isBuffer(t))this._entries=tm(t);else if(Array.isArray(t))this._entries=t.map(nm);else throw new ke("invalid type passed to GitTree constructor");this._entries.sort(tc)}static from(t){return new _o(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(em),Buffer.concat(t.map(r=>{const i=Buffer.from(r.mode.replace(/^0/,"")),a=Buffer.from(" "),s=Buffer.from(r.path,"utf8"),n=Buffer.from([0]),o=Buffer.from(r.oid,"hex");return Buffer.concat([i,a,s,n,o])}))}entries(){return this._entries}*[Symbol.iterator](){for(const t of this._entries)yield t}}function qa({name:e,email:t,timestamp:r,timezoneOffset:i}){return i=sm(i),`${e} <${t}> ${r} ${i}`}function sm(e){const t=im(am(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 im(e){return Math.sign(e)||(Object.is(e,-0)?-1:1)}function am(e){return e===0?e:-e}function nr(e){return e=e.replace(/\r/g,""),e=e.replace(/^\n+/,""),e=e.replace(/\n+$/,"")+`
|
|
18
|
+
`,e}function Zs(e){const[,t,r,i,a]=e.match(/^(.*) <(.*)> (.*) (.*)$/);return{name:t,email:r,timestamp:Number(i),timezoneOffset:om(a)}}function om(e){let[,t,r,i]=e.match(/(\+|-)(\d\d)(\d\d)/);return i=(t==="+"?1:-1)*(Number(r)*60+Number(i)),lm(i)}function lm(e){return e===0?e:-e}class Cn{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=Cn.render(t);else throw new ke("invalid type passed to GitAnnotatedTag constructor")}static from(t){return new Cn(t)}static render(t){return`object ${t.object}
|
|
19
19
|
type ${t.type}
|
|
20
20
|
tag ${t.tag}
|
|
21
|
-
tagger ${
|
|
21
|
+
tagger ${qa(t.tagger)}
|
|
22
22
|
|
|
23
23
|
${t.message}
|
|
24
24
|
${t.gpgsig?t.gpgsig:""}`}justHeaders(){return this._tag.slice(0,this._tag.indexOf(`
|
|
@@ -27,93 +27,111 @@ ${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 s=a.slice(0,a.indexOf(" ")),n=a.slice(a.indexOf(" ")+1);Array.isArray(i[s])?i[s].push(n):i[s]=n}return i.tagger&&(i.tagger=
|
|
30
|
+
`+a.slice(1):r.push(a);const i={};for(const a of r){const s=a.slice(0,a.indexOf(" ")),n=a.slice(a.indexOf(" ")+1);Array.isArray(i[s])?i[s].push(n):i[s]=n}return i.tagger&&(i.tagger=Zs(i.tagger)),i.committer&&(i.committer=Zs(i.committer)),i}withoutSignature(){const t=nr(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
|
|
34
|
-
`}toObject(){return Buffer.from(this._tag,"utf8")}static async sign(t,r,i){const a=t.payload();let{signature:s}=await r({payload:a,secretKey:i});s=
|
|
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 nr(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:s}=await r({payload:a,secretKey:i});s=nr(s);const n=a+s;return Cn.from(n)}}function Hi(e){return e.trim().split(`
|
|
35
35
|
`).map(t=>" "+t).join(`
|
|
36
36
|
`)+`
|
|
37
|
-
`}function
|
|
37
|
+
`}function fm(e){return e.split(`
|
|
38
38
|
`).map(t=>t.replace(/^ /,"")).join(`
|
|
39
|
-
`)}class
|
|
40
|
-
gpgsig`+
|
|
41
|
-
`+a);return new
|
|
39
|
+
`)}class wt{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=wt.render(t);else throw new ke("invalid type passed to GitCommit constructor")}static fromPayloadSignature({payload:t,signature:r}){const i=wt.justHeaders(t),a=wt.justMessage(t),s=nr(i+`
|
|
40
|
+
gpgsig`+Hi(r)+`
|
|
41
|
+
`+a);return new wt(s)}static from(t){return new wt(t)}toObject(){return Buffer.from(this._commit,"utf8")}headers(){return this.parseHeaders()}message(){return wt.justMessage(this._commit)}parse(){return Object.assign({message:this.message()},this.headers())}static justMessage(t){return nr(t.slice(t.indexOf(`
|
|
42
42
|
|
|
43
43
|
`)+2))}static justHeaders(t){return t.slice(0,t.indexOf(`
|
|
44
44
|
|
|
45
|
-
`))}parseHeaders(){const t=
|
|
45
|
+
`))}parseHeaders(){const t=wt.justHeaders(this._commit).split(`
|
|
46
46
|
`),r=[];for(const a of t)a[0]===" "?r[r.length-1]+=`
|
|
47
|
-
`+a.slice(1):r.push(a);const i={parent:[]};for(const a of r){const s=a.slice(0,a.indexOf(" ")),n=a.slice(a.indexOf(" ")+1);Array.isArray(i[s])?i[s].push(n):i[s]=n}return i.author&&(i.author=
|
|
47
|
+
`+a.slice(1):r.push(a);const i={parent:[]};for(const a of r){const s=a.slice(0,a.indexOf(" ")),n=a.slice(a.indexOf(" ")+1);Array.isArray(i[s])?i[s].push(n):i[s]=n}return i.author&&(i.author=Zs(i.author)),i.committer&&(i.committer=Zs(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
|
|
50
|
-
`}const i=t.author;r+=`author ${
|
|
51
|
-
`;const a=t.committer||t.author;return r+=`committer ${
|
|
52
|
-
`,t.gpgsig&&(r+="gpgsig"+
|
|
53
|
-
`+
|
|
49
|
+
`,t.parent){if(t.parent.length===void 0)throw new ke("commit 'parent' property should be an array");for(const s of t.parent)r+=`parent ${s}
|
|
50
|
+
`}const i=t.author;r+=`author ${qa(i)}
|
|
51
|
+
`;const a=t.committer||t.author;return r+=`committer ${qa(a)}
|
|
52
|
+
`,t.gpgsig&&(r+="gpgsig"+Hi(t.gpgsig)),r}static render(t){return wt.renderHeaders(t)+`
|
|
53
|
+
`+nr(t.message)}render(){return this._commit}withoutSignature(){const t=nr(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
|
|
57
|
-
`+i)}isolateSignature(){const t=this._commit.slice(this._commit.indexOf("-----BEGIN PGP SIGNATURE-----"),this._commit.indexOf("-----END PGP SIGNATURE-----")+27);return
|
|
58
|
-
gpgsig`+
|
|
59
|
-
`+s;return _t.from(f)}}var Xp={};/*! 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 A=0,L=new Array(256),S=0;S!=256;++S)A=S,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,L[S]=A;return typeof Int32Array<"u"?new Int32Array(L):L}var i=r();function a(A){var L=0,S=0,P=0,$=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(P=0;P!=256;++P)$[P]=A[P];for(P=0;P!=256;++P)for(S=A[P],L=256+P;L<4096;L+=256)S=$[L]=S>>>8^A[S&255];var I=[];for(P=1;P!=16;++P)I[P-1]=typeof Int32Array<"u"?$.subarray(P*256,P*256+256):$.slice(P*256,P*256+256);return I}var s=a(i),n=s[0],o=s[1],f=s[2],p=s[3],c=s[4],m=s[5],h=s[6],g=s[7],R=s[8],y=s[9],_=s[10],b=s[11],O=s[12],k=s[13],D=s[14];function T(A,L){for(var S=L^-1,P=0,$=A.length;P<$;)S=S>>>8^i[(S^A.charCodeAt(P++))&255];return~S}function H(A,L){for(var S=L^-1,P=A.length-15,$=0;$<P;)S=D[A[$++]^S&255]^k[A[$++]^S>>8&255]^O[A[$++]^S>>16&255]^b[A[$++]^S>>>24]^_[A[$++]]^y[A[$++]]^R[A[$++]]^g[A[$++]]^h[A[$++]]^m[A[$++]]^c[A[$++]]^p[A[$++]]^f[A[$++]]^o[A[$++]]^n[A[$++]]^i[A[$++]];for(P+=15;$<P;)S=S>>>8^i[(S^A[$++])&255];return~S}function E(A,L){for(var S=L^-1,P=0,$=A.length,I=0,j=0;P<$;)I=A.charCodeAt(P++),I<128?S=S>>>8^i[(S^I)&255]:I<2048?(S=S>>>8^i[(S^(192|I>>6&31))&255],S=S>>>8^i[(S^(128|I&63))&255]):I>=55296&&I<57344?(I=(I&1023)+64,j=A.charCodeAt(P++)&1023,S=S>>>8^i[(S^(240|I>>8&7))&255],S=S>>>8^i[(S^(128|I>>2&63))&255],S=S>>>8^i[(S^(128|j>>6&15|(I&3)<<4))&255],S=S>>>8^i[(S^(128|j&63))&255]):(S=S>>>8^i[(S^(224|I>>12&15))&255],S=S>>>8^i[(S^(128|I>>6&63))&255],S=S>>>8^i[(S^(128|I&63))&255]);return~S}t.table=i,t.bstr=T,t.buf=H,t.str=E})})(Xp);const Uh=io(Xp);class Wh{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"),s=t.slice(r+1,i).toString("utf8"),n=t.length-(i+1);if(parseInt(s)!==n)throw new Ee(`Length mismatch: expected ${s} bytes but got ${n} instead.`);return{type:a,object:Buffer.from(t.slice(i+1))}}}class Kt{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 Mh(e,t){const r=new Kt(e),i=tl(r);if(i!==t.byteLength)throw new Ee(`applyDelta expected source buffer to be ${i} bytes but the provided buffer was ${t.length} bytes`);const a=tl(r);let s;const n=nl(r,t);if(n.byteLength===a)s=n;else{s=Buffer.alloc(a);const o=new Kt(s);for(o.copy(n);!r.eof();)o.copy(nl(r,t));const f=o.tell();if(a!==f)throw new Ee(`applyDelta expected target buffer to be ${a} bytes but the resulting buffer was ${f} bytes`)}return s}function tl(e){let t=0,r=0,i=null;do i=e.readUInt8(),t|=(i&127)<<r,r+=7;while(i&128);return t}function rl(e,t,r){let i=0,a=0;for(;r--;)t&1&&(i|=e.readUInt8()<<a),t>>=1,a+=8;return i}function nl(e,t){const r=e.readUInt8(),i=128,a=15,s=112;if(r&i){const n=rl(e,r&a,4);let o=rl(e,(r&s)>>4,3);return o===0&&(o=65536),t.slice(n,n+o)}else return e.slice(r)}var or={};(function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function r(s,n){return Object.prototype.hasOwnProperty.call(s,n)}e.assign=function(s){for(var n=Array.prototype.slice.call(arguments,1);n.length;){var o=n.shift();if(o){if(typeof o!="object")throw new TypeError(o+"must be non-object");for(var f in o)r(o,f)&&(s[f]=o[f])}}return s},e.shrinkBuf=function(s,n){return s.length===n?s:s.subarray?s.subarray(0,n):(s.length=n,s)};var i={arraySet:function(s,n,o,f,p){if(n.subarray&&s.subarray){s.set(n.subarray(o,o+f),p);return}for(var c=0;c<f;c++)s[p+c]=n[o+c]},flattenChunks:function(s){var n,o,f,p,c,m;for(f=0,n=0,o=s.length;n<o;n++)f+=s[n].length;for(m=new Uint8Array(f),p=0,n=0,o=s.length;n<o;n++)c=s[n],m.set(c,p),p+=c.length;return m}},a={arraySet:function(s,n,o,f,p){for(var c=0;c<f;c++)s[p+c]=n[o+c]},flattenChunks:function(s){return[].concat.apply([],s)}};e.setTyped=function(s){s?(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)})(or);var Zn={},Xt={},hn={},qh=or,Kh=4,sl=0,il=1,zh=2;function mn(e){for(var t=e.length;--t>=0;)e[t]=0}var Gh=0,Jp=1,Vh=2,Zh=3,Yh=258,co=29,Yn=256,$n=Yn+1+co,rn=30,uo=19,Qp=2*$n+1,Cr=15,Li=16,Xh=7,ho=256,ec=16,tc=17,rc=18,Ba=[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],Ts=[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],Jh=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],nc=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Qh=512,nr=new Array(($n+2)*2);mn(nr);var Tn=new Array(rn*2);mn(Tn);var Dn=new Array(Qh);mn(Dn);var Hn=new Array(Yh-Zh+1);mn(Hn);var mo=new Array(co);mn(mo);var zs=new Array(rn);mn(zs);function Ri(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 sc,ic,ac;function Ii(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function oc(e){return e<256?Dn[e]:Dn[256+(e>>>7)]}function Fn(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function dt(e,t,r){e.bi_valid>Li-r?(e.bi_buf|=t<<e.bi_valid&65535,Fn(e,e.bi_buf),e.bi_buf=t>>Li-e.bi_valid,e.bi_valid+=r-Li):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function zt(e,t,r){dt(e,r[t*2],r[t*2+1])}function lc(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function em(e){e.bi_valid===16?(Fn(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 tm(e,t){var r=t.dyn_tree,i=t.max_code,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,n=t.stat_desc.extra_bits,o=t.stat_desc.extra_base,f=t.stat_desc.max_length,p,c,m,h,g,R,y=0;for(h=0;h<=Cr;h++)e.bl_count[h]=0;for(r[e.heap[e.heap_max]*2+1]=0,p=e.heap_max+1;p<Qp;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]++,g=0,c>=o&&(g=n[c-o]),R=r[c*2],e.opt_len+=R*(h+g),s&&(e.static_len+=R*(a[c*2+1]+g)));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 fc(e,t,r){var i=new Array(Cr+1),a=0,s,n;for(s=1;s<=Cr;s++)i[s]=a=a+r[s-1]<<1;for(n=0;n<=t;n++){var o=e[n*2+1];o!==0&&(e[n*2]=lc(i[o]++,o))}}function rm(){var e,t,r,i,a,s=new Array(Cr+1);for(r=0,i=0;i<co-1;i++)for(mo[i]=r,e=0;e<1<<Ba[i];e++)Hn[r++]=i;for(Hn[r-1]=i,a=0,i=0;i<16;i++)for(zs[i]=a,e=0;e<1<<Ts[i];e++)Dn[a++]=i;for(a>>=7;i<rn;i++)for(zs[i]=a<<7,e=0;e<1<<Ts[i]-7;e++)Dn[256+a++]=i;for(t=0;t<=Cr;t++)s[t]=0;for(e=0;e<=143;)nr[e*2+1]=8,e++,s[8]++;for(;e<=255;)nr[e*2+1]=9,e++,s[9]++;for(;e<=279;)nr[e*2+1]=7,e++,s[7]++;for(;e<=287;)nr[e*2+1]=8,e++,s[8]++;for(fc(nr,$n+1,s),e=0;e<rn;e++)Tn[e*2+1]=5,Tn[e*2]=lc(e,5);sc=new Ri(nr,Ba,Yn+1,$n,Cr),ic=new Ri(Tn,Ts,0,rn,Cr),ac=new Ri(new Array(0),Jh,0,uo,Xh)}function pc(e){var t;for(t=0;t<$n;t++)e.dyn_ltree[t*2]=0;for(t=0;t<rn;t++)e.dyn_dtree[t*2]=0;for(t=0;t<uo;t++)e.bl_tree[t*2]=0;e.dyn_ltree[ho*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function cc(e){e.bi_valid>8?Fn(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 nm(e,t,r,i){cc(e),Fn(e,r),Fn(e,~r),qh.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function al(e,t,r,i){var a=t*2,s=r*2;return e[a]<e[s]||e[a]===e[s]&&i[t]<=i[r]}function $i(e,t,r){for(var i=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&al(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!al(t,i,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=i}function ol(e,t,r){var i,a,s=0,n,o;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+s*2]<<8|e.pending_buf[e.d_buf+s*2+1],a=e.pending_buf[e.l_buf+s],s++,i===0?zt(e,a,t):(n=Hn[a],zt(e,n+Yn+1,t),o=Ba[n],o!==0&&(a-=mo[n],dt(e,a,o)),i--,n=oc(i),zt(e,n,r),o=Ts[n],o!==0&&(i-=zs[n],dt(e,i,o)));while(s<e.last_lit);zt(e,ho,t)}function ja(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,s=t.stat_desc.elems,n,o,f=-1,p;for(e.heap_len=0,e.heap_max=Qp,n=0;n<s;n++)r[n*2]!==0?(e.heap[++e.heap_len]=f=n,e.depth[n]=0):r[n*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,n=e.heap_len>>1;n>=1;n--)$i(e,r,n);p=s;do n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],$i(e,r,1),o=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=o,r[p*2]=r[n*2]+r[o*2],e.depth[p]=(e.depth[n]>=e.depth[o]?e.depth[n]:e.depth[o])+1,r[n*2+1]=r[o*2+1]=p,e.heap[1]=p++,$i(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],tm(e,t),fc(r,f,e.bl_count)}function ll(e,t,r){var i,a=-1,s,n=t[0*2+1],o=0,f=7,p=4;for(n===0&&(f=138,p=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)s=n,n=t[(i+1)*2+1],!(++o<f&&s===n)&&(o<p?e.bl_tree[s*2]+=o:s!==0?(s!==a&&e.bl_tree[s*2]++,e.bl_tree[ec*2]++):o<=10?e.bl_tree[tc*2]++:e.bl_tree[rc*2]++,o=0,a=s,n===0?(f=138,p=3):s===n?(f=6,p=3):(f=7,p=4))}function fl(e,t,r){var i,a=-1,s,n=t[0*2+1],o=0,f=7,p=4;for(n===0&&(f=138,p=3),i=0;i<=r;i++)if(s=n,n=t[(i+1)*2+1],!(++o<f&&s===n)){if(o<p)do zt(e,s,e.bl_tree);while(--o!==0);else s!==0?(s!==a&&(zt(e,s,e.bl_tree),o--),zt(e,ec,e.bl_tree),dt(e,o-3,2)):o<=10?(zt(e,tc,e.bl_tree),dt(e,o-3,3)):(zt(e,rc,e.bl_tree),dt(e,o-11,7));o=0,a=s,n===0?(f=138,p=3):s===n?(f=6,p=3):(f=7,p=4)}}function sm(e){var t;for(ll(e,e.dyn_ltree,e.l_desc.max_code),ll(e,e.dyn_dtree,e.d_desc.max_code),ja(e,e.bl_desc),t=uo-1;t>=3&&e.bl_tree[nc[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function im(e,t,r,i){var a;for(dt(e,t-257,5),dt(e,r-1,5),dt(e,i-4,4),a=0;a<i;a++)dt(e,e.bl_tree[nc[a]*2+1],3);fl(e,e.dyn_ltree,t-1),fl(e,e.dyn_dtree,r-1)}function am(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return sl;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return il;for(r=32;r<Yn;r++)if(e.dyn_ltree[r*2]!==0)return il;return sl}var pl=!1;function om(e){pl||(rm(),pl=!0),e.l_desc=new Ii(e.dyn_ltree,sc),e.d_desc=new Ii(e.dyn_dtree,ic),e.bl_desc=new Ii(e.bl_tree,ac),e.bi_buf=0,e.bi_valid=0,pc(e)}function uc(e,t,r,i){dt(e,(Gh<<1)+(i?1:0),3),nm(e,t,r)}function lm(e){dt(e,Jp<<1,3),zt(e,ho,nr),em(e)}function fm(e,t,r,i){var a,s,n=0;e.level>0?(e.strm.data_type===zh&&(e.strm.data_type=am(e)),ja(e,e.l_desc),ja(e,e.d_desc),n=sm(e),a=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=a&&(a=s)):a=s=r+5,r+4<=a&&t!==-1?uc(e,t,r,i):e.strategy===Kh||s===a?(dt(e,(Jp<<1)+(i?1:0),3),ol(e,nr,Tn)):(dt(e,(Vh<<1)+(i?1:0),3),im(e,e.l_desc.max_code+1,e.d_desc.max_code+1,n+1),ol(e,e.dyn_ltree,e.dyn_dtree)),pc(e),i&&cc(e)}function pm(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[(Hn[r]+Yn+1)*2]++,e.dyn_dtree[oc(t)*2]++),e.last_lit===e.lit_bufsize-1}hn._tr_init=om;hn._tr_stored_block=uc;hn._tr_flush_block=fm;hn._tr_tally=pm;hn._tr_align=lm;function cm(e,t,r,i){for(var a=e&65535|0,s=e>>>16&65535|0,n=0;r!==0;){n=r>2e3?2e3:r,r-=n;do a=a+t[i++]|0,s=s+a|0;while(--n);a%=65521,s%=65521}return a|s<<16|0}var dc=cm;function um(){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 dm=um();function hm(e,t,r,i){var a=dm,s=i+r;e^=-1;for(var n=i;n<s;n++)e=e>>>8^a[(e^t[n])&255];return e^-1}var hc=hm,yo={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"},at=or,At=hn,mc=dc,dr=hc,mm=yo,Ur=0,ym=1,gm=3,xr=4,cl=5,Gt=0,ul=1,Tt=-2,_m=-3,Di=-5,wm=-1,bm=1,ps=2,vm=3,xm=4,Sm=0,km=2,oi=8,Em=9,Pm=15,Am=8,Tm=29,Cm=256,Na=Cm+1+Tm,Om=30,Lm=19,Rm=2*Na+1,Im=15,ge=3,br=258,Ht=br+ge+1,$m=32,li=42,Ua=69,Cs=73,Os=91,Ls=103,Or=113,En=666,qe=1,Xn=2,Dr=3,yn=4,Dm=3;function vr(e,t){return e.msg=mm[t],t}function dl(e){return(e<<1)-(e>4?9:0)}function wr(e){for(var t=e.length;--t>=0;)e[t]=0}function hr(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(at.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 Qe(e,t){At._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,hr(e.strm)}function Se(e,t){e.pending_buf[e.pending++]=t}function wn(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function Hm(e,t,r,i){var a=e.avail_in;return a>i&&(a=i),a===0?0:(e.avail_in-=a,at.arraySet(t,e.input,e.next_in,a,r),e.state.wrap===1?e.adler=mc(e.adler,t,a,r):e.state.wrap===2&&(e.adler=dr(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)}function yc(e,t){var r=e.max_chain_length,i=e.strstart,a,s,n=e.prev_length,o=e.nice_match,f=e.strstart>e.w_size-Ht?e.strstart-(e.w_size-Ht):0,p=e.window,c=e.w_mask,m=e.prev,h=e.strstart+br,g=p[i+n-1],R=p[i+n];e.prev_length>=e.good_match&&(r>>=2),o>e.lookahead&&(o=e.lookahead);do if(a=t,!(p[a+n]!==R||p[a+n-1]!==g||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(s=br-(h-i),i=h-br,s>n){if(e.match_start=t,n=s,s>=o)break;g=p[i+n-1],R=p[i+n]}}while((t=m[t&c])>f&&--r!==0);return n<=e.lookahead?n:e.lookahead}function Hr(e){var t=e.w_size,r,i,a,s,n;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Ht)){at.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);s+=t}if(e.strm.avail_in===0)break;if(i=Hm(e.strm,e.window,e.strstart+e.lookahead,s),e.lookahead+=i,e.lookahead+e.insert>=ge)for(n=e.strstart-e.insert,e.ins_h=e.window[n],e.ins_h=(e.ins_h<<e.hash_shift^e.window[n+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[n+ge-1])&e.hash_mask,e.prev[n&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=n,n++,e.insert--,!(e.lookahead+e.insert<ge)););}while(e.lookahead<Ht&&e.strm.avail_in!==0)}function Fm(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Hr(e),e.lookahead===0&&t===Ur)return qe;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,Qe(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-Ht&&(Qe(e,!1),e.strm.avail_out===0))return qe}return e.insert=0,t===xr?(Qe(e,!0),e.strm.avail_out===0?Dr:yn):(e.strstart>e.block_start&&(Qe(e,!1),e.strm.avail_out===0),qe)}function Hi(e,t){for(var r,i;;){if(e.lookahead<Ht){if(Hr(e),e.lookahead<Ht&&t===Ur)return qe;if(e.lookahead===0)break}if(r=0,e.lookahead>=ge&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ge-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-Ht&&(e.match_length=yc(e,r)),e.match_length>=ge)if(i=At._tr_tally(e,e.strstart-e.match_start,e.match_length-ge),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ge){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ge-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=At._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Qe(e,!1),e.strm.avail_out===0))return qe}return e.insert=e.strstart<ge-1?e.strstart:ge-1,t===xr?(Qe(e,!0),e.strm.avail_out===0?Dr:yn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?qe:Xn}function qr(e,t){for(var r,i,a;;){if(e.lookahead<Ht){if(Hr(e),e.lookahead<Ht&&t===Ur)return qe;if(e.lookahead===0)break}if(r=0,e.lookahead>=ge&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ge-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=ge-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-Ht&&(e.match_length=yc(e,r),e.match_length<=5&&(e.strategy===bm||e.match_length===ge&&e.strstart-e.match_start>4096)&&(e.match_length=ge-1)),e.prev_length>=ge&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-ge,i=At._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-ge),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+ge-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=ge-1,e.strstart++,i&&(Qe(e,!1),e.strm.avail_out===0))return qe}else if(e.match_available){if(i=At._tr_tally(e,0,e.window[e.strstart-1]),i&&Qe(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return qe}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=At._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<ge-1?e.strstart:ge-1,t===xr?(Qe(e,!0),e.strm.avail_out===0?Dr:yn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?qe:Xn}function Bm(e,t){for(var r,i,a,s,n=e.window;;){if(e.lookahead<=br){if(Hr(e),e.lookahead<=br&&t===Ur)return qe;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=ge&&e.strstart>0&&(a=e.strstart-1,i=n[a],i===n[++a]&&i===n[++a]&&i===n[++a])){s=e.strstart+br;do;while(i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&a<s);e.match_length=br-(s-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ge?(r=At._tr_tally(e,1,e.match_length-ge),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=At._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Qe(e,!1),e.strm.avail_out===0))return qe}return e.insert=0,t===xr?(Qe(e,!0),e.strm.avail_out===0?Dr:yn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?qe:Xn}function jm(e,t){for(var r;;){if(e.lookahead===0&&(Hr(e),e.lookahead===0)){if(t===Ur)return qe;break}if(e.match_length=0,r=At._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Qe(e,!1),e.strm.avail_out===0))return qe}return e.insert=0,t===xr?(Qe(e,!0),e.strm.avail_out===0?Dr:yn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?qe:Xn}function jt(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 en;en=[new jt(0,0,0,0,Fm),new jt(4,4,8,4,Hi),new jt(4,5,16,8,Hi),new jt(4,6,32,32,Hi),new jt(4,4,16,16,qr),new jt(8,16,32,32,qr),new jt(8,16,128,128,qr),new jt(8,32,128,256,qr),new jt(32,128,258,1024,qr),new jt(32,258,258,4096,qr)];function Nm(e){e.window_size=2*e.w_size,wr(e.head),e.max_lazy_match=en[e.level].max_lazy,e.good_match=en[e.level].good_length,e.nice_match=en[e.level].nice_length,e.max_chain_length=en[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ge-1,e.match_available=0,e.ins_h=0}function Um(){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=oi,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 at.Buf16(Rm*2),this.dyn_dtree=new at.Buf16((2*Om+1)*2),this.bl_tree=new at.Buf16((2*Lm+1)*2),wr(this.dyn_ltree),wr(this.dyn_dtree),wr(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new at.Buf16(Im+1),this.heap=new at.Buf16(2*Na+1),wr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new at.Buf16(2*Na+1),wr(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 gc(e){var t;return!e||!e.state?vr(e,Tt):(e.total_in=e.total_out=0,e.data_type=km,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?li:Or,e.adler=t.wrap===2?0:1,t.last_flush=Ur,At._tr_init(t),Gt)}function _c(e){var t=gc(e);return t===Gt&&Nm(e.state),t}function Wm(e,t){return!e||!e.state||e.state.wrap!==2?Tt:(e.state.gzhead=t,Gt)}function wc(e,t,r,i,a,s){if(!e)return Tt;var n=1;if(t===wm&&(t=6),i<0?(n=0,i=-i):i>15&&(n=2,i-=16),a<1||a>Em||r!==oi||i<8||i>15||t<0||t>9||s<0||s>xm)return vr(e,Tt);i===8&&(i=9);var o=new Um;return e.state=o,o.strm=e,o.wrap=n,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+ge-1)/ge),o.window=new at.Buf8(o.w_size*2),o.head=new at.Buf16(o.hash_size),o.prev=new at.Buf16(o.w_size),o.lit_bufsize=1<<a+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new at.Buf8(o.pending_buf_size),o.d_buf=1*o.lit_bufsize,o.l_buf=3*o.lit_bufsize,o.level=t,o.strategy=s,o.method=r,_c(e)}function Mm(e,t){return wc(e,t,oi,Pm,Am,Sm)}function qm(e,t){var r,i,a,s;if(!e||!e.state||t>cl||t<0)return e?vr(e,Tt):Tt;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===En&&t!==xr)return vr(e,e.avail_out===0?Di:Tt);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===li)if(i.wrap===2)e.adler=0,Se(i,31),Se(i,139),Se(i,8),i.gzhead?(Se(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)),Se(i,i.gzhead.time&255),Se(i,i.gzhead.time>>8&255),Se(i,i.gzhead.time>>16&255),Se(i,i.gzhead.time>>24&255),Se(i,i.level===9?2:i.strategy>=ps||i.level<2?4:0),Se(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(Se(i,i.gzhead.extra.length&255),Se(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=dr(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Ua):(Se(i,0),Se(i,0),Se(i,0),Se(i,0),Se(i,0),Se(i,i.level===9?2:i.strategy>=ps||i.level<2?4:0),Se(i,Dm),i.status=Or);else{var n=oi+(i.w_bits-8<<4)<<8,o=-1;i.strategy>=ps||i.level<2?o=0:i.level<6?o=1:i.level===6?o=2:o=3,n|=o<<6,i.strstart!==0&&(n|=$m),n+=31-n%31,i.status=Or,wn(i,n),i.strstart!==0&&(wn(i,e.adler>>>16),wn(i,e.adler&65535)),e.adler=1}if(i.status===Ua)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=dr(e.adler,i.pending_buf,i.pending-a,a)),hr(e),a=i.pending,i.pending===i.pending_buf_size));)Se(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=dr(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=Cs)}else i.status=Cs;if(i.status===Cs)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=dr(e.adler,i.pending_buf,i.pending-a,a)),hr(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}i.gzindex<i.gzhead.name.length?s=i.gzhead.name.charCodeAt(i.gzindex++)&255:s=0,Se(i,s)}while(s!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=dr(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.gzindex=0,i.status=Os)}else i.status=Os;if(i.status===Os)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=dr(e.adler,i.pending_buf,i.pending-a,a)),hr(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}i.gzindex<i.gzhead.comment.length?s=i.gzhead.comment.charCodeAt(i.gzindex++)&255:s=0,Se(i,s)}while(s!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=dr(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.status=Ls)}else i.status=Ls;if(i.status===Ls&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&hr(e),i.pending+2<=i.pending_buf_size&&(Se(i,e.adler&255),Se(i,e.adler>>8&255),e.adler=0,i.status=Or)):i.status=Or),i.pending!==0){if(hr(e),e.avail_out===0)return i.last_flush=-1,Gt}else if(e.avail_in===0&&dl(t)<=dl(r)&&t!==xr)return vr(e,Di);if(i.status===En&&e.avail_in!==0)return vr(e,Di);if(e.avail_in!==0||i.lookahead!==0||t!==Ur&&i.status!==En){var f=i.strategy===ps?jm(i,t):i.strategy===vm?Bm(i,t):en[i.level].func(i,t);if((f===Dr||f===yn)&&(i.status=En),f===qe||f===Dr)return e.avail_out===0&&(i.last_flush=-1),Gt;if(f===Xn&&(t===ym?At._tr_align(i):t!==cl&&(At._tr_stored_block(i,0,0,!1),t===gm&&(wr(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),hr(e),e.avail_out===0))return i.last_flush=-1,Gt}return t!==xr?Gt:i.wrap<=0?ul:(i.wrap===2?(Se(i,e.adler&255),Se(i,e.adler>>8&255),Se(i,e.adler>>16&255),Se(i,e.adler>>24&255),Se(i,e.total_in&255),Se(i,e.total_in>>8&255),Se(i,e.total_in>>16&255),Se(i,e.total_in>>24&255)):(wn(i,e.adler>>>16),wn(i,e.adler&65535)),hr(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Gt:ul)}function Km(e){var t;return!e||!e.state?Tt:(t=e.state.status,t!==li&&t!==Ua&&t!==Cs&&t!==Os&&t!==Ls&&t!==Or&&t!==En?vr(e,Tt):(e.state=null,t===Or?vr(e,_m):Gt))}function zm(e,t){var r=t.length,i,a,s,n,o,f,p,c;if(!e||!e.state||(i=e.state,n=i.wrap,n===2||n===1&&i.status!==li||i.lookahead))return Tt;for(n===1&&(e.adler=mc(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(n===0&&(wr(i.head),i.strstart=0,i.block_start=0,i.insert=0),c=new at.Buf8(i.w_size),at.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,Hr(i);i.lookahead>=ge;){a=i.strstart,s=i.lookahead-(ge-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[a+ge-1])&i.hash_mask,i.prev[a&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=a,a++;while(--s);i.strstart=a,i.lookahead=ge-1,Hr(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=ge-1,i.match_available=0,e.next_in=f,e.input=p,e.avail_in=o,i.wrap=n,Gt}Xt.deflateInit=Mm;Xt.deflateInit2=wc;Xt.deflateReset=_c;Xt.deflateResetKeep=gc;Xt.deflateSetHeader=Wm;Xt.deflate=qm;Xt.deflateEnd=Km;Xt.deflateSetDictionary=zm;Xt.deflateInfo="pako deflate (from Nodeca project)";var Wr={},fi=or,bc=!0,vc=!0;try{String.fromCharCode.apply(null,[0])}catch{bc=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{vc=!1}var Bn=new fi.Buf8(256);for(var fr=0;fr<256;fr++)Bn[fr]=fr>=252?6:fr>=248?5:fr>=240?4:fr>=224?3:fr>=192?2:1;Bn[254]=Bn[254]=1;Wr.string2buf=function(e){var t,r,i,a,s,n=e.length,o=0;for(a=0;a<n;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<n&&(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 fi.Buf8(o),s=0,a=0;s<o;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<n&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?t[s++]=r:r<2048?(t[s++]=192|r>>>6,t[s++]=128|r&63):r<65536?(t[s++]=224|r>>>12,t[s++]=128|r>>>6&63,t[s++]=128|r&63):(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63,t[s++]=128|r>>>6&63,t[s++]=128|r&63);return t};function xc(e,t){if(t<65534&&(e.subarray&&vc||!e.subarray&&bc))return String.fromCharCode.apply(null,fi.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}Wr.buf2binstring=function(e){return xc(e,e.length)};Wr.binstring2buf=function(e){for(var t=new fi.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};Wr.buf2string=function(e,t){var r,i,a,s,n=t||e.length,o=new Array(n*2);for(i=0,r=0;r<n;){if(a=e[r++],a<128){o[i++]=a;continue}if(s=Bn[a],s>4){o[i++]=65533,r+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&r<n;)a=a<<6|e[r++]&63,s--;if(s>1){o[i++]=65533;continue}a<65536?o[i++]=a:(a-=65536,o[i++]=55296|a>>10&1023,o[i++]=56320|a&1023)}return xc(o,i)};Wr.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+Bn[e[r]]>t?r:t};function Gm(){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 Sc=Gm,Cn=Xt,On=or,Wa=Wr,Ma=yo,Vm=Sc,kc=Object.prototype.toString,Zm=0,Fi=4,nn=0,hl=1,ml=2,Ym=-1,Xm=0,Jm=8;function Fr(e){if(!(this instanceof Fr))return new Fr(e);this.options=On.assign({level:Ym,method:Jm,chunkSize:16384,windowBits:15,memLevel:8,strategy:Xm,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 Vm,this.strm.avail_out=0;var r=Cn.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==nn)throw new Error(Ma[r]);if(t.header&&Cn.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=Wa.string2buf(t.dictionary):kc.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=Cn.deflateSetDictionary(this.strm,i),r!==nn)throw new Error(Ma[r]);this._dict_set=!0}}Fr.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a,s;if(this.ended)return!1;s=t===~~t?t:t===!0?Fi:Zm,typeof e=="string"?r.input=Wa.string2buf(e):kc.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 On.Buf8(i),r.next_out=0,r.avail_out=i),a=Cn.deflate(r,s),a!==hl&&a!==nn)return this.onEnd(a),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(s===Fi||s===ml))&&(this.options.to==="string"?this.onData(Wa.buf2binstring(On.shrinkBuf(r.output,r.next_out))):this.onData(On.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&a!==hl);return s===Fi?(a=Cn.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===nn):(s===ml&&(this.onEnd(nn),r.avail_out=0),!0)};Fr.prototype.onData=function(e){this.chunks.push(e)};Fr.prototype.onEnd=function(e){e===nn&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=On.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function go(e,t){var r=new Fr(t);if(r.push(e,!0),r.err)throw r.msg||Ma[r.err];return r.result}function Qm(e,t){return t=t||{},t.raw=!0,go(e,t)}function ey(e,t){return t=t||{},t.gzip=!0,go(e,t)}Zn.Deflate=Fr;Zn.deflate=go;Zn.deflateRaw=Qm;Zn.gzip=ey;var Jn={},Ft={},cs=30,ty=12,ry=function(t,r){var i,a,s,n,o,f,p,c,m,h,g,R,y,_,b,O,k,D,T,H,E,A,L,S,P;i=t.state,a=t.next_in,S=t.input,s=a+(t.avail_in-5),n=t.next_out,P=t.output,o=n-(r-t.avail_out),f=n+(t.avail_out-257),p=i.dmax,c=i.wsize,m=i.whave,h=i.wnext,g=i.window,R=i.hold,y=i.bits,_=i.lencode,b=i.distcode,O=(1<<i.lenbits)-1,k=(1<<i.distbits)-1;e:do{y<15&&(R+=S[a++]<<y,y+=8,R+=S[a++]<<y,y+=8),D=_[R&O];t:for(;;){if(T=D>>>24,R>>>=T,y-=T,T=D>>>16&255,T===0)P[n++]=D&65535;else if(T&16){H=D&65535,T&=15,T&&(y<T&&(R+=S[a++]<<y,y+=8),H+=R&(1<<T)-1,R>>>=T,y-=T),y<15&&(R+=S[a++]<<y,y+=8,R+=S[a++]<<y,y+=8),D=b[R&k];r:for(;;){if(T=D>>>24,R>>>=T,y-=T,T=D>>>16&255,T&16){if(E=D&65535,T&=15,y<T&&(R+=S[a++]<<y,y+=8,y<T&&(R+=S[a++]<<y,y+=8)),E+=R&(1<<T)-1,E>p){t.msg="invalid distance too far back",i.mode=cs;break e}if(R>>>=T,y-=T,T=n-o,E>T){if(T=E-T,T>m&&i.sane){t.msg="invalid distance too far back",i.mode=cs;break e}if(A=0,L=g,h===0){if(A+=c-T,T<H){H-=T;do P[n++]=g[A++];while(--T);A=n-E,L=P}}else if(h<T){if(A+=c+h-T,T-=h,T<H){H-=T;do P[n++]=g[A++];while(--T);if(A=0,h<H){T=h,H-=T;do P[n++]=g[A++];while(--T);A=n-E,L=P}}}else if(A+=h-T,T<H){H-=T;do P[n++]=g[A++];while(--T);A=n-E,L=P}for(;H>2;)P[n++]=L[A++],P[n++]=L[A++],P[n++]=L[A++],H-=3;H&&(P[n++]=L[A++],H>1&&(P[n++]=L[A++]))}else{A=n-E;do P[n++]=P[A++],P[n++]=P[A++],P[n++]=P[A++],H-=3;while(H>2);H&&(P[n++]=P[A++],H>1&&(P[n++]=P[A++]))}}else if(T&64){t.msg="invalid distance code",i.mode=cs;break e}else{D=b[(D&65535)+(R&(1<<T)-1)];continue r}break}}else if(T&64)if(T&32){i.mode=ty;break e}else{t.msg="invalid literal/length code",i.mode=cs;break e}else{D=_[(D&65535)+(R&(1<<T)-1)];continue t}break}}while(a<s&&n<f);H=y>>3,a-=H,y-=H<<3,R&=(1<<y)-1,t.next_in=a,t.next_out=n,t.avail_in=a<s?5+(s-a):5-(a-s),t.avail_out=n<f?257+(f-n):257-(n-f),i.hold=R,i.bits=y},yl=or,Kr=15,gl=852,_l=592,wl=0,Bi=1,bl=2,ny=[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],sy=[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],iy=[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],ay=[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],oy=function(t,r,i,a,s,n,o,f){var p=f.bits,c=0,m=0,h=0,g=0,R=0,y=0,_=0,b=0,O=0,k=0,D,T,H,E,A,L=null,S=0,P,$=new yl.Buf16(Kr+1),I=new yl.Buf16(Kr+1),j=null,U=0,M,Z,z;for(c=0;c<=Kr;c++)$[c]=0;for(m=0;m<a;m++)$[r[i+m]]++;for(R=p,g=Kr;g>=1&&$[g]===0;g--);if(R>g&&(R=g),g===0)return s[n++]=1<<24|64<<16|0,s[n++]=1<<24|64<<16|0,f.bits=1,0;for(h=1;h<g&&$[h]===0;h++);for(R<h&&(R=h),b=1,c=1;c<=Kr;c++)if(b<<=1,b-=$[c],b<0)return-1;if(b>0&&(t===wl||g!==1))return-1;for(I[1]=0,c=1;c<Kr;c++)I[c+1]=I[c]+$[c];for(m=0;m<a;m++)r[i+m]!==0&&(o[I[r[i+m]]++]=m);if(t===wl?(L=j=o,P=19):t===Bi?(L=ny,S-=257,j=sy,U-=257,P=256):(L=iy,j=ay,P=-1),k=0,m=0,c=h,A=n,y=R,_=0,H=-1,O=1<<R,E=O-1,t===Bi&&O>gl||t===bl&&O>_l)return 1;for(;;){M=c-_,o[m]<P?(Z=0,z=o[m]):o[m]>P?(Z=j[U+o[m]],z=L[S+o[m]]):(Z=96,z=0),D=1<<c-_,T=1<<y,h=T;do T-=D,s[A+(k>>_)+T]=M<<24|Z<<16|z|0;while(T!==0);for(D=1<<c-1;k&D;)D>>=1;if(D!==0?(k&=D-1,k+=D):k=0,m++,--$[c]===0){if(c===g)break;c=r[i+o[m]]}if(c>R&&(k&E)!==H){for(_===0&&(_=R),A+=h,y=c-_,b=1<<y;y+_<g&&(b-=$[y+_],!(b<=0));)y++,b<<=1;if(O+=1<<y,t===Bi&&O>gl||t===bl&&O>_l)return 1;H=k&E,s[H]=R<<24|y<<16|A-n|0}}return k!==0&&(s[A+k]=c-_<<24|64<<16|0),f.bits=R,0},xt=or,qa=dc,Nt=hc,ly=ry,Ln=oy,fy=0,Ec=1,Pc=2,vl=4,py=5,us=6,Br=0,cy=1,uy=2,Ct=-2,Ac=-3,Tc=-4,dy=-5,xl=8,Cc=1,Sl=2,kl=3,El=4,Pl=5,Al=6,Tl=7,Cl=8,Ol=9,Ll=10,Gs=11,er=12,ji=13,Rl=14,Ni=15,Il=16,$l=17,Dl=18,Hl=19,ds=20,hs=21,Fl=22,Bl=23,jl=24,Nl=25,Ul=26,Ui=27,Wl=28,Ml=29,He=30,Oc=31,hy=32,my=852,yy=592,gy=15,_y=gy;function ql(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function wy(){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 xt.Buf16(320),this.work=new xt.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Lc(e){var t;return!e||!e.state?Ct:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Cc,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new xt.Buf32(my),t.distcode=t.distdyn=new xt.Buf32(yy),t.sane=1,t.back=-1,Br)}function Rc(e){var t;return!e||!e.state?Ct:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Lc(e))}function Ic(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))?Ct:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,Rc(e))}function $c(e,t){var r,i;return e?(i=new wy,e.state=i,i.window=null,r=Ic(e,t),r!==Br&&(e.state=null),r):Ct}function by(e){return $c(e,_y)}var Kl=!0,Wi,Mi;function vy(e){if(Kl){var t;for(Wi=new xt.Buf32(512),Mi=new xt.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(Ln(Ec,e.lens,0,288,Wi,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Ln(Pc,e.lens,0,32,Mi,0,e.work,{bits:5}),Kl=!1}e.lencode=Wi,e.lenbits=9,e.distcode=Mi,e.distbits=5}function Dc(e,t,r,i){var a,s=e.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new xt.Buf8(s.wsize)),i>=s.wsize?(xt.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(a=s.wsize-s.wnext,a>i&&(a=i),xt.arraySet(s.window,t,r-i,a,s.wnext),i-=a,i?(xt.arraySet(s.window,t,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=a,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=a))),0}function xy(e,t){var r,i,a,s,n,o,f,p,c,m,h,g,R,y,_=0,b,O,k,D,T,H,E,A,L=new xt.Buf8(4),S,P,$=[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 Ct;r=e.state,r.mode===er&&(r.mode=ji),n=e.next_out,a=e.output,f=e.avail_out,s=e.next_in,i=e.input,o=e.avail_in,p=r.hold,c=r.bits,m=o,h=f,A=Br;e:for(;;)switch(r.mode){case Cc:if(r.wrap===0){r.mode=ji;break}for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(r.wrap&2&&p===35615){r.check=0,L[0]=p&255,L[1]=p>>>8&255,r.check=Nt(r.check,L,2,0),p=0,c=0,r.mode=Sl;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=He;break}if((p&15)!==xl){e.msg="unknown compression method",r.mode=He;break}if(p>>>=4,c-=4,E=(p&15)+8,r.wbits===0)r.wbits=E;else if(E>r.wbits){e.msg="invalid window size",r.mode=He;break}r.dmax=1<<E,e.adler=r.check=1,r.mode=p&512?Ll:er,p=0,c=0;break;case Sl:for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(r.flags=p,(r.flags&255)!==xl){e.msg="unknown compression method",r.mode=He;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=He;break}r.head&&(r.head.text=p>>8&1),r.flags&512&&(L[0]=p&255,L[1]=p>>>8&255,r.check=Nt(r.check,L,2,0)),p=0,c=0,r.mode=kl;case kl:for(;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.head&&(r.head.time=p),r.flags&512&&(L[0]=p&255,L[1]=p>>>8&255,L[2]=p>>>16&255,L[3]=p>>>24&255,r.check=Nt(r.check,L,4,0)),p=0,c=0,r.mode=El;case El:for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.head&&(r.head.xflags=p&255,r.head.os=p>>8),r.flags&512&&(L[0]=p&255,L[1]=p>>>8&255,r.check=Nt(r.check,L,2,0)),p=0,c=0,r.mode=Pl;case Pl:if(r.flags&1024){for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.length=p,r.head&&(r.head.extra_len=p),r.flags&512&&(L[0]=p&255,L[1]=p>>>8&255,r.check=Nt(r.check,L,2,0)),p=0,c=0}else r.head&&(r.head.extra=null);r.mode=Al;case Al:if(r.flags&1024&&(g=r.length,g>o&&(g=o),g&&(r.head&&(E=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),xt.arraySet(r.head.extra,i,s,g,E)),r.flags&512&&(r.check=Nt(r.check,i,g,s)),o-=g,s+=g,r.length-=g),r.length))break e;r.length=0,r.mode=Tl;case Tl:if(r.flags&2048){if(o===0)break e;g=0;do E=i[s+g++],r.head&&E&&r.length<65536&&(r.head.name+=String.fromCharCode(E));while(E&&g<o);if(r.flags&512&&(r.check=Nt(r.check,i,g,s)),o-=g,s+=g,E)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=Cl;case Cl:if(r.flags&4096){if(o===0)break e;g=0;do E=i[s+g++],r.head&&E&&r.length<65536&&(r.head.comment+=String.fromCharCode(E));while(E&&g<o);if(r.flags&512&&(r.check=Nt(r.check,i,g,s)),o-=g,s+=g,E)break e}else r.head&&(r.head.comment=null);r.mode=Ol;case Ol:if(r.flags&512){for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(p!==(r.check&65535)){e.msg="header crc mismatch",r.mode=He;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=er;break;case Ll:for(;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}e.adler=r.check=ql(p),p=0,c=0,r.mode=Gs;case Gs:if(r.havedict===0)return e.next_out=n,e.avail_out=f,e.next_in=s,e.avail_in=o,r.hold=p,r.bits=c,uy;e.adler=r.check=1,r.mode=er;case er:if(t===py||t===us)break e;case ji:if(r.last){p>>>=c&7,c-=c&7,r.mode=Ui;break}for(;c<3;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}switch(r.last=p&1,p>>>=1,c-=1,p&3){case 0:r.mode=Rl;break;case 1:if(vy(r),r.mode=ds,t===us){p>>>=2,c-=2;break e}break;case 2:r.mode=$l;break;case 3:e.msg="invalid block type",r.mode=He}p>>>=2,c-=2;break;case Rl:for(p>>>=c&7,c-=c&7;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if((p&65535)!==(p>>>16^65535)){e.msg="invalid stored block lengths",r.mode=He;break}if(r.length=p&65535,p=0,c=0,r.mode=Ni,t===us)break e;case Ni:r.mode=Il;case Il:if(g=r.length,g){if(g>o&&(g=o),g>f&&(g=f),g===0)break e;xt.arraySet(a,i,s,g,n),o-=g,s+=g,f-=g,n+=g,r.length-=g;break}r.mode=er;break;case $l:for(;c<14;){if(o===0)break e;o--,p+=i[s++]<<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=He;break}r.have=0,r.mode=Dl;case Dl:for(;r.have<r.ncode;){for(;c<3;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.lens[$[r.have++]]=p&7,p>>>=3,c-=3}for(;r.have<19;)r.lens[$[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,S={bits:r.lenbits},A=Ln(fy,r.lens,0,19,r.lencode,0,r.work,S),r.lenbits=S.bits,A){e.msg="invalid code lengths set",r.mode=He;break}r.have=0,r.mode=Hl;case Hl:for(;r.have<r.nlen+r.ndist;){for(;_=r.lencode[p&(1<<r.lenbits)-1],b=_>>>24,O=_>>>16&255,k=_&65535,!(b<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(k<16)p>>>=b,c-=b,r.lens[r.have++]=k;else{if(k===16){for(P=b+2;c<P;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(p>>>=b,c-=b,r.have===0){e.msg="invalid bit length repeat",r.mode=He;break}E=r.lens[r.have-1],g=3+(p&3),p>>>=2,c-=2}else if(k===17){for(P=b+3;c<P;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=b,c-=b,E=0,g=3+(p&7),p>>>=3,c-=3}else{for(P=b+7;c<P;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=b,c-=b,E=0,g=11+(p&127),p>>>=7,c-=7}if(r.have+g>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=He;break}for(;g--;)r.lens[r.have++]=E}}if(r.mode===He)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=He;break}if(r.lenbits=9,S={bits:r.lenbits},A=Ln(Ec,r.lens,0,r.nlen,r.lencode,0,r.work,S),r.lenbits=S.bits,A){e.msg="invalid literal/lengths set",r.mode=He;break}if(r.distbits=6,r.distcode=r.distdyn,S={bits:r.distbits},A=Ln(Pc,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,S),r.distbits=S.bits,A){e.msg="invalid distances set",r.mode=He;break}if(r.mode=ds,t===us)break e;case ds:r.mode=hs;case hs:if(o>=6&&f>=258){e.next_out=n,e.avail_out=f,e.next_in=s,e.avail_in=o,r.hold=p,r.bits=c,ly(e,h),n=e.next_out,a=e.output,f=e.avail_out,s=e.next_in,i=e.input,o=e.avail_in,p=r.hold,c=r.bits,r.mode===er&&(r.back=-1);break}for(r.back=0;_=r.lencode[p&(1<<r.lenbits)-1],b=_>>>24,O=_>>>16&255,k=_&65535,!(b<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(O&&!(O&240)){for(D=b,T=O,H=k;_=r.lencode[H+((p&(1<<D+T)-1)>>D)],b=_>>>24,O=_>>>16&255,k=_&65535,!(D+b<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=D,c-=D,r.back+=D}if(p>>>=b,c-=b,r.back+=b,r.length=k,O===0){r.mode=Ul;break}if(O&32){r.back=-1,r.mode=er;break}if(O&64){e.msg="invalid literal/length code",r.mode=He;break}r.extra=O&15,r.mode=Fl;case Fl:if(r.extra){for(P=r.extra;c<P;){if(o===0)break e;o--,p+=i[s++]<<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=Bl;case Bl:for(;_=r.distcode[p&(1<<r.distbits)-1],b=_>>>24,O=_>>>16&255,k=_&65535,!(b<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(!(O&240)){for(D=b,T=O,H=k;_=r.distcode[H+((p&(1<<D+T)-1)>>D)],b=_>>>24,O=_>>>16&255,k=_&65535,!(D+b<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=D,c-=D,r.back+=D}if(p>>>=b,c-=b,r.back+=b,O&64){e.msg="invalid distance code",r.mode=He;break}r.offset=k,r.extra=O&15,r.mode=jl;case jl:if(r.extra){for(P=r.extra;c<P;){if(o===0)break e;o--,p+=i[s++]<<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=He;break}r.mode=Nl;case Nl:if(f===0)break e;if(g=h-f,r.offset>g){if(g=r.offset-g,g>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=He;break}g>r.wnext?(g-=r.wnext,R=r.wsize-g):R=r.wnext-g,g>r.length&&(g=r.length),y=r.window}else y=a,R=n-r.offset,g=r.length;g>f&&(g=f),f-=g,r.length-=g;do a[n++]=y[R++];while(--g);r.length===0&&(r.mode=hs);break;case Ul:if(f===0)break e;a[n++]=r.length,f--,r.mode=hs;break;case Ui:if(r.wrap){for(;c<32;){if(o===0)break e;o--,p|=i[s++]<<c,c+=8}if(h-=f,e.total_out+=h,r.total+=h,h&&(e.adler=r.check=r.flags?Nt(r.check,a,h,n-h):qa(r.check,a,h,n-h)),h=f,(r.flags?p:ql(p))!==r.check){e.msg="incorrect data check",r.mode=He;break}p=0,c=0}r.mode=Wl;case Wl:if(r.wrap&&r.flags){for(;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(p!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=He;break}p=0,c=0}r.mode=Ml;case Ml:A=cy;break e;case He:A=Ac;break e;case Oc:return Tc;case hy:default:return Ct}return e.next_out=n,e.avail_out=f,e.next_in=s,e.avail_in=o,r.hold=p,r.bits=c,(r.wsize||h!==e.avail_out&&r.mode<He&&(r.mode<Ui||t!==vl))&&Dc(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?Nt(r.check,a,h,e.next_out-h):qa(r.check,a,h,e.next_out-h)),e.data_type=r.bits+(r.last?64:0)+(r.mode===er?128:0)+(r.mode===ds||r.mode===Ni?256:0),(m===0&&h===0||t===vl)&&A===Br&&(A=dy),A}function Sy(e){if(!e||!e.state)return Ct;var t=e.state;return t.window&&(t.window=null),e.state=null,Br}function ky(e,t){var r;return!e||!e.state||(r=e.state,!(r.wrap&2))?Ct:(r.head=t,t.done=!1,Br)}function Ey(e,t){var r=t.length,i,a,s;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==Gs)?Ct:i.mode===Gs&&(a=1,a=qa(a,t,r,0),a!==i.check)?Ac:(s=Dc(e,t,r,r),s?(i.mode=Oc,Tc):(i.havedict=1,Br))}Ft.inflateReset=Rc;Ft.inflateReset2=Ic;Ft.inflateResetKeep=Lc;Ft.inflateInit=by;Ft.inflateInit2=$c;Ft.inflate=xy;Ft.inflateEnd=Sy;Ft.inflateGetHeader=ky;Ft.inflateSetDictionary=Ey;Ft.inflateInfo="pako inflate (from Nodeca project)";var Hc={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 Py(){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 Ay=Py,sn=Ft,Rn=or,Rs=Wr,je=Hc,Ka=yo,Ty=Sc,Cy=Ay,Fc=Object.prototype.toString;function jr(e){if(!(this instanceof jr))return new jr(e);this.options=Rn.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 Ty,this.strm.avail_out=0;var r=sn.inflateInit2(this.strm,t.windowBits);if(r!==je.Z_OK)throw new Error(Ka[r]);if(this.header=new Cy,sn.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Rs.string2buf(t.dictionary):Fc.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=sn.inflateSetDictionary(this.strm,t.dictionary),r!==je.Z_OK)))throw new Error(Ka[r])}jr.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a=this.options.dictionary,s,n,o,f,p,c=!1;if(this.ended)return!1;n=t===~~t?t:t===!0?je.Z_FINISH:je.Z_NO_FLUSH,typeof e=="string"?r.input=Rs.binstring2buf(e):Fc.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 Rn.Buf8(i),r.next_out=0,r.avail_out=i),s=sn.inflate(r,je.Z_NO_FLUSH),s===je.Z_NEED_DICT&&a&&(s=sn.inflateSetDictionary(this.strm,a)),s===je.Z_BUF_ERROR&&c===!0&&(s=je.Z_OK,c=!1),s!==je.Z_STREAM_END&&s!==je.Z_OK)return this.onEnd(s),this.ended=!0,!1;r.next_out&&(r.avail_out===0||s===je.Z_STREAM_END||r.avail_in===0&&(n===je.Z_FINISH||n===je.Z_SYNC_FLUSH))&&(this.options.to==="string"?(o=Rs.utf8border(r.output,r.next_out),f=r.next_out-o,p=Rs.buf2string(r.output,o),r.next_out=f,r.avail_out=i-f,f&&Rn.arraySet(r.output,r.output,o,f,0),this.onData(p)):this.onData(Rn.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)&&s!==je.Z_STREAM_END);return s===je.Z_STREAM_END&&(n=je.Z_FINISH),n===je.Z_FINISH?(s=sn.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===je.Z_OK):(n===je.Z_SYNC_FLUSH&&(this.onEnd(je.Z_OK),r.avail_out=0),!0)};jr.prototype.onData=function(e){this.chunks.push(e)};jr.prototype.onEnd=function(e){e===je.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Rn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function _o(e,t){var r=new jr(t);if(r.push(e,!0),r.err)throw r.msg||Ka[r.err];return r.result}function Oy(e,t){return t=t||{},t.raw=!0,_o(e,t)}Jn.Inflate=jr;Jn.inflate=_o;Jn.inflateRaw=Oy;Jn.ungzip=_o;var Ly=or.assign,Ry=Zn,Iy=Jn,$y=Hc,Bc={};Ly(Bc,Ry,Iy,$y);var Dy=Bc;const wo=io(Dy);async function Hy(e,t){const r=new Gp(e);let i=await r.read(4);if(i=i.toString("utf8"),i!=="PACK")throw new Ee(`Invalid PACK header '${i}'`);let a=await r.read(4);if(a=a.readUInt32BE(0),a!==2)throw new Ee(`Invalid packfile version: ${a}`);let s=await r.read(4);if(s=s.readUInt32BE(0),!(s<1))for(;!r.eof()&&s--;){const n=r.tell(),{type:o,length:f,ofs:p,reference:c}=await Fy(r),m=new wo.Inflate;for(;!m.result;){const h=await r.chunk();if(!h)break;if(m.push(h,!1),m.err)throw new Ee(`Pako error: ${m.msg}`);if(m.result){if(m.result.length!==f)throw new Ee("Inflated object size is different from that stated in packfile.");await r.undo(),await r.read(h.length-m.strm.avail_in);const g=r.tell();await t({data:m.result,type:o,num:s,offset:n,end:g,reference:c,ofs:p})}}}}async function Fy(e){let t=await e.byte();const r=t>>4&7;let i=t&15;if(t&128){let n=4;do t=await e.byte(),i|=(t&127)<<n,n+=7;while(t&128)}let a,s;if(r===6){let n=0;a=0;const o=[];do t=await e.byte(),a|=(t&127)<<n,n+=7,o.push(t);while(t&128);s=Buffer.from(o)}return r===7&&(s=await e.read(20)),{type:r,length:i,ofs:a,reference:s}}async function By(e){return wo.inflate(e)}var za={exports:{}};typeof Object.create=="function"?za.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:za.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 jy=za.exports,Ga={exports:{}},bo={},pi={};pi.byteLength=Wy;pi.toByteArray=qy;pi.fromByteArray=Gy;var Vt=[],Et=[],Ny=typeof Uint8Array<"u"?Uint8Array:Array,qi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var zr=0,Uy=qi.length;zr<Uy;++zr)Vt[zr]=qi[zr],Et[qi.charCodeAt(zr)]=zr;Et[45]=62;Et[95]=63;function jc(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 Wy(e){var t=jc(e),r=t[0],i=t[1];return(r+i)*3/4-i}function My(e,t,r){return(t+r)*3/4-r}function qy(e){var t,r=jc(e),i=r[0],a=r[1],s=new Ny(My(e,i,a)),n=0,o=a>0?i-4:i,f;for(f=0;f<o;f+=4)t=Et[e.charCodeAt(f)]<<18|Et[e.charCodeAt(f+1)]<<12|Et[e.charCodeAt(f+2)]<<6|Et[e.charCodeAt(f+3)],s[n++]=t>>16&255,s[n++]=t>>8&255,s[n++]=t&255;return a===2&&(t=Et[e.charCodeAt(f)]<<2|Et[e.charCodeAt(f+1)]>>4,s[n++]=t&255),a===1&&(t=Et[e.charCodeAt(f)]<<10|Et[e.charCodeAt(f+1)]<<4|Et[e.charCodeAt(f+2)]>>2,s[n++]=t>>8&255,s[n++]=t&255),s}function Ky(e){return Vt[e>>18&63]+Vt[e>>12&63]+Vt[e>>6&63]+Vt[e&63]}function zy(e,t,r){for(var i,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),a.push(Ky(i));return a.join("")}function Gy(e){for(var t,r=e.length,i=r%3,a=[],s=16383,n=0,o=r-i;n<o;n+=s)a.push(zy(e,n,n+s>o?o:n+s));return i===1?(t=e[r-1],a.push(Vt[t>>2]+Vt[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],a.push(Vt[t>>10]+Vt[t>>4&63]+Vt[t<<2&63]+"=")),a.join("")}var vo={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */vo.read=function(e,t,r,i,a){var s,n,o=a*8-i-1,f=(1<<o)-1,p=f>>1,c=-7,m=r?a-1:0,h=r?-1:1,g=e[t+m];for(m+=h,s=g&(1<<-c)-1,g>>=-c,c+=o;c>0;s=s*256+e[t+m],m+=h,c-=8);for(n=s&(1<<-c)-1,s>>=-c,c+=i;c>0;n=n*256+e[t+m],m+=h,c-=8);if(s===0)s=1-p;else{if(s===f)return n?NaN:(g?-1:1)*(1/0);n=n+Math.pow(2,i),s=s-p}return(g?-1:1)*n*Math.pow(2,s-i)};vo.write=function(e,t,r,i,a,s){var n,o,f,p=s*8-a-1,c=(1<<p)-1,m=c>>1,h=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=i?0:s-1,R=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,n=c):(n=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-n))<1&&(n--,f*=2),n+m>=1?t+=h/f:t+=h*Math.pow(2,1-m),t*f>=2&&(n++,f/=2),n+m>=c?(o=0,n=c):n+m>=1?(o=(t*f-1)*Math.pow(2,a),n=n+m):(o=t*Math.pow(2,m-1)*Math.pow(2,a),n=0));a>=8;e[r+g]=o&255,g+=R,o/=256,a-=8);for(n=n<<a|o,p+=a;p>0;e[r+g]=n&255,g+=R,n/=256,p-=8);e[r+g-R]|=y*128};/*!
|
|
56
|
+
`)+28);return nr(r+`
|
|
57
|
+
`+i)}isolateSignature(){const t=this._commit.slice(this._commit.indexOf("-----BEGIN PGP SIGNATURE-----"),this._commit.indexOf("-----END PGP SIGNATURE-----")+27);return fm(t)}static async sign(t,r,i){const a=t.withoutSignature(),s=wt.justMessage(t._commit);let{signature:n}=await r({payload:a,secretKey:i});n=nr(n);const l=wt.justHeaders(t._commit)+`
|
|
58
|
+
gpgsig`+Hi(n)+`
|
|
59
|
+
`+s;return wt.from(l)}}var nc={};/*! 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 A=0,$=new Array(256),E=0;E!=256;++E)A=E,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,$[E]=A;return typeof Int32Array<"u"?new Int32Array($):$}var i=r();function a(A){var $=0,E=0,P=0,I=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(P=0;P!=256;++P)I[P]=A[P];for(P=0;P!=256;++P)for(E=A[P],$=256+P;$<4096;$+=256)E=I[$]=E>>>8^A[E&255];var R=[];for(P=1;P!=16;++P)R[P-1]=typeof Int32Array<"u"?I.subarray(P*256,P*256+256):I.slice(P*256,P*256+256);return R}var s=a(i),n=s[0],o=s[1],l=s[2],p=s[3],c=s[4],h=s[5],m=s[6],_=s[7],T=s[8],y=s[9],g=s[10],w=s[11],L=s[12],S=s[13],D=s[14];function O(A,$){for(var E=$^-1,P=0,I=A.length;P<I;)E=E>>>8^i[(E^A.charCodeAt(P++))&255];return~E}function H(A,$){for(var E=$^-1,P=A.length-15,I=0;I<P;)E=D[A[I++]^E&255]^S[A[I++]^E>>8&255]^L[A[I++]^E>>16&255]^w[A[I++]^E>>>24]^g[A[I++]]^y[A[I++]]^T[A[I++]]^_[A[I++]]^m[A[I++]]^h[A[I++]]^c[A[I++]]^p[A[I++]]^l[A[I++]]^o[A[I++]]^n[A[I++]]^i[A[I++]];for(P+=15;I<P;)E=E>>>8^i[(E^A[I++])&255];return~E}function k(A,$){for(var E=$^-1,P=0,I=A.length,R=0,U=0;P<I;)R=A.charCodeAt(P++),R<128?E=E>>>8^i[(E^R)&255]:R<2048?(E=E>>>8^i[(E^(192|R>>6&31))&255],E=E>>>8^i[(E^(128|R&63))&255]):R>=55296&&R<57344?(R=(R&1023)+64,U=A.charCodeAt(P++)&1023,E=E>>>8^i[(E^(240|R>>8&7))&255],E=E>>>8^i[(E^(128|R>>2&63))&255],E=E>>>8^i[(E^(128|U>>6&15|(R&3)<<4))&255],E=E>>>8^i[(E^(128|U&63))&255]):(E=E>>>8^i[(E^(224|R>>12&15))&255],E=E>>>8^i[(E^(128|R>>6&63))&255],E=E>>>8^i[(E^(128|R&63))&255]);return~E}t.table=i,t.bstr=O,t.buf=H,t.str=k})})(nc);const pm=po(nc);class cm{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"),s=t.slice(r+1,i).toString("utf8"),n=t.length-(i+1);if(parseInt(s)!==n)throw new ke(`Length mismatch: expected ${s} bytes but got ${n} instead.`);return{type:a,object:Buffer.from(t.slice(i+1))}}}class Gt{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 um(e,t){const r=new Gt(e),i=al(r);if(i!==t.byteLength)throw new ke(`applyDelta expected source buffer to be ${i} bytes but the provided buffer was ${t.length} bytes`);const a=al(r);let s;const n=ll(r,t);if(n.byteLength===a)s=n;else{s=Buffer.alloc(a);const o=new Gt(s);for(o.copy(n);!r.eof();)o.copy(ll(r,t));const l=o.tell();if(a!==l)throw new ke(`applyDelta expected target buffer to be ${a} bytes but the resulting buffer was ${l} bytes`)}return s}function al(e){let t=0,r=0,i=null;do i=e.readUInt8(),t|=(i&127)<<r,r+=7;while(i&128);return t}function ol(e,t,r){let i=0,a=0;for(;r--;)t&1&&(i|=e.readUInt8()<<a),t>>=1,a+=8;return i}function ll(e,t){const r=e.readUInt8(),i=128,a=15,s=112;if(r&i){const n=ol(e,r&a,4);let o=ol(e,(r&s)>>4,3);return o===0&&(o=65536),t.slice(n,n+o)}else return e.slice(r)}var lr={};(function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function r(s,n){return Object.prototype.hasOwnProperty.call(s,n)}e.assign=function(s){for(var n=Array.prototype.slice.call(arguments,1);n.length;){var o=n.shift();if(o){if(typeof o!="object")throw new TypeError(o+"must be non-object");for(var l in o)r(o,l)&&(s[l]=o[l])}}return s},e.shrinkBuf=function(s,n){return s.length===n?s:s.subarray?s.subarray(0,n):(s.length=n,s)};var i={arraySet:function(s,n,o,l,p){if(n.subarray&&s.subarray){s.set(n.subarray(o,o+l),p);return}for(var c=0;c<l;c++)s[p+c]=n[o+c]},flattenChunks:function(s){var n,o,l,p,c,h;for(l=0,n=0,o=s.length;n<o;n++)l+=s[n].length;for(h=new Uint8Array(l),p=0,n=0,o=s.length;n<o;n++)c=s[n],h.set(c,p),p+=c.length;return h}},a={arraySet:function(s,n,o,l,p){for(var c=0;c<l;c++)s[p+c]=n[o+c]},flattenChunks:function(s){return[].concat.apply([],s)}};e.setTyped=function(s){s?(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)})(lr);var Xn={},Qt={},_n={},dm=lr,hm=4,fl=0,pl=1,mm=2;function gn(e){for(var t=e.length;--t>=0;)e[t]=0}var ym=0,sc=1,_m=2,gm=3,wm=258,go=29,Jn=256,Hn=Jn+1+go,sn=30,wo=19,ic=2*Hn+1,Cr=15,Fi=16,bm=7,bo=256,ac=16,oc=17,lc=18,Ka=[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],Cs=[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],vm=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],fc=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],xm=512,sr=new Array((Hn+2)*2);gn(sr);var Ln=new Array(sn*2);gn(Ln);var Fn=new Array(xm);gn(Fn);var Bn=new Array(wm-gm+1);gn(Bn);var vo=new Array(go);gn(vo);var Ys=new Array(sn);gn(Ys);function Bi(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 pc,cc,uc;function Ui(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function dc(e){return e<256?Fn[e]:Fn[256+(e>>>7)]}function Un(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function ht(e,t,r){e.bi_valid>Fi-r?(e.bi_buf|=t<<e.bi_valid&65535,Un(e,e.bi_buf),e.bi_buf=t>>Fi-e.bi_valid,e.bi_valid+=r-Fi):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function Vt(e,t,r){ht(e,r[t*2],r[t*2+1])}function hc(e,t){var r=0;do r|=e&1,e>>>=1,r<<=1;while(--t>0);return r>>>1}function Em(e){e.bi_valid===16?(Un(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 Sm(e,t){var r=t.dyn_tree,i=t.max_code,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,n=t.stat_desc.extra_bits,o=t.stat_desc.extra_base,l=t.stat_desc.max_length,p,c,h,m,_,T,y=0;for(m=0;m<=Cr;m++)e.bl_count[m]=0;for(r[e.heap[e.heap_max]*2+1]=0,p=e.heap_max+1;p<ic;p++)c=e.heap[p],m=r[r[c*2+1]*2+1]+1,m>l&&(m=l,y++),r[c*2+1]=m,!(c>i)&&(e.bl_count[m]++,_=0,c>=o&&(_=n[c-o]),T=r[c*2],e.opt_len+=T*(m+_),s&&(e.static_len+=T*(a[c*2+1]+_)));if(y!==0){do{for(m=l-1;e.bl_count[m]===0;)m--;e.bl_count[m]--,e.bl_count[m+1]+=2,e.bl_count[l]--,y-=2}while(y>0);for(m=l;m!==0;m--)for(c=e.bl_count[m];c!==0;)h=e.heap[--p],!(h>i)&&(r[h*2+1]!==m&&(e.opt_len+=(m-r[h*2+1])*r[h*2],r[h*2+1]=m),c--)}}function mc(e,t,r){var i=new Array(Cr+1),a=0,s,n;for(s=1;s<=Cr;s++)i[s]=a=a+r[s-1]<<1;for(n=0;n<=t;n++){var o=e[n*2+1];o!==0&&(e[n*2]=hc(i[o]++,o))}}function km(){var e,t,r,i,a,s=new Array(Cr+1);for(r=0,i=0;i<go-1;i++)for(vo[i]=r,e=0;e<1<<Ka[i];e++)Bn[r++]=i;for(Bn[r-1]=i,a=0,i=0;i<16;i++)for(Ys[i]=a,e=0;e<1<<Cs[i];e++)Fn[a++]=i;for(a>>=7;i<sn;i++)for(Ys[i]=a<<7,e=0;e<1<<Cs[i]-7;e++)Fn[256+a++]=i;for(t=0;t<=Cr;t++)s[t]=0;for(e=0;e<=143;)sr[e*2+1]=8,e++,s[8]++;for(;e<=255;)sr[e*2+1]=9,e++,s[9]++;for(;e<=279;)sr[e*2+1]=7,e++,s[7]++;for(;e<=287;)sr[e*2+1]=8,e++,s[8]++;for(mc(sr,Hn+1,s),e=0;e<sn;e++)Ln[e*2+1]=5,Ln[e*2]=hc(e,5);pc=new Bi(sr,Ka,Jn+1,Hn,Cr),cc=new Bi(Ln,Cs,0,sn,Cr),uc=new Bi(new Array(0),vm,0,wo,bm)}function yc(e){var t;for(t=0;t<Hn;t++)e.dyn_ltree[t*2]=0;for(t=0;t<sn;t++)e.dyn_dtree[t*2]=0;for(t=0;t<wo;t++)e.bl_tree[t*2]=0;e.dyn_ltree[bo*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function _c(e){e.bi_valid>8?Un(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 Pm(e,t,r,i){_c(e),Un(e,r),Un(e,~r),dm.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}function cl(e,t,r,i){var a=t*2,s=r*2;return e[a]<e[s]||e[a]===e[s]&&i[t]<=i[r]}function Ni(e,t,r){for(var i=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&cl(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!cl(t,i,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=i}function ul(e,t,r){var i,a,s=0,n,o;if(e.last_lit!==0)do i=e.pending_buf[e.d_buf+s*2]<<8|e.pending_buf[e.d_buf+s*2+1],a=e.pending_buf[e.l_buf+s],s++,i===0?Vt(e,a,t):(n=Bn[a],Vt(e,n+Jn+1,t),o=Ka[n],o!==0&&(a-=vo[n],ht(e,a,o)),i--,n=dc(i),Vt(e,n,r),o=Cs[n],o!==0&&(i-=Ys[n],ht(e,i,o)));while(s<e.last_lit);Vt(e,bo,t)}function za(e,t){var r=t.dyn_tree,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,s=t.stat_desc.elems,n,o,l=-1,p;for(e.heap_len=0,e.heap_max=ic,n=0;n<s;n++)r[n*2]!==0?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):r[n*2+1]=0;for(;e.heap_len<2;)p=e.heap[++e.heap_len]=l<2?++l:0,r[p*2]=1,e.depth[p]=0,e.opt_len--,a&&(e.static_len-=i[p*2+1]);for(t.max_code=l,n=e.heap_len>>1;n>=1;n--)Ni(e,r,n);p=s;do n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Ni(e,r,1),o=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=o,r[p*2]=r[n*2]+r[o*2],e.depth[p]=(e.depth[n]>=e.depth[o]?e.depth[n]:e.depth[o])+1,r[n*2+1]=r[o*2+1]=p,e.heap[1]=p++,Ni(e,r,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Sm(e,t),mc(r,l,e.bl_count)}function dl(e,t,r){var i,a=-1,s,n=t[0*2+1],o=0,l=7,p=4;for(n===0&&(l=138,p=3),t[(r+1)*2+1]=65535,i=0;i<=r;i++)s=n,n=t[(i+1)*2+1],!(++o<l&&s===n)&&(o<p?e.bl_tree[s*2]+=o:s!==0?(s!==a&&e.bl_tree[s*2]++,e.bl_tree[ac*2]++):o<=10?e.bl_tree[oc*2]++:e.bl_tree[lc*2]++,o=0,a=s,n===0?(l=138,p=3):s===n?(l=6,p=3):(l=7,p=4))}function hl(e,t,r){var i,a=-1,s,n=t[0*2+1],o=0,l=7,p=4;for(n===0&&(l=138,p=3),i=0;i<=r;i++)if(s=n,n=t[(i+1)*2+1],!(++o<l&&s===n)){if(o<p)do Vt(e,s,e.bl_tree);while(--o!==0);else s!==0?(s!==a&&(Vt(e,s,e.bl_tree),o--),Vt(e,ac,e.bl_tree),ht(e,o-3,2)):o<=10?(Vt(e,oc,e.bl_tree),ht(e,o-3,3)):(Vt(e,lc,e.bl_tree),ht(e,o-11,7));o=0,a=s,n===0?(l=138,p=3):s===n?(l=6,p=3):(l=7,p=4)}}function Am(e){var t;for(dl(e,e.dyn_ltree,e.l_desc.max_code),dl(e,e.dyn_dtree,e.d_desc.max_code),za(e,e.bl_desc),t=wo-1;t>=3&&e.bl_tree[fc[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function Tm(e,t,r,i){var a;for(ht(e,t-257,5),ht(e,r-1,5),ht(e,i-4,4),a=0;a<i;a++)ht(e,e.bl_tree[fc[a]*2+1],3);hl(e,e.dyn_ltree,t-1),hl(e,e.dyn_dtree,r-1)}function Om(e){var t=4093624447,r;for(r=0;r<=31;r++,t>>>=1)if(t&1&&e.dyn_ltree[r*2]!==0)return fl;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return pl;for(r=32;r<Jn;r++)if(e.dyn_ltree[r*2]!==0)return pl;return fl}var ml=!1;function Cm(e){ml||(km(),ml=!0),e.l_desc=new Ui(e.dyn_ltree,pc),e.d_desc=new Ui(e.dyn_dtree,cc),e.bl_desc=new Ui(e.bl_tree,uc),e.bi_buf=0,e.bi_valid=0,yc(e)}function gc(e,t,r,i){ht(e,(ym<<1)+(i?1:0),3),Pm(e,t,r)}function Lm(e){ht(e,sc<<1,3),Vt(e,bo,sr),Em(e)}function $m(e,t,r,i){var a,s,n=0;e.level>0?(e.strm.data_type===mm&&(e.strm.data_type=Om(e)),za(e,e.l_desc),za(e,e.d_desc),n=Am(e),a=e.opt_len+3+7>>>3,s=e.static_len+3+7>>>3,s<=a&&(a=s)):a=s=r+5,r+4<=a&&t!==-1?gc(e,t,r,i):e.strategy===hm||s===a?(ht(e,(sc<<1)+(i?1:0),3),ul(e,sr,Ln)):(ht(e,(_m<<1)+(i?1:0),3),Tm(e,e.l_desc.max_code+1,e.d_desc.max_code+1,n+1),ul(e,e.dyn_ltree,e.dyn_dtree)),yc(e),i&&_c(e)}function Rm(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[(Bn[r]+Jn+1)*2]++,e.dyn_dtree[dc(t)*2]++),e.last_lit===e.lit_bufsize-1}_n._tr_init=Cm;_n._tr_stored_block=gc;_n._tr_flush_block=$m;_n._tr_tally=Rm;_n._tr_align=Lm;function Im(e,t,r,i){for(var a=e&65535|0,s=e>>>16&65535|0,n=0;r!==0;){n=r>2e3?2e3:r,r-=n;do a=a+t[i++]|0,s=s+a|0;while(--n);a%=65521,s%=65521}return a|s<<16|0}var wc=Im;function Dm(){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 Hm=Dm();function Fm(e,t,r,i){var a=Hm,s=i+r;e^=-1;for(var n=i;n<s;n++)e=e>>>8^a[(e^t[n])&255];return e^-1}var bc=Fm,xo={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"},at=lr,Ot=_n,vc=wc,hr=bc,Bm=xo,Mr=0,Um=1,Nm=3,Er=4,yl=5,Zt=0,_l=1,Ct=-2,jm=-3,ji=-5,Wm=-1,Mm=1,us=2,qm=3,Km=4,zm=0,Gm=2,di=8,Vm=9,Zm=15,Ym=8,Xm=29,Jm=256,Ga=Jm+1+Xm,Qm=30,ey=19,ty=2*Ga+1,ry=15,_e=3,vr=258,Bt=vr+_e+1,ny=32,hi=42,Va=69,Ls=73,$s=91,Rs=103,Lr=113,Tn=666,qe=1,Qn=2,Fr=3,wn=4,sy=3;function xr(e,t){return e.msg=Bm[t],t}function gl(e){return(e<<1)-(e>4?9:0)}function br(e){for(var t=e.length;--t>=0;)e[t]=0}function mr(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),r!==0&&(at.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 Qe(e,t){Ot._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,mr(e.strm)}function Se(e,t){e.pending_buf[e.pending++]=t}function xn(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function iy(e,t,r,i){var a=e.avail_in;return a>i&&(a=i),a===0?0:(e.avail_in-=a,at.arraySet(t,e.input,e.next_in,a,r),e.state.wrap===1?e.adler=vc(e.adler,t,a,r):e.state.wrap===2&&(e.adler=hr(e.adler,t,a,r)),e.next_in+=a,e.total_in+=a,a)}function xc(e,t){var r=e.max_chain_length,i=e.strstart,a,s,n=e.prev_length,o=e.nice_match,l=e.strstart>e.w_size-Bt?e.strstart-(e.w_size-Bt):0,p=e.window,c=e.w_mask,h=e.prev,m=e.strstart+vr,_=p[i+n-1],T=p[i+n];e.prev_length>=e.good_match&&(r>>=2),o>e.lookahead&&(o=e.lookahead);do if(a=t,!(p[a+n]!==T||p[a+n-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<m);if(s=vr-(m-i),i=m-vr,s>n){if(e.match_start=t,n=s,s>=o)break;_=p[i+n-1],T=p[i+n]}}while((t=h[t&c])>l&&--r!==0);return n<=e.lookahead?n:e.lookahead}function Br(e){var t=e.w_size,r,i,a,s,n;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Bt)){at.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);s+=t}if(e.strm.avail_in===0)break;if(i=iy(e.strm,e.window,e.strstart+e.lookahead,s),e.lookahead+=i,e.lookahead+e.insert>=_e)for(n=e.strstart-e.insert,e.ins_h=e.window[n],e.ins_h=(e.ins_h<<e.hash_shift^e.window[n+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[n+_e-1])&e.hash_mask,e.prev[n&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=n,n++,e.insert--,!(e.lookahead+e.insert<_e)););}while(e.lookahead<Bt&&e.strm.avail_in!==0)}function ay(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Br(e),e.lookahead===0&&t===Mr)return qe;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,Qe(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-Bt&&(Qe(e,!1),e.strm.avail_out===0))return qe}return e.insert=0,t===Er?(Qe(e,!0),e.strm.avail_out===0?Fr:wn):(e.strstart>e.block_start&&(Qe(e,!1),e.strm.avail_out===0),qe)}function Wi(e,t){for(var r,i;;){if(e.lookahead<Bt){if(Br(e),e.lookahead<Bt&&t===Mr)return qe;if(e.lookahead===0)break}if(r=0,e.lookahead>=_e&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+_e-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-Bt&&(e.match_length=xc(e,r)),e.match_length>=_e)if(i=Ot._tr_tally(e,e.strstart-e.match_start,e.match_length-_e),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=_e){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+_e-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=Ot._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Qe(e,!1),e.strm.avail_out===0))return qe}return e.insert=e.strstart<_e-1?e.strstart:_e-1,t===Er?(Qe(e,!0),e.strm.avail_out===0?Fr:wn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?qe:Qn}function zr(e,t){for(var r,i,a;;){if(e.lookahead<Bt){if(Br(e),e.lookahead<Bt&&t===Mr)return qe;if(e.lookahead===0)break}if(r=0,e.lookahead>=_e&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+_e-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=_e-1,r!==0&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-Bt&&(e.match_length=xc(e,r),e.match_length<=5&&(e.strategy===Mm||e.match_length===_e&&e.strstart-e.match_start>4096)&&(e.match_length=_e-1)),e.prev_length>=_e&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-_e,i=Ot._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-_e),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+_e-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=_e-1,e.strstart++,i&&(Qe(e,!1),e.strm.avail_out===0))return qe}else if(e.match_available){if(i=Ot._tr_tally(e,0,e.window[e.strstart-1]),i&&Qe(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return qe}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=Ot._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<_e-1?e.strstart:_e-1,t===Er?(Qe(e,!0),e.strm.avail_out===0?Fr:wn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?qe:Qn}function oy(e,t){for(var r,i,a,s,n=e.window;;){if(e.lookahead<=vr){if(Br(e),e.lookahead<=vr&&t===Mr)return qe;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=_e&&e.strstart>0&&(a=e.strstart-1,i=n[a],i===n[++a]&&i===n[++a]&&i===n[++a])){s=e.strstart+vr;do;while(i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&i===n[++a]&&a<s);e.match_length=vr-(s-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=_e?(r=Ot._tr_tally(e,1,e.match_length-_e),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=Ot._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(Qe(e,!1),e.strm.avail_out===0))return qe}return e.insert=0,t===Er?(Qe(e,!0),e.strm.avail_out===0?Fr:wn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?qe:Qn}function ly(e,t){for(var r;;){if(e.lookahead===0&&(Br(e),e.lookahead===0)){if(t===Mr)return qe;break}if(e.match_length=0,r=Ot._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(Qe(e,!1),e.strm.avail_out===0))return qe}return e.insert=0,t===Er?(Qe(e,!0),e.strm.avail_out===0?Fr:wn):e.last_lit&&(Qe(e,!1),e.strm.avail_out===0)?qe:Qn}function jt(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 rn;rn=[new jt(0,0,0,0,ay),new jt(4,4,8,4,Wi),new jt(4,5,16,8,Wi),new jt(4,6,32,32,Wi),new jt(4,4,16,16,zr),new jt(8,16,32,32,zr),new jt(8,16,128,128,zr),new jt(8,32,128,256,zr),new jt(32,128,258,1024,zr),new jt(32,258,258,4096,zr)];function fy(e){e.window_size=2*e.w_size,br(e.head),e.max_lazy_match=rn[e.level].max_lazy,e.good_match=rn[e.level].good_length,e.nice_match=rn[e.level].nice_length,e.max_chain_length=rn[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=_e-1,e.match_available=0,e.ins_h=0}function py(){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=di,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 at.Buf16(ty*2),this.dyn_dtree=new at.Buf16((2*Qm+1)*2),this.bl_tree=new at.Buf16((2*ey+1)*2),br(this.dyn_ltree),br(this.dyn_dtree),br(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new at.Buf16(ry+1),this.heap=new at.Buf16(2*Ga+1),br(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new at.Buf16(2*Ga+1),br(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 Ec(e){var t;return!e||!e.state?xr(e,Ct):(e.total_in=e.total_out=0,e.data_type=Gm,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?hi:Lr,e.adler=t.wrap===2?0:1,t.last_flush=Mr,Ot._tr_init(t),Zt)}function Sc(e){var t=Ec(e);return t===Zt&&fy(e.state),t}function cy(e,t){return!e||!e.state||e.state.wrap!==2?Ct:(e.state.gzhead=t,Zt)}function kc(e,t,r,i,a,s){if(!e)return Ct;var n=1;if(t===Wm&&(t=6),i<0?(n=0,i=-i):i>15&&(n=2,i-=16),a<1||a>Vm||r!==di||i<8||i>15||t<0||t>9||s<0||s>Km)return xr(e,Ct);i===8&&(i=9);var o=new py;return e.state=o,o.strm=e,o.wrap=n,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+_e-1)/_e),o.window=new at.Buf8(o.w_size*2),o.head=new at.Buf16(o.hash_size),o.prev=new at.Buf16(o.w_size),o.lit_bufsize=1<<a+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new at.Buf8(o.pending_buf_size),o.d_buf=1*o.lit_bufsize,o.l_buf=3*o.lit_bufsize,o.level=t,o.strategy=s,o.method=r,Sc(e)}function uy(e,t){return kc(e,t,di,Zm,Ym,zm)}function dy(e,t){var r,i,a,s;if(!e||!e.state||t>yl||t<0)return e?xr(e,Ct):Ct;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===Tn&&t!==Er)return xr(e,e.avail_out===0?ji:Ct);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===hi)if(i.wrap===2)e.adler=0,Se(i,31),Se(i,139),Se(i,8),i.gzhead?(Se(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)),Se(i,i.gzhead.time&255),Se(i,i.gzhead.time>>8&255),Se(i,i.gzhead.time>>16&255),Se(i,i.gzhead.time>>24&255),Se(i,i.level===9?2:i.strategy>=us||i.level<2?4:0),Se(i,i.gzhead.os&255),i.gzhead.extra&&i.gzhead.extra.length&&(Se(i,i.gzhead.extra.length&255),Se(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=hr(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=Va):(Se(i,0),Se(i,0),Se(i,0),Se(i,0),Se(i,0),Se(i,i.level===9?2:i.strategy>=us||i.level<2?4:0),Se(i,sy),i.status=Lr);else{var n=di+(i.w_bits-8<<4)<<8,o=-1;i.strategy>=us||i.level<2?o=0:i.level<6?o=1:i.level===6?o=2:o=3,n|=o<<6,i.strstart!==0&&(n|=ny),n+=31-n%31,i.status=Lr,xn(i,n),i.strstart!==0&&(xn(i,e.adler>>>16),xn(i,e.adler&65535)),e.adler=1}if(i.status===Va)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=hr(e.adler,i.pending_buf,i.pending-a,a)),mr(e),a=i.pending,i.pending===i.pending_buf_size));)Se(i,i.gzhead.extra[i.gzindex]&255),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=hr(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=Ls)}else i.status=Ls;if(i.status===Ls)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=hr(e.adler,i.pending_buf,i.pending-a,a)),mr(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}i.gzindex<i.gzhead.name.length?s=i.gzhead.name.charCodeAt(i.gzindex++)&255:s=0,Se(i,s)}while(s!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=hr(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.gzindex=0,i.status=$s)}else i.status=$s;if(i.status===$s)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=hr(e.adler,i.pending_buf,i.pending-a,a)),mr(e),a=i.pending,i.pending===i.pending_buf_size)){s=1;break}i.gzindex<i.gzhead.comment.length?s=i.gzhead.comment.charCodeAt(i.gzindex++)&255:s=0,Se(i,s)}while(s!==0);i.gzhead.hcrc&&i.pending>a&&(e.adler=hr(e.adler,i.pending_buf,i.pending-a,a)),s===0&&(i.status=Rs)}else i.status=Rs;if(i.status===Rs&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&mr(e),i.pending+2<=i.pending_buf_size&&(Se(i,e.adler&255),Se(i,e.adler>>8&255),e.adler=0,i.status=Lr)):i.status=Lr),i.pending!==0){if(mr(e),e.avail_out===0)return i.last_flush=-1,Zt}else if(e.avail_in===0&&gl(t)<=gl(r)&&t!==Er)return xr(e,ji);if(i.status===Tn&&e.avail_in!==0)return xr(e,ji);if(e.avail_in!==0||i.lookahead!==0||t!==Mr&&i.status!==Tn){var l=i.strategy===us?ly(i,t):i.strategy===qm?oy(i,t):rn[i.level].func(i,t);if((l===Fr||l===wn)&&(i.status=Tn),l===qe||l===Fr)return e.avail_out===0&&(i.last_flush=-1),Zt;if(l===Qn&&(t===Um?Ot._tr_align(i):t!==yl&&(Ot._tr_stored_block(i,0,0,!1),t===Nm&&(br(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),mr(e),e.avail_out===0))return i.last_flush=-1,Zt}return t!==Er?Zt:i.wrap<=0?_l:(i.wrap===2?(Se(i,e.adler&255),Se(i,e.adler>>8&255),Se(i,e.adler>>16&255),Se(i,e.adler>>24&255),Se(i,e.total_in&255),Se(i,e.total_in>>8&255),Se(i,e.total_in>>16&255),Se(i,e.total_in>>24&255)):(xn(i,e.adler>>>16),xn(i,e.adler&65535)),mr(e),i.wrap>0&&(i.wrap=-i.wrap),i.pending!==0?Zt:_l)}function hy(e){var t;return!e||!e.state?Ct:(t=e.state.status,t!==hi&&t!==Va&&t!==Ls&&t!==$s&&t!==Rs&&t!==Lr&&t!==Tn?xr(e,Ct):(e.state=null,t===Lr?xr(e,jm):Zt))}function my(e,t){var r=t.length,i,a,s,n,o,l,p,c;if(!e||!e.state||(i=e.state,n=i.wrap,n===2||n===1&&i.status!==hi||i.lookahead))return Ct;for(n===1&&(e.adler=vc(e.adler,t,r,0)),i.wrap=0,r>=i.w_size&&(n===0&&(br(i.head),i.strstart=0,i.block_start=0,i.insert=0),c=new at.Buf8(i.w_size),at.arraySet(c,t,r-i.w_size,i.w_size,0),t=c,r=i.w_size),o=e.avail_in,l=e.next_in,p=e.input,e.avail_in=r,e.next_in=0,e.input=t,Br(i);i.lookahead>=_e;){a=i.strstart,s=i.lookahead-(_e-1);do i.ins_h=(i.ins_h<<i.hash_shift^i.window[a+_e-1])&i.hash_mask,i.prev[a&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=a,a++;while(--s);i.strstart=a,i.lookahead=_e-1,Br(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=_e-1,i.match_available=0,e.next_in=l,e.input=p,e.avail_in=o,i.wrap=n,Zt}Qt.deflateInit=uy;Qt.deflateInit2=kc;Qt.deflateReset=Sc;Qt.deflateResetKeep=Ec;Qt.deflateSetHeader=cy;Qt.deflate=dy;Qt.deflateEnd=hy;Qt.deflateSetDictionary=my;Qt.deflateInfo="pako deflate (from Nodeca project)";var qr={},mi=lr,Pc=!0,Ac=!0;try{String.fromCharCode.apply(null,[0])}catch{Pc=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Ac=!1}var Nn=new mi.Buf8(256);for(var pr=0;pr<256;pr++)Nn[pr]=pr>=252?6:pr>=248?5:pr>=240?4:pr>=224?3:pr>=192?2:1;Nn[254]=Nn[254]=1;qr.string2buf=function(e){var t,r,i,a,s,n=e.length,o=0;for(a=0;a<n;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<n&&(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 mi.Buf8(o),s=0,a=0;s<o;a++)r=e.charCodeAt(a),(r&64512)===55296&&a+1<n&&(i=e.charCodeAt(a+1),(i&64512)===56320&&(r=65536+(r-55296<<10)+(i-56320),a++)),r<128?t[s++]=r:r<2048?(t[s++]=192|r>>>6,t[s++]=128|r&63):r<65536?(t[s++]=224|r>>>12,t[s++]=128|r>>>6&63,t[s++]=128|r&63):(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63,t[s++]=128|r>>>6&63,t[s++]=128|r&63);return t};function Tc(e,t){if(t<65534&&(e.subarray&&Ac||!e.subarray&&Pc))return String.fromCharCode.apply(null,mi.shrinkBuf(e,t));for(var r="",i=0;i<t;i++)r+=String.fromCharCode(e[i]);return r}qr.buf2binstring=function(e){return Tc(e,e.length)};qr.binstring2buf=function(e){for(var t=new mi.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t};qr.buf2string=function(e,t){var r,i,a,s,n=t||e.length,o=new Array(n*2);for(i=0,r=0;r<n;){if(a=e[r++],a<128){o[i++]=a;continue}if(s=Nn[a],s>4){o[i++]=65533,r+=s-1;continue}for(a&=s===2?31:s===3?15:7;s>1&&r<n;)a=a<<6|e[r++]&63,s--;if(s>1){o[i++]=65533;continue}a<65536?o[i++]=a:(a-=65536,o[i++]=55296|a>>10&1023,o[i++]=56320|a&1023)}return Tc(o,i)};qr.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+Nn[e[r]]>t?r:t};function yy(){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 Oc=yy,$n=Qt,Rn=lr,Za=qr,Ya=xo,_y=Oc,Cc=Object.prototype.toString,gy=0,Mi=4,an=0,wl=1,bl=2,wy=-1,by=0,vy=8;function Ur(e){if(!(this instanceof Ur))return new Ur(e);this.options=Rn.assign({level:wy,method:vy,chunkSize:16384,windowBits:15,memLevel:8,strategy:by,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 _y,this.strm.avail_out=0;var r=$n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==an)throw new Error(Ya[r]);if(t.header&&$n.deflateSetHeader(this.strm,t.header),t.dictionary){var i;if(typeof t.dictionary=="string"?i=Za.string2buf(t.dictionary):Cc.call(t.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(t.dictionary):i=t.dictionary,r=$n.deflateSetDictionary(this.strm,i),r!==an)throw new Error(Ya[r]);this._dict_set=!0}}Ur.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a,s;if(this.ended)return!1;s=t===~~t?t:t===!0?Mi:gy,typeof e=="string"?r.input=Za.string2buf(e):Cc.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 Rn.Buf8(i),r.next_out=0,r.avail_out=i),a=$n.deflate(r,s),a!==wl&&a!==an)return this.onEnd(a),this.ended=!0,!1;(r.avail_out===0||r.avail_in===0&&(s===Mi||s===bl))&&(this.options.to==="string"?this.onData(Za.buf2binstring(Rn.shrinkBuf(r.output,r.next_out))):this.onData(Rn.shrinkBuf(r.output,r.next_out)))}while((r.avail_in>0||r.avail_out===0)&&a!==wl);return s===Mi?(a=$n.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===an):(s===bl&&(this.onEnd(an),r.avail_out=0),!0)};Ur.prototype.onData=function(e){this.chunks.push(e)};Ur.prototype.onEnd=function(e){e===an&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Rn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Eo(e,t){var r=new Ur(t);if(r.push(e,!0),r.err)throw r.msg||Ya[r.err];return r.result}function xy(e,t){return t=t||{},t.raw=!0,Eo(e,t)}function Ey(e,t){return t=t||{},t.gzip=!0,Eo(e,t)}Xn.Deflate=Ur;Xn.deflate=Eo;Xn.deflateRaw=xy;Xn.gzip=Ey;var es={},Ut={},ds=30,Sy=12,ky=function(t,r){var i,a,s,n,o,l,p,c,h,m,_,T,y,g,w,L,S,D,O,H,k,A,$,E,P;i=t.state,a=t.next_in,E=t.input,s=a+(t.avail_in-5),n=t.next_out,P=t.output,o=n-(r-t.avail_out),l=n+(t.avail_out-257),p=i.dmax,c=i.wsize,h=i.whave,m=i.wnext,_=i.window,T=i.hold,y=i.bits,g=i.lencode,w=i.distcode,L=(1<<i.lenbits)-1,S=(1<<i.distbits)-1;e:do{y<15&&(T+=E[a++]<<y,y+=8,T+=E[a++]<<y,y+=8),D=g[T&L];t:for(;;){if(O=D>>>24,T>>>=O,y-=O,O=D>>>16&255,O===0)P[n++]=D&65535;else if(O&16){H=D&65535,O&=15,O&&(y<O&&(T+=E[a++]<<y,y+=8),H+=T&(1<<O)-1,T>>>=O,y-=O),y<15&&(T+=E[a++]<<y,y+=8,T+=E[a++]<<y,y+=8),D=w[T&S];r:for(;;){if(O=D>>>24,T>>>=O,y-=O,O=D>>>16&255,O&16){if(k=D&65535,O&=15,y<O&&(T+=E[a++]<<y,y+=8,y<O&&(T+=E[a++]<<y,y+=8)),k+=T&(1<<O)-1,k>p){t.msg="invalid distance too far back",i.mode=ds;break e}if(T>>>=O,y-=O,O=n-o,k>O){if(O=k-O,O>h&&i.sane){t.msg="invalid distance too far back",i.mode=ds;break e}if(A=0,$=_,m===0){if(A+=c-O,O<H){H-=O;do P[n++]=_[A++];while(--O);A=n-k,$=P}}else if(m<O){if(A+=c+m-O,O-=m,O<H){H-=O;do P[n++]=_[A++];while(--O);if(A=0,m<H){O=m,H-=O;do P[n++]=_[A++];while(--O);A=n-k,$=P}}}else if(A+=m-O,O<H){H-=O;do P[n++]=_[A++];while(--O);A=n-k,$=P}for(;H>2;)P[n++]=$[A++],P[n++]=$[A++],P[n++]=$[A++],H-=3;H&&(P[n++]=$[A++],H>1&&(P[n++]=$[A++]))}else{A=n-k;do P[n++]=P[A++],P[n++]=P[A++],P[n++]=P[A++],H-=3;while(H>2);H&&(P[n++]=P[A++],H>1&&(P[n++]=P[A++]))}}else if(O&64){t.msg="invalid distance code",i.mode=ds;break e}else{D=w[(D&65535)+(T&(1<<O)-1)];continue r}break}}else if(O&64)if(O&32){i.mode=Sy;break e}else{t.msg="invalid literal/length code",i.mode=ds;break e}else{D=g[(D&65535)+(T&(1<<O)-1)];continue t}break}}while(a<s&&n<l);H=y>>3,a-=H,y-=H<<3,T&=(1<<y)-1,t.next_in=a,t.next_out=n,t.avail_in=a<s?5+(s-a):5-(a-s),t.avail_out=n<l?257+(l-n):257-(n-l),i.hold=T,i.bits=y},vl=lr,Gr=15,xl=852,El=592,Sl=0,qi=1,kl=2,Py=[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],Ay=[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],Ty=[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],Oy=[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],Cy=function(t,r,i,a,s,n,o,l){var p=l.bits,c=0,h=0,m=0,_=0,T=0,y=0,g=0,w=0,L=0,S=0,D,O,H,k,A,$=null,E=0,P,I=new vl.Buf16(Gr+1),R=new vl.Buf16(Gr+1),U=null,j=0,M,Z,z;for(c=0;c<=Gr;c++)I[c]=0;for(h=0;h<a;h++)I[r[i+h]]++;for(T=p,_=Gr;_>=1&&I[_]===0;_--);if(T>_&&(T=_),_===0)return s[n++]=1<<24|64<<16|0,s[n++]=1<<24|64<<16|0,l.bits=1,0;for(m=1;m<_&&I[m]===0;m++);for(T<m&&(T=m),w=1,c=1;c<=Gr;c++)if(w<<=1,w-=I[c],w<0)return-1;if(w>0&&(t===Sl||_!==1))return-1;for(R[1]=0,c=1;c<Gr;c++)R[c+1]=R[c]+I[c];for(h=0;h<a;h++)r[i+h]!==0&&(o[R[r[i+h]]++]=h);if(t===Sl?($=U=o,P=19):t===qi?($=Py,E-=257,U=Ay,j-=257,P=256):($=Ty,U=Oy,P=-1),S=0,h=0,c=m,A=n,y=T,g=0,H=-1,L=1<<T,k=L-1,t===qi&&L>xl||t===kl&&L>El)return 1;for(;;){M=c-g,o[h]<P?(Z=0,z=o[h]):o[h]>P?(Z=U[j+o[h]],z=$[E+o[h]]):(Z=96,z=0),D=1<<c-g,O=1<<y,m=O;do O-=D,s[A+(S>>g)+O]=M<<24|Z<<16|z|0;while(O!==0);for(D=1<<c-1;S&D;)D>>=1;if(D!==0?(S&=D-1,S+=D):S=0,h++,--I[c]===0){if(c===_)break;c=r[i+o[h]]}if(c>T&&(S&k)!==H){for(g===0&&(g=T),A+=m,y=c-g,w=1<<y;y+g<_&&(w-=I[y+g],!(w<=0));)y++,w<<=1;if(L+=1<<y,t===qi&&L>xl||t===kl&&L>El)return 1;H=S&k,s[H]=T<<24|y<<16|A-n|0}}return S!==0&&(s[A+S]=c-g<<24|64<<16|0),l.bits=T,0},Et=lr,Xa=wc,Wt=bc,Ly=ky,In=Cy,$y=0,Lc=1,$c=2,Pl=4,Ry=5,hs=6,Nr=0,Iy=1,Dy=2,Lt=-2,Rc=-3,Ic=-4,Hy=-5,Al=8,Dc=1,Tl=2,Ol=3,Cl=4,Ll=5,$l=6,Rl=7,Il=8,Dl=9,Hl=10,Xs=11,tr=12,Ki=13,Fl=14,zi=15,Bl=16,Ul=17,Nl=18,jl=19,ms=20,ys=21,Wl=22,Ml=23,ql=24,Kl=25,zl=26,Gi=27,Gl=28,Vl=29,He=30,Hc=31,Fy=32,By=852,Uy=592,Ny=15,jy=Ny;function Zl(e){return(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24)}function Wy(){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 Et.Buf16(320),this.work=new Et.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Fc(e){var t;return!e||!e.state?Lt:(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Dc,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Et.Buf32(By),t.distcode=t.distdyn=new Et.Buf32(Uy),t.sane=1,t.back=-1,Nr)}function Bc(e){var t;return!e||!e.state?Lt:(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Fc(e))}function Uc(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))?Lt:(i.window!==null&&i.wbits!==t&&(i.window=null),i.wrap=r,i.wbits=t,Bc(e))}function Nc(e,t){var r,i;return e?(i=new Wy,e.state=i,i.window=null,r=Uc(e,t),r!==Nr&&(e.state=null),r):Lt}function My(e){return Nc(e,jy)}var Yl=!0,Vi,Zi;function qy(e){if(Yl){var t;for(Vi=new Et.Buf32(512),Zi=new Et.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(In(Lc,e.lens,0,288,Vi,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;In($c,e.lens,0,32,Zi,0,e.work,{bits:5}),Yl=!1}e.lencode=Vi,e.lenbits=9,e.distcode=Zi,e.distbits=5}function jc(e,t,r,i){var a,s=e.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Et.Buf8(s.wsize)),i>=s.wsize?(Et.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(a=s.wsize-s.wnext,a>i&&(a=i),Et.arraySet(s.window,t,r-i,a,s.wnext),i-=a,i?(Et.arraySet(s.window,t,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=a,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=a))),0}function Ky(e,t){var r,i,a,s,n,o,l,p,c,h,m,_,T,y,g=0,w,L,S,D,O,H,k,A,$=new Et.Buf8(4),E,P,I=[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 Lt;r=e.state,r.mode===tr&&(r.mode=Ki),n=e.next_out,a=e.output,l=e.avail_out,s=e.next_in,i=e.input,o=e.avail_in,p=r.hold,c=r.bits,h=o,m=l,A=Nr;e:for(;;)switch(r.mode){case Dc:if(r.wrap===0){r.mode=Ki;break}for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(r.wrap&2&&p===35615){r.check=0,$[0]=p&255,$[1]=p>>>8&255,r.check=Wt(r.check,$,2,0),p=0,c=0,r.mode=Tl;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=He;break}if((p&15)!==Al){e.msg="unknown compression method",r.mode=He;break}if(p>>>=4,c-=4,k=(p&15)+8,r.wbits===0)r.wbits=k;else if(k>r.wbits){e.msg="invalid window size",r.mode=He;break}r.dmax=1<<k,e.adler=r.check=1,r.mode=p&512?Hl:tr,p=0,c=0;break;case Tl:for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(r.flags=p,(r.flags&255)!==Al){e.msg="unknown compression method",r.mode=He;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=He;break}r.head&&(r.head.text=p>>8&1),r.flags&512&&($[0]=p&255,$[1]=p>>>8&255,r.check=Wt(r.check,$,2,0)),p=0,c=0,r.mode=Ol;case Ol:for(;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.head&&(r.head.time=p),r.flags&512&&($[0]=p&255,$[1]=p>>>8&255,$[2]=p>>>16&255,$[3]=p>>>24&255,r.check=Wt(r.check,$,4,0)),p=0,c=0,r.mode=Cl;case Cl:for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.head&&(r.head.xflags=p&255,r.head.os=p>>8),r.flags&512&&($[0]=p&255,$[1]=p>>>8&255,r.check=Wt(r.check,$,2,0)),p=0,c=0,r.mode=Ll;case Ll:if(r.flags&1024){for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.length=p,r.head&&(r.head.extra_len=p),r.flags&512&&($[0]=p&255,$[1]=p>>>8&255,r.check=Wt(r.check,$,2,0)),p=0,c=0}else r.head&&(r.head.extra=null);r.mode=$l;case $l:if(r.flags&1024&&(_=r.length,_>o&&(_=o),_&&(r.head&&(k=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),Et.arraySet(r.head.extra,i,s,_,k)),r.flags&512&&(r.check=Wt(r.check,i,_,s)),o-=_,s+=_,r.length-=_),r.length))break e;r.length=0,r.mode=Rl;case Rl:if(r.flags&2048){if(o===0)break e;_=0;do k=i[s+_++],r.head&&k&&r.length<65536&&(r.head.name+=String.fromCharCode(k));while(k&&_<o);if(r.flags&512&&(r.check=Wt(r.check,i,_,s)),o-=_,s+=_,k)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=Il;case Il:if(r.flags&4096){if(o===0)break e;_=0;do k=i[s+_++],r.head&&k&&r.length<65536&&(r.head.comment+=String.fromCharCode(k));while(k&&_<o);if(r.flags&512&&(r.check=Wt(r.check,i,_,s)),o-=_,s+=_,k)break e}else r.head&&(r.head.comment=null);r.mode=Dl;case Dl:if(r.flags&512){for(;c<16;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(p!==(r.check&65535)){e.msg="header crc mismatch",r.mode=He;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=tr;break;case Hl:for(;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}e.adler=r.check=Zl(p),p=0,c=0,r.mode=Xs;case Xs:if(r.havedict===0)return e.next_out=n,e.avail_out=l,e.next_in=s,e.avail_in=o,r.hold=p,r.bits=c,Dy;e.adler=r.check=1,r.mode=tr;case tr:if(t===Ry||t===hs)break e;case Ki:if(r.last){p>>>=c&7,c-=c&7,r.mode=Gi;break}for(;c<3;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}switch(r.last=p&1,p>>>=1,c-=1,p&3){case 0:r.mode=Fl;break;case 1:if(qy(r),r.mode=ms,t===hs){p>>>=2,c-=2;break e}break;case 2:r.mode=Ul;break;case 3:e.msg="invalid block type",r.mode=He}p>>>=2,c-=2;break;case Fl:for(p>>>=c&7,c-=c&7;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if((p&65535)!==(p>>>16^65535)){e.msg="invalid stored block lengths",r.mode=He;break}if(r.length=p&65535,p=0,c=0,r.mode=zi,t===hs)break e;case zi:r.mode=Bl;case Bl:if(_=r.length,_){if(_>o&&(_=o),_>l&&(_=l),_===0)break e;Et.arraySet(a,i,s,_,n),o-=_,s+=_,l-=_,n+=_,r.length-=_;break}r.mode=tr;break;case Ul:for(;c<14;){if(o===0)break e;o--,p+=i[s++]<<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=He;break}r.have=0,r.mode=Nl;case Nl:for(;r.have<r.ncode;){for(;c<3;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}r.lens[I[r.have++]]=p&7,p>>>=3,c-=3}for(;r.have<19;)r.lens[I[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,E={bits:r.lenbits},A=In($y,r.lens,0,19,r.lencode,0,r.work,E),r.lenbits=E.bits,A){e.msg="invalid code lengths set",r.mode=He;break}r.have=0,r.mode=jl;case jl:for(;r.have<r.nlen+r.ndist;){for(;g=r.lencode[p&(1<<r.lenbits)-1],w=g>>>24,L=g>>>16&255,S=g&65535,!(w<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(S<16)p>>>=w,c-=w,r.lens[r.have++]=S;else{if(S===16){for(P=w+2;c<P;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(p>>>=w,c-=w,r.have===0){e.msg="invalid bit length repeat",r.mode=He;break}k=r.lens[r.have-1],_=3+(p&3),p>>>=2,c-=2}else if(S===17){for(P=w+3;c<P;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=w,c-=w,k=0,_=3+(p&7),p>>>=3,c-=3}else{for(P=w+7;c<P;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=w,c-=w,k=0,_=11+(p&127),p>>>=7,c-=7}if(r.have+_>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=He;break}for(;_--;)r.lens[r.have++]=k}}if(r.mode===He)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=He;break}if(r.lenbits=9,E={bits:r.lenbits},A=In(Lc,r.lens,0,r.nlen,r.lencode,0,r.work,E),r.lenbits=E.bits,A){e.msg="invalid literal/lengths set",r.mode=He;break}if(r.distbits=6,r.distcode=r.distdyn,E={bits:r.distbits},A=In($c,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,E),r.distbits=E.bits,A){e.msg="invalid distances set",r.mode=He;break}if(r.mode=ms,t===hs)break e;case ms:r.mode=ys;case ys:if(o>=6&&l>=258){e.next_out=n,e.avail_out=l,e.next_in=s,e.avail_in=o,r.hold=p,r.bits=c,Ly(e,m),n=e.next_out,a=e.output,l=e.avail_out,s=e.next_in,i=e.input,o=e.avail_in,p=r.hold,c=r.bits,r.mode===tr&&(r.back=-1);break}for(r.back=0;g=r.lencode[p&(1<<r.lenbits)-1],w=g>>>24,L=g>>>16&255,S=g&65535,!(w<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(L&&!(L&240)){for(D=w,O=L,H=S;g=r.lencode[H+((p&(1<<D+O)-1)>>D)],w=g>>>24,L=g>>>16&255,S=g&65535,!(D+w<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=D,c-=D,r.back+=D}if(p>>>=w,c-=w,r.back+=w,r.length=S,L===0){r.mode=zl;break}if(L&32){r.back=-1,r.mode=tr;break}if(L&64){e.msg="invalid literal/length code",r.mode=He;break}r.extra=L&15,r.mode=Wl;case Wl:if(r.extra){for(P=r.extra;c<P;){if(o===0)break e;o--,p+=i[s++]<<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=Ml;case Ml:for(;g=r.distcode[p&(1<<r.distbits)-1],w=g>>>24,L=g>>>16&255,S=g&65535,!(w<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(!(L&240)){for(D=w,O=L,H=S;g=r.distcode[H+((p&(1<<D+O)-1)>>D)],w=g>>>24,L=g>>>16&255,S=g&65535,!(D+w<=c);){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}p>>>=D,c-=D,r.back+=D}if(p>>>=w,c-=w,r.back+=w,L&64){e.msg="invalid distance code",r.mode=He;break}r.offset=S,r.extra=L&15,r.mode=ql;case ql:if(r.extra){for(P=r.extra;c<P;){if(o===0)break e;o--,p+=i[s++]<<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=He;break}r.mode=Kl;case Kl:if(l===0)break e;if(_=m-l,r.offset>_){if(_=r.offset-_,_>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=He;break}_>r.wnext?(_-=r.wnext,T=r.wsize-_):T=r.wnext-_,_>r.length&&(_=r.length),y=r.window}else y=a,T=n-r.offset,_=r.length;_>l&&(_=l),l-=_,r.length-=_;do a[n++]=y[T++];while(--_);r.length===0&&(r.mode=ys);break;case zl:if(l===0)break e;a[n++]=r.length,l--,r.mode=ys;break;case Gi:if(r.wrap){for(;c<32;){if(o===0)break e;o--,p|=i[s++]<<c,c+=8}if(m-=l,e.total_out+=m,r.total+=m,m&&(e.adler=r.check=r.flags?Wt(r.check,a,m,n-m):Xa(r.check,a,m,n-m)),m=l,(r.flags?p:Zl(p))!==r.check){e.msg="incorrect data check",r.mode=He;break}p=0,c=0}r.mode=Gl;case Gl:if(r.wrap&&r.flags){for(;c<32;){if(o===0)break e;o--,p+=i[s++]<<c,c+=8}if(p!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=He;break}p=0,c=0}r.mode=Vl;case Vl:A=Iy;break e;case He:A=Rc;break e;case Hc:return Ic;case Fy:default:return Lt}return e.next_out=n,e.avail_out=l,e.next_in=s,e.avail_in=o,r.hold=p,r.bits=c,(r.wsize||m!==e.avail_out&&r.mode<He&&(r.mode<Gi||t!==Pl))&&jc(e,e.output,e.next_out,m-e.avail_out),h-=e.avail_in,m-=e.avail_out,e.total_in+=h,e.total_out+=m,r.total+=m,r.wrap&&m&&(e.adler=r.check=r.flags?Wt(r.check,a,m,e.next_out-m):Xa(r.check,a,m,e.next_out-m)),e.data_type=r.bits+(r.last?64:0)+(r.mode===tr?128:0)+(r.mode===ms||r.mode===zi?256:0),(h===0&&m===0||t===Pl)&&A===Nr&&(A=Hy),A}function zy(e){if(!e||!e.state)return Lt;var t=e.state;return t.window&&(t.window=null),e.state=null,Nr}function Gy(e,t){var r;return!e||!e.state||(r=e.state,!(r.wrap&2))?Lt:(r.head=t,t.done=!1,Nr)}function Vy(e,t){var r=t.length,i,a,s;return!e||!e.state||(i=e.state,i.wrap!==0&&i.mode!==Xs)?Lt:i.mode===Xs&&(a=1,a=Xa(a,t,r,0),a!==i.check)?Rc:(s=jc(e,t,r,r),s?(i.mode=Hc,Ic):(i.havedict=1,Nr))}Ut.inflateReset=Bc;Ut.inflateReset2=Uc;Ut.inflateResetKeep=Fc;Ut.inflateInit=My;Ut.inflateInit2=Nc;Ut.inflate=Ky;Ut.inflateEnd=zy;Ut.inflateGetHeader=Gy;Ut.inflateSetDictionary=Vy;Ut.inflateInfo="pako inflate (from Nodeca project)";var Wc={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 Zy(){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 Yy=Zy,on=Ut,Dn=lr,Is=qr,Ue=Wc,Ja=xo,Xy=Oc,Jy=Yy,Mc=Object.prototype.toString;function jr(e){if(!(this instanceof jr))return new jr(e);this.options=Dn.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 Xy,this.strm.avail_out=0;var r=on.inflateInit2(this.strm,t.windowBits);if(r!==Ue.Z_OK)throw new Error(Ja[r]);if(this.header=new Jy,on.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Is.string2buf(t.dictionary):Mc.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=on.inflateSetDictionary(this.strm,t.dictionary),r!==Ue.Z_OK)))throw new Error(Ja[r])}jr.prototype.push=function(e,t){var r=this.strm,i=this.options.chunkSize,a=this.options.dictionary,s,n,o,l,p,c=!1;if(this.ended)return!1;n=t===~~t?t:t===!0?Ue.Z_FINISH:Ue.Z_NO_FLUSH,typeof e=="string"?r.input=Is.binstring2buf(e):Mc.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 Dn.Buf8(i),r.next_out=0,r.avail_out=i),s=on.inflate(r,Ue.Z_NO_FLUSH),s===Ue.Z_NEED_DICT&&a&&(s=on.inflateSetDictionary(this.strm,a)),s===Ue.Z_BUF_ERROR&&c===!0&&(s=Ue.Z_OK,c=!1),s!==Ue.Z_STREAM_END&&s!==Ue.Z_OK)return this.onEnd(s),this.ended=!0,!1;r.next_out&&(r.avail_out===0||s===Ue.Z_STREAM_END||r.avail_in===0&&(n===Ue.Z_FINISH||n===Ue.Z_SYNC_FLUSH))&&(this.options.to==="string"?(o=Is.utf8border(r.output,r.next_out),l=r.next_out-o,p=Is.buf2string(r.output,o),r.next_out=l,r.avail_out=i-l,l&&Dn.arraySet(r.output,r.output,o,l,0),this.onData(p)):this.onData(Dn.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)&&s!==Ue.Z_STREAM_END);return s===Ue.Z_STREAM_END&&(n=Ue.Z_FINISH),n===Ue.Z_FINISH?(s=on.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===Ue.Z_OK):(n===Ue.Z_SYNC_FLUSH&&(this.onEnd(Ue.Z_OK),r.avail_out=0),!0)};jr.prototype.onData=function(e){this.chunks.push(e)};jr.prototype.onEnd=function(e){e===Ue.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Dn.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function So(e,t){var r=new jr(t);if(r.push(e,!0),r.err)throw r.msg||Ja[r.err];return r.result}function Qy(e,t){return t=t||{},t.raw=!0,So(e,t)}es.Inflate=jr;es.inflate=So;es.inflateRaw=Qy;es.ungzip=So;var e0=lr.assign,t0=Xn,r0=es,n0=Wc,qc={};e0(qc,t0,r0,n0);var s0=qc;const ko=po(s0);async function i0(e,t){const r=new Qp(e);let i=await r.read(4);if(i=i.toString("utf8"),i!=="PACK")throw new ke(`Invalid PACK header '${i}'`);let a=await r.read(4);if(a=a.readUInt32BE(0),a!==2)throw new ke(`Invalid packfile version: ${a}`);let s=await r.read(4);if(s=s.readUInt32BE(0),!(s<1))for(;!r.eof()&&s--;){const n=r.tell(),{type:o,length:l,ofs:p,reference:c}=await a0(r),h=new ko.Inflate;for(;!h.result;){const m=await r.chunk();if(!m)break;if(h.push(m,!1),h.err)throw new ke(`Pako error: ${h.msg}`);if(h.result){if(h.result.length!==l)throw new ke("Inflated object size is different from that stated in packfile.");await r.undo(),await r.read(m.length-h.strm.avail_in);const _=r.tell();await t({data:h.result,type:o,num:s,offset:n,end:_,reference:c,ofs:p})}}}}async function a0(e){let t=await e.byte();const r=t>>4&7;let i=t&15;if(t&128){let n=4;do t=await e.byte(),i|=(t&127)<<n,n+=7;while(t&128)}let a,s;if(r===6){let n=0;a=0;const o=[];do t=await e.byte(),a|=(t&127)<<n,n+=7,o.push(t);while(t&128);s=Buffer.from(o)}return r===7&&(s=await e.read(20)),{type:r,length:i,ofs:a,reference:s}}async function o0(e){return ko.inflate(e)}var Qa={exports:{}};typeof Object.create=="function"?Qa.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Qa.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 l0=Qa.exports,eo={exports:{}},Po={},yi={};yi.byteLength=c0;yi.toByteArray=d0;yi.fromByteArray=y0;var Yt=[],At=[],f0=typeof Uint8Array<"u"?Uint8Array:Array,Yi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Vr=0,p0=Yi.length;Vr<p0;++Vr)Yt[Vr]=Yi[Vr],At[Yi.charCodeAt(Vr)]=Vr;At[45]=62;At[95]=63;function Kc(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 c0(e){var t=Kc(e),r=t[0],i=t[1];return(r+i)*3/4-i}function u0(e,t,r){return(t+r)*3/4-r}function d0(e){var t,r=Kc(e),i=r[0],a=r[1],s=new f0(u0(e,i,a)),n=0,o=a>0?i-4:i,l;for(l=0;l<o;l+=4)t=At[e.charCodeAt(l)]<<18|At[e.charCodeAt(l+1)]<<12|At[e.charCodeAt(l+2)]<<6|At[e.charCodeAt(l+3)],s[n++]=t>>16&255,s[n++]=t>>8&255,s[n++]=t&255;return a===2&&(t=At[e.charCodeAt(l)]<<2|At[e.charCodeAt(l+1)]>>4,s[n++]=t&255),a===1&&(t=At[e.charCodeAt(l)]<<10|At[e.charCodeAt(l+1)]<<4|At[e.charCodeAt(l+2)]>>2,s[n++]=t>>8&255,s[n++]=t&255),s}function h0(e){return Yt[e>>18&63]+Yt[e>>12&63]+Yt[e>>6&63]+Yt[e&63]}function m0(e,t,r){for(var i,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(e[s+2]&255),a.push(h0(i));return a.join("")}function y0(e){for(var t,r=e.length,i=r%3,a=[],s=16383,n=0,o=r-i;n<o;n+=s)a.push(m0(e,n,n+s>o?o:n+s));return i===1?(t=e[r-1],a.push(Yt[t>>2]+Yt[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],a.push(Yt[t>>10]+Yt[t>>4&63]+Yt[t<<2&63]+"=")),a.join("")}var Ao={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Ao.read=function(e,t,r,i,a){var s,n,o=a*8-i-1,l=(1<<o)-1,p=l>>1,c=-7,h=r?a-1:0,m=r?-1:1,_=e[t+h];for(h+=m,s=_&(1<<-c)-1,_>>=-c,c+=o;c>0;s=s*256+e[t+h],h+=m,c-=8);for(n=s&(1<<-c)-1,s>>=-c,c+=i;c>0;n=n*256+e[t+h],h+=m,c-=8);if(s===0)s=1-p;else{if(s===l)return n?NaN:(_?-1:1)*(1/0);n=n+Math.pow(2,i),s=s-p}return(_?-1:1)*n*Math.pow(2,s-i)};Ao.write=function(e,t,r,i,a,s){var n,o,l,p=s*8-a-1,c=(1<<p)-1,h=c>>1,m=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,_=i?0:s-1,T=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,n=c):(n=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-n))<1&&(n--,l*=2),n+h>=1?t+=m/l:t+=m*Math.pow(2,1-h),t*l>=2&&(n++,l/=2),n+h>=c?(o=0,n=c):n+h>=1?(o=(t*l-1)*Math.pow(2,a),n=n+h):(o=t*Math.pow(2,h-1)*Math.pow(2,a),n=0));a>=8;e[r+_]=o&255,_+=T,o/=256,a-=8);for(n=n<<a|o,p+=a;p>0;e[r+_]=n&255,_+=T,n/=256,p-=8);e[r+_-T]|=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=pi,r=vo,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.SlowBuffer=O,e.INSPECT_MAX_BYTES=50;var a=2147483647;e.kMaxLength=a,o.TYPED_ARRAY_SUPPORT=s(),!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 s(){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 n(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 R(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(De(v,ArrayBuffer)||v&&De(v.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(De(v,SharedArrayBuffer)||v&&De(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 C=v.valueOf&&v.valueOf();if(C!=null&&C!==v)return o.from(C,u,d);var B=_(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?n(v):u!==void 0?typeof d=="string"?n(v).fill(u,d):n(v).fill(u):n(v)}o.alloc=function(v,u,d){return c(v,u,d)};function m(v){return p(v),n(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=k(v,u)|0,C=n(d),B=C.write(v,u);return B!==d&&(C=C.slice(0,B)),C}function g(v){for(var u=v.length<0?0:b(v.length)|0,d=n(u),C=0;C<u;C+=1)d[C]=v[C]&255;return d}function R(v){if(De(v,Uint8Array)){var u=new Uint8Array(v);return y(u.buffer,u.byteOffset,u.byteLength)}return g(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 C;return u===void 0&&d===void 0?C=new Uint8Array(v):d===void 0?C=new Uint8Array(v,u):C=new Uint8Array(v,u,d),Object.setPrototypeOf(C,o.prototype),C}function _(v){if(o.isBuffer(v)){var u=b(v.length)|0,d=n(u);return d.length===0||v.copy(d,0,0,u),d}if(v.length!==void 0)return typeof v.length!="number"||ft(v.length)?n(0):g(v);if(v.type==="Buffer"&&Array.isArray(v.data))return g(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 O(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(De(u,Uint8Array)&&(u=o.from(u,u.offset,u.byteLength)),De(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 C=u.length,B=d.length,K=0,X=Math.min(C,B);K<X;++K)if(u[K]!==d[K]){C=u[K],B=d[K];break}return C<B?-1:B<C?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 C;if(d===void 0)for(d=0,C=0;C<u.length;++C)d+=u[C].length;var B=o.allocUnsafe(d),K=0;for(C=0;C<u.length;++C){var X=u[C];if(De(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 k(v,u){if(o.isBuffer(v))return v.length;if(ArrayBuffer.isView(v)||De(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,C=arguments.length>2&&arguments[2]===!0;if(!C&&d===0)return 0;for(var B=!1;;)switch(u){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return Ce(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return St(v).length;default:if(B)return C?-1:Ce(v).length;u=(""+u).toLowerCase(),B=!0}}o.byteLength=k;function D(v,u,d){var C=!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 se(this,u,d);case"utf8":case"utf-8":return j(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 G(this,u,d);default:if(C)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),C=!0}}o.prototype._isBuffer=!0;function T(v,u,d){var C=v[u];v[u]=v[d],v[d]=C}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)T(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)T(this,d,d+3),T(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)T(this,d,d+7),T(this,d+1,d+6),T(this,d+2,d+5),T(this,d+3,d+4);return this},o.prototype.toString=function(){var u=this.length;return u===0?"":arguments.length===0?j(this,0,u):D.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,C,B,K){if(De(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),C===void 0&&(C=u?u.length:0),B===void 0&&(B=0),K===void 0&&(K=this.length),d<0||C>u.length||B<0||K>this.length)throw new RangeError("out of range index");if(B>=K&&d>=C)return 0;if(B>=K)return-1;if(d>=C)return 1;if(d>>>=0,C>>>=0,B>>>=0,K>>>=0,this===u)return 0;for(var X=K-B,pe=C-d,_e=Math.min(X,pe),he=this.slice(B,K),Be=u.slice(d,C),ue=0;ue<_e;++ue)if(he[ue]!==Be[ue]){X=he[ue],pe=Be[ue];break}return X<pe?-1:pe<X?1:0};function H(v,u,d,C,B){if(v.length===0)return-1;if(typeof d=="string"?(C=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,ft(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,C)),o.isBuffer(u))return u.length===0?-1:E(v,u,d,C,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):E(v,[u],d,C,B);throw new TypeError("val must be string, number or Buffer")}function E(v,u,d,C,B){var K=1,X=v.length,pe=u.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(v.length<2||u.length<2)return-1;K=2,X/=2,pe/=2,d/=2}function _e(rt,Ot){return K===1?rt[Ot]:rt.readUInt16BE(Ot*K)}var he;if(B){var Be=-1;for(he=d;he<X;he++)if(_e(v,he)===_e(u,Be===-1?0:he-Be)){if(Be===-1&&(Be=he),he-Be+1===pe)return Be*K}else Be!==-1&&(he-=he-Be),Be=-1}else for(d+pe>X&&(d=X-pe),he=d;he>=0;he--){for(var ue=!0,mt=0;mt<pe;mt++)if(_e(v,he+mt)!==_e(u,mt)){ue=!1;break}if(ue)return he}return-1}o.prototype.includes=function(u,d,C){return this.indexOf(u,d,C)!==-1},o.prototype.indexOf=function(u,d,C){return H(this,u,d,C,!0)},o.prototype.lastIndexOf=function(u,d,C){return H(this,u,d,C,!1)};function A(v,u,d,C){d=Number(d)||0;var B=v.length-d;C?(C=Number(C),C>B&&(C=B)):C=B;var K=u.length;C>K/2&&(C=K/2);for(var X=0;X<C;++X){var pe=parseInt(u.substr(X*2,2),16);if(ft(pe))return X;v[d+X]=pe}return X}function L(v,u,d,C){return $e(Ce(u,v.length-d),v,d,C)}function S(v,u,d,C){return $e(Xe(u),v,d,C)}function P(v,u,d,C){return $e(St(u),v,d,C)}function $(v,u,d,C){return $e(tt(u,v.length-d),v,d,C)}o.prototype.write=function(u,d,C,B){if(d===void 0)B="utf8",C=this.length,d=0;else if(C===void 0&&typeof d=="string")B=d,C=this.length,d=0;else if(isFinite(d))d=d>>>0,isFinite(C)?(C=C>>>0,B===void 0&&(B="utf8")):(B=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var K=this.length-d;if((C===void 0||C>K)&&(C=K),u.length>0&&(C<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 A(this,u,d,C);case"utf8":case"utf-8":return L(this,u,d,C);case"ascii":case"latin1":case"binary":return S(this,u,d,C);case"base64":return P(this,u,d,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,u,d,C);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 j(v,u,d){d=Math.min(v.length,d);for(var C=[],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,Be,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],Be=v[B+3],(_e&192)===128&&(he&192)===128&&(Be&192)===128&&(ue=(K&15)<<18|(_e&63)<<12|(he&63)<<6|Be&63,ue>65535&&ue<1114112&&(X=ue))}}X===null?(X=65533,pe=1):X>65535&&(X-=65536,C.push(X>>>10&1023|55296),X=56320|X&1023),C.push(X),B+=pe}return M(C)}var U=4096;function M(v){var u=v.length;if(u<=U)return String.fromCharCode.apply(String,v);for(var d="",C=0;C<u;)d+=String.fromCharCode.apply(String,v.slice(C,C+=U));return d}function Z(v,u,d){var C="";d=Math.min(v.length,d);for(var B=u;B<d;++B)C+=String.fromCharCode(v[B]&127);return C}function z(v,u,d){var C="";d=Math.min(v.length,d);for(var B=u;B<d;++B)C+=String.fromCharCode(v[B]);return C}function se(v,u,d){var C=v.length;(!u||u<0)&&(u=0),(!d||d<0||d>C)&&(d=C);for(var B="",K=u;K<d;++K)B+=Le[v[K]];return B}function G(v,u,d){for(var C=v.slice(u,d),B="",K=0;K<C.length-1;K+=2)B+=String.fromCharCode(C[K]+C[K+1]*256);return B}o.prototype.slice=function(u,d){var C=this.length;u=~~u,d=d===void 0?C:~~d,u<0?(u+=C,u<0&&(u=0)):u>C&&(u=C),d<0?(d+=C,d<0&&(d=0)):d>C&&(d=C),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,C){u=u>>>0,d=d>>>0,C||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,C){u=u>>>0,d=d>>>0,C||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,C){u=u>>>0,d=d>>>0,C||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,C){u=u>>>0,d=d>>>0,C||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 C=this[u]|this[u+1]<<8;return C&32768?C|4294901760:C},o.prototype.readInt16BE=function(u,d){u=u>>>0,d||Q(u,2,this.length);var C=this[u+1]|this[u]<<8;return C&32768?C|4294901760:C},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,C,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+C>v.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(u,d,C,B){if(u=+u,d=d>>>0,C=C>>>0,!B){var K=Math.pow(2,8*C)-1;ee(this,u,d,C,K,0)}var X=1,pe=0;for(this[d]=u&255;++pe<C&&(X*=256);)this[d+pe]=u/X&255;return d+C},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(u,d,C,B){if(u=+u,d=d>>>0,C=C>>>0,!B){var K=Math.pow(2,8*C)-1;ee(this,u,d,C,K,0)}var X=C-1,pe=1;for(this[d+X]=u&255;--X>=0&&(pe*=256);)this[d+X]=u/pe&255;return d+C},o.prototype.writeUint8=o.prototype.writeUInt8=function(u,d,C){return u=+u,d=d>>>0,C||ee(this,u,d,1,255,0),this[d]=u&255,d+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(u,d,C){return u=+u,d=d>>>0,C||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,C){return u=+u,d=d>>>0,C||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,C){return u=+u,d=d>>>0,C||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,C){return u=+u,d=d>>>0,C||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,C,B){if(u=+u,d=d>>>0,!B){var K=Math.pow(2,8*C-1);ee(this,u,d,C,K-1,-K)}var X=0,pe=1,_e=0;for(this[d]=u&255;++X<C&&(pe*=256);)u<0&&_e===0&&this[d+X-1]!==0&&(_e=1),this[d+X]=(u/pe>>0)-_e&255;return d+C},o.prototype.writeIntBE=function(u,d,C,B){if(u=+u,d=d>>>0,!B){var K=Math.pow(2,8*C-1);ee(this,u,d,C,K-1,-K)}var X=C-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+C},o.prototype.writeInt8=function(u,d,C){return u=+u,d=d>>>0,C||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,C){return u=+u,d=d>>>0,C||ee(this,u,d,2,32767,-32768),this[d]=u&255,this[d+1]=u>>>8,d+2},o.prototype.writeInt16BE=function(u,d,C){return u=+u,d=d>>>0,C||ee(this,u,d,2,32767,-32768),this[d]=u>>>8,this[d+1]=u&255,d+2},o.prototype.writeInt32LE=function(u,d,C){return u=+u,d=d>>>0,C||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,C){return u=+u,d=d>>>0,C||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 V(v,u,d,C,B,K){if(d+C>v.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function fe(v,u,d,C,B){return u=+u,d=d>>>0,B||V(v,u,d,4),r.write(v,u,d,C,23,4),d+4}o.prototype.writeFloatLE=function(u,d,C){return fe(this,u,d,!0,C)},o.prototype.writeFloatBE=function(u,d,C){return fe(this,u,d,!1,C)};function ie(v,u,d,C,B){return u=+u,d=d>>>0,B||V(v,u,d,8),r.write(v,u,d,C,52,8),d+8}o.prototype.writeDoubleLE=function(u,d,C){return ie(this,u,d,!0,C)},o.prototype.writeDoubleBE=function(u,d,C){return ie(this,u,d,!1,C)},o.prototype.copy=function(u,d,C,B){if(!o.isBuffer(u))throw new TypeError("argument should be a Buffer");if(C||(C=0),!B&&B!==0&&(B=this.length),d>=u.length&&(d=u.length),d||(d=0),B>0&&B<C&&(B=C),B===C||u.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=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-C&&(B=u.length-d+C);var K=B-C;return this===u&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(d,C,B):Uint8Array.prototype.set.call(u,this.subarray(C,B),d),K},o.prototype.fill=function(u,d,C,B){if(typeof u=="string"){if(typeof d=="string"?(B=d,d=0,C=this.length):typeof C=="string"&&(B=C,C=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<C)throw new RangeError("Out of range index");if(C<=d)return this;d=d>>>0,C=C===void 0?this.length:C>>>0,u||(u=0);var X;if(typeof u=="number")for(X=d;X<C;++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<C-d;++X)this[X+d]=pe[X%_e]}return this};var ae=/[^+/0-9A-Za-z-_]/g;function Pe(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 Ce(v,u){u=u||1/0;for(var d,C=v.length,B=null,K=[],X=0;X<C;++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===C){(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 Xe(v){for(var u=[],d=0;d<v.length;++d)u.push(v.charCodeAt(d)&255);return u}function tt(v,u){for(var d,C,B,K=[],X=0;X<v.length&&!((u-=2)<0);++X)d=v.charCodeAt(X),C=d>>8,B=d%256,K.push(B),K.push(C);return K}function St(v){return t.toByteArray(Pe(v))}function $e(v,u,d,C){for(var B=0;B<C&&!(B+d>=u.length||B>=v.length);++B)u[B+d]=v[B];return B}function De(v,u){return v instanceof u||v!=null&&v.constructor!=null&&v.constructor.name!=null&&v.constructor.name===u.name}function ft(v){return v!==v}var Le=function(){for(var v="0123456789abcdef",u=new Array(256),d=0;d<16;++d)for(var C=d*16,B=0;B<16;++B)u[C+B]=v[d]+v[B];return u}()})(bo);/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(e,t){var r=bo,i=r.Buffer;function a(n,o){for(var f in n)o[f]=n[f]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=s);function s(n,o,f){return i(n,o,f)}s.prototype=Object.create(i.prototype),a(i,s),s.from=function(n,o,f){if(typeof n=="number")throw new TypeError("Argument must not be a number");return i(n,o,f)},s.alloc=function(n,o,f){if(typeof n!="number")throw new TypeError("Argument must be a number");var p=i(n);return o!==void 0?typeof f=="string"?p.fill(o,f):p.fill(o):p.fill(0),p},s.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return i(n)},s.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(n)}})(Ga,Ga.exports);var xo=Ga.exports,Vy={}.toString,Zy=Array.isArray||function(e){return Vy.call(e)=="[object Array]"},Qn=TypeError,Nc=Object,Yy=Error,Xy=EvalError,Jy=RangeError,Qy=ReferenceError,Uc=SyntaxError,e0=URIError,t0=Math.abs,r0=Math.floor,n0=Math.max,s0=Math.min,i0=Math.pow,a0=Math.round,o0=Number.isNaN||function(t){return t!==t},l0=o0,f0=function(t){return l0(t)||t===0?t:t<0?-1:1},p0=Object.getOwnPropertyDescriptor,Is=p0;if(Is)try{Is([],"length")}catch{Is=null}var es=Is,$s=Object.defineProperty||!1;if($s)try{$s({},"a",{value:1})}catch{$s=!1}var ci=$s,Ki,zl;function Wc(){return zl||(zl=1,Ki=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var a=42;t[r]=a;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var n=Object.getOwnPropertySymbols(t);if(n.length!==1||n[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==a||o.enumerable!==!0)return!1}return!0}),Ki}var zi,Gl;function c0(){if(Gl)return zi;Gl=1;var e=typeof Symbol<"u"&&Symbol,t=Wc();return zi=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},zi}var Gi,Vl;function Mc(){return Vl||(Vl=1,Gi=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Gi}var Vi,Zl;function qc(){if(Zl)return Vi;Zl=1;var e=Nc;return Vi=e.getPrototypeOf||null,Vi}var u0="Function.prototype.bind called on incompatible ",d0=Object.prototype.toString,h0=Math.max,m0="[object Function]",Yl=function(t,r){for(var i=[],a=0;a<t.length;a+=1)i[a]=t[a];for(var s=0;s<r.length;s+=1)i[s+t.length]=r[s];return i},y0=function(t,r){for(var i=[],a=r,s=0;a<t.length;a+=1,s+=1)i[s]=t[a];return i},g0=function(e,t){for(var r="",i=0;i<e.length;i+=1)r+=e[i],i+1<e.length&&(r+=t);return r},_0=function(t){var r=this;if(typeof r!="function"||d0.apply(r)!==m0)throw new TypeError(u0+r);for(var i=y0(arguments,1),a,s=function(){if(this instanceof a){var c=r.apply(this,Yl(i,arguments));return Object(c)===c?c:this}return r.apply(t,Yl(i,arguments))},n=h0(0,r.length-i.length),o=[],f=0;f<n;f++)o[f]="$"+f;if(a=Function("binder","return function ("+g0(o,",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var p=function(){};p.prototype=r.prototype,a.prototype=new p,p.prototype=null}return a},w0=_0,ts=Function.prototype.bind||w0,So=Function.prototype.call,Zi,Xl;function ko(){return Xl||(Xl=1,Zi=Function.prototype.apply),Zi}var b0=typeof Reflect<"u"&&Reflect&&Reflect.apply,v0=ts,x0=ko(),S0=So,k0=b0,Kc=k0||v0.call(S0,x0),E0=ts,P0=Qn,A0=So,T0=Kc,Eo=function(t){if(t.length<1||typeof t[0]!="function")throw new P0("a function is required");return T0(E0,A0,t)},Yi,Jl;function C0(){if(Jl)return Yi;Jl=1;var e=Eo,t=es,r;try{r=[].__proto__===Array.prototype}catch(n){if(!n||typeof n!="object"||!("code"in n)||n.code!=="ERR_PROTO_ACCESS")throw n}var i=!!r&&t&&t(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;return Yi=i&&typeof i.get=="function"?e([i.get]):typeof s=="function"?function(o){return s(o==null?o:a(o))}:!1,Yi}var Xi,Ql;function zc(){if(Ql)return Xi;Ql=1;var e=Mc(),t=qc(),r=C0();return Xi=e?function(a){return e(a)}:t?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return t(a)}:r?function(a){return r(a)}:null,Xi}var Ji,ef;function O0(){if(ef)return Ji;ef=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=ts;return Ji=r.call(e,t),Ji}var ye,L0=Nc,R0=Yy,I0=Xy,$0=Jy,D0=Qy,pn=Uc,an=Qn,H0=e0,F0=t0,B0=r0,j0=n0,N0=s0,U0=i0,W0=a0,M0=f0,Gc=Function,Qi=function(e){try{return Gc('"use strict"; return ('+e+").constructor;")()}catch{}},jn=es,q0=ci,ea=function(){throw new an},K0=jn?function(){try{return arguments.callee,ea}catch{try{return jn(arguments,"callee").get}catch{return ea}}}():ea,Gr=c0()(),Ge=zc(),z0=qc(),G0=Mc(),Vc=ko(),rs=So,Jr={},V0=typeof Uint8Array>"u"||!Ge?ye:Ge(Uint8Array),Lr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ye:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ye:ArrayBuffer,"%ArrayIteratorPrototype%":Gr&&Ge?Ge([][Symbol.iterator]()):ye,"%AsyncFromSyncIteratorPrototype%":ye,"%AsyncFunction%":Jr,"%AsyncGenerator%":Jr,"%AsyncGeneratorFunction%":Jr,"%AsyncIteratorPrototype%":Jr,"%Atomics%":typeof Atomics>"u"?ye:Atomics,"%BigInt%":typeof BigInt>"u"?ye:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ye:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ye:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ye:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":R0,"%eval%":eval,"%EvalError%":I0,"%Float16Array%":typeof Float16Array>"u"?ye:Float16Array,"%Float32Array%":typeof Float32Array>"u"?ye:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ye:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ye:FinalizationRegistry,"%Function%":Gc,"%GeneratorFunction%":Jr,"%Int8Array%":typeof Int8Array>"u"?ye:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ye:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ye:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Gr&&Ge?Ge(Ge([][Symbol.iterator]())):ye,"%JSON%":typeof JSON=="object"?JSON:ye,"%Map%":typeof Map>"u"?ye:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Gr||!Ge?ye:Ge(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":L0,"%Object.getOwnPropertyDescriptor%":jn,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ye:Promise,"%Proxy%":typeof Proxy>"u"?ye:Proxy,"%RangeError%":$0,"%ReferenceError%":D0,"%Reflect%":typeof Reflect>"u"?ye:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ye:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Gr||!Ge?ye:Ge(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ye:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Gr&&Ge?Ge(""[Symbol.iterator]()):ye,"%Symbol%":Gr?Symbol:ye,"%SyntaxError%":pn,"%ThrowTypeError%":K0,"%TypedArray%":V0,"%TypeError%":an,"%Uint8Array%":typeof Uint8Array>"u"?ye:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ye:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ye:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ye:Uint32Array,"%URIError%":H0,"%WeakMap%":typeof WeakMap>"u"?ye:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ye:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ye:WeakSet,"%Function.prototype.call%":rs,"%Function.prototype.apply%":Vc,"%Object.defineProperty%":q0,"%Object.getPrototypeOf%":z0,"%Math.abs%":F0,"%Math.floor%":B0,"%Math.max%":j0,"%Math.min%":N0,"%Math.pow%":U0,"%Math.round%":W0,"%Math.sign%":M0,"%Reflect.getPrototypeOf%":G0};if(Ge)try{null.error}catch(e){var Z0=Ge(Ge(e));Lr["%Error.prototype%"]=Z0}var Y0=function e(t){var r;if(t==="%AsyncFunction%")r=Qi("async function () {}");else if(t==="%GeneratorFunction%")r=Qi("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Qi("async function* () {}");else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Ge&&(r=Ge(a.prototype))}return Lr[t]=r,r},tf={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ns=ts,Vs=O0(),X0=ns.call(rs,Array.prototype.concat),J0=ns.call(Vc,Array.prototype.splice),rf=ns.call(rs,String.prototype.replace),Zs=ns.call(rs,String.prototype.slice),Q0=ns.call(rs,RegExp.prototype.exec),eg=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,tg=/\\(\\)?/g,rg=function(t){var r=Zs(t,0,1),i=Zs(t,-1);if(r==="%"&&i!=="%")throw new pn("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new pn("invalid intrinsic syntax, expected opening `%`");var a=[];return rf(t,eg,function(s,n,o,f){a[a.length]=o?rf(f,tg,"$1"):n||s}),a},ng=function(t,r){var i=t,a;if(Vs(tf,i)&&(a=tf[i],i="%"+a[0]+"%"),Vs(Lr,i)){var s=Lr[i];if(s===Jr&&(s=Y0(i)),typeof s>"u"&&!r)throw new an("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:i,value:s}}throw new pn("intrinsic "+t+" does not exist!")},Zc=function(t,r){if(typeof t!="string"||t.length===0)throw new an("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new an('"allowMissing" argument must be a boolean');if(Q0(/^%?[^%]*%?$/,t)===null)throw new pn("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=rg(t),a=i.length>0?i[0]:"",s=ng("%"+a+"%",r),n=s.name,o=s.value,f=!1,p=s.alias;p&&(a=p[0],J0(i,X0([0,1],p)));for(var c=1,m=!0;c<i.length;c+=1){var h=i[c],g=Zs(h,0,1),R=Zs(h,-1);if((g==='"'||g==="'"||g==="`"||R==='"'||R==="'"||R==="`")&&g!==R)throw new pn("property names with quotes must have matching quotes");if((h==="constructor"||!m)&&(f=!0),a+="."+h,n="%"+a+"%",Vs(Lr,n))o=Lr[n];else if(o!=null){if(!(h in o)){if(!r)throw new an("base intrinsic for "+t+" exists, but the property is not available.");return}if(jn&&c+1>=i.length){var y=jn(o,h);m=!!y,m&&"get"in y&&!("originalValue"in y.get)?o=y.get:o=o[h]}else m=Vs(o,h),o=o[h];m&&!f&&(Lr[n]=o)}}return o},Yc=Zc,Xc=Eo,sg=Xc([Yc("%String.prototype.indexOf%")]),Jc=function(t,r){var i=Yc(t,!!r);return typeof i=="function"&&sg(t,".prototype.")>-1?Xc([i]):i},ta,nf;function ig(){if(nf)return ta;nf=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,i;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw i}}),i={},t(function(){throw 42},null,r)}catch(O){O!==i&&(t=null)}else t=null;var a=/^\s*class\b/,s=function(k){try{var D=e.call(k);return a.test(D)}catch{return!1}},n=function(k){try{return s(k)?!1:(e.call(k),!0)}catch{return!1}},o=Object.prototype.toString,f="[object Object]",p="[object Function]",c="[object GeneratorFunction]",m="[object HTMLAllCollection]",h="[object HTML document.all class]",g="[object HTMLCollection]",R=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),_=function(){return!1};if(typeof document=="object"){var b=document.all;o.call(b)===o.call(document.all)&&(_=function(k){if((y||!k)&&(typeof k>"u"||typeof k=="object"))try{var D=o.call(k);return(D===m||D===h||D===g||D===f)&&k("")==null}catch{}return!1})}return ta=t?function(k){if(_(k))return!0;if(!k||typeof k!="function"&&typeof k!="object")return!1;try{t(k,null,r)}catch(D){if(D!==i)return!1}return!s(k)&&n(k)}:function(k){if(_(k))return!0;if(!k||typeof k!="function"&&typeof k!="object")return!1;if(R)return n(k);if(s(k))return!1;var D=o.call(k);return D!==p&&D!==c&&!/^\[object HTML/.test(D)?!1:n(k)},ta}var ra,sf;function ag(){if(sf)return ra;sf=1;var e=ig(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,i=function(f,p,c){for(var m=0,h=f.length;m<h;m++)r.call(f,m)&&(c==null?p(f[m],m,f):p.call(c,f[m],m,f))},a=function(f,p,c){for(var m=0,h=f.length;m<h;m++)c==null?p(f.charAt(m),m,f):p.call(c,f.charAt(m),m,f)},s=function(f,p,c){for(var m in f)r.call(f,m)&&(c==null?p(f[m],m,f):p.call(c,f[m],m,f))};function n(o){return t.call(o)==="[object Array]"}return ra=function(f,p,c){if(!e(p))throw new TypeError("iterator must be a function");var m;arguments.length>=3&&(m=c),n(f)?i(f,p,m):typeof f=="string"?a(f,p,m):s(f,p,m)},ra}var na,af;function og(){return af||(af=1,na=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),na}var sa,of;function lg(){if(of)return sa;of=1;var e=og(),t=typeof globalThis>"u"?Ip:globalThis;return sa=function(){for(var i=[],a=0;a<e.length;a++)typeof t[e[a]]=="function"&&(i[i.length]=e[a]);return i},sa}var ia={exports:{}},aa,lf;function fg(){if(lf)return aa;lf=1;var e=ci,t=Uc,r=Qn,i=es;return aa=function(s,n,o){if(!s||typeof s!="object"&&typeof s!="function")throw new r("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,p=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,m=arguments.length>6?arguments[6]:!1,h=!!i&&i(s,n);if(e)e(s,n,{configurable:c===null&&h?h.configurable:!c,enumerable:f===null&&h?h.enumerable:!f,value:o,writable:p===null&&h?h.writable:!p});else if(m||!f&&!p&&!c)s[n]=o;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},aa}var oa,ff;function pg(){if(ff)return oa;ff=1;var e=ci,t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},oa=t,oa}var la,pf;function cg(){if(pf)return la;pf=1;var e=Zc,t=fg(),r=pg()(),i=es,a=Qn,s=e("%Math.floor%");return la=function(o,f){if(typeof o!="function")throw new a("`fn` is not a function");if(typeof f!="number"||f<0||f>4294967295||s(f)!==f)throw new a("`length` must be a positive 32-bit integer");var p=arguments.length>2&&!!arguments[2],c=!0,m=!0;if("length"in o&&i){var h=i(o,"length");h&&!h.configurable&&(c=!1),h&&!h.writable&&(m=!1)}return(c||m||!p)&&(r?t(o,"length",f,!0,!0):t(o,"length",f)),o},la}var fa,cf;function ug(){if(cf)return fa;cf=1;var e=ts,t=ko(),r=Kc;return fa=function(){return r(e,t,arguments)},fa}var uf;function dg(){return uf||(uf=1,function(e){var t=cg(),r=ci,i=Eo,a=ug();e.exports=function(n){var o=i(arguments),f=n.length-(arguments.length-1);return t(o,1+(f>0?f:0),!0)},r?r(e.exports,"apply",{value:a}):e.exports.apply=a}(ia)),ia.exports}var pa,df;function hg(){if(df)return pa;df=1;var e=Wc();return pa=function(){return e()&&!!Symbol.toStringTag},pa}var ca,hf;function mg(){if(hf)return ca;hf=1;var e=ag(),t=lg(),r=dg(),i=Jc,a=es,s=zc(),n=i("Object.prototype.toString"),o=hg()(),f=typeof globalThis>"u"?Ip:globalThis,p=t(),c=i("String.prototype.slice"),m=i("Array.prototype.indexOf",!0)||function(_,b){for(var O=0;O<_.length;O+=1)if(_[O]===b)return O;return-1},h={__proto__:null};o&&a&&s?e(p,function(y){var _=new f[y];if(Symbol.toStringTag in _&&s){var b=s(_),O=a(b,Symbol.toStringTag);if(!O&&b){var k=s(b);O=a(k,Symbol.toStringTag)}h["$"+y]=r(O.get)}}):e(p,function(y){var _=new f[y],b=_.slice||_.set;b&&(h["$"+y]=r(b))});var g=function(_){var b=!1;return e(h,function(O,k){if(!b)try{"$"+O(_)===k&&(b=c(k,1))}catch{}}),b},R=function(_){var b=!1;return e(h,function(O,k){if(!b)try{O(_),b=c(k,1)}catch{}}),b};return ca=function(_){if(!_||typeof _!="object")return!1;if(!o){var b=c(n(_),8,-1);return m(p,b)>-1?b:b!=="Object"?!1:R(_)}return a?g(_):null},ca}var ua,mf;function yg(){if(mf)return ua;mf=1;var e=mg();return ua=function(r){return!!e(r)},ua}var gg=Qn,_g=Jc,wg=_g("TypedArray.prototype.buffer",!0),bg=yg(),vg=wg||function(t){if(!bg(t))throw new gg("Not a Typed Array");return t.buffer},Rt=xo.Buffer,xg=Zy,Sg=vg,kg=ArrayBuffer.isView||function(t){try{return Sg(t),!0}catch{return!1}},Eg=typeof Uint8Array<"u",Qc=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",Pg=Qc&&(Rt.prototype instanceof Uint8Array||Rt.TYPED_ARRAY_SUPPORT),Ag=function(t,r){if(Rt.isBuffer(t))return t.constructor&&!("isBuffer"in t)?Rt.from(t):t;if(typeof t=="string")return Rt.from(t,r);if(Qc&&kg(t)){if(t.byteLength===0)return Rt.alloc(0);if(Pg){var i=Rt.from(t.buffer,t.byteOffset,t.byteLength);if(i.byteLength===t.byteLength)return i}var a=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),s=Rt.from(a);if(s.length===t.byteLength)return s}if(Eg&&t instanceof Uint8Array)return Rt.from(t);var n=xg(t);if(n)for(var o=0;o<t.length;o+=1){var f=t[o];if(typeof f!="number"||f<0||f>255||~~f!==f)throw new RangeError("Array items must be numbers in the range 0-255.")}if(n||Rt.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return Rt.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},Tg=xo.Buffer,Cg=Ag;function ui(e,t){this._block=Tg.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}ui.prototype.update=function(e,t){e=Cg(e,t||"utf8");for(var r=this._block,i=this._blockSize,a=e.length,s=this._len,n=0;n<a;){for(var o=s%i,f=Math.min(a-n,i-o),p=0;p<f;p++)r[o+p]=e[n+p];s+=f,n+=f,s%i===0&&this._update(r)}return this._len+=a,this};ui.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 s=this._hash();return e?s.toString(e):s};ui.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var Og=ui,Lg=jy,eu=Og,Rg=xo.Buffer,Ig=[1518500249,1859775393,-1894007588,-899497514],$g=new Array(80);function ss(){this.init(),this._w=$g,eu.call(this,64,56)}Lg(ss,eu);ss.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Dg(e){return e<<1|e>>>31}function Hg(e){return e<<5|e>>>27}function Fg(e){return e<<30|e>>>2}function Bg(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}ss.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,a=this._c|0,s=this._d|0,n=this._e|0,o=0;o<16;++o)t[o]=e.readInt32BE(o*4);for(;o<80;++o)t[o]=Dg(t[o-3]^t[o-8]^t[o-14]^t[o-16]);for(var f=0;f<80;++f){var p=~~(f/20),c=Hg(r)+Bg(p,i,a,s)+n+t[f]+Ig[p]|0;n=s,s=a,a=Fg(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=s+this._d|0,this._e=n+this._e|0};ss.prototype._hash=function(){var e=Rg.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 jg=ss;const Ng=io(jg);function Ug(e){let t="";for(const r of new Uint8Array(e))r<16&&(t+="0"),t+=r.toString(16);return t}let da=null;async function Ys(e){return da===null&&(da=await Mg()),da?tu(e):Wg(e)}function Wg(e){return new Ng().update(e).digest("hex")}async function tu(e){const t=await crypto.subtle.digest("SHA-1",e);return Ug(t)}async function Mg(){try{if(await tu(new Uint8Array([]))==="da39a3ee5e6b4b0d3255bfef95601890afd80709")return!0}catch{}return!1}function qg(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,s)=>a+1<<7|s,-1)}function Kg(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 cn{constructor(t){Object.assign(this,t),this.offsetCache={}}static async fromIdx({idx:t,getExternalRefDelta:r}){const i=new Kt(t);if(i.slice(4).toString("hex")!=="ff744f63")return;const s=i.readUInt32BE();if(s!==2)throw new Ee(`Unable to read version ${s} packfile IDX. (Only version 2 supported)`);if(t.byteLength>2048*1024*1024)throw new Ee("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 n=i.readUInt32BE(),o=[];for(let c=0;c<n;c++){const m=i.slice(20).toString("hex");o[c]=m}i.seek(i.tell()+4*n);const f=new Map;for(let c=0;c<n;c++)f.set(o[c],i.readUInt32BE());const p=i.slice(20).toString("hex");return new cn({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"},s={},n=t.slice(-20).toString("hex"),o=[],f={},p=new Map;let c=null,m=null;await Hy([t],async({data:_,type:b,reference:O,offset:k,num:D})=>{c===null&&(c=D);const T=Math.floor((c-D)*100/c);T!==m&&i&&await i({phase:"Receiving objects",loaded:c-D,total:c}),m=T,b=a[b],["commit","tree","blob","tag"].includes(b)?s[k]={type:b,offset:k}:b==="ofs-delta"?s[k]={type:b,offset:k}:b==="ref-delta"&&(s[k]={type:b,offset:k})});const h=Object.keys(s).map(Number);for(const[_,b]of h.entries()){const O=_+1===h.length?t.byteLength-20:h[_+1],k=s[b],D=Uh.buf(t.slice(b,O))>>>0;k.end=O,k.crc=D}const g=new cn({pack:Promise.resolve(t),packfileSha:n,crcs:f,hashes:o,offsets:p,getExternalRefDelta:r});m=null;let R=0;const y=[0,0,0,0,0,0,0,0,0,0,0,0];for(let _ in s){_=Number(_);const b=Math.floor(R*100/c);b!==m&&i&&await i({phase:"Resolving deltas",loaded:R,total:c}),R++,m=b;const O=s[_];if(!O.oid)try{g.readDepth=0,g.externalReadDepth=0;const{type:k,object:D}=await g.readSlice({start:_});y[g.readDepth]+=1;const T=await Ys(Wh.wrap({type:k,object:D}));O.oid=T,o.push(T),p.set(T,_),f[T]=O.crc}catch{continue}}return o.sort(),g}async toBuffer(){const t=[],r=(p,c)=>{t.push(Buffer.from(p,c))};r("ff744f63","hex"),r("00000002","hex");const i=new Kt(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 Kt(Buffer.alloc(this.hashes.length*4));for(const p of this.hashes)a.writeUInt32BE(this.crcs[p]);t.push(a.buffer);const s=new Kt(Buffer.alloc(this.hashes.length*4));for(const p of this.hashes)s.writeUInt32BE(this.offsets.get(p));t.push(s.buffer),r(this.packfileSha,"hex");const n=Buffer.concat(t),o=await Ys(n),f=Buffer.alloc(20);return f.write(o,"hex"),Buffer.concat([n,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 Ee(`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 Ee("Tried to read from a GitPackIndex with no packfile loaded into memory");const i=(await this.pack).slice(t),a=new Kt(i),s=a.readUInt8(),n=s&112;let o=r[n];if(o===void 0)throw new Ee("Unrecognized type: 0b"+n.toString(2));const f=s&15;let p=f;s&128&&(p=Kg(a,f));let m=null,h=null;if(o==="ofs_delta"){const R=qg(a),y=t-R;({object:m,type:o}=await this.readSlice({start:y}))}if(o==="ref_delta"){const R=a.slice(20).toString("hex");({object:m,type:o}=await this.read({oid:R}))}const g=i.slice(a.tell());if(h=Buffer.from(await By(g)),h.byteLength!==p)throw new Ee(`Packfile told us object would have length ${p} but it had length ${h.byteLength}`);return m&&(h=Buffer.from(Mh(h,m))),this.readDepth>3&&(this.offsetCache[t]={type:o,object:h}),{type:o,format:"content",object:h}}}class Nn extends dn{constructor(t){super(`Expected a 40-char hex object id but saw "${t}".`),this.code=this.name=Nn.code,this.data={value:t}}}Nn.code="InvalidOidError";class di extends dn{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=di.code,this.data={oid:t,actual:r,expected:i,filepath:a}}}di.code="ObjectTypeError";function zg(e){let t=e>0?e>>12:0;t!==4&&t!==8&&t!==10&&t!==14&&(t=8);let r=e&511;return r&73?r=493:r=420,t!==8&&(r=0),(t<<12)+r}const Ut=2**32;function yf(e,t,r,i){if(e!==void 0&&t!==void 0)return[e,t];r===void 0&&(r=i.valueOf());const a=Math.floor(r/1e3),s=(r-a*1e3)*1e6;return[a,s]}function gf(e){const[t,r]=yf(e.ctimeSeconds,e.ctimeNanoseconds,e.ctimeMs,e.ctime),[i,a]=yf(e.mtimeSeconds,e.mtimeNanoseconds,e.mtimeMs,e.mtime);return{ctimeSeconds:t%Ut,ctimeNanoseconds:r%Ut,mtimeSeconds:i%Ut,mtimeNanoseconds:a%Ut,dev:e.dev%Ut,ino:e.ino%Ut,mode:zg(e.mode%Ut),uid:e.uid%Ut,gid:e.gid%Ut,size:e.size>-1?e.size%Ut:0}}function Gg(e){return{assumeValid:!!(e&32768),extended:!!(e&16384),stage:(e&12288)>>12,nameLength:e&4095}}function Vg(e){const t=e.flags;return t.extended=!1,t.nameLength=Math.min(Buffer.from(e.path).length,4095),(t.assumeValid?32768:0)+(t.extended?16384:0)+((t.stage&3)<<12)+(t.nameLength&4095)}class Ar{constructor(t,r){this._dirty=!1,this._unmergedPaths=r||new Set,this._entries=t||new Map}_addEntry(t){if(t.flags.stage===0)t.stages=[t],this._entries.set(t.path,t),this._unmergedPaths.delete(t.path);else{let r=this._entries.get(t.path);r||(this._entries.set(t.path,t),r=t),r.stages[t.flags.stage]=t,this._unmergedPaths.add(t.path)}}static async from(t){if(Buffer.isBuffer(t))return Ar.fromBuffer(t);if(t===null)return new Ar(null);throw new Ee("invalid type passed to GitIndex.from")}static async fromBuffer(t){if(t.length===0)throw new Ee("Index file is empty (.git/index)");const r=new Ar,i=new Kt(t),a=i.toString("utf8",4);if(a!=="DIRC")throw new Ee(`Invalid dircache magic file number: ${a}`);const s=await Ys(t.slice(0,-20)),n=t.slice(-20).toString("hex");if(n!==s)throw new Ee(`Invalid checksum in GitIndex buffer: expected ${n} but saw ${s}`);const o=i.readUInt32BE();if(o!==2)throw new Ee(`Unsupported dircache version: ${o}`);const f=i.readUInt32BE();let p=0;for(;!i.eof()&&p<f;){const c={};c.ctimeSeconds=i.readUInt32BE(),c.ctimeNanoseconds=i.readUInt32BE(),c.mtimeSeconds=i.readUInt32BE(),c.mtimeNanoseconds=i.readUInt32BE(),c.dev=i.readUInt32BE(),c.ino=i.readUInt32BE(),c.mode=i.readUInt32BE(),c.uid=i.readUInt32BE(),c.gid=i.readUInt32BE(),c.size=i.readUInt32BE(),c.oid=i.slice(20).toString("hex");const m=i.readUInt16BE();c.flags=Gg(m);const h=t.indexOf(0,i.tell()+1)-i.tell();if(h<1)throw new Ee(`Got a path length of: ${h}`);if(c.path=i.toString("utf8",h),c.path.includes("..\\")||c.path.includes("../"))throw new Vn(c.path);let g=8-(i.tell()-12)%8;for(g===0&&(g=8);g--;){const R=i.readUInt8();if(R!==0)throw new Ee(`Expected 1-8 null characters but got '${R}' after ${c.path}`);if(i.eof())throw new Ee("Unexpected end of file")}c.stages=[],r._addEntry(c),p++}return r}get unmergedPaths(){return[...this._unmergedPaths]}get entries(){return[...this._entries.values()].sort(Zp)}get entriesMap(){return this._entries}get entriesFlat(){return[...this.entries].flatMap(t=>t.stages.length>1?t.stages.filter(r=>r):t)}*[Symbol.iterator](){for(const t of this.entries)yield t}insert({filepath:t,stats:r,oid:i,stage:a=0}){r||(r={ctimeSeconds:0,ctimeNanoseconds:0,mtimeSeconds:0,mtimeNanoseconds:0,dev:0,ino:0,mode:0,uid:0,gid:0,size:0}),r=gf(r);const s=Buffer.from(t),n={ctimeSeconds:r.ctimeSeconds,ctimeNanoseconds:r.ctimeNanoseconds,mtimeSeconds:r.mtimeSeconds,mtimeNanoseconds:r.mtimeNanoseconds,dev:r.dev,ino:r.ino,mode:r.mode||33188,uid:r.uid,gid:r.gid,size:r.size,path:t,oid:i,flags:{assumeValid:!1,extended:!1,stage:a,nameLength:s.length<4095?s.length:4095},stages:[]};this._addEntry(n),this._dirty=!0}delete({filepath:t}){if(this._entries.has(t))this._entries.delete(t);else for(const r of this._entries.keys())r.startsWith(t+"/")&&this._entries.delete(r);this._unmergedPaths.has(t)&&this._unmergedPaths.delete(t),this._dirty=!0}clear(){this._entries.clear(),this._dirty=!0}has({filepath:t}){return this._entries.has(t)}render(){return this.entries.map(t=>`${t.mode.toString(8)} ${t.oid} ${t.path}`).join(`
|
|
65
|
-
`)}static async _entryToBuffer(t){const r=Buffer.from(t.path),i=Math.ceil((62+r.length+1)/8)*8,a=Buffer.alloc(i),s=new
|
|
64
|
+
*/(function(e){var t=yi,r=Ao,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.SlowBuffer=L,e.INSPECT_MAX_BYTES=50;var a=2147483647;e.kMaxLength=a,o.TYPED_ARRAY_SUPPORT=s(),!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 s(){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 n(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 h(v)}return l(v,u,d)}o.poolSize=8192;function l(v,u,d){if(typeof v=="string")return m(v,u);if(ArrayBuffer.isView(v))return T(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(De(v,ArrayBuffer)||v&&De(v.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(De(v,SharedArrayBuffer)||v&&De(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 C=v.valueOf&&v.valueOf();if(C!=null&&C!==v)return o.from(C,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 l(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?n(v):u!==void 0?typeof d=="string"?n(v).fill(u,d):n(v).fill(u):n(v)}o.alloc=function(v,u,d){return c(v,u,d)};function h(v){return p(v),n(v<0?0:w(v)|0)}o.allocUnsafe=function(v){return h(v)},o.allocUnsafeSlow=function(v){return h(v)};function m(v,u){if((typeof u!="string"||u==="")&&(u="utf8"),!o.isEncoding(u))throw new TypeError("Unknown encoding: "+u);var d=S(v,u)|0,C=n(d),B=C.write(v,u);return B!==d&&(C=C.slice(0,B)),C}function _(v){for(var u=v.length<0?0:w(v.length)|0,d=n(u),C=0;C<u;C+=1)d[C]=v[C]&255;return d}function T(v){if(De(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 C;return u===void 0&&d===void 0?C=new Uint8Array(v):d===void 0?C=new Uint8Array(v,u):C=new Uint8Array(v,u,d),Object.setPrototypeOf(C,o.prototype),C}function g(v){if(o.isBuffer(v)){var u=w(v.length)|0,d=n(u);return d.length===0||v.copy(d,0,0,u),d}if(v.length!==void 0)return typeof v.length!="number"||ft(v.length)?n(0):_(v);if(v.type==="Buffer"&&Array.isArray(v.data))return _(v.data)}function w(v){if(v>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return v|0}function L(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(De(u,Uint8Array)&&(u=o.from(u,u.offset,u.byteLength)),De(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 C=u.length,B=d.length,K=0,X=Math.min(C,B);K<X;++K)if(u[K]!==d[K]){C=u[K],B=d[K];break}return C<B?-1:B<C?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 C;if(d===void 0)for(d=0,C=0;C<u.length;++C)d+=u[C].length;var B=o.allocUnsafe(d),K=0;for(C=0;C<u.length;++C){var X=u[C];if(De(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 S(v,u){if(o.isBuffer(v))return v.length;if(ArrayBuffer.isView(v)||De(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,C=arguments.length>2&&arguments[2]===!0;if(!C&&d===0)return 0;for(var B=!1;;)switch(u){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return Oe(v).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return kt(v).length;default:if(B)return C?-1:Oe(v).length;u=(""+u).toLowerCase(),B=!0}}o.byteLength=S;function D(v,u,d){var C=!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 se(this,u,d);case"utf8":case"utf-8":return U(this,u,d);case"ascii":return Z(this,u,d);case"latin1":case"binary":return z(this,u,d);case"base64":return R(this,u,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,u,d);default:if(C)throw new TypeError("Unknown encoding: "+v);v=(v+"").toLowerCase(),C=!0}}o.prototype._isBuffer=!0;function O(v,u,d){var C=v[u];v[u]=v[d],v[d]=C}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)O(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)O(this,d,d+3),O(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)O(this,d,d+7),O(this,d+1,d+6),O(this,d+2,d+5),O(this,d+3,d+4);return this},o.prototype.toString=function(){var u=this.length;return u===0?"":arguments.length===0?U(this,0,u):D.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,C,B,K){if(De(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),C===void 0&&(C=u?u.length:0),B===void 0&&(B=0),K===void 0&&(K=this.length),d<0||C>u.length||B<0||K>this.length)throw new RangeError("out of range index");if(B>=K&&d>=C)return 0;if(B>=K)return-1;if(d>=C)return 1;if(d>>>=0,C>>>=0,B>>>=0,K>>>=0,this===u)return 0;for(var X=K-B,pe=C-d,ge=Math.min(X,pe),he=this.slice(B,K),Be=u.slice(d,C),ue=0;ue<ge;++ue)if(he[ue]!==Be[ue]){X=he[ue],pe=Be[ue];break}return X<pe?-1:pe<X?1:0};function H(v,u,d,C,B){if(v.length===0)return-1;if(typeof d=="string"?(C=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,ft(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,C)),o.isBuffer(u))return u.length===0?-1:k(v,u,d,C,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):k(v,[u],d,C,B);throw new TypeError("val must be string, number or Buffer")}function k(v,u,d,C,B){var K=1,X=v.length,pe=u.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(v.length<2||u.length<2)return-1;K=2,X/=2,pe/=2,d/=2}function ge(rt,$t){return K===1?rt[$t]:rt.readUInt16BE($t*K)}var he;if(B){var Be=-1;for(he=d;he<X;he++)if(ge(v,he)===ge(u,Be===-1?0:he-Be)){if(Be===-1&&(Be=he),he-Be+1===pe)return Be*K}else Be!==-1&&(he-=he-Be),Be=-1}else for(d+pe>X&&(d=X-pe),he=d;he>=0;he--){for(var ue=!0,yt=0;yt<pe;yt++)if(ge(v,he+yt)!==ge(u,yt)){ue=!1;break}if(ue)return he}return-1}o.prototype.includes=function(u,d,C){return this.indexOf(u,d,C)!==-1},o.prototype.indexOf=function(u,d,C){return H(this,u,d,C,!0)},o.prototype.lastIndexOf=function(u,d,C){return H(this,u,d,C,!1)};function A(v,u,d,C){d=Number(d)||0;var B=v.length-d;C?(C=Number(C),C>B&&(C=B)):C=B;var K=u.length;C>K/2&&(C=K/2);for(var X=0;X<C;++X){var pe=parseInt(u.substr(X*2,2),16);if(ft(pe))return X;v[d+X]=pe}return X}function $(v,u,d,C){return Ie(Oe(u,v.length-d),v,d,C)}function E(v,u,d,C){return Ie(Xe(u),v,d,C)}function P(v,u,d,C){return Ie(kt(u),v,d,C)}function I(v,u,d,C){return Ie(tt(u,v.length-d),v,d,C)}o.prototype.write=function(u,d,C,B){if(d===void 0)B="utf8",C=this.length,d=0;else if(C===void 0&&typeof d=="string")B=d,C=this.length,d=0;else if(isFinite(d))d=d>>>0,isFinite(C)?(C=C>>>0,B===void 0&&(B="utf8")):(B=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var K=this.length-d;if((C===void 0||C>K)&&(C=K),u.length>0&&(C<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 A(this,u,d,C);case"utf8":case"utf-8":return $(this,u,d,C);case"ascii":case"latin1":case"binary":return E(this,u,d,C);case"base64":return P(this,u,d,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,u,d,C);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 R(v,u,d){return u===0&&d===v.length?t.fromByteArray(v):t.fromByteArray(v.slice(u,d))}function U(v,u,d){d=Math.min(v.length,d);for(var C=[],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 ge,he,Be,ue;switch(pe){case 1:K<128&&(X=K);break;case 2:ge=v[B+1],(ge&192)===128&&(ue=(K&31)<<6|ge&63,ue>127&&(X=ue));break;case 3:ge=v[B+1],he=v[B+2],(ge&192)===128&&(he&192)===128&&(ue=(K&15)<<12|(ge&63)<<6|he&63,ue>2047&&(ue<55296||ue>57343)&&(X=ue));break;case 4:ge=v[B+1],he=v[B+2],Be=v[B+3],(ge&192)===128&&(he&192)===128&&(Be&192)===128&&(ue=(K&15)<<18|(ge&63)<<12|(he&63)<<6|Be&63,ue>65535&&ue<1114112&&(X=ue))}}X===null?(X=65533,pe=1):X>65535&&(X-=65536,C.push(X>>>10&1023|55296),X=56320|X&1023),C.push(X),B+=pe}return M(C)}var j=4096;function M(v){var u=v.length;if(u<=j)return String.fromCharCode.apply(String,v);for(var d="",C=0;C<u;)d+=String.fromCharCode.apply(String,v.slice(C,C+=j));return d}function Z(v,u,d){var C="";d=Math.min(v.length,d);for(var B=u;B<d;++B)C+=String.fromCharCode(v[B]&127);return C}function z(v,u,d){var C="";d=Math.min(v.length,d);for(var B=u;B<d;++B)C+=String.fromCharCode(v[B]);return C}function se(v,u,d){var C=v.length;(!u||u<0)&&(u=0),(!d||d<0||d>C)&&(d=C);for(var B="",K=u;K<d;++K)B+=Le[v[K]];return B}function G(v,u,d){for(var C=v.slice(u,d),B="",K=0;K<C.length-1;K+=2)B+=String.fromCharCode(C[K]+C[K+1]*256);return B}o.prototype.slice=function(u,d){var C=this.length;u=~~u,d=d===void 0?C:~~d,u<0?(u+=C,u<0&&(u=0)):u>C&&(u=C),d<0?(d+=C,d<0&&(d=0)):d>C&&(d=C),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,C){u=u>>>0,d=d>>>0,C||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,C){u=u>>>0,d=d>>>0,C||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,C){u=u>>>0,d=d>>>0,C||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,C){u=u>>>0,d=d>>>0,C||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 C=this[u]|this[u+1]<<8;return C&32768?C|4294901760:C},o.prototype.readInt16BE=function(u,d){u=u>>>0,d||Q(u,2,this.length);var C=this[u+1]|this[u]<<8;return C&32768?C|4294901760:C},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,C,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+C>v.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(u,d,C,B){if(u=+u,d=d>>>0,C=C>>>0,!B){var K=Math.pow(2,8*C)-1;ee(this,u,d,C,K,0)}var X=1,pe=0;for(this[d]=u&255;++pe<C&&(X*=256);)this[d+pe]=u/X&255;return d+C},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(u,d,C,B){if(u=+u,d=d>>>0,C=C>>>0,!B){var K=Math.pow(2,8*C)-1;ee(this,u,d,C,K,0)}var X=C-1,pe=1;for(this[d+X]=u&255;--X>=0&&(pe*=256);)this[d+X]=u/pe&255;return d+C},o.prototype.writeUint8=o.prototype.writeUInt8=function(u,d,C){return u=+u,d=d>>>0,C||ee(this,u,d,1,255,0),this[d]=u&255,d+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(u,d,C){return u=+u,d=d>>>0,C||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,C){return u=+u,d=d>>>0,C||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,C){return u=+u,d=d>>>0,C||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,C){return u=+u,d=d>>>0,C||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,C,B){if(u=+u,d=d>>>0,!B){var K=Math.pow(2,8*C-1);ee(this,u,d,C,K-1,-K)}var X=0,pe=1,ge=0;for(this[d]=u&255;++X<C&&(pe*=256);)u<0&&ge===0&&this[d+X-1]!==0&&(ge=1),this[d+X]=(u/pe>>0)-ge&255;return d+C},o.prototype.writeIntBE=function(u,d,C,B){if(u=+u,d=d>>>0,!B){var K=Math.pow(2,8*C-1);ee(this,u,d,C,K-1,-K)}var X=C-1,pe=1,ge=0;for(this[d+X]=u&255;--X>=0&&(pe*=256);)u<0&&ge===0&&this[d+X+1]!==0&&(ge=1),this[d+X]=(u/pe>>0)-ge&255;return d+C},o.prototype.writeInt8=function(u,d,C){return u=+u,d=d>>>0,C||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,C){return u=+u,d=d>>>0,C||ee(this,u,d,2,32767,-32768),this[d]=u&255,this[d+1]=u>>>8,d+2},o.prototype.writeInt16BE=function(u,d,C){return u=+u,d=d>>>0,C||ee(this,u,d,2,32767,-32768),this[d]=u>>>8,this[d+1]=u&255,d+2},o.prototype.writeInt32LE=function(u,d,C){return u=+u,d=d>>>0,C||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,C){return u=+u,d=d>>>0,C||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 V(v,u,d,C,B,K){if(d+C>v.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function fe(v,u,d,C,B){return u=+u,d=d>>>0,B||V(v,u,d,4),r.write(v,u,d,C,23,4),d+4}o.prototype.writeFloatLE=function(u,d,C){return fe(this,u,d,!0,C)},o.prototype.writeFloatBE=function(u,d,C){return fe(this,u,d,!1,C)};function ie(v,u,d,C,B){return u=+u,d=d>>>0,B||V(v,u,d,8),r.write(v,u,d,C,52,8),d+8}o.prototype.writeDoubleLE=function(u,d,C){return ie(this,u,d,!0,C)},o.prototype.writeDoubleBE=function(u,d,C){return ie(this,u,d,!1,C)},o.prototype.copy=function(u,d,C,B){if(!o.isBuffer(u))throw new TypeError("argument should be a Buffer");if(C||(C=0),!B&&B!==0&&(B=this.length),d>=u.length&&(d=u.length),d||(d=0),B>0&&B<C&&(B=C),B===C||u.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=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-C&&(B=u.length-d+C);var K=B-C;return this===u&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(d,C,B):Uint8Array.prototype.set.call(u,this.subarray(C,B),d),K},o.prototype.fill=function(u,d,C,B){if(typeof u=="string"){if(typeof d=="string"?(B=d,d=0,C=this.length):typeof C=="string"&&(B=C,C=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<C)throw new RangeError("Out of range index");if(C<=d)return this;d=d>>>0,C=C===void 0?this.length:C>>>0,u||(u=0);var X;if(typeof u=="number")for(X=d;X<C;++X)this[X]=u;else{var pe=o.isBuffer(u)?u:o.from(u,B),ge=pe.length;if(ge===0)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(X=0;X<C-d;++X)this[X+d]=pe[X%ge]}return this};var ae=/[^+/0-9A-Za-z-_]/g;function Pe(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 Oe(v,u){u=u||1/0;for(var d,C=v.length,B=null,K=[],X=0;X<C;++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===C){(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 Xe(v){for(var u=[],d=0;d<v.length;++d)u.push(v.charCodeAt(d)&255);return u}function tt(v,u){for(var d,C,B,K=[],X=0;X<v.length&&!((u-=2)<0);++X)d=v.charCodeAt(X),C=d>>8,B=d%256,K.push(B),K.push(C);return K}function kt(v){return t.toByteArray(Pe(v))}function Ie(v,u,d,C){for(var B=0;B<C&&!(B+d>=u.length||B>=v.length);++B)u[B+d]=v[B];return B}function De(v,u){return v instanceof u||v!=null&&v.constructor!=null&&v.constructor.name!=null&&v.constructor.name===u.name}function ft(v){return v!==v}var Le=function(){for(var v="0123456789abcdef",u=new Array(256),d=0;d<16;++d)for(var C=d*16,B=0;B<16;++B)u[C+B]=v[d]+v[B];return u}()})(Po);/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(e,t){var r=Po,i=r.Buffer;function a(n,o){for(var l in n)o[l]=n[l]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=s);function s(n,o,l){return i(n,o,l)}s.prototype=Object.create(i.prototype),a(i,s),s.from=function(n,o,l){if(typeof n=="number")throw new TypeError("Argument must not be a number");return i(n,o,l)},s.alloc=function(n,o,l){if(typeof n!="number")throw new TypeError("Argument must be a number");var p=i(n);return o!==void 0?typeof l=="string"?p.fill(o,l):p.fill(o):p.fill(0),p},s.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return i(n)},s.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(n)}})(eo,eo.exports);var To=eo.exports,_0={}.toString,g0=Array.isArray||function(e){return _0.call(e)=="[object Array]"},ts=TypeError,zc=Object,w0=Error,b0=EvalError,v0=RangeError,x0=ReferenceError,Gc=SyntaxError,E0=URIError,S0=Math.abs,k0=Math.floor,P0=Math.max,A0=Math.min,T0=Math.pow,O0=Math.round,C0=Number.isNaN||function(t){return t!==t},L0=C0,$0=function(t){return L0(t)||t===0?t:t<0?-1:1},R0=Object.getOwnPropertyDescriptor,Ds=R0;if(Ds)try{Ds([],"length")}catch{Ds=null}var rs=Ds,Hs=Object.defineProperty||!1;if(Hs)try{Hs({},"a",{value:1})}catch{Hs=!1}var _i=Hs,Xi,Xl;function Vc(){return Xl||(Xl=1,Xi=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var a=42;t[r]=a;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var n=Object.getOwnPropertySymbols(t);if(n.length!==1||n[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==a||o.enumerable!==!0)return!1}return!0}),Xi}var Ji,Jl;function I0(){if(Jl)return Ji;Jl=1;var e=typeof Symbol<"u"&&Symbol,t=Vc();return Ji=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Ji}var Qi,Ql;function Zc(){return Ql||(Ql=1,Qi=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Qi}var ea,ef;function Yc(){if(ef)return ea;ef=1;var e=zc;return ea=e.getPrototypeOf||null,ea}var D0="Function.prototype.bind called on incompatible ",H0=Object.prototype.toString,F0=Math.max,B0="[object Function]",tf=function(t,r){for(var i=[],a=0;a<t.length;a+=1)i[a]=t[a];for(var s=0;s<r.length;s+=1)i[s+t.length]=r[s];return i},U0=function(t,r){for(var i=[],a=r,s=0;a<t.length;a+=1,s+=1)i[s]=t[a];return i},N0=function(e,t){for(var r="",i=0;i<e.length;i+=1)r+=e[i],i+1<e.length&&(r+=t);return r},j0=function(t){var r=this;if(typeof r!="function"||H0.apply(r)!==B0)throw new TypeError(D0+r);for(var i=U0(arguments,1),a,s=function(){if(this instanceof a){var c=r.apply(this,tf(i,arguments));return Object(c)===c?c:this}return r.apply(t,tf(i,arguments))},n=F0(0,r.length-i.length),o=[],l=0;l<n;l++)o[l]="$"+l;if(a=Function("binder","return function ("+N0(o,",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var p=function(){};p.prototype=r.prototype,a.prototype=new p,p.prototype=null}return a},W0=j0,ns=Function.prototype.bind||W0,Oo=Function.prototype.call,ta,rf;function Co(){return rf||(rf=1,ta=Function.prototype.apply),ta}var M0=typeof Reflect<"u"&&Reflect&&Reflect.apply,q0=ns,K0=Co(),z0=Oo,G0=M0,Xc=G0||q0.call(z0,K0),V0=ns,Z0=ts,Y0=Oo,X0=Xc,Lo=function(t){if(t.length<1||typeof t[0]!="function")throw new Z0("a function is required");return X0(V0,Y0,t)},ra,nf;function J0(){if(nf)return ra;nf=1;var e=Lo,t=rs,r;try{r=[].__proto__===Array.prototype}catch(n){if(!n||typeof n!="object"||!("code"in n)||n.code!=="ERR_PROTO_ACCESS")throw n}var i=!!r&&t&&t(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;return ra=i&&typeof i.get=="function"?e([i.get]):typeof s=="function"?function(o){return s(o==null?o:a(o))}:!1,ra}var na,sf;function Jc(){if(sf)return na;sf=1;var e=Zc(),t=Yc(),r=J0();return na=e?function(a){return e(a)}:t?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return t(a)}:r?function(a){return r(a)}:null,na}var sa,af;function Q0(){if(af)return sa;af=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=ns;return sa=r.call(e,t),sa}var ye,e_=zc,t_=w0,r_=b0,n_=v0,s_=x0,un=Gc,ln=ts,i_=E0,a_=S0,o_=k0,l_=P0,f_=A0,p_=T0,c_=O0,u_=$0,Qc=Function,ia=function(e){try{return Qc('"use strict"; return ('+e+").constructor;")()}catch{}},jn=rs,d_=_i,aa=function(){throw new ln},h_=jn?function(){try{return arguments.callee,aa}catch{try{return jn(arguments,"callee").get}catch{return aa}}}():aa,Zr=I0()(),Ge=Jc(),m_=Yc(),y_=Zc(),eu=Co(),ss=Oo,en={},__=typeof Uint8Array>"u"||!Ge?ye:Ge(Uint8Array),$r={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ye:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ye:ArrayBuffer,"%ArrayIteratorPrototype%":Zr&&Ge?Ge([][Symbol.iterator]()):ye,"%AsyncFromSyncIteratorPrototype%":ye,"%AsyncFunction%":en,"%AsyncGenerator%":en,"%AsyncGeneratorFunction%":en,"%AsyncIteratorPrototype%":en,"%Atomics%":typeof Atomics>"u"?ye:Atomics,"%BigInt%":typeof BigInt>"u"?ye:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ye:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ye:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ye:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t_,"%eval%":eval,"%EvalError%":r_,"%Float16Array%":typeof Float16Array>"u"?ye:Float16Array,"%Float32Array%":typeof Float32Array>"u"?ye:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ye:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ye:FinalizationRegistry,"%Function%":Qc,"%GeneratorFunction%":en,"%Int8Array%":typeof Int8Array>"u"?ye:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ye:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ye:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Zr&&Ge?Ge(Ge([][Symbol.iterator]())):ye,"%JSON%":typeof JSON=="object"?JSON:ye,"%Map%":typeof Map>"u"?ye:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Zr||!Ge?ye:Ge(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e_,"%Object.getOwnPropertyDescriptor%":jn,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ye:Promise,"%Proxy%":typeof Proxy>"u"?ye:Proxy,"%RangeError%":n_,"%ReferenceError%":s_,"%Reflect%":typeof Reflect>"u"?ye:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ye:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Zr||!Ge?ye:Ge(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ye:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Zr&&Ge?Ge(""[Symbol.iterator]()):ye,"%Symbol%":Zr?Symbol:ye,"%SyntaxError%":un,"%ThrowTypeError%":h_,"%TypedArray%":__,"%TypeError%":ln,"%Uint8Array%":typeof Uint8Array>"u"?ye:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ye:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ye:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ye:Uint32Array,"%URIError%":i_,"%WeakMap%":typeof WeakMap>"u"?ye:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ye:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ye:WeakSet,"%Function.prototype.call%":ss,"%Function.prototype.apply%":eu,"%Object.defineProperty%":d_,"%Object.getPrototypeOf%":m_,"%Math.abs%":a_,"%Math.floor%":o_,"%Math.max%":l_,"%Math.min%":f_,"%Math.pow%":p_,"%Math.round%":c_,"%Math.sign%":u_,"%Reflect.getPrototypeOf%":y_};if(Ge)try{null.error}catch(e){var g_=Ge(Ge(e));$r["%Error.prototype%"]=g_}var w_=function e(t){var r;if(t==="%AsyncFunction%")r=ia("async function () {}");else if(t==="%GeneratorFunction%")r=ia("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=ia("async function* () {}");else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Ge&&(r=Ge(a.prototype))}return $r[t]=r,r},of={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},is=ns,Js=Q0(),b_=is.call(ss,Array.prototype.concat),v_=is.call(eu,Array.prototype.splice),lf=is.call(ss,String.prototype.replace),Qs=is.call(ss,String.prototype.slice),x_=is.call(ss,RegExp.prototype.exec),E_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S_=/\\(\\)?/g,k_=function(t){var r=Qs(t,0,1),i=Qs(t,-1);if(r==="%"&&i!=="%")throw new un("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new un("invalid intrinsic syntax, expected opening `%`");var a=[];return lf(t,E_,function(s,n,o,l){a[a.length]=o?lf(l,S_,"$1"):n||s}),a},P_=function(t,r){var i=t,a;if(Js(of,i)&&(a=of[i],i="%"+a[0]+"%"),Js($r,i)){var s=$r[i];if(s===en&&(s=w_(i)),typeof s>"u"&&!r)throw new ln("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:i,value:s}}throw new un("intrinsic "+t+" does not exist!")},tu=function(t,r){if(typeof t!="string"||t.length===0)throw new ln("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ln('"allowMissing" argument must be a boolean');if(x_(/^%?[^%]*%?$/,t)===null)throw new un("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=k_(t),a=i.length>0?i[0]:"",s=P_("%"+a+"%",r),n=s.name,o=s.value,l=!1,p=s.alias;p&&(a=p[0],v_(i,b_([0,1],p)));for(var c=1,h=!0;c<i.length;c+=1){var m=i[c],_=Qs(m,0,1),T=Qs(m,-1);if((_==='"'||_==="'"||_==="`"||T==='"'||T==="'"||T==="`")&&_!==T)throw new un("property names with quotes must have matching quotes");if((m==="constructor"||!h)&&(l=!0),a+="."+m,n="%"+a+"%",Js($r,n))o=$r[n];else if(o!=null){if(!(m in o)){if(!r)throw new ln("base intrinsic for "+t+" exists, but the property is not available.");return}if(jn&&c+1>=i.length){var y=jn(o,m);h=!!y,h&&"get"in y&&!("originalValue"in y.get)?o=y.get:o=o[m]}else h=Js(o,m),o=o[m];h&&!l&&($r[n]=o)}}return o},ru=tu,nu=Lo,A_=nu([ru("%String.prototype.indexOf%")]),su=function(t,r){var i=ru(t,!!r);return typeof i=="function"&&A_(t,".prototype.")>-1?nu([i]):i},oa,ff;function T_(){if(ff)return oa;ff=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,i;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw i}}),i={},t(function(){throw 42},null,r)}catch(L){L!==i&&(t=null)}else t=null;var a=/^\s*class\b/,s=function(S){try{var D=e.call(S);return a.test(D)}catch{return!1}},n=function(S){try{return s(S)?!1:(e.call(S),!0)}catch{return!1}},o=Object.prototype.toString,l="[object Object]",p="[object Function]",c="[object GeneratorFunction]",h="[object HTMLAllCollection]",m="[object HTML document.all class]",_="[object HTMLCollection]",T=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),g=function(){return!1};if(typeof document=="object"){var w=document.all;o.call(w)===o.call(document.all)&&(g=function(S){if((y||!S)&&(typeof S>"u"||typeof S=="object"))try{var D=o.call(S);return(D===h||D===m||D===_||D===l)&&S("")==null}catch{}return!1})}return oa=t?function(S){if(g(S))return!0;if(!S||typeof S!="function"&&typeof S!="object")return!1;try{t(S,null,r)}catch(D){if(D!==i)return!1}return!s(S)&&n(S)}:function(S){if(g(S))return!0;if(!S||typeof S!="function"&&typeof S!="object")return!1;if(T)return n(S);if(s(S))return!1;var D=o.call(S);return D!==p&&D!==c&&!/^\[object HTML/.test(D)?!1:n(S)},oa}var la,pf;function O_(){if(pf)return la;pf=1;var e=T_(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,i=function(l,p,c){for(var h=0,m=l.length;h<m;h++)r.call(l,h)&&(c==null?p(l[h],h,l):p.call(c,l[h],h,l))},a=function(l,p,c){for(var h=0,m=l.length;h<m;h++)c==null?p(l.charAt(h),h,l):p.call(c,l.charAt(h),h,l)},s=function(l,p,c){for(var h in l)r.call(l,h)&&(c==null?p(l[h],h,l):p.call(c,l[h],h,l))};function n(o){return t.call(o)==="[object Array]"}return la=function(l,p,c){if(!e(p))throw new TypeError("iterator must be a function");var h;arguments.length>=3&&(h=c),n(l)?i(l,p,h):typeof l=="string"?a(l,p,h):s(l,p,h)},la}var fa,cf;function C_(){return cf||(cf=1,fa=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),fa}var pa,uf;function L_(){if(uf)return pa;uf=1;var e=C_(),t=typeof globalThis>"u"?Up:globalThis;return pa=function(){for(var i=[],a=0;a<e.length;a++)typeof t[e[a]]=="function"&&(i[i.length]=e[a]);return i},pa}var ca={exports:{}},ua,df;function $_(){if(df)return ua;df=1;var e=_i,t=Gc,r=ts,i=rs;return ua=function(s,n,o){if(!s||typeof s!="object"&&typeof s!="function")throw new r("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,p=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,h=arguments.length>6?arguments[6]:!1,m=!!i&&i(s,n);if(e)e(s,n,{configurable:c===null&&m?m.configurable:!c,enumerable:l===null&&m?m.enumerable:!l,value:o,writable:p===null&&m?m.writable:!p});else if(h||!l&&!p&&!c)s[n]=o;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},ua}var da,hf;function R_(){if(hf)return da;hf=1;var e=_i,t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},da=t,da}var ha,mf;function I_(){if(mf)return ha;mf=1;var e=tu,t=$_(),r=R_()(),i=rs,a=ts,s=e("%Math.floor%");return ha=function(o,l){if(typeof o!="function")throw new a("`fn` is not a function");if(typeof l!="number"||l<0||l>4294967295||s(l)!==l)throw new a("`length` must be a positive 32-bit integer");var p=arguments.length>2&&!!arguments[2],c=!0,h=!0;if("length"in o&&i){var m=i(o,"length");m&&!m.configurable&&(c=!1),m&&!m.writable&&(h=!1)}return(c||h||!p)&&(r?t(o,"length",l,!0,!0):t(o,"length",l)),o},ha}var ma,yf;function D_(){if(yf)return ma;yf=1;var e=ns,t=Co(),r=Xc;return ma=function(){return r(e,t,arguments)},ma}var _f;function H_(){return _f||(_f=1,function(e){var t=I_(),r=_i,i=Lo,a=D_();e.exports=function(n){var o=i(arguments),l=n.length-(arguments.length-1);return t(o,1+(l>0?l:0),!0)},r?r(e.exports,"apply",{value:a}):e.exports.apply=a}(ca)),ca.exports}var ya,gf;function F_(){if(gf)return ya;gf=1;var e=Vc();return ya=function(){return e()&&!!Symbol.toStringTag},ya}var _a,wf;function B_(){if(wf)return _a;wf=1;var e=O_(),t=L_(),r=H_(),i=su,a=rs,s=Jc(),n=i("Object.prototype.toString"),o=F_()(),l=typeof globalThis>"u"?Up:globalThis,p=t(),c=i("String.prototype.slice"),h=i("Array.prototype.indexOf",!0)||function(g,w){for(var L=0;L<g.length;L+=1)if(g[L]===w)return L;return-1},m={__proto__:null};o&&a&&s?e(p,function(y){var g=new l[y];if(Symbol.toStringTag in g&&s){var w=s(g),L=a(w,Symbol.toStringTag);if(!L&&w){var S=s(w);L=a(S,Symbol.toStringTag)}m["$"+y]=r(L.get)}}):e(p,function(y){var g=new l[y],w=g.slice||g.set;w&&(m["$"+y]=r(w))});var _=function(g){var w=!1;return e(m,function(L,S){if(!w)try{"$"+L(g)===S&&(w=c(S,1))}catch{}}),w},T=function(g){var w=!1;return e(m,function(L,S){if(!w)try{L(g),w=c(S,1)}catch{}}),w};return _a=function(g){if(!g||typeof g!="object")return!1;if(!o){var w=c(n(g),8,-1);return h(p,w)>-1?w:w!=="Object"?!1:T(g)}return a?_(g):null},_a}var ga,bf;function U_(){if(bf)return ga;bf=1;var e=B_();return ga=function(r){return!!e(r)},ga}var N_=ts,j_=su,W_=j_("TypedArray.prototype.buffer",!0),M_=U_(),q_=W_||function(t){if(!M_(t))throw new N_("Not a Typed Array");return t.buffer},It=To.Buffer,K_=g0,z_=q_,G_=ArrayBuffer.isView||function(t){try{return z_(t),!0}catch{return!1}},V_=typeof Uint8Array<"u",iu=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",Z_=iu&&(It.prototype instanceof Uint8Array||It.TYPED_ARRAY_SUPPORT),Y_=function(t,r){if(It.isBuffer(t))return t.constructor&&!("isBuffer"in t)?It.from(t):t;if(typeof t=="string")return It.from(t,r);if(iu&&G_(t)){if(t.byteLength===0)return It.alloc(0);if(Z_){var i=It.from(t.buffer,t.byteOffset,t.byteLength);if(i.byteLength===t.byteLength)return i}var a=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),s=It.from(a);if(s.length===t.byteLength)return s}if(V_&&t instanceof Uint8Array)return It.from(t);var n=K_(t);if(n)for(var o=0;o<t.length;o+=1){var l=t[o];if(typeof l!="number"||l<0||l>255||~~l!==l)throw new RangeError("Array items must be numbers in the range 0-255.")}if(n||It.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return It.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},X_=To.Buffer,J_=Y_;function gi(e,t){this._block=X_.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}gi.prototype.update=function(e,t){e=J_(e,t||"utf8");for(var r=this._block,i=this._blockSize,a=e.length,s=this._len,n=0;n<a;){for(var o=s%i,l=Math.min(a-n,i-o),p=0;p<l;p++)r[o+p]=e[n+p];s+=l,n+=l,s%i===0&&this._update(r)}return this._len+=a,this};gi.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 s=this._hash();return e?s.toString(e):s};gi.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var Q_=gi,eg=l0,au=Q_,tg=To.Buffer,rg=[1518500249,1859775393,-1894007588,-899497514],ng=new Array(80);function as(){this.init(),this._w=ng,au.call(this,64,56)}eg(as,au);as.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function sg(e){return e<<1|e>>>31}function ig(e){return e<<5|e>>>27}function ag(e){return e<<30|e>>>2}function og(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}as.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,a=this._c|0,s=this._d|0,n=this._e|0,o=0;o<16;++o)t[o]=e.readInt32BE(o*4);for(;o<80;++o)t[o]=sg(t[o-3]^t[o-8]^t[o-14]^t[o-16]);for(var l=0;l<80;++l){var p=~~(l/20),c=ig(r)+og(p,i,a,s)+n+t[l]+rg[p]|0;n=s,s=a,a=ag(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=s+this._d|0,this._e=n+this._e|0};as.prototype._hash=function(){var e=tg.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 lg=as;const fg=po(lg);function pg(e){let t="";for(const r of new Uint8Array(e))r<16&&(t+="0"),t+=r.toString(16);return t}let wa=null;async function ei(e){return wa===null&&(wa=await ug()),wa?ou(e):cg(e)}function cg(e){return new fg().update(e).digest("hex")}async function ou(e){const t=await crypto.subtle.digest("SHA-1",e);return pg(t)}async function ug(){try{if(await ou(new Uint8Array([]))==="da39a3ee5e6b4b0d3255bfef95601890afd80709")return!0}catch{}return!1}function dg(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,s)=>a+1<<7|s,-1)}function hg(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 dn{constructor(t){Object.assign(this,t),this.offsetCache={}}static async fromIdx({idx:t,getExternalRefDelta:r}){const i=new Gt(t);if(i.slice(4).toString("hex")!=="ff744f63")return;const s=i.readUInt32BE();if(s!==2)throw new ke(`Unable to read version ${s} packfile IDX. (Only version 2 supported)`);if(t.byteLength>2048*1024*1024)throw new ke("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 n=i.readUInt32BE(),o=[];for(let c=0;c<n;c++){const h=i.slice(20).toString("hex");o[c]=h}i.seek(i.tell()+4*n);const l=new Map;for(let c=0;c<n;c++)l.set(o[c],i.readUInt32BE());const p=i.slice(20).toString("hex");return new dn({hashes:o,crcs:{},offsets:l,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"},s={},n=t.slice(-20).toString("hex"),o=[],l={},p=new Map;let c=null,h=null;await i0([t],async({data:g,type:w,reference:L,offset:S,num:D})=>{c===null&&(c=D);const O=Math.floor((c-D)*100/c);O!==h&&i&&await i({phase:"Receiving objects",loaded:c-D,total:c}),h=O,w=a[w],["commit","tree","blob","tag"].includes(w)?s[S]={type:w,offset:S}:w==="ofs-delta"?s[S]={type:w,offset:S}:w==="ref-delta"&&(s[S]={type:w,offset:S})});const m=Object.keys(s).map(Number);for(const[g,w]of m.entries()){const L=g+1===m.length?t.byteLength-20:m[g+1],S=s[w],D=pm.buf(t.slice(w,L))>>>0;S.end=L,S.crc=D}const _=new dn({pack:Promise.resolve(t),packfileSha:n,crcs:l,hashes:o,offsets:p,getExternalRefDelta:r});h=null;let T=0;const y=[0,0,0,0,0,0,0,0,0,0,0,0];for(let g in s){g=Number(g);const w=Math.floor(T*100/c);w!==h&&i&&await i({phase:"Resolving deltas",loaded:T,total:c}),T++,h=w;const L=s[g];if(!L.oid)try{_.readDepth=0,_.externalReadDepth=0;const{type:S,object:D}=await _.readSlice({start:g});y[_.readDepth]+=1;const O=await ei(cm.wrap({type:S,object:D}));L.oid=O,o.push(O),p.set(O,g),l[O]=L.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 Gt(Buffer.alloc(256*4));for(let p=0;p<256;p++){let c=0;for(const h of this.hashes)parseInt(h.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 Gt(Buffer.alloc(this.hashes.length*4));for(const p of this.hashes)a.writeUInt32BE(this.crcs[p]);t.push(a.buffer);const s=new Gt(Buffer.alloc(this.hashes.length*4));for(const p of this.hashes)s.writeUInt32BE(this.offsets.get(p));t.push(s.buffer),r(this.packfileSha,"hex");const n=Buffer.concat(t),o=await ei(n),l=Buffer.alloc(20);return l.write(o,"hex"),Buffer.concat([n,l])}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 ke(`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 ke("Tried to read from a GitPackIndex with no packfile loaded into memory");const i=(await this.pack).slice(t),a=new Gt(i),s=a.readUInt8(),n=s&112;let o=r[n];if(o===void 0)throw new ke("Unrecognized type: 0b"+n.toString(2));const l=s&15;let p=l;s&128&&(p=hg(a,l));let h=null,m=null;if(o==="ofs_delta"){const T=dg(a),y=t-T;({object:h,type:o}=await this.readSlice({start:y}))}if(o==="ref_delta"){const T=a.slice(20).toString("hex");({object:h,type:o}=await this.read({oid:T}))}const _=i.slice(a.tell());if(m=Buffer.from(await o0(_)),m.byteLength!==p)throw new ke(`Packfile told us object would have length ${p} but it had length ${m.byteLength}`);return h&&(m=Buffer.from(um(m,h))),this.readDepth>3&&(this.offsetCache[t]={type:o,object:m}),{type:o,format:"content",object:m}}}class Wn extends yn{constructor(t){super(`Expected a 40-char hex object id but saw "${t}".`),this.code=this.name=Wn.code,this.data={value:t}}}Wn.code="InvalidOidError";class wi extends yn{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=wi.code,this.data={oid:t,actual:r,expected:i,filepath:a}}}wi.code="ObjectTypeError";function mg(e){let t=e>0?e>>12:0;t!==4&&t!==8&&t!==10&&t!==14&&(t=8);let r=e&511;return r&73?r=493:r=420,t!==8&&(r=0),(t<<12)+r}const Mt=2**32;function vf(e,t,r,i){if(e!==void 0&&t!==void 0)return[e,t];r===void 0&&(r=i.valueOf());const a=Math.floor(r/1e3),s=(r-a*1e3)*1e6;return[a,s]}function xf(e){const[t,r]=vf(e.ctimeSeconds,e.ctimeNanoseconds,e.ctimeMs,e.ctime),[i,a]=vf(e.mtimeSeconds,e.mtimeNanoseconds,e.mtimeMs,e.mtime);return{ctimeSeconds:t%Mt,ctimeNanoseconds:r%Mt,mtimeSeconds:i%Mt,mtimeNanoseconds:a%Mt,dev:e.dev%Mt,ino:e.ino%Mt,mode:mg(e.mode%Mt),uid:e.uid%Mt,gid:e.gid%Mt,size:e.size>-1?e.size%Mt:0}}function yg(e){return{assumeValid:!!(e&32768),extended:!!(e&16384),stage:(e&12288)>>12,nameLength:e&4095}}function _g(e){const t=e.flags;return t.extended=!1,t.nameLength=Math.min(Buffer.from(e.path).length,4095),(t.assumeValid?32768:0)+(t.extended?16384:0)+((t.stage&3)<<12)+(t.nameLength&4095)}class Tr{constructor(t,r){this._dirty=!1,this._unmergedPaths=r||new Set,this._entries=t||new Map}_addEntry(t){if(t.flags.stage===0)t.stages=[t],this._entries.set(t.path,t),this._unmergedPaths.delete(t.path);else{let r=this._entries.get(t.path);r||(this._entries.set(t.path,t),r=t),r.stages[t.flags.stage]=t,this._unmergedPaths.add(t.path)}}static async from(t){if(Buffer.isBuffer(t))return Tr.fromBuffer(t);if(t===null)return new Tr(null);throw new ke("invalid type passed to GitIndex.from")}static async fromBuffer(t){if(t.length===0)throw new ke("Index file is empty (.git/index)");const r=new Tr,i=new Gt(t),a=i.toString("utf8",4);if(a!=="DIRC")throw new ke(`Invalid dircache magic file number: ${a}`);const s=await ei(t.slice(0,-20)),n=t.slice(-20).toString("hex");if(n!==s)throw new ke(`Invalid checksum in GitIndex buffer: expected ${n} but saw ${s}`);const o=i.readUInt32BE();if(o!==2)throw new ke(`Unsupported dircache version: ${o}`);const l=i.readUInt32BE();let p=0;for(;!i.eof()&&p<l;){const c={};c.ctimeSeconds=i.readUInt32BE(),c.ctimeNanoseconds=i.readUInt32BE(),c.mtimeSeconds=i.readUInt32BE(),c.mtimeNanoseconds=i.readUInt32BE(),c.dev=i.readUInt32BE(),c.ino=i.readUInt32BE(),c.mode=i.readUInt32BE(),c.uid=i.readUInt32BE(),c.gid=i.readUInt32BE(),c.size=i.readUInt32BE(),c.oid=i.slice(20).toString("hex");const h=i.readUInt16BE();c.flags=yg(h);const m=t.indexOf(0,i.tell()+1)-i.tell();if(m<1)throw new ke(`Got a path length of: ${m}`);if(c.path=i.toString("utf8",m),c.path.includes("..\\")||c.path.includes("../"))throw new Yn(c.path);let _=8-(i.tell()-12)%8;for(_===0&&(_=8);_--;){const T=i.readUInt8();if(T!==0)throw new ke(`Expected 1-8 null characters but got '${T}' after ${c.path}`);if(i.eof())throw new ke("Unexpected end of file")}c.stages=[],r._addEntry(c),p++}return r}get unmergedPaths(){return[...this._unmergedPaths]}get entries(){return[...this._entries.values()].sort(tc)}get entriesMap(){return this._entries}get entriesFlat(){return[...this.entries].flatMap(t=>t.stages.length>1?t.stages.filter(r=>r):t)}*[Symbol.iterator](){for(const t of this.entries)yield t}insert({filepath:t,stats:r,oid:i,stage:a=0}){r||(r={ctimeSeconds:0,ctimeNanoseconds:0,mtimeSeconds:0,mtimeNanoseconds:0,dev:0,ino:0,mode:0,uid:0,gid:0,size:0}),r=xf(r);const s=Buffer.from(t),n={ctimeSeconds:r.ctimeSeconds,ctimeNanoseconds:r.ctimeNanoseconds,mtimeSeconds:r.mtimeSeconds,mtimeNanoseconds:r.mtimeNanoseconds,dev:r.dev,ino:r.ino,mode:r.mode||33188,uid:r.uid,gid:r.gid,size:r.size,path:t,oid:i,flags:{assumeValid:!1,extended:!1,stage:a,nameLength:s.length<4095?s.length:4095},stages:[]};this._addEntry(n),this._dirty=!0}delete({filepath:t}){if(this._entries.has(t))this._entries.delete(t);else for(const r of this._entries.keys())r.startsWith(t+"/")&&this._entries.delete(r);this._unmergedPaths.has(t)&&this._unmergedPaths.delete(t),this._dirty=!0}clear(){this._entries.clear(),this._dirty=!0}has({filepath:t}){return this._entries.has(t)}render(){return this.entries.map(t=>`${t.mode.toString(8)} ${t.oid} ${t.path}`).join(`
|
|
65
|
+
`)}static async _entryToBuffer(t){const r=Buffer.from(t.path),i=Math.ceil((62+r.length+1)/8)*8,a=Buffer.alloc(i),s=new Gt(a),n=xf(t);return s.writeUInt32BE(n.ctimeSeconds),s.writeUInt32BE(n.ctimeNanoseconds),s.writeUInt32BE(n.mtimeSeconds),s.writeUInt32BE(n.mtimeNanoseconds),s.writeUInt32BE(n.dev),s.writeUInt32BE(n.ino),s.writeUInt32BE(n.mode),s.writeUInt32BE(n.uid),s.writeUInt32BE(n.gid),s.writeUInt32BE(n.size),s.write(t.oid,20,"hex"),s.writeUInt16BE(_g(t)),s.write(t.path,r.length,"utf8"),a}async toObject(){const t=Buffer.alloc(12),r=new Gt(t);r.write("DIRC",4,"utf8"),r.writeUInt32BE(2),r.writeUInt32BE(this.entriesFlat.length);let i=[];for(const o of this.entries)if(i.push(Tr._entryToBuffer(o)),o.stages.length>1)for(const l of o.stages)l&&l!==o&&i.push(Tr._entryToBuffer(l));i=await Promise.all(i);const a=Buffer.concat(i),s=Buffer.concat([t,a]),n=await ei(s);return Buffer.concat([s,Buffer.from(n,"hex")])}}async function lu(e,t){const r=Jp(e);for(;;){const{value:i,done:a}=await r.next();if(i&&await t(i),a)break}r.return&&r.return()}async function Mn(e){let t=0;const r=[];await lu(e,s=>{r.push(s),t+=s.byteLength});const i=new Uint8Array(t);let a=0;for(const s of r)i.set(s,a),a+=s.byteLength;return i}class ba{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 gg{static demux(t){const r=Ye.streamReader(t),i=new ba,a=new ba,s=new ba,n=async function(){const o=await r();if(o===null)return n();if(o===!0){i.end(),s.end(),t.error?a.destroy(t.error):a.end();return}switch(o[0]){case 1:{a.write(o.slice(1));break}case 2:{s.write(o.slice(1));break}case 3:{const l=o.slice(1);s.write(l),i.end(),s.end(),a.destroy(new Error(l.toString("utf8")));return}default:i.write(o)}n()};return n(),{packetlines:i,packfile:a,progress:s}}}async function fu(e){const{packetlines:t,packfile:r,progress:i}=gg.demux(e),a=[],s=[],n=[];let o=!1,l=!1;return new Promise((p,c)=>{lu(t,h=>{const m=h.toString("utf8").trim();if(m.startsWith("shallow")){const _=m.slice(-41).trim();_.length!==40&&c(new Wn(_)),a.push(_)}else if(m.startsWith("unshallow")){const _=m.slice(-41).trim();_.length!==40&&c(new Wn(_)),s.push(_)}else if(m.startsWith("ACK")){const[,_,T]=m.split(" ");n.push({oid:_,status:T}),T||(l=!0)}else m.startsWith("NAK")?(o=!0,l=!0):(l=!0,o=!0);l&&(e.error?c(e.error):p({shallows:a,unshallows:s,acks:n,nak:o,packfile:r,progress:i}))}).finally(()=>{l||(e.error?c(e.error):p({shallows:a,unshallows:s,acks:n,nak:o,packfile:r,progress:i}))})})}typeof globalThis.Buffer>"u"&&(globalThis.Buffer=Po.Buffer);class qn extends Error{constructor(t,r){super(`Authentication required to access private repository: ${t}`),this.name="GitAuthenticationError",this.repoUrl=t,this.status=r}}async function wg(e,t,r,i){const a=(i==null?void 0:i.additionalHeaders)||{},s=await cu(e,t,a),n=await Pg(s.idx,t,r),o=r.map(_=>n[_].oid),l=o.length>0?await Ag(e,o,a):null,p={};if(await Promise.all(r.map(async _=>{l&&(p[_]=await uu(l.idx,n[_].oid))})),!(i!=null&&i.withObjects))return{files:p};const c=[],h=await s.idx.toBuffer();if(c.push({name:`pack-${s.idx.packfileSha}`,pack:s.packfile,index:Kn(h),promisor:s.promisor}),l){const _=await l.idx.toBuffer();c.push({name:`pack-${l.idx.packfileSha}`,pack:l.packfile,index:Kn(_),promisor:l.promisor})}const m={};for(const _ of r)m[_]=n[_].oid;return{files:p,packfiles:c,objects:[...await Ef(s),...await Ef(l)],fileOids:m}}const bg=/^[0-9a-f]{40}$/i;async function vg(e,t,r={}){const i=await cu(e,t,r),a=await kg(i.idx,t);return a!=null&&a.object?pu(a):[]}async function xg(e,t,r={}){const i=await Sg(e,t);if(i.resolvedOid)return i.resolvedOid;const a=await to(e,i.refname,r);if(!a)throw new Error(`Git ref "${i.refname}" not found at ${e}`);return a}function pu(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:pu(t)}}).filter(t=>!!(t!=null&&t.name))}async function Eg(e,t,r={}){const i=Buffer.from(await Mn([Ye.encode(`command=ls-refs
|
|
66
66
|
`),Ye.encode(`agent=git/2.37.3
|
|
67
67
|
`),Ye.encode(`object-format=sha1
|
|
68
68
|
`),Ye.delim(),Ye.encode(`peel
|
|
69
69
|
`),Ye.encode(`ref-prefix ${t}
|
|
70
|
-
`),Ye.flush()])),
|
|
70
|
+
`),Ye.flush()])),a=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":`${i.length}`,"Git-Protocol":"version=2",...r},body:i});if(!a.ok)throw a.status===401||a.status===403?new qn(e,a.status):new Error(`Failed to fetch git refs from ${e}: ${a.status} ${a.statusText}`);const s={};for await(const n of Tg(a)){const o=n.indexOf(" "),l=n.slice(0,o),c=n.slice(o+1,n.length-1).split(" ")[0];s[c]=l}return s}async function Sg(e,t){switch(t.type??"infer"){case"commit":return{kind:"commit",refname:t.value,resolvedOid:t.value};case"branch":return{kind:"refname",refname:`refs/heads/${t.value.trim()}`};case"tag":return{kind:"refname",refname:`refs/tags/${t.value.trim()}`};case"refname":return{kind:"refname",refname:t.value.trim()};case"infer":{const i=t.value.trim();if(i===""||i==="HEAD")return{kind:"refname",refname:"HEAD"};if(i.startsWith("refs/"))return{kind:"refname",refname:i};if(bg.test(i))return{kind:"commit",refname:i,resolvedOid:i};const a=`refs/heads/${i}`,s=await to(e,a);if(s)return{kind:"refname",refname:a,resolvedOid:s};const n=`refs/tags/${i}`,o=await to(e,n);if(o)return{kind:"refname",refname:n,resolvedOid:o};throw new Error(`Git ref "${t.value}" not found at ${e}`)}default:throw new Error(`Invalid ref type: ${t.type}`)}}async function to(e,t,r){const i=await Eg(e,t,r),a=[t,`${t}^{}`];for(const s of a){const n=s.trim();if(n in i)return i[n]}return null}async function cu(e,t,r){const i=Buffer.from(await Mn([Ye.encode(`want ${t} multi_ack_detailed no-done side-band-64k thin-pack ofs-delta agent=git/2.37.3 filter
|
|
71
71
|
`),Ye.encode(`filter blob:none
|
|
72
72
|
`),Ye.encode(`shallow ${t}
|
|
73
73
|
`),Ye.encode(`deepen 1
|
|
74
74
|
`),Ye.flush(),Ye.encode(`done
|
|
75
75
|
`),Ye.encode(`done
|
|
76
|
-
`)])),
|
|
76
|
+
`)])),a=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":`${i.length}`,...r},body:i});if(!a.ok)throw a.status===401||a.status===403?new qn(e,a.status):new Error(`Failed to fetch git objects from ${e}: ${a.status} ${a.statusText}`);const s=du(a.body),n=await fu(s),o=Buffer.from(await Mn(n.packfile)),l=await dn.fromPack({pack:o}),p=l.read;return l.read=async function({oid:c,...h}){const m=await p.call(this,{oid:c,...h});return m.oid=c,m},{idx:l,packfile:Kn(o),promisor:!0}}async function kg(e,t){const r=await e.read({oid:t});Rr(r);const i=await e.read({oid:r.object.tree}),a=[i];for(;a.length>0;){const s=a.pop(),n=await e.read({oid:s.oid});if(Rr(n),s.object=n.object,n.type==="tree")for(const o of n.object)o.type==="tree"&&a.push(o)}return i}async function Ef(e){if(!e)return[];const t=[],r=new Set;for(const i of e.idx.hashes??[]){if(r.has(i))continue;const a=e.idx.offsets.get(i);if(a===void 0)continue;const{type:s,object:n}=await e.idx.readSlice({start:a});s==="ofs_delta"||s==="ref_delta"||n&&(r.add(i),t.push({oid:i,type:s,body:Kn(n)}))}return t}async function Pg(e,t,r){const i=await e.read({oid:t});Rr(i);const a=await e.read({oid:i.object.tree});Rr(a);const s={};for(const n of r){let o=a;const l=n.split("/");for(const p of l){if(o.type!=="tree")throw new Error(`Path not found in the repo: ${n}`);let c=!1;for(const h of o.object)if(h.path===p){try{o=await e.read({oid:h.oid}),Rr(o)}catch{o=h}c=!0;break}if(!c)throw new Error(`Path not found in the repo: ${n}`)}s[n]=o}return s}async function Ag(e,t,r){const i=Buffer.from(await Mn([...t.map(p=>Ye.encode(`want ${p} multi_ack_detailed no-done side-band-64k thin-pack ofs-delta agent=git/2.37.3
|
|
77
77
|
`)),Ye.flush(),Ye.encode(`done
|
|
78
|
-
`)])),
|
|
78
|
+
`)])),a=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":`${i.length}`,...r},body:i});if(!a.ok)throw a.status===401||a.status===403?new qn(e,a.status):new Error(`Failed to fetch git objects from ${e}: ${a.status} ${a.statusText}`);const s=du(a.body),n=await fu(s),o=Buffer.from(await Mn(n.packfile));return o.byteLength===0?{idx:await dn.fromPack({pack:o}),packfile:new Uint8Array,promisor:!1}:{idx:await dn.fromPack({pack:o}),packfile:Kn(o),promisor:!1}}async function uu(e,t){const r=await e.read({oid:t});if(Rr(r),r.type==="blob")return r.object;const i={};for(const{path:a,oid:s,type:n}of r.object)if(n==="blob"){const o=await e.read({oid:s});Rr(o),i[a]=o.object}else n==="tree"&&(i[a]=await uu(e,s));return i}function Rr(e){if(e.object instanceof Buffer)switch(e.type){case"commit":e.object=wt.from(e.object).parse();break;case"tree":e.object=_o.from(e.object).entries();break;case"blob":e.object=new Uint8Array(e.object),e.format="content";break;case"tag":e.object=Cn.from(e.object).parse();break;default:throw new wi(e.oid,e.type,"blob|commit|tag|tree")}}async function*Tg(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 du(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 Kn(e){return e instanceof Uint8Array,Uint8Array.from(e)}const Og=ko.deflate,Cg=/^[0-9a-f]{40}$/i;async function Lg(e){const t={},r=new TextEncoder;return await Promise.all(e.map(async({oid:i,type:a,body:s})=>{if(!i||s.length===0)return;const n=r.encode(`${a} ${s.length}\0`),o=new Uint8Array(n.length+s.length);o.set(n,0),o.set(s,n.length);const l=await Og(o),p=i.slice(0,2),c=i.slice(2);t[`.git/objects/${p}/${c}`]=l})),t}function $g(e,t,r){const i=(e==null?void 0:e.trim())??"";let a=null;switch(t){case"branch":i&&(a=`refs/heads/${i}`);break;case"refname":a=i||null;break;case"tag":i.startsWith("refs/")?a=i:i&&(a=`refs/tags/${i}`);break;case"commit":a=null;break;default:i.startsWith("refs/")?a=i:Cg.test(i)?a=null:i&&i!=="HEAD"&&(a=`refs/heads/${i}`);break}const s=a?`ref: ${a}
|
|
79
79
|
`:`${r}
|
|
80
|
-
`,n=a&&a.startsWith("refs/heads/")?a:void 0,o=n==null?void 0:n.slice(11),
|
|
80
|
+
`,n=a&&a.startsWith("refs/heads/")?a:void 0,o=n==null?void 0:n.slice(11),l=a&&a.startsWith("refs/tags/")?a:void 0,p=l==null?void 0:l.slice(10);return{headContent:s,branchName:o,branchRef:n,tagName:p}}function Rg(e,{branchName:t,partialCloneFilter:r}){const a=["[core]",` repositoryformatversion = ${r?1:0}`," filemode = true"," bare = false"," logallrefupdates = true"," ignorecase = true"," precomposeunicode = true",'[remote "origin"]',` url = ${e}`," fetch = +refs/heads/*:refs/remotes/origin/*"," fetch = +refs/tags/*:refs/tags/*"];return r&&(a.push(" promisor = true"),a.push(` partialclonefilter = ${r}`),a.push("[extensions]"),a.push(" partialclone = origin")),t&&a.push(`[branch "${t}"]`," remote = origin",` merge = refs/heads/${t}`),a.join(`
|
|
81
81
|
`)+`
|
|
82
|
-
`}async function
|
|
82
|
+
`}async function Ig({repoUrl:e,commitHash:t,ref:r,refType:i,objects:a,fileOids:s,pathPrefix:n}){const o={},l=$g(r,i,t);o[".git/HEAD"]=l.headContent,o[".git/config"]=Rg(e,{branchName:l.branchName}),o[".git/description"]=`WordPress Playground clone
|
|
83
83
|
`,o[".git/shallow"]=`${t}
|
|
84
|
-
`,o[".git/refs/heads/.gitkeep"]="",o[".git/refs/tags/.gitkeep"]="",o[".git/refs/remotes/.gitkeep"]="",
|
|
85
|
-
`,o[`.git/${
|
|
86
|
-
`,o[`.git/refs/remotes/origin/${
|
|
87
|
-
`,o[".git/refs/remotes/origin/HEAD"]=`ref: refs/remotes/origin/${
|
|
88
|
-
`),
|
|
89
|
-
`),Object.assign(o,await l_(a));const p=new Ar;for(const[m,h]of Object.entries(s)){const g=m.substring(n.length).replace(/^\/+/,"");p.insert({filepath:g,oid:h,stats:{ctimeSeconds:0,ctimeNanoseconds:0,mtimeSeconds:0,mtimeNanoseconds:0,dev:0,ino:0,mode:33188,uid:0,gid:0,size:0}})}const c=await p.toObject();return o[".git/index"]=Uint8Array.from(c),o}function u_(e,t){t=si(t);const r=["",".","/"].includes(t);let i=e;if(r)t="";else{const n=t.split("/");for(const o of n){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=[],s=[{tree:i,path:t}];for(;s.length>0;){const{tree:n,path:o}=s.pop();for(const f of n){const p=`${o}${o?"/":""}${f.name}`;f.type==="folder"?s.push({tree:f.children,path:p}):a.push(p)}}return a}const Mn=15,Za=30,Ya=19,d_=29,Xs=256,Po=Xs+1+d_,wf=2*Po+1,bn=256,h_=7,bf=16,vf=17,xf=18,ma=8*2,Js=-1,m_=1,ms=2,y_=0,Qr=0,Sf=1,g_=3,pt=4,It=0,lu=1,ys=2,Dt=-2,__=-3,Vr=-5;function hi(e){return mi(e.map(([t,r])=>new Array(t).fill(r,0,t)))}function mi(e){return e.reduce((t,r)=>t.concat(Array.isArray(r)?mi(r):r),[])}const kf=[0,1,2,3].concat(...hi([[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 Re(){const e=this;function t(a){const s=e.dyn_tree,n=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,g,R,y,_=0;for(g=0;g<=Mn;g++)a.bl_count[g]=0;for(s[a.heap[a.heap_max]*2+1]=0,c=a.heap_max+1;c<wf;c++)m=a.heap[c],g=s[s[m*2+1]*2+1]+1,g>p&&(g=p,_++),s[m*2+1]=g,!(m>e.max_code)&&(a.bl_count[g]++,R=0,m>=f&&(R=o[m-f]),y=s[m*2],a.opt_len+=y*(g+R),n&&(a.static_len+=y*(n[m*2+1]+R)));if(_!==0){do{for(g=p-1;a.bl_count[g]===0;)g--;a.bl_count[g]--,a.bl_count[g+1]+=2,a.bl_count[p]--,_-=2}while(_>0);for(g=p;g!==0;g--)for(m=a.bl_count[g];m!==0;)h=a.heap[--c],!(h>e.max_code)&&(s[h*2+1]!=g&&(a.opt_len+=(g-s[h*2+1])*s[h*2],s[h*2+1]=g),m--)}}function r(a,s){let n=0;do n|=a&1,a>>>=1,n<<=1;while(--s>0);return n>>>1}function i(a,s,n){const o=[];let f=0,p,c,m;for(p=1;p<=Mn;p++)o[p]=f=f+n[p-1]<<1;for(c=0;c<=s;c++)m=a[c*2+1],m!==0&&(a[c*2]=r(o[m]++,m))}e.build_tree=function(a){const s=e.dyn_tree,n=e.stat_desc.static_tree,o=e.stat_desc.elems;let f,p,c=-1,m;for(a.heap_len=0,a.heap_max=wf,f=0;f<o;f++)s[f*2]!==0?(a.heap[++a.heap_len]=c=f,a.depth[f]=0):s[f*2+1]=0;for(;a.heap_len<2;)m=a.heap[++a.heap_len]=c<2?++c:0,s[m*2]=1,a.depth[m]=0,a.opt_len--,n&&(a.static_len-=n[m*2+1]);for(e.max_code=c,f=Math.floor(a.heap_len/2);f>=1;f--)a.pqdownheap(s,f);m=o;do f=a.heap[1],a.heap[1]=a.heap[a.heap_len--],a.pqdownheap(s,1),p=a.heap[1],a.heap[--a.heap_max]=f,a.heap[--a.heap_max]=p,s[m*2]=s[f*2]+s[p*2],a.depth[m]=Math.max(a.depth[f],a.depth[p])+1,s[f*2+1]=s[p*2+1]=m,a.heap[1]=m++,a.pqdownheap(s,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],t(a),i(s,e.max_code,a.bl_count)}}Re._length_code=[0,1,2,3,4,5,6,7].concat(...hi([[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]]));Re.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];Re.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];Re.d_code=function(e){return e<256?kf[e]:kf[256+(e>>>7)]};Re.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];Re.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];Re.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];Re.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function Je(e,t,r,i,a){const s=this;s.static_tree=e,s.extra_bits=t,s.extra_base=r,s.elems=i,s.max_length=a}const w_=[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],b_=hi([[144,8],[112,9],[24,7],[8,8]]);Je.static_ltree=mi(w_.map((e,t)=>[e,b_[t]]));const v_=[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],x_=hi([[30,5]]);Je.static_dtree=mi(v_.map((e,t)=>[e,x_[t]]));Je.static_l_desc=new Je(Je.static_ltree,Re.extra_lbits,Xs+1,Po,Mn);Je.static_d_desc=new Je(Je.static_dtree,Re.extra_dbits,0,Za,Mn);Je.static_bl_desc=new Je(null,Re.extra_blbits,0,Ya,h_);const S_=9,k_=8;function Wt(e,t,r,i,a){const s=this;s.good_length=e,s.max_lazy=t,s.nice_length=r,s.max_chain=i,s.func=a}const fu=0,Ds=1,Er=2,Lt=[new Wt(0,0,0,0,fu),new Wt(4,4,8,4,Ds),new Wt(4,5,16,8,Ds),new Wt(4,6,32,32,Ds),new Wt(4,4,16,16,Er),new Wt(8,16,32,32,Er),new Wt(8,16,128,128,Er),new Wt(8,32,128,256,Er),new Wt(32,128,258,1024,Er),new Wt(32,258,258,4096,Er)],gs=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],kt=0,_s=1,vn=2,ws=3,E_=32,ya=42,bs=113,xn=666,ga=8,P_=0,_a=1,A_=2,Fe=3,Hs=258,gt=Hs+Fe+1;function Ef(e,t,r,i){const a=e[t*2],s=e[r*2];return a<s||a==s&&i[t]<=i[r]}function T_(){const e=this;let t,r,i,a,s,n,o,f,p,c,m,h,g,R,y,_,b,O,k,D,T,H,E,A,L,S,P,$,I,j,U,M,Z;const z=new Re,se=new Re,G=new Re;e.depth=[];let Q,ee,V,fe,ie,ae;e.bl_count=[],e.heap=[],U=[],M=[],Z=[];function Pe(){p=2*s,m[g-1]=0;for(let W=0;W<g-1;W++)m[W]=0;S=Lt[P].max_lazy,I=Lt[P].good_length,j=Lt[P].nice_length,L=Lt[P].max_chain,T=0,b=0,E=0,O=A=Fe-1,D=0,h=0}function Ce(){let W;for(W=0;W<Po;W++)U[W*2]=0;for(W=0;W<Za;W++)M[W*2]=0;for(W=0;W<Ya;W++)Z[W*2]=0;U[bn*2]=1,e.opt_len=e.static_len=0,ee=V=0}function Xe(){z.dyn_tree=U,z.stat_desc=Je.static_l_desc,se.dyn_tree=M,se.stat_desc=Je.static_d_desc,G.dyn_tree=Z,G.stat_desc=Je.static_bl_desc,ie=0,ae=0,fe=8,Ce()}e.pqdownheap=function(W,Y){const q=e.heap,J=q[Y];let ne=Y<<1;for(;ne<=e.heap_len&&(ne<e.heap_len&&Ef(W,q[ne+1],q[ne],e.depth)&&ne++,!Ef(W,J,q[ne],e.depth));)q[Y]=q[ne],Y=ne,ne<<=1;q[Y]=J};function tt(W,Y){let q=-1,J,ne=W[0*2+1],le=0,de=7,We=4;ne===0&&(de=138,We=3),W[(Y+1)*2+1]=65535;for(let ce=0;ce<=Y;ce++)J=ne,ne=W[(ce+1)*2+1],!(++le<de&&J==ne)&&(le<We?Z[J*2]+=le:J!==0?(J!=q&&Z[J*2]++,Z[bf*2]++):le<=10?Z[vf*2]++:Z[xf*2]++,le=0,q=J,ne===0?(de=138,We=3):J==ne?(de=6,We=3):(de=7,We=4))}function St(){let W;for(tt(U,z.max_code),tt(M,se.max_code),G.build_tree(e),W=Ya-1;W>=3&&Z[Re.bl_order[W]*2+1]===0;W--);return e.opt_len+=3*(W+1)+5+5+4,W}function $e(W){e.pending_buf[e.pending++]=W}function De(W){$e(W&255),$e(W>>>8&255)}function ft(W){$e(W>>8&255),$e(W&255&255)}function Le(W,Y){let q;const J=Y;ae>ma-J?(q=W,ie|=q<<ae&65535,De(ie),ie=q>>>ma-ae,ae+=J-ma):(ie|=W<<ae&65535,ae+=J)}function v(W,Y){const q=W*2;Le(Y[q]&65535,Y[q+1]&65535)}function u(W,Y){let q,J=-1,ne,le=W[0*2+1],de=0,We=7,ce=4;for(le===0&&(We=138,ce=3),q=0;q<=Y;q++)if(ne=le,le=W[(q+1)*2+1],!(++de<We&&ne==le)){if(de<ce)do v(ne,Z);while(--de!==0);else ne!==0?(ne!=J&&(v(ne,Z),de--),v(bf,Z),Le(de-3,2)):de<=10?(v(vf,Z),Le(de-3,3)):(v(xf,Z),Le(de-11,7));de=0,J=ne,le===0?(We=138,ce=3):ne==le?(We=6,ce=3):(We=7,ce=4)}}function d(W,Y,q){let J;for(Le(W-257,5),Le(Y-1,5),Le(q-4,4),J=0;J<q;J++)Le(Z[Re.bl_order[J]*2+1],3);u(U,W-1),u(M,Y-1)}function C(){ae==16?(De(ie),ie=0,ae=0):ae>=8&&($e(ie&255),ie>>>=8,ae-=8)}function B(){Le(_a<<1,3),v(bn,Je.static_ltree),C(),1+fe+10-ae<9&&(Le(_a<<1,3),v(bn,Je.static_ltree),C()),fe=7}function K(W,Y){let q,J,ne;if(e.dist_buf[ee]=W,e.lc_buf[ee]=Y&255,ee++,W===0?U[Y*2]++:(V++,W--,U[(Re._length_code[Y]+Xs+1)*2]++,M[Re.d_code(W)*2]++),!(ee&8191)&&P>2){for(q=ee*8,J=T-b,ne=0;ne<Za;ne++)q+=M[ne*2]*(5+Re.extra_dbits[ne]);if(q>>>=3,V<Math.floor(ee/2)&&q<Math.floor(J/2))return!0}return ee==Q-1}function X(W,Y){let q,J,ne=0,le,de;if(ee!==0)do q=e.dist_buf[ne],J=e.lc_buf[ne],ne++,q===0?v(J,W):(le=Re._length_code[J],v(le+Xs+1,W),de=Re.extra_lbits[le],de!==0&&(J-=Re.base_length[le],Le(J,de)),q--,le=Re.d_code(q),v(le,Y),de=Re.extra_dbits[le],de!==0&&(q-=Re.base_dist[le],Le(q,de)));while(ne<ee);v(bn,W),fe=W[bn*2+1]}function pe(){ae>8?De(ie):ae>0&&$e(ie&255),ie=0,ae=0}function _e(W,Y,q){pe(),fe=8,De(Y),De(~Y),e.pending_buf.set(f.subarray(W,W+Y),e.pending),e.pending+=Y}function he(W,Y,q){Le((P_<<1)+(q?1:0),3),_e(W,Y)}function Be(W,Y,q){let J,ne,le=0;P>0?(z.build_tree(e),se.build_tree(e),le=St(),J=e.opt_len+3+7>>>3,ne=e.static_len+3+7>>>3,ne<=J&&(J=ne)):J=ne=Y+5,Y+4<=J&&W!=-1?he(W,Y,q):ne==J?(Le((_a<<1)+(q?1:0),3),X(Je.static_ltree,Je.static_dtree)):(Le((A_<<1)+(q?1:0),3),d(z.max_code+1,se.max_code+1,le+1),X(U,M)),Ce(),q&&pe()}function ue(W){Be(b>=0?b:-1,T-b,W),b=T,t.flush_pending()}function mt(){let W,Y,q,J;do{if(J=p-E-T,J===0&&T===0&&E===0)J=s;else if(J==-1)J--;else if(T>=s+s-gt){f.set(f.subarray(s,s+s),0),H-=s,T-=s,b-=s,W=g,q=W;do Y=m[--q]&65535,m[q]=Y>=s?Y-s:0;while(--W!==0);W=s,q=W;do Y=c[--q]&65535,c[q]=Y>=s?Y-s:0;while(--W!==0);J+=s}if(t.avail_in===0)return;W=t.read_buf(f,T+E,J),E+=W,E>=Fe&&(h=f[T]&255,h=(h<<_^f[T+1]&255)&y)}while(E<gt&&t.avail_in!==0)}function rt(W){let Y=65535,q;for(Y>i-5&&(Y=i-5);;){if(E<=1){if(mt(),E===0&&W==Qr)return kt;if(E===0)break}if(T+=E,E=0,q=b+Y,(T===0||T>=q)&&(E=T-q,T=q,ue(!1),t.avail_out===0)||T-b>=s-gt&&(ue(!1),t.avail_out===0))return kt}return ue(W==pt),t.avail_out===0?W==pt?vn:kt:W==pt?ws:_s}function Ot(W){let Y=L,q=T,J,ne,le=A;const de=T>s-gt?T-(s-gt):0;let We=j;const ce=o,ve=T+Hs;let N=f[q+le-1],oe=f[q+le];A>=I&&(Y>>=2),We>E&&(We=E);do if(J=W,!(f[J+le]!=oe||f[J+le-1]!=N||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<ve);if(ne=Hs-(ve-q),q=ve-Hs,ne>le){if(H=W,le=ne,ne>=We)break;N=f[q+le-1],oe=f[q+le]}}while((W=c[W&ce]&65535)>de&&--Y!==0);return le<=E?le:E}function xi(W){let Y=0,q;for(;;){if(E<gt){if(mt(),E<gt&&W==Qr)return kt;if(E===0)break}if(E>=Fe&&(h=(h<<_^f[T+(Fe-1)]&255)&y,Y=m[h]&65535,c[T&o]=m[h],m[h]=T),Y!==0&&(T-Y&65535)<=s-gt&&$!=ms&&(O=Ot(Y)),O>=Fe)if(q=K(T-H,O-Fe),E-=O,O<=S&&E>=Fe){O--;do T++,h=(h<<_^f[T+(Fe-1)]&255)&y,Y=m[h]&65535,c[T&o]=m[h],m[h]=T;while(--O!==0);T++}else T+=O,O=0,h=f[T]&255,h=(h<<_^f[T+1]&255)&y;else q=K(0,f[T]&255),E--,T++;if(q&&(ue(!1),t.avail_out===0))return kt}return ue(W==pt),t.avail_out===0?W==pt?vn:kt:W==pt?ws:_s}function nt(W){let Y=0,q,J;for(;;){if(E<gt){if(mt(),E<gt&&W==Qr)return kt;if(E===0)break}if(E>=Fe&&(h=(h<<_^f[T+(Fe-1)]&255)&y,Y=m[h]&65535,c[T&o]=m[h],m[h]=T),A=O,k=H,O=Fe-1,Y!==0&&A<S&&(T-Y&65535)<=s-gt&&($!=ms&&(O=Ot(Y)),O<=5&&($==m_||O==Fe&&T-H>4096)&&(O=Fe-1)),A>=Fe&&O<=A){J=T+E-Fe,q=K(T-1-k,A-Fe),E-=A-1,A-=2;do++T<=J&&(h=(h<<_^f[T+(Fe-1)]&255)&y,Y=m[h]&65535,c[T&o]=m[h],m[h]=T);while(--A!==0);if(D=0,O=Fe-1,T++,q&&(ue(!1),t.avail_out===0))return kt}else if(D!==0){if(q=K(0,f[T-1]&255),q&&ue(!1),T++,E--,t.avail_out===0)return kt}else D=1,T++,E--}return D!==0&&(q=K(0,f[T-1]&255),D=0),ue(W==pt),t.avail_out===0?W==pt?vn:kt:W==pt?ws:_s}function Mr(W){return W.total_in=W.total_out=0,W.msg=null,e.pending=0,e.pending_out=0,r=bs,a=Qr,Xe(),Pe(),It}e.deflateInit=function(W,Y,q,J,ne,le){return J||(J=ga),ne||(ne=k_),le||(le=y_),W.msg=null,Y==Js&&(Y=6),ne<1||ne>S_||J!=ga||q<9||q>15||Y<0||Y>9||le<0||le>ms?Dt:(W.dstate=e,n=q,s=1<<n,o=s-1,R=ne+7,g=1<<R,y=g-1,_=Math.floor((R+Fe-1)/Fe),f=new Uint8Array(s*2),c=[],m=[],Q=1<<ne+6,e.pending_buf=new Uint8Array(Q*4),i=Q*4,e.dist_buf=new Uint16Array(Q),e.lc_buf=new Uint8Array(Q),P=Y,$=le,Mr(W))},e.deflateEnd=function(){return r!=ya&&r!=bs&&r!=xn?Dt:(e.lc_buf=null,e.dist_buf=null,e.pending_buf=null,m=null,c=null,f=null,e.dstate=null,r==bs?__:It)},e.deflateParams=function(W,Y,q){let J=It;return Y==Js&&(Y=6),Y<0||Y>9||q<0||q>ms?Dt:(Lt[P].func!=Lt[Y].func&&W.total_in!==0&&(J=W.deflate(Sf)),P!=Y&&(P=Y,S=Lt[P].max_lazy,I=Lt[P].good_length,j=Lt[P].nice_length,L=Lt[P].max_chain),$=q,J)},e.deflateSetDictionary=function(W,Y,q){let J=q,ne,le=0;if(!Y||r!=ya)return Dt;if(J<Fe)return It;for(J>s-gt&&(J=s-gt,le=q-J),f.set(Y.subarray(le,le+J),0),T=J,b=J,h=f[0]&255,h=(h<<_^f[1]&255)&y,ne=0;ne<=J-Fe;ne++)h=(h<<_^f[ne+(Fe-1)]&255)&y,c[ne&o]=m[h],m[h]=ne;return It},e.deflate=function(W,Y){let q,J,ne,le,de;if(Y>pt||Y<0)return Dt;if(!W.next_out||!W.next_in&&W.avail_in!==0||r==xn&&Y!=pt)return W.msg=gs[ys-Dt],Dt;if(W.avail_out===0)return W.msg=gs[ys-Vr],Vr;if(t=W,le=a,a=Y,r==ya&&(J=ga+(n-8<<4)<<8,ne=(P-1&255)>>1,ne>3&&(ne=3),J|=ne<<6,T!==0&&(J|=E_),J+=31-J%31,r=bs,ft(J)),e.pending!==0){if(t.flush_pending(),t.avail_out===0)return a=-1,It}else if(t.avail_in===0&&Y<=le&&Y!=pt)return t.msg=gs[ys-Vr],Vr;if(r==xn&&t.avail_in!==0)return W.msg=gs[ys-Vr],Vr;if(t.avail_in!==0||E!==0||Y!=Qr&&r!=xn){switch(de=-1,Lt[P].func){case fu:de=rt(Y);break;case Ds:de=xi(Y);break;case Er:de=nt(Y);break}if((de==vn||de==ws)&&(r=xn),de==kt||de==vn)return t.avail_out===0&&(a=-1),It;if(de==_s){if(Y==Sf)B();else if(he(0,0,!1),Y==g_)for(q=0;q<g;q++)m[q]=0;if(t.flush_pending(),t.avail_out===0)return a=-1,It}}return Y!=pt?It:lu}}function pu(){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}pu.prototype={deflateInit(e,t){const r=this;return r.dstate=new T_,t||(t=Mn),r.dstate.deflateInit(r,e,t)},deflate(e){const t=this;return t.dstate?t.dstate.deflate(t,e):Dt},deflateEnd(){const e=this;if(!e.dstate)return Dt;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):Dt},deflateSetDictionary(e,t){const r=this;return r.dstate?r.dstate.deflateSetDictionary(r,e,t):Dt},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 C_(e){const t=this,r=new pu,i=O_(e&&e.chunkSize?e.chunkSize:64*1024),a=Qr,s=new Uint8Array(i);let n=e?e.level:Js;typeof n>"u"&&(n=Js),r.deflateInit(n),r.next_out=s,t.append=function(o,f){let p,c,m=0,h=0,g=0;const R=[];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!=It)throw new Error("deflating: "+r.msg);r.next_out_index&&(r.next_out_index==i?R.push(new Uint8Array(s)):R.push(s.subarray(0,r.next_out_index))),g+=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 R.length>1?(c=new Uint8Array(g),R.forEach(function(y){c.set(y,h),h+=y.length})):c=R[0]?new Uint8Array(R[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(pt),o!=lu&&o!=It)throw new Error("deflating: "+r.msg);i-r.avail_out>0&&m.push(s.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 O_(e){return e+5*(Math.floor(e/16383)+1)}const L_=15,be=0,ir=1,R_=2,ct=-2,Ie=-3,Pf=-4,ar=-5,wt=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],cu=1440,I_=0,$_=4,D_=9,H_=5,F_=[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],B_=[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],j_=[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],N_=[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],U_=[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],W_=[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],pr=15;function Xa(){const e=this;let t,r,i,a,s,n;function o(p,c,m,h,g,R,y,_,b,O,k){let D,T,H,E,A,L,S,P,$,I,j,U,M,Z,z;I=0,A=m;do i[p[c+I]]++,I++,A--;while(A!==0);if(i[0]==m)return y[0]=-1,_[0]=0,be;for(P=_[0],L=1;L<=pr&&i[L]===0;L++);for(S=L,P<L&&(P=L),A=pr;A!==0&&i[A]===0;A--);for(H=A,P>A&&(P=A),_[0]=P,Z=1<<L;L<A;L++,Z<<=1)if((Z-=i[L])<0)return Ie;if((Z-=i[A])<0)return Ie;for(i[A]+=Z,n[1]=L=0,I=1,M=2;--A!==0;)n[M]=L+=i[I],M++,I++;A=0,I=0;do(L=p[c+I])!==0&&(k[n[L]++]=A),I++;while(++A<m);for(m=n[H],n[0]=A=0,I=0,E=-1,U=-P,s[0]=0,j=0,z=0;S<=H;S++)for(D=i[S];D--!==0;){for(;S>U+P;){if(E++,U+=P,z=H-U,z=z>P?P:z,(T=1<<(L=S-U))>D+1&&(T-=D+1,M=S,L<z))for(;++L<z&&!((T<<=1)<=i[++M]);)T-=i[M];if(z=1<<L,O[0]+z>cu)return Ie;s[E]=j=O[0],O[0]+=z,E!==0?(n[E]=A,a[0]=L,a[1]=P,L=A>>>U-P,a[2]=j-s[E-1]-L,b.set(a,(s[E-1]+L)*3)):y[0]=j}for(a[1]=S-U,I>=m?a[0]=192:k[I]<h?(a[0]=k[I]<256?0:96,a[2]=k[I++]):(a[0]=R[k[I]-h]+16+64,a[2]=g[k[I++]-h]),T=1<<S-U,L=A>>>U;L<z;L+=T)b.set(a,(j+L)*3);for(L=1<<S-1;A&L;L>>>=1)A^=L;for(A^=L,$=(1<<U)-1;(A&$)!=n[E];)E--,U-=P,$=(1<<U)-1}return Z!==0&&H!=1?ar:be}function f(p){let c;for(t||(t=[],r=[],i=new Int32Array(pr+1),a=[],s=new Int32Array(pr),n=new Int32Array(pr+1)),r.length<p&&(r=[]),c=0;c<p;c++)r[c]=0;for(c=0;c<pr+1;c++)i[c]=0;for(c=0;c<3;c++)a[c]=0;s.set(i.subarray(0,pr),0),n.set(i.subarray(0,pr+1),0)}e.inflate_trees_bits=function(p,c,m,h,g){let R;return f(19),t[0]=0,R=o(p,0,19,19,null,null,m,c,h,t,r),R==Ie?g.msg="oversubscribed dynamic bit lengths tree":(R==ar||c[0]===0)&&(g.msg="incomplete dynamic bit lengths tree",R=Ie),R},e.inflate_trees_dynamic=function(p,c,m,h,g,R,y,_,b){let O;return f(288),t[0]=0,O=o(m,0,p,257,j_,N_,R,h,_,t,r),O!=be||h[0]===0?(O==Ie?b.msg="oversubscribed literal/length tree":O!=Pf&&(b.msg="incomplete literal/length tree",O=Ie),O):(f(288),O=o(m,p,c,0,U_,W_,y,g,_,t,r),O!=be||g[0]===0&&p>257?(O==Ie?b.msg="oversubscribed distance tree":O==ar?(b.msg="incomplete distance tree",O=Ie):O!=Pf&&(b.msg="empty distance tree with lengths",O=Ie),O):be)}}Xa.inflate_trees_fixed=function(e,t,r,i){return e[0]=D_,t[0]=H_,r[0]=F_,i[0]=B_,be};const vs=0,Af=1,Tf=2,Cf=3,Of=4,Lf=5,Rf=6,wa=7,If=8,xs=9;function M_(){const e=this;let t,r=0,i,a=0,s=0,n=0,o=0,f=0,p=0,c=0,m,h=0,g,R=0;function y(_,b,O,k,D,T,H,E){let A,L,S,P,$,I,j,U,M,Z,z,se,G,Q,ee,V;j=E.next_in_index,U=E.avail_in,$=H.bitb,I=H.bitk,M=H.write,Z=M<H.read?H.read-M-1:H.end-M,z=wt[_],se=wt[b];do{for(;I<20;)U--,$|=(E.read_byte(j++)&255)<<I,I+=8;if(A=$&z,L=O,S=k,V=(S+A)*3,(P=L[V])===0){$>>=L[V+1],I-=L[V+1],H.win[M++]=L[V+2],Z--;continue}do{if($>>=L[V+1],I-=L[V+1],P&16){for(P&=15,G=L[V+2]+($&wt[P]),$>>=P,I-=P;I<15;)U--,$|=(E.read_byte(j++)&255)<<I,I+=8;A=$&se,L=D,S=T,V=(S+A)*3,P=L[V];do if($>>=L[V+1],I-=L[V+1],P&16){for(P&=15;I<P;)U--,$|=(E.read_byte(j++)&255)<<I,I+=8;if(Q=L[V+2]+($&wt[P]),$>>=P,I-=P,Z-=G,M>=Q)ee=M-Q,M-ee>0&&2>M-ee?(H.win[M++]=H.win[ee++],H.win[M++]=H.win[ee++],G-=2):(H.win.set(H.win.subarray(ee,ee+2),M),M+=2,ee+=2,G-=2);else{ee=M-Q;do ee+=H.end;while(ee<0);if(P=H.end-ee,G>P){if(G-=P,M-ee>0&&P>M-ee)do H.win[M++]=H.win[ee++];while(--P!==0);else H.win.set(H.win.subarray(ee,ee+P),M),M+=P,ee+=P,P=0;ee=0}}if(M-ee>0&&G>M-ee)do H.win[M++]=H.win[ee++];while(--G!==0);else H.win.set(H.win.subarray(ee,ee+G),M),M+=G,ee+=G,G=0;break}else if(!(P&64))A+=L[V+2],A+=$&wt[P],V=(S+A)*3,P=L[V];else return E.msg="invalid distance code",G=E.avail_in-U,G=I>>3<G?I>>3:G,U+=G,j-=G,I-=G<<3,H.bitb=$,H.bitk=I,E.avail_in=U,E.total_in+=j-E.next_in_index,E.next_in_index=j,H.write=M,Ie;while(!0);break}if(P&64)return P&32?(G=E.avail_in-U,G=I>>3<G?I>>3:G,U+=G,j-=G,I-=G<<3,H.bitb=$,H.bitk=I,E.avail_in=U,E.total_in+=j-E.next_in_index,E.next_in_index=j,H.write=M,ir):(E.msg="invalid literal/length code",G=E.avail_in-U,G=I>>3<G?I>>3:G,U+=G,j-=G,I-=G<<3,H.bitb=$,H.bitk=I,E.avail_in=U,E.total_in+=j-E.next_in_index,E.next_in_index=j,H.write=M,Ie);if(A+=L[V+2],A+=$&wt[P],V=(S+A)*3,(P=L[V])===0){$>>=L[V+1],I-=L[V+1],H.win[M++]=L[V+2],Z--;break}}while(!0)}while(Z>=258&&U>=10);return G=E.avail_in-U,G=I>>3<G?I>>3:G,U+=G,j-=G,I-=G<<3,H.bitb=$,H.bitk=I,E.avail_in=U,E.total_in+=j-E.next_in_index,E.next_in_index=j,H.write=M,be}e.init=function(_,b,O,k,D,T){t=vs,p=_,c=b,m=O,h=k,g=D,R=T,i=null},e.proc=function(_,b,O){let k,D,T,H=0,E=0,A=0,L,S,P,$;for(A=b.next_in_index,L=b.avail_in,H=_.bitb,E=_.bitk,S=_.write,P=S<_.read?_.read-S-1:_.end-S;;)switch(t){case vs:if(P>=258&&L>=10&&(_.bitb=H,_.bitk=E,b.avail_in=L,b.total_in+=A-b.next_in_index,b.next_in_index=A,_.write=S,O=y(p,c,m,h,g,R,_,b),A=b.next_in_index,L=b.avail_in,H=_.bitb,E=_.bitk,S=_.write,P=S<_.read?_.read-S-1:_.end-S,O!=be)){t=O==ir?wa:xs;break}s=p,i=m,a=h,t=Af;case Af:for(k=s;E<k;){if(L!==0)O=be;else return _.bitb=H,_.bitk=E,b.avail_in=L,b.total_in+=A-b.next_in_index,b.next_in_index=A,_.write=S,_.inflate_flush(b,O);L--,H|=(b.read_byte(A++)&255)<<E,E+=8}if(D=(a+(H&wt[k]))*3,H>>>=i[D+1],E-=i[D+1],T=i[D],T===0){n=i[D+2],t=Rf;break}if(T&16){o=T&15,r=i[D+2],t=Tf;break}if(!(T&64)){s=T,a=D/3+i[D+2];break}if(T&32){t=wa;break}return t=xs,b.msg="invalid literal/length code",O=Ie,_.bitb=H,_.bitk=E,b.avail_in=L,b.total_in+=A-b.next_in_index,b.next_in_index=A,_.write=S,_.inflate_flush(b,O);case Tf:for(k=o;E<k;){if(L!==0)O=be;else return _.bitb=H,_.bitk=E,b.avail_in=L,b.total_in+=A-b.next_in_index,b.next_in_index=A,_.write=S,_.inflate_flush(b,O);L--,H|=(b.read_byte(A++)&255)<<E,E+=8}r+=H&wt[k],H>>=k,E-=k,s=c,i=g,a=R,t=Cf;case Cf:for(k=s;E<k;){if(L!==0)O=be;else return _.bitb=H,_.bitk=E,b.avail_in=L,b.total_in+=A-b.next_in_index,b.next_in_index=A,_.write=S,_.inflate_flush(b,O);L--,H|=(b.read_byte(A++)&255)<<E,E+=8}if(D=(a+(H&wt[k]))*3,H>>=i[D+1],E-=i[D+1],T=i[D],T&16){o=T&15,f=i[D+2],t=Of;break}if(!(T&64)){s=T,a=D/3+i[D+2];break}return t=xs,b.msg="invalid distance code",O=Ie,_.bitb=H,_.bitk=E,b.avail_in=L,b.total_in+=A-b.next_in_index,b.next_in_index=A,_.write=S,_.inflate_flush(b,O);case Of:for(k=o;E<k;){if(L!==0)O=be;else return _.bitb=H,_.bitk=E,b.avail_in=L,b.total_in+=A-b.next_in_index,b.next_in_index=A,_.write=S,_.inflate_flush(b,O);L--,H|=(b.read_byte(A++)&255)<<E,E+=8}f+=H&wt[k],H>>=k,E-=k,t=Lf;case Lf:for($=S-f;$<0;)$+=_.end;for(;r!==0;){if(P===0&&(S==_.end&&_.read!==0&&(S=0,P=S<_.read?_.read-S-1:_.end-S),P===0&&(_.write=S,O=_.inflate_flush(b,O),S=_.write,P=S<_.read?_.read-S-1:_.end-S,S==_.end&&_.read!==0&&(S=0,P=S<_.read?_.read-S-1:_.end-S),P===0)))return _.bitb=H,_.bitk=E,b.avail_in=L,b.total_in+=A-b.next_in_index,b.next_in_index=A,_.write=S,_.inflate_flush(b,O);_.win[S++]=_.win[$++],P--,$==_.end&&($=0),r--}t=vs;break;case Rf:if(P===0&&(S==_.end&&_.read!==0&&(S=0,P=S<_.read?_.read-S-1:_.end-S),P===0&&(_.write=S,O=_.inflate_flush(b,O),S=_.write,P=S<_.read?_.read-S-1:_.end-S,S==_.end&&_.read!==0&&(S=0,P=S<_.read?_.read-S-1:_.end-S),P===0)))return _.bitb=H,_.bitk=E,b.avail_in=L,b.total_in+=A-b.next_in_index,b.next_in_index=A,_.write=S,_.inflate_flush(b,O);O=be,_.win[S++]=n,P--,t=vs;break;case wa:if(E>7&&(E-=8,L++,A--),_.write=S,O=_.inflate_flush(b,O),S=_.write,P=S<_.read?_.read-S-1:_.end-S,_.read!=_.write)return _.bitb=H,_.bitk=E,b.avail_in=L,b.total_in+=A-b.next_in_index,b.next_in_index=A,_.write=S,_.inflate_flush(b,O);t=If;case If:return O=ir,_.bitb=H,_.bitk=E,b.avail_in=L,b.total_in+=A-b.next_in_index,b.next_in_index=A,_.write=S,_.inflate_flush(b,O);case xs:return O=Ie,_.bitb=H,_.bitk=E,b.avail_in=L,b.total_in+=A-b.next_in_index,b.next_in_index=A,_.write=S,_.inflate_flush(b,O);default:return O=ct,_.bitb=H,_.bitk=E,b.avail_in=L,b.total_in+=A-b.next_in_index,b.next_in_index=A,_.write=S,_.inflate_flush(b,O)}},e.free=function(){}}const $f=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Zr=0,ba=1,Df=2,Hf=3,Ff=4,Bf=5,Ss=6,ks=7,jf=8,kr=9;function q_(e,t){const r=this;let i=Zr,a=0,s=0,n=0,o;const f=[0],p=[0],c=new M_;let m=0,h=new Int32Array(cu*3);const g=0,R=new Xa;r.bitk=0,r.bitb=0,r.win=new Uint8Array(t),r.end=t,r.read=0,r.write=0,r.reset=function(y,_){_&&(_[0]=g),i==Ss&&c.free(y),i=Zr,r.bitk=0,r.bitb=0,r.read=r.write=0},r.reset(e,null),r.inflate_flush=function(y,_){let b,O,k;return O=y.next_out_index,k=r.read,b=(k<=r.write?r.write:r.end)-k,b>y.avail_out&&(b=y.avail_out),b!==0&&_==ar&&(_=be),y.avail_out-=b,y.total_out+=b,y.next_out.set(r.win.subarray(k,k+b),O),O+=b,k+=b,k==r.end&&(k=0,r.write==r.end&&(r.write=0),b=r.write-k,b>y.avail_out&&(b=y.avail_out),b!==0&&_==ar&&(_=be),y.avail_out-=b,y.total_out+=b,y.next_out.set(r.win.subarray(k,k+b),O),O+=b,k+=b),y.next_out_index=O,r.read=k,_},r.proc=function(y,_){let b,O,k,D,T,H,E,A;for(D=y.next_in_index,T=y.avail_in,O=r.bitb,k=r.bitk,H=r.write,E=H<r.read?r.read-H-1:r.end-H;;){let L,S,P,$,I,j,U,M;switch(i){case Zr:for(;k<3;){if(T!==0)_=be;else return r.bitb=O,r.bitk=k,y.avail_in=T,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,_);T--,O|=(y.read_byte(D++)&255)<<k,k+=8}switch(b=O&7,m=b&1,b>>>1){case 0:O>>>=3,k-=3,b=k&7,O>>>=b,k-=b,i=ba;break;case 1:L=[],S=[],P=[[]],$=[[]],Xa.inflate_trees_fixed(L,S,P,$),c.init(L[0],S[0],P[0],0,$[0],0),O>>>=3,k-=3,i=Ss;break;case 2:O>>>=3,k-=3,i=Hf;break;case 3:return O>>>=3,k-=3,i=kr,y.msg="invalid block type",_=Ie,r.bitb=O,r.bitk=k,y.avail_in=T,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,_)}break;case ba:for(;k<32;){if(T!==0)_=be;else return r.bitb=O,r.bitk=k,y.avail_in=T,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,_);T--,O|=(y.read_byte(D++)&255)<<k,k+=8}if((~O>>>16&65535)!=(O&65535))return i=kr,y.msg="invalid stored block lengths",_=Ie,r.bitb=O,r.bitk=k,y.avail_in=T,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,_);a=O&65535,O=k=0,i=a!==0?Df:m!==0?ks:Zr;break;case Df:if(T===0||E===0&&(H==r.end&&r.read!==0&&(H=0,E=H<r.read?r.read-H-1:r.end-H),E===0&&(r.write=H,_=r.inflate_flush(y,_),H=r.write,E=H<r.read?r.read-H-1:r.end-H,H==r.end&&r.read!==0&&(H=0,E=H<r.read?r.read-H-1:r.end-H),E===0)))return r.bitb=O,r.bitk=k,y.avail_in=T,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,_);if(_=be,b=a,b>T&&(b=T),b>E&&(b=E),r.win.set(y.read_buf(D,b),H),D+=b,T-=b,H+=b,E-=b,(a-=b)!==0)break;i=m!==0?ks:Zr;break;case Hf:for(;k<14;){if(T!==0)_=be;else return r.bitb=O,r.bitk=k,y.avail_in=T,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,_);T--,O|=(y.read_byte(D++)&255)<<k,k+=8}if(s=b=O&16383,(b&31)>29||(b>>5&31)>29)return i=kr,y.msg="too many length or distance symbols",_=Ie,r.bitb=O,r.bitk=k,y.avail_in=T,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,_);if(b=258+(b&31)+(b>>5&31),!o||o.length<b)o=[];else for(A=0;A<b;A++)o[A]=0;O>>>=14,k-=14,n=0,i=Ff;case Ff:for(;n<4+(s>>>10);){for(;k<3;){if(T!==0)_=be;else return r.bitb=O,r.bitk=k,y.avail_in=T,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,_);T--,O|=(y.read_byte(D++)&255)<<k,k+=8}o[$f[n++]]=O&7,O>>>=3,k-=3}for(;n<19;)o[$f[n++]]=0;if(f[0]=7,b=R.inflate_trees_bits(o,f,p,h,y),b!=be)return _=b,_==Ie&&(o=null,i=kr),r.bitb=O,r.bitk=k,y.avail_in=T,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,_);n=0,i=Bf;case Bf:for(;b=s,!(n>=258+(b&31)+(b>>5&31));){let Z,z;for(b=f[0];k<b;){if(T!==0)_=be;else return r.bitb=O,r.bitk=k,y.avail_in=T,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,_);T--,O|=(y.read_byte(D++)&255)<<k,k+=8}if(b=h[(p[0]+(O&wt[b]))*3+1],z=h[(p[0]+(O&wt[b]))*3+2],z<16)O>>>=b,k-=b,o[n++]=z;else{for(A=z==18?7:z-14,Z=z==18?11:3;k<b+A;){if(T!==0)_=be;else return r.bitb=O,r.bitk=k,y.avail_in=T,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,_);T--,O|=(y.read_byte(D++)&255)<<k,k+=8}if(O>>>=b,k-=b,Z+=O&wt[A],O>>>=A,k-=A,A=n,b=s,A+Z>258+(b&31)+(b>>5&31)||z==16&&A<1)return o=null,i=kr,y.msg="invalid bit length repeat",_=Ie,r.bitb=O,r.bitk=k,y.avail_in=T,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,_);z=z==16?o[A-1]:0;do o[A++]=z;while(--Z!==0);n=A}}if(p[0]=-1,I=[],j=[],U=[],M=[],I[0]=9,j[0]=6,b=s,b=R.inflate_trees_dynamic(257+(b&31),1+(b>>5&31),o,I,j,U,M,h,y),b!=be)return b==Ie&&(o=null,i=kr),_=b,r.bitb=O,r.bitk=k,y.avail_in=T,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,_);c.init(I[0],j[0],h,U[0],h,M[0]),i=Ss;case Ss:if(r.bitb=O,r.bitk=k,y.avail_in=T,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,(_=c.proc(r,y,_))!=ir)return r.inflate_flush(y,_);if(_=be,c.free(y),D=y.next_in_index,T=y.avail_in,O=r.bitb,k=r.bitk,H=r.write,E=H<r.read?r.read-H-1:r.end-H,m===0){i=Zr;break}i=ks;case ks:if(r.write=H,_=r.inflate_flush(y,_),H=r.write,E=H<r.read?r.read-H-1:r.end-H,r.read!=r.write)return r.bitb=O,r.bitk=k,y.avail_in=T,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,_);i=jf;case jf:return _=ir,r.bitb=O,r.bitk=k,y.avail_in=T,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,_);case kr:return _=Ie,r.bitb=O,r.bitk=k,y.avail_in=T,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,_);default:return _=ct,r.bitb=O,r.bitk=k,y.avail_in=T,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,_)}}},r.free=function(y){r.reset(y,null),r.win=null,h=null},r.set_dictionary=function(y,_,b){r.win.set(y.subarray(_,_+b),0),r.read=r.write=b},r.sync_point=function(){return i==ba?1:0}}const K_=32,z_=8,G_=0,Nf=1,Uf=2,Wf=3,Mf=4,qf=5,va=6,Sn=7,Kf=12,cr=13,V_=[0,0,255,255];function Z_(){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?ct:(r.total_in=r.total_out=0,r.msg=null,r.istate.mode=Sn,r.istate.blocks.reset(r,null),be)}e.inflateEnd=function(r){return e.blocks&&e.blocks.free(r),e.blocks=null,be},e.inflateInit=function(r,i){return r.msg=null,e.blocks=null,i<8||i>15?(e.inflateEnd(r),ct):(e.wbits=i,r.istate.blocks=new q_(r,1<<i),t(r),be)},e.inflate=function(r,i){let a,s;if(!r||!r.istate||!r.next_in)return ct;const n=r.istate;for(i=i==$_?ar:be,a=ar;;)switch(n.mode){case G_:if(r.avail_in===0)return a;if(a=i,r.avail_in--,r.total_in++,((n.method=r.read_byte(r.next_in_index++))&15)!=z_){n.mode=cr,r.msg="unknown compression method",n.marker=5;break}if((n.method>>4)+8>n.wbits){n.mode=cr,r.msg="invalid win size",n.marker=5;break}n.mode=Nf;case Nf:if(r.avail_in===0)return a;if(a=i,r.avail_in--,r.total_in++,s=r.read_byte(r.next_in_index++)&255,((n.method<<8)+s)%31!==0){n.mode=cr,r.msg="incorrect header check",n.marker=5;break}if(!(s&K_)){n.mode=Sn;break}n.mode=Uf;case Uf:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,n.need=(r.read_byte(r.next_in_index++)&255)<<24&4278190080,n.mode=Wf;case Wf:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,n.need+=(r.read_byte(r.next_in_index++)&255)<<16&16711680,n.mode=Mf;case Mf:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,n.need+=(r.read_byte(r.next_in_index++)&255)<<8&65280,n.mode=qf;case qf:return r.avail_in===0?a:(a=i,r.avail_in--,r.total_in++,n.need+=r.read_byte(r.next_in_index++)&255,n.mode=va,R_);case va:return n.mode=cr,r.msg="need dictionary",n.marker=0,ct;case Sn:if(a=n.blocks.proc(r,a),a==Ie){n.mode=cr,n.marker=0;break}if(a==be&&(a=i),a!=ir)return a;a=i,n.blocks.reset(r,n.was),n.mode=Kf;case Kf:return r.avail_in=0,ir;case cr:return Ie;default:return ct}},e.inflateSetDictionary=function(r,i,a){let s=0,n=a;if(!r||!r.istate||r.istate.mode!=va)return ct;const o=r.istate;return n>=1<<o.wbits&&(n=(1<<o.wbits)-1,s=a-n),o.blocks.set_dictionary(i,s,n),o.mode=Sn,be},e.inflateSync=function(r){let i,a,s,n,o;if(!r||!r.istate)return ct;const f=r.istate;if(f.mode!=cr&&(f.mode=cr,f.marker=0),(i=r.avail_in)===0)return ar;for(a=r.next_in_index,s=f.marker;i!==0&&s<4;)r.read_byte(a)==V_[s]?s++:r.read_byte(a)!==0?s=0:s=4-s,a++,i--;return r.total_in+=a-r.next_in_index,r.next_in_index=a,r.avail_in=i,f.marker=s,s!=4?Ie:(n=r.total_in,o=r.total_out,t(r),r.total_in=n,r.total_out=o,f.mode=Sn,be)},e.inflateSyncPoint=function(r){return!r||!r.istate||!r.istate.blocks?ct:r.istate.blocks.sync_point()}}function uu(){}uu.prototype={inflateInit(e){const t=this;return t.istate=new Z_,e||(e=L_),t.istate.inflateInit(t,e)},inflate(e){const t=this;return t.istate?t.istate.inflate(t,e):ct},inflateEnd(){const e=this;if(!e.istate)return ct;const t=e.istate.inflateEnd(e);return e.istate=null,t},inflateSync(){const e=this;return e.istate?e.istate.inflateSync(e):ct},inflateSetDictionary(e,t){const r=this;return r.istate?r.istate.inflateSetDictionary(r,e,t):ct},read_byte(e){return this.next_in[e]},read_buf(e,t){return this.next_in.subarray(e,e+t)}};function Y_(e){const t=this,r=new uu,i=e&&e.chunkSize?Math.floor(e.chunkSize*2):128*1024,a=I_,s=new Uint8Array(i);let n=!1;r.inflateInit(),r.next_out=s,t.append=function(o,f){const p=[];let c,m,h=0,g=0,R=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&&!n&&(r.next_in_index=0,n=!0),c=r.inflate(a),n&&c===ar){if(r.avail_in!==0)throw new Error("inflating: bad input")}else if(c!==be&&c!==ir)throw new Error("inflating: "+r.msg);if((n||c===ir)&&r.avail_in===o.length)throw new Error("inflating: bad input");r.next_out_index&&(r.next_out_index===i?p.push(new Uint8Array(s)):p.push(s.subarray(0,r.next_out_index))),R+=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(R),p.forEach(function(y){m.set(y,g),g+=y.length})):m=p[0]?new Uint8Array(p[0]):new Uint8Array,m}},t.flush=function(){r.inflateEnd()}}const Ir=4294967295,yr=65535,X_=8,J_=0,Q_=99,e1=67324752,t1=134695760,zf=33639248,r1=101010256,Gf=101075792,n1=117853008,Yr=22,xa=20,Sa=56,s1=1,i1=39169,a1=10,o1=1,l1=21589,f1=28789,p1=25461,c1=6534,Vf=1,u1=6,Zf=8,Yf=2048,Xf=16,Jf=16384,Qf=73,ep="/",lt=void 0,Sr="undefined",is="function";class tp{constructor(t){return class extends TransformStream{constructor(r,i){const a=new t(i);super({transform(s,n){n.enqueue(a.append(s))},flush(s){const n=a.flush();n&&s.enqueue(n)}})}}}}const d1=64;let du=2;try{typeof navigator!=Sr&&navigator.hardwareConcurrency&&(du=navigator.hardwareConcurrency)}catch{}const h1={chunkSize:512*1024,maxWorkers:du,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:lt,CompressionStreamNative:typeof CompressionStream!=Sr&&CompressionStream,DecompressionStreamNative:typeof DecompressionStream!=Sr&&DecompressionStream},gr=Object.assign({},h1);function m1(){return gr}function y1(e){return Math.max(e.chunkSize,d1)}function Ao(e){const{baseURL:t,chunkSize:r,maxWorkers:i,terminateWorkerTimeout:a,useCompressionStream:s,useWebWorkers:n,Deflate:o,Inflate:f,CompressionStream:p,DecompressionStream:c,workerScripts:m}=e;if(ur("baseURL",t),ur("chunkSize",r),ur("maxWorkers",i),ur("terminateWorkerTimeout",a),ur("useCompressionStream",s),ur("useWebWorkers",n),o&&(gr.CompressionStream=new tp(o)),f&&(gr.DecompressionStream=new tp(f)),ur("CompressionStream",p),ur("DecompressionStream",c),m!==lt){const{deflate:h,inflate:g}=m;if((h||g)&&(gr.workerScripts||(gr.workerScripts={})),h){if(!Array.isArray(h))throw new Error("workerScripts.deflate must be an array");gr.workerScripts.deflate=h}if(g){if(!Array.isArray(g))throw new Error("workerScripts.inflate must be an array");gr.workerScripts.inflate=g}}}function ur(e,t){t!==lt&&(gr[e]=t)}const ka={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(ka))for(const r of Object.keys(ka[t])){const i=ka[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 hu=[];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;hu[e]=t}class Qs{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^hu[(r^t[i])&255];this.crc=r}get(){return~this.crc}}class mu extends TransformStream{constructor(){let t;const r=new Qs;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 g1(e){if(typeof TextEncoder==Sr){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 ot={concat(e,t){if(e.length===0||t.length===0)return e.concat(t);const r=e[e.length-1],i=ot.getPartial(r);return i===32?e.concat(t):ot._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+ot.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]=ot.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 n=0;n<e.length;n++)i.push(r|e[n]>>>t),r=e[n]<<32-t;const a=e.length?e[e.length-1]:0,s=ot.getPartial(a);return i.push(ot.partial(t+s&31,t+s>32?r:i.pop(),1)),i}},ei={bytes:{fromBits(e){const r=ot.bitLength(e)/8,i=new Uint8Array(r);let a;for(let s=0;s<r;s++)s&3||(a=e[s/4]),i[s]=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(ot.partial(8*(r&3),i)),t}}},yu={};yu.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=ei.utf8String.toBits(e));const r=t._buffer=ot.concat(t._buffer,e),i=t._length,a=t._length=i+ot.bitLength(e);if(a>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const s=new Uint32Array(r);let n=0;for(let o=t.blockSize+i-(t.blockSize+i&t.blockSize-1);o<=a;o+=t.blockSize)t._block(s.subarray(16*n,16*(n+1))),n+=1;return r.splice(0,16*n),t}finalize(){const e=this;let t=e._buffer;const r=e._h;t=ot.concat(t,[ot.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],s=r[1],n=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,s,n,o)+f+i[p]+t._key[Math.floor(p/20)]|0;f=o,o=n,n=t._S(30,s),s=a,a=c}r[0]=r[0]+a|0,r[1]=r[1]+s|0,r[2]=r[2]+n|0,r[3]=r[3]+o|0,r[4]=r[4]+f|0}};const gu={};gu.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 s,n,o,f=1;if(a!==4&&a!==6&&a!==8)throw new Error("invalid aes key size");for(t._key=[n=e.slice(0),o=[]],s=a;s<4*a+28;s++){let p=n[s-1];(s%a===0||a===8&&s%a===4)&&(p=r[p>>>24]<<24^r[p>>16&255]<<16^r[p>>8&255]<<8^r[p&255],s%a===0&&(p=p<<8^p>>>24^f<<24,f=f<<1^(f>>7)*283)),n[s]=n[s-a]^p}for(let p=0;s;p++,s--){const c=n[p&3?s:s-4];s<=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=[],s=[];let n,o,f,p;for(let c=0;c<256;c++)s[(a[c]=c<<1^(c>>7)*283)^c]=c;for(let c=n=0;!r[c];c^=o||1,n=s[n]||1){let m=n^n<<1^n<<2^n<<3^n<<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,g=a[m]*257^m*16843008;for(let R=0;R<4;R++)e[R][c]=g=g<<24^g>>>8,t[R][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],s=this._tables[t],n=s[0],o=s[1],f=s[2],p=s[3],c=s[4];let m=e[0]^r[0],h=e[t?3:1]^r[1],g=e[2]^r[2],R=e[t?1:3]^r[3],y=4,_,b,O;for(let k=0;k<i;k++)_=n[m>>>24]^o[h>>16&255]^f[g>>8&255]^p[R&255]^r[y],b=n[h>>>24]^o[g>>16&255]^f[R>>8&255]^p[m&255]^r[y+1],O=n[g>>>24]^o[R>>16&255]^f[m>>8&255]^p[h&255]^r[y+2],R=n[R>>>24]^o[m>>16&255]^f[h>>8&255]^p[g&255]^r[y+3],y+=4,m=_,h=b,g=O;for(let k=0;k<4;k++)a[t?3&-k:k]=c[m>>>24]<<24^c[h>>16&255]<<16^c[g>>8&255]<<8^c[R&255]^r[y++],_=m,m=h,h=g,g=R,R=_;return a}};const _1={getRandomValues(e){const t=new Uint32Array(e.buffer),r=i=>{let a=987654321;const s=4294967295;return function(){return a=36969*(a&65535)+(a>>16)&s,i=18e3*(i&65535)+(i>>16)&s,(((a<<16)+i&s)/4294967296+.5)*(Math.random()>.5?1:-1)}};for(let i=0,a;i<e.length;i+=4){const s=r((a||Math.random())*4294967296);a=s()*987654071,t[i/4]=s()*4294967296|0}return e}},_u={};_u.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=ot.bitLength(t);for(let s=0;s<i;s+=4){this.incCounter(r);const n=e.encrypt(r);t[s]^=n[0],t[s+1]^=n[1],t[s+2]^=n[2],t[s+3]^=n[3]}return ot.clamp(t,a)}};const Nr={importKey(e){return new Nr.hmacSha1(ei.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 s,n,o,f,p;const c=new ArrayBuffer(a),m=new DataView(c);let h=0;const g=ot;for(t=ei.bytes.toBits(t),p=1;h<(a||1);p++){for(s=n=e.encrypt(g.concat(t,[p])),o=1;o<r;o++)for(n=e.encrypt(n),f=0;f<n.length;f++)s[f]^=n[f];for(o=0;h<(a||1)&&o<s.length;o++)m.setInt32(h,s[o]),h+=4}return c.slice(0,i/8)}};Nr.hmacSha1=class{constructor(e){const t=this,r=t._hash=yu.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 s=0;s<a;s++)i[0][s]=e[s]^909522486,i[1][s]=e[s]^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 w1=typeof crypto!=Sr&&typeof crypto.getRandomValues==is,wu="Invalid password",bu="Invalid signature",To="zipjs-abort-check-password";function vu(e){return w1?crypto.getRandomValues(e):_1.getRandomValues(e)}const tn=16,b1="raw",xu={name:"PBKDF2"},v1={name:"HMAC"},x1="SHA-1",S1=Object.assign({hash:v1},xu),Ja=Object.assign({iterations:1e3,hash:{name:x1}},xu),k1=["deriveBits"],qn=[8,12,16],kn=[16,24,32],mr=10,E1=[0,0,0,0],yi=typeof crypto!=Sr,as=yi&&crypto.subtle,Su=yi&&typeof as!=Sr,Zt=ei.bytes,P1=gu.aes,A1=_u.ctrGladman,T1=Nr.hmacSha1;let rp=yi&&Su&&typeof as.importKey==is,np=yi&&Su&&typeof as.deriveBits==is;class C1 extends TransformStream{constructor({password:t,rawPassword:r,signed:i,encryptionStrength:a,checkPasswordOnly:s}){super({start(){Object.assign(this,{ready:new Promise(n=>this.resolveReady=n),password:Pu(t,r),signed:i,strength:a-1,pending:new Uint8Array})},async transform(n,o){const f=this,{password:p,strength:c,resolveReady:m,ready:h}=f;p?(await L1(f,c,p,Pt(n,0,qn[c]+2)),n=Pt(n,qn[c]+2),s?o.error(new Error(To)):m()):await h;const g=new Uint8Array(n.length-mr-(n.length-mr)%tn);o.enqueue(ku(f,n,g,0,mr,!0))},async flush(n){const{signed:o,ctr:f,hmac:p,pending:c,ready:m}=this;if(p&&f){await m;const h=Pt(c,0,c.length-mr),g=Pt(c,c.length-mr);let R=new Uint8Array;if(h.length){const y=zn(Zt,h);p.update(y);const _=f.update(y);R=Kn(Zt,_)}if(o){const y=Pt(Kn(Zt,p.digest()),0,mr);for(let _=0;_<mr;_++)if(y[_]!=g[_])throw new Error(bu)}n.enqueue(R)}}})}}class O1 extends TransformStream{constructor({password:t,rawPassword:r,encryptionStrength:i}){let a;super({start(){Object.assign(this,{ready:new Promise(s=>this.resolveReady=s),password:Pu(t,r),strength:i-1,pending:new Uint8Array})},async transform(s,n){const o=this,{password:f,strength:p,resolveReady:c,ready:m}=o;let h=new Uint8Array;f?(h=await R1(o,p,f),c()):await m;const g=new Uint8Array(h.length+s.length-s.length%tn);g.set(h,0),n.enqueue(ku(o,s,g,h.length,0))},async flush(s){const{ctr:n,hmac:o,pending:f,ready:p}=this;if(o&&n){await p;let c=new Uint8Array;if(f.length){const m=n.update(zn(Zt,f));o.update(m),c=Kn(Zt,m)}a.signature=Kn(Zt,o.digest()).slice(0,mr),s.enqueue(Co(c,a.signature))}}}),a=this}}function ku(e,t,r,i,a,s){const{ctr:n,hmac:o,pending:f}=e,p=t.length-a;f.length&&(t=Co(f,t),r=D1(r,p-p%tn));let c;for(c=0;c<=p-tn;c+=tn){const m=zn(Zt,Pt(t,c,c+tn));s&&o.update(m);const h=n.update(m);s||o.update(h),r.set(Kn(Zt,h),c+i)}return e.pending=Pt(t,c),r}async function L1(e,t,r,i){const a=await Eu(e,t,r,Pt(i,0,qn[t])),s=Pt(i,qn[t]);if(a[0]!=s[0]||a[1]!=s[1])throw new Error(wu)}async function R1(e,t,r){const i=vu(new Uint8Array(qn[t])),a=await Eu(e,t,r,i);return Co(i,a)}async function Eu(e,t,r,i){e.password=null;const a=await I1(b1,r,S1,!1,k1),s=await $1(Object.assign({salt:i},Ja),a,8*(kn[t]*2+2)),n=new Uint8Array(s),o=zn(Zt,Pt(n,0,kn[t])),f=zn(Zt,Pt(n,kn[t],kn[t]*2)),p=Pt(n,kn[t]*2);return Object.assign(e,{keys:{key:o,authentication:f,passwordVerification:p},ctr:new A1(new P1(o),Array.from(E1)),hmac:new T1(f)}),p}async function I1(e,t,r,i,a){if(rp)try{return await as.importKey(e,t,r,i,a)}catch{return rp=!1,Nr.importKey(t)}else return Nr.importKey(t)}async function $1(e,t,r){if(np)try{return await as.deriveBits(e,t,r)}catch{return np=!1,Nr.pbkdf2(t,e.salt,Ja.iterations,r)}else return Nr.pbkdf2(t,e.salt,Ja.iterations,r)}function Pu(e,t){return t===lt?g1(e):t}function Co(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 D1(e,t){if(t&&t>e.length){const r=e;e=new Uint8Array(t),e.set(r,0)}return e}function Pt(e,t,r){return e.subarray(t,r)}function Kn(e,t){return e.fromBits(t)}function zn(e,t){return e.toBits(t)}const on=12;class H1 extends TransformStream{constructor({password:t,passwordVerification:r,checkPasswordOnly:i}){super({start(){Object.assign(this,{password:t,passwordVerification:r}),Au(this,t)},transform(a,s){const n=this;if(n.password){const o=sp(n,a.subarray(0,on));if(n.password=null,o[on-1]!=n.passwordVerification)throw new Error(wu);a=a.subarray(on)}i?s.error(new Error(To)):s.enqueue(sp(n,a))}})}}class F1 extends TransformStream{constructor({password:t,passwordVerification:r}){super({start(){Object.assign(this,{password:t,passwordVerification:r}),Au(this,t)},transform(i,a){const s=this;let n,o;if(s.password){s.password=null;const f=vu(new Uint8Array(on));f[on-1]=s.passwordVerification,n=new Uint8Array(i.length+f.length),n.set(ip(s,f),0),o=on}else n=new Uint8Array(i.length),o=0;n.set(ip(s,i),o),a.enqueue(n)}})}}function sp(e,t){const r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=Tu(e)^t[i],Oo(e,r[i]);return r}function ip(e,t){const r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=Tu(e)^t[i],Oo(e,t[i]);return r}function Au(e,t){const r=[305419896,591751049,878082192];Object.assign(e,{keys:r,crcKey0:new Qs(r[0]),crcKey2:new Qs(r[2])});for(let i=0;i<t.length;i++)Oo(e,t.charCodeAt(i))}function Oo(e,t){let[r,i,a]=e.keys;e.crcKey0.append([t]),r=~e.crcKey0.get(),i=ap(Math.imul(ap(i+Cu(r)),134775813)+1),e.crcKey2.append([i>>>24]),a=~e.crcKey2.get(),e.keys=[r,i,a]}function Tu(e){const t=e.keys[2]|2;return Cu(Math.imul(t,t^1)>>>8)}function Cu(e){return e&255}function ap(e){return e&4294967295}const op="deflate-raw";class B1 extends TransformStream{constructor(t,{chunkSize:r,CompressionStream:i,CompressionStreamNative:a}){super({});const{compressed:s,encrypted:n,useCompressionStream:o,zipCrypto:f,signed:p,level:c}=t,m=this;let h,g,R=Ou(super.readable);(!n||f)&&p&&(h=new mu,R=Yt(R,h)),s&&(R=Ru(R,o,{level:c,chunkSize:r},a,i)),n&&(f?R=Yt(R,new F1(t)):(g=new O1(t),R=Yt(R,g))),Lu(m,R,()=>{let y;n&&!f&&(y=g.signature),(!n||f)&&p&&(y=new DataView(h.value.buffer).getUint32(0)),m.signature=y})}}class j1 extends TransformStream{constructor(t,{chunkSize:r,DecompressionStream:i,DecompressionStreamNative:a}){super({});const{zipCrypto:s,encrypted:n,signed:o,signature:f,compressed:p,useCompressionStream:c}=t;let m,h,g=Ou(super.readable);n&&(s?g=Yt(g,new H1(t)):(h=new C1(t),g=Yt(g,h))),p&&(g=Ru(g,c,{chunkSize:r},a,i)),(!n||s)&&o&&(m=new mu,g=Yt(g,m)),Lu(this,g,()=>{if((!n||s)&&o){const R=new DataView(m.value.buffer);if(f!=R.getUint32(0,!1))throw new Error(bu)}})}}function Ou(e){return Yt(e,new TransformStream({transform(t,r){t&&t.length&&r.enqueue(t)}}))}function Lu(e,t,r){t=Yt(t,new TransformStream({flush:r})),Object.defineProperty(e,"readable",{get(){return t}})}function Ru(e,t,r,i,a){try{const s=t&&i?i:a;e=Yt(e,new s(op,r))}catch{if(t)try{e=Yt(e,new a(op,r))}catch{return e}else return e}return e}function Yt(e,t){return e.pipeThrough(t)}const N1="message",U1="start",W1="pull",lp="data",M1="ack",fp="close",q1="deflate",Iu="inflate";class K1 extends TransformStream{constructor(t,r){super({});const i=this,{codecType:a}=t;let s;a.startsWith(q1)?s=B1:a.startsWith(Iu)&&(s=j1);let n=0,o=0;const f=new s(t,r),p=super.readable,c=new TransformStream({transform(h,g){h&&h.length&&(o+=h.length,g.enqueue(h))},flush(){Object.assign(i,{inputSize:o})}}),m=new TransformStream({transform(h,g){h&&h.length&&(n+=h.length,g.enqueue(h))},flush(){const{signature:h}=f;Object.assign(i,{signature:h,outputSize:n,inputSize:o})}});Object.defineProperty(i,"readable",{get(){return p.pipeThrough(c).pipeThrough(f).pipeThrough(m)}})}}class z1 extends TransformStream{constructor(t){let r;super({transform:i,flush(a){r&&r.length&&a.enqueue(r)}});function i(a,s){if(r){const n=new Uint8Array(r.length+a.length);n.set(r),n.set(a,r.length),a=n,r=null}a.length>t?(s.enqueue(a.slice(0,t)),i(a.slice(t),s)):r=a}}}let $u=typeof Worker!=Sr;class Ea{constructor(t,{readable:r,writable:i},{options:a,config:s,streamOptions:n,useWebWorkers:o,transferStreams:f,scripts:p},c){const{signal:m}=n;return Object.assign(t,{busy:!0,readable:r.pipeThrough(new z1(s.chunkSize)).pipeThrough(new G1(r,n),{signal:m}),writable:i,options:Object.assign({},a),scripts:p,transferStreams:f,terminate(){return new Promise(h=>{const{worker:g,busy:R}=t;g?(R?t.resolveTerminated=h:(g.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&&$u?V1:Du)(t,s)}}class G1 extends TransformStream{constructor(t,{onstart:r,onprogress:i,size:a,onend:s}){let n=0;super({async start(){r&&await Pa(r,a)},async transform(o,f){n+=o.length,i&&await Pa(i,n,a),f.enqueue(o)},async flush(){t.size=n,s&&await Pa(s,n)}})}}async function Pa(e,...t){try{await e(...t)}catch{}}function Du(e,t){return{run:()=>Z1(e,t)}}function V1(e,t){const{baseURL:r,chunkSize:i}=t;if(!e.interface){let a;try{a=J1(e.scripts[0],r,e)}catch{return $u=!1,Du(e,t)}Object.assign(e,{worker:a,interface:{run:()=>Y1(e,{chunkSize:i})}})}return e.interface}async function Z1({options:e,readable:t,writable:r,onTaskFinished:i},a){try{const s=new K1(e,a);await t.pipeThrough(s).pipeTo(r,{preventClose:!0,preventAbort:!0});const{signature:n,inputSize:o,outputSize:f}=s;return{signature:n,inputSize:o,outputSize:f}}finally{i()}}async function Y1(e,t){let r,i;const a=new Promise((h,g)=>{r=h,i=g});Object.assign(e,{reader:null,writer:null,resolveResult:r,rejectResult:i,result:a});const{readable:s,options:n,scripts:o}=e,{writable:f,closed:p}=X1(e.writable),c=Fs({type:U1,scripts:o.slice(1),options:n,config:t,readable:s,writable:f},e);c||Object.assign(e,{reader:s.getReader(),writer:f.getWriter()});const m=await a;return c||await f.getWriter().close(),await p,m}function X1(e){let t;const r=new Promise(a=>t=a);return{writable:new WritableStream({async write(a){const s=e.getWriter();await s.ready,await s.write(a),s.releaseLock()},close(){t()},abort(a){return e.getWriter().abort(a)}}),closed:r}}let pp=!0,cp=!0;function J1(e,t,r){const i={type:"module"};let a,s;typeof e==is&&(e=e());try{a=new URL(e,t)}catch{a=e}if(pp)try{s=new Worker(a)}catch{pp=!1,s=new Worker(a,i)}else s=new Worker(a,i);return s.addEventListener(N1,n=>Q1(n,r)),s}function Fs(e,{worker:t,writer:r,onTaskFinished:i,transferStreams:a}){try{const{value:s,readable:n,writable:o}=e,f=[];if(s&&(s.byteLength<s.buffer.byteLength?e.value=s.buffer.slice(0,s.byteLength):e.value=s.buffer,f.push(e.value)),a&&cp?(n&&f.push(n),o&&f.push(o)):e.readable=e.writable=null,f.length)try{return t.postMessage(e,f),!0}catch{cp=!1,e.readable=e.writable=null,t.postMessage(e)}else t.postMessage(e)}catch(s){throw r&&r.releaseLock(),i(),s}}async function Q1({data:e},t){const{type:r,value:i,messageId:a,result:s,error:n}=e,{reader:o,writer:f,resolveResult:p,rejectResult:c,onTaskFinished:m}=t;try{if(n){const{message:g,stack:R,code:y,name:_}=n,b=new Error(g);Object.assign(b,{stack:R,code:y,name:_}),h(b)}else{if(r==W1){const{value:g,done:R}=await o.read();Fs({type:lp,value:g,done:R,messageId:a},t)}r==lp&&(await f.ready,await f.write(new Uint8Array(i)),Fs({type:M1,messageId:a},t)),r==fp&&h(null,s)}}catch(g){Fs({type:fp,messageId:a},t),h(g)}function h(g,R){g?c(g):p(R),f&&f.releaseLock(),m()}}let Tr=[];const Aa=[];let up=0;async function ew(e,t){const{options:r,config:i}=t,{transferStreams:a,useWebWorkers:s,useCompressionStream:n,codecType:o,compressed:f,signed:p,encrypted:c}=r,{workerScripts:m,maxWorkers:h}=i;t.transferStreams=a||a===lt;const g=!f&&!p&&!c&&!t.transferStreams;return t.useWebWorkers=!g&&(s||s===lt&&i.useWebWorkers),t.scripts=t.useWebWorkers&&m?m[o]:[],r.useCompressionStream=n||n===lt&&i.useCompressionStream,(await R()).run();async function R(){const _=Tr.find(b=>!b.busy);if(_)return dp(_),new Ea(_,e,t,y);if(Tr.length<h){const b={indexWorker:up};return up++,Tr.push(b),new Ea(b,e,t,y)}else return new Promise(b=>Aa.push({resolve:b,stream:e,workerOptions:t}))}function y(_){if(Aa.length){const[{resolve:b,stream:O,workerOptions:k}]=Aa.splice(0,1);b(new Ea(_,O,k,y))}else _.worker?(dp(_),tw(_,t)):Tr=Tr.filter(b=>b!=_)}}function tw(e,t){const{config:r}=t,{terminateWorkerTimeout:i}=r;Number.isFinite(i)&&i>=0&&(e.terminated?e.terminated=!1:e.terminateTimeout=setTimeout(async()=>{Tr=Tr.filter(a=>a!=e);try{await e.terminate()}catch{}},i))}function dp(e){const{terminateTimeout:t}=e;t&&(clearTimeout(t),e.terminateTimeout=null)}function rw(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};
|
|
90
|
-
`,i=()=>t.useDataURI?"data:text/javascript,"+encodeURIComponent(r):URL.createObjectURL(new Blob([r],{type:"text/javascript"}));e({workerScripts:{inflate:[i],deflate:[i]}})}const nw="Writer iterator completed too soon",sw="Content-Type",iw=64*1024,Hu="writable";class Lo{constructor(){this.size=0}init(){this.initialized=!0}}class Fu extends Lo{get readable(){const t=this,{chunkSize:r=iw}=t,i=new ReadableStream({start(){this.chunkOffset=0},async pull(a){const{offset:s=0,size:n,diskNumberStart:o}=i,{chunkOffset:f}=this;a.enqueue(await et(t,s+f,Math.min(r,n-f),o)),f+r>n?a.close():this.chunkOffset+=r}});return i}}class Qa extends Fu{constructor(t){super(),Object.assign(this,{blob:t,size:t.size})}async readUint8Array(t,r){const i=this,a=t+r;let n=await(t||a<i.size?i.blob.slice(t,a):i.blob).arrayBuffer();return n.byteLength>r&&(n=n.slice(t,a)),new Uint8Array(n)}}class aw extends Lo{constructor(t){super();const r=this,i=new TransformStream,a=[];t&&a.push([sw,t]),Object.defineProperty(r,Hu,{get(){return i.writable}}),r.blob=new Response(i.readable,{headers:a}).blob()}getData(){return this.blob}}class ow extends Fu{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:s}=this;let n,o=i;o==-1&&(o=s.length-1);let f=t;for(;f>=s[o].size;)f-=s[o].size,o++;const p=s[o],c=p.size;if(f+r<=c)n=await et(p,f,r);else{const m=c-f;n=new Uint8Array(r),n.set(await et(p,f,m)),n.set(await a.readUint8Array(t+m,r-m,i),m)}return a.lastDiskNumber=Math.max(o,a.lastDiskNumber),n}}class hp extends Lo{constructor(t,r=4294967295){super();const i=this;Object.assign(i,{diskNumber:0,diskOffset:0,size:0,maxSize:r,availableSize:r});let a,s,n;const o=new WritableStream({async write(c){const{availableSize:m}=i;if(n)c.length>=m?(await f(c.slice(0,m)),await p(),i.diskOffset+=a.size,i.diskNumber++,n=null,await this.write(c.slice(m))):await f(c);else{const{value:h,done:g}=await t.next();if(g&&!h)throw new Error(nw);a=h,a.size=0,a.maxSize&&(i.maxSize=a.maxSize),i.availableSize=i.maxSize,await ti(a),s=h.writable,n=s.getWriter(),await this.write(c)}},async close(){await n.ready,await p()}});Object.defineProperty(i,Hu,{get(){return o}});async function f(c){const m=c.length;m&&(await n.ready,await n.write(c),a.size+=m,i.size+=m,i.availableSize-=m)}async function p(){s.size=a.size,await n.close()}}}async function ti(e,t){if(e.init&&!e.initialized)await e.init(t);else return Promise.resolve()}function lw(e){return Array.isArray(e)&&(e=new ow(e)),e instanceof ReadableStream&&(e={readable:e}),e}function fw(e){e.writable===lt&&typeof e.next==is&&(e=new hp(e)),e instanceof WritableStream&&(e={writable:e});const{writable:t}=e;return t.size===lt&&(t.size=0),e instanceof hp||Object.assign(e,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),e}function et(e,t,r,i){return e.readUint8Array(t,r,i)}const Bu="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),pw=Bu.length==256;function cw(e){if(pw){let t="";for(let r=0;r<e.length;r++)t+=Bu[e[r]];return t}else return new TextDecoder().decode(e)}function Bs(e,t){return t&&t.trim().toLowerCase()=="cp437"?cw(e):new TextDecoder(t).decode(e)}const ju="filename",Nu="rawFilename",Uu="comment",Wu="rawComment",Mu="uncompressedSize",qu="compressedSize",Ku="offset",eo="diskNumberStart",to="lastModDate",ro="rawLastModDate",zu="lastAccessDate",uw="rawLastAccessDate",Gu="creationDate",dw="rawCreationDate",hw="internalFileAttribute",mw="internalFileAttributes",yw="externalFileAttribute",gw="externalFileAttributes",_w="msDosCompatible",ww="zip64",bw="encrypted",vw="version",xw="versionMadeBy",Sw="zipCrypto",kw="directory",Ew="executable",Pw=[ju,Nu,qu,Mu,to,ro,Uu,Wu,zu,Gu,Ku,eo,eo,hw,mw,yw,gw,_w,ww,bw,vw,xw,Sw,kw,Ew,"bitFlag","signature","filenameUTF8","commentUTF8","compressionMethod","extraField","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp"];class mp{constructor(t){Pw.forEach(r=>this[r]=t[r])}}const Ta="File format is not recognized",Aw="End of central directory not found",Tw="End of Zip64 central directory locator not found",Cw="Central directory header not found",Ow="Local file header not found",Lw="Zip64 extra field not found",Rw="File contains encrypted entry",Iw="Encryption method not supported",yp="Compression method not supported",gp="Split zip file",_p="utf-8",wp="cp437",$w=[[Mu,Ir],[qu,Ir],[Ku,Ir],[eo,yr]],Dw={[yr]:{getValue:Ne,bytes:4},[Ir]:{getValue:js,bytes:8}};class bp{constructor(t,r={}){Object.assign(this,{reader:lw(t),options:r,config:m1()})}async*getEntriesGenerator(t={}){const r=this;let{reader:i}=r;const{config:a}=r;if(await ti(i),(i.size===lt||!i.readUint8Array)&&(i=new Qa(await new Response(i.readable).blob()),await ti(i)),i.size<Yr)throw new Error(Ta);i.chunkSize=y1(a);const s=await Uw(i,r1,i.size,Yr,yr*16);if(!s){const S=await et(i,0,4),P=Ze(S);throw Ne(P)==t1?new Error(gp):new Error(Aw)}const n=Ze(s);let o=Ne(n,12),f=Ne(n,16);const p=s.offset,c=Ve(n,20),m=p+Yr+c;let h=Ve(n,4);const g=i.lastDiskNumber||0;let R=Ve(n,6),y=Ve(n,8),_=0,b=0;if(f==Ir||o==Ir||y==yr||R==yr){const S=await et(i,s.offset-xa,xa),P=Ze(S);if(Ne(P,0)==n1){f=js(P,8);let $=await et(i,f,Sa,-1),I=Ze($);const j=s.offset-xa-Sa;if(Ne(I,0)!=Gf&&f!=j){const U=f;f=j,_=f-U,$=await et(i,f,Sa,-1),I=Ze($)}if(Ne(I,0)!=Gf)throw new Error(Tw);h==yr&&(h=Ne(I,16)),R==yr&&(R=Ne(I,20)),y==yr&&(y=js(I,32)),o==Ir&&(o=js(I,40)),f-=o}}if(f>=i.size&&(_=i.size-f-o-Yr,f=i.size-o-Yr),g!=h)throw new Error(gp);if(f<0)throw new Error(Ta);let O=0,k=await et(i,f,o,R),D=Ze(k);if(o){const S=s.offset-o;if(Ne(D,O)!=zf&&f!=S){const P=f;f=S,_+=f-P,k=await et(i,f,o,R),D=Ze(k)}}const T=s.offset-f-(i.lastDiskOffset||0);if(o!=T&&T>=0&&(o=T,k=await et(i,f,o,R),D=Ze(k)),f<0||f>=i.size)throw new Error(Ta);const H=it(r,t,"filenameEncoding"),E=it(r,t,"commentEncoding");for(let S=0;S<y;S++){const P=new Hw(i,a,r.options);if(Ne(D,O)!=zf)throw new Error(Cw);Vu(P,D,O+6);const $=!!P.bitFlag.languageEncodingFlag,I=O+46,j=I+P.filenameLength,U=j+P.extraFieldLength,M=Ve(D,O+4),Z=M>>8==0,z=M>>8==3,se=k.subarray(I,j),G=Ve(D,O+32),Q=U+G,ee=k.subarray(U,Q),V=$,fe=$,ie=Ne(D,O+38),ae=Z&&(ln(D,O+38)&Xf)==Xf||z&&(ie>>16&Jf)==Jf||se.length&&se[se.length-1]==ep.charCodeAt(0),Pe=z&&(ie>>16&Qf)==Qf,Ce=Ne(D,O+42)+_;Object.assign(P,{versionMadeBy:M,msDosCompatible:Z,compressedSize:0,uncompressedSize:0,commentLength:G,directory:ae,offset:Ce,diskNumberStart:Ve(D,O+34),internalFileAttributes:Ve(D,O+36),externalFileAttributes:ie,rawFilename:se,filenameUTF8:V,commentUTF8:fe,rawExtraField:k.subarray(j,U),executable:Pe}),P.internalFileAttribute=P.internalFileAttributes,P.externalFileAttribute=P.externalFileAttributes;const Xe=it(r,t,"decodeText")||Bs,tt=V?_p:H||wp,St=fe?_p:E||wp;let $e=Xe(se,tt);$e===lt&&($e=Bs(se,tt));let De=Xe(ee,St);De===lt&&(De=Bs(ee,St)),Object.assign(P,{rawComment:ee,filename:$e,comment:De,directory:ae||$e.endsWith(ep)}),b=Math.max(Ce,b),Zu(P,P,D,O+6),P.zipCrypto=P.encrypted&&!P.extraFieldAES;const ft=new mp(P);ft.getData=(v,u)=>P.getData(v,ft,u),O=Q;const{onprogress:Le}=t;if(Le)try{await Le(S+1,y,new mp(P))}catch{}yield ft}const A=it(r,t,"extractPrependedData"),L=it(r,t,"extractAppendedData");return A&&(r.prependedData=b>0?await et(i,0,b):new Uint8Array),r.comment=c?await et(i,p+Yr,c):new Uint8Array,L&&(r.appendedData=m<i.size?await et(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 Hw{constructor(t,r,i){Object.assign(this,{reader:t,config:r,options:i})}async getData(t,r,i={}){const a=this,{reader:s,offset:n,diskNumberStart:o,extraFieldAES:f,compressionMethod:p,config:c,bitFlag:m,signature:h,rawLastModDate:g,uncompressedSize:R,compressedSize:y}=a,_=r.localDirectory={},b=await et(s,n,30,o),O=Ze(b);let k=it(a,i,"password"),D=it(a,i,"rawPassword");const T=it(a,i,"passThrough");if(k=k&&k.length&&k,D=D&&D.length&&D,f&&f.originalCompressionMethod!=Q_)throw new Error(yp);if(p!=J_&&p!=X_&&!T)throw new Error(yp);if(Ne(O,0)!=e1)throw new Error(Ow);Vu(_,O,4),_.rawExtraField=_.extraFieldLength?await et(s,n+30+_.filenameLength,_.extraFieldLength,o):new Uint8Array,Zu(a,_,O,4,!0),Object.assign(r,{lastAccessDate:_.lastAccessDate,creationDate:_.creationDate});const H=a.encrypted&&_.encrypted&&!T,E=H&&!f;if(T||(r.zipCrypto=E),H){if(!E&&f.strength===lt)throw new Error(Iw);if(!k&&!D)throw new Error(Rw)}const A=n+30+_.filenameLength+_.extraFieldLength,L=y,S=s.readable;Object.assign(S,{diskNumberStart:o,offset:A,size:L});const P=it(a,i,"signal"),$=it(a,i,"checkPasswordOnly");$&&(t=new WritableStream),t=fw(t),await ti(t,T?y:R);const{writable:I}=t,{onstart:j,onprogress:U,onend:M}=i,Z={options:{codecType:Iu,password:k,rawPassword:D,zipCrypto:E,encryptionStrength:f&&f.strength,signed:it(a,i,"checkSignature")&&!T,passwordVerification:E&&(m.dataDescriptor?g>>>8&255:h>>>24&255),signature:h,compressed:p!=0&&!T,encrypted:a.encrypted&&!T,useWebWorkers:it(a,i,"useWebWorkers"),useCompressionStream:it(a,i,"useCompressionStream"),transferStreams:it(a,i,"transferStreams"),checkPasswordOnly:$},config:c,streamOptions:{signal:P,size:L,onstart:j,onprogress:U,onend:M}};let z=0;try{({outputSize:z}=await ew({readable:S,writable:I},Z))}catch(se){if(!$||se.message!=To)throw se}finally{const se=it(a,i,"preventClose");I.size+=z,!se&&!I.locked&&await I.getWriter().close()}return $?lt:t.getData?t.getData():I}}function Vu(e,t,r){const i=e.rawBitFlag=Ve(t,r+2),a=(i&Vf)==Vf,s=Ne(t,r+6);Object.assign(e,{encrypted:a,version:Ve(t,r),bitFlag:{level:(i&u1)>>1,dataDescriptor:(i&Zf)==Zf,languageEncodingFlag:(i&Yf)==Yf},rawLastModDate:s,lastModDate:Ww(s),filenameLength:Ve(t,r+22),extraFieldLength:Ve(t,r+24)})}function Zu(e,t,r,i,a){const{rawExtraField:s}=t,n=t.extraField=new Map,o=Ze(new Uint8Array(s));let f=0;try{for(;f<s.length;){const b=Ve(o,f),O=Ve(o,f+2);n.set(b,{type:b,data:s.slice(f+4,f+4+O)}),f+=4+O}}catch{}const p=Ve(r,i+4);Object.assign(t,{signature:Ne(r,i+10),uncompressedSize:Ne(r,i+18),compressedSize:Ne(r,i+14)});const c=n.get(s1);c&&(Fw(c,t),t.extraFieldZip64=c);const m=n.get(f1);m&&(vp(m,ju,Nu,t,e),t.extraFieldUnicodePath=m);const h=n.get(p1);h&&(vp(h,Uu,Wu,t,e),t.extraFieldUnicodeComment=h);const g=n.get(i1);g?(Bw(g,t,p),t.extraFieldAES=g):t.compressionMethod=p;const R=n.get(a1);R&&(jw(R,t),t.extraFieldNTFS=R);const y=n.get(l1);y&&(Nw(y,t,a),t.extraFieldExtendedTimestamp=y);const _=n.get(c1);_&&(t.extraFieldUSDZ=_)}function Fw(e,t){t.zip64=!0;const r=Ze(e.data),i=$w.filter(([a,s])=>t[a]==s);for(let a=0,s=0;a<i.length;a++){const[n,o]=i[a];if(t[n]==o){const f=Dw[o];t[n]=e[n]=f.getValue(r,s),s+=f.bytes}else if(e[n])throw new Error(Lw)}}function vp(e,t,r,i,a){const s=Ze(e.data),n=new Qs;n.append(a[r]);const o=Ze(new Uint8Array(4));o.setUint32(0,n.get(),!0);const f=Ne(s,1);Object.assign(e,{version:ln(s,0),[t]:Bs(e.data.subarray(5)),valid:!a.bitFlag.languageEncodingFlag&&f==Ne(o,0)}),e.valid&&(i[t]=e[t],i[t+"UTF8"]=!0)}function Bw(e,t,r){const i=Ze(e.data),a=ln(i,4);Object.assign(e,{vendorVersion:ln(i,0),vendorId:ln(i,2),strength:a,originalCompressionMethod:r,compressionMethod:Ve(i,5)}),t.compressionMethod=e.compressionMethod}function jw(e,t){const r=Ze(e.data);let i=4,a;try{for(;i<e.data.length&&!a;){const s=Ve(r,i),n=Ve(r,i+2);s==o1&&(a=e.data.slice(i+4,i+4+n)),i+=4+n}}catch{}try{if(a&&a.length==24){const s=Ze(a),n=s.getBigUint64(0,!0),o=s.getBigUint64(8,!0),f=s.getBigUint64(16,!0);Object.assign(e,{rawLastModDate:n,rawLastAccessDate:o,rawCreationDate:f});const p=Ca(n),c=Ca(o),m=Ca(f),h={lastModDate:p,lastAccessDate:c,creationDate:m};Object.assign(e,h),Object.assign(t,h)}}catch{}}function Nw(e,t,r){const i=Ze(e.data),a=ln(i,0),s=[],n=[];r?((a&1)==1&&(s.push(to),n.push(ro)),(a&2)==2&&(s.push(zu),n.push(uw)),(a&4)==4&&(s.push(Gu),n.push(dw))):e.data.length>=5&&(s.push(to),n.push(ro));let o=1;s.forEach((f,p)=>{if(e.data.length>=o+4){const c=Ne(i,o);t[f]=e[f]=new Date(c*1e3);const m=n[p];e[m]=c}o+=4})}async function Uw(e,t,r,i,a){const s=new Uint8Array(4),n=Ze(s);Mw(n,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 et(e,c,p);for(let h=m.length-i;h>=0;h--)if(m[h]==s[0]&&m[h+1]==s[1]&&m[h+2]==s[2]&&m[h+3]==s[3])return{offset:c+h,buffer:m.slice(h,h+i).buffer}}}function it(e,t,r){return t[r]===lt?e.options[r]:t[r]}function Ww(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 Ca(e){return new Date(Number(e/BigInt(1e4)-BigInt(116444736e5)))}function ln(e,t){return e.getUint8(t)}function Ve(e,t){return e.getUint16(t,!0)}function Ne(e,t){return e.getUint32(t,!0)}function js(e,t){return Number(e.getBigUint64(t,!0))}function Mw(e,t,r){e.setUint32(t,r,!0)}function Ze(e){return new DataView(e.buffer)}let Yu;try{Yu=typeof document>"u"?require("url").pathToFileURL(__filename).href:sr&&sr.tagName.toUpperCase()==="SCRIPT"&&sr.src||new URL("index.cjs",document.baseURI).href}catch{}Ao({baseURL:Yu});rw(Ao);Ao({Deflate:C_,Inflate:Y_});class qw{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 In(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("/"),s=a.shift();if(!s||!i[s])break;i=i[s],r=a.join("/")}throw new Error(`File not found at ${t}`)}}class ri{constructor(t){this.entries=new Map,this.zipReader=t}static fromStream(t){const r=new bp(new Qa(new In(t,"archive.zip")));return new ri(r)}static fromArrayBuffer(t){const r=new bp(new Qa(new Blob([t])));return new ri(r)}async read(t){const r=await this.getEntry(t),i=await r.getData(new aw);return new In(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 Kw{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(s){r.push(s instanceof Error?s:new Error(String(s)))}const i=r.map(a=>a.message).join("; ");throw new Error(`Failed to read ${t} from any filesystem: ${i}`,{cause:r})}}class zw{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=si(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,s=await fetch(a);if(!s.ok)throw new Error(`Failed to fetch file at ${t}: ${s.statusText}`);const n=s.headers.get("content-length")?parseInt(s.headers.get("content-length"),10):void 0;return new In(s.body,t,{filesize:n})}}function gi(e){const t=e.split(".").shift().replace(/-/g," ");return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}function lr(e){return Object.fromEntries(Object.entries(e).map(([t,r])=>[r,t]))}const Gw={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};lr(Gw);const Vw={host_name:0};lr(Vw);const Zw={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};lr(Zw);const Yw={secp256r1:23,secp384r1:24,secp521r1:25,x25519:29,x448:30};lr(Yw);const Xw={uncompressed:0,ansiX962_compressed_prime:1,ansiX962_compressed_char2:2};lr(Xw);const Jw={anonymous:0,rsa:1,dsa:2,ecdsa:3};lr(Jw);const Qw={none:0,md5:1,sha1:2,sha224:3,sha256:4,sha384:5,sha512:6};lr(Qw);const eb={Warning:1,Fatal:2};lr(eb);const tb={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};lr(tb);crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!0,["deriveKey","deriveBits"]);async function no(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 rb(e){if(!e.body)return[e,e];const[t,r]=e.body.tee();return[await no(e,{body:t,duplex:"half"}),await no(e,{body:r,duplex:"half"})]}async function nb(e,t,r,i){var p;const a=typeof e=="string"?new Request(e,t):e;if(!r)return await fetch(a);const s=i?new URL(i):null,n=new URL(a.url,s||void 0);if(s&&n.protocol===s.protocol&&n.hostname===s.hostname&&n.port===s.port&&n.pathname.startsWith(s.pathname))return await fetch(a);const[o,f]=await rb(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"),g=await no(f,{url:`${r}${a.url}`,...h&&{credentials:"include"}});return await fetch(g,t)}}class av extends TransformStream{constructor(){let t=new Uint8Array(0),r="SCAN_CHUNK_SIZE",i=0;super({transform(a,s){for(t=Gd([t,a]);t.length>0;)if(r==="SCAN_CHUNK_SIZE"){if(t.length<3)return;let n=0;for(;n<t.length;){const p=t[n];if(!(p>=48&&p<=57||p>=97&&p<=102||p>=65&&p<=70))break;n++}if(n===0)throw new Error("Invalid chunk size format");if(t.length<n+2)return;if(t[n]!==13||t[n+1]!==10)throw new Error("Invalid chunk size format. Expected CRLF after chunk size");const o=new TextDecoder().decode(t.slice(0,n)),f=parseInt(o,16);if(t=t.slice(n+2),f===0){r="SCAN_FINAL_CHUNK",s.terminate();return}i=f,r="SCAN_CHUNK_DATA"}else if(r==="SCAN_CHUNK_DATA"){const n=Math.min(i,t.length),o=t.slice(0,n);t=t.slice(n),i-=n,s.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 un({concurrency:15});const sb=["vfs","literal","wordpress.org/themes","wordpress.org/plugins","url","git:directory","bundled"];function ib(e){return e&&typeof e=="object"&&typeof e.resource=="string"&&sb.includes(e.resource)}class Jt{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:s}){let n;switch(t.resource){case"vfs":n=new ab(t,i);break;case"literal":n=new ob(t,i);break;case"wordpress.org/themes":n=new hb(t,i);break;case"wordpress.org/plugins":n=new mb(t,i);break;case"url":n=new pb(t,i,{corsProxy:a});break;case"git:directory":n=new cb(t,i,{corsProxy:a});break;case"literal:directory":n=new db(t,i);break;case"bundled":if(!s)throw new Error("Filesystem is required for blueprint resources");n=new _b(t,s,i);break;default:throw new Error(`Unknown resource type: ${t.resource}`)}return r&&(n=new gb(n,r)),new yb(n)}}class Xu extends Jt{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 ab extends Jt{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 ob extends Jt{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 Ro extends Jt{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 s=await nb(t,void 0,this.corsProxy,await((i=this.playground)==null?void 0:i.absoluteUrl));if(!s.ok)throw new Error(`Could not download "${t}"`);if(s=await Nd(s,((a=this.progress)==null?void 0:a.loadingListener)??fb),s.status!==200)throw new Error(`Could not download "${t}"`);const n=this.name||lb(s.headers.get("content-disposition")||"")||encodeURIComponent(t);return new File([await s.blob()],n)}catch(s){throw new Error(`Could not download "${t}".
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
84
|
+
`,o[".git/refs/heads/.gitkeep"]="",o[".git/refs/tags/.gitkeep"]="",o[".git/refs/remotes/.gitkeep"]="",l.branchRef&&l.branchName&&(o[".git/logs/HEAD"]=`ref: ${l.branchRef}
|
|
85
|
+
`,o[`.git/${l.branchRef}`]=`${t}
|
|
86
|
+
`,o[`.git/refs/remotes/origin/${l.branchName}`]=`${t}
|
|
87
|
+
`,o[".git/refs/remotes/origin/HEAD"]=`ref: refs/remotes/origin/${l.branchName}
|
|
88
|
+
`),l.tagName&&(o[`.git/refs/tags/${l.tagName}`]=`${t}
|
|
89
|
+
`),Object.assign(o,await Lg(a));const p=new Tr;for(const[h,m]of Object.entries(s)){const _=h.substring(n.length).replace(/^\/+/,"");p.insert({filepath:_,oid:m,stats:{ctimeSeconds:0,ctimeNanoseconds:0,mtimeSeconds:0,mtimeNanoseconds:0,dev:0,ino:0,mode:33188,uid:0,gid:0,size:0}})}const c=await p.toObject();return o[".git/index"]=Uint8Array.from(c),o}function Dg(e,t){t=pi(t);const r=["",".","/"].includes(t);let i=e;if(r)t="";else{const n=t.split("/");for(const o of n){const l=i==null?void 0:i.find(p=>p.name===o);if((l==null?void 0:l.type)==="folder")i=l.children;else return l?[l.name]:[]}}const a=[],s=[{tree:i,path:t}];for(;s.length>0;){const{tree:n,path:o}=s.pop();for(const l of n){const p=`${o}${o?"/":""}${l.name}`;l.type==="folder"?s.push({tree:l.children,path:p}):a.push(p)}}return a}const zn=15,ro=30,no=19,Hg=29,ti=256,$o=ti+1+Hg,Sf=2*$o+1,En=256,Fg=7,kf=16,Pf=17,Af=18,va=8*2,ri=-1,Bg=1,_s=2,Ug=0,tn=0,Tf=1,Ng=3,pt=4,Dt=0,hu=1,gs=2,Ft=-2,jg=-3,Yr=-5;function bi(e){return vi(e.map(([t,r])=>new Array(t).fill(r,0,t)))}function vi(e){return e.reduce((t,r)=>t.concat(Array.isArray(r)?vi(r):r),[])}const Of=[0,1,2,3].concat(...bi([[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 $e(){const e=this;function t(a){const s=e.dyn_tree,n=e.stat_desc.static_tree,o=e.stat_desc.extra_bits,l=e.stat_desc.extra_base,p=e.stat_desc.max_length;let c,h,m,_,T,y,g=0;for(_=0;_<=zn;_++)a.bl_count[_]=0;for(s[a.heap[a.heap_max]*2+1]=0,c=a.heap_max+1;c<Sf;c++)h=a.heap[c],_=s[s[h*2+1]*2+1]+1,_>p&&(_=p,g++),s[h*2+1]=_,!(h>e.max_code)&&(a.bl_count[_]++,T=0,h>=l&&(T=o[h-l]),y=s[h*2],a.opt_len+=y*(_+T),n&&(a.static_len+=y*(n[h*2+1]+T)));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(h=a.bl_count[_];h!==0;)m=a.heap[--c],!(m>e.max_code)&&(s[m*2+1]!=_&&(a.opt_len+=(_-s[m*2+1])*s[m*2],s[m*2+1]=_),h--)}}function r(a,s){let n=0;do n|=a&1,a>>>=1,n<<=1;while(--s>0);return n>>>1}function i(a,s,n){const o=[];let l=0,p,c,h;for(p=1;p<=zn;p++)o[p]=l=l+n[p-1]<<1;for(c=0;c<=s;c++)h=a[c*2+1],h!==0&&(a[c*2]=r(o[h]++,h))}e.build_tree=function(a){const s=e.dyn_tree,n=e.stat_desc.static_tree,o=e.stat_desc.elems;let l,p,c=-1,h;for(a.heap_len=0,a.heap_max=Sf,l=0;l<o;l++)s[l*2]!==0?(a.heap[++a.heap_len]=c=l,a.depth[l]=0):s[l*2+1]=0;for(;a.heap_len<2;)h=a.heap[++a.heap_len]=c<2?++c:0,s[h*2]=1,a.depth[h]=0,a.opt_len--,n&&(a.static_len-=n[h*2+1]);for(e.max_code=c,l=Math.floor(a.heap_len/2);l>=1;l--)a.pqdownheap(s,l);h=o;do l=a.heap[1],a.heap[1]=a.heap[a.heap_len--],a.pqdownheap(s,1),p=a.heap[1],a.heap[--a.heap_max]=l,a.heap[--a.heap_max]=p,s[h*2]=s[l*2]+s[p*2],a.depth[h]=Math.max(a.depth[l],a.depth[p])+1,s[l*2+1]=s[p*2+1]=h,a.heap[1]=h++,a.pqdownheap(s,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1],t(a),i(s,e.max_code,a.bl_count)}}$e._length_code=[0,1,2,3,4,5,6,7].concat(...bi([[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]]));$e.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];$e.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];$e.d_code=function(e){return e<256?Of[e]:Of[256+(e>>>7)]};$e.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];$e.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];$e.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7];$e.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function Je(e,t,r,i,a){const s=this;s.static_tree=e,s.extra_bits=t,s.extra_base=r,s.elems=i,s.max_length=a}const Wg=[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],Mg=bi([[144,8],[112,9],[24,7],[8,8]]);Je.static_ltree=vi(Wg.map((e,t)=>[e,Mg[t]]));const qg=[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],Kg=bi([[30,5]]);Je.static_dtree=vi(qg.map((e,t)=>[e,Kg[t]]));Je.static_l_desc=new Je(Je.static_ltree,$e.extra_lbits,ti+1,$o,zn);Je.static_d_desc=new Je(Je.static_dtree,$e.extra_dbits,0,ro,zn);Je.static_bl_desc=new Je(null,$e.extra_blbits,0,no,Fg);const zg=9,Gg=8;function qt(e,t,r,i,a){const s=this;s.good_length=e,s.max_lazy=t,s.nice_length=r,s.max_chain=i,s.func=a}const mu=0,Fs=1,Pr=2,Rt=[new qt(0,0,0,0,mu),new qt(4,4,8,4,Fs),new qt(4,5,16,8,Fs),new qt(4,6,32,32,Fs),new qt(4,4,16,16,Pr),new qt(8,16,32,32,Pr),new qt(8,16,128,128,Pr),new qt(8,32,128,256,Pr),new qt(32,128,258,1024,Pr),new qt(32,258,258,4096,Pr)],ws=["need dictionary","stream end","","","stream error","data error","","buffer error","",""],Pt=0,bs=1,Sn=2,vs=3,Vg=32,xa=42,xs=113,kn=666,Ea=8,Zg=0,Sa=1,Yg=2,Fe=3,Bs=258,gt=Bs+Fe+1;function Cf(e,t,r,i){const a=e[t*2],s=e[r*2];return a<s||a==s&&i[t]<=i[r]}function Xg(){const e=this;let t,r,i,a,s,n,o,l,p,c,h,m,_,T,y,g,w,L,S,D,O,H,k,A,$,E,P,I,R,U,j,M,Z;const z=new $e,se=new $e,G=new $e;e.depth=[];let Q,ee,V,fe,ie,ae;e.bl_count=[],e.heap=[],j=[],M=[],Z=[];function Pe(){p=2*s,h[_-1]=0;for(let W=0;W<_-1;W++)h[W]=0;E=Rt[P].max_lazy,R=Rt[P].good_length,U=Rt[P].nice_length,$=Rt[P].max_chain,O=0,w=0,k=0,L=A=Fe-1,D=0,m=0}function Oe(){let W;for(W=0;W<$o;W++)j[W*2]=0;for(W=0;W<ro;W++)M[W*2]=0;for(W=0;W<no;W++)Z[W*2]=0;j[En*2]=1,e.opt_len=e.static_len=0,ee=V=0}function Xe(){z.dyn_tree=j,z.stat_desc=Je.static_l_desc,se.dyn_tree=M,se.stat_desc=Je.static_d_desc,G.dyn_tree=Z,G.stat_desc=Je.static_bl_desc,ie=0,ae=0,fe=8,Oe()}e.pqdownheap=function(W,Y){const q=e.heap,J=q[Y];let ne=Y<<1;for(;ne<=e.heap_len&&(ne<e.heap_len&&Cf(W,q[ne+1],q[ne],e.depth)&&ne++,!Cf(W,J,q[ne],e.depth));)q[Y]=q[ne],Y=ne,ne<<=1;q[Y]=J};function tt(W,Y){let q=-1,J,ne=W[0*2+1],le=0,de=7,We=4;ne===0&&(de=138,We=3),W[(Y+1)*2+1]=65535;for(let ce=0;ce<=Y;ce++)J=ne,ne=W[(ce+1)*2+1],!(++le<de&&J==ne)&&(le<We?Z[J*2]+=le:J!==0?(J!=q&&Z[J*2]++,Z[kf*2]++):le<=10?Z[Pf*2]++:Z[Af*2]++,le=0,q=J,ne===0?(de=138,We=3):J==ne?(de=6,We=3):(de=7,We=4))}function kt(){let W;for(tt(j,z.max_code),tt(M,se.max_code),G.build_tree(e),W=no-1;W>=3&&Z[$e.bl_order[W]*2+1]===0;W--);return e.opt_len+=3*(W+1)+5+5+4,W}function Ie(W){e.pending_buf[e.pending++]=W}function De(W){Ie(W&255),Ie(W>>>8&255)}function ft(W){Ie(W>>8&255),Ie(W&255&255)}function Le(W,Y){let q;const J=Y;ae>va-J?(q=W,ie|=q<<ae&65535,De(ie),ie=q>>>va-ae,ae+=J-va):(ie|=W<<ae&65535,ae+=J)}function v(W,Y){const q=W*2;Le(Y[q]&65535,Y[q+1]&65535)}function u(W,Y){let q,J=-1,ne,le=W[0*2+1],de=0,We=7,ce=4;for(le===0&&(We=138,ce=3),q=0;q<=Y;q++)if(ne=le,le=W[(q+1)*2+1],!(++de<We&&ne==le)){if(de<ce)do v(ne,Z);while(--de!==0);else ne!==0?(ne!=J&&(v(ne,Z),de--),v(kf,Z),Le(de-3,2)):de<=10?(v(Pf,Z),Le(de-3,3)):(v(Af,Z),Le(de-11,7));de=0,J=ne,le===0?(We=138,ce=3):ne==le?(We=6,ce=3):(We=7,ce=4)}}function d(W,Y,q){let J;for(Le(W-257,5),Le(Y-1,5),Le(q-4,4),J=0;J<q;J++)Le(Z[$e.bl_order[J]*2+1],3);u(j,W-1),u(M,Y-1)}function C(){ae==16?(De(ie),ie=0,ae=0):ae>=8&&(Ie(ie&255),ie>>>=8,ae-=8)}function B(){Le(Sa<<1,3),v(En,Je.static_ltree),C(),1+fe+10-ae<9&&(Le(Sa<<1,3),v(En,Je.static_ltree),C()),fe=7}function K(W,Y){let q,J,ne;if(e.dist_buf[ee]=W,e.lc_buf[ee]=Y&255,ee++,W===0?j[Y*2]++:(V++,W--,j[($e._length_code[Y]+ti+1)*2]++,M[$e.d_code(W)*2]++),!(ee&8191)&&P>2){for(q=ee*8,J=O-w,ne=0;ne<ro;ne++)q+=M[ne*2]*(5+$e.extra_dbits[ne]);if(q>>>=3,V<Math.floor(ee/2)&&q<Math.floor(J/2))return!0}return ee==Q-1}function X(W,Y){let q,J,ne=0,le,de;if(ee!==0)do q=e.dist_buf[ne],J=e.lc_buf[ne],ne++,q===0?v(J,W):(le=$e._length_code[J],v(le+ti+1,W),de=$e.extra_lbits[le],de!==0&&(J-=$e.base_length[le],Le(J,de)),q--,le=$e.d_code(q),v(le,Y),de=$e.extra_dbits[le],de!==0&&(q-=$e.base_dist[le],Le(q,de)));while(ne<ee);v(En,W),fe=W[En*2+1]}function pe(){ae>8?De(ie):ae>0&&Ie(ie&255),ie=0,ae=0}function ge(W,Y,q){pe(),fe=8,De(Y),De(~Y),e.pending_buf.set(l.subarray(W,W+Y),e.pending),e.pending+=Y}function he(W,Y,q){Le((Zg<<1)+(q?1:0),3),ge(W,Y)}function Be(W,Y,q){let J,ne,le=0;P>0?(z.build_tree(e),se.build_tree(e),le=kt(),J=e.opt_len+3+7>>>3,ne=e.static_len+3+7>>>3,ne<=J&&(J=ne)):J=ne=Y+5,Y+4<=J&&W!=-1?he(W,Y,q):ne==J?(Le((Sa<<1)+(q?1:0),3),X(Je.static_ltree,Je.static_dtree)):(Le((Yg<<1)+(q?1:0),3),d(z.max_code+1,se.max_code+1,le+1),X(j,M)),Oe(),q&&pe()}function ue(W){Be(w>=0?w:-1,O-w,W),w=O,t.flush_pending()}function yt(){let W,Y,q,J;do{if(J=p-k-O,J===0&&O===0&&k===0)J=s;else if(J==-1)J--;else if(O>=s+s-gt){l.set(l.subarray(s,s+s),0),H-=s,O-=s,w-=s,W=_,q=W;do Y=h[--q]&65535,h[q]=Y>=s?Y-s:0;while(--W!==0);W=s,q=W;do Y=c[--q]&65535,c[q]=Y>=s?Y-s:0;while(--W!==0);J+=s}if(t.avail_in===0)return;W=t.read_buf(l,O+k,J),k+=W,k>=Fe&&(m=l[O]&255,m=(m<<g^l[O+1]&255)&y)}while(k<gt&&t.avail_in!==0)}function rt(W){let Y=65535,q;for(Y>i-5&&(Y=i-5);;){if(k<=1){if(yt(),k===0&&W==tn)return Pt;if(k===0)break}if(O+=k,k=0,q=w+Y,(O===0||O>=q)&&(k=O-q,O=q,ue(!1),t.avail_out===0)||O-w>=s-gt&&(ue(!1),t.avail_out===0))return Pt}return ue(W==pt),t.avail_out===0?W==pt?Sn:Pt:W==pt?vs:bs}function $t(W){let Y=$,q=O,J,ne,le=A;const de=O>s-gt?O-(s-gt):0;let We=U;const ce=o,xe=O+Bs;let N=l[q+le-1],oe=l[q+le];A>=R&&(Y>>=2),We>k&&(We=k);do if(J=W,!(l[J+le]!=oe||l[J+le-1]!=N||l[J]!=l[q]||l[++J]!=l[q+1])){q+=2,J++;do;while(l[++q]==l[++J]&&l[++q]==l[++J]&&l[++q]==l[++J]&&l[++q]==l[++J]&&l[++q]==l[++J]&&l[++q]==l[++J]&&l[++q]==l[++J]&&l[++q]==l[++J]&&q<xe);if(ne=Bs-(xe-q),q=xe-Bs,ne>le){if(H=W,le=ne,ne>=We)break;N=l[q+le-1],oe=l[q+le]}}while((W=c[W&ce]&65535)>de&&--Y!==0);return le<=k?le:k}function Ti(W){let Y=0,q;for(;;){if(k<gt){if(yt(),k<gt&&W==tn)return Pt;if(k===0)break}if(k>=Fe&&(m=(m<<g^l[O+(Fe-1)]&255)&y,Y=h[m]&65535,c[O&o]=h[m],h[m]=O),Y!==0&&(O-Y&65535)<=s-gt&&I!=_s&&(L=$t(Y)),L>=Fe)if(q=K(O-H,L-Fe),k-=L,L<=E&&k>=Fe){L--;do O++,m=(m<<g^l[O+(Fe-1)]&255)&y,Y=h[m]&65535,c[O&o]=h[m],h[m]=O;while(--L!==0);O++}else O+=L,L=0,m=l[O]&255,m=(m<<g^l[O+1]&255)&y;else q=K(0,l[O]&255),k--,O++;if(q&&(ue(!1),t.avail_out===0))return Pt}return ue(W==pt),t.avail_out===0?W==pt?Sn:Pt:W==pt?vs:bs}function nt(W){let Y=0,q,J;for(;;){if(k<gt){if(yt(),k<gt&&W==tn)return Pt;if(k===0)break}if(k>=Fe&&(m=(m<<g^l[O+(Fe-1)]&255)&y,Y=h[m]&65535,c[O&o]=h[m],h[m]=O),A=L,S=H,L=Fe-1,Y!==0&&A<E&&(O-Y&65535)<=s-gt&&(I!=_s&&(L=$t(Y)),L<=5&&(I==Bg||L==Fe&&O-H>4096)&&(L=Fe-1)),A>=Fe&&L<=A){J=O+k-Fe,q=K(O-1-S,A-Fe),k-=A-1,A-=2;do++O<=J&&(m=(m<<g^l[O+(Fe-1)]&255)&y,Y=h[m]&65535,c[O&o]=h[m],h[m]=O);while(--A!==0);if(D=0,L=Fe-1,O++,q&&(ue(!1),t.avail_out===0))return Pt}else if(D!==0){if(q=K(0,l[O-1]&255),q&&ue(!1),O++,k--,t.avail_out===0)return Pt}else D=1,O++,k--}return D!==0&&(q=K(0,l[O-1]&255),D=0),ue(W==pt),t.avail_out===0?W==pt?Sn:Pt:W==pt?vs:bs}function Kr(W){return W.total_in=W.total_out=0,W.msg=null,e.pending=0,e.pending_out=0,r=xs,a=tn,Xe(),Pe(),Dt}e.deflateInit=function(W,Y,q,J,ne,le){return J||(J=Ea),ne||(ne=Gg),le||(le=Ug),W.msg=null,Y==ri&&(Y=6),ne<1||ne>zg||J!=Ea||q<9||q>15||Y<0||Y>9||le<0||le>_s?Ft:(W.dstate=e,n=q,s=1<<n,o=s-1,T=ne+7,_=1<<T,y=_-1,g=Math.floor((T+Fe-1)/Fe),l=new Uint8Array(s*2),c=[],h=[],Q=1<<ne+6,e.pending_buf=new Uint8Array(Q*4),i=Q*4,e.dist_buf=new Uint16Array(Q),e.lc_buf=new Uint8Array(Q),P=Y,I=le,Kr(W))},e.deflateEnd=function(){return r!=xa&&r!=xs&&r!=kn?Ft:(e.lc_buf=null,e.dist_buf=null,e.pending_buf=null,h=null,c=null,l=null,e.dstate=null,r==xs?jg:Dt)},e.deflateParams=function(W,Y,q){let J=Dt;return Y==ri&&(Y=6),Y<0||Y>9||q<0||q>_s?Ft:(Rt[P].func!=Rt[Y].func&&W.total_in!==0&&(J=W.deflate(Tf)),P!=Y&&(P=Y,E=Rt[P].max_lazy,R=Rt[P].good_length,U=Rt[P].nice_length,$=Rt[P].max_chain),I=q,J)},e.deflateSetDictionary=function(W,Y,q){let J=q,ne,le=0;if(!Y||r!=xa)return Ft;if(J<Fe)return Dt;for(J>s-gt&&(J=s-gt,le=q-J),l.set(Y.subarray(le,le+J),0),O=J,w=J,m=l[0]&255,m=(m<<g^l[1]&255)&y,ne=0;ne<=J-Fe;ne++)m=(m<<g^l[ne+(Fe-1)]&255)&y,c[ne&o]=h[m],h[m]=ne;return Dt},e.deflate=function(W,Y){let q,J,ne,le,de;if(Y>pt||Y<0)return Ft;if(!W.next_out||!W.next_in&&W.avail_in!==0||r==kn&&Y!=pt)return W.msg=ws[gs-Ft],Ft;if(W.avail_out===0)return W.msg=ws[gs-Yr],Yr;if(t=W,le=a,a=Y,r==xa&&(J=Ea+(n-8<<4)<<8,ne=(P-1&255)>>1,ne>3&&(ne=3),J|=ne<<6,O!==0&&(J|=Vg),J+=31-J%31,r=xs,ft(J)),e.pending!==0){if(t.flush_pending(),t.avail_out===0)return a=-1,Dt}else if(t.avail_in===0&&Y<=le&&Y!=pt)return t.msg=ws[gs-Yr],Yr;if(r==kn&&t.avail_in!==0)return W.msg=ws[gs-Yr],Yr;if(t.avail_in!==0||k!==0||Y!=tn&&r!=kn){switch(de=-1,Rt[P].func){case mu:de=rt(Y);break;case Fs:de=Ti(Y);break;case Pr:de=nt(Y);break}if((de==Sn||de==vs)&&(r=kn),de==Pt||de==Sn)return t.avail_out===0&&(a=-1),Dt;if(de==bs){if(Y==Tf)B();else if(he(0,0,!1),Y==Ng)for(q=0;q<_;q++)h[q]=0;if(t.flush_pending(),t.avail_out===0)return a=-1,Dt}}return Y!=pt?Dt:hu}}function yu(){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}yu.prototype={deflateInit(e,t){const r=this;return r.dstate=new Xg,t||(t=zn),r.dstate.deflateInit(r,e,t)},deflate(e){const t=this;return t.dstate?t.dstate.deflate(t,e):Ft},deflateEnd(){const e=this;if(!e.dstate)return Ft;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):Ft},deflateSetDictionary(e,t){const r=this;return r.dstate?r.dstate.deflateSetDictionary(r,e,t):Ft},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 Jg(e){const t=this,r=new yu,i=Qg(e&&e.chunkSize?e.chunkSize:64*1024),a=tn,s=new Uint8Array(i);let n=e?e.level:ri;typeof n>"u"&&(n=ri),r.deflateInit(n),r.next_out=s,t.append=function(o,l){let p,c,h=0,m=0,_=0;const T=[];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!=Dt)throw new Error("deflating: "+r.msg);r.next_out_index&&(r.next_out_index==i?T.push(new Uint8Array(s)):T.push(s.subarray(0,r.next_out_index))),_+=r.next_out_index,l&&r.next_in_index>0&&r.next_in_index!=h&&(l(r.next_in_index),h=r.next_in_index)}while(r.avail_in>0||r.avail_out===0);return T.length>1?(c=new Uint8Array(_),T.forEach(function(y){c.set(y,m),m+=y.length})):c=T[0]?new Uint8Array(T[0]):new Uint8Array,c}},t.flush=function(){let o,l,p=0,c=0;const h=[];do{if(r.next_out_index=0,r.avail_out=i,o=r.deflate(pt),o!=hu&&o!=Dt)throw new Error("deflating: "+r.msg);i-r.avail_out>0&&h.push(s.slice(0,r.next_out_index)),c+=r.next_out_index}while(r.avail_in>0||r.avail_out===0);return r.deflateEnd(),l=new Uint8Array(c),h.forEach(function(m){l.set(m,p),p+=m.length}),l}}function Qg(e){return e+5*(Math.floor(e/16383)+1)}const e1=15,ve=0,ar=1,t1=2,ut=-2,Re=-3,Lf=-4,or=-5,bt=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],_u=1440,r1=0,n1=4,s1=9,i1=5,a1=[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],o1=[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],l1=[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],f1=[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],p1=[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],c1=[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],cr=15;function so(){const e=this;let t,r,i,a,s,n;function o(p,c,h,m,_,T,y,g,w,L,S){let D,O,H,k,A,$,E,P,I,R,U,j,M,Z,z;R=0,A=h;do i[p[c+R]]++,R++,A--;while(A!==0);if(i[0]==h)return y[0]=-1,g[0]=0,ve;for(P=g[0],$=1;$<=cr&&i[$]===0;$++);for(E=$,P<$&&(P=$),A=cr;A!==0&&i[A]===0;A--);for(H=A,P>A&&(P=A),g[0]=P,Z=1<<$;$<A;$++,Z<<=1)if((Z-=i[$])<0)return Re;if((Z-=i[A])<0)return Re;for(i[A]+=Z,n[1]=$=0,R=1,M=2;--A!==0;)n[M]=$+=i[R],M++,R++;A=0,R=0;do($=p[c+R])!==0&&(S[n[$]++]=A),R++;while(++A<h);for(h=n[H],n[0]=A=0,R=0,k=-1,j=-P,s[0]=0,U=0,z=0;E<=H;E++)for(D=i[E];D--!==0;){for(;E>j+P;){if(k++,j+=P,z=H-j,z=z>P?P:z,(O=1<<($=E-j))>D+1&&(O-=D+1,M=E,$<z))for(;++$<z&&!((O<<=1)<=i[++M]);)O-=i[M];if(z=1<<$,L[0]+z>_u)return Re;s[k]=U=L[0],L[0]+=z,k!==0?(n[k]=A,a[0]=$,a[1]=P,$=A>>>j-P,a[2]=U-s[k-1]-$,w.set(a,(s[k-1]+$)*3)):y[0]=U}for(a[1]=E-j,R>=h?a[0]=192:S[R]<m?(a[0]=S[R]<256?0:96,a[2]=S[R++]):(a[0]=T[S[R]-m]+16+64,a[2]=_[S[R++]-m]),O=1<<E-j,$=A>>>j;$<z;$+=O)w.set(a,(U+$)*3);for($=1<<E-1;A&$;$>>>=1)A^=$;for(A^=$,I=(1<<j)-1;(A&I)!=n[k];)k--,j-=P,I=(1<<j)-1}return Z!==0&&H!=1?or:ve}function l(p){let c;for(t||(t=[],r=[],i=new Int32Array(cr+1),a=[],s=new Int32Array(cr),n=new Int32Array(cr+1)),r.length<p&&(r=[]),c=0;c<p;c++)r[c]=0;for(c=0;c<cr+1;c++)i[c]=0;for(c=0;c<3;c++)a[c]=0;s.set(i.subarray(0,cr),0),n.set(i.subarray(0,cr+1),0)}e.inflate_trees_bits=function(p,c,h,m,_){let T;return l(19),t[0]=0,T=o(p,0,19,19,null,null,h,c,m,t,r),T==Re?_.msg="oversubscribed dynamic bit lengths tree":(T==or||c[0]===0)&&(_.msg="incomplete dynamic bit lengths tree",T=Re),T},e.inflate_trees_dynamic=function(p,c,h,m,_,T,y,g,w){let L;return l(288),t[0]=0,L=o(h,0,p,257,l1,f1,T,m,g,t,r),L!=ve||m[0]===0?(L==Re?w.msg="oversubscribed literal/length tree":L!=Lf&&(w.msg="incomplete literal/length tree",L=Re),L):(l(288),L=o(h,p,c,0,p1,c1,y,_,g,t,r),L!=ve||_[0]===0&&p>257?(L==Re?w.msg="oversubscribed distance tree":L==or?(w.msg="incomplete distance tree",L=Re):L!=Lf&&(w.msg="empty distance tree with lengths",L=Re),L):ve)}}so.inflate_trees_fixed=function(e,t,r,i){return e[0]=s1,t[0]=i1,r[0]=a1,i[0]=o1,ve};const Es=0,$f=1,Rf=2,If=3,Df=4,Hf=5,Ff=6,ka=7,Bf=8,Ss=9;function u1(){const e=this;let t,r=0,i,a=0,s=0,n=0,o=0,l=0,p=0,c=0,h,m=0,_,T=0;function y(g,w,L,S,D,O,H,k){let A,$,E,P,I,R,U,j,M,Z,z,se,G,Q,ee,V;U=k.next_in_index,j=k.avail_in,I=H.bitb,R=H.bitk,M=H.write,Z=M<H.read?H.read-M-1:H.end-M,z=bt[g],se=bt[w];do{for(;R<20;)j--,I|=(k.read_byte(U++)&255)<<R,R+=8;if(A=I&z,$=L,E=S,V=(E+A)*3,(P=$[V])===0){I>>=$[V+1],R-=$[V+1],H.win[M++]=$[V+2],Z--;continue}do{if(I>>=$[V+1],R-=$[V+1],P&16){for(P&=15,G=$[V+2]+(I&bt[P]),I>>=P,R-=P;R<15;)j--,I|=(k.read_byte(U++)&255)<<R,R+=8;A=I&se,$=D,E=O,V=(E+A)*3,P=$[V];do if(I>>=$[V+1],R-=$[V+1],P&16){for(P&=15;R<P;)j--,I|=(k.read_byte(U++)&255)<<R,R+=8;if(Q=$[V+2]+(I&bt[P]),I>>=P,R-=P,Z-=G,M>=Q)ee=M-Q,M-ee>0&&2>M-ee?(H.win[M++]=H.win[ee++],H.win[M++]=H.win[ee++],G-=2):(H.win.set(H.win.subarray(ee,ee+2),M),M+=2,ee+=2,G-=2);else{ee=M-Q;do ee+=H.end;while(ee<0);if(P=H.end-ee,G>P){if(G-=P,M-ee>0&&P>M-ee)do H.win[M++]=H.win[ee++];while(--P!==0);else H.win.set(H.win.subarray(ee,ee+P),M),M+=P,ee+=P,P=0;ee=0}}if(M-ee>0&&G>M-ee)do H.win[M++]=H.win[ee++];while(--G!==0);else H.win.set(H.win.subarray(ee,ee+G),M),M+=G,ee+=G,G=0;break}else if(!(P&64))A+=$[V+2],A+=I&bt[P],V=(E+A)*3,P=$[V];else return k.msg="invalid distance code",G=k.avail_in-j,G=R>>3<G?R>>3:G,j+=G,U-=G,R-=G<<3,H.bitb=I,H.bitk=R,k.avail_in=j,k.total_in+=U-k.next_in_index,k.next_in_index=U,H.write=M,Re;while(!0);break}if(P&64)return P&32?(G=k.avail_in-j,G=R>>3<G?R>>3:G,j+=G,U-=G,R-=G<<3,H.bitb=I,H.bitk=R,k.avail_in=j,k.total_in+=U-k.next_in_index,k.next_in_index=U,H.write=M,ar):(k.msg="invalid literal/length code",G=k.avail_in-j,G=R>>3<G?R>>3:G,j+=G,U-=G,R-=G<<3,H.bitb=I,H.bitk=R,k.avail_in=j,k.total_in+=U-k.next_in_index,k.next_in_index=U,H.write=M,Re);if(A+=$[V+2],A+=I&bt[P],V=(E+A)*3,(P=$[V])===0){I>>=$[V+1],R-=$[V+1],H.win[M++]=$[V+2],Z--;break}}while(!0)}while(Z>=258&&j>=10);return G=k.avail_in-j,G=R>>3<G?R>>3:G,j+=G,U-=G,R-=G<<3,H.bitb=I,H.bitk=R,k.avail_in=j,k.total_in+=U-k.next_in_index,k.next_in_index=U,H.write=M,ve}e.init=function(g,w,L,S,D,O){t=Es,p=g,c=w,h=L,m=S,_=D,T=O,i=null},e.proc=function(g,w,L){let S,D,O,H=0,k=0,A=0,$,E,P,I;for(A=w.next_in_index,$=w.avail_in,H=g.bitb,k=g.bitk,E=g.write,P=E<g.read?g.read-E-1:g.end-E;;)switch(t){case Es:if(P>=258&&$>=10&&(g.bitb=H,g.bitk=k,w.avail_in=$,w.total_in+=A-w.next_in_index,w.next_in_index=A,g.write=E,L=y(p,c,h,m,_,T,g,w),A=w.next_in_index,$=w.avail_in,H=g.bitb,k=g.bitk,E=g.write,P=E<g.read?g.read-E-1:g.end-E,L!=ve)){t=L==ar?ka:Ss;break}s=p,i=h,a=m,t=$f;case $f:for(S=s;k<S;){if($!==0)L=ve;else return g.bitb=H,g.bitk=k,w.avail_in=$,w.total_in+=A-w.next_in_index,w.next_in_index=A,g.write=E,g.inflate_flush(w,L);$--,H|=(w.read_byte(A++)&255)<<k,k+=8}if(D=(a+(H&bt[S]))*3,H>>>=i[D+1],k-=i[D+1],O=i[D],O===0){n=i[D+2],t=Ff;break}if(O&16){o=O&15,r=i[D+2],t=Rf;break}if(!(O&64)){s=O,a=D/3+i[D+2];break}if(O&32){t=ka;break}return t=Ss,w.msg="invalid literal/length code",L=Re,g.bitb=H,g.bitk=k,w.avail_in=$,w.total_in+=A-w.next_in_index,w.next_in_index=A,g.write=E,g.inflate_flush(w,L);case Rf:for(S=o;k<S;){if($!==0)L=ve;else return g.bitb=H,g.bitk=k,w.avail_in=$,w.total_in+=A-w.next_in_index,w.next_in_index=A,g.write=E,g.inflate_flush(w,L);$--,H|=(w.read_byte(A++)&255)<<k,k+=8}r+=H&bt[S],H>>=S,k-=S,s=c,i=_,a=T,t=If;case If:for(S=s;k<S;){if($!==0)L=ve;else return g.bitb=H,g.bitk=k,w.avail_in=$,w.total_in+=A-w.next_in_index,w.next_in_index=A,g.write=E,g.inflate_flush(w,L);$--,H|=(w.read_byte(A++)&255)<<k,k+=8}if(D=(a+(H&bt[S]))*3,H>>=i[D+1],k-=i[D+1],O=i[D],O&16){o=O&15,l=i[D+2],t=Df;break}if(!(O&64)){s=O,a=D/3+i[D+2];break}return t=Ss,w.msg="invalid distance code",L=Re,g.bitb=H,g.bitk=k,w.avail_in=$,w.total_in+=A-w.next_in_index,w.next_in_index=A,g.write=E,g.inflate_flush(w,L);case Df:for(S=o;k<S;){if($!==0)L=ve;else return g.bitb=H,g.bitk=k,w.avail_in=$,w.total_in+=A-w.next_in_index,w.next_in_index=A,g.write=E,g.inflate_flush(w,L);$--,H|=(w.read_byte(A++)&255)<<k,k+=8}l+=H&bt[S],H>>=S,k-=S,t=Hf;case Hf:for(I=E-l;I<0;)I+=g.end;for(;r!==0;){if(P===0&&(E==g.end&&g.read!==0&&(E=0,P=E<g.read?g.read-E-1:g.end-E),P===0&&(g.write=E,L=g.inflate_flush(w,L),E=g.write,P=E<g.read?g.read-E-1:g.end-E,E==g.end&&g.read!==0&&(E=0,P=E<g.read?g.read-E-1:g.end-E),P===0)))return g.bitb=H,g.bitk=k,w.avail_in=$,w.total_in+=A-w.next_in_index,w.next_in_index=A,g.write=E,g.inflate_flush(w,L);g.win[E++]=g.win[I++],P--,I==g.end&&(I=0),r--}t=Es;break;case Ff:if(P===0&&(E==g.end&&g.read!==0&&(E=0,P=E<g.read?g.read-E-1:g.end-E),P===0&&(g.write=E,L=g.inflate_flush(w,L),E=g.write,P=E<g.read?g.read-E-1:g.end-E,E==g.end&&g.read!==0&&(E=0,P=E<g.read?g.read-E-1:g.end-E),P===0)))return g.bitb=H,g.bitk=k,w.avail_in=$,w.total_in+=A-w.next_in_index,w.next_in_index=A,g.write=E,g.inflate_flush(w,L);L=ve,g.win[E++]=n,P--,t=Es;break;case ka:if(k>7&&(k-=8,$++,A--),g.write=E,L=g.inflate_flush(w,L),E=g.write,P=E<g.read?g.read-E-1:g.end-E,g.read!=g.write)return g.bitb=H,g.bitk=k,w.avail_in=$,w.total_in+=A-w.next_in_index,w.next_in_index=A,g.write=E,g.inflate_flush(w,L);t=Bf;case Bf:return L=ar,g.bitb=H,g.bitk=k,w.avail_in=$,w.total_in+=A-w.next_in_index,w.next_in_index=A,g.write=E,g.inflate_flush(w,L);case Ss:return L=Re,g.bitb=H,g.bitk=k,w.avail_in=$,w.total_in+=A-w.next_in_index,w.next_in_index=A,g.write=E,g.inflate_flush(w,L);default:return L=ut,g.bitb=H,g.bitk=k,w.avail_in=$,w.total_in+=A-w.next_in_index,w.next_in_index=A,g.write=E,g.inflate_flush(w,L)}},e.free=function(){}}const Uf=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Xr=0,Pa=1,Nf=2,jf=3,Wf=4,Mf=5,ks=6,Ps=7,qf=8,kr=9;function d1(e,t){const r=this;let i=Xr,a=0,s=0,n=0,o;const l=[0],p=[0],c=new u1;let h=0,m=new Int32Array(_u*3);const _=0,T=new so;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==ks&&c.free(y),i=Xr,r.bitk=0,r.bitb=0,r.read=r.write=0},r.reset(e,null),r.inflate_flush=function(y,g){let w,L,S;return L=y.next_out_index,S=r.read,w=(S<=r.write?r.write:r.end)-S,w>y.avail_out&&(w=y.avail_out),w!==0&&g==or&&(g=ve),y.avail_out-=w,y.total_out+=w,y.next_out.set(r.win.subarray(S,S+w),L),L+=w,S+=w,S==r.end&&(S=0,r.write==r.end&&(r.write=0),w=r.write-S,w>y.avail_out&&(w=y.avail_out),w!==0&&g==or&&(g=ve),y.avail_out-=w,y.total_out+=w,y.next_out.set(r.win.subarray(S,S+w),L),L+=w,S+=w),y.next_out_index=L,r.read=S,g},r.proc=function(y,g){let w,L,S,D,O,H,k,A;for(D=y.next_in_index,O=y.avail_in,L=r.bitb,S=r.bitk,H=r.write,k=H<r.read?r.read-H-1:r.end-H;;){let $,E,P,I,R,U,j,M;switch(i){case Xr:for(;S<3;){if(O!==0)g=ve;else return r.bitb=L,r.bitk=S,y.avail_in=O,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,g);O--,L|=(y.read_byte(D++)&255)<<S,S+=8}switch(w=L&7,h=w&1,w>>>1){case 0:L>>>=3,S-=3,w=S&7,L>>>=w,S-=w,i=Pa;break;case 1:$=[],E=[],P=[[]],I=[[]],so.inflate_trees_fixed($,E,P,I),c.init($[0],E[0],P[0],0,I[0],0),L>>>=3,S-=3,i=ks;break;case 2:L>>>=3,S-=3,i=jf;break;case 3:return L>>>=3,S-=3,i=kr,y.msg="invalid block type",g=Re,r.bitb=L,r.bitk=S,y.avail_in=O,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,g)}break;case Pa:for(;S<32;){if(O!==0)g=ve;else return r.bitb=L,r.bitk=S,y.avail_in=O,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,g);O--,L|=(y.read_byte(D++)&255)<<S,S+=8}if((~L>>>16&65535)!=(L&65535))return i=kr,y.msg="invalid stored block lengths",g=Re,r.bitb=L,r.bitk=S,y.avail_in=O,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,g);a=L&65535,L=S=0,i=a!==0?Nf:h!==0?Ps:Xr;break;case Nf:if(O===0||k===0&&(H==r.end&&r.read!==0&&(H=0,k=H<r.read?r.read-H-1:r.end-H),k===0&&(r.write=H,g=r.inflate_flush(y,g),H=r.write,k=H<r.read?r.read-H-1:r.end-H,H==r.end&&r.read!==0&&(H=0,k=H<r.read?r.read-H-1:r.end-H),k===0)))return r.bitb=L,r.bitk=S,y.avail_in=O,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,g);if(g=ve,w=a,w>O&&(w=O),w>k&&(w=k),r.win.set(y.read_buf(D,w),H),D+=w,O-=w,H+=w,k-=w,(a-=w)!==0)break;i=h!==0?Ps:Xr;break;case jf:for(;S<14;){if(O!==0)g=ve;else return r.bitb=L,r.bitk=S,y.avail_in=O,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,g);O--,L|=(y.read_byte(D++)&255)<<S,S+=8}if(s=w=L&16383,(w&31)>29||(w>>5&31)>29)return i=kr,y.msg="too many length or distance symbols",g=Re,r.bitb=L,r.bitk=S,y.avail_in=O,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,g);if(w=258+(w&31)+(w>>5&31),!o||o.length<w)o=[];else for(A=0;A<w;A++)o[A]=0;L>>>=14,S-=14,n=0,i=Wf;case Wf:for(;n<4+(s>>>10);){for(;S<3;){if(O!==0)g=ve;else return r.bitb=L,r.bitk=S,y.avail_in=O,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,g);O--,L|=(y.read_byte(D++)&255)<<S,S+=8}o[Uf[n++]]=L&7,L>>>=3,S-=3}for(;n<19;)o[Uf[n++]]=0;if(l[0]=7,w=T.inflate_trees_bits(o,l,p,m,y),w!=ve)return g=w,g==Re&&(o=null,i=kr),r.bitb=L,r.bitk=S,y.avail_in=O,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,g);n=0,i=Mf;case Mf:for(;w=s,!(n>=258+(w&31)+(w>>5&31));){let Z,z;for(w=l[0];S<w;){if(O!==0)g=ve;else return r.bitb=L,r.bitk=S,y.avail_in=O,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,g);O--,L|=(y.read_byte(D++)&255)<<S,S+=8}if(w=m[(p[0]+(L&bt[w]))*3+1],z=m[(p[0]+(L&bt[w]))*3+2],z<16)L>>>=w,S-=w,o[n++]=z;else{for(A=z==18?7:z-14,Z=z==18?11:3;S<w+A;){if(O!==0)g=ve;else return r.bitb=L,r.bitk=S,y.avail_in=O,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,g);O--,L|=(y.read_byte(D++)&255)<<S,S+=8}if(L>>>=w,S-=w,Z+=L&bt[A],L>>>=A,S-=A,A=n,w=s,A+Z>258+(w&31)+(w>>5&31)||z==16&&A<1)return o=null,i=kr,y.msg="invalid bit length repeat",g=Re,r.bitb=L,r.bitk=S,y.avail_in=O,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,g);z=z==16?o[A-1]:0;do o[A++]=z;while(--Z!==0);n=A}}if(p[0]=-1,R=[],U=[],j=[],M=[],R[0]=9,U[0]=6,w=s,w=T.inflate_trees_dynamic(257+(w&31),1+(w>>5&31),o,R,U,j,M,m,y),w!=ve)return w==Re&&(o=null,i=kr),g=w,r.bitb=L,r.bitk=S,y.avail_in=O,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,g);c.init(R[0],U[0],m,j[0],m,M[0]),i=ks;case ks:if(r.bitb=L,r.bitk=S,y.avail_in=O,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,(g=c.proc(r,y,g))!=ar)return r.inflate_flush(y,g);if(g=ve,c.free(y),D=y.next_in_index,O=y.avail_in,L=r.bitb,S=r.bitk,H=r.write,k=H<r.read?r.read-H-1:r.end-H,h===0){i=Xr;break}i=Ps;case Ps:if(r.write=H,g=r.inflate_flush(y,g),H=r.write,k=H<r.read?r.read-H-1:r.end-H,r.read!=r.write)return r.bitb=L,r.bitk=S,y.avail_in=O,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,g);i=qf;case qf:return g=ar,r.bitb=L,r.bitk=S,y.avail_in=O,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,g);case kr:return g=Re,r.bitb=L,r.bitk=S,y.avail_in=O,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,g);default:return g=ut,r.bitb=L,r.bitk=S,y.avail_in=O,y.total_in+=D-y.next_in_index,y.next_in_index=D,r.write=H,r.inflate_flush(y,g)}}},r.free=function(y){r.reset(y,null),r.win=null,m=null},r.set_dictionary=function(y,g,w){r.win.set(y.subarray(g,g+w),0),r.read=r.write=w},r.sync_point=function(){return i==Pa?1:0}}const h1=32,m1=8,y1=0,Kf=1,zf=2,Gf=3,Vf=4,Zf=5,Aa=6,Pn=7,Yf=12,ur=13,_1=[0,0,255,255];function g1(){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?ut:(r.total_in=r.total_out=0,r.msg=null,r.istate.mode=Pn,r.istate.blocks.reset(r,null),ve)}e.inflateEnd=function(r){return e.blocks&&e.blocks.free(r),e.blocks=null,ve},e.inflateInit=function(r,i){return r.msg=null,e.blocks=null,i<8||i>15?(e.inflateEnd(r),ut):(e.wbits=i,r.istate.blocks=new d1(r,1<<i),t(r),ve)},e.inflate=function(r,i){let a,s;if(!r||!r.istate||!r.next_in)return ut;const n=r.istate;for(i=i==n1?or:ve,a=or;;)switch(n.mode){case y1:if(r.avail_in===0)return a;if(a=i,r.avail_in--,r.total_in++,((n.method=r.read_byte(r.next_in_index++))&15)!=m1){n.mode=ur,r.msg="unknown compression method",n.marker=5;break}if((n.method>>4)+8>n.wbits){n.mode=ur,r.msg="invalid win size",n.marker=5;break}n.mode=Kf;case Kf:if(r.avail_in===0)return a;if(a=i,r.avail_in--,r.total_in++,s=r.read_byte(r.next_in_index++)&255,((n.method<<8)+s)%31!==0){n.mode=ur,r.msg="incorrect header check",n.marker=5;break}if(!(s&h1)){n.mode=Pn;break}n.mode=zf;case zf:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,n.need=(r.read_byte(r.next_in_index++)&255)<<24&4278190080,n.mode=Gf;case Gf:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,n.need+=(r.read_byte(r.next_in_index++)&255)<<16&16711680,n.mode=Vf;case Vf:if(r.avail_in===0)return a;a=i,r.avail_in--,r.total_in++,n.need+=(r.read_byte(r.next_in_index++)&255)<<8&65280,n.mode=Zf;case Zf:return r.avail_in===0?a:(a=i,r.avail_in--,r.total_in++,n.need+=r.read_byte(r.next_in_index++)&255,n.mode=Aa,t1);case Aa:return n.mode=ur,r.msg="need dictionary",n.marker=0,ut;case Pn:if(a=n.blocks.proc(r,a),a==Re){n.mode=ur,n.marker=0;break}if(a==ve&&(a=i),a!=ar)return a;a=i,n.blocks.reset(r,n.was),n.mode=Yf;case Yf:return r.avail_in=0,ar;case ur:return Re;default:return ut}},e.inflateSetDictionary=function(r,i,a){let s=0,n=a;if(!r||!r.istate||r.istate.mode!=Aa)return ut;const o=r.istate;return n>=1<<o.wbits&&(n=(1<<o.wbits)-1,s=a-n),o.blocks.set_dictionary(i,s,n),o.mode=Pn,ve},e.inflateSync=function(r){let i,a,s,n,o;if(!r||!r.istate)return ut;const l=r.istate;if(l.mode!=ur&&(l.mode=ur,l.marker=0),(i=r.avail_in)===0)return or;for(a=r.next_in_index,s=l.marker;i!==0&&s<4;)r.read_byte(a)==_1[s]?s++:r.read_byte(a)!==0?s=0:s=4-s,a++,i--;return r.total_in+=a-r.next_in_index,r.next_in_index=a,r.avail_in=i,l.marker=s,s!=4?Re:(n=r.total_in,o=r.total_out,t(r),r.total_in=n,r.total_out=o,l.mode=Pn,ve)},e.inflateSyncPoint=function(r){return!r||!r.istate||!r.istate.blocks?ut:r.istate.blocks.sync_point()}}function gu(){}gu.prototype={inflateInit(e){const t=this;return t.istate=new g1,e||(e=e1),t.istate.inflateInit(t,e)},inflate(e){const t=this;return t.istate?t.istate.inflate(t,e):ut},inflateEnd(){const e=this;if(!e.istate)return ut;const t=e.istate.inflateEnd(e);return e.istate=null,t},inflateSync(){const e=this;return e.istate?e.istate.inflateSync(e):ut},inflateSetDictionary(e,t){const r=this;return r.istate?r.istate.inflateSetDictionary(r,e,t):ut},read_byte(e){return this.next_in[e]},read_buf(e,t){return this.next_in.subarray(e,e+t)}};function w1(e){const t=this,r=new gu,i=e&&e.chunkSize?Math.floor(e.chunkSize*2):128*1024,a=r1,s=new Uint8Array(i);let n=!1;r.inflateInit(),r.next_out=s,t.append=function(o,l){const p=[];let c,h,m=0,_=0,T=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&&!n&&(r.next_in_index=0,n=!0),c=r.inflate(a),n&&c===or){if(r.avail_in!==0)throw new Error("inflating: bad input")}else if(c!==ve&&c!==ar)throw new Error("inflating: "+r.msg);if((n||c===ar)&&r.avail_in===o.length)throw new Error("inflating: bad input");r.next_out_index&&(r.next_out_index===i?p.push(new Uint8Array(s)):p.push(s.subarray(0,r.next_out_index))),T+=r.next_out_index,l&&r.next_in_index>0&&r.next_in_index!=m&&(l(r.next_in_index),m=r.next_in_index)}while(r.avail_in>0||r.avail_out===0);return p.length>1?(h=new Uint8Array(T),p.forEach(function(y){h.set(y,_),_+=y.length})):h=p[0]?new Uint8Array(p[0]):new Uint8Array,h}},t.flush=function(){r.inflateEnd()}}const Ir=4294967295,_r=65535,b1=8,v1=0,x1=99,E1=67324752,S1=134695760,Xf=33639248,k1=101010256,Jf=101075792,P1=117853008,Jr=22,Ta=20,Oa=56,A1=1,T1=39169,O1=10,C1=1,L1=21589,$1=28789,R1=25461,I1=6534,Qf=1,D1=6,ep=8,tp=2048,rp=16,np=16384,sp=73,ip="/",lt=void 0,Sr="undefined",os="function";class ap{constructor(t){return class extends TransformStream{constructor(r,i){const a=new t(i);super({transform(s,n){n.enqueue(a.append(s))},flush(s){const n=a.flush();n&&s.enqueue(n)}})}}}}const H1=64;let wu=2;try{typeof navigator!=Sr&&navigator.hardwareConcurrency&&(wu=navigator.hardwareConcurrency)}catch{}const F1={chunkSize:512*1024,maxWorkers:wu,terminateWorkerTimeout:5e3,useWebWorkers:!0,useCompressionStream:!0,workerScripts:lt,CompressionStreamNative:typeof CompressionStream!=Sr&&CompressionStream,DecompressionStreamNative:typeof DecompressionStream!=Sr&&DecompressionStream},gr=Object.assign({},F1);function B1(){return gr}function U1(e){return Math.max(e.chunkSize,H1)}function Ro(e){const{baseURL:t,chunkSize:r,maxWorkers:i,terminateWorkerTimeout:a,useCompressionStream:s,useWebWorkers:n,Deflate:o,Inflate:l,CompressionStream:p,DecompressionStream:c,workerScripts:h}=e;if(dr("baseURL",t),dr("chunkSize",r),dr("maxWorkers",i),dr("terminateWorkerTimeout",a),dr("useCompressionStream",s),dr("useWebWorkers",n),o&&(gr.CompressionStream=new ap(o)),l&&(gr.DecompressionStream=new ap(l)),dr("CompressionStream",p),dr("DecompressionStream",c),h!==lt){const{deflate:m,inflate:_}=h;if((m||_)&&(gr.workerScripts||(gr.workerScripts={})),m){if(!Array.isArray(m))throw new Error("workerScripts.deflate must be an array");gr.workerScripts.deflate=m}if(_){if(!Array.isArray(_))throw new Error("workerScripts.inflate must be an array");gr.workerScripts.inflate=_}}}function dr(e,t){t!==lt&&(gr[e]=t)}const Ca={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(Ca))for(const r of Object.keys(Ca[t])){const i=Ca[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 bu=[];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;bu[e]=t}class ni{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^bu[(r^t[i])&255];this.crc=r}get(){return~this.crc}}class vu extends TransformStream{constructor(){let t;const r=new ni;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 N1(e){if(typeof TextEncoder==Sr){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 ot={concat(e,t){if(e.length===0||t.length===0)return e.concat(t);const r=e[e.length-1],i=ot.getPartial(r);return i===32?e.concat(t):ot._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+ot.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]=ot.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 n=0;n<e.length;n++)i.push(r|e[n]>>>t),r=e[n]<<32-t;const a=e.length?e[e.length-1]:0,s=ot.getPartial(a);return i.push(ot.partial(t+s&31,t+s>32?r:i.pop(),1)),i}},si={bytes:{fromBits(e){const r=ot.bitLength(e)/8,i=new Uint8Array(r);let a;for(let s=0;s<r;s++)s&3||(a=e[s/4]),i[s]=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(ot.partial(8*(r&3),i)),t}}},xu={};xu.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=si.utf8String.toBits(e));const r=t._buffer=ot.concat(t._buffer,e),i=t._length,a=t._length=i+ot.bitLength(e);if(a>9007199254740991)throw new Error("Cannot hash more than 2^53 - 1 bits");const s=new Uint32Array(r);let n=0;for(let o=t.blockSize+i-(t.blockSize+i&t.blockSize-1);o<=a;o+=t.blockSize)t._block(s.subarray(16*n,16*(n+1))),n+=1;return r.splice(0,16*n),t}finalize(){const e=this;let t=e._buffer;const r=e._h;t=ot.concat(t,[ot.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],s=r[1],n=r[2],o=r[3],l=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,s,n,o)+l+i[p]+t._key[Math.floor(p/20)]|0;l=o,o=n,n=t._S(30,s),s=a,a=c}r[0]=r[0]+a|0,r[1]=r[1]+s|0,r[2]=r[2]+n|0,r[3]=r[3]+o|0,r[4]=r[4]+l|0}};const Eu={};Eu.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 s,n,o,l=1;if(a!==4&&a!==6&&a!==8)throw new Error("invalid aes key size");for(t._key=[n=e.slice(0),o=[]],s=a;s<4*a+28;s++){let p=n[s-1];(s%a===0||a===8&&s%a===4)&&(p=r[p>>>24]<<24^r[p>>16&255]<<16^r[p>>8&255]<<8^r[p&255],s%a===0&&(p=p<<8^p>>>24^l<<24,l=l<<1^(l>>7)*283)),n[s]=n[s-a]^p}for(let p=0;s;p++,s--){const c=n[p&3?s:s-4];s<=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=[],s=[];let n,o,l,p;for(let c=0;c<256;c++)s[(a[c]=c<<1^(c>>7)*283)^c]=c;for(let c=n=0;!r[c];c^=o||1,n=s[n]||1){let h=n^n<<1^n<<2^n<<3^n<<4;h=h>>8^h&255^99,r[c]=h,i[h]=c,p=a[l=a[o=a[c]]];let m=p*16843009^l*65537^o*257^c*16843008,_=a[h]*257^h*16843008;for(let T=0;T<4;T++)e[T][c]=_=_<<24^_>>>8,t[T][h]=m=m<<24^m>>>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],s=this._tables[t],n=s[0],o=s[1],l=s[2],p=s[3],c=s[4];let h=e[0]^r[0],m=e[t?3:1]^r[1],_=e[2]^r[2],T=e[t?1:3]^r[3],y=4,g,w,L;for(let S=0;S<i;S++)g=n[h>>>24]^o[m>>16&255]^l[_>>8&255]^p[T&255]^r[y],w=n[m>>>24]^o[_>>16&255]^l[T>>8&255]^p[h&255]^r[y+1],L=n[_>>>24]^o[T>>16&255]^l[h>>8&255]^p[m&255]^r[y+2],T=n[T>>>24]^o[h>>16&255]^l[m>>8&255]^p[_&255]^r[y+3],y+=4,h=g,m=w,_=L;for(let S=0;S<4;S++)a[t?3&-S:S]=c[h>>>24]<<24^c[m>>16&255]<<16^c[_>>8&255]<<8^c[T&255]^r[y++],g=h,h=m,m=_,_=T,T=g;return a}};const j1={getRandomValues(e){const t=new Uint32Array(e.buffer),r=i=>{let a=987654321;const s=4294967295;return function(){return a=36969*(a&65535)+(a>>16)&s,i=18e3*(i&65535)+(i>>16)&s,(((a<<16)+i&s)/4294967296+.5)*(Math.random()>.5?1:-1)}};for(let i=0,a;i<e.length;i+=4){const s=r((a||Math.random())*4294967296);a=s()*987654071,t[i/4]=s()*4294967296|0}return e}},Su={};Su.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=ot.bitLength(t);for(let s=0;s<i;s+=4){this.incCounter(r);const n=e.encrypt(r);t[s]^=n[0],t[s+1]^=n[1],t[s+2]^=n[2],t[s+3]^=n[3]}return ot.clamp(t,a)}};const Wr={importKey(e){return new Wr.hmacSha1(si.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 s,n,o,l,p;const c=new ArrayBuffer(a),h=new DataView(c);let m=0;const _=ot;for(t=si.bytes.toBits(t),p=1;m<(a||1);p++){for(s=n=e.encrypt(_.concat(t,[p])),o=1;o<r;o++)for(n=e.encrypt(n),l=0;l<n.length;l++)s[l]^=n[l];for(o=0;m<(a||1)&&o<s.length;o++)h.setInt32(m,s[o]),m+=4}return c.slice(0,i/8)}};Wr.hmacSha1=class{constructor(e){const t=this,r=t._hash=xu.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 s=0;s<a;s++)i[0][s]=e[s]^909522486,i[1][s]=e[s]^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 W1=typeof crypto!=Sr&&typeof crypto.getRandomValues==os,ku="Invalid password",Pu="Invalid signature",Io="zipjs-abort-check-password";function Au(e){return W1?crypto.getRandomValues(e):j1.getRandomValues(e)}const nn=16,M1="raw",Tu={name:"PBKDF2"},q1={name:"HMAC"},K1="SHA-1",z1=Object.assign({hash:q1},Tu),io=Object.assign({iterations:1e3,hash:{name:K1}},Tu),G1=["deriveBits"],Gn=[8,12,16],An=[16,24,32],yr=10,V1=[0,0,0,0],xi=typeof crypto!=Sr,ls=xi&&crypto.subtle,Ou=xi&&typeof ls!=Sr,Xt=si.bytes,Z1=Eu.aes,Y1=Su.ctrGladman,X1=Wr.hmacSha1;let op=xi&&Ou&&typeof ls.importKey==os,lp=xi&&Ou&&typeof ls.deriveBits==os;class J1 extends TransformStream{constructor({password:t,rawPassword:r,signed:i,encryptionStrength:a,checkPasswordOnly:s}){super({start(){Object.assign(this,{ready:new Promise(n=>this.resolveReady=n),password:$u(t,r),signed:i,strength:a-1,pending:new Uint8Array})},async transform(n,o){const l=this,{password:p,strength:c,resolveReady:h,ready:m}=l;p?(await ew(l,c,p,Tt(n,0,Gn[c]+2)),n=Tt(n,Gn[c]+2),s?o.error(new Error(Io)):h()):await m;const _=new Uint8Array(n.length-yr-(n.length-yr)%nn);o.enqueue(Cu(l,n,_,0,yr,!0))},async flush(n){const{signed:o,ctr:l,hmac:p,pending:c,ready:h}=this;if(p&&l){await h;const m=Tt(c,0,c.length-yr),_=Tt(c,c.length-yr);let T=new Uint8Array;if(m.length){const y=Zn(Xt,m);p.update(y);const g=l.update(y);T=Vn(Xt,g)}if(o){const y=Tt(Vn(Xt,p.digest()),0,yr);for(let g=0;g<yr;g++)if(y[g]!=_[g])throw new Error(Pu)}n.enqueue(T)}}})}}class Q1 extends TransformStream{constructor({password:t,rawPassword:r,encryptionStrength:i}){let a;super({start(){Object.assign(this,{ready:new Promise(s=>this.resolveReady=s),password:$u(t,r),strength:i-1,pending:new Uint8Array})},async transform(s,n){const o=this,{password:l,strength:p,resolveReady:c,ready:h}=o;let m=new Uint8Array;l?(m=await tw(o,p,l),c()):await h;const _=new Uint8Array(m.length+s.length-s.length%nn);_.set(m,0),n.enqueue(Cu(o,s,_,m.length,0))},async flush(s){const{ctr:n,hmac:o,pending:l,ready:p}=this;if(o&&n){await p;let c=new Uint8Array;if(l.length){const h=n.update(Zn(Xt,l));o.update(h),c=Vn(Xt,h)}a.signature=Vn(Xt,o.digest()).slice(0,yr),s.enqueue(Do(c,a.signature))}}}),a=this}}function Cu(e,t,r,i,a,s){const{ctr:n,hmac:o,pending:l}=e,p=t.length-a;l.length&&(t=Do(l,t),r=sw(r,p-p%nn));let c;for(c=0;c<=p-nn;c+=nn){const h=Zn(Xt,Tt(t,c,c+nn));s&&o.update(h);const m=n.update(h);s||o.update(m),r.set(Vn(Xt,m),c+i)}return e.pending=Tt(t,c),r}async function ew(e,t,r,i){const a=await Lu(e,t,r,Tt(i,0,Gn[t])),s=Tt(i,Gn[t]);if(a[0]!=s[0]||a[1]!=s[1])throw new Error(ku)}async function tw(e,t,r){const i=Au(new Uint8Array(Gn[t])),a=await Lu(e,t,r,i);return Do(i,a)}async function Lu(e,t,r,i){e.password=null;const a=await rw(M1,r,z1,!1,G1),s=await nw(Object.assign({salt:i},io),a,8*(An[t]*2+2)),n=new Uint8Array(s),o=Zn(Xt,Tt(n,0,An[t])),l=Zn(Xt,Tt(n,An[t],An[t]*2)),p=Tt(n,An[t]*2);return Object.assign(e,{keys:{key:o,authentication:l,passwordVerification:p},ctr:new Y1(new Z1(o),Array.from(V1)),hmac:new X1(l)}),p}async function rw(e,t,r,i,a){if(op)try{return await ls.importKey(e,t,r,i,a)}catch{return op=!1,Wr.importKey(t)}else return Wr.importKey(t)}async function nw(e,t,r){if(lp)try{return await ls.deriveBits(e,t,r)}catch{return lp=!1,Wr.pbkdf2(t,e.salt,io.iterations,r)}else return Wr.pbkdf2(t,e.salt,io.iterations,r)}function $u(e,t){return t===lt?N1(e):t}function Do(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 sw(e,t){if(t&&t>e.length){const r=e;e=new Uint8Array(t),e.set(r,0)}return e}function Tt(e,t,r){return e.subarray(t,r)}function Vn(e,t){return e.fromBits(t)}function Zn(e,t){return e.toBits(t)}const fn=12;class iw extends TransformStream{constructor({password:t,passwordVerification:r,checkPasswordOnly:i}){super({start(){Object.assign(this,{password:t,passwordVerification:r}),Ru(this,t)},transform(a,s){const n=this;if(n.password){const o=fp(n,a.subarray(0,fn));if(n.password=null,o[fn-1]!=n.passwordVerification)throw new Error(ku);a=a.subarray(fn)}i?s.error(new Error(Io)):s.enqueue(fp(n,a))}})}}class aw extends TransformStream{constructor({password:t,passwordVerification:r}){super({start(){Object.assign(this,{password:t,passwordVerification:r}),Ru(this,t)},transform(i,a){const s=this;let n,o;if(s.password){s.password=null;const l=Au(new Uint8Array(fn));l[fn-1]=s.passwordVerification,n=new Uint8Array(i.length+l.length),n.set(pp(s,l),0),o=fn}else n=new Uint8Array(i.length),o=0;n.set(pp(s,i),o),a.enqueue(n)}})}}function fp(e,t){const r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=Iu(e)^t[i],Ho(e,r[i]);return r}function pp(e,t){const r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=Iu(e)^t[i],Ho(e,t[i]);return r}function Ru(e,t){const r=[305419896,591751049,878082192];Object.assign(e,{keys:r,crcKey0:new ni(r[0]),crcKey2:new ni(r[2])});for(let i=0;i<t.length;i++)Ho(e,t.charCodeAt(i))}function Ho(e,t){let[r,i,a]=e.keys;e.crcKey0.append([t]),r=~e.crcKey0.get(),i=cp(Math.imul(cp(i+Du(r)),134775813)+1),e.crcKey2.append([i>>>24]),a=~e.crcKey2.get(),e.keys=[r,i,a]}function Iu(e){const t=e.keys[2]|2;return Du(Math.imul(t,t^1)>>>8)}function Du(e){return e&255}function cp(e){return e&4294967295}const up="deflate-raw";class ow extends TransformStream{constructor(t,{chunkSize:r,CompressionStream:i,CompressionStreamNative:a}){super({});const{compressed:s,encrypted:n,useCompressionStream:o,zipCrypto:l,signed:p,level:c}=t,h=this;let m,_,T=Hu(super.readable);(!n||l)&&p&&(m=new vu,T=Jt(T,m)),s&&(T=Bu(T,o,{level:c,chunkSize:r},a,i)),n&&(l?T=Jt(T,new aw(t)):(_=new Q1(t),T=Jt(T,_))),Fu(h,T,()=>{let y;n&&!l&&(y=_.signature),(!n||l)&&p&&(y=new DataView(m.value.buffer).getUint32(0)),h.signature=y})}}class lw extends TransformStream{constructor(t,{chunkSize:r,DecompressionStream:i,DecompressionStreamNative:a}){super({});const{zipCrypto:s,encrypted:n,signed:o,signature:l,compressed:p,useCompressionStream:c}=t;let h,m,_=Hu(super.readable);n&&(s?_=Jt(_,new iw(t)):(m=new J1(t),_=Jt(_,m))),p&&(_=Bu(_,c,{chunkSize:r},a,i)),(!n||s)&&o&&(h=new vu,_=Jt(_,h)),Fu(this,_,()=>{if((!n||s)&&o){const T=new DataView(h.value.buffer);if(l!=T.getUint32(0,!1))throw new Error(Pu)}})}}function Hu(e){return Jt(e,new TransformStream({transform(t,r){t&&t.length&&r.enqueue(t)}}))}function Fu(e,t,r){t=Jt(t,new TransformStream({flush:r})),Object.defineProperty(e,"readable",{get(){return t}})}function Bu(e,t,r,i,a){try{const s=t&&i?i:a;e=Jt(e,new s(up,r))}catch{if(t)try{e=Jt(e,new a(up,r))}catch{return e}else return e}return e}function Jt(e,t){return e.pipeThrough(t)}const fw="message",pw="start",cw="pull",dp="data",uw="ack",hp="close",dw="deflate",Uu="inflate";class hw extends TransformStream{constructor(t,r){super({});const i=this,{codecType:a}=t;let s;a.startsWith(dw)?s=ow:a.startsWith(Uu)&&(s=lw);let n=0,o=0;const l=new s(t,r),p=super.readable,c=new TransformStream({transform(m,_){m&&m.length&&(o+=m.length,_.enqueue(m))},flush(){Object.assign(i,{inputSize:o})}}),h=new TransformStream({transform(m,_){m&&m.length&&(n+=m.length,_.enqueue(m))},flush(){const{signature:m}=l;Object.assign(i,{signature:m,outputSize:n,inputSize:o})}});Object.defineProperty(i,"readable",{get(){return p.pipeThrough(c).pipeThrough(l).pipeThrough(h)}})}}class mw extends TransformStream{constructor(t){let r;super({transform:i,flush(a){r&&r.length&&a.enqueue(r)}});function i(a,s){if(r){const n=new Uint8Array(r.length+a.length);n.set(r),n.set(a,r.length),a=n,r=null}a.length>t?(s.enqueue(a.slice(0,t)),i(a.slice(t),s)):r=a}}}let Nu=typeof Worker!=Sr;class La{constructor(t,{readable:r,writable:i},{options:a,config:s,streamOptions:n,useWebWorkers:o,transferStreams:l,scripts:p},c){const{signal:h}=n;return Object.assign(t,{busy:!0,readable:r.pipeThrough(new mw(s.chunkSize)).pipeThrough(new yw(r,n),{signal:h}),writable:i,options:Object.assign({},a),scripts:p,transferStreams:l,terminate(){return new Promise(m=>{const{worker:_,busy:T}=t;_?(T?t.resolveTerminated=m:(_.terminate(),m()),t.interface=null):m()})},onTaskFinished(){const{resolveTerminated:m}=t;m&&(t.resolveTerminated=null,t.terminated=!0,t.worker.terminate(),m()),t.busy=!1,c(t)}}),(o&&Nu?_w:ju)(t,s)}}class yw extends TransformStream{constructor(t,{onstart:r,onprogress:i,size:a,onend:s}){let n=0;super({async start(){r&&await $a(r,a)},async transform(o,l){n+=o.length,i&&await $a(i,n,a),l.enqueue(o)},async flush(){t.size=n,s&&await $a(s,n)}})}}async function $a(e,...t){try{await e(...t)}catch{}}function ju(e,t){return{run:()=>gw(e,t)}}function _w(e,t){const{baseURL:r,chunkSize:i}=t;if(!e.interface){let a;try{a=vw(e.scripts[0],r,e)}catch{return Nu=!1,ju(e,t)}Object.assign(e,{worker:a,interface:{run:()=>ww(e,{chunkSize:i})}})}return e.interface}async function gw({options:e,readable:t,writable:r,onTaskFinished:i},a){try{const s=new hw(e,a);await t.pipeThrough(s).pipeTo(r,{preventClose:!0,preventAbort:!0});const{signature:n,inputSize:o,outputSize:l}=s;return{signature:n,inputSize:o,outputSize:l}}finally{i()}}async function ww(e,t){let r,i;const a=new Promise((m,_)=>{r=m,i=_});Object.assign(e,{reader:null,writer:null,resolveResult:r,rejectResult:i,result:a});const{readable:s,options:n,scripts:o}=e,{writable:l,closed:p}=bw(e.writable),c=Us({type:pw,scripts:o.slice(1),options:n,config:t,readable:s,writable:l},e);c||Object.assign(e,{reader:s.getReader(),writer:l.getWriter()});const h=await a;return c||await l.getWriter().close(),await p,h}function bw(e){let t;const r=new Promise(a=>t=a);return{writable:new WritableStream({async write(a){const s=e.getWriter();await s.ready,await s.write(a),s.releaseLock()},close(){t()},abort(a){return e.getWriter().abort(a)}}),closed:r}}let mp=!0,yp=!0;function vw(e,t,r){const i={type:"module"};let a,s;typeof e==os&&(e=e());try{a=new URL(e,t)}catch{a=e}if(mp)try{s=new Worker(a)}catch{mp=!1,s=new Worker(a,i)}else s=new Worker(a,i);return s.addEventListener(fw,n=>xw(n,r)),s}function Us(e,{worker:t,writer:r,onTaskFinished:i,transferStreams:a}){try{const{value:s,readable:n,writable:o}=e,l=[];if(s&&(s.byteLength<s.buffer.byteLength?e.value=s.buffer.slice(0,s.byteLength):e.value=s.buffer,l.push(e.value)),a&&yp?(n&&l.push(n),o&&l.push(o)):e.readable=e.writable=null,l.length)try{return t.postMessage(e,l),!0}catch{yp=!1,e.readable=e.writable=null,t.postMessage(e)}else t.postMessage(e)}catch(s){throw r&&r.releaseLock(),i(),s}}async function xw({data:e},t){const{type:r,value:i,messageId:a,result:s,error:n}=e,{reader:o,writer:l,resolveResult:p,rejectResult:c,onTaskFinished:h}=t;try{if(n){const{message:_,stack:T,code:y,name:g}=n,w=new Error(_);Object.assign(w,{stack:T,code:y,name:g}),m(w)}else{if(r==cw){const{value:_,done:T}=await o.read();Us({type:dp,value:_,done:T,messageId:a},t)}r==dp&&(await l.ready,await l.write(new Uint8Array(i)),Us({type:uw,messageId:a},t)),r==hp&&m(null,s)}}catch(_){Us({type:hp,messageId:a},t),m(_)}function m(_,T){_?c(_):p(T),l&&l.releaseLock(),h()}}let Or=[];const Ra=[];let _p=0;async function Ew(e,t){const{options:r,config:i}=t,{transferStreams:a,useWebWorkers:s,useCompressionStream:n,codecType:o,compressed:l,signed:p,encrypted:c}=r,{workerScripts:h,maxWorkers:m}=i;t.transferStreams=a||a===lt;const _=!l&&!p&&!c&&!t.transferStreams;return t.useWebWorkers=!_&&(s||s===lt&&i.useWebWorkers),t.scripts=t.useWebWorkers&&h?h[o]:[],r.useCompressionStream=n||n===lt&&i.useCompressionStream,(await T()).run();async function T(){const g=Or.find(w=>!w.busy);if(g)return gp(g),new La(g,e,t,y);if(Or.length<m){const w={indexWorker:_p};return _p++,Or.push(w),new La(w,e,t,y)}else return new Promise(w=>Ra.push({resolve:w,stream:e,workerOptions:t}))}function y(g){if(Ra.length){const[{resolve:w,stream:L,workerOptions:S}]=Ra.splice(0,1);w(new La(g,L,S,y))}else g.worker?(gp(g),Sw(g,t)):Or=Or.filter(w=>w!=g)}}function Sw(e,t){const{config:r}=t,{terminateWorkerTimeout:i}=r;Number.isFinite(i)&&i>=0&&(e.terminated?e.terminated=!1:e.terminateTimeout=setTimeout(async()=>{Or=Or.filter(a=>a!=e);try{await e.terminate()}catch{}},i))}function gp(e){const{terminateTimeout:t}=e;t&&(clearTimeout(t),e.terminateTimeout=null)}function kw(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};
|
|
90
|
+
`,i=()=>t.useDataURI?"data:text/javascript,"+encodeURIComponent(r):URL.createObjectURL(new Blob([r],{type:"text/javascript"}));e({workerScripts:{inflate:[i],deflate:[i]}})}const Pw="Writer iterator completed too soon",Aw="Content-Type",Tw=64*1024,Wu="writable";class Fo{constructor(){this.size=0}init(){this.initialized=!0}}class Mu extends Fo{get readable(){const t=this,{chunkSize:r=Tw}=t,i=new ReadableStream({start(){this.chunkOffset=0},async pull(a){const{offset:s=0,size:n,diskNumberStart:o}=i,{chunkOffset:l}=this;a.enqueue(await et(t,s+l,Math.min(r,n-l),o)),l+r>n?a.close():this.chunkOffset+=r}});return i}}class ao extends Mu{constructor(t){super(),Object.assign(this,{blob:t,size:t.size})}async readUint8Array(t,r){const i=this,a=t+r;let n=await(t||a<i.size?i.blob.slice(t,a):i.blob).arrayBuffer();return n.byteLength>r&&(n=n.slice(t,a)),new Uint8Array(n)}}class Ow extends Fo{constructor(t){super();const r=this,i=new TransformStream,a=[];t&&a.push([Aw,t]),Object.defineProperty(r,Wu,{get(){return i.writable}}),r.blob=new Response(i.readable,{headers:a}).blob()}getData(){return this.blob}}class Cw extends Mu{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:s}=this;let n,o=i;o==-1&&(o=s.length-1);let l=t;for(;l>=s[o].size;)l-=s[o].size,o++;const p=s[o],c=p.size;if(l+r<=c)n=await et(p,l,r);else{const h=c-l;n=new Uint8Array(r),n.set(await et(p,l,h)),n.set(await a.readUint8Array(t+h,r-h,i),h)}return a.lastDiskNumber=Math.max(o,a.lastDiskNumber),n}}class wp extends Fo{constructor(t,r=4294967295){super();const i=this;Object.assign(i,{diskNumber:0,diskOffset:0,size:0,maxSize:r,availableSize:r});let a,s,n;const o=new WritableStream({async write(c){const{availableSize:h}=i;if(n)c.length>=h?(await l(c.slice(0,h)),await p(),i.diskOffset+=a.size,i.diskNumber++,n=null,await this.write(c.slice(h))):await l(c);else{const{value:m,done:_}=await t.next();if(_&&!m)throw new Error(Pw);a=m,a.size=0,a.maxSize&&(i.maxSize=a.maxSize),i.availableSize=i.maxSize,await ii(a),s=m.writable,n=s.getWriter(),await this.write(c)}},async close(){await n.ready,await p()}});Object.defineProperty(i,Wu,{get(){return o}});async function l(c){const h=c.length;h&&(await n.ready,await n.write(c),a.size+=h,i.size+=h,i.availableSize-=h)}async function p(){s.size=a.size,await n.close()}}}async function ii(e,t){if(e.init&&!e.initialized)await e.init(t);else return Promise.resolve()}function Lw(e){return Array.isArray(e)&&(e=new Cw(e)),e instanceof ReadableStream&&(e={readable:e}),e}function $w(e){e.writable===lt&&typeof e.next==os&&(e=new wp(e)),e instanceof WritableStream&&(e={writable:e});const{writable:t}=e;return t.size===lt&&(t.size=0),e instanceof wp||Object.assign(e,{diskNumber:0,diskOffset:0,availableSize:1/0,maxSize:1/0}),e}function et(e,t,r,i){return e.readUint8Array(t,r,i)}const qu="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ".split(""),Rw=qu.length==256;function Iw(e){if(Rw){let t="";for(let r=0;r<e.length;r++)t+=qu[e[r]];return t}else return new TextDecoder().decode(e)}function Ns(e,t){return t&&t.trim().toLowerCase()=="cp437"?Iw(e):new TextDecoder(t).decode(e)}const Ku="filename",zu="rawFilename",Gu="comment",Vu="rawComment",Zu="uncompressedSize",Yu="compressedSize",Xu="offset",oo="diskNumberStart",lo="lastModDate",fo="rawLastModDate",Ju="lastAccessDate",Dw="rawLastAccessDate",Qu="creationDate",Hw="rawCreationDate",Fw="internalFileAttribute",Bw="internalFileAttributes",Uw="externalFileAttribute",Nw="externalFileAttributes",jw="msDosCompatible",Ww="zip64",Mw="encrypted",qw="version",Kw="versionMadeBy",zw="zipCrypto",Gw="directory",Vw="executable",Zw=[Ku,zu,Yu,Zu,lo,fo,Gu,Vu,Ju,Qu,Xu,oo,oo,Fw,Bw,Uw,Nw,jw,Ww,Mw,qw,Kw,zw,Gw,Vw,"bitFlag","signature","filenameUTF8","commentUTF8","compressionMethod","extraField","rawExtraField","extraFieldZip64","extraFieldUnicodePath","extraFieldUnicodeComment","extraFieldAES","extraFieldNTFS","extraFieldExtendedTimestamp"];class bp{constructor(t){Zw.forEach(r=>this[r]=t[r])}}const Ia="File format is not recognized",Yw="End of central directory not found",Xw="End of Zip64 central directory locator not found",Jw="Central directory header not found",Qw="Local file header not found",eb="Zip64 extra field not found",tb="File contains encrypted entry",rb="Encryption method not supported",vp="Compression method not supported",xp="Split zip file",Ep="utf-8",Sp="cp437",nb=[[Zu,Ir],[Yu,Ir],[Xu,Ir],[oo,_r]],sb={[_r]:{getValue:Ne,bytes:4},[Ir]:{getValue:js,bytes:8}};class kp{constructor(t,r={}){Object.assign(this,{reader:Lw(t),options:r,config:B1()})}async*getEntriesGenerator(t={}){const r=this;let{reader:i}=r;const{config:a}=r;if(await ii(i),(i.size===lt||!i.readUint8Array)&&(i=new ao(await new Response(i.readable).blob()),await ii(i)),i.size<Jr)throw new Error(Ia);i.chunkSize=U1(a);const s=await pb(i,k1,i.size,Jr,_r*16);if(!s){const E=await et(i,0,4),P=Ze(E);throw Ne(P)==S1?new Error(xp):new Error(Yw)}const n=Ze(s);let o=Ne(n,12),l=Ne(n,16);const p=s.offset,c=Ve(n,20),h=p+Jr+c;let m=Ve(n,4);const _=i.lastDiskNumber||0;let T=Ve(n,6),y=Ve(n,8),g=0,w=0;if(l==Ir||o==Ir||y==_r||T==_r){const E=await et(i,s.offset-Ta,Ta),P=Ze(E);if(Ne(P,0)==P1){l=js(P,8);let I=await et(i,l,Oa,-1),R=Ze(I);const U=s.offset-Ta-Oa;if(Ne(R,0)!=Jf&&l!=U){const j=l;l=U,g=l-j,I=await et(i,l,Oa,-1),R=Ze(I)}if(Ne(R,0)!=Jf)throw new Error(Xw);m==_r&&(m=Ne(R,16)),T==_r&&(T=Ne(R,20)),y==_r&&(y=js(R,32)),o==Ir&&(o=js(R,40)),l-=o}}if(l>=i.size&&(g=i.size-l-o-Jr,l=i.size-o-Jr),_!=m)throw new Error(xp);if(l<0)throw new Error(Ia);let L=0,S=await et(i,l,o,T),D=Ze(S);if(o){const E=s.offset-o;if(Ne(D,L)!=Xf&&l!=E){const P=l;l=E,g+=l-P,S=await et(i,l,o,T),D=Ze(S)}}const O=s.offset-l-(i.lastDiskOffset||0);if(o!=O&&O>=0&&(o=O,S=await et(i,l,o,T),D=Ze(S)),l<0||l>=i.size)throw new Error(Ia);const H=it(r,t,"filenameEncoding"),k=it(r,t,"commentEncoding");for(let E=0;E<y;E++){const P=new ib(i,a,r.options);if(Ne(D,L)!=Xf)throw new Error(Jw);ed(P,D,L+6);const I=!!P.bitFlag.languageEncodingFlag,R=L+46,U=R+P.filenameLength,j=U+P.extraFieldLength,M=Ve(D,L+4),Z=M>>8==0,z=M>>8==3,se=S.subarray(R,U),G=Ve(D,L+32),Q=j+G,ee=S.subarray(j,Q),V=I,fe=I,ie=Ne(D,L+38),ae=Z&&(pn(D,L+38)&rp)==rp||z&&(ie>>16&np)==np||se.length&&se[se.length-1]==ip.charCodeAt(0),Pe=z&&(ie>>16&sp)==sp,Oe=Ne(D,L+42)+g;Object.assign(P,{versionMadeBy:M,msDosCompatible:Z,compressedSize:0,uncompressedSize:0,commentLength:G,directory:ae,offset:Oe,diskNumberStart:Ve(D,L+34),internalFileAttributes:Ve(D,L+36),externalFileAttributes:ie,rawFilename:se,filenameUTF8:V,commentUTF8:fe,rawExtraField:S.subarray(U,j),executable:Pe}),P.internalFileAttribute=P.internalFileAttributes,P.externalFileAttribute=P.externalFileAttributes;const Xe=it(r,t,"decodeText")||Ns,tt=V?Ep:H||Sp,kt=fe?Ep:k||Sp;let Ie=Xe(se,tt);Ie===lt&&(Ie=Ns(se,tt));let De=Xe(ee,kt);De===lt&&(De=Ns(ee,kt)),Object.assign(P,{rawComment:ee,filename:Ie,comment:De,directory:ae||Ie.endsWith(ip)}),w=Math.max(Oe,w),td(P,P,D,L+6),P.zipCrypto=P.encrypted&&!P.extraFieldAES;const ft=new bp(P);ft.getData=(v,u)=>P.getData(v,ft,u),L=Q;const{onprogress:Le}=t;if(Le)try{await Le(E+1,y,new bp(P))}catch{}yield ft}const A=it(r,t,"extractPrependedData"),$=it(r,t,"extractAppendedData");return A&&(r.prependedData=w>0?await et(i,0,w):new Uint8Array),r.comment=c?await et(i,p+Jr,c):new Uint8Array,$&&(r.appendedData=h<i.size?await et(i,h,i.size-h):new Uint8Array),!0}async getEntries(t={}){const r=[];for await(const i of this.getEntriesGenerator(t))r.push(i);return r}async close(){}}class ib{constructor(t,r,i){Object.assign(this,{reader:t,config:r,options:i})}async getData(t,r,i={}){const a=this,{reader:s,offset:n,diskNumberStart:o,extraFieldAES:l,compressionMethod:p,config:c,bitFlag:h,signature:m,rawLastModDate:_,uncompressedSize:T,compressedSize:y}=a,g=r.localDirectory={},w=await et(s,n,30,o),L=Ze(w);let S=it(a,i,"password"),D=it(a,i,"rawPassword");const O=it(a,i,"passThrough");if(S=S&&S.length&&S,D=D&&D.length&&D,l&&l.originalCompressionMethod!=x1)throw new Error(vp);if(p!=v1&&p!=b1&&!O)throw new Error(vp);if(Ne(L,0)!=E1)throw new Error(Qw);ed(g,L,4),g.rawExtraField=g.extraFieldLength?await et(s,n+30+g.filenameLength,g.extraFieldLength,o):new Uint8Array,td(a,g,L,4,!0),Object.assign(r,{lastAccessDate:g.lastAccessDate,creationDate:g.creationDate});const H=a.encrypted&&g.encrypted&&!O,k=H&&!l;if(O||(r.zipCrypto=k),H){if(!k&&l.strength===lt)throw new Error(rb);if(!S&&!D)throw new Error(tb)}const A=n+30+g.filenameLength+g.extraFieldLength,$=y,E=s.readable;Object.assign(E,{diskNumberStart:o,offset:A,size:$});const P=it(a,i,"signal"),I=it(a,i,"checkPasswordOnly");I&&(t=new WritableStream),t=$w(t),await ii(t,O?y:T);const{writable:R}=t,{onstart:U,onprogress:j,onend:M}=i,Z={options:{codecType:Uu,password:S,rawPassword:D,zipCrypto:k,encryptionStrength:l&&l.strength,signed:it(a,i,"checkSignature")&&!O,passwordVerification:k&&(h.dataDescriptor?_>>>8&255:m>>>24&255),signature:m,compressed:p!=0&&!O,encrypted:a.encrypted&&!O,useWebWorkers:it(a,i,"useWebWorkers"),useCompressionStream:it(a,i,"useCompressionStream"),transferStreams:it(a,i,"transferStreams"),checkPasswordOnly:I},config:c,streamOptions:{signal:P,size:$,onstart:U,onprogress:j,onend:M}};let z=0;try{({outputSize:z}=await Ew({readable:E,writable:R},Z))}catch(se){if(!I||se.message!=Io)throw se}finally{const se=it(a,i,"preventClose");R.size+=z,!se&&!R.locked&&await R.getWriter().close()}return I?lt:t.getData?t.getData():R}}function ed(e,t,r){const i=e.rawBitFlag=Ve(t,r+2),a=(i&Qf)==Qf,s=Ne(t,r+6);Object.assign(e,{encrypted:a,version:Ve(t,r),bitFlag:{level:(i&D1)>>1,dataDescriptor:(i&ep)==ep,languageEncodingFlag:(i&tp)==tp},rawLastModDate:s,lastModDate:cb(s),filenameLength:Ve(t,r+22),extraFieldLength:Ve(t,r+24)})}function td(e,t,r,i,a){const{rawExtraField:s}=t,n=t.extraField=new Map,o=Ze(new Uint8Array(s));let l=0;try{for(;l<s.length;){const w=Ve(o,l),L=Ve(o,l+2);n.set(w,{type:w,data:s.slice(l+4,l+4+L)}),l+=4+L}}catch{}const p=Ve(r,i+4);Object.assign(t,{signature:Ne(r,i+10),uncompressedSize:Ne(r,i+18),compressedSize:Ne(r,i+14)});const c=n.get(A1);c&&(ab(c,t),t.extraFieldZip64=c);const h=n.get($1);h&&(Pp(h,Ku,zu,t,e),t.extraFieldUnicodePath=h);const m=n.get(R1);m&&(Pp(m,Gu,Vu,t,e),t.extraFieldUnicodeComment=m);const _=n.get(T1);_?(ob(_,t,p),t.extraFieldAES=_):t.compressionMethod=p;const T=n.get(O1);T&&(lb(T,t),t.extraFieldNTFS=T);const y=n.get(L1);y&&(fb(y,t,a),t.extraFieldExtendedTimestamp=y);const g=n.get(I1);g&&(t.extraFieldUSDZ=g)}function ab(e,t){t.zip64=!0;const r=Ze(e.data),i=nb.filter(([a,s])=>t[a]==s);for(let a=0,s=0;a<i.length;a++){const[n,o]=i[a];if(t[n]==o){const l=sb[o];t[n]=e[n]=l.getValue(r,s),s+=l.bytes}else if(e[n])throw new Error(eb)}}function Pp(e,t,r,i,a){const s=Ze(e.data),n=new ni;n.append(a[r]);const o=Ze(new Uint8Array(4));o.setUint32(0,n.get(),!0);const l=Ne(s,1);Object.assign(e,{version:pn(s,0),[t]:Ns(e.data.subarray(5)),valid:!a.bitFlag.languageEncodingFlag&&l==Ne(o,0)}),e.valid&&(i[t]=e[t],i[t+"UTF8"]=!0)}function ob(e,t,r){const i=Ze(e.data),a=pn(i,4);Object.assign(e,{vendorVersion:pn(i,0),vendorId:pn(i,2),strength:a,originalCompressionMethod:r,compressionMethod:Ve(i,5)}),t.compressionMethod=e.compressionMethod}function lb(e,t){const r=Ze(e.data);let i=4,a;try{for(;i<e.data.length&&!a;){const s=Ve(r,i),n=Ve(r,i+2);s==C1&&(a=e.data.slice(i+4,i+4+n)),i+=4+n}}catch{}try{if(a&&a.length==24){const s=Ze(a),n=s.getBigUint64(0,!0),o=s.getBigUint64(8,!0),l=s.getBigUint64(16,!0);Object.assign(e,{rawLastModDate:n,rawLastAccessDate:o,rawCreationDate:l});const p=Da(n),c=Da(o),h=Da(l),m={lastModDate:p,lastAccessDate:c,creationDate:h};Object.assign(e,m),Object.assign(t,m)}}catch{}}function fb(e,t,r){const i=Ze(e.data),a=pn(i,0),s=[],n=[];r?((a&1)==1&&(s.push(lo),n.push(fo)),(a&2)==2&&(s.push(Ju),n.push(Dw)),(a&4)==4&&(s.push(Qu),n.push(Hw))):e.data.length>=5&&(s.push(lo),n.push(fo));let o=1;s.forEach((l,p)=>{if(e.data.length>=o+4){const c=Ne(i,o);t[l]=e[l]=new Date(c*1e3);const h=n[p];e[h]=c}o+=4})}async function pb(e,t,r,i,a){const s=new Uint8Array(4),n=Ze(s);ub(n,0,t);const o=i+a;return await l(i)||await l(Math.min(o,r));async function l(p){const c=r-p,h=await et(e,c,p);for(let m=h.length-i;m>=0;m--)if(h[m]==s[0]&&h[m+1]==s[1]&&h[m+2]==s[2]&&h[m+3]==s[3])return{offset:c+m,buffer:h.slice(m,m+i).buffer}}}function it(e,t,r){return t[r]===lt?e.options[r]:t[r]}function cb(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 Da(e){return new Date(Number(e/BigInt(1e4)-BigInt(116444736e5)))}function pn(e,t){return e.getUint8(t)}function Ve(e,t){return e.getUint16(t,!0)}function Ne(e,t){return e.getUint32(t,!0)}function js(e,t){return Number(e.getBigUint64(t,!0))}function ub(e,t,r){e.setUint32(t,r,!0)}function Ze(e){return new DataView(e.buffer)}let rd;try{rd=typeof document>"u"?require("url").pathToFileURL(__filename).href:ir&&ir.tagName.toUpperCase()==="SCRIPT"&&ir.src||new URL("index.cjs",document.baseURI).href}catch{}Ro({baseURL:rd});kw(Ro);Ro({Deflate:Jg,Inflate:w1});class db{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 Hr(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("/"),s=a.shift();if(!s||!i[s])break;i=i[s],r=a.join("/")}throw new Error(`File not found at ${t}`)}}class ai{constructor(t){this.entries=new Map,this.zipReader=t}static fromStream(t){const r=new kp(new ao(new Hr(t,"archive.zip")));return new ai(r)}static fromArrayBuffer(t){const r=new kp(new ao(new Blob([t])));return new ai(r)}async read(t){const r=await this.getEntry(t),i=await r.getData(new Ow);return new Hr(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 hb{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(s){r.push(s instanceof Error?s:new Error(String(s)))}const i=r.map(a=>a.message).join("; ");throw new Error(`Failed to read ${t} from any filesystem: ${i}`,{cause:r})}}class mb{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=pi(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,s=await fetch(a);if(!s.ok)throw new Error(`Failed to fetch file at ${t}: ${s.statusText}`);const n=s.headers.get("content-length")?parseInt(s.headers.get("content-length"),10):void 0;return new Hr(s.body,t,{filesize:n})}}function Ei(e){const t=e.split(".").shift().replace(/-/g," ");return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}function fr(e){return Object.fromEntries(Object.entries(e).map(([t,r])=>[r,t]))}const yb={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};fr(yb);const _b={host_name:0};fr(_b);const gb={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};fr(gb);const wb={secp256r1:23,secp384r1:24,secp521r1:25,x25519:29,x448:30};fr(wb);const bb={uncompressed:0,ansiX962_compressed_prime:1,ansiX962_compressed_char2:2};fr(bb);const vb={anonymous:0,rsa:1,dsa:2,ecdsa:3};fr(vb);const xb={none:0,md5:1,sha1:2,sha224:3,sha256:4,sha384:5,sha512:6};fr(xb);const Eb={Warning:1,Fatal:2};fr(Eb);const Sb={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};fr(Sb);crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!0,["deriveKey","deriveBits"]);async function oi(e,t){let r;return["GET","HEAD"].includes(e.method)||"body"in t?r=void 0:!e.bodyUsed&&e.body?r=e.body:r=await e.blob(),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,...r&&{duplex:"half"},...t})}async function kb(e){if(!e.body)return[e,e];const[t,r]=e.body.tee();return[await oi(e,{body:t,duplex:"half"}),await oi(e,{body:r,duplex:"half"})]}class Pb extends Error{constructor(t,r,i){super(`Could not fetch ${t} – your network appears to be blocking this request (HTTP ${r}). This often happens on school, university, or corporate networks. Try switching to a different network or using a VPN.`),this.name="FirewallInterferenceError",this.url=t,this.status=r,this.statusText=i}}const Ab="X-Playground-Cors-Proxy";async function Tb(e,t,r,i){var p;let a=typeof e=="string"?new Request(e,t):e;const s=i?new URL(i):null;let n=s?new URL(a.url,s):new URL(a.url);if(n.protocol==="http:"){n.protocol="https:";const c=n.toString();a=await oi(a,{url:c}),n=new URL(c)}if(!r)return await fetch(a);if(s&&n.protocol===s.protocol&&n.hostname===s.hostname&&n.port===s.port&&n.pathname.startsWith(s.pathname))return await fetch(a);const[o,l]=await kb(a);try{return await fetch(o)}catch{const h=((p=new Headers(l.headers).get("x-cors-proxy-allowed-request-headers"))==null?void 0:p.split(","))||[],m=h.includes("authorization")||h.includes("cookie"),_=await oi(l,{url:`${r}${a.url}`,...m&&{credentials:"include"}}),T=await fetch(_,t);if(!T.headers.has(Ab))throw new Pb(a.url,T.status,T.statusText);return T}}class Bv extends TransformStream{constructor(){let t=new Uint8Array(0),r="SCAN_CHUNK_SIZE",i=0;super({transform(a,s){for(t=ih([t,a]);t.length>0;)if(r==="SCAN_CHUNK_SIZE"){if(t.length<3)return;let n=0;for(;n<t.length;){const p=t[n];if(!(p>=48&&p<=57||p>=97&&p<=102||p>=65&&p<=70))break;n++}if(n===0)throw new Error("Invalid chunk size format");if(t.length<n+2)return;if(t[n]!==13||t[n+1]!==10)throw new Error("Invalid chunk size format. Expected CRLF after chunk size");const o=new TextDecoder().decode(t.slice(0,n)),l=parseInt(o,16);if(t=t.slice(n+2),l===0){r="SCAN_FINAL_CHUNK",s.terminate();return}i=l,r="SCAN_CHUNK_DATA"}else if(r==="SCAN_CHUNK_DATA"){const n=Math.min(i,t.length),o=t.slice(0,n);t=t.slice(n),i-=n,s.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"}}})}}const Ob="8.3",nd=async(e,t,r,i=!0)=>{const a=`/tmp/file-${Math.random()}.zip`;if(t instanceof File){const n=t;t=a,await e.writeFile(t,new Uint8Array(await n.arrayBuffer()))}const s=mn({zipPath:t,extractToPath:r,overwriteFiles:i});await e.run({code:`<?php
|
|
91
|
+
function unzip($zipPath, $extractTo, $overwriteFiles = true)
|
|
92
|
+
{
|
|
93
|
+
if (!is_dir($extractTo)) {
|
|
94
|
+
mkdir($extractTo, 0777, true);
|
|
95
|
+
}
|
|
96
|
+
$zip = new ZipArchive;
|
|
97
|
+
$res = $zip->open($zipPath);
|
|
98
|
+
if ($res === TRUE) {
|
|
99
|
+
for ($i = 0; $i < $zip->numFiles; $i++) {
|
|
100
|
+
$filename = $zip->getNameIndex($i);
|
|
101
|
+
$fileinfo = pathinfo($filename);
|
|
102
|
+
$extractFilePath = rtrim($extractTo, '/') . '/' . $filename;
|
|
103
|
+
// Check if file exists and $overwriteFiles is false
|
|
104
|
+
if (!file_exists($extractFilePath) || $overwriteFiles) {
|
|
105
|
+
// Extract file
|
|
106
|
+
$zip->extractTo($extractTo, $filename);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
$zip->close();
|
|
110
|
+
chmod($extractTo, 0777);
|
|
111
|
+
} else {
|
|
112
|
+
$fileSize = file_exists($zipPath) ? filesize($zipPath) : 'unknown';
|
|
113
|
+
throw new Exception("Could not unzip file. Error code: " . $res . ". File size: " . $fileSize . " bytes.");
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
unzip(${s.zipPath}, ${s.extractToPath}, ${s.overwriteFiles});
|
|
117
|
+
`}),await e.fileExists(a)&&await e.unlink(a)};new hn({concurrency:15});const Cb=`Blueprint resource of type "bundled" requires a filesystem.
|
|
118
|
+
|
|
119
|
+
This Blueprint refers to files that should be bundled with it (like images, plugins, or themes), but the filesystem needed to access these files is not available. This usually happens when:
|
|
120
|
+
|
|
121
|
+
1. You're trying to load a Blueprint as a standalone JSON file that was meant to be part of a bundle
|
|
122
|
+
2. The Blueprint was not packaged correctly as a blueprint.zip file
|
|
123
|
+
|
|
124
|
+
To fix this:
|
|
125
|
+
• If you're loading from a URL, make sure all referenced files are accessible relative to the Blueprint file
|
|
126
|
+
• If you're using a blueprint.zip file, ensure it contains all the files referenced in the Blueprint
|
|
127
|
+
• Check that the "resource": "bundled" references in your Blueprint match actual files in your bundle
|
|
128
|
+
|
|
129
|
+
Learn more about Blueprint resources: https://wordpress.github.io/wordpress-playground/blueprints/data-format#resources`;class sd extends Error{constructor(t=Cb){super(t),this.name="BlueprintFilesystemRequiredError"}}class Ws extends Error{constructor(t,r,i){super(t,i),this.name="ResourceDownloadError",this.url=r}}const Lb=["vfs","literal","wordpress.org/themes","wordpress.org/plugins","url","git:directory","bundled","zip"];function $b(e){return e&&typeof e=="object"&&typeof e.resource=="string"&&Lb.includes(e.resource)}function Rb(e){try{return new URL(e).hostname==="github-proxy.com"}catch{return!1}}function Ib(e){let t;try{t=new URL(e)}catch{return null}if(t.hostname!=="github-proxy.com")return null;const r=t.pathname.slice(1);if(r.startsWith("https://github.com/")||r.startsWith("http://github.com/"))return{resource:"url",url:r};const i=t.searchParams,a=i.get("repo");if(!a)return null;const s=i.get("release"),n=i.get("asset");if(s&&n){const T=s==="latest"?"releases/latest/download":`releases/download/${s}`;return{resource:"url",url:`https://github.com/${a}/${T}/${n}`}}let o,l;const p=i.get("pr"),c=i.get("commit"),h=i.get("branch");p?o=`refs/pull/${p}/head`:c?(o=c,l="commit"):s?(o=s,l="tag"):o=h||"HEAD";const m=i.get("directory");return{resource:"zip",inner:{resource:"git:directory",url:`https://github.com/${a}`,ref:o,...l&&{refType:l},...m&&{path:m}}}}class St{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:s,gitAdditionalHeadersCallback:n}){if(t.resource==="url"&&Rb(t.url)){const l=Ib(t.url);l&&(console.warn(`[Blueprints] github-proxy.com is deprecated and will stop working soon. The URL "${t.url}" has been automatically converted to a ${l.resource} resource. Please update your Blueprint to use native resource types. See: https://wordpress.github.io/wordpress-playground/blueprints/steps/resources`),t=l)}let o;switch(t.resource){case"vfs":o=new Db(t,i);break;case"literal":o=new Hb(t,i);break;case"wordpress.org/themes":o=new Mb(t,i);break;case"wordpress.org/plugins":o=new qb(t,i);break;case"url":o=new Ub(t,i,{corsProxy:a});break;case"git:directory":o=new Nb(t,i,{corsProxy:a,additionalHeaders:n});break;case"literal:directory":o=new Wb(t,i);break;case"bundled":if(!s)throw new sd;o=new Gb(t,s,i);break;case"zip":{const l=St.create(t.inner,{semaphore:r,progress:i,corsProxy:a,streamBundledFile:s,gitAdditionalHeadersCallback:n});o=new Vb(t,l,i);break}default:throw new Error(`Unknown resource type: ${t.resource}`)}return r&&(o=new zb(o,r)),new Kb(o)}}class id extends St{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 Db extends St{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 Hb extends St{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 Bo extends St{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 s=await Tb(t,void 0,this.corsProxy,await((i=this.playground)==null?void 0:i.absoluteUrl));if(!s.ok)throw new Ws(`Could not download "${t}"`,t);if(s=await Jd(s,((a=this.progress)==null?void 0:a.loadingListener)??Bb),s.status!==200)throw new Ws(`Could not download "${t}"`,t);const n=this.name||Fb(s.headers.get("content-disposition")||"")||encodeURIComponent(t);return new File([await s.blob()],n)}catch(s){throw new Ws(`Could not download "${t}".
|
|
130
|
+
|
|
131
|
+
Confirm that the URL is correct, the server is reachable, and the file isactually served at that URL. Original error:
|
|
132
|
+
${s}`,t,{cause:s})}}get caption(){return`Downloading ${this.name}`}get name(){try{return new URL(this.getURL(),"http://example.com").pathname.split("/").pop()}catch{return this.getURL()}}get isAsync(){return!0}}function Fb(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 Bb=()=>{};class Ub extends Bo{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|raw)\/(?<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 Nb extends St{constructor(t,r,i){super(),this.reference=t,this._progress=r,this.options=i}async resolve(){var i,a,s;const t=((a=(i=this.options)==null?void 0:i.additionalHeaders)==null?void 0:a.call(i,this.reference.url))??{},r=(s=this.options)!=null&&s.corsProxy?`${this.options.corsProxy}${this.reference.url}`:this.reference.url;try{const n=await xg(r,{value:this.reference.ref,type:this.reference.refType??"infer"},t),o=await vg(r,n,t),l=(this.reference.path??"").replace(/^\/+/,""),p=Dg(o,l),c=await wg(r,n,p,{withObjects:this.reference[".git"],additionalHeaders:t});let h=c.files;return h=jb(h,m=>m.substring(l.length).replace(/^\/+/,"")),this.reference[".git"]&&(h={...await Ig({repoUrl:this.reference.url,commitHash:n,ref:this.reference.ref,refType:this.reference.refType,objects:c.objects??[],fileOids:c.fileOids??{},pathPrefix:l}),...h}),{name:this.filename,files:h}}catch(n){throw n instanceof qn?new qn(this.reference.url,n.status):n}}get filename(){return this.name.replaceAll(/[^a-zA-Z0-9-.]/g,"-").replaceAll(/-+/g,"-").replace(/^[^a-zA-Z0-9]+|[^a-zA-Z0-9]+$/g,"")||qs()}get name(){var t;return[this.reference.url,this.reference.ref?`(${this.reference.ref})`:"",(t=this.reference.path)!=null&&t.replace(/^\/+/,"")?`at ${this.reference.path}`:""].filter(r=>r.length>0).join(" ")}}function jb(e,t){return Object.fromEntries(Object.entries(e).map(([r,i])=>[t(r),i]))}class Wb extends St{constructor(t,r){super(),this.reference=t,this._progress=r}async resolve(){return this.reference}get name(){return this.reference.name}}class Mb extends Bo{constructor(t,r){super(r),this.resource=t}get name(){return Ei(this.resource.slug)}getURL(){return`https://downloads.wordpress.org/theme/${ad(this.resource.slug)}`}}class qb extends Bo{constructor(t,r){super(r),this.resource=t}get name(){return Ei(this.resource.slug)}getURL(){return`https://downloads.wordpress.org/plugin/${ad(this.resource.slug)}`}}function ad(e){return!e||e.endsWith(".zip")?e:e+".latest-stable.zip"}class Kb extends id{async resolve(){return this.promise||(this.promise=this.resource.resolve()),this.promise}}class zb extends id{constructor(t,r){super(t),this.semaphore=r}async resolve(){return this.isAsync?this.semaphore.run(()=>this.resource.resolve()):this.resource.resolve()}}class Gb extends St{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),s=a.filesize;if(!s)return(r=this.progress)==null||r.set(100),a;const n=Hp(a.stream(),s,o=>{var l;(l=this.progress)==null||l.set(o.detail.loaded/o.detail.total*100)});return new Hr(n,this.name,{filesize:s})}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.
|
|
133
|
+
|
|
134
|
+
Error details: ${a instanceof Error?a.message:String(a)}`,{cause:a})}}get name(){return this.resource.path.split("/").pop()||""}get isAsync(){return!0}}class Vb extends St{constructor(t,r,i){super(),this.reference=t,this.innerResource=r,this._progress=i}async resolve(){var s,n;(s=this.progress)==null||s.setCaption(`Creating ZIP: ${this.name}`);const t=await this.innerResource.resolve();let r;t instanceof File?r=[t]:r=Zb(t.files,t.name);const i=wh(r),a=await uh(this.name,i);return(n=this.progress)==null||n.set(100),a}get name(){if(this.reference.name)return this.reference.name;const t=this.innerResource.name;return t.endsWith(".zip")?t:`${t}.zip`}get isAsync(){return!0}}function Zb(e,t){const r=[];function i(a,s){for(const[n,o]of Object.entries(a)){const l=s?`${s}/${n}`:n;o instanceof Uint8Array?r.push(new File([o],`${t}/${l}`)):typeof o=="string"?r.push(new File([new TextEncoder().encode(o)],`${t}/${l}`)):i(o,l)}}return i(e,""),r}const Uo=async(e,{pluginPath:t,pluginName:r},i)=>{i==null||i.tracker.setCaption(`Activating ${r||t}`);const a=await e.documentRoot,s=await e.run({code:`<?php
|
|
117
135
|
define( 'WP_ADMIN', true );
|
|
118
136
|
require_once( getenv('DOCROOT') . "/wp-load.php" );
|
|
119
137
|
require_once( getenv('DOCROOT') . "/wp-admin/includes/plugin.php" );
|
|
@@ -143,27 +161,11 @@ Error details: ${a instanceof Error?a.message:String(a)}`,{cause:a})}}get name()
|
|
|
143
161
|
} else if ( false === $response ) {
|
|
144
162
|
die( "The activatePlugin step wasn't able to find the plugin $plugin_path." );
|
|
145
163
|
}
|
|
146
|
-
`,env:{PLUGIN_PATH:t,DOCROOT:a}});s.text&&Te.warn(`Plugin ${t} activation printed the following bytes: ${s.text}`);const
|
|
164
|
+
`,env:{PLUGIN_PATH:t,DOCROOT:a}});s.text&&Te.warn(`Plugin ${t} activation printed the following bytes: ${s.text}`);const o=((await e.run({code:`<?php
|
|
147
165
|
ob_start();
|
|
148
166
|
require_once( getenv( 'DOCROOT' ) . "/wp-load.php" );
|
|
149
167
|
|
|
150
|
-
|
|
151
|
-
* Extracts the relative plugin path from either an absolute or relative plugin path.
|
|
152
|
-
*
|
|
153
|
-
* Absolute paths starting with plugin directory (e.g., '/wordpress/wp-content/plugins/test-plugin/index.php')
|
|
154
|
-
* should be converted to relative paths (e.g., 'test-plugin/index.php')
|
|
155
|
-
*
|
|
156
|
-
* Directories should finish with a trailing slash to ensure we match the full plugin directory name.
|
|
157
|
-
*
|
|
158
|
-
* Examples:
|
|
159
|
-
* - '/wordpress/wp-content/plugins/test-plugin/index.php' → 'test-plugin/index.php'
|
|
160
|
-
* - '/wordpress/wp-content/plugins/test-plugin/' → 'test-plugin/'
|
|
161
|
-
* - '/wordpress/wp-content/plugins/test-plugin' → 'test-plugin/'
|
|
162
|
-
* - 'test-plugin/index.php' → 'test-plugin/index.php'
|
|
163
|
-
* - 'test-plugin/' → 'test-plugin/'
|
|
164
|
-
* - 'test-plugin' → 'test-plugin/'
|
|
165
|
-
*/
|
|
166
|
-
$plugin_directory = WP_PLUGIN_DIR . '/';
|
|
168
|
+
$plugin_directory = rtrim( WP_PLUGIN_DIR, '/' ) . '/';
|
|
167
169
|
$relative_plugin_path = getenv( 'PLUGIN_PATH' );
|
|
168
170
|
if (strpos($relative_plugin_path, $plugin_directory) === 0) {
|
|
169
171
|
$relative_plugin_path = substr($relative_plugin_path, strlen($plugin_directory));
|
|
@@ -174,14 +176,25 @@ Error details: ${a instanceof Error?a.message:String(a)}`,{cause:a})}}get name()
|
|
|
174
176
|
}
|
|
175
177
|
|
|
176
178
|
$active_plugins = get_option( 'active_plugins' );
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
ob_end_clean();
|
|
180
|
-
die( 'true' );
|
|
181
|
-
}
|
|
179
|
+
if ( ! is_array( $active_plugins ) ) {
|
|
180
|
+
$active_plugins = array();
|
|
182
181
|
}
|
|
183
|
-
|
|
184
|
-
|
|
182
|
+
ob_end_clean();
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Use a shutdown function to ensure the activation-related output comes
|
|
186
|
+
* last in stdout.
|
|
187
|
+
*/
|
|
188
|
+
register_shutdown_function( function() use ( $relative_plugin_path, $active_plugins ) {
|
|
189
|
+
foreach ( $active_plugins as $plugin ) {
|
|
190
|
+
if ( substr( $plugin, 0, strlen( $relative_plugin_path ) ) === $relative_plugin_path ) {
|
|
191
|
+
die('{"success": true}');
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
die('{"success": false}');
|
|
196
|
+
});
|
|
197
|
+
`,env:{DOCROOT:a,PLUGIN_PATH:t}})).text??"").trim();if(!o.endsWith('{"success": true}'))throw o!=='{"success": false}'&&Te.debug(o),new Error(`Plugin ${t} could not be activated - WordPress exited with exit code ${s.exitCode}. Inspect the "debug" logs in the console for more details. Output headers: ${JSON.stringify(s.headers,null,2)}`)},No=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(`
|
|
185
198
|
Couldn't activate theme ${t}.
|
|
186
199
|
Theme not found at the provided theme path: ${a}.
|
|
187
200
|
Check the theme path to ensure it's correct.
|
|
@@ -200,7 +213,7 @@ Error details: ${a instanceof Error?a.message:String(a)}`,{cause:a})}}get name()
|
|
|
200
213
|
throw new Exception( 'Theme ' . getenv('themeFolderName') . ' could not be activated.' );
|
|
201
214
|
}
|
|
202
215
|
die('Theme activated successfully');
|
|
203
|
-
`,env:{docroot:i,themeFolderName:t}});if(s.text!=="Theme activated successfully")throw Te.debug(s),new Error(`Theme ${t} could not be activated
|
|
216
|
+
`,env:{docroot:i,themeFolderName:t}});if(s.text!=="Theme activated successfully")throw Te.debug(s),new Error(`Theme ${t} could not be activated - WordPress exited with exit code ${s.exitCode}. Inspect the "debug" logs in the console for more details. Output headers: ${JSON.stringify(s.headers,null,2)}`)},od=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'"))&&(Te.error(`
|
|
204
217
|
It looks like you're trying to load WordPress using a relative path 'wordpress/wp-load.php'.
|
|
205
218
|
|
|
206
219
|
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
@@ -214,7 +227,7 @@ Instead of: require_once 'wordpress/wp-load.php';
|
|
|
214
227
|
Use: require_once '/wordpress/wp-load.php';
|
|
215
228
|
|
|
216
229
|
This will ensure your code works reliably regardless of the current working directory.
|
|
217
|
-
`.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})},
|
|
230
|
+
`.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})},ld=async(e,{options:t})=>await e.run(t),li=async(e,{path:t})=>{t.startsWith("/")||(Te.error(`
|
|
218
231
|
The rm() step in your Blueprint refers to a relative path.
|
|
219
232
|
|
|
220
233
|
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
@@ -228,49 +241,214 @@ Instead of: rm({ path: 'wordpress/wp-load.php' });
|
|
|
228
241
|
Use: rm({ path: '/wordpress/wp-load.php' });
|
|
229
242
|
|
|
230
243
|
This will ensure your code works reliably regardless of the current working directory.
|
|
231
|
-
`.trim()),t=`/${t}`),await e.unlink(t)},
|
|
232
|
-
|
|
244
|
+
`.trim()),t=`/${t}`),await e.unlink(t)},Yb=`<?php
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Naively splits an SQL string into a sequence of queries. It
|
|
248
|
+
* streams the data so you can process very large chunks of SQL
|
|
249
|
+
* without running out of memory.
|
|
250
|
+
*
|
|
251
|
+
* This class is **naive** because it doesn't understand what a
|
|
252
|
+
* valid query is. The lexer does not provide a way to distinguish
|
|
253
|
+
* between a syntax error and an incomplete input yet. Lacking this
|
|
254
|
+
* information, we assume that no SQL query is larger than 2MB and,
|
|
255
|
+
* failing to extract a query from a 2MB buffer, we fail. This heuristic
|
|
256
|
+
* is often sufficient, but may fail in pathological cases.
|
|
257
|
+
*
|
|
258
|
+
* Usage:
|
|
259
|
+
*
|
|
260
|
+
* $stream = new WP_MySQL_Naive_Query_Stream();
|
|
261
|
+
* $stream->append_sql( 'SELECT id FROM users; SELECT * FROM posts;' );
|
|
262
|
+
* while ( $stream->next_query() ) {
|
|
263
|
+
* $sql_string = $stream->get_query();
|
|
264
|
+
* // Process the query.
|
|
265
|
+
* }
|
|
266
|
+
* $stream->append_sql( 'CREATE TABLE users (id INT, name VARCHAR(255));' );
|
|
267
|
+
* while ( $stream->next_query() ) {
|
|
268
|
+
* $sql_string = $stream->get_query();
|
|
269
|
+
* // Process the query.
|
|
270
|
+
* }
|
|
271
|
+
* $stream->mark_input_complete();
|
|
272
|
+
* $stream->next_query(); // returns false
|
|
273
|
+
*/
|
|
274
|
+
class WP_MySQL_Naive_Query_Stream {
|
|
233
275
|
|
|
234
|
-
|
|
276
|
+
private $sql_buffer = '';
|
|
277
|
+
private $input_complete = false;
|
|
278
|
+
private $state = true;
|
|
279
|
+
private $last_query = false;
|
|
280
|
+
|
|
281
|
+
const STATE_QUERY = 'valid';
|
|
282
|
+
const STATE_SYNTAX_ERROR = 'syntax_error';
|
|
283
|
+
const STATE_PAUSED_ON_INCOMPLETE_INPUT = 'paused_on_incomplete_input';
|
|
284
|
+
const STATE_FINISHED = 'finished';
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* The maximum size of the buffer to store the SQL input. We don't
|
|
288
|
+
* have enough information from the lexer to distinguish between
|
|
289
|
+
* an incomplete input and a syntax error so we use a heuristic –
|
|
290
|
+
* if we've accumulated more than this amount of SQL input, we assume
|
|
291
|
+
* it's a syntax error. That's why this class is called a "naive" query
|
|
292
|
+
* stream.
|
|
293
|
+
*/
|
|
294
|
+
const MAX_SQL_BUFFER_SIZE = 1024 * 1024 * 15;
|
|
295
|
+
|
|
296
|
+
public function __construct() {}
|
|
297
|
+
|
|
298
|
+
public function append_sql( string $sql ) {
|
|
299
|
+
if($this->input_complete) {
|
|
300
|
+
return false;
|
|
301
|
+
}
|
|
302
|
+
$this->sql_buffer .= $sql;
|
|
303
|
+
$this->state = self::STATE_QUERY;
|
|
304
|
+
return true;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
public function is_paused_on_incomplete_input(): bool {
|
|
308
|
+
return $this->state === self::STATE_PAUSED_ON_INCOMPLETE_INPUT;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
public function mark_input_complete() {
|
|
312
|
+
$this->input_complete = true;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
public function next_query() {
|
|
316
|
+
$this->last_query = false;
|
|
317
|
+
if($this->state === self::STATE_PAUSED_ON_INCOMPLETE_INPUT) {
|
|
318
|
+
return false;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
$result = $this->do_next_query();
|
|
322
|
+
if(!$result && strlen($this->sql_buffer) > self::MAX_SQL_BUFFER_SIZE) {
|
|
323
|
+
$this->state = self::STATE_SYNTAX_ERROR;
|
|
324
|
+
return false;
|
|
325
|
+
}
|
|
326
|
+
return $result;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
private function do_next_query() {
|
|
330
|
+
$query = [];
|
|
331
|
+
$lexer = new WP_MySQL_Lexer( $this->sql_buffer );
|
|
332
|
+
while ( $lexer->next_token() ) {
|
|
333
|
+
$token = $lexer->get_token();
|
|
334
|
+
$query[] = $token;
|
|
335
|
+
if ( $token->id === WP_MySQL_Lexer::SEMICOLON_SYMBOL ) {
|
|
336
|
+
// Got a complete query!
|
|
337
|
+
break;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
// @TODO: expose this method from the lexer
|
|
342
|
+
// if($lexer->get_state() === WP_MySQL_Lexer::STATE_SYNTAX_ERROR) {
|
|
343
|
+
// return false;
|
|
344
|
+
// }
|
|
345
|
+
|
|
346
|
+
if(!count($query)) {
|
|
347
|
+
if ( $this->input_complete ) {
|
|
348
|
+
$this->state = self::STATE_FINISHED;
|
|
349
|
+
} else {
|
|
350
|
+
$this->state = self::STATE_PAUSED_ON_INCOMPLETE_INPUT;
|
|
351
|
+
}
|
|
352
|
+
return false;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
// The last token either needs to end with a semicolon, or be the
|
|
356
|
+
// last token in the input.
|
|
357
|
+
$last_token = $query[count($query) - 1];
|
|
358
|
+
if (
|
|
359
|
+
$last_token->id !== WP_MySQL_Lexer::SEMICOLON_SYMBOL &&
|
|
360
|
+
! $this->input_complete
|
|
361
|
+
) {
|
|
362
|
+
$this->state = self::STATE_PAUSED_ON_INCOMPLETE_INPUT;
|
|
363
|
+
return false;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
// See if the query has any meaningful tokens. We don't want to return
|
|
367
|
+
// to give the caller a comment disguised as a query.
|
|
368
|
+
$has_meaningful_tokens = false;
|
|
369
|
+
foreach($query as $token) {
|
|
370
|
+
if (
|
|
371
|
+
$token->id !== WP_MySQL_Lexer::WHITESPACE &&
|
|
372
|
+
$token->id !== WP_MySQL_Lexer::COMMENT &&
|
|
373
|
+
$token->id !== WP_MySQL_Lexer::MYSQL_COMMENT_START &&
|
|
374
|
+
$token->id !== WP_MySQL_Lexer::MYSQL_COMMENT_END &&
|
|
375
|
+
$token->id !== WP_MySQL_Lexer::EOF
|
|
376
|
+
) {
|
|
377
|
+
$has_meaningful_tokens = true;
|
|
378
|
+
break;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
if(!$has_meaningful_tokens) {
|
|
382
|
+
if ( $this->input_complete ) {
|
|
383
|
+
$this->state = self::STATE_FINISHED;
|
|
384
|
+
} else {
|
|
385
|
+
$this->state = self::STATE_PAUSED_ON_INCOMPLETE_INPUT;
|
|
386
|
+
}
|
|
387
|
+
return false;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
// Remove the query from the input buffer and return it.
|
|
391
|
+
$last_byte = $last_token->start + $last_token->length;
|
|
392
|
+
$query = substr($this->sql_buffer, 0, $last_byte);
|
|
393
|
+
$this->sql_buffer = substr($this->sql_buffer, $last_byte);
|
|
394
|
+
$this->last_query = $query;
|
|
395
|
+
$this->state = self::STATE_QUERY;
|
|
396
|
+
return true;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
public function get_query() {
|
|
400
|
+
return $this->last_query;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
public function get_state() {
|
|
404
|
+
return $this->state;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
}`,fd=async(e,{sql:t},r)=>{r==null||r.tracker.setCaption("Executing SQL Queries");const i=`/tmp/${qs()}.sql`,a=`/tmp/${qs()}.php`;await e.writeFile(i,new Uint8Array(await t.arrayBuffer())),await e.writeFile(a,new TextEncoder().encode(Yb));const s=await e.documentRoot,n=mn({docroot:s,sqlFilename:i,streamClassFilename:a}),o=await e.run({code:`<?php
|
|
408
|
+
define('WP_SQLITE_AST_DRIVER', true);
|
|
409
|
+
require_once ${n.docroot} . '/wp-load.php';
|
|
410
|
+
|
|
411
|
+
// Load WP_MySQL_Naive_Query_Stream from the bundled file
|
|
412
|
+
require_once ${n.streamClassFilename};
|
|
235
413
|
|
|
236
414
|
global $wpdb;
|
|
237
415
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
416
|
+
do_action('run_sql_step');
|
|
417
|
+
|
|
418
|
+
$stream = new WP_MySQL_Naive_Query_Stream();
|
|
419
|
+
|
|
420
|
+
// Open the SQL file for streaming
|
|
421
|
+
$handle = fopen(${n.sqlFilename}, 'r');
|
|
422
|
+
if (!$handle) {
|
|
423
|
+
throw new Exception('Failed to open SQL file');
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
// Read and process the file in 8KB chunks
|
|
427
|
+
$chunk_size = 8192;
|
|
428
|
+
while (!feof($handle)) {
|
|
429
|
+
$chunk = fread($handle, $chunk_size);
|
|
430
|
+
if ($chunk === false) {
|
|
431
|
+
break;
|
|
242
432
|
}
|
|
243
433
|
|
|
244
|
-
$
|
|
434
|
+
$stream->append_sql($chunk);
|
|
435
|
+
|
|
436
|
+
// Process any complete queries in the stream
|
|
437
|
+
while ($stream->next_query()) {
|
|
438
|
+
$query = $stream->get_query();
|
|
439
|
+
$wpdb->query($query);
|
|
440
|
+
}
|
|
245
441
|
}
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
$filename = $zip->getNameIndex($i);
|
|
257
|
-
$fileinfo = pathinfo($filename);
|
|
258
|
-
$extractFilePath = rtrim($extractTo, '/') . '/' . $filename;
|
|
259
|
-
// Check if file exists and $overwriteFiles is false
|
|
260
|
-
if (!file_exists($extractFilePath) || $overwriteFiles) {
|
|
261
|
-
// Extract file
|
|
262
|
-
$zip->extractTo($extractTo, $filename);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
$zip->close();
|
|
266
|
-
chmod($extractTo, 0777);
|
|
267
|
-
} else {
|
|
268
|
-
$fileSize = file_exists($zipPath) ? filesize($zipPath) : 'unknown';
|
|
269
|
-
throw new Exception("Could not unzip file. Error code: " . $res . ". File size: " . $fileSize . " bytes.");
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
unzip(${s.zipPath}, ${s.extractToPath}, ${s.overwriteFiles});
|
|
273
|
-
`}),await e.fileExists(a)&&await e.unlink(a)},bb=`<?php
|
|
442
|
+
|
|
443
|
+
fclose($handle);
|
|
444
|
+
|
|
445
|
+
// Mark input as complete and process any remaining queries
|
|
446
|
+
$stream->mark_input_complete();
|
|
447
|
+
while ($stream->next_query()) {
|
|
448
|
+
$query = $stream->get_query();
|
|
449
|
+
$wpdb->query($query);
|
|
450
|
+
}
|
|
451
|
+
`});return await li(e,{path:i}),await li(e,{path:a}),o},pd=async(e,{request:t})=>{Te.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 Te.warn("WordPress response was",{response:r}),new Error(`Request failed with status ${r.httpStatusCode}`);return r},Xb=`<?php
|
|
274
452
|
|
|
275
453
|
/**
|
|
276
454
|
* Rewrites the wp-config.php file to ensure specific constants are defined
|
|
@@ -615,8 +793,8 @@ function skip_whitespace($tokens) {
|
|
|
615
793
|
}
|
|
616
794
|
return $output;
|
|
617
795
|
}
|
|
618
|
-
`;async function
|
|
619
|
-
${
|
|
796
|
+
`;async function cd(e,t,r,i="rewrite"){const a=mn({wpConfigPath:t,constants:r,whenAlreadyDefined:i});if((await e.run({code:`<?php ob_start(); ?>
|
|
797
|
+
${Xb}
|
|
620
798
|
$wp_config_path = ${a.wpConfigPath};
|
|
621
799
|
$wp_config = file_get_contents($wp_config_path);
|
|
622
800
|
$new_wp_config = rewrite_wp_config_to_define_constants($wp_config, ${a.constants}, ${a.whenAlreadyDefined});
|
|
@@ -624,26 +802,26 @@ function skip_whitespace($tokens) {
|
|
|
624
802
|
ob_clean();
|
|
625
803
|
echo false === $return_value ? '0' : '1';
|
|
626
804
|
ob_end_flush();
|
|
627
|
-
`})).text!=="1")throw new Error("Failed to rewrite constants in wp-config.php.")}async function
|
|
628
|
-
include ${
|
|
629
|
-
$site_options = ${
|
|
805
|
+
`})).text!=="1")throw new Error("Failed to rewrite constants in wp-config.php.")}async function Jb(e,t){const r=Ae(t,"wp-config.php"),i={DB_NAME:"wordpress"};!e.fileExists(r)&&e.fileExists(Ae(t,"wp-config-sample.php"))&&await e.writeFile(r,await e.readFileAsBuffer(Ae(t,"wp-config-sample.php"))),await cd(e,r,i,"skip")}const Si=async(e,{consts:t,method:r="define-before-run"})=>{switch(r){case"define-before-run":await Qb(e,t);break;case"rewrite-wp-config":{const i=await e.documentRoot,a=Ae(i,"/wp-config.php");await cd(e,a,t,"rewrite");break}default:throw new Error(`Invalid method: ${r}`)}};async function Qb(e,t){for(const r in t)await e.defineConstant(r,t[r])}const jo=async(e,{options:t})=>{const r=await e.documentRoot;await e.run({code:`<?php
|
|
806
|
+
include ${mt(r)} . '/wp-load.php';
|
|
807
|
+
$site_options = ${mt(t)};
|
|
630
808
|
foreach($site_options as $name => $value) {
|
|
631
809
|
update_option($name, $value);
|
|
632
810
|
}
|
|
633
811
|
echo "Success";
|
|
634
|
-
`})},
|
|
635
|
-
include ${
|
|
636
|
-
$meta = ${
|
|
812
|
+
`})},ud=async(e,{meta:t,userId:r})=>{const i=await e.documentRoot;await e.run({code:`<?php
|
|
813
|
+
include ${mt(i)} . '/wp-load.php';
|
|
814
|
+
$meta = ${mt(t)};
|
|
637
815
|
foreach($meta as $name => $value) {
|
|
638
|
-
update_user_meta(${
|
|
816
|
+
update_user_meta(${mt(r)}, $name, $value);
|
|
639
817
|
}
|
|
640
|
-
`})},
|
|
818
|
+
`})},Wo="/tmp/wp-cli.phar",ev={resource:"url",url:"https://playground.wordpress.net/wp-cli.phar"},dd=async(e,t=Wo)=>{if(!await e.fileExists(t))throw new Error(`wp-cli.phar not found at ${t}.
|
|
641
819
|
You can enable wp-cli support by adding "wp-cli" to the list of extra libraries in your blueprint as follows:
|
|
642
820
|
{
|
|
643
821
|
"extraLibraries": [ "wp-cli" ]
|
|
644
822
|
}
|
|
645
823
|
Read more about it in the documentation.
|
|
646
|
-
https://wordpress.github.io/wordpress-playground/blueprints/data-format#extra-libraries`)},
|
|
824
|
+
https://wordpress.github.io/wordpress-playground/blueprints/data-format#extra-libraries`)},Mo=async(e,{command:t,wpCliPath:r=Wo})=>{await dd(e,r);let i;if(typeof t=="string"?(t=t.trim(),i=tv(t)):i=t,i.shift()!=="wp")throw new Error('The first argument must be "wp".');let s=!1;const n=i.map(p=>p.startsWith("wordpress/")?(s=!0,`/${p}`):p);s&&Te.error(`
|
|
647
825
|
The wp-cli step in your Blueprint refers to a relative path.
|
|
648
826
|
|
|
649
827
|
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
@@ -681,7 +859,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
681
859
|
$GLOBALS['argv'] = array_merge([
|
|
682
860
|
"/tmp/wp-cli.phar",
|
|
683
861
|
"--path=${o}"
|
|
684
|
-
], ${
|
|
862
|
+
], ${mt(n)});
|
|
685
863
|
|
|
686
864
|
// Provide stdin, stdout, stderr streams outside of
|
|
687
865
|
// the CLI SAPI.
|
|
@@ -689,8 +867,8 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
689
867
|
define('STDOUT', fopen('php://stdout', 'wb'));
|
|
690
868
|
define('STDERR', fopen('php://stderr', 'wb'));
|
|
691
869
|
|
|
692
|
-
require( ${
|
|
693
|
-
`);const
|
|
870
|
+
require( ${mt(r)} );
|
|
871
|
+
`);const l=await e.run({scriptPath:Ae(o,"run-cli.php")});if(l.errors)throw new Error(l.errors);return l};function tv(e){let i=0,a="";const s=[];let n="";for(let o=0;o<e.length;o++){const l=e[o];i===0?l==='"'||l==="'"?(i=1,a=l):l.match(/\s/)?(n&&s.push(n),n=""):n+=l:i===1&&(l==="\\"?(o++,n+=e[o]):l===a?(i=0,a=""):n+=l)}return n&&s.push(n),s}const hd=async(e,{wpCliPath:t})=>{await dd(e,t),await Si(e,{consts:{WP_ALLOW_MULTISITE:1}});const r=new URL(await e.absoluteUrl);if(r.port!==""){let s=`The current host is ${r.host}, but WordPress multisites do not support custom ports.`;throw r.hostname==="localhost"&&(s+=" For development, you can set up a playground.test domain using the instructions at https://wordpress.github.io/wordpress-playground/contributing/code."),new Error(s)}const i=r.pathname.replace(/\/$/,"")+"/",a=`${r.protocol}//${r.hostname}${i}`;await jo(e,{options:{siteurl:a,home:a}}),await Mo(e,{command:`wp core multisite-convert --base="${i}"`})},md=async(e,{fromPath:t,toPath:r})=>{(!t.startsWith("/")||!r.startsWith("/"))&&Te.error(`
|
|
694
872
|
The cp() step in your Blueprint refers to a relative path.
|
|
695
873
|
|
|
696
874
|
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
@@ -704,7 +882,7 @@ Instead of: cp({ fromPath: 'wordpress/wp-load.php', toPath: 'wordpress/wp-load.
|
|
|
704
882
|
Use: cp({ fromPath: '/wordpress/wp-load.php', toPath: '/wordpress/wp-load.php' });
|
|
705
883
|
|
|
706
884
|
This will ensure your code works reliably regardless of the current working directory.
|
|
707
|
-
`.trim()),t.startsWith("/")||(t=`/${t}`),r.startsWith("/")||(r=`/${r}`),await e.writeFile(r,await e.readFileAsBuffer(t))},
|
|
885
|
+
`.trim()),t.startsWith("/")||(t=`/${t}`),r.startsWith("/")||(r=`/${r}`),await e.writeFile(r,await e.readFileAsBuffer(t))},yd=async(e,{fromPath:t,toPath:r})=>{(!t.startsWith("/")||!r.startsWith("/"))&&Te.error(`
|
|
708
886
|
The mv() step in your Blueprint refers to a relative path.
|
|
709
887
|
|
|
710
888
|
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
@@ -718,7 +896,7 @@ Instead of: mv({ fromPath: 'wordpress/wp-load.php', toPath: 'wordpress/wp-load.
|
|
|
718
896
|
Use: mv({ fromPath: '/wordpress/wp-load.php', toPath: '/wordpress/wp-load.php' });
|
|
719
897
|
|
|
720
898
|
This will ensure your code works reliably regardless of the current working directory.
|
|
721
|
-
`.trim()),t.startsWith("/")||(t=`/${t}`),r.startsWith("/")||(r=`/${r}`),await e.mv(t,r)},
|
|
899
|
+
`.trim()),t.startsWith("/")||(t=`/${t}`),r.startsWith("/")||(r=`/${r}`),await e.mv(t,r)},_d=async(e,{path:t})=>{t.startsWith("/")||Te.error(`
|
|
722
900
|
The mkdir() step in your Blueprint refers to a relative path.
|
|
723
901
|
|
|
724
902
|
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
@@ -732,7 +910,7 @@ Instead of: mkdir({ path: 'wordpress/my-new-folder' });
|
|
|
732
910
|
Use: mkdir({ path: '/wordpress/my-new-folder' });
|
|
733
911
|
|
|
734
912
|
This will ensure your code works reliably regardless of the current working directory.
|
|
735
|
-
`.trim()),await e.mkdir(t)},
|
|
913
|
+
`.trim()),await e.mkdir(t)},gd=async(e,{path:t})=>{t.startsWith("/")||(Te.error(`
|
|
736
914
|
The rmdir() step in your Blueprint refers to a relative path.
|
|
737
915
|
|
|
738
916
|
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
@@ -746,7 +924,7 @@ Instead of: rmdir({ path: 'wordpress/wp-load.php' });
|
|
|
746
924
|
Use: rmdir({ path: '/wordpress/wp-load.php' });
|
|
747
925
|
|
|
748
926
|
This will ensure your code works reliably regardless of the current working directory.
|
|
749
|
-
`.trim()),t=`/${t}`),await e.rmdir(t)},
|
|
927
|
+
`.trim()),t=`/${t}`),await e.rmdir(t)},ki=async(e,{path:t,data:r})=>{r instanceof File&&(r=new Uint8Array(await r.arrayBuffer())),t.startsWith("/")||(Te.error(`
|
|
750
928
|
The writeFile() step in your Blueprint refers to a relative path.
|
|
751
929
|
|
|
752
930
|
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
@@ -760,7 +938,7 @@ Instead of: writeFile({ path: 'wordpress/wp-load.php', data: '<?php echo "Hello
|
|
|
760
938
|
Use: writeFile({ path: '/wordpress/wp-load.php', data: '<?php echo "Hello World!"; ?>' });
|
|
761
939
|
|
|
762
940
|
This will ensure your code works reliably regardless of the current working directory.
|
|
763
|
-
`.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)},
|
|
941
|
+
`.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)},wd=async(e,{writeToPath:t,filesTree:r})=>{t.startsWith("/")||(Te.error(`
|
|
764
942
|
The writeFiles() step in your Blueprint refers to a relative path.
|
|
765
943
|
|
|
766
944
|
Playground recently changed the working directory from '/' to '/wordpress' to better mimic
|
|
@@ -774,7 +952,7 @@ Instead of: writeFiles({ writeToPath: 'wordpress/wp-content/plugins/my-plugin',
|
|
|
774
952
|
Use: writeFiles({ writeToPath: '/wordpress/wp-content/plugins/my-plugin', filesTree: { name: 'style.css': 'a { color: red; }' });
|
|
775
953
|
|
|
776
954
|
This will ensure your code works reliably regardless of the current working directory.
|
|
777
|
-
`.trim()),t=`/${t}`),await
|
|
955
|
+
`.trim()),t=`/${t}`),await ui(e,t,r.files)},qo=async(e,{siteUrl:t})=>{await Si(e,{consts:{WP_HOME:t,WP_SITEURL:t}})},bd=async(e,{file:t},r)=>{await rv(e,t,r)};async function rv(e,t,r){var i;(i=r==null?void 0:r.tracker)==null||i.setCaption("Importing content"),await ki(e,{path:"/tmp/import.wxr",data:t}),await e.run({$_SERVER:{HTTPS:(await e.absoluteUrl).startsWith("https://")?"on":""},code:`<?php
|
|
778
956
|
define('WP_LOAD_IMPORTERS', true);
|
|
779
957
|
require 'wp-load.php';
|
|
780
958
|
require 'wp-admin/includes/admin.php';
|
|
@@ -823,7 +1001,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
823
1001
|
$wp_import->import( getenv('IMPORT_FILE'), [
|
|
824
1002
|
'rewrite_urls' => true,
|
|
825
1003
|
] );
|
|
826
|
-
`,env:{IMPORT_FILE:"/tmp/import.wxr",FETCH_ATTACHMENTS:"true"}})}const
|
|
1004
|
+
`,env:{IMPORT_FILE:"/tmp/import.wxr",FETCH_ATTACHMENTS:"true"}})}const Ko=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
|
|
827
1005
|
|
|
828
1006
|
/**
|
|
829
1007
|
* Ensure that the customizer loads as an admin user.
|
|
@@ -846,7 +1024,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
846
1024
|
* See _wp_customize_include()
|
|
847
1025
|
*/
|
|
848
1026
|
$_REQUEST['wp_customize'] = 'on';
|
|
849
|
-
$_REQUEST['customize_theme'] = ${
|
|
1027
|
+
$_REQUEST['customize_theme'] = ${mt(t)} ?: get_stylesheet();
|
|
850
1028
|
|
|
851
1029
|
/*
|
|
852
1030
|
* Claim this is a ajax request saving settings, to avoid the preview filters being applied.
|
|
@@ -858,7 +1036,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
858
1036
|
}
|
|
859
1037
|
playground_add_filter( 'plugins_loaded', 'importThemeStarterContent_plugins_loaded', 0 );
|
|
860
1038
|
|
|
861
|
-
require ${
|
|
1039
|
+
require ${mt(i)} . '/wp-load.php';
|
|
862
1040
|
|
|
863
1041
|
// Return early if there's no starter content.
|
|
864
1042
|
if ( ! get_theme_starter_content() ) {
|
|
@@ -870,10 +1048,69 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
870
1048
|
|
|
871
1049
|
// Publish the changeset, which publishes the starter content.
|
|
872
1050
|
wp_publish_post( $wp_customize->changeset_post_id() );
|
|
873
|
-
`})},
|
|
1051
|
+
`})},Pi=async(e,{zipFile:t,zipPath:r,extractToPath:i})=>{if(r)Te.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 nd(e,t||r,i)},zo=["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"],vd=async(e,{wordPressFilesZip:t,pathInZip:r=""})=>{const i=await e.documentRoot;let a=Ae("/tmp","import");await e.mkdir(a),await Pi(e,{zipFile:t,extractToPath:a}),a=Ae(a,r);const s=Ae(a,"playground-export.json");let n=null;if(await e.fileExists(s))try{const _=await e.readFileAsText(s);n=JSON.parse(_).siteUrl,await e.unlink(s)}catch{}const o=Ae(a,"wp-content"),l=Ae(i,"wp-content");for(const _ of zo){const T=Ae(o,_);await Tp(e,T);const y=Ae(l,_);await e.fileExists(y)&&(await e.mkdir(Na(T)),await e.mv(y,T))}const p=Ae(a,"wp-content","database");await e.fileExists(p)||await e.mv(Ae(i,"wp-content","database"),p);const c=await e.listFiles(a);for(const _ of c)await Tp(e,Ae(i,_)),await e.mv(Ae(a,_),Ae(i,_));await e.rmdir(a),await Jb(e,i);const h=await e.absoluteUrl;n||(n=await sv(e,i)),await qo(e,{siteUrl:h});const m=mt(Ae(i,"wp-admin","upgrade.php"));await e.run({code:`<?php
|
|
874
1052
|
$_GET['step'] = 'upgrade_db';
|
|
875
|
-
require ${
|
|
876
|
-
`})
|
|
1053
|
+
require ${m};
|
|
1054
|
+
`}),n&&n!==h&&await nv(e,i,n,h)};function Ap(e){const t=e.match(/\/scope:[^/]+\/?/);return t?t[0].replace(/\/?$/,"/"):null}async function nv(e,t,r,i){const a=Ap(r),s=Ap(i);!a||!s||a!==s&&await e.run({code:`<?php
|
|
1055
|
+
require_once getenv('DOCUMENT_ROOT') . '/wp-load.php';
|
|
1056
|
+
global $wpdb;
|
|
1057
|
+
|
|
1058
|
+
$old_scope = getenv('OLD_SCOPE');
|
|
1059
|
+
$new_scope = getenv('NEW_SCOPE');
|
|
1060
|
+
|
|
1061
|
+
// Update URLs in posts content, excerpts, and GUIDs
|
|
1062
|
+
$wpdb->query($wpdb->prepare(
|
|
1063
|
+
"UPDATE {$wpdb->posts} SET post_content = REPLACE(post_content, %s, %s)",
|
|
1064
|
+
$old_scope, $new_scope
|
|
1065
|
+
));
|
|
1066
|
+
$wpdb->query($wpdb->prepare(
|
|
1067
|
+
"UPDATE {$wpdb->posts} SET post_excerpt = REPLACE(post_excerpt, %s, %s)",
|
|
1068
|
+
$old_scope, $new_scope
|
|
1069
|
+
));
|
|
1070
|
+
$wpdb->query($wpdb->prepare(
|
|
1071
|
+
"UPDATE {$wpdb->posts} SET guid = REPLACE(guid, %s, %s)",
|
|
1072
|
+
$old_scope, $new_scope
|
|
1073
|
+
));
|
|
1074
|
+
|
|
1075
|
+
// Update URLs in post meta
|
|
1076
|
+
$wpdb->query($wpdb->prepare(
|
|
1077
|
+
"UPDATE {$wpdb->postmeta} SET meta_value = REPLACE(meta_value, %s, %s) WHERE meta_value LIKE %s",
|
|
1078
|
+
$old_scope, $new_scope, '%' . $wpdb->esc_like($old_scope) . '%'
|
|
1079
|
+
));
|
|
1080
|
+
|
|
1081
|
+
// Update URLs in options (handles both regular and serialized data)
|
|
1082
|
+
$wpdb->query($wpdb->prepare(
|
|
1083
|
+
"UPDATE {$wpdb->options} SET option_value = REPLACE(option_value, %s, %s) WHERE option_value LIKE %s",
|
|
1084
|
+
$old_scope, $new_scope, '%' . $wpdb->esc_like($old_scope) . '%'
|
|
1085
|
+
));
|
|
1086
|
+
|
|
1087
|
+
// Update URLs in user meta
|
|
1088
|
+
$wpdb->query($wpdb->prepare(
|
|
1089
|
+
"UPDATE {$wpdb->usermeta} SET meta_value = REPLACE(meta_value, %s, %s) WHERE meta_value LIKE %s",
|
|
1090
|
+
$old_scope, $new_scope, '%' . $wpdb->esc_like($old_scope) . '%'
|
|
1091
|
+
));
|
|
1092
|
+
|
|
1093
|
+
// Update URLs in term meta
|
|
1094
|
+
$wpdb->query($wpdb->prepare(
|
|
1095
|
+
"UPDATE {$wpdb->termmeta} SET meta_value = REPLACE(meta_value, %s, %s) WHERE meta_value LIKE %s",
|
|
1096
|
+
$old_scope, $new_scope, '%' . $wpdb->esc_like($old_scope) . '%'
|
|
1097
|
+
));
|
|
1098
|
+
|
|
1099
|
+
// Update URLs in comments
|
|
1100
|
+
$wpdb->query($wpdb->prepare(
|
|
1101
|
+
"UPDATE {$wpdb->comments} SET comment_content = REPLACE(comment_content, %s, %s) WHERE comment_content LIKE %s",
|
|
1102
|
+
$old_scope, $new_scope, '%' . $wpdb->esc_like($old_scope) . '%'
|
|
1103
|
+
));
|
|
1104
|
+
$wpdb->query($wpdb->prepare(
|
|
1105
|
+
"UPDATE {$wpdb->comments} SET comment_author_url = REPLACE(comment_author_url, %s, %s) WHERE comment_author_url LIKE %s",
|
|
1106
|
+
$old_scope, $new_scope, '%' . $wpdb->esc_like($old_scope) . '%'
|
|
1107
|
+
));
|
|
1108
|
+
`,env:{DOCUMENT_ROOT:t,OLD_SCOPE:a,NEW_SCOPE:s}})}async function sv(e,t){const r=mn({documentRoot:t});return(await e.run({code:`<?php
|
|
1109
|
+
require_once ${r.documentRoot} . '/wp-load.php';
|
|
1110
|
+
global $wpdb;
|
|
1111
|
+
$row = $wpdb->get_row("SELECT option_value FROM {$wpdb->options} WHERE option_name = 'siteurl'");
|
|
1112
|
+
echo $row ? $row->option_value : '';
|
|
1113
|
+
`})).text.trim()||null}async function Tp(e,t){await e.fileExists(t)&&(await e.isDir(t)?await e.rmdir(t):await e.unlink(t))}async function xd(e){const t=await e.request({url:"/wp-admin/export.php?download=true&content=all"});return new File([t.bytes],"export.xml")}async function Ed(e,{targetPath:t,zipFile:r,ifAlreadyInstalled:i="overwrite",targetFolderName:a=""}){const n=r.name.replace(/\.zip$/,""),o=Ae(await e.documentRoot,"wp-content"),l=Ae(o,qs()),p=Ae(l,"assets",n);await e.fileExists(p)&&await e.rmdir(l,{recursive:!0}),await e.mkdir(l);try{await Pi(e,{zipFile:r,extractToPath:p});let c=await e.listFiles(p,{prependPath:!0});c=c.filter(y=>!y.endsWith("/__MACOSX"));const h=c.length===1&&await e.isDir(c[0]);let m,_="";h?(_=c[0],m=c[0].split("/").pop()):(_=p,m=n),a&&a.length&&(m=a);const T=`${t}/${m}`;if(await e.fileExists(T)){if(!await e.isDir(T))throw new Error(`Cannot install asset ${m} to ${T} 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(T,{recursive:!0});else{if(i==="skip")return{assetFolderPath:T,assetFolderName:m};throw new Error(`Cannot install asset ${m} to ${t} because it already exists and the ifAlreadyInstalled option was set to ${i}`)}}return await e.mv(_,T),{assetFolderPath:T,assetFolderName:m}}finally{await e.rmdir(l,{recursive:!0})}}const Sd=async(e,{pluginData:t,pluginZipFile:r,ifAlreadyInstalled:i,options:a={}},s)=>{r&&(t=r,Te.warn('The "pluginZipFile" option is deprecated. Use "pluginData" instead.'));const n=Ae(await e.documentRoot,"wp-content","plugins"),o="targetFolderName"in a?a.targetFolderName:"";let l="",p="";const c=async m=>{if(m.name.toLowerCase().endsWith(".zip"))return!0;const _=new Uint8Array(await m.arrayBuffer(),0,4);return _[0]===80&&_[1]===75&&_[2]===3&&_[3]===4};if(t instanceof File)if(await c(t)){const m=t.name.split("/").pop()||"plugin.zip";p=Ei(m),s==null||s.tracker.setCaption(`Installing the ${p} plugin`);const _=await Ed(e,{ifAlreadyInstalled:i,zipFile:t,targetPath:`${await e.documentRoot}/wp-content/plugins`,targetFolderName:o});l=_.assetFolderPath,p=_.assetFolderName}else if(t.name.endsWith(".php")){const m=Ae(n,t.name);await ki(e,{path:m,data:t}),l=n,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,s==null||s.tracker.setCaption(`Installing the ${p} plugin`);const m=Ae(n,o||t.name);await ui(e,m,t.files,{rmRoot:!0}),l=m}("activate"in a?a.activate:!0)&&await Uo(e,{pluginPath:l,pluginName:p},s)},kd=async(e,{themeData:t,themeZipFile:r,ifAlreadyInstalled:i,options:a={}},s)=>{r&&(t=r,Te.warn('The "themeZipFile" option is deprecated. Use "themeData" instead.'));const n="targetFolderName"in a?a.targetFolderName:"";let o="",l="";if(t instanceof File){const h=t.name.split("/").pop()||"theme.zip";l=Ei(h),s==null||s.tracker.setCaption(`Installing the ${l} theme`),o=(await Ed(e,{ifAlreadyInstalled:i,zipFile:t,targetPath:`${await e.documentRoot}/wp-content/themes`,targetFolderName:n})).assetFolderName}else{l=t.name,o=n||l,s==null||s.tracker.setCaption(`Installing the ${l} theme`);const h=Ae(await e.documentRoot,"wp-content","themes",o);await ui(e,h,t.files,{rmRoot:!0})}("activate"in a?a.activate:!0)&&await No(e,{themeFolderName:o},s),("importStarterContent"in a?a.importStarterContent:!1)&&await Ko(e,{themeSlug:o},s)},Pd=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)},Ad=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
|
|
877
1114
|
require getenv('DOCROOT') . '/wp-load.php';
|
|
878
1115
|
|
|
879
1116
|
$GLOBALS['@pdo']->query('DELETE FROM wp_posts WHERE id > 0');
|
|
@@ -887,11 +1124,11 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
887
1124
|
|
|
888
1125
|
$GLOBALS['@pdo']->query('DELETE FROM wp_commentmeta');
|
|
889
1126
|
$GLOBALS['@pdo']->query("UPDATE SQLITE_SEQUENCE SET SEQ=0 WHERE NAME='wp_commentmeta'");
|
|
890
|
-
`})},
|
|
891
|
-
'exclude_paths' => ${
|
|
892
|
-
'zip_root' => ${
|
|
893
|
-
'additional_paths' => ${
|
|
894
|
-
));`);const
|
|
1127
|
+
`})},Td=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"}})},Od=async(e,{selfContained:t=!1}={})=>{const r="/tmp/wordpress-playground.zip",i="/tmp/playground-export.json",a=await e.documentRoot,s=Ae(a,"wp-content"),n=await e.absoluteUrl;await e.writeFile(i,new TextEncoder().encode(JSON.stringify({siteUrl:n})));let o=zo;t&&(o=o.filter(h=>!h.startsWith("themes/twenty")).filter(h=>h!=="mu-plugins/sqlite-database-integration"));const l={[i]:"playground-export.json"};t&&(l[Ae(a,"wp-config.php")]="wp-config.php");const p=mn({zipPath:r,wpContentPath:s,documentRoot:a,exceptPaths:o.map(h=>Ae(a,"wp-content",h)),additionalPaths:l});await av(e,`zipDir(${p.wpContentPath}, ${p.zipPath}, array(
|
|
1128
|
+
'exclude_paths' => ${p.exceptPaths},
|
|
1129
|
+
'zip_root' => ${p.documentRoot},
|
|
1130
|
+
'additional_paths' => ${p.additionalPaths}
|
|
1131
|
+
));`);const c=await e.readFileAsBuffer(r);return e.unlink(r),e.unlink(i),c},iv=`<?php
|
|
895
1132
|
|
|
896
1133
|
function zipDir($root, $output, $options = array())
|
|
897
1134
|
{
|
|
@@ -951,10 +1188,10 @@ function join_paths()
|
|
|
951
1188
|
|
|
952
1189
|
return preg_replace('#/+#', '/', join('/', $paths));
|
|
953
1190
|
}
|
|
954
|
-
`;async function
|
|
1191
|
+
`;async function av(e,t){return await e.run({code:iv+t})}const ov=async(e,t)=>{const a=(await(await fetch(`https://api.wordpress.org/translations/core/1.0/?version=${e}`)).json()).translations.find(s=>s.language.toLowerCase()===t.toLowerCase());if(!a)throw new Error(`Failed to get ${t} translation package for WordPress ${e}.`);return a.package},Cd=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
|
|
955
1192
|
require '${i}/wp-includes/version.php';
|
|
956
1193
|
echo $wp_version;
|
|
957
|
-
`})).text,s=[{url:await
|
|
1194
|
+
`})).text,s=[{url:await ov(a,t),type:"core"}],o=(await e.run({code:`<?php
|
|
958
1195
|
require_once('${i}/wp-load.php');
|
|
959
1196
|
require_once('${i}/wp-admin/includes/plugin.php');
|
|
960
1197
|
echo json_encode(
|
|
@@ -974,7 +1211,7 @@ function join_paths()
|
|
|
974
1211
|
)
|
|
975
1212
|
)
|
|
976
1213
|
)
|
|
977
|
-
);`})).json;for(const{slug:
|
|
1214
|
+
);`})).json;for(const{slug:m,version:_}of o)s.push({url:`https://downloads.wordpress.org/translation/plugin/${m}/${_}/${t}.zip`,type:"plugin"});const p=(await e.run({code:`<?php
|
|
978
1215
|
require_once('${i}/wp-load.php');
|
|
979
1216
|
require_once('${i}/wp-admin/includes/theme.php');
|
|
980
1217
|
echo json_encode(
|
|
@@ -989,14 +1226,26 @@ function join_paths()
|
|
|
989
1226
|
wp_get_themes()
|
|
990
1227
|
)
|
|
991
1228
|
)
|
|
992
|
-
);`})).json;for(const{slug:h,version:g}of p)s.push({url:`https://downloads.wordpress.org/translation/theme/${h}/${g}/${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 un({concurrency:5}),m=s.map(({url:h,type:g})=>c.run(async()=>{try{const R=await fetch(h);if(!R.ok)throw new Error(`Failed to download translations for ${g}: ${R.statusText}`);let y=`${i}/wp-content/languages`;g==="plugin"?y+="/plugins":g==="theme"&&(y+="/themes"),await nd(e,new File([await R.blob()],`${t}-${g}.zip`),y)}catch(R){if(g==="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/.`);Te.warn(`Error downloading translations for ${g}: ${R}`)}}));await Promise.all(m)},Cb=Object.freeze(Object.defineProperty({__proto__:null,activatePlugin:Io,activateTheme:$o,cp:ld,defineSiteUrl:jo,defineWpConfigConsts:_i,enableMultisite:od,exportWXR:md,importThemeStarterContent:No,importWordPressFiles:hd,importWxr:dd,installPlugin:gd,installTheme:_d,login:wd,mkdir:pd,mv:fd,request:rd,resetData:bd,rm:Do,rmdir:cd,runPHP:Qu,runPHPWithOptions:ed,runSql:td,runWpInstallationWizard:vd,setSiteLanguage:Sd,setSiteOptions:Ho,unzip:bi,updateUserMeta:id,wpCLI:Bo,writeFile:wi,writeFiles:ud,zipWpContent:xd},Symbol.toStringTag,{value:"Module"})),Ob={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"}}},Lb={enum:["8.4","8.3","8.2","8.1","8.0","7.4","7.3","7.2"]},Rb={additionalProperties:{type:["string","boolean","number"]}},kd=Object.prototype.hasOwnProperty;function ke(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;const o=n;let f=!1;const p=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let T;if(e.resource===void 0&&(T="resource")||e.path===void 0&&(T="path")){const H={instancePath:t,schemaPath:"#/definitions/VFSReference/required",keyword:"required",params:{missingProperty:T},message:"must have required property '"+T+"'"};s===null?s=[H]:s.push(H),n++}else{const H=n;for(const E in e)if(!(E==="resource"||E==="path")){const A={instancePath:t,schemaPath:"#/definitions/VFSReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:E},message:"must NOT have additional properties"};s===null?s=[A]:s.push(A),n++;break}if(H===n){if(e.resource!==void 0){let E=e.resource;const A=n;if(typeof E!="string"){const L={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[L]:s.push(L),n++}if(E!=="vfs"){const L={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/const",keyword:"const",params:{allowedValue:"vfs"},message:"must be equal to constant"};s===null?s=[L]:s.push(L),n++}var m=A===n}else var m=!0;if(m)if(e.path!==void 0){const E=n;if(typeof e.path!="string"){const L={instancePath:t+"/path",schemaPath:"#/definitions/VFSReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[L]:s.push(L),n++}var m=E===n}else var m=!0}}}else{const T={instancePath:t,schemaPath:"#/definitions/VFSReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[T]:s.push(T),n++}var h=p===n;if(f=f||h,!f){const T=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let A;if(e.resource===void 0&&(A="resource")||e.name===void 0&&(A="name")||e.contents===void 0&&(A="contents")){const L={instancePath:t,schemaPath:"#/definitions/LiteralReference/required",keyword:"required",params:{missingProperty:A},message:"must have required property '"+A+"'"};s===null?s=[L]:s.push(L),n++}else{const L=n;for(const S in e)if(!(S==="resource"||S==="name"||S==="contents")){const P={instancePath:t,schemaPath:"#/definitions/LiteralReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:S},message:"must NOT have additional properties"};s===null?s=[P]:s.push(P),n++;break}if(L===n){if(e.resource!==void 0){let S=e.resource;const P=n;if(typeof S!="string"){const $={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[$]:s.push($),n++}if(S!=="literal"){const $={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/const",keyword:"const",params:{allowedValue:"literal"},message:"must be equal to constant"};s===null?s=[$]:s.push($),n++}var g=P===n}else var g=!0;if(g){if(e.name!==void 0){const S=n;if(typeof e.name!="string"){const $={instancePath:t+"/name",schemaPath:"#/definitions/LiteralReference/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[$]:s.push($),n++}var g=S===n}else var g=!0;if(g)if(e.contents!==void 0){let S=e.contents;const P=n,$=n;let I=!1;const j=n;if(typeof S!="string"){const M={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[M]:s.push(M),n++}var R=j===n;if(I=I||R,!I){const M=n;if(n===M)if(S&&typeof S=="object"&&!Array.isArray(S)){let z;if(S.BYTES_PER_ELEMENT===void 0&&(z="BYTES_PER_ELEMENT")||S.buffer===void 0&&(z="buffer")||S.byteLength===void 0&&(z="byteLength")||S.byteOffset===void 0&&(z="byteOffset")||S.length===void 0&&(z="length")){const se={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/required",keyword:"required",params:{missingProperty:z},message:"must have required property '"+z+"'"};s===null?s=[se]:s.push(se),n++}else{const se=n;for(const G in S)if(!(G==="BYTES_PER_ELEMENT"||G==="buffer"||G==="byteLength"||G==="byteOffset"||G==="length")){let Q=S[G];const ee=n;if(!(typeof Q=="number"&&isFinite(Q))){const V={instancePath:t+"/contents/"+G.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[V]:s.push(V),n++}var y=ee===n;if(!y)break}if(se===n){if(S.BYTES_PER_ELEMENT!==void 0){let G=S.BYTES_PER_ELEMENT;const Q=n;if(!(typeof G=="number"&&isFinite(G))){const ee={instancePath:t+"/contents/BYTES_PER_ELEMENT",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ee]:s.push(ee),n++}var _=Q===n}else var _=!0;if(_){if(S.buffer!==void 0){let G=S.buffer;const Q=n;if(n===Q)if(G&&typeof G=="object"&&!Array.isArray(G)){let V;if(G.byteLength===void 0&&(V="byteLength")){const fe={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:V},message:"must have required property '"+V+"'"};s===null?s=[fe]:s.push(fe),n++}else{const fe=n;for(const ie in G)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"};s===null?s=[ae]:s.push(ae),n++;break}if(fe===n&&G.byteLength!==void 0){let ie=G.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"};s===null?s=[ae]:s.push(ae),n++}}}}else{const V={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[V]:s.push(V),n++}var _=Q===n}else var _=!0;if(_){if(S.byteLength!==void 0){let G=S.byteLength;const Q=n;if(!(typeof G=="number"&&isFinite(G))){const V={instancePath:t+"/contents/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[V]:s.push(V),n++}var _=Q===n}else var _=!0;if(_){if(S.byteOffset!==void 0){let G=S.byteOffset;const Q=n;if(!(typeof G=="number"&&isFinite(G))){const V={instancePath:t+"/contents/byteOffset",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[V]:s.push(V),n++}var _=Q===n}else var _=!0;if(_)if(S.length!==void 0){let G=S.length;const Q=n;if(!(typeof G=="number"&&isFinite(G))){const V={instancePath:t+"/contents/length",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[V]:s.push(V),n++}var _=Q===n}else var _=!0}}}}}}else{const z={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[z]:s.push(z),n++}var R=M===n;I=I||R}if(I)n=$,s!==null&&($?s.length=$:s=null);else{const M={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};s===null?s=[M]:s.push(M),n++}var g=P===n}else var g=!0}}}}else{const A={instancePath:t,schemaPath:"#/definitions/LiteralReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[A]:s.push(A),n++}var h=T===n;if(f=f||h,!f){const A=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let P;if(e.resource===void 0&&(P="resource")||e.slug===void 0&&(P="slug")){const $={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/required",keyword:"required",params:{missingProperty:P},message:"must have required property '"+P+"'"};s===null?s=[$]:s.push($),n++}else{const $=n;for(const I in e)if(!(I==="resource"||I==="slug")){const j={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:I},message:"must NOT have additional properties"};s===null?s=[j]:s.push(j),n++;break}if($===n){if(e.resource!==void 0){let I=e.resource;const j=n;if(typeof I!="string"){const U={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[U]:s.push(U),n++}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"};s===null?s=[U]:s.push(U),n++}var b=j===n}else var b=!0;if(b)if(e.slug!==void 0){const I=n;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"};s===null?s=[U]:s.push(U),n++}var b=I===n}else var b=!0}}}else{const P={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[P]:s.push(P),n++}var h=A===n;if(f=f||h,!f){const P=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let j;if(e.resource===void 0&&(j="resource")||e.slug===void 0&&(j="slug")){const U={instancePath:t,schemaPath:"#/definitions/CorePluginReference/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"};s===null?s=[U]:s.push(U),n++}else{const U=n;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"};s===null?s=[Z]:s.push(Z),n++;break}if(U===n){if(e.resource!==void 0){let M=e.resource;const Z=n;if(typeof M!="string"){const z={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[z]:s.push(z),n++}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"};s===null?s=[z]:s.push(z),n++}var O=Z===n}else var O=!0;if(O)if(e.slug!==void 0){const M=n;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"};s===null?s=[z]:s.push(z),n++}var O=M===n}else var O=!0}}}else{const j={instancePath:t,schemaPath:"#/definitions/CorePluginReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[j]:s.push(j),n++}var h=P===n;if(f=f||h,!f){const j=n;if(n===n)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+"'"};s===null?s=[z]:s.push(z),n++}else{const z=n;for(const se in e)if(!(se==="resource"||se==="url"||se==="caption")){const G={instancePath:t,schemaPath:"#/definitions/UrlReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:se},message:"must NOT have additional properties"};s===null?s=[G]:s.push(G),n++;break}if(z===n){if(e.resource!==void 0){let se=e.resource;const G=n;if(typeof se!="string"){const Q={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Q]:s.push(Q),n++}if(se!=="url"){const Q={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant"};s===null?s=[Q]:s.push(Q),n++}var k=G===n}else var k=!0;if(k){if(e.url!==void 0){const se=n;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"};s===null?s=[Q]:s.push(Q),n++}var k=se===n}else var k=!0;if(k)if(e.caption!==void 0){const se=n;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"};s===null?s=[Q]:s.push(Q),n++}var k=se===n}else var k=!0}}}}else{const Z={instancePath:t,schemaPath:"#/definitions/UrlReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Z]:s.push(Z),n++}var h=j===n;if(f=f||h,!f){const Z=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let G;if(e.resource===void 0&&(G="resource")||e.path===void 0&&(G="path")){const Q={instancePath:t,schemaPath:"#/definitions/BundledReference/required",keyword:"required",params:{missingProperty:G},message:"must have required property '"+G+"'"};s===null?s=[Q]:s.push(Q),n++}else{const Q=n;for(const ee in e)if(!(ee==="resource"||ee==="path")){const V={instancePath:t,schemaPath:"#/definitions/BundledReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ee},message:"must NOT have additional properties"};s===null?s=[V]:s.push(V),n++;break}if(Q===n){if(e.resource!==void 0){let ee=e.resource;const V=n;if(typeof ee!="string"){const fe={instancePath:t+"/resource",schemaPath:"#/definitions/BundledReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[fe]:s.push(fe),n++}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"};s===null?s=[fe]:s.push(fe),n++}var D=V===n}else var D=!0;if(D)if(e.path!==void 0){const ee=n;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"};s===null?s=[fe]:s.push(fe),n++}var D=ee===n}else var D=!0}}}else{const G={instancePath:t,schemaPath:"#/definitions/BundledReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[G]:s.push(G),n++}var h=Z===n;f=f||h}}}}}if(f)n=o,s!==null&&(o?s.length=o:s=null);else{const T={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[T]:s.push(T),n++,ke.errors=s,!1}return ke.errors=s,n===0}const Es={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:
|
|
1229
|
+
);`})).json;for(const{slug:m,version:_}of p)s.push({url:`https://downloads.wordpress.org/translation/theme/${m}/${_}/${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 hn({concurrency:5}),h=s.map(({url:m,type:_})=>c.run(async()=>{try{const T=await fetch(m);if(!T.ok)throw new Error(`Failed to download translations for ${_}: ${T.statusText}`);let y=`${i}/wp-content/languages`;_==="plugin"?y+="/plugins":_==="theme"&&(y+="/themes"),await nd(e,new File([await T.blob()],`${t}-${_}.zip`),y)}catch(T){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/.`);Te.warn(`Error downloading translations for ${_}: ${T}`)}}));await Promise.all(h)},lv=Object.freeze(Object.defineProperty({__proto__:null,activatePlugin:Uo,activateTheme:No,cp:md,defineSiteUrl:qo,defineWpConfigConsts:Si,enableMultisite:hd,exportWXR:xd,importThemeStarterContent:Ko,importWordPressFiles:vd,importWxr:bd,installPlugin:Sd,installTheme:kd,login:Pd,mkdir:_d,mv:yd,request:pd,resetData:Ad,rm:li,rmdir:gd,runPHP:od,runPHPWithOptions:ld,runSql:fd,runWpInstallationWizard:Td,setSiteLanguage:Cd,setSiteOptions:jo,unzip:Pi,updateUserMeta:ud,wpCLI:Mo,writeFile:ki,writeFiles:wd,zipWpContent:Od},Symbol.toStringTag,{value:"Module"})),fv={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",description:"Should boot with support for Intl dynamic extension"},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"}}},pv={enum:["8.5","8.4","8.3","8.2","8.1","8.0","7.4","7.3","7.2"]},cv={additionalProperties:{type:["string","boolean","number"]}},Ld=Object.prototype.hasOwnProperty,Ha={validate:be},uv={enum:["branch","tag","commit","refname"]};function st(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(e&&typeof e=="object"&&!Array.isArray(e)){let l;if(e.resource===void 0&&(l="resource")||e.url===void 0&&(l="url")||e.ref===void 0&&(l="ref"))return st.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;for(const p in e)if(!(p==="resource"||p==="url"||p==="ref"||p==="refType"||p==="path"||p===".git"))return st.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties"}],!1;{if(e.resource!==void 0){let p=e.resource;const c=n;if(typeof p!="string")return st.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(p!=="git:directory")return st.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"git:directory"},message:"must be equal to constant"}],!1;var o=c===n}else var o=!0;if(o){if(e.url!==void 0){const p=n;if(typeof e.url!="string")return st.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o){if(e.ref!==void 0){const p=n;if(typeof e.ref!="string")return st.errors=[{instancePath:t+"/ref",schemaPath:"#/properties/ref/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o){if(e.refType!==void 0){let p=e.refType;const c=n;if(typeof p!="string")return st.errors=[{instancePath:t+"/refType",schemaPath:"#/definitions/GitDirectoryRefType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(p==="branch"||p==="tag"||p==="commit"||p==="refname"))return st.errors=[{instancePath:t+"/refType",schemaPath:"#/definitions/GitDirectoryRefType/enum",keyword:"enum",params:{allowedValues:uv.enum},message:"must be equal to one of the allowed values"}],!1;var o=c===n}else var o=!0;if(o){if(e.path!==void 0){const p=n;if(typeof e.path!="string")return st.errors=[{instancePath:t+"/path",schemaPath:"#/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o)if(e[".git"]!==void 0){const p=n;if(typeof e[".git"]!="boolean")return st.errors=[{instancePath:t+"/.git",schemaPath:"#/properties/.git/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var o=p===n}else var o=!0}}}}}}else return st.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return st.errors=s,n===0}const dv={additionalProperties:{anyOf:[{$ref:"#/definitions/FileTree"},{type:["object","string"]}]}},Fa={validate:Dr};function Dr(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e))for(const p in e){let c=e[p];const h=n,m=n;let _=!1;const T=n;Fa.validate(c,{instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:p,rootData:a})||(s=s===null?Fa.validate.errors:s.concat(Fa.validate.errors),n=s.length);var o=T===n;if(_=_||o,!_){const y=n;if(!(c&&typeof c=="object"&&!Array.isArray(c))&&typeof c!="string"){const w={instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf/1/type",keyword:"type",params:{type:dv.additionalProperties.anyOf[1].type},message:"must be object,string"};s===null?s=[w]:s.push(w),n++}var o=y===n;_=_||o}if(_)n=m,s!==null&&(m?s.length=m:s=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 s===null?s=[y]:s.push(y),n++,Dr.errors=s,!1}var l=h===n;if(!l)break}else return Dr.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Dr.errors=s,n===0}function Kt(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let l;if(e.files===void 0&&(l="files")||e.name===void 0&&(l="name")||e.resource===void 0&&(l="resource"))return Kt.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const p=n;for(const c in e)if(!(c==="resource"||c==="files"||c==="name"))return Kt.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:c},message:"must NOT have additional properties"}],!1;if(p===n){if(e.resource!==void 0){let c=e.resource;const h=n;if(typeof c!="string")return Kt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(c!=="literal:directory")return Kt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"literal:directory"},message:"must be equal to constant"}],!1;var o=h===n}else var o=!0;if(o){if(e.files!==void 0){const c=n;Dr(e.files,{instancePath:t+"/files",parentData:e,parentDataProperty:"files",rootData:a})||(s=s===null?Dr.errors:s.concat(Dr.errors),n=s.length);var o=c===n}else var o=!0;if(o)if(e.name!==void 0){const c=n;if(typeof e.name!="string")return Kt.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=c===n}else var o=!0}}}}else return Kt.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Kt.errors=s,n===0}function ct(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;const o=n;let l=!1;const p=n;st(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?st.errors:s.concat(st.errors),n=s.length);var c=p===n;if(l=l||c,!l){const h=n;Kt(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?Kt.errors:s.concat(Kt.errors),n=s.length);var c=h===n;l=l||c}if(l)n=o,s!==null&&(o?s.length=o:s=null);else{const h={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[h]:s.push(h),n++,ct.errors=s,!1}return ct.errors=s,n===0}function Ht(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let p;if(e.resource===void 0&&(p="resource")||e.inner===void 0&&(p="inner"))return Ht.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:p},message:"must have required property '"+p+"'"}],!1;{const c=n;for(const h in e)if(!(h==="resource"||h==="inner"||h==="name"))return Ht.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties"}],!1;if(c===n){if(e.resource!==void 0){let h=e.resource;const m=n;if(typeof h!="string")return Ht.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(h!=="zip")return Ht.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"zip"},message:"must be equal to constant"}],!1;var o=m===n}else var o=!0;if(o){if(e.inner!==void 0){let h=e.inner;const m=n,_=n;let T=!1;const y=n;Ha.validate(h,{instancePath:t+"/inner",parentData:e,parentDataProperty:"inner",rootData:a})||(s=s===null?Ha.validate.errors:s.concat(Ha.validate.errors),n=s.length);var l=y===n;if(T=T||l,!T){const w=n;ct(h,{instancePath:t+"/inner",parentData:e,parentDataProperty:"inner",rootData:a})||(s=s===null?ct.errors:s.concat(ct.errors),n=s.length);var l=w===n;T=T||l}if(T)n=_,s!==null&&(_?s.length=_:s=null);else{const w={instancePath:t+"/inner",schemaPath:"#/properties/inner/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[w]:s.push(w),n++,Ht.errors=s,!1}var o=m===n}else var o=!0;if(o)if(e.name!==void 0){const h=n;if(typeof e.name!="string")return Ht.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=h===n}else var o=!0}}}}else return Ht.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Ht.errors=s,n===0}function be(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;const o=n;let l=!1;const p=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let O;if(e.resource===void 0&&(O="resource")||e.path===void 0&&(O="path")){const H={instancePath:t,schemaPath:"#/definitions/VFSReference/required",keyword:"required",params:{missingProperty:O},message:"must have required property '"+O+"'"};s===null?s=[H]:s.push(H),n++}else{const H=n;for(const k in e)if(!(k==="resource"||k==="path")){const A={instancePath:t,schemaPath:"#/definitions/VFSReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"};s===null?s=[A]:s.push(A),n++;break}if(H===n){if(e.resource!==void 0){let k=e.resource;const A=n;if(typeof k!="string"){const $={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[$]:s.push($),n++}if(k!=="vfs"){const $={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/const",keyword:"const",params:{allowedValue:"vfs"},message:"must be equal to constant"};s===null?s=[$]:s.push($),n++}var h=A===n}else var h=!0;if(h)if(e.path!==void 0){const k=n;if(typeof e.path!="string"){const $={instancePath:t+"/path",schemaPath:"#/definitions/VFSReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[$]:s.push($),n++}var h=k===n}else var h=!0}}}else{const O={instancePath:t,schemaPath:"#/definitions/VFSReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[O]:s.push(O),n++}var m=p===n;if(l=l||m,!l){const O=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let A;if(e.resource===void 0&&(A="resource")||e.name===void 0&&(A="name")||e.contents===void 0&&(A="contents")){const $={instancePath:t,schemaPath:"#/definitions/LiteralReference/required",keyword:"required",params:{missingProperty:A},message:"must have required property '"+A+"'"};s===null?s=[$]:s.push($),n++}else{const $=n;for(const E in e)if(!(E==="resource"||E==="name"||E==="contents")){const P={instancePath:t,schemaPath:"#/definitions/LiteralReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:E},message:"must NOT have additional properties"};s===null?s=[P]:s.push(P),n++;break}if($===n){if(e.resource!==void 0){let E=e.resource;const P=n;if(typeof E!="string"){const I={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[I]:s.push(I),n++}if(E!=="literal"){const I={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/const",keyword:"const",params:{allowedValue:"literal"},message:"must be equal to constant"};s===null?s=[I]:s.push(I),n++}var _=P===n}else var _=!0;if(_){if(e.name!==void 0){const E=n;if(typeof e.name!="string"){const I={instancePath:t+"/name",schemaPath:"#/definitions/LiteralReference/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[I]:s.push(I),n++}var _=E===n}else var _=!0;if(_)if(e.contents!==void 0){let E=e.contents;const P=n,I=n;let R=!1;const U=n;if(typeof E!="string"){const M={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[M]:s.push(M),n++}var T=U===n;if(R=R||T,!R){const M=n;if(n===M)if(E&&typeof E=="object"&&!Array.isArray(E)){let z;if(E.BYTES_PER_ELEMENT===void 0&&(z="BYTES_PER_ELEMENT")||E.buffer===void 0&&(z="buffer")||E.byteLength===void 0&&(z="byteLength")||E.byteOffset===void 0&&(z="byteOffset")||E.length===void 0&&(z="length")){const se={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/required",keyword:"required",params:{missingProperty:z},message:"must have required property '"+z+"'"};s===null?s=[se]:s.push(se),n++}else{const se=n;for(const G in E)if(!(G==="BYTES_PER_ELEMENT"||G==="buffer"||G==="byteLength"||G==="byteOffset"||G==="length")){let Q=E[G];const ee=n;if(!(typeof Q=="number"&&isFinite(Q))){const V={instancePath:t+"/contents/"+G.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[V]:s.push(V),n++}var y=ee===n;if(!y)break}if(se===n){if(E.BYTES_PER_ELEMENT!==void 0){let G=E.BYTES_PER_ELEMENT;const Q=n;if(!(typeof G=="number"&&isFinite(G))){const ee={instancePath:t+"/contents/BYTES_PER_ELEMENT",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ee]:s.push(ee),n++}var g=Q===n}else var g=!0;if(g){if(E.buffer!==void 0){let G=E.buffer;const Q=n;if(n===Q)if(G&&typeof G=="object"&&!Array.isArray(G)){let V;if(G.byteLength===void 0&&(V="byteLength")){const fe={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:V},message:"must have required property '"+V+"'"};s===null?s=[fe]:s.push(fe),n++}else{const fe=n;for(const ie in G)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"};s===null?s=[ae]:s.push(ae),n++;break}if(fe===n&&G.byteLength!==void 0){let ie=G.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"};s===null?s=[ae]:s.push(ae),n++}}}}else{const V={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[V]:s.push(V),n++}var g=Q===n}else var g=!0;if(g){if(E.byteLength!==void 0){let G=E.byteLength;const Q=n;if(!(typeof G=="number"&&isFinite(G))){const V={instancePath:t+"/contents/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[V]:s.push(V),n++}var g=Q===n}else var g=!0;if(g){if(E.byteOffset!==void 0){let G=E.byteOffset;const Q=n;if(!(typeof G=="number"&&isFinite(G))){const V={instancePath:t+"/contents/byteOffset",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[V]:s.push(V),n++}var g=Q===n}else var g=!0;if(g)if(E.length!==void 0){let G=E.length;const Q=n;if(!(typeof G=="number"&&isFinite(G))){const V={instancePath:t+"/contents/length",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[V]:s.push(V),n++}var g=Q===n}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"};s===null?s=[z]:s.push(z),n++}var T=M===n;R=R||T}if(R)n=I,s!==null&&(I?s.length=I:s=null);else{const M={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};s===null?s=[M]:s.push(M),n++}var _=P===n}else var _=!0}}}}else{const A={instancePath:t,schemaPath:"#/definitions/LiteralReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[A]:s.push(A),n++}var m=O===n;if(l=l||m,!l){const A=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let P;if(e.resource===void 0&&(P="resource")||e.slug===void 0&&(P="slug")){const I={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/required",keyword:"required",params:{missingProperty:P},message:"must have required property '"+P+"'"};s===null?s=[I]:s.push(I),n++}else{const I=n;for(const R in e)if(!(R==="resource"||R==="slug")){const U={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:R},message:"must NOT have additional properties"};s===null?s=[U]:s.push(U),n++;break}if(I===n){if(e.resource!==void 0){let R=e.resource;const U=n;if(typeof R!="string"){const j={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[j]:s.push(j),n++}if(R!=="wordpress.org/themes"){const j={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/themes"},message:"must be equal to constant"};s===null?s=[j]:s.push(j),n++}var w=U===n}else var w=!0;if(w)if(e.slug!==void 0){const R=n;if(typeof e.slug!="string"){const j={instancePath:t+"/slug",schemaPath:"#/definitions/CoreThemeReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[j]:s.push(j),n++}var w=R===n}else var w=!0}}}else{const P={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[P]:s.push(P),n++}var m=A===n;if(l=l||m,!l){const P=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let U;if(e.resource===void 0&&(U="resource")||e.slug===void 0&&(U="slug")){const j={instancePath:t,schemaPath:"#/definitions/CorePluginReference/required",keyword:"required",params:{missingProperty:U},message:"must have required property '"+U+"'"};s===null?s=[j]:s.push(j),n++}else{const j=n;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"};s===null?s=[Z]:s.push(Z),n++;break}if(j===n){if(e.resource!==void 0){let M=e.resource;const Z=n;if(typeof M!="string"){const z={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[z]:s.push(z),n++}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"};s===null?s=[z]:s.push(z),n++}var L=Z===n}else var L=!0;if(L)if(e.slug!==void 0){const M=n;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"};s===null?s=[z]:s.push(z),n++}var L=M===n}else var L=!0}}}else{const U={instancePath:t,schemaPath:"#/definitions/CorePluginReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[U]:s.push(U),n++}var m=P===n;if(l=l||m,!l){const U=n;if(n===n)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+"'"};s===null?s=[z]:s.push(z),n++}else{const z=n;for(const se in e)if(!(se==="resource"||se==="url"||se==="caption")){const G={instancePath:t,schemaPath:"#/definitions/UrlReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:se},message:"must NOT have additional properties"};s===null?s=[G]:s.push(G),n++;break}if(z===n){if(e.resource!==void 0){let se=e.resource;const G=n;if(typeof se!="string"){const Q={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Q]:s.push(Q),n++}if(se!=="url"){const Q={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant"};s===null?s=[Q]:s.push(Q),n++}var S=G===n}else var S=!0;if(S){if(e.url!==void 0){const se=n;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"};s===null?s=[Q]:s.push(Q),n++}var S=se===n}else var S=!0;if(S)if(e.caption!==void 0){const se=n;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"};s===null?s=[Q]:s.push(Q),n++}var S=se===n}else var S=!0}}}}else{const Z={instancePath:t,schemaPath:"#/definitions/UrlReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Z]:s.push(Z),n++}var m=U===n;if(l=l||m,!l){const Z=n;if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let G;if(e.resource===void 0&&(G="resource")||e.path===void 0&&(G="path")){const Q={instancePath:t,schemaPath:"#/definitions/BundledReference/required",keyword:"required",params:{missingProperty:G},message:"must have required property '"+G+"'"};s===null?s=[Q]:s.push(Q),n++}else{const Q=n;for(const ee in e)if(!(ee==="resource"||ee==="path")){const V={instancePath:t,schemaPath:"#/definitions/BundledReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ee},message:"must NOT have additional properties"};s===null?s=[V]:s.push(V),n++;break}if(Q===n){if(e.resource!==void 0){let ee=e.resource;const V=n;if(typeof ee!="string"){const fe={instancePath:t+"/resource",schemaPath:"#/definitions/BundledReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[fe]:s.push(fe),n++}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"};s===null?s=[fe]:s.push(fe),n++}var D=V===n}else var D=!0;if(D)if(e.path!==void 0){const ee=n;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"};s===null?s=[fe]:s.push(fe),n++}var D=ee===n}else var D=!0}}}else{const G={instancePath:t,schemaPath:"#/definitions/BundledReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[G]:s.push(G),n++}var m=Z===n;if(l=l||m,!l){const G=n;Ht(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?Ht.errors:s.concat(Ht.errors),n=s.length);var m=G===n;l=l||m}}}}}}if(l)n=o,s!==null&&(o?s.length=o:s=null);else{const O={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[O]:s.push(O),n++,be.errors=s,!1}return be.errors=s,n===0}const As={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:
|
|
993
1230
|
|
|
994
1231
|
- 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.
|
|
995
1232
|
|
|
996
1233
|
- 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.
|
|
997
1234
|
This option is only kept in here to avoid breaking Blueprint schema validation
|
|
998
1235
|
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.
|
|
999
|
-
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"]}]},Ib={enum:["branch","tag","commit","refname"]};function st(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(e&&typeof e=="object"&&!Array.isArray(e)){let f;if(e.resource===void 0&&(f="resource")||e.url===void 0&&(f="url")||e.ref===void 0&&(f="ref"))return st.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;for(const p in e)if(!(p==="resource"||p==="url"||p==="ref"||p==="refType"||p==="path"||p===".git"))return st.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties"}],!1;{if(e.resource!==void 0){let p=e.resource;const c=n;if(typeof p!="string")return st.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(p!=="git:directory")return st.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"git:directory"},message:"must be equal to constant"}],!1;var o=c===n}else var o=!0;if(o){if(e.url!==void 0){const p=n;if(typeof e.url!="string")return st.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o){if(e.ref!==void 0){const p=n;if(typeof e.ref!="string")return st.errors=[{instancePath:t+"/ref",schemaPath:"#/properties/ref/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o){if(e.refType!==void 0){let p=e.refType;const c=n;if(typeof p!="string")return st.errors=[{instancePath:t+"/refType",schemaPath:"#/definitions/GitDirectoryRefType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(p==="branch"||p==="tag"||p==="commit"||p==="refname"))return st.errors=[{instancePath:t+"/refType",schemaPath:"#/definitions/GitDirectoryRefType/enum",keyword:"enum",params:{allowedValues:Ib.enum},message:"must be equal to one of the allowed values"}],!1;var o=c===n}else var o=!0;if(o){if(e.path!==void 0){const p=n;if(typeof e.path!="string")return st.errors=[{instancePath:t+"/path",schemaPath:"#/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o)if(e[".git"]!==void 0){const p=n;if(typeof e[".git"]!="boolean")return st.errors=[{instancePath:t+"/.git",schemaPath:"#/properties/.git/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var o=p===n}else var o=!0}}}}}}else return st.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return st.errors=s,n===0}const $b={additionalProperties:{anyOf:[{$ref:"#/definitions/FileTree"},{type:["object","string"]}]}},Oa={validate:$r};function $r(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e))for(const p in e){let c=e[p];const m=n,h=n;let g=!1;const R=n;Oa.validate(c,{instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:p,rootData:a})||(s=s===null?Oa.validate.errors:s.concat(Oa.validate.errors),n=s.length);var o=R===n;if(g=g||o,!g){const y=n;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:$b.additionalProperties.anyOf[1].type},message:"must be object,string"};s===null?s=[b]:s.push(b),n++}var o=y===n;g=g||o}if(g)n=h,s!==null&&(h?s.length=h:s=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 s===null?s=[y]:s.push(y),n++,$r.errors=s,!1}var f=m===n;if(!f)break}else return $r.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return $r.errors=s,n===0}function Mt(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===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 Mt.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const p=n;for(const c in e)if(!(c==="resource"||c==="files"||c==="name"))return Mt.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:c},message:"must NOT have additional properties"}],!1;if(p===n){if(e.resource!==void 0){let c=e.resource;const m=n;if(typeof c!="string")return Mt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(c!=="literal:directory")return Mt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"literal:directory"},message:"must be equal to constant"}],!1;var o=m===n}else var o=!0;if(o){if(e.files!==void 0){const c=n;$r(e.files,{instancePath:t+"/files",parentData:e,parentDataProperty:"files",rootData:a})||(s=s===null?$r.errors:s.concat($r.errors),n=s.length);var o=c===n}else var o=!0;if(o)if(e.name!==void 0){const c=n;if(typeof e.name!="string")return Mt.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=c===n}else var o=!0}}}}else return Mt.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Mt.errors=s,n===0}function $t(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;const o=n;let f=!1;const p=n;st(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?st.errors:s.concat(st.errors),n=s.length);var c=p===n;if(f=f||c,!f){const m=n;Mt(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?Mt.errors:s.concat(Mt.errors),n=s.length);var c=m===n;f=f||c}if(f)n=o,s!==null&&(o?s.length=o:s=null);else{const m={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[m]:s.push(m),n++,$t.errors=s,!1}return $t.errors=s,n===0}const Ed={enum:["GET","POST","HEAD","OPTIONS","PATCH","PUT","DELETE"]};function bt(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let b;if(e.url===void 0&&(b="url"))return bt.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"}],!1;{const O=n;for(const k in e)if(!(k==="method"||k==="url"||k==="headers"||k==="body"))return bt.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(O===n){if(e.method!==void 0){let k=e.method;const D=n;if(typeof k!="string")return bt.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(k==="GET"||k==="POST"||k==="HEAD"||k==="OPTIONS"||k==="PATCH"||k==="PUT"||k==="DELETE"))return bt.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Ed.enum},message:"must be equal to one of the allowed values"}],!1;var o=D===n}else var o=!0;if(o){if(e.url!==void 0){const k=n;if(typeof e.url!="string")return bt.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=k===n}else var o=!0;if(o){if(e.headers!==void 0){let k=e.headers;const D=n;if(n===n)if(k&&typeof k=="object"&&!Array.isArray(k))for(const E in k){const A=n;if(typeof k[E]!="string")return bt.errors=[{instancePath:t+"/headers/"+E.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=A===n;if(!f)break}else return bt.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=D===n}else var o=!0;if(o)if(e.body!==void 0){let k=e.body;const D=n,T=n;let H=!1;const E=n;if(typeof k!="string"){const L={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[L]:s.push(L),n++}var p=E===n;if(H=H||p,!H){const L=n;if(n===L)if(k&&typeof k=="object"&&!Array.isArray(k)){let P;if(k.BYTES_PER_ELEMENT===void 0&&(P="BYTES_PER_ELEMENT")||k.buffer===void 0&&(P="buffer")||k.byteLength===void 0&&(P="byteLength")||k.byteOffset===void 0&&(P="byteOffset")||k.length===void 0&&(P="length")){const $={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:P},message:"must have required property '"+P+"'"};s===null?s=[$]:s.push($),n++}else{const $=n;for(const I in k)if(!(I==="BYTES_PER_ELEMENT"||I==="buffer"||I==="byteLength"||I==="byteOffset"||I==="length")){let j=k[I];const U=n;if(!(typeof j=="number"&&isFinite(j))){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"};s===null?s=[M]:s.push(M),n++}var c=U===n;if(!c)break}if($===n){if(k.BYTES_PER_ELEMENT!==void 0){let I=k.BYTES_PER_ELEMENT;const j=n;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"};s===null?s=[U]:s.push(U),n++}var m=j===n}else var m=!0;if(m){if(k.buffer!==void 0){let I=k.buffer;const j=n;if(n===j)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+"'"};s===null?s=[Z]:s.push(Z),n++}else{const Z=n;for(const z in I)if(z!=="byteLength"){const se={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:z},message:"must NOT have additional properties"};s===null?s=[se]:s.push(se),n++;break}if(Z===n&&I.byteLength!==void 0){let z=I.byteLength;if(!(typeof z=="number"&&isFinite(z))){const se={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[se]:s.push(se),n++}}}}else{const M={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[M]:s.push(M),n++}var m=j===n}else var m=!0;if(m){if(k.byteLength!==void 0){let I=k.byteLength;const j=n;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"};s===null?s=[M]:s.push(M),n++}var m=j===n}else var m=!0;if(m){if(k.byteOffset!==void 0){let I=k.byteOffset;const j=n;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"};s===null?s=[M]:s.push(M),n++}var m=j===n}else var m=!0;if(m)if(k.length!==void 0){let I=k.length;const j=n;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"};s===null?s=[M]:s.push(M),n++}var m=j===n}else var m=!0}}}}}}else{const P={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[P]:s.push(P),n++}var p=L===n;if(H=H||p,!H){const P=n;if(n===P)if(k&&typeof k=="object"&&!Array.isArray(k))for(const I in k){let j=k[I];const U=n,M=n;let Z=!1;const z=n;if(typeof j!="string"){const se={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"};s===null?s=[se]:s.push(se),n++}var h=z===n;if(Z=Z||h,!Z){const se=n;if(n===se)if(j&&typeof j=="object"&&!Array.isArray(j)){let Q;if(j.BYTES_PER_ELEMENT===void 0&&(Q="BYTES_PER_ELEMENT")||j.buffer===void 0&&(Q="buffer")||j.byteLength===void 0&&(Q="byteLength")||j.byteOffset===void 0&&(Q="byteOffset")||j.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+"'"};s===null?s=[ee]:s.push(ee),n++}else{const ee=n;for(const V in j)if(!(V==="BYTES_PER_ELEMENT"||V==="buffer"||V==="byteLength"||V==="byteOffset"||V==="length")){let fe=j[V];const ie=n;if(!(typeof fe=="number"&&isFinite(fe))){const ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+V.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),n++}var g=ie===n;if(!g)break}if(ee===n){if(j.BYTES_PER_ELEMENT!==void 0){let V=j.BYTES_PER_ELEMENT;const fe=n;if(!(typeof V=="number"&&isFinite(V))){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"};s===null?s=[ie]:s.push(ie),n++}var R=fe===n}else var R=!0;if(R){if(j.buffer!==void 0){let V=j.buffer;const fe=n;if(n===fe)if(V&&typeof V=="object"&&!Array.isArray(V)){let ae;if(V.byteLength===void 0&&(ae="byteLength")){const Pe={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+"'"};s===null?s=[Pe]:s.push(Pe),n++}else{const Pe=n;for(const Ce in V)if(Ce!=="byteLength"){const Xe={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:Ce},message:"must NOT have additional properties"};s===null?s=[Xe]:s.push(Xe),n++;break}if(Pe===n&&V.byteLength!==void 0){let Ce=V.byteLength;if(!(typeof Ce=="number"&&isFinite(Ce))){const Xe={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"};s===null?s=[Xe]:s.push(Xe),n++}}}}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"};s===null?s=[ae]:s.push(ae),n++}var R=fe===n}else var R=!0;if(R){if(j.byteLength!==void 0){let V=j.byteLength;const fe=n;if(!(typeof V=="number"&&isFinite(V))){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"};s===null?s=[ae]:s.push(ae),n++}var R=fe===n}else var R=!0;if(R){if(j.byteOffset!==void 0){let V=j.byteOffset;const fe=n;if(!(typeof V=="number"&&isFinite(V))){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"};s===null?s=[ae]:s.push(ae),n++}var R=fe===n}else var R=!0;if(R)if(j.length!==void 0){let V=j.length;const fe=n;if(!(typeof V=="number"&&isFinite(V))){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"};s===null?s=[ae]:s.push(ae),n++}var R=fe===n}else var R=!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"};s===null?s=[Q]:s.push(Q),n++}var h=se===n;if(Z=Z||h,!Z){const Q=n;if(n===Q)if(j&&typeof j=="object"&&!Array.isArray(j)){let V;if(j.lastModified===void 0&&(V="lastModified")||j.name===void 0&&(V="name")||j.size===void 0&&(V="size")||j.type===void 0&&(V="type")||j.webkitRelativePath===void 0&&(V="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:V},message:"must have required property '"+V+"'"};s===null?s=[fe]:s.push(fe),n++}else{const fe=n;for(const ie in j)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"};s===null?s=[ae]:s.push(ae),n++;break}if(fe===n){if(j.size!==void 0){let ie=j.size;const ae=n;if(!(typeof ie=="number"&&isFinite(ie))){const Pe={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"};s===null?s=[Pe]:s.push(Pe),n++}var y=ae===n}else var y=!0;if(y){if(j.type!==void 0){const ie=n;if(typeof j.type!="string"){const Pe={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"};s===null?s=[Pe]:s.push(Pe),n++}var y=ie===n}else var y=!0;if(y){if(j.lastModified!==void 0){let ie=j.lastModified;const ae=n;if(!(typeof ie=="number"&&isFinite(ie))){const Ce={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"};s===null?s=[Ce]:s.push(Ce),n++}var y=ae===n}else var y=!0;if(y){if(j.name!==void 0){const ie=n;if(typeof j.name!="string"){const Pe={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"};s===null?s=[Pe]:s.push(Pe),n++}var y=ie===n}else var y=!0;if(y)if(j.webkitRelativePath!==void 0){const ie=n;if(typeof j.webkitRelativePath!="string"){const Pe={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"};s===null?s=[Pe]:s.push(Pe),n++}var y=ie===n}else var y=!0}}}}}}else{const V={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"};s===null?s=[V]:s.push(V),n++}var h=Q===n;Z=Z||h}}if(Z)n=M,s!==null&&(M?s.length=M:s=null);else{const se={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"};s===null?s=[se]:s.push(se),n++}var _=U===n;if(!_)break}else{const I={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[I]:s.push(I),n++}var p=P===n;H=H||p}}if(H)n=T,s!==null&&(T?s.length=T:s=null);else{const L={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[L]:s.push(L),n++,bt.errors=s,!1}var o=D===n}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=s,n===0}const Db={properties:{relativeUri:{type:"string",description:"Request path following the domain:port part – after any URL rewriting rules (e.g. apache .htaccess) have been applied."},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 Me(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const R=n;for(const y in e)if(!kd.call(Db.properties,y))return Me.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(R===n){if(e.relativeUri!==void 0){const y=n;if(typeof e.relativeUri!="string")return Me.errors=[{instancePath:t+"/relativeUri",schemaPath:"#/properties/relativeUri/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}else var o=!0;if(o){if(e.scriptPath!==void 0){const y=n;if(typeof e.scriptPath!="string")return Me.errors=[{instancePath:t+"/scriptPath",schemaPath:"#/properties/scriptPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}else var o=!0;if(o){if(e.protocol!==void 0){const y=n;if(typeof e.protocol!="string")return Me.errors=[{instancePath:t+"/protocol",schemaPath:"#/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}else var o=!0;if(o){if(e.method!==void 0){let y=e.method;const _=n;if(typeof y!="string")return Me.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 Me.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Ed.enum},message:"must be equal to one of the allowed values"}],!1;var o=_===n}else var o=!0;if(o){if(e.headers!==void 0){let y=e.headers;const _=n;if(n===n)if(y&&typeof y=="object"&&!Array.isArray(y))for(const k in y){const D=n;if(typeof y[k]!="string")return Me.errors=[{instancePath:t+"/headers/"+k.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=D===n;if(!f)break}else return Me.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=_===n}else var o=!0;if(o){if(e.body!==void 0){let y=e.body;const _=n,b=n;let O=!1;const k=n;if(typeof y!="string"){const T={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[T]:s.push(T),n++}var p=k===n;if(O=O||p,!O){const T=n;if(n===T)if(y&&typeof y=="object"&&!Array.isArray(y)){let E;if(y.BYTES_PER_ELEMENT===void 0&&(E="BYTES_PER_ELEMENT")||y.buffer===void 0&&(E="buffer")||y.byteLength===void 0&&(E="byteLength")||y.byteOffset===void 0&&(E="byteOffset")||y.length===void 0&&(E="length")){const A={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:E},message:"must have required property '"+E+"'"};s===null?s=[A]:s.push(A),n++}else{const A=n;for(const L in y)if(!(L==="BYTES_PER_ELEMENT"||L==="buffer"||L==="byteLength"||L==="byteOffset"||L==="length")){let S=y[L];const P=n;if(!(typeof S=="number"&&isFinite(S))){const $={instancePath:t+"/body/"+L.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[$]:s.push($),n++}var c=P===n;if(!c)break}if(A===n){if(y.BYTES_PER_ELEMENT!==void 0){let L=y.BYTES_PER_ELEMENT;const S=n;if(!(typeof L=="number"&&isFinite(L))){const P={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[P]:s.push(P),n++}var m=S===n}else var m=!0;if(m){if(y.buffer!==void 0){let L=y.buffer;const S=n;if(n===S)if(L&&typeof L=="object"&&!Array.isArray(L)){let $;if(L.byteLength===void 0&&($="byteLength")){const I={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:$},message:"must have required property '"+$+"'"};s===null?s=[I]:s.push(I),n++}else{const I=n;for(const j in L)if(j!=="byteLength"){const U={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:j},message:"must NOT have additional properties"};s===null?s=[U]:s.push(U),n++;break}if(I===n&&L.byteLength!==void 0){let j=L.byteLength;if(!(typeof j=="number"&&isFinite(j))){const U={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[U]:s.push(U),n++}}}}else{const $={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[$]:s.push($),n++}var m=S===n}else var m=!0;if(m){if(y.byteLength!==void 0){let L=y.byteLength;const S=n;if(!(typeof L=="number"&&isFinite(L))){const $={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[$]:s.push($),n++}var m=S===n}else var m=!0;if(m){if(y.byteOffset!==void 0){let L=y.byteOffset;const S=n;if(!(typeof L=="number"&&isFinite(L))){const $={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[$]:s.push($),n++}var m=S===n}else var m=!0;if(m)if(y.length!==void 0){let L=y.length;const S=n;if(!(typeof L=="number"&&isFinite(L))){const $={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[$]:s.push($),n++}var m=S===n}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"};s===null?s=[E]:s.push(E),n++}var p=T===n;O=O||p}if(O)n=b,s!==null&&(b?s.length=b:s=null);else{const T={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[T]:s.push(T),n++,Me.errors=s,!1}var o=_===n}else var o=!0;if(o){if(e.env!==void 0){let y=e.env;const _=n;if(n===_)if(y&&typeof y=="object"&&!Array.isArray(y))for(const O in y){const k=n;if(typeof y[O]!="string")return Me.errors=[{instancePath:t+"/env/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/env/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=k===n;if(!h)break}else return Me.errors=[{instancePath:t+"/env",schemaPath:"#/properties/env/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=_===n}else var o=!0;if(o){if(e.$_SERVER!==void 0){let y=e.$_SERVER;const _=n;if(n===_)if(y&&typeof y=="object"&&!Array.isArray(y))for(const O in y){const k=n;if(typeof y[O]!="string")return Me.errors=[{instancePath:t+"/$_SERVER/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/%24_SERVER/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=k===n;if(!g)break}else return Me.errors=[{instancePath:t+"/$_SERVER",schemaPath:"#/properties/%24_SERVER/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=_===n}else var o=!0;if(o)if(e.code!==void 0){const y=n;if(typeof e.code!="string")return Me.errors=[{instancePath:t+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}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=s,n===0}function w(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.pluginPath===void 0&&(N="pluginPath")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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===n}else var o=!0;if(o)if(l.caption!==void 0){const x=n;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===n}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===n}else var f=!0;if(f){if(e.step!==void 0){let l=e.step;const F=n;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===n}else var f=!0;if(f){if(e.pluginPath!==void 0){const l=n;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===n}else var f=!0;if(f)if(e.pluginName!==void 0){const l=n;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===n}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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step")||e.themeFolderName===void 0&&(N="themeFolderName"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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===n}else var p=!0;if(p)if(l.caption!==void 0){const x=n;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===n}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===n}else var c=!0;if(c){if(e.step!==void 0){let l=e.step;const F=n;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===n}else var c=!0;if(c)if(e.themeFolderName!==void 0){const l=n;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===n}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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.fromPath===void 0&&(N="fromPath")||e.step===void 0&&(N="step")||e.toPath===void 0&&(N="toPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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===n}else var m=!0;if(m)if(l.caption!==void 0){const x=n;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===n}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===n}else var h=!0;if(h){if(e.step!==void 0){let l=e.step;const F=n;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===n}else var h=!0;if(h){if(e.fromPath!==void 0){const l=n;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===n}else var h=!0;if(h)if(e.toPath!==void 0){const l=n;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===n}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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.consts===void 0&&(N="consts")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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 g=re===n}else var g=!0;if(g)if(l.caption!==void 0){const x=n;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 g=x===n}else var g=!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 R=F===n}else var R=!0;if(R){if(e.step!==void 0){let l=e.step;const F=n;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 R=F===n}else var R=!0;if(R){if(e.consts!==void 0){let l=e.consts;const F=n;if(n===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 R=F===n}else var R=!0;if(R){if(e.method!==void 0){let l=e.method;const F=n;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:Es.oneOf[3].properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var R=F===n}else var R=!0;if(R)if(e.virtualize!==void 0){const l=n;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 R=l===n}else var R=!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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.siteUrl===void 0&&(N="siteUrl")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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===n}else var y=!0;if(y)if(l.caption!==void 0){const x=n;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===n}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 _=F===n}else var _=!0;if(_){if(e.step!==void 0){let l=e.step;const F=n;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 _=F===n}else var _=!0;if(_)if(e.siteUrl!==void 0){const l=n;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 _=l===n}else var _=!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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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===n}else var b=!0;if(b)if(l.caption!==void 0){const x=n;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===n}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 O=F===n}else var O=!0;if(O){if(e.step!==void 0){let l=e.step;const F=n;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 O=F===n}else var O=!0;if(O)if(e.wpCliPath!==void 0){const l=n;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 O=l===n}else var O=!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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.file===void 0&&(N="file")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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 k=re===n}else var k=!0;if(k)if(l.caption!==void 0){const x=n;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 k=x===n}else var k=!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 D=F===n}else var D=!0;if(D){if(e.step!==void 0){let l=e.step;const F=n;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 D=F===n}else var D=!0;if(D){if(e.file!==void 0){const l=n;ke(e.file,{instancePath:t+"/file",parentData:e,parentDataProperty:"file",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var D=l===n}else var D=!0;if(D)if(e.importer!==void 0){let l=e.importer;const F=n;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:Es.oneOf[6].properties.importer.enum},message:"must be equal to one of the allowed values"}],!1;var D=F===n}else var D=!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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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 T=re===n}else var T=!0;if(T)if(l.caption!==void 0){const x=n;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 T=x===n}else var T=!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===n}else var H=!0;if(H){if(e.step!==void 0){let l=e.step;const F=n;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===n}else var H=!0;if(H)if(e.themeSlug!==void 0){const l=n;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===n}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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step")||e.wordPressFilesZip===void 0&&(N="wordPressFilesZip"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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 E=re===n}else var E=!0;if(E)if(l.caption!==void 0){const x=n;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 E=x===n}else var E=!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 A=F===n}else var A=!0;if(A){if(e.step!==void 0){let l=e.step;const F=n;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 A=F===n}else var A=!0;if(A){if(e.wordPressFilesZip!==void 0){const l=n;ke(e.wordPressFilesZip,{instancePath:t+"/wordPressFilesZip",parentData:e,parentDataProperty:"wordPressFilesZip",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var A=l===n}else var A=!0;if(A)if(e.pathInZip!==void 0){const l=n;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 A=l===n}else var A=!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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.pluginData===void 0&&(N="pluginData")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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 L=re===n}else var L=!0;if(L)if(l.caption!==void 0){const x=n;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 L=x===n}else var L=!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 S=F===n}else var S=!0;if(S){if(e.ifAlreadyInstalled!==void 0){let l=e.ifAlreadyInstalled;const F=n;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:Es.oneOf[9].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var S=F===n}else var S=!0;if(S){if(e.step!==void 0){let l=e.step;const F=n;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 S=F===n}else var S=!0;if(S){if(e.pluginData!==void 0){let l=e.pluginData;const F=n,te=n;let x=!1;const re=n;ke(l,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var P=re===n;if(x=x||P,!x){const xe=n;$t(l,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:a})||(s=s===null?$t.errors:s.concat($t.errors),n=s.length);var P=xe===n;x=x||P}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const xe={instancePath:t+"/pluginData",schemaPath:"#/oneOf/9/properties/pluginData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[xe]:s.push(xe),n++,w.errors=s,!1}var S=F===n}else var S=!0;if(S){if(e.pluginZipFile!==void 0){const l=n;ke(e.pluginZipFile,{instancePath:t+"/pluginZipFile",parentData:e,parentDataProperty:"pluginZipFile",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var S=l===n}else var S=!0;if(S)if(e.options!==void 0){let l=e.options;const F=n;if(n===n)if(l&&typeof l=="object"&&!Array.isArray(l)){const re=n;for(const Oe in l)if(!(Oe==="activate"||Oe==="targetFolderName"))return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Oe},message:"must NOT have additional properties"}],!1;if(re===n){if(l.activate!==void 0){const Oe=n;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 $=Oe===n}else var $=!0;if($)if(l.targetFolderName!==void 0){const Oe=n;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 $=Oe===n}else var $=!0}}else return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var S=F===n}else var S=!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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step")||e.themeData===void 0&&(N="themeData"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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===n}else var I=!0;if(I)if(l.caption!==void 0){const x=n;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===n}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 j=F===n}else var j=!0;if(j){if(e.ifAlreadyInstalled!==void 0){let l=e.ifAlreadyInstalled;const F=n;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:Es.oneOf[10].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var j=F===n}else var j=!0;if(j){if(e.step!==void 0){let l=e.step;const F=n;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 j=F===n}else var j=!0;if(j){if(e.themeData!==void 0){let l=e.themeData;const F=n,te=n;let x=!1;const re=n;ke(l,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var U=re===n;if(x=x||U,!x){const xe=n;$t(l,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:a})||(s=s===null?$t.errors:s.concat($t.errors),n=s.length);var U=xe===n;x=x||U}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const xe={instancePath:t+"/themeData",schemaPath:"#/oneOf/10/properties/themeData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[xe]:s.push(xe),n++,w.errors=s,!1}var j=F===n}else var j=!0;if(j){if(e.themeZipFile!==void 0){const l=n;ke(e.themeZipFile,{instancePath:t+"/themeZipFile",parentData:e,parentDataProperty:"themeZipFile",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var j=l===n}else var j=!0;if(j)if(e.options!==void 0){let l=e.options;const F=n;if(n===n)if(l&&typeof l=="object"&&!Array.isArray(l)){const re=n;for(const Oe in l)if(!(Oe==="activate"||Oe==="importStarterContent"||Oe==="targetFolderName"))return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Oe},message:"must NOT have additional properties"}],!1;if(re===n){if(l.activate!==void 0){const Oe=n;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=Oe===n}else var M=!0;if(M){if(l.importStarterContent!==void 0){const Oe=n;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=Oe===n}else var M=!0;if(M)if(l.targetFolderName!==void 0){const Oe=n;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=Oe===n}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 j=F===n}else var j=!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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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===n}else var Z=!0;if(Z)if(l.caption!==void 0){const x=n;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===n}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===n}else var z=!0;if(z){if(e.step!==void 0){let l=e.step;const F=n;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===n}else var z=!0;if(z){if(e.username!==void 0){const l=n;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===n}else var z=!0;if(z)if(e.password!==void 0){const l=n;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===n}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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.path===void 0&&(N="path")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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 se=re===n}else var se=!0;if(se)if(l.caption!==void 0){const x=n;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 se=x===n}else var se=!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 G=F===n}else var G=!0;if(G){if(e.step!==void 0){let l=e.step;const F=n;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 G=F===n}else var G=!0;if(G)if(e.path!==void 0){const l=n;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 G=l===n}else var G=!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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.fromPath===void 0&&(N="fromPath")||e.step===void 0&&(N="step")||e.toPath===void 0&&(N="toPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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===n}else var Q=!0;if(Q)if(l.caption!==void 0){const x=n;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===n}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===n}else var ee=!0;if(ee){if(e.step!==void 0){let l=e.step;const F=n;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===n}else var ee=!0;if(ee){if(e.fromPath!==void 0){const l=n;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===n}else var ee=!0;if(ee)if(e.toPath!==void 0){const l=n;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===n}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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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 V=re===n}else var V=!0;if(V)if(l.caption!==void 0){const x=n;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 V=x===n}else var V=!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===n}else var fe=!0;if(fe)if(e.step!==void 0){let l=e.step;const F=n;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===n}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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.request===void 0&&(N="request")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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===n}else var ie=!0;if(ie)if(l.caption!==void 0){const x=n;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===n}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===n}else var ae=!0;if(ae){if(e.step!==void 0){let l=e.step;const F=n;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===n}else var ae=!0;if(ae)if(e.request!==void 0){const l=n;bt(e.request,{instancePath:t+"/request",parentData:e,parentDataProperty:"request",rootData:a})||(s=s===null?bt.errors:s.concat(bt.errors),n=s.length);var ae=l===n}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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.path===void 0&&(N="path")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/16/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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 Pe=re===n}else var Pe=!0;if(Pe)if(l.caption!==void 0){const x=n;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 Pe=x===n}else var Pe=!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 Ce=F===n}else var Ce=!0;if(Ce){if(e.step!==void 0){let l=e.step;const F=n;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 Ce=F===n}else var Ce=!0;if(Ce)if(e.path!==void 0){const l=n;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 Ce=l===n}else var Ce=!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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.path===void 0&&(N="path")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/17/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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 Xe=re===n}else var Xe=!0;if(Xe)if(l.caption!==void 0){const x=n;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 Xe=x===n}else var Xe=!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 tt=F===n}else var tt=!0;if(tt){if(e.step!==void 0){let l=e.step;const F=n;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 tt=F===n}else var tt=!0;if(tt)if(e.path!==void 0){const l=n;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 tt=l===n}else var tt=!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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.code===void 0&&(N="code")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/18/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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 St=re===n}else var St=!0;if(St)if(l.caption!==void 0){const x=n;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 St=x===n}else var St=!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 $e=F===n}else var $e=!0;if($e){if(e.step!==void 0){let l=e.step;const F=n;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 $e=F===n}else var $e=!0;if($e)if(e.code!==void 0){let l=e.code;const F=n,te=n;let x=!1;const re=n;if(typeof l!="string"){const xe={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[xe]:s.push(xe),n++}var De=re===n;if(x=x||De,!x){const xe=n;if(n===xe)if(l&&typeof l=="object"&&!Array.isArray(l)){let Ke;if(l.filename===void 0&&(Ke="filename")||l.content===void 0&&(Ke="content")){const Qt={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/required",keyword:"required",params:{missingProperty:Ke},message:"must have required property '"+Ke+"'"};s===null?s=[Qt]:s.push(Qt),n++}else{const Qt=n;for(const Ue in l)if(!(Ue==="filename"||Ue==="content")){const Bt={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Ue},message:"must NOT have additional properties"};s===null?s=[Bt]:s.push(Bt),n++;break}if(Qt===n){if(l.filename!==void 0){const Ue=n;if(typeof l.filename!="string"){const Bt={instancePath:t+"/code/filename",schemaPath:"#/oneOf/18/properties/code/anyOf/1/properties/filename/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Bt]:s.push(Bt),n++}var ft=Ue===n}else var ft=!0;if(ft)if(l.content!==void 0){const Ue=n;if(typeof l.content!="string"){const we={instancePath:t+"/code/content",schemaPath:"#/oneOf/18/properties/code/anyOf/1/properties/content/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[we]:s.push(we),n++}var ft=Ue===n}else var ft=!0}}}else{const Ke={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Ke]:s.push(Ke),n++}var De=xe===n;x=x||De}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const xe={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[xe]:s.push(xe),n++,w.errors=s,!1}var $e=F===n}else var $e=!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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.options===void 0&&(N="options")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/19/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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 Le=re===n}else var Le=!0;if(Le)if(l.caption!==void 0){const x=n;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 Le=x===n}else var Le=!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===n}else var v=!0;if(v){if(e.step!==void 0){let l=e.step;const F=n;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===n}else var v=!0;if(v)if(e.options!==void 0){const l=n;Me(e.options,{instancePath:t+"/options",parentData:e,parentDataProperty:"options",rootData:a})||(s=s===null?Me.errors:s.concat(Me.errors),n=s.length);var v=l===n}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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.options===void 0&&(N="options")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/20/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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===n}else var u=!0;if(u)if(l.caption!==void 0){const x=n;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===n}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===n}else var d=!0;if(d){if(e.step!==void 0){let l=e.step;const F=n;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===n}else var d=!0;if(d)if(e.options!==void 0){let l=e.options;const F=n;if(n===n)if(l&&typeof l=="object"&&!Array.isArray(l)){const re=n;for(const Oe in l)if(!(Oe==="adminUsername"||Oe==="adminPassword"))return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Oe},message:"must NOT have additional properties"}],!1;if(re===n){if(l.adminUsername!==void 0){const Oe=n;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 C=Oe===n}else var C=!0;if(C)if(l.adminPassword!==void 0){const Oe=n;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 C=Oe===n}else var C=!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===n}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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.sql===void 0&&(N="sql")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/21/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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===n}else var B=!0;if(B)if(l.caption!==void 0){const x=n;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===n}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===n}else var K=!0;if(K){if(e.step!==void 0){let l=e.step;const F=n;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===n}else var K=!0;if(K)if(e.sql!==void 0){const l=n;ke(e.sql,{instancePath:t+"/sql",parentData:e,parentDataProperty:"sql",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var K=l===n}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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.options===void 0&&(N="options")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/22/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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===n}else var X=!0;if(X)if(l.caption!==void 0){const x=n;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===n}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===n}else var pe=!0;if(pe){if(e.step!==void 0){let l=e.step;const F=n;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===n}else var pe=!0;if(pe)if(e.options!==void 0){let l=e.options;const F=n;if(n===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===n}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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.extractToPath===void 0&&(N="extractToPath")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/23/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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===n}else var _e=!0;if(_e)if(l.caption!==void 0){const x=n;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===n}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===n}else var he=!0;if(he){if(e.step!==void 0){let l=e.step;const F=n;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===n}else var he=!0;if(he){if(e.zipFile!==void 0){const l=n;ke(e.zipFile,{instancePath:t+"/zipFile",parentData:e,parentDataProperty:"zipFile",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var he=l===n}else var he=!0;if(he){if(e.zipPath!==void 0){const l=n;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===n}else var he=!0;if(he)if(e.extractToPath!==void 0){const l=n;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===n}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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.meta===void 0&&(N="meta")||e.step===void 0&&(N="step")||e.userId===void 0&&(N="userId"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/24/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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 Be=re===n}else var Be=!0;if(Be)if(l.caption!==void 0){const x=n;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 Be=x===n}else var Be=!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===n}else var ue=!0;if(ue){if(e.step!==void 0){let l=e.step;const F=n;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===n}else var ue=!0;if(ue){if(e.meta!==void 0){let l=e.meta;const F=n;if(n===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===n}else var ue=!0;if(ue)if(e.userId!==void 0){let l=e.userId;const F=n;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===n}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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.data===void 0&&(N="data")||e.path===void 0&&(N="path")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/25/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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 mt=re===n}else var mt=!0;if(mt)if(l.caption!==void 0){const x=n;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 mt=x===n}else var mt=!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 rt=F===n}else var rt=!0;if(rt){if(e.step!==void 0){let l=e.step;const F=n;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 rt=F===n}else var rt=!0;if(rt){if(e.path!==void 0){const l=n;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 rt=l===n}else var rt=!0;if(rt)if(e.data!==void 0){let l=e.data;const F=n,te=n;let x=!1;const re=n;ke(l,{instancePath:t+"/data",parentData:e,parentDataProperty:"data",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var Ot=re===n;if(x=x||Ot,!x){const xe=n;if(typeof l!="string"){const Ke={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Ke]:s.push(Ke),n++}var Ot=xe===n;if(x=x||Ot,!x){const Ke=n;if(n===Ke)if(l&&typeof l=="object"&&!Array.isArray(l)){let Ue;if(l.BYTES_PER_ELEMENT===void 0&&(Ue="BYTES_PER_ELEMENT")||l.buffer===void 0&&(Ue="buffer")||l.byteLength===void 0&&(Ue="byteLength")||l.byteOffset===void 0&&(Ue="byteOffset")||l.length===void 0&&(Ue="length")){const Bt={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/required",keyword:"required",params:{missingProperty:Ue},message:"must have required property '"+Ue+"'"};s===null?s=[Bt]:s.push(Bt),n++}else{const Bt=n;for(const we in l)if(!(we==="BYTES_PER_ELEMENT"||we==="buffer"||we==="byteLength"||we==="byteOffset"||we==="length")){let yt=l[we];const os=n;if(!(typeof yt=="number"&&isFinite(yt))){const ze={instancePath:t+"/data/"+we.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/oneOf/25/properties/data/anyOf/2/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ze]:s.push(ze),n++}var xi=os===n;if(!xi)break}if(Bt===n){if(l.BYTES_PER_ELEMENT!==void 0){let we=l.BYTES_PER_ELEMENT;const yt=n;if(!(typeof we=="number"&&isFinite(we))){const os={instancePath:t+"/data/BYTES_PER_ELEMENT",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[os]:s.push(os),n++}var nt=yt===n}else var nt=!0;if(nt){if(l.buffer!==void 0){let we=l.buffer;const yt=n;if(n===yt)if(we&&typeof we=="object"&&!Array.isArray(we)){let ze;if(we.byteLength===void 0&&(ze="byteLength")){const ls={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/required",keyword:"required",params:{missingProperty:ze},message:"must have required property '"+ze+"'"};s===null?s=[ls]:s.push(ls),n++}else{const ls=n;for(const gn in we)if(gn!=="byteLength"){const _n={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:gn},message:"must NOT have additional properties"};s===null?s=[_n]:s.push(_n),n++;break}if(ls===n&&we.byteLength!==void 0){let gn=we.byteLength;if(!(typeof gn=="number"&&isFinite(gn))){const _n={instancePath:t+"/data/buffer/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[_n]:s.push(_n),n++}}}}else{const ze={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[ze]:s.push(ze),n++}var nt=yt===n}else var nt=!0;if(nt){if(l.byteLength!==void 0){let we=l.byteLength;const yt=n;if(!(typeof we=="number"&&isFinite(we))){const ze={instancePath:t+"/data/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ze]:s.push(ze),n++}var nt=yt===n}else var nt=!0;if(nt){if(l.byteOffset!==void 0){let we=l.byteOffset;const yt=n;if(!(typeof we=="number"&&isFinite(we))){const ze={instancePath:t+"/data/byteOffset",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ze]:s.push(ze),n++}var nt=yt===n}else var nt=!0;if(nt)if(l.length!==void 0){let we=l.length;const yt=n;if(!(typeof we=="number"&&isFinite(we))){const ze={instancePath:t+"/data/length",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ze]:s.push(ze),n++}var nt=yt===n}else var nt=!0}}}}}}else{const Ue={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Ue]:s.push(Ue),n++}var Ot=Ke===n;x=x||Ot}}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const xe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[xe]:s.push(xe),n++,w.errors=s,!1}var rt=F===n}else var rt=!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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.filesTree===void 0&&(N="filesTree")||e.step===void 0&&(N="step")||e.writeToPath===void 0&&(N="writeToPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/26/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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 Mr=re===n}else var Mr=!0;if(Mr)if(l.caption!==void 0){const x=n;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 Mr=x===n}else var Mr=!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===n}else var W=!0;if(W){if(e.step!==void 0){let l=e.step;const F=n;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===n}else var W=!0;if(W){if(e.writeToPath!==void 0){const l=n;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===n}else var W=!0;if(W)if(e.filesTree!==void 0){const l=n;$t(e.filesTree,{instancePath:t+"/filesTree",parentData:e,parentDataProperty:"filesTree",rootData:a})||(s=s===null?$t.errors:s.concat($t.errors),n=s.length);var W=l===n}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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.command===void 0&&(N="command")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/27/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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===n}else var Y=!0;if(Y)if(l.caption!==void 0){const x=n;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===n}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===n}else var q=!0;if(q){if(e.step!==void 0){let l=e.step;const F=n;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===n}else var q=!0;if(q){if(e.command!==void 0){let l=e.command;const F=n,te=n;let x=!1;const re=n;if(typeof l!="string"){const xe={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[xe]:s.push(xe),n++}var J=re===n;if(x=x||J,!x){const xe=n;if(n===xe)if(Array.isArray(l)){var ne=!0;const Ke=l.length;for(let Qt=0;Qt<Ke;Qt++){const Ue=n;if(typeof l[Qt]!="string"){const we={instancePath:t+"/command/"+Qt,schemaPath:"#/oneOf/27/properties/command/anyOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[we]:s.push(we),n++}var ne=Ue===n;if(!ne)break}}else{const Ke={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};s===null?s=[Ke]:s.push(Ke),n++}var J=xe===n;x=x||J}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const xe={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[xe]:s.push(xe),n++,w.errors=s,!1}var q=F===n}else var q=!0;if(q)if(e.wpCliPath!==void 0){const l=n;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===n}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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.language===void 0&&(N="language")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/28/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;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===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;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===n){if(l.weight!==void 0){let x=l.weight;const re=n;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===n}else var le=!0;if(le)if(l.caption!==void 0){const x=n;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===n}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===n}else var de=!0;if(de){if(e.step!==void 0){let l=e.step;const F=n;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===n}else var de=!0;if(de)if(e.language!==void 0){const l=n;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===n}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=s,n===0}function me(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const H=n;for(const E in e)if(!kd.call(Ob.properties,E))return me.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:E},message:"must NOT have additional properties"}],!1;if(H===n){if(e.landingPage!==void 0){const E=n;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=E===n}else var o=!0;if(o){if(e.description!==void 0){const E=n;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=E===n}else var o=!0;if(o){if(e.meta!==void 0){let E=e.meta;const A=n;if(n===A)if(E&&typeof E=="object"&&!Array.isArray(E)){let S;if(E.title===void 0&&(S="title")||E.author===void 0&&(S="author"))return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty:S},message:"must have required property '"+S+"'"}],!1;{const P=n;for(const $ in E)if(!($==="title"||$==="description"||$==="author"||$==="categories"))return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:$},message:"must NOT have additional properties"}],!1;if(P===n){if(E.title!==void 0){const $=n;if(typeof E.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=$===n}else var f=!0;if(f){if(E.description!==void 0){const $=n;if(typeof E.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=$===n}else var f=!0;if(f){if(E.author!==void 0){const $=n;if(typeof E.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=$===n}else var f=!0;if(f)if(E.categories!==void 0){let $=E.categories;const I=n;if(n===I)if(Array.isArray($)){var p=!0;const U=$.length;for(let M=0;M<U;M++){const Z=n;if(typeof $[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===n;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===n}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=A===n}else var o=!0;if(o){if(e.preferredVersions!==void 0){let E=e.preferredVersions;const A=n;if(n===A)if(E&&typeof E=="object"&&!Array.isArray(E)){let S;if(E.php===void 0&&(S="php")||E.wp===void 0&&(S="wp"))return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/required",keyword:"required",params:{missingProperty:S},message:"must have required property '"+S+"'"}],!1;{const P=n;for(const $ in E)if(!($==="php"||$==="wp"))return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:$},message:"must NOT have additional properties"}],!1;if(P===n){if(E.php!==void 0){let $=E.php;const I=n,j=n;let U=!1;const M=n;if(typeof $!="string"){const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Z]:s.push(Z),n++}if(!($==="8.4"||$==="8.3"||$==="8.2"||$==="8.1"||$==="8.0"||$==="7.4"||$==="7.3"||$==="7.2")){const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/enum",keyword:"enum",params:{allowedValues:Lb.enum},message:"must be equal to one of the allowed values"};s===null?s=[Z]:s.push(Z),n++}var c=M===n;if(U=U||c,!U){const Z=n;if(typeof $!="string"){const se={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[se]:s.push(se),n++}if($!=="latest"){const se={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/const",keyword:"const",params:{allowedValue:"latest"},message:"must be equal to constant"};s===null?s=[se]:s.push(se),n++}var c=Z===n;U=U||c}if(U)n=j,s!==null&&(j?s.length=j:s=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 s===null?s=[Z]:s.push(Z),n++,me.errors=s,!1}var m=I===n}else var m=!0;if(m)if(E.wp!==void 0){const $=n;if(typeof E.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=$===n}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=A===n}else var o=!0;if(o){if(e.features!==void 0){let E=e.features;const A=n;if(n===A)if(E&&typeof E=="object"&&!Array.isArray(E)){const S=n;for(const P in E)if(!(P==="intl"||P==="networking"))return me.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:P},message:"must NOT have additional properties"}],!1;if(S===n){if(E.intl!==void 0){const P=n;if(typeof E.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=P===n}else var h=!0;if(h)if(E.networking!==void 0){const P=n;if(typeof E.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=P===n}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=A===n}else var o=!0;if(o){if(e.extraLibraries!==void 0){let E=e.extraLibraries;const A=n;if(n===A)if(Array.isArray(E)){var g=!0;const S=E.length;for(let P=0;P<S;P++){let $=E[P];const I=n;if(typeof $!="string")return me.errors=[{instancePath:t+"/extraLibraries/"+P,schemaPath:"#/definitions/ExtraLibrary/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if($!=="wp-cli")return me.errors=[{instancePath:t+"/extraLibraries/"+P,schemaPath:"#/definitions/ExtraLibrary/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var g=I===n;if(!g)break}}else return me.errors=[{instancePath:t+"/extraLibraries",schemaPath:"#/properties/extraLibraries/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=A===n}else var o=!0;if(o){if(e.constants!==void 0){let E=e.constants;const A=n;if(n===n)if(E&&typeof E=="object"&&!Array.isArray(E))for(const P in E){let $=E[P];const I=n;if(typeof $!="string"&&typeof $!="boolean"&&!(typeof $=="number"&&isFinite($)))return me.errors=[{instancePath:t+"/constants/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPConstants/additionalProperties/type",keyword:"type",params:{type:Rb.additionalProperties.type},message:"must be string,boolean,number"}],!1;var R=I===n;if(!R)break}else return me.errors=[{instancePath:t+"/constants",schemaPath:"#/definitions/PHPConstants/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=A===n}else var o=!0;if(o){if(e.plugins!==void 0){let E=e.plugins;const A=n;if(n===A)if(Array.isArray(E)){var y=!0;const S=E.length;for(let P=0;P<S;P++){let $=E[P];const I=n,j=n;let U=!1;const M=n;if(typeof $!="string"){const z={instancePath:t+"/plugins/"+P,schemaPath:"#/properties/plugins/items/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[z]:s.push(z),n++}var _=M===n;if(U=U||_,!U){const z=n;ke($,{instancePath:t+"/plugins/"+P,parentData:E,parentDataProperty:P,rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var _=z===n;U=U||_}if(U)n=j,s!==null&&(j?s.length=j:s=null);else{const z={instancePath:t+"/plugins/"+P,schemaPath:"#/properties/plugins/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[z]:s.push(z),n++,me.errors=s,!1}var y=I===n;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=A===n}else var o=!0;if(o){if(e.siteOptions!==void 0){let E=e.siteOptions;const A=n;if(n===A)if(E&&typeof E=="object"&&!Array.isArray(E)){const S=n;for(const P in E)if(P!=="blogname"){const $=n;if(typeof E[P]!="string")return me.errors=[{instancePath:t+"/siteOptions/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/siteOptions/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var b=$===n;if(!b)break}if(S===n&&E.blogname!==void 0&&typeof E.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=A===n}else var o=!0;if(o){if(e.login!==void 0){let E=e.login;const A=n,L=n;let S=!1;const P=n;if(typeof E!="boolean"){const I={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[I]:s.push(I),n++}var O=P===n;if(S=S||O,!S){const I=n;if(n===I)if(E&&typeof E=="object"&&!Array.isArray(E)){let U;if(E.username===void 0&&(U="username")||E.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+"'"};s===null?s=[M]:s.push(M),n++}else{const M=n;for(const Z in E)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"};s===null?s=[z]:s.push(z),n++;break}if(M===n){if(E.username!==void 0){const Z=n;if(typeof E.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"};s===null?s=[z]:s.push(z),n++}var k=Z===n}else var k=!0;if(k)if(E.password!==void 0){const Z=n;if(typeof E.password!="string"){const se={instancePath:t+"/login/password",schemaPath:"#/properties/login/anyOf/1/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[se]:s.push(se),n++}var k=Z===n}else var k=!0}}}else{const U={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[U]:s.push(U),n++}var O=I===n;S=S||O}if(S)n=L,s!==null&&(L?s.length=L:s=null);else{const I={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[I]:s.push(I),n++,me.errors=s,!1}var o=A===n}else var o=!0;if(o){if(e.steps!==void 0){let E=e.steps;const A=n;if(n===A)if(Array.isArray(E)){var D=!0;const S=E.length;for(let P=0;P<S;P++){let $=E[P];const I=n,j=n;let U=!1;const M=n;w($,{instancePath:t+"/steps/"+P,parentData:E,parentDataProperty:P,rootData:a})||(s=s===null?w.errors:s.concat(w.errors),n=s.length);var T=M===n;if(U=U||T,!U){const z=n;if(typeof $!="string"){const G={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[G]:s.push(G),n++}var T=z===n;if(U=U||T,!U){const G=n,Q={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};s===null?s=[Q]:s.push(Q),n++;var T=G===n;if(U=U||T,!U){const V=n;if(typeof $!="boolean"){const ie={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/3/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[ie]:s.push(ie),n++}if($!==!1){const ie={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/3/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};s===null?s=[ie]:s.push(ie),n++}var T=V===n;if(U=U||T,!U){const ie=n;if($!==null){const Pe={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/4/type",keyword:"type",params:{type:"null"},message:"must be null"};s===null?s=[Pe]:s.push(Pe),n++}var T=ie===n;U=U||T}}}}if(U)n=j,s!==null&&(j?s.length=j:s=null);else{const z={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[z]:s.push(z),n++,me.errors=s,!1}var D=I===n;if(!D)break}}else return me.errors=[{instancePath:t+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=A===n}else var o=!0;if(o)if(e.$schema!==void 0){const E=n;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=E===n}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=s,n===0}function Ns(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;return me(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?me.errors:s.concat(me.errors),n=s.length),Ns.errors=s,n===0}const{wpCLI:Hb,...Sp}=Cb,Fb={...Sp,"wp-cli":Hb,importFile:Sp.importWxr};async function vi(e,t={}){const r={...t};let i;return Wo(e)?(i=await Pd(e),r.streamBundledFile=function(...a){return e.read(...a)}):i=e,Bb(i,r)}function Wo(e){return e&&"read"in e&&typeof e.read=="function"}async function Pd(e){if(!Wo(e))return e;const r=await(await e.read("blueprint.json")).text();return JSON.parse(r)}function Bb(e,{progress:t=new ni,semaphore:r=new un({concurrency:3}),onStepCompleted:i=()=>{},onBlueprintValidated:a=()=>{},corsProxy:s,streamBundledFile:n,additionalSteps:o}={}){var y,_,b,O,k,D,T,H,E,A;e=structuredClone(e),e={...e,steps:(e.steps||[]).filter(Ub).filter(Wb)},e.steps=[...e.steps||[],...o||[]];for(const L of e.steps)!L||typeof L!="object"||(L.step==="importFile"?(L.step="importWxr",Te.warn('The "importFile" step is deprecated. Use "importWxr" instead.')):(L==null?void 0:L.step)==="installPlugin"&&"pluginZipFile"in L?(L.pluginData=L.pluginZipFile,Te.warn('The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.')):(L==null?void 0:L.step)==="installTheme"&&"themeZipFile"in L&&(L.themeData=L.themeZipFile,Te.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 L=e.plugins.map(S=>typeof S=="string"?S.startsWith("https://")?{resource:"url",url:S}:{resource:"wordpress.org/plugins",slug:S}:S).map(S=>({step:"installPlugin",pluginData:S}));e.steps.unshift(...L)}e.login&&e.steps.push({step:"login",...e.login===!0?{username:"admin"}:e.login});const f=((y=e.steps)==null?void 0:y.findIndex(L=>typeof L=="object"&&(L==null?void 0:L.step)&&["wp-cli","enableMultisite"].includes(L.step)))??-1;if((_=e==null?void 0:e.extraLibraries)!=null&&_.includes("wp-cli")||f!==-1){const L={step:"writeFile",data:Sb,path:Fo};f===-1?(b=e.steps)==null||b.push(L):(O=e.steps)==null||O.splice(f,0,L)}const p=(k=e.steps)==null?void 0:k.findIndex(L=>typeof L=="object"&&(L==null?void 0:L.step)==="importWxr");p!==void 0&&p>-1&&((D=e.steps)==null||D.splice(p,0,{step:"installPlugin",pluginData:{resource:"wordpress.org/plugins",slug:"wordpress-importer"}}));const{valid:c,errors:m}=jb(e);if(!c){const L=new Error(`Invalid blueprint: ${m[0].message} at ${m[0].instancePath}`);throw L.errors=m,L}a(e);const h=e.steps||[],g=h.reduce((L,S)=>{var P;return L+(((P=S.progress)==null?void 0:P.weight)||1)},0),R=h.map(L=>Mb(L,{semaphore:r,rootProgressTracker:t,totalProgressWeight:g,corsProxy:s,streamBundledFile:n}));return{versions:{php:Nb((T=e.preferredVersions)==null?void 0:T.php,ii,Hp),wp:((H=e.preferredVersions)==null?void 0:H.wp)||"latest"},features:{intl:((E=e.features)==null?void 0:E.intl)??!1,networking:((A=e.features)==null?void 0:A.networking)??!0},extraLibraries:e.extraLibraries||[],run:async L=>{try{for(const{resources:S}of R)for(const P of S)P.setPlayground(L),P.isAsync&&P.resolve().catch(()=>{});for(const[S,{run:P,step:$}]of Object.entries(R))try{const I=await P(L);i(I,$)}catch(I){throw new Error(`Error when executing the blueprint step #${S} (${JSON.stringify($)}) ${I instanceof Error?`: ${I.message}`:I}`,{cause:I})}}finally{try{const S=await L.pathToInternalUrl(e.landingPage||"/");await L.goTo("/index.php?playground-redirection-handler&next="+encodeURIComponent(S))}catch{}t.finish()}}}}function jb(e){var a;const t=Ns(e);if(t)return{valid:t};const r=new Set;for(const s of Ns.errors)s.schemaPath.startsWith("#/properties/steps/items/anyOf")||r.add(s.instancePath);const i=(a=Ns.errors)==null?void 0:a.filter(s=>!(s.schemaPath.startsWith("#/properties/steps/items/anyOf")&&r.has(s.instancePath)));return{valid:t,errors:i}}function Nb(e,t,r){return e&&t.includes(e)?e:r}function Ub(e){return!!(typeof e=="object"&&e)}function Wb(e){return["setPhpIniEntry","request"].includes(e.step)?(Te.warn(`The "${e.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`),!1):!0}function Mb(e,{semaphore:t,rootProgressTracker:r,totalProgressWeight:i,corsProxy:a,streamBundledFile:s}){var h;const n=r.stage((((h=e.progress)==null?void 0:h.weight)||1)/i),o={};for(const g of Object.keys(e)){let R=e[g];ib(R)&&(R=Jt.create(R,{semaphore:t,corsProxy:a,streamBundledFile:s})),o[g]=R}const f=async g=>{var R;try{return n.fillSlowly(),await Fb[e.step](g,await qb(o),{tracker:n,initialCaption:(R=e.progress)==null?void 0:R.caption})}finally{n.finish()}},p=kp(o),c=kp(o).filter(g=>g.isAsync),m=1/(c.length+1);for(const g of c)g.progress=n.stage(m);return{run:f,step:e,resources:p}}function kp(e){const t=[];for(const r in e){const i=e[r];i instanceof Jt&&t.push(i)}return t}async function qb(e){const t={};for(const r in e){const i=e[r];i instanceof Jt?t[r]=await i.resolve():t[r]=i}return t}async function Mo(e,t){await e.run(t)}async function Ad(){const e=(await Promise.resolve().then(()=>require("./blueprints-DY7omvFh.cjs"))).default;return new File([e],"blueprints.phar",{type:"application/zip"})}function Kb(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 zb(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)||(()=>{}),s=await Ad();i.writeFile("/tmp/blueprints.phar",new Uint8Array(await s.arrayBuffer()));const n=Kb(e.blueprint);let o="";switch(n.type){case"inline-file":i.writeFile("/tmp/blueprint.json",n.contents),o="/tmp/blueprint.json";break;case"file-reference":o=n.reference;break}const f=await i.onMessage(async h=>{try{const g=typeof h=="string"?JSON.parse(h):h;if(!g)return;await new Promise(R=>setTimeout(R,0)),g.type.startsWith("blueprint.")&&await a(g)}catch(g){Te.warn("Failed to parse message as JSON:",h,g)}});await(i==null?void 0:i.writeFile("/tmp/run-blueprints.php",`<?php
|
|
1236
|
+
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"]}]},$d={enum:["GET","POST","HEAD","OPTIONS","PATCH","PUT","DELETE"]};function vt(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let w;if(e.url===void 0&&(w="url"))return vt.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:w},message:"must have required property '"+w+"'"}],!1;{const L=n;for(const S in e)if(!(S==="method"||S==="url"||S==="headers"||S==="body"))return vt.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:S},message:"must NOT have additional properties"}],!1;if(L===n){if(e.method!==void 0){let S=e.method;const D=n;if(typeof S!="string")return vt.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(S==="GET"||S==="POST"||S==="HEAD"||S==="OPTIONS"||S==="PATCH"||S==="PUT"||S==="DELETE"))return vt.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:$d.enum},message:"must be equal to one of the allowed values"}],!1;var o=D===n}else var o=!0;if(o){if(e.url!==void 0){const S=n;if(typeof e.url!="string")return vt.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=S===n}else var o=!0;if(o){if(e.headers!==void 0){let S=e.headers;const D=n;if(n===n)if(S&&typeof S=="object"&&!Array.isArray(S))for(const k in S){const A=n;if(typeof S[k]!="string")return vt.errors=[{instancePath:t+"/headers/"+k.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=A===n;if(!l)break}else return vt.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=D===n}else var o=!0;if(o)if(e.body!==void 0){let S=e.body;const D=n,O=n;let H=!1;const k=n;if(typeof S!="string"){const $={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[$]:s.push($),n++}var p=k===n;if(H=H||p,!H){const $=n;if(n===$)if(S&&typeof S=="object"&&!Array.isArray(S)){let P;if(S.BYTES_PER_ELEMENT===void 0&&(P="BYTES_PER_ELEMENT")||S.buffer===void 0&&(P="buffer")||S.byteLength===void 0&&(P="byteLength")||S.byteOffset===void 0&&(P="byteOffset")||S.length===void 0&&(P="length")){const I={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:P},message:"must have required property '"+P+"'"};s===null?s=[I]:s.push(I),n++}else{const I=n;for(const R in S)if(!(R==="BYTES_PER_ELEMENT"||R==="buffer"||R==="byteLength"||R==="byteOffset"||R==="length")){let U=S[R];const j=n;if(!(typeof U=="number"&&isFinite(U))){const M={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[M]:s.push(M),n++}var c=j===n;if(!c)break}if(I===n){if(S.BYTES_PER_ELEMENT!==void 0){let R=S.BYTES_PER_ELEMENT;const U=n;if(!(typeof R=="number"&&isFinite(R))){const j={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[j]:s.push(j),n++}var h=U===n}else var h=!0;if(h){if(S.buffer!==void 0){let R=S.buffer;const U=n;if(n===U)if(R&&typeof R=="object"&&!Array.isArray(R)){let M;if(R.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+"'"};s===null?s=[Z]:s.push(Z),n++}else{const Z=n;for(const z in R)if(z!=="byteLength"){const se={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:z},message:"must NOT have additional properties"};s===null?s=[se]:s.push(se),n++;break}if(Z===n&&R.byteLength!==void 0){let z=R.byteLength;if(!(typeof z=="number"&&isFinite(z))){const se={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[se]:s.push(se),n++}}}}else{const M={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[M]:s.push(M),n++}var h=U===n}else var h=!0;if(h){if(S.byteLength!==void 0){let R=S.byteLength;const U=n;if(!(typeof R=="number"&&isFinite(R))){const M={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[M]:s.push(M),n++}var h=U===n}else var h=!0;if(h){if(S.byteOffset!==void 0){let R=S.byteOffset;const U=n;if(!(typeof R=="number"&&isFinite(R))){const M={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[M]:s.push(M),n++}var h=U===n}else var h=!0;if(h)if(S.length!==void 0){let R=S.length;const U=n;if(!(typeof R=="number"&&isFinite(R))){const M={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[M]:s.push(M),n++}var h=U===n}else var h=!0}}}}}}else{const P={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[P]:s.push(P),n++}var p=$===n;if(H=H||p,!H){const P=n;if(n===P)if(S&&typeof S=="object"&&!Array.isArray(S))for(const R in S){let U=S[R];const j=n,M=n;let Z=!1;const z=n;if(typeof U!="string"){const se={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[se]:s.push(se),n++}var m=z===n;if(Z=Z||m,!Z){const se=n;if(n===se)if(U&&typeof U=="object"&&!Array.isArray(U)){let Q;if(U.BYTES_PER_ELEMENT===void 0&&(Q="BYTES_PER_ELEMENT")||U.buffer===void 0&&(Q="buffer")||U.byteLength===void 0&&(Q="byteLength")||U.byteOffset===void 0&&(Q="byteOffset")||U.length===void 0&&(Q="length")){const ee={instancePath:t+"/body/"+R.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+"'"};s===null?s=[ee]:s.push(ee),n++}else{const ee=n;for(const V in U)if(!(V==="BYTES_PER_ELEMENT"||V==="buffer"||V==="byteLength"||V==="byteOffset"||V==="length")){let fe=U[V];const ie=n;if(!(typeof fe=="number"&&isFinite(fe))){const ae={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+V.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),n++}var _=ie===n;if(!_)break}if(ee===n){if(U.BYTES_PER_ELEMENT!==void 0){let V=U.BYTES_PER_ELEMENT;const fe=n;if(!(typeof V=="number"&&isFinite(V))){const ie={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ie]:s.push(ie),n++}var T=fe===n}else var T=!0;if(T){if(U.buffer!==void 0){let V=U.buffer;const fe=n;if(n===fe)if(V&&typeof V=="object"&&!Array.isArray(V)){let ae;if(V.byteLength===void 0&&(ae="byteLength")){const Pe={instancePath:t+"/body/"+R.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+"'"};s===null?s=[Pe]:s.push(Pe),n++}else{const Pe=n;for(const Oe in V)if(Oe!=="byteLength"){const Xe={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Oe},message:"must NOT have additional properties"};s===null?s=[Xe]:s.push(Xe),n++;break}if(Pe===n&&V.byteLength!==void 0){let Oe=V.byteLength;if(!(typeof Oe=="number"&&isFinite(Oe))){const Xe={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Xe]:s.push(Xe),n++}}}}else{const ae={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[ae]:s.push(ae),n++}var T=fe===n}else var T=!0;if(T){if(U.byteLength!==void 0){let V=U.byteLength;const fe=n;if(!(typeof V=="number"&&isFinite(V))){const ae={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),n++}var T=fe===n}else var T=!0;if(T){if(U.byteOffset!==void 0){let V=U.byteOffset;const fe=n;if(!(typeof V=="number"&&isFinite(V))){const ae={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteOffset",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),n++}var T=fe===n}else var T=!0;if(T)if(U.length!==void 0){let V=U.length;const fe=n;if(!(typeof V=="number"&&isFinite(V))){const ae={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/length",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),n++}var T=fe===n}else var T=!0}}}}}}else{const Q={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Q]:s.push(Q),n++}var m=se===n;if(Z=Z||m,!Z){const Q=n;if(n===Q)if(U&&typeof U=="object"&&!Array.isArray(U)){let V;if(U.lastModified===void 0&&(V="lastModified")||U.name===void 0&&(V="name")||U.size===void 0&&(V="size")||U.type===void 0&&(V="type")||U.webkitRelativePath===void 0&&(V="webkitRelativePath")){const fe={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/required",keyword:"required",params:{missingProperty:V},message:"must have required property '"+V+"'"};s===null?s=[fe]:s.push(fe),n++}else{const fe=n;for(const ie in U)if(!(ie==="size"||ie==="type"||ie==="lastModified"||ie==="name"||ie==="webkitRelativePath")){const ae={instancePath:t+"/body/"+R.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"};s===null?s=[ae]:s.push(ae),n++;break}if(fe===n){if(U.size!==void 0){let ie=U.size;const ae=n;if(!(typeof ie=="number"&&isFinite(ie))){const Pe={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/size",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/size/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Pe]:s.push(Pe),n++}var y=ae===n}else var y=!0;if(y){if(U.type!==void 0){const ie=n;if(typeof U.type!="string"){const Pe={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/type",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Pe]:s.push(Pe),n++}var y=ie===n}else var y=!0;if(y){if(U.lastModified!==void 0){let ie=U.lastModified;const ae=n;if(!(typeof ie=="number"&&isFinite(ie))){const Oe={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/lastModified",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/lastModified/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Oe]:s.push(Oe),n++}var y=ae===n}else var y=!0;if(y){if(U.name!==void 0){const ie=n;if(typeof U.name!="string"){const Pe={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/name",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Pe]:s.push(Pe),n++}var y=ie===n}else var y=!0;if(y)if(U.webkitRelativePath!==void 0){const ie=n;if(typeof U.webkitRelativePath!="string"){const Pe={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1")+"/webkitRelativePath",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/webkitRelativePath/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Pe]:s.push(Pe),n++}var y=ie===n}else var y=!0}}}}}}else{const V={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[V]:s.push(V),n++}var m=Q===n;Z=Z||m}}if(Z)n=M,s!==null&&(M?s.length=M:s=null);else{const se={instancePath:t+"/body/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};s===null?s=[se]:s.push(se),n++}var g=j===n;if(!g)break}else{const R={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[R]:s.push(R),n++}var p=P===n;H=H||p}}if(H)n=O,s!==null&&(O?s.length=O:s=null);else{const $={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[$]:s.push($),n++,vt.errors=s,!1}var o=D===n}else var o=!0}}}}}else return vt.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return vt.errors=s,n===0}const hv={properties:{relativeUri:{type:"string",description:"Request path following the domain:port part – after any URL rewriting rules (e.g. apache .htaccess) have been applied."},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 Me(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const T=n;for(const y in e)if(!Ld.call(hv.properties,y))return Me.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(T===n){if(e.relativeUri!==void 0){const y=n;if(typeof e.relativeUri!="string")return Me.errors=[{instancePath:t+"/relativeUri",schemaPath:"#/properties/relativeUri/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}else var o=!0;if(o){if(e.scriptPath!==void 0){const y=n;if(typeof e.scriptPath!="string")return Me.errors=[{instancePath:t+"/scriptPath",schemaPath:"#/properties/scriptPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}else var o=!0;if(o){if(e.protocol!==void 0){const y=n;if(typeof e.protocol!="string")return Me.errors=[{instancePath:t+"/protocol",schemaPath:"#/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}else var o=!0;if(o){if(e.method!==void 0){let y=e.method;const g=n;if(typeof y!="string")return Me.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 Me.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:$d.enum},message:"must be equal to one of the allowed values"}],!1;var o=g===n}else var o=!0;if(o){if(e.headers!==void 0){let y=e.headers;const g=n;if(n===n)if(y&&typeof y=="object"&&!Array.isArray(y))for(const S in y){const D=n;if(typeof y[S]!="string")return Me.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 l=D===n;if(!l)break}else return Me.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=g===n}else var o=!0;if(o){if(e.body!==void 0){let y=e.body;const g=n,w=n;let L=!1;const S=n;if(typeof y!="string"){const O={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[O]:s.push(O),n++}var p=S===n;if(L=L||p,!L){const O=n;if(n===O)if(y&&typeof y=="object"&&!Array.isArray(y)){let k;if(y.BYTES_PER_ELEMENT===void 0&&(k="BYTES_PER_ELEMENT")||y.buffer===void 0&&(k="buffer")||y.byteLength===void 0&&(k="byteLength")||y.byteOffset===void 0&&(k="byteOffset")||y.length===void 0&&(k="length")){const A={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:k},message:"must have required property '"+k+"'"};s===null?s=[A]:s.push(A),n++}else{const A=n;for(const $ in y)if(!($==="BYTES_PER_ELEMENT"||$==="buffer"||$==="byteLength"||$==="byteOffset"||$==="length")){let E=y[$];const P=n;if(!(typeof E=="number"&&isFinite(E))){const I={instancePath:t+"/body/"+$.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[I]:s.push(I),n++}var c=P===n;if(!c)break}if(A===n){if(y.BYTES_PER_ELEMENT!==void 0){let $=y.BYTES_PER_ELEMENT;const E=n;if(!(typeof $=="number"&&isFinite($))){const P={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[P]:s.push(P),n++}var h=E===n}else var h=!0;if(h){if(y.buffer!==void 0){let $=y.buffer;const E=n;if(n===E)if($&&typeof $=="object"&&!Array.isArray($)){let I;if($.byteLength===void 0&&(I="byteLength")){const R={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:I},message:"must have required property '"+I+"'"};s===null?s=[R]:s.push(R),n++}else{const R=n;for(const U in $)if(U!=="byteLength"){const j={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:U},message:"must NOT have additional properties"};s===null?s=[j]:s.push(j),n++;break}if(R===n&&$.byteLength!==void 0){let U=$.byteLength;if(!(typeof U=="number"&&isFinite(U))){const j={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[j]:s.push(j),n++}}}}else{const I={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[I]:s.push(I),n++}var h=E===n}else var h=!0;if(h){if(y.byteLength!==void 0){let $=y.byteLength;const E=n;if(!(typeof $=="number"&&isFinite($))){const I={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[I]:s.push(I),n++}var h=E===n}else var h=!0;if(h){if(y.byteOffset!==void 0){let $=y.byteOffset;const E=n;if(!(typeof $=="number"&&isFinite($))){const I={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[I]:s.push(I),n++}var h=E===n}else var h=!0;if(h)if(y.length!==void 0){let $=y.length;const E=n;if(!(typeof $=="number"&&isFinite($))){const I={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[I]:s.push(I),n++}var h=E===n}else var h=!0}}}}}}else{const k={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[k]:s.push(k),n++}var p=O===n;L=L||p}if(L)n=w,s!==null&&(w?s.length=w:s=null);else{const O={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[O]:s.push(O),n++,Me.errors=s,!1}var o=g===n}else var o=!0;if(o){if(e.env!==void 0){let y=e.env;const g=n;if(n===g)if(y&&typeof y=="object"&&!Array.isArray(y))for(const L in y){const S=n;if(typeof y[L]!="string")return Me.errors=[{instancePath:t+"/env/"+L.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/env/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=S===n;if(!m)break}else return Me.errors=[{instancePath:t+"/env",schemaPath:"#/properties/env/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=g===n}else var o=!0;if(o){if(e.$_SERVER!==void 0){let y=e.$_SERVER;const g=n;if(n===g)if(y&&typeof y=="object"&&!Array.isArray(y))for(const L in y){const S=n;if(typeof y[L]!="string")return Me.errors=[{instancePath:t+"/$_SERVER/"+L.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/%24_SERVER/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _=S===n;if(!_)break}else return Me.errors=[{instancePath:t+"/$_SERVER",schemaPath:"#/properties/%24_SERVER/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=g===n}else var o=!0;if(o)if(e.code!==void 0){const y=n;if(typeof e.code!="string")return Me.errors=[{instancePath:t+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}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=s,n===0}function b(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let We;if(e.step===void 0&&(We="step"))return b.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(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.pluginPath===void 0&&(N="pluginPath")||e.step===void 0&&(N="step"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="pluginPath"||f==="pluginName"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.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===n}else var o=!0;if(o)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.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===n}else var o=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var l=F===n}else var l=!0;if(l){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="activatePlugin")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/const",keyword:"const",params:{allowedValue:"activatePlugin"},message:"must be equal to constant"}],!1;var l=F===n}else var l=!0;if(l){if(e.pluginPath!==void 0){const f=n;if(typeof e.pluginPath!="string")return b.errors=[{instancePath:t+"/pluginPath",schemaPath:"#/oneOf/0/properties/pluginPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=f===n}else var l=!0;if(l)if(e.pluginName!==void 0){const f=n;if(typeof e.pluginName!="string")return b.errors=[{instancePath:t+"/pluginName",schemaPath:"#/oneOf/0/properties/pluginName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var l=f===n}else var l=!0}}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="activateTheme"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step")||e.themeFolderName===void 0&&(N="themeFolderName"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="themeFolderName"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.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===n}else var p=!0;if(p)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.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===n}else var p=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var c=F===n}else var c=!0;if(c){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="activateTheme")return b.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===n}else var c=!0;if(c)if(e.themeFolderName!==void 0){const f=n;if(typeof e.themeFolderName!="string")return b.errors=[{instancePath:t+"/themeFolderName",schemaPath:"#/oneOf/1/properties/themeFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var c=f===n}else var c=!0}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="cp"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.fromPath===void 0&&(N="fromPath")||e.step===void 0&&(N="step")||e.toPath===void 0&&(N="toPath"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="fromPath"||f==="toPath"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/2/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var h=re===n}else var h=!0;if(h)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/2/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=x===n}else var h=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var m=F===n}else var m=!0;if(m){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="cp")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/const",keyword:"const",params:{allowedValue:"cp"},message:"must be equal to constant"}],!1;var m=F===n}else var m=!0;if(m){if(e.fromPath!==void 0){const f=n;if(typeof e.fromPath!="string")return b.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/2/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=f===n}else var m=!0;if(m)if(e.toPath!==void 0){const f=n;if(typeof e.toPath!="string")return b.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/2/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=f===n}else var m=!0}}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="defineWpConfigConsts"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.consts===void 0&&(N="consts")||e.step===void 0&&(N="step"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="consts"||f==="method"||f==="virtualize"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.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===n}else var _=!0;if(_)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.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===n}else var _=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var T=F===n}else var T=!0;if(T){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="defineWpConfigConsts")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/const",keyword:"const",params:{allowedValue:"defineWpConfigConsts"},message:"must be equal to constant"}],!1;var T=F===n}else var T=!0;if(T){if(e.consts!==void 0){let f=e.consts;const F=n;if(n===F&&!(f&&typeof f=="object"&&!Array.isArray(f)))return b.errors=[{instancePath:t+"/consts",schemaPath:"#/oneOf/3/properties/consts/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var T=F===n}else var T=!0;if(T){if(e.method!==void 0){let f=e.method;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(f==="rewrite-wp-config"||f==="define-before-run"))return b.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/enum",keyword:"enum",params:{allowedValues:As.oneOf[3].properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var T=F===n}else var T=!0;if(T)if(e.virtualize!==void 0){const f=n;if(typeof e.virtualize!="boolean")return b.errors=[{instancePath:t+"/virtualize",schemaPath:"#/oneOf/3/properties/virtualize/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var T=f===n}else var T=!0}}}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="defineSiteUrl"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.siteUrl===void 0&&(N="siteUrl")||e.step===void 0&&(N="step"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="siteUrl"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.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===n}else var y=!0;if(y)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.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===n}else var y=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var g=F===n}else var g=!0;if(g){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="defineSiteUrl")return b.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===n}else var g=!0;if(g)if(e.siteUrl!==void 0){const f=n;if(typeof e.siteUrl!="string")return b.errors=[{instancePath:t+"/siteUrl",schemaPath:"#/oneOf/4/properties/siteUrl/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=f===n}else var g=!0}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="enableMultisite"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="wpCliPath"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/5/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var w=re===n}else var w=!0;if(w)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/5/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var w=x===n}else var w=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var L=F===n}else var L=!0;if(L){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="enableMultisite")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/const",keyword:"const",params:{allowedValue:"enableMultisite"},message:"must be equal to constant"}],!1;var L=F===n}else var L=!0;if(L)if(e.wpCliPath!==void 0){const f=n;if(typeof e.wpCliPath!="string")return b.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/5/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var L=f===n}else var L=!0}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importWxr"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.file===void 0&&(N="file")||e.step===void 0&&(N="step"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="file"||f==="importer"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/6/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var S=re===n}else var S=!0;if(S)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/6/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var S=x===n}else var S=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var D=F===n}else var D=!0;if(D){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="importWxr")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/const",keyword:"const",params:{allowedValue:"importWxr"},message:"must be equal to constant"}],!1;var D=F===n}else var D=!0;if(D){if(e.file!==void 0){const f=n;be(e.file,{instancePath:t+"/file",parentData:e,parentDataProperty:"file",rootData:a})||(s=s===null?be.errors:s.concat(be.errors),n=s.length);var D=f===n}else var D=!0;if(D)if(e.importer!==void 0){let f=e.importer;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(f==="data-liberation"||f==="default"))return b.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/enum",keyword:"enum",params:{allowedValues:As.oneOf[6].properties.importer.enum},message:"must be equal to one of the allowed values"}],!1;var D=F===n}else var D=!0}}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importThemeStarterContent"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="themeSlug"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/7/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var O=re===n}else var O=!0;if(O)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/7/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var O=x===n}else var O=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var H=F===n}else var H=!0;if(H){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="importThemeStarterContent")return b.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===n}else var H=!0;if(H)if(e.themeSlug!==void 0){const f=n;if(typeof e.themeSlug!="string")return b.errors=[{instancePath:t+"/themeSlug",schemaPath:"#/oneOf/7/properties/themeSlug/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var H=f===n}else var H=!0}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importWordPressFiles"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step")||e.wordPressFilesZip===void 0&&(N="wordPressFilesZip"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="wordPressFilesZip"||f==="pathInZip"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/8/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var k=re===n}else var k=!0;if(k)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/8/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var k=x===n}else var k=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var A=F===n}else var A=!0;if(A){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="importWordPressFiles")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/const",keyword:"const",params:{allowedValue:"importWordPressFiles"},message:"must be equal to constant"}],!1;var A=F===n}else var A=!0;if(A){if(e.wordPressFilesZip!==void 0){const f=n;be(e.wordPressFilesZip,{instancePath:t+"/wordPressFilesZip",parentData:e,parentDataProperty:"wordPressFilesZip",rootData:a})||(s=s===null?be.errors:s.concat(be.errors),n=s.length);var A=f===n}else var A=!0;if(A)if(e.pathInZip!==void 0){const f=n;if(typeof e.pathInZip!="string")return b.errors=[{instancePath:t+"/pathInZip",schemaPath:"#/oneOf/8/properties/pathInZip/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var A=f===n}else var A=!0}}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="installPlugin"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.pluginData===void 0&&(N="pluginData")||e.step===void 0&&(N="step"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="ifAlreadyInstalled"||f==="step"||f==="pluginData"||f==="pluginZipFile"||f==="options"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/9/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var $=re===n}else var $=!0;if($)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/9/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var $=x===n}else var $=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var E=F===n}else var E=!0;if(E){if(e.ifAlreadyInstalled!==void 0){let f=e.ifAlreadyInstalled;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(f==="overwrite"||f==="skip"||f==="error"))return b.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:As.oneOf[9].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var E=F===n}else var E=!0;if(E){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="installPlugin")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/const",keyword:"const",params:{allowedValue:"installPlugin"},message:"must be equal to constant"}],!1;var E=F===n}else var E=!0;if(E){if(e.pluginData!==void 0){let f=e.pluginData;const F=n,te=n;let x=!1;const re=n;be(f,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:a})||(s=s===null?be.errors:s.concat(be.errors),n=s.length);var P=re===n;if(x=x||P,!x){const Ee=n;ct(f,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:a})||(s=s===null?ct.errors:s.concat(ct.errors),n=s.length);var P=Ee===n;x=x||P}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const Ee={instancePath:t+"/pluginData",schemaPath:"#/oneOf/9/properties/pluginData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[Ee]:s.push(Ee),n++,b.errors=s,!1}var E=F===n}else var E=!0;if(E){if(e.pluginZipFile!==void 0){const f=n;be(e.pluginZipFile,{instancePath:t+"/pluginZipFile",parentData:e,parentDataProperty:"pluginZipFile",rootData:a})||(s=s===null?be.errors:s.concat(be.errors),n=s.length);var E=f===n}else var E=!0;if(E)if(e.options!==void 0){let f=e.options;const F=n;if(n===n)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const Ce in f)if(!(Ce==="activate"||Ce==="targetFolderName"))return b.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Ce},message:"must NOT have additional properties"}],!1;if(re===n){if(f.activate!==void 0){const Ce=n;if(typeof f.activate!="boolean")return b.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallPluginOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var I=Ce===n}else var I=!0;if(I)if(f.targetFolderName!==void 0){const Ce=n;if(typeof f.targetFolderName!="string")return b.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallPluginOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var I=Ce===n}else var I=!0}}else return b.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var E=F===n}else var E=!0}}}}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/9/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="installTheme"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step")||e.themeData===void 0&&(N="themeData"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="ifAlreadyInstalled"||f==="step"||f==="themeData"||f==="themeZipFile"||f==="options"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/10/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var R=re===n}else var R=!0;if(R)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/10/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var R=x===n}else var R=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var U=F===n}else var U=!0;if(U){if(e.ifAlreadyInstalled!==void 0){let f=e.ifAlreadyInstalled;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(f==="overwrite"||f==="skip"||f==="error"))return b.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:As.oneOf[10].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var U=F===n}else var U=!0;if(U){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="installTheme")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/const",keyword:"const",params:{allowedValue:"installTheme"},message:"must be equal to constant"}],!1;var U=F===n}else var U=!0;if(U){if(e.themeData!==void 0){let f=e.themeData;const F=n,te=n;let x=!1;const re=n;be(f,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:a})||(s=s===null?be.errors:s.concat(be.errors),n=s.length);var j=re===n;if(x=x||j,!x){const Ee=n;ct(f,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:a})||(s=s===null?ct.errors:s.concat(ct.errors),n=s.length);var j=Ee===n;x=x||j}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const Ee={instancePath:t+"/themeData",schemaPath:"#/oneOf/10/properties/themeData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[Ee]:s.push(Ee),n++,b.errors=s,!1}var U=F===n}else var U=!0;if(U){if(e.themeZipFile!==void 0){const f=n;be(e.themeZipFile,{instancePath:t+"/themeZipFile",parentData:e,parentDataProperty:"themeZipFile",rootData:a})||(s=s===null?be.errors:s.concat(be.errors),n=s.length);var U=f===n}else var U=!0;if(U)if(e.options!==void 0){let f=e.options;const F=n;if(n===n)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const Ce in f)if(!(Ce==="activate"||Ce==="importStarterContent"||Ce==="targetFolderName"))return b.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Ce},message:"must NOT have additional properties"}],!1;if(re===n){if(f.activate!==void 0){const Ce=n;if(typeof f.activate!="boolean")return b.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallThemeOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var M=Ce===n}else var M=!0;if(M){if(f.importStarterContent!==void 0){const Ce=n;if(typeof f.importStarterContent!="boolean")return b.errors=[{instancePath:t+"/options/importStarterContent",schemaPath:"#/definitions/InstallThemeOptions/properties/importStarterContent/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var M=Ce===n}else var M=!0;if(M)if(f.targetFolderName!==void 0){const Ce=n;if(typeof f.targetFolderName!="string")return b.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallThemeOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var M=Ce===n}else var M=!0}}}else return b.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var U=F===n}else var U=!0}}}}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="login"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="username"||f==="password"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.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===n}else var Z=!0;if(Z)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.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===n}else var Z=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var z=F===n}else var z=!0;if(z){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="login")return b.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===n}else var z=!0;if(z){if(e.username!==void 0){const f=n;if(typeof e.username!="string")return b.errors=[{instancePath:t+"/username",schemaPath:"#/oneOf/11/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var z=f===n}else var z=!0;if(z)if(e.password!==void 0){const f=n;if(typeof e.password!="string")return b.errors=[{instancePath:t+"/password",schemaPath:"#/oneOf/11/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var z=f===n}else var z=!0}}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="mkdir"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.path===void 0&&(N="path")||e.step===void 0&&(N="step"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="path"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/12/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var se=re===n}else var se=!0;if(se)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/12/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var se=x===n}else var se=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var G=F===n}else var G=!0;if(G){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="mkdir")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/const",keyword:"const",params:{allowedValue:"mkdir"},message:"must be equal to constant"}],!1;var G=F===n}else var G=!0;if(G)if(e.path!==void 0){const f=n;if(typeof e.path!="string")return b.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/12/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var G=f===n}else var G=!0}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="mv"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.fromPath===void 0&&(N="fromPath")||e.step===void 0&&(N="step")||e.toPath===void 0&&(N="toPath"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="fromPath"||f==="toPath"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.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===n}else var Q=!0;if(Q)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.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===n}else var Q=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ee=F===n}else var ee=!0;if(ee){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="mv")return b.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===n}else var ee=!0;if(ee){if(e.fromPath!==void 0){const f=n;if(typeof e.fromPath!="string")return b.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/13/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=f===n}else var ee=!0;if(ee)if(e.toPath!==void 0){const f=n;if(typeof e.toPath!="string")return b.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/13/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=f===n}else var ee=!0}}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="resetData"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/14/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var V=re===n}else var V=!0;if(V)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/14/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var V=x===n}else var V=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var fe=F===n}else var fe=!0;if(fe)if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="resetData")return b.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===n}else var fe=!0}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/14/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="request"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.request===void 0&&(N="request")||e.step===void 0&&(N="step"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="request"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.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===n}else var ie=!0;if(ie)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.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===n}else var ie=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ae=F===n}else var ae=!0;if(ae){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="request")return b.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===n}else var ae=!0;if(ae)if(e.request!==void 0){const f=n;vt(e.request,{instancePath:t+"/request",parentData:e,parentDataProperty:"request",rootData:a})||(s=s===null?vt.errors:s.concat(vt.errors),n=s.length);var ae=f===n}else var ae=!0}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/15/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="rm"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.path===void 0&&(N="path")||e.step===void 0&&(N="step"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/16/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="path"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/16/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/16/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Pe=re===n}else var Pe=!0;if(Pe)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/16/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Pe=x===n}else var Pe=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Oe=F===n}else var Oe=!0;if(Oe){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="rm")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/const",keyword:"const",params:{allowedValue:"rm"},message:"must be equal to constant"}],!1;var Oe=F===n}else var Oe=!0;if(Oe)if(e.path!==void 0){const f=n;if(typeof e.path!="string")return b.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/16/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Oe=f===n}else var Oe=!0}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/16/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="rmdir"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.path===void 0&&(N="path")||e.step===void 0&&(N="step"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/17/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="path"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/17/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/17/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Xe=re===n}else var Xe=!0;if(Xe)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/17/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Xe=x===n}else var Xe=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var tt=F===n}else var tt=!0;if(tt){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="rmdir")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/const",keyword:"const",params:{allowedValue:"rmdir"},message:"must be equal to constant"}],!1;var tt=F===n}else var tt=!0;if(tt)if(e.path!==void 0){const f=n;if(typeof e.path!="string")return b.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/17/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var tt=f===n}else var tt=!0}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/17/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runPHP"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.code===void 0&&(N="code")||e.step===void 0&&(N="step"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/18/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="code"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/18/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/18/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var kt=re===n}else var kt=!0;if(kt)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/18/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var kt=x===n}else var kt=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ie=F===n}else var Ie=!0;if(Ie){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="runPHP")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/const",keyword:"const",params:{allowedValue:"runPHP"},message:"must be equal to constant"}],!1;var Ie=F===n}else var Ie=!0;if(Ie)if(e.code!==void 0){let f=e.code;const F=n,te=n;let x=!1;const re=n;if(typeof f!="string"){const Ee={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Ee]:s.push(Ee),n++}var De=re===n;if(x=x||De,!x){const Ee=n;if(n===Ee)if(f&&typeof f=="object"&&!Array.isArray(f)){let Ke;if(f.filename===void 0&&(Ke="filename")||f.content===void 0&&(Ke="content")){const er={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/required",keyword:"required",params:{missingProperty:Ke},message:"must have required property '"+Ke+"'"};s===null?s=[er]:s.push(er),n++}else{const er=n;for(const je in f)if(!(je==="filename"||je==="content")){const Nt={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:je},message:"must NOT have additional properties"};s===null?s=[Nt]:s.push(Nt),n++;break}if(er===n){if(f.filename!==void 0){const je=n;if(typeof f.filename!="string"){const Nt={instancePath:t+"/code/filename",schemaPath:"#/oneOf/18/properties/code/anyOf/1/properties/filename/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Nt]:s.push(Nt),n++}var ft=je===n}else var ft=!0;if(ft)if(f.content!==void 0){const je=n;if(typeof f.content!="string"){const we={instancePath:t+"/code/content",schemaPath:"#/oneOf/18/properties/code/anyOf/1/properties/content/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[we]:s.push(we),n++}var ft=je===n}else var ft=!0}}}else{const Ke={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Ke]:s.push(Ke),n++}var De=Ee===n;x=x||De}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const Ee={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[Ee]:s.push(Ee),n++,b.errors=s,!1}var Ie=F===n}else var Ie=!0}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/18/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runPHPWithOptions"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.options===void 0&&(N="options")||e.step===void 0&&(N="step"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/19/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="options"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/19/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/19/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Le=re===n}else var Le=!0;if(Le)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/19/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Le=x===n}else var Le=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var v=F===n}else var v=!0;if(v){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="runPHPWithOptions")return b.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===n}else var v=!0;if(v)if(e.options!==void 0){const f=n;Me(e.options,{instancePath:t+"/options",parentData:e,parentDataProperty:"options",rootData:a})||(s=s===null?Me.errors:s.concat(Me.errors),n=s.length);var v=f===n}else var v=!0}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/19/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runWpInstallationWizard"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.options===void 0&&(N="options")||e.step===void 0&&(N="step"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/20/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="options"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/20/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.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===n}else var u=!0;if(u)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.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===n}else var u=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=F===n}else var d=!0;if(d){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="runWpInstallationWizard")return b.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===n}else var d=!0;if(d)if(e.options!==void 0){let f=e.options;const F=n;if(n===n)if(f&&typeof f=="object"&&!Array.isArray(f)){const re=n;for(const Ce in f)if(!(Ce==="adminUsername"||Ce==="adminPassword"))return b.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Ce},message:"must NOT have additional properties"}],!1;if(re===n){if(f.adminUsername!==void 0){const Ce=n;if(typeof f.adminUsername!="string")return b.errors=[{instancePath:t+"/options/adminUsername",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminUsername/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=Ce===n}else var C=!0;if(C)if(f.adminPassword!==void 0){const Ce=n;if(typeof f.adminPassword!="string")return b.errors=[{instancePath:t+"/options/adminPassword",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminPassword/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=Ce===n}else var C=!0}}else return b.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=F===n}else var d=!0}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/20/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runSql"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.sql===void 0&&(N="sql")||e.step===void 0&&(N="step"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/21/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="sql"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/21/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.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===n}else var B=!0;if(B)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.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===n}else var B=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var K=F===n}else var K=!0;if(K){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="runSql")return b.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===n}else var K=!0;if(K)if(e.sql!==void 0){const f=n;be(e.sql,{instancePath:t+"/sql",parentData:e,parentDataProperty:"sql",rootData:a})||(s=s===null?be.errors:s.concat(be.errors),n=s.length);var K=f===n}else var K=!0}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/21/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="setSiteOptions"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.options===void 0&&(N="options")||e.step===void 0&&(N="step"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/22/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="options"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/22/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.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===n}else var X=!0;if(X)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.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===n}else var X=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var pe=F===n}else var pe=!0;if(pe){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="setSiteOptions")return b.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===n}else var pe=!0;if(pe)if(e.options!==void 0){let f=e.options;const F=n;if(n===F&&!(f&&typeof f=="object"&&!Array.isArray(f)))return b.errors=[{instancePath:t+"/options",schemaPath:"#/oneOf/22/properties/options/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var pe=F===n}else var pe=!0}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/22/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="unzip"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.extractToPath===void 0&&(N="extractToPath")||e.step===void 0&&(N="step"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/23/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="zipFile"||f==="zipPath"||f==="extractToPath"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/23/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/23/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ge=re===n}else var ge=!0;if(ge)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/23/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ge=x===n}else var ge=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var he=F===n}else var he=!0;if(he){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="unzip")return b.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===n}else var he=!0;if(he){if(e.zipFile!==void 0){const f=n;be(e.zipFile,{instancePath:t+"/zipFile",parentData:e,parentDataProperty:"zipFile",rootData:a})||(s=s===null?be.errors:s.concat(be.errors),n=s.length);var he=f===n}else var he=!0;if(he){if(e.zipPath!==void 0){const f=n;if(typeof e.zipPath!="string")return b.errors=[{instancePath:t+"/zipPath",schemaPath:"#/oneOf/23/properties/zipPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=f===n}else var he=!0;if(he)if(e.extractToPath!==void 0){const f=n;if(typeof e.extractToPath!="string")return b.errors=[{instancePath:t+"/extractToPath",schemaPath:"#/oneOf/23/properties/extractToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=f===n}else var he=!0}}}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/23/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="updateUserMeta"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.meta===void 0&&(N="meta")||e.step===void 0&&(N="step")||e.userId===void 0&&(N="userId"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/24/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="meta"||f==="userId"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/24/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Be=re===n}else var Be=!0;if(Be)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/24/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Be=x===n}else var Be=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ue=F===n}else var ue=!0;if(ue){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="updateUserMeta")return b.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===n}else var ue=!0;if(ue){if(e.meta!==void 0){let f=e.meta;const F=n;if(n===F&&!(f&&typeof f=="object"&&!Array.isArray(f)))return b.errors=[{instancePath:t+"/meta",schemaPath:"#/oneOf/24/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ue=F===n}else var ue=!0;if(ue)if(e.userId!==void 0){let f=e.userId;const F=n;if(!(typeof f=="number"&&isFinite(f)))return b.errors=[{instancePath:t+"/userId",schemaPath:"#/oneOf/24/properties/userId/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ue=F===n}else var ue=!0}}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/24/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="writeFile"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.data===void 0&&(N="data")||e.path===void 0&&(N="path")||e.step===void 0&&(N="step"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/25/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="path"||f==="data"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/25/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/25/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var yt=re===n}else var yt=!0;if(yt)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/25/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var yt=x===n}else var yt=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var rt=F===n}else var rt=!0;if(rt){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="writeFile")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/const",keyword:"const",params:{allowedValue:"writeFile"},message:"must be equal to constant"}],!1;var rt=F===n}else var rt=!0;if(rt){if(e.path!==void 0){const f=n;if(typeof e.path!="string")return b.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/25/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var rt=f===n}else var rt=!0;if(rt)if(e.data!==void 0){let f=e.data;const F=n,te=n;let x=!1;const re=n;be(f,{instancePath:t+"/data",parentData:e,parentDataProperty:"data",rootData:a})||(s=s===null?be.errors:s.concat(be.errors),n=s.length);var $t=re===n;if(x=x||$t,!x){const Ee=n;if(typeof f!="string"){const Ke={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Ke]:s.push(Ke),n++}var $t=Ee===n;if(x=x||$t,!x){const Ke=n;if(n===Ke)if(f&&typeof f=="object"&&!Array.isArray(f)){let je;if(f.BYTES_PER_ELEMENT===void 0&&(je="BYTES_PER_ELEMENT")||f.buffer===void 0&&(je="buffer")||f.byteLength===void 0&&(je="byteLength")||f.byteOffset===void 0&&(je="byteOffset")||f.length===void 0&&(je="length")){const Nt={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/required",keyword:"required",params:{missingProperty:je},message:"must have required property '"+je+"'"};s===null?s=[Nt]:s.push(Nt),n++}else{const Nt=n;for(const we in f)if(!(we==="BYTES_PER_ELEMENT"||we==="buffer"||we==="byteLength"||we==="byteOffset"||we==="length")){let _t=f[we];const fs=n;if(!(typeof _t=="number"&&isFinite(_t))){const ze={instancePath:t+"/data/"+we.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/oneOf/25/properties/data/anyOf/2/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ze]:s.push(ze),n++}var Ti=fs===n;if(!Ti)break}if(Nt===n){if(f.BYTES_PER_ELEMENT!==void 0){let we=f.BYTES_PER_ELEMENT;const _t=n;if(!(typeof we=="number"&&isFinite(we))){const fs={instancePath:t+"/data/BYTES_PER_ELEMENT",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[fs]:s.push(fs),n++}var nt=_t===n}else var nt=!0;if(nt){if(f.buffer!==void 0){let we=f.buffer;const _t=n;if(n===_t)if(we&&typeof we=="object"&&!Array.isArray(we)){let ze;if(we.byteLength===void 0&&(ze="byteLength")){const ps={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/required",keyword:"required",params:{missingProperty:ze},message:"must have required property '"+ze+"'"};s===null?s=[ps]:s.push(ps),n++}else{const ps=n;for(const bn in we)if(bn!=="byteLength"){const vn={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:bn},message:"must NOT have additional properties"};s===null?s=[vn]:s.push(vn),n++;break}if(ps===n&&we.byteLength!==void 0){let bn=we.byteLength;if(!(typeof bn=="number"&&isFinite(bn))){const vn={instancePath:t+"/data/buffer/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[vn]:s.push(vn),n++}}}}else{const ze={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[ze]:s.push(ze),n++}var nt=_t===n}else var nt=!0;if(nt){if(f.byteLength!==void 0){let we=f.byteLength;const _t=n;if(!(typeof we=="number"&&isFinite(we))){const ze={instancePath:t+"/data/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ze]:s.push(ze),n++}var nt=_t===n}else var nt=!0;if(nt){if(f.byteOffset!==void 0){let we=f.byteOffset;const _t=n;if(!(typeof we=="number"&&isFinite(we))){const ze={instancePath:t+"/data/byteOffset",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ze]:s.push(ze),n++}var nt=_t===n}else var nt=!0;if(nt)if(f.length!==void 0){let we=f.length;const _t=n;if(!(typeof we=="number"&&isFinite(we))){const ze={instancePath:t+"/data/length",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ze]:s.push(ze),n++}var nt=_t===n}else var nt=!0}}}}}}else{const je={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[je]:s.push(je),n++}var $t=Ke===n;x=x||$t}}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const Ee={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[Ee]:s.push(Ee),n++,b.errors=s,!1}var rt=F===n}else var rt=!0}}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/25/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="writeFiles"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.filesTree===void 0&&(N="filesTree")||e.step===void 0&&(N="step")||e.writeToPath===void 0&&(N="writeToPath"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/26/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="writeToPath"||f==="filesTree"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/26/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/26/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Kr=re===n}else var Kr=!0;if(Kr)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/26/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Kr=x===n}else var Kr=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var W=F===n}else var W=!0;if(W){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="writeFiles")return b.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===n}else var W=!0;if(W){if(e.writeToPath!==void 0){const f=n;if(typeof e.writeToPath!="string")return b.errors=[{instancePath:t+"/writeToPath",schemaPath:"#/oneOf/26/properties/writeToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var W=f===n}else var W=!0;if(W)if(e.filesTree!==void 0){const f=n;ct(e.filesTree,{instancePath:t+"/filesTree",parentData:e,parentDataProperty:"filesTree",rootData:a})||(s=s===null?ct.errors:s.concat(ct.errors),n=s.length);var W=f===n}else var W=!0}}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/26/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="wp-cli"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.command===void 0&&(N="command")||e.step===void 0&&(N="step"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/27/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="command"||f==="wpCliPath"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/27/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.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===n}else var Y=!0;if(Y)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.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===n}else var Y=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var q=F===n}else var q=!0;if(q){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="wp-cli")return b.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===n}else var q=!0;if(q){if(e.command!==void 0){let f=e.command;const F=n,te=n;let x=!1;const re=n;if(typeof f!="string"){const Ee={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Ee]:s.push(Ee),n++}var J=re===n;if(x=x||J,!x){const Ee=n;if(n===Ee)if(Array.isArray(f)){var ne=!0;const Ke=f.length;for(let er=0;er<Ke;er++){const je=n;if(typeof f[er]!="string"){const we={instancePath:t+"/command/"+er,schemaPath:"#/oneOf/27/properties/command/anyOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[we]:s.push(we),n++}var ne=je===n;if(!ne)break}}else{const Ke={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};s===null?s=[Ke]:s.push(Ke),n++}var J=Ee===n;x=x||J}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const Ee={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[Ee]:s.push(Ee),n++,b.errors=s,!1}var q=F===n}else var q=!0;if(q)if(e.wpCliPath!==void 0){const f=n;if(typeof e.wpCliPath!="string")return b.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/27/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var q=f===n}else var q=!0}}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/27/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="setSiteLanguage"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.language===void 0&&(N="language")||e.step===void 0&&(N="step"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/28/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const f in e)if(!(f==="progress"||f==="step"||f==="language"))return b.errors=[{instancePath:t,schemaPath:"#/oneOf/28/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let f=e.progress;const F=n;if(n===F)if(f&&typeof f=="object"&&!Array.isArray(f)){const te=n;for(const x in f)if(!(x==="weight"||x==="caption"))return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(f.weight!==void 0){let x=f.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return b.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===n}else var le=!0;if(le)if(f.caption!==void 0){const x=n;if(typeof f.caption!="string")return b.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===n}else var le=!0}}else return b.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var de=F===n}else var de=!0;if(de){if(e.step!==void 0){let f=e.step;const F=n;if(typeof f!="string")return b.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(f!=="setSiteLanguage")return b.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===n}else var de=!0;if(de)if(e.language!==void 0){const f=n;if(typeof e.language!="string")return b.errors=[{instancePath:t+"/language",schemaPath:"#/oneOf/28/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var de=f===n}else var de=!0}}}}else return b.errors=[{instancePath:t,schemaPath:"#/oneOf/28/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else return b.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 b.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"tag",tag:"step",tagValue:ce},message:'tag "step" must be string'}],!1}}else return b.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return b.errors=s,n===0}function me(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const H=n;for(const k in e)if(!Ld.call(fv.properties,k))return me.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(H===n){if(e.landingPage!==void 0){const k=n;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=k===n}else var o=!0;if(o){if(e.description!==void 0){const k=n;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=k===n}else var o=!0;if(o){if(e.meta!==void 0){let k=e.meta;const A=n;if(n===A)if(k&&typeof k=="object"&&!Array.isArray(k)){let E;if(k.title===void 0&&(E="title")||k.author===void 0&&(E="author"))return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty:E},message:"must have required property '"+E+"'"}],!1;{const P=n;for(const I in k)if(!(I==="title"||I==="description"||I==="author"||I==="categories"))return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:I},message:"must NOT have additional properties"}],!1;if(P===n){if(k.title!==void 0){const I=n;if(typeof k.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 l=I===n}else var l=!0;if(l){if(k.description!==void 0){const I=n;if(typeof k.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 l=I===n}else var l=!0;if(l){if(k.author!==void 0){const I=n;if(typeof k.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 l=I===n}else var l=!0;if(l)if(k.categories!==void 0){let I=k.categories;const R=n;if(n===R)if(Array.isArray(I)){var p=!0;const j=I.length;for(let M=0;M<j;M++){const Z=n;if(typeof I[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===n;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 l=R===n}else var l=!0}}}}}else return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=A===n}else var o=!0;if(o){if(e.preferredVersions!==void 0){let k=e.preferredVersions;const A=n;if(n===A)if(k&&typeof k=="object"&&!Array.isArray(k)){let E;if(k.php===void 0&&(E="php")||k.wp===void 0&&(E="wp"))return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/required",keyword:"required",params:{missingProperty:E},message:"must have required property '"+E+"'"}],!1;{const P=n;for(const I in k)if(!(I==="php"||I==="wp"))return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:I},message:"must NOT have additional properties"}],!1;if(P===n){if(k.php!==void 0){let I=k.php;const R=n,U=n;let j=!1;const M=n;if(typeof I!="string"){const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Z]:s.push(Z),n++}if(!(I==="8.5"||I==="8.4"||I==="8.3"||I==="8.2"||I==="8.1"||I==="8.0"||I==="7.4"||I==="7.3"||I==="7.2")){const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/enum",keyword:"enum",params:{allowedValues:pv.enum},message:"must be equal to one of the allowed values"};s===null?s=[Z]:s.push(Z),n++}var c=M===n;if(j=j||c,!j){const Z=n;if(typeof I!="string"){const se={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[se]:s.push(se),n++}if(I!=="latest"){const se={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/const",keyword:"const",params:{allowedValue:"latest"},message:"must be equal to constant"};s===null?s=[se]:s.push(se),n++}var c=Z===n;j=j||c}if(j)n=U,s!==null&&(U?s.length=U:s=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 s===null?s=[Z]:s.push(Z),n++,me.errors=s,!1}var h=R===n}else var h=!0;if(h)if(k.wp!==void 0){const I=n;if(typeof k.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 h=I===n}else var h=!0}}}else return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=A===n}else var o=!0;if(o){if(e.features!==void 0){let k=e.features;const A=n;if(n===A)if(k&&typeof k=="object"&&!Array.isArray(k)){const E=n;for(const P in k)if(!(P==="intl"||P==="networking"))return me.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:P},message:"must NOT have additional properties"}],!1;if(E===n){if(k.intl!==void 0){const P=n;if(typeof k.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 m=P===n}else var m=!0;if(m)if(k.networking!==void 0){const P=n;if(typeof k.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 m=P===n}else var m=!0}}else return me.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=A===n}else var o=!0;if(o){if(e.extraLibraries!==void 0){let k=e.extraLibraries;const A=n;if(n===A)if(Array.isArray(k)){var _=!0;const E=k.length;for(let P=0;P<E;P++){let I=k[P];const R=n;if(typeof I!="string")return me.errors=[{instancePath:t+"/extraLibraries/"+P,schemaPath:"#/definitions/ExtraLibrary/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(I!=="wp-cli")return me.errors=[{instancePath:t+"/extraLibraries/"+P,schemaPath:"#/definitions/ExtraLibrary/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var _=R===n;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=A===n}else var o=!0;if(o){if(e.constants!==void 0){let k=e.constants;const A=n;if(n===n)if(k&&typeof k=="object"&&!Array.isArray(k))for(const P in k){let I=k[P];const R=n;if(typeof I!="string"&&typeof I!="boolean"&&!(typeof I=="number"&&isFinite(I)))return me.errors=[{instancePath:t+"/constants/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPConstants/additionalProperties/type",keyword:"type",params:{type:cv.additionalProperties.type},message:"must be string,boolean,number"}],!1;var T=R===n;if(!T)break}else return me.errors=[{instancePath:t+"/constants",schemaPath:"#/definitions/PHPConstants/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=A===n}else var o=!0;if(o){if(e.plugins!==void 0){let k=e.plugins;const A=n;if(n===A)if(Array.isArray(k)){var y=!0;const E=k.length;for(let P=0;P<E;P++){let I=k[P];const R=n,U=n;let j=!1;const M=n;if(typeof I!="string"){const z={instancePath:t+"/plugins/"+P,schemaPath:"#/properties/plugins/items/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[z]:s.push(z),n++}var g=M===n;if(j=j||g,!j){const z=n;be(I,{instancePath:t+"/plugins/"+P,parentData:k,parentDataProperty:P,rootData:a})||(s=s===null?be.errors:s.concat(be.errors),n=s.length);var g=z===n;j=j||g}if(j)n=U,s!==null&&(U?s.length=U:s=null);else{const z={instancePath:t+"/plugins/"+P,schemaPath:"#/properties/plugins/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[z]:s.push(z),n++,me.errors=s,!1}var y=R===n;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=A===n}else var o=!0;if(o){if(e.siteOptions!==void 0){let k=e.siteOptions;const A=n;if(n===A)if(k&&typeof k=="object"&&!Array.isArray(k)){const E=n;for(const P in k)if(P!=="blogname"){const I=n;if(typeof k[P]!="string")return me.errors=[{instancePath:t+"/siteOptions/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/siteOptions/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var w=I===n;if(!w)break}if(E===n&&k.blogname!==void 0&&typeof k.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=A===n}else var o=!0;if(o){if(e.login!==void 0){let k=e.login;const A=n,$=n;let E=!1;const P=n;if(typeof k!="boolean"){const R={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[R]:s.push(R),n++}var L=P===n;if(E=E||L,!E){const R=n;if(n===R)if(k&&typeof k=="object"&&!Array.isArray(k)){let j;if(k.username===void 0&&(j="username")||k.password===void 0&&(j="password")){const M={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"};s===null?s=[M]:s.push(M),n++}else{const M=n;for(const Z in k)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"};s===null?s=[z]:s.push(z),n++;break}if(M===n){if(k.username!==void 0){const Z=n;if(typeof k.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"};s===null?s=[z]:s.push(z),n++}var S=Z===n}else var S=!0;if(S)if(k.password!==void 0){const Z=n;if(typeof k.password!="string"){const se={instancePath:t+"/login/password",schemaPath:"#/properties/login/anyOf/1/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[se]:s.push(se),n++}var S=Z===n}else var S=!0}}}else{const j={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[j]:s.push(j),n++}var L=R===n;E=E||L}if(E)n=$,s!==null&&($?s.length=$:s=null);else{const R={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[R]:s.push(R),n++,me.errors=s,!1}var o=A===n}else var o=!0;if(o){if(e.steps!==void 0){let k=e.steps;const A=n;if(n===A)if(Array.isArray(k)){var D=!0;const E=k.length;for(let P=0;P<E;P++){let I=k[P];const R=n,U=n;let j=!1;const M=n;b(I,{instancePath:t+"/steps/"+P,parentData:k,parentDataProperty:P,rootData:a})||(s=s===null?b.errors:s.concat(b.errors),n=s.length);var O=M===n;if(j=j||O,!j){const z=n;if(typeof I!="string"){const G={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[G]:s.push(G),n++}var O=z===n;if(j=j||O,!j){const G=n,Q={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};s===null?s=[Q]:s.push(Q),n++;var O=G===n;if(j=j||O,!j){const V=n;if(typeof I!="boolean"){const ie={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/3/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[ie]:s.push(ie),n++}if(I!==!1){const ie={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/3/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};s===null?s=[ie]:s.push(ie),n++}var O=V===n;if(j=j||O,!j){const ie=n;if(I!==null){const Pe={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/4/type",keyword:"type",params:{type:"null"},message:"must be null"};s===null?s=[Pe]:s.push(Pe),n++}var O=ie===n;j=j||O}}}}if(j)n=U,s!==null&&(U?s.length=U:s=null);else{const z={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[z]:s.push(z),n++,me.errors=s,!1}var D=R===n;if(!D)break}}else return me.errors=[{instancePath:t+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=A===n}else var o=!0;if(o)if(e.$schema!==void 0){const k=n;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=k===n}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=s,n===0}function Ms(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;return me(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?me.errors:s.concat(me.errors),n=s.length),Ms.errors=s,n===0}const{wpCLI:mv,...Op}=lv,yv={...Op,"wp-cli":mv,importFile:Op.importWxr};class Rd extends Error{constructor(t,r){super(t),this.name="InvalidBlueprintError",this.validationErrors=r}}class Id extends Error{constructor(t){const{stepNumber:r,step:i,cause:a}=t,s=a instanceof Error?a:new Error(String(a)),n=`Error when executing the blueprint step #${r}`,o=s.message?`${n}: ${s.message}`:n;super(o,{cause:s}),this.name="BlueprintStepExecutionError",this.stepNumber=r,this.step=i,this.messages=(s.message||"").split(`
|
|
1237
|
+
`).map(l=>l.trim()).filter(Boolean)}}async function Ai(e,t={}){const r={...t};let i;return Go(e)?(i=await Dd(e),r.streamBundledFile=function(...a){return e.read(...a)}):i=e,_v(i,r)}function Go(e){return e&&"read"in e&&typeof e.read=="function"}async function Dd(e){if(!Go(e))return e;const r=await(await e.read("blueprint.json")).text();return JSON.parse(r)}function _v(e,{progress:t=new fi,semaphore:r=new hn({concurrency:3}),onStepCompleted:i=()=>{},onBlueprintValidated:a=()=>{},corsProxy:s,streamBundledFile:n,gitAdditionalHeadersCallback:o,additionalSteps:l}={}){var y,g,w,L,S,D,O,H,k,A;e=structuredClone(e),e={...e,steps:(e.steps||[]).filter(Fd).filter(bv)},e.steps=[...e.steps||[],...l||[]];for(const $ of e.steps)!$||typeof $!="object"||($.step==="importFile"?($.step="importWxr",Te.warn('The "importFile" step is deprecated. Use "importWxr" instead.')):($==null?void 0:$.step)==="installPlugin"&&"pluginZipFile"in $?($.pluginData=$.pluginZipFile,Te.warn('The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.')):($==null?void 0:$.step)==="installTheme"&&"themeZipFile"in $&&($.themeData=$.themeZipFile,Te.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 $=e.plugins.map(E=>typeof E=="string"?E.startsWith("https://")?{resource:"url",url:E}:{resource:"wordpress.org/plugins",slug:E}:E).map(E=>({step:"installPlugin",pluginData:E}));e.steps.unshift(...$)}e.login&&e.steps.unshift({step:"login",...e.login===!0?{username:"admin"}:e.login});const p=((y=e.steps)==null?void 0:y.findIndex($=>typeof $=="object"&&($==null?void 0:$.step)&&["wp-cli","enableMultisite"].includes($.step)))??-1;if((g=e==null?void 0:e.extraLibraries)!=null&&g.includes("wp-cli")||p!==-1){const $={step:"writeFile",data:ev,path:Wo};p===-1?(w=e.steps)==null||w.push($):(L=e.steps)==null||L.splice(p,0,$)}const c=(S=e.steps)==null?void 0:S.findIndex($=>typeof $=="object"&&($==null?void 0:$.step)==="importWxr");c!==void 0&&c>-1&&((D=e.steps)==null||D.splice(c,0,{step:"installPlugin",pluginData:{resource:"wordpress.org/plugins",slug:"wordpress-importer"}}));const h=Hd(e);if(!h.valid){const{errors:$}=h,E=gv(e,$);throw new Rd(`Invalid Blueprint: The Blueprint does not conform to the schema.
|
|
1238
|
+
|
|
1239
|
+
Found ${$.length} validation error(s):
|
|
1240
|
+
|
|
1241
|
+
${E}
|
|
1242
|
+
|
|
1243
|
+
Please review your Blueprint and fix these issues. Learn more about the Blueprint format: https://wordpress.github.io/wordpress-playground/blueprints/data-format`,$)}a(e);const m=e.steps||[],_=m.reduce(($,E)=>{var P;return $+(((P=E.progress)==null?void 0:P.weight)||1)},0),T=m.map($=>vv($,{semaphore:r,rootProgressTracker:t,totalProgressWeight:_,corsProxy:s,streamBundledFile:n,gitAdditionalHeadersCallback:o}));return{versions:{php:wv((O=e.preferredVersions)==null?void 0:O.php,ci,Wp),wp:((H=e.preferredVersions)==null?void 0:H.wp)||"latest"},features:{intl:((k=e.features)==null?void 0:k.intl)??!1,networking:((A=e.features)==null?void 0:A.networking)??!0},extraLibraries:e.extraLibraries||[],run:async $=>{try{for(const{resources:E}of T)for(const P of E)P.setPlayground($),P.isAsync&&P.resolve().catch(()=>{});for(const[E,{run:P,step:I}]of Object.entries(T))try{const R=await P($);i(R,I)}catch(R){const U=Number(E)+1;throw new Id({stepNumber:U,step:I,cause:R})}}finally{try{const E=await $.pathToInternalUrl(e.landingPage||"/");await $.goTo("/index.php?playground-redirection-handler&next="+encodeURIComponent(E))}catch{}t.finish()}}}}function gv(e,t){return t.map((r,i)=>{var o;const a=r.instancePath||"/";let s=r.message||"validation failed",n="";if(s.includes("must NOT have additional properties")){const l=(o=r.params)==null?void 0:o.additionalProperty;if(l){s=`has unexpected property "${l}"`;try{const p=a.split("/").filter(Boolean);let c=e;for(const h of p)c&&typeof c=="object"&&(c=c[h]);if(c&&typeof c=="object"){const h=c[l],m=JSON.stringify(h);n=`
|
|
1244
|
+
"${l}": ${m}
|
|
1245
|
+
${"^".repeat(l.length+2)} This property is not recognized`}}catch{}}}else try{const l=a.split("/").filter(Boolean);let p=e;for(const c of l)p&&typeof p=="object"&&(p=p[c]);if(p!==void 0){const c=JSON.stringify(p,null,2);n=`
|
|
1246
|
+
Value: ${c.length>200?c.substring(0,200)+"...":c}`}}catch{}return`${i+1}. At path "${a}": ${s}${n}`}).join(`
|
|
1247
|
+
|
|
1248
|
+
`)}function Hd(e){var a;const t=Ms(e);if(t)return{valid:t};const r=new Set;for(const s of Ms.errors)s.schemaPath.startsWith("#/properties/steps/items/anyOf")||r.add(s.instancePath);return{valid:!1,errors:((a=Ms.errors)==null?void 0:a.filter(s=>!(s.schemaPath.startsWith("#/properties/steps/items/anyOf")&&r.has(s.instancePath))))??[]}}function wv(e,t,r){return e&&t.includes(e)?e:r}function Fd(e){return!!(typeof e=="object"&&e)}function bv(e){return["setPhpIniEntry","request"].includes(e.step)?(Te.warn(`The "${e.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`),!1):!0}function vv(e,{semaphore:t,rootProgressTracker:r,totalProgressWeight:i,corsProxy:a,streamBundledFile:s,gitAdditionalHeadersCallback:n}){var _;const o=r.stage((((_=e.progress)==null?void 0:_.weight)||1)/i),l={};for(const T of Object.keys(e)){let y=e[T];$b(y)&&(y=St.create(y,{semaphore:t,corsProxy:a,streamBundledFile:s,gitAdditionalHeadersCallback:n})),l[T]=y}const p=async T=>{var y;try{return o.fillSlowly(),await yv[e.step](T,await xv(l),{tracker:o,initialCaption:(y=e.progress)==null?void 0:y.caption})}finally{o.finish()}},c=Cp(l),h=Cp(l).filter(T=>T.isAsync),m=1/(h.length+1);for(const T of h)T.progress=o.stage(m);return{run:p,step:e,resources:c}}function Cp(e){const t=[];for(const r in e){const i=e[r];i instanceof St&&t.push(i)}return t}async function xv(e){const t={};for(const r in e){const i=e[r];i instanceof St?t[r]=await i.resolve():t[r]=i}return t}async function Vo(e,t){await e.run(t)}async function Bd(){const e=(await Promise.resolve().then(()=>require("./blueprints-Gs5fAvvo.cjs"))).default;return new File([e],"blueprints.phar",{type:"application/zip"})}function Ev(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 Sv(e){var c,h;const t=e.cliArgs||[];for(const m of t)if(m.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(m=>m.startsWith("--db-engine="))||t.push("--db-engine=sqlite");const i=e.php,a=(e==null?void 0:e.onMessage)||(()=>{}),s=await Bd();i.writeFile("/tmp/blueprints.phar",new Uint8Array(await s.arrayBuffer()));const n=Ev(e.blueprint);let o="";switch(n.type){case"inline-file":i.writeFile("/tmp/blueprint.json",n.contents),o="/tmp/blueprint.json";break;case"file-reference":o=n.reference;break}const l=await i.onMessage(async m=>{try{const _=typeof m=="string"?JSON.parse(m):m;if(!_)return;await new Promise(T=>setTimeout(T,0)),_.type.startsWith("blueprint.")&&await a(_)}catch(_){Te.warn("Failed to parse message as JSON:",m,_)}});await(i==null?void 0:i.writeFile("/tmp/run-blueprints.php",`<?php
|
|
1000
1249
|
function playground_http_client_factory() {
|
|
1001
1250
|
return new WordPress\\HttpClient\\Client([
|
|
1002
1251
|
// sockets transport is somehow faster than curl in Playground. Maybe
|
|
@@ -1015,7 +1264,7 @@ playground_add_filter('blueprint.target_resolved', 'playground_on_blueprint_targ
|
|
|
1015
1264
|
|
|
1016
1265
|
playground_add_filter('blueprint.resolved', 'playground_on_blueprint_resolved');
|
|
1017
1266
|
function playground_on_blueprint_resolved($blueprint) {
|
|
1018
|
-
$additional_blueprint_steps = json_decode(${
|
|
1267
|
+
$additional_blueprint_steps = json_decode(${mt(JSON.stringify(((c=e.blueprintOverrides)==null?void 0:c.additionalSteps)||[]))}, true);
|
|
1019
1268
|
if(count($additional_blueprint_steps) > 0) {
|
|
1020
1269
|
$blueprint['additionalStepsAfterExecution'] = array_merge(
|
|
1021
1270
|
$blueprint['additionalStepsAfterExecution'] ?? [],
|
|
@@ -1023,7 +1272,7 @@ function playground_on_blueprint_resolved($blueprint) {
|
|
|
1023
1272
|
);
|
|
1024
1273
|
}
|
|
1025
1274
|
|
|
1026
|
-
$wp_version_override = json_decode(${
|
|
1275
|
+
$wp_version_override = json_decode(${mt(JSON.stringify(((h=e.blueprintOverrides)==null?void 0:h.wordpressVersion)||null))}, true);
|
|
1027
1276
|
if($wp_version_override) {
|
|
1028
1277
|
$blueprint['wordpressVersion'] = $wp_version_override;
|
|
1029
1278
|
}
|
|
@@ -1077,10 +1326,10 @@ function playground_progress_reporter() {
|
|
|
1077
1326
|
}
|
|
1078
1327
|
playground_add_filter('blueprint.progress_reporter', 'playground_progress_reporter');
|
|
1079
1328
|
require( "/tmp/blueprints.phar" );
|
|
1080
|
-
`));const p=await i.cli(["/internal/shared/bin/php","/tmp/run-blueprints.php","exec",o,...t]);return p.finished.finally(
|
|
1081
|
-
at ${
|
|
1082
|
-
`+(
|
|
1083
|
-
`:"")):Te.error(`${
|
|
1084
|
-
`),new Error(
|
|
1085
|
-
${
|
|
1086
|
-
`)}`)}function
|
|
1329
|
+
`));const p=await i.cli(["/internal/shared/bin/php","/tmp/run-blueprints.php","exec",o,...t]);return p.finished.finally(l),p}class Ud extends Error{constructor(t,r,i){super(t,i),this.name="BlueprintFetchError",this.url=r}}async function kv(e){let t;try{const r=await fetch(e,{credentials:"omit"});if(!r.ok)throw new Error(`Failed to fetch blueprint from ${e}`);t=await r.arrayBuffer()}catch(r){throw new Ud(`Blueprint file could not be resolved from ${e}: ${r instanceof Error?r.message:String(r)}`,e,{cause:r})}try{const r=new TextDecoder().decode(t);return JSON.parse(r),new hb([new db({"blueprint.json":r}),new mb({baseUrl:e})])}catch(r){if(await Pv(t))return ai.fromArrayBuffer(t);throw new Error(`Blueprint file at ${e} is neither a valid JSON nor a ZIP file.`,{cause:r})}}async function Pv(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 Nd(e){if((await cn.create(e)).getVersion()===1){const r=await Ai(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:Ob,wpVersion:"latest",intl:!1,networking:!0,constants:{},extraLibraries:[]}}function Av(){}const Tv=[],Ov="127.0.0.1",Cv=4400;class Lv{constructor(t){this.options=t}async bootPlayground(t,r){const{onBlueprintValidated:i,onBlueprintStepCompleted:a,corsProxy:s,gitAdditionalHeadersCallback:n,mounts:o,sapiName:l,scope:p,shouldInstallWordPress:c,sqliteDriverVersion:h,onClientConnected:m}=this.options,_=r.stage(.5),T=r.stage(),y=this.options.blueprint||{},g=Yp(t.contentWindow,t.ownerDocument.defaultView);await g.isConnected(),r.pipe(g);const w=await Nd(y);if(await g.onDownloadProgress(T.loadingListener),await g.boot({mounts:o,sapiName:l,scope:p??Math.random().toFixed(16),shouldInstallWordPress:c,phpVersion:w.phpVersion,wpVersion:w.wpVersion,withIntl:w.intl,withNetworking:w.networking,corsProxyUrl:s,sqliteDriverVersion:h}),await g.isReady(),T.finish(),Dp(Te,g),m==null||m(g),(await cn.create(y)).getVersion()===1){const S=await Ai(y,{progress:_,onStepCompleted:a,onBlueprintValidated:i,corsProxy:s,gitAdditionalHeadersCallback:n});await Vo(S,g)}return w.networking&&await g.prefetchUpdateChecks(),g}}class $v{constructor(t){this.options=t}async bootPlayground(t,r){const{blueprint:i,onClientConnected:a,corsProxy:s,mounts:n,sapiName:o,scope:l}=this.options,p=r.stage(.25),c=r.stage(.75),h=Yp(t.contentWindow,t.ownerDocument.defaultView);return await h.isConnected(),r.pipe(h),await h.onDownloadProgress(p.loadingListener),await h.addEventListener("blueprint.message",({message:m})=>{switch(m.type){case"blueprint.target_resolved":break;case"blueprint.progress":{c.set(m.progress),c.setCaption(m.caption);break}case"blueprint.error":{const _="\x1B[31m",T="\x1B[1m",y="\x1B[0m";throw m.details?Te.error(`${_}${T}Fatal error:${y} Uncaught ${m.details.exception}: ${m.details.message}
|
|
1330
|
+
at ${m.details.file}:${m.details.line}
|
|
1331
|
+
`+(m.details.trace?m.details.trace+`
|
|
1332
|
+
`:"")):Te.error(`${_}${T}Error:${y} ${m.message}
|
|
1333
|
+
`),new Error(m.message)}}}),await h.boot({mounts:n,sapiName:o,scope:l??Math.random().toFixed(16),corsProxyUrl:s,experimentalBlueprintsV2Runner:!0,blueprint:i}),await h.isReady(),p.finish(),Dp(Te,h),a==null||a(h),h.goTo("/"),h}}async function Rv(e){const{iframe:t,progressTracker:r=new fi,disableProgressBar:i}=e;let{remoteUrl:a}=e;Hv(a),Iv(t),a=Fv(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 n=await(e.experimentalBlueprintsV2Runner?new $v(e):new Lv(e)).bootPlayground(t,r);return r.finish(),n}function Iv(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 jd="https://playground.wordpress.net",Dv=`http://${Ov}:${Cv}`,Lp=[jd,Dv,"https://wasm.wordpress.net",location.origin,new URL(typeof document>"u"?require("url").pathToFileURL(__filename).href:ir&&ir.tagName.toUpperCase()==="SCRIPT"&&ir.src||new URL("index.cjs",document.baseURI).href).origin,"http://localhost","http://localhost:5400","https://localhost","http://127.0.0.1","http://127.0.0.1:5400","https://127.0.0.1",...Tv],Wd=jd;function Hv(e){const t=new URL(e,Wd);if(!(Lp.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:
|
|
1334
|
+
${Lp.join(`
|
|
1335
|
+
`)}`)}function Fv(e,t){const r=new URL(e,Wd),i=new URLSearchParams(r.search);for(const[a,s]of Object.entries(t))if(s!=null&&s!==!1)if(Array.isArray(s))for(const n of s)i.append(a,n.toString());else i.set(a,s.toString());return r.search=i.toString(),r.toString()}exports.BlueprintFetchError=Ud;exports.BlueprintFilesystemRequiredError=sd;exports.BlueprintReflection=cn;exports.BlueprintStepExecutionError=Id;exports.InvalidBlueprintError=Rd;exports.LatestSupportedPHPVersion=Wp;exports.ResourceDownloadError=Ws;exports.SupportedPHPVersions=ci;exports.SupportedPHPVersionsList=Sh;exports.activatePlugin=Uo;exports.activateTheme=No;exports.compileBlueprint=Ai;exports.compileBlueprintV1=Ai;exports.cp=md;exports.defineSiteUrl=qo;exports.defineWpConfigConsts=Si;exports.enableMultisite=hd;exports.exportWXR=xd;exports.getBlueprintDeclaration=Dd;exports.getV2Runner=Bd;exports.importThemeStarterContent=Ko;exports.importWordPressFiles=vd;exports.importWxr=bd;exports.installPlugin=Sd;exports.installTheme=kd;exports.isBlueprintBundle=Go;exports.isStepDefinition=Fd;exports.login=Pd;exports.mkdir=_d;exports.mv=yd;exports.phpVar=mt;exports.phpVars=mn;exports.request=pd;exports.resetData=Ad;exports.resolveRemoteBlueprint=kv;exports.resolveRuntimeConfiguration=Nd;exports.rm=li;exports.rmdir=gd;exports.runBlueprintSteps=Vo;exports.runBlueprintV1Steps=Vo;exports.runBlueprintV2=Sv;exports.runPHP=od;exports.runPHPWithOptions=ld;exports.runSql=fd;exports.runWpInstallationWizard=Td;exports.setPhpIniEntries=fh;exports.setPluginProxyURL=Av;exports.setSiteLanguage=Cd;exports.setSiteOptions=jo;exports.startPlaygroundWeb=Rv;exports.unzip=Pi;exports.updateUserMeta=ud;exports.validateBlueprint=Hd;exports.wpCLI=Mo;exports.wpContentFilesExcludedFromExport=zo;exports.writeFile=ki;exports.writeFiles=wd;exports.zipWpContent=Od;
|