UNPKG

@prisma/client

Version:

Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.

4 lines • 181 kB
var ql=Object.create;var sr=Object.defineProperty;var Vl=Object.getOwnPropertyDescriptor;var Bl=Object.getOwnPropertyNames;var jl=Object.getPrototypeOf,Ql=Object.prototype.hasOwnProperty;var pe=(e,t)=>()=>(e&&(t=e(e=0)),t);var re=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),xt=(e,t)=>{for(var r in t)sr(e,r,{get:t[r],enumerable:!0})},_i=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Bl(t))!Ql.call(e,i)&&i!==r&&sr(e,i,{get:()=>t[i],enumerable:!(n=Vl(t,i))||n.enumerable});return e};var Me=(e,t,r)=>(r=e!=null?ql(jl(e)):{},_i(t||!e||!e.__esModule?sr(r,"default",{value:e,enumerable:!0}):r,e)),Hl=e=>_i(sr({},"__esModule",{value:!0}),e);function gn(e,t){if(t=t.toLowerCase(),t==="utf8"||t==="utf-8")return new h(Kl.encode(e));if(t==="base64"||t==="base64url")return e=e.replace(/-/g,"+").replace(/_/g,"/"),e=e.replace(/[^A-Za-z0-9+/]/g,""),new h([...atob(e)].map(r=>r.charCodeAt(0)));if(t==="binary"||t==="ascii"||t==="latin1"||t==="latin-1")return new h([...e].map(r=>r.charCodeAt(0)));if(t==="ucs2"||t==="ucs-2"||t==="utf16le"||t==="utf-16le"){let r=new h(e.length*2),n=new DataView(r.buffer);for(let i=0;i<e.length;i++)n.setUint16(i*2,e.charCodeAt(i),!0);return r}if(t==="hex"){let r=new h(e.length/2);for(let n=0,i=0;i<e.length;i+=2,n++)r[n]=parseInt(e.slice(i,i+2),16);return r}Ui(`encoding "${t}"`)}function Jl(e){let r=Object.getOwnPropertyNames(DataView.prototype).filter(a=>a.startsWith("get")||a.startsWith("set")),n=r.map(a=>a.replace("get","read").replace("set","write")),i=(a,d)=>function(f=0){return Q(f,"offset"),te(f,"offset"),J(f,"offset",this.length-1),new DataView(this.buffer)[r[a]](f,d)},o=(a,d)=>function(f,P=0){let v=r[a].match(/set(\w+\d+)/)[1].toLowerCase(),S=Gl[v];return Q(P,"offset"),te(P,"offset"),J(P,"offset",this.length-1),Wl(f,"value",S[0],S[1]),new DataView(this.buffer)[r[a]](P,f,d),P+parseInt(r[a].match(/\d+/)[0])/8},s=a=>{a.forEach(d=>{d.includes("Uint")&&(e[d.replace("Uint","UInt")]=e[d]),d.includes("Float64")&&(e[d.replace("Float64","Double")]=e[d]),d.includes("Float32")&&(e[d.replace("Float32","Float")]=e[d])})};n.forEach((a,d)=>{a.startsWith("read")&&(e[a]=i(d,!1),e[a+"LE"]=i(d,!0),e[a+"BE"]=i(d,!1)),a.startsWith("write")&&(e[a]=o(d,!1),e[a+"LE"]=o(d,!0),e[a+"BE"]=o(d,!1)),s([a,a+"LE",a+"BE"])})}function Ui(e){throw new Error(`Buffer polyfill does not implement "${e}"`)}function ar(e,t){if(!(e instanceof Uint8Array))throw new TypeError(`The "${t}" argument must be an instance of Buffer or Uint8Array`)}function J(e,t,r=Yl+1){if(e<0||e>r){let n=new RangeError(`The value of "${t}" is out of range. It must be >= 0 && <= ${r}. Received ${e}`);throw n.code="ERR_OUT_OF_RANGE",n}}function Q(e,t){if(typeof e!="number"){let r=new TypeError(`The "${t}" argument must be of type number. Received type ${typeof e}.`);throw r.code="ERR_INVALID_ARG_TYPE",r}}function te(e,t){if(!Number.isInteger(e)||Number.isNaN(e)){let r=new RangeError(`The value of "${t}" is out of range. It must be an integer. Received ${e}`);throw r.code="ERR_OUT_OF_RANGE",r}}function Wl(e,t,r,n){if(e<r||e>n){let i=new RangeError(`The value of "${t}" is out of range. It must be >= ${r} and <= ${n}. Received ${e}`);throw i.code="ERR_OUT_OF_RANGE",i}}function Fi(e,t){if(typeof e!="string"){let r=new TypeError(`The "${t}" argument must be of type string. Received type ${typeof e}`);throw r.code="ERR_INVALID_ARG_TYPE",r}}function Xl(e,t="utf8"){return h.from(e,t)}var h,Gl,Kl,zl,Zl,Yl,y,yn,l=pe(()=>{"use strict";h=class e extends Uint8Array{_isBuffer=!0;get offset(){return this.byteOffset}static alloc(t,r=0,n="utf8"){return Fi(n,"encoding"),e.allocUnsafe(t).fill(r,n)}static allocUnsafe(t){return e.from(t)}static allocUnsafeSlow(t){return e.from(t)}static isBuffer(t){return t&&!!t._isBuffer}static byteLength(t,r="utf8"){if(typeof t=="string")return gn(t,r).byteLength;if(t&&t.byteLength)return t.byteLength;let n=new TypeError('The "string" argument must be of type string or an instance of Buffer or ArrayBuffer.');throw n.code="ERR_INVALID_ARG_TYPE",n}static isEncoding(t){return Zl.includes(t)}static compare(t,r){ar(t,"buff1"),ar(r,"buff2");for(let n=0;n<t.length;n++){if(t[n]<r[n])return-1;if(t[n]>r[n])return 1}return t.length===r.length?0:t.length>r.length?1:-1}static from(t,r="utf8"){if(t&&typeof t=="object"&&t.type==="Buffer")return new e(t.data);if(typeof t=="number")return new e(new Uint8Array(t));if(typeof t=="string")return gn(t,r);if(ArrayBuffer.isView(t)){let{byteOffset:n,byteLength:i,buffer:o}=t;return"map"in t&&typeof t.map=="function"?new e(t.map(s=>s%256),n,i):new e(o,n,i)}if(t&&typeof t=="object"&&("length"in t||"byteLength"in t||"buffer"in t))return new e(t);throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}static concat(t,r){if(t.length===0)return e.alloc(0);let n=[].concat(...t.map(o=>[...o])),i=e.alloc(r!==void 0?r:n.length);return i.set(r!==void 0?n.slice(0,r):n),i}slice(t=0,r=this.length){return this.subarray(t,r)}subarray(t=0,r=this.length){return Object.setPrototypeOf(super.subarray(t,r),e.prototype)}reverse(){return super.reverse(),this}readIntBE(t,r){Q(t,"offset"),te(t,"offset"),J(t,"offset",this.length-1),Q(r,"byteLength"),te(r,"byteLength");let n=new DataView(this.buffer,t,r),i=0;for(let o=0;o<r;o++)i=i*256+n.getUint8(o);return n.getUint8(0)&128&&(i-=Math.pow(256,r)),i}readIntLE(t,r){Q(t,"offset"),te(t,"offset"),J(t,"offset",this.length-1),Q(r,"byteLength"),te(r,"byteLength");let n=new DataView(this.buffer,t,r),i=0;for(let o=0;o<r;o++)i+=n.getUint8(o)*Math.pow(256,o);return n.getUint8(r-1)&128&&(i-=Math.pow(256,r)),i}readUIntBE(t,r){Q(t,"offset"),te(t,"offset"),J(t,"offset",this.length-1),Q(r,"byteLength"),te(r,"byteLength");let n=new DataView(this.buffer,t,r),i=0;for(let o=0;o<r;o++)i=i*256+n.getUint8(o);return i}readUintBE(t,r){return this.readUIntBE(t,r)}readUIntLE(t,r){Q(t,"offset"),te(t,"offset"),J(t,"offset",this.length-1),Q(r,"byteLength"),te(r,"byteLength");let n=new DataView(this.buffer,t,r),i=0;for(let o=0;o<r;o++)i+=n.getUint8(o)*Math.pow(256,o);return i}readUintLE(t,r){return this.readUIntLE(t,r)}writeIntBE(t,r,n){return t=t<0?t+Math.pow(256,n):t,this.writeUIntBE(t,r,n)}writeIntLE(t,r,n){return t=t<0?t+Math.pow(256,n):t,this.writeUIntLE(t,r,n)}writeUIntBE(t,r,n){Q(r,"offset"),te(r,"offset"),J(r,"offset",this.length-1),Q(n,"byteLength"),te(n,"byteLength");let i=new DataView(this.buffer,r,n);for(let o=n-1;o>=0;o--)i.setUint8(o,t&255),t=t/256;return r+n}writeUintBE(t,r,n){return this.writeUIntBE(t,r,n)}writeUIntLE(t,r,n){Q(r,"offset"),te(r,"offset"),J(r,"offset",this.length-1),Q(n,"byteLength"),te(n,"byteLength");let i=new DataView(this.buffer,r,n);for(let o=0;o<n;o++)i.setUint8(o,t&255),t=t/256;return r+n}writeUintLE(t,r,n){return this.writeUIntLE(t,r,n)}toJSON(){return{type:"Buffer",data:Array.from(this)}}swap16(){let t=new DataView(this.buffer,this.byteOffset,this.byteLength);for(let r=0;r<this.length;r+=2)t.setUint16(r,t.getUint16(r,!0),!1);return this}swap32(){let t=new DataView(this.buffer,this.byteOffset,this.byteLength);for(let r=0;r<this.length;r+=4)t.setUint32(r,t.getUint32(r,!0),!1);return this}swap64(){let t=new DataView(this.buffer,this.byteOffset,this.byteLength);for(let r=0;r<this.length;r+=8)t.setBigUint64(r,t.getBigUint64(r,!0),!1);return this}compare(t,r=0,n=t.length,i=0,o=this.length){return ar(t,"target"),Q(r,"targetStart"),Q(n,"targetEnd"),Q(i,"sourceStart"),Q(o,"sourceEnd"),J(r,"targetStart"),J(n,"targetEnd",t.length),J(i,"sourceStart"),J(o,"sourceEnd",this.length),e.compare(this.slice(i,o),t.slice(r,n))}equals(t){return ar(t,"otherBuffer"),this.length===t.length&&this.every((r,n)=>r===t[n])}copy(t,r=0,n=0,i=this.length){J(r,"targetStart"),J(n,"sourceStart",this.length),J(i,"sourceEnd"),r>>>=0,n>>>=0,i>>>=0;let o=0;for(;n<i&&!(this[n]===void 0||t[r]===void 0);)t[r]=this[n],o++,n++,r++;return o}write(t,r,n,i="utf8"){let o=typeof r=="string"?0:r??0,s=typeof n=="string"?this.length-o:n??this.length-o;return i=typeof r=="string"?r:typeof n=="string"?n:i,Q(o,"offset"),Q(s,"length"),J(o,"offset",this.length),J(s,"length",this.length),(i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")&&(s=s-s%2),gn(t,i).copy(this,o,0,s)}fill(t=0,r=0,n=this.length,i="utf-8"){let o=typeof r=="string"?0:r,s=typeof n=="string"?this.length:n;if(i=typeof r=="string"?r:typeof n=="string"?n:i,t=e.from(typeof t=="number"?[t]:t??[],i),Fi(i,"encoding"),J(o,"offset",this.length),J(s,"end",this.length),t.length!==0)for(let a=o;a<s;a+=t.length)super.set(t.slice(0,t.length+a>=this.length?this.length-a:t.length),a);return this}includes(t,r=null,n="utf-8"){return this.indexOf(t,r,n)!==-1}lastIndexOf(t,r=null,n="utf-8"){return this.indexOf(t,r,n,!0)}indexOf(t,r=null,n="utf-8",i=!1){let o=i?this.findLastIndex.bind(this):this.findIndex.bind(this);n=typeof r=="string"?r:n;let s=e.from(typeof t=="number"?[t]:t,n),a=typeof r=="string"?0:r;return a=typeof r=="number"?a:null,a=Number.isNaN(a)?null:a,a??=i?this.length:0,a=a<0?this.length+a:a,s.length===0&&i===!1?a>=this.length?this.length:a:s.length===0&&i===!0?(a>=this.length?this.length:a)||this.length:o((d,f)=>(i?f<=a:f>=a)&&this[f]===s[0]&&s.every((v,S)=>this[f+S]===v))}toString(t="utf8",r=0,n=this.length){if(r=r<0?0:r,t=t.toString().toLowerCase(),n<=0)return"";if(t==="utf8"||t==="utf-8")return zl.decode(this.slice(r,n));if(t==="base64"||t==="base64url"){let i=btoa(this.reduce((o,s)=>o+yn(s),""));return t==="base64url"?i.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""):i}if(t==="binary"||t==="ascii"||t==="latin1"||t==="latin-1")return this.slice(r,n).reduce((i,o)=>i+yn(o&(t==="ascii"?127:255)),"");if(t==="ucs2"||t==="ucs-2"||t==="utf16le"||t==="utf-16le"){let i=new DataView(this.buffer.slice(r,n));return Array.from({length:i.byteLength/2},(o,s)=>s*2+1<i.byteLength?yn(i.getUint16(s*2,!0)):"").join("")}if(t==="hex")return this.slice(r,n).reduce((i,o)=>i+o.toString(16).padStart(2,"0"),"");Ui(`encoding "${t}"`)}toLocaleString(){return this.toString()}inspect(){return`<Buffer ${this.toString("hex").match(/.{1,2}/g).join(" ")}>`}};Gl={int8:[-128,127],int16:[-32768,32767],int32:[-2147483648,2147483647],uint8:[0,255],uint16:[0,65535],uint32:[0,4294967295],float32:[-1/0,1/0],float64:[-1/0,1/0],bigint64:[-0x8000000000000000n,0x7fffffffffffffffn],biguint64:[0n,0xffffffffffffffffn]},Kl=new TextEncoder,zl=new TextDecoder,Zl=["utf8","utf-8","hex","base64","ascii","binary","base64url","ucs2","ucs-2","utf16le","utf-16le","latin1","latin-1"],Yl=4294967295;Jl(h.prototype);y=new Proxy(Xl,{construct(e,[t,r]){return h.from(t,r)},get(e,t){return h[t]}}),yn=String.fromCodePoint});var g,x,u=pe(()=>{"use strict";g={nextTick:(e,...t)=>{setTimeout(()=>{e(...t)},0)},env:{},version:"",cwd:()=>"/",stderr:{},argv:["/bin/node"],pid:1e4},{cwd:x}=g});var w,c=pe(()=>{"use strict";w=globalThis.performance??(()=>{let e=Date.now();return{now:()=>Date.now()-e}})()});var b,p=pe(()=>{"use strict";b=()=>{};b.prototype=b});function Bi(e,t){var r,n,i,o,s,a,d,f,P=e.constructor,v=P.precision;if(!e.s||!t.s)return t.s||(t=new P(e)),V?L(t,v):t;if(d=e.d,f=t.d,s=e.e,i=t.e,d=d.slice(),o=s-i,o){for(o<0?(n=d,o=-o,a=f.length):(n=f,i=s,a=d.length),s=Math.ceil(v/U),a=s>a?s+1:a+1,o>a&&(o=a,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for(a=d.length,o=f.length,a-o<0&&(o=a,n=f,f=d,d=n),r=0;o;)r=(d[--o]=d[o]+f[o]+r)/W|0,d[o]%=W;for(r&&(d.unshift(r),++i),a=d.length;d[--a]==0;)d.pop();return t.d=d,t.e=i,V?L(t,v):t}function de(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Ne+e)}function me(e){var t,r,n,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;t<i;t++)n=e[t]+"",r=U-n.length,r&&(o+=ve(r)),o+=n;s=e[t],n=s+"",r=U-n.length,r&&(o+=ve(r))}else if(s===0)return"0";for(;s%10===0;)s/=10;return o+s}function ji(e,t){var r,n,i,o,s,a,d=0,f=0,P=e.constructor,v=P.precision;if(H(e)>16)throw Error(wn+H(e));if(!e.s)return new P(ne);for(t==null?(V=!1,a=v):a=t,s=new P(.03125);e.abs().gte(.1);)e=e.times(s),f+=5;for(n=Math.log(De(2,f))/Math.LN10*2+5|0,a+=n,r=i=o=new P(ne),P.precision=a;;){if(i=L(i.times(e),a),r=r.times(++d),s=o.plus(xe(i,r,a)),me(s.d).slice(0,a)===me(o.d).slice(0,a)){for(;f--;)o=L(o.times(o),a);return P.precision=v,t==null?(V=!0,L(o,v)):o}o=s}}function H(e){for(var t=e.e*U,r=e.d[0];r>=10;r/=10)t++;return t}function hn(e,t,r){if(t>e.LN10.sd())throw V=!0,r&&(e.precision=r),Error(oe+"LN10 precision limit exceeded");return L(new e(e.LN10),t)}function ve(e){for(var t="";e--;)t+="0";return t}function Et(e,t){var r,n,i,o,s,a,d,f,P,v=1,S=10,C=e,M=C.d,R=C.constructor,k=R.precision;if(C.s<1)throw Error(oe+(C.s?"NaN":"-Infinity"));if(C.eq(ne))return new R(0);if(t==null?(V=!1,f=k):f=t,C.eq(10))return t==null&&(V=!0),hn(R,f);if(f+=S,R.precision=f,r=me(M),n=r.charAt(0),o=H(C),Math.abs(o)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)C=C.times(e),r=me(C.d),n=r.charAt(0),v++;o=H(C),n>1?(C=new R("0."+r),o++):C=new R(n+"."+r.slice(1))}else return d=hn(R,f+2,k).times(o+""),C=Et(new R(n+"."+r.slice(1)),f-S).plus(d),R.precision=k,t==null?(V=!0,L(C,k)):C;for(a=s=C=xe(C.minus(ne),C.plus(ne),f),P=L(C.times(C),f),i=3;;){if(s=L(s.times(P),f),d=a.plus(xe(s,new R(i),f)),me(d.d).slice(0,f)===me(a.d).slice(0,f))return a=a.times(2),o!==0&&(a=a.plus(hn(R,f+2,k).times(o+""))),a=xe(a,new R(v),f),R.precision=k,t==null?(V=!0,L(a,k)):a;a=d,i+=2}}function $i(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Ge(r/U),e.d=[],n=(r+1)%U,r<0&&(n+=U),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=U;n<i;)e.d.push(+t.slice(n,n+=U));t=t.slice(n),n=U-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),V&&(e.e>lr||e.e<-lr))throw Error(wn+r)}else e.s=0,e.e=0,e.d=[0];return e}function L(e,t,r){var n,i,o,s,a,d,f,P,v=e.d;for(s=1,o=v[0];o>=10;o/=10)s++;if(n=t-s,n<0)n+=U,i=t,f=v[P=0];else{if(P=Math.ceil((n+1)/U),o=v.length,P>=o)return e;for(f=o=v[P],s=1;o>=10;o/=10)s++;n%=U,i=n-U+s}if(r!==void 0&&(o=De(10,s-i-1),a=f/o%10|0,d=t<0||v[P+1]!==void 0||f%o,d=r<4?(a||d)&&(r==0||r==(e.s<0?3:2)):a>5||a==5&&(r==4||d||r==6&&(n>0?i>0?f/De(10,s-i):0:v[P-1])%10&1||r==(e.s<0?8:7))),t<1||!v[0])return d?(o=H(e),v.length=1,t=t-o-1,v[0]=De(10,(U-t%U)%U),e.e=Ge(-t/U)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(n==0?(v.length=P,o=1,P--):(v.length=P+1,o=De(10,U-n),v[P]=i>0?(f/De(10,s-i)%De(10,i)|0)*o:0),d)for(;;)if(P==0){(v[0]+=o)==W&&(v[0]=1,++e.e);break}else{if(v[P]+=o,v[P]!=W)break;v[P--]=0,o=1}for(n=v.length;v[--n]===0;)v.pop();if(V&&(e.e>lr||e.e<-lr))throw Error(wn+H(e));return e}function Qi(e,t){var r,n,i,o,s,a,d,f,P,v,S=e.constructor,C=S.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new S(e),V?L(t,C):t;if(d=e.d,v=t.d,n=t.e,f=e.e,d=d.slice(),s=f-n,s){for(P=s<0,P?(r=d,s=-s,a=v.length):(r=v,n=f,a=d.length),i=Math.max(Math.ceil(C/U),a)+2,s>i&&(s=i,r.length=1),r.reverse(),i=s;i--;)r.push(0);r.reverse()}else{for(i=d.length,a=v.length,P=i<a,P&&(a=i),i=0;i<a;i++)if(d[i]!=v[i]){P=d[i]<v[i];break}s=0}for(P&&(r=d,d=v,v=r,t.s=-t.s),a=d.length,i=v.length-a;i>0;--i)d[a++]=0;for(i=v.length;i>s;){if(d[--i]<v[i]){for(o=i;o&&d[--o]===0;)d[o]=W-1;--d[o],d[i]+=W}d[i]-=v[i]}for(;d[--a]===0;)d.pop();for(;d[0]===0;d.shift())--n;return d[0]?(t.d=d,t.e=n,V?L(t,C):t):new S(0)}function Le(e,t,r){var n,i=H(e),o=me(e.d),s=o.length;return t?(r&&(n=r-s)>0?o=o.charAt(0)+"."+o.slice(1)+ve(n):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+ve(-i-1)+o,r&&(n=r-s)>0&&(o+=ve(n))):i>=s?(o+=ve(i+1-s),r&&(n=r-i-1)>0&&(o=o+"."+ve(n))):((n=i+1)<s&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-s)>0&&(i+1===s&&(o+="."),o+=ve(n))),e.s<0?"-"+o:o}function qi(e,t){if(e.length>t)return e.length=t,!0}function Hi(e){var t,r,n;function i(o){var s=this;if(!(s instanceof i))return new i(o);if(s.constructor=i,o instanceof i){s.s=o.s,s.e=o.e,s.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Ne+o);if(o>0)s.s=1;else if(o<0)o=-o,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(o===~~o&&o<1e7){s.e=0,s.d=[o];return}return $i(s,o.toString())}else if(typeof o!="string")throw Error(Ne+o);if(o.charCodeAt(0)===45?(o=o.slice(1),s.s=-1):s.s=1,tu.test(o))$i(s,o);else throw Error(Ne+o)}if(i.prototype=A,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Hi,i.config=i.set=ru,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function ru(e){if(!e||typeof e!="object")throw Error(oe+"Object expected");var t,r,n,i=["precision",1,We,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Ge(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Ne+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Ne+r+": "+n);return this}var We,eu,Ji,V,oe,Ne,wn,Ge,De,tu,ne,W,U,Vi,lr,A,xe,Ji,Wi=pe(()=>{"use strict";l();u();c();p();m();We=1e9,eu={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},V=!0,oe="[DecimalError] ",Ne=oe+"Invalid argument: ",wn=oe+"Exponent out of range: ",Ge=Math.floor,De=Math.pow,tu=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,W=1e7,U=7,Vi=9007199254740991,lr=Ge(Vi/U),A={};A.absoluteValue=A.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};A.comparedTo=A.cmp=function(e){var t,r,n,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(n=o.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1};A.decimalPlaces=A.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*U;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};A.dividedBy=A.div=function(e){return xe(this,new this.constructor(e))};A.dividedToIntegerBy=A.idiv=function(e){var t=this,r=t.constructor;return L(xe(t,new r(e),0,1),r.precision)};A.equals=A.eq=function(e){return!this.cmp(e)};A.exponent=function(){return H(this)};A.greaterThan=A.gt=function(e){return this.cmp(e)>0};A.greaterThanOrEqualTo=A.gte=function(e){return this.cmp(e)>=0};A.isInteger=A.isint=function(){return this.e>this.d.length-2};A.isNegative=A.isneg=function(){return this.s<0};A.isPositive=A.ispos=function(){return this.s>0};A.isZero=function(){return this.s===0};A.lessThan=A.lt=function(e){return this.cmp(e)<0};A.lessThanOrEqualTo=A.lte=function(e){return this.cmp(e)<1};A.logarithm=A.log=function(e){var t,r=this,n=r.constructor,i=n.precision,o=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(ne))throw Error(oe+"NaN");if(r.s<1)throw Error(oe+(r.s?"NaN":"-Infinity"));return r.eq(ne)?new n(0):(V=!1,t=xe(Et(r,o),Et(e,o),o),V=!0,L(t,i))};A.minus=A.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Qi(t,e):Bi(t,(e.s=-e.s,e))};A.modulo=A.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(oe+"NaN");return r.s?(V=!1,t=xe(r,e,0,1).times(e),V=!0,r.minus(t)):L(new n(r),i)};A.naturalExponential=A.exp=function(){return ji(this)};A.naturalLogarithm=A.ln=function(){return Et(this)};A.negated=A.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};A.plus=A.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Bi(t,e):Qi(t,(e.s=-e.s,e))};A.precision=A.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ne+e);if(t=H(i)+1,n=i.d.length-1,r=n*U+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};A.squareRoot=A.sqrt=function(){var e,t,r,n,i,o,s,a=this,d=a.constructor;if(a.s<1){if(!a.s)return new d(0);throw Error(oe+"NaN")}for(e=H(a),V=!1,i=Math.sqrt(+a),i==0||i==1/0?(t=me(a.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ge((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new d(t)):n=new d(i.toString()),r=d.precision,i=s=r+3;;)if(o=n,n=o.plus(xe(a,o,s+2)).times(.5),me(o.d).slice(0,s)===(t=me(n.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(L(o,r+1,0),o.times(o).eq(a)){n=o;break}}else if(t!="9999")break;s+=4}return V=!0,L(n,r)};A.times=A.mul=function(e){var t,r,n,i,o,s,a,d,f,P=this,v=P.constructor,S=P.d,C=(e=new v(e)).d;if(!P.s||!e.s)return new v(0);for(e.s*=P.s,r=P.e+e.e,d=S.length,f=C.length,d<f&&(o=S,S=C,C=o,s=d,d=f,f=s),o=[],s=d+f,n=s;n--;)o.push(0);for(n=f;--n>=0;){for(t=0,i=d+n;i>n;)a=o[i]+C[n]*S[i-n-1]+t,o[i--]=a%W|0,t=a/W|0;o[i]=(o[i]+t)%W|0}for(;!o[--s];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,V?L(e,v.precision):e};A.toDecimalPlaces=A.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(de(e,0,We),t===void 0?t=n.rounding:de(t,0,8),L(r,e+H(r)+1,t))};A.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Le(n,!0):(de(e,0,We),t===void 0?t=i.rounding:de(t,0,8),n=L(new i(n),e+1,t),r=Le(n,!0,e+1)),r};A.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?Le(i):(de(e,0,We),t===void 0?t=o.rounding:de(t,0,8),n=L(new o(i),e+H(i)+1,t),r=Le(n.abs(),!1,e+H(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};A.toInteger=A.toint=function(){var e=this,t=e.constructor;return L(new t(e),H(e)+1,t.rounding)};A.toNumber=function(){return+this};A.toPower=A.pow=function(e){var t,r,n,i,o,s,a=this,d=a.constructor,f=12,P=+(e=new d(e));if(!e.s)return new d(ne);if(a=new d(a),!a.s){if(e.s<1)throw Error(oe+"Infinity");return a}if(a.eq(ne))return a;if(n=d.precision,e.eq(ne))return L(a,n);if(t=e.e,r=e.d.length-1,s=t>=r,o=a.s,s){if((r=P<0?-P:P)<=Vi){for(i=new d(ne),t=Math.ceil(n/U+4),V=!1;r%2&&(i=i.times(a),qi(i.d,t)),r=Ge(r/2),r!==0;)a=a.times(a),qi(a.d,t);return V=!0,e.s<0?new d(ne).div(i):L(i,n)}}else if(o<0)throw Error(oe+"NaN");return o=o<0&&e.d[Math.max(t,r)]&1?-1:1,a.s=1,V=!1,i=e.times(Et(a,n+f)),V=!0,i=ji(i),i.s=o,i};A.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return e===void 0?(r=H(i),n=Le(i,r<=o.toExpNeg||r>=o.toExpPos)):(de(e,1,We),t===void 0?t=o.rounding:de(t,0,8),i=L(new o(i),e,t),r=H(i),n=Le(i,e<=r||r<=o.toExpNeg,e)),n};A.toSignificantDigits=A.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(de(e,1,We),t===void 0?t=n.rounding:de(t,0,8)),L(new n(r),e,t)};A.toString=A.valueOf=A.val=A.toJSON=A[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=H(e),r=e.constructor;return Le(e,t<=r.toExpNeg||t>=r.toExpPos)};xe=function(){function e(n,i){var o,s=0,a=n.length;for(n=n.slice();a--;)o=n[a]*i+s,n[a]=o%W|0,s=o/W|0;return s&&n.unshift(s),n}function t(n,i,o,s){var a,d;if(o!=s)d=o>s?1:-1;else for(a=d=0;a<o;a++)if(n[a]!=i[a]){d=n[a]>i[a]?1:-1;break}return d}function r(n,i,o){for(var s=0;o--;)n[o]-=s,s=n[o]<i[o]?1:0,n[o]=s*W+n[o]-i[o];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,o,s){var a,d,f,P,v,S,C,M,R,k,be,X,_,ee,ke,fn,ae,ir,or=n.constructor,$l=n.s==i.s?1:-1,ce=n.d,j=i.d;if(!n.s)return new or(n);if(!i.s)throw Error(oe+"Division by zero");for(d=n.e-i.e,ae=j.length,ke=ce.length,C=new or($l),M=C.d=[],f=0;j[f]==(ce[f]||0);)++f;if(j[f]>(ce[f]||0)&&--d,o==null?X=o=or.precision:s?X=o+(H(n)-H(i))+1:X=o,X<0)return new or(0);if(X=X/U+2|0,f=0,ae==1)for(P=0,j=j[0],X++;(f<ke||P)&&X--;f++)_=P*W+(ce[f]||0),M[f]=_/j|0,P=_%j|0;else{for(P=W/(j[0]+1)|0,P>1&&(j=e(j,P),ce=e(ce,P),ae=j.length,ke=ce.length),ee=ae,R=ce.slice(0,ae),k=R.length;k<ae;)R[k++]=0;ir=j.slice(),ir.unshift(0),fn=j[0],j[1]>=W/2&&++fn;do P=0,a=t(j,R,ae,k),a<0?(be=R[0],ae!=k&&(be=be*W+(R[1]||0)),P=be/fn|0,P>1?(P>=W&&(P=W-1),v=e(j,P),S=v.length,k=R.length,a=t(v,R,S,k),a==1&&(P--,r(v,ae<S?ir:j,S))):(P==0&&(a=P=1),v=j.slice()),S=v.length,S<k&&v.unshift(0),r(R,v,k),a==-1&&(k=R.length,a=t(j,R,ae,k),a<1&&(P++,r(R,ae<k?ir:j,k))),k=R.length):a===0&&(P++,R=[0]),M[f++]=P,a&&R[0]?R[k++]=ce[ee]||0:(R=[ce[ee]],k=1);while((ee++<ke||R[0]!==void 0)&&X--)}return M[0]||M.shift(),C.e=d,L(C,s?o+H(C)+1:o)}}();Ji=Hi(eu);ne=new Ji(1)});var m=pe(()=>{"use strict";Wi()});var Tn={};xt(Tn,{Hash:()=>At,createHash:()=>fo,default:()=>ze,randomFillSync:()=>dr,randomUUID:()=>mr,webcrypto:()=>Ct});function mr(){return globalThis.crypto.randomUUID()}function dr(e,t,r){return t!==void 0&&(r!==void 0?e=e.subarray(t,t+r):e=e.subarray(t)),globalThis.crypto.getRandomValues(e)}function fo(e){return new At(e)}var Ct,At,ze,_e=pe(()=>{"use strict";l();u();c();p();m();Ct=globalThis.crypto;At=class{#t=[];#e;constructor(t){this.#e=t}update(t){this.#t.push(t)}async digest(){let t=new Uint8Array(this.#t.reduce((i,o)=>i+o.length,0)),r=0;for(let i of this.#t)t.set(i,r),r+=i.length;let n=await globalThis.crypto.subtle.digest(this.#e,t);return new Uint8Array(n)}},ze={webcrypto:Ct,randomUUID:mr,randomFillSync:dr,createHash:fo,Hash:At}});var go=re(()=>{"use strict";l();u();c();p();m()});var yo=re((Zg,uu)=>{uu.exports={name:"@prisma/engines-version",version:"7.2.0-4.0c8ef2ce45c83248ab3df073180d5eda9e8be7a3",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek <suchanek@prisma.io>",prisma:{enginesVersion:"0c8ef2ce45c83248ab3df073180d5eda9e8be7a3"},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 ho=re(fr=>{"use strict";l();u();c();p();m();Object.defineProperty(fr,"__esModule",{value:!0});fr.enginesVersion=void 0;fr.enginesVersion=yo().prisma.enginesVersion});var Eo=re((cy,xo)=>{"use strict";l();u();c();p();m();xo.exports=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(typeof r.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(t===0)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}});var Po=re((Vy,yr)=>{"use strict";l();u();c();p();m();yr.exports=(e={})=>{let t;if(e.repoUrl)t=e.repoUrl;else if(e.user&&e.repo)t=`https://github.com/${e.user}/${e.repo}`;else throw new Error("You need to specify either the `repoUrl` option or both the `user` and `repo` options");let r=new URL(`${t}/issues/new`),n=["body","title","labels","template","milestone","assignee","projects"];for(let i of n){let o=e[i];if(o!==void 0){if(i==="labels"||i==="projects"){if(!Array.isArray(o))throw new TypeError(`The \`${i}\` option should be an array`);o=o.join(",")}r.searchParams.set(i,o)}}return r.toString()};yr.exports.default=yr.exports});var Rn=re((Ow,Co)=>{"use strict";l();u();c();p();m();Co.exports=function(){function e(t,r,n,i,o){return t<r||n<r?t>n?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;s<i&&t.charCodeAt(s)===r.charCodeAt(s);)s++;if(i-=s,o-=s,i===0||o<3)return o;var a=0,d,f,P,v,S,C,M,R,k,be,X,_,ee=[];for(d=0;d<i;d++)ee.push(d+1),ee.push(t.charCodeAt(s+d));for(var ke=ee.length-1;a<o-3;)for(k=r.charCodeAt(s+(f=a)),be=r.charCodeAt(s+(P=a+1)),X=r.charCodeAt(s+(v=a+2)),_=r.charCodeAt(s+(S=a+3)),C=a+=4,d=0;d<ke;d+=2)M=ee[d],R=ee[d+1],f=e(M,f,P,k,R),P=e(f,P,v,be,R),v=e(P,v,S,X,R),C=e(v,S,C,_,R),ee[d]=C,S=v,v=P,P=f,f=M;for(;a<o;)for(k=r.charCodeAt(s+(f=a)),C=++a,d=0;d<ke;d+=2)M=ee[d],ee[d]=C=e(M,f,C,k,ee[d+1]),f=M;return C}}()});var ko=pe(()=>{"use strict";l();u();c();p();m()});var Mo=pe(()=>{"use strict";l();u();c();p();m()});var Dr,Yo=pe(()=>{"use strict";l();u();c();p();m();Dr=class{events={};on(t,r){return this.events[t]||(this.events[t]=[]),this.events[t].push(r),this}emit(t,...r){return this.events[t]?(this.events[t].forEach(n=>{n(...r)}),!0):!1}}});var zn=re(qe=>{"use strict";l();u();c();p();m();Object.defineProperty(qe,"__esModule",{value:!0});qe.anumber=Kn;qe.abytes=qs;qe.ahash=np;qe.aexists=ip;qe.aoutput=op;function Kn(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function rp(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function qs(e,...t){if(!rp(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function np(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Kn(e.outputLen),Kn(e.blockLen)}function ip(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function op(e,t){qs(e);let r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}});var la=re(O=>{"use strict";l();u();c();p();m();Object.defineProperty(O,"__esModule",{value:!0});O.add5L=O.add5H=O.add4H=O.add4L=O.add3H=O.add3L=O.rotlBL=O.rotlBH=O.rotlSL=O.rotlSH=O.rotr32L=O.rotr32H=O.rotrBL=O.rotrBH=O.rotrSL=O.rotrSH=O.shrSL=O.shrSH=O.toBig=void 0;O.fromBig=Yn;O.split=Vs;O.add=ta;var jr=BigInt(2**32-1),Zn=BigInt(32);function Yn(e,t=!1){return t?{h:Number(e&jr),l:Number(e>>Zn&jr)}:{h:Number(e>>Zn&jr)|0,l:Number(e&jr)|0}}function Vs(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let i=0;i<e.length;i++){let{h:o,l:s}=Yn(e[i],t);[r[i],n[i]]=[o,s]}return[r,n]}var Bs=(e,t)=>BigInt(e>>>0)<<Zn|BigInt(t>>>0);O.toBig=Bs;var js=(e,t,r)=>e>>>r;O.shrSH=js;var Qs=(e,t,r)=>e<<32-r|t>>>r;O.shrSL=Qs;var Hs=(e,t,r)=>e>>>r|t<<32-r;O.rotrSH=Hs;var Js=(e,t,r)=>e<<32-r|t>>>r;O.rotrSL=Js;var Ws=(e,t,r)=>e<<64-r|t>>>r-32;O.rotrBH=Ws;var Gs=(e,t,r)=>e>>>r-32|t<<64-r;O.rotrBL=Gs;var Ks=(e,t)=>t;O.rotr32H=Ks;var zs=(e,t)=>e;O.rotr32L=zs;var Zs=(e,t,r)=>e<<r|t>>>32-r;O.rotlSH=Zs;var Ys=(e,t,r)=>t<<r|e>>>32-r;O.rotlSL=Ys;var Xs=(e,t,r)=>t<<r-32|e>>>64-r;O.rotlBH=Xs;var ea=(e,t,r)=>e<<r-32|t>>>64-r;O.rotlBL=ea;function ta(e,t,r,n){let i=(t>>>0)+(n>>>0);return{h:e+r+(i/2**32|0)|0,l:i|0}}var ra=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0);O.add3L=ra;var na=(e,t,r,n)=>t+r+n+(e/2**32|0)|0;O.add3H=na;var ia=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0);O.add4L=ia;var oa=(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0;O.add4H=oa;var sa=(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0);O.add5L=sa;var aa=(e,t,r,n,i,o)=>t+r+n+i+o+(e/2**32|0)|0;O.add5H=aa;var sp={fromBig:Yn,split:Vs,toBig:Bs,shrSH:js,shrSL:Qs,rotrSH:Hs,rotrSL:Js,rotrBH:Ws,rotrBL:Gs,rotr32H:Ks,rotr32L:zs,rotlSH:Zs,rotlSL:Ys,rotlBH:Xs,rotlBL:ea,add:ta,add3L:ra,add3H:na,add4L:ia,add4H:oa,add5H:aa,add5L:sa};O.default=sp});var ua=re(Qr=>{"use strict";l();u();c();p();m();Object.defineProperty(Qr,"__esModule",{value:!0});Qr.crypto=void 0;var Re=(_e(),Hl(Tn));Qr.crypto=Re&&typeof Re=="object"&&"webcrypto"in Re?Re.webcrypto:Re&&typeof Re=="object"&&"randomBytes"in Re?Re:void 0});var ma=re(D=>{"use strict";l();u();c();p();m();Object.defineProperty(D,"__esModule",{value:!0});D.Hash=D.nextTick=D.byteSwapIfBE=D.isLE=void 0;D.isBytes=ap;D.u8=lp;D.u32=up;D.createView=cp;D.rotr=pp;D.rotl=mp;D.byteSwap=ti;D.byteSwap32=dp;D.bytesToHex=gp;D.hexToBytes=yp;D.asyncLoop=wp;D.utf8ToBytes=pa;D.toBytes=Hr;D.concatBytes=bp;D.checkOpts=xp;D.wrapConstructor=Ep;D.wrapConstructorWithOpts=Tp;D.wrapXOFConstructorWithOpts=Pp;D.randomBytes=vp;var mt=ua(),ei=zn();function ap(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function lp(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}function up(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function cp(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function pp(e,t){return e<<32-t|e>>>t}function mp(e,t){return e<<t|e>>>32-t>>>0}D.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function ti(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}D.byteSwapIfBE=D.isLE?e=>e:e=>ti(e);function dp(e){for(let t=0;t<e.length;t++)e[t]=ti(e[t])}var fp=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function gp(e){(0,ei.abytes)(e);let t="";for(let r=0;r<e.length;r++)t+=fp[e[r]];return t}var Te={_0:48,_9:57,A:65,F:70,a:97,f:102};function ca(e){if(e>=Te._0&&e<=Te._9)return e-Te._0;if(e>=Te.A&&e<=Te.F)return e-(Te.A-10);if(e>=Te.a&&e<=Te.f)return e-(Te.a-10)}function yp(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);let t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let i=0,o=0;i<r;i++,o+=2){let s=ca(e.charCodeAt(o)),a=ca(e.charCodeAt(o+1));if(s===void 0||a===void 0){let d=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+d+'" at index '+o)}n[i]=s*16+a}return n}var hp=async()=>{};D.nextTick=hp;async function wp(e,t,r){let n=Date.now();for(let i=0;i<e;i++){r(i);let o=Date.now()-n;o>=0&&o<t||(await(0,D.nextTick)(),n+=o)}}function pa(e){if(typeof e!="string")throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array(new TextEncoder().encode(e))}function Hr(e){return typeof e=="string"&&(e=pa(e)),(0,ei.abytes)(e),e}function bp(...e){let t=0;for(let n=0;n<e.length;n++){let i=e[n];(0,ei.abytes)(i),t+=i.length}let r=new Uint8Array(t);for(let n=0,i=0;n<e.length;n++){let o=e[n];r.set(o,i),i+=o.length}return r}var Xn=class{clone(){return this._cloneInto()}};D.Hash=Xn;function xp(e,t){if(t!==void 0&&{}.toString.call(t)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(e,t)}function Ep(e){let t=n=>e().update(Hr(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function Tp(e){let t=(n,i)=>e(i).update(Hr(n)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=n=>e(n),t}function Pp(e){let t=(n,i)=>e(i).update(Hr(n)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=n=>e(n),t}function vp(e=32){if(mt.crypto&&typeof mt.crypto.getRandomValues=="function")return mt.crypto.getRandomValues(new Uint8Array(e));if(mt.crypto&&typeof mt.crypto.randomBytes=="function")return mt.crypto.randomBytes(e);throw new Error("crypto.getRandomValues must be defined")}});var xa=re(q=>{"use strict";l();u();c();p();m();Object.defineProperty(q,"__esModule",{value:!0});q.shake256=q.shake128=q.keccak_512=q.keccak_384=q.keccak_256=q.keccak_224=q.sha3_512=q.sha3_384=q.sha3_256=q.sha3_224=q.Keccak=void 0;q.keccakP=wa;var dt=zn(),jt=la(),Pe=ma(),ga=[],ya=[],ha=[],Ap=BigInt(0),Bt=BigInt(1),Cp=BigInt(2),Sp=BigInt(7),Rp=BigInt(256),Ip=BigInt(113);for(let e=0,t=Bt,r=1,n=0;e<24;e++){[r,n]=[n,(2*r+3*n)%5],ga.push(2*(5*n+r)),ya.push((e+1)*(e+2)/2%64);let i=Ap;for(let o=0;o<7;o++)t=(t<<Bt^(t>>Sp)*Ip)%Rp,t&Cp&&(i^=Bt<<(Bt<<BigInt(o))-Bt);ha.push(i)}var[Op,kp]=(0,jt.split)(ha,!0),da=(e,t,r)=>r>32?(0,jt.rotlBH)(e,t,r):(0,jt.rotlSH)(e,t,r),fa=(e,t,r)=>r>32?(0,jt.rotlBL)(e,t,r):(0,jt.rotlSL)(e,t,r);function wa(e,t=24){let r=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let s=0;s<10;s++)r[s]=e[s]^e[s+10]^e[s+20]^e[s+30]^e[s+40];for(let s=0;s<10;s+=2){let a=(s+8)%10,d=(s+2)%10,f=r[d],P=r[d+1],v=da(f,P,1)^r[a],S=fa(f,P,1)^r[a+1];for(let C=0;C<50;C+=10)e[s+C]^=v,e[s+C+1]^=S}let i=e[2],o=e[3];for(let s=0;s<24;s++){let a=ya[s],d=da(i,o,a),f=fa(i,o,a),P=ga[s];i=e[P],o=e[P+1],e[P]=d,e[P+1]=f}for(let s=0;s<50;s+=10){for(let a=0;a<10;a++)r[a]=e[s+a];for(let a=0;a<10;a++)e[s+a]^=~r[(a+2)%10]&r[(a+4)%10]}e[0]^=Op[n],e[1]^=kp[n]}r.fill(0)}var Qt=class e extends Pe.Hash{constructor(t,r,n,i=!1,o=24){if(super(),this.blockLen=t,this.suffix=r,this.outputLen=n,this.enableXOF=i,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,dt.anumber)(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,Pe.u32)(this.state)}keccak(){Pe.isLE||(0,Pe.byteSwap32)(this.state32),wa(this.state32,this.rounds),Pe.isLE||(0,Pe.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(t){(0,dt.aexists)(this);let{blockLen:r,state:n}=this;t=(0,Pe.toBytes)(t);let i=t.length;for(let o=0;o<i;){let s=Math.min(r-this.pos,i-o);for(let a=0;a<s;a++)n[this.pos++]^=t[o++];this.pos===r&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:t,suffix:r,pos:n,blockLen:i}=this;t[n]^=r,(r&128)!==0&&n===i-1&&this.keccak(),t[i-1]^=128,this.keccak()}writeInto(t){(0,dt.aexists)(this,!1),(0,dt.abytes)(t),this.finish();let r=this.state,{blockLen:n}=this;for(let i=0,o=t.length;i<o;){this.posOut>=n&&this.keccak();let s=Math.min(n-this.posOut,o-i);t.set(r.subarray(this.posOut,this.posOut+s),i),this.posOut+=s,i+=s}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return(0,dt.anumber)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,dt.aoutput)(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){let{blockLen:r,suffix:n,outputLen:i,rounds:o,enableXOF:s}=this;return t||(t=new e(r,n,i,s,o)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=o,t.suffix=n,t.outputLen=i,t.enableXOF=s,t.destroyed=this.destroyed,t}};q.Keccak=Qt;var Ie=(e,t,r)=>(0,Pe.wrapConstructor)(()=>new Qt(t,e,r));q.sha3_224=Ie(6,144,224/8);q.sha3_256=Ie(6,136,256/8);q.sha3_384=Ie(6,104,384/8);q.sha3_512=Ie(6,72,512/8);q.keccak_224=Ie(1,144,224/8);q.keccak_256=Ie(1,136,256/8);q.keccak_384=Ie(1,104,384/8);q.keccak_512=Ie(1,72,512/8);var ba=(e,t,r)=>(0,Pe.wrapXOFConstructorWithOpts)((n={})=>new Qt(t,e,n.dkLen===void 0?r:n.dkLen,!0));q.shake128=ba(31,168,128/8);q.shake256=ba(31,136,256/8)});var Ra=re((YI,Oe)=>{"use strict";l();u();c();p();m();var{sha3_512:Mp}=xa(),Ta=24,Ht=32,ri=(e=4,t=Math.random)=>{let r="";for(;r.length<e;)r=r+Math.floor(t()*36).toString(36);return r};function Pa(e){let t=8n,r=0n;for(let n of e.values()){let i=BigInt(n);r=(r<<t)+i}return r}var va=(e="")=>Pa(Mp(e)).toString(36).slice(1),Ea=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),Dp=e=>Ea[Math.floor(e()*Ea.length)],Aa=({globalObj:e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},random:t=Math.random}={})=>{let r=Object.keys(e).toString(),n=r.length?r+ri(Ht,t):ri(Ht,t);return va(n).substring(0,Ht)},Ca=e=>()=>e++,Np=476782367,Sa=({random:e=Math.random,counter:t=Ca(Math.floor(e()*Np)),length:r=Ta,fingerprint:n=Aa({random:e})}={})=>function(){let o=Dp(e),s=Date.now().toString(36),a=t().toString(36),d=ri(r,e),f=`${s+d+a+n}`;return`${o+va(f).substring(1,r)}`},Lp=Sa(),_p=(e,{minLength:t=2,maxLength:r=Ht}={})=>{let n=e.length,i=/^[0-9a-z]+$/;try{if(typeof e=="string"&&n>=t&&n<=r&&i.test(e))return!0}finally{}return!1};Oe.exports.getConstants=()=>({defaultLength:Ta,bigLength:Ht});Oe.exports.init=Sa;Oe.exports.createId=Lp;Oe.exports.bufToBigInt=Pa;Oe.exports.createCounter=Ca;Oe.exports.createFingerprint=Aa;Oe.exports.isCuid=_p});var Ia=re((iO,Jt)=>{"use strict";l();u();c();p();m();var{createId:Fp,init:Up,getConstants:$p,isCuid:qp}=Ra();Jt.exports.createId=Fp;Jt.exports.init=Up;Jt.exports.getConstants=$p;Jt.exports.isCuid=qp});l();u();c();p();m();var zi={};xt(zi,{defineExtension:()=>Gi,getExtensionContext:()=>Ki});l();u();c();p();m();l();u();c();p();m();function Gi(e){return typeof e=="function"?e:t=>t.$extends(e)}l();u();c();p();m();function Ki(e){return e}var Yi={};xt(Yi,{validator:()=>Zi});l();u();c();p();m();l();u();c();p();m();function Zi(...e){return t=>t}l();u();c();p();m();l();u();c();p();m();l();u();c();p();m();var fe=class{_map=new Map;get(t){return this._map.get(t)?.value}set(t,r){this._map.set(t,{value:r})}getOrCreate(t,r){let n=this._map.get(t);if(n)return n.value;let i=r();return this.set(t,i),i}};l();u();c();p();m();function Ae(e){return e.substring(0,1).toLowerCase()+e.substring(1)}l();u();c();p();m();function Xi(e,t){let r={};for(let n of e){let i=n[t];r[i]=n}return r}l();u();c();p();m();function Tt(e){let t;return{get(){return t||(t={value:e()}),t.value}}}l();u();c();p();m();function nu(e){return{models:bn(e.models),enums:bn(e.enums),types:bn(e.types)}}function bn(e){let t={};for(let{name:r,...n}of e)t[r]=n;return t}import{isAnyNull as ec,isDbNull as tc,isJsonNull as rc,ObjectEnumValue as nc}from"@prisma/client-runtime-utils";l();u();c();p();m();l();u();c();p();m();var xn,eo,to,ro,no=!0;typeof g<"u"&&({FORCE_COLOR:xn,NODE_DISABLE_COLORS:eo,NO_COLOR:to,TERM:ro}=g.env||{},no=g.stdout&&g.stdout.isTTY);var iu={enabled:!eo&&to==null&&ro!=="dumb"&&(xn!=null&&xn!=="0"||no)};function F(e,t){let r=new RegExp(`\\x1b\\[${t}m`,"g"),n=`\x1B[${e}m`,i=`\x1B[${t}m`;return function(o){return!iu.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(r,i+n):o)+i}}var eg=F(0,0),ur=F(1,22),cr=F(2,22),tg=F(3,23),pr=F(4,24),rg=F(7,27),ng=F(8,28),ig=F(9,29),og=F(30,39),Ke=F(31,39),io=F(32,39),oo=F(33,39),so=F(34,39),sg=F(35,39),ao=F(36,39),ag=F(37,39),lo=F(90,39),lg=F(90,39),ug=F(40,49),cg=F(41,49),pg=F(42,49),mg=F(43,49),dg=F(44,49),fg=F(45,49),gg=F(46,49),yg=F(47,49);l();u();c();p();m();var ou=100,uo=["green","yellow","blue","magenta","cyan","red"],Pt=[],co=Date.now(),su=0,En=typeof g<"u"?g.env:{};globalThis.DEBUG??=En.DEBUG??"";globalThis.DEBUG_COLORS??=En.DEBUG_COLORS?En.DEBUG_COLORS==="true":!0;var vt={enable(e){typeof e=="string"&&(globalThis.DEBUG=e)},disable(){let e=globalThis.DEBUG;return globalThis.DEBUG="",e},enabled(e){let t=globalThis.DEBUG.split(",").map(i=>i.replace(/[.+?^${}()|[\]\\]/g,"\\$&")),r=t.some(i=>i===""||i[0]==="-"?!1:e.match(RegExp(i.split("*").join(".*")+"$"))),n=t.some(i=>i===""||i[0]!=="-"?!1:e.match(RegExp(i.slice(1).split("*").join(".*")+"$")));return r&&!n},log:(...e)=>{let[t,r,...n]=e;(console.warn??console.log)(`${t} ${r}`,...n)},formatters:{}};function au(e){let t={color:uo[su++%uo.length],enabled:vt.enabled(e),namespace:e,log:vt.log,extend:()=>{}},r=(...n)=>{let{enabled:i,namespace:o,color:s,log:a}=t;if(n.length!==0&&Pt.push([o,...n]),Pt.length>ou&&Pt.shift(),vt.enabled(o)||i){let d=n.map(P=>typeof P=="string"?P:lu(P)),f=`+${Date.now()-co}ms`;co=Date.now(),a(o,...d,f)}};return new Proxy(r,{get:(n,i)=>t[i],set:(n,i,o)=>t[i]=o})}var Z=new Proxy(au,{get:(e,t)=>vt[t],set:(e,t,r)=>vt[t]=r});function lu(e,t=2){let r=new Set;return JSON.stringify(e,(n,i)=>{if(typeof i=="object"&&i!==null){if(r.has(i))return"[Circular *]";r.add(i)}else if(typeof i=="bigint")return i.toString();return i},t)}function po(e=7500){let t=Pt.map(([r,...n])=>`${r} ${n.map(i=>typeof i=="string"?i:JSON.stringify(i)).join(" ")}`).join(` `);return t.length<e?t:t.slice(-e)}function mo(){Pt.length=0}l();u();c();p();m();l();u();c();p();m();var wo="prisma+postgres",gr=`${wo}:`;function bo(e){return e?.toString().startsWith(`${gr}//`)??!1}function Pn(e){if(!bo(e))return!1;let{host:t}=new URL(e);return t.includes("localhost")||t.includes("127.0.0.1")||t.includes("[::1]")}var Rt={};xt(Rt,{error:()=>mu,info:()=>pu,log:()=>cu,query:()=>du,should:()=>To,tags:()=>St,warn:()=>vn});l();u();c();p();m();var St={error:Ke("prisma:error"),warn:oo("prisma:warn"),info:ao("prisma:info"),query:so("prisma:query")},To={warn:()=>!g.env.PRISMA_DISABLE_WARNINGS};function cu(...e){console.log(...e)}function vn(e,...t){To.warn()&&console.warn(`${St.warn} ${e}`,...t)}function pu(e,...t){console.info(`${St.info} ${e}`,...t)}function mu(e,...t){console.error(`${St.error} ${e}`,...t)}function du(e,...t){console.log(`${St.query} ${e}`,...t)}l();u();c();p();m();function Ee(e,t){throw new Error(t)}l();u();c();p();m();l();u();c();p();m();function An({onlyFirst:e=!1}={}){let r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(r,e?void 0:"g")}var fu=An();function Ze(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(fu,"")}l();u();c();p();m();function Cn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}l();u();c();p();m();function hr(e,t){let r={};for(let n of Object.keys(e))r[n]=t(e[n],n);return r}l();u();c();p();m();function Sn(e,t){if(e.length===0)return;let r=e[0];for(let n=1;n<e.length;n++)t(r,e[n])<0&&(r=e[n]);return r}l();u();c();p();m();function It(e,t){Object.defineProperty(e,"name",{value:t,configurable:!0})}l();u();c();p();m();var vo=new Set,Ao=(e,t,...r)=>{vo.has(e)||(vo.add(e),vn(t,...r))};l();u();c();p();m();function Ye(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function wr(e){return e.toString()!=="Invalid Date"}l();u();c();p();m();import{Decimal as gu}from"@prisma/client-runtime-utils";function Xe(e){return gu.isDecimal(e)?!0:e!==null&&typeof e=="object"&&typeof e.s=="number"&&typeof e.e=="number"&&typeof e.toFixed=="function"&&Array.isArray(e.d)}l();u();c();p();m();import{PrismaClientValidationError as zu}from"@prisma/client-runtime-utils";l();u();c();p();m();var br={};xt(br,{ModelAction:()=>Ot,datamodelEnumToSchemaEnum:()=>yu,datamodelSchemaEnumToSchemaEnum:()=>hu});l();u();c();p();m();l();u();c();p();m();function yu(e){return{name:e.name,data:e.values.map(t=>({key:t.name,value:t.dbName??t.name}))}}function hu(e){return{name:e.name,data:e.values.map(t=>({key:t,value:t}))}}l();u();c();p();m();var Ot=(_=>(_.findUnique="findUnique",_.findUniqueOrThrow="findUniqueOrThrow",_.findFirst="findFirst",_.findFirstOrThrow="findFirstOrThrow",_.findMany="findMany",_.create="create",_.createMany="createMany",_.createManyAndReturn="createManyAndReturn",_.update="update",_.updateMany="updateMany",_.updateManyAndReturn="updateManyAndReturn",_.upsert="upsert",_.delete="delete",_.deleteMany="deleteMany",_.groupBy="groupBy",_.count="count",_.aggregate="aggregate",_.findRaw="findRaw",_.aggregateRaw="aggregateRaw",_))(Ot||{});var wu=Me(Eo());var bu={red:Ke,gray:lo,dim:cr,bold:ur,underline:pr,highlightSource:e=>e.highlight()},xu={red:e=>e,gray:e=>e,dim:e=>e,bold:e=>e,underline:e=>e,highlightSource:e=>e};function Eu({message:e,originalMethod:t,isPanic:r,callArguments:n}){return{functionName:`prisma.${t}()`,message:e,isPanic:r??!1,callArguments:n}}function Tu({functionName:e,location:t,message:r,isPanic:n,contextLines:i,callArguments:o},s){let a=[""],d=t?" in":":";if(n?(a.push(s.red(`Oops, an unknown error occurred! This is ${s.bold("on us")}, you did nothing wrong.`)),a.push(s.red(`It occurred in the ${s.bold(`\`${e}\``)} invocation${d}`))):a.push(s.red(`Invalid ${s.bold(`\`${e}\``)} invocation${d}`)),t&&a.push(s.underline(Pu(t))),i){a.push("");let f=[i.toString()];o&&(f.push(o),f.push(s.dim(")"))),a.push(f.join("")),o&&a.push("")}else a.push(""),o&&a.push(o),a.push("");return a.push(r),a.join(` `)}function Pu(e){let t=[e.fileName];return e.lineNumber&&t.push(String(e.lineNumber)),e.columnNumber&&t.push(String(e.columnNumber)),t.join(":")}function xr(e){let t=e.showColors?bu:xu,r;return typeof $getTemplateParameters<"u"?r=$getTemplateParameters(e,t):r=Eu(e),Tu(r,t)}l();u();c();p();m();var No=Me(Rn());l();u();c();p();m();function Io(e,t,r){let n=Oo(e),i=vu(n),o=Cu(i);o?Er(o,t,r):t.addErrorMessage(()=>"Unknown error")}function Oo(e){return e.errors.flatMap(t=>t.kind==="Union"?Oo(t):[t])}function vu(e){let t=new Map,r=[];for(let n of e){if(n.kind!=="InvalidArgumentType"){r.push(n);continue}let i=`${n.selectionPath.join(".")}:${n.argumentPath.join(".")}`,o=t.get(i);o?t.set(i,{...n,argument:{...n.argument,typeNames:Au(o.argument.typeNames,n.argument.typeNames)}}):t.set(i,n)}return r.push(...t.values()),r}function Au(e,t){return[...new Set(e.concat(t))]}function Cu(e){return Sn(e,(t,r)=>{let n=So(t),i=So(r);return n!==i?n-i:Ro(t)-Ro(r)})}function So(e){let t=0;return Array.isArray(e.selectionPath)&&(t+=e.selectionPath.length),Array.isArray(e.argumentPath)&&(t+=e.argumentPath.length),t}function Ro(e){switch(e.kind){case"InvalidArgumentValue":case"ValueTooLarge":return 20;case"InvalidArgumentType":return 10;case"RequiredArgumentMissing":return-10;default:return 0}}l();u();c();p();m();var ie=class{constructor(t,r){this.name=t;this.value=r}isRequired=!1;makeRequired(){return this.isRequired=!0,this}write(t){let{colors:{green:r}}=t.context;t.addMarginSymbol(r(this.isRequired?"+":"?")),t.write(r(this.name)),this.isRequired||t.write(r("?")),t.write(r(": ")),typeof this.value=="string"?t.write(r(this.value)):t.write(this.value)}};l();u();c();p();m();l();u();c();p();m();Mo();l();u();c();p();m();var et=class{constructor(t=0,r){this.context=r;this.currentIndent=t}lines=[];currentLine="";currentIndent=0;marginSymbol;afterNextNewLineCallback;write(t){return typeof t=="string"?this.currentLine+=t:t.write(this),this}writeJoined(t,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(t);return this}writeLine(t){return this.write(t).newLine()}newLine(){this.lines.push(this.indentedCurrentLine()),this.currentLine="",this.marginSymbol=void 0;let t=this.afterNextNewLineCallback;return this.afterNextNewLineCallback=void 0,t?.(),this}withIndent(t){return this.indent(),t(this),this.unindent(),this}afterNextNewline(t){return this.afterNextNewLineCallback=t,this}indent(){return this.currentIndent++,this}unindent(){return this.currentIndent>0&&this.currentIndent--,this}addMarginSymbol(t){return this.marginSymbol=t,this}toString(){return this.lines.concat(this.indentedCurrentLine()).join(` `)}getCurrentLineLength(){return this.currentLine.length}indentedCurrentLine(){let t=this.currentLine.padStart(this.currentLine.length+2*this.currentIndent);return this.marginSymbol?this.marginSymbol+t.slice(1):t}};ko();l();u();c();p();m();l();u();c();p();m();var Tr=class{constructor(t){this.value=t}write(t){t.write(this.value)}markAsError(){this.value.markAsError()}};l();u();c();p();m();var Pr=e=>e,vr={bold:Pr,red:Pr,green:Pr,dim:Pr,enabled:!1