prisma 6.5.0-dev.56 → 6.5.0-dev.57
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/build/index.js +7 -7
- package/package.json +12 -12
- package/prisma-client/generator-build/index.js +10 -10
- package/prisma-client/package.json +4 -4
- package/prisma-client/runtime/binary.js +3 -3
- package/prisma-client/runtime/client.js +4 -4
- package/prisma-client/runtime/edge-esm.js +3 -3
- package/prisma-client/runtime/edge.js +3 -3
- package/prisma-client/runtime/library.js +3 -3
- package/prisma-client/runtime/react-native.js +2 -2
- package/prisma-client/scripts/default-index.js +3 -3
package/build/index.js
CHANGED
|
@@ -50,7 +50,7 @@ See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof Jo))r
|
|
|
50
50
|
`+Inr(n,4),super(n),this.name="AggregateError",Object.defineProperty(this,"_errors",{value:r})}*[Symbol.iterator](){for(let r of this._errors)yield r}};NHe.exports=xse});var P$=C((vqn,$He)=>{"use strict";var Rnr=LHe();$He.exports=async(e,r,{concurrency:n=1/0,stopOnError:i=!0}={})=>new Promise((o,a)=>{if(typeof r!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(n)||n===1/0)&&n>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${n}\` (${typeof n})`);let c=[],u=[],l=e[Symbol.iterator](),p=!1,f=!1,g=0,x=0,b=()=>{if(p)return;let v=l.next(),S=x;if(x++,v.done){f=!0,g===0&&(!i&&u.length!==0?a(new Rnr(u)):o(c));return}g++,(async()=>{try{let T=await v.value;c[S]=await r(T,S),g--,b()}catch(T){i?(p=!0,a(T)):(u.push(T),g--,b())}})()};for(let v=0;v<n&&(b(),!f);v++);})});var GHe=C((Eqn,yse)=>{"use strict";var{promisify:knr}=require("util"),BHe=require("path"),qHe=SI(),Mnr=k5(),Nnr=Poe(),Cl=MWe(),Lnr=LWe(),$nr=BWe(),jHe=I$(),Bnr=P$(),qnr=knr(jHe),UHe={glob:!1,unlink:Cl.unlink,unlinkSync:Cl.unlinkSync,chmod:Cl.chmod,chmodSync:Cl.chmodSync,stat:Cl.stat,statSync:Cl.statSync,lstat:Cl.lstat,lstatSync:Cl.lstatSync,rmdir:Cl.rmdir,rmdirSync:Cl.rmdirSync,readdir:Cl.readdir,readdirSync:Cl.readdirSync};function WHe(e,r){if(Lnr(e))throw new Error("Cannot delete the current working directory. Can be overridden with the `force` option.");if(!$nr(e,r))throw new Error("Cannot delete files/directories outside the current working directory. Can be overridden with the `force` option.")}function HHe(e){return e=Array.isArray(e)?e:[e],e=e.map(r=>process.platform==="win32"&&Mnr(r)===!1?Nnr(r):r),e}yse.exports=async(e,{force:r,dryRun:n,cwd:i=process.cwd(),onProgress:o=()=>{},...a}={})=>{a={expandDirectories:!1,onlyFiles:!1,followSymbolicLinks:!1,cwd:i,...a},e=HHe(e);let c=(await qHe(e,a)).sort((f,g)=>g.localeCompare(f));c.length===0&&o({totalCount:0,deletedCount:0,percent:1});let u=0,p=await Bnr(c,async f=>(f=BHe.resolve(i,f),r||WHe(f,i),n||await qnr(f,UHe),u+=1,o({totalCount:c.length,deletedCount:u,percent:u/c.length}),f),a);return p.sort((f,g)=>f.localeCompare(g)),p};yse.exports.sync=(e,{force:r,dryRun:n,cwd:i=process.cwd(),...o}={})=>{o={expandDirectories:!1,onlyFiles:!1,followSymbolicLinks:!1,cwd:i,...o},e=HHe(e);let c=qHe.sync(e,o).sort((u,l)=>l.localeCompare(u)).map(u=>(u=BHe.resolve(i,u),r||WHe(u,i),n||jHe.sync(u,UHe),u));return c.sort((u,l)=>u.localeCompare(l)),c}});var YHe=C((wqn,uc)=>{"use strict";var F$=require("fs"),zHe=require("path"),jnr=o9e(),VHe=P5(),Unr=O8(),Wnr=GHe(),Hnr=require("stream"),{promisify:Gnr}=require("util"),znr=Gnr(Hnr.pipeline),{writeFile:Vnr}=F$.promises,KHe=(e="")=>zHe.join(VHe,e+jnr()),Knr=async(e,r)=>znr(r,F$.createWriteStream(e)),bse=(e,{extraArguments:r=0}={})=>async(...n)=>{let[i,o]=n.slice(r),a=await e(...n.slice(0,r),o);try{return await i(a)}finally{await Wnr(a,{force:!0})}};uc.exports.file=e=>{if(e={...e},e.name){if(e.extension!==void 0&&e.extension!==null)throw new Error("The `name` and `extension` options are mutually exclusive");return zHe.join(uc.exports.directory(),e.name)}return KHe()+(e.extension===void 0||e.extension===null?"":"."+e.extension.replace(/^\./,""))};uc.exports.file.task=bse(uc.exports.file);uc.exports.directory=({prefix:e=""}={})=>{let r=KHe(e);return F$.mkdirSync(r),r};uc.exports.directory.task=bse(uc.exports.directory);uc.exports.write=async(e,r)=>{let n=uc.exports.file(r);return await(Unr(e)?Knr:Vnr)(n,e),n};uc.exports.write.task=bse(uc.exports.write,{extraArguments:1});uc.exports.writeSync=(e,r)=>{let n=uc.exports.file(r);return F$.writeFileSync(n,e),n};Object.defineProperty(uc.exports,"root",{get(){return VHe}})});var JHe=D(()=>{"use strict"});var Dl=D(()=>{"use strict";s$e();a$e();c$e();E$e();P$e();JHe()});function FI(e){return e}function Tl(e,r,n,i,o,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 i(n(r(e.apply(this,arguments))))};case 5:return function(){return o(i(n(r(e.apply(this,arguments)))))};case 6:return function(){return a(o(i(n(r(e.apply(this,arguments))))))};case 7:return function(){return c(a(o(i(n(r(e.apply(this,arguments)))))))};case 8:return function(){return u(c(a(o(i(n(r(e.apply(this,arguments))))))))};case 9:return function(){return l(u(c(a(o(i(n(r(e.apply(this,arguments)))))))))}}}function $c(e,r,n,i,o,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 i(n(r(e)));case 5:return o(i(n(r(e))));case 6:return a(o(i(n(r(e)))));case 7:return c(a(o(i(n(r(e))))));case 8:return u(c(a(o(i(n(r(e)))))));case 9:return l(u(c(a(o(i(n(r(e))))))));default:{for(var p=arguments[0],f=1;f<arguments.length;f++)p=arguments[f](p);return p}}}var Ynr,Un,md=D(()=>{"use strict";Ynr=function(e,r,n){if(n||arguments.length===2)for(var i=0,o=r.length,a;i<o;i++)(a||!(i in r))&&(a||(a=Array.prototype.slice.call(r,0,i)),a[i]=r[i]);return e.concat(a||Array.prototype.slice.call(r))};Un=function(e,r){var n=typeof e=="number"?function(i){return i.length>=e}:e;return function(){var i=Array.from(arguments);return n(arguments)?r.apply(this,i):function(o){return r.apply(void 0,Ynr([o],i,!1))}}}});var QHe,ZHe,XHe,vse,eGe,R$,k$,Ese,RI=D(()=>{"use strict";md();QHe=function(e){return e._tag==="Some"},ZHe={_tag:"None"},XHe=function(e){return{_tag:"Some",value:e}},vse=function(e){return e._tag==="Left"},eGe=function(e){return e._tag==="Right"},R$=function(e){return{_tag:"Left",left:e}},k$=function(e){return{_tag:"Right",right:e}},Ese=function(e,r){return Un(2,function(n,i){return r.flatMap(n,function(o){return e.fromIO(i(o))})})}});function tGe(e,r){return function(n){return function(i){return e.ap(e.map(i,function(o){return function(a){return r.ap(o,a)}}),n)}}}var rGe=D(()=>{"use strict"});function nGe(e,r){return function(n){return function(i){return e.map(i,function(o){return r.map(o,n)})}}}function pm(e){return function(r,n){return e.map(r,function(){return n})}}function V0(e){var r=pm(e);return function(n){return r(n,void 0)}}var o_=D(()=>{"use strict"});function Bc(e){return function(r,n){return e.chain(r,function(i){return e.map(n(i),function(){return i})})}}var K0=D(()=>{"use strict"});function wse(e){return function(r){return Tl(r,e.fromEither)}}function L$(e,r){var n=wse(e),i=Bc(r);return function(o,a){return i(o,n(a))}}var Sse=D(()=>{"use strict";K0();md()});var Iv,fm,iGe,Fse,oGe,$$,Pv,B$,qqn,jqn,eir,tir,sGe,rir,aGe,cGe,nir,qc,Wp,uGe,Uqn,Wqn,Al,kI,Y0=D(()=>{"use strict";K0();md();o_();RI();Iv=R$,fm=k$,iGe=Un(2,function(e,r){return qc(e)?e:r(e.right)}),Fse=function(e,r){return $c(e,Pv(r))},oGe=function(e,r){return $c(e,tir(r))},$$="Either",Pv=function(e){return function(r){return qc(r)?r:fm(e(r.right))}},B$={URI:$$,map:Fse},qqn=Un(2,pm(B$)),jqn=V0(B$),eir=function(e){return function(r){return qc(r)?r:qc(e)?e:fm(r.right(e.right))}},tir=eir,sGe={URI:$$,map:Fse,ap:oGe},rir={URI:$$,map:Fse,ap:oGe,chain:iGe},aGe=function(e,r){return function(n){return qc(n)?Iv(e(n.left)):fm(r(n.right))}},cGe=function(e){return function(r){return qc(r)?Iv(e(r.left)):r}},nir={URI:$$,fromEither:FI},qc=vse,Wp=eGe,uGe=function(e){return function(r){return qc(r)?e(r.left):r.right}},Uqn=Un(2,Bc(rir)),Wqn={fromEither:nir.fromEither},Al=function(e,r){try{return fm(e())}catch(n){return Iv(r(n))}},kI=iGe});var Rn=C(Dt=>{"use strict";var iir=Dt&&Dt.__spreadArray||function(e,r,n){if(n||arguments.length===2)for(var i=0,o=r.length,a;i<o;i++)(a||!(i in r))&&(a||(a=Array.prototype.slice.call(r,0,i)),a[i]=r[i]);return e.concat(a||Array.prototype.slice.call(r))};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.dual=Dt.getEndomorphismMonoid=Dt.SK=Dt.hole=Dt.constVoid=Dt.constUndefined=Dt.constNull=Dt.constFalse=Dt.constTrue=Dt.unsafeCoerce=Dt.apply=Dt.getRing=Dt.getSemiring=Dt.getMonoid=Dt.getSemigroup=Dt.getBooleanAlgebra=void 0;Dt.identity=Rse;Dt.constant=MI;Dt.flip=pir;Dt.flow=lGe;Dt.tuple=fir;Dt.increment=hir;Dt.decrement=mir;Dt.absurd=pGe;Dt.tupled=gir;Dt.untupled=xir;Dt.pipe=yir;Dt.not=vir;var oir=function(e){return function(){return{meet:function(r,n){return function(i){return e.meet(r(i),n(i))}},join:function(r,n){return function(i){return e.join(r(i),n(i))}},zero:function(){return e.zero},one:function(){return e.one},implies:function(r,n){return function(i){return e.implies(r(i),n(i))}},not:function(r){return function(n){return e.not(r(n))}}}}};Dt.getBooleanAlgebra=oir;var sir=function(e){return function(){return{concat:function(r,n){return function(i){return e.concat(r(i),n(i))}}}}};Dt.getSemigroup=sir;var air=function(e){var r=(0,Dt.getSemigroup)(e);return function(){return{concat:r().concat,empty:function(){return e.empty}}}};Dt.getMonoid=air;var cir=function(e){return{add:function(r,n){return function(i){return e.add(r(i),n(i))}},zero:function(){return e.zero},mul:function(r,n){return function(i){return e.mul(r(i),n(i))}},one:function(){return e.one}}};Dt.getSemiring=cir;var uir=function(e){var r=(0,Dt.getSemiring)(e);return{add:r.add,mul:r.mul,one:r.one,zero:r.zero,sub:function(n,i){return function(o){return e.sub(n(o),i(o))}}}};Dt.getRing=uir;var lir=function(e){return function(r){return r(e)}};Dt.apply=lir;function Rse(e){return e}Dt.unsafeCoerce=Rse;function MI(e){return function(){return e}}Dt.constTrue=MI(!0);Dt.constFalse=MI(!1);Dt.constNull=MI(null);Dt.constUndefined=MI(void 0);Dt.constVoid=Dt.constUndefined;function pir(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(i){return e(i)(r[0])}}}function lGe(e,r,n,i,o,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 i(n(r(e.apply(this,arguments))))};case 5:return function(){return o(i(n(r(e.apply(this,arguments)))))};case 6:return function(){return a(o(i(n(r(e.apply(this,arguments))))))};case 7:return function(){return c(a(o(i(n(r(e.apply(this,arguments)))))))};case 8:return function(){return u(c(a(o(i(n(r(e.apply(this,arguments))))))))};case 9:return function(){return l(u(c(a(o(i(n(r(e.apply(this,arguments)))))))))}}}function fir(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return e}function hir(e){return e+1}function mir(e){return e-1}function pGe(e){throw new Error("Called `absurd` function which should be uncallable")}function gir(e){return function(r){return e.apply(void 0,r)}}function xir(e){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e(r)}}function yir(e,r,n,i,o,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 i(n(r(e)));case 5:return o(i(n(r(e))));case 6:return a(o(i(n(r(e)))));case 7:return c(a(o(i(n(r(e))))));case 8:return u(c(a(o(i(n(r(e)))))));case 9:return l(u(c(a(o(i(n(r(e))))))));default:{for(var p=arguments[0],f=1;f<arguments.length;f++)p=arguments[f](p);return p}}}Dt.hole=pGe;var bir=function(e,r){return r};Dt.SK=bir;function vir(e){return function(r){return!e(r)}}var Eir=function(){return{concat:function(e,r){return lGe(e,r)},empty:Rse}};Dt.getEndomorphismMonoid=Eir;var wir=function(e,r){var n=typeof e=="number"?function(i){return i.length>=e}:e;return function(){var i=Array.from(arguments);return n(arguments)?r.apply(this,i):function(o){return r.apply(void 0,iir([o],i,!1))}}};Dt.dual=wir});function kse(e){return e.__typename==="RustPanic"}function J0(e){return e.name==="RuntimeError"}function Ol(e){let r=globalThis.PRISMA_WASM_PANIC_REGISTRY.get(),n=[r,...(e.stack||"NO_BACKTRACE").split(`
|
|
51
51
|
`).slice(1)].join(`
|
|
52
52
|
`);return{message:r,stack:n}}var bs,Q0=D(()=>{"use strict";bs=class extends Error{constructor(n,i,o,a,c,u,l){super(n);O(this,"__typename","RustPanic");O(this,"request");O(this,"rustStack");O(this,"area");O(this,"schemaPath");O(this,"schema");O(this,"introspectionUrl");this.name="RustPanic",this.rustStack=i,this.request=o,this.area=a,this.schemaPath=c,this.schema=u,this.introspectionUrl=l}}});function q$(e){if(!(typeof e>"u"))return typeof e=="string"?[["schema.prisma",e]]:e}function Z0(e){return e.map(([r])=>r).join(`,
|
|
53
|
-
`)}var Rv=D(()=>{"use strict"});var Mse=C((Kqn,Vi)=>{"use strict";var fGe={};fGe.__wbindgen_placeholder__=Vi.exports;var Ye,{TextDecoder:Sir,TextEncoder:_ir}=require("util"),dGe=new Sir("utf-8",{ignoreBOM:!0,fatal:!0});dGe.decode();var j$=null;function U$(){return(j$===null||j$.byteLength===0)&&(j$=new Uint8Array(Ye.memory.buffer)),j$}function Fa(e,r){return e=e>>>0,dGe.decode(U$().subarray(e,e+r))}var wo=0,W$=new _ir("utf-8"),Cir=typeof W$.encodeInto=="function"?function(e,r){return W$.encodeInto(e,r)}:function(e,r){let n=W$.encode(e);return r.set(n),{read:e.length,written:n.length}};function vs(e,r,n){if(n===void 0){let u=W$.encode(e),l=r(u.length,1)>>>0;return U$().subarray(l,l+u.length).set(u),wo=u.length,l}let i=e.length,o=r(i,1)>>>0,a=U$(),c=0;for(;c<i;c++){let u=e.charCodeAt(c);if(u>127)break;a[o+c]=u}if(c!==i){c!==0&&(e=e.slice(c)),o=n(o,i,i=c+e.length*3,1)>>>0;let u=U$().subarray(o+c,o+i),l=Cir(e,u);c+=l.written,o=n(o,i,c,1)>>>0}return wo=c,o}Vi.exports.format=function(e,r){let n,i;try{let o=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),a=wo,c=vs(r,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),u=wo,l=Ye.format(o,a,c,u);return n=l[0],i=l[1],Fa(l[0],l[1])}finally{Ye.__wbindgen_free(n,i,1)}};Vi.exports.get_config=function(e){let r,n;try{let i=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),o=wo,a=Ye.get_config(i,o);return r=a[0],n=a[1],Fa(a[0],a[1])}finally{Ye.__wbindgen_free(r,n,1)}};function H$(e){let r=Ye.__wbindgen_export_0.get(e);return Ye.__externref_table_dealloc(e),r}Vi.exports.get_dmmf=function(e){let r,n;try{let a=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),c=wo,u=Ye.get_dmmf(a,c);var i=u[0],o=u[1];if(u[3])throw i=0,o=0,H$(u[2]);return r=i,n=o,Fa(i,o)}finally{Ye.__wbindgen_free(r,n,1)}};Vi.exports.get_datamodel=function(e){let r,n;try{let a=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),c=wo,u=Ye.get_datamodel(a,c);var i=u[0],o=u[1];if(u[3])throw i=0,o=0,H$(u[2]);return r=i,n=o,Fa(i,o)}finally{Ye.__wbindgen_free(r,n,1)}};Vi.exports.lint=function(e){let r,n;try{let i=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),o=wo,a=Ye.lint(i,o);return r=a[0],n=a[1],Fa(a[0],a[1])}finally{Ye.__wbindgen_free(r,n,1)}};Vi.exports.validate=function(e){let r=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),n=wo,i=Ye.validate(r,n);if(i[1])throw H$(i[0])};Vi.exports.merge_schemas=function(e){let r,n;try{let a=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),c=wo,u=Ye.merge_schemas(a,c);var i=u[0],o=u[1];if(u[3])throw i=0,o=0,H$(u[2]);return r=i,n=o,Fa(i,o)}finally{Ye.__wbindgen_free(r,n,1)}};Vi.exports.native_types=function(e){let r,n;try{let i=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),o=wo,a=Ye.native_types(i,o);return r=a[0],n=a[1],Fa(a[0],a[1])}finally{Ye.__wbindgen_free(r,n,1)}};Vi.exports.referential_actions=function(e){let r,n;try{let i=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),o=wo,a=Ye.referential_actions(i,o);return r=a[0],n=a[1],Fa(a[0],a[1])}finally{Ye.__wbindgen_free(r,n,1)}};Vi.exports.preview_features=function(){let e,r;try{let n=Ye.preview_features();return e=n[0],r=n[1],Fa(n[0],n[1])}finally{Ye.__wbindgen_free(e,r,1)}};Vi.exports.text_document_completion=function(e,r){let n,i;try{let o=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),a=wo,c=vs(r,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),u=wo,l=Ye.text_document_completion(o,a,c,u);return n=l[0],i=l[1],Fa(l[0],l[1])}finally{Ye.__wbindgen_free(n,i,1)}};Vi.exports.code_actions=function(e,r){let n,i;try{let o=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),a=wo,c=vs(r,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),u=wo,l=Ye.code_actions(o,a,c,u);return n=l[0],i=l[1],Fa(l[0],l[1])}finally{Ye.__wbindgen_free(n,i,1)}};Vi.exports.references=function(e,r){let n,i;try{let o=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),a=wo,c=vs(r,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),u=wo,l=Ye.references(o,a,c,u);return n=l[0],i=l[1],Fa(l[0],l[1])}finally{Ye.__wbindgen_free(n,i,1)}};Vi.exports.hover=function(e,r){let n,i;try{let o=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),a=wo,c=vs(r,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),u=wo,l=Ye.hover(o,a,c,u);return n=l[0],i=l[1],Fa(l[0],l[1])}finally{Ye.__wbindgen_free(n,i,1)}};Vi.exports.debug_panic=function(){Ye.debug_panic()};Vi.exports.__wbg_setmessage_f22ac4a6869ee695=function(e,r){global.PRISMA_WASM_PANIC_REGISTRY.set_message(Fa(e,r))};Vi.exports.__wbindgen_error_new=function(e,r){return new Error(Fa(e,r))};Vi.exports.__wbindgen_init_externref_table=function(){let e=Ye.__wbindgen_export_0,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)};Vi.exports.__wbindgen_throw=function(e,r){throw new Error(Fa(e,r))};var Dir=require("path").join(__dirname,"prisma_schema_build_bg.wasm"),Tir=require("fs").readFileSync(Dir),Air=new WebAssembly.Module(Tir),Oir=new WebAssembly.Instance(Air,fGe);Ye=Oir.exports;Vi.exports.__wasm=Ye;Ye.__wbindgen_start()});var G$,hGe=D(()=>{"use strict";G$=class{constructor(){O(this,"message","")}get(){return`${this.message}`}set_message(r){this.message=`RuntimeError: ${r}`}}});var Nse=C((Qqn,Iir)=>{Iir.exports={name:"@prisma/internals",version:"6.5.0-dev.
|
|
53
|
+
`)}var Rv=D(()=>{"use strict"});var Mse=C((Kqn,Vi)=>{"use strict";var fGe={};fGe.__wbindgen_placeholder__=Vi.exports;var Ye,{TextDecoder:Sir,TextEncoder:_ir}=require("util"),dGe=new Sir("utf-8",{ignoreBOM:!0,fatal:!0});dGe.decode();var j$=null;function U$(){return(j$===null||j$.byteLength===0)&&(j$=new Uint8Array(Ye.memory.buffer)),j$}function Fa(e,r){return e=e>>>0,dGe.decode(U$().subarray(e,e+r))}var wo=0,W$=new _ir("utf-8"),Cir=typeof W$.encodeInto=="function"?function(e,r){return W$.encodeInto(e,r)}:function(e,r){let n=W$.encode(e);return r.set(n),{read:e.length,written:n.length}};function vs(e,r,n){if(n===void 0){let u=W$.encode(e),l=r(u.length,1)>>>0;return U$().subarray(l,l+u.length).set(u),wo=u.length,l}let i=e.length,o=r(i,1)>>>0,a=U$(),c=0;for(;c<i;c++){let u=e.charCodeAt(c);if(u>127)break;a[o+c]=u}if(c!==i){c!==0&&(e=e.slice(c)),o=n(o,i,i=c+e.length*3,1)>>>0;let u=U$().subarray(o+c,o+i),l=Cir(e,u);c+=l.written,o=n(o,i,c,1)>>>0}return wo=c,o}Vi.exports.format=function(e,r){let n,i;try{let o=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),a=wo,c=vs(r,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),u=wo,l=Ye.format(o,a,c,u);return n=l[0],i=l[1],Fa(l[0],l[1])}finally{Ye.__wbindgen_free(n,i,1)}};Vi.exports.get_config=function(e){let r,n;try{let i=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),o=wo,a=Ye.get_config(i,o);return r=a[0],n=a[1],Fa(a[0],a[1])}finally{Ye.__wbindgen_free(r,n,1)}};function H$(e){let r=Ye.__wbindgen_export_0.get(e);return Ye.__externref_table_dealloc(e),r}Vi.exports.get_dmmf=function(e){let r,n;try{let a=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),c=wo,u=Ye.get_dmmf(a,c);var i=u[0],o=u[1];if(u[3])throw i=0,o=0,H$(u[2]);return r=i,n=o,Fa(i,o)}finally{Ye.__wbindgen_free(r,n,1)}};Vi.exports.get_datamodel=function(e){let r,n;try{let a=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),c=wo,u=Ye.get_datamodel(a,c);var i=u[0],o=u[1];if(u[3])throw i=0,o=0,H$(u[2]);return r=i,n=o,Fa(i,o)}finally{Ye.__wbindgen_free(r,n,1)}};Vi.exports.lint=function(e){let r,n;try{let i=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),o=wo,a=Ye.lint(i,o);return r=a[0],n=a[1],Fa(a[0],a[1])}finally{Ye.__wbindgen_free(r,n,1)}};Vi.exports.validate=function(e){let r=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),n=wo,i=Ye.validate(r,n);if(i[1])throw H$(i[0])};Vi.exports.merge_schemas=function(e){let r,n;try{let a=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),c=wo,u=Ye.merge_schemas(a,c);var i=u[0],o=u[1];if(u[3])throw i=0,o=0,H$(u[2]);return r=i,n=o,Fa(i,o)}finally{Ye.__wbindgen_free(r,n,1)}};Vi.exports.native_types=function(e){let r,n;try{let i=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),o=wo,a=Ye.native_types(i,o);return r=a[0],n=a[1],Fa(a[0],a[1])}finally{Ye.__wbindgen_free(r,n,1)}};Vi.exports.referential_actions=function(e){let r,n;try{let i=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),o=wo,a=Ye.referential_actions(i,o);return r=a[0],n=a[1],Fa(a[0],a[1])}finally{Ye.__wbindgen_free(r,n,1)}};Vi.exports.preview_features=function(){let e,r;try{let n=Ye.preview_features();return e=n[0],r=n[1],Fa(n[0],n[1])}finally{Ye.__wbindgen_free(e,r,1)}};Vi.exports.text_document_completion=function(e,r){let n,i;try{let o=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),a=wo,c=vs(r,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),u=wo,l=Ye.text_document_completion(o,a,c,u);return n=l[0],i=l[1],Fa(l[0],l[1])}finally{Ye.__wbindgen_free(n,i,1)}};Vi.exports.code_actions=function(e,r){let n,i;try{let o=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),a=wo,c=vs(r,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),u=wo,l=Ye.code_actions(o,a,c,u);return n=l[0],i=l[1],Fa(l[0],l[1])}finally{Ye.__wbindgen_free(n,i,1)}};Vi.exports.references=function(e,r){let n,i;try{let o=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),a=wo,c=vs(r,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),u=wo,l=Ye.references(o,a,c,u);return n=l[0],i=l[1],Fa(l[0],l[1])}finally{Ye.__wbindgen_free(n,i,1)}};Vi.exports.hover=function(e,r){let n,i;try{let o=vs(e,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),a=wo,c=vs(r,Ye.__wbindgen_malloc,Ye.__wbindgen_realloc),u=wo,l=Ye.hover(o,a,c,u);return n=l[0],i=l[1],Fa(l[0],l[1])}finally{Ye.__wbindgen_free(n,i,1)}};Vi.exports.debug_panic=function(){Ye.debug_panic()};Vi.exports.__wbg_setmessage_f22ac4a6869ee695=function(e,r){global.PRISMA_WASM_PANIC_REGISTRY.set_message(Fa(e,r))};Vi.exports.__wbindgen_error_new=function(e,r){return new Error(Fa(e,r))};Vi.exports.__wbindgen_init_externref_table=function(){let e=Ye.__wbindgen_export_0,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)};Vi.exports.__wbindgen_throw=function(e,r){throw new Error(Fa(e,r))};var Dir=require("path").join(__dirname,"prisma_schema_build_bg.wasm"),Tir=require("fs").readFileSync(Dir),Air=new WebAssembly.Module(Tir),Oir=new WebAssembly.Instance(Air,fGe);Ye=Oir.exports;Vi.exports.__wasm=Ye;Ye.__wbindgen_start()});var G$,hGe=D(()=>{"use strict";G$=class{constructor(){O(this,"message","")}get(){return`${this.message}`}set_message(r){this.message=`RuntimeError: ${r}`}}});var Nse=C((Qqn,Iir)=>{Iir.exports={name:"@prisma/internals",version:"6.5.0-dev.57",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 -- jest --silent",prepublishOnly:"pnpm run build"},files:["README.md","dist","!**/libquery_engine*","!dist/get-generators/engines/*","scripts"],devDependencies:{"@antfu/ni":"0.21.12","@babel/helper-validator-identifier":"7.25.9","@opentelemetry/api":"1.9.0","@swc/core":"1.11.5","@swc/jest":"0.2.37","@types/babel__helper-validator-identifier":"7.15.2","@types/jest":"29.5.14","@types/node":"18.19.76","@types/resolve":"1.20.6",archiver:"6.0.2","checkpoint-client":"1.1.33","cli-truncate":"4.0.0",dotenv:"16.4.7",esbuild:"0.24.2","escape-string-regexp":"4.0.0",execa:"5.1.1","fast-glob":"3.3.3","find-up":"5.0.0","fp-ts":"2.16.9","fs-extra":"11.3.0","fs-jetpack":"5.1.0","global-dirs":"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",jest:"29.7.0","jest-junit":"16.0.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","read-package-up":"11.0.0",resolve:"1.22.10","string-width":"4.2.3","strip-ansi":"6.0.1","strip-indent":"3.0.0","temp-dir":"2.0.0",tempy:"1.0.1","terminal-link":"2.1.1",tmp:"0.2.3","ts-node":"10.9.2","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/engines":"workspace:*","@prisma/fetch-engine":"workspace:*","@prisma/generator-helper":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/prisma-schema-wasm":"6.5.0-43.56bd63f620196b375ea597255b04817886e98eca","@prisma/schema-files-loader":"workspace:*",arg:"5.0.2",prompts:"2.4.2"},peerDependencies:{typescript:">=5.1.0"},peerDependenciesMeta:{typescript:{optional:!0}},sideEffects:!1}});var z$={};ls(z$,{prismaSchemaWasm:()=>Es.default,prismaSchemaWasmVersion:()=>Fir});var Es,Pir,Fir,X0=D(()=>{"use strict";Es=J(Mse());hGe();({dependencies:Pir}=Nse()),Fir=Pir["@prisma/prisma-schema-wasm"];globalThis.PRISMA_WASM_PANIC_REGISTRY=new G$});function Rir(e){return e.toString().toLowerCase().replace(/\s+/g,"-")}function kv(e,r={json:!1}){if(r.json){let i=e.reduce((o,[a,c])=>(o[Rir(a)]=c,o),{});return JSON.stringify(i,null,2)}let n=e.reduce((i,o)=>Math.max(i,o[0].length),0);return e.map(([i,o])=>`${i.padEnd(n)} : ${o}`).join(`
|
|
54
54
|
`)}var Lse=D(()=>{"use strict"});var kir,mGe,gGe=D(()=>{"use strict";kir=Nse(),mGe=kir.version});function ex(e){return`${e}
|
|
55
55
|
|
|
56
56
|
${kv([["Prisma CLI Version",mGe]])}`}var NI=D(()=>{"use strict";Lse();gGe()});var s_,V$,Mir,xGe,Nir,$se,Bse,yGe,l7n,p7n,Lir,$ir,bGe,f7n,Bir,qir,vGe,a_,jir,Uir,EGe,d7n,h7n,wGe,SGe=D(()=>{"use strict";K0();Sse();md();o_();RI();s_=ZHe,V$=XHe,Mir=function(e){return e._tag==="Left"?s_:V$(e.right)},xGe=function(e,r){return $c(e,Bse(r))},Nir=function(e,r){return $c(e,Lir(r))},$se="Option",Bse=function(e){return function(r){return a_(r)?s_:V$(e(r.value))}},yGe={URI:$se,map:xGe},l7n=Un(2,pm(yGe)),p7n=V0(yGe),Lir=function(e){return function(r){return a_(r)||a_(e)?s_:V$(r.value(e.value))}},$ir=Un(2,function(e,r){return a_(e)?s_:r(e.value)}),bGe={URI:$se,map:xGe,ap:Nir,chain:$ir},f7n=Un(2,function(e,r){return a_(e)?r():e}),Bir=Mir,qir={URI:$se,fromEither:Bir},vGe=QHe,a_=function(e){return e._tag==="None"},jir=function(e,r){return function(n){return a_(n)?e():r(n.value)}},Uir=jir,EGe=Uir,d7n=Un(2,Bc(bGe)),h7n=Un(2,L$(qir,bGe)),wGe=function(e){return e==null?s_:V$(e)}});function _Ge(e){return Tl(fm,e.of)}function CGe(e){return function(r){return e.map(r,fm)}}function DGe(e){return nGe(e,B$)}function TGe(e){return tGe(e,sGe)}function AGe(e){return function(r,n){return e.chain(r,function(i){return qc(i)?e.of(i):n(i.right)})}}function OGe(e){return function(r,n,i){return e.map(r,aGe(n,i))}}function IGe(e){return function(r,n){return e.map(r,cGe(n))}}function PGe(e){return function(r){return function(n){return e.chain(n,function(i){return qc(i)?r(i.left):e.of(i)})}}}function FGe(e){var r=PGe(e);return function(n,i){return $c(n,r(function(o){return e.map(i(o),function(a){return qc(a)?a:Iv(o)})}))}}var RGe=D(()=>{"use strict";rGe();Y0();md();o_()});function K$(e,r){var n=Bc(r);return function(i,o){return n(i,Tl(o,e.fromIO))}}var qse=D(()=>{"use strict";K0();md()});function kGe(e,r){var n=Bc(r);return function(i,o){return n(i,Tl(o,e.fromTask))}}var MGe=D(()=>{"use strict";K0();md()});var jse,Y$,Use,NGe,Kir,J$,Q$,c_,Mv,P7n,F7n,LGe,$Ge,BGe,Wse,qGe,Yir,Jir,R7n,k7n,M7n,jGe=D(()=>{"use strict";K0();qse();md();o_();RI();jse=function(e){return function(){return Promise.resolve().then(e)}},Y$=function(e,r){return $c(e,NGe(r))},Use=function(e,r){return $c(e,Kir(r))},NGe=function(e){return function(r){return function(){return Promise.resolve().then(r).then(e)}}},Kir=function(e){return function(r){return function(){return Promise.all([Promise.resolve().then(r),Promise.resolve().then(e)]).then(function(n){var i=n[0],o=n[1];return i(o)})}}},J$=function(e){return function(){return Promise.resolve(e)}},Q$=Un(2,function(e,r){return function(){return Promise.resolve().then(e).then(function(n){return r(n)()})}}),c_="Task",Mv={URI:c_,map:Y$},P7n=Un(2,pm(Mv)),F7n=V0(Mv),LGe={URI:c_,of:J$},$Ge={URI:c_,map:Y$,ap:Use},BGe={URI:c_,map:Y$,ap:Use,chain:Q$},Wse={URI:c_,map:Y$,of:J$,ap:Use,chain:Q$},qGe={URI:c_,fromIO:jse},Yir={flatMap:Q$},Jir={fromIO:qGe.fromIO},R7n=Ese(Jir,Yir),k7n=Un(2,Bc(BGe)),M7n=Un(2,K$(qGe,BGe))});var Zir,Xir,UGe,WGe,eor,HGe,tor,LI,u_,f9n,GGe,ror,nor,d9n,h9n,ior,Hse,$I,zGe,m9n,g9n,Z$,VGe,KGe,oor,x9n,y9n,b9n,v9n,E9n,w9n,YGe,JGe,BI=D(()=>{"use strict";K0();RGe();Sse();qse();MGe();md();o_();RI();jGe();Zir=function(e,r,n,i){function o(a){return a instanceof n?a:new n(function(c){c(a)})}return new(n||(n=Promise))(function(a,c){function u(f){try{p(i.next(f))}catch(g){c(g)}}function l(f){try{p(i.throw(f))}catch(g){c(g)}}function p(f){f.done?a(f.value):o(f.value).then(u,l)}p((i=i.apply(e,r||[])).next())})},Xir=function(e,r){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,o,a,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(p){return function(f){return l([p,f])}}function l(p){if(i)throw new TypeError("Generator is already executing.");for(;c&&(c=0,p[0]&&(n=0)),n;)try{if(i=1,o&&(a=p[0]&2?o.return:p[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,p[1])).done)return a;switch(o=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return n.label++,{value:p[1],done:!1};case 5:n.label++,o=p[1],p=[0];continue;case 7:p=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){n.label=p[1];break}if(p[0]===6&&n.label<a[1]){n.label=a[1],a=p;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(p);break}a[2]&&n.ops.pop(),n.trys.pop();continue}p=r.call(e,n)}catch(f){p=[6,f],o=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},UGe=_Ge(LGe),WGe=CGe(Mv),eor=Tl(jse,WGe),HGe=eor,tor=WGe,LI=J$,u_=function(e,r){return function(){return Zir(void 0,void 0,void 0,function(){var n;return Xir(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,e().then(k$)];case 1:return[2,i.sent()];case 2:return n=i.sent(),[2,R$(r(n))];case 3:return[2]}})})}},f9n=Un(2,FGe(Wse)),GGe=function(e,r){return $c(e,nor(r))},ror=function(e,r){return $c(e,ior(r))},nor=DGe(Mv),d9n=Un(3,OGe(Mv)),h9n=Un(2,IGe(Mv)),ior=TGe($Ge),Hse=Un(2,AGe(Wse)),$I="TaskEither",zGe={URI:$I,map:GGe},m9n=Un(2,pm(zGe)),g9n=V0(zGe),Z$={URI:$I,map:GGe,ap:ror,chain:Hse},VGe={URI:$I,fromEither:LI},KGe={URI:$I,fromIO:HGe},oor={URI:$I,fromIO:HGe,fromTask:tor},x9n=Un(2,Bc(Z$)),y9n=Un(2,L$(VGe,Z$)),b9n=Un(2,K$(KGe,Z$)),v9n=Un(2,kGe(oor,Z$)),E9n={fromEither:VGe.fromEither},w9n={fromIO:KGe.fromIO},YGe=Hse,JGe=Hse});function Eu(e){return e.replaceAll(process.cwd()+QGe.default.sep,"")}var QGe,l_=D(()=>{"use strict";QGe=J(require("node:path"))});function Gse(e){return`${Ie(Y("Prisma schema validation"))} - ${e}`}function rx({errorOutput:e,reason:r}){return(0,eB.pipe)(Al(()=>JSON.parse(e),()=>({_tag:"unparsed",message:e,reason:r})),Pv(i=>{let o=Ie(Y(Eu(i.message))),a=rr(i).with({error_code:"P1012"},c=>({reason:Gse(r),errorCode:c.error_code})).with({error_code:no.string},c=>({reason:r,errorCode:c.error_code})).otherwise(()=>({reason:r}));return{_tag:"parsed",message:o,...a}}),uGe(eB.identity))}var eB,tx,qI=D(()=>{"use strict";Y0();eB=J(Rn());Ge();Oa();l_();tx=(e,r)=>({type:n,reason:i,error:o})=>{e(`error of type "${n}" in ${r}:
|
|
@@ -122,7 +122,7 @@ If you need to ignore this error (e.g. in an offline environment), set the PRISM
|
|
|
122
122
|
Example: PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING=1`),new Error(a)}let i=await n.text(),[o]=i.split(/\s+/);if(!/^[a-f0-9]{64}$/gi.test(o))throw new Error(`Unable to parse checksum from ${r} - response body: ${i}`);return o}catch(r){if(process.env.PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING)return yq(`fetchChecksum() failed and was ignored as the PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING environment variable is truthy.
|
|
123
123
|
Error: ${r}`),null;throw r}}async function LXe(e,r,n){let i=kXe.default.directory(),o=FXe.default.join(i,"partial"),a=2,[c,u]=await(0,qce.default)(async()=>await Promise.all([IXe(e),IXe(e.slice(0,e.length-3))]),{retries:a,onFailedAttempt:p=>yq("An error occurred while downloading the checksums files",p)}),l=await(0,qce.default)(async()=>{let p=await vd(e,{compress:!1,agent:eE(e)});if(!p.ok)throw new Error(`Failed to fetch the engine file at ${e} - ${p.status} ${p.statusText}`);let f=p.headers.get("last-modified"),g=parseFloat(p.headers.get("content-length")),x=PXe.default.createWriteStream(o);return await new Promise(async(b,v)=>{let S=0;if(p.body===null)return v(new Error(`Failed to fetch the engine file at ${e} - response.body is null`));p.body.once("error",v).on("data",V=>{S+=V.length,g&&n&&n(S/g)});let T=NXe.default.createGunzip();T.on("error",v);let P=p.body.pipe(T),R=Bce.default.fromStream(p.body,{algorithm:"sha256"}),M=Bce.default.fromStream(P,{algorithm:"sha256"});P.pipe(x),x.on("error",v).on("close",()=>{b({lastModified:f,sha256:u,zippedSha256:c})});let L=await M,N=await R;if(c!==null&&c!==N)return v(new Error(`sha256 checksum of ${e} (zipped) should be ${c} but is ${N}`));if(u!==null&&u!==L)return v(new Error(`sha256 checksum of ${e} (unzipped) should be ${u} but is ${L}`))})},{retries:a,onFailedAttempt:p=>yq("An error occurred while downloading the engine file",p)});await xx(o,r);try{await OXe(o),await OXe(i)}catch(p){yq(p)}return l}var PXe,Bce,qce,FXe,RXe,kXe,MXe,NXe,yq,OXe,$Xe=D(()=>{"use strict";pr();PXe=J(require("fs")),Bce=J(tZe());oq();qce=J(KZe()),FXe=J(require("path")),RXe=J(I$()),kXe=J(YHe()),MXe=require("util"),NXe=J(require("zlib"));$ce();fP();yq=ze("prisma:fetch-engine:downloadZip"),OXe=(0,MXe.promisify)(RXe.default)});function tE(e){let r=_fr(e);if(process.env[r]){let n=qXe.default.resolve(process.cwd(),process.env[r]);if(!BXe.default.existsSync(n))throw new Error(`Env var ${Y(r)} is provided but provided path ${yr(process.env[r])} can't be resolved.`);return wfr(`Using env var ${Y(r)} for binary ${Y(e)}, which points to ${yr(process.env[r])}`),{path:n,fromEnvVar:r}}return null}function _fr(e){let r=jce[e],n=Sfr[e];return n&&process.env[n]?process.env[r]?(console.warn(`${or("prisma:warn")} Both ${Y(r)} and ${Y(n)} are specified, ${Y(r)} takes precedence. ${Y(n)} is deprecated.`),r):(console.warn(`${or("prisma:warn")} ${Y(n)} environment variable is deprecated, please use ${Y(r)} instead`),n):r}function jXe(e){for(let r of e)if(!tE(r))return!1;return!0}var BXe,qXe,wfr,jce,Sfr,Uce=D(()=>{"use strict";pr();BXe=J(require("fs"));Ge();qXe=J(require("path")),wfr=ze("prisma:fetch-engine:env"),jce={"query-engine":"PRISMA_QUERY_ENGINE_BINARY","libquery-engine":"PRISMA_QUERY_ENGINE_LIBRARY","schema-engine":"PRISMA_SCHEMA_ENGINE_BINARY"},Sfr={"schema-engine":"PRISMA_MIGRATION_ENGINE_BINARY"}});function Wce(e){let r=UXe.default.createHash("sha256"),n=WXe.default.createReadStream(e);return new Promise(i=>{n.on("readable",()=>{let o=n.read();o?r.update(o):i(r.digest("hex"))})})}var UXe,WXe,HXe=D(()=>{"use strict";UXe=J(require("crypto")),WXe=J(require("fs"))});var VXe=C((GXe,zXe)=>{"use strict";GXe=zXe.exports=B_;function B_(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=""}B_.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}};B_.prototype.render=function(e,r){if(r=r!==void 0?r:!1,e&&(this.tokens=e),!!this.stream.isTTY){var n=Date.now(),i=n-this.lastRender;if(!(!r&&i<this.renderThrottle)){this.lastRender=n;var o=this.curr/this.total;o=Math.min(Math.max(o,0),1);var a=Math.floor(o*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 v=Math.min(this.width,b);if(l=Math.round(v*o),u=Array(Math.max(0,l+1)).join(this.chars.complete),c=Array(Math.max(0,v-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)}}};B_.prototype.update=function(e,r){var n=Math.floor(e*this.total),i=n-this.curr;this.tick(i,r)};B_.prototype.interrupt=function(e){this.stream.clearLine(),this.stream.cursorTo(0),this.stream.write(e),this.stream.write(`
|
|
124
124
|
`),this.stream.write(this.lastDraw)};B_.prototype.terminate=function(){this.clear?this.stream.clearLine&&(this.stream.clearLine(),this.stream.cursorTo(0)):this.stream.write(`
|
|
125
|
-
`)}});var YXe=C(($Gn,KXe)=>{"use strict";KXe.exports=VXe()});function QXe(e){return new JXe.default(`> ${e} [:bar] :percent`,{stream:process.stdout,width:20,complete:"=",incomplete:" ",total:100,head:"",clear:!0})}var JXe,ZXe=D(()=>{"use strict";JXe=J(YXe())});var XXe=C((qGn,Cfr)=>{Cfr.exports={name:"@prisma/fetch-engine",version:"6.5.0-dev.
|
|
125
|
+
`)}});var YXe=C(($Gn,KXe)=>{"use strict";KXe.exports=VXe()});function QXe(e){return new JXe.default(`> ${e} [:bar] :percent`,{stream:process.stdout,width:20,complete:"=",incomplete:" ",total:100,head:"",clear:!0})}var JXe,ZXe=D(()=>{"use strict";JXe=J(YXe())});var XXe=C((qGn,Cfr)=>{Cfr.exports={name:"@prisma/fetch-engine",version:"6.5.0-dev.57",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:{"@swc/core":"1.11.5","@swc/jest":"0.2.37","@types/jest":"29.5.14","@types/node":"18.19.76","@types/progress":"2.0.7",del:"6.1.1",execa:"5.1.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",jest:"29.7.0",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",rimraf:"3.0.2","strip-ansi":"6.0.1","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":"6.5.0-43.56bd63f620196b375ea597255b04817886e98eca","@prisma/get-platform":"workspace:*"},scripts:{dev:"DEV=true tsx helpers/build.ts",build:"tsx helpers/build.ts",test:"jest",prepublishOnly:"pnpm run build"},files:["README.md","dist"],sideEffects:!1}});async function bq(options){(eet?.branch||eet?.folder)&&(options.version="_local_",options.skipCacheIntegrityCheck=!0);let{binaryTarget,...os}=await tI();if(os.targetDistro&&["nixos"].includes(os.targetDistro)&&!jXe(Object.keys(options.binaries))?console.error(`${or("Warning")} Precompiled engine files are not available for ${os.targetDistro}, please provide the paths via environment variables, see https://pris.ly/d/custom-engines`):["freebsd11","freebsd12","freebsd13","freebsd14","freebsd15","openbsd","netbsd"].includes(binaryTarget)?console.error(`${or("Warning")} Precompiled engine files are not available for ${binaryTarget}. Read more about building your own engines at https://pris.ly/d/build-engines`):"libquery-engine"in options.binaries&&IS(),!options.binaries||Object.values(options.binaries).length===0)return{};let opts={...options,binaryTargets:options.binaryTargets??[binaryTarget],version:options.version??"latest",binaries:options.binaries},binaryJobs=Object.entries(opts.binaries).flatMap(([e,r])=>opts.binaryTargets.map(n=>{let i=Ifr(e,n),o=_d.default.join(r,i);return{binaryName:e,targetFolder:r,binaryTarget:n,fileName:i,targetFilePath:o,envVarPath:tE(e)?.path,skipCacheIntegrityCheck:!!opts.skipCacheIntegrityCheck}}));process.env.BINARY_DOWNLOAD_VERSION&&(Sd(`process.env.BINARY_DOWNLOAD_VERSION is set to "${process.env.BINARY_DOWNLOAD_VERSION}"`),opts.version=process.env.BINARY_DOWNLOAD_VERSION),opts.printVersion&&console.log(`version: ${opts.version}`);let binariesToDownload=await uce(binaryJobs,async e=>{let r=await Afr(e,binaryTarget,opts.version),n=ZO.includes(e.binaryTarget),i=n&&!e.envVarPath&&r;if(r&&!n)throw new Error(`Unknown binaryTarget ${e.binaryTarget} and no custom engine files were provided`);return i});if(binariesToDownload.length>0){let e=KQe(),r,n;if(opts.showProgress){let o=Dfr(opts);r=o.finishBar,n=o.setProgress}let i=binariesToDownload.map(o=>{let a=HQe({channel:"all_commits",version:opts.version,binaryTarget:o.binaryTarget,binaryName:o.binaryName});return Sd(`${a} will be downloaded to ${o.targetFilePath}`),Ffr({...o,downloadUrl:a,version:opts.version,failSilent:opts.failSilent,progressCb:n?n(o.targetFilePath):void 0})});await Promise.all(i),await e,r&&r()}let binaryPaths=Tfr(binaryJobs),dir=eval("__dirname");if(dir.match(oet))for(let e in binaryPaths){let r=binaryPaths[e];for(let n in r){let i=r[n];r[n]=await kfr(i)}}return binaryPaths}function Dfr(e){let r="libquery-engine"in e.binaries,n=QXe(`Downloading Prisma engines${r?" for Node-API":""} for ${e.binaryTargets?.map(c=>Y(c)).join(" and ")}`),i={},o=Object.values(e.binaries).length*Object.values(e?.binaryTargets??[]).length;return{setProgress:c=>u=>{i[c]=u;let p=Object.values(i).reduce((f,g)=>f+g,0)/o;e.progressCb&&e.progressCb(p),n&&n.update(p)},finishBar:()=>{n.update(1),n.terminate()}}}function Tfr(e){return e.reduce((r,n)=>(r[n.binaryName]||(r[n.binaryName]={}),r[n.binaryName][n.binaryTarget]=n.envVarPath||n.targetFilePath,r),{})}async function Afr(e,r,n){if(e.envVarPath&&Gc.default.existsSync(e.envVarPath))return!1;let i=await Hce(e.targetFilePath),o=await Pfr({...e,version:n});if(o){if(e.skipCacheIntegrityCheck===!0)return await xx(o,e.targetFilePath),!1;let a=o+".sha256";if(await Hce(a)){let c=await Gc.default.promises.readFile(a,"utf-8"),u=await Wce(o);if(c===u){i||(Sd(`copying ${o} to ${e.targetFilePath}`),await Gc.default.promises.utimes(o,new Date,new Date),await xx(o,e.targetFilePath));let l=await Wce(e.targetFilePath);return c!==l&&(Sd(`overwriting ${e.targetFilePath} with ${o} as hashes do not match`),await xx(o,e.targetFilePath)),!1}else return!0}else return process.env.PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING?(Sd(`the checksum file ${a} is missing but this was ignored because the PRISMA_ENGINES_CHECKSUM_IGNORE_MISSING environment variable is set`),i?!1:o?(Sd(`copying ${o} to ${e.targetFilePath}`),await xx(o,e.targetFilePath),!1):!0):!0}if(!i)return Sd(`file ${e.targetFilePath} does not exist and must be downloaded`),!0;if(e.binaryTarget===r){let a=await Ofr(e.targetFilePath,e.binaryName);if(a?.includes(n)!==!0)return Sd(`file ${e.targetFilePath} exists but its version is ${a} and we expect ${n}`),!0}return!1}async function Ofr(e,r){try{if(r==="libquery-engine"){IS();let n=require(e).version().commit;return`libquery-engine ${n}`}else return(await(0,tet.default)(e,["--version"])).stdout}catch{}}function Ifr(e,r){return e==="libquery-engine"?`${sd(r,"fs")}`:`${e}-${r}${r==="windows"?".exe":""}`}async function Pfr({version:e,binaryTarget:r,binaryName:n}){let i=await mce(iet,e,r);if(!i)return null;let o=_d.default.join(i,n);return Gc.default.existsSync(o)&&(e!=="latest"||await Hce(o))?o:null}async function Ffr(e){let{version:r,progressCb:n,targetFilePath:i,downloadUrl:o}=e,a=_d.default.dirname(i);try{Gc.default.accessSync(a,Gc.default.constants.W_OK),await(0,Gce.ensureDir)(a)}catch(l){if(e.failSilent||l.code!=="EACCES")return;throw new Error(`Can't write to ${a} please make sure you install "prisma" with the right permissions.`)}Sd(`Downloading ${o} to ${i} ...`),n&&n(0);let{sha256:c,zippedSha256:u}=await LXe(o,i,n);n&&n(1),bQe(i),await Rfr(e,r,c,u)}async function Rfr(e,r,n,i){let o=await mce(iet,r,e.binaryTarget);if(!o)return;let a=_d.default.join(o,e.binaryName),c=_d.default.join(o,e.binaryName+".sha256"),u=_d.default.join(o,e.binaryName+".gz.sha256");try{await xx(e.targetFilePath,a),n!=null&&await Gc.default.promises.writeFile(c,n),i!=null&&await Gc.default.promises.writeFile(u,i)}catch(l){Sd(l)}}async function kfr(file){let dir=eval("__dirname");if(dir.match(oet)){let e=_d.default.join(ret.default,"prisma-binaries");await(0,Gce.ensureDir)(e);let r=_d.default.join(e,_d.default.basename(file)),n=await Gc.default.promises.readFile(file);return await Gc.default.promises.writeFile(r,n),Mfr(r),r}return file}function Mfr(e){let r=Gc.default.statSync(e),n=r.mode|64|8|1;if(r.mode===n)return;let i=n.toString(8).slice(-3);Gc.default.chmodSync(e,i)}var tet,Gc,Gce,_d,ret,net,eet,Sd,Hce,iet,oet,set=D(()=>{"use strict";pr();Dl();tet=J(xv()),Gc=J(require("fs")),Gce=J(ux());Ge();yQe();_d=J(require("path")),ret=J(P5()),net=require("util");ace();vQe();YQe();$Xe();Uce();HXe();ZXe();fP();({enginesOverride:eet}=XXe()),Sd=ze("prisma:fetch-engine:download"),Hce=(0,net.promisify)(Gc.default.exists),iet="master",oet=/^((\w:[\\\/])|\/)snapshot[\/\\]/});var Cd=D(()=>{"use strict";ace();set();Uce();$ce()});function cet(e){if(process.platform==="win32")return;let r=zce.default.statSync(e),n=r.mode|64|8|1;if(r.mode===n){aet(`Execution permissions of ${e} are fine`);return}let i=n.toString(8).slice(-3);aet(`Have to call chmodPlusX on ${e}`),zce.default.chmodSync(e,i)}var zce,aet,uet=D(()=>{"use strict";pr();zce=J(require("fs")),aet=ze("chmodPlusX")});var q_,Vce=D(()=>{"use strict";q_=/^((\w:[\\\/])|\/)snapshot[\/\\]/});async function Nfr(e){let r=await Yo(),n=r==="windows"?".exe":"";return e==="libquery-engine"?sd(r,"fs"):`${e}-${r}${n}`}async function wx(e,r){if(r&&!r.match(q_)&&vx.default.existsSync(r))return r;let n=tE(e);if(n!==null)return n.path;let i=await Nfr(e),o=Ex.default.join((0,pet.getEnginesPath)(),i);if(vx.default.existsSync(o))return vq(o);let a=Ex.default.join(__dirname,"..",i);if(vx.default.existsSync(a))return vq(a);let c=Ex.default.join(__dirname,"../..",i);if(vx.default.existsSync(c))return vq(c);let u=Ex.default.join(__dirname,"../runtime",i);if(vx.default.existsSync(u))return vq(u);throw new Error(`Could not find ${e} binary. Searched in:
|
|
126
126
|
- ${o}
|
|
127
127
|
- ${a}
|
|
128
128
|
- ${c}
|
|
@@ -438,7 +438,7 @@ ${Y("Error reports never contain personal or other sensitive information.")}
|
|
|
438
438
|
${he(`Learn more: ${ft("https://pris.ly/d/telemetry")}`)}
|
|
439
439
|
`);let{value:c}=await(0,dvt.default)({type:"select",name:"value",message:"Submit error report",initial:0,choices:[{title:"Yes",value:!0,description:"Send error report once"},{title:"No",value:!1,description:"Don't send error report"}]});if(c)try{console.log("Submitting...");let u=await Yht({error:e,cliVersion:r,enginesVersion:n,getDatabaseVersionSafe:o});console.log(`
|
|
440
440
|
${Y(`We successfully received the error report id: ${u}`)}`),console.log(`
|
|
441
|
-
${Y("Thanks a lot for your help! \u{1F64F}")}`)}catch(u){let l=`${Y(Ie("Oops. We could not send the error report."))}`;console.log(l),console.error(`${Ny("Error report submission failed due to: ")}`,u)}await pvt({prompt:!c,error:e,cliVersion:r,enginesVersion:n,command:i}),process.exit(1)}var dvt,hvt=D(()=>{"use strict";Ge();dvt=J(Qx());Jht();Cme();fvt();YP()});function Gge(){try{return Hge.default.existsSync("/.dockerenv")||Hge.default.existsSync("/run/.containerenv")||process.pid===1||process.env.KUBERNETES_SERVICE_HOST!==void 0}catch{return!1}}var Hge,mvt=D(()=>{"use strict";Hge=J(require("node:fs"))});function zge(){return process.env.npm_lifecycle_event!==void 0&&process.env.npm_command!=="run-script"}var gvt=D(()=>{"use strict"});function Vge(e){return(0,xvt.isIdentifierName)(e)}var xvt,yvt=D(()=>{"use strict";xvt=J(vae())});function Kge(e,r){let n={};for(let i of Object.keys(e))n[i]=r(e[i],i);return n}var bvt=D(()=>{"use strict"});function Yge(){return process.env.GIT_EXEC_PATH!==void 0||process.env.GIT_DIR!==void 0||process.env.GIT_INDEX_FILE!==void 0||process.env.GIT_PREFIX!==void 0}var vvt=D(()=>{"use strict"});function Gd(e,r){Object.defineProperty(e,"name",{value:r,configurable:!0})}var Evt=D(()=>{"use strict"});var ot=D(()=>{"use strict";zet();Yet();U_();Jet();Qet();bue();bue();ott();ctt();Qce();rB();l_();wot();_ot();Q0();_P();Aot();Qht();Zht();Xht();Cme();Mxt();syt();hue();Lse();Obt();Sge();qbt();fue();ahe();hvt();Sme();Pge();mvt();gvt();_me();yvt();YP();due();bvt();vvt();kle();G_();Kq();Sue();Evt();che();Cq();Vce();X0();Dl()});var Dvt=C((toi,V4r)=>{V4r.exports={name:"@prisma/engines-version",version:"6.5.0-42.ebe92748df38ea968da11e62e111f2596014342a",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek <suchanek@prisma.io>",prisma:{enginesVersion:"ebe92748df38ea968da11e62e111f2596014342a"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.76",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var Tvt=C(tj=>{"use strict";Object.defineProperty(tj,"__esModule",{value:!0});tj.enginesVersion=void 0;tj.enginesVersion=Dvt().prisma.enginesVersion});var Ovt=C((noi,Avt)=>{"use strict";var K4r=Qre(),Y4r=rne();Avt.exports=K4r(()=>{Y4r(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var Zge=C(cC=>{"use strict";var J4r=Ovt(),rj=!1;cC.show=(e=process.stderr)=>{e.isTTY&&(rj=!1,e.write("\x1B[?25h"))};cC.hide=(e=process.stderr)=>{e.isTTY&&(J4r(),rj=!0,e.write("\x1B[?25l"))};cC.toggle=(e,r)=>{e!==void 0&&(rj=e),rj?cC.show(r):cC.hide(r)}});var Pvt=C((ooi,Ivt)=>{"use strict";Ivt.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Xge=C((soi,Rvt)=>{"use strict";var LR=Pvt(),Fvt={};for(let e of Object.keys(LR))Fvt[LR[e]]=e;var ut={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};Rvt.exports=ut;for(let e of Object.keys(ut)){if(!("channels"in ut[e]))throw new Error("missing channels property: "+e);if(!("labels"in ut[e]))throw new Error("missing channel labels property: "+e);if(ut[e].labels.length!==ut[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:r,labels:n}=ut[e];delete ut[e].channels,delete ut[e].labels,Object.defineProperty(ut[e],"channels",{value:r}),Object.defineProperty(ut[e],"labels",{value:n})}ut.rgb.hsl=function(e){let r=e[0]/255,n=e[1]/255,i=e[2]/255,o=Math.min(r,n,i),a=Math.max(r,n,i),c=a-o,u,l;a===o?u=0:r===a?u=(n-i)/c:n===a?u=2+(i-r)/c:i===a&&(u=4+(r-n)/c),u=Math.min(u*60,360),u<0&&(u+=360);let p=(o+a)/2;return a===o?l=0:p<=.5?l=c/(a+o):l=c/(2-a-o),[u,l*100,p*100]};ut.rgb.hsv=function(e){let r,n,i,o,a,c=e[0]/255,u=e[1]/255,l=e[2]/255,p=Math.max(c,u,l),f=p-Math.min(c,u,l),g=function(x){return(p-x)/6/f+1/2};return f===0?(o=0,a=0):(a=f/p,r=g(c),n=g(u),i=g(l),c===p?o=i-n:u===p?o=1/3+r-i:l===p&&(o=2/3+n-r),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,p*100]};ut.rgb.hwb=function(e){let r=e[0],n=e[1],i=e[2],o=ut.rgb.hsl(e)[0],a=1/255*Math.min(r,Math.min(n,i));return i=1-1/255*Math.max(r,Math.max(n,i)),[o,a*100,i*100]};ut.rgb.cmyk=function(e){let r=e[0]/255,n=e[1]/255,i=e[2]/255,o=Math.min(1-r,1-n,1-i),a=(1-r-o)/(1-o)||0,c=(1-n-o)/(1-o)||0,u=(1-i-o)/(1-o)||0;return[a*100,c*100,u*100,o*100]};function Q4r(e,r){return(e[0]-r[0])**2+(e[1]-r[1])**2+(e[2]-r[2])**2}ut.rgb.keyword=function(e){let r=Fvt[e];if(r)return r;let n=1/0,i;for(let o of Object.keys(LR)){let a=LR[o],c=Q4r(e,a);c<n&&(n=c,i=o)}return i};ut.keyword.rgb=function(e){return LR[e]};ut.rgb.xyz=function(e){let r=e[0]/255,n=e[1]/255,i=e[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;let o=r*.4124+n*.3576+i*.1805,a=r*.2126+n*.7152+i*.0722,c=r*.0193+n*.1192+i*.9505;return[o*100,a*100,c*100]};ut.rgb.lab=function(e){let r=ut.rgb.xyz(e),n=r[0],i=r[1],o=r[2];n/=95.047,i/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let a=116*i-16,c=500*(n-i),u=200*(i-o);return[a,c,u]};ut.hsl.rgb=function(e){let r=e[0]/360,n=e[1]/100,i=e[2]/100,o,a,c;if(n===0)return c=i*255,[c,c,c];i<.5?o=i*(1+n):o=i+n-i*n;let u=2*i-o,l=[0,0,0];for(let p=0;p<3;p++)a=r+1/3*-(p-1),a<0&&a++,a>1&&a--,6*a<1?c=u+(o-u)*6*a:2*a<1?c=o:3*a<2?c=u+(o-u)*(2/3-a)*6:c=u,l[p]=c*255;return l};ut.hsl.hsv=function(e){let r=e[0],n=e[1]/100,i=e[2]/100,o=n,a=Math.max(i,.01);i*=2,n*=i<=1?i:2-i,o*=a<=1?a:2-a;let c=(i+n)/2,u=i===0?2*o/(a+o):2*n/(i+n);return[r,u*100,c*100]};ut.hsv.rgb=function(e){let r=e[0]/60,n=e[1]/100,i=e[2]/100,o=Math.floor(r)%6,a=r-Math.floor(r),c=255*i*(1-n),u=255*i*(1-n*a),l=255*i*(1-n*(1-a));switch(i*=255,o){case 0:return[i,l,c];case 1:return[u,i,c];case 2:return[c,i,l];case 3:return[c,u,i];case 4:return[l,c,i];case 5:return[i,c,u]}};ut.hsv.hsl=function(e){let r=e[0],n=e[1]/100,i=e[2]/100,o=Math.max(i,.01),a,c;c=(2-n)*i;let u=(2-n)*o;return a=n*o,a/=u<=1?u:2-u,a=a||0,c/=2,[r,a*100,c*100]};ut.hwb.rgb=function(e){let r=e[0]/360,n=e[1]/100,i=e[2]/100,o=n+i,a;o>1&&(n/=o,i/=o);let c=Math.floor(6*r),u=1-i;a=6*r-c,c&1&&(a=1-a);let l=n+a*(u-n),p,f,g;switch(c){default:case 6:case 0:p=u,f=l,g=n;break;case 1:p=l,f=u,g=n;break;case 2:p=n,f=u,g=l;break;case 3:p=n,f=l,g=u;break;case 4:p=l,f=n,g=u;break;case 5:p=u,f=n,g=l;break}return[p*255,f*255,g*255]};ut.cmyk.rgb=function(e){let r=e[0]/100,n=e[1]/100,i=e[2]/100,o=e[3]/100,a=1-Math.min(1,r*(1-o)+o),c=1-Math.min(1,n*(1-o)+o),u=1-Math.min(1,i*(1-o)+o);return[a*255,c*255,u*255]};ut.xyz.rgb=function(e){let r=e[0]/100,n=e[1]/100,i=e[2]/100,o,a,c;return o=r*3.2406+n*-1.5372+i*-.4986,a=r*-.9689+n*1.8758+i*.0415,c=r*.0557+n*-.204+i*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),c=Math.min(Math.max(0,c),1),[o*255,a*255,c*255]};ut.xyz.lab=function(e){let r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let o=116*n-16,a=500*(r-n),c=200*(n-i);return[o,a,c]};ut.lab.xyz=function(e){let r=e[0],n=e[1],i=e[2],o,a,c;a=(r+16)/116,o=n/500+a,c=a-i/200;let u=a**3,l=o**3,p=c**3;return a=u>.008856?u:(a-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,c=p>.008856?p:(c-16/116)/7.787,o*=95.047,a*=100,c*=108.883,[o,a,c]};ut.lab.lch=function(e){let r=e[0],n=e[1],i=e[2],o;o=Math.atan2(i,n)*360/2/Math.PI,o<0&&(o+=360);let c=Math.sqrt(n*n+i*i);return[r,c,o]};ut.lch.lab=function(e){let r=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),c=n*Math.sin(o);return[r,a,c]};ut.rgb.ansi16=function(e,r=null){let[n,i,o]=e,a=r===null?ut.rgb.hsv(e)[2]:r;if(a=Math.round(a/50),a===0)return 30;let c=30+(Math.round(o/255)<<2|Math.round(i/255)<<1|Math.round(n/255));return a===2&&(c+=60),c};ut.hsv.ansi16=function(e){return ut.rgb.ansi16(ut.hsv.rgb(e),e[2])};ut.rgb.ansi256=function(e){let r=e[0],n=e[1],i=e[2];return r===n&&n===i?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)};ut.ansi16.rgb=function(e){let r=e%10;if(r===0||r===7)return e>50&&(r+=3.5),r=r/10.5*255,[r,r,r];let n=(~~(e>50)+1)*.5,i=(r&1)*n*255,o=(r>>1&1)*n*255,a=(r>>2&1)*n*255;return[i,o,a]};ut.ansi256.rgb=function(e){if(e>=232){let a=(e-232)*10+8;return[a,a,a]}e-=16;let r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,o=r%6/5*255;return[n,i,o]};ut.rgb.hex=function(e){let n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};ut.hex.rgb=function(e){let r=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];let n=r[0];r[0].length===3&&(n=n.split("").map(u=>u+u).join(""));let i=parseInt(n,16),o=i>>16&255,a=i>>8&255,c=i&255;return[o,a,c]};ut.rgb.hcg=function(e){let r=e[0]/255,n=e[1]/255,i=e[2]/255,o=Math.max(Math.max(r,n),i),a=Math.min(Math.min(r,n),i),c=o-a,u,l;return c<1?u=a/(1-c):u=0,c<=0?l=0:o===r?l=(n-i)/c%6:o===n?l=2+(i-r)/c:l=4+(r-n)/c,l/=6,l%=1,[l*360,c*100,u*100]};ut.hsl.hcg=function(e){let r=e[1]/100,n=e[2]/100,i=n<.5?2*r*n:2*r*(1-n),o=0;return i<1&&(o=(n-.5*i)/(1-i)),[e[0],i*100,o*100]};ut.hsv.hcg=function(e){let r=e[1]/100,n=e[2]/100,i=r*n,o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],i*100,o*100]};ut.hcg.rgb=function(e){let r=e[0]/360,n=e[1]/100,i=e[2]/100;if(n===0)return[i*255,i*255,i*255];let o=[0,0,0],a=r%1*6,c=a%1,u=1-c,l=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=c,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=c;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=c,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return l=(1-n)*i,[(n*o[0]+l)*255,(n*o[1]+l)*255,(n*o[2]+l)*255]};ut.hcg.hsv=function(e){let r=e[1]/100,n=e[2]/100,i=r+n*(1-r),o=0;return i>0&&(o=r/i),[e[0],o*100,i*100]};ut.hcg.hsl=function(e){let r=e[1]/100,i=e[2]/100*(1-r)+.5*r,o=0;return i>0&&i<.5?o=r/(2*i):i>=.5&&i<1&&(o=r/(2*(1-i))),[e[0],o*100,i*100]};ut.hcg.hwb=function(e){let r=e[1]/100,n=e[2]/100,i=r+n*(1-r);return[e[0],(i-r)*100,(1-i)*100]};ut.hwb.hcg=function(e){let r=e[1]/100,i=1-e[2]/100,o=i-r,a=0;return o<1&&(a=(i-o)/(1-o)),[e[0],o*100,a*100]};ut.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};ut.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};ut.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};ut.gray.hsl=function(e){return[0,0,e[0]]};ut.gray.hsv=ut.gray.hsl;ut.gray.hwb=function(e){return[0,100,e[0]]};ut.gray.cmyk=function(e){return[0,0,0,e[0]]};ut.gray.lab=function(e){return[e[0],0,0]};ut.gray.hex=function(e){let r=Math.round(e[0]/100*255)&255,i=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(i.length)+i};ut.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var Mvt=C((aoi,kvt)=>{"use strict";var nj=Xge();function Z4r(){let e={},r=Object.keys(nj);for(let n=r.length,i=0;i<n;i++)e[r[i]]={distance:-1,parent:null};return e}function X4r(e){let r=Z4r(),n=[e];for(r[e].distance=0;n.length;){let i=n.pop(),o=Object.keys(nj[i]);for(let a=o.length,c=0;c<a;c++){let u=o[c],l=r[u];l.distance===-1&&(l.distance=r[i].distance+1,l.parent=i,n.unshift(u))}}return r}function eLr(e,r){return function(n){return r(e(n))}}function tLr(e,r){let n=[r[e].parent,e],i=nj[r[e].parent][e],o=r[e].parent;for(;r[o].parent;)n.unshift(r[o].parent),i=eLr(nj[r[o].parent][o],i),o=r[o].parent;return i.conversion=n,i}kvt.exports=function(e){let r=X4r(e),n={},i=Object.keys(r);for(let o=i.length,a=0;a<o;a++){let c=i[a];r[c].parent!==null&&(n[c]=tLr(c,r))}return n}});var Lvt=C((coi,Nvt)=>{"use strict";var e0e=Xge(),rLr=Mvt(),uC={},nLr=Object.keys(e0e);function iLr(e){let r=function(...n){let i=n[0];return i==null?i:(i.length>1&&(n=i),e(n))};return"conversion"in e&&(r.conversion=e.conversion),r}function oLr(e){let r=function(...n){let i=n[0];if(i==null)return i;i.length>1&&(n=i);let o=e(n);if(typeof o=="object")for(let a=o.length,c=0;c<a;c++)o[c]=Math.round(o[c]);return o};return"conversion"in e&&(r.conversion=e.conversion),r}nLr.forEach(e=>{uC[e]={},Object.defineProperty(uC[e],"channels",{value:e0e[e].channels}),Object.defineProperty(uC[e],"labels",{value:e0e[e].labels});let r=rLr(e);Object.keys(r).forEach(i=>{let o=r[i];uC[e][i]=oLr(o),uC[e][i].raw=iLr(o)})});Nvt.exports=uC});var oj=C((uoi,Uvt)=>{"use strict";var $vt=(e,r)=>(...n)=>`\x1B[${e(...n)+r}m`,Bvt=(e,r)=>(...n)=>{let i=e(...n);return`\x1B[${38+r};5;${i}m`},qvt=(e,r)=>(...n)=>{let i=e(...n);return`\x1B[${38+r};2;${i[0]};${i[1]};${i[2]}m`},ij=e=>e,jvt=(e,r,n)=>[e,r,n],lC=(e,r,n)=>{Object.defineProperty(e,r,{get:()=>{let i=n();return Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0}),i},enumerable:!0,configurable:!0})},t0e,pC=(e,r,n,i)=>{t0e===void 0&&(t0e=Lvt());let o=i?10:0,a={};for(let[c,u]of Object.entries(t0e)){let l=c==="ansi16"?"ansi":c;c===r?a[l]=e(n,o):typeof u=="object"&&(a[l]=e(u[r],o))}return a};function sLr(){let e=new Map,r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};r.color.gray=r.color.blackBright,r.bgColor.bgGray=r.bgColor.bgBlackBright,r.color.grey=r.color.blackBright,r.bgColor.bgGrey=r.bgColor.bgBlackBright;for(let[n,i]of Object.entries(r)){for(let[o,a]of Object.entries(i))r[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},i[o]=r[o],e.set(a[0],a[1]);Object.defineProperty(r,n,{value:i,enumerable:!1})}return Object.defineProperty(r,"codes",{value:e,enumerable:!1}),r.color.close="\x1B[39m",r.bgColor.close="\x1B[49m",lC(r.color,"ansi",()=>pC($vt,"ansi16",ij,!1)),lC(r.color,"ansi256",()=>pC(Bvt,"ansi256",ij,!1)),lC(r.color,"ansi16m",()=>pC(qvt,"rgb",jvt,!1)),lC(r.bgColor,"ansi",()=>pC($vt,"ansi16",ij,!0)),lC(r.bgColor,"ansi256",()=>pC(Bvt,"ansi256",ij,!0)),lC(r.bgColor,"ansi16m",()=>pC(qvt,"rgb",jvt,!0)),r}Object.defineProperty(Uvt,"exports",{enumerable:!0,get:sLr})});var i0e=C((loi,Hvt)=>{"use strict";var $R=Mme(),aLr=W2(),cLr=oj(),n0e=new Set(["\x1B","\x9B"]),uLr=39,Wvt=e=>`${n0e.values().next().value}[${e}m`,lLr=e=>e.split(" ").map(r=>$R(r)),r0e=(e,r,n)=>{let i=[...r],o=!1,a=$R(aLr(e[e.length-1]));for(let[c,u]of i.entries()){let l=$R(u);if(a+l<=n?e[e.length-1]+=u:(e.push(u),a=0),n0e.has(u))o=!0;else if(o&&u==="m"){o=!1;continue}o||(a+=l,a===n&&c<i.length-1&&(e.push(""),a=0))}!a&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},pLr=e=>{let r=e.split(" "),n=r.length;for(;n>0&&!($R(r[n-1])>0);)n--;return n===r.length?e:r.slice(0,n).join(" ")+r.slice(n).join("")},fLr=(e,r,n={})=>{if(n.trim!==!1&&e.trim()==="")return"";let i="",o="",a,c=lLr(e),u=[""];for(let[l,p]of e.split(" ").entries()){n.trim!==!1&&(u[u.length-1]=u[u.length-1].trimLeft());let f=$R(u[u.length-1]);if(l!==0&&(f>=r&&(n.wordWrap===!1||n.trim===!1)&&(u.push(""),f=0),(f>0||n.trim===!1)&&(u[u.length-1]+=" ",f++)),n.hard&&c[l]>r){let g=r-f,x=1+Math.floor((c[l]-g-1)/r);Math.floor((c[l]-1)/r)<x&&u.push(""),r0e(u,p,r);continue}if(f+c[l]>r&&f>0&&c[l]>0){if(n.wordWrap===!1&&f<r){r0e(u,p,r);continue}u.push("")}if(f+c[l]>r&&n.wordWrap===!1){r0e(u,p,r);continue}u[u.length-1]+=p}n.trim!==!1&&(u=u.map(pLr)),i=u.join(`
|
|
441
|
+
${Y("Thanks a lot for your help! \u{1F64F}")}`)}catch(u){let l=`${Y(Ie("Oops. We could not send the error report."))}`;console.log(l),console.error(`${Ny("Error report submission failed due to: ")}`,u)}await pvt({prompt:!c,error:e,cliVersion:r,enginesVersion:n,command:i}),process.exit(1)}var dvt,hvt=D(()=>{"use strict";Ge();dvt=J(Qx());Jht();Cme();fvt();YP()});function Gge(){try{return Hge.default.existsSync("/.dockerenv")||Hge.default.existsSync("/run/.containerenv")||process.pid===1||process.env.KUBERNETES_SERVICE_HOST!==void 0}catch{return!1}}var Hge,mvt=D(()=>{"use strict";Hge=J(require("node:fs"))});function zge(){return process.env.npm_lifecycle_event!==void 0&&process.env.npm_command!=="run-script"}var gvt=D(()=>{"use strict"});function Vge(e){return(0,xvt.isIdentifierName)(e)}var xvt,yvt=D(()=>{"use strict";xvt=J(vae())});function Kge(e,r){let n={};for(let i of Object.keys(e))n[i]=r(e[i],i);return n}var bvt=D(()=>{"use strict"});function Yge(){return process.env.GIT_EXEC_PATH!==void 0||process.env.GIT_DIR!==void 0||process.env.GIT_INDEX_FILE!==void 0||process.env.GIT_PREFIX!==void 0}var vvt=D(()=>{"use strict"});function Gd(e,r){Object.defineProperty(e,"name",{value:r,configurable:!0})}var Evt=D(()=>{"use strict"});var ot=D(()=>{"use strict";zet();Yet();U_();Jet();Qet();bue();bue();ott();ctt();Qce();rB();l_();wot();_ot();Q0();_P();Aot();Qht();Zht();Xht();Cme();Mxt();syt();hue();Lse();Obt();Sge();qbt();fue();ahe();hvt();Sme();Pge();mvt();gvt();_me();yvt();YP();due();bvt();vvt();kle();G_();Kq();Sue();Evt();che();Cq();Vce();X0();Dl()});var Dvt=C((toi,V4r)=>{V4r.exports={name:"@prisma/engines-version",version:"6.5.0-43.56bd63f620196b375ea597255b04817886e98eca",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek <suchanek@prisma.io>",prisma:{enginesVersion:"56bd63f620196b375ea597255b04817886e98eca"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.76",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var Tvt=C(tj=>{"use strict";Object.defineProperty(tj,"__esModule",{value:!0});tj.enginesVersion=void 0;tj.enginesVersion=Dvt().prisma.enginesVersion});var Ovt=C((noi,Avt)=>{"use strict";var K4r=Qre(),Y4r=rne();Avt.exports=K4r(()=>{Y4r(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})});var Zge=C(cC=>{"use strict";var J4r=Ovt(),rj=!1;cC.show=(e=process.stderr)=>{e.isTTY&&(rj=!1,e.write("\x1B[?25h"))};cC.hide=(e=process.stderr)=>{e.isTTY&&(J4r(),rj=!0,e.write("\x1B[?25l"))};cC.toggle=(e,r)=>{e!==void 0&&(rj=e),rj?cC.show(r):cC.hide(r)}});var Pvt=C((ooi,Ivt)=>{"use strict";Ivt.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var Xge=C((soi,Rvt)=>{"use strict";var LR=Pvt(),Fvt={};for(let e of Object.keys(LR))Fvt[LR[e]]=e;var ut={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};Rvt.exports=ut;for(let e of Object.keys(ut)){if(!("channels"in ut[e]))throw new Error("missing channels property: "+e);if(!("labels"in ut[e]))throw new Error("missing channel labels property: "+e);if(ut[e].labels.length!==ut[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:r,labels:n}=ut[e];delete ut[e].channels,delete ut[e].labels,Object.defineProperty(ut[e],"channels",{value:r}),Object.defineProperty(ut[e],"labels",{value:n})}ut.rgb.hsl=function(e){let r=e[0]/255,n=e[1]/255,i=e[2]/255,o=Math.min(r,n,i),a=Math.max(r,n,i),c=a-o,u,l;a===o?u=0:r===a?u=(n-i)/c:n===a?u=2+(i-r)/c:i===a&&(u=4+(r-n)/c),u=Math.min(u*60,360),u<0&&(u+=360);let p=(o+a)/2;return a===o?l=0:p<=.5?l=c/(a+o):l=c/(2-a-o),[u,l*100,p*100]};ut.rgb.hsv=function(e){let r,n,i,o,a,c=e[0]/255,u=e[1]/255,l=e[2]/255,p=Math.max(c,u,l),f=p-Math.min(c,u,l),g=function(x){return(p-x)/6/f+1/2};return f===0?(o=0,a=0):(a=f/p,r=g(c),n=g(u),i=g(l),c===p?o=i-n:u===p?o=1/3+r-i:l===p&&(o=2/3+n-r),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,p*100]};ut.rgb.hwb=function(e){let r=e[0],n=e[1],i=e[2],o=ut.rgb.hsl(e)[0],a=1/255*Math.min(r,Math.min(n,i));return i=1-1/255*Math.max(r,Math.max(n,i)),[o,a*100,i*100]};ut.rgb.cmyk=function(e){let r=e[0]/255,n=e[1]/255,i=e[2]/255,o=Math.min(1-r,1-n,1-i),a=(1-r-o)/(1-o)||0,c=(1-n-o)/(1-o)||0,u=(1-i-o)/(1-o)||0;return[a*100,c*100,u*100,o*100]};function Q4r(e,r){return(e[0]-r[0])**2+(e[1]-r[1])**2+(e[2]-r[2])**2}ut.rgb.keyword=function(e){let r=Fvt[e];if(r)return r;let n=1/0,i;for(let o of Object.keys(LR)){let a=LR[o],c=Q4r(e,a);c<n&&(n=c,i=o)}return i};ut.keyword.rgb=function(e){return LR[e]};ut.rgb.xyz=function(e){let r=e[0]/255,n=e[1]/255,i=e[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;let o=r*.4124+n*.3576+i*.1805,a=r*.2126+n*.7152+i*.0722,c=r*.0193+n*.1192+i*.9505;return[o*100,a*100,c*100]};ut.rgb.lab=function(e){let r=ut.rgb.xyz(e),n=r[0],i=r[1],o=r[2];n/=95.047,i/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;let a=116*i-16,c=500*(n-i),u=200*(i-o);return[a,c,u]};ut.hsl.rgb=function(e){let r=e[0]/360,n=e[1]/100,i=e[2]/100,o,a,c;if(n===0)return c=i*255,[c,c,c];i<.5?o=i*(1+n):o=i+n-i*n;let u=2*i-o,l=[0,0,0];for(let p=0;p<3;p++)a=r+1/3*-(p-1),a<0&&a++,a>1&&a--,6*a<1?c=u+(o-u)*6*a:2*a<1?c=o:3*a<2?c=u+(o-u)*(2/3-a)*6:c=u,l[p]=c*255;return l};ut.hsl.hsv=function(e){let r=e[0],n=e[1]/100,i=e[2]/100,o=n,a=Math.max(i,.01);i*=2,n*=i<=1?i:2-i,o*=a<=1?a:2-a;let c=(i+n)/2,u=i===0?2*o/(a+o):2*n/(i+n);return[r,u*100,c*100]};ut.hsv.rgb=function(e){let r=e[0]/60,n=e[1]/100,i=e[2]/100,o=Math.floor(r)%6,a=r-Math.floor(r),c=255*i*(1-n),u=255*i*(1-n*a),l=255*i*(1-n*(1-a));switch(i*=255,o){case 0:return[i,l,c];case 1:return[u,i,c];case 2:return[c,i,l];case 3:return[c,u,i];case 4:return[l,c,i];case 5:return[i,c,u]}};ut.hsv.hsl=function(e){let r=e[0],n=e[1]/100,i=e[2]/100,o=Math.max(i,.01),a,c;c=(2-n)*i;let u=(2-n)*o;return a=n*o,a/=u<=1?u:2-u,a=a||0,c/=2,[r,a*100,c*100]};ut.hwb.rgb=function(e){let r=e[0]/360,n=e[1]/100,i=e[2]/100,o=n+i,a;o>1&&(n/=o,i/=o);let c=Math.floor(6*r),u=1-i;a=6*r-c,c&1&&(a=1-a);let l=n+a*(u-n),p,f,g;switch(c){default:case 6:case 0:p=u,f=l,g=n;break;case 1:p=l,f=u,g=n;break;case 2:p=n,f=u,g=l;break;case 3:p=n,f=l,g=u;break;case 4:p=l,f=n,g=u;break;case 5:p=u,f=n,g=l;break}return[p*255,f*255,g*255]};ut.cmyk.rgb=function(e){let r=e[0]/100,n=e[1]/100,i=e[2]/100,o=e[3]/100,a=1-Math.min(1,r*(1-o)+o),c=1-Math.min(1,n*(1-o)+o),u=1-Math.min(1,i*(1-o)+o);return[a*255,c*255,u*255]};ut.xyz.rgb=function(e){let r=e[0]/100,n=e[1]/100,i=e[2]/100,o,a,c;return o=r*3.2406+n*-1.5372+i*-.4986,a=r*-.9689+n*1.8758+i*.0415,c=r*.0557+n*-.204+i*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),c=Math.min(Math.max(0,c),1),[o*255,a*255,c*255]};ut.xyz.lab=function(e){let r=e[0],n=e[1],i=e[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;let o=116*n-16,a=500*(r-n),c=200*(n-i);return[o,a,c]};ut.lab.xyz=function(e){let r=e[0],n=e[1],i=e[2],o,a,c;a=(r+16)/116,o=n/500+a,c=a-i/200;let u=a**3,l=o**3,p=c**3;return a=u>.008856?u:(a-16/116)/7.787,o=l>.008856?l:(o-16/116)/7.787,c=p>.008856?p:(c-16/116)/7.787,o*=95.047,a*=100,c*=108.883,[o,a,c]};ut.lab.lch=function(e){let r=e[0],n=e[1],i=e[2],o;o=Math.atan2(i,n)*360/2/Math.PI,o<0&&(o+=360);let c=Math.sqrt(n*n+i*i);return[r,c,o]};ut.lch.lab=function(e){let r=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),c=n*Math.sin(o);return[r,a,c]};ut.rgb.ansi16=function(e,r=null){let[n,i,o]=e,a=r===null?ut.rgb.hsv(e)[2]:r;if(a=Math.round(a/50),a===0)return 30;let c=30+(Math.round(o/255)<<2|Math.round(i/255)<<1|Math.round(n/255));return a===2&&(c+=60),c};ut.hsv.ansi16=function(e){return ut.rgb.ansi16(ut.hsv.rgb(e),e[2])};ut.rgb.ansi256=function(e){let r=e[0],n=e[1],i=e[2];return r===n&&n===i?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)};ut.ansi16.rgb=function(e){let r=e%10;if(r===0||r===7)return e>50&&(r+=3.5),r=r/10.5*255,[r,r,r];let n=(~~(e>50)+1)*.5,i=(r&1)*n*255,o=(r>>1&1)*n*255,a=(r>>2&1)*n*255;return[i,o,a]};ut.ansi256.rgb=function(e){if(e>=232){let a=(e-232)*10+8;return[a,a,a]}e-=16;let r,n=Math.floor(e/36)/5*255,i=Math.floor((r=e%36)/6)/5*255,o=r%6/5*255;return[n,i,o]};ut.rgb.hex=function(e){let n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};ut.hex.rgb=function(e){let r=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];let n=r[0];r[0].length===3&&(n=n.split("").map(u=>u+u).join(""));let i=parseInt(n,16),o=i>>16&255,a=i>>8&255,c=i&255;return[o,a,c]};ut.rgb.hcg=function(e){let r=e[0]/255,n=e[1]/255,i=e[2]/255,o=Math.max(Math.max(r,n),i),a=Math.min(Math.min(r,n),i),c=o-a,u,l;return c<1?u=a/(1-c):u=0,c<=0?l=0:o===r?l=(n-i)/c%6:o===n?l=2+(i-r)/c:l=4+(r-n)/c,l/=6,l%=1,[l*360,c*100,u*100]};ut.hsl.hcg=function(e){let r=e[1]/100,n=e[2]/100,i=n<.5?2*r*n:2*r*(1-n),o=0;return i<1&&(o=(n-.5*i)/(1-i)),[e[0],i*100,o*100]};ut.hsv.hcg=function(e){let r=e[1]/100,n=e[2]/100,i=r*n,o=0;return i<1&&(o=(n-i)/(1-i)),[e[0],i*100,o*100]};ut.hcg.rgb=function(e){let r=e[0]/360,n=e[1]/100,i=e[2]/100;if(n===0)return[i*255,i*255,i*255];let o=[0,0,0],a=r%1*6,c=a%1,u=1-c,l=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=c,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=c;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=c,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return l=(1-n)*i,[(n*o[0]+l)*255,(n*o[1]+l)*255,(n*o[2]+l)*255]};ut.hcg.hsv=function(e){let r=e[1]/100,n=e[2]/100,i=r+n*(1-r),o=0;return i>0&&(o=r/i),[e[0],o*100,i*100]};ut.hcg.hsl=function(e){let r=e[1]/100,i=e[2]/100*(1-r)+.5*r,o=0;return i>0&&i<.5?o=r/(2*i):i>=.5&&i<1&&(o=r/(2*(1-i))),[e[0],o*100,i*100]};ut.hcg.hwb=function(e){let r=e[1]/100,n=e[2]/100,i=r+n*(1-r);return[e[0],(i-r)*100,(1-i)*100]};ut.hwb.hcg=function(e){let r=e[1]/100,i=1-e[2]/100,o=i-r,a=0;return o<1&&(a=(i-o)/(1-o)),[e[0],o*100,a*100]};ut.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};ut.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};ut.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};ut.gray.hsl=function(e){return[0,0,e[0]]};ut.gray.hsv=ut.gray.hsl;ut.gray.hwb=function(e){return[0,100,e[0]]};ut.gray.cmyk=function(e){return[0,0,0,e[0]]};ut.gray.lab=function(e){return[e[0],0,0]};ut.gray.hex=function(e){let r=Math.round(e[0]/100*255)&255,i=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(i.length)+i};ut.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var Mvt=C((aoi,kvt)=>{"use strict";var nj=Xge();function Z4r(){let e={},r=Object.keys(nj);for(let n=r.length,i=0;i<n;i++)e[r[i]]={distance:-1,parent:null};return e}function X4r(e){let r=Z4r(),n=[e];for(r[e].distance=0;n.length;){let i=n.pop(),o=Object.keys(nj[i]);for(let a=o.length,c=0;c<a;c++){let u=o[c],l=r[u];l.distance===-1&&(l.distance=r[i].distance+1,l.parent=i,n.unshift(u))}}return r}function eLr(e,r){return function(n){return r(e(n))}}function tLr(e,r){let n=[r[e].parent,e],i=nj[r[e].parent][e],o=r[e].parent;for(;r[o].parent;)n.unshift(r[o].parent),i=eLr(nj[r[o].parent][o],i),o=r[o].parent;return i.conversion=n,i}kvt.exports=function(e){let r=X4r(e),n={},i=Object.keys(r);for(let o=i.length,a=0;a<o;a++){let c=i[a];r[c].parent!==null&&(n[c]=tLr(c,r))}return n}});var Lvt=C((coi,Nvt)=>{"use strict";var e0e=Xge(),rLr=Mvt(),uC={},nLr=Object.keys(e0e);function iLr(e){let r=function(...n){let i=n[0];return i==null?i:(i.length>1&&(n=i),e(n))};return"conversion"in e&&(r.conversion=e.conversion),r}function oLr(e){let r=function(...n){let i=n[0];if(i==null)return i;i.length>1&&(n=i);let o=e(n);if(typeof o=="object")for(let a=o.length,c=0;c<a;c++)o[c]=Math.round(o[c]);return o};return"conversion"in e&&(r.conversion=e.conversion),r}nLr.forEach(e=>{uC[e]={},Object.defineProperty(uC[e],"channels",{value:e0e[e].channels}),Object.defineProperty(uC[e],"labels",{value:e0e[e].labels});let r=rLr(e);Object.keys(r).forEach(i=>{let o=r[i];uC[e][i]=oLr(o),uC[e][i].raw=iLr(o)})});Nvt.exports=uC});var oj=C((uoi,Uvt)=>{"use strict";var $vt=(e,r)=>(...n)=>`\x1B[${e(...n)+r}m`,Bvt=(e,r)=>(...n)=>{let i=e(...n);return`\x1B[${38+r};5;${i}m`},qvt=(e,r)=>(...n)=>{let i=e(...n);return`\x1B[${38+r};2;${i[0]};${i[1]};${i[2]}m`},ij=e=>e,jvt=(e,r,n)=>[e,r,n],lC=(e,r,n)=>{Object.defineProperty(e,r,{get:()=>{let i=n();return Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0}),i},enumerable:!0,configurable:!0})},t0e,pC=(e,r,n,i)=>{t0e===void 0&&(t0e=Lvt());let o=i?10:0,a={};for(let[c,u]of Object.entries(t0e)){let l=c==="ansi16"?"ansi":c;c===r?a[l]=e(n,o):typeof u=="object"&&(a[l]=e(u[r],o))}return a};function sLr(){let e=new Map,r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};r.color.gray=r.color.blackBright,r.bgColor.bgGray=r.bgColor.bgBlackBright,r.color.grey=r.color.blackBright,r.bgColor.bgGrey=r.bgColor.bgBlackBright;for(let[n,i]of Object.entries(r)){for(let[o,a]of Object.entries(i))r[o]={open:`\x1B[${a[0]}m`,close:`\x1B[${a[1]}m`},i[o]=r[o],e.set(a[0],a[1]);Object.defineProperty(r,n,{value:i,enumerable:!1})}return Object.defineProperty(r,"codes",{value:e,enumerable:!1}),r.color.close="\x1B[39m",r.bgColor.close="\x1B[49m",lC(r.color,"ansi",()=>pC($vt,"ansi16",ij,!1)),lC(r.color,"ansi256",()=>pC(Bvt,"ansi256",ij,!1)),lC(r.color,"ansi16m",()=>pC(qvt,"rgb",jvt,!1)),lC(r.bgColor,"ansi",()=>pC($vt,"ansi16",ij,!0)),lC(r.bgColor,"ansi256",()=>pC(Bvt,"ansi256",ij,!0)),lC(r.bgColor,"ansi16m",()=>pC(qvt,"rgb",jvt,!0)),r}Object.defineProperty(Uvt,"exports",{enumerable:!0,get:sLr})});var i0e=C((loi,Hvt)=>{"use strict";var $R=Mme(),aLr=W2(),cLr=oj(),n0e=new Set(["\x1B","\x9B"]),uLr=39,Wvt=e=>`${n0e.values().next().value}[${e}m`,lLr=e=>e.split(" ").map(r=>$R(r)),r0e=(e,r,n)=>{let i=[...r],o=!1,a=$R(aLr(e[e.length-1]));for(let[c,u]of i.entries()){let l=$R(u);if(a+l<=n?e[e.length-1]+=u:(e.push(u),a=0),n0e.has(u))o=!0;else if(o&&u==="m"){o=!1;continue}o||(a+=l,a===n&&c<i.length-1&&(e.push(""),a=0))}!a&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},pLr=e=>{let r=e.split(" "),n=r.length;for(;n>0&&!($R(r[n-1])>0);)n--;return n===r.length?e:r.slice(0,n).join(" ")+r.slice(n).join("")},fLr=(e,r,n={})=>{if(n.trim!==!1&&e.trim()==="")return"";let i="",o="",a,c=lLr(e),u=[""];for(let[l,p]of e.split(" ").entries()){n.trim!==!1&&(u[u.length-1]=u[u.length-1].trimLeft());let f=$R(u[u.length-1]);if(l!==0&&(f>=r&&(n.wordWrap===!1||n.trim===!1)&&(u.push(""),f=0),(f>0||n.trim===!1)&&(u[u.length-1]+=" ",f++)),n.hard&&c[l]>r){let g=r-f,x=1+Math.floor((c[l]-g-1)/r);Math.floor((c[l]-1)/r)<x&&u.push(""),r0e(u,p,r);continue}if(f+c[l]>r&&f>0&&c[l]>0){if(n.wordWrap===!1&&f<r){r0e(u,p,r);continue}u.push("")}if(f+c[l]>r&&n.wordWrap===!1){r0e(u,p,r);continue}u[u.length-1]+=p}n.trim!==!1&&(u=u.map(pLr)),i=u.join(`
|
|
442
442
|
`);for(let[l,p]of[...i].entries()){if(o+=p,n0e.has(p)){let g=parseFloat(/\d[^m]*/.exec(i.slice(l,l+4)));a=g===uLr?null:g}let f=cLr.codes.get(Number(a));a&&f&&(i[l+1]===`
|
|
443
443
|
`?o+=Wvt(f):p===`
|
|
444
444
|
`&&(o+=Wvt(a)))}return o};Hvt.exports=(e,r,n)=>String(e).normalize().replace(/\r\n/g,`
|
|
@@ -456,7 +456,7 @@ ${Y("Thanks a lot for your help! \u{1F64F}")}`)}catch(u){let l=`${Y(Ie("Oops. We
|
|
|
456
456
|
`);return a!==-1&&(r=ULr(r,o,i,a)),i+r+o},p0e,REt=(e,...r)=>{let[n]=r;if(!hj(n)||!hj(n.raw))return r.join(" ");let i=r.slice(1),o=[n.raw[0]];for(let a=1;a<n.length;a++)o.push(String(i[a-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[a]));return p0e===void 0&&(p0e=AEt()),p0e(e,o.join(""))};Object.defineProperties(mj.prototype,fC);var xj=mj();xj.supportsColor=f0e;xj.stderr=mj({level:d0e?d0e.level:0});xj.stderr.supportsColor=d0e;kEt.exports=xj});var MEt=C((Qoi,GLr)=>{GLr.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var $Et=C((Zoi,LEt)=>{"use strict";var yj=Object.assign({},MEt()),NEt=Object.keys(yj);Object.defineProperty(yj,"random",{get(){let e=Math.floor(Math.random()*NEt.length),r=NEt[e];return yj[r]}});LEt.exports=yj});var x0e=C((Xoi,BEt)=>{"use strict";BEt.exports=()=>process.platform!=="win32"?!0:!!process.env.CI||!!process.env.WT_SESSION||process.env.TERM_PROGRAM==="vscode"||process.env.TERM==="xterm-256color"||process.env.TERM==="alacritty"});var jEt=C((esi,qEt)=>{"use strict";var iy=g0e(),zLr=x0e(),VLr={info:iy.blue("\u2139"),success:iy.green("\u2714"),warning:iy.yellow("\u26A0"),error:iy.red("\u2716")},KLr={info:iy.blue("i"),success:iy.green("\u221A"),warning:iy.yellow("\u203C"),error:iy.red("\xD7")};qEt.exports=zLr()?VLr:KLr});var UEt=C((tsi,bj)=>{"use strict";var YLr=function(){"use strict";function e(c,u,l,p){var f;typeof u=="object"&&(l=u.depth,p=u.prototype,f=u.filter,u=u.circular);var g=[],x=[],b=typeof Buffer<"u";typeof u>"u"&&(u=!0),typeof l>"u"&&(l=1/0);function v(S,T){if(S===null)return null;if(T==0)return S;var P,R;if(typeof S!="object")return S;if(e.__isArray(S))P=[];else if(e.__isRegExp(S))P=new RegExp(S.source,a(S)),S.lastIndex&&(P.lastIndex=S.lastIndex);else if(e.__isDate(S))P=new Date(S.getTime());else{if(b&&Buffer.isBuffer(S))return Buffer.allocUnsafe?P=Buffer.allocUnsafe(S.length):P=new Buffer(S.length),S.copy(P),P;typeof p>"u"?(R=Object.getPrototypeOf(S),P=Object.create(R)):(P=Object.create(p),R=p)}if(u){var M=g.indexOf(S);if(M!=-1)return x[M];g.push(S),x.push(P)}for(var L in S){var N;R&&(N=Object.getOwnPropertyDescriptor(R,L)),!(N&&N.set==null)&&(P[L]=v(S[L],T-1))}return P}return v(c,l)}e.clonePrototype=function(u){if(u===null)return null;var l=function(){};return l.prototype=u,new l};function r(c){return Object.prototype.toString.call(c)}e.__objToStr=r;function n(c){return typeof c=="object"&&r(c)==="[object Date]"}e.__isDate=n;function i(c){return typeof c=="object"&&r(c)==="[object Array]"}e.__isArray=i;function o(c){return typeof c=="object"&&r(c)==="[object RegExp]"}e.__isRegExp=o;function a(c){var u="";return c.global&&(u+="g"),c.ignoreCase&&(u+="i"),c.multiline&&(u+="m"),u}return e.__getRegExpFlags=a,e}();typeof bj=="object"&&bj.exports&&(bj.exports=YLr)});var HEt=C((rsi,WEt)=>{"use strict";var JLr=UEt();WEt.exports=function(e,r){return e=e||{},Object.keys(r).forEach(function(n){typeof e[n]>"u"&&(e[n]=JLr(r[n]))}),e}});var zEt=C((nsi,GEt)=>{"use strict";GEt.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var JEt=C((isi,y0e)=>{"use strict";var QLr=HEt(),WR=zEt(),KEt={nul:0,control:0};y0e.exports=function(r){return YEt(r,KEt)};y0e.exports.config=function(e){return e=QLr(e||{},KEt),function(n){return YEt(n,e)}};function YEt(e,r){if(typeof e!="string")return VEt(e,r);for(var n=0,i=0;i<e.length;i++){var o=VEt(e.charCodeAt(i),r);if(o<0)return-1;n+=o}return n}function VEt(e,r){return e===0?r.nul:e<32||e>=127&&e<160?r.control:ZLr(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function ZLr(e){var r=0,n=WR.length-1,i;if(e<WR[0][0]||e>WR[n][1])return!1;for(;n>=r;)if(i=Math.floor((r+n)/2),e>WR[i][1])r=i+1;else if(e<WR[i][0])n=i-1;else return!0;return!1}});var ZEt=C((osi,QEt)=>{"use strict";QEt.exports=({stream:e=process.stdout}={})=>!!(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))});var twt=C((ssi,ewt)=>{"use strict";var{Buffer:xf}=require("buffer"),XEt=Symbol.for("BufferList");function ri(e){if(!(this instanceof ri))return new ri(e);ri._init.call(this,e)}ri._init=function(r){Object.defineProperty(this,XEt,{value:!0}),this._bufs=[],this.length=0,r&&this.append(r)};ri.prototype._new=function(r){return new ri(r)};ri.prototype._offset=function(r){if(r===0)return[0,0];let n=0;for(let i=0;i<this._bufs.length;i++){let o=n+this._bufs[i].length;if(r<o||i===this._bufs.length-1)return[i,r-n];n=o}};ri.prototype._reverseOffset=function(e){let r=e[0],n=e[1];for(let i=0;i<r;i++)n+=this._bufs[i].length;return n};ri.prototype.get=function(r){if(r>this.length||r<0)return;let n=this._offset(r);return this._bufs[n[0]][n[1]]};ri.prototype.slice=function(r,n){return typeof r=="number"&&r<0&&(r+=this.length),typeof n=="number"&&n<0&&(n+=this.length),this.copy(null,0,r,n)};ri.prototype.copy=function(r,n,i,o){if((typeof i!="number"||i<0)&&(i=0),(typeof o!="number"||o>this.length)&&(o=this.length),i>=this.length||o<=0)return r||xf.alloc(0);let a=!!r,c=this._offset(i),u=o-i,l=u,p=a&&n||0,f=c[1];if(i===0&&o===this.length){if(!a)return this._bufs.length===1?this._bufs[0]:xf.concat(this._bufs,this.length);for(let g=0;g<this._bufs.length;g++)this._bufs[g].copy(r,p),p+=this._bufs[g].length;return r}if(l<=this._bufs[c[0]].length-f)return a?this._bufs[c[0]].copy(r,n,f,f+l):this._bufs[c[0]].slice(f,f+l);a||(r=xf.allocUnsafe(u));for(let g=c[0];g<this._bufs.length;g++){let x=this._bufs[g].length-f;if(l>x)this._bufs[g].copy(r,p,f),p+=x;else{this._bufs[g].copy(r,p,f,f+l),p+=x;break}l-=x,f&&(f=0)}return r.length>p?r.slice(0,p):r};ri.prototype.shallowSlice=function(r,n){if(r=r||0,n=typeof n!="number"?this.length:n,r<0&&(r+=this.length),n<0&&(n+=this.length),r===n)return this._new();let i=this._offset(r),o=this._offset(n),a=this._bufs.slice(i[0],o[0]+1);return o[1]===0?a.pop():a[a.length-1]=a[a.length-1].slice(0,o[1]),i[1]!==0&&(a[0]=a[0].slice(i[1])),this._new(a)};ri.prototype.toString=function(r,n,i){return this.slice(n,i).toString(r)};ri.prototype.consume=function(r){if(r=Math.trunc(r),Number.isNaN(r)||r<=0)return this;for(;this._bufs.length;)if(r>=this._bufs[0].length)r-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(r),this.length-=r;break}return this};ri.prototype.duplicate=function(){let r=this._new();for(let n=0;n<this._bufs.length;n++)r.append(this._bufs[n]);return r};ri.prototype.append=function(r){if(r==null)return this;if(r.buffer)this._appendBuffer(xf.from(r.buffer,r.byteOffset,r.byteLength));else if(Array.isArray(r))for(let n=0;n<r.length;n++)this.append(r[n]);else if(this._isBufferList(r))for(let n=0;n<r._bufs.length;n++)this.append(r._bufs[n]);else typeof r=="number"&&(r=r.toString()),this._appendBuffer(xf.from(r));return this};ri.prototype._appendBuffer=function(r){this._bufs.push(r),this.length+=r.length};ri.prototype.indexOf=function(e,r,n){if(n===void 0&&typeof r=="string"&&(n=r,r=void 0),typeof e=="function"||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof e=="number"?e=xf.from([e]):typeof e=="string"?e=xf.from(e,n):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=xf.from(e.buffer,e.byteOffset,e.byteLength):xf.isBuffer(e)||(e=xf.from(e)),r=Number(r||0),isNaN(r)&&(r=0),r<0&&(r=this.length+r),r<0&&(r=0),e.length===0)return r>this.length?this.length:r;let i=this._offset(r),o=i[0],a=i[1];for(;o<this._bufs.length;o++){let c=this._bufs[o];for(;a<c.length;)if(c.length-a>=e.length){let l=c.indexOf(e,a);if(l!==-1)return this._reverseOffset([o,l]);a=c.length-e.length+1}else{let l=this._reverseOffset([o,a]);if(this._match(l,e))return l;a++}a=0}return-1};ri.prototype._match=function(e,r){if(this.length-e<r.length)return!1;for(let n=0;n<r.length;n++)if(this.get(e+n)!==r[n])return!1;return!0};(function(){let e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let r in e)(function(n){e[n]===null?ri.prototype[n]=function(i,o){return this.slice(i,i+o)[n](0,o)}:ri.prototype[n]=function(i=0){return this.slice(i,i+e[n])[n](0)}})(r)})();ri.prototype._isBufferList=function(r){return r instanceof ri||ri.isBufferList(r)};ri.isBufferList=function(r){return r!=null&&r[XEt]};ewt.exports=ri});var rwt=C((asi,vj)=>{"use strict";var b0e=Lx().Duplex,XLr=cc(),HR=twt();function qa(e){if(!(this instanceof qa))return new qa(e);if(typeof e=="function"){this._callback=e;let r=function(i){this._callback&&(this._callback(i),this._callback=null)}.bind(this);this.on("pipe",function(i){i.on("error",r)}),this.on("unpipe",function(i){i.removeListener("error",r)}),e=null}HR._init.call(this,e),b0e.call(this)}XLr(qa,b0e);Object.assign(qa.prototype,HR.prototype);qa.prototype._new=function(r){return new qa(r)};qa.prototype._write=function(r,n,i){this._appendBuffer(r),typeof i=="function"&&i()};qa.prototype._read=function(r){if(!this.length)return this.push(null);r=Math.min(r,this.length),this.push(this.slice(0,r)),this.consume(r)};qa.prototype.end=function(r){b0e.prototype.end.call(this,r),this._callback&&(this._callback(null,this.slice()),this._callback=null)};qa.prototype._destroy=function(r,n){this._bufs.length=0,this.length=0,n(r)};qa.prototype._isBufferList=function(r){return r instanceof qa||r instanceof HR||qa.isBufferList(r)};qa.isBufferList=HR.isBufferList;vj.exports=qa;vj.exports.BufferListStream=qa;vj.exports.BufferList=HR});var _0e=C((csi,S0e)=>{"use strict";var e8r=require("readline"),t8r=g0e(),nwt=Zge(),Ej=$Et(),wj=jEt(),r8r=W2(),n8r=JEt(),i8r=ZEt(),o8r=x0e(),{BufferListStream:s8r}=rwt(),v0e=Symbol("text"),E0e=Symbol("prefixText"),a8r=3,w0e=class{constructor(){this.requests=0,this.mutedStream=new s8r,this.mutedStream.pipe(process.stdout);let r=this;this.ourEmit=function(n,i,...o){let{stdin:a}=process;if(r.requests>0||a.emit===r.ourEmit){if(n==="keypress")return;n==="data"&&i.includes(a8r)&&process.emit("SIGINT"),Reflect.apply(r.oldEmit,this,[n,i,...o])}else Reflect.apply(process.stdin.emit,this,[n,i,...o])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=e8r.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},Sj,_j=class{constructor(r){Sj||(Sj=new w0e),typeof r=="string"&&(r={text:r}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...r},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:i8r({stream:this.stream}),this.isSilent=typeof this.options.isSilent=="boolean"?this.options.isSilent:!1,this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(r=0){if(!(r>=0&&Number.isInteger(r)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=r}_updateInterval(r){r!==void 0&&(this.interval=r)}get spinner(){return this._spinner}set spinner(r){if(this.frameIndex=0,typeof r=="object"){if(r.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=r}else if(!o8r())this._spinner=Ej.line;else if(r===void 0)this._spinner=Ej.dots;else if(r!=="default"&&Ej[r])this._spinner=Ej[r];else throw new Error(`There is no built-in spinner named '${r}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[v0e]}set text(r){this[v0e]=r,this.updateLineCount()}get prefixText(){return this[E0e]}set prefixText(r){this[E0e]=r,this.updateLineCount()}get isSpinning(){return this.id!==void 0}getFullPrefixText(r=this[E0e],n=" "){return typeof r=="string"?r+n:typeof r=="function"?r()+n:""}updateLineCount(){let r=this.stream.columns||80,n=this.getFullPrefixText(this.prefixText,"-");this.lineCount=0;for(let i of r8r(n+"--"+this[v0e]).split(`
|
|
457
457
|
`))this.lineCount+=Math.max(1,Math.ceil(n8r(i)/r))}get isEnabled(){return this._isEnabled&&!this.isSilent}set isEnabled(r){if(typeof r!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this._isEnabled=r}get isSilent(){return this._isSilent}set isSilent(r){if(typeof r!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this._isSilent=r}frame(){let{frames:r}=this.spinner,n=r[this.frameIndex];this.color&&(n=t8r[this.color](n)),this.frameIndex=++this.frameIndex%r.length;let i=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",o=typeof this.text=="string"?" "+this.text:"";return i+n+o}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let r=0;r<this.linesToClear;r++)r>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.isSilent?this:(this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this)}start(r){return r&&(this.text=r),this.isSilent?this:this.isEnabled?this.isSpinning?this:(this.hideCursor&&nwt.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,Sj.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
|
|
458
458
|
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&nwt.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(Sj.stop(),this.isDiscardingStdin=!1),this):this}succeed(r){return this.stopAndPersist({symbol:wj.success,text:r})}fail(r){return this.stopAndPersist({symbol:wj.error,text:r})}warn(r){return this.stopAndPersist({symbol:wj.warning,text:r})}info(r){return this.stopAndPersist({symbol:wj.info,text:r})}stopAndPersist(r={}){if(this.isSilent)return this;let n=r.prefixText||this.prefixText,i=r.text||this.text,o=typeof i=="string"?" "+i:"";return this.stop(),this.stream.write(`${this.getFullPrefixText(n," ")}${r.symbol||" "}${o}
|
|
459
|
-
`),this}},c8r=function(e){return new _j(e)};S0e.exports=c8r;S0e.exports.promise=(e,r)=>{if(typeof e.then!="function")throw new TypeError("Parameter `action` must be a Promise");let n=new _j(r);return n.start(),(async()=>{try{await e,n.succeed()}catch{n.fail()}})(),n}});var uwt=C((Bsi,C0e)=>{"use strict";var cwt=require("fs");C0e.exports=e=>new Promise(r=>{cwt.access(e,n=>{r(!n)})});C0e.exports.sync=e=>{try{return cwt.accessSync(e),!0}catch{return!1}}});var pwt=C((qsi,D0e)=>{"use strict";var lwt=(e,...r)=>new Promise(n=>{n(e(...r))});D0e.exports=lwt;D0e.exports.default=lwt});var dwt=C((jsi,T0e)=>{"use strict";var l8r=pwt(),fwt=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let r=[],n=0,i=()=>{n--,r.length>0&&r.shift()()},o=(u,l,...p)=>{n++;let f=l8r(u,...p);l(f),f.then(i,i)},a=(u,l,...p)=>{n<e?o(u,l,...p):r.push(o.bind(null,u,l,...p))},c=(u,...l)=>new Promise(p=>a(u,p,...l));return Object.defineProperties(c,{activeCount:{get:()=>n},pendingCount:{get:()=>r.length},clearQueue:{value:()=>{r.length=0}}}),c};T0e.exports=fwt;T0e.exports.default=fwt});var gwt=C((Usi,mwt)=>{"use strict";var hwt=dwt(),Cj=class extends Error{constructor(r){super(),this.value=r}},p8r=(e,r)=>Promise.resolve(e).then(r),f8r=e=>Promise.all(e).then(r=>r[1]===!0&&Promise.reject(new Cj(r[0])));mwt.exports=(e,r,n)=>{n=Object.assign({concurrency:1/0,preserveOrder:!0},n);let i=hwt(n.concurrency),o=[...e].map(c=>[c,i(p8r,c,r)]),a=hwt(n.preserveOrder?1:1/0);return Promise.all(o.map(c=>a(f8r,c))).then(()=>{}).catch(c=>c instanceof Cj?c.value:Promise.reject(c))}});var bwt=C((Wsi,A0e)=>{"use strict";var xwt=require("path"),ywt=uwt(),d8r=gwt();A0e.exports=(e,r)=>(r=Object.assign({cwd:process.cwd()},r),d8r(e,n=>ywt(xwt.resolve(r.cwd,n)),r));A0e.exports.sync=(e,r)=>{r=Object.assign({cwd:process.cwd()},r);for(let n of e)if(ywt.sync(xwt.resolve(r.cwd,n)))return n}});var Ewt=C((Hsi,O0e)=>{"use strict";var oy=require("path"),vwt=bwt();O0e.exports=(e,r={})=>{let n=oy.resolve(r.cwd||""),{root:i}=oy.parse(n),o=[].concat(e);return new Promise(a=>{(function c(u){vwt(o,{cwd:u}).then(l=>{l?a(oy.join(u,l)):u===i?a(null):c(oy.dirname(u))})})(n)})};O0e.exports.sync=(e,r={})=>{let n=oy.resolve(r.cwd||""),{root:i}=oy.parse(n),o=[].concat(e);for(;;){let a=vwt.sync(o,{cwd:n});if(a)return oy.join(n,a);if(n===i)return null;n=oy.dirname(n)}}});var P0e=C((Gsi,I0e)=>{"use strict";var wwt=Ewt();I0e.exports=async({cwd:e}={})=>wwt("package.json",{cwd:e});I0e.exports.sync=({cwd:e}={})=>wwt.sync("package.json",{cwd:e})});var Fwt=C((_ai,Pwt)=>{"use strict";var y8r=1/0,b8r="[object Symbol]",v8r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,E8r="\\u0300-\\u036f\\ufe20-\\ufe23",w8r="\\u20d0-\\u20f0",S8r="["+E8r+w8r+"]",_8r=RegExp(S8r,"g"),C8r={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"ss"},D8r=typeof global=="object"&&global&&global.Object===Object&&global,T8r=typeof self=="object"&&self&&self.Object===Object&&self,A8r=D8r||T8r||Function("return this")();function O8r(e){return function(r){return e?.[r]}}var I8r=O8r(C8r),P8r=Object.prototype,F8r=P8r.toString,Awt=A8r.Symbol,Owt=Awt?Awt.prototype:void 0,Iwt=Owt?Owt.toString:void 0;function R8r(e){if(typeof e=="string")return e;if(M8r(e))return Iwt?Iwt.call(e):"";var r=e+"";return r=="0"&&1/e==-y8r?"-0":r}function k8r(e){return!!e&&typeof e=="object"}function M8r(e){return typeof e=="symbol"||k8r(e)&&F8r.call(e)==b8r}function N8r(e){return e==null?"":R8r(e)}function L8r(e){return e=N8r(e),e&&e.replace(v8r,I8r).replace(_8r,"")}Pwt.exports=L8r});var kwt=C((Cai,Rwt)=>{"use strict";var $8r=/[|\\{}()[\]^$+*?.-]/g;Rwt.exports=e=>{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace($8r,"\\$&")}});var Nwt=C((Dai,Mwt)=>{"use strict";Mwt.exports=[["\xDF","ss"],["\xE4","ae"],["\xC4","Ae"],["\xF6","oe"],["\xD6","Oe"],["\xFC","ue"],["\xDC","Ue"],["\xC0","A"],["\xC1","A"],["\xC2","A"],["\xC3","A"],["\xC4","Ae"],["\xC5","A"],["\xC6","AE"],["\xC7","C"],["\xC8","E"],["\xC9","E"],["\xCA","E"],["\xCB","E"],["\xCC","I"],["\xCD","I"],["\xCE","I"],["\xCF","I"],["\xD0","D"],["\xD1","N"],["\xD2","O"],["\xD3","O"],["\xD4","O"],["\xD5","O"],["\xD6","Oe"],["\u0150","O"],["\xD8","O"],["\xD9","U"],["\xDA","U"],["\xDB","U"],["\xDC","Ue"],["\u0170","U"],["\xDD","Y"],["\xDE","TH"],["\xDF","ss"],["\xE0","a"],["\xE1","a"],["\xE2","a"],["\xE3","a"],["\xE4","ae"],["\xE5","a"],["\xE6","ae"],["\xE7","c"],["\xE8","e"],["\xE9","e"],["\xEA","e"],["\xEB","e"],["\xEC","i"],["\xED","i"],["\xEE","i"],["\xEF","i"],["\xF0","d"],["\xF1","n"],["\xF2","o"],["\xF3","o"],["\xF4","o"],["\xF5","o"],["\xF6","oe"],["\u0151","o"],["\xF8","o"],["\xF9","u"],["\xFA","u"],["\xFB","u"],["\xFC","ue"],["\u0171","u"],["\xFD","y"],["\xFE","th"],["\xFF","y"],["\u1E9E","SS"],["\xE0","a"],["\xC0","A"],["\xE1","a"],["\xC1","A"],["\xE2","a"],["\xC2","A"],["\xE3","a"],["\xC3","A"],["\xE8","e"],["\xC8","E"],["\xE9","e"],["\xC9","E"],["\xEA","e"],["\xCA","E"],["\xEC","i"],["\xCC","I"],["\xED","i"],["\xCD","I"],["\xF2","o"],["\xD2","O"],["\xF3","o"],["\xD3","O"],["\xF4","o"],["\xD4","O"],["\xF5","o"],["\xD5","O"],["\xF9","u"],["\xD9","U"],["\xFA","u"],["\xDA","U"],["\xFD","y"],["\xDD","Y"],["\u0103","a"],["\u0102","A"],["\u0110","D"],["\u0111","d"],["\u0129","i"],["\u0128","I"],["\u0169","u"],["\u0168","U"],["\u01A1","o"],["\u01A0","O"],["\u01B0","u"],["\u01AF","U"],["\u1EA1","a"],["\u1EA0","A"],["\u1EA3","a"],["\u1EA2","A"],["\u1EA5","a"],["\u1EA4","A"],["\u1EA7","a"],["\u1EA6","A"],["\u1EA9","a"],["\u1EA8","A"],["\u1EAB","a"],["\u1EAA","A"],["\u1EAD","a"],["\u1EAC","A"],["\u1EAF","a"],["\u1EAE","A"],["\u1EB1","a"],["\u1EB0","A"],["\u1EB3","a"],["\u1EB2","A"],["\u1EB5","a"],["\u1EB4","A"],["\u1EB7","a"],["\u1EB6","A"],["\u1EB9","e"],["\u1EB8","E"],["\u1EBB","e"],["\u1EBA","E"],["\u1EBD","e"],["\u1EBC","E"],["\u1EBF","e"],["\u1EBE","E"],["\u1EC1","e"],["\u1EC0","E"],["\u1EC3","e"],["\u1EC2","E"],["\u1EC5","e"],["\u1EC4","E"],["\u1EC7","e"],["\u1EC6","E"],["\u1EC9","i"],["\u1EC8","I"],["\u1ECB","i"],["\u1ECA","I"],["\u1ECD","o"],["\u1ECC","O"],["\u1ECF","o"],["\u1ECE","O"],["\u1ED1","o"],["\u1ED0","O"],["\u1ED3","o"],["\u1ED2","O"],["\u1ED5","o"],["\u1ED4","O"],["\u1ED7","o"],["\u1ED6","O"],["\u1ED9","o"],["\u1ED8","O"],["\u1EDB","o"],["\u1EDA","O"],["\u1EDD","o"],["\u1EDC","O"],["\u1EDF","o"],["\u1EDE","O"],["\u1EE1","o"],["\u1EE0","O"],["\u1EE3","o"],["\u1EE2","O"],["\u1EE5","u"],["\u1EE4","U"],["\u1EE7","u"],["\u1EE6","U"],["\u1EE9","u"],["\u1EE8","U"],["\u1EEB","u"],["\u1EEA","U"],["\u1EED","u"],["\u1EEC","U"],["\u1EEF","u"],["\u1EEE","U"],["\u1EF1","u"],["\u1EF0","U"],["\u1EF3","y"],["\u1EF2","Y"],["\u1EF5","y"],["\u1EF4","Y"],["\u1EF7","y"],["\u1EF6","Y"],["\u1EF9","y"],["\u1EF8","Y"],["\u0621","e"],["\u0622","a"],["\u0623","a"],["\u0624","w"],["\u0625","i"],["\u0626","y"],["\u0627","a"],["\u0628","b"],["\u0629","t"],["\u062A","t"],["\u062B","th"],["\u062C","j"],["\u062D","h"],["\u062E","kh"],["\u062F","d"],["\u0630","dh"],["\u0631","r"],["\u0632","z"],["\u0633","s"],["\u0634","sh"],["\u0635","s"],["\u0636","d"],["\u0637","t"],["\u0638","z"],["\u0639","e"],["\u063A","gh"],["\u0640","_"],["\u0641","f"],["\u0642","q"],["\u0643","k"],["\u0644","l"],["\u0645","m"],["\u0646","n"],["\u0647","h"],["\u0648","w"],["\u0649","a"],["\u064A","y"],["\u064E\u200E","a"],["\u064F","u"],["\u0650\u200E","i"],["\u0660","0"],["\u0661","1"],["\u0662","2"],["\u0663","3"],["\u0664","4"],["\u0665","5"],["\u0666","6"],["\u0667","7"],["\u0668","8"],["\u0669","9"],["\u0686","ch"],["\u06A9","k"],["\u06AF","g"],["\u067E","p"],["\u0698","zh"],["\u06CC","y"],["\u06F0","0"],["\u06F1","1"],["\u06F2","2"],["\u06F3","3"],["\u06F4","4"],["\u06F5","5"],["\u06F6","6"],["\u06F7","7"],["\u06F8","8"],["\u06F9","9"],["\u067C","p"],["\u0681","z"],["\u0685","c"],["\u0689","d"],["\uFEAB","d"],["\uFEAD","r"],["\u0693","r"],["\uFEAF","z"],["\u0696","g"],["\u069A","x"],["\u06AB","g"],["\u06BC","n"],["\u06C0","e"],["\u06D0","e"],["\u06CD","ai"],["\u0679","t"],["\u0688","d"],["\u0691","r"],["\u06BA","n"],["\u06C1","h"],["\u06BE","h"],["\u06D2","e"],["\u0410","A"],["\u0430","a"],["\u0411","B"],["\u0431","b"],["\u0412","V"],["\u0432","v"],["\u0413","G"],["\u0433","g"],["\u0414","D"],["\u0434","d"],["\u0415","E"],["\u0435","e"],["\u0416","Zh"],["\u0436","zh"],["\u0417","Z"],["\u0437","z"],["\u0418","I"],["\u0438","i"],["\u0419","J"],["\u0439","j"],["\u041A","K"],["\u043A","k"],["\u041B","L"],["\u043B","l"],["\u041C","M"],["\u043C","m"],["\u041D","N"],["\u043D","n"],["\u041E","O"],["\u043E","o"],["\u041F","P"],["\u043F","p"],["\u0420","R"],["\u0440","r"],["\u0421","S"],["\u0441","s"],["\u0422","T"],["\u0442","t"],["\u0423","U"],["\u0443","u"],["\u0424","F"],["\u0444","f"],["\u0425","H"],["\u0445","h"],["\u0426","Cz"],["\u0446","cz"],["\u0427","Ch"],["\u0447","ch"],["\u0428","Sh"],["\u0448","sh"],["\u0429","Shh"],["\u0449","shh"],["\u042A",""],["\u044A",""],["\u042B","Y"],["\u044B","y"],["\u042C",""],["\u044C",""],["\u042D","E"],["\u044D","e"],["\u042E","Yu"],["\u044E","yu"],["\u042F","Ya"],["\u044F","ya"],["\u0401","Yo"],["\u0451","yo"],["\u0103","a"],["\u0102","A"],["\u0219","s"],["\u0218","S"],["\u021B","t"],["\u021A","T"],["\u0163","t"],["\u0162","T"],["\u015F","s"],["\u015E","S"],["\xE7","c"],["\xC7","C"],["\u011F","g"],["\u011E","G"],["\u0131","i"],["\u0130","I"],["\u0561","a"],["\u0531","A"],["\u0562","b"],["\u0532","B"],["\u0563","g"],["\u0533","G"],["\u0564","d"],["\u0534","D"],["\u0565","ye"],["\u0535","Ye"],["\u0566","z"],["\u0536","Z"],["\u0567","e"],["\u0537","E"],["\u0568","y"],["\u0538","Y"],["\u0569","t"],["\u0539","T"],["\u056A","zh"],["\u053A","Zh"],["\u056B","i"],["\u053B","I"],["\u056C","l"],["\u053C","L"],["\u056D","kh"],["\u053D","Kh"],["\u056E","ts"],["\u053E","Ts"],["\u056F","k"],["\u053F","K"],["\u0570","h"],["\u0540","H"],["\u0571","dz"],["\u0541","Dz"],["\u0572","gh"],["\u0542","Gh"],["\u0573","tch"],["\u0543","Tch"],["\u0574","m"],["\u0544","M"],["\u0575","y"],["\u0545","Y"],["\u0576","n"],["\u0546","N"],["\u0577","sh"],["\u0547","Sh"],["\u0578","vo"],["\u0548","Vo"],["\u0579","ch"],["\u0549","Ch"],["\u057A","p"],["\u054A","P"],["\u057B","j"],["\u054B","J"],["\u057C","r"],["\u054C","R"],["\u057D","s"],["\u054D","S"],["\u057E","v"],["\u054E","V"],["\u057F","t"],["\u054F","T"],["\u0580","r"],["\u0550","R"],["\u0581","c"],["\u0551","C"],["\u0578\u0582","u"],["\u0548\u0552","U"],["\u0548\u0582","U"],["\u0583","p"],["\u0553","P"],["\u0584","q"],["\u0554","Q"],["\u0585","o"],["\u0555","O"],["\u0586","f"],["\u0556","F"],["\u0587","yev"],["\u10D0","a"],["\u10D1","b"],["\u10D2","g"],["\u10D3","d"],["\u10D4","e"],["\u10D5","v"],["\u10D6","z"],["\u10D7","t"],["\u10D8","i"],["\u10D9","k"],["\u10DA","l"],["\u10DB","m"],["\u10DC","n"],["\u10DD","o"],["\u10DE","p"],["\u10DF","zh"],["\u10E0","r"],["\u10E1","s"],["\u10E2","t"],["\u10E3","u"],["\u10E4","ph"],["\u10E5","q"],["\u10E6","gh"],["\u10E7","k"],["\u10E8","sh"],["\u10E9","ch"],["\u10EA","ts"],["\u10EB","dz"],["\u10EC","ts"],["\u10ED","tch"],["\u10EE","kh"],["\u10EF","j"],["\u10F0","h"],["\u010D","c"],["\u010F","d"],["\u011B","e"],["\u0148","n"],["\u0159","r"],["\u0161","s"],["\u0165","t"],["\u016F","u"],["\u017E","z"],["\u010C","C"],["\u010E","D"],["\u011A","E"],["\u0147","N"],["\u0158","R"],["\u0160","S"],["\u0164","T"],["\u016E","U"],["\u017D","Z"],["\u0780","h"],["\u0781","sh"],["\u0782","n"],["\u0783","r"],["\u0784","b"],["\u0785","lh"],["\u0786","k"],["\u0787","a"],["\u0788","v"],["\u0789","m"],["\u078A","f"],["\u078B","dh"],["\u078C","th"],["\u078D","l"],["\u078E","g"],["\u078F","gn"],["\u0790","s"],["\u0791","d"],["\u0792","z"],["\u0793","t"],["\u0794","y"],["\u0795","p"],["\u0796","j"],["\u0797","ch"],["\u0798","tt"],["\u0799","hh"],["\u079A","kh"],["\u079B","th"],["\u079C","z"],["\u079D","sh"],["\u079E","s"],["\u079F","d"],["\u07A0","t"],["\u07A1","z"],["\u07A2","a"],["\u07A3","gh"],["\u07A4","q"],["\u07A5","w"],["\u07A6","a"],["\u07A7","aa"],["\u07A8","i"],["\u07A9","ee"],["\u07AA","u"],["\u07AB","oo"],["\u07AC","e"],["\u07AD","ey"],["\u07AE","o"],["\u07AF","oa"],["\u07B0",""],["\u03B1","a"],["\u03B2","v"],["\u03B3","g"],["\u03B4","d"],["\u03B5","e"],["\u03B6","z"],["\u03B7","i"],["\u03B8","th"],["\u03B9","i"],["\u03BA","k"],["\u03BB","l"],["\u03BC","m"],["\u03BD","n"],["\u03BE","ks"],["\u03BF","o"],["\u03C0","p"],["\u03C1","r"],["\u03C3","s"],["\u03C4","t"],["\u03C5","y"],["\u03C6","f"],["\u03C7","x"],["\u03C8","ps"],["\u03C9","o"],["\u03AC","a"],["\u03AD","e"],["\u03AF","i"],["\u03CC","o"],["\u03CD","y"],["\u03AE","i"],["\u03CE","o"],["\u03C2","s"],["\u03CA","i"],["\u03B0","y"],["\u03CB","y"],["\u0390","i"],["\u0391","A"],["\u0392","B"],["\u0393","G"],["\u0394","D"],["\u0395","E"],["\u0396","Z"],["\u0397","I"],["\u0398","TH"],["\u0399","I"],["\u039A","K"],["\u039B","L"],["\u039C","M"],["\u039D","N"],["\u039E","KS"],["\u039F","O"],["\u03A0","P"],["\u03A1","R"],["\u03A3","S"],["\u03A4","T"],["\u03A5","Y"],["\u03A6","F"],["\u03A7","X"],["\u03A8","PS"],["\u03A9","O"],["\u0386","A"],["\u0388","E"],["\u038A","I"],["\u038C","O"],["\u038E","Y"],["\u0389","I"],["\u038F","O"],["\u03AA","I"],["\u03AB","Y"],["\u0101","a"],["\u0113","e"],["\u0123","g"],["\u012B","i"],["\u0137","k"],["\u013C","l"],["\u0146","n"],["\u016B","u"],["\u0100","A"],["\u0112","E"],["\u0122","G"],["\u012A","I"],["\u0136","K"],["\u013B","L"],["\u0145","N"],["\u016A","U"],["\u010D","c"],["\u0161","s"],["\u017E","z"],["\u010C","C"],["\u0160","S"],["\u017D","Z"],["\u0105","a"],["\u010D","c"],["\u0119","e"],["\u0117","e"],["\u012F","i"],["\u0161","s"],["\u0173","u"],["\u016B","u"],["\u017E","z"],["\u0104","A"],["\u010C","C"],["\u0118","E"],["\u0116","E"],["\u012E","I"],["\u0160","S"],["\u0172","U"],["\u016A","U"],["\u040C","Kj"],["\u045C","kj"],["\u0409","Lj"],["\u0459","lj"],["\u040A","Nj"],["\u045A","nj"],["\u0422\u0441","Ts"],["\u0442\u0441","ts"],["\u0105","a"],["\u0107","c"],["\u0119","e"],["\u0142","l"],["\u0144","n"],["\u015B","s"],["\u017A","z"],["\u017C","z"],["\u0104","A"],["\u0106","C"],["\u0118","E"],["\u0141","L"],["\u0143","N"],["\u015A","S"],["\u0179","Z"],["\u017B","Z"],["\u0404","Ye"],["\u0406","I"],["\u0407","Yi"],["\u0490","G"],["\u0454","ye"],["\u0456","i"],["\u0457","yi"],["\u0491","g"]]});var $wt=C((Tai,Lwt)=>{"use strict";var B8r=Fwt(),q8r=kwt(),j8r=Nwt(),U8r=(e,r)=>{for(let[n,i]of r)e=e.replace(new RegExp(q8r(n),"g"),i);return e};Lwt.exports=(e,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string, got \`${typeof e}\``);r={customReplacements:[],...r};let n=new Map([...j8r,...r.customReplacements]);return e=e.normalize(),e=U8r(e,n),e=B8r(e),e}});var qwt=C((Aai,Bwt)=>{"use strict";Bwt.exports=[["&"," and "],["\u{1F984}"," unicorn "],["\u2665"," love "]]});var Uwt=C((Oai,k0e)=>{"use strict";var W8r=tmt(),H8r=$wt(),G8r=qwt(),z8r=e=>e.replace(/([A-Z]{2,})(\d+)/g,"$1 $2").replace(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replace(/([a-z\d])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1 $2"),V8r=(e,r)=>{let n=W8r(r);return e.replace(new RegExp(`${n}{2,}`,"g"),r).replace(new RegExp(`^${n}|${n}$`,"g"),"")},jwt=(e,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string, got \`${typeof e}\``);r={separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,...r};let n=r.preserveLeadingUnderscore&&e.startsWith("_"),i=new Map([...G8r,...r.customReplacements]);e=H8r(e,{customReplacements:i}),r.decamelize&&(e=z8r(e));let o=/[^a-zA-Z\d]+/g;return r.lowercase&&(e=e.toLowerCase(),o=/[^a-z\d]+/g),e=e.replace(o,r.separator),e=e.replace(/\\/g,""),r.separator&&(e=V8r(e,r.separator)),n&&(e=`_${e}`),e},K8r=()=>{let e=new Map,r=(n,i)=>{if(n=jwt(n,i),!n)return"";let o=n.toLowerCase(),a=e.get(o.replace(/(?:-\d+?)+?$/,""))||0,c=e.get(o);e.set(o,typeof c=="number"?c+1:1);let u=e.get(o)||2;return(u>=2||a>2)&&(n=`${n}-${u}`),n};return r.reset=()=>{e.clear()},r};k0e.exports=jwt;k0e.exports.counter=K8r});var tk=C((sui,r5r)=>{r5r.exports={version:"6.5.0-dev.56",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"],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:">=18.18"},prisma:{prismaCommit:"9dc0d126109b95c152657ea3364794fd1c63245c"},files:["README.md","build","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"},devDependencies:{"@antfu/ni":"0.21.12","@inquirer/prompts":"7.3.2","@prisma/adapter-libsql":"workspace:*","@prisma/client":"workspace:*","@prisma/config":"workspace:*","@prisma/debug":"workspace:*","@prisma/fetch-engine":"workspace:*","@prisma/generator-helper":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/internals":"workspace:*","@prisma/migrate":"workspace:*","@prisma/mini-proxy":"0.9.5","@prisma/studio":"0.510.0","@prisma/studio-server":"0.510.0","@swc/core":"1.11.5","@swc/jest":"0.2.37","@types/debug":"4.1.12","@types/fs-extra":"11.0.4","@types/jest":"29.5.14","@types/node":"18.19.76","@types/rimraf":"3.0.2","async-listen":"3.0.1","checkpoint-client":"1.1.33",chokidar:"3.6.0",debug:"4.4.0",dotenv:"16.4.7","env-paths":"2.2.1",esbuild:"0.24.2",execa:"5.1.1","fast-glob":"3.3.3","fs-extra":"11.3.0","fs-jetpack":"5.1.0","get-port":"5.1.1","global-dirs":"4.0.0",jest:"29.7.0","jest-junit":"16.0.0",kleur:"4.1.5","@libsql/client":"0.8.1","line-replace":"2.0.1","log-update":"4.0.0","node-fetch":"3.3.2","npm-packlist":"5.1.3",open:"7.4.2",ora:"5.4.1","pkg-up":"3.1.0","resolve-pkg":"2.0.0",rimraf:"3.0.2","strip-ansi":"6.0.1","ts-pattern":"5.6.2",typescript:"5.4.5","xdg-app-paths":"8.3.0",zx:"7.2.3"},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",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/engines":"workspace:*",esbuild:">=0.12 <1","esbuild-register":"3.6.0"},optionalDependencies:{fsevents:"2.3.3"},peerDependencies:{typescript:">=5.1.0"},peerDependenciesMeta:{typescript:{optional:!0}},sideEffects:!1}});var i1t=C((Iui,W0e)=>{"use strict";var t1t=require("path"),r1t=require("module"),n5r=require("fs"),n1t=(e,r,n)=>{if(typeof e!="string")throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof e}\``);if(typeof r!="string")throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof r}\``);try{e=n5r.realpathSync(e)}catch(a){if(a.code==="ENOENT")e=t1t.resolve(e);else{if(n)return;throw a}}let i=t1t.join(e,"noop.js"),o=()=>r1t._resolveFilename(r,{id:i,filename:i,paths:r1t._nodeModulePaths(e)});if(n)try{return o()}catch{return}return o()};W0e.exports=(e,r)=>n1t(e,r);W0e.exports.silent=(e,r)=>n1t(e,r,!0)});var s1t=C((Pui,o1t)=>{"use strict";var H0e=require("path"),i5r=i1t();o1t.exports=(e,r={})=>{let n=e.replace(/\\/g,"/").split("/"),i="";n.length>0&&n[0][0]==="@"&&(i+=n.shift()+"/"),i+=n.shift();let o=H0e.join(i,"package.json"),a=i5r.silent(r.cwd||process.cwd(),o);if(a)return H0e.join(H0e.dirname(a),n.join("/"))}});var g1t=C((jui,m1t)=>{"use strict";var nk=require("fs"),{Readable:a5r}=require("stream"),rk=require("path"),{promisify:Nj}=require("util"),K0e=U5(),c5r=Nj(nk.readdir),u5r=Nj(nk.stat),u1t=Nj(nk.lstat),l5r=Nj(nk.realpath),p5r="!",d1t="READDIRP_RECURSIVE_ERROR",f5r=new Set(["ENOENT","EPERM","EACCES","ELOOP",d1t]),Y0e="files",h1t="directories",kj="files_directories",Rj="all",l1t=[Y0e,h1t,kj,Rj],d5r=e=>f5r.has(e.code),[p1t,h5r]=process.versions.node.split(".").slice(0,2).map(e=>Number.parseInt(e,10)),m5r=process.platform==="win32"&&(p1t>10||p1t===10&&h5r>=5),f1t=e=>{if(e!==void 0){if(typeof e=="function")return e;if(typeof e=="string"){let r=K0e(e.trim());return n=>r(n.basename)}if(Array.isArray(e)){let r=[],n=[];for(let i of e){let o=i.trim();o.charAt(0)===p5r?n.push(K0e(o.slice(1))):r.push(K0e(o))}return n.length>0?r.length>0?i=>r.some(o=>o(i.basename))&&!n.some(o=>o(i.basename)):i=>!n.some(o=>o(i.basename)):i=>r.some(o=>o(i.basename))}}},Mj=class e extends a5r{static get defaultOptions(){return{root:".",fileFilter:r=>!0,directoryFilter:r=>!0,type:Y0e,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(r={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:r.highWaterMark||4096});let n={...e.defaultOptions,...r},{root:i,type:o}=n;this._fileFilter=f1t(n.fileFilter),this._directoryFilter=f1t(n.directoryFilter);let a=n.lstat?u1t:u5r;m5r?this._stat=c=>a(c,{bigint:!0}):this._stat=a,this._maxDepth=n.depth,this._wantsDir=[h1t,kj,Rj].includes(o),this._wantsFile=[Y0e,kj,Rj].includes(o),this._wantsEverything=o===Rj,this._root=rk.resolve(i),this._isDirent="Dirent"in nk&&!n.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(i,1)],this.reading=!1,this.parent=void 0}async _read(r){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&r>0;){let{path:n,depth:i,files:o=[]}=this.parent||{};if(o.length>0){let a=o.splice(0,r).map(c=>this._formatEntry(c,n));for(let c of await Promise.all(a)){if(this.destroyed)return;let u=await this._getEntryType(c);u==="directory"&&this._directoryFilter(c)?(i<=this._maxDepth&&this.parents.push(this._exploreDir(c.fullPath,i+1)),this._wantsDir&&(this.push(c),r--)):(u==="file"||this._includeAsFile(c))&&this._fileFilter(c)&&this._wantsFile&&(this.push(c),r--)}}else{let a=this.parents.pop();if(!a){this.push(null);break}if(this.parent=await a,this.destroyed)return}}}catch(n){this.destroy(n)}finally{this.reading=!1}}}async _exploreDir(r,n){let i;try{i=await c5r(r,this._rdOptions)}catch(o){this._onError(o)}return{files:i,depth:n,path:r}}async _formatEntry(r,n){let i;try{let o=this._isDirent?r.name:r,a=rk.resolve(rk.join(n,o));i={path:rk.relative(this._root,a),fullPath:a,basename:o},i[this._statsProp]=this._isDirent?r:await this._stat(a)}catch(o){this._onError(o)}return i}_onError(r){d5r(r)&&!this.destroyed?this.emit("warn",r):this.destroy(r)}async _getEntryType(r){let n=r&&r[this._statsProp];if(n){if(n.isFile())return"file";if(n.isDirectory())return"directory";if(n&&n.isSymbolicLink()){let i=r.fullPath;try{let o=await l5r(i),a=await u1t(o);if(a.isFile())return"file";if(a.isDirectory()){let c=o.length;if(i.startsWith(o)&&i.substr(c,1)===rk.sep){let u=new Error(`Circular symlink detected: "${i}" points to "${o}"`);return u.code=d1t,this._onError(u)}return"directory"}}catch(o){this._onError(o)}}}}_includeAsFile(r){let n=r&&r[this._statsProp];return n&&this._wantsEverything&&!n.isDirectory()}},OC=(e,r={})=>{let n=r.entryType||r.type;if(n==="both"&&(n=kj),n&&(r.type=n),e){if(typeof e!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(n&&!l1t.includes(n))throw new Error(`readdirp: Invalid type passed. Use one of ${l1t.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return r.root=e,new Mj(r)},g5r=(e,r={})=>new Promise((n,i)=>{let o=[];OC(e,r).on("data",a=>o.push(a)).on("end",()=>n(o)).on("error",a=>i(a))});OC.promise=g5r;OC.ReaddirpStream=Mj;OC.default=OC;m1t.exports=OC});var w1t=C((v1t,E1t)=>{"use strict";Object.defineProperty(v1t,"__esModule",{value:!0});var b1t=U5(),x5r=yF(),x1t="!",y5r={returnIndex:!1},b5r=e=>Array.isArray(e)?e:[e],v5r=(e,r)=>{if(typeof e=="function")return e;if(typeof e=="string"){let n=b1t(e,r);return i=>e===i||n(i)}return e instanceof RegExp?n=>e.test(n):n=>!1},y1t=(e,r,n,i)=>{let o=Array.isArray(n),a=o?n[0]:n;if(!o&&typeof a!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(a));let c=x5r(a,!1);for(let l=0;l<r.length;l++){let p=r[l];if(p(c))return i?-1:!1}let u=o&&[c].concat(n.slice(1));for(let l=0;l<e.length;l++){let p=e[l];if(o?p(...u):p(c))return i?l:!0}return i?-1:!1},J0e=(e,r,n=y5r)=>{if(e==null)throw new TypeError("anymatch: specify first argument");let i=typeof n=="boolean"?{returnIndex:n}:n,o=i.returnIndex||!1,a=b5r(e),c=a.filter(l=>typeof l=="string"&&l.charAt(0)===x1t).map(l=>l.slice(1)).map(l=>b1t(l,i)),u=a.filter(l=>typeof l!="string"||typeof l=="string"&&l.charAt(0)!==x1t).map(l=>v5r(l,i));return r==null?(l,p=!1)=>y1t(u,c,l,typeof p=="boolean"?p:!1):y1t(u,c,r,o)};J0e.default=J0e;E1t.exports=J0e});var Lj=C(Yl=>{"use strict";Yl.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;Yl.find=(e,r)=>e.nodes.find(n=>n.type===r);Yl.exceedsLimit=(e,r,n=1,i)=>i===!1||!Yl.isInteger(e)||!Yl.isInteger(r)?!1:(Number(r)-Number(e))/Number(n)>=i;Yl.escapeNode=(e,r=0,n)=>{let i=e.nodes[r];i&&(n&&i.type===n||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};Yl.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);Yl.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;Yl.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;Yl.reduce=e=>e.reduce((r,n)=>(n.type==="text"&&r.push(n.value),n.type==="range"&&(n.type="text"),r),[]);Yl.flatten=(...e)=>{let r=[],n=i=>{for(let o=0;o<i.length;o++){let a=i[o];Array.isArray(a)?n(a,r):a!==void 0&&r.push(a)}return r};return n(e),r}});var $j=C((Wui,_1t)=>{"use strict";var S1t=Lj();_1t.exports=(e,r={})=>{let n=(i,o={})=>{let a=r.escapeInvalid&&S1t.isInvalidBrace(o),c=i.invalid===!0&&r.escapeInvalid===!0,u="";if(i.value)return(a||c)&&S1t.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let l of i.nodes)u+=n(l);return u};return n(e)}});var T1t=C((Hui,D1t)=>{"use strict";var E5r=xI(),C1t=Lj(),w5r=(e,r={})=>{let n=(i,o={})=>{let a=C1t.isInvalidBrace(o),c=i.invalid===!0&&r.escapeInvalid===!0,u=a===!0||c===!0,l=r.escapeInvalid===!0?"\\":"",p="";if(i.isOpen===!0||i.isClose===!0)return l+i.value;if(i.type==="open")return u?l+i.value:"(";if(i.type==="close")return u?l+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":u?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let f=C1t.reduce(i.nodes),g=E5r(...f,{...r,wrap:!1,toRegex:!0});if(g.length!==0)return f.length>1&&g.length>1?`(${g})`:g}if(i.nodes)for(let f of i.nodes)p+=n(f,i);return p};return n(e)};D1t.exports=w5r});var I1t=C((Gui,O1t)=>{"use strict";var S5r=xI(),A1t=$j(),IC=Lj(),tw=(e="",r="",n=!1)=>{let i=[];if(e=[].concat(e),r=[].concat(r),!r.length)return e;if(!e.length)return n?IC.flatten(r).map(o=>`{${o}}`):r;for(let o of e)if(Array.isArray(o))for(let a of o)i.push(tw(a,r,n));else for(let a of r)n===!0&&typeof a=="string"&&(a=`{${a}}`),i.push(Array.isArray(a)?tw(o,a,n):o+a);return IC.flatten(i)},_5r=(e,r={})=>{let n=r.rangeLimit===void 0?1e3:r.rangeLimit,i=(o,a={})=>{o.queue=[];let c=a,u=a.queue;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,u=c.queue;if(o.invalid||o.dollar){u.push(tw(u.pop(),A1t(o,r)));return}if(o.type==="brace"&&o.invalid!==!0&&o.nodes.length===2){u.push(tw(u.pop(),["{}"]));return}if(o.nodes&&o.ranges>0){let g=IC.reduce(o.nodes);if(IC.exceedsLimit(...g,r.step,n))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let x=S5r(...g,r);x.length===0&&(x=A1t(o,r)),u.push(tw(u.pop(),x)),o.nodes=[];return}let l=IC.encloseBrace(o),p=o.queue,f=o;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,p=f.queue;for(let g=0;g<o.nodes.length;g++){let x=o.nodes[g];if(x.type==="comma"&&o.type==="brace"){g===1&&p.push(""),p.push("");continue}if(x.type==="close"){u.push(tw(u.pop(),p,l));continue}if(x.value&&x.type!=="open"){p.push(tw(p.pop(),x.value));continue}x.nodes&&i(x,o)}return p};return IC.flatten(i(e))};O1t.exports=_5r});var F1t=C((zui,P1t)=>{"use strict";P1t.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
459
|
+
`),this}},c8r=function(e){return new _j(e)};S0e.exports=c8r;S0e.exports.promise=(e,r)=>{if(typeof e.then!="function")throw new TypeError("Parameter `action` must be a Promise");let n=new _j(r);return n.start(),(async()=>{try{await e,n.succeed()}catch{n.fail()}})(),n}});var uwt=C((Bsi,C0e)=>{"use strict";var cwt=require("fs");C0e.exports=e=>new Promise(r=>{cwt.access(e,n=>{r(!n)})});C0e.exports.sync=e=>{try{return cwt.accessSync(e),!0}catch{return!1}}});var pwt=C((qsi,D0e)=>{"use strict";var lwt=(e,...r)=>new Promise(n=>{n(e(...r))});D0e.exports=lwt;D0e.exports.default=lwt});var dwt=C((jsi,T0e)=>{"use strict";var l8r=pwt(),fwt=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let r=[],n=0,i=()=>{n--,r.length>0&&r.shift()()},o=(u,l,...p)=>{n++;let f=l8r(u,...p);l(f),f.then(i,i)},a=(u,l,...p)=>{n<e?o(u,l,...p):r.push(o.bind(null,u,l,...p))},c=(u,...l)=>new Promise(p=>a(u,p,...l));return Object.defineProperties(c,{activeCount:{get:()=>n},pendingCount:{get:()=>r.length},clearQueue:{value:()=>{r.length=0}}}),c};T0e.exports=fwt;T0e.exports.default=fwt});var gwt=C((Usi,mwt)=>{"use strict";var hwt=dwt(),Cj=class extends Error{constructor(r){super(),this.value=r}},p8r=(e,r)=>Promise.resolve(e).then(r),f8r=e=>Promise.all(e).then(r=>r[1]===!0&&Promise.reject(new Cj(r[0])));mwt.exports=(e,r,n)=>{n=Object.assign({concurrency:1/0,preserveOrder:!0},n);let i=hwt(n.concurrency),o=[...e].map(c=>[c,i(p8r,c,r)]),a=hwt(n.preserveOrder?1:1/0);return Promise.all(o.map(c=>a(f8r,c))).then(()=>{}).catch(c=>c instanceof Cj?c.value:Promise.reject(c))}});var bwt=C((Wsi,A0e)=>{"use strict";var xwt=require("path"),ywt=uwt(),d8r=gwt();A0e.exports=(e,r)=>(r=Object.assign({cwd:process.cwd()},r),d8r(e,n=>ywt(xwt.resolve(r.cwd,n)),r));A0e.exports.sync=(e,r)=>{r=Object.assign({cwd:process.cwd()},r);for(let n of e)if(ywt.sync(xwt.resolve(r.cwd,n)))return n}});var Ewt=C((Hsi,O0e)=>{"use strict";var oy=require("path"),vwt=bwt();O0e.exports=(e,r={})=>{let n=oy.resolve(r.cwd||""),{root:i}=oy.parse(n),o=[].concat(e);return new Promise(a=>{(function c(u){vwt(o,{cwd:u}).then(l=>{l?a(oy.join(u,l)):u===i?a(null):c(oy.dirname(u))})})(n)})};O0e.exports.sync=(e,r={})=>{let n=oy.resolve(r.cwd||""),{root:i}=oy.parse(n),o=[].concat(e);for(;;){let a=vwt.sync(o,{cwd:n});if(a)return oy.join(n,a);if(n===i)return null;n=oy.dirname(n)}}});var P0e=C((Gsi,I0e)=>{"use strict";var wwt=Ewt();I0e.exports=async({cwd:e}={})=>wwt("package.json",{cwd:e});I0e.exports.sync=({cwd:e}={})=>wwt.sync("package.json",{cwd:e})});var Fwt=C((_ai,Pwt)=>{"use strict";var y8r=1/0,b8r="[object Symbol]",v8r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,E8r="\\u0300-\\u036f\\ufe20-\\ufe23",w8r="\\u20d0-\\u20f0",S8r="["+E8r+w8r+"]",_8r=RegExp(S8r,"g"),C8r={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"ss"},D8r=typeof global=="object"&&global&&global.Object===Object&&global,T8r=typeof self=="object"&&self&&self.Object===Object&&self,A8r=D8r||T8r||Function("return this")();function O8r(e){return function(r){return e?.[r]}}var I8r=O8r(C8r),P8r=Object.prototype,F8r=P8r.toString,Awt=A8r.Symbol,Owt=Awt?Awt.prototype:void 0,Iwt=Owt?Owt.toString:void 0;function R8r(e){if(typeof e=="string")return e;if(M8r(e))return Iwt?Iwt.call(e):"";var r=e+"";return r=="0"&&1/e==-y8r?"-0":r}function k8r(e){return!!e&&typeof e=="object"}function M8r(e){return typeof e=="symbol"||k8r(e)&&F8r.call(e)==b8r}function N8r(e){return e==null?"":R8r(e)}function L8r(e){return e=N8r(e),e&&e.replace(v8r,I8r).replace(_8r,"")}Pwt.exports=L8r});var kwt=C((Cai,Rwt)=>{"use strict";var $8r=/[|\\{}()[\]^$+*?.-]/g;Rwt.exports=e=>{if(typeof e!="string")throw new TypeError("Expected a string");return e.replace($8r,"\\$&")}});var Nwt=C((Dai,Mwt)=>{"use strict";Mwt.exports=[["\xDF","ss"],["\xE4","ae"],["\xC4","Ae"],["\xF6","oe"],["\xD6","Oe"],["\xFC","ue"],["\xDC","Ue"],["\xC0","A"],["\xC1","A"],["\xC2","A"],["\xC3","A"],["\xC4","Ae"],["\xC5","A"],["\xC6","AE"],["\xC7","C"],["\xC8","E"],["\xC9","E"],["\xCA","E"],["\xCB","E"],["\xCC","I"],["\xCD","I"],["\xCE","I"],["\xCF","I"],["\xD0","D"],["\xD1","N"],["\xD2","O"],["\xD3","O"],["\xD4","O"],["\xD5","O"],["\xD6","Oe"],["\u0150","O"],["\xD8","O"],["\xD9","U"],["\xDA","U"],["\xDB","U"],["\xDC","Ue"],["\u0170","U"],["\xDD","Y"],["\xDE","TH"],["\xDF","ss"],["\xE0","a"],["\xE1","a"],["\xE2","a"],["\xE3","a"],["\xE4","ae"],["\xE5","a"],["\xE6","ae"],["\xE7","c"],["\xE8","e"],["\xE9","e"],["\xEA","e"],["\xEB","e"],["\xEC","i"],["\xED","i"],["\xEE","i"],["\xEF","i"],["\xF0","d"],["\xF1","n"],["\xF2","o"],["\xF3","o"],["\xF4","o"],["\xF5","o"],["\xF6","oe"],["\u0151","o"],["\xF8","o"],["\xF9","u"],["\xFA","u"],["\xFB","u"],["\xFC","ue"],["\u0171","u"],["\xFD","y"],["\xFE","th"],["\xFF","y"],["\u1E9E","SS"],["\xE0","a"],["\xC0","A"],["\xE1","a"],["\xC1","A"],["\xE2","a"],["\xC2","A"],["\xE3","a"],["\xC3","A"],["\xE8","e"],["\xC8","E"],["\xE9","e"],["\xC9","E"],["\xEA","e"],["\xCA","E"],["\xEC","i"],["\xCC","I"],["\xED","i"],["\xCD","I"],["\xF2","o"],["\xD2","O"],["\xF3","o"],["\xD3","O"],["\xF4","o"],["\xD4","O"],["\xF5","o"],["\xD5","O"],["\xF9","u"],["\xD9","U"],["\xFA","u"],["\xDA","U"],["\xFD","y"],["\xDD","Y"],["\u0103","a"],["\u0102","A"],["\u0110","D"],["\u0111","d"],["\u0129","i"],["\u0128","I"],["\u0169","u"],["\u0168","U"],["\u01A1","o"],["\u01A0","O"],["\u01B0","u"],["\u01AF","U"],["\u1EA1","a"],["\u1EA0","A"],["\u1EA3","a"],["\u1EA2","A"],["\u1EA5","a"],["\u1EA4","A"],["\u1EA7","a"],["\u1EA6","A"],["\u1EA9","a"],["\u1EA8","A"],["\u1EAB","a"],["\u1EAA","A"],["\u1EAD","a"],["\u1EAC","A"],["\u1EAF","a"],["\u1EAE","A"],["\u1EB1","a"],["\u1EB0","A"],["\u1EB3","a"],["\u1EB2","A"],["\u1EB5","a"],["\u1EB4","A"],["\u1EB7","a"],["\u1EB6","A"],["\u1EB9","e"],["\u1EB8","E"],["\u1EBB","e"],["\u1EBA","E"],["\u1EBD","e"],["\u1EBC","E"],["\u1EBF","e"],["\u1EBE","E"],["\u1EC1","e"],["\u1EC0","E"],["\u1EC3","e"],["\u1EC2","E"],["\u1EC5","e"],["\u1EC4","E"],["\u1EC7","e"],["\u1EC6","E"],["\u1EC9","i"],["\u1EC8","I"],["\u1ECB","i"],["\u1ECA","I"],["\u1ECD","o"],["\u1ECC","O"],["\u1ECF","o"],["\u1ECE","O"],["\u1ED1","o"],["\u1ED0","O"],["\u1ED3","o"],["\u1ED2","O"],["\u1ED5","o"],["\u1ED4","O"],["\u1ED7","o"],["\u1ED6","O"],["\u1ED9","o"],["\u1ED8","O"],["\u1EDB","o"],["\u1EDA","O"],["\u1EDD","o"],["\u1EDC","O"],["\u1EDF","o"],["\u1EDE","O"],["\u1EE1","o"],["\u1EE0","O"],["\u1EE3","o"],["\u1EE2","O"],["\u1EE5","u"],["\u1EE4","U"],["\u1EE7","u"],["\u1EE6","U"],["\u1EE9","u"],["\u1EE8","U"],["\u1EEB","u"],["\u1EEA","U"],["\u1EED","u"],["\u1EEC","U"],["\u1EEF","u"],["\u1EEE","U"],["\u1EF1","u"],["\u1EF0","U"],["\u1EF3","y"],["\u1EF2","Y"],["\u1EF5","y"],["\u1EF4","Y"],["\u1EF7","y"],["\u1EF6","Y"],["\u1EF9","y"],["\u1EF8","Y"],["\u0621","e"],["\u0622","a"],["\u0623","a"],["\u0624","w"],["\u0625","i"],["\u0626","y"],["\u0627","a"],["\u0628","b"],["\u0629","t"],["\u062A","t"],["\u062B","th"],["\u062C","j"],["\u062D","h"],["\u062E","kh"],["\u062F","d"],["\u0630","dh"],["\u0631","r"],["\u0632","z"],["\u0633","s"],["\u0634","sh"],["\u0635","s"],["\u0636","d"],["\u0637","t"],["\u0638","z"],["\u0639","e"],["\u063A","gh"],["\u0640","_"],["\u0641","f"],["\u0642","q"],["\u0643","k"],["\u0644","l"],["\u0645","m"],["\u0646","n"],["\u0647","h"],["\u0648","w"],["\u0649","a"],["\u064A","y"],["\u064E\u200E","a"],["\u064F","u"],["\u0650\u200E","i"],["\u0660","0"],["\u0661","1"],["\u0662","2"],["\u0663","3"],["\u0664","4"],["\u0665","5"],["\u0666","6"],["\u0667","7"],["\u0668","8"],["\u0669","9"],["\u0686","ch"],["\u06A9","k"],["\u06AF","g"],["\u067E","p"],["\u0698","zh"],["\u06CC","y"],["\u06F0","0"],["\u06F1","1"],["\u06F2","2"],["\u06F3","3"],["\u06F4","4"],["\u06F5","5"],["\u06F6","6"],["\u06F7","7"],["\u06F8","8"],["\u06F9","9"],["\u067C","p"],["\u0681","z"],["\u0685","c"],["\u0689","d"],["\uFEAB","d"],["\uFEAD","r"],["\u0693","r"],["\uFEAF","z"],["\u0696","g"],["\u069A","x"],["\u06AB","g"],["\u06BC","n"],["\u06C0","e"],["\u06D0","e"],["\u06CD","ai"],["\u0679","t"],["\u0688","d"],["\u0691","r"],["\u06BA","n"],["\u06C1","h"],["\u06BE","h"],["\u06D2","e"],["\u0410","A"],["\u0430","a"],["\u0411","B"],["\u0431","b"],["\u0412","V"],["\u0432","v"],["\u0413","G"],["\u0433","g"],["\u0414","D"],["\u0434","d"],["\u0415","E"],["\u0435","e"],["\u0416","Zh"],["\u0436","zh"],["\u0417","Z"],["\u0437","z"],["\u0418","I"],["\u0438","i"],["\u0419","J"],["\u0439","j"],["\u041A","K"],["\u043A","k"],["\u041B","L"],["\u043B","l"],["\u041C","M"],["\u043C","m"],["\u041D","N"],["\u043D","n"],["\u041E","O"],["\u043E","o"],["\u041F","P"],["\u043F","p"],["\u0420","R"],["\u0440","r"],["\u0421","S"],["\u0441","s"],["\u0422","T"],["\u0442","t"],["\u0423","U"],["\u0443","u"],["\u0424","F"],["\u0444","f"],["\u0425","H"],["\u0445","h"],["\u0426","Cz"],["\u0446","cz"],["\u0427","Ch"],["\u0447","ch"],["\u0428","Sh"],["\u0448","sh"],["\u0429","Shh"],["\u0449","shh"],["\u042A",""],["\u044A",""],["\u042B","Y"],["\u044B","y"],["\u042C",""],["\u044C",""],["\u042D","E"],["\u044D","e"],["\u042E","Yu"],["\u044E","yu"],["\u042F","Ya"],["\u044F","ya"],["\u0401","Yo"],["\u0451","yo"],["\u0103","a"],["\u0102","A"],["\u0219","s"],["\u0218","S"],["\u021B","t"],["\u021A","T"],["\u0163","t"],["\u0162","T"],["\u015F","s"],["\u015E","S"],["\xE7","c"],["\xC7","C"],["\u011F","g"],["\u011E","G"],["\u0131","i"],["\u0130","I"],["\u0561","a"],["\u0531","A"],["\u0562","b"],["\u0532","B"],["\u0563","g"],["\u0533","G"],["\u0564","d"],["\u0534","D"],["\u0565","ye"],["\u0535","Ye"],["\u0566","z"],["\u0536","Z"],["\u0567","e"],["\u0537","E"],["\u0568","y"],["\u0538","Y"],["\u0569","t"],["\u0539","T"],["\u056A","zh"],["\u053A","Zh"],["\u056B","i"],["\u053B","I"],["\u056C","l"],["\u053C","L"],["\u056D","kh"],["\u053D","Kh"],["\u056E","ts"],["\u053E","Ts"],["\u056F","k"],["\u053F","K"],["\u0570","h"],["\u0540","H"],["\u0571","dz"],["\u0541","Dz"],["\u0572","gh"],["\u0542","Gh"],["\u0573","tch"],["\u0543","Tch"],["\u0574","m"],["\u0544","M"],["\u0575","y"],["\u0545","Y"],["\u0576","n"],["\u0546","N"],["\u0577","sh"],["\u0547","Sh"],["\u0578","vo"],["\u0548","Vo"],["\u0579","ch"],["\u0549","Ch"],["\u057A","p"],["\u054A","P"],["\u057B","j"],["\u054B","J"],["\u057C","r"],["\u054C","R"],["\u057D","s"],["\u054D","S"],["\u057E","v"],["\u054E","V"],["\u057F","t"],["\u054F","T"],["\u0580","r"],["\u0550","R"],["\u0581","c"],["\u0551","C"],["\u0578\u0582","u"],["\u0548\u0552","U"],["\u0548\u0582","U"],["\u0583","p"],["\u0553","P"],["\u0584","q"],["\u0554","Q"],["\u0585","o"],["\u0555","O"],["\u0586","f"],["\u0556","F"],["\u0587","yev"],["\u10D0","a"],["\u10D1","b"],["\u10D2","g"],["\u10D3","d"],["\u10D4","e"],["\u10D5","v"],["\u10D6","z"],["\u10D7","t"],["\u10D8","i"],["\u10D9","k"],["\u10DA","l"],["\u10DB","m"],["\u10DC","n"],["\u10DD","o"],["\u10DE","p"],["\u10DF","zh"],["\u10E0","r"],["\u10E1","s"],["\u10E2","t"],["\u10E3","u"],["\u10E4","ph"],["\u10E5","q"],["\u10E6","gh"],["\u10E7","k"],["\u10E8","sh"],["\u10E9","ch"],["\u10EA","ts"],["\u10EB","dz"],["\u10EC","ts"],["\u10ED","tch"],["\u10EE","kh"],["\u10EF","j"],["\u10F0","h"],["\u010D","c"],["\u010F","d"],["\u011B","e"],["\u0148","n"],["\u0159","r"],["\u0161","s"],["\u0165","t"],["\u016F","u"],["\u017E","z"],["\u010C","C"],["\u010E","D"],["\u011A","E"],["\u0147","N"],["\u0158","R"],["\u0160","S"],["\u0164","T"],["\u016E","U"],["\u017D","Z"],["\u0780","h"],["\u0781","sh"],["\u0782","n"],["\u0783","r"],["\u0784","b"],["\u0785","lh"],["\u0786","k"],["\u0787","a"],["\u0788","v"],["\u0789","m"],["\u078A","f"],["\u078B","dh"],["\u078C","th"],["\u078D","l"],["\u078E","g"],["\u078F","gn"],["\u0790","s"],["\u0791","d"],["\u0792","z"],["\u0793","t"],["\u0794","y"],["\u0795","p"],["\u0796","j"],["\u0797","ch"],["\u0798","tt"],["\u0799","hh"],["\u079A","kh"],["\u079B","th"],["\u079C","z"],["\u079D","sh"],["\u079E","s"],["\u079F","d"],["\u07A0","t"],["\u07A1","z"],["\u07A2","a"],["\u07A3","gh"],["\u07A4","q"],["\u07A5","w"],["\u07A6","a"],["\u07A7","aa"],["\u07A8","i"],["\u07A9","ee"],["\u07AA","u"],["\u07AB","oo"],["\u07AC","e"],["\u07AD","ey"],["\u07AE","o"],["\u07AF","oa"],["\u07B0",""],["\u03B1","a"],["\u03B2","v"],["\u03B3","g"],["\u03B4","d"],["\u03B5","e"],["\u03B6","z"],["\u03B7","i"],["\u03B8","th"],["\u03B9","i"],["\u03BA","k"],["\u03BB","l"],["\u03BC","m"],["\u03BD","n"],["\u03BE","ks"],["\u03BF","o"],["\u03C0","p"],["\u03C1","r"],["\u03C3","s"],["\u03C4","t"],["\u03C5","y"],["\u03C6","f"],["\u03C7","x"],["\u03C8","ps"],["\u03C9","o"],["\u03AC","a"],["\u03AD","e"],["\u03AF","i"],["\u03CC","o"],["\u03CD","y"],["\u03AE","i"],["\u03CE","o"],["\u03C2","s"],["\u03CA","i"],["\u03B0","y"],["\u03CB","y"],["\u0390","i"],["\u0391","A"],["\u0392","B"],["\u0393","G"],["\u0394","D"],["\u0395","E"],["\u0396","Z"],["\u0397","I"],["\u0398","TH"],["\u0399","I"],["\u039A","K"],["\u039B","L"],["\u039C","M"],["\u039D","N"],["\u039E","KS"],["\u039F","O"],["\u03A0","P"],["\u03A1","R"],["\u03A3","S"],["\u03A4","T"],["\u03A5","Y"],["\u03A6","F"],["\u03A7","X"],["\u03A8","PS"],["\u03A9","O"],["\u0386","A"],["\u0388","E"],["\u038A","I"],["\u038C","O"],["\u038E","Y"],["\u0389","I"],["\u038F","O"],["\u03AA","I"],["\u03AB","Y"],["\u0101","a"],["\u0113","e"],["\u0123","g"],["\u012B","i"],["\u0137","k"],["\u013C","l"],["\u0146","n"],["\u016B","u"],["\u0100","A"],["\u0112","E"],["\u0122","G"],["\u012A","I"],["\u0136","K"],["\u013B","L"],["\u0145","N"],["\u016A","U"],["\u010D","c"],["\u0161","s"],["\u017E","z"],["\u010C","C"],["\u0160","S"],["\u017D","Z"],["\u0105","a"],["\u010D","c"],["\u0119","e"],["\u0117","e"],["\u012F","i"],["\u0161","s"],["\u0173","u"],["\u016B","u"],["\u017E","z"],["\u0104","A"],["\u010C","C"],["\u0118","E"],["\u0116","E"],["\u012E","I"],["\u0160","S"],["\u0172","U"],["\u016A","U"],["\u040C","Kj"],["\u045C","kj"],["\u0409","Lj"],["\u0459","lj"],["\u040A","Nj"],["\u045A","nj"],["\u0422\u0441","Ts"],["\u0442\u0441","ts"],["\u0105","a"],["\u0107","c"],["\u0119","e"],["\u0142","l"],["\u0144","n"],["\u015B","s"],["\u017A","z"],["\u017C","z"],["\u0104","A"],["\u0106","C"],["\u0118","E"],["\u0141","L"],["\u0143","N"],["\u015A","S"],["\u0179","Z"],["\u017B","Z"],["\u0404","Ye"],["\u0406","I"],["\u0407","Yi"],["\u0490","G"],["\u0454","ye"],["\u0456","i"],["\u0457","yi"],["\u0491","g"]]});var $wt=C((Tai,Lwt)=>{"use strict";var B8r=Fwt(),q8r=kwt(),j8r=Nwt(),U8r=(e,r)=>{for(let[n,i]of r)e=e.replace(new RegExp(q8r(n),"g"),i);return e};Lwt.exports=(e,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string, got \`${typeof e}\``);r={customReplacements:[],...r};let n=new Map([...j8r,...r.customReplacements]);return e=e.normalize(),e=U8r(e,n),e=B8r(e),e}});var qwt=C((Aai,Bwt)=>{"use strict";Bwt.exports=[["&"," and "],["\u{1F984}"," unicorn "],["\u2665"," love "]]});var Uwt=C((Oai,k0e)=>{"use strict";var W8r=tmt(),H8r=$wt(),G8r=qwt(),z8r=e=>e.replace(/([A-Z]{2,})(\d+)/g,"$1 $2").replace(/([a-z\d]+)([A-Z]{2,})/g,"$1 $2").replace(/([a-z\d])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1 $2"),V8r=(e,r)=>{let n=W8r(r);return e.replace(new RegExp(`${n}{2,}`,"g"),r).replace(new RegExp(`^${n}|${n}$`,"g"),"")},jwt=(e,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string, got \`${typeof e}\``);r={separator:"-",lowercase:!0,decamelize:!0,customReplacements:[],preserveLeadingUnderscore:!1,...r};let n=r.preserveLeadingUnderscore&&e.startsWith("_"),i=new Map([...G8r,...r.customReplacements]);e=H8r(e,{customReplacements:i}),r.decamelize&&(e=z8r(e));let o=/[^a-zA-Z\d]+/g;return r.lowercase&&(e=e.toLowerCase(),o=/[^a-z\d]+/g),e=e.replace(o,r.separator),e=e.replace(/\\/g,""),r.separator&&(e=V8r(e,r.separator)),n&&(e=`_${e}`),e},K8r=()=>{let e=new Map,r=(n,i)=>{if(n=jwt(n,i),!n)return"";let o=n.toLowerCase(),a=e.get(o.replace(/(?:-\d+?)+?$/,""))||0,c=e.get(o);e.set(o,typeof c=="number"?c+1:1);let u=e.get(o)||2;return(u>=2||a>2)&&(n=`${n}-${u}`),n};return r.reset=()=>{e.clear()},r};k0e.exports=jwt;k0e.exports.counter=K8r});var tk=C((sui,r5r)=>{r5r.exports={version:"6.5.0-dev.57",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"],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:">=18.18"},prisma:{prismaCommit:"1b107131424503237f067699b58d645a6e236180"},files:["README.md","build","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"},devDependencies:{"@antfu/ni":"0.21.12","@inquirer/prompts":"7.3.2","@prisma/adapter-libsql":"workspace:*","@prisma/client":"workspace:*","@prisma/config":"workspace:*","@prisma/debug":"workspace:*","@prisma/fetch-engine":"workspace:*","@prisma/generator-helper":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/internals":"workspace:*","@prisma/migrate":"workspace:*","@prisma/mini-proxy":"0.9.5","@prisma/studio":"0.510.0","@prisma/studio-server":"0.510.0","@swc/core":"1.11.5","@swc/jest":"0.2.37","@types/debug":"4.1.12","@types/fs-extra":"11.0.4","@types/jest":"29.5.14","@types/node":"18.19.76","@types/rimraf":"3.0.2","async-listen":"3.0.1","checkpoint-client":"1.1.33",chokidar:"3.6.0",debug:"4.4.0",dotenv:"16.4.7","env-paths":"2.2.1",esbuild:"0.24.2",execa:"5.1.1","fast-glob":"3.3.3","fs-extra":"11.3.0","fs-jetpack":"5.1.0","get-port":"5.1.1","global-dirs":"4.0.0",jest:"29.7.0","jest-junit":"16.0.0",kleur:"4.1.5","@libsql/client":"0.8.1","line-replace":"2.0.1","log-update":"4.0.0","node-fetch":"3.3.2","npm-packlist":"5.1.3",open:"7.4.2",ora:"5.4.1","pkg-up":"3.1.0","resolve-pkg":"2.0.0",rimraf:"3.0.2","strip-ansi":"6.0.1","ts-pattern":"5.6.2",typescript:"5.4.5","xdg-app-paths":"8.3.0",zx:"7.2.3"},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",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/engines":"workspace:*",esbuild:">=0.12 <1","esbuild-register":"3.6.0"},optionalDependencies:{fsevents:"2.3.3"},peerDependencies:{typescript:">=5.1.0"},peerDependenciesMeta:{typescript:{optional:!0}},sideEffects:!1}});var i1t=C((Iui,W0e)=>{"use strict";var t1t=require("path"),r1t=require("module"),n5r=require("fs"),n1t=(e,r,n)=>{if(typeof e!="string")throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof e}\``);if(typeof r!="string")throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof r}\``);try{e=n5r.realpathSync(e)}catch(a){if(a.code==="ENOENT")e=t1t.resolve(e);else{if(n)return;throw a}}let i=t1t.join(e,"noop.js"),o=()=>r1t._resolveFilename(r,{id:i,filename:i,paths:r1t._nodeModulePaths(e)});if(n)try{return o()}catch{return}return o()};W0e.exports=(e,r)=>n1t(e,r);W0e.exports.silent=(e,r)=>n1t(e,r,!0)});var s1t=C((Pui,o1t)=>{"use strict";var H0e=require("path"),i5r=i1t();o1t.exports=(e,r={})=>{let n=e.replace(/\\/g,"/").split("/"),i="";n.length>0&&n[0][0]==="@"&&(i+=n.shift()+"/"),i+=n.shift();let o=H0e.join(i,"package.json"),a=i5r.silent(r.cwd||process.cwd(),o);if(a)return H0e.join(H0e.dirname(a),n.join("/"))}});var g1t=C((jui,m1t)=>{"use strict";var nk=require("fs"),{Readable:a5r}=require("stream"),rk=require("path"),{promisify:Nj}=require("util"),K0e=U5(),c5r=Nj(nk.readdir),u5r=Nj(nk.stat),u1t=Nj(nk.lstat),l5r=Nj(nk.realpath),p5r="!",d1t="READDIRP_RECURSIVE_ERROR",f5r=new Set(["ENOENT","EPERM","EACCES","ELOOP",d1t]),Y0e="files",h1t="directories",kj="files_directories",Rj="all",l1t=[Y0e,h1t,kj,Rj],d5r=e=>f5r.has(e.code),[p1t,h5r]=process.versions.node.split(".").slice(0,2).map(e=>Number.parseInt(e,10)),m5r=process.platform==="win32"&&(p1t>10||p1t===10&&h5r>=5),f1t=e=>{if(e!==void 0){if(typeof e=="function")return e;if(typeof e=="string"){let r=K0e(e.trim());return n=>r(n.basename)}if(Array.isArray(e)){let r=[],n=[];for(let i of e){let o=i.trim();o.charAt(0)===p5r?n.push(K0e(o.slice(1))):r.push(K0e(o))}return n.length>0?r.length>0?i=>r.some(o=>o(i.basename))&&!n.some(o=>o(i.basename)):i=>!n.some(o=>o(i.basename)):i=>r.some(o=>o(i.basename))}}},Mj=class e extends a5r{static get defaultOptions(){return{root:".",fileFilter:r=>!0,directoryFilter:r=>!0,type:Y0e,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(r={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:r.highWaterMark||4096});let n={...e.defaultOptions,...r},{root:i,type:o}=n;this._fileFilter=f1t(n.fileFilter),this._directoryFilter=f1t(n.directoryFilter);let a=n.lstat?u1t:u5r;m5r?this._stat=c=>a(c,{bigint:!0}):this._stat=a,this._maxDepth=n.depth,this._wantsDir=[h1t,kj,Rj].includes(o),this._wantsFile=[Y0e,kj,Rj].includes(o),this._wantsEverything=o===Rj,this._root=rk.resolve(i),this._isDirent="Dirent"in nk&&!n.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(i,1)],this.reading=!1,this.parent=void 0}async _read(r){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&r>0;){let{path:n,depth:i,files:o=[]}=this.parent||{};if(o.length>0){let a=o.splice(0,r).map(c=>this._formatEntry(c,n));for(let c of await Promise.all(a)){if(this.destroyed)return;let u=await this._getEntryType(c);u==="directory"&&this._directoryFilter(c)?(i<=this._maxDepth&&this.parents.push(this._exploreDir(c.fullPath,i+1)),this._wantsDir&&(this.push(c),r--)):(u==="file"||this._includeAsFile(c))&&this._fileFilter(c)&&this._wantsFile&&(this.push(c),r--)}}else{let a=this.parents.pop();if(!a){this.push(null);break}if(this.parent=await a,this.destroyed)return}}}catch(n){this.destroy(n)}finally{this.reading=!1}}}async _exploreDir(r,n){let i;try{i=await c5r(r,this._rdOptions)}catch(o){this._onError(o)}return{files:i,depth:n,path:r}}async _formatEntry(r,n){let i;try{let o=this._isDirent?r.name:r,a=rk.resolve(rk.join(n,o));i={path:rk.relative(this._root,a),fullPath:a,basename:o},i[this._statsProp]=this._isDirent?r:await this._stat(a)}catch(o){this._onError(o)}return i}_onError(r){d5r(r)&&!this.destroyed?this.emit("warn",r):this.destroy(r)}async _getEntryType(r){let n=r&&r[this._statsProp];if(n){if(n.isFile())return"file";if(n.isDirectory())return"directory";if(n&&n.isSymbolicLink()){let i=r.fullPath;try{let o=await l5r(i),a=await u1t(o);if(a.isFile())return"file";if(a.isDirectory()){let c=o.length;if(i.startsWith(o)&&i.substr(c,1)===rk.sep){let u=new Error(`Circular symlink detected: "${i}" points to "${o}"`);return u.code=d1t,this._onError(u)}return"directory"}}catch(o){this._onError(o)}}}}_includeAsFile(r){let n=r&&r[this._statsProp];return n&&this._wantsEverything&&!n.isDirectory()}},OC=(e,r={})=>{let n=r.entryType||r.type;if(n==="both"&&(n=kj),n&&(r.type=n),e){if(typeof e!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(n&&!l1t.includes(n))throw new Error(`readdirp: Invalid type passed. Use one of ${l1t.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return r.root=e,new Mj(r)},g5r=(e,r={})=>new Promise((n,i)=>{let o=[];OC(e,r).on("data",a=>o.push(a)).on("end",()=>n(o)).on("error",a=>i(a))});OC.promise=g5r;OC.ReaddirpStream=Mj;OC.default=OC;m1t.exports=OC});var w1t=C((v1t,E1t)=>{"use strict";Object.defineProperty(v1t,"__esModule",{value:!0});var b1t=U5(),x5r=yF(),x1t="!",y5r={returnIndex:!1},b5r=e=>Array.isArray(e)?e:[e],v5r=(e,r)=>{if(typeof e=="function")return e;if(typeof e=="string"){let n=b1t(e,r);return i=>e===i||n(i)}return e instanceof RegExp?n=>e.test(n):n=>!1},y1t=(e,r,n,i)=>{let o=Array.isArray(n),a=o?n[0]:n;if(!o&&typeof a!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(a));let c=x5r(a,!1);for(let l=0;l<r.length;l++){let p=r[l];if(p(c))return i?-1:!1}let u=o&&[c].concat(n.slice(1));for(let l=0;l<e.length;l++){let p=e[l];if(o?p(...u):p(c))return i?l:!0}return i?-1:!1},J0e=(e,r,n=y5r)=>{if(e==null)throw new TypeError("anymatch: specify first argument");let i=typeof n=="boolean"?{returnIndex:n}:n,o=i.returnIndex||!1,a=b5r(e),c=a.filter(l=>typeof l=="string"&&l.charAt(0)===x1t).map(l=>l.slice(1)).map(l=>b1t(l,i)),u=a.filter(l=>typeof l!="string"||typeof l=="string"&&l.charAt(0)!==x1t).map(l=>v5r(l,i));return r==null?(l,p=!1)=>y1t(u,c,l,typeof p=="boolean"?p:!1):y1t(u,c,r,o)};J0e.default=J0e;E1t.exports=J0e});var Lj=C(Yl=>{"use strict";Yl.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;Yl.find=(e,r)=>e.nodes.find(n=>n.type===r);Yl.exceedsLimit=(e,r,n=1,i)=>i===!1||!Yl.isInteger(e)||!Yl.isInteger(r)?!1:(Number(r)-Number(e))/Number(n)>=i;Yl.escapeNode=(e,r=0,n)=>{let i=e.nodes[r];i&&(n&&i.type===n||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)};Yl.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);Yl.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;Yl.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;Yl.reduce=e=>e.reduce((r,n)=>(n.type==="text"&&r.push(n.value),n.type==="range"&&(n.type="text"),r),[]);Yl.flatten=(...e)=>{let r=[],n=i=>{for(let o=0;o<i.length;o++){let a=i[o];Array.isArray(a)?n(a,r):a!==void 0&&r.push(a)}return r};return n(e),r}});var $j=C((Wui,_1t)=>{"use strict";var S1t=Lj();_1t.exports=(e,r={})=>{let n=(i,o={})=>{let a=r.escapeInvalid&&S1t.isInvalidBrace(o),c=i.invalid===!0&&r.escapeInvalid===!0,u="";if(i.value)return(a||c)&&S1t.isOpenOrClose(i)?"\\"+i.value:i.value;if(i.value)return i.value;if(i.nodes)for(let l of i.nodes)u+=n(l);return u};return n(e)}});var T1t=C((Hui,D1t)=>{"use strict";var E5r=xI(),C1t=Lj(),w5r=(e,r={})=>{let n=(i,o={})=>{let a=C1t.isInvalidBrace(o),c=i.invalid===!0&&r.escapeInvalid===!0,u=a===!0||c===!0,l=r.escapeInvalid===!0?"\\":"",p="";if(i.isOpen===!0||i.isClose===!0)return l+i.value;if(i.type==="open")return u?l+i.value:"(";if(i.type==="close")return u?l+i.value:")";if(i.type==="comma")return i.prev.type==="comma"?"":u?i.value:"|";if(i.value)return i.value;if(i.nodes&&i.ranges>0){let f=C1t.reduce(i.nodes),g=E5r(...f,{...r,wrap:!1,toRegex:!0});if(g.length!==0)return f.length>1&&g.length>1?`(${g})`:g}if(i.nodes)for(let f of i.nodes)p+=n(f,i);return p};return n(e)};D1t.exports=w5r});var I1t=C((Gui,O1t)=>{"use strict";var S5r=xI(),A1t=$j(),IC=Lj(),tw=(e="",r="",n=!1)=>{let i=[];if(e=[].concat(e),r=[].concat(r),!r.length)return e;if(!e.length)return n?IC.flatten(r).map(o=>`{${o}}`):r;for(let o of e)if(Array.isArray(o))for(let a of o)i.push(tw(a,r,n));else for(let a of r)n===!0&&typeof a=="string"&&(a=`{${a}}`),i.push(Array.isArray(a)?tw(o,a,n):o+a);return IC.flatten(i)},_5r=(e,r={})=>{let n=r.rangeLimit===void 0?1e3:r.rangeLimit,i=(o,a={})=>{o.queue=[];let c=a,u=a.queue;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,u=c.queue;if(o.invalid||o.dollar){u.push(tw(u.pop(),A1t(o,r)));return}if(o.type==="brace"&&o.invalid!==!0&&o.nodes.length===2){u.push(tw(u.pop(),["{}"]));return}if(o.nodes&&o.ranges>0){let g=IC.reduce(o.nodes);if(IC.exceedsLimit(...g,r.step,n))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let x=S5r(...g,r);x.length===0&&(x=A1t(o,r)),u.push(tw(u.pop(),x)),o.nodes=[];return}let l=IC.encloseBrace(o),p=o.queue,f=o;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,p=f.queue;for(let g=0;g<o.nodes.length;g++){let x=o.nodes[g];if(x.type==="comma"&&o.type==="brace"){g===1&&p.push(""),p.push("");continue}if(x.type==="close"){u.push(tw(u.pop(),p,l));continue}if(x.value&&x.type!=="open"){p.push(tw(p.pop(),x.value));continue}x.nodes&&i(x,o)}return p};return IC.flatten(i(e))};O1t.exports=_5r});var F1t=C((zui,P1t)=>{"use strict";P1t.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
460
460
|
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var L1t=C((Vui,N1t)=>{"use strict";var C5r=$j(),{MAX_LENGTH:R1t,CHAR_BACKSLASH:Q0e,CHAR_BACKTICK:D5r,CHAR_COMMA:T5r,CHAR_DOT:A5r,CHAR_LEFT_PARENTHESES:O5r,CHAR_RIGHT_PARENTHESES:I5r,CHAR_LEFT_CURLY_BRACE:P5r,CHAR_RIGHT_CURLY_BRACE:F5r,CHAR_LEFT_SQUARE_BRACKET:k1t,CHAR_RIGHT_SQUARE_BRACKET:M1t,CHAR_DOUBLE_QUOTE:R5r,CHAR_SINGLE_QUOTE:k5r,CHAR_NO_BREAK_SPACE:M5r,CHAR_ZERO_WIDTH_NOBREAK_SPACE:N5r}=F1t(),L5r=(e,r={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let n=r||{},i=typeof n.maxLength=="number"?Math.min(R1t,n.maxLength):R1t;if(e.length>i)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${i})`);let o={type:"root",input:e,nodes:[]},a=[o],c=o,u=o,l=0,p=e.length,f=0,g=0,x,b={},v=()=>e[f++],S=T=>{if(T.type==="text"&&u.type==="dot"&&(u.type="text"),u&&u.type==="text"&&T.type==="text"){u.value+=T.value;return}return c.nodes.push(T),T.parent=c,T.prev=u,u=T,T};for(S({type:"bos"});f<p;)if(c=a[a.length-1],x=v(),!(x===N5r||x===M5r)){if(x===Q0e){S({type:"text",value:(r.keepEscaping?x:"")+v()});continue}if(x===M1t){S({type:"text",value:"\\"+x});continue}if(x===k1t){l++;let T=!0,P;for(;f<p&&(P=v());){if(x+=P,P===k1t){l++;continue}if(P===Q0e){x+=v();continue}if(P===M1t&&(l--,l===0))break}S({type:"text",value:x});continue}if(x===O5r){c=S({type:"paren",nodes:[]}),a.push(c),S({type:"text",value:x});continue}if(x===I5r){if(c.type!=="paren"){S({type:"text",value:x});continue}c=a.pop(),S({type:"text",value:x}),c=a[a.length-1];continue}if(x===R5r||x===k5r||x===D5r){let T=x,P;for(r.keepQuotes!==!0&&(x="");f<p&&(P=v());){if(P===Q0e){x+=P+v();continue}if(P===T){r.keepQuotes===!0&&(x+=P);break}x+=P}S({type:"text",value:x});continue}if(x===P5r){g++;let P={type:"brace",open:!0,close:!1,dollar:u.value&&u.value.slice(-1)==="$"||c.dollar===!0,depth:g,commas:0,ranges:0,nodes:[]};c=S(P),a.push(c),S({type:"open",value:x});continue}if(x===F5r){if(c.type!=="brace"){S({type:"text",value:x});continue}let T="close";c=a.pop(),c.close=!0,S({type:T,value:x}),g--,c=a[a.length-1];continue}if(x===T5r&&g>0){if(c.ranges>0){c.ranges=0;let T=c.nodes.shift();c.nodes=[T,{type:"text",value:C5r(c)}]}S({type:"comma",value:x}),c.commas++;continue}if(x===A5r&&g>0&&c.commas===0){let T=c.nodes;if(g===0||T.length===0){S({type:"text",value:x});continue}if(u.type==="dot"){if(c.range=[],u.value+=x,u.type="range",c.nodes.length!==3&&c.nodes.length!==5){c.invalid=!0,c.ranges=0,u.type="text";continue}c.ranges++,c.args=[];continue}if(u.type==="range"){T.pop();let P=T[T.length-1];P.value+=u.value+x,u=P,c.ranges--;continue}S({type:"dot",value:x});continue}S({type:"text",value:x})}do if(c=a.pop(),c.type!=="root"){c.nodes.forEach(R=>{R.nodes||(R.type==="open"&&(R.isOpen=!0),R.type==="close"&&(R.isClose=!0),R.nodes||(R.type="text"),R.invalid=!0)});let T=a[a.length-1],P=T.nodes.indexOf(c);T.nodes.splice(P,1,...c.nodes)}while(a.length>0);return S({type:"eos"}),o};N1t.exports=L5r});var q1t=C((Kui,B1t)=>{"use strict";var $1t=$j(),$5r=T1t(),B5r=I1t(),q5r=L1t(),ju=(e,r={})=>{let n=[];if(Array.isArray(e))for(let i of e){let o=ju.create(i,r);Array.isArray(o)?n.push(...o):n.push(o)}else n=[].concat(ju.create(e,r));return r&&r.expand===!0&&r.nodupes===!0&&(n=[...new Set(n)]),n};ju.parse=(e,r={})=>q5r(e,r);ju.stringify=(e,r={})=>$1t(typeof e=="string"?ju.parse(e,r):e,r);ju.compile=(e,r={})=>(typeof e=="string"&&(e=ju.parse(e,r)),$5r(e,r));ju.expand=(e,r={})=>{typeof e=="string"&&(e=ju.parse(e,r));let n=B5r(e,r);return r.noempty===!0&&(n=n.filter(Boolean)),r.nodupes===!0&&(n=[...new Set(n)]),n};ju.create=(e,r={})=>e===""||e.length<3?[e]:r.expand!==!0?ju.compile(e,r):ju.expand(e,r);B1t.exports=ju});var j1t=C((Yui,j5r)=>{j5r.exports=["3dm","3ds","3g2","3gp","7z","a","aac","adp","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]});var W1t=C((Jui,U1t)=>{"use strict";U1t.exports=j1t()});var G1t=C((Qui,H1t)=>{"use strict";var U5r=require("path"),W5r=W1t(),H5r=new Set(W5r);H1t.exports=e=>H5r.has(U5r.extname(e).slice(1).toLowerCase())});var Bj=C(gt=>{"use strict";var{sep:G5r}=require("path"),{platform:Z0e}=process,z5r=require("os");gt.EV_ALL="all";gt.EV_READY="ready";gt.EV_ADD="add";gt.EV_CHANGE="change";gt.EV_ADD_DIR="addDir";gt.EV_UNLINK="unlink";gt.EV_UNLINK_DIR="unlinkDir";gt.EV_RAW="raw";gt.EV_ERROR="error";gt.STR_DATA="data";gt.STR_END="end";gt.STR_CLOSE="close";gt.FSEVENT_CREATED="created";gt.FSEVENT_MODIFIED="modified";gt.FSEVENT_DELETED="deleted";gt.FSEVENT_MOVED="moved";gt.FSEVENT_CLONED="cloned";gt.FSEVENT_UNKNOWN="unknown";gt.FSEVENT_FLAG_MUST_SCAN_SUBDIRS=1;gt.FSEVENT_TYPE_FILE="file";gt.FSEVENT_TYPE_DIRECTORY="directory";gt.FSEVENT_TYPE_SYMLINK="symlink";gt.KEY_LISTENERS="listeners";gt.KEY_ERR="errHandlers";gt.KEY_RAW="rawEmitters";gt.HANDLER_KEYS=[gt.KEY_LISTENERS,gt.KEY_ERR,gt.KEY_RAW];gt.DOT_SLASH=`.${G5r}`;gt.BACK_SLASH_RE=/\\/g;gt.DOUBLE_SLASH_RE=/\/\//;gt.SLASH_OR_BACK_SLASH_RE=/[/\\]/;gt.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/;gt.REPLACER_RE=/^\.[/\\]/;gt.SLASH="/";gt.SLASH_SLASH="//";gt.BRACE_START="{";gt.BANG="!";gt.ONE_DOT=".";gt.TWO_DOTS="..";gt.STAR="*";gt.GLOBSTAR="**";gt.ROOT_GLOBSTAR="/**/*";gt.SLASH_GLOBSTAR="/**";gt.DIR_SUFFIX="Dir";gt.ANYMATCH_OPTS={dot:!0};gt.STRING_TYPE="string";gt.FUNCTION_TYPE="function";gt.EMPTY_STR="";gt.EMPTY_FN=()=>{};gt.IDENTITY_FN=e=>e;gt.isWindows=Z0e==="win32";gt.isMacos=Z0e==="darwin";gt.isLinux=Z0e==="linux";gt.isIBMi=z5r.type()==="OS400"});var Q1t=C((Xui,J1t)=>{"use strict";var Xm=require("fs"),Rs=require("path"),{promisify:ak}=require("util"),V5r=G1t(),{isWindows:K5r,isLinux:Y5r,EMPTY_FN:J5r,EMPTY_STR:Q5r,KEY_LISTENERS:PC,KEY_ERR:X0e,KEY_RAW:ik,HANDLER_KEYS:Z5r,EV_CHANGE:jj,EV_ADD:qj,EV_ADD_DIR:X5r,EV_ERROR:V1t,STR_DATA:e$r,STR_END:t$r,BRACE_START:r$r,STAR:n$r}=Bj(),i$r="watch",o$r=ak(Xm.open),K1t=ak(Xm.stat),s$r=ak(Xm.lstat),a$r=ak(Xm.close),exe=ak(Xm.realpath),c$r={lstat:s$r,stat:K1t},rxe=(e,r)=>{e instanceof Set?e.forEach(r):r(e)},ok=(e,r,n)=>{let i=e[r];i instanceof Set||(e[r]=i=new Set([i])),i.add(n)},u$r=e=>r=>{let n=e[r];n instanceof Set?n.clear():delete e[r]},sk=(e,r,n)=>{let i=e[r];i instanceof Set?i.delete(n):i===n&&delete e[r]},Y1t=e=>e instanceof Set?e.size===0:!e,Uj=new Map;function z1t(e,r,n,i,o){let a=(c,u)=>{n(e),o(c,u,{watchedPath:e}),u&&e!==u&&Wj(Rs.resolve(e,u),PC,Rs.join(e,u))};try{return Xm.watch(e,r,a)}catch(c){i(c)}}var Wj=(e,r,n,i,o)=>{let a=Uj.get(e);a&&rxe(a[r],c=>{c(n,i,o)})},l$r=(e,r,n,i)=>{let{listener:o,errHandler:a,rawEmitter:c}=i,u=Uj.get(r),l;if(!n.persistent)return l=z1t(e,n,o,a,c),l.close.bind(l);if(u)ok(u,PC,o),ok(u,X0e,a),ok(u,ik,c);else{if(l=z1t(e,n,Wj.bind(null,r,PC),a,Wj.bind(null,r,ik)),!l)return;l.on(V1t,async p=>{let f=Wj.bind(null,r,X0e);if(u.watcherUnusable=!0,K5r&&p.code==="EPERM")try{let g=await o$r(e,"r");await a$r(g),f(p)}catch{}else f(p)}),u={listeners:o,errHandlers:a,rawEmitters:c,watcher:l},Uj.set(r,u)}return()=>{sk(u,PC,o),sk(u,X0e,a),sk(u,ik,c),Y1t(u.listeners)&&(u.watcher.close(),Uj.delete(r),Z5r.forEach(u$r(u)),u.watcher=void 0,Object.freeze(u))}},txe=new Map,p$r=(e,r,n,i)=>{let{listener:o,rawEmitter:a}=i,c=txe.get(r),u=new Set,l=new Set,p=c&&c.options;return p&&(p.persistent<n.persistent||p.interval>n.interval)&&(u=c.listeners,l=c.rawEmitters,Xm.unwatchFile(r),c=void 0),c?(ok(c,PC,o),ok(c,ik,a)):(c={listeners:o,rawEmitters:a,options:n,watcher:Xm.watchFile(r,n,(f,g)=>{rxe(c.rawEmitters,b=>{b(jj,r,{curr:f,prev:g})});let x=f.mtimeMs;(f.size!==g.size||x>g.mtimeMs||x===0)&&rxe(c.listeners,b=>b(e,f))})},txe.set(r,c)),()=>{sk(c,PC,o),sk(c,ik,a),Y1t(c.listeners)&&(txe.delete(r),Xm.unwatchFile(r),c.options=c.watcher=void 0,Object.freeze(c))}},nxe=class{constructor(r){this.fsw=r,this._boundHandleError=n=>r._handleError(n)}_watchWithNodeFs(r,n){let i=this.fsw.options,o=Rs.dirname(r),a=Rs.basename(r);this.fsw._getWatchedDir(o).add(a);let u=Rs.resolve(r),l={persistent:i.persistent};n||(n=J5r);let p;return i.usePolling?(l.interval=i.enableBinaryInterval&&V5r(a)?i.binaryInterval:i.interval,p=p$r(r,u,l,{listener:n,rawEmitter:this.fsw._emitRaw})):p=l$r(r,u,l,{listener:n,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),p}_handleFile(r,n,i){if(this.fsw.closed)return;let o=Rs.dirname(r),a=Rs.basename(r),c=this.fsw._getWatchedDir(o),u=n;if(c.has(a))return;let l=async(f,g)=>{if(this.fsw._throttle(i$r,r,5)){if(!g||g.mtimeMs===0)try{let x=await K1t(r);if(this.fsw.closed)return;let b=x.atimeMs,v=x.mtimeMs;(!b||b<=v||v!==u.mtimeMs)&&this.fsw._emit(jj,r,x),Y5r&&u.ino!==x.ino?(this.fsw._closeFile(f),u=x,this.fsw._addPathCloser(f,this._watchWithNodeFs(r,l))):u=x}catch{this.fsw._remove(o,a)}else if(c.has(a)){let x=g.atimeMs,b=g.mtimeMs;(!x||x<=b||b!==u.mtimeMs)&&this.fsw._emit(jj,r,g),u=g}}},p=this._watchWithNodeFs(r,l);if(!(i&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(r)){if(!this.fsw._throttle(qj,r,0))return;this.fsw._emit(qj,r,n)}return p}async _handleSymlink(r,n,i,o){if(this.fsw.closed)return;let a=r.fullPath,c=this.fsw._getWatchedDir(n);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let u;try{u=await exe(i)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(c.has(o)?this.fsw._symlinkPaths.get(a)!==u&&(this.fsw._symlinkPaths.set(a,u),this.fsw._emit(jj,i,r.stats)):(c.add(o),this.fsw._symlinkPaths.set(a,u),this.fsw._emit(qj,i,r.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(a))return!0;this.fsw._symlinkPaths.set(a,!0)}_handleRead(r,n,i,o,a,c,u){if(r=Rs.join(r,Q5r),!i.hasGlob&&(u=this.fsw._throttle("readdir",r,1e3),!u))return;let l=this.fsw._getWatchedDir(i.path),p=new Set,f=this.fsw._readdirp(r,{fileFilter:g=>i.filterPath(g),directoryFilter:g=>i.filterDir(g),depth:0}).on(e$r,async g=>{if(this.fsw.closed){f=void 0;return}let x=g.path,b=Rs.join(r,x);if(p.add(x),!(g.stats.isSymbolicLink()&&await this._handleSymlink(g,r,b,x))){if(this.fsw.closed){f=void 0;return}(x===o||!o&&!l.has(x))&&(this.fsw._incrReadyCount(),b=Rs.join(a,Rs.relative(a,b)),this._addToNodeFs(b,n,i,c+1))}}).on(V1t,this._boundHandleError);return new Promise(g=>f.once(t$r,()=>{if(this.fsw.closed){f=void 0;return}let x=u?u.clear():!1;g(),l.getChildren().filter(b=>b!==r&&!p.has(b)&&(!i.hasGlob||i.filterPath({fullPath:Rs.resolve(r,b)}))).forEach(b=>{this.fsw._remove(r,b)}),f=void 0,x&&this._handleRead(r,!1,i,o,a,c,u)}))}async _handleDir(r,n,i,o,a,c,u){let l=this.fsw._getWatchedDir(Rs.dirname(r)),p=l.has(Rs.basename(r));!(i&&this.fsw.options.ignoreInitial)&&!a&&!p&&(!c.hasGlob||c.globFilter(r))&&this.fsw._emit(X5r,r,n),l.add(Rs.basename(r)),this.fsw._getWatchedDir(r);let f,g,x=this.fsw.options.depth;if((x==null||o<=x)&&!this.fsw._symlinkPaths.has(u)){if(!a&&(await this._handleRead(r,i,c,a,r,o,f),this.fsw.closed))return;g=this._watchWithNodeFs(r,(b,v)=>{v&&v.mtimeMs===0||this._handleRead(b,!1,c,a,r,o,f)})}return g}async _addToNodeFs(r,n,i,o,a){let c=this.fsw._emitReady;if(this.fsw._isIgnored(r)||this.fsw.closed)return c(),!1;let u=this.fsw._getWatchHelpers(r,o);!u.hasGlob&&i&&(u.hasGlob=i.hasGlob,u.globFilter=i.globFilter,u.filterPath=l=>i.filterPath(l),u.filterDir=l=>i.filterDir(l));try{let l=await c$r[u.statMethod](u.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(u.watchPath,l))return c(),!1;let p=this.fsw.options.followSymlinks&&!r.includes(n$r)&&!r.includes(r$r),f;if(l.isDirectory()){let g=Rs.resolve(r),x=p?await exe(r):r;if(this.fsw.closed||(f=await this._handleDir(u.watchPath,l,n,o,a,u,x),this.fsw.closed))return;g!==x&&x!==void 0&&this.fsw._symlinkPaths.set(g,x)}else if(l.isSymbolicLink()){let g=p?await exe(r):r;if(this.fsw.closed)return;let x=Rs.dirname(u.watchPath);if(this.fsw._getWatchedDir(x).add(u.watchPath),this.fsw._emit(qj,u.watchPath,l),f=await this._handleDir(x,l,n,o,r,u,g),this.fsw.closed)return;g!==void 0&&this.fsw._symlinkPaths.set(Rs.resolve(r),g)}else f=this._handleFile(u.watchPath,l,n);return c(),this.fsw._addPathCloser(r,f),!1}catch(l){if(this.fsw._handleError(l))return c(),r}}};J1t.exports=nxe});var iSt=C((eli,pxe)=>{"use strict";var uxe=require("fs"),ks=require("path"),{promisify:lxe}=require("util"),FC;try{FC=require("fsevents")}catch(e){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(e)}if(FC){let e=process.version.match(/v(\d+)\.(\d+)/);if(e&&e[1]&&e[2]){let r=Number.parseInt(e[1],10),n=Number.parseInt(e[2],10);r===8&&n<16&&(FC=void 0)}}var{EV_ADD:ixe,EV_CHANGE:f$r,EV_ADD_DIR:Z1t,EV_UNLINK:Hj,EV_ERROR:d$r,STR_DATA:h$r,STR_END:m$r,FSEVENT_CREATED:g$r,FSEVENT_MODIFIED:x$r,FSEVENT_DELETED:y$r,FSEVENT_MOVED:b$r,FSEVENT_UNKNOWN:v$r,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:E$r,FSEVENT_TYPE_FILE:w$r,FSEVENT_TYPE_DIRECTORY:ck,FSEVENT_TYPE_SYMLINK:nSt,ROOT_GLOBSTAR:X1t,DIR_SUFFIX:S$r,DOT_SLASH:eSt,FUNCTION_TYPE:oxe,EMPTY_FN:_$r,IDENTITY_FN:C$r}=Bj(),D$r=e=>isNaN(e)?{}:{depth:e},axe=lxe(uxe.stat),T$r=lxe(uxe.lstat),tSt=lxe(uxe.realpath),A$r={stat:axe,lstat:T$r},rw=new Map,O$r=10,I$r=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),P$r=(e,r)=>({stop:FC.watch(e,r)});function F$r(e,r,n,i){let o=ks.extname(r)?ks.dirname(r):r,a=ks.dirname(o),c=rw.get(o);R$r(a)&&(o=a);let u=ks.resolve(e),l=u!==r,p=(g,x,b)=>{l&&(g=g.replace(r,u)),(g===u||!g.indexOf(u+ks.sep))&&n(g,x,b)},f=!1;for(let g of rw.keys())if(r.indexOf(ks.resolve(g)+ks.sep)===0){o=g,c=rw.get(o),f=!0;break}return c||f?c.listeners.add(p):(c={listeners:new Set([p]),rawEmitter:i,watcher:P$r(o,(g,x)=>{if(!c.listeners.size||x&E$r)return;let b=FC.getInfo(g,x);c.listeners.forEach(v=>{v(g,x,b)}),c.rawEmitter(b.event,g,b)})},rw.set(o,c)),()=>{let g=c.listeners;if(g.delete(p),!g.size&&(rw.delete(o),c.watcher))return c.watcher.stop().then(()=>{c.rawEmitter=c.watcher=void 0,Object.freeze(c)})}}var R$r=e=>{let r=0;for(let n of rw.keys())if(n.indexOf(e)===0&&(r++,r>=O$r))return!0;return!1},k$r=()=>FC&&rw.size<128,sxe=(e,r)=>{let n=0;for(;!e.indexOf(r)&&(e=ks.dirname(e))!==r;)n++;return n},rSt=(e,r)=>e.type===ck&&r.isDirectory()||e.type===nSt&&r.isSymbolicLink()||e.type===w$r&&r.isFile(),cxe=class{constructor(r){this.fsw=r}checkIgnored(r,n){let i=this.fsw._ignoredPaths;if(this.fsw._isIgnored(r,n))return i.add(r),n&&n.isDirectory()&&i.add(r+X1t),!0;i.delete(r),i.delete(r+X1t)}addOrChange(r,n,i,o,a,c,u,l){let p=a.has(c)?f$r:ixe;this.handleEvent(p,r,n,i,o,a,c,u,l)}async checkExists(r,n,i,o,a,c,u,l){try{let p=await axe(r);if(this.fsw.closed)return;rSt(u,p)?this.addOrChange(r,n,i,o,a,c,u,l):this.handleEvent(Hj,r,n,i,o,a,c,u,l)}catch(p){p.code==="EACCES"?this.addOrChange(r,n,i,o,a,c,u,l):this.handleEvent(Hj,r,n,i,o,a,c,u,l)}}handleEvent(r,n,i,o,a,c,u,l,p){if(!(this.fsw.closed||this.checkIgnored(n)))if(r===Hj){let f=l.type===ck;(f||c.has(u))&&this.fsw._remove(a,u,f)}else{if(r===ixe){if(l.type===ck&&this.fsw._getWatchedDir(n),l.type===nSt&&p.followSymlinks){let g=p.depth===void 0?void 0:sxe(i,o)+1;return this._addToFsEvents(n,!1,!0,g)}this.fsw._getWatchedDir(a).add(u)}let f=l.type===ck?r+S$r:r;this.fsw._emit(f,n),f===Z1t&&this._addToFsEvents(n,!1,!0)}}_watchWithFsEvents(r,n,i,o){if(this.fsw.closed||this.fsw._isIgnored(r))return;let a=this.fsw.options,u=F$r(r,n,async(l,p,f)=>{if(this.fsw.closed||a.depth!==void 0&&sxe(l,n)>a.depth)return;let g=i(ks.join(r,ks.relative(r,l)));if(o&&!o(g))return;let x=ks.dirname(g),b=ks.basename(g),v=this.fsw._getWatchedDir(f.type===ck?g:x);if(I$r.has(p)||f.event===v$r)if(typeof a.ignored===oxe){let S;try{S=await axe(g)}catch{}if(this.fsw.closed||this.checkIgnored(g,S))return;rSt(f,S)?this.addOrChange(g,l,n,x,v,b,f,a):this.handleEvent(Hj,g,l,n,x,v,b,f,a)}else this.checkExists(g,l,n,x,v,b,f,a);else switch(f.event){case g$r:case x$r:return this.addOrChange(g,l,n,x,v,b,f,a);case y$r:case b$r:return this.checkExists(g,l,n,x,v,b,f,a)}},this.fsw._emitRaw);return this.fsw._emitReady(),u}async _handleFsEventsSymlink(r,n,i,o){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(n))){this.fsw._symlinkPaths.set(n,!0),this.fsw._incrReadyCount();try{let a=await tSt(r);if(this.fsw.closed)return;if(this.fsw._isIgnored(a))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(a||r,c=>{let u=r;return a&&a!==eSt?u=c.replace(a,r):c!==eSt&&(u=ks.join(r,c)),i(u)},!1,o)}catch(a){if(this.fsw._handleError(a))return this.fsw._emitReady()}}}emitAdd(r,n,i,o,a){let c=i(r),u=n.isDirectory(),l=this.fsw._getWatchedDir(ks.dirname(c)),p=ks.basename(c);u&&this.fsw._getWatchedDir(c),!l.has(p)&&(l.add(p),(!o.ignoreInitial||a===!0)&&this.fsw._emit(u?Z1t:ixe,c,n))}initWatch(r,n,i,o){if(this.fsw.closed)return;let a=this._watchWithFsEvents(i.watchPath,ks.resolve(r||i.watchPath),o,i.globFilter);this.fsw._addPathCloser(n,a)}async _addToFsEvents(r,n,i,o){if(this.fsw.closed)return;let a=this.fsw.options,c=typeof n===oxe?n:C$r,u=this.fsw._getWatchHelpers(r);try{let l=await A$r[u.statMethod](u.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(u.watchPath,l))throw null;if(l.isDirectory()){if(u.globFilter||this.emitAdd(c(r),l,c,a,i),o&&o>a.depth)return;this.fsw._readdirp(u.watchPath,{fileFilter:p=>u.filterPath(p),directoryFilter:p=>u.filterDir(p),...D$r(a.depth-(o||0))}).on(h$r,p=>{if(this.fsw.closed||p.stats.isDirectory()&&!u.filterPath(p))return;let f=ks.join(u.watchPath,p.path),{fullPath:g}=p;if(u.followSymlinks&&p.stats.isSymbolicLink()){let x=a.depth===void 0?void 0:sxe(f,ks.resolve(u.watchPath))+1;this._handleFsEventsSymlink(f,g,c,x)}else this.emitAdd(f,p.stats,c,a,i)}).on(d$r,_$r).on(m$r,()=>{this.fsw._emitReady()})}else this.emitAdd(u.watchPath,l,c,a,i),this.fsw._emitReady()}catch(l){(!l||this.fsw._handleError(l))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(a.persistent&&i!==!0)if(typeof n===oxe)this.initWatch(void 0,r,u,c);else{let l;try{l=await tSt(u.watchPath)}catch{}this.initWatch(l,r,u,c)}}};pxe.exports=cxe;pxe.exports.canUse=k$r});var mSt=C(Dxe=>{"use strict";var{EventEmitter:M$r}=require("events"),_xe=require("fs"),An=require("path"),{promisify:pSt}=require("util"),N$r=g1t(),xxe=w1t().default,L$r=Hne(),fxe=k5(),$$r=q1t(),B$r=yF(),q$r=Q1t(),oSt=iSt(),{EV_ALL:dxe,EV_READY:j$r,EV_ADD:Gj,EV_CHANGE:uk,EV_UNLINK:sSt,EV_ADD_DIR:U$r,EV_UNLINK_DIR:W$r,EV_RAW:H$r,EV_ERROR:hxe,STR_CLOSE:G$r,STR_END:z$r,BACK_SLASH_RE:V$r,DOUBLE_SLASH_RE:aSt,SLASH_OR_BACK_SLASH_RE:K$r,DOT_RE:Y$r,REPLACER_RE:J$r,SLASH:mxe,SLASH_SLASH:Q$r,BRACE_START:Z$r,BANG:yxe,ONE_DOT:fSt,TWO_DOTS:X$r,GLOBSTAR:eBr,SLASH_GLOBSTAR:gxe,ANYMATCH_OPTS:bxe,STRING_TYPE:Cxe,FUNCTION_TYPE:tBr,EMPTY_STR:vxe,EMPTY_FN:rBr,isWindows:nBr,isMacos:iBr,isIBMi:oBr}=Bj(),sBr=pSt(_xe.stat),aBr=pSt(_xe.readdir),Exe=(e=[])=>Array.isArray(e)?e:[e],dSt=(e,r=[])=>(e.forEach(n=>{Array.isArray(n)?dSt(n,r):r.push(n)}),r),cSt=e=>{let r=dSt(Exe(e));if(!r.every(n=>typeof n===Cxe))throw new TypeError(`Non-string provided as watch path: ${r}`);return r.map(hSt)},uSt=e=>{let r=e.replace(V$r,mxe),n=!1;for(r.startsWith(Q$r)&&(n=!0);r.match(aSt);)r=r.replace(aSt,mxe);return n&&(r=mxe+r),r},hSt=e=>uSt(An.normalize(uSt(e))),lSt=(e=vxe)=>r=>typeof r!==Cxe?r:hSt(An.isAbsolute(r)?r:An.join(e,r)),cBr=(e,r)=>An.isAbsolute(e)?e:e.startsWith(yxe)?yxe+An.join(r,e.slice(1)):An.join(r,e),bf=(e,r)=>e[r]===void 0,wxe=class{constructor(r,n){this.path=r,this._removeWatcher=n,this.items=new Set}add(r){let{items:n}=this;n&&r!==fSt&&r!==X$r&&n.add(r)}async remove(r){let{items:n}=this;if(!n||(n.delete(r),n.size>0))return;let i=this.path;try{await aBr(i)}catch{this._removeWatcher&&this._removeWatcher(An.dirname(i),An.basename(i))}}has(r){let{items:n}=this;if(n)return n.has(r)}getChildren(){let{items:r}=this;if(r)return[...r.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}},uBr="stat",lBr="lstat",Sxe=class{constructor(r,n,i,o){this.fsw=o,this.path=r=r.replace(J$r,vxe),this.watchPath=n,this.fullWatchPath=An.resolve(n),this.hasGlob=n!==r,r===vxe&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&i?void 0:!1,this.globFilter=this.hasGlob?xxe(r,void 0,bxe):!1,this.dirParts=this.getDirParts(r),this.dirParts.forEach(a=>{a.length>1&&a.pop()}),this.followSymlinks=i,this.statMethod=i?uBr:lBr}checkGlobSymlink(r){return this.globSymlink===void 0&&(this.globSymlink=r.fullParentDir===this.fullWatchPath?!1:{realPath:r.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?r.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):r.fullPath}entryPath(r){return An.join(this.watchPath,An.relative(this.watchPath,this.checkGlobSymlink(r)))}filterPath(r){let{stats:n}=r;if(n&&n.isSymbolicLink())return this.filterDir(r);let i=this.entryPath(r);return(this.hasGlob&&typeof this.globFilter===tBr?this.globFilter(i):!0)&&this.fsw._isntIgnored(i,n)&&this.fsw._hasReadPermissions(n)}getDirParts(r){if(!this.hasGlob)return[];let n=[];return(r.includes(Z$r)?$$r.expand(r):[r]).forEach(o=>{n.push(An.relative(this.watchPath,o).split(K$r))}),n}filterDir(r){if(this.hasGlob){let n=this.getDirParts(this.checkGlobSymlink(r)),i=!1;this.unmatchedGlob=!this.dirParts.some(o=>o.every((a,c)=>(a===eBr&&(i=!0),i||!n[0][c]||xxe(a,n[0][c],bxe))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(r),r.stats)}},zj=class extends M$r{constructor(r){super();let n={};r&&Object.assign(n,r),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,bf(n,"persistent")&&(n.persistent=!0),bf(n,"ignoreInitial")&&(n.ignoreInitial=!1),bf(n,"ignorePermissionErrors")&&(n.ignorePermissionErrors=!1),bf(n,"interval")&&(n.interval=100),bf(n,"binaryInterval")&&(n.binaryInterval=300),bf(n,"disableGlobbing")&&(n.disableGlobbing=!1),n.enableBinaryInterval=n.binaryInterval!==n.interval,bf(n,"useFsEvents")&&(n.useFsEvents=!n.usePolling),oSt.canUse()||(n.useFsEvents=!1),bf(n,"usePolling")&&!n.useFsEvents&&(n.usePolling=iBr),oBr&&(n.usePolling=!0);let o=process.env.CHOKIDAR_USEPOLLING;if(o!==void 0){let l=o.toLowerCase();l==="false"||l==="0"?n.usePolling=!1:l==="true"||l==="1"?n.usePolling=!0:n.usePolling=!!l}let a=process.env.CHOKIDAR_INTERVAL;a&&(n.interval=Number.parseInt(a,10)),bf(n,"atomic")&&(n.atomic=!n.usePolling&&!n.useFsEvents),n.atomic&&(this._pendingUnlinks=new Map),bf(n,"followSymlinks")&&(n.followSymlinks=!0),bf(n,"awaitWriteFinish")&&(n.awaitWriteFinish=!1),n.awaitWriteFinish===!0&&(n.awaitWriteFinish={});let c=n.awaitWriteFinish;c&&(c.stabilityThreshold||(c.stabilityThreshold=2e3),c.pollInterval||(c.pollInterval=100),this._pendingWrites=new Map),n.ignored&&(n.ignored=Exe(n.ignored));let u=0;this._emitReady=()=>{u++,u>=this._readyCount&&(this._emitReady=rBr,this._readyEmitted=!0,process.nextTick(()=>this.emit(j$r)))},this._emitRaw=(...l)=>this.emit(H$r,...l),this._readyEmitted=!1,this.options=n,n.useFsEvents?this._fsEventsHandler=new oSt(this):this._nodeFsHandler=new q$r(this),Object.freeze(n)}add(r,n,i){let{cwd:o,disableGlobbing:a}=this.options;this.closed=!1;let c=cSt(r);return o&&(c=c.map(u=>{let l=cBr(u,o);return a||!fxe(u)?l:B$r(l)})),c=c.filter(u=>u.startsWith(yxe)?(this._ignoredPaths.add(u.slice(1)),!1):(this._ignoredPaths.delete(u),this._ignoredPaths.delete(u+gxe),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=c.length),this.options.persistent&&(this._readyCount+=c.length),c.forEach(u=>this._fsEventsHandler._addToFsEvents(u))):(this._readyCount||(this._readyCount=0),this._readyCount+=c.length,Promise.all(c.map(async u=>{let l=await this._nodeFsHandler._addToNodeFs(u,!i,0,0,n);return l&&this._emitReady(),l})).then(u=>{this.closed||u.filter(l=>l).forEach(l=>{this.add(An.dirname(l),An.basename(n||l))})})),this}unwatch(r){if(this.closed)return this;let n=cSt(r),{cwd:i}=this.options;return n.forEach(o=>{!An.isAbsolute(o)&&!this._closers.has(o)&&(i&&(o=An.join(i,o)),o=An.resolve(o)),this._closePath(o),this._ignoredPaths.add(o),this._watched.has(o)&&this._ignoredPaths.add(o+gxe),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let r=[];return this._closers.forEach(n=>n.forEach(i=>{let o=i();o instanceof Promise&&r.push(o)})),this._streams.forEach(n=>n.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(n=>n.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(n=>{this[`_${n}`].clear()}),this._closePromise=r.length?Promise.all(r).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){let r={};return this._watched.forEach((n,i)=>{let o=this.options.cwd?An.relative(this.options.cwd,i):i;r[o||fSt]=n.getChildren().sort()}),r}emitWithAll(r,n){this.emit(...n),r!==hxe&&this.emit(dxe,...n)}async _emit(r,n,i,o,a){if(this.closed)return;let c=this.options;nBr&&(n=An.normalize(n)),c.cwd&&(n=An.relative(c.cwd,n));let u=[r,n];a!==void 0?u.push(i,o,a):o!==void 0?u.push(i,o):i!==void 0&&u.push(i);let l=c.awaitWriteFinish,p;if(l&&(p=this._pendingWrites.get(n)))return p.lastChange=new Date,this;if(c.atomic){if(r===sSt)return this._pendingUnlinks.set(n,u),setTimeout(()=>{this._pendingUnlinks.forEach((f,g)=>{this.emit(...f),this.emit(dxe,...f),this._pendingUnlinks.delete(g)})},typeof c.atomic=="number"?c.atomic:100),this;r===Gj&&this._pendingUnlinks.has(n)&&(r=u[0]=uk,this._pendingUnlinks.delete(n))}if(l&&(r===Gj||r===uk)&&this._readyEmitted){let f=(g,x)=>{g?(r=u[0]=hxe,u[1]=g,this.emitWithAll(r,u)):x&&(u.length>2?u[2]=x:u.push(x),this.emitWithAll(r,u))};return this._awaitWriteFinish(n,l.stabilityThreshold,r,f),this}if(r===uk&&!this._throttle(uk,n,50))return this;if(c.alwaysStat&&i===void 0&&(r===Gj||r===U$r||r===uk)){let f=c.cwd?An.join(c.cwd,n):n,g;try{g=await sBr(f)}catch{}if(!g||this.closed)return;u.push(g)}return this.emitWithAll(r,u),this}_handleError(r){let n=r&&r.code;return r&&n!=="ENOENT"&&n!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||n!=="EPERM"&&n!=="EACCES")&&this.emit(hxe,r),r||this.closed}_throttle(r,n,i){this._throttled.has(r)||this._throttled.set(r,new Map);let o=this._throttled.get(r),a=o.get(n);if(a)return a.count++,!1;let c,u=()=>{let p=o.get(n),f=p?p.count:0;return o.delete(n),clearTimeout(c),p&&clearTimeout(p.timeoutObject),f};c=setTimeout(u,i);let l={timeoutObject:c,clear:u,count:0};return o.set(n,l),l}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(r,n,i,o){let a,c=r;this.options.cwd&&!An.isAbsolute(r)&&(c=An.join(this.options.cwd,r));let u=new Date,l=p=>{_xe.stat(c,(f,g)=>{if(f||!this._pendingWrites.has(r)){f&&f.code!=="ENOENT"&&o(f);return}let x=Number(new Date);p&&g.size!==p.size&&(this._pendingWrites.get(r).lastChange=x);let b=this._pendingWrites.get(r);x-b.lastChange>=n?(this._pendingWrites.delete(r),o(void 0,g)):a=setTimeout(l,this.options.awaitWriteFinish.pollInterval,g)})};this._pendingWrites.has(r)||(this._pendingWrites.set(r,{lastChange:u,cancelWait:()=>(this._pendingWrites.delete(r),clearTimeout(a),i)}),a=setTimeout(l,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(r,n){if(this.options.atomic&&Y$r.test(r))return!0;if(!this._userIgnored){let{cwd:i}=this.options,o=this.options.ignored,a=o&&o.map(lSt(i)),c=Exe(a).filter(l=>typeof l===Cxe&&!fxe(l)).map(l=>l+gxe),u=this._getGlobIgnored().map(lSt(i)).concat(a,c);this._userIgnored=xxe(u,void 0,bxe)}return this._userIgnored([r,n])}_isntIgnored(r,n){return!this._isIgnored(r,n)}_getWatchHelpers(r,n){let i=n||this.options.disableGlobbing||!fxe(r)?r:L$r(r),o=this.options.followSymlinks;return new Sxe(r,i,o,this)}_getWatchedDir(r){this._boundRemove||(this._boundRemove=this._remove.bind(this));let n=An.resolve(r);return this._watched.has(n)||this._watched.set(n,new wxe(n,this._boundRemove)),this._watched.get(n)}_hasReadPermissions(r){if(this.options.ignorePermissionErrors)return!0;let i=(r&&Number.parseInt(r.mode,10))&511;return!!(4&Number.parseInt(i.toString(8)[0],10))}_remove(r,n,i){let o=An.join(r,n),a=An.resolve(o);if(i=i??(this._watched.has(o)||this._watched.has(a)),!this._throttle("remove",o,100))return;!i&&!this.options.useFsEvents&&this._watched.size===1&&this.add(r,n,!0),this._getWatchedDir(o).getChildren().forEach(x=>this._remove(o,x));let l=this._getWatchedDir(r),p=l.has(n);l.remove(n),this._symlinkPaths.has(a)&&this._symlinkPaths.delete(a);let f=o;if(this.options.cwd&&(f=An.relative(this.options.cwd,o)),this.options.awaitWriteFinish&&this._pendingWrites.has(f)&&this._pendingWrites.get(f).cancelWait()===Gj)return;this._watched.delete(o),this._watched.delete(a);let g=i?W$r:sSt;p&&!this._isIgnored(o)&&this._emit(g,o),this.options.useFsEvents||this._closePath(o)}_closePath(r){this._closeFile(r);let n=An.dirname(r);this._getWatchedDir(n).remove(An.basename(r))}_closeFile(r){let n=this._closers.get(r);n&&(n.forEach(i=>i()),this._closers.delete(r))}_addPathCloser(r,n){if(!n)return;let i=this._closers.get(r);i||(i=[],this._closers.set(r,i)),i.push(n)}_readdirp(r,n){if(this.closed)return;let i={type:dxe,alwaysStat:!0,lstat:!0,...n},o=N$r(r,i);return this._streams.add(o),o.once(G$r,()=>{o=void 0}),o.once(z$r,()=>{o&&(this._streams.delete(o),o=void 0)}),o}};Dxe.FSWatcher=zj;var pBr=(e,r)=>{let n=new zj(r);return n.add(e),n};Dxe.watch=pBr});var SSt=C((uli,Oxe)=>{"use strict";var $i=require("path"),ESt=require("os"),ay=ESt.homedir(),Axe=ESt.tmpdir(),{env:RC}=process,fBr=e=>{let r=$i.join(ay,"Library");return{data:$i.join(r,"Application Support",e),config:$i.join(r,"Preferences",e),cache:$i.join(r,"Caches",e),log:$i.join(r,"Logs",e),temp:$i.join(Axe,e)}},dBr=e=>{let r=RC.APPDATA||$i.join(ay,"AppData","Roaming"),n=RC.LOCALAPPDATA||$i.join(ay,"AppData","Local");return{data:$i.join(n,e,"Data"),config:$i.join(r,e,"Config"),cache:$i.join(n,e,"Cache"),log:$i.join(n,e,"Log"),temp:$i.join(Axe,e)}},hBr=e=>{let r=$i.basename(ay);return{data:$i.join(RC.XDG_DATA_HOME||$i.join(ay,".local","share"),e),config:$i.join(RC.XDG_CONFIG_HOME||$i.join(ay,".config"),e),cache:$i.join(RC.XDG_CACHE_HOME||$i.join(ay,".cache"),e),log:$i.join(RC.XDG_STATE_HOME||$i.join(ay,".local","state"),e),temp:$i.join(Axe,r,e)}},wSt=(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"?fBr(e):process.platform==="win32"?dBr(e):hBr(e)};Oxe.exports=wSt;Oxe.exports.default=wSt});var cy,MC,RSt,NC,eU,ko,kSt=D(()=>{"use strict";cy=e=>e.name==="up"||e.name==="k"||e.ctrl&&e.name==="p",MC=e=>e.name==="down"||e.name==="j"||e.ctrl&&e.name==="n",RSt=e=>e.name==="space",NC=e=>e.name==="backspace",eU=e=>"123456789".includes(e.name),ko=e=>e.name==="enter"||e.name==="return"});var tU,rU,nU,iU,uy,oU=D(()=>{"use strict";tU=class extends Error{constructor(n){super();O(this,"name","AbortPromptError");O(this,"message","Prompt was aborted");this.cause=n?.cause}},rU=class extends Error{constructor(){super(...arguments);O(this,"name","CancelPromptError");O(this,"message","Prompt was canceled")}},nU=class extends Error{constructor(){super(...arguments);O(this,"name","ExitPromptError")}},iU=class extends Error{constructor(){super(...arguments);O(this,"name","HookError")}},uy=class extends Error{constructor(){super(...arguments);O(this,"name","ValidationError")}}});function TBr(e){return{rl:e,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}function NSt(e,r){let n=TBr(e);return MSt.run(n,()=>{function i(o){n.handleChange=()=>{n.index=0,o()},n.handleChange()}return r(i)})}function iw(){let e=MSt.getStore();if(!e)throw new iU("[Inquirer] Hook functions can only be called from within a prompt");return e}function Mxe(){return iw().rl}function Nxe(e){let r=(...n)=>{let i=iw(),o=!1,a=i.handleChange;i.handleChange=()=>{o=!0};let c=e(...n);return o&&a(),i.handleChange=a,c};return sU.AsyncResource.bind(r)}function LC(e){let r=iw(),{index:n}=r,i={get(){return r.hooks[n]},set(a){r.hooks[n]=a},initialized:n in r.hooks},o=e(i);return r.index++,o}function LSt(){iw().handleChange()}var sU,MSt,ow,sw=D(()=>{"use strict";sU=require("node:async_hooks");oU();MSt=new sU.AsyncLocalStorage;ow={queue(e){let r=iw(),{index:n}=r;r.hooksEffect.push(()=>{r.hooksCleanup[n]?.();let i=e(Mxe());if(i!=null&&typeof i!="function")throw new uy("useEffect return value must be a cleanup function or nothing.");r.hooksCleanup[n]=i})},run(){let e=iw();Nxe(()=>{e.hooksEffect.forEach(r=>{r()}),e.hooksEffect.length=0})()},clearAll(){let e=iw();e.hooksCleanup.forEach(r=>{r?.()}),e.hooksEffect.length=0,e.hooksCleanup.length=0}}});function Tt(e){return LC(r=>{let n=o=>{r.get()!==o&&(r.set(o),LSt())};if(r.initialized)return[r.get(),n];let i=typeof e=="function"?e():e;return r.set(i),[i,n]})}var aU=D(()=>{"use strict";sw()});function vf(e,r){LC(n=>{let i=n.get();(!Array.isArray(i)||r.some((a,c)=>!Object.is(a,i[c])))&&ow.queue(e),n.set(r)})}var cU=D(()=>{"use strict";sw()});var ly=C((Gli,$St)=>{"use strict";var ABr=require("node:tty"),OBr=ABr?.WriteStream?.prototype?.hasColors?.()??!1,Xt=(e,r)=>{if(!OBr)return o=>o;let n=`\x1B[${e}m`,i=`\x1B[${r}m`;return o=>{let a=o+"",c=a.indexOf(i);if(c===-1)return n+a+i;let u=n,l=0;for(;c!==-1;)u+=a.slice(l,c)+n,l=c+i.length,c=a.indexOf(i,l);return u+=a.slice(l)+i,u}},Qt={};Qt.reset=Xt(0,0);Qt.bold=Xt(1,22);Qt.dim=Xt(2,22);Qt.italic=Xt(3,23);Qt.underline=Xt(4,24);Qt.overline=Xt(53,55);Qt.inverse=Xt(7,27);Qt.hidden=Xt(8,28);Qt.strikethrough=Xt(9,29);Qt.black=Xt(30,39);Qt.red=Xt(31,39);Qt.green=Xt(32,39);Qt.yellow=Xt(33,39);Qt.blue=Xt(34,39);Qt.magenta=Xt(35,39);Qt.cyan=Xt(36,39);Qt.white=Xt(37,39);Qt.gray=Xt(90,39);Qt.bgBlack=Xt(40,49);Qt.bgRed=Xt(41,49);Qt.bgGreen=Xt(42,49);Qt.bgYellow=Xt(43,49);Qt.bgBlue=Xt(44,49);Qt.bgMagenta=Xt(45,49);Qt.bgCyan=Xt(46,49);Qt.bgWhite=Xt(47,49);Qt.bgGray=Xt(100,49);Qt.redBright=Xt(91,39);Qt.greenBright=Xt(92,39);Qt.yellowBright=Xt(93,39);Qt.blueBright=Xt(94,39);Qt.magentaBright=Xt(95,39);Qt.cyanBright=Xt(96,39);Qt.whiteBright=Xt(97,39);Qt.bgRedBright=Xt(101,49);Qt.bgGreenBright=Xt(102,49);Qt.bgYellowBright=Xt(103,49);Qt.bgBlueBright=Xt(104,49);Qt.bgMagentaBright=Xt(105,49);Qt.bgCyanBright=Xt(106,49);Qt.bgWhiteBright=Xt(107,49);$St.exports=Qt});function IBr(){return Ef.default.platform!=="win32"?Ef.default.env.TERM!=="linux":!!Ef.default.env.WT_SESSION||!!Ef.default.env.TERMINUS_SUBLIME||Ef.default.env.ConEmuTask==="{cmd::Cmder}"||Ef.default.env.TERM_PROGRAM==="Terminus-Sublime"||Ef.default.env.TERM_PROGRAM==="vscode"||Ef.default.env.TERM==="xterm-256color"||Ef.default.env.TERM==="alacritty"||Ef.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Ef,BSt,qSt,PBr,FBr,RBr,kBr,MBr,Jl,zli,$C=D(()=>{"use strict";Ef=J(require("node:process"),1);BSt={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},qSt={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},PBr={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},FBr={...BSt,...qSt},RBr={...BSt,...PBr},kBr=IBr(),MBr=kBr?FBr:RBr,Jl=MBr,zli=Object.entries(qSt)});var Ql,jSt,USt=D(()=>{"use strict";Ql=J(ly(),1);$C();jSt={prefix:{idle:Ql.default.blue("?"),done:Ql.default.green(Jl.tick)},spinner:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"].map(e=>Ql.default.yellow(e))},style:{answer:Ql.default.cyan,message:Ql.default.bold,error:e=>Ql.default.red(`> ${e}`),defaultAnswer:e=>Ql.default.dim(`(${e})`),help:Ql.default.dim,highlight:Ql.default.cyan,key:e=>Ql.default.cyan(Ql.default.bold(`<${e}>`))}}});function WSt(e){if(typeof e!="object"||e===null)return!1;let r=e;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function HSt(...e){let r={};for(let n of e)for(let[i,o]of Object.entries(n)){let a=r[i];r[i]=WSt(a)&&WSt(o)?HSt(a,o):o}return r}function Bi(...e){let r=[jSt,...e.filter(n=>n!=null)];return HSt(...r)}var Lxe=D(()=>{"use strict";USt()});function ao({status:e="idle",theme:r}){let[n,i]=Tt(!1),[o,a]=Tt(0),{prefix:c,spinner:u}=Bi(r);return vf(()=>{if(e==="loading"){let p,f=-1,g=setTimeout($xe.AsyncResource.bind(()=>{i(!0),p=setInterval($xe.AsyncResource.bind(()=>{f=f+1,a(f%u.frames.length)}),u.interval)}),300);return()=>{clearTimeout(g),clearInterval(p)}}else i(!1)},[e]),n?u.frames[o]:typeof c=="string"?c:c[e==="loading"?"idle":e]??c.idle}var $xe,GSt=D(()=>{"use strict";$xe=require("node:async_hooks");aU();cU();Lxe()});function Uu(e,r){return LC(n=>{let i=n.get();if(!i||i.dependencies.length!==r.length||i.dependencies.some((o,a)=>o!==r[a])){let o=e();return n.set({value:o,dependencies:r}),o}return i.value})}var zSt=D(()=>{"use strict";sw()});function Zl(e){return Tt({current:e})[0]}var uU=D(()=>{"use strict";aU()});function co(e){let r=Zl(e);r.current=e,vf(n=>{let i=!1,o=Nxe((a,c)=>{i||r.current(c,n)});return n.input.on("keypress",o),()=>{i=!0,n.input.removeListener("keypress",o)}},[])}var VSt=D(()=>{"use strict";uU();cU();sw()});var YSt=C((lpi,KSt)=>{"use strict";KSt.exports=LBr;function NBr(e){let r={defaultWidth:0,output:process.stdout,tty:require("tty")};return e?(Object.keys(r).forEach(function(n){e[n]||(e[n]=r[n])}),e):r}function LBr(e){let r=NBr(e);if(r.output.getWindowSize)return r.output.getWindowSize()[0]||r.defaultWidth;if(r.tty.getWindowSize)return r.tty.getWindowSize()[1]||r.defaultWidth;if(r.output.columns)return r.output.columns;if(process.env.CLI_WIDTH){let n=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(n)&&n!==0)return n}return r.defaultWidth}});function lk(e,r){return e.split(`
|
|
461
461
|
`).flatMap(n=>(0,QSt.default)(n,r,{trim:!1,hard:!0}).split(`
|
|
462
462
|
`).map(i=>i.trimEnd())).join(`
|
|
@@ -940,7 +940,7 @@ Please see the 3.x to 4.x migration guide for details on how to update your app.
|
|
|
940
940
|
`).join(`
|
|
941
941
|
`+a),e.push(o+"m+"+SW.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=CVr()+r+" "+e[0]}function CVr(){return da.inspectOpts.hideDate?"":new Date().toISOString()+" "}function DVr(...e){return process.stderr.write(wW.format(...e)+`
|
|
942
942
|
`)}function TVr(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function AVr(){return process.env.DEBUG}function OVr(e){e.inspectOpts={};let r=Object.keys(da.inspectOpts);for(let n=0;n<r.length;n++)e.inspectOpts[r[n]]=da.inspectOpts[r[n]]}SW.exports=Ove()(da);var{formatters:uPt}=SW.exports;uPt.o=function(e){return this.inspectOpts.colors=this.useColors,wW.inspect(e,this.inspectOpts).split(`
|
|
943
|
-
`).map(r=>r.trim()).join(" ")};uPt.O=function(e){return this.inspectOpts.colors=this.useColors,wW.inspect(e,this.inspectOpts)}});var Pve=C((fyi,Ive)=>{"use strict";typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Ive.exports=cPt():Ive.exports=lPt()});var HRt=C((Pyi,WRt)=>{"use strict";var IVr=Object.create,n6=Object.defineProperty,PVr=Object.getOwnPropertyDescriptor,FVr=Object.getOwnPropertyNames,RVr=Object.getPrototypeOf,kVr=Object.prototype.hasOwnProperty,MVr=(e,r,n)=>r in e?n6(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Ty=(e,r)=>()=>(e&&(r=e(e=0)),r),Tw=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),qW=(e,r)=>{for(var n in r)n6(e,n,{get:r[n],enumerable:!0})},JPt=(e,r,n,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of FVr(r))!kVr.call(e,o)&&o!==n&&n6(e,o,{get:()=>r[o],enumerable:!(i=PVr(r,o))||i.enumerable});return e},OD=(e,r,n)=>(n=e!=null?IVr(RVr(e)):{},JPt(r||!e||!e.__esModule?n6(n,"default",{value:e,enumerable:!0}):n,e)),NVr=e=>JPt(n6({},"__esModule",{value:!0}),e),ye=(e,r,n)=>MVr(e,typeof r!="symbol"?r+"":r,n),Ns,ue=Ty(()=>{"use strict";Ns={nextTick:(e,...r)=>{setTimeout(()=>{e(...r)},0)},env:{},version:"",cwd:()=>"/",stderr:{},argv:["/bin/node"]}}),LVr,le=Ty(()=>{"use strict";LVr=globalThis.performance??(()=>{let e=Date.now();return{now:()=>Date.now()-e}})()}),Fve,pe=Ty(()=>{"use strict";Fve=()=>{},Fve.prototype=Fve}),fe=Ty(()=>{"use strict"}),$Vr=Tw(e=>{"use strict";de(),ue(),le(),pe(),fe();var r=(A,F)=>()=>(F||A((F={exports:{}}).exports,F),F.exports),n=r(A=>{"use strict";A.byteLength=jr,A.toByteArray=er,A.fromByteArray=Bs;var F=[],$=[],te=typeof Uint8Array<"u"?Uint8Array:Array,se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(me=0,Se=se.length;me<Se;++me)F[me]=se[me],$[se.charCodeAt(me)]=me;var me,Se;$[45]=62,$[95]=63;function mt(Pt){var ir=Pt.length;if(ir%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Jr=Pt.indexOf("=");Jr===-1&&(Jr=ir);var Lo=Jr===ir?0:4-Jr%4;return[Jr,Lo]}function jr(Pt){var ir=mt(Pt),Jr=ir[0],Lo=ir[1];return(Jr+Lo)*3/4-Lo}function nr(Pt,ir,Jr){return(ir+Jr)*3/4-Jr}function er(Pt){var ir,Jr=mt(Pt),Lo=Jr[0],po=Jr[1],fo=new te(nr(Pt,Lo,po)),ga=0,cg=po>0?Lo-4:Lo,qs;for(qs=0;qs<cg;qs+=4)ir=$[Pt.charCodeAt(qs)]<<18|$[Pt.charCodeAt(qs+1)]<<12|$[Pt.charCodeAt(qs+2)]<<6|$[Pt.charCodeAt(qs+3)],fo[ga++]=ir>>16&255,fo[ga++]=ir>>8&255,fo[ga++]=ir&255;return po===2&&(ir=$[Pt.charCodeAt(qs)]<<2|$[Pt.charCodeAt(qs+1)]>>4,fo[ga++]=ir&255),po===1&&(ir=$[Pt.charCodeAt(qs)]<<10|$[Pt.charCodeAt(qs+1)]<<4|$[Pt.charCodeAt(qs+2)]>>2,fo[ga++]=ir>>8&255,fo[ga++]=ir&255),fo}function Yt(Pt){return F[Pt>>18&63]+F[Pt>>12&63]+F[Pt>>6&63]+F[Pt&63]}function $s(Pt,ir,Jr){for(var Lo,po=[],fo=ir;fo<Jr;fo+=3)Lo=(Pt[fo]<<16&16711680)+(Pt[fo+1]<<8&65280)+(Pt[fo+2]&255),po.push(Yt(Lo));return po.join("")}function Bs(Pt){for(var ir,Jr=Pt.length,Lo=Jr%3,po=[],fo=16383,ga=0,cg=Jr-Lo;ga<cg;ga+=fo)po.push($s(Pt,ga,ga+fo>cg?cg:ga+fo));return Lo===1?(ir=Pt[Jr-1],po.push(F[ir>>2]+F[ir<<4&63]+"==")):Lo===2&&(ir=(Pt[Jr-2]<<8)+Pt[Jr-1],po.push(F[ir>>10]+F[ir>>4&63]+F[ir<<2&63]+"=")),po.join("")}}),i=r(A=>{A.read=function(F,$,te,se,me){var Se,mt,jr=me*8-se-1,nr=(1<<jr)-1,er=nr>>1,Yt=-7,$s=te?me-1:0,Bs=te?-1:1,Pt=F[$+$s];for($s+=Bs,Se=Pt&(1<<-Yt)-1,Pt>>=-Yt,Yt+=jr;Yt>0;Se=Se*256+F[$+$s],$s+=Bs,Yt-=8);for(mt=Se&(1<<-Yt)-1,Se>>=-Yt,Yt+=se;Yt>0;mt=mt*256+F[$+$s],$s+=Bs,Yt-=8);if(Se===0)Se=1-er;else{if(Se===nr)return mt?NaN:(Pt?-1:1)*(1/0);mt=mt+Math.pow(2,se),Se=Se-er}return(Pt?-1:1)*mt*Math.pow(2,Se-se)},A.write=function(F,$,te,se,me,Se){var mt,jr,nr,er=Se*8-me-1,Yt=(1<<er)-1,$s=Yt>>1,Bs=me===23?Math.pow(2,-24)-Math.pow(2,-77):0,Pt=se?0:Se-1,ir=se?1:-1,Jr=$<0||$===0&&1/$<0?1:0;for($=Math.abs($),isNaN($)||$===1/0?(jr=isNaN($)?1:0,mt=Yt):(mt=Math.floor(Math.log($)/Math.LN2),$*(nr=Math.pow(2,-mt))<1&&(mt--,nr*=2),mt+$s>=1?$+=Bs/nr:$+=Bs*Math.pow(2,1-$s),$*nr>=2&&(mt++,nr/=2),mt+$s>=Yt?(jr=0,mt=Yt):mt+$s>=1?(jr=($*nr-1)*Math.pow(2,me),mt=mt+$s):(jr=$*Math.pow(2,$s-1)*Math.pow(2,me),mt=0));me>=8;F[te+Pt]=jr&255,Pt+=ir,jr/=256,me-=8);for(mt=mt<<me|jr,er+=me;er>0;F[te+Pt]=mt&255,Pt+=ir,mt/=256,er-=8);F[te+Pt-ir]|=Jr*128}}),o=n(),a=i(),c=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=f,e.SlowBuffer=N,e.INSPECT_MAX_BYTES=50;var u=2147483647;e.kMaxLength=u,f.TYPED_ARRAY_SUPPORT=l(),!f.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function l(){try{let A=new Uint8Array(1),F={foo:function(){return 42}};return Object.setPrototypeOf(F,Uint8Array.prototype),Object.setPrototypeOf(A,F),A.foo()===42}catch{return!1}}Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}});function p(A){if(A>u)throw new RangeError('The value "'+A+'" is invalid for option "size"');let F=new Uint8Array(A);return Object.setPrototypeOf(F,f.prototype),F}function f(A,F,$){if(typeof A=="number"){if(typeof F=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return v(A)}return g(A,F,$)}f.poolSize=8192;function g(A,F,$){if(typeof A=="string")return S(A,F);if(ArrayBuffer.isView(A))return P(A);if(A==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(Va(A,ArrayBuffer)||A&&Va(A.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Va(A,SharedArrayBuffer)||A&&Va(A.buffer,SharedArrayBuffer)))return R(A,F,$);if(typeof A=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let te=A.valueOf&&A.valueOf();if(te!=null&&te!==A)return f.from(te,F,$);let se=M(A);if(se)return se;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof A[Symbol.toPrimitive]=="function")return f.from(A[Symbol.toPrimitive]("string"),F,$);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}f.from=function(A,F,$){return g(A,F,$)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array);function x(A){if(typeof A!="number")throw new TypeError('"size" argument must be of type number');if(A<0)throw new RangeError('The value "'+A+'" is invalid for option "size"')}function b(A,F,$){return x(A),A<=0?p(A):F!==void 0?typeof $=="string"?p(A).fill(F,$):p(A).fill(F):p(A)}f.alloc=function(A,F,$){return b(A,F,$)};function v(A){return x(A),p(A<0?0:L(A)|0)}f.allocUnsafe=function(A){return v(A)},f.allocUnsafeSlow=function(A){return v(A)};function S(A,F){if((typeof F!="string"||F==="")&&(F="utf8"),!f.isEncoding(F))throw new TypeError("Unknown encoding: "+F);let $=V(A,F)|0,te=p($),se=te.write(A,F);return se!==$&&(te=te.slice(0,se)),te}function T(A){let F=A.length<0?0:L(A.length)|0,$=p(F);for(let te=0;te<F;te+=1)$[te]=A[te]&255;return $}function P(A){if(Va(A,Uint8Array)){let F=new Uint8Array(A);return R(F.buffer,F.byteOffset,F.byteLength)}return T(A)}function R(A,F,$){if(F<0||A.byteLength<F)throw new RangeError('"offset" is outside of buffer bounds');if(A.byteLength<F+($||0))throw new RangeError('"length" is outside of buffer bounds');let te;return F===void 0&&$===void 0?te=new Uint8Array(A):$===void 0?te=new Uint8Array(A,F):te=new Uint8Array(A,F,$),Object.setPrototypeOf(te,f.prototype),te}function M(A){if(f.isBuffer(A)){let F=L(A.length)|0,$=p(F);return $.length===0||A.copy($,0,0,F),$}if(A.length!==void 0)return typeof A.length!="number"||Iw(A.length)?p(0):T(A);if(A.type==="Buffer"&&Array.isArray(A.data))return T(A.data)}function L(A){if(A>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return A|0}function N(A){return+A!=A&&(A=0),f.alloc(+A)}f.isBuffer=function(A){return A!=null&&A._isBuffer===!0&&A!==f.prototype},f.compare=function(A,F){if(Va(A,Uint8Array)&&(A=f.from(A,A.offset,A.byteLength)),Va(F,Uint8Array)&&(F=f.from(F,F.offset,F.byteLength)),!f.isBuffer(A)||!f.isBuffer(F))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===F)return 0;let $=A.length,te=F.length;for(let se=0,me=Math.min($,te);se<me;++se)if(A[se]!==F[se]){$=A[se],te=F[se];break}return $<te?-1:te<$?1:0},f.isEncoding=function(A){switch(String(A).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(A,F){if(!Array.isArray(A))throw new TypeError('"list" argument must be an Array of Buffers');if(A.length===0)return f.alloc(0);let $;if(F===void 0)for(F=0,$=0;$<A.length;++$)F+=A[$].length;let te=f.allocUnsafe(F),se=0;for($=0;$<A.length;++$){let me=A[$];if(Va(me,Uint8Array))se+me.length>te.length?(f.isBuffer(me)||(me=f.from(me)),me.copy(te,se)):Uint8Array.prototype.set.call(te,me,se);else if(f.isBuffer(me))me.copy(te,se);else throw new TypeError('"list" argument must be an Array of Buffers');se+=me.length}return te};function V(A,F){if(f.isBuffer(A))return A.length;if(ArrayBuffer.isView(A)||Va(A,ArrayBuffer))return A.byteLength;if(typeof A!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);let $=A.length,te=arguments.length>2&&arguments[2]===!0;if(!te&&$===0)return 0;let se=!1;for(;;)switch(F){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":return ag(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return cp(A).length;default:if(se)return te?-1:ag(A).length;F=(""+F).toLowerCase(),se=!0}}f.byteLength=V;function W(A,F,$){let te=!1;if((F===void 0||F<0)&&(F=0),F>this.length||(($===void 0||$>this.length)&&($=this.length),$<=0)||($>>>=0,F>>>=0,$<=F))return"";for(A||(A="utf8");;)switch(A){case"hex":return si(this,F,$);case"utf8":case"utf-8":return xe(this,F,$);case"ascii":return wr(this,F,$);case"latin1":case"binary":return rn(this,F,$);case"base64":return Z(this,F,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ai(this,F,$);default:if(te)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),te=!0}}f.prototype._isBuffer=!0;function z(A,F,$){let te=A[F];A[F]=A[$],A[$]=te}f.prototype.swap16=function(){let A=this.length;if(A%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let F=0;F<A;F+=2)z(this,F,F+1);return this},f.prototype.swap32=function(){let A=this.length;if(A%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let F=0;F<A;F+=4)z(this,F,F+3),z(this,F+1,F+2);return this},f.prototype.swap64=function(){let A=this.length;if(A%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let F=0;F<A;F+=8)z(this,F,F+7),z(this,F+1,F+6),z(this,F+2,F+5),z(this,F+3,F+4);return this},f.prototype.toString=function(){let A=this.length;return A===0?"":arguments.length===0?xe(this,0,A):W.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(A){if(!f.isBuffer(A))throw new TypeError("Argument must be a Buffer");return this===A?!0:f.compare(this,A)===0},f.prototype.inspect=function(){let A="",F=e.INSPECT_MAX_BYTES;return A=this.toString("hex",0,F).replace(/(.{2})/g,"$1 ").trim(),this.length>F&&(A+=" ... "),"<Buffer "+A+">"},c&&(f.prototype[c]=f.prototype.inspect),f.prototype.compare=function(A,F,$,te,se){if(Va(A,Uint8Array)&&(A=f.from(A,A.offset,A.byteLength)),!f.isBuffer(A))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(F===void 0&&(F=0),$===void 0&&($=A?A.length:0),te===void 0&&(te=0),se===void 0&&(se=this.length),F<0||$>A.length||te<0||se>this.length)throw new RangeError("out of range index");if(te>=se&&F>=$)return 0;if(te>=se)return-1;if(F>=$)return 1;if(F>>>=0,$>>>=0,te>>>=0,se>>>=0,this===A)return 0;let me=se-te,Se=$-F,mt=Math.min(me,Se),jr=this.slice(te,se),nr=A.slice(F,$);for(let er=0;er<mt;++er)if(jr[er]!==nr[er]){me=jr[er],Se=nr[er];break}return me<Se?-1:Se<me?1:0};function q(A,F,$,te,se){if(A.length===0)return-1;if(typeof $=="string"?(te=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,Iw($)&&($=se?0:A.length-1),$<0&&($=A.length+$),$>=A.length){if(se)return-1;$=A.length-1}else if($<0)if(se)$=0;else return-1;if(typeof F=="string"&&(F=f.from(F,te)),f.isBuffer(F))return F.length===0?-1:X(A,F,$,te,se);if(typeof F=="number")return F=F&255,typeof Uint8Array.prototype.indexOf=="function"?se?Uint8Array.prototype.indexOf.call(A,F,$):Uint8Array.prototype.lastIndexOf.call(A,F,$):X(A,[F],$,te,se);throw new TypeError("val must be string, number or Buffer")}function X(A,F,$,te,se){let me=1,Se=A.length,mt=F.length;if(te!==void 0&&(te=String(te).toLowerCase(),te==="ucs2"||te==="ucs-2"||te==="utf16le"||te==="utf-16le")){if(A.length<2||F.length<2)return-1;me=2,Se/=2,mt/=2,$/=2}function jr(er,Yt){return me===1?er[Yt]:er.readUInt16BE(Yt*me)}let nr;if(se){let er=-1;for(nr=$;nr<Se;nr++)if(jr(A,nr)===jr(F,er===-1?0:nr-er)){if(er===-1&&(er=nr),nr-er+1===mt)return er*me}else er!==-1&&(nr-=nr-er),er=-1}else for($+mt>Se&&($=Se-mt),nr=$;nr>=0;nr--){let er=!0;for(let Yt=0;Yt<mt;Yt++)if(jr(A,nr+Yt)!==jr(F,Yt)){er=!1;break}if(er)return nr}return-1}f.prototype.includes=function(A,F,$){return this.indexOf(A,F,$)!==-1},f.prototype.indexOf=function(A,F,$){return q(this,A,F,$,!0)},f.prototype.lastIndexOf=function(A,F,$){return q(this,A,F,$,!1)};function G(A,F,$,te){$=Number($)||0;let se=A.length-$;te?(te=Number(te),te>se&&(te=se)):te=se;let me=F.length;te>me/2&&(te=me/2);let Se;for(Se=0;Se<te;++Se){let mt=parseInt(F.substr(Se*2,2),16);if(Iw(mt))return Se;A[$+Se]=mt}return Se}function oe(A,F,$,te){return Af(ag(F,A.length-$),A,$,te)}function ce(A,F,$,te){return Af(p6(F),A,$,te)}function ge(A,F,$,te){return Af(cp(F),A,$,te)}function Q(A,F,$,te){return Af(Py(F,A.length-$),A,$,te)}f.prototype.write=function(A,F,$,te){if(F===void 0)te="utf8",$=this.length,F=0;else if($===void 0&&typeof F=="string")te=F,$=this.length,F=0;else if(isFinite(F))F=F>>>0,isFinite($)?($=$>>>0,te===void 0&&(te="utf8")):(te=$,$=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let se=this.length-F;if(($===void 0||$>se)&&($=se),A.length>0&&($<0||F<0)||F>this.length)throw new RangeError("Attempt to write outside buffer bounds");te||(te="utf8");let me=!1;for(;;)switch(te){case"hex":return G(this,A,F,$);case"utf8":case"utf-8":return oe(this,A,F,$);case"ascii":case"latin1":case"binary":return ce(this,A,F,$);case"base64":return ge(this,A,F,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,A,F,$);default:if(me)throw new TypeError("Unknown encoding: "+te);te=(""+te).toLowerCase(),me=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Z(A,F,$){return F===0&&$===A.length?o.fromByteArray(A):o.fromByteArray(A.slice(F,$))}function xe(A,F,$){$=Math.min(A.length,$);let te=[],se=F;for(;se<$;){let me=A[se],Se=null,mt=me>239?4:me>223?3:me>191?2:1;if(se+mt<=$){let jr,nr,er,Yt;switch(mt){case 1:me<128&&(Se=me);break;case 2:jr=A[se+1],(jr&192)===128&&(Yt=(me&31)<<6|jr&63,Yt>127&&(Se=Yt));break;case 3:jr=A[se+1],nr=A[se+2],(jr&192)===128&&(nr&192)===128&&(Yt=(me&15)<<12|(jr&63)<<6|nr&63,Yt>2047&&(Yt<55296||Yt>57343)&&(Se=Yt));break;case 4:jr=A[se+1],nr=A[se+2],er=A[se+3],(jr&192)===128&&(nr&192)===128&&(er&192)===128&&(Yt=(me&15)<<18|(jr&63)<<12|(nr&63)<<6|er&63,Yt>65535&&Yt<1114112&&(Se=Yt))}}Se===null?(Se=65533,mt=1):Se>65535&&(Se-=65536,te.push(Se>>>10&1023|55296),Se=56320|Se&1023),te.push(Se),se+=mt}return ke(te)}var we=4096;function ke(A){let F=A.length;if(F<=we)return String.fromCharCode.apply(String,A);let $="",te=0;for(;te<F;)$+=String.fromCharCode.apply(String,A.slice(te,te+=we));return $}function wr(A,F,$){let te="";$=Math.min(A.length,$);for(let se=F;se<$;++se)te+=String.fromCharCode(A[se]&127);return te}function rn(A,F,$){let te="";$=Math.min(A.length,$);for(let se=F;se<$;++se)te+=String.fromCharCode(A[se]);return te}function si(A,F,$){let te=A.length;(!F||F<0)&&(F=0),(!$||$<0||$>te)&&($=te);let se="";for(let me=F;me<$;++me)se+=f6[A[me]];return se}function Ai(A,F,$){let te=A.slice(F,$),se="";for(let me=0;me<te.length-1;me+=2)se+=String.fromCharCode(te[me]+te[me+1]*256);return se}f.prototype.slice=function(A,F){let $=this.length;A=~~A,F=F===void 0?$:~~F,A<0?(A+=$,A<0&&(A=0)):A>$&&(A=$),F<0?(F+=$,F<0&&(F=0)):F>$&&(F=$),F<A&&(F=A);let te=this.subarray(A,F);return Object.setPrototypeOf(te,f.prototype),te};function nn(A,F,$){if(A%1!==0||A<0)throw new RangeError("offset is not uint");if(A+F>$)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUintLE=f.prototype.readUIntLE=function(A,F,$){A=A>>>0,F=F>>>0,$||nn(A,F,this.length);let te=this[A],se=1,me=0;for(;++me<F&&(se*=256);)te+=this[A+me]*se;return te},f.prototype.readUintBE=f.prototype.readUIntBE=function(A,F,$){A=A>>>0,F=F>>>0,$||nn(A,F,this.length);let te=this[A+--F],se=1;for(;F>0&&(se*=256);)te+=this[A+--F]*se;return te},f.prototype.readUint8=f.prototype.readUInt8=function(A,F){return A=A>>>0,F||nn(A,1,this.length),this[A]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(A,F){return A=A>>>0,F||nn(A,2,this.length),this[A]|this[A+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(A,F){return A=A>>>0,F||nn(A,2,this.length),this[A]<<8|this[A+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(A,F){return A=A>>>0,F||nn(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+this[A+3]*16777216},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(A,F){return A=A>>>0,F||nn(A,4,this.length),this[A]*16777216+(this[A+1]<<16|this[A+2]<<8|this[A+3])},f.prototype.readBigUInt64LE=up(function(A){A=A>>>0,wc(A,"offset");let F=this[A],$=this[A+7];(F===void 0||$===void 0)&&Ls(A,this.length-8);let te=F+this[++A]*2**8+this[++A]*2**16+this[++A]*2**24,se=this[++A]+this[++A]*2**8+this[++A]*2**16+$*2**24;return BigInt(te)+(BigInt(se)<<BigInt(32))}),f.prototype.readBigUInt64BE=up(function(A){A=A>>>0,wc(A,"offset");let F=this[A],$=this[A+7];(F===void 0||$===void 0)&&Ls(A,this.length-8);let te=F*2**24+this[++A]*2**16+this[++A]*2**8+this[++A],se=this[++A]*2**24+this[++A]*2**16+this[++A]*2**8+$;return(BigInt(te)<<BigInt(32))+BigInt(se)}),f.prototype.readIntLE=function(A,F,$){A=A>>>0,F=F>>>0,$||nn(A,F,this.length);let te=this[A],se=1,me=0;for(;++me<F&&(se*=256);)te+=this[A+me]*se;return se*=128,te>=se&&(te-=Math.pow(2,8*F)),te},f.prototype.readIntBE=function(A,F,$){A=A>>>0,F=F>>>0,$||nn(A,F,this.length);let te=F,se=1,me=this[A+--te];for(;te>0&&(se*=256);)me+=this[A+--te]*se;return se*=128,me>=se&&(me-=Math.pow(2,8*F)),me},f.prototype.readInt8=function(A,F){return A=A>>>0,F||nn(A,1,this.length),this[A]&128?(255-this[A]+1)*-1:this[A]},f.prototype.readInt16LE=function(A,F){A=A>>>0,F||nn(A,2,this.length);let $=this[A]|this[A+1]<<8;return $&32768?$|4294901760:$},f.prototype.readInt16BE=function(A,F){A=A>>>0,F||nn(A,2,this.length);let $=this[A+1]|this[A]<<8;return $&32768?$|4294901760:$},f.prototype.readInt32LE=function(A,F){return A=A>>>0,F||nn(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},f.prototype.readInt32BE=function(A,F){return A=A>>>0,F||nn(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},f.prototype.readBigInt64LE=up(function(A){A=A>>>0,wc(A,"offset");let F=this[A],$=this[A+7];(F===void 0||$===void 0)&&Ls(A,this.length-8);let te=this[A+4]+this[A+5]*2**8+this[A+6]*2**16+($<<24);return(BigInt(te)<<BigInt(32))+BigInt(F+this[++A]*2**8+this[++A]*2**16+this[++A]*2**24)}),f.prototype.readBigInt64BE=up(function(A){A=A>>>0,wc(A,"offset");let F=this[A],$=this[A+7];(F===void 0||$===void 0)&&Ls(A,this.length-8);let te=(F<<24)+this[++A]*2**16+this[++A]*2**8+this[++A];return(BigInt(te)<<BigInt(32))+BigInt(this[++A]*2**24+this[++A]*2**16+this[++A]*2**8+$)}),f.prototype.readFloatLE=function(A,F){return A=A>>>0,F||nn(A,4,this.length),a.read(this,A,!0,23,4)},f.prototype.readFloatBE=function(A,F){return A=A>>>0,F||nn(A,4,this.length),a.read(this,A,!1,23,4)},f.prototype.readDoubleLE=function(A,F){return A=A>>>0,F||nn(A,8,this.length),a.read(this,A,!0,52,8)},f.prototype.readDoubleBE=function(A,F){return A=A>>>0,F||nn(A,8,this.length),a.read(this,A,!1,52,8)};function Rr(A,F,$,te,se,me){if(!f.isBuffer(A))throw new TypeError('"buffer" argument must be a Buffer instance');if(F>se||F<me)throw new RangeError('"value" argument is out of bounds');if($+te>A.length)throw new RangeError("Index out of range")}f.prototype.writeUintLE=f.prototype.writeUIntLE=function(A,F,$,te){if(A=+A,F=F>>>0,$=$>>>0,!te){let Se=Math.pow(2,8*$)-1;Rr(this,A,F,$,Se,0)}let se=1,me=0;for(this[F]=A&255;++me<$&&(se*=256);)this[F+me]=A/se&255;return F+$},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(A,F,$,te){if(A=+A,F=F>>>0,$=$>>>0,!te){let Se=Math.pow(2,8*$)-1;Rr(this,A,F,$,Se,0)}let se=$-1,me=1;for(this[F+se]=A&255;--se>=0&&(me*=256);)this[F+se]=A/me&255;return F+$},f.prototype.writeUint8=f.prototype.writeUInt8=function(A,F,$){return A=+A,F=F>>>0,$||Rr(this,A,F,1,255,0),this[F]=A&255,F+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(A,F,$){return A=+A,F=F>>>0,$||Rr(this,A,F,2,65535,0),this[F]=A&255,this[F+1]=A>>>8,F+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(A,F,$){return A=+A,F=F>>>0,$||Rr(this,A,F,2,65535,0),this[F]=A>>>8,this[F+1]=A&255,F+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(A,F,$){return A=+A,F=F>>>0,$||Rr(this,A,F,4,4294967295,0),this[F+3]=A>>>24,this[F+2]=A>>>16,this[F+1]=A>>>8,this[F]=A&255,F+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(A,F,$){return A=+A,F=F>>>0,$||Rr(this,A,F,4,4294967295,0),this[F]=A>>>24,this[F+1]=A>>>16,this[F+2]=A>>>8,this[F+3]=A&255,F+4};function xt(A,F,$,te,se){ai(F,te,se,A,$,7);let me=Number(F&BigInt(4294967295));A[$++]=me,me=me>>8,A[$++]=me,me=me>>8,A[$++]=me,me=me>>8,A[$++]=me;let Se=Number(F>>BigInt(32)&BigInt(4294967295));return A[$++]=Se,Se=Se>>8,A[$++]=Se,Se=Se>>8,A[$++]=Se,Se=Se>>8,A[$++]=Se,$}function dn(A,F,$,te,se){ai(F,te,se,A,$,7);let me=Number(F&BigInt(4294967295));A[$+7]=me,me=me>>8,A[$+6]=me,me=me>>8,A[$+5]=me,me=me>>8,A[$+4]=me;let Se=Number(F>>BigInt(32)&BigInt(4294967295));return A[$+3]=Se,Se=Se>>8,A[$+2]=Se,Se=Se>>8,A[$+1]=Se,Se=Se>>8,A[$]=Se,$+8}f.prototype.writeBigUInt64LE=up(function(A,F=0){return xt(this,A,F,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=up(function(A,F=0){return dn(this,A,F,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(A,F,$,te){if(A=+A,F=F>>>0,!te){let mt=Math.pow(2,8*$-1);Rr(this,A,F,$,mt-1,-mt)}let se=0,me=1,Se=0;for(this[F]=A&255;++se<$&&(me*=256);)A<0&&Se===0&&this[F+se-1]!==0&&(Se=1),this[F+se]=(A/me>>0)-Se&255;return F+$},f.prototype.writeIntBE=function(A,F,$,te){if(A=+A,F=F>>>0,!te){let mt=Math.pow(2,8*$-1);Rr(this,A,F,$,mt-1,-mt)}let se=$-1,me=1,Se=0;for(this[F+se]=A&255;--se>=0&&(me*=256);)A<0&&Se===0&&this[F+se+1]!==0&&(Se=1),this[F+se]=(A/me>>0)-Se&255;return F+$},f.prototype.writeInt8=function(A,F,$){return A=+A,F=F>>>0,$||Rr(this,A,F,1,127,-128),A<0&&(A=255+A+1),this[F]=A&255,F+1},f.prototype.writeInt16LE=function(A,F,$){return A=+A,F=F>>>0,$||Rr(this,A,F,2,32767,-32768),this[F]=A&255,this[F+1]=A>>>8,F+2},f.prototype.writeInt16BE=function(A,F,$){return A=+A,F=F>>>0,$||Rr(this,A,F,2,32767,-32768),this[F]=A>>>8,this[F+1]=A&255,F+2},f.prototype.writeInt32LE=function(A,F,$){return A=+A,F=F>>>0,$||Rr(this,A,F,4,2147483647,-2147483648),this[F]=A&255,this[F+1]=A>>>8,this[F+2]=A>>>16,this[F+3]=A>>>24,F+4},f.prototype.writeInt32BE=function(A,F,$){return A=+A,F=F>>>0,$||Rr(this,A,F,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[F]=A>>>24,this[F+1]=A>>>16,this[F+2]=A>>>8,this[F+3]=A&255,F+4},f.prototype.writeBigInt64LE=up(function(A,F=0){return xt(this,A,F,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=up(function(A,F=0){return dn(this,A,F,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ap(A,F,$,te,se,me){if($+te>A.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function qe(A,F,$,te,se){return F=+F,$=$>>>0,se||ap(A,F,$,4,34028234663852886e22,-34028234663852886e22),a.write(A,F,$,te,23,4),$+4}f.prototype.writeFloatLE=function(A,F,$){return qe(this,A,F,!0,$)},f.prototype.writeFloatBE=function(A,F,$){return qe(this,A,F,!1,$)};function Ut(A,F,$,te,se){return F=+F,$=$>>>0,se||ap(A,F,$,8,17976931348623157e292,-17976931348623157e292),a.write(A,F,$,te,52,8),$+8}f.prototype.writeDoubleLE=function(A,F,$){return Ut(this,A,F,!0,$)},f.prototype.writeDoubleBE=function(A,F,$){return Ut(this,A,F,!1,$)},f.prototype.copy=function(A,F,$,te){if(!f.isBuffer(A))throw new TypeError("argument should be a Buffer");if($||($=0),!te&&te!==0&&(te=this.length),F>=A.length&&(F=A.length),F||(F=0),te>0&&te<$&&(te=$),te===$||A.length===0||this.length===0)return 0;if(F<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("Index out of range");if(te<0)throw new RangeError("sourceEnd out of bounds");te>this.length&&(te=this.length),A.length-F<te-$&&(te=A.length-F+$);let se=te-$;return this===A&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(F,$,te):Uint8Array.prototype.set.call(A,this.subarray($,te),F),se},f.prototype.fill=function(A,F,$,te){if(typeof A=="string"){if(typeof F=="string"?(te=F,F=0,$=this.length):typeof $=="string"&&(te=$,$=this.length),te!==void 0&&typeof te!="string")throw new TypeError("encoding must be a string");if(typeof te=="string"&&!f.isEncoding(te))throw new TypeError("Unknown encoding: "+te);if(A.length===1){let me=A.charCodeAt(0);(te==="utf8"&&me<128||te==="latin1")&&(A=me)}}else typeof A=="number"?A=A&255:typeof A=="boolean"&&(A=Number(A));if(F<0||this.length<F||this.length<$)throw new RangeError("Out of range index");if($<=F)return this;F=F>>>0,$=$===void 0?this.length:$>>>0,A||(A=0);let se;if(typeof A=="number")for(se=F;se<$;++se)this[se]=A;else{let me=f.isBuffer(A)?A:f.from(A,te),Se=me.length;if(Se===0)throw new TypeError('The value "'+A+'" is invalid for argument "value"');for(se=0;se<$-F;++se)this[se+F]=me[se%Se]}return this};var Pe={};function Bt(A,F,$){Pe[A]=class extends ${constructor(){super(),Object.defineProperty(this,"message",{value:F.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${A}]`,this.stack,delete this.name}get code(){return A}set code(te){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:te,writable:!0})}toString(){return`${this.name} [${A}]: ${this.message}`}}}Bt("ERR_BUFFER_OUT_OF_BOUNDS",function(A){return A?`${A} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Bt("ERR_INVALID_ARG_TYPE",function(A,F){return`The "${A}" argument must be of type number. Received type ${typeof F}`},TypeError),Bt("ERR_OUT_OF_RANGE",function(A,F,$){let te=`The value of "${A}" is out of range.`,se=$;return Number.isInteger($)&&Math.abs($)>2**32?se=hn(String($)):typeof $=="bigint"&&(se=String($),($>BigInt(2)**BigInt(32)||$<-(BigInt(2)**BigInt(32)))&&(se=hn(se)),se+="n"),te+=` It must be ${F}. Received ${se}`,te},RangeError);function hn(A){let F="",$=A.length,te=A[0]==="-"?1:0;for(;$>=te+4;$-=3)F=`_${A.slice($-3,$)}${F}`;return`${A.slice(0,$)}${F}`}function No(A,F,$){wc(F,"offset"),(A[F]===void 0||A[F+$]===void 0)&&Ls(F,A.length-($+1))}function ai(A,F,$,te,se,me){if(A>$||A<F){let Se=typeof F=="bigint"?"n":"",mt;throw me>3?F===0||F===BigInt(0)?mt=`>= 0${Se} and < 2${Se} ** ${(me+1)*8}${Se}`:mt=`>= -(2${Se} ** ${(me+1)*8-1}${Se}) and < 2 ** ${(me+1)*8-1}${Se}`:mt=`>= ${F}${Se} and <= ${$}${Se}`,new Pe.ERR_OUT_OF_RANGE("value",mt,A)}No(te,se,me)}function wc(A,F){if(typeof A!="number")throw new Pe.ERR_INVALID_ARG_TYPE(F,"number",A)}function Ls(A,F,$){throw Math.floor(A)!==A?(wc(A,$),new Pe.ERR_OUT_OF_RANGE($||"offset","an integer",A)):F<0?new Pe.ERR_BUFFER_OUT_OF_BOUNDS:new Pe.ERR_OUT_OF_RANGE($||"offset",`>= ${$?1:0} and <= ${F}`,A)}var l6=/[^+/0-9A-Za-z-_]/g;function MD(A){if(A=A.split("=")[0],A=A.trim().replace(l6,""),A.length<2)return"";for(;A.length%4!==0;)A=A+"=";return A}function ag(A,F){F=F||1/0;let $,te=A.length,se=null,me=[];for(let Se=0;Se<te;++Se){if($=A.charCodeAt(Se),$>55295&&$<57344){if(!se){if($>56319){(F-=3)>-1&&me.push(239,191,189);continue}else if(Se+1===te){(F-=3)>-1&&me.push(239,191,189);continue}se=$;continue}if($<56320){(F-=3)>-1&&me.push(239,191,189),se=$;continue}$=(se-55296<<10|$-56320)+65536}else se&&(F-=3)>-1&&me.push(239,191,189);if(se=null,$<128){if((F-=1)<0)break;me.push($)}else if($<2048){if((F-=2)<0)break;me.push($>>6|192,$&63|128)}else if($<65536){if((F-=3)<0)break;me.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((F-=4)<0)break;me.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw new Error("Invalid code point")}return me}function p6(A){let F=[];for(let $=0;$<A.length;++$)F.push(A.charCodeAt($)&255);return F}function Py(A,F){let $,te,se,me=[];for(let Se=0;Se<A.length&&!((F-=2)<0);++Se)$=A.charCodeAt(Se),te=$>>8,se=$%256,me.push(se),me.push(te);return me}function cp(A){return o.toByteArray(MD(A))}function Af(A,F,$,te){let se;for(se=0;se<te&&!(se+$>=F.length||se>=A.length);++se)F[se+$]=A[se];return se}function Va(A,F){return A instanceof F||A!=null&&A.constructor!=null&&A.constructor.name!=null&&A.constructor.name===F.name}function Iw(A){return A!==A}var f6=function(){let A="0123456789abcdef",F=new Array(256);for(let $=0;$<16;++$){let te=$*16;for(let se=0;se<16;++se)F[te+se]=A[$]+A[se]}return F}();function up(A){return typeof BigInt>"u"?oH:A}function oH(){throw new Error("BigInt not supported")}}),Cy,de=Ty(()=>{"use strict";Cy=OD($Vr())});function BVr(){return!1}var pPt,fPt,QPt,qVr=Ty(()=>{"use strict";de(),ue(),le(),pe(),fe(),pPt={},fPt={existsSync:BVr,promises:pPt},QPt=fPt});function jVr(...e){return e.join("/")}function UVr(...e){return e.join("/")}var Rve,dPt,hPt,Kk,WVr=Ty(()=>{"use strict";de(),ue(),le(),pe(),fe(),Rve="/",dPt={sep:Rve},hPt={resolve:jVr,posix:dPt,join:UVr,sep:Rve},Kk=hPt}),HVr=Tw((e,r)=>{r.exports={name:"@prisma/internals",version:"6.5.0-dev.56",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 -- jest --silent",prepublishOnly:"pnpm run build"},files:["README.md","dist","!**/libquery_engine*","!dist/get-generators/engines/*","scripts"],devDependencies:{"@antfu/ni":"0.21.12","@babel/helper-validator-identifier":"7.25.9","@opentelemetry/api":"1.9.0","@swc/core":"1.11.5","@swc/jest":"0.2.37","@types/babel__helper-validator-identifier":"7.15.2","@types/jest":"29.5.14","@types/node":"18.19.76","@types/resolve":"1.20.6",archiver:"6.0.2","checkpoint-client":"1.1.33","cli-truncate":"4.0.0",dotenv:"16.4.7",esbuild:"0.24.2","escape-string-regexp":"4.0.0",execa:"5.1.1","fast-glob":"3.3.3","find-up":"5.0.0","fp-ts":"2.16.9","fs-extra":"11.3.0","fs-jetpack":"5.1.0","global-dirs":"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",jest:"29.7.0","jest-junit":"16.0.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","read-package-up":"11.0.0",resolve:"1.22.10","string-width":"4.2.3","strip-ansi":"6.0.1","strip-indent":"3.0.0","temp-dir":"2.0.0",tempy:"1.0.1","terminal-link":"2.1.1",tmp:"0.2.3","ts-node":"10.9.2","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/engines":"workspace:*","@prisma/fetch-engine":"workspace:*","@prisma/generator-helper":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/prisma-schema-wasm":"6.5.0-42.ebe92748df38ea968da11e62e111f2596014342a","@prisma/schema-files-loader":"workspace:*",arg:"5.0.2",prompts:"2.4.2"},peerDependencies:{typescript:">=5.1.0"},peerDependenciesMeta:{typescript:{optional:!0}},sideEffects:!1}}),ZPt,GVr=Ty(()=>{"use strict";de(),ue(),le(),pe(),fe(),ZPt=class{constructor(){ye(this,"events",{})}on(e,r){return this.events[e]||(this.events[e]=[]),this.events[e].push(r),this}emit(e,...r){return this.events[e]?(this.events[e].forEach(n=>{n(...r)}),!0):!1}}}),zVr=Tw((e,r)=>{"use strict";de(),ue(),le(),pe(),fe(),r.exports=(n,i=1,o)=>{if(o={indent:" ",includeEmptyLines:!1,...o},typeof n!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof n}\``);if(typeof i!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof i}\``);if(typeof o.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof o.indent}\``);if(i===0)return n;let a=o.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return n.replace(a,o.indent.repeat(i))}}),VVr=Tw((e,r)=>{"use strict";de(),ue(),le(),pe(),fe(),r.exports=({onlyFirst:n=!1}={})=>{let i=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(i,n?void 0:"g")}}),KVr=Tw((e,r)=>{"use strict";de(),ue(),le(),pe(),fe();var n=VVr();r.exports=i=>typeof i=="string"?i.replace(n(),""):i}),XPt=Tw((e,r)=>{"use strict";de(),ue(),le(),pe(),fe(),r.exports=function(){function n(i,o,a,c,u){return i<o||a<o?i>a?a+1:i+1:c===u?o:o+1}return function(i,o){if(i===o)return 0;if(i.length>o.length){var a=i;i=o,o=a}for(var c=i.length,u=o.length;c>0&&i.charCodeAt(c-1)===o.charCodeAt(u-1);)c--,u--;for(var l=0;l<c&&i.charCodeAt(l)===o.charCodeAt(l);)l++;if(c-=l,u-=l,c===0||u<3)return u;var p=0,f,g,x,b,v,S,T,P,R,M,L,N,V=[];for(f=0;f<c;f++)V.push(f+1),V.push(i.charCodeAt(l+f));for(var W=V.length-1;p<u-3;)for(R=o.charCodeAt(l+(g=p)),M=o.charCodeAt(l+(x=p+1)),L=o.charCodeAt(l+(b=p+2)),N=o.charCodeAt(l+(v=p+3)),S=p+=4,f=0;f<W;f+=2)T=V[f],P=V[f+1],g=n(T,g,x,R,P),x=n(g,x,b,M,P),b=n(x,b,v,L,P),S=n(b,v,S,N,P),V[f]=S,v=b,b=x,x=g,g=T;for(;p<u;)for(R=o.charCodeAt(l+(g=p)),S=++p,f=0;f<W;f+=2)T=V[f],V[f]=S=n(T,g,S,R,V[f+1]),g=T;return S}}()}),YVr=Tw((e,r)=>{r.exports={name:"@prisma/engines-version",version:"6.5.0-42.ebe92748df38ea968da11e62e111f2596014342a",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek <suchanek@prisma.io>",prisma:{enginesVersion:"ebe92748df38ea968da11e62e111f2596014342a"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.76",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}}),eFt={};qW(eFt,{Debug:()=>lFt,Decimal:()=>o6,Extensions:()=>tFt,MetricsClient:()=>nRt,PrismaClientInitializationError:()=>zu,PrismaClientKnownRequestError:()=>_w,PrismaClientRustPanicError:()=>Qk,PrismaClientUnknownRequestError:()=>Cw,PrismaClientValidationError:()=>ig,Public:()=>rFt,Sql:()=>Oy,createParam:()=>dJr,defineDmmfProperty:()=>CJr,deserializeJsonResponse:()=>LW,deserializeRawResult:()=>qRt,dmmfToRuntimeDataModel:()=>_Jr,empty:()=>IJr,getPrismaClient:()=>CZr,getRuntime:()=>xRt,join:()=>OJr,makeStrictEnum:()=>AZr,makeTypedQueryFactory:()=>TJr,objectEnumValues:()=>WFt,raw:()=>sRt,serializeJsonQuery:()=>eRt,skip:()=>ZFt,sqltag:()=>PJr,warnEnvConflicts:()=>{},warnOnce:()=>mFt});WRt.exports=NVr(eFt);de();ue();le();pe();fe();var tFt={};qW(tFt,{defineExtension:()=>JVr,getExtensionContext:()=>QVr});de();ue();le();pe();fe();de();ue();le();pe();fe();function JVr(e){return typeof e=="function"?e:r=>r.$extends(e)}de();ue();le();pe();fe();function QVr(e){return e}var rFt={};qW(rFt,{validator:()=>ZVr});de();ue();le();pe();fe();de();ue();le();pe();fe();function ZVr(...e){return r=>r}de();ue();le();pe();fe();de();ue();le();pe();fe();de();ue();le();pe();fe();de();ue();le();pe();fe();de();ue();le();pe();fe();function nFt(e){return e.name==="DriverAdapterError"&&typeof e.cause=="object"}de();ue();le();pe();fe();function sEe(e){return{ok:!0,value:e,map(r){return sEe(r(e))},flatMap(r){return r(e)}}}function DD(e){return{ok:!1,error:e,map(){return DD(e)},flatMap(){return DD(e)}}}var XVr=class{constructor(){ye(this,"registeredErrors",[])}consumeError(e){return this.registeredErrors[e]}registerNewError(e){let r=0;for(;this.registeredErrors[r]!==void 0;)r++;return this.registeredErrors[r]={error:e},r}},eKr=e=>{let r=new XVr,n=op(r,e.transactionContext.bind(e)),i={adapterName:e.adapterName,errorRegistry:r,queryRaw:op(r,e.queryRaw.bind(e)),executeRaw:op(r,e.executeRaw.bind(e)),executeScript:op(r,e.executeScript.bind(e)),dispose:op(r,e.dispose.bind(e)),provider:e.provider,transactionContext:async(...o)=>(await n(...o)).map(a=>tKr(r,a))};return e.getConnectionInfo&&(i.getConnectionInfo=nKr(r,e.getConnectionInfo.bind(e))),i},tKr=(e,r)=>{let n=op(e,r.startTransaction.bind(r));return{adapterName:r.adapterName,provider:r.provider,queryRaw:op(e,r.queryRaw.bind(r)),executeRaw:op(e,r.executeRaw.bind(r)),startTransaction:async(...i)=>(await n(...i)).map(o=>rKr(e,o))}},rKr=(e,r)=>({adapterName:r.adapterName,provider:r.provider,options:r.options,queryRaw:op(e,r.queryRaw.bind(r)),executeRaw:op(e,r.executeRaw.bind(r)),commit:op(e,r.commit.bind(r)),rollback:op(e,r.rollback.bind(r))});function op(e,r){return async(...n)=>{try{return sEe(await r(...n))}catch(i){if(nFt(i))return DD(i.cause);let o=e.registerNewError(i);return DD({kind:"GenericJs",id:o})}}}function nKr(e,r){return(...n)=>{try{return sEe(r(...n))}catch(i){if(nFt(i))return DD(i.cause);let o=e.registerNewError(i);return DD({kind:"GenericJs",id:o})}}}de();ue();le();pe();fe();de();ue();le();pe();fe();var $ve,iFt,oFt,sFt,aFt=!0;typeof Ns<"u"&&({FORCE_COLOR:$ve,NODE_DISABLE_COLORS:iFt,NO_COLOR:oFt,TERM:sFt}=Ns.env||{},aFt=Ns.stdout&&Ns.stdout.isTTY);var iKr={enabled:!iFt&&oFt==null&&sFt!=="dumb"&&($ve!=null&&$ve!=="0"||aFt)};function oi(e,r){let n=new RegExp(`\\x1b\\[${r}m`,"g"),i=`\x1B[${e}m`,o=`\x1B[${r}m`;return function(a){return!iKr.enabled||a==null?a:i+(~(""+a).indexOf(o)?a.replace(n,o+i):a)+o}}var dyi=oi(0,0),cFt=oi(1,22),uFt=oi(2,22),hyi=oi(3,23),oKr=oi(4,24),myi=oi(7,27),gyi=oi(8,28),xyi=oi(9,29),yyi=oi(30,39),aEe=oi(31,39),sKr=oi(32,39),aKr=oi(33,39),cKr=oi(34,39),byi=oi(35,39),uKr=oi(36,39),vyi=oi(37,39),lKr=oi(90,39),Eyi=oi(90,39),wyi=oi(40,49),Syi=oi(41,49),_yi=oi(42,49),Cyi=oi(43,49),Dyi=oi(44,49),Tyi=oi(45,49),Ayi=oi(46,49),Oyi=oi(47,49),pKr=100,mPt=["green","yellow","blue","magenta","cyan","red"],TW=[],gPt=Date.now(),fKr=0,Bve=typeof Ns<"u"?Ns.env:{};globalThis.DEBUG??=Bve.DEBUG??"";globalThis.DEBUG_COLORS??=Bve.DEBUG_COLORS?Bve.DEBUG_COLORS==="true":!0;var Jk={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(o=>o.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),n=r.some(o=>o===""||o[0]==="-"?!1:e.match(RegExp(o.split("*").join(".*")+"$"))),i=r.some(o=>o===""||o[0]!=="-"?!1:e.match(RegExp(o.slice(1).split("*").join(".*")+"$")));return n&&!i},log:(...e)=>{let[r,n,...i]=e;(console.warn??console.log)(`${r} ${n}`,...i)},formatters:{}};function dKr(e){let r={color:mPt[fKr++%mPt.length],enabled:Jk.enabled(e),namespace:e,log:Jk.log,extend:()=>{}},n=(...i)=>{let{enabled:o,namespace:a,color:c,log:u}=r;if(i.length!==0&&TW.push([a,...i]),TW.length>pKr&&TW.shift(),Jk.enabled(a)||o){let l=i.map(f=>typeof f=="string"?f:hKr(f)),p=`+${Date.now()-gPt}ms`;gPt=Date.now(),u(a,...l,p)}};return new Proxy(n,{get:(i,o)=>r[o],set:(i,o,a)=>r[o]=a})}var lFt=new Proxy(dKr,{get:(e,r)=>Jk[r],set:(e,r,n)=>Jk[r]=n});function hKr(e,r=2){let n=new Set;return JSON.stringify(e,(i,o)=>{if(typeof o=="object"&&o!==null){if(n.has(o))return"[Circular *]";n.add(o)}else if(typeof o=="bigint")return o.toString();return o},r)}function mKr(){TW.length=0}var sg=lFt;de();ue();le();pe();fe();de();ue();le();pe();fe();var gKr=HVr(),xKr=gKr.version;de();ue();le();pe();fe();var yKr="library";function qve(e){return bKr()||(e?.config.engineType==="library"?"library":e?.config.engineType==="binary"?"binary":e?.config.engineType==="client"?"client":yKr)}function bKr(){let e=Ns.env.PRISMA_CLIENT_ENGINE_TYPE;return e==="library"?"library":e==="binary"?"binary":e==="client"?"client":void 0}de();ue();le();pe();fe();var vKr="prisma+postgres",pFt=`${vKr}:`;function EKr(e){return e?.startsWith(`${pFt}//`)??!1}de();ue();le();pe();fe();de();ue();le();pe();fe();var fFt;(e=>{let r;(n=>(n.findUnique="findUnique",n.findUniqueOrThrow="findUniqueOrThrow",n.findFirst="findFirst",n.findFirstOrThrow="findFirstOrThrow",n.findMany="findMany",n.create="create",n.createMany="createMany",n.createManyAndReturn="createManyAndReturn",n.update="update",n.updateMany="updateMany",n.updateManyAndReturn="updateManyAndReturn",n.upsert="upsert",n.delete="delete",n.deleteMany="deleteMany",n.groupBy="groupBy",n.count="count",n.aggregate="aggregate",n.findRaw="findRaw",n.aggregateRaw="aggregateRaw"))(r=e.ModelAction||={})})(fFt||={});var jve={};qW(jve,{error:()=>_Kr,info:()=>SKr,log:()=>wKr,query:()=>CKr,should:()=>dFt,tags:()=>i6,warn:()=>hFt});de();ue();le();pe();fe();var i6={error:aEe("prisma:error"),warn:aKr("prisma:warn"),info:uKr("prisma:info"),query:cKr("prisma:query")},dFt={warn:()=>!Ns.env.PRISMA_DISABLE_WARNINGS};function wKr(...e){console.log(...e)}function hFt(e,...r){dFt.warn()&&console.warn(`${i6.warn} ${e}`,...r)}function SKr(e,...r){console.info(`${i6.info} ${e}`,...r)}function _Kr(e,...r){console.error(`${i6.error} ${e}`,...r)}function CKr(e,...r){console.log(`${i6.query} ${e}`,...r)}de();ue();le();pe();fe();function jW(e,r){throw new Error(r)}de();ue();le();pe();fe();function DKr(e,r){return Object.prototype.hasOwnProperty.call(e,r)}de();ue();le();pe();fe();var TKr=(e,r)=>e.reduce((n,i)=>(n[r(i)]=i,n),{});de();ue();le();pe();fe();function cEe(e,r){let n={};for(let i of Object.keys(e))n[i]=r(e[i],i);return n}de();ue();le();pe();fe();function AKr(e,r){if(e.length===0)return;let n=e[0];for(let i=1;i<e.length;i++)r(n,e[i])<0&&(n=e[i]);return n}de();ue();le();pe();fe();function eo(e,r){Object.defineProperty(e,"name",{value:r,configurable:!0})}de();ue();le();pe();fe();var xPt=new Set,mFt=(e,r,...n)=>{xPt.has(e)||(xPt.add(e),hFt(r,...n))},zu=class gFt extends Error{constructor(r,n,i){super(r),ye(this,"clientVersion"),ye(this,"errorCode"),ye(this,"retryable"),this.name="PrismaClientInitializationError",this.clientVersion=n,this.errorCode=i,Error.captureStackTrace(gFt)}get[Symbol.toStringTag](){return"PrismaClientInitializationError"}};eo(zu,"PrismaClientInitializationError");de();ue();le();pe();fe();var _w=class extends Error{constructor(e,{code:r,clientVersion:n,meta:i,batchRequestIdx:o}){super(e),ye(this,"code"),ye(this,"meta"),ye(this,"clientVersion"),ye(this,"batchRequestIdx"),this.name="PrismaClientKnownRequestError",this.code=r,this.clientVersion=n,this.meta=i,Object.defineProperty(this,"batchRequestIdx",{value:o,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};eo(_w,"PrismaClientKnownRequestError");de();ue();le();pe();fe();var Qk=class extends Error{constructor(e,r){super(e),ye(this,"clientVersion"),this.name="PrismaClientRustPanicError",this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};eo(Qk,"PrismaClientRustPanicError");de();ue();le();pe();fe();var Cw=class extends Error{constructor(e,{clientVersion:r,batchRequestIdx:n}){super(e),ye(this,"clientVersion"),ye(this,"batchRequestIdx"),this.name="PrismaClientUnknownRequestError",this.clientVersion=r,Object.defineProperty(this,"batchRequestIdx",{value:n,writable:!0,enumerable:!1})}get[Symbol.toStringTag](){return"PrismaClientUnknownRequestError"}};eo(Cw,"PrismaClientUnknownRequestError");de();ue();le();pe();fe();var ig=class extends Error{constructor(e,{clientVersion:r}){super(e),ye(this,"name","PrismaClientValidationError"),ye(this,"clientVersion"),this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};eo(ig,"PrismaClientValidationError");de();ue();le();pe();fe();de();ue();le();pe();fe();var CD=9e15,Ay=1e9,Uve="0123456789abcdef",kW="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",MW="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Wve={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-CD,maxE:CD,crypto:!1},xFt,og,qt=!0,UW="[DecimalError] ",Dy=UW+"Invalid argument: ",yFt=UW+"Precision limit exceeded",bFt=UW+"crypto unavailable",vFt="[object Decimal]",Ga=Math.floor,us=Math.pow,OKr=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,IKr=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,PKr=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,EFt=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Tf=1e7,At=7,FKr=9007199254740991,RKr=kW.length-1,Hve=MW.length-1,_e={toStringTag:vFt};_e.absoluteValue=_e.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),bt(e)};_e.ceil=function(){return bt(new this.constructor(this),this.e+1,2)};_e.clampedTo=_e.clamp=function(e,r){var n,i=this,o=i.constructor;if(e=new o(e),r=new o(r),!e.s||!r.s)return new o(NaN);if(e.gt(r))throw Error(Dy+r);return n=i.cmp(e),n<0?e:i.cmp(r)>0?r:new o(i)};_e.comparedTo=_e.cmp=function(e){var r,n,i,o,a=this,c=a.d,u=(e=new a.constructor(e)).d,l=a.s,p=e.s;if(!c||!u)return!l||!p?NaN:l!==p?l:c===u?0:!c^l<0?1:-1;if(!c[0]||!u[0])return c[0]?l:u[0]?-p:0;if(l!==p)return l;if(a.e!==e.e)return a.e>e.e^l<0?1:-1;for(i=c.length,o=u.length,r=0,n=i<o?i:o;r<n;++r)if(c[r]!==u[r])return c[r]>u[r]^l<0?1:-1;return i===o?0:i>o^l<0?1:-1};_e.cosine=_e.cos=function(){var e,r,n=this,i=n.constructor;return n.d?n.d[0]?(e=i.precision,r=i.rounding,i.precision=e+Math.max(n.e,n.sd())+At,i.rounding=1,n=kKr(i,DFt(i,n)),i.precision=e,i.rounding=r,bt(og==2||og==3?n.neg():n,e,r,!0)):new i(1):new i(NaN)};_e.cubeRoot=_e.cbrt=function(){var e,r,n,i,o,a,c,u,l,p,f=this,g=f.constructor;if(!f.isFinite()||f.isZero())return new g(f);for(qt=!1,a=f.s*us(f.s*f,1/3),!a||Math.abs(a)==1/0?(n=ha(f.d),e=f.e,(a=(e-n.length+1)%3)&&(n+=a==1||a==-2?"0":"00"),a=us(n,1/3),e=Ga((e+1)/3)-(e%3==(e<0?-1:2)),a==1/0?n="5e"+e:(n=a.toExponential(),n=n.slice(0,n.indexOf("e")+1)+e),i=new g(n),i.s=f.s):i=new g(a.toString()),c=(e=g.precision)+3;;)if(u=i,l=u.times(u).times(u),p=l.plus(f),i=Hn(p.plus(f).times(u),p.plus(l),c+2,1),ha(u.d).slice(0,c)===(n=ha(i.d)).slice(0,c))if(n=n.slice(c-3,c+1),n=="9999"||!o&&n=="4999"){if(!o&&(bt(u,e+1,0),u.times(u).times(u).eq(f))){i=u;break}c+=4,o=1}else{(!+n||!+n.slice(1)&&n.charAt(0)=="5")&&(bt(i,e+1,1),r=!i.times(i).times(i).eq(f));break}return qt=!0,bt(i,e,g.rounding,r)};_e.decimalPlaces=_e.dp=function(){var e,r=this.d,n=NaN;if(r){if(e=r.length-1,n=(e-Ga(this.e/At))*At,e=r[e],e)for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n};_e.dividedBy=_e.div=function(e){return Hn(this,new this.constructor(e))};_e.dividedToIntegerBy=_e.divToInt=function(e){var r=this,n=r.constructor;return bt(Hn(r,new n(e),0,1,1),n.precision,n.rounding)};_e.equals=_e.eq=function(e){return this.cmp(e)===0};_e.floor=function(){return bt(new this.constructor(this),this.e+1,3)};_e.greaterThan=_e.gt=function(e){return this.cmp(e)>0};_e.greaterThanOrEqualTo=_e.gte=function(e){var r=this.cmp(e);return r==1||r===0};_e.hyperbolicCosine=_e.cosh=function(){var e,r,n,i,o,a=this,c=a.constructor,u=new c(1);if(!a.isFinite())return new c(a.s?1/0:NaN);if(a.isZero())return u;n=c.precision,i=c.rounding,c.precision=n+Math.max(a.e,a.sd())+4,c.rounding=1,o=a.d.length,o<32?(e=Math.ceil(o/3),r=(1/HW(4,e)).toString()):(e=16,r="2.3283064365386962890625e-10"),a=TD(c,1,a.times(r),new c(1),!0);for(var l,p=e,f=new c(8);p--;)l=a.times(a),a=u.minus(l.times(f.minus(l.times(f))));return bt(a,c.precision=n,c.rounding=i,!0)};_e.hyperbolicSine=_e.sinh=function(){var e,r,n,i,o=this,a=o.constructor;if(!o.isFinite()||o.isZero())return new a(o);if(r=a.precision,n=a.rounding,a.precision=r+Math.max(o.e,o.sd())+4,a.rounding=1,i=o.d.length,i<3)o=TD(a,2,o,o,!0);else{e=1.4*Math.sqrt(i),e=e>16?16:e|0,o=o.times(1/HW(5,e)),o=TD(a,2,o,o,!0);for(var c,u=new a(5),l=new a(16),p=new a(20);e--;)c=o.times(o),o=o.times(u.plus(c.times(l.times(c).plus(p))))}return a.precision=r,a.rounding=n,bt(o,r,n,!0)};_e.hyperbolicTangent=_e.tanh=function(){var e,r,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(e=i.precision,r=i.rounding,i.precision=e+7,i.rounding=1,Hn(n.sinh(),n.cosh(),i.precision=e,i.rounding=r)):new i(n.s)};_e.inverseCosine=_e.acos=function(){var e=this,r=e.constructor,n=e.abs().cmp(1),i=r.precision,o=r.rounding;return n!==-1?n===0?e.isNeg()?oh(r,i,o):new r(0):new r(NaN):e.isZero()?oh(r,i+4,o).times(.5):(r.precision=i+6,r.rounding=1,e=new r(1).minus(e).div(e.plus(1)).sqrt().atan(),r.precision=i,r.rounding=o,e.times(2))};_e.inverseHyperbolicCosine=_e.acosh=function(){var e,r,n=this,i=n.constructor;return n.lte(1)?new i(n.eq(1)?0:NaN):n.isFinite()?(e=i.precision,r=i.rounding,i.precision=e+Math.max(Math.abs(n.e),n.sd())+4,i.rounding=1,qt=!1,n=n.times(n).minus(1).sqrt().plus(n),qt=!0,i.precision=e,i.rounding=r,n.ln()):new i(n)};_e.inverseHyperbolicSine=_e.asinh=function(){var e,r,n=this,i=n.constructor;return!n.isFinite()||n.isZero()?new i(n):(e=i.precision,r=i.rounding,i.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,i.rounding=1,qt=!1,n=n.times(n).plus(1).sqrt().plus(n),qt=!0,i.precision=e,i.rounding=r,n.ln())};_e.inverseHyperbolicTangent=_e.atanh=function(){var e,r,n,i,o=this,a=o.constructor;return o.isFinite()?o.e>=0?new a(o.abs().eq(1)?o.s/0:o.isZero()?o:NaN):(e=a.precision,r=a.rounding,i=o.sd(),Math.max(i,e)<2*-o.e-1?bt(new a(o),e,r,!0):(a.precision=n=i-o.e,o=Hn(o.plus(1),new a(1).minus(o),n+e,1),a.precision=e+4,a.rounding=1,o=o.ln(),a.precision=e,a.rounding=r,o.times(.5))):new a(NaN)};_e.inverseSine=_e.asin=function(){var e,r,n,i,o=this,a=o.constructor;return o.isZero()?new a(o):(r=o.abs().cmp(1),n=a.precision,i=a.rounding,r!==-1?r===0?(e=oh(a,n+4,i).times(.5),e.s=o.s,e):new a(NaN):(a.precision=n+6,a.rounding=1,o=o.div(new a(1).minus(o.times(o)).sqrt().plus(1)).atan(),a.precision=n,a.rounding=i,o.times(2)))};_e.inverseTangent=_e.atan=function(){var e,r,n,i,o,a,c,u,l,p=this,f=p.constructor,g=f.precision,x=f.rounding;if(p.isFinite()){if(p.isZero())return new f(p);if(p.abs().eq(1)&&g+4<=Hve)return c=oh(f,g+4,x).times(.25),c.s=p.s,c}else{if(!p.s)return new f(NaN);if(g+4<=Hve)return c=oh(f,g+4,x).times(.5),c.s=p.s,c}for(f.precision=u=g+10,f.rounding=1,n=Math.min(28,u/At+2|0),e=n;e;--e)p=p.div(p.times(p).plus(1).sqrt().plus(1));for(qt=!1,r=Math.ceil(u/At),i=1,l=p.times(p),c=new f(p),o=p;e!==-1;)if(o=o.times(l),a=c.minus(o.div(i+=2)),o=o.times(l),c=a.plus(o.div(i+=2)),c.d[r]!==void 0)for(e=r;c.d[e]===a.d[e]&&e--;);return n&&(c=c.times(2<<n-1)),qt=!0,bt(c,f.precision=g,f.rounding=x,!0)};_e.isFinite=function(){return!!this.d};_e.isInteger=_e.isInt=function(){return!!this.d&&Ga(this.e/At)>this.d.length-2};_e.isNaN=function(){return!this.s};_e.isNegative=_e.isNeg=function(){return this.s<0};_e.isPositive=_e.isPos=function(){return this.s>0};_e.isZero=function(){return!!this.d&&this.d[0]===0};_e.lessThan=_e.lt=function(e){return this.cmp(e)<0};_e.lessThanOrEqualTo=_e.lte=function(e){return this.cmp(e)<1};_e.logarithm=_e.log=function(e){var r,n,i,o,a,c,u,l,p=this,f=p.constructor,g=f.precision,x=f.rounding,b=5;if(e==null)e=new f(10),r=!0;else{if(e=new f(e),n=e.d,e.s<0||!n||!n[0]||e.eq(1))return new f(NaN);r=e.eq(10)}if(n=p.d,p.s<0||!n||!n[0]||p.eq(1))return new f(n&&!n[0]?-1/0:p.s!=1?NaN:n?0:1/0);if(r)if(n.length>1)a=!0;else{for(o=n[0];o%10===0;)o/=10;a=o!==1}if(qt=!1,u=g+b,c=_y(p,u),i=r?NW(f,u+10):_y(e,u),l=Hn(c,i,u,1),t6(l.d,o=g,x))do if(u+=10,c=_y(p,u),i=r?NW(f,u+10):_y(e,u),l=Hn(c,i,u,1),!a){+ha(l.d).slice(o+1,o+15)+1==1e14&&(l=bt(l,g+1,0));break}while(t6(l.d,o+=10,x));return qt=!0,bt(l,g,x)};_e.minus=_e.sub=function(e){var r,n,i,o,a,c,u,l,p,f,g,x,b=this,v=b.constructor;if(e=new v(e),!b.d||!e.d)return!b.s||!e.s?e=new v(NaN):b.d?e.s=-e.s:e=new v(e.d||b.s!==e.s?b:NaN),e;if(b.s!=e.s)return e.s=-e.s,b.plus(e);if(p=b.d,x=e.d,u=v.precision,l=v.rounding,!p[0]||!x[0]){if(x[0])e.s=-e.s;else if(p[0])e=new v(b);else return new v(l===3?-0:0);return qt?bt(e,u,l):e}if(n=Ga(e.e/At),f=Ga(b.e/At),p=p.slice(),a=f-n,a){for(g=a<0,g?(r=p,a=-a,c=x.length):(r=x,n=f,c=p.length),i=Math.max(Math.ceil(u/At),c)+2,a>i&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for(i=p.length,c=x.length,g=i<c,g&&(c=i),i=0;i<c;i++)if(p[i]!=x[i]){g=p[i]<x[i];break}a=0}for(g&&(r=p,p=x,x=r,e.s=-e.s),c=p.length,i=x.length-c;i>0;--i)p[c++]=0;for(i=x.length;i>a;){if(p[--i]<x[i]){for(o=i;o&&p[--o]===0;)p[o]=Tf-1;--p[o],p[i]+=Tf}p[i]-=x[i]}for(;p[--c]===0;)p.pop();for(;p[0]===0;p.shift())--n;return p[0]?(e.d=p,e.e=WW(p,n),qt?bt(e,u,l):e):new v(l===3?-0:0)};_e.modulo=_e.mod=function(e){var r,n=this,i=n.constructor;return e=new i(e),!n.d||!e.s||e.d&&!e.d[0]?new i(NaN):!e.d||n.d&&!n.d[0]?bt(new i(n),i.precision,i.rounding):(qt=!1,i.modulo==9?(r=Hn(n,e.abs(),0,3,1),r.s*=e.s):r=Hn(n,e,0,i.modulo,1),r=r.times(e),qt=!0,n.minus(r))};_e.naturalExponential=_e.exp=function(){return Gve(this)};_e.naturalLogarithm=_e.ln=function(){return _y(this)};_e.negated=_e.neg=function(){var e=new this.constructor(this);return e.s=-e.s,bt(e)};_e.plus=_e.add=function(e){var r,n,i,o,a,c,u,l,p,f,g=this,x=g.constructor;if(e=new x(e),!g.d||!e.d)return!g.s||!e.s?e=new x(NaN):g.d||(e=new x(e.d||g.s===e.s?g:NaN)),e;if(g.s!=e.s)return e.s=-e.s,g.minus(e);if(p=g.d,f=e.d,u=x.precision,l=x.rounding,!p[0]||!f[0])return f[0]||(e=new x(g)),qt?bt(e,u,l):e;if(a=Ga(g.e/At),i=Ga(e.e/At),p=p.slice(),o=a-i,o){for(o<0?(n=p,o=-o,c=f.length):(n=f,i=a,c=p.length),a=Math.ceil(u/At),c=a>c?a+1:c+1,o>c&&(o=c,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for(c=p.length,o=f.length,c-o<0&&(o=c,n=f,f=p,p=n),r=0;o;)r=(p[--o]=p[o]+f[o]+r)/Tf|0,p[o]%=Tf;for(r&&(p.unshift(r),++i),c=p.length;p[--c]==0;)p.pop();return e.d=p,e.e=WW(p,i),qt?bt(e,u,l):e};_e.precision=_e.sd=function(e){var r,n=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Dy+e);return n.d?(r=wFt(n.d),e&&n.e+1>r&&(r=n.e+1)):r=NaN,r};_e.round=function(){var e=this,r=e.constructor;return bt(new r(e),e.e+1,r.rounding)};_e.sine=_e.sin=function(){var e,r,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(e=i.precision,r=i.rounding,i.precision=e+Math.max(n.e,n.sd())+At,i.rounding=1,n=NKr(i,DFt(i,n)),i.precision=e,i.rounding=r,bt(og>2?n.neg():n,e,r,!0)):new i(NaN)};_e.squareRoot=_e.sqrt=function(){var e,r,n,i,o,a,c=this,u=c.d,l=c.e,p=c.s,f=c.constructor;if(p!==1||!u||!u[0])return new f(!p||p<0&&(!u||u[0])?NaN:u?c:1/0);for(qt=!1,p=Math.sqrt(+c),p==0||p==1/0?(r=ha(u),(r.length+l)%2==0&&(r+="0"),p=Math.sqrt(r),l=Ga((l+1)/2)-(l<0||l%2),p==1/0?r="5e"+l:(r=p.toExponential(),r=r.slice(0,r.indexOf("e")+1)+l),i=new f(r)):i=new f(p.toString()),n=(l=f.precision)+3;;)if(a=i,i=a.plus(Hn(c,a,n+2,1)).times(.5),ha(a.d).slice(0,n)===(r=ha(i.d)).slice(0,n))if(r=r.slice(n-3,n+1),r=="9999"||!o&&r=="4999"){if(!o&&(bt(a,l+1,0),a.times(a).eq(c))){i=a;break}n+=4,o=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&(bt(i,l+1,1),e=!i.times(i).eq(c));break}return qt=!0,bt(i,l,f.rounding,e)};_e.tangent=_e.tan=function(){var e,r,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(e=i.precision,r=i.rounding,i.precision=e+10,i.rounding=1,n=n.sin(),n.s=1,n=Hn(n,new i(1).minus(n.times(n)).sqrt(),e+10,0),i.precision=e,i.rounding=r,bt(og==2||og==4?n.neg():n,e,r,!0)):new i(NaN)};_e.times=_e.mul=function(e){var r,n,i,o,a,c,u,l,p,f=this,g=f.constructor,x=f.d,b=(e=new g(e)).d;if(e.s*=f.s,!x||!x[0]||!b||!b[0])return new g(!e.s||x&&!x[0]&&!b||b&&!b[0]&&!x?NaN:!x||!b?e.s/0:e.s*0);for(n=Ga(f.e/At)+Ga(e.e/At),l=x.length,p=b.length,l<p&&(a=x,x=b,b=a,c=l,l=p,p=c),a=[],c=l+p,i=c;i--;)a.push(0);for(i=p;--i>=0;){for(r=0,o=l+i;o>i;)u=a[o]+b[i]*x[o-i-1]+r,a[o--]=u%Tf|0,r=u/Tf|0;a[o]=(a[o]+r)%Tf|0}for(;!a[--c];)a.pop();return r?++n:a.shift(),e.d=a,e.e=WW(a,n),qt?bt(e,g.precision,g.rounding):e};_e.toBinary=function(e,r){return uEe(this,2,e,r)};_e.toDecimalPlaces=_e.toDP=function(e,r){var n=this,i=n.constructor;return n=new i(n),e===void 0?n:(iu(e,0,Ay),r===void 0?r=i.rounding:iu(r,0,8),bt(n,e+n.e+1,r))};_e.toExponential=function(e,r){var n,i=this,o=i.constructor;return e===void 0?n=ah(i,!0):(iu(e,0,Ay),r===void 0?r=o.rounding:iu(r,0,8),i=bt(new o(i),e+1,r),n=ah(i,!0,e+1)),i.isNeg()&&!i.isZero()?"-"+n:n};_e.toFixed=function(e,r){var n,i,o=this,a=o.constructor;return e===void 0?n=ah(o):(iu(e,0,Ay),r===void 0?r=a.rounding:iu(r,0,8),i=bt(new a(o),e+o.e+1,r),n=ah(i,!1,e+i.e+1)),o.isNeg()&&!o.isZero()?"-"+n:n};_e.toFraction=function(e){var r,n,i,o,a,c,u,l,p,f,g,x,b=this,v=b.d,S=b.constructor;if(!v)return new S(b);if(p=n=new S(1),i=l=new S(0),r=new S(i),a=r.e=wFt(v)-b.e-1,c=a%At,r.d[0]=us(10,c<0?At+c:c),e==null)e=a>0?r:p;else{if(u=new S(e),!u.isInt()||u.lt(p))throw Error(Dy+u);e=u.gt(r)?a>0?r:p:u}for(qt=!1,u=new S(ha(v)),f=S.precision,S.precision=a=v.length*At*2;g=Hn(u,r,0,1,1),o=n.plus(g.times(i)),o.cmp(e)!=1;)n=i,i=o,o=p,p=l.plus(g.times(o)),l=o,o=r,r=u.minus(g.times(o)),u=o;return o=Hn(e.minus(n),i,0,1,1),l=l.plus(o.times(p)),n=n.plus(o.times(i)),l.s=p.s=b.s,x=Hn(p,i,a,1).minus(b).abs().cmp(Hn(l,n,a,1).minus(b).abs())<1?[p,i]:[l,n],S.precision=f,qt=!0,x};_e.toHexadecimal=_e.toHex=function(e,r){return uEe(this,16,e,r)};_e.toNearest=function(e,r){var n=this,i=n.constructor;if(n=new i(n),e==null){if(!n.d)return n;e=new i(1),r=i.rounding}else{if(e=new i(e),r===void 0?r=i.rounding:iu(r,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(qt=!1,n=Hn(n,e,0,r,1).times(e),qt=!0,bt(n)):(e.s=n.s,n=e),n};_e.toNumber=function(){return+this};_e.toOctal=function(e,r){return uEe(this,8,e,r)};_e.toPower=_e.pow=function(e){var r,n,i,o,a,c,u=this,l=u.constructor,p=+(e=new l(e));if(!u.d||!e.d||!u.d[0]||!e.d[0])return new l(us(+u,p));if(u=new l(u),u.eq(1))return u;if(i=l.precision,a=l.rounding,e.eq(1))return bt(u,i,a);if(r=Ga(e.e/At),r>=e.d.length-1&&(n=p<0?-p:p)<=FKr)return o=SFt(l,u,n,i),e.s<0?new l(1).div(o):bt(o,i,a);if(c=u.s,c<0){if(r<e.d.length-1)return new l(NaN);if(e.d[r]&1||(c=1),u.e==0&&u.d[0]==1&&u.d.length==1)return u.s=c,u}return n=us(+u,p),r=n==0||!isFinite(n)?Ga(p*(Math.log("0."+ha(u.d))/Math.LN10+u.e+1)):new l(n+"").e,r>l.maxE+1||r<l.minE-1?new l(r>0?c/0:0):(qt=!1,l.rounding=u.s=1,n=Math.min(12,(r+"").length),o=Gve(e.times(_y(u,i+n)),i),o.d&&(o=bt(o,i+5,1),t6(o.d,i,a)&&(r=i+10,o=bt(Gve(e.times(_y(u,r+n)),r),r+5,1),+ha(o.d).slice(i+1,i+15)+1==1e14&&(o=bt(o,i+1,0)))),o.s=c,qt=!0,l.rounding=a,bt(o,i,a))};_e.toPrecision=function(e,r){var n,i=this,o=i.constructor;return e===void 0?n=ah(i,i.e<=o.toExpNeg||i.e>=o.toExpPos):(iu(e,1,Ay),r===void 0?r=o.rounding:iu(r,0,8),i=bt(new o(i),e,r),n=ah(i,e<=i.e||i.e<=o.toExpNeg,e)),i.isNeg()&&!i.isZero()?"-"+n:n};_e.toSignificantDigits=_e.toSD=function(e,r){var n=this,i=n.constructor;return e===void 0?(e=i.precision,r=i.rounding):(iu(e,1,Ay),r===void 0?r=i.rounding:iu(r,0,8)),bt(new i(n),e,r)};_e.toString=function(){var e=this,r=e.constructor,n=ah(e,e.e<=r.toExpNeg||e.e>=r.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n};_e.truncated=_e.trunc=function(){return bt(new this.constructor(this),this.e+1,1)};_e.valueOf=_e.toJSON=function(){var e=this,r=e.constructor,n=ah(e,e.e<=r.toExpNeg||e.e>=r.toExpPos);return e.isNeg()?"-"+n:n};function ha(e){var r,n,i,o=e.length-1,a="",c=e[0];if(o>0){for(a+=c,r=1;r<o;r++)i=e[r]+"",n=At-i.length,n&&(a+=Sy(n)),a+=i;c=e[r],i=c+"",n=At-i.length,n&&(a+=Sy(n))}else if(c===0)return"0";for(;c%10===0;)c/=10;return a+c}function iu(e,r,n){if(e!==~~e||e<r||e>n)throw Error(Dy+e)}function t6(e,r,n,i){var o,a,c,u;for(a=e[0];a>=10;a/=10)--r;return--r<0?(r+=At,o=0):(o=Math.ceil((r+1)/At),r%=At),a=us(10,At-r),u=e[o]%a|0,i==null?r<3?(r==0?u=u/100|0:r==1&&(u=u/10|0),c=n<4&&u==99999||n>3&&u==49999||u==5e4||u==0):c=(n<4&&u+1==a||n>3&&u+1==a/2)&&(e[o+1]/a/100|0)==us(10,r-2)-1||(u==a/2||u==0)&&(e[o+1]/a/100|0)==0:r<4?(r==0?u=u/1e3|0:r==1?u=u/100|0:r==2&&(u=u/10|0),c=(i||n<4)&&u==9999||!i&&n>3&&u==4999):c=((i||n<4)&&u+1==a||!i&&n>3&&u+1==a/2)&&(e[o+1]/a/1e3|0)==us(10,r-3)-1,c}function AW(e,r,n){for(var i,o=[0],a,c=0,u=e.length;c<u;){for(a=o.length;a--;)o[a]*=r;for(o[0]+=Uve.indexOf(e.charAt(c++)),i=0;i<o.length;i++)o[i]>n-1&&(o[i+1]===void 0&&(o[i+1]=0),o[i+1]+=o[i]/n|0,o[i]%=n)}return o.reverse()}function kKr(e,r){var n,i,o;if(r.isZero())return r;i=r.d.length,i<32?(n=Math.ceil(i/3),o=(1/HW(4,n)).toString()):(n=16,o="2.3283064365386962890625e-10"),e.precision+=n,r=TD(e,1,r.times(o),new e(1));for(var a=n;a--;){var c=r.times(r);r=c.times(c).minus(c).times(8).plus(1)}return e.precision-=n,r}var Hn=function(){function e(i,o,a){var c,u=0,l=i.length;for(i=i.slice();l--;)c=i[l]*o+u,i[l]=c%a|0,u=c/a|0;return u&&i.unshift(u),i}function r(i,o,a,c){var u,l;if(a!=c)l=a>c?1:-1;else for(u=l=0;u<a;u++)if(i[u]!=o[u]){l=i[u]>o[u]?1:-1;break}return l}function n(i,o,a,c){for(var u=0;a--;)i[a]-=u,u=i[a]<o[a]?1:0,i[a]=u*c+i[a]-o[a];for(;!i[0]&&i.length>1;)i.shift()}return function(i,o,a,c,u,l){var p,f,g,x,b,v,S,T,P,R,M,L,N,V,W,z,q,X,G,oe,ce=i.constructor,ge=i.s==o.s?1:-1,Q=i.d,Z=o.d;if(!Q||!Q[0]||!Z||!Z[0])return new ce(!i.s||!o.s||(Q?Z&&Q[0]==Z[0]:!Z)?NaN:Q&&Q[0]==0||!Z?ge*0:ge/0);for(l?(b=1,f=i.e-o.e):(l=Tf,b=At,f=Ga(i.e/b)-Ga(o.e/b)),G=Z.length,q=Q.length,P=new ce(ge),R=P.d=[],g=0;Z[g]==(Q[g]||0);g++);if(Z[g]>(Q[g]||0)&&f--,a==null?(V=a=ce.precision,c=ce.rounding):u?V=a+(i.e-o.e)+1:V=a,V<0)R.push(1),v=!0;else{if(V=V/b+2|0,g=0,G==1){for(x=0,Z=Z[0],V++;(g<q||x)&&V--;g++)W=x*l+(Q[g]||0),R[g]=W/Z|0,x=W%Z|0;v=x||g<q}else{for(x=l/(Z[0]+1)|0,x>1&&(Z=e(Z,x,l),Q=e(Q,x,l),G=Z.length,q=Q.length),z=G,M=Q.slice(0,G),L=M.length;L<G;)M[L++]=0;oe=Z.slice(),oe.unshift(0),X=Z[0],Z[1]>=l/2&&++X;do x=0,p=r(Z,M,G,L),p<0?(N=M[0],G!=L&&(N=N*l+(M[1]||0)),x=N/X|0,x>1?(x>=l&&(x=l-1),S=e(Z,x,l),T=S.length,L=M.length,p=r(S,M,T,L),p==1&&(x--,n(S,G<T?oe:Z,T,l))):(x==0&&(p=x=1),S=Z.slice()),T=S.length,T<L&&S.unshift(0),n(M,S,L,l),p==-1&&(L=M.length,p=r(Z,M,G,L),p<1&&(x++,n(M,G<L?oe:Z,L,l))),L=M.length):p===0&&(x++,M=[0]),R[g++]=x,p&&M[0]?M[L++]=Q[z]||0:(M=[Q[z]],L=1);while((z++<q||M[0]!==void 0)&&V--);v=M[0]!==void 0}R[0]||R.shift()}if(b==1)P.e=f,xFt=v;else{for(g=1,x=R[0];x>=10;x/=10)g++;P.e=g+f*b-1,bt(P,u?a+P.e+1:a,c,v)}return P}}();function bt(e,r,n,i){var o,a,c,u,l,p,f,g,x,b=e.constructor;e:if(r!=null){if(g=e.d,!g)return e;for(o=1,u=g[0];u>=10;u/=10)o++;if(a=r-o,a<0)a+=At,c=r,f=g[x=0],l=f/us(10,o-c-1)%10|0;else if(x=Math.ceil((a+1)/At),u=g.length,x>=u)if(i){for(;u++<=x;)g.push(0);f=l=0,o=1,a%=At,c=a-At+1}else break e;else{for(f=u=g[x],o=1;u>=10;u/=10)o++;a%=At,c=a-At+o,l=c<0?0:f/us(10,o-c-1)%10|0}if(i=i||r<0||g[x+1]!==void 0||(c<0?f:f%us(10,o-c-1)),p=n<4?(l||i)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||i||n==6&&(a>0?c>0?f/us(10,o-c):0:g[x-1])%10&1||n==(e.s<0?8:7)),r<1||!g[0])return g.length=0,p?(r-=e.e+1,g[0]=us(10,(At-r%At)%At),e.e=-r||0):g[0]=e.e=0,e;if(a==0?(g.length=x,u=1,x--):(g.length=x+1,u=us(10,At-a),g[x]=c>0?(f/us(10,o-c)%us(10,c)|0)*u:0),p)for(;;)if(x==0){for(a=1,c=g[0];c>=10;c/=10)a++;for(c=g[0]+=u,u=1;c>=10;c/=10)u++;a!=u&&(e.e++,g[0]==Tf&&(g[0]=1));break}else{if(g[x]+=u,g[x]!=Tf)break;g[x--]=0,u=1}for(a=g.length;g[--a]===0;)g.pop()}return qt&&(e.e>b.maxE?(e.d=null,e.e=NaN):e.e<b.minE&&(e.e=0,e.d=[0])),e}function ah(e,r,n){if(!e.isFinite())return CFt(e);var i,o=e.e,a=ha(e.d),c=a.length;return r?(n&&(i=n-c)>0?a=a.charAt(0)+"."+a.slice(1)+Sy(i):c>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(e.e<0?"e":"e+")+e.e):o<0?(a="0."+Sy(-o-1)+a,n&&(i=n-c)>0&&(a+=Sy(i))):o>=c?(a+=Sy(o+1-c),n&&(i=n-o-1)>0&&(a=a+"."+Sy(i))):((i=o+1)<c&&(a=a.slice(0,i)+"."+a.slice(i)),n&&(i=n-c)>0&&(o+1===c&&(a+="."),a+=Sy(i))),a}function WW(e,r){var n=e[0];for(r*=At;n>=10;n/=10)r++;return r}function NW(e,r,n){if(r>RKr)throw qt=!0,n&&(e.precision=n),Error(yFt);return bt(new e(kW),r,1,!0)}function oh(e,r,n){if(r>Hve)throw Error(yFt);return bt(new e(MW),r,n,!0)}function wFt(e){var r=e.length-1,n=r*At+1;if(r=e[r],r){for(;r%10==0;r/=10)n--;for(r=e[0];r>=10;r/=10)n++}return n}function Sy(e){for(var r="";e--;)r+="0";return r}function SFt(e,r,n,i){var o,a=new e(1),c=Math.ceil(i/At+4);for(qt=!1;;){if(n%2&&(a=a.times(r),bPt(a.d,c)&&(o=!0)),n=Ga(n/2),n===0){n=a.d.length-1,o&&a.d[n]===0&&++a.d[n];break}r=r.times(r),bPt(r.d,c)}return qt=!0,a}function yPt(e){return e.d[e.d.length-1]&1}function _Ft(e,r,n){for(var i,o,a=new e(r[0]),c=0;++c<r.length;){if(o=new e(r[c]),!o.s){a=o;break}i=a.cmp(o),(i===n||i===0&&a.s===n)&&(a=o)}return a}function Gve(e,r){var n,i,o,a,c,u,l,p=0,f=0,g=0,x=e.constructor,b=x.rounding,v=x.precision;if(!e.d||!e.d[0]||e.e>17)return new x(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(r==null?(qt=!1,l=v):l=r,u=new x(.03125);e.e>-2;)e=e.times(u),g+=5;for(i=Math.log(us(2,g))/Math.LN10*2+5|0,l+=i,n=a=c=new x(1),x.precision=l;;){if(a=bt(a.times(e),l,1),n=n.times(++f),u=c.plus(Hn(a,n,l,1)),ha(u.d).slice(0,l)===ha(c.d).slice(0,l)){for(o=g;o--;)c=bt(c.times(c),l,1);if(r==null)if(p<3&&t6(c.d,l-i,b,p))x.precision=l+=10,n=a=u=new x(1),f=0,p++;else return bt(c,x.precision=v,b,qt=!0);else return x.precision=v,c}c=u}}function _y(e,r){var n,i,o,a,c,u,l,p,f,g,x,b=1,v=10,S=e,T=S.d,P=S.constructor,R=P.rounding,M=P.precision;if(S.s<0||!T||!T[0]||!S.e&&T[0]==1&&T.length==1)return new P(T&&!T[0]?-1/0:S.s!=1?NaN:T?0:S);if(r==null?(qt=!1,f=M):f=r,P.precision=f+=v,n=ha(T),i=n.charAt(0),Math.abs(a=S.e)<15e14){for(;i<7&&i!=1||i==1&&n.charAt(1)>3;)S=S.times(e),n=ha(S.d),i=n.charAt(0),b++;a=S.e,i>1?(S=new P("0."+n),a++):S=new P(i+"."+n.slice(1))}else return p=NW(P,f+2,M).times(a+""),S=_y(new P(i+"."+n.slice(1)),f-v).plus(p),P.precision=M,r==null?bt(S,M,R,qt=!0):S;for(g=S,l=c=S=Hn(S.minus(1),S.plus(1),f,1),x=bt(S.times(S),f,1),o=3;;){if(c=bt(c.times(x),f,1),p=l.plus(Hn(c,new P(o),f,1)),ha(p.d).slice(0,f)===ha(l.d).slice(0,f))if(l=l.times(2),a!==0&&(l=l.plus(NW(P,f+2,M).times(a+""))),l=Hn(l,new P(b),f,1),r==null)if(t6(l.d,f-v,R,u))P.precision=f+=v,p=c=S=Hn(g.minus(1),g.plus(1),f,1),x=bt(S.times(S),f,1),o=u=1;else return bt(l,P.precision=M,R,qt=!0);else return P.precision=M,l;l=p,o+=2}}function CFt(e){return String(e.s*e.s/0)}function OW(e,r){var n,i,o;for((n=r.indexOf("."))>-1&&(r=r.replace(".","")),(i=r.search(/e/i))>0?(n<0&&(n=i),n+=+r.slice(i+1),r=r.substring(0,i)):n<0&&(n=r.length),i=0;r.charCodeAt(i)===48;i++);for(o=r.length;r.charCodeAt(o-1)===48;--o);if(r=r.slice(i,o),r){if(o-=i,e.e=n=n-i-1,e.d=[],i=(n+1)%At,n<0&&(i+=At),i<o){for(i&&e.d.push(+r.slice(0,i)),o-=At;i<o;)e.d.push(+r.slice(i,i+=At));r=r.slice(i),i=At-r.length}else i-=o;for(;i--;)r+="0";e.d.push(+r),qt&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function MKr(e,r){var n,i,o,a,c,u,l,p,f;if(r.indexOf("_")>-1){if(r=r.replace(/(\d)_(?=\d)/g,"$1"),EFt.test(r))return OW(e,r)}else if(r==="Infinity"||r==="NaN")return+r||(e.s=NaN),e.e=NaN,e.d=null,e;if(IKr.test(r))n=16,r=r.toLowerCase();else if(OKr.test(r))n=2;else if(PKr.test(r))n=8;else throw Error(Dy+r);for(a=r.search(/p/i),a>0?(l=+r.slice(a+1),r=r.substring(2,a)):r=r.slice(2),a=r.indexOf("."),c=a>=0,i=e.constructor,c&&(r=r.replace(".",""),u=r.length,a=u-a,o=SFt(i,new i(n),a,a*2)),p=AW(r,n,Tf),f=p.length-1,a=f;p[a]===0;--a)p.pop();return a<0?new i(e.s*0):(e.e=WW(p,f),e.d=p,qt=!1,c&&(e=Hn(e,o,u*4)),l&&(e=e.times(Math.abs(l)<54?us(2,l):ID.pow(2,l))),qt=!0,e)}function NKr(e,r){var n,i=r.d.length;if(i<3)return r.isZero()?r:TD(e,2,r,r);n=1.4*Math.sqrt(i),n=n>16?16:n|0,r=r.times(1/HW(5,n)),r=TD(e,2,r,r);for(var o,a=new e(5),c=new e(16),u=new e(20);n--;)o=r.times(r),r=r.times(a.plus(o.times(c.times(o).minus(u))));return r}function TD(e,r,n,i,o){var a,c,u,l,p=1,f=e.precision,g=Math.ceil(f/At);for(qt=!1,l=n.times(n),u=new e(i);;){if(c=Hn(u.times(l),new e(r++*r++),f,1),u=o?i.plus(c):i.minus(c),i=Hn(c.times(l),new e(r++*r++),f,1),c=u.plus(i),c.d[g]!==void 0){for(a=g;c.d[a]===u.d[a]&&a--;);if(a==-1)break}a=u,u=i,i=c,c=a,p++}return qt=!0,c.d.length=g+1,c}function HW(e,r){for(var n=e;--r;)n*=e;return n}function DFt(e,r){var n,i=r.s<0,o=oh(e,e.precision,1),a=o.times(.5);if(r=r.abs(),r.lte(a))return og=i?4:1,r;if(n=r.divToInt(o),n.isZero())og=i?3:2;else{if(r=r.minus(n.times(o)),r.lte(a))return og=yPt(n)?i?2:3:i?4:1,r;og=yPt(n)?i?1:4:i?3:2}return r.minus(o).abs()}function uEe(e,r,n,i){var o,a,c,u,l,p,f,g,x,b=e.constructor,v=n!==void 0;if(v?(iu(n,1,Ay),i===void 0?i=b.rounding:iu(i,0,8)):(n=b.precision,i=b.rounding),!e.isFinite())f=CFt(e);else{for(f=ah(e),c=f.indexOf("."),v?(o=2,r==16?n=n*4-3:r==8&&(n=n*3-2)):o=r,c>=0&&(f=f.replace(".",""),x=new b(1),x.e=f.length-c,x.d=AW(ah(x),10,o),x.e=x.d.length),g=AW(f,10,o),a=l=g.length;g[--l]==0;)g.pop();if(!g[0])f=v?"0p+0":"0";else{if(c<0?a--:(e=new b(e),e.d=g,e.e=a,e=Hn(e,x,n,i,0,o),g=e.d,a=e.e,p=xFt),c=g[n],u=o/2,p=p||g[n+1]!==void 0,p=i<4?(c!==void 0||p)&&(i===0||i===(e.s<0?3:2)):c>u||c===u&&(i===4||p||i===6&&g[n-1]&1||i===(e.s<0?8:7)),g.length=n,p)for(;++g[--n]>o-1;)g[n]=0,n||(++a,g.unshift(1));for(l=g.length;!g[l-1];--l);for(c=0,f="";c<l;c++)f+=Uve.charAt(g[c]);if(v){if(l>1)if(r==16||r==8){for(c=r==16?4:3,--l;l%c;l++)f+="0";for(g=AW(f,o,r),l=g.length;!g[l-1];--l);for(c=1,f="1.";c<l;c++)f+=Uve.charAt(g[c])}else f=f.charAt(0)+"."+f.slice(1);f=f+(a<0?"p":"p+")+a}else if(a<0){for(;++a;)f="0"+f;f="0."+f}else if(++a>l)for(a-=l;a--;)f+="0";else a<l&&(f=f.slice(0,a)+"."+f.slice(a))}f=(r==16?"0x":r==2?"0b":r==8?"0o":"")+f}return e.s<0?"-"+f:f}function bPt(e,r){if(e.length>r)return e.length=r,!0}function LKr(e){return new this(e).abs()}function $Kr(e){return new this(e).acos()}function BKr(e){return new this(e).acosh()}function qKr(e,r){return new this(e).plus(r)}function jKr(e){return new this(e).asin()}function UKr(e){return new this(e).asinh()}function WKr(e){return new this(e).atan()}function HKr(e){return new this(e).atanh()}function GKr(e,r){e=new this(e),r=new this(r);var n,i=this.precision,o=this.rounding,a=i+4;return!e.s||!r.s?n=new this(NaN):!e.d&&!r.d?(n=oh(this,a,1).times(r.s>0?.25:.75),n.s=e.s):!r.d||e.isZero()?(n=r.s<0?oh(this,i,o):new this(0),n.s=e.s):!e.d||r.isZero()?(n=oh(this,a,1).times(.5),n.s=e.s):r.s<0?(this.precision=a,this.rounding=1,n=this.atan(Hn(e,r,a,1)),r=oh(this,a,1),this.precision=i,this.rounding=o,n=e.s<0?n.minus(r):n.plus(r)):n=this.atan(Hn(e,r,a,1)),n}function zKr(e){return new this(e).cbrt()}function VKr(e){return bt(e=new this(e),e.e+1,2)}function KKr(e,r,n){return new this(e).clamp(r,n)}function YKr(e){if(!e||typeof e!="object")throw Error(UW+"Object expected");var r,n,i,o=e.defaults===!0,a=["precision",1,Ay,"rounding",0,8,"toExpNeg",-CD,0,"toExpPos",0,CD,"maxE",0,CD,"minE",-CD,0,"modulo",0,9];for(r=0;r<a.length;r+=3)if(n=a[r],o&&(this[n]=Wve[n]),(i=e[n])!==void 0)if(Ga(i)===i&&i>=a[r+1]&&i<=a[r+2])this[n]=i;else throw Error(Dy+n+": "+i);if(n="crypto",o&&(this[n]=Wve[n]),(i=e[n])!==void 0)if(i===!0||i===!1||i===0||i===1)if(i)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[n]=!0;else throw Error(bFt);else this[n]=!1;else throw Error(Dy+n+": "+i);return this}function JKr(e){return new this(e).cos()}function QKr(e){return new this(e).cosh()}function TFt(e){var r,n,i;function o(a){var c,u,l,p=this;if(!(p instanceof o))return new o(a);if(p.constructor=o,vPt(a)){p.s=a.s,qt?!a.d||a.e>o.maxE?(p.e=NaN,p.d=null):a.e<o.minE?(p.e=0,p.d=[0]):(p.e=a.e,p.d=a.d.slice()):(p.e=a.e,p.d=a.d?a.d.slice():a.d);return}if(l=typeof a,l==="number"){if(a===0){p.s=1/a<0?-1:1,p.e=0,p.d=[0];return}if(a<0?(a=-a,p.s=-1):p.s=1,a===~~a&&a<1e7){for(c=0,u=a;u>=10;u/=10)c++;qt?c>o.maxE?(p.e=NaN,p.d=null):c<o.minE?(p.e=0,p.d=[0]):(p.e=c,p.d=[a]):(p.e=c,p.d=[a]);return}if(a*0!==0){a||(p.s=NaN),p.e=NaN,p.d=null;return}return OW(p,a.toString())}if(l==="string")return(u=a.charCodeAt(0))===45?(a=a.slice(1),p.s=-1):(u===43&&(a=a.slice(1)),p.s=1),EFt.test(a)?OW(p,a):MKr(p,a);if(l==="bigint")return a<0?(a=-a,p.s=-1):p.s=1,OW(p,a.toString());throw Error(Dy+a)}if(o.prototype=_e,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=YKr,o.clone=TFt,o.isDecimal=vPt,o.abs=LKr,o.acos=$Kr,o.acosh=BKr,o.add=qKr,o.asin=jKr,o.asinh=UKr,o.atan=WKr,o.atanh=HKr,o.atan2=GKr,o.cbrt=zKr,o.ceil=VKr,o.clamp=KKr,o.cos=JKr,o.cosh=QKr,o.div=ZKr,o.exp=XKr,o.floor=eYr,o.hypot=tYr,o.ln=rYr,o.log=nYr,o.log10=oYr,o.log2=iYr,o.max=sYr,o.min=aYr,o.mod=cYr,o.mul=uYr,o.pow=lYr,o.random=pYr,o.round=fYr,o.sign=dYr,o.sin=hYr,o.sinh=mYr,o.sqrt=gYr,o.sub=xYr,o.sum=yYr,o.tan=bYr,o.tanh=vYr,o.trunc=EYr,e===void 0&&(e={}),e&&e.defaults!==!0)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],r=0;r<i.length;)e.hasOwnProperty(n=i[r++])||(e[n]=this[n]);return o.config(e),o}function ZKr(e,r){return new this(e).div(r)}function XKr(e){return new this(e).exp()}function eYr(e){return bt(e=new this(e),e.e+1,3)}function tYr(){var e,r,n=new this(0);for(qt=!1,e=0;e<arguments.length;)if(r=new this(arguments[e++]),r.d)n.d&&(n=n.plus(r.times(r)));else{if(r.s)return qt=!0,new this(1/0);n=r}return qt=!0,n.sqrt()}function vPt(e){return e instanceof ID||e&&e.toStringTag===vFt||!1}function rYr(e){return new this(e).ln()}function nYr(e,r){return new this(e).log(r)}function iYr(e){return new this(e).log(2)}function oYr(e){return new this(e).log(10)}function sYr(){return _Ft(this,arguments,-1)}function aYr(){return _Ft(this,arguments,1)}function cYr(e,r){return new this(e).mod(r)}function uYr(e,r){return new this(e).mul(r)}function lYr(e,r){return new this(e).pow(r)}function pYr(e){var r,n,i,o,a=0,c=new this(1),u=[];if(e===void 0?e=this.precision:iu(e,1,Ay),i=Math.ceil(e/At),this.crypto)if(crypto.getRandomValues)for(r=crypto.getRandomValues(new Uint32Array(i));a<i;)o=r[a],o>=429e7?r[a]=crypto.getRandomValues(new Uint32Array(1))[0]:u[a++]=o%1e7;else if(crypto.randomBytes){for(r=crypto.randomBytes(i*=4);a<i;)o=r[a]+(r[a+1]<<8)+(r[a+2]<<16)+((r[a+3]&127)<<24),o>=214e7?crypto.randomBytes(4).copy(r,a):(u.push(o%1e7),a+=4);a=i/4}else throw Error(bFt);else for(;a<i;)u[a++]=Math.random()*1e7|0;for(i=u[--a],e%=At,i&&e&&(o=us(10,At-e),u[a]=(i/o|0)*o);u[a]===0;a--)u.pop();if(a<0)n=0,u=[0];else{for(n=-1;u[0]===0;n-=At)u.shift();for(i=1,o=u[0];o>=10;o/=10)i++;i<At&&(n-=At-i)}return c.e=n,c.d=u,c}function fYr(e){return bt(e=new this(e),e.e+1,this.rounding)}function dYr(e){return e=new this(e),e.d?e.d[0]?e.s:0*e.s:e.s||NaN}function hYr(e){return new this(e).sin()}function mYr(e){return new this(e).sinh()}function gYr(e){return new this(e).sqrt()}function xYr(e,r){return new this(e).sub(r)}function yYr(){var e=0,r=arguments,n=new this(r[e]);for(qt=!1;n.s&&++e<r.length;)n=n.plus(r[e]);return qt=!0,bt(n,this.precision,this.rounding)}function bYr(e){return new this(e).tan()}function vYr(e){return new this(e).tanh()}function EYr(e){return bt(e=new this(e),e.e+1,1)}_e[Symbol.for("nodejs.util.inspect.custom")]=_e.toString;_e[Symbol.toStringTag]="Decimal";var ID=_e.constructor=TFt(Wve);kW=new ID(kW);MW=new ID(MW);var o6=ID;function LW(e){return e===null?e:Array.isArray(e)?e.map(LW):typeof e=="object"?wYr(e)?SYr(e):cEe(e,LW):e}function wYr(e){return e!==null&&typeof e=="object"&&typeof e.$type=="string"}function SYr({$type:e,value:r}){switch(e){case"BigInt":return BigInt(r);case"Bytes":{let{buffer:n,byteOffset:i,byteLength:o}=Cy.Buffer.from(r,"base64");return new Uint8Array(n,i,o)}case"DateTime":return new Date(r);case"Decimal":return new o6(r);case"Json":return JSON.parse(r);default:jW(r,"Unknown tagged value")}}de();ue();le();pe();fe();de();ue();le();pe();fe();function lEe(e){return e.substring(0,1).toLowerCase()+e.substring(1)}de();ue();le();pe();fe();function pEe(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function AFt(e){return e.toString()!=="Invalid Date"}de();ue();le();pe();fe();function fEe(e){return ID.isDecimal(e)?!0:e!==null&&typeof e=="object"&&typeof e.s=="number"&&typeof e.e=="number"&&typeof e.toFixed=="function"&&Array.isArray(e.d)}de();ue();le();pe();fe();de();ue();le();pe();fe();var Iyi=OD(zVr()),_Yr={red:aEe,gray:lKr,dim:uFt,bold:cFt,underline:oKr,highlightSource:e=>e.highlight()},CYr={red:e=>e,gray:e=>e,dim:e=>e,bold:e=>e,underline:e=>e,highlightSource:e=>e};function DYr({message:e,originalMethod:r,isPanic:n,callArguments:i}){return{functionName:`prisma.${r}()`,message:e,isPanic:n??!1,callArguments:i}}function TYr({functionName:e,location:r,message:n,isPanic:i,contextLines:o,callArguments:a},c){let u=[""],l=r?" in":":";if(i?(u.push(c.red(`Oops, an unknown error occurred! This is ${c.bold("on us")}, you did nothing wrong.`)),u.push(c.red(`It occurred in the ${c.bold(`\`${e}\``)} invocation${l}`))):u.push(c.red(`Invalid ${c.bold(`\`${e}\``)} invocation${l}`)),r&&u.push(c.underline(AYr(r))),o){u.push("");let p=[o.toString()];a&&(p.push(a),p.push(c.dim(")"))),u.push(p.join("")),a&&u.push("")}else u.push(""),a&&u.push(a),u.push("");return u.push(n),u.join(`
|
|
943
|
+
`).map(r=>r.trim()).join(" ")};uPt.O=function(e){return this.inspectOpts.colors=this.useColors,wW.inspect(e,this.inspectOpts)}});var Pve=C((fyi,Ive)=>{"use strict";typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Ive.exports=cPt():Ive.exports=lPt()});var HRt=C((Pyi,WRt)=>{"use strict";var IVr=Object.create,n6=Object.defineProperty,PVr=Object.getOwnPropertyDescriptor,FVr=Object.getOwnPropertyNames,RVr=Object.getPrototypeOf,kVr=Object.prototype.hasOwnProperty,MVr=(e,r,n)=>r in e?n6(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Ty=(e,r)=>()=>(e&&(r=e(e=0)),r),Tw=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),qW=(e,r)=>{for(var n in r)n6(e,n,{get:r[n],enumerable:!0})},JPt=(e,r,n,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of FVr(r))!kVr.call(e,o)&&o!==n&&n6(e,o,{get:()=>r[o],enumerable:!(i=PVr(r,o))||i.enumerable});return e},OD=(e,r,n)=>(n=e!=null?IVr(RVr(e)):{},JPt(r||!e||!e.__esModule?n6(n,"default",{value:e,enumerable:!0}):n,e)),NVr=e=>JPt(n6({},"__esModule",{value:!0}),e),ye=(e,r,n)=>MVr(e,typeof r!="symbol"?r+"":r,n),Ns,ue=Ty(()=>{"use strict";Ns={nextTick:(e,...r)=>{setTimeout(()=>{e(...r)},0)},env:{},version:"",cwd:()=>"/",stderr:{},argv:["/bin/node"]}}),LVr,le=Ty(()=>{"use strict";LVr=globalThis.performance??(()=>{let e=Date.now();return{now:()=>Date.now()-e}})()}),Fve,pe=Ty(()=>{"use strict";Fve=()=>{},Fve.prototype=Fve}),fe=Ty(()=>{"use strict"}),$Vr=Tw(e=>{"use strict";de(),ue(),le(),pe(),fe();var r=(A,F)=>()=>(F||A((F={exports:{}}).exports,F),F.exports),n=r(A=>{"use strict";A.byteLength=jr,A.toByteArray=er,A.fromByteArray=Bs;var F=[],$=[],te=typeof Uint8Array<"u"?Uint8Array:Array,se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(me=0,Se=se.length;me<Se;++me)F[me]=se[me],$[se.charCodeAt(me)]=me;var me,Se;$[45]=62,$[95]=63;function mt(Pt){var ir=Pt.length;if(ir%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Jr=Pt.indexOf("=");Jr===-1&&(Jr=ir);var Lo=Jr===ir?0:4-Jr%4;return[Jr,Lo]}function jr(Pt){var ir=mt(Pt),Jr=ir[0],Lo=ir[1];return(Jr+Lo)*3/4-Lo}function nr(Pt,ir,Jr){return(ir+Jr)*3/4-Jr}function er(Pt){var ir,Jr=mt(Pt),Lo=Jr[0],po=Jr[1],fo=new te(nr(Pt,Lo,po)),ga=0,cg=po>0?Lo-4:Lo,qs;for(qs=0;qs<cg;qs+=4)ir=$[Pt.charCodeAt(qs)]<<18|$[Pt.charCodeAt(qs+1)]<<12|$[Pt.charCodeAt(qs+2)]<<6|$[Pt.charCodeAt(qs+3)],fo[ga++]=ir>>16&255,fo[ga++]=ir>>8&255,fo[ga++]=ir&255;return po===2&&(ir=$[Pt.charCodeAt(qs)]<<2|$[Pt.charCodeAt(qs+1)]>>4,fo[ga++]=ir&255),po===1&&(ir=$[Pt.charCodeAt(qs)]<<10|$[Pt.charCodeAt(qs+1)]<<4|$[Pt.charCodeAt(qs+2)]>>2,fo[ga++]=ir>>8&255,fo[ga++]=ir&255),fo}function Yt(Pt){return F[Pt>>18&63]+F[Pt>>12&63]+F[Pt>>6&63]+F[Pt&63]}function $s(Pt,ir,Jr){for(var Lo,po=[],fo=ir;fo<Jr;fo+=3)Lo=(Pt[fo]<<16&16711680)+(Pt[fo+1]<<8&65280)+(Pt[fo+2]&255),po.push(Yt(Lo));return po.join("")}function Bs(Pt){for(var ir,Jr=Pt.length,Lo=Jr%3,po=[],fo=16383,ga=0,cg=Jr-Lo;ga<cg;ga+=fo)po.push($s(Pt,ga,ga+fo>cg?cg:ga+fo));return Lo===1?(ir=Pt[Jr-1],po.push(F[ir>>2]+F[ir<<4&63]+"==")):Lo===2&&(ir=(Pt[Jr-2]<<8)+Pt[Jr-1],po.push(F[ir>>10]+F[ir>>4&63]+F[ir<<2&63]+"=")),po.join("")}}),i=r(A=>{A.read=function(F,$,te,se,me){var Se,mt,jr=me*8-se-1,nr=(1<<jr)-1,er=nr>>1,Yt=-7,$s=te?me-1:0,Bs=te?-1:1,Pt=F[$+$s];for($s+=Bs,Se=Pt&(1<<-Yt)-1,Pt>>=-Yt,Yt+=jr;Yt>0;Se=Se*256+F[$+$s],$s+=Bs,Yt-=8);for(mt=Se&(1<<-Yt)-1,Se>>=-Yt,Yt+=se;Yt>0;mt=mt*256+F[$+$s],$s+=Bs,Yt-=8);if(Se===0)Se=1-er;else{if(Se===nr)return mt?NaN:(Pt?-1:1)*(1/0);mt=mt+Math.pow(2,se),Se=Se-er}return(Pt?-1:1)*mt*Math.pow(2,Se-se)},A.write=function(F,$,te,se,me,Se){var mt,jr,nr,er=Se*8-me-1,Yt=(1<<er)-1,$s=Yt>>1,Bs=me===23?Math.pow(2,-24)-Math.pow(2,-77):0,Pt=se?0:Se-1,ir=se?1:-1,Jr=$<0||$===0&&1/$<0?1:0;for($=Math.abs($),isNaN($)||$===1/0?(jr=isNaN($)?1:0,mt=Yt):(mt=Math.floor(Math.log($)/Math.LN2),$*(nr=Math.pow(2,-mt))<1&&(mt--,nr*=2),mt+$s>=1?$+=Bs/nr:$+=Bs*Math.pow(2,1-$s),$*nr>=2&&(mt++,nr/=2),mt+$s>=Yt?(jr=0,mt=Yt):mt+$s>=1?(jr=($*nr-1)*Math.pow(2,me),mt=mt+$s):(jr=$*Math.pow(2,$s-1)*Math.pow(2,me),mt=0));me>=8;F[te+Pt]=jr&255,Pt+=ir,jr/=256,me-=8);for(mt=mt<<me|jr,er+=me;er>0;F[te+Pt]=mt&255,Pt+=ir,mt/=256,er-=8);F[te+Pt-ir]|=Jr*128}}),o=n(),a=i(),c=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=f,e.SlowBuffer=N,e.INSPECT_MAX_BYTES=50;var u=2147483647;e.kMaxLength=u,f.TYPED_ARRAY_SUPPORT=l(),!f.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function l(){try{let A=new Uint8Array(1),F={foo:function(){return 42}};return Object.setPrototypeOf(F,Uint8Array.prototype),Object.setPrototypeOf(A,F),A.foo()===42}catch{return!1}}Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}});function p(A){if(A>u)throw new RangeError('The value "'+A+'" is invalid for option "size"');let F=new Uint8Array(A);return Object.setPrototypeOf(F,f.prototype),F}function f(A,F,$){if(typeof A=="number"){if(typeof F=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return v(A)}return g(A,F,$)}f.poolSize=8192;function g(A,F,$){if(typeof A=="string")return S(A,F);if(ArrayBuffer.isView(A))return P(A);if(A==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A);if(Va(A,ArrayBuffer)||A&&Va(A.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Va(A,SharedArrayBuffer)||A&&Va(A.buffer,SharedArrayBuffer)))return R(A,F,$);if(typeof A=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let te=A.valueOf&&A.valueOf();if(te!=null&&te!==A)return f.from(te,F,$);let se=M(A);if(se)return se;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof A[Symbol.toPrimitive]=="function")return f.from(A[Symbol.toPrimitive]("string"),F,$);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof A)}f.from=function(A,F,$){return g(A,F,$)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array);function x(A){if(typeof A!="number")throw new TypeError('"size" argument must be of type number');if(A<0)throw new RangeError('The value "'+A+'" is invalid for option "size"')}function b(A,F,$){return x(A),A<=0?p(A):F!==void 0?typeof $=="string"?p(A).fill(F,$):p(A).fill(F):p(A)}f.alloc=function(A,F,$){return b(A,F,$)};function v(A){return x(A),p(A<0?0:L(A)|0)}f.allocUnsafe=function(A){return v(A)},f.allocUnsafeSlow=function(A){return v(A)};function S(A,F){if((typeof F!="string"||F==="")&&(F="utf8"),!f.isEncoding(F))throw new TypeError("Unknown encoding: "+F);let $=V(A,F)|0,te=p($),se=te.write(A,F);return se!==$&&(te=te.slice(0,se)),te}function T(A){let F=A.length<0?0:L(A.length)|0,$=p(F);for(let te=0;te<F;te+=1)$[te]=A[te]&255;return $}function P(A){if(Va(A,Uint8Array)){let F=new Uint8Array(A);return R(F.buffer,F.byteOffset,F.byteLength)}return T(A)}function R(A,F,$){if(F<0||A.byteLength<F)throw new RangeError('"offset" is outside of buffer bounds');if(A.byteLength<F+($||0))throw new RangeError('"length" is outside of buffer bounds');let te;return F===void 0&&$===void 0?te=new Uint8Array(A):$===void 0?te=new Uint8Array(A,F):te=new Uint8Array(A,F,$),Object.setPrototypeOf(te,f.prototype),te}function M(A){if(f.isBuffer(A)){let F=L(A.length)|0,$=p(F);return $.length===0||A.copy($,0,0,F),$}if(A.length!==void 0)return typeof A.length!="number"||Iw(A.length)?p(0):T(A);if(A.type==="Buffer"&&Array.isArray(A.data))return T(A.data)}function L(A){if(A>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return A|0}function N(A){return+A!=A&&(A=0),f.alloc(+A)}f.isBuffer=function(A){return A!=null&&A._isBuffer===!0&&A!==f.prototype},f.compare=function(A,F){if(Va(A,Uint8Array)&&(A=f.from(A,A.offset,A.byteLength)),Va(F,Uint8Array)&&(F=f.from(F,F.offset,F.byteLength)),!f.isBuffer(A)||!f.isBuffer(F))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===F)return 0;let $=A.length,te=F.length;for(let se=0,me=Math.min($,te);se<me;++se)if(A[se]!==F[se]){$=A[se],te=F[se];break}return $<te?-1:te<$?1:0},f.isEncoding=function(A){switch(String(A).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(A,F){if(!Array.isArray(A))throw new TypeError('"list" argument must be an Array of Buffers');if(A.length===0)return f.alloc(0);let $;if(F===void 0)for(F=0,$=0;$<A.length;++$)F+=A[$].length;let te=f.allocUnsafe(F),se=0;for($=0;$<A.length;++$){let me=A[$];if(Va(me,Uint8Array))se+me.length>te.length?(f.isBuffer(me)||(me=f.from(me)),me.copy(te,se)):Uint8Array.prototype.set.call(te,me,se);else if(f.isBuffer(me))me.copy(te,se);else throw new TypeError('"list" argument must be an Array of Buffers');se+=me.length}return te};function V(A,F){if(f.isBuffer(A))return A.length;if(ArrayBuffer.isView(A)||Va(A,ArrayBuffer))return A.byteLength;if(typeof A!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof A);let $=A.length,te=arguments.length>2&&arguments[2]===!0;if(!te&&$===0)return 0;let se=!1;for(;;)switch(F){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":return ag(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return cp(A).length;default:if(se)return te?-1:ag(A).length;F=(""+F).toLowerCase(),se=!0}}f.byteLength=V;function W(A,F,$){let te=!1;if((F===void 0||F<0)&&(F=0),F>this.length||(($===void 0||$>this.length)&&($=this.length),$<=0)||($>>>=0,F>>>=0,$<=F))return"";for(A||(A="utf8");;)switch(A){case"hex":return si(this,F,$);case"utf8":case"utf-8":return xe(this,F,$);case"ascii":return wr(this,F,$);case"latin1":case"binary":return rn(this,F,$);case"base64":return Z(this,F,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ai(this,F,$);default:if(te)throw new TypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),te=!0}}f.prototype._isBuffer=!0;function z(A,F,$){let te=A[F];A[F]=A[$],A[$]=te}f.prototype.swap16=function(){let A=this.length;if(A%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let F=0;F<A;F+=2)z(this,F,F+1);return this},f.prototype.swap32=function(){let A=this.length;if(A%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let F=0;F<A;F+=4)z(this,F,F+3),z(this,F+1,F+2);return this},f.prototype.swap64=function(){let A=this.length;if(A%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let F=0;F<A;F+=8)z(this,F,F+7),z(this,F+1,F+6),z(this,F+2,F+5),z(this,F+3,F+4);return this},f.prototype.toString=function(){let A=this.length;return A===0?"":arguments.length===0?xe(this,0,A):W.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(A){if(!f.isBuffer(A))throw new TypeError("Argument must be a Buffer");return this===A?!0:f.compare(this,A)===0},f.prototype.inspect=function(){let A="",F=e.INSPECT_MAX_BYTES;return A=this.toString("hex",0,F).replace(/(.{2})/g,"$1 ").trim(),this.length>F&&(A+=" ... "),"<Buffer "+A+">"},c&&(f.prototype[c]=f.prototype.inspect),f.prototype.compare=function(A,F,$,te,se){if(Va(A,Uint8Array)&&(A=f.from(A,A.offset,A.byteLength)),!f.isBuffer(A))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(F===void 0&&(F=0),$===void 0&&($=A?A.length:0),te===void 0&&(te=0),se===void 0&&(se=this.length),F<0||$>A.length||te<0||se>this.length)throw new RangeError("out of range index");if(te>=se&&F>=$)return 0;if(te>=se)return-1;if(F>=$)return 1;if(F>>>=0,$>>>=0,te>>>=0,se>>>=0,this===A)return 0;let me=se-te,Se=$-F,mt=Math.min(me,Se),jr=this.slice(te,se),nr=A.slice(F,$);for(let er=0;er<mt;++er)if(jr[er]!==nr[er]){me=jr[er],Se=nr[er];break}return me<Se?-1:Se<me?1:0};function q(A,F,$,te,se){if(A.length===0)return-1;if(typeof $=="string"?(te=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,Iw($)&&($=se?0:A.length-1),$<0&&($=A.length+$),$>=A.length){if(se)return-1;$=A.length-1}else if($<0)if(se)$=0;else return-1;if(typeof F=="string"&&(F=f.from(F,te)),f.isBuffer(F))return F.length===0?-1:X(A,F,$,te,se);if(typeof F=="number")return F=F&255,typeof Uint8Array.prototype.indexOf=="function"?se?Uint8Array.prototype.indexOf.call(A,F,$):Uint8Array.prototype.lastIndexOf.call(A,F,$):X(A,[F],$,te,se);throw new TypeError("val must be string, number or Buffer")}function X(A,F,$,te,se){let me=1,Se=A.length,mt=F.length;if(te!==void 0&&(te=String(te).toLowerCase(),te==="ucs2"||te==="ucs-2"||te==="utf16le"||te==="utf-16le")){if(A.length<2||F.length<2)return-1;me=2,Se/=2,mt/=2,$/=2}function jr(er,Yt){return me===1?er[Yt]:er.readUInt16BE(Yt*me)}let nr;if(se){let er=-1;for(nr=$;nr<Se;nr++)if(jr(A,nr)===jr(F,er===-1?0:nr-er)){if(er===-1&&(er=nr),nr-er+1===mt)return er*me}else er!==-1&&(nr-=nr-er),er=-1}else for($+mt>Se&&($=Se-mt),nr=$;nr>=0;nr--){let er=!0;for(let Yt=0;Yt<mt;Yt++)if(jr(A,nr+Yt)!==jr(F,Yt)){er=!1;break}if(er)return nr}return-1}f.prototype.includes=function(A,F,$){return this.indexOf(A,F,$)!==-1},f.prototype.indexOf=function(A,F,$){return q(this,A,F,$,!0)},f.prototype.lastIndexOf=function(A,F,$){return q(this,A,F,$,!1)};function G(A,F,$,te){$=Number($)||0;let se=A.length-$;te?(te=Number(te),te>se&&(te=se)):te=se;let me=F.length;te>me/2&&(te=me/2);let Se;for(Se=0;Se<te;++Se){let mt=parseInt(F.substr(Se*2,2),16);if(Iw(mt))return Se;A[$+Se]=mt}return Se}function oe(A,F,$,te){return Af(ag(F,A.length-$),A,$,te)}function ce(A,F,$,te){return Af(p6(F),A,$,te)}function ge(A,F,$,te){return Af(cp(F),A,$,te)}function Q(A,F,$,te){return Af(Py(F,A.length-$),A,$,te)}f.prototype.write=function(A,F,$,te){if(F===void 0)te="utf8",$=this.length,F=0;else if($===void 0&&typeof F=="string")te=F,$=this.length,F=0;else if(isFinite(F))F=F>>>0,isFinite($)?($=$>>>0,te===void 0&&(te="utf8")):(te=$,$=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let se=this.length-F;if(($===void 0||$>se)&&($=se),A.length>0&&($<0||F<0)||F>this.length)throw new RangeError("Attempt to write outside buffer bounds");te||(te="utf8");let me=!1;for(;;)switch(te){case"hex":return G(this,A,F,$);case"utf8":case"utf-8":return oe(this,A,F,$);case"ascii":case"latin1":case"binary":return ce(this,A,F,$);case"base64":return ge(this,A,F,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,A,F,$);default:if(me)throw new TypeError("Unknown encoding: "+te);te=(""+te).toLowerCase(),me=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Z(A,F,$){return F===0&&$===A.length?o.fromByteArray(A):o.fromByteArray(A.slice(F,$))}function xe(A,F,$){$=Math.min(A.length,$);let te=[],se=F;for(;se<$;){let me=A[se],Se=null,mt=me>239?4:me>223?3:me>191?2:1;if(se+mt<=$){let jr,nr,er,Yt;switch(mt){case 1:me<128&&(Se=me);break;case 2:jr=A[se+1],(jr&192)===128&&(Yt=(me&31)<<6|jr&63,Yt>127&&(Se=Yt));break;case 3:jr=A[se+1],nr=A[se+2],(jr&192)===128&&(nr&192)===128&&(Yt=(me&15)<<12|(jr&63)<<6|nr&63,Yt>2047&&(Yt<55296||Yt>57343)&&(Se=Yt));break;case 4:jr=A[se+1],nr=A[se+2],er=A[se+3],(jr&192)===128&&(nr&192)===128&&(er&192)===128&&(Yt=(me&15)<<18|(jr&63)<<12|(nr&63)<<6|er&63,Yt>65535&&Yt<1114112&&(Se=Yt))}}Se===null?(Se=65533,mt=1):Se>65535&&(Se-=65536,te.push(Se>>>10&1023|55296),Se=56320|Se&1023),te.push(Se),se+=mt}return ke(te)}var we=4096;function ke(A){let F=A.length;if(F<=we)return String.fromCharCode.apply(String,A);let $="",te=0;for(;te<F;)$+=String.fromCharCode.apply(String,A.slice(te,te+=we));return $}function wr(A,F,$){let te="";$=Math.min(A.length,$);for(let se=F;se<$;++se)te+=String.fromCharCode(A[se]&127);return te}function rn(A,F,$){let te="";$=Math.min(A.length,$);for(let se=F;se<$;++se)te+=String.fromCharCode(A[se]);return te}function si(A,F,$){let te=A.length;(!F||F<0)&&(F=0),(!$||$<0||$>te)&&($=te);let se="";for(let me=F;me<$;++me)se+=f6[A[me]];return se}function Ai(A,F,$){let te=A.slice(F,$),se="";for(let me=0;me<te.length-1;me+=2)se+=String.fromCharCode(te[me]+te[me+1]*256);return se}f.prototype.slice=function(A,F){let $=this.length;A=~~A,F=F===void 0?$:~~F,A<0?(A+=$,A<0&&(A=0)):A>$&&(A=$),F<0?(F+=$,F<0&&(F=0)):F>$&&(F=$),F<A&&(F=A);let te=this.subarray(A,F);return Object.setPrototypeOf(te,f.prototype),te};function nn(A,F,$){if(A%1!==0||A<0)throw new RangeError("offset is not uint");if(A+F>$)throw new RangeError("Trying to access beyond buffer length")}f.prototype.readUintLE=f.prototype.readUIntLE=function(A,F,$){A=A>>>0,F=F>>>0,$||nn(A,F,this.length);let te=this[A],se=1,me=0;for(;++me<F&&(se*=256);)te+=this[A+me]*se;return te},f.prototype.readUintBE=f.prototype.readUIntBE=function(A,F,$){A=A>>>0,F=F>>>0,$||nn(A,F,this.length);let te=this[A+--F],se=1;for(;F>0&&(se*=256);)te+=this[A+--F]*se;return te},f.prototype.readUint8=f.prototype.readUInt8=function(A,F){return A=A>>>0,F||nn(A,1,this.length),this[A]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(A,F){return A=A>>>0,F||nn(A,2,this.length),this[A]|this[A+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(A,F){return A=A>>>0,F||nn(A,2,this.length),this[A]<<8|this[A+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(A,F){return A=A>>>0,F||nn(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+this[A+3]*16777216},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(A,F){return A=A>>>0,F||nn(A,4,this.length),this[A]*16777216+(this[A+1]<<16|this[A+2]<<8|this[A+3])},f.prototype.readBigUInt64LE=up(function(A){A=A>>>0,wc(A,"offset");let F=this[A],$=this[A+7];(F===void 0||$===void 0)&&Ls(A,this.length-8);let te=F+this[++A]*2**8+this[++A]*2**16+this[++A]*2**24,se=this[++A]+this[++A]*2**8+this[++A]*2**16+$*2**24;return BigInt(te)+(BigInt(se)<<BigInt(32))}),f.prototype.readBigUInt64BE=up(function(A){A=A>>>0,wc(A,"offset");let F=this[A],$=this[A+7];(F===void 0||$===void 0)&&Ls(A,this.length-8);let te=F*2**24+this[++A]*2**16+this[++A]*2**8+this[++A],se=this[++A]*2**24+this[++A]*2**16+this[++A]*2**8+$;return(BigInt(te)<<BigInt(32))+BigInt(se)}),f.prototype.readIntLE=function(A,F,$){A=A>>>0,F=F>>>0,$||nn(A,F,this.length);let te=this[A],se=1,me=0;for(;++me<F&&(se*=256);)te+=this[A+me]*se;return se*=128,te>=se&&(te-=Math.pow(2,8*F)),te},f.prototype.readIntBE=function(A,F,$){A=A>>>0,F=F>>>0,$||nn(A,F,this.length);let te=F,se=1,me=this[A+--te];for(;te>0&&(se*=256);)me+=this[A+--te]*se;return se*=128,me>=se&&(me-=Math.pow(2,8*F)),me},f.prototype.readInt8=function(A,F){return A=A>>>0,F||nn(A,1,this.length),this[A]&128?(255-this[A]+1)*-1:this[A]},f.prototype.readInt16LE=function(A,F){A=A>>>0,F||nn(A,2,this.length);let $=this[A]|this[A+1]<<8;return $&32768?$|4294901760:$},f.prototype.readInt16BE=function(A,F){A=A>>>0,F||nn(A,2,this.length);let $=this[A+1]|this[A]<<8;return $&32768?$|4294901760:$},f.prototype.readInt32LE=function(A,F){return A=A>>>0,F||nn(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},f.prototype.readInt32BE=function(A,F){return A=A>>>0,F||nn(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},f.prototype.readBigInt64LE=up(function(A){A=A>>>0,wc(A,"offset");let F=this[A],$=this[A+7];(F===void 0||$===void 0)&&Ls(A,this.length-8);let te=this[A+4]+this[A+5]*2**8+this[A+6]*2**16+($<<24);return(BigInt(te)<<BigInt(32))+BigInt(F+this[++A]*2**8+this[++A]*2**16+this[++A]*2**24)}),f.prototype.readBigInt64BE=up(function(A){A=A>>>0,wc(A,"offset");let F=this[A],$=this[A+7];(F===void 0||$===void 0)&&Ls(A,this.length-8);let te=(F<<24)+this[++A]*2**16+this[++A]*2**8+this[++A];return(BigInt(te)<<BigInt(32))+BigInt(this[++A]*2**24+this[++A]*2**16+this[++A]*2**8+$)}),f.prototype.readFloatLE=function(A,F){return A=A>>>0,F||nn(A,4,this.length),a.read(this,A,!0,23,4)},f.prototype.readFloatBE=function(A,F){return A=A>>>0,F||nn(A,4,this.length),a.read(this,A,!1,23,4)},f.prototype.readDoubleLE=function(A,F){return A=A>>>0,F||nn(A,8,this.length),a.read(this,A,!0,52,8)},f.prototype.readDoubleBE=function(A,F){return A=A>>>0,F||nn(A,8,this.length),a.read(this,A,!1,52,8)};function Rr(A,F,$,te,se,me){if(!f.isBuffer(A))throw new TypeError('"buffer" argument must be a Buffer instance');if(F>se||F<me)throw new RangeError('"value" argument is out of bounds');if($+te>A.length)throw new RangeError("Index out of range")}f.prototype.writeUintLE=f.prototype.writeUIntLE=function(A,F,$,te){if(A=+A,F=F>>>0,$=$>>>0,!te){let Se=Math.pow(2,8*$)-1;Rr(this,A,F,$,Se,0)}let se=1,me=0;for(this[F]=A&255;++me<$&&(se*=256);)this[F+me]=A/se&255;return F+$},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(A,F,$,te){if(A=+A,F=F>>>0,$=$>>>0,!te){let Se=Math.pow(2,8*$)-1;Rr(this,A,F,$,Se,0)}let se=$-1,me=1;for(this[F+se]=A&255;--se>=0&&(me*=256);)this[F+se]=A/me&255;return F+$},f.prototype.writeUint8=f.prototype.writeUInt8=function(A,F,$){return A=+A,F=F>>>0,$||Rr(this,A,F,1,255,0),this[F]=A&255,F+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(A,F,$){return A=+A,F=F>>>0,$||Rr(this,A,F,2,65535,0),this[F]=A&255,this[F+1]=A>>>8,F+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(A,F,$){return A=+A,F=F>>>0,$||Rr(this,A,F,2,65535,0),this[F]=A>>>8,this[F+1]=A&255,F+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(A,F,$){return A=+A,F=F>>>0,$||Rr(this,A,F,4,4294967295,0),this[F+3]=A>>>24,this[F+2]=A>>>16,this[F+1]=A>>>8,this[F]=A&255,F+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(A,F,$){return A=+A,F=F>>>0,$||Rr(this,A,F,4,4294967295,0),this[F]=A>>>24,this[F+1]=A>>>16,this[F+2]=A>>>8,this[F+3]=A&255,F+4};function xt(A,F,$,te,se){ai(F,te,se,A,$,7);let me=Number(F&BigInt(4294967295));A[$++]=me,me=me>>8,A[$++]=me,me=me>>8,A[$++]=me,me=me>>8,A[$++]=me;let Se=Number(F>>BigInt(32)&BigInt(4294967295));return A[$++]=Se,Se=Se>>8,A[$++]=Se,Se=Se>>8,A[$++]=Se,Se=Se>>8,A[$++]=Se,$}function dn(A,F,$,te,se){ai(F,te,se,A,$,7);let me=Number(F&BigInt(4294967295));A[$+7]=me,me=me>>8,A[$+6]=me,me=me>>8,A[$+5]=me,me=me>>8,A[$+4]=me;let Se=Number(F>>BigInt(32)&BigInt(4294967295));return A[$+3]=Se,Se=Se>>8,A[$+2]=Se,Se=Se>>8,A[$+1]=Se,Se=Se>>8,A[$]=Se,$+8}f.prototype.writeBigUInt64LE=up(function(A,F=0){return xt(this,A,F,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=up(function(A,F=0){return dn(this,A,F,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(A,F,$,te){if(A=+A,F=F>>>0,!te){let mt=Math.pow(2,8*$-1);Rr(this,A,F,$,mt-1,-mt)}let se=0,me=1,Se=0;for(this[F]=A&255;++se<$&&(me*=256);)A<0&&Se===0&&this[F+se-1]!==0&&(Se=1),this[F+se]=(A/me>>0)-Se&255;return F+$},f.prototype.writeIntBE=function(A,F,$,te){if(A=+A,F=F>>>0,!te){let mt=Math.pow(2,8*$-1);Rr(this,A,F,$,mt-1,-mt)}let se=$-1,me=1,Se=0;for(this[F+se]=A&255;--se>=0&&(me*=256);)A<0&&Se===0&&this[F+se+1]!==0&&(Se=1),this[F+se]=(A/me>>0)-Se&255;return F+$},f.prototype.writeInt8=function(A,F,$){return A=+A,F=F>>>0,$||Rr(this,A,F,1,127,-128),A<0&&(A=255+A+1),this[F]=A&255,F+1},f.prototype.writeInt16LE=function(A,F,$){return A=+A,F=F>>>0,$||Rr(this,A,F,2,32767,-32768),this[F]=A&255,this[F+1]=A>>>8,F+2},f.prototype.writeInt16BE=function(A,F,$){return A=+A,F=F>>>0,$||Rr(this,A,F,2,32767,-32768),this[F]=A>>>8,this[F+1]=A&255,F+2},f.prototype.writeInt32LE=function(A,F,$){return A=+A,F=F>>>0,$||Rr(this,A,F,4,2147483647,-2147483648),this[F]=A&255,this[F+1]=A>>>8,this[F+2]=A>>>16,this[F+3]=A>>>24,F+4},f.prototype.writeInt32BE=function(A,F,$){return A=+A,F=F>>>0,$||Rr(this,A,F,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[F]=A>>>24,this[F+1]=A>>>16,this[F+2]=A>>>8,this[F+3]=A&255,F+4},f.prototype.writeBigInt64LE=up(function(A,F=0){return xt(this,A,F,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=up(function(A,F=0){return dn(this,A,F,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ap(A,F,$,te,se,me){if($+te>A.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function qe(A,F,$,te,se){return F=+F,$=$>>>0,se||ap(A,F,$,4,34028234663852886e22,-34028234663852886e22),a.write(A,F,$,te,23,4),$+4}f.prototype.writeFloatLE=function(A,F,$){return qe(this,A,F,!0,$)},f.prototype.writeFloatBE=function(A,F,$){return qe(this,A,F,!1,$)};function Ut(A,F,$,te,se){return F=+F,$=$>>>0,se||ap(A,F,$,8,17976931348623157e292,-17976931348623157e292),a.write(A,F,$,te,52,8),$+8}f.prototype.writeDoubleLE=function(A,F,$){return Ut(this,A,F,!0,$)},f.prototype.writeDoubleBE=function(A,F,$){return Ut(this,A,F,!1,$)},f.prototype.copy=function(A,F,$,te){if(!f.isBuffer(A))throw new TypeError("argument should be a Buffer");if($||($=0),!te&&te!==0&&(te=this.length),F>=A.length&&(F=A.length),F||(F=0),te>0&&te<$&&(te=$),te===$||A.length===0||this.length===0)return 0;if(F<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("Index out of range");if(te<0)throw new RangeError("sourceEnd out of bounds");te>this.length&&(te=this.length),A.length-F<te-$&&(te=A.length-F+$);let se=te-$;return this===A&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(F,$,te):Uint8Array.prototype.set.call(A,this.subarray($,te),F),se},f.prototype.fill=function(A,F,$,te){if(typeof A=="string"){if(typeof F=="string"?(te=F,F=0,$=this.length):typeof $=="string"&&(te=$,$=this.length),te!==void 0&&typeof te!="string")throw new TypeError("encoding must be a string");if(typeof te=="string"&&!f.isEncoding(te))throw new TypeError("Unknown encoding: "+te);if(A.length===1){let me=A.charCodeAt(0);(te==="utf8"&&me<128||te==="latin1")&&(A=me)}}else typeof A=="number"?A=A&255:typeof A=="boolean"&&(A=Number(A));if(F<0||this.length<F||this.length<$)throw new RangeError("Out of range index");if($<=F)return this;F=F>>>0,$=$===void 0?this.length:$>>>0,A||(A=0);let se;if(typeof A=="number")for(se=F;se<$;++se)this[se]=A;else{let me=f.isBuffer(A)?A:f.from(A,te),Se=me.length;if(Se===0)throw new TypeError('The value "'+A+'" is invalid for argument "value"');for(se=0;se<$-F;++se)this[se+F]=me[se%Se]}return this};var Pe={};function Bt(A,F,$){Pe[A]=class extends ${constructor(){super(),Object.defineProperty(this,"message",{value:F.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${A}]`,this.stack,delete this.name}get code(){return A}set code(te){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:te,writable:!0})}toString(){return`${this.name} [${A}]: ${this.message}`}}}Bt("ERR_BUFFER_OUT_OF_BOUNDS",function(A){return A?`${A} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Bt("ERR_INVALID_ARG_TYPE",function(A,F){return`The "${A}" argument must be of type number. Received type ${typeof F}`},TypeError),Bt("ERR_OUT_OF_RANGE",function(A,F,$){let te=`The value of "${A}" is out of range.`,se=$;return Number.isInteger($)&&Math.abs($)>2**32?se=hn(String($)):typeof $=="bigint"&&(se=String($),($>BigInt(2)**BigInt(32)||$<-(BigInt(2)**BigInt(32)))&&(se=hn(se)),se+="n"),te+=` It must be ${F}. Received ${se}`,te},RangeError);function hn(A){let F="",$=A.length,te=A[0]==="-"?1:0;for(;$>=te+4;$-=3)F=`_${A.slice($-3,$)}${F}`;return`${A.slice(0,$)}${F}`}function No(A,F,$){wc(F,"offset"),(A[F]===void 0||A[F+$]===void 0)&&Ls(F,A.length-($+1))}function ai(A,F,$,te,se,me){if(A>$||A<F){let Se=typeof F=="bigint"?"n":"",mt;throw me>3?F===0||F===BigInt(0)?mt=`>= 0${Se} and < 2${Se} ** ${(me+1)*8}${Se}`:mt=`>= -(2${Se} ** ${(me+1)*8-1}${Se}) and < 2 ** ${(me+1)*8-1}${Se}`:mt=`>= ${F}${Se} and <= ${$}${Se}`,new Pe.ERR_OUT_OF_RANGE("value",mt,A)}No(te,se,me)}function wc(A,F){if(typeof A!="number")throw new Pe.ERR_INVALID_ARG_TYPE(F,"number",A)}function Ls(A,F,$){throw Math.floor(A)!==A?(wc(A,$),new Pe.ERR_OUT_OF_RANGE($||"offset","an integer",A)):F<0?new Pe.ERR_BUFFER_OUT_OF_BOUNDS:new Pe.ERR_OUT_OF_RANGE($||"offset",`>= ${$?1:0} and <= ${F}`,A)}var l6=/[^+/0-9A-Za-z-_]/g;function MD(A){if(A=A.split("=")[0],A=A.trim().replace(l6,""),A.length<2)return"";for(;A.length%4!==0;)A=A+"=";return A}function ag(A,F){F=F||1/0;let $,te=A.length,se=null,me=[];for(let Se=0;Se<te;++Se){if($=A.charCodeAt(Se),$>55295&&$<57344){if(!se){if($>56319){(F-=3)>-1&&me.push(239,191,189);continue}else if(Se+1===te){(F-=3)>-1&&me.push(239,191,189);continue}se=$;continue}if($<56320){(F-=3)>-1&&me.push(239,191,189),se=$;continue}$=(se-55296<<10|$-56320)+65536}else se&&(F-=3)>-1&&me.push(239,191,189);if(se=null,$<128){if((F-=1)<0)break;me.push($)}else if($<2048){if((F-=2)<0)break;me.push($>>6|192,$&63|128)}else if($<65536){if((F-=3)<0)break;me.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((F-=4)<0)break;me.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw new Error("Invalid code point")}return me}function p6(A){let F=[];for(let $=0;$<A.length;++$)F.push(A.charCodeAt($)&255);return F}function Py(A,F){let $,te,se,me=[];for(let Se=0;Se<A.length&&!((F-=2)<0);++Se)$=A.charCodeAt(Se),te=$>>8,se=$%256,me.push(se),me.push(te);return me}function cp(A){return o.toByteArray(MD(A))}function Af(A,F,$,te){let se;for(se=0;se<te&&!(se+$>=F.length||se>=A.length);++se)F[se+$]=A[se];return se}function Va(A,F){return A instanceof F||A!=null&&A.constructor!=null&&A.constructor.name!=null&&A.constructor.name===F.name}function Iw(A){return A!==A}var f6=function(){let A="0123456789abcdef",F=new Array(256);for(let $=0;$<16;++$){let te=$*16;for(let se=0;se<16;++se)F[te+se]=A[$]+A[se]}return F}();function up(A){return typeof BigInt>"u"?oH:A}function oH(){throw new Error("BigInt not supported")}}),Cy,de=Ty(()=>{"use strict";Cy=OD($Vr())});function BVr(){return!1}var pPt,fPt,QPt,qVr=Ty(()=>{"use strict";de(),ue(),le(),pe(),fe(),pPt={},fPt={existsSync:BVr,promises:pPt},QPt=fPt});function jVr(...e){return e.join("/")}function UVr(...e){return e.join("/")}var Rve,dPt,hPt,Kk,WVr=Ty(()=>{"use strict";de(),ue(),le(),pe(),fe(),Rve="/",dPt={sep:Rve},hPt={resolve:jVr,posix:dPt,join:UVr,sep:Rve},Kk=hPt}),HVr=Tw((e,r)=>{r.exports={name:"@prisma/internals",version:"6.5.0-dev.57",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 -- jest --silent",prepublishOnly:"pnpm run build"},files:["README.md","dist","!**/libquery_engine*","!dist/get-generators/engines/*","scripts"],devDependencies:{"@antfu/ni":"0.21.12","@babel/helper-validator-identifier":"7.25.9","@opentelemetry/api":"1.9.0","@swc/core":"1.11.5","@swc/jest":"0.2.37","@types/babel__helper-validator-identifier":"7.15.2","@types/jest":"29.5.14","@types/node":"18.19.76","@types/resolve":"1.20.6",archiver:"6.0.2","checkpoint-client":"1.1.33","cli-truncate":"4.0.0",dotenv:"16.4.7",esbuild:"0.24.2","escape-string-regexp":"4.0.0",execa:"5.1.1","fast-glob":"3.3.3","find-up":"5.0.0","fp-ts":"2.16.9","fs-extra":"11.3.0","fs-jetpack":"5.1.0","global-dirs":"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",jest:"29.7.0","jest-junit":"16.0.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","read-package-up":"11.0.0",resolve:"1.22.10","string-width":"4.2.3","strip-ansi":"6.0.1","strip-indent":"3.0.0","temp-dir":"2.0.0",tempy:"1.0.1","terminal-link":"2.1.1",tmp:"0.2.3","ts-node":"10.9.2","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/engines":"workspace:*","@prisma/fetch-engine":"workspace:*","@prisma/generator-helper":"workspace:*","@prisma/get-platform":"workspace:*","@prisma/prisma-schema-wasm":"6.5.0-43.56bd63f620196b375ea597255b04817886e98eca","@prisma/schema-files-loader":"workspace:*",arg:"5.0.2",prompts:"2.4.2"},peerDependencies:{typescript:">=5.1.0"},peerDependenciesMeta:{typescript:{optional:!0}},sideEffects:!1}}),ZPt,GVr=Ty(()=>{"use strict";de(),ue(),le(),pe(),fe(),ZPt=class{constructor(){ye(this,"events",{})}on(e,r){return this.events[e]||(this.events[e]=[]),this.events[e].push(r),this}emit(e,...r){return this.events[e]?(this.events[e].forEach(n=>{n(...r)}),!0):!1}}}),zVr=Tw((e,r)=>{"use strict";de(),ue(),le(),pe(),fe(),r.exports=(n,i=1,o)=>{if(o={indent:" ",includeEmptyLines:!1,...o},typeof n!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof n}\``);if(typeof i!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof i}\``);if(typeof o.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof o.indent}\``);if(i===0)return n;let a=o.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return n.replace(a,o.indent.repeat(i))}}),VVr=Tw((e,r)=>{"use strict";de(),ue(),le(),pe(),fe(),r.exports=({onlyFirst:n=!1}={})=>{let i=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(i,n?void 0:"g")}}),KVr=Tw((e,r)=>{"use strict";de(),ue(),le(),pe(),fe();var n=VVr();r.exports=i=>typeof i=="string"?i.replace(n(),""):i}),XPt=Tw((e,r)=>{"use strict";de(),ue(),le(),pe(),fe(),r.exports=function(){function n(i,o,a,c,u){return i<o||a<o?i>a?a+1:i+1:c===u?o:o+1}return function(i,o){if(i===o)return 0;if(i.length>o.length){var a=i;i=o,o=a}for(var c=i.length,u=o.length;c>0&&i.charCodeAt(c-1)===o.charCodeAt(u-1);)c--,u--;for(var l=0;l<c&&i.charCodeAt(l)===o.charCodeAt(l);)l++;if(c-=l,u-=l,c===0||u<3)return u;var p=0,f,g,x,b,v,S,T,P,R,M,L,N,V=[];for(f=0;f<c;f++)V.push(f+1),V.push(i.charCodeAt(l+f));for(var W=V.length-1;p<u-3;)for(R=o.charCodeAt(l+(g=p)),M=o.charCodeAt(l+(x=p+1)),L=o.charCodeAt(l+(b=p+2)),N=o.charCodeAt(l+(v=p+3)),S=p+=4,f=0;f<W;f+=2)T=V[f],P=V[f+1],g=n(T,g,x,R,P),x=n(g,x,b,M,P),b=n(x,b,v,L,P),S=n(b,v,S,N,P),V[f]=S,v=b,b=x,x=g,g=T;for(;p<u;)for(R=o.charCodeAt(l+(g=p)),S=++p,f=0;f<W;f+=2)T=V[f],V[f]=S=n(T,g,S,R,V[f+1]),g=T;return S}}()}),YVr=Tw((e,r)=>{r.exports={name:"@prisma/engines-version",version:"6.5.0-43.56bd63f620196b375ea597255b04817886e98eca",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek <suchanek@prisma.io>",prisma:{enginesVersion:"56bd63f620196b375ea597255b04817886e98eca"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.76",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}}),eFt={};qW(eFt,{Debug:()=>lFt,Decimal:()=>o6,Extensions:()=>tFt,MetricsClient:()=>nRt,PrismaClientInitializationError:()=>zu,PrismaClientKnownRequestError:()=>_w,PrismaClientRustPanicError:()=>Qk,PrismaClientUnknownRequestError:()=>Cw,PrismaClientValidationError:()=>ig,Public:()=>rFt,Sql:()=>Oy,createParam:()=>dJr,defineDmmfProperty:()=>CJr,deserializeJsonResponse:()=>LW,deserializeRawResult:()=>qRt,dmmfToRuntimeDataModel:()=>_Jr,empty:()=>IJr,getPrismaClient:()=>CZr,getRuntime:()=>xRt,join:()=>OJr,makeStrictEnum:()=>AZr,makeTypedQueryFactory:()=>TJr,objectEnumValues:()=>WFt,raw:()=>sRt,serializeJsonQuery:()=>eRt,skip:()=>ZFt,sqltag:()=>PJr,warnEnvConflicts:()=>{},warnOnce:()=>mFt});WRt.exports=NVr(eFt);de();ue();le();pe();fe();var tFt={};qW(tFt,{defineExtension:()=>JVr,getExtensionContext:()=>QVr});de();ue();le();pe();fe();de();ue();le();pe();fe();function JVr(e){return typeof e=="function"?e:r=>r.$extends(e)}de();ue();le();pe();fe();function QVr(e){return e}var rFt={};qW(rFt,{validator:()=>ZVr});de();ue();le();pe();fe();de();ue();le();pe();fe();function ZVr(...e){return r=>r}de();ue();le();pe();fe();de();ue();le();pe();fe();de();ue();le();pe();fe();de();ue();le();pe();fe();de();ue();le();pe();fe();function nFt(e){return e.name==="DriverAdapterError"&&typeof e.cause=="object"}de();ue();le();pe();fe();function sEe(e){return{ok:!0,value:e,map(r){return sEe(r(e))},flatMap(r){return r(e)}}}function DD(e){return{ok:!1,error:e,map(){return DD(e)},flatMap(){return DD(e)}}}var XVr=class{constructor(){ye(this,"registeredErrors",[])}consumeError(e){return this.registeredErrors[e]}registerNewError(e){let r=0;for(;this.registeredErrors[r]!==void 0;)r++;return this.registeredErrors[r]={error:e},r}},eKr=e=>{let r=new XVr,n=op(r,e.transactionContext.bind(e)),i={adapterName:e.adapterName,errorRegistry:r,queryRaw:op(r,e.queryRaw.bind(e)),executeRaw:op(r,e.executeRaw.bind(e)),executeScript:op(r,e.executeScript.bind(e)),dispose:op(r,e.dispose.bind(e)),provider:e.provider,transactionContext:async(...o)=>(await n(...o)).map(a=>tKr(r,a))};return e.getConnectionInfo&&(i.getConnectionInfo=nKr(r,e.getConnectionInfo.bind(e))),i},tKr=(e,r)=>{let n=op(e,r.startTransaction.bind(r));return{adapterName:r.adapterName,provider:r.provider,queryRaw:op(e,r.queryRaw.bind(r)),executeRaw:op(e,r.executeRaw.bind(r)),startTransaction:async(...i)=>(await n(...i)).map(o=>rKr(e,o))}},rKr=(e,r)=>({adapterName:r.adapterName,provider:r.provider,options:r.options,queryRaw:op(e,r.queryRaw.bind(r)),executeRaw:op(e,r.executeRaw.bind(r)),commit:op(e,r.commit.bind(r)),rollback:op(e,r.rollback.bind(r))});function op(e,r){return async(...n)=>{try{return sEe(await r(...n))}catch(i){if(nFt(i))return DD(i.cause);let o=e.registerNewError(i);return DD({kind:"GenericJs",id:o})}}}function nKr(e,r){return(...n)=>{try{return sEe(r(...n))}catch(i){if(nFt(i))return DD(i.cause);let o=e.registerNewError(i);return DD({kind:"GenericJs",id:o})}}}de();ue();le();pe();fe();de();ue();le();pe();fe();var $ve,iFt,oFt,sFt,aFt=!0;typeof Ns<"u"&&({FORCE_COLOR:$ve,NODE_DISABLE_COLORS:iFt,NO_COLOR:oFt,TERM:sFt}=Ns.env||{},aFt=Ns.stdout&&Ns.stdout.isTTY);var iKr={enabled:!iFt&&oFt==null&&sFt!=="dumb"&&($ve!=null&&$ve!=="0"||aFt)};function oi(e,r){let n=new RegExp(`\\x1b\\[${r}m`,"g"),i=`\x1B[${e}m`,o=`\x1B[${r}m`;return function(a){return!iKr.enabled||a==null?a:i+(~(""+a).indexOf(o)?a.replace(n,o+i):a)+o}}var dyi=oi(0,0),cFt=oi(1,22),uFt=oi(2,22),hyi=oi(3,23),oKr=oi(4,24),myi=oi(7,27),gyi=oi(8,28),xyi=oi(9,29),yyi=oi(30,39),aEe=oi(31,39),sKr=oi(32,39),aKr=oi(33,39),cKr=oi(34,39),byi=oi(35,39),uKr=oi(36,39),vyi=oi(37,39),lKr=oi(90,39),Eyi=oi(90,39),wyi=oi(40,49),Syi=oi(41,49),_yi=oi(42,49),Cyi=oi(43,49),Dyi=oi(44,49),Tyi=oi(45,49),Ayi=oi(46,49),Oyi=oi(47,49),pKr=100,mPt=["green","yellow","blue","magenta","cyan","red"],TW=[],gPt=Date.now(),fKr=0,Bve=typeof Ns<"u"?Ns.env:{};globalThis.DEBUG??=Bve.DEBUG??"";globalThis.DEBUG_COLORS??=Bve.DEBUG_COLORS?Bve.DEBUG_COLORS==="true":!0;var Jk={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(o=>o.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),n=r.some(o=>o===""||o[0]==="-"?!1:e.match(RegExp(o.split("*").join(".*")+"$"))),i=r.some(o=>o===""||o[0]!=="-"?!1:e.match(RegExp(o.slice(1).split("*").join(".*")+"$")));return n&&!i},log:(...e)=>{let[r,n,...i]=e;(console.warn??console.log)(`${r} ${n}`,...i)},formatters:{}};function dKr(e){let r={color:mPt[fKr++%mPt.length],enabled:Jk.enabled(e),namespace:e,log:Jk.log,extend:()=>{}},n=(...i)=>{let{enabled:o,namespace:a,color:c,log:u}=r;if(i.length!==0&&TW.push([a,...i]),TW.length>pKr&&TW.shift(),Jk.enabled(a)||o){let l=i.map(f=>typeof f=="string"?f:hKr(f)),p=`+${Date.now()-gPt}ms`;gPt=Date.now(),u(a,...l,p)}};return new Proxy(n,{get:(i,o)=>r[o],set:(i,o,a)=>r[o]=a})}var lFt=new Proxy(dKr,{get:(e,r)=>Jk[r],set:(e,r,n)=>Jk[r]=n});function hKr(e,r=2){let n=new Set;return JSON.stringify(e,(i,o)=>{if(typeof o=="object"&&o!==null){if(n.has(o))return"[Circular *]";n.add(o)}else if(typeof o=="bigint")return o.toString();return o},r)}function mKr(){TW.length=0}var sg=lFt;de();ue();le();pe();fe();de();ue();le();pe();fe();var gKr=HVr(),xKr=gKr.version;de();ue();le();pe();fe();var yKr="library";function qve(e){return bKr()||(e?.config.engineType==="library"?"library":e?.config.engineType==="binary"?"binary":e?.config.engineType==="client"?"client":yKr)}function bKr(){let e=Ns.env.PRISMA_CLIENT_ENGINE_TYPE;return e==="library"?"library":e==="binary"?"binary":e==="client"?"client":void 0}de();ue();le();pe();fe();var vKr="prisma+postgres",pFt=`${vKr}:`;function EKr(e){return e?.startsWith(`${pFt}//`)??!1}de();ue();le();pe();fe();de();ue();le();pe();fe();var fFt;(e=>{let r;(n=>(n.findUnique="findUnique",n.findUniqueOrThrow="findUniqueOrThrow",n.findFirst="findFirst",n.findFirstOrThrow="findFirstOrThrow",n.findMany="findMany",n.create="create",n.createMany="createMany",n.createManyAndReturn="createManyAndReturn",n.update="update",n.updateMany="updateMany",n.updateManyAndReturn="updateManyAndReturn",n.upsert="upsert",n.delete="delete",n.deleteMany="deleteMany",n.groupBy="groupBy",n.count="count",n.aggregate="aggregate",n.findRaw="findRaw",n.aggregateRaw="aggregateRaw"))(r=e.ModelAction||={})})(fFt||={});var jve={};qW(jve,{error:()=>_Kr,info:()=>SKr,log:()=>wKr,query:()=>CKr,should:()=>dFt,tags:()=>i6,warn:()=>hFt});de();ue();le();pe();fe();var i6={error:aEe("prisma:error"),warn:aKr("prisma:warn"),info:uKr("prisma:info"),query:cKr("prisma:query")},dFt={warn:()=>!Ns.env.PRISMA_DISABLE_WARNINGS};function wKr(...e){console.log(...e)}function hFt(e,...r){dFt.warn()&&console.warn(`${i6.warn} ${e}`,...r)}function SKr(e,...r){console.info(`${i6.info} ${e}`,...r)}function _Kr(e,...r){console.error(`${i6.error} ${e}`,...r)}function CKr(e,...r){console.log(`${i6.query} ${e}`,...r)}de();ue();le();pe();fe();function jW(e,r){throw new Error(r)}de();ue();le();pe();fe();function DKr(e,r){return Object.prototype.hasOwnProperty.call(e,r)}de();ue();le();pe();fe();var TKr=(e,r)=>e.reduce((n,i)=>(n[r(i)]=i,n),{});de();ue();le();pe();fe();function cEe(e,r){let n={};for(let i of Object.keys(e))n[i]=r(e[i],i);return n}de();ue();le();pe();fe();function AKr(e,r){if(e.length===0)return;let n=e[0];for(let i=1;i<e.length;i++)r(n,e[i])<0&&(n=e[i]);return n}de();ue();le();pe();fe();function eo(e,r){Object.defineProperty(e,"name",{value:r,configurable:!0})}de();ue();le();pe();fe();var xPt=new Set,mFt=(e,r,...n)=>{xPt.has(e)||(xPt.add(e),hFt(r,...n))},zu=class gFt extends Error{constructor(r,n,i){super(r),ye(this,"clientVersion"),ye(this,"errorCode"),ye(this,"retryable"),this.name="PrismaClientInitializationError",this.clientVersion=n,this.errorCode=i,Error.captureStackTrace(gFt)}get[Symbol.toStringTag](){return"PrismaClientInitializationError"}};eo(zu,"PrismaClientInitializationError");de();ue();le();pe();fe();var _w=class extends Error{constructor(e,{code:r,clientVersion:n,meta:i,batchRequestIdx:o}){super(e),ye(this,"code"),ye(this,"meta"),ye(this,"clientVersion"),ye(this,"batchRequestIdx"),this.name="PrismaClientKnownRequestError",this.code=r,this.clientVersion=n,this.meta=i,Object.defineProperty(this,"batchRequestIdx",{value:o,enumerable:!1,writable:!0})}get[Symbol.toStringTag](){return"PrismaClientKnownRequestError"}};eo(_w,"PrismaClientKnownRequestError");de();ue();le();pe();fe();var Qk=class extends Error{constructor(e,r){super(e),ye(this,"clientVersion"),this.name="PrismaClientRustPanicError",this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientRustPanicError"}};eo(Qk,"PrismaClientRustPanicError");de();ue();le();pe();fe();var Cw=class extends Error{constructor(e,{clientVersion:r,batchRequestIdx:n}){super(e),ye(this,"clientVersion"),ye(this,"batchRequestIdx"),this.name="PrismaClientUnknownRequestError",this.clientVersion=r,Object.defineProperty(this,"batchRequestIdx",{value:n,writable:!0,enumerable:!1})}get[Symbol.toStringTag](){return"PrismaClientUnknownRequestError"}};eo(Cw,"PrismaClientUnknownRequestError");de();ue();le();pe();fe();var ig=class extends Error{constructor(e,{clientVersion:r}){super(e),ye(this,"name","PrismaClientValidationError"),ye(this,"clientVersion"),this.clientVersion=r}get[Symbol.toStringTag](){return"PrismaClientValidationError"}};eo(ig,"PrismaClientValidationError");de();ue();le();pe();fe();de();ue();le();pe();fe();var CD=9e15,Ay=1e9,Uve="0123456789abcdef",kW="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",MW="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Wve={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-CD,maxE:CD,crypto:!1},xFt,og,qt=!0,UW="[DecimalError] ",Dy=UW+"Invalid argument: ",yFt=UW+"Precision limit exceeded",bFt=UW+"crypto unavailable",vFt="[object Decimal]",Ga=Math.floor,us=Math.pow,OKr=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,IKr=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,PKr=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,EFt=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Tf=1e7,At=7,FKr=9007199254740991,RKr=kW.length-1,Hve=MW.length-1,_e={toStringTag:vFt};_e.absoluteValue=_e.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),bt(e)};_e.ceil=function(){return bt(new this.constructor(this),this.e+1,2)};_e.clampedTo=_e.clamp=function(e,r){var n,i=this,o=i.constructor;if(e=new o(e),r=new o(r),!e.s||!r.s)return new o(NaN);if(e.gt(r))throw Error(Dy+r);return n=i.cmp(e),n<0?e:i.cmp(r)>0?r:new o(i)};_e.comparedTo=_e.cmp=function(e){var r,n,i,o,a=this,c=a.d,u=(e=new a.constructor(e)).d,l=a.s,p=e.s;if(!c||!u)return!l||!p?NaN:l!==p?l:c===u?0:!c^l<0?1:-1;if(!c[0]||!u[0])return c[0]?l:u[0]?-p:0;if(l!==p)return l;if(a.e!==e.e)return a.e>e.e^l<0?1:-1;for(i=c.length,o=u.length,r=0,n=i<o?i:o;r<n;++r)if(c[r]!==u[r])return c[r]>u[r]^l<0?1:-1;return i===o?0:i>o^l<0?1:-1};_e.cosine=_e.cos=function(){var e,r,n=this,i=n.constructor;return n.d?n.d[0]?(e=i.precision,r=i.rounding,i.precision=e+Math.max(n.e,n.sd())+At,i.rounding=1,n=kKr(i,DFt(i,n)),i.precision=e,i.rounding=r,bt(og==2||og==3?n.neg():n,e,r,!0)):new i(1):new i(NaN)};_e.cubeRoot=_e.cbrt=function(){var e,r,n,i,o,a,c,u,l,p,f=this,g=f.constructor;if(!f.isFinite()||f.isZero())return new g(f);for(qt=!1,a=f.s*us(f.s*f,1/3),!a||Math.abs(a)==1/0?(n=ha(f.d),e=f.e,(a=(e-n.length+1)%3)&&(n+=a==1||a==-2?"0":"00"),a=us(n,1/3),e=Ga((e+1)/3)-(e%3==(e<0?-1:2)),a==1/0?n="5e"+e:(n=a.toExponential(),n=n.slice(0,n.indexOf("e")+1)+e),i=new g(n),i.s=f.s):i=new g(a.toString()),c=(e=g.precision)+3;;)if(u=i,l=u.times(u).times(u),p=l.plus(f),i=Hn(p.plus(f).times(u),p.plus(l),c+2,1),ha(u.d).slice(0,c)===(n=ha(i.d)).slice(0,c))if(n=n.slice(c-3,c+1),n=="9999"||!o&&n=="4999"){if(!o&&(bt(u,e+1,0),u.times(u).times(u).eq(f))){i=u;break}c+=4,o=1}else{(!+n||!+n.slice(1)&&n.charAt(0)=="5")&&(bt(i,e+1,1),r=!i.times(i).times(i).eq(f));break}return qt=!0,bt(i,e,g.rounding,r)};_e.decimalPlaces=_e.dp=function(){var e,r=this.d,n=NaN;if(r){if(e=r.length-1,n=(e-Ga(this.e/At))*At,e=r[e],e)for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n};_e.dividedBy=_e.div=function(e){return Hn(this,new this.constructor(e))};_e.dividedToIntegerBy=_e.divToInt=function(e){var r=this,n=r.constructor;return bt(Hn(r,new n(e),0,1,1),n.precision,n.rounding)};_e.equals=_e.eq=function(e){return this.cmp(e)===0};_e.floor=function(){return bt(new this.constructor(this),this.e+1,3)};_e.greaterThan=_e.gt=function(e){return this.cmp(e)>0};_e.greaterThanOrEqualTo=_e.gte=function(e){var r=this.cmp(e);return r==1||r===0};_e.hyperbolicCosine=_e.cosh=function(){var e,r,n,i,o,a=this,c=a.constructor,u=new c(1);if(!a.isFinite())return new c(a.s?1/0:NaN);if(a.isZero())return u;n=c.precision,i=c.rounding,c.precision=n+Math.max(a.e,a.sd())+4,c.rounding=1,o=a.d.length,o<32?(e=Math.ceil(o/3),r=(1/HW(4,e)).toString()):(e=16,r="2.3283064365386962890625e-10"),a=TD(c,1,a.times(r),new c(1),!0);for(var l,p=e,f=new c(8);p--;)l=a.times(a),a=u.minus(l.times(f.minus(l.times(f))));return bt(a,c.precision=n,c.rounding=i,!0)};_e.hyperbolicSine=_e.sinh=function(){var e,r,n,i,o=this,a=o.constructor;if(!o.isFinite()||o.isZero())return new a(o);if(r=a.precision,n=a.rounding,a.precision=r+Math.max(o.e,o.sd())+4,a.rounding=1,i=o.d.length,i<3)o=TD(a,2,o,o,!0);else{e=1.4*Math.sqrt(i),e=e>16?16:e|0,o=o.times(1/HW(5,e)),o=TD(a,2,o,o,!0);for(var c,u=new a(5),l=new a(16),p=new a(20);e--;)c=o.times(o),o=o.times(u.plus(c.times(l.times(c).plus(p))))}return a.precision=r,a.rounding=n,bt(o,r,n,!0)};_e.hyperbolicTangent=_e.tanh=function(){var e,r,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(e=i.precision,r=i.rounding,i.precision=e+7,i.rounding=1,Hn(n.sinh(),n.cosh(),i.precision=e,i.rounding=r)):new i(n.s)};_e.inverseCosine=_e.acos=function(){var e=this,r=e.constructor,n=e.abs().cmp(1),i=r.precision,o=r.rounding;return n!==-1?n===0?e.isNeg()?oh(r,i,o):new r(0):new r(NaN):e.isZero()?oh(r,i+4,o).times(.5):(r.precision=i+6,r.rounding=1,e=new r(1).minus(e).div(e.plus(1)).sqrt().atan(),r.precision=i,r.rounding=o,e.times(2))};_e.inverseHyperbolicCosine=_e.acosh=function(){var e,r,n=this,i=n.constructor;return n.lte(1)?new i(n.eq(1)?0:NaN):n.isFinite()?(e=i.precision,r=i.rounding,i.precision=e+Math.max(Math.abs(n.e),n.sd())+4,i.rounding=1,qt=!1,n=n.times(n).minus(1).sqrt().plus(n),qt=!0,i.precision=e,i.rounding=r,n.ln()):new i(n)};_e.inverseHyperbolicSine=_e.asinh=function(){var e,r,n=this,i=n.constructor;return!n.isFinite()||n.isZero()?new i(n):(e=i.precision,r=i.rounding,i.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,i.rounding=1,qt=!1,n=n.times(n).plus(1).sqrt().plus(n),qt=!0,i.precision=e,i.rounding=r,n.ln())};_e.inverseHyperbolicTangent=_e.atanh=function(){var e,r,n,i,o=this,a=o.constructor;return o.isFinite()?o.e>=0?new a(o.abs().eq(1)?o.s/0:o.isZero()?o:NaN):(e=a.precision,r=a.rounding,i=o.sd(),Math.max(i,e)<2*-o.e-1?bt(new a(o),e,r,!0):(a.precision=n=i-o.e,o=Hn(o.plus(1),new a(1).minus(o),n+e,1),a.precision=e+4,a.rounding=1,o=o.ln(),a.precision=e,a.rounding=r,o.times(.5))):new a(NaN)};_e.inverseSine=_e.asin=function(){var e,r,n,i,o=this,a=o.constructor;return o.isZero()?new a(o):(r=o.abs().cmp(1),n=a.precision,i=a.rounding,r!==-1?r===0?(e=oh(a,n+4,i).times(.5),e.s=o.s,e):new a(NaN):(a.precision=n+6,a.rounding=1,o=o.div(new a(1).minus(o.times(o)).sqrt().plus(1)).atan(),a.precision=n,a.rounding=i,o.times(2)))};_e.inverseTangent=_e.atan=function(){var e,r,n,i,o,a,c,u,l,p=this,f=p.constructor,g=f.precision,x=f.rounding;if(p.isFinite()){if(p.isZero())return new f(p);if(p.abs().eq(1)&&g+4<=Hve)return c=oh(f,g+4,x).times(.25),c.s=p.s,c}else{if(!p.s)return new f(NaN);if(g+4<=Hve)return c=oh(f,g+4,x).times(.5),c.s=p.s,c}for(f.precision=u=g+10,f.rounding=1,n=Math.min(28,u/At+2|0),e=n;e;--e)p=p.div(p.times(p).plus(1).sqrt().plus(1));for(qt=!1,r=Math.ceil(u/At),i=1,l=p.times(p),c=new f(p),o=p;e!==-1;)if(o=o.times(l),a=c.minus(o.div(i+=2)),o=o.times(l),c=a.plus(o.div(i+=2)),c.d[r]!==void 0)for(e=r;c.d[e]===a.d[e]&&e--;);return n&&(c=c.times(2<<n-1)),qt=!0,bt(c,f.precision=g,f.rounding=x,!0)};_e.isFinite=function(){return!!this.d};_e.isInteger=_e.isInt=function(){return!!this.d&&Ga(this.e/At)>this.d.length-2};_e.isNaN=function(){return!this.s};_e.isNegative=_e.isNeg=function(){return this.s<0};_e.isPositive=_e.isPos=function(){return this.s>0};_e.isZero=function(){return!!this.d&&this.d[0]===0};_e.lessThan=_e.lt=function(e){return this.cmp(e)<0};_e.lessThanOrEqualTo=_e.lte=function(e){return this.cmp(e)<1};_e.logarithm=_e.log=function(e){var r,n,i,o,a,c,u,l,p=this,f=p.constructor,g=f.precision,x=f.rounding,b=5;if(e==null)e=new f(10),r=!0;else{if(e=new f(e),n=e.d,e.s<0||!n||!n[0]||e.eq(1))return new f(NaN);r=e.eq(10)}if(n=p.d,p.s<0||!n||!n[0]||p.eq(1))return new f(n&&!n[0]?-1/0:p.s!=1?NaN:n?0:1/0);if(r)if(n.length>1)a=!0;else{for(o=n[0];o%10===0;)o/=10;a=o!==1}if(qt=!1,u=g+b,c=_y(p,u),i=r?NW(f,u+10):_y(e,u),l=Hn(c,i,u,1),t6(l.d,o=g,x))do if(u+=10,c=_y(p,u),i=r?NW(f,u+10):_y(e,u),l=Hn(c,i,u,1),!a){+ha(l.d).slice(o+1,o+15)+1==1e14&&(l=bt(l,g+1,0));break}while(t6(l.d,o+=10,x));return qt=!0,bt(l,g,x)};_e.minus=_e.sub=function(e){var r,n,i,o,a,c,u,l,p,f,g,x,b=this,v=b.constructor;if(e=new v(e),!b.d||!e.d)return!b.s||!e.s?e=new v(NaN):b.d?e.s=-e.s:e=new v(e.d||b.s!==e.s?b:NaN),e;if(b.s!=e.s)return e.s=-e.s,b.plus(e);if(p=b.d,x=e.d,u=v.precision,l=v.rounding,!p[0]||!x[0]){if(x[0])e.s=-e.s;else if(p[0])e=new v(b);else return new v(l===3?-0:0);return qt?bt(e,u,l):e}if(n=Ga(e.e/At),f=Ga(b.e/At),p=p.slice(),a=f-n,a){for(g=a<0,g?(r=p,a=-a,c=x.length):(r=x,n=f,c=p.length),i=Math.max(Math.ceil(u/At),c)+2,a>i&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for(i=p.length,c=x.length,g=i<c,g&&(c=i),i=0;i<c;i++)if(p[i]!=x[i]){g=p[i]<x[i];break}a=0}for(g&&(r=p,p=x,x=r,e.s=-e.s),c=p.length,i=x.length-c;i>0;--i)p[c++]=0;for(i=x.length;i>a;){if(p[--i]<x[i]){for(o=i;o&&p[--o]===0;)p[o]=Tf-1;--p[o],p[i]+=Tf}p[i]-=x[i]}for(;p[--c]===0;)p.pop();for(;p[0]===0;p.shift())--n;return p[0]?(e.d=p,e.e=WW(p,n),qt?bt(e,u,l):e):new v(l===3?-0:0)};_e.modulo=_e.mod=function(e){var r,n=this,i=n.constructor;return e=new i(e),!n.d||!e.s||e.d&&!e.d[0]?new i(NaN):!e.d||n.d&&!n.d[0]?bt(new i(n),i.precision,i.rounding):(qt=!1,i.modulo==9?(r=Hn(n,e.abs(),0,3,1),r.s*=e.s):r=Hn(n,e,0,i.modulo,1),r=r.times(e),qt=!0,n.minus(r))};_e.naturalExponential=_e.exp=function(){return Gve(this)};_e.naturalLogarithm=_e.ln=function(){return _y(this)};_e.negated=_e.neg=function(){var e=new this.constructor(this);return e.s=-e.s,bt(e)};_e.plus=_e.add=function(e){var r,n,i,o,a,c,u,l,p,f,g=this,x=g.constructor;if(e=new x(e),!g.d||!e.d)return!g.s||!e.s?e=new x(NaN):g.d||(e=new x(e.d||g.s===e.s?g:NaN)),e;if(g.s!=e.s)return e.s=-e.s,g.minus(e);if(p=g.d,f=e.d,u=x.precision,l=x.rounding,!p[0]||!f[0])return f[0]||(e=new x(g)),qt?bt(e,u,l):e;if(a=Ga(g.e/At),i=Ga(e.e/At),p=p.slice(),o=a-i,o){for(o<0?(n=p,o=-o,c=f.length):(n=f,i=a,c=p.length),a=Math.ceil(u/At),c=a>c?a+1:c+1,o>c&&(o=c,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for(c=p.length,o=f.length,c-o<0&&(o=c,n=f,f=p,p=n),r=0;o;)r=(p[--o]=p[o]+f[o]+r)/Tf|0,p[o]%=Tf;for(r&&(p.unshift(r),++i),c=p.length;p[--c]==0;)p.pop();return e.d=p,e.e=WW(p,i),qt?bt(e,u,l):e};_e.precision=_e.sd=function(e){var r,n=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Dy+e);return n.d?(r=wFt(n.d),e&&n.e+1>r&&(r=n.e+1)):r=NaN,r};_e.round=function(){var e=this,r=e.constructor;return bt(new r(e),e.e+1,r.rounding)};_e.sine=_e.sin=function(){var e,r,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(e=i.precision,r=i.rounding,i.precision=e+Math.max(n.e,n.sd())+At,i.rounding=1,n=NKr(i,DFt(i,n)),i.precision=e,i.rounding=r,bt(og>2?n.neg():n,e,r,!0)):new i(NaN)};_e.squareRoot=_e.sqrt=function(){var e,r,n,i,o,a,c=this,u=c.d,l=c.e,p=c.s,f=c.constructor;if(p!==1||!u||!u[0])return new f(!p||p<0&&(!u||u[0])?NaN:u?c:1/0);for(qt=!1,p=Math.sqrt(+c),p==0||p==1/0?(r=ha(u),(r.length+l)%2==0&&(r+="0"),p=Math.sqrt(r),l=Ga((l+1)/2)-(l<0||l%2),p==1/0?r="5e"+l:(r=p.toExponential(),r=r.slice(0,r.indexOf("e")+1)+l),i=new f(r)):i=new f(p.toString()),n=(l=f.precision)+3;;)if(a=i,i=a.plus(Hn(c,a,n+2,1)).times(.5),ha(a.d).slice(0,n)===(r=ha(i.d)).slice(0,n))if(r=r.slice(n-3,n+1),r=="9999"||!o&&r=="4999"){if(!o&&(bt(a,l+1,0),a.times(a).eq(c))){i=a;break}n+=4,o=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&(bt(i,l+1,1),e=!i.times(i).eq(c));break}return qt=!0,bt(i,l,f.rounding,e)};_e.tangent=_e.tan=function(){var e,r,n=this,i=n.constructor;return n.isFinite()?n.isZero()?new i(n):(e=i.precision,r=i.rounding,i.precision=e+10,i.rounding=1,n=n.sin(),n.s=1,n=Hn(n,new i(1).minus(n.times(n)).sqrt(),e+10,0),i.precision=e,i.rounding=r,bt(og==2||og==4?n.neg():n,e,r,!0)):new i(NaN)};_e.times=_e.mul=function(e){var r,n,i,o,a,c,u,l,p,f=this,g=f.constructor,x=f.d,b=(e=new g(e)).d;if(e.s*=f.s,!x||!x[0]||!b||!b[0])return new g(!e.s||x&&!x[0]&&!b||b&&!b[0]&&!x?NaN:!x||!b?e.s/0:e.s*0);for(n=Ga(f.e/At)+Ga(e.e/At),l=x.length,p=b.length,l<p&&(a=x,x=b,b=a,c=l,l=p,p=c),a=[],c=l+p,i=c;i--;)a.push(0);for(i=p;--i>=0;){for(r=0,o=l+i;o>i;)u=a[o]+b[i]*x[o-i-1]+r,a[o--]=u%Tf|0,r=u/Tf|0;a[o]=(a[o]+r)%Tf|0}for(;!a[--c];)a.pop();return r?++n:a.shift(),e.d=a,e.e=WW(a,n),qt?bt(e,g.precision,g.rounding):e};_e.toBinary=function(e,r){return uEe(this,2,e,r)};_e.toDecimalPlaces=_e.toDP=function(e,r){var n=this,i=n.constructor;return n=new i(n),e===void 0?n:(iu(e,0,Ay),r===void 0?r=i.rounding:iu(r,0,8),bt(n,e+n.e+1,r))};_e.toExponential=function(e,r){var n,i=this,o=i.constructor;return e===void 0?n=ah(i,!0):(iu(e,0,Ay),r===void 0?r=o.rounding:iu(r,0,8),i=bt(new o(i),e+1,r),n=ah(i,!0,e+1)),i.isNeg()&&!i.isZero()?"-"+n:n};_e.toFixed=function(e,r){var n,i,o=this,a=o.constructor;return e===void 0?n=ah(o):(iu(e,0,Ay),r===void 0?r=a.rounding:iu(r,0,8),i=bt(new a(o),e+o.e+1,r),n=ah(i,!1,e+i.e+1)),o.isNeg()&&!o.isZero()?"-"+n:n};_e.toFraction=function(e){var r,n,i,o,a,c,u,l,p,f,g,x,b=this,v=b.d,S=b.constructor;if(!v)return new S(b);if(p=n=new S(1),i=l=new S(0),r=new S(i),a=r.e=wFt(v)-b.e-1,c=a%At,r.d[0]=us(10,c<0?At+c:c),e==null)e=a>0?r:p;else{if(u=new S(e),!u.isInt()||u.lt(p))throw Error(Dy+u);e=u.gt(r)?a>0?r:p:u}for(qt=!1,u=new S(ha(v)),f=S.precision,S.precision=a=v.length*At*2;g=Hn(u,r,0,1,1),o=n.plus(g.times(i)),o.cmp(e)!=1;)n=i,i=o,o=p,p=l.plus(g.times(o)),l=o,o=r,r=u.minus(g.times(o)),u=o;return o=Hn(e.minus(n),i,0,1,1),l=l.plus(o.times(p)),n=n.plus(o.times(i)),l.s=p.s=b.s,x=Hn(p,i,a,1).minus(b).abs().cmp(Hn(l,n,a,1).minus(b).abs())<1?[p,i]:[l,n],S.precision=f,qt=!0,x};_e.toHexadecimal=_e.toHex=function(e,r){return uEe(this,16,e,r)};_e.toNearest=function(e,r){var n=this,i=n.constructor;if(n=new i(n),e==null){if(!n.d)return n;e=new i(1),r=i.rounding}else{if(e=new i(e),r===void 0?r=i.rounding:iu(r,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(qt=!1,n=Hn(n,e,0,r,1).times(e),qt=!0,bt(n)):(e.s=n.s,n=e),n};_e.toNumber=function(){return+this};_e.toOctal=function(e,r){return uEe(this,8,e,r)};_e.toPower=_e.pow=function(e){var r,n,i,o,a,c,u=this,l=u.constructor,p=+(e=new l(e));if(!u.d||!e.d||!u.d[0]||!e.d[0])return new l(us(+u,p));if(u=new l(u),u.eq(1))return u;if(i=l.precision,a=l.rounding,e.eq(1))return bt(u,i,a);if(r=Ga(e.e/At),r>=e.d.length-1&&(n=p<0?-p:p)<=FKr)return o=SFt(l,u,n,i),e.s<0?new l(1).div(o):bt(o,i,a);if(c=u.s,c<0){if(r<e.d.length-1)return new l(NaN);if(e.d[r]&1||(c=1),u.e==0&&u.d[0]==1&&u.d.length==1)return u.s=c,u}return n=us(+u,p),r=n==0||!isFinite(n)?Ga(p*(Math.log("0."+ha(u.d))/Math.LN10+u.e+1)):new l(n+"").e,r>l.maxE+1||r<l.minE-1?new l(r>0?c/0:0):(qt=!1,l.rounding=u.s=1,n=Math.min(12,(r+"").length),o=Gve(e.times(_y(u,i+n)),i),o.d&&(o=bt(o,i+5,1),t6(o.d,i,a)&&(r=i+10,o=bt(Gve(e.times(_y(u,r+n)),r),r+5,1),+ha(o.d).slice(i+1,i+15)+1==1e14&&(o=bt(o,i+1,0)))),o.s=c,qt=!0,l.rounding=a,bt(o,i,a))};_e.toPrecision=function(e,r){var n,i=this,o=i.constructor;return e===void 0?n=ah(i,i.e<=o.toExpNeg||i.e>=o.toExpPos):(iu(e,1,Ay),r===void 0?r=o.rounding:iu(r,0,8),i=bt(new o(i),e,r),n=ah(i,e<=i.e||i.e<=o.toExpNeg,e)),i.isNeg()&&!i.isZero()?"-"+n:n};_e.toSignificantDigits=_e.toSD=function(e,r){var n=this,i=n.constructor;return e===void 0?(e=i.precision,r=i.rounding):(iu(e,1,Ay),r===void 0?r=i.rounding:iu(r,0,8)),bt(new i(n),e,r)};_e.toString=function(){var e=this,r=e.constructor,n=ah(e,e.e<=r.toExpNeg||e.e>=r.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n};_e.truncated=_e.trunc=function(){return bt(new this.constructor(this),this.e+1,1)};_e.valueOf=_e.toJSON=function(){var e=this,r=e.constructor,n=ah(e,e.e<=r.toExpNeg||e.e>=r.toExpPos);return e.isNeg()?"-"+n:n};function ha(e){var r,n,i,o=e.length-1,a="",c=e[0];if(o>0){for(a+=c,r=1;r<o;r++)i=e[r]+"",n=At-i.length,n&&(a+=Sy(n)),a+=i;c=e[r],i=c+"",n=At-i.length,n&&(a+=Sy(n))}else if(c===0)return"0";for(;c%10===0;)c/=10;return a+c}function iu(e,r,n){if(e!==~~e||e<r||e>n)throw Error(Dy+e)}function t6(e,r,n,i){var o,a,c,u;for(a=e[0];a>=10;a/=10)--r;return--r<0?(r+=At,o=0):(o=Math.ceil((r+1)/At),r%=At),a=us(10,At-r),u=e[o]%a|0,i==null?r<3?(r==0?u=u/100|0:r==1&&(u=u/10|0),c=n<4&&u==99999||n>3&&u==49999||u==5e4||u==0):c=(n<4&&u+1==a||n>3&&u+1==a/2)&&(e[o+1]/a/100|0)==us(10,r-2)-1||(u==a/2||u==0)&&(e[o+1]/a/100|0)==0:r<4?(r==0?u=u/1e3|0:r==1?u=u/100|0:r==2&&(u=u/10|0),c=(i||n<4)&&u==9999||!i&&n>3&&u==4999):c=((i||n<4)&&u+1==a||!i&&n>3&&u+1==a/2)&&(e[o+1]/a/1e3|0)==us(10,r-3)-1,c}function AW(e,r,n){for(var i,o=[0],a,c=0,u=e.length;c<u;){for(a=o.length;a--;)o[a]*=r;for(o[0]+=Uve.indexOf(e.charAt(c++)),i=0;i<o.length;i++)o[i]>n-1&&(o[i+1]===void 0&&(o[i+1]=0),o[i+1]+=o[i]/n|0,o[i]%=n)}return o.reverse()}function kKr(e,r){var n,i,o;if(r.isZero())return r;i=r.d.length,i<32?(n=Math.ceil(i/3),o=(1/HW(4,n)).toString()):(n=16,o="2.3283064365386962890625e-10"),e.precision+=n,r=TD(e,1,r.times(o),new e(1));for(var a=n;a--;){var c=r.times(r);r=c.times(c).minus(c).times(8).plus(1)}return e.precision-=n,r}var Hn=function(){function e(i,o,a){var c,u=0,l=i.length;for(i=i.slice();l--;)c=i[l]*o+u,i[l]=c%a|0,u=c/a|0;return u&&i.unshift(u),i}function r(i,o,a,c){var u,l;if(a!=c)l=a>c?1:-1;else for(u=l=0;u<a;u++)if(i[u]!=o[u]){l=i[u]>o[u]?1:-1;break}return l}function n(i,o,a,c){for(var u=0;a--;)i[a]-=u,u=i[a]<o[a]?1:0,i[a]=u*c+i[a]-o[a];for(;!i[0]&&i.length>1;)i.shift()}return function(i,o,a,c,u,l){var p,f,g,x,b,v,S,T,P,R,M,L,N,V,W,z,q,X,G,oe,ce=i.constructor,ge=i.s==o.s?1:-1,Q=i.d,Z=o.d;if(!Q||!Q[0]||!Z||!Z[0])return new ce(!i.s||!o.s||(Q?Z&&Q[0]==Z[0]:!Z)?NaN:Q&&Q[0]==0||!Z?ge*0:ge/0);for(l?(b=1,f=i.e-o.e):(l=Tf,b=At,f=Ga(i.e/b)-Ga(o.e/b)),G=Z.length,q=Q.length,P=new ce(ge),R=P.d=[],g=0;Z[g]==(Q[g]||0);g++);if(Z[g]>(Q[g]||0)&&f--,a==null?(V=a=ce.precision,c=ce.rounding):u?V=a+(i.e-o.e)+1:V=a,V<0)R.push(1),v=!0;else{if(V=V/b+2|0,g=0,G==1){for(x=0,Z=Z[0],V++;(g<q||x)&&V--;g++)W=x*l+(Q[g]||0),R[g]=W/Z|0,x=W%Z|0;v=x||g<q}else{for(x=l/(Z[0]+1)|0,x>1&&(Z=e(Z,x,l),Q=e(Q,x,l),G=Z.length,q=Q.length),z=G,M=Q.slice(0,G),L=M.length;L<G;)M[L++]=0;oe=Z.slice(),oe.unshift(0),X=Z[0],Z[1]>=l/2&&++X;do x=0,p=r(Z,M,G,L),p<0?(N=M[0],G!=L&&(N=N*l+(M[1]||0)),x=N/X|0,x>1?(x>=l&&(x=l-1),S=e(Z,x,l),T=S.length,L=M.length,p=r(S,M,T,L),p==1&&(x--,n(S,G<T?oe:Z,T,l))):(x==0&&(p=x=1),S=Z.slice()),T=S.length,T<L&&S.unshift(0),n(M,S,L,l),p==-1&&(L=M.length,p=r(Z,M,G,L),p<1&&(x++,n(M,G<L?oe:Z,L,l))),L=M.length):p===0&&(x++,M=[0]),R[g++]=x,p&&M[0]?M[L++]=Q[z]||0:(M=[Q[z]],L=1);while((z++<q||M[0]!==void 0)&&V--);v=M[0]!==void 0}R[0]||R.shift()}if(b==1)P.e=f,xFt=v;else{for(g=1,x=R[0];x>=10;x/=10)g++;P.e=g+f*b-1,bt(P,u?a+P.e+1:a,c,v)}return P}}();function bt(e,r,n,i){var o,a,c,u,l,p,f,g,x,b=e.constructor;e:if(r!=null){if(g=e.d,!g)return e;for(o=1,u=g[0];u>=10;u/=10)o++;if(a=r-o,a<0)a+=At,c=r,f=g[x=0],l=f/us(10,o-c-1)%10|0;else if(x=Math.ceil((a+1)/At),u=g.length,x>=u)if(i){for(;u++<=x;)g.push(0);f=l=0,o=1,a%=At,c=a-At+1}else break e;else{for(f=u=g[x],o=1;u>=10;u/=10)o++;a%=At,c=a-At+o,l=c<0?0:f/us(10,o-c-1)%10|0}if(i=i||r<0||g[x+1]!==void 0||(c<0?f:f%us(10,o-c-1)),p=n<4?(l||i)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||i||n==6&&(a>0?c>0?f/us(10,o-c):0:g[x-1])%10&1||n==(e.s<0?8:7)),r<1||!g[0])return g.length=0,p?(r-=e.e+1,g[0]=us(10,(At-r%At)%At),e.e=-r||0):g[0]=e.e=0,e;if(a==0?(g.length=x,u=1,x--):(g.length=x+1,u=us(10,At-a),g[x]=c>0?(f/us(10,o-c)%us(10,c)|0)*u:0),p)for(;;)if(x==0){for(a=1,c=g[0];c>=10;c/=10)a++;for(c=g[0]+=u,u=1;c>=10;c/=10)u++;a!=u&&(e.e++,g[0]==Tf&&(g[0]=1));break}else{if(g[x]+=u,g[x]!=Tf)break;g[x--]=0,u=1}for(a=g.length;g[--a]===0;)g.pop()}return qt&&(e.e>b.maxE?(e.d=null,e.e=NaN):e.e<b.minE&&(e.e=0,e.d=[0])),e}function ah(e,r,n){if(!e.isFinite())return CFt(e);var i,o=e.e,a=ha(e.d),c=a.length;return r?(n&&(i=n-c)>0?a=a.charAt(0)+"."+a.slice(1)+Sy(i):c>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(e.e<0?"e":"e+")+e.e):o<0?(a="0."+Sy(-o-1)+a,n&&(i=n-c)>0&&(a+=Sy(i))):o>=c?(a+=Sy(o+1-c),n&&(i=n-o-1)>0&&(a=a+"."+Sy(i))):((i=o+1)<c&&(a=a.slice(0,i)+"."+a.slice(i)),n&&(i=n-c)>0&&(o+1===c&&(a+="."),a+=Sy(i))),a}function WW(e,r){var n=e[0];for(r*=At;n>=10;n/=10)r++;return r}function NW(e,r,n){if(r>RKr)throw qt=!0,n&&(e.precision=n),Error(yFt);return bt(new e(kW),r,1,!0)}function oh(e,r,n){if(r>Hve)throw Error(yFt);return bt(new e(MW),r,n,!0)}function wFt(e){var r=e.length-1,n=r*At+1;if(r=e[r],r){for(;r%10==0;r/=10)n--;for(r=e[0];r>=10;r/=10)n++}return n}function Sy(e){for(var r="";e--;)r+="0";return r}function SFt(e,r,n,i){var o,a=new e(1),c=Math.ceil(i/At+4);for(qt=!1;;){if(n%2&&(a=a.times(r),bPt(a.d,c)&&(o=!0)),n=Ga(n/2),n===0){n=a.d.length-1,o&&a.d[n]===0&&++a.d[n];break}r=r.times(r),bPt(r.d,c)}return qt=!0,a}function yPt(e){return e.d[e.d.length-1]&1}function _Ft(e,r,n){for(var i,o,a=new e(r[0]),c=0;++c<r.length;){if(o=new e(r[c]),!o.s){a=o;break}i=a.cmp(o),(i===n||i===0&&a.s===n)&&(a=o)}return a}function Gve(e,r){var n,i,o,a,c,u,l,p=0,f=0,g=0,x=e.constructor,b=x.rounding,v=x.precision;if(!e.d||!e.d[0]||e.e>17)return new x(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(r==null?(qt=!1,l=v):l=r,u=new x(.03125);e.e>-2;)e=e.times(u),g+=5;for(i=Math.log(us(2,g))/Math.LN10*2+5|0,l+=i,n=a=c=new x(1),x.precision=l;;){if(a=bt(a.times(e),l,1),n=n.times(++f),u=c.plus(Hn(a,n,l,1)),ha(u.d).slice(0,l)===ha(c.d).slice(0,l)){for(o=g;o--;)c=bt(c.times(c),l,1);if(r==null)if(p<3&&t6(c.d,l-i,b,p))x.precision=l+=10,n=a=u=new x(1),f=0,p++;else return bt(c,x.precision=v,b,qt=!0);else return x.precision=v,c}c=u}}function _y(e,r){var n,i,o,a,c,u,l,p,f,g,x,b=1,v=10,S=e,T=S.d,P=S.constructor,R=P.rounding,M=P.precision;if(S.s<0||!T||!T[0]||!S.e&&T[0]==1&&T.length==1)return new P(T&&!T[0]?-1/0:S.s!=1?NaN:T?0:S);if(r==null?(qt=!1,f=M):f=r,P.precision=f+=v,n=ha(T),i=n.charAt(0),Math.abs(a=S.e)<15e14){for(;i<7&&i!=1||i==1&&n.charAt(1)>3;)S=S.times(e),n=ha(S.d),i=n.charAt(0),b++;a=S.e,i>1?(S=new P("0."+n),a++):S=new P(i+"."+n.slice(1))}else return p=NW(P,f+2,M).times(a+""),S=_y(new P(i+"."+n.slice(1)),f-v).plus(p),P.precision=M,r==null?bt(S,M,R,qt=!0):S;for(g=S,l=c=S=Hn(S.minus(1),S.plus(1),f,1),x=bt(S.times(S),f,1),o=3;;){if(c=bt(c.times(x),f,1),p=l.plus(Hn(c,new P(o),f,1)),ha(p.d).slice(0,f)===ha(l.d).slice(0,f))if(l=l.times(2),a!==0&&(l=l.plus(NW(P,f+2,M).times(a+""))),l=Hn(l,new P(b),f,1),r==null)if(t6(l.d,f-v,R,u))P.precision=f+=v,p=c=S=Hn(g.minus(1),g.plus(1),f,1),x=bt(S.times(S),f,1),o=u=1;else return bt(l,P.precision=M,R,qt=!0);else return P.precision=M,l;l=p,o+=2}}function CFt(e){return String(e.s*e.s/0)}function OW(e,r){var n,i,o;for((n=r.indexOf("."))>-1&&(r=r.replace(".","")),(i=r.search(/e/i))>0?(n<0&&(n=i),n+=+r.slice(i+1),r=r.substring(0,i)):n<0&&(n=r.length),i=0;r.charCodeAt(i)===48;i++);for(o=r.length;r.charCodeAt(o-1)===48;--o);if(r=r.slice(i,o),r){if(o-=i,e.e=n=n-i-1,e.d=[],i=(n+1)%At,n<0&&(i+=At),i<o){for(i&&e.d.push(+r.slice(0,i)),o-=At;i<o;)e.d.push(+r.slice(i,i+=At));r=r.slice(i),i=At-r.length}else i-=o;for(;i--;)r+="0";e.d.push(+r),qt&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function MKr(e,r){var n,i,o,a,c,u,l,p,f;if(r.indexOf("_")>-1){if(r=r.replace(/(\d)_(?=\d)/g,"$1"),EFt.test(r))return OW(e,r)}else if(r==="Infinity"||r==="NaN")return+r||(e.s=NaN),e.e=NaN,e.d=null,e;if(IKr.test(r))n=16,r=r.toLowerCase();else if(OKr.test(r))n=2;else if(PKr.test(r))n=8;else throw Error(Dy+r);for(a=r.search(/p/i),a>0?(l=+r.slice(a+1),r=r.substring(2,a)):r=r.slice(2),a=r.indexOf("."),c=a>=0,i=e.constructor,c&&(r=r.replace(".",""),u=r.length,a=u-a,o=SFt(i,new i(n),a,a*2)),p=AW(r,n,Tf),f=p.length-1,a=f;p[a]===0;--a)p.pop();return a<0?new i(e.s*0):(e.e=WW(p,f),e.d=p,qt=!1,c&&(e=Hn(e,o,u*4)),l&&(e=e.times(Math.abs(l)<54?us(2,l):ID.pow(2,l))),qt=!0,e)}function NKr(e,r){var n,i=r.d.length;if(i<3)return r.isZero()?r:TD(e,2,r,r);n=1.4*Math.sqrt(i),n=n>16?16:n|0,r=r.times(1/HW(5,n)),r=TD(e,2,r,r);for(var o,a=new e(5),c=new e(16),u=new e(20);n--;)o=r.times(r),r=r.times(a.plus(o.times(c.times(o).minus(u))));return r}function TD(e,r,n,i,o){var a,c,u,l,p=1,f=e.precision,g=Math.ceil(f/At);for(qt=!1,l=n.times(n),u=new e(i);;){if(c=Hn(u.times(l),new e(r++*r++),f,1),u=o?i.plus(c):i.minus(c),i=Hn(c.times(l),new e(r++*r++),f,1),c=u.plus(i),c.d[g]!==void 0){for(a=g;c.d[a]===u.d[a]&&a--;);if(a==-1)break}a=u,u=i,i=c,c=a,p++}return qt=!0,c.d.length=g+1,c}function HW(e,r){for(var n=e;--r;)n*=e;return n}function DFt(e,r){var n,i=r.s<0,o=oh(e,e.precision,1),a=o.times(.5);if(r=r.abs(),r.lte(a))return og=i?4:1,r;if(n=r.divToInt(o),n.isZero())og=i?3:2;else{if(r=r.minus(n.times(o)),r.lte(a))return og=yPt(n)?i?2:3:i?4:1,r;og=yPt(n)?i?1:4:i?3:2}return r.minus(o).abs()}function uEe(e,r,n,i){var o,a,c,u,l,p,f,g,x,b=e.constructor,v=n!==void 0;if(v?(iu(n,1,Ay),i===void 0?i=b.rounding:iu(i,0,8)):(n=b.precision,i=b.rounding),!e.isFinite())f=CFt(e);else{for(f=ah(e),c=f.indexOf("."),v?(o=2,r==16?n=n*4-3:r==8&&(n=n*3-2)):o=r,c>=0&&(f=f.replace(".",""),x=new b(1),x.e=f.length-c,x.d=AW(ah(x),10,o),x.e=x.d.length),g=AW(f,10,o),a=l=g.length;g[--l]==0;)g.pop();if(!g[0])f=v?"0p+0":"0";else{if(c<0?a--:(e=new b(e),e.d=g,e.e=a,e=Hn(e,x,n,i,0,o),g=e.d,a=e.e,p=xFt),c=g[n],u=o/2,p=p||g[n+1]!==void 0,p=i<4?(c!==void 0||p)&&(i===0||i===(e.s<0?3:2)):c>u||c===u&&(i===4||p||i===6&&g[n-1]&1||i===(e.s<0?8:7)),g.length=n,p)for(;++g[--n]>o-1;)g[n]=0,n||(++a,g.unshift(1));for(l=g.length;!g[l-1];--l);for(c=0,f="";c<l;c++)f+=Uve.charAt(g[c]);if(v){if(l>1)if(r==16||r==8){for(c=r==16?4:3,--l;l%c;l++)f+="0";for(g=AW(f,o,r),l=g.length;!g[l-1];--l);for(c=1,f="1.";c<l;c++)f+=Uve.charAt(g[c])}else f=f.charAt(0)+"."+f.slice(1);f=f+(a<0?"p":"p+")+a}else if(a<0){for(;++a;)f="0"+f;f="0."+f}else if(++a>l)for(a-=l;a--;)f+="0";else a<l&&(f=f.slice(0,a)+"."+f.slice(a))}f=(r==16?"0x":r==2?"0b":r==8?"0o":"")+f}return e.s<0?"-"+f:f}function bPt(e,r){if(e.length>r)return e.length=r,!0}function LKr(e){return new this(e).abs()}function $Kr(e){return new this(e).acos()}function BKr(e){return new this(e).acosh()}function qKr(e,r){return new this(e).plus(r)}function jKr(e){return new this(e).asin()}function UKr(e){return new this(e).asinh()}function WKr(e){return new this(e).atan()}function HKr(e){return new this(e).atanh()}function GKr(e,r){e=new this(e),r=new this(r);var n,i=this.precision,o=this.rounding,a=i+4;return!e.s||!r.s?n=new this(NaN):!e.d&&!r.d?(n=oh(this,a,1).times(r.s>0?.25:.75),n.s=e.s):!r.d||e.isZero()?(n=r.s<0?oh(this,i,o):new this(0),n.s=e.s):!e.d||r.isZero()?(n=oh(this,a,1).times(.5),n.s=e.s):r.s<0?(this.precision=a,this.rounding=1,n=this.atan(Hn(e,r,a,1)),r=oh(this,a,1),this.precision=i,this.rounding=o,n=e.s<0?n.minus(r):n.plus(r)):n=this.atan(Hn(e,r,a,1)),n}function zKr(e){return new this(e).cbrt()}function VKr(e){return bt(e=new this(e),e.e+1,2)}function KKr(e,r,n){return new this(e).clamp(r,n)}function YKr(e){if(!e||typeof e!="object")throw Error(UW+"Object expected");var r,n,i,o=e.defaults===!0,a=["precision",1,Ay,"rounding",0,8,"toExpNeg",-CD,0,"toExpPos",0,CD,"maxE",0,CD,"minE",-CD,0,"modulo",0,9];for(r=0;r<a.length;r+=3)if(n=a[r],o&&(this[n]=Wve[n]),(i=e[n])!==void 0)if(Ga(i)===i&&i>=a[r+1]&&i<=a[r+2])this[n]=i;else throw Error(Dy+n+": "+i);if(n="crypto",o&&(this[n]=Wve[n]),(i=e[n])!==void 0)if(i===!0||i===!1||i===0||i===1)if(i)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[n]=!0;else throw Error(bFt);else this[n]=!1;else throw Error(Dy+n+": "+i);return this}function JKr(e){return new this(e).cos()}function QKr(e){return new this(e).cosh()}function TFt(e){var r,n,i;function o(a){var c,u,l,p=this;if(!(p instanceof o))return new o(a);if(p.constructor=o,vPt(a)){p.s=a.s,qt?!a.d||a.e>o.maxE?(p.e=NaN,p.d=null):a.e<o.minE?(p.e=0,p.d=[0]):(p.e=a.e,p.d=a.d.slice()):(p.e=a.e,p.d=a.d?a.d.slice():a.d);return}if(l=typeof a,l==="number"){if(a===0){p.s=1/a<0?-1:1,p.e=0,p.d=[0];return}if(a<0?(a=-a,p.s=-1):p.s=1,a===~~a&&a<1e7){for(c=0,u=a;u>=10;u/=10)c++;qt?c>o.maxE?(p.e=NaN,p.d=null):c<o.minE?(p.e=0,p.d=[0]):(p.e=c,p.d=[a]):(p.e=c,p.d=[a]);return}if(a*0!==0){a||(p.s=NaN),p.e=NaN,p.d=null;return}return OW(p,a.toString())}if(l==="string")return(u=a.charCodeAt(0))===45?(a=a.slice(1),p.s=-1):(u===43&&(a=a.slice(1)),p.s=1),EFt.test(a)?OW(p,a):MKr(p,a);if(l==="bigint")return a<0?(a=-a,p.s=-1):p.s=1,OW(p,a.toString());throw Error(Dy+a)}if(o.prototype=_e,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=YKr,o.clone=TFt,o.isDecimal=vPt,o.abs=LKr,o.acos=$Kr,o.acosh=BKr,o.add=qKr,o.asin=jKr,o.asinh=UKr,o.atan=WKr,o.atanh=HKr,o.atan2=GKr,o.cbrt=zKr,o.ceil=VKr,o.clamp=KKr,o.cos=JKr,o.cosh=QKr,o.div=ZKr,o.exp=XKr,o.floor=eYr,o.hypot=tYr,o.ln=rYr,o.log=nYr,o.log10=oYr,o.log2=iYr,o.max=sYr,o.min=aYr,o.mod=cYr,o.mul=uYr,o.pow=lYr,o.random=pYr,o.round=fYr,o.sign=dYr,o.sin=hYr,o.sinh=mYr,o.sqrt=gYr,o.sub=xYr,o.sum=yYr,o.tan=bYr,o.tanh=vYr,o.trunc=EYr,e===void 0&&(e={}),e&&e.defaults!==!0)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],r=0;r<i.length;)e.hasOwnProperty(n=i[r++])||(e[n]=this[n]);return o.config(e),o}function ZKr(e,r){return new this(e).div(r)}function XKr(e){return new this(e).exp()}function eYr(e){return bt(e=new this(e),e.e+1,3)}function tYr(){var e,r,n=new this(0);for(qt=!1,e=0;e<arguments.length;)if(r=new this(arguments[e++]),r.d)n.d&&(n=n.plus(r.times(r)));else{if(r.s)return qt=!0,new this(1/0);n=r}return qt=!0,n.sqrt()}function vPt(e){return e instanceof ID||e&&e.toStringTag===vFt||!1}function rYr(e){return new this(e).ln()}function nYr(e,r){return new this(e).log(r)}function iYr(e){return new this(e).log(2)}function oYr(e){return new this(e).log(10)}function sYr(){return _Ft(this,arguments,-1)}function aYr(){return _Ft(this,arguments,1)}function cYr(e,r){return new this(e).mod(r)}function uYr(e,r){return new this(e).mul(r)}function lYr(e,r){return new this(e).pow(r)}function pYr(e){var r,n,i,o,a=0,c=new this(1),u=[];if(e===void 0?e=this.precision:iu(e,1,Ay),i=Math.ceil(e/At),this.crypto)if(crypto.getRandomValues)for(r=crypto.getRandomValues(new Uint32Array(i));a<i;)o=r[a],o>=429e7?r[a]=crypto.getRandomValues(new Uint32Array(1))[0]:u[a++]=o%1e7;else if(crypto.randomBytes){for(r=crypto.randomBytes(i*=4);a<i;)o=r[a]+(r[a+1]<<8)+(r[a+2]<<16)+((r[a+3]&127)<<24),o>=214e7?crypto.randomBytes(4).copy(r,a):(u.push(o%1e7),a+=4);a=i/4}else throw Error(bFt);else for(;a<i;)u[a++]=Math.random()*1e7|0;for(i=u[--a],e%=At,i&&e&&(o=us(10,At-e),u[a]=(i/o|0)*o);u[a]===0;a--)u.pop();if(a<0)n=0,u=[0];else{for(n=-1;u[0]===0;n-=At)u.shift();for(i=1,o=u[0];o>=10;o/=10)i++;i<At&&(n-=At-i)}return c.e=n,c.d=u,c}function fYr(e){return bt(e=new this(e),e.e+1,this.rounding)}function dYr(e){return e=new this(e),e.d?e.d[0]?e.s:0*e.s:e.s||NaN}function hYr(e){return new this(e).sin()}function mYr(e){return new this(e).sinh()}function gYr(e){return new this(e).sqrt()}function xYr(e,r){return new this(e).sub(r)}function yYr(){var e=0,r=arguments,n=new this(r[e]);for(qt=!1;n.s&&++e<r.length;)n=n.plus(r[e]);return qt=!0,bt(n,this.precision,this.rounding)}function bYr(e){return new this(e).tan()}function vYr(e){return new this(e).tanh()}function EYr(e){return bt(e=new this(e),e.e+1,1)}_e[Symbol.for("nodejs.util.inspect.custom")]=_e.toString;_e[Symbol.toStringTag]="Decimal";var ID=_e.constructor=TFt(Wve);kW=new ID(kW);MW=new ID(MW);var o6=ID;function LW(e){return e===null?e:Array.isArray(e)?e.map(LW):typeof e=="object"?wYr(e)?SYr(e):cEe(e,LW):e}function wYr(e){return e!==null&&typeof e=="object"&&typeof e.$type=="string"}function SYr({$type:e,value:r}){switch(e){case"BigInt":return BigInt(r);case"Bytes":{let{buffer:n,byteOffset:i,byteLength:o}=Cy.Buffer.from(r,"base64");return new Uint8Array(n,i,o)}case"DateTime":return new Date(r);case"Decimal":return new o6(r);case"Json":return JSON.parse(r);default:jW(r,"Unknown tagged value")}}de();ue();le();pe();fe();de();ue();le();pe();fe();function lEe(e){return e.substring(0,1).toLowerCase()+e.substring(1)}de();ue();le();pe();fe();function pEe(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function AFt(e){return e.toString()!=="Invalid Date"}de();ue();le();pe();fe();function fEe(e){return ID.isDecimal(e)?!0:e!==null&&typeof e=="object"&&typeof e.s=="number"&&typeof e.e=="number"&&typeof e.toFixed=="function"&&Array.isArray(e.d)}de();ue();le();pe();fe();de();ue();le();pe();fe();var Iyi=OD(zVr()),_Yr={red:aEe,gray:lKr,dim:uFt,bold:cFt,underline:oKr,highlightSource:e=>e.highlight()},CYr={red:e=>e,gray:e=>e,dim:e=>e,bold:e=>e,underline:e=>e,highlightSource:e=>e};function DYr({message:e,originalMethod:r,isPanic:n,callArguments:i}){return{functionName:`prisma.${r}()`,message:e,isPanic:n??!1,callArguments:i}}function TYr({functionName:e,location:r,message:n,isPanic:i,contextLines:o,callArguments:a},c){let u=[""],l=r?" in":":";if(i?(u.push(c.red(`Oops, an unknown error occurred! This is ${c.bold("on us")}, you did nothing wrong.`)),u.push(c.red(`It occurred in the ${c.bold(`\`${e}\``)} invocation${l}`))):u.push(c.red(`Invalid ${c.bold(`\`${e}\``)} invocation${l}`)),r&&u.push(c.underline(AYr(r))),o){u.push("");let p=[o.toString()];a&&(p.push(a),p.push(c.dim(")"))),u.push(p.join("")),a&&u.push("")}else u.push(""),a&&u.push(a),u.push("");return u.push(n),u.join(`
|
|
944
944
|
`)}function AYr(e){let r=[e.fileName];return e.lineNumber&&r.push(String(e.lineNumber)),e.columnNumber&&r.push(String(e.columnNumber)),r.join(":")}function OFt(e){let r=e.showColors?_Yr:CYr,n;return typeof $getTemplateParameters<"u"?n=$getTemplateParameters(e,r):n=DYr(e),TYr(n,r)}de();ue();le();pe();fe();var OYr=OD(XPt());de();ue();le();pe();fe();function IYr(e,r,n){let i=IFt(e),o=PYr(i),a=RYr(o);a?NFt(a,r,n):r.addErrorMessage(()=>"Unknown error")}function IFt(e){return e.errors.flatMap(r=>r.kind==="Union"?IFt(r):[r])}function PYr(e){let r=new Map,n=[];for(let i of e){if(i.kind!=="InvalidArgumentType"){n.push(i);continue}let o=`${i.selectionPath.join(".")}:${i.argumentPath.join(".")}`,a=r.get(o);a?r.set(o,{...i,argument:{...i.argument,typeNames:FYr(a.argument.typeNames,i.argument.typeNames)}}):r.set(o,i)}return n.push(...r.values()),n}function FYr(e,r){return[...new Set(e.concat(r))]}function RYr(e){return AKr(e,(r,n)=>{let i=EPt(r),o=EPt(n);return i!==o?i-o:wPt(r)-wPt(n)})}function EPt(e){let r=0;return Array.isArray(e.selectionPath)&&(r+=e.selectionPath.length),Array.isArray(e.argumentPath)&&(r+=e.argumentPath.length),r}function wPt(e){switch(e.kind){case"InvalidArgumentValue":case"ValueTooLarge":return 20;case"InvalidArgumentType":return 10;case"RequiredArgumentMissing":return-10;default:return 0}}de();ue();le();pe();fe();var ch=class{constructor(e,r){this.name=e,this.value=r,ye(this,"isRequired",!1)}makeRequired(){return this.isRequired=!0,this}write(e){let{colors:{green:r}}=e.context;e.addMarginSymbol(r(this.isRequired?"+":"?")),e.write(r(this.name)),this.isRequired||e.write(r("?")),e.write(r(": ")),typeof this.value=="string"?e.write(r(this.value)):e.write(this.value)}};de();ue();le();pe();fe();de();ue();le();pe();fe();var PFt=class{constructor(e=0,r){this.context=r,ye(this,"lines",[]),ye(this,"currentLine",""),ye(this,"currentIndent",0),ye(this,"marginSymbol"),ye(this,"afterNextNewLineCallback"),this.currentIndent=e}write(e){return typeof e=="string"?this.currentLine+=e:e.write(this),this}writeJoined(e,r,n=(i,o)=>o.write(i)){let i=r.length-1;for(let o=0;o<r.length;o++)n(r[o],this),o!==i&&this.write(e);return this}writeLine(e){return this.write(e).newLine()}newLine(){this.lines.push(this.indentedCurrentLine()),this.currentLine="",this.marginSymbol=void 0;let e=this.afterNextNewLineCallback;return this.afterNextNewLineCallback=void 0,e?.(),this}withIndent(e){return this.indent(),e(this),this.unindent(),this}afterNextNewline(e){return this.afterNextNewLineCallback=e,this}indent(){return this.currentIndent++,this}unindent(){return this.currentIndent>0&&this.currentIndent--,this}addMarginSymbol(e){return this.marginSymbol=e,this}toString(){return this.lines.concat(this.indentedCurrentLine()).join(`
|
|
945
945
|
`)}getCurrentLineLength(){return this.currentLine.length}indentedCurrentLine(){let e=this.currentLine.padStart(this.currentLine.length+2*this.currentIndent);return this.marginSymbol?this.marginSymbol+e.slice(1):e}};de();ue();le();pe();fe();de();ue();le();pe();fe();var kYr=class{constructor(e){this.value=e}write(e){e.write(this.value)}markAsError(){this.value.markAsError()}};de();ue();le();pe();fe();var _W=e=>e,FFt={bold:_W,red:_W,green:_W,dim:_W,enabled:!1},MYr={bold:cFt,red:aEe,green:sKr,dim:uFt,enabled:!0},dEe={write(e){e.writeLine(",")}};de();ue();le();pe();fe();var GW=class{constructor(e){this.contents=e,ye(this,"isUnderlined",!1),ye(this,"color",r=>r)}underline(){return this.isUnderlined=!0,this}setColor(e){return this.color=e,this}write(e){let r=e.getCurrentLineLength();e.write(this.color(this.contents)),this.isUnderlined&&e.afterNextNewline(()=>{e.write(" ".repeat(r)).writeLine(this.color("~".repeat(this.contents.length)))})}};de();ue();le();pe();fe();var hEe=class{constructor(){ye(this,"hasError",!1)}markAsError(){return this.hasError=!0,this}},RFt=class extends hEe{constructor(){super(...arguments),ye(this,"items",[])}addItem(e){return this.items.push(new kYr(e)),this}getField(e){return this.items[e]}getPrintWidth(){return this.items.length===0?2:Math.max(...this.items.map(e=>e.value.getPrintWidth()))+2}write(e){if(this.items.length===0){this.writeEmpty(e);return}this.writeWithItems(e)}writeEmpty(e){let r=new GW("[]");this.hasError&&r.setColor(e.context.colors.red).underline(),e.write(r)}writeWithItems(e){let{colors:r}=e.context;e.writeLine("[").withIndent(()=>e.writeJoined(dEe,this.items).newLine()).write("]"),this.hasError&&e.afterNextNewline(()=>{e.writeLine(r.red("~".repeat(this.getPrintWidth())))})}asObject(){}},kFt=class IW extends hEe{constructor(){super(...arguments),ye(this,"fields",{}),ye(this,"suggestions",[])}addField(r){this.fields[r.name]=r}addSuggestion(r){this.suggestions.push(r)}getField(r){return this.fields[r]}getDeepField(r){let[n,...i]=r,o=this.getField(n);if(!o)return;let a=o;for(let c of i){let u;if(a.value instanceof IW?u=a.value.getField(c):a.value instanceof RFt&&(u=a.value.getField(Number(c))),!u)return;a=u}return a}getDeepFieldValue(r){return r.length===0?this:this.getDeepField(r)?.value}hasField(r){return!!this.getField(r)}removeAllFields(){this.fields={}}removeField(r){delete this.fields[r]}getFields(){return this.fields}isEmpty(){return Object.keys(this.fields).length===0}getFieldValue(r){return this.getField(r)?.value}getDeepSubSelectionValue(r){let n=this;for(let i of r){if(!(n instanceof IW))return;let o=n.getSubSelectionValue(i);if(!o)return;n=o}return n}getDeepSelectionParent(r){let n=this.getSelectionParent();if(!n)return;let i=n;for(let o of r){let a=i.value.getFieldValue(o);if(!a||!(a instanceof IW))return;let c=a.getSelectionParent();if(!c)return;i=c}return i}getSelectionParent(){let r=this.getField("select")?.value.asObject();if(r)return{kind:"select",value:r};let n=this.getField("include")?.value.asObject();if(n)return{kind:"include",value:n}}getSubSelectionValue(r){return this.getSelectionParent()?.value.fields[r].value}getPrintWidth(){let r=Object.values(this.fields);return r.length==0?2:Math.max(...r.map(n=>n.getPrintWidth()))+2}write(r){let n=Object.values(this.fields);if(n.length===0&&this.suggestions.length===0){this.writeEmpty(r);return}this.writeWithContents(r,n)}asObject(){return this}writeEmpty(r){let n=new GW("{}");this.hasError&&n.setColor(r.context.colors.red).underline(),r.write(n)}writeWithContents(r,n){r.writeLine("{").withIndent(()=>{r.writeJoined(dEe,[...n,...this.suggestions]).newLine()}),r.write("}"),this.hasError&&r.afterNextNewline(()=>{r.writeLine(r.context.colors.red("~".repeat(this.getPrintWidth())))})}};de();ue();le();pe();fe();var nu=class extends hEe{constructor(e){super(),this.text=e}getPrintWidth(){return this.text.length}write(e){let r=new GW(this.text);this.hasError&&r.underline().setColor(e.context.colors.red),e.write(r)}asObject(){}};de();ue();le();pe();fe();var MFt=class{constructor(){ye(this,"fields",[])}addField(e,r){return this.fields.push({write(n){let{green:i,dim:o}=n.context.colors;n.write(i(o(`${e}: ${r}`))).addMarginSymbol(i(o("+")))}}),this}write(e){let{colors:{green:r}}=e.context;e.writeLine(r("{")).withIndent(()=>{e.writeJoined(dEe,this.fields).newLine()}).write(r("}")).addMarginSymbol(r("+"))}};function NFt(e,r,n){switch(e.kind){case"MutuallyExclusiveFields":NYr(e,r);break;case"IncludeOnScalar":LYr(e,r);break;case"EmptySelection":$Yr(e,r,n);break;case"UnknownSelectionField":UYr(e,r);break;case"InvalidSelectionValue":WYr(e,r);break;case"UnknownArgument":HYr(e,r);break;case"UnknownInputField":GYr(e,r);break;case"RequiredArgumentMissing":zYr(e,r);break;case"InvalidArgumentType":VYr(e,r);break;case"InvalidArgumentValue":KYr(e,r);break;case"ValueTooLarge":YYr(e,r);break;case"SomeFieldsMissing":JYr(e,r);break;case"TooManyFieldsGiven":QYr(e,r);break;case"Union":IYr(e,r,n);break;default:throw new Error("not implemented: "+e.kind)}}function NYr(e,r){let n=r.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();n&&(n.getField(e.firstField)?.markAsError(),n.getField(e.secondField)?.markAsError()),r.addErrorMessage(i=>`Please ${i.bold("either")} use ${i.green(`\`${e.firstField}\``)} or ${i.green(`\`${e.secondField}\``)}, but ${i.red("not both")} at the same time.`)}function LYr(e,r){let[n,i]=s6(e.selectionPath),o=e.outputType,a=r.arguments.getDeepSelectionParent(n)?.value;if(a&&(a.getField(i)?.markAsError(),o))for(let c of o.fields)c.isRelation&&a.addSuggestion(new ch(c.name,"true"));r.addErrorMessage(c=>{let u=`Invalid scalar field ${c.red(`\`${i}\``)} for ${c.bold("include")} statement`;return o?u+=` on model ${c.bold(o.name)}. ${a6(c)}`:u+=".",u+=`
|
|
946
946
|
Note that ${c.bold("include")} statements only accept relation fields.`,u})}function $Yr(e,r,n){let i=r.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(i){let o=i.getField("omit")?.value.asObject();if(o){BYr(e,r,o);return}if(i.hasField("select")){qYr(e,r);return}}if(n?.[lEe(e.outputType.name)]){jYr(e,r);return}r.addErrorMessage(()=>`Unknown field at "${e.selectionPath.join(".")} selection"`)}function BYr(e,r,n){n.removeAllFields();for(let i of e.outputType.fields)n.addSuggestion(new ch(i.name,"false"));r.addErrorMessage(i=>`The ${i.red("omit")} statement includes every field of the model ${i.bold(e.outputType.name)}. At least one field must be included in the result`)}function qYr(e,r){let n=e.outputType,i=r.arguments.getDeepSelectionParent(e.selectionPath)?.value,o=i?.isEmpty()??!1;i&&(i.removeAllFields(),BFt(i,n)),r.addErrorMessage(a=>o?`The ${a.red("`select`")} statement for type ${a.bold(n.name)} must not be empty. ${a6(a)}`:`The ${a.red("`select`")} statement for type ${a.bold(n.name)} needs ${a.bold("at least one truthy value")}.`)}function jYr(e,r){let n=new MFt;for(let o of e.outputType.fields)o.isRelation||n.addField(o.name,"false");let i=new ch("omit",n).makeRequired();if(e.selectionPath.length===0)r.arguments.addSuggestion(i);else{let[o,a]=s6(e.selectionPath),c=r.arguments.getDeepSelectionParent(o)?.value.asObject()?.getField(a);if(c){let u=c?.value.asObject()??new kFt;u.addSuggestion(i),c.value=u}}r.addErrorMessage(o=>`The global ${o.red("omit")} configuration excludes every field of the model ${o.bold(e.outputType.name)}. At least one field must be included in the result`)}function UYr(e,r){let n=qFt(e.selectionPath,r);if(n.parentKind!=="unknown"){n.field.markAsError();let i=n.parent;switch(n.parentKind){case"select":BFt(i,e.outputType);break;case"include":ZYr(i,e.outputType);break;case"omit":XYr(i,e.outputType);break}}r.addErrorMessage(i=>{let o=[`Unknown field ${i.red(`\`${n.fieldName}\``)}`];return n.parentKind!=="unknown"&&o.push(`for ${i.bold(n.parentKind)} statement`),o.push(`on model ${i.bold(`\`${e.outputType.name}\``)}.`),o.push(a6(i)),o.join(" ")})}function WYr(e,r){let n=qFt(e.selectionPath,r);n.parentKind!=="unknown"&&n.field.value.markAsError(),r.addErrorMessage(i=>`Invalid value for selection field \`${i.red(n.fieldName)}\`: ${e.underlyingError}`)}function HYr(e,r){let n=e.argumentPath[0],i=r.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();i&&(i.getField(n)?.markAsError(),eJr(i,e.arguments)),r.addErrorMessage(o=>LFt(o,n,e.arguments.map(a=>a.name)))}function GYr(e,r){let[n,i]=s6(e.argumentPath),o=r.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(o){o.getDeepField(e.argumentPath)?.markAsError();let a=o.getDeepFieldValue(n)?.asObject();a&&jFt(a,e.inputType)}r.addErrorMessage(a=>LFt(a,i,e.inputType.fields.map(c=>c.name)))}function LFt(e,r,n){let i=[`Unknown argument \`${e.red(r)}\`.`],o=rJr(r,n);return o&&i.push(`Did you mean \`${e.green(o)}\`?`),n.length>0&&i.push(a6(e)),i.join(" ")}function zYr(e,r){let n;r.addErrorMessage(l=>n?.value instanceof nu&&n.value.text==="null"?`Argument \`${l.green(a)}\` must not be ${l.red("null")}.`:`Argument \`${l.green(a)}\` is missing.`);let i=r.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(!i)return;let[o,a]=s6(e.argumentPath),c=new MFt,u=i.getDeepFieldValue(o)?.asObject();if(u)if(n=u.getField(a),n&&u.removeField(a),e.inputTypes.length===1&&e.inputTypes[0].kind==="object"){for(let l of e.inputTypes[0].fields)c.addField(l.name,l.typeNames.join(" | "));u.addSuggestion(new ch(a,c).makeRequired())}else{let l=e.inputTypes.map($Ft).join(" | ");u.addSuggestion(new ch(a,l).makeRequired())}}function $Ft(e){return e.kind==="list"?`${$Ft(e.elementType)}[]`:e.name}function VYr(e,r){let n=e.argument.name,i=r.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();i&&i.getDeepFieldValue(e.argumentPath)?.markAsError(),r.addErrorMessage(o=>{let a=zW("or",e.argument.typeNames.map(c=>o.green(c)));return`Argument \`${o.bold(n)}\`: Invalid value provided. Expected ${a}, provided ${o.red(e.inferredType)}.`})}function KYr(e,r){let n=e.argument.name,i=r.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();i&&i.getDeepFieldValue(e.argumentPath)?.markAsError(),r.addErrorMessage(o=>{let a=[`Invalid value for argument \`${o.bold(n)}\``];if(e.underlyingError&&a.push(`: ${e.underlyingError}`),a.push("."),e.argument.typeNames.length>0){let c=zW("or",e.argument.typeNames.map(u=>o.green(u)));a.push(` Expected ${c}.`)}return a.join("")})}function YYr(e,r){let n=e.argument.name,i=r.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),o;if(i){let a=i.getDeepField(e.argumentPath)?.value;a?.markAsError(),a instanceof nu&&(o=a.text)}r.addErrorMessage(a=>{let c=["Unable to fit value"];return o&&c.push(a.red(o)),c.push(`into a 64-bit signed integer for field \`${a.bold(n)}\``),c.join(" ")})}function JYr(e,r){let n=e.argumentPath[e.argumentPath.length-1],i=r.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject();if(i){let o=i.getDeepFieldValue(e.argumentPath)?.asObject();o&&jFt(o,e.inputType)}r.addErrorMessage(o=>{let a=[`Argument \`${o.bold(n)}\` of type ${o.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1?e.constraints.requiredFields?a.push(`${o.green("at least one of")} ${zW("or",e.constraints.requiredFields.map(c=>`\`${o.bold(c)}\``))} arguments.`):a.push(`${o.green("at least one")} argument.`):a.push(`${o.green(`at least ${e.constraints.minFieldCount}`)} arguments.`),a.push(a6(o)),a.join(" ")})}function QYr(e,r){let n=e.argumentPath[e.argumentPath.length-1],i=r.arguments.getDeepSubSelectionValue(e.selectionPath)?.asObject(),o=[];if(i){let a=i.getDeepFieldValue(e.argumentPath)?.asObject();a&&(a.markAsError(),o=Object.keys(a.getFields()))}r.addErrorMessage(a=>{let c=[`Argument \`${a.bold(n)}\` of type ${a.bold(e.inputType.name)} needs`];return e.constraints.minFieldCount===1&&e.constraints.maxFieldCount==1?c.push(`${a.green("exactly one")} argument,`):e.constraints.maxFieldCount==1?c.push(`${a.green("at most one")} argument,`):c.push(`${a.green(`at most ${e.constraints.maxFieldCount}`)} arguments,`),c.push(`but you provided ${zW("and",o.map(u=>a.red(u)))}. Please choose`),e.constraints.maxFieldCount===1?c.push("one."):c.push(`${e.constraints.maxFieldCount}.`),c.join(" ")})}function BFt(e,r){for(let n of r.fields)e.hasField(n.name)||e.addSuggestion(new ch(n.name,"true"))}function ZYr(e,r){for(let n of r.fields)n.isRelation&&!e.hasField(n.name)&&e.addSuggestion(new ch(n.name,"true"))}function XYr(e,r){for(let n of r.fields)!e.hasField(n.name)&&!n.isRelation&&e.addSuggestion(new ch(n.name,"true"))}function eJr(e,r){for(let n of r)e.hasField(n.name)||e.addSuggestion(new ch(n.name,n.typeNames.join(" | ")))}function qFt(e,r){let[n,i]=s6(e),o=r.arguments.getDeepSubSelectionValue(n)?.asObject();if(!o)return{parentKind:"unknown",fieldName:i};let a=o.getFieldValue("select")?.asObject(),c=o.getFieldValue("include")?.asObject(),u=o.getFieldValue("omit")?.asObject(),l=a?.getField(i);return a&&l?{parentKind:"select",parent:a,field:l,fieldName:i}:(l=c?.getField(i),c&&l?{parentKind:"include",field:l,parent:c,fieldName:i}:(l=u?.getField(i),u&&l?{parentKind:"omit",field:l,parent:u,fieldName:i}:{parentKind:"unknown",fieldName:i}))}function jFt(e,r){if(r.kind==="object")for(let n of r.fields)e.hasField(n.name)||e.addSuggestion(new ch(n.name,n.typeNames.join(" | ")))}function s6(e){let r=[...e],n=r.pop();if(!n)throw new Error("unexpected empty path");return[r,n]}function a6({green:e,enabled:r}){return"Available options are "+(r?`listed in ${e("green")}`:"marked with ?")+"."}function zW(e,r){if(r.length===1)return r[0];let n=[...r],i=n.pop();return`${n.join(", ")} ${e} ${i}`}var tJr=3;function rJr(e,r){let n=1/0,i;for(let o of r){let a=(0,OYr.default)(e,o);a>tJr||a<n&&(n=a,i=o)}return i}de();ue();le();pe();fe();de();ue();le();pe();fe();function nJr(e){return e.substring(0,1).toLowerCase()+e.substring(1)}de();ue();le();pe();fe();var UFt=class{constructor(e,r,n,i,o){ye(this,"modelName"),ye(this,"name"),ye(this,"typeName"),ye(this,"isList"),ye(this,"isEnum"),this.modelName=e,this.name=r,this.typeName=n,this.isList=i,this.isEnum=o}_toGraphQLInputType(){let e=this.isList?"List":"",r=this.isEnum?"Enum":"";return`${e}${r}${this.typeName}FieldRefInput<${this.modelName}>`}};function mEe(e){return e instanceof UFt}de();ue();le();pe();fe();var PW=Symbol(),kve=new WeakMap,VW=class{constructor(e){e===PW?kve.set(this,`Prisma.${this._getName()}`):kve.set(this,`new Prisma.${this._getNamespace()}.${this._getName()}()`)}_getName(){return this.constructor.name}toString(){return kve.get(this)}},gEe=class extends VW{_getNamespace(){return"NullTypes"}},zve=class extends gEe{};xEe(zve,"DbNull");var Vve=class extends gEe{};xEe(Vve,"JsonNull");var Kve=class extends gEe{};xEe(Kve,"AnyNull");var WFt={classes:{DbNull:zve,JsonNull:Vve,AnyNull:Kve},instances:{DbNull:new zve(PW),JsonNull:new Vve(PW),AnyNull:new Kve(PW)}};function xEe(e,r){Object.defineProperty(e,"name",{value:r,configurable:!0})}de();ue();le();pe();fe();var SPt=": ",iJr=class{constructor(e,r){this.name=e,this.value=r,ye(this,"hasError",!1)}markAsError(){this.hasError=!0}getPrintWidth(){return this.name.length+this.value.getPrintWidth()+SPt.length}write(e){let r=new GW(this.name);this.hasError&&r.underline().setColor(e.context.colors.red),e.write(r).write(SPt).write(this.value)}},oJr=class{constructor(e){ye(this,"arguments"),ye(this,"errorMessages",[]),this.arguments=e}write(e){e.write(this.arguments)}addErrorMessage(e){this.errorMessages.push(e)}renderAllMessages(e){return this.errorMessages.map(r=>r(e)).join(`
|
|
@@ -950,7 +950,7 @@ Prisma Accelerate has built-in connection pooling to prevent such errors: https:
|
|
|
950
950
|
Learn how: https://pris.ly/d/${RPt[r]}-build`;throw console.error(i),new zu(i,n)}}de();ue();le();pe();fe();function vQr(e,r){return e?e.datasources?e.datasources:e.datasourceUrl?{[r[0]]:{url:e.datasourceUrl}}:{}:{}}de();ue();le();pe();fe();de();ue();le();pe();fe();var EQr=()=>globalThis.process?.release?.name==="node",wQr=()=>!!globalThis.Bun||!!globalThis.process?.versions?.bun,SQr=()=>!!globalThis.Deno,_Qr=()=>typeof globalThis.Netlify=="object",CQr=()=>typeof globalThis.EdgeRuntime=="object",DQr=()=>globalThis.navigator?.userAgent==="Cloudflare-Workers";function TQr(){return[[_Qr,"netlify"],[CQr,"edge-light"],[DQr,"workerd"],[SQr,"deno"],[wQr,"bun"],[EQr,"node"]].flatMap(e=>e[0]()?[e[1]]:[]).at(0)??""}var AQr={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function xRt(){let e=TQr();return{id:e,prettyName:AQr[e]||e,isEdge:["workerd","deno","netlify","edge-light"].includes(e)}}de();ue();le();pe();fe();de();ue();le();pe();fe();de();ue();le();pe();fe();function wEe({inlineDatasources:e,overrideDatasources:r,env:n,clientVersion:i}){let o,a=Object.keys(e)[0],c=e[a]?.url,u=r[a]?.url;if(a===void 0?o=void 0:u?o=u:c?.value?o=c.value:c?.fromEnvVar&&(o=n[c.fromEnvVar]),c?.fromEnvVar!==void 0&&o===void 0)throw xRt().id==="workerd"?new zu(`error: Environment variable not found: ${c.fromEnvVar}.
|
|
951
951
|
|
|
952
952
|
In Cloudflare module Workers, environment variables are available only in the Worker's \`env\` parameter of \`fetch\`.
|
|
953
|
-
To solve this, provide the connection string directly: https://pris.ly/d/cloudflare-datasource-url`,i):new zu(`error: Environment variable not found: ${c.fromEnvVar}.`,i);if(o===void 0)throw new zu("error: Missing URL environment variable, value, or override.",i);return o}de();ue();le();pe();fe();de();ue();le();pe();fe();var OQr=class extends Error{constructor(e,r){super(e),ye(this,"clientVersion"),ye(this,"cause"),this.clientVersion=r.clientVersion,this.cause=r.cause}get[Symbol.toStringTag](){return this.name}},PD=class extends OQr{constructor(e,r){super(e,r),ye(this,"isRetryable"),this.isRetryable=r.isRetryable??!0}};de();ue();le();pe();fe();de();ue();le();pe();fe();function za(e,r){return{...e,isRetryable:r}}var nEe=class extends PD{constructor(e){super("This request must be retried",za(e,!0)),ye(this,"name","ForcedRetryError"),ye(this,"code","P5001")}};eo(nEe,"ForcedRetryError");de();ue();le();pe();fe();var RW=class extends PD{constructor(e,r){super(e,za(r,!1)),ye(this,"name","InvalidDatasourceError"),ye(this,"code","P6001")}};eo(RW,"InvalidDatasourceError");de();ue();le();pe();fe();var SEe=class extends PD{constructor(e,r){super(e,za(r,!1)),ye(this,"name","NotImplementedYetError"),ye(this,"code","P5004")}};eo(SEe,"NotImplementedYetError");de();ue();le();pe();fe();de();ue();le();pe();fe();var sp=class extends PD{constructor(e,r){super(e,r),ye(this,"response"),this.response=r.response;let n=this.response.headers.get("prisma-request-id");if(n){let i=`(The request id was: ${n})`;this.message=this.message+" "+i}}},_Ee=class extends sp{constructor(e){super("Schema needs to be uploaded",za(e,!0)),ye(this,"name","SchemaMissingError"),ye(this,"code","P5005")}};eo(_Ee,"SchemaMissingError");de();ue();le();pe();fe();de();ue();le();pe();fe();var yRt="This request could not be understood by the server",bRt=class extends sp{constructor(e,r,n){super(r||yRt,za(e,!1)),ye(this,"name","BadRequestError"),ye(this,"code","P5000"),n&&(this.code=n)}};eo(bRt,"BadRequestError");de();ue();le();pe();fe();var vRt=class extends sp{constructor(e,r){super("Engine not started: healthcheck timeout",za(e,!0)),ye(this,"name","HealthcheckTimeoutError"),ye(this,"code","P5013"),ye(this,"logs"),this.logs=r}};eo(vRt,"HealthcheckTimeoutError");de();ue();le();pe();fe();var ERt=class extends sp{constructor(e,r,n){super(r,za(e,!0)),ye(this,"name","EngineStartupError"),ye(this,"code","P5014"),ye(this,"logs"),this.logs=n}};eo(ERt,"EngineStartupError");de();ue();le();pe();fe();var wRt=class extends sp{constructor(e){super("Engine version is not supported",za(e,!1)),ye(this,"name","EngineVersionNotSupportedError"),ye(this,"code","P5012")}};eo(wRt,"EngineVersionNotSupportedError");de();ue();le();pe();fe();var SRt="Request timed out",_Rt=class extends sp{constructor(e,r=SRt){super(r,za(e,!1)),ye(this,"name","GatewayTimeoutError"),ye(this,"code","P5009")}};eo(_Rt,"GatewayTimeoutError");de();ue();le();pe();fe();var IQr="Interactive transaction error",CRt=class extends sp{constructor(e,r=IQr){super(r,za(e,!1)),ye(this,"name","InteractiveTransactionError"),ye(this,"code","P5015")}};eo(CRt,"InteractiveTransactionError");de();ue();le();pe();fe();var PQr="Request parameters are invalid",DRt=class extends sp{constructor(e,r=PQr){super(r,za(e,!1)),ye(this,"name","InvalidRequestError"),ye(this,"code","P5011")}};eo(DRt,"InvalidRequestError");de();ue();le();pe();fe();var TRt="Requested resource does not exist",ARt=class extends sp{constructor(e,r=TRt){super(r,za(e,!1)),ye(this,"name","NotFoundError"),ye(this,"code","P5003")}};eo(ARt,"NotFoundError");de();ue();le();pe();fe();var ORt="Unknown server error",iEe=class extends sp{constructor(e,r,n){super(r||ORt,za(e,!0)),ye(this,"name","ServerError"),ye(this,"code","P5006"),ye(this,"logs"),this.logs=n}};eo(iEe,"ServerError");de();ue();le();pe();fe();var IRt="Unauthorized, check your connection string",PRt=class extends sp{constructor(e,r=IRt){super(r,za(e,!1)),ye(this,"name","UnauthorizedError"),ye(this,"code","P5007")}};eo(PRt,"UnauthorizedError");de();ue();le();pe();fe();var FRt="Usage exceeded, retry again later",RRt=class extends sp{constructor(e,r=FRt){super(r,za(e,!0)),ye(this,"name","UsageExceededError"),ye(this,"code","P5008")}};eo(RRt,"UsageExceededError");async function FQr(e){let r;try{r=await e.text()}catch{return{type:"EmptyError"}}try{let n=JSON.parse(r);if(typeof n=="string")switch(n){case"InternalDataProxyError":return{type:"DataProxyError",body:n};default:return{type:"UnknownTextError",body:n}}if(typeof n=="object"&&n!==null){if("is_panic"in n&&"message"in n&&"error_code"in n)return{type:"QueryEngineError",body:n};if("EngineNotStarted"in n||"InteractiveTransactionMisrouted"in n||"InvalidRequestError"in n){let i=Object.values(n)[0].reason;return typeof i=="string"&&!["SchemaMissing","EngineVersionNotSupported"].includes(i)?{type:"UnknownJsonError",body:n}:{type:"DataProxyError",body:n}}}return{type:"UnknownJsonError",body:n}}catch{return r===""?{type:"EmptyError"}:{type:"UnknownTextError",body:r}}}async function CW(e,r){if(e.ok)return;let n={clientVersion:r,response:e},i=await FQr(e);if(i.type==="QueryEngineError")throw new _w(i.body.message,{code:i.body.error_code,clientVersion:r});if(i.type==="DataProxyError"){if(i.body==="InternalDataProxyError")throw new iEe(n,"Internal Data Proxy error");if("EngineNotStarted"in i.body){if(i.body.EngineNotStarted.reason==="SchemaMissing")return new _Ee(n);if(i.body.EngineNotStarted.reason==="EngineVersionNotSupported")throw new wRt(n);if("EngineStartupError"in i.body.EngineNotStarted.reason){let{msg:o,logs:a}=i.body.EngineNotStarted.reason.EngineStartupError;throw new ERt(n,o,a)}if("KnownEngineStartupError"in i.body.EngineNotStarted.reason){let{msg:o,error_code:a}=i.body.EngineNotStarted.reason.KnownEngineStartupError;throw new zu(o,r,a)}if("HealthcheckTimeout"in i.body.EngineNotStarted.reason){let{logs:o}=i.body.EngineNotStarted.reason.HealthcheckTimeout;throw new vRt(n,o)}}if("InteractiveTransactionMisrouted"in i.body){let o={IDParseError:"Could not parse interactive transaction ID",NoQueryEngineFoundError:"Could not find Query Engine for the specified host and transaction ID",TransactionStartError:"Could not start interactive transaction"};throw new CRt(n,o[i.body.InteractiveTransactionMisrouted.reason])}if("InvalidRequestError"in i.body)throw new DRt(n,i.body.InvalidRequestError.reason)}if(e.status===401||e.status===403)throw new PRt(n,SD(IRt,i));if(e.status===404)return new ARt(n,SD(TRt,i));if(e.status===429)throw new RRt(n,SD(FRt,i));if(e.status===504)throw new _Rt(n,SD(SRt,i));if(e.status>=500)throw new iEe(n,SD(ORt,i));if(e.status>=400)throw new bRt(n,SD(yRt,i))}function SD(e,r){return r.type==="EmptyError"?e:`${e}: ${JSON.stringify(r)}`}de();ue();le();pe();fe();function RQr(e){let r=Math.pow(2,e)*50,n=Math.ceil(Math.random()*r)-Math.ceil(r/2),i=r+n;return new Promise(o=>setTimeout(()=>o(i),i))}de();ue();le();pe();fe();var ng="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function kQr(e){let r=new TextEncoder().encode(e),n="",i=r.byteLength,o=i%3,a=i-o,c,u,l,p,f;for(let g=0;g<a;g=g+3)f=r[g]<<16|r[g+1]<<8|r[g+2],c=(f&16515072)>>18,u=(f&258048)>>12,l=(f&4032)>>6,p=f&63,n+=ng[c]+ng[u]+ng[l]+ng[p];return o==1?(f=r[a],c=(f&252)>>2,u=(f&3)<<4,n+=ng[c]+ng[u]+"=="):o==2&&(f=r[a]<<8|r[a+1],c=(f&64512)>>10,u=(f&1008)>>4,l=(f&15)<<2,n+=ng[c]+ng[u]+ng[l]+"="),n}de();ue();le();pe();fe();function MQr(e){if(e.generator?.previewFeatures.some(r=>r.toLowerCase().includes("metrics")))throw new zu("The `metrics` preview feature is not yet available with Accelerate.\nPlease remove `metrics` from the `previewFeatures` in your schema.\n\nMore information about Accelerate: https://pris.ly/d/accelerate",e.clientVersion)}de();ue();le();pe();fe();function NQr(e){return e[0]*1e3+e[1]/1e6}function kPt(e){return new Date(NQr(e))}de();ue();le();pe();fe();var LQr={"@prisma/debug":"workspace:*","@prisma/engines-version":"6.5.0-
|
|
953
|
+
To solve this, provide the connection string directly: https://pris.ly/d/cloudflare-datasource-url`,i):new zu(`error: Environment variable not found: ${c.fromEnvVar}.`,i);if(o===void 0)throw new zu("error: Missing URL environment variable, value, or override.",i);return o}de();ue();le();pe();fe();de();ue();le();pe();fe();var OQr=class extends Error{constructor(e,r){super(e),ye(this,"clientVersion"),ye(this,"cause"),this.clientVersion=r.clientVersion,this.cause=r.cause}get[Symbol.toStringTag](){return this.name}},PD=class extends OQr{constructor(e,r){super(e,r),ye(this,"isRetryable"),this.isRetryable=r.isRetryable??!0}};de();ue();le();pe();fe();de();ue();le();pe();fe();function za(e,r){return{...e,isRetryable:r}}var nEe=class extends PD{constructor(e){super("This request must be retried",za(e,!0)),ye(this,"name","ForcedRetryError"),ye(this,"code","P5001")}};eo(nEe,"ForcedRetryError");de();ue();le();pe();fe();var RW=class extends PD{constructor(e,r){super(e,za(r,!1)),ye(this,"name","InvalidDatasourceError"),ye(this,"code","P6001")}};eo(RW,"InvalidDatasourceError");de();ue();le();pe();fe();var SEe=class extends PD{constructor(e,r){super(e,za(r,!1)),ye(this,"name","NotImplementedYetError"),ye(this,"code","P5004")}};eo(SEe,"NotImplementedYetError");de();ue();le();pe();fe();de();ue();le();pe();fe();var sp=class extends PD{constructor(e,r){super(e,r),ye(this,"response"),this.response=r.response;let n=this.response.headers.get("prisma-request-id");if(n){let i=`(The request id was: ${n})`;this.message=this.message+" "+i}}},_Ee=class extends sp{constructor(e){super("Schema needs to be uploaded",za(e,!0)),ye(this,"name","SchemaMissingError"),ye(this,"code","P5005")}};eo(_Ee,"SchemaMissingError");de();ue();le();pe();fe();de();ue();le();pe();fe();var yRt="This request could not be understood by the server",bRt=class extends sp{constructor(e,r,n){super(r||yRt,za(e,!1)),ye(this,"name","BadRequestError"),ye(this,"code","P5000"),n&&(this.code=n)}};eo(bRt,"BadRequestError");de();ue();le();pe();fe();var vRt=class extends sp{constructor(e,r){super("Engine not started: healthcheck timeout",za(e,!0)),ye(this,"name","HealthcheckTimeoutError"),ye(this,"code","P5013"),ye(this,"logs"),this.logs=r}};eo(vRt,"HealthcheckTimeoutError");de();ue();le();pe();fe();var ERt=class extends sp{constructor(e,r,n){super(r,za(e,!0)),ye(this,"name","EngineStartupError"),ye(this,"code","P5014"),ye(this,"logs"),this.logs=n}};eo(ERt,"EngineStartupError");de();ue();le();pe();fe();var wRt=class extends sp{constructor(e){super("Engine version is not supported",za(e,!1)),ye(this,"name","EngineVersionNotSupportedError"),ye(this,"code","P5012")}};eo(wRt,"EngineVersionNotSupportedError");de();ue();le();pe();fe();var SRt="Request timed out",_Rt=class extends sp{constructor(e,r=SRt){super(r,za(e,!1)),ye(this,"name","GatewayTimeoutError"),ye(this,"code","P5009")}};eo(_Rt,"GatewayTimeoutError");de();ue();le();pe();fe();var IQr="Interactive transaction error",CRt=class extends sp{constructor(e,r=IQr){super(r,za(e,!1)),ye(this,"name","InteractiveTransactionError"),ye(this,"code","P5015")}};eo(CRt,"InteractiveTransactionError");de();ue();le();pe();fe();var PQr="Request parameters are invalid",DRt=class extends sp{constructor(e,r=PQr){super(r,za(e,!1)),ye(this,"name","InvalidRequestError"),ye(this,"code","P5011")}};eo(DRt,"InvalidRequestError");de();ue();le();pe();fe();var TRt="Requested resource does not exist",ARt=class extends sp{constructor(e,r=TRt){super(r,za(e,!1)),ye(this,"name","NotFoundError"),ye(this,"code","P5003")}};eo(ARt,"NotFoundError");de();ue();le();pe();fe();var ORt="Unknown server error",iEe=class extends sp{constructor(e,r,n){super(r||ORt,za(e,!0)),ye(this,"name","ServerError"),ye(this,"code","P5006"),ye(this,"logs"),this.logs=n}};eo(iEe,"ServerError");de();ue();le();pe();fe();var IRt="Unauthorized, check your connection string",PRt=class extends sp{constructor(e,r=IRt){super(r,za(e,!1)),ye(this,"name","UnauthorizedError"),ye(this,"code","P5007")}};eo(PRt,"UnauthorizedError");de();ue();le();pe();fe();var FRt="Usage exceeded, retry again later",RRt=class extends sp{constructor(e,r=FRt){super(r,za(e,!0)),ye(this,"name","UsageExceededError"),ye(this,"code","P5008")}};eo(RRt,"UsageExceededError");async function FQr(e){let r;try{r=await e.text()}catch{return{type:"EmptyError"}}try{let n=JSON.parse(r);if(typeof n=="string")switch(n){case"InternalDataProxyError":return{type:"DataProxyError",body:n};default:return{type:"UnknownTextError",body:n}}if(typeof n=="object"&&n!==null){if("is_panic"in n&&"message"in n&&"error_code"in n)return{type:"QueryEngineError",body:n};if("EngineNotStarted"in n||"InteractiveTransactionMisrouted"in n||"InvalidRequestError"in n){let i=Object.values(n)[0].reason;return typeof i=="string"&&!["SchemaMissing","EngineVersionNotSupported"].includes(i)?{type:"UnknownJsonError",body:n}:{type:"DataProxyError",body:n}}}return{type:"UnknownJsonError",body:n}}catch{return r===""?{type:"EmptyError"}:{type:"UnknownTextError",body:r}}}async function CW(e,r){if(e.ok)return;let n={clientVersion:r,response:e},i=await FQr(e);if(i.type==="QueryEngineError")throw new _w(i.body.message,{code:i.body.error_code,clientVersion:r});if(i.type==="DataProxyError"){if(i.body==="InternalDataProxyError")throw new iEe(n,"Internal Data Proxy error");if("EngineNotStarted"in i.body){if(i.body.EngineNotStarted.reason==="SchemaMissing")return new _Ee(n);if(i.body.EngineNotStarted.reason==="EngineVersionNotSupported")throw new wRt(n);if("EngineStartupError"in i.body.EngineNotStarted.reason){let{msg:o,logs:a}=i.body.EngineNotStarted.reason.EngineStartupError;throw new ERt(n,o,a)}if("KnownEngineStartupError"in i.body.EngineNotStarted.reason){let{msg:o,error_code:a}=i.body.EngineNotStarted.reason.KnownEngineStartupError;throw new zu(o,r,a)}if("HealthcheckTimeout"in i.body.EngineNotStarted.reason){let{logs:o}=i.body.EngineNotStarted.reason.HealthcheckTimeout;throw new vRt(n,o)}}if("InteractiveTransactionMisrouted"in i.body){let o={IDParseError:"Could not parse interactive transaction ID",NoQueryEngineFoundError:"Could not find Query Engine for the specified host and transaction ID",TransactionStartError:"Could not start interactive transaction"};throw new CRt(n,o[i.body.InteractiveTransactionMisrouted.reason])}if("InvalidRequestError"in i.body)throw new DRt(n,i.body.InvalidRequestError.reason)}if(e.status===401||e.status===403)throw new PRt(n,SD(IRt,i));if(e.status===404)return new ARt(n,SD(TRt,i));if(e.status===429)throw new RRt(n,SD(FRt,i));if(e.status===504)throw new _Rt(n,SD(SRt,i));if(e.status>=500)throw new iEe(n,SD(ORt,i));if(e.status>=400)throw new bRt(n,SD(yRt,i))}function SD(e,r){return r.type==="EmptyError"?e:`${e}: ${JSON.stringify(r)}`}de();ue();le();pe();fe();function RQr(e){let r=Math.pow(2,e)*50,n=Math.ceil(Math.random()*r)-Math.ceil(r/2),i=r+n;return new Promise(o=>setTimeout(()=>o(i),i))}de();ue();le();pe();fe();var ng="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function kQr(e){let r=new TextEncoder().encode(e),n="",i=r.byteLength,o=i%3,a=i-o,c,u,l,p,f;for(let g=0;g<a;g=g+3)f=r[g]<<16|r[g+1]<<8|r[g+2],c=(f&16515072)>>18,u=(f&258048)>>12,l=(f&4032)>>6,p=f&63,n+=ng[c]+ng[u]+ng[l]+ng[p];return o==1?(f=r[a],c=(f&252)>>2,u=(f&3)<<4,n+=ng[c]+ng[u]+"=="):o==2&&(f=r[a]<<8|r[a+1],c=(f&64512)>>10,u=(f&1008)>>4,l=(f&15)<<2,n+=ng[c]+ng[u]+ng[l]+"="),n}de();ue();le();pe();fe();function MQr(e){if(e.generator?.previewFeatures.some(r=>r.toLowerCase().includes("metrics")))throw new zu("The `metrics` preview feature is not yet available with Accelerate.\nPlease remove `metrics` from the `previewFeatures` in your schema.\n\nMore information about Accelerate: https://pris.ly/d/accelerate",e.clientVersion)}de();ue();le();pe();fe();function NQr(e){return e[0]*1e3+e[1]/1e6}function kPt(e){return new Date(NQr(e))}de();ue();le();pe();fe();var LQr={"@prisma/debug":"workspace:*","@prisma/engines-version":"6.5.0-43.56bd63f620196b375ea597255b04817886e98eca","@prisma/fetch-engine":"workspace:*","@prisma/get-platform":"workspace:*"};de();ue();le();pe();fe();de();ue();le();pe();fe();var kRt=class extends PD{constructor(e,r){super(`Cannot fetch data from service:
|
|
954
954
|
${e}`,za(r,!0)),ye(this,"name","RequestError"),ye(this,"code","P5010")}};eo(kRt,"RequestError");async function Yk(e,r,n=i=>i){let{clientVersion:i,...o}=r,a=n(fetch);try{return await a(e,o)}catch(c){let u=c.message??"Unknown error";throw new kRt(u,{clientVersion:i,cause:c})}}var $Qr=/^[1-9][0-9]*\.[0-9]+\.[0-9]+$/,MRt=sg("prisma:client:dataproxyEngine");async function BQr(e,r){let n=LQr["@prisma/engines-version"],i=r.clientVersion??"unknown";if(Ns.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION)return Ns.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION;if(e.includes("accelerate")&&i!=="0.0.0"&&i!=="in-memory")return i;let[o,a]=i?.split("-")??[];if(a===void 0&&$Qr.test(o))return o;if(a!==void 0||i==="0.0.0"||i==="in-memory"){if(e.startsWith("localhost")||e.startsWith("127.0.0.1"))return"0.0.0";let[c]=n.split("-")??[],[u,l,p]=c.split("."),f=jQr(`<=${u}.${l}.${p}`),g=await Yk(f,{clientVersion:i});if(!g.ok)throw new Error(`Failed to fetch stable Prisma version, unpkg.com status ${g.status} ${g.statusText}, response body: ${await g.text()||"<empty body>"}`);let x=await g.text();MRt("length of body fetched from unpkg.com",x.length);let b;try{b=JSON.parse(x)}catch(v){throw console.error("JSON.parse error: body fetched from unpkg.com: ",x),v}return b.version}throw new SEe("Only `major.minor.patch` versions are supported by Accelerate.",{clientVersion:i})}async function qQr(e,r){let n=await BQr(e,r);return MRt("version",n),n}function jQr(e){return encodeURI(`https://unpkg.com/prisma@${e}/package.json`)}var MPt=3,DW=sg("prisma:client:dataproxyEngine"),UQr=class{constructor({apiKey:e,tracingHelper:r,logLevel:n,logQueries:i,engineHash:o}){ye(this,"apiKey"),ye(this,"tracingHelper"),ye(this,"logLevel"),ye(this,"logQueries"),ye(this,"engineHash"),this.apiKey=e,this.tracingHelper=r,this.logLevel=n,this.logQueries=i,this.engineHash=o}build({traceparent:e,interactiveTransaction:r}={}){let n={Authorization:`Bearer ${this.apiKey}`,"Prisma-Engine-Hash":this.engineHash};this.tracingHelper.isEnabled()&&(n.traceparent=e??this.tracingHelper.getTraceParent()),r&&(n["X-transaction-id"]=r.id);let i=this.buildCaptureSettings();return i.length>0&&(n["X-capture-telemetry"]=i.join(", ")),n}buildCaptureSettings(){let e=[];return this.tracingHelper.isEnabled()&&e.push("tracing"),this.logLevel&&e.push(this.logLevel),this.logQueries&&e.push("query"),e}},NPt=class{constructor(e){ye(this,"name","DataProxyEngine"),ye(this,"inlineSchema"),ye(this,"inlineSchemaHash"),ye(this,"inlineDatasources"),ye(this,"config"),ye(this,"logEmitter"),ye(this,"env"),ye(this,"clientVersion"),ye(this,"engineHash"),ye(this,"tracingHelper"),ye(this,"remoteClientVersion"),ye(this,"host"),ye(this,"headerBuilder"),ye(this,"startPromise"),MQr(e),this.config=e,this.env={...e.env,...typeof Ns<"u"?Ns.env:{}},this.inlineSchema=kQr(e.inlineSchema),this.inlineDatasources=e.inlineDatasources,this.inlineSchemaHash=e.inlineSchemaHash,this.clientVersion=e.clientVersion,this.engineHash=e.engineVersion,this.logEmitter=e.logEmitter,this.tracingHelper=e.tracingHelper}apiKey(){return this.headerBuilder.apiKey}version(){return this.engineHash}async start(){this.startPromise!==void 0&&await this.startPromise,this.startPromise=(async()=>{let[e,r]=this.extractHostAndApiKey();this.host=e,this.headerBuilder=new UQr({apiKey:r,tracingHelper:this.tracingHelper,logLevel:this.config.logLevel,logQueries:this.config.logQueries,engineHash:this.engineHash}),this.remoteClientVersion=await qQr(e,this.config),DW("host",this.host)})(),await this.startPromise}async stop(){}propagateResponseExtensions(e){e?.logs?.length&&e.logs.forEach(r=>{switch(r.level){case"debug":case"trace":DW(r);break;case"error":case"warn":case"info":{this.logEmitter.emit(r.level,{timestamp:kPt(r.timestamp),message:r.attributes.message??"",target:r.target});break}case"query":{this.logEmitter.emit("query",{query:r.attributes.query??"",timestamp:kPt(r.timestamp),duration:r.attributes.duration_ms??0,params:r.attributes.params??"",target:r.target});break}default:r.level}}),e?.traces?.length&&this.tracingHelper.dispatchEngineSpans(e.traces)}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the remote query engine')}async url(e){return await this.start(),`https://${this.host}/${this.remoteClientVersion}/${this.inlineSchemaHash}/${e}`}async uploadSchema(){let e={name:"schemaUpload",internal:!0};return this.tracingHelper.runInChildSpan(e,async()=>{let r=await Yk(await this.url("schema"),{method:"PUT",headers:this.headerBuilder.build(),body:this.inlineSchema,clientVersion:this.clientVersion});r.ok||DW("schema response status",r.status);let n=await CW(r,this.clientVersion);if(n)throw this.logEmitter.emit("warn",{message:`Error while uploading schema: ${n.message}`,timestamp:new Date,target:""}),n;this.logEmitter.emit("info",{message:`Schema (re)uploaded (hash: ${this.inlineSchemaHash})`,timestamp:new Date,target:""})})}request(e,{traceparent:r,interactiveTransaction:n,customDataProxyFetch:i}){return this.requestInternal({body:e,traceparent:r,interactiveTransaction:n,customDataProxyFetch:i})}async requestBatch(e,{traceparent:r,transaction:n,customDataProxyFetch:i}){let o=n?.kind==="itx"?n.options:void 0,a=uRt(e,n);return(await this.requestInternal({body:a,customDataProxyFetch:i,interactiveTransaction:o,traceparent:r})).map(c=>(c.extensions&&this.propagateResponseExtensions(c.extensions),"errors"in c?this.convertProtocolErrorsToClientError(c.errors):c))}requestInternal({body:e,traceparent:r,customDataProxyFetch:n,interactiveTransaction:i}){return this.withRetry({actionGerund:"querying",callback:async({logHttpCall:o})=>{let a=i?`${i.payload.endpoint}/graphql`:await this.url("graphql");o(a);let c=await Yk(a,{method:"POST",headers:this.headerBuilder.build({traceparent:r,interactiveTransaction:i}),body:JSON.stringify(e),clientVersion:this.clientVersion},n);c.ok||DW("graphql response status",c.status),await this.handleError(await CW(c,this.clientVersion));let u=await c.json();if(u.extensions&&this.propagateResponseExtensions(u.extensions),"errors"in u)throw this.convertProtocolErrorsToClientError(u.errors);return"batchResult"in u?u.batchResult:u}})}async transaction(e,r,n){let i={start:"starting",commit:"committing",rollback:"rolling back"};return this.withRetry({actionGerund:`${i[e]} transaction`,callback:async({logHttpCall:o})=>{if(e==="start"){let a=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel}),c=await this.url("transaction/start");o(c);let u=await Yk(c,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),body:a,clientVersion:this.clientVersion});await this.handleError(await CW(u,this.clientVersion));let l=await u.json(),{extensions:p}=l;p&&this.propagateResponseExtensions(p);let f=l.id,g=l["data-proxy"].endpoint;return{id:f,payload:{endpoint:g}}}else{let a=`${n.payload.endpoint}/${e}`;o(a);let c=await Yk(a,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),clientVersion:this.clientVersion});await this.handleError(await CW(c,this.clientVersion));let u=await c.json(),{extensions:l}=u;l&&this.propagateResponseExtensions(l);return}}})}extractHostAndApiKey(){let e={clientVersion:this.clientVersion},r=Object.keys(this.inlineDatasources)[0],n=wEe({inlineDatasources:this.inlineDatasources,overrideDatasources:this.config.overrideDatasources,clientVersion:this.clientVersion,env:this.env}),i;try{i=new URL(n)}catch{throw new RW(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\``,e)}let{protocol:o,host:a,searchParams:c}=i;if(o!=="prisma:"&&o!==pFt)throw new RW(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\``,e);let u=c.get("api_key");if(u===null||u.length<1)throw new RW(`Error validating datasource \`${r}\`: the URL must contain a valid API key`,e);return[a,u]}metrics(){throw new SEe("Metrics are not yet supported for Accelerate",{clientVersion:this.clientVersion})}async withRetry(e){for(let r=0;;r++){let n=i=>{this.logEmitter.emit("info",{message:`Calling ${i} (n=${r})`,timestamp:new Date,target:""})};try{return await e.callback({logHttpCall:n})}catch(i){if(!(i instanceof PD)||!i.isRetryable)throw i;if(r>=MPt)throw i instanceof nEe?i.cause:i;this.logEmitter.emit("warn",{message:`Attempt ${r+1}/${MPt} failed for ${e.actionGerund}: ${i.message??"(unknown)"}`,timestamp:new Date,target:""});let o=await RQr(r);this.logEmitter.emit("warn",{message:`Retrying after ${o}ms`,timestamp:new Date,target:""})}}}async handleError(e){if(e instanceof _Ee)throw await this.uploadSchema(),new nEe({clientVersion:this.clientVersion,cause:e});if(e)throw e}convertProtocolErrorsToClientError(e){return e.length===1?lRt(e[0],this.config.clientVersion,this.config.activeProvider):new Cw(JSON.stringify(e),{clientVersion:this.config.clientVersion})}applyPendingMigrations(){throw new Error("Method not implemented.")}};function WQr({copyEngine:e=!0},r){let n;try{n=wEe({inlineDatasources:r.inlineDatasources,overrideDatasources:r.overrideDatasources,env:{...r.env,...Ns.env},clientVersion:r.clientVersion})}catch{}let i=!!(n?.startsWith("prisma://")||EKr(n));e&&i&&mFt("recommend--no-engine","In production, we recommend using `prisma generate --no-engine` (See: `prisma generate --help`)");let o=qve(r.generator),a=i||!e,c=!!r.adapter,u=o==="library",l=o==="binary",p=o==="client";if(a&&c||c){let f;throw f=["Prisma Client was configured to use the `adapter` option but it was imported via its `/edge` endpoint.","Please either remove the `/edge` endpoint or remove the `adapter` from the Prisma Client constructor."],new ig(f.join(`
|
|
955
955
|
`),{clientVersion:r.clientVersion})}return a?new NPt(r):new NPt(r)}de();ue();le();pe();fe();function NRt({generator:e}){return e?.previewFeatures??[]}de();ue();le();pe();fe();var HQr=e=>({command:e});de();ue();le();pe();fe();de();ue();le();pe();fe();var GQr=e=>e.strings.reduce((r,n,i)=>`${r}@P${i}${n}`);de();ue();le();pe();fe();function Vk(e){try{return LPt(e,"fast")}catch{return LPt(e,"slow")}}function LPt(e,r){return JSON.stringify(e.map(n=>LRt(n,r)))}function LRt(e,r){if(Array.isArray(e))return e.map(n=>LRt(n,r));if(typeof e=="bigint")return{prisma__type:"bigint",prisma__value:e.toString()};if(pEe(e))return{prisma__type:"date",prisma__value:e.toJSON()};if(o6.isDecimal(e))return{prisma__type:"decimal",prisma__value:e.toJSON()};if(Cy.Buffer.isBuffer(e))return{prisma__type:"bytes",prisma__value:e.toString("base64")};if(zQr(e))return{prisma__type:"bytes",prisma__value:Cy.Buffer.from(e).toString("base64")};if(ArrayBuffer.isView(e)){let{buffer:n,byteOffset:i,byteLength:o}=e;return{prisma__type:"bytes",prisma__value:Cy.Buffer.from(n,i,o).toString("base64")}}return typeof e=="object"&&r==="slow"?$Rt(e):e}function zQr(e){return e instanceof ArrayBuffer||e instanceof SharedArrayBuffer?!0:typeof e=="object"&&e!==null?e[Symbol.toStringTag]==="ArrayBuffer"||e[Symbol.toStringTag]==="SharedArrayBuffer":!1}function $Rt(e){if(typeof e!="object"||e===null)return e;if(typeof e.toJSON=="function")return e.toJSON();if(Array.isArray(e))return e.map($Pt);let r={};for(let n of Object.keys(e))r[n]=$Pt(e[n]);return r}function $Pt(e){return typeof e=="bigint"?e.toString():$Rt(e)}var VQr=/^(\s*alter\s)/i,BPt=sg("prisma:client");function qPt(e,r,n,i){if(!(e!=="postgresql"&&e!=="cockroachdb")&&n.length>0&&VQr.exec(r))throw new Error(`Running ALTER using ${i} is not supported
|
|
956
956
|
Using the example below you can still execute your query with Prisma, but please note that it is vulnerable to SQL injection attacks and requires you to take care of input sanitization.
|
|
@@ -959,7 +959,7 @@ Example:
|
|
|
959
959
|
await prisma.$executeRawUnsafe(\`ALTER USER prisma WITH PASSWORD '\${password}'\`)
|
|
960
960
|
|
|
961
961
|
More Information: https://pris.ly/d/execute-raw
|
|
962
|
-
`)}var jPt=({clientMethod:e,activeProvider:r})=>n=>{let i="",o;if(oRt(n))i=n.sql,o={values:Vk(n.values),__prismaRawParameters__:!0};else if(Array.isArray(n)){let[a,...c]=n;i=a,o={values:Vk(c||[]),__prismaRawParameters__:!0}}else switch(r){case"sqlite":case"mysql":{i=n.sql,o={values:Vk(n.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{i=n.text,o={values:Vk(n.values),__prismaRawParameters__:!0};break}case"sqlserver":{i=GQr(n),o={values:Vk(n.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${r} provider does not support ${e}`)}return o?.values?BPt(`prisma.${e}(${i}, ${o.values})`):BPt(`prisma.${e}(${i})`),{query:i,parameters:o}},KQr={requestArgsToMiddlewareArgs(e){return[e.strings,...e.values]},middlewareArgsToRequestArgs(e){let[r,...n]=e;return new Oy(r,n)}},YQr={requestArgsToMiddlewareArgs(e){return[e]},middlewareArgsToRequestArgs(e){return e[0]}};de();ue();le();pe();fe();function UPt(e){return function(r,n){let i,o=(a=e)=>{try{return a===void 0||a?.kind==="itx"?i??=WPt(r(a)):WPt(r(a))}catch(c){return Promise.reject(c)}};return{get spec(){return n},then(a,c){return o().then(a,c)},catch(a){return o().catch(a)},finally(a){return o().finally(a)},requestTransaction(a){let c=o(a);return c.requestTransaction?c.requestTransaction(a):c},[Symbol.toStringTag]:"PrismaPromise"}}}function WPt(e){return typeof e.then=="function"?e:Promise.resolve(e)}de();ue();le();pe();fe();var JQr=xKr.split(".")[0],QQr={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},dispatchEngineSpans(){},getActiveContext(){},runInChildSpan(e,r){return r()}},ZQr=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(e){return this.getGlobalTracingHelper().getTraceParent(e)}dispatchEngineSpans(e){return this.getGlobalTracingHelper().dispatchEngineSpans(e)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(e,r){return this.getGlobalTracingHelper().runInChildSpan(e,r)}getGlobalTracingHelper(){let e=globalThis[`V${JQr}_PRISMA_INSTRUMENTATION`],r=globalThis.PRISMA_INSTRUMENTATION;return e?.helper??r?.helper??QQr}};function XQr(){return new ZQr}de();ue();le();pe();fe();function eZr(e,r=()=>{}){let n,i=new Promise(o=>n=o);return{then(o){return--e===0&&n(r()),o?.(i)}}}de();ue();le();pe();fe();function tZr(e){return typeof e=="string"?e:e.reduce((r,n)=>{let i=typeof n=="string"?n:n.level;return i==="query"?r:r&&(n==="info"||r==="info")?"info":i},void 0)}de();ue();le();pe();fe();var rZr=class{constructor(){ye(this,"_middlewares",[])}use(e){this._middlewares.push(e)}get(e){return this._middlewares[e]}has(e){return!!this._middlewares[e]}length(){return this._middlewares.length}};de();ue();le();pe();fe();var nZr=OD(KVr());de();ue();le();pe();fe();function BRt(e){return typeof e.batchRequestIdx=="number"}de();ue();le();pe();fe();function iZr(e){if(e.action!=="findUnique"&&e.action!=="findUniqueOrThrow")return;let r=[];return e.modelName&&r.push(e.modelName),e.query.arguments&&r.push(oEe(e.query.arguments)),r.push(oEe(e.query.selection)),r.join("")}function oEe(e){return`(${Object.keys(e).sort().map(r=>{let n=e[r];return typeof n=="object"&&n!==null?`(${r} ${oEe(n)})`:r}).join(" ")})`}de();ue();le();pe();fe();var oZr={aggregate:!1,aggregateRaw:!1,createMany:!0,createManyAndReturn:!0,createOne:!0,deleteMany:!0,deleteOne:!0,executeRaw:!0,findFirst:!1,findFirstOrThrow:!1,findMany:!1,findRaw:!1,findUnique:!1,findUniqueOrThrow:!1,groupBy:!1,queryRaw:!1,runCommandRaw:!0,updateMany:!0,updateManyAndReturn:!0,updateOne:!0,upsertOne:!0};function HPt(e){return oZr[e]}de();ue();le();pe();fe();var sZr=class{constructor(e){this.options=e,ye(this,"batches"),ye(this,"tickActive",!1),this.batches={}}request(e){let r=this.options.batchBy(e);return r?(this.batches[r]||(this.batches[r]=[],this.tickActive||(this.tickActive=!0,Ns.nextTick(()=>{this.dispatchBatches(),this.tickActive=!1}))),new Promise((n,i)=>{this.batches[r].push({request:e,resolve:n,reject:i})})):this.options.singleLoader(e)}dispatchBatches(){for(let e in this.batches){let r=this.batches[e];delete this.batches[e],r.length===1?this.options.singleLoader(r[0].request).then(n=>{n instanceof Error?r[0].reject(n):r[0].resolve(n)}).catch(n=>{r[0].reject(n)}):(r.sort((n,i)=>this.options.batchOrder(n.request,i.request)),this.options.batchLoader(r.map(n=>n.request)).then(n=>{if(n instanceof Error)for(let i=0;i<r.length;i++)r[i].reject(n);else for(let i=0;i<r.length;i++){let o=n[i];o instanceof Error?r[i].reject(o):r[i].resolve(o)}}).catch(n=>{for(let i=0;i<r.length;i++)r[i].reject(n)}))}}get[Symbol.toStringTag](){return"DataLoader"}};de();ue();le();pe();fe();function Sw(e,r){if(r===null)return r;switch(e){case"bigint":return BigInt(r);case"bytes":{let{buffer:n,byteOffset:i,byteLength:o}=Cy.Buffer.from(r,"base64");return new Uint8Array(n,i,o)}case"decimal":return new o6(r);case"datetime":case"date":return new Date(r);case"time":return new Date(`1970-01-01T${r}Z`);case"bigint-array":return r.map(n=>Sw("bigint",n));case"bytes-array":return r.map(n=>Sw("bytes",n));case"decimal-array":return r.map(n=>Sw("decimal",n));case"datetime-array":return r.map(n=>Sw("datetime",n));case"date-array":return r.map(n=>Sw("date",n));case"time-array":return r.map(n=>Sw("time",n));default:return r}}function qRt(e){let r=[],n=aZr(e);for(let i=0;i<e.rows.length;i++){let o=e.rows[i],a={...n};for(let c=0;c<o.length;c++)a[e.columns[c]]=Sw(e.types[c],o[c]);r.push(a)}return r}function aZr(e){let r={};for(let n=0;n<e.columns.length;n++)r[e.columns[n]]=null;return r}var cZr=sg("prisma:client:request_handler"),uZr=class{constructor(e,r){ye(this,"client"),ye(this,"dataloader"),ye(this,"logEmitter"),this.logEmitter=r,this.client=e,this.dataloader=new sZr({batchLoader:yQr(async({requests:n,customDataProxyFetch:i})=>{let{transaction:o,otelParentCtx:a}=n[0],c=n.map(p=>p.protocolQuery),u=this.client._tracingHelper.getTraceParent(a),l=n.some(p=>HPt(p.protocolQuery.action));return(await this.client._engine.requestBatch(c,{traceparent:u,transaction:lZr(o),containsWrite:l,customDataProxyFetch:i})).map((p,f)=>{if(p instanceof Error)return p;try{return this.mapQueryEngineResult(n[f],p)}catch(g){return g}})}),singleLoader:async n=>{let i=n.transaction?.kind==="itx"?jRt(n.transaction):void 0,o=await this.client._engine.request(n.protocolQuery,{traceparent:this.client._tracingHelper.getTraceParent(),interactiveTransaction:i,isWrite:HPt(n.protocolQuery.action),customDataProxyFetch:n.customDataProxyFetch});return this.mapQueryEngineResult(n,o)},batchBy:n=>n.transaction?.id?`transaction-${n.transaction.id}`:iZr(n.protocolQuery),batchOrder(n,i){return n.transaction?.kind==="batch"&&i.transaction?.kind==="batch"?n.transaction.index-i.transaction.index:0}})}async request(e){try{return await this.dataloader.request(e)}catch(r){let{clientMethod:n,callsite:i,transaction:o,args:a,modelName:c}=e;this.handleAndLogRequestError({error:r,clientMethod:n,callsite:i,transaction:o,args:a,modelName:c,globalOmit:e.globalOmit})}}mapQueryEngineResult({dataPath:e,unpacker:r},n){let i=n?.data,o=this.unpack(i,e,r);return Ns.env.PRISMA_CLIENT_GET_TIME?{data:o}:o}handleAndLogRequestError(e){try{this.handleRequestError(e)}catch(r){throw this.logEmitter&&this.logEmitter.emit("error",{message:r.message,target:e.clientMethod,timestamp:new Date}),r}}handleRequestError({error:e,clientMethod:r,callsite:n,transaction:i,args:o,modelName:a,globalOmit:c}){if(cZr(e),pZr(e,i))throw e;if(e instanceof _w&&fZr(e)){let l=URt(e.meta);VFt({args:o,errors:[l],callsite:n,errorFormat:this.client._errorFormat,originalMethod:r,clientVersion:this.client._clientVersion,globalOmit:c})}let u=e.message;if(n&&(u=OFt({callsite:n,originalMethod:r,isPanic:e.isPanic,showColors:this.client._errorFormat==="pretty",message:u})),u=this.sanitizeMessage(u),e.code){let l=a?{modelName:a,...e.meta}:e.meta;throw new _w(u,{code:e.code,clientVersion:this.client._clientVersion,meta:l,batchRequestIdx:e.batchRequestIdx})}else{if(e.isPanic)throw new Qk(u,this.client._clientVersion);if(e instanceof Cw)throw new Cw(u,{clientVersion:this.client._clientVersion,batchRequestIdx:e.batchRequestIdx});if(e instanceof zu)throw new zu(u,this.client._clientVersion);if(e instanceof Qk)throw new Qk(u,this.client._clientVersion)}throw e.clientVersion=this.client._clientVersion,e}sanitizeMessage(e){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,nZr.default)(e):e}unpack(e,r,n){if(!e||(e.data&&(e=e.data),!e))return e;let i=Object.keys(e)[0],o=Object.values(e)[0],a=r.filter(l=>l!=="select"&&l!=="include"),c=fRt(o,a),u=i==="queryRaw"?qRt(c):LW(c);return n?n(u):u}get[Symbol.toStringTag](){return"RequestHandler"}};function lZr(e){if(e){if(e.kind==="batch")return{kind:"batch",options:{isolationLevel:e.isolationLevel}};if(e.kind==="itx")return{kind:"itx",options:jRt(e)};jW(e,"Unknown transaction kind")}}function jRt(e){return{id:e.id,payload:e.payload}}function pZr(e,r){return BRt(e)&&r?.kind==="batch"&&e.batchRequestIdx!==r.index}function fZr(e){return e.code==="P2009"||e.code==="P2012"}function URt(e){if(e.kind==="Union")return{kind:"Union",errors:e.errors.map(URt)};if(Array.isArray(e.selectionPath)){let[,...r]=e.selectionPath;return{...e,selectionPath:r}}return e}de();ue();le();pe();fe();var dZr="6.5.0-dev.
|
|
962
|
+
`)}var jPt=({clientMethod:e,activeProvider:r})=>n=>{let i="",o;if(oRt(n))i=n.sql,o={values:Vk(n.values),__prismaRawParameters__:!0};else if(Array.isArray(n)){let[a,...c]=n;i=a,o={values:Vk(c||[]),__prismaRawParameters__:!0}}else switch(r){case"sqlite":case"mysql":{i=n.sql,o={values:Vk(n.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{i=n.text,o={values:Vk(n.values),__prismaRawParameters__:!0};break}case"sqlserver":{i=GQr(n),o={values:Vk(n.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${r} provider does not support ${e}`)}return o?.values?BPt(`prisma.${e}(${i}, ${o.values})`):BPt(`prisma.${e}(${i})`),{query:i,parameters:o}},KQr={requestArgsToMiddlewareArgs(e){return[e.strings,...e.values]},middlewareArgsToRequestArgs(e){let[r,...n]=e;return new Oy(r,n)}},YQr={requestArgsToMiddlewareArgs(e){return[e]},middlewareArgsToRequestArgs(e){return e[0]}};de();ue();le();pe();fe();function UPt(e){return function(r,n){let i,o=(a=e)=>{try{return a===void 0||a?.kind==="itx"?i??=WPt(r(a)):WPt(r(a))}catch(c){return Promise.reject(c)}};return{get spec(){return n},then(a,c){return o().then(a,c)},catch(a){return o().catch(a)},finally(a){return o().finally(a)},requestTransaction(a){let c=o(a);return c.requestTransaction?c.requestTransaction(a):c},[Symbol.toStringTag]:"PrismaPromise"}}}function WPt(e){return typeof e.then=="function"?e:Promise.resolve(e)}de();ue();le();pe();fe();var JQr=xKr.split(".")[0],QQr={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},dispatchEngineSpans(){},getActiveContext(){},runInChildSpan(e,r){return r()}},ZQr=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(e){return this.getGlobalTracingHelper().getTraceParent(e)}dispatchEngineSpans(e){return this.getGlobalTracingHelper().dispatchEngineSpans(e)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(e,r){return this.getGlobalTracingHelper().runInChildSpan(e,r)}getGlobalTracingHelper(){let e=globalThis[`V${JQr}_PRISMA_INSTRUMENTATION`],r=globalThis.PRISMA_INSTRUMENTATION;return e?.helper??r?.helper??QQr}};function XQr(){return new ZQr}de();ue();le();pe();fe();function eZr(e,r=()=>{}){let n,i=new Promise(o=>n=o);return{then(o){return--e===0&&n(r()),o?.(i)}}}de();ue();le();pe();fe();function tZr(e){return typeof e=="string"?e:e.reduce((r,n)=>{let i=typeof n=="string"?n:n.level;return i==="query"?r:r&&(n==="info"||r==="info")?"info":i},void 0)}de();ue();le();pe();fe();var rZr=class{constructor(){ye(this,"_middlewares",[])}use(e){this._middlewares.push(e)}get(e){return this._middlewares[e]}has(e){return!!this._middlewares[e]}length(){return this._middlewares.length}};de();ue();le();pe();fe();var nZr=OD(KVr());de();ue();le();pe();fe();function BRt(e){return typeof e.batchRequestIdx=="number"}de();ue();le();pe();fe();function iZr(e){if(e.action!=="findUnique"&&e.action!=="findUniqueOrThrow")return;let r=[];return e.modelName&&r.push(e.modelName),e.query.arguments&&r.push(oEe(e.query.arguments)),r.push(oEe(e.query.selection)),r.join("")}function oEe(e){return`(${Object.keys(e).sort().map(r=>{let n=e[r];return typeof n=="object"&&n!==null?`(${r} ${oEe(n)})`:r}).join(" ")})`}de();ue();le();pe();fe();var oZr={aggregate:!1,aggregateRaw:!1,createMany:!0,createManyAndReturn:!0,createOne:!0,deleteMany:!0,deleteOne:!0,executeRaw:!0,findFirst:!1,findFirstOrThrow:!1,findMany:!1,findRaw:!1,findUnique:!1,findUniqueOrThrow:!1,groupBy:!1,queryRaw:!1,runCommandRaw:!0,updateMany:!0,updateManyAndReturn:!0,updateOne:!0,upsertOne:!0};function HPt(e){return oZr[e]}de();ue();le();pe();fe();var sZr=class{constructor(e){this.options=e,ye(this,"batches"),ye(this,"tickActive",!1),this.batches={}}request(e){let r=this.options.batchBy(e);return r?(this.batches[r]||(this.batches[r]=[],this.tickActive||(this.tickActive=!0,Ns.nextTick(()=>{this.dispatchBatches(),this.tickActive=!1}))),new Promise((n,i)=>{this.batches[r].push({request:e,resolve:n,reject:i})})):this.options.singleLoader(e)}dispatchBatches(){for(let e in this.batches){let r=this.batches[e];delete this.batches[e],r.length===1?this.options.singleLoader(r[0].request).then(n=>{n instanceof Error?r[0].reject(n):r[0].resolve(n)}).catch(n=>{r[0].reject(n)}):(r.sort((n,i)=>this.options.batchOrder(n.request,i.request)),this.options.batchLoader(r.map(n=>n.request)).then(n=>{if(n instanceof Error)for(let i=0;i<r.length;i++)r[i].reject(n);else for(let i=0;i<r.length;i++){let o=n[i];o instanceof Error?r[i].reject(o):r[i].resolve(o)}}).catch(n=>{for(let i=0;i<r.length;i++)r[i].reject(n)}))}}get[Symbol.toStringTag](){return"DataLoader"}};de();ue();le();pe();fe();function Sw(e,r){if(r===null)return r;switch(e){case"bigint":return BigInt(r);case"bytes":{let{buffer:n,byteOffset:i,byteLength:o}=Cy.Buffer.from(r,"base64");return new Uint8Array(n,i,o)}case"decimal":return new o6(r);case"datetime":case"date":return new Date(r);case"time":return new Date(`1970-01-01T${r}Z`);case"bigint-array":return r.map(n=>Sw("bigint",n));case"bytes-array":return r.map(n=>Sw("bytes",n));case"decimal-array":return r.map(n=>Sw("decimal",n));case"datetime-array":return r.map(n=>Sw("datetime",n));case"date-array":return r.map(n=>Sw("date",n));case"time-array":return r.map(n=>Sw("time",n));default:return r}}function qRt(e){let r=[],n=aZr(e);for(let i=0;i<e.rows.length;i++){let o=e.rows[i],a={...n};for(let c=0;c<o.length;c++)a[e.columns[c]]=Sw(e.types[c],o[c]);r.push(a)}return r}function aZr(e){let r={};for(let n=0;n<e.columns.length;n++)r[e.columns[n]]=null;return r}var cZr=sg("prisma:client:request_handler"),uZr=class{constructor(e,r){ye(this,"client"),ye(this,"dataloader"),ye(this,"logEmitter"),this.logEmitter=r,this.client=e,this.dataloader=new sZr({batchLoader:yQr(async({requests:n,customDataProxyFetch:i})=>{let{transaction:o,otelParentCtx:a}=n[0],c=n.map(p=>p.protocolQuery),u=this.client._tracingHelper.getTraceParent(a),l=n.some(p=>HPt(p.protocolQuery.action));return(await this.client._engine.requestBatch(c,{traceparent:u,transaction:lZr(o),containsWrite:l,customDataProxyFetch:i})).map((p,f)=>{if(p instanceof Error)return p;try{return this.mapQueryEngineResult(n[f],p)}catch(g){return g}})}),singleLoader:async n=>{let i=n.transaction?.kind==="itx"?jRt(n.transaction):void 0,o=await this.client._engine.request(n.protocolQuery,{traceparent:this.client._tracingHelper.getTraceParent(),interactiveTransaction:i,isWrite:HPt(n.protocolQuery.action),customDataProxyFetch:n.customDataProxyFetch});return this.mapQueryEngineResult(n,o)},batchBy:n=>n.transaction?.id?`transaction-${n.transaction.id}`:iZr(n.protocolQuery),batchOrder(n,i){return n.transaction?.kind==="batch"&&i.transaction?.kind==="batch"?n.transaction.index-i.transaction.index:0}})}async request(e){try{return await this.dataloader.request(e)}catch(r){let{clientMethod:n,callsite:i,transaction:o,args:a,modelName:c}=e;this.handleAndLogRequestError({error:r,clientMethod:n,callsite:i,transaction:o,args:a,modelName:c,globalOmit:e.globalOmit})}}mapQueryEngineResult({dataPath:e,unpacker:r},n){let i=n?.data,o=this.unpack(i,e,r);return Ns.env.PRISMA_CLIENT_GET_TIME?{data:o}:o}handleAndLogRequestError(e){try{this.handleRequestError(e)}catch(r){throw this.logEmitter&&this.logEmitter.emit("error",{message:r.message,target:e.clientMethod,timestamp:new Date}),r}}handleRequestError({error:e,clientMethod:r,callsite:n,transaction:i,args:o,modelName:a,globalOmit:c}){if(cZr(e),pZr(e,i))throw e;if(e instanceof _w&&fZr(e)){let l=URt(e.meta);VFt({args:o,errors:[l],callsite:n,errorFormat:this.client._errorFormat,originalMethod:r,clientVersion:this.client._clientVersion,globalOmit:c})}let u=e.message;if(n&&(u=OFt({callsite:n,originalMethod:r,isPanic:e.isPanic,showColors:this.client._errorFormat==="pretty",message:u})),u=this.sanitizeMessage(u),e.code){let l=a?{modelName:a,...e.meta}:e.meta;throw new _w(u,{code:e.code,clientVersion:this.client._clientVersion,meta:l,batchRequestIdx:e.batchRequestIdx})}else{if(e.isPanic)throw new Qk(u,this.client._clientVersion);if(e instanceof Cw)throw new Cw(u,{clientVersion:this.client._clientVersion,batchRequestIdx:e.batchRequestIdx});if(e instanceof zu)throw new zu(u,this.client._clientVersion);if(e instanceof Qk)throw new Qk(u,this.client._clientVersion)}throw e.clientVersion=this.client._clientVersion,e}sanitizeMessage(e){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,nZr.default)(e):e}unpack(e,r,n){if(!e||(e.data&&(e=e.data),!e))return e;let i=Object.keys(e)[0],o=Object.values(e)[0],a=r.filter(l=>l!=="select"&&l!=="include"),c=fRt(o,a),u=i==="queryRaw"?qRt(c):LW(c);return n?n(u):u}get[Symbol.toStringTag](){return"RequestHandler"}};function lZr(e){if(e){if(e.kind==="batch")return{kind:"batch",options:{isolationLevel:e.isolationLevel}};if(e.kind==="itx")return{kind:"itx",options:jRt(e)};jW(e,"Unknown transaction kind")}}function jRt(e){return{id:e.id,payload:e.payload}}function pZr(e,r){return BRt(e)&&r?.kind==="batch"&&e.batchRequestIdx!==r.index}function fZr(e){return e.code==="P2009"||e.code==="P2012"}function URt(e){if(e.kind==="Union")return{kind:"Union",errors:e.errors.map(URt)};if(Array.isArray(e.selectionPath)){let[,...r]=e.selectionPath;return{...e,selectionPath:r}}return e}de();ue();le();pe();fe();var dZr="6.5.0-dev.57",hZr=dZr;de();ue();le();pe();fe();var mZr=OD(XPt());de();ue();le();pe();fe();var ii=class extends Error{constructor(e){super(e+`
|
|
963
963
|
Read more at https://pris.ly/d/client-constructor`),this.name="PrismaClientConstructorValidationError"}get[Symbol.toStringTag](){return"PrismaClientConstructorValidationError"}};eo(ii,"PrismaClientConstructorValidationError");var GPt=["datasources","datasourceUrl","errorFormat","adapter","log","transactionOptions","omit","__internal"],zPt=["pretty","colorless","minimal"],VPt=["info","query","warn","error"],gZr={datasources:(e,{datasourceNames:r})=>{if(e){if(typeof e!="object"||Array.isArray(e))throw new ii(`Invalid value ${JSON.stringify(e)} for "datasources" provided to PrismaClient constructor`);for(let[n,i]of Object.entries(e)){if(!r.includes(n)){let o=_D(n,r)||` Available datasources: ${r.join(", ")}`;throw new ii(`Unknown datasource ${n} provided to PrismaClient constructor.${o}`)}if(typeof i!="object"||Array.isArray(i))throw new ii(`Invalid value ${JSON.stringify(e)} for datasource "${n}" provided to PrismaClient constructor.
|
|
964
964
|
It should have this form: { url: "CONNECTION_STRING" }`);if(i&&typeof i=="object")for(let[o,a]of Object.entries(i)){if(o!=="url")throw new ii(`Invalid value ${JSON.stringify(e)} for datasource "${n}" provided to PrismaClient constructor.
|
|
965
965
|
It should have this form: { url: "CONNECTION_STRING" }`);if(typeof a!="string")throw new ii(`Invalid value ${JSON.stringify(a)} for datasource "${n}" provided to PrismaClient constructor.
|