prisma 5.22.0-dev.1 → 5.22.0-dev.11

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.
@@ -1,4 +1,4 @@
1
- "use strict";var Zl=Object.create;var Fr=Object.defineProperty;var Xl=Object.getOwnPropertyDescriptor;var eu=Object.getOwnPropertyNames;var tu=Object.getPrototypeOf,ru=Object.prototype.hasOwnProperty;var Z=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Vt=(e,t)=>{for(var r in t)Fr(e,r,{get:t[r],enumerable:!0})},fo=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of eu(t))!ru.call(e,i)&&i!==r&&Fr(e,i,{get:()=>t[i],enumerable:!(n=Xl(t,i))||n.enumerable});return e};var k=(e,t,r)=>(r=e!=null?Zl(tu(e)):{},fo(t||!e||!e.__esModule?Fr(r,"default",{value:e,enumerable:!0}):r,e)),nu=e=>fo(Fr({},"__esModule",{value:!0}),e);var $o=Z((uf,Yn)=>{"use strict";var v=Yn.exports;Yn.exports.default=v;var D="\x1B[",Jt="\x1B]",ft="\x07",Gr=";",Mo=process.env.TERM_PROGRAM==="Apple_Terminal";v.cursorTo=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof t!="number"?D+(e+1)+"G":D+(t+1)+";"+(e+1)+"H"};v.cursorMove=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let r="";return e<0?r+=D+-e+"D":e>0&&(r+=D+e+"C"),t<0?r+=D+-t+"A":t>0&&(r+=D+t+"B"),r};v.cursorUp=(e=1)=>D+e+"A";v.cursorDown=(e=1)=>D+e+"B";v.cursorForward=(e=1)=>D+e+"C";v.cursorBackward=(e=1)=>D+e+"D";v.cursorLeft=D+"G";v.cursorSavePosition=Mo?"\x1B7":D+"s";v.cursorRestorePosition=Mo?"\x1B8":D+"u";v.cursorGetPosition=D+"6n";v.cursorNextLine=D+"E";v.cursorPrevLine=D+"F";v.cursorHide=D+"?25l";v.cursorShow=D+"?25h";v.eraseLines=e=>{let t="";for(let r=0;r<e;r++)t+=v.eraseLine+(r<e-1?v.cursorUp():"");return e&&(t+=v.cursorLeft),t};v.eraseEndLine=D+"K";v.eraseStartLine=D+"1K";v.eraseLine=D+"2K";v.eraseDown=D+"J";v.eraseUp=D+"1J";v.eraseScreen=D+"2J";v.scrollUp=D+"S";v.scrollDown=D+"T";v.clearScreen="\x1Bc";v.clearTerminal=process.platform==="win32"?`${v.eraseScreen}${D}0f`:`${v.eraseScreen}${D}3J${D}H`;v.beep=ft;v.link=(e,t)=>[Jt,"8",Gr,Gr,t,ft,e,Jt,"8",Gr,Gr,ft].join("");v.image=(e,t={})=>{let r=`${Jt}1337;File=inline=1`;return t.width&&(r+=`;width=${t.width}`),t.height&&(r+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+e.toString("base64")+ft};v.iTerm={setCwd:(e=process.cwd())=>`${Jt}50;CurrentDir=${e}${ft}`,annotation:(e,t={})=>{let r=`${Jt}1337;`,n=typeof t.x<"u",i=typeof t.y<"u";if((n||i)&&!(n&&i&&typeof t.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?r+=(n?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):r+=e,r+ft}}});var Zn=Z((cf,qo)=>{"use strict";qo.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var Bo=Z((pf,Vo)=>{"use strict";var Bu=require("os"),jo=require("tty"),de=Zn(),{env:Q}=process,Qe;de("no-color")||de("no-colors")||de("color=false")||de("color=never")?Qe=0:(de("color")||de("colors")||de("color=true")||de("color=always"))&&(Qe=1);"FORCE_COLOR"in Q&&(Q.FORCE_COLOR==="true"?Qe=1:Q.FORCE_COLOR==="false"?Qe=0:Qe=Q.FORCE_COLOR.length===0?1:Math.min(parseInt(Q.FORCE_COLOR,10),3));function Xn(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ei(e,t){if(Qe===0)return 0;if(de("color=16m")||de("color=full")||de("color=truecolor"))return 3;if(de("color=256"))return 2;if(e&&!t&&Qe===void 0)return 0;let r=Qe||0;if(Q.TERM==="dumb")return r;if(process.platform==="win32"){let n=Bu.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Q)||Q.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Q.TEAMCITY_VERSION)?1:0;if(Q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Q){let n=parseInt((Q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Q.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Q.TERM)||"COLORTERM"in Q?1:r}function Uu(e){let t=ei(e,e&&e.isTTY);return Xn(t)}Vo.exports={supportsColor:Uu,stdout:Xn(ei(!0,jo.isatty(1))),stderr:Xn(ei(!0,jo.isatty(2)))}});var Qo=Z((df,Go)=>{"use strict";var Gu=Bo(),gt=Zn();function Uo(e){if(/^\d{3,4}$/.test(e)){let r=/(\d{1,2})(\d{2})/.exec(e);return{major:0,minor:parseInt(r[1],10),patch:parseInt(r[2],10)}}let t=(e||"").split(".").map(r=>parseInt(r,10));return{major:t[0],minor:t[1],patch:t[2]}}function ti(e){let{env:t}=process;if("FORCE_HYPERLINK"in t)return!(t.FORCE_HYPERLINK.length>0&&parseInt(t.FORCE_HYPERLINK,10)===0);if(gt("no-hyperlink")||gt("no-hyperlinks")||gt("hyperlink=false")||gt("hyperlink=never"))return!1;if(gt("hyperlink=true")||gt("hyperlink=always")||"NETLIFY"in t)return!0;if(!Gu.supportsColor(e)||e&&!e.isTTY||process.platform==="win32"||"CI"in t||"TEAMCITY_VERSION"in t)return!1;if("TERM_PROGRAM"in t){let r=Uo(t.TERM_PROGRAM_VERSION);switch(t.TERM_PROGRAM){case"iTerm.app":return r.major===3?r.minor>=1:r.major>3;case"WezTerm":return r.major>=20200620;case"vscode":return r.major>1||r.major===1&&r.minor>=72}}if("VTE_VERSION"in t){if(t.VTE_VERSION==="0.50.0")return!1;let r=Uo(t.VTE_VERSION);return r.major>0||r.minor>=50}return!1}Go.exports={supportsHyperlink:ti,stdout:ti(process.stdout),stderr:ti(process.stderr)}});var Wo=Z((mf,Wt)=>{"use strict";var Qu=$o(),ri=Qo(),Jo=(e,t,{target:r="stdout",...n}={})=>ri[r]?Qu.link(e,t):n.fallback===!1?e:typeof n.fallback=="function"?n.fallback(e,t):`${e} (\u200B${t}\u200B)`;Wt.exports=(e,t,r={})=>Jo(e,t,r);Wt.exports.stderr=(e,t,r={})=>Jo(e,t,{target:"stderr",...r});Wt.exports.isSupported=ri.stdout;Wt.exports.stderr.isSupported=ri.stderr});var ii=Z((vf,Ju)=>{Ju.exports={name:"@prisma/engines-version",version:"5.21.0-36.08713a93b99d58f31485621c634b04983ae01d95",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek <suchanek@prisma.io>",prisma:{enginesVersion:"08713a93b99d58f31485621c634b04983ae01d95"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.34",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var oi=Z(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.enginesVersion=void 0;Qr.enginesVersion=ii().prisma.enginesVersion});var Yo=Z((Bf,Ku)=>{Ku.exports={name:"dotenv",version:"16.0.3",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{require:"./lib/main.js",types:"./lib/main.d.ts",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard","lint-readme":"standard-markdown",pretest:"npm run lint && npm run dts-check",test:"tap tests/*.js --100 -Rspec",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^17.0.9",decache:"^4.6.1",dtslint:"^3.7.0",sinon:"^12.0.1",standard:"^16.0.4","standard-markdown":"^7.1.0","standard-version":"^9.3.2",tap:"^15.1.6",tar:"^6.1.11",typescript:"^4.5.4"},engines:{node:">=12"}}});var Xo=Z((Uf,Wr)=>{"use strict";var zu=require("fs"),Zo=require("path"),Yu=require("os"),Zu=Yo(),Xu=Zu.version,ec=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function tc(e){let t={},r=e.toString();r=r.replace(/\r\n?/mg,`
1
+ "use strict";var Zl=Object.create;var Fr=Object.defineProperty;var Xl=Object.getOwnPropertyDescriptor;var eu=Object.getOwnPropertyNames;var tu=Object.getPrototypeOf,ru=Object.prototype.hasOwnProperty;var Z=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Vt=(e,t)=>{for(var r in t)Fr(e,r,{get:t[r],enumerable:!0})},fo=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of eu(t))!ru.call(e,i)&&i!==r&&Fr(e,i,{get:()=>t[i],enumerable:!(n=Xl(t,i))||n.enumerable});return e};var k=(e,t,r)=>(r=e!=null?Zl(tu(e)):{},fo(t||!e||!e.__esModule?Fr(r,"default",{value:e,enumerable:!0}):r,e)),nu=e=>fo(Fr({},"__esModule",{value:!0}),e);var $o=Z((uf,Yn)=>{"use strict";var v=Yn.exports;Yn.exports.default=v;var D="\x1B[",Jt="\x1B]",ft="\x07",Gr=";",Mo=process.env.TERM_PROGRAM==="Apple_Terminal";v.cursorTo=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");return typeof t!="number"?D+(e+1)+"G":D+(t+1)+";"+(e+1)+"H"};v.cursorMove=(e,t)=>{if(typeof e!="number")throw new TypeError("The `x` argument is required");let r="";return e<0?r+=D+-e+"D":e>0&&(r+=D+e+"C"),t<0?r+=D+-t+"A":t>0&&(r+=D+t+"B"),r};v.cursorUp=(e=1)=>D+e+"A";v.cursorDown=(e=1)=>D+e+"B";v.cursorForward=(e=1)=>D+e+"C";v.cursorBackward=(e=1)=>D+e+"D";v.cursorLeft=D+"G";v.cursorSavePosition=Mo?"\x1B7":D+"s";v.cursorRestorePosition=Mo?"\x1B8":D+"u";v.cursorGetPosition=D+"6n";v.cursorNextLine=D+"E";v.cursorPrevLine=D+"F";v.cursorHide=D+"?25l";v.cursorShow=D+"?25h";v.eraseLines=e=>{let t="";for(let r=0;r<e;r++)t+=v.eraseLine+(r<e-1?v.cursorUp():"");return e&&(t+=v.cursorLeft),t};v.eraseEndLine=D+"K";v.eraseStartLine=D+"1K";v.eraseLine=D+"2K";v.eraseDown=D+"J";v.eraseUp=D+"1J";v.eraseScreen=D+"2J";v.scrollUp=D+"S";v.scrollDown=D+"T";v.clearScreen="\x1Bc";v.clearTerminal=process.platform==="win32"?`${v.eraseScreen}${D}0f`:`${v.eraseScreen}${D}3J${D}H`;v.beep=ft;v.link=(e,t)=>[Jt,"8",Gr,Gr,t,ft,e,Jt,"8",Gr,Gr,ft].join("");v.image=(e,t={})=>{let r=`${Jt}1337;File=inline=1`;return t.width&&(r+=`;width=${t.width}`),t.height&&(r+=`;height=${t.height}`),t.preserveAspectRatio===!1&&(r+=";preserveAspectRatio=0"),r+":"+e.toString("base64")+ft};v.iTerm={setCwd:(e=process.cwd())=>`${Jt}50;CurrentDir=${e}${ft}`,annotation:(e,t={})=>{let r=`${Jt}1337;`,n=typeof t.x<"u",i=typeof t.y<"u";if((n||i)&&!(n&&i&&typeof t.length<"u"))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return e=e.replace(/\|/g,""),r+=t.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",t.length>0?r+=(n?[e,t.length,t.x,t.y]:[t.length,e]).join("|"):r+=e,r+ft}}});var Zn=Z((cf,qo)=>{"use strict";qo.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}});var Bo=Z((pf,Vo)=>{"use strict";var Bu=require("os"),jo=require("tty"),de=Zn(),{env:Q}=process,Qe;de("no-color")||de("no-colors")||de("color=false")||de("color=never")?Qe=0:(de("color")||de("colors")||de("color=true")||de("color=always"))&&(Qe=1);"FORCE_COLOR"in Q&&(Q.FORCE_COLOR==="true"?Qe=1:Q.FORCE_COLOR==="false"?Qe=0:Qe=Q.FORCE_COLOR.length===0?1:Math.min(parseInt(Q.FORCE_COLOR,10),3));function Xn(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function ei(e,t){if(Qe===0)return 0;if(de("color=16m")||de("color=full")||de("color=truecolor"))return 3;if(de("color=256"))return 2;if(e&&!t&&Qe===void 0)return 0;let r=Qe||0;if(Q.TERM==="dumb")return r;if(process.platform==="win32"){let n=Bu.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in Q)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in Q)||Q.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Q)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Q.TEAMCITY_VERSION)?1:0;if(Q.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Q){let n=parseInt((Q.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Q.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Q.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Q.TERM)||"COLORTERM"in Q?1:r}function Uu(e){let t=ei(e,e&&e.isTTY);return Xn(t)}Vo.exports={supportsColor:Uu,stdout:Xn(ei(!0,jo.isatty(1))),stderr:Xn(ei(!0,jo.isatty(2)))}});var Qo=Z((df,Go)=>{"use strict";var Gu=Bo(),gt=Zn();function Uo(e){if(/^\d{3,4}$/.test(e)){let r=/(\d{1,2})(\d{2})/.exec(e);return{major:0,minor:parseInt(r[1],10),patch:parseInt(r[2],10)}}let t=(e||"").split(".").map(r=>parseInt(r,10));return{major:t[0],minor:t[1],patch:t[2]}}function ti(e){let{env:t}=process;if("FORCE_HYPERLINK"in t)return!(t.FORCE_HYPERLINK.length>0&&parseInt(t.FORCE_HYPERLINK,10)===0);if(gt("no-hyperlink")||gt("no-hyperlinks")||gt("hyperlink=false")||gt("hyperlink=never"))return!1;if(gt("hyperlink=true")||gt("hyperlink=always")||"NETLIFY"in t)return!0;if(!Gu.supportsColor(e)||e&&!e.isTTY||process.platform==="win32"||"CI"in t||"TEAMCITY_VERSION"in t)return!1;if("TERM_PROGRAM"in t){let r=Uo(t.TERM_PROGRAM_VERSION);switch(t.TERM_PROGRAM){case"iTerm.app":return r.major===3?r.minor>=1:r.major>3;case"WezTerm":return r.major>=20200620;case"vscode":return r.major>1||r.major===1&&r.minor>=72}}if("VTE_VERSION"in t){if(t.VTE_VERSION==="0.50.0")return!1;let r=Uo(t.VTE_VERSION);return r.major>0||r.minor>=50}return!1}Go.exports={supportsHyperlink:ti,stdout:ti(process.stdout),stderr:ti(process.stderr)}});var Wo=Z((mf,Wt)=>{"use strict";var Qu=$o(),ri=Qo(),Jo=(e,t,{target:r="stdout",...n}={})=>ri[r]?Qu.link(e,t):n.fallback===!1?e:typeof n.fallback=="function"?n.fallback(e,t):`${e} (\u200B${t}\u200B)`;Wt.exports=(e,t,r={})=>Jo(e,t,r);Wt.exports.stderr=(e,t,r={})=>Jo(e,t,{target:"stderr",...r});Wt.exports.isSupported=ri.stdout;Wt.exports.stderr.isSupported=ri.stderr});var ii=Z((vf,Ju)=>{Ju.exports={name:"@prisma/engines-version",version:"5.22.0-32.2428ad6eca74cb0654e6b55b8f19b662f2fa796a",main:"index.js",types:"index.d.ts",license:"Apache-2.0",author:"Tim Suchanek <suchanek@prisma.io>",prisma:{enginesVersion:"2428ad6eca74cb0654e6b55b8f19b662f2fa796a"},repository:{type:"git",url:"https://github.com/prisma/engines-wrapper.git",directory:"packages/engines-version"},devDependencies:{"@types/node":"18.19.34",typescript:"4.9.5"},files:["index.js","index.d.ts"],scripts:{build:"tsc -d"}}});var oi=Z(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.enginesVersion=void 0;Qr.enginesVersion=ii().prisma.enginesVersion});var Yo=Z((Bf,Ku)=>{Ku.exports={name:"dotenv",version:"16.0.3",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{require:"./lib/main.js",types:"./lib/main.d.ts",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard","lint-readme":"standard-markdown",pretest:"npm run lint && npm run dts-check",test:"tap tests/*.js --100 -Rspec",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@types/node":"^17.0.9",decache:"^4.6.1",dtslint:"^3.7.0",sinon:"^12.0.1",standard:"^16.0.4","standard-markdown":"^7.1.0","standard-version":"^9.3.2",tap:"^15.1.6",tar:"^6.1.11",typescript:"^4.5.4"},engines:{node:">=12"}}});var Xo=Z((Uf,Wr)=>{"use strict";var zu=require("fs"),Zo=require("path"),Yu=require("os"),Zu=Yo(),Xu=Zu.version,ec=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function tc(e){let t={},r=e.toString();r=r.replace(/\r\n?/mg,`
2
2
  `);let n;for(;(n=ec.exec(r))!=null;){let i=n[1],o=n[2]||"";o=o.trim();let s=o[0];o=o.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),s==='"'&&(o=o.replace(/\\n/g,`
3
3
  `),o=o.replace(/\\r/g,"\r")),t[i]=o}return t}function ui(e){console.log(`[dotenv@${Xu}][DEBUG] ${e}`)}function rc(e){return e[0]==="~"?Zo.join(Yu.homedir(),e.slice(1)):e}function nc(e){let t=Zo.resolve(process.cwd(),".env"),r="utf8",n=!!(e&&e.debug),i=!!(e&&e.override);e&&(e.path!=null&&(t=rc(e.path)),e.encoding!=null&&(r=e.encoding));try{let o=Jr.parse(zu.readFileSync(t,{encoding:r}));return Object.keys(o).forEach(function(s){Object.prototype.hasOwnProperty.call(process.env,s)?(i===!0&&(process.env[s]=o[s]),n&&ui(i===!0?`"${s}" is already defined in \`process.env\` and WAS overwritten`:`"${s}" is already defined in \`process.env\` and was NOT overwritten`)):process.env[s]=o[s]}),{parsed:o}}catch(o){return n&&ui(`Failed to load ${t} ${o.message}`),{error:o}}}var Jr={config:nc,parse:tc};Wr.exports.config=Jr.config;Wr.exports.parse=Jr.parse;Wr.exports=Jr});var os=Z((zf,is)=>{"use strict";is.exports=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((r,n)=>Math.min(r,n.length),1/0):0}});var as=Z((Yf,ss)=>{"use strict";var ac=os();ss.exports=e=>{let t=ac(e);if(t===0)return e;let r=new RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")}});var mi=Z((ng,ls)=>{"use strict";ls.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 ds=Z((sg,ps)=>{"use strict";ps.exports=({onlyFirst:e=!1}={})=>{let t=["[\\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(t,e?void 0:"g")}});var yi=Z((ag,ms)=>{"use strict";var gc=ds();ms.exports=e=>typeof e=="string"?e.replace(gc(),""):e});var fs=Z((cg,zr)=>{"use strict";zr.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()};zr.exports.default=zr.exports});var io=Z((uv,el)=>{"use strict";el.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,l,u,c,p,d,f,g,h,O,T,S,C,E=[];for(l=0;l<i;l++)E.push(l+1),E.push(t.charCodeAt(s+l));for(var me=E.length-1;a<o-3;)for(O=r.charCodeAt(s+(u=a)),T=r.charCodeAt(s+(c=a+1)),S=r.charCodeAt(s+(p=a+2)),C=r.charCodeAt(s+(d=a+3)),f=a+=4,l=0;l<me;l+=2)g=E[l],h=E[l+1],u=e(g,u,c,O,h),c=e(u,c,p,T,h),p=e(c,p,d,S,h),f=e(p,d,f,C,h),E[l]=f,d=p,p=c,c=u,u=g;for(;a<o;)for(O=r.charCodeAt(s+(u=a)),f=++a,l=0;l<me;l+=2)g=E[l],E[l]=f=e(g,u,f,O,E[l+1]),u=g;return f}}()});var Fm={};Vt(Fm,{Debug:()=>Un,Decimal:()=>Re,Extensions:()=>qn,MetricsClient:()=>bt,NotFoundError:()=>Le,PrismaClientInitializationError:()=>R,PrismaClientKnownRequestError:()=>V,PrismaClientRustPanicError:()=>le,PrismaClientUnknownRequestError:()=>B,PrismaClientValidationError:()=>J,Public:()=>jn,Sql:()=>ie,defineDmmfProperty:()=>hs,empty:()=>xs,getPrismaClient:()=>Kl,getRuntime:()=>Tn,join:()=>ws,makeStrictEnum:()=>zl,makeTypedQueryFactory:()=>bs,objectEnumValues:()=>Xr,raw:()=>Ai,skip:()=>en,sqltag:()=>Ii,warnEnvConflicts:()=>Yl,warnOnce:()=>Xt});module.exports=nu(Fm);var qn={};Vt(qn,{defineExtension:()=>go,getExtensionContext:()=>ho});function go(e){return typeof e=="function"?e:t=>t.$extends(e)}function ho(e){return e}var jn={};Vt(jn,{validator:()=>yo});function yo(...e){return t=>t}var Lr={};Vt(Lr,{$:()=>Po,bgBlack:()=>mu,bgBlue:()=>yu,bgCyan:()=>Eu,bgGreen:()=>gu,bgMagenta:()=>bu,bgRed:()=>fu,bgWhite:()=>wu,bgYellow:()=>hu,black:()=>uu,blue:()=>rt,bold:()=>H,cyan:()=>De,dim:()=>Oe,gray:()=>Bt,green:()=>qe,grey:()=>du,hidden:()=>au,inverse:()=>su,italic:()=>ou,magenta:()=>cu,red:()=>ce,reset:()=>iu,strikethrough:()=>lu,underline:()=>X,white:()=>pu,yellow:()=>ke});var Vn,bo,Eo,wo,xo=!0;typeof process<"u"&&({FORCE_COLOR:Vn,NODE_DISABLE_COLORS:bo,NO_COLOR:Eo,TERM:wo}=process.env||{},xo=process.stdout&&process.stdout.isTTY);var Po={enabled:!bo&&Eo==null&&wo!=="dumb"&&(Vn!=null&&Vn!=="0"||xo)};function M(e,t){let r=new RegExp(`\\x1b\\[${t}m`,"g"),n=`\x1B[${e}m`,i=`\x1B[${t}m`;return function(o){return!Po.enabled||o==null?o:n+(~(""+o).indexOf(i)?o.replace(r,i+n):o)+i}}var iu=M(0,0),H=M(1,22),Oe=M(2,22),ou=M(3,23),X=M(4,24),su=M(7,27),au=M(8,28),lu=M(9,29),uu=M(30,39),ce=M(31,39),qe=M(32,39),ke=M(33,39),rt=M(34,39),cu=M(35,39),De=M(36,39),pu=M(37,39),Bt=M(90,39),du=M(90,39),mu=M(40,49),fu=M(41,49),gu=M(42,49),hu=M(43,49),yu=M(44,49),bu=M(45,49),Eu=M(46,49),wu=M(47,49);var xu=100,vo=["green","yellow","blue","magenta","cyan","red"],Ut=[],To=Date.now(),Pu=0,Bn=typeof process<"u"?process.env:{};globalThis.DEBUG??=Bn.DEBUG??"";globalThis.DEBUG_COLORS??=Bn.DEBUG_COLORS?Bn.DEBUG_COLORS==="true":!0;var Gt={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 vu(e){let t={color:vo[Pu++%vo.length],enabled:Gt.enabled(e),namespace:e,log:Gt.log,extend:()=>{}},r=(...n)=>{let{enabled:i,namespace:o,color:s,log:a}=t;if(n.length!==0&&Ut.push([o,...n]),Ut.length>xu&&Ut.shift(),Gt.enabled(o)||i){let l=n.map(c=>typeof c=="string"?c:Tu(c)),u=`+${Date.now()-To}ms`;To=Date.now(),globalThis.DEBUG_COLORS?a(Lr[s](H(o)),...l,Lr[s](u)):a(o,...l,u)}};return new Proxy(r,{get:(n,i)=>t[i],set:(n,i,o)=>t[i]=o})}var Un=new Proxy(vu,{get:(e,t)=>Gt[t],set:(e,t,r)=>Gt[t]=r});function Tu(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 Ro(e=7500){let t=Ut.map(([r,...n])=>`${r} ${n.map(i=>typeof i=="string"?i:JSON.stringify(i)).join(" ")}`).join(`
4
4
  `);return t.length<e?t:t.slice(-e)}function Co(){Ut.length=0}var L=Un;var So=k(require("fs"));function Gn(){let e=process.env.PRISMA_QUERY_ENGINE_LIBRARY;if(!(e&&So.default.existsSync(e))&&process.arch==="ia32")throw new Error('The default query engine type (Node-API, "library") is currently not supported for 32bit Node. Please set `engineType = "binary"` in the "generator" block of your "schema.prisma" file (or use the environment variables "PRISMA_CLIENT_ENGINE_TYPE=binary" and/or "PRISMA_CLI_QUERY_ENGINE_TYPE=binary".)')}var Qn=["darwin","darwin-arm64","debian-openssl-1.0.x","debian-openssl-1.1.x","debian-openssl-3.0.x","rhel-openssl-1.0.x","rhel-openssl-1.1.x","rhel-openssl-3.0.x","linux-arm64-openssl-1.1.x","linux-arm64-openssl-1.0.x","linux-arm64-openssl-3.0.x","linux-arm-openssl-1.1.x","linux-arm-openssl-1.0.x","linux-arm-openssl-3.0.x","linux-musl","linux-musl-openssl-3.0.x","linux-musl-arm64-openssl-1.1.x","linux-musl-arm64-openssl-3.0.x","linux-nixos","linux-static-x64","linux-static-arm64","windows","freebsd11","freebsd12","freebsd13","freebsd14","freebsd15","openbsd","netbsd","arm"];var Nr="libquery_engine";function Mr(e,t){let r=t==="url";return e.includes("windows")?r?"query_engine.dll.node":`query_engine-${e}.dll.node`:e.includes("darwin")?r?`${Nr}.dylib.node`:`${Nr}-${e}.dylib.node`:r?`${Nr}.so.node`:`${Nr}-${e}.so.node`}var ko=k(require("child_process")),Kn=k(require("fs/promises")),Br=k(require("os"));var _e=Symbol.for("@ts-pattern/matcher"),Ru=Symbol.for("@ts-pattern/isVariadic"),qr="@ts-pattern/anonymous-select-key",Jn=e=>!!(e&&typeof e=="object"),$r=e=>e&&!!e[_e],Ee=(e,t,r)=>{if($r(e)){let n=e[_e](),{matched:i,selections:o}=n.match(t);return i&&o&&Object.keys(o).forEach(s=>r(s,o[s])),i}if(Jn(e)){if(!Jn(t))return!1;if(Array.isArray(e)){if(!Array.isArray(t))return!1;let n=[],i=[],o=[];for(let s of e.keys()){let a=e[s];$r(a)&&a[Ru]?o.push(a):o.length?i.push(a):n.push(a)}if(o.length){if(o.length>1)throw new Error("Pattern error: Using `...P.array(...)` several times in a single pattern is not allowed.");if(t.length<n.length+i.length)return!1;let s=t.slice(0,n.length),a=i.length===0?[]:t.slice(-i.length),l=t.slice(n.length,i.length===0?1/0:-i.length);return n.every((u,c)=>Ee(u,s[c],r))&&i.every((u,c)=>Ee(u,a[c],r))&&(o.length===0||Ee(o[0],l,r))}return e.length===t.length&&e.every((s,a)=>Ee(s,t[a],r))}return Object.keys(e).every(n=>{let i=e[n];return(n in t||$r(o=i)&&o[_e]().matcherType==="optional")&&Ee(i,t[n],r);var o})}return Object.is(t,e)},Ge=e=>{var t,r,n;return Jn(e)?$r(e)?(t=(r=(n=e[_e]()).getSelectionKeys)==null?void 0:r.call(n))!=null?t:[]:Array.isArray(e)?Qt(e,Ge):Qt(Object.values(e),Ge):[]},Qt=(e,t)=>e.reduce((r,n)=>r.concat(t(n)),[]);function pe(e){return Object.assign(e,{optional:()=>Cu(e),and:t=>j(e,t),or:t=>Su(e,t),select:t=>t===void 0?Ao(e):Ao(t,e)})}function Cu(e){return pe({[_e]:()=>({match:t=>{let r={},n=(i,o)=>{r[i]=o};return t===void 0?(Ge(e).forEach(i=>n(i,void 0)),{matched:!0,selections:r}):{matched:Ee(e,t,n),selections:r}},getSelectionKeys:()=>Ge(e),matcherType:"optional"})})}function j(...e){return pe({[_e]:()=>({match:t=>{let r={},n=(i,o)=>{r[i]=o};return{matched:e.every(i=>Ee(i,t,n)),selections:r}},getSelectionKeys:()=>Qt(e,Ge),matcherType:"and"})})}function Su(...e){return pe({[_e]:()=>({match:t=>{let r={},n=(i,o)=>{r[i]=o};return Qt(e,Ge).forEach(i=>n(i,void 0)),{matched:e.some(i=>Ee(i,t,n)),selections:r}},getSelectionKeys:()=>Qt(e,Ge),matcherType:"or"})})}function I(e){return{[_e]:()=>({match:t=>({matched:!!e(t)})})}}function Ao(...e){let t=typeof e[0]=="string"?e[0]:void 0,r=e.length===2?e[1]:typeof e[0]=="string"?void 0:e[0];return pe({[_e]:()=>({match:n=>{let i={[t??qr]:n};return{matched:r===void 0||Ee(r,n,(o,s)=>{i[o]=s}),selections:i}},getSelectionKeys:()=>[t??qr].concat(r===void 0?[]:Ge(r))})})}function ye(e){return typeof e=="number"}function je(e){return typeof e=="string"}function Ve(e){return typeof e=="bigint"}var Wm=pe(I(function(e){return!0}));var Be=e=>Object.assign(pe(e),{startsWith:t=>{return Be(j(e,(r=t,I(n=>je(n)&&n.startsWith(r)))));var r},endsWith:t=>{return Be(j(e,(r=t,I(n=>je(n)&&n.endsWith(r)))));var r},minLength:t=>Be(j(e,(r=>I(n=>je(n)&&n.length>=r))(t))),length:t=>Be(j(e,(r=>I(n=>je(n)&&n.length===r))(t))),maxLength:t=>Be(j(e,(r=>I(n=>je(n)&&n.length<=r))(t))),includes:t=>{return Be(j(e,(r=t,I(n=>je(n)&&n.includes(r)))));var r},regex:t=>{return Be(j(e,(r=t,I(n=>je(n)&&!!n.match(r)))));var r}}),Hm=Be(I(je)),be=e=>Object.assign(pe(e),{between:(t,r)=>be(j(e,((n,i)=>I(o=>ye(o)&&n<=o&&i>=o))(t,r))),lt:t=>be(j(e,(r=>I(n=>ye(n)&&n<r))(t))),gt:t=>be(j(e,(r=>I(n=>ye(n)&&n>r))(t))),lte:t=>be(j(e,(r=>I(n=>ye(n)&&n<=r))(t))),gte:t=>be(j(e,(r=>I(n=>ye(n)&&n>=r))(t))),int:()=>be(j(e,I(t=>ye(t)&&Number.isInteger(t)))),finite:()=>be(j(e,I(t=>ye(t)&&Number.isFinite(t)))),positive:()=>be(j(e,I(t=>ye(t)&&t>0))),negative:()=>be(j(e,I(t=>ye(t)&&t<0)))}),Km=be(I(ye)),Ue=e=>Object.assign(pe(e),{between:(t,r)=>Ue(j(e,((n,i)=>I(o=>Ve(o)&&n<=o&&i>=o))(t,r))),lt:t=>Ue(j(e,(r=>I(n=>Ve(n)&&n<r))(t))),gt:t=>Ue(j(e,(r=>I(n=>Ve(n)&&n>r))(t))),lte:t=>Ue(j(e,(r=>I(n=>Ve(n)&&n<=r))(t))),gte:t=>Ue(j(e,(r=>I(n=>Ve(n)&&n>=r))(t))),positive:()=>Ue(j(e,I(t=>Ve(t)&&t>0))),negative:()=>Ue(j(e,I(t=>Ve(t)&&t<0)))}),zm=Ue(I(Ve)),Ym=pe(I(function(e){return typeof e=="boolean"})),Zm=pe(I(function(e){return typeof e=="symbol"})),Xm=pe(I(function(e){return e==null})),ef=pe(I(function(e){return e!=null}));var Wn={matched:!1,value:void 0};function mt(e){return new Hn(e,Wn)}var Hn=class e{constructor(t,r){this.input=void 0,this.state=void 0,this.input=t,this.state=r}with(...t){if(this.state.matched)return this;let r=t[t.length-1],n=[t[0]],i;t.length===3&&typeof t[1]=="function"?i=t[1]:t.length>2&&n.push(...t.slice(1,t.length-1));let o=!1,s={},a=(u,c)=>{o=!0,s[u]=c},l=!n.some(u=>Ee(u,this.input,a))||i&&!i(this.input)?Wn:{matched:!0,value:r(o?qr in s?s[qr]:s:this.input,this.input)};return new e(this.input,l)}when(t,r){if(this.state.matched)return this;let n=!!t(this.input);return new e(this.input,n?{matched:!0,value:r(this.input,this.input)}:Wn)}otherwise(t){return this.state.matched?this.state.value:t(this.input)}exhaustive(){if(this.state.matched)return this.state.value;let t;try{t=JSON.stringify(this.input)}catch{t=this.input}throw new Error(`Pattern matching error: no pattern matches value ${t}`)}run(){return this.exhaustive()}returnType(){return this}};var Do=require("util");var Au={warn:ke("prisma:warn")},Iu={warn:()=>!process.env.PRISMA_DISABLE_WARNINGS};function jr(e,...t){Iu.warn()&&console.warn(`${Au.warn} ${e}`,...t)}var Ou=(0,Do.promisify)(ko.default.exec),te=L("prisma:get-platform"),ku=["1.0.x","1.1.x","3.0.x"];async function _o(){let e=Br.default.platform(),t=process.arch;if(e==="freebsd"){let s=await Ur("freebsd-version");if(s&&s.trim().length>0){let l=/^(\d+)\.?/.exec(s);if(l)return{platform:"freebsd",targetDistro:`freebsd${l[1]}`,arch:t}}}if(e!=="linux")return{platform:e,arch:t};let r=await _u(),n=await Vu(),i=Lu({arch:t,archFromUname:n,familyDistro:r.familyDistro}),{libssl:o}=await Nu(i);return{platform:"linux",libssl:o,arch:t,archFromUname:n,...r}}function Du(e){let t=/^ID="?([^"\n]*)"?$/im,r=/^ID_LIKE="?([^"\n]*)"?$/im,n=t.exec(e),i=n&&n[1]&&n[1].toLowerCase()||"",o=r.exec(e),s=o&&o[1]&&o[1].toLowerCase()||"",a=mt({id:i,idLike:s}).with({id:"alpine"},({id:l})=>({targetDistro:"musl",familyDistro:l,originalDistro:l})).with({id:"raspbian"},({id:l})=>({targetDistro:"arm",familyDistro:"debian",originalDistro:l})).with({id:"nixos"},({id:l})=>({targetDistro:"nixos",originalDistro:l,familyDistro:"nixos"})).with({id:"debian"},{id:"ubuntu"},({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).with({id:"rhel"},{id:"centos"},{id:"fedora"},({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).when(({idLike:l})=>l.includes("debian")||l.includes("ubuntu"),({id:l})=>({targetDistro:"debian",familyDistro:"debian",originalDistro:l})).when(({idLike:l})=>i==="arch"||l.includes("arch"),({id:l})=>({targetDistro:"debian",familyDistro:"arch",originalDistro:l})).when(({idLike:l})=>l.includes("centos")||l.includes("fedora")||l.includes("rhel")||l.includes("suse"),({id:l})=>({targetDistro:"rhel",familyDistro:"rhel",originalDistro:l})).otherwise(({id:l})=>({targetDistro:void 0,familyDistro:void 0,originalDistro:l}));return te(`Found distro info:
@@ -106,7 +106,7 @@ ${X(p)}
106
106
  If you want the Prisma team to look into it, please open the link above \u{1F64F}
107
107
  To increase the chance of success, please post your schema and a snippet of
108
108
  how you used Prisma Client in the issue.
109
- `}function _t({inlineDatasources:e,overrideDatasources:t,env:r,clientVersion:n}){let i,o=Object.keys(e)[0],s=e[o]?.url,a=t[o]?.url;if(o===void 0?i=void 0:a?i=a:s?.value?i=s.value:s?.fromEnvVar&&(i=r[s.fromEnvVar]),s?.fromEnvVar!==void 0&&i===void 0)throw new R(`error: Environment variable not found: ${s.fromEnvVar}.`,n);if(i===void 0)throw new R("error: Missing URL environment variable, value, or override.",n);return i}var An=class extends Error{constructor(t,r){super(t),this.clientVersion=r.clientVersion,this.cause=r.cause}get[Symbol.toStringTag](){return this.name}};var se=class extends An{constructor(t,r){super(t,r),this.isRetryable=r.isRetryable??!0}};function A(e,t){return{...e,isRetryable:t}}var Ft=class extends se{constructor(r){super("This request must be retried",A(r,!0));this.name="ForcedRetryError";this.code="P5001"}};w(Ft,"ForcedRetryError");var at=class extends se{constructor(r,n){super(r,A(n,!1));this.name="InvalidDatasourceError";this.code="P6001"}};w(at,"InvalidDatasourceError");var lt=class extends se{constructor(r,n){super(r,A(n,!1));this.name="NotImplementedYetError";this.code="P5004"}};w(lt,"NotImplementedYetError");var q=class extends se{constructor(t,r){super(t,r),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}}};var ut=class extends q{constructor(r){super("Schema needs to be uploaded",A(r,!0));this.name="SchemaMissingError";this.code="P5005"}};w(ut,"SchemaMissingError");var Gi="This request could not be understood by the server",fr=class extends q{constructor(r,n,i){super(n||Gi,A(r,!1));this.name="BadRequestError";this.code="P5000";i&&(this.code=i)}};w(fr,"BadRequestError");var gr=class extends q{constructor(r,n){super("Engine not started: healthcheck timeout",A(r,!0));this.name="HealthcheckTimeoutError";this.code="P5013";this.logs=n}};w(gr,"HealthcheckTimeoutError");var hr=class extends q{constructor(r,n,i){super(n,A(r,!0));this.name="EngineStartupError";this.code="P5014";this.logs=i}};w(hr,"EngineStartupError");var yr=class extends q{constructor(r){super("Engine version is not supported",A(r,!1));this.name="EngineVersionNotSupportedError";this.code="P5012"}};w(yr,"EngineVersionNotSupportedError");var Qi="Request timed out",br=class extends q{constructor(r,n=Qi){super(n,A(r,!1));this.name="GatewayTimeoutError";this.code="P5009"}};w(br,"GatewayTimeoutError");var hd="Interactive transaction error",Er=class extends q{constructor(r,n=hd){super(n,A(r,!1));this.name="InteractiveTransactionError";this.code="P5015"}};w(Er,"InteractiveTransactionError");var yd="Request parameters are invalid",wr=class extends q{constructor(r,n=yd){super(n,A(r,!1));this.name="InvalidRequestError";this.code="P5011"}};w(wr,"InvalidRequestError");var Ji="Requested resource does not exist",xr=class extends q{constructor(r,n=Ji){super(n,A(r,!1));this.name="NotFoundError";this.code="P5003"}};w(xr,"NotFoundError");var Wi="Unknown server error",Lt=class extends q{constructor(r,n,i){super(n||Wi,A(r,!0));this.name="ServerError";this.code="P5006";this.logs=i}};w(Lt,"ServerError");var Hi="Unauthorized, check your connection string",Pr=class extends q{constructor(r,n=Hi){super(n,A(r,!1));this.name="UnauthorizedError";this.code="P5007"}};w(Pr,"UnauthorizedError");var Ki="Usage exceeded, retry again later",vr=class extends q{constructor(r,n=Ki){super(n,A(r,!0));this.name="UsageExceededError";this.code="P5008"}};w(vr,"UsageExceededError");async function bd(e){let t;try{t=await e.text()}catch{return{type:"EmptyError"}}try{let r=JSON.parse(t);if(typeof r=="string")switch(r){case"InternalDataProxyError":return{type:"DataProxyError",body:r};default:return{type:"UnknownTextError",body:r}}if(typeof r=="object"&&r!==null){if("is_panic"in r&&"message"in r&&"error_code"in r)return{type:"QueryEngineError",body:r};if("EngineNotStarted"in r||"InteractiveTransactionMisrouted"in r||"InvalidRequestError"in r){let n=Object.values(r)[0].reason;return typeof n=="string"&&!["SchemaMissing","EngineVersionNotSupported"].includes(n)?{type:"UnknownJsonError",body:r}:{type:"DataProxyError",body:r}}}return{type:"UnknownJsonError",body:r}}catch{return t===""?{type:"EmptyError"}:{type:"UnknownTextError",body:t}}}async function Tr(e,t){if(e.ok)return;let r={clientVersion:t,response:e},n=await bd(e);if(n.type==="QueryEngineError")throw new V(n.body.message,{code:n.body.error_code,clientVersion:t});if(n.type==="DataProxyError"){if(n.body==="InternalDataProxyError")throw new Lt(r,"Internal Data Proxy error");if("EngineNotStarted"in n.body){if(n.body.EngineNotStarted.reason==="SchemaMissing")return new ut(r);if(n.body.EngineNotStarted.reason==="EngineVersionNotSupported")throw new yr(r);if("EngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,logs:o}=n.body.EngineNotStarted.reason.EngineStartupError;throw new hr(r,i,o)}if("KnownEngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,error_code:o}=n.body.EngineNotStarted.reason.KnownEngineStartupError;throw new R(i,t,o)}if("HealthcheckTimeout"in n.body.EngineNotStarted.reason){let{logs:i}=n.body.EngineNotStarted.reason.HealthcheckTimeout;throw new gr(r,i)}}if("InteractiveTransactionMisrouted"in n.body){let i={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 Er(r,i[n.body.InteractiveTransactionMisrouted.reason])}if("InvalidRequestError"in n.body)throw new wr(r,n.body.InvalidRequestError.reason)}if(e.status===401||e.status===403)throw new Pr(r,Nt(Hi,n));if(e.status===404)return new xr(r,Nt(Ji,n));if(e.status===429)throw new vr(r,Nt(Ki,n));if(e.status===504)throw new br(r,Nt(Qi,n));if(e.status>=500)throw new Lt(r,Nt(Wi,n));if(e.status>=400)throw new fr(r,Nt(Gi,n))}function Nt(e,t){return t.type==="EmptyError"?e:`${e}: ${JSON.stringify(t)}`}function ja(e){let t=Math.pow(2,e)*50,r=Math.ceil(Math.random()*t)-Math.ceil(t/2),n=t+r;return new Promise(i=>setTimeout(()=>i(n),n))}var $e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Va(e){let t=new TextEncoder().encode(e),r="",n=t.byteLength,i=n%3,o=n-i,s,a,l,u,c;for(let p=0;p<o;p=p+3)c=t[p]<<16|t[p+1]<<8|t[p+2],s=(c&16515072)>>18,a=(c&258048)>>12,l=(c&4032)>>6,u=c&63,r+=$e[s]+$e[a]+$e[l]+$e[u];return i==1?(c=t[o],s=(c&252)>>2,a=(c&3)<<4,r+=$e[s]+$e[a]+"=="):i==2&&(c=t[o]<<8|t[o+1],s=(c&64512)>>10,a=(c&1008)>>4,l=(c&15)<<2,r+=$e[s]+$e[a]+$e[l]+"="),r}function Ba(e){if(!!e.generator?.previewFeatures.some(r=>r.toLowerCase().includes("metrics")))throw new R("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)}function Ed(e){return e[0]*1e3+e[1]/1e6}function Ua(e){return new Date(Ed(e))}var Ga={"@prisma/debug":"workspace:*","@prisma/engines-version":"5.21.0-36.08713a93b99d58f31485621c634b04983ae01d95","@prisma/fetch-engine":"workspace:*","@prisma/get-platform":"workspace:*"};var Rr=class extends se{constructor(r,n){super(`Cannot fetch data from service:
109
+ `}function _t({inlineDatasources:e,overrideDatasources:t,env:r,clientVersion:n}){let i,o=Object.keys(e)[0],s=e[o]?.url,a=t[o]?.url;if(o===void 0?i=void 0:a?i=a:s?.value?i=s.value:s?.fromEnvVar&&(i=r[s.fromEnvVar]),s?.fromEnvVar!==void 0&&i===void 0)throw new R(`error: Environment variable not found: ${s.fromEnvVar}.`,n);if(i===void 0)throw new R("error: Missing URL environment variable, value, or override.",n);return i}var An=class extends Error{constructor(t,r){super(t),this.clientVersion=r.clientVersion,this.cause=r.cause}get[Symbol.toStringTag](){return this.name}};var se=class extends An{constructor(t,r){super(t,r),this.isRetryable=r.isRetryable??!0}};function A(e,t){return{...e,isRetryable:t}}var Ft=class extends se{constructor(r){super("This request must be retried",A(r,!0));this.name="ForcedRetryError";this.code="P5001"}};w(Ft,"ForcedRetryError");var at=class extends se{constructor(r,n){super(r,A(n,!1));this.name="InvalidDatasourceError";this.code="P6001"}};w(at,"InvalidDatasourceError");var lt=class extends se{constructor(r,n){super(r,A(n,!1));this.name="NotImplementedYetError";this.code="P5004"}};w(lt,"NotImplementedYetError");var q=class extends se{constructor(t,r){super(t,r),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}}};var ut=class extends q{constructor(r){super("Schema needs to be uploaded",A(r,!0));this.name="SchemaMissingError";this.code="P5005"}};w(ut,"SchemaMissingError");var Gi="This request could not be understood by the server",fr=class extends q{constructor(r,n,i){super(n||Gi,A(r,!1));this.name="BadRequestError";this.code="P5000";i&&(this.code=i)}};w(fr,"BadRequestError");var gr=class extends q{constructor(r,n){super("Engine not started: healthcheck timeout",A(r,!0));this.name="HealthcheckTimeoutError";this.code="P5013";this.logs=n}};w(gr,"HealthcheckTimeoutError");var hr=class extends q{constructor(r,n,i){super(n,A(r,!0));this.name="EngineStartupError";this.code="P5014";this.logs=i}};w(hr,"EngineStartupError");var yr=class extends q{constructor(r){super("Engine version is not supported",A(r,!1));this.name="EngineVersionNotSupportedError";this.code="P5012"}};w(yr,"EngineVersionNotSupportedError");var Qi="Request timed out",br=class extends q{constructor(r,n=Qi){super(n,A(r,!1));this.name="GatewayTimeoutError";this.code="P5009"}};w(br,"GatewayTimeoutError");var hd="Interactive transaction error",Er=class extends q{constructor(r,n=hd){super(n,A(r,!1));this.name="InteractiveTransactionError";this.code="P5015"}};w(Er,"InteractiveTransactionError");var yd="Request parameters are invalid",wr=class extends q{constructor(r,n=yd){super(n,A(r,!1));this.name="InvalidRequestError";this.code="P5011"}};w(wr,"InvalidRequestError");var Ji="Requested resource does not exist",xr=class extends q{constructor(r,n=Ji){super(n,A(r,!1));this.name="NotFoundError";this.code="P5003"}};w(xr,"NotFoundError");var Wi="Unknown server error",Lt=class extends q{constructor(r,n,i){super(n||Wi,A(r,!0));this.name="ServerError";this.code="P5006";this.logs=i}};w(Lt,"ServerError");var Hi="Unauthorized, check your connection string",Pr=class extends q{constructor(r,n=Hi){super(n,A(r,!1));this.name="UnauthorizedError";this.code="P5007"}};w(Pr,"UnauthorizedError");var Ki="Usage exceeded, retry again later",vr=class extends q{constructor(r,n=Ki){super(n,A(r,!0));this.name="UsageExceededError";this.code="P5008"}};w(vr,"UsageExceededError");async function bd(e){let t;try{t=await e.text()}catch{return{type:"EmptyError"}}try{let r=JSON.parse(t);if(typeof r=="string")switch(r){case"InternalDataProxyError":return{type:"DataProxyError",body:r};default:return{type:"UnknownTextError",body:r}}if(typeof r=="object"&&r!==null){if("is_panic"in r&&"message"in r&&"error_code"in r)return{type:"QueryEngineError",body:r};if("EngineNotStarted"in r||"InteractiveTransactionMisrouted"in r||"InvalidRequestError"in r){let n=Object.values(r)[0].reason;return typeof n=="string"&&!["SchemaMissing","EngineVersionNotSupported"].includes(n)?{type:"UnknownJsonError",body:r}:{type:"DataProxyError",body:r}}}return{type:"UnknownJsonError",body:r}}catch{return t===""?{type:"EmptyError"}:{type:"UnknownTextError",body:t}}}async function Tr(e,t){if(e.ok)return;let r={clientVersion:t,response:e},n=await bd(e);if(n.type==="QueryEngineError")throw new V(n.body.message,{code:n.body.error_code,clientVersion:t});if(n.type==="DataProxyError"){if(n.body==="InternalDataProxyError")throw new Lt(r,"Internal Data Proxy error");if("EngineNotStarted"in n.body){if(n.body.EngineNotStarted.reason==="SchemaMissing")return new ut(r);if(n.body.EngineNotStarted.reason==="EngineVersionNotSupported")throw new yr(r);if("EngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,logs:o}=n.body.EngineNotStarted.reason.EngineStartupError;throw new hr(r,i,o)}if("KnownEngineStartupError"in n.body.EngineNotStarted.reason){let{msg:i,error_code:o}=n.body.EngineNotStarted.reason.KnownEngineStartupError;throw new R(i,t,o)}if("HealthcheckTimeout"in n.body.EngineNotStarted.reason){let{logs:i}=n.body.EngineNotStarted.reason.HealthcheckTimeout;throw new gr(r,i)}}if("InteractiveTransactionMisrouted"in n.body){let i={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 Er(r,i[n.body.InteractiveTransactionMisrouted.reason])}if("InvalidRequestError"in n.body)throw new wr(r,n.body.InvalidRequestError.reason)}if(e.status===401||e.status===403)throw new Pr(r,Nt(Hi,n));if(e.status===404)return new xr(r,Nt(Ji,n));if(e.status===429)throw new vr(r,Nt(Ki,n));if(e.status===504)throw new br(r,Nt(Qi,n));if(e.status>=500)throw new Lt(r,Nt(Wi,n));if(e.status>=400)throw new fr(r,Nt(Gi,n))}function Nt(e,t){return t.type==="EmptyError"?e:`${e}: ${JSON.stringify(t)}`}function ja(e){let t=Math.pow(2,e)*50,r=Math.ceil(Math.random()*t)-Math.ceil(t/2),n=t+r;return new Promise(i=>setTimeout(()=>i(n),n))}var $e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Va(e){let t=new TextEncoder().encode(e),r="",n=t.byteLength,i=n%3,o=n-i,s,a,l,u,c;for(let p=0;p<o;p=p+3)c=t[p]<<16|t[p+1]<<8|t[p+2],s=(c&16515072)>>18,a=(c&258048)>>12,l=(c&4032)>>6,u=c&63,r+=$e[s]+$e[a]+$e[l]+$e[u];return i==1?(c=t[o],s=(c&252)>>2,a=(c&3)<<4,r+=$e[s]+$e[a]+"=="):i==2&&(c=t[o]<<8|t[o+1],s=(c&64512)>>10,a=(c&1008)>>4,l=(c&15)<<2,r+=$e[s]+$e[a]+$e[l]+"="),r}function Ba(e){if(!!e.generator?.previewFeatures.some(r=>r.toLowerCase().includes("metrics")))throw new R("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)}function Ed(e){return e[0]*1e3+e[1]/1e6}function Ua(e){return new Date(Ed(e))}var Ga={"@prisma/debug":"workspace:*","@prisma/engines-version":"5.22.0-32.2428ad6eca74cb0654e6b55b8f19b662f2fa796a","@prisma/fetch-engine":"workspace:*","@prisma/get-platform":"workspace:*"};var Rr=class extends se{constructor(r,n){super(`Cannot fetch data from service:
110
110
  ${r}`,A(n,!0));this.name="RequestError";this.code="P5010"}};w(Rr,"RequestError");async function ct(e,t,r=n=>n){let n=t.clientVersion;try{return typeof fetch=="function"?await r(fetch)(e,t):await r(zi)(e,t)}catch(i){let o=i.message??"Unknown error";throw new Rr(o,{clientVersion:n})}}function xd(e){return{...e.headers,"Content-Type":"application/json"}}function Pd(e){return{method:e.method,headers:xd(e)}}function vd(e,t){return{text:()=>Promise.resolve(Buffer.concat(e).toString()),json:()=>Promise.resolve().then(()=>JSON.parse(Buffer.concat(e).toString())),ok:t.statusCode>=200&&t.statusCode<=299,status:t.statusCode,url:t.url,headers:new Yi(t.headers)}}async function zi(e,t={}){let r=Td("https"),n=Pd(t),i=[],{origin:o}=new URL(e);return new Promise((s,a)=>{let l=r.request(e,n,u=>{let{statusCode:c,headers:{location:p}}=u;c>=301&&c<=399&&p&&(p.startsWith("http")===!1?s(zi(`${o}${p}`,t)):s(zi(p,t))),u.on("data",d=>i.push(d)),u.on("end",()=>s(vd(i,u))),u.on("error",a)});l.on("error",a),l.end(t.body??"")})}var Td=typeof require<"u"?require:()=>{},Yi=class{constructor(t={}){this.headers=new Map;for(let[r,n]of Object.entries(t))if(typeof n=="string")this.headers.set(r,n);else if(Array.isArray(n))for(let i of n)this.headers.set(r,i)}append(t,r){this.headers.set(t,r)}delete(t){this.headers.delete(t)}get(t){return this.headers.get(t)??null}has(t){return this.headers.has(t)}set(t,r){this.headers.set(t,r)}forEach(t,r){for(let[n,i]of this.headers)t.call(r,i,n,this)}};var Rd=/^[1-9][0-9]*\.[0-9]+\.[0-9]+$/,Qa=L("prisma:client:dataproxyEngine");async function Cd(e,t){let r=Ga["@prisma/engines-version"],n=t.clientVersion??"unknown";if(process.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION)return process.env.PRISMA_CLIENT_DATA_PROXY_CLIENT_VERSION;if(e.includes("accelerate")&&n!=="0.0.0"&&n!=="in-memory")return n;let[i,o]=n?.split("-")??[];if(o===void 0&&Rd.test(i))return i;if(o!==void 0||n==="0.0.0"||n==="in-memory"){if(e.startsWith("localhost")||e.startsWith("127.0.0.1"))return"0.0.0";let[s]=r.split("-")??[],[a,l,u]=s.split("."),c=Sd(`<=${a}.${l}.${u}`),p=await ct(c,{clientVersion:n});if(!p.ok)throw new Error(`Failed to fetch stable Prisma version, unpkg.com status ${p.status} ${p.statusText}, response body: ${await p.text()||"<empty body>"}`);let d=await p.text();Qa("length of body fetched from unpkg.com",d.length);let f;try{f=JSON.parse(d)}catch(g){throw console.error("JSON.parse error: body fetched from unpkg.com: ",d),g}return f.version}throw new lt("Only `major.minor.patch` versions are supported by Accelerate.",{clientVersion:n})}async function Ja(e,t){let r=await Cd(e,t);return Qa("version",r),r}function Sd(e){return encodeURI(`https://unpkg.com/prisma@${e}/package.json`)}var Wa=3,Zi=L("prisma:client:dataproxyEngine"),Xi=class{constructor({apiKey:t,tracingHelper:r,logLevel:n,logQueries:i,engineHash:o}){this.apiKey=t,this.tracingHelper=r,this.logLevel=n,this.logQueries=i,this.engineHash=o}build({traceparent:t,interactiveTransaction:r}={}){let n={Authorization:`Bearer ${this.apiKey}`,"Prisma-Engine-Hash":this.engineHash};this.tracingHelper.isEnabled()&&(n.traceparent=t??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 t=[];return this.tracingHelper.isEnabled()&&t.push("tracing"),this.logLevel&&t.push(this.logLevel),this.logQueries&&t.push("query"),t}},Cr=class{constructor(t){this.name="DataProxyEngine";Ba(t),this.config=t,this.env={...t.env,...typeof process<"u"?process.env:{}},this.inlineSchema=Va(t.inlineSchema),this.inlineDatasources=t.inlineDatasources,this.inlineSchemaHash=t.inlineSchemaHash,this.clientVersion=t.clientVersion,this.engineHash=t.engineVersion,this.logEmitter=t.logEmitter,this.tracingHelper=t.tracingHelper}apiKey(){return this.headerBuilder.apiKey}version(){return this.engineHash}async start(){this.startPromise!==void 0&&await this.startPromise,this.startPromise=(async()=>{let[t,r]=this.extractHostAndApiKey();this.host=t,this.headerBuilder=new Xi({apiKey:r,tracingHelper:this.tracingHelper,logLevel:this.config.logLevel,logQueries:this.config.logQueries,engineHash:this.engineHash}),this.remoteClientVersion=await Ja(t,this.config),Zi("host",this.host)})(),await this.startPromise}async stop(){}propagateResponseExtensions(t){t?.logs?.length&&t.logs.forEach(r=>{switch(r.level){case"debug":case"error":case"trace":case"warn":case"info":break;case"query":{let n=typeof r.attributes.query=="string"?r.attributes.query:"";if(!this.tracingHelper.isEnabled()){let[i]=n.split("/* traceparent");n=i}this.logEmitter.emit("query",{query:n,timestamp:Ua(r.timestamp),duration:Number(r.attributes.duration_ms),params:r.attributes.params,target:r.attributes.target})}}}),t?.traces?.length&&this.tracingHelper.createEngineSpan({span:!0,spans:t.traces})}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the remote query engine')}async url(t){return await this.start(),`https://${this.host}/${this.remoteClientVersion}/${this.inlineSchemaHash}/${t}`}async uploadSchema(){let t={name:"schemaUpload",internal:!0};return this.tracingHelper.runInChildSpan(t,async()=>{let r=await ct(await this.url("schema"),{method:"PUT",headers:this.headerBuilder.build(),body:this.inlineSchema,clientVersion:this.clientVersion});r.ok||Zi("schema response status",r.status);let n=await Tr(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(t,{traceparent:r,interactiveTransaction:n,customDataProxyFetch:i}){return this.requestInternal({body:t,traceparent:r,interactiveTransaction:n,customDataProxyFetch:i})}async requestBatch(t,{traceparent:r,transaction:n,customDataProxyFetch:i}){let o=n?.kind==="itx"?n.options:void 0,s=wt(t,n),{batchResult:a,elapsed:l}=await this.requestInternal({body:s,customDataProxyFetch:i,interactiveTransaction:o,traceparent:r});return a.map(u=>"errors"in u&&u.errors.length>0?st(u.errors[0],this.clientVersion,this.config.activeProvider):{data:u,elapsed:l})}requestInternal({body:t,traceparent:r,customDataProxyFetch:n,interactiveTransaction:i}){return this.withRetry({actionGerund:"querying",callback:async({logHttpCall:o})=>{let s=i?`${i.payload.endpoint}/graphql`:await this.url("graphql");o(s);let a=await ct(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r,interactiveTransaction:i}),body:JSON.stringify(t),clientVersion:this.clientVersion},n);a.ok||Zi("graphql response status",a.status),await this.handleError(await Tr(a,this.clientVersion));let l=await a.json(),u=l.extensions;if(u&&this.propagateResponseExtensions(u),l.errors)throw l.errors.length===1?st(l.errors[0],this.config.clientVersion,this.config.activeProvider):new B(l.errors,{clientVersion:this.config.clientVersion});return l}})}async transaction(t,r,n){let i={start:"starting",commit:"committing",rollback:"rolling back"};return this.withRetry({actionGerund:`${i[t]} transaction`,callback:async({logHttpCall:o})=>{if(t==="start"){let s=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel}),a=await this.url("transaction/start");o(a);let l=await ct(a,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),body:s,clientVersion:this.clientVersion});await this.handleError(await Tr(l,this.clientVersion));let u=await l.json(),c=u.extensions;c&&this.propagateResponseExtensions(c);let p=u.id,d=u["data-proxy"].endpoint;return{id:p,payload:{endpoint:d}}}else{let s=`${n.payload.endpoint}/${t}`;o(s);let a=await ct(s,{method:"POST",headers:this.headerBuilder.build({traceparent:r.traceparent}),clientVersion:this.clientVersion});await this.handleError(await Tr(a,this.clientVersion));let u=(await a.json()).extensions;u&&this.propagateResponseExtensions(u);return}}})}extractHostAndApiKey(){let t={clientVersion:this.clientVersion},r=Object.keys(this.inlineDatasources)[0],n=_t({inlineDatasources:this.inlineDatasources,overrideDatasources:this.config.overrideDatasources,clientVersion:this.clientVersion,env:this.env}),i;try{i=new URL(n)}catch{throw new at(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\``,t)}let{protocol:o,host:s,searchParams:a}=i;if(o!=="prisma:"&&o!=="prisma+postgres:")throw new at(`Error validating datasource \`${r}\`: the URL must start with the protocol \`prisma://\``,t);let l=a.get("api_key");if(l===null||l.length<1)throw new at(`Error validating datasource \`${r}\`: the URL must contain a valid API key`,t);return[s,l]}metrics(){throw new lt("Metrics are not yet supported for Accelerate",{clientVersion:this.clientVersion})}async withRetry(t){for(let r=0;;r++){let n=i=>{this.logEmitter.emit("info",{message:`Calling ${i} (n=${r})`,timestamp:new Date,target:""})};try{return await t.callback({logHttpCall:n})}catch(i){if(!(i instanceof se)||!i.isRetryable)throw i;if(r>=Wa)throw i instanceof Ft?i.cause:i;this.logEmitter.emit("warn",{message:`Attempt ${r+1}/${Wa} failed for ${t.actionGerund}: ${i.message??"(unknown)"}`,timestamp:new Date,target:""});let o=await ja(r);this.logEmitter.emit("warn",{message:`Retrying after ${o}ms`,timestamp:new Date,target:""})}}}async handleError(t){if(t instanceof ut)throw await this.uploadSchema(),new Ft({clientVersion:this.clientVersion,cause:t});if(t)throw t}applyPendingMigrations(){throw new Error("Method not implemented.")}};function Ha(e){if(e?.kind==="itx")return e.options.id}var to=k(require("os")),Ka=k(require("path"));var eo=Symbol("PrismaLibraryEngineCache");function Ad(){let e=globalThis;return e[eo]===void 0&&(e[eo]={}),e[eo]}function Id(e){let t=Ad();if(t[e]!==void 0)return t[e];let r=Ka.default.toNamespacedPath(e),n={exports:{}},i=0;return process.platform!=="win32"&&(i=to.default.constants.dlopen.RTLD_LAZY|to.default.constants.dlopen.RTLD_DEEPBIND),process.dlopen(n,r,i),t[e]=n.exports,n.exports}var za={async loadLibrary(e){let t=await zn(),r=await _a("library",e);try{return e.tracingHelper.runInChildSpan({name:"loadLibrary",internal:!0},()=>Id(r))}catch(n){let i=li({e:n,platformInfo:t,id:r});throw new R(i,e.clientVersion)}}};var ro,Ya={async loadLibrary(e){let{clientVersion:t,adapter:r,engineWasm:n}=e;if(r===void 0)throw new R(`The \`adapter\` option for \`PrismaClient\` is required in this context (${Tn().prettyName})`,t);if(n===void 0)throw new R("WASM engine was unexpectedly `undefined`",t);ro===void 0&&(ro=(async()=>{let o=n.getRuntime(),s=await n.getQueryEngineWasmModule();if(s==null)throw new R("The loaded wasm module was unexpectedly `undefined` or `null` once loaded",t);let a={"./query_engine_bg.js":o},l=new WebAssembly.Instance(s,a);return o.__wbg_set_wasm(l.exports),o.QueryEngine})());let i=await ro;return{debugPanic(){return Promise.reject("{}")},dmmf(){return Promise.resolve("{}")},version(){return{commit:"unknown",version:"unknown"}},QueryEngine:i}}};var Od="P2036",Ae=L("prisma:client:libraryEngine");function kd(e){return e.item_type==="query"&&"query"in e}function Dd(e){return"level"in e?e.level==="error"&&e.message==="PANIC":!1}var Za=[...Qn,"native"],Sr=class{constructor(t,r){this.name="LibraryEngine";this.libraryLoader=r??za,t.engineWasm!==void 0&&(this.libraryLoader=r??Ya),this.config=t,this.libraryStarted=!1,this.logQueries=t.logQueries??!1,this.logLevel=t.logLevel??"error",this.logEmitter=t.logEmitter,this.datamodel=t.inlineSchema,t.enableDebugLogs&&(this.logLevel="debug");let n=Object.keys(t.overrideDatasources)[0],i=t.overrideDatasources[n]?.url;n!==void 0&&i!==void 0&&(this.datasourceOverrides={[n]:i}),this.libraryInstantiationPromise=this.instantiateLibrary()}async applyPendingMigrations(){throw new Error("Cannot call this method from this type of engine instance")}async transaction(t,r,n){await this.start();let i=JSON.stringify(r),o;if(t==="start"){let a=JSON.stringify({max_wait:n.maxWait,timeout:n.timeout,isolation_level:n.isolationLevel});o=await this.engine?.startTransaction(a,i)}else t==="commit"?o=await this.engine?.commitTransaction(n.id,i):t==="rollback"&&(o=await this.engine?.rollbackTransaction(n.id,i));let s=this.parseEngineResponse(o);if(_d(s)){let a=this.getExternalAdapterError(s);throw a?a.error:new V(s.message,{code:s.error_code,clientVersion:this.config.clientVersion,meta:s.meta})}return s}async instantiateLibrary(){if(Ae("internalSetup"),this.libraryInstantiationPromise)return this.libraryInstantiationPromise;Gn(),this.binaryTarget=await this.getCurrentBinaryTarget(),await this.loadEngine(),this.version()}async getCurrentBinaryTarget(){{if(this.binaryTarget)return this.binaryTarget;let t=await nt();if(!Za.includes(t))throw new R(`Unknown ${ce("PRISMA_QUERY_ENGINE_LIBRARY")} ${ce(H(t))}. Possible binaryTargets: ${qe(Za.join(", "))} or a path to the query engine library.
111
111
  You may have to run ${qe("prisma generate")} for your changes to take effect.`,this.config.clientVersion);return t}}parseEngineResponse(t){if(!t)throw new B("Response from the Engine was empty",{clientVersion:this.config.clientVersion});try{return JSON.parse(t)}catch{throw new B("Unable to JSON.parse response from engine",{clientVersion:this.config.clientVersion})}}async loadEngine(){if(!this.engine){this.QueryEngineConstructor||(this.library=await this.libraryLoader.loadLibrary(this.config),this.QueryEngineConstructor=this.library.QueryEngine);try{let t=new WeakRef(this),{adapter:r}=this.config;r&&Ae("Using driver adapter: %O",r),this.engine=new this.QueryEngineConstructor({datamodel:this.datamodel,env:process.env,logQueries:this.config.logQueries??!1,ignoreEnvVarErrors:!0,datasourceOverrides:this.datasourceOverrides??{},logLevel:this.logLevel,configDir:this.config.cwd,engineProtocol:"json"},n=>{t.deref()?.logger(n)},r)}catch(t){let r=t,n=this.parseInitError(r.message);throw typeof n=="string"?r:new R(n.message,this.config.clientVersion,n.error_code)}}}logger(t){let r=this.parseEngineResponse(t);if(r){if("span"in r){this.config.tracingHelper.createEngineSpan(r);return}r.level=r?.level.toLowerCase()??"unknown",kd(r)?this.logEmitter.emit("query",{timestamp:new Date,query:r.query,params:r.params,duration:Number(r.duration_ms),target:r.module_path}):Dd(r)?this.loggerRustPanic=new le(no(this,`${r.message}: ${r.reason} in ${r.file}:${r.line}:${r.column}`),this.config.clientVersion):this.logEmitter.emit(r.level,{timestamp:new Date,message:r.message,target:r.module_path})}}parseInitError(t){try{return JSON.parse(t)}catch{}return t}parseRequestError(t){try{return JSON.parse(t)}catch{}return t}onBeforeExit(){throw new Error('"beforeExit" hook is not applicable to the library engine since Prisma 5.0.0, it is only relevant and implemented for the binary engine. Please add your event listener to the `process` object directly instead.')}async start(){if(await this.libraryInstantiationPromise,await this.libraryStoppingPromise,this.libraryStartingPromise)return Ae(`library already starting, this.libraryStarted: ${this.libraryStarted}`),this.libraryStartingPromise;if(this.libraryStarted)return;let t=async()=>{Ae("library starting");try{let r={traceparent:this.config.tracingHelper.getTraceParent()};await this.engine?.connect(JSON.stringify(r)),this.libraryStarted=!0,Ae("library started")}catch(r){let n=this.parseInitError(r.message);throw typeof n=="string"?r:new R(n.message,this.config.clientVersion,n.error_code)}finally{this.libraryStartingPromise=void 0}};return this.libraryStartingPromise=this.config.tracingHelper.runInChildSpan("connect",t),this.libraryStartingPromise}async stop(){if(await this.libraryStartingPromise,await this.executingQueryPromise,this.libraryStoppingPromise)return Ae("library is already stopping"),this.libraryStoppingPromise;if(!this.libraryStarted)return;let t=async()=>{await new Promise(n=>setTimeout(n,5)),Ae("library stopping");let r={traceparent:this.config.tracingHelper.getTraceParent()};await this.engine?.disconnect(JSON.stringify(r)),this.libraryStarted=!1,this.libraryStoppingPromise=void 0,Ae("library stopped")};return this.libraryStoppingPromise=this.config.tracingHelper.runInChildSpan("disconnect",t),this.libraryStoppingPromise}version(){return this.versionInfo=this.library?.version(),this.versionInfo?.version??"unknown"}debugPanic(t){return this.library?.debugPanic(t)}async request(t,{traceparent:r,interactiveTransaction:n}){Ae(`sending request, this.libraryStarted: ${this.libraryStarted}`);let i=JSON.stringify({traceparent:r}),o=JSON.stringify(t);try{await this.start(),this.executingQueryPromise=this.engine?.query(o,i,n?.id),this.lastQuery=o;let s=this.parseEngineResponse(await this.executingQueryPromise);if(s.errors)throw s.errors.length===1?this.buildQueryError(s.errors[0]):new B(JSON.stringify(s.errors),{clientVersion:this.config.clientVersion});if(this.loggerRustPanic)throw this.loggerRustPanic;return{data:s,elapsed:0}}catch(s){if(s instanceof R)throw s;if(s.code==="GenericFailure"&&s.message?.startsWith("PANIC:"))throw new le(no(this,s.message),this.config.clientVersion);let a=this.parseRequestError(s.message);throw typeof a=="string"?s:new B(`${a.message}
112
112
  ${a.backtrace}`,{clientVersion:this.config.clientVersion})}}async requestBatch(t,{transaction:r,traceparent:n}){Ae("requestBatch");let i=wt(t,r);await this.start(),this.lastQuery=JSON.stringify(i),this.executingQueryPromise=this.engine.query(this.lastQuery,JSON.stringify({traceparent:n}),Ha(r));let o=await this.executingQueryPromise,s=this.parseEngineResponse(o);if(s.errors)throw s.errors.length===1?this.buildQueryError(s.errors[0]):new B(JSON.stringify(s.errors),{clientVersion:this.config.clientVersion});let{batchResult:a,errors:l}=s;if(Array.isArray(a))return a.map(u=>u.errors&&u.errors.length>0?this.loggerRustPanic??this.buildQueryError(u.errors[0]):{data:u,elapsed:0});throw l&&l.length===1?new Error(l[0].error):new Error(JSON.stringify(s))}buildQueryError(t){if(t.user_facing_error.is_panic)return new le(no(this,t.user_facing_error.message),this.config.clientVersion);let r=this.getExternalAdapterError(t.user_facing_error);return r?r.error:st(t,this.config.clientVersion,this.config.activeProvider)}getExternalAdapterError(t){if(t.error_code===Od&&this.config.adapter){let r=t.meta?.id;Kr(typeof r=="number","Malformed external JS error received from the engine");let n=this.config.adapter.errorRegistry.consumeError(r);return Kr(n,"External error with reported id was not registered"),n}}async metrics(t){await this.start();let r=await this.engine.metrics(JSON.stringify(t));return t.format==="prometheus"?r:this.parseEngineResponse(r)}};function _d(e){return typeof e=="object"&&e!==null&&e.error_code!==void 0}function no(e,t){return qa({binaryTarget:e.binaryTarget,title:t,version:e.config.clientVersion,engineVersion:e.versionInfo?.commit,database:e.config.activeProvider,query:e.lastQuery})}function Xa({copyEngine:e=!0},t){let r;try{r=_t({inlineDatasources:t.inlineDatasources,overrideDatasources:t.overrideDatasources,env:{...t.env,...process.env},clientVersion:t.clientVersion})}catch{}let n=!!(r?.startsWith("prisma://")||r?.startsWith("prisma+postgres://"));e&&n&&Xt("recommend--no-engine","In production, we recommend using `prisma generate --no-engine` (See: `prisma generate --help`)");let i=Kt(t.generator),o=n||!e,s=!!t.adapter,a=i==="library",l=i==="binary";if(o&&s||s&&!1){let u;throw e?r?.startsWith("prisma://")?u=["Prisma Client was configured to use the `adapter` option but the URL was a `prisma://` URL.","Please either use the `prisma://` URL or remove the `adapter` from the Prisma Client constructor."]:u=["Prisma Client was configured to use both the `adapter` and Accelerate, please chose one."]:u=["Prisma Client was configured to use the `adapter` option but `prisma generate` was run with `--no-engine`.","Please run `prisma generate` without `--no-engine` to be able to use Prisma Client with the adapter."],new J(u.join(`
@@ -118,7 +118,7 @@ Example:
118
118
  await prisma.$executeRawUnsafe(\`ALTER USER prisma WITH PASSWORD '\${password}'\`)
119
119
 
120
120
  More Information: https://pris.ly/d/execute-raw
121
- `)}var lo=({clientMethod:e,activeProvider:t})=>r=>{let n="",i;if(Es(r))n=r.sql,i={values:$t(r.values),__prismaRawParameters__:!0};else if(Array.isArray(r)){let[o,...s]=r;n=o,i={values:$t(s||[]),__prismaRawParameters__:!0}}else switch(t){case"sqlite":case"mysql":{n=r.sql,i={values:$t(r.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{n=r.text,i={values:$t(r.values),__prismaRawParameters__:!0};break}case"sqlserver":{n=hl(r),i={values:$t(r.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${t} provider does not support ${e}`)}return i?.values?Pl(`prisma.${e}(${n}, ${i.values})`):Pl(`prisma.${e}(${n})`),{query:n,parameters:i}},vl={requestArgsToMiddlewareArgs(e){return[e.strings,...e.values]},middlewareArgsToRequestArgs(e){let[t,...r]=e;return new ie(t,r)}},Tl={requestArgsToMiddlewareArgs(e){return[e]},middlewareArgsToRequestArgs(e){return e[0]}};function uo(e){return function(r){let n,i=(o=e)=>{try{return o===void 0||o?.kind==="itx"?n??=Rl(r(o)):Rl(r(o))}catch(s){return Promise.reject(s)}};return{then(o,s){return i().then(o,s)},catch(o){return i().catch(o)},finally(o){return i().finally(o)},requestTransaction(o){let s=i(o);return s.requestTransaction?s.requestTransaction(o):s},[Symbol.toStringTag]:"PrismaPromise"}}}function Rl(e){return typeof e.then=="function"?e:Promise.resolve(e)}var Cl={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},async createEngineSpan(){},getActiveContext(){},runInChildSpan(e,t){return t()}},co=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(t){return this.getGlobalTracingHelper().getTraceParent(t)}createEngineSpan(t){return this.getGlobalTracingHelper().createEngineSpan(t)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(t,r){return this.getGlobalTracingHelper().runInChildSpan(t,r)}getGlobalTracingHelper(){return globalThis.PRISMA_INSTRUMENTATION?.helper??Cl}};function Sl(e){return e.includes("tracing")?new co:Cl}function Al(e,t=()=>{}){let r,n=new Promise(i=>r=i);return{then(i){return--e===0&&r(t()),i?.(n)}}}function Il(e){return typeof e=="string"?e:e.reduce((t,r)=>{let n=typeof r=="string"?r:r.level;return n==="query"?t:t&&(r==="info"||t==="info")?"info":n},void 0)}var _n=class{constructor(){this._middlewares=[]}use(t){this._middlewares.push(t)}get(t){return this._middlewares[t]}has(t){return!!this._middlewares[t]}length(){return this._middlewares.length}};var Dl=k(yi());function Fn(e){return typeof e.batchRequestIdx=="number"}function Ln(e){return e===null?e:Array.isArray(e)?e.map(Ln):typeof e=="object"?hm(e)?ym(e):yt(e,Ln):e}function hm(e){return e!==null&&typeof e=="object"&&typeof e.$type=="string"}function ym({$type:e,value:t}){switch(e){case"BigInt":return BigInt(t);case"Bytes":return Buffer.from(t,"base64");case"DateTime":return new Date(t);case"Decimal":return new Re(t);case"Json":return JSON.parse(t);default:Fe(t,"Unknown tagged value")}}function Ol(e){if(e.action!=="findUnique"&&e.action!=="findUniqueOrThrow")return;let t=[];return e.modelName&&t.push(e.modelName),e.query.arguments&&t.push(po(e.query.arguments)),t.push(po(e.query.selection)),t.join("")}function po(e){return`(${Object.keys(e).sort().map(r=>{let n=e[r];return typeof n=="object"&&n!==null?`(${r} ${po(n)})`:r}).join(" ")})`}var bm={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,updateOne:!0,upsertOne:!0};function mo(e){return bm[e]}var Nn=class{constructor(t){this.options=t;this.tickActive=!1;this.batches={}}request(t){let r=this.options.batchBy(t);return r?(this.batches[r]||(this.batches[r]=[],this.tickActive||(this.tickActive=!0,process.nextTick(()=>{this.dispatchBatches(),this.tickActive=!1}))),new Promise((n,i)=>{this.batches[r].push({request:t,resolve:n,reject:i})})):this.options.singleLoader(t)}dispatchBatches(){for(let t in this.batches){let r=this.batches[t];delete this.batches[t],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"}};function pt(e,t){if(t===null)return t;switch(e){case"bigint":return BigInt(t);case"bytes":return Buffer.from(t,"base64");case"decimal":return new Re(t);case"datetime":case"date":return new Date(t);case"time":return new Date(`1970-01-01T${t}Z`);case"bigint-array":return t.map(r=>pt("bigint",r));case"bytes-array":return t.map(r=>pt("bytes",r));case"decimal-array":return t.map(r=>pt("decimal",r));case"datetime-array":return t.map(r=>pt("datetime",r));case"date-array":return t.map(r=>pt("date",r));case"time-array":return t.map(r=>pt("time",r));default:return t}}function kl(e){let t=[],r=Em(e);for(let n=0;n<e.rows.length;n++){let i=e.rows[n],o={...r};for(let s=0;s<i.length;s++)o[e.columns[s]]=pt(e.types[s],i[s]);t.push(o)}return t}function Em(e){let t={};for(let r=0;r<e.columns.length;r++)t[e.columns[r]]=null;return t}var wm=L("prisma:client:request_handler"),Mn=class{constructor(t,r){this.logEmitter=r,this.client=t,this.dataloader=new Nn({batchLoader:ha(async({requests:n,customDataProxyFetch:i})=>{let{transaction:o,otelParentCtx:s}=n[0],a=n.map(p=>p.protocolQuery),l=this.client._tracingHelper.getTraceParent(s),u=n.some(p=>mo(p.protocolQuery.action));return(await this.client._engine.requestBatch(a,{traceparent:l,transaction:xm(o),containsWrite:u,customDataProxyFetch:i})).map((p,d)=>{if(p instanceof Error)return p;try{return this.mapQueryEngineResult(n[d],p)}catch(f){return f}})}),singleLoader:async n=>{let i=n.transaction?.kind==="itx"?_l(n.transaction):void 0,o=await this.client._engine.request(n.protocolQuery,{traceparent:this.client._tracingHelper.getTraceParent(),interactiveTransaction:i,isWrite:mo(n.protocolQuery.action),customDataProxyFetch:n.customDataProxyFetch});return this.mapQueryEngineResult(n,o)},batchBy:n=>n.transaction?.id?`transaction-${n.transaction.id}`:Ol(n.protocolQuery),batchOrder(n,i){return n.transaction?.kind==="batch"&&i.transaction?.kind==="batch"?n.transaction.index-i.transaction.index:0}})}async request(t){try{return await this.dataloader.request(t)}catch(r){let{clientMethod:n,callsite:i,transaction:o,args:s,modelName:a}=t;this.handleAndLogRequestError({error:r,clientMethod:n,callsite:i,transaction:o,args:s,modelName:a,globalOmit:t.globalOmit})}}mapQueryEngineResult({dataPath:t,unpacker:r},n){let i=n?.data,o=n?.elapsed,s=this.unpack(i,t,r);return process.env.PRISMA_CLIENT_GET_TIME?{data:s,elapsed:o}:s}handleAndLogRequestError(t){try{this.handleRequestError(t)}catch(r){throw this.logEmitter&&this.logEmitter.emit("error",{message:r.message,target:t.clientMethod,timestamp:new Date}),r}}handleRequestError({error:t,clientMethod:r,callsite:n,transaction:i,args:o,modelName:s,globalOmit:a}){if(wm(t),Pm(t,i)||t instanceof Le)throw t;if(t instanceof V&&vm(t)){let u=Fl(t.meta);Dn({args:o,errors:[u],callsite:n,errorFormat:this.client._errorFormat,originalMethod:r,clientVersion:this.client._clientVersion,globalOmit:a})}let l=t.message;if(n&&(l=Dt({callsite:n,originalMethod:r,isPanic:t.isPanic,showColors:this.client._errorFormat==="pretty",message:l})),l=this.sanitizeMessage(l),t.code){let u=s?{modelName:s,...t.meta}:t.meta;throw new V(l,{code:t.code,clientVersion:this.client._clientVersion,meta:u,batchRequestIdx:t.batchRequestIdx})}else{if(t.isPanic)throw new le(l,this.client._clientVersion);if(t instanceof B)throw new B(l,{clientVersion:this.client._clientVersion,batchRequestIdx:t.batchRequestIdx});if(t instanceof R)throw new R(l,this.client._clientVersion);if(t instanceof le)throw new le(l,this.client._clientVersion)}throw t.clientVersion=this.client._clientVersion,t}sanitizeMessage(t){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,Dl.default)(t):t}unpack(t,r,n){if(!t||(t.data&&(t=t.data),!t))return t;let i=Object.keys(t)[0],o=Object.values(t)[0],s=r.filter(u=>u!=="select"&&u!=="include"),a=qi(o,s),l=i==="queryRaw"?kl(a):Ln(a);return n?n(l):l}get[Symbol.toStringTag](){return"RequestHandler"}};function xm(e){if(e){if(e.kind==="batch")return{kind:"batch",options:{isolationLevel:e.isolationLevel}};if(e.kind==="itx")return{kind:"itx",options:_l(e)};Fe(e,"Unknown transaction kind")}}function _l(e){return{id:e.id,payload:e.payload}}function Pm(e,t){return Fn(e)&&t?.kind==="batch"&&e.batchRequestIdx!==t.index}function vm(e){return e.code==="P2009"||e.code==="P2012"}function Fl(e){if(e.kind==="Union")return{kind:"Union",errors:e.errors.map(Fl)};if(Array.isArray(e.selectionPath)){let[,...t]=e.selectionPath;return{...e,selectionPath:t}}return e}var Ll="5.22.0-dev.1";var Nl=Ll;var Vl=k(io());var F=class extends Error{constructor(t){super(t+`
121
+ `)}var lo=({clientMethod:e,activeProvider:t})=>r=>{let n="",i;if(Es(r))n=r.sql,i={values:$t(r.values),__prismaRawParameters__:!0};else if(Array.isArray(r)){let[o,...s]=r;n=o,i={values:$t(s||[]),__prismaRawParameters__:!0}}else switch(t){case"sqlite":case"mysql":{n=r.sql,i={values:$t(r.values),__prismaRawParameters__:!0};break}case"cockroachdb":case"postgresql":case"postgres":{n=r.text,i={values:$t(r.values),__prismaRawParameters__:!0};break}case"sqlserver":{n=hl(r),i={values:$t(r.values),__prismaRawParameters__:!0};break}default:throw new Error(`The ${t} provider does not support ${e}`)}return i?.values?Pl(`prisma.${e}(${n}, ${i.values})`):Pl(`prisma.${e}(${n})`),{query:n,parameters:i}},vl={requestArgsToMiddlewareArgs(e){return[e.strings,...e.values]},middlewareArgsToRequestArgs(e){let[t,...r]=e;return new ie(t,r)}},Tl={requestArgsToMiddlewareArgs(e){return[e]},middlewareArgsToRequestArgs(e){return e[0]}};function uo(e){return function(r){let n,i=(o=e)=>{try{return o===void 0||o?.kind==="itx"?n??=Rl(r(o)):Rl(r(o))}catch(s){return Promise.reject(s)}};return{then(o,s){return i().then(o,s)},catch(o){return i().catch(o)},finally(o){return i().finally(o)},requestTransaction(o){let s=i(o);return s.requestTransaction?s.requestTransaction(o):s},[Symbol.toStringTag]:"PrismaPromise"}}}function Rl(e){return typeof e.then=="function"?e:Promise.resolve(e)}var Cl={isEnabled(){return!1},getTraceParent(){return"00-10-10-00"},async createEngineSpan(){},getActiveContext(){},runInChildSpan(e,t){return t()}},co=class{isEnabled(){return this.getGlobalTracingHelper().isEnabled()}getTraceParent(t){return this.getGlobalTracingHelper().getTraceParent(t)}createEngineSpan(t){return this.getGlobalTracingHelper().createEngineSpan(t)}getActiveContext(){return this.getGlobalTracingHelper().getActiveContext()}runInChildSpan(t,r){return this.getGlobalTracingHelper().runInChildSpan(t,r)}getGlobalTracingHelper(){return globalThis.PRISMA_INSTRUMENTATION?.helper??Cl}};function Sl(e){return e.includes("tracing")?new co:Cl}function Al(e,t=()=>{}){let r,n=new Promise(i=>r=i);return{then(i){return--e===0&&r(t()),i?.(n)}}}function Il(e){return typeof e=="string"?e:e.reduce((t,r)=>{let n=typeof r=="string"?r:r.level;return n==="query"?t:t&&(r==="info"||t==="info")?"info":n},void 0)}var _n=class{constructor(){this._middlewares=[]}use(t){this._middlewares.push(t)}get(t){return this._middlewares[t]}has(t){return!!this._middlewares[t]}length(){return this._middlewares.length}};var Dl=k(yi());function Fn(e){return typeof e.batchRequestIdx=="number"}function Ln(e){return e===null?e:Array.isArray(e)?e.map(Ln):typeof e=="object"?hm(e)?ym(e):yt(e,Ln):e}function hm(e){return e!==null&&typeof e=="object"&&typeof e.$type=="string"}function ym({$type:e,value:t}){switch(e){case"BigInt":return BigInt(t);case"Bytes":return Buffer.from(t,"base64");case"DateTime":return new Date(t);case"Decimal":return new Re(t);case"Json":return JSON.parse(t);default:Fe(t,"Unknown tagged value")}}function Ol(e){if(e.action!=="findUnique"&&e.action!=="findUniqueOrThrow")return;let t=[];return e.modelName&&t.push(e.modelName),e.query.arguments&&t.push(po(e.query.arguments)),t.push(po(e.query.selection)),t.join("")}function po(e){return`(${Object.keys(e).sort().map(r=>{let n=e[r];return typeof n=="object"&&n!==null?`(${r} ${po(n)})`:r}).join(" ")})`}var bm={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,updateOne:!0,upsertOne:!0};function mo(e){return bm[e]}var Nn=class{constructor(t){this.options=t;this.tickActive=!1;this.batches={}}request(t){let r=this.options.batchBy(t);return r?(this.batches[r]||(this.batches[r]=[],this.tickActive||(this.tickActive=!0,process.nextTick(()=>{this.dispatchBatches(),this.tickActive=!1}))),new Promise((n,i)=>{this.batches[r].push({request:t,resolve:n,reject:i})})):this.options.singleLoader(t)}dispatchBatches(){for(let t in this.batches){let r=this.batches[t];delete this.batches[t],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"}};function pt(e,t){if(t===null)return t;switch(e){case"bigint":return BigInt(t);case"bytes":return Buffer.from(t,"base64");case"decimal":return new Re(t);case"datetime":case"date":return new Date(t);case"time":return new Date(`1970-01-01T${t}Z`);case"bigint-array":return t.map(r=>pt("bigint",r));case"bytes-array":return t.map(r=>pt("bytes",r));case"decimal-array":return t.map(r=>pt("decimal",r));case"datetime-array":return t.map(r=>pt("datetime",r));case"date-array":return t.map(r=>pt("date",r));case"time-array":return t.map(r=>pt("time",r));default:return t}}function kl(e){let t=[],r=Em(e);for(let n=0;n<e.rows.length;n++){let i=e.rows[n],o={...r};for(let s=0;s<i.length;s++)o[e.columns[s]]=pt(e.types[s],i[s]);t.push(o)}return t}function Em(e){let t={};for(let r=0;r<e.columns.length;r++)t[e.columns[r]]=null;return t}var wm=L("prisma:client:request_handler"),Mn=class{constructor(t,r){this.logEmitter=r,this.client=t,this.dataloader=new Nn({batchLoader:ha(async({requests:n,customDataProxyFetch:i})=>{let{transaction:o,otelParentCtx:s}=n[0],a=n.map(p=>p.protocolQuery),l=this.client._tracingHelper.getTraceParent(s),u=n.some(p=>mo(p.protocolQuery.action));return(await this.client._engine.requestBatch(a,{traceparent:l,transaction:xm(o),containsWrite:u,customDataProxyFetch:i})).map((p,d)=>{if(p instanceof Error)return p;try{return this.mapQueryEngineResult(n[d],p)}catch(f){return f}})}),singleLoader:async n=>{let i=n.transaction?.kind==="itx"?_l(n.transaction):void 0,o=await this.client._engine.request(n.protocolQuery,{traceparent:this.client._tracingHelper.getTraceParent(),interactiveTransaction:i,isWrite:mo(n.protocolQuery.action),customDataProxyFetch:n.customDataProxyFetch});return this.mapQueryEngineResult(n,o)},batchBy:n=>n.transaction?.id?`transaction-${n.transaction.id}`:Ol(n.protocolQuery),batchOrder(n,i){return n.transaction?.kind==="batch"&&i.transaction?.kind==="batch"?n.transaction.index-i.transaction.index:0}})}async request(t){try{return await this.dataloader.request(t)}catch(r){let{clientMethod:n,callsite:i,transaction:o,args:s,modelName:a}=t;this.handleAndLogRequestError({error:r,clientMethod:n,callsite:i,transaction:o,args:s,modelName:a,globalOmit:t.globalOmit})}}mapQueryEngineResult({dataPath:t,unpacker:r},n){let i=n?.data,o=n?.elapsed,s=this.unpack(i,t,r);return process.env.PRISMA_CLIENT_GET_TIME?{data:s,elapsed:o}:s}handleAndLogRequestError(t){try{this.handleRequestError(t)}catch(r){throw this.logEmitter&&this.logEmitter.emit("error",{message:r.message,target:t.clientMethod,timestamp:new Date}),r}}handleRequestError({error:t,clientMethod:r,callsite:n,transaction:i,args:o,modelName:s,globalOmit:a}){if(wm(t),Pm(t,i)||t instanceof Le)throw t;if(t instanceof V&&vm(t)){let u=Fl(t.meta);Dn({args:o,errors:[u],callsite:n,errorFormat:this.client._errorFormat,originalMethod:r,clientVersion:this.client._clientVersion,globalOmit:a})}let l=t.message;if(n&&(l=Dt({callsite:n,originalMethod:r,isPanic:t.isPanic,showColors:this.client._errorFormat==="pretty",message:l})),l=this.sanitizeMessage(l),t.code){let u=s?{modelName:s,...t.meta}:t.meta;throw new V(l,{code:t.code,clientVersion:this.client._clientVersion,meta:u,batchRequestIdx:t.batchRequestIdx})}else{if(t.isPanic)throw new le(l,this.client._clientVersion);if(t instanceof B)throw new B(l,{clientVersion:this.client._clientVersion,batchRequestIdx:t.batchRequestIdx});if(t instanceof R)throw new R(l,this.client._clientVersion);if(t instanceof le)throw new le(l,this.client._clientVersion)}throw t.clientVersion=this.client._clientVersion,t}sanitizeMessage(t){return this.client._errorFormat&&this.client._errorFormat!=="pretty"?(0,Dl.default)(t):t}unpack(t,r,n){if(!t||(t.data&&(t=t.data),!t))return t;let i=Object.keys(t)[0],o=Object.values(t)[0],s=r.filter(u=>u!=="select"&&u!=="include"),a=qi(o,s),l=i==="queryRaw"?kl(a):Ln(a);return n?n(l):l}get[Symbol.toStringTag](){return"RequestHandler"}};function xm(e){if(e){if(e.kind==="batch")return{kind:"batch",options:{isolationLevel:e.isolationLevel}};if(e.kind==="itx")return{kind:"itx",options:_l(e)};Fe(e,"Unknown transaction kind")}}function _l(e){return{id:e.id,payload:e.payload}}function Pm(e,t){return Fn(e)&&t?.kind==="batch"&&e.batchRequestIdx!==t.index}function vm(e){return e.code==="P2009"||e.code==="P2012"}function Fl(e){if(e.kind==="Union")return{kind:"Union",errors:e.errors.map(Fl)};if(Array.isArray(e.selectionPath)){let[,...t]=e.selectionPath;return{...e,selectionPath:t}}return e}var Ll="5.22.0-dev.11";var Nl=Ll;var Vl=k(io());var F=class extends Error{constructor(t){super(t+`
122
122
  Read more at https://pris.ly/d/client-constructor`),this.name="PrismaClientConstructorValidationError"}get[Symbol.toStringTag](){return"PrismaClientConstructorValidationError"}};w(F,"PrismaClientConstructorValidationError");var Ml=["datasources","datasourceUrl","errorFormat","adapter","log","transactionOptions","omit","__internal"],$l=["pretty","colorless","minimal"],ql=["info","query","warn","error"],Rm={datasources:(e,{datasourceNames:t})=>{if(e){if(typeof e!="object"||Array.isArray(e))throw new F(`Invalid value ${JSON.stringify(e)} for "datasources" provided to PrismaClient constructor`);for(let[r,n]of Object.entries(e)){if(!t.includes(r)){let i=qt(r,t)||` Available datasources: ${t.join(", ")}`;throw new F(`Unknown datasource ${r} provided to PrismaClient constructor.${i}`)}if(typeof n!="object"||Array.isArray(n))throw new F(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor.
123
123
  It should have this form: { url: "CONNECTION_STRING" }`);if(n&&typeof n=="object")for(let[i,o]of Object.entries(n)){if(i!=="url")throw new F(`Invalid value ${JSON.stringify(e)} for datasource "${r}" provided to PrismaClient constructor.
124
124
  It should have this form: { url: "CONNECTION_STRING" }`);if(typeof o!="string")throw new F(`Invalid value ${JSON.stringify(o)} for datasource "${r}" provided to PrismaClient constructor.
@@ -1,2 +1,2 @@
1
- "use strict";var F=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var U=Object.prototype.hasOwnProperty;var D=(n,t)=>{for(var e in t)F(n,e,{get:t[e],enumerable:!0})},N=(n,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let _ of B(t))!U.call(n,_)&&_!==e&&F(n,_,{get:()=>t[_],enumerable:!(o=R(t,_))||o.enumerable});return n};var C=n=>N(F({},"__esModule",{value:!0}),n);var Et={};D(Et,{QueryEngine:()=>Z,__wbg_String_88810dfeb4021902:()=>Un,__wbg_buffer_344d9b41efe96da7:()=>Nn,__wbg_call_53fc3abd42e24ec8:()=>gt,__wbg_call_669127b9d730c650:()=>Zn,__wbg_crypto_58f13aa23ffcb166:()=>Wn,__wbg_done_bc26bf4ada718266:()=>rt,__wbg_entries_6d727b73ee02b7ce:()=>At,__wbg_getRandomValues_504510b5564925af:()=>Pn,__wbg_getTime_ed6ee333b702f8fc:()=>an,__wbg_get_2aff440840bb6202:()=>ct,__wbg_get_4a9aa5157afeb382:()=>nt,__wbg_get_94990005bd6ca07c:()=>Bn,__wbg_getwithrefkey_5e6d9547403deab8:()=>Mn,__wbg_globalThis_17eff828815f7d84:()=>st,__wbg_global_46f939f6541643c5:()=>ft,__wbg_has_cdf8b85f6e903c80:()=>un,__wbg_instanceof_ArrayBuffer_c7cc317e5c29cc0d:()=>Tt,__wbg_instanceof_Promise_cfbcc42300367513:()=>dn,__wbg_instanceof_Uint8Array_19e6f142a5e7e1e1:()=>ht,__wbg_isArray_38525be7442aa21e:()=>bt,__wbg_isSafeInteger_c38b0a16d0c7cef7:()=>lt,__wbg_iterator_7ee1a391d310f8e4:()=>pn,__wbg_length_a5587d6cd79ab197:()=>yt,__wbg_length_cace2e0b3ddc0502:()=>wn,__wbg_msCrypto_abcb1295e768d1f2:()=>Gn,__wbg_new0_ad75dd38f92424e2:()=>fn,__wbg_new_08236689f0afb357:()=>On,__wbg_new_1b94180eeb48f2a2:()=>Fn,__wbg_new_c728d68b8b34487e:()=>In,__wbg_new_d8a000788389a31e:()=>Ln,__wbg_new_feb65b865d980ae2:()=>en,__wbg_newnoargs_ccdcae30fd002262:()=>at,__wbg_newwithbyteoffsetandlength_2dc04d99088b15e3:()=>Cn,__wbg_newwithlength_13b5319ab422dcf6:()=>Kn,__wbg_next_15da6a3df9290720:()=>_t,__wbg_next_1989a20442400aaa:()=>et,__wbg_node_523d7bd03ef69fba:()=>Qn,__wbg_now_28a6b413aca4a96a:()=>xt,__wbg_now_4579335d3581594c:()=>gn,__wbg_now_8ed1a4454e40ecd1:()=>bn,__wbg_parse_3f0cb48976ca4123:()=>sn,__wbg_process_5b786e71d465a513:()=>Jn,__wbg_push_fd3233d09cf81821:()=>Rn,__wbg_randomFillSync_a0d98aa11c81fe89:()=>$n,__wbg_require_2784e593a4674877:()=>Hn,__wbg_resolve_a3252b2860f0a09e:()=>kt,__wbg_self_3fad056edded10bd:()=>it,__wbg_setTimeout_631fe61f31fa2fad:()=>rn,__wbg_set_0ac78a2bc07da03c:()=>qn,__wbg_set_3355b9f2d3092e3b:()=>kn,__wbg_set_40f7786a25a9cc7e:()=>dt,__wbg_set_841ac57cff3d672b:()=>En,__wbg_set_dcfd613a3420f908:()=>pt,__wbg_set_wasm:()=>L,__wbg_stringify_4039297315a25b00:()=>wt,__wbg_subarray_6ca5cfa7fbb9abbe:()=>zn,__wbg_then_1bbc9edafd859b06:()=>It,__wbg_then_89e1c559530b85cf:()=>Ft,__wbg_valueOf_ff4b62641803432a:()=>tt,__wbg_value_0570714ff7d75f35:()=>ot,__wbg_versions_c2ab80650590b6a2:()=>Vn,__wbg_window_a4f46c98a61d4089:()=>ut,__wbindgen_bigint_from_i64:()=>hn,__wbindgen_bigint_from_u64:()=>An,__wbindgen_bigint_get_as_i64:()=>St,__wbindgen_boolean_get:()=>yn,__wbindgen_cb_drop:()=>qt,__wbindgen_closure_wrapper7129:()=>vt,__wbindgen_debug_string:()=>jt,__wbindgen_error_new:()=>tn,__wbindgen_in:()=>Tn,__wbindgen_is_bigint:()=>xn,__wbindgen_is_function:()=>Xn,__wbindgen_is_object:()=>ln,__wbindgen_is_string:()=>vn,__wbindgen_is_undefined:()=>cn,__wbindgen_jsval_eq:()=>Sn,__wbindgen_jsval_loose_eq:()=>mt,__wbindgen_memory:()=>Dn,__wbindgen_number_get:()=>mn,__wbindgen_number_new:()=>jn,__wbindgen_object_clone_ref:()=>_n,__wbindgen_object_drop_ref:()=>Yn,__wbindgen_string_get:()=>nn,__wbindgen_string_new:()=>on,__wbindgen_throw:()=>Ot,debug_panic:()=>K,getBuildTimeInfo:()=>G});module.exports=C(Et);var h=()=>{};h.prototype=h;let c;function L(n){c=n}const w=new Array(128).fill(void 0);w.push(void 0,null,!0,!1);function r(n){return w[n]}let a=0,T=null;function A(){return(T===null||T.byteLength===0)&&(T=new Uint8Array(c.memory.buffer)),T}const $=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let S=new $("utf-8");const z=typeof S.encodeInto=="function"?function(n,t){return S.encodeInto(n,t)}:function(n,t){const e=S.encode(n);return t.set(e),{read:n.length,written:e.length}};function l(n,t,e){if(e===void 0){const s=S.encode(n),p=t(s.length,1)>>>0;return A().subarray(p,p+s.length).set(s),a=s.length,p}let o=n.length,_=t(o,1)>>>0;const f=A();let u=0;for(;u<o;u++){const s=n.charCodeAt(u);if(s>127)break;f[_+u]=s}if(u!==o){u!==0&&(n=n.slice(u)),_=e(_,o,o=u+n.length*3,1)>>>0;const s=A().subarray(_+u,_+o),p=z(n,s);u+=p.written,_=e(_,o,u,1)>>>0}return a=u,_}function y(n){return n==null}let j=null;function d(){return(j===null||j.byteLength===0)&&(j=new Int32Array(c.memory.buffer)),j}const P=typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder;let k=new P("utf-8",{ignoreBOM:!0,fatal:!0});k.decode();function x(n,t){return n=n>>>0,k.decode(A().subarray(n,n+t))}let m=w.length;function i(n){m===w.length&&w.push(w.length+1);const t=m;return m=w[t],w[t]=n,t}let O=null;function W(){return(O===null||O.byteLength===0)&&(O=new Float64Array(c.memory.buffer)),O}function J(n){n<132||(w[n]=m,m=n)}function b(n){const t=r(n);return J(n),t}let q=null;function V(){return(q===null||q.byteLength===0)&&(q=new BigInt64Array(c.memory.buffer)),q}function I(n){const t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){const _=n.description;return _==null?"Symbol":`Symbol(${_})`}if(t=="function"){const _=n.name;return typeof _=="string"&&_.length>0?`Function(${_})`:"Function"}if(Array.isArray(n)){const _=n.length;let f="[";_>0&&(f+=I(n[0]));for(let u=1;u<_;u++)f+=", "+I(n[u]);return f+="]",f}const e=/\[object ([^\]]+)\]/.exec(toString.call(n));let o;if(e.length>1)o=e[1];else return toString.call(n);if(o=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
2
- ${n.stack}`:o}const v=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>{c.__wbindgen_export_2.get(n.dtor)(n.a,n.b)});function Q(n,t,e,o){const _={a:n,b:t,cnt:1,dtor:e},f=(...u)=>{_.cnt++;const s=_.a;_.a=0;try{return o(s,_.b,...u)}finally{--_.cnt===0?(c.__wbindgen_export_2.get(_.dtor)(s,_.b),v.unregister(_)):_.a=s}};return f.original=_,v.register(f,_,_),f}function H(n,t,e){c._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1d1ce90a2538b281(n,t,i(e))}function G(){const n=c.getBuildTimeInfo();return b(n)}function K(n){try{const f=c.__wbindgen_add_to_stack_pointer(-16);var t=y(n)?0:l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),e=a;c.debug_panic(f,t,e);var o=d()[f/4+0],_=d()[f/4+1];if(_)throw b(o)}finally{c.__wbindgen_add_to_stack_pointer(16)}}function g(n,t){try{return n.apply(this,t)}catch(e){c.__wbindgen_exn_store(i(e))}}function X(n,t,e,o){c.wasm_bindgen__convert__closures__invoke2_mut__h46a92896c95d64ae(n,t,i(e),i(o))}const Y=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>c.__wbg_queryengine_free(n>>>0));class Z{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),t}free(){const t=this.__destroy_into_raw();c.__wbg_queryengine_free(t)}constructor(t,e,o){try{const s=c.__wbindgen_add_to_stack_pointer(-16);c.queryengine_new(s,i(t),i(e),i(o));var _=d()[s/4+0],f=d()[s/4+1],u=d()[s/4+2];if(u)throw b(f);return this.__wbg_ptr=_>>>0,this}finally{c.__wbindgen_add_to_stack_pointer(16)}}connect(t){const e=l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,_=c.queryengine_connect(this.__wbg_ptr,e,o);return b(_)}disconnect(t){const e=l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,_=c.queryengine_disconnect(this.__wbg_ptr,e,o);return b(_)}query(t,e,o){const _=l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a,u=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),s=a;var p=y(o)?0:l(o,c.__wbindgen_malloc,c.__wbindgen_realloc),E=a;const M=c.queryengine_query(this.__wbg_ptr,_,f,u,s,p,E);return b(M)}startTransaction(t,e){const o=l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,f=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_startTransaction(this.__wbg_ptr,o,_,f,u);return b(s)}commitTransaction(t,e){const o=l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,f=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_commitTransaction(this.__wbg_ptr,o,_,f,u);return b(s)}rollbackTransaction(t,e){const o=l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,f=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_rollbackTransaction(this.__wbg_ptr,o,_,f,u);return b(s)}metrics(t){const e=l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,_=c.queryengine_metrics(this.__wbg_ptr,e,o);return b(_)}}function nn(n,t){const e=r(t),o=typeof e=="string"?e:void 0;var _=y(o)?0:l(o,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a;d()[n/4+1]=f,d()[n/4+0]=_}function tn(n,t){const e=new Error(x(n,t));return i(e)}function en(n,t){try{var e={a:n,b:t},o=(f,u)=>{const s=e.a;e.a=0;try{return X(s,e.b,f,u)}finally{e.a=s}};const _=new Promise(o);return i(_)}finally{e.a=e.b=0}}function rn(n,t){return setTimeout(r(n),t>>>0)}function on(n,t){const e=x(n,t);return i(e)}function _n(n){const t=r(n);return i(t)}function cn(n){return r(n)===void 0}function un(){return g(function(n,t){return Reflect.has(r(n),r(t))},arguments)}function sn(){return g(function(n,t){const e=JSON.parse(x(n,t));return i(e)},arguments)}function fn(){return i(new Date)}function an(n){return r(n).getTime()}function bn(n){return r(n).now()}function gn(){return Date.now()}function ln(n){const t=r(n);return typeof t=="object"&&t!==null}function dn(n){let t;try{t=r(n)instanceof Promise}catch{t=!1}return t}function wn(n){return r(n).length}function pn(){return i(Symbol.iterator)}function yn(n){const t=r(n);return typeof t=="boolean"?t?1:0:2}function xn(n){return typeof r(n)=="bigint"}function mn(n,t){const e=r(t),o=typeof e=="number"?e:void 0;W()[n/8+1]=y(o)?0:o,d()[n/4+0]=!y(o)}function hn(n){return i(n)}function Tn(n,t){return r(n)in r(t)}function An(n){const t=BigInt.asUintN(64,n);return i(t)}function Sn(n,t){return r(n)===r(t)}function jn(n){return i(n)}function On(){const n=new Array;return i(n)}function qn(n,t,e){r(n)[t>>>0]=b(e)}function Fn(){return i(new Map)}function In(){const n=new Object;return i(n)}function kn(n,t,e){const o=r(n).set(r(t),r(e));return i(o)}function vn(n){return typeof r(n)=="string"}function En(n,t,e){r(n)[b(t)]=b(e)}function Mn(n,t){const e=r(n)[r(t)];return i(e)}function Rn(n,t){return r(n).push(r(t))}function Bn(){return g(function(n,t){const e=r(n)[b(t)];return i(e)},arguments)}function Un(n,t){const e=String(r(t)),o=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a;d()[n/4+1]=_,d()[n/4+0]=o}function Dn(){const n=c.memory;return i(n)}function Nn(n){const t=r(n).buffer;return i(t)}function Cn(n,t,e){const o=new Uint8Array(r(n),t>>>0,e>>>0);return i(o)}function Ln(n){const t=new Uint8Array(r(n));return i(t)}function $n(){return g(function(n,t){r(n).randomFillSync(b(t))},arguments)}function zn(n,t,e){const o=r(n).subarray(t>>>0,e>>>0);return i(o)}function Pn(){return g(function(n,t){r(n).getRandomValues(r(t))},arguments)}function Wn(n){const t=r(n).crypto;return i(t)}function Jn(n){const t=r(n).process;return i(t)}function Vn(n){const t=r(n).versions;return i(t)}function Qn(n){const t=r(n).node;return i(t)}function Hn(){return g(function(){const n=module.require;return i(n)},arguments)}function Gn(n){const t=r(n).msCrypto;return i(t)}function Kn(n){const t=new Uint8Array(n>>>0);return i(t)}function Xn(n){return typeof r(n)=="function"}function Yn(n){b(n)}function Zn(){return g(function(n,t){const e=r(n).call(r(t));return i(e)},arguments)}function nt(n,t){const e=r(n)[t>>>0];return i(e)}function tt(n){return r(n).valueOf()}function et(){return g(function(n){const t=r(n).next();return i(t)},arguments)}function rt(n){return r(n).done}function ot(n){const t=r(n).value;return i(t)}function _t(n){const t=r(n).next;return i(t)}function ct(){return g(function(n,t){const e=Reflect.get(r(n),r(t));return i(e)},arguments)}function it(){return g(function(){const n=self.self;return i(n)},arguments)}function ut(){return g(function(){const n=window.window;return i(n)},arguments)}function st(){return g(function(){const n=globalThis.globalThis;return i(n)},arguments)}function ft(){return g(function(){const n=global.global;return i(n)},arguments)}function at(n,t){const e=new h(x(n,t));return i(e)}function bt(n){return Array.isArray(r(n))}function gt(){return g(function(n,t,e){const o=r(n).call(r(t),r(e));return i(o)},arguments)}function lt(n){return Number.isSafeInteger(r(n))}function dt(){return g(function(n,t,e){return Reflect.set(r(n),r(t),r(e))},arguments)}function wt(){return g(function(n){const t=JSON.stringify(r(n));return i(t)},arguments)}function pt(n,t,e){r(n).set(r(t),e>>>0)}function yt(n){return r(n).length}function xt(){return g(function(){return Date.now()},arguments)}function mt(n,t){return r(n)==r(t)}function ht(n){let t;try{t=r(n)instanceof Uint8Array}catch{t=!1}return t}function Tt(n){let t;try{t=r(n)instanceof ArrayBuffer}catch{t=!1}return t}function At(n){const t=Object.entries(r(n));return i(t)}function St(n,t){const e=r(t),o=typeof e=="bigint"?e:void 0;V()[n/8+1]=y(o)?BigInt(0):o,d()[n/4+0]=!y(o)}function jt(n,t){const e=I(r(t)),o=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a;d()[n/4+1]=_,d()[n/4+0]=o}function Ot(n,t){throw new Error(x(n,t))}function qt(n){const t=b(n).original;return t.cnt--==1?(t.a=0,!0):!1}function Ft(n,t){const e=r(n).then(r(t));return i(e)}function It(n,t,e){const o=r(n).then(r(t),r(e));return i(o)}function kt(n){const t=Promise.resolve(r(n));return i(t)}function vt(n,t,e){const o=Q(n,t,325,H);return i(o)}0&&(module.exports={QueryEngine,__wbg_String_88810dfeb4021902,__wbg_buffer_344d9b41efe96da7,__wbg_call_53fc3abd42e24ec8,__wbg_call_669127b9d730c650,__wbg_crypto_58f13aa23ffcb166,__wbg_done_bc26bf4ada718266,__wbg_entries_6d727b73ee02b7ce,__wbg_getRandomValues_504510b5564925af,__wbg_getTime_ed6ee333b702f8fc,__wbg_get_2aff440840bb6202,__wbg_get_4a9aa5157afeb382,__wbg_get_94990005bd6ca07c,__wbg_getwithrefkey_5e6d9547403deab8,__wbg_globalThis_17eff828815f7d84,__wbg_global_46f939f6541643c5,__wbg_has_cdf8b85f6e903c80,__wbg_instanceof_ArrayBuffer_c7cc317e5c29cc0d,__wbg_instanceof_Promise_cfbcc42300367513,__wbg_instanceof_Uint8Array_19e6f142a5e7e1e1,__wbg_isArray_38525be7442aa21e,__wbg_isSafeInteger_c38b0a16d0c7cef7,__wbg_iterator_7ee1a391d310f8e4,__wbg_length_a5587d6cd79ab197,__wbg_length_cace2e0b3ddc0502,__wbg_msCrypto_abcb1295e768d1f2,__wbg_new0_ad75dd38f92424e2,__wbg_new_08236689f0afb357,__wbg_new_1b94180eeb48f2a2,__wbg_new_c728d68b8b34487e,__wbg_new_d8a000788389a31e,__wbg_new_feb65b865d980ae2,__wbg_newnoargs_ccdcae30fd002262,__wbg_newwithbyteoffsetandlength_2dc04d99088b15e3,__wbg_newwithlength_13b5319ab422dcf6,__wbg_next_15da6a3df9290720,__wbg_next_1989a20442400aaa,__wbg_node_523d7bd03ef69fba,__wbg_now_28a6b413aca4a96a,__wbg_now_4579335d3581594c,__wbg_now_8ed1a4454e40ecd1,__wbg_parse_3f0cb48976ca4123,__wbg_process_5b786e71d465a513,__wbg_push_fd3233d09cf81821,__wbg_randomFillSync_a0d98aa11c81fe89,__wbg_require_2784e593a4674877,__wbg_resolve_a3252b2860f0a09e,__wbg_self_3fad056edded10bd,__wbg_setTimeout_631fe61f31fa2fad,__wbg_set_0ac78a2bc07da03c,__wbg_set_3355b9f2d3092e3b,__wbg_set_40f7786a25a9cc7e,__wbg_set_841ac57cff3d672b,__wbg_set_dcfd613a3420f908,__wbg_set_wasm,__wbg_stringify_4039297315a25b00,__wbg_subarray_6ca5cfa7fbb9abbe,__wbg_then_1bbc9edafd859b06,__wbg_then_89e1c559530b85cf,__wbg_valueOf_ff4b62641803432a,__wbg_value_0570714ff7d75f35,__wbg_versions_c2ab80650590b6a2,__wbg_window_a4f46c98a61d4089,__wbindgen_bigint_from_i64,__wbindgen_bigint_from_u64,__wbindgen_bigint_get_as_i64,__wbindgen_boolean_get,__wbindgen_cb_drop,__wbindgen_closure_wrapper7129,__wbindgen_debug_string,__wbindgen_error_new,__wbindgen_in,__wbindgen_is_bigint,__wbindgen_is_function,__wbindgen_is_object,__wbindgen_is_string,__wbindgen_is_undefined,__wbindgen_jsval_eq,__wbindgen_jsval_loose_eq,__wbindgen_memory,__wbindgen_number_get,__wbindgen_number_new,__wbindgen_object_clone_ref,__wbindgen_object_drop_ref,__wbindgen_string_get,__wbindgen_string_new,__wbindgen_throw,debug_panic,getBuildTimeInfo});
1
+ "use strict";var j=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var U=(t,e)=>{for(var n in e)j(t,n,{get:e[n],enumerable:!0})},B=(t,e,n,_)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of D(e))!M.call(t,o)&&o!==n&&j(t,o,{get:()=>e[o],enumerable:!(_=R(e,o))||_.enumerable});return t};var N=t=>B(j({},"__esModule",{value:!0}),t);var Oe={};U(Oe,{QueryEngine:()=>G,__wbg_String_88810dfeb4021902:()=>Ft,__wbg_buffer_344d9b41efe96da7:()=>Dt,__wbg_call_53fc3abd42e24ec8:()=>ue,__wbg_call_669127b9d730c650:()=>Ht,__wbg_crypto_58f13aa23ffcb166:()=>$t,__wbg_done_bc26bf4ada718266:()=>Yt,__wbg_entries_6d727b73ee02b7ce:()=>xe,__wbg_getRandomValues_504510b5564925af:()=>Nt,__wbg_getTime_ed6ee333b702f8fc:()=>it,__wbg_get_2aff440840bb6202:()=>ee,__wbg_get_4a9aa5157afeb382:()=>Gt,__wbg_get_94990005bd6ca07c:()=>Et,__wbg_getwithrefkey_5e6d9547403deab8:()=>kt,__wbg_globalThis_17eff828815f7d84:()=>_e,__wbg_global_46f939f6541643c5:()=>oe,__wbg_has_cdf8b85f6e903c80:()=>_t,__wbg_instanceof_ArrayBuffer_c7cc317e5c29cc0d:()=>pe,__wbg_instanceof_Promise_cfbcc42300367513:()=>ft,__wbg_instanceof_Uint8Array_19e6f142a5e7e1e1:()=>we,__wbg_isArray_38525be7442aa21e:()=>ie,__wbg_isSafeInteger_c38b0a16d0c7cef7:()=>se,__wbg_iterator_7ee1a391d310f8e4:()=>gt,__wbg_length_a5587d6cd79ab197:()=>ge,__wbg_length_cace2e0b3ddc0502:()=>bt,__wbg_msCrypto_abcb1295e768d1f2:()=>Wt,__wbg_new0_ad75dd38f92424e2:()=>ct,__wbg_new_08236689f0afb357:()=>Tt,__wbg_new_1b94180eeb48f2a2:()=>St,__wbg_new_c728d68b8b34487e:()=>At,__wbg_new_d8a000788389a31e:()=>Ut,__wbg_new_feb65b865d980ae2:()=>Y,__wbg_newnoargs_ccdcae30fd002262:()=>ce,__wbg_newwithbyteoffsetandlength_2dc04d99088b15e3:()=>Mt,__wbg_newwithlength_13b5319ab422dcf6:()=>Jt,__wbg_next_15da6a3df9290720:()=>te,__wbg_next_1989a20442400aaa:()=>Xt,__wbg_node_523d7bd03ef69fba:()=>Lt,__wbg_now_28a6b413aca4a96a:()=>de,__wbg_now_4579335d3581594c:()=>st,__wbg_now_8ed1a4454e40ecd1:()=>ut,__wbg_parse_3f0cb48976ca4123:()=>ot,__wbg_process_5b786e71d465a513:()=>Vt,__wbg_push_fd3233d09cf81821:()=>vt,__wbg_randomFillSync_a0d98aa11c81fe89:()=>Ct,__wbg_require_2784e593a4674877:()=>Pt,__wbg_resolve_a3252b2860f0a09e:()=>Ae,__wbg_self_3fad056edded10bd:()=>ne,__wbg_setTimeout_631fe61f31fa2fad:()=>Z,__wbg_set_0ac78a2bc07da03c:()=>It,__wbg_set_3355b9f2d3092e3b:()=>jt,__wbg_set_40f7786a25a9cc7e:()=>fe,__wbg_set_841ac57cff3d672b:()=>qt,__wbg_set_dcfd613a3420f908:()=>be,__wbg_set_wasm:()=>C,__wbg_stringify_4039297315a25b00:()=>ae,__wbg_subarray_6ca5cfa7fbb9abbe:()=>Bt,__wbg_then_1bbc9edafd859b06:()=>Se,__wbg_then_89e1c559530b85cf:()=>Ie,__wbg_valueOf_ff4b62641803432a:()=>Kt,__wbg_value_0570714ff7d75f35:()=>Zt,__wbg_versions_c2ab80650590b6a2:()=>zt,__wbg_window_a4f46c98a61d4089:()=>re,__wbindgen_bigint_from_i64:()=>pt,__wbindgen_bigint_from_u64:()=>yt,__wbindgen_bigint_get_as_i64:()=>me,__wbindgen_boolean_get:()=>dt,__wbindgen_cb_drop:()=>Te,__wbindgen_closure_wrapper7034:()=>je,__wbindgen_debug_string:()=>he,__wbindgen_error_new:()=>X,__wbindgen_in:()=>xt,__wbindgen_is_bigint:()=>lt,__wbindgen_is_function:()=>Qt,__wbindgen_is_object:()=>at,__wbindgen_is_string:()=>Ot,__wbindgen_is_undefined:()=>rt,__wbindgen_jsval_eq:()=>mt,__wbindgen_jsval_loose_eq:()=>le,__wbindgen_memory:()=>Rt,__wbindgen_number_get:()=>wt,__wbindgen_number_new:()=>ht,__wbindgen_object_clone_ref:()=>nt,__wbindgen_object_drop_ref:()=>tt,__wbindgen_string_get:()=>K,__wbindgen_string_new:()=>et,__wbindgen_throw:()=>ye,debug_panic:()=>Q,getBuildTimeInfo:()=>J});module.exports=N(Oe);var T=()=>{};T.prototype=T;let c;function C(t){c=t}const w=new Array(128).fill(void 0);w.push(void 0,null,!0,!1);function r(t){return w[t]}let a=0,I=null;function S(){return(I===null||I.byteLength===0)&&(I=new Uint8Array(c.memory.buffer)),I}const $=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let A=new $("utf-8");const V=typeof A.encodeInto=="function"?function(t,e){return A.encodeInto(t,e)}:function(t,e){const n=A.encode(t);return e.set(n),{read:t.length,written:n.length}};function d(t,e,n){if(n===void 0){const s=A.encode(t),p=e(s.length,1)>>>0;return S().subarray(p,p+s.length).set(s),a=s.length,p}let _=t.length,o=e(_,1)>>>0;const f=S();let u=0;for(;u<_;u++){const s=t.charCodeAt(u);if(s>127)break;f[o+u]=s}if(u!==_){u!==0&&(t=t.slice(u)),o=n(o,_,_=u+t.length*3,1)>>>0;const s=S().subarray(o+u,o+_),p=V(t,s);u+=p.written,o=n(o,_,u,1)>>>0}return a=u,o}function x(t){return t==null}let y=null;function l(){return(y===null||y.buffer.detached===!0||y.buffer.detached===void 0&&y.buffer!==c.memory.buffer)&&(y=new DataView(c.memory.buffer)),y}const z=typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder;let q=new z("utf-8",{ignoreBOM:!0,fatal:!0});q.decode();function m(t,e){return t=t>>>0,q.decode(S().subarray(t,t+e))}let h=w.length;function i(t){h===w.length&&w.push(w.length+1);const e=h;return h=w[e],w[e]=t,e}function L(t){t<132||(w[t]=h,h=t)}function b(t){const e=r(t);return L(t),e}function O(t){const e=typeof t;if(e=="number"||e=="boolean"||t==null)return`${t}`;if(e=="string")return`"${t}"`;if(e=="symbol"){const o=t.description;return o==null?"Symbol":`Symbol(${o})`}if(e=="function"){const o=t.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(t)){const o=t.length;let f="[";o>0&&(f+=O(t[0]));for(let u=1;u<o;u++)f+=", "+O(t[u]);return f+="]",f}const n=/\[object ([^\]]+)\]/.exec(toString.call(t));let _;if(n.length>1)_=n[1];else return toString.call(t);if(_=="Object")try{return"Object("+JSON.stringify(t)+")"}catch{return"Object"}return t instanceof Error?`${t.name}: ${t.message}
2
+ ${t.stack}`:_}const k=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>{c.__wbindgen_export_2.get(t.dtor)(t.a,t.b)});function P(t,e,n,_){const o={a:t,b:e,cnt:1,dtor:n},f=(...u)=>{o.cnt++;const s=o.a;o.a=0;try{return _(s,o.b,...u)}finally{--o.cnt===0?(c.__wbindgen_export_2.get(o.dtor)(s,o.b),k.unregister(o)):o.a=s}};return f.original=o,k.register(f,o,o),f}function W(t,e,n){c._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9eef02caf99553a1(t,e,i(n))}function J(){const t=c.getBuildTimeInfo();return b(t)}function Q(t){try{const f=c.__wbindgen_add_to_stack_pointer(-16);var e=x(t)?0:d(t,c.__wbindgen_malloc,c.__wbindgen_realloc),n=a;c.debug_panic(f,e,n);var _=l().getInt32(f+4*0,!0),o=l().getInt32(f+4*1,!0);if(o)throw b(_)}finally{c.__wbindgen_add_to_stack_pointer(16)}}function g(t,e){try{return t.apply(this,e)}catch(n){c.__wbindgen_exn_store(i(n))}}function H(t,e,n,_){c.wasm_bindgen__convert__closures__invoke2_mut__h174c8485536aed69(t,e,i(n),i(_))}const v=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>c.__wbg_queryengine_free(t>>>0,1));class G{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,v.unregister(this),e}free(){const e=this.__destroy_into_raw();c.__wbg_queryengine_free(e,0)}constructor(e,n,_){try{const s=c.__wbindgen_add_to_stack_pointer(-16);c.queryengine_new(s,i(e),i(n),i(_));var o=l().getInt32(s+4*0,!0),f=l().getInt32(s+4*1,!0),u=l().getInt32(s+4*2,!0);if(u)throw b(f);return this.__wbg_ptr=o>>>0,v.register(this,this.__wbg_ptr,this),this}finally{c.__wbindgen_add_to_stack_pointer(16)}}connect(e){const n=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_connect(this.__wbg_ptr,n,_);return b(o)}disconnect(e){const n=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_disconnect(this.__wbg_ptr,n,_);return b(o)}query(e,n,_){const o=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a,u=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),s=a;var p=x(_)?0:d(_,c.__wbindgen_malloc,c.__wbindgen_realloc),E=a;const F=c.queryengine_query(this.__wbg_ptr,o,f,u,s,p,E);return b(F)}startTransaction(e,n){const _=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_startTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}commitTransaction(e,n){const _=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_commitTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}rollbackTransaction(e,n){const _=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_rollbackTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}metrics(e){const n=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_metrics(this.__wbg_ptr,n,_);return b(o)}}function K(t,e){const n=r(e),_=typeof n=="string"?n:void 0;var o=x(_)?0:d(_,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a;l().setInt32(t+4*1,f,!0),l().setInt32(t+4*0,o,!0)}function X(t,e){const n=new Error(m(t,e));return i(n)}function Y(t,e){try{var n={a:t,b:e},_=(f,u)=>{const s=n.a;n.a=0;try{return H(s,n.b,f,u)}finally{n.a=s}};const o=new Promise(_);return i(o)}finally{n.a=n.b=0}}function Z(t,e){return setTimeout(r(t),e>>>0)}function tt(t){b(t)}function et(t,e){const n=m(t,e);return i(n)}function nt(t){const e=r(t);return i(e)}function rt(t){return r(t)===void 0}function _t(){return g(function(t,e){return Reflect.has(r(t),r(e))},arguments)}function ot(){return g(function(t,e){const n=JSON.parse(m(t,e));return i(n)},arguments)}function ct(){return i(new Date)}function it(t){return r(t).getTime()}function ut(t){return r(t).now()}function st(){return Date.now()}function ft(t){let e;try{e=r(t)instanceof Promise}catch{e=!1}return e}function at(t){const e=r(t);return typeof e=="object"&&e!==null}function bt(t){return r(t).length}function gt(){return i(Symbol.iterator)}function dt(t){const e=r(t);return typeof e=="boolean"?e?1:0:2}function lt(t){return typeof r(t)=="bigint"}function wt(t,e){const n=r(e),_=typeof n=="number"?n:void 0;l().setFloat64(t+8*1,x(_)?0:_,!0),l().setInt32(t+4*0,!x(_),!0)}function pt(t){return i(t)}function xt(t,e){return r(t)in r(e)}function yt(t){const e=BigInt.asUintN(64,t);return i(e)}function mt(t,e){return r(t)===r(e)}function ht(t){return i(t)}function Tt(){const t=new Array;return i(t)}function It(t,e,n){r(t)[e>>>0]=b(n)}function St(){return i(new Map)}function At(){const t=new Object;return i(t)}function jt(t,e,n){const _=r(t).set(r(e),r(n));return i(_)}function Ot(t){return typeof r(t)=="string"}function qt(t,e,n){r(t)[b(e)]=b(n)}function kt(t,e){const n=r(t)[r(e)];return i(n)}function vt(t,e){return r(t).push(r(e))}function Et(){return g(function(t,e){const n=r(t)[b(e)];return i(n)},arguments)}function Ft(t,e){const n=String(r(e)),_=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a;l().setInt32(t+4*1,o,!0),l().setInt32(t+4*0,_,!0)}function Rt(){const t=c.memory;return i(t)}function Dt(t){const e=r(t).buffer;return i(e)}function Mt(t,e,n){const _=new Uint8Array(r(t),e>>>0,n>>>0);return i(_)}function Ut(t){const e=new Uint8Array(r(t));return i(e)}function Bt(t,e,n){const _=r(t).subarray(e>>>0,n>>>0);return i(_)}function Nt(){return g(function(t,e){r(t).getRandomValues(r(e))},arguments)}function Ct(){return g(function(t,e){r(t).randomFillSync(b(e))},arguments)}function $t(t){const e=r(t).crypto;return i(e)}function Vt(t){const e=r(t).process;return i(e)}function zt(t){const e=r(t).versions;return i(e)}function Lt(t){const e=r(t).node;return i(e)}function Pt(){return g(function(){const t=module.require;return i(t)},arguments)}function Wt(t){const e=r(t).msCrypto;return i(e)}function Jt(t){const e=new Uint8Array(t>>>0);return i(e)}function Qt(t){return typeof r(t)=="function"}function Ht(){return g(function(t,e){const n=r(t).call(r(e));return i(n)},arguments)}function Gt(t,e){const n=r(t)[e>>>0];return i(n)}function Kt(t){return r(t).valueOf()}function Xt(){return g(function(t){const e=r(t).next();return i(e)},arguments)}function Yt(t){return r(t).done}function Zt(t){const e=r(t).value;return i(e)}function te(t){const e=r(t).next;return i(e)}function ee(){return g(function(t,e){const n=Reflect.get(r(t),r(e));return i(n)},arguments)}function ne(){return g(function(){const t=self.self;return i(t)},arguments)}function re(){return g(function(){const t=window.window;return i(t)},arguments)}function _e(){return g(function(){const t=globalThis.globalThis;return i(t)},arguments)}function oe(){return g(function(){const t=global.global;return i(t)},arguments)}function ce(t,e){const n=new T(m(t,e));return i(n)}function ie(t){return Array.isArray(r(t))}function ue(){return g(function(t,e,n){const _=r(t).call(r(e),r(n));return i(_)},arguments)}function se(t){return Number.isSafeInteger(r(t))}function fe(){return g(function(t,e,n){return Reflect.set(r(t),r(e),r(n))},arguments)}function ae(){return g(function(t){const e=JSON.stringify(r(t));return i(e)},arguments)}function be(t,e,n){r(t).set(r(e),n>>>0)}function ge(t){return r(t).length}function de(){return g(function(){return Date.now()},arguments)}function le(t,e){return r(t)==r(e)}function we(t){let e;try{e=r(t)instanceof Uint8Array}catch{e=!1}return e}function pe(t){let e;try{e=r(t)instanceof ArrayBuffer}catch{e=!1}return e}function xe(t){const e=Object.entries(r(t));return i(e)}function ye(t,e){throw new Error(m(t,e))}function me(t,e){const n=r(e),_=typeof n=="bigint"?n:void 0;l().setBigInt64(t+8*1,x(_)?BigInt(0):_,!0),l().setInt32(t+4*0,!x(_),!0)}function he(t,e){const n=O(r(e)),_=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a;l().setInt32(t+4*1,o,!0),l().setInt32(t+4*0,_,!0)}function Te(t){const e=b(t).original;return e.cnt--==1?(e.a=0,!0):!1}function Ie(t,e){const n=r(t).then(r(e));return i(n)}function Se(t,e,n){const _=r(t).then(r(e),r(n));return i(_)}function Ae(t){const e=Promise.resolve(r(t));return i(e)}function je(t,e,n){const _=P(t,e,547,W);return i(_)}0&&(module.exports={QueryEngine,__wbg_String_88810dfeb4021902,__wbg_buffer_344d9b41efe96da7,__wbg_call_53fc3abd42e24ec8,__wbg_call_669127b9d730c650,__wbg_crypto_58f13aa23ffcb166,__wbg_done_bc26bf4ada718266,__wbg_entries_6d727b73ee02b7ce,__wbg_getRandomValues_504510b5564925af,__wbg_getTime_ed6ee333b702f8fc,__wbg_get_2aff440840bb6202,__wbg_get_4a9aa5157afeb382,__wbg_get_94990005bd6ca07c,__wbg_getwithrefkey_5e6d9547403deab8,__wbg_globalThis_17eff828815f7d84,__wbg_global_46f939f6541643c5,__wbg_has_cdf8b85f6e903c80,__wbg_instanceof_ArrayBuffer_c7cc317e5c29cc0d,__wbg_instanceof_Promise_cfbcc42300367513,__wbg_instanceof_Uint8Array_19e6f142a5e7e1e1,__wbg_isArray_38525be7442aa21e,__wbg_isSafeInteger_c38b0a16d0c7cef7,__wbg_iterator_7ee1a391d310f8e4,__wbg_length_a5587d6cd79ab197,__wbg_length_cace2e0b3ddc0502,__wbg_msCrypto_abcb1295e768d1f2,__wbg_new0_ad75dd38f92424e2,__wbg_new_08236689f0afb357,__wbg_new_1b94180eeb48f2a2,__wbg_new_c728d68b8b34487e,__wbg_new_d8a000788389a31e,__wbg_new_feb65b865d980ae2,__wbg_newnoargs_ccdcae30fd002262,__wbg_newwithbyteoffsetandlength_2dc04d99088b15e3,__wbg_newwithlength_13b5319ab422dcf6,__wbg_next_15da6a3df9290720,__wbg_next_1989a20442400aaa,__wbg_node_523d7bd03ef69fba,__wbg_now_28a6b413aca4a96a,__wbg_now_4579335d3581594c,__wbg_now_8ed1a4454e40ecd1,__wbg_parse_3f0cb48976ca4123,__wbg_process_5b786e71d465a513,__wbg_push_fd3233d09cf81821,__wbg_randomFillSync_a0d98aa11c81fe89,__wbg_require_2784e593a4674877,__wbg_resolve_a3252b2860f0a09e,__wbg_self_3fad056edded10bd,__wbg_setTimeout_631fe61f31fa2fad,__wbg_set_0ac78a2bc07da03c,__wbg_set_3355b9f2d3092e3b,__wbg_set_40f7786a25a9cc7e,__wbg_set_841ac57cff3d672b,__wbg_set_dcfd613a3420f908,__wbg_set_wasm,__wbg_stringify_4039297315a25b00,__wbg_subarray_6ca5cfa7fbb9abbe,__wbg_then_1bbc9edafd859b06,__wbg_then_89e1c559530b85cf,__wbg_valueOf_ff4b62641803432a,__wbg_value_0570714ff7d75f35,__wbg_versions_c2ab80650590b6a2,__wbg_window_a4f46c98a61d4089,__wbindgen_bigint_from_i64,__wbindgen_bigint_from_u64,__wbindgen_bigint_get_as_i64,__wbindgen_boolean_get,__wbindgen_cb_drop,__wbindgen_closure_wrapper7034,__wbindgen_debug_string,__wbindgen_error_new,__wbindgen_in,__wbindgen_is_bigint,__wbindgen_is_function,__wbindgen_is_object,__wbindgen_is_string,__wbindgen_is_undefined,__wbindgen_jsval_eq,__wbindgen_jsval_loose_eq,__wbindgen_memory,__wbindgen_number_get,__wbindgen_number_new,__wbindgen_object_clone_ref,__wbindgen_object_drop_ref,__wbindgen_string_get,__wbindgen_string_new,__wbindgen_throw,debug_panic,getBuildTimeInfo});
@@ -1,2 +1,2 @@
1
- "use strict";var F=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var U=Object.prototype.hasOwnProperty;var D=(n,e)=>{for(var t in e)F(n,t,{get:e[t],enumerable:!0})},N=(n,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let _ of B(e))!U.call(n,_)&&_!==t&&F(n,_,{get:()=>e[_],enumerable:!(o=R(e,_))||o.enumerable});return n};var C=n=>N(F({},"__esModule",{value:!0}),n);var Re={};D(Re,{QueryEngine:()=>Z,__wbg_String_88810dfeb4021902:()=>Cn,__wbg_buffer_344d9b41efe96da7:()=>$n,__wbg_call_53fc3abd42e24ec8:()=>de,__wbg_call_669127b9d730c650:()=>ee,__wbg_crypto_58f13aa23ffcb166:()=>Qn,__wbg_done_bc26bf4ada718266:()=>_e,__wbg_entries_6d727b73ee02b7ce:()=>je,__wbg_exec_393fa168a3695345:()=>Dn,__wbg_getRandomValues_504510b5564925af:()=>Vn,__wbg_getTime_ed6ee333b702f8fc:()=>an,__wbg_get_2aff440840bb6202:()=>ue,__wbg_get_4a9aa5157afeb382:()=>te,__wbg_get_94990005bd6ca07c:()=>Nn,__wbg_getwithrefkey_5e6d9547403deab8:()=>Rn,__wbg_globalThis_17eff828815f7d84:()=>ae,__wbg_global_46f939f6541643c5:()=>be,__wbg_has_cdf8b85f6e903c80:()=>un,__wbg_instanceof_ArrayBuffer_c7cc317e5c29cc0d:()=>Se,__wbg_instanceof_Promise_cfbcc42300367513:()=>dn,__wbg_instanceof_Uint8Array_19e6f142a5e7e1e1:()=>Ae,__wbg_isArray_38525be7442aa21e:()=>le,__wbg_isSafeInteger_c38b0a16d0c7cef7:()=>we,__wbg_iterator_7ee1a391d310f8e4:()=>xn,__wbg_length_a5587d6cd79ab197:()=>me,__wbg_length_cace2e0b3ddc0502:()=>pn,__wbg_msCrypto_abcb1295e768d1f2:()=>Yn,__wbg_new0_ad75dd38f92424e2:()=>fn,__wbg_new_00f9fd9cefd9f65c:()=>Un,__wbg_new_08236689f0afb357:()=>qn,__wbg_new_1b94180eeb48f2a2:()=>En,__wbg_new_c728d68b8b34487e:()=>In,__wbg_new_d8a000788389a31e:()=>Pn,__wbg_new_feb65b865d980ae2:()=>tn,__wbg_newnoargs_ccdcae30fd002262:()=>ge,__wbg_newwithbyteoffsetandlength_2dc04d99088b15e3:()=>zn,__wbg_newwithlength_13b5319ab422dcf6:()=>Zn,__wbg_next_15da6a3df9290720:()=>ie,__wbg_next_1989a20442400aaa:()=>oe,__wbg_node_523d7bd03ef69fba:()=>Kn,__wbg_now_28a6b413aca4a96a:()=>he,__wbg_now_4579335d3581594c:()=>ln,__wbg_now_8ed1a4454e40ecd1:()=>gn,__wbg_parse_3f0cb48976ca4123:()=>sn,__wbg_process_5b786e71d465a513:()=>Hn,__wbg_push_fd3233d09cf81821:()=>Bn,__wbg_randomFillSync_a0d98aa11c81fe89:()=>Wn,__wbg_require_2784e593a4674877:()=>Xn,__wbg_resolve_a3252b2860f0a09e:()=>ve,__wbg_self_3fad056edded10bd:()=>se,__wbg_setTimeout_631fe61f31fa2fad:()=>rn,__wbg_set_0ac78a2bc07da03c:()=>Fn,__wbg_set_3355b9f2d3092e3b:()=>kn,__wbg_set_40f7786a25a9cc7e:()=>pe,__wbg_set_841ac57cff3d672b:()=>Mn,__wbg_set_dcfd613a3420f908:()=>ye,__wbg_set_wasm:()=>L,__wbg_stringify_4039297315a25b00:()=>xe,__wbg_subarray_6ca5cfa7fbb9abbe:()=>Jn,__wbg_then_1bbc9edafd859b06:()=>ke,__wbg_then_89e1c559530b85cf:()=>Ie,__wbg_valueOf_ff4b62641803432a:()=>re,__wbg_value_0570714ff7d75f35:()=>ce,__wbg_versions_c2ab80650590b6a2:()=>Gn,__wbg_window_a4f46c98a61d4089:()=>fe,__wbindgen_bigint_from_i64:()=>Tn,__wbindgen_bigint_from_u64:()=>Sn,__wbindgen_bigint_get_as_i64:()=>Oe,__wbindgen_boolean_get:()=>yn,__wbindgen_cb_drop:()=>Ee,__wbindgen_closure_wrapper7164:()=>Me,__wbindgen_debug_string:()=>qe,__wbindgen_error_new:()=>en,__wbindgen_in:()=>An,__wbindgen_is_bigint:()=>mn,__wbindgen_is_function:()=>ne,__wbindgen_is_object:()=>wn,__wbindgen_is_string:()=>vn,__wbindgen_is_undefined:()=>cn,__wbindgen_jsval_eq:()=>jn,__wbindgen_jsval_loose_eq:()=>Te,__wbindgen_memory:()=>Ln,__wbindgen_number_get:()=>hn,__wbindgen_number_new:()=>On,__wbindgen_object_clone_ref:()=>_n,__wbindgen_object_drop_ref:()=>bn,__wbindgen_string_get:()=>nn,__wbindgen_string_new:()=>on,__wbindgen_throw:()=>Fe,debug_panic:()=>K,getBuildTimeInfo:()=>G});module.exports=C(Re);var h=()=>{};h.prototype=h;let c;function L(n){c=n}const w=new Array(128).fill(void 0);w.push(void 0,null,!0,!1);function r(n){return w[n]}let a=0,T=null;function A(){return(T===null||T.byteLength===0)&&(T=new Uint8Array(c.memory.buffer)),T}const $=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let S=new $("utf-8");const z=typeof S.encodeInto=="function"?function(n,e){return S.encodeInto(n,e)}:function(n,e){const t=S.encode(n);return e.set(t),{read:n.length,written:t.length}};function l(n,e,t){if(t===void 0){const s=S.encode(n),y=e(s.length,1)>>>0;return A().subarray(y,y+s.length).set(s),a=s.length,y}let o=n.length,_=e(o,1)>>>0;const f=A();let u=0;for(;u<o;u++){const s=n.charCodeAt(u);if(s>127)break;f[_+u]=s}if(u!==o){u!==0&&(n=n.slice(u)),_=t(_,o,o=u+n.length*3,1)>>>0;const s=A().subarray(_+u,_+o),y=z(n,s);u+=y.written,_=t(_,o,u,1)>>>0}return a=u,_}function p(n){return n==null}let j=null;function d(){return(j===null||j.byteLength===0)&&(j=new Int32Array(c.memory.buffer)),j}const P=typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder;let I=new P("utf-8",{ignoreBOM:!0,fatal:!0});I.decode();function x(n,e){return n=n>>>0,I.decode(A().subarray(n,n+e))}let m=w.length;function i(n){m===w.length&&w.push(w.length+1);const e=m;return m=w[e],w[e]=n,e}function W(n){n<132||(w[n]=m,m=n)}function b(n){const e=r(n);return W(n),e}let O=null;function J(){return(O===null||O.byteLength===0)&&(O=new Float64Array(c.memory.buffer)),O}let q=null;function V(){return(q===null||q.byteLength===0)&&(q=new BigInt64Array(c.memory.buffer)),q}function E(n){const e=typeof n;if(e=="number"||e=="boolean"||n==null)return`${n}`;if(e=="string")return`"${n}"`;if(e=="symbol"){const _=n.description;return _==null?"Symbol":`Symbol(${_})`}if(e=="function"){const _=n.name;return typeof _=="string"&&_.length>0?`Function(${_})`:"Function"}if(Array.isArray(n)){const _=n.length;let f="[";_>0&&(f+=E(n[0]));for(let u=1;u<_;u++)f+=", "+E(n[u]);return f+="]",f}const t=/\[object ([^\]]+)\]/.exec(toString.call(n));let o;if(t.length>1)o=t[1];else return toString.call(n);if(o=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
2
- ${n.stack}`:o}const k=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>{c.__wbindgen_export_2.get(n.dtor)(n.a,n.b)});function Q(n,e,t,o){const _={a:n,b:e,cnt:1,dtor:t},f=(...u)=>{_.cnt++;const s=_.a;_.a=0;try{return o(s,_.b,...u)}finally{--_.cnt===0?(c.__wbindgen_export_2.get(_.dtor)(s,_.b),k.unregister(_)):_.a=s}};return f.original=_,k.register(f,_,_),f}function H(n,e,t){c._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1d1ce90a2538b281(n,e,i(t))}function G(){const n=c.getBuildTimeInfo();return b(n)}function K(n){try{const f=c.__wbindgen_add_to_stack_pointer(-16);var e=p(n)?0:l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),t=a;c.debug_panic(f,e,t);var o=d()[f/4+0],_=d()[f/4+1];if(_)throw b(o)}finally{c.__wbindgen_add_to_stack_pointer(16)}}function g(n,e){try{return n.apply(this,e)}catch(t){c.__wbindgen_exn_store(i(t))}}function X(n,e,t,o){c.wasm_bindgen__convert__closures__invoke2_mut__h46a92896c95d64ae(n,e,i(t),i(o))}const Y=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>c.__wbg_queryengine_free(n>>>0));class Z{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),e}free(){const e=this.__destroy_into_raw();c.__wbg_queryengine_free(e)}constructor(e,t,o){try{const s=c.__wbindgen_add_to_stack_pointer(-16);c.queryengine_new(s,i(e),i(t),i(o));var _=d()[s/4+0],f=d()[s/4+1],u=d()[s/4+2];if(u)throw b(f);return this.__wbg_ptr=_>>>0,this}finally{c.__wbindgen_add_to_stack_pointer(16)}}connect(e){const t=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,_=c.queryengine_connect(this.__wbg_ptr,t,o);return b(_)}disconnect(e){const t=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,_=c.queryengine_disconnect(this.__wbg_ptr,t,o);return b(_)}query(e,t,o){const _=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a,u=l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),s=a;var y=p(o)?0:l(o,c.__wbindgen_malloc,c.__wbindgen_realloc),v=a;const M=c.queryengine_query(this.__wbg_ptr,_,f,u,s,y,v);return b(M)}startTransaction(e,t){const o=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,f=l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_startTransaction(this.__wbg_ptr,o,_,f,u);return b(s)}commitTransaction(e,t){const o=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,f=l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_commitTransaction(this.__wbg_ptr,o,_,f,u);return b(s)}rollbackTransaction(e,t){const o=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,f=l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_rollbackTransaction(this.__wbg_ptr,o,_,f,u);return b(s)}metrics(e){const t=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,_=c.queryengine_metrics(this.__wbg_ptr,t,o);return b(_)}}function nn(n,e){const t=r(e),o=typeof t=="string"?t:void 0;var _=p(o)?0:l(o,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a;d()[n/4+1]=f,d()[n/4+0]=_}function en(n,e){const t=new Error(x(n,e));return i(t)}function tn(n,e){try{var t={a:n,b:e},o=(f,u)=>{const s=t.a;t.a=0;try{return X(s,t.b,f,u)}finally{t.a=s}};const _=new Promise(o);return i(_)}finally{t.a=t.b=0}}function rn(n,e){return setTimeout(r(n),e>>>0)}function on(n,e){const t=x(n,e);return i(t)}function _n(n){const e=r(n);return i(e)}function cn(n){return r(n)===void 0}function un(){return g(function(n,e){return Reflect.has(r(n),r(e))},arguments)}function sn(){return g(function(n,e){const t=JSON.parse(x(n,e));return i(t)},arguments)}function fn(){return i(new Date)}function an(n){return r(n).getTime()}function bn(n){b(n)}function gn(n){return r(n).now()}function ln(){return Date.now()}function dn(n){let e;try{e=r(n)instanceof Promise}catch{e=!1}return e}function wn(n){const e=r(n);return typeof e=="object"&&e!==null}function pn(n){return r(n).length}function xn(){return i(Symbol.iterator)}function yn(n){const e=r(n);return typeof e=="boolean"?e?1:0:2}function mn(n){return typeof r(n)=="bigint"}function hn(n,e){const t=r(e),o=typeof t=="number"?t:void 0;J()[n/8+1]=p(o)?0:o,d()[n/4+0]=!p(o)}function Tn(n){return i(n)}function An(n,e){return r(n)in r(e)}function Sn(n){const e=BigInt.asUintN(64,n);return i(e)}function jn(n,e){return r(n)===r(e)}function On(n){return i(n)}function qn(){const n=new Array;return i(n)}function Fn(n,e,t){r(n)[e>>>0]=b(t)}function En(){return i(new Map)}function In(){const n=new Object;return i(n)}function kn(n,e,t){const o=r(n).set(r(e),r(t));return i(o)}function vn(n){return typeof r(n)=="string"}function Mn(n,e,t){r(n)[b(e)]=b(t)}function Rn(n,e){const t=r(n)[r(e)];return i(t)}function Bn(n,e){return r(n).push(r(e))}function Un(n,e,t,o){const _=new RegExp(x(n,e),x(t,o));return i(_)}function Dn(n,e,t){const o=r(n).exec(x(e,t));return p(o)?0:i(o)}function Nn(){return g(function(n,e){const t=r(n)[b(e)];return i(t)},arguments)}function Cn(n,e){const t=String(r(e)),o=l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a;d()[n/4+1]=_,d()[n/4+0]=o}function Ln(){const n=c.memory;return i(n)}function $n(n){const e=r(n).buffer;return i(e)}function zn(n,e,t){const o=new Uint8Array(r(n),e>>>0,t>>>0);return i(o)}function Pn(n){const e=new Uint8Array(r(n));return i(e)}function Wn(){return g(function(n,e){r(n).randomFillSync(b(e))},arguments)}function Jn(n,e,t){const o=r(n).subarray(e>>>0,t>>>0);return i(o)}function Vn(){return g(function(n,e){r(n).getRandomValues(r(e))},arguments)}function Qn(n){const e=r(n).crypto;return i(e)}function Hn(n){const e=r(n).process;return i(e)}function Gn(n){const e=r(n).versions;return i(e)}function Kn(n){const e=r(n).node;return i(e)}function Xn(){return g(function(){const n=module.require;return i(n)},arguments)}function Yn(n){const e=r(n).msCrypto;return i(e)}function Zn(n){const e=new Uint8Array(n>>>0);return i(e)}function ne(n){return typeof r(n)=="function"}function ee(){return g(function(n,e){const t=r(n).call(r(e));return i(t)},arguments)}function te(n,e){const t=r(n)[e>>>0];return i(t)}function re(n){return r(n).valueOf()}function oe(){return g(function(n){const e=r(n).next();return i(e)},arguments)}function _e(n){return r(n).done}function ce(n){const e=r(n).value;return i(e)}function ie(n){const e=r(n).next;return i(e)}function ue(){return g(function(n,e){const t=Reflect.get(r(n),r(e));return i(t)},arguments)}function se(){return g(function(){const n=self.self;return i(n)},arguments)}function fe(){return g(function(){const n=window.window;return i(n)},arguments)}function ae(){return g(function(){const n=globalThis.globalThis;return i(n)},arguments)}function be(){return g(function(){const n=global.global;return i(n)},arguments)}function ge(n,e){const t=new h(x(n,e));return i(t)}function le(n){return Array.isArray(r(n))}function de(){return g(function(n,e,t){const o=r(n).call(r(e),r(t));return i(o)},arguments)}function we(n){return Number.isSafeInteger(r(n))}function pe(){return g(function(n,e,t){return Reflect.set(r(n),r(e),r(t))},arguments)}function xe(){return g(function(n){const e=JSON.stringify(r(n));return i(e)},arguments)}function ye(n,e,t){r(n).set(r(e),t>>>0)}function me(n){return r(n).length}function he(){return g(function(){return Date.now()},arguments)}function Te(n,e){return r(n)==r(e)}function Ae(n){let e;try{e=r(n)instanceof Uint8Array}catch{e=!1}return e}function Se(n){let e;try{e=r(n)instanceof ArrayBuffer}catch{e=!1}return e}function je(n){const e=Object.entries(r(n));return i(e)}function Oe(n,e){const t=r(e),o=typeof t=="bigint"?t:void 0;V()[n/8+1]=p(o)?BigInt(0):o,d()[n/4+0]=!p(o)}function qe(n,e){const t=E(r(e)),o=l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a;d()[n/4+1]=_,d()[n/4+0]=o}function Fe(n,e){throw new Error(x(n,e))}function Ee(n){const e=b(n).original;return e.cnt--==1?(e.a=0,!0):!1}function Ie(n,e){const t=r(n).then(r(e));return i(t)}function ke(n,e,t){const o=r(n).then(r(e),r(t));return i(o)}function ve(n){const e=Promise.resolve(r(n));return i(e)}function Me(n,e,t){const o=Q(n,e,327,H);return i(o)}0&&(module.exports={QueryEngine,__wbg_String_88810dfeb4021902,__wbg_buffer_344d9b41efe96da7,__wbg_call_53fc3abd42e24ec8,__wbg_call_669127b9d730c650,__wbg_crypto_58f13aa23ffcb166,__wbg_done_bc26bf4ada718266,__wbg_entries_6d727b73ee02b7ce,__wbg_exec_393fa168a3695345,__wbg_getRandomValues_504510b5564925af,__wbg_getTime_ed6ee333b702f8fc,__wbg_get_2aff440840bb6202,__wbg_get_4a9aa5157afeb382,__wbg_get_94990005bd6ca07c,__wbg_getwithrefkey_5e6d9547403deab8,__wbg_globalThis_17eff828815f7d84,__wbg_global_46f939f6541643c5,__wbg_has_cdf8b85f6e903c80,__wbg_instanceof_ArrayBuffer_c7cc317e5c29cc0d,__wbg_instanceof_Promise_cfbcc42300367513,__wbg_instanceof_Uint8Array_19e6f142a5e7e1e1,__wbg_isArray_38525be7442aa21e,__wbg_isSafeInteger_c38b0a16d0c7cef7,__wbg_iterator_7ee1a391d310f8e4,__wbg_length_a5587d6cd79ab197,__wbg_length_cace2e0b3ddc0502,__wbg_msCrypto_abcb1295e768d1f2,__wbg_new0_ad75dd38f92424e2,__wbg_new_00f9fd9cefd9f65c,__wbg_new_08236689f0afb357,__wbg_new_1b94180eeb48f2a2,__wbg_new_c728d68b8b34487e,__wbg_new_d8a000788389a31e,__wbg_new_feb65b865d980ae2,__wbg_newnoargs_ccdcae30fd002262,__wbg_newwithbyteoffsetandlength_2dc04d99088b15e3,__wbg_newwithlength_13b5319ab422dcf6,__wbg_next_15da6a3df9290720,__wbg_next_1989a20442400aaa,__wbg_node_523d7bd03ef69fba,__wbg_now_28a6b413aca4a96a,__wbg_now_4579335d3581594c,__wbg_now_8ed1a4454e40ecd1,__wbg_parse_3f0cb48976ca4123,__wbg_process_5b786e71d465a513,__wbg_push_fd3233d09cf81821,__wbg_randomFillSync_a0d98aa11c81fe89,__wbg_require_2784e593a4674877,__wbg_resolve_a3252b2860f0a09e,__wbg_self_3fad056edded10bd,__wbg_setTimeout_631fe61f31fa2fad,__wbg_set_0ac78a2bc07da03c,__wbg_set_3355b9f2d3092e3b,__wbg_set_40f7786a25a9cc7e,__wbg_set_841ac57cff3d672b,__wbg_set_dcfd613a3420f908,__wbg_set_wasm,__wbg_stringify_4039297315a25b00,__wbg_subarray_6ca5cfa7fbb9abbe,__wbg_then_1bbc9edafd859b06,__wbg_then_89e1c559530b85cf,__wbg_valueOf_ff4b62641803432a,__wbg_value_0570714ff7d75f35,__wbg_versions_c2ab80650590b6a2,__wbg_window_a4f46c98a61d4089,__wbindgen_bigint_from_i64,__wbindgen_bigint_from_u64,__wbindgen_bigint_get_as_i64,__wbindgen_boolean_get,__wbindgen_cb_drop,__wbindgen_closure_wrapper7164,__wbindgen_debug_string,__wbindgen_error_new,__wbindgen_in,__wbindgen_is_bigint,__wbindgen_is_function,__wbindgen_is_object,__wbindgen_is_string,__wbindgen_is_undefined,__wbindgen_jsval_eq,__wbindgen_jsval_loose_eq,__wbindgen_memory,__wbindgen_number_get,__wbindgen_number_new,__wbindgen_object_clone_ref,__wbindgen_object_drop_ref,__wbindgen_string_get,__wbindgen_string_new,__wbindgen_throw,debug_panic,getBuildTimeInfo});
1
+ "use strict";var j=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var U=(t,e)=>{for(var n in e)j(t,n,{get:e[n],enumerable:!0})},B=(t,e,n,_)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of D(e))!M.call(t,o)&&o!==n&&j(t,o,{get:()=>e[o],enumerable:!(_=R(e,o))||_.enumerable});return t};var N=t=>B(j({},"__esModule",{value:!0}),t);var Ee={};U(Ee,{QueryEngine:()=>G,__wbg_String_88810dfeb4021902:()=>Dt,__wbg_buffer_344d9b41efe96da7:()=>Ut,__wbg_call_53fc3abd42e24ec8:()=>fe,__wbg_call_669127b9d730c650:()=>Kt,__wbg_crypto_58f13aa23ffcb166:()=>zt,__wbg_done_bc26bf4ada718266:()=>te,__wbg_entries_6d727b73ee02b7ce:()=>me,__wbg_exec_393fa168a3695345:()=>Ft,__wbg_getRandomValues_504510b5564925af:()=>$t,__wbg_getTime_ed6ee333b702f8fc:()=>ct,__wbg_get_2aff440840bb6202:()=>re,__wbg_get_4a9aa5157afeb382:()=>Xt,__wbg_get_94990005bd6ca07c:()=>Rt,__wbg_getwithrefkey_5e6d9547403deab8:()=>Et,__wbg_globalThis_17eff828815f7d84:()=>ce,__wbg_global_46f939f6541643c5:()=>ie,__wbg_has_cdf8b85f6e903c80:()=>rt,__wbg_instanceof_ArrayBuffer_c7cc317e5c29cc0d:()=>ye,__wbg_instanceof_Promise_cfbcc42300367513:()=>at,__wbg_instanceof_Uint8Array_19e6f142a5e7e1e1:()=>xe,__wbg_isArray_38525be7442aa21e:()=>se,__wbg_isSafeInteger_c38b0a16d0c7cef7:()=>ae,__wbg_iterator_7ee1a391d310f8e4:()=>gt,__wbg_length_a5587d6cd79ab197:()=>le,__wbg_length_cace2e0b3ddc0502:()=>bt,__wbg_msCrypto_abcb1295e768d1f2:()=>Qt,__wbg_new0_ad75dd38f92424e2:()=>ot,__wbg_new_00f9fd9cefd9f65c:()=>vt,__wbg_new_08236689f0afb357:()=>Tt,__wbg_new_1b94180eeb48f2a2:()=>St,__wbg_new_c728d68b8b34487e:()=>At,__wbg_new_d8a000788389a31e:()=>Nt,__wbg_new_feb65b865d980ae2:()=>Y,__wbg_newnoargs_ccdcae30fd002262:()=>ue,__wbg_newwithbyteoffsetandlength_2dc04d99088b15e3:()=>Bt,__wbg_newwithlength_13b5319ab422dcf6:()=>Ht,__wbg_next_15da6a3df9290720:()=>ne,__wbg_next_1989a20442400aaa:()=>Zt,__wbg_node_523d7bd03ef69fba:()=>Wt,__wbg_now_28a6b413aca4a96a:()=>we,__wbg_now_4579335d3581594c:()=>st,__wbg_now_8ed1a4454e40ecd1:()=>ut,__wbg_parse_3f0cb48976ca4123:()=>_t,__wbg_process_5b786e71d465a513:()=>Lt,__wbg_push_fd3233d09cf81821:()=>kt,__wbg_randomFillSync_a0d98aa11c81fe89:()=>Vt,__wbg_require_2784e593a4674877:()=>Jt,__wbg_resolve_a3252b2860f0a09e:()=>Oe,__wbg_self_3fad056edded10bd:()=>_e,__wbg_setTimeout_631fe61f31fa2fad:()=>Z,__wbg_set_0ac78a2bc07da03c:()=>It,__wbg_set_3355b9f2d3092e3b:()=>jt,__wbg_set_40f7786a25a9cc7e:()=>be,__wbg_set_841ac57cff3d672b:()=>qt,__wbg_set_dcfd613a3420f908:()=>de,__wbg_set_wasm:()=>C,__wbg_stringify_4039297315a25b00:()=>ge,__wbg_subarray_6ca5cfa7fbb9abbe:()=>Ct,__wbg_then_1bbc9edafd859b06:()=>je,__wbg_then_89e1c559530b85cf:()=>Ae,__wbg_valueOf_ff4b62641803432a:()=>Yt,__wbg_value_0570714ff7d75f35:()=>ee,__wbg_versions_c2ab80650590b6a2:()=>Pt,__wbg_window_a4f46c98a61d4089:()=>oe,__wbindgen_bigint_from_i64:()=>pt,__wbindgen_bigint_from_u64:()=>yt,__wbindgen_bigint_get_as_i64:()=>Te,__wbindgen_boolean_get:()=>dt,__wbindgen_cb_drop:()=>Se,__wbindgen_closure_wrapper7084:()=>qe,__wbindgen_debug_string:()=>Ie,__wbindgen_error_new:()=>X,__wbindgen_in:()=>xt,__wbindgen_is_bigint:()=>lt,__wbindgen_is_function:()=>Gt,__wbindgen_is_object:()=>ft,__wbindgen_is_string:()=>Ot,__wbindgen_is_undefined:()=>nt,__wbindgen_jsval_eq:()=>mt,__wbindgen_jsval_loose_eq:()=>pe,__wbindgen_memory:()=>Mt,__wbindgen_number_get:()=>wt,__wbindgen_number_new:()=>ht,__wbindgen_object_clone_ref:()=>et,__wbindgen_object_drop_ref:()=>it,__wbindgen_string_get:()=>K,__wbindgen_string_new:()=>tt,__wbindgen_throw:()=>he,debug_panic:()=>Q,getBuildTimeInfo:()=>J});module.exports=N(Ee);var T=()=>{};T.prototype=T;let c;function C(t){c=t}const w=new Array(128).fill(void 0);w.push(void 0,null,!0,!1);function r(t){return w[t]}let a=0,I=null;function S(){return(I===null||I.byteLength===0)&&(I=new Uint8Array(c.memory.buffer)),I}const $=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let A=new $("utf-8");const V=typeof A.encodeInto=="function"?function(t,e){return A.encodeInto(t,e)}:function(t,e){const n=A.encode(t);return e.set(n),{read:t.length,written:n.length}};function d(t,e,n){if(n===void 0){const s=A.encode(t),y=e(s.length,1)>>>0;return S().subarray(y,y+s.length).set(s),a=s.length,y}let _=t.length,o=e(_,1)>>>0;const f=S();let u=0;for(;u<_;u++){const s=t.charCodeAt(u);if(s>127)break;f[o+u]=s}if(u!==_){u!==0&&(t=t.slice(u)),o=n(o,_,_=u+t.length*3,1)>>>0;const s=S().subarray(o+u,o+_),y=V(t,s);u+=y.written,o=n(o,_,u,1)>>>0}return a=u,o}function p(t){return t==null}let m=null;function l(){return(m===null||m.buffer.detached===!0||m.buffer.detached===void 0&&m.buffer!==c.memory.buffer)&&(m=new DataView(c.memory.buffer)),m}const z=typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder;let q=new z("utf-8",{ignoreBOM:!0,fatal:!0});q.decode();function x(t,e){return t=t>>>0,q.decode(S().subarray(t,t+e))}let h=w.length;function i(t){h===w.length&&w.push(w.length+1);const e=h;return h=w[e],w[e]=t,e}function L(t){t<132||(w[t]=h,h=t)}function b(t){const e=r(t);return L(t),e}function O(t){const e=typeof t;if(e=="number"||e=="boolean"||t==null)return`${t}`;if(e=="string")return`"${t}"`;if(e=="symbol"){const o=t.description;return o==null?"Symbol":`Symbol(${o})`}if(e=="function"){const o=t.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(t)){const o=t.length;let f="[";o>0&&(f+=O(t[0]));for(let u=1;u<o;u++)f+=", "+O(t[u]);return f+="]",f}const n=/\[object ([^\]]+)\]/.exec(toString.call(t));let _;if(n.length>1)_=n[1];else return toString.call(t);if(_=="Object")try{return"Object("+JSON.stringify(t)+")"}catch{return"Object"}return t instanceof Error?`${t.name}: ${t.message}
2
+ ${t.stack}`:_}const E=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>{c.__wbindgen_export_2.get(t.dtor)(t.a,t.b)});function P(t,e,n,_){const o={a:t,b:e,cnt:1,dtor:n},f=(...u)=>{o.cnt++;const s=o.a;o.a=0;try{return _(s,o.b,...u)}finally{--o.cnt===0?(c.__wbindgen_export_2.get(o.dtor)(s,o.b),E.unregister(o)):o.a=s}};return f.original=o,E.register(f,o,o),f}function W(t,e,n){c._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9eef02caf99553a1(t,e,i(n))}function J(){const t=c.getBuildTimeInfo();return b(t)}function Q(t){try{const f=c.__wbindgen_add_to_stack_pointer(-16);var e=p(t)?0:d(t,c.__wbindgen_malloc,c.__wbindgen_realloc),n=a;c.debug_panic(f,e,n);var _=l().getInt32(f+4*0,!0),o=l().getInt32(f+4*1,!0);if(o)throw b(_)}finally{c.__wbindgen_add_to_stack_pointer(16)}}function g(t,e){try{return t.apply(this,e)}catch(n){c.__wbindgen_exn_store(i(n))}}function H(t,e,n,_){c.wasm_bindgen__convert__closures__invoke2_mut__h174c8485536aed69(t,e,i(n),i(_))}const k=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>c.__wbg_queryengine_free(t>>>0,1));class G{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,k.unregister(this),e}free(){const e=this.__destroy_into_raw();c.__wbg_queryengine_free(e,0)}constructor(e,n,_){try{const s=c.__wbindgen_add_to_stack_pointer(-16);c.queryengine_new(s,i(e),i(n),i(_));var o=l().getInt32(s+4*0,!0),f=l().getInt32(s+4*1,!0),u=l().getInt32(s+4*2,!0);if(u)throw b(f);return this.__wbg_ptr=o>>>0,k.register(this,this.__wbg_ptr,this),this}finally{c.__wbindgen_add_to_stack_pointer(16)}}connect(e){const n=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_connect(this.__wbg_ptr,n,_);return b(o)}disconnect(e){const n=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_disconnect(this.__wbg_ptr,n,_);return b(o)}query(e,n,_){const o=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a,u=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),s=a;var y=p(_)?0:d(_,c.__wbindgen_malloc,c.__wbindgen_realloc),v=a;const F=c.queryengine_query(this.__wbg_ptr,o,f,u,s,y,v);return b(F)}startTransaction(e,n){const _=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_startTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}commitTransaction(e,n){const _=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_commitTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}rollbackTransaction(e,n){const _=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_rollbackTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}metrics(e){const n=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_metrics(this.__wbg_ptr,n,_);return b(o)}}function K(t,e){const n=r(e),_=typeof n=="string"?n:void 0;var o=p(_)?0:d(_,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a;l().setInt32(t+4*1,f,!0),l().setInt32(t+4*0,o,!0)}function X(t,e){const n=new Error(x(t,e));return i(n)}function Y(t,e){try{var n={a:t,b:e},_=(f,u)=>{const s=n.a;n.a=0;try{return H(s,n.b,f,u)}finally{n.a=s}};const o=new Promise(_);return i(o)}finally{n.a=n.b=0}}function Z(t,e){return setTimeout(r(t),e>>>0)}function tt(t,e){const n=x(t,e);return i(n)}function et(t){const e=r(t);return i(e)}function nt(t){return r(t)===void 0}function rt(){return g(function(t,e){return Reflect.has(r(t),r(e))},arguments)}function _t(){return g(function(t,e){const n=JSON.parse(x(t,e));return i(n)},arguments)}function ot(){return i(new Date)}function ct(t){return r(t).getTime()}function it(t){b(t)}function ut(t){return r(t).now()}function st(){return Date.now()}function ft(t){const e=r(t);return typeof e=="object"&&e!==null}function at(t){let e;try{e=r(t)instanceof Promise}catch{e=!1}return e}function bt(t){return r(t).length}function gt(){return i(Symbol.iterator)}function dt(t){const e=r(t);return typeof e=="boolean"?e?1:0:2}function lt(t){return typeof r(t)=="bigint"}function wt(t,e){const n=r(e),_=typeof n=="number"?n:void 0;l().setFloat64(t+8*1,p(_)?0:_,!0),l().setInt32(t+4*0,!p(_),!0)}function pt(t){return i(t)}function xt(t,e){return r(t)in r(e)}function yt(t){const e=BigInt.asUintN(64,t);return i(e)}function mt(t,e){return r(t)===r(e)}function ht(t){return i(t)}function Tt(){const t=new Array;return i(t)}function It(t,e,n){r(t)[e>>>0]=b(n)}function St(){return i(new Map)}function At(){const t=new Object;return i(t)}function jt(t,e,n){const _=r(t).set(r(e),r(n));return i(_)}function Ot(t){return typeof r(t)=="string"}function qt(t,e,n){r(t)[b(e)]=b(n)}function Et(t,e){const n=r(t)[r(e)];return i(n)}function kt(t,e){return r(t).push(r(e))}function vt(t,e,n,_){const o=new RegExp(x(t,e),x(n,_));return i(o)}function Ft(t,e,n){const _=r(t).exec(x(e,n));return p(_)?0:i(_)}function Rt(){return g(function(t,e){const n=r(t)[b(e)];return i(n)},arguments)}function Dt(t,e){const n=String(r(e)),_=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a;l().setInt32(t+4*1,o,!0),l().setInt32(t+4*0,_,!0)}function Mt(){const t=c.memory;return i(t)}function Ut(t){const e=r(t).buffer;return i(e)}function Bt(t,e,n){const _=new Uint8Array(r(t),e>>>0,n>>>0);return i(_)}function Nt(t){const e=new Uint8Array(r(t));return i(e)}function Ct(t,e,n){const _=r(t).subarray(e>>>0,n>>>0);return i(_)}function $t(){return g(function(t,e){r(t).getRandomValues(r(e))},arguments)}function Vt(){return g(function(t,e){r(t).randomFillSync(b(e))},arguments)}function zt(t){const e=r(t).crypto;return i(e)}function Lt(t){const e=r(t).process;return i(e)}function Pt(t){const e=r(t).versions;return i(e)}function Wt(t){const e=r(t).node;return i(e)}function Jt(){return g(function(){const t=module.require;return i(t)},arguments)}function Qt(t){const e=r(t).msCrypto;return i(e)}function Ht(t){const e=new Uint8Array(t>>>0);return i(e)}function Gt(t){return typeof r(t)=="function"}function Kt(){return g(function(t,e){const n=r(t).call(r(e));return i(n)},arguments)}function Xt(t,e){const n=r(t)[e>>>0];return i(n)}function Yt(t){return r(t).valueOf()}function Zt(){return g(function(t){const e=r(t).next();return i(e)},arguments)}function te(t){return r(t).done}function ee(t){const e=r(t).value;return i(e)}function ne(t){const e=r(t).next;return i(e)}function re(){return g(function(t,e){const n=Reflect.get(r(t),r(e));return i(n)},arguments)}function _e(){return g(function(){const t=self.self;return i(t)},arguments)}function oe(){return g(function(){const t=window.window;return i(t)},arguments)}function ce(){return g(function(){const t=globalThis.globalThis;return i(t)},arguments)}function ie(){return g(function(){const t=global.global;return i(t)},arguments)}function ue(t,e){const n=new T(x(t,e));return i(n)}function se(t){return Array.isArray(r(t))}function fe(){return g(function(t,e,n){const _=r(t).call(r(e),r(n));return i(_)},arguments)}function ae(t){return Number.isSafeInteger(r(t))}function be(){return g(function(t,e,n){return Reflect.set(r(t),r(e),r(n))},arguments)}function ge(){return g(function(t){const e=JSON.stringify(r(t));return i(e)},arguments)}function de(t,e,n){r(t).set(r(e),n>>>0)}function le(t){return r(t).length}function we(){return g(function(){return Date.now()},arguments)}function pe(t,e){return r(t)==r(e)}function xe(t){let e;try{e=r(t)instanceof Uint8Array}catch{e=!1}return e}function ye(t){let e;try{e=r(t)instanceof ArrayBuffer}catch{e=!1}return e}function me(t){const e=Object.entries(r(t));return i(e)}function he(t,e){throw new Error(x(t,e))}function Te(t,e){const n=r(e),_=typeof n=="bigint"?n:void 0;l().setBigInt64(t+8*1,p(_)?BigInt(0):_,!0),l().setInt32(t+4*0,!p(_),!0)}function Ie(t,e){const n=O(r(e)),_=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a;l().setInt32(t+4*1,o,!0),l().setInt32(t+4*0,_,!0)}function Se(t){const e=b(t).original;return e.cnt--==1?(e.a=0,!0):!1}function Ae(t,e){const n=r(t).then(r(e));return i(n)}function je(t,e,n){const _=r(t).then(r(e),r(n));return i(_)}function Oe(t){const e=Promise.resolve(r(t));return i(e)}function qe(t,e,n){const _=P(t,e,548,W);return i(_)}0&&(module.exports={QueryEngine,__wbg_String_88810dfeb4021902,__wbg_buffer_344d9b41efe96da7,__wbg_call_53fc3abd42e24ec8,__wbg_call_669127b9d730c650,__wbg_crypto_58f13aa23ffcb166,__wbg_done_bc26bf4ada718266,__wbg_entries_6d727b73ee02b7ce,__wbg_exec_393fa168a3695345,__wbg_getRandomValues_504510b5564925af,__wbg_getTime_ed6ee333b702f8fc,__wbg_get_2aff440840bb6202,__wbg_get_4a9aa5157afeb382,__wbg_get_94990005bd6ca07c,__wbg_getwithrefkey_5e6d9547403deab8,__wbg_globalThis_17eff828815f7d84,__wbg_global_46f939f6541643c5,__wbg_has_cdf8b85f6e903c80,__wbg_instanceof_ArrayBuffer_c7cc317e5c29cc0d,__wbg_instanceof_Promise_cfbcc42300367513,__wbg_instanceof_Uint8Array_19e6f142a5e7e1e1,__wbg_isArray_38525be7442aa21e,__wbg_isSafeInteger_c38b0a16d0c7cef7,__wbg_iterator_7ee1a391d310f8e4,__wbg_length_a5587d6cd79ab197,__wbg_length_cace2e0b3ddc0502,__wbg_msCrypto_abcb1295e768d1f2,__wbg_new0_ad75dd38f92424e2,__wbg_new_00f9fd9cefd9f65c,__wbg_new_08236689f0afb357,__wbg_new_1b94180eeb48f2a2,__wbg_new_c728d68b8b34487e,__wbg_new_d8a000788389a31e,__wbg_new_feb65b865d980ae2,__wbg_newnoargs_ccdcae30fd002262,__wbg_newwithbyteoffsetandlength_2dc04d99088b15e3,__wbg_newwithlength_13b5319ab422dcf6,__wbg_next_15da6a3df9290720,__wbg_next_1989a20442400aaa,__wbg_node_523d7bd03ef69fba,__wbg_now_28a6b413aca4a96a,__wbg_now_4579335d3581594c,__wbg_now_8ed1a4454e40ecd1,__wbg_parse_3f0cb48976ca4123,__wbg_process_5b786e71d465a513,__wbg_push_fd3233d09cf81821,__wbg_randomFillSync_a0d98aa11c81fe89,__wbg_require_2784e593a4674877,__wbg_resolve_a3252b2860f0a09e,__wbg_self_3fad056edded10bd,__wbg_setTimeout_631fe61f31fa2fad,__wbg_set_0ac78a2bc07da03c,__wbg_set_3355b9f2d3092e3b,__wbg_set_40f7786a25a9cc7e,__wbg_set_841ac57cff3d672b,__wbg_set_dcfd613a3420f908,__wbg_set_wasm,__wbg_stringify_4039297315a25b00,__wbg_subarray_6ca5cfa7fbb9abbe,__wbg_then_1bbc9edafd859b06,__wbg_then_89e1c559530b85cf,__wbg_valueOf_ff4b62641803432a,__wbg_value_0570714ff7d75f35,__wbg_versions_c2ab80650590b6a2,__wbg_window_a4f46c98a61d4089,__wbindgen_bigint_from_i64,__wbindgen_bigint_from_u64,__wbindgen_bigint_get_as_i64,__wbindgen_boolean_get,__wbindgen_cb_drop,__wbindgen_closure_wrapper7084,__wbindgen_debug_string,__wbindgen_error_new,__wbindgen_in,__wbindgen_is_bigint,__wbindgen_is_function,__wbindgen_is_object,__wbindgen_is_string,__wbindgen_is_undefined,__wbindgen_jsval_eq,__wbindgen_jsval_loose_eq,__wbindgen_memory,__wbindgen_number_get,__wbindgen_number_new,__wbindgen_object_clone_ref,__wbindgen_object_drop_ref,__wbindgen_string_get,__wbindgen_string_new,__wbindgen_throw,debug_panic,getBuildTimeInfo});
@@ -1,2 +1,2 @@
1
- "use strict";var F=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var U=Object.prototype.hasOwnProperty;var D=(n,t)=>{for(var e in t)F(n,e,{get:t[e],enumerable:!0})},N=(n,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let _ of B(t))!U.call(n,_)&&_!==e&&F(n,_,{get:()=>t[_],enumerable:!(o=R(t,_))||o.enumerable});return n};var C=n=>N(F({},"__esModule",{value:!0}),n);var Et={};D(Et,{QueryEngine:()=>Z,__wbg_String_88810dfeb4021902:()=>Dn,__wbg_buffer_344d9b41efe96da7:()=>Cn,__wbg_call_53fc3abd42e24ec8:()=>gt,__wbg_call_669127b9d730c650:()=>Zn,__wbg_crypto_58f13aa23ffcb166:()=>Jn,__wbg_done_bc26bf4ada718266:()=>rt,__wbg_entries_6d727b73ee02b7ce:()=>At,__wbg_getRandomValues_504510b5564925af:()=>Wn,__wbg_getTime_ed6ee333b702f8fc:()=>an,__wbg_get_2aff440840bb6202:()=>ct,__wbg_get_4a9aa5157afeb382:()=>nt,__wbg_get_94990005bd6ca07c:()=>Un,__wbg_getwithrefkey_5e6d9547403deab8:()=>Rn,__wbg_globalThis_17eff828815f7d84:()=>st,__wbg_global_46f939f6541643c5:()=>ft,__wbg_has_cdf8b85f6e903c80:()=>un,__wbg_instanceof_ArrayBuffer_c7cc317e5c29cc0d:()=>Tt,__wbg_instanceof_Promise_cfbcc42300367513:()=>dn,__wbg_instanceof_Uint8Array_19e6f142a5e7e1e1:()=>ht,__wbg_isArray_38525be7442aa21e:()=>bt,__wbg_isSafeInteger_c38b0a16d0c7cef7:()=>lt,__wbg_iterator_7ee1a391d310f8e4:()=>yn,__wbg_length_a5587d6cd79ab197:()=>yt,__wbg_length_cace2e0b3ddc0502:()=>pn,__wbg_msCrypto_abcb1295e768d1f2:()=>Kn,__wbg_new0_ad75dd38f92424e2:()=>fn,__wbg_new_08236689f0afb357:()=>qn,__wbg_new_1b94180eeb48f2a2:()=>In,__wbg_new_c728d68b8b34487e:()=>kn,__wbg_new_d8a000788389a31e:()=>$n,__wbg_new_feb65b865d980ae2:()=>en,__wbg_newnoargs_ccdcae30fd002262:()=>at,__wbg_newwithbyteoffsetandlength_2dc04d99088b15e3:()=>Ln,__wbg_newwithlength_13b5319ab422dcf6:()=>Xn,__wbg_next_15da6a3df9290720:()=>_t,__wbg_next_1989a20442400aaa:()=>et,__wbg_node_523d7bd03ef69fba:()=>Hn,__wbg_now_28a6b413aca4a96a:()=>xt,__wbg_now_4579335d3581594c:()=>gn,__wbg_now_8ed1a4454e40ecd1:()=>bn,__wbg_parse_3f0cb48976ca4123:()=>sn,__wbg_process_5b786e71d465a513:()=>Vn,__wbg_push_fd3233d09cf81821:()=>Bn,__wbg_randomFillSync_a0d98aa11c81fe89:()=>zn,__wbg_require_2784e593a4674877:()=>Gn,__wbg_resolve_a3252b2860f0a09e:()=>kt,__wbg_self_3fad056edded10bd:()=>it,__wbg_setTimeout_631fe61f31fa2fad:()=>rn,__wbg_set_0ac78a2bc07da03c:()=>Fn,__wbg_set_3355b9f2d3092e3b:()=>vn,__wbg_set_40f7786a25a9cc7e:()=>dt,__wbg_set_841ac57cff3d672b:()=>Mn,__wbg_set_dcfd613a3420f908:()=>pt,__wbg_set_wasm:()=>L,__wbg_stringify_4039297315a25b00:()=>wt,__wbg_subarray_6ca5cfa7fbb9abbe:()=>Pn,__wbg_then_1bbc9edafd859b06:()=>It,__wbg_then_89e1c559530b85cf:()=>Ft,__wbg_valueOf_ff4b62641803432a:()=>tt,__wbg_value_0570714ff7d75f35:()=>ot,__wbg_versions_c2ab80650590b6a2:()=>Qn,__wbg_window_a4f46c98a61d4089:()=>ut,__wbindgen_bigint_from_i64:()=>Tn,__wbindgen_bigint_from_u64:()=>Sn,__wbindgen_bigint_get_as_i64:()=>St,__wbindgen_boolean_get:()=>xn,__wbindgen_cb_drop:()=>qt,__wbindgen_closure_wrapper6830:()=>vt,__wbindgen_debug_string:()=>jt,__wbindgen_error_new:()=>tn,__wbindgen_in:()=>An,__wbindgen_is_bigint:()=>mn,__wbindgen_is_function:()=>Yn,__wbindgen_is_object:()=>ln,__wbindgen_is_string:()=>En,__wbindgen_is_undefined:()=>cn,__wbindgen_jsval_eq:()=>jn,__wbindgen_jsval_loose_eq:()=>mt,__wbindgen_memory:()=>Nn,__wbindgen_number_get:()=>hn,__wbindgen_number_new:()=>On,__wbindgen_object_clone_ref:()=>_n,__wbindgen_object_drop_ref:()=>wn,__wbindgen_string_get:()=>nn,__wbindgen_string_new:()=>on,__wbindgen_throw:()=>Ot,debug_panic:()=>K,getBuildTimeInfo:()=>G});module.exports=C(Et);var h=()=>{};h.prototype=h;let c;function L(n){c=n}const w=new Array(128).fill(void 0);w.push(void 0,null,!0,!1);function r(n){return w[n]}let a=0,T=null;function A(){return(T===null||T.byteLength===0)&&(T=new Uint8Array(c.memory.buffer)),T}const $=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let S=new $("utf-8");const z=typeof S.encodeInto=="function"?function(n,t){return S.encodeInto(n,t)}:function(n,t){const e=S.encode(n);return t.set(e),{read:n.length,written:e.length}};function l(n,t,e){if(e===void 0){const s=S.encode(n),p=t(s.length,1)>>>0;return A().subarray(p,p+s.length).set(s),a=s.length,p}let o=n.length,_=t(o,1)>>>0;const f=A();let u=0;for(;u<o;u++){const s=n.charCodeAt(u);if(s>127)break;f[_+u]=s}if(u!==o){u!==0&&(n=n.slice(u)),_=e(_,o,o=u+n.length*3,1)>>>0;const s=A().subarray(_+u,_+o),p=z(n,s);u+=p.written,_=e(_,o,u,1)>>>0}return a=u,_}function y(n){return n==null}let j=null;function d(){return(j===null||j.byteLength===0)&&(j=new Int32Array(c.memory.buffer)),j}const P=typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder;let k=new P("utf-8",{ignoreBOM:!0,fatal:!0});k.decode();function x(n,t){return n=n>>>0,k.decode(A().subarray(n,n+t))}let m=w.length;function i(n){m===w.length&&w.push(w.length+1);const t=m;return m=w[t],w[t]=n,t}function W(n){n<132||(w[n]=m,m=n)}function b(n){const t=r(n);return W(n),t}let O=null;function J(){return(O===null||O.byteLength===0)&&(O=new Float64Array(c.memory.buffer)),O}let q=null;function V(){return(q===null||q.byteLength===0)&&(q=new BigInt64Array(c.memory.buffer)),q}function I(n){const t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){const _=n.description;return _==null?"Symbol":`Symbol(${_})`}if(t=="function"){const _=n.name;return typeof _=="string"&&_.length>0?`Function(${_})`:"Function"}if(Array.isArray(n)){const _=n.length;let f="[";_>0&&(f+=I(n[0]));for(let u=1;u<_;u++)f+=", "+I(n[u]);return f+="]",f}const e=/\[object ([^\]]+)\]/.exec(toString.call(n));let o;if(e.length>1)o=e[1];else return toString.call(n);if(o=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
2
- ${n.stack}`:o}const v=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>{c.__wbindgen_export_2.get(n.dtor)(n.a,n.b)});function Q(n,t,e,o){const _={a:n,b:t,cnt:1,dtor:e},f=(...u)=>{_.cnt++;const s=_.a;_.a=0;try{return o(s,_.b,...u)}finally{--_.cnt===0?(c.__wbindgen_export_2.get(_.dtor)(s,_.b),v.unregister(_)):_.a=s}};return f.original=_,v.register(f,_,_),f}function H(n,t,e){c._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1d1ce90a2538b281(n,t,i(e))}function G(){const n=c.getBuildTimeInfo();return b(n)}function K(n){try{const f=c.__wbindgen_add_to_stack_pointer(-16);var t=y(n)?0:l(n,c.__wbindgen_malloc,c.__wbindgen_realloc),e=a;c.debug_panic(f,t,e);var o=d()[f/4+0],_=d()[f/4+1];if(_)throw b(o)}finally{c.__wbindgen_add_to_stack_pointer(16)}}function g(n,t){try{return n.apply(this,t)}catch(e){c.__wbindgen_exn_store(i(e))}}function X(n,t,e,o){c.wasm_bindgen__convert__closures__invoke2_mut__h46a92896c95d64ae(n,t,i(e),i(o))}const Y=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>c.__wbg_queryengine_free(n>>>0));class Z{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),t}free(){const t=this.__destroy_into_raw();c.__wbg_queryengine_free(t)}constructor(t,e,o){try{const s=c.__wbindgen_add_to_stack_pointer(-16);c.queryengine_new(s,i(t),i(e),i(o));var _=d()[s/4+0],f=d()[s/4+1],u=d()[s/4+2];if(u)throw b(f);return this.__wbg_ptr=_>>>0,this}finally{c.__wbindgen_add_to_stack_pointer(16)}}connect(t){const e=l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,_=c.queryengine_connect(this.__wbg_ptr,e,o);return b(_)}disconnect(t){const e=l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,_=c.queryengine_disconnect(this.__wbg_ptr,e,o);return b(_)}query(t,e,o){const _=l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a,u=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),s=a;var p=y(o)?0:l(o,c.__wbindgen_malloc,c.__wbindgen_realloc),E=a;const M=c.queryengine_query(this.__wbg_ptr,_,f,u,s,p,E);return b(M)}startTransaction(t,e){const o=l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,f=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_startTransaction(this.__wbg_ptr,o,_,f,u);return b(s)}commitTransaction(t,e){const o=l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,f=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_commitTransaction(this.__wbg_ptr,o,_,f,u);return b(s)}rollbackTransaction(t,e){const o=l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,f=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_rollbackTransaction(this.__wbg_ptr,o,_,f,u);return b(s)}metrics(t){const e=l(t,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,_=c.queryengine_metrics(this.__wbg_ptr,e,o);return b(_)}}function nn(n,t){const e=r(t),o=typeof e=="string"?e:void 0;var _=y(o)?0:l(o,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a;d()[n/4+1]=f,d()[n/4+0]=_}function tn(n,t){const e=new Error(x(n,t));return i(e)}function en(n,t){try{var e={a:n,b:t},o=(f,u)=>{const s=e.a;e.a=0;try{return X(s,e.b,f,u)}finally{e.a=s}};const _=new Promise(o);return i(_)}finally{e.a=e.b=0}}function rn(n,t){return setTimeout(r(n),t>>>0)}function on(n,t){const e=x(n,t);return i(e)}function _n(n){const t=r(n);return i(t)}function cn(n){return r(n)===void 0}function un(){return g(function(n,t){return Reflect.has(r(n),r(t))},arguments)}function sn(){return g(function(n,t){const e=JSON.parse(x(n,t));return i(e)},arguments)}function fn(){return i(new Date)}function an(n){return r(n).getTime()}function bn(n){return r(n).now()}function gn(){return Date.now()}function ln(n){const t=r(n);return typeof t=="object"&&t!==null}function dn(n){let t;try{t=r(n)instanceof Promise}catch{t=!1}return t}function wn(n){b(n)}function pn(n){return r(n).length}function yn(){return i(Symbol.iterator)}function xn(n){const t=r(n);return typeof t=="boolean"?t?1:0:2}function mn(n){return typeof r(n)=="bigint"}function hn(n,t){const e=r(t),o=typeof e=="number"?e:void 0;J()[n/8+1]=y(o)?0:o,d()[n/4+0]=!y(o)}function Tn(n){return i(n)}function An(n,t){return r(n)in r(t)}function Sn(n){const t=BigInt.asUintN(64,n);return i(t)}function jn(n,t){return r(n)===r(t)}function On(n){return i(n)}function qn(){const n=new Array;return i(n)}function Fn(n,t,e){r(n)[t>>>0]=b(e)}function In(){return i(new Map)}function kn(){const n=new Object;return i(n)}function vn(n,t,e){const o=r(n).set(r(t),r(e));return i(o)}function En(n){return typeof r(n)=="string"}function Mn(n,t,e){r(n)[b(t)]=b(e)}function Rn(n,t){const e=r(n)[r(t)];return i(e)}function Bn(n,t){return r(n).push(r(t))}function Un(){return g(function(n,t){const e=r(n)[b(t)];return i(e)},arguments)}function Dn(n,t){const e=String(r(t)),o=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a;d()[n/4+1]=_,d()[n/4+0]=o}function Nn(){const n=c.memory;return i(n)}function Cn(n){const t=r(n).buffer;return i(t)}function Ln(n,t,e){const o=new Uint8Array(r(n),t>>>0,e>>>0);return i(o)}function $n(n){const t=new Uint8Array(r(n));return i(t)}function zn(){return g(function(n,t){r(n).randomFillSync(b(t))},arguments)}function Pn(n,t,e){const o=r(n).subarray(t>>>0,e>>>0);return i(o)}function Wn(){return g(function(n,t){r(n).getRandomValues(r(t))},arguments)}function Jn(n){const t=r(n).crypto;return i(t)}function Vn(n){const t=r(n).process;return i(t)}function Qn(n){const t=r(n).versions;return i(t)}function Hn(n){const t=r(n).node;return i(t)}function Gn(){return g(function(){const n=module.require;return i(n)},arguments)}function Kn(n){const t=r(n).msCrypto;return i(t)}function Xn(n){const t=new Uint8Array(n>>>0);return i(t)}function Yn(n){return typeof r(n)=="function"}function Zn(){return g(function(n,t){const e=r(n).call(r(t));return i(e)},arguments)}function nt(n,t){const e=r(n)[t>>>0];return i(e)}function tt(n){return r(n).valueOf()}function et(){return g(function(n){const t=r(n).next();return i(t)},arguments)}function rt(n){return r(n).done}function ot(n){const t=r(n).value;return i(t)}function _t(n){const t=r(n).next;return i(t)}function ct(){return g(function(n,t){const e=Reflect.get(r(n),r(t));return i(e)},arguments)}function it(){return g(function(){const n=self.self;return i(n)},arguments)}function ut(){return g(function(){const n=window.window;return i(n)},arguments)}function st(){return g(function(){const n=globalThis.globalThis;return i(n)},arguments)}function ft(){return g(function(){const n=global.global;return i(n)},arguments)}function at(n,t){const e=new h(x(n,t));return i(e)}function bt(n){return Array.isArray(r(n))}function gt(){return g(function(n,t,e){const o=r(n).call(r(t),r(e));return i(o)},arguments)}function lt(n){return Number.isSafeInteger(r(n))}function dt(){return g(function(n,t,e){return Reflect.set(r(n),r(t),r(e))},arguments)}function wt(){return g(function(n){const t=JSON.stringify(r(n));return i(t)},arguments)}function pt(n,t,e){r(n).set(r(t),e>>>0)}function yt(n){return r(n).length}function xt(){return g(function(){return Date.now()},arguments)}function mt(n,t){return r(n)==r(t)}function ht(n){let t;try{t=r(n)instanceof Uint8Array}catch{t=!1}return t}function Tt(n){let t;try{t=r(n)instanceof ArrayBuffer}catch{t=!1}return t}function At(n){const t=Object.entries(r(n));return i(t)}function St(n,t){const e=r(t),o=typeof e=="bigint"?e:void 0;V()[n/8+1]=y(o)?BigInt(0):o,d()[n/4+0]=!y(o)}function jt(n,t){const e=I(r(t)),o=l(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a;d()[n/4+1]=_,d()[n/4+0]=o}function Ot(n,t){throw new Error(x(n,t))}function qt(n){const t=b(n).original;return t.cnt--==1?(t.a=0,!0):!1}function Ft(n,t){const e=r(n).then(r(t));return i(e)}function It(n,t,e){const o=r(n).then(r(t),r(e));return i(o)}function kt(n){const t=Promise.resolve(r(n));return i(t)}function vt(n,t,e){const o=Q(n,t,315,H);return i(o)}0&&(module.exports={QueryEngine,__wbg_String_88810dfeb4021902,__wbg_buffer_344d9b41efe96da7,__wbg_call_53fc3abd42e24ec8,__wbg_call_669127b9d730c650,__wbg_crypto_58f13aa23ffcb166,__wbg_done_bc26bf4ada718266,__wbg_entries_6d727b73ee02b7ce,__wbg_getRandomValues_504510b5564925af,__wbg_getTime_ed6ee333b702f8fc,__wbg_get_2aff440840bb6202,__wbg_get_4a9aa5157afeb382,__wbg_get_94990005bd6ca07c,__wbg_getwithrefkey_5e6d9547403deab8,__wbg_globalThis_17eff828815f7d84,__wbg_global_46f939f6541643c5,__wbg_has_cdf8b85f6e903c80,__wbg_instanceof_ArrayBuffer_c7cc317e5c29cc0d,__wbg_instanceof_Promise_cfbcc42300367513,__wbg_instanceof_Uint8Array_19e6f142a5e7e1e1,__wbg_isArray_38525be7442aa21e,__wbg_isSafeInteger_c38b0a16d0c7cef7,__wbg_iterator_7ee1a391d310f8e4,__wbg_length_a5587d6cd79ab197,__wbg_length_cace2e0b3ddc0502,__wbg_msCrypto_abcb1295e768d1f2,__wbg_new0_ad75dd38f92424e2,__wbg_new_08236689f0afb357,__wbg_new_1b94180eeb48f2a2,__wbg_new_c728d68b8b34487e,__wbg_new_d8a000788389a31e,__wbg_new_feb65b865d980ae2,__wbg_newnoargs_ccdcae30fd002262,__wbg_newwithbyteoffsetandlength_2dc04d99088b15e3,__wbg_newwithlength_13b5319ab422dcf6,__wbg_next_15da6a3df9290720,__wbg_next_1989a20442400aaa,__wbg_node_523d7bd03ef69fba,__wbg_now_28a6b413aca4a96a,__wbg_now_4579335d3581594c,__wbg_now_8ed1a4454e40ecd1,__wbg_parse_3f0cb48976ca4123,__wbg_process_5b786e71d465a513,__wbg_push_fd3233d09cf81821,__wbg_randomFillSync_a0d98aa11c81fe89,__wbg_require_2784e593a4674877,__wbg_resolve_a3252b2860f0a09e,__wbg_self_3fad056edded10bd,__wbg_setTimeout_631fe61f31fa2fad,__wbg_set_0ac78a2bc07da03c,__wbg_set_3355b9f2d3092e3b,__wbg_set_40f7786a25a9cc7e,__wbg_set_841ac57cff3d672b,__wbg_set_dcfd613a3420f908,__wbg_set_wasm,__wbg_stringify_4039297315a25b00,__wbg_subarray_6ca5cfa7fbb9abbe,__wbg_then_1bbc9edafd859b06,__wbg_then_89e1c559530b85cf,__wbg_valueOf_ff4b62641803432a,__wbg_value_0570714ff7d75f35,__wbg_versions_c2ab80650590b6a2,__wbg_window_a4f46c98a61d4089,__wbindgen_bigint_from_i64,__wbindgen_bigint_from_u64,__wbindgen_bigint_get_as_i64,__wbindgen_boolean_get,__wbindgen_cb_drop,__wbindgen_closure_wrapper6830,__wbindgen_debug_string,__wbindgen_error_new,__wbindgen_in,__wbindgen_is_bigint,__wbindgen_is_function,__wbindgen_is_object,__wbindgen_is_string,__wbindgen_is_undefined,__wbindgen_jsval_eq,__wbindgen_jsval_loose_eq,__wbindgen_memory,__wbindgen_number_get,__wbindgen_number_new,__wbindgen_object_clone_ref,__wbindgen_object_drop_ref,__wbindgen_string_get,__wbindgen_string_new,__wbindgen_throw,debug_panic,getBuildTimeInfo});
1
+ "use strict";var j=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var D=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var U=(t,e)=>{for(var n in e)j(t,n,{get:e[n],enumerable:!0})},B=(t,e,n,_)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of D(e))!M.call(t,o)&&o!==n&&j(t,o,{get:()=>e[o],enumerable:!(_=R(e,o))||_.enumerable});return t};var N=t=>B(j({},"__esModule",{value:!0}),t);var Oe={};U(Oe,{QueryEngine:()=>G,__wbg_String_88810dfeb4021902:()=>Ft,__wbg_buffer_344d9b41efe96da7:()=>Dt,__wbg_call_53fc3abd42e24ec8:()=>ue,__wbg_call_669127b9d730c650:()=>Ht,__wbg_crypto_58f13aa23ffcb166:()=>$t,__wbg_done_bc26bf4ada718266:()=>Yt,__wbg_entries_6d727b73ee02b7ce:()=>xe,__wbg_getRandomValues_504510b5564925af:()=>Nt,__wbg_getTime_ed6ee333b702f8fc:()=>it,__wbg_get_2aff440840bb6202:()=>ee,__wbg_get_4a9aa5157afeb382:()=>Gt,__wbg_get_94990005bd6ca07c:()=>Et,__wbg_getwithrefkey_5e6d9547403deab8:()=>kt,__wbg_globalThis_17eff828815f7d84:()=>_e,__wbg_global_46f939f6541643c5:()=>oe,__wbg_has_cdf8b85f6e903c80:()=>_t,__wbg_instanceof_ArrayBuffer_c7cc317e5c29cc0d:()=>pe,__wbg_instanceof_Promise_cfbcc42300367513:()=>ft,__wbg_instanceof_Uint8Array_19e6f142a5e7e1e1:()=>we,__wbg_isArray_38525be7442aa21e:()=>ie,__wbg_isSafeInteger_c38b0a16d0c7cef7:()=>se,__wbg_iterator_7ee1a391d310f8e4:()=>gt,__wbg_length_a5587d6cd79ab197:()=>ge,__wbg_length_cace2e0b3ddc0502:()=>bt,__wbg_msCrypto_abcb1295e768d1f2:()=>Wt,__wbg_new0_ad75dd38f92424e2:()=>ct,__wbg_new_08236689f0afb357:()=>Tt,__wbg_new_1b94180eeb48f2a2:()=>St,__wbg_new_c728d68b8b34487e:()=>At,__wbg_new_d8a000788389a31e:()=>Ut,__wbg_new_feb65b865d980ae2:()=>Y,__wbg_newnoargs_ccdcae30fd002262:()=>ce,__wbg_newwithbyteoffsetandlength_2dc04d99088b15e3:()=>Mt,__wbg_newwithlength_13b5319ab422dcf6:()=>Jt,__wbg_next_15da6a3df9290720:()=>te,__wbg_next_1989a20442400aaa:()=>Xt,__wbg_node_523d7bd03ef69fba:()=>Lt,__wbg_now_28a6b413aca4a96a:()=>de,__wbg_now_4579335d3581594c:()=>st,__wbg_now_8ed1a4454e40ecd1:()=>ut,__wbg_parse_3f0cb48976ca4123:()=>ot,__wbg_process_5b786e71d465a513:()=>Vt,__wbg_push_fd3233d09cf81821:()=>vt,__wbg_randomFillSync_a0d98aa11c81fe89:()=>Ct,__wbg_require_2784e593a4674877:()=>Pt,__wbg_resolve_a3252b2860f0a09e:()=>Ae,__wbg_self_3fad056edded10bd:()=>ne,__wbg_setTimeout_631fe61f31fa2fad:()=>Z,__wbg_set_0ac78a2bc07da03c:()=>It,__wbg_set_3355b9f2d3092e3b:()=>jt,__wbg_set_40f7786a25a9cc7e:()=>fe,__wbg_set_841ac57cff3d672b:()=>qt,__wbg_set_dcfd613a3420f908:()=>be,__wbg_set_wasm:()=>C,__wbg_stringify_4039297315a25b00:()=>ae,__wbg_subarray_6ca5cfa7fbb9abbe:()=>Bt,__wbg_then_1bbc9edafd859b06:()=>Se,__wbg_then_89e1c559530b85cf:()=>Ie,__wbg_valueOf_ff4b62641803432a:()=>Kt,__wbg_value_0570714ff7d75f35:()=>Zt,__wbg_versions_c2ab80650590b6a2:()=>zt,__wbg_window_a4f46c98a61d4089:()=>re,__wbindgen_bigint_from_i64:()=>pt,__wbindgen_bigint_from_u64:()=>yt,__wbindgen_bigint_get_as_i64:()=>me,__wbindgen_boolean_get:()=>dt,__wbindgen_cb_drop:()=>Te,__wbindgen_closure_wrapper6746:()=>je,__wbindgen_debug_string:()=>he,__wbindgen_error_new:()=>X,__wbindgen_in:()=>xt,__wbindgen_is_bigint:()=>lt,__wbindgen_is_function:()=>Qt,__wbindgen_is_object:()=>at,__wbindgen_is_string:()=>Ot,__wbindgen_is_undefined:()=>rt,__wbindgen_jsval_eq:()=>mt,__wbindgen_jsval_loose_eq:()=>le,__wbindgen_memory:()=>Rt,__wbindgen_number_get:()=>wt,__wbindgen_number_new:()=>ht,__wbindgen_object_clone_ref:()=>nt,__wbindgen_object_drop_ref:()=>tt,__wbindgen_string_get:()=>K,__wbindgen_string_new:()=>et,__wbindgen_throw:()=>ye,debug_panic:()=>Q,getBuildTimeInfo:()=>J});module.exports=N(Oe);var T=()=>{};T.prototype=T;let c;function C(t){c=t}const w=new Array(128).fill(void 0);w.push(void 0,null,!0,!1);function r(t){return w[t]}let a=0,I=null;function S(){return(I===null||I.byteLength===0)&&(I=new Uint8Array(c.memory.buffer)),I}const $=typeof TextEncoder>"u"?(0,module.require)("util").TextEncoder:TextEncoder;let A=new $("utf-8");const V=typeof A.encodeInto=="function"?function(t,e){return A.encodeInto(t,e)}:function(t,e){const n=A.encode(t);return e.set(n),{read:t.length,written:n.length}};function d(t,e,n){if(n===void 0){const s=A.encode(t),p=e(s.length,1)>>>0;return S().subarray(p,p+s.length).set(s),a=s.length,p}let _=t.length,o=e(_,1)>>>0;const f=S();let u=0;for(;u<_;u++){const s=t.charCodeAt(u);if(s>127)break;f[o+u]=s}if(u!==_){u!==0&&(t=t.slice(u)),o=n(o,_,_=u+t.length*3,1)>>>0;const s=S().subarray(o+u,o+_),p=V(t,s);u+=p.written,o=n(o,_,u,1)>>>0}return a=u,o}function x(t){return t==null}let y=null;function l(){return(y===null||y.buffer.detached===!0||y.buffer.detached===void 0&&y.buffer!==c.memory.buffer)&&(y=new DataView(c.memory.buffer)),y}const z=typeof TextDecoder>"u"?(0,module.require)("util").TextDecoder:TextDecoder;let q=new z("utf-8",{ignoreBOM:!0,fatal:!0});q.decode();function m(t,e){return t=t>>>0,q.decode(S().subarray(t,t+e))}let h=w.length;function i(t){h===w.length&&w.push(w.length+1);const e=h;return h=w[e],w[e]=t,e}function L(t){t<132||(w[t]=h,h=t)}function b(t){const e=r(t);return L(t),e}function O(t){const e=typeof t;if(e=="number"||e=="boolean"||t==null)return`${t}`;if(e=="string")return`"${t}"`;if(e=="symbol"){const o=t.description;return o==null?"Symbol":`Symbol(${o})`}if(e=="function"){const o=t.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(t)){const o=t.length;let f="[";o>0&&(f+=O(t[0]));for(let u=1;u<o;u++)f+=", "+O(t[u]);return f+="]",f}const n=/\[object ([^\]]+)\]/.exec(toString.call(t));let _;if(n.length>1)_=n[1];else return toString.call(t);if(_=="Object")try{return"Object("+JSON.stringify(t)+")"}catch{return"Object"}return t instanceof Error?`${t.name}: ${t.message}
2
+ ${t.stack}`:_}const k=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>{c.__wbindgen_export_2.get(t.dtor)(t.a,t.b)});function P(t,e,n,_){const o={a:t,b:e,cnt:1,dtor:n},f=(...u)=>{o.cnt++;const s=o.a;o.a=0;try{return _(s,o.b,...u)}finally{--o.cnt===0?(c.__wbindgen_export_2.get(o.dtor)(s,o.b),k.unregister(o)):o.a=s}};return f.original=o,k.register(f,o,o),f}function W(t,e,n){c._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9eef02caf99553a1(t,e,i(n))}function J(){const t=c.getBuildTimeInfo();return b(t)}function Q(t){try{const f=c.__wbindgen_add_to_stack_pointer(-16);var e=x(t)?0:d(t,c.__wbindgen_malloc,c.__wbindgen_realloc),n=a;c.debug_panic(f,e,n);var _=l().getInt32(f+4*0,!0),o=l().getInt32(f+4*1,!0);if(o)throw b(_)}finally{c.__wbindgen_add_to_stack_pointer(16)}}function g(t,e){try{return t.apply(this,e)}catch(n){c.__wbindgen_exn_store(i(n))}}function H(t,e,n,_){c.wasm_bindgen__convert__closures__invoke2_mut__h174c8485536aed69(t,e,i(n),i(_))}const v=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>c.__wbg_queryengine_free(t>>>0,1));class G{__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,v.unregister(this),e}free(){const e=this.__destroy_into_raw();c.__wbg_queryengine_free(e,0)}constructor(e,n,_){try{const s=c.__wbindgen_add_to_stack_pointer(-16);c.queryengine_new(s,i(e),i(n),i(_));var o=l().getInt32(s+4*0,!0),f=l().getInt32(s+4*1,!0),u=l().getInt32(s+4*2,!0);if(u)throw b(f);return this.__wbg_ptr=o>>>0,v.register(this,this.__wbg_ptr,this),this}finally{c.__wbindgen_add_to_stack_pointer(16)}}connect(e){const n=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_connect(this.__wbg_ptr,n,_);return b(o)}disconnect(e){const n=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_disconnect(this.__wbg_ptr,n,_);return b(o)}query(e,n,_){const o=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a,u=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),s=a;var p=x(_)?0:d(_,c.__wbindgen_malloc,c.__wbindgen_realloc),E=a;const F=c.queryengine_query(this.__wbg_ptr,o,f,u,s,p,E);return b(F)}startTransaction(e,n){const _=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_startTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}commitTransaction(e,n){const _=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_commitTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}rollbackTransaction(e,n){const _=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a,f=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),u=a,s=c.queryengine_rollbackTransaction(this.__wbg_ptr,_,o,f,u);return b(s)}metrics(e){const n=d(e,c.__wbindgen_malloc,c.__wbindgen_realloc),_=a,o=c.queryengine_metrics(this.__wbg_ptr,n,_);return b(o)}}function K(t,e){const n=r(e),_=typeof n=="string"?n:void 0;var o=x(_)?0:d(_,c.__wbindgen_malloc,c.__wbindgen_realloc),f=a;l().setInt32(t+4*1,f,!0),l().setInt32(t+4*0,o,!0)}function X(t,e){const n=new Error(m(t,e));return i(n)}function Y(t,e){try{var n={a:t,b:e},_=(f,u)=>{const s=n.a;n.a=0;try{return H(s,n.b,f,u)}finally{n.a=s}};const o=new Promise(_);return i(o)}finally{n.a=n.b=0}}function Z(t,e){return setTimeout(r(t),e>>>0)}function tt(t){b(t)}function et(t,e){const n=m(t,e);return i(n)}function nt(t){const e=r(t);return i(e)}function rt(t){return r(t)===void 0}function _t(){return g(function(t,e){return Reflect.has(r(t),r(e))},arguments)}function ot(){return g(function(t,e){const n=JSON.parse(m(t,e));return i(n)},arguments)}function ct(){return i(new Date)}function it(t){return r(t).getTime()}function ut(t){return r(t).now()}function st(){return Date.now()}function ft(t){let e;try{e=r(t)instanceof Promise}catch{e=!1}return e}function at(t){const e=r(t);return typeof e=="object"&&e!==null}function bt(t){return r(t).length}function gt(){return i(Symbol.iterator)}function dt(t){const e=r(t);return typeof e=="boolean"?e?1:0:2}function lt(t){return typeof r(t)=="bigint"}function wt(t,e){const n=r(e),_=typeof n=="number"?n:void 0;l().setFloat64(t+8*1,x(_)?0:_,!0),l().setInt32(t+4*0,!x(_),!0)}function pt(t){return i(t)}function xt(t,e){return r(t)in r(e)}function yt(t){const e=BigInt.asUintN(64,t);return i(e)}function mt(t,e){return r(t)===r(e)}function ht(t){return i(t)}function Tt(){const t=new Array;return i(t)}function It(t,e,n){r(t)[e>>>0]=b(n)}function St(){return i(new Map)}function At(){const t=new Object;return i(t)}function jt(t,e,n){const _=r(t).set(r(e),r(n));return i(_)}function Ot(t){return typeof r(t)=="string"}function qt(t,e,n){r(t)[b(e)]=b(n)}function kt(t,e){const n=r(t)[r(e)];return i(n)}function vt(t,e){return r(t).push(r(e))}function Et(){return g(function(t,e){const n=r(t)[b(e)];return i(n)},arguments)}function Ft(t,e){const n=String(r(e)),_=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a;l().setInt32(t+4*1,o,!0),l().setInt32(t+4*0,_,!0)}function Rt(){const t=c.memory;return i(t)}function Dt(t){const e=r(t).buffer;return i(e)}function Mt(t,e,n){const _=new Uint8Array(r(t),e>>>0,n>>>0);return i(_)}function Ut(t){const e=new Uint8Array(r(t));return i(e)}function Bt(t,e,n){const _=r(t).subarray(e>>>0,n>>>0);return i(_)}function Nt(){return g(function(t,e){r(t).getRandomValues(r(e))},arguments)}function Ct(){return g(function(t,e){r(t).randomFillSync(b(e))},arguments)}function $t(t){const e=r(t).crypto;return i(e)}function Vt(t){const e=r(t).process;return i(e)}function zt(t){const e=r(t).versions;return i(e)}function Lt(t){const e=r(t).node;return i(e)}function Pt(){return g(function(){const t=module.require;return i(t)},arguments)}function Wt(t){const e=r(t).msCrypto;return i(e)}function Jt(t){const e=new Uint8Array(t>>>0);return i(e)}function Qt(t){return typeof r(t)=="function"}function Ht(){return g(function(t,e){const n=r(t).call(r(e));return i(n)},arguments)}function Gt(t,e){const n=r(t)[e>>>0];return i(n)}function Kt(t){return r(t).valueOf()}function Xt(){return g(function(t){const e=r(t).next();return i(e)},arguments)}function Yt(t){return r(t).done}function Zt(t){const e=r(t).value;return i(e)}function te(t){const e=r(t).next;return i(e)}function ee(){return g(function(t,e){const n=Reflect.get(r(t),r(e));return i(n)},arguments)}function ne(){return g(function(){const t=self.self;return i(t)},arguments)}function re(){return g(function(){const t=window.window;return i(t)},arguments)}function _e(){return g(function(){const t=globalThis.globalThis;return i(t)},arguments)}function oe(){return g(function(){const t=global.global;return i(t)},arguments)}function ce(t,e){const n=new T(m(t,e));return i(n)}function ie(t){return Array.isArray(r(t))}function ue(){return g(function(t,e,n){const _=r(t).call(r(e),r(n));return i(_)},arguments)}function se(t){return Number.isSafeInteger(r(t))}function fe(){return g(function(t,e,n){return Reflect.set(r(t),r(e),r(n))},arguments)}function ae(){return g(function(t){const e=JSON.stringify(r(t));return i(e)},arguments)}function be(t,e,n){r(t).set(r(e),n>>>0)}function ge(t){return r(t).length}function de(){return g(function(){return Date.now()},arguments)}function le(t,e){return r(t)==r(e)}function we(t){let e;try{e=r(t)instanceof Uint8Array}catch{e=!1}return e}function pe(t){let e;try{e=r(t)instanceof ArrayBuffer}catch{e=!1}return e}function xe(t){const e=Object.entries(r(t));return i(e)}function ye(t,e){throw new Error(m(t,e))}function me(t,e){const n=r(e),_=typeof n=="bigint"?n:void 0;l().setBigInt64(t+8*1,x(_)?BigInt(0):_,!0),l().setInt32(t+4*0,!x(_),!0)}function he(t,e){const n=O(r(e)),_=d(n,c.__wbindgen_malloc,c.__wbindgen_realloc),o=a;l().setInt32(t+4*1,o,!0),l().setInt32(t+4*0,_,!0)}function Te(t){const e=b(t).original;return e.cnt--==1?(e.a=0,!0):!1}function Ie(t,e){const n=r(t).then(r(e));return i(n)}function Se(t,e,n){const _=r(t).then(r(e),r(n));return i(_)}function Ae(t){const e=Promise.resolve(r(t));return i(e)}function je(t,e,n){const _=P(t,e,537,W);return i(_)}0&&(module.exports={QueryEngine,__wbg_String_88810dfeb4021902,__wbg_buffer_344d9b41efe96da7,__wbg_call_53fc3abd42e24ec8,__wbg_call_669127b9d730c650,__wbg_crypto_58f13aa23ffcb166,__wbg_done_bc26bf4ada718266,__wbg_entries_6d727b73ee02b7ce,__wbg_getRandomValues_504510b5564925af,__wbg_getTime_ed6ee333b702f8fc,__wbg_get_2aff440840bb6202,__wbg_get_4a9aa5157afeb382,__wbg_get_94990005bd6ca07c,__wbg_getwithrefkey_5e6d9547403deab8,__wbg_globalThis_17eff828815f7d84,__wbg_global_46f939f6541643c5,__wbg_has_cdf8b85f6e903c80,__wbg_instanceof_ArrayBuffer_c7cc317e5c29cc0d,__wbg_instanceof_Promise_cfbcc42300367513,__wbg_instanceof_Uint8Array_19e6f142a5e7e1e1,__wbg_isArray_38525be7442aa21e,__wbg_isSafeInteger_c38b0a16d0c7cef7,__wbg_iterator_7ee1a391d310f8e4,__wbg_length_a5587d6cd79ab197,__wbg_length_cace2e0b3ddc0502,__wbg_msCrypto_abcb1295e768d1f2,__wbg_new0_ad75dd38f92424e2,__wbg_new_08236689f0afb357,__wbg_new_1b94180eeb48f2a2,__wbg_new_c728d68b8b34487e,__wbg_new_d8a000788389a31e,__wbg_new_feb65b865d980ae2,__wbg_newnoargs_ccdcae30fd002262,__wbg_newwithbyteoffsetandlength_2dc04d99088b15e3,__wbg_newwithlength_13b5319ab422dcf6,__wbg_next_15da6a3df9290720,__wbg_next_1989a20442400aaa,__wbg_node_523d7bd03ef69fba,__wbg_now_28a6b413aca4a96a,__wbg_now_4579335d3581594c,__wbg_now_8ed1a4454e40ecd1,__wbg_parse_3f0cb48976ca4123,__wbg_process_5b786e71d465a513,__wbg_push_fd3233d09cf81821,__wbg_randomFillSync_a0d98aa11c81fe89,__wbg_require_2784e593a4674877,__wbg_resolve_a3252b2860f0a09e,__wbg_self_3fad056edded10bd,__wbg_setTimeout_631fe61f31fa2fad,__wbg_set_0ac78a2bc07da03c,__wbg_set_3355b9f2d3092e3b,__wbg_set_40f7786a25a9cc7e,__wbg_set_841ac57cff3d672b,__wbg_set_dcfd613a3420f908,__wbg_set_wasm,__wbg_stringify_4039297315a25b00,__wbg_subarray_6ca5cfa7fbb9abbe,__wbg_then_1bbc9edafd859b06,__wbg_then_89e1c559530b85cf,__wbg_valueOf_ff4b62641803432a,__wbg_value_0570714ff7d75f35,__wbg_versions_c2ab80650590b6a2,__wbg_window_a4f46c98a61d4089,__wbindgen_bigint_from_i64,__wbindgen_bigint_from_u64,__wbindgen_bigint_get_as_i64,__wbindgen_boolean_get,__wbindgen_cb_drop,__wbindgen_closure_wrapper6746,__wbindgen_debug_string,__wbindgen_error_new,__wbindgen_in,__wbindgen_is_bigint,__wbindgen_is_function,__wbindgen_is_object,__wbindgen_is_string,__wbindgen_is_undefined,__wbindgen_jsval_eq,__wbindgen_jsval_loose_eq,__wbindgen_memory,__wbindgen_number_get,__wbindgen_number_new,__wbindgen_object_clone_ref,__wbindgen_object_drop_ref,__wbindgen_string_get,__wbindgen_string_new,__wbindgen_throw,debug_panic,getBuildTimeInfo});
@@ -1137,6 +1137,7 @@ declare type EngineSpan = {
1137
1137
  trace_id: string;
1138
1138
  span_id: string;
1139
1139
  }[];
1140
+ kind: EngineSpanKind;
1140
1141
  };
1141
1142
 
1142
1143
  declare type EngineSpanEvent = {
@@ -1144,6 +1145,8 @@ declare type EngineSpanEvent = {
1144
1145
  spans: EngineSpan[];
1145
1146
  };
1146
1147
 
1148
+ declare type EngineSpanKind = 'client' | 'internal';
1149
+
1147
1150
  declare type EnvPaths = {
1148
1151
  rootEnvPath: string | null;
1149
1152
  schemaEnvPath: string | undefined;
@@ -1909,7 +1912,7 @@ export declare type JsonObject = {
1909
1912
  [Key in string]?: JsonValue;
1910
1913
  };
1911
1914
 
1912
- declare type JsonQuery = {
1915
+ export declare type JsonQuery = {
1913
1916
  modelName?: string;
1914
1917
  action: JsonQueryAction;
1915
1918
  query: JsonFieldSelection;