@aave/client 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/AaveClient-C-OkXfVz.d.ts +85 -0
  2. package/dist/AaveClient-PHUEzt7l.d.cts +85 -0
  3. package/dist/actions/index.cjs +2 -0
  4. package/dist/actions/index.cjs.map +1 -0
  5. package/dist/actions/index.d.cts +1117 -0
  6. package/dist/actions/index.d.ts +1117 -0
  7. package/dist/actions/index.js +2 -0
  8. package/dist/actions/index.js.map +1 -0
  9. package/dist/chunk-BLZHGYNH.js +2 -0
  10. package/dist/chunk-BLZHGYNH.js.map +1 -0
  11. package/dist/chunk-FW4363Y4.js +2 -0
  12. package/dist/chunk-FW4363Y4.js.map +1 -0
  13. package/dist/chunk-QQSK6HIZ.js +3 -0
  14. package/dist/chunk-QQSK6HIZ.js.map +1 -0
  15. package/dist/chunk-V4DWF6LT.js +3 -0
  16. package/dist/chunk-V4DWF6LT.js.map +1 -0
  17. package/dist/ethers.cjs +2 -0
  18. package/dist/ethers.cjs.map +1 -0
  19. package/dist/ethers.d.cts +22 -0
  20. package/dist/ethers.d.ts +22 -0
  21. package/dist/ethers.js +2 -0
  22. package/dist/ethers.js.map +1 -0
  23. package/dist/index.cjs +3 -0
  24. package/dist/index.cjs.map +1 -0
  25. package/dist/index.d.cts +22 -0
  26. package/dist/index.d.ts +22 -0
  27. package/dist/index.js +2 -0
  28. package/dist/index.js.map +1 -0
  29. package/dist/magic-string.es-PTUXR566.js +14 -0
  30. package/dist/magic-string.es-PTUXR566.js.map +1 -0
  31. package/dist/privy.cjs +3 -0
  32. package/dist/privy.cjs.map +1 -0
  33. package/dist/privy.d.cts +18 -0
  34. package/dist/privy.d.ts +18 -0
  35. package/dist/privy.js +2 -0
  36. package/dist/privy.js.map +1 -0
  37. package/dist/test-utils.cjs +450 -0
  38. package/dist/test-utils.cjs.map +1 -0
  39. package/dist/test-utils.d.cts +41 -0
  40. package/dist/test-utils.d.ts +41 -0
  41. package/dist/test-utils.js +438 -0
  42. package/dist/test-utils.js.map +1 -0
  43. package/dist/thirdweb.cjs +3 -0
  44. package/dist/thirdweb.cjs.map +1 -0
  45. package/dist/thirdweb.d.cts +18 -0
  46. package/dist/thirdweb.d.ts +18 -0
  47. package/dist/thirdweb.js +3 -0
  48. package/dist/thirdweb.js.map +1 -0
  49. package/dist/types-ieyj0UmJ.d.cts +16 -0
  50. package/dist/types-ieyj0UmJ.d.ts +16 -0
  51. package/dist/viem.cjs +3 -0
  52. package/dist/viem.cjs.map +1 -0
  53. package/dist/viem.d.cts +30 -0
  54. package/dist/viem.d.ts +30 -0
  55. package/dist/viem.js +2 -0
  56. package/dist/viem.js.map +1 -0
  57. package/package.json +4 -3
@@ -0,0 +1,450 @@
1
+ 'use strict';var core=require('@aave/core'),testUtils=require('@aave/graphql/test-utils'),types=require('@aave/types'),graphql$1=require('graphql'),viem=require('viem'),accounts=require('viem/accounts'),graphql=require('@aave/graphql');var jh=Object.create;var To=Object.defineProperty;var Fh=Object.getOwnPropertyDescriptor;var Dh=Object.getOwnPropertyNames;var Lh=Object.getPrototypeOf,qh=Object.prototype.hasOwnProperty;var pa=(e,t)=>()=>(e&&(t=e(e=0)),t);var Lt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Bh=(e,t)=>{for(var n in t)To(e,n,{get:t[n],enumerable:true});},Uh=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Dh(t))!qh.call(e,o)&&o!==n&&To(e,o,{get:()=>t[o],enumerable:!(r=Fh(t,o))||r.enumerable});return e};var ma=(e,t,n)=>(n=e!=null?jh(Lh(e)):{},Uh(To(n,"default",{value:e,enumerable:true}),e));var xu=Lt((iS,Su)=>{var wu,qr,Br,Ur,zr,Wr,En,ds,xn,Jr,vu,Vr,Sn,Kr,Hr,Xr,Rt,Eu,Gr,Yr;Kr=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]?|[^\/[\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu;Sn=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y;qr=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu;Xr=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y;Vr=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y;Rt=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y;Yr=/[\t\v\f\ufeff\p{Zs}]+/yu;xn=/\r?\n|[\r\u2028\u2029]/y;Jr=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y;Hr=/\/\/.*/y;wu=/^#!.*/;Ur=/[<>.:={}]|\/(?![\/*])/y;Br=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu;zr=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y;Wr=/[^<>{}]+/y;Gr=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/;Eu=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/;En=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/;ds=/^(?:return|throw|yield)$/;vu=RegExp(xn.source);Su.exports=function*(e,{jsx:t=false}={}){var n,r,o,i,s,a,c,l,u,f,p,h,m,d;for({length:a}=e,i=0,s="",d=[{tag:"JS"}],n=[],p=0,h=false,(c=wu.exec(e))&&(yield {type:"HashbangComment",value:c[0]},i=c[0].length);i<a;){switch(l=d[d.length-1],l.tag){case "JS":case "JSNonExpressionParen":case "InterpolationInTemplate":case "InterpolationInJSX":if(e[i]==="/"&&(Gr.test(s)||En.test(s))&&(Kr.lastIndex=i,c=Kr.exec(e))){i=Kr.lastIndex,s=c[0],h=true,yield {type:"RegularExpressionLiteral",value:c[0],closed:c[1]!==void 0&&c[1]!=="\\"};continue}if(Sn.lastIndex=i,c=Sn.exec(e)){switch(m=c[0],u=Sn.lastIndex,f=m,m){case "(":s==="?NonExpressionParenKeyword"&&d.push({tag:"JSNonExpressionParen",nesting:p}),p++,h=false;break;case ")":p--,h=true,l.tag==="JSNonExpressionParen"&&p===l.nesting&&(d.pop(),f="?NonExpressionParenEnd",h=false);break;case "{":Sn.lastIndex=0,o=!Eu.test(s)&&(Gr.test(s)||En.test(s)),n.push(o),h=false;break;case "}":switch(l.tag){case "InterpolationInTemplate":if(n.length===l.nesting){Rt.lastIndex=i,c=Rt.exec(e),i=Rt.lastIndex,s=c[0],c[1]==="${"?(s="?InterpolationInTemplate",h=false,yield {type:"TemplateMiddle",value:c[0]}):(d.pop(),h=true,yield {type:"TemplateTail",value:c[0],closed:c[1]==="`"});continue}break;case "InterpolationInJSX":if(n.length===l.nesting){d.pop(),i+=1,s="}",yield {type:"JSXPunctuator",value:"}"};continue}}h=n.pop(),f=h?"?ExpressionBraceEnd":"}";break;case "]":h=true;break;case "++":case "--":f=h?"?PostfixIncDec":"?UnaryIncDec";break;case "<":if(t&&(Gr.test(s)||En.test(s))){d.push({tag:"JSXTag"}),i+=1,s="<",yield {type:"JSXPunctuator",value:m};continue}h=false;break;default:h=false;}i=u,s=f,yield {type:"Punctuator",value:m};continue}if(qr.lastIndex=i,c=qr.exec(e)){switch(i=qr.lastIndex,f=c[0],c[0]){case "for":case "if":case "while":case "with":s!=="."&&s!=="?."&&(f="?NonExpressionParenKeyword");}s=f,h=!En.test(c[0]),yield {type:c[1]==="#"?"PrivateIdentifier":"IdentifierName",value:c[0]};continue}if(Xr.lastIndex=i,c=Xr.exec(e)){i=Xr.lastIndex,s=c[0],h=true,yield {type:"StringLiteral",value:c[0],closed:c[2]!==void 0};continue}if(Vr.lastIndex=i,c=Vr.exec(e)){i=Vr.lastIndex,s=c[0],h=true,yield {type:"NumericLiteral",value:c[0]};continue}if(Rt.lastIndex=i,c=Rt.exec(e)){i=Rt.lastIndex,s=c[0],c[1]==="${"?(s="?InterpolationInTemplate",d.push({tag:"InterpolationInTemplate",nesting:n.length}),h=false,yield {type:"TemplateHead",value:c[0]}):(h=true,yield {type:"NoSubstitutionTemplate",value:c[0],closed:c[1]==="`"});continue}break;case "JSXTag":case "JSXTagEnd":if(Ur.lastIndex=i,c=Ur.exec(e)){switch(i=Ur.lastIndex,f=c[0],c[0]){case "<":d.push({tag:"JSXTag"});break;case ">":d.pop(),s==="/"||l.tag==="JSXTagEnd"?(f="?JSX",h=true):d.push({tag:"JSXChildren"});break;case "{":d.push({tag:"InterpolationInJSX",nesting:n.length}),f="?InterpolationInJSX",h=false;break;case "/":s==="<"&&(d.pop(),d[d.length-1].tag==="JSXChildren"&&d.pop(),d.push({tag:"JSXTagEnd"}));}s=f,yield {type:"JSXPunctuator",value:c[0]};continue}if(Br.lastIndex=i,c=Br.exec(e)){i=Br.lastIndex,s=c[0],yield {type:"JSXIdentifier",value:c[0]};continue}if(zr.lastIndex=i,c=zr.exec(e)){i=zr.lastIndex,s=c[0],yield {type:"JSXString",value:c[0],closed:c[2]!==void 0};continue}break;case "JSXChildren":if(Wr.lastIndex=i,c=Wr.exec(e)){i=Wr.lastIndex,s=c[0],yield {type:"JSXText",value:c[0]};continue}switch(e[i]){case "<":d.push({tag:"JSXTag"}),i++,s="<",yield {type:"JSXPunctuator",value:"<"};continue;case "{":d.push({tag:"InterpolationInJSX",nesting:n.length}),i++,s="?InterpolationInJSX",h=false,yield {type:"JSXPunctuator",value:"{"};continue}}if(Yr.lastIndex=i,c=Yr.exec(e)){i=Yr.lastIndex,yield {type:"WhiteSpace",value:c[0]};continue}if(xn.lastIndex=i,c=xn.exec(e)){i=xn.lastIndex,h=false,ds.test(s)&&(s="?NoLineTerminatorHere"),yield {type:"LineTerminatorSequence",value:c[0]};continue}if(Jr.lastIndex=i,c=Jr.exec(e)){i=Jr.lastIndex,vu.test(c[0])&&(h=false,ds.test(s)&&(s="?NoLineTerminatorHere")),yield {type:"MultiLineComment",value:c[0],closed:c[1]!==void 0};continue}if(Hr.lastIndex=i,c=Hr.exec(e)){i=Hr.lastIndex,h=false,yield {type:"SingleLineComment",value:c[0]};continue}r=String.fromCodePoint(e.codePointAt(i)),i+=r.length,s=r,h=false,yield {type:l.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:r};}};});function Cn(e,t,n){let r=t-n;r=r<0?-r<<1|1:r<<1;do{let o=r&31;r>>>=5,r>0&&(o|=32),e.write(rf[o]);}while(r>0);return t}function of(e){let t=new Py,n=0,r=0,o=0,i=0;for(let s=0;s<e.length;s++){let a=e[s];if(s>0&&t.write(Iy),a.length===0)continue;let c=0;for(let l=0;l<a.length;l++){let u=a[l];l>0&&t.write(Ay),c=Cn(t,u[0],c),u.length!==1&&(n=Cn(t,u[1],n),r=Cn(t,u[2],r),o=Cn(t,u[3],o),u.length!==4&&(i=Cn(t,u[4],i)));}}return t.flush()}var Ay,Iy,ef,rf,Oy,tf,nf,Py,sf=pa(()=>{Ay=44,Iy=59,ef="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rf=new Uint8Array(64),Oy=new Uint8Array(128);for(let e=0;e<ef.length;e++){let t=ef.charCodeAt(e);rf[e]=t,Oy[t]=e;}tf=1024*16,nf=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}},Py=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(tf);}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===tf&&(this.out+=nf.decode(t),this.pos=0);}flush(){let{buffer:e,out:t,pos:n}=this;return n>0?t+nf.decode(e.subarray(0,n)):t}};});var uf={};Bh(uf,{Bundle:()=>As,SourceMap:()=>In,default:()=>On});function $y(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}function ky(e){let t=e.split(`
2
+ `),n=t.filter(i=>/^\t+/.test(i)),r=t.filter(i=>/^ {2,}/.test(i));if(n.length===0&&r.length===0)return null;if(n.length>=r.length)return " ";let o=r.reduce((i,s)=>{let a=/^ +/.exec(s)[0].length;return Math.min(a,i)},1/0);return new Array(o+1).join(" ")}function cf(e,t){let n=e.split(/[/\\]/),r=t.split(/[/\\]/);for(n.pop();n[0]===r[0];)n.shift(),r.shift();if(n.length){let o=n.length;for(;o--;)n[o]="..";}return n.concat(r).join("/")}function lf(e){return My.call(e)==="[object Object]"}function Cs(e){let t=e.split(`
3
+ `),n=[];for(let r=0,o=0;r<t.length;r++)n.push(o),o+=t[r].length+1;return function(o){let i=0,s=n.length;for(;i<s;){let l=i+s>>1;o<n[l]?s=l:i=l+1;}let a=i-1,c=o-n[a];return {line:a,column:c}}}var oo,io,Ny,In,My,Ry,so,An,Yt,On,af,As,ff=pa(()=>{sf();oo=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[];}add(t){this.bits[t>>5]|=1<<(t&31);}has(t){return !!(this.bits[t>>5]&1<<(t&31))}},io=class e{constructor(t,n,r){this.start=t,this.end=n,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=false,this.edited=false,this.previous=null,this.next=null;}appendLeft(t){this.outro+=t;}appendRight(t){this.intro=this.intro+t;}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let n=this;for(;n;)t(n),n=n.next;}eachPrevious(t){let n=this;for(;n;)t(n),n=n.previous;}edit(t,n,r){return this.content=t,r||(this.intro="",this.outro=""),this.storeName=n,this.edited=true,this}prependLeft(t){this.outro=t+this.outro;}prependRight(t){this.intro=t+this.intro;}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=false,this.edited=false);}split(t){let n=t-this.start,r=this.original.slice(0,n),o=this.original.slice(n);this.original=r;let i=new e(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",false),this.content=""):this.content=r,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return true;let n=this.content.replace(t,"");if(n.length)return n!==this.content&&(this.split(this.start+n.length).edit("",void 0,true),this.edited&&this.edit(n,this.storeName,true)),true;if(this.edit("",void 0,true),this.intro=this.intro.replace(t,""),this.intro.length)return true}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return true;let n=this.content.replace(t,"");if(n.length){if(n!==this.content){let r=this.split(this.end-n.length);this.edited&&r.edit(n,this.storeName,true),this.edit("",void 0,true);}return true}else if(this.edit("",void 0,true),this.outro=this.outro.replace(t,""),this.outro.length)return true}};Ny=$y(),In=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=of(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList),typeof t.debugId<"u"&&(this.debugId=t.debugId);}toString(){return JSON.stringify(this)}toUrl(){return "data:application/json;charset=utf-8;base64,"+Ny(this.toString())}};My=Object.prototype.toString;Ry=/\w/,so=class{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null;}addEdit(t,n,r,o){if(n.length){let i=n.length-1,s=n.indexOf(`
4
+ `,0),a=-1;for(;s>=0&&i>s;){let l=[this.generatedCodeColumn,t,r.line,r.column];o>=0&&l.push(o),this.rawSegments.push(l),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,a=s,s=n.indexOf(`
5
+ `,s+1);}let c=[this.generatedCodeColumn,t,r.line,r.column];o>=0&&c.push(o),this.rawSegments.push(c),this.advance(n.slice(a+1));}else this.pending&&(this.rawSegments.push(this.pending),this.advance(n));this.pending=null;}addUneditedChunk(t,n,r,o,i){let s=n.start,a=true,c=false;for(;s<n.end;){if(r[s]===`
6
+ `)o.line+=1,o.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,a=true,c=false;else {if(this.hires||a||i.has(s)){let l=[this.generatedCodeColumn,t,o.line,o.column];this.hires==="boundary"?Ry.test(r[s])?c||(this.rawSegments.push(l),c=true):(this.rawSegments.push(l),c=false):this.rawSegments.push(l);}o.column+=1,this.generatedCodeColumn+=1,a=false;}s+=1;}this.pending=null;}advance(t){if(!t)return;let n=t.split(`
7
+ `);if(n.length>1){for(let r=0;r<n.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0;}this.generatedCodeColumn+=n[n.length-1].length;}},An=`
8
+ `,Yt={insertLeft:false,insertRight:false,storeName:false},On=class e{constructor(t,n={}){let r=new io(0,t.length,t);Object.defineProperties(this,{original:{writable:true,value:t},outro:{writable:true,value:""},intro:{writable:true,value:""},firstChunk:{writable:true,value:r},lastChunk:{writable:true,value:r},lastSearchedChunk:{writable:true,value:r},byStart:{writable:true,value:{}},byEnd:{writable:true,value:{}},filename:{writable:true,value:n.filename},indentExclusionRanges:{writable:true,value:n.indentExclusionRanges},sourcemapLocations:{writable:true,value:new oo},storedNames:{writable:true,value:{}},indentStr:{writable:true,value:void 0},ignoreList:{writable:true,value:n.ignoreList},offset:{writable:true,value:n.offset||0}}),this.byStart[0]=r,this.byEnd[t.length]=r;}addSourcemapLocation(t){this.sourcemapLocations.add(t);}append(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byEnd[t];return r?r.appendLeft(n):this.intro+=n,this}appendRight(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byStart[t];return r?r.appendRight(n):this.outro+=n,this}clone(){let t=new e(this.original,{filename:this.filename,offset:this.offset}),n=this.firstChunk,r=t.firstChunk=t.lastSearchedChunk=n.clone();for(;n;){t.byStart[r.start]=r,t.byEnd[r.end]=r;let o=n.next,i=o&&o.clone();i&&(r.next=i,i.previous=r,r=i),n=o;}return t.lastChunk=r,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new oo(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};let n=0,r=Object.keys(this.storedNames),o=new so(t.hires),i=Cs(this.original);return this.intro&&o.advance(this.intro),this.firstChunk.eachNext(s=>{let a=i(s.start);s.intro.length&&o.advance(s.intro),s.edited?o.addEdit(n,s.content,a,s.storeName?r.indexOf(s.original):-1):o.addUneditedChunk(n,s,this.original,a,this.sourcemapLocations),s.outro.length&&o.advance(s.outro);}),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?cf(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:r,mappings:o.raw,x_google_ignoreList:this.ignoreList?[n]:void 0}}generateMap(t){return new In(this.generateDecodedMap(t))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=ky(this.original));}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(t,n){let r=/^[^\r\n]/gm;if(lf(t)&&(n=t,t=void 0),t===void 0&&(this._ensureindentStr(),t=this.indentStr||" "),t==="")return this;n=n||{};let o={};n.exclude&&(typeof n.exclude[0]=="number"?[n.exclude]:n.exclude).forEach(u=>{for(let f=u[0];f<u[1];f+=1)o[f]=true;});let i=n.indentStart!==false,s=l=>i?`${t}${l}`:(i=true,l);this.intro=this.intro.replace(r,s);let a=0,c=this.firstChunk;for(;c;){let l=c.end;if(c.edited)o[a]||(c.content=c.content.replace(r,s),c.content.length&&(i=c.content[c.content.length-1]===`
9
+ `));else for(a=c.start;a<l;){if(!o[a]){let u=this.original[a];u===`
10
+ `?i=true:u!=="\r"&&i&&(i=false,a===c.start||(this._splitChunk(c,a),c=c.next),c.prependRight(t));}a+=1;}a=c.end,c=c.next;}return this.outro=this.outro.replace(r,s),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,n){return Yt.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),Yt.insertLeft=true),this.appendLeft(t,n)}insertRight(t,n){return Yt.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),Yt.insertRight=true),this.prependRight(t,n)}move(t,n,r){if(t=t+this.offset,n=n+this.offset,r=r+this.offset,r>=t&&r<=n)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(n),this._split(r);let o=this.byStart[t],i=this.byEnd[n],s=o.previous,a=i.next,c=this.byStart[r];if(!c&&i===this.lastChunk)return this;let l=c?c.previous:this.lastChunk;return s&&(s.next=a),a&&(a.previous=s),l&&(l.next=o),c&&(c.previous=i),o.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=l,i.next=c||null,l||(this.firstChunk=o),c||(this.lastChunk=i),this}overwrite(t,n,r,o){return o=o||{},this.update(t,n,r,{...o,overwrite:!o.contentOnly})}update(t,n,r,o){if(t=t+this.offset,n=n+this.offset,typeof r!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}if(n>this.original.length)throw new Error("end is out of bounds");if(t===n)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(n),o===true&&(Yt.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),Yt.storeName=true),o={storeName:true});let i=o!==void 0?o.storeName:false,s=o!==void 0?o.overwrite:false;if(i){let l=this.original.slice(t,n);Object.defineProperty(this.storedNames,l,{writable:true,value:true,enumerable:true});}let a=this.byStart[t],c=this.byEnd[n];if(a){let l=a;for(;l!==c;){if(l.next!==this.byStart[l.end])throw new Error("Cannot overwrite across a split point");l=l.next,l.edit("",false);}a.edit(r,i,!s);}else {let l=new io(t,n,"").edit(r,i);c.next=l,l.previous=c;}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byEnd[t];return r?r.prependLeft(n):this.intro=n+this.intro,this}prependRight(t,n){if(t=t+this.offset,typeof n!="string")throw new TypeError("inserted content must be a string");this._split(t);let r=this.byStart[t];return r?r.prependRight(n):this.outro=n+this.outro,this}remove(t,n){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}if(t===n)return this;if(t<0||n>this.original.length)throw new Error("Character is out of bounds");if(t>n)throw new Error("end must be greater than start");this._split(t),this._split(n);let r=this.byStart[t];for(;r;)r.intro="",r.outro="",r.edit(""),r=n>r.end?this.byStart[r.end]:null;return this}reset(t,n){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}if(t===n)return this;if(t<0||n>this.original.length)throw new Error("Character is out of bounds");if(t>n)throw new Error("end must be greater than start");this._split(t),this._split(n);let r=this.byStart[t];for(;r;)r.reset(),r=n>r.end?this.byStart[r.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(An);if(t!==-1)return this.outro.substr(t+1);let n=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(t=r.outro.lastIndexOf(An),t!==-1)return r.outro.substr(t+1)+n;n=r.outro+n;}if(r.content.length>0){if(t=r.content.lastIndexOf(An),t!==-1)return r.content.substr(t+1)+n;n=r.content+n;}if(r.intro.length>0){if(t=r.intro.lastIndexOf(An),t!==-1)return r.intro.substr(t+1)+n;n=r.intro+n;}}while(r=r.previous);return t=this.intro.lastIndexOf(An),t!==-1?this.intro.substr(t+1)+n:this.intro+n}slice(t=0,n=this.original.length-this.offset){if(t=t+this.offset,n=n+this.offset,this.original.length!==0){for(;t<0;)t+=this.original.length;for(;n<0;)n+=this.original.length;}let r="",o=this.firstChunk;for(;o&&(o.start>t||o.end<=t);){if(o.start<n&&o.end>=n)return r;o=o.next;}if(o&&o.edited&&o.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);let i=o;for(;o;){o.intro&&(i!==o||o.start===t)&&(r+=o.intro);let s=o.start<n&&o.end>=n;if(s&&o.edited&&o.end!==n)throw new Error(`Cannot use replaced character ${n} as slice end anchor.`);let a=i===o?t-o.start:0,c=s?o.content.length+n-o.end:o.content.length;if(r+=o.content.slice(a,c),o.outro&&(!s||o.end===n)&&(r+=o.outro),s)break;o=o.next;}return r}snip(t,n){let r=this.clone();return r.remove(0,t),r.remove(n,r.original.length),r}_split(t){if(this.byStart[t]||this.byEnd[t])return;let n=this.lastSearchedChunk,r=t>n.end;for(;n;){if(n.contains(t))return this._splitChunk(n,t);n=r?this.byStart[n.end]:this.byEnd[n.start];}}_splitChunk(t,n){if(t.edited&&t.content.length){let o=Cs(this.original)(n);throw new Error(`Cannot split a chunk that has already been edited (${o.line}:${o.column} \u2013 "${t.original}")`)}let r=t.split(n);return this.byEnd[n]=t,this.byStart[n]=r,this.byEnd[r.end]=r,t===this.lastChunk&&(this.lastChunk=r),this.lastSearchedChunk=t,true}toString(){let t=this.intro,n=this.firstChunk;for(;n;)t+=n.toString(),n=n.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return false;while(t=t.next);return true}length(){let t=this.firstChunk,n=0;do n+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return n}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){let n=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(n,""),this.outro.length)return true;let r=this.lastChunk;do{let o=r.end,i=r.trimEnd(n);if(r.end!==o&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return true;r=r.previous;}while(r);return false}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){let n=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(n,""),this.intro.length)return true;let r=this.firstChunk;do{let o=r.end,i=r.trimStart(n);if(r.end!==o&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return true;r=r.next;}while(r);return false}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,n){function r(i,s){return typeof n=="string"?n.replace(/\$(\$|&|\d+)/g,(a,c)=>c==="$"?"$":c==="&"?i[0]:+c<i.length?i[+c]:`$${c}`):n(...i,i.index,s,i.groups)}function o(i,s){let a,c=[];for(;a=i.exec(s);)c.push(a);return c}if(t.global)o(t,this.original).forEach(s=>{if(s.index!=null){let a=r(s,this.original);a!==s[0]&&this.overwrite(s.index,s.index+s[0].length,a);}});else {let i=this.original.match(t);if(i&&i.index!=null){let s=r(i,this.original);s!==i[0]&&this.overwrite(i.index,i.index+i[0].length,s);}}return this}_replaceString(t,n){let{original:r}=this,o=r.indexOf(t);return o!==-1&&this.overwrite(o,o+t.length,n),this}replace(t,n){return typeof t=="string"?this._replaceString(t,n):this._replaceRegexp(t,n)}_replaceAllString(t,n){let{original:r}=this,o=t.length;for(let i=r.indexOf(t);i!==-1;i=r.indexOf(t,i+o))r.slice(i,i+o)!==n&&this.overwrite(i,i+o,n);return this}replaceAll(t,n){if(typeof t=="string")return this._replaceAllString(t,n);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,n)}},af=Object.prototype.hasOwnProperty,As=class e{constructor(t={}){this.intro=t.intro||"",this.separator=t.separator!==void 0?t.separator:`
11
+ `,this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={};}addSource(t){if(t instanceof On)return this.addSource({content:t,filename:t.filename,separator:this.separator});if(!lf(t)||!t.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","ignoreList","indentExclusionRanges","separator"].forEach(n=>{af.call(t,n)||(t[n]=t.content[n]);}),t.separator===void 0&&(t.separator=this.separator),t.filename)if(!af.call(this.uniqueSourceIndexByFilename,t.filename))this.uniqueSourceIndexByFilename[t.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:t.filename,content:t.content.original});else {let n=this.uniqueSources[this.uniqueSourceIndexByFilename[t.filename]];if(t.content.original!==n.content)throw new Error(`Illegal source: same filename (${t.filename}), different contents`)}return this.sources.push(t),this}append(t,n){return this.addSource({content:new On(t),separator:n&&n.separator||""}),this}clone(){let t=new e({intro:this.intro,separator:this.separator});return this.sources.forEach(n=>{t.addSource({filename:n.filename,content:n.content.clone(),separator:n.separator});}),t}generateDecodedMap(t={}){let n=[],r;this.sources.forEach(i=>{Object.keys(i.content.storedNames).forEach(s=>{~n.indexOf(s)||n.push(s);});});let o=new so(t.hires);return this.intro&&o.advance(this.intro),this.sources.forEach((i,s)=>{s>0&&o.advance(this.separator);let a=i.filename?this.uniqueSourceIndexByFilename[i.filename]:-1,c=i.content,l=Cs(c.original);c.intro&&o.advance(c.intro),c.firstChunk.eachNext(u=>{let f=l(u.start);u.intro.length&&o.advance(u.intro),i.filename?u.edited?o.addEdit(a,u.content,f,u.storeName?n.indexOf(u.original):-1):o.addUneditedChunk(a,u,c.original,f,c.sourcemapLocations):o.advance(u.content),u.outro.length&&o.advance(u.outro);}),c.outro&&o.advance(c.outro),i.ignoreList&&a!==-1&&(r===void 0&&(r=[]),r.push(a));}),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:this.uniqueSources.map(i=>t.file?cf(t.file,i.filename):i.filename),sourcesContent:this.uniqueSources.map(i=>t.includeContent?i.content:null),names:n,mappings:o.raw,x_google_ignoreList:r}}generateMap(t){return new In(this.generateDecodedMap(t))}getIndentString(){let t={};return this.sources.forEach(n=>{let r=n.content._getRawIndentString();r!==null&&(t[r]||(t[r]=0),t[r]+=1);}),Object.keys(t).sort((n,r)=>t[n]-t[r])[0]||" "}indent(t){if(arguments.length||(t=this.getIndentString()),t==="")return this;let n=!this.intro||this.intro.slice(-1)===`
12
+ `;return this.sources.forEach((r,o)=>{let i=r.separator!==void 0?r.separator:this.separator,s=n||o>0&&/\r?\n$/.test(i);r.content.indent(t,{exclude:r.indentExclusionRanges,indentStart:s}),n=r.content.lastChar()===`
13
+ `;}),this.intro&&(this.intro=t+this.intro.replace(/^[^\n]/gm,(r,o)=>o>0?t+r:r)),this}prepend(t){return this.intro=t+this.intro,this}toString(){let t=this.sources.map((n,r)=>{let o=n.separator!==void 0?n.separator:this.separator;return (r>0?o:"")+n.content.toString()}).join("");return this.intro+t}isEmpty(){return !(this.intro.length&&this.intro.trim()||this.sources.some(t=>!t.content.isEmpty()))}length(){return this.sources.reduce((t,n)=>t+n.content.length(),this.intro.length)}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimStart(t){let n=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(n,""),!this.intro){let r,o=0;do if(r=this.sources[o++],!r)break;while(!r.content.trimStartAborted(t))}return this}trimEnd(t){let n=new RegExp((t||"\\s")+"+$"),r,o=this.sources.length-1;do if(r=this.sources[o--],!r){this.intro=this.intro.replace(n,"");break}while(!r.content.trimEndAborted(t));return this}};});var ph=Lt(dh=>{Object.defineProperty(dh,"__esModule",{value:true});});var gh=Lt(mh=>{Object.defineProperty(mh,"__esModule",{value:true});});var bh=Lt(yh=>{Object.defineProperty(yh,"__esModule",{value:true});});var vh=Lt(wh=>{Object.defineProperty(wh,"__esModule",{value:true});});var Eh=Lt(ge=>{var Vw=ge&&ge.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:true,get:function(){return t[n]}}),Object.defineProperty(e,r,o);}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n];}),bo=ge&&ge.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Vw(t,e,n);};Object.defineProperty(ge,"__esModule",{value:true});ge.expectTypeOf=void 0;bo(ph(),ge);bo(gh(),ge);bo(bh(),ge);bo(vh(),ge);var ye=()=>true,Kw=e=>{let t=["parameters","returns","resolves","not","items","constructorParameters","thisParameter","instance","guards","asserts","branded"],n={toBeAny:ye,toBeUnknown:ye,toBeNever:ye,toBeFunction:ye,toBeObject:ye,toBeArray:ye,toBeString:ye,toBeNumber:ye,toBeBoolean:ye,toBeVoid:ye,toBeSymbol:ye,toBeNull:ye,toBeUndefined:ye,toBeNullable:ye,toBeBigInt:ye,toMatchTypeOf:ye,toEqualTypeOf:ye,toBeConstructibleWith:ye,toMatchObjectType:ye,toExtend:ye,map:ge.expectTypeOf,toBeCallableWith:ge.expectTypeOf,extract:ge.expectTypeOf,exclude:ge.expectTypeOf,pick:ge.expectTypeOf,omit:ge.expectTypeOf,toHaveProperty:ge.expectTypeOf,parameter:ge.expectTypeOf};return t.forEach(o=>Object.defineProperty(n,o,{get:()=>(0, ge.expectTypeOf)({})})),n};ge.expectTypeOf=Kw;});var zh={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},Wh=Object.entries(zh);function _o(e){return String(e)}_o.open="";_o.close="";function ga(e=false){let t=typeof process<"u"?process:void 0,n=t?.env||{},r=t?.argv||[];return !("NO_COLOR"in n||r.includes("--no-color"))&&("FORCE_COLOR"in n||r.includes("--color")||t?.platform==="win32"||e&&n.TERM!=="dumb"||"CI"in n)||typeof window<"u"&&!!window.chrome}function ya(e=false){let t=ga(e),n=(s,a,c,l)=>{let u="",f=0;do u+=s.substring(f,l)+c,f=l+a.length,l=s.indexOf(a,f);while(~l);return u+s.substring(f)},r=(s,a,c=s)=>{let l=u=>{let f=String(u),p=f.indexOf(a,s.length);return ~p?s+n(f,a,c,p)+a:s+f+a};return l.open=s,l.close=a,l},o={isColorSupported:t},i=s=>`\x1B[${s}m`;for(let[s,a]of Wh)o[s]=t?r(i(a[0]),i(a[1]),a[2]):_o;return o}var le=ya();function Na(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var o=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,o.get?o:{enumerable:true,get:function(){return n[r]}});}});}),Object.freeze(e)}function Jh(e,t){let n=Object.keys(e),r=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&r.push(o);return r}function on(e,t,n,r,o,i,s=": "){let a="",c=0,l=e.next();if(!l.done){a+=t.spacingOuter;let u=n+t.indent;for(;!l.done;){if(a+=u,c++===t.maxWidth){a+="\u2026";break}let f=i(l.value[0],t,u,r,o),p=i(l.value[1],t,u,r,o);a+=f+s+p,l=e.next(),l.done?t.min||(a+=","):a+=`,${t.spacingInner}`;}a+=t.spacingOuter+n;}return a}function Io(e,t,n,r,o,i){let s="",a=0,c=e.next();if(!c.done){s+=t.spacingOuter;let l=n+t.indent;for(;!c.done;){if(s+=l,a++===t.maxWidth){s+="\u2026";break}s+=i(c.value,t,l,r,o),c=e.next(),c.done?t.min||(s+=","):s+=`,${t.spacingInner}`;}s+=t.spacingOuter+n;}return s}function qn(e,t,n,r,o,i){let s="";e=e instanceof ArrayBuffer?new DataView(e):e;let a=l=>l instanceof DataView,c=a(e)?e.byteLength:e.length;if(c>0){s+=t.spacingOuter;let l=n+t.indent;for(let u=0;u<c;u++){if(s+=l,u===t.maxWidth){s+="\u2026";break}(a(e)||u in e)&&(s+=i(a(e)?e.getInt8(u):e[u],t,l,r,o)),u<c-1?s+=`,${t.spacingInner}`:t.min||(s+=",");}s+=t.spacingOuter+n;}return s}function Oo(e,t,n,r,o,i){let s="",a=Jh(e,t.compareKeys);if(a.length>0){s+=t.spacingOuter;let c=n+t.indent;for(let l=0;l<a.length;l++){let u=a[l],f=i(u,t,c,r,o),p=i(e[u],t,c,r,o);s+=`${c+f}: ${p}`,l<a.length-1?s+=`,${t.spacingInner}`:t.min||(s+=",");}s+=t.spacingOuter+n;}return s}var Vh=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,jn=" ",Kh=(e,t,n,r,o,i)=>{let s=e.toString();if(s==="ArrayContaining"||s==="ArrayNotContaining")return ++r>t.maxDepth?`[${s}]`:`${s+jn}[${qn(e.sample,t,n,r,o,i)}]`;if(s==="ObjectContaining"||s==="ObjectNotContaining")return ++r>t.maxDepth?`[${s}]`:`${s+jn}{${Oo(e.sample,t,n,r,o,i)}}`;if(s==="StringMatching"||s==="StringNotMatching"||s==="StringContaining"||s==="StringNotContaining")return s+jn+i(e.sample,t,n,r,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},Hh=e=>e&&e.$$typeof===Vh,Xh={serialize:Kh,test:Hh},Gh=" ",ka=new Set(["DOMStringMap","NamedNodeMap"]),Yh=/^(?:HTML\w*Collection|NodeList)$/;function Zh(e){return ka.has(e)||Yh.test(e)}var Qh=e=>e&&e.constructor&&!!e.constructor.name&&Zh(e.constructor.name);function ed(e){return e.constructor.name==="NamedNodeMap"}var td=(e,t,n,r,o,i)=>{let s=e.constructor.name;return ++r>t.maxDepth?`[${s}]`:(t.min?"":s+Gh)+(ka.has(s)?`{${Oo(ed(e)?[...e].reduce((a,c)=>(a[c.name]=c.value,a),{}):{...e},t,n,r,o,i)}}`:`[${qn([...e],t,n,r,o,i)}]`)},nd={serialize:td,test:Qh};function Ma(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function Po(e,t,n,r,o,i,s){let a=r+n.indent,c=n.colors;return e.map(l=>{let u=t[l],f=s(u,n,a,o,i);return typeof u!="string"&&(f.includes(`
14
+ `)&&(f=n.spacingOuter+a+f+n.spacingOuter+r),f=`{${f}}`),`${n.spacingInner+r+c.prop.open+l+c.prop.close}=${c.value.open}${f}${c.value.close}`}).join("")}function $o(e,t,n,r,o,i){return e.map(s=>t.spacingOuter+n+(typeof s=="string"?Ra(s,t):i(s,t,n,r,o))).join("")}function Ra(e,t){let n=t.colors.content;return n.open+Ma(e)+n.close}function rd(e,t){let n=t.colors.comment;return `${n.open}<!--${Ma(e)}-->${n.close}`}function No(e,t,n,r,o){let i=r.colors.tag;return `${i.open}<${e}${t&&i.close+t+r.spacingOuter+o+i.open}${n?`>${i.close}${n}${r.spacingOuter}${o}${i.open}</${e}`:`${t&&!r.min?"":" "}/`}>${i.close}`}function ko(e,t){let n=t.colors.tag;return `${n.open}<${e}${n.close} \u2026${n.open} />${n.close}`}var od=1,ja=3,Fa=8,Da=11,id=/^(?:(?:HTML|SVG)\w*)?Element$/;function sd(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return false}}function ad(e){let t=e.constructor.name,{nodeType:n,tagName:r}=e,o=typeof r=="string"&&r.includes("-")||sd(e);return n===od&&(id.test(t)||o)||n===ja&&t==="Text"||n===Fa&&t==="Comment"||n===Da&&t==="DocumentFragment"}var cd=e=>{var t;return (e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&ad(e)};function ld(e){return e.nodeType===ja}function ud(e){return e.nodeType===Fa}function Co(e){return e.nodeType===Da}var fd=(e,t,n,r,o,i)=>{if(ld(e))return Ra(e.data,t);if(ud(e))return rd(e.data,t);let s=Co(e)?"DocumentFragment":e.tagName.toLowerCase();return ++r>t.maxDepth?ko(s,t):No(s,Po(Co(e)?[]:Array.from(e.attributes,a=>a.name).sort(),Co(e)?{}:[...e.attributes].reduce((a,c)=>(a[c.name]=c.value,a),{}),t,n+t.indent,r,o,i),$o(Array.prototype.slice.call(e.childNodes||e.children),t,n+t.indent,r,o,i),t,n)},hd={serialize:fd,test:cd},dd="@@__IMMUTABLE_ITERABLE__@@",pd="@@__IMMUTABLE_LIST__@@",md="@@__IMMUTABLE_KEYED__@@",gd="@@__IMMUTABLE_MAP__@@",ba="@@__IMMUTABLE_ORDERED__@@",yd="@@__IMMUTABLE_RECORD__@@",bd="@@__IMMUTABLE_SEQ__@@",wd="@@__IMMUTABLE_SET__@@",vd="@@__IMMUTABLE_STACK__@@",qt=e=>`Immutable.${e}`,Un=e=>`[${e}]`,rn=" ",wa="\u2026";function Ed(e,t,n,r,o,i,s){return ++r>t.maxDepth?Un(qt(s)):`${qt(s)+rn}{${on(e.entries(),t,n,r,o,i)}}`}function Sd(e){let t=0;return {next(){if(t<e._keys.length){let n=e._keys[t++];return {done:false,value:[n,e.get(n)]}}return {done:true,value:void 0}}}}function xd(e,t,n,r,o,i){let s=qt(e._name||"Record");return ++r>t.maxDepth?Un(s):`${s+rn}{${on(Sd(e),t,n,r,o,i)}}`}function Td(e,t,n,r,o,i){let s=qt("Seq");return ++r>t.maxDepth?Un(s):e[md]?`${s+rn}{${e._iter||e._object?on(e.entries(),t,n,r,o,i):wa}}`:`${s+rn}[${e._iter||e._array||e._collection||e._iterable?Io(e.values(),t,n,r,o,i):wa}]`}function Ao(e,t,n,r,o,i,s){return ++r>t.maxDepth?Un(qt(s)):`${qt(s)+rn}[${Io(e.values(),t,n,r,o,i)}]`}var _d=(e,t,n,r,o,i)=>e[gd]?Ed(e,t,n,r,o,i,e[ba]?"OrderedMap":"Map"):e[pd]?Ao(e,t,n,r,o,i,"List"):e[wd]?Ao(e,t,n,r,o,i,e[ba]?"OrderedSet":"Set"):e[vd]?Ao(e,t,n,r,o,i,"Stack"):e[bd]?Td(e,t,n,r,o,i):xd(e,t,n,r,o,i),Cd=e=>e&&(e[dd]===true||e[yd]===true),Ad={serialize:_d,test:Cd};function La(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fn={exports:{}},ie={};var va;function Id(){if(va)return ie;va=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");function m(d){if(typeof d=="object"&&d!==null){var b=d.$$typeof;switch(b){case e:switch(d=d.type,d){case n:case o:case r:case c:case l:case p:return d;default:switch(d=d&&d.$$typeof,d){case s:case a:case f:case u:return d;case i:return d;default:return b}}case t:return b}}}return ie.ContextConsumer=i,ie.ContextProvider=s,ie.Element=e,ie.ForwardRef=a,ie.Fragment=n,ie.Lazy=f,ie.Memo=u,ie.Portal=t,ie.Profiler=o,ie.StrictMode=r,ie.Suspense=c,ie.SuspenseList=l,ie.isContextConsumer=function(d){return m(d)===i},ie.isContextProvider=function(d){return m(d)===s},ie.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},ie.isForwardRef=function(d){return m(d)===a},ie.isFragment=function(d){return m(d)===n},ie.isLazy=function(d){return m(d)===f},ie.isMemo=function(d){return m(d)===u},ie.isPortal=function(d){return m(d)===t},ie.isProfiler=function(d){return m(d)===o},ie.isStrictMode=function(d){return m(d)===r},ie.isSuspense=function(d){return m(d)===c},ie.isSuspenseList=function(d){return m(d)===l},ie.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===n||d===o||d===r||d===c||d===l||typeof d=="object"&&d!==null&&(d.$$typeof===f||d.$$typeof===u||d.$$typeof===s||d.$$typeof===i||d.$$typeof===a||d.$$typeof===h||d.getModuleId!==void 0)},ie.typeOf=m,ie}var se={};var Ea;function Od(){return Ea||(Ea=1,process.env.NODE_ENV!=="production"&&function(){function e(d){if(typeof d=="object"&&d!==null){var b=d.$$typeof;switch(b){case t:switch(d=d.type,d){case r:case i:case o:case l:case u:case h:return d;default:switch(d=d&&d.$$typeof,d){case a:case c:case p:case f:return d;case s:return d;default:return b}}case n:return b}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");se.ContextConsumer=s,se.ContextProvider=a,se.Element=t,se.ForwardRef=c,se.Fragment=r,se.Lazy=p,se.Memo=f,se.Portal=n,se.Profiler=i,se.StrictMode=o,se.Suspense=l,se.SuspenseList=u,se.isContextConsumer=function(d){return e(d)===s},se.isContextProvider=function(d){return e(d)===a},se.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===t},se.isForwardRef=function(d){return e(d)===c},se.isFragment=function(d){return e(d)===r},se.isLazy=function(d){return e(d)===p},se.isMemo=function(d){return e(d)===f},se.isPortal=function(d){return e(d)===n},se.isProfiler=function(d){return e(d)===i},se.isStrictMode=function(d){return e(d)===o},se.isSuspense=function(d){return e(d)===l},se.isSuspenseList=function(d){return e(d)===u},se.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===o||d===l||d===u||typeof d=="object"&&d!==null&&(d.$$typeof===p||d.$$typeof===f||d.$$typeof===a||d.$$typeof===s||d.$$typeof===c||d.$$typeof===m||d.getModuleId!==void 0)},se.typeOf=e;}()),se}var Sa;function Pd(){return Sa||(Sa=1,process.env.NODE_ENV==="production"?Fn.exports=Id():Fn.exports=Od()),Fn.exports}var qa=Pd(),$d=La(qa),Nd=Na({__proto__:null,default:$d},[qa]),Dn={exports:{}},ne={};var xa;function kd(){if(xa)return ne;xa=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function d(b){if(typeof b=="object"&&b!==null){var v=b.$$typeof;switch(v){case e:switch(b=b.type,b){case n:case o:case r:case l:case u:return b;default:switch(b=b&&b.$$typeof,b){case a:case s:case c:case p:case f:case i:return b;default:return v}}case t:return v}}}return ne.ContextConsumer=s,ne.ContextProvider=i,ne.Element=e,ne.ForwardRef=c,ne.Fragment=n,ne.Lazy=p,ne.Memo=f,ne.Portal=t,ne.Profiler=o,ne.StrictMode=r,ne.Suspense=l,ne.SuspenseList=u,ne.isAsyncMode=function(){return false},ne.isConcurrentMode=function(){return false},ne.isContextConsumer=function(b){return d(b)===s},ne.isContextProvider=function(b){return d(b)===i},ne.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},ne.isForwardRef=function(b){return d(b)===c},ne.isFragment=function(b){return d(b)===n},ne.isLazy=function(b){return d(b)===p},ne.isMemo=function(b){return d(b)===f},ne.isPortal=function(b){return d(b)===t},ne.isProfiler=function(b){return d(b)===o},ne.isStrictMode=function(b){return d(b)===r},ne.isSuspense=function(b){return d(b)===l},ne.isSuspenseList=function(b){return d(b)===u},ne.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===o||b===r||b===l||b===u||b===h||typeof b=="object"&&b!==null&&(b.$$typeof===p||b.$$typeof===f||b.$$typeof===i||b.$$typeof===s||b.$$typeof===c||b.$$typeof===m||b.getModuleId!==void 0)},ne.typeOf=d,ne}var re={};var Ta;function Md(){return Ta||(Ta=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=false,d=false,b=false,v=false,x=false,A;A=Symbol.for("react.module.reference");function P(q){return !!(typeof q=="string"||typeof q=="function"||q===n||q===o||x||q===r||q===l||q===u||v||q===h||m||d||b||typeof q=="object"&&q!==null&&(q.$$typeof===p||q.$$typeof===f||q.$$typeof===i||q.$$typeof===s||q.$$typeof===c||q.$$typeof===A||q.getModuleId!==void 0))}function O(q){if(typeof q=="object"&&q!==null){var S=q.$$typeof;switch(S){case e:var _=q.type;switch(_){case n:case o:case r:case l:case u:return _;default:var N=_&&_.$$typeof;switch(N){case a:case s:case c:case p:case f:case i:return N;default:return S}}case t:return S}}}var R=s,$=i,I=e,k=c,V=n,C=p,J=f,ce=t,z=o,Y=r,M=l,X=u,F=false,he=false;function ve(q){return F||(F=true,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),false}function Fe(q){return he||(he=true,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),false}function Te(q){return O(q)===s}function Ae(q){return O(q)===i}function Je(q){return typeof q=="object"&&q!==null&&q.$$typeof===e}function Me(q){return O(q)===c}function Ie(q){return O(q)===n}function Oe(q){return O(q)===p}function ut(q){return O(q)===f}function qe(q){return O(q)===t}function Tt(q){return O(q)===o}function Ee(q){return O(q)===r}function Ve(q){return O(q)===l}function Rn(q){return O(q)===u}re.ContextConsumer=R,re.ContextProvider=$,re.Element=I,re.ForwardRef=k,re.Fragment=V,re.Lazy=C,re.Memo=J,re.Portal=ce,re.Profiler=z,re.StrictMode=Y,re.Suspense=M,re.SuspenseList=X,re.isAsyncMode=ve,re.isConcurrentMode=Fe,re.isContextConsumer=Te,re.isContextProvider=Ae,re.isElement=Je,re.isForwardRef=Me,re.isFragment=Ie,re.isLazy=Oe,re.isMemo=ut,re.isPortal=qe,re.isProfiler=Tt,re.isStrictMode=Ee,re.isSuspense=Ve,re.isSuspenseList=Rn,re.isValidElementType=P,re.typeOf=O;}()),re}var _a;function Rd(){return _a||(_a=1,process.env.NODE_ENV==="production"?Dn.exports=kd():Dn.exports=Md()),Dn.exports}var Ba=Rd(),jd=La(Ba),Fd=Na({__proto__:null,default:jd},[Ba]),Dd=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],Ct=Object.fromEntries(Dd.map(e=>[e,t=>Fd[e](t)||Nd[e](t)]));function Ua(e,t=[]){if(Array.isArray(e))for(let n of e)Ua(n,t);else e!=null&&e!==false&&e!==""&&t.push(e);return t}function Ca(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(Ct.isFragment(e))return "React.Fragment";if(Ct.isSuspense(e))return "React.Suspense";if(typeof t=="object"&&t!==null){if(Ct.isContextProvider(e))return "Context.Provider";if(Ct.isContextConsumer(e))return "Context.Consumer";if(Ct.isForwardRef(e)){if(t.displayName)return t.displayName;let n=t.render.displayName||t.render.name||"";return n===""?"ForwardRef":`ForwardRef(${n})`}if(Ct.isMemo(e)){let n=t.displayName||t.type.displayName||t.type.name||"";return n===""?"Memo":`Memo(${n})`}}return "UNDEFINED"}function Ld(e){let{props:t}=e;return Object.keys(t).filter(n=>n!=="children"&&t[n]!==void 0).sort()}var qd=(e,t,n,r,o,i)=>++r>t.maxDepth?ko(Ca(e),t):No(Ca(e),Po(Ld(e),e.props,t,n+t.indent,r,o,i),$o(Ua(e.props.children),t,n+t.indent,r,o,i),t,n),Bd=e=>e!=null&&Ct.isElement(e),Ud={serialize:qd,test:Bd},zd=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function Wd(e){let{props:t}=e;return t?Object.keys(t).filter(n=>t[n]!==void 0).sort():[]}var Jd=(e,t,n,r,o,i)=>++r>t.maxDepth?ko(e.type,t):No(e.type,e.props?Po(Wd(e),e.props,t,n+t.indent,r,o,i):"",e.children?$o(e.children,t,n+t.indent,r,o,i):"",t,n),Vd=e=>e&&e.$$typeof===zd,Kd={serialize:Jd,test:Vd},za=Object.prototype.toString,Hd=Date.prototype.toISOString,Xd=Error.prototype.toString,Aa=RegExp.prototype.toString;function Ln(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function Gd(e){return typeof window<"u"&&e===window}var Yd=/^Symbol\((.*)\)(.*)$/,Zd=/\n/g,Bn=class extends Error{constructor(t,n){super(t),this.stack=n,this.name=this.constructor.name;}};function Qd(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function ep(e){return Object.is(e,-0)?"-0":String(e)}function tp(e){return `${e}n`}function Ia(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function Oa(e){return String(e).replace(Yd,"Symbol($1)")}function Pa(e){return `[${Xd.call(e)}]`}function Wa(e,t,n,r){if(e===true||e===false)return `${e}`;if(e===void 0)return "undefined";if(e===null)return "null";let o=typeof e;if(o==="number")return ep(e);if(o==="bigint")return tp(e);if(o==="string")return r?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return Ia(e,t);if(o==="symbol")return Oa(e);let i=za.call(e);return i==="[object WeakMap]"?"WeakMap {}":i==="[object WeakSet]"?"WeakSet {}":i==="[object Function]"||i==="[object GeneratorFunction]"?Ia(e,t):i==="[object Symbol]"?Oa(e):i==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":Hd.call(e):i==="[object Error]"?Pa(e):i==="[object RegExp]"?n?Aa.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Aa.call(e):e instanceof Error?Pa(e):null}function Ja(e,t,n,r,o,i){if(o.includes(e))return "[Circular]";o=[...o],o.push(e);let s=++r>t.maxDepth,a=t.min;if(t.callToJSON&&!s&&e.toJSON&&typeof e.toJSON=="function"&&!i)return ht(e.toJSON(),t,n,r,o,true);let c=za.call(e);return c==="[object Arguments]"?s?"[Arguments]":`${a?"":"Arguments "}[${qn(e,t,n,r,o,ht)}]`:Qd(c)?s?`[${e.constructor.name}]`:`${a||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${qn(e,t,n,r,o,ht)}]`:c==="[object Map]"?s?"[Map]":`Map {${on(e.entries(),t,n,r,o,ht," => ")}}`:c==="[object Set]"?s?"[Set]":`Set {${Io(e.values(),t,n,r,o,ht)}}`:s||Gd(e)?`[${Ln(e)}]`:`${a||!t.printBasicPrototype&&Ln(e)==="Object"?"":`${Ln(e)} `}{${Oo(e,t,n,r,o,ht)}}`}var np={test:e=>e&&e instanceof Error,serialize(e,t,n,r,o,i){if(o.includes(e))return "[Circular]";o=[...o,e];let s=++r>t.maxDepth,{message:a,cause:c,...l}=e,u={message:a,...typeof c<"u"?{cause:c}:{},...e instanceof AggregateError?{errors:e.errors}:{},...l},f=e.name!=="Error"?e.name:Ln(e);return s?`[${f}]`:`${f} {${on(Object.entries(u).values(),t,n,r,o,i)}}`}};function rp(e){return e.serialize!=null}function Va(e,t,n,r,o,i){let s;try{s=rp(e)?e.serialize(t,n,r,o,i,ht):e.print(t,a=>ht(a,n,r,o,i),a=>{let c=r+n.indent;return c+a.replaceAll(Zd,`
15
+ ${c}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors);}catch(a){throw new Bn(a.message,a.stack)}if(typeof s!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof s}".`);return s}function Ka(e,t){for(let n of e)try{if(n.test(t))return n}catch(r){throw new Bn(r.message,r.stack)}return null}function ht(e,t,n,r,o,i){let s=Ka(t.plugins,e);if(s!==null)return Va(s,e,t,n,r,o);let a=Wa(e,t.printFunctionName,t.escapeRegex,t.escapeString);return a!==null?a:Ja(e,t,n,r,o,i)}var Mo={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Ha=Object.keys(Mo),Ge={callToJSON:true,compareKeys:void 0,escapeRegex:false,escapeString:true,highlight:false,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:false,plugins:[],printBasicPrototype:true,printFunctionName:true,theme:Mo};function op(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Ge,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function ip(){return Ha.reduce((e,t)=>{let n=Mo[t],r=n&&le[n];if(r&&typeof r.close=="string"&&typeof r.open=="string")e[t]=r;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null))}function sp(){return Ha.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function Xa(e){return e?.printFunctionName??Ge.printFunctionName}function Ga(e){return e?.escapeRegex??Ge.escapeRegex}function Ya(e){return e?.escapeString??Ge.escapeString}function $a(e){return {callToJSON:e?.callToJSON??Ge.callToJSON,colors:e?.highlight?ip():sp(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:Ge.compareKeys,escapeRegex:Ga(e),escapeString:Ya(e),indent:e?.min?"":ap(e?.indent??Ge.indent),maxDepth:e?.maxDepth??Ge.maxDepth,maxWidth:e?.maxWidth??Ge.maxWidth,min:e?.min??Ge.min,plugins:e?.plugins??Ge.plugins,printBasicPrototype:e?.printBasicPrototype??true,printFunctionName:Xa(e),spacingInner:e?.min?" ":`
16
+ `,spacingOuter:e?.min?"":`
17
+ `}}function ap(e){return Array.from({length:e+1}).join(" ")}function Re(e,t){if(t&&(op(t),t.plugins)){let r=Ka(t.plugins,e);if(r!==null)return Va(r,e,$a(t),"",0,[])}let n=Wa(e,Xa(t),Ga(t),Ya(t));return n!==null?n:Ja(e,$a(t),"",0,[])}var dt={AsymmetricMatcher:Xh,DOMCollection:nd,DOMElement:hd,Immutable:Ad,ReactElement:Ud,ReactTestComponent:Kd,Error:np};var Za={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},cp={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},it="\u2026";function lp(e,t){let n=Za[cp[t]]||Za[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}function Qa({showHidden:e=false,depth:t=2,colors:n=false,customInspect:r=true,showProxy:o=false,maxArrayLength:i=1/0,breakLength:s=1/0,seen:a=[],truncate:c=1/0,stylize:l=String}={},u){let f={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(c),seen:a,inspect:u,stylize:l};return f.colors&&(f.stylize=lp),f}function up(e){return e>="\uD800"&&e<="\uDBFF"}function Pe(e,t,n=it){e=String(e);let r=n.length,o=e.length;if(r>t&&o>r)return n;if(o>t&&o>r){let i=t-r;return i>0&&up(e[i-1])&&(i=i-1),`${e.slice(0,i)}${n}`}return e}function be(e,t,n,r=", "){n=n||t.inspect;let o=e.length;if(o===0)return "";let i=t.truncate,s="",a="",c="";for(let l=0;l<o;l+=1){let u=l+1===e.length,f=l+2===e.length;c=`${it}(${e.length-l})`;let p=e[l];t.truncate=i-s.length-(u?0:r.length);let h=a||n(p,t)+(u?"":r),m=s.length+h.length,d=m+c.length;if(u&&m>i&&s.length+c.length<=i||!u&&!f&&d>i||(a=u?"":n(e[l+1],t)+(f?"":r),!u&&f&&d>i&&m+a.length>i))break;if(s+=h,!u&&!f&&m+a.length>=i){c=`${it}(${e.length-l-1})`;break}c="";}return `${s}${c}`}function fp(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function st([e,t],n){return n.truncate-=2,typeof e=="string"?e=fp(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}function Ro(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return "[]";t.truncate-=4;let r=be(e,t);t.truncate-=r.length;let o="";return n.length&&(o=be(n.map(i=>[i,e[i]]),t,st)),`[ ${r}${o?`, ${o}`:""} ]`}var hp=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function Ye(e,t){let n=hp(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return `${n}[]`;let o="";for(let s=0;s<e.length;s++){let a=`${t.stylize(Pe(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=a.length,e[s]!==e.length&&t.truncate<=3){o+=`${it}(${e.length-e[s]+1})`;break}o+=a;}let i="";return r.length&&(i=be(r.map(s=>[s,e[s]]),t,st)),`${n}[ ${o}${i?`, ${i}`:""} ]`}function jo(e,t){let n=e.toJSON();if(n===null)return "Invalid Date";let r=n.split("T"),o=r[0];return t.stylize(`${o}T${Pe(r[1],t.truncate-o.length-1)}`,"date")}function zn(e,t){let n=e[Symbol.toStringTag]||"Function",r=e.name;return r?t.stylize(`[${n} ${Pe(r,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}function dp([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}function pp(e){let t=[];return e.forEach((n,r)=>{t.push([r,n]);}),t}function Fo(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${be(pp(e),t,dp)} }`)}var mp=Number.isNaN||(e=>e!==e);function Wn(e,t){return mp(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(Pe(String(e),t.truncate),"number")}function Jn(e,t){let n=Pe(e.toString(),t.truncate-1);return n!==it&&(n+="n"),t.stylize(n,"bigint")}function Do(e,t){let n=e.toString().split("/")[2],r=t.truncate-(2+n.length),o=e.source;return t.stylize(`/${Pe(o,r)}/${n}`,"regexp")}function gp(e){let t=[];return e.forEach(n=>{t.push(n);}),t}function Lo(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${be(gp(e),t)} }`)}var ec=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),yp={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},bp=16;function vp(e){return yp[e]||`\\u${`0000${e.charCodeAt(0).toString(bp)}`.slice(-4)}`}function Vn(e,t){return ec.test(e)&&(e=e.replace(ec,vp)),t.stylize(`'${Pe(e,t.truncate-2)}'`,"string")}function Kn(e){return "description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var tc=()=>"Promise{\u2026}";try{let{getPromiseDetails:e,kPending:t,kRejected:n}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(tc=(r,o)=>{let[i,s]=e(r);return i===t?"Promise{<pending>}":`Promise${i===n?"!":""}{${o.inspect(s,o)}}`});}catch{}var nc=tc;function At(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return "{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return "[Circular]";t.seen.push(e);let o=be(n.map(a=>[a,e[a]]),t,st),i=be(r.map(a=>[a,e[a]]),t,st);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}var qo=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:false;function Bo(e,t){let n="";return qo&&qo in e&&(n=e[qo]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${At(e,t)}`}function Uo(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${be(e,t)} ]`)}var Ep=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function zo(e,t){let n=Object.getOwnPropertyNames(e).filter(s=>Ep.indexOf(s)===-1),r=e.name;t.truncate-=r.length;let o="";if(typeof e.message=="string"?o=Pe(e.message,t.truncate):n.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return "[Circular]";t.seen.push(e);let i=be(n.map(s=>[s,e[s]]),t,st);return `${r}${o}${i?` { ${i} }`:""}`}function Sp([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}function Hn(e,t){return be(e,t,xp,`
18
+ `)}function xp(e,t){switch(e.nodeType){case 1:return Xn(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function Xn(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),o=t.stylize(`<${r}`,"special"),i=t.stylize(">","special"),s=t.stylize(`</${r}>`,"special");t.truncate-=r.length*2+5;let a="";n.length>0&&(a+=" ",a+=be(n.map(u=>[u,e.getAttribute(u)]),t,Sp," ")),t.truncate-=a.length;let c=t.truncate,l=Hn(e.children,t);return l&&l.length>c&&(l=`${it}(${e.children.length})`),`${o}${a}${i}${l}${s}`}var Tp=typeof Symbol=="function"&&typeof Symbol.for=="function",Wo=Tp?Symbol.for("chai/inspect"):"@@chai/inspect",Jo=Symbol.for("nodejs.util.inspect.custom"),rc=new WeakMap,oc={},ic={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:Wn,Number:Wn,bigint:Jn,BigInt:Jn,string:Vn,String:Vn,function:zn,Function:zn,symbol:Kn,Symbol:Kn,Array:Ro,Date:jo,Map:Fo,Set:Lo,RegExp:Do,Promise:nc,WeakSet:(e,t)=>t.stylize("WeakSet{\u2026}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{\u2026}","special"),Arguments:Uo,Int8Array:Ye,Uint8Array:Ye,Uint8ClampedArray:Ye,Int16Array:Ye,Uint16Array:Ye,Int32Array:Ye,Uint32Array:Ye,Float32Array:Ye,Float64Array:Ye,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:zo,HTMLCollection:Hn,NodeList:Hn},_p=(e,t,n)=>Wo in e&&typeof e[Wo]=="function"?e[Wo](t):Jo in e&&typeof e[Jo]=="function"?e[Jo](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&rc.has(e.constructor)?rc.get(e.constructor)(e,t):oc[n]?oc[n](e,t):"",Cp=Object.prototype.toString;function Gn(e,t={}){let n=Qa(t,Gn),{customInspect:r}=n,o=e===null?"null":typeof e;if(o==="object"&&(o=Cp.call(e).slice(8,-1)),o in ic)return ic[o](e,n);if(r&&e){let s=_p(e,n,o);if(s)return typeof s=="string"?s:Gn(s,n)}let i=e?Object.getPrototypeOf(e):false;return i===Object.prototype||i===null?At(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Xn(e,n):"constructor"in e?e.constructor!==Object?Bo(e,n):At(e,n):e===Object(e)?At(e,n):n.stylize(String(e),o)}var{AsymmetricMatcher:Ip,DOMCollection:Op,DOMElement:Pp,Immutable:$p,ReactElement:Np,ReactTestComponent:kp}=dt,sc=[kp,Np,Pp,Op,$p,Ip];function _e(e,t=10,{maxLength:n,...r}={}){let o=n??1e4,i;try{i=Re(e,{maxDepth:t,escapeString:!1,plugins:sc,...r});}catch{i=Re(e,{callToJSON:false,maxDepth:t,escapeString:false,plugins:sc,...r});}return i.length>=o&&t>1?_e(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:n,...r}):i}var Mp=/%[sdjifoOc%]/g;function sn(...e){if(typeof e[0]!="string"){let i=[];for(let s=0;s<e.length;s++)i.push(It(e[s],{depth:0,colors:false}));return i.join(" ")}let t=e.length,n=1,r=e[0],o=String(r).replace(Mp,i=>{if(i==="%%")return "%";if(n>=t)return i;switch(i){case "%s":{let s=e[n++];return typeof s=="bigint"?`${s.toString()}n`:typeof s=="number"&&s===0&&1/s<0?"-0":typeof s=="object"&&s!==null?typeof s.toString=="function"&&s.toString!==Object.prototype.toString?s.toString():It(s,{depth:0,colors:false}):String(s)}case "%d":{let s=e[n++];return typeof s=="bigint"?`${s.toString()}n`:Number(s).toString()}case "%i":{let s=e[n++];return typeof s=="bigint"?`${s.toString()}n`:Number.parseInt(String(s)).toString()}case "%f":return Number.parseFloat(String(e[n++])).toString();case "%o":return It(e[n++],{showHidden:true,showProxy:true});case "%O":return It(e[n++]);case "%c":return n++,"";case "%j":try{return JSON.stringify(e[n++])}catch(s){let a=s.message;if(a.includes("circular structure")||a.includes("cyclic structures")||a.includes("cyclic object"))return "[Circular]";throw s}default:return i}});for(let i=e[n];n<t;i=e[++n])i===null||typeof i!="object"?o+=` ${i}`:o+=` ${It(i)}`;return o}function It(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Gn(e,t)}function Vo(e,t={}){typeof t.truncate>"u"&&(t.truncate=40);let n=It(e,t),r=Object.prototype.toString.call(e);if(t.truncate&&n.length>=t.truncate)if(r==="[object Function]"){let o=e;return o.name?`[Function: ${o.name}]`:"[Function]"}else {if(r==="[object Array]")return `[ Array(${e.length}) ]`;if(r==="[object Object]"){let o=Object.keys(e);return `{ Object (${o.length>2?`${o.splice(0,2).join(", ")}, ...`:o.join(", ")}) }`}else return n}return n}function ac(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ko(e){let{message:t="$$stack trace error",stackTraceLimit:n=1}=e||{},r=Error.stackTraceLimit,o=Error.prepareStackTrace;Error.stackTraceLimit=n,Error.prepareStackTrace=a=>a.stack;let s=new Error(t).stack||"";return Error.prepareStackTrace=o,Error.stackTraceLimit=r,s}function Ne(e,t,n){let r=typeof e;if(!n.includes(r))throw new TypeError(`${t} value must be ${n.join(" or ")}, received "${r}"`)}function Zn(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}function at(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function Rp(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function pt(e){return Object.prototype.toString.apply(e).slice(8,-1)}function jp(e,t){let n=typeof t=="function"?t:r=>t.add(r);Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n);}function Qn(e){let t=new Set;return Rp(e)?[]:(jp(e,t),Array.from(t))}var cc={forceWritable:false};function er(e,t=cc){return Yn(e,new WeakMap,t)}function Yn(e,t,n=cc){let r,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:r=e.length}),t.set(e,o);r--;)o[r]=Yn(e[r],t,n);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let i=Qn(e);for(let s of i){let a=Object.getOwnPropertyDescriptor(e,s);if(!a)continue;let c=Yn(e[s],t,n);n.forceWritable?Object.defineProperty(o,s,{enumerable:a.enumerable,configurable:true,writable:true,value:c}):"get"in a?Object.defineProperty(o,s,{...a,get(){return c}}):Object.defineProperty(o,s,{...a,value:c});}return o}return e}function Ho(){}function tr(e,t,n=void 0){let r=t.replace(/\[(\d+)\]/g,".$1").split("."),o=e;for(let i of r)if(o=new Object(o)[i],o===void 0)return n;return o}function nr(){let e=null,t=null,n=new Promise((r,o)=>{e=r,t=o;});return n.resolve=e,n.reject=t,n}function Xo(e){if(!Number.isNaN(e))return false;let t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31===1}var Go,lc;function Fp(){if(lc)return Go;lc=1;var e,t,n,r,o,i,s,a,c,l,u,f,p,h,m,d,b,v,x;return p=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,f=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,m=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,u=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,d=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,x=/[\t\v\f\ufeff\p{Zs}]+/yu,a=/\r?\n|[\r\u2028\u2029]/y,c=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,h=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,r=/(['"])(?:(?!\1)[^])*(\1)?/y,o=/[^<>{}]+/y,v=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,b=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,i=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,s=/^(?:return|throw|yield)$/,l=RegExp(a.source),Go=function*(A,{jsx:P=false}={}){var O,R,$,I,k,V,C,J,ce,z,Y,M,X,F;for({length:V}=A,I=0,k="",F=[{tag:"JS"}],O=[],Y=0,M=false;I<V;){switch(J=F[F.length-1],J.tag){case "JS":case "JSNonExpressionParen":case "InterpolationInTemplate":case "InterpolationInJSX":if(A[I]==="/"&&(v.test(k)||i.test(k))&&(p.lastIndex=I,C=p.exec(A))){I=p.lastIndex,k=C[0],M=true,yield {type:"RegularExpressionLiteral",value:C[0],closed:C[1]!==void 0&&C[1]!=="\\"};continue}if(f.lastIndex=I,C=f.exec(A)){switch(X=C[0],ce=f.lastIndex,z=X,X){case "(":k==="?NonExpressionParenKeyword"&&F.push({tag:"JSNonExpressionParen",nesting:Y}),Y++,M=false;break;case ")":Y--,M=true,J.tag==="JSNonExpressionParen"&&Y===J.nesting&&(F.pop(),z="?NonExpressionParenEnd",M=false);break;case "{":f.lastIndex=0,$=!b.test(k)&&(v.test(k)||i.test(k)),O.push($),M=false;break;case "}":switch(J.tag){case "InterpolationInTemplate":if(O.length===J.nesting){d.lastIndex=I,C=d.exec(A),I=d.lastIndex,k=C[0],C[1]==="${"?(k="?InterpolationInTemplate",M=false,yield {type:"TemplateMiddle",value:C[0]}):(F.pop(),M=true,yield {type:"TemplateTail",value:C[0],closed:C[1]==="`"});continue}break;case "InterpolationInJSX":if(O.length===J.nesting){F.pop(),I+=1,k="}",yield {type:"JSXPunctuator",value:"}"};continue}}M=O.pop(),z=M?"?ExpressionBraceEnd":"}";break;case "]":M=true;break;case "++":case "--":z=M?"?PostfixIncDec":"?UnaryIncDec";break;case "<":if(P&&(v.test(k)||i.test(k))){F.push({tag:"JSXTag"}),I+=1,k="<",yield {type:"JSXPunctuator",value:X};continue}M=false;break;default:M=false;}I=ce,k=z,yield {type:"Punctuator",value:X};continue}if(e.lastIndex=I,C=e.exec(A)){switch(I=e.lastIndex,z=C[0],C[0]){case "for":case "if":case "while":case "with":k!=="."&&k!=="?."&&(z="?NonExpressionParenKeyword");}k=z,M=!i.test(C[0]),yield {type:C[1]==="#"?"PrivateIdentifier":"IdentifierName",value:C[0]};continue}if(m.lastIndex=I,C=m.exec(A)){I=m.lastIndex,k=C[0],M=true,yield {type:"StringLiteral",value:C[0],closed:C[2]!==void 0};continue}if(u.lastIndex=I,C=u.exec(A)){I=u.lastIndex,k=C[0],M=true,yield {type:"NumericLiteral",value:C[0]};continue}if(d.lastIndex=I,C=d.exec(A)){I=d.lastIndex,k=C[0],C[1]==="${"?(k="?InterpolationInTemplate",F.push({tag:"InterpolationInTemplate",nesting:O.length}),M=false,yield {type:"TemplateHead",value:C[0]}):(M=true,yield {type:"NoSubstitutionTemplate",value:C[0],closed:C[1]==="`"});continue}break;case "JSXTag":case "JSXTagEnd":if(n.lastIndex=I,C=n.exec(A)){switch(I=n.lastIndex,z=C[0],C[0]){case "<":F.push({tag:"JSXTag"});break;case ">":F.pop(),k==="/"||J.tag==="JSXTagEnd"?(z="?JSX",M=true):F.push({tag:"JSXChildren"});break;case "{":F.push({tag:"InterpolationInJSX",nesting:O.length}),z="?InterpolationInJSX",M=false;break;case "/":k==="<"&&(F.pop(),F[F.length-1].tag==="JSXChildren"&&F.pop(),F.push({tag:"JSXTagEnd"}));}k=z,yield {type:"JSXPunctuator",value:C[0]};continue}if(t.lastIndex=I,C=t.exec(A)){I=t.lastIndex,k=C[0],yield {type:"JSXIdentifier",value:C[0]};continue}if(r.lastIndex=I,C=r.exec(A)){I=r.lastIndex,k=C[0],yield {type:"JSXString",value:C[0],closed:C[2]!==void 0};continue}break;case "JSXChildren":if(o.lastIndex=I,C=o.exec(A)){I=o.lastIndex,k=C[0],yield {type:"JSXText",value:C[0]};continue}switch(A[I]){case "<":F.push({tag:"JSXTag"}),I++,k="<",yield {type:"JSXPunctuator",value:"<"};continue;case "{":F.push({tag:"InterpolationInJSX",nesting:O.length}),I++,k="?InterpolationInJSX",M=false,yield {type:"JSXPunctuator",value:"{"};continue}}if(x.lastIndex=I,C=x.exec(A)){I=x.lastIndex,yield {type:"WhiteSpace",value:C[0]};continue}if(a.lastIndex=I,C=a.exec(A)){I=a.lastIndex,M=false,s.test(k)&&(k="?NoLineTerminatorHere"),yield {type:"LineTerminatorSequence",value:C[0]};continue}if(c.lastIndex=I,C=c.exec(A)){I=c.lastIndex,l.test(C[0])&&(M=false,s.test(k)&&(k="?NoLineTerminatorHere")),yield {type:"MultiLineComment",value:C[0],closed:C[1]!==void 0};continue}if(h.lastIndex=I,C=h.exec(A)){I=h.lastIndex,M=false,yield {type:"SingleLineComment",value:C[0]};continue}R=String.fromCodePoint(A.codePointAt(I)),I+=R.length,k=R,M=false,yield {type:J.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:R};}},Go}Fp();var fc={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(fc.keyword);new Set(fc.strict);var uc=Symbol("vitest:SAFE_TIMERS");function ct(){let{setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:r,setImmediate:o,clearImmediate:i,queueMicrotask:s}=globalThis[uc]||globalThis,{nextTick:a}=globalThis[uc]||globalThis.process||{nextTick:c=>c()};return {nextTick:a,setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:r,setImmediate:o,clearImmediate:i,queueMicrotask:s}}var $e=-1,Ce=1,de=0,ue=class{0;1;constructor(t,n){this[0]=t,this[1]=n;}};function Dp(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let n=0,r=Math.min(e.length,t.length),o=r,i=0;for(;n<o;)e.substring(i,o)===t.substring(i,o)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}function Ac(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let n=0,r=Math.min(e.length,t.length),o=r,i=0;for(;n<o;)e.substring(e.length-o,e.length-i)===t.substring(t.length-o,t.length-i)?(n=o,i=n):r=o,o=Math.floor((r-n)/2+n);return o}function hc(e,t){let n=e.length,r=t.length;if(n===0||r===0)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));let o=Math.min(n,r);if(e===t)return o;let i=0,s=1;for(;;){let a=e.substring(o-s),c=t.indexOf(a);if(c===-1)return i;s+=c,(c===0||e.substring(o-s)===t.substring(0,s))&&(i=s,s++);}}function Lp(e){let t=false,n=[],r=0,o=null,i=0,s=0,a=0,c=0,l=0;for(;i<e.length;)e[i][0]===de?(n[r++]=i,s=c,a=l,c=0,l=0,o=e[i][1]):(e[i][0]===Ce?c+=e[i][1].length:l+=e[i][1].length,o&&o.length<=Math.max(s,a)&&o.length<=Math.max(c,l)&&(e.splice(n[r-1],0,new ue($e,o)),e[n[r-1]+1][0]=Ce,r--,r--,i=r>0?n[r-1]:-1,s=0,a=0,c=0,l=0,o=null,t=true)),i++;for(t&&Ic(e),Up(e),i=1;i<e.length;){if(e[i-1][0]===$e&&e[i][0]===Ce){let u=e[i-1][1],f=e[i][1],p=hc(u,f),h=hc(f,u);p>=h?(p>=u.length/2||p>=f.length/2)&&(e.splice(i,0,new ue(de,f.substring(0,p))),e[i-1][1]=u.substring(0,u.length-p),e[i+1][1]=f.substring(p),i++):(h>=u.length/2||h>=f.length/2)&&(e.splice(i,0,new ue(de,u.substring(0,h))),e[i-1][0]=Ce,e[i-1][1]=f.substring(0,f.length-h),e[i+1][0]=$e,e[i+1][1]=u.substring(h),i++),i++;}i++;}}var dc=/[^a-z0-9]/i,pc=/\s/,mc=/[\r\n]/,qp=/\n\r?\n$/,Bp=/^\r?\n\r?\n/;function Up(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===de&&e[t+1][0]===de){let n=e[t-1][1],r=e[t][1],o=e[t+1][1],i=Ac(n,r);if(i){let u=r.substring(r.length-i);n=n.substring(0,n.length-i),r=u+r.substring(0,r.length-i),o=u+o;}let s=n,a=r,c=o,l=rr(n,r)+rr(r,o);for(;r.charAt(0)===o.charAt(0);){n+=r.charAt(0),r=r.substring(1)+o.charAt(0),o=o.substring(1);let u=rr(n,r)+rr(r,o);u>=l&&(l=u,s=n,a=r,c=o);}e[t-1][1]!==s&&(s?e[t-1][1]=s:(e.splice(t-1,1),t--),e[t][1]=a,c?e[t+1][1]=c:(e.splice(t+1,1),t--));}t++;}}function Ic(e){e.push(new ue(de,""));let t=0,n=0,r=0,o="",i="",s;for(;t<e.length;)switch(e[t][0]){case Ce:r++,i+=e[t][1],t++;break;case $e:n++,o+=e[t][1],t++;break;case de:n+r>1?(n!==0&&r!==0&&(s=Dp(i,o),s!==0&&(t-n-r>0&&e[t-n-r-1][0]===de?e[t-n-r-1][1]+=i.substring(0,s):(e.splice(0,0,new ue(de,i.substring(0,s))),t++),i=i.substring(s),o=o.substring(s)),s=Ac(i,o),s!==0&&(e[t][1]=i.substring(i.length-s)+e[t][1],i=i.substring(0,i.length-s),o=o.substring(0,o.length-s))),t-=n+r,e.splice(t,n+r),o.length&&(e.splice(t,0,new ue($e,o)),t++),i.length&&(e.splice(t,0,new ue(Ce,i)),t++),t++):t!==0&&e[t-1][0]===de?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,n=0,o="",i="";break}e[e.length-1][1]===""&&e.pop();let a=false;for(t=1;t<e.length-1;)e[t-1][0]===de&&e[t+1][0]===de&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),a=true):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),a=true)),t++;a&&Ic(e);}function rr(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),o=n.match(dc),i=r.match(dc),s=o&&n.match(pc),a=i&&r.match(pc),c=s&&n.match(mc),l=a&&r.match(mc),u=c&&e.match(qp),f=l&&t.match(Bp);return u||f?5:c||l?4:o&&!s&&a?3:s||a?2:o||i?1:0}var Oc="Compared values have no visual difference.",zp="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",or={},gc;function Wp(){if(gc)return or;gc=1,Object.defineProperty(or,"__esModule",{value:true}),or.default=p;let e="diff-sequences",t=0,n=(h,m,d,b,v)=>{let x=0;for(;h<m&&d<b&&v(h,d);)h+=1,d+=1,x+=1;return x},r=(h,m,d,b,v)=>{let x=0;for(;h<=m&&d<=b&&v(m,b);)m-=1,b-=1,x+=1;return x},o=(h,m,d,b,v,x,A)=>{let P=0,O=-h,R=x[P],$=R;x[P]+=n(R+1,m,b+R-O+1,d,v);let I=h<A?h:A;for(P+=1,O+=2;P<=I;P+=1,O+=2){if(P!==h&&$<x[P])R=x[P];else if(R=$+1,m<=R)return P-1;$=x[P],x[P]=R+n(R+1,m,b+R-O+1,d,v);}return A},i=(h,m,d,b,v,x,A)=>{let P=0,O=h,R=x[P],$=R;x[P]-=r(m,R-1,d,b+R-O-1,v);let I=h<A?h:A;for(P+=1,O-=2;P<=I;P+=1,O-=2){if(P!==h&&x[P]<$)R=x[P];else if(R=$-1,R<m)return P-1;$=x[P],x[P]=R-r(m,R-1,d,b+R-O-1,v);}return A},s=(h,m,d,b,v,x,A,P,O,R,$)=>{let I=b-m,k=d-m,C=v-b-k,J=-C-(h-1),ce=-C+(h-1),z=t,Y=h<P?h:P;for(let M=0,X=-h;M<=Y;M+=1,X+=2){let F=M===0||M!==h&&z<A[M],he=F?A[M]:z,ve=F?he:he+1,Fe=I+ve-X,Te=n(ve+1,d,Fe+1,v,x),Ae=ve+Te;if(z=A[M],A[M]=Ae,J<=X&&X<=ce){let Je=(h-1-(X+C))/2;if(Je<=R&&O[Je]-1<=Ae){let Me=I+he-(F?X+1:X-1),Ie=r(m,he,b,Me,x),Oe=he-Ie,ut=Me-Ie,qe=Oe+1,Tt=ut+1;$.nChangePreceding=h-1,h-1===qe+Tt-m-b?($.aEndPreceding=m,$.bEndPreceding=b):($.aEndPreceding=qe,$.bEndPreceding=Tt),$.nCommonPreceding=Ie,Ie!==0&&($.aCommonPreceding=qe,$.bCommonPreceding=Tt),$.nCommonFollowing=Te,Te!==0&&($.aCommonFollowing=ve+1,$.bCommonFollowing=Fe+1);let Ee=Ae+1,Ve=Fe+Te+1;return $.nChangeFollowing=h-1,h-1===d+v-Ee-Ve?($.aStartFollowing=d,$.bStartFollowing=v):($.aStartFollowing=Ee,$.bStartFollowing=Ve),true}}}return false},a=(h,m,d,b,v,x,A,P,O,R,$)=>{let I=v-d,k=d-m,C=v-b-k,J=C-h,ce=C+h,z=t,Y=h<R?h:R;for(let M=0,X=h;M<=Y;M+=1,X-=2){let F=M===0||M!==h&&O[M]<z,he=F?O[M]:z,ve=F?he:he-1,Fe=I+ve-X,Te=r(m,ve-1,b,Fe-1,x),Ae=ve-Te;if(z=O[M],O[M]=Ae,J<=X&&X<=ce){let Je=(h+(X-C))/2;if(Je<=P&&Ae-1<=A[Je]){let Me=Fe-Te;if($.nChangePreceding=h,h===Ae+Me-m-b?($.aEndPreceding=m,$.bEndPreceding=b):($.aEndPreceding=Ae,$.bEndPreceding=Me),$.nCommonPreceding=Te,Te!==0&&($.aCommonPreceding=Ae,$.bCommonPreceding=Me),$.nChangeFollowing=h-1,h===1)$.nCommonFollowing=0,$.aStartFollowing=d,$.bStartFollowing=v;else {let Ie=I+he-(F?X-1:X+1),Oe=n(he,d,Ie,v,x);$.nCommonFollowing=Oe,Oe!==0&&($.aCommonFollowing=he,$.bCommonFollowing=Ie);let ut=he+Oe,qe=Ie+Oe;h-1===d+v-ut-qe?($.aStartFollowing=d,$.bStartFollowing=v):($.aStartFollowing=ut,$.bStartFollowing=qe);}return true}}}return false},c=(h,m,d,b,v,x,A,P,O)=>{let R=b-m,$=v-d,I=d-m,k=v-b,V=k-I,C=I,J=I;if(A[0]=m-1,P[0]=d,V%2===0){let ce=(h||V)/2,z=(I+k)/2;for(let Y=1;Y<=z;Y+=1)if(C=o(Y,d,v,R,x,A,C),Y<ce)J=i(Y,m,b,$,x,P,J);else if(a(Y,m,d,b,v,x,A,C,P,J,O))return}else {let ce=((h||V)+1)/2,z=(I+k+1)/2,Y=1;for(C=o(Y,d,v,R,x,A,C),Y+=1;Y<=z;Y+=1)if(J=i(Y-1,m,b,$,x,P,J),Y<ce)C=o(Y,d,v,R,x,A,C);else if(s(Y,m,d,b,v,x,A,C,P,J,O))return}throw new Error(`${e}: no overlap aStart=${m} aEnd=${d} bStart=${b} bEnd=${v}`)},l=(h,m,d,b,v,x,A,P,O,R)=>{if(v-b<d-m){if(x=!x,x&&A.length===1){let{foundSubsequence:Ae,isCommon:Je}=A[0];A[1]={foundSubsequence:(Me,Ie,Oe)=>{Ae(Me,Oe,Ie);},isCommon:(Me,Ie)=>Je(Ie,Me)};}let Fe=m,Te=d;m=b,d=v,b=Fe,v=Te;}let{foundSubsequence:$,isCommon:I}=A[x?1:0];c(h,m,d,b,v,I,P,O,R);let{nChangePreceding:k,aEndPreceding:V,bEndPreceding:C,nCommonPreceding:J,aCommonPreceding:ce,bCommonPreceding:z,nCommonFollowing:Y,aCommonFollowing:M,bCommonFollowing:X,nChangeFollowing:F,aStartFollowing:he,bStartFollowing:ve}=R;m<V&&b<C&&l(k,m,V,b,C,x,A,P,O,R),J!==0&&$(J,ce,z),Y!==0&&$(Y,M,X),he<d&&ve<v&&l(F,he,d,ve,v,x,A,P,O,R);},u=(h,m)=>{if(typeof m!="number")throw new TypeError(`${e}: ${h} typeof ${typeof m} is not a number`);if(!Number.isSafeInteger(m))throw new RangeError(`${e}: ${h} value ${m} is not a safe integer`);if(m<0)throw new RangeError(`${e}: ${h} value ${m} is a negative integer`)},f=(h,m)=>{let d=typeof m;if(d!=="function")throw new TypeError(`${e}: ${h} typeof ${d} is not a function`)};function p(h,m,d,b){u("aLength",h),u("bLength",m),f("isCommon",d),f("foundSubsequence",b);let v=n(0,h,0,m,d);if(v!==0&&b(v,0,0),h!==v||m!==v){let x=v,A=v,P=r(x,h-1,A,m-1,d),O=h-P,R=m-P,$=v+P;h!==$&&m!==$&&l(0,x,O,A,R,false,[{foundSubsequence:b,isCommon:d}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),P!==0&&b(P,O,R);}}return or}var Jp=Wp(),Pc=ac(Jp);function Vp(e,t){return e.replace(/\s+$/,n=>t(n))}function ri(e,t,n,r,o,i){return e.length!==0?n(`${r} ${Vp(e,o)}`):r!==" "?n(r):t&&i.length!==0?n(`${r} ${i}`):""}function $c(e,t,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return ri(e,t,n,r,o,i)}function Nc(e,t,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return ri(e,t,n,r,o,i)}function kc(e,t,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return ri(e,t,n,r,o,i)}function yc(e,t,n,r,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${n+1},${r-n} @@`)}function Kp(e,t){let n=e.length,r=t.contextLines,o=r+r,i=n,s=false,a=0,c=0;for(;c!==n;){let P=c;for(;c!==n&&e[c][0]===de;)c+=1;if(P!==c)if(P===0)c>r&&(i-=c-r,s=true);else if(c===n){let O=c-P;O>r&&(i-=O-r,s=true);}else {let O=c-P;O>o&&(i-=O-o,a+=1);}for(;c!==n&&e[c][0]!==de;)c+=1;}let l=a!==0||s;a!==0?i+=a+1:s&&(i+=1);let u=i-1,f=[],p=0;l&&f.push("");let h=0,m=0,d=0,b=0,v=P=>{let O=f.length;f.push(kc(P,O===0||O===u,t)),d+=1,b+=1;},x=P=>{let O=f.length;f.push($c(P,O===0||O===u,t)),d+=1;},A=P=>{let O=f.length;f.push(Nc(P,O===0||O===u,t)),b+=1;};for(c=0;c!==n;){let P=c;for(;c!==n&&e[c][0]===de;)c+=1;if(P!==c)if(P===0){c>r&&(P=c-r,h=P,m=P,d=h,b=m);for(let O=P;O!==c;O+=1)v(e[O][1]);}else if(c===n){let O=c-P>r?P+r:c;for(let R=P;R!==O;R+=1)v(e[R][1]);}else {let O=c-P;if(O>o){let R=P+r;for(let I=P;I!==R;I+=1)v(e[I][1]);f[p]=yc(h,d,m,b,t),p=f.length,f.push("");let $=O-o;h=d+$,m=b+$,d=h,b=m;for(let I=c-r;I!==c;I+=1)v(e[I][1]);}else for(let R=P;R!==c;R+=1)v(e[R][1]);}for(;c!==n&&e[c][0]===$e;)x(e[c][1]),c+=1;for(;c!==n&&e[c][0]===Ce;)A(e[c][1]),c+=1;}return l&&(f[p]=yc(h,d,m,b,t)),f.join(`
19
+ `)}function Hp(e,t){return e.map((n,r,o)=>{let i=n[1],s=r===0||r===o.length-1;switch(n[0]){case $e:return $c(i,s,t);case Ce:return Nc(i,s,t);default:return kc(i,s,t)}}).join(`
20
+ `)}var Yo=e=>e,Mc=5,Xp=0;function Gp(){return {aAnnotation:"Expected",aColor:le.green,aIndicator:"-",bAnnotation:"Received",bColor:le.red,bIndicator:"+",changeColor:le.inverse,changeLineTrailingSpaceColor:Yo,commonColor:le.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Yo,compareKeys:void 0,contextLines:Mc,emptyFirstOrLastLinePlaceholder:"",expand:false,includeChangeCounts:false,omitAnnotationLines:false,patchColor:le.yellow,printBasicPrototype:false,truncateThreshold:Xp,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Yo}}function Yp(e){return e&&typeof e=="function"?e:void 0}function Zp(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:Mc}function Ot(e={}){return {...Gp(),...e,compareKeys:Yp(e.compareKeys),contextLines:Zp(e.contextLines)}}function Bt(e){return e.length===1&&e[0].length===0}function Qp(e){let t=0,n=0;return e.forEach(r=>{switch(r[0]){case $e:t+=1;break;case Ce:n+=1;break}}),{a:t,b:n}}function em({aAnnotation:e,aColor:t,aIndicator:n,bAnnotation:r,bColor:o,bIndicator:i,includeChangeCounts:s,omitAnnotationLines:a},c){if(a)return "";let l="",u="";if(s){let h=String(c.a),m=String(c.b),d=r.length-e.length,b=" ".repeat(Math.max(0,d)),v=" ".repeat(Math.max(0,-d)),x=m.length-h.length,A=" ".repeat(Math.max(0,x)),P=" ".repeat(Math.max(0,-x));l=`${b} ${n} ${A}${h}`,u=`${v} ${i} ${P}${m}`;}let f=`${n} ${e}${l}`,p=`${i} ${r}${u}`;return `${t(f)}
21
+ ${o(p)}
22
+
23
+ `}function oi(e,t,n){return em(n,Qp(e))+(n.expand?Hp(e,n):Kp(e,n))+(t?n.truncateAnnotationColor(`
24
+ ${n.truncateAnnotation}`):"")}function sr(e,t,n){let r=Ot(n),[o,i]=Rc(Bt(e)?[]:e,Bt(t)?[]:t,r);return oi(o,i,r)}function tm(e,t,n,r,o){if(Bt(e)&&Bt(n)&&(e=[],n=[]),Bt(t)&&Bt(r)&&(t=[],r=[]),e.length!==n.length||t.length!==r.length)return sr(e,t,o);let[i,s]=Rc(n,r,o),a=0,c=0;return i.forEach(l=>{switch(l[0]){case $e:l[1]=e[a],a+=1;break;case Ce:l[1]=t[c],c+=1;break;default:l[1]=t[c],a+=1,c+=1;}}),oi(i,s,Ot(o))}function Rc(e,t,n){let r=n?.truncateThreshold??false,o=Math.max(Math.floor(n?.truncateThreshold??0),0),i=r?Math.min(e.length,o):e.length,s=r?Math.min(t.length,o):t.length,a=i!==e.length||s!==t.length,c=(h,m)=>e[h]===t[m],l=[],u=0,f=0;for(Pc(i,s,c,(h,m,d)=>{for(;u!==m;u+=1)l.push(new ue($e,e[u]));for(;f!==d;f+=1)l.push(new ue(Ce,t[f]));for(;h!==0;h-=1,u+=1,f+=1)l.push(new ue(de,t[f]));});u!==i;u+=1)l.push(new ue($e,e[u]));for(;f!==s;f+=1)l.push(new ue(Ce,t[f]));return [l,a]}function bc(e){if(e===void 0)return "undefined";if(e===null)return "null";if(Array.isArray(e))return "array";if(typeof e=="boolean")return "boolean";if(typeof e=="function")return "function";if(typeof e=="number")return "number";if(typeof e=="string")return "string";if(typeof e=="bigint")return "bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return "regexp";if(e.constructor===Map)return "map";if(e.constructor===Set)return "set";if(e.constructor===Date)return "date"}return "object"}else if(typeof e=="symbol")return "symbol";throw new Error(`value of unknown type: ${e}`)}function wc(e){return e.includes(`\r
25
+ `)?`\r
26
+ `:`
27
+ `}function nm(e,t,n){let r=n?.truncateThreshold??false,o=Math.max(Math.floor(n?.truncateThreshold??0),0),i=e.length,s=t.length;if(r){let h=e.includes(`
28
+ `),m=t.includes(`
29
+ `),d=wc(e),b=wc(t),v=h?`${e.split(d,o).join(d)}
30
+ `:e,x=m?`${t.split(b,o).join(b)}
31
+ `:t;i=v.length,s=x.length;}let a=i!==e.length||s!==t.length,c=(h,m)=>e[h]===t[m],l=0,u=0,f=[];return Pc(i,s,c,(h,m,d)=>{l!==m&&f.push(new ue($e,e.slice(l,m))),u!==d&&f.push(new ue(Ce,t.slice(u,d))),l=m+h,u=d+h,f.push(new ue(de,t.slice(d,u)));}),l!==i&&f.push(new ue($e,e.slice(l))),u!==s&&f.push(new ue(Ce,t.slice(u))),[f,a]}function rm(e,t,n){return t.reduce((r,o)=>r+(o[0]===de?o[1]:o[0]===e&&o[1].length!==0?n(o[1]):""),"")}var ir=class{op;line;lines;changeColor;constructor(t,n){this.op=t,this.line=[],this.lines=[],this.changeColor=n;}pushSubstring(t){this.pushDiff(new ue(this.op,t));}pushLine(){this.lines.push(this.line.length!==1?new ue(this.op,rm(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new ue(this.op,this.line[0][1])),this.line.length=0;}isLineEmpty(){return this.line.length===0}pushDiff(t){this.line.push(t);}align(t){let n=t[1];if(n.includes(`
32
+ `)){let r=n.split(`
33
+ `),o=r.length-1;r.forEach((i,s)=>{s<o?(this.pushSubstring(i),this.pushLine()):i.length!==0&&this.pushSubstring(i);});}else this.pushDiff(t);}moveLinesTo(t){this.isLineEmpty()||this.pushLine(),t.push(...this.lines),this.lines.length=0;}},Qo=class{deleteBuffer;insertBuffer;lines;constructor(t,n){this.deleteBuffer=t,this.insertBuffer=n,this.lines=[];}pushDiffCommonLine(t){this.lines.push(t);}pushDiffChangeLines(t){let n=t[1].length===0;(!n||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(t),(!n||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(t);}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines);}align(t){let n=t[0],r=t[1];if(r.includes(`
34
+ `)){let o=r.split(`
35
+ `),i=o.length-1;o.forEach((s,a)=>{if(a===0){let c=new ue(n,s);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(c)):(this.pushDiffChangeLines(c),this.flushChangeLines());}else a<i?this.pushDiffCommonLine(new ue(n,s)):s.length!==0&&this.pushDiffChangeLines(new ue(n,s));});}else this.pushDiffChangeLines(t);}getLines(){return this.flushChangeLines(),this.lines}};function om(e,t){let n=new ir($e,t),r=new ir(Ce,t),o=new Qo(n,r);return e.forEach(i=>{switch(i[0]){case $e:n.align(i);break;case Ce:r.align(i);break;default:o.align(i);}}),o.getLines()}function im(e,t){if(t){let n=e.length-1;return e.some((r,o)=>r[0]===de&&(o!==n||r[1]!==`
36
+ `))}return e.some(n=>n[0]===de)}function sm(e,t,n){if(e!==t&&e.length!==0&&t.length!==0){let r=e.includes(`
37
+ `)||t.includes(`
38
+ `),[o,i]=jc(r?`${e}
39
+ `:e,r?`${t}
40
+ `:t,true,n);if(im(o,r)){let s=Ot(n),a=om(o,s.changeColor);return oi(a,i,s)}}return sr(e.split(`
41
+ `),t.split(`
42
+ `),n)}function jc(e,t,n,r){let[o,i]=nm(e,t,r);return Lp(o),[o,i]}function ei(e,t){let{commonColor:n}=Ot(t);return n(e)}var{AsymmetricMatcher:am,DOMCollection:cm,DOMElement:lm,Immutable:um,ReactElement:fm,ReactTestComponent:hm}=dt,Fc=[hm,fm,lm,cm,um,am,dt.Error],ti={maxDepth:20,plugins:Fc},Dc={callToJSON:false,maxDepth:8,plugins:Fc};function Pt(e,t,n){if(Object.is(e,t))return "";let r=bc(e),o=r,i=false;if(r==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),i=o==="string";}if(o!==bc(t)){let v=function(P){return P.length<=b?P:`${P.slice(0,b)}...`};let{aAnnotation:a,aColor:c,aIndicator:l,bAnnotation:u,bColor:f,bIndicator:p}=Ot(n),h=ni(Dc,n),m=Re(e,h),d=Re(t,h),b=1e5;m=v(m),d=v(d);let x=`${c(`${l} ${a}:`)}
43
+ ${m}`,A=`${f(`${p} ${u}:`)}
44
+ ${d}`;return `${x}
45
+
46
+ ${A}`}if(!i)switch(r){case "string":return sr(e.split(`
47
+ `),t.split(`
48
+ `),n);case "boolean":case "number":return dm(e,t,n);case "map":return Zo(vc(e),vc(t),n);case "set":return Zo(Ec(e),Ec(t),n);default:return Zo(e,t,n)}}function dm(e,t,n){let r=Re(e,ti),o=Re(t,ti);return r===o?"":sr(r.split(`
49
+ `),o.split(`
50
+ `),n)}function vc(e){return new Map(Array.from(e.entries()).sort())}function Ec(e){return new Set(Array.from(e.values()).sort())}function Zo(e,t,n){let r,o=false;try{let s=ni(ti,n);r=Sc(e,t,s,n);}catch{o=true;}let i=ei(Oc,n);if(r===void 0||r===i){let s=ni(Dc,n);r=Sc(e,t,s,n),r!==i&&!o&&(r=`${ei(zp,n)}
51
+
52
+ ${r}`);}return r}function ni(e,t){let{compareKeys:n,printBasicPrototype:r,maxDepth:o}=Ot(t);return {...e,compareKeys:n,printBasicPrototype:r,maxDepth:o??e.maxDepth}}function Sc(e,t,n,r){let o={...n,indent:0},i=Re(e,o),s=Re(t,o);if(i===s)return ei(Oc,r);{let a=Re(e,n),c=Re(t,n);return tm(a.split(`
53
+ `),c.split(`
54
+ `),i.split(`
55
+ `),s.split(`
56
+ `),r)}}var xc=2e4;function Tc(e){return pt(e)==="Object"&&typeof e.asymmetricMatch=="function"}function _c(e,t){let n=pt(e),r=pt(t);return n===r&&(n==="Object"||n==="Array")}function ar(e,t,n){let{aAnnotation:r,bAnnotation:o}=Ot(n);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=xc&&e.length<=xc&&t!==e){if(t.includes(`
57
+ `)||e.includes(`
58
+ `))return sm(t,e,n);let[u]=jc(t,e),f=u.some(d=>d[0]===de),p=pm(r,o),h=p(r)+ym(Cc(u,$e,f)),m=p(o)+gm(Cc(u,Ce,f));return `${h}
59
+ ${m}`}let i=er(t,{forceWritable:true}),s=er(e,{forceWritable:true}),{replacedExpected:a,replacedActual:c}=Lc(s,i);return Pt(a,c,n)}function Lc(e,t,n=new WeakSet,r=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):_c(e,t)?n.has(e)||r.has(t)?{replacedActual:e,replacedExpected:t}:(n.add(e),r.add(t),Qn(t).forEach(o=>{let i=t[o],s=e[o];if(Tc(i))i.asymmetricMatch(s)&&(e[o]=i);else if(Tc(s))s.asymmetricMatch(i)&&(t[o]=s);else if(_c(s,i)){let a=Lc(s,i,n,r);e[o]=a.replacedActual,t[o]=a.replacedExpected;}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function pm(...e){let t=e.reduce((n,r)=>r.length>n?r.length:n,0);return n=>`${n}: ${" ".repeat(t-n.length)}`}var mm="\xB7";function qc(e){return e.replace(/\s+$/gm,t=>mm.repeat(t.length))}function gm(e){return le.red(qc(_e(e)))}function ym(e){return le.green(qc(_e(e)))}function Cc(e,t,n){return e.reduce((r,o)=>r+(o[0]===de?o[1]:o[0]===t?n?le.inverse(o[1]):o[1]:""),"")}function cr(e,t){if(!e)throw new Error(t)}function Ut(e,t){return typeof t===e}function bm(e){return e instanceof Promise}function an(e,t,n){Object.defineProperty(e,t,n);}function zt(e,t,n){an(e,t,{value:n,configurable:true,writable:true});}var mt=Symbol.for("tinyspy:spy"),wm=new Set,vm=e=>{e.called=false,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[];},Em=e=>(an(e,mt,{value:{reset:()=>vm(e[mt])}}),e[mt]),lr=e=>e[mt]||Em(e);function Sm(e){cr(Ut("function",e)||Ut("undefined",e),"cannot spy on a non-function value");let t=function(...r){let o=lr(t);o.called=true,o.callCount++,o.calls.push(r);let i=o.next.shift();if(i){o.results.push(i);let[u,f]=i;if(u==="ok")return f;throw f}let s,a="ok",c=o.results.length;if(o.impl)try{new.target?s=Reflect.construct(o.impl,r,new.target):s=o.impl.apply(this,r),a="ok";}catch(u){throw s=u,a="error",o.results.push([a,u]),u}let l=[a,s];return bm(s)&&s.then(u=>o.resolves[c]=["ok",u],u=>o.resolves[c]=["error",u]),o.results.push(l),s};zt(t,"_isMockFunction",true),zt(t,"length",e?e.length:0),zt(t,"name",e&&e.name||"spy");let n=lr(t);return n.reset(),n.impl=e,t}function xm(e){return !!e&&e._isMockFunction===true}var Uc=(e,t)=>{let n=Object.getOwnPropertyDescriptor(e,t);if(n)return [e,n];let r=Object.getPrototypeOf(e);for(;r!==null;){let o=Object.getOwnPropertyDescriptor(r,t);if(o)return [r,o];r=Object.getPrototypeOf(r);}},Bc=(e,t)=>{t!=null&&typeof t=="function"&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype);};function ii(e,t,n){cr(!Ut("undefined",e),"spyOn could not find an object to spy upon"),cr(Ut("object",e)||Ut("function",e),"cannot spyOn on a primitive value");let[r,o]=(()=>{if(!Ut("object",t))return [t,"value"];if("getter"in t&&"setter"in t)throw new Error("cannot spy on both getter and setter");if("getter"in t)return [t.getter,"get"];if("setter"in t)return [t.setter,"set"];throw new Error("specify getter or setter to spy on")})(),[i,s]=Uc(e,r)||[];cr(s||r in e,`${String(r)} does not exist`);let a=false;o==="value"&&s&&!s.value&&s.get&&(o="get",a=true,n=s.get());let c;s?c=s[o]:o!=="value"?c=()=>e[r]:c=e[r],c&&Am(c)&&(c=c[mt].getOriginal());let l=h=>{let{value:m,...d}=s||{configurable:true,writable:true};o!=="value"&&delete d.writable,d[o]=h,an(e,r,d);},u=()=>{i!==e?Reflect.deleteProperty(e,r):s&&!c?an(e,r,s):l(c);};n||(n=c);let f=Cm(Sm(n),n);o==="value"&&Bc(f,c);let p=f[mt];return zt(p,"restore",u),zt(p,"getOriginal",()=>a?c():c),zt(p,"willCall",h=>(p.impl=h,f)),l(a?()=>(Bc(f,n),f):f),wm.add(f),f}var Tm=new Set(["length","name","prototype"]);function _m(e){let t=new Set,n={};for(;e&&e!==Object.prototype&&e!==Function.prototype;){let r=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let o of r)n[o]||Tm.has(o)||(t.add(o),n[o]=Object.getOwnPropertyDescriptor(e,o));e=Object.getPrototypeOf(e);}return {properties:t,descriptors:n}}function Cm(e,t){if(!t||mt in t)return e;let{properties:n,descriptors:r}=_m(t);for(let o of n){let i=r[o];Uc(e,o)||an(e,o,i);}return e}function Am(e){return xm(e)&&"getOriginal"in e[mt]}var cn=new Set;function $t(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction}function zc(e,t,n){let o=n?{[{get:"getter",set:"setter"}[n]]:t}:t,i,s=Pm(e,t),a=s&&s[n||"value"];$t(a)&&(i=a.mock._state());try{let c=ii(e,o),l=Wc(c);return i&&l.mock._state(i),l}catch(c){throw c instanceof TypeError&&Symbol.toStringTag&&e[Symbol.toStringTag]==="Module"&&(c.message.includes("Cannot redefine property")||c.message.includes("Cannot replace module namespace")||c.message.includes("can't redefine non-configurable property"))?new TypeError(`Cannot spy on export "${String(o)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`,{cause:c}):c}}var Om=0;function Wc(e){let t=e,n,r=[],o=false,i=[],s=[],a=[],c=lr(e),l={get calls(){return c.calls},get contexts(){return s},get instances(){return i},get invocationCallOrder(){return a},get results(){return c.results.map(([h,m])=>({type:h==="error"?"throw":"return",value:m}))},get settledResults(){return c.resolves.map(([h,m])=>({type:h==="error"?"rejected":"fulfilled",value:m}))},get lastCall(){return c.calls[c.calls.length-1]},_state(h){return h&&(n=h.implementation,r=h.onceImplementations,o=h.implementationChangedTemporarily),{implementation:n,onceImplementations:r,implementationChangedTemporarily:o}}};function u(...h){return i.push(this),s.push(this),a.push(++Om),(o?n:r.shift()||n||c.getOriginal()||(()=>{})).apply(this,h)}let f=t.name;t.getMockName=()=>f||"vi.fn()",t.mockName=h=>(f=h,t),t.mockClear=()=>(c.reset(),i=[],s=[],a=[],t),t.mockReset=()=>(t.mockClear(),n=void 0,r=[],t),t.mockRestore=()=>(t.mockReset(),c.restore(),t),Symbol.dispose&&(t[Symbol.dispose]=()=>t.mockRestore()),t.getMockImplementation=()=>o?n:r.at(0)||n,t.mockImplementation=h=>(n=h,c.willCall(u),t),t.mockImplementationOnce=h=>(r.push(h),t);function p(h,m){let d=n;n=h,c.willCall(u),o=true;let b=()=>{n=d,o=false;},v=m();return typeof v=="object"&&v&&typeof v.then=="function"?v.then(()=>(b(),t)):(b(),t)}return t.withImplementation=p,t.mockReturnThis=()=>t.mockImplementation(function(){return this}),t.mockReturnValue=h=>t.mockImplementation(()=>h),t.mockReturnValueOnce=h=>t.mockImplementationOnce(()=>h),t.mockResolvedValue=h=>t.mockImplementation(()=>Promise.resolve(h)),t.mockResolvedValueOnce=h=>t.mockImplementationOnce(()=>Promise.resolve(h)),t.mockRejectedValue=h=>t.mockImplementation(()=>Promise.reject(h)),t.mockRejectedValueOnce=h=>t.mockImplementationOnce(()=>Promise.reject(h)),Object.defineProperty(t,"mock",{get:()=>l}),c.willCall(u),cn.add(t),t}function Jc(e){let t=Wc(ii({spy:e||function(){}},"spy"));return e&&t.mockImplementation(e),t}function Pm(e,t){let n=Object.getOwnPropertyDescriptor(e,t);if(n)return n;let r=Object.getPrototypeOf(e);for(;r!==null;){let o=Object.getOwnPropertyDescriptor(r,t);if(o)return o;r=Object.getPrototypeOf(r);}}var $m="@@__IMMUTABLE_RECORD__@@",Nm="@@__IMMUTABLE_ITERABLE__@@";function km(e){return e&&(e[Nm]||e[$m])}var Mm=Object.getPrototypeOf({});function Vc(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function gt(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){let n=e.toJSON();return n&&n!==e&&typeof n=="object"&&(typeof e.message=="string"&&ur(()=>n.message??(n.message=e.message)),typeof e.stack=="string"&&ur(()=>n.stack??(n.stack=e.stack)),typeof e.name=="string"&&ur(()=>n.name??(n.name=e.name)),e.cause!=null&&ur(()=>n.cause??(n.cause=gt(e.cause,t)))),gt(n,t)}if(typeof e=="function")return `Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return `<Buffer(${e.length}) ...>`;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return `<Uint8Array(${e.length}) ...>`;if(km(e))return gt(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return "Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return `${e.toString()} ${sn(e.sample)}`;if(typeof e.toJSON=="function")return gt(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=new Array(e.length);return t.set(e,n),e.forEach((r,o)=>{try{n[o]=gt(r,t);}catch(i){n[o]=Vc(i);}}),n}else {let n=Object.create(null);t.set(e,n);let r=e;for(;r&&r!==Mm;)Object.getOwnPropertyNames(r).forEach(o=>{if(!(o in n))try{n[o]=gt(e[o],t);}catch(i){delete n[o],n[o]=Vc(i);}}),r=Object.getPrototypeOf(r);return n}}function ur(e){try{return e()}catch{}}function Rm(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function si(e,t,n=new WeakSet){if(!e||typeof e!="object")return {message:String(e)};let r=e;(r.showDiff||r.showDiff===void 0&&r.expected!==void 0&&r.actual!==void 0)&&(r.diff=ar(r.actual,r.expected,{...t,...r.diffOptions})),"expected"in r&&typeof r.expected!="string"&&(r.expected=_e(r.expected,10)),"actual"in r&&typeof r.actual!="string"&&(r.actual=_e(r.actual,10));try{typeof r.message=="string"&&(r.message=Rm(r.message));}catch{}try{!n.has(r)&&typeof r.cause=="object"&&(n.add(r),r.cause=si(r.cause,t,n));}catch{}try{return gt(r)}catch(o){return gt(new Error(`Failed to fully serialize error: ${o?.message}
60
+ Inner error message: ${r?.message}`))}}var nl=Object.defineProperty,jm=Object.getOwnPropertyNames,T=(e,t)=>nl(e,"name",{value:t,configurable:true}),Fm=(e,t)=>function(){return t||(0, e[jm(e)[0]])((t={exports:{}}).exports,t),t.exports},xi=(e,t)=>{for(var n in t)nl(e,n,{get:t[n],enumerable:true});},Dm=Fm({"(disabled):util"(){}}),we={};xi(we,{addChainableMethod:()=>Ri,addLengthGuard:()=>dn,addMethod:()=>Ni,addProperty:()=>$i,checkError:()=>Le,compareByInspect:()=>pr,eql:()=>Pl,expectTypes:()=>ul,flag:()=>K,getActual:()=>wr,getMessage:()=>Ci,getName:()=>Er,getOperator:()=>Li,getOwnEnumerableProperties:()=>Di,getOwnEnumerablePropertySymbols:()=>Fi,getPathInfo:()=>Pi,hasProperty:()=>vr,inspect:()=>Z,isNaN:()=>mr,isNumeric:()=>xe,isProxyEnabled:()=>hn,isRegExp:()=>gr,objDisplay:()=>Nt,overwriteChainableMethod:()=>ji,overwriteMethod:()=>Mi,overwriteProperty:()=>ki,proxify:()=>Kt,test:()=>Ti,transferFlags:()=>Ze,type:()=>ae});var Le={};xi(Le,{compatibleConstructor:()=>il,compatibleInstance:()=>ol,compatibleMessage:()=>sl,getConstructorName:()=>al,getMessage:()=>cl});function br(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}T(br,"isErrorInstance");function rl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}T(rl,"isRegExp");function ol(e,t){return br(t)&&e===t}T(ol,"compatibleInstance");function il(e,t){return br(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:false}T(il,"compatibleConstructor");function sl(e,t){let n=typeof e=="string"?e:e.message;return rl(t)?t.test(n):typeof t=="string"?n.indexOf(t)!==-1:false}T(sl,"compatibleMessage");function al(e){let t=e;return br(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}T(al,"getConstructorName");function cl(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}T(cl,"getMessage");function K(e,t,n){var r=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)r[t]=n;else return r[t]}T(K,"flag");function Ti(e,t){var n=K(e,"negate"),r=t[0];return n?!r:r}T(Ti,"test");function ae(e){if(typeof e>"u")return "undefined";if(e===null)return "null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}T(ae,"type");var Lm="captureStackTrace"in Error,te=class ll extends Error{static{T(this,"AssertionError");}message;get name(){return "AssertionError"}get ok(){return false}constructor(t="Unspecified AssertionError",n,r){super(t),this.message=t,Lm&&Error.captureStackTrace(this,r||ll);for(let o in n)o in this||(this[o]=n[o]);}toJSON(t){return {...this,name:this.name,message:this.message,ok:false,stack:t!==false?this.stack:void 0}}};function ul(e,t){var n=K(e,"message"),r=K(e,"ssfi");n=n?n+": ":"",e=K(e,"object"),t=t.map(function(s){return s.toLowerCase()}),t.sort();var o=t.map(function(s,a){var c=~["a","e","i","o","u"].indexOf(s.charAt(0))?"an":"a",l=t.length>1&&a===t.length-1?"or ":"";return l+c+" "+s}).join(", "),i=ae(e).toLowerCase();if(!t.some(function(s){return i===s}))throw new te(n+"object tested must be "+o+", but "+i+" given",void 0,r)}T(ul,"expectTypes");function wr(e,t){return t.length>4?t[4]:e._obj}T(wr,"getActual");var Kc={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},qm={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Jt="\u2026";function fl(e,t){let n=Kc[qm[t]]||Kc[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}T(fl,"colorise");function hl({showHidden:e=false,depth:t=2,colors:n=false,customInspect:r=true,showProxy:o=false,maxArrayLength:i=1/0,breakLength:s=1/0,seen:a=[],truncate:c=1/0,stylize:l=String}={},u){let f={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(c),seen:a,inspect:u,stylize:l};return f.colors&&(f.stylize=fl),f}T(hl,"normaliseOptions");function dl(e){return e>="\uD800"&&e<="\uDBFF"}T(dl,"isHighSurrogate");function lt(e,t,n=Jt){e=String(e);let r=n.length,o=e.length;if(r>t&&o>r)return n;if(o>t&&o>r){let i=t-r;return i>0&&dl(e[i-1])&&(i=i-1),`${e.slice(0,i)}${n}`}return e}T(lt,"truncate");function Be(e,t,n,r=", "){n=n||t.inspect;let o=e.length;if(o===0)return "";let i=t.truncate,s="",a="",c="";for(let l=0;l<o;l+=1){let u=l+1===e.length,f=l+2===e.length;c=`${Jt}(${e.length-l})`;let p=e[l];t.truncate=i-s.length-(u?0:r.length);let h=a||n(p,t)+(u?"":r),m=s.length+h.length,d=m+c.length;if(u&&m>i&&s.length+c.length<=i||!u&&!f&&d>i||(a=u?"":n(e[l+1],t)+(f?"":r),!u&&f&&d>i&&m+a.length>i))break;if(s+=h,!u&&!f&&m+a.length>=i){c=`${Jt}(${e.length-l-1})`;break}c="";}return `${s}${c}`}T(Be,"inspectList");function pl(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}T(pl,"quoteComplexKey");function Vt([e,t],n){return n.truncate-=2,typeof e=="string"?e=pl(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}T(Vt,"inspectProperty");function ml(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return "[]";t.truncate-=4;let r=Be(e,t);t.truncate-=r.length;let o="";return n.length&&(o=Be(n.map(i=>[i,e[i]]),t,Vt)),`[ ${r}${o?`, ${o}`:""} ]`}T(ml,"inspectArray");var Bm=T(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function tt(e,t){let n=Bm(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return `${n}[]`;let o="";for(let s=0;s<e.length;s++){let a=`${t.stylize(lt(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=a.length,e[s]!==e.length&&t.truncate<=3){o+=`${Jt}(${e.length-e[s]+1})`;break}o+=a;}let i="";return r.length&&(i=Be(r.map(s=>[s,e[s]]),t,Vt)),`${n}[ ${o}${i?`, ${i}`:""} ]`}T(tt,"inspectTypedArray");function gl(e,t){let n=e.toJSON();if(n===null)return "Invalid Date";let r=n.split("T"),o=r[0];return t.stylize(`${o}T${lt(r[1],t.truncate-o.length-1)}`,"date")}T(gl,"inspectDate");function li(e,t){let n=e[Symbol.toStringTag]||"Function",r=e.name;return r?t.stylize(`[${n} ${lt(r,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}T(li,"inspectFunction");function yl([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}T(yl,"inspectMapEntry");function bl(e){let t=[];return e.forEach((n,r)=>{t.push([r,n]);}),t}T(bl,"mapToEntries");function wl(e,t){return e.size-1<=0?"Map{}":(t.truncate-=7,`Map{ ${Be(bl(e),t,yl)} }`)}T(wl,"inspectMap");var Um=Number.isNaN||(e=>e!==e);function ui(e,t){return Um(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(lt(String(e),t.truncate),"number")}T(ui,"inspectNumber");function fi(e,t){let n=lt(e.toString(),t.truncate-1);return n!==Jt&&(n+="n"),t.stylize(n,"bigint")}T(fi,"inspectBigInt");function vl(e,t){let n=e.toString().split("/")[2],r=t.truncate-(2+n.length),o=e.source;return t.stylize(`/${lt(o,r)}/${n}`,"regexp")}T(vl,"inspectRegExp");function El(e){let t=[];return e.forEach(n=>{t.push(n);}),t}T(El,"arrayFromSet");function Sl(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Be(El(e),t)} }`)}T(Sl,"inspectSet");var Hc=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),zm={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},Wm=16;function xl(e){return zm[e]||`\\u${`0000${e.charCodeAt(0).toString(Wm)}`.slice(-4)}`}T(xl,"escape");function hi(e,t){return Hc.test(e)&&(e=e.replace(Hc,xl)),t.stylize(`'${lt(e,t.truncate-2)}'`,"string")}T(hi,"inspectString");function di(e){return "description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}T(di,"inspectSymbol");var Tl=T(()=>"Promise{\u2026}","getPromiseValue");try{let{getPromiseDetails:e,kPending:t,kRejected:n}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(Tl=T((r,o)=>{let[i,s]=e(r);return i===t?"Promise{<pending>}":`Promise${i===n?"!":""}{${o.inspect(s,o)}}`},"getPromiseValue"));}catch{}var Vm=Tl;function un(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&r.length===0)return "{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return "[Circular]";t.seen.push(e);let o=Be(n.map(a=>[a,e[a]]),t,Vt),i=Be(r.map(a=>[a,e[a]]),t,Vt);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}T(un,"inspectObject");var ai=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:false;function _l(e,t){let n="";return ai&&ai in e&&(n=e[ai]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${un(e,t)}`}T(_l,"inspectClass");function Cl(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Be(e,t)} ]`)}T(Cl,"inspectArguments");var Km=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Al(e,t){let n=Object.getOwnPropertyNames(e).filter(s=>Km.indexOf(s)===-1),r=e.name;t.truncate-=r.length;let o="";if(typeof e.message=="string"?o=lt(e.message,t.truncate):n.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return "[Circular]";t.seen.push(e);let i=Be(n.map(s=>[s,e[s]]),t,Vt);return `${r}${o}${i?` { ${i} }`:""}`}T(Al,"inspectObject");function Il([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}T(Il,"inspectAttribute");function fr(e,t){return Be(e,t,_i,`
61
+ `)}T(fr,"inspectHTMLCollection");function _i(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),o=t.stylize(`<${r}`,"special"),i=t.stylize(">","special"),s=t.stylize(`</${r}>`,"special");t.truncate-=r.length*2+5;let a="";n.length>0&&(a+=" ",a+=Be(n.map(u=>[u,e.getAttribute(u)]),t,Il," ")),t.truncate-=a.length;let c=t.truncate,l=fr(e.children,t);return l&&l.length>c&&(l=`${Jt}(${e.children.length})`),`${o}${a}${i}${l}${s}`}T(_i,"inspectHTML");var Hm=typeof Symbol=="function"&&typeof Symbol.for=="function",ci=Hm?Symbol.for("chai/inspect"):"@@chai/inspect",Wt=false;try{let e=Dm();Wt=e.inspect?e.inspect.custom:!1;}catch{Wt=false;}var Xc=new WeakMap,Gc={},Yc={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:ui,Number:ui,bigint:fi,BigInt:fi,string:hi,String:hi,function:li,Function:li,symbol:di,Symbol:di,Array:ml,Date:gl,Map:wl,Set:Sl,RegExp:vl,Promise:Vm,WeakSet:(e,t)=>t.stylize("WeakSet{\u2026}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{\u2026}","special"),Arguments:Cl,Int8Array:tt,Uint8Array:tt,Uint8ClampedArray:tt,Int16Array:tt,Uint16Array:tt,Int32Array:tt,Uint32Array:tt,Float32Array:tt,Float64Array:tt,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:Al,HTMLCollection:fr,NodeList:fr},Xm=T((e,t,n)=>ci in e&&typeof e[ci]=="function"?e[ci](t):Wt&&Wt in e&&typeof e[Wt]=="function"?e[Wt](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Xc.has(e.constructor)?Xc.get(e.constructor)(e,t):Gc[n]?Gc[n](e,t):"","inspectCustom"),Gm=Object.prototype.toString;function hr(e,t={}){let n=hl(t,hr),{customInspect:r}=n,o=e===null?"null":typeof e;if(o==="object"&&(o=Gm.call(e).slice(8,-1)),o in Yc)return Yc[o](e,n);if(r&&e){let s=Xm(e,n,o);if(s)return typeof s=="string"?s:hr(s,n)}let i=e?Object.getPrototypeOf(e):false;return i===Object.prototype||i===null?un(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?_i(e,n):"constructor"in e?e.constructor!==Object?_l(e,n):un(e,n):e===Object(e)?un(e,n):n.stylize(String(e),o)}T(hr,"inspect");var ke={includeStack:false,showDiff:true,truncateThreshold:40,useProxy:true,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function Z(e,t,n,r){var o={colors:r,depth:typeof n>"u"?2:n,showHidden:t,truncate:ke.truncateThreshold?ke.truncateThreshold:1/0};return hr(e,o)}T(Z,"inspect");function Nt(e){var t=Z(e),n=Object.prototype.toString.call(e);if(ke.truncateThreshold&&t.length>=ke.truncateThreshold){if(n==="[object Function]")return !e.name||e.name===""?"[Function]":"[Function: "+e.name+"]";if(n==="[object Array]")return "[ Array("+e.length+") ]";if(n==="[object Object]"){var r=Object.keys(e),o=r.length>2?r.splice(0,2).join(", ")+", ...":r.join(", ");return "{ Object ("+o+") }"}else return t}else return t}T(Nt,"objDisplay");function Ci(e,t){var n=K(e,"negate"),r=K(e,"object"),o=t[3],i=wr(e,t),s=n?t[2]:t[1],a=K(e,"message");return typeof s=="function"&&(s=s()),s=s||"",s=s.replace(/#\{this\}/g,function(){return Nt(r)}).replace(/#\{act\}/g,function(){return Nt(i)}).replace(/#\{exp\}/g,function(){return Nt(o)}),a?a+": "+s:s}T(Ci,"getMessage");function Ze(e,t,n){var r=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),n=arguments.length===3?n:true;for(var o in r)(n||o!=="object"&&o!=="ssfi"&&o!=="lockSsfi"&&o!="message")&&(t.__flags[o]=r[o]);}T(Ze,"transferFlags");function pi(e){if(typeof e>"u")return "undefined";if(e===null)return "null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}T(pi,"type");function Ai(){this._key="chai/deep-eql__"+Math.random()+Date.now();}T(Ai,"FakeMap");Ai.prototype={get:T(function(t){return t[this._key]},"get"),set:T(function(t,n){Object.isExtensible(t)&&Object.defineProperty(t,this._key,{value:n,configurable:true});},"set")};var Ol=typeof WeakMap=="function"?WeakMap:Ai;function mi(e,t,n){if(!n||kt(e)||kt(t))return null;var r=n.get(e);if(r){var o=r.get(t);if(typeof o=="boolean")return o}return null}T(mi,"memoizeCompare");function ln(e,t,n,r){if(!(!n||kt(e)||kt(t))){var o=n.get(e);o?o.set(t,r):(o=new Ol,o.set(t,r),n.set(e,o));}}T(ln,"memoizeSet");var Pl=fn;function fn(e,t,n){if(n&&n.comparator)return gi(e,t,n);var r=Ii(e,t);return r!==null?r:gi(e,t,n)}T(fn,"deepEqual");function Ii(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?true:kt(e)||kt(t)?false:null}T(Ii,"simpleEqual");function gi(e,t,n){n=n||{},n.memoize=n.memoize===false?false:n.memoize||new Ol;var r=n&&n.comparator,o=mi(e,t,n.memoize);if(o!==null)return o;var i=mi(t,e,n.memoize);if(i!==null)return i;if(r){var s=r(e,t);if(s===false||s===true)return ln(e,t,n.memoize,s),s;var a=Ii(e,t);if(a!==null)return a}var c=pi(e);if(c!==pi(t))return ln(e,t,n.memoize,false),false;ln(e,t,n.memoize,true);var l=$l(e,t,c,n);return ln(e,t,n.memoize,l),l}T(gi,"extensiveDeepEqual");function $l(e,t,n,r){switch(n){case "String":case "Number":case "Boolean":case "Date":return fn(e.valueOf(),t.valueOf());case "Promise":case "Symbol":case "function":case "WeakMap":case "WeakSet":return e===t;case "Error":return Oi(e,t,["name","message","code"],r);case "Arguments":case "Int8Array":case "Uint8Array":case "Uint8ClampedArray":case "Int16Array":case "Uint16Array":case "Int32Array":case "Uint32Array":case "Float32Array":case "Float64Array":case "Array":return yt(e,t,r);case "RegExp":return Nl(e,t);case "Generator":return kl(e,t,r);case "DataView":return yt(new Uint8Array(e.buffer),new Uint8Array(t.buffer),r);case "ArrayBuffer":return yt(new Uint8Array(e),new Uint8Array(t),r);case "Set":return yi(e,t,r);case "Map":return yi(e,t,r);case "Temporal.PlainDate":case "Temporal.PlainTime":case "Temporal.PlainDateTime":case "Temporal.Instant":case "Temporal.ZonedDateTime":case "Temporal.PlainYearMonth":case "Temporal.PlainMonthDay":return e.equals(t);case "Temporal.Duration":return e.total("nanoseconds")===t.total("nanoseconds");case "Temporal.TimeZone":case "Temporal.Calendar":return e.toString()===t.toString();default:return Rl(e,t,r)}}T($l,"extensiveDeepEqualByType");function Nl(e,t){return e.toString()===t.toString()}T(Nl,"regexpEqual");function yi(e,t,n){try{if(e.size!==t.size)return !1;if(e.size===0)return !0}catch{return false}var r=[],o=[];return e.forEach(T(function(s,a){r.push([s,a]);},"gatherEntries")),t.forEach(T(function(s,a){o.push([s,a]);},"gatherEntries")),yt(r.sort(),o.sort(),n)}T(yi,"entriesEqual");function yt(e,t,n){var r=e.length;if(r!==t.length)return false;if(r===0)return true;for(var o=-1;++o<r;)if(fn(e[o],t[o],n)===false)return false;return true}T(yt,"iterableEqual");function kl(e,t,n){return yt(dr(e),dr(t),n)}T(kl,"generatorEqual");function Ml(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}T(Ml,"hasIteratorFunction");function bi(e){if(Ml(e))try{return dr(e[Symbol.iterator]())}catch{return []}return []}T(bi,"getIteratorEntries");function dr(e){for(var t=e.next(),n=[t.value];t.done===false;)t=e.next(),n.push(t.value);return n}T(dr,"getGeneratorEntries");function wi(e){var t=[];for(var n in e)t.push(n);return t}T(wi,"getEnumerableKeys");function vi(e){for(var t=[],n=Object.getOwnPropertySymbols(e),r=0;r<n.length;r+=1){var o=n[r];Object.getOwnPropertyDescriptor(e,o).enumerable&&t.push(o);}return t}T(vi,"getEnumerableSymbols");function Oi(e,t,n,r){var o=n.length;if(o===0)return true;for(var i=0;i<o;i+=1)if(fn(e[n[i]],t[n[i]],r)===false)return false;return true}T(Oi,"keysEqual");function Rl(e,t,n){var r=wi(e),o=wi(t),i=vi(e),s=vi(t);if(r=r.concat(i),o=o.concat(s),r.length&&r.length===o.length)return yt(Ei(r).sort(),Ei(o).sort())===false?false:Oi(e,t,r,n);var a=bi(e),c=bi(t);return a.length&&a.length===c.length?(a.sort(),c.sort(),yt(a,c,n)):r.length===0&&a.length===0&&o.length===0&&c.length===0}T(Rl,"objectEqual");function kt(e){return e===null||typeof e!="object"}T(kt,"isPrimitive");function Ei(e){return e.map(T(function(n){return typeof n=="symbol"?n.toString():n},"mapSymbol"))}T(Ei,"mapSymbols");function vr(e,t){return typeof e>"u"||e===null?false:t in Object(e)}T(vr,"hasProperty");function jl(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(r=>{if(r==="constructor"||r==="__proto__"||r==="prototype")return {};let i=/^\[(\d+)\]$/.exec(r),s=null;return i?s={i:parseFloat(i[1])}:s={p:r.replace(/\\([.[\]])/g,"$1")},s})}T(jl,"parsePath");function Si(e,t,n){let r=e,o=null;n=typeof n>"u"?t.length:n;for(let i=0;i<n;i++){let s=t[i];r&&(typeof s.p>"u"?r=r[s.i]:r=r[s.p],i===n-1&&(o=r));}return o}T(Si,"internalGetPathValue");function Pi(e,t){let n=jl(t),r=n[n.length-1],o={parent:n.length>1?Si(e,n,n.length-1):e,name:r.p||r.i,value:Si(e,n)};return o.exists=vr(o.parent,o.name),o}T(Pi,"getPathInfo");function y(e,t,n,r){return K(this,"ssfi",n||y),K(this,"lockSsfi",r),K(this,"object",e),K(this,"message",t),K(this,"eql",ke.deepEqual||Pl),Kt(this)}T(y,"Assertion");Object.defineProperty(y,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),ke.includeStack},set:function(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),ke.includeStack=e;}});Object.defineProperty(y,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),ke.showDiff},set:function(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),ke.showDiff=e;}});y.addProperty=function(e,t){$i(this.prototype,e,t);};y.addMethod=function(e,t){Ni(this.prototype,e,t);};y.addChainableMethod=function(e,t,n){Ri(this.prototype,e,t,n);};y.overwriteProperty=function(e,t){ki(this.prototype,e,t);};y.overwriteMethod=function(e,t){Mi(this.prototype,e,t);};y.overwriteChainableMethod=function(e,t,n){ji(this.prototype,e,t,n);};y.prototype.assert=function(e,t,n,r,o,i){var s=Ti(this,arguments);if(i!==false&&(i=true),r===void 0&&o===void 0&&(i=false),ke.showDiff!==true&&(i=false),!s){t=Ci(this,arguments);var a=wr(this,arguments),c={actual:a,expected:r,showDiff:i},l=Li(this,arguments);throw l&&(c.operator=l),new te(t,c,ke.includeStack?this.assert:K(this,"ssfi"))}};Object.defineProperty(y.prototype,"_obj",{get:function(){return K(this,"object")},set:function(e){K(this,"object",e);}});function hn(){return ke.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}T(hn,"isProxyEnabled");function $i(e,t,n){n=n===void 0?function(){}:n,Object.defineProperty(e,t,{get:T(function r(){!hn()&&!K(this,"lockSsfi")&&K(this,"ssfi",r);var o=n.call(this);if(o!==void 0)return o;var i=new y;return Ze(this,i),i},"propertyGetter"),configurable:true});}T($i,"addProperty");var Ym=Object.getOwnPropertyDescriptor(function(){},"length");function dn(e,t,n){return Ym.configurable&&Object.defineProperty(e,"length",{get:function(){throw Error(n?"Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.':"Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')}}),e}T(dn,"addLengthGuard");function Fl(e){var t=Object.getOwnPropertyNames(e);function n(o){t.indexOf(o)===-1&&t.push(o);}T(n,"addProperty");for(var r=Object.getPrototypeOf(e);r!==null;)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return t}T(Fl,"getProperties");var Zc=["__flags","__methods","_obj","assert"];function Kt(e,t){return hn()?new Proxy(e,{get:T(function n(r,o){if(typeof o=="string"&&ke.proxyExcludedKeys.indexOf(o)===-1&&!Reflect.has(r,o)){if(t)throw Error("Invalid Chai property: "+t+"."+o+'. See docs for proper usage of "'+t+'".');var i=null,s=4;throw Fl(r).forEach(function(a){if(!Object.prototype.hasOwnProperty(a)&&Zc.indexOf(a)===-1){var c=Dl(o,a,s);c<s&&(i=a,s=c);}}),Error(i!==null?"Invalid Chai property: "+o+'. Did you mean "'+i+'"?':"Invalid Chai property: "+o)}return Zc.indexOf(o)===-1&&!K(r,"lockSsfi")&&K(r,"ssfi",n),Reflect.get(r,o)},"proxyGetter")}):e}T(Kt,"proxify");function Dl(e,t,n){if(Math.abs(e.length-t.length)>=n)return n;var r=[];for(let i=0;i<=e.length;i++)r[i]=Array(t.length+1).fill(0),r[i][0]=i;for(let i=0;i<t.length;i++)r[0][i]=i;for(let i=1;i<=e.length;i++){var o=e.charCodeAt(i-1);for(let s=1;s<=t.length;s++){if(Math.abs(i-s)>=n){r[i][s]=n;continue}r[i][s]=Math.min(r[i-1][s]+1,r[i][s-1]+1,r[i-1][s-1]+(o===t.charCodeAt(s-1)?0:1));}}return r[e.length][t.length]}T(Dl,"stringDistanceCapped");function Ni(e,t,n){var r=T(function(){K(this,"lockSsfi")||K(this,"ssfi",r);var o=n.apply(this,arguments);if(o!==void 0)return o;var i=new y;return Ze(this,i),i},"methodWrapper");dn(r,t,false),e[t]=Kt(r,t);}T(Ni,"addMethod");function ki(e,t,n){var r=Object.getOwnPropertyDescriptor(e,t),o=T(function(){},"_super");r&&typeof r.get=="function"&&(o=r.get),Object.defineProperty(e,t,{get:T(function i(){!hn()&&!K(this,"lockSsfi")&&K(this,"ssfi",i);var s=K(this,"lockSsfi");K(this,"lockSsfi",true);var a=n(o).call(this);if(K(this,"lockSsfi",s),a!==void 0)return a;var c=new y;return Ze(this,c),c},"overwritingPropertyGetter"),configurable:true});}T(ki,"overwriteProperty");function Mi(e,t,n){var r=e[t],o=T(function(){throw new Error(t+" is not a function")},"_super");r&&typeof r=="function"&&(o=r);var i=T(function(){K(this,"lockSsfi")||K(this,"ssfi",i);var s=K(this,"lockSsfi");K(this,"lockSsfi",true);var a=n(o).apply(this,arguments);if(K(this,"lockSsfi",s),a!==void 0)return a;var c=new y;return Ze(this,c),c},"overwritingMethodWrapper");dn(i,t,false),e[t]=Kt(i,t);}T(Mi,"overwriteMethod");var Zm=typeof Object.setPrototypeOf=="function",Qc=T(function(){},"testFn"),Qm=Object.getOwnPropertyNames(Qc).filter(function(e){var t=Object.getOwnPropertyDescriptor(Qc,e);return typeof t!="object"?true:!t.configurable}),eg=Function.prototype.call,tg=Function.prototype.apply;function Ri(e,t,n,r){typeof r!="function"&&(r=T(function(){},"chainingBehavior"));var o={method:n,chainingBehavior:r};e.__methods||(e.__methods={}),e.__methods[t]=o,Object.defineProperty(e,t,{get:T(function(){o.chainingBehavior.call(this);var s=T(function(){K(this,"lockSsfi")||K(this,"ssfi",s);var l=o.method.apply(this,arguments);if(l!==void 0)return l;var u=new y;return Ze(this,u),u},"chainableMethodWrapper");if(dn(s,t,true),Zm){var a=Object.create(this);a.call=eg,a.apply=tg,Object.setPrototypeOf(s,a);}else {var c=Object.getOwnPropertyNames(e);c.forEach(function(l){if(Qm.indexOf(l)===-1){var u=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(s,l,u);}});}return Ze(this,s),Kt(s)},"chainableMethodGetter"),configurable:true});}T(Ri,"addChainableMethod");function ji(e,t,n,r){var o=e.__methods[t],i=o.chainingBehavior;o.chainingBehavior=T(function(){var c=r(i).call(this);if(c!==void 0)return c;var l=new y;return Ze(this,l),l},"overwritingChainableMethodGetter");var s=o.method;o.method=T(function(){var c=n(s).apply(this,arguments);if(c!==void 0)return c;var l=new y;return Ze(this,l),l},"overwritingChainableMethodWrapper");}T(ji,"overwriteChainableMethod");function pr(e,t){return Z(e)<Z(t)?-1:1}T(pr,"compareByInspect");function Fi(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}T(Fi,"getOwnEnumerablePropertySymbols");function Di(e){return Object.keys(e).concat(Fi(e))}T(Di,"getOwnEnumerableProperties");var mr=Number.isNaN;function Ll(e){var t=ae(e),n=["Array","Object","Function"];return n.indexOf(t)!==-1}T(Ll,"isObjectType");function Li(e,t){var n=K(e,"operator"),r=K(e,"negate"),o=t[3],i=r?t[2]:t[1];if(n)return n;if(typeof i=="function"&&(i=i()),i=i||"",!!i&&!/\shave\s/.test(i)){var s=Ll(o);return /\snot\s/.test(i)?s?"notDeepStrictEqual":"notStrictEqual":s?"deepStrictEqual":"strictEqual"}}T(Li,"getOperator");function Er(e){return e.name}T(Er,"getName");function gr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}T(gr,"isRegExp");function xe(e){return ["Number","BigInt"].includes(ae(e))}T(xe,"isNumeric");var{flag:E}=we;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){y.addProperty(e);});y.addProperty("not",function(){E(this,"negate",true);});y.addProperty("deep",function(){E(this,"deep",true);});y.addProperty("nested",function(){E(this,"nested",true);});y.addProperty("own",function(){E(this,"own",true);});y.addProperty("ordered",function(){E(this,"ordered",true);});y.addProperty("any",function(){E(this,"any",true),E(this,"all",false);});y.addProperty("all",function(){E(this,"all",true),E(this,"any",false);});var el={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function qi(e,t){t&&E(this,"message",t),e=e.toLowerCase();var n=E(this,"object"),r=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ";let o=ae(n).toLowerCase();el.function.includes(e)?this.assert(el[e].includes(o),"expected #{this} to be "+r+e,"expected #{this} not to be "+r+e):this.assert(e===o,"expected #{this} to be "+r+e,"expected #{this} not to be "+r+e);}T(qi,"an");y.addChainableMethod("an",qi);y.addChainableMethod("a",qi);function ql(e,t){return mr(e)&&mr(t)||e===t}T(ql,"SameValueZero");function pn(){E(this,"contains",true);}T(pn,"includeChainingBehavior");function mn(e,t){t&&E(this,"message",t);var n=E(this,"object"),r=ae(n).toLowerCase(),o=E(this,"message"),i=E(this,"negate"),s=E(this,"ssfi"),a=E(this,"deep"),c=a?"deep ":"",l=a?E(this,"eql"):ql;o=o?o+": ":"";var u=false;switch(r){case "string":u=n.indexOf(e)!==-1;break;case "weakset":if(a)throw new te(o+"unable to use .deep.include with WeakSet",void 0,s);u=n.has(e);break;case "map":n.forEach(function(m){u=u||l(m,e);});break;case "set":a?n.forEach(function(m){u=u||l(m,e);}):u=n.has(e);break;case "array":a?u=n.some(function(m){return l(m,e)}):u=n.indexOf(e)!==-1;break;default:if(e!==Object(e))throw new te(o+"the given combination of arguments ("+r+" and "+ae(e).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+ae(e).toLowerCase(),void 0,s);var f=Object.keys(e),p=null,h=0;if(f.forEach(function(m){var d=new y(n);if(Ze(this,d,true),E(d,"lockSsfi",true),!i||f.length===1){d.property(m,e[m]);return}try{d.property(m,e[m]);}catch(b){if(!Le.compatibleConstructor(b,te))throw b;p===null&&(p=b),h++;}},this),i&&f.length>1&&h===f.length)throw p;return}this.assert(u,"expected #{this} to "+c+"include "+Z(e),"expected #{this} to not "+c+"include "+Z(e));}T(mn,"include");y.addChainableMethod("include",mn,pn);y.addChainableMethod("contain",mn,pn);y.addChainableMethod("contains",mn,pn);y.addChainableMethod("includes",mn,pn);y.addProperty("ok",function(){this.assert(E(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy");});y.addProperty("true",function(){this.assert(E(this,"object")===true,"expected #{this} to be true","expected #{this} to be false",!E(this,"negate"));});y.addProperty("numeric",function(){let e=E(this,"object");this.assert(["Number","BigInt"].includes(ae(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!E(this,"negate"));});y.addProperty("callable",function(){let e=E(this,"object"),t=E(this,"ssfi"),n=E(this,"message"),r=n?`${n}: `:"",o=E(this,"negate"),i=o?`${r}expected ${Z(e)} not to be a callable function`:`${r}expected ${Z(e)} to be a callable function`,s=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(ae(e));if(s&&o||!s&&!o)throw new te(i,void 0,t)});y.addProperty("false",function(){this.assert(E(this,"object")===false,"expected #{this} to be false","expected #{this} to be true",!!E(this,"negate"));});y.addProperty("null",function(){this.assert(E(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null");});y.addProperty("undefined",function(){this.assert(E(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined");});y.addProperty("NaN",function(){this.assert(mr(E(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN");});function Bi(){var e=E(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist");}T(Bi,"assertExist");y.addProperty("exist",Bi);y.addProperty("exists",Bi);y.addProperty("empty",function(){var e=E(this,"object"),t=E(this,"ssfi"),n=E(this,"message"),r;switch(n=n?n+": ":"",ae(e).toLowerCase()){case "array":case "string":r=e.length;break;case "map":case "set":r=e.size;break;case "weakmap":case "weakset":throw new te(n+".empty was passed a weak collection",void 0,t);case "function":var o=n+".empty was passed a function "+Er(e);throw new te(o.trim(),void 0,t);default:if(e!==Object(e))throw new te(n+".empty was passed non-string primitive "+Z(e),void 0,t);r=Object.keys(e).length;}this.assert(r===0,"expected #{this} to be empty","expected #{this} not to be empty");});function Ui(){var e=E(this,"object"),t=ae(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments");}T(Ui,"checkArguments");y.addProperty("arguments",Ui);y.addProperty("Arguments",Ui);function Sr(e,t){t&&E(this,"message",t);var n=E(this,"object");if(E(this,"deep")){var r=E(this,"lockSsfi");E(this,"lockSsfi",true),this.eql(e),E(this,"lockSsfi",r);}else this.assert(e===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,true);}T(Sr,"assertEqual");y.addMethod("equal",Sr);y.addMethod("equals",Sr);y.addMethod("eq",Sr);function zi(e,t){t&&E(this,"message",t);var n=E(this,"eql");this.assert(n(e,E(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,true);}T(zi,"assertEql");y.addMethod("eql",zi);y.addMethod("eqls",zi);function xr(e,t){t&&E(this,"message",t);var n=E(this,"object"),r=E(this,"doLength"),o=E(this,"message"),i=o?o+": ":"",s=E(this,"ssfi"),a=ae(n).toLowerCase(),c=ae(e).toLowerCase();if(r&&a!=="map"&&a!=="set"&&new y(n,o,s,true).to.have.property("length"),!r&&a==="date"&&c!=="date")throw new te(i+"the argument to above must be a date",void 0,s);if(!xe(e)&&(r||xe(n)))throw new te(i+"the argument to above must be a number",void 0,s);if(!r&&a!=="date"&&!xe(n)){var l=a==="string"?"'"+n+"'":n;throw new te(i+"expected "+l+" to be a number or a date",void 0,s)}if(r){var u="length",f;a==="map"||a==="set"?(u="size",f=n.size):f=n.length,this.assert(f>e,"expected #{this} to have a "+u+" above #{exp} but got #{act}","expected #{this} to not have a "+u+" above #{exp}",e,f);}else this.assert(n>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e);}T(xr,"assertAbove");y.addMethod("above",xr);y.addMethod("gt",xr);y.addMethod("greaterThan",xr);function Tr(e,t){t&&E(this,"message",t);var n=E(this,"object"),r=E(this,"doLength"),o=E(this,"message"),i=o?o+": ":"",s=E(this,"ssfi"),a=ae(n).toLowerCase(),c=ae(e).toLowerCase(),l,u=true;if(r&&a!=="map"&&a!=="set"&&new y(n,o,s,true).to.have.property("length"),!r&&a==="date"&&c!=="date")l=i+"the argument to least must be a date";else if(!xe(e)&&(r||xe(n)))l=i+"the argument to least must be a number";else if(!r&&a!=="date"&&!xe(n)){var f=a==="string"?"'"+n+"'":n;l=i+"expected "+f+" to be a number or a date";}else u=false;if(u)throw new te(l,void 0,s);if(r){var p="length",h;a==="map"||a==="set"?(p="size",h=n.size):h=n.length,this.assert(h>=e,"expected #{this} to have a "+p+" at least #{exp} but got #{act}","expected #{this} to have a "+p+" below #{exp}",e,h);}else this.assert(n>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e);}T(Tr,"assertLeast");y.addMethod("least",Tr);y.addMethod("gte",Tr);y.addMethod("greaterThanOrEqual",Tr);function _r(e,t){t&&E(this,"message",t);var n=E(this,"object"),r=E(this,"doLength"),o=E(this,"message"),i=o?o+": ":"",s=E(this,"ssfi"),a=ae(n).toLowerCase(),c=ae(e).toLowerCase(),l,u=true;if(r&&a!=="map"&&a!=="set"&&new y(n,o,s,true).to.have.property("length"),!r&&a==="date"&&c!=="date")l=i+"the argument to below must be a date";else if(!xe(e)&&(r||xe(n)))l=i+"the argument to below must be a number";else if(!r&&a!=="date"&&!xe(n)){var f=a==="string"?"'"+n+"'":n;l=i+"expected "+f+" to be a number or a date";}else u=false;if(u)throw new te(l,void 0,s);if(r){var p="length",h;a==="map"||a==="set"?(p="size",h=n.size):h=n.length,this.assert(h<e,"expected #{this} to have a "+p+" below #{exp} but got #{act}","expected #{this} to not have a "+p+" below #{exp}",e,h);}else this.assert(n<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e);}T(_r,"assertBelow");y.addMethod("below",_r);y.addMethod("lt",_r);y.addMethod("lessThan",_r);function Cr(e,t){t&&E(this,"message",t);var n=E(this,"object"),r=E(this,"doLength"),o=E(this,"message"),i=o?o+": ":"",s=E(this,"ssfi"),a=ae(n).toLowerCase(),c=ae(e).toLowerCase(),l,u=true;if(r&&a!=="map"&&a!=="set"&&new y(n,o,s,true).to.have.property("length"),!r&&a==="date"&&c!=="date")l=i+"the argument to most must be a date";else if(!xe(e)&&(r||xe(n)))l=i+"the argument to most must be a number";else if(!r&&a!=="date"&&!xe(n)){var f=a==="string"?"'"+n+"'":n;l=i+"expected "+f+" to be a number or a date";}else u=false;if(u)throw new te(l,void 0,s);if(r){var p="length",h;a==="map"||a==="set"?(p="size",h=n.size):h=n.length,this.assert(h<=e,"expected #{this} to have a "+p+" at most #{exp} but got #{act}","expected #{this} to have a "+p+" above #{exp}",e,h);}else this.assert(n<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e);}T(Cr,"assertMost");y.addMethod("most",Cr);y.addMethod("lte",Cr);y.addMethod("lessThanOrEqual",Cr);y.addMethod("within",function(e,t,n){n&&E(this,"message",n);var r=E(this,"object"),o=E(this,"doLength"),i=E(this,"message"),s=i?i+": ":"",a=E(this,"ssfi"),c=ae(r).toLowerCase(),l=ae(e).toLowerCase(),u=ae(t).toLowerCase(),f,p=true,h=l==="date"&&u==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(o&&c!=="map"&&c!=="set"&&new y(r,i,a,true).to.have.property("length"),!o&&c==="date"&&(l!=="date"||u!=="date"))f=s+"the arguments to within must be dates";else if((!xe(e)||!xe(t))&&(o||xe(r)))f=s+"the arguments to within must be numbers";else if(!o&&c!=="date"&&!xe(r)){var m=c==="string"?"'"+r+"'":r;f=s+"expected "+m+" to be a number or a date";}else p=false;if(p)throw new te(f,void 0,a);if(o){var d="length",b;c==="map"||c==="set"?(d="size",b=r.size):b=r.length,this.assert(b>=e&&b<=t,"expected #{this} to have a "+d+" within "+h,"expected #{this} to not have a "+d+" within "+h);}else this.assert(r>=e&&r<=t,"expected #{this} to be within "+h,"expected #{this} to not be within "+h);});function Wi(e,t){t&&E(this,"message",t);var n=E(this,"object"),r=E(this,"ssfi"),o=E(this,"message");try{var i=n instanceof e;}catch(a){throw a instanceof TypeError?(o=o?o+": ":"",new te(o+"The instanceof assertion needs a constructor but "+ae(e)+" was given.",void 0,r)):a}var s=Er(e);s==null&&(s="an unnamed constructor"),this.assert(i,"expected #{this} to be an instance of "+s,"expected #{this} to not be an instance of "+s);}T(Wi,"assertInstanceOf");y.addMethod("instanceof",Wi);y.addMethod("instanceOf",Wi);function Ji(e,t,n){n&&E(this,"message",n);var r=E(this,"nested"),o=E(this,"own"),i=E(this,"message"),s=E(this,"object"),a=E(this,"ssfi"),c=typeof e;if(i=i?i+": ":"",r){if(c!=="string")throw new te(i+"the argument to property must be a string when using nested syntax",void 0,a)}else if(c!=="string"&&c!=="number"&&c!=="symbol")throw new te(i+"the argument to property must be a string, number, or symbol",void 0,a);if(r&&o)throw new te(i+'The "nested" and "own" flags cannot be combined.',void 0,a);if(s==null)throw new te(i+"Target cannot be null or undefined.",void 0,a);var l=E(this,"deep"),u=E(this,"negate"),f=r?Pi(s,e):null,p=r?f.value:s[e],h=l?E(this,"eql"):(b,v)=>b===v,m="";l&&(m+="deep "),o&&(m+="own "),r&&(m+="nested "),m+="property ";var d;o?d=Object.prototype.hasOwnProperty.call(s,e):r?d=f.exists:d=vr(s,e),(!u||arguments.length===1)&&this.assert(d,"expected #{this} to have "+m+Z(e),"expected #{this} to not have "+m+Z(e)),arguments.length>1&&this.assert(d&&h(t,p),"expected #{this} to have "+m+Z(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+m+Z(e)+" of #{act}",t,p),E(this,"object",p);}T(Ji,"assertProperty");y.addMethod("property",Ji);function Vi(e,t,n){E(this,"own",true),Ji.apply(this,arguments);}T(Vi,"assertOwnProperty");y.addMethod("ownProperty",Vi);y.addMethod("haveOwnProperty",Vi);function Ki(e,t,n){typeof t=="string"&&(n=t,t=null),n&&E(this,"message",n);var r=E(this,"object"),o=Object.getOwnPropertyDescriptor(Object(r),e),i=E(this,"eql");o&&t?this.assert(i(t,o),"expected the own property descriptor for "+Z(e)+" on #{this} to match "+Z(t)+", got "+Z(o),"expected the own property descriptor for "+Z(e)+" on #{this} to not match "+Z(t),t,o,true):this.assert(o,"expected #{this} to have an own property descriptor for "+Z(e),"expected #{this} to not have an own property descriptor for "+Z(e)),E(this,"object",o);}T(Ki,"assertOwnPropertyDescriptor");y.addMethod("ownPropertyDescriptor",Ki);y.addMethod("haveOwnPropertyDescriptor",Ki);function Hi(){E(this,"doLength",true);}T(Hi,"assertLengthChain");function Xi(e,t){t&&E(this,"message",t);var n=E(this,"object"),r=ae(n).toLowerCase(),o=E(this,"message"),i=E(this,"ssfi"),s="length",a;switch(r){case "map":case "set":s="size",a=n.size;break;default:new y(n,o,i,true).to.have.property("length"),a=n.length;}this.assert(a==e,"expected #{this} to have a "+s+" of #{exp} but got #{act}","expected #{this} to not have a "+s+" of #{act}",e,a);}T(Xi,"assertLength");y.addChainableMethod("length",Xi,Hi);y.addChainableMethod("lengthOf",Xi,Hi);function Gi(e,t){t&&E(this,"message",t);var n=E(this,"object");this.assert(e.exec(n),"expected #{this} to match "+e,"expected #{this} not to match "+e);}T(Gi,"assertMatch");y.addMethod("match",Gi);y.addMethod("matches",Gi);y.addMethod("string",function(e,t){t&&E(this,"message",t);var n=E(this,"object"),r=E(this,"message"),o=E(this,"ssfi");new y(n,r,o,true).is.a("string"),this.assert(~n.indexOf(e),"expected #{this} to contain "+Z(e),"expected #{this} to not contain "+Z(e));});function Yi(e){var t=E(this,"object"),n=ae(t),r=ae(e),o=E(this,"ssfi"),i=E(this,"deep"),s,a="",c,l=true,u=E(this,"message");u=u?u+": ":"";var f=u+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(n==="Map"||n==="Set")a=i?"deeply ":"",c=[],t.forEach(function(x,A){c.push(A);}),r!=="Array"&&(e=Array.prototype.slice.call(arguments));else {switch(c=Di(t),r){case "Array":if(arguments.length>1)throw new te(f,void 0,o);break;case "Object":if(arguments.length>1)throw new te(f,void 0,o);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments);}e=e.map(function(x){return typeof x=="symbol"?x:String(x)});}if(!e.length)throw new te(u+"keys required",void 0,o);var p=e.length,h=E(this,"any"),m=E(this,"all"),d=e,b=i?E(this,"eql"):(x,A)=>x===A;if(!h&&!m&&(m=true),h&&(l=d.some(function(x){return c.some(function(A){return b(x,A)})})),m&&(l=d.every(function(x){return c.some(function(A){return b(x,A)})}),E(this,"contains")||(l=l&&e.length==c.length)),p>1){e=e.map(function(x){return Z(x)});var v=e.pop();m&&(s=e.join(", ")+", and "+v),h&&(s=e.join(", ")+", or "+v);}else s=Z(e[0]);s=(p>1?"keys ":"key ")+s,s=(E(this,"contains")?"contain ":"have ")+s,this.assert(l,"expected #{this} to "+a+s,"expected #{this} to not "+a+s,d.slice(0).sort(pr),c.sort(pr),true);}T(Yi,"assertKeys");y.addMethod("keys",Yi);y.addMethod("key",Yi);function Ar(e,t,n){n&&E(this,"message",n);var r=E(this,"object"),o=E(this,"ssfi"),i=E(this,"message"),s=E(this,"negate")||false;new y(r,i,o,true).is.a("function"),(gr(e)||typeof e=="string")&&(t=e,e=null);let a,c=false;try{r();}catch(x){c=true,a=x;}var l=e===void 0&&t===void 0,u=!!(e&&t),f=false,p=false;if(l||!l&&!s){var h="an error";e instanceof Error?h="#{exp}":e&&(h=Le.getConstructorName(e));let x=a;if(a instanceof Error)x=a.toString();else if(typeof a=="string")x=a;else if(a&&(typeof a=="object"||typeof a=="function"))try{x=Le.getConstructorName(a);}catch{}this.assert(c,"expected #{this} to throw "+h,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),x);}if(e&&a){if(e instanceof Error){var m=Le.compatibleInstance(a,e);m===s&&(u&&s?f=true:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a&&!s?" but #{act} was thrown":""),e.toString(),a.toString()));}var d=Le.compatibleConstructor(a,e);d===s&&(u&&s?f=true:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&Le.getConstructorName(e),a instanceof Error?a.toString():a&&Le.getConstructorName(a)));}if(a&&t!==void 0&&t!==null){var b="including";gr(t)&&(b="matching");var v=Le.compatibleMessage(a,t);v===s&&(u&&s?p=true:this.assert(s,"expected #{this} to throw error "+b+" #{exp} but got #{act}","expected #{this} to throw error not "+b+" #{exp}",t,Le.getMessage(a)));}f&&p&&this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&Le.getConstructorName(e),a instanceof Error?a.toString():a&&Le.getConstructorName(a)),E(this,"object",a);}T(Ar,"assertThrows");y.addMethod("throw",Ar);y.addMethod("throws",Ar);y.addMethod("Throw",Ar);function Zi(e,t){t&&E(this,"message",t);var n=E(this,"object"),r=E(this,"itself"),o=typeof n=="function"&&!r?n.prototype[e]:n[e];this.assert(typeof o=="function","expected #{this} to respond to "+Z(e),"expected #{this} to not respond to "+Z(e));}T(Zi,"respondTo");y.addMethod("respondTo",Zi);y.addMethod("respondsTo",Zi);y.addProperty("itself",function(){E(this,"itself",true);});function Qi(e,t){t&&E(this,"message",t);var n=E(this,"object"),r=e(n);this.assert(r,"expected #{this} to satisfy "+Nt(e),"expected #{this} to not satisfy"+Nt(e),!E(this,"negate"),r);}T(Qi,"satisfy");y.addMethod("satisfy",Qi);y.addMethod("satisfies",Qi);function es(e,t,n){n&&E(this,"message",n);var r=E(this,"object"),o=E(this,"message"),i=E(this,"ssfi");new y(r,o,i,true).is.numeric;let s="A `delta` value is required for `closeTo`";if(t==null)throw new te(o?`${o}: ${s}`:s,void 0,i);if(new y(t,o,i,true).is.numeric,s="A `expected` value is required for `closeTo`",e==null)throw new te(o?`${o}: ${s}`:s,void 0,i);new y(e,o,i,true).is.numeric;let a=T(l=>l<0n?-l:l,"abs"),c=T(l=>parseFloat(parseFloat(l).toPrecision(12)),"strip");this.assert(c(a(r-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t);}T(es,"closeTo");y.addMethod("closeTo",es);y.addMethod("approximately",es);function Bl(e,t,n,r,o){let i=Array.from(t),s=Array.from(e);if(!r){if(s.length!==i.length)return false;i=i.slice();}return s.every(function(a,c){if(o)return n?n(a,i[c]):a===i[c];if(!n){var l=i.indexOf(a);return l===-1?false:(r||i.splice(l,1),true)}return i.some(function(u,f){return n(a,u)?(r||i.splice(f,1),true):false})})}T(Bl,"isSubsetOf");y.addMethod("members",function(e,t){t&&E(this,"message",t);var n=E(this,"object"),r=E(this,"message"),o=E(this,"ssfi");new y(n,r,o,true).to.be.iterable,new y(e,r,o,true).to.be.iterable;var i=E(this,"contains"),s=E(this,"ordered"),a,c,l;i?(a=s?"an ordered superset":"a superset",c="expected #{this} to be "+a+" of #{exp}",l="expected #{this} to not be "+a+" of #{exp}"):(a=s?"ordered members":"members",c="expected #{this} to have the same "+a+" as #{exp}",l="expected #{this} to not have the same "+a+" as #{exp}");var u=E(this,"deep")?E(this,"eql"):void 0;this.assert(Bl(e,n,u,i,s),c,l,e,n,true);});y.addProperty("iterable",function(e){e&&E(this,"message",e);var t=E(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t);});function Ul(e,t){t&&E(this,"message",t);var n=E(this,"object"),r=E(this,"message"),o=E(this,"ssfi"),i=E(this,"contains"),s=E(this,"deep"),a=E(this,"eql");new y(e,r,o,true).to.be.an("array"),i?this.assert(e.some(function(c){return n.indexOf(c)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,n):s?this.assert(e.some(function(c){return a(n,c)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,n):this.assert(e.indexOf(n)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,n);}T(Ul,"oneOf");y.addMethod("oneOf",Ul);function ts(e,t,n){n&&E(this,"message",n);var r=E(this,"object"),o=E(this,"message"),i=E(this,"ssfi");new y(r,o,i,true).is.a("function");var s;t?(new y(e,o,i,true).to.have.property(t),s=e[t]):(new y(e,o,i,true).is.a("function"),s=e()),r();var a=t==null?e():e[t],c=t==null?s:"."+t;E(this,"deltaMsgObj",c),E(this,"initialDeltaValue",s),E(this,"finalDeltaValue",a),E(this,"deltaBehavior","change"),E(this,"realDelta",a!==s),this.assert(s!==a,"expected "+c+" to change","expected "+c+" to not change");}T(ts,"assertChanges");y.addMethod("change",ts);y.addMethod("changes",ts);function ns(e,t,n){n&&E(this,"message",n);var r=E(this,"object"),o=E(this,"message"),i=E(this,"ssfi");new y(r,o,i,true).is.a("function");var s;t?(new y(e,o,i,true).to.have.property(t),s=e[t]):(new y(e,o,i,true).is.a("function"),s=e()),new y(s,o,i,true).is.a("number"),r();var a=t==null?e():e[t],c=t==null?s:"."+t;E(this,"deltaMsgObj",c),E(this,"initialDeltaValue",s),E(this,"finalDeltaValue",a),E(this,"deltaBehavior","increase"),E(this,"realDelta",a-s),this.assert(a-s>0,"expected "+c+" to increase","expected "+c+" to not increase");}T(ns,"assertIncreases");y.addMethod("increase",ns);y.addMethod("increases",ns);function rs(e,t,n){n&&E(this,"message",n);var r=E(this,"object"),o=E(this,"message"),i=E(this,"ssfi");new y(r,o,i,true).is.a("function");var s;t?(new y(e,o,i,true).to.have.property(t),s=e[t]):(new y(e,o,i,true).is.a("function"),s=e()),new y(s,o,i,true).is.a("number"),r();var a=t==null?e():e[t],c=t==null?s:"."+t;E(this,"deltaMsgObj",c),E(this,"initialDeltaValue",s),E(this,"finalDeltaValue",a),E(this,"deltaBehavior","decrease"),E(this,"realDelta",s-a),this.assert(a-s<0,"expected "+c+" to decrease","expected "+c+" to not decrease");}T(rs,"assertDecreases");y.addMethod("decrease",rs);y.addMethod("decreases",rs);function zl(e,t){t&&E(this,"message",t);var n=E(this,"deltaMsgObj"),r=E(this,"initialDeltaValue"),o=E(this,"finalDeltaValue"),i=E(this,"deltaBehavior"),s=E(this,"realDelta"),a;i==="change"?a=Math.abs(o-r)===Math.abs(e):a=s===Math.abs(e),this.assert(a,"expected "+n+" to "+i+" by "+e,"expected "+n+" to not "+i+" by "+e);}T(zl,"assertDelta");y.addMethod("by",zl);y.addProperty("extensible",function(){var e=E(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible");});y.addProperty("sealed",function(){var e=E(this,"object"),t=e===Object(e)?Object.isSealed(e):true;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed");});y.addProperty("frozen",function(){var e=E(this,"object"),t=e===Object(e)?Object.isFrozen(e):true;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen");});y.addProperty("finite",function(e){var t=E(this,"object");this.assert(typeof t=="number"&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number");});function yr(e,t){return e===t?true:typeof t!=typeof e?false:typeof e!="object"||e===null?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(n){return t.some(function(r){return yr(n,r)})}):false:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():false:Object.keys(e).every(function(n){var r=e[n],o=t[n];return typeof r=="object"&&r!==null&&o!==null?yr(r,o):typeof r=="function"?r(o):o===r}):false}T(yr,"compareSubset");y.addMethod("containSubset",function(e){let t=K(this,"object"),n=ke.showDiff;this.assert(yr(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,n);});function bt(e,t){return new y(e,t)}T(bt,"expect");bt.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n=n||"expect.fail()",new te(n,{actual:e,expected:t,operator:r},bt.fail)};var Wl={};xi(Wl,{Should:()=>ng,should:()=>Jl});function os(){function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol=="function"&&this instanceof Symbol||typeof BigInt=="function"&&this instanceof BigInt?new y(this.valueOf(),null,e):new y(this,null,e)}T(e,"shouldGetter");function t(r){Object.defineProperty(this,"should",{value:r,enumerable:true,configurable:true,writable:true});}T(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:true});var n={};return n.fail=function(r,o,i,s){throw arguments.length<2&&(i=r,r=void 0),i=i||"should.fail()",new te(i,{actual:r,expected:o,operator:s},n.fail)},n.equal=function(r,o,i){new y(r,i).to.equal(o);},n.Throw=function(r,o,i,s){new y(r,s).to.Throw(o,i);},n.exist=function(r,o){new y(r,o).to.exist;},n.not={},n.not.equal=function(r,o,i){new y(r,i).to.not.equal(o);},n.not.Throw=function(r,o,i,s){new y(r,s).to.not.Throw(o,i);},n.not.exist=function(r,o){new y(r,o).to.not.exist;},n.throw=n.Throw,n.not.throw=n.not.Throw,n}T(os,"loadShould");var Jl=os,ng=os;function g(e,t){var n=new y(null,null,g,true);n.assert(e,t,"[ negation message unavailable ]");}T(g,"assert");g.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),n=n||"assert.fail()",new te(n,{actual:e,expected:t,operator:r},g.fail)};g.isOk=function(e,t){new y(e,t,g.isOk,true).is.ok;};g.isNotOk=function(e,t){new y(e,t,g.isNotOk,true).is.not.ok;};g.equal=function(e,t,n){var r=new y(e,n,g.equal,true);r.assert(t==K(r,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,true);};g.notEqual=function(e,t,n){var r=new y(e,n,g.notEqual,true);r.assert(t!=K(r,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,true);};g.strictEqual=function(e,t,n){new y(e,n,g.strictEqual,true).to.equal(t);};g.notStrictEqual=function(e,t,n){new y(e,n,g.notStrictEqual,true).to.not.equal(t);};g.deepEqual=g.deepStrictEqual=function(e,t,n){new y(e,n,g.deepEqual,true).to.eql(t);};g.notDeepEqual=function(e,t,n){new y(e,n,g.notDeepEqual,true).to.not.eql(t);};g.isAbove=function(e,t,n){new y(e,n,g.isAbove,true).to.be.above(t);};g.isAtLeast=function(e,t,n){new y(e,n,g.isAtLeast,true).to.be.least(t);};g.isBelow=function(e,t,n){new y(e,n,g.isBelow,true).to.be.below(t);};g.isAtMost=function(e,t,n){new y(e,n,g.isAtMost,true).to.be.most(t);};g.isTrue=function(e,t){new y(e,t,g.isTrue,true).is.true;};g.isNotTrue=function(e,t){new y(e,t,g.isNotTrue,true).to.not.equal(true);};g.isFalse=function(e,t){new y(e,t,g.isFalse,true).is.false;};g.isNotFalse=function(e,t){new y(e,t,g.isNotFalse,true).to.not.equal(false);};g.isNull=function(e,t){new y(e,t,g.isNull,true).to.equal(null);};g.isNotNull=function(e,t){new y(e,t,g.isNotNull,true).to.not.equal(null);};g.isNaN=function(e,t){new y(e,t,g.isNaN,true).to.be.NaN;};g.isNotNaN=function(e,t){new y(e,t,g.isNotNaN,true).not.to.be.NaN;};g.exists=function(e,t){new y(e,t,g.exists,true).to.exist;};g.notExists=function(e,t){new y(e,t,g.notExists,true).to.not.exist;};g.isUndefined=function(e,t){new y(e,t,g.isUndefined,true).to.equal(void 0);};g.isDefined=function(e,t){new y(e,t,g.isDefined,true).to.not.equal(void 0);};g.isCallable=function(e,t){new y(e,t,g.isCallable,true).is.callable;};g.isNotCallable=function(e,t){new y(e,t,g.isNotCallable,true).is.not.callable;};g.isObject=function(e,t){new y(e,t,g.isObject,true).to.be.a("object");};g.isNotObject=function(e,t){new y(e,t,g.isNotObject,true).to.not.be.a("object");};g.isArray=function(e,t){new y(e,t,g.isArray,true).to.be.an("array");};g.isNotArray=function(e,t){new y(e,t,g.isNotArray,true).to.not.be.an("array");};g.isString=function(e,t){new y(e,t,g.isString,true).to.be.a("string");};g.isNotString=function(e,t){new y(e,t,g.isNotString,true).to.not.be.a("string");};g.isNumber=function(e,t){new y(e,t,g.isNumber,true).to.be.a("number");};g.isNotNumber=function(e,t){new y(e,t,g.isNotNumber,true).to.not.be.a("number");};g.isNumeric=function(e,t){new y(e,t,g.isNumeric,true).is.numeric;};g.isNotNumeric=function(e,t){new y(e,t,g.isNotNumeric,true).is.not.numeric;};g.isFinite=function(e,t){new y(e,t,g.isFinite,true).to.be.finite;};g.isBoolean=function(e,t){new y(e,t,g.isBoolean,true).to.be.a("boolean");};g.isNotBoolean=function(e,t){new y(e,t,g.isNotBoolean,true).to.not.be.a("boolean");};g.typeOf=function(e,t,n){new y(e,n,g.typeOf,true).to.be.a(t);};g.notTypeOf=function(e,t,n){new y(e,n,g.notTypeOf,true).to.not.be.a(t);};g.instanceOf=function(e,t,n){new y(e,n,g.instanceOf,true).to.be.instanceOf(t);};g.notInstanceOf=function(e,t,n){new y(e,n,g.notInstanceOf,true).to.not.be.instanceOf(t);};g.include=function(e,t,n){new y(e,n,g.include,true).include(t);};g.notInclude=function(e,t,n){new y(e,n,g.notInclude,true).not.include(t);};g.deepInclude=function(e,t,n){new y(e,n,g.deepInclude,true).deep.include(t);};g.notDeepInclude=function(e,t,n){new y(e,n,g.notDeepInclude,true).not.deep.include(t);};g.nestedInclude=function(e,t,n){new y(e,n,g.nestedInclude,true).nested.include(t);};g.notNestedInclude=function(e,t,n){new y(e,n,g.notNestedInclude,true).not.nested.include(t);};g.deepNestedInclude=function(e,t,n){new y(e,n,g.deepNestedInclude,true).deep.nested.include(t);};g.notDeepNestedInclude=function(e,t,n){new y(e,n,g.notDeepNestedInclude,true).not.deep.nested.include(t);};g.ownInclude=function(e,t,n){new y(e,n,g.ownInclude,true).own.include(t);};g.notOwnInclude=function(e,t,n){new y(e,n,g.notOwnInclude,true).not.own.include(t);};g.deepOwnInclude=function(e,t,n){new y(e,n,g.deepOwnInclude,true).deep.own.include(t);};g.notDeepOwnInclude=function(e,t,n){new y(e,n,g.notDeepOwnInclude,true).not.deep.own.include(t);};g.match=function(e,t,n){new y(e,n,g.match,true).to.match(t);};g.notMatch=function(e,t,n){new y(e,n,g.notMatch,true).to.not.match(t);};g.property=function(e,t,n){new y(e,n,g.property,true).to.have.property(t);};g.notProperty=function(e,t,n){new y(e,n,g.notProperty,true).to.not.have.property(t);};g.propertyVal=function(e,t,n,r){new y(e,r,g.propertyVal,true).to.have.property(t,n);};g.notPropertyVal=function(e,t,n,r){new y(e,r,g.notPropertyVal,true).to.not.have.property(t,n);};g.deepPropertyVal=function(e,t,n,r){new y(e,r,g.deepPropertyVal,true).to.have.deep.property(t,n);};g.notDeepPropertyVal=function(e,t,n,r){new y(e,r,g.notDeepPropertyVal,true).to.not.have.deep.property(t,n);};g.ownProperty=function(e,t,n){new y(e,n,g.ownProperty,true).to.have.own.property(t);};g.notOwnProperty=function(e,t,n){new y(e,n,g.notOwnProperty,true).to.not.have.own.property(t);};g.ownPropertyVal=function(e,t,n,r){new y(e,r,g.ownPropertyVal,true).to.have.own.property(t,n);};g.notOwnPropertyVal=function(e,t,n,r){new y(e,r,g.notOwnPropertyVal,true).to.not.have.own.property(t,n);};g.deepOwnPropertyVal=function(e,t,n,r){new y(e,r,g.deepOwnPropertyVal,true).to.have.deep.own.property(t,n);};g.notDeepOwnPropertyVal=function(e,t,n,r){new y(e,r,g.notDeepOwnPropertyVal,true).to.not.have.deep.own.property(t,n);};g.nestedProperty=function(e,t,n){new y(e,n,g.nestedProperty,true).to.have.nested.property(t);};g.notNestedProperty=function(e,t,n){new y(e,n,g.notNestedProperty,true).to.not.have.nested.property(t);};g.nestedPropertyVal=function(e,t,n,r){new y(e,r,g.nestedPropertyVal,true).to.have.nested.property(t,n);};g.notNestedPropertyVal=function(e,t,n,r){new y(e,r,g.notNestedPropertyVal,true).to.not.have.nested.property(t,n);};g.deepNestedPropertyVal=function(e,t,n,r){new y(e,r,g.deepNestedPropertyVal,true).to.have.deep.nested.property(t,n);};g.notDeepNestedPropertyVal=function(e,t,n,r){new y(e,r,g.notDeepNestedPropertyVal,true).to.not.have.deep.nested.property(t,n);};g.lengthOf=function(e,t,n){new y(e,n,g.lengthOf,true).to.have.lengthOf(t);};g.hasAnyKeys=function(e,t,n){new y(e,n,g.hasAnyKeys,true).to.have.any.keys(t);};g.hasAllKeys=function(e,t,n){new y(e,n,g.hasAllKeys,true).to.have.all.keys(t);};g.containsAllKeys=function(e,t,n){new y(e,n,g.containsAllKeys,true).to.contain.all.keys(t);};g.doesNotHaveAnyKeys=function(e,t,n){new y(e,n,g.doesNotHaveAnyKeys,true).to.not.have.any.keys(t);};g.doesNotHaveAllKeys=function(e,t,n){new y(e,n,g.doesNotHaveAllKeys,true).to.not.have.all.keys(t);};g.hasAnyDeepKeys=function(e,t,n){new y(e,n,g.hasAnyDeepKeys,true).to.have.any.deep.keys(t);};g.hasAllDeepKeys=function(e,t,n){new y(e,n,g.hasAllDeepKeys,true).to.have.all.deep.keys(t);};g.containsAllDeepKeys=function(e,t,n){new y(e,n,g.containsAllDeepKeys,true).to.contain.all.deep.keys(t);};g.doesNotHaveAnyDeepKeys=function(e,t,n){new y(e,n,g.doesNotHaveAnyDeepKeys,true).to.not.have.any.deep.keys(t);};g.doesNotHaveAllDeepKeys=function(e,t,n){new y(e,n,g.doesNotHaveAllDeepKeys,true).to.not.have.all.deep.keys(t);};g.throws=function(e,t,n,r){(typeof t=="string"||t instanceof RegExp)&&(n=t,t=null);var o=new y(e,r,g.throws,true).to.throw(t,n);return K(o,"object")};g.doesNotThrow=function(e,t,n,r){(typeof t=="string"||t instanceof RegExp)&&(n=t,t=null),new y(e,r,g.doesNotThrow,true).to.not.throw(t,n);};g.operator=function(e,t,n,r){var o;switch(t){case "==":o=e==n;break;case "===":o=e===n;break;case ">":o=e>n;break;case ">=":o=e>=n;break;case "<":o=e<n;break;case "<=":o=e<=n;break;case "!=":o=e!=n;break;case "!==":o=e!==n;break;default:throw r=r&&r+": ",new te(r+'Invalid operator "'+t+'"',void 0,g.operator)}var i=new y(o,r,g.operator,true);i.assert(K(i,"object")===true,"expected "+Z(e)+" to be "+t+" "+Z(n),"expected "+Z(e)+" to not be "+t+" "+Z(n));};g.closeTo=function(e,t,n,r){new y(e,r,g.closeTo,true).to.be.closeTo(t,n);};g.approximately=function(e,t,n,r){new y(e,r,g.approximately,true).to.be.approximately(t,n);};g.sameMembers=function(e,t,n){new y(e,n,g.sameMembers,true).to.have.same.members(t);};g.notSameMembers=function(e,t,n){new y(e,n,g.notSameMembers,true).to.not.have.same.members(t);};g.sameDeepMembers=function(e,t,n){new y(e,n,g.sameDeepMembers,true).to.have.same.deep.members(t);};g.notSameDeepMembers=function(e,t,n){new y(e,n,g.notSameDeepMembers,true).to.not.have.same.deep.members(t);};g.sameOrderedMembers=function(e,t,n){new y(e,n,g.sameOrderedMembers,true).to.have.same.ordered.members(t);};g.notSameOrderedMembers=function(e,t,n){new y(e,n,g.notSameOrderedMembers,true).to.not.have.same.ordered.members(t);};g.sameDeepOrderedMembers=function(e,t,n){new y(e,n,g.sameDeepOrderedMembers,true).to.have.same.deep.ordered.members(t);};g.notSameDeepOrderedMembers=function(e,t,n){new y(e,n,g.notSameDeepOrderedMembers,true).to.not.have.same.deep.ordered.members(t);};g.includeMembers=function(e,t,n){new y(e,n,g.includeMembers,true).to.include.members(t);};g.notIncludeMembers=function(e,t,n){new y(e,n,g.notIncludeMembers,true).to.not.include.members(t);};g.includeDeepMembers=function(e,t,n){new y(e,n,g.includeDeepMembers,true).to.include.deep.members(t);};g.notIncludeDeepMembers=function(e,t,n){new y(e,n,g.notIncludeDeepMembers,true).to.not.include.deep.members(t);};g.includeOrderedMembers=function(e,t,n){new y(e,n,g.includeOrderedMembers,true).to.include.ordered.members(t);};g.notIncludeOrderedMembers=function(e,t,n){new y(e,n,g.notIncludeOrderedMembers,true).to.not.include.ordered.members(t);};g.includeDeepOrderedMembers=function(e,t,n){new y(e,n,g.includeDeepOrderedMembers,true).to.include.deep.ordered.members(t);};g.notIncludeDeepOrderedMembers=function(e,t,n){new y(e,n,g.notIncludeDeepOrderedMembers,true).to.not.include.deep.ordered.members(t);};g.oneOf=function(e,t,n){new y(e,n,g.oneOf,true).to.be.oneOf(t);};g.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${Z(e)} to be an iterable`:`expected ${Z(e)} to be an iterable`,new te(t,void 0,g.isIterable)};g.changes=function(e,t,n,r){arguments.length===3&&typeof t=="function"&&(r=n,n=null),new y(e,r,g.changes,true).to.change(t,n);};g.changesBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){var i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new y(e,o,g.changesBy,true).to.change(t,n).by(r);};g.doesNotChange=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new y(e,r,g.doesNotChange,true).to.not.change(t,n)};g.changesButNotBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){var i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new y(e,o,g.changesButNotBy,true).to.change(t,n).but.not.by(r);};g.increases=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new y(e,r,g.increases,true).to.increase(t,n)};g.increasesBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){var i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new y(e,o,g.increasesBy,true).to.increase(t,n).by(r);};g.doesNotIncrease=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new y(e,r,g.doesNotIncrease,true).to.not.increase(t,n)};g.increasesButNotBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){var i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new y(e,o,g.increasesButNotBy,true).to.increase(t,n).but.not.by(r);};g.decreases=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new y(e,r,g.decreases,true).to.decrease(t,n)};g.decreasesBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){var i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new y(e,o,g.decreasesBy,true).to.decrease(t,n).by(r);};g.doesNotDecrease=function(e,t,n,r){return arguments.length===3&&typeof t=="function"&&(r=n,n=null),new y(e,r,g.doesNotDecrease,true).to.not.decrease(t,n)};g.doesNotDecreaseBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){var i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);return new y(e,o,g.doesNotDecreaseBy,true).to.not.decrease(t,n).by(r)};g.decreasesButNotBy=function(e,t,n,r,o){if(arguments.length===4&&typeof t=="function"){var i=r;r=n,o=i;}else arguments.length===3&&(r=n,n=null);new y(e,o,g.decreasesButNotBy,true).to.decrease(t,n).but.not.by(r);};g.ifError=function(e){if(e)throw e};g.isExtensible=function(e,t){new y(e,t,g.isExtensible,true).to.be.extensible;};g.isNotExtensible=function(e,t){new y(e,t,g.isNotExtensible,true).to.not.be.extensible;};g.isSealed=function(e,t){new y(e,t,g.isSealed,true).to.be.sealed;};g.isNotSealed=function(e,t){new y(e,t,g.isNotSealed,true).to.not.be.sealed;};g.isFrozen=function(e,t){new y(e,t,g.isFrozen,true).to.be.frozen;};g.isNotFrozen=function(e,t){new y(e,t,g.isNotFrozen,true).to.not.be.frozen;};g.isEmpty=function(e,t){new y(e,t,g.isEmpty,true).to.be.empty;};g.isNotEmpty=function(e,t){new y(e,t,g.isNotEmpty,true).to.not.be.empty;};g.containsSubset=function(e,t,n){new y(e,n).to.containSubset(t);};g.doesNotContainSubset=function(e,t,n){new y(e,n).to.not.containSubset(t);};var rg=[["isOk","ok"],["isNotOk","notOk"],["throws","throw"],["throws","Throw"],["isExtensible","extensible"],["isNotExtensible","notExtensible"],["isSealed","sealed"],["isNotSealed","notSealed"],["isFrozen","frozen"],["isNotFrozen","notFrozen"],["isEmpty","empty"],["isNotEmpty","notEmpty"],["isCallable","isFunction"],["isNotCallable","isNotFunction"],["containsSubset","containSubset"]];for(let[e,t]of rg)g[t]=g[e];var tl=[];function nt(e){let t={use:nt,AssertionError:te,util:we,config:ke,expect:bt,assert:g,Assertion:y,...Wl};return ~tl.indexOf(e)||(e(t,we),tl.push(e)),t}T(nt,"use");var Ir=Symbol.for("matchers-object"),bn=Symbol.for("$$jest-matchers-object"),wn=Symbol.for("expect-global"),jr=Symbol.for("asymmetric-matchers-object"),nu={toSatisfy(e,t,n){let{printReceived:r,printExpected:o,matcherHint:i}=this.utils,s=t(e);return {pass:s,message:()=>s?`${i(".not.toSatisfy","received","")}
62
+
63
+ Expected value to not satisfy:
64
+ ${n||o(t)}
65
+ Received:
66
+ ${r(e)}`:`${i(".toSatisfy","received","")}
67
+
68
+ Expected value to satisfy:
69
+ ${n||o(t)}
70
+
71
+ Received:
72
+ ${r(e)}`}},toBeOneOf(e,t){let{equals:n,customTesters:r}=this,{printReceived:o,printExpected:i,matcherHint:s}=this.utils;if(!Array.isArray(t))throw new TypeError(`You must provide an array to ${s(".toBeOneOf")}, not '${typeof t}'.`);let a=t.length===0||t.some(c=>n(c,e,r));return {pass:a,message:()=>a?`${s(".not.toBeOneOf","received","")}
73
+
74
+ Expected value to not be one of:
75
+ ${i(t)}
76
+ Received:
77
+ ${o(e)}`:`${s(".toBeOneOf","received","")}
78
+
79
+ Expected value to be one of:
80
+ ${i(t)}
81
+
82
+ Received:
83
+ ${o(e)}`}}},Or=le.green,us=le.red,og=le.inverse,ig=le.bold,wt=le.dim;function sg(e,t="received",n="expected",r={}){let{comment:o="",isDirectExpectCall:i=false,isNot:s=false,promise:a="",secondArgument:c="",expectedColor:l=Or,receivedColor:u=us,secondArgumentColor:f=Or}=r,p="",h="expect";return !i&&t!==""&&(p+=wt(`${h}(`)+u(t),h=")"),a!==""&&(p+=wt(`${h}.`)+a,h=""),s&&(p+=`${wt(`${h}.`)}not`,h=""),e.includes(".")?h+=e:(p+=wt(`${h}.`)+e,h=""),n===""?h+="()":(p+=wt(`${h}(`)+l(n),c&&(p+=wt(", ")+f(c)),h=")"),o!==""&&(h+=` // ${o}`),h!==""&&(p+=wt(h)),p}var ag="\xB7";function ru(e){return e.replace(/\s+$/gm,t=>ag.repeat(t.length))}function cg(e){return us(ru(_e(e)))}function lg(e){return Or(ru(_e(e)))}function ou(){return {EXPECTED_COLOR:Or,RECEIVED_COLOR:us,INVERTED_COLOR:og,BOLD_WEIGHT:ig,DIM_COLOR:wt,diff:Pt,matcherHint:sg,printReceived:cg,printExpected:lg,printDiffOrStringify:ar,printWithType:ug}}function ug(e,t,n){let r=pt(t),o=r!=="null"&&r!=="undefined"?`${e} has type: ${r}
84
+ `:"",i=`${e} has value: ${n(t)}`;return o+i}function iu(e){if(!Array.isArray(e))throw new TypeError(`expect.customEqualityTesters: Must be set to an array of Testers. Was given "${pt(e)}"`);globalThis[bn].customEqualityTesters.push(...e);}function fs(){return globalThis[bn].customEqualityTesters}function Q(e,t,n,r){return n=n||[],gn(e,t,[],[],n,r?su:dg)}function Kl(e){return !!e&&typeof e=="object"&&"asymmetricMatch"in e&&Qe("Function",e.asymmetricMatch)}function fg(e,t){let n=Kl(e),r=Kl(t);if(!(n&&r)){if(n)return e.asymmetricMatch(t);if(r)return t.asymmetricMatch(e)}}function gn(e,t,n,r,o,i){let s=true,a=fg(e,t);if(a!==void 0)return a;let c={equals:Q};for(let m=0;m<o.length;m++){let d=o[m].call(c,e,t,o);if(d!==void 0)return d}if(typeof URL=="function"&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return true;if(e===null||t===null)return e===t;let l=Object.prototype.toString.call(e);if(l!==Object.prototype.toString.call(t))return false;switch(l){case "[object Boolean]":case "[object String]":case "[object Number]":return typeof e!=typeof t?false:typeof e!="object"&&typeof t!="object"?Object.is(e,t):Object.is(e.valueOf(),t.valueOf());case "[object Date]":{let m=+e,d=+t;return m===d||Number.isNaN(m)&&Number.isNaN(d)}case "[object RegExp]":return e.source===t.source&&e.flags===t.flags;case "[object Temporal.Instant]":case "[object Temporal.ZonedDateTime]":case "[object Temporal.PlainDateTime]":case "[object Temporal.PlainDate]":case "[object Temporal.PlainTime]":case "[object Temporal.PlainYearMonth]":case "[object Temporal.PlainMonthDay]":return e.equals(t);case "[object Temporal.Duration]":return e.toString()===t.toString()}if(typeof e!="object"||typeof t!="object")return false;if(Xl(e)&&Xl(t))return e.isEqualNode(t);let u=n.length;for(;u--;){if(n[u]===e)return r[u]===t;if(r[u]===t)return false}if(n.push(e),r.push(t),l==="[object Array]"&&e.length!==t.length)return false;if(e instanceof Error&&t instanceof Error)try{return hg(e,t,n,r,o,i)}finally{n.pop(),r.pop();}let f=Hl(e,i),p,h=f.length;if(Hl(t,i).length!==h)return false;for(;h--;)if(p=f[h],s=i(t,p)&&gn(e[p],t[p],n,r,o,i),!s)return false;return n.pop(),r.pop(),s}function hg(e,t,n,r,o,i){let s=Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&e.name===t.name&&e.message===t.message;return typeof t.cause<"u"&&s&&(s=gn(e.cause,t.cause,n,r,o,i)),e instanceof AggregateError&&t instanceof AggregateError&&s&&(s=gn(e.errors,t.errors,n,r,o,i)),s&&(s=gn({...e},{...t},n,r,o,i)),s}function Hl(e,t){let n=[];for(let r in e)t(e,r)&&n.push(r);return n.concat(Object.getOwnPropertySymbols(e).filter(r=>Object.getOwnPropertyDescriptor(e,r).enumerable))}function dg(e,t){return su(e,t)&&e[t]!==void 0}function su(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Qe(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function Xl(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&"nodeName"in e&&typeof e.nodeName=="string"&&"isEqualNode"in e&&typeof e.isEqualNode=="function"}var au="@@__IMMUTABLE_KEYED__@@",cu="@@__IMMUTABLE_SET__@@",pg="@@__IMMUTABLE_LIST__@@",Fr="@@__IMMUTABLE_ORDERED__@@",mg="@@__IMMUTABLE_RECORD__@@";function gg(e){return !!(e&&e[au]&&!e[Fr])}function yg(e){return !!(e&&e[cu]&&!e[Fr])}function Dr(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function bg(e){return !!(e&&Dr(e)&&e[pg])}function wg(e){return !!(e&&Dr(e)&&e[au]&&e[Fr])}function vg(e){return !!(e&&Dr(e)&&e[cu]&&e[Fr])}function Eg(e){return !!(e&&Dr(e)&&e[mg])}var lu=Symbol.iterator;function Gl(e){return !!(e!=null&&e[lu])}function je(e,t,n=[],r=[],o=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!Gl(e)||!Gl(t))return;if(e.constructor!==t.constructor)return false;let i=r.length;for(;i--;)if(r[i]===e)return o[i]===t;r.push(e),o.push(t);let s=[...n.filter(l=>l!==je),a];function a(l,u){return je(l,u,[...n],[...r],[...o])}if(e.size!==void 0){if(e.size!==t.size)return false;if(Qe("Set",e)||yg(e)){let l=true;for(let u of e)if(!t.has(u)){let f=false;for(let p of t)Q(u,p,s)===true&&(f=true);if(f===false){l=false;break}}return r.pop(),o.pop(),l}else if(Qe("Map",e)||gg(e)){let l=true;for(let u of e)if(!t.has(u[0])||!Q(u[1],t.get(u[0]),s)){let f=false;for(let p of t){let h=Q(u[0],p[0],s),m=false;h===true&&(m=Q(u[1],p[1],s)),m===true&&(f=true);}if(f===false){l=false;break}}return r.pop(),o.pop(),l}}let c=t[lu]();for(let l of e){let u=c.next();if(u.done||!Q(l,u.value,s))return false}if(!c.next().done)return false;if(!bg(e)&&!wg(e)&&!vg(e)&&!Eg(e)){let l=Object.entries(e),u=Object.entries(t);if(!Q(l,u,s))return false}return r.pop(),o.pop(),true}function hs(e,t){return !e||typeof e!="object"||e===Object.prototype?false:Object.prototype.hasOwnProperty.call(e,t)||hs(Object.getPrototypeOf(e),t)}function Sg(e){return at(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}function Mt(e,t,n=[]){let r=n.filter(i=>i!==Mt),o=(i=new WeakMap)=>(s,a)=>{if(Sg(a))return Object.keys(a).every(c=>{if(a[c]!=null&&typeof a[c]=="object"){if(i.has(a[c]))return Q(s[c],a[c],r);i.set(a[c],true);}let l=s!=null&&hs(s,c)&&Q(s[c],a[c],[...r,o(i)]);return i.delete(a[c]),l})};return o()(e,t)}function Yl(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return false}function Zl(e,t){let n=e,r=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{n=new DataView(e),r=new DataView(t);}catch{return}}if(n.byteLength!==r.byteLength)return false;for(let o=0;o<n.byteLength;o++)if(n.getUint8(o)!==r.getUint8(o))return false;return true}function as(e,t,n=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let r=Object.keys(e),o=Object.keys(t),i=n.filter(s=>s!==as);return Q(e,t,i,true)&&Q(r,o)}function xg(e,t="#{this}",n="#{exp}"){let r=`expected ${t} to be ${n} // Object.is equality`;return ["toStrictEqual","toEqual"].includes(e)?`${r}
85
+
86
+ If it should pass with deep equality, replace "toBe" with "${e}"
87
+
88
+ Expected: ${t}
89
+ Received: serializes to the same string
90
+ `:r}function Tg(e,t){return `${t} ${e}${t===1?"":"s"}`}function is(e){return [...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>{var n;return (n=Object.getOwnPropertyDescriptor(e,t))===null||n===void 0?void 0:n.enumerable})]}function _g(e,t,n){let r=0,o=(i=new WeakMap)=>(s,a)=>{if(Array.isArray(s)){if(Array.isArray(a)&&a.length===s.length)return a.map((c,l)=>o(i)(s[l],c))}else {if(s instanceof Date)return s;if(at(s)&&at(a)){if(Q(s,a,[...n,je,Mt]))return a;let c={};i.set(s,c),typeof s.constructor=="function"&&typeof s.constructor.name=="string"&&Object.defineProperty(c,"constructor",{enumerable:false,value:s.constructor});for(let l of is(s))hs(a,l)?c[l]=i.has(s[l])?i.get(s[l]):o(i)(s[l],a[l]):i.has(s[l])||(r+=1,at(s[l])&&(r+=is(s[l]).length),o(i)(s[l],a[l]));if(is(c).length>0)return c}}return s};return {subset:o()(e,t),stripped:r}}if(!Object.prototype.hasOwnProperty.call(globalThis,Ir)){let e=new WeakMap,t=Object.create(null),n=[],r=Object.create(null);Object.defineProperty(globalThis,Ir,{get:()=>e}),Object.defineProperty(globalThis,bn,{configurable:true,get:()=>({state:e.get(globalThis[wn]),matchers:t,customEqualityTesters:n})}),Object.defineProperty(globalThis,jr,{get:()=>r});}function Ht(e){return globalThis[Ir].get(e)}function Lr(e,t){let n=globalThis[Ir],r=n.get(t)||{},o=Object.defineProperties(r,{...Object.getOwnPropertyDescriptors(r),...Object.getOwnPropertyDescriptors(e)});n.set(t,o);}var et=class{$$typeof=Symbol.for("jest.asymmetricMatcher");constructor(t,n=false){this.sample=t,this.inverse=n;}getMatcherContext(t){return {...Ht(t||globalThis[wn]),equals:Q,isNot:this.inverse,customTesters:fs(),utils:{...ou(),diff:Pt,stringify:_e,iterableEquality:je,subsetEquality:Mt}}}};et.prototype[Symbol.for("chai/inspect")]=function(e){let t=_e(this,e.depth,{min:true});return t.length<=e.truncate?t:`${this.toString()}{\u2026}`};var Pr=class extends et{constructor(t,n=false){if(!Qe("String",t))throw new Error("Expected is not a string");super(t,n);}asymmetricMatch(t){let n=Qe("String",t)&&t.includes(this.sample);return this.inverse?!n:n}toString(){return `String${this.inverse?"Not":""}Containing`}getExpectedType(){return "string"}},cs=class extends et{asymmetricMatch(t){return t!=null}toString(){return "Anything"}toAsymmetricMatcher(){return "Anything"}},$r=class extends et{constructor(t,n=false){super(t,n);}getPrototype(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.constructor.prototype===t?null:t.constructor.prototype}hasProperty(t,n){return t?Object.prototype.hasOwnProperty.call(t,n)?true:this.hasProperty(this.getPrototype(t),n):false}asymmetricMatch(t){if(typeof this.sample!="object")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let n=true,r=this.getMatcherContext();for(let o in this.sample)if(!this.hasProperty(t,o)||!Q(this.sample[o],t[o],r.customTesters)){n=false;break}return this.inverse?!n:n}toString(){return `Object${this.inverse?"Not":""}Containing`}getExpectedType(){return "object"}},Nr=class extends et{constructor(t,n=false){super(t,n);}asymmetricMatch(t){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let n=this.getMatcherContext(),r=this.sample.length===0||Array.isArray(t)&&this.sample.every(o=>t.some(i=>Q(o,i,n.customTesters)));return this.inverse?!r:r}toString(){return `Array${this.inverse?"Not":""}Containing`}getExpectedType(){return "array"}},ls=class extends et{constructor(t){if(typeof t>"u")throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(t);}fnNameFor(t){if(t.name)return t.name;let r=Function.prototype.toString.call(t).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return r?r[1]:"<anonymous>"}asymmetricMatch(t){return this.sample===String?typeof t=="string"||t instanceof String:this.sample===Number?typeof t=="number"||t instanceof Number:this.sample===Function?typeof t=="function"||typeof t=="function":this.sample===Boolean?typeof t=="boolean"||t instanceof Boolean:this.sample===BigInt?typeof t=="bigint"||t instanceof BigInt:this.sample===Symbol?typeof t=="symbol"||t instanceof Symbol:this.sample===Object?typeof t=="object":t instanceof this.sample}toString(){return "Any"}getExpectedType(){return this.sample===String?"string":this.sample===Number?"number":this.sample===Function?"function":this.sample===Object?"object":this.sample===Boolean?"boolean":this.fnNameFor(this.sample)}toAsymmetricMatcher(){return `Any<${this.fnNameFor(this.sample)}>`}},kr=class extends et{constructor(t,n=false){if(!Qe("String",t)&&!Qe("RegExp",t))throw new Error("Expected is not a String or a RegExp");super(new RegExp(t),n);}asymmetricMatch(t){let n=Qe("String",t)&&this.sample.test(t);return this.inverse?!n:n}toString(){return `String${this.inverse?"Not":""}Matching`}getExpectedType(){return "string"}},Mr=class extends et{precision;constructor(t,n=2,r=false){if(!Qe("Number",t))throw new Error("Expected is not a Number");if(!Qe("Number",n))throw new Error("Precision is not a Number");super(t),this.inverse=r,this.precision=n;}asymmetricMatch(t){if(!Qe("Number",t))return false;let n=false;return t===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?n=true:n=Math.abs(this.sample-t)<10**-this.precision/2,this.inverse?!n:n}toString(){return `Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return "number"}toAsymmetricMatcher(){return [this.toString(),this.sample,`(${Tg("digit",this.precision)})`].join(" ")}},uu=(e,t)=>{t.addMethod(e.expect,"anything",()=>new cs),t.addMethod(e.expect,"any",n=>new ls(n)),t.addMethod(e.expect,"stringContaining",n=>new Pr(n)),t.addMethod(e.expect,"objectContaining",n=>new $r(n)),t.addMethod(e.expect,"arrayContaining",n=>new Nr(n)),t.addMethod(e.expect,"stringMatching",n=>new kr(n)),t.addMethod(e.expect,"closeTo",(n,r)=>new Mr(n,r)),e.expect.not={stringContaining:n=>new Pr(n,true),objectContaining:n=>new $r(n,true),arrayContaining:n=>new Nr(n,true),stringMatching:n=>new kr(n,true),closeTo:(n,r)=>new Mr(n,r,true)};};function Ql(e,t,n){let r=e.flag(t,"negate")?"not.":"",o=`${e.flag(t,"_name")}(${n?"expected":""})`,i=e.flag(t,"promise");return `expect(actual)${i?`.${i}`:""}.${r}${o}`}function eu(e,t,n,r){let o=e;if(o&&t instanceof Promise){t=t.finally(()=>{if(!o.promises)return;let s=o.promises.indexOf(t);s!==-1&&o.promises.splice(s,1);}),o.promises||(o.promises=[]),o.promises.push(t);let i=false;return o.onFinished??(o.onFinished=[]),o.onFinished.push(()=>{if(!i){var s;let c=(((s=globalThis.__vitest_worker__)===null||s===void 0?void 0:s.onFilterStackTrace)||(l=>l||""))(r.stack);console.warn([`Promise returned by \`${n}\` was not awaited. `,"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ",`Please remember to await the assertion.
91
+ `,c].join(""));}}),{then(s,a){return i=true,t.then(s,a)},catch(s){return t.catch(s)},finally(s){return t.finally(s)},[Symbol.toStringTag]:"Promise"}}return t}function tu(e,t){var n;e.result||(e.result={state:"fail"}),e.result.state="fail",(n=e.result).errors||(n.errors=[]),e.result.errors.push(si(t));}function fu(e,t,n){return function(...r){if(t!=="withTest"&&e.flag(this,"_name",t),!e.flag(this,"soft"))return n.apply(this,r);let o=e.flag(this,"vitest-test");if(!o)throw new Error("expect.soft() can only be used inside a test");try{let i=n.apply(this,r);return i&&typeof i=="object"&&typeof i.then=="function"?i.then(Ho,s=>{tu(o,s);}):i}catch(i){tu(o,i);}}}var hu=(e,t)=>{let{AssertionError:n}=e,r=fs();function o(l,u){let f=p=>{let h=fu(t,p,u);t.addMethod(e.Assertion.prototype,p,h),t.addMethod(globalThis[bn].matchers,p,h);};Array.isArray(l)?l.forEach(p=>f(p)):f(l);}["throw","throws","Throw"].forEach(l=>{t.overwriteMethod(e.Assertion.prototype,l,u=>function(...f){let p=t.flag(this,"promise"),h=t.flag(this,"object"),m=t.flag(this,"negate");if(p==="rejects")t.flag(this,"object",()=>{throw h});else if(p==="resolves"&&typeof h!="function"){if(m)return;{let d=t.flag(this,"message")||"expected promise to throw an error, but it didn't",b={showDiff:false};throw new n(d,b,t.flag(this,"ssfi"))}}u.apply(this,f);});}),o("withTest",function(l){return t.flag(this,"vitest-test",l),this}),o("toEqual",function(l){let u=t.flag(this,"object"),f=Q(u,l,[...r,je]);return this.assert(f,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",l,u)}),o("toStrictEqual",function(l){let u=t.flag(this,"object"),f=Q(u,l,[...r,je,Yl,as,Zl],true);return this.assert(f,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",l,u)}),o("toBe",function(l){let u=this._obj,f=Object.is(u,l),p="";return f||(Q(u,l,[...r,je,Yl,as,Zl],true)?p="toStrictEqual":Q(u,l,[...r,je])&&(p="toEqual")),this.assert(f,xg(p),"expected #{this} not to be #{exp} // Object.is equality",l,u)}),o("toMatchObject",function(l){let u=this._obj,f=Q(u,l,[...r,je,Mt]),p=t.flag(this,"negate"),{subset:h,stripped:m}=_g(u,l,r);if(f&&p||!f&&!p){let d=t.getMessage(this,[f,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",l,h,false]),b=m===0?d:`${d}
92
+ (${m} matching ${m===1?"property":"properties"} omitted from actual)`;throw new n(b,{showDiff:true,expected:l,actual:h})}}),o("toMatch",function(l){let u=this._obj;if(typeof u!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof u}`);return this.assert(typeof l=="string"?u.includes(l):u.match(l),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",l,u)}),o("toContain",function(l){let u=this._obj;if(typeof Node<"u"&&u instanceof Node){if(!(l instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof l}`);return this.assert(u.contains(l),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",l,u)}if(typeof DOMTokenList<"u"&&u instanceof DOMTokenList){Ne(l,"class name",["string"]);let p=t.flag(this,"negate")?u.value.replace(l,"").trim():`${u.value} ${l}`;return this.assert(u.contains(l),`expected "${u.value}" to contain "${l}"`,`expected "${u.value}" not to contain "${l}"`,p,u.value)}return typeof u=="string"&&typeof l=="string"?this.assert(u.includes(l),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",l,u):(u!=null&&typeof u!="string"&&t.flag(this,"object",Array.from(u)),this.contain(l))}),o("toContainEqual",function(l){let u=t.flag(this,"object"),f=Array.from(u).findIndex(p=>Q(p,l,r));this.assert(f!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",l);}),o("toBeTruthy",function(){let l=t.flag(this,"object");this.assert(!!l,"expected #{this} to be truthy","expected #{this} to not be truthy",true,l);}),o("toBeFalsy",function(){let l=t.flag(this,"object");this.assert(!l,"expected #{this} to be falsy","expected #{this} to not be falsy",false,l);}),o("toBeGreaterThan",function(l){let u=this._obj;return Ne(u,"actual",["number","bigint"]),Ne(l,"expected",["number","bigint"]),this.assert(u>l,`expected ${u} to be greater than ${l}`,`expected ${u} to be not greater than ${l}`,l,u,false)}),o("toBeGreaterThanOrEqual",function(l){let u=this._obj;return Ne(u,"actual",["number","bigint"]),Ne(l,"expected",["number","bigint"]),this.assert(u>=l,`expected ${u} to be greater than or equal to ${l}`,`expected ${u} to be not greater than or equal to ${l}`,l,u,false)}),o("toBeLessThan",function(l){let u=this._obj;return Ne(u,"actual",["number","bigint"]),Ne(l,"expected",["number","bigint"]),this.assert(u<l,`expected ${u} to be less than ${l}`,`expected ${u} to be not less than ${l}`,l,u,false)}),o("toBeLessThanOrEqual",function(l){let u=this._obj;return Ne(u,"actual",["number","bigint"]),Ne(l,"expected",["number","bigint"]),this.assert(u<=l,`expected ${u} to be less than or equal to ${l}`,`expected ${u} to be not less than or equal to ${l}`,l,u,false)}),o("toBeNaN",function(){let l=t.flag(this,"object");this.assert(Number.isNaN(l),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,l);}),o("toBeUndefined",function(){let l=t.flag(this,"object");this.assert(l===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,l);}),o("toBeNull",function(){let l=t.flag(this,"object");this.assert(l===null,"expected #{this} to be null","expected #{this} not to be null",null,l);}),o("toBeDefined",function(){let l=t.flag(this,"object");this.assert(typeof l<"u","expected #{this} to be defined","expected #{this} to be undefined",l);}),o("toBeTypeOf",function(l){let u=typeof this._obj,f=l===u;return this.assert(f,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",l,u)}),o("toBeInstanceOf",function(l){return this.instanceOf(l)}),o("toHaveLength",function(l){return this.have.length(l)}),o("toHaveProperty",function(...l){Array.isArray(l[0])&&(l[0]=l[0].map(x=>String(x).replace(/([.[\]])/g,"\\$1")).join("."));let u=this._obj,[f,p]=l,h=()=>Object.prototype.hasOwnProperty.call(u,f)?{value:u[f],exists:true}:t.getPathInfo(u,f),{value:m,exists:d}=h(),b=d&&(l.length===1||Q(p,m,r)),v=l.length===1?"":` with value ${t.objDisplay(p)}`;return this.assert(b,`expected #{this} to have property "${f}"${v}`,`expected #{this} to not have property "${f}"${v}`,p,d?m:void 0)}),o("toBeCloseTo",function(l,u=2){let f=this._obj,p=false,h=0,m=0;return l===Number.POSITIVE_INFINITY&&f===Number.POSITIVE_INFINITY||l===Number.NEGATIVE_INFINITY&&f===Number.NEGATIVE_INFINITY?p=true:(h=10**-u/2,m=Math.abs(f-l),p=m<h),this.assert(p,`expected #{this} to be close to #{exp}, received difference is ${m}, but expected ${h}`,`expected #{this} to not be close to #{exp}, received difference is ${m}, but expected ${h}`,l,f,false)});function i(l){if(!$t(l._obj))throw new TypeError(`${t.inspect(l._obj)} is not a spy or a call to a spy!`)}function s(l){return i(l),l._obj}o(["toHaveBeenCalledTimes","toBeCalledTimes"],function(l){let u=s(this),f=u.getMockName(),p=u.mock.calls.length;return this.assert(p===l,`expected "${f}" to be called #{exp} times, but got ${p} times`,`expected "${f}" to not be called #{exp} times`,l,p,false)}),o("toHaveBeenCalledOnce",function(){let l=s(this),u=l.getMockName(),f=l.mock.calls.length;return this.assert(f===1,`expected "${u}" to be called once, but got ${f} times`,`expected "${u}" to not be called once`,1,f,false)}),o(["toHaveBeenCalled","toBeCalled"],function(){let l=s(this),u=l.getMockName(),f=l.mock.calls.length,p=f>0,h=t.flag(this,"negate"),m=t.getMessage(this,[p,`expected "${u}" to be called at least once`,`expected "${u}" to not be called at all, but actually been called ${f} times`,true,p]);if(p&&h&&(m=ss(l,m)),p&&h||!p&&!h)throw new n(m)});function a(l,u){return l.length===u.length&&l.every((f,p)=>Q(f,u[p],[...r,je]))}o(["toHaveBeenCalledWith","toBeCalledWith"],function(...l){let u=s(this),f=u.getMockName(),p=u.mock.calls.some(d=>a(d,l)),h=t.flag(this,"negate"),m=t.getMessage(this,[p,`expected "${f}" to be called with arguments: #{exp}`,`expected "${f}" to not be called with arguments: #{exp}`,l]);if(p&&h||!p&&!h)throw new n(ss(u,m,l))}),o("toHaveBeenCalledExactlyOnceWith",function(...l){let u=s(this),f=u.getMockName(),p=u.mock.calls.length,m=u.mock.calls.some(v=>a(v,l))&&p===1,d=t.flag(this,"negate"),b=t.getMessage(this,[m,`expected "${f}" to be called once with arguments: #{exp}`,`expected "${f}" to not be called once with arguments: #{exp}`,l]);if(m&&d||!m&&!d)throw new n(ss(u,b,l))}),o(["toHaveBeenNthCalledWith","nthCalledWith"],function(l,...u){let f=s(this),p=f.getMockName(),h=f.mock.calls[l-1],m=f.mock.calls.length,d=l<=m;this.assert(h&&a(h,u),`expected ${yn(l)} "${p}" call to have been called with #{exp}${d?"":`, but called only ${m} times`}`,`expected ${yn(l)} "${p}" call to not have been called with #{exp}`,u,h,d);}),o(["toHaveBeenLastCalledWith","lastCalledWith"],function(...l){let u=s(this),f=u.getMockName(),p=u.mock.calls[u.mock.calls.length-1];this.assert(p&&a(p,l),`expected last "${f}" call to have been called with #{exp}`,`expected last "${f}" call to not have been called with #{exp}`,l,p);});function c(l,u,f){let p=l.mock.invocationCallOrder,h=u.mock.invocationCallOrder;return p.length===0?!f:h.length===0?false:p[0]<h[0]}o(["toHaveBeenCalledBefore"],function(l,u=true){let f=s(this);if(!$t(l))throw new TypeError(`${t.inspect(l)} is not a spy or a call to a spy`);this.assert(c(f,l,u),`expected "${f.getMockName()}" to have been called before "${l.getMockName()}"`,`expected "${f.getMockName()}" to not have been called before "${l.getMockName()}"`,l,f);}),o(["toHaveBeenCalledAfter"],function(l,u=true){let f=s(this);if(!$t(l))throw new TypeError(`${t.inspect(l)} is not a spy or a call to a spy`);this.assert(c(l,f,u),`expected "${f.getMockName()}" to have been called after "${l.getMockName()}"`,`expected "${f.getMockName()}" to not have been called after "${l.getMockName()}"`,l,f);}),o(["toThrow","toThrowError"],function(l){if(typeof l=="string"||typeof l>"u"||l instanceof RegExp)return this.throws(l===""?/^$/:l);let u=this._obj,f=t.flag(this,"promise"),p=t.flag(this,"negate"),h=null;if(f==="rejects")h=u;else if(f==="resolves"&&typeof u!="function"){if(p)return;{let m=t.flag(this,"message")||"expected promise to throw an error, but it didn't",d={showDiff:false};throw new n(m,d,t.flag(this,"ssfi"))}}else {let m=false;try{u();}catch(d){m=true,h=d;}if(!m&&!p){let d=t.flag(this,"message")||"expected function to throw an error, but it didn't",b={showDiff:false};throw new n(d,b,t.flag(this,"ssfi"))}}if(typeof l=="function"){let m=l.name||l.prototype.constructor.name;return this.assert(h&&h instanceof l,`expected error to be instance of ${m}`,`expected error not to be instance of ${m}`,l,h)}if(l instanceof Error){let m=Q(h,l,[...r,je]);return this.assert(m,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",l,h)}if(typeof l=="object"&&"asymmetricMatch"in l&&typeof l.asymmetricMatch=="function"){let m=l;return this.assert(h&&m.asymmetricMatch(h),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",m,h)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof l}"`)}),[{name:"toHaveResolved",condition:l=>l.mock.settledResults.length>0&&l.mock.settledResults.some(({type:u})=>u==="fulfilled"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:l=>l.mock.calls.length>0&&l.mock.results.some(({type:u})=>u!=="throw"),action:"called"}].forEach(({name:l,condition:u,action:f})=>{o(l,function(){let p=s(this),h=p.getMockName(),m=u(p);this.assert(m,`expected "${h}" to be successfully ${f} at least once`,`expected "${h}" to not be successfully ${f}`,m,!m,false);});}),[{name:"toHaveResolvedTimes",condition:(l,u)=>l.mock.settledResults.reduce((f,{type:p})=>p==="fulfilled"?++f:f,0)===u,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(l,u)=>l.mock.results.reduce((f,{type:p})=>p==="throw"?f:++f,0)===u,action:"called"}].forEach(({name:l,condition:u,action:f})=>{o(l,function(p){let h=s(this),m=h.getMockName(),d=u(h,p);this.assert(d,`expected "${m}" to be successfully ${f} ${p} times`,`expected "${m}" to not be successfully ${f} ${p} times`,`expected resolved times: ${p}`,`received resolved times: ${d}`,false);});}),[{name:"toHaveResolvedWith",condition:(l,u)=>l.mock.settledResults.some(({type:f,value:p})=>f==="fulfilled"&&Q(u,p)),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(l,u)=>l.mock.results.some(({type:f,value:p})=>f==="return"&&Q(u,p)),action:"return"}].forEach(({name:l,condition:u,action:f})=>{o(l,function(p){let h=s(this),m=u(h,p),d=t.flag(this,"negate");if(m&&d||!m&&!d){let b=h.getMockName(),v=t.getMessage(this,[m,`expected "${b}" to ${f} with: #{exp} at least once`,`expected "${b}" to not ${f} with: #{exp}`,p]),x=f==="return"?h.mock.results:h.mock.settledResults;throw new n(Cg(h,x,v,p))}});}),[{name:"toHaveLastResolvedWith",condition:(l,u)=>{let f=l.mock.settledResults[l.mock.settledResults.length-1];return f&&f.type==="fulfilled"&&Q(f.value,u)},action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:(l,u)=>{let f=l.mock.results[l.mock.results.length-1];return f&&f.type==="return"&&Q(f.value,u)},action:"return"}].forEach(({name:l,condition:u,action:f})=>{o(l,function(p){let h=s(this),m=f==="return"?h.mock.results:h.mock.settledResults,d=m[m.length-1],b=h.getMockName();this.assert(u(h,p),`expected last "${b}" call to ${f} #{exp}`,`expected last "${b}" call to not ${f} #{exp}`,p,d?.value);});}),[{name:"toHaveNthResolvedWith",condition:(l,u,f)=>{let p=l.mock.settledResults[u-1];return p&&p.type==="fulfilled"&&Q(p.value,f)},action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:(l,u,f)=>{let p=l.mock.results[u-1];return p&&p.type==="return"&&Q(p.value,f)},action:"return"}].forEach(({name:l,condition:u,action:f})=>{o(l,function(p,h){let m=s(this),d=m.getMockName(),v=(f==="return"?m.mock.results:m.mock.settledResults)[p-1],x=`${yn(p)} call`;this.assert(u(m,p,h),`expected ${x} "${d}" call to ${f} #{exp}`,`expected ${x} "${d}" call to not ${f} #{exp}`,h,v?.value);});}),o("withContext",function(l){for(let u in l)t.flag(this,u,l[u]);return this}),t.addProperty(e.Assertion.prototype,"resolves",function(){let u=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",u);let f=t.flag(this,"vitest-test"),p=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof p?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof p}'.`);let h=new Proxy(this,{get:(m,d,b)=>{let v=Reflect.get(m,d,b);return typeof v!="function"?v instanceof e.Assertion?h:v:(...x)=>{t.flag(this,"_name",d);let A=p.then(P=>(t.flag(this,"object",P),v.call(this,...x)),P=>{let O=new n(`promise rejected "${t.inspect(P)}" instead of resolving`,{showDiff:false});throw O.cause=P,O.stack=u.stack.replace(u.message,O.message),O});return eu(f,A,Ql(t,this,!!x.length),u)}}});return h}),t.addProperty(e.Assertion.prototype,"rejects",function(){let u=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",u);let f=t.flag(this,"vitest-test"),p=t.flag(this,"object"),h=typeof p=="function"?p():p;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof h?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof h}'.`);let m=new Proxy(this,{get:(d,b,v)=>{let x=Reflect.get(d,b,v);return typeof x!="function"?x instanceof e.Assertion?m:x:(...A)=>{t.flag(this,"_name",b);let P=h.then(O=>{let R=new n(`promise resolved "${t.inspect(O)}" instead of rejecting`,{showDiff:true,expected:new Error("rejected promise"),actual:O});throw R.stack=u.stack.replace(u.message,R.message),R},O=>(t.flag(this,"object",O),x.call(this,...A)));return eu(f,P,Ql(t,this,!!A.length),u)}}});return m});};function yn(e){let t=e%10,n=e%100;return t===1&&n!==11?`${e}st`:t===2&&n!==12?`${e}nd`:t===3&&n!==13?`${e}rd`:`${e}th`}function ss(e,t,n){return e.mock.calls.length&&(t+=le.gray(`
93
+
94
+ Received:
95
+
96
+ ${e.mock.calls.map((r,o)=>{let i=le.bold(` ${yn(o+1)} ${e.getMockName()} call:
97
+
98
+ `);return n?i+=Pt(n,r,{omitAnnotationLines:true}):i+=_e(r).split(`
99
+ `).map(s=>` ${s}`).join(`
100
+ `),i+=`
101
+ `,i}).join(`
102
+ `)}`)),t+=le.gray(`
103
+
104
+ Number of calls: ${le.bold(e.mock.calls.length)}
105
+ `),t}function Cg(e,t,n,r){return t.length&&(n+=le.gray(`
106
+
107
+ Received:
108
+
109
+ ${t.map((o,i)=>{let s=le.bold(` ${yn(i+1)} ${e.getMockName()} call return:
110
+
111
+ `);return r?s+=Pt(r,o.value,{omitAnnotationLines:true}):s+=_e(o).split(`
112
+ `).map(a=>` ${a}`).join(`
113
+ `),s+=`
114
+ `,s}).join(`
115
+ `)}`)),n+=le.gray(`
116
+
117
+ Number of calls: ${le.bold(e.mock.calls.length)}
118
+ `),n}function Ag(e,t){let n=e._obj,r=we.flag(e,"negate"),o=we.flag(e,"promise")||"",i={...ou(),diff:Pt,stringify:_e,iterableEquality:je,subsetEquality:Mt};return {state:{...Ht(t),customTesters:fs(),isNot:r,utils:i,promise:o,equals:Q,suppressedErrors:[],soft:we.flag(e,"soft"),poll:we.flag(e,"poll")},isNot:r,obj:n}}var Rr=class extends Error{constructor(t,n,r){super(t),this.actual=n,this.expected=r;}};function Ig(e,t,n){return (r,o)=>{Object.entries(n).forEach(([i,s])=>{function a(...f){let{state:p,isNot:h,obj:m}=Ag(this,t),d=s.call(p,m,...f);if(d&&typeof d=="object"&&typeof d.then=="function")return d.then(({pass:O,message:R,actual:$,expected:I})=>{if(O&&h||!O&&!h)throw new Rr(R(),$,I)});let{pass:b,message:v,actual:x,expected:A}=d;if(b&&h||!b&&!h)throw new Rr(v(),x,A)}let c=fu(o,i,a);o.addMethod(globalThis[bn].matchers,i,c),o.addMethod(e.Assertion.prototype,i,c);class l extends et{constructor(p=false,...h){super(h,p);}asymmetricMatch(p){let{pass:h}=s.call(this.getMatcherContext(t),p,...this.sample);return this.inverse?!h:h}toString(){return `${this.inverse?"not.":""}${i}`}getExpectedType(){return "any"}toAsymmetricMatcher(){return `${this.toString()}<${this.sample.map(p=>_e(p)).join(", ")}>`}}let u=(...f)=>new l(false,...f);Object.defineProperty(t,i,{configurable:true,enumerable:true,value:u,writable:true}),Object.defineProperty(t.not,i,{configurable:true,enumerable:true,value:(...f)=>new l(true,...f),writable:true}),Object.defineProperty(globalThis[jr],i,{configurable:true,enumerable:true,value:u,writable:true});});}}var du=(e,t)=>{t.addMethod(e.expect,"extend",(n,r)=>{nt(Ig(e,n,r));});};var pu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Og=new Uint8Array(64),Pg=new Uint8Array(128);for(let e=0;e<pu.length;e++){let t=pu.charCodeAt(e);Og[e]=t,Pg[t]=e;}var mu;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute";})(mu||(mu={}));var $g=/^[A-Za-z]:\//;function Ng(e=""){return e&&e.replace(/\\/g,"/").replace($g,t=>t.toUpperCase())}var kg=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function Mg(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}var Rg=function(...e){e=e.map(r=>Ng(r));let t="",n=false;for(let r=e.length-1;r>=-1&&!n;r--){let o=r>=0?e[r]:Mg();!o||o.length===0||(t=`${o}/${t}`,n=gu(o));}return t=jg(t,!n),n&&!gu(t)?`/${t}`:t.length>0?t:"."};function jg(e,t){let n="",r=0,o=-1,i=0,s=null;for(let a=0;a<=e.length;++a){if(a<e.length)s=e[a];else {if(s==="/")break;s="/";}if(s==="/"){if(!(o===a-1||i===1))if(i===2){if(n.length<2||r!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){let c=n.lastIndexOf("/");c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),o=a,i=0;continue}else if(n.length>0){n="",r=0,o=a,i=0;continue}}t&&(n+=n.length>0?"/..":"..",r=2);}else n.length>0?n+=`/${e.slice(o+1,a)}`:n=e.slice(o+1,a),r=a-o-1;o=a,i=0;}else s==="."&&i!==-1?++i:i=-1;}return n}var gu=function(e){return kg.test(e)},yu=/^\s*at .*(?:\S:\d+|\(native\))/m,Fg=/^(?:eval@)?(?:\[native code\])?$/;function bu(e){if(!e.includes(":"))return [e];let n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!n)return [e];let r=n[1];if(r.startsWith("async ")&&(r=r.slice(6)),r.startsWith("http:")||r.startsWith("https:")){let o=new URL(r);o.searchParams.delete("import"),o.searchParams.delete("browserv"),r=o.pathname+o.hash+o.search;}if(r.startsWith("/@fs/")){let o=/^\/@fs\/[a-zA-Z]:\//.test(r);r=r.slice(o?5:4);}return [r,n[2]||void 0,n[3]||void 0]}function Dg(e){let t=e.trim();if(Fg.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;let n=/((.*".+"[^@]*)?[^@]*)(@)/,r=t.match(n),o=r&&r[1]?r[1]:void 0,[i,s,a]=bu(t.replace(n,""));return !i||!s||!a?null:{file:i,method:o||"",line:Number.parseInt(s),column:Number.parseInt(a)}}function vn(e){let t=e.trim();return yu.test(t)?Lg(t):Dg(t)}function Lg(e){let t=e.trim();if(!yu.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],""):n;let[o,i,s]=bu(r?r[1]:n),a=r&&n||"",c=o&&["eval","<anonymous>"].includes(o)?void 0:o;return !c||!i||!s?null:(a.startsWith("async ")&&(a=a.slice(6)),c.startsWith("file://")&&(c=c.slice(7)),c=c.startsWith("node:")||c.startsWith("internal:")?c:Rg(c),a&&(a=a.replace(/__vite_ssr_import_\d+__\./g,"")),{method:a,file:c,line:Number.parseInt(i),column:Number.parseInt(s)})}var Tu=ma(xu());function Bg(e,t){let n=" ",r=" ",o="",s=[];for(let a of (0, Tu.default)(e,{jsx:false})){if(s.push(a),a.type==="SingleLineComment"){o+=r.repeat(a.value.length);continue}if(a.type==="MultiLineComment"){o+=a.value.replace(/[^\n]/g,r);continue}if(a.type==="StringLiteral"){if(!a.closed){o+=a.value;continue}let c=a.value.slice(1,-1);{o+=a.value[0]+n.repeat(c.length)+a.value[a.value.length-1];continue}}if(a.type==="NoSubstitutionTemplate"){let c=a.value.slice(1,-1);{o+=`\`${c.replace(/[^\n]/g,n)}\``;continue}}if(a.type==="RegularExpressionLiteral"){let c=a.value;{o+=c.replace(/\/(.*)\/(\w?)$/g,(l,u,f)=>`/${n.repeat(u.length)}/${f}`);continue}}if(a.type==="TemplateHead"){let c=a.value.slice(1,-2);{o+=`\`${c.replace(/[^\n]/g,n)}\${`;continue}}if(a.type==="TemplateTail"){let c=a.value.slice(0,-2);{o+=`}${c.replace(/[^\n]/g,n)}\``;continue}}if(a.type==="TemplateMiddle"){let c=a.value.slice(1,-2);{o+=`}${c.replace(/[^\n]/g,n)}\${`;continue}}o+=a.value;}return {result:o,tokens:s}}function _u(e,t){return Ug(e).result}function Ug(e,t){return Bg(e)}var zg=/^[A-Za-z]:\//;function Wg(e=""){return e&&e.replace(/\\/g,"/").replace(zg,t=>t.toUpperCase())}var Jg=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function Vg(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}var ms=function(...e){e=e.map(r=>Wg(r));let t="",n=false;for(let r=e.length-1;r>=-1&&!n;r--){let o=r>=0?e[r]:Vg();!o||o.length===0||(t=`${o}/${t}`,n=ps(o));}return t=Cu(t,!n),n&&!ps(t)?`/${t}`:t.length>0?t:"."};function Cu(e,t){let n="",r=0,o=-1,i=0,s=null;for(let a=0;a<=e.length;++a){if(a<e.length)s=e[a];else {if(s==="/")break;s="/";}if(s==="/"){if(!(o===a-1||i===1))if(i===2){if(n.length<2||r!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){let c=n.lastIndexOf("/");c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),o=a,i=0;continue}else if(n.length>0){n="",r=0,o=a,i=0;continue}}t&&(n+=n.length>0?"/..":"..",r=2);}else n.length>0?n+=`/${e.slice(o+1,a)}`:n=e.slice(o+1,a),r=a-o-1;o=a,i=0;}else s==="."&&i!==-1?++i:i=-1;}return n}var ps=function(e){return Jg.test(e)};var bs=class extends Error{code="VITEST_PENDING";taskId;constructor(t,n,r){super(t),this.message=t,this.note=r,this.taskId=n.id;}};var Kg=new WeakMap,ku=new WeakMap,Mu=new WeakMap;function Ru(e,t){Kg.set(e,t);}function Hg(e,t){ku.set(e,t);}function Xg(e){return ku.get(e)}function ju(e,t){Mu.set(e,t);}function Fu(e){return Mu.get(e)}function Gg(e,t){let n=t.reduce((i,s)=>(i[s.prop]=s,i),{}),r={};e.forEach(i=>{let s=n[i.prop]||{...i};r[s.prop]=s;});for(let i in r){var o;let s=r[i];s.deps=(o=s.deps)===null||o===void 0?void 0:o.map(a=>r[a.prop]);}return Object.values(r)}function Du(e,t,n){let r=["auto","injected","scope"],o=Object.entries(e).map(([i,s])=>{let a={value:s};if(Array.isArray(s)&&s.length>=2&&at(s[1])&&Object.keys(s[1]).some(l=>r.includes(l))){var c;Object.assign(a,s[1]);let l=s[0];a.value=a.injected?((c=n.injectValue)===null||c===void 0?void 0:c.call(n,i))??l:l;}return a.scope=a.scope||"test",a.scope==="worker"&&!n.getWorkerContext&&(a.scope="file"),a.prop=i,a.isFn=typeof a.value=="function",a});return Array.isArray(t.fixtures)?t.fixtures=t.fixtures.concat(o):t.fixtures=o,o.forEach(i=>{if(i.isFn){let a=qu(i.value);if(a.length&&(i.deps=t.fixtures.filter(({prop:c})=>c!==i.prop&&a.includes(c))),i.scope!=="test"){var s;(s=i.deps)===null||s===void 0||s.forEach(c=>{if(c.isFn&&!(i.scope==="worker"&&c.scope==="worker")&&!(i.scope==="file"&&c.scope!=="test"))throw new SyntaxError(`cannot use the ${c.scope} fixture "${c.prop}" inside the ${i.scope} fixture "${i.prop}"`)});}}}),t}var gs=new Map,Xt=new Map;function Yg(e,t,n){return r=>{let o=r||n;if(!o)return t({});let i=Xg(o);if(!i?.length)return t(o);let s=qu(t),a=i.some(({auto:h})=>h);if(!s.length&&!a)return t(o);gs.get(o)||gs.set(o,new Map);let c=gs.get(o);Xt.has(o)||Xt.set(o,[]);let l=Xt.get(o),u=i.filter(({prop:h,auto:m})=>m||s.includes(h)),f=Lu(u);if(!f.length)return t(o);async function p(){for(let h of f){if(c.has(h))continue;let m=await Zg(e,h,o,l);o[h.prop]=m,c.set(h,m),h.scope==="test"&&l.unshift(()=>{c.delete(h);});}}return p().then(()=>t(o))}}var Zr=new WeakMap;function Zg(e,t,n,r){var o;let i=yy(n.task.file),s=(o=e.getWorkerContext)===null||o===void 0?void 0:o.call(e);if(!t.isFn){var a;if(i[a=t.prop]??(i[a]=t.value),s){var c;s[c=t.prop]??(s[c]=t.value);}return t.value}if(t.scope==="test")return Au(t.value,n,r);if(Zr.has(t))return Zr.get(t);let l;if(t.scope==="worker"){if(!s)throw new TypeError("[@vitest/runner] The worker context is not available in the current test runner. Please, provide the `getWorkerContext` method when initiating the runner.");l=s;}else l=i;if(t.prop in l)return l[t.prop];Xt.has(l)||Xt.set(l,[]);let u=Xt.get(l),f=Au(t.value,l,u).then(p=>(l[t.prop]=p,Zr.delete(t),p));return Zr.set(t,f),f}async function Au(e,t,n){let r=nr(),o=false,i=e(t,async s=>{o=true,r.resolve(s);let a=nr();n.push(async()=>{a.resolve(),await i;}),await a;}).catch(s=>{if(!o){r.reject(s);return}throw s});return r}function Lu(e,t=new Set,n=[]){return e.forEach(r=>{if(!n.includes(r)){if(!r.isFn||!r.deps){n.push(r);return}if(t.has(r))throw new Error(`Circular fixture dependency detected: ${r.prop} <- ${[...t].reverse().map(o=>o.prop).join(" <- ")}`);t.add(r),Lu(r.deps,t,n),n.push(r),t.clear();}}),n}function qu(e){let t=_u(e.toString());/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(t)&&(t=t.split(/__async\((?:this|null),/)[1]);let n=t.match(/[^(]*\(([^)]*)/);if(!n)return [];let r=Iu(n[1]);if(!r.length)return [];let o=r[0];if("__VITEST_FIXTURE_INDEX__"in e&&(o=r[e.__VITEST_FIXTURE_INDEX__],!o))return [];if(!(o.startsWith("{")&&o.endsWith("}")))throw new Error(`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "${o}".`);let i=o.slice(1,-1).replace(/\s/g,""),s=Iu(i).map(c=>c.replace(/:.*|=.*/g,"")),a=s.at(-1);if(a&&a.startsWith("..."))throw new Error(`Rest parameters are not supported in fixtures, received "${a}".`);return s}function Iu(e){let t=[],n=[],r=0;for(let i=0;i<e.length;i++)if(e[i]==="{"||e[i]==="[")n.push(e[i]==="{"?"}":"]");else if(e[i]===n[n.length-1])n.pop();else if(!n.length&&e[i]===","){let s=e.substring(r,i).trim();s&&t.push(s),r=i+1;}let o=e.substring(r).trim();return o&&t.push(o),t}var Qg;function _n(){return Qg}function vs(e,t){function n(o){let i=function(...s){return t.apply(o,s)};Object.assign(i,t),i.withContext=()=>i.bind(o),i.setContext=(s,a)=>{o[s]=a;},i.mergeContext=s=>{Object.assign(o,s);};for(let s of e)Object.defineProperty(i,s,{get(){return n({...o,[s]:true})}});return i}let r=n({});return r.fn=t,r}var jt=iy();Es(function(e,t,n){eo().test.fn.call(this,vt(e),t,n);});var pe,Uu,ey;function zu(e,t){if(!e)throw new Error(`Vitest failed to find ${t}. This is a bug in Vitest. Please, open an issue with reproduction.`)}function ty(){return ey}function Wu(){return zu(pe,"the runner"),pe}function eo(){let e=Et.currentSuite||Uu;return zu(e,"the current suite"),e}function ny(){return {beforeAll:[],afterAll:[],beforeEach:[],afterEach:[]}}function Ft(e,t){let n={},r=()=>{};if(typeof t=="object"){if(typeof e=="object")throw new TypeError("Cannot use two objects as arguments. Please provide options and a function callback in that order.");console.warn("Using an object as a third argument is deprecated. Vitest 4 will throw an error if the third argument is not a timeout number. Please use the second argument for options. See more at https://vitest.dev/guide/migration"),n=t;}else typeof t=="number"?n={timeout:t}:typeof e=="object"&&(n=e);if(typeof e=="function"){if(typeof t=="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");r=e;}else typeof t=="function"&&(r=t);return {options:n,handler:r}}function ry(e,t=()=>{},n,r,o,i){let s=[],a;h();let c=function(b="",v={}){var x;let A=v?.timeout??pe.config.testTimeout,P={id:"",name:b,suite:(x=Et.currentSuite)===null||x===void 0?void 0:x.suite,each:v.each,fails:v.fails,context:void 0,type:"test",file:void 0,timeout:A,retry:v.retry??pe.config.retry,repeats:v.repeats,mode:v.only?"only":v.skip?"skip":v.todo?"todo":"run",meta:v.meta??Object.create(null),annotations:[]},O=v.handler;(v.concurrent||!v.sequential&&pe.config.sequence.concurrent)&&(P.concurrent=true),P.shuffle=o?.shuffle;let R=py(P,pe);Object.defineProperty(P,"context",{value:R,enumerable:false}),Hg(R,v.fixtures);let $=Error.stackTraceLimit;Error.stackTraceLimit=15;let I=new Error("STACK_TRACE_ERROR");if(Error.stackTraceLimit=$,O&&Ru(P,Tn(oy(Yg(pe,O,R),P),A,false,I,(k,V)=>xs([R],V))),pe.config.includeTaskLocation){let k=I.stack,V=Ou(k);V&&(P.location=V);}return s.push(P),P},l=Es(function(b,v,x){let{options:A,handler:P}=Ft(v,x);typeof o=="object"&&(A=Object.assign({},o,A)),A.concurrent=this.concurrent||!this.sequential&&A?.concurrent,A.sequential=this.sequential||!this.concurrent&&A?.sequential;let O=c(vt(b),{...this,...A,handler:P});O.type="test";}),u=i,f={type:"collector",name:e,mode:n,suite:a,options:o,test:l,tasks:s,collect:d,task:c,clear:m,on:p,fixtures(){return u},scoped(b){let v=Du(b,{fixtures:u},pe);v.fixtures&&(u=v.fixtures);}};function p(b,...v){Fu(a)[b].push(...v);}function h(b){var v;if(typeof o=="number"&&(o={timeout:o}),a={id:"",type:"suite",name:e,suite:(v=Et.currentSuite)===null||v===void 0?void 0:v.suite,mode:n,each:r,file:void 0,shuffle:o?.shuffle,tasks:[],meta:Object.create(null),concurrent:o?.concurrent},pe);ju(a,ny());}function m(){s.length=0,h();}async function d(b){if(!b)throw new TypeError("File is required to collect tasks.");t&&await hy(f,()=>t(l));let v=[];for(let x of s)v.push(x.type==="collector"?await x.collect(b):x);return a.file=b,a.tasks=v,v.forEach(x=>{x.file=b;}),a}return fy(f),f}function oy(e,t){return async(...n)=>{let r=await e(...n);if(t.promises){let i=(await Promise.allSettled(t.promises)).map(s=>s.status==="rejected"?s.reason:void 0).filter(Boolean);if(i.length)throw i}return r}}function iy(){function e(t,n,r){var o;let i=this.only?"only":this.skip?"skip":this.todo?"todo":"run",s=Et.currentSuite||Uu,{options:a,handler:c}=Ft(n,r),l=a.concurrent||this.concurrent||a.sequential===false,u=a.sequential||this.sequential||a.concurrent===false;a={...s?.options,...a,shuffle:this.shuffle??a.shuffle??(s==null||(o=s.options)===null||o===void 0?void 0:o.shuffle)??pe?.config.sequence.shuffle};let f=l||a.concurrent&&!u,p=u||a.sequential&&!l;return a.concurrent=f&&!p,a.sequential=p&&!f,ry(vt(t),c,i,this.each,a,s?.fixtures())}return e.each=function(t,...n){let r=this.withContext();return this.setContext("each",true),Array.isArray(t)&&n.length&&(t=to(t,n)),(o,i,s)=>{let a=vt(o),c=t.every(Array.isArray),{options:l,handler:u}=Ft(i,s),f=typeof i=="function"&&typeof s=="object";t.forEach((p,h)=>{let m=Array.isArray(p)?p:[p];f?c?r(rt(a,m,h),()=>u(...m),l):r(rt(a,m,h),()=>u(p),l):c?r(rt(a,m,h),l,()=>u(...m)):r(rt(a,m,h),l,()=>u(p));}),this.setContext("each",void 0);}},e.for=function(t,...n){return Array.isArray(t)&&n.length&&(t=to(t,n)),(r,o,i)=>{let s=vt(r),{options:a,handler:c}=Ft(o,i);t.forEach((l,u)=>{jt(rt(s,Zn(l),u),a,()=>c(l));});}},e.skipIf=t=>t?jt.skip:jt,e.runIf=t=>t?jt:jt.skip,vs(["concurrent","sequential","shuffle","skip","only","todo"],e)}function Ju(e,t){let n=e;n.each=function(o,...i){let s=this.withContext();return this.setContext("each",true),Array.isArray(o)&&i.length&&(o=to(o,i)),(a,c,l)=>{let u=vt(a),f=o.every(Array.isArray),{options:p,handler:h}=Ft(c,l),m=typeof c=="function"&&typeof l=="object";o.forEach((d,b)=>{let v=Array.isArray(d)?d:[d];m?f?s(rt(u,v,b),()=>h(...v),p):s(rt(u,v,b),()=>h(d),p):f?s(rt(u,v,b),p,()=>h(...v)):s(rt(u,v,b),p,()=>h(d));}),this.setContext("each",void 0);}},n.for=function(o,...i){let s=this.withContext();return Array.isArray(o)&&i.length&&(o=to(o,i)),(a,c,l)=>{let u=vt(a),{options:f,handler:p}=Ft(c,l);o.forEach((h,m)=>{let d=b=>p(h,b);d.__VITEST_FIXTURE_INDEX__=1,d.toString=()=>p.toString(),s(rt(u,Zn(h),m),f,d);});}},n.skipIf=function(o){return o?this.skip:this},n.runIf=function(o){return o?this:this.skip},n.scoped=function(o){eo().scoped(o);},n.extend=function(o){let i=Du(o,t||{},pe),s=e;return Es(function(a,c,l){let f=eo().fixtures(),p={...this};f&&(p.fixtures=Gg(p.fixtures||[],f));let{handler:h,options:m}=Ft(c,l),d=m.timeout??pe?.config.testTimeout;s.call(p,vt(a),h,d);},i)};let r=vs(["concurrent","sequential","skip","only","todo","fails"],n);return t&&r.mergeContext(t),r}function Es(e,t){return Ju(e,t)}function vt(e){return typeof e=="string"?e:typeof e=="function"?e.name||"<anonymous>":String(e)}function rt(e,t,n){(e.includes("%#")||e.includes("%$"))&&(e=e.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${n}`).replace(/%\$/g,`${n+1}`).replace(/__vitest_escaped_%__/g,"%%"));let r=e.split("%").length-1;e.includes("%f")&&(e.match(/%f/g)||[]).forEach((a,c)=>{if(Xo(t[c])||Object.is(t[c],-0)){let l=0;e=e.replace(/%f/g,u=>(l++,l===c+1?"-%f":u));}});let o=sn(e,...t.slice(0,r)),i=at(t[0]);return o=o.replace(/\$([$\w.]+)/g,(s,a)=>{let l=/^\d+$/.test(a);if(!i&&!l)return `$${a}`;let u=l?tr(t,a):void 0,f=i?tr(t[0],a,u):u;return Vo(f,{truncate:void 0})}),o}function to(e,t){let n=e.join("").trim().replace(/ /g,"").split(`
119
+ `).map(o=>o.split("|"))[0],r=[];for(let o=0;o<Math.floor(t.length/n.length);o++){let i={};for(let s=0;s<n.length;s++)i[n[s]]=t[o*n.length+s];r.push(i);}return r}function Ou(e){let t=ty(),n=e.split(`
120
+ `).slice(1);for(let r of n){let o=vn(r);if(o&&o.file===t)return {line:o.line,column:o.column}}}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;function no(e){let t=[e.name],n=e;for(;n?.suite;)n=n.suite,n?.name&&t.unshift(n.name);return n!==e.file&&t.unshift(e.file.name),t}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;ct();var ys=new Map,Pu=[],Qr=[];function Vu(e){if(ys.size){var t;let n=Array.from(ys).map(([o,i])=>[o,i[0],i[1]]),r=(t=e.onTaskUpdate)===null||t===void 0?void 0:t.call(e,n,Pu);r&&(Qr.push(r),r.then(()=>Qr.splice(Qr.indexOf(r),1),()=>{})),Pu.length=0,ys.clear();}}async function ly(e){Vu(e),await Promise.all(Qr);}var $u=Date.now,Et={currentSuite:null};function fy(e){var t;(t=Et.currentSuite)===null||t===void 0||t.tasks.push(e);}async function hy(e,t){let n=Et.currentSuite;Et.currentSuite=e,await t(),Et.currentSuite=n;}function Tn(e,t,n=false,r,o){if(t<=0||t===Number.POSITIVE_INFINITY)return e;let{setTimeout:i,clearTimeout:s}=ct();return function(...c){let l=$u(),u=Wu();return u._currentTaskStartTime=l,u._currentTaskTimeout=t,new Promise((f,p)=>{var h;let m=i(()=>{s(m),d();},t);(h=m.unref)===null||h===void 0||h.call(m);function d(){let x=my(n,t,r);o?.(c,x),p(x);}function b(x){if(u._currentTaskStartTime=void 0,u._currentTaskTimeout=void 0,s(m),$u()-l>=t){d();return}f(x);}function v(x){u._currentTaskStartTime=void 0,u._currentTaskTimeout=void 0,s(m),p(x);}try{let x=e(...c);typeof x=="object"&&x!=null&&typeof x.then=="function"?x.then(b,v):b(x);}catch(x){v(x);}})}}var ws=new WeakMap;function xs([e],t){e&&dy(e,t);}function dy(e,t){let n=ws.get(e);n?.abort(t);}function py(e,t){var n;let r=function(){throw new Error("done() callback is deprecated, use promise instead")},o=ws.get(r);o||(o=new AbortController,ws.set(r,o)),r.signal=o.signal,r.task=e,r.skip=(s,a)=>{if(s!==false)throw e.result??(e.result={state:"skip"}),e.result.pending=true,new bs("test is skipped; abort execution",e,typeof s=="string"?s:a)};async function i(s,a,c,l){let u={message:s,type:c||"notice"};if(l){if(!l.body&&!l.path)throw new TypeError("Test attachment requires body or path to be set. Both are missing.");if(l.body&&l.path)throw new TypeError('Test attachment requires only one of "body" or "path" to be set. Both are specified.');u.attachment=l,l.body instanceof Uint8Array&&(l.body=by(l.body));}if(a&&(u.location=a),!t.onTestAnnotate)throw new Error("Test runner doesn't support test annotations.");await ly(t);let f=await t.onTestAnnotate(e,u);return e.annotations.push(f),f}return r.annotate=(s,a,c)=>{if(e.result&&e.result.state!=="run")throw new Error(`Cannot annotate tests outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);let l,u=new Error("STACK_TRACE").stack,f=u.includes("STACK_TRACE")?2:1,p=u.split(`
121
+ `)[f],h=vn(p);return h&&(l={file:h.file,line:h.line,column:h.column}),typeof a=="object"?Nu(e,i(s,l,void 0,a)):Nu(e,i(s,l,a,c))},r.onTestFailed=(s,a)=>{e.onFailed||(e.onFailed=[]),e.onFailed.push(Tn(s,a??t.config.hookTimeout,true,new Error("STACK_TRACE_ERROR"),(c,l)=>o.abort(l)));},r.onTestFinished=(s,a)=>{e.onFinished||(e.onFinished=[]),e.onFinished.push(Tn(s,a??t.config.hookTimeout,true,new Error("STACK_TRACE_ERROR"),(c,l)=>o.abort(l)));},((n=t.extendTaskContext)===null||n===void 0?void 0:n.call(t,r))||r}function my(e,t,n){let r=`${e?"Hook":"Test"} timed out in ${t}ms.
122
+ If this is a long-running ${e?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${e?"hookTimeout":"testTimeout"}".`,o=new Error(r);return n?.stack&&(o.stack=n.stack.replace(o.message,n.message)),o}var gy=new WeakMap;function yy(e){let t=gy.get(e);if(!t)throw new Error(`Cannot find file context for ${e.name}`);return t}var Ue=[];for(let e=65;e<91;e++)Ue.push(String.fromCharCode(e));for(let e=97;e<123;e++)Ue.push(String.fromCharCode(e));for(let e=0;e<10;e++)Ue.push(e.toString(10));function by(e){let t="",n=e.byteLength;for(let r=0;r<n;r+=3)if(n===r+1){let o=(e[r]&252)>>2,i=(e[r]&3)<<4;t+=Ue[o],t+=Ue[i],t+="==";}else if(n===r+2){let o=(e[r]&252)>>2,i=(e[r]&3)<<4|(e[r+1]&240)>>4,s=(e[r+1]&15)<<2;t+=Ue[o],t+=Ue[i],t+=Ue[s],t+="=";}else {let o=(e[r]&252)>>2,i=(e[r]&3)<<4|(e[r+1]&240)>>4,s=(e[r+1]&15)<<2|(e[r+2]&192)>>6,a=e[r+2]&63;t+=Ue[o],t+=Ue[i],t+=Ue[s],t+=Ue[a];}return t}function Nu(e,t){return t=t.finally(()=>{if(!e.promises)return;let n=e.promises.indexOf(t);n!==-1&&e.promises.splice(n,1);}),e.promises||(e.promises=[]),e.promises.push(t),t}var _y="__vitest_worker__";function Gt(){let e=globalThis[_y];if(!e){let t=`Vitest failed to access its internal state.
123
+
124
+ One of the following is possible:
125
+ - "vitest" is imported directly without running "vitest" command
126
+ - "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
127
+ - "vitest" is imported inside Vite / Vitest config file
128
+ - Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
129
+ `;throw new Error(t)}return e}function Yu(){return Gt()?.environment.name}function Ts(){return typeof process<"u"&&!!process.send}function Zu(e,t=false){let n=[/\/vitest\/dist\//,/\/vite-node\/dist\//,/vitest-virtual-\w+\/dist/,/@vitest\/dist/,...t?[]:[/^mock:/]];e.forEach((r,o)=>{n.some(i=>i.test(o))||e.invalidateModule(r);});}function Cy(){let{setTimeout:e}=ct();return new Promise(t=>e(t,0))}async function _s(){await Cy();let e=Gt(),t=[],n=0;for(let r of e.moduleCache.values())r.promise&&!r.evaluated&&t.push(r.promise),r.resolving&&n++;!t.length&&!n||(await Promise.allSettled(t),await _s());}var ro=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jy=44,hf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fy=new Uint8Array(64),If=new Uint8Array(128);for(let e=0;e<hf.length;e++){let t=hf.charCodeAt(e);Fy[e]=t,If[t]=e;}function Pn(e,t){let n=0,r=0,o=0;do{let s=e.next();o=If[s],n|=(o&31)<<r,r+=5;}while(o&32);let i=n&1;return n>>>=1,i&&(n=-2147483648|-n),t+n}function df(e,t){return e.pos>=t?false:e.peek()!==jy}var $s=class{constructor(t){this.pos=0,this.buffer=t;}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){let{buffer:n,pos:r}=this,o=n.indexOf(t,r);return o===-1?n.length:o}};function Dy(e){let{length:t}=e,n=new $s(e),r=[],o=0,i=0,s=0,a=0,c=0;do{let l=n.indexOf(";"),u=[],f=true,p=0;for(o=0;n.pos<l;){let h;o=Pn(n,o),o<p&&(f=false),p=o,df(n,l)?(i=Pn(n,i),s=Pn(n,s),a=Pn(n,a),df(n,l)?(c=Pn(n,c),h=[o,i,s,a,c]):h=[o,i,s,a]):h=[o],u.push(h),n.pos++;}f||Ly(u),r.push(u),n.pos=l+1;}while(n.pos<=t);return r}function Ly(e){e.sort(qy);}function qy(e,t){return e[0]-t[0]}var By=/^[\w+.-]+:\/\//,Uy=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,zy=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i,me;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute";})(me||(me={}));function Wy(e){return By.test(e)}function Jy(e){return e.startsWith("//")}function Of(e){return e.startsWith("/")}function Vy(e){return e.startsWith("file:")}function pf(e){return /^[.?#]/.test(e)}function ao(e){let t=Uy.exec(e);return Pf(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function Ky(e){let t=zy.exec(e),n=t[2];return Pf("file:","",t[1]||"","",Of(n)?n:"/"+n,t[3]||"",t[4]||"")}function Pf(e,t,n,r,o,i,s){return {scheme:e,user:t,host:n,port:r,path:o,query:i,hash:s,type:me.Absolute}}function mf(e){if(Jy(e)){let n=ao("http:"+e);return n.scheme="",n.type=me.SchemeRelative,n}if(Of(e)){let n=ao("http://foo.com"+e);return n.scheme="",n.host="",n.type=me.AbsolutePath,n}if(Vy(e))return Ky(e);if(Wy(e))return ao(e);let t=ao("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?me.Query:e.startsWith("#")?me.Hash:me.RelativePath:me.Empty,t}function Hy(e){if(e.endsWith("/.."))return e;let t=e.lastIndexOf("/");return e.slice(0,t+1)}function Xy(e,t){$f(t,t.type),e.path==="/"?e.path=t.path:e.path=Hy(t.path)+e.path;}function $f(e,t){let n=t<=me.RelativePath,r=e.path.split("/"),o=1,i=0,s=false;for(let c=1;c<r.length;c++){let l=r[c];if(!l){s=true;continue}if(s=false,l!=="."){if(l===".."){i?(s=true,i--,o--):n&&(r[o++]=l);continue}r[o++]=l,i++;}}let a="";for(let c=1;c<o;c++)a+="/"+r[c];(!a||s&&!a.endsWith("/.."))&&(a+="/"),e.path=a;}function Gy(e,t){if(!e&&!t)return "";let n=mf(e),r=n.type;if(t&&r!==me.Absolute){let i=mf(t),s=i.type;switch(r){case me.Empty:n.hash=i.hash;case me.Hash:n.query=i.query;case me.Query:case me.RelativePath:Xy(n,i);case me.AbsolutePath:n.user=i.user,n.host=i.host,n.port=i.port;case me.SchemeRelative:n.scheme=i.scheme;}s>r&&(r=s);}$f(n,r);let o=n.query+n.hash;switch(r){case me.Hash:case me.Query:return o;case me.RelativePath:{let i=n.path.slice(1);return i?pf(t||e)&&!pf(i)?"./"+i+o:i+o:o||"."}case me.AbsolutePath:return n.path+o;default:return n.scheme+"//"+n.user+n.host+n.port+n.path+o}}function gf(e,t){return t&&!t.endsWith("/")&&(t+="/"),Gy(e,t)}function Yy(e){if(!e)return "";let t=e.lastIndexOf("/");return e.slice(0,t+1)}var St=0,Zy=1,Qy=2,eb=3,tb=4;function nb(e,t){let n=yf(e,0);if(n===e.length)return e;t||(e=e.slice());for(let r=n;r<e.length;r=yf(e,r+1))e[r]=ob(e[r],t);return e}function yf(e,t){for(let n=t;n<e.length;n++)if(!rb(e[n]))return n;return e.length}function rb(e){for(let t=1;t<e.length;t++)if(e[t][St]<e[t-1][St])return false;return true}function ob(e,t){return t||(e=e.slice()),e.sort(ib)}function ib(e,t){return e[St]-t[St]}var uo=false;function sb(e,t,n,r){for(;n<=r;){let o=n+(r-n>>1),i=e[o][St]-t;if(i===0)return uo=true,o;i<0?n=o+1:r=o-1;}return uo=false,n-1}function ab(e,t,n){for(let r=n+1;r<e.length&&e[r][St]===t;n=r++);return n}function cb(e,t,n){for(let r=n-1;r>=0&&e[r][St]===t;n=r--);return n}function lb(){return {lastKey:-1,lastNeedle:-1,lastIndex:-1}}function ub(e,t,n,r){let{lastKey:o,lastNeedle:i,lastIndex:s}=n,a=0,c=e.length-1;if(r===o){if(t===i)return uo=s!==-1&&e[s][St]===t,s;t>=i?a=s===-1?0:s:c=s;}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=sb(e,t,a,c)}var fb="`line` must be greater than 0 (lines start at line 1)",hb="`column` must be greater than or equal to 0 (columns start at column 0)",bf=-1,db=1,Ns=class{constructor(t,n){let r=typeof t=="string";if(!r&&t._decodedMemo)return t;let o=r?JSON.parse(t):t,{version:i,file:s,names:a,sourceRoot:c,sources:l,sourcesContent:u}=o;this.version=i,this.file=s,this.names=a||[],this.sourceRoot=c,this.sources=l,this.sourcesContent=u,this.ignoreList=o.ignoreList||o.x_google_ignoreList||void 0;let f=gf(c||"",Yy(n));this.resolvedSources=l.map(h=>gf(h||"",f));let{mappings:p}=o;typeof p=="string"?(this._encoded=p,this._decoded=void 0):(this._encoded=void 0,this._decoded=nb(p,r)),this._decodedMemo=lb(),this._bySources=void 0,this._bySourceMemos=void 0;}};function pb(e){var t;return (t=e)._decoded||(t._decoded=Dy(e._encoded))}function mb(e,t){let{line:n,column:r,bias:o}=t;if(n--,n<0)throw new Error(fb);if(r<0)throw new Error(hb);let i=pb(e);if(n>=i.length)return co(null,null,null,null);let s=i[n],a=gb(s,e._decodedMemo,n,r,o||db);if(a===-1)return co(null,null,null,null);let c=s[a];if(c.length===1)return co(null,null,null,null);let{names:l,resolvedSources:u}=e;return co(u[c[Zy]],c[Qy]+1,c[eb],c.length===5?l[c[tb]]:null)}function co(e,t,n,r){return {source:e,line:t,column:n,name:r}}function gb(e,t,n,r,o){let i=ub(e,r,t,n);return uo?i=(o===bf?ab:cb)(e,r,i):o===bf&&i++,i===-1||i===e.length?-1:i}function Nf(e){return e!=null}function yb(e){return e===null||typeof e!="function"&&typeof e!="object"}function lo(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function bb(e){let t=-1,n=null,r=0,o=0,i=null;for(;t<=e.length;){i=e[t],t++;let s=e[t];if((s==='"'||s==="'"||s==="`")&&i!=="\\"&&(n===s?n=null:n||(n=s)),n||(s==="("&&r++,s===")"&&o++),r&&o&&r===o)return t}return null}var kf=/^\s*at .*(?:\S:\d+|\(native\))/m,wb=/^(?:eval@)?(?:\[native code\])?$/,vb=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function Mf(e){if(!e.includes(":"))return [e];let n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!n)return [e];let r=n[1];if(r.startsWith("async ")&&(r=r.slice(6)),r.startsWith("http:")||r.startsWith("https:")){let o=new URL(r);o.searchParams.delete("import"),o.searchParams.delete("browserv"),r=o.pathname+o.hash+o.search;}if(r.startsWith("/@fs/")){let o=/^\/@fs\/[a-zA-Z]:\//.test(r);r=r.slice(o?5:4);}return [r,n[2]||void 0,n[3]||void 0]}function Eb(e){let t=e.trim();if(wb.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;let n=/((.*".+"[^@]*)?[^@]*)(@)/,r=t.match(n),o=r&&r[1]?r[1]:void 0,[i,s,a]=Mf(t.replace(n,""));return !i||!s||!a?null:{file:i,method:o||"",line:Number.parseInt(s),column:Number.parseInt(a)}}function Sb(e){let t=e.trim();if(!kf.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),r=n.match(/ (\(.+\)$)/);n=r?n.replace(r[0],""):n;let[o,i,s]=Mf(r?r[1]:n),a=r&&n||"",c=o&&["eval","<anonymous>"].includes(o)?void 0:o;return !c||!i||!s?null:(a.startsWith("async ")&&(a=a.slice(6)),c.startsWith("file://")&&(c=c.slice(7)),c=c.startsWith("node:")||c.startsWith("internal:")?c:ms(c),a&&(a=a.replace(/__vite_ssr_import_\d+__\./g,"")),{method:a,file:c,line:Number.parseInt(i),column:Number.parseInt(s)})}function Is(e,t={}){let{ignoreStackEntries:n=vb}=t;return (kf.test(e)?Tb(e):xb(e)).map(o=>{var i;t.getUrlId&&(o.file=t.getUrlId(o.file));let s=(i=t.getSourceMap)===null||i===void 0?void 0:i.call(t,o.file);if(!s||typeof s!="object"||!s.version)return wf(n,o.file)?null:o;let a=new Ns(s),{line:c,column:l,source:u,name:f}=mb(a,o),p=o.file;if(u){let h=o.file.startsWith("file://")?o.file:`file://${o.file}`,m=s.sourceRoot?new URL(s.sourceRoot,h):h;p=new URL(u,m).pathname,p.match(/\/\w:\//)&&(p=p.slice(1));}return wf(n,p)?null:c!=null&&l!=null?{line:c,column:l,file:p,method:f||o.method}:o}).filter(o=>o!=null)}function wf(e,t){return e.some(n=>t.match(n))}function xb(e){return e.split(`
130
+ `).map(t=>Eb(t)).filter(Nf)}function Tb(e){return e.split(`
131
+ `).map(t=>Sb(t)).filter(Nf)}function _b(e,t={}){if(!e||yb(e))return [];if(e.stacks)return e.stacks;let n=e.stack||"",r=typeof n=="string"?Is(n,t):[];if(!r.length){let o=e;o.fileName!=null&&o.lineNumber!=null&&o.columnNumber!=null&&(r=Is(`${o.fileName}:${o.lineNumber}:${o.columnNumber}`,t)),o.sourceURL!=null&&o.line!=null&&o._column!=null&&(r=Is(`${o.sourceURL}:${o.line}:${o.column}`,t));}return t.frameFilter&&(r=r.filter(o=>t.frameFilter(e,o)!==false)),e.stacks=r,r}var Cb=()=>"Promise{\u2026}";try{let{getPromiseDetails:e,kPending:t,kRejected:n}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(Cb=(r,o)=>{let[i,s]=e(r);return i===t?"Promise{<pending>}":`Promise${i===n?"!":""}{${o.inspect(s,o)}}`});}catch{}function Ab(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Os,vf;function Ib(){if(vf)return Os;vf=1;var e,t,n,r,o,i,s,a,c,l,u,f,p,h,m,d,b,v,x;return p=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,f=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,m=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,u=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,d=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,x=/[\t\v\f\ufeff\p{Zs}]+/yu,a=/\r?\n|[\r\u2028\u2029]/y,c=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,h=/\/\/.*/y,n=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,r=/(['"])(?:(?!\1)[^])*(\1)?/y,o=/[^<>{}]+/y,v=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,b=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,i=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,s=/^(?:return|throw|yield)$/,l=RegExp(a.source),Os=function*(A,{jsx:P=false}={}){var O,R,$,I,k,V,C,J,ce,z,Y,M,X,F;for({length:V}=A,I=0,k="",F=[{tag:"JS"}],O=[],Y=0,M=false;I<V;){switch(J=F[F.length-1],J.tag){case "JS":case "JSNonExpressionParen":case "InterpolationInTemplate":case "InterpolationInJSX":if(A[I]==="/"&&(v.test(k)||i.test(k))&&(p.lastIndex=I,C=p.exec(A))){I=p.lastIndex,k=C[0],M=true,yield {type:"RegularExpressionLiteral",value:C[0],closed:C[1]!==void 0&&C[1]!=="\\"};continue}if(f.lastIndex=I,C=f.exec(A)){switch(X=C[0],ce=f.lastIndex,z=X,X){case "(":k==="?NonExpressionParenKeyword"&&F.push({tag:"JSNonExpressionParen",nesting:Y}),Y++,M=false;break;case ")":Y--,M=true,J.tag==="JSNonExpressionParen"&&Y===J.nesting&&(F.pop(),z="?NonExpressionParenEnd",M=false);break;case "{":f.lastIndex=0,$=!b.test(k)&&(v.test(k)||i.test(k)),O.push($),M=false;break;case "}":switch(J.tag){case "InterpolationInTemplate":if(O.length===J.nesting){d.lastIndex=I,C=d.exec(A),I=d.lastIndex,k=C[0],C[1]==="${"?(k="?InterpolationInTemplate",M=false,yield {type:"TemplateMiddle",value:C[0]}):(F.pop(),M=true,yield {type:"TemplateTail",value:C[0],closed:C[1]==="`"});continue}break;case "InterpolationInJSX":if(O.length===J.nesting){F.pop(),I+=1,k="}",yield {type:"JSXPunctuator",value:"}"};continue}}M=O.pop(),z=M?"?ExpressionBraceEnd":"}";break;case "]":M=true;break;case "++":case "--":z=M?"?PostfixIncDec":"?UnaryIncDec";break;case "<":if(P&&(v.test(k)||i.test(k))){F.push({tag:"JSXTag"}),I+=1,k="<",yield {type:"JSXPunctuator",value:X};continue}M=false;break;default:M=false;}I=ce,k=z,yield {type:"Punctuator",value:X};continue}if(e.lastIndex=I,C=e.exec(A)){switch(I=e.lastIndex,z=C[0],C[0]){case "for":case "if":case "while":case "with":k!=="."&&k!=="?."&&(z="?NonExpressionParenKeyword");}k=z,M=!i.test(C[0]),yield {type:C[1]==="#"?"PrivateIdentifier":"IdentifierName",value:C[0]};continue}if(m.lastIndex=I,C=m.exec(A)){I=m.lastIndex,k=C[0],M=true,yield {type:"StringLiteral",value:C[0],closed:C[2]!==void 0};continue}if(u.lastIndex=I,C=u.exec(A)){I=u.lastIndex,k=C[0],M=true,yield {type:"NumericLiteral",value:C[0]};continue}if(d.lastIndex=I,C=d.exec(A)){I=d.lastIndex,k=C[0],C[1]==="${"?(k="?InterpolationInTemplate",F.push({tag:"InterpolationInTemplate",nesting:O.length}),M=false,yield {type:"TemplateHead",value:C[0]}):(M=true,yield {type:"NoSubstitutionTemplate",value:C[0],closed:C[1]==="`"});continue}break;case "JSXTag":case "JSXTagEnd":if(n.lastIndex=I,C=n.exec(A)){switch(I=n.lastIndex,z=C[0],C[0]){case "<":F.push({tag:"JSXTag"});break;case ">":F.pop(),k==="/"||J.tag==="JSXTagEnd"?(z="?JSX",M=true):F.push({tag:"JSXChildren"});break;case "{":F.push({tag:"InterpolationInJSX",nesting:O.length}),z="?InterpolationInJSX",M=false;break;case "/":k==="<"&&(F.pop(),F[F.length-1].tag==="JSXChildren"&&F.pop(),F.push({tag:"JSXTagEnd"}));}k=z,yield {type:"JSXPunctuator",value:C[0]};continue}if(t.lastIndex=I,C=t.exec(A)){I=t.lastIndex,k=C[0],yield {type:"JSXIdentifier",value:C[0]};continue}if(r.lastIndex=I,C=r.exec(A)){I=r.lastIndex,k=C[0],yield {type:"JSXString",value:C[0],closed:C[2]!==void 0};continue}break;case "JSXChildren":if(o.lastIndex=I,C=o.exec(A)){I=o.lastIndex,k=C[0],yield {type:"JSXText",value:C[0]};continue}switch(A[I]){case "<":F.push({tag:"JSXTag"}),I++,k="<",yield {type:"JSXPunctuator",value:"<"};continue;case "{":F.push({tag:"InterpolationInJSX",nesting:O.length}),I++,k="?InterpolationInJSX",M=false,yield {type:"JSXPunctuator",value:"{"};continue}}if(x.lastIndex=I,C=x.exec(A)){I=x.lastIndex,yield {type:"WhiteSpace",value:C[0]};continue}if(a.lastIndex=I,C=a.exec(A)){I=a.lastIndex,M=false,s.test(k)&&(k="?NoLineTerminatorHere"),yield {type:"LineTerminatorSequence",value:C[0]};continue}if(c.lastIndex=I,C=c.exec(A)){I=c.lastIndex,l.test(C[0])&&(M=false,s.test(k)&&(k="?NoLineTerminatorHere")),yield {type:"MultiLineComment",value:C[0],closed:C[1]!==void 0};continue}if(h.lastIndex=I,C=h.exec(A)){I=h.lastIndex,M=false,yield {type:"SingleLineComment",value:C[0]};continue}R=String.fromCodePoint(A.codePointAt(I)),I+=R.length,k=R,M=false,yield {type:J.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:R};}},Os}Ib();var Rf={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(Rf.keyword);new Set(Rf.strict);var Ob={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},Pb=Object.entries(Ob);function js(e){return String(e)}js.open="";js.close="";function $b(e=false){let t=typeof process<"u"?process:void 0,n=t?.env||{},r=t?.argv||[];return !("NO_COLOR"in n||r.includes("--no-color"))&&("FORCE_COLOR"in n||r.includes("--color")||t?.platform==="win32"||e&&n.TERM!=="dumb"||"CI"in n)||typeof window<"u"&&!!window.chrome}function Nb(e=false){let t=$b(e),n=(s,a,c,l)=>{let u="",f=0;do u+=s.substring(f,l)+c,f=l+a.length,l=s.indexOf(a,f);while(~l);return u+s.substring(f)},r=(s,a,c=s)=>{let l=u=>{let f=String(u),p=f.indexOf(a,s.length);return ~p?s+n(f,a,c,p)+a:s+f+a};return l.open=s,l.close=a,l},o={isColorSupported:t},i=s=>`\x1B[${s}m`;for(let[s,a]of Pb)o[s]=t?r(i(a[0]),i(a[1]),a[2]):js;return o}Nb();var Fs=/\r?\n/;function kb(e,t,n){let r=e.split(Fs),o=/\r\n/.test(e)?2:1,i=0;if(t>r.length)return e.length;for(let s=0;s<t-1;s++)i+=r[s].length+o;return i+n}function Mb(e,t){if(t>e.length)throw new Error(`offset is longer than source length! offset ${t} > length ${e.length}`);let n=e.split(Fs),r=/\r\n/.test(e)?2:1,o=0,i=0;for(;i<n.length;i++){let s=n[i].length+r;if(o+s>=t)break;o+=s;}return i+1}async function Rb(e,t){let n=(await Promise.resolve().then(()=>(ff(),uf))).default,r=new Set(t.map(o=>o.file));await Promise.all(Array.from(r).map(async o=>{let i=t.filter(l=>l.file===o),s=await e.readSnapshotFile(o),a=new n(s);for(let l of i){let u=kb(s,l.line,l.column);Bb(s,a,u,l.snapshot);}let c=a.toString();c!==s&&await e.saveSnapshotFile(o,c);}));}var jb=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function Fb(e,t,n,r){let o=e.slice(n),i=jb.exec(o);if(!i)return false;o=o.slice(i.index);let s=bb(o);if(s===null)return false;s+=n+i.index;let a=n+i.index+i[0].length,c=Db(e,a),l=`, ${jf(r,e,n)}`;return c===s?t.appendLeft(s,l):t.overwrite(c,s,l),true}function Db(e,t){let n=1,r=0;for(;n!==r&&t<e.length;){let o=e[t++];o==="{"?n++:o==="}"&&r++;}return t}function jf(e,t,n){let r=Mb(t,n),i=t.split(Fs)[r-1].match(/^\s*/)[0]||"",s=i.includes(" ")?`${i} `:`${i} `,a=e.trim().replace(/\\/g,"\\\\").split(/\n/g),c=a.length<=1,l="`";return c?`${l}${a.join(`
132
+ `).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}${l}`:`${l}
133
+ ${a.map(u=>u?s+u:"").join(`
134
+ `).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}
135
+ ${i}${l}`}var Ef="toMatchInlineSnapshot",Sf="toThrowErrorMatchingInlineSnapshot";function Lb(e,t){let n=t-Ef.length;if(e.slice(n,t)===Ef)return {code:e.slice(n),index:n};let r=t-Sf.length;return e.slice(t-r,t)===Sf?{code:e.slice(t-r),index:t-r}:{code:e.slice(t),index:t}}var qb=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*[\w$]*(['"`)])/;function Bb(e,t,n,r){let{code:o,index:i}=Lb(e,n),s=qb.exec(o),a=/toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/.exec(o);if(!s||s.index!==a?.index)return Fb(e,t,i,r);let c=s[1],l=i+s.index+s[0].length,u=jf(r,e,i);if(c===")")return t.appendRight(l-1,u),true;let p=new RegExp(`(?:^|[^\\\\])${c}`).exec(e.slice(l));if(!p)return false;let h=l+p.index+p[0].length;return t.overwrite(l-1,h,u),true}var Ub=/^([^\S\n]*)\S/m;function Ds(e){let t=e.match(Ub);if(!t||!t[1])return e;let n=t[1],r=e.split(/\n/g);if(r.length<=2||r[0].trim()!==""||r[r.length-1].trim()!=="")return e;for(let o=1;o<r.length-1;o++)if(r[o]!==""){if(r[o].indexOf(n)!==0)return e;r[o]=r[o].substring(n.length);}return r[r.length-1]="",e=r.join(`
136
+ `),e}async function zb(e,t){await Promise.all(t.map(async n=>{n.readonly||await e.saveSnapshotFile(n.file,n.snapshot);}));}var Ps={exports:{}},xf;function Wb(){if(xf)return Ps.exports;xf=1;var e=function(t,n){var r,o,i=1,s=0,a=0,c=String.alphabet;function l(u,f,p){if(p){for(r=f;p=l(u,r),p<76&&p>65;)++r;return +u.slice(f-1,r)}return p=c&&c.indexOf(u.charAt(f)),p>-1?p+76:(p=u.charCodeAt(f)||0,p<45||p>127?p:p<46?65:p<48?p-1:p<58?p+18:p<65?p-11:p<91?p+11:p<97?p-37:p<123?p+5:p-63)}if((t+="")!=(n+="")){for(;i;)if(o=l(t,s++),i=l(n,a++),o<76&&i<76&&o>66&&i>66&&(o=l(t,s,s),i=l(n,a,s=r),a=r),o!=i)return o<i?-1:1}return 0};try{Ps.exports=e;}catch{String.naturalCompare=e;}return Ps.exports}var Jb=Wb(),Vb=Ab(Jb),Kb=(e,t,n,r,o,i)=>{let s=e.getMockName(),a=s==="vi.fn()"?"":` ${s}`,c="";if(e.mock.calls.length!==0){let l=n+t.indent;c=` {${t.spacingOuter}${l}"calls": ${i(e.mock.calls,t,l,r,o)}${t.min?", ":","}${t.spacingOuter}${l}"results": ${i(e.mock.results,t,l,r,o)}${t.min?"":","}${t.spacingOuter}${n}}`;}return `[MockFunction${a}]${c}`},Hb=e=>e&&!!e._isMockFunction,Xb={serialize:Kb,test:Hb},{DOMCollection:Gb,DOMElement:Yb,Immutable:Zb,ReactElement:Qb,ReactTestComponent:ew,AsymmetricMatcher:tw}=dt,ks=[ew,Qb,Yb,Gb,Zb,tw,Xb];function Ff(e){ks=[e].concat(ks);}function nw(){return ks}function rw(e,t){return `${e} ${t}`}function ow(e){if(!/ \d+$/.test(e))throw new Error("Snapshot keys must end with a number.");return e.replace(/ \d+$/,"")}function iw(e,t){let n=t.updateSnapshot,r=Object.create(null),o="",i=false;if(e!=null)try{o=e,new Function("exports",o)(r);}catch{}return (n==="all"||n==="new")&&o&&(i=true),{data:r,dirty:i}}function sw(e){return e.includes(`
137
+ `)?`
138
+ ${e}
139
+ `:e}function Tf(e){return e.length>2&&e.startsWith(`
140
+ `)&&e.endsWith(`
141
+ `)?e.slice(1,-1):e}var aw=true,cw=false;function lw(e,t=2,n={}){return Ls(Re(e,{escapeRegex:aw,indent:t,plugins:nw(),printFunctionName:cw,...n}))}function uw(e){return e.replace(/`|\\|\$\{/g,"\\$&")}function _f(e){return `\`${uw(e)}\``}function Ls(e){return e.replace(/\r\n|\r/g,`
142
+ `)}async function fw(e,t,n){let r=Object.keys(t).sort(Vb).map(a=>`exports[${_f(a)}] = ${_f(Ls(t[a]))};`),o=`${e.getHeader()}
143
+
144
+ ${r.join(`
145
+
146
+ `)}
147
+ `,i=await e.readSnapshotFile(n);i!=null&&i===o||await e.saveSnapshotFile(n,o);}function Ms(e=[],t=[]){let n=Array.from(e);return t.forEach((r,o)=>{let i=n[o];Array.isArray(e[o])?n[o]=Ms(e[o],r):lo(i)?n[o]=qs(e[o],r):n[o]=r;}),n}function qs(e,t){if(lo(e)&&lo(t)){let n={...e};return Object.keys(t).forEach(r=>{lo(t[r])&&!t[r].$$typeof?r in e?n[r]=qs(e[r],t[r]):Object.assign(n,{[r]:t[r]}):Array.isArray(t[r])?n[r]=Ms(e[r],t[r]):Object.assign(n,{[r]:t[r]});}),n}else if(Array.isArray(e)&&Array.isArray(t))return Ms(e,t);return e}var fo=class extends Map{constructor(t,n){super(n),this.defaultFn=t;}get(t){return this.has(t)||this.set(t,this.defaultFn(t)),super.get(t)}},Dt=class extends fo{constructor(){super(()=>0);}_total;valueOf(){return this._total=this.total()}increment(t){typeof this._total<"u"&&this._total++,this.set(t,this.get(t)+1);}total(){if(typeof this._total<"u")return this._total;let t=0;for(let n of this.values())t+=n;return t}};function Cf(e,t){return e.file===t.file&&e.column===t.column&&e.line===t.line}var Rs=class e{_counters=new Dt;_dirty;_updateSnapshot;_snapshotData;_initialData;_inlineSnapshots;_inlineSnapshotStacks;_testIdToKeys=new fo(()=>[]);_rawSnapshots;_uncheckedKeys;_snapshotFormat;_environment;_fileExists;expand;_added=new Dt;_matched=new Dt;_unmatched=new Dt;_updated=new Dt;get added(){return this._added}set added(t){this._added._total=t;}get matched(){return this._matched}set matched(t){this._matched._total=t;}get unmatched(){return this._unmatched}set unmatched(t){this._unmatched._total=t;}get updated(){return this._updated}set updated(t){this._updated._total=t;}constructor(t,n,r,o){this.testFilePath=t,this.snapshotPath=n;let{data:i,dirty:s}=iw(r,o);this._fileExists=r!=null,this._initialData={...i},this._snapshotData={...i},this._dirty=s,this._inlineSnapshots=[],this._inlineSnapshotStacks=[],this._rawSnapshots=[],this._uncheckedKeys=new Set(Object.keys(this._snapshotData)),this.expand=o.expand||false,this._updateSnapshot=o.updateSnapshot,this._snapshotFormat={printBasicPrototype:false,escapeString:false,...o.snapshotFormat},this._environment=o.snapshotEnvironment;}static async create(t,n){let r=await n.snapshotEnvironment.resolvePath(t),o=await n.snapshotEnvironment.readSnapshotFile(r);return new e(t,r,o,n)}get environment(){return this._environment}markSnapshotsAsCheckedForTest(t){this._uncheckedKeys.forEach(n=>{/ \d+$| > /.test(n.slice(t.length))&&this._uncheckedKeys.delete(n);});}clearTest(t){this._inlineSnapshots=this._inlineSnapshots.filter(n=>n.testId!==t),this._inlineSnapshotStacks=this._inlineSnapshotStacks.filter(n=>n.testId!==t);for(let n of this._testIdToKeys.get(t)){let r=ow(n),o=this._counters.get(r);o>0&&((n in this._snapshotData||n in this._initialData)&&(this._snapshotData[n]=this._initialData[n]),this._counters.set(r,o-1));}this._testIdToKeys.delete(t),this.added.delete(t),this.updated.delete(t),this.matched.delete(t),this.unmatched.delete(t);}_inferInlineSnapshotStack(t){let n=t.findIndex(o=>o.method.match(/__VITEST_(RESOLVES|REJECTS)__/));if(n!==-1)return t[n+3];let r=t.findIndex(o=>o.method.includes("__INLINE_SNAPSHOT__"));return r!==-1?t[r+2]:null}_addSnapshot(t,n,r){this._dirty=true,r.stack?this._inlineSnapshots.push({snapshot:n,testId:r.testId,...r.stack}):r.rawSnapshot?this._rawSnapshots.push({...r.rawSnapshot,snapshot:n}):this._snapshotData[t]=n;}async save(){let t=Object.keys(this._snapshotData).length,n=this._inlineSnapshots.length,r=this._rawSnapshots.length,o=!t&&!n&&!r,i={deleted:false,saved:false};return (this._dirty||this._uncheckedKeys.size)&&!o?(t&&(await fw(this._environment,this._snapshotData,this.snapshotPath),this._fileExists=true),n&&await Rb(this._environment,this._inlineSnapshots),r&&await zb(this._environment,this._rawSnapshots),i.saved=true):!t&&this._fileExists&&(this._updateSnapshot==="all"&&(await this._environment.removeSnapshotFile(this.snapshotPath),this._fileExists=false),i.deleted=true),i}getUncheckedCount(){return this._uncheckedKeys.size||0}getUncheckedKeys(){return Array.from(this._uncheckedKeys)}removeUncheckedKeys(){this._updateSnapshot==="all"&&this._uncheckedKeys.size&&(this._dirty=true,this._uncheckedKeys.forEach(t=>delete this._snapshotData[t]),this._uncheckedKeys.clear());}match({testId:t,testName:n,received:r,key:o,inlineSnapshot:i,isInline:s,error:a,rawSnapshot:c}){this._counters.increment(n);let l=this._counters.get(n);o||(o=rw(n,l)),this._testIdToKeys.get(t).push(o),s&&this._snapshotData[o]!==void 0||this._uncheckedKeys.delete(o);let u=c&&typeof r=="string"?r:lw(r,void 0,this._snapshotFormat);c||(u=sw(u)),c&&c.content&&c.content.match(/\r\n/)&&!u.match(/\r\n/)&&(c.content=Ls(c.content));let f=s?i:c?c.content:this._snapshotData[o],p=c?f:f?.trim(),h=p===(c?u:u.trim()),m=f!==void 0,d=s||this._fileExists||c&&c.content!=null;h&&!s&&!c&&(this._snapshotData[o]=u);let b;if(s){var v,x;let A=_b(a||new Error("snapshot"),{ignoreStackEntries:[]}),P=this._inferInlineSnapshotStack(A);if(!P)throw new Error(`@vitest/snapshot: Couldn't infer stack frame for inline snapshot.
148
+ ${JSON.stringify(A)}`);b=((v=(x=this.environment).processStackTrace)===null||v===void 0?void 0:v.call(x,P))||P,b.column--;let O=this._inlineSnapshotStacks.filter(R=>Cf(R,b));if(O.length>0){this._inlineSnapshots=this._inlineSnapshots.filter($=>!Cf($,b));let R=O.find($=>$.snapshot!==u);if(R)throw Object.assign(new Error("toMatchInlineSnapshot with different snapshots cannot be called at the same location"),{actual:u,expected:R.snapshot})}this._inlineSnapshotStacks.push({...b,testId:t,snapshot:u});}return m&&this._updateSnapshot==="all"||(!m||!d)&&(this._updateSnapshot==="new"||this._updateSnapshot==="all")?(this._updateSnapshot==="all"?h?this.matched.increment(t):(m?this.updated.increment(t):this.added.increment(t),this._addSnapshot(o,u,{stack:b,testId:t,rawSnapshot:c})):(this._addSnapshot(o,u,{stack:b,testId:t,rawSnapshot:c}),this.added.increment(t)),{actual:"",count:l,expected:"",key:o,pass:true}):h?(this.matched.increment(t),{actual:"",count:l,expected:"",key:o,pass:true}):(this.unmatched.increment(t),{actual:c?u:Tf(u),count:l,expected:p!==void 0?c?p:Tf(p):void 0,key:o,pass:false})}async pack(){let t={filepath:this.testFilePath,added:0,fileDeleted:false,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0},n=this.getUncheckedCount(),r=this.getUncheckedKeys();n&&this.removeUncheckedKeys();let o=await this.save();return t.fileDeleted=o.deleted,t.added=this.added.total(),t.matched=this.matched.total(),t.unmatched=this.unmatched.total(),t.updated=this.updated.total(),t.unchecked=o.deleted?0:n,t.uncheckedKeys=Array.from(r),t}};function Af(e,t,n,r){let o=new Error(e);return Object.defineProperty(o,"actual",{value:n,enumerable:true,configurable:true,writable:true}),Object.defineProperty(o,"expected",{value:r,enumerable:true,configurable:true,writable:true}),Object.defineProperty(o,"diffOptions",{value:{expand:t}}),o}var ho=class{snapshotStateMap=new Map;constructor(t={}){this.options=t;}async setup(t,n){this.snapshotStateMap.has(t)||this.snapshotStateMap.set(t,await Rs.create(t,n));}async finish(t){let r=await this.getSnapshotState(t).pack();return this.snapshotStateMap.delete(t),r}skipTest(t,n){this.getSnapshotState(t).markSnapshotsAsCheckedForTest(n);}clearTest(t,n){this.getSnapshotState(t).clearTest(n);}getSnapshotState(t){let n=this.snapshotStateMap.get(t);if(!n)throw new Error(`The snapshot state for '${t}' is not found. Did you call 'SnapshotClient.setup()'?`);return n}assert(t){let{filepath:n,name:r,testId:o=r,message:i,isInline:s=false,properties:a,inlineSnapshot:c,error:l,errorMessage:u,rawSnapshot:f}=t,{received:p}=t;if(!n)throw new Error("Snapshot cannot be used outside of test");let h=this.getSnapshotState(n);if(typeof a=="object"){if(typeof p!="object"||!p)throw new Error("Received value must be an object when the matcher has properties");try{var m,d;if(((m=(d=this.options).isEqual)===null||m===void 0?void 0:m.call(d,p,a))??!1)p=qs(p,a);else throw Af("Snapshot properties mismatched",h.expand,p,a)}catch(O){throw O.message=u||"Snapshot mismatched",O}}let b=[r,...i?[i]:[]].join(" > "),{actual:v,expected:x,key:A,pass:P}=h.match({testId:o,testName:b,received:p,isInline:s,error:l,inlineSnapshot:c,rawSnapshot:f});if(!P)throw Af(`Snapshot \`${A||"unknown"}\` mismatched`,h.expand,f?v:v?.trim(),f?x:x?.trim())}async assertRaw(t){if(!t.rawSnapshot)throw new Error("Raw snapshot is required");let{filepath:n,rawSnapshot:r}=t;if(r.content==null){if(!n)throw new Error("Snapshot cannot be used outside of test");let o=this.getSnapshotState(n);t.filepath||(t.filepath=n),r.file=await o.environment.resolveRawPath(n,r.file),r.content=await o.environment.readSnapshotFile(r.file)??void 0;}return this.assert(t)}clear(){this.snapshotStateMap.clear();}};var ze=Date,Bs=null,xt=class e extends ze{constructor(t,n,r,o,i,s,a){super();let c;switch(arguments.length){case 0:Bs!==null?c=new ze(Bs.valueOf()):c=new ze;break;case 1:c=new ze(t);break;default:r=typeof r>"u"?1:r,o=o||0,i=i||0,s=s||0,a=a||0,c=new ze(t,n,r,o,i,s,a);break}return Object.setPrototypeOf(c,e.prototype),c}};xt.UTC=ze.UTC;xt.now=function(){return new xt().valueOf()};xt.parse=function(e){return ze.parse(e)};xt.toString=function(){return ze.toString()};function Df(e){let t=new ze(e.valueOf());if(Number.isNaN(t.getTime()))throw new TypeError(`mockdate: The time set is an invalid date: ${e}`);globalThis.Date=xt,Bs=t.valueOf();}function Lf(){globalThis.Date=ze;}var hw=["matchSnapshot","toMatchSnapshot","toMatchInlineSnapshot","toThrowErrorMatchingSnapshot","toThrowErrorMatchingInlineSnapshot","throws","Throw","throw","toThrow","toThrowError"];function dw(e){return function(n,r={}){let i=Gt().config.expect?.poll??{},{interval:s=i.interval??50,timeout:a=i.timeout??1e3,message:c}=r,l=e(null,c).withContext({poll:true});n=n.bind(l);let u=we.flag(l,"vitest-test");if(!u)throw new Error("expect.poll() must be called inside a test");let f=new Proxy(l,{get(p,h,m){let d=Reflect.get(p,h,m);if(typeof d!="function")return d instanceof y?f:d;if(h==="assert")return d;if(typeof h=="string"&&hw.includes(h))throw new SyntaxError(`expect.poll() is not supported in combination with .${h}(). Use vi.waitFor() if your assertion condition is unstable.`);return function(...b){let v=new Error("STACK_TRACE_ERROR"),x=()=>new Promise((O,R)=>{let $,I,k,{setTimeout:V,clearTimeout:C}=ct(),J=async()=>{try{we.flag(l,"_name",h);let ce=await n();we.flag(l,"object",ce),O(await d.call(l,...b)),C($),C(I);}catch(ce){k=ce,we.flag(l,"_isLastPollAttempt")||($=V(J,s));}};I=V(()=>{C($),we.flag(l,"_isLastPollAttempt",true);let ce=z=>{R(qf(new Error("Matcher did not succeed in time.",{cause:z}),v));};J().then(()=>ce(k)).catch(z=>ce(z));},a),J();}),A=false;u.onFinished??=[],u.onFinished.push(()=>{if(!A){let O=we.flag(l,"negate")?"not.":"",$=`expect.${we.flag(l,"_poll.element")?"element(locator)":"poll(assertion)"}.${O}${String(h)}()`,I=new Error(`${$} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:
149
+
150
+ await ${$}
151
+ `);throw qf(I,v)}});let P;return {then(O,R){return A=true,(P||=x()).then(O,R)},catch(O){return (P||=x()).catch(O)},finally(O){return (P||=x()).finally(O)},[Symbol.toStringTag]:"Promise"}}}});return f}}function qf(e,t){return t.stack!==void 0&&(e.stack=t.stack.replace(t.message,e.message)),e}function pw(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var po={exports:{}},mw=po.exports,Bf;function gw(){return Bf||(Bf=1,function(e,t){(function(){(function(n){return typeof pw=="function"?e.exports=n:chai.use(n)})(function(n,r){var o=n.Assertion,i=o.prototype;o.addMethod("containSubset",function(a){var c=r.flag(this,"object"),l=n.config.showDiff;i.assert.call(this,s(a,c),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",a,c,l);}),n.assert.containSubset=function(a,c,l){new n.Assertion(a,l).to.be.containSubset(c);};function s(a,c){if(a===c)return true;if(typeof c!=typeof a)return false;if(typeof a!="object"||a===null)return a===c;if(a&&!c)return false;if(Array.isArray(a)){if(typeof c.length!="number")return false;var l=Array.prototype.slice.call(c);return a.every(function(u){return l.some(function(f){return s(u,f)})})}return a instanceof Date?c instanceof Date?a.getTime()===c.getTime():false:Object.keys(a).every(function(u){var f=a[u],p=c[u];return typeof f=="object"&&f!==null&&p!==null?s(f,p):typeof f=="function"?f(p):p===f})}});}).call(mw);}(po)),po.exports}var yw=gw(),bw=Qu(yw);function ww(e,t,n){let r=e.flag(t,"negate")?"not.":"",o=`${e.flag(t,"_name")}(expected)`,i=e.flag(t,"promise");return `expect(actual)${i?`.${i}`:""}.${r}${o}`}function vw(e,t,n,r){let o=e;if(o&&t instanceof Promise){t=t.finally(()=>{if(!o.promises)return;let s=o.promises.indexOf(t);s!==-1&&o.promises.splice(s,1);}),o.promises||(o.promises=[]),o.promises.push(t);let i=false;return o.onFinished??=[],o.onFinished.push(()=>{if(!i){let a=(globalThis.__vitest_worker__?.onFilterStackTrace||(c=>c||""))(r.stack);console.warn([`Promise returned by \`${n}\` was not awaited. `,"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ",`Please remember to await the assertion.
152
+ `,a].join(""));}}),{then(s,a){return i=true,t.then(s,a)},catch(s){return t.catch(s)},finally(s){return t.finally(s)},[Symbol.toStringTag]:"Promise"}}return t}var Us;function $n(){return Us||(Us=new ho({isEqual:(e,t)=>Q(e,t,[je,Mt])})),Us}function Uf(e,t){if(typeof e!="function"){if(!t)throw new Error(`expected must be a function, received ${typeof e}`);return e}try{e();}catch(n){return n}throw new Error("snapshot function didn't throw")}function Nn(e){return {filepath:e.file.filepath,name:no(e).slice(1).join(" > "),testId:e.id}}var Ew=(e,t)=>{function n(r,o){let i=t.flag(o,"vitest-test");if(!i)throw new Error(`'${r}' cannot be used without test context`);return i}for(let r of ["matchSnapshot","toMatchSnapshot"])t.addMethod(e.Assertion.prototype,r,function(o,i){if(t.flag(this,"_name",r),t.flag(this,"negate"))throw new Error(`${r} cannot be used with "not"`);let a=t.flag(this,"object"),c=n(r,this);typeof o=="string"&&typeof i>"u"&&(i=o,o=void 0);let l=t.flag(this,"message");$n().assert({received:a,message:i,isInline:false,properties:o,errorMessage:l,...Nn(c)});});t.addMethod(e.Assertion.prototype,"toMatchFileSnapshot",function(r,o){if(t.flag(this,"_name","toMatchFileSnapshot"),t.flag(this,"negate"))throw new Error('toMatchFileSnapshot cannot be used with "not"');let s=new Error("resolves"),a=t.flag(this,"object"),c=n("toMatchFileSnapshot",this),l=t.flag(this,"message"),u=$n().assertRaw({received:a,message:o,isInline:false,rawSnapshot:{file:r},errorMessage:l,...Nn(c)});return vw(c,u,ww(t,this),s)}),t.addMethod(e.Assertion.prototype,"toMatchInlineSnapshot",function(o,i,s){if(t.flag(this,"_name","toMatchInlineSnapshot"),t.flag(this,"negate"))throw new Error('toMatchInlineSnapshot cannot be used with "not"');let c=n("toMatchInlineSnapshot",this);if(c.each||c.suite?.each)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");let u=t.flag(this,"object"),f=t.flag(this,"error");typeof o=="string"&&(s=i,i=o,o=void 0),i&&(i=Ds(i));let p=t.flag(this,"message");$n().assert({received:u,message:s,isInline:true,properties:o,inlineSnapshot:i,error:f,errorMessage:p,...Nn(c)});}),t.addMethod(e.Assertion.prototype,"toThrowErrorMatchingSnapshot",function(r){if(t.flag(this,"_name","toThrowErrorMatchingSnapshot"),t.flag(this,"negate"))throw new Error('toThrowErrorMatchingSnapshot cannot be used with "not"');let i=t.flag(this,"object"),s=n("toThrowErrorMatchingSnapshot",this),a=t.flag(this,"promise"),c=t.flag(this,"message");$n().assert({received:Uf(i,a),message:r,errorMessage:c,...Nn(s)});}),t.addMethod(e.Assertion.prototype,"toThrowErrorMatchingInlineSnapshot",function(o,i){if(t.flag(this,"negate"))throw new Error('toThrowErrorMatchingInlineSnapshot cannot be used with "not"');let a=n("toThrowErrorMatchingInlineSnapshot",this);if(a.each||a.suite?.each)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");let l=t.flag(this,"object"),u=t.flag(this,"error"),f=t.flag(this,"promise"),p=t.flag(this,"message");o&&(o=Ds(o)),$n().assert({received:Uf(l,f),message:i,inlineSnapshot:o,isInline:true,error:u,errorMessage:p,...Nn(a)});}),t.addMethod(e.expect,"addSnapshotSerializer",Ff);};nt(du);nt(hu);nt(bw);nt(Ew);nt(uu);function uh(e){let t=(i,s)=>{let{assertionCalls:a}=Ht(t);Lr({assertionCalls:a+1},t);let c=bt(i,s),l=_n();return l?c.withTest(l):c};Object.assign(t,bt),Object.assign(t,globalThis[jr]),t.getState=()=>Ht(t),t.setState=i=>Lr(i,t);let n=Ht(globalThis[wn])||{};Lr({...n,assertionCalls:0,isExpectingAssertions:false,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,environment:Yu(),get testPath(){return Gt().filepath},currentTestName:n.currentTestName},t),t.extend=i=>bt.extend(t,i),t.addEqualityTesters=i=>iu(i),t.soft=(...i)=>t(...i).withContext({soft:true}),t.poll=dw(t),t.unreachable=i=>{g.fail(`expected${i?` "${i}" `:" "}not to be reached`);};function r(i){let s=()=>new Error(`expected number of assertions to be ${i}, but got ${t.getState().assertionCalls}`);Error.captureStackTrace&&Error.captureStackTrace(s(),r),t.setState({expectedAssertionsNumber:i,expectedAssertionsNumberErrorGen:s});}function o(){let i=new Error("expected any number of assertion, but got none");Error.captureStackTrace&&Error.captureStackTrace(i,o),t.setState({isExpectingAssertions:true,isExpectingAssertionsError:i});}return we.addMethod(t,"assertions",r),we.addMethod(t,"hasAssertions",o),t.extend(nu),t}var yo=uh();Object.defineProperty(globalThis,wn,{value:yo,writable:true,configurable:true});var Zt={},zs,zf;function Sw(){if(zf)return zs;zf=1;var e;return typeof ro<"u"?e=ro:typeof window<"u"?e=window:e=self,zs=e,zs}var Ws,Wf;function xw(){if(Wf)return Ws;Wf=1;let e;try{(({})).__proto__,e=!1;}catch{e=true;}return Ws=e,Ws}var Js,Jf;function en(){if(Jf)return Js;Jf=1;var e=Function.call,t=xw(),n=["size","caller","callee","arguments"];return t&&n.push("__proto__"),Js=function(o){return Object.getOwnPropertyNames(o).reduce(function(i,s){return n.includes(s)||typeof o[s]!="function"||(i[s]=e.bind(o[s])),i},Object.create(null))},Js}var Vs,Vf;function go(){if(Vf)return Vs;Vf=1;var e=en();return Vs=e(Array.prototype),Vs}var Ks,Kf;function Tw(){if(Kf)return Ks;Kf=1;var e=go().every;function t(o,i){return o[i.id]===void 0&&(o[i.id]=0),o[i.id]<i.callCount}function n(o,i,s,a){var c=true;return s!==a.length-1&&(c=i.calledBefore(a[s+1])),t(o,i)&&c?(o[i.id]+=1,true):false}function r(o){var i={},s=arguments.length>1?arguments:o;return e(s,n.bind(null,i))}return Ks=r,Ks}var Hs,Hf;function _w(){if(Hf)return Hs;Hf=1;function e(t){return t.constructor&&t.constructor.name||null}return Hs=e,Hs}var Xs={},Xf;function Cw(){return Xf||(Xf=1,function(e){e.wrap=function(t,n){var r=function(){return e.printWarning(n),t.apply(this,arguments)};return t.prototype&&(r.prototype=t.prototype),r},e.defaultMsg=function(t,n){return `${t}.${n} is deprecated and will be removed from the public API in a future version of ${t}.`},e.printWarning=function(t){typeof process=="object"&&process.emitWarning?process.emitWarning(t):console.info?console.info(t):console.log(t);};}(Xs)),Xs}var Gs,Gf;function Aw(){return Gf||(Gf=1,Gs=function(t,n){var r=true;try{t.forEach(function(){if(!n.apply(this,arguments))throw new Error});}catch{r=false;}return r}),Gs}var Ys,Yf;function Iw(){return Yf||(Yf=1,Ys=function(t){if(!t)return "";try{return t.displayName||t.name||(String(t).match(/function ([^\s(]+)/)||[])[1]}catch{return ""}}),Ys}var Zs,Zf;function Ow(){if(Zf)return Zs;Zf=1;var e=go().sort,t=go().slice;function n(o,i){var s=o.getCall(0),a=i.getCall(0),c=s&&s.callId||-1,l=a&&a.callId||-1;return c<l?-1:1}function r(o){return e(t(o),n)}return Zs=r,Zs}var Qs,Qf;function Pw(){if(Qf)return Qs;Qf=1;var e=en();return Qs=e(Function.prototype),Qs}var ea,eh;function $w(){if(eh)return ea;eh=1;var e=en();return ea=e(Map.prototype),ea}var ta,th;function Nw(){if(th)return ta;th=1;var e=en();return ta=e(Object.prototype),ta}var na,nh;function kw(){if(nh)return na;nh=1;var e=en();return na=e(Set.prototype),na}var ra,rh;function Mw(){if(rh)return ra;rh=1;var e=en();return ra=e(String.prototype),ra}var oa,oh;function Rw(){return oh||(oh=1,oa={array:go(),function:Pw(),map:$w(),object:Nw(),set:kw(),string:Mw()}),oa}var mo={exports:{}},jw=mo.exports,ih;function Fw(){return ih||(ih=1,function(e,t){(function(n,r){e.exports=r();})(jw,function(){var n=typeof Promise=="function",r=typeof self=="object"?self:ro,o=typeof Symbol<"u",i=typeof Map<"u",s=typeof Set<"u",a=typeof WeakMap<"u",c=typeof WeakSet<"u",l=typeof DataView<"u",u=o&&typeof Symbol.iterator<"u",f=o&&typeof Symbol.toStringTag<"u",p=s&&typeof Set.prototype.entries=="function",h=i&&typeof Map.prototype.entries=="function",m=p&&Object.getPrototypeOf(new Set().entries()),d=h&&Object.getPrototypeOf(new Map().entries()),b=u&&typeof Array.prototype[Symbol.iterator]=="function",v=b&&Object.getPrototypeOf([][Symbol.iterator]()),x=u&&typeof String.prototype[Symbol.iterator]=="function",A=x&&Object.getPrototypeOf(""[Symbol.iterator]()),P=8,O=-1;function R($){var I=typeof $;if(I!=="object")return I;if($===null)return "null";if($===r)return "global";if(Array.isArray($)&&(f===false||!(Symbol.toStringTag in $)))return "Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&$===window.location)return "Location";if(typeof window.document=="object"&&$===window.document)return "Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&$===window.navigator.mimeTypes)return "MimeTypeArray";if(typeof window.navigator.plugins=="object"&&$===window.navigator.plugins)return "PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&$ instanceof window.HTMLElement){if($.tagName==="BLOCKQUOTE")return "HTMLQuoteElement";if($.tagName==="TD")return "HTMLTableDataCellElement";if($.tagName==="TH")return "HTMLTableHeaderCellElement"}}var k=f&&$[Symbol.toStringTag];if(typeof k=="string")return k;var V=Object.getPrototypeOf($);return V===RegExp.prototype?"RegExp":V===Date.prototype?"Date":n&&V===Promise.prototype?"Promise":s&&V===Set.prototype?"Set":i&&V===Map.prototype?"Map":c&&V===WeakSet.prototype?"WeakSet":a&&V===WeakMap.prototype?"WeakMap":l&&V===DataView.prototype?"DataView":i&&V===d?"Map Iterator":s&&V===m?"Set Iterator":b&&V===v?"Array Iterator":x&&V===A?"String Iterator":V===null?"Object":Object.prototype.toString.call($).slice(P,O)}return R});}(mo)),mo.exports}var ia,sh;function Dw(){if(sh)return ia;sh=1;var e=Fw();return ia=function(n){return e(n).toLowerCase()},ia}var sa,ah;function Lw(){if(ah)return sa;ah=1;function e(t){return t&&t.toString?t.toString():String(t)}return sa=e,sa}var aa,ch;function qw(){return ch||(ch=1,aa={global:Sw(),calledInOrder:Tw(),className:_w(),deprecated:Cw(),every:Aw(),functionName:Iw(),orderByFirstCall:Ow(),prototypes:Rw(),typeOf:Dw(),valueToString:Lw()}),aa}var lh;function Bw(){if(lh)return Zt;lh=1;let e=qw().global,t,n;if(typeof __vitest_required__<"u"){try{t=__vitest_required__.timers;}catch{}try{n=__vitest_required__.timersPromises;}catch{}}function r(i){let s=Math.pow(2,31)-1,a=1e12,c=function(){},l=function(){return []},u={},f,p=false;i.setTimeout&&(u.setTimeout=true,f=i.setTimeout(c,0),p=typeof f=="object"),u.clearTimeout=!!i.clearTimeout,u.setInterval=!!i.setInterval,u.clearInterval=!!i.clearInterval,u.hrtime=i.process&&typeof i.process.hrtime=="function",u.hrtimeBigint=u.hrtime&&typeof i.process.hrtime.bigint=="function",u.nextTick=i.process&&typeof i.process.nextTick=="function";let h=i.process&&i.__vitest_required__&&i.__vitest_required__.util.promisify;u.performance=i.performance&&typeof i.performance.now=="function";let m=i.Performance&&(typeof i.Performance).match(/^(function|object)$/),d=i.performance&&i.performance.constructor&&i.performance.constructor.prototype;u.queueMicrotask=i.hasOwnProperty("queueMicrotask"),u.requestAnimationFrame=i.requestAnimationFrame&&typeof i.requestAnimationFrame=="function",u.cancelAnimationFrame=i.cancelAnimationFrame&&typeof i.cancelAnimationFrame=="function",u.requestIdleCallback=i.requestIdleCallback&&typeof i.requestIdleCallback=="function",u.cancelIdleCallbackPresent=i.cancelIdleCallback&&typeof i.cancelIdleCallback=="function",u.setImmediate=i.setImmediate&&typeof i.setImmediate=="function",u.clearImmediate=i.clearImmediate&&typeof i.clearImmediate=="function",u.Intl=i.Intl&&typeof i.Intl=="object",i.clearTimeout&&i.clearTimeout(f);let b=i.Date,v=u.Intl?Object.defineProperties(Object.create(null),Object.getOwnPropertyDescriptors(i.Intl)):void 0,x=a;if(b===void 0)throw new Error("The global scope doesn't have a `Date` object (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)");u.Date=true;class A{constructor(_,N,D,w){this.name=_,this.entryType=N,this.startTime=D,this.duration=w;}toJSON(){return JSON.stringify({...this})}}function P(S){return Number.isFinite?Number.isFinite(S):isFinite(S)}let O=false;function R(S,_){S.loopLimit&&_===S.loopLimit-1&&(O=true);}function $(){O=false;}function I(S){if(!S)return 0;let _=S.split(":"),N=_.length,D=N,w=0,U;if(N>3||!/^(\d\d:){0,2}\d\d?$/.test(S))throw new Error("tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits");for(;D--;){if(U=parseInt(_[D],10),U>=60)throw new Error(`Invalid time ${S}`);w+=U*Math.pow(60,N-D-1);}return w*1e3}function k(S){let N=S*1e6%1e6,D=N<0?N+1e6:N;return Math.floor(D)}function V(S){if(!S)return 0;if(typeof S.getTime=="function")return S.getTime();if(typeof S=="number")return S;throw new TypeError("now should be milliseconds since UNIX epoch")}function C(S,_,N){return N&&N.callAt>=S&&N.callAt<=_}function J(S,_){let N=new Error(`Aborting after running ${S.loopLimit} timers, assuming an infinite loop!`);if(!_.error)return N;let D=/target\.*[<|(|[].*?[>|\]|)]\s*/,w=new RegExp(String(Object.keys(S).join("|")));p&&(w=new RegExp(`\\s+at (Object\\.)?(?:${Object.keys(S).join("|")})\\s+`));let U=-1;_.error.stack.split(`
153
+ `).some(function(H,G){return H.match(D)?(U=G,true):H.match(w)?(U=G,false):U>=0});let ee=`${N}
154
+ ${_.type||"Microtask"} - ${_.func.name||"anonymous"}
155
+ ${_.error.stack.split(`
156
+ `).slice(U+1).join(`
157
+ `)}`;try{Object.defineProperty(N,"stack",{value:ee});}catch{}return N}function ce(){class S extends b{constructor(D,w,U,ee,H,G,B){arguments.length===0?super(S.clock.now):super(...arguments),Object.defineProperty(this,"constructor",{value:b,enumerable:false});}static[Symbol.hasInstance](D){return D instanceof b}}return S.isFake=true,b.now&&(S.now=function(){return S.clock.now}),b.toSource&&(S.toSource=function(){return b.toSource()}),S.toString=function(){return b.toString()},new Proxy(S,{apply(){if(this instanceof S)throw new TypeError("A Proxy should only capture `new` calls with the `construct` handler. This is not supposed to be possible, so check the logic.");return new b(S.clock.now).toString()}})}function z(){let S={};return Object.getOwnPropertyNames(v).forEach(_=>S[_]=v[_]),S.DateTimeFormat=function(..._){let N=new v.DateTimeFormat(..._),D={};return ["formatRange","formatRangeToParts","resolvedOptions"].forEach(w=>{D[w]=N[w].bind(N);}),["format","formatToParts"].forEach(w=>{D[w]=function(U){return N[w](U||S.clock.now)};}),D},S.DateTimeFormat.prototype=Object.create(v.DateTimeFormat.prototype),S.DateTimeFormat.supportedLocalesOf=v.DateTimeFormat.supportedLocalesOf,S}function Y(S,_){S.jobs||(S.jobs=[]),S.jobs.push(_);}function M(S){if(S.jobs){for(let _=0;_<S.jobs.length;_++){let N=S.jobs[_];if(N.func.apply(null,N.args),R(S,_),S.loopLimit&&_>S.loopLimit)throw J(S,N)}$(),S.jobs=[];}}function X(S,_){if(_.func===void 0)throw new Error("Callback must be provided to timer calls");if(p&&typeof _.func!="function")throw new TypeError(`[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${_.func} of type ${typeof _.func}`);if(O&&(_.error=new Error),_.type=_.immediate?"Immediate":"Timeout",_.hasOwnProperty("delay")&&(typeof _.delay!="number"&&(_.delay=parseInt(_.delay,10)),P(_.delay)||(_.delay=0),_.delay=_.delay>s?1:_.delay,_.delay=Math.max(0,_.delay)),_.hasOwnProperty("interval")&&(_.type="Interval",_.interval=_.interval>s?1:_.interval),_.hasOwnProperty("animation")&&(_.type="AnimationFrame",_.animation=true),_.hasOwnProperty("idleCallback")&&(_.type="IdleCallback",_.idleCallback=true),S.timers||(S.timers={}),_.id=x++,_.createdAt=S.now,_.callAt=S.now+(parseInt(_.delay)||(S.duringTick?1:0)),S.timers[_.id]=_,p){let N={refed:true,ref:function(){return this.refed=true,N},unref:function(){return this.refed=false,N},hasRef:function(){return this.refed},refresh:function(){return _.callAt=S.now+(parseInt(_.delay)||(S.duringTick?1:0)),S.timers[_.id]=_,N},[Symbol.toPrimitive]:function(){return _.id}};return N}return _.id}function F(S,_){if(S.callAt<_.callAt)return -1;if(S.callAt>_.callAt)return 1;if(S.immediate&&!_.immediate)return -1;if(!S.immediate&&_.immediate)return 1;if(S.createdAt<_.createdAt)return -1;if(S.createdAt>_.createdAt)return 1;if(S.id<_.id)return -1;if(S.id>_.id)return 1}function he(S,_,N){let D=S.timers,w=null,U,ee;for(U in D)D.hasOwnProperty(U)&&(ee=C(_,N,D[U]),ee&&(!w||F(w,D[U])===1)&&(w=D[U]));return w}function ve(S){let _=S.timers,N=null,D;for(D in _)_.hasOwnProperty(D)&&(!N||F(N,_[D])===1)&&(N=_[D]);return N}function Fe(S){let _=S.timers,N=null,D;for(D in _)_.hasOwnProperty(D)&&(!N||F(N,_[D])===-1)&&(N=_[D]);return N}function Te(S,_){if(typeof _.interval=="number"?S.timers[_.id].callAt+=_.interval:delete S.timers[_.id],typeof _.func=="function")_.func.apply(null,_.args);else {let N=eval;(function(){N(_.func);})();}}function Ae(S){return S==="IdleCallback"||S==="AnimationFrame"?`cancel${S}`:`clear${S}`}function Je(S){return S==="IdleCallback"||S==="AnimationFrame"?`request${S}`:`set${S}`}function Me(){let S=0;return function(_){!S++&&console.warn(_);}}let Ie=Me();function Oe(S,_,N){if(!_)return;S.timers||(S.timers={});let D=Number(_);if(Number.isNaN(D)||D<a){let w=Ae(N);if(S.shouldClearNativeTimers===true){let U=S[`_${w}`];return typeof U=="function"?U(_):void 0}Ie(`FakeTimers: ${w} was invoked to clear a native timer instead of one created by this library.
158
+ To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);}if(S.timers.hasOwnProperty(D)){let w=S.timers[D];if(w.type===N||w.type==="Timeout"&&N==="Interval"||w.type==="Interval"&&N==="Timeout")delete S.timers[D];else {let U=Ae(N),ee=Je(w.type);throw new Error(`Cannot clear timer: timer created with ${ee}() but cleared with ${U}()`)}}}function ut(S,_){let N,D,w,U="_hrtime",ee="_nextTick";for(D=0,w=S.methods.length;D<w;D++){if(N=S.methods[D],N==="hrtime"&&i.process)i.process.hrtime=S[U];else if(N==="nextTick"&&i.process)i.process.nextTick=S[ee];else if(N==="performance"){let H=Object.getOwnPropertyDescriptor(S,`_${N}`);H&&H.get&&!H.set?Object.defineProperty(i,N,H):H.configurable&&(i[N]=S[`_${N}`]);}else if(i[N]&&i[N].hadOwnProperty)i[N]=S[`_${N}`];else try{delete i[N];}catch{}if(S.timersModuleMethods!==void 0)for(let H=0;H<S.timersModuleMethods.length;H++){let G=S.timersModuleMethods[H];t[G.methodName]=G.original;}if(S.timersPromisesModuleMethods!==void 0)for(let H=0;H<S.timersPromisesModuleMethods.length;H++){let G=S.timersPromisesModuleMethods[H];n[G.methodName]=G.original;}}_.shouldAdvanceTime===true&&i.clearInterval(S.attachedInterval),S.methods=[];for(let[H,G]of S.abortListenerMap.entries())G.removeEventListener("abort",H),S.abortListenerMap.delete(H);return S.timers?Object.keys(S.timers).map(function(G){return S.timers[G]}):[]}function qe(S,_,N){if(N[_].hadOwnProperty=Object.prototype.hasOwnProperty.call(S,_),N[`_${_}`]=S[_],_==="Date")S[_]=N[_];else if(_==="Intl")S[_]=N[_];else if(_==="performance"){let D=Object.getOwnPropertyDescriptor(S,_);if(D&&D.get&&!D.set){Object.defineProperty(N,`_${_}`,D);let w=Object.getOwnPropertyDescriptor(N,_);Object.defineProperty(S,_,w);}else S[_]=N[_];}else S[_]=function(){return N[_].apply(N,arguments)},Object.defineProperties(S[_],Object.getOwnPropertyDescriptors(N[_]));S[_].clock=N;}function Tt(S,_){S.tick(_);}let Ee={setTimeout:i.setTimeout,clearTimeout:i.clearTimeout,setInterval:i.setInterval,clearInterval:i.clearInterval,Date:i.Date};u.setImmediate&&(Ee.setImmediate=i.setImmediate),u.clearImmediate&&(Ee.clearImmediate=i.clearImmediate),u.hrtime&&(Ee.hrtime=i.process.hrtime),u.nextTick&&(Ee.nextTick=i.process.nextTick),u.performance&&(Ee.performance=i.performance),u.requestAnimationFrame&&(Ee.requestAnimationFrame=i.requestAnimationFrame),u.queueMicrotask&&(Ee.queueMicrotask=i.queueMicrotask),u.cancelAnimationFrame&&(Ee.cancelAnimationFrame=i.cancelAnimationFrame),u.requestIdleCallback&&(Ee.requestIdleCallback=i.requestIdleCallback),u.cancelIdleCallback&&(Ee.cancelIdleCallback=i.cancelIdleCallback),u.Intl&&(Ee.Intl=v);let Ve=i.setImmediate||i.setTimeout;function Rn(S,_){S=Math.floor(V(S)),_=_||1e3;let N=0,D=[0,0],w={now:S,Date:ce(),loopLimit:_};w.Date.clock=w;function U(){return 16-(w.now-S)%16}function ee(B){let j=w.now-D[0]-S,L=Math.floor(j/1e3),W=(j-L*1e3)*1e6+N-D[1];if(Array.isArray(B)){if(B[1]>1e9)throw new TypeError("Number of nanoseconds can't exceed a billion");let oe=B[0],fe=W-B[1],ot=L-oe;return fe<0&&(fe+=1e9,ot-=1),[ot,fe]}return [L,W]}function H(){let B=ee();return B[0]*1e3+B[1]/1e6}u.hrtimeBigint&&(ee.bigint=function(){let B=ee();return BigInt(B[0])*BigInt(1e9)+BigInt(B[1])}),u.Intl&&(w.Intl=z(),w.Intl.clock=w),w.requestIdleCallback=function(j,L){let W=0;w.countTimers()>0&&(W=50);let oe=X(w,{func:j,args:Array.prototype.slice.call(arguments,2),delay:typeof L>"u"?W:Math.min(L,W),idleCallback:true});return Number(oe)},w.cancelIdleCallback=function(j){return Oe(w,j,"IdleCallback")},w.setTimeout=function(j,L){return X(w,{func:j,args:Array.prototype.slice.call(arguments,2),delay:L})},typeof i.Promise<"u"&&h&&(w.setTimeout[h.custom]=function(j,L){return new i.Promise(function(oe){X(w,{func:oe,args:[L],delay:j});})}),w.clearTimeout=function(j){return Oe(w,j,"Timeout")},w.nextTick=function(j){return Y(w,{func:j,args:Array.prototype.slice.call(arguments,1),error:O?new Error:null})},w.queueMicrotask=function(j){return w.nextTick(j)},w.setInterval=function(j,L){return L=parseInt(L,10),X(w,{func:j,args:Array.prototype.slice.call(arguments,2),delay:L,interval:L})},w.clearInterval=function(j){return Oe(w,j,"Interval")},u.setImmediate&&(w.setImmediate=function(j){return X(w,{func:j,args:Array.prototype.slice.call(arguments,1),immediate:true})},typeof i.Promise<"u"&&h&&(w.setImmediate[h.custom]=function(j){return new i.Promise(function(W){X(w,{func:W,args:[j],immediate:true});})}),w.clearImmediate=function(j){return Oe(w,j,"Immediate")}),w.countTimers=function(){return Object.keys(w.timers||{}).length+(w.jobs||[]).length},w.requestAnimationFrame=function(j){let L=X(w,{func:j,delay:U(),get args(){return [H()]},animation:true});return Number(L)},w.cancelAnimationFrame=function(j){return Oe(w,j,"AnimationFrame")},w.runMicrotasks=function(){M(w);};function G(B,j,L,W){let oe=typeof B=="number"?B:I(B),fe=Math.floor(oe),ot=k(oe),Ke=N+ot,Se=w.now+fe;if(oe<0)throw new TypeError("Negative ticks are not supported");Ke>=1e6&&(Se+=1,Ke-=1e6),N=Ke;let He=w.now,_t=w.now,Xe,ft,De,ha,So,xo;w.duringTick=true,De=w.now,M(w),De!==w.now&&(He+=w.now-De,Se+=w.now-De);function da(){for(Xe=he(w,He,Se);Xe&&He<=Se;){if(w.timers[Xe.id]){He=Xe.callAt,w.now=Xe.callAt,De=w.now;try{M(w),Te(w,Xe);}catch(nn){ft=ft||nn;}if(j){Ve(ha);return}So();}xo();}if(De=w.now,M(w),De!==w.now&&(He+=w.now-De,Se+=w.now-De),w.duringTick=false,Xe=he(w,He,Se),Xe)try{w.tick(Se-w.now);}catch(nn){ft=ft||nn;}else w.now=Se,N=Ke;if(ft)throw ft;if(j)L(w.now);else return w.now}return ha=j&&function(){try{So(),xo(),da();}catch(nn){W(nn);}},So=function(){De!==w.now&&(He+=w.now-De,Se+=w.now-De,_t+=w.now-De);},xo=function(){Xe=he(w,_t,Se),_t=He;},da()}return w.tick=function(j){return G(j,false)},typeof i.Promise<"u"&&(w.tickAsync=function(j){return new i.Promise(function(L,W){Ve(function(){try{G(j,!0,L,W);}catch(oe){W(oe);}});})}),w.next=function(){M(w);let j=ve(w);if(!j)return w.now;w.duringTick=true;try{return w.now=j.callAt,Te(w,j),M(w),w.now}finally{w.duringTick=false;}},typeof i.Promise<"u"&&(w.nextAsync=function(){return new i.Promise(function(j,L){Ve(function(){try{let W=ve(w);if(!W){j(w.now);return}let oe;w.duringTick=!0,w.now=W.callAt;try{Te(w,W);}catch(fe){oe=fe;}w.duringTick=!1,Ve(function(){oe?L(oe):j(w.now);});}catch(W){L(W);}});})}),w.runAll=function(){let j,L;for(M(w),L=0;L<w.loopLimit;L++){if(!w.timers||(j=Object.keys(w.timers).length,j===0))return $(),w.now;w.next(),R(w,L);}let W=ve(w);throw J(w,W)},w.runToFrame=function(){return w.tick(U())},typeof i.Promise<"u"&&(w.runAllAsync=function(){return new i.Promise(function(j,L){let W=0;function oe(){Ve(function(){try{M(w);let fe;if(W<w.loopLimit){if(!w.timers){$(),j(w.now);return}if(fe=Object.keys(w.timers).length,fe===0){$(),j(w.now);return}w.next(),W++,oe(),R(w,W);return}let ot=ve(w);L(J(w,ot));}catch(fe){L(fe);}});}oe();})}),w.runToLast=function(){let j=Fe(w);return j?w.tick(j.callAt-w.now):(M(w),w.now)},typeof i.Promise<"u"&&(w.runToLastAsync=function(){return new i.Promise(function(j,L){Ve(function(){try{let W=Fe(w);W||(M(w),j(w.now)),j(w.tickAsync(W.callAt-w.now));}catch(W){L(W);}});})}),w.reset=function(){N=0,w.timers={},w.jobs=[],w.now=S;},w.setSystemTime=function(j){let L=V(j),W=L-w.now,oe,fe;D[0]=D[0]+W,D[1]=D[1]+N,w.now=L,N=0;for(oe in w.timers)w.timers.hasOwnProperty(oe)&&(fe=w.timers[oe],fe.createdAt+=W,fe.callAt+=W);},w.jump=function(j){let L=typeof j=="number"?j:I(j),W=Math.floor(L);for(let oe of Object.values(w.timers))w.now+W>oe.callAt&&(oe.callAt=w.now+W);w.tick(W);},u.performance&&(w.performance=Object.create(null),w.performance.now=H),u.hrtime&&(w.hrtime=ee),w}function q(S){if(arguments.length>1||S instanceof Date||Array.isArray(S)||typeof S=="number")throw new TypeError(`FakeTimers.install called with ${String(S)} install requires an object parameter`);if(i.Date.isFake===true)throw new TypeError("Can't install fake timers twice on the same global object.");if(S=typeof S<"u"?S:{},S.shouldAdvanceTime=S.shouldAdvanceTime||false,S.advanceTimeDelta=S.advanceTimeDelta||20,S.shouldClearNativeTimers=S.shouldClearNativeTimers||false,S.target)throw new TypeError("config.target is no longer supported. Use `withGlobal(target)` instead.");function _(U){if(!S.ignoreMissingTimers)throw new ReferenceError(`non-existent timers and/or objects cannot be faked: '${U}'`)}let N,D,w=Rn(S.now,S.loopLimit);if(w.shouldClearNativeTimers=S.shouldClearNativeTimers,w.uninstall=function(){return ut(w,S)},w.abortListenerMap=new Map,w.methods=S.toFake||[],w.methods.length===0&&(w.methods=Object.keys(Ee)),S.shouldAdvanceTime===true){let U=Tt.bind(null,w,S.advanceTimeDelta),ee=i.setInterval(U,S.advanceTimeDelta);w.attachedInterval=ee;}if(w.methods.includes("performance")){let U=(()=>{if(d)return i.performance.constructor.prototype;if(m)return i.Performance.prototype})();if(U)Object.getOwnPropertyNames(U).forEach(function(ee){ee!=="now"&&(w.performance[ee]=ee.indexOf("getEntries")===0?l:c);}),w.performance.mark=ee=>new A(ee,"mark",0,0),w.performance.measure=ee=>new A(ee,"measure",0,100),w.performance.timeOrigin=V(S.now);else if((S.toFake||[]).includes("performance"))return _("performance")}for(i===e&&t&&(w.timersModuleMethods=[]),i===e&&n&&(w.timersPromisesModuleMethods=[]),N=0,D=w.methods.length;N<D;N++){let U=w.methods[N];if(!u[U]){_(U);continue}if(U==="hrtime"?i.process&&typeof i.process.hrtime=="function"&&qe(i.process,U,w):U==="nextTick"?i.process&&typeof i.process.nextTick=="function"&&qe(i.process,U,w):qe(i,U,w),w.timersModuleMethods!==void 0&&t[U]){let ee=t[U];w.timersModuleMethods.push({methodName:U,original:ee}),t[U]=i[U];}w.timersPromisesModuleMethods!==void 0&&(U==="setTimeout"?(w.timersPromisesModuleMethods.push({methodName:"setTimeout",original:n.setTimeout}),n.setTimeout=(ee,H,G={})=>new Promise((B,j)=>{let L=()=>{G.signal.removeEventListener("abort",L),w.abortListenerMap.delete(L),w.clearTimeout(W),j(G.signal.reason);},W=w.setTimeout(()=>{G.signal&&(G.signal.removeEventListener("abort",L),w.abortListenerMap.delete(L)),B(H);},ee);G.signal&&(G.signal.aborted?L():(G.signal.addEventListener("abort",L),w.abortListenerMap.set(L,G.signal)));})):U==="setImmediate"?(w.timersPromisesModuleMethods.push({methodName:"setImmediate",original:n.setImmediate}),n.setImmediate=(ee,H={})=>new Promise((G,B)=>{let j=()=>{H.signal.removeEventListener("abort",j),w.abortListenerMap.delete(j),w.clearImmediate(L),B(H.signal.reason);},L=w.setImmediate(()=>{H.signal&&(H.signal.removeEventListener("abort",j),w.abortListenerMap.delete(j)),G(ee);});H.signal&&(H.signal.aborted?j():(H.signal.addEventListener("abort",j),w.abortListenerMap.set(j,H.signal)));})):U==="setInterval"&&(w.timersPromisesModuleMethods.push({methodName:"setInterval",original:n.setInterval}),n.setInterval=(ee,H,G={})=>({[Symbol.asyncIterator]:()=>{let B=()=>{let Se,He,_t=new Promise((Xe,ft)=>{Se=Xe,He=ft;});return _t.resolve=Se,_t.reject=He,_t},j=false,L=false,W,oe=0,fe=[],ot=w.setInterval(()=>{fe.length>0?fe.shift().resolve():oe++;},ee),Ke=()=>{G.signal.removeEventListener("abort",Ke),w.abortListenerMap.delete(Ke),w.clearInterval(ot),j=true;for(let Se of fe)Se.resolve();};return G.signal&&(G.signal.aborted?j=true:(G.signal.addEventListener("abort",Ke),w.abortListenerMap.set(Ke,G.signal))),{next:async()=>{if(G.signal?.aborted&&!L)throw L=true,G.signal.reason;if(j)return {done:true,value:void 0};if(oe>0)return oe--,{done:false,value:H};let Se=B();if(fe.push(Se),await Se,W&&fe.length===0&&W.resolve(),G.signal?.aborted&&!L)throw L=true,G.signal.reason;return j?{done:true,value:void 0}:{done:false,value:H}},return:async()=>j?{done:true,value:void 0}:(fe.length>0&&(W=B(),await W),w.clearInterval(ot),j=true,G.signal&&(G.signal.removeEventListener("abort",Ke),w.abortListenerMap.delete(Ke)),{done:true,value:void 0})}}})));}return w}return {timers:Ee,createClock:Rn,install:q,withGlobal:r}}let o=r(e);return Zt.timers=o.timers,Zt.createClock=o.createClock,Zt.install=o.install,Zt.withGlobal=r,Zt}var Uw=Bw(),ca=class{_global;_clock;_fakingTime;_fakingDate;_fakeTimers;_userConfig;_now=ze.now;constructor({global:t,config:n}){this._userConfig=n,this._fakingDate=null,this._fakingTime=false,this._fakeTimers=Uw.withGlobal(t),this._global=t;}clearAllTimers(){this._fakingTime&&this._clock.reset();}dispose(){this.useRealTimers();}runAllTimers(){this._checkFakeTimers()&&this._clock.runAll();}async runAllTimersAsync(){this._checkFakeTimers()&&await this._clock.runAllAsync();}runOnlyPendingTimers(){this._checkFakeTimers()&&this._clock.runToLast();}async runOnlyPendingTimersAsync(){this._checkFakeTimers()&&await this._clock.runToLastAsync();}advanceTimersToNextTimer(t=1){if(this._checkFakeTimers())for(let n=t;n>0&&(this._clock.next(),this._clock.tick(0),this._clock.countTimers()!==0);n--);}async advanceTimersToNextTimerAsync(t=1){if(this._checkFakeTimers())for(let n=t;n>0&&(await this._clock.nextAsync(),this._clock.tick(0),this._clock.countTimers()!==0);n--);}advanceTimersByTime(t){this._checkFakeTimers()&&this._clock.tick(t);}async advanceTimersByTimeAsync(t){this._checkFakeTimers()&&await this._clock.tickAsync(t);}advanceTimersToNextFrame(){this._checkFakeTimers()&&this._clock.runToFrame();}runAllTicks(){this._checkFakeTimers()&&this._clock.runMicrotasks();}useRealTimers(){this._fakingDate&&(Lf(),this._fakingDate=null),this._fakingTime&&(this._clock.uninstall(),this._fakingTime=false);}useFakeTimers(){if(this._fakingDate)throw new Error('"setSystemTime" was called already and date was mocked. Reset timers using `vi.useRealTimers()` if you want to use fake timers again.');if(!this._fakingTime){let t=Object.keys(this._fakeTimers.timers).filter(n=>n!=="nextTick"&&n!=="queueMicrotask");if(this._userConfig?.toFake?.includes("nextTick")&&Ts())throw new Error("process.nextTick cannot be mocked inside child_process");this._clock=this._fakeTimers.install({now:Date.now(),...this._userConfig,toFake:this._userConfig?.toFake||t,ignoreMissingTimers:true}),this._fakingTime=true;}}reset(){if(this._checkFakeTimers()){let{now:t}=this._clock;this._clock.reset(),this._clock.setSystemTime(t);}}setSystemTime(t){let n=typeof t>"u"||t instanceof Date?t:new Date(t);this._fakingTime?this._clock.setSystemTime(n):(this._fakingDate=n??new Date(this.getRealSystemTime()),Df(this._fakingDate));}getMockedSystemTime(){return this._fakingTime?new Date(this._clock.now):this._fakingDate}getRealSystemTime(){return this._now()}getTimerCount(){return this._checkFakeTimers()?this._clock.countTimers():0}configure(t){this._userConfig=t;}isFakeTimers(){return this._fakingTime}_checkFakeTimers(){if(!this._fakingTime)throw new Error('Timers are not mocked. Try calling "vi.useFakeTimers()" first.');return this._fakingTime}};function fh(e,t){return t.stack!==void 0&&(e.stack=t.stack.replace(t.message,e.message)),e}function zw(e,t={}){let{setTimeout:n,setInterval:r,clearTimeout:o,clearInterval:i}=ct(),{interval:s=50,timeout:a=1e3}=typeof t=="number"?{timeout:t}:t,c=new Error("STACK_TRACE_ERROR");return new Promise((l,u)=>{let f,p="idle",h,m,d=x=>{h&&o(h),m&&i(m),l(x);},b=()=>{m&&i(m);let x=f;x||(x=fh(new Error("Timed out in waitFor!"),c)),u(x);},v=()=>{if(kn.isFakeTimers()&&kn.advanceTimersByTime(s),p!=="pending")try{let x=e();if(x!==null&&typeof x=="object"&&typeof x.then=="function"){let A=x;p="pending",A.then(P=>{p="resolved",d(P);},P=>{p="rejected",f=P;});}else return d(x),!0}catch(x){f=x;}};v()!==true&&(h=n(b,a),m=r(v,s));})}function Ww(e,t={}){let{setTimeout:n,setInterval:r,clearTimeout:o,clearInterval:i}=ct(),{interval:s=50,timeout:a=1e3}=typeof t=="number"?{timeout:t}:t,c=new Error("STACK_TRACE_ERROR");return new Promise((l,u)=>{let f="idle",p,h,m=v=>{h&&i(h),v||(v=fh(new Error("Timed out in waitUntil!"),c)),u(v);},d=v=>{if(v)return p&&o(p),h&&i(h),l(v),true},b=()=>{if(kn.isFakeTimers()&&kn.advanceTimersByTime(s),f!=="pending")try{let v=e();if(v!==null&&typeof v=="object"&&typeof v.then=="function"){let x=v;f="pending",x.then(A=>{f="resolved",d(A);},A=>{f="rejected",m(A);});}else return d(v)}catch(v){m(v);}};b()!==true&&(p=n(m,a),h=r(b,s));})}function Jw(){let e=null,t=Gt(),n,r=()=>n||=new ca({global:globalThis,config:t.config.fakeTimers}),o=new Map,i=new Map,s=["PROD","DEV","SSR"],a={useFakeTimers(c){if(Ts()&&(c?.toFake?.includes("nextTick")||t.config?.fakeTimers?.toFake?.includes("nextTick")))throw new Error('vi.useFakeTimers({ toFake: ["nextTick"] }) is not supported in node:child_process. Use --pool=threads if mocking nextTick is required.');return c?r().configure({...t.config.fakeTimers,...c}):r().configure(t.config.fakeTimers),r().useFakeTimers(),a},isFakeTimers(){return r().isFakeTimers()},useRealTimers(){return r().useRealTimers(),a},runOnlyPendingTimers(){return r().runOnlyPendingTimers(),a},async runOnlyPendingTimersAsync(){return await r().runOnlyPendingTimersAsync(),a},runAllTimers(){return r().runAllTimers(),a},async runAllTimersAsync(){return await r().runAllTimersAsync(),a},runAllTicks(){return r().runAllTicks(),a},advanceTimersByTime(c){return r().advanceTimersByTime(c),a},async advanceTimersByTimeAsync(c){return await r().advanceTimersByTimeAsync(c),a},advanceTimersToNextTimer(){return r().advanceTimersToNextTimer(),a},async advanceTimersToNextTimerAsync(){return await r().advanceTimersToNextTimerAsync(),a},advanceTimersToNextFrame(){return r().advanceTimersToNextFrame(),a},getTimerCount(){return r().getTimerCount()},setSystemTime(c){return r().setSystemTime(c),a},getMockedSystemTime(){return r().getMockedSystemTime()},getRealSystemTime(){return r().getRealSystemTime()},clearAllTimers(){return r().clearAllTimers(),a},spyOn:zc,fn:Jc,waitFor:zw,waitUntil:Ww,hoisted(c){return Ne(c,'"vi.hoisted" factory',["function"]),c()},mock(c,l){if(typeof c!="string")throw new TypeError(`vi.mock() expects a string path, but received a ${typeof c}`);let u=Qt("mock");We().queueMock(c,u,typeof l=="function"?()=>l(()=>We().importActual(c,u,We().getMockContext().callstack)):l);},unmock(c){if(typeof c!="string")throw new TypeError(`vi.unmock() expects a string path, but received a ${typeof c}`);We().queueUnmock(c,Qt("unmock"));},doMock(c,l){if(typeof c!="string")throw new TypeError(`vi.doMock() expects a string path, but received a ${typeof c}`);let u=Qt("doMock");We().queueMock(c,u,typeof l=="function"?()=>l(()=>We().importActual(c,u,We().getMockContext().callstack)):l);},doUnmock(c){if(typeof c!="string")throw new TypeError(`vi.doUnmock() expects a string path, but received a ${typeof c}`);We().queueUnmock(c,Qt("doUnmock"));},async importActual(c){return We().importActual(c,Qt("importActual"),We().getMockContext().callstack)},async importMock(c){return We().importMock(c,Qt("importMock"))},mockObject(c){return We().mockObject({value:c}).value},mocked(c,l={}){return c},isMockFunction(c){return $t(c)},clearAllMocks(){return [...cn].reverse().forEach(c=>c.mockClear()),a},resetAllMocks(){return [...cn].reverse().forEach(c=>c.mockReset()),a},restoreAllMocks(){return [...cn].reverse().forEach(c=>c.mockRestore()),a},stubGlobal(c,l){return o.has(c)||o.set(c,Object.getOwnPropertyDescriptor(globalThis,c)),Object.defineProperty(globalThis,c,{value:l,writable:true,configurable:true,enumerable:true}),a},stubEnv(c,l){return i.has(c)||i.set(c,process.env[c]),s.includes(c)?process.env[c]=l?"1":"":l===void 0?delete process.env[c]:process.env[c]=String(l),a},unstubAllGlobals(){return o.forEach((c,l)=>{c?Object.defineProperty(globalThis,l,c):Reflect.deleteProperty(globalThis,l);}),o.clear(),a},unstubAllEnvs(){return i.forEach((c,l)=>{c===void 0?delete process.env[l]:process.env[l]=c;}),i.clear(),a},resetModules(){return Zu(t.moduleCache),a},async dynamicImportSettled(){return _s()},setConfig(c){e||(e={...t.config}),Object.assign(t.config,c);},resetConfig(){e&&Object.assign(t.config,e);}};return a}var hh=Jw(),kn=hh;function We(){return typeof __vitest_mocker__<"u"?__vitest_mocker__:new Proxy({},{get(e,t){throw new Error(`Vitest mocker was not initialized in this environment. vi.${String(t)}() is forbidden.`)}})}function Qt(e){let n=Ko({stackTraceLimit:5}).split(`
159
+ `),r=n.findIndex(i=>i.includes(` at Object.${e}`)||i.includes(`${e}@`));return vn(n[r+1])?.file||""}ma(Eh());function Sh(e,t){return e.query(graphql.HasProcessedKnownTransactionQuery,{request:t})}function xh(e,t){return e.query(graphql.ReserveQuery,{request:t})}var Th={name:"production",backend:"https://api.v3.aave.com/graphql",indexingTimeout:6e4,pollingInterval:100},_h={name:"staging",backend:"https://api.v3.staging.aave.com/graphql",indexingTimeout:6e4,pollingInterval:100},Ch={name:"local",backend:"http://localhost:3011/graphql",indexingTimeout:6e4,pollingInterval:1e3};function Ah(e){return {environment:e.environment??Th,headers:e.headers,cache:e.cache??false,debug:e.debug??false,fragments:e.fragments??[]}}function la(e){return e.operation!==null}var wo=class e extends core.GqlClient{static create(t){return new e(Ah(t??{}))}waitForSupportedTransaction=t=>la(t)?this.waitForTransaction(t):types.okAsync(t.txHash);waitForTransaction=t=>(types.invariant(la(t),"Received a transaction result for an untracked operation. Make sure you're following the instructions in the docs."),types.ResultAsync.fromPromise(this.pollTransactionStatus(t),n=>n instanceof core.TimeoutError||n instanceof core.UnexpectedError?n:core.UnexpectedError.from(n)));async pollTransactionStatus(t){let n=Date.now();for(;Date.now()-n<this.context.environment.indexingTimeout;){if(await Sh(this,t).match(o=>o,o=>{throw o}))return t.txHash;await core.delay(this.context.environment.pollingInterval);}throw core.TimeoutError.from(`Timeout waiting for transaction ${t.txHash} to be processed.`)}};var dv=undefined.ENVIRONMENT==="local"?Ch:_h,fa=types.chainId(Number.parseInt(undefined.ETHEREUM_TENDERLY_FORK_ID)),Rx=types.evmAddress("0x40D16FC0246aD3160Ccc09B8D0D3A2cD28aE6C2f"),jx=types.evmAddress("0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"),Fx=types.evmAddress("0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"),Dx=types.evmAddress("0x6B175474E89094C44Da98b954EedeAC495271d0F"),pv=types.evmAddress("0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2"),Lx=types.evmAddress("0x1a88Df1cFe15Af22B3c4c783D4e6F7F9e0C1885d"),qx=1,kh=undefined.ETHEREUM_TENDERLY_PUBLIC_RPC,vo=undefined.ETHEREUM_TENDERLY_ADMIN_RPC,Mh=viem.defineChain({id:types.chainId(99999999),name:"Ethereum Fork",network:"ethereum-fork",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:[kh]}},blockExplorers:{default:{name:"Ethereum Fork Explorer",url:undefined.ETHEREUM_TENDERLY_BLOCKEXPLORER}}}),mv=wo.create({environment:dv,headers:{"x-e2e-tests":undefined.API_X_E2E_TESTS_HEADER}});function Bx(e){let t=e??accounts.generatePrivateKey();return viem.createWalletClient({account:accounts.privateKeyToAccount(t),chain:Mh,transport:viem.http()})}function Ux(e,t=types.bigDecimal("1.0")){let n=viem.createPublicClient({chain:{id:fa,name:"Tenderly Fork",network:"tenderly-fork",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:[vo]}}},transport:viem.http(vo)}),o=`0x${viem.parseEther(t).toString(16)}`;return types.ResultAsync.fromPromise(n.request({method:"tenderly_setBalance",params:[[e],o]}).then(async i=>(await Rh(500),i)),i=>core.UnexpectedError.from(i))}function zx(e,t,n,r=18){let o=viem.createPublicClient({chain:{id:fa,name:"Tenderly Fork",network:"tenderly-fork",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:[vo]}}},transport:viem.http(vo)}),s=`0x${viem.parseUnits(n,r).toString(16)}`;return types.ResultAsync.fromPromise(o.request({method:"tenderly_setErc20Balance",params:[e,t,s]}).then(async a=>(await Rh(500),a)),a=>core.UnexpectedError.from(a))}async function Wx(e,t){let n=await xh(mv,{chainId:fa,market:pv,underlyingToken:e,user:t}).map(types.nonNullable);return types.assertOk(n),n.value}var gv={[core.GraphQLErrorCode.UNAUTHENTICATED]:"Unauthenticated - Authentication is required to access '<operation>'",[core.GraphQLErrorCode.FORBIDDEN]:"Forbidden - You are not authorized to access '<operation>'",[core.GraphQLErrorCode.INTERNAL_SERVER_ERROR]:"Internal server error - Please try again later",[core.GraphQLErrorCode.BAD_USER_INPUT]:"Bad user input - Please check the input and try again",[core.GraphQLErrorCode.BAD_REQUEST]:"Bad request - Please check the request and try again"};function Jx(e){return {message:gv[e],locations:[],path:[],extensions:{code:e}}}function Vx(e,t){yo(graphql$1.validate(testUtils.schema,e,t)).toEqual([]);}function Rh(e){return new Promise(t=>setTimeout(t,e))}async function Kx(e,t){let n=viem.createPublicClient({chain:Mh,transport:viem.http(kh)}),[r,o]=await Promise.all([n.readContract({address:t,abi:[{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"balanceOf",args:[e]}),n.readContract({address:t,abi:[{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"}],functionName:"decimals"})]);return Number.parseFloat((Number(r)/10**Number(o)).toFixed(o))}/*! Bundled license information:
160
+
161
+ @vitest/pretty-format/dist/index.js:
162
+ (**
163
+ * @license React
164
+ * react-is.production.js
165
+ *
166
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
167
+ *
168
+ * This source code is licensed under the MIT license found in the
169
+ * LICENSE file in the root directory of this source tree.
170
+ *)
171
+ (**
172
+ * @license React
173
+ * react-is.development.js
174
+ *
175
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
176
+ *
177
+ * This source code is licensed under the MIT license found in the
178
+ * LICENSE file in the root directory of this source tree.
179
+ *)
180
+ (**
181
+ * @license React
182
+ * react-is.production.min.js
183
+ *
184
+ * Copyright (c) Facebook, Inc. and its affiliates.
185
+ *
186
+ * This source code is licensed under the MIT license found in the
187
+ * LICENSE file in the root directory of this source tree.
188
+ *)
189
+ (**
190
+ * @license React
191
+ * react-is.development.js
192
+ *
193
+ * Copyright (c) Facebook, Inc. and its affiliates.
194
+ *
195
+ * This source code is licensed under the MIT license found in the
196
+ * LICENSE file in the root directory of this source tree.
197
+ *)
198
+
199
+ chai/chai.js:
200
+ (*!
201
+ * Chai - flag utility
202
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
203
+ * MIT Licensed
204
+ *)
205
+ (*!
206
+ * Chai - test utility
207
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
208
+ * MIT Licensed
209
+ *)
210
+ (*!
211
+ * Chai - expectTypes utility
212
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
213
+ * MIT Licensed
214
+ *)
215
+ (*!
216
+ * Chai - getActual utility
217
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
218
+ * MIT Licensed
219
+ *)
220
+ (*!
221
+ * Chai - message composition utility
222
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
223
+ * MIT Licensed
224
+ *)
225
+ (*!
226
+ * Chai - transferFlags utility
227
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
228
+ * MIT Licensed
229
+ *)
230
+ (*!
231
+ * chai
232
+ * http://chaijs.com
233
+ * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
234
+ * MIT Licensed
235
+ *)
236
+ (*!
237
+ * Chai - isProxyEnabled helper
238
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
239
+ * MIT Licensed
240
+ *)
241
+ (*!
242
+ * Chai - addProperty utility
243
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
244
+ * MIT Licensed
245
+ *)
246
+ (*!
247
+ * Chai - addLengthGuard utility
248
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
249
+ * MIT Licensed
250
+ *)
251
+ (*!
252
+ * Chai - getProperties utility
253
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
254
+ * MIT Licensed
255
+ *)
256
+ (*!
257
+ * Chai - proxify utility
258
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
259
+ * MIT Licensed
260
+ *)
261
+ (*!
262
+ * Chai - addMethod utility
263
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
264
+ * MIT Licensed
265
+ *)
266
+ (*!
267
+ * Chai - overwriteProperty utility
268
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
269
+ * MIT Licensed
270
+ *)
271
+ (*!
272
+ * Chai - overwriteMethod utility
273
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
274
+ * MIT Licensed
275
+ *)
276
+ (*!
277
+ * Chai - addChainingMethod utility
278
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
279
+ * MIT Licensed
280
+ *)
281
+ (*!
282
+ * Chai - overwriteChainableMethod utility
283
+ * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
284
+ * MIT Licensed
285
+ *)
286
+ (*!
287
+ * Chai - compareByInspect utility
288
+ * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
289
+ * MIT Licensed
290
+ *)
291
+ (*!
292
+ * Chai - getOwnEnumerablePropertySymbols utility
293
+ * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
294
+ * MIT Licensed
295
+ *)
296
+ (*!
297
+ * Chai - getOwnEnumerableProperties utility
298
+ * Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
299
+ * MIT Licensed
300
+ *)
301
+ (*!
302
+ * Chai - isNaN utility
303
+ * Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
304
+ * MIT Licensed
305
+ *)
306
+ (*!
307
+ * chai
308
+ * Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
309
+ * MIT Licensed
310
+ *)
311
+ (*!
312
+ * chai
313
+ * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
314
+ * MIT Licensed
315
+ *)
316
+ (*! Bundled license information:
317
+
318
+ deep-eql/index.js:
319
+ (*!
320
+ * deep-eql
321
+ * Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>
322
+ * MIT Licensed
323
+ *)
324
+ (*!
325
+ * Check to see if the MemoizeMap has recorded a result of the two operands
326
+ *
327
+ * @param {Mixed} leftHandOperand
328
+ * @param {Mixed} rightHandOperand
329
+ * @param {MemoizeMap} memoizeMap
330
+ * @returns {Boolean|null} result
331
+ *)
332
+ (*!
333
+ * Set the result of the equality into the MemoizeMap
334
+ *
335
+ * @param {Mixed} leftHandOperand
336
+ * @param {Mixed} rightHandOperand
337
+ * @param {MemoizeMap} memoizeMap
338
+ * @param {Boolean} result
339
+ *)
340
+ (*!
341
+ * Primary Export
342
+ *)
343
+ (*!
344
+ * The main logic of the `deepEqual` function.
345
+ *
346
+ * @param {Mixed} leftHandOperand
347
+ * @param {Mixed} rightHandOperand
348
+ * @param {Object} [options] (optional) Additional options
349
+ * @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.
350
+ * @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of
351
+ complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular
352
+ references to blow the stack.
353
+ * @return {Boolean} equal match
354
+ *)
355
+ (*!
356
+ * Compare two Regular Expressions for equality.
357
+ *
358
+ * @param {RegExp} leftHandOperand
359
+ * @param {RegExp} rightHandOperand
360
+ * @return {Boolean} result
361
+ *)
362
+ (*!
363
+ * Compare two Sets/Maps for equality. Faster than other equality functions.
364
+ *
365
+ * @param {Set} leftHandOperand
366
+ * @param {Set} rightHandOperand
367
+ * @param {Object} [options] (Optional)
368
+ * @return {Boolean} result
369
+ *)
370
+ (*!
371
+ * Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.
372
+ *
373
+ * @param {Iterable} leftHandOperand
374
+ * @param {Iterable} rightHandOperand
375
+ * @param {Object} [options] (Optional)
376
+ * @return {Boolean} result
377
+ *)
378
+ (*!
379
+ * Simple equality for generator objects such as those returned by generator functions.
380
+ *
381
+ * @param {Iterable} leftHandOperand
382
+ * @param {Iterable} rightHandOperand
383
+ * @param {Object} [options] (Optional)
384
+ * @return {Boolean} result
385
+ *)
386
+ (*!
387
+ * Determine if the given object has an @@iterator function.
388
+ *
389
+ * @param {Object} target
390
+ * @return {Boolean} `true` if the object has an @@iterator function.
391
+ *)
392
+ (*!
393
+ * Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.
394
+ * This will consume the iterator - which could have side effects depending on the @@iterator implementation.
395
+ *
396
+ * @param {Object} target
397
+ * @returns {Array} an array of entries from the @@iterator function
398
+ *)
399
+ (*!
400
+ * Gets all entries from a Generator. This will consume the generator - which could have side effects.
401
+ *
402
+ * @param {Generator} target
403
+ * @returns {Array} an array of entries from the Generator.
404
+ *)
405
+ (*!
406
+ * Gets all own and inherited enumerable keys from a target.
407
+ *
408
+ * @param {Object} target
409
+ * @returns {Array} an array of own and inherited enumerable keys from the target.
410
+ *)
411
+ (*!
412
+ * Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
413
+ * each key. If any value of the given key is not equal, the function will return false (early).
414
+ *
415
+ * @param {Mixed} leftHandOperand
416
+ * @param {Mixed} rightHandOperand
417
+ * @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against
418
+ * @param {Object} [options] (Optional)
419
+ * @return {Boolean} result
420
+ *)
421
+ (*!
422
+ * Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`
423
+ * for each enumerable key in the object.
424
+ *
425
+ * @param {Mixed} leftHandOperand
426
+ * @param {Mixed} rightHandOperand
427
+ * @param {Object} [options] (Optional)
428
+ * @return {Boolean} result
429
+ *)
430
+ (*!
431
+ * Returns true if the argument is a primitive.
432
+ *
433
+ * This intentionally returns true for all objects that can be compared by reference,
434
+ * including functions and symbols.
435
+ *
436
+ * @param {Mixed} value
437
+ * @return {Boolean} result
438
+ *)
439
+ *)
440
+
441
+ @vitest/snapshot/dist/index.js:
442
+ (*
443
+ * @version 1.4.0
444
+ * @date 2015-10-26
445
+ * @stability 3 - Stable
446
+ * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
447
+ * @license MIT License
448
+ *)
449
+ */Object.defineProperty(exports,"bigDecimal",{enumerable:true,get:function(){return types.bigDecimal}});exports.ETHEREUM_DAI_ADDRESS=Dx;exports.ETHEREUM_FORK_ID=fa;exports.ETHEREUM_GHO_ADDRESS=Rx;exports.ETHEREUM_MARKET_ADDRESS=pv;exports.ETHEREUM_MARKET_ETH_CORRELATED_EMODE_CATEGORY=qx;exports.ETHEREUM_SGHO_ADDRESS=Lx;exports.ETHEREUM_USDC_ADDRESS=Fx;exports.ETHEREUM_WETH_ADDRESS=jx;exports.assertTypedDocumentSatisfies=Vx;exports.client=mv;exports.createGraphQLErrorObject=Jx;exports.createNewWallet=Bx;exports.environment=dv;exports.ethereumForkChain=Mh;exports.fetchReserve=Wx;exports.fundErc20Address=zx;exports.fundNativeAddress=Ux;exports.getBalance=Kx;exports.wait=Rh;//# sourceMappingURL=test-utils.cjs.map
450
+ //# sourceMappingURL=test-utils.cjs.map