@depup/prisma 7.9.0-depup.0 → 7.9.1-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/build/cli.js +5 -5
- package/changes.json +7 -3
- package/package.json +26 -22
package/build/cli.js
CHANGED
|
@@ -43,7 +43,7 @@ Content-Type: ${a.type||"application/octet-stream"}\r
|
|
|
43
43
|
`;let l=(0,vvt.parseProxyResponse)(i);i.write(`${u}\r
|
|
44
44
|
`);let{connect:p,buffered:f}=await l;if(r.emit("proxyConnect",p),this.emit("proxyConnect",p,r),p.statusCode===200)return r.once("socket",Svt),n.secureEndpoint?(cD("Upgrading socket connection to TLS"),v1e.connect({...w1e(S1e(n),"host","path","port"),socket:i})):i;i.destroy();let g=new tk.Socket({writable:!1});return g.readable=!0,r.once("socket",x=>{cD("Replaying proxy buffer for failed request"),(0,yvt.default)(x.listenerCount("data")>0),x.push(f),x.push(null)}),g}};rk.protocols=["http","https"];du.HttpsProxyAgent=rk;function Svt(e){e.resume()}function w1e(e,...r){let n={},o;for(o in e)r.includes(o)||(n[o]=e[o]);return n}});var G1e=A((j1e,q1e)=>{"use strict";j1e=q1e.exports=kv;function kv(e,r){if(this.stream=r.stream||process.stderr,typeof r=="number"){var n=r;r={},r.total=n}else{if(r=r||{},typeof e!="string")throw new Error("format required");if(typeof r.total!="number")throw new Error("total required")}this.fmt=e,this.curr=r.curr||0,this.total=r.total,this.width=r.width||this.total,this.clear=r.clear,this.chars={complete:r.complete||"=",incomplete:r.incomplete||"-",head:r.head||r.complete||"="},this.renderThrottle=r.renderThrottle!==0?r.renderThrottle||16:0,this.lastRender=-1/0,this.callback=r.callback||function(){},this.tokens={},this.lastDraw=""}kv.prototype.tick=function(e,r){if(e!==0&&(e=e||1),typeof e=="object"&&(r=e,e=1),r&&(this.tokens=r),this.curr==0&&(this.start=new Date),this.curr+=e,this.render(),this.curr>=this.total){this.render(void 0,!0),this.complete=!0,this.terminate(),this.callback(this);return}};kv.prototype.render=function(e,r){if(r=r!==void 0?r:!1,e&&(this.tokens=e),!!this.stream.isTTY){var n=Date.now(),o=n-this.lastRender;if(!(!r&&o<this.renderThrottle)){this.lastRender=n;var i=this.curr/this.total;i=Math.min(Math.max(i,0),1);var a=Math.floor(i*100),c,u,l,p=new Date-this.start,f=a==100?0:p*(this.total/this.curr-1),g=this.curr/(p/1e3),x=this.fmt.replace(":current",this.curr).replace(":total",this.total).replace(":elapsed",isNaN(p)?"0.0":(p/1e3).toFixed(1)).replace(":eta",isNaN(f)||!isFinite(f)?"0.0":(f/1e3).toFixed(1)).replace(":percent",a.toFixed(0)+"%").replace(":rate",Math.round(g)),b=Math.max(0,this.stream.columns-x.replace(":bar","").length);b&&process.platform==="win32"&&(b=b-1);var E=Math.min(this.width,b);if(l=Math.round(E*i),u=Array(Math.max(0,l+1)).join(this.chars.complete),c=Array(Math.max(0,E-l+1)).join(this.chars.incomplete),l>0&&(u=u.slice(0,-1)+this.chars.head),x=x.replace(":bar",u+c),this.tokens)for(var S in this.tokens)x=x.replace(":"+S,this.tokens[S]);this.lastDraw!==x&&(this.stream.cursorTo(0),this.stream.write(x),this.stream.clearLine(1),this.lastDraw=x)}}};kv.prototype.update=function(e,r){var n=Math.floor(e*this.total),o=n-this.curr;this.tick(o,r)};kv.prototype.interrupt=function(e){this.stream.clearLine(),this.stream.cursorTo(0),this.stream.write(e),this.stream.write(`
|
|
45
45
|
`),this.stream.write(this.lastDraw)};kv.prototype.terminate=function(){this.clear?this.stream.clearLine&&(this.stream.clearLine(),this.stream.cursorTo(0)):this.stream.write(`
|
|
46
|
-
`)}});var W1e=A((pxr,H1e)=>{"use strict";H1e.exports=G1e()});var K1e=A((dxr,Pvt)=>{Pvt.exports={name:"@prisma/fetch-engine",version:"7.9.0",description:"This package is intended for Prisma's internal use",main:"dist/index.js",types:"dist/index.d.ts",license:"Apache-2.0",author:"Tim Suchanek <suchanek@prisma.io>",homepage:"https://www.prisma.io",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/fetch-engine"},bugs:"https://github.com/prisma/prisma/issues",enginesOverride:{},devDependencies:{"@types/node":"~20.19.24","@types/progress":"2.0.7",del:"6.1.1",execa:"8.0.1","find-cache-dir":"5.0.0","fs-extra":"11.3.0",hasha:"5.2.2","http-proxy-agent":"7.0.2","https-proxy-agent":"7.0.6",kleur:"4.1.5","node-fetch":"3.3.2","p-filter":"4.1.0","p-map":"4.0.0","p-retry":"4.6.2",progress:"2.0.3","temp-dir":"2.0.0",tempy:"1.0.1","timeout-signal":"2.0.0",typescript:"5.4.5"},dependencies:{"@prisma/debug":"workspace:*","@prisma/engines-version":"7.9.0-1.e922089b7d7502aff4249d5da3420f6fa55fc6ad","@prisma/get-platform":"workspace:*"},scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",test:"vitest run",prepublishOnly:"pnpm run build"},files:["README.md","dist"],sideEffects:!1}});var STe=A((zxr,vTe)=>{"use strict";var Gvt=Object.create,ak=Object.defineProperty,Hvt=Object.getOwnPropertyDescriptor,Wvt=Object.getOwnPropertyNames,Vvt=Object.getPrototypeOf,zvt=Object.prototype.hasOwnProperty,Kvt=(e,r)=>{for(var n in r)ak(e,n,{get:r[n],enumerable:!0})},yTe=(e,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Wvt(r))!zvt.call(e,i)&&i!==n&&ak(e,i,{get:()=>r[i],enumerable:!(o=Hvt(r,i))||o.enumerable});return e},ck=(e,r,n)=>(n=e!=null?Gvt(Vvt(e)):{},yTe(r||!e||!e.__esModule?ak(n,"default",{value:e,enumerable:!0}):n,e)),Jvt=e=>yTe(ak({},"__esModule",{value:!0}),e),xTe={};Kvt(xTe,{CompositeFilesResolver:()=>Yvt,InMemoryFilesResolver:()=>Qvt,ensureType:()=>nSt,loadRelatedSchemaFiles:()=>Xvt,loadSchemaFiles:()=>ETe,realFsResolver:()=>fW});vTe.exports=Jvt(xTe);var lW=ck(require("node:path")),gTe=ck(require("node:path"));function bTe(e){return e.caseSensitive?r=>r:r=>r.toLocaleLowerCase()}var Yvt=class{constructor(e,r,n){this.primary=e,this.secondary=r,this._fileNameToKey=bTe(n)}_fileNameToKey;async listDirContents(e){let r=await this.primary.listDirContents(e),n=await this.secondary.listDirContents(e);return Zvt([...r,...n],this._fileNameToKey)}async getEntryType(e){return await this.primary.getEntryType(e)??await this.secondary.getEntryType(e)}async getFileContents(e){return await this.primary.getFileContents(e)??await this.secondary.getFileContents(e)}};function Zvt(e,r){let n=new Map;for(let o of e){let i=r(o);n.has(i)||n.set(i,o)}return Array.from(n.values())}var Qvt=class{_tree={};_fileNameToKey;constructor(e){this._fileNameToKey=bTe(e)}addFile(e,r){let n=e.split(/[\\/]/),o=n.pop();if(!o)throw new Error("Path is empty");let i=this._tree;for(let a of n){let c=this._fileNameToKey(a),u=i[c];if(u||(u={canonicalName:a,content:{}},i[c]=u),typeof u.content=="string")throw new Error(`${a} is a file`);i=u.content}if(typeof i[o]?.content=="object")throw new Error(`${e} is a directory`);i[this._fileNameToKey(o)]={canonicalName:o,content:r}}getInMemoryContent(e){let r=e.split(/[\\/]/).map(o=>this._fileNameToKey(o)),n=this._tree;for(let o of r){if(typeof n!="object")return;n=n[o]?.content}return n}listDirContents(e){return Promise.resolve().then(()=>{let r=this.getInMemoryContent(e);return typeof r!="object"?[]:Object.values(r).map(n=>n.canonicalName)})}getEntryType(e){return Promise.resolve().then(()=>{let r=this.getInMemoryContent(e);if(typeof r=="string")return{kind:"file"};if(typeof r=="object")return{kind:"directory"}})}getFileContents(e){return Promise.resolve().then(()=>{let r=this.getInMemoryContent(e);if(!(typeof r>"u")){if(typeof r=="object")throw new Error(`${e} is directory`);return r}})}},lD=ck(qh()),fW={listDirContents(e){return lD.default.readdir(e)},async getEntryType(e){let r=await lD.default.lstat(e);return r.isFile()?{kind:"file"}:r.isDirectory()?{kind:"directory",realPath:await lD.default.realpath(e)}:r.isSymbolicLink()?{kind:"symlink",realPath:await lD.default.realpath(e)}:{kind:"other"}},getFileContents(e){return lD.default.readFile(e,"utf8")}};async function ETe(e,r=fW){let n=await r.getEntryType(e);return pW(e,n,r)}async function pW(e,r,n,o=new Set){if(!r)return[];if(r.kind==="symlink"){let i=r.realPath,a=await n.getEntryType(i);return pW(i,a,n,o)}if(r.kind==="file"){if(gTe.default.extname(e)!==".prisma")return[];let i=await n.getFileContents(e);return typeof i>"u"?[]:[[e,i]]}if(r.kind==="directory"){let i=r.realPath??e;if(o.has(i))return[];o.add(i);let a=await n.listDirContents(e);return(await Promise.all(a.map(async u=>{let l=gTe.default.join(e,u),p=await n.getEntryType(l);return pW(l,p,n,o)}))).flat()}return[]}async function Xvt(e,r=fW){let n=await tSt(e,r);return n?await ETe(n,r):eSt(e,r)}async function eSt(e,r){let n=await r.getFileContents(e);return n===void 0?[]:[[e,n]]}async function tSt(e,r){let n=lW.default.dirname(e);for(;n!==e;){let o=lW.default.dirname(n);if((await r.listDirContents(o)).filter(c=>lW.default.extname(c)===".prisma").length===0)return n;n=o}}var rSt=ck(require("node:fs/promises"));async function nSt(e,r){try{let n=await rSt.default.stat(e);return r==="file"&&n.isFile()||r==="directory"&&n.isDirectory()?void 0:{kind:"WrongType",path:e,expectedTypes:[r]}}catch(n){if(n.code==="ENOENT")return{kind:"NotFound",path:e,expectedType:r};throw n}}});var vW=A((yo,PTe)=>{"use strict";var CTe={};CTe.__wbindgen_placeholder__=PTe.exports;var uk=null;function mD(){return(uk===null||uk.byteLength===0)&&(uk=new Uint8Array(ke.memory.buffer)),uk}var ATe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});ATe.decode();function fSt(e,r){return ATe.decode(mD().subarray(e,e+r))}function As(e,r){return e=e>>>0,fSt(e,r)}function Nv(e){let r=ke.__wbindgen_externrefs.get(e);return ke.__externref_table_dealloc(e),r}function dSt(e,r){return e=e>>>0,mD().subarray(e/1,e/1+r)}var $o=0,hD=new TextEncoder;"encodeInto"in hD||(hD.encodeInto=function(e,r){let n=hD.encode(e);return r.set(n),{read:e.length,written:n.length}});function gi(e,r,n){if(n===void 0){let u=hD.encode(e),l=r(u.length,1)>>>0;return mD().subarray(l,l+u.length).set(u),$o=u.length,l}let o=e.length,i=r(o,1)>>>0,a=mD(),c=0;for(;c<o;c++){let u=e.charCodeAt(c);if(u>127)break;a[i+c]=u}if(c!==o){c!==0&&(e=e.slice(c)),i=n(i,o,o=c+e.length*3,1)>>>0;let u=mD().subarray(i+c,i+o),l=hD.encodeInto(e,u);c+=l.written,i=n(i,o,c,1)>>>0}return $o=c,i}yo.merge_schemas=function(e){let r,n;try{let a=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),c=$o,u=ke.merge_schemas(a,c);var o=u[0],i=u[1];if(u[3])throw o=0,i=0,Nv(u[2]);return r=o,n=i,As(o,i)}finally{ke.__wbindgen_free(r,n,1)}};yo.native_types=function(e){let r,n;try{let o=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=$o,a=ke.native_types(o,i);return r=a[0],n=a[1],As(a[0],a[1])}finally{ke.__wbindgen_free(r,n,1)}};yo.lint=function(e){let r,n;try{let o=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=$o,a=ke.lint(o,i);return r=a[0],n=a[1],As(a[0],a[1])}finally{ke.__wbindgen_free(r,n,1)}};yo.get_dmmf=function(e){let r,n;try{let a=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),c=$o,u=ke.get_dmmf(a,c);var o=u[0],i=u[1];if(u[3])throw o=0,i=0,Nv(u[2]);return r=o,n=i,As(o,i)}finally{ke.__wbindgen_free(r,n,1)}};yo.references=function(e,r){let n,o;try{let i=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=$o,c=gi(r,ke.__wbindgen_malloc,ke.__wbindgen_realloc),u=$o,l=ke.references(i,a,c,u);return n=l[0],o=l[1],As(l[0],l[1])}finally{ke.__wbindgen_free(n,o,1)}};yo.format=function(e,r){let n,o;try{let i=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=$o,c=gi(r,ke.__wbindgen_malloc,ke.__wbindgen_realloc),u=$o,l=ke.format(i,a,c,u);return n=l[0],o=l[1],As(l[0],l[1])}finally{ke.__wbindgen_free(n,o,1)}};yo.validate=function(e){let r=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),n=$o,o=ke.validate(r,n);if(o[1])throw Nv(o[0])};yo.debug_panic=function(){ke.debug_panic()};yo.text_document_completion=function(e,r){let n,o;try{let i=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=$o,c=gi(r,ke.__wbindgen_malloc,ke.__wbindgen_realloc),u=$o,l=ke.text_document_completion(i,a,c,u);return n=l[0],o=l[1],As(l[0],l[1])}finally{ke.__wbindgen_free(n,o,1)}};yo.referential_actions=function(e){let r,n;try{let o=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=$o,a=ke.referential_actions(o,i);return r=a[0],n=a[1],As(a[0],a[1])}finally{ke.__wbindgen_free(r,n,1)}};yo.get_dmmf_buffered=function(e){let r=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),n=$o,o=ke.get_dmmf_buffered(r,n);if(o[2])throw Nv(o[1]);return $v.__wrap(o[0])};yo.get_config=function(e){let r,n;try{let o=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=$o,a=ke.get_config(o,i);return r=a[0],n=a[1],As(a[0],a[1])}finally{ke.__wbindgen_free(r,n,1)}};yo.hover=function(e,r){let n,o;try{let i=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=$o,c=gi(r,ke.__wbindgen_malloc,ke.__wbindgen_realloc),u=$o,l=ke.hover(i,a,c,u);return n=l[0],o=l[1],As(l[0],l[1])}finally{ke.__wbindgen_free(n,o,1)}};yo.get_datamodel=function(e){let r,n;try{let a=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),c=$o,u=ke.get_datamodel(a,c);var o=u[0],i=u[1];if(u[3])throw o=0,i=0,Nv(u[2]);return r=o,n=i,As(o,i)}finally{ke.__wbindgen_free(r,n,1)}};yo.code_actions=function(e,r){let n,o;try{let i=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=$o,c=gi(r,ke.__wbindgen_malloc,ke.__wbindgen_realloc),u=$o,l=ke.code_actions(i,a,c,u);return n=l[0],o=l[1],As(l[0],l[1])}finally{ke.__wbindgen_free(n,o,1)}};yo.preview_features=function(){let e,r;try{let n=ke.preview_features();return e=n[0],r=n[1],As(n[0],n[1])}finally{ke.__wbindgen_free(e,r,1)}};var DTe=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_dmmfbuffer_free(e>>>0,1)),$v=class e{static __wrap(r){r=r>>>0;let n=Object.create(e.prototype);return n.__wbg_ptr=r,DTe.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let r=this.__wbg_ptr;return this.__wbg_ptr=0,DTe.unregister(this),r}free(){let r=this.__destroy_into_raw();ke.__wbg_dmmfbuffer_free(r,0)}read_chunk(r,n){let o=ke.dmmfbuffer_read_chunk(this.__wbg_ptr,r,n);if(o[3])throw Nv(o[2]);var i=dSt(o[0],o[1]).slice();return ke.__wbindgen_free(o[0],o[1]*1,1),i}len(){return ke.dmmfbuffer_len(this.__wbg_ptr)>>>0}is_empty(){return ke.dmmfbuffer_is_empty(this.__wbg_ptr)!==0}};Symbol.dispose&&($v.prototype[Symbol.dispose]=$v.prototype.free);yo.DmmfBuffer=$v;yo.__wbg_Error_e83987f665cf5504=function(e,r){return Error(As(e,r))};yo.__wbg___wbindgen_throw_b855445ff6a94295=function(e,r){throw new Error(As(e,r))};yo.__wbg_set_message_f22ac4a6869ee695=function(e,r){global.PRISMA_WASM_PANIC_REGISTRY.set_message(As(e,r))};yo.__wbindgen_init_externref_table=function(){let e=ke.__wbindgen_externrefs,r=e.grow(4);e.set(0,void 0),e.set(r+0,void 0),e.set(r+1,null),e.set(r+2,!0),e.set(r+3,!1)};var mSt=`${__dirname}/prisma_schema_build_bg.wasm`,hSt=require("fs").readFileSync(mSt),gSt=new WebAssembly.Module(hSt),ke=yo.__wasm=new WebAssembly.Instance(gSt,CTe).exports;ke.__wbindgen_start()});var SW=A((abr,ySt)=>{ySt.exports={name:"@prisma/internals",version:"7.9.0",description:"This package is intended for Prisma's internal use",main:"dist/index.js",types:"dist/index.d.ts",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/internals"},homepage:"https://www.prisma.io",author:"Tim Suchanek <suchanek@prisma.io>",bugs:"https://github.com/prisma/prisma/issues",license:"Apache-2.0",scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",test:"dotenv -e ../../.db.env -- vitest run --silent",prepublishOnly:"pnpm run build"},files:["README.md","dist","!dist/get-generators/engines/*","scripts"],devDependencies:{"@babel/helper-validator-identifier":"7.25.9","@opentelemetry/api":"1.9.0","@types/babel__helper-validator-identifier":"7.15.2","@types/node":"~20.19.24","@types/resolve":"1.20.6","checkpoint-client":"1.1.33","cli-truncate":"4.0.0",empathic:"2.0.0","escape-string-regexp":"5.0.0",execa:"8.0.1","find-up":"7.0.0","fp-ts":"2.16.9","fs-extra":"11.3.0","global-directory":"4.0.0",globby:"11.1.0","identifier-regex":"1.0.0","indent-string":"4.0.0","is-windows":"1.0.2","is-wsl":"3.1.0",kleur:"4.1.5","mock-stdin":"1.0.0","new-github-issue-url":"0.2.1","node-fetch":"3.3.2","npm-packlist":"5.1.3",open:"7.4.2","p-map":"4.0.0",resolve:"1.22.10","string-width":"7.2.0","strip-indent":"4.0.0","temp-dir":"2.0.0",tempy:"1.0.1","terminal-link":"4.0.0",tmp:"0.2.3","ts-pattern":"5.6.2","ts-toolbelt":"9.6.0",typescript:"5.4.5",yarn:"1.22.22"},dependencies:{"@prisma/config":"workspace:*","@prisma/debug":"workspace:*","@prisma/dmmf":"workspace:*","@prisma/driver-adapter-utils":"workspace:*","@prisma/engines":"workspace:*","@prisma/fetch-engine":"workspace:*","@prisma/generator":"workspace:*","@prisma/generator-helper":"workspace:*","@prisma/get-dmmf":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/prisma-schema-wasm":"7.9.0-1.e922089b7d7502aff4249d5da3420f6fa55fc6ad","@prisma/schema-engine-wasm":"7.9.0-1.e922089b7d7502aff4249d5da3420f6fa55fc6ad","@prisma/schema-files-loader":"workspace:*","@streamparser/json":"0.0.22",arg:"5.0.2",prompts:"2.4.2"},peerDependencies:{typescript:">=5.4.0"},peerDependenciesMeta:{typescript:{optional:!0}},sideEffects:!1}});var vn=A(wt=>{"use strict";var MSt=wt&&wt.__spreadArray||function(e,r,n){if(n||arguments.length===2)for(var o=0,i=r.length,a;o<i;o++)(a||!(o in r))&&(a||(a=Array.prototype.slice.call(r,0,o)),a[o]=r[o]);return e.concat(a||Array.prototype.slice.call(r))};Object.defineProperty(wt,"__esModule",{value:!0});wt.dual=wt.getEndomorphismMonoid=wt.SK=wt.hole=wt.constVoid=wt.constUndefined=wt.constNull=wt.constFalse=wt.constTrue=wt.unsafeCoerce=wt.apply=wt.getRing=wt.getSemiring=wt.getMonoid=wt.getSemigroup=wt.getBooleanAlgebra=void 0;wt.identity=LW;wt.constant=ED;wt.flip=jSt;wt.flow=WTe;wt.tuple=qSt;wt.increment=GSt;wt.decrement=HSt;wt.absurd=VTe;wt.tupled=WSt;wt.untupled=VSt;wt.pipe=zSt;wt.not=JSt;var kSt=function(e){return function(){return{meet:function(r,n){return function(o){return e.meet(r(o),n(o))}},join:function(r,n){return function(o){return e.join(r(o),n(o))}},zero:function(){return e.zero},one:function(){return e.one},implies:function(r,n){return function(o){return e.implies(r(o),n(o))}},not:function(r){return function(n){return e.not(r(n))}}}}};wt.getBooleanAlgebra=kSt;var $St=function(e){return function(){return{concat:function(r,n){return function(o){return e.concat(r(o),n(o))}}}}};wt.getSemigroup=$St;var NSt=function(e){var r=(0,wt.getSemigroup)(e);return function(){return{concat:r().concat,empty:function(){return e.empty}}}};wt.getMonoid=NSt;var LSt=function(e){return{add:function(r,n){return function(o){return e.add(r(o),n(o))}},zero:function(){return e.zero},mul:function(r,n){return function(o){return e.mul(r(o),n(o))}},one:function(){return e.one}}};wt.getSemiring=LSt;var BSt=function(e){var r=(0,wt.getSemiring)(e);return{add:r.add,mul:r.mul,one:r.one,zero:r.zero,sub:function(n,o){return function(i){return e.sub(n(i),o(i))}}}};wt.getRing=BSt;var USt=function(e){return function(r){return r(e)}};wt.apply=USt;function LW(e){return e}wt.unsafeCoerce=LW;function ED(e){return function(){return e}}wt.constTrue=ED(!0);wt.constFalse=ED(!1);wt.constNull=ED(null);wt.constUndefined=ED(void 0);wt.constVoid=wt.constUndefined;function jSt(e){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length>1?e(r[1],r[0]):function(o){return e(o)(r[0])}}}function WTe(e,r,n,o,i,a,c,u,l){switch(arguments.length){case 1:return e;case 2:return function(){return r(e.apply(this,arguments))};case 3:return function(){return n(r(e.apply(this,arguments)))};case 4:return function(){return o(n(r(e.apply(this,arguments))))};case 5:return function(){return i(o(n(r(e.apply(this,arguments)))))};case 6:return function(){return a(i(o(n(r(e.apply(this,arguments))))))};case 7:return function(){return c(a(i(o(n(r(e.apply(this,arguments)))))))};case 8:return function(){return u(c(a(i(o(n(r(e.apply(this,arguments))))))))};case 9:return function(){return l(u(c(a(i(o(n(r(e.apply(this,arguments)))))))))}}}function qSt(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e}function GSt(e){return e+1}function HSt(e){return e-1}function VTe(e){throw new Error("Called `absurd` function which should be uncallable")}function WSt(e){return function(r){return e.apply(void 0,r)}}function VSt(e){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e(r)}}function zSt(e,r,n,o,i,a,c,u,l){switch(arguments.length){case 1:return e;case 2:return r(e);case 3:return n(r(e));case 4:return o(n(r(e)));case 5:return i(o(n(r(e))));case 6:return a(i(o(n(r(e)))));case 7:return c(a(i(o(n(r(e))))));case 8:return u(c(a(i(o(n(r(e)))))));case 9:return l(u(c(a(i(o(n(r(e))))))));default:{for(var p=arguments[0],f=1;f<arguments.length;f++)p=arguments[f](p);return p}}}wt.hole=VTe;var KSt=function(e,r){return r};wt.SK=KSt;function JSt(e){return function(r){return!e(r)}}var YSt=function(){return{concat:function(e,r){return WTe(e,r)},empty:LW}};wt.getEndomorphismMonoid=YSt;var ZSt=function(e,r){var n=typeof e=="number"?function(o){return o.length>=e}:e;return function(){var o=Array.from(arguments);return n(arguments)?r.apply(this,o):function(i){return r.apply(void 0,MSt([i],o,!1))}}};wt.dual=ZSt});var Ak=A((KW,JW)=>{"use strict";(function(e,r){typeof require=="function"&&typeof KW=="object"&&typeof JW=="object"?JW.exports=r():typeof define=="function"&&define.amd?define(function(){return r()}):e.pluralize=r()})(KW,function(){var e=[],r=[],n={},o={},i={};function a(b){return typeof b=="string"?new RegExp("^"+b+"$","i"):b}function c(b,E){return b===E?E:b===b.toLowerCase()?E.toLowerCase():b===b.toUpperCase()?E.toUpperCase():b[0]===b[0].toUpperCase()?E.charAt(0).toUpperCase()+E.substr(1).toLowerCase():E.toLowerCase()}function u(b,E){return b.replace(/\$(\d{1,2})/g,function(S,_){return E[_]||""})}function l(b,E){return b.replace(E[0],function(S,_){var D=u(E[1],arguments);return c(S===""?b[_-1]:S,D)})}function p(b,E,S){if(!b.length||n.hasOwnProperty(b))return E;for(var _=S.length;_--;){var D=S[_];if(D[0].test(E))return l(E,D)}return E}function f(b,E,S){return function(_){var D=_.toLowerCase();return E.hasOwnProperty(D)?c(_,D):b.hasOwnProperty(D)?c(_,b[D]):p(D,_,S)}}function g(b,E,S,_){return function(D){var O=D.toLowerCase();return E.hasOwnProperty(O)?!0:b.hasOwnProperty(O)?!1:p(O,O,S)===O}}function x(b,E,S){var _=E===1?x.singular(b):x.plural(b);return(S?E+" ":"")+_}return x.plural=f(i,o,e),x.isPlural=g(i,o,e),x.singular=f(o,i,r),x.isSingular=g(o,i,r),x.addPluralRule=function(b,E){e.push([a(b),E])},x.addSingularRule=function(b,E){r.push([a(b),E])},x.addUncountableRule=function(b){if(typeof b=="string"){n[b.toLowerCase()]=!0;return}x.addPluralRule(b,"$0"),x.addSingularRule(b,"$0")},x.addIrregularRule=function(b,E){E=E.toLowerCase(),b=b.toLowerCase(),i[b]=E,o[E]=b},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(b){return x.addIrregularRule(b[0],b[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(b){return x.addPluralRule(b[0],b[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(b){return x.addSingularRule(b[0],b[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(x.addUncountableRule),x})});var iV=A((cwr,HDe)=>{"use strict";var oV=Symbol("arg flag"),hu=class e extends Error{constructor(r,n){super(r),this.name="ArgError",this.code=n,Object.setPrototypeOf(this,e.prototype)}};function PD(e,{argv:r=process.argv.slice(2),permissive:n=!1,stopAtPositional:o=!1}={}){if(!e)throw new hu("argument specification object is required","ARG_CONFIG_NO_SPEC");let i={_:[]},a={},c={};for(let u of Object.keys(e)){if(!u)throw new hu("argument key cannot be an empty string","ARG_CONFIG_EMPTY_KEY");if(u[0]!=="-")throw new hu(`argument key must start with '-' but found: '${u}'`,"ARG_CONFIG_NONOPT_KEY");if(u.length===1)throw new hu(`argument key must have a name; singular '-' keys are not allowed: ${u}`,"ARG_CONFIG_NONAME_KEY");if(typeof e[u]=="string"){a[u]=e[u];continue}let l=e[u],p=!1;if(Array.isArray(l)&&l.length===1&&typeof l[0]=="function"){let[f]=l;l=(g,x,b=[])=>(b.push(f(g,x,b[b.length-1])),b),p=f===Boolean||f[oV]===!0}else if(typeof l=="function")p=l===Boolean||l[oV]===!0;else throw new hu(`type missing or not a function or valid array type: ${u}`,"ARG_CONFIG_VAD_TYPE");if(u[1]!=="-"&&u.length>2)throw new hu(`short argument keys (with a single hyphen) must have only one character: ${u}`,"ARG_CONFIG_SHORTOPT_TOOLONG");c[u]=[l,p]}for(let u=0,l=r.length;u<l;u++){let p=r[u];if(o&&i._.length>0){i._=i._.concat(r.slice(u));break}if(p==="--"){i._=i._.concat(r.slice(u+1));break}if(p.length>1&&p[0]==="-"){let f=p[1]==="-"||p.length===2?[p]:p.slice(1).split("").map(g=>`-${g}`);for(let g=0;g<f.length;g++){let x=f[g],[b,E]=x[1]==="-"?x.split(/=(.*)/,2):[x,void 0],S=b;for(;S in a;)S=a[S];if(!(S in c))if(n){i._.push(x);continue}else throw new hu(`unknown or unexpected option: ${b}`,"ARG_UNKNOWN_OPTION");let[_,D]=c[S];if(!D&&g+1<f.length)throw new hu(`option requires argument (but was followed by another short argument): ${b}`,"ARG_MISSING_REQUIRED_SHORTARG");if(D)i[S]=_(!0,S,i[S]);else if(E===void 0){if(r.length<u+2||r[u+1].length>1&&r[u+1][0]==="-"&&!(r[u+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(_===Number||typeof BigInt<"u"&&_===BigInt))){let O=b===S?"":` (alias for ${S})`;throw new hu(`option requires argument: ${b}${O}`,"ARG_MISSING_REQUIRED_LONGARG")}i[S]=_(r[u+1],S,i[S]),++u}else i[S]=_(E,S,i[S])}}else i._.push(p)}return i}PD.flag=e=>(e[oV]=!0,e);PD.COUNT=PD.flag((e,r,n)=>(n||0)+1);PD.ArgError=hu;HDe.exports=PD});var VDe=A((uwr,WDe)=>{"use strict";WDe.exports=e=>{let r=e.match(/^[ \t]*(?=\S)/gm);return r?r.reduce((n,o)=>Math.min(n,o.length),1/0):0}});var dV=A((A_r,ACe)=>{"use strict";var Xwt=require("os");ACe.exports=Xwt.homedir||function(){var r=process.env.HOME,n=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||r||null:process.platform==="darwin"?r||(n?"/Users/"+n:null):process.platform==="linux"?r||(process.getuid()===0?"/root":n?"/home/"+n:null):r||null}});var mV=A((P_r,PCe)=>{"use strict";PCe.exports=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(n,o){return o};var r=new Error().stack;return Error.prepareStackTrace=e,r[2].getFileName()}});var OCe=A((O_r,ID)=>{"use strict";var e_t=process.platform==="win32",t_t=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,hV={};function r_t(e){return t_t.exec(e).slice(1)}hV.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var r=r_t(e);if(!r||r.length!==5)throw new TypeError("Invalid path '"+e+"'");return{root:r[1],dir:r[0]===r[1]?r[0]:r[0].slice(0,-1),base:r[2],ext:r[4],name:r[3]}};var n_t=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,gV={};function o_t(e){return n_t.exec(e).slice(1)}gV.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var r=o_t(e);if(!r||r.length!==5)throw new TypeError("Invalid path '"+e+"'");return{root:r[1],dir:r[0].slice(0,-1),base:r[2],ext:r[4],name:r[3]}};e_t?ID.exports=hV.parse:ID.exports=gV.parse;ID.exports.posix=gV.parse;ID.exports.win32=hV.parse});var yV=A((I_r,MCe)=>{"use strict";var FCe=require("path"),ICe=FCe.parse||OCe(),RCe=function(r,n){var o="/";/^([A-Za-z]:)/.test(r)?o="":/^\\\\/.test(r)&&(o="\\\\");for(var i=[r],a=ICe(r);a.dir!==i[i.length-1];)i.push(a.dir),a=ICe(a.dir);return i.reduce(function(c,u){return c.concat(n.map(function(l){return FCe.resolve(o,u,l)}))},[])};MCe.exports=function(r,n,o){var i=n&&n.moduleDirectory?[].concat(n.moduleDirectory):["node_modules"];if(n&&typeof n.paths=="function")return n.paths(o,r,function(){return RCe(r,i)},n);var a=RCe(r,i);return n&&n.paths?a.concat(n.paths):a}});var xV=A((R_r,kCe)=>{"use strict";kCe.exports=function(e,r){return r||{}}});var LCe=A((F_r,NCe)=>{"use strict";var i_t="Function.prototype.bind called on incompatible ",s_t=Object.prototype.toString,a_t=Math.max,c_t="[object Function]",$Ce=function(r,n){for(var o=[],i=0;i<r.length;i+=1)o[i]=r[i];for(var a=0;a<n.length;a+=1)o[a+r.length]=n[a];return o},u_t=function(r,n){for(var o=[],i=n||0,a=0;i<r.length;i+=1,a+=1)o[a]=r[i];return o},l_t=function(e,r){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=r);return n};NCe.exports=function(r){var n=this;if(typeof n!="function"||s_t.apply(n)!==c_t)throw new TypeError(i_t+n);for(var o=u_t(arguments,1),i,a=function(){if(this instanceof i){var f=n.apply(this,$Ce(o,arguments));return Object(f)===f?f:this}return n.apply(r,$Ce(o,arguments))},c=a_t(0,n.length-o.length),u=[],l=0;l<c;l++)u[l]="$"+l;if(i=Function("binder","return function ("+l_t(u,",")+"){ return binder.apply(this,arguments); }")(a),n.prototype){var p=function(){};p.prototype=n.prototype,i.prototype=new p,p.prototype=null}return i}});var UCe=A((M_r,BCe)=>{"use strict";var p_t=LCe();BCe.exports=Function.prototype.bind||p_t});var qCe=A((k_r,jCe)=>{"use strict";var f_t=Function.prototype.call,d_t=Object.prototype.hasOwnProperty,m_t=UCe();jCe.exports=m_t.call(f_t,d_t)});var GCe=A(($_r,h_t)=>{h_t.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3","node:sqlite":[">= 22.13 && < 23",">= 23.4"],_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var RD=A((N_r,VCe)=>{"use strict";var g_t=qCe();function y_t(e,r){for(var n=e.split("."),o=r.split(" "),i=o.length>1?o[0]:"=",a=(o.length>1?o[1]:o[0]).split("."),c=0;c<3;++c){var u=parseInt(n[c]||0,10),l=parseInt(a[c]||0,10);if(u!==l)return i==="<"?u<l:i===">="?u>=l:!1}return i===">="}function HCe(e,r){var n=r.split(/ ?&& ?/);if(n.length===0)return!1;for(var o=0;o<n.length;++o)if(!y_t(e,n[o]))return!1;return!0}function x_t(e,r){if(typeof r=="boolean")return r;var n=typeof e>"u"?process.versions&&process.versions.node:e;if(typeof n!="string")throw new TypeError(typeof e>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(r&&typeof r=="object"){for(var o=0;o<r.length;++o)if(HCe(n,r[o]))return!0;return!1}return HCe(n,r)}var WCe=GCe();VCe.exports=function(r,n){return g_t(WCe,r)&&x_t(n,WCe[r])}});var JCe=A((L_r,KCe)=>{"use strict";var Ky=require("fs"),b_t=dV(),Zo=require("path"),E_t=mV(),v_t=yV(),S_t=xV(),w_t=RD(),__t=process.platform!=="win32"&&Ky.realpath&&typeof Ky.realpath.native=="function"?Ky.realpath.native:Ky.realpath,zCe=b_t(),T_t=function(){return[Zo.join(zCe,".node_modules"),Zo.join(zCe,".node_libraries")]},D_t=function(r,n){Ky.stat(r,function(o,i){return o?o.code==="ENOENT"||o.code==="ENOTDIR"?n(null,!1):n(o):n(null,i.isFile()||i.isFIFO())})},C_t=function(r,n){Ky.stat(r,function(o,i){return o?o.code==="ENOENT"||o.code==="ENOTDIR"?n(null,!1):n(o):n(null,i.isDirectory())})},A_t=function(r,n){__t(r,function(o,i){o&&o.code!=="ENOENT"?n(o):n(null,o?r:i)})},FD=function(r,n,o,i){o&&o.preserveSymlinks===!1?r(n,i):i(null,n)},P_t=function(r,n,o){r(n,function(i,a){if(i)o(i);else try{var c=JSON.parse(a);o(null,c)}catch{o(null)}})},O_t=function(r,n,o){for(var i=v_t(n,o,r),a=0;a<i.length;a++)i[a]=Zo.join(i[a],r);return i};KCe.exports=function(r,n,o){var i=o,a=n;if(typeof n=="function"&&(i=a,a={}),typeof r!="string"){var c=new TypeError("Path must be a string.");return process.nextTick(function(){i(c)})}a=S_t(r,a);var u=a.isFile||D_t,l=a.isDirectory||C_t,p=a.readFile||Ky.readFile,f=a.realpath||A_t,g=a.readPackage||P_t;if(a.readFile&&a.readPackage){var x=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){i(x)})}var b=a.packageIterator,E=a.extensions||[".js"],S=a.includeCoreModules!==!1,_=a.basedir||Zo.dirname(E_t()),D=a.filename||_;a.paths=a.paths||T_t();var O=Zo.resolve(_);FD(f,O,a,function(F,Y){F?i(F):R(Y)});var C;function R(F){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(r))C=Zo.resolve(F,r),(r==="."||r===".."||r.slice(-1)==="/")&&(C+="/"),/\/$/.test(r)&&C===F?G(C,a.package,I):k(C,a.package,I);else{if(S&&w_t(r))return i(null,r);H(r,F,function(Y,V,Q){if(Y)i(Y);else{if(V)return FD(f,V,a,function(Z,ie){Z?i(Z):i(null,ie,Q)});var q=new Error("Cannot find module '"+r+"' from '"+D+"'");q.code="MODULE_NOT_FOUND",i(q)}})}}function I(F,Y,V){F?i(F):Y?i(null,Y,V):G(C,function(Q,q,Z){if(Q)i(Q);else if(q)FD(f,q,a,function(se,le){se?i(se):i(null,le,Z)});else{var ie=new Error("Cannot find module '"+r+"' from '"+D+"'");ie.code="MODULE_NOT_FOUND",i(ie)}})}function k(F,Y,V){var Q=Y,q=V;typeof Q=="function"&&(q=Q,Q=void 0);var Z=[""].concat(E);ie(Z,F,Q);function ie(se,le,_e){if(se.length===0)return q(null,void 0,_e);var Ge=le+se[0],Mt=_e;Mt?Zt(null,Mt):j(Zo.dirname(Ge),Zt);function Zt(Gt,$e,Qe){if(Mt=$e,Gt)return q(Gt);if(Qe&&Mt&&a.pathFilter){var mo=Zo.relative(Qe,Ge),xe=mo.slice(0,mo.length-se[0].length),ze=a.pathFilter(Mt,le,xe);if(ze)return ie([""].concat(E.slice()),Zo.resolve(Qe,ze),Mt)}u(Ge,kt)}function kt(Gt,$e){if(Gt)return q(Gt);if($e)return q(null,Ge,Mt);ie(se.slice(1),le,Mt)}}}function j(F,Y){if(F===""||F==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(F)||/[/\\]node_modules[/\\]*$/.test(F))return Y(null);FD(f,F,a,function(V,Q){if(V)return j(Zo.dirname(F),Y);var q=Zo.join(Q,"package.json");u(q,function(Z,ie){if(!ie)return j(Zo.dirname(F),Y);g(p,q,function(se,le){se&&Y(se);var _e=le;_e&&a.packageFilter&&(_e=a.packageFilter(_e,q)),Y(null,_e,F)})})})}function G(F,Y,V){var Q=V,q=Y;typeof q=="function"&&(Q=q,q=a.package),FD(f,F,a,function(Z,ie){if(Z)return Q(Z);var se=Zo.join(ie,"package.json");u(se,function(le,_e){if(le)return Q(le);if(!_e)return k(Zo.join(F,"index"),q,Q);g(p,se,function(Ge,Mt){if(Ge)return Q(Ge);var Zt=Mt;if(Zt&&a.packageFilter&&(Zt=a.packageFilter(Zt,se)),Zt&&Zt.main){if(typeof Zt.main!="string"){var kt=new TypeError("package \u201C"+Zt.name+"\u201D `main` must be a string");return kt.code="INVALID_PACKAGE_MAIN",Q(kt)}(Zt.main==="."||Zt.main==="./")&&(Zt.main="index"),k(Zo.resolve(F,Zt.main),Zt,function(Gt,$e,Qe){if(Gt)return Q(Gt);if($e)return Q(null,$e,Qe);if(!Qe)return k(Zo.join(F,"index"),Qe,Q);var mo=Zo.resolve(F,Qe.main);G(mo,Qe,function(xe,ze,ge){if(xe)return Q(xe);if(ze)return Q(null,ze,ge);k(Zo.join(F,"index"),ge,Q)})});return}k(Zo.join(F,"/index"),Zt,Q)})})})}function L(F,Y){if(Y.length===0)return F(null,void 0);var V=Y[0];l(Zo.dirname(V),Q);function Q(ie,se){if(ie)return F(ie);if(!se)return L(F,Y.slice(1));k(V,a.package,q)}function q(ie,se,le){if(ie)return F(ie);if(se)return F(null,se,le);G(V,a.package,Z)}function Z(ie,se,le){if(ie)return F(ie);if(se)return F(null,se,le);L(F,Y.slice(1))}}function H(F,Y,V){var Q=function(){return O_t(F,Y,a)};L(V,b?b(F,Y,Q,a):Q())}}});var YCe=A((B_r,I_t)=>{I_t.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3","node:sqlite":">= 23.4",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var eAe=A((U_r,XCe)=>{"use strict";var R_t=RD(),ZCe=YCe(),QCe={};for(jk in ZCe)Object.prototype.hasOwnProperty.call(ZCe,jk)&&(QCe[jk]=R_t(jk));var jk;XCe.exports=QCe});var rAe=A((j_r,tAe)=>{"use strict";var F_t=RD();tAe.exports=function(r){return F_t(r)}});var iAe=A((q_r,oAe)=>{"use strict";var M_t=RD(),Jy=require("fs"),Ps=require("path"),k_t=dV(),$_t=mV(),N_t=yV(),L_t=xV(),B_t=process.platform!=="win32"&&Jy.realpathSync&&typeof Jy.realpathSync.native=="function"?Jy.realpathSync.native:Jy.realpathSync,nAe=k_t(),U_t=function(){return[Ps.join(nAe,".node_modules"),Ps.join(nAe,".node_libraries")]},j_t=function(r){try{var n=Jy.statSync(r,{throwIfNoEntry:!1})}catch(o){if(o&&(o.code==="ENOENT"||o.code==="ENOTDIR"))return!1;throw o}return!!n&&(n.isFile()||n.isFIFO())},q_t=function(r){try{var n=Jy.statSync(r,{throwIfNoEntry:!1})}catch(o){if(o&&(o.code==="ENOENT"||o.code==="ENOTDIR"))return!1;throw o}return!!n&&n.isDirectory()},G_t=function(r){try{return B_t(r)}catch(n){if(n.code!=="ENOENT")throw n}return r},MD=function(r,n,o){return o&&o.preserveSymlinks===!1?r(n):n},H_t=function(r,n){var o=r(n);try{var i=JSON.parse(o);return i}catch{}},W_t=function(r,n,o){for(var i=N_t(n,o,r),a=0;a<i.length;a++)i[a]=Ps.join(i[a],r);return i};oAe.exports=function(r,n){if(typeof r!="string")throw new TypeError("Path must be a string.");var o=L_t(r,n),i=o.isFile||j_t,a=o.readFileSync||Jy.readFileSync,c=o.isDirectory||q_t,u=o.realpathSync||G_t,l=o.readPackageSync||H_t;if(o.readFileSync&&o.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var p=o.packageIterator,f=o.extensions||[".js"],g=o.includeCoreModules!==!1,x=o.basedir||Ps.dirname($_t()),b=o.filename||x;o.paths=o.paths||U_t();var E=MD(u,Ps.resolve(x),o);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(r)){var S=Ps.resolve(E,r);(r==="."||r===".."||r.slice(-1)==="/")&&(S+="/");var _=C(S)||I(S);if(_)return MD(u,_,o)}else{if(g&&M_t(r))return r;var D=k(r,E);if(D)return MD(u,D,o)}var O=new Error("Cannot find module '"+r+"' from '"+b+"'");throw O.code="MODULE_NOT_FOUND",O;function C(j){var G=R(Ps.dirname(j));if(G&&G.dir&&G.pkg&&o.pathFilter){var L=Ps.relative(G.dir,j),H=o.pathFilter(G.pkg,j,L);H&&(j=Ps.resolve(G.dir,H))}if(i(j))return j;for(var F=0;F<f.length;F++){var Y=j+f[F];if(i(Y))return Y}}function R(j){if(!(j===""||j==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(j))&&!/[/\\]node_modules[/\\]*$/.test(j)){var G=Ps.join(MD(u,j,o),"package.json");if(!i(G))return R(Ps.dirname(j));var L=l(a,G);return L&&o.packageFilter&&(L=o.packageFilter(L,j)),{pkg:L,dir:j}}}function I(j){var G=Ps.join(MD(u,j,o),"/package.json");if(i(G)){try{var L=l(a,G)}catch{}if(L&&o.packageFilter&&(L=o.packageFilter(L,j)),L&&L.main){if(typeof L.main!="string"){var H=new TypeError("package \u201C"+L.name+"\u201D `main` must be a string");throw H.code="INVALID_PACKAGE_MAIN",H}(L.main==="."||L.main==="./")&&(L.main="index");try{var F=C(Ps.resolve(j,L.main));if(F)return F;var Y=I(Ps.resolve(j,L.main));if(Y)return Y}catch{}}}return C(Ps.join(j,"/index"))}function k(j,G){for(var L=function(){return W_t(j,G,o)},H=p?p(j,G,L,o):L(),F=0;F<H.length;F++){var Y=H[F];if(c(Ps.dirname(Y))){var V=C(Y);if(V)return V;var Q=I(Y);if(Q)return Q}}}}});var aAe=A((G_r,sAe)=>{"use strict";var qk=JCe();qk.core=eAe();qk.isCore=rAe();qk.sync=iAe();sAe.exports=qk});var dAe=A((Y_r,Q_t)=>{Q_t.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var gAe=A(_c=>{"use strict";var hAe=dAe(),yi=process.env;Object.defineProperty(_c,"_vendors",{value:hAe.map(function(e){return e.constant})});_c.name=null;_c.isPR=null;hAe.forEach(function(e){let n=(Array.isArray(e.env)?e.env:[e.env]).every(function(o){return mAe(o)});if(_c[e.constant]=n,!!n)switch(_c.name=e.name,typeof e.pr){case"string":_c.isPR=!!yi[e.pr];break;case"object":"env"in e.pr?_c.isPR=e.pr.env in yi&&yi[e.pr.env]!==e.pr.ne:"any"in e.pr?_c.isPR=e.pr.any.some(function(o){return!!yi[o]}):_c.isPR=mAe(e.pr);break;default:_c.isPR=null}});_c.isCI=!!(yi.CI!=="false"&&(yi.BUILD_ID||yi.BUILD_NUMBER||yi.CI||yi.CI_APP_ID||yi.CI_BUILD_ID||yi.CI_BUILD_NUMBER||yi.CI_NAME||yi.CONTINUOUS_INTEGRATION||yi.RUN_ID||_c.name));function mAe(e){return typeof e=="string"?!!yi[e]:"env"in e?yi[e.env]&&yi[e.env].includes(e.includes):"any"in e?e.any.some(function(r){return!!yi[r]}):Object.keys(e).every(function(r){return yi[r]===e[r]})}});var Zy=A((exports,module)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var path$2=require("path"),os$1=require("os"),require$$0=require("fs"),require$$2=require("util"),fs$1=require("fs/promises"),crypto=require("crypto"),child_process=require("child_process");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var path__default=_interopDefaultLegacy(path$2),os__default=_interopDefaultLegacy(os$1),require$$0__default=_interopDefaultLegacy(require$$0),require$$2__default=_interopDefaultLegacy(require$$2),fs__default=_interopDefaultLegacy(fs$1),crypto__default=_interopDefaultLegacy(crypto),rnds8Pool=new Uint8Array(256),poolPtr=rnds8Pool.length;function rng(){return poolPtr>rnds8Pool.length-16&&(crypto__default.default.randomFillSync(rnds8Pool),poolPtr=0),rnds8Pool.slice(poolPtr,poolPtr+=16)}var byteToHex=[];for(let e=0;e<256;++e)byteToHex.push((e+256).toString(16).slice(1));function unsafeStringify(e,r=0){return byteToHex[e[r+0]]+byteToHex[e[r+1]]+byteToHex[e[r+2]]+byteToHex[e[r+3]]+"-"+byteToHex[e[r+4]]+byteToHex[e[r+5]]+"-"+byteToHex[e[r+6]]+byteToHex[e[r+7]]+"-"+byteToHex[e[r+8]]+byteToHex[e[r+9]]+"-"+byteToHex[e[r+10]]+byteToHex[e[r+11]]+byteToHex[e[r+12]]+byteToHex[e[r+13]]+byteToHex[e[r+14]]+byteToHex[e[r+15]]}var native={randomUUID:crypto__default.default.randomUUID};function v4(e,r,n){if(native.randomUUID&&!r&&!e)return native.randomUUID();e=e||{};let o=e.random||(e.rng||rng)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,r){n=n||0;for(let i=0;i<16;++i)r[n+i]=o[i];return r}return unsafeStringify(o)}var envPaths$1={exports:{}},path$1=path__default.default,os=os__default.default,homedir=os.homedir(),tmpdir=os.tmpdir(),{env}=process,macos=e=>{let r=path$1.join(homedir,"Library");return{data:path$1.join(r,"Application Support",e),config:path$1.join(r,"Preferences",e),cache:path$1.join(r,"Caches",e),log:path$1.join(r,"Logs",e),temp:path$1.join(tmpdir,e)}},windows=e=>{let r=env.APPDATA||path$1.join(homedir,"AppData","Roaming"),n=env.LOCALAPPDATA||path$1.join(homedir,"AppData","Local");return{data:path$1.join(n,e,"Data"),config:path$1.join(r,e,"Config"),cache:path$1.join(n,e,"Cache"),log:path$1.join(n,e,"Log"),temp:path$1.join(tmpdir,e)}},linux=e=>{let r=path$1.basename(homedir);return{data:path$1.join(env.XDG_DATA_HOME||path$1.join(homedir,".local","share"),e),config:path$1.join(env.XDG_CONFIG_HOME||path$1.join(homedir,".config"),e),cache:path$1.join(env.XDG_CACHE_HOME||path$1.join(homedir,".cache"),e),log:path$1.join(env.XDG_STATE_HOME||path$1.join(homedir,".local","state"),e),temp:path$1.join(tmpdir,r,e)}},envPaths=(e,r)=>{if(typeof e!="string")throw new TypeError(`Expected string, got ${typeof e}`);return r=Object.assign({suffix:"nodejs"},r),r.suffix&&(e+=`-${r.suffix}`),process.platform==="darwin"?macos(e):process.platform==="win32"?windows(e):linux(e)};envPaths$1.exports=envPaths;envPaths$1.exports.default=envPaths;var paths=envPaths$1.exports,makeDir$2={exports:{}},debug$1=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},debug_1=debug$1,SEMVER_SPEC_VERSION="2.0.0",MAX_LENGTH$1=256,MAX_SAFE_INTEGER$1=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16,MAX_SAFE_BUILD_LENGTH=MAX_LENGTH$1-6,RELEASE_TYPES=["major","premajor","minor","preminor","patch","prepatch","prerelease"],constants={MAX_LENGTH:MAX_LENGTH$1,MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER$1,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},re$1={exports:{}};(function(e,r){let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o}=constants,i=debug_1;r=e.exports={};let a=r.re=[],c=r.safeRe=[],u=r.src=[],l=r.t={},p=0,f="[a-zA-Z0-9-]",g=[["\\s",1],["\\d",n],[f,o]],x=E=>{for(let[S,_]of g)E=E.split(`${S}*`).join(`${S}{0,${_}}`).split(`${S}+`).join(`${S}{1,${_}}`);return E},b=(E,S,_)=>{let D=x(S),O=p++;i(E,O,S),l[E]=O,u[O]=S,a[O]=new RegExp(S,_?"g":void 0),c[O]=new RegExp(D,_?"g":void 0)};b("NUMERICIDENTIFIER","0|[1-9]\\d*"),b("NUMERICIDENTIFIERLOOSE","\\d+"),b("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),b("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),b("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),b("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`),b("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`),b("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),b("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),b("BUILDIDENTIFIER",`${f}+`),b("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),b("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),b("FULL",`^${u[l.FULLPLAIN]}$`),b("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),b("LOOSE",`^${u[l.LOOSEPLAIN]}$`),b("GTLT","((?:<|>)?=?)"),b("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),b("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),b("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),b("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),b("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),b("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),b("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),b("COERCERTL",u[l.COERCE],!0),b("LONETILDE","(?:~>?)"),b("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),r.tildeTrimReplace="$1~",b("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),b("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),b("LONECARET","(?:\\^)"),b("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),r.caretTrimReplace="$1^",b("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),b("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),b("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),b("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),b("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace="$1$2$3",b("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),b("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),b("STAR","(<|>)?=?\\s*\\*"),b("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),b("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(re$1,re$1.exports);var looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions$1=e=>e?typeof e!="object"?looseOption:e:emptyOpts,parseOptions_1=parseOptions$1,numeric=/^[0-9]+$/,compareIdentifiers$1=(e,r)=>{let n=numeric.test(e),o=numeric.test(r);return n&&o&&(e=+e,r=+r),e===r?0:n&&!o?-1:o&&!n?1:e<r?-1:1},rcompareIdentifiers=(e,r)=>compareIdentifiers$1(r,e),identifiers={compareIdentifiers:compareIdentifiers$1,rcompareIdentifiers},debug=debug_1,{MAX_LENGTH,MAX_SAFE_INTEGER}=constants,{safeRe:re,t}=re$1.exports,parseOptions=parseOptions_1,{compareIdentifiers}=identifiers,SemVer$1=class e{constructor(r,n){if(n=parseOptions(n),r instanceof e){if(r.loose===!!n.loose&&r.includePrerelease===!!n.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof r}".`);if(r.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",r,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let o=r.trim().match(n.loose?re[t.LOOSE]:re[t.FULL]);if(!o)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let a=+i;if(a>=0&&a<MAX_SAFE_INTEGER)return a}return i}):this.prerelease=[],this.build=o[5]?o[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(r){if(debug("SemVer.compare",this.version,this.options,r),!(r instanceof e)){if(typeof r=="string"&&r===this.version)return 0;r=new e(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof e||(r=new e(r,this.options)),compareIdentifiers(this.major,r.major)||compareIdentifiers(this.minor,r.minor)||compareIdentifiers(this.patch,r.patch)}comparePre(r){if(r instanceof e||(r=new e(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let n=0;do{let o=this.prerelease[n],i=r.prerelease[n];if(debug("prerelease compare",n,o,i),o===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(o===void 0)return-1;if(o===i)continue;return compareIdentifiers(o,i)}while(++n)}compareBuild(r){r instanceof e||(r=new e(r,this.options));let n=0;do{let o=this.build[n],i=r.build[n];if(debug("prerelease compare",n,o,i),o===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(o===void 0)return-1;if(o===i)continue;return compareIdentifiers(o,i)}while(++n)}inc(r,n,o){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,o);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,o);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,o),this.inc("pre",n,o);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,o),this.inc("pre",n,o);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(o)?1:0;if(!n&&o===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let a=this.prerelease.length;for(;--a>=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(n===this.prerelease.join(".")&&o===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(n){let a=[n,i];o===!1&&(a=[n]),compareIdentifiers(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${r}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}},semver=SemVer$1,SemVer=semver,compare$1=(e,r,n)=>new SemVer(e,n).compare(new SemVer(r,n)),compare_1=compare$1,compare=compare_1,gte=(e,r,n)=>compare(e,r,n)>=0,gte_1=gte,fs=require$$0__default.default,path=path__default.default,{promisify}=require$$2__default.default,semverGte=gte_1,useNativeRecursiveOption=semverGte(process.version,"10.12.0"),checkPath=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(path.parse(e).root,""))){let n=new Error(`Path contains invalid characters: ${e}`);throw n.code="EINVAL",n}},processOptions=e=>({...{mode:511,fs},...e}),permissionError=e=>{let r=new Error(`operation not permitted, mkdir '${e}'`);return r.code="EPERM",r.errno=-4048,r.path=e,r.syscall="mkdir",r},makeDir=async(e,r)=>{checkPath(e),r=processOptions(r);let n=promisify(r.fs.mkdir),o=promisify(r.fs.stat);if(useNativeRecursiveOption&&r.fs.mkdir===fs.mkdir){let a=path.resolve(e);return await n(a,{mode:r.mode,recursive:!0}),a}let i=async a=>{try{return await n(a,r.mode),a}catch(c){if(c.code==="EPERM")throw c;if(c.code==="ENOENT"){if(path.dirname(a)===a)throw permissionError(a);if(c.message.includes("null bytes"))throw c;return await i(path.dirname(a)),i(a)}try{if(!(await o(a)).isDirectory())throw new Error("The path is not a directory")}catch{throw c}return a}};return i(path.resolve(e))};makeDir$2.exports=makeDir;makeDir$2.exports.sync=(e,r)=>{if(checkPath(e),r=processOptions(r),useNativeRecursiveOption&&r.fs.mkdirSync===fs.mkdirSync){let o=path.resolve(e);return fs.mkdirSync(o,{mode:r.mode,recursive:!0}),o}let n=o=>{try{r.fs.mkdirSync(o,r.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(path.dirname(o)===o)throw permissionError(o);if(i.message.includes("null bytes"))throw i;return n(path.dirname(o)),n(o)}try{if(!r.fs.statSync(o).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}return o};return n(path.resolve(e))};var makeDir$1=makeDir$2.exports,PRISMA_SIGNATURE="signature";async function getSignature(e){let r=paths("checkpoint");e=e||path__default.default.join(r.cache,PRISMA_SIGNATURE);let n=await readSignature(e);return n||await createSignatureFile(e)}function isSignatureValid(e){return typeof e=="string"&&e.length===36}async function readSignature(e){try{let r=await fs__default.default.readFile(e,"utf8"),{signature:n}=JSON.parse(r);return isSignatureValid(n)?n:""}catch{return""}}async function createSignatureFile(e,r){let n={signature:r||v4()};return await makeDir$1(path__default.default.dirname(e)),await fs__default.default.writeFile(e,JSON.stringify(n,null," ")),n.signature}async function getInfo(){let e=paths("checkpoint").cache;require$$0.existsSync(e)||await fs__default.default.mkdir(e,{recursive:!0});let r=await fs__default.default.readdir(e),n=[];for(let o of r)if(o.includes("-"))try{let i=JSON.parse(await fs__default.default.readFile(path__default.default.join(e,o),{encoding:"utf-8"}));i.output&&!i.output.cli_path_hash&&(i.output.cli_path_hash=o.split("-")[1]),n.push(i)}catch(i){console.error(i)}return{signature:await getSignature(),cachePath:e,cacheItems:n}}var defaultSchema={last_reminder:0,cached_at:0,version:"",cli_path:"",output:{client_event_id:"",previous_client_event_id:"",product:"",cli_path_hash:"",local_timestamp:"",previous_version:"",current_version:"",current_release_date:0,current_download_url:"",current_changelog_url:"",package:"",release_tag:"",install_command:"",project_website:"",outdated:!1,alerts:[]}},Config=class e{static async new(r,n=defaultSchema){return await makeDir$1(path__default.default.dirname(r.cache_file)),new e(r,n)}constructor(r,n){this.state=r,this.defaultSchema=n}async checkCache(r){let n=r.now(),o=await this.all();return o?r.version!==o.version?{cache:o,stale:!0}:n-o.cached_at>r.cache_duration?{cache:o,stale:!0}:{cache:o,stale:!1}:{cache:void 0,stale:!0}}async set(r){let n=await this.all()||{},o=Object.assign(n,r);for(let i in this.defaultSchema)typeof o[i]>"u"&&(o[i]=this.defaultSchema[i]);await fs__default.default.writeFile(this.state.cache_file,JSON.stringify(o,null," "))}async all(){try{let r=await fs__default.default.readFile(this.state.cache_file,"utf8");return JSON.parse(r)}catch{return}}async get(r){let n=await this.all();if(!(typeof n>"u"))return n[r]}async reset(){await fs__default.default.writeFile(this.state.cache_file,JSON.stringify(this.defaultSchema,null," "))}async delete(){try{await fs__default.default.unlink(this.state.cache_file);return}catch{return}}},s=1e3,m=s*60,h=m*60,d=h*24,w=d*7,y=d*365.25,ms=function(e,r){r=r||{};var n=typeof e;if(n==="string"&&e.length>0)return parse(e);if(n==="number"&&isFinite(e))return r.long?fmtLong(e):fmtShort(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){if(e=String(e),!(e.length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(r){var n=parseFloat(r[1]),o=(r[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return n*y;case"weeks":case"week":case"w":return n*w;case"days":case"day":case"d":return n*d;case"hours":case"hour":case"hrs":case"hr":case"h":return n*h;case"minutes":case"minute":case"mins":case"min":case"m":return n*m;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function fmtShort(e){var r=Math.abs(e);return r>=d?Math.round(e/d)+"d":r>=h?Math.round(e/h)+"h":r>=m?Math.round(e/m)+"m":r>=s?Math.round(e/s)+"s":e+"ms"}function fmtLong(e){var r=Math.abs(e);return r>=d?plural(e,r,d,"day"):r>=h?plural(e,r,h,"hour"):r>=m?plural(e,r,m,"minute"):r>=s?plural(e,r,s,"second"):e+" ms"}function plural(e,r,n,o){var i=r>=n*1.5;return Math.round(e/n)+" "+o+(i?"s":"")}var TELEMETRY_ENDPOINT_URL_PRODUCTION="https://checkpoint.prisma.io",childPath=path__default.default.join(eval("__dirname"),"child");async function check(e){let r=getCacheFile(e.product,e.cli_path_hash||"default"),n=gAe(),o=e.endpoint||process.env.PRISMA_TELEMETRY_ENDPOINT||TELEMETRY_ENDPOINT_URL_PRODUCTION,i={product:e.product,version:e.version,cli_install_type:e.cli_install_type||"",information:e.information||"",local_timestamp:e.local_timestamp||rfc3339(new Date),project_hash:e.project_hash,cli_path:e.cli_path||"",cli_path_hash:e.cli_path_hash||"",endpoint:o,disable:typeof e.disable>"u"?!1:e.disable,arch:e.arch||os__default.default.arch(),os:e.os||os__default.default.platform(),node_version:e.node_version||process.version,ci:typeof e.ci<"u"?e.ci:n.isCI,ci_name:typeof e.ci_name<"u"?e.ci_name||"":n.name||"",command:e.command||"",schema_providers:e.schema_providers||[],schema_preview_features:e.schema_preview_features||[],schema_generators_providers:e.schema_generators_providers||[],cache_file:e.cache_file||r,cache_duration:typeof e.cache_duration>"u"?ms("12h"):e.cache_duration,remind_duration:typeof e.remind_duration>"u"?ms("48h"):e.remind_duration,force:typeof e.force>"u"?!1:e.force,timeout:getTimeout(e.timeout),unref:typeof e.unref>"u"?!0:e.unref,child_path:e.child_path||childPath,now:()=>Date.now(),client_event_id:e.client_event_id||"",previous_client_event_id:e.previous_client_event_id||"",check_if_update_available:!1};if((process.env.CHECKPOINT_DISABLE||i.disable)&&!i.force)return{status:"disabled"};let a=await Config.new(i),c=await a.checkCache(i);i.check_if_update_available=c.stale===!0||!c.cache;let u=spawn(i);if(i.unref&&(u.unref(),u.disconnect()),c.stale===!0||!c.cache)return{status:"waiting",data:u};for(let p of Object.keys(i))i[p]&&await a.set({[p]:i[p]});return i.now()-c.cache.last_reminder<i.remind_duration?{status:"reminded",data:c.cache.output}:(await a.set({last_reminder:i.now()}),{status:"ok",data:c.cache.output})}function getCacheFile(e,r){let n=paths("checkpoint");return path__default.default.join(n.cache,`${e}-${r}`)}function getTimeout(e){if(typeof e<"u")return e;let r=process.env.CHECKPOINT_TIMEOUT;if(typeof r>"u")return 5e3;let n=parseInt(r,10);return isNaN(n)?5e3:n}function getForkOpts(e){return e.unref===!0?{detached:!0,stdio:process.env.CHECKPOINT_DEBUG_STDOUT?"inherit":"ignore",env:process.env}:{detached:!1,stdio:"pipe",env:process.env}}function spawn(e){return child_process.fork(childPath,[JSON.stringify(e)],getForkOpts(e))}function rfc3339(e){function r(o){return o<10?"0"+o:o}function n(o){let i;return o===0?"Z":(i=o>0?"-":"+",o=Math.abs(o),i+r(Math.floor(o/60))+":"+r(o%60))}return e.getFullYear()+"-"+r(e.getMonth()+1)+"-"+r(e.getDate())+"T"+r(e.getHours())+":"+r(e.getMinutes())+":"+r(e.getSeconds())+n(e.getTimezoneOffset())}exports.check=check;exports.getInfo=getInfo;exports.getSignature=getSignature});var RAe=A((Q_r,vd)=>{"use strict";var Qo=require("fs"),_V=require("os"),Tc=require("path"),yAe=require("crypto"),Hp={fs:Qo.constants,os:_V.constants},xAe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",EAe=/XXXXXX/,X_t=3,vAe=(Hp.O_CREAT||Hp.fs.O_CREAT)|(Hp.O_EXCL||Hp.fs.O_EXCL)|(Hp.O_RDWR||Hp.fs.O_RDWR),e1t=_V.platform()==="win32",t1t=Hp.EBADF||Hp.os.errno.EBADF,r1t=Hp.ENOENT||Hp.os.errno.ENOENT,SAe=448,wAe=384,n1t="exit",Jv=[],_Ae=Qo.rmdirSync.bind(Qo),TAe=!1;function o1t(e,r){return Qo.rm(e,{recursive:!0},r)}function DAe(e){return Qo.rmSync(e,{recursive:!0})}function TV(e,r){let n=Yv(e,r),o=n[0],i=n[1];try{PAe(o)}catch(c){return i(c)}let a=o.tries;(function c(){try{let u=AAe(o);Qo.stat(u,function(l){if(!l)return a-- >0?c():i(new Error("Could not get a unique tmp filename, max tries reached "+u));i(null,u)})}catch(u){i(u)}})()}function DV(e){let r=Yv(e),n=r[0];PAe(n);let o=n.tries;do{let i=AAe(n);try{Qo.statSync(i)}catch{return i}}while(o-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function i1t(e,r){let n=Yv(e,r),o=n[0],i=n[1];TV(o,function(c,u){if(c)return i(c);Qo.open(u,vAe,o.mode||wAe,function(p,f){if(p)return i(p);if(o.discardDescriptor)return Qo.close(f,function(x){return i(x,u,void 0,vV(u,-1,o,!1))});{let g=o.discardDescriptor||o.detachDescriptor;i(null,u,f,vV(u,g?-1:f,o,!1))}})})}function s1t(e){let r=Yv(e),n=r[0],o=n.discardDescriptor||n.detachDescriptor,i=DV(n);var a=Qo.openSync(i,vAe,n.mode||wAe);return n.discardDescriptor&&(Qo.closeSync(a),a=void 0),{name:i,fd:a,removeCallback:vV(i,o?-1:a,n,!0)}}function a1t(e,r){let n=Yv(e,r),o=n[0],i=n[1];TV(o,function(c,u){if(c)return i(c);Qo.mkdir(u,o.mode||SAe,function(p){if(p)return i(p);i(null,u,CAe(u,o,!1))})})}function c1t(e){let r=Yv(e),n=r[0],o=DV(n);return Qo.mkdirSync(o,n.mode||SAe),{name:o,removeCallback:CAe(o,n,!0)}}function u1t(e,r){let n=function(o){if(o&&!wV(o))return r(o);r()};0<=e[0]?Qo.close(e[0],function(){Qo.unlink(e[1],n)}):Qo.unlink(e[1],n)}function l1t(e){let r=null;try{0<=e[0]&&Qo.closeSync(e[0])}catch(n){if(!d1t(n)&&!wV(n))throw n}finally{try{Qo.unlinkSync(e[1])}catch(n){wV(n)||(r=n)}}if(r!==null)throw r}function vV(e,r,n,o){let i=Hk(l1t,[r,e],o),a=Hk(u1t,[r,e],o,i);return n.keep||Jv.unshift(i),o?i:a}function CAe(e,r,n){let o=r.unsafeCleanup?o1t:Qo.rmdir.bind(Qo),i=r.unsafeCleanup?DAe:_Ae,a=Hk(i,e,n),c=Hk(o,e,n,a);return r.keep||Jv.unshift(a),n?a:c}function Hk(e,r,n,o){let i=!1;return function a(c){if(!i){let u=o||a,l=Jv.indexOf(u);return l>=0&&Jv.splice(l,1),i=!0,n||e===_Ae||e===DAe?e(r):e(r,c||function(){})}}}function p1t(){if(TAe)for(;Jv.length;)try{Jv[0]()}catch{}}function bAe(e){let r=[],n=null;try{n=yAe.randomBytes(e)}catch{n=yAe.pseudoRandomBytes(e)}for(var o=0;o<e;o++)r.push(xAe[n[o]%xAe.length]);return r.join("")}function f1t(e){return e===null||Ra(e)||!e.trim()}function Ra(e){return typeof e>"u"}function Yv(e,r){if(typeof e=="function")return[{},e];if(Ra(e))return[{},r];let n={};for(let o of Object.getOwnPropertyNames(e))n[o]=e[o];return[n,r]}function AAe(e){let r=e.tmpdir;if(!Ra(e.name))return Tc.join(r,e.dir,e.name);if(!Ra(e.template))return Tc.join(r,e.dir,e.template).replace(EAe,bAe(6));let n=[e.prefix?e.prefix:"tmp","-",process.pid,"-",bAe(12),e.postfix?"-"+e.postfix:""].join("");return Tc.join(r,e.dir,n)}function PAe(e){e.tmpdir=IAe(e);let r=e.tmpdir;if(Ra(e.name)||EV(e.name,"name",r),Ra(e.dir)||EV(e.dir,"dir",r),!Ra(e.template)&&(EV(e.template,"template",r),!e.template.match(EAe)))throw new Error(`Invalid template, found "${e.template}".`);if(!Ra(e.tries)&&isNaN(e.tries)||e.tries<0)throw new Error(`Invalid tries, found "${e.tries}".`);e.tries=Ra(e.name)?e.tries||X_t:1,e.keep=!!e.keep,e.detachDescriptor=!!e.detachDescriptor,e.discardDescriptor=!!e.discardDescriptor,e.unsafeCleanup=!!e.unsafeCleanup,e.dir=Ra(e.dir)?"":Tc.relative(r,SV(e.dir,r)),e.template=Ra(e.template)?void 0:Tc.relative(r,SV(e.template,r)),e.template=f1t(e.template)?void 0:Tc.relative(e.dir,e.template),e.name=Ra(e.name)?void 0:e.name,e.prefix=Ra(e.prefix)?"":e.prefix,e.postfix=Ra(e.postfix)?"":e.postfix}function SV(e,r){return e.startsWith(r)?Tc.resolve(e):Tc.resolve(Tc.join(r,e))}function EV(e,r,n){if(r==="name"){if(Tc.isAbsolute(e))throw new Error(`${r} option must not contain an absolute path, found "${e}".`);let o=Tc.basename(e);if(o===".."||o==="."||o!==e)throw new Error(`${r} option must not contain a path, found "${e}".`)}else{if(Tc.isAbsolute(e)&&!e.startsWith(n))throw new Error(`${r} option must be relative to "${n}", found "${e}".`);let o=SV(e,n);if(!o.startsWith(n))throw new Error(`${r} option must be relative to "${n}", found "${o}".`)}}function d1t(e){return OAe(e,-t1t,"EBADF")}function wV(e){return OAe(e,-r1t,"ENOENT")}function OAe(e,r,n){return e1t?e.code===n:e.code===n&&e.errno===r}function m1t(){TAe=!0}function IAe(e){return Tc.resolve(e&&e.tmpdir||_V.tmpdir())}process.addListener(n1t,p1t);Object.defineProperty(vd.exports,"tmpdir",{enumerable:!0,configurable:!1,get:function(){return IAe()}});vd.exports.dir=a1t;vd.exports.dirSync=c1t;vd.exports.file=i1t;vd.exports.fileSync=s1t;vd.exports.tmpName=TV;vd.exports.tmpNameSync=DV;vd.exports.setGracefulCleanup=m1t});var xo=A((c1r,jAe)=>{"use strict";var{FORCE_COLOR:g1t,NODE_DISABLE_COLORS:y1t,TERM:x1t}=process.env,Xr={enabled:!y1t&&x1t!=="dumb"&&g1t!=="0",reset:An(0,0),bold:An(1,22),dim:An(2,22),italic:An(3,23),underline:An(4,24),inverse:An(7,27),hidden:An(8,28),strikethrough:An(9,29),black:An(30,39),red:An(31,39),green:An(32,39),yellow:An(33,39),blue:An(34,39),magenta:An(35,39),cyan:An(36,39),white:An(37,39),gray:An(90,39),grey:An(90,39),bgBlack:An(40,49),bgRed:An(41,49),bgGreen:An(42,49),bgYellow:An(43,49),bgBlue:An(44,49),bgMagenta:An(45,49),bgCyan:An(46,49),bgWhite:An(47,49)};function UAe(e,r){let n=0,o,i="",a="";for(;n<e.length;n++)o=e[n],i+=o.open,a+=o.close,r.includes(o.close)&&(r=r.replace(o.rgx,o.close+o.open));return i+r+a}function b1t(e,r){let n={has:e,keys:r};return n.reset=Xr.reset.bind(n),n.bold=Xr.bold.bind(n),n.dim=Xr.dim.bind(n),n.italic=Xr.italic.bind(n),n.underline=Xr.underline.bind(n),n.inverse=Xr.inverse.bind(n),n.hidden=Xr.hidden.bind(n),n.strikethrough=Xr.strikethrough.bind(n),n.black=Xr.black.bind(n),n.red=Xr.red.bind(n),n.green=Xr.green.bind(n),n.yellow=Xr.yellow.bind(n),n.blue=Xr.blue.bind(n),n.magenta=Xr.magenta.bind(n),n.cyan=Xr.cyan.bind(n),n.white=Xr.white.bind(n),n.gray=Xr.gray.bind(n),n.grey=Xr.grey.bind(n),n.bgBlack=Xr.bgBlack.bind(n),n.bgRed=Xr.bgRed.bind(n),n.bgGreen=Xr.bgGreen.bind(n),n.bgYellow=Xr.bgYellow.bind(n),n.bgBlue=Xr.bgBlue.bind(n),n.bgMagenta=Xr.bgMagenta.bind(n),n.bgCyan=Xr.bgCyan.bind(n),n.bgWhite=Xr.bgWhite.bind(n),n}function An(e,r){let n={open:`\x1B[${e}m`,close:`\x1B[${r}m`,rgx:new RegExp(`\\x1b\\[${r}m`,"g")};return function(o){return this!==void 0&&this.has!==void 0?(this.has.includes(e)||(this.has.push(e),this.keys.push(n)),o===void 0?this:Xr.enabled?UAe(this.keys,o+""):o+""):o===void 0?b1t([e],[n]):Xr.enabled?UAe([n],o+""):o+""}}jAe.exports=Xr});var GAe=A((u1r,qAe)=>{"use strict";qAe.exports=(e,r)=>{if(!(e.meta&&e.name!=="escape")){if(e.ctrl){if(e.name==="a")return"first";if(e.name==="c"||e.name==="d")return"abort";if(e.name==="e")return"last";if(e.name==="g")return"reset"}if(r){if(e.name==="j")return"down";if(e.name==="k")return"up"}return e.name==="return"||e.name==="enter"?"submit":e.name==="backspace"?"delete":e.name==="delete"?"deleteForward":e.name==="abort"?"abort":e.name==="escape"?"exit":e.name==="tab"?"next":e.name==="pagedown"?"nextPage":e.name==="pageup"?"prevPage":e.name==="home"?"home":e.name==="end"?"end":e.name==="up"?"up":e.name==="down"?"down":e.name==="right"?"right":e.name==="left"?"left":!1}}});var Vk=A((l1r,HAe)=>{"use strict";HAe.exports=e=>{let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),n=new RegExp(r,"g");return typeof e=="string"?e.replace(n,""):e}});var Eo=A((p1r,WAe)=>{"use strict";var CV="\x1B",bo=`${CV}[`,E1t="\x07",AV={to(e,r){return r?`${bo}${r+1};${e+1}H`:`${bo}${e+1}G`},move(e,r){let n="";return e<0?n+=`${bo}${-e}D`:e>0&&(n+=`${bo}${e}C`),r<0?n+=`${bo}${-r}A`:r>0&&(n+=`${bo}${r}B`),n},up:(e=1)=>`${bo}${e}A`,down:(e=1)=>`${bo}${e}B`,forward:(e=1)=>`${bo}${e}C`,backward:(e=1)=>`${bo}${e}D`,nextLine:(e=1)=>`${bo}E`.repeat(e),prevLine:(e=1)=>`${bo}F`.repeat(e),left:`${bo}G`,hide:`${bo}?25l`,show:`${bo}?25h`,save:`${CV}7`,restore:`${CV}8`},v1t={up:(e=1)=>`${bo}S`.repeat(e),down:(e=1)=>`${bo}T`.repeat(e)},S1t={screen:`${bo}2J`,up:(e=1)=>`${bo}1J`.repeat(e),down:(e=1)=>`${bo}J`.repeat(e),line:`${bo}2K`,lineEnd:`${bo}K`,lineStart:`${bo}1K`,lines(e){let r="";for(let n=0;n<e;n++)r+=this.line+(n<e-1?AV.up():"");return e&&(r+=AV.left),r}};WAe.exports={cursor:AV,scroll:v1t,erase:S1t,beep:E1t}});var YAe=A((f1r,JAe)=>{"use strict";function w1t(e,r){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_1t(e))||r&&e&&typeof e.length=="number"){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(p){throw p},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
46
|
+
`)}});var W1e=A((pxr,H1e)=>{"use strict";H1e.exports=G1e()});var K1e=A((dxr,Pvt)=>{Pvt.exports={name:"@prisma/fetch-engine",version:"7.9.1",description:"This package is intended for Prisma's internal use",main:"dist/index.js",types:"dist/index.d.ts",license:"Apache-2.0",author:"Tim Suchanek <suchanek@prisma.io>",homepage:"https://www.prisma.io",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/fetch-engine"},bugs:"https://github.com/prisma/prisma/issues",enginesOverride:{},devDependencies:{"@types/node":"~20.19.24","@types/progress":"2.0.7",del:"6.1.1",execa:"8.0.1","find-cache-dir":"5.0.0","fs-extra":"11.3.0",hasha:"5.2.2","http-proxy-agent":"7.0.2","https-proxy-agent":"7.0.6",kleur:"4.1.5","node-fetch":"3.3.2","p-filter":"4.1.0","p-map":"4.0.0","p-retry":"4.6.2",progress:"2.0.3","temp-dir":"2.0.0",tempy:"1.0.1","timeout-signal":"2.0.0",typescript:"5.4.5"},dependencies:{"@prisma/debug":"workspace:*","@prisma/engines-version":"7.9.0-1.e922089b7d7502aff4249d5da3420f6fa55fc6ad","@prisma/get-platform":"workspace:*"},scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",test:"vitest run",prepublishOnly:"pnpm run build"},files:["README.md","dist"],sideEffects:!1}});var STe=A((zxr,vTe)=>{"use strict";var Gvt=Object.create,ak=Object.defineProperty,Hvt=Object.getOwnPropertyDescriptor,Wvt=Object.getOwnPropertyNames,Vvt=Object.getPrototypeOf,zvt=Object.prototype.hasOwnProperty,Kvt=(e,r)=>{for(var n in r)ak(e,n,{get:r[n],enumerable:!0})},yTe=(e,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Wvt(r))!zvt.call(e,i)&&i!==n&&ak(e,i,{get:()=>r[i],enumerable:!(o=Hvt(r,i))||o.enumerable});return e},ck=(e,r,n)=>(n=e!=null?Gvt(Vvt(e)):{},yTe(r||!e||!e.__esModule?ak(n,"default",{value:e,enumerable:!0}):n,e)),Jvt=e=>yTe(ak({},"__esModule",{value:!0}),e),xTe={};Kvt(xTe,{CompositeFilesResolver:()=>Yvt,InMemoryFilesResolver:()=>Qvt,ensureType:()=>nSt,loadRelatedSchemaFiles:()=>Xvt,loadSchemaFiles:()=>ETe,realFsResolver:()=>fW});vTe.exports=Jvt(xTe);var lW=ck(require("node:path")),gTe=ck(require("node:path"));function bTe(e){return e.caseSensitive?r=>r:r=>r.toLocaleLowerCase()}var Yvt=class{constructor(e,r,n){this.primary=e,this.secondary=r,this._fileNameToKey=bTe(n)}_fileNameToKey;async listDirContents(e){let r=await this.primary.listDirContents(e),n=await this.secondary.listDirContents(e);return Zvt([...r,...n],this._fileNameToKey)}async getEntryType(e){return await this.primary.getEntryType(e)??await this.secondary.getEntryType(e)}async getFileContents(e){return await this.primary.getFileContents(e)??await this.secondary.getFileContents(e)}};function Zvt(e,r){let n=new Map;for(let o of e){let i=r(o);n.has(i)||n.set(i,o)}return Array.from(n.values())}var Qvt=class{_tree={};_fileNameToKey;constructor(e){this._fileNameToKey=bTe(e)}addFile(e,r){let n=e.split(/[\\/]/),o=n.pop();if(!o)throw new Error("Path is empty");let i=this._tree;for(let a of n){let c=this._fileNameToKey(a),u=i[c];if(u||(u={canonicalName:a,content:{}},i[c]=u),typeof u.content=="string")throw new Error(`${a} is a file`);i=u.content}if(typeof i[o]?.content=="object")throw new Error(`${e} is a directory`);i[this._fileNameToKey(o)]={canonicalName:o,content:r}}getInMemoryContent(e){let r=e.split(/[\\/]/).map(o=>this._fileNameToKey(o)),n=this._tree;for(let o of r){if(typeof n!="object")return;n=n[o]?.content}return n}listDirContents(e){return Promise.resolve().then(()=>{let r=this.getInMemoryContent(e);return typeof r!="object"?[]:Object.values(r).map(n=>n.canonicalName)})}getEntryType(e){return Promise.resolve().then(()=>{let r=this.getInMemoryContent(e);if(typeof r=="string")return{kind:"file"};if(typeof r=="object")return{kind:"directory"}})}getFileContents(e){return Promise.resolve().then(()=>{let r=this.getInMemoryContent(e);if(!(typeof r>"u")){if(typeof r=="object")throw new Error(`${e} is directory`);return r}})}},lD=ck(qh()),fW={listDirContents(e){return lD.default.readdir(e)},async getEntryType(e){let r=await lD.default.lstat(e);return r.isFile()?{kind:"file"}:r.isDirectory()?{kind:"directory",realPath:await lD.default.realpath(e)}:r.isSymbolicLink()?{kind:"symlink",realPath:await lD.default.realpath(e)}:{kind:"other"}},getFileContents(e){return lD.default.readFile(e,"utf8")}};async function ETe(e,r=fW){let n=await r.getEntryType(e);return pW(e,n,r)}async function pW(e,r,n,o=new Set){if(!r)return[];if(r.kind==="symlink"){let i=r.realPath,a=await n.getEntryType(i);return pW(i,a,n,o)}if(r.kind==="file"){if(gTe.default.extname(e)!==".prisma")return[];let i=await n.getFileContents(e);return typeof i>"u"?[]:[[e,i]]}if(r.kind==="directory"){let i=r.realPath??e;if(o.has(i))return[];o.add(i);let a=await n.listDirContents(e);return(await Promise.all(a.map(async u=>{let l=gTe.default.join(e,u),p=await n.getEntryType(l);return pW(l,p,n,o)}))).flat()}return[]}async function Xvt(e,r=fW){let n=await tSt(e,r);return n?await ETe(n,r):eSt(e,r)}async function eSt(e,r){let n=await r.getFileContents(e);return n===void 0?[]:[[e,n]]}async function tSt(e,r){let n=lW.default.dirname(e);for(;n!==e;){let o=lW.default.dirname(n);if((await r.listDirContents(o)).filter(c=>lW.default.extname(c)===".prisma").length===0)return n;n=o}}var rSt=ck(require("node:fs/promises"));async function nSt(e,r){try{let n=await rSt.default.stat(e);return r==="file"&&n.isFile()||r==="directory"&&n.isDirectory()?void 0:{kind:"WrongType",path:e,expectedTypes:[r]}}catch(n){if(n.code==="ENOENT")return{kind:"NotFound",path:e,expectedType:r};throw n}}});var vW=A((yo,PTe)=>{"use strict";var CTe={};CTe.__wbindgen_placeholder__=PTe.exports;var uk=null;function mD(){return(uk===null||uk.byteLength===0)&&(uk=new Uint8Array(ke.memory.buffer)),uk}var ATe=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});ATe.decode();function fSt(e,r){return ATe.decode(mD().subarray(e,e+r))}function As(e,r){return e=e>>>0,fSt(e,r)}function Nv(e){let r=ke.__wbindgen_externrefs.get(e);return ke.__externref_table_dealloc(e),r}function dSt(e,r){return e=e>>>0,mD().subarray(e/1,e/1+r)}var $o=0,hD=new TextEncoder;"encodeInto"in hD||(hD.encodeInto=function(e,r){let n=hD.encode(e);return r.set(n),{read:e.length,written:n.length}});function gi(e,r,n){if(n===void 0){let u=hD.encode(e),l=r(u.length,1)>>>0;return mD().subarray(l,l+u.length).set(u),$o=u.length,l}let o=e.length,i=r(o,1)>>>0,a=mD(),c=0;for(;c<o;c++){let u=e.charCodeAt(c);if(u>127)break;a[i+c]=u}if(c!==o){c!==0&&(e=e.slice(c)),i=n(i,o,o=c+e.length*3,1)>>>0;let u=mD().subarray(i+c,i+o),l=hD.encodeInto(e,u);c+=l.written,i=n(i,o,c,1)>>>0}return $o=c,i}yo.merge_schemas=function(e){let r,n;try{let a=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),c=$o,u=ke.merge_schemas(a,c);var o=u[0],i=u[1];if(u[3])throw o=0,i=0,Nv(u[2]);return r=o,n=i,As(o,i)}finally{ke.__wbindgen_free(r,n,1)}};yo.native_types=function(e){let r,n;try{let o=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=$o,a=ke.native_types(o,i);return r=a[0],n=a[1],As(a[0],a[1])}finally{ke.__wbindgen_free(r,n,1)}};yo.lint=function(e){let r,n;try{let o=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=$o,a=ke.lint(o,i);return r=a[0],n=a[1],As(a[0],a[1])}finally{ke.__wbindgen_free(r,n,1)}};yo.get_dmmf=function(e){let r,n;try{let a=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),c=$o,u=ke.get_dmmf(a,c);var o=u[0],i=u[1];if(u[3])throw o=0,i=0,Nv(u[2]);return r=o,n=i,As(o,i)}finally{ke.__wbindgen_free(r,n,1)}};yo.references=function(e,r){let n,o;try{let i=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=$o,c=gi(r,ke.__wbindgen_malloc,ke.__wbindgen_realloc),u=$o,l=ke.references(i,a,c,u);return n=l[0],o=l[1],As(l[0],l[1])}finally{ke.__wbindgen_free(n,o,1)}};yo.format=function(e,r){let n,o;try{let i=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=$o,c=gi(r,ke.__wbindgen_malloc,ke.__wbindgen_realloc),u=$o,l=ke.format(i,a,c,u);return n=l[0],o=l[1],As(l[0],l[1])}finally{ke.__wbindgen_free(n,o,1)}};yo.validate=function(e){let r=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),n=$o,o=ke.validate(r,n);if(o[1])throw Nv(o[0])};yo.debug_panic=function(){ke.debug_panic()};yo.text_document_completion=function(e,r){let n,o;try{let i=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=$o,c=gi(r,ke.__wbindgen_malloc,ke.__wbindgen_realloc),u=$o,l=ke.text_document_completion(i,a,c,u);return n=l[0],o=l[1],As(l[0],l[1])}finally{ke.__wbindgen_free(n,o,1)}};yo.referential_actions=function(e){let r,n;try{let o=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=$o,a=ke.referential_actions(o,i);return r=a[0],n=a[1],As(a[0],a[1])}finally{ke.__wbindgen_free(r,n,1)}};yo.get_dmmf_buffered=function(e){let r=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),n=$o,o=ke.get_dmmf_buffered(r,n);if(o[2])throw Nv(o[1]);return $v.__wrap(o[0])};yo.get_config=function(e){let r,n;try{let o=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),i=$o,a=ke.get_config(o,i);return r=a[0],n=a[1],As(a[0],a[1])}finally{ke.__wbindgen_free(r,n,1)}};yo.hover=function(e,r){let n,o;try{let i=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=$o,c=gi(r,ke.__wbindgen_malloc,ke.__wbindgen_realloc),u=$o,l=ke.hover(i,a,c,u);return n=l[0],o=l[1],As(l[0],l[1])}finally{ke.__wbindgen_free(n,o,1)}};yo.get_datamodel=function(e){let r,n;try{let a=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),c=$o,u=ke.get_datamodel(a,c);var o=u[0],i=u[1];if(u[3])throw o=0,i=0,Nv(u[2]);return r=o,n=i,As(o,i)}finally{ke.__wbindgen_free(r,n,1)}};yo.code_actions=function(e,r){let n,o;try{let i=gi(e,ke.__wbindgen_malloc,ke.__wbindgen_realloc),a=$o,c=gi(r,ke.__wbindgen_malloc,ke.__wbindgen_realloc),u=$o,l=ke.code_actions(i,a,c,u);return n=l[0],o=l[1],As(l[0],l[1])}finally{ke.__wbindgen_free(n,o,1)}};yo.preview_features=function(){let e,r;try{let n=ke.preview_features();return e=n[0],r=n[1],As(n[0],n[1])}finally{ke.__wbindgen_free(e,r,1)}};var DTe=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(e=>ke.__wbg_dmmfbuffer_free(e>>>0,1)),$v=class e{static __wrap(r){r=r>>>0;let n=Object.create(e.prototype);return n.__wbg_ptr=r,DTe.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){let r=this.__wbg_ptr;return this.__wbg_ptr=0,DTe.unregister(this),r}free(){let r=this.__destroy_into_raw();ke.__wbg_dmmfbuffer_free(r,0)}read_chunk(r,n){let o=ke.dmmfbuffer_read_chunk(this.__wbg_ptr,r,n);if(o[3])throw Nv(o[2]);var i=dSt(o[0],o[1]).slice();return ke.__wbindgen_free(o[0],o[1]*1,1),i}len(){return ke.dmmfbuffer_len(this.__wbg_ptr)>>>0}is_empty(){return ke.dmmfbuffer_is_empty(this.__wbg_ptr)!==0}};Symbol.dispose&&($v.prototype[Symbol.dispose]=$v.prototype.free);yo.DmmfBuffer=$v;yo.__wbg_Error_e83987f665cf5504=function(e,r){return Error(As(e,r))};yo.__wbg___wbindgen_throw_b855445ff6a94295=function(e,r){throw new Error(As(e,r))};yo.__wbg_set_message_f22ac4a6869ee695=function(e,r){global.PRISMA_WASM_PANIC_REGISTRY.set_message(As(e,r))};yo.__wbindgen_init_externref_table=function(){let e=ke.__wbindgen_externrefs,r=e.grow(4);e.set(0,void 0),e.set(r+0,void 0),e.set(r+1,null),e.set(r+2,!0),e.set(r+3,!1)};var mSt=`${__dirname}/prisma_schema_build_bg.wasm`,hSt=require("fs").readFileSync(mSt),gSt=new WebAssembly.Module(hSt),ke=yo.__wasm=new WebAssembly.Instance(gSt,CTe).exports;ke.__wbindgen_start()});var SW=A((abr,ySt)=>{ySt.exports={name:"@prisma/internals",version:"7.9.1",description:"This package is intended for Prisma's internal use",main:"dist/index.js",types:"dist/index.d.ts",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/internals"},homepage:"https://www.prisma.io",author:"Tim Suchanek <suchanek@prisma.io>",bugs:"https://github.com/prisma/prisma/issues",license:"Apache-2.0",scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",test:"dotenv -e ../../.db.env -- vitest run --silent",prepublishOnly:"pnpm run build"},files:["README.md","dist","!dist/get-generators/engines/*","scripts"],devDependencies:{"@babel/helper-validator-identifier":"7.25.9","@opentelemetry/api":"1.9.0","@types/babel__helper-validator-identifier":"7.15.2","@types/node":"~20.19.24","@types/resolve":"1.20.6","checkpoint-client":"1.1.33","cli-truncate":"4.0.0",empathic:"2.0.0","escape-string-regexp":"5.0.0",execa:"8.0.1","find-up":"7.0.0","fp-ts":"2.16.9","fs-extra":"11.3.0","global-directory":"4.0.0",globby:"11.1.0","identifier-regex":"1.0.0","indent-string":"4.0.0","is-windows":"1.0.2","is-wsl":"3.1.0",kleur:"4.1.5","mock-stdin":"1.0.0","new-github-issue-url":"0.2.1","node-fetch":"3.3.2","npm-packlist":"5.1.3",open:"7.4.2","p-map":"4.0.0",resolve:"1.22.10","string-width":"7.2.0","strip-indent":"4.0.0","temp-dir":"2.0.0",tempy:"1.0.1","terminal-link":"4.0.0",tmp:"0.2.3","ts-pattern":"5.6.2","ts-toolbelt":"9.6.0",typescript:"5.4.5",yarn:"1.22.22"},dependencies:{"@prisma/config":"workspace:*","@prisma/debug":"workspace:*","@prisma/dmmf":"workspace:*","@prisma/driver-adapter-utils":"workspace:*","@prisma/engines":"workspace:*","@prisma/fetch-engine":"workspace:*","@prisma/generator":"workspace:*","@prisma/generator-helper":"workspace:*","@prisma/get-dmmf":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/prisma-schema-wasm":"7.9.0-1.e922089b7d7502aff4249d5da3420f6fa55fc6ad","@prisma/schema-engine-wasm":"7.9.0-1.e922089b7d7502aff4249d5da3420f6fa55fc6ad","@prisma/schema-files-loader":"workspace:*","@streamparser/json":"0.0.22",arg:"5.0.2",prompts:"2.4.2"},peerDependencies:{typescript:">=5.4.0"},peerDependenciesMeta:{typescript:{optional:!0}},sideEffects:!1}});var vn=A(wt=>{"use strict";var MSt=wt&&wt.__spreadArray||function(e,r,n){if(n||arguments.length===2)for(var o=0,i=r.length,a;o<i;o++)(a||!(o in r))&&(a||(a=Array.prototype.slice.call(r,0,o)),a[o]=r[o]);return e.concat(a||Array.prototype.slice.call(r))};Object.defineProperty(wt,"__esModule",{value:!0});wt.dual=wt.getEndomorphismMonoid=wt.SK=wt.hole=wt.constVoid=wt.constUndefined=wt.constNull=wt.constFalse=wt.constTrue=wt.unsafeCoerce=wt.apply=wt.getRing=wt.getSemiring=wt.getMonoid=wt.getSemigroup=wt.getBooleanAlgebra=void 0;wt.identity=LW;wt.constant=ED;wt.flip=jSt;wt.flow=WTe;wt.tuple=qSt;wt.increment=GSt;wt.decrement=HSt;wt.absurd=VTe;wt.tupled=WSt;wt.untupled=VSt;wt.pipe=zSt;wt.not=JSt;var kSt=function(e){return function(){return{meet:function(r,n){return function(o){return e.meet(r(o),n(o))}},join:function(r,n){return function(o){return e.join(r(o),n(o))}},zero:function(){return e.zero},one:function(){return e.one},implies:function(r,n){return function(o){return e.implies(r(o),n(o))}},not:function(r){return function(n){return e.not(r(n))}}}}};wt.getBooleanAlgebra=kSt;var $St=function(e){return function(){return{concat:function(r,n){return function(o){return e.concat(r(o),n(o))}}}}};wt.getSemigroup=$St;var NSt=function(e){var r=(0,wt.getSemigroup)(e);return function(){return{concat:r().concat,empty:function(){return e.empty}}}};wt.getMonoid=NSt;var LSt=function(e){return{add:function(r,n){return function(o){return e.add(r(o),n(o))}},zero:function(){return e.zero},mul:function(r,n){return function(o){return e.mul(r(o),n(o))}},one:function(){return e.one}}};wt.getSemiring=LSt;var BSt=function(e){var r=(0,wt.getSemiring)(e);return{add:r.add,mul:r.mul,one:r.one,zero:r.zero,sub:function(n,o){return function(i){return e.sub(n(i),o(i))}}}};wt.getRing=BSt;var USt=function(e){return function(r){return r(e)}};wt.apply=USt;function LW(e){return e}wt.unsafeCoerce=LW;function ED(e){return function(){return e}}wt.constTrue=ED(!0);wt.constFalse=ED(!1);wt.constNull=ED(null);wt.constUndefined=ED(void 0);wt.constVoid=wt.constUndefined;function jSt(e){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length>1?e(r[1],r[0]):function(o){return e(o)(r[0])}}}function WTe(e,r,n,o,i,a,c,u,l){switch(arguments.length){case 1:return e;case 2:return function(){return r(e.apply(this,arguments))};case 3:return function(){return n(r(e.apply(this,arguments)))};case 4:return function(){return o(n(r(e.apply(this,arguments))))};case 5:return function(){return i(o(n(r(e.apply(this,arguments)))))};case 6:return function(){return a(i(o(n(r(e.apply(this,arguments))))))};case 7:return function(){return c(a(i(o(n(r(e.apply(this,arguments)))))))};case 8:return function(){return u(c(a(i(o(n(r(e.apply(this,arguments))))))))};case 9:return function(){return l(u(c(a(i(o(n(r(e.apply(this,arguments)))))))))}}}function qSt(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e}function GSt(e){return e+1}function HSt(e){return e-1}function VTe(e){throw new Error("Called `absurd` function which should be uncallable")}function WSt(e){return function(r){return e.apply(void 0,r)}}function VSt(e){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e(r)}}function zSt(e,r,n,o,i,a,c,u,l){switch(arguments.length){case 1:return e;case 2:return r(e);case 3:return n(r(e));case 4:return o(n(r(e)));case 5:return i(o(n(r(e))));case 6:return a(i(o(n(r(e)))));case 7:return c(a(i(o(n(r(e))))));case 8:return u(c(a(i(o(n(r(e)))))));case 9:return l(u(c(a(i(o(n(r(e))))))));default:{for(var p=arguments[0],f=1;f<arguments.length;f++)p=arguments[f](p);return p}}}wt.hole=VTe;var KSt=function(e,r){return r};wt.SK=KSt;function JSt(e){return function(r){return!e(r)}}var YSt=function(){return{concat:function(e,r){return WTe(e,r)},empty:LW}};wt.getEndomorphismMonoid=YSt;var ZSt=function(e,r){var n=typeof e=="number"?function(o){return o.length>=e}:e;return function(){var o=Array.from(arguments);return n(arguments)?r.apply(this,o):function(i){return r.apply(void 0,MSt([i],o,!1))}}};wt.dual=ZSt});var Ak=A((KW,JW)=>{"use strict";(function(e,r){typeof require=="function"&&typeof KW=="object"&&typeof JW=="object"?JW.exports=r():typeof define=="function"&&define.amd?define(function(){return r()}):e.pluralize=r()})(KW,function(){var e=[],r=[],n={},o={},i={};function a(b){return typeof b=="string"?new RegExp("^"+b+"$","i"):b}function c(b,E){return b===E?E:b===b.toLowerCase()?E.toLowerCase():b===b.toUpperCase()?E.toUpperCase():b[0]===b[0].toUpperCase()?E.charAt(0).toUpperCase()+E.substr(1).toLowerCase():E.toLowerCase()}function u(b,E){return b.replace(/\$(\d{1,2})/g,function(S,_){return E[_]||""})}function l(b,E){return b.replace(E[0],function(S,_){var D=u(E[1],arguments);return c(S===""?b[_-1]:S,D)})}function p(b,E,S){if(!b.length||n.hasOwnProperty(b))return E;for(var _=S.length;_--;){var D=S[_];if(D[0].test(E))return l(E,D)}return E}function f(b,E,S){return function(_){var D=_.toLowerCase();return E.hasOwnProperty(D)?c(_,D):b.hasOwnProperty(D)?c(_,b[D]):p(D,_,S)}}function g(b,E,S,_){return function(D){var O=D.toLowerCase();return E.hasOwnProperty(O)?!0:b.hasOwnProperty(O)?!1:p(O,O,S)===O}}function x(b,E,S){var _=E===1?x.singular(b):x.plural(b);return(S?E+" ":"")+_}return x.plural=f(i,o,e),x.isPlural=g(i,o,e),x.singular=f(o,i,r),x.isSingular=g(o,i,r),x.addPluralRule=function(b,E){e.push([a(b),E])},x.addSingularRule=function(b,E){r.push([a(b),E])},x.addUncountableRule=function(b){if(typeof b=="string"){n[b.toLowerCase()]=!0;return}x.addPluralRule(b,"$0"),x.addSingularRule(b,"$0")},x.addIrregularRule=function(b,E){E=E.toLowerCase(),b=b.toLowerCase(),i[b]=E,o[E]=b},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(b){return x.addIrregularRule(b[0],b[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(b){return x.addPluralRule(b[0],b[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(b){return x.addSingularRule(b[0],b[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(x.addUncountableRule),x})});var iV=A((cwr,HDe)=>{"use strict";var oV=Symbol("arg flag"),hu=class e extends Error{constructor(r,n){super(r),this.name="ArgError",this.code=n,Object.setPrototypeOf(this,e.prototype)}};function PD(e,{argv:r=process.argv.slice(2),permissive:n=!1,stopAtPositional:o=!1}={}){if(!e)throw new hu("argument specification object is required","ARG_CONFIG_NO_SPEC");let i={_:[]},a={},c={};for(let u of Object.keys(e)){if(!u)throw new hu("argument key cannot be an empty string","ARG_CONFIG_EMPTY_KEY");if(u[0]!=="-")throw new hu(`argument key must start with '-' but found: '${u}'`,"ARG_CONFIG_NONOPT_KEY");if(u.length===1)throw new hu(`argument key must have a name; singular '-' keys are not allowed: ${u}`,"ARG_CONFIG_NONAME_KEY");if(typeof e[u]=="string"){a[u]=e[u];continue}let l=e[u],p=!1;if(Array.isArray(l)&&l.length===1&&typeof l[0]=="function"){let[f]=l;l=(g,x,b=[])=>(b.push(f(g,x,b[b.length-1])),b),p=f===Boolean||f[oV]===!0}else if(typeof l=="function")p=l===Boolean||l[oV]===!0;else throw new hu(`type missing or not a function or valid array type: ${u}`,"ARG_CONFIG_VAD_TYPE");if(u[1]!=="-"&&u.length>2)throw new hu(`short argument keys (with a single hyphen) must have only one character: ${u}`,"ARG_CONFIG_SHORTOPT_TOOLONG");c[u]=[l,p]}for(let u=0,l=r.length;u<l;u++){let p=r[u];if(o&&i._.length>0){i._=i._.concat(r.slice(u));break}if(p==="--"){i._=i._.concat(r.slice(u+1));break}if(p.length>1&&p[0]==="-"){let f=p[1]==="-"||p.length===2?[p]:p.slice(1).split("").map(g=>`-${g}`);for(let g=0;g<f.length;g++){let x=f[g],[b,E]=x[1]==="-"?x.split(/=(.*)/,2):[x,void 0],S=b;for(;S in a;)S=a[S];if(!(S in c))if(n){i._.push(x);continue}else throw new hu(`unknown or unexpected option: ${b}`,"ARG_UNKNOWN_OPTION");let[_,D]=c[S];if(!D&&g+1<f.length)throw new hu(`option requires argument (but was followed by another short argument): ${b}`,"ARG_MISSING_REQUIRED_SHORTARG");if(D)i[S]=_(!0,S,i[S]);else if(E===void 0){if(r.length<u+2||r[u+1].length>1&&r[u+1][0]==="-"&&!(r[u+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(_===Number||typeof BigInt<"u"&&_===BigInt))){let O=b===S?"":` (alias for ${S})`;throw new hu(`option requires argument: ${b}${O}`,"ARG_MISSING_REQUIRED_LONGARG")}i[S]=_(r[u+1],S,i[S]),++u}else i[S]=_(E,S,i[S])}}else i._.push(p)}return i}PD.flag=e=>(e[oV]=!0,e);PD.COUNT=PD.flag((e,r,n)=>(n||0)+1);PD.ArgError=hu;HDe.exports=PD});var VDe=A((uwr,WDe)=>{"use strict";WDe.exports=e=>{let r=e.match(/^[ \t]*(?=\S)/gm);return r?r.reduce((n,o)=>Math.min(n,o.length),1/0):0}});var dV=A((A_r,ACe)=>{"use strict";var Xwt=require("os");ACe.exports=Xwt.homedir||function(){var r=process.env.HOME,n=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||r||null:process.platform==="darwin"?r||(n?"/Users/"+n:null):process.platform==="linux"?r||(process.getuid()===0?"/root":n?"/home/"+n:null):r||null}});var mV=A((P_r,PCe)=>{"use strict";PCe.exports=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(n,o){return o};var r=new Error().stack;return Error.prepareStackTrace=e,r[2].getFileName()}});var OCe=A((O_r,ID)=>{"use strict";var e_t=process.platform==="win32",t_t=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,hV={};function r_t(e){return t_t.exec(e).slice(1)}hV.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var r=r_t(e);if(!r||r.length!==5)throw new TypeError("Invalid path '"+e+"'");return{root:r[1],dir:r[0]===r[1]?r[0]:r[0].slice(0,-1),base:r[2],ext:r[4],name:r[3]}};var n_t=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,gV={};function o_t(e){return n_t.exec(e).slice(1)}gV.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var r=o_t(e);if(!r||r.length!==5)throw new TypeError("Invalid path '"+e+"'");return{root:r[1],dir:r[0].slice(0,-1),base:r[2],ext:r[4],name:r[3]}};e_t?ID.exports=hV.parse:ID.exports=gV.parse;ID.exports.posix=gV.parse;ID.exports.win32=hV.parse});var yV=A((I_r,MCe)=>{"use strict";var FCe=require("path"),ICe=FCe.parse||OCe(),RCe=function(r,n){var o="/";/^([A-Za-z]:)/.test(r)?o="":/^\\\\/.test(r)&&(o="\\\\");for(var i=[r],a=ICe(r);a.dir!==i[i.length-1];)i.push(a.dir),a=ICe(a.dir);return i.reduce(function(c,u){return c.concat(n.map(function(l){return FCe.resolve(o,u,l)}))},[])};MCe.exports=function(r,n,o){var i=n&&n.moduleDirectory?[].concat(n.moduleDirectory):["node_modules"];if(n&&typeof n.paths=="function")return n.paths(o,r,function(){return RCe(r,i)},n);var a=RCe(r,i);return n&&n.paths?a.concat(n.paths):a}});var xV=A((R_r,kCe)=>{"use strict";kCe.exports=function(e,r){return r||{}}});var LCe=A((F_r,NCe)=>{"use strict";var i_t="Function.prototype.bind called on incompatible ",s_t=Object.prototype.toString,a_t=Math.max,c_t="[object Function]",$Ce=function(r,n){for(var o=[],i=0;i<r.length;i+=1)o[i]=r[i];for(var a=0;a<n.length;a+=1)o[a+r.length]=n[a];return o},u_t=function(r,n){for(var o=[],i=n||0,a=0;i<r.length;i+=1,a+=1)o[a]=r[i];return o},l_t=function(e,r){for(var n="",o=0;o<e.length;o+=1)n+=e[o],o+1<e.length&&(n+=r);return n};NCe.exports=function(r){var n=this;if(typeof n!="function"||s_t.apply(n)!==c_t)throw new TypeError(i_t+n);for(var o=u_t(arguments,1),i,a=function(){if(this instanceof i){var f=n.apply(this,$Ce(o,arguments));return Object(f)===f?f:this}return n.apply(r,$Ce(o,arguments))},c=a_t(0,n.length-o.length),u=[],l=0;l<c;l++)u[l]="$"+l;if(i=Function("binder","return function ("+l_t(u,",")+"){ return binder.apply(this,arguments); }")(a),n.prototype){var p=function(){};p.prototype=n.prototype,i.prototype=new p,p.prototype=null}return i}});var UCe=A((M_r,BCe)=>{"use strict";var p_t=LCe();BCe.exports=Function.prototype.bind||p_t});var qCe=A((k_r,jCe)=>{"use strict";var f_t=Function.prototype.call,d_t=Object.prototype.hasOwnProperty,m_t=UCe();jCe.exports=m_t.call(f_t,d_t)});var GCe=A(($_r,h_t)=>{h_t.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3","node:sqlite":[">= 22.13 && < 23",">= 23.4"],_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var RD=A((N_r,VCe)=>{"use strict";var g_t=qCe();function y_t(e,r){for(var n=e.split("."),o=r.split(" "),i=o.length>1?o[0]:"=",a=(o.length>1?o[1]:o[0]).split("."),c=0;c<3;++c){var u=parseInt(n[c]||0,10),l=parseInt(a[c]||0,10);if(u!==l)return i==="<"?u<l:i===">="?u>=l:!1}return i===">="}function HCe(e,r){var n=r.split(/ ?&& ?/);if(n.length===0)return!1;for(var o=0;o<n.length;++o)if(!y_t(e,n[o]))return!1;return!0}function x_t(e,r){if(typeof r=="boolean")return r;var n=typeof e>"u"?process.versions&&process.versions.node:e;if(typeof n!="string")throw new TypeError(typeof e>"u"?"Unable to determine current node version":"If provided, a valid node version is required");if(r&&typeof r=="object"){for(var o=0;o<r.length;++o)if(HCe(n,r[o]))return!0;return!1}return HCe(n,r)}var WCe=GCe();VCe.exports=function(r,n){return g_t(WCe,r)&&x_t(n,WCe[r])}});var JCe=A((L_r,KCe)=>{"use strict";var Ky=require("fs"),b_t=dV(),Zo=require("path"),E_t=mV(),v_t=yV(),S_t=xV(),w_t=RD(),__t=process.platform!=="win32"&&Ky.realpath&&typeof Ky.realpath.native=="function"?Ky.realpath.native:Ky.realpath,zCe=b_t(),T_t=function(){return[Zo.join(zCe,".node_modules"),Zo.join(zCe,".node_libraries")]},D_t=function(r,n){Ky.stat(r,function(o,i){return o?o.code==="ENOENT"||o.code==="ENOTDIR"?n(null,!1):n(o):n(null,i.isFile()||i.isFIFO())})},C_t=function(r,n){Ky.stat(r,function(o,i){return o?o.code==="ENOENT"||o.code==="ENOTDIR"?n(null,!1):n(o):n(null,i.isDirectory())})},A_t=function(r,n){__t(r,function(o,i){o&&o.code!=="ENOENT"?n(o):n(null,o?r:i)})},FD=function(r,n,o,i){o&&o.preserveSymlinks===!1?r(n,i):i(null,n)},P_t=function(r,n,o){r(n,function(i,a){if(i)o(i);else try{var c=JSON.parse(a);o(null,c)}catch{o(null)}})},O_t=function(r,n,o){for(var i=v_t(n,o,r),a=0;a<i.length;a++)i[a]=Zo.join(i[a],r);return i};KCe.exports=function(r,n,o){var i=o,a=n;if(typeof n=="function"&&(i=a,a={}),typeof r!="string"){var c=new TypeError("Path must be a string.");return process.nextTick(function(){i(c)})}a=S_t(r,a);var u=a.isFile||D_t,l=a.isDirectory||C_t,p=a.readFile||Ky.readFile,f=a.realpath||A_t,g=a.readPackage||P_t;if(a.readFile&&a.readPackage){var x=new TypeError("`readFile` and `readPackage` are mutually exclusive.");return process.nextTick(function(){i(x)})}var b=a.packageIterator,E=a.extensions||[".js"],S=a.includeCoreModules!==!1,_=a.basedir||Zo.dirname(E_t()),D=a.filename||_;a.paths=a.paths||T_t();var O=Zo.resolve(_);FD(f,O,a,function(F,Y){F?i(F):R(Y)});var C;function R(F){if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(r))C=Zo.resolve(F,r),(r==="."||r===".."||r.slice(-1)==="/")&&(C+="/"),/\/$/.test(r)&&C===F?G(C,a.package,I):k(C,a.package,I);else{if(S&&w_t(r))return i(null,r);H(r,F,function(Y,V,Q){if(Y)i(Y);else{if(V)return FD(f,V,a,function(Z,ie){Z?i(Z):i(null,ie,Q)});var q=new Error("Cannot find module '"+r+"' from '"+D+"'");q.code="MODULE_NOT_FOUND",i(q)}})}}function I(F,Y,V){F?i(F):Y?i(null,Y,V):G(C,function(Q,q,Z){if(Q)i(Q);else if(q)FD(f,q,a,function(se,le){se?i(se):i(null,le,Z)});else{var ie=new Error("Cannot find module '"+r+"' from '"+D+"'");ie.code="MODULE_NOT_FOUND",i(ie)}})}function k(F,Y,V){var Q=Y,q=V;typeof Q=="function"&&(q=Q,Q=void 0);var Z=[""].concat(E);ie(Z,F,Q);function ie(se,le,_e){if(se.length===0)return q(null,void 0,_e);var Ge=le+se[0],Mt=_e;Mt?Zt(null,Mt):j(Zo.dirname(Ge),Zt);function Zt(Gt,$e,Qe){if(Mt=$e,Gt)return q(Gt);if(Qe&&Mt&&a.pathFilter){var mo=Zo.relative(Qe,Ge),xe=mo.slice(0,mo.length-se[0].length),ze=a.pathFilter(Mt,le,xe);if(ze)return ie([""].concat(E.slice()),Zo.resolve(Qe,ze),Mt)}u(Ge,kt)}function kt(Gt,$e){if(Gt)return q(Gt);if($e)return q(null,Ge,Mt);ie(se.slice(1),le,Mt)}}}function j(F,Y){if(F===""||F==="/"||process.platform==="win32"&&/^\w:[/\\]*$/.test(F)||/[/\\]node_modules[/\\]*$/.test(F))return Y(null);FD(f,F,a,function(V,Q){if(V)return j(Zo.dirname(F),Y);var q=Zo.join(Q,"package.json");u(q,function(Z,ie){if(!ie)return j(Zo.dirname(F),Y);g(p,q,function(se,le){se&&Y(se);var _e=le;_e&&a.packageFilter&&(_e=a.packageFilter(_e,q)),Y(null,_e,F)})})})}function G(F,Y,V){var Q=V,q=Y;typeof q=="function"&&(Q=q,q=a.package),FD(f,F,a,function(Z,ie){if(Z)return Q(Z);var se=Zo.join(ie,"package.json");u(se,function(le,_e){if(le)return Q(le);if(!_e)return k(Zo.join(F,"index"),q,Q);g(p,se,function(Ge,Mt){if(Ge)return Q(Ge);var Zt=Mt;if(Zt&&a.packageFilter&&(Zt=a.packageFilter(Zt,se)),Zt&&Zt.main){if(typeof Zt.main!="string"){var kt=new TypeError("package \u201C"+Zt.name+"\u201D `main` must be a string");return kt.code="INVALID_PACKAGE_MAIN",Q(kt)}(Zt.main==="."||Zt.main==="./")&&(Zt.main="index"),k(Zo.resolve(F,Zt.main),Zt,function(Gt,$e,Qe){if(Gt)return Q(Gt);if($e)return Q(null,$e,Qe);if(!Qe)return k(Zo.join(F,"index"),Qe,Q);var mo=Zo.resolve(F,Qe.main);G(mo,Qe,function(xe,ze,ge){if(xe)return Q(xe);if(ze)return Q(null,ze,ge);k(Zo.join(F,"index"),ge,Q)})});return}k(Zo.join(F,"/index"),Zt,Q)})})})}function L(F,Y){if(Y.length===0)return F(null,void 0);var V=Y[0];l(Zo.dirname(V),Q);function Q(ie,se){if(ie)return F(ie);if(!se)return L(F,Y.slice(1));k(V,a.package,q)}function q(ie,se,le){if(ie)return F(ie);if(se)return F(null,se,le);G(V,a.package,Z)}function Z(ie,se,le){if(ie)return F(ie);if(se)return F(null,se,le);L(F,Y.slice(1))}}function H(F,Y,V){var Q=function(){return O_t(F,Y,a)};L(V,b?b(F,Y,Q,a):Q())}}});var YCe=A((B_r,I_t)=>{I_t.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],"inspector/promises":[">= 19"],"node:inspector/promises":[">= 19"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],"node:sea":[">= 20.12 && < 21",">= 21.7"],smalloc:">= 0.11.5 && < 3","node:sqlite":">= 23.4",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],"test/reporters":">= 19.9 && < 20.2","node:test/reporters":[">= 18.17 && < 19",">= 19.9",">= 20"],"test/mock_loader":">= 22.3 && < 22.7","node:test/mock_loader":">= 22.3 && < 22.7","node:test":[">= 16.17 && < 17",">= 18"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:[">= 13.4 && < 13.5",">= 18.17 && < 19",">= 20"],"node:wasi":[">= 18.17 && < 19",">= 20"],worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var eAe=A((U_r,XCe)=>{"use strict";var R_t=RD(),ZCe=YCe(),QCe={};for(jk in ZCe)Object.prototype.hasOwnProperty.call(ZCe,jk)&&(QCe[jk]=R_t(jk));var jk;XCe.exports=QCe});var rAe=A((j_r,tAe)=>{"use strict";var F_t=RD();tAe.exports=function(r){return F_t(r)}});var iAe=A((q_r,oAe)=>{"use strict";var M_t=RD(),Jy=require("fs"),Ps=require("path"),k_t=dV(),$_t=mV(),N_t=yV(),L_t=xV(),B_t=process.platform!=="win32"&&Jy.realpathSync&&typeof Jy.realpathSync.native=="function"?Jy.realpathSync.native:Jy.realpathSync,nAe=k_t(),U_t=function(){return[Ps.join(nAe,".node_modules"),Ps.join(nAe,".node_libraries")]},j_t=function(r){try{var n=Jy.statSync(r,{throwIfNoEntry:!1})}catch(o){if(o&&(o.code==="ENOENT"||o.code==="ENOTDIR"))return!1;throw o}return!!n&&(n.isFile()||n.isFIFO())},q_t=function(r){try{var n=Jy.statSync(r,{throwIfNoEntry:!1})}catch(o){if(o&&(o.code==="ENOENT"||o.code==="ENOTDIR"))return!1;throw o}return!!n&&n.isDirectory()},G_t=function(r){try{return B_t(r)}catch(n){if(n.code!=="ENOENT")throw n}return r},MD=function(r,n,o){return o&&o.preserveSymlinks===!1?r(n):n},H_t=function(r,n){var o=r(n);try{var i=JSON.parse(o);return i}catch{}},W_t=function(r,n,o){for(var i=N_t(n,o,r),a=0;a<i.length;a++)i[a]=Ps.join(i[a],r);return i};oAe.exports=function(r,n){if(typeof r!="string")throw new TypeError("Path must be a string.");var o=L_t(r,n),i=o.isFile||j_t,a=o.readFileSync||Jy.readFileSync,c=o.isDirectory||q_t,u=o.realpathSync||G_t,l=o.readPackageSync||H_t;if(o.readFileSync&&o.readPackageSync)throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive.");var p=o.packageIterator,f=o.extensions||[".js"],g=o.includeCoreModules!==!1,x=o.basedir||Ps.dirname($_t()),b=o.filename||x;o.paths=o.paths||U_t();var E=MD(u,Ps.resolve(x),o);if(/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(r)){var S=Ps.resolve(E,r);(r==="."||r===".."||r.slice(-1)==="/")&&(S+="/");var _=C(S)||I(S);if(_)return MD(u,_,o)}else{if(g&&M_t(r))return r;var D=k(r,E);if(D)return MD(u,D,o)}var O=new Error("Cannot find module '"+r+"' from '"+b+"'");throw O.code="MODULE_NOT_FOUND",O;function C(j){var G=R(Ps.dirname(j));if(G&&G.dir&&G.pkg&&o.pathFilter){var L=Ps.relative(G.dir,j),H=o.pathFilter(G.pkg,j,L);H&&(j=Ps.resolve(G.dir,H))}if(i(j))return j;for(var F=0;F<f.length;F++){var Y=j+f[F];if(i(Y))return Y}}function R(j){if(!(j===""||j==="/")&&!(process.platform==="win32"&&/^\w:[/\\]*$/.test(j))&&!/[/\\]node_modules[/\\]*$/.test(j)){var G=Ps.join(MD(u,j,o),"package.json");if(!i(G))return R(Ps.dirname(j));var L=l(a,G);return L&&o.packageFilter&&(L=o.packageFilter(L,j)),{pkg:L,dir:j}}}function I(j){var G=Ps.join(MD(u,j,o),"/package.json");if(i(G)){try{var L=l(a,G)}catch{}if(L&&o.packageFilter&&(L=o.packageFilter(L,j)),L&&L.main){if(typeof L.main!="string"){var H=new TypeError("package \u201C"+L.name+"\u201D `main` must be a string");throw H.code="INVALID_PACKAGE_MAIN",H}(L.main==="."||L.main==="./")&&(L.main="index");try{var F=C(Ps.resolve(j,L.main));if(F)return F;var Y=I(Ps.resolve(j,L.main));if(Y)return Y}catch{}}}return C(Ps.join(j,"/index"))}function k(j,G){for(var L=function(){return W_t(j,G,o)},H=p?p(j,G,L,o):L(),F=0;F<H.length;F++){var Y=H[F];if(c(Ps.dirname(Y))){var V=C(Y);if(V)return V;var Q=I(Y);if(Q)return Q}}}}});var aAe=A((G_r,sAe)=>{"use strict";var qk=JCe();qk.core=eAe();qk.isCore=rAe();qk.sync=iAe();sAe.exports=qk});var dAe=A((Y_r,Q_t)=>{Q_t.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE"},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var gAe=A(_c=>{"use strict";var hAe=dAe(),yi=process.env;Object.defineProperty(_c,"_vendors",{value:hAe.map(function(e){return e.constant})});_c.name=null;_c.isPR=null;hAe.forEach(function(e){let n=(Array.isArray(e.env)?e.env:[e.env]).every(function(o){return mAe(o)});if(_c[e.constant]=n,!!n)switch(_c.name=e.name,typeof e.pr){case"string":_c.isPR=!!yi[e.pr];break;case"object":"env"in e.pr?_c.isPR=e.pr.env in yi&&yi[e.pr.env]!==e.pr.ne:"any"in e.pr?_c.isPR=e.pr.any.some(function(o){return!!yi[o]}):_c.isPR=mAe(e.pr);break;default:_c.isPR=null}});_c.isCI=!!(yi.CI!=="false"&&(yi.BUILD_ID||yi.BUILD_NUMBER||yi.CI||yi.CI_APP_ID||yi.CI_BUILD_ID||yi.CI_BUILD_NUMBER||yi.CI_NAME||yi.CONTINUOUS_INTEGRATION||yi.RUN_ID||_c.name));function mAe(e){return typeof e=="string"?!!yi[e]:"env"in e?yi[e.env]&&yi[e.env].includes(e.includes):"any"in e?e.any.some(function(r){return!!yi[r]}):Object.keys(e).every(function(r){return yi[r]===e[r]})}});var Zy=A((exports,module)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var path$2=require("path"),os$1=require("os"),require$$0=require("fs"),require$$2=require("util"),fs$1=require("fs/promises"),crypto=require("crypto"),child_process=require("child_process");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var path__default=_interopDefaultLegacy(path$2),os__default=_interopDefaultLegacy(os$1),require$$0__default=_interopDefaultLegacy(require$$0),require$$2__default=_interopDefaultLegacy(require$$2),fs__default=_interopDefaultLegacy(fs$1),crypto__default=_interopDefaultLegacy(crypto),rnds8Pool=new Uint8Array(256),poolPtr=rnds8Pool.length;function rng(){return poolPtr>rnds8Pool.length-16&&(crypto__default.default.randomFillSync(rnds8Pool),poolPtr=0),rnds8Pool.slice(poolPtr,poolPtr+=16)}var byteToHex=[];for(let e=0;e<256;++e)byteToHex.push((e+256).toString(16).slice(1));function unsafeStringify(e,r=0){return byteToHex[e[r+0]]+byteToHex[e[r+1]]+byteToHex[e[r+2]]+byteToHex[e[r+3]]+"-"+byteToHex[e[r+4]]+byteToHex[e[r+5]]+"-"+byteToHex[e[r+6]]+byteToHex[e[r+7]]+"-"+byteToHex[e[r+8]]+byteToHex[e[r+9]]+"-"+byteToHex[e[r+10]]+byteToHex[e[r+11]]+byteToHex[e[r+12]]+byteToHex[e[r+13]]+byteToHex[e[r+14]]+byteToHex[e[r+15]]}var native={randomUUID:crypto__default.default.randomUUID};function v4(e,r,n){if(native.randomUUID&&!r&&!e)return native.randomUUID();e=e||{};let o=e.random||(e.rng||rng)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,r){n=n||0;for(let i=0;i<16;++i)r[n+i]=o[i];return r}return unsafeStringify(o)}var envPaths$1={exports:{}},path$1=path__default.default,os=os__default.default,homedir=os.homedir(),tmpdir=os.tmpdir(),{env}=process,macos=e=>{let r=path$1.join(homedir,"Library");return{data:path$1.join(r,"Application Support",e),config:path$1.join(r,"Preferences",e),cache:path$1.join(r,"Caches",e),log:path$1.join(r,"Logs",e),temp:path$1.join(tmpdir,e)}},windows=e=>{let r=env.APPDATA||path$1.join(homedir,"AppData","Roaming"),n=env.LOCALAPPDATA||path$1.join(homedir,"AppData","Local");return{data:path$1.join(n,e,"Data"),config:path$1.join(r,e,"Config"),cache:path$1.join(n,e,"Cache"),log:path$1.join(n,e,"Log"),temp:path$1.join(tmpdir,e)}},linux=e=>{let r=path$1.basename(homedir);return{data:path$1.join(env.XDG_DATA_HOME||path$1.join(homedir,".local","share"),e),config:path$1.join(env.XDG_CONFIG_HOME||path$1.join(homedir,".config"),e),cache:path$1.join(env.XDG_CACHE_HOME||path$1.join(homedir,".cache"),e),log:path$1.join(env.XDG_STATE_HOME||path$1.join(homedir,".local","state"),e),temp:path$1.join(tmpdir,r,e)}},envPaths=(e,r)=>{if(typeof e!="string")throw new TypeError(`Expected string, got ${typeof e}`);return r=Object.assign({suffix:"nodejs"},r),r.suffix&&(e+=`-${r.suffix}`),process.platform==="darwin"?macos(e):process.platform==="win32"?windows(e):linux(e)};envPaths$1.exports=envPaths;envPaths$1.exports.default=envPaths;var paths=envPaths$1.exports,makeDir$2={exports:{}},debug$1=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{},debug_1=debug$1,SEMVER_SPEC_VERSION="2.0.0",MAX_LENGTH$1=256,MAX_SAFE_INTEGER$1=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16,MAX_SAFE_BUILD_LENGTH=MAX_LENGTH$1-6,RELEASE_TYPES=["major","premajor","minor","preminor","patch","prepatch","prerelease"],constants={MAX_LENGTH:MAX_LENGTH$1,MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_SAFE_INTEGER:MAX_SAFE_INTEGER$1,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},re$1={exports:{}};(function(e,r){let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o}=constants,i=debug_1;r=e.exports={};let a=r.re=[],c=r.safeRe=[],u=r.src=[],l=r.t={},p=0,f="[a-zA-Z0-9-]",g=[["\\s",1],["\\d",n],[f,o]],x=E=>{for(let[S,_]of g)E=E.split(`${S}*`).join(`${S}{0,${_}}`).split(`${S}+`).join(`${S}{1,${_}}`);return E},b=(E,S,_)=>{let D=x(S),O=p++;i(E,O,S),l[E]=O,u[O]=S,a[O]=new RegExp(S,_?"g":void 0),c[O]=new RegExp(D,_?"g":void 0)};b("NUMERICIDENTIFIER","0|[1-9]\\d*"),b("NUMERICIDENTIFIERLOOSE","\\d+"),b("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),b("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),b("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),b("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`),b("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`),b("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),b("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),b("BUILDIDENTIFIER",`${f}+`),b("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),b("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),b("FULL",`^${u[l.FULLPLAIN]}$`),b("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),b("LOOSE",`^${u[l.LOOSEPLAIN]}$`),b("GTLT","((?:<|>)?=?)"),b("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),b("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),b("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),b("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),b("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),b("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),b("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),b("COERCERTL",u[l.COERCE],!0),b("LONETILDE","(?:~>?)"),b("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),r.tildeTrimReplace="$1~",b("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),b("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),b("LONECARET","(?:\\^)"),b("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),r.caretTrimReplace="$1^",b("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),b("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),b("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),b("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),b("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),r.comparatorTrimReplace="$1$2$3",b("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),b("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),b("STAR","(<|>)?=?\\s*\\*"),b("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),b("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(re$1,re$1.exports);var looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions$1=e=>e?typeof e!="object"?looseOption:e:emptyOpts,parseOptions_1=parseOptions$1,numeric=/^[0-9]+$/,compareIdentifiers$1=(e,r)=>{let n=numeric.test(e),o=numeric.test(r);return n&&o&&(e=+e,r=+r),e===r?0:n&&!o?-1:o&&!n?1:e<r?-1:1},rcompareIdentifiers=(e,r)=>compareIdentifiers$1(r,e),identifiers={compareIdentifiers:compareIdentifiers$1,rcompareIdentifiers},debug=debug_1,{MAX_LENGTH,MAX_SAFE_INTEGER}=constants,{safeRe:re,t}=re$1.exports,parseOptions=parseOptions_1,{compareIdentifiers}=identifiers,SemVer$1=class e{constructor(r,n){if(n=parseOptions(n),r instanceof e){if(r.loose===!!n.loose&&r.includePrerelease===!!n.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof r}".`);if(r.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",r,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let o=r.trim().match(n.loose?re[t.LOOSE]:re[t.FULL]);if(!o)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let a=+i;if(a>=0&&a<MAX_SAFE_INTEGER)return a}return i}):this.prerelease=[],this.build=o[5]?o[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(r){if(debug("SemVer.compare",this.version,this.options,r),!(r instanceof e)){if(typeof r=="string"&&r===this.version)return 0;r=new e(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof e||(r=new e(r,this.options)),compareIdentifiers(this.major,r.major)||compareIdentifiers(this.minor,r.minor)||compareIdentifiers(this.patch,r.patch)}comparePre(r){if(r instanceof e||(r=new e(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let n=0;do{let o=this.prerelease[n],i=r.prerelease[n];if(debug("prerelease compare",n,o,i),o===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(o===void 0)return-1;if(o===i)continue;return compareIdentifiers(o,i)}while(++n)}compareBuild(r){r instanceof e||(r=new e(r,this.options));let n=0;do{let o=this.build[n],i=r.build[n];if(debug("prerelease compare",n,o,i),o===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(o===void 0)return-1;if(o===i)continue;return compareIdentifiers(o,i)}while(++n)}inc(r,n,o){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,o);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,o);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,o),this.inc("pre",n,o);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,o),this.inc("pre",n,o);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(o)?1:0;if(!n&&o===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let a=this.prerelease.length;for(;--a>=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(n===this.prerelease.join(".")&&o===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(n){let a=[n,i];o===!1&&(a=[n]),compareIdentifiers(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${r}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}},semver=SemVer$1,SemVer=semver,compare$1=(e,r,n)=>new SemVer(e,n).compare(new SemVer(r,n)),compare_1=compare$1,compare=compare_1,gte=(e,r,n)=>compare(e,r,n)>=0,gte_1=gte,fs=require$$0__default.default,path=path__default.default,{promisify}=require$$2__default.default,semverGte=gte_1,useNativeRecursiveOption=semverGte(process.version,"10.12.0"),checkPath=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(path.parse(e).root,""))){let n=new Error(`Path contains invalid characters: ${e}`);throw n.code="EINVAL",n}},processOptions=e=>({...{mode:511,fs},...e}),permissionError=e=>{let r=new Error(`operation not permitted, mkdir '${e}'`);return r.code="EPERM",r.errno=-4048,r.path=e,r.syscall="mkdir",r},makeDir=async(e,r)=>{checkPath(e),r=processOptions(r);let n=promisify(r.fs.mkdir),o=promisify(r.fs.stat);if(useNativeRecursiveOption&&r.fs.mkdir===fs.mkdir){let a=path.resolve(e);return await n(a,{mode:r.mode,recursive:!0}),a}let i=async a=>{try{return await n(a,r.mode),a}catch(c){if(c.code==="EPERM")throw c;if(c.code==="ENOENT"){if(path.dirname(a)===a)throw permissionError(a);if(c.message.includes("null bytes"))throw c;return await i(path.dirname(a)),i(a)}try{if(!(await o(a)).isDirectory())throw new Error("The path is not a directory")}catch{throw c}return a}};return i(path.resolve(e))};makeDir$2.exports=makeDir;makeDir$2.exports.sync=(e,r)=>{if(checkPath(e),r=processOptions(r),useNativeRecursiveOption&&r.fs.mkdirSync===fs.mkdirSync){let o=path.resolve(e);return fs.mkdirSync(o,{mode:r.mode,recursive:!0}),o}let n=o=>{try{r.fs.mkdirSync(o,r.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(path.dirname(o)===o)throw permissionError(o);if(i.message.includes("null bytes"))throw i;return n(path.dirname(o)),n(o)}try{if(!r.fs.statSync(o).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}return o};return n(path.resolve(e))};var makeDir$1=makeDir$2.exports,PRISMA_SIGNATURE="signature";async function getSignature(e){let r=paths("checkpoint");e=e||path__default.default.join(r.cache,PRISMA_SIGNATURE);let n=await readSignature(e);return n||await createSignatureFile(e)}function isSignatureValid(e){return typeof e=="string"&&e.length===36}async function readSignature(e){try{let r=await fs__default.default.readFile(e,"utf8"),{signature:n}=JSON.parse(r);return isSignatureValid(n)?n:""}catch{return""}}async function createSignatureFile(e,r){let n={signature:r||v4()};return await makeDir$1(path__default.default.dirname(e)),await fs__default.default.writeFile(e,JSON.stringify(n,null," ")),n.signature}async function getInfo(){let e=paths("checkpoint").cache;require$$0.existsSync(e)||await fs__default.default.mkdir(e,{recursive:!0});let r=await fs__default.default.readdir(e),n=[];for(let o of r)if(o.includes("-"))try{let i=JSON.parse(await fs__default.default.readFile(path__default.default.join(e,o),{encoding:"utf-8"}));i.output&&!i.output.cli_path_hash&&(i.output.cli_path_hash=o.split("-")[1]),n.push(i)}catch(i){console.error(i)}return{signature:await getSignature(),cachePath:e,cacheItems:n}}var defaultSchema={last_reminder:0,cached_at:0,version:"",cli_path:"",output:{client_event_id:"",previous_client_event_id:"",product:"",cli_path_hash:"",local_timestamp:"",previous_version:"",current_version:"",current_release_date:0,current_download_url:"",current_changelog_url:"",package:"",release_tag:"",install_command:"",project_website:"",outdated:!1,alerts:[]}},Config=class e{static async new(r,n=defaultSchema){return await makeDir$1(path__default.default.dirname(r.cache_file)),new e(r,n)}constructor(r,n){this.state=r,this.defaultSchema=n}async checkCache(r){let n=r.now(),o=await this.all();return o?r.version!==o.version?{cache:o,stale:!0}:n-o.cached_at>r.cache_duration?{cache:o,stale:!0}:{cache:o,stale:!1}:{cache:void 0,stale:!0}}async set(r){let n=await this.all()||{},o=Object.assign(n,r);for(let i in this.defaultSchema)typeof o[i]>"u"&&(o[i]=this.defaultSchema[i]);await fs__default.default.writeFile(this.state.cache_file,JSON.stringify(o,null," "))}async all(){try{let r=await fs__default.default.readFile(this.state.cache_file,"utf8");return JSON.parse(r)}catch{return}}async get(r){let n=await this.all();if(!(typeof n>"u"))return n[r]}async reset(){await fs__default.default.writeFile(this.state.cache_file,JSON.stringify(this.defaultSchema,null," "))}async delete(){try{await fs__default.default.unlink(this.state.cache_file);return}catch{return}}},s=1e3,m=s*60,h=m*60,d=h*24,w=d*7,y=d*365.25,ms=function(e,r){r=r||{};var n=typeof e;if(n==="string"&&e.length>0)return parse(e);if(n==="number"&&isFinite(e))return r.long?fmtLong(e):fmtShort(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){if(e=String(e),!(e.length>100)){var r=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(r){var n=parseFloat(r[1]),o=(r[2]||"ms").toLowerCase();switch(o){case"years":case"year":case"yrs":case"yr":case"y":return n*y;case"weeks":case"week":case"w":return n*w;case"days":case"day":case"d":return n*d;case"hours":case"hour":case"hrs":case"hr":case"h":return n*h;case"minutes":case"minute":case"mins":case"min":case"m":return n*m;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function fmtShort(e){var r=Math.abs(e);return r>=d?Math.round(e/d)+"d":r>=h?Math.round(e/h)+"h":r>=m?Math.round(e/m)+"m":r>=s?Math.round(e/s)+"s":e+"ms"}function fmtLong(e){var r=Math.abs(e);return r>=d?plural(e,r,d,"day"):r>=h?plural(e,r,h,"hour"):r>=m?plural(e,r,m,"minute"):r>=s?plural(e,r,s,"second"):e+" ms"}function plural(e,r,n,o){var i=r>=n*1.5;return Math.round(e/n)+" "+o+(i?"s":"")}var TELEMETRY_ENDPOINT_URL_PRODUCTION="https://checkpoint.prisma.io",childPath=path__default.default.join(eval("__dirname"),"child");async function check(e){let r=getCacheFile(e.product,e.cli_path_hash||"default"),n=gAe(),o=e.endpoint||process.env.PRISMA_TELEMETRY_ENDPOINT||TELEMETRY_ENDPOINT_URL_PRODUCTION,i={product:e.product,version:e.version,cli_install_type:e.cli_install_type||"",information:e.information||"",local_timestamp:e.local_timestamp||rfc3339(new Date),project_hash:e.project_hash,cli_path:e.cli_path||"",cli_path_hash:e.cli_path_hash||"",endpoint:o,disable:typeof e.disable>"u"?!1:e.disable,arch:e.arch||os__default.default.arch(),os:e.os||os__default.default.platform(),node_version:e.node_version||process.version,ci:typeof e.ci<"u"?e.ci:n.isCI,ci_name:typeof e.ci_name<"u"?e.ci_name||"":n.name||"",command:e.command||"",schema_providers:e.schema_providers||[],schema_preview_features:e.schema_preview_features||[],schema_generators_providers:e.schema_generators_providers||[],cache_file:e.cache_file||r,cache_duration:typeof e.cache_duration>"u"?ms("12h"):e.cache_duration,remind_duration:typeof e.remind_duration>"u"?ms("48h"):e.remind_duration,force:typeof e.force>"u"?!1:e.force,timeout:getTimeout(e.timeout),unref:typeof e.unref>"u"?!0:e.unref,child_path:e.child_path||childPath,now:()=>Date.now(),client_event_id:e.client_event_id||"",previous_client_event_id:e.previous_client_event_id||"",check_if_update_available:!1};if((process.env.CHECKPOINT_DISABLE||i.disable)&&!i.force)return{status:"disabled"};let a=await Config.new(i),c=await a.checkCache(i);i.check_if_update_available=c.stale===!0||!c.cache;let u=spawn(i);if(i.unref&&(u.unref(),u.disconnect()),c.stale===!0||!c.cache)return{status:"waiting",data:u};for(let p of Object.keys(i))i[p]&&await a.set({[p]:i[p]});return i.now()-c.cache.last_reminder<i.remind_duration?{status:"reminded",data:c.cache.output}:(await a.set({last_reminder:i.now()}),{status:"ok",data:c.cache.output})}function getCacheFile(e,r){let n=paths("checkpoint");return path__default.default.join(n.cache,`${e}-${r}`)}function getTimeout(e){if(typeof e<"u")return e;let r=process.env.CHECKPOINT_TIMEOUT;if(typeof r>"u")return 5e3;let n=parseInt(r,10);return isNaN(n)?5e3:n}function getForkOpts(e){return e.unref===!0?{detached:!0,stdio:process.env.CHECKPOINT_DEBUG_STDOUT?"inherit":"ignore",env:process.env}:{detached:!1,stdio:"pipe",env:process.env}}function spawn(e){return child_process.fork(childPath,[JSON.stringify(e)],getForkOpts(e))}function rfc3339(e){function r(o){return o<10?"0"+o:o}function n(o){let i;return o===0?"Z":(i=o>0?"-":"+",o=Math.abs(o),i+r(Math.floor(o/60))+":"+r(o%60))}return e.getFullYear()+"-"+r(e.getMonth()+1)+"-"+r(e.getDate())+"T"+r(e.getHours())+":"+r(e.getMinutes())+":"+r(e.getSeconds())+n(e.getTimezoneOffset())}exports.check=check;exports.getInfo=getInfo;exports.getSignature=getSignature});var RAe=A((Q_r,vd)=>{"use strict";var Qo=require("fs"),_V=require("os"),Tc=require("path"),yAe=require("crypto"),Hp={fs:Qo.constants,os:_V.constants},xAe="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",EAe=/XXXXXX/,X_t=3,vAe=(Hp.O_CREAT||Hp.fs.O_CREAT)|(Hp.O_EXCL||Hp.fs.O_EXCL)|(Hp.O_RDWR||Hp.fs.O_RDWR),e1t=_V.platform()==="win32",t1t=Hp.EBADF||Hp.os.errno.EBADF,r1t=Hp.ENOENT||Hp.os.errno.ENOENT,SAe=448,wAe=384,n1t="exit",Jv=[],_Ae=Qo.rmdirSync.bind(Qo),TAe=!1;function o1t(e,r){return Qo.rm(e,{recursive:!0},r)}function DAe(e){return Qo.rmSync(e,{recursive:!0})}function TV(e,r){let n=Yv(e,r),o=n[0],i=n[1];try{PAe(o)}catch(c){return i(c)}let a=o.tries;(function c(){try{let u=AAe(o);Qo.stat(u,function(l){if(!l)return a-- >0?c():i(new Error("Could not get a unique tmp filename, max tries reached "+u));i(null,u)})}catch(u){i(u)}})()}function DV(e){let r=Yv(e),n=r[0];PAe(n);let o=n.tries;do{let i=AAe(n);try{Qo.statSync(i)}catch{return i}}while(o-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function i1t(e,r){let n=Yv(e,r),o=n[0],i=n[1];TV(o,function(c,u){if(c)return i(c);Qo.open(u,vAe,o.mode||wAe,function(p,f){if(p)return i(p);if(o.discardDescriptor)return Qo.close(f,function(x){return i(x,u,void 0,vV(u,-1,o,!1))});{let g=o.discardDescriptor||o.detachDescriptor;i(null,u,f,vV(u,g?-1:f,o,!1))}})})}function s1t(e){let r=Yv(e),n=r[0],o=n.discardDescriptor||n.detachDescriptor,i=DV(n);var a=Qo.openSync(i,vAe,n.mode||wAe);return n.discardDescriptor&&(Qo.closeSync(a),a=void 0),{name:i,fd:a,removeCallback:vV(i,o?-1:a,n,!0)}}function a1t(e,r){let n=Yv(e,r),o=n[0],i=n[1];TV(o,function(c,u){if(c)return i(c);Qo.mkdir(u,o.mode||SAe,function(p){if(p)return i(p);i(null,u,CAe(u,o,!1))})})}function c1t(e){let r=Yv(e),n=r[0],o=DV(n);return Qo.mkdirSync(o,n.mode||SAe),{name:o,removeCallback:CAe(o,n,!0)}}function u1t(e,r){let n=function(o){if(o&&!wV(o))return r(o);r()};0<=e[0]?Qo.close(e[0],function(){Qo.unlink(e[1],n)}):Qo.unlink(e[1],n)}function l1t(e){let r=null;try{0<=e[0]&&Qo.closeSync(e[0])}catch(n){if(!d1t(n)&&!wV(n))throw n}finally{try{Qo.unlinkSync(e[1])}catch(n){wV(n)||(r=n)}}if(r!==null)throw r}function vV(e,r,n,o){let i=Hk(l1t,[r,e],o),a=Hk(u1t,[r,e],o,i);return n.keep||Jv.unshift(i),o?i:a}function CAe(e,r,n){let o=r.unsafeCleanup?o1t:Qo.rmdir.bind(Qo),i=r.unsafeCleanup?DAe:_Ae,a=Hk(i,e,n),c=Hk(o,e,n,a);return r.keep||Jv.unshift(a),n?a:c}function Hk(e,r,n,o){let i=!1;return function a(c){if(!i){let u=o||a,l=Jv.indexOf(u);return l>=0&&Jv.splice(l,1),i=!0,n||e===_Ae||e===DAe?e(r):e(r,c||function(){})}}}function p1t(){if(TAe)for(;Jv.length;)try{Jv[0]()}catch{}}function bAe(e){let r=[],n=null;try{n=yAe.randomBytes(e)}catch{n=yAe.pseudoRandomBytes(e)}for(var o=0;o<e;o++)r.push(xAe[n[o]%xAe.length]);return r.join("")}function f1t(e){return e===null||Ra(e)||!e.trim()}function Ra(e){return typeof e>"u"}function Yv(e,r){if(typeof e=="function")return[{},e];if(Ra(e))return[{},r];let n={};for(let o of Object.getOwnPropertyNames(e))n[o]=e[o];return[n,r]}function AAe(e){let r=e.tmpdir;if(!Ra(e.name))return Tc.join(r,e.dir,e.name);if(!Ra(e.template))return Tc.join(r,e.dir,e.template).replace(EAe,bAe(6));let n=[e.prefix?e.prefix:"tmp","-",process.pid,"-",bAe(12),e.postfix?"-"+e.postfix:""].join("");return Tc.join(r,e.dir,n)}function PAe(e){e.tmpdir=IAe(e);let r=e.tmpdir;if(Ra(e.name)||EV(e.name,"name",r),Ra(e.dir)||EV(e.dir,"dir",r),!Ra(e.template)&&(EV(e.template,"template",r),!e.template.match(EAe)))throw new Error(`Invalid template, found "${e.template}".`);if(!Ra(e.tries)&&isNaN(e.tries)||e.tries<0)throw new Error(`Invalid tries, found "${e.tries}".`);e.tries=Ra(e.name)?e.tries||X_t:1,e.keep=!!e.keep,e.detachDescriptor=!!e.detachDescriptor,e.discardDescriptor=!!e.discardDescriptor,e.unsafeCleanup=!!e.unsafeCleanup,e.dir=Ra(e.dir)?"":Tc.relative(r,SV(e.dir,r)),e.template=Ra(e.template)?void 0:Tc.relative(r,SV(e.template,r)),e.template=f1t(e.template)?void 0:Tc.relative(e.dir,e.template),e.name=Ra(e.name)?void 0:e.name,e.prefix=Ra(e.prefix)?"":e.prefix,e.postfix=Ra(e.postfix)?"":e.postfix}function SV(e,r){return e.startsWith(r)?Tc.resolve(e):Tc.resolve(Tc.join(r,e))}function EV(e,r,n){if(r==="name"){if(Tc.isAbsolute(e))throw new Error(`${r} option must not contain an absolute path, found "${e}".`);let o=Tc.basename(e);if(o===".."||o==="."||o!==e)throw new Error(`${r} option must not contain a path, found "${e}".`)}else{if(Tc.isAbsolute(e)&&!e.startsWith(n))throw new Error(`${r} option must be relative to "${n}", found "${e}".`);let o=SV(e,n);if(!o.startsWith(n))throw new Error(`${r} option must be relative to "${n}", found "${o}".`)}}function d1t(e){return OAe(e,-t1t,"EBADF")}function wV(e){return OAe(e,-r1t,"ENOENT")}function OAe(e,r,n){return e1t?e.code===n:e.code===n&&e.errno===r}function m1t(){TAe=!0}function IAe(e){return Tc.resolve(e&&e.tmpdir||_V.tmpdir())}process.addListener(n1t,p1t);Object.defineProperty(vd.exports,"tmpdir",{enumerable:!0,configurable:!1,get:function(){return IAe()}});vd.exports.dir=a1t;vd.exports.dirSync=c1t;vd.exports.file=i1t;vd.exports.fileSync=s1t;vd.exports.tmpName=TV;vd.exports.tmpNameSync=DV;vd.exports.setGracefulCleanup=m1t});var xo=A((c1r,jAe)=>{"use strict";var{FORCE_COLOR:g1t,NODE_DISABLE_COLORS:y1t,TERM:x1t}=process.env,Xr={enabled:!y1t&&x1t!=="dumb"&&g1t!=="0",reset:An(0,0),bold:An(1,22),dim:An(2,22),italic:An(3,23),underline:An(4,24),inverse:An(7,27),hidden:An(8,28),strikethrough:An(9,29),black:An(30,39),red:An(31,39),green:An(32,39),yellow:An(33,39),blue:An(34,39),magenta:An(35,39),cyan:An(36,39),white:An(37,39),gray:An(90,39),grey:An(90,39),bgBlack:An(40,49),bgRed:An(41,49),bgGreen:An(42,49),bgYellow:An(43,49),bgBlue:An(44,49),bgMagenta:An(45,49),bgCyan:An(46,49),bgWhite:An(47,49)};function UAe(e,r){let n=0,o,i="",a="";for(;n<e.length;n++)o=e[n],i+=o.open,a+=o.close,r.includes(o.close)&&(r=r.replace(o.rgx,o.close+o.open));return i+r+a}function b1t(e,r){let n={has:e,keys:r};return n.reset=Xr.reset.bind(n),n.bold=Xr.bold.bind(n),n.dim=Xr.dim.bind(n),n.italic=Xr.italic.bind(n),n.underline=Xr.underline.bind(n),n.inverse=Xr.inverse.bind(n),n.hidden=Xr.hidden.bind(n),n.strikethrough=Xr.strikethrough.bind(n),n.black=Xr.black.bind(n),n.red=Xr.red.bind(n),n.green=Xr.green.bind(n),n.yellow=Xr.yellow.bind(n),n.blue=Xr.blue.bind(n),n.magenta=Xr.magenta.bind(n),n.cyan=Xr.cyan.bind(n),n.white=Xr.white.bind(n),n.gray=Xr.gray.bind(n),n.grey=Xr.grey.bind(n),n.bgBlack=Xr.bgBlack.bind(n),n.bgRed=Xr.bgRed.bind(n),n.bgGreen=Xr.bgGreen.bind(n),n.bgYellow=Xr.bgYellow.bind(n),n.bgBlue=Xr.bgBlue.bind(n),n.bgMagenta=Xr.bgMagenta.bind(n),n.bgCyan=Xr.bgCyan.bind(n),n.bgWhite=Xr.bgWhite.bind(n),n}function An(e,r){let n={open:`\x1B[${e}m`,close:`\x1B[${r}m`,rgx:new RegExp(`\\x1b\\[${r}m`,"g")};return function(o){return this!==void 0&&this.has!==void 0?(this.has.includes(e)||(this.has.push(e),this.keys.push(n)),o===void 0?this:Xr.enabled?UAe(this.keys,o+""):o+""):o===void 0?b1t([e],[n]):Xr.enabled?UAe([n],o+""):o+""}}jAe.exports=Xr});var GAe=A((u1r,qAe)=>{"use strict";qAe.exports=(e,r)=>{if(!(e.meta&&e.name!=="escape")){if(e.ctrl){if(e.name==="a")return"first";if(e.name==="c"||e.name==="d")return"abort";if(e.name==="e")return"last";if(e.name==="g")return"reset"}if(r){if(e.name==="j")return"down";if(e.name==="k")return"up"}return e.name==="return"||e.name==="enter"?"submit":e.name==="backspace"?"delete":e.name==="delete"?"deleteForward":e.name==="abort"?"abort":e.name==="escape"?"exit":e.name==="tab"?"next":e.name==="pagedown"?"nextPage":e.name==="pageup"?"prevPage":e.name==="home"?"home":e.name==="end"?"end":e.name==="up"?"up":e.name==="down"?"down":e.name==="right"?"right":e.name==="left"?"left":!1}}});var Vk=A((l1r,HAe)=>{"use strict";HAe.exports=e=>{let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|"),n=new RegExp(r,"g");return typeof e=="string"?e.replace(n,""):e}});var Eo=A((p1r,WAe)=>{"use strict";var CV="\x1B",bo=`${CV}[`,E1t="\x07",AV={to(e,r){return r?`${bo}${r+1};${e+1}H`:`${bo}${e+1}G`},move(e,r){let n="";return e<0?n+=`${bo}${-e}D`:e>0&&(n+=`${bo}${e}C`),r<0?n+=`${bo}${-r}A`:r>0&&(n+=`${bo}${r}B`),n},up:(e=1)=>`${bo}${e}A`,down:(e=1)=>`${bo}${e}B`,forward:(e=1)=>`${bo}${e}C`,backward:(e=1)=>`${bo}${e}D`,nextLine:(e=1)=>`${bo}E`.repeat(e),prevLine:(e=1)=>`${bo}F`.repeat(e),left:`${bo}G`,hide:`${bo}?25l`,show:`${bo}?25h`,save:`${CV}7`,restore:`${CV}8`},v1t={up:(e=1)=>`${bo}S`.repeat(e),down:(e=1)=>`${bo}T`.repeat(e)},S1t={screen:`${bo}2J`,up:(e=1)=>`${bo}1J`.repeat(e),down:(e=1)=>`${bo}J`.repeat(e),line:`${bo}2K`,lineEnd:`${bo}K`,lineStart:`${bo}1K`,lines(e){let r="";for(let n=0;n<e;n++)r+=this.line+(n<e-1?AV.up():"");return e&&(r+=AV.left),r}};WAe.exports={cursor:AV,scroll:v1t,erase:S1t,beep:E1t}});var YAe=A((f1r,JAe)=>{"use strict";function w1t(e,r){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_1t(e))||r&&e&&typeof e.length=="number"){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(p){throw p},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
47
47
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,c=!1,u;return{s:function(){n=n.call(e)},n:function(){var p=n.next();return a=p.done,p},e:function(p){c=!0,u=p},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(c)throw u}}}}function _1t(e,r){if(e){if(typeof e=="string")return VAe(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VAe(e,r)}}function VAe(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,o=new Array(r);n<r;n++)o[n]=e[n];return o}var T1t=Vk(),KAe=Eo(),zAe=KAe.erase,D1t=KAe.cursor,C1t=e=>[...T1t(e)].length;JAe.exports=function(e,r){if(!r)return zAe.line+D1t.to(0);let n=0,o=e.split(/\r?\n/);var i=w1t(o),a;try{for(i.s();!(a=i.n()).done;){let c=a.value;n+=1+Math.floor(Math.max(C1t(c)-1,0)/r)}}catch(c){i.e(c)}finally{i.f()}return zAe.lines(n)}});var PV=A((d1r,ZAe)=>{"use strict";var $D={arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",tick:"\u2714",cross:"\u2716",ellipsis:"\u2026",pointerSmall:"\u203A",line:"\u2500",pointer:"\u276F"},A1t={arrowUp:$D.arrowUp,arrowDown:$D.arrowDown,arrowLeft:$D.arrowLeft,arrowRight:$D.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221A",cross:"\xD7",ellipsis:"...",pointerSmall:"\xBB",line:"\u2500",pointer:">"},P1t=process.platform==="win32"?A1t:$D;ZAe.exports=P1t});var XAe=A((m1r,QAe)=>{"use strict";var Qv=xo(),Qy=PV(),OV=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"\u{1F603}".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}}),O1t=e=>OV[e]||OV.default,ND=Object.freeze({aborted:Qv.red(Qy.cross),done:Qv.green(Qy.tick),exited:Qv.yellow(Qy.cross),default:Qv.cyan("?")}),I1t=(e,r,n)=>r?ND.aborted:n?ND.exited:e?ND.done:ND.default,R1t=e=>Qv.gray(e?Qy.ellipsis:Qy.pointerSmall),F1t=(e,r)=>Qv.gray(e?r?Qy.pointerSmall:"+":Qy.line);QAe.exports={styles:OV,render:O1t,symbols:ND,symbol:I1t,delimiter:R1t,item:F1t}});var t2e=A((h1r,e2e)=>{"use strict";var M1t=Vk();e2e.exports=function(e,r){let n=String(M1t(e)||"").split(/\r?\n/);return r?n.map(o=>Math.ceil(o.length/r)).reduce((o,i)=>o+i):n.length}});var n2e=A((g1r,r2e)=>{"use strict";r2e.exports=(e,r={})=>{let n=Number.isSafeInteger(parseInt(r.margin))?new Array(parseInt(r.margin)).fill(" ").join(""):r.margin||"",o=r.width;return(e||"").split(/\r?\n/g).map(i=>i.split(/\s+/g).reduce((a,c)=>(c.length+n.length>=o||a[a.length-1].length+c.length+1<o?a[a.length-1]+=` ${c}`:a.push(`${n}${c}`),a),[n]).join(`
|
|
48
48
|
`)).join(`
|
|
49
49
|
`)}});var i2e=A((y1r,o2e)=>{"use strict";o2e.exports=(e,r,n)=>{n=n||r;let o=Math.min(r-n,e-Math.floor(n/2));o<0&&(o=0);let i=Math.min(o+n,r);return{startIndex:o,endIndex:i}}});var vl=A((x1r,s2e)=>{"use strict";s2e.exports={action:GAe(),clear:YAe(),style:XAe(),strip:Vk(),figures:PV(),lines:t2e(),wrap:n2e(),entriesToDisplay:i2e()}});var Sd=A((b1r,u2e)=>{"use strict";var a2e=require("readline"),k1t=vl(),$1t=k1t.action,N1t=require("events"),c2e=Eo(),L1t=c2e.beep,B1t=c2e.cursor,U1t=xo(),IV=class extends N1t{constructor(r={}){super(),this.firstRender=!0,this.in=r.stdin||process.stdin,this.out=r.stdout||process.stdout,this.onRender=(r.onRender||(()=>{})).bind(this);let n=a2e.createInterface({input:this.in,escapeCodeTimeout:50});a2e.emitKeypressEvents(this.in,n),this.in.isTTY&&this.in.setRawMode(!0);let o=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,i=(a,c)=>{let u=$1t(c,o);u===!1?this._&&this._(a,c):typeof this[u]=="function"?this[u](c):this.bell()};this.close=()=>{this.out.write(B1t.show),this.in.removeListener("keypress",i),this.in.isTTY&&this.in.setRawMode(!1),n.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",i)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(L1t)}render(){this.onRender(U1t),this.firstRender&&(this.firstRender=!1)}};u2e.exports=IV});var m2e=A((E1r,d2e)=>{"use strict";function l2e(e,r,n,o,i,a,c){try{var u=e[a](c),l=u.value}catch(p){n(p);return}u.done?r(l):Promise.resolve(l).then(o,i)}function p2e(e){return function(){var r=this,n=arguments;return new Promise(function(o,i){var a=e.apply(r,n);function c(l){l2e(a,o,i,c,u,"next",l)}function u(l){l2e(a,o,i,c,u,"throw",l)}c(void 0)})}}var zk=xo(),j1t=Sd(),f2e=Eo(),q1t=f2e.erase,LD=f2e.cursor,Kk=vl(),RV=Kk.style,FV=Kk.clear,G1t=Kk.lines,H1t=Kk.figures,MV=class extends j1t{constructor(r={}){super(r),this.transform=RV.render(r.style),this.scale=this.transform.scale,this.msg=r.message,this.initial=r.initial||"",this.validator=r.validate||(()=>!0),this.value="",this.errorMsg=r.error||"Please Enter A Valid Value",this.cursor=+!!this.initial,this.cursorOffset=0,this.clear=FV("",this.out.columns),this.render()}set value(r){!r&&this.initial?(this.placeholder=!0,this.rendered=zk.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(r)),this._value=r,this.fire()}get value(){return this._value}reset(){this.value="",this.cursor=+!!this.initial,this.cursorOffset=0,this.fire(),this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial,this.done=this.aborted=!0,this.error=!1,this.red=!1,this.fire(),this.render(),this.out.write(`
|
|
@@ -157,7 +157,7 @@ Filtered results for: ${this.inputValue?this.inputValue:Ad.gray("Enter something
|
|
|
157
157
|
`),a=a.replace(/\\r/g,"\r")),r[i]=a}return r}function j5t(e){e=e||{};let r=$8e(e);e.path=r;let n=vi.configDotenv(e);if(!n.parsed){let c=new Error(`MISSING_DATA: Cannot parse ${r} for an unknown reason`);throw c.code="MISSING_DATA",c}let o=k8e(e).split(","),i=o.length,a;for(let c=0;c<i;c++)try{let u=o[c].trim(),l=G5t(n,u);a=vi.decrypt(l.ciphertext,l.key);break}catch(u){if(c+1>=i)throw u}return vi.parse(a)}function q5t(e){console.error(`[dotenv@${hee}][WARN] ${e}`)}function RA(e){console.log(`[dotenv@${hee}][DEBUG] ${e}`)}function M8e(e){console.log(`[dotenv@${hee}] ${e}`)}function k8e(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function G5t(e,r){let n;try{n=new URL(r)}catch(u){if(u.code==="ERR_INVALID_URL"){let l=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw l.code="INVALID_DOTENV_KEY",l}throw u}let o=n.password;if(!o){let u=new Error("INVALID_DOTENV_KEY: Missing key part");throw u.code="INVALID_DOTENV_KEY",u}let i=n.searchParams.get("environment");if(!i){let u=new Error("INVALID_DOTENV_KEY: Missing environment part");throw u.code="INVALID_DOTENV_KEY",u}let a=`DOTENV_VAULT_${i.toUpperCase()}`,c=e.parsed[a];if(!c){let u=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${a} in your .env.vault file.`);throw u.code="NOT_FOUND_DOTENV_ENVIRONMENT",u}return{ciphertext:c,key:o}}function $8e(e){let r=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let n of e.path)mee.existsSync(n)&&(r=n.endsWith(".vault")?n:`${n}.vault`);else r=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else r=ML.resolve(process.cwd(),".env.vault");return mee.existsSync(r)?r:null}function F8e(e){return e[0]==="~"?ML.join(F5t.homedir(),e.slice(1)):e}function H5t(e){let r=xw(process.env.DOTENV_CONFIG_DEBUG||e&&e.debug),n=xw(process.env.DOTENV_CONFIG_QUIET||e&&e.quiet);(r||!n)&&M8e("Loading env from encrypted .env.vault");let o=vi._parseVault(e),i=process.env;return e&&e.processEnv!=null&&(i=e.processEnv),vi.populate(i,o,e),{parsed:o}}function W5t(e){let r=ML.resolve(process.cwd(),".env"),n="utf8",o=process.env;e&&e.processEnv!=null&&(o=e.processEnv);let i=xw(o.DOTENV_CONFIG_DEBUG||e&&e.debug),a=xw(o.DOTENV_CONFIG_QUIET||e&&e.quiet);e&&e.encoding?n=e.encoding:i&&RA("No encoding is specified. UTF-8 is used by default");let c=[r];if(e&&e.path)if(!Array.isArray(e.path))c=[F8e(e.path)];else{c=[];for(let f of e.path)c.push(F8e(f))}let u,l={};for(let f of c)try{let g=vi.parse(mee.readFileSync(f,{encoding:n}));vi.populate(l,g,e)}catch(g){i&&RA(`Failed to load ${f} ${g.message}`),u=g}let p=vi.populate(o,l,e);if(i=xw(o.DOTENV_CONFIG_DEBUG||i),a=xw(o.DOTENV_CONFIG_QUIET||a),i||!a){let f=Object.keys(p).length,g=[];for(let x of c)try{let b=ML.relative(process.cwd(),x);g.push(b)}catch(b){i&&RA(`Failed to load ${x} ${b.message}`),u=b}M8e(`injecting env (${f}) from ${g.join(",")} ${L5t(`-- tip: ${$5t()}`)}`)}return u?{parsed:l,error:u}:{parsed:l}}function V5t(e){if(k8e(e).length===0)return vi.configDotenv(e);let r=$8e(e);return r?vi._configVault(e):(q5t(`You set DOTENV_KEY but you are missing a .env.vault file at ${r}. Did you forget to build it?`),vi.configDotenv(e))}function z5t(e,r){let n=Buffer.from(r.slice(-64),"hex"),o=Buffer.from(e,"base64"),i=o.subarray(0,12),a=o.subarray(-16);o=o.subarray(12,-16);try{let c=M5t.createDecipheriv("aes-256-gcm",n,i);return c.setAuthTag(a),`${c.update(o)}${c.final()}`}catch(c){let u=c instanceof RangeError,l=c.message==="Invalid key length",p=c.message==="Unsupported state or unable to authenticate data";if(u||l){let f=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw f.code="INVALID_DOTENV_KEY",f}else if(p){let f=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw f.code="DECRYPTION_FAILED",f}else throw c}}function K5t(e,r,n={}){let o=!!(n&&n.debug),i=!!(n&&n.override),a={};if(typeof r!="object"){let c=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw c.code="OBJECT_REQUIRED",c}for(let c of Object.keys(r))Object.prototype.hasOwnProperty.call(e,c)?(i===!0&&(e[c]=r[c],a[c]=r[c]),o&&RA(i===!0?`"${c}" is already defined and WAS overwritten`:`"${c}" is already defined and was NOT overwritten`)):(e[c]=r[c],a[c]=r[c]);return a}var vi={configDotenv:W5t,_configVault:H5t,_parseVault:j5t,config:V5t,decrypt:z5t,parse:U5t,populate:K5t};im.exports.configDotenv=vi.configDotenv;im.exports._configVault=vi._configVault;im.exports._parseVault=vi._parseVault;im.exports.config=vi.config;im.exports.decrypt=vi.decrypt;im.exports.parse=vi.parse;im.exports.populate=vi.populate;im.exports=vi});var uZe=A((ybn,cZe)=>{"use strict";cZe.exports=e=>{let r=typeof e=="string"?`
|
|
158
158
|
`:10,n=typeof e=="string"?"\r":13;return e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e[e.length-1]===n&&(e=e.slice(0,e.length-1)),e}});var fZe=A((xbn,dO)=>{"use strict";var fO=require("path"),lZe=y9(),pZe=e=>{e={cwd:process.cwd(),path:process.env[lZe()],execPath:process.execPath,...e};let r,n=fO.resolve(e.cwd),o=[];for(;r!==n;)o.push(fO.join(n,"node_modules/.bin")),r=n,n=fO.resolve(n,"..");let i=fO.resolve(e.cwd,e.execPath,"..");return o.push(i),o.concat(e.path).join(fO.delimiter)};dO.exports=pZe;dO.exports.default=pZe;dO.exports.env=e=>{e={env:process.env,...e};let r={...e.env},n=lZe({env:r});return e.path=r[n],r[n]=dO.exports(e),r}});var mZe=A((bbn,_ue)=>{"use strict";var dZe=(e,r)=>{for(let n of Reflect.ownKeys(r))Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n));return e};_ue.exports=dZe;_ue.exports.default=dZe});var gZe=A((Ebn,e5)=>{"use strict";var mQt=mZe(),X8=new WeakMap,hZe=(e,r={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let n,o=0,i=e.displayName||e.name||"<anonymous>",a=function(...c){if(X8.set(a,++o),o===1)n=e.apply(this,c),e=null;else if(r.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return n};return mQt(a,e),X8.set(a,o),a};e5.exports=hZe;e5.exports.default=hZe;e5.exports.callCount=e=>{if(!X8.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return X8.get(e)}});var yZe=A(t5=>{"use strict";Object.defineProperty(t5,"__esModule",{value:!0});t5.SIGNALS=void 0;var hQt=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];t5.SIGNALS=hQt});var Tue=A(r1=>{"use strict";Object.defineProperty(r1,"__esModule",{value:!0});r1.SIGRTMAX=r1.getRealtimeSignals=void 0;var gQt=function(){let e=bZe-xZe+1;return Array.from({length:e},yQt)};r1.getRealtimeSignals=gQt;var yQt=function(e,r){return{name:`SIGRT${r+1}`,number:xZe+r,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},xZe=34,bZe=64;r1.SIGRTMAX=bZe});var EZe=A(r5=>{"use strict";Object.defineProperty(r5,"__esModule",{value:!0});r5.getSignals=void 0;var xQt=require("os"),bQt=yZe(),EQt=Tue(),vQt=function(){let e=(0,EQt.getRealtimeSignals)();return[...bQt.SIGNALS,...e].map(SQt)};r5.getSignals=vQt;var SQt=function({name:e,number:r,description:n,action:o,forced:i=!1,standard:a}){let{signals:{[e]:c}}=xQt.constants,u=c!==void 0;return{name:e,number:u?c:r,description:n,supported:u,action:o,forced:i,standard:a}}});var SZe=A(n1=>{"use strict";Object.defineProperty(n1,"__esModule",{value:!0});n1.signalsByNumber=n1.signalsByName=void 0;var wQt=require("os"),vZe=EZe(),_Qt=Tue(),TQt=function(){return(0,vZe.getSignals)().reduce(DQt,{})},DQt=function(e,{name:r,number:n,description:o,supported:i,action:a,forced:c,standard:u}){return{...e,[r]:{name:r,number:n,description:o,supported:i,action:a,forced:c,standard:u}}},CQt=TQt();n1.signalsByName=CQt;var AQt=function(){let e=(0,vZe.getSignals)(),r=_Qt.SIGRTMAX+1,n=Array.from({length:r},(o,i)=>PQt(i,e));return Object.assign({},...n)},PQt=function(e,r){let n=OQt(e,r);if(n===void 0)return{};let{name:o,description:i,supported:a,action:c,forced:u,standard:l}=n;return{[e]:{name:o,number:e,description:i,supported:a,action:c,forced:u,standard:l}}},OQt=function(e,r){let n=r.find(({name:o})=>wQt.constants.signals[o]===e);return n!==void 0?n:r.find(o=>o.number===e)},IQt=AQt();n1.signalsByNumber=IQt});var _Ze=A((Tbn,wZe)=>{"use strict";var{signalsByName:RQt}=SZe(),FQt=({timedOut:e,timeout:r,errorCode:n,signal:o,signalDescription:i,exitCode:a,isCanceled:c})=>e?`timed out after ${r} milliseconds`:c?"was canceled":n!==void 0?`failed with ${n}`:o!==void 0?`was killed with ${o} (${i})`:a!==void 0?`failed with exit code ${a}`:"failed",MQt=({stdout:e,stderr:r,all:n,error:o,signal:i,exitCode:a,command:c,escapedCommand:u,timedOut:l,isCanceled:p,killed:f,parsed:{options:{timeout:g}}})=>{a=a===null?void 0:a,i=i===null?void 0:i;let x=i===void 0?void 0:RQt[i].description,b=o&&o.code,S=`Command ${FQt({timedOut:l,timeout:g,errorCode:b,signal:i,signalDescription:x,exitCode:a,isCanceled:p})}: ${c}`,_=Object.prototype.toString.call(o)==="[object Error]",D=_?`${S}
|
|
159
159
|
${o.message}`:S,O=[D,r,e].filter(Boolean).join(`
|
|
160
|
-
`);return _?(o.originalMessage=o.message,o.message=O):o=new Error(O),o.shortMessage=D,o.command=c,o.escapedCommand=u,o.exitCode=a,o.signal=i,o.signalDescription=x,o.stdout=e,o.stderr=r,n!==void 0&&(o.all=n),"bufferedData"in o&&delete o.bufferedData,o.failed=!0,o.timedOut=!!l,o.isCanceled=p,o.killed=f&&!l,o};wZe.exports=MQt});var DZe=A((Dbn,Due)=>{"use strict";var n5=["stdin","stdout","stderr"],kQt=e=>n5.some(r=>e[r]!==void 0),TZe=e=>{if(!e)return;let{stdio:r}=e;if(r===void 0)return n5.map(o=>e[o]);if(kQt(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${n5.map(o=>`\`${o}\``).join(", ")}`);if(typeof r=="string")return r;if(!Array.isArray(r))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof r}\``);let n=Math.max(r.length,n5.length);return Array.from({length:n},(o,i)=>r[i])};Due.exports=TZe;Due.exports.node=e=>{let r=TZe(e);return r==="ipc"?"ipc":r===void 0||typeof r=="string"?[r,r,r,"ipc"]:r.includes("ipc")?r:[...r,"ipc"]}});var CZe=A((Cbn,o5)=>{"use strict";o5.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&o5.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&o5.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var RZe=A((Abn,s1)=>{"use strict";var fo=global.process,cE=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};cE(fo)?(AZe=require("assert"),o1=CZe(),PZe=/^win/i.test(fo.platform),mO=require("events"),typeof mO!="function"&&(mO=mO.EventEmitter),fo.__signal_exit_emitter__?Ki=fo.__signal_exit_emitter__:(Ki=fo.__signal_exit_emitter__=new mO,Ki.count=0,Ki.emitted={}),Ki.infinite||(Ki.setMaxListeners(1/0),Ki.infinite=!0),s1.exports=function(e,r){if(!cE(global.process))return function(){};AZe.equal(typeof e,"function","a callback must be provided for exit handler"),i1===!1&&Cue();var n="exit";r&&r.alwaysLast&&(n="afterexit");var o=function(){Ki.removeListener(n,e),Ki.listeners("exit").length===0&&Ki.listeners("afterexit").length===0&&i5()};return Ki.on(n,e),o},i5=function(){!i1||!cE(global.process)||(i1=!1,o1.forEach(function(r){try{fo.removeListener(r,s5[r])}catch{}}),fo.emit=a5,fo.reallyExit=Aue,Ki.count-=1)},s1.exports.unload=i5,uE=function(r,n,o){Ki.emitted[r]||(Ki.emitted[r]=!0,Ki.emit(r,n,o))},s5={},o1.forEach(function(e){s5[e]=function(){if(cE(global.process)){var n=fo.listeners(e);n.length===Ki.count&&(i5(),uE("exit",null,e),uE("afterexit",null,e),PZe&&e==="SIGHUP"&&(e="SIGINT"),fo.kill(fo.pid,e))}}}),s1.exports.signals=function(){return o1},i1=!1,Cue=function(){i1||!cE(global.process)||(i1=!0,Ki.count+=1,o1=o1.filter(function(r){try{return fo.on(r,s5[r]),!0}catch{return!1}}),fo.emit=IZe,fo.reallyExit=OZe)},s1.exports.load=Cue,Aue=fo.reallyExit,OZe=function(r){cE(global.process)&&(fo.exitCode=r||0,uE("exit",fo.exitCode,null),uE("afterexit",fo.exitCode,null),Aue.call(fo,fo.exitCode))},a5=fo.emit,IZe=function(r,n){if(r==="exit"&&cE(global.process)){n!==void 0&&(fo.exitCode=n);var o=a5.apply(this,arguments);return uE("exit",fo.exitCode,null),uE("afterexit",fo.exitCode,null),o}else return a5.apply(this,arguments)}):s1.exports=function(){return function(){}};var AZe,o1,PZe,mO,Ki,i5,uE,s5,i1,Cue,Aue,OZe,a5,IZe});var MZe=A((Pbn,FZe)=>{"use strict";var $Qt=require("os"),NQt=RZe(),LQt=1e3*5,BQt=(e,r="SIGTERM",n={})=>{let o=e(r);return UQt(e,r,n,o),o},UQt=(e,r,n,o)=>{if(!jQt(r,n,o))return;let i=GQt(n),a=setTimeout(()=>{e("SIGKILL")},i);a.unref&&a.unref()},jQt=(e,{forceKillAfterTimeout:r},n)=>qQt(e)&&r!==!1&&n,qQt=e=>e===$Qt.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",GQt=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return LQt;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},HQt=(e,r)=>{e.kill()&&(r.isCanceled=!0)},WQt=(e,r,n)=>{e.kill(r),n(Object.assign(new Error("Timed out"),{timedOut:!0,signal:r}))},VQt=(e,{timeout:r,killSignal:n="SIGTERM"},o)=>{if(r===0||r===void 0)return o;let i,a=new Promise((u,l)=>{i=setTimeout(()=>{WQt(e,n,l)},r)}),c=o.finally(()=>{clearTimeout(i)});return Promise.race([a,c])},zQt=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},KQt=async(e,{cleanup:r,detached:n},o)=>{if(!r||n)return o;let i=NQt(()=>{e.kill()});return o.finally(()=>{i()})};FZe.exports={spawnedKill:BQt,spawnedCancel:HQt,setupTimeout:VQt,validateTimeout:zQt,setExitHandler:KQt}});var $Ze=A((Obn,kZe)=>{"use strict";var{PassThrough:JQt}=require("stream");kZe.exports=e=>{e={...e};let{array:r}=e,{encoding:n}=e,o=n==="buffer",i=!1;r?i=!(n||o):n=n||"utf8",o&&(n=null);let a=new JQt({objectMode:i});n&&a.setEncoding(n);let c=0,u=[];return a.on("data",l=>{u.push(l),i?c=u.length:c+=l.length}),a.getBufferedValue=()=>r?u:o?Buffer.concat(u,c):u.join(""),a.getBufferedLength=()=>c,a}});var NZe=A((Ibn,hO)=>{"use strict";var{constants:YQt}=require("buffer"),ZQt=require("stream"),{promisify:QQt}=require("util"),XQt=$Ze(),eXt=QQt(ZQt.pipeline),c5=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Pue(e,r){if(!e)throw new Error("Expected a stream");r={maxBuffer:1/0,...r};let{maxBuffer:n}=r,o=XQt(r);return await new Promise((i,a)=>{let c=u=>{u&&o.getBufferedLength()<=YQt.MAX_LENGTH&&(u.bufferedData=o.getBufferedValue()),a(u)};(async()=>{try{await eXt(e,o),i()}catch(u){c(u)}})(),o.on("data",()=>{o.getBufferedLength()>n&&c(new c5)})}),o.getBufferedValue()}hO.exports=Pue;hO.exports.buffer=(e,r)=>Pue(e,{...r,encoding:"buffer"});hO.exports.array=(e,r)=>Pue(e,{...r,array:!0});hO.exports.MaxBufferError=c5});var jZe=A((Rbn,UZe)=>{"use strict";var BZe=wF(),LZe=NZe(),tXt=q9(),rXt=(e,r)=>{r===void 0||e.stdin===void 0||(BZe(r)?r.pipe(e.stdin):e.stdin.end(r))},nXt=(e,{all:r})=>{if(!r||!e.stdout&&!e.stderr)return;let n=tXt();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n},Oue=async(e,r)=>{if(e){e.destroy();try{return await r}catch(n){return n.bufferedData}}},Iue=(e,{encoding:r,buffer:n,maxBuffer:o})=>{if(!(!e||!n))return r?LZe(e,{encoding:r,maxBuffer:o}):LZe.buffer(e,{maxBuffer:o})},oXt=async({stdout:e,stderr:r,all:n},{encoding:o,buffer:i,maxBuffer:a},c)=>{let u=Iue(e,{encoding:o,buffer:i,maxBuffer:a}),l=Iue(r,{encoding:o,buffer:i,maxBuffer:a}),p=Iue(n,{encoding:o,buffer:i,maxBuffer:a*2});try{return await Promise.all([c,u,l,p])}catch(f){return Promise.all([{error:f,signal:f.signal,timedOut:f.timedOut},Oue(e,u),Oue(r,l),Oue(n,p)])}},iXt=({input:e})=>{if(BZe(e))throw new TypeError("The `input` option cannot be a stream in sync mode")};UZe.exports={handleInput:rXt,makeAllStream:nXt,getSpawnedResult:oXt,validateInputSync:iXt}});var GZe=A((Fbn,qZe)=>{"use strict";var sXt=(async()=>{})().constructor.prototype,aXt=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(sXt,e)]),cXt=(e,r)=>{for(let[n,o]of aXt){let i=typeof r=="function"?(...a)=>Reflect.apply(o.value,r(),a):o.value.bind(r);Reflect.defineProperty(e,n,{...o,value:i})}return e},uXt=e=>new Promise((r,n)=>{e.on("exit",(o,i)=>{r({exitCode:o,signal:i})}),e.on("error",o=>{n(o)}),e.stdin&&e.stdin.on("error",o=>{n(o)})});qZe.exports={mergePromise:cXt,getSpawnedPromise:uXt}});var VZe=A((Mbn,WZe)=>{"use strict";var HZe=(e,r=[])=>Array.isArray(r)?[e,...r]:[e],lXt=/^[\w.-]+$/,pXt=/"/g,fXt=e=>typeof e!="string"||lXt.test(e)?e:`"${e.replace(pXt,'\\"')}"`,dXt=(e,r)=>HZe(e,r).join(" "),mXt=(e,r)=>HZe(e,r).map(n=>fXt(n)).join(" "),hXt=/ +/g,gXt=e=>{let r=[];for(let n of e.trim().split(hXt)){let o=r[r.length-1];o&&o.endsWith("\\")?r[r.length-1]=`${o.slice(0,-1)} ${n}`:r.push(n)}return r};WZe.exports={joinCommand:dXt,getEscapedCommand:mXt,parseCommand:gXt}});var p5=A((kbn,a1)=>{"use strict";var yXt=require("path"),Rue=require("child_process"),xXt=uR(),bXt=uZe(),EXt=fZe(),vXt=gZe(),u5=_Ze(),KZe=DZe(),{spawnedKill:SXt,spawnedCancel:wXt,setupTimeout:_Xt,validateTimeout:TXt,setExitHandler:DXt}=MZe(),{handleInput:CXt,getSpawnedResult:AXt,makeAllStream:PXt,validateInputSync:OXt}=jZe(),{mergePromise:zZe,getSpawnedPromise:IXt}=GZe(),{joinCommand:JZe,parseCommand:YZe,getEscapedCommand:ZZe}=VZe(),RXt=1e3*1e3*100,FXt=({env:e,extendEnv:r,preferLocal:n,localDir:o,execPath:i})=>{let a=r?{...process.env,...e}:e;return n?EXt.env({env:a,cwd:o,execPath:i}):a},QZe=(e,r,n={})=>{let o=xXt._parse(e,r,n);return e=o.command,r=o.args,n=o.options,n={maxBuffer:RXt,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:n.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...n},n.env=FXt(n),n.stdio=KZe(n),process.platform==="win32"&&yXt.basename(e,".exe")==="cmd"&&r.unshift("/q"),{file:e,args:r,options:n,parsed:o}},gO=(e,r,n)=>typeof r!="string"&&!Buffer.isBuffer(r)?n===void 0?void 0:"":e.stripFinalNewline?bXt(r):r,l5=(e,r,n)=>{let o=QZe(e,r,n),i=JZe(e,r),a=ZZe(e,r);TXt(o.options);let c;try{c=Rue.spawn(o.file,o.args,o.options)}catch(b){let E=new Rue.ChildProcess,S=Promise.reject(u5({error:b,stdout:"",stderr:"",all:"",command:i,escapedCommand:a,parsed:o,timedOut:!1,isCanceled:!1,killed:!1}));return zZe(E,S)}let u=IXt(c),l=_Xt(c,o.options,u),p=DXt(c,o.options,l),f={isCanceled:!1};c.kill=SXt.bind(null,c.kill.bind(c)),c.cancel=wXt.bind(null,c,f);let x=vXt(async()=>{let[{error:b,exitCode:E,signal:S,timedOut:_},D,O,C]=await AXt(c,o.options,p),R=gO(o.options,D),I=gO(o.options,O),k=gO(o.options,C);if(b||E!==0||S!==null){let j=u5({error:b,exitCode:E,signal:S,stdout:R,stderr:I,all:k,command:i,escapedCommand:a,parsed:o,timedOut:_,isCanceled:f.isCanceled,killed:c.killed});if(!o.options.reject)return j;throw j}return{command:i,escapedCommand:a,exitCode:0,stdout:R,stderr:I,all:k,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return CXt(c,o.options.input),c.all=PXt(c,o.options),zZe(c,x)};a1.exports=l5;a1.exports.sync=(e,r,n)=>{let o=QZe(e,r,n),i=JZe(e,r),a=ZZe(e,r);OXt(o.options);let c;try{c=Rue.spawnSync(o.file,o.args,o.options)}catch(p){throw u5({error:p,stdout:"",stderr:"",all:"",command:i,escapedCommand:a,parsed:o,timedOut:!1,isCanceled:!1,killed:!1})}let u=gO(o.options,c.stdout,c.error),l=gO(o.options,c.stderr,c.error);if(c.error||c.status!==0||c.signal!==null){let p=u5({stdout:u,stderr:l,error:c.error,signal:c.signal,exitCode:c.status,command:i,escapedCommand:a,parsed:o,timedOut:c.error&&c.error.code==="ETIMEDOUT",isCanceled:!1,killed:c.signal!==null});if(!o.options.reject)return p;throw p}return{command:i,escapedCommand:a,exitCode:0,stdout:u,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};a1.exports.command=(e,r)=>{let[n,...o]=YZe(e);return l5(n,o,r)};a1.exports.commandSync=(e,r)=>{let[n,...o]=YZe(e);return l5.sync(n,o,r)};a1.exports.node=(e,r,n={})=>{r&&!Array.isArray(r)&&typeof r=="object"&&(n=r,r=[]);let o=KZe.node(n),i=process.execArgv.filter(u=>!u.startsWith("--inspect")),{nodePath:a=process.execPath,nodeOptions:c=i}=n;return l5(a,[...c,e,...Array.isArray(r)?r:[]],{...n,stdin:void 0,stdout:void 0,stderr:void 0,stdio:o,shell:!1})}});var hQe=A((Gbn,mQe)=>{"use strict";mQe.exports=(e,r,n)=>{let o=i=>Object.defineProperty(e,r,{value:i,enumerable:!0,writable:!0});return Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get(){let i=n();return o(i),i},set(i){o(i)}}),e}});var Uue=A((Hbn,vQe)=>{"use strict";var ner=require("path"),oer=require("child_process"),{promises:h5,constants:EQe}=require("fs"),m5=jK(),ier=P$(),Nue=hQe(),gQe=ner.join(__dirname,"xdg-open"),{platform:c1,arch:yQe}=process,ser=()=>{try{return h5.statSync("/run/.containerenv"),!0}catch{return!1}},$ue;function aer(){return $ue===void 0&&($ue=ser()||ier()),$ue}var cer=(()=>{let e="/mnt/",r;return async function(){if(r)return r;let n="/etc/wsl.conf",o=!1;try{await h5.access(n,EQe.F_OK),o=!0}catch{}if(!o)return e;let i=await h5.readFile(n,{encoding:"utf8"}),a=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(i);return a?(r=a.groups.mountPoint.trim(),r=r.endsWith("/")?r:`${r}/`,r):e}})(),xQe=async(e,r)=>{let n;for(let o of e)try{return await r(o)}catch(i){n=i}throw n},g5=async e=>{if(e={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...e},Array.isArray(e.app))return xQe(e.app,u=>g5({...e,app:u}));let{name:r,arguments:n=[]}=e.app||{};if(n=[...n],Array.isArray(r))return xQe(r,u=>g5({...e,app:{name:u,arguments:n}}));let o,i=[],a={};if(c1==="darwin")o="open",e.wait&&i.push("--wait-apps"),e.background&&i.push("--background"),e.newInstance&&i.push("--new"),r&&i.push("-a",r);else if(c1==="win32"||m5&&!aer()&&!r){let u=await cer();o=m5?`${u}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`,i.push("-NoProfile","-NonInteractive","\u2013ExecutionPolicy","Bypass","-EncodedCommand"),m5||(a.windowsVerbatimArguments=!0);let l=["Start"];e.wait&&l.push("-Wait"),r?(l.push(`"\`"${r}\`""`,"-ArgumentList"),e.target&&n.unshift(e.target)):e.target&&l.push(`"${e.target}"`),n.length>0&&(n=n.map(p=>`"\`"${p}\`""`),l.push(n.join(","))),e.target=Buffer.from(l.join(" "),"utf16le").toString("base64")}else{if(r)o=r;else{let u=!__dirname||__dirname==="/",l=!1;try{await h5.access(gQe,EQe.X_OK),l=!0}catch{}o=process.versions.electron||c1==="android"||u||!l?"xdg-open":gQe}n.length>0&&i.push(...n),e.wait||(a.stdio="ignore",a.detached=!0)}e.target&&i.push(e.target),c1==="darwin"&&n.length>0&&i.push("--args",...n);let c=oer.spawn(o,i,a);return e.wait?new Promise((u,l)=>{c.once("error",l),c.once("close",p=>{if(!e.allowNonzeroExitCode&&p>0){l(new Error(`Exited with code ${p}`));return}u(c)})}):(c.unref(),c)},Lue=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a `target`");return g5({...r,target:e})},uer=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a `name`");let{arguments:n=[]}=r||{};if(n!=null&&!Array.isArray(n))throw new TypeError("Expected `appArguments` as Array type");return g5({...r,app:{name:e,arguments:n}})};function bQe(e){if(typeof e=="string"||Array.isArray(e))return e;let{[yQe]:r}=e;if(!r)throw new Error(`${yQe} is not supported`);return r}function Bue({[c1]:e},{wsl:r}){if(r&&m5)return bQe(r);if(!e)throw new Error(`${c1} is not supported`);return bQe(e)}var y5={};Nue(y5,"chrome",()=>Bue({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));Nue(y5,"firefox",()=>Bue({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));Nue(y5,"edge",()=>Bue({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));Lue.apps=y5;Lue.openApp=uer;vQe.exports=Lue});var SQe=A(x5=>{"use strict";x5.__esModule=!0;x5.Adapt=void 0;function ler(e){return jue(e)==="boolean"}function per(e){return jue(e)==="object"}function fer(e){return jue(e)==="string"}function jue(e){return typeof e}function der(e){var r=e.meta,n=e.path,o=e.xdg,i=function(){function a(c){c===void 0&&(c={});var u,l,p;function f(C){return C===void 0&&(C={}),new a(C)}var g=per(c)?c:{name:c},x=(u=g.suffix)!==null&&u!==void 0?u:"",b=(l=g.isolated)!==null&&l!==void 0?l:!0,E=[g.name,r.pkgMainFilename(),r.mainFilename()],S="$eval",_=n.parse(((p=E.find(function(C){return fer(C)}))!==null&&p!==void 0?p:S)+x).name;f.$name=function(){return _},f.$isolated=function(){return b};function D(C){var R;C=C??{isolated:b};var I=ler(C)?C:(R=C.isolated)!==null&&R!==void 0?R:b;return I}function O(C){return D(C)?_:""}return f.cache=function(R){return n.join(o.cache(),O(R))},f.config=function(R){return n.join(o.config(),O(R))},f.data=function(R){return n.join(o.data(),O(R))},f.runtime=function(R){return o.runtime()?n.join(o.runtime(),O(R)):void 0},f.state=function(R){return n.join(o.state(),O(R))},f.configDirs=function(R){return o.configDirs().map(function(I){return n.join(I,O(R))})},f.dataDirs=function(R){return o.dataDirs().map(function(I){return n.join(I,O(R))})},f}return a}();return{XDGAppPaths:new i}}x5.Adapt=der});var _Qe=A(u1=>{"use strict";var wQe=u1&&u1.__spreadArray||function(e,r){for(var n=0,o=r.length,i=e.length;n<o;n++,i++)e[i]=r[n];return e};u1.__esModule=!0;u1.Adapt=void 0;function mer(e){var r=e.env,n=e.osPaths,o=e.path,i=/^darwin$/i.test(e.process.platform),a=/^win/i.test(e.process.platform);function c(){return n.home()||n.temp()}function u(x,b){return x||o.join.apply(o,b)}var l=function(){var x=function(){return u(r.get("XDG_CACHE_HOME"),[c(),".cache"])},b=function(){return u(r.get("XDG_CONFIG_HOME"),[c(),".config"])},E=function(){return u(r.get("XDG_DATA_HOME"),[c(),".local","share"])},S=function(){return r.get("XDG_RUNTIME_DIR")||void 0},_=function(){return u(r.get("XDG_STATE_HOME"),[c(),".local","state"])};return{cache:x,config:b,data:E,runtime:S,state:_}},p=function(){var x=function(){return u(r.get("XDG_CACHE_HOME"),[c(),"Library","Caches"])},b=function(){return u(r.get("XDG_CONFIG_HOME"),[c(),"Library","Preferences"])},E=function(){return u(r.get("XDG_DATA_HOME"),[c(),"Library","Application Support"])},S=function(){return r.get("XDG_RUNTIME_DIR")||void 0},_=function(){return u(r.get("XDG_STATE_HOME"),[c(),"Library","State"])};return{cache:x,config:b,data:E,runtime:S,state:_}},f=function(){function x(){return u(r.get("APPDATA"),[c(),"AppData","Roaming"])}function b(){return u(r.get("LOCALAPPDATA"),[c(),"AppData","Local"])}var E=function(){return u(r.get("XDG_CACHE_HOME"),[b(),"xdg.cache"])},S=function(){return u(r.get("XDG_CONFIG_HOME"),[x(),"xdg.config"])},_=function(){return u(r.get("XDG_DATA_HOME"),[x(),"xdg.data"])},D=function(){return r.get("XDG_RUNTIME_DIR")||void 0},O=function(){return u(r.get("XDG_STATE_HOME"),[b(),"xdg.state"])};return{cache:E,config:S,data:_,runtime:D,state:O}},g=function(){function x(){function b(){return new x}var E=i?p():a?f():l();return b.cache=E.cache,b.config=E.config,b.data=E.data,b.runtime=E.runtime,b.state=E.state,b.configDirs=function(){var _=r.get("XDG_CONFIG_DIRS");return wQe([E.config()],_?_.split(o.delimiter):[])},b.dataDirs=function(){var _=r.get("XDG_DATA_DIRS");return wQe([E.data()],_?_.split(o.delimiter):[])},b}return x}();return{XDG:new g}}u1.Adapt=mer});var TQe=A(l1=>{"use strict";var her=l1&&l1.__spreadArray||function(e,r){for(var n=0,o=r.length,i=e.length;n<o;n++,i++)e[i]=r[n];return e};l1.__esModule=!0;l1.Adapt=void 0;function que(e){return!e}function ger(e){var r=e.env,n=e.os,o=e.path,i=/^win/i.test(e.process.platform);function a(p){return p?e.path.normalize(e.path.join(p,".")):void 0}function c(){var p=function(){return a((typeof n.homedir=="function"?n.homedir():void 0)||r.get("HOME"))},f=function(){var g=[typeof n.homedir=="function"?n.homedir():void 0,r.get("USERPROFILE"),r.get("HOME"),r.get("HOMEDRIVE")||r.get("HOMEPATH")?o.join(r.get("HOMEDRIVE")||"",r.get("HOMEPATH")||""):void 0];return a(g.find(function(x){return!que(x)}))};return i?f():p()}function u(){function p(x,b){return x?o.join.apply(o,her([x],b)):void 0}function f(){var x="/tmp",b=[typeof n.tmpdir=="function"?n.tmpdir():void 0,r.get("TMPDIR"),r.get("TEMP"),r.get("TMP")];return a(b.find(function(E){return!que(E)}))||x}function g(){var x="C:\\Temp",b=[typeof n.tmpdir=="function"?n.tmpdir:function(){},function(){return r.get("TEMP")},function(){return r.get("TMP")},function(){return p(r.get("LOCALAPPDATA"),["Temp"])},function(){return p(c(),["AppData","Local","Temp"])},function(){return p(r.get("ALLUSERSPROFILE"),["Temp"])},function(){return p(r.get("SystemRoot"),["Temp"])},function(){return p(r.get("windir"),["Temp"])},function(){return p(r.get("SystemDrive"),["\\","Temp"])}],E=b.find(function(S){return S&&!que(S())});return E&&a(E())||x}return i?g():f()}var l=function(){function p(){function f(){return new p}return f.home=c,f.temp=u,f}return p}();return{OSPaths:new l}}l1.Adapt=ger});var CQe=A(Bf=>{"use strict";var yer=Bf&&Bf.__createBinding||(Object.create?function(e,r,n,o){o===void 0&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return r[n]}})}:function(e,r,n,o){o===void 0&&(o=n),e[o]=r[n]}),xer=Bf&&Bf.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),DQe=Bf&&Bf.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&yer(r,e,n);return xer(r,e),r};Bf.__esModule=!0;Bf.adapter=void 0;var ber=DQe(require("os")),Eer=DQe(require("path"));Bf.adapter={atImportPermissions:{env:!0},env:{get:function(e){return process.env[e]}},os:ber,path:Eer,process}});var PQe=A((Jbn,AQe)=>{"use strict";var ver=TQe(),Ser=CQe();AQe.exports=ver.Adapt(Ser.adapter).OSPaths});var OQe=A(Xu=>{"use strict";var wer=Xu&&Xu.__createBinding||(Object.create?function(e,r,n,o){o===void 0&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return r[n]}})}:function(e,r,n,o){o===void 0&&(o=n),e[o]=r[n]}),_er=Xu&&Xu.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),Ter=Xu&&Xu.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&wer(r,e,n);return _er(r,e),r},Der=Xu&&Xu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Xu.__esModule=!0;Xu.adapter=void 0;var Cer=Ter(require("path")),Aer=Der(PQe());Xu.adapter={atImportPermissions:{env:!0},env:{get:function(e){return process.env[e]}},osPaths:Aer.default,path:Cer,process}});var RQe=A((Zbn,IQe)=>{"use strict";var Per=_Qe(),Oer=OQe();IQe.exports=Per.Adapt(Oer.adapter).XDG});var FQe=A(el=>{"use strict";var Ier=el&&el.__createBinding||(Object.create?function(e,r,n,o){o===void 0&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return r[n]}})}:function(e,r,n,o){o===void 0&&(o=n),e[o]=r[n]}),Rer=el&&el.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),Fer=el&&el.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Ier(r,e,n);return Rer(r,e),r},Mer=el&&el.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};el.__esModule=!0;el.adapter=void 0;var ker=Fer(require("path")),$er=Mer(RQe());el.adapter={atImportPermissions:{env:!0,read:!0},meta:{mainFilename:function(){var e=typeof require<"u"&&require!==null&&require.main?require.main:{filename:void 0},r=e.filename,n=(r!==process.execArgv[0]?r:void 0)||(typeof process._eval>"u"?process.argv[1]:void 0);return n},pkgMainFilename:function(){return process.pkg?process.execPath:void 0}},path:ker,process,xdg:$er.default}});var Gue=A((Xbn,MQe)=>{"use strict";var Ner=SQe(),Ler=FQe();MQe.exports=Ner.Adapt(Ler.adapter).XDGAppPaths});var R0=A((aEn,jer)=>{jer.exports={version:"7.9.0",name:"prisma",description:"Prisma is an open-source database toolkit. It includes a JavaScript/TypeScript ORM for Node.js, migrations and a modern GUI to view and edit the data in your database. You can use Prisma in new projects or add it to an existing one.",keywords:["CLI","ORM","Prisma","Prisma CLI","prisma2","database","db","JavaScript","JS","TypeScript","TS","SQL","SQLite","pg","Postgres","PostgreSQL","CockroachDB","MySQL","MariaDB","MSSQL","SQL Server","SQLServer","MongoDB","MCP"],main:"build/index.js",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/cli"},homepage:"https://www.prisma.io",author:"Tim Suchanek <suchanek@prisma.io>",bugs:"https://github.com/prisma/prisma/issues",license:"Apache-2.0",engines:{node:"^20.19 || ^22.12 || >=24.0"},prisma:{prismaCommit:"a6d01554528e016bea1467a072776b0e2b94dcba"},files:["README.md","build","config.js","config.d.ts","dist/cli/src/types.d.ts","install","runtime/*.js","runtime/*.d.ts","runtime/utils","runtime/dist","runtime/llhttp","prisma-client","preinstall","scripts/preinstall-entry.js"],pkg:{assets:["build/**/*","runtime/**/*","prisma-client/**/*","node_modules/@prisma/engines/**/*","node_modules/@prisma/engines/*"]},bin:{prisma:"build/index.js"},types:"./dist/cli/src/types.d.ts",exports:{"./package.json":"./package.json",".":{require:{types:"./dist/cli/src/types.d.ts",default:"./build/types.js"},import:{types:"./dist/cli/src/types.d.ts",default:"./build/types.js"},default:"./build/types.js"},"./config":{require:{types:"./config.d.ts",default:"./config.js"},import:{types:"./config.d.ts",default:"./config.js"},default:"./config.js"},"./build/index.js":{require:{types:"./dist/cli/src/types.d.ts",default:"./build/index.js"},default:"./build/index.js"}},devDependencies:{"@bomb.sh/tab":"0.0.19","@inquirer/prompts":"7.3.3","@libsql/client":"0.8.1","@modelcontextprotocol/sdk":"1.13.2","@opentelemetry/api":"1.9.0","@opentelemetry/context-async-hooks":"2.1.0","@opentelemetry/sdk-trace-base":"2.1.0","@prisma/adapter-libsql":"workspace:*","@prisma/client":"workspace:*","@prisma/client-generator-registry":"workspace:*","@prisma/credentials-store":"workspace:*","@prisma/debug":"workspace:*","@prisma/dmmf":"workspace:*","@prisma/driver-adapter-utils":"workspace:*","@prisma/fetch-engine":"workspace:*","@prisma/generator":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/internals":"workspace:*","@prisma/management-api-sdk":"1.12.0","@prisma/migrate":"workspace:*","@swc/core":"1.11.5","@swc/jest":"0.2.37","@types/better-sqlite3":"7.6.12","@types/fs-extra":"11.0.4","@types/jest":"29.5.14","@types/node":"~20.19.24","@types/react":"19.2.14","@types/react-dom":"19.2.3","async-listen":"3.1.0","better-sqlite3":"^11.10.0","checkpoint-client":"1.1.33",chokidar:"4.0.3",dotenv:"17.2.3",effect:"3.20.0","env-paths":"2.2.1",execa:"5.1.1","fs-extra":"11.3.0","get-port-please":"3.2.0","get-tsconfig":"4.10.0",jest:"29.7.0","jest-junit":"16.0.0",kleur:"4.1.5","line-replace":"2.0.1","log-update":"6.1.0","node-fetch":"3.3.2","npm-packlist":"5.1.3",ohash:"2.0.11",open:"8.4.2","openapi-fetch":"0.15.0","openapi-typescript":"7.10.1",ora:"8.2.0","package-up":"5.0.0",pathe:"2.0.3",react:"19.2.0","react-dom":"19.2.0","resolve-pkg":"2.0.0","std-env":"3.10.0","strip-ansi":"7.1.0","ts-pattern":"5.6.2",typescript:"5.4.5","xdg-app-paths":"8.3.0",zod:"3.24.2"},scripts:{prisma:"tsx src/bin.ts",platform:"tsx src/bin.ts platform --early-access",pm:"tsx src/bin.ts platform --early-access",dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts","generate-api-client":"openapi-typescript https://api.prisma.io/v1/doc --output ./src/management-api/openapi.d.ts && prettier --write ./src/management-api/openapi.d.ts",test:"dotenv -e ../../.db.env -- tsx helpers/run-tests.ts","test:platform":"dotenv -e ../../.db.env -- tsx helpers/run-tests.ts src/platform",tsc:"tsc -d -p tsconfig.build.json",preinstall:"node scripts/preinstall-entry.js",prepublishOnly:"pnpm run build"},dependencies:{"@prisma/config":"workspace:*","@prisma/dev":"0.24.14","@prisma/engines":"workspace:*","@prisma/studio-core":"0.33.0",mysql2:"3.15.3",postgres:"3.4.7"},peerDependencies:{"better-sqlite3":">=9.0.0",typescript:">=5.4.0"},peerDependenciesMeta:{"better-sqlite3":{optional:!0},typescript:{optional:!0}},sideEffects:!1}});var Pet=A((rU,Aet)=>{"use strict";(function(e,r){typeof rU=="object"&&typeof Aet<"u"?r(rU):typeof define=="function"&&define.amd?define(["exports"],r):r(e.URI=e.URI||{})})(rU,function(e){"use strict";function r(){for(var ee=arguments.length,K=Array(ee),oe=0;oe<ee;oe++)K[oe]=arguments[oe];if(K.length>1){K[0]=K[0].slice(0,-1);for(var ue=K.length-1,pe=1;pe<ue;++pe)K[pe]=K[pe].slice(1,-1);return K[ue]=K[ue].slice(1),K.join("")}else return K[0]}function n(ee){return"(?:"+ee+")"}function o(ee){return ee===void 0?"undefined":ee===null?"null":Object.prototype.toString.call(ee).split(" ").pop().split("]").shift().toLowerCase()}function i(ee){return ee.toUpperCase()}function a(ee){return ee!=null?ee instanceof Array?ee:typeof ee.length!="number"||ee.split||ee.setInterval||ee.call?[ee]:Array.prototype.slice.call(ee):[]}function c(ee,K){var oe=ee;if(K)for(var ue in K)oe[ue]=K[ue];return oe}function u(ee){var K="[A-Za-z]",oe="[\\x0D]",ue="[0-9]",pe="[\\x22]",je=r(ue,"[A-Fa-f]"),Ht="[\\x0A]",hr="[\\x20]",Or=n(n("%[EFef]"+je+"%"+je+je+"%"+je+je)+"|"+n("%[89A-Fa-f]"+je+"%"+je+je)+"|"+n("%"+je+je)),Un="[\\:\\/\\?\\#\\[\\]\\@]",pr="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",ln=r(Un,pr),_n=ee?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Zr=ee?"[\\uE000-\\uF8FF]":"[]",Nt=r(K,ue,"[\\-\\.\\_\\~]",_n),xn=n(K+r(K,ue,"[\\+\\-\\.]")+"*"),Ur=n(n(Or+"|"+r(Nt,pr,"[\\:]"))+"*"),zc=n(n("25[0-5]")+"|"+n("2[0-4]"+ue)+"|"+n("1"+ue+ue)+"|"+n("[1-9]"+ue)+"|"+ue),Fi=n(n("25[0-5]")+"|"+n("2[0-4]"+ue)+"|"+n("1"+ue+ue)+"|"+n("0?[1-9]"+ue)+"|0?0?"+ue),Ws=n(Fi+"\\."+Fi+"\\."+Fi+"\\."+Fi),Qr=n(je+"{1,4}"),Vs=n(n(Qr+"\\:"+Qr)+"|"+Ws),Es=n(n(Qr+"\\:")+"{6}"+Vs),vs=n("\\:\\:"+n(Qr+"\\:")+"{5}"+Vs),Sp=n(n(Qr)+"?\\:\\:"+n(Qr+"\\:")+"{4}"+Vs),Kc=n(n(n(Qr+"\\:")+"{0,1}"+Qr)+"?\\:\\:"+n(Qr+"\\:")+"{3}"+Vs),V0=n(n(n(Qr+"\\:")+"{0,2}"+Qr)+"?\\:\\:"+n(Qr+"\\:")+"{2}"+Vs),z0=n(n(n(Qr+"\\:")+"{0,3}"+Qr)+"?\\:\\:"+Qr+"\\:"+Vs),ih=n(n(n(Qr+"\\:")+"{0,4}"+Qr)+"?\\:\\:"+Vs),Jc=n(n(n(Qr+"\\:")+"{0,5}"+Qr)+"?\\:\\:"+Qr),ga=n(n(n(Qr+"\\:")+"{0,6}"+Qr)+"?\\:\\:"),Yc=n([Es,vs,Sp,Kc,V0,z0,ih,Jc,ga].join("|")),sl=n(n(Nt+"|"+Or)+"+"),Kf=n(Yc+"\\%25"+sl),Zc=n(Yc+n("\\%25|\\%(?!"+je+"{2})")+sl),FE=n("[vV]"+je+"+\\."+r(Nt,pr,"[\\:]")+"+"),XU=n("\\["+n(Zc+"|"+Yc+"|"+FE)+"\\]"),WO=n(n(Or+"|"+r(Nt,pr))+"*"),K0=n(XU+"|"+Ws+"(?!"+WO+")|"+WO),J0=n(ue+"*"),VO=n(n(Ur+"@")+"?"+K0+n("\\:"+J0)+"?"),Y0=n(Or+"|"+r(Nt,pr,"[\\:\\@]")),zO=n(Y0+"*"),KO=n(Y0+"+"),ej=n(n(Or+"|"+r(Nt,pr,"[\\@]"))+"+"),al=n(n("\\/"+zO)+"*"),Qc=n("\\/"+n(KO+al)+"?"),ME=n(ej+al),kE=n(KO+al),Jf="(?!"+Y0+")",Z0=n(al+"|"+Qc+"|"+ME+"|"+kE+"|"+Jf),sc=n(n(Y0+"|"+r("[\\/\\?]",Zr))+"*"),wp=n(n(Y0+"|[\\/\\?]")+"*"),L1=n(n("\\/\\/"+VO+al)+"|"+Qc+"|"+kE+"|"+Jf),tj=n(xn+"\\:"+L1+n("\\?"+sc)+"?"+n("\\#"+wp)+"?"),B1=n(n("\\/\\/"+VO+al)+"|"+Qc+"|"+ME+"|"+Jf),U1=n(B1+n("\\?"+sc)+"?"+n("\\#"+wp)+"?"),JO=n(tj+"|"+U1),mpe=n(xn+"\\:"+L1+n("\\?"+sc)+"?"),hpe="^("+xn+")\\:"+n(n("\\/\\/("+n("("+Ur+")@")+"?("+K0+")"+n("\\:("+J0+")")+"?)")+"?("+al+"|"+Qc+"|"+kE+"|"+Jf+")")+n("\\?("+sc+")")+"?"+n("\\#("+wp+")")+"?$",gpe="^(){0}"+n(n("\\/\\/("+n("("+Ur+")@")+"?("+K0+")"+n("\\:("+J0+")")+"?)")+"?("+al+"|"+Qc+"|"+ME+"|"+Jf+")")+n("\\?("+sc+")")+"?"+n("\\#("+wp+")")+"?$",ype="^("+xn+")\\:"+n(n("\\/\\/("+n("("+Ur+")@")+"?("+K0+")"+n("\\:("+J0+")")+"?)")+"?("+al+"|"+Qc+"|"+kE+"|"+Jf+")")+n("\\?("+sc+")")+"?$",cl="^"+n("\\#("+wp+")")+"?$",xpe="^"+n("("+Ur+")@")+"?("+K0+")"+n("\\:("+J0+")")+"?$";return{NOT_SCHEME:new RegExp(r("[^]",K,ue,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(r("[^\\%\\:]",Nt,pr),"g"),NOT_HOST:new RegExp(r("[^\\%\\[\\]\\:]",Nt,pr),"g"),NOT_PATH:new RegExp(r("[^\\%\\/\\:\\@]",Nt,pr),"g"),NOT_PATH_NOSCHEME:new RegExp(r("[^\\%\\/\\@]",Nt,pr),"g"),NOT_QUERY:new RegExp(r("[^\\%]",Nt,pr,"[\\:\\@\\/\\?]",Zr),"g"),NOT_FRAGMENT:new RegExp(r("[^\\%]",Nt,pr,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(r("[^]",Nt,pr),"g"),UNRESERVED:new RegExp(Nt,"g"),OTHER_CHARS:new RegExp(r("[^\\%]",Nt,ln),"g"),PCT_ENCODED:new RegExp(Or,"g"),IPV4ADDRESS:new RegExp("^("+Ws+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Yc+")"+n(n("\\%25|\\%(?!"+je+"{2})")+"("+sl+")")+"?\\]?$")}}var l=u(!1),p=u(!0),f=function(){function ee(K,oe){var ue=[],pe=!0,je=!1,Ht=void 0;try{for(var hr=K[Symbol.iterator](),Or;!(pe=(Or=hr.next()).done)&&(ue.push(Or.value),!(oe&&ue.length===oe));pe=!0);}catch(Un){je=!0,Ht=Un}finally{try{!pe&&hr.return&&hr.return()}finally{if(je)throw Ht}}return ue}return function(K,oe){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return ee(K,oe);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(ee){if(Array.isArray(ee)){for(var K=0,oe=Array(ee.length);K<ee.length;K++)oe[K]=ee[K];return oe}else return Array.from(ee)},x=2147483647,b=36,E=1,S=26,_=38,D=700,O=72,C=128,R="-",I=/^xn--/,k=/[^\0-\x7E]/,j=/[\x2E\u3002\uFF0E\uFF61]/g,G={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=b-E,H=Math.floor,F=String.fromCharCode;function Y(ee){throw new RangeError(G[ee])}function V(ee,K){for(var oe=[],ue=ee.length;ue--;)oe[ue]=K(ee[ue]);return oe}function Q(ee,K){var oe=ee.split("@"),ue="";oe.length>1&&(ue=oe[0]+"@",ee=oe[1]),ee=ee.replace(j,".");var pe=ee.split("."),je=V(pe,K).join(".");return ue+je}function q(ee){for(var K=[],oe=0,ue=ee.length;oe<ue;){var pe=ee.charCodeAt(oe++);if(pe>=55296&&pe<=56319&&oe<ue){var je=ee.charCodeAt(oe++);(je&64512)==56320?K.push(((pe&1023)<<10)+(je&1023)+65536):(K.push(pe),oe--)}else K.push(pe)}return K}var Z=function(K){return String.fromCodePoint.apply(String,g(K))},ie=function(K){return K-48<10?K-22:K-65<26?K-65:K-97<26?K-97:b},se=function(K,oe){return K+22+75*(K<26)-((oe!=0)<<5)},le=function(K,oe,ue){var pe=0;for(K=ue?H(K/D):K>>1,K+=H(K/oe);K>L*S>>1;pe+=b)K=H(K/L);return H(pe+(L+1)*K/(K+_))},_e=function(K){var oe=[],ue=K.length,pe=0,je=C,Ht=O,hr=K.lastIndexOf(R);hr<0&&(hr=0);for(var Or=0;Or<hr;++Or)K.charCodeAt(Or)>=128&&Y("not-basic"),oe.push(K.charCodeAt(Or));for(var Un=hr>0?hr+1:0;Un<ue;){for(var pr=pe,ln=1,_n=b;;_n+=b){Un>=ue&&Y("invalid-input");var Zr=ie(K.charCodeAt(Un++));(Zr>=b||Zr>H((x-pe)/ln))&&Y("overflow"),pe+=Zr*ln;var Nt=_n<=Ht?E:_n>=Ht+S?S:_n-Ht;if(Zr<Nt)break;var xn=b-Nt;ln>H(x/xn)&&Y("overflow"),ln*=xn}var Ur=oe.length+1;Ht=le(pe-pr,Ur,pr==0),H(pe/Ur)>x-je&&Y("overflow"),je+=H(pe/Ur),pe%=Ur,oe.splice(pe++,0,je)}return String.fromCodePoint.apply(String,oe)},Ge=function(K){var oe=[];K=q(K);var ue=K.length,pe=C,je=0,Ht=O,hr=!0,Or=!1,Un=void 0;try{for(var pr=K[Symbol.iterator](),ln;!(hr=(ln=pr.next()).done);hr=!0){var _n=ln.value;_n<128&&oe.push(F(_n))}}catch(Zc){Or=!0,Un=Zc}finally{try{!hr&&pr.return&&pr.return()}finally{if(Or)throw Un}}var Zr=oe.length,Nt=Zr;for(Zr&&oe.push(R);Nt<ue;){var xn=x,Ur=!0,zc=!1,Fi=void 0;try{for(var Ws=K[Symbol.iterator](),Qr;!(Ur=(Qr=Ws.next()).done);Ur=!0){var Vs=Qr.value;Vs>=pe&&Vs<xn&&(xn=Vs)}}catch(Zc){zc=!0,Fi=Zc}finally{try{!Ur&&Ws.return&&Ws.return()}finally{if(zc)throw Fi}}var Es=Nt+1;xn-pe>H((x-je)/Es)&&Y("overflow"),je+=(xn-pe)*Es,pe=xn;var vs=!0,Sp=!1,Kc=void 0;try{for(var V0=K[Symbol.iterator](),z0;!(vs=(z0=V0.next()).done);vs=!0){var ih=z0.value;if(ih<pe&&++je>x&&Y("overflow"),ih==pe){for(var Jc=je,ga=b;;ga+=b){var Yc=ga<=Ht?E:ga>=Ht+S?S:ga-Ht;if(Jc<Yc)break;var sl=Jc-Yc,Kf=b-Yc;oe.push(F(se(Yc+sl%Kf,0))),Jc=H(sl/Kf)}oe.push(F(se(Jc,0))),Ht=le(je,Es,Nt==Zr),je=0,++Nt}}}catch(Zc){Sp=!0,Kc=Zc}finally{try{!vs&&V0.return&&V0.return()}finally{if(Sp)throw Kc}}++je,++pe}return oe.join("")},Mt=function(K){return Q(K,function(oe){return I.test(oe)?_e(oe.slice(4).toLowerCase()):oe})},Zt=function(K){return Q(K,function(oe){return k.test(oe)?"xn--"+Ge(oe):oe})},kt={version:"2.1.0",ucs2:{decode:q,encode:Z},decode:_e,encode:Ge,toASCII:Zt,toUnicode:Mt},Gt={};function $e(ee){var K=ee.charCodeAt(0),oe=void 0;return K<16?oe="%0"+K.toString(16).toUpperCase():K<128?oe="%"+K.toString(16).toUpperCase():K<2048?oe="%"+(K>>6|192).toString(16).toUpperCase()+"%"+(K&63|128).toString(16).toUpperCase():oe="%"+(K>>12|224).toString(16).toUpperCase()+"%"+(K>>6&63|128).toString(16).toUpperCase()+"%"+(K&63|128).toString(16).toUpperCase(),oe}function Qe(ee){for(var K="",oe=0,ue=ee.length;oe<ue;){var pe=parseInt(ee.substr(oe+1,2),16);if(pe<128)K+=String.fromCharCode(pe),oe+=3;else if(pe>=194&&pe<224){if(ue-oe>=6){var je=parseInt(ee.substr(oe+4,2),16);K+=String.fromCharCode((pe&31)<<6|je&63)}else K+=ee.substr(oe,6);oe+=6}else if(pe>=224){if(ue-oe>=9){var Ht=parseInt(ee.substr(oe+4,2),16),hr=parseInt(ee.substr(oe+7,2),16);K+=String.fromCharCode((pe&15)<<12|(Ht&63)<<6|hr&63)}else K+=ee.substr(oe,9);oe+=9}else K+=ee.substr(oe,3),oe+=3}return K}function mo(ee,K){function oe(ue){var pe=Qe(ue);return pe.match(K.UNRESERVED)?pe:ue}return ee.scheme&&(ee.scheme=String(ee.scheme).replace(K.PCT_ENCODED,oe).toLowerCase().replace(K.NOT_SCHEME,"")),ee.userinfo!==void 0&&(ee.userinfo=String(ee.userinfo).replace(K.PCT_ENCODED,oe).replace(K.NOT_USERINFO,$e).replace(K.PCT_ENCODED,i)),ee.host!==void 0&&(ee.host=String(ee.host).replace(K.PCT_ENCODED,oe).toLowerCase().replace(K.NOT_HOST,$e).replace(K.PCT_ENCODED,i)),ee.path!==void 0&&(ee.path=String(ee.path).replace(K.PCT_ENCODED,oe).replace(ee.scheme?K.NOT_PATH:K.NOT_PATH_NOSCHEME,$e).replace(K.PCT_ENCODED,i)),ee.query!==void 0&&(ee.query=String(ee.query).replace(K.PCT_ENCODED,oe).replace(K.NOT_QUERY,$e).replace(K.PCT_ENCODED,i)),ee.fragment!==void 0&&(ee.fragment=String(ee.fragment).replace(K.PCT_ENCODED,oe).replace(K.NOT_FRAGMENT,$e).replace(K.PCT_ENCODED,i)),ee}function xe(ee){return ee.replace(/^0*(.*)/,"$1")||"0"}function ze(ee,K){var oe=ee.match(K.IPV4ADDRESS)||[],ue=f(oe,2),pe=ue[1];return pe?pe.split(".").map(xe).join("."):ee}function ge(ee,K){var oe=ee.match(K.IPV6ADDRESS)||[],ue=f(oe,3),pe=ue[1],je=ue[2];if(pe){for(var Ht=pe.toLowerCase().split("::").reverse(),hr=f(Ht,2),Or=hr[0],Un=hr[1],pr=Un?Un.split(":").map(xe):[],ln=Or.split(":").map(xe),_n=K.IPV4ADDRESS.test(ln[ln.length-1]),Zr=_n?7:8,Nt=ln.length-Zr,xn=Array(Zr),Ur=0;Ur<Zr;++Ur)xn[Ur]=pr[Ur]||ln[Nt+Ur]||"";_n&&(xn[Zr-1]=ze(xn[Zr-1],K));var zc=xn.reduce(function(Es,vs,Sp){if(!vs||vs==="0"){var Kc=Es[Es.length-1];Kc&&Kc.index+Kc.length===Sp?Kc.length++:Es.push({index:Sp,length:1})}return Es},[]),Fi=zc.sort(function(Es,vs){return vs.length-Es.length})[0],Ws=void 0;if(Fi&&Fi.length>1){var Qr=xn.slice(0,Fi.index),Vs=xn.slice(Fi.index+Fi.length);Ws=Qr.join(":")+"::"+Vs.join(":")}else Ws=xn.join(":");return je&&(Ws+="%"+je),Ws}else return ee}var ut=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,$t="".match(/(){0}/)[1]===void 0;function ht(ee){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oe={},ue=K.iri!==!1?p:l;K.reference==="suffix"&&(ee=(K.scheme?K.scheme+":":"")+"//"+ee);var pe=ee.match(ut);if(pe){$t?(oe.scheme=pe[1],oe.userinfo=pe[3],oe.host=pe[4],oe.port=parseInt(pe[5],10),oe.path=pe[6]||"",oe.query=pe[7],oe.fragment=pe[8],isNaN(oe.port)&&(oe.port=pe[5])):(oe.scheme=pe[1]||void 0,oe.userinfo=ee.indexOf("@")!==-1?pe[3]:void 0,oe.host=ee.indexOf("//")!==-1?pe[4]:void 0,oe.port=parseInt(pe[5],10),oe.path=pe[6]||"",oe.query=ee.indexOf("?")!==-1?pe[7]:void 0,oe.fragment=ee.indexOf("#")!==-1?pe[8]:void 0,isNaN(oe.port)&&(oe.port=ee.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?pe[4]:void 0)),oe.host&&(oe.host=ge(ze(oe.host,ue),ue)),oe.scheme===void 0&&oe.userinfo===void 0&&oe.host===void 0&&oe.port===void 0&&!oe.path&&oe.query===void 0?oe.reference="same-document":oe.scheme===void 0?oe.reference="relative":oe.fragment===void 0?oe.reference="absolute":oe.reference="uri",K.reference&&K.reference!=="suffix"&&K.reference!==oe.reference&&(oe.error=oe.error||"URI is not a "+K.reference+" reference.");var je=Gt[(K.scheme||oe.scheme||"").toLowerCase()];if(!K.unicodeSupport&&(!je||!je.unicodeSupport)){if(oe.host&&(K.domainHost||je&&je.domainHost))try{oe.host=kt.toASCII(oe.host.replace(ue.PCT_ENCODED,Qe).toLowerCase())}catch(Ht){oe.error=oe.error||"Host's domain name can not be converted to ASCII via punycode: "+Ht}mo(oe,l)}else mo(oe,ue);je&&je.parse&&je.parse(oe,K)}else oe.error=oe.error||"URI can not be parsed.";return oe}function nr(ee,K){var oe=K.iri!==!1?p:l,ue=[];return ee.userinfo!==void 0&&(ue.push(ee.userinfo),ue.push("@")),ee.host!==void 0&&ue.push(ge(ze(String(ee.host),oe),oe).replace(oe.IPV6ADDRESS,function(pe,je,Ht){return"["+je+(Ht?"%25"+Ht:"")+"]"})),(typeof ee.port=="number"||typeof ee.port=="string")&&(ue.push(":"),ue.push(String(ee.port))),ue.length?ue.join(""):void 0}var eo=/^\.\.?\//,Bn=/^\/\.(\/|$)/,Ep=/^\/\.\.(\/|$)/,Fo=/^\/?(?:.|\n)*?(?=\/|$)/;function Ji(ee){for(var K=[];ee.length;)if(ee.match(eo))ee=ee.replace(eo,"");else if(ee.match(Bn))ee=ee.replace(Bn,"/");else if(ee.match(Ep))ee=ee.replace(Ep,"/"),K.pop();else if(ee==="."||ee==="..")ee="";else{var oe=ee.match(Fo);if(oe){var ue=oe[0];ee=ee.slice(ue.length),K.push(ue)}else throw new Error("Unexpected dot segment condition")}return K.join("")}function Yi(ee){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oe=K.iri?p:l,ue=[],pe=Gt[(K.scheme||ee.scheme||"").toLowerCase()];if(pe&&pe.serialize&&pe.serialize(ee,K),ee.host&&!oe.IPV6ADDRESS.test(ee.host)){if(K.domainHost||pe&&pe.domainHost)try{ee.host=K.iri?kt.toUnicode(ee.host):kt.toASCII(ee.host.replace(oe.PCT_ENCODED,Qe).toLowerCase())}catch(hr){ee.error=ee.error||"Host's domain name can not be converted to "+(K.iri?"Unicode":"ASCII")+" via punycode: "+hr}}mo(ee,oe),K.reference!=="suffix"&&ee.scheme&&(ue.push(ee.scheme),ue.push(":"));var je=nr(ee,K);if(je!==void 0&&(K.reference!=="suffix"&&ue.push("//"),ue.push(je),ee.path&&ee.path.charAt(0)!=="/"&&ue.push("/")),ee.path!==void 0){var Ht=ee.path;!K.absolutePath&&(!pe||!pe.absolutePath)&&(Ht=Ji(Ht)),je===void 0&&(Ht=Ht.replace(/^\/\//,"/%2F")),ue.push(Ht)}return ee.query!==void 0&&(ue.push("?"),ue.push(ee.query)),ee.fragment!==void 0&&(ue.push("#"),ue.push(ee.fragment)),ue.join("")}function Mo(ee,K){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ue=arguments[3],pe={};return ue||(ee=ht(Yi(ee,oe),oe),K=ht(Yi(K,oe),oe)),oe=oe||{},!oe.tolerant&&K.scheme?(pe.scheme=K.scheme,pe.userinfo=K.userinfo,pe.host=K.host,pe.port=K.port,pe.path=Ji(K.path||""),pe.query=K.query):(K.userinfo!==void 0||K.host!==void 0||K.port!==void 0?(pe.userinfo=K.userinfo,pe.host=K.host,pe.port=K.port,pe.path=Ji(K.path||""),pe.query=K.query):(K.path?(K.path.charAt(0)==="/"?pe.path=Ji(K.path):((ee.userinfo!==void 0||ee.host!==void 0||ee.port!==void 0)&&!ee.path?pe.path="/"+K.path:ee.path?pe.path=ee.path.slice(0,ee.path.lastIndexOf("/")+1)+K.path:pe.path=K.path,pe.path=Ji(pe.path)),pe.query=K.query):(pe.path=ee.path,K.query!==void 0?pe.query=K.query:pe.query=ee.query),pe.userinfo=ee.userinfo,pe.host=ee.host,pe.port=ee.port),pe.scheme=ee.scheme),pe.fragment=K.fragment,pe}function pi(ee,K,oe){var ue=c({scheme:"null"},oe);return Yi(Mo(ht(ee,ue),ht(K,ue),ue,!0),ue)}function fi(ee,K){return typeof ee=="string"?ee=Yi(ht(ee,K),K):o(ee)==="object"&&(ee=ht(Yi(ee,K),K)),ee}function Wf(ee,K,oe){return typeof ee=="string"?ee=Yi(ht(ee,oe),oe):o(ee)==="object"&&(ee=Yi(ee,oe)),typeof K=="string"?K=Yi(ht(K,oe),oe):o(K)==="object"&&(K=Yi(K,oe)),ee===K}function IE(ee,K){return ee&&ee.toString().replace(!K||!K.iri?l.ESCAPE:p.ESCAPE,$e)}function ha(ee,K){return ee&&ee.toString().replace(!K||!K.iri?l.PCT_ENCODED:p.PCT_ENCODED,Qe)}var nh={scheme:"http",domainHost:!0,parse:function(K,oe){return K.host||(K.error=K.error||"HTTP URIs must have a host."),K},serialize:function(K,oe){var ue=String(K.scheme).toLowerCase()==="https";return(K.port===(ue?443:80)||K.port==="")&&(K.port=void 0),K.path||(K.path="/"),K}},BO={scheme:"https",domainHost:nh.domainHost,parse:nh.parse,serialize:nh.serialize};function M1(ee){return typeof ee.secure=="boolean"?ee.secure:String(ee.scheme).toLowerCase()==="wss"}var oh={scheme:"ws",domainHost:!0,parse:function(K,oe){var ue=K;return ue.secure=M1(ue),ue.resourceName=(ue.path||"/")+(ue.query?"?"+ue.query:""),ue.path=void 0,ue.query=void 0,ue},serialize:function(K,oe){if((K.port===(M1(K)?443:80)||K.port==="")&&(K.port=void 0),typeof K.secure=="boolean"&&(K.scheme=K.secure?"wss":"ws",K.secure=void 0),K.resourceName){var ue=K.resourceName.split("?"),pe=f(ue,2),je=pe[0],Ht=pe[1];K.path=je&&je!=="/"?je:void 0,K.query=Ht,K.resourceName=void 0}return K.fragment=void 0,K}},k1={scheme:"wss",domainHost:oh.domainHost,parse:oh.parse,serialize:oh.serialize},q0={},UO=!0,YU="[A-Za-z0-9\\-\\.\\_\\~"+(UO?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Gs="[0-9A-Fa-f]",jO=n(n("%[EFef]"+Gs+"%"+Gs+Gs+"%"+Gs+Gs)+"|"+n("%[89A-Fa-f]"+Gs+"%"+Gs+Gs)+"|"+n("%"+Gs+Gs)),ZU="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",qO="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",$1=r(qO,'[\\"\\\\]'),N1="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",QU=new RegExp(YU,"g"),Hs=new RegExp(jO,"g"),G0=new RegExp(r("[^]",ZU,"[\\.]",'[\\"]',$1),"g"),Vf=new RegExp(r("[^]",YU,N1),"g"),zf=Vf;function H0(ee){var K=Qe(ee);return K.match(QU)?K:ee}var vp={scheme:"mailto",parse:function(K,oe){var ue=K,pe=ue.to=ue.path?ue.path.split(","):[];if(ue.path=void 0,ue.query){for(var je=!1,Ht={},hr=ue.query.split("&"),Or=0,Un=hr.length;Or<Un;++Or){var pr=hr[Or].split("=");switch(pr[0]){case"to":for(var ln=pr[1].split(","),_n=0,Zr=ln.length;_n<Zr;++_n)pe.push(ln[_n]);break;case"subject":ue.subject=ha(pr[1],oe);break;case"body":ue.body=ha(pr[1],oe);break;default:je=!0,Ht[ha(pr[0],oe)]=ha(pr[1],oe);break}}je&&(ue.headers=Ht)}ue.query=void 0;for(var Nt=0,xn=pe.length;Nt<xn;++Nt){var Ur=pe[Nt].split("@");if(Ur[0]=ha(Ur[0]),oe.unicodeSupport)Ur[1]=ha(Ur[1],oe).toLowerCase();else try{Ur[1]=kt.toASCII(ha(Ur[1],oe).toLowerCase())}catch(zc){ue.error=ue.error||"Email address's domain name can not be converted to ASCII via punycode: "+zc}pe[Nt]=Ur.join("@")}return ue},serialize:function(K,oe){var ue=K,pe=a(K.to);if(pe){for(var je=0,Ht=pe.length;je<Ht;++je){var hr=String(pe[je]),Or=hr.lastIndexOf("@"),Un=hr.slice(0,Or).replace(Hs,H0).replace(Hs,i).replace(G0,$e),pr=hr.slice(Or+1);try{pr=oe.iri?kt.toUnicode(pr):kt.toASCII(ha(pr,oe).toLowerCase())}catch(Nt){ue.error=ue.error||"Email address's domain name can not be converted to "+(oe.iri?"Unicode":"ASCII")+" via punycode: "+Nt}pe[je]=Un+"@"+pr}ue.path=pe.join(",")}var ln=K.headers=K.headers||{};K.subject&&(ln.subject=K.subject),K.body&&(ln.body=K.body);var _n=[];for(var Zr in ln)ln[Zr]!==q0[Zr]&&_n.push(Zr.replace(Hs,H0).replace(Hs,i).replace(Vf,$e)+"="+ln[Zr].replace(Hs,H0).replace(Hs,i).replace(zf,$e));return _n.length&&(ue.query=_n.join("&")),ue}},GO=/^([^\:]+)\:(.*)/,RE={scheme:"urn",parse:function(K,oe){var ue=K.path&&K.path.match(GO),pe=K;if(ue){var je=oe.scheme||pe.scheme||"urn",Ht=ue[1].toLowerCase(),hr=ue[2],Or=je+":"+(oe.nid||Ht),Un=Gt[Or];pe.nid=Ht,pe.nss=hr,pe.path=void 0,Un&&(pe=Un.parse(pe,oe))}else pe.error=pe.error||"URN can not be parsed.";return pe},serialize:function(K,oe){var ue=oe.scheme||K.scheme||"urn",pe=K.nid,je=ue+":"+(oe.nid||pe),Ht=Gt[je];Ht&&(K=Ht.serialize(K,oe));var hr=K,Or=K.nss;return hr.path=(pe||oe.nid)+":"+Or,hr}},HO=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,W0={scheme:"urn:uuid",parse:function(K,oe){var ue=K;return ue.uuid=ue.nss,ue.nss=void 0,!oe.tolerant&&(!ue.uuid||!ue.uuid.match(HO))&&(ue.error=ue.error||"UUID is not valid."),ue},serialize:function(K,oe){var ue=K;return ue.nss=(K.uuid||"").toLowerCase(),ue}};Gt[nh.scheme]=nh,Gt[BO.scheme]=BO,Gt[oh.scheme]=oh,Gt[k1.scheme]=k1,Gt[vp.scheme]=vp,Gt[RE.scheme]=RE,Gt[W0.scheme]=W0,e.SCHEMES=Gt,e.pctEncChar=$e,e.pctDecChars=Qe,e.parse=ht,e.removeDotSegments=Ji,e.serialize=Yi,e.resolveComponents=Mo,e.resolve=pi,e.normalize=fi,e.equal=Wf,e.escapeComponent=IE,e.unescapeComponent=ha,Object.defineProperty(e,"__esModule",{value:!0})})});var nU=A((bwn,Oet)=>{"use strict";Oet.exports=function e(r,n){if(r===n)return!0;if(r&&n&&typeof r=="object"&&typeof n=="object"){if(r.constructor!==n.constructor)return!1;var o,i,a;if(Array.isArray(r)){if(o=r.length,o!=n.length)return!1;for(i=o;i--!==0;)if(!e(r[i],n[i]))return!1;return!0}if(r.constructor===RegExp)return r.source===n.source&&r.flags===n.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===n.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===n.toString();if(a=Object.keys(r),o=a.length,o!==Object.keys(n).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=o;i--!==0;){var c=a[i];if(!e(r[c],n[c]))return!1}return!0}return r!==r&&n!==n}});var Ret=A((Ewn,Iet)=>{"use strict";Iet.exports=function(r){for(var n=0,o=r.length,i=0,a;i<o;)n++,a=r.charCodeAt(i++),a>=55296&&a<=56319&&i<o&&(a=r.charCodeAt(i),(a&64512)==56320&&i++);return n}});var AE=A((vwn,ket)=>{"use strict";ket.exports={copy:Unr,checkDataType:xle,checkDataTypes:jnr,coerceToTypes:qnr,toHash:Ele,getProperty:vle,escapeQuotes:Sle,equal:nU(),ucs2length:Ret(),varOccurences:Wnr,varReplace:Vnr,schemaHasRules:znr,schemaHasRulesExcept:Knr,schemaUnknownRules:Jnr,toQuotedString:ble,getPathExpr:Ynr,getPath:Znr,getData:eor,unescapeFragment:tor,unescapeJsonPointer:_le,escapeFragment:ror,escapeJsonPointer:wle};function Unr(e,r){r=r||{};for(var n in e)r[n]=e[n];return r}function xle(e,r,n,o){var i=o?" !== ":" === ",a=o?" || ":" && ",c=o?"!":"",u=o?"":"!";switch(e){case"null":return r+i+"null";case"array":return c+"Array.isArray("+r+")";case"object":return"("+c+r+a+"typeof "+r+i+'"object"'+a+u+"Array.isArray("+r+"))";case"integer":return"(typeof "+r+i+'"number"'+a+u+"("+r+" % 1)"+a+r+i+r+(n?a+c+"isFinite("+r+")":"")+")";case"number":return"(typeof "+r+i+'"'+e+'"'+(n?a+c+"isFinite("+r+")":"")+")";default:return"typeof "+r+i+'"'+e+'"'}}function jnr(e,r,n){switch(e.length){case 1:return xle(e[0],r,n,!0);default:var o="",i=Ele(e);i.array&&i.object&&(o=i.null?"(":"(!"+r+" || ",o+="typeof "+r+' !== "object")',delete i.null,delete i.array,delete i.object),i.number&&delete i.integer;for(var a in i)o+=(o?" && ":"")+xle(a,r,n,!0);return o}}var Fet=Ele(["string","number","integer","boolean","null"]);function qnr(e,r){if(Array.isArray(r)){for(var n=[],o=0;o<r.length;o++){var i=r[o];(Fet[i]||e==="array"&&i==="array")&&(n[n.length]=i)}if(n.length)return n}else{if(Fet[r])return[r];if(e==="array"&&r==="array")return["array"]}}function Ele(e){for(var r={},n=0;n<e.length;n++)r[e[n]]=!0;return r}var Gnr=/^[a-z$_][a-z$_0-9]*$/i,Hnr=/'|\\/g;function vle(e){return typeof e=="number"?"["+e+"]":Gnr.test(e)?"."+e:"['"+Sle(e)+"']"}function Sle(e){return e.replace(Hnr,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function Wnr(e,r){r+="[^0-9]";var n=e.match(new RegExp(r,"g"));return n?n.length:0}function Vnr(e,r,n){return r+="([^0-9])",n=n.replace(/\$/g,"$$$$"),e.replace(new RegExp(r,"g"),n+"$1")}function znr(e,r){if(typeof e=="boolean")return!e;for(var n in e)if(r[n])return!0}function Knr(e,r,n){if(typeof e=="boolean")return!e&&n!="not";for(var o in e)if(o!=n&&r[o])return!0}function Jnr(e,r){if(typeof e!="boolean"){for(var n in e)if(!r[n])return n}}function ble(e){return"'"+Sle(e)+"'"}function Ynr(e,r,n,o){var i=n?"'/' + "+r+(o?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):o?"'[' + "+r+" + ']'":"'[\\'' + "+r+" + '\\']'";return Met(e,i)}function Znr(e,r,n){var o=ble(n?"/"+wle(r):vle(r));return Met(e,o)}var Qnr=/^\/(?:[^~]|~0|~1)*$/,Xnr=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function eor(e,r,n){var o,i,a,c;if(e==="")return"rootData";if(e[0]=="/"){if(!Qnr.test(e))throw new Error("Invalid JSON-pointer: "+e);i=e,a="rootData"}else{if(c=e.match(Xnr),!c)throw new Error("Invalid JSON-pointer: "+e);if(o=+c[1],i=c[2],i=="#"){if(o>=r)throw new Error("Cannot access property/index "+o+" levels up, current level is "+r);return n[r-o]}if(o>r)throw new Error("Cannot access data "+o+" levels up, current level is "+r);if(a="data"+(r-o||""),!i)return a}for(var u=a,l=i.split("/"),p=0;p<l.length;p++){var f=l[p];f&&(a+=vle(_le(f)),u+=" && "+a)}return u}function Met(e,r){return e=='""'?r:(e+" + "+r).replace(/([^\\])' \+ '/g,"$1")}function tor(e){return _le(decodeURIComponent(e))}function ror(e){return encodeURIComponent(wle(e))}function wle(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function _le(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}});var Tle=A((Swn,$et)=>{"use strict";var nor=AE();$et.exports=oor;function oor(e){nor.copy(e,this)}});var Let=A((wwn,Net)=>{"use strict";var N0=Net.exports=function(e,r,n){typeof r=="function"&&(n=r,r={}),n=r.cb||n;var o=typeof n=="function"?n:n.pre||function(){},i=n.post||function(){};oU(r,o,i,e,"",e)};N0.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};N0.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};N0.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};N0.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function oU(e,r,n,o,i,a,c,u,l,p){if(o&&typeof o=="object"&&!Array.isArray(o)){r(o,i,a,c,u,l,p);for(var f in o){var g=o[f];if(Array.isArray(g)){if(f in N0.arrayKeywords)for(var x=0;x<g.length;x++)oU(e,r,n,g[x],i+"/"+f+"/"+x,a,i,f,o,x)}else if(f in N0.propsKeywords){if(g&&typeof g=="object")for(var b in g)oU(e,r,n,g[b],i+"/"+f+"/"+ior(b),a,i,f,o,b)}else(f in N0.keywords||e.allKeys&&!(f in N0.skipKeywords))&&oU(e,r,n,g,i+"/"+f,a,i,f,o)}n(o,i,a,c,u,l,p)}}function ior(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var lU=A((_wn,qet)=>{"use strict";var MO=Pet(),Bet=nU(),cU=AE(),iU=Tle(),sor=Let();qet.exports=B0;B0.normalizeId=L0;B0.fullPath=sU;B0.url=aU;B0.ids=por;B0.inlineRef=Dle;B0.schema=uU;function B0(e,r,n){var o=this._refs[n];if(typeof o=="string")if(this._refs[o])o=this._refs[o];else return B0.call(this,e,r,o);if(o=o||this._schemas[n],o instanceof iU)return Dle(o.schema,this._opts.inlineRefs)?o.schema:o.validate||this._compile(o);var i=uU.call(this,r,n),a,c,u;return i&&(a=i.schema,r=i.root,u=i.baseId),a instanceof iU?c=a.validate||e.call(this,a.schema,r,void 0,u):a!==void 0&&(c=Dle(a,this._opts.inlineRefs)?a:e.call(this,a,r,void 0,u)),c}function uU(e,r){var n=MO.parse(r),o=jet(n),i=sU(this._getId(e.schema));if(Object.keys(e.schema).length===0||o!==i){var a=L0(o),c=this._refs[a];if(typeof c=="string")return aor.call(this,e,c,n);if(c instanceof iU)c.validate||this._compile(c),e=c;else if(c=this._schemas[a],c instanceof iU){if(c.validate||this._compile(c),a==L0(r))return{schema:c,root:e,baseId:i};e=c}else return;if(!e.schema)return;i=sU(this._getId(e.schema))}return Uet.call(this,n,i,e.schema,e)}function aor(e,r,n){var o=uU.call(this,e,r);if(o){var i=o.schema,a=o.baseId;e=o.root;var c=this._getId(i);return c&&(a=aU(a,c)),Uet.call(this,n,a,i,e)}}var cor=cU.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function Uet(e,r,n,o){if(e.fragment=e.fragment||"",e.fragment.slice(0,1)=="/"){for(var i=e.fragment.split("/"),a=1;a<i.length;a++){var c=i[a];if(c){if(c=cU.unescapeFragment(c),n=n[c],n===void 0)break;var u;if(!cor[c]&&(u=this._getId(n),u&&(r=aU(r,u)),n.$ref)){var l=aU(r,n.$ref),p=uU.call(this,o,l);p&&(n=p.schema,o=p.root,r=p.baseId)}}}if(n!==void 0&&n!==o.schema)return{schema:n,root:o,baseId:r}}}var uor=cU.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function Dle(e,r){if(r===!1)return!1;if(r===void 0||r===!0)return Cle(e);if(r)return Ale(e)<=r}function Cle(e){var r;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(r=e[n],typeof r=="object"&&!Cle(r))return!1}else for(var o in e)if(o=="$ref"||(r=e[o],typeof r=="object"&&!Cle(r)))return!1;return!0}function Ale(e){var r=0,n;if(Array.isArray(e)){for(var o=0;o<e.length;o++)if(n=e[o],typeof n=="object"&&(r+=Ale(n)),r==1/0)return 1/0}else for(var i in e){if(i=="$ref")return 1/0;if(uor[i])r++;else if(n=e[i],typeof n=="object"&&(r+=Ale(n)+1),r==1/0)return 1/0}return r}function sU(e,r){r!==!1&&(e=L0(e));var n=MO.parse(e);return jet(n)}function jet(e){return MO.serialize(e).split("#")[0]+"#"}var lor=/#\/?$/;function L0(e){return e?e.replace(lor,""):""}function aU(e,r){return r=L0(r),MO.resolve(e,r)}function por(e){var r=L0(this._getId(e)),n={"":r},o={"":sU(r,!1)},i={},a=this;return sor(e,{allKeys:!0},function(c,u,l,p,f,g,x){if(u!==""){var b=a._getId(c),E=n[p],S=o[p]+"/"+f;if(x!==void 0&&(S+="/"+(typeof x=="number"?x:cU.escapeFragment(x))),typeof b=="string"){b=E=L0(E?MO.resolve(E,b):b);var _=a._refs[b];if(typeof _=="string"&&(_=a._refs[_]),_&&_.schema){if(!Bet(c,_.schema))throw new Error('id "'+b+'" resolves to more than one schema')}else if(b!=L0(S))if(b[0]=="#"){if(i[b]&&!Bet(c,i[b]))throw new Error('id "'+b+'" resolves to more than one schema');i[b]=c}else a._refs[b]=S}n[u]=E,o[u]=S}}),i}});var pU=A((Twn,Het)=>{"use strict";var Ple=lU();Het.exports={Validation:Get(dor),MissingRef:Get(Ole)};function dor(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0}Ole.message=function(e,r){return"can't resolve reference "+r+" from id "+e};function Ole(e,r,n){this.message=n||Ole.message(e,r),this.missingRef=Ple.url(e,r),this.missingSchema=Ple.normalizeId(Ple.fullPath(this.missingRef))}function Get(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}});var Ile=A((Dwn,Wet)=>{"use strict";Wet.exports=function(e,r){r||(r={}),typeof r=="function"&&(r={cmp:r});var n=typeof r.cycles=="boolean"?r.cycles:!1,o=r.cmp&&function(a){return function(c){return function(u,l){var p={key:u,value:c[u]},f={key:l,value:c[l]};return a(p,f)}}}(r.cmp),i=[];return function a(c){if(c&&c.toJSON&&typeof c.toJSON=="function"&&(c=c.toJSON()),c!==void 0){if(typeof c=="number")return isFinite(c)?""+c:"null";if(typeof c!="object")return JSON.stringify(c);var u,l;if(Array.isArray(c)){for(l="[",u=0;u<c.length;u++)u&&(l+=","),l+=a(c[u])||"null";return l+"]"}if(c===null)return"null";if(i.indexOf(c)!==-1){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var p=i.push(c)-1,f=Object.keys(c).sort(o&&o(c));for(l="",u=0;u<f.length;u++){var g=f[u],x=a(c[g]);x&&(l&&(l+=","),l+=JSON.stringify(g)+":"+x)}return i.splice(p,1),"{"+l+"}"}}(e)}});var Rle=A((Cwn,Vet)=>{"use strict";Vet.exports=function(r,n,o){var i="",a=r.schema.$async===!0,c=r.util.schemaHasRulesExcept(r.schema,r.RULES.all,"$ref"),u=r.self._getId(r.schema);if(r.opts.strictKeywords){var l=r.util.schemaUnknownRules(r.schema,r.RULES.keywords);if(l){var p="unknown keyword: "+l;if(r.opts.strictKeywords==="log")r.logger.warn(p);else throw new Error(p)}}if(r.isTop&&(i+=" var validate = ",a&&(r.async=!0,i+="async "),i+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",u&&(r.opts.sourceCode||r.opts.processCode)&&(i+=" "+("/*# sourceURL="+u+" */")+" ")),typeof r.schema=="boolean"||!(c||r.schema.$ref)){var n="false schema",f=r.level,g=r.dataLevel,x=r.schema[n],b=r.schemaPath+r.util.getProperty(n),E=r.errSchemaPath+"/"+n,I=!r.opts.allErrors,G,S="data"+(g||""),R="valid"+f;if(r.schema===!1){r.isTop?I=!0:i+=" var "+R+" = false; ";var _=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(G||"false schema")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(E)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: 'boolean schema is false' "),r.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+r.schemaPath+" , data: "+S+" "),i+=" } "):i+=" {} ";var D=i;i=_.pop(),!r.compositeRule&&I?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else r.isTop?a?i+=" return data; ":i+=" validate.errors = null; return true; ":i+=" var "+R+" = true; ";return r.isTop&&(i+=" }; return validate; "),i}if(r.isTop){var O=r.isTop,f=r.level=0,g=r.dataLevel=0,S="data";if(r.rootId=r.resolve.fullPath(r.self._getId(r.root.schema)),r.baseId=r.baseId||r.rootId,delete r.isTop,r.dataPathArr=[""],r.schema.default!==void 0&&r.opts.useDefaults&&r.opts.strictDefaults){var C="default is ignored in the schema root";if(r.opts.strictDefaults==="log")r.logger.warn(C);else throw new Error(C)}i+=" var vErrors = null; ",i+=" var errors = 0; ",i+=" if (rootData === undefined) rootData = data; "}else{var f=r.level,g=r.dataLevel,S="data"+(g||"");if(u&&(r.baseId=r.resolve.url(r.baseId,u)),a&&!r.async)throw new Error("async schema in sync schema");i+=" var errs_"+f+" = errors;"}var R="valid"+f,I=!r.opts.allErrors,k="",j="",G,L=r.schema.type,H=Array.isArray(L);if(L&&r.opts.nullable&&r.schema.nullable===!0&&(H?L.indexOf("null")==-1&&(L=L.concat("null")):L!="null"&&(L=[L,"null"],H=!0)),H&&L.length==1&&(L=L[0],H=!1),r.schema.$ref&&c){if(r.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+r.errSchemaPath+'" (see option extendRefs)');r.opts.extendRefs!==!0&&(c=!1,r.logger.warn('$ref: keywords ignored in schema at path "'+r.errSchemaPath+'"'))}if(r.schema.$comment&&r.opts.$comment&&(i+=" "+r.RULES.all.$comment.code(r,"$comment")),L){if(r.opts.coerceTypes)var F=r.util.coerceToTypes(r.opts.coerceTypes,L);var Y=r.RULES.types[L];if(F||H||Y===!0||Y&&!Fo(Y)){var b=r.schemaPath+".type",E=r.errSchemaPath+"/type",b=r.schemaPath+".type",E=r.errSchemaPath+"/type",V=H?"checkDataTypes":"checkDataType";if(i+=" if ("+r.util[V](L,S,r.opts.strictNumbers,!0)+") { ",F){var Q="dataType"+f,q="coerced"+f;i+=" var "+Q+" = typeof "+S+"; var "+q+" = undefined; ",r.opts.coerceTypes=="array"&&(i+=" if ("+Q+" == 'object' && Array.isArray("+S+") && "+S+".length == 1) { "+S+" = "+S+"[0]; "+Q+" = typeof "+S+"; if ("+r.util.checkDataType(r.schema.type,S,r.opts.strictNumbers)+") "+q+" = "+S+"; } "),i+=" if ("+q+" !== undefined) ; ";var Z=F;if(Z)for(var ie,se=-1,le=Z.length-1;se<le;)ie=Z[se+=1],ie=="string"?i+=" else if ("+Q+" == 'number' || "+Q+" == 'boolean') "+q+" = '' + "+S+"; else if ("+S+" === null) "+q+" = ''; ":ie=="number"||ie=="integer"?(i+=" else if ("+Q+" == 'boolean' || "+S+" === null || ("+Q+" == 'string' && "+S+" && "+S+" == +"+S+" ",ie=="integer"&&(i+=" && !("+S+" % 1)"),i+=")) "+q+" = +"+S+"; "):ie=="boolean"?i+=" else if ("+S+" === 'false' || "+S+" === 0 || "+S+" === null) "+q+" = false; else if ("+S+" === 'true' || "+S+" === 1) "+q+" = true; ":ie=="null"?i+=" else if ("+S+" === '' || "+S+" === 0 || "+S+" === false) "+q+" = null; ":r.opts.coerceTypes=="array"&&ie=="array"&&(i+=" else if ("+Q+" == 'string' || "+Q+" == 'number' || "+Q+" == 'boolean' || "+S+" == null) "+q+" = ["+S+"]; ");i+=" else { ";var _=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(G||"type")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(E)+" , params: { type: '",H?i+=""+L.join(","):i+=""+L,i+="' } ",r.opts.messages!==!1&&(i+=" , message: 'should be ",H?i+=""+L.join(","):i+=""+L,i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+S+" "),i+=" } "):i+=" {} ";var D=i;i=_.pop(),!r.compositeRule&&I?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } if ("+q+" !== undefined) { ";var _e=g?"data"+(g-1||""):"parentData",Ge=g?r.dataPathArr[g]:"parentDataProperty";i+=" "+S+" = "+q+"; ",g||(i+="if ("+_e+" !== undefined)"),i+=" "+_e+"["+Ge+"] = "+q+"; } "}else{var _=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(G||"type")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(E)+" , params: { type: '",H?i+=""+L.join(","):i+=""+L,i+="' } ",r.opts.messages!==!1&&(i+=" , message: 'should be ",H?i+=""+L.join(","):i+=""+L,i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+S+" "),i+=" } "):i+=" {} ";var D=i;i=_.pop(),!r.compositeRule&&I?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}i+=" } "}}if(r.schema.$ref&&!c)i+=" "+r.RULES.all.$ref.code(r,"$ref")+" ",I&&(i+=" } if (errors === ",O?i+="0":i+="errs_"+f,i+=") { ",j+="}");else{var Mt=r.RULES;if(Mt){for(var Y,Zt=-1,kt=Mt.length-1;Zt<kt;)if(Y=Mt[Zt+=1],Fo(Y)){if(Y.type&&(i+=" if ("+r.util.checkDataType(Y.type,S,r.opts.strictNumbers)+") { "),r.opts.useDefaults){if(Y.type=="object"&&r.schema.properties){var x=r.schema.properties,Gt=Object.keys(x),$e=Gt;if($e)for(var Qe,mo=-1,xe=$e.length-1;mo<xe;){Qe=$e[mo+=1];var ze=x[Qe];if(ze.default!==void 0){var ge=S+r.util.getProperty(Qe);if(r.compositeRule){if(r.opts.strictDefaults){var C="default is ignored for: "+ge;if(r.opts.strictDefaults==="log")r.logger.warn(C);else throw new Error(C)}}else i+=" if ("+ge+" === undefined ",r.opts.useDefaults=="empty"&&(i+=" || "+ge+" === null || "+ge+" === '' "),i+=" ) "+ge+" = ",r.opts.useDefaults=="shared"?i+=" "+r.useDefault(ze.default)+" ":i+=" "+JSON.stringify(ze.default)+" ",i+="; "}}}else if(Y.type=="array"&&Array.isArray(r.schema.items)){var ut=r.schema.items;if(ut){for(var ze,se=-1,$t=ut.length-1;se<$t;)if(ze=ut[se+=1],ze.default!==void 0){var ge=S+"["+se+"]";if(r.compositeRule){if(r.opts.strictDefaults){var C="default is ignored for: "+ge;if(r.opts.strictDefaults==="log")r.logger.warn(C);else throw new Error(C)}}else i+=" if ("+ge+" === undefined ",r.opts.useDefaults=="empty"&&(i+=" || "+ge+" === null || "+ge+" === '' "),i+=" ) "+ge+" = ",r.opts.useDefaults=="shared"?i+=" "+r.useDefault(ze.default)+" ":i+=" "+JSON.stringify(ze.default)+" ",i+="; "}}}}var ht=Y.rules;if(ht){for(var nr,eo=-1,Bn=ht.length-1;eo<Bn;)if(nr=ht[eo+=1],Ji(nr)){var Ep=nr.code(r,nr.keyword,Y.type);Ep&&(i+=" "+Ep+" ",I&&(k+="}"))}}if(I&&(i+=" "+k+" ",k=""),Y.type&&(i+=" } ",L&&L===Y.type&&!F)){i+=" else { ";var b=r.schemaPath+".type",E=r.errSchemaPath+"/type",_=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(G||"type")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(E)+" , params: { type: '",H?i+=""+L.join(","):i+=""+L,i+="' } ",r.opts.messages!==!1&&(i+=" , message: 'should be ",H?i+=""+L.join(","):i+=""+L,i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+S+" "),i+=" } "):i+=" {} ";var D=i;i=_.pop(),!r.compositeRule&&I?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } "}I&&(i+=" if (errors === ",O?i+="0":i+="errs_"+f,i+=") { ",j+="}")}}}I&&(i+=" "+j+" "),O?(a?(i+=" if (errors === 0) return data; ",i+=" else throw new ValidationError(vErrors); "):(i+=" validate.errors = vErrors; ",i+=" return errors === 0; "),i+=" }; return validate;"):i+=" var "+R+" = errors === errs_"+f+";";function Fo(Mo){for(var pi=Mo.rules,fi=0;fi<pi.length;fi++)if(Ji(pi[fi]))return!0}function Ji(Mo){return r.schema[Mo.keyword]!==void 0||Mo.implements&&Yi(Mo)}function Yi(Mo){for(var pi=Mo.implements,fi=0;fi<pi.length;fi++)if(r.schema[pi[fi]]!==void 0)return!0}return i}});var Zet=A((Awn,Yet)=>{"use strict";var fU=lU(),mU=AE(),Ket=pU(),mor=Ile(),zet=Rle(),hor=mU.ucs2length,gor=nU(),yor=Ket.Validation;Yet.exports=Fle;function Fle(e,r,n,o){var i=this,a=this._opts,c=[void 0],u={},l=[],p={},f=[],g={},x=[];r=r||{schema:e,refVal:c,refs:u};var b=xor.call(this,e,r,o),E=this._compilations[b.index];if(b.compiling)return E.callValidate=C;var S=this._formats,_=this.RULES;try{var D=R(e,r,n,o);E.validate=D;var O=E.callValidate;return O&&(O.schema=D.schema,O.errors=null,O.refs=D.refs,O.refVal=D.refVal,O.root=D.root,O.$async=D.$async,a.sourceCode&&(O.source=D.source)),D}finally{bor.call(this,e,r,o)}function C(){var V=E.validate,Q=V.apply(this,arguments);return C.errors=V.errors,Q}function R(V,Q,q,Z){var ie=!Q||Q&&Q.schema==V;if(Q.schema!=r.schema)return Fle.call(i,V,Q,q,Z);var se=V.$async===!0,le=zet({isTop:!0,schema:V,isRoot:ie,baseId:Z,root:Q,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:Ket.MissingRef,RULES:_,validate:zet,util:mU,resolve:fU,resolveRef:I,usePattern:H,useDefault:F,useCustomRule:Y,opts:a,formats:S,logger:i.logger,self:i});le=dU(c,Sor)+dU(l,Eor)+dU(f,vor)+dU(x,wor)+le,a.processCode&&(le=a.processCode(le,V));var _e;try{var Ge=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",le);_e=Ge(i,_,S,r,c,f,x,gor,hor,yor),c[0]=_e}catch(Mt){throw i.logger.error("Error compiling schema, function code:",le),Mt}return _e.schema=V,_e.errors=null,_e.refs=u,_e.refVal=c,_e.root=ie?_e:Q,se&&(_e.$async=!0),a.sourceCode===!0&&(_e.source={code:le,patterns:l,defaults:f}),_e}function I(V,Q,q){Q=fU.url(V,Q);var Z=u[Q],ie,se;if(Z!==void 0)return ie=c[Z],se="refVal["+Z+"]",L(ie,se);if(!q&&r.refs){var le=r.refs[Q];if(le!==void 0)return ie=r.refVal[le],se=k(Q,ie),L(ie,se)}se=k(Q);var _e=fU.call(i,R,r,Q);if(_e===void 0){var Ge=n&&n[Q];Ge&&(_e=fU.inlineRef(Ge,a.inlineRefs)?Ge:Fle.call(i,Ge,r,n,V))}if(_e===void 0)j(Q);else return G(Q,_e),L(_e,se)}function k(V,Q){var q=c.length;return c[q]=Q,u[V]=q,"refVal"+q}function j(V){delete u[V]}function G(V,Q){var q=u[V];c[q]=Q}function L(V,Q){return typeof V=="object"||typeof V=="boolean"?{code:Q,schema:V,inline:!0}:{code:Q,$async:V&&!!V.$async}}function H(V){var Q=p[V];return Q===void 0&&(Q=p[V]=l.length,l[Q]=V),"pattern"+Q}function F(V){switch(typeof V){case"boolean":case"number":return""+V;case"string":return mU.toQuotedString(V);case"object":if(V===null)return"null";var Q=mor(V),q=g[Q];return q===void 0&&(q=g[Q]=f.length,f[q]=V),"default"+q}}function Y(V,Q,q,Z){if(i._opts.validateSchema!==!1){var ie=V.definition.dependencies;if(ie&&!ie.every(function($e){return Object.prototype.hasOwnProperty.call(q,$e)}))throw new Error("parent schema must have all required keywords: "+ie.join(","));var se=V.definition.validateSchema;if(se){var le=se(Q);if(!le){var _e="keyword schema is invalid: "+i.errorsText(se.errors);if(i._opts.validateSchema=="log")i.logger.error(_e);else throw new Error(_e)}}}var Ge=V.definition.compile,Mt=V.definition.inline,Zt=V.definition.macro,kt;if(Ge)kt=Ge.call(i,Q,q,Z);else if(Zt)kt=Zt.call(i,Q,q,Z),a.validateSchema!==!1&&i.validateSchema(kt,!0);else if(Mt)kt=Mt.call(i,Z,V.keyword,Q,q);else if(kt=V.definition.validate,!kt)return;if(kt===void 0)throw new Error('custom keyword "'+V.keyword+'"failed to compile');var Gt=x.length;return x[Gt]=kt,{code:"customRule"+Gt,validate:kt}}}function xor(e,r,n){var o=Jet.call(this,e,r,n);return o>=0?{index:o,compiling:!0}:(o=this._compilations.length,this._compilations[o]={schema:e,root:r,baseId:n},{index:o,compiling:!1})}function bor(e,r,n){var o=Jet.call(this,e,r,n);o>=0&&this._compilations.splice(o,1)}function Jet(e,r,n){for(var o=0;o<this._compilations.length;o++){var i=this._compilations[o];if(i.schema==e&&i.root==r&&i.baseId==n)return o}return-1}function Eor(e,r){return"var pattern"+e+" = new RegExp("+mU.toQuotedString(r[e])+");"}function vor(e){return"var default"+e+" = defaults["+e+"];"}function Sor(e,r){return r[e]===void 0?"":"var refVal"+e+" = refVal["+e+"];"}function wor(e){return"var customRule"+e+" = customRules["+e+"];"}function dU(e,r){if(!e.length)return"";for(var n="",o=0;o<e.length;o++)n+=r(o,e);return n}});var Xet=A((Pwn,Qet)=>{"use strict";var hU=Qet.exports=function(){this._cache={}};hU.prototype.put=function(r,n){this._cache[r]=n};hU.prototype.get=function(r){return this._cache[r]};hU.prototype.del=function(r){delete this._cache[r]};hU.prototype.clear=function(){this._cache={}}});var ptt=A((Own,ltt)=>{"use strict";var _or=AE(),Tor=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Dor=[0,31,28,31,30,31,30,31,31,30,31,30,31],Cor=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,ett=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,Aor=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,Por=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,ttt=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,rtt=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,ntt=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,ott=/^(?:\/(?:[^~/]|~0|~1)*)*$/,itt=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,stt=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;ltt.exports=gU;function gU(e){return e=e=="full"?"full":"fast",_or.copy(gU[e])}gU.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":ttt,url:rtt,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:ett,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:utt,uuid:ntt,"json-pointer":ott,"json-pointer-uri-fragment":itt,"relative-json-pointer":stt};gU.full={date:att,time:ctt,"date-time":Ror,uri:Mor,"uri-reference":Por,"uri-template":ttt,url:rtt,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:ett,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:utt,uuid:ntt,"json-pointer":ott,"json-pointer-uri-fragment":itt,"relative-json-pointer":stt};function Oor(e){return e%4===0&&(e%100!==0||e%400===0)}function att(e){var r=e.match(Tor);if(!r)return!1;var n=+r[1],o=+r[2],i=+r[3];return o>=1&&o<=12&&i>=1&&i<=(o==2&&Oor(n)?29:Dor[o])}function ctt(e,r){var n=e.match(Cor);if(!n)return!1;var o=n[1],i=n[2],a=n[3],c=n[5];return(o<=23&&i<=59&&a<=59||o==23&&i==59&&a==60)&&(!r||c)}var Ior=/t|\s/i;function Ror(e){var r=e.split(Ior);return r.length==2&&att(r[0])&&ctt(r[1],!0)}var For=/\/|:/;function Mor(e){return For.test(e)&&Aor.test(e)}var kor=/[^\\]\\Z/;function utt(e){if(kor.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var dtt=A((Iwn,ftt)=>{"use strict";ftt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.errSchemaPath+"/"+n,p=!r.opts.allErrors,f="data"+(c||""),g="valid"+a,x,b;if(u=="#"||u=="#/")r.isRoot?(x=r.async,b="validate"):(x=r.root.schema.$async===!0,b="root.refVal[0]");else{var E=r.resolveRef(r.baseId,u,r.isRoot);if(E===void 0){var S=r.MissingRefError.message(r.baseId,u);if(r.opts.missingRefs=="fail"){r.logger.error(S);var _=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(l)+" , params: { ref: '"+r.util.escapeQuotes(u)+"' } ",r.opts.messages!==!1&&(i+=" , message: 'can\\'t resolve reference "+r.util.escapeQuotes(u)+"' "),r.opts.verbose&&(i+=" , schema: "+r.util.toQuotedString(u)+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var D=i;i=_.pop(),!r.compositeRule&&p?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",p&&(i+=" if (false) { ")}else if(r.opts.missingRefs=="ignore")r.logger.warn(S),p&&(i+=" if (true) { ");else throw new r.MissingRefError(r.baseId,u,S)}else if(E.inline){var O=r.util.copy(r);O.level++;var C="valid"+O.level;O.schema=E.schema,O.schemaPath="",O.errSchemaPath=u;var R=r.validate(O).replace(/validate\.schema/g,E.code);i+=" "+R+" ",p&&(i+=" if ("+C+") { ")}else x=E.$async===!0||r.async&&E.$async!==!1,b=E.code}if(b){var _=_||[];_.push(i),i="",r.opts.passContext?i+=" "+b+".call(this, ":i+=" "+b+"( ",i+=" "+f+", (dataPath || '')",r.errorPath!='""'&&(i+=" + "+r.errorPath);var I=c?"data"+(c-1||""):"parentData",k=c?r.dataPathArr[c]:"parentDataProperty";i+=" , "+I+" , "+k+", rootData) ";var j=i;if(i=_.pop(),x){if(!r.async)throw new Error("async schema referenced by sync schema");p&&(i+=" var "+g+"; "),i+=" try { await "+j+"; ",p&&(i+=" "+g+" = true; "),i+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",p&&(i+=" "+g+" = false; "),i+=" } ",p&&(i+=" if ("+g+") { ")}else i+=" if (!"+j+") { if (vErrors === null) vErrors = "+b+".errors; else vErrors = vErrors.concat("+b+".errors); errors = vErrors.length; } ",p&&(i+=" else { ")}return i}});var htt=A((Rwn,mtt)=>{"use strict";mtt.exports=function(r,n,o){var i=" ",a=r.schema[n],c=r.schemaPath+r.util.getProperty(n),u=r.errSchemaPath+"/"+n,l=!r.opts.allErrors,p=r.util.copy(r),f="";p.level++;var g="valid"+p.level,x=p.baseId,b=!0,E=a;if(E)for(var S,_=-1,D=E.length-1;_<D;)S=E[_+=1],(r.opts.strictKeywords?typeof S=="object"&&Object.keys(S).length>0||S===!1:r.util.schemaHasRules(S,r.RULES.all))&&(b=!1,p.schema=S,p.schemaPath=c+"["+_+"]",p.errSchemaPath=u+"/"+_,i+=" "+r.validate(p)+" ",p.baseId=x,l&&(i+=" if ("+g+") { ",f+="}"));return l&&(b?i+=" if (true) { ":i+=" "+f.slice(0,-1)+" "),i}});var ytt=A((Fwn,gtt)=>{"use strict";gtt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b="errs__"+a,E=r.util.copy(r),S="";E.level++;var _="valid"+E.level,D=u.every(function(G){return r.opts.strictKeywords?typeof G=="object"&&Object.keys(G).length>0||G===!1:r.util.schemaHasRules(G,r.RULES.all)});if(D){var O=E.baseId;i+=" var "+b+" = errors; var "+x+" = false; ";var C=r.compositeRule;r.compositeRule=E.compositeRule=!0;var R=u;if(R)for(var I,k=-1,j=R.length-1;k<j;)I=R[k+=1],E.schema=I,E.schemaPath=l+"["+k+"]",E.errSchemaPath=p+"/"+k,i+=" "+r.validate(E)+" ",E.baseId=O,i+=" "+x+" = "+x+" || "+_+"; if (!"+x+") { ",S+="}";r.compositeRule=E.compositeRule=C,i+=" "+S+" if (!"+x+") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: 'should match some schema in anyOf' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&f&&(r.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } else { errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; } ",r.opts.allErrors&&(i+=" } ")}else f&&(i+=" if (true) { ");return i}});var btt=A((Mwn,xtt)=>{"use strict";xtt.exports=function(r,n,o){var i=" ",a=r.schema[n],c=r.errSchemaPath+"/"+n,u=!r.opts.allErrors,l=r.util.toQuotedString(a);return r.opts.$comment===!0?i+=" console.log("+l+");":typeof r.opts.$comment=="function"&&(i+=" self._opts.$comment("+l+", "+r.util.toQuotedString(c)+", validate.root.schema);"),i}});var vtt=A((kwn,Ett)=>{"use strict";Ett.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b=r.opts.$data&&u&&u.$data,E;b?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",E="schema"+a):E=u,b||(i+=" var schema"+a+" = validate.schema"+l+";"),i+="var "+x+" = equal("+g+", schema"+a+"); if (!"+x+") { ";var S=S||[];S.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'const' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { allowedValue: schema"+a+" } ",r.opts.messages!==!1&&(i+=" , message: 'should be equal to constant' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var _=i;return i=S.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+_+"]); ":i+=" validate.errors = ["+_+"]; return false; ":i+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",f&&(i+=" else { "),i}});var wtt=A(($wn,Stt)=>{"use strict";Stt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b="errs__"+a,E=r.util.copy(r),S="";E.level++;var _="valid"+E.level,D="i"+a,O=E.dataLevel=r.dataLevel+1,C="data"+O,R=r.baseId,I=r.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:r.util.schemaHasRules(u,r.RULES.all);if(i+="var "+b+" = errors;var "+x+";",I){var k=r.compositeRule;r.compositeRule=E.compositeRule=!0,E.schema=u,E.schemaPath=l,E.errSchemaPath=p,i+=" var "+_+" = false; for (var "+D+" = 0; "+D+" < "+g+".length; "+D+"++) { ",E.errorPath=r.util.getPathExpr(r.errorPath,D,r.opts.jsonPointers,!0);var j=g+"["+D+"]";E.dataPathArr[O]=D;var G=r.validate(E);E.baseId=R,r.util.varOccurences(G,C)<2?i+=" "+r.util.varReplace(G,C,j)+" ":i+=" var "+C+" = "+j+"; "+G+" ",i+=" if ("+_+") break; } ",r.compositeRule=E.compositeRule=k,i+=" "+S+" if (!"+_+") {"}else i+=" if ("+g+".length == 0) {";var L=L||[];L.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: 'should contain a valid item' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var H=i;return i=L.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+H+"]); ":i+=" validate.errors = ["+H+"]; return false; ":i+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { ",I&&(i+=" errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; } "),r.opts.allErrors&&(i+=" } "),i}});var Ttt=A((Nwn,_tt)=>{"use strict";_tt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="errs__"+a,b=r.util.copy(r),E="";b.level++;var S="valid"+b.level,_={},D={},O=r.opts.ownProperties;for(k in u)if(k!="__proto__"){var C=u[k],R=Array.isArray(C)?D:_;R[k]=C}i+="var "+x+" = errors;";var I=r.errorPath;i+="var missing"+a+";";for(var k in D)if(R=D[k],R.length){if(i+=" if ( "+g+r.util.getProperty(k)+" !== undefined ",O&&(i+=" && Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(k)+"') "),f){i+=" && ( ";var j=R;if(j)for(var G,L=-1,H=j.length-1;L<H;){G=j[L+=1],L&&(i+=" || ");var F=r.util.getProperty(G),Y=g+F;i+=" ( ( "+Y+" === undefined ",O&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(G)+"') "),i+=") && (missing"+a+" = "+r.util.toQuotedString(r.opts.jsonPointers?G:F)+") ) "}i+=")) { ";var V="missing"+a,Q="' + "+V+" + '";r.opts._errorDataPathProperty&&(r.errorPath=r.opts.jsonPointers?r.util.getPathExpr(I,V,!0):I+" + "+V);var q=q||[];q.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { property: '"+r.util.escapeQuotes(k)+"', missingProperty: '"+Q+"', depsCount: "+R.length+", deps: '"+r.util.escapeQuotes(R.length==1?R[0]:R.join(", "))+"' } ",r.opts.messages!==!1&&(i+=" , message: 'should have ",R.length==1?i+="property "+r.util.escapeQuotes(R[0]):i+="properties "+r.util.escapeQuotes(R.join(", ")),i+=" when property "+r.util.escapeQuotes(k)+" is present' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var Z=i;i=q.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+Z+"]); ":i+=" validate.errors = ["+Z+"]; return false; ":i+=" var err = "+Z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{i+=" ) { ";var ie=R;if(ie)for(var G,se=-1,le=ie.length-1;se<le;){G=ie[se+=1];var F=r.util.getProperty(G),Q=r.util.escapeQuotes(G),Y=g+F;r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPath(I,G,r.opts.jsonPointers)),i+=" if ( "+Y+" === undefined ",O&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(G)+"') "),i+=") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { property: '"+r.util.escapeQuotes(k)+"', missingProperty: '"+Q+"', depsCount: "+R.length+", deps: '"+r.util.escapeQuotes(R.length==1?R[0]:R.join(", "))+"' } ",r.opts.messages!==!1&&(i+=" , message: 'should have ",R.length==1?i+="property "+r.util.escapeQuotes(R[0]):i+="properties "+r.util.escapeQuotes(R.join(", ")),i+=" when property "+r.util.escapeQuotes(k)+" is present' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}i+=" } ",f&&(E+="}",i+=" else { ")}r.errorPath=I;var _e=b.baseId;for(var k in _){var C=_[k];(r.opts.strictKeywords?typeof C=="object"&&Object.keys(C).length>0||C===!1:r.util.schemaHasRules(C,r.RULES.all))&&(i+=" "+S+" = true; if ( "+g+r.util.getProperty(k)+" !== undefined ",O&&(i+=" && Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(k)+"') "),i+=") { ",b.schema=C,b.schemaPath=l+r.util.getProperty(k),b.errSchemaPath=p+"/"+r.util.escapeFragment(k),i+=" "+r.validate(b)+" ",b.baseId=_e,i+=" } ",f&&(i+=" if ("+S+") { ",E+="}"))}return f&&(i+=" "+E+" if ("+x+" == errors) {"),i}});var Ctt=A((Lwn,Dtt)=>{"use strict";Dtt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b=r.opts.$data&&u&&u.$data,E;b?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",E="schema"+a):E=u;var S="i"+a,_="schema"+a;b||(i+=" var "+_+" = validate.schema"+l+";"),i+="var "+x+";",b&&(i+=" if (schema"+a+" === undefined) "+x+" = true; else if (!Array.isArray(schema"+a+")) "+x+" = false; else {"),i+=""+x+" = false;for (var "+S+"=0; "+S+"<"+_+".length; "+S+"++) if (equal("+g+", "+_+"["+S+"])) { "+x+" = true; break; }",b&&(i+=" } "),i+=" if (!"+x+") { ";var D=D||[];D.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { allowedValues: schema"+a+" } ",r.opts.messages!==!1&&(i+=" , message: 'should be equal to one of the allowed values' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var O=i;return i=D.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+O+"]); ":i+=" validate.errors = ["+O+"]; return false; ":i+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",f&&(i+=" else { "),i}});var Ptt=A((Bwn,Att)=>{"use strict";Att.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||"");if(r.opts.format===!1)return f&&(i+=" if (true) { "),i;var x=r.opts.$data&&u&&u.$data,b;x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u;var E=r.opts.unknownFormats,S=Array.isArray(E);if(x){var _="format"+a,D="isObject"+a,O="formatType"+a;i+=" var "+_+" = formats["+b+"]; var "+D+" = typeof "+_+" == 'object' && !("+_+" instanceof RegExp) && "+_+".validate; var "+O+" = "+D+" && "+_+".type || 'string'; if ("+D+") { ",r.async&&(i+=" var async"+a+" = "+_+".async; "),i+=" "+_+" = "+_+".validate; } if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'string') || "),i+=" (",E!="ignore"&&(i+=" ("+b+" && !"+_+" ",S&&(i+=" && self._opts.unknownFormats.indexOf("+b+") == -1 "),i+=") || "),i+=" ("+_+" && "+O+" == '"+o+"' && !(typeof "+_+" == 'function' ? ",r.async?i+=" (async"+a+" ? await "+_+"("+g+") : "+_+"("+g+")) ":i+=" "+_+"("+g+") ",i+=" : "+_+".test("+g+"))))) {"}else{var _=r.formats[u];if(!_){if(E=="ignore")return r.logger.warn('unknown format "'+u+'" ignored in schema at path "'+r.errSchemaPath+'"'),f&&(i+=" if (true) { "),i;if(S&&E.indexOf(u)>=0)return f&&(i+=" if (true) { "),i;throw new Error('unknown format "'+u+'" is used in schema at path "'+r.errSchemaPath+'"')}var D=typeof _=="object"&&!(_ instanceof RegExp)&&_.validate,O=D&&_.type||"string";if(D){var C=_.async===!0;_=_.validate}if(O!=o)return f&&(i+=" if (true) { "),i;if(C){if(!r.async)throw new Error("async format in sync schema");var R="formats"+r.util.getProperty(u)+".validate";i+=" if (!(await "+R+"("+g+"))) { "}else{i+=" if (! ";var R="formats"+r.util.getProperty(u);D&&(R+=".validate"),typeof _=="function"?i+=" "+R+"("+g+") ":i+=" "+R+".test("+g+") ",i+=") { "}}var I=I||[];I.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'format' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { format: ",x?i+=""+b:i+=""+r.util.toQuotedString(u),i+=" } ",r.opts.messages!==!1&&(i+=` , message: 'should match format "`,x?i+="' + "+b+" + '":i+=""+r.util.escapeQuotes(u),i+=`"' `),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+r.util.toQuotedString(u),i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var k=i;return i=I.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+k+"]); ":i+=" validate.errors = ["+k+"]; return false; ":i+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",f&&(i+=" else { "),i}});var Itt=A((Uwn,Ott)=>{"use strict";Ott.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b="errs__"+a,E=r.util.copy(r);E.level++;var S="valid"+E.level,_=r.schema.then,D=r.schema.else,O=_!==void 0&&(r.opts.strictKeywords?typeof _=="object"&&Object.keys(_).length>0||_===!1:r.util.schemaHasRules(_,r.RULES.all)),C=D!==void 0&&(r.opts.strictKeywords?typeof D=="object"&&Object.keys(D).length>0||D===!1:r.util.schemaHasRules(D,r.RULES.all)),R=E.baseId;if(O||C){var I;E.createErrors=!1,E.schema=u,E.schemaPath=l,E.errSchemaPath=p,i+=" var "+b+" = errors; var "+x+" = true; ";var k=r.compositeRule;r.compositeRule=E.compositeRule=!0,i+=" "+r.validate(E)+" ",E.baseId=R,E.createErrors=!0,i+=" errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; } ",r.compositeRule=E.compositeRule=k,O?(i+=" if ("+S+") { ",E.schema=r.schema.then,E.schemaPath=r.schemaPath+".then",E.errSchemaPath=r.errSchemaPath+"/then",i+=" "+r.validate(E)+" ",E.baseId=R,i+=" "+x+" = "+S+"; ",O&&C?(I="ifClause"+a,i+=" var "+I+" = 'then'; "):I="'then'",i+=" } ",C&&(i+=" else { ")):i+=" if (!"+S+") { ",C&&(E.schema=r.schema.else,E.schemaPath=r.schemaPath+".else",E.errSchemaPath=r.errSchemaPath+"/else",i+=" "+r.validate(E)+" ",E.baseId=R,i+=" "+x+" = "+S+"; ",O&&C?(I="ifClause"+a,i+=" var "+I+" = 'else'; "):I="'else'",i+=" } "),i+=" if (!"+x+") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'if' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { failingKeyword: "+I+" } ",r.opts.messages!==!1&&(i+=` , message: 'should match "' + `+I+` + '" schema' `),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&f&&(r.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } ",f&&(i+=" else { ")}else f&&(i+=" if (true) { ");return i}});var Ftt=A((jwn,Rtt)=>{"use strict";Rtt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b="errs__"+a,E=r.util.copy(r),S="";E.level++;var _="valid"+E.level,D="i"+a,O=E.dataLevel=r.dataLevel+1,C="data"+O,R=r.baseId;if(i+="var "+b+" = errors;var "+x+";",Array.isArray(u)){var I=r.schema.additionalItems;if(I===!1){i+=" "+x+" = "+g+".length <= "+u.length+"; ";var k=p;p=r.errSchemaPath+"/additionalItems",i+=" if (!"+x+") { ";var j=j||[];j.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { limit: "+u.length+" } ",r.opts.messages!==!1&&(i+=" , message: 'should NOT have more than "+u.length+" items' "),r.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var G=i;i=j.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+G+"]); ":i+=" validate.errors = ["+G+"]; return false; ":i+=" var err = "+G+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",p=k,f&&(S+="}",i+=" else { ")}var L=u;if(L){for(var H,F=-1,Y=L.length-1;F<Y;)if(H=L[F+=1],r.opts.strictKeywords?typeof H=="object"&&Object.keys(H).length>0||H===!1:r.util.schemaHasRules(H,r.RULES.all)){i+=" "+_+" = true; if ("+g+".length > "+F+") { ";var V=g+"["+F+"]";E.schema=H,E.schemaPath=l+"["+F+"]",E.errSchemaPath=p+"/"+F,E.errorPath=r.util.getPathExpr(r.errorPath,F,r.opts.jsonPointers,!0),E.dataPathArr[O]=F;var Q=r.validate(E);E.baseId=R,r.util.varOccurences(Q,C)<2?i+=" "+r.util.varReplace(Q,C,V)+" ":i+=" var "+C+" = "+V+"; "+Q+" ",i+=" } ",f&&(i+=" if ("+_+") { ",S+="}")}}if(typeof I=="object"&&(r.opts.strictKeywords?typeof I=="object"&&Object.keys(I).length>0||I===!1:r.util.schemaHasRules(I,r.RULES.all))){E.schema=I,E.schemaPath=r.schemaPath+".additionalItems",E.errSchemaPath=r.errSchemaPath+"/additionalItems",i+=" "+_+" = true; if ("+g+".length > "+u.length+") { for (var "+D+" = "+u.length+"; "+D+" < "+g+".length; "+D+"++) { ",E.errorPath=r.util.getPathExpr(r.errorPath,D,r.opts.jsonPointers,!0);var V=g+"["+D+"]";E.dataPathArr[O]=D;var Q=r.validate(E);E.baseId=R,r.util.varOccurences(Q,C)<2?i+=" "+r.util.varReplace(Q,C,V)+" ":i+=" var "+C+" = "+V+"; "+Q+" ",f&&(i+=" if (!"+_+") break; "),i+=" } } ",f&&(i+=" if ("+_+") { ",S+="}")}}else if(r.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:r.util.schemaHasRules(u,r.RULES.all)){E.schema=u,E.schemaPath=l,E.errSchemaPath=p,i+=" for (var "+D+" = 0; "+D+" < "+g+".length; "+D+"++) { ",E.errorPath=r.util.getPathExpr(r.errorPath,D,r.opts.jsonPointers,!0);var V=g+"["+D+"]";E.dataPathArr[O]=D;var Q=r.validate(E);E.baseId=R,r.util.varOccurences(Q,C)<2?i+=" "+r.util.varReplace(Q,C,V)+" ":i+=" var "+C+" = "+V+"; "+Q+" ",f&&(i+=" if (!"+_+") break; "),i+=" }"}return f&&(i+=" "+S+" if ("+b+" == errors) {"),i}});var Mle=A((qwn,Mtt)=>{"use strict";Mtt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,R,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u;var E=n=="maximum",S=E?"exclusiveMaximum":"exclusiveMinimum",_=r.schema[S],D=r.opts.$data&&_&&_.$data,O=E?"<":">",C=E?">":"<",R=void 0;if(!(x||typeof u=="number"||u===void 0))throw new Error(n+" must be number");if(!(D||_===void 0||typeof _=="number"||typeof _=="boolean"))throw new Error(S+" must be number or boolean");if(D){var I=r.util.getData(_.$data,c,r.dataPathArr),k="exclusive"+a,j="exclType"+a,G="exclIsNumber"+a,L="op"+a,H="' + "+L+" + '";i+=" var schemaExcl"+a+" = "+I+"; ",I="schemaExcl"+a,i+=" var "+k+"; var "+j+" = typeof "+I+"; if ("+j+" != 'boolean' && "+j+" != 'undefined' && "+j+" != 'number') { ";var R=S,F=F||[];F.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(R||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: '"+S+" should be boolean' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var Y=i;i=F.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+Y+"]); ":i+=" validate.errors = ["+Y+"]; return false; ":i+=" var err = "+Y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),i+=" "+j+" == 'number' ? ( ("+k+" = "+b+" === undefined || "+I+" "+O+"= "+b+") ? "+g+" "+C+"= "+I+" : "+g+" "+C+" "+b+" ) : ( ("+k+" = "+I+" === true) ? "+g+" "+C+"= "+b+" : "+g+" "+C+" "+b+" ) || "+g+" !== "+g+") { var op"+a+" = "+k+" ? '"+O+"' : '"+O+"='; ",u===void 0&&(R=S,p=r.errSchemaPath+"/"+S,b=I,x=D)}else{var G=typeof _=="number",H=O;if(G&&x){var L="'"+H+"'";i+=" if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),i+=" ( "+b+" === undefined || "+_+" "+O+"= "+b+" ? "+g+" "+C+"= "+_+" : "+g+" "+C+" "+b+" ) || "+g+" !== "+g+") { "}else{G&&u===void 0?(k=!0,R=S,p=r.errSchemaPath+"/"+S,b=_,C+="="):(G&&(b=Math[E?"min":"max"](_,u)),_===(G?b:!0)?(k=!0,R=S,p=r.errSchemaPath+"/"+S,C+="="):(k=!1,H+="="));var L="'"+H+"'";i+=" if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),i+=" "+g+" "+C+" "+b+" || "+g+" !== "+g+") { "}}R=R||n;var F=F||[];F.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(R||"_limit")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { comparison: "+L+", limit: "+b+", exclusive: "+k+" } ",r.opts.messages!==!1&&(i+=" , message: 'should be "+H+" ",x?i+="' + "+b:i+=""+b+"'"),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var Y=i;return i=F.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+Y+"]); ":i+=" validate.errors = ["+Y+"]; return false; ":i+=" var err = "+Y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",f&&(i+=" else { "),i}});var kle=A((Gwn,ktt)=>{"use strict";ktt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,S,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;if(x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u,!(x||typeof u=="number"))throw new Error(n+" must be number");var E=n=="maxItems"?">":"<";i+="if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),i+=" "+g+".length "+E+" "+b+") { ";var S=n,_=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(S||"_limitItems")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { limit: "+b+" } ",r.opts.messages!==!1&&(i+=" , message: 'should NOT have ",n=="maxItems"?i+="more":i+="fewer",i+=" than ",x?i+="' + "+b+" + '":i+=""+u,i+=" items' "),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var D=i;return i=_.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",f&&(i+=" else { "),i}});var $le=A((Hwn,$tt)=>{"use strict";$tt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,S,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;if(x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u,!(x||typeof u=="number"))throw new Error(n+" must be number");var E=n=="maxLength"?">":"<";i+="if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),r.opts.unicode===!1?i+=" "+g+".length ":i+=" ucs2length("+g+") ",i+=" "+E+" "+b+") { ";var S=n,_=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(S||"_limitLength")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { limit: "+b+" } ",r.opts.messages!==!1&&(i+=" , message: 'should NOT be ",n=="maxLength"?i+="longer":i+="shorter",i+=" than ",x?i+="' + "+b+" + '":i+=""+u,i+=" characters' "),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var D=i;return i=_.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",f&&(i+=" else { "),i}});var Nle=A((Wwn,Ntt)=>{"use strict";Ntt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,S,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;if(x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u,!(x||typeof u=="number"))throw new Error(n+" must be number");var E=n=="maxProperties"?">":"<";i+="if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),i+=" Object.keys("+g+").length "+E+" "+b+") { ";var S=n,_=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(S||"_limitProperties")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { limit: "+b+" } ",r.opts.messages!==!1&&(i+=" , message: 'should NOT have ",n=="maxProperties"?i+="more":i+="fewer",i+=" than ",x?i+="' + "+b+" + '":i+=""+u,i+=" properties' "),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var D=i;return i=_.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",f&&(i+=" else { "),i}});var Btt=A((Vwn,Ltt)=>{"use strict";Ltt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;if(x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u,!(x||typeof u=="number"))throw new Error(n+" must be number");i+="var division"+a+";if (",x&&(i+=" "+b+" !== undefined && ( typeof "+b+" != 'number' || "),i+=" (division"+a+" = "+g+" / "+b+", ",r.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+a+") - division"+a+") > 1e-"+r.opts.multipleOfPrecision+" ":i+=" division"+a+" !== parseInt(division"+a+") ",i+=" ) ",x&&(i+=" ) "),i+=" ) { ";var E=E||[];E.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { multipleOf: "+b+" } ",r.opts.messages!==!1&&(i+=" , message: 'should be multiple of ",x?i+="' + "+b:i+=""+b+"'"),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var S=i;return i=E.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+S+"]); ":i+=" validate.errors = ["+S+"]; return false; ":i+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",f&&(i+=" else { "),i}});var jtt=A((zwn,Utt)=>{"use strict";Utt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="errs__"+a,b=r.util.copy(r);b.level++;var E="valid"+b.level;if(r.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:r.util.schemaHasRules(u,r.RULES.all)){b.schema=u,b.schemaPath=l,b.errSchemaPath=p,i+=" var "+x+" = errors; ";var S=r.compositeRule;r.compositeRule=b.compositeRule=!0,b.createErrors=!1;var _;b.opts.allErrors&&(_=b.opts.allErrors,b.opts.allErrors=!1),i+=" "+r.validate(b)+" ",b.createErrors=!0,_&&(b.opts.allErrors=_),r.compositeRule=b.compositeRule=S,i+=" if ("+E+") { ";var D=D||[];D.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var O=i;i=D.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+O+"]); ":i+=" validate.errors = ["+O+"]; return false; ":i+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { errors = "+x+"; if (vErrors !== null) { if ("+x+") vErrors.length = "+x+"; else vErrors = null; } ",r.opts.allErrors&&(i+=" } ")}else i+=" var err = ",r.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",f&&(i+=" if (false) { ");return i}});var Gtt=A((Kwn,qtt)=>{"use strict";qtt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b="errs__"+a,E=r.util.copy(r),S="";E.level++;var _="valid"+E.level,D=E.baseId,O="prevValid"+a,C="passingSchemas"+a;i+="var "+b+" = errors , "+O+" = false , "+x+" = false , "+C+" = null; ";var R=r.compositeRule;r.compositeRule=E.compositeRule=!0;var I=u;if(I)for(var k,j=-1,G=I.length-1;j<G;)k=I[j+=1],(r.opts.strictKeywords?typeof k=="object"&&Object.keys(k).length>0||k===!1:r.util.schemaHasRules(k,r.RULES.all))?(E.schema=k,E.schemaPath=l+"["+j+"]",E.errSchemaPath=p+"/"+j,i+=" "+r.validate(E)+" ",E.baseId=D):i+=" var "+_+" = true; ",j&&(i+=" if ("+_+" && "+O+") { "+x+" = false; "+C+" = ["+C+", "+j+"]; } else { ",S+="}"),i+=" if ("+_+") { "+x+" = "+O+" = true; "+C+" = "+j+"; }";return r.compositeRule=E.compositeRule=R,i+=""+S+"if (!"+x+") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { passingSchemas: "+C+" } ",r.opts.messages!==!1&&(i+=" , message: 'should match exactly one schema in oneOf' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&f&&(r.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+="} else { errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; }",r.opts.allErrors&&(i+=" } "),i}});var Wtt=A((Jwn,Htt)=>{"use strict";Htt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u;var E=x?"(new RegExp("+b+"))":r.usePattern(u);i+="if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'string') || "),i+=" !"+E+".test("+g+") ) { ";var S=S||[];S.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { pattern: ",x?i+=""+b:i+=""+r.util.toQuotedString(u),i+=" } ",r.opts.messages!==!1&&(i+=` , message: 'should match pattern "`,x?i+="' + "+b+" + '":i+=""+r.util.escapeQuotes(u),i+=`"' `),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+r.util.toQuotedString(u),i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var _=i;return i=S.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+_+"]); ":i+=" validate.errors = ["+_+"]; return false; ":i+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",f&&(i+=" else { "),i}});var ztt=A((Ywn,Vtt)=>{"use strict";Vtt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="errs__"+a,b=r.util.copy(r),E="";b.level++;var S="valid"+b.level,_="key"+a,D="idx"+a,O=b.dataLevel=r.dataLevel+1,C="data"+O,R="dataProperties"+a,I=Object.keys(u||{}).filter(se),k=r.schema.patternProperties||{},j=Object.keys(k).filter(se),G=r.schema.additionalProperties,L=I.length||j.length,H=G===!1,F=typeof G=="object"&&Object.keys(G).length,Y=r.opts.removeAdditional,V=H||F||Y,Q=r.opts.ownProperties,q=r.baseId,Z=r.schema.required;if(Z&&!(r.opts.$data&&Z.$data)&&Z.length<r.opts.loopRequired)var ie=r.util.toHash(Z);function se(ha){return ha!=="__proto__"}if(i+="var "+x+" = errors;var "+S+" = true;",Q&&(i+=" var "+R+" = undefined;"),V){if(Q?i+=" "+R+" = "+R+" || Object.keys("+g+"); for (var "+D+"=0; "+D+"<"+R+".length; "+D+"++) { var "+_+" = "+R+"["+D+"]; ":i+=" for (var "+_+" in "+g+") { ",L){if(i+=" var isAdditional"+a+" = !(false ",I.length)if(I.length>8)i+=" || validate.schema"+l+".hasOwnProperty("+_+") ";else{var le=I;if(le)for(var _e,Ge=-1,Mt=le.length-1;Ge<Mt;)_e=le[Ge+=1],i+=" || "+_+" == "+r.util.toQuotedString(_e)+" "}if(j.length){var Zt=j;if(Zt)for(var kt,Gt=-1,$e=Zt.length-1;Gt<$e;)kt=Zt[Gt+=1],i+=" || "+r.usePattern(kt)+".test("+_+") "}i+=" ); if (isAdditional"+a+") { "}if(Y=="all")i+=" delete "+g+"["+_+"]; ";else{var Qe=r.errorPath,mo="' + "+_+" + '";if(r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPathExpr(r.errorPath,_,r.opts.jsonPointers)),H)if(Y)i+=" delete "+g+"["+_+"]; ";else{i+=" "+S+" = false; ";var xe=p;p=r.errSchemaPath+"/additionalProperties";var ze=ze||[];ze.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { additionalProperty: '"+mo+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is an invalid additional property":i+="should NOT have additional properties",i+="' "),r.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var ge=i;i=ze.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+ge+"]); ":i+=" validate.errors = ["+ge+"]; return false; ":i+=" var err = "+ge+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",p=xe,f&&(i+=" break; ")}else if(F)if(Y=="failing"){i+=" var "+x+" = errors; ";var ut=r.compositeRule;r.compositeRule=b.compositeRule=!0,b.schema=G,b.schemaPath=r.schemaPath+".additionalProperties",b.errSchemaPath=r.errSchemaPath+"/additionalProperties",b.errorPath=r.opts._errorDataPathProperty?r.errorPath:r.util.getPathExpr(r.errorPath,_,r.opts.jsonPointers);var $t=g+"["+_+"]";b.dataPathArr[O]=_;var ht=r.validate(b);b.baseId=q,r.util.varOccurences(ht,C)<2?i+=" "+r.util.varReplace(ht,C,$t)+" ":i+=" var "+C+" = "+$t+"; "+ht+" ",i+=" if (!"+S+") { errors = "+x+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+g+"["+_+"]; } ",r.compositeRule=b.compositeRule=ut}else{b.schema=G,b.schemaPath=r.schemaPath+".additionalProperties",b.errSchemaPath=r.errSchemaPath+"/additionalProperties",b.errorPath=r.opts._errorDataPathProperty?r.errorPath:r.util.getPathExpr(r.errorPath,_,r.opts.jsonPointers);var $t=g+"["+_+"]";b.dataPathArr[O]=_;var ht=r.validate(b);b.baseId=q,r.util.varOccurences(ht,C)<2?i+=" "+r.util.varReplace(ht,C,$t)+" ":i+=" var "+C+" = "+$t+"; "+ht+" ",f&&(i+=" if (!"+S+") break; ")}r.errorPath=Qe}L&&(i+=" } "),i+=" } ",f&&(i+=" if ("+S+") { ",E+="}")}var nr=r.opts.useDefaults&&!r.compositeRule;if(I.length){var eo=I;if(eo)for(var _e,Bn=-1,Ep=eo.length-1;Bn<Ep;){_e=eo[Bn+=1];var Fo=u[_e];if(r.opts.strictKeywords?typeof Fo=="object"&&Object.keys(Fo).length>0||Fo===!1:r.util.schemaHasRules(Fo,r.RULES.all)){var Ji=r.util.getProperty(_e),$t=g+Ji,Yi=nr&&Fo.default!==void 0;b.schema=Fo,b.schemaPath=l+Ji,b.errSchemaPath=p+"/"+r.util.escapeFragment(_e),b.errorPath=r.util.getPath(r.errorPath,_e,r.opts.jsonPointers),b.dataPathArr[O]=r.util.toQuotedString(_e);var ht=r.validate(b);if(b.baseId=q,r.util.varOccurences(ht,C)<2){ht=r.util.varReplace(ht,C,$t);var Mo=$t}else{var Mo=C;i+=" var "+C+" = "+$t+"; "}if(Yi)i+=" "+ht+" ";else{if(ie&&ie[_e]){i+=" if ( "+Mo+" === undefined ",Q&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(_e)+"') "),i+=") { "+S+" = false; ";var Qe=r.errorPath,xe=p,pi=r.util.escapeQuotes(_e);r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPath(Qe,_e,r.opts.jsonPointers)),p=r.errSchemaPath+"/required";var ze=ze||[];ze.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+pi+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+pi+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var ge=i;i=ze.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+ge+"]); ":i+=" validate.errors = ["+ge+"]; return false; ":i+=" var err = "+ge+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",p=xe,r.errorPath=Qe,i+=" } else { "}else f?(i+=" if ( "+Mo+" === undefined ",Q&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(_e)+"') "),i+=") { "+S+" = true; } else { "):(i+=" if ("+Mo+" !== undefined ",Q&&(i+=" && Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(_e)+"') "),i+=" ) { ");i+=" "+ht+" } "}}f&&(i+=" if ("+S+") { ",E+="}")}}if(j.length){var fi=j;if(fi)for(var kt,Wf=-1,IE=fi.length-1;Wf<IE;){kt=fi[Wf+=1];var Fo=k[kt];if(r.opts.strictKeywords?typeof Fo=="object"&&Object.keys(Fo).length>0||Fo===!1:r.util.schemaHasRules(Fo,r.RULES.all)){b.schema=Fo,b.schemaPath=r.schemaPath+".patternProperties"+r.util.getProperty(kt),b.errSchemaPath=r.errSchemaPath+"/patternProperties/"+r.util.escapeFragment(kt),Q?i+=" "+R+" = "+R+" || Object.keys("+g+"); for (var "+D+"=0; "+D+"<"+R+".length; "+D+"++) { var "+_+" = "+R+"["+D+"]; ":i+=" for (var "+_+" in "+g+") { ",i+=" if ("+r.usePattern(kt)+".test("+_+")) { ",b.errorPath=r.util.getPathExpr(r.errorPath,_,r.opts.jsonPointers);var $t=g+"["+_+"]";b.dataPathArr[O]=_;var ht=r.validate(b);b.baseId=q,r.util.varOccurences(ht,C)<2?i+=" "+r.util.varReplace(ht,C,$t)+" ":i+=" var "+C+" = "+$t+"; "+ht+" ",f&&(i+=" if (!"+S+") break; "),i+=" } ",f&&(i+=" else "+S+" = true; "),i+=" } ",f&&(i+=" if ("+S+") { ",E+="}")}}}return f&&(i+=" "+E+" if ("+x+" == errors) {"),i}});var Jtt=A((Zwn,Ktt)=>{"use strict";Ktt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="errs__"+a,b=r.util.copy(r),E="";b.level++;var S="valid"+b.level;if(i+="var "+x+" = errors;",r.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:r.util.schemaHasRules(u,r.RULES.all)){b.schema=u,b.schemaPath=l,b.errSchemaPath=p;var _="key"+a,D="idx"+a,O="i"+a,C="' + "+_+" + '",R=b.dataLevel=r.dataLevel+1,I="data"+R,k="dataProperties"+a,j=r.opts.ownProperties,G=r.baseId;j&&(i+=" var "+k+" = undefined; "),j?i+=" "+k+" = "+k+" || Object.keys("+g+"); for (var "+D+"=0; "+D+"<"+k+".length; "+D+"++) { var "+_+" = "+k+"["+D+"]; ":i+=" for (var "+_+" in "+g+") { ",i+=" var startErrs"+a+" = errors; ";var L=_,H=r.compositeRule;r.compositeRule=b.compositeRule=!0;var F=r.validate(b);b.baseId=G,r.util.varOccurences(F,I)<2?i+=" "+r.util.varReplace(F,I,L)+" ":i+=" var "+I+" = "+L+"; "+F+" ",r.compositeRule=b.compositeRule=H,i+=" if (!"+S+") { for (var "+O+"=startErrs"+a+"; "+O+"<errors; "+O+"++) { vErrors["+O+"].propertyName = "+_+"; } var err = ",r.createErrors!==!1?(i+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { propertyName: '"+C+"' } ",r.opts.messages!==!1&&(i+=" , message: 'property name \\'"+C+"\\' is invalid' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&f&&(r.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),f&&(i+=" break; "),i+=" } }"}return f&&(i+=" "+E+" if ("+x+" == errors) {"),i}});var Ztt=A((Qwn,Ytt)=>{"use strict";Ytt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b=r.opts.$data&&u&&u.$data,E;b?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",E="schema"+a):E=u;var S="schema"+a;if(!b)if(u.length<r.opts.loopRequired&&r.schema.properties&&Object.keys(r.schema.properties).length){var _=[],D=u;if(D)for(var O,C=-1,R=D.length-1;C<R;){O=D[C+=1];var I=r.schema.properties[O];I&&(r.opts.strictKeywords?typeof I=="object"&&Object.keys(I).length>0||I===!1:r.util.schemaHasRules(I,r.RULES.all))||(_[_.length]=O)}}else var _=u;if(b||_.length){var k=r.errorPath,j=b||_.length>=r.opts.loopRequired,G=r.opts.ownProperties;if(f)if(i+=" var missing"+a+"; ",j){b||(i+=" var "+S+" = validate.schema"+l+"; ");var L="i"+a,H="schema"+a+"["+L+"]",F="' + "+H+" + '";r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPathExpr(k,H,r.opts.jsonPointers)),i+=" var "+x+" = true; ",b&&(i+=" if (schema"+a+" === undefined) "+x+" = true; else if (!Array.isArray(schema"+a+")) "+x+" = false; else {"),i+=" for (var "+L+" = 0; "+L+" < "+S+".length; "+L+"++) { "+x+" = "+g+"["+S+"["+L+"]] !== undefined ",G&&(i+=" && Object.prototype.hasOwnProperty.call("+g+", "+S+"["+L+"]) "),i+="; if (!"+x+") break; } ",b&&(i+=" } "),i+=" if (!"+x+") { ";var Y=Y||[];Y.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+F+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+F+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var V=i;i=Y.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+V+"]); ":i+=" validate.errors = ["+V+"]; return false; ":i+=" var err = "+V+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else{i+=" if ( ";var Q=_;if(Q)for(var q,L=-1,Z=Q.length-1;L<Z;){q=Q[L+=1],L&&(i+=" || ");var ie=r.util.getProperty(q),se=g+ie;i+=" ( ( "+se+" === undefined ",G&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(q)+"') "),i+=") && (missing"+a+" = "+r.util.toQuotedString(r.opts.jsonPointers?q:ie)+") ) "}i+=") { ";var H="missing"+a,F="' + "+H+" + '";r.opts._errorDataPathProperty&&(r.errorPath=r.opts.jsonPointers?r.util.getPathExpr(k,H,!0):k+" + "+H);var Y=Y||[];Y.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+F+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+F+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var V=i;i=Y.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+V+"]); ":i+=" validate.errors = ["+V+"]; return false; ":i+=" var err = "+V+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else if(j){b||(i+=" var "+S+" = validate.schema"+l+"; ");var L="i"+a,H="schema"+a+"["+L+"]",F="' + "+H+" + '";r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPathExpr(k,H,r.opts.jsonPointers)),b&&(i+=" if ("+S+" && !Array.isArray("+S+")) { var err = ",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+F+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+F+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+S+" !== undefined) { "),i+=" for (var "+L+" = 0; "+L+" < "+S+".length; "+L+"++) { if ("+g+"["+S+"["+L+"]] === undefined ",G&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", "+S+"["+L+"]) "),i+=") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+F+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+F+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",b&&(i+=" } ")}else{var le=_;if(le)for(var q,_e=-1,Ge=le.length-1;_e<Ge;){q=le[_e+=1];var ie=r.util.getProperty(q),F=r.util.escapeQuotes(q),se=g+ie;r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPath(k,q,r.opts.jsonPointers)),i+=" if ( "+se+" === undefined ",G&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(q)+"') "),i+=") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+F+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+F+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}r.errorPath=k}else f&&(i+=" if (true) {");return i}});var Xtt=A((Xwn,Qtt)=>{"use strict";Qtt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b=r.opts.$data&&u&&u.$data,E;if(b?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",E="schema"+a):E=u,(u||b)&&r.opts.uniqueItems!==!1){b&&(i+=" var "+x+"; if ("+E+" === false || "+E+" === undefined) "+x+" = true; else if (typeof "+E+" != 'boolean') "+x+" = false; else { "),i+=" var i = "+g+".length , "+x+" = true , j; if (i > 1) { ";var S=r.schema.items&&r.schema.items.type,_=Array.isArray(S);if(!S||S=="object"||S=="array"||_&&(S.indexOf("object")>=0||S.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+g+"[i], "+g+"[j])) { "+x+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+g+"[i]; ";var D="checkDataType"+(_?"s":"");i+=" if ("+r.util[D](S,"item",r.opts.strictNumbers,!0)+") continue; ",_&&(i+=` if (typeof item == 'string') item = '"' + item; `),i+=" if (typeof itemIndices[item] == 'number') { "+x+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",b&&(i+=" } "),i+=" if (!"+x+") { ";var O=O||[];O.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { i: i, j: j } ",r.opts.messages!==!1&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),r.opts.verbose&&(i+=" , schema: ",b?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var C=i;i=O.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+C+"]); ":i+=" validate.errors = ["+C+"]; return false; ":i+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",f&&(i+=" else { ")}else f&&(i+=" if (true) { ");return i}});var trt=A((e_n,ert)=>{"use strict";ert.exports={$ref:dtt(),allOf:htt(),anyOf:ytt(),$comment:btt(),const:vtt(),contains:wtt(),dependencies:Ttt(),enum:Ctt(),format:Ptt(),if:Itt(),items:Ftt(),maximum:Mle(),minimum:Mle(),maxItems:kle(),minItems:kle(),maxLength:$le(),minLength:$le(),maxProperties:Nle(),minProperties:Nle(),multipleOf:Btt(),not:jtt(),oneOf:Gtt(),pattern:Wtt(),properties:ztt(),propertyNames:Jtt(),required:Ztt(),uniqueItems:Xtt(),validate:Rle()}});var ort=A((t_n,nrt)=>{"use strict";var rrt=trt(),Lle=AE().toHash;nrt.exports=function(){var r=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],n=["type","$comment"],o=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],i=["number","integer","string","array","object","boolean","null"];return r.all=Lle(n),r.types=Lle(i),r.forEach(function(a){a.rules=a.rules.map(function(c){var u;if(typeof c=="object"){var l=Object.keys(c)[0];u=c[l],c=l,u.forEach(function(f){n.push(f),r.all[f]=!0})}n.push(c);var p=r.all[c]={keyword:c,code:rrt[c],implements:u};return p}),r.all.$comment={keyword:"$comment",code:rrt.$comment},a.type&&(r.types[a.type]=a)}),r.keywords=Lle(n.concat(o)),r.custom={},r}});var art=A((r_n,srt)=>{"use strict";var irt=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];srt.exports=function(e,r){for(var n=0;n<r.length;n++){e=JSON.parse(JSON.stringify(e));var o=r[n].split("/"),i=e,a;for(a=1;a<o.length;a++)i=i[o[a]];for(a=0;a<irt.length;a++){var c=irt[a],u=i[c];u&&(i[c]={anyOf:[u,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}});var lrt=A((n_n,urt)=>{"use strict";var $or=pU().MissingRef;urt.exports=crt;function crt(e,r,n){var o=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof r=="function"&&(n=r,r=void 0);var i=a(e).then(function(){var u=o._addSchema(e,void 0,r);return u.validate||c(u)});return n&&i.then(function(u){n(null,u)},n),i;function a(u){var l=u.$schema;return l&&!o.getSchema(l)?crt.call(o,{$ref:l},!0):Promise.resolve()}function c(u){try{return o._compile(u)}catch(p){if(p instanceof $or)return l(p);throw p}function l(p){var f=p.missingSchema;if(b(f))throw new Error("Schema "+f+" is loaded but "+p.missingRef+" cannot be resolved");var g=o._loadingSchemas[f];return g||(g=o._loadingSchemas[f]=o._opts.loadSchema(f),g.then(x,x)),g.then(function(E){if(!b(f))return a(E).then(function(){b(f)||o.addSchema(E,f,void 0,r)})}).then(function(){return c(u)});function x(){delete o._loadingSchemas[f]}function b(E){return o._refs[E]||o._schemas[E]}}}}});var frt=A((o_n,prt)=>{"use strict";prt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g,x="data"+(c||""),b="valid"+a,E="errs__"+a,S=r.opts.$data&&u&&u.$data,_;S?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",_="schema"+a):_=u;var D=this,O="definition"+a,C=D.definition,R="",I,k,j,G,L;if(S&&C.$data){L="keywordValidate"+a;var H=C.validateSchema;i+=" var "+O+" = RULES.custom['"+n+"'].definition; var "+L+" = "+O+".validate;"}else{if(G=r.useCustomRule(D,u,r.schema,r),!G)return;_="validate.schema"+l,L=G.code,I=C.compile,k=C.inline,j=C.macro}var F=L+".errors",Y="i"+a,V="ruleErr"+a,Q=C.async;if(Q&&!r.async)throw new Error("async keyword in sync schema");if(k||j||(i+=""+F+" = null;"),i+="var "+E+" = errors;var "+b+";",S&&C.$data&&(R+="}",i+=" if ("+_+" === undefined) { "+b+" = true; } else { ",H&&(R+="}",i+=" "+b+" = "+O+".validateSchema("+_+"); if ("+b+") { ")),k)C.statements?i+=" "+G.validate+" ":i+=" "+b+" = "+G.validate+"; ";else if(j){var q=r.util.copy(r),R="";q.level++;var Z="valid"+q.level;q.schema=G.validate,q.schemaPath="";var ie=r.compositeRule;r.compositeRule=q.compositeRule=!0;var se=r.validate(q).replace(/validate\.schema/g,L);r.compositeRule=q.compositeRule=ie,i+=" "+se}else{var le=le||[];le.push(i),i="",i+=" "+L+".call( ",r.opts.passContext?i+="this":i+="self",I||C.schema===!1?i+=" , "+x+" ":i+=" , "+_+" , "+x+" , validate.schema"+r.schemaPath+" ",i+=" , (dataPath || '')",r.errorPath!='""'&&(i+=" + "+r.errorPath);var _e=c?"data"+(c-1||""):"parentData",Ge=c?r.dataPathArr[c]:"parentDataProperty";i+=" , "+_e+" , "+Ge+" , rootData ) ";var Mt=i;i=le.pop(),C.errors===!1?(i+=" "+b+" = ",Q&&(i+="await "),i+=""+Mt+"; "):Q?(F="customErrors"+a,i+=" var "+F+" = null; try { "+b+" = await "+Mt+"; } catch (e) { "+b+" = false; if (e instanceof ValidationError) "+F+" = e.errors; else throw e; } "):i+=" "+F+" = null; "+b+" = "+Mt+"; "}if(C.modifying&&(i+=" if ("+_e+") "+x+" = "+_e+"["+Ge+"];"),i+=""+R,C.valid)f&&(i+=" if (true) { ");else{i+=" if ( ",C.valid===void 0?(i+=" !",j?i+=""+Z:i+=""+b):i+=" "+!C.valid+" ",i+=") { ",g=D.keyword;var le=le||[];le.push(i),i="";var le=le||[];le.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(g||"custom")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { keyword: '"+D.keyword+"' } ",r.opts.messages!==!1&&(i+=` , message: 'should pass "`+D.keyword+`" keyword validation' `),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+x+" "),i+=" } "):i+=" {} ";var Zt=i;i=le.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+Zt+"]); ":i+=" validate.errors = ["+Zt+"]; return false; ":i+=" var err = "+Zt+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var kt=i;i=le.pop(),k?C.errors?C.errors!="full"&&(i+=" for (var "+Y+"="+E+"; "+Y+"<errors; "+Y+"++) { var "+V+" = vErrors["+Y+"]; if ("+V+".dataPath === undefined) "+V+".dataPath = (dataPath || '') + "+r.errorPath+"; if ("+V+".schemaPath === undefined) { "+V+'.schemaPath = "'+p+'"; } ',r.opts.verbose&&(i+=" "+V+".schema = "+_+"; "+V+".data = "+x+"; "),i+=" } "):C.errors===!1?i+=" "+kt+" ":(i+=" if ("+E+" == errors) { "+kt+" } else { for (var "+Y+"="+E+"; "+Y+"<errors; "+Y+"++) { var "+V+" = vErrors["+Y+"]; if ("+V+".dataPath === undefined) "+V+".dataPath = (dataPath || '') + "+r.errorPath+"; if ("+V+".schemaPath === undefined) { "+V+'.schemaPath = "'+p+'"; } ',r.opts.verbose&&(i+=" "+V+".schema = "+_+"; "+V+".data = "+x+"; "),i+=" } } "):j?(i+=" var err = ",r.createErrors!==!1?(i+=" { keyword: '"+(g||"custom")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { keyword: '"+D.keyword+"' } ",r.opts.messages!==!1&&(i+=` , message: 'should pass "`+D.keyword+`" keyword validation' `),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+x+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&f&&(r.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):C.errors===!1?i+=" "+kt+" ":(i+=" if (Array.isArray("+F+")) { if (vErrors === null) vErrors = "+F+"; else vErrors = vErrors.concat("+F+"); errors = vErrors.length; for (var "+Y+"="+E+"; "+Y+"<errors; "+Y+"++) { var "+V+" = vErrors["+Y+"]; if ("+V+".dataPath === undefined) "+V+".dataPath = (dataPath || '') + "+r.errorPath+"; "+V+'.schemaPath = "'+p+'"; ',r.opts.verbose&&(i+=" "+V+".schema = "+_+"; "+V+".data = "+x+"; "),i+=" } } else { "+kt+" } "),i+=" } ",f&&(i+=" else { ")}return i}});var Ble=A((i_n,Nor)=>{Nor.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var hrt=A((s_n,mrt)=>{"use strict";var drt=Ble();mrt.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:drt.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:drt.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}});var yrt=A((a_n,grt)=>{"use strict";var Lor=/^[a-z_$][a-z0-9_$-]*$/i,Bor=frt(),Uor=hrt();grt.exports={add:jor,get:qor,remove:Gor,validate:Ule};function jor(e,r){var n=this.RULES;if(n.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!Lor.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(r){this.validateKeyword(r,!0);var o=r.type;if(Array.isArray(o))for(var i=0;i<o.length;i++)c(e,o[i],r);else c(e,o,r);var a=r.metaSchema;a&&(r.$data&&this._opts.$data&&(a={anyOf:[a,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),r.validateSchema=this.compile(a,!0))}n.keywords[e]=n.all[e]=!0;function c(u,l,p){for(var f,g=0;g<n.length;g++){var x=n[g];if(x.type==l){f=x;break}}f||(f={type:l,rules:[]},n.push(f));var b={keyword:u,definition:p,custom:!0,code:Bor,implements:p.implements};f.rules.push(b),n.custom[u]=b}return this}function qor(e){var r=this.RULES.custom[e];return r?r.definition:this.RULES.keywords[e]||!1}function Gor(e){var r=this.RULES;delete r.keywords[e],delete r.all[e],delete r.custom[e];for(var n=0;n<r.length;n++)for(var o=r[n].rules,i=0;i<o.length;i++)if(o[i].keyword==e){o.splice(i,1);break}return this}function Ule(e,r){Ule.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(Uor,!0);if(n(e))return!0;if(Ule.errors=n.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));return!1}});var xrt=A((c_n,Hor)=>{Hor.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Art=A((u_n,Crt)=>{"use strict";var Ert=Zet(),PE=lU(),Wor=Xet(),vrt=Tle(),Vor=Ile(),zor=ptt(),Kor=ort(),Srt=art(),wrt=AE();Crt.exports=Ro;Ro.prototype.validate=Yor;Ro.prototype.compile=Zor;Ro.prototype.addSchema=Qor;Ro.prototype.addMetaSchema=Xor;Ro.prototype.validateSchema=eir;Ro.prototype.getSchema=rir;Ro.prototype.removeSchema=oir;Ro.prototype.addFormat=fir;Ro.prototype.errorsText=pir;Ro.prototype._addSchema=iir;Ro.prototype._compile=sir;Ro.prototype.compileAsync=lrt();var bU=yrt();Ro.prototype.addKeyword=bU.add;Ro.prototype.getKeyword=bU.get;Ro.prototype.removeKeyword=bU.remove;Ro.prototype.validateKeyword=bU.validate;var _rt=pU();Ro.ValidationError=_rt.Validation;Ro.MissingRefError=_rt.MissingRef;Ro.$dataMetaSchema=Srt;var xU="http://json-schema.org/draft-07/schema",brt=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Jor=["/properties"];function Ro(e){if(!(this instanceof Ro))return new Ro(e);e=this._opts=wrt.copy(e)||{},xir(this),this._schemas={},this._refs={},this._fragments={},this._formats=zor(e.format),this._cache=e.cache||new Wor,this._loadingSchemas={},this._compilations=[],this.RULES=Kor(),this._getId=air(e),e.loopRequired=e.loopRequired||1/0,e.errorDataPath=="property"&&(e._errorDataPathProperty=!0),e.serialize===void 0&&(e.serialize=Vor),this._metaOpts=yir(this),e.formats&&hir(this),e.keywords&&gir(this),dir(this),typeof e.meta=="object"&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),mir(this)}function Yor(e,r){var n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error('no schema with key or ref "'+e+'"')}else{var o=this._addSchema(e);n=o.validate||this._compile(o)}var i=n(r);return n.$async!==!0&&(this.errors=n.errors),i}function Zor(e,r){var n=this._addSchema(e,void 0,r);return n.validate||this._compile(n)}function Qor(e,r,n,o){if(Array.isArray(e)){for(var i=0;i<e.length;i++)this.addSchema(e[i],void 0,n,o);return this}var a=this._getId(e);if(a!==void 0&&typeof a!="string")throw new Error("schema id must be string");return r=PE.normalizeId(r||a),Drt(this,r),this._schemas[r]=this._addSchema(e,n,o,!0),this}function Xor(e,r,n){return this.addSchema(e,r,n,!0),this}function eir(e,r){var n=e.$schema;if(n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this._opts.defaultMeta||tir(this),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var o=this.validate(n,e);if(!o&&r){var i="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(i);else throw new Error(i)}return o}function tir(e){var r=e._opts.meta;return e._opts.defaultMeta=typeof r=="object"?e._getId(r)||r:e.getSchema(xU)?xU:void 0,e._opts.defaultMeta}function rir(e){var r=Trt(this,e);switch(typeof r){case"object":return r.validate||this._compile(r);case"string":return this.getSchema(r);case"undefined":return nir(this,e)}}function nir(e,r){var n=PE.schema.call(e,{schema:{}},r);if(n){var o=n.schema,i=n.root,a=n.baseId,c=Ert.call(e,o,i,void 0,a);return e._fragments[r]=new vrt({ref:r,fragment:!0,schema:o,root:i,baseId:a,validate:c}),c}}function Trt(e,r){return r=PE.normalizeId(r),e._schemas[r]||e._refs[r]||e._fragments[r]}function oir(e){if(e instanceof RegExp)return yU(this,this._schemas,e),yU(this,this._refs,e),this;switch(typeof e){case"undefined":return yU(this,this._schemas),yU(this,this._refs),this._cache.clear(),this;case"string":var r=Trt(this,e);return r&&this._cache.del(r.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var n=this._opts.serialize,o=n?n(e):e;this._cache.del(o);var i=this._getId(e);i&&(i=PE.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this}function yU(e,r,n){for(var o in r){var i=r[o];!i.meta&&(!n||n.test(o))&&(e._cache.del(i.cacheKey),delete r[o])}}function iir(e,r,n,o){if(typeof e!="object"&&typeof e!="boolean")throw new Error("schema should be object or boolean");var i=this._opts.serialize,a=i?i(e):e,c=this._cache.get(a);if(c)return c;o=o||this._opts.addUsedSchema!==!1;var u=PE.normalizeId(this._getId(e));u&&o&&Drt(this,u);var l=this._opts.validateSchema!==!1&&!r,p;l&&!(p=u&&u==PE.normalizeId(e.$schema))&&this.validateSchema(e,!0);var f=PE.ids.call(this,e),g=new vrt({id:u,schema:e,localRefs:f,cacheKey:a,meta:n});return u[0]!="#"&&o&&(this._refs[u]=g),this._cache.put(a,g),l&&p&&this.validateSchema(e,!0),g}function sir(e,r){if(e.compiling)return e.validate=i,i.schema=e.schema,i.errors=null,i.root=r||i,e.schema.$async===!0&&(i.$async=!0),i;e.compiling=!0;var n;e.meta&&(n=this._opts,this._opts=this._metaOpts);var o;try{o=Ert.call(this,e.schema,r,e.localRefs)}catch(a){throw delete e.validate,a}finally{e.compiling=!1,e.meta&&(this._opts=n)}return e.validate=o,e.refs=o.refs,e.refVal=o.refVal,e.root=o.root,o;function i(){var a=e.validate,c=a.apply(this,arguments);return i.errors=a.errors,c}}function air(e){switch(e.schemaId){case"auto":return lir;case"id":return cir;default:return uir}}function cir(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function uir(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function lir(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function pir(e,r){if(e=e||this.errors,!e)return"No errors";r=r||{};for(var n=r.separator===void 0?", ":r.separator,o=r.dataVar===void 0?"data":r.dataVar,i="",a=0;a<e.length;a++){var c=e[a];c&&(i+=o+c.dataPath+" "+c.message+n)}return i.slice(0,-n.length)}function fir(e,r){return typeof r=="string"&&(r=new RegExp(r)),this._formats[e]=r,this}function dir(e){var r;if(e._opts.$data&&(r=xrt(),e.addMetaSchema(r,r.$id,!0)),e._opts.meta!==!1){var n=Ble();e._opts.$data&&(n=Srt(n,Jor)),e.addMetaSchema(n,xU,!0),e._refs["http://json-schema.org/schema"]=xU}}function mir(e){var r=e._opts.schemas;if(r)if(Array.isArray(r))e.addSchema(r);else for(var n in r)e.addSchema(r[n],n)}function hir(e){for(var r in e._opts.formats){var n=e._opts.formats[r];e.addFormat(r,n)}}function gir(e){for(var r in e._opts.keywords){var n=e._opts.keywords[r];e.addKeyword(r,n)}}function Drt(e,r){if(e._schemas[r]||e._refs[r])throw new Error('schema with key or id "'+r+'" already exists')}function yir(e){for(var r=wrt.copy(e._opts),n=0;n<brt.length;n++)delete r[brt[n]];return r}function xir(e){var r=e._opts.logger;if(r===!1)e.logger={log:jle,warn:jle,error:jle};else{if(r===void 0&&(r=console),!(typeof r=="object"&&r.log&&r.warn&&r.error))throw new Error("logger must implement log, warn and error methods");e.logger=r}}function jle(){}});var Hf=W(require("node:path"));ba();var cot=W(sde());ba();var lst=ph("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function qj(e){return e.getValue(lst)===!0}ba();function iy(e){let r={};if(typeof e!="object"||e==null)return r;for(let[n,o]of Object.entries(e)){if(!pst(n)){yr.warn(`Invalid attribute key: ${n}`);continue}if(!$I(o)){yr.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(o)?r[n]=o.slice():r[n]=o}return r}function pst(e){return typeof e=="string"&&e.length>0}function $I(e){return e==null?!0:Array.isArray(e)?fst(e):ade(e)}function fst(e){let r;for(let n of e)if(n!=null){if(!r){if(ade(n)){r=typeof n;continue}return!1}if(typeof n!==r)return!1}return!0}function ade(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}ba();function cde(){return e=>{yr.error(dst(e))}}function dst(e){return typeof e=="string"?e:JSON.stringify(mst(e))}function mst(e){let r={},n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(o=>{if(r[o])return;let i=n[o];i&&(r[o]=String(i))}),n=Object.getPrototypeOf(n);return r}var hst=cde();function nT(e){try{hst(e)}catch{}}ba();var ude=require("util");function Mi(e){let r=process.env[e];if(r==null||r.trim()==="")return;let n=Number(r);if(isNaN(n)){yr.warn(`Unknown value ${(0,ude.inspect)(r)} for ${e}, expected a number, using defaults`);return}return n}function oT(e){let r=process.env[e];if(!(r==null||r.trim()===""))return r}var lde=require("perf_hooks"),pl=lde.performance;var pde="2.1.0";var NI="exception.message",fde="exception.stacktrace",LI="exception.type";var dde="service.name";var iT="telemetry.sdk.language";var mde="nodejs";var sT="telemetry.sdk.name",aT="telemetry.sdk.version";var hde="process.runtime.name";var sy={[sT]:"opentelemetry",[hde]:"node",[iT]:mde,[aT]:pde};var xst=9,bst=6,Est=Math.pow(10,bst),Gj=Math.pow(10,xst);function hh(e){let r=e/1e3,n=Math.trunc(r),o=Math.round(e%1e3*Est);return[n,o]}function BI(){let e=pl.timeOrigin;if(typeof e!="number"){let r=pl;e=r.timing&&r.timing.fetchStart}return e}function Hj(e){let r=hh(BI()),n=hh(typeof e=="number"?e:pl.now());return qI(r,n)}function Wj(e,r){let n=r[0]-e[0],o=r[1]-e[1];return o<0&&(n-=1,o+=Gj),[n,o]}function UI(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function jI(e){return UI(e)||typeof e=="number"||e instanceof Date}function qI(e,r){let n=[e[0]+r[0],e[1]+r[1]];return n[1]>=Gj&&(n[1]-=Gj,n[0]+=1),n}var vst="[object Object]",Sst="[object Null]",wst="[object Undefined]",_st=Function.prototype,xde=_st.toString,Tst=xde.call(Object),Dst=Object.getPrototypeOf,bde=Object.prototype,Ede=bde.hasOwnProperty,ay=Symbol?Symbol.toStringTag:void 0,vde=bde.toString;function Vj(e){if(!Cst(e)||Ast(e)!==vst)return!1;let r=Dst(e);if(r===null)return!0;let n=Ede.call(r,"constructor")&&r.constructor;return typeof n=="function"&&n instanceof n&&xde.call(n)===Tst}function Cst(e){return e!=null&&typeof e=="object"}function Ast(e){return e==null?e===void 0?wst:Sst:ay&&ay in Object(e)?Pst(e):Ost(e)}function Pst(e){let r=Ede.call(e,ay),n=e[ay],o=!1;try{e[ay]=void 0,o=!0}catch{}let i=vde.call(e);return o&&(r?e[ay]=n:delete e[ay]),i}function Ost(e){return vde.call(e)}var Ist=20;function Kj(...e){let r=e.shift(),n=new WeakMap;for(;e.length>0;)r=wde(r,e.shift(),0,n);return r}function zj(e){return HI(e)?e.slice():e}function wde(e,r,n=0,o){let i;if(!(n>Ist)){if(n++,GI(e)||GI(r)||_de(r))i=zj(r);else if(HI(e)){if(i=e.slice(),HI(r))for(let a=0,c=r.length;a<c;a++)i.push(zj(r[a]));else if(cT(r)){let a=Object.keys(r);for(let c=0,u=a.length;c<u;c++){let l=a[c];i[l]=zj(r[l])}}}else if(cT(e))if(cT(r)){if(!Rst(e,r))return r;i=Object.assign({},e);let a=Object.keys(r);for(let c=0,u=a.length;c<u;c++){let l=a[c],p=r[l];if(GI(p))typeof p>"u"?delete i[l]:i[l]=p;else{let f=i[l],g=p;if(Sde(e,l,o)||Sde(r,l,o))delete i[l];else{if(cT(f)&&cT(g)){let x=o.get(f)||[],b=o.get(g)||[];x.push({obj:e,key:l}),b.push({obj:r,key:l}),o.set(f,x),o.set(g,b)}i[l]=wde(i[l],p,n,o)}}}}else i=r;return i}}function Sde(e,r,n){let o=n.get(e[r])||[];for(let i=0,a=o.length;i<a;i++){let c=o[i];if(c.key===r&&c.obj===e)return!0}return!1}function HI(e){return Array.isArray(e)}function _de(e){return typeof e=="function"}function cT(e){return!GI(e)&&!HI(e)&&!_de(e)&&typeof e=="object"}function GI(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function Rst(e,r){return!(!Vj(e)||!Vj(r))}ba();function WI(){return`unknown_service:${process.argv0}`}var zE=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";var Jj=class e{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(r,n){let o=new e({},n);return o._rawAttributes=Tde(r),o._asyncAttributesPending=r.filter(([i,a])=>zE(a)).length>0,o}constructor(r,n){let o=r.attributes??{};this._rawAttributes=Object.entries(o).map(([i,a])=>(zE(a)&&(this._asyncAttributesPending=!0),[i,a])),this._rawAttributes=Tde(this._rawAttributes),this._schemaUrl=Fst(n?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let r=0;r<this._rawAttributes.length;r++){let[n,o]=this._rawAttributes[r];this._rawAttributes[r]=[n,zE(o)?await o:o]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&yr.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;let r={};for(let[n,o]of this._rawAttributes){if(zE(o)){yr.debug(`Unsettled resource attribute ${n} skipped`);continue}o!=null&&(r[n]??=o)}return this._asyncAttributesPending||(this._memoizedAttributes=r),r}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(r){if(r==null)return this;let n=Mst(this,r),o=n?{schemaUrl:n}:void 0;return e.FromAttributeList([...r.getRawAttributes(),...this.getRawAttributes()],o)}};function Dde(e,r){return Jj.FromAttributeList(Object.entries(e),r)}function Yj(){return Dde({[dde]:WI(),[iT]:sy[iT],[sT]:sy[sT],[aT]:sy[aT]})}function Tde(e){return e.map(([r,n])=>zE(n)?[r,n.catch(o=>{yr.debug("promise rejection for resource attribute: %s - %s",r,o)})]:[r,n])}function Fst(e){if(typeof e=="string"||e===void 0)return e;yr.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",e)}function Mst(e,r){let n=e?.schemaUrl,o=r?.schemaUrl,i=n===void 0||n==="",a=o===void 0||o==="";if(i)return o;if(a||n===o)return n;yr.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',n,o)}ba();ba();var Cde="exception";var VI=class{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:WE.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(r){let n=Date.now();this._spanContext=r.spanContext,this._performanceStartTime=pl.now(),this._performanceOffset=n-(this._performanceStartTime+BI()),this._startTimeProvided=r.startTime!=null,this._spanLimits=r.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=r.spanProcessor,this.name=r.name,this.parentSpanContext=r.parentSpanContext,this.kind=r.kind,this.links=r.links||[],this.startTime=this._getTime(r.startTime??n),this.resource=r.resource,this.instrumentationScope=r.scope,r.attributes!=null&&this.setAttributes(r.attributes),this._spanProcessor.onStart(this,r.context)}spanContext(){return this._spanContext}setAttribute(r,n){if(n==null||this._isSpanEnded())return this;if(r.length===0)return yr.warn(`Invalid attribute key: ${r}`),this;if(!$I(n))return yr.warn(`Invalid attribute value set for key: ${r}`),this;let{attributeCountLimit:o}=this._spanLimits;return o!==void 0&&Object.keys(this.attributes).length>=o&&!Object.prototype.hasOwnProperty.call(this.attributes,r)?(this._droppedAttributesCount++,this):(this.attributes[r]=this._truncateToSize(n),this)}setAttributes(r){for(let[n,o]of Object.entries(r))this.setAttribute(n,o);return this}addEvent(r,n,o){if(this._isSpanEnded())return this;let{eventCountLimit:i}=this._spanLimits;if(i===0)return yr.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&yr.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),jI(n)&&(jI(o)||(o=n),n=void 0);let a=iy(n);return this.events.push({name:r,attributes:a,time:this._getTime(o),droppedAttributesCount:0}),this}addLink(r){return this.links.push(r),this}addLinks(r){return this.links.push(...r),this}setStatus(r){return this._isSpanEnded()?this:(this.status={...r},this.status.message!=null&&typeof r.message!="string"&&(yr.warn(`Dropping invalid status.message of type '${typeof r.message}', expected 'string'`),delete this.status.message),this)}updateName(r){return this._isSpanEnded()?this:(this.name=r,this)}end(r){if(this._isSpanEnded()){yr.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(r),this._duration=Wj(this.startTime,this.endTime),this._duration[0]<0&&(yr.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&yr.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(r){if(typeof r=="number"&&r<=pl.now())return Hj(r+this._performanceOffset);if(typeof r=="number")return hh(r);if(r instanceof Date)return hh(r.getTime());if(UI(r))return r;if(this._startTimeProvided)return hh(Date.now());let n=pl.now()-this._performanceStartTime;return qI(this.startTime,hh(n))}isRecording(){return this._ended===!1}recordException(r,n){let o={};typeof r=="string"?o[NI]=r:r&&(r.code?o[LI]=r.code.toString():r.name&&(o[LI]=r.name),r.message&&(o[NI]=r.message),r.stack&&(o[fde]=r.stack)),o[LI]||o[NI]?this.addEvent(Cde,o,n):yr.warn(`Failed to record an exception ${r}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){let r=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);yr.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,r)}return this._ended}_truncateToLimitUtil(r,n){return r.length<=n?r:r.substring(0,n)}_truncateToSize(r){let n=this._attributeValueLengthLimit;return n<=0?(yr.warn(`Attribute value limit must be positive, got ${n}`),r):typeof r=="string"?this._truncateToLimitUtil(r,n):Array.isArray(r)?r.map(o=>typeof o=="string"?this._truncateToLimitUtil(o,n):o):r}};ba();var ed;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(ed||(ed={}));var gh=class{shouldSample(){return{decision:ed.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};var Dp=class{shouldSample(){return{decision:ed.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};ba();var cy=class{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(r){this._root=r.root,this._root||(nT(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Dp),this._remoteParentSampled=r.remoteParentSampled??new Dp,this._remoteParentNotSampled=r.remoteParentNotSampled??new gh,this._localParentSampled=r.localParentSampled??new Dp,this._localParentNotSampled=r.localParentNotSampled??new gh}shouldSample(r,n,o,i,a,c){let u=xa.getSpanContext(r);return!u||!mh(u)?this._root.shouldSample(r,n,o,i,a,c):u.isRemote?u.traceFlags&eu.SAMPLED?this._remoteParentSampled.shouldSample(r,n,o,i,a,c):this._remoteParentNotSampled.shouldSample(r,n,o,i,a,c):u.traceFlags&eu.SAMPLED?this._localParentSampled.shouldSample(r,n,o,i,a,c):this._localParentNotSampled.shouldSample(r,n,o,i,a,c)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};ba();var uT=class{_ratio;_upperBound;constructor(r=0){this._ratio=r,this._ratio=this._normalize(r),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(r,n){return{decision:tT(n)&&this._accumulate(n)<this._upperBound?ed.RECORD_AND_SAMPLED:ed.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(r){return typeof r!="number"||isNaN(r)?0:r>=1?1:r<=0?0:r}_accumulate(r){let n=0;for(let o=0;o<r.length/8;o++){let i=o*8,a=parseInt(r.slice(i,i+8),16);n=(n^a)>>>0}return n}};var Cp;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(Cp||(Cp={}));var zI=1;function KI(){return{sampler:Zj(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:Mi("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:Mi("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:Mi("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:Mi("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:Mi("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:Mi("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:Mi("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:Mi("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}}}function Zj(){let e=oT("OTEL_TRACES_SAMPLER")??Cp.ParentBasedAlwaysOn;switch(e){case Cp.AlwaysOn:return new Dp;case Cp.AlwaysOff:return new gh;case Cp.ParentBasedAlwaysOn:return new cy({root:new Dp});case Cp.ParentBasedAlwaysOff:return new cy({root:new gh});case Cp.TraceIdRatio:return new uT(Ade());case Cp.ParentBasedTraceIdRatio:return new cy({root:new uT(Ade())});default:return yr.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "${Cp.ParentBasedAlwaysOn}".`),new cy({root:new Dp})}}function Ade(){let e=Mi("OTEL_TRACES_SAMPLER_ARG");return e==null?(yr.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${zI}.`),zI):e<0||e>1?(yr.error(`OTEL_TRACES_SAMPLER_ARG=${e} was given, but it is out of range ([0..1]), defaulting to ${zI}.`),zI):e}var kst=128,$st=1/0;function Pde(e){let r={sampler:Zj()},n=KI(),o=Object.assign({},n,r,e);return o.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),o.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),o}function Ode(e){let r=Object.assign({},e.spanLimits);return r.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??Mi("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??Mi("OTEL_ATTRIBUTE_COUNT_LIMIT")??kst,r.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??Mi("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??Mi("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??$st,Object.assign({},e,{spanLimits:r})}var KE=class{generateTraceId=Ide(16);generateSpanId=Ide(8)},JI=Buffer.allocUnsafe(16);function Ide(e){return function(){for(let n=0;n<e/4;n++)JI.writeUInt32BE(Math.random()*2**32>>>0,n*4);for(let n=0;n<e&&!(JI[n]>0);n++)n===e-1&&(JI[e-1]=1);return JI.toString("hex",0,e)}}var YI=class{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(r,n,o,i){let a=Pde(n);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=n.idGenerator||new KE,this._resource=o,this._spanProcessor=i,this.instrumentationScope=r}startSpan(r,n={},o=Xf.active()){n.root&&(o=xa.deleteSpan(o));let i=xa.getSpan(o);if(qj(o))return yr.debug("Instrumentation suppressed, returning Noop Span"),xa.wrapSpanContext(GE);let a=i?.spanContext(),c=this._idGenerator.generateSpanId(),u,l,p;!a||!xa.isSpanContextValid(a)?l=this._idGenerator.generateTraceId():(l=a.traceId,p=a.traceState,u=a);let f=n.kind??HE.INTERNAL,g=(n.links??[]).map(O=>({context:O.context,attributes:iy(O.attributes)})),x=iy(n.attributes),b=this._sampler.shouldSample(o,l,r,f,x,g);p=b.traceState??p;let E=b.decision===oy.RECORD_AND_SAMPLED?eu.SAMPLED:eu.NONE,S={traceId:l,spanId:c,traceFlags:E,traceState:p};if(b.decision===oy.NOT_RECORD)return yr.debug("Recording is off, propagating context in a non-recording span"),xa.wrapSpanContext(S);let _=iy(Object.assign(x,b.attributes));return new VI({resource:this._resource,scope:this.instrumentationScope,context:o,spanContext:S,name:r,kind:f,links:g,parentSpanContext:u,attributes:_,startTime:n.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(r,n,o,i){let a,c,u;if(arguments.length<2)return;arguments.length===2?u=n:arguments.length===3?(a=n,u=o):(a=n,c=o,u=i);let l=c??Xf.active(),p=this.startSpan(r,a,l),f=xa.setSpan(l,p);return Xf.with(f,u,void 0,p)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}};var ZI=class{_spanProcessors;constructor(r){this._spanProcessors=r}forceFlush(){let r=[];for(let n of this._spanProcessors)r.push(n.forceFlush());return new Promise(n=>{Promise.all(r).then(()=>{n()}).catch(o=>{nT(o||new Error("MultiSpanProcessor: forceFlush failed")),n()})})}onStart(r,n){for(let o of this._spanProcessors)o.onStart(r,n)}onEnd(r){for(let n of this._spanProcessors)n.onEnd(r)}shutdown(){let r=[];for(let n of this._spanProcessors)r.push(n.shutdown());return new Promise((n,o)=>{Promise.all(r).then(()=>{n()},o)})}};var uy;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(uy||(uy={}));var lT=class{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(r={}){let n=Kj({},KI(),Ode(r));this._resource=n.resource??Yj(),this._config=Object.assign({},n,{resource:this._resource});let o=[];r.spanProcessors?.length&&o.push(...r.spanProcessors),this._activeSpanProcessor=new ZI(o)}getTracer(r,n,o){let i=`${r}@${n||""}:${o?.schemaUrl||""}`;return this._tracers.has(i)||this._tracers.set(i,new YI({name:r,version:n,schemaUrl:o?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(i)}forceFlush(){let r=this._config.forceFlushTimeoutMillis,n=this._activeSpanProcessor._spanProcessors.map(o=>new Promise(i=>{let a,c=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${r} ms`)),a=uy.timeout},r);o.forceFlush().then(()=>{clearTimeout(c),a!==uy.timeout&&(a=uy.resolved,i(a))}).catch(u=>{clearTimeout(c),a=uy.error,i(u)})}));return new Promise((o,i)=>{Promise.all(n).then(a=>{let c=a.filter(u=>u!==uy.resolved);c.length>0?i(c):o()}).catch(a=>i([a]))})}shutdown(){return this._activeSpanProcessor.shutdown()}};var uot=require("@prisma/config");var QI={};cc(QI,{$:()=>$de,bgBlack:()=>Gst,bgBlue:()=>Vst,bgCyan:()=>Kst,bgGreen:()=>Hst,bgMagenta:()=>zst,bgRed:()=>Xj,bgWhite:()=>Jst,bgYellow:()=>Wst,black:()=>Ust,blue:()=>fl,bold:()=>U,cyan:()=>tu,dim:()=>te,gray:()=>ly,green:()=>fe,grey:()=>td,hidden:()=>Lst,inverse:()=>Nst,italic:()=>jn,magenta:()=>jst,red:()=>de,reset:()=>pT,strikethrough:()=>Bst,underline:()=>pn,white:()=>qst,yellow:()=>mt});var Qj,Rde,Fde,Mde,kde=!0;typeof process<"u"&&({FORCE_COLOR:Qj,NODE_DISABLE_COLORS:Rde,NO_COLOR:Fde,TERM:Mde}=process.env||{},kde=process.stdout&&process.stdout.isTTY);var $de={enabled:!Rde&&Fde==null&&Mde!=="dumb"&&(Qj!=null&&Qj!=="0"||kde)};function Dn(e,r){let n=new RegExp(`\\x1b\\[${r}m`,"g"),o=`\x1B[${e}m`,i=`\x1B[${r}m`;return function(a){return!$de.enabled||a==null?a:o+(~(""+a).indexOf(i)?a.replace(n,i+o):a)+i}}var pT=Dn(0,0),U=Dn(1,22),te=Dn(2,22),jn=Dn(3,23),pn=Dn(4,24),Nst=Dn(7,27),Lst=Dn(8,28),Bst=Dn(9,29),Ust=Dn(30,39),de=Dn(31,39),fe=Dn(32,39),mt=Dn(33,39),fl=Dn(34,39),jst=Dn(35,39),tu=Dn(36,39),qst=Dn(37,39),ly=Dn(90,39),td=Dn(90,39),Gst=Dn(40,49),Xj=Dn(41,49),Hst=Dn(42,49),Wst=Dn(43,49),Vst=Dn(44,49),zst=Dn(45,49),Kst=Dn(46,49),Jst=Dn(47,49);var Yst=100,Nde=["green","yellow","blue","magenta","cyan","red"],e9=[],Lde=Date.now(),Zst=0,t9=typeof process<"u"?process.env:{};globalThis.DEBUG??=t9.DEBUG??"";globalThis.DEBUG_COLORS??=t9.DEBUG_COLORS?t9.DEBUG_COLORS==="true":!0;var fT={enable(e){typeof e=="string"&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let r=globalThis.DEBUG.split(",").map(i=>i.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),n=r.some(i=>i===""||i[0]==="-"?!1:e.match(RegExp(i.split("*").join(".*")+"$"))),o=r.some(i=>i===""||i[0]!=="-"?!1:e.match(RegExp(i.slice(1).split("*").join(".*")+"$")));return n&&!o},log:(...e)=>{let[r,n,...o]=e;(console.warn??console.log)(`${r} ${n}`,...o)},formatters:{}};function Qst(e){let r={color:Nde[Zst++%Nde.length],enabled:fT.enabled(e),namespace:e,log:fT.log,extend:()=>{}},n=(...o)=>{let{enabled:i,namespace:a,color:c,log:u}=r;if(o.length!==0&&e9.push([a,...o]),e9.length>Yst&&e9.shift(),fT.enabled(a)||i){let l=o.map(f=>typeof f=="string"?f:Xst(f)),p=`+${Date.now()-Lde}ms`;Lde=Date.now(),globalThis.DEBUG_COLORS?u(QI[c](U(a)),...l,QI[c](p)):u(a,...l,p)}};return new Proxy(n,{get:(o,i)=>r[i],set:(o,i,a)=>r[i]=a})}var Ko=new Proxy(Qst,{get:(e,r)=>fT[r],set:(e,r,n)=>fT[r]=n});function Xst(e,r=2){let n=new Set;return JSON.stringify(e,(o,i)=>{if(typeof i=="object"&&i!==null){if(n.has(i))return"[Circular *]";n.add(i)}else if(typeof i=="bigint")return i.toString();return i},r)}var gt=Ko;var lot=require("@prisma/engines");var Aa=W(require("node:fs")),qp=W(require("node:path")),Y1e=require("node:util");var dT=["darwin","darwin-arm64","debian-openssl-1.0.x","debian-openssl-1.1.x","debian-openssl-3.0.x","rhel-openssl-1.0.x","rhel-openssl-1.1.x","rhel-openssl-3.0.x","linux-arm64-openssl-1.1.x","linux-arm64-openssl-1.0.x","linux-arm64-openssl-3.0.x","linux-arm-openssl-1.1.x","linux-arm-openssl-1.0.x","linux-arm-openssl-3.0.x","linux-musl","linux-musl-openssl-3.0.x","linux-musl-arm64-openssl-1.1.x","linux-musl-arm64-openssl-3.0.x","linux-nixos","linux-static-x64","linux-static-arm64","windows","freebsd11","freebsd12","freebsd13","freebsd14","freebsd15","openbsd","netbsd","arm"];var Hde=W(require("child_process")),c9=W(require("fs/promises")),nR=W(require("os"));var Ea=Symbol.for("@ts-pattern/matcher"),Bde=Symbol.for("@ts-pattern/isVariadic"),eR="@ts-pattern/anonymous-select-key",r9=e=>!!(e&&typeof e=="object"),XI=e=>e&&!!e[Ea],Qi=(e,r,n)=>{if(XI(e)){let o=e[Ea](),{matched:i,selections:a}=o.match(r);return i&&a&&Object.keys(a).forEach(c=>n(c,a[c])),i}if(r9(e)){if(!r9(r))return!1;if(Array.isArray(e)){if(!Array.isArray(r))return!1;let o=[],i=[],a=[];for(let c of e.keys()){let u=e[c];XI(u)&&u[Bde]?a.push(u):a.length?i.push(u):o.push(u)}if(a.length){if(a.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(r.length<o.length+i.length)return!1;let c=r.slice(0,o.length),u=i.length===0?[]:r.slice(-i.length),l=r.slice(o.length,i.length===0?1/0:-i.length);return o.every((p,f)=>Qi(p,c[f],n))&&i.every((p,f)=>Qi(p,u[f],n))&&(a.length===0||Qi(a[0],l,n))}return e.length===r.length&&e.every((c,u)=>Qi(c,r[u],n))}return Reflect.ownKeys(e).every(o=>{let i=e[o];return(o in r||XI(a=i)&&a[Ea]().matcherType==="optional")&&Qi(i,r[o],n);var a})}return Object.is(r,e)},lc=e=>{var r,n,o;return r9(e)?XI(e)?(r=(n=(o=e[Ea]()).getSelectionKeys)==null?void 0:n.call(o))!=null?r:[]:Array.isArray(e)?mT(e,lc):mT(Object.values(e),lc):[]},mT=(e,r)=>e.reduce((n,o)=>n.concat(r(o)),[]);function eat(...e){if(e.length===1){let[r]=e;return n=>Qi(r,n,()=>{})}if(e.length===2){let[r,n]=e;return Qi(r,n,()=>{})}throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${e.length}.`)}function Xi(e){return Object.assign(e,{optional:()=>a9(e),and:r=>qn(e,r),or:r=>Ude(e,r),select:r=>r===void 0?hT(e):hT(r,e)})}function n9(e){return Object.assign((r=>Object.assign(r,{[Symbol.iterator](){let n=0,o=[{value:Object.assign(r,{[Bde]:!0}),done:!1},{done:!0,value:void 0}];return{next:()=>{var i;return(i=o[n++])!=null?i:o.at(-1)}}}}))(e),{optional:()=>n9(a9(e)),select:r=>n9(r===void 0?hT(e):hT(r,e))})}function a9(e){return Xi({[Ea]:()=>({match:r=>{let n={},o=(i,a)=>{n[i]=a};return r===void 0?(lc(e).forEach(i=>o(i,void 0)),{matched:!0,selections:n}):{matched:Qi(e,r,o),selections:n}},getSelectionKeys:()=>lc(e),matcherType:"optional"})})}var tat=(e,r)=>{for(let n of e)if(!r(n))return!1;return!0},rat=(e,r)=>{for(let[n,o]of e.entries())if(!r(o,n))return!1;return!0};function qn(...e){return Xi({[Ea]:()=>({match:r=>{let n={},o=(i,a)=>{n[i]=a};return{matched:e.every(i=>Qi(i,r,o)),selections:n}},getSelectionKeys:()=>mT(e,lc),matcherType:"and"})})}function Ude(...e){return Xi({[Ea]:()=>({match:r=>{let n={},o=(i,a)=>{n[i]=a};return mT(e,lc).forEach(i=>o(i,void 0)),{matched:e.some(i=>Qi(i,r,o)),selections:n}},getSelectionKeys:()=>mT(e,lc),matcherType:"or"})})}function _r(e){return{[Ea]:()=>({match:r=>({matched:!!e(r)})})}}function hT(...e){let r=typeof e[0]=="string"?e[0]:void 0,n=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return Xi({[Ea]:()=>({match:o=>{let i={[r??eR]:o};return{matched:n===void 0||Qi(n,o,(a,c)=>{i[a]=c}),selections:i}},getSelectionKeys:()=>[r??eR].concat(n===void 0?[]:lc(n))})})}function Ap(e){return typeof e=="number"}function yh(e){return typeof e=="string"}function xh(e){return typeof e=="bigint"}var jde=Xi(_r(function(e){return!0})),nat=jde,bh=e=>Object.assign(Xi(e),{startsWith:r=>{return bh(qn(e,(n=r,_r(o=>yh(o)&&o.startsWith(n)))));var n},endsWith:r=>{return bh(qn(e,(n=r,_r(o=>yh(o)&&o.endsWith(n)))));var n},minLength:r=>bh(qn(e,(n=>_r(o=>yh(o)&&o.length>=n))(r))),length:r=>bh(qn(e,(n=>_r(o=>yh(o)&&o.length===n))(r))),maxLength:r=>bh(qn(e,(n=>_r(o=>yh(o)&&o.length<=n))(r))),includes:r=>{return bh(qn(e,(n=r,_r(o=>yh(o)&&o.includes(n)))));var n},regex:r=>{return bh(qn(e,(n=r,_r(o=>yh(o)&&!!o.match(n)))));var n}}),oat=bh(_r(yh)),Pp=e=>Object.assign(Xi(e),{between:(r,n)=>Pp(qn(e,((o,i)=>_r(a=>Ap(a)&&o<=a&&i>=a))(r,n))),lt:r=>Pp(qn(e,(n=>_r(o=>Ap(o)&&o<n))(r))),gt:r=>Pp(qn(e,(n=>_r(o=>Ap(o)&&o>n))(r))),lte:r=>Pp(qn(e,(n=>_r(o=>Ap(o)&&o<=n))(r))),gte:r=>Pp(qn(e,(n=>_r(o=>Ap(o)&&o>=n))(r))),int:()=>Pp(qn(e,_r(r=>Ap(r)&&Number.isInteger(r)))),finite:()=>Pp(qn(e,_r(r=>Ap(r)&&Number.isFinite(r)))),positive:()=>Pp(qn(e,_r(r=>Ap(r)&&r>0))),negative:()=>Pp(qn(e,_r(r=>Ap(r)&&r<0)))}),iat=Pp(_r(Ap)),Eh=e=>Object.assign(Xi(e),{between:(r,n)=>Eh(qn(e,((o,i)=>_r(a=>xh(a)&&o<=a&&i>=a))(r,n))),lt:r=>Eh(qn(e,(n=>_r(o=>xh(o)&&o<n))(r))),gt:r=>Eh(qn(e,(n=>_r(o=>xh(o)&&o>n))(r))),lte:r=>Eh(qn(e,(n=>_r(o=>xh(o)&&o<=n))(r))),gte:r=>Eh(qn(e,(n=>_r(o=>xh(o)&&o>=n))(r))),positive:()=>Eh(qn(e,_r(r=>xh(r)&&r>0))),negative:()=>Eh(qn(e,_r(r=>xh(r)&&r<0)))}),sat=Eh(_r(xh)),aat=Xi(_r(function(e){return typeof e=="boolean"})),cat=Xi(_r(function(e){return typeof e=="symbol"})),uat=Xi(_r(function(e){return e==null})),lat=Xi(_r(function(e){return e!=null})),pc={__proto__:null,matcher:Ea,optional:a9,array:function(...e){return n9({[Ea]:()=>({match:r=>{if(!Array.isArray(r))return{matched:!1};if(e.length===0)return{matched:!0};let n=e[0],o={};if(r.length===0)return lc(n).forEach(a=>{o[a]=[]}),{matched:!0,selections:o};let i=(a,c)=>{o[a]=(o[a]||[]).concat([c])};return{matched:r.every(a=>Qi(n,a,i)),selections:o}},getSelectionKeys:()=>e.length===0?[]:lc(e[0])})})},set:function(...e){return Xi({[Ea]:()=>({match:r=>{if(!(r instanceof Set))return{matched:!1};let n={};if(r.size===0)return{matched:!0,selections:n};if(e.length===0)return{matched:!0};let o=(a,c)=>{n[a]=(n[a]||[]).concat([c])},i=e[0];return{matched:tat(r,a=>Qi(i,a,o)),selections:n}},getSelectionKeys:()=>e.length===0?[]:lc(e[0])})})},map:function(...e){return Xi({[Ea]:()=>({match:r=>{if(!(r instanceof Map))return{matched:!1};let n={};if(r.size===0)return{matched:!0,selections:n};let o=(u,l)=>{n[u]=(n[u]||[]).concat([l])};if(e.length===0)return{matched:!0};var i;if(e.length===1)throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(i=e[0])==null?void 0:i.toString()}`);let[a,c]=e;return{matched:rat(r,(u,l)=>{let p=Qi(a,l,o),f=Qi(c,u,o);return p&&f}),selections:n}},getSelectionKeys:()=>e.length===0?[]:[...lc(e[0]),...lc(e[1])]})})},intersection:qn,union:Ude,not:function(e){return Xi({[Ea]:()=>({match:r=>({matched:!Qi(e,r,()=>{})}),getSelectionKeys:()=>[],matcherType:"not"})})},when:_r,select:hT,any:jde,_:nat,string:oat,number:iat,bigint:sat,boolean:aat,symbol:cat,nullish:uat,nonNullable:lat,instanceOf:function(e){return Xi(_r(function(r){return n=>n instanceof r}(e)))},shape:function(e){return Xi(_r(eat(e)))}},o9=class extends Error{constructor(r){let n;try{n=JSON.stringify(r)}catch{n=r}super(`Pattern matching error: no pattern matches value ${n}`),this.input=void 0,this.input=r}},i9={matched:!1,value:void 0};function xr(e){return new s9(e,i9)}var s9=class e{constructor(r,n){this.input=void 0,this.state=void 0,this.input=r,this.state=n}with(...r){if(this.state.matched)return this;let n=r[r.length-1],o=[r[0]],i;r.length===3&&typeof r[1]=="function"?i=r[1]:r.length>2&&o.push(...r.slice(1,r.length-1));let a=!1,c={},u=(p,f)=>{a=!0,c[p]=f},l=!o.some(p=>Qi(p,this.input,u))||i&&!i(this.input)?i9:{matched:!0,value:n(a?eR in c?c[eR]:c:this.input,this.input)};return new e(this.input,l)}when(r,n){if(this.state.matched)return this;let o=!!r(this.input);return new e(this.input,o?{matched:!0,value:n(this.input,this.input)}:i9)}otherwise(r){return this.state.matched?this.state.value:r(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new o9(this.input)}run(){return this.exhaustive()}returnType(){return this}};var Wde=require("util");var pat={warn:mt("prisma:warn")},fat={warn:()=>!process.env.PRISMA_DISABLE_WARNINGS};function tR(e,...r){fat.warn()&&console.warn(`${pat.warn} ${e}`,...r)}var dat=(0,Wde.promisify)(Hde.default.exec),Ks=gt("prisma:get-platform"),mat=["1.0.x","1.1.x","3.0.x"];async function Vde(){let e=nR.default.platform(),r=process.arch;if(e==="freebsd"){let c=await oR("freebsd-version");if(c&&c.trim().length>0){let l=/^(\d+)\.?/.exec(c);if(l)return{platform:"freebsd",targetDistro:`freebsd${l[1]}`,arch:r}}}if(e!=="linux")return{platform:e,arch:r};let n=await gat(),o=await _at(),i=xat({arch:r,archFromUname:o,familyDistro:n.familyDistro}),{libssl:a}=await bat(i);return{platform:"linux",libssl:a,arch:r,archFromUname:o,...n}}function hat(e){let r=/^ID="?([^"\n]*)"?$/im,n=/^ID_LIKE="?([^"\n]*)"?$/im,o=r.exec(e),i=o&&o[1]&&o[1].toLowerCase()||"",a=n.exec(e),c=a&&a[1]&&a[1].toLowerCase()||"",u=xr({id:i,idLike:c}).with({id:"alpine"},({id:l})=>({targetDistro:"musl",familyDistro:l,originalDistro:l})).with({id:"raspbian"},({id:l})=>({targetDistro:"arm",familyDistro:"debian",originalDistro:l})).with({id:"nixos"},({id:l})=>({targetDistro:"nixos",originalDistro:l,familyDistro:"nixos"})).with({id:"debian"},{id:"ubuntu"},({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).with({id:"rhel"},{id:"centos"},{id:"fedora"},({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).when(({idLike:l})=>l.includes("debian")||l.includes("ubuntu"),({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).when(({idLike:l})=>i==="arch"||l.includes("arch"),({id:l})=>({targetDistro:"debian",familyDistro:"arch",originalDistro:l})).when(({idLike:l})=>l.includes("centos")||l.includes("fedora")||l.includes("rhel")||l.includes("suse"),({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).otherwise(({id:l})=>({targetDistro:void 0,familyDistro:void 0,originalDistro:l}));return Ks(`Found distro info:
|
|
160
|
+
`);return _?(o.originalMessage=o.message,o.message=O):o=new Error(O),o.shortMessage=D,o.command=c,o.escapedCommand=u,o.exitCode=a,o.signal=i,o.signalDescription=x,o.stdout=e,o.stderr=r,n!==void 0&&(o.all=n),"bufferedData"in o&&delete o.bufferedData,o.failed=!0,o.timedOut=!!l,o.isCanceled=p,o.killed=f&&!l,o};wZe.exports=MQt});var DZe=A((Dbn,Due)=>{"use strict";var n5=["stdin","stdout","stderr"],kQt=e=>n5.some(r=>e[r]!==void 0),TZe=e=>{if(!e)return;let{stdio:r}=e;if(r===void 0)return n5.map(o=>e[o]);if(kQt(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${n5.map(o=>`\`${o}\``).join(", ")}`);if(typeof r=="string")return r;if(!Array.isArray(r))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof r}\``);let n=Math.max(r.length,n5.length);return Array.from({length:n},(o,i)=>r[i])};Due.exports=TZe;Due.exports.node=e=>{let r=TZe(e);return r==="ipc"?"ipc":r===void 0||typeof r=="string"?[r,r,r,"ipc"]:r.includes("ipc")?r:[...r,"ipc"]}});var CZe=A((Cbn,o5)=>{"use strict";o5.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&o5.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&o5.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var RZe=A((Abn,s1)=>{"use strict";var fo=global.process,cE=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};cE(fo)?(AZe=require("assert"),o1=CZe(),PZe=/^win/i.test(fo.platform),mO=require("events"),typeof mO!="function"&&(mO=mO.EventEmitter),fo.__signal_exit_emitter__?Ki=fo.__signal_exit_emitter__:(Ki=fo.__signal_exit_emitter__=new mO,Ki.count=0,Ki.emitted={}),Ki.infinite||(Ki.setMaxListeners(1/0),Ki.infinite=!0),s1.exports=function(e,r){if(!cE(global.process))return function(){};AZe.equal(typeof e,"function","a callback must be provided for exit handler"),i1===!1&&Cue();var n="exit";r&&r.alwaysLast&&(n="afterexit");var o=function(){Ki.removeListener(n,e),Ki.listeners("exit").length===0&&Ki.listeners("afterexit").length===0&&i5()};return Ki.on(n,e),o},i5=function(){!i1||!cE(global.process)||(i1=!1,o1.forEach(function(r){try{fo.removeListener(r,s5[r])}catch{}}),fo.emit=a5,fo.reallyExit=Aue,Ki.count-=1)},s1.exports.unload=i5,uE=function(r,n,o){Ki.emitted[r]||(Ki.emitted[r]=!0,Ki.emit(r,n,o))},s5={},o1.forEach(function(e){s5[e]=function(){if(cE(global.process)){var n=fo.listeners(e);n.length===Ki.count&&(i5(),uE("exit",null,e),uE("afterexit",null,e),PZe&&e==="SIGHUP"&&(e="SIGINT"),fo.kill(fo.pid,e))}}}),s1.exports.signals=function(){return o1},i1=!1,Cue=function(){i1||!cE(global.process)||(i1=!0,Ki.count+=1,o1=o1.filter(function(r){try{return fo.on(r,s5[r]),!0}catch{return!1}}),fo.emit=IZe,fo.reallyExit=OZe)},s1.exports.load=Cue,Aue=fo.reallyExit,OZe=function(r){cE(global.process)&&(fo.exitCode=r||0,uE("exit",fo.exitCode,null),uE("afterexit",fo.exitCode,null),Aue.call(fo,fo.exitCode))},a5=fo.emit,IZe=function(r,n){if(r==="exit"&&cE(global.process)){n!==void 0&&(fo.exitCode=n);var o=a5.apply(this,arguments);return uE("exit",fo.exitCode,null),uE("afterexit",fo.exitCode,null),o}else return a5.apply(this,arguments)}):s1.exports=function(){return function(){}};var AZe,o1,PZe,mO,Ki,i5,uE,s5,i1,Cue,Aue,OZe,a5,IZe});var MZe=A((Pbn,FZe)=>{"use strict";var $Qt=require("os"),NQt=RZe(),LQt=1e3*5,BQt=(e,r="SIGTERM",n={})=>{let o=e(r);return UQt(e,r,n,o),o},UQt=(e,r,n,o)=>{if(!jQt(r,n,o))return;let i=GQt(n),a=setTimeout(()=>{e("SIGKILL")},i);a.unref&&a.unref()},jQt=(e,{forceKillAfterTimeout:r},n)=>qQt(e)&&r!==!1&&n,qQt=e=>e===$Qt.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",GQt=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return LQt;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},HQt=(e,r)=>{e.kill()&&(r.isCanceled=!0)},WQt=(e,r,n)=>{e.kill(r),n(Object.assign(new Error("Timed out"),{timedOut:!0,signal:r}))},VQt=(e,{timeout:r,killSignal:n="SIGTERM"},o)=>{if(r===0||r===void 0)return o;let i,a=new Promise((u,l)=>{i=setTimeout(()=>{WQt(e,n,l)},r)}),c=o.finally(()=>{clearTimeout(i)});return Promise.race([a,c])},zQt=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},KQt=async(e,{cleanup:r,detached:n},o)=>{if(!r||n)return o;let i=NQt(()=>{e.kill()});return o.finally(()=>{i()})};FZe.exports={spawnedKill:BQt,spawnedCancel:HQt,setupTimeout:VQt,validateTimeout:zQt,setExitHandler:KQt}});var $Ze=A((Obn,kZe)=>{"use strict";var{PassThrough:JQt}=require("stream");kZe.exports=e=>{e={...e};let{array:r}=e,{encoding:n}=e,o=n==="buffer",i=!1;r?i=!(n||o):n=n||"utf8",o&&(n=null);let a=new JQt({objectMode:i});n&&a.setEncoding(n);let c=0,u=[];return a.on("data",l=>{u.push(l),i?c=u.length:c+=l.length}),a.getBufferedValue=()=>r?u:o?Buffer.concat(u,c):u.join(""),a.getBufferedLength=()=>c,a}});var NZe=A((Ibn,hO)=>{"use strict";var{constants:YQt}=require("buffer"),ZQt=require("stream"),{promisify:QQt}=require("util"),XQt=$Ze(),eXt=QQt(ZQt.pipeline),c5=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function Pue(e,r){if(!e)throw new Error("Expected a stream");r={maxBuffer:1/0,...r};let{maxBuffer:n}=r,o=XQt(r);return await new Promise((i,a)=>{let c=u=>{u&&o.getBufferedLength()<=YQt.MAX_LENGTH&&(u.bufferedData=o.getBufferedValue()),a(u)};(async()=>{try{await eXt(e,o),i()}catch(u){c(u)}})(),o.on("data",()=>{o.getBufferedLength()>n&&c(new c5)})}),o.getBufferedValue()}hO.exports=Pue;hO.exports.buffer=(e,r)=>Pue(e,{...r,encoding:"buffer"});hO.exports.array=(e,r)=>Pue(e,{...r,array:!0});hO.exports.MaxBufferError=c5});var jZe=A((Rbn,UZe)=>{"use strict";var BZe=wF(),LZe=NZe(),tXt=q9(),rXt=(e,r)=>{r===void 0||e.stdin===void 0||(BZe(r)?r.pipe(e.stdin):e.stdin.end(r))},nXt=(e,{all:r})=>{if(!r||!e.stdout&&!e.stderr)return;let n=tXt();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n},Oue=async(e,r)=>{if(e){e.destroy();try{return await r}catch(n){return n.bufferedData}}},Iue=(e,{encoding:r,buffer:n,maxBuffer:o})=>{if(!(!e||!n))return r?LZe(e,{encoding:r,maxBuffer:o}):LZe.buffer(e,{maxBuffer:o})},oXt=async({stdout:e,stderr:r,all:n},{encoding:o,buffer:i,maxBuffer:a},c)=>{let u=Iue(e,{encoding:o,buffer:i,maxBuffer:a}),l=Iue(r,{encoding:o,buffer:i,maxBuffer:a}),p=Iue(n,{encoding:o,buffer:i,maxBuffer:a*2});try{return await Promise.all([c,u,l,p])}catch(f){return Promise.all([{error:f,signal:f.signal,timedOut:f.timedOut},Oue(e,u),Oue(r,l),Oue(n,p)])}},iXt=({input:e})=>{if(BZe(e))throw new TypeError("The `input` option cannot be a stream in sync mode")};UZe.exports={handleInput:rXt,makeAllStream:nXt,getSpawnedResult:oXt,validateInputSync:iXt}});var GZe=A((Fbn,qZe)=>{"use strict";var sXt=(async()=>{})().constructor.prototype,aXt=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(sXt,e)]),cXt=(e,r)=>{for(let[n,o]of aXt){let i=typeof r=="function"?(...a)=>Reflect.apply(o.value,r(),a):o.value.bind(r);Reflect.defineProperty(e,n,{...o,value:i})}return e},uXt=e=>new Promise((r,n)=>{e.on("exit",(o,i)=>{r({exitCode:o,signal:i})}),e.on("error",o=>{n(o)}),e.stdin&&e.stdin.on("error",o=>{n(o)})});qZe.exports={mergePromise:cXt,getSpawnedPromise:uXt}});var VZe=A((Mbn,WZe)=>{"use strict";var HZe=(e,r=[])=>Array.isArray(r)?[e,...r]:[e],lXt=/^[\w.-]+$/,pXt=/"/g,fXt=e=>typeof e!="string"||lXt.test(e)?e:`"${e.replace(pXt,'\\"')}"`,dXt=(e,r)=>HZe(e,r).join(" "),mXt=(e,r)=>HZe(e,r).map(n=>fXt(n)).join(" "),hXt=/ +/g,gXt=e=>{let r=[];for(let n of e.trim().split(hXt)){let o=r[r.length-1];o&&o.endsWith("\\")?r[r.length-1]=`${o.slice(0,-1)} ${n}`:r.push(n)}return r};WZe.exports={joinCommand:dXt,getEscapedCommand:mXt,parseCommand:gXt}});var p5=A((kbn,a1)=>{"use strict";var yXt=require("path"),Rue=require("child_process"),xXt=uR(),bXt=uZe(),EXt=fZe(),vXt=gZe(),u5=_Ze(),KZe=DZe(),{spawnedKill:SXt,spawnedCancel:wXt,setupTimeout:_Xt,validateTimeout:TXt,setExitHandler:DXt}=MZe(),{handleInput:CXt,getSpawnedResult:AXt,makeAllStream:PXt,validateInputSync:OXt}=jZe(),{mergePromise:zZe,getSpawnedPromise:IXt}=GZe(),{joinCommand:JZe,parseCommand:YZe,getEscapedCommand:ZZe}=VZe(),RXt=1e3*1e3*100,FXt=({env:e,extendEnv:r,preferLocal:n,localDir:o,execPath:i})=>{let a=r?{...process.env,...e}:e;return n?EXt.env({env:a,cwd:o,execPath:i}):a},QZe=(e,r,n={})=>{let o=xXt._parse(e,r,n);return e=o.command,r=o.args,n=o.options,n={maxBuffer:RXt,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:n.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...n},n.env=FXt(n),n.stdio=KZe(n),process.platform==="win32"&&yXt.basename(e,".exe")==="cmd"&&r.unshift("/q"),{file:e,args:r,options:n,parsed:o}},gO=(e,r,n)=>typeof r!="string"&&!Buffer.isBuffer(r)?n===void 0?void 0:"":e.stripFinalNewline?bXt(r):r,l5=(e,r,n)=>{let o=QZe(e,r,n),i=JZe(e,r),a=ZZe(e,r);TXt(o.options);let c;try{c=Rue.spawn(o.file,o.args,o.options)}catch(b){let E=new Rue.ChildProcess,S=Promise.reject(u5({error:b,stdout:"",stderr:"",all:"",command:i,escapedCommand:a,parsed:o,timedOut:!1,isCanceled:!1,killed:!1}));return zZe(E,S)}let u=IXt(c),l=_Xt(c,o.options,u),p=DXt(c,o.options,l),f={isCanceled:!1};c.kill=SXt.bind(null,c.kill.bind(c)),c.cancel=wXt.bind(null,c,f);let x=vXt(async()=>{let[{error:b,exitCode:E,signal:S,timedOut:_},D,O,C]=await AXt(c,o.options,p),R=gO(o.options,D),I=gO(o.options,O),k=gO(o.options,C);if(b||E!==0||S!==null){let j=u5({error:b,exitCode:E,signal:S,stdout:R,stderr:I,all:k,command:i,escapedCommand:a,parsed:o,timedOut:_,isCanceled:f.isCanceled,killed:c.killed});if(!o.options.reject)return j;throw j}return{command:i,escapedCommand:a,exitCode:0,stdout:R,stderr:I,all:k,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return CXt(c,o.options.input),c.all=PXt(c,o.options),zZe(c,x)};a1.exports=l5;a1.exports.sync=(e,r,n)=>{let o=QZe(e,r,n),i=JZe(e,r),a=ZZe(e,r);OXt(o.options);let c;try{c=Rue.spawnSync(o.file,o.args,o.options)}catch(p){throw u5({error:p,stdout:"",stderr:"",all:"",command:i,escapedCommand:a,parsed:o,timedOut:!1,isCanceled:!1,killed:!1})}let u=gO(o.options,c.stdout,c.error),l=gO(o.options,c.stderr,c.error);if(c.error||c.status!==0||c.signal!==null){let p=u5({stdout:u,stderr:l,error:c.error,signal:c.signal,exitCode:c.status,command:i,escapedCommand:a,parsed:o,timedOut:c.error&&c.error.code==="ETIMEDOUT",isCanceled:!1,killed:c.signal!==null});if(!o.options.reject)return p;throw p}return{command:i,escapedCommand:a,exitCode:0,stdout:u,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};a1.exports.command=(e,r)=>{let[n,...o]=YZe(e);return l5(n,o,r)};a1.exports.commandSync=(e,r)=>{let[n,...o]=YZe(e);return l5.sync(n,o,r)};a1.exports.node=(e,r,n={})=>{r&&!Array.isArray(r)&&typeof r=="object"&&(n=r,r=[]);let o=KZe.node(n),i=process.execArgv.filter(u=>!u.startsWith("--inspect")),{nodePath:a=process.execPath,nodeOptions:c=i}=n;return l5(a,[...c,e,...Array.isArray(r)?r:[]],{...n,stdin:void 0,stdout:void 0,stderr:void 0,stdio:o,shell:!1})}});var hQe=A((Gbn,mQe)=>{"use strict";mQe.exports=(e,r,n)=>{let o=i=>Object.defineProperty(e,r,{value:i,enumerable:!0,writable:!0});return Object.defineProperty(e,r,{configurable:!0,enumerable:!0,get(){let i=n();return o(i),i},set(i){o(i)}}),e}});var Uue=A((Hbn,vQe)=>{"use strict";var ner=require("path"),oer=require("child_process"),{promises:h5,constants:EQe}=require("fs"),m5=jK(),ier=P$(),Nue=hQe(),gQe=ner.join(__dirname,"xdg-open"),{platform:c1,arch:yQe}=process,ser=()=>{try{return h5.statSync("/run/.containerenv"),!0}catch{return!1}},$ue;function aer(){return $ue===void 0&&($ue=ser()||ier()),$ue}var cer=(()=>{let e="/mnt/",r;return async function(){if(r)return r;let n="/etc/wsl.conf",o=!1;try{await h5.access(n,EQe.F_OK),o=!0}catch{}if(!o)return e;let i=await h5.readFile(n,{encoding:"utf8"}),a=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(i);return a?(r=a.groups.mountPoint.trim(),r=r.endsWith("/")?r:`${r}/`,r):e}})(),xQe=async(e,r)=>{let n;for(let o of e)try{return await r(o)}catch(i){n=i}throw n},g5=async e=>{if(e={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...e},Array.isArray(e.app))return xQe(e.app,u=>g5({...e,app:u}));let{name:r,arguments:n=[]}=e.app||{};if(n=[...n],Array.isArray(r))return xQe(r,u=>g5({...e,app:{name:u,arguments:n}}));let o,i=[],a={};if(c1==="darwin")o="open",e.wait&&i.push("--wait-apps"),e.background&&i.push("--background"),e.newInstance&&i.push("--new"),r&&i.push("-a",r);else if(c1==="win32"||m5&&!aer()&&!r){let u=await cer();o=m5?`${u}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`,i.push("-NoProfile","-NonInteractive","\u2013ExecutionPolicy","Bypass","-EncodedCommand"),m5||(a.windowsVerbatimArguments=!0);let l=["Start"];e.wait&&l.push("-Wait"),r?(l.push(`"\`"${r}\`""`,"-ArgumentList"),e.target&&n.unshift(e.target)):e.target&&l.push(`"${e.target}"`),n.length>0&&(n=n.map(p=>`"\`"${p}\`""`),l.push(n.join(","))),e.target=Buffer.from(l.join(" "),"utf16le").toString("base64")}else{if(r)o=r;else{let u=!__dirname||__dirname==="/",l=!1;try{await h5.access(gQe,EQe.X_OK),l=!0}catch{}o=process.versions.electron||c1==="android"||u||!l?"xdg-open":gQe}n.length>0&&i.push(...n),e.wait||(a.stdio="ignore",a.detached=!0)}e.target&&i.push(e.target),c1==="darwin"&&n.length>0&&i.push("--args",...n);let c=oer.spawn(o,i,a);return e.wait?new Promise((u,l)=>{c.once("error",l),c.once("close",p=>{if(!e.allowNonzeroExitCode&&p>0){l(new Error(`Exited with code ${p}`));return}u(c)})}):(c.unref(),c)},Lue=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a `target`");return g5({...r,target:e})},uer=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a `name`");let{arguments:n=[]}=r||{};if(n!=null&&!Array.isArray(n))throw new TypeError("Expected `appArguments` as Array type");return g5({...r,app:{name:e,arguments:n}})};function bQe(e){if(typeof e=="string"||Array.isArray(e))return e;let{[yQe]:r}=e;if(!r)throw new Error(`${yQe} is not supported`);return r}function Bue({[c1]:e},{wsl:r}){if(r&&m5)return bQe(r);if(!e)throw new Error(`${c1} is not supported`);return bQe(e)}var y5={};Nue(y5,"chrome",()=>Bue({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));Nue(y5,"firefox",()=>Bue({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));Nue(y5,"edge",()=>Bue({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));Lue.apps=y5;Lue.openApp=uer;vQe.exports=Lue});var SQe=A(x5=>{"use strict";x5.__esModule=!0;x5.Adapt=void 0;function ler(e){return jue(e)==="boolean"}function per(e){return jue(e)==="object"}function fer(e){return jue(e)==="string"}function jue(e){return typeof e}function der(e){var r=e.meta,n=e.path,o=e.xdg,i=function(){function a(c){c===void 0&&(c={});var u,l,p;function f(C){return C===void 0&&(C={}),new a(C)}var g=per(c)?c:{name:c},x=(u=g.suffix)!==null&&u!==void 0?u:"",b=(l=g.isolated)!==null&&l!==void 0?l:!0,E=[g.name,r.pkgMainFilename(),r.mainFilename()],S="$eval",_=n.parse(((p=E.find(function(C){return fer(C)}))!==null&&p!==void 0?p:S)+x).name;f.$name=function(){return _},f.$isolated=function(){return b};function D(C){var R;C=C??{isolated:b};var I=ler(C)?C:(R=C.isolated)!==null&&R!==void 0?R:b;return I}function O(C){return D(C)?_:""}return f.cache=function(R){return n.join(o.cache(),O(R))},f.config=function(R){return n.join(o.config(),O(R))},f.data=function(R){return n.join(o.data(),O(R))},f.runtime=function(R){return o.runtime()?n.join(o.runtime(),O(R)):void 0},f.state=function(R){return n.join(o.state(),O(R))},f.configDirs=function(R){return o.configDirs().map(function(I){return n.join(I,O(R))})},f.dataDirs=function(R){return o.dataDirs().map(function(I){return n.join(I,O(R))})},f}return a}();return{XDGAppPaths:new i}}x5.Adapt=der});var _Qe=A(u1=>{"use strict";var wQe=u1&&u1.__spreadArray||function(e,r){for(var n=0,o=r.length,i=e.length;n<o;n++,i++)e[i]=r[n];return e};u1.__esModule=!0;u1.Adapt=void 0;function mer(e){var r=e.env,n=e.osPaths,o=e.path,i=/^darwin$/i.test(e.process.platform),a=/^win/i.test(e.process.platform);function c(){return n.home()||n.temp()}function u(x,b){return x||o.join.apply(o,b)}var l=function(){var x=function(){return u(r.get("XDG_CACHE_HOME"),[c(),".cache"])},b=function(){return u(r.get("XDG_CONFIG_HOME"),[c(),".config"])},E=function(){return u(r.get("XDG_DATA_HOME"),[c(),".local","share"])},S=function(){return r.get("XDG_RUNTIME_DIR")||void 0},_=function(){return u(r.get("XDG_STATE_HOME"),[c(),".local","state"])};return{cache:x,config:b,data:E,runtime:S,state:_}},p=function(){var x=function(){return u(r.get("XDG_CACHE_HOME"),[c(),"Library","Caches"])},b=function(){return u(r.get("XDG_CONFIG_HOME"),[c(),"Library","Preferences"])},E=function(){return u(r.get("XDG_DATA_HOME"),[c(),"Library","Application Support"])},S=function(){return r.get("XDG_RUNTIME_DIR")||void 0},_=function(){return u(r.get("XDG_STATE_HOME"),[c(),"Library","State"])};return{cache:x,config:b,data:E,runtime:S,state:_}},f=function(){function x(){return u(r.get("APPDATA"),[c(),"AppData","Roaming"])}function b(){return u(r.get("LOCALAPPDATA"),[c(),"AppData","Local"])}var E=function(){return u(r.get("XDG_CACHE_HOME"),[b(),"xdg.cache"])},S=function(){return u(r.get("XDG_CONFIG_HOME"),[x(),"xdg.config"])},_=function(){return u(r.get("XDG_DATA_HOME"),[x(),"xdg.data"])},D=function(){return r.get("XDG_RUNTIME_DIR")||void 0},O=function(){return u(r.get("XDG_STATE_HOME"),[b(),"xdg.state"])};return{cache:E,config:S,data:_,runtime:D,state:O}},g=function(){function x(){function b(){return new x}var E=i?p():a?f():l();return b.cache=E.cache,b.config=E.config,b.data=E.data,b.runtime=E.runtime,b.state=E.state,b.configDirs=function(){var _=r.get("XDG_CONFIG_DIRS");return wQe([E.config()],_?_.split(o.delimiter):[])},b.dataDirs=function(){var _=r.get("XDG_DATA_DIRS");return wQe([E.data()],_?_.split(o.delimiter):[])},b}return x}();return{XDG:new g}}u1.Adapt=mer});var TQe=A(l1=>{"use strict";var her=l1&&l1.__spreadArray||function(e,r){for(var n=0,o=r.length,i=e.length;n<o;n++,i++)e[i]=r[n];return e};l1.__esModule=!0;l1.Adapt=void 0;function que(e){return!e}function ger(e){var r=e.env,n=e.os,o=e.path,i=/^win/i.test(e.process.platform);function a(p){return p?e.path.normalize(e.path.join(p,".")):void 0}function c(){var p=function(){return a((typeof n.homedir=="function"?n.homedir():void 0)||r.get("HOME"))},f=function(){var g=[typeof n.homedir=="function"?n.homedir():void 0,r.get("USERPROFILE"),r.get("HOME"),r.get("HOMEDRIVE")||r.get("HOMEPATH")?o.join(r.get("HOMEDRIVE")||"",r.get("HOMEPATH")||""):void 0];return a(g.find(function(x){return!que(x)}))};return i?f():p()}function u(){function p(x,b){return x?o.join.apply(o,her([x],b)):void 0}function f(){var x="/tmp",b=[typeof n.tmpdir=="function"?n.tmpdir():void 0,r.get("TMPDIR"),r.get("TEMP"),r.get("TMP")];return a(b.find(function(E){return!que(E)}))||x}function g(){var x="C:\\Temp",b=[typeof n.tmpdir=="function"?n.tmpdir:function(){},function(){return r.get("TEMP")},function(){return r.get("TMP")},function(){return p(r.get("LOCALAPPDATA"),["Temp"])},function(){return p(c(),["AppData","Local","Temp"])},function(){return p(r.get("ALLUSERSPROFILE"),["Temp"])},function(){return p(r.get("SystemRoot"),["Temp"])},function(){return p(r.get("windir"),["Temp"])},function(){return p(r.get("SystemDrive"),["\\","Temp"])}],E=b.find(function(S){return S&&!que(S())});return E&&a(E())||x}return i?g():f()}var l=function(){function p(){function f(){return new p}return f.home=c,f.temp=u,f}return p}();return{OSPaths:new l}}l1.Adapt=ger});var CQe=A(Bf=>{"use strict";var yer=Bf&&Bf.__createBinding||(Object.create?function(e,r,n,o){o===void 0&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return r[n]}})}:function(e,r,n,o){o===void 0&&(o=n),e[o]=r[n]}),xer=Bf&&Bf.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),DQe=Bf&&Bf.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&yer(r,e,n);return xer(r,e),r};Bf.__esModule=!0;Bf.adapter=void 0;var ber=DQe(require("os")),Eer=DQe(require("path"));Bf.adapter={atImportPermissions:{env:!0},env:{get:function(e){return process.env[e]}},os:ber,path:Eer,process}});var PQe=A((Jbn,AQe)=>{"use strict";var ver=TQe(),Ser=CQe();AQe.exports=ver.Adapt(Ser.adapter).OSPaths});var OQe=A(Xu=>{"use strict";var wer=Xu&&Xu.__createBinding||(Object.create?function(e,r,n,o){o===void 0&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return r[n]}})}:function(e,r,n,o){o===void 0&&(o=n),e[o]=r[n]}),_er=Xu&&Xu.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),Ter=Xu&&Xu.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&wer(r,e,n);return _er(r,e),r},Der=Xu&&Xu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Xu.__esModule=!0;Xu.adapter=void 0;var Cer=Ter(require("path")),Aer=Der(PQe());Xu.adapter={atImportPermissions:{env:!0},env:{get:function(e){return process.env[e]}},osPaths:Aer.default,path:Cer,process}});var RQe=A((Zbn,IQe)=>{"use strict";var Per=_Qe(),Oer=OQe();IQe.exports=Per.Adapt(Oer.adapter).XDG});var FQe=A(el=>{"use strict";var Ier=el&&el.__createBinding||(Object.create?function(e,r,n,o){o===void 0&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return r[n]}})}:function(e,r,n,o){o===void 0&&(o=n),e[o]=r[n]}),Rer=el&&el.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),Fer=el&&el.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Ier(r,e,n);return Rer(r,e),r},Mer=el&&el.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};el.__esModule=!0;el.adapter=void 0;var ker=Fer(require("path")),$er=Mer(RQe());el.adapter={atImportPermissions:{env:!0,read:!0},meta:{mainFilename:function(){var e=typeof require<"u"&&require!==null&&require.main?require.main:{filename:void 0},r=e.filename,n=(r!==process.execArgv[0]?r:void 0)||(typeof process._eval>"u"?process.argv[1]:void 0);return n},pkgMainFilename:function(){return process.pkg?process.execPath:void 0}},path:ker,process,xdg:$er.default}});var Gue=A((Xbn,MQe)=>{"use strict";var Ner=SQe(),Ler=FQe();MQe.exports=Ner.Adapt(Ler.adapter).XDGAppPaths});var R0=A((aEn,jer)=>{jer.exports={version:"7.9.1",name:"prisma",description:"Prisma is an open-source database toolkit. It includes a JavaScript/TypeScript ORM for Node.js, migrations and a modern GUI to view and edit the data in your database. You can use Prisma in new projects or add it to an existing one.",keywords:["CLI","ORM","Prisma","Prisma CLI","prisma2","database","db","JavaScript","JS","TypeScript","TS","SQL","SQLite","pg","Postgres","PostgreSQL","CockroachDB","MySQL","MariaDB","MSSQL","SQL Server","SQLServer","MongoDB","MCP"],main:"build/index.js",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/cli"},homepage:"https://www.prisma.io",author:"Tim Suchanek <suchanek@prisma.io>",bugs:"https://github.com/prisma/prisma/issues",license:"Apache-2.0",engines:{node:"^20.19 || ^22.12 || >=24.0"},prisma:{prismaCommit:"787e3a806ce7d2a4ce063b934c3f1ac5e35d5c67"},files:["README.md","build","config.js","config.d.ts","dist/cli/src/types.d.ts","install","runtime/*.js","runtime/*.d.ts","runtime/utils","runtime/dist","runtime/llhttp","prisma-client","preinstall","scripts/preinstall-entry.js"],pkg:{assets:["build/**/*","runtime/**/*","prisma-client/**/*","node_modules/@prisma/engines/**/*","node_modules/@prisma/engines/*"]},bin:{prisma:"build/index.js"},types:"./dist/cli/src/types.d.ts",exports:{"./package.json":"./package.json",".":{require:{types:"./dist/cli/src/types.d.ts",default:"./build/types.js"},import:{types:"./dist/cli/src/types.d.ts",default:"./build/types.js"},default:"./build/types.js"},"./config":{require:{types:"./config.d.ts",default:"./config.js"},import:{types:"./config.d.ts",default:"./config.js"},default:"./config.js"},"./build/index.js":{require:{types:"./dist/cli/src/types.d.ts",default:"./build/index.js"},default:"./build/index.js"}},devDependencies:{"@bomb.sh/tab":"0.0.19","@inquirer/prompts":"7.3.3","@libsql/client":"0.8.1","@modelcontextprotocol/sdk":"1.13.2","@opentelemetry/api":"1.9.0","@opentelemetry/context-async-hooks":"2.1.0","@opentelemetry/sdk-trace-base":"2.1.0","@prisma/adapter-libsql":"workspace:*","@prisma/client":"workspace:*","@prisma/client-generator-registry":"workspace:*","@prisma/credentials-store":"workspace:*","@prisma/debug":"workspace:*","@prisma/dmmf":"workspace:*","@prisma/driver-adapter-utils":"workspace:*","@prisma/fetch-engine":"workspace:*","@prisma/generator":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/internals":"workspace:*","@prisma/management-api-sdk":"1.12.0","@prisma/migrate":"workspace:*","@swc/core":"1.11.5","@swc/jest":"0.2.37","@types/better-sqlite3":"7.6.12","@types/fs-extra":"11.0.4","@types/jest":"29.5.14","@types/node":"~20.19.24","@types/react":"19.2.14","@types/react-dom":"19.2.3","async-listen":"3.1.0","better-sqlite3":"^11.10.0","checkpoint-client":"1.1.33",chokidar:"4.0.3",dotenv:"17.2.3",effect:"3.20.0","env-paths":"2.2.1",execa:"5.1.1","fs-extra":"11.3.0","get-port-please":"3.2.0","get-tsconfig":"4.10.0",jest:"29.7.0","jest-junit":"16.0.0",kleur:"4.1.5","line-replace":"2.0.1","log-update":"6.1.0","node-fetch":"3.3.2","npm-packlist":"5.1.3",ohash:"2.0.11",open:"8.4.2","openapi-fetch":"0.15.0","openapi-typescript":"7.10.1",ora:"8.2.0","package-up":"5.0.0",pathe:"2.0.3",react:"19.2.0","react-dom":"19.2.0","resolve-pkg":"2.0.0","std-env":"3.10.0","strip-ansi":"7.1.0","ts-pattern":"5.6.2",typescript:"5.4.5","xdg-app-paths":"8.3.0",zod:"3.24.2"},scripts:{prisma:"tsx src/bin.ts",platform:"tsx src/bin.ts platform --early-access",pm:"tsx src/bin.ts platform --early-access",dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts","generate-api-client":"openapi-typescript https://api.prisma.io/v1/doc --output ./src/management-api/openapi.d.ts && prettier --write ./src/management-api/openapi.d.ts",test:"dotenv -e ../../.db.env -- tsx helpers/run-tests.ts","test:platform":"dotenv -e ../../.db.env -- tsx helpers/run-tests.ts src/platform",tsc:"tsc -d -p tsconfig.build.json",preinstall:"node scripts/preinstall-entry.js",prepublishOnly:"pnpm run build"},dependencies:{"@prisma/config":"workspace:*","@prisma/dev":"0.24.17","@prisma/engines":"workspace:*","@prisma/studio-core":"0.33.0",mysql2:"3.15.3",postgres:"3.4.7"},peerDependencies:{"better-sqlite3":">=9.0.0",typescript:">=5.4.0"},peerDependenciesMeta:{"better-sqlite3":{optional:!0},typescript:{optional:!0}},sideEffects:!1}});var Pet=A((rU,Aet)=>{"use strict";(function(e,r){typeof rU=="object"&&typeof Aet<"u"?r(rU):typeof define=="function"&&define.amd?define(["exports"],r):r(e.URI=e.URI||{})})(rU,function(e){"use strict";function r(){for(var ee=arguments.length,K=Array(ee),oe=0;oe<ee;oe++)K[oe]=arguments[oe];if(K.length>1){K[0]=K[0].slice(0,-1);for(var ue=K.length-1,pe=1;pe<ue;++pe)K[pe]=K[pe].slice(1,-1);return K[ue]=K[ue].slice(1),K.join("")}else return K[0]}function n(ee){return"(?:"+ee+")"}function o(ee){return ee===void 0?"undefined":ee===null?"null":Object.prototype.toString.call(ee).split(" ").pop().split("]").shift().toLowerCase()}function i(ee){return ee.toUpperCase()}function a(ee){return ee!=null?ee instanceof Array?ee:typeof ee.length!="number"||ee.split||ee.setInterval||ee.call?[ee]:Array.prototype.slice.call(ee):[]}function c(ee,K){var oe=ee;if(K)for(var ue in K)oe[ue]=K[ue];return oe}function u(ee){var K="[A-Za-z]",oe="[\\x0D]",ue="[0-9]",pe="[\\x22]",je=r(ue,"[A-Fa-f]"),Ht="[\\x0A]",hr="[\\x20]",Or=n(n("%[EFef]"+je+"%"+je+je+"%"+je+je)+"|"+n("%[89A-Fa-f]"+je+"%"+je+je)+"|"+n("%"+je+je)),Un="[\\:\\/\\?\\#\\[\\]\\@]",pr="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",ln=r(Un,pr),_n=ee?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Zr=ee?"[\\uE000-\\uF8FF]":"[]",Nt=r(K,ue,"[\\-\\.\\_\\~]",_n),xn=n(K+r(K,ue,"[\\+\\-\\.]")+"*"),Ur=n(n(Or+"|"+r(Nt,pr,"[\\:]"))+"*"),zc=n(n("25[0-5]")+"|"+n("2[0-4]"+ue)+"|"+n("1"+ue+ue)+"|"+n("[1-9]"+ue)+"|"+ue),Fi=n(n("25[0-5]")+"|"+n("2[0-4]"+ue)+"|"+n("1"+ue+ue)+"|"+n("0?[1-9]"+ue)+"|0?0?"+ue),Ws=n(Fi+"\\."+Fi+"\\."+Fi+"\\."+Fi),Qr=n(je+"{1,4}"),Vs=n(n(Qr+"\\:"+Qr)+"|"+Ws),Es=n(n(Qr+"\\:")+"{6}"+Vs),vs=n("\\:\\:"+n(Qr+"\\:")+"{5}"+Vs),Sp=n(n(Qr)+"?\\:\\:"+n(Qr+"\\:")+"{4}"+Vs),Kc=n(n(n(Qr+"\\:")+"{0,1}"+Qr)+"?\\:\\:"+n(Qr+"\\:")+"{3}"+Vs),V0=n(n(n(Qr+"\\:")+"{0,2}"+Qr)+"?\\:\\:"+n(Qr+"\\:")+"{2}"+Vs),z0=n(n(n(Qr+"\\:")+"{0,3}"+Qr)+"?\\:\\:"+Qr+"\\:"+Vs),ih=n(n(n(Qr+"\\:")+"{0,4}"+Qr)+"?\\:\\:"+Vs),Jc=n(n(n(Qr+"\\:")+"{0,5}"+Qr)+"?\\:\\:"+Qr),ga=n(n(n(Qr+"\\:")+"{0,6}"+Qr)+"?\\:\\:"),Yc=n([Es,vs,Sp,Kc,V0,z0,ih,Jc,ga].join("|")),sl=n(n(Nt+"|"+Or)+"+"),Kf=n(Yc+"\\%25"+sl),Zc=n(Yc+n("\\%25|\\%(?!"+je+"{2})")+sl),FE=n("[vV]"+je+"+\\."+r(Nt,pr,"[\\:]")+"+"),XU=n("\\["+n(Zc+"|"+Yc+"|"+FE)+"\\]"),WO=n(n(Or+"|"+r(Nt,pr))+"*"),K0=n(XU+"|"+Ws+"(?!"+WO+")|"+WO),J0=n(ue+"*"),VO=n(n(Ur+"@")+"?"+K0+n("\\:"+J0)+"?"),Y0=n(Or+"|"+r(Nt,pr,"[\\:\\@]")),zO=n(Y0+"*"),KO=n(Y0+"+"),ej=n(n(Or+"|"+r(Nt,pr,"[\\@]"))+"+"),al=n(n("\\/"+zO)+"*"),Qc=n("\\/"+n(KO+al)+"?"),ME=n(ej+al),kE=n(KO+al),Jf="(?!"+Y0+")",Z0=n(al+"|"+Qc+"|"+ME+"|"+kE+"|"+Jf),sc=n(n(Y0+"|"+r("[\\/\\?]",Zr))+"*"),wp=n(n(Y0+"|[\\/\\?]")+"*"),L1=n(n("\\/\\/"+VO+al)+"|"+Qc+"|"+kE+"|"+Jf),tj=n(xn+"\\:"+L1+n("\\?"+sc)+"?"+n("\\#"+wp)+"?"),B1=n(n("\\/\\/"+VO+al)+"|"+Qc+"|"+ME+"|"+Jf),U1=n(B1+n("\\?"+sc)+"?"+n("\\#"+wp)+"?"),JO=n(tj+"|"+U1),mpe=n(xn+"\\:"+L1+n("\\?"+sc)+"?"),hpe="^("+xn+")\\:"+n(n("\\/\\/("+n("("+Ur+")@")+"?("+K0+")"+n("\\:("+J0+")")+"?)")+"?("+al+"|"+Qc+"|"+kE+"|"+Jf+")")+n("\\?("+sc+")")+"?"+n("\\#("+wp+")")+"?$",gpe="^(){0}"+n(n("\\/\\/("+n("("+Ur+")@")+"?("+K0+")"+n("\\:("+J0+")")+"?)")+"?("+al+"|"+Qc+"|"+ME+"|"+Jf+")")+n("\\?("+sc+")")+"?"+n("\\#("+wp+")")+"?$",ype="^("+xn+")\\:"+n(n("\\/\\/("+n("("+Ur+")@")+"?("+K0+")"+n("\\:("+J0+")")+"?)")+"?("+al+"|"+Qc+"|"+kE+"|"+Jf+")")+n("\\?("+sc+")")+"?$",cl="^"+n("\\#("+wp+")")+"?$",xpe="^"+n("("+Ur+")@")+"?("+K0+")"+n("\\:("+J0+")")+"?$";return{NOT_SCHEME:new RegExp(r("[^]",K,ue,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(r("[^\\%\\:]",Nt,pr),"g"),NOT_HOST:new RegExp(r("[^\\%\\[\\]\\:]",Nt,pr),"g"),NOT_PATH:new RegExp(r("[^\\%\\/\\:\\@]",Nt,pr),"g"),NOT_PATH_NOSCHEME:new RegExp(r("[^\\%\\/\\@]",Nt,pr),"g"),NOT_QUERY:new RegExp(r("[^\\%]",Nt,pr,"[\\:\\@\\/\\?]",Zr),"g"),NOT_FRAGMENT:new RegExp(r("[^\\%]",Nt,pr,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(r("[^]",Nt,pr),"g"),UNRESERVED:new RegExp(Nt,"g"),OTHER_CHARS:new RegExp(r("[^\\%]",Nt,ln),"g"),PCT_ENCODED:new RegExp(Or,"g"),IPV4ADDRESS:new RegExp("^("+Ws+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Yc+")"+n(n("\\%25|\\%(?!"+je+"{2})")+"("+sl+")")+"?\\]?$")}}var l=u(!1),p=u(!0),f=function(){function ee(K,oe){var ue=[],pe=!0,je=!1,Ht=void 0;try{for(var hr=K[Symbol.iterator](),Or;!(pe=(Or=hr.next()).done)&&(ue.push(Or.value),!(oe&&ue.length===oe));pe=!0);}catch(Un){je=!0,Ht=Un}finally{try{!pe&&hr.return&&hr.return()}finally{if(je)throw Ht}}return ue}return function(K,oe){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return ee(K,oe);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),g=function(ee){if(Array.isArray(ee)){for(var K=0,oe=Array(ee.length);K<ee.length;K++)oe[K]=ee[K];return oe}else return Array.from(ee)},x=2147483647,b=36,E=1,S=26,_=38,D=700,O=72,C=128,R="-",I=/^xn--/,k=/[^\0-\x7E]/,j=/[\x2E\u3002\uFF0E\uFF61]/g,G={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},L=b-E,H=Math.floor,F=String.fromCharCode;function Y(ee){throw new RangeError(G[ee])}function V(ee,K){for(var oe=[],ue=ee.length;ue--;)oe[ue]=K(ee[ue]);return oe}function Q(ee,K){var oe=ee.split("@"),ue="";oe.length>1&&(ue=oe[0]+"@",ee=oe[1]),ee=ee.replace(j,".");var pe=ee.split("."),je=V(pe,K).join(".");return ue+je}function q(ee){for(var K=[],oe=0,ue=ee.length;oe<ue;){var pe=ee.charCodeAt(oe++);if(pe>=55296&&pe<=56319&&oe<ue){var je=ee.charCodeAt(oe++);(je&64512)==56320?K.push(((pe&1023)<<10)+(je&1023)+65536):(K.push(pe),oe--)}else K.push(pe)}return K}var Z=function(K){return String.fromCodePoint.apply(String,g(K))},ie=function(K){return K-48<10?K-22:K-65<26?K-65:K-97<26?K-97:b},se=function(K,oe){return K+22+75*(K<26)-((oe!=0)<<5)},le=function(K,oe,ue){var pe=0;for(K=ue?H(K/D):K>>1,K+=H(K/oe);K>L*S>>1;pe+=b)K=H(K/L);return H(pe+(L+1)*K/(K+_))},_e=function(K){var oe=[],ue=K.length,pe=0,je=C,Ht=O,hr=K.lastIndexOf(R);hr<0&&(hr=0);for(var Or=0;Or<hr;++Or)K.charCodeAt(Or)>=128&&Y("not-basic"),oe.push(K.charCodeAt(Or));for(var Un=hr>0?hr+1:0;Un<ue;){for(var pr=pe,ln=1,_n=b;;_n+=b){Un>=ue&&Y("invalid-input");var Zr=ie(K.charCodeAt(Un++));(Zr>=b||Zr>H((x-pe)/ln))&&Y("overflow"),pe+=Zr*ln;var Nt=_n<=Ht?E:_n>=Ht+S?S:_n-Ht;if(Zr<Nt)break;var xn=b-Nt;ln>H(x/xn)&&Y("overflow"),ln*=xn}var Ur=oe.length+1;Ht=le(pe-pr,Ur,pr==0),H(pe/Ur)>x-je&&Y("overflow"),je+=H(pe/Ur),pe%=Ur,oe.splice(pe++,0,je)}return String.fromCodePoint.apply(String,oe)},Ge=function(K){var oe=[];K=q(K);var ue=K.length,pe=C,je=0,Ht=O,hr=!0,Or=!1,Un=void 0;try{for(var pr=K[Symbol.iterator](),ln;!(hr=(ln=pr.next()).done);hr=!0){var _n=ln.value;_n<128&&oe.push(F(_n))}}catch(Zc){Or=!0,Un=Zc}finally{try{!hr&&pr.return&&pr.return()}finally{if(Or)throw Un}}var Zr=oe.length,Nt=Zr;for(Zr&&oe.push(R);Nt<ue;){var xn=x,Ur=!0,zc=!1,Fi=void 0;try{for(var Ws=K[Symbol.iterator](),Qr;!(Ur=(Qr=Ws.next()).done);Ur=!0){var Vs=Qr.value;Vs>=pe&&Vs<xn&&(xn=Vs)}}catch(Zc){zc=!0,Fi=Zc}finally{try{!Ur&&Ws.return&&Ws.return()}finally{if(zc)throw Fi}}var Es=Nt+1;xn-pe>H((x-je)/Es)&&Y("overflow"),je+=(xn-pe)*Es,pe=xn;var vs=!0,Sp=!1,Kc=void 0;try{for(var V0=K[Symbol.iterator](),z0;!(vs=(z0=V0.next()).done);vs=!0){var ih=z0.value;if(ih<pe&&++je>x&&Y("overflow"),ih==pe){for(var Jc=je,ga=b;;ga+=b){var Yc=ga<=Ht?E:ga>=Ht+S?S:ga-Ht;if(Jc<Yc)break;var sl=Jc-Yc,Kf=b-Yc;oe.push(F(se(Yc+sl%Kf,0))),Jc=H(sl/Kf)}oe.push(F(se(Jc,0))),Ht=le(je,Es,Nt==Zr),je=0,++Nt}}}catch(Zc){Sp=!0,Kc=Zc}finally{try{!vs&&V0.return&&V0.return()}finally{if(Sp)throw Kc}}++je,++pe}return oe.join("")},Mt=function(K){return Q(K,function(oe){return I.test(oe)?_e(oe.slice(4).toLowerCase()):oe})},Zt=function(K){return Q(K,function(oe){return k.test(oe)?"xn--"+Ge(oe):oe})},kt={version:"2.1.0",ucs2:{decode:q,encode:Z},decode:_e,encode:Ge,toASCII:Zt,toUnicode:Mt},Gt={};function $e(ee){var K=ee.charCodeAt(0),oe=void 0;return K<16?oe="%0"+K.toString(16).toUpperCase():K<128?oe="%"+K.toString(16).toUpperCase():K<2048?oe="%"+(K>>6|192).toString(16).toUpperCase()+"%"+(K&63|128).toString(16).toUpperCase():oe="%"+(K>>12|224).toString(16).toUpperCase()+"%"+(K>>6&63|128).toString(16).toUpperCase()+"%"+(K&63|128).toString(16).toUpperCase(),oe}function Qe(ee){for(var K="",oe=0,ue=ee.length;oe<ue;){var pe=parseInt(ee.substr(oe+1,2),16);if(pe<128)K+=String.fromCharCode(pe),oe+=3;else if(pe>=194&&pe<224){if(ue-oe>=6){var je=parseInt(ee.substr(oe+4,2),16);K+=String.fromCharCode((pe&31)<<6|je&63)}else K+=ee.substr(oe,6);oe+=6}else if(pe>=224){if(ue-oe>=9){var Ht=parseInt(ee.substr(oe+4,2),16),hr=parseInt(ee.substr(oe+7,2),16);K+=String.fromCharCode((pe&15)<<12|(Ht&63)<<6|hr&63)}else K+=ee.substr(oe,9);oe+=9}else K+=ee.substr(oe,3),oe+=3}return K}function mo(ee,K){function oe(ue){var pe=Qe(ue);return pe.match(K.UNRESERVED)?pe:ue}return ee.scheme&&(ee.scheme=String(ee.scheme).replace(K.PCT_ENCODED,oe).toLowerCase().replace(K.NOT_SCHEME,"")),ee.userinfo!==void 0&&(ee.userinfo=String(ee.userinfo).replace(K.PCT_ENCODED,oe).replace(K.NOT_USERINFO,$e).replace(K.PCT_ENCODED,i)),ee.host!==void 0&&(ee.host=String(ee.host).replace(K.PCT_ENCODED,oe).toLowerCase().replace(K.NOT_HOST,$e).replace(K.PCT_ENCODED,i)),ee.path!==void 0&&(ee.path=String(ee.path).replace(K.PCT_ENCODED,oe).replace(ee.scheme?K.NOT_PATH:K.NOT_PATH_NOSCHEME,$e).replace(K.PCT_ENCODED,i)),ee.query!==void 0&&(ee.query=String(ee.query).replace(K.PCT_ENCODED,oe).replace(K.NOT_QUERY,$e).replace(K.PCT_ENCODED,i)),ee.fragment!==void 0&&(ee.fragment=String(ee.fragment).replace(K.PCT_ENCODED,oe).replace(K.NOT_FRAGMENT,$e).replace(K.PCT_ENCODED,i)),ee}function xe(ee){return ee.replace(/^0*(.*)/,"$1")||"0"}function ze(ee,K){var oe=ee.match(K.IPV4ADDRESS)||[],ue=f(oe,2),pe=ue[1];return pe?pe.split(".").map(xe).join("."):ee}function ge(ee,K){var oe=ee.match(K.IPV6ADDRESS)||[],ue=f(oe,3),pe=ue[1],je=ue[2];if(pe){for(var Ht=pe.toLowerCase().split("::").reverse(),hr=f(Ht,2),Or=hr[0],Un=hr[1],pr=Un?Un.split(":").map(xe):[],ln=Or.split(":").map(xe),_n=K.IPV4ADDRESS.test(ln[ln.length-1]),Zr=_n?7:8,Nt=ln.length-Zr,xn=Array(Zr),Ur=0;Ur<Zr;++Ur)xn[Ur]=pr[Ur]||ln[Nt+Ur]||"";_n&&(xn[Zr-1]=ze(xn[Zr-1],K));var zc=xn.reduce(function(Es,vs,Sp){if(!vs||vs==="0"){var Kc=Es[Es.length-1];Kc&&Kc.index+Kc.length===Sp?Kc.length++:Es.push({index:Sp,length:1})}return Es},[]),Fi=zc.sort(function(Es,vs){return vs.length-Es.length})[0],Ws=void 0;if(Fi&&Fi.length>1){var Qr=xn.slice(0,Fi.index),Vs=xn.slice(Fi.index+Fi.length);Ws=Qr.join(":")+"::"+Vs.join(":")}else Ws=xn.join(":");return je&&(Ws+="%"+je),Ws}else return ee}var ut=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,$t="".match(/(){0}/)[1]===void 0;function ht(ee){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oe={},ue=K.iri!==!1?p:l;K.reference==="suffix"&&(ee=(K.scheme?K.scheme+":":"")+"//"+ee);var pe=ee.match(ut);if(pe){$t?(oe.scheme=pe[1],oe.userinfo=pe[3],oe.host=pe[4],oe.port=parseInt(pe[5],10),oe.path=pe[6]||"",oe.query=pe[7],oe.fragment=pe[8],isNaN(oe.port)&&(oe.port=pe[5])):(oe.scheme=pe[1]||void 0,oe.userinfo=ee.indexOf("@")!==-1?pe[3]:void 0,oe.host=ee.indexOf("//")!==-1?pe[4]:void 0,oe.port=parseInt(pe[5],10),oe.path=pe[6]||"",oe.query=ee.indexOf("?")!==-1?pe[7]:void 0,oe.fragment=ee.indexOf("#")!==-1?pe[8]:void 0,isNaN(oe.port)&&(oe.port=ee.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?pe[4]:void 0)),oe.host&&(oe.host=ge(ze(oe.host,ue),ue)),oe.scheme===void 0&&oe.userinfo===void 0&&oe.host===void 0&&oe.port===void 0&&!oe.path&&oe.query===void 0?oe.reference="same-document":oe.scheme===void 0?oe.reference="relative":oe.fragment===void 0?oe.reference="absolute":oe.reference="uri",K.reference&&K.reference!=="suffix"&&K.reference!==oe.reference&&(oe.error=oe.error||"URI is not a "+K.reference+" reference.");var je=Gt[(K.scheme||oe.scheme||"").toLowerCase()];if(!K.unicodeSupport&&(!je||!je.unicodeSupport)){if(oe.host&&(K.domainHost||je&&je.domainHost))try{oe.host=kt.toASCII(oe.host.replace(ue.PCT_ENCODED,Qe).toLowerCase())}catch(Ht){oe.error=oe.error||"Host's domain name can not be converted to ASCII via punycode: "+Ht}mo(oe,l)}else mo(oe,ue);je&&je.parse&&je.parse(oe,K)}else oe.error=oe.error||"URI can not be parsed.";return oe}function nr(ee,K){var oe=K.iri!==!1?p:l,ue=[];return ee.userinfo!==void 0&&(ue.push(ee.userinfo),ue.push("@")),ee.host!==void 0&&ue.push(ge(ze(String(ee.host),oe),oe).replace(oe.IPV6ADDRESS,function(pe,je,Ht){return"["+je+(Ht?"%25"+Ht:"")+"]"})),(typeof ee.port=="number"||typeof ee.port=="string")&&(ue.push(":"),ue.push(String(ee.port))),ue.length?ue.join(""):void 0}var eo=/^\.\.?\//,Bn=/^\/\.(\/|$)/,Ep=/^\/\.\.(\/|$)/,Fo=/^\/?(?:.|\n)*?(?=\/|$)/;function Ji(ee){for(var K=[];ee.length;)if(ee.match(eo))ee=ee.replace(eo,"");else if(ee.match(Bn))ee=ee.replace(Bn,"/");else if(ee.match(Ep))ee=ee.replace(Ep,"/"),K.pop();else if(ee==="."||ee==="..")ee="";else{var oe=ee.match(Fo);if(oe){var ue=oe[0];ee=ee.slice(ue.length),K.push(ue)}else throw new Error("Unexpected dot segment condition")}return K.join("")}function Yi(ee){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oe=K.iri?p:l,ue=[],pe=Gt[(K.scheme||ee.scheme||"").toLowerCase()];if(pe&&pe.serialize&&pe.serialize(ee,K),ee.host&&!oe.IPV6ADDRESS.test(ee.host)){if(K.domainHost||pe&&pe.domainHost)try{ee.host=K.iri?kt.toUnicode(ee.host):kt.toASCII(ee.host.replace(oe.PCT_ENCODED,Qe).toLowerCase())}catch(hr){ee.error=ee.error||"Host's domain name can not be converted to "+(K.iri?"Unicode":"ASCII")+" via punycode: "+hr}}mo(ee,oe),K.reference!=="suffix"&&ee.scheme&&(ue.push(ee.scheme),ue.push(":"));var je=nr(ee,K);if(je!==void 0&&(K.reference!=="suffix"&&ue.push("//"),ue.push(je),ee.path&&ee.path.charAt(0)!=="/"&&ue.push("/")),ee.path!==void 0){var Ht=ee.path;!K.absolutePath&&(!pe||!pe.absolutePath)&&(Ht=Ji(Ht)),je===void 0&&(Ht=Ht.replace(/^\/\//,"/%2F")),ue.push(Ht)}return ee.query!==void 0&&(ue.push("?"),ue.push(ee.query)),ee.fragment!==void 0&&(ue.push("#"),ue.push(ee.fragment)),ue.join("")}function Mo(ee,K){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ue=arguments[3],pe={};return ue||(ee=ht(Yi(ee,oe),oe),K=ht(Yi(K,oe),oe)),oe=oe||{},!oe.tolerant&&K.scheme?(pe.scheme=K.scheme,pe.userinfo=K.userinfo,pe.host=K.host,pe.port=K.port,pe.path=Ji(K.path||""),pe.query=K.query):(K.userinfo!==void 0||K.host!==void 0||K.port!==void 0?(pe.userinfo=K.userinfo,pe.host=K.host,pe.port=K.port,pe.path=Ji(K.path||""),pe.query=K.query):(K.path?(K.path.charAt(0)==="/"?pe.path=Ji(K.path):((ee.userinfo!==void 0||ee.host!==void 0||ee.port!==void 0)&&!ee.path?pe.path="/"+K.path:ee.path?pe.path=ee.path.slice(0,ee.path.lastIndexOf("/")+1)+K.path:pe.path=K.path,pe.path=Ji(pe.path)),pe.query=K.query):(pe.path=ee.path,K.query!==void 0?pe.query=K.query:pe.query=ee.query),pe.userinfo=ee.userinfo,pe.host=ee.host,pe.port=ee.port),pe.scheme=ee.scheme),pe.fragment=K.fragment,pe}function pi(ee,K,oe){var ue=c({scheme:"null"},oe);return Yi(Mo(ht(ee,ue),ht(K,ue),ue,!0),ue)}function fi(ee,K){return typeof ee=="string"?ee=Yi(ht(ee,K),K):o(ee)==="object"&&(ee=ht(Yi(ee,K),K)),ee}function Wf(ee,K,oe){return typeof ee=="string"?ee=Yi(ht(ee,oe),oe):o(ee)==="object"&&(ee=Yi(ee,oe)),typeof K=="string"?K=Yi(ht(K,oe),oe):o(K)==="object"&&(K=Yi(K,oe)),ee===K}function IE(ee,K){return ee&&ee.toString().replace(!K||!K.iri?l.ESCAPE:p.ESCAPE,$e)}function ha(ee,K){return ee&&ee.toString().replace(!K||!K.iri?l.PCT_ENCODED:p.PCT_ENCODED,Qe)}var nh={scheme:"http",domainHost:!0,parse:function(K,oe){return K.host||(K.error=K.error||"HTTP URIs must have a host."),K},serialize:function(K,oe){var ue=String(K.scheme).toLowerCase()==="https";return(K.port===(ue?443:80)||K.port==="")&&(K.port=void 0),K.path||(K.path="/"),K}},BO={scheme:"https",domainHost:nh.domainHost,parse:nh.parse,serialize:nh.serialize};function M1(ee){return typeof ee.secure=="boolean"?ee.secure:String(ee.scheme).toLowerCase()==="wss"}var oh={scheme:"ws",domainHost:!0,parse:function(K,oe){var ue=K;return ue.secure=M1(ue),ue.resourceName=(ue.path||"/")+(ue.query?"?"+ue.query:""),ue.path=void 0,ue.query=void 0,ue},serialize:function(K,oe){if((K.port===(M1(K)?443:80)||K.port==="")&&(K.port=void 0),typeof K.secure=="boolean"&&(K.scheme=K.secure?"wss":"ws",K.secure=void 0),K.resourceName){var ue=K.resourceName.split("?"),pe=f(ue,2),je=pe[0],Ht=pe[1];K.path=je&&je!=="/"?je:void 0,K.query=Ht,K.resourceName=void 0}return K.fragment=void 0,K}},k1={scheme:"wss",domainHost:oh.domainHost,parse:oh.parse,serialize:oh.serialize},q0={},UO=!0,YU="[A-Za-z0-9\\-\\.\\_\\~"+(UO?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Gs="[0-9A-Fa-f]",jO=n(n("%[EFef]"+Gs+"%"+Gs+Gs+"%"+Gs+Gs)+"|"+n("%[89A-Fa-f]"+Gs+"%"+Gs+Gs)+"|"+n("%"+Gs+Gs)),ZU="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",qO="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",$1=r(qO,'[\\"\\\\]'),N1="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",QU=new RegExp(YU,"g"),Hs=new RegExp(jO,"g"),G0=new RegExp(r("[^]",ZU,"[\\.]",'[\\"]',$1),"g"),Vf=new RegExp(r("[^]",YU,N1),"g"),zf=Vf;function H0(ee){var K=Qe(ee);return K.match(QU)?K:ee}var vp={scheme:"mailto",parse:function(K,oe){var ue=K,pe=ue.to=ue.path?ue.path.split(","):[];if(ue.path=void 0,ue.query){for(var je=!1,Ht={},hr=ue.query.split("&"),Or=0,Un=hr.length;Or<Un;++Or){var pr=hr[Or].split("=");switch(pr[0]){case"to":for(var ln=pr[1].split(","),_n=0,Zr=ln.length;_n<Zr;++_n)pe.push(ln[_n]);break;case"subject":ue.subject=ha(pr[1],oe);break;case"body":ue.body=ha(pr[1],oe);break;default:je=!0,Ht[ha(pr[0],oe)]=ha(pr[1],oe);break}}je&&(ue.headers=Ht)}ue.query=void 0;for(var Nt=0,xn=pe.length;Nt<xn;++Nt){var Ur=pe[Nt].split("@");if(Ur[0]=ha(Ur[0]),oe.unicodeSupport)Ur[1]=ha(Ur[1],oe).toLowerCase();else try{Ur[1]=kt.toASCII(ha(Ur[1],oe).toLowerCase())}catch(zc){ue.error=ue.error||"Email address's domain name can not be converted to ASCII via punycode: "+zc}pe[Nt]=Ur.join("@")}return ue},serialize:function(K,oe){var ue=K,pe=a(K.to);if(pe){for(var je=0,Ht=pe.length;je<Ht;++je){var hr=String(pe[je]),Or=hr.lastIndexOf("@"),Un=hr.slice(0,Or).replace(Hs,H0).replace(Hs,i).replace(G0,$e),pr=hr.slice(Or+1);try{pr=oe.iri?kt.toUnicode(pr):kt.toASCII(ha(pr,oe).toLowerCase())}catch(Nt){ue.error=ue.error||"Email address's domain name can not be converted to "+(oe.iri?"Unicode":"ASCII")+" via punycode: "+Nt}pe[je]=Un+"@"+pr}ue.path=pe.join(",")}var ln=K.headers=K.headers||{};K.subject&&(ln.subject=K.subject),K.body&&(ln.body=K.body);var _n=[];for(var Zr in ln)ln[Zr]!==q0[Zr]&&_n.push(Zr.replace(Hs,H0).replace(Hs,i).replace(Vf,$e)+"="+ln[Zr].replace(Hs,H0).replace(Hs,i).replace(zf,$e));return _n.length&&(ue.query=_n.join("&")),ue}},GO=/^([^\:]+)\:(.*)/,RE={scheme:"urn",parse:function(K,oe){var ue=K.path&&K.path.match(GO),pe=K;if(ue){var je=oe.scheme||pe.scheme||"urn",Ht=ue[1].toLowerCase(),hr=ue[2],Or=je+":"+(oe.nid||Ht),Un=Gt[Or];pe.nid=Ht,pe.nss=hr,pe.path=void 0,Un&&(pe=Un.parse(pe,oe))}else pe.error=pe.error||"URN can not be parsed.";return pe},serialize:function(K,oe){var ue=oe.scheme||K.scheme||"urn",pe=K.nid,je=ue+":"+(oe.nid||pe),Ht=Gt[je];Ht&&(K=Ht.serialize(K,oe));var hr=K,Or=K.nss;return hr.path=(pe||oe.nid)+":"+Or,hr}},HO=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,W0={scheme:"urn:uuid",parse:function(K,oe){var ue=K;return ue.uuid=ue.nss,ue.nss=void 0,!oe.tolerant&&(!ue.uuid||!ue.uuid.match(HO))&&(ue.error=ue.error||"UUID is not valid."),ue},serialize:function(K,oe){var ue=K;return ue.nss=(K.uuid||"").toLowerCase(),ue}};Gt[nh.scheme]=nh,Gt[BO.scheme]=BO,Gt[oh.scheme]=oh,Gt[k1.scheme]=k1,Gt[vp.scheme]=vp,Gt[RE.scheme]=RE,Gt[W0.scheme]=W0,e.SCHEMES=Gt,e.pctEncChar=$e,e.pctDecChars=Qe,e.parse=ht,e.removeDotSegments=Ji,e.serialize=Yi,e.resolveComponents=Mo,e.resolve=pi,e.normalize=fi,e.equal=Wf,e.escapeComponent=IE,e.unescapeComponent=ha,Object.defineProperty(e,"__esModule",{value:!0})})});var nU=A((bwn,Oet)=>{"use strict";Oet.exports=function e(r,n){if(r===n)return!0;if(r&&n&&typeof r=="object"&&typeof n=="object"){if(r.constructor!==n.constructor)return!1;var o,i,a;if(Array.isArray(r)){if(o=r.length,o!=n.length)return!1;for(i=o;i--!==0;)if(!e(r[i],n[i]))return!1;return!0}if(r.constructor===RegExp)return r.source===n.source&&r.flags===n.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===n.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===n.toString();if(a=Object.keys(r),o=a.length,o!==Object.keys(n).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=o;i--!==0;){var c=a[i];if(!e(r[c],n[c]))return!1}return!0}return r!==r&&n!==n}});var Ret=A((Ewn,Iet)=>{"use strict";Iet.exports=function(r){for(var n=0,o=r.length,i=0,a;i<o;)n++,a=r.charCodeAt(i++),a>=55296&&a<=56319&&i<o&&(a=r.charCodeAt(i),(a&64512)==56320&&i++);return n}});var AE=A((vwn,ket)=>{"use strict";ket.exports={copy:Unr,checkDataType:xle,checkDataTypes:jnr,coerceToTypes:qnr,toHash:Ele,getProperty:vle,escapeQuotes:Sle,equal:nU(),ucs2length:Ret(),varOccurences:Wnr,varReplace:Vnr,schemaHasRules:znr,schemaHasRulesExcept:Knr,schemaUnknownRules:Jnr,toQuotedString:ble,getPathExpr:Ynr,getPath:Znr,getData:eor,unescapeFragment:tor,unescapeJsonPointer:_le,escapeFragment:ror,escapeJsonPointer:wle};function Unr(e,r){r=r||{};for(var n in e)r[n]=e[n];return r}function xle(e,r,n,o){var i=o?" !== ":" === ",a=o?" || ":" && ",c=o?"!":"",u=o?"":"!";switch(e){case"null":return r+i+"null";case"array":return c+"Array.isArray("+r+")";case"object":return"("+c+r+a+"typeof "+r+i+'"object"'+a+u+"Array.isArray("+r+"))";case"integer":return"(typeof "+r+i+'"number"'+a+u+"("+r+" % 1)"+a+r+i+r+(n?a+c+"isFinite("+r+")":"")+")";case"number":return"(typeof "+r+i+'"'+e+'"'+(n?a+c+"isFinite("+r+")":"")+")";default:return"typeof "+r+i+'"'+e+'"'}}function jnr(e,r,n){switch(e.length){case 1:return xle(e[0],r,n,!0);default:var o="",i=Ele(e);i.array&&i.object&&(o=i.null?"(":"(!"+r+" || ",o+="typeof "+r+' !== "object")',delete i.null,delete i.array,delete i.object),i.number&&delete i.integer;for(var a in i)o+=(o?" && ":"")+xle(a,r,n,!0);return o}}var Fet=Ele(["string","number","integer","boolean","null"]);function qnr(e,r){if(Array.isArray(r)){for(var n=[],o=0;o<r.length;o++){var i=r[o];(Fet[i]||e==="array"&&i==="array")&&(n[n.length]=i)}if(n.length)return n}else{if(Fet[r])return[r];if(e==="array"&&r==="array")return["array"]}}function Ele(e){for(var r={},n=0;n<e.length;n++)r[e[n]]=!0;return r}var Gnr=/^[a-z$_][a-z$_0-9]*$/i,Hnr=/'|\\/g;function vle(e){return typeof e=="number"?"["+e+"]":Gnr.test(e)?"."+e:"['"+Sle(e)+"']"}function Sle(e){return e.replace(Hnr,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function Wnr(e,r){r+="[^0-9]";var n=e.match(new RegExp(r,"g"));return n?n.length:0}function Vnr(e,r,n){return r+="([^0-9])",n=n.replace(/\$/g,"$$$$"),e.replace(new RegExp(r,"g"),n+"$1")}function znr(e,r){if(typeof e=="boolean")return!e;for(var n in e)if(r[n])return!0}function Knr(e,r,n){if(typeof e=="boolean")return!e&&n!="not";for(var o in e)if(o!=n&&r[o])return!0}function Jnr(e,r){if(typeof e!="boolean"){for(var n in e)if(!r[n])return n}}function ble(e){return"'"+Sle(e)+"'"}function Ynr(e,r,n,o){var i=n?"'/' + "+r+(o?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):o?"'[' + "+r+" + ']'":"'[\\'' + "+r+" + '\\']'";return Met(e,i)}function Znr(e,r,n){var o=ble(n?"/"+wle(r):vle(r));return Met(e,o)}var Qnr=/^\/(?:[^~]|~0|~1)*$/,Xnr=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function eor(e,r,n){var o,i,a,c;if(e==="")return"rootData";if(e[0]=="/"){if(!Qnr.test(e))throw new Error("Invalid JSON-pointer: "+e);i=e,a="rootData"}else{if(c=e.match(Xnr),!c)throw new Error("Invalid JSON-pointer: "+e);if(o=+c[1],i=c[2],i=="#"){if(o>=r)throw new Error("Cannot access property/index "+o+" levels up, current level is "+r);return n[r-o]}if(o>r)throw new Error("Cannot access data "+o+" levels up, current level is "+r);if(a="data"+(r-o||""),!i)return a}for(var u=a,l=i.split("/"),p=0;p<l.length;p++){var f=l[p];f&&(a+=vle(_le(f)),u+=" && "+a)}return u}function Met(e,r){return e=='""'?r:(e+" + "+r).replace(/([^\\])' \+ '/g,"$1")}function tor(e){return _le(decodeURIComponent(e))}function ror(e){return encodeURIComponent(wle(e))}function wle(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function _le(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}});var Tle=A((Swn,$et)=>{"use strict";var nor=AE();$et.exports=oor;function oor(e){nor.copy(e,this)}});var Let=A((wwn,Net)=>{"use strict";var N0=Net.exports=function(e,r,n){typeof r=="function"&&(n=r,r={}),n=r.cb||n;var o=typeof n=="function"?n:n.pre||function(){},i=n.post||function(){};oU(r,o,i,e,"",e)};N0.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};N0.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};N0.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};N0.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function oU(e,r,n,o,i,a,c,u,l,p){if(o&&typeof o=="object"&&!Array.isArray(o)){r(o,i,a,c,u,l,p);for(var f in o){var g=o[f];if(Array.isArray(g)){if(f in N0.arrayKeywords)for(var x=0;x<g.length;x++)oU(e,r,n,g[x],i+"/"+f+"/"+x,a,i,f,o,x)}else if(f in N0.propsKeywords){if(g&&typeof g=="object")for(var b in g)oU(e,r,n,g[b],i+"/"+f+"/"+ior(b),a,i,f,o,b)}else(f in N0.keywords||e.allKeys&&!(f in N0.skipKeywords))&&oU(e,r,n,g,i+"/"+f,a,i,f,o)}n(o,i,a,c,u,l,p)}}function ior(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var lU=A((_wn,qet)=>{"use strict";var MO=Pet(),Bet=nU(),cU=AE(),iU=Tle(),sor=Let();qet.exports=B0;B0.normalizeId=L0;B0.fullPath=sU;B0.url=aU;B0.ids=por;B0.inlineRef=Dle;B0.schema=uU;function B0(e,r,n){var o=this._refs[n];if(typeof o=="string")if(this._refs[o])o=this._refs[o];else return B0.call(this,e,r,o);if(o=o||this._schemas[n],o instanceof iU)return Dle(o.schema,this._opts.inlineRefs)?o.schema:o.validate||this._compile(o);var i=uU.call(this,r,n),a,c,u;return i&&(a=i.schema,r=i.root,u=i.baseId),a instanceof iU?c=a.validate||e.call(this,a.schema,r,void 0,u):a!==void 0&&(c=Dle(a,this._opts.inlineRefs)?a:e.call(this,a,r,void 0,u)),c}function uU(e,r){var n=MO.parse(r),o=jet(n),i=sU(this._getId(e.schema));if(Object.keys(e.schema).length===0||o!==i){var a=L0(o),c=this._refs[a];if(typeof c=="string")return aor.call(this,e,c,n);if(c instanceof iU)c.validate||this._compile(c),e=c;else if(c=this._schemas[a],c instanceof iU){if(c.validate||this._compile(c),a==L0(r))return{schema:c,root:e,baseId:i};e=c}else return;if(!e.schema)return;i=sU(this._getId(e.schema))}return Uet.call(this,n,i,e.schema,e)}function aor(e,r,n){var o=uU.call(this,e,r);if(o){var i=o.schema,a=o.baseId;e=o.root;var c=this._getId(i);return c&&(a=aU(a,c)),Uet.call(this,n,a,i,e)}}var cor=cU.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function Uet(e,r,n,o){if(e.fragment=e.fragment||"",e.fragment.slice(0,1)=="/"){for(var i=e.fragment.split("/"),a=1;a<i.length;a++){var c=i[a];if(c){if(c=cU.unescapeFragment(c),n=n[c],n===void 0)break;var u;if(!cor[c]&&(u=this._getId(n),u&&(r=aU(r,u)),n.$ref)){var l=aU(r,n.$ref),p=uU.call(this,o,l);p&&(n=p.schema,o=p.root,r=p.baseId)}}}if(n!==void 0&&n!==o.schema)return{schema:n,root:o,baseId:r}}}var uor=cU.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function Dle(e,r){if(r===!1)return!1;if(r===void 0||r===!0)return Cle(e);if(r)return Ale(e)<=r}function Cle(e){var r;if(Array.isArray(e)){for(var n=0;n<e.length;n++)if(r=e[n],typeof r=="object"&&!Cle(r))return!1}else for(var o in e)if(o=="$ref"||(r=e[o],typeof r=="object"&&!Cle(r)))return!1;return!0}function Ale(e){var r=0,n;if(Array.isArray(e)){for(var o=0;o<e.length;o++)if(n=e[o],typeof n=="object"&&(r+=Ale(n)),r==1/0)return 1/0}else for(var i in e){if(i=="$ref")return 1/0;if(uor[i])r++;else if(n=e[i],typeof n=="object"&&(r+=Ale(n)+1),r==1/0)return 1/0}return r}function sU(e,r){r!==!1&&(e=L0(e));var n=MO.parse(e);return jet(n)}function jet(e){return MO.serialize(e).split("#")[0]+"#"}var lor=/#\/?$/;function L0(e){return e?e.replace(lor,""):""}function aU(e,r){return r=L0(r),MO.resolve(e,r)}function por(e){var r=L0(this._getId(e)),n={"":r},o={"":sU(r,!1)},i={},a=this;return sor(e,{allKeys:!0},function(c,u,l,p,f,g,x){if(u!==""){var b=a._getId(c),E=n[p],S=o[p]+"/"+f;if(x!==void 0&&(S+="/"+(typeof x=="number"?x:cU.escapeFragment(x))),typeof b=="string"){b=E=L0(E?MO.resolve(E,b):b);var _=a._refs[b];if(typeof _=="string"&&(_=a._refs[_]),_&&_.schema){if(!Bet(c,_.schema))throw new Error('id "'+b+'" resolves to more than one schema')}else if(b!=L0(S))if(b[0]=="#"){if(i[b]&&!Bet(c,i[b]))throw new Error('id "'+b+'" resolves to more than one schema');i[b]=c}else a._refs[b]=S}n[u]=E,o[u]=S}}),i}});var pU=A((Twn,Het)=>{"use strict";var Ple=lU();Het.exports={Validation:Get(dor),MissingRef:Get(Ole)};function dor(e){this.message="validation failed",this.errors=e,this.ajv=this.validation=!0}Ole.message=function(e,r){return"can't resolve reference "+r+" from id "+e};function Ole(e,r,n){this.message=n||Ole.message(e,r),this.missingRef=Ple.url(e,r),this.missingSchema=Ple.normalizeId(Ple.fullPath(this.missingRef))}function Get(e){return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}});var Ile=A((Dwn,Wet)=>{"use strict";Wet.exports=function(e,r){r||(r={}),typeof r=="function"&&(r={cmp:r});var n=typeof r.cycles=="boolean"?r.cycles:!1,o=r.cmp&&function(a){return function(c){return function(u,l){var p={key:u,value:c[u]},f={key:l,value:c[l]};return a(p,f)}}}(r.cmp),i=[];return function a(c){if(c&&c.toJSON&&typeof c.toJSON=="function"&&(c=c.toJSON()),c!==void 0){if(typeof c=="number")return isFinite(c)?""+c:"null";if(typeof c!="object")return JSON.stringify(c);var u,l;if(Array.isArray(c)){for(l="[",u=0;u<c.length;u++)u&&(l+=","),l+=a(c[u])||"null";return l+"]"}if(c===null)return"null";if(i.indexOf(c)!==-1){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var p=i.push(c)-1,f=Object.keys(c).sort(o&&o(c));for(l="",u=0;u<f.length;u++){var g=f[u],x=a(c[g]);x&&(l&&(l+=","),l+=JSON.stringify(g)+":"+x)}return i.splice(p,1),"{"+l+"}"}}(e)}});var Rle=A((Cwn,Vet)=>{"use strict";Vet.exports=function(r,n,o){var i="",a=r.schema.$async===!0,c=r.util.schemaHasRulesExcept(r.schema,r.RULES.all,"$ref"),u=r.self._getId(r.schema);if(r.opts.strictKeywords){var l=r.util.schemaUnknownRules(r.schema,r.RULES.keywords);if(l){var p="unknown keyword: "+l;if(r.opts.strictKeywords==="log")r.logger.warn(p);else throw new Error(p)}}if(r.isTop&&(i+=" var validate = ",a&&(r.async=!0,i+="async "),i+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",u&&(r.opts.sourceCode||r.opts.processCode)&&(i+=" "+("/*# sourceURL="+u+" */")+" ")),typeof r.schema=="boolean"||!(c||r.schema.$ref)){var n="false schema",f=r.level,g=r.dataLevel,x=r.schema[n],b=r.schemaPath+r.util.getProperty(n),E=r.errSchemaPath+"/"+n,I=!r.opts.allErrors,G,S="data"+(g||""),R="valid"+f;if(r.schema===!1){r.isTop?I=!0:i+=" var "+R+" = false; ";var _=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(G||"false schema")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(E)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: 'boolean schema is false' "),r.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+r.schemaPath+" , data: "+S+" "),i+=" } "):i+=" {} ";var D=i;i=_.pop(),!r.compositeRule&&I?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else r.isTop?a?i+=" return data; ":i+=" validate.errors = null; return true; ":i+=" var "+R+" = true; ";return r.isTop&&(i+=" }; return validate; "),i}if(r.isTop){var O=r.isTop,f=r.level=0,g=r.dataLevel=0,S="data";if(r.rootId=r.resolve.fullPath(r.self._getId(r.root.schema)),r.baseId=r.baseId||r.rootId,delete r.isTop,r.dataPathArr=[""],r.schema.default!==void 0&&r.opts.useDefaults&&r.opts.strictDefaults){var C="default is ignored in the schema root";if(r.opts.strictDefaults==="log")r.logger.warn(C);else throw new Error(C)}i+=" var vErrors = null; ",i+=" var errors = 0; ",i+=" if (rootData === undefined) rootData = data; "}else{var f=r.level,g=r.dataLevel,S="data"+(g||"");if(u&&(r.baseId=r.resolve.url(r.baseId,u)),a&&!r.async)throw new Error("async schema in sync schema");i+=" var errs_"+f+" = errors;"}var R="valid"+f,I=!r.opts.allErrors,k="",j="",G,L=r.schema.type,H=Array.isArray(L);if(L&&r.opts.nullable&&r.schema.nullable===!0&&(H?L.indexOf("null")==-1&&(L=L.concat("null")):L!="null"&&(L=[L,"null"],H=!0)),H&&L.length==1&&(L=L[0],H=!1),r.schema.$ref&&c){if(r.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+r.errSchemaPath+'" (see option extendRefs)');r.opts.extendRefs!==!0&&(c=!1,r.logger.warn('$ref: keywords ignored in schema at path "'+r.errSchemaPath+'"'))}if(r.schema.$comment&&r.opts.$comment&&(i+=" "+r.RULES.all.$comment.code(r,"$comment")),L){if(r.opts.coerceTypes)var F=r.util.coerceToTypes(r.opts.coerceTypes,L);var Y=r.RULES.types[L];if(F||H||Y===!0||Y&&!Fo(Y)){var b=r.schemaPath+".type",E=r.errSchemaPath+"/type",b=r.schemaPath+".type",E=r.errSchemaPath+"/type",V=H?"checkDataTypes":"checkDataType";if(i+=" if ("+r.util[V](L,S,r.opts.strictNumbers,!0)+") { ",F){var Q="dataType"+f,q="coerced"+f;i+=" var "+Q+" = typeof "+S+"; var "+q+" = undefined; ",r.opts.coerceTypes=="array"&&(i+=" if ("+Q+" == 'object' && Array.isArray("+S+") && "+S+".length == 1) { "+S+" = "+S+"[0]; "+Q+" = typeof "+S+"; if ("+r.util.checkDataType(r.schema.type,S,r.opts.strictNumbers)+") "+q+" = "+S+"; } "),i+=" if ("+q+" !== undefined) ; ";var Z=F;if(Z)for(var ie,se=-1,le=Z.length-1;se<le;)ie=Z[se+=1],ie=="string"?i+=" else if ("+Q+" == 'number' || "+Q+" == 'boolean') "+q+" = '' + "+S+"; else if ("+S+" === null) "+q+" = ''; ":ie=="number"||ie=="integer"?(i+=" else if ("+Q+" == 'boolean' || "+S+" === null || ("+Q+" == 'string' && "+S+" && "+S+" == +"+S+" ",ie=="integer"&&(i+=" && !("+S+" % 1)"),i+=")) "+q+" = +"+S+"; "):ie=="boolean"?i+=" else if ("+S+" === 'false' || "+S+" === 0 || "+S+" === null) "+q+" = false; else if ("+S+" === 'true' || "+S+" === 1) "+q+" = true; ":ie=="null"?i+=" else if ("+S+" === '' || "+S+" === 0 || "+S+" === false) "+q+" = null; ":r.opts.coerceTypes=="array"&&ie=="array"&&(i+=" else if ("+Q+" == 'string' || "+Q+" == 'number' || "+Q+" == 'boolean' || "+S+" == null) "+q+" = ["+S+"]; ");i+=" else { ";var _=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(G||"type")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(E)+" , params: { type: '",H?i+=""+L.join(","):i+=""+L,i+="' } ",r.opts.messages!==!1&&(i+=" , message: 'should be ",H?i+=""+L.join(","):i+=""+L,i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+S+" "),i+=" } "):i+=" {} ";var D=i;i=_.pop(),!r.compositeRule&&I?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } if ("+q+" !== undefined) { ";var _e=g?"data"+(g-1||""):"parentData",Ge=g?r.dataPathArr[g]:"parentDataProperty";i+=" "+S+" = "+q+"; ",g||(i+="if ("+_e+" !== undefined)"),i+=" "+_e+"["+Ge+"] = "+q+"; } "}else{var _=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(G||"type")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(E)+" , params: { type: '",H?i+=""+L.join(","):i+=""+L,i+="' } ",r.opts.messages!==!1&&(i+=" , message: 'should be ",H?i+=""+L.join(","):i+=""+L,i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+S+" "),i+=" } "):i+=" {} ";var D=i;i=_.pop(),!r.compositeRule&&I?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}i+=" } "}}if(r.schema.$ref&&!c)i+=" "+r.RULES.all.$ref.code(r,"$ref")+" ",I&&(i+=" } if (errors === ",O?i+="0":i+="errs_"+f,i+=") { ",j+="}");else{var Mt=r.RULES;if(Mt){for(var Y,Zt=-1,kt=Mt.length-1;Zt<kt;)if(Y=Mt[Zt+=1],Fo(Y)){if(Y.type&&(i+=" if ("+r.util.checkDataType(Y.type,S,r.opts.strictNumbers)+") { "),r.opts.useDefaults){if(Y.type=="object"&&r.schema.properties){var x=r.schema.properties,Gt=Object.keys(x),$e=Gt;if($e)for(var Qe,mo=-1,xe=$e.length-1;mo<xe;){Qe=$e[mo+=1];var ze=x[Qe];if(ze.default!==void 0){var ge=S+r.util.getProperty(Qe);if(r.compositeRule){if(r.opts.strictDefaults){var C="default is ignored for: "+ge;if(r.opts.strictDefaults==="log")r.logger.warn(C);else throw new Error(C)}}else i+=" if ("+ge+" === undefined ",r.opts.useDefaults=="empty"&&(i+=" || "+ge+" === null || "+ge+" === '' "),i+=" ) "+ge+" = ",r.opts.useDefaults=="shared"?i+=" "+r.useDefault(ze.default)+" ":i+=" "+JSON.stringify(ze.default)+" ",i+="; "}}}else if(Y.type=="array"&&Array.isArray(r.schema.items)){var ut=r.schema.items;if(ut){for(var ze,se=-1,$t=ut.length-1;se<$t;)if(ze=ut[se+=1],ze.default!==void 0){var ge=S+"["+se+"]";if(r.compositeRule){if(r.opts.strictDefaults){var C="default is ignored for: "+ge;if(r.opts.strictDefaults==="log")r.logger.warn(C);else throw new Error(C)}}else i+=" if ("+ge+" === undefined ",r.opts.useDefaults=="empty"&&(i+=" || "+ge+" === null || "+ge+" === '' "),i+=" ) "+ge+" = ",r.opts.useDefaults=="shared"?i+=" "+r.useDefault(ze.default)+" ":i+=" "+JSON.stringify(ze.default)+" ",i+="; "}}}}var ht=Y.rules;if(ht){for(var nr,eo=-1,Bn=ht.length-1;eo<Bn;)if(nr=ht[eo+=1],Ji(nr)){var Ep=nr.code(r,nr.keyword,Y.type);Ep&&(i+=" "+Ep+" ",I&&(k+="}"))}}if(I&&(i+=" "+k+" ",k=""),Y.type&&(i+=" } ",L&&L===Y.type&&!F)){i+=" else { ";var b=r.schemaPath+".type",E=r.errSchemaPath+"/type",_=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(G||"type")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(E)+" , params: { type: '",H?i+=""+L.join(","):i+=""+L,i+="' } ",r.opts.messages!==!1&&(i+=" , message: 'should be ",H?i+=""+L.join(","):i+=""+L,i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+b+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+S+" "),i+=" } "):i+=" {} ";var D=i;i=_.pop(),!r.compositeRule&&I?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } "}I&&(i+=" if (errors === ",O?i+="0":i+="errs_"+f,i+=") { ",j+="}")}}}I&&(i+=" "+j+" "),O?(a?(i+=" if (errors === 0) return data; ",i+=" else throw new ValidationError(vErrors); "):(i+=" validate.errors = vErrors; ",i+=" return errors === 0; "),i+=" }; return validate;"):i+=" var "+R+" = errors === errs_"+f+";";function Fo(Mo){for(var pi=Mo.rules,fi=0;fi<pi.length;fi++)if(Ji(pi[fi]))return!0}function Ji(Mo){return r.schema[Mo.keyword]!==void 0||Mo.implements&&Yi(Mo)}function Yi(Mo){for(var pi=Mo.implements,fi=0;fi<pi.length;fi++)if(r.schema[pi[fi]]!==void 0)return!0}return i}});var Zet=A((Awn,Yet)=>{"use strict";var fU=lU(),mU=AE(),Ket=pU(),mor=Ile(),zet=Rle(),hor=mU.ucs2length,gor=nU(),yor=Ket.Validation;Yet.exports=Fle;function Fle(e,r,n,o){var i=this,a=this._opts,c=[void 0],u={},l=[],p={},f=[],g={},x=[];r=r||{schema:e,refVal:c,refs:u};var b=xor.call(this,e,r,o),E=this._compilations[b.index];if(b.compiling)return E.callValidate=C;var S=this._formats,_=this.RULES;try{var D=R(e,r,n,o);E.validate=D;var O=E.callValidate;return O&&(O.schema=D.schema,O.errors=null,O.refs=D.refs,O.refVal=D.refVal,O.root=D.root,O.$async=D.$async,a.sourceCode&&(O.source=D.source)),D}finally{bor.call(this,e,r,o)}function C(){var V=E.validate,Q=V.apply(this,arguments);return C.errors=V.errors,Q}function R(V,Q,q,Z){var ie=!Q||Q&&Q.schema==V;if(Q.schema!=r.schema)return Fle.call(i,V,Q,q,Z);var se=V.$async===!0,le=zet({isTop:!0,schema:V,isRoot:ie,baseId:Z,root:Q,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:Ket.MissingRef,RULES:_,validate:zet,util:mU,resolve:fU,resolveRef:I,usePattern:H,useDefault:F,useCustomRule:Y,opts:a,formats:S,logger:i.logger,self:i});le=dU(c,Sor)+dU(l,Eor)+dU(f,vor)+dU(x,wor)+le,a.processCode&&(le=a.processCode(le,V));var _e;try{var Ge=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",le);_e=Ge(i,_,S,r,c,f,x,gor,hor,yor),c[0]=_e}catch(Mt){throw i.logger.error("Error compiling schema, function code:",le),Mt}return _e.schema=V,_e.errors=null,_e.refs=u,_e.refVal=c,_e.root=ie?_e:Q,se&&(_e.$async=!0),a.sourceCode===!0&&(_e.source={code:le,patterns:l,defaults:f}),_e}function I(V,Q,q){Q=fU.url(V,Q);var Z=u[Q],ie,se;if(Z!==void 0)return ie=c[Z],se="refVal["+Z+"]",L(ie,se);if(!q&&r.refs){var le=r.refs[Q];if(le!==void 0)return ie=r.refVal[le],se=k(Q,ie),L(ie,se)}se=k(Q);var _e=fU.call(i,R,r,Q);if(_e===void 0){var Ge=n&&n[Q];Ge&&(_e=fU.inlineRef(Ge,a.inlineRefs)?Ge:Fle.call(i,Ge,r,n,V))}if(_e===void 0)j(Q);else return G(Q,_e),L(_e,se)}function k(V,Q){var q=c.length;return c[q]=Q,u[V]=q,"refVal"+q}function j(V){delete u[V]}function G(V,Q){var q=u[V];c[q]=Q}function L(V,Q){return typeof V=="object"||typeof V=="boolean"?{code:Q,schema:V,inline:!0}:{code:Q,$async:V&&!!V.$async}}function H(V){var Q=p[V];return Q===void 0&&(Q=p[V]=l.length,l[Q]=V),"pattern"+Q}function F(V){switch(typeof V){case"boolean":case"number":return""+V;case"string":return mU.toQuotedString(V);case"object":if(V===null)return"null";var Q=mor(V),q=g[Q];return q===void 0&&(q=g[Q]=f.length,f[q]=V),"default"+q}}function Y(V,Q,q,Z){if(i._opts.validateSchema!==!1){var ie=V.definition.dependencies;if(ie&&!ie.every(function($e){return Object.prototype.hasOwnProperty.call(q,$e)}))throw new Error("parent schema must have all required keywords: "+ie.join(","));var se=V.definition.validateSchema;if(se){var le=se(Q);if(!le){var _e="keyword schema is invalid: "+i.errorsText(se.errors);if(i._opts.validateSchema=="log")i.logger.error(_e);else throw new Error(_e)}}}var Ge=V.definition.compile,Mt=V.definition.inline,Zt=V.definition.macro,kt;if(Ge)kt=Ge.call(i,Q,q,Z);else if(Zt)kt=Zt.call(i,Q,q,Z),a.validateSchema!==!1&&i.validateSchema(kt,!0);else if(Mt)kt=Mt.call(i,Z,V.keyword,Q,q);else if(kt=V.definition.validate,!kt)return;if(kt===void 0)throw new Error('custom keyword "'+V.keyword+'"failed to compile');var Gt=x.length;return x[Gt]=kt,{code:"customRule"+Gt,validate:kt}}}function xor(e,r,n){var o=Jet.call(this,e,r,n);return o>=0?{index:o,compiling:!0}:(o=this._compilations.length,this._compilations[o]={schema:e,root:r,baseId:n},{index:o,compiling:!1})}function bor(e,r,n){var o=Jet.call(this,e,r,n);o>=0&&this._compilations.splice(o,1)}function Jet(e,r,n){for(var o=0;o<this._compilations.length;o++){var i=this._compilations[o];if(i.schema==e&&i.root==r&&i.baseId==n)return o}return-1}function Eor(e,r){return"var pattern"+e+" = new RegExp("+mU.toQuotedString(r[e])+");"}function vor(e){return"var default"+e+" = defaults["+e+"];"}function Sor(e,r){return r[e]===void 0?"":"var refVal"+e+" = refVal["+e+"];"}function wor(e){return"var customRule"+e+" = customRules["+e+"];"}function dU(e,r){if(!e.length)return"";for(var n="",o=0;o<e.length;o++)n+=r(o,e);return n}});var Xet=A((Pwn,Qet)=>{"use strict";var hU=Qet.exports=function(){this._cache={}};hU.prototype.put=function(r,n){this._cache[r]=n};hU.prototype.get=function(r){return this._cache[r]};hU.prototype.del=function(r){delete this._cache[r]};hU.prototype.clear=function(){this._cache={}}});var ptt=A((Own,ltt)=>{"use strict";var _or=AE(),Tor=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Dor=[0,31,28,31,30,31,30,31,31,30,31,30,31],Cor=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,ett=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,Aor=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,Por=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,ttt=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,rtt=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,ntt=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,ott=/^(?:\/(?:[^~/]|~0|~1)*)*$/,itt=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,stt=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;ltt.exports=gU;function gU(e){return e=e=="full"?"full":"fast",_or.copy(gU[e])}gU.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":ttt,url:rtt,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:ett,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:utt,uuid:ntt,"json-pointer":ott,"json-pointer-uri-fragment":itt,"relative-json-pointer":stt};gU.full={date:att,time:ctt,"date-time":Ror,uri:Mor,"uri-reference":Por,"uri-template":ttt,url:rtt,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:ett,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:utt,uuid:ntt,"json-pointer":ott,"json-pointer-uri-fragment":itt,"relative-json-pointer":stt};function Oor(e){return e%4===0&&(e%100!==0||e%400===0)}function att(e){var r=e.match(Tor);if(!r)return!1;var n=+r[1],o=+r[2],i=+r[3];return o>=1&&o<=12&&i>=1&&i<=(o==2&&Oor(n)?29:Dor[o])}function ctt(e,r){var n=e.match(Cor);if(!n)return!1;var o=n[1],i=n[2],a=n[3],c=n[5];return(o<=23&&i<=59&&a<=59||o==23&&i==59&&a==60)&&(!r||c)}var Ior=/t|\s/i;function Ror(e){var r=e.split(Ior);return r.length==2&&att(r[0])&&ctt(r[1],!0)}var For=/\/|:/;function Mor(e){return For.test(e)&&Aor.test(e)}var kor=/[^\\]\\Z/;function utt(e){if(kor.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var dtt=A((Iwn,ftt)=>{"use strict";ftt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.errSchemaPath+"/"+n,p=!r.opts.allErrors,f="data"+(c||""),g="valid"+a,x,b;if(u=="#"||u=="#/")r.isRoot?(x=r.async,b="validate"):(x=r.root.schema.$async===!0,b="root.refVal[0]");else{var E=r.resolveRef(r.baseId,u,r.isRoot);if(E===void 0){var S=r.MissingRefError.message(r.baseId,u);if(r.opts.missingRefs=="fail"){r.logger.error(S);var _=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(l)+" , params: { ref: '"+r.util.escapeQuotes(u)+"' } ",r.opts.messages!==!1&&(i+=" , message: 'can\\'t resolve reference "+r.util.escapeQuotes(u)+"' "),r.opts.verbose&&(i+=" , schema: "+r.util.toQuotedString(u)+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var D=i;i=_.pop(),!r.compositeRule&&p?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",p&&(i+=" if (false) { ")}else if(r.opts.missingRefs=="ignore")r.logger.warn(S),p&&(i+=" if (true) { ");else throw new r.MissingRefError(r.baseId,u,S)}else if(E.inline){var O=r.util.copy(r);O.level++;var C="valid"+O.level;O.schema=E.schema,O.schemaPath="",O.errSchemaPath=u;var R=r.validate(O).replace(/validate\.schema/g,E.code);i+=" "+R+" ",p&&(i+=" if ("+C+") { ")}else x=E.$async===!0||r.async&&E.$async!==!1,b=E.code}if(b){var _=_||[];_.push(i),i="",r.opts.passContext?i+=" "+b+".call(this, ":i+=" "+b+"( ",i+=" "+f+", (dataPath || '')",r.errorPath!='""'&&(i+=" + "+r.errorPath);var I=c?"data"+(c-1||""):"parentData",k=c?r.dataPathArr[c]:"parentDataProperty";i+=" , "+I+" , "+k+", rootData) ";var j=i;if(i=_.pop(),x){if(!r.async)throw new Error("async schema referenced by sync schema");p&&(i+=" var "+g+"; "),i+=" try { await "+j+"; ",p&&(i+=" "+g+" = true; "),i+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",p&&(i+=" "+g+" = false; "),i+=" } ",p&&(i+=" if ("+g+") { ")}else i+=" if (!"+j+") { if (vErrors === null) vErrors = "+b+".errors; else vErrors = vErrors.concat("+b+".errors); errors = vErrors.length; } ",p&&(i+=" else { ")}return i}});var htt=A((Rwn,mtt)=>{"use strict";mtt.exports=function(r,n,o){var i=" ",a=r.schema[n],c=r.schemaPath+r.util.getProperty(n),u=r.errSchemaPath+"/"+n,l=!r.opts.allErrors,p=r.util.copy(r),f="";p.level++;var g="valid"+p.level,x=p.baseId,b=!0,E=a;if(E)for(var S,_=-1,D=E.length-1;_<D;)S=E[_+=1],(r.opts.strictKeywords?typeof S=="object"&&Object.keys(S).length>0||S===!1:r.util.schemaHasRules(S,r.RULES.all))&&(b=!1,p.schema=S,p.schemaPath=c+"["+_+"]",p.errSchemaPath=u+"/"+_,i+=" "+r.validate(p)+" ",p.baseId=x,l&&(i+=" if ("+g+") { ",f+="}"));return l&&(b?i+=" if (true) { ":i+=" "+f.slice(0,-1)+" "),i}});var ytt=A((Fwn,gtt)=>{"use strict";gtt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b="errs__"+a,E=r.util.copy(r),S="";E.level++;var _="valid"+E.level,D=u.every(function(G){return r.opts.strictKeywords?typeof G=="object"&&Object.keys(G).length>0||G===!1:r.util.schemaHasRules(G,r.RULES.all)});if(D){var O=E.baseId;i+=" var "+b+" = errors; var "+x+" = false; ";var C=r.compositeRule;r.compositeRule=E.compositeRule=!0;var R=u;if(R)for(var I,k=-1,j=R.length-1;k<j;)I=R[k+=1],E.schema=I,E.schemaPath=l+"["+k+"]",E.errSchemaPath=p+"/"+k,i+=" "+r.validate(E)+" ",E.baseId=O,i+=" "+x+" = "+x+" || "+_+"; if (!"+x+") { ",S+="}";r.compositeRule=E.compositeRule=C,i+=" "+S+" if (!"+x+") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: 'should match some schema in anyOf' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&f&&(r.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } else { errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; } ",r.opts.allErrors&&(i+=" } ")}else f&&(i+=" if (true) { ");return i}});var btt=A((Mwn,xtt)=>{"use strict";xtt.exports=function(r,n,o){var i=" ",a=r.schema[n],c=r.errSchemaPath+"/"+n,u=!r.opts.allErrors,l=r.util.toQuotedString(a);return r.opts.$comment===!0?i+=" console.log("+l+");":typeof r.opts.$comment=="function"&&(i+=" self._opts.$comment("+l+", "+r.util.toQuotedString(c)+", validate.root.schema);"),i}});var vtt=A((kwn,Ett)=>{"use strict";Ett.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b=r.opts.$data&&u&&u.$data,E;b?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",E="schema"+a):E=u,b||(i+=" var schema"+a+" = validate.schema"+l+";"),i+="var "+x+" = equal("+g+", schema"+a+"); if (!"+x+") { ";var S=S||[];S.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'const' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { allowedValue: schema"+a+" } ",r.opts.messages!==!1&&(i+=" , message: 'should be equal to constant' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var _=i;return i=S.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+_+"]); ":i+=" validate.errors = ["+_+"]; return false; ":i+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",f&&(i+=" else { "),i}});var wtt=A(($wn,Stt)=>{"use strict";Stt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b="errs__"+a,E=r.util.copy(r),S="";E.level++;var _="valid"+E.level,D="i"+a,O=E.dataLevel=r.dataLevel+1,C="data"+O,R=r.baseId,I=r.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:r.util.schemaHasRules(u,r.RULES.all);if(i+="var "+b+" = errors;var "+x+";",I){var k=r.compositeRule;r.compositeRule=E.compositeRule=!0,E.schema=u,E.schemaPath=l,E.errSchemaPath=p,i+=" var "+_+" = false; for (var "+D+" = 0; "+D+" < "+g+".length; "+D+"++) { ",E.errorPath=r.util.getPathExpr(r.errorPath,D,r.opts.jsonPointers,!0);var j=g+"["+D+"]";E.dataPathArr[O]=D;var G=r.validate(E);E.baseId=R,r.util.varOccurences(G,C)<2?i+=" "+r.util.varReplace(G,C,j)+" ":i+=" var "+C+" = "+j+"; "+G+" ",i+=" if ("+_+") break; } ",r.compositeRule=E.compositeRule=k,i+=" "+S+" if (!"+_+") {"}else i+=" if ("+g+".length == 0) {";var L=L||[];L.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: 'should contain a valid item' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var H=i;return i=L.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+H+"]); ":i+=" validate.errors = ["+H+"]; return false; ":i+=" var err = "+H+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { ",I&&(i+=" errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; } "),r.opts.allErrors&&(i+=" } "),i}});var Ttt=A((Nwn,_tt)=>{"use strict";_tt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="errs__"+a,b=r.util.copy(r),E="";b.level++;var S="valid"+b.level,_={},D={},O=r.opts.ownProperties;for(k in u)if(k!="__proto__"){var C=u[k],R=Array.isArray(C)?D:_;R[k]=C}i+="var "+x+" = errors;";var I=r.errorPath;i+="var missing"+a+";";for(var k in D)if(R=D[k],R.length){if(i+=" if ( "+g+r.util.getProperty(k)+" !== undefined ",O&&(i+=" && Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(k)+"') "),f){i+=" && ( ";var j=R;if(j)for(var G,L=-1,H=j.length-1;L<H;){G=j[L+=1],L&&(i+=" || ");var F=r.util.getProperty(G),Y=g+F;i+=" ( ( "+Y+" === undefined ",O&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(G)+"') "),i+=") && (missing"+a+" = "+r.util.toQuotedString(r.opts.jsonPointers?G:F)+") ) "}i+=")) { ";var V="missing"+a,Q="' + "+V+" + '";r.opts._errorDataPathProperty&&(r.errorPath=r.opts.jsonPointers?r.util.getPathExpr(I,V,!0):I+" + "+V);var q=q||[];q.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { property: '"+r.util.escapeQuotes(k)+"', missingProperty: '"+Q+"', depsCount: "+R.length+", deps: '"+r.util.escapeQuotes(R.length==1?R[0]:R.join(", "))+"' } ",r.opts.messages!==!1&&(i+=" , message: 'should have ",R.length==1?i+="property "+r.util.escapeQuotes(R[0]):i+="properties "+r.util.escapeQuotes(R.join(", ")),i+=" when property "+r.util.escapeQuotes(k)+" is present' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var Z=i;i=q.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+Z+"]); ":i+=" validate.errors = ["+Z+"]; return false; ":i+=" var err = "+Z+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{i+=" ) { ";var ie=R;if(ie)for(var G,se=-1,le=ie.length-1;se<le;){G=ie[se+=1];var F=r.util.getProperty(G),Q=r.util.escapeQuotes(G),Y=g+F;r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPath(I,G,r.opts.jsonPointers)),i+=" if ( "+Y+" === undefined ",O&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(G)+"') "),i+=") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { property: '"+r.util.escapeQuotes(k)+"', missingProperty: '"+Q+"', depsCount: "+R.length+", deps: '"+r.util.escapeQuotes(R.length==1?R[0]:R.join(", "))+"' } ",r.opts.messages!==!1&&(i+=" , message: 'should have ",R.length==1?i+="property "+r.util.escapeQuotes(R[0]):i+="properties "+r.util.escapeQuotes(R.join(", ")),i+=" when property "+r.util.escapeQuotes(k)+" is present' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}i+=" } ",f&&(E+="}",i+=" else { ")}r.errorPath=I;var _e=b.baseId;for(var k in _){var C=_[k];(r.opts.strictKeywords?typeof C=="object"&&Object.keys(C).length>0||C===!1:r.util.schemaHasRules(C,r.RULES.all))&&(i+=" "+S+" = true; if ( "+g+r.util.getProperty(k)+" !== undefined ",O&&(i+=" && Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(k)+"') "),i+=") { ",b.schema=C,b.schemaPath=l+r.util.getProperty(k),b.errSchemaPath=p+"/"+r.util.escapeFragment(k),i+=" "+r.validate(b)+" ",b.baseId=_e,i+=" } ",f&&(i+=" if ("+S+") { ",E+="}"))}return f&&(i+=" "+E+" if ("+x+" == errors) {"),i}});var Ctt=A((Lwn,Dtt)=>{"use strict";Dtt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b=r.opts.$data&&u&&u.$data,E;b?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",E="schema"+a):E=u;var S="i"+a,_="schema"+a;b||(i+=" var "+_+" = validate.schema"+l+";"),i+="var "+x+";",b&&(i+=" if (schema"+a+" === undefined) "+x+" = true; else if (!Array.isArray(schema"+a+")) "+x+" = false; else {"),i+=""+x+" = false;for (var "+S+"=0; "+S+"<"+_+".length; "+S+"++) if (equal("+g+", "+_+"["+S+"])) { "+x+" = true; break; }",b&&(i+=" } "),i+=" if (!"+x+") { ";var D=D||[];D.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { allowedValues: schema"+a+" } ",r.opts.messages!==!1&&(i+=" , message: 'should be equal to one of the allowed values' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var O=i;return i=D.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+O+"]); ":i+=" validate.errors = ["+O+"]; return false; ":i+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",f&&(i+=" else { "),i}});var Ptt=A((Bwn,Att)=>{"use strict";Att.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||"");if(r.opts.format===!1)return f&&(i+=" if (true) { "),i;var x=r.opts.$data&&u&&u.$data,b;x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u;var E=r.opts.unknownFormats,S=Array.isArray(E);if(x){var _="format"+a,D="isObject"+a,O="formatType"+a;i+=" var "+_+" = formats["+b+"]; var "+D+" = typeof "+_+" == 'object' && !("+_+" instanceof RegExp) && "+_+".validate; var "+O+" = "+D+" && "+_+".type || 'string'; if ("+D+") { ",r.async&&(i+=" var async"+a+" = "+_+".async; "),i+=" "+_+" = "+_+".validate; } if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'string') || "),i+=" (",E!="ignore"&&(i+=" ("+b+" && !"+_+" ",S&&(i+=" && self._opts.unknownFormats.indexOf("+b+") == -1 "),i+=") || "),i+=" ("+_+" && "+O+" == '"+o+"' && !(typeof "+_+" == 'function' ? ",r.async?i+=" (async"+a+" ? await "+_+"("+g+") : "+_+"("+g+")) ":i+=" "+_+"("+g+") ",i+=" : "+_+".test("+g+"))))) {"}else{var _=r.formats[u];if(!_){if(E=="ignore")return r.logger.warn('unknown format "'+u+'" ignored in schema at path "'+r.errSchemaPath+'"'),f&&(i+=" if (true) { "),i;if(S&&E.indexOf(u)>=0)return f&&(i+=" if (true) { "),i;throw new Error('unknown format "'+u+'" is used in schema at path "'+r.errSchemaPath+'"')}var D=typeof _=="object"&&!(_ instanceof RegExp)&&_.validate,O=D&&_.type||"string";if(D){var C=_.async===!0;_=_.validate}if(O!=o)return f&&(i+=" if (true) { "),i;if(C){if(!r.async)throw new Error("async format in sync schema");var R="formats"+r.util.getProperty(u)+".validate";i+=" if (!(await "+R+"("+g+"))) { "}else{i+=" if (! ";var R="formats"+r.util.getProperty(u);D&&(R+=".validate"),typeof _=="function"?i+=" "+R+"("+g+") ":i+=" "+R+".test("+g+") ",i+=") { "}}var I=I||[];I.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'format' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { format: ",x?i+=""+b:i+=""+r.util.toQuotedString(u),i+=" } ",r.opts.messages!==!1&&(i+=` , message: 'should match format "`,x?i+="' + "+b+" + '":i+=""+r.util.escapeQuotes(u),i+=`"' `),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+r.util.toQuotedString(u),i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var k=i;return i=I.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+k+"]); ":i+=" validate.errors = ["+k+"]; return false; ":i+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",f&&(i+=" else { "),i}});var Itt=A((Uwn,Ott)=>{"use strict";Ott.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b="errs__"+a,E=r.util.copy(r);E.level++;var S="valid"+E.level,_=r.schema.then,D=r.schema.else,O=_!==void 0&&(r.opts.strictKeywords?typeof _=="object"&&Object.keys(_).length>0||_===!1:r.util.schemaHasRules(_,r.RULES.all)),C=D!==void 0&&(r.opts.strictKeywords?typeof D=="object"&&Object.keys(D).length>0||D===!1:r.util.schemaHasRules(D,r.RULES.all)),R=E.baseId;if(O||C){var I;E.createErrors=!1,E.schema=u,E.schemaPath=l,E.errSchemaPath=p,i+=" var "+b+" = errors; var "+x+" = true; ";var k=r.compositeRule;r.compositeRule=E.compositeRule=!0,i+=" "+r.validate(E)+" ",E.baseId=R,E.createErrors=!0,i+=" errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; } ",r.compositeRule=E.compositeRule=k,O?(i+=" if ("+S+") { ",E.schema=r.schema.then,E.schemaPath=r.schemaPath+".then",E.errSchemaPath=r.errSchemaPath+"/then",i+=" "+r.validate(E)+" ",E.baseId=R,i+=" "+x+" = "+S+"; ",O&&C?(I="ifClause"+a,i+=" var "+I+" = 'then'; "):I="'then'",i+=" } ",C&&(i+=" else { ")):i+=" if (!"+S+") { ",C&&(E.schema=r.schema.else,E.schemaPath=r.schemaPath+".else",E.errSchemaPath=r.errSchemaPath+"/else",i+=" "+r.validate(E)+" ",E.baseId=R,i+=" "+x+" = "+S+"; ",O&&C?(I="ifClause"+a,i+=" var "+I+" = 'else'; "):I="'else'",i+=" } "),i+=" if (!"+x+") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'if' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { failingKeyword: "+I+" } ",r.opts.messages!==!1&&(i+=` , message: 'should match "' + `+I+` + '" schema' `),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&f&&(r.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } ",f&&(i+=" else { ")}else f&&(i+=" if (true) { ");return i}});var Ftt=A((jwn,Rtt)=>{"use strict";Rtt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b="errs__"+a,E=r.util.copy(r),S="";E.level++;var _="valid"+E.level,D="i"+a,O=E.dataLevel=r.dataLevel+1,C="data"+O,R=r.baseId;if(i+="var "+b+" = errors;var "+x+";",Array.isArray(u)){var I=r.schema.additionalItems;if(I===!1){i+=" "+x+" = "+g+".length <= "+u.length+"; ";var k=p;p=r.errSchemaPath+"/additionalItems",i+=" if (!"+x+") { ";var j=j||[];j.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { limit: "+u.length+" } ",r.opts.messages!==!1&&(i+=" , message: 'should NOT have more than "+u.length+" items' "),r.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var G=i;i=j.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+G+"]); ":i+=" validate.errors = ["+G+"]; return false; ":i+=" var err = "+G+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",p=k,f&&(S+="}",i+=" else { ")}var L=u;if(L){for(var H,F=-1,Y=L.length-1;F<Y;)if(H=L[F+=1],r.opts.strictKeywords?typeof H=="object"&&Object.keys(H).length>0||H===!1:r.util.schemaHasRules(H,r.RULES.all)){i+=" "+_+" = true; if ("+g+".length > "+F+") { ";var V=g+"["+F+"]";E.schema=H,E.schemaPath=l+"["+F+"]",E.errSchemaPath=p+"/"+F,E.errorPath=r.util.getPathExpr(r.errorPath,F,r.opts.jsonPointers,!0),E.dataPathArr[O]=F;var Q=r.validate(E);E.baseId=R,r.util.varOccurences(Q,C)<2?i+=" "+r.util.varReplace(Q,C,V)+" ":i+=" var "+C+" = "+V+"; "+Q+" ",i+=" } ",f&&(i+=" if ("+_+") { ",S+="}")}}if(typeof I=="object"&&(r.opts.strictKeywords?typeof I=="object"&&Object.keys(I).length>0||I===!1:r.util.schemaHasRules(I,r.RULES.all))){E.schema=I,E.schemaPath=r.schemaPath+".additionalItems",E.errSchemaPath=r.errSchemaPath+"/additionalItems",i+=" "+_+" = true; if ("+g+".length > "+u.length+") { for (var "+D+" = "+u.length+"; "+D+" < "+g+".length; "+D+"++) { ",E.errorPath=r.util.getPathExpr(r.errorPath,D,r.opts.jsonPointers,!0);var V=g+"["+D+"]";E.dataPathArr[O]=D;var Q=r.validate(E);E.baseId=R,r.util.varOccurences(Q,C)<2?i+=" "+r.util.varReplace(Q,C,V)+" ":i+=" var "+C+" = "+V+"; "+Q+" ",f&&(i+=" if (!"+_+") break; "),i+=" } } ",f&&(i+=" if ("+_+") { ",S+="}")}}else if(r.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:r.util.schemaHasRules(u,r.RULES.all)){E.schema=u,E.schemaPath=l,E.errSchemaPath=p,i+=" for (var "+D+" = 0; "+D+" < "+g+".length; "+D+"++) { ",E.errorPath=r.util.getPathExpr(r.errorPath,D,r.opts.jsonPointers,!0);var V=g+"["+D+"]";E.dataPathArr[O]=D;var Q=r.validate(E);E.baseId=R,r.util.varOccurences(Q,C)<2?i+=" "+r.util.varReplace(Q,C,V)+" ":i+=" var "+C+" = "+V+"; "+Q+" ",f&&(i+=" if (!"+_+") break; "),i+=" }"}return f&&(i+=" "+S+" if ("+b+" == errors) {"),i}});var Mle=A((qwn,Mtt)=>{"use strict";Mtt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,R,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u;var E=n=="maximum",S=E?"exclusiveMaximum":"exclusiveMinimum",_=r.schema[S],D=r.opts.$data&&_&&_.$data,O=E?"<":">",C=E?">":"<",R=void 0;if(!(x||typeof u=="number"||u===void 0))throw new Error(n+" must be number");if(!(D||_===void 0||typeof _=="number"||typeof _=="boolean"))throw new Error(S+" must be number or boolean");if(D){var I=r.util.getData(_.$data,c,r.dataPathArr),k="exclusive"+a,j="exclType"+a,G="exclIsNumber"+a,L="op"+a,H="' + "+L+" + '";i+=" var schemaExcl"+a+" = "+I+"; ",I="schemaExcl"+a,i+=" var "+k+"; var "+j+" = typeof "+I+"; if ("+j+" != 'boolean' && "+j+" != 'undefined' && "+j+" != 'number') { ";var R=S,F=F||[];F.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(R||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: '"+S+" should be boolean' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var Y=i;i=F.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+Y+"]); ":i+=" validate.errors = ["+Y+"]; return false; ":i+=" var err = "+Y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),i+=" "+j+" == 'number' ? ( ("+k+" = "+b+" === undefined || "+I+" "+O+"= "+b+") ? "+g+" "+C+"= "+I+" : "+g+" "+C+" "+b+" ) : ( ("+k+" = "+I+" === true) ? "+g+" "+C+"= "+b+" : "+g+" "+C+" "+b+" ) || "+g+" !== "+g+") { var op"+a+" = "+k+" ? '"+O+"' : '"+O+"='; ",u===void 0&&(R=S,p=r.errSchemaPath+"/"+S,b=I,x=D)}else{var G=typeof _=="number",H=O;if(G&&x){var L="'"+H+"'";i+=" if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),i+=" ( "+b+" === undefined || "+_+" "+O+"= "+b+" ? "+g+" "+C+"= "+_+" : "+g+" "+C+" "+b+" ) || "+g+" !== "+g+") { "}else{G&&u===void 0?(k=!0,R=S,p=r.errSchemaPath+"/"+S,b=_,C+="="):(G&&(b=Math[E?"min":"max"](_,u)),_===(G?b:!0)?(k=!0,R=S,p=r.errSchemaPath+"/"+S,C+="="):(k=!1,H+="="));var L="'"+H+"'";i+=" if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),i+=" "+g+" "+C+" "+b+" || "+g+" !== "+g+") { "}}R=R||n;var F=F||[];F.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(R||"_limit")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { comparison: "+L+", limit: "+b+", exclusive: "+k+" } ",r.opts.messages!==!1&&(i+=" , message: 'should be "+H+" ",x?i+="' + "+b:i+=""+b+"'"),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var Y=i;return i=F.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+Y+"]); ":i+=" validate.errors = ["+Y+"]; return false; ":i+=" var err = "+Y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",f&&(i+=" else { "),i}});var kle=A((Gwn,ktt)=>{"use strict";ktt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,S,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;if(x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u,!(x||typeof u=="number"))throw new Error(n+" must be number");var E=n=="maxItems"?">":"<";i+="if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),i+=" "+g+".length "+E+" "+b+") { ";var S=n,_=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(S||"_limitItems")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { limit: "+b+" } ",r.opts.messages!==!1&&(i+=" , message: 'should NOT have ",n=="maxItems"?i+="more":i+="fewer",i+=" than ",x?i+="' + "+b+" + '":i+=""+u,i+=" items' "),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var D=i;return i=_.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",f&&(i+=" else { "),i}});var $le=A((Hwn,$tt)=>{"use strict";$tt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,S,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;if(x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u,!(x||typeof u=="number"))throw new Error(n+" must be number");var E=n=="maxLength"?">":"<";i+="if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),r.opts.unicode===!1?i+=" "+g+".length ":i+=" ucs2length("+g+") ",i+=" "+E+" "+b+") { ";var S=n,_=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(S||"_limitLength")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { limit: "+b+" } ",r.opts.messages!==!1&&(i+=" , message: 'should NOT be ",n=="maxLength"?i+="longer":i+="shorter",i+=" than ",x?i+="' + "+b+" + '":i+=""+u,i+=" characters' "),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var D=i;return i=_.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",f&&(i+=" else { "),i}});var Nle=A((Wwn,Ntt)=>{"use strict";Ntt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,S,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;if(x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u,!(x||typeof u=="number"))throw new Error(n+" must be number");var E=n=="maxProperties"?">":"<";i+="if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'number') || "),i+=" Object.keys("+g+").length "+E+" "+b+") { ";var S=n,_=_||[];_.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(S||"_limitProperties")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { limit: "+b+" } ",r.opts.messages!==!1&&(i+=" , message: 'should NOT have ",n=="maxProperties"?i+="more":i+="fewer",i+=" than ",x?i+="' + "+b+" + '":i+=""+u,i+=" properties' "),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var D=i;return i=_.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+D+"]); ":i+=" validate.errors = ["+D+"]; return false; ":i+=" var err = "+D+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",f&&(i+=" else { "),i}});var Btt=A((Vwn,Ltt)=>{"use strict";Ltt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;if(x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u,!(x||typeof u=="number"))throw new Error(n+" must be number");i+="var division"+a+";if (",x&&(i+=" "+b+" !== undefined && ( typeof "+b+" != 'number' || "),i+=" (division"+a+" = "+g+" / "+b+", ",r.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+a+") - division"+a+") > 1e-"+r.opts.multipleOfPrecision+" ":i+=" division"+a+" !== parseInt(division"+a+") ",i+=" ) ",x&&(i+=" ) "),i+=" ) { ";var E=E||[];E.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { multipleOf: "+b+" } ",r.opts.messages!==!1&&(i+=" , message: 'should be multiple of ",x?i+="' + "+b:i+=""+b+"'"),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var S=i;return i=E.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+S+"]); ":i+=" validate.errors = ["+S+"]; return false; ":i+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",f&&(i+=" else { "),i}});var jtt=A((zwn,Utt)=>{"use strict";Utt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="errs__"+a,b=r.util.copy(r);b.level++;var E="valid"+b.level;if(r.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:r.util.schemaHasRules(u,r.RULES.all)){b.schema=u,b.schemaPath=l,b.errSchemaPath=p,i+=" var "+x+" = errors; ";var S=r.compositeRule;r.compositeRule=b.compositeRule=!0,b.createErrors=!1;var _;b.opts.allErrors&&(_=b.opts.allErrors,b.opts.allErrors=!1),i+=" "+r.validate(b)+" ",b.createErrors=!0,_&&(b.opts.allErrors=_),r.compositeRule=b.compositeRule=S,i+=" if ("+E+") { ";var D=D||[];D.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var O=i;i=D.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+O+"]); ":i+=" validate.errors = ["+O+"]; return false; ":i+=" var err = "+O+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { errors = "+x+"; if (vErrors !== null) { if ("+x+") vErrors.length = "+x+"; else vErrors = null; } ",r.opts.allErrors&&(i+=" } ")}else i+=" var err = ",r.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: {} ",r.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",f&&(i+=" if (false) { ");return i}});var Gtt=A((Kwn,qtt)=>{"use strict";qtt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b="errs__"+a,E=r.util.copy(r),S="";E.level++;var _="valid"+E.level,D=E.baseId,O="prevValid"+a,C="passingSchemas"+a;i+="var "+b+" = errors , "+O+" = false , "+x+" = false , "+C+" = null; ";var R=r.compositeRule;r.compositeRule=E.compositeRule=!0;var I=u;if(I)for(var k,j=-1,G=I.length-1;j<G;)k=I[j+=1],(r.opts.strictKeywords?typeof k=="object"&&Object.keys(k).length>0||k===!1:r.util.schemaHasRules(k,r.RULES.all))?(E.schema=k,E.schemaPath=l+"["+j+"]",E.errSchemaPath=p+"/"+j,i+=" "+r.validate(E)+" ",E.baseId=D):i+=" var "+_+" = true; ",j&&(i+=" if ("+_+" && "+O+") { "+x+" = false; "+C+" = ["+C+", "+j+"]; } else { ",S+="}"),i+=" if ("+_+") { "+x+" = "+O+" = true; "+C+" = "+j+"; }";return r.compositeRule=E.compositeRule=R,i+=""+S+"if (!"+x+") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { passingSchemas: "+C+" } ",r.opts.messages!==!1&&(i+=" , message: 'should match exactly one schema in oneOf' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&f&&(r.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+="} else { errors = "+b+"; if (vErrors !== null) { if ("+b+") vErrors.length = "+b+"; else vErrors = null; }",r.opts.allErrors&&(i+=" } "),i}});var Wtt=A((Jwn,Htt)=>{"use strict";Htt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x=r.opts.$data&&u&&u.$data,b;x?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",b="schema"+a):b=u;var E=x?"(new RegExp("+b+"))":r.usePattern(u);i+="if ( ",x&&(i+=" ("+b+" !== undefined && typeof "+b+" != 'string') || "),i+=" !"+E+".test("+g+") ) { ";var S=S||[];S.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { pattern: ",x?i+=""+b:i+=""+r.util.toQuotedString(u),i+=" } ",r.opts.messages!==!1&&(i+=` , message: 'should match pattern "`,x?i+="' + "+b+" + '":i+=""+r.util.escapeQuotes(u),i+=`"' `),r.opts.verbose&&(i+=" , schema: ",x?i+="validate.schema"+l:i+=""+r.util.toQuotedString(u),i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var _=i;return i=S.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+_+"]); ":i+=" validate.errors = ["+_+"]; return false; ":i+=" var err = "+_+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",f&&(i+=" else { "),i}});var ztt=A((Ywn,Vtt)=>{"use strict";Vtt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="errs__"+a,b=r.util.copy(r),E="";b.level++;var S="valid"+b.level,_="key"+a,D="idx"+a,O=b.dataLevel=r.dataLevel+1,C="data"+O,R="dataProperties"+a,I=Object.keys(u||{}).filter(se),k=r.schema.patternProperties||{},j=Object.keys(k).filter(se),G=r.schema.additionalProperties,L=I.length||j.length,H=G===!1,F=typeof G=="object"&&Object.keys(G).length,Y=r.opts.removeAdditional,V=H||F||Y,Q=r.opts.ownProperties,q=r.baseId,Z=r.schema.required;if(Z&&!(r.opts.$data&&Z.$data)&&Z.length<r.opts.loopRequired)var ie=r.util.toHash(Z);function se(ha){return ha!=="__proto__"}if(i+="var "+x+" = errors;var "+S+" = true;",Q&&(i+=" var "+R+" = undefined;"),V){if(Q?i+=" "+R+" = "+R+" || Object.keys("+g+"); for (var "+D+"=0; "+D+"<"+R+".length; "+D+"++) { var "+_+" = "+R+"["+D+"]; ":i+=" for (var "+_+" in "+g+") { ",L){if(i+=" var isAdditional"+a+" = !(false ",I.length)if(I.length>8)i+=" || validate.schema"+l+".hasOwnProperty("+_+") ";else{var le=I;if(le)for(var _e,Ge=-1,Mt=le.length-1;Ge<Mt;)_e=le[Ge+=1],i+=" || "+_+" == "+r.util.toQuotedString(_e)+" "}if(j.length){var Zt=j;if(Zt)for(var kt,Gt=-1,$e=Zt.length-1;Gt<$e;)kt=Zt[Gt+=1],i+=" || "+r.usePattern(kt)+".test("+_+") "}i+=" ); if (isAdditional"+a+") { "}if(Y=="all")i+=" delete "+g+"["+_+"]; ";else{var Qe=r.errorPath,mo="' + "+_+" + '";if(r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPathExpr(r.errorPath,_,r.opts.jsonPointers)),H)if(Y)i+=" delete "+g+"["+_+"]; ";else{i+=" "+S+" = false; ";var xe=p;p=r.errSchemaPath+"/additionalProperties";var ze=ze||[];ze.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { additionalProperty: '"+mo+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is an invalid additional property":i+="should NOT have additional properties",i+="' "),r.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var ge=i;i=ze.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+ge+"]); ":i+=" validate.errors = ["+ge+"]; return false; ":i+=" var err = "+ge+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",p=xe,f&&(i+=" break; ")}else if(F)if(Y=="failing"){i+=" var "+x+" = errors; ";var ut=r.compositeRule;r.compositeRule=b.compositeRule=!0,b.schema=G,b.schemaPath=r.schemaPath+".additionalProperties",b.errSchemaPath=r.errSchemaPath+"/additionalProperties",b.errorPath=r.opts._errorDataPathProperty?r.errorPath:r.util.getPathExpr(r.errorPath,_,r.opts.jsonPointers);var $t=g+"["+_+"]";b.dataPathArr[O]=_;var ht=r.validate(b);b.baseId=q,r.util.varOccurences(ht,C)<2?i+=" "+r.util.varReplace(ht,C,$t)+" ":i+=" var "+C+" = "+$t+"; "+ht+" ",i+=" if (!"+S+") { errors = "+x+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+g+"["+_+"]; } ",r.compositeRule=b.compositeRule=ut}else{b.schema=G,b.schemaPath=r.schemaPath+".additionalProperties",b.errSchemaPath=r.errSchemaPath+"/additionalProperties",b.errorPath=r.opts._errorDataPathProperty?r.errorPath:r.util.getPathExpr(r.errorPath,_,r.opts.jsonPointers);var $t=g+"["+_+"]";b.dataPathArr[O]=_;var ht=r.validate(b);b.baseId=q,r.util.varOccurences(ht,C)<2?i+=" "+r.util.varReplace(ht,C,$t)+" ":i+=" var "+C+" = "+$t+"; "+ht+" ",f&&(i+=" if (!"+S+") break; ")}r.errorPath=Qe}L&&(i+=" } "),i+=" } ",f&&(i+=" if ("+S+") { ",E+="}")}var nr=r.opts.useDefaults&&!r.compositeRule;if(I.length){var eo=I;if(eo)for(var _e,Bn=-1,Ep=eo.length-1;Bn<Ep;){_e=eo[Bn+=1];var Fo=u[_e];if(r.opts.strictKeywords?typeof Fo=="object"&&Object.keys(Fo).length>0||Fo===!1:r.util.schemaHasRules(Fo,r.RULES.all)){var Ji=r.util.getProperty(_e),$t=g+Ji,Yi=nr&&Fo.default!==void 0;b.schema=Fo,b.schemaPath=l+Ji,b.errSchemaPath=p+"/"+r.util.escapeFragment(_e),b.errorPath=r.util.getPath(r.errorPath,_e,r.opts.jsonPointers),b.dataPathArr[O]=r.util.toQuotedString(_e);var ht=r.validate(b);if(b.baseId=q,r.util.varOccurences(ht,C)<2){ht=r.util.varReplace(ht,C,$t);var Mo=$t}else{var Mo=C;i+=" var "+C+" = "+$t+"; "}if(Yi)i+=" "+ht+" ";else{if(ie&&ie[_e]){i+=" if ( "+Mo+" === undefined ",Q&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(_e)+"') "),i+=") { "+S+" = false; ";var Qe=r.errorPath,xe=p,pi=r.util.escapeQuotes(_e);r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPath(Qe,_e,r.opts.jsonPointers)),p=r.errSchemaPath+"/required";var ze=ze||[];ze.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+pi+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+pi+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var ge=i;i=ze.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+ge+"]); ":i+=" validate.errors = ["+ge+"]; return false; ":i+=" var err = "+ge+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",p=xe,r.errorPath=Qe,i+=" } else { "}else f?(i+=" if ( "+Mo+" === undefined ",Q&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(_e)+"') "),i+=") { "+S+" = true; } else { "):(i+=" if ("+Mo+" !== undefined ",Q&&(i+=" && Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(_e)+"') "),i+=" ) { ");i+=" "+ht+" } "}}f&&(i+=" if ("+S+") { ",E+="}")}}if(j.length){var fi=j;if(fi)for(var kt,Wf=-1,IE=fi.length-1;Wf<IE;){kt=fi[Wf+=1];var Fo=k[kt];if(r.opts.strictKeywords?typeof Fo=="object"&&Object.keys(Fo).length>0||Fo===!1:r.util.schemaHasRules(Fo,r.RULES.all)){b.schema=Fo,b.schemaPath=r.schemaPath+".patternProperties"+r.util.getProperty(kt),b.errSchemaPath=r.errSchemaPath+"/patternProperties/"+r.util.escapeFragment(kt),Q?i+=" "+R+" = "+R+" || Object.keys("+g+"); for (var "+D+"=0; "+D+"<"+R+".length; "+D+"++) { var "+_+" = "+R+"["+D+"]; ":i+=" for (var "+_+" in "+g+") { ",i+=" if ("+r.usePattern(kt)+".test("+_+")) { ",b.errorPath=r.util.getPathExpr(r.errorPath,_,r.opts.jsonPointers);var $t=g+"["+_+"]";b.dataPathArr[O]=_;var ht=r.validate(b);b.baseId=q,r.util.varOccurences(ht,C)<2?i+=" "+r.util.varReplace(ht,C,$t)+" ":i+=" var "+C+" = "+$t+"; "+ht+" ",f&&(i+=" if (!"+S+") break; "),i+=" } ",f&&(i+=" else "+S+" = true; "),i+=" } ",f&&(i+=" if ("+S+") { ",E+="}")}}}return f&&(i+=" "+E+" if ("+x+" == errors) {"),i}});var Jtt=A((Zwn,Ktt)=>{"use strict";Ktt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="errs__"+a,b=r.util.copy(r),E="";b.level++;var S="valid"+b.level;if(i+="var "+x+" = errors;",r.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:r.util.schemaHasRules(u,r.RULES.all)){b.schema=u,b.schemaPath=l,b.errSchemaPath=p;var _="key"+a,D="idx"+a,O="i"+a,C="' + "+_+" + '",R=b.dataLevel=r.dataLevel+1,I="data"+R,k="dataProperties"+a,j=r.opts.ownProperties,G=r.baseId;j&&(i+=" var "+k+" = undefined; "),j?i+=" "+k+" = "+k+" || Object.keys("+g+"); for (var "+D+"=0; "+D+"<"+k+".length; "+D+"++) { var "+_+" = "+k+"["+D+"]; ":i+=" for (var "+_+" in "+g+") { ",i+=" var startErrs"+a+" = errors; ";var L=_,H=r.compositeRule;r.compositeRule=b.compositeRule=!0;var F=r.validate(b);b.baseId=G,r.util.varOccurences(F,I)<2?i+=" "+r.util.varReplace(F,I,L)+" ":i+=" var "+I+" = "+L+"; "+F+" ",r.compositeRule=b.compositeRule=H,i+=" if (!"+S+") { for (var "+O+"=startErrs"+a+"; "+O+"<errors; "+O+"++) { vErrors["+O+"].propertyName = "+_+"; } var err = ",r.createErrors!==!1?(i+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { propertyName: '"+C+"' } ",r.opts.messages!==!1&&(i+=" , message: 'property name \\'"+C+"\\' is invalid' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&f&&(r.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),f&&(i+=" break; "),i+=" } }"}return f&&(i+=" "+E+" if ("+x+" == errors) {"),i}});var Ztt=A((Qwn,Ytt)=>{"use strict";Ytt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b=r.opts.$data&&u&&u.$data,E;b?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",E="schema"+a):E=u;var S="schema"+a;if(!b)if(u.length<r.opts.loopRequired&&r.schema.properties&&Object.keys(r.schema.properties).length){var _=[],D=u;if(D)for(var O,C=-1,R=D.length-1;C<R;){O=D[C+=1];var I=r.schema.properties[O];I&&(r.opts.strictKeywords?typeof I=="object"&&Object.keys(I).length>0||I===!1:r.util.schemaHasRules(I,r.RULES.all))||(_[_.length]=O)}}else var _=u;if(b||_.length){var k=r.errorPath,j=b||_.length>=r.opts.loopRequired,G=r.opts.ownProperties;if(f)if(i+=" var missing"+a+"; ",j){b||(i+=" var "+S+" = validate.schema"+l+"; ");var L="i"+a,H="schema"+a+"["+L+"]",F="' + "+H+" + '";r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPathExpr(k,H,r.opts.jsonPointers)),i+=" var "+x+" = true; ",b&&(i+=" if (schema"+a+" === undefined) "+x+" = true; else if (!Array.isArray(schema"+a+")) "+x+" = false; else {"),i+=" for (var "+L+" = 0; "+L+" < "+S+".length; "+L+"++) { "+x+" = "+g+"["+S+"["+L+"]] !== undefined ",G&&(i+=" && Object.prototype.hasOwnProperty.call("+g+", "+S+"["+L+"]) "),i+="; if (!"+x+") break; } ",b&&(i+=" } "),i+=" if (!"+x+") { ";var Y=Y||[];Y.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+F+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+F+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var V=i;i=Y.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+V+"]); ":i+=" validate.errors = ["+V+"]; return false; ":i+=" var err = "+V+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else{i+=" if ( ";var Q=_;if(Q)for(var q,L=-1,Z=Q.length-1;L<Z;){q=Q[L+=1],L&&(i+=" || ");var ie=r.util.getProperty(q),se=g+ie;i+=" ( ( "+se+" === undefined ",G&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(q)+"') "),i+=") && (missing"+a+" = "+r.util.toQuotedString(r.opts.jsonPointers?q:ie)+") ) "}i+=") { ";var H="missing"+a,F="' + "+H+" + '";r.opts._errorDataPathProperty&&(r.errorPath=r.opts.jsonPointers?r.util.getPathExpr(k,H,!0):k+" + "+H);var Y=Y||[];Y.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+F+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+F+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var V=i;i=Y.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+V+"]); ":i+=" validate.errors = ["+V+"]; return false; ":i+=" var err = "+V+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else if(j){b||(i+=" var "+S+" = validate.schema"+l+"; ");var L="i"+a,H="schema"+a+"["+L+"]",F="' + "+H+" + '";r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPathExpr(k,H,r.opts.jsonPointers)),b&&(i+=" if ("+S+" && !Array.isArray("+S+")) { var err = ",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+F+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+F+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+S+" !== undefined) { "),i+=" for (var "+L+" = 0; "+L+" < "+S+".length; "+L+"++) { if ("+g+"["+S+"["+L+"]] === undefined ",G&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", "+S+"["+L+"]) "),i+=") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+F+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+F+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",b&&(i+=" } ")}else{var le=_;if(le)for(var q,_e=-1,Ge=le.length-1;_e<Ge;){q=le[_e+=1];var ie=r.util.getProperty(q),F=r.util.escapeQuotes(q),se=g+ie;r.opts._errorDataPathProperty&&(r.errorPath=r.util.getPath(k,q,r.opts.jsonPointers)),i+=" if ( "+se+" === undefined ",G&&(i+=" || ! Object.prototype.hasOwnProperty.call("+g+", '"+r.util.escapeQuotes(q)+"') "),i+=") { var err = ",r.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { missingProperty: '"+F+"' } ",r.opts.messages!==!1&&(i+=" , message: '",r.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+F+"\\'",i+="' "),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}r.errorPath=k}else f&&(i+=" if (true) {");return i}});var Xtt=A((Xwn,Qtt)=>{"use strict";Qtt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g="data"+(c||""),x="valid"+a,b=r.opts.$data&&u&&u.$data,E;if(b?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",E="schema"+a):E=u,(u||b)&&r.opts.uniqueItems!==!1){b&&(i+=" var "+x+"; if ("+E+" === false || "+E+" === undefined) "+x+" = true; else if (typeof "+E+" != 'boolean') "+x+" = false; else { "),i+=" var i = "+g+".length , "+x+" = true , j; if (i > 1) { ";var S=r.schema.items&&r.schema.items.type,_=Array.isArray(S);if(!S||S=="object"||S=="array"||_&&(S.indexOf("object")>=0||S.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+g+"[i], "+g+"[j])) { "+x+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+g+"[i]; ";var D="checkDataType"+(_?"s":"");i+=" if ("+r.util[D](S,"item",r.opts.strictNumbers,!0)+") continue; ",_&&(i+=` if (typeof item == 'string') item = '"' + item; `),i+=" if (typeof itemIndices[item] == 'number') { "+x+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",b&&(i+=" } "),i+=" if (!"+x+") { ";var O=O||[];O.push(i),i="",r.createErrors!==!1?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { i: i, j: j } ",r.opts.messages!==!1&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),r.opts.verbose&&(i+=" , schema: ",b?i+="validate.schema"+l:i+=""+u,i+=" , parentSchema: validate.schema"+r.schemaPath+" , data: "+g+" "),i+=" } "):i+=" {} ";var C=i;i=O.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+C+"]); ":i+=" validate.errors = ["+C+"]; return false; ":i+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",f&&(i+=" else { ")}else f&&(i+=" if (true) { ");return i}});var trt=A((e_n,ert)=>{"use strict";ert.exports={$ref:dtt(),allOf:htt(),anyOf:ytt(),$comment:btt(),const:vtt(),contains:wtt(),dependencies:Ttt(),enum:Ctt(),format:Ptt(),if:Itt(),items:Ftt(),maximum:Mle(),minimum:Mle(),maxItems:kle(),minItems:kle(),maxLength:$le(),minLength:$le(),maxProperties:Nle(),minProperties:Nle(),multipleOf:Btt(),not:jtt(),oneOf:Gtt(),pattern:Wtt(),properties:ztt(),propertyNames:Jtt(),required:Ztt(),uniqueItems:Xtt(),validate:Rle()}});var ort=A((t_n,nrt)=>{"use strict";var rrt=trt(),Lle=AE().toHash;nrt.exports=function(){var r=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],n=["type","$comment"],o=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],i=["number","integer","string","array","object","boolean","null"];return r.all=Lle(n),r.types=Lle(i),r.forEach(function(a){a.rules=a.rules.map(function(c){var u;if(typeof c=="object"){var l=Object.keys(c)[0];u=c[l],c=l,u.forEach(function(f){n.push(f),r.all[f]=!0})}n.push(c);var p=r.all[c]={keyword:c,code:rrt[c],implements:u};return p}),r.all.$comment={keyword:"$comment",code:rrt.$comment},a.type&&(r.types[a.type]=a)}),r.keywords=Lle(n.concat(o)),r.custom={},r}});var art=A((r_n,srt)=>{"use strict";var irt=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];srt.exports=function(e,r){for(var n=0;n<r.length;n++){e=JSON.parse(JSON.stringify(e));var o=r[n].split("/"),i=e,a;for(a=1;a<o.length;a++)i=i[o[a]];for(a=0;a<irt.length;a++){var c=irt[a],u=i[c];u&&(i[c]={anyOf:[u,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e}});var lrt=A((n_n,urt)=>{"use strict";var $or=pU().MissingRef;urt.exports=crt;function crt(e,r,n){var o=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof r=="function"&&(n=r,r=void 0);var i=a(e).then(function(){var u=o._addSchema(e,void 0,r);return u.validate||c(u)});return n&&i.then(function(u){n(null,u)},n),i;function a(u){var l=u.$schema;return l&&!o.getSchema(l)?crt.call(o,{$ref:l},!0):Promise.resolve()}function c(u){try{return o._compile(u)}catch(p){if(p instanceof $or)return l(p);throw p}function l(p){var f=p.missingSchema;if(b(f))throw new Error("Schema "+f+" is loaded but "+p.missingRef+" cannot be resolved");var g=o._loadingSchemas[f];return g||(g=o._loadingSchemas[f]=o._opts.loadSchema(f),g.then(x,x)),g.then(function(E){if(!b(f))return a(E).then(function(){b(f)||o.addSchema(E,f,void 0,r)})}).then(function(){return c(u)});function x(){delete o._loadingSchemas[f]}function b(E){return o._refs[E]||o._schemas[E]}}}}});var frt=A((o_n,prt)=>{"use strict";prt.exports=function(r,n,o){var i=" ",a=r.level,c=r.dataLevel,u=r.schema[n],l=r.schemaPath+r.util.getProperty(n),p=r.errSchemaPath+"/"+n,f=!r.opts.allErrors,g,x="data"+(c||""),b="valid"+a,E="errs__"+a,S=r.opts.$data&&u&&u.$data,_;S?(i+=" var schema"+a+" = "+r.util.getData(u.$data,c,r.dataPathArr)+"; ",_="schema"+a):_=u;var D=this,O="definition"+a,C=D.definition,R="",I,k,j,G,L;if(S&&C.$data){L="keywordValidate"+a;var H=C.validateSchema;i+=" var "+O+" = RULES.custom['"+n+"'].definition; var "+L+" = "+O+".validate;"}else{if(G=r.useCustomRule(D,u,r.schema,r),!G)return;_="validate.schema"+l,L=G.code,I=C.compile,k=C.inline,j=C.macro}var F=L+".errors",Y="i"+a,V="ruleErr"+a,Q=C.async;if(Q&&!r.async)throw new Error("async keyword in sync schema");if(k||j||(i+=""+F+" = null;"),i+="var "+E+" = errors;var "+b+";",S&&C.$data&&(R+="}",i+=" if ("+_+" === undefined) { "+b+" = true; } else { ",H&&(R+="}",i+=" "+b+" = "+O+".validateSchema("+_+"); if ("+b+") { ")),k)C.statements?i+=" "+G.validate+" ":i+=" "+b+" = "+G.validate+"; ";else if(j){var q=r.util.copy(r),R="";q.level++;var Z="valid"+q.level;q.schema=G.validate,q.schemaPath="";var ie=r.compositeRule;r.compositeRule=q.compositeRule=!0;var se=r.validate(q).replace(/validate\.schema/g,L);r.compositeRule=q.compositeRule=ie,i+=" "+se}else{var le=le||[];le.push(i),i="",i+=" "+L+".call( ",r.opts.passContext?i+="this":i+="self",I||C.schema===!1?i+=" , "+x+" ":i+=" , "+_+" , "+x+" , validate.schema"+r.schemaPath+" ",i+=" , (dataPath || '')",r.errorPath!='""'&&(i+=" + "+r.errorPath);var _e=c?"data"+(c-1||""):"parentData",Ge=c?r.dataPathArr[c]:"parentDataProperty";i+=" , "+_e+" , "+Ge+" , rootData ) ";var Mt=i;i=le.pop(),C.errors===!1?(i+=" "+b+" = ",Q&&(i+="await "),i+=""+Mt+"; "):Q?(F="customErrors"+a,i+=" var "+F+" = null; try { "+b+" = await "+Mt+"; } catch (e) { "+b+" = false; if (e instanceof ValidationError) "+F+" = e.errors; else throw e; } "):i+=" "+F+" = null; "+b+" = "+Mt+"; "}if(C.modifying&&(i+=" if ("+_e+") "+x+" = "+_e+"["+Ge+"];"),i+=""+R,C.valid)f&&(i+=" if (true) { ");else{i+=" if ( ",C.valid===void 0?(i+=" !",j?i+=""+Z:i+=""+b):i+=" "+!C.valid+" ",i+=") { ",g=D.keyword;var le=le||[];le.push(i),i="";var le=le||[];le.push(i),i="",r.createErrors!==!1?(i+=" { keyword: '"+(g||"custom")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { keyword: '"+D.keyword+"' } ",r.opts.messages!==!1&&(i+=` , message: 'should pass "`+D.keyword+`" keyword validation' `),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+x+" "),i+=" } "):i+=" {} ";var Zt=i;i=le.pop(),!r.compositeRule&&f?r.async?i+=" throw new ValidationError(["+Zt+"]); ":i+=" validate.errors = ["+Zt+"]; return false; ":i+=" var err = "+Zt+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var kt=i;i=le.pop(),k?C.errors?C.errors!="full"&&(i+=" for (var "+Y+"="+E+"; "+Y+"<errors; "+Y+"++) { var "+V+" = vErrors["+Y+"]; if ("+V+".dataPath === undefined) "+V+".dataPath = (dataPath || '') + "+r.errorPath+"; if ("+V+".schemaPath === undefined) { "+V+'.schemaPath = "'+p+'"; } ',r.opts.verbose&&(i+=" "+V+".schema = "+_+"; "+V+".data = "+x+"; "),i+=" } "):C.errors===!1?i+=" "+kt+" ":(i+=" if ("+E+" == errors) { "+kt+" } else { for (var "+Y+"="+E+"; "+Y+"<errors; "+Y+"++) { var "+V+" = vErrors["+Y+"]; if ("+V+".dataPath === undefined) "+V+".dataPath = (dataPath || '') + "+r.errorPath+"; if ("+V+".schemaPath === undefined) { "+V+'.schemaPath = "'+p+'"; } ',r.opts.verbose&&(i+=" "+V+".schema = "+_+"; "+V+".data = "+x+"; "),i+=" } } "):j?(i+=" var err = ",r.createErrors!==!1?(i+=" { keyword: '"+(g||"custom")+"' , dataPath: (dataPath || '') + "+r.errorPath+" , schemaPath: "+r.util.toQuotedString(p)+" , params: { keyword: '"+D.keyword+"' } ",r.opts.messages!==!1&&(i+=` , message: 'should pass "`+D.keyword+`" keyword validation' `),r.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+r.schemaPath+" , data: "+x+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!r.compositeRule&&f&&(r.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):C.errors===!1?i+=" "+kt+" ":(i+=" if (Array.isArray("+F+")) { if (vErrors === null) vErrors = "+F+"; else vErrors = vErrors.concat("+F+"); errors = vErrors.length; for (var "+Y+"="+E+"; "+Y+"<errors; "+Y+"++) { var "+V+" = vErrors["+Y+"]; if ("+V+".dataPath === undefined) "+V+".dataPath = (dataPath || '') + "+r.errorPath+"; "+V+'.schemaPath = "'+p+'"; ',r.opts.verbose&&(i+=" "+V+".schema = "+_+"; "+V+".data = "+x+"; "),i+=" } } else { "+kt+" } "),i+=" } ",f&&(i+=" else { ")}return i}});var Ble=A((i_n,Nor)=>{Nor.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var hrt=A((s_n,mrt)=>{"use strict";var drt=Ble();mrt.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:drt.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:drt.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}});var yrt=A((a_n,grt)=>{"use strict";var Lor=/^[a-z_$][a-z0-9_$-]*$/i,Bor=frt(),Uor=hrt();grt.exports={add:jor,get:qor,remove:Gor,validate:Ule};function jor(e,r){var n=this.RULES;if(n.keywords[e])throw new Error("Keyword "+e+" is already defined");if(!Lor.test(e))throw new Error("Keyword "+e+" is not a valid identifier");if(r){this.validateKeyword(r,!0);var o=r.type;if(Array.isArray(o))for(var i=0;i<o.length;i++)c(e,o[i],r);else c(e,o,r);var a=r.metaSchema;a&&(r.$data&&this._opts.$data&&(a={anyOf:[a,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),r.validateSchema=this.compile(a,!0))}n.keywords[e]=n.all[e]=!0;function c(u,l,p){for(var f,g=0;g<n.length;g++){var x=n[g];if(x.type==l){f=x;break}}f||(f={type:l,rules:[]},n.push(f));var b={keyword:u,definition:p,custom:!0,code:Bor,implements:p.implements};f.rules.push(b),n.custom[u]=b}return this}function qor(e){var r=this.RULES.custom[e];return r?r.definition:this.RULES.keywords[e]||!1}function Gor(e){var r=this.RULES;delete r.keywords[e],delete r.all[e],delete r.custom[e];for(var n=0;n<r.length;n++)for(var o=r[n].rules,i=0;i<o.length;i++)if(o[i].keyword==e){o.splice(i,1);break}return this}function Ule(e,r){Ule.errors=null;var n=this._validateKeyword=this._validateKeyword||this.compile(Uor,!0);if(n(e))return!0;if(Ule.errors=n.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(n.errors));return!1}});var xrt=A((c_n,Hor)=>{Hor.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Art=A((u_n,Crt)=>{"use strict";var Ert=Zet(),PE=lU(),Wor=Xet(),vrt=Tle(),Vor=Ile(),zor=ptt(),Kor=ort(),Srt=art(),wrt=AE();Crt.exports=Ro;Ro.prototype.validate=Yor;Ro.prototype.compile=Zor;Ro.prototype.addSchema=Qor;Ro.prototype.addMetaSchema=Xor;Ro.prototype.validateSchema=eir;Ro.prototype.getSchema=rir;Ro.prototype.removeSchema=oir;Ro.prototype.addFormat=fir;Ro.prototype.errorsText=pir;Ro.prototype._addSchema=iir;Ro.prototype._compile=sir;Ro.prototype.compileAsync=lrt();var bU=yrt();Ro.prototype.addKeyword=bU.add;Ro.prototype.getKeyword=bU.get;Ro.prototype.removeKeyword=bU.remove;Ro.prototype.validateKeyword=bU.validate;var _rt=pU();Ro.ValidationError=_rt.Validation;Ro.MissingRefError=_rt.MissingRef;Ro.$dataMetaSchema=Srt;var xU="http://json-schema.org/draft-07/schema",brt=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Jor=["/properties"];function Ro(e){if(!(this instanceof Ro))return new Ro(e);e=this._opts=wrt.copy(e)||{},xir(this),this._schemas={},this._refs={},this._fragments={},this._formats=zor(e.format),this._cache=e.cache||new Wor,this._loadingSchemas={},this._compilations=[],this.RULES=Kor(),this._getId=air(e),e.loopRequired=e.loopRequired||1/0,e.errorDataPath=="property"&&(e._errorDataPathProperty=!0),e.serialize===void 0&&(e.serialize=Vor),this._metaOpts=yir(this),e.formats&&hir(this),e.keywords&&gir(this),dir(this),typeof e.meta=="object"&&this.addMetaSchema(e.meta),e.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),mir(this)}function Yor(e,r){var n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error('no schema with key or ref "'+e+'"')}else{var o=this._addSchema(e);n=o.validate||this._compile(o)}var i=n(r);return n.$async!==!0&&(this.errors=n.errors),i}function Zor(e,r){var n=this._addSchema(e,void 0,r);return n.validate||this._compile(n)}function Qor(e,r,n,o){if(Array.isArray(e)){for(var i=0;i<e.length;i++)this.addSchema(e[i],void 0,n,o);return this}var a=this._getId(e);if(a!==void 0&&typeof a!="string")throw new Error("schema id must be string");return r=PE.normalizeId(r||a),Drt(this,r),this._schemas[r]=this._addSchema(e,n,o,!0),this}function Xor(e,r,n){return this.addSchema(e,r,n,!0),this}function eir(e,r){var n=e.$schema;if(n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this._opts.defaultMeta||tir(this),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var o=this.validate(n,e);if(!o&&r){var i="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(i);else throw new Error(i)}return o}function tir(e){var r=e._opts.meta;return e._opts.defaultMeta=typeof r=="object"?e._getId(r)||r:e.getSchema(xU)?xU:void 0,e._opts.defaultMeta}function rir(e){var r=Trt(this,e);switch(typeof r){case"object":return r.validate||this._compile(r);case"string":return this.getSchema(r);case"undefined":return nir(this,e)}}function nir(e,r){var n=PE.schema.call(e,{schema:{}},r);if(n){var o=n.schema,i=n.root,a=n.baseId,c=Ert.call(e,o,i,void 0,a);return e._fragments[r]=new vrt({ref:r,fragment:!0,schema:o,root:i,baseId:a,validate:c}),c}}function Trt(e,r){return r=PE.normalizeId(r),e._schemas[r]||e._refs[r]||e._fragments[r]}function oir(e){if(e instanceof RegExp)return yU(this,this._schemas,e),yU(this,this._refs,e),this;switch(typeof e){case"undefined":return yU(this,this._schemas),yU(this,this._refs),this._cache.clear(),this;case"string":var r=Trt(this,e);return r&&this._cache.del(r.cacheKey),delete this._schemas[e],delete this._refs[e],this;case"object":var n=this._opts.serialize,o=n?n(e):e;this._cache.del(o);var i=this._getId(e);i&&(i=PE.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this}function yU(e,r,n){for(var o in r){var i=r[o];!i.meta&&(!n||n.test(o))&&(e._cache.del(i.cacheKey),delete r[o])}}function iir(e,r,n,o){if(typeof e!="object"&&typeof e!="boolean")throw new Error("schema should be object or boolean");var i=this._opts.serialize,a=i?i(e):e,c=this._cache.get(a);if(c)return c;o=o||this._opts.addUsedSchema!==!1;var u=PE.normalizeId(this._getId(e));u&&o&&Drt(this,u);var l=this._opts.validateSchema!==!1&&!r,p;l&&!(p=u&&u==PE.normalizeId(e.$schema))&&this.validateSchema(e,!0);var f=PE.ids.call(this,e),g=new vrt({id:u,schema:e,localRefs:f,cacheKey:a,meta:n});return u[0]!="#"&&o&&(this._refs[u]=g),this._cache.put(a,g),l&&p&&this.validateSchema(e,!0),g}function sir(e,r){if(e.compiling)return e.validate=i,i.schema=e.schema,i.errors=null,i.root=r||i,e.schema.$async===!0&&(i.$async=!0),i;e.compiling=!0;var n;e.meta&&(n=this._opts,this._opts=this._metaOpts);var o;try{o=Ert.call(this,e.schema,r,e.localRefs)}catch(a){throw delete e.validate,a}finally{e.compiling=!1,e.meta&&(this._opts=n)}return e.validate=o,e.refs=o.refs,e.refVal=o.refVal,e.root=o.root,o;function i(){var a=e.validate,c=a.apply(this,arguments);return i.errors=a.errors,c}}function air(e){switch(e.schemaId){case"auto":return lir;case"id":return cir;default:return uir}}function cir(e){return e.$id&&this.logger.warn("schema $id ignored",e.$id),e.id}function uir(e){return e.id&&this.logger.warn("schema id ignored",e.id),e.$id}function lir(e){if(e.$id&&e.id&&e.$id!=e.id)throw new Error("schema $id is different from id");return e.$id||e.id}function pir(e,r){if(e=e||this.errors,!e)return"No errors";r=r||{};for(var n=r.separator===void 0?", ":r.separator,o=r.dataVar===void 0?"data":r.dataVar,i="",a=0;a<e.length;a++){var c=e[a];c&&(i+=o+c.dataPath+" "+c.message+n)}return i.slice(0,-n.length)}function fir(e,r){return typeof r=="string"&&(r=new RegExp(r)),this._formats[e]=r,this}function dir(e){var r;if(e._opts.$data&&(r=xrt(),e.addMetaSchema(r,r.$id,!0)),e._opts.meta!==!1){var n=Ble();e._opts.$data&&(n=Srt(n,Jor)),e.addMetaSchema(n,xU,!0),e._refs["http://json-schema.org/schema"]=xU}}function mir(e){var r=e._opts.schemas;if(r)if(Array.isArray(r))e.addSchema(r);else for(var n in r)e.addSchema(r[n],n)}function hir(e){for(var r in e._opts.formats){var n=e._opts.formats[r];e.addFormat(r,n)}}function gir(e){for(var r in e._opts.keywords){var n=e._opts.keywords[r];e.addKeyword(r,n)}}function Drt(e,r){if(e._schemas[r]||e._refs[r])throw new Error('schema with key or id "'+r+'" already exists')}function yir(e){for(var r=wrt.copy(e._opts),n=0;n<brt.length;n++)delete r[brt[n]];return r}function xir(e){var r=e._opts.logger;if(r===!1)e.logger={log:jle,warn:jle,error:jle};else{if(r===void 0&&(r=console),!(typeof r=="object"&&r.log&&r.warn&&r.error))throw new Error("logger must implement log, warn and error methods");e.logger=r}}function jle(){}});var Hf=W(require("node:path"));ba();var cot=W(sde());ba();var lst=ph("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function qj(e){return e.getValue(lst)===!0}ba();function iy(e){let r={};if(typeof e!="object"||e==null)return r;for(let[n,o]of Object.entries(e)){if(!pst(n)){yr.warn(`Invalid attribute key: ${n}`);continue}if(!$I(o)){yr.warn(`Invalid attribute value set for key: ${n}`);continue}Array.isArray(o)?r[n]=o.slice():r[n]=o}return r}function pst(e){return typeof e=="string"&&e.length>0}function $I(e){return e==null?!0:Array.isArray(e)?fst(e):ade(e)}function fst(e){let r;for(let n of e)if(n!=null){if(!r){if(ade(n)){r=typeof n;continue}return!1}if(typeof n!==r)return!1}return!0}function ade(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}ba();function cde(){return e=>{yr.error(dst(e))}}function dst(e){return typeof e=="string"?e:JSON.stringify(mst(e))}function mst(e){let r={},n=e;for(;n!==null;)Object.getOwnPropertyNames(n).forEach(o=>{if(r[o])return;let i=n[o];i&&(r[o]=String(i))}),n=Object.getPrototypeOf(n);return r}var hst=cde();function nT(e){try{hst(e)}catch{}}ba();var ude=require("util");function Mi(e){let r=process.env[e];if(r==null||r.trim()==="")return;let n=Number(r);if(isNaN(n)){yr.warn(`Unknown value ${(0,ude.inspect)(r)} for ${e}, expected a number, using defaults`);return}return n}function oT(e){let r=process.env[e];if(!(r==null||r.trim()===""))return r}var lde=require("perf_hooks"),pl=lde.performance;var pde="2.1.0";var NI="exception.message",fde="exception.stacktrace",LI="exception.type";var dde="service.name";var iT="telemetry.sdk.language";var mde="nodejs";var sT="telemetry.sdk.name",aT="telemetry.sdk.version";var hde="process.runtime.name";var sy={[sT]:"opentelemetry",[hde]:"node",[iT]:mde,[aT]:pde};var xst=9,bst=6,Est=Math.pow(10,bst),Gj=Math.pow(10,xst);function hh(e){let r=e/1e3,n=Math.trunc(r),o=Math.round(e%1e3*Est);return[n,o]}function BI(){let e=pl.timeOrigin;if(typeof e!="number"){let r=pl;e=r.timing&&r.timing.fetchStart}return e}function Hj(e){let r=hh(BI()),n=hh(typeof e=="number"?e:pl.now());return qI(r,n)}function Wj(e,r){let n=r[0]-e[0],o=r[1]-e[1];return o<0&&(n-=1,o+=Gj),[n,o]}function UI(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function jI(e){return UI(e)||typeof e=="number"||e instanceof Date}function qI(e,r){let n=[e[0]+r[0],e[1]+r[1]];return n[1]>=Gj&&(n[1]-=Gj,n[0]+=1),n}var vst="[object Object]",Sst="[object Null]",wst="[object Undefined]",_st=Function.prototype,xde=_st.toString,Tst=xde.call(Object),Dst=Object.getPrototypeOf,bde=Object.prototype,Ede=bde.hasOwnProperty,ay=Symbol?Symbol.toStringTag:void 0,vde=bde.toString;function Vj(e){if(!Cst(e)||Ast(e)!==vst)return!1;let r=Dst(e);if(r===null)return!0;let n=Ede.call(r,"constructor")&&r.constructor;return typeof n=="function"&&n instanceof n&&xde.call(n)===Tst}function Cst(e){return e!=null&&typeof e=="object"}function Ast(e){return e==null?e===void 0?wst:Sst:ay&&ay in Object(e)?Pst(e):Ost(e)}function Pst(e){let r=Ede.call(e,ay),n=e[ay],o=!1;try{e[ay]=void 0,o=!0}catch{}let i=vde.call(e);return o&&(r?e[ay]=n:delete e[ay]),i}function Ost(e){return vde.call(e)}var Ist=20;function Kj(...e){let r=e.shift(),n=new WeakMap;for(;e.length>0;)r=wde(r,e.shift(),0,n);return r}function zj(e){return HI(e)?e.slice():e}function wde(e,r,n=0,o){let i;if(!(n>Ist)){if(n++,GI(e)||GI(r)||_de(r))i=zj(r);else if(HI(e)){if(i=e.slice(),HI(r))for(let a=0,c=r.length;a<c;a++)i.push(zj(r[a]));else if(cT(r)){let a=Object.keys(r);for(let c=0,u=a.length;c<u;c++){let l=a[c];i[l]=zj(r[l])}}}else if(cT(e))if(cT(r)){if(!Rst(e,r))return r;i=Object.assign({},e);let a=Object.keys(r);for(let c=0,u=a.length;c<u;c++){let l=a[c],p=r[l];if(GI(p))typeof p>"u"?delete i[l]:i[l]=p;else{let f=i[l],g=p;if(Sde(e,l,o)||Sde(r,l,o))delete i[l];else{if(cT(f)&&cT(g)){let x=o.get(f)||[],b=o.get(g)||[];x.push({obj:e,key:l}),b.push({obj:r,key:l}),o.set(f,x),o.set(g,b)}i[l]=wde(i[l],p,n,o)}}}}else i=r;return i}}function Sde(e,r,n){let o=n.get(e[r])||[];for(let i=0,a=o.length;i<a;i++){let c=o[i];if(c.key===r&&c.obj===e)return!0}return!1}function HI(e){return Array.isArray(e)}function _de(e){return typeof e=="function"}function cT(e){return!GI(e)&&!HI(e)&&!_de(e)&&typeof e=="object"}function GI(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function Rst(e,r){return!(!Vj(e)||!Vj(r))}ba();function WI(){return`unknown_service:${process.argv0}`}var zE=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";var Jj=class e{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(r,n){let o=new e({},n);return o._rawAttributes=Tde(r),o._asyncAttributesPending=r.filter(([i,a])=>zE(a)).length>0,o}constructor(r,n){let o=r.attributes??{};this._rawAttributes=Object.entries(o).map(([i,a])=>(zE(a)&&(this._asyncAttributesPending=!0),[i,a])),this._rawAttributes=Tde(this._rawAttributes),this._schemaUrl=Fst(n?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let r=0;r<this._rawAttributes.length;r++){let[n,o]=this._rawAttributes[r];this._rawAttributes[r]=[n,zE(o)?await o:o]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&yr.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;let r={};for(let[n,o]of this._rawAttributes){if(zE(o)){yr.debug(`Unsettled resource attribute ${n} skipped`);continue}o!=null&&(r[n]??=o)}return this._asyncAttributesPending||(this._memoizedAttributes=r),r}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(r){if(r==null)return this;let n=Mst(this,r),o=n?{schemaUrl:n}:void 0;return e.FromAttributeList([...r.getRawAttributes(),...this.getRawAttributes()],o)}};function Dde(e,r){return Jj.FromAttributeList(Object.entries(e),r)}function Yj(){return Dde({[dde]:WI(),[iT]:sy[iT],[sT]:sy[sT],[aT]:sy[aT]})}function Tde(e){return e.map(([r,n])=>zE(n)?[r,n.catch(o=>{yr.debug("promise rejection for resource attribute: %s - %s",r,o)})]:[r,n])}function Fst(e){if(typeof e=="string"||e===void 0)return e;yr.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",e)}function Mst(e,r){let n=e?.schemaUrl,o=r?.schemaUrl,i=n===void 0||n==="",a=o===void 0||o==="";if(i)return o;if(a||n===o)return n;yr.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',n,o)}ba();ba();var Cde="exception";var VI=class{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:WE.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(r){let n=Date.now();this._spanContext=r.spanContext,this._performanceStartTime=pl.now(),this._performanceOffset=n-(this._performanceStartTime+BI()),this._startTimeProvided=r.startTime!=null,this._spanLimits=r.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit||0,this._spanProcessor=r.spanProcessor,this.name=r.name,this.parentSpanContext=r.parentSpanContext,this.kind=r.kind,this.links=r.links||[],this.startTime=this._getTime(r.startTime??n),this.resource=r.resource,this.instrumentationScope=r.scope,r.attributes!=null&&this.setAttributes(r.attributes),this._spanProcessor.onStart(this,r.context)}spanContext(){return this._spanContext}setAttribute(r,n){if(n==null||this._isSpanEnded())return this;if(r.length===0)return yr.warn(`Invalid attribute key: ${r}`),this;if(!$I(n))return yr.warn(`Invalid attribute value set for key: ${r}`),this;let{attributeCountLimit:o}=this._spanLimits;return o!==void 0&&Object.keys(this.attributes).length>=o&&!Object.prototype.hasOwnProperty.call(this.attributes,r)?(this._droppedAttributesCount++,this):(this.attributes[r]=this._truncateToSize(n),this)}setAttributes(r){for(let[n,o]of Object.entries(r))this.setAttribute(n,o);return this}addEvent(r,n,o){if(this._isSpanEnded())return this;let{eventCountLimit:i}=this._spanLimits;if(i===0)return yr.warn("No events allowed."),this._droppedEventsCount++,this;i!==void 0&&this.events.length>=i&&(this._droppedEventsCount===0&&yr.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),jI(n)&&(jI(o)||(o=n),n=void 0);let a=iy(n);return this.events.push({name:r,attributes:a,time:this._getTime(o),droppedAttributesCount:0}),this}addLink(r){return this.links.push(r),this}addLinks(r){return this.links.push(...r),this}setStatus(r){return this._isSpanEnded()?this:(this.status={...r},this.status.message!=null&&typeof r.message!="string"&&(yr.warn(`Dropping invalid status.message of type '${typeof r.message}', expected 'string'`),delete this.status.message),this)}updateName(r){return this._isSpanEnded()?this:(this.name=r,this)}end(r){if(this._isSpanEnded()){yr.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(r),this._duration=Wj(this.startTime,this.endTime),this._duration[0]<0&&(yr.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&yr.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(r){if(typeof r=="number"&&r<=pl.now())return Hj(r+this._performanceOffset);if(typeof r=="number")return hh(r);if(r instanceof Date)return hh(r.getTime());if(UI(r))return r;if(this._startTimeProvided)return hh(Date.now());let n=pl.now()-this._performanceStartTime;return qI(this.startTime,hh(n))}isRecording(){return this._ended===!1}recordException(r,n){let o={};typeof r=="string"?o[NI]=r:r&&(r.code?o[LI]=r.code.toString():r.name&&(o[LI]=r.name),r.message&&(o[NI]=r.message),r.stack&&(o[fde]=r.stack)),o[LI]||o[NI]?this.addEvent(Cde,o,n):yr.warn(`Failed to record an exception ${r}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){let r=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);yr.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,r)}return this._ended}_truncateToLimitUtil(r,n){return r.length<=n?r:r.substring(0,n)}_truncateToSize(r){let n=this._attributeValueLengthLimit;return n<=0?(yr.warn(`Attribute value limit must be positive, got ${n}`),r):typeof r=="string"?this._truncateToLimitUtil(r,n):Array.isArray(r)?r.map(o=>typeof o=="string"?this._truncateToLimitUtil(o,n):o):r}};ba();var ed;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(ed||(ed={}));var gh=class{shouldSample(){return{decision:ed.NOT_RECORD}}toString(){return"AlwaysOffSampler"}};var Dp=class{shouldSample(){return{decision:ed.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}};ba();var cy=class{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(r){this._root=r.root,this._root||(nT(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Dp),this._remoteParentSampled=r.remoteParentSampled??new Dp,this._remoteParentNotSampled=r.remoteParentNotSampled??new gh,this._localParentSampled=r.localParentSampled??new Dp,this._localParentNotSampled=r.localParentNotSampled??new gh}shouldSample(r,n,o,i,a,c){let u=xa.getSpanContext(r);return!u||!mh(u)?this._root.shouldSample(r,n,o,i,a,c):u.isRemote?u.traceFlags&eu.SAMPLED?this._remoteParentSampled.shouldSample(r,n,o,i,a,c):this._remoteParentNotSampled.shouldSample(r,n,o,i,a,c):u.traceFlags&eu.SAMPLED?this._localParentSampled.shouldSample(r,n,o,i,a,c):this._localParentNotSampled.shouldSample(r,n,o,i,a,c)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}};ba();var uT=class{_ratio;_upperBound;constructor(r=0){this._ratio=r,this._ratio=this._normalize(r),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(r,n){return{decision:tT(n)&&this._accumulate(n)<this._upperBound?ed.RECORD_AND_SAMPLED:ed.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(r){return typeof r!="number"||isNaN(r)?0:r>=1?1:r<=0?0:r}_accumulate(r){let n=0;for(let o=0;o<r.length/8;o++){let i=o*8,a=parseInt(r.slice(i,i+8),16);n=(n^a)>>>0}return n}};var Cp;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(Cp||(Cp={}));var zI=1;function KI(){return{sampler:Zj(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:Mi("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:Mi("OTEL_ATTRIBUTE_COUNT_LIMIT")??128},spanLimits:{attributeValueLengthLimit:Mi("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??1/0,attributeCountLimit:Mi("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??128,linkCountLimit:Mi("OTEL_SPAN_LINK_COUNT_LIMIT")??128,eventCountLimit:Mi("OTEL_SPAN_EVENT_COUNT_LIMIT")??128,attributePerEventCountLimit:Mi("OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT")??128,attributePerLinkCountLimit:Mi("OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT")??128}}}function Zj(){let e=oT("OTEL_TRACES_SAMPLER")??Cp.ParentBasedAlwaysOn;switch(e){case Cp.AlwaysOn:return new Dp;case Cp.AlwaysOff:return new gh;case Cp.ParentBasedAlwaysOn:return new cy({root:new Dp});case Cp.ParentBasedAlwaysOff:return new cy({root:new gh});case Cp.TraceIdRatio:return new uT(Ade());case Cp.ParentBasedTraceIdRatio:return new cy({root:new uT(Ade())});default:return yr.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "${Cp.ParentBasedAlwaysOn}".`),new cy({root:new Dp})}}function Ade(){let e=Mi("OTEL_TRACES_SAMPLER_ARG");return e==null?(yr.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${zI}.`),zI):e<0||e>1?(yr.error(`OTEL_TRACES_SAMPLER_ARG=${e} was given, but it is out of range ([0..1]), defaulting to ${zI}.`),zI):e}var kst=128,$st=1/0;function Pde(e){let r={sampler:Zj()},n=KI(),o=Object.assign({},n,r,e);return o.generalLimits=Object.assign({},n.generalLimits,e.generalLimits||{}),o.spanLimits=Object.assign({},n.spanLimits,e.spanLimits||{}),o}function Ode(e){let r=Object.assign({},e.spanLimits);return r.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??Mi("OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT")??Mi("OTEL_ATTRIBUTE_COUNT_LIMIT")??kst,r.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??Mi("OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT")??Mi("OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")??$st,Object.assign({},e,{spanLimits:r})}var KE=class{generateTraceId=Ide(16);generateSpanId=Ide(8)},JI=Buffer.allocUnsafe(16);function Ide(e){return function(){for(let n=0;n<e/4;n++)JI.writeUInt32BE(Math.random()*2**32>>>0,n*4);for(let n=0;n<e&&!(JI[n]>0);n++)n===e-1&&(JI[e-1]=1);return JI.toString("hex",0,e)}}var YI=class{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(r,n,o,i){let a=Pde(n);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=n.idGenerator||new KE,this._resource=o,this._spanProcessor=i,this.instrumentationScope=r}startSpan(r,n={},o=Xf.active()){n.root&&(o=xa.deleteSpan(o));let i=xa.getSpan(o);if(qj(o))return yr.debug("Instrumentation suppressed, returning Noop Span"),xa.wrapSpanContext(GE);let a=i?.spanContext(),c=this._idGenerator.generateSpanId(),u,l,p;!a||!xa.isSpanContextValid(a)?l=this._idGenerator.generateTraceId():(l=a.traceId,p=a.traceState,u=a);let f=n.kind??HE.INTERNAL,g=(n.links??[]).map(O=>({context:O.context,attributes:iy(O.attributes)})),x=iy(n.attributes),b=this._sampler.shouldSample(o,l,r,f,x,g);p=b.traceState??p;let E=b.decision===oy.RECORD_AND_SAMPLED?eu.SAMPLED:eu.NONE,S={traceId:l,spanId:c,traceFlags:E,traceState:p};if(b.decision===oy.NOT_RECORD)return yr.debug("Recording is off, propagating context in a non-recording span"),xa.wrapSpanContext(S);let _=iy(Object.assign(x,b.attributes));return new VI({resource:this._resource,scope:this.instrumentationScope,context:o,spanContext:S,name:r,kind:f,links:g,parentSpanContext:u,attributes:_,startTime:n.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(r,n,o,i){let a,c,u;if(arguments.length<2)return;arguments.length===2?u=n:arguments.length===3?(a=n,u=o):(a=n,c=o,u=i);let l=c??Xf.active(),p=this.startSpan(r,a,l),f=xa.setSpan(l,p);return Xf.with(f,u,void 0,p)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}};var ZI=class{_spanProcessors;constructor(r){this._spanProcessors=r}forceFlush(){let r=[];for(let n of this._spanProcessors)r.push(n.forceFlush());return new Promise(n=>{Promise.all(r).then(()=>{n()}).catch(o=>{nT(o||new Error("MultiSpanProcessor: forceFlush failed")),n()})})}onStart(r,n){for(let o of this._spanProcessors)o.onStart(r,n)}onEnd(r){for(let n of this._spanProcessors)n.onEnd(r)}shutdown(){let r=[];for(let n of this._spanProcessors)r.push(n.shutdown());return new Promise((n,o)=>{Promise.all(r).then(()=>{n()},o)})}};var uy;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(uy||(uy={}));var lT=class{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(r={}){let n=Kj({},KI(),Ode(r));this._resource=n.resource??Yj(),this._config=Object.assign({},n,{resource:this._resource});let o=[];r.spanProcessors?.length&&o.push(...r.spanProcessors),this._activeSpanProcessor=new ZI(o)}getTracer(r,n,o){let i=`${r}@${n||""}:${o?.schemaUrl||""}`;return this._tracers.has(i)||this._tracers.set(i,new YI({name:r,version:n,schemaUrl:o?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(i)}forceFlush(){let r=this._config.forceFlushTimeoutMillis,n=this._activeSpanProcessor._spanProcessors.map(o=>new Promise(i=>{let a,c=setTimeout(()=>{i(new Error(`Span processor did not completed within timeout period of ${r} ms`)),a=uy.timeout},r);o.forceFlush().then(()=>{clearTimeout(c),a!==uy.timeout&&(a=uy.resolved,i(a))}).catch(u=>{clearTimeout(c),a=uy.error,i(u)})}));return new Promise((o,i)=>{Promise.all(n).then(a=>{let c=a.filter(u=>u!==uy.resolved);c.length>0?i(c):o()}).catch(a=>i([a]))})}shutdown(){return this._activeSpanProcessor.shutdown()}};var uot=require("@prisma/config");var QI={};cc(QI,{$:()=>$de,bgBlack:()=>Gst,bgBlue:()=>Vst,bgCyan:()=>Kst,bgGreen:()=>Hst,bgMagenta:()=>zst,bgRed:()=>Xj,bgWhite:()=>Jst,bgYellow:()=>Wst,black:()=>Ust,blue:()=>fl,bold:()=>U,cyan:()=>tu,dim:()=>te,gray:()=>ly,green:()=>fe,grey:()=>td,hidden:()=>Lst,inverse:()=>Nst,italic:()=>jn,magenta:()=>jst,red:()=>de,reset:()=>pT,strikethrough:()=>Bst,underline:()=>pn,white:()=>qst,yellow:()=>mt});var Qj,Rde,Fde,Mde,kde=!0;typeof process<"u"&&({FORCE_COLOR:Qj,NODE_DISABLE_COLORS:Rde,NO_COLOR:Fde,TERM:Mde}=process.env||{},kde=process.stdout&&process.stdout.isTTY);var $de={enabled:!Rde&&Fde==null&&Mde!=="dumb"&&(Qj!=null&&Qj!=="0"||kde)};function Dn(e,r){let n=new RegExp(`\\x1b\\[${r}m`,"g"),o=`\x1B[${e}m`,i=`\x1B[${r}m`;return function(a){return!$de.enabled||a==null?a:o+(~(""+a).indexOf(i)?a.replace(n,i+o):a)+i}}var pT=Dn(0,0),U=Dn(1,22),te=Dn(2,22),jn=Dn(3,23),pn=Dn(4,24),Nst=Dn(7,27),Lst=Dn(8,28),Bst=Dn(9,29),Ust=Dn(30,39),de=Dn(31,39),fe=Dn(32,39),mt=Dn(33,39),fl=Dn(34,39),jst=Dn(35,39),tu=Dn(36,39),qst=Dn(37,39),ly=Dn(90,39),td=Dn(90,39),Gst=Dn(40,49),Xj=Dn(41,49),Hst=Dn(42,49),Wst=Dn(43,49),Vst=Dn(44,49),zst=Dn(45,49),Kst=Dn(46,49),Jst=Dn(47,49);var Yst=100,Nde=["green","yellow","blue","magenta","cyan","red"],e9=[],Lde=Date.now(),Zst=0,t9=typeof process<"u"?process.env:{};globalThis.DEBUG??=t9.DEBUG??"";globalThis.DEBUG_COLORS??=t9.DEBUG_COLORS?t9.DEBUG_COLORS==="true":!0;var fT={enable(e){typeof e=="string"&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let r=globalThis.DEBUG.split(",").map(i=>i.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),n=r.some(i=>i===""||i[0]==="-"?!1:e.match(RegExp(i.split("*").join(".*")+"$"))),o=r.some(i=>i===""||i[0]!=="-"?!1:e.match(RegExp(i.slice(1).split("*").join(".*")+"$")));return n&&!o},log:(...e)=>{let[r,n,...o]=e;(console.warn??console.log)(`${r} ${n}`,...o)},formatters:{}};function Qst(e){let r={color:Nde[Zst++%Nde.length],enabled:fT.enabled(e),namespace:e,log:fT.log,extend:()=>{}},n=(...o)=>{let{enabled:i,namespace:a,color:c,log:u}=r;if(o.length!==0&&e9.push([a,...o]),e9.length>Yst&&e9.shift(),fT.enabled(a)||i){let l=o.map(f=>typeof f=="string"?f:Xst(f)),p=`+${Date.now()-Lde}ms`;Lde=Date.now(),globalThis.DEBUG_COLORS?u(QI[c](U(a)),...l,QI[c](p)):u(a,...l,p)}};return new Proxy(n,{get:(o,i)=>r[i],set:(o,i,a)=>r[i]=a})}var Ko=new Proxy(Qst,{get:(e,r)=>fT[r],set:(e,r,n)=>fT[r]=n});function Xst(e,r=2){let n=new Set;return JSON.stringify(e,(o,i)=>{if(typeof i=="object"&&i!==null){if(n.has(i))return"[Circular *]";n.add(i)}else if(typeof i=="bigint")return i.toString();return i},r)}var gt=Ko;var lot=require("@prisma/engines");var Aa=W(require("node:fs")),qp=W(require("node:path")),Y1e=require("node:util");var dT=["darwin","darwin-arm64","debian-openssl-1.0.x","debian-openssl-1.1.x","debian-openssl-3.0.x","rhel-openssl-1.0.x","rhel-openssl-1.1.x","rhel-openssl-3.0.x","linux-arm64-openssl-1.1.x","linux-arm64-openssl-1.0.x","linux-arm64-openssl-3.0.x","linux-arm-openssl-1.1.x","linux-arm-openssl-1.0.x","linux-arm-openssl-3.0.x","linux-musl","linux-musl-openssl-3.0.x","linux-musl-arm64-openssl-1.1.x","linux-musl-arm64-openssl-3.0.x","linux-nixos","linux-static-x64","linux-static-arm64","windows","freebsd11","freebsd12","freebsd13","freebsd14","freebsd15","openbsd","netbsd","arm"];var Hde=W(require("child_process")),c9=W(require("fs/promises")),nR=W(require("os"));var Ea=Symbol.for("@ts-pattern/matcher"),Bde=Symbol.for("@ts-pattern/isVariadic"),eR="@ts-pattern/anonymous-select-key",r9=e=>!!(e&&typeof e=="object"),XI=e=>e&&!!e[Ea],Qi=(e,r,n)=>{if(XI(e)){let o=e[Ea](),{matched:i,selections:a}=o.match(r);return i&&a&&Object.keys(a).forEach(c=>n(c,a[c])),i}if(r9(e)){if(!r9(r))return!1;if(Array.isArray(e)){if(!Array.isArray(r))return!1;let o=[],i=[],a=[];for(let c of e.keys()){let u=e[c];XI(u)&&u[Bde]?a.push(u):a.length?i.push(u):o.push(u)}if(a.length){if(a.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(r.length<o.length+i.length)return!1;let c=r.slice(0,o.length),u=i.length===0?[]:r.slice(-i.length),l=r.slice(o.length,i.length===0?1/0:-i.length);return o.every((p,f)=>Qi(p,c[f],n))&&i.every((p,f)=>Qi(p,u[f],n))&&(a.length===0||Qi(a[0],l,n))}return e.length===r.length&&e.every((c,u)=>Qi(c,r[u],n))}return Reflect.ownKeys(e).every(o=>{let i=e[o];return(o in r||XI(a=i)&&a[Ea]().matcherType==="optional")&&Qi(i,r[o],n);var a})}return Object.is(r,e)},lc=e=>{var r,n,o;return r9(e)?XI(e)?(r=(n=(o=e[Ea]()).getSelectionKeys)==null?void 0:n.call(o))!=null?r:[]:Array.isArray(e)?mT(e,lc):mT(Object.values(e),lc):[]},mT=(e,r)=>e.reduce((n,o)=>n.concat(r(o)),[]);function eat(...e){if(e.length===1){let[r]=e;return n=>Qi(r,n,()=>{})}if(e.length===2){let[r,n]=e;return Qi(r,n,()=>{})}throw new Error(`isMatching wasn't given the right number of arguments: expected 1 or 2, received ${e.length}.`)}function Xi(e){return Object.assign(e,{optional:()=>a9(e),and:r=>qn(e,r),or:r=>Ude(e,r),select:r=>r===void 0?hT(e):hT(r,e)})}function n9(e){return Object.assign((r=>Object.assign(r,{[Symbol.iterator](){let n=0,o=[{value:Object.assign(r,{[Bde]:!0}),done:!1},{done:!0,value:void 0}];return{next:()=>{var i;return(i=o[n++])!=null?i:o.at(-1)}}}}))(e),{optional:()=>n9(a9(e)),select:r=>n9(r===void 0?hT(e):hT(r,e))})}function a9(e){return Xi({[Ea]:()=>({match:r=>{let n={},o=(i,a)=>{n[i]=a};return r===void 0?(lc(e).forEach(i=>o(i,void 0)),{matched:!0,selections:n}):{matched:Qi(e,r,o),selections:n}},getSelectionKeys:()=>lc(e),matcherType:"optional"})})}var tat=(e,r)=>{for(let n of e)if(!r(n))return!1;return!0},rat=(e,r)=>{for(let[n,o]of e.entries())if(!r(o,n))return!1;return!0};function qn(...e){return Xi({[Ea]:()=>({match:r=>{let n={},o=(i,a)=>{n[i]=a};return{matched:e.every(i=>Qi(i,r,o)),selections:n}},getSelectionKeys:()=>mT(e,lc),matcherType:"and"})})}function Ude(...e){return Xi({[Ea]:()=>({match:r=>{let n={},o=(i,a)=>{n[i]=a};return mT(e,lc).forEach(i=>o(i,void 0)),{matched:e.some(i=>Qi(i,r,o)),selections:n}},getSelectionKeys:()=>mT(e,lc),matcherType:"or"})})}function _r(e){return{[Ea]:()=>({match:r=>({matched:!!e(r)})})}}function hT(...e){let r=typeof e[0]=="string"?e[0]:void 0,n=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return Xi({[Ea]:()=>({match:o=>{let i={[r??eR]:o};return{matched:n===void 0||Qi(n,o,(a,c)=>{i[a]=c}),selections:i}},getSelectionKeys:()=>[r??eR].concat(n===void 0?[]:lc(n))})})}function Ap(e){return typeof e=="number"}function yh(e){return typeof e=="string"}function xh(e){return typeof e=="bigint"}var jde=Xi(_r(function(e){return!0})),nat=jde,bh=e=>Object.assign(Xi(e),{startsWith:r=>{return bh(qn(e,(n=r,_r(o=>yh(o)&&o.startsWith(n)))));var n},endsWith:r=>{return bh(qn(e,(n=r,_r(o=>yh(o)&&o.endsWith(n)))));var n},minLength:r=>bh(qn(e,(n=>_r(o=>yh(o)&&o.length>=n))(r))),length:r=>bh(qn(e,(n=>_r(o=>yh(o)&&o.length===n))(r))),maxLength:r=>bh(qn(e,(n=>_r(o=>yh(o)&&o.length<=n))(r))),includes:r=>{return bh(qn(e,(n=r,_r(o=>yh(o)&&o.includes(n)))));var n},regex:r=>{return bh(qn(e,(n=r,_r(o=>yh(o)&&!!o.match(n)))));var n}}),oat=bh(_r(yh)),Pp=e=>Object.assign(Xi(e),{between:(r,n)=>Pp(qn(e,((o,i)=>_r(a=>Ap(a)&&o<=a&&i>=a))(r,n))),lt:r=>Pp(qn(e,(n=>_r(o=>Ap(o)&&o<n))(r))),gt:r=>Pp(qn(e,(n=>_r(o=>Ap(o)&&o>n))(r))),lte:r=>Pp(qn(e,(n=>_r(o=>Ap(o)&&o<=n))(r))),gte:r=>Pp(qn(e,(n=>_r(o=>Ap(o)&&o>=n))(r))),int:()=>Pp(qn(e,_r(r=>Ap(r)&&Number.isInteger(r)))),finite:()=>Pp(qn(e,_r(r=>Ap(r)&&Number.isFinite(r)))),positive:()=>Pp(qn(e,_r(r=>Ap(r)&&r>0))),negative:()=>Pp(qn(e,_r(r=>Ap(r)&&r<0)))}),iat=Pp(_r(Ap)),Eh=e=>Object.assign(Xi(e),{between:(r,n)=>Eh(qn(e,((o,i)=>_r(a=>xh(a)&&o<=a&&i>=a))(r,n))),lt:r=>Eh(qn(e,(n=>_r(o=>xh(o)&&o<n))(r))),gt:r=>Eh(qn(e,(n=>_r(o=>xh(o)&&o>n))(r))),lte:r=>Eh(qn(e,(n=>_r(o=>xh(o)&&o<=n))(r))),gte:r=>Eh(qn(e,(n=>_r(o=>xh(o)&&o>=n))(r))),positive:()=>Eh(qn(e,_r(r=>xh(r)&&r>0))),negative:()=>Eh(qn(e,_r(r=>xh(r)&&r<0)))}),sat=Eh(_r(xh)),aat=Xi(_r(function(e){return typeof e=="boolean"})),cat=Xi(_r(function(e){return typeof e=="symbol"})),uat=Xi(_r(function(e){return e==null})),lat=Xi(_r(function(e){return e!=null})),pc={__proto__:null,matcher:Ea,optional:a9,array:function(...e){return n9({[Ea]:()=>({match:r=>{if(!Array.isArray(r))return{matched:!1};if(e.length===0)return{matched:!0};let n=e[0],o={};if(r.length===0)return lc(n).forEach(a=>{o[a]=[]}),{matched:!0,selections:o};let i=(a,c)=>{o[a]=(o[a]||[]).concat([c])};return{matched:r.every(a=>Qi(n,a,i)),selections:o}},getSelectionKeys:()=>e.length===0?[]:lc(e[0])})})},set:function(...e){return Xi({[Ea]:()=>({match:r=>{if(!(r instanceof Set))return{matched:!1};let n={};if(r.size===0)return{matched:!0,selections:n};if(e.length===0)return{matched:!0};let o=(a,c)=>{n[a]=(n[a]||[]).concat([c])},i=e[0];return{matched:tat(r,a=>Qi(i,a,o)),selections:n}},getSelectionKeys:()=>e.length===0?[]:lc(e[0])})})},map:function(...e){return Xi({[Ea]:()=>({match:r=>{if(!(r instanceof Map))return{matched:!1};let n={};if(r.size===0)return{matched:!0,selections:n};let o=(u,l)=>{n[u]=(n[u]||[]).concat([l])};if(e.length===0)return{matched:!0};var i;if(e.length===1)throw new Error(`\`P.map\` wasn't given enough arguments. Expected (key, value), received ${(i=e[0])==null?void 0:i.toString()}`);let[a,c]=e;return{matched:rat(r,(u,l)=>{let p=Qi(a,l,o),f=Qi(c,u,o);return p&&f}),selections:n}},getSelectionKeys:()=>e.length===0?[]:[...lc(e[0]),...lc(e[1])]})})},intersection:qn,union:Ude,not:function(e){return Xi({[Ea]:()=>({match:r=>({matched:!Qi(e,r,()=>{})}),getSelectionKeys:()=>[],matcherType:"not"})})},when:_r,select:hT,any:jde,_:nat,string:oat,number:iat,bigint:sat,boolean:aat,symbol:cat,nullish:uat,nonNullable:lat,instanceOf:function(e){return Xi(_r(function(r){return n=>n instanceof r}(e)))},shape:function(e){return Xi(_r(eat(e)))}},o9=class extends Error{constructor(r){let n;try{n=JSON.stringify(r)}catch{n=r}super(`Pattern matching error: no pattern matches value ${n}`),this.input=void 0,this.input=r}},i9={matched:!1,value:void 0};function xr(e){return new s9(e,i9)}var s9=class e{constructor(r,n){this.input=void 0,this.state=void 0,this.input=r,this.state=n}with(...r){if(this.state.matched)return this;let n=r[r.length-1],o=[r[0]],i;r.length===3&&typeof r[1]=="function"?i=r[1]:r.length>2&&o.push(...r.slice(1,r.length-1));let a=!1,c={},u=(p,f)=>{a=!0,c[p]=f},l=!o.some(p=>Qi(p,this.input,u))||i&&!i(this.input)?i9:{matched:!0,value:n(a?eR in c?c[eR]:c:this.input,this.input)};return new e(this.input,l)}when(r,n){if(this.state.matched)return this;let o=!!r(this.input);return new e(this.input,o?{matched:!0,value:n(this.input,this.input)}:i9)}otherwise(r){return this.state.matched?this.state.value:r(this.input)}exhaustive(){if(this.state.matched)return this.state.value;throw new o9(this.input)}run(){return this.exhaustive()}returnType(){return this}};var Wde=require("util");var pat={warn:mt("prisma:warn")},fat={warn:()=>!process.env.PRISMA_DISABLE_WARNINGS};function tR(e,...r){fat.warn()&&console.warn(`${pat.warn} ${e}`,...r)}var dat=(0,Wde.promisify)(Hde.default.exec),Ks=gt("prisma:get-platform"),mat=["1.0.x","1.1.x","3.0.x"];async function Vde(){let e=nR.default.platform(),r=process.arch;if(e==="freebsd"){let c=await oR("freebsd-version");if(c&&c.trim().length>0){let l=/^(\d+)\.?/.exec(c);if(l)return{platform:"freebsd",targetDistro:`freebsd${l[1]}`,arch:r}}}if(e!=="linux")return{platform:e,arch:r};let n=await gat(),o=await _at(),i=xat({arch:r,archFromUname:o,familyDistro:n.familyDistro}),{libssl:a}=await bat(i);return{platform:"linux",libssl:a,arch:r,archFromUname:o,...n}}function hat(e){let r=/^ID="?([^"\n]*)"?$/im,n=/^ID_LIKE="?([^"\n]*)"?$/im,o=r.exec(e),i=o&&o[1]&&o[1].toLowerCase()||"",a=n.exec(e),c=a&&a[1]&&a[1].toLowerCase()||"",u=xr({id:i,idLike:c}).with({id:"alpine"},({id:l})=>({targetDistro:"musl",familyDistro:l,originalDistro:l})).with({id:"raspbian"},({id:l})=>({targetDistro:"arm",familyDistro:"debian",originalDistro:l})).with({id:"nixos"},({id:l})=>({targetDistro:"nixos",originalDistro:l,familyDistro:"nixos"})).with({id:"debian"},{id:"ubuntu"},({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).with({id:"rhel"},{id:"centos"},{id:"fedora"},({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).when(({idLike:l})=>l.includes("debian")||l.includes("ubuntu"),({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).when(({idLike:l})=>i==="arch"||l.includes("arch"),({id:l})=>({targetDistro:"debian",familyDistro:"arch",originalDistro:l})).when(({idLike:l})=>l.includes("centos")||l.includes("fedora")||l.includes("rhel")||l.includes("suse"),({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).otherwise(({id:l})=>({targetDistro:void 0,familyDistro:void 0,originalDistro:l}));return Ks(`Found distro info:
|
|
161
161
|
${JSON.stringify(u,null,2)}`),u}async function gat(){let e="/etc/os-release";try{let r=await c9.default.readFile(e,{encoding:"utf-8"});return hat(r)}catch{return{targetDistro:void 0,familyDistro:void 0,originalDistro:void 0}}}function yat(e){let r=/^OpenSSL\s(\d+\.\d+)\.\d+/.exec(e);if(r){let n=`${r[1]}.x`;return zde(n)}}function qde(e){let r=/libssl\.so\.(\d)(\.\d)?/.exec(e);if(r){let n=`${r[1]}${r[2]??".0"}.x`;return zde(n)}}function zde(e){let r=(()=>{if(Jde(e))return e;let n=e.split(".");return n[1]="0",n.join(".")})();if(mat.includes(r))return r}function xat(e){return xr(e).with({familyDistro:"musl"},()=>(Ks('Trying platform-specific paths for "alpine"'),["/lib","/usr/lib"])).with({familyDistro:"debian"},({archFromUname:r})=>(Ks('Trying platform-specific paths for "debian" (and "ubuntu")'),[`/usr/lib/${r}-linux-gnu`,`/lib/${r}-linux-gnu`])).with({familyDistro:"rhel"},()=>(Ks('Trying platform-specific paths for "rhel"'),["/lib64","/usr/lib64"])).otherwise(({familyDistro:r,arch:n,archFromUname:o})=>(Ks(`Don't know any platform-specific paths for "${r}" on ${n} (${o})`),[]))}async function bat(e){let r='grep -v "libssl.so.0"',n=await Gde(e);if(n){Ks(`Found libssl.so file using platform-specific paths: ${n}`);let a=qde(n);if(Ks(`The parsed libssl version is: ${a}`),a)return{libssl:a,strategy:"libssl-specific-path"}}Ks('Falling back to "ldconfig" and other generic paths');let o=await oR(`ldconfig -p | sed "s/.*=>s*//" | sed "s|.*/||" | grep libssl | sort | ${r}`);if(o||(o=await Gde(["/lib64","/usr/lib64","/lib","/usr/lib"])),o){Ks(`Found libssl.so file using "ldconfig" or other generic paths: ${o}`);let a=qde(o);if(Ks(`The parsed libssl version is: ${a}`),a)return{libssl:a,strategy:"ldconfig"}}let i=await oR("openssl version -v");if(i){Ks(`Found openssl binary with version: ${i}`);let a=yat(i);if(Ks(`The parsed openssl version is: ${a}`),a)return{libssl:a,strategy:"openssl-binary"}}return Ks("Couldn't find any version of libssl or OpenSSL in the system"),{}}async function Gde(e){for(let r of e){let n=await Eat(r);if(n)return n}}async function Eat(e){try{return(await c9.default.readdir(e)).find(n=>n.startsWith("libssl.so.")&&!n.startsWith("libssl.so.0"))}catch(r){if(r.code==="ENOENT")return;throw r}}async function va(){let{binaryTarget:e}=await Kde();return e}function vat(e){return e.binaryTarget!==void 0}async function u9(){let{memoized:e,...r}=await Kde();return r}var rR={};async function Kde(){if(vat(rR))return Promise.resolve({...rR,memoized:!0});let e=await Vde(),r=Sat(e);return rR={...e,binaryTarget:r},{...rR,memoized:!1}}function Sat(e){let{platform:r,arch:n,archFromUname:o,libssl:i,targetDistro:a,familyDistro:c,originalDistro:u}=e;r==="linux"&&!["x64","arm64"].includes(n)&&tR(`Prisma only officially supports Linux on amd64 (x86_64) and arm64 (aarch64) system architectures (detected "${n}" instead). If you are using your own custom Prisma engines, you can ignore this warning, as long as you've compiled the engines for your system architecture "${o}".`);let l="1.1.x";if(r==="linux"&&i===void 0){let f=xr({familyDistro:c}).with({familyDistro:"debian"},()=>"Please manually install OpenSSL via `apt-get update -y && apt-get install -y openssl` and try installing Prisma again. If you're running Prisma on Docker, add this command to your Dockerfile, or switch to an image that already has OpenSSL installed.").otherwise(()=>"Please manually install OpenSSL and try installing Prisma again.");tR(`Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-${l}".
|
|
162
162
|
${f}`)}let p="debian";if(r==="linux"&&a===void 0&&Ks(`Distro is "${u}". Falling back to Prisma engines built for "${p}".`),r==="darwin"&&n==="arm64")return"darwin-arm64";if(r==="darwin")return"darwin";if(r==="win32")return"windows";if(r==="freebsd")return a;if(r==="openbsd")return"openbsd";if(r==="netbsd")return"netbsd";if(r==="linux"&&a==="nixos")return"linux-nixos";if(r==="linux"&&n==="arm64")return`${a==="musl"?"linux-musl-arm64":"linux-arm64"}-openssl-${i||l}`;if(r==="linux"&&n==="arm")return`linux-arm-openssl-${i||l}`;if(r==="linux"&&a==="musl"){let f="linux-musl";return!i||Jde(i)?f:`${f}-openssl-${i}`}return r==="linux"&&a&&i?`${a}-openssl-${i}`:(r!=="linux"&&tR(`Prisma detected unknown OS "${r}" and may not work as expected. Defaulting to "linux".`),i?`${p}-openssl-${i}`:a?`${a}-openssl-${l}`:`${p}-openssl-${l}`)}async function wat(e){try{return await e()}catch{return}}function oR(e){return wat(async()=>{let r=await dat(e);return Ks(`Command "${e}" successfully returned "${r.stdout}"`),r.stdout})}async function _at(){return typeof nR.default.machine=="function"?nR.default.machine():(await oR("uname -m"))?.trim()}function Jde(e){return e.startsWith("1.")}var py={};cc(py,{beep:()=>Yat,clearScreen:()=>Vat,clearTerminal:()=>zat,cursorBackward:()=>Iat,cursorDown:()=>Pat,cursorForward:()=>Oat,cursorGetPosition:()=>Mat,cursorHide:()=>Nat,cursorLeft:()=>Qde,cursorMove:()=>Aat,cursorNextLine:()=>kat,cursorPrevLine:()=>$at,cursorRestorePosition:()=>Fat,cursorSavePosition:()=>Rat,cursorShow:()=>Lat,cursorTo:()=>Cat,cursorUp:()=>Zde,enterAlternativeScreen:()=>Kat,eraseDown:()=>qat,eraseEndLine:()=>Uat,eraseLine:()=>Xde,eraseLines:()=>Bat,eraseScreen:()=>l9,eraseStartLine:()=>jat,eraseUp:()=>Gat,exitAlternativeScreen:()=>Jat,iTerm:()=>Xat,image:()=>Qat,link:()=>Zat,scrollDown:()=>Wat,scrollUp:()=>Hat});var sR=W(require("node:process"),1);var iR=globalThis.window?.document!==void 0,Opr=globalThis.process?.versions?.node!==void 0,Ipr=globalThis.process?.versions?.bun!==void 0,Rpr=globalThis.Deno?.version?.deno!==void 0,Fpr=globalThis.process?.versions?.electron!==void 0,Mpr=globalThis.navigator?.userAgent?.includes("jsdom")===!0,kpr=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,$pr=typeof DedicatedWorkerGlobalScope<"u"&&globalThis instanceof DedicatedWorkerGlobalScope,Npr=typeof SharedWorkerGlobalScope<"u"&&globalThis instanceof SharedWorkerGlobalScope,Lpr=typeof ServiceWorkerGlobalScope<"u"&&globalThis instanceof ServiceWorkerGlobalScope,gT=globalThis.navigator?.userAgentData?.platform,Bpr=gT==="macOS"||globalThis.navigator?.platform==="MacIntel"||globalThis.navigator?.userAgent?.includes(" Mac ")===!0||globalThis.process?.platform==="darwin",Upr=gT==="Windows"||globalThis.navigator?.platform==="Win32"||globalThis.process?.platform==="win32",jpr=gT==="Linux"||globalThis.navigator?.platform?.startsWith("Linux")===!0||globalThis.navigator?.userAgent?.includes(" Linux ")===!0||globalThis.process?.platform==="linux",qpr=gT==="iOS"||globalThis.navigator?.platform==="MacIntel"&&globalThis.navigator?.maxTouchPoints>1||/iPad|iPhone|iPod/.test(globalThis.navigator?.platform),Gpr=gT==="Android"||globalThis.navigator?.platform==="Android"||globalThis.navigator?.userAgent?.includes(" Android ")===!0||globalThis.process?.platform==="android";var jr="\x1B[",xT="\x1B]",JE="\x07",yT=";",Yde=!iR&&sR.default.env.TERM_PROGRAM==="Apple_Terminal",Tat=!iR&&sR.default.platform==="win32",Dat=iR?()=>{throw new Error("`process.cwd()` only works in Node.js, not the browser.")}:sR.default.cwd,Cat=(e,r)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof r!="number"?jr+(e+1)+"G":jr+(r+1)+yT+(e+1)+"H"},Aat=(e,r)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let n="";return e<0?n+=jr+-e+"D":e>0&&(n+=jr+e+"C"),r<0?n+=jr+-r+"A":r>0&&(n+=jr+r+"B"),n},Zde=(e=1)=>jr+e+"A",Pat=(e=1)=>jr+e+"B",Oat=(e=1)=>jr+e+"C",Iat=(e=1)=>jr+e+"D",Qde=jr+"G",Rat=Yde?"\x1B7":jr+"s",Fat=Yde?"\x1B8":jr+"u",Mat=jr+"6n",kat=jr+"E",$at=jr+"F",Nat=jr+"?25l",Lat=jr+"?25h",Bat=e=>{let r="";for(let n=0;n<e;n++)r+=Xde+(n<e-1?Zde():"");return e&&(r+=Qde),r},Uat=jr+"K",jat=jr+"1K",Xde=jr+"2K",qat=jr+"J",Gat=jr+"1J",l9=jr+"2J",Hat=jr+"S",Wat=jr+"T",Vat="\x1Bc",zat=Tat?`${l9}${jr}0f`:`${l9}${jr}3J${jr}H`,Kat=jr+"?1049h",Jat=jr+"?1049l",Yat=JE,Zat=(e,r)=>[xT,"8",yT,yT,r,JE,e,xT,"8",yT,yT,JE].join(""),Qat=(e,r={})=>{let n=`${xT}1337;File=inline=1`;return r.width&&(n+=`;width=${r.width}`),r.height&&(n+=`;height=${r.height}`),r.preserveAspectRatio===!1&&(n+=";preserveAspectRatio=0"),n+":"+Buffer.from(e).toString("base64")+JE},Xat={setCwd:(e=Dat())=>`${xT}50;CurrentDir=${e}${JE}`,annotation(e,r={}){let n=`${xT}1337;`,o=r.x!==void 0,i=r.y!==void 0;if((o||i)&&!(o&&i&&r.length!==void 0))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replaceAll("|",""),n+=r.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",r.length>0?n+=(o?[e,r.length,r.x,r.y]:[r.length,e]).join("|"):n+=e,n+JE}};var aR=W(sme(),1);function fy(e,r,{target:n="stdout",...o}={}){return aR.default[n]?py.link(e,r):o.fallback===!1?e:typeof o.fallback=="function"?o.fallback(e,r):`${e} (\u200B${r}\u200B)`}fy.isSupported=aR.default.stdout;fy.stderr=(e,r,n={})=>fy(e,r,{target:"stderr",...n});fy.stderr.isSupported=aR.default.stderr;var Ghe=require("node:buffer"),Hhe=W(require("node:path"),1),wR=W(require("node:child_process"),1),ST=W(require("node:process"),1),Whe=W(uR(),1);function T9(e){let r=typeof e=="string"?`
|
|
163
163
|
`:10,n=typeof e=="string"?"\r":13;return e[e.length-1]===r&&(e=e.slice(0,-1)),e[e.length-1]===n&&(e=e.slice(0,-1)),e}var bT=W(require("node:process"),1),XE=W(require("node:path"),1),D9=require("node:url");function lR(e={}){let{env:r=process.env,platform:n=process.platform}=e;return n!=="win32"?"PATH":Object.keys(r).reverse().find(o=>o.toUpperCase()==="PATH")||"Path"}var Pct=({cwd:e=bT.default.cwd(),path:r=bT.default.env[lR()],preferLocal:n=!0,execPath:o=bT.default.execPath,addExecPath:i=!0}={})=>{let a=e instanceof URL?(0,D9.fileURLToPath)(e):e,c=XE.default.resolve(a),u=[];return n&&Oct(u,c),i&&Ict(u,o,c),[...u,r].join(XE.default.delimiter)},Oct=(e,r)=>{let n;for(;n!==r;)e.push(XE.default.join(r,"node_modules/.bin")),n=r,r=XE.default.resolve(r,"..")},Ict=(e,r,n)=>{let o=r instanceof URL?(0,D9.fileURLToPath)(r):r;e.push(XE.default.resolve(n,o,".."))},zme=({env:e=bT.default.env,...r}={})=>{e={...e};let n=lR({env:e});return r.path=e[n],e[n]=Pct(r),e};var Rct=(e,r,n,o)=>{if(n==="length"||n==="prototype"||n==="arguments"||n==="caller")return;let i=Object.getOwnPropertyDescriptor(e,n),a=Object.getOwnPropertyDescriptor(r,n);!Fct(i,a)&&o||Object.defineProperty(e,n,a)},Fct=function(e,r){return e===void 0||e.configurable||e.writable===r.writable&&e.enumerable===r.enumerable&&e.configurable===r.configurable&&(e.writable||e.value===r.value)},Mct=(e,r)=>{let n=Object.getPrototypeOf(r);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},kct=(e,r)=>`/* Wrapped ${e}*/
|
|
@@ -1069,7 +1069,7 @@ ${i.style.help("(Use arrow keys)")}`);let I=gx({items:f,active:_,renderItem({ite
|
|
|
1069
1069
|
${i.style.description(O.description)}`:"";return[[E,C,j].filter(Boolean).join(" "),`${k??I}${R}${G}`]});var FY=W(mg(),1);var NNe=W(WC(),1),_kt={icon:{cursor:vu.pointer},style:{disabled:e=>FY.default.dim(`- ${e}`),description:e=>FY.default.cyan(e)},helpMode:"auto"};function PS(e){return!Ir.isSeparator(e)&&!e.disabled}function Tkt(e){return e.map(r=>{if(Ir.isSeparator(r))return r;if(typeof r=="string")return{value:r,name:r,short:r,disabled:!1};let n=r.name??String(r.value);return{value:r.value,name:n,description:r.description,short:r.short??n,disabled:r.disabled??!1}})}var bg=Bo((e,r)=>{let{loop:n=!0,pageSize:o=7}=e,i=wu(!0),a=vo(_kt,e.theme),[c,u]=Tt("idle"),l=No({status:c,theme:a}),p=wu(),f=Pc(()=>Tkt(e.choices),[e.choices]),g=Pc(()=>{let I=f.findIndex(PS),k=f.findLastIndex(PS);if(I===-1)throw new dg("[select prompt] No selectable choices. All choices are disabled.");return{first:I,last:k}},[f]),x=Pc(()=>"default"in e?f.findIndex(I=>PS(I)&&I.value===e.default):-1,[e.default,f]),[b,E]=Tt(x===-1?g.first:x),S=f[b];Lo((I,k)=>{if(clearTimeout(p.current),ni(I))u("done"),r(S.value);else if(fg(I)||dS(I)){if(k.clearLine(0),n||fg(I)&&b!==g.first||dS(I)&&b!==g.last){let j=fg(I)?-1:1,G=b;do G=(G+j+f.length)%f.length;while(!PS(f[G]));E(G)}}else if(K$(I)){k.clearLine(0);let j=Number(I.name)-1,G=f[j];G!=null&&PS(G)&&E(j)}else if(mS(I))k.clearLine(0);else{let j=k.line.toLowerCase(),G=f.findIndex(L=>Ir.isSeparator(L)||!PS(L)?!1:L.name.toLowerCase().startsWith(j));G!==-1&&E(G),p.current=setTimeout(()=>{k.clearLine(0)},700)}}),Fl(()=>()=>{clearTimeout(p.current)},[]);let _=a.style.message(e.message,c),D="",O="";(a.helpMode==="always"||a.helpMode==="auto"&&i.current)&&(i.current=!1,f.length>o?O=`
|
|
1070
1070
|
${a.style.help("(Use arrow keys to reveal more choices)")}`:D=a.style.help("(Use arrow keys)"));let C=gx({items:f,active:b,renderItem({item:I,isActive:k}){if(Ir.isSeparator(I))return` ${I.separator}`;if(I.disabled){let L=typeof I.disabled=="string"?I.disabled:"(disabled)";return a.style.disabled(`${I.name} ${L}`)}let j=k?a.style.highlight:L=>L,G=k?a.icon.cursor:" ";return j(`${G} ${I.name}`)},pageSize:o,loop:n});if(c==="done")return`${l} ${_} ${a.style.answer(S.short)}`;let R=S.description?`
|
|
1071
1071
|
${a.style.description(S.description)}`:"";return`${[l,_,D].filter(Boolean).join(" ")}
|
|
1072
|
-
${C}${O}${R}${NNe.default.cursorHide}`});var hXe=require("@prisma/config");var gXe=W(Zy());var q6e=require("crypto"),G6e=W(TN()),Ha=W(require("fs/promises")),zZ=W(qh());var WNe=W(require("node:process"),1);var jNe=W(require("node:process"),1),qNe=W(require("node:fs/promises"),1),GNe=require("node:url");var _x=W(require("node:path"),1),UNe=e=>e instanceof URL?(0,GNe.fileURLToPath)(e):e;async function HNe(e,{cwd:r=jNe.default.cwd(),type:n="file",stopAt:o}={}){let i=_x.default.resolve(UNe(r)??""),{root:a}=_x.default.parse(i);o=_x.default.resolve(i,UNe(o??a));let c=_x.default.isAbsolute(e);for(;i;){let u=c?e:_x.default.join(i,e);try{let l=await qNe.default.stat(u);if(n==="file"&&l.isFile()||n==="directory"&&l.isDirectory())return u}catch{}if(i===o||i===a)break;i=_x.default.dirname(i)}}async function IS({cwd:e=WNe.default.cwd()}={}){return HNe("package.json",{cwd:e})}var bi=W(require("path"));var RS={name:"@prisma/client",version:"7.9.
|
|
1072
|
+
${C}${O}${R}${NNe.default.cursorHide}`});var hXe=require("@prisma/config");var gXe=W(Zy());var q6e=require("crypto"),G6e=W(TN()),Ha=W(require("fs/promises")),zZ=W(qh());var WNe=W(require("node:process"),1);var jNe=W(require("node:process"),1),qNe=W(require("node:fs/promises"),1),GNe=require("node:url");var _x=W(require("node:path"),1),UNe=e=>e instanceof URL?(0,GNe.fileURLToPath)(e):e;async function HNe(e,{cwd:r=jNe.default.cwd(),type:n="file",stopAt:o}={}){let i=_x.default.resolve(UNe(r)??""),{root:a}=_x.default.parse(i);o=_x.default.resolve(i,UNe(o??a));let c=_x.default.isAbsolute(e);for(;i;){let u=c?e:_x.default.join(i,e);try{let l=await qNe.default.stat(u);if(n==="file"&&l.isFile()||n==="directory"&&l.isDirectory())return u}catch{}if(i===o||i===a)break;i=_x.default.dirname(i)}}async function IS({cwd:e=WNe.default.cwd()}={}){return HNe("package.json",{cwd:e})}var bi=W(require("path"));var RS={name:"@prisma/client",version:"7.9.1",description:"Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",keywords:["ORM","Prisma","prisma2","Prisma Client","client","query","query-builder","database","db","JavaScript","JS","TypeScript","TS","SQL","SQLite","pg","Postgres","PostgreSQL","CockroachDB","MySQL","MariaDB","MSSQL","SQL Server","SQLServer","MongoDB"],main:"default.js",types:"default.d.ts",browser:"index-browser.js",exports:{"./package.json":"./package.json",".":{require:{types:"./default.d.ts",node:"./default.js","edge-light":"./default.js",workerd:"./default.js",worker:"./default.js",browser:"./index-browser.js"},import:{types:"./default.d.ts",node:"./default.js","edge-light":"./default.js",workerd:"./default.js",worker:"./default.js",browser:"./index-browser.js"},default:"./default.js"},"./extension":{types:"./extension.d.ts",require:"./extension.js",import:"./extension.js",default:"./extension.js"},"./index-browser":{types:"./index.d.ts",require:"./index-browser.js",import:"./index-browser.js",default:"./index-browser.js"},"./index":{types:"./index.d.ts",require:"./index.js",import:"./index.js",default:"./index.js"},"./edge":{types:"./edge.d.ts",require:"./edge.js",import:"./edge.js",default:"./edge.js"},"./runtime/client":{types:"./runtime/client.d.ts",node:{require:"./runtime/client.js",default:"./runtime/client.js"},require:"./runtime/client.js",import:"./runtime/client.mjs",default:"./runtime/client.mjs"},"./runtime/wasm-compiler-edge":{types:"./runtime/wasm-compiler-edge.d.ts",require:"./runtime/wasm-compiler-edge.js",import:"./runtime/wasm-compiler-edge.mjs",default:"./runtime/wasm-compiler-edge.mjs"},"./runtime/index-browser":{types:"./runtime/index-browser.d.ts",require:"./runtime/index-browser.js",import:"./runtime/index-browser.mjs",default:"./runtime/index-browser.mjs"},"./sql":{require:{types:"./sql.d.ts",node:"./sql.js",default:"./sql.js"},import:{types:"./sql.d.ts",node:"./sql.mjs",default:"./sql.mjs"},default:"./sql.js"},"./*":"./*"},license:"Apache-2.0",engines:{node:"^20.19 || ^22.12 || >=24.0"},homepage:"https://www.prisma.io",repository:{type:"git",url:"https://github.com/prisma/prisma.git",directory:"packages/client"},author:"Tim Suchanek <suchanek@prisma.io>",bugs:"https://github.com/prisma/prisma/issues",scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",test:"dotenv -e ../../.db.env -- jest --silent","test:e2e":"dotenv -e ../../.db.env -- tsx tests/e2e/_utils/run.ts","test:functional":"dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts","test:functional:client":"pnpm run test:functional --client-runtime client","test:functional:code":"dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts --no-types","test:functional:types":"dotenv -e ../../.db.env -- tsx helpers/functional-test/run-tests.ts --types-only","test-notypes":"dotenv -e ../../.db.env -- jest --testPathIgnorePatterns src/__tests__/types/types.test.ts",prepublishOnly:"pnpm run build","new-test":"tsx ./helpers/new-test/new-test.ts"},files:["README.md","runtime","scripts","edge.js","edge.d.ts","index.js","index.d.ts","default.js","default.d.ts","index-browser.js","extension.js","extension.d.ts","sql.d.ts","sql.js","sql.mjs"],devDependencies:{"@cloudflare/workers-types":"^4.20251014.0","@codspeed/benchmark.js-plugin":"4.0.0","@faker-js/faker":"9.6.0","@fast-check/jest":"2.0.3","@hono/node-server":"^1.19.14","@inquirer/prompts":"7.3.3","@jest/create-cache-key-function":"29.7.0","@jest/globals":"29.7.0","@jest/test-sequencer":"29.7.0","@libsql/client":"0.8.1","@neondatabase/serverless":"0.10.2","@opentelemetry/api":"1.9.0","@opentelemetry/context-async-hooks":"2.1.0","@opentelemetry/instrumentation":"0.206.0","@opentelemetry/resources":"2.1.0","@opentelemetry/sdk-trace-base":"2.1.0","@opentelemetry/semantic-conventions":"1.37.0","@planetscale/database":"1.19.0","@prisma/adapter-better-sqlite3":"workspace:*","@prisma/adapter-d1":"workspace:*","@prisma/adapter-libsql":"workspace:*","@prisma/adapter-mariadb":"workspace:*","@prisma/adapter-mssql":"workspace:*","@prisma/adapter-neon":"workspace:*","@prisma/adapter-pg":"workspace:*","@prisma/adapter-planetscale":"workspace:*","@prisma/client-common":"workspace:*","@prisma/client-engine-runtime":"workspace:*","@prisma/client-generator-js":"workspace:*","@prisma/client-generator-ts":"workspace:*","@prisma/config":"workspace:*","@prisma/debug":"workspace:*","@prisma/dmmf":"workspace:*","@prisma/driver-adapter-utils":"workspace:*","@prisma/engines":"workspace:*","@prisma/engines-version":"7.9.0-1.e922089b7d7502aff4249d5da3420f6fa55fc6ad","@prisma/fetch-engine":"workspace:*","@prisma/generator":"workspace:*","@prisma/generator-helper":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/instrumentation":"workspace:*","@prisma/instrumentation-contract":"workspace:*","@prisma/internals":"workspace:*","@prisma/json-protocol":"workspace:*","@prisma/migrate":"workspace:*","@prisma/param-graph":"workspace:*","@prisma/param-graph-builder":"workspace:*","@prisma/query-compiler-wasm":"7.9.0-1.e922089b7d7502aff4249d5da3420f6fa55fc6ad","@prisma/query-plan-executor":"workspace:*","@prisma/sqlcommenter":"workspace:*","@prisma/sqlcommenter-trace-context":"workspace:*","@prisma/ts-builders":"workspace:*","@snaplet/copycat":"6.0.0","@swc-node/register":"1.10.9","@swc/core":"1.11.5","@swc/jest":"0.2.37","@timsuchanek/copy":"1.4.5","@types/debug":"4.1.12","@types/fs-extra":"11.0.4","@types/jest":"29.5.14","@types/js-levenshtein":"1.1.3","@types/mssql":"9.1.8","@types/node":"~20.19.24","@types/pg":"8.11.11",arg:"5.0.2",benchmark:"2.1.4","cookie-es":"2.0.0",execa:"8.0.1","expect-type":"1.2.2","fs-extra":"11.3.0","get-stream":"6.0.1",globby:"11.1.0","indent-string":"4.0.0",jest:"29.7.0","jest-extended":"4.0.2","jest-junit":"16.0.0","jest-serializer-ansi-escapes":"4.0.0","jest-snapshot":"29.7.0","js-levenshtein":"1.1.6",kleur:"4.1.5",klona:"2.0.6",mariadb:"3.4.5",memfs:"4.17.2",mssql:"11.0.1","new-github-issue-url":"0.2.1","p-retry":"4.6.2",pg:"8.14.1",resolve:"1.22.10","simple-statistics":"7.8.8","sort-keys":"5.1.0","source-map-support":"0.5.21","stacktrace-parser":"0.1.11","strip-ansi":"7.1.0","strip-indent":"4.0.0",tempy:"3.0.0","ts-pattern":"5.6.2",tsd:"0.31.2",typescript:"5.4.5",undici:"7.4.0",zx:"8.4.1"},dependencies:{"@prisma/client-runtime-utils":"workspace:*"},peerDependencies:{prisma:"*",typescript:">=5.4.0"},peerDependenciesMeta:{prisma:{optional:!0},typescript:{optional:!0}},sideEffects:!1};var FS=class{_map=new Map;get(r){return this._map.get(r)?.value}set(r,n){this._map.set(r,{value:n})}getOrCreate(r,n){let o=this._map.get(r);if(o)return o.value;let i=n();return this.set(r,i),i}};function dt(e){return e.length===0?e:e[0].toUpperCase()+e.slice(1)}function et(e){return e.substring(0,1).toLowerCase()+e.substring(1)}function oi(e,r){let n={};for(let o of e){let i=o[r];n[i]=o}return n}var DN=["TransactionIsolationLevel"],CN=["JsonNullValueInput","NullableJsonNullValueInput","JsonNullValueFilter"];function AN(e){return{models:$Y(e.models),enums:$Y(e.enums),types:$Y(e.types)}}function PN({models:e}){let r={};for(let n of Object.keys(e)){r[n]={fields:[],dbName:e[n].dbName};for(let{name:o,kind:i,type:a,relationName:c,dbName:u}of e[n].fields)r[n].fields.push({name:o,kind:i,type:a,relationName:c,dbName:u})}return{models:r,enums:{},types:{}}}function $Y(e){let r={};for(let{name:n,...o}of e)r[n]=o;return r}function ON(e,r){let n={};for(let o of e){let i=r(o);n[i]||(n[i]=o)}return Object.values(n)}var NY=W(Ds());var Cu=class{constructor(r,n){this.type=r;this.useNamespace=n}isObjectEnum(){return this.useNamespace&&CN.includes(this.type.name)}isStrictEnum(){return this.useNamespace&&DN.includes(this.type.name)}toJS(){let{type:r}=this,n=`{
|
|
1073
1073
|
${(0,NY.default)(r.values.map(i=>`${i}: ${this.getValueJS(i)}`).join(`,
|
|
1074
1074
|
`),2)}
|
|
1075
1075
|
}`,o=this.isStrictEnum()?`makeStrictEnum(${n})`:n;return this.useNamespace?`exports.Prisma.${r.name} = ${o};`:`exports.${r.name} = exports.$Enums.${r.name} = ${o};`}getValueJS(r){return this.isObjectEnum()?`Prisma.${r}`:`'${r}'`}toTS(){let{type:r}=this;return`export const ${r.name}: {
|
|
@@ -2533,7 +2533,7 @@ Object.assign(exports, Prisma)
|
|
|
2533
2533
|
Rename the following items:`;for(let G of I)j+=`
|
|
2534
2534
|
- `+G.message;throw j+=`
|
|
2535
2535
|
To learn more about how to rename models, check out https://pris.ly/d/naming-models`,new x6(j)}if(await(0,zZ.ensureDir)(D),await W6e(D,C),l||o.isCustomOutput===!0){let j=bi.default.join(D,"runtime");await(0,zZ.ensureDir)(j),await D$t({from:f,to:j,sourceMaps:p,runtimeName:"client"})}let k=bi.default.join(D,"schema.prisma");if(await Ha.default.writeFile(k,r,{encoding:"utf-8"}),v$t(R)){let j=R==="postgres"?"postgresql":R,G=`query_compiler_${S}_bg`,L=bi.default.join(f,`${G}.${j}.wasm-base64.js`),H=require(L).wasm;await Ha.default.writeFile(bi.default.join(D,`${G}.wasm`),Buffer.from(H,"base64")),await Ha.default.copyFile(bi.default.join(f,`${G}.${j}.js`),bi.default.join(D,`${G}.js`)),await Ha.default.copyFile(L,bi.default.join(D,`${G}.wasm-base64.js`))}try{let j=(0,G6e.default)("prisma").cache,G=bi.default.join(j,"last-generate");await Ha.default.mkdir(j,{recursive:!0}),await Ha.default.writeFile(G,Date.now().toString())}catch{}}function W6e(e,r){return Promise.all(Object.entries(r).map(async([n,o])=>{let i=bi.default.join(e,n);await Ha.default.rm(i,{recursive:!0,force:!0}),typeof o=="string"?await Ha.default.writeFile(i,o):(await Ha.default.mkdir(i),await W6e(i,o))}))}function v$t(e){return e==="postgresql"||e==="postgres"||e==="cockroachdb"||e==="mysql"||e==="sqlite"||e==="sqlserver"}function S$t(e){let r=[],n={models:["PrismaClient","Prisma","async","await","break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","implements","import","in","instanceof","interface","let","new","null","package","private","protected","public","return","super","switch","this","throw","true","try","using","typeof","var","void","while","with","yield"],fields:["AND","OR","NOT"],dynamic:[]};if(e.datamodel.enums)for(let o of e.datamodel.enums)(n.models.includes(o.name)||n.fields.includes(o.name))&&r.push(Error(`"enum ${o.name}"`));if(e.datamodel.models)for(let o of e.datamodel.models)(n.models.includes(o.name)||n.fields.includes(o.name))&&r.push(Error(`"model ${o.name}"`));return r.length>0?r:null}async function w$t({runtimeBase:e,generator:r,outputDir:n,datamodel:o,schemaPath:i,testMode:a}){let c=r.isCustomOutput===!0,u=bi.default.normalize(n),l=c?"./runtime":"@prisma/client/runtime",p=c?u:E$t(u);a&&e&&(p=n,l=Xp(e)),c&&await _$t(p,o,i);let f=await IS({cwd:bi.default.dirname(p)}),g=f?bi.default.dirname(f):process.cwd();return{runtimeBase:l,outputDir:p,projectRoot:g}}async function _$t(e,r,n){let o;try{o=await Ha.default.readFile(bi.default.join(e,"package.json"),"utf8")}catch(a){if(a.code==="ENOENT")return;throw a}let{name:i}=JSON.parse(o);if(i===RS.name){let a=[`Generating client into ${U(e)} is not allowed.`];a.push("This package is used by `prisma generate` and overwriting its content is dangerous."),a.push(""),a.push("Suggestion:");let c=T$t(r);if(c&&c.content.includes(RS.name)){let l=c.content;a.push(`In ${U(n)} replace:`),a.push(""),a.push(`${te(c.lineNumber)} ${VZ(l,de(RS.name))}`),a.push("with"),a.push(`${te(c.lineNumber)} ${VZ(l,fe(".prisma/client"))}`)}else a.push(`Generate client into ${U(VZ(e,fe(".prisma/client")))} instead`);throw a.push(""),a.push("You won't need to change your imports."),a.push("Imports from `@prisma/client` will be automatically forwarded to `.prisma/client`"),new Error(a.join(`
|
|
2536
|
-
`))}}function VZ(e,r){return e.replace(RS.name,r)}function T$t(e){let r=e.split(/\r?\n/);for(let[n,o]of r.entries())if(/output\s*=/.test(o))return{lineNumber:n+1,content:o.trim()};return null}async function D$t({from:e,to:r,runtimeName:n,sourceMaps:o}){let i=["index-browser.js","index-browser.d.ts","wasm-compiler-edge.js"];i.push(`${n}.js`),i.push(`${n}.d.ts`),o&&i.push(...i.filter(a=>a.endsWith(".js")).map(a=>`${a}.map`)),await Promise.all(i.map(async a=>{let c=bi.default.join(e,a),u=bi.default.join(r,a);if(a.endsWith(".js")){let l=await Ha.default.readFile(c,"utf-8");await Ha.default.writeFile(u,WZ(l))}else await Ha.default.copyFile(c,u)}))}function C$t(e){let r=(0,q6e.createHash)("sha256");return r.write(e),`${A$t}${r.digest().toString("hex")}`}var A$t="prisma-client-";var XQ=W(require("node:path")),Z4e=W(KZ());var JZ="7.9.
|
|
2536
|
+
`))}}function VZ(e,r){return e.replace(RS.name,r)}function T$t(e){let r=e.split(/\r?\n/);for(let[n,o]of r.entries())if(/output\s*=/.test(o))return{lineNumber:n+1,content:o.trim()};return null}async function D$t({from:e,to:r,runtimeName:n,sourceMaps:o}){let i=["index-browser.js","index-browser.d.ts","wasm-compiler-edge.js"];i.push(`${n}.js`),i.push(`${n}.d.ts`),o&&i.push(...i.filter(a=>a.endsWith(".js")).map(a=>`${a}.map`)),await Promise.all(i.map(async a=>{let c=bi.default.join(e,a),u=bi.default.join(r,a);if(a.endsWith(".js")){let l=await Ha.default.readFile(c,"utf-8");await Ha.default.writeFile(u,WZ(l))}else await Ha.default.copyFile(c,u)}))}function C$t(e){let r=(0,q6e.createHash)("sha256");return r.write(e),`${A$t}${r.digest().toString("hex")}`}var A$t="prisma-client-";var XQ=W(require("node:path")),Z4e=W(KZ());var JZ="7.9.1";var J4e=W(require("node:fs/promises")),ZQ=W(require("node:path"));var Ul=W(require("node:fs"),1),ii=W(require("node:path"),1),Ei=W(require("node:process"),1),WLe=require("node:buffer"),dA=W(require("node:child_process"),1),VLe=W(require("child_process"),1),yA=W(require("path"),1),QS=W(require("fs"),1),xA=W(require("node:url"),1),XS=W(require("node:os"),1),zLe=require("node:timers/promises"),KLe=W(require("stream"),1),JLe=require("node:util"),YLe=W(require("os"),1),ZLe=W(require("tty"),1),QLe=W(require("readline"),1),XLe=W(require("events"),1),BQ=W(require("fs/promises"),1);function z6e(e){return r=>r.length>1?`${e} run ${r[0]} -- ${r.slice(1).join(" ")}`:`${e} run ${r[0]}`}var K6e={agent:"yarn {0}",run:"yarn run {0}",install:"yarn install {0}",frozen:"yarn install --frozen-lockfile",global:"yarn global add {0}",add:"yarn add {0}",upgrade:"yarn upgrade {0}","upgrade-interactive":"yarn upgrade-interactive {0}",execute:"npx {0}",uninstall:"yarn remove {0}",global_uninstall:"yarn global remove {0}"},J6e={agent:"pnpm {0}",run:"pnpm run {0}",install:"pnpm i {0}",frozen:"pnpm i --frozen-lockfile",global:"pnpm add -g {0}",add:"pnpm add {0}",upgrade:"pnpm update {0}","upgrade-interactive":"pnpm update -i {0}",execute:"pnpm dlx {0}",uninstall:"pnpm remove {0}",global_uninstall:"pnpm remove --global {0}"},I$t={agent:"bun {0}",run:"bun run {0}",install:"bun install {0}",frozen:"bun install --no-save",global:"bun add -g {0}",add:"bun add {0}",upgrade:"bun update {0}","upgrade-interactive":"bun update {0}",execute:"bunx {0}",uninstall:"bun remove {0}",global_uninstall:"bun remove -g {0}"},mA={npm:{agent:"npm {0}",run:z6e("npm"),install:"npm i {0}",frozen:"npm ci",global:"npm i -g {0}",add:"npm i {0}",upgrade:"npm update {0}","upgrade-interactive":null,execute:"npx {0}",uninstall:"npm uninstall {0}",global_uninstall:"npm uninstall -g {0}"},yarn:K6e,"yarn@berry":{...K6e,frozen:"yarn install --immutable",upgrade:"yarn up {0}","upgrade-interactive":"yarn up -i {0}",execute:"yarn dlx {0}",global:"npm i -g {0}",global_uninstall:"npm uninstall -g {0}"},pnpm:J6e,"pnpm@6":{...J6e,run:z6e("pnpm")},bun:I$t},R$t=Object.keys(mA),dQ={"bun.lockb":"bun","pnpm-lock.yaml":"pnpm","yarn.lock":"yarn","package-lock.json":"npm","npm-shrinkwrap.json":"npm"},e4e={bun:"https://bun.sh",pnpm:"https://pnpm.io/installation","pnpm@6":"https://pnpm.io/6.x/installation",yarn:"https://classic.yarnpkg.com/en/docs/install","yarn@berry":"https://yarnpkg.com/getting-started/install",npm:"https://docs.npmjs.com/cli/v8/configuring-npm/install"},Yd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var{hasOwnProperty:OLr}=Object.prototype;var ew={exports:{}},YZ,Y6e;function F$t(){if(Y6e)return YZ;Y6e=1,YZ=o,o.sync=i;var e=QS.default;function r(a,c){var u=c.pathExt!==void 0?c.pathExt:process.env.PATHEXT;if(!u||(u=u.split(";"),u.indexOf("")!==-1))return!0;for(var l=0;l<u.length;l++){var p=u[l].toLowerCase();if(p&&a.substr(-p.length).toLowerCase()===p)return!0}return!1}function n(a,c,u){return!a.isSymbolicLink()&&!a.isFile()?!1:r(c,u)}function o(a,c,u){e.stat(a,function(l,p){u(l,l?!1:n(p,a,c))})}function i(a,c){return n(e.statSync(a),a,c)}return YZ}var ZZ,Z6e;function M$t(){if(Z6e)return ZZ;Z6e=1,ZZ=r,r.sync=n;var e=QS.default;function r(a,c,u){e.stat(a,function(l,p){u(l,l?!1:o(p,c))})}function n(a,c){return o(e.statSync(a),c)}function o(a,c){return a.isFile()&&i(a,c)}function i(a,c){var u=a.mode,l=a.uid,p=a.gid,f=c.uid!==void 0?c.uid:process.getuid&&process.getuid(),g=c.gid!==void 0?c.gid:process.getgid&&process.getgid(),x=parseInt("100",8),b=parseInt("010",8),E=parseInt("001",8),S=x|b,_=u&E||u&b&&p===g||u&x&&l===f||u&S&&f===0;return _}return ZZ}var O6;process.platform==="win32"||Yd.TESTING_WINDOWS?O6=F$t():O6=M$t();var k$t=UQ;UQ.sync=$$t;function UQ(e,r,n){if(typeof r=="function"&&(n=r,r={}),!n){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(o,i){UQ(e,r||{},function(a,c){a?i(a):o(c)})})}O6(e,r||{},function(o,i){o&&(o.code==="EACCES"||r&&r.ignoreErrors)&&(o=null,i=!1),n(o,i)})}function $$t(e,r){try{return O6.sync(e,r||{})}catch(n){if(r&&r.ignoreErrors||n.code==="EACCES")return!1;throw n}}var VS=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",t4e=yA.default,N$t=VS?";":":",r4e=k$t,n4e=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),o4e=(e,r)=>{let n=r.colon||N$t,o=e.match(/\//)||VS&&e.match(/\\/)?[""]:[...VS?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(n)],i=VS?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=VS?i.split(n):[""];return VS&&e.indexOf(".")!==-1&&a[0]!==""&&a.unshift(""),{pathEnv:o,pathExt:a,pathExtExe:i}},i4e=(e,r,n)=>{typeof r=="function"&&(n=r,r={}),r||(r={});let{pathEnv:o,pathExt:i,pathExtExe:a}=o4e(e,r),c=[],u=p=>new Promise((f,g)=>{if(p===o.length)return r.all&&c.length?f(c):g(n4e(e));let x=o[p],b=/^".*"$/.test(x)?x.slice(1,-1):x,E=t4e.join(b,e),S=!b&&/^\.[\\\/]/.test(e)?e.slice(0,2)+E:E;f(l(S,p,0))}),l=(p,f,g)=>new Promise((x,b)=>{if(g===i.length)return x(u(f+1));let E=i[g];r4e(p+E,{pathExt:a},(S,_)=>{if(!S&&_)if(r.all)c.push(p+E);else return x(p+E);return x(l(p,f,g+1))})});return n?u(0).then(p=>n(null,p),n):u(0)},L$t=(e,r)=>{r=r||{};let{pathEnv:n,pathExt:o,pathExtExe:i}=o4e(e,r),a=[];for(let c=0;c<n.length;c++){let u=n[c],l=/^".*"$/.test(u)?u.slice(1,-1):u,p=t4e.join(l,e),f=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;for(let g=0;g<o.length;g++){let x=f+o[g];try{if(r4e.sync(x,{pathExt:i}))if(r.all)a.push(x);else return x}catch{}}}if(r.all&&a.length)return a;if(r.nothrow)return null;throw n4e(e)},B$t=i4e;i4e.sync=L$t;var jQ={exports:{}},s4e=(e={})=>{let r=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(r).reverse().find(o=>o.toUpperCase()==="PATH")||"Path"};jQ.exports=s4e;jQ.exports.default=s4e;var U$t=jQ.exports,Q6e=yA.default,j$t=B$t,q$t=U$t;function X6e(e,r){let n=e.options.env||process.env,o=process.cwd(),i=e.options.cwd!=null,a=i&&process.chdir!==void 0&&!process.chdir.disabled;if(a)try{process.chdir(e.options.cwd)}catch{}let c;try{c=j$t.sync(e.command,{path:n[q$t({env:n})],pathExt:r?Q6e.delimiter:void 0})}catch{}finally{a&&process.chdir(o)}return c&&(c=Q6e.resolve(i?e.options.cwd:"",c)),c}function G$t(e){return X6e(e)||X6e(e,!0)}var H$t=G$t,qQ={},mQ=/([()\][%!^"`<>&|;, *?])/g;function W$t(e){return e=e.replace(mQ,"^$1"),e}function V$t(e,r){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(mQ,"^$1"),r&&(e=e.replace(mQ,"^$1")),e}qQ.command=W$t;qQ.argument=V$t;var z$t=/^#!(.*)/,K$t=z$t,J$t=(e="")=>{let r=e.match(K$t);if(!r)return null;let[n,o]=r[0].replace(/#! ?/,"").split(" "),i=n.split("/").pop();return i==="env"?o:o?`${i} ${o}`:i},QZ=QS.default,Y$t=J$t;function Z$t(e){let n=Buffer.alloc(150),o;try{o=QZ.openSync(e,"r"),QZ.readSync(o,n,0,150,0),QZ.closeSync(o)}catch{}return Y$t(n.toString())}var Q$t=Z$t,X$t=yA.default,eLe=H$t,tLe=qQ,eNt=Q$t,tNt=process.platform==="win32",rNt=/\.(?:com|exe)$/i,nNt=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function oNt(e){e.file=eLe(e);let r=e.file&&eNt(e.file);return r?(e.args.unshift(e.file),e.command=r,eLe(e)):e.file}function iNt(e){if(!tNt)return e;let r=oNt(e),n=!rNt.test(r);if(e.options.forceShell||n){let o=nNt.test(r);e.command=X$t.normalize(e.command),e.command=tLe.command(e.command),e.args=e.args.map(a=>tLe.argument(a,o));let i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function sNt(e,r,n){r&&!Array.isArray(r)&&(n=r,r=null),r=r?r.slice(0):[],n=Object.assign({},n);let o={command:e,args:r,options:n,file:void 0,original:{command:e,args:r}};return n.shell?o:iNt(o)}var aNt=sNt,GQ=process.platform==="win32";function HQ(e,r){return Object.assign(new Error(`${r} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${r} ${e.command}`,path:e.command,spawnargs:e.args})}function cNt(e,r){if(!GQ)return;let n=e.emit;e.emit=function(o,i){if(o==="exit"){let a=a4e(i,r);if(a)return n.call(e,"error",a)}return n.apply(e,arguments)}}function a4e(e,r){return GQ&&e===1&&!r.file?HQ(r.original,"spawn"):null}function uNt(e,r){return GQ&&e===1&&!r.file?HQ(r.original,"spawnSync"):null}var lNt={hookChildProcess:cNt,verifyENOENT:a4e,verifyENOENTSync:uNt,notFoundError:HQ},c4e=VLe.default,WQ=aNt,VQ=lNt;function u4e(e,r,n){let o=WQ(e,r,n),i=c4e.spawn(o.command,o.args,o.options);return VQ.hookChildProcess(i,o),i}function pNt(e,r,n){let o=WQ(e,r,n),i=c4e.spawnSync(o.command,o.args,o.options);return i.error=i.error||VQ.verifyENOENTSync(i.status,o),i}ew.exports=u4e;ew.exports.spawn=u4e;ew.exports.sync=pNt;ew.exports._parse=WQ;ew.exports._enoent=VQ;var fNt=ew.exports,dNt=bA(fNt);function mNt(e){let r=typeof e=="string"?`
|
|
2537
2537
|
`:10,n=typeof e=="string"?"\r":13;return e[e.length-1]===r&&(e=e.slice(0,-1)),e[e.length-1]===n&&(e=e.slice(0,-1)),e}function l4e(e={}){let{env:r=process.env,platform:n=process.platform}=e;return n!=="win32"?"PATH":Object.keys(r).reverse().find(o=>o.toUpperCase()==="PATH")||"Path"}function hNt(e={}){let{cwd:r=Ei.default.cwd(),path:n=Ei.default.env[l4e()],execPath:o=Ei.default.execPath}=e,i,a=r instanceof URL?xA.default.fileURLToPath(r):r,c=ii.default.resolve(a),u=[];for(;i!==c;)u.push(ii.default.join(c,"node_modules/.bin")),i=c,c=ii.default.resolve(c,"..");return u.push(ii.default.resolve(a,o,"..")),[...u,n].join(ii.default.delimiter)}function gNt({env:e=Ei.default.env,...r}={}){e={...e};let n=l4e({env:e});return r.path=e[n],e[n]=hNt(r),e}var yNt=(e,r,n,o)=>{if(n==="length"||n==="prototype"||n==="arguments"||n==="caller")return;let i=Object.getOwnPropertyDescriptor(e,n),a=Object.getOwnPropertyDescriptor(r,n);!xNt(i,a)&&o||Object.defineProperty(e,n,a)},xNt=function(e,r){return e===void 0||e.configurable||e.writable===r.writable&&e.enumerable===r.enumerable&&e.configurable===r.configurable&&(e.writable||e.value===r.value)},bNt=(e,r)=>{let n=Object.getPrototypeOf(r);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},ENt=(e,r)=>`/* Wrapped ${e}*/
|
|
2538
2538
|
${r}`,vNt=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),SNt=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),wNt=(e,r,n)=>{let o=n===""?"":`with ${n.trim()}() `,i=ENt.bind(null,o,r.toString());Object.defineProperty(i,"name",SNt),Object.defineProperty(e,"toString",{...vNt,value:i})};function _Nt(e,r,{ignoreNonConfigurable:n=!1}={}){let{name:o}=e;for(let i of Reflect.ownKeys(r))yNt(e,r,i,n);return bNt(e,r),wNt(e,r,o),e}var I6=new WeakMap,p4e=(e,r={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let n,o=0,i=e.displayName||e.name||"<anonymous>",a=function(...c){if(I6.set(a,++o),o===1)n=e.apply(this,c),e=null;else if(r.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return n};return _Nt(a,e),I6.set(a,o),a};p4e.callCount=e=>{if(!I6.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return I6.get(e)};var TNt=()=>{let e=d4e-f4e+1;return Array.from({length:e},DNt)},DNt=(e,r)=>({name:`SIGRT${r+1}`,number:f4e+r,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),f4e=34,d4e=64,CNt=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],m4e=()=>{let e=TNt();return[...CNt,...e].map(ANt)},ANt=({name:e,number:r,description:n,action:o,forced:i=!1,standard:a})=>{let{signals:{[e]:c}}=XS.constants,u=c!==void 0;return{name:e,number:u?c:r,description:n,supported:u,action:o,forced:i,standard:a}},PNt=()=>{let e=m4e();return Object.fromEntries(e.map(ONt))},ONt=({name:e,number:r,description:n,supported:o,action:i,forced:a,standard:c})=>[e,{name:e,number:r,description:n,supported:o,action:i,forced:a,standard:c}],INt=PNt(),RNt=()=>{let e=m4e(),r=d4e+1,n=Array.from({length:r},(o,i)=>FNt(i,e));return Object.assign({},...n)},FNt=(e,r)=>{let n=MNt(e,r);if(n===void 0)return{};let{name:o,description:i,supported:a,action:c,forced:u,standard:l}=n;return{[e]:{name:o,number:e,description:i,supported:a,action:c,forced:u,standard:l}}},MNt=(e,r)=>{let n=r.find(({name:o})=>XS.constants.signals[o]===e);return n!==void 0?n:r.find(o=>o.number===e)};RNt();var kNt=({timedOut:e,timeout:r,errorCode:n,signal:o,signalDescription:i,exitCode:a,isCanceled:c})=>e?`timed out after ${r} milliseconds`:c?"was canceled":n!==void 0?`failed with ${n}`:o!==void 0?`was killed with ${o} (${i})`:a!==void 0?`failed with exit code ${a}`:"failed",rLe=({stdout:e,stderr:r,all:n,error:o,signal:i,exitCode:a,command:c,escapedCommand:u,timedOut:l,isCanceled:p,killed:f,parsed:{options:{timeout:g,cwd:x=Ei.default.cwd()}}})=>{a=a===null?void 0:a,i=i===null?void 0:i;let b=i===void 0?void 0:INt[i].description,E=o&&o.code,_=`Command ${kNt({timedOut:l,timeout:g,errorCode:E,signal:i,signalDescription:b,exitCode:a,isCanceled:p})}: ${c}`,D=Object.prototype.toString.call(o)==="[object Error]",O=D?`${_}
|
|
2539
2539
|
${o.message}`:_,C=[O,r,e].filter(Boolean).join(`
|
|
@@ -3968,7 +3968,7 @@ To learn more about how to rename models, check out https://pris.ly/d/naming-mod
|
|
|
3968
3968
|
`+" ".repeat(r)),new Array(pw).fill(0).map((e,r)=>"\r"+" ".repeat(r)),new Array(pw).fill(0).map((e,r)=>`\r
|
|
3969
3969
|
`+" ".repeat(r)),new Array(pw).fill(0).map((e,r)=>`
|
|
3970
3970
|
`+" ".repeat(r)),new Array(pw).fill(0).map((e,r)=>"\r"+" ".repeat(r)),new Array(pw).fill(0).map((e,r)=>`\r
|
|
3971
|
-
`+" ".repeat(r));var hL;(function(e){e.DEFAULT={allowTrailingComma:!1}})(hL||(hL={}));function _3e(e,r=[],n=hL.DEFAULT){let o=null,i=[],a=[];function c(u){Array.isArray(i)?i.push(u):o!==null&&(i[o]=u)}return Ve(c,"onValue"),T3e(e,{onObjectBegin:Ve(()=>{let u={};c(u),a.push(i),i=u,o=null},"onObjectBegin"),onObjectProperty:Ve(u=>{o=u},"onObjectProperty"),onObjectEnd:Ve(()=>{i=a.pop()},"onObjectEnd"),onArrayBegin:Ve(()=>{let u=[];c(u),a.push(i),i=u,o=null},"onArrayBegin"),onArrayEnd:Ve(()=>{i=a.pop()},"onArrayEnd"),onLiteralValue:c,onError:Ve((u,l,p)=>{r.push({error:u,offset:l,length:p})},"onError")},n),i[0]}Ve(_3e,"parse$1");function T3e(e,r,n=hL.DEFAULT){let o=w3e(e,!1),i=[];function a(Y){return Y?()=>Y(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter()):()=>!0}Ve(a,"toNoArgVisit");function c(Y){return Y?()=>Y(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter(),()=>i.slice()):()=>!0}Ve(c,"toNoArgVisitWithPath");function u(Y){return Y?V=>Y(V,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter()):()=>!0}Ve(u,"toOneArgVisit");function l(Y){return Y?V=>Y(V,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter(),()=>i.slice()):()=>!0}Ve(l,"toOneArgVisitWithPath");let p=c(r.onObjectBegin),f=l(r.onObjectProperty),g=a(r.onObjectEnd),x=c(r.onArrayBegin),b=a(r.onArrayEnd),E=l(r.onLiteralValue),S=u(r.onSeparator),_=a(r.onComment),D=u(r.onError),O=n&&n.disallowComments,C=n&&n.allowTrailingComma;function R(){for(;;){let Y=o.scan();switch(o.getTokenError()){case 4:I(14);break;case 5:I(15);break;case 3:I(13);break;case 1:O||I(11);break;case 2:I(12);break;case 6:I(16);break}switch(Y){case 12:case 13:O?I(10):_();break;case 16:I(1);break;case 15:case 14:break;default:return Y}}}Ve(R,"scanNext");function I(Y,V=[],Q=[]){if(D(Y),V.length+Q.length>0){let q=o.getToken();for(;q!==17;){if(V.indexOf(q)!==-1){R();break}else if(Q.indexOf(q)!==-1)break;q=R()}}}Ve(I,"handleError");function k(Y){let V=o.getTokenValue();return Y?E(V):(f(V),i.push(V)),R(),!0}Ve(k,"parseString");function j(){switch(o.getToken()){case 11:let Y=o.getTokenValue(),V=Number(Y);isNaN(V)&&(I(2),V=0),E(V);break;case 7:E(null);break;case 8:E(!0);break;case 9:E(!1);break;default:return!1}return R(),!0}Ve(j,"parseLiteral");function G(){return o.getToken()!==10?(I(3,[],[2,5]),!1):(k(!1),o.getToken()===6?(S(":"),R(),F()||I(4,[],[2,5])):I(5,[],[2,5]),i.pop(),!0)}Ve(G,"parseProperty");function L(){p(),R();let Y=!1;for(;o.getToken()!==2&&o.getToken()!==17;){if(o.getToken()===5){if(Y||I(4,[],[]),S(","),R(),o.getToken()===2&&C)break}else Y&&I(6,[],[]);G()||I(4,[],[2,5]),Y=!0}return g(),o.getToken()!==2?I(7,[2],[]):R(),!0}Ve(L,"parseObject");function H(){x(),R();let Y=!0,V=!1;for(;o.getToken()!==4&&o.getToken()!==17;){if(o.getToken()===5){if(V||I(4,[],[]),S(","),R(),o.getToken()===4&&C)break}else V&&I(6,[],[]);Y?(i.push(0),Y=!1):i[i.length-1]++,F()||I(4,[],[4,5]),V=!0}return b(),Y||i.pop(),o.getToken()!==4?I(8,[4],[]):R(),!0}Ve(H,"parseArray");function F(){switch(o.getToken()){case 3:return H();case 1:return L();case 10:return k(!0);default:return j()}}return Ve(F,"parseValue"),R(),o.getToken()===17?n.allowEmptyContent?!0:(I(4,[],[]),!1):F()?(o.getToken()!==17&&I(9,[],[]),!0):(I(4,[],[]),!1)}Ve(T3e,"visit");var f3e;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(f3e||(f3e={}));var d3e;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(d3e||(d3e={}));var J3t=_3e,m3e;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(m3e||(m3e={}));var D3e=Ve((e,r)=>J3t(K3t(r,e,"utf8")),"readJsonc"),FX=Symbol("implicitBaseUrl"),Og="${configDir}",Y3t=Ve(()=>{let{findPnpApi:e}=E3e.default;return e&&e(process.cwd())},"getPnpApi"),TX=Ve((e,r,n,o)=>{let i=`resolveFromPackageJsonPath:${e}:${r}:${n}`;if(o!=null&&o.has(i))return o.get(i);let a=D3e(e,o);if(!a)return;let c=r||"tsconfig.json";if(!n&&a.exports)try{let[u]=l3e(a.exports,r,["require","types"]);c=u}catch{return!1}else!r&&a.tsconfig&&(c=a.tsconfig);return c=cr.default.join(e,"..",c),o?.set(i,c),c},"resolveFromPackageJsonPath"),DX="package.json",CX="tsconfig.json",Z3t=Ve((e,r,n)=>{let o=e;if(e===".."&&(o=cr.default.join(o,CX)),e[0]==="."&&(o=cr.default.resolve(r,o)),cr.default.isAbsolute(o)){if(Hl(n,o)){if(lL(n,o).isFile())return o}else if(!o.endsWith(".json")){let b=`${o}.json`;if(Hl(n,b))return b}return}let[i,...a]=e.split("/"),c=i[0]==="@"?`${i}/${a.shift()}`:i,u=a.join("/"),l=Y3t();if(l){let{resolveRequest:b}=l;try{if(c===e){let E=b(cr.default.join(c,DX),r);if(E){let S=TX(E,u,!1,n);if(S&&Hl(n,S))return S}}else{let E;try{E=b(e,r,{extensions:[".json"]})}catch{E=b(cr.default.join(e,CX),r)}if(E)return E}}catch{}}let p=S3e(cr.default.resolve(r),cr.default.join("node_modules",c),n);if(!p||!lL(n,p).isDirectory())return;let f=cr.default.join(p,DX);if(Hl(n,f)){let b=TX(f,u,!1,n);if(b===!1)return;if(b&&Hl(n,b)&&lL(n,b).isFile())return b}let g=cr.default.join(p,u),x=g.endsWith(".json");if(!x){let b=`${g}.json`;if(Hl(n,b))return b}if(Hl(n,g)){if(lL(n,g).isDirectory()){let b=cr.default.join(g,DX);if(Hl(n,b)){let S=TX(b,"",!0,n);if(S&&Hl(n,S))return S}let E=cr.default.join(g,CX);if(Hl(n,E))return E}else if(x)return g}},"resolveExtendsPath"),MX=Ve((e,r)=>RX(cr.default.relative(e,r)),"pathRelative"),C3e=["files","include","exclude"],Q3t=Ve((e,r,n,o)=>{let i=Z3t(e,r,o);if(!i)throw new Error(`File '${e}' not found.`);if(n.has(i))throw new Error(`Circularity detected while resolving configuration: ${i}`);n.add(i);let a=cr.default.dirname(i),c=A3e(i,o,n);delete c.references;let{compilerOptions:u}=c;if(u){let{baseUrl:l}=u;l&&!l.startsWith(Og)&&(u.baseUrl=Wa(cr.default.relative(r,cr.default.join(a,l)))||"./");let{outDir:p}=u;p&&(p.startsWith(Og)||(p=cr.default.relative(r,cr.default.join(a,p))),u.outDir=Wa(p)||"./")}for(let l of C3e){let p=c[l];p&&(c[l]=p.map(f=>f.startsWith(Og)?f:Wa(cr.default.relative(r,cr.default.join(a,f)))))}return c},"resolveExtends"),X3t=["outDir","declarationDir"],A3e=Ve((e,r,n=new Set)=>{let o;try{o=D3e(e,r)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${e}`)}if(typeof o!="object")throw new SyntaxError(`Failed to parse tsconfig at: ${e}`);let i=cr.default.dirname(e);if(o.compilerOptions){let{compilerOptions:a}=o;a.paths&&!a.baseUrl&&(a[FX]=i)}if(o.extends){let a=Array.isArray(o.extends)?o.extends:[o.extends];delete o.extends;for(let c of a.reverse()){let u=Q3t(c,i,new Set(n),r),l={...u,...o,compilerOptions:{...u.compilerOptions,...o.compilerOptions}};u.watchOptions&&(l.watchOptions={...u.watchOptions,...o.watchOptions}),o=l}}if(o.compilerOptions){let{compilerOptions:a}=o,c=["baseUrl","rootDir"];for(let u of c){let l=a[u];if(l&&!l.startsWith(Og)){let p=cr.default.resolve(i,l),f=MX(i,p);a[u]=f}}for(let u of X3t){let l=a[u];l&&(Array.isArray(o.exclude)||(o.exclude=[]),o.exclude.includes(l)||o.exclude.push(l),l.startsWith(Og)||(l=RX(l)),a[u]=l)}}else o.compilerOptions={};if(o.include?(o.include=o.include.map(Wa),o.files&&delete o.files):o.files&&(o.files=o.files.map(a=>a.startsWith(Og)?a:RX(a))),o.watchOptions){let{watchOptions:a}=o;a.excludeDirectories&&(a.excludeDirectories=a.excludeDirectories.map(c=>Wa(cr.default.resolve(i,c))))}return o},"_parseTsconfig"),pL=Ve((e,r)=>{if(e.startsWith(Og))return Wa(cr.default.join(r,e.slice(Og.length)))},"interpolateConfigDir"),e8t=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],t8t=Ve(e=>{var r,n,o,i,a,c,u,l,p,f,g,x,b,E,S,_,D,O,C,R,I,k,j,G,L;if(e.strict){let H=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(let F of H)e[F]===void 0&&(e[F]=!0)}if(e.target){let H=e.target.toLowerCase();H==="es2015"&&(H="es6"),e.target=H,H==="esnext"&&((r=e.module)!=null||(e.module="es6"),(n=e.moduleResolution)!=null||(e.moduleResolution="classic"),(o=e.useDefineForClassFields)!=null||(e.useDefineForClassFields=!0)),(H==="es6"||H==="es2016"||H==="es2017"||H==="es2018"||H==="es2019"||H==="es2020"||H==="es2021"||H==="es2022"||H==="es2023"||H==="es2024")&&((i=e.module)!=null||(e.module="es6"),(a=e.moduleResolution)!=null||(e.moduleResolution="classic")),(H==="es2022"||H==="es2023"||H==="es2024")&&((c=e.useDefineForClassFields)!=null||(e.useDefineForClassFields=!0))}if(e.module){let H=e.module.toLowerCase();H==="es2015"&&(H="es6"),e.module=H,(H==="es6"||H==="es2020"||H==="es2022"||H==="esnext"||H==="none"||H==="system"||H==="umd"||H==="amd")&&((u=e.moduleResolution)!=null||(e.moduleResolution="classic")),H==="system"&&((l=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0)),(H==="node16"||H==="nodenext"||H==="preserve")&&((p=e.esModuleInterop)!=null||(e.esModuleInterop=!0),(f=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0)),(H==="node16"||H==="nodenext")&&((g=e.moduleDetection)!=null||(e.moduleDetection="force"),(x=e.useDefineForClassFields)!=null||(e.useDefineForClassFields=!0)),H==="node16"&&((b=e.target)!=null||(e.target="es2022"),(E=e.moduleResolution)!=null||(e.moduleResolution="node16")),H==="nodenext"&&((S=e.target)!=null||(e.target="esnext"),(_=e.moduleResolution)!=null||(e.moduleResolution="nodenext")),H==="preserve"&&((D=e.moduleResolution)!=null||(e.moduleResolution="bundler"))}if(e.moduleResolution){let H=e.moduleResolution.toLowerCase();H==="node"&&(H="node10"),e.moduleResolution=H,(H==="node16"||H==="nodenext"||H==="bundler")&&((O=e.resolvePackageJsonExports)!=null||(e.resolvePackageJsonExports=!0),(C=e.resolvePackageJsonImports)!=null||(e.resolvePackageJsonImports=!0)),H==="bundler"&&((R=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0),(I=e.resolveJsonModule)!=null||(e.resolveJsonModule=!0))}e.esModuleInterop&&((k=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0)),e.verbatimModuleSyntax&&((j=e.isolatedModules)!=null||(e.isolatedModules=!0),(G=e.preserveConstEnums)!=null||(e.preserveConstEnums=!0)),e.isolatedModules&&((L=e.preserveConstEnums)!=null||(e.preserveConstEnums=!0))},"normalizeCompilerOptions"),r8t=Ve((e,r=new Map)=>{let n=cr.default.resolve(e),o=A3e(n,r),i=cr.default.dirname(n),{compilerOptions:a}=o;if(a){for(let u of e8t){let l=a[u];if(l){let p=pL(l,i);a[u]=p?MX(i,p):l}}for(let u of["rootDirs","typeRoots"]){let l=a[u];l&&(a[u]=l.map(p=>{let f=pL(p,i);return f?MX(i,f):p}))}let{paths:c}=a;if(c)for(let u of Object.keys(c))c[u]=c[u].map(l=>{var p;return(p=pL(l,i))!=null?p:l});t8t(a)}for(let c of C3e){let u=o[c];u&&(o[c]=u.map(l=>{var p;return(p=pL(l,i))!=null?p:l}))}return o},"parseTsconfig"),gL=Ve((e=process.cwd(),r="tsconfig.json",n=new Map)=>{let o=S3e(Wa(e),r,n);if(!o)return null;let i=r8t(o,n);return{path:o,config:i}},"getTsconfig"),n8t=/\*/g,h3e=Ve((e,r)=>{let n=e.match(n8t);if(n&&n.length>1)throw new Error(r)},"assertStarCount"),o8t=Ve(e=>{if(e.includes("*")){let[r,n]=e.split("*");return{prefix:r,suffix:n}}return e},"parsePattern"),i8t=Ve(({prefix:e,suffix:r},n)=>n.startsWith(e)&&n.endsWith(r),"isPatternMatch"),s8t=Ve((e,r,n)=>Object.entries(e).map(([o,i])=>(h3e(o,`Pattern '${o}' can have at most one '*' character.`),{pattern:o8t(o),substitutions:i.map(a=>{if(h3e(a,`Substitution '${a}' in pattern '${o}' can have at most one '*' character.`),!r&&!$X.test(a))throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return cr.default.resolve(n,a)})})),"parsePaths"),D8r=Ve(e=>{let{compilerOptions:r}=e.config;if(!r)return null;let{baseUrl:n,paths:o}=r;if(!n&&!o)return null;let i=FX in r&&r[FX],a=cr.default.resolve(cr.default.dirname(e.path),n||i||"."),c=o?s8t(o,n,a):[];return u=>{if($X.test(u))return[];let l=[];for(let x of c){if(x.pattern===u)return x.substitutions.map(Wa);typeof x.pattern!="string"&&l.push(x)}let p,f=-1;for(let x of l)i8t(x.pattern,u)&&x.pattern.prefix.length>f&&(f=x.pattern.prefix.length,p=x);if(!p)return n?[Wa(cr.default.join(a,u))]:[];let g=u.slice(p.pattern.prefix.length,u.length-p.pattern.suffix.length);return p.substitutions.map(x=>Wa(x.replace("*",g)))}},"createPathsMatcher"),g3e=Ve(e=>{let r="";for(let n=0;n<e.length;n+=1){let o=e[n],i=o.toUpperCase();r+=o===i?o.toLowerCase():i}return r},"s"),a8t=65,c8t=97,u8t=Ve(()=>Math.floor(Math.random()*26),"m"),l8t=Ve(e=>Array.from({length:e},()=>String.fromCodePoint(u8t()+(Math.random()>.5?a8t:c8t))).join(""),"S"),p8t=Ve((e=v3e.default)=>{let r=process.execPath;if(e.existsSync(r))return!e.existsSync(g3e(r));let n=`/${l8t(10)}`;e.writeFileSync(n,"");let o=!e.existsSync(g3e(n));return e.unlinkSync(n),o},"l"),{join:fL}=cr.default.posix,AX={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},f8t=Ve(e=>{let r=[...AX.ts],n=[...AX.cts],o=[...AX.mts];return e!=null&&e.allowJs&&(r.push(".js",".jsx"),n.push(".cjs"),o.push(".mjs")),[...r,...n,...o]},"getSupportedExtensions"),d8t=Ve(e=>{let r=[];if(!e)return r;let{outDir:n,declarationDir:o}=e;return n&&r.push(n),o&&r.push(o),r},"getDefaultExcludeSpec"),y3e=Ve(e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),m8t=["node_modules","bower_components","jspm_packages"],PX=`(?!(${m8t.join("|")})(/|$))`,h8t=/(?:^|\/)[^.*?]+$/,x3e="**/*",dL="[^/]",OX="[^./]",b3e=process.platform==="win32",C8r=Ve(({config:e,path:r},n=p8t())=>{if("extends"in e)throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");if(!cr.default.isAbsolute(r))throw new Error("The tsconfig path must be absolute");b3e&&(r=Wa(r));let o=cr.default.dirname(r),{files:i,include:a,exclude:c,compilerOptions:u}=e,l=i?.map(E=>fL(o,E)),p=f8t(u),f=n?"":"i",g=(c||d8t(u)).map(E=>{let S=fL(o,E),_=y3e(S).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${dL}*`).replaceAll(String.raw`\?`,dL);return new RegExp(`^${_}($|/)`,f)}),x=i||a?a:[x3e],b=x?x.map(E=>{let S=fL(o,E);h8t.test(S)&&(S=fL(S,x3e));let _=y3e(S).replaceAll(String.raw`/\*\*`,`(/${PX}${OX}${dL}*)*?`).replaceAll(/(\/)?\\\*/g,(D,O)=>{let C=`(${OX}|(\\.(?!min\\.js$))?)*`;return O?`/${PX}${OX}${C}`:C}).replaceAll(/(\/)?\\\?/g,(D,O)=>{let C=dL;return O?`/${PX}${C}`:C});return new RegExp(`^${_}$`,f)}):void 0;return E=>{if(!cr.default.isAbsolute(E))throw new Error("filePath must be absolute");if(b3e&&(E=Wa(E)),l!=null&&l.includes(E)||!(!p.some(S=>E.endsWith(S))||g.some(S=>S.test(E)))&&b&&b.some(S=>S.test(E)))return e}},"createFilesMatcher");var NX="7.9.0";function y8t(e){switch(e.toLowerCase()){case"cjs":case"commonjs":return"cjs";case"esm":return"esm";default:throw new Error(`Invalid module format: "${e}", expected "esm" or "cjs"`)}}function P3e(e){if(typeof e=="string")return y8t(e);throw new Error(`Invalid module format: ${JSON.stringify(e)}, expected "esm" or "cjs"`)}function O3e({tsconfig:e,generatedFileExtension:r,importFileExtension:n}){return e?.compilerOptions?.module?x8t(e.compilerOptions.module):r==="cts"||n==="cjs"?"cjs":"esm"}function x8t(e){return e.toLowerCase()==="commonjs"?"cjs":"esm"}var b8t=["nodejs","deno","bun","workerd","cloudflare","vercel-edge","edge-light"];function E8t(e){switch(e.toLowerCase()){case"workerd":case"cloudflare":return"workerd";case"edge-light":case"vercel-edge":return"vercel-edge";case"nodejs":case"bun":return"nodejs";case"deno":return"deno";default:throw new Error(`Unknown target runtime: "${e}". The available options are: ${b8t.map(r=>`"${r}"`).join(", ")}`)}}function I3e(e){if(typeof e!="string")throw new Error(`Invalid target runtime: ${JSON.stringify(e)}. Expected a string.`);return E8t(e)}var v8t=`An output path is required for the \`prisma-client\` generator. Please provide an output path in your schema file:
|
|
3971
|
+
`+" ".repeat(r));var hL;(function(e){e.DEFAULT={allowTrailingComma:!1}})(hL||(hL={}));function _3e(e,r=[],n=hL.DEFAULT){let o=null,i=[],a=[];function c(u){Array.isArray(i)?i.push(u):o!==null&&(i[o]=u)}return Ve(c,"onValue"),T3e(e,{onObjectBegin:Ve(()=>{let u={};c(u),a.push(i),i=u,o=null},"onObjectBegin"),onObjectProperty:Ve(u=>{o=u},"onObjectProperty"),onObjectEnd:Ve(()=>{i=a.pop()},"onObjectEnd"),onArrayBegin:Ve(()=>{let u=[];c(u),a.push(i),i=u,o=null},"onArrayBegin"),onArrayEnd:Ve(()=>{i=a.pop()},"onArrayEnd"),onLiteralValue:c,onError:Ve((u,l,p)=>{r.push({error:u,offset:l,length:p})},"onError")},n),i[0]}Ve(_3e,"parse$1");function T3e(e,r,n=hL.DEFAULT){let o=w3e(e,!1),i=[];function a(Y){return Y?()=>Y(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter()):()=>!0}Ve(a,"toNoArgVisit");function c(Y){return Y?()=>Y(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter(),()=>i.slice()):()=>!0}Ve(c,"toNoArgVisitWithPath");function u(Y){return Y?V=>Y(V,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter()):()=>!0}Ve(u,"toOneArgVisit");function l(Y){return Y?V=>Y(V,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter(),()=>i.slice()):()=>!0}Ve(l,"toOneArgVisitWithPath");let p=c(r.onObjectBegin),f=l(r.onObjectProperty),g=a(r.onObjectEnd),x=c(r.onArrayBegin),b=a(r.onArrayEnd),E=l(r.onLiteralValue),S=u(r.onSeparator),_=a(r.onComment),D=u(r.onError),O=n&&n.disallowComments,C=n&&n.allowTrailingComma;function R(){for(;;){let Y=o.scan();switch(o.getTokenError()){case 4:I(14);break;case 5:I(15);break;case 3:I(13);break;case 1:O||I(11);break;case 2:I(12);break;case 6:I(16);break}switch(Y){case 12:case 13:O?I(10):_();break;case 16:I(1);break;case 15:case 14:break;default:return Y}}}Ve(R,"scanNext");function I(Y,V=[],Q=[]){if(D(Y),V.length+Q.length>0){let q=o.getToken();for(;q!==17;){if(V.indexOf(q)!==-1){R();break}else if(Q.indexOf(q)!==-1)break;q=R()}}}Ve(I,"handleError");function k(Y){let V=o.getTokenValue();return Y?E(V):(f(V),i.push(V)),R(),!0}Ve(k,"parseString");function j(){switch(o.getToken()){case 11:let Y=o.getTokenValue(),V=Number(Y);isNaN(V)&&(I(2),V=0),E(V);break;case 7:E(null);break;case 8:E(!0);break;case 9:E(!1);break;default:return!1}return R(),!0}Ve(j,"parseLiteral");function G(){return o.getToken()!==10?(I(3,[],[2,5]),!1):(k(!1),o.getToken()===6?(S(":"),R(),F()||I(4,[],[2,5])):I(5,[],[2,5]),i.pop(),!0)}Ve(G,"parseProperty");function L(){p(),R();let Y=!1;for(;o.getToken()!==2&&o.getToken()!==17;){if(o.getToken()===5){if(Y||I(4,[],[]),S(","),R(),o.getToken()===2&&C)break}else Y&&I(6,[],[]);G()||I(4,[],[2,5]),Y=!0}return g(),o.getToken()!==2?I(7,[2],[]):R(),!0}Ve(L,"parseObject");function H(){x(),R();let Y=!0,V=!1;for(;o.getToken()!==4&&o.getToken()!==17;){if(o.getToken()===5){if(V||I(4,[],[]),S(","),R(),o.getToken()===4&&C)break}else V&&I(6,[],[]);Y?(i.push(0),Y=!1):i[i.length-1]++,F()||I(4,[],[4,5]),V=!0}return b(),Y||i.pop(),o.getToken()!==4?I(8,[4],[]):R(),!0}Ve(H,"parseArray");function F(){switch(o.getToken()){case 3:return H();case 1:return L();case 10:return k(!0);default:return j()}}return Ve(F,"parseValue"),R(),o.getToken()===17?n.allowEmptyContent?!0:(I(4,[],[]),!1):F()?(o.getToken()!==17&&I(9,[],[]),!0):(I(4,[],[]),!1)}Ve(T3e,"visit");var f3e;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(f3e||(f3e={}));var d3e;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(d3e||(d3e={}));var J3t=_3e,m3e;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(m3e||(m3e={}));var D3e=Ve((e,r)=>J3t(K3t(r,e,"utf8")),"readJsonc"),FX=Symbol("implicitBaseUrl"),Og="${configDir}",Y3t=Ve(()=>{let{findPnpApi:e}=E3e.default;return e&&e(process.cwd())},"getPnpApi"),TX=Ve((e,r,n,o)=>{let i=`resolveFromPackageJsonPath:${e}:${r}:${n}`;if(o!=null&&o.has(i))return o.get(i);let a=D3e(e,o);if(!a)return;let c=r||"tsconfig.json";if(!n&&a.exports)try{let[u]=l3e(a.exports,r,["require","types"]);c=u}catch{return!1}else!r&&a.tsconfig&&(c=a.tsconfig);return c=cr.default.join(e,"..",c),o?.set(i,c),c},"resolveFromPackageJsonPath"),DX="package.json",CX="tsconfig.json",Z3t=Ve((e,r,n)=>{let o=e;if(e===".."&&(o=cr.default.join(o,CX)),e[0]==="."&&(o=cr.default.resolve(r,o)),cr.default.isAbsolute(o)){if(Hl(n,o)){if(lL(n,o).isFile())return o}else if(!o.endsWith(".json")){let b=`${o}.json`;if(Hl(n,b))return b}return}let[i,...a]=e.split("/"),c=i[0]==="@"?`${i}/${a.shift()}`:i,u=a.join("/"),l=Y3t();if(l){let{resolveRequest:b}=l;try{if(c===e){let E=b(cr.default.join(c,DX),r);if(E){let S=TX(E,u,!1,n);if(S&&Hl(n,S))return S}}else{let E;try{E=b(e,r,{extensions:[".json"]})}catch{E=b(cr.default.join(e,CX),r)}if(E)return E}}catch{}}let p=S3e(cr.default.resolve(r),cr.default.join("node_modules",c),n);if(!p||!lL(n,p).isDirectory())return;let f=cr.default.join(p,DX);if(Hl(n,f)){let b=TX(f,u,!1,n);if(b===!1)return;if(b&&Hl(n,b)&&lL(n,b).isFile())return b}let g=cr.default.join(p,u),x=g.endsWith(".json");if(!x){let b=`${g}.json`;if(Hl(n,b))return b}if(Hl(n,g)){if(lL(n,g).isDirectory()){let b=cr.default.join(g,DX);if(Hl(n,b)){let S=TX(b,"",!0,n);if(S&&Hl(n,S))return S}let E=cr.default.join(g,CX);if(Hl(n,E))return E}else if(x)return g}},"resolveExtendsPath"),MX=Ve((e,r)=>RX(cr.default.relative(e,r)),"pathRelative"),C3e=["files","include","exclude"],Q3t=Ve((e,r,n,o)=>{let i=Z3t(e,r,o);if(!i)throw new Error(`File '${e}' not found.`);if(n.has(i))throw new Error(`Circularity detected while resolving configuration: ${i}`);n.add(i);let a=cr.default.dirname(i),c=A3e(i,o,n);delete c.references;let{compilerOptions:u}=c;if(u){let{baseUrl:l}=u;l&&!l.startsWith(Og)&&(u.baseUrl=Wa(cr.default.relative(r,cr.default.join(a,l)))||"./");let{outDir:p}=u;p&&(p.startsWith(Og)||(p=cr.default.relative(r,cr.default.join(a,p))),u.outDir=Wa(p)||"./")}for(let l of C3e){let p=c[l];p&&(c[l]=p.map(f=>f.startsWith(Og)?f:Wa(cr.default.relative(r,cr.default.join(a,f)))))}return c},"resolveExtends"),X3t=["outDir","declarationDir"],A3e=Ve((e,r,n=new Set)=>{let o;try{o=D3e(e,r)||{}}catch{throw new Error(`Cannot resolve tsconfig at path: ${e}`)}if(typeof o!="object")throw new SyntaxError(`Failed to parse tsconfig at: ${e}`);let i=cr.default.dirname(e);if(o.compilerOptions){let{compilerOptions:a}=o;a.paths&&!a.baseUrl&&(a[FX]=i)}if(o.extends){let a=Array.isArray(o.extends)?o.extends:[o.extends];delete o.extends;for(let c of a.reverse()){let u=Q3t(c,i,new Set(n),r),l={...u,...o,compilerOptions:{...u.compilerOptions,...o.compilerOptions}};u.watchOptions&&(l.watchOptions={...u.watchOptions,...o.watchOptions}),o=l}}if(o.compilerOptions){let{compilerOptions:a}=o,c=["baseUrl","rootDir"];for(let u of c){let l=a[u];if(l&&!l.startsWith(Og)){let p=cr.default.resolve(i,l),f=MX(i,p);a[u]=f}}for(let u of X3t){let l=a[u];l&&(Array.isArray(o.exclude)||(o.exclude=[]),o.exclude.includes(l)||o.exclude.push(l),l.startsWith(Og)||(l=RX(l)),a[u]=l)}}else o.compilerOptions={};if(o.include?(o.include=o.include.map(Wa),o.files&&delete o.files):o.files&&(o.files=o.files.map(a=>a.startsWith(Og)?a:RX(a))),o.watchOptions){let{watchOptions:a}=o;a.excludeDirectories&&(a.excludeDirectories=a.excludeDirectories.map(c=>Wa(cr.default.resolve(i,c))))}return o},"_parseTsconfig"),pL=Ve((e,r)=>{if(e.startsWith(Og))return Wa(cr.default.join(r,e.slice(Og.length)))},"interpolateConfigDir"),e8t=["outDir","declarationDir","outFile","rootDir","baseUrl","tsBuildInfoFile"],t8t=Ve(e=>{var r,n,o,i,a,c,u,l,p,f,g,x,b,E,S,_,D,O,C,R,I,k,j,G,L;if(e.strict){let H=["noImplicitAny","noImplicitThis","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","strictBuiltinIteratorReturn","alwaysStrict","useUnknownInCatchVariables"];for(let F of H)e[F]===void 0&&(e[F]=!0)}if(e.target){let H=e.target.toLowerCase();H==="es2015"&&(H="es6"),e.target=H,H==="esnext"&&((r=e.module)!=null||(e.module="es6"),(n=e.moduleResolution)!=null||(e.moduleResolution="classic"),(o=e.useDefineForClassFields)!=null||(e.useDefineForClassFields=!0)),(H==="es6"||H==="es2016"||H==="es2017"||H==="es2018"||H==="es2019"||H==="es2020"||H==="es2021"||H==="es2022"||H==="es2023"||H==="es2024")&&((i=e.module)!=null||(e.module="es6"),(a=e.moduleResolution)!=null||(e.moduleResolution="classic")),(H==="es2022"||H==="es2023"||H==="es2024")&&((c=e.useDefineForClassFields)!=null||(e.useDefineForClassFields=!0))}if(e.module){let H=e.module.toLowerCase();H==="es2015"&&(H="es6"),e.module=H,(H==="es6"||H==="es2020"||H==="es2022"||H==="esnext"||H==="none"||H==="system"||H==="umd"||H==="amd")&&((u=e.moduleResolution)!=null||(e.moduleResolution="classic")),H==="system"&&((l=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0)),(H==="node16"||H==="nodenext"||H==="preserve")&&((p=e.esModuleInterop)!=null||(e.esModuleInterop=!0),(f=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0)),(H==="node16"||H==="nodenext")&&((g=e.moduleDetection)!=null||(e.moduleDetection="force"),(x=e.useDefineForClassFields)!=null||(e.useDefineForClassFields=!0)),H==="node16"&&((b=e.target)!=null||(e.target="es2022"),(E=e.moduleResolution)!=null||(e.moduleResolution="node16")),H==="nodenext"&&((S=e.target)!=null||(e.target="esnext"),(_=e.moduleResolution)!=null||(e.moduleResolution="nodenext")),H==="preserve"&&((D=e.moduleResolution)!=null||(e.moduleResolution="bundler"))}if(e.moduleResolution){let H=e.moduleResolution.toLowerCase();H==="node"&&(H="node10"),e.moduleResolution=H,(H==="node16"||H==="nodenext"||H==="bundler")&&((O=e.resolvePackageJsonExports)!=null||(e.resolvePackageJsonExports=!0),(C=e.resolvePackageJsonImports)!=null||(e.resolvePackageJsonImports=!0)),H==="bundler"&&((R=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0),(I=e.resolveJsonModule)!=null||(e.resolveJsonModule=!0))}e.esModuleInterop&&((k=e.allowSyntheticDefaultImports)!=null||(e.allowSyntheticDefaultImports=!0)),e.verbatimModuleSyntax&&((j=e.isolatedModules)!=null||(e.isolatedModules=!0),(G=e.preserveConstEnums)!=null||(e.preserveConstEnums=!0)),e.isolatedModules&&((L=e.preserveConstEnums)!=null||(e.preserveConstEnums=!0))},"normalizeCompilerOptions"),r8t=Ve((e,r=new Map)=>{let n=cr.default.resolve(e),o=A3e(n,r),i=cr.default.dirname(n),{compilerOptions:a}=o;if(a){for(let u of e8t){let l=a[u];if(l){let p=pL(l,i);a[u]=p?MX(i,p):l}}for(let u of["rootDirs","typeRoots"]){let l=a[u];l&&(a[u]=l.map(p=>{let f=pL(p,i);return f?MX(i,f):p}))}let{paths:c}=a;if(c)for(let u of Object.keys(c))c[u]=c[u].map(l=>{var p;return(p=pL(l,i))!=null?p:l});t8t(a)}for(let c of C3e){let u=o[c];u&&(o[c]=u.map(l=>{var p;return(p=pL(l,i))!=null?p:l}))}return o},"parseTsconfig"),gL=Ve((e=process.cwd(),r="tsconfig.json",n=new Map)=>{let o=S3e(Wa(e),r,n);if(!o)return null;let i=r8t(o,n);return{path:o,config:i}},"getTsconfig"),n8t=/\*/g,h3e=Ve((e,r)=>{let n=e.match(n8t);if(n&&n.length>1)throw new Error(r)},"assertStarCount"),o8t=Ve(e=>{if(e.includes("*")){let[r,n]=e.split("*");return{prefix:r,suffix:n}}return e},"parsePattern"),i8t=Ve(({prefix:e,suffix:r},n)=>n.startsWith(e)&&n.endsWith(r),"isPatternMatch"),s8t=Ve((e,r,n)=>Object.entries(e).map(([o,i])=>(h3e(o,`Pattern '${o}' can have at most one '*' character.`),{pattern:o8t(o),substitutions:i.map(a=>{if(h3e(a,`Substitution '${a}' in pattern '${o}' can have at most one '*' character.`),!r&&!$X.test(a))throw new Error("Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?");return cr.default.resolve(n,a)})})),"parsePaths"),D8r=Ve(e=>{let{compilerOptions:r}=e.config;if(!r)return null;let{baseUrl:n,paths:o}=r;if(!n&&!o)return null;let i=FX in r&&r[FX],a=cr.default.resolve(cr.default.dirname(e.path),n||i||"."),c=o?s8t(o,n,a):[];return u=>{if($X.test(u))return[];let l=[];for(let x of c){if(x.pattern===u)return x.substitutions.map(Wa);typeof x.pattern!="string"&&l.push(x)}let p,f=-1;for(let x of l)i8t(x.pattern,u)&&x.pattern.prefix.length>f&&(f=x.pattern.prefix.length,p=x);if(!p)return n?[Wa(cr.default.join(a,u))]:[];let g=u.slice(p.pattern.prefix.length,u.length-p.pattern.suffix.length);return p.substitutions.map(x=>Wa(x.replace("*",g)))}},"createPathsMatcher"),g3e=Ve(e=>{let r="";for(let n=0;n<e.length;n+=1){let o=e[n],i=o.toUpperCase();r+=o===i?o.toLowerCase():i}return r},"s"),a8t=65,c8t=97,u8t=Ve(()=>Math.floor(Math.random()*26),"m"),l8t=Ve(e=>Array.from({length:e},()=>String.fromCodePoint(u8t()+(Math.random()>.5?a8t:c8t))).join(""),"S"),p8t=Ve((e=v3e.default)=>{let r=process.execPath;if(e.existsSync(r))return!e.existsSync(g3e(r));let n=`/${l8t(10)}`;e.writeFileSync(n,"");let o=!e.existsSync(g3e(n));return e.unlinkSync(n),o},"l"),{join:fL}=cr.default.posix,AX={ts:[".ts",".tsx",".d.ts"],cts:[".cts",".d.cts"],mts:[".mts",".d.mts"]},f8t=Ve(e=>{let r=[...AX.ts],n=[...AX.cts],o=[...AX.mts];return e!=null&&e.allowJs&&(r.push(".js",".jsx"),n.push(".cjs"),o.push(".mjs")),[...r,...n,...o]},"getSupportedExtensions"),d8t=Ve(e=>{let r=[];if(!e)return r;let{outDir:n,declarationDir:o}=e;return n&&r.push(n),o&&r.push(o),r},"getDefaultExcludeSpec"),y3e=Ve(e=>e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),"escapeForRegexp"),m8t=["node_modules","bower_components","jspm_packages"],PX=`(?!(${m8t.join("|")})(/|$))`,h8t=/(?:^|\/)[^.*?]+$/,x3e="**/*",dL="[^/]",OX="[^./]",b3e=process.platform==="win32",C8r=Ve(({config:e,path:r},n=p8t())=>{if("extends"in e)throw new Error("tsconfig#extends must be resolved. Use getTsconfig or parseTsconfig to resolve it.");if(!cr.default.isAbsolute(r))throw new Error("The tsconfig path must be absolute");b3e&&(r=Wa(r));let o=cr.default.dirname(r),{files:i,include:a,exclude:c,compilerOptions:u}=e,l=i?.map(E=>fL(o,E)),p=f8t(u),f=n?"":"i",g=(c||d8t(u)).map(E=>{let S=fL(o,E),_=y3e(S).replaceAll(String.raw`\*\*/`,"(.+/)?").replaceAll(String.raw`\*`,`${dL}*`).replaceAll(String.raw`\?`,dL);return new RegExp(`^${_}($|/)`,f)}),x=i||a?a:[x3e],b=x?x.map(E=>{let S=fL(o,E);h8t.test(S)&&(S=fL(S,x3e));let _=y3e(S).replaceAll(String.raw`/\*\*`,`(/${PX}${OX}${dL}*)*?`).replaceAll(/(\/)?\\\*/g,(D,O)=>{let C=`(${OX}|(\\.(?!min\\.js$))?)*`;return O?`/${PX}${OX}${C}`:C}).replaceAll(/(\/)?\\\?/g,(D,O)=>{let C=dL;return O?`/${PX}${C}`:C});return new RegExp(`^${_}$`,f)}):void 0;return E=>{if(!cr.default.isAbsolute(E))throw new Error("filePath must be absolute");if(b3e&&(E=Wa(E)),l!=null&&l.includes(E)||!(!p.some(S=>E.endsWith(S))||g.some(S=>S.test(E)))&&b&&b.some(S=>S.test(E)))return e}},"createFilesMatcher");var NX="7.9.1";function y8t(e){switch(e.toLowerCase()){case"cjs":case"commonjs":return"cjs";case"esm":return"esm";default:throw new Error(`Invalid module format: "${e}", expected "esm" or "cjs"`)}}function P3e(e){if(typeof e=="string")return y8t(e);throw new Error(`Invalid module format: ${JSON.stringify(e)}, expected "esm" or "cjs"`)}function O3e({tsconfig:e,generatedFileExtension:r,importFileExtension:n}){return e?.compilerOptions?.module?x8t(e.compilerOptions.module):r==="cts"||n==="cjs"?"cjs":"esm"}function x8t(e){return e.toLowerCase()==="commonjs"?"cjs":"esm"}var b8t=["nodejs","deno","bun","workerd","cloudflare","vercel-edge","edge-light"];function E8t(e){switch(e.toLowerCase()){case"workerd":case"cloudflare":return"workerd";case"edge-light":case"vercel-edge":return"vercel-edge";case"nodejs":case"bun":return"nodejs";case"deno":return"deno";default:throw new Error(`Unknown target runtime: "${e}". The available options are: ${b8t.map(r=>`"${r}"`).join(", ")}`)}}function I3e(e){if(typeof e!="string")throw new Error(`Invalid target runtime: ${JSON.stringify(e)}. Expected a string.`);return E8t(e)}var v8t=`An output path is required for the \`prisma-client\` generator. Please provide an output path in your schema file:
|
|
3972
3972
|
|
|
3973
3973
|
${te(`generator client {
|
|
3974
3974
|
provider = "prisma-client"`)}
|