PageSourceSearch

https://productuniversity.ru/_next/static/chunks/12915.6bdfca674c2f09c5.js

js productuniversity.ru collected 2026-09-25 19:45:18 UTC 241,275 bytes, 87 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[12915],{12915:(e,t,n)=>{let r;n.d(t,{g:()=>iz,v:()=>iX});var o,i,s,a,l,c,u,f,h,p,d,m,g,y,b,w,v,x,S,k,$,T,O,j,E,_,A,M,P,N,C,I,D,F,R,L,q,B,z,W,U,V=n(81029).hp,K=Object.defineProperty,G=(e,t)=>K(e,"name",{value:t,configurable:!0}),H=(e,t)=>{for(var n in t)K(e,n,{get:t[n],enumerable:!0})},J=(e,t,n)=>((e,t,n)=>t in e?K(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),Z={};H(Z,{addChainableMethod:()=>tH,addLengthGuard:()=>tC,addMethod:()=>tL,addProperty:()=>tP,checkError:()=>Y,compareByInspect:()=>tZ,eql:()=>ti,events:()=>tE,expectTypes:()=>eu,flag:()=>ei,getActual:()=>ef,getMessage:()=>e5,getName:()=>t2,getOperator:()=>t1,getOwnEnumerableProperties:()=>tQ,getOwnEnumerablePropertySymbols:()=>tY,getPathInfo:()=>tO,hasProperty:()=>tk,inspect:()=>e8,isNaN:()=>tX,isNumeric:()=>t4,isProxyEnabled:()=>tM,isRegExp:()=>t3,objDisplay:()=>e6,overwriteChainableMethod:()=>tJ,overwriteMethod:()=>tB,overwriteProperty:()=>tq,proxify:()=>tF,test:()=>es,transferFlags:()=>e7,type:()=>ea});var Y={};function Q(e){return e instanceof Error||"[object Error]"===Object.prototype.toString.call(e)}function X(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function ee(e,t){return Q(t)&&e===t}function et(e,t){return Q(t)?e.constructor===t.constructor||e instanceof t.constructor:("object"==typeof t||"function"==typeof t)&&!!t.prototype&&(e.constructor===t||e instanceof t)}function en(e,t){let n="string"==typeof e?e:e.message;return X(t)?t.test(n):"string"==typeof t&&-1!==n.indexOf(t)}function er(e){let t=e;return Q(e)?t=e.constructor.name:"function"==typeof e&&""===(t=e.name)&&(t=new e().name||t),t}function eo(e){let t="";return e&&e.message?t=e.message:"string"==typeof e&&(t=e),t}function ei(e,t,n){let r=e.__flags||(e.__flags=Object.create(null));if(3!=arguments.length)return r[t];r[t]=n}function es(e,t){let n=ei(e,"negate"),r=t[0];return n?!r:r}function ea(e){if(void 0===e)return"undefined";if(null===e)return"null";let t=e[Symbol.toStringTag];return"string"==typeof t?t:Object.prototype.toString.call(e).slice(8,-1)}H(Y,{compatibleConstructor:()=>et,compatibleInstance:()=>ee,compatibleMessage:()=>en,getConstructorName:()=>er,getMessage:()=>eo}),G(Q,"isErrorInstance"),G(X,"isRegExp"),G(ee,"compatibleInstance"),G(et,"compatibleConstructor"),G(en,"compatibleMessage"),G(er,"getConstructorName"),G(eo,"getMessage"),G(ei,"flag"),G(es,"test"),G(ea,"type");var el="captureStackTrace"in Error,ec=class e extends Error{constructor(t="Unspecified AssertionError",n,r){for(let o in super(t),J(this,"message"),this.message=t,el&&Error.captureStackTrace(this,r||e),n)o in this||(this[o]=n[o])}get name(){return"AssertionError"}get ok(){return!1}toJSON(e){return{...this,name:this.name,message:this.message,ok:!1,stack:!1!==e?this.stack:void 0}}};function eu(e,t){let n=ei(e,"message"),r=ei(e,"ssfi");n=n?n+": ":"",e=ei(e,"object"),(t=t.map(function(e){return e.toLowerCase()})).sort();let o=t.map(function(e,n){let r=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an":"a";return(t.length>1&&n===t.length-1?"or ":"")+r+" "+e}).join(", "),i=ea(e).toLowerCase();if(!t.some(function(e){return i===e}))throw new ec(n+"object tested must be "+o+", but "+i+" given",void 0,r)}function ef(e,t){return t.length>4?t[4]:e._obj}G(ec,"AssertionError"),G(eu,"expectTypes"),G(ef,"getActual");var eh={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"]},ep={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"};function ed(e,t){let n=eh[ep[t]]||eh[t]||"";return n?`\x1b[${n[0]}m${String(e)}\x1b[${n[1]}m`:String(e)}function em({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:s=1/0,seen:a=[],truncate:l=1/0,stylize:c=String}={},u){let f={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(l),seen:a,inspect:u,stylize:c};return f.colors&&(f.stylize=ed),f}function eg(e){return e>="\uD800"&&e<="\uDBFF"}function ey(e,t,n="…"){e=String(e);let r=n.length,o=e.length;if(r>t&&o>r)return n;if(o>t&&o>r){let o=t-r;return o>0&&eg(e[o-1])&&(o-=1),`${e.slice(0,o)}${n}`}return e}function eb(e,t,n,r=", "){n=n||t.inspect;let o=e.length;if(0===o)return"";let i=t.truncate,s="",a="",l="";for(let c=0;c<o;c+=1){let o=c+1===e.length,u=c+2===e.length;l=`\u2026(${e.length-c})`;let f=e[c];t.truncate=i-s.length-(o?0:r.length);let h=a||n(f,t)+(o?"":r),p=s.length+h.length,d=p+l.length;if(o&&p>i&&s.length+l.length<=i||!o&&!u&&d>i||(a=o?"":n(e[c+1],t)+(u?"":r),!o&&u&&d>i&&p+a.length>i))break;if(s+=h,!o&&!u&&p+a.length>=i){l=`\u2026(${e.length-c-1})`;break}l=""}return`${s}${l}`}function ew(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function ev([e,t],n){return n.truncate-=2,"string"==typeof e?e=ew(e):"number"!=typeof e&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}function ex(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return"[]";t.truncate-=4;let r=eb(e,t);t.truncate-=r.length;let o="";return n.length&&(o=eb(n.map(t=>[t,e[t]]),t,ev)),`[ ${r}${o?`, ${o}`:""} ]`}G(ed,"colorise"),G(em,"normaliseOptions"),G(eg,"isHighSurrogate"),G(ey,"truncate"),G(eb,"inspectList"),G(ew,"quoteComplexKey"),G(ev,"inspectProperty"),G(ex,"inspectArray");var eS=G(e=>"function"==typeof V&&e instanceof V?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function ek(e,t){let n=eS(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 n=0;n<e.length;n++){let r=`${t.stylize(ey(e[n],t.truncate),"number")}${n===e.length-1?"":", "}`;if(t.truncate-=r.length,e[n]!==e.length&&t.truncate<=3){o+=`\u2026(${e.length-e[n]+1})`;break}o+=r}let i="";return r.length&&(i=eb(r.map(t=>[t,e[t]]),t,ev)),`${n}[ ${o}${i?`, ${i}`:""} ]`}function e$(e,t){let n=e.toJSON();if(null===n)return"Invalid Date";let r=n.split("T"),o=r[0];return t.stylize(`${o}T${ey(r[1],t.truncate-o.length-1)}`,"date")}function eT(e,t){let n=e[Symbol.toStringTag]||"Function",r=e.name;return r?t.stylize(`[${n} ${ey(r,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}function eO([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}function ej(e){let t=[];return e.forEach((e,n)=>{t.push([n,e])}),t}function eE(e,t){return 0===e.size?"Map{}":(t.truncate-=7,`Map{ ${eb(ej(e),t,eO)} }`)}G(ek,"inspectTypedArray"),G(e$,"inspectDate"),G(eT,"inspectFunction"),G(eO,"inspectMapEntry"),G(ej,"mapToEntries"),G(eE,"inspectMap");var e_=Number.isNaN||(e=>e!=e);function eA(e,t){return e_(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):0===e?t.stylize(1/e==1/0?"+0":"-0","number"):t.stylize(ey(String(e),t.truncate),"number")}function eM(e,t){let n=ey(e.toString(),t.truncate-1);return"…"!==n&&(n+="n"),t.stylize(n,"bigint")}function eP(e,t){let n=e.toString().split("/")[2],r=t.truncate-(2+n.length),o=e.source;return t.stylize(`/${ey(o,r)}/${n}`,"regexp")}function eN(e){let t=[];
1return e.forEach(e=>{t.push(e)}),t}function eC(e,t){return 0===e.size?"Set{}":(t.truncate-=7,`Set{ ${eb(eN(e),t)} }`)}G(eA,"inspectNumber"),G(eM,"inspectBigInt"),G(eP,"inspectRegExp"),G(eN,"arrayFromSet"),G(eC,"inspectSet");var eI=RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),eD={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"};function eF(e){return eD[e]||`\\u${`0000${e.charCodeAt(0).toString(16)}`.slice(-4)}`}function eR(e,t){return eI.test(e)&&(e=e.replace(eI,eF)),t.stylize(`'${ey(e,t.truncate-2)}'`,"string")}function eL(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}G(eF,"escape"),G(eR,"inspectString"),G(eL,"inspectSymbol");var eq=G(()=>"Promise{…}","getPromiseValue");function eB(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(0===n.length&&0===r.length)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=eb(n.map(t=>[t,e[t]]),t,ev),i=eb(r.map(t=>[t,e[t]]),t,ev);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}G(eB,"inspectObject");var ez="undefined"!=typeof Symbol&&!!Symbol.toStringTag&&Symbol.toStringTag;function eW(e,t){let n="";return ez&&ez in e&&(n=e[ez]),(n=n||e.constructor.name)&&"_class"!==n||(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${eB(e,t)}`}function eU(e,t){return 0===e.length?"Arguments[]":(t.truncate-=13,`Arguments[ ${eb(e,t)} ]`)}G(eW,"inspectClass"),G(eU,"inspectArguments");var eV=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function eK(e,t){let n=Object.getOwnPropertyNames(e).filter(e=>-1===eV.indexOf(e)),r=e.name;t.truncate-=r.length;let o="";if("string"==typeof e.message?o=ey(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=eb(n.map(t=>[t,e[t]]),t,ev);return`${r}${o}${i?` { ${i} }`:""}`}function eG([e,t],n){return(n.truncate-=3,t)?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}function eH(e,t){return eb(e,t,eJ,"\n")}function eJ(e,t){switch(e.nodeType){case 1:return eZ(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function eZ(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-=2*r.length+5;let a="";n.length>0&&(a+=" ",a+=eb(n.map(t=>[t,e.getAttribute(t)]),t,eG," ")),t.truncate-=a.length;let l=t.truncate,c=eH(e.children,t);return c&&c.length>l&&(c=`\u2026(${e.children.length})`),`${o}${a}${i}${c}${s}`}G(eK,"inspectObject"),G(eG,"inspectAttribute"),G(eH,"inspectNodeCollection"),G(eJ,"inspectNode"),G(eZ,"inspectHTML");var eY="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("chai/inspect"):"@@chai/inspect",eQ=Symbol.for("nodejs.util.inspect.custom"),eX=new WeakMap,e0={},e1={undefined:G((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:G((e,t)=>t.stylize("null","null"),"null"),boolean:G((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:G((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:eA,Number:eA,bigint:eM,BigInt:eM,string:eR,String:eR,function:eT,Function:eT,symbol:eL,Symbol:eL,Array:ex,Date:e$,Map:eE,Set:eC,RegExp:eP,Promise:eq,WeakSet:G((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:G((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:eU,Int8Array:ek,Uint8Array:ek,Uint8ClampedArray:ek,Int16Array:ek,Uint16Array:ek,Int32Array:ek,Uint32Array:ek,Float32Array:ek,Float64Array:ek,Generator:G(()=>"","Generator"),DataView:G(()=>"","DataView"),ArrayBuffer:G(()=>"","ArrayBuffer"),Error:eK,HTMLCollection:eH,NodeList:eH},e2=G((e,t,n,r)=>eY in e&&"function"==typeof e[eY]?e[eY](t):eQ in e&&"function"==typeof e[eQ]?e[eQ](t.depth,t,r):"inspect"in e&&"function"==typeof e.inspect?e.inspect(t.depth,t):"constructor"in e&&eX.has(e.constructor)?eX.get(e.constructor)(e,t):e0[n]?e0[n](e,t):"","inspectCustom"),e3=Object.prototype.toString;function e4(e,t={}){let n=em(t,e4),{customInspect:r}=n,o=null===e?"null":typeof e;if("object"===o&&(o=e3.call(e).slice(8,-1)),o in e1)return e1[o](e,n);if(r&&e){let t=e2(e,n,o,e4);if(t)return"string"==typeof t?t:e4(t,n)}let i=!!e&&Object.getPrototypeOf(e);return i===Object.prototype||null===i?eB(e,n):e&&"function"==typeof HTMLElement&&e instanceof HTMLElement?eZ(e,n):"constructor"in e?e.constructor!==Object?eW(e,n):eB(e,n):e===Object(e)?eB(e,n):n.stylize(String(e),o)}
1G(e4,"inspect");var e9={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function e8(e,t,n,r){return e4(e,{colors:r,depth:void 0===n?2:n,showHidden:t,truncate:e9.truncateThreshold?e9.truncateThreshold:1/0})}function e6(e){let t=e8(e),n=Object.prototype.toString.call(e);if(!e9.truncateThreshold||!(t.length>=e9.truncateThreshold))return t;if("[object Function]"===n)return e.name&&""!==e.name?"[Function: "+e.name+"]":"[Function]";if("[object Array]"===n)return"[ Array("+e.length+") ]";{if("[object Object]"!==n)return t;let r=Object.keys(e);return"{ Object ("+(r.length>2?r.splice(0,2).join(", ")+", ...":r.join(", "))+") }"}}function e5(e,t){let n=ei(e,"negate"),r=ei(e,"object"),o=t[3],i=ef(e,t),s=n?t[2]:t[1],a=ei(e,"message");return"function"==typeof s&&(s=s()),s=(s=s||"").replace(/#\{this\}/g,function(){return e6(r)}).replace(/#\{act\}/g,function(){return e6(i)}).replace(/#\{exp\}/g,function(){return e6(o)}),a?a+": "+s:s}function e7(e,t,n){let r=e.__flags||(e.__flags=Object.create(null));for(let e in t.__flags||(t.__flags=Object.create(null)),n=3!=arguments.length||n,r)(n||"object"!==e&&"ssfi"!==e&&"lockSsfi"!==e&&"message"!=e)&&(t.__flags[e]=r[e])}function te(e){if(void 0===e)return"undefined";if(null===e)return"null";let t=e[Symbol.toStringTag];return"string"==typeof t?t:Object.prototype.toString.call(e).slice(8,-1)}function tt(){this._key="chai/deep-eql__"+Math.random()+Date.now()}G(e8,"inspect"),G(e6,"objDisplay"),G(e5,"getMessage"),G(e7,"transferFlags"),G(te,"type"),G(tt,"FakeMap"),tt.prototype={get:G(function(e){return e[this._key]},"get"),set:G(function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})},"set")};var tn="function"==typeof WeakMap?WeakMap:tt;function tr(e,t,n){if(!n||tx(e)||tx(t))return null;var r=n.get(e);if(r){var o=r.get(t);if("boolean"==typeof o)return o}return null}function to(e,t,n,r){if(!(!n||tx(e)||tx(t))){var o=n.get(e);o?o.set(t,r):((o=new tn).set(t,r),n.set(e,o))}}G(tr,"memoizeCompare"),G(to,"memoizeSet");var ti=ts;function ts(e,t,n){if(n&&n.comparator)return tl(e,t,n);var r=ta(e,t);return null!==r?r:tl(e,t,n)}function ta(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t||!(tx(e)||tx(t))&&null}function tl(e,t,n){(n=n||{}).memoize=!1!==n.memoize&&(n.memoize||new tn);var r=n&&n.comparator,o=tr(e,t,n.memoize);if(null!==o)return o;var i=tr(t,e,n.memoize);if(null!==i)return i;if(r){var s=r(e,t);if(!1===s||!0===s)return to(e,t,n.memoize,s),s;var a=ta(e,t);if(null!==a)return a}var l=te(e);if(l!==te(t))return to(e,t,n.memoize,!1),!1;to(e,t,n.memoize,!0);var c=tc(e,t,l,n);return to(e,t,n.memoize,c),c}function tc(e,t,n,r){switch(n){case"String":case"Number":case"Boolean":case"Date":return ts(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return tw(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 th(e,t,r);case"RegExp":return tu(e,t);case"Generator":return tp(e,t,r);case"DataView":return th(new Uint8Array(e.buffer),new Uint8Array(t.buffer),r);case"ArrayBuffer":return th(new Uint8Array(e),new Uint8Array(t),r);case"Set":case"Map":return tf(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 tv(e,t,r)}}function tu(e,t){return e.toString()===t.toString()}function tf(e,t,n){try{if(e.size!==t.size)return!1;if(0===e.size)return!0}catch(e){return!1}var r=[],o=[];return e.forEach(G(function(e,t){r.push([e,t])},"gatherEntries")),t.forEach(G(function(e,t){o.push([e,t])},"gatherEntries")),th(r.sort(),o.sort(),n)}function th(e,t,n){var r=e.length;if(r!==t.length)return!1;if(0===r)return!0;for(var o=-1;++o<r;)if(!1===ts(e[o],t[o],n))return!1;return!0}function tp(e,t,n){return th(tg(e),tg(t),n)}function td(e){return"undefined"!=typeof Symbol&&"object"==typeof e&&void 0!==Symbol.iterator&&"function"==typeof e[Symbol.iterator]}function tm(e){if(td(e))try{return tg(e[Symbol.iterator]())}catch(e){}return[]}function tg(e){for(var t=e.next(),n=[t.value];!1===t.done;)n.push((t=e.next()).value);return n}function ty(e){var t=[];for(var n in e)t.push(n);return t}function tb(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}function tw(e,t,n,r){var o=n.length;if(0===o)return!0;for(var i=0;i<o;i+=1)if(!1===ts(e[n[i]],t[n[i]],r))return!1;return!0}function tv(e,t,n){var r=ty(e),o=ty(t),i=tb(e),s=tb(t);if(r=r.concat(i),o=o.concat(s),r.length&&r.length===o.length)return!1!==th(tS(r).sort(),tS(o).sort())&&tw(e,t,r,n);var a=tm(e),l=tm(t);return a.length&&a.length===l.length?(a.sort(),l.sort(),th(a,l,n)):0===r.length&&0===a.length&&0===o.length&&0===l.length}function tx(e){return null===e||"object"!=typeof e}function tS(e){return e.map(G(function(e){return"symbol"==typeof e?e.toString():e},"mapSymbol"))}function tk(e,t){return null!=e&&t in Object(e)}function t$(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(e=>{if("constructor"===e||"__proto__"===e||"prototype"===e)return{};let t=/^\[(\d+)\]$/.exec(e);return t?{i:parseFloat(t[1])}
1:{p:e.replace(/\\([.[\]])/g,"$1")}})}function tT(e,t,n){let r=e,o=null;n=void 0===n?t.length:n;for(let e=0;e<n;e++){let i=t[e];r&&(r=void 0===i.p?r[i.i]:r[i.p],e===n-1&&(o=r))}return o}function tO(e,t){let n=t$(t),r=n[n.length-1],o={parent:n.length>1?tT(e,n,n.length-1):e,name:r.p||r.i,value:tT(e,n)};return o.exists=tk(o.parent,o.name),o}G(ts,"deepEqual"),G(ta,"simpleEqual"),G(tl,"extensiveDeepEqual"),G(tc,"extensiveDeepEqualByType"),G(tu,"regexpEqual"),G(tf,"entriesEqual"),G(th,"iterableEqual"),G(tp,"generatorEqual"),G(td,"hasIteratorFunction"),G(tm,"getIteratorEntries"),G(tg,"getGeneratorEntries"),G(ty,"getEnumerableKeys"),G(tb,"getEnumerableSymbols"),G(tw,"keysEqual"),G(tv,"objectEqual"),G(tx,"isPrimitive"),G(tS,"mapSymbols"),G(tk,"hasProperty"),G(t$,"parsePath"),G(tT,"internalGetPathValue"),G(tO,"getPathInfo");var tj=class e{constructor(t,n,r,o){return J(this,"__flags",{}),ei(this,"ssfi",r||e),ei(this,"lockSsfi",o),ei(this,"object",t),ei(this,"message",n),ei(this,"eql",e9.deepEqual||ti),tF(this)}static get includeStack(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),e9.includeStack}static set includeStack(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),e9.includeStack=e}static get showDiff(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),e9.showDiff}static set showDiff(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),e9.showDiff=e}static addProperty(e,t){tP(this.prototype,e,t)}static addMethod(e,t){tL(this.prototype,e,t)}static addChainableMethod(e,t,n){tH(this.prototype,e,t,n)}static overwriteProperty(e,t){tq(this.prototype,e,t)}static overwriteMethod(e,t){tB(this.prototype,e,t)}static overwriteChainableMethod(e,t,n){tJ(this.prototype,e,t,n)}assert(e,t,n,r,o,i){let s=es(this,arguments);if(!1!==i&&(i=!0),void 0===r&&void 0===o&&(i=!1),!0!==e9.showDiff&&(i=!1),!s){t=e5(this,arguments);let e=ef(this,arguments),n={actual:e,expected:r,showDiff:i},o=t1(this,arguments);throw o&&(n.operator=o),new ec(t,n,e9.includeStack?this.assert:ei(this,"ssfi"))}}get _obj(){return ei(this,"object")}set _obj(e){ei(this,"object",e)}};G(tj,"Assertion");var tE=new EventTarget,t_=class extends Event{constructor(e,t,n){super(e),this.name=String(t),this.fn=n}};G(t_,"PluginEvent");var tA=t_;function tM(){return e9.useProxy&&"undefined"!=typeof Proxy&&"undefined"!=typeof Reflect}function tP(e,t,n){n=void 0===n?function(){}:n,Object.defineProperty(e,t,{get:G(function e(){tM()||ei(this,"lockSsfi")||ei(this,"ssfi",e);let t=n.call(this);if(void 0!==t)return t;let r=new tj;return e7(this,r),r},"propertyGetter"),configurable:!0}),tE.dispatchEvent(new tA("addProperty",t,n))}G(tM,"isProxyEnabled"),G(tP,"addProperty");var tN=Object.getOwnPropertyDescriptor(function(){},"length");function tC(e,t,n){return tN.configurable&&Object.defineProperty(e,"length",{get:G(function(){if(n)throw Error("Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.');throw Error("Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')},"get")}),e}function tI(e){let t=Object.getOwnPropertyNames(e);function n(e){-1===t.indexOf(e)&&t.push(e)}G(n,"addProperty");let r=Object.getPrototypeOf(e);for(;null!==r;)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return t}G(tC,"addLengthGuard"),G(tI,"getProperties");var tD=["__flags","__methods","_obj","assert"];function tF(e,t){return tM()?new Proxy(e,{get:G(function e(n,r){if("string"==typeof r&&-1===e9.proxyExcludedKeys.indexOf(r)&&!Reflect.has(n,r)){if(t)throw Error("Invalid Chai property: "+t+"."+r+'. See docs for proper usage of "'+t+'".');let e=null,o=4;if(tI(n).forEach(function(t){if(!Object.prototype.hasOwnProperty(t)&&-1===tD.indexOf(t)){let n=tR(r,t,o);n<o&&(e=t,o=n)}}),null!==e)throw Error("Invalid Chai property: "+r+'. Did you mean "'+e+'"?');throw Error("Invalid Chai property: "+r)}return -1!==tD.indexOf(r)||ei(n,"lockSsfi")||ei(n,"ssfi",e),Reflect.get(n,r)},"proxyGetter")}):e}function tR(e,t,n){if(Math.abs(e.length-t.length)>=n)return n;let r=[];for(let n=0;n<=e.length;n++)r[n]=Array(t.length+1).fill(0),r[n][0]=n;for(let e=0;e<t.length;e++)r[0][e]=e;for(let o=1;o<=e.length;o++){let i=e.charCodeAt(o-1);for(let e=1;e<=t.length;e++){if(Math.abs(o-e)>=n){r[o][e]=n;continue}r[o][e]=Math.min(r[o-1][e]+1,r[o][e-1]+1,r[o-1][e-1]+ +(i!==t.charCodeAt(e-1)))}}return r[e.length][t.length]}function tL(e,t,n){let r=G(function(){ei(this,"lockSsfi")||ei(this,"ssfi",r);let e=n.apply(this,arguments);if(void 0!==e)return e;let t=new tj;return e7(this,t),t},"methodWrapper");tC(r,t,!1),e[t]=tF(r,t),tE.dispatchEvent(new tA("addMethod",t,n))}function tq(e,t,n){let r=Object.getOwnPropertyDescriptor(e,t),o=G(function(){},"_super");r&&"function"==typeof r.get&&(o=r.get),Object.defineProperty(e,t,{get:G(function e(){tM()||ei(this,"lockSsfi")||ei(this,"ssfi",e);let t=ei(this,"lockSsfi");ei(this,"lockSsfi",!0);let r=n(o).call(this);if(ei(this,"lockSsfi",t),void 0!==r)return r;let i=new tj;return e7(this,i),i},"overwritingPropertyGetter"),configurable:!0})}function tB(e,t,n){let r=e[t],o=G(function(){throw Error(t+" is not a function")},"_super");r&&"function"==typeof r&&(o=r);let i=G(function(){ei(this,"lockSsfi")||ei(this,"ssfi",i);let e=ei(this,"lockSsfi");ei(this,"lockSsfi",!0);let t=n(o).apply(this,arguments);if(ei(this,"lockSsfi",e),void 0!==t)return t;let r=new tj;return e7(this,r),r},"overwritingMethodWrapper");tC(i,t,!1),e[t]=tF(i,t)}G(tF,"proxify"),G(tR,"stringDistanceCapped"),G(tL,"addMethod"),G(tq,"overwriteProperty"),G(tB,"overwriteMethod");var tz="function"==typeof Object.setPrototypeOf,tW=G(function(){},"testFn"),tU=Object.getOwnPropertyNames(tW).filter(function(e){let t=Object.getOwnPropertyDescriptor(tW,e);return"object"!=typeof t||!t.configurable}),tV=Function.prototype.call,tK=Function.prototype.apply,tG=class extends tA{constructor(e,t,n,r){super(e,t,n),this.chainingBehavior=r}};function tH(e,t,n,r){"function"!=typeof r&&(r=G(function(){},"chainingBehavior"));let o={method:n,chainingBehavior:r};e.__methods||(e.__methods={}),e.__methods[t]=o,Object.defineProperty(e,t,{get:G(function(){o.chainingBehavior.call(this);let n=G(function(){ei(this,"lockSsfi")||ei(this,"ssfi",n);let e=o.method.apply(this,arguments);if(void 0!==e)return e;let t=new tj;return e7(this,t),t},"chainableMethodWrapper");if(tC(n,t,!0),tz){let e=Object.create(this);e.call=tV,e.apply=tK,Object.setPrototypeOf(n,e)}else Object.getOwnPropertyNames(e).forEach(function(t){if(-1!==tU.indexOf(t))return;let r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r)});return e7(this,n),tF(n)},"chainableMethodGetter"),configurable:!0}),tE.dispatchEvent(new tG("addChainableMethod",t,n,r))}function tJ(e,t,n,r){let o=e.__methods[t],i=o.chainingBehavior;o.chainingBehavior=G(function(){let e=r(i).call(this);if(void 0!==e)return e;let t=new tj;return e7(this,t),t}
1,"overwritingChainableMethodGetter");let s=o.method;o.method=G(function(){let e=n(s).apply(this,arguments);if(void 0!==e)return e;let t=new tj;return e7(this,t),t},"overwritingChainableMethodWrapper")}function tZ(e,t){return e8(e)<e8(t)?-1:1}function tY(e){return"function"!=typeof Object.getOwnPropertySymbols?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}function tQ(e){return Object.keys(e).concat(tY(e))}G(tG,"PluginAddChainableMethodEvent"),G(tH,"addChainableMethod"),G(tJ,"overwriteChainableMethod"),G(tZ,"compareByInspect"),G(tY,"getOwnEnumerablePropertySymbols"),G(tQ,"getOwnEnumerableProperties");var tX=Number.isNaN;function t0(e){return -1!==["Array","Object","Function"].indexOf(ea(e))}function t1(e,t){let n=ei(e,"operator"),r=ei(e,"negate"),o=t[3],i=r?t[2]:t[1];if(n)return n;if("function"==typeof i&&(i=i()),!(i=i||"")||/\shave\s/.test(i))return;let s=t0(o);return/\snot\s/.test(i)?s?"notDeepStrictEqual":"notStrictEqual":s?"deepStrictEqual":"strictEqual"}function t2(e){return e.name}function t3(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function t4(e){return["Number","BigInt"].includes(ea(e))}G(t0,"isObjectType"),G(t1,"getOperator"),G(t2,"getName"),G(t3,"isRegExp"),G(t4,"isNumeric");var{flag:t9}=Z;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){tj.addProperty(e)}),tj.addProperty("not",function(){t9(this,"negate",!0)}),tj.addProperty("deep",function(){t9(this,"deep",!0)}),tj.addProperty("nested",function(){t9(this,"nested",!0)}),tj.addProperty("own",function(){t9(this,"own",!0)}),tj.addProperty("ordered",function(){t9(this,"ordered",!0)}),tj.addProperty("any",function(){t9(this,"any",!0),t9(this,"all",!1)}),tj.addProperty("all",function(){t9(this,"all",!0),t9(this,"any",!1)});var t8={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function t6(e,t){t&&t9(this,"message",t),e=e.toLowerCase();let n=t9(this,"object"),r=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ",o=ea(n).toLowerCase();t8.function.includes(e)?this.assert(t8[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)}function t5(e,t){return tX(e)&&tX(t)||e===t}function t7(){t9(this,"contains",!0)}function ne(e,t){t&&t9(this,"message",t);let n=t9(this,"object"),r=ea(n).toLowerCase(),o=t9(this,"message"),i=t9(this,"negate"),s=t9(this,"ssfi"),a=t9(this,"deep"),l=a?"deep ":"",c=a?t9(this,"eql"):t5;o=o?o+": ":"";let u=!1;switch(r){case"string":u=-1!==n.indexOf(e);break;case"weakset":if(a)throw new ec(o+"unable to use .deep.include with WeakSet",void 0,s);u=n.has(e);break;case"map":n.forEach(function(t){u=u||c(t,e)});break;case"set":a?n.forEach(function(t){u=u||c(t,e)}):u=n.has(e);break;case"array":u=a?n.some(function(t){return c(t,e)}):-1!==n.indexOf(e);break;default:{if(e!==Object(e))throw new ec(o+"the given combination of arguments ("+r+" and "+ea(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 "+ea(e).toLowerCase(),void 0,s);let t=Object.keys(e),a=null,l=0;if(t.forEach(function(r){let o=new tj(n);if(e7(this,o,!0),t9(o,"lockSsfi",!0),!i||1===t.length)return void o.property(r,e[r]);try{o.property(r,e[r])}catch(e){if(!Y.compatibleConstructor(e,ec))throw e;null===a&&(a=e),l++}},this),i&&t.length>1&&l===t.length)throw a;return}}this.assert(u,"expected #{this} to "+l+"include "+e8(e),"expected #{this} to not "+l+"include "+e8(e))}function nt(){let e=t9(this,"object");this.assert(null!=e,"expected #{this} to exist","expected #{this} to not exist")}function nn(){let e=ea(t9(this,"object"));this.assert("Arguments"===e,"expected #{this} to be arguments but got "+e,"expected #{this} to not be arguments")}function nr(e,t){t&&t9(this,"message",t);let n=t9(this,"object");
1if(t9(this,"deep")){let t=t9(this,"lockSsfi");t9(this,"lockSsfi",!0),this.eql(e),t9(this,"lockSsfi",t)}else this.assert(e===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}function no(e,t){t&&t9(this,"message",t);let n=t9(this,"eql");this.assert(n(e,t9(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}function ni(e,t){t&&t9(this,"message",t);let n=t9(this,"object"),r=t9(this,"doLength"),o=t9(this,"message"),i=o?o+": ":"",s=t9(this,"ssfi"),a=ea(n).toLowerCase(),l=ea(e).toLowerCase();if(r&&"map"!==a&&"set"!==a&&new tj(n,o,s,!0).to.have.property("length"),r||"date"!==a||"date"===l){if(!t4(e)&&(r||t4(n)))throw new ec(i+"the argument to above must be a number",void 0,s);else if(!r&&"date"!==a&&!t4(n))throw new ec(i+"expected "+("string"===a?"'"+n+"'":n)+" to be a number or a date",void 0,s)}else throw new ec(i+"the argument to above must be a date",void 0,s);if(r){let t="length",r;"map"===a||"set"===a?(t="size",r=n.size):r=n.length,this.assert(r>e,"expected #{this} to have a "+t+" above #{exp} but got #{act}","expected #{this} to not have a "+t+" above #{exp}",e,r)}else this.assert(n>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}function ns(e,t){t&&t9(this,"message",t);let n=t9(this,"object"),r=t9(this,"doLength"),o=t9(this,"message"),i=o?o+": ":"",s=t9(this,"ssfi"),a=ea(n).toLowerCase(),l=ea(e).toLowerCase(),c,u=!0;if(r&&"map"!==a&&"set"!==a&&new tj(n,o,s,!0).to.have.property("length"),r||"date"!==a||"date"===l?!t4(e)&&(r||t4(n))?c=i+"the argument to least must be a number":r||"date"===a||t4(n)?u=!1:c=i+"expected "+("string"===a?"'"+n+"'":n)+" to be a number or a date":c=i+"the argument to least must be a date",u)throw new ec(c,void 0,s);if(r){let t="length",r;"map"===a||"set"===a?(t="size",r=n.size):r=n.length,this.assert(r>=e,"expected #{this} to have a "+t+" at least #{exp} but got #{act}","expected #{this} to have a "+t+" below #{exp}",e,r)}else this.assert(n>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}function na(e,t){t&&t9(this,"message",t);let n=t9(this,"object"),r=t9(this,"doLength"),o=t9(this,"message"),i=o?o+": ":"",s=t9(this,"ssfi"),a=ea(n).toLowerCase(),l=ea(e).toLowerCase(),c,u=!0;if(r&&"map"!==a&&"set"!==a&&new tj(n,o,s,!0).to.have.property("length"),r||"date"!==a||"date"===l?!t4(e)&&(r||t4(n))?c=i+"the argument to below must be a number":r||"date"===a||t4(n)?u=!1:c=i+"expected "+("string"===a?"'"+n+"'":n)+" to be a number or a date":c=i+"the argument to below must be a date",u)throw new ec(c,void 0,s);if(r){let t="length",r;"map"===a||"set"===a?(t="size",r=n.size):r=n.length,this.assert(r<e,"expected #{this} to have a "+t+" below #{exp} but got #{act}","expected #{this} to not have a "+t+" below #{exp}",e,r)}else this.assert(n<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}function nl(e,t){t&&t9(this,"message",t);let n=t9(this,"object"),r=t9(this,"doLength"),o=t9(this,"message"),i=o?o+": ":"",s=t9(this,"ssfi"),a=ea(n).toLowerCase(),l=ea(e).toLowerCase(),c,u=!0;if(r&&"map"!==a&&"set"!==a&&new tj(n,o,s,!0).to.have.property("length"),r||"date"!==a||"date"===l?!t4(e)&&(r||t4(n))?c=i+"the argument to most must be a number":r||"date"===a||t4(n)?u=!1:c=i+"expected "+("string"===a?"'"+n+"'":n)+" to be a number or a date":c=i+"the argument to most must be a date",u)throw new ec(c,void 0,s);if(r){let t="length",r;"map"===a||"set"===a?(t="size",r=n.size):r=n.length,this.assert(r<=e,"expected #{this} to have a "+t+" at most #{exp} but got #{act}","expected #{this} to have a "+t+" above #{exp}",e,r)}else this.assert(n<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}function nc(e,t){let n;t&&t9(this,"message",t);let r=t9(this,"object"),o=t9(this,"ssfi"),i=t9(this,"message");try{n=r instanceof e}catch(t){if(t instanceof TypeError)throw new ec((i=i?i+": ":"")+"The instanceof assertion needs a constructor but "+ea(e)+" was given.",void 0,o);throw t}let s=t2(e);null==s&&(s="an unnamed constructor"),this.assert(n,"expected #{this} to be an instance of "+s,"expected #{this} to not be an instance of "+s)}function nu(e,t,n){let r;n&&t9(this,"message",n);let o=t9(this,"nested"),i=t9(this,"own"),s=t9(this,"message"),a=t9(this,"object"),l=t9(this,"ssfi"),c=typeof e;
1if(s=s?s+": ":"",o){if("string"!==c)throw new ec(s+"the argument to property must be a string when using nested syntax",void 0,l)}else if("string"!==c&&"number"!==c&&"symbol"!==c)throw new ec(s+"the argument to property must be a string, number, or symbol",void 0,l);if(o&&i)throw new ec(s+'The "nested" and "own" flags cannot be combined.',void 0,l);if(null==a)throw new ec(s+"Target cannot be null or undefined.",void 0,l);let u=t9(this,"deep"),f=t9(this,"negate"),h=o?tO(a,e):null,p=o?h.value:a[e],d=u?t9(this,"eql"):(e,t)=>e===t,m="";u&&(m+="deep "),i&&(m+="own "),o&&(m+="nested "),m+="property ",r=i?Object.prototype.hasOwnProperty.call(a,e):o?h.exists:tk(a,e),f&&1!=arguments.length||this.assert(r,"expected #{this} to have "+m+e8(e),"expected #{this} to not have "+m+e8(e)),arguments.length>1&&this.assert(r&&d(t,p),"expected #{this} to have "+m+e8(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+m+e8(e)+" of #{act}",t,p),t9(this,"object",p)}function nf(e,t,n){t9(this,"own",!0),nu.apply(this,arguments)}function nh(e,t,n){"string"==typeof t&&(n=t,t=null),n&&t9(this,"message",n);let r=Object.getOwnPropertyDescriptor(Object(t9(this,"object")),e),o=t9(this,"eql");r&&t?this.assert(o(t,r),"expected the own property descriptor for "+e8(e)+" on #{this} to match "+e8(t)+", got "+e8(r),"expected the own property descriptor for "+e8(e)+" on #{this} to not match "+e8(t),t,r,!0):this.assert(r,"expected #{this} to have an own property descriptor for "+e8(e),"expected #{this} to not have an own property descriptor for "+e8(e)),t9(this,"object",r)}function np(){t9(this,"doLength",!0)}function nd(e,t){t&&t9(this,"message",t);let n=t9(this,"object"),r=ea(n).toLowerCase(),o=t9(this,"message"),i=t9(this,"ssfi"),s="length",a;switch(r){case"map":case"set":s="size",a=n.size;break;default:new tj(n,o,i,!0).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)}function nm(e,t){t&&t9(this,"message",t);let n=t9(this,"object");this.assert(e.exec(n),"expected #{this} to match "+e,"expected #{this} not to match "+e)}function ng(e){let t=t9(this,"object"),n=ea(t),r=ea(e),o=t9(this,"ssfi"),i=t9(this,"deep"),s,a="",l,c=!0,u=t9(this,"message"),f=(u=u?u+": ":"")+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if("Map"===n||"Set"===n)a=i?"deeply ":"",l=[],t.forEach(function(e,t){l.push(t)}),"Array"!==r&&(e=Array.prototype.slice.call(arguments));else{switch(l=tQ(t),r){case"Array":if(arguments.length>1)throw new ec(f,void 0,o);break;case"Object":if(arguments.length>1)throw new ec(f,void 0,o);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(e){return"symbol"==typeof e?e:String(e)})}if(!e.length)throw new ec(u+"keys required",void 0,o);let h=e.length,p=t9(this,"any"),d=t9(this,"all"),m=e,g=i?t9(this,"eql"):(e,t)=>e===t;if(p||d||(d=!0),p&&(c=m.some(function(e){return l.some(function(t){return g(e,t)})})),d&&(c=m.every(function(e){return l.some(function(t){return g(e,t)})}),t9(this,"contains")||(c=c&&e.length==l.length)),h>1){let t=(e=e.map(function(e){return e8(e)})).pop();d&&(s=e.join(", ")+", and "+t),p&&(s=e.join(", ")+", or "+t)}else s=e8(e[0]);s=(h>1?"keys ":"key ")+s,s=(t9(this,"contains")?"contain ":"have ")+s,this.assert(c,"expected #{this} to "+a+s,"expected #{this} to not "+a+s,m.slice(0).sort(tZ),l.sort(tZ),!0)}function ny(e,t,n){let r;n&&t9(this,"message",n);let o=t9(this,"object"),i=t9(this,"ssfi"),s=t9(this,"message"),a=t9(this,"negate")||!1;new tj(o,s,i,!0).is.a("function"),(t3(e)||"string"==typeof e)&&(t=e,e=null);let l=!1;try{o()}catch(e){l=!0,r=e}let c=void 0===e&&void 0===t,u=!!(e&&t),f=!1,h=!1;if(c||!c&&!a){let t="an error";e instanceof Error?t="#{exp}":e&&(t=Y.getConstructorName(e));let n=r;if(r instanceof Error)n=r.toString();else if("string"==typeof r)n=r;else if(r&&("object"==typeof r||"function"==typeof r))try{n=Y.getConstructorName(r)}catch(e){}this.assert(l,"expected #{this} to throw "+t,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),n)}if(e&&r&&(e instanceof Error&&Y.compatibleInstance(r,e)===a&&(u&&a?f=!0:this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(r&&!a?" but #{act} was thrown":""),e.toString(),r.toString())),Y.compatibleConstructor(r,e)===a&&(u&&a?f=!0:this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(r?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&Y.getConstructorName(e),r instanceof Error?r.toString():r&&Y.getConstructorName(r)))),r&&null!=t){let e="including";t3(t)&&(e="matching"),Y.compatibleMessage(r,t)===a&&(u&&a?h=!0:this.assert(a,"expected #{this} to throw error "+e+" #{exp} but got #{act}","expected #{this} to throw error not "+e+" #{exp}
1",t,Y.getMessage(r)))}f&&h&&this.assert(a,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(r?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&Y.getConstructorName(e),r instanceof Error?r.toString():r&&Y.getConstructorName(r)),t9(this,"object",r)}function nb(e,t){t&&t9(this,"message",t);let n=t9(this,"object"),r=t9(this,"itself"),o="function"!=typeof n||r?n[e]:n.prototype[e];this.assert("function"==typeof o,"expected #{this} to respond to "+e8(e),"expected #{this} to not respond to "+e8(e))}function nw(e,t){t&&t9(this,"message",t);let n=e(t9(this,"object"));this.assert(n,"expected #{this} to satisfy "+e6(e),"expected #{this} to not satisfy"+e6(e),!t9(this,"negate"),n)}function nv(e,t,n){n&&t9(this,"message",n);let r=t9(this,"object"),o=t9(this,"message"),i=t9(this,"ssfi");new tj(r,o,i,!0).is.numeric;let s="A `delta` value is required for `closeTo`";if(void 0==t||(new tj(t,o,i,!0).is.numeric,s="A `expected` value is required for `closeTo`",void 0==e))throw new ec(o?`${o}: ${s}`:s,void 0,i);new tj(e,o,i,!0).is.numeric;let a=G(e=>e<0n?-e:e,"abs"),l=G(e=>parseFloat(parseFloat(e).toPrecision(12)),"strip");this.assert(l(a(r-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}function nx(e,t,n,r,o){let i=Array.from(t),s=Array.from(e);if(!r){if(s.length!==i.length)return!1;i=i.slice()}return s.every(function(e,t){if(o)return n?n(e,i[t]):e===i[t];if(!n){let t=i.indexOf(e);return -1!==t&&(r||i.splice(t,1),!0)}return i.some(function(t,o){return!!n(e,t)&&(r||i.splice(o,1),!0)})})}function nS(e,t){t&&t9(this,"message",t);let n=t9(this,"object"),r=t9(this,"message"),o=t9(this,"ssfi"),i=t9(this,"contains"),s=t9(this,"deep"),a=t9(this,"eql");new tj(e,r,o,!0).to.be.an("array"),i?this.assert(e.some(function(e){return n.indexOf(e)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,n):s?this.assert(e.some(function(e){return a(n,e)}),"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)}function nk(e,t,n){let r;n&&t9(this,"message",n);let o=t9(this,"object"),i=t9(this,"message"),s=t9(this,"ssfi");new tj(o,i,s,!0).is.a("function"),t?(new tj(e,i,s,!0).to.have.property(t),r=e[t]):(new tj(e,i,s,!0).is.a("function"),r=e()),o();let a=null==t?e():e[t],l=null==t?r:"."+t;t9(this,"deltaMsgObj",l),t9(this,"initialDeltaValue",r),t9(this,"finalDeltaValue",a),t9(this,"deltaBehavior","change"),t9(this,"realDelta",a!==r),this.assert(r!==a,"expected "+l+" to change","expected "+l+" to not change")}function n$(e,t,n){let r;n&&t9(this,"message",n);let o=t9(this,"object"),i=t9(this,"message"),s=t9(this,"ssfi");new tj(o,i,s,!0).is.a("function"),t?(new tj(e,i,s,!0).to.have.property(t),r=e[t]):(new tj(e,i,s,!0).is.a("function"),r=e()),new tj(r,i,s,!0).is.a("number"),o();let a=null==t?e():e[t],l=null==t?r:"."+t;t9(this,"deltaMsgObj",l),t9(this,"initialDeltaValue",r),t9(this,"finalDeltaValue",a),t9(this,"deltaBehavior","increase"),t9(this,"realDelta",a-r),this.assert(a-r>0,"expected "+l+" to increase","expected "+l+" to not increase")}function nT(e,t,n){let r;n&&t9(this,"message",n);let o=t9(this,"object"),i=t9(this,"message"),s=t9(this,"ssfi");new tj(o,i,s,!0).is.a("function"),t?(new tj(e,i,s,!0).to.have.property(t),r=e[t]):(new tj(e,i,s,!0).is.a("function"),r=e()),new tj(r,i,s,!0).is.a("number"),o();let a=null==t?e():e[t],l=null==t?r:"."+t;t9(this,"deltaMsgObj",l),t9(this,"initialDeltaValue",r),t9(this,"finalDeltaValue",a),t9(this,"deltaBehavior","decrease"),t9(this,"realDelta",r-a),this.assert(a-r<0,"expected "+l+" to decrease","expected "+l+" to not decrease")}function nO(e,t){let n;t&&t9(this,"message",t);let r=t9(this,"deltaMsgObj"),o=t9(this,"initialDeltaValue"),i=t9(this,"finalDeltaValue"),s=t9(this,"deltaBehavior"),a=t9(this,"realDelta");n="change"===s?Math.abs(i-o)===Math.abs(e):a===Math.abs(e),this.assert(n,"expected "+r+" to "+s+" by "+e,"expected "+r+" to not "+s+" b
1y "+e)}function nj(e,t){if(e===t)return!0;if(typeof t!=typeof e)return!1;if("object"!=typeof e||null===e)return e===t;if(!t)return!1;if(Array.isArray(e))return!!Array.isArray(t)&&e.every(function(e){return t.some(function(t){return nj(e,t)})});if(e instanceof Date)if(t instanceof Date)return e.getTime()===t.getTime();else return!1;return Object.keys(e).every(function(n){let r=e[n],o=t[n];return"object"==typeof r&&null!==r&&null!==o?nj(r,o):"function"==typeof r?r(o):o===r})}function nE(e,t){return new tj(e,t)}G(t6,"an"),tj.addChainableMethod("an",t6),tj.addChainableMethod("a",t6),G(t5,"SameValueZero"),G(t7,"includeChainingBehavior"),G(ne,"include"),tj.addChainableMethod("include",ne,t7),tj.addChainableMethod("contain",ne,t7),tj.addChainableMethod("contains",ne,t7),tj.addChainableMethod("includes",ne,t7),tj.addProperty("ok",function(){this.assert(t9(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")}),tj.addProperty("true",function(){this.assert(!0===t9(this,"object"),"expected #{this} to be true","expected #{this} to be false",!t9(this,"negate"))}),tj.addProperty("numeric",function(){let e=t9(this,"object");this.assert(["Number","BigInt"].includes(ea(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!t9(this,"negate"))}),tj.addProperty("callable",function(){let e=t9(this,"object"),t=t9(this,"ssfi"),n=t9(this,"message"),r=n?`${n}: `:"",o=t9(this,"negate"),i=o?`${r}expected ${e8(e)} not to be a callable function`:`${r}expected ${e8(e)} to be a callable function`,s=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(ea(e));if(s&&o||!s&&!o)throw new ec(i,void 0,t)}),tj.addProperty("false",function(){this.assert(!1===t9(this,"object"),"expected #{this} to be false","expected #{this} to be true",!!t9(this,"negate"))}),tj.addProperty("null",function(){this.assert(null===t9(this,"object"),"expected #{this} to be null","expected #{this} not to be null")}),tj.addProperty("undefined",function(){this.assert(void 0===t9(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined")}),tj.addProperty("NaN",function(){this.assert(tX(t9(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")}),G(nt,"assertExist"),tj.addProperty("exist",nt),tj.addProperty("exists",nt),tj.addProperty("empty",function(){let e=t9(this,"object"),t=t9(this,"ssfi"),n=t9(this,"message"),r;switch(n=n?n+": ":"",ea(e).toLowerCase()){case"array":case"string":r=e.length;break;case"map":case"set":r=e.size;break;case"weakmap":case"weakset":throw new ec(n+".empty was passed a weak collection",void 0,t);case"function":throw new ec((n+".empty was passed a function "+t2(e)).trim(),void 0,t);default:if(e!==Object(e))throw new ec(n+".empty was passed non-string primitive "+e8(e),void 0,t);r=Object.keys(e).length}this.assert(0===r,"expected #{this} to be empty","expected #{this} not to be empty")}),G(nn,"checkArguments"),tj.addProperty("arguments",nn),tj.addProperty("Arguments",nn),G(nr,"assertEqual"),tj.addMethod("equal",nr),tj.addMethod("equals",nr),tj.addMethod("eq",nr),G(no,"assertEql"),tj.addMethod("eql",no),tj.addMethod("eqls",no),G(ni,"assertAbove"),tj.addMethod("above",ni),tj.addMethod("gt",ni),tj.addMethod("greaterThan",ni),G(ns,"assertLeast"),tj.addMethod("least",ns),tj.addMethod("gte",ns),tj.addMethod("greaterThanOrEqual",ns),G(na,"assertBelow"),tj.addMethod("below",na),tj.addMethod("lt",na),tj.addMethod("lessThan",na),G(nl,"assertMost"),tj.addMethod("most",nl),tj.addMethod("lte",nl),tj.addMethod("lessThanOrEqual",nl),tj.addMethod("within",function(e,t,n){n&&t9(this,"message",n);let r=t9(this,"object"),o=t9(this,"doLength"),i=t9(this,"message"),s=i?i+": ":"",a=t9(this,"ssfi"),l=ea(r).toLowerCase(),c=ea(e).toLowerCase(),u=ea(t).toLowerCase(),f,h=!0,p="date"===c&&"date"===u?e.toISOString()+".."+t.toISOString():e+".."+t;if(o&&"map"!==l&&"set"!==l&&new tj(r,i,a,!0).to.have.property("length"),o||"date"!==l||"date"===c&&"date"===u?(!t4(e)||!t4(t))&&(o||t4(r))?f=s+"the arguments to within must be numbers":o||"date"===l||t4(r)?h=!1:f=s+"expected "+("string"===l?"'"+r+"'":r)+" to be a number or a date":f=s+"the arguments to within must be dates",h)throw new e
1c(f,void 0,a);if(o){let n="length",o;"map"===l||"set"===l?(n="size",o=r.size):o=r.length,this.assert(o>=e&&o<=t,"expected #{this} to have a "+n+" within "+p,"expected #{this} to not have a "+n+" within "+p)}else this.assert(r>=e&&r<=t,"expected #{this} to be within "+p,"expected #{this} to not be within "+p)}),G(nc,"assertInstanceOf"),tj.addMethod("instanceof",nc),tj.addMethod("instanceOf",nc),G(nu,"assertProperty"),tj.addMethod("property",nu),G(nf,"assertOwnProperty"),tj.addMethod("ownProperty",nf),tj.addMethod("haveOwnProperty",nf),G(nh,"assertOwnPropertyDescriptor"),tj.addMethod("ownPropertyDescriptor",nh),tj.addMethod("haveOwnPropertyDescriptor",nh),G(np,"assertLengthChain"),G(nd,"assertLength"),tj.addChainableMethod("length",nd,np),tj.addChainableMethod("lengthOf",nd,np),G(nm,"assertMatch"),tj.addMethod("match",nm),tj.addMethod("matches",nm),tj.addMethod("string",function(e,t){t&&t9(this,"message",t);let n=t9(this,"object");new tj(n,t9(this,"message"),t9(this,"ssfi"),!0).is.a("string"),this.assert(~n.indexOf(e),"expected #{this} to contain "+e8(e),"expected #{this} to not contain "+e8(e))}),G(ng,"assertKeys"),tj.addMethod("keys",ng),tj.addMethod("key",ng),G(ny,"assertThrows"),tj.addMethod("throw",ny),tj.addMethod("throws",ny),tj.addMethod("Throw",ny),G(nb,"respondTo"),tj.addMethod("respondTo",nb),tj.addMethod("respondsTo",nb),tj.addProperty("itself",function(){t9(this,"itself",!0)}),G(nw,"satisfy"),tj.addMethod("satisfy",nw),tj.addMethod("satisfies",nw),G(nv,"closeTo"),tj.addMethod("closeTo",nv),tj.addMethod("approximately",nv),G(nx,"isSubsetOf"),tj.addMethod("members",function(e,t){let n,r,o;t&&t9(this,"message",t);let i=t9(this,"object"),s=t9(this,"message"),a=t9(this,"ssfi");new tj(i,s,a,!0).to.be.iterable,new tj(e,s,a,!0).to.be.iterable;let l=t9(this,"contains"),c=t9(this,"ordered");l?(r="expected #{this} to be "+(n=c?"an ordered superset":"a superset")+" of #{exp}",o="expected #{this} to not be "+n+" of #{exp}"):(r="expected #{this} to have the same "+(n=c?"ordered members":"members")+" as #{exp}",o="expected #{this} to not have the same "+n+" as #{exp}");let u=t9(this,"deep")?t9(this,"eql"):void 0;this.assert(nx(e,i,u,l,c),r,o,e,i,!0)}),tj.addProperty("iterable",function(e){e&&t9(this,"message",e);let t=t9(this,"object");this.assert(void 0!=t&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t)}),G(nS,"oneOf"),tj.addMethod("oneOf",nS),G(nk,"assertChanges"),tj.addMethod("change",nk),tj.addMethod("changes",nk),G(n$,"assertIncreases"),tj.addMethod("increase",n$),tj.addMethod("increases",n$),G(nT,"assertDecreases"),tj.addMethod("decrease",nT),tj.addMethod("decreases",nT),G(nO,"assertDelta"),tj.addMethod("by",nO),tj.addProperty("extensible",function(){let e=t9(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")}),tj.addProperty("sealed",function(){let e=t9(this,"object"),t=e!==Object(e)||Object.isSealed(e);this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")}),tj.addProperty("frozen",function(){let e=t9(this,"object"),t=e!==Object(e)||Object.isFrozen(e);this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")}),tj.addProperty("finite",function(e){let t=t9(this,"object");this.assert("number"==typeof t&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number")}),G(nj,"compareSubset"),tj.addMethod("containSubset",function(e){let t=ei(this,"object"),n=e9.showDiff;this.assert(nj(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,n)}),G(nE,"expect"),nE.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),new ec(n=n||"expect.fail()",{actual:e,expected:t,operator:r},nE.fail)};var n_={};function nA(){function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||"function"==typeof Symbol&&this instanceof Symbol||"function"==typeof BigInt&&this instanceof BigInt?new tj(this.valueOf(),null,e):new tj(this,null,e)}function t(e){Object.defineProperty(this,"should",{value:e,enumerable:!0,configurable:!0,writable:!0})}G(e,"shouldGetter"),G(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});let n={};return n.fail=function(e,t,r,o){throw arguments.length<2&&(r=e,e=void 0),new ec(r=r||"should.fail()",{actual:e,expected:t,operator:o},n.fail)},n.equal=function(e,t,n){new tj(e,n).to.equal(t)},n.Throw=function(e,t,n,r){new tj(e,r).to.Throw(t,n)},n.exist=function(e,t){new tj(e,t).to.exist},n.not={},n.not.equal=function(e,t,n){new tj(e,n).to.not.equal(t)},n.not.Throw=function(e,t,n,r){new tj(e,r).to.not.Throw(t,n)},n.not.exist=function(e,t){new tj(e,t).to.not.exist},n.throw=n.Throw,n.not.throw=n.not.Throw,n}H(n_,{Should:()=>nP,should:()=>nM}),G(nA,"loadShould");var nM=nA,nP=nA;function nN(e,t){new tj(null,null,nN,!0).assert(e,t,"[ negation message unavailable ]")}for(let[e,t]of(G(nN,"assert"),nN.fail=function(e,t,n,r){throw arguments.length<2&&(n=e,e=void 0),new ec(n=n||"assert.fail()",{actual:e,expected:t,operator:r},nN.fail)},nN.isOk=function(e,t){new tj(e,t,nN.isOk,!0).is.ok},nN.isNotOk=function(e,t){new tj(e,t,nN.isNotOk,!0).is.not.ok},nN.equal=function(e,t,n){let r=new tj(e,n,nN.equal,!0);r.assert(t==ei(r,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)},nN.notEqual=function(e,t,n){let r=new tj(e,n,nN.notEqual,!0);r.assert(t!=ei(r,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)},nN.strictEqual=function(e,t,n){new tj(e,n,nN.strictEqual,!0).to.equal(t)}
1,nN.notStrictEqual=function(e,t,n){new tj(e,n,nN.notStrictEqual,!0).to.not.equal(t)},nN.deepEqual=nN.deepStrictEqual=function(e,t,n){new tj(e,n,nN.deepEqual,!0).to.eql(t)},nN.notDeepEqual=function(e,t,n){new tj(e,n,nN.notDeepEqual,!0).to.not.eql(t)},nN.isAbove=function(e,t,n){new tj(e,n,nN.isAbove,!0).to.be.above(t)},nN.isAtLeast=function(e,t,n){new tj(e,n,nN.isAtLeast,!0).to.be.least(t)},nN.isBelow=function(e,t,n){new tj(e,n,nN.isBelow,!0).to.be.below(t)},nN.isAtMost=function(e,t,n){new tj(e,n,nN.isAtMost,!0).to.be.most(t)},nN.isTrue=function(e,t){new tj(e,t,nN.isTrue,!0).is.true},nN.isNotTrue=function(e,t){new tj(e,t,nN.isNotTrue,!0).to.not.equal(!0)},nN.isFalse=function(e,t){new tj(e,t,nN.isFalse,!0).is.false},nN.isNotFalse=function(e,t){new tj(e,t,nN.isNotFalse,!0).to.not.equal(!1)},nN.isNull=function(e,t){new tj(e,t,nN.isNull,!0).to.equal(null)},nN.isNotNull=function(e,t){new tj(e,t,nN.isNotNull,!0).to.not.equal(null)},nN.isNaN=function(e,t){new tj(e,t,nN.isNaN,!0).to.be.NaN},nN.isNotNaN=function(e,t){new tj(e,t,nN.isNotNaN,!0).not.to.be.NaN},nN.exists=function(e,t){new tj(e,t,nN.exists,!0).to.exist},nN.notExists=function(e,t){new tj(e,t,nN.notExists,!0).to.not.exist},nN.isUndefined=function(e,t){new tj(e,t,nN.isUndefined,!0).to.equal(void 0)},nN.isDefined=function(e,t){new tj(e,t,nN.isDefined,!0).to.not.equal(void 0)},nN.isCallable=function(e,t){new tj(e,t,nN.isCallable,!0).is.callable},nN.isNotCallable=function(e,t){new tj(e,t,nN.isNotCallable,!0).is.not.callable},nN.isObject=function(e,t){new tj(e,t,nN.isObject,!0).to.be.a("object")},nN.isNotObject=function(e,t){new tj(e,t,nN.isNotObject,!0).to.not.be.a("object")},nN.isArray=function(e,t){new tj(e,t,nN.isArray,!0).to.be.an("array")},nN.isNotArray=function(e,t){new tj(e,t,nN.isNotArray,!0).to.not.be.an("array")},nN.isString=function(e,t){new tj(e,t,nN.isString,!0).to.be.a("string")},nN.isNotString=function(e,t){new tj(e,t,nN.isNotString,!0).to.not.be.a("string")},nN.isNumber=function(e,t){new tj(e,t,nN.isNumber,!0).to.be.a("number")},nN.isNotNumber=function(e,t){new tj(e,t,nN.isNotNumber,!0).to.not.be.a("number")},nN.isNumeric=function(e,t){new tj(e,t,nN.isNumeric,!0).is.numeric},nN.isNotNumeric=function(e,t){new tj(e,t,nN.isNotNumeric,!0).is.not.numeric},nN.isFinite=function(e,t){new tj(e,t,nN.isFinite,!0).to.be.finite},nN.isBoolean=function(e,t){new tj(e,t,nN.isBoolean,!0).to.be.a("boolean")},nN.isNotBoolean=function(e,t){new tj(e,t,nN.isNotBoolean,!0).to.not.be.a("boolean")},nN.typeOf=function(e,t,n){new tj(e,n,nN.typeOf,!0).to.be.a(t)},nN.notTypeOf=function(e,t,n){new tj(e,n,nN.notTypeOf,!0).to.not.be.a(t)},nN.instanceOf=function(e,t,n){new tj(e,n,nN.instanceOf,!0).to.be.instanceOf(t)},nN.notInstanceOf=function(e,t,n){new tj(e,n,nN.notInstanceOf,!0).to.not.be.instanceOf(t)},nN.include=function(e,t,n){new tj(e,n,nN.include,!0).include(t)},nN.notInclude=function(e,t,n){new tj(e,n,nN.notInclude,!0).not.include(t)},nN.deepInclude=function(e,t,n){new tj(e,n,nN.deepInclude,!0).deep.include(t)},nN.notDeepInclude=function(e,t,n){new tj(e,n,nN.notDeepInclude,!0).not.deep.include(t)},nN.nestedInclude=function(e,t,n){new tj(e,n,nN.nestedInclude,!0).nested.include(t)},nN.notNestedInclude=function(e,t,n){new tj(e,n,nN.notNestedInclude,!0).not.nested.include(t)},nN.deepNestedInclude=function(e,t,n){new tj(e,n,nN.deepNestedInclude,!0).deep.nested.include(t)},nN.notDeepNestedInclude=function(e,t,n){new tj(e,n,nN.notDeepNestedInclude,!0).not.deep.nested.include(t)},nN.ownInclude=function(e,t,n){new tj(e,n,nN.ownInclude,!0).own.include(t)},nN.notOwnInclude=function(e,t,n){new tj(e,n,nN.notOwnInclude,!0).not.own.include(t)},nN.deepOwnInclude=function(e,t,n){new tj(e,n,nN.deepOwnInclude,!0).deep.own.include(t)},nN.notDeepOwnInclude=function(e,t,n){new tj(e,n,nN.notDeepOwnInclude,!0).not.deep.own.include(t)},nN.match=function(e,t,n){new tj(e,n,nN.match,!0).to.match(t)},nN.notMatch=function(e,t,n){new tj(e,n,nN.notMatch,!0).to.not.match(t)},nN.property=function(e,t,n){new tj(e,n,nN.property,!0).to.have.property(t)},nN.notProperty=function(e,t,n){new tj(e,n,nN.notProperty,!0).to.not.have.property(t)},nN.propertyVal=function(e,t,n,r){new tj(e,r,nN.propertyVal,!0).to.have.property(t,n)},nN.notPropertyVal=function(e,t,n,r){new tj(e,r,nN.notPropertyVal,!0).to.not.have.property(t,n)},nN.deepPropertyVal=function(e,t,n,r){new tj(e,r,nN.deepPropertyVal,!0).to.have.deep.property(t,n)},nN.notDeepPropertyVal=function(e,t,n,r){new tj(e,r,nN.notDeepPropertyVal,!0).to.not.have.deep.property(t,n)},nN.ownProperty=function(e,t,n){new tj(e,n,nN.ownProperty,!0).to.have.own.property(t)},nN.notOwnProperty=function(e,t,n){new tj(e,n,nN.notOwnProperty,!0).to.not.have.own.property(t)},nN.ownPropertyVal=function(e,t,n,r){new tj(e,r,nN.ownPropertyVal,!0).to.have.own.property(t,n)},nN.notOwnPropertyVal=function(e,t,n,r){new tj(e,r,nN.notOwnPropertyVal,!0).to.not.have.own.property(t,n)},nN.deepOwnPropertyVal=function(e,t,n,r){new tj(e,r,nN.deepOwnPropertyVal,!0).to.have.deep.own.property(t,n)},nN.notDeepOwnPropertyVal=function(e,t,n,r){new tj(e,r,nN.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,n)},nN.nestedProperty=function(e,t,n){new tj(e,n,nN.nestedProperty,!0).to.have.nested.property(t)},nN.notNestedProperty=function(e,t,n){new tj(e,n,nN.notNestedProperty,!0).to.not.have.nested.property(t)},nN.nestedPropertyVal=function(e,t,n,r){new tj(e,r,nN.nestedPropertyVal,!0).to.have.nested.property(t,n)},nN.notNestedPropertyVal=function(e,t,n,r){new tj(e,r,nN.notNestedPropertyVal,!0).to.not.have.nested.property(t,n)},nN.deepNestedPropertyVal=function(e,t,n,r){new tj(e,r,nN.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,n)},nN.notDeepNestedPropertyVal=function(e,t,n,r){new tj(e,r,nN.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,n)},nN.lengthOf=function(e,t,n){new tj(e,n,nN.lengthOf,!0).to.have.lengthOf(t)},nN.hasAnyKeys=function(e,t,n){new tj(e,n,nN.hasAnyKeys,!0).to.have.any.keys(t)},nN.hasAllKeys=function(e,t,n){new tj(e,n,nN.hasAllKeys,!0).to.have.all.keys(t)},nN.containsAllKeys=function(e,t,n){new tj(e,n,nN.containsAllKeys,!0).to.contain.all.keys(t)},nN.doesNotHaveAnyKeys=function(e,t,n){new tj(e,n,nN.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)},nN.doesNotHaveAllKeys=function(e,t,n){new tj(e,n,nN.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)},nN.hasAnyDeepKeys=function(e,t,n){new tj(e,n,nN.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)},nN.hasAllDeepKeys=function(e,t,n){new tj(e,n,nN.hasAllDeepKeys,!0).to.have.all.deep.keys(t)},nN.containsAllDeepKeys=function(e,t,n){new tj(e,n,nN.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)},nN.doesNotHaveAnyDeepKeys=function(e,t,n){new tj(e,n,nN.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)},nN.doesNotHaveAllDeepKeys=function(e,t,n){new tj(e,n,nN.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)},nN.throws=function(e,t,n,r){return("string"==typeof t||t instanceof RegExp)&&(n=t,t=null),ei(new tj(e,r,nN.throws,!0).to.throw(t,n),"object")},nN.doesNotThrow=function(e,t,n,r){("string"==typeof t||t instanceof RegExp)&&(n=t,t=null),new tj(e,r,nN.doesNotThrow,!0).to.not.throw(t,n)},nN.operator=function(e,t,n,r){let 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;
1default:throw new ec((r=r?r+": ":r)+'Invalid operator "'+t+'"',void 0,nN.operator)}let i=new tj(o,r,nN.operator,!0);i.assert(!0===ei(i,"object"),"expected "+e8(e)+" to be "+t+" "+e8(n),"expected "+e8(e)+" to not be "+t+" "+e8(n))},nN.closeTo=function(e,t,n,r){new tj(e,r,nN.closeTo,!0).to.be.closeTo(t,n)},nN.approximately=function(e,t,n,r){new tj(e,r,nN.approximately,!0).to.be.approximately(t,n)},nN.sameMembers=function(e,t,n){new tj(e,n,nN.sameMembers,!0).to.have.same.members(t)},nN.notSameMembers=function(e,t,n){new tj(e,n,nN.notSameMembers,!0).to.not.have.same.members(t)},nN.sameDeepMembers=function(e,t,n){new tj(e,n,nN.sameDeepMembers,!0).to.have.same.deep.members(t)},nN.notSameDeepMembers=function(e,t,n){new tj(e,n,nN.notSameDeepMembers,!0).to.not.have.same.deep.members(t)},nN.sameOrderedMembers=function(e,t,n){new tj(e,n,nN.sameOrderedMembers,!0).to.have.same.ordered.members(t)},nN.notSameOrderedMembers=function(e,t,n){new tj(e,n,nN.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)},nN.sameDeepOrderedMembers=function(e,t,n){new tj(e,n,nN.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)},nN.notSameDeepOrderedMembers=function(e,t,n){new tj(e,n,nN.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)},nN.includeMembers=function(e,t,n){new tj(e,n,nN.includeMembers,!0).to.include.members(t)},nN.notIncludeMembers=function(e,t,n){new tj(e,n,nN.notIncludeMembers,!0).to.not.include.members(t)},nN.includeDeepMembers=function(e,t,n){new tj(e,n,nN.includeDeepMembers,!0).to.include.deep.members(t)},nN.notIncludeDeepMembers=function(e,t,n){new tj(e,n,nN.notIncludeDeepMembers,!0).to.not.include.deep.members(t)},nN.includeOrderedMembers=function(e,t,n){new tj(e,n,nN.includeOrderedMembers,!0).to.include.ordered.members(t)},nN.notIncludeOrderedMembers=function(e,t,n){new tj(e,n,nN.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)},nN.includeDeepOrderedMembers=function(e,t,n){new tj(e,n,nN.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)},nN.notIncludeDeepOrderedMembers=function(e,t,n){new tj(e,n,nN.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)},nN.oneOf=function(e,t,n){new tj(e,n,nN.oneOf,!0).to.be.oneOf(t)},nN.isIterable=function(e,t){if(void 0==e||!e[Symbol.iterator])throw new ec(t=t?`${t} expected ${e8(e)} to be an iterable`:`expected ${e8(e)} to be an iterable`,void 0,nN.isIterable)},nN.changes=function(e,t,n,r){3==arguments.length&&"function"==typeof t&&(r=n,n=null),new tj(e,r,nN.changes,!0).to.change(t,n)},nN.changesBy=function(e,t,n,r,o){if(4==arguments.length&&"function"==typeof t){let e=r;r=n,o=e}else 3==arguments.length&&(r=n,n=null);new tj(e,o,nN.changesBy,!0).to.change(t,n).by(r)},nN.doesNotChange=function(e,t,n,r){return 3==arguments.length&&"function"==typeof t&&(r=n,n=null),new tj(e,r,nN.doesNotChange,!0).to.not.change(t,n)},nN.changesButNotBy=function(e,t,n,r,o){if(4==arguments.length&&"function"==typeof t){let e=r;r=n,o=e}else 3==arguments.length&&(r=n,n=null);new tj(e,o,nN.changesButNotBy,!0).to.change(t,n).but.not.by(r)},nN.increases=function(e,t,n,r){return 3==arguments.length&&"function"==typeof t&&(r=n,n=null),new tj(e,r,nN.increases,!0).to.increase(t,n)},nN.increasesBy=function(e,t,n,r,o){if(4==arguments.length&&"function"==typeof t){let e=r;r=n,o=e}else 3==arguments.length&&(r=n,n=null);new tj(e,o,nN.increasesBy,!0).to.increase(t,n).by(r)},nN.doesNotIncrease=function(e,t,n,r){return 3==arguments.length&&"function"==typeof t&&(r=n,n=null),new tj(e,r,nN.doesNotIncrease,!0).to.not.increase(t,n)},nN.increasesButNotBy=function(e,t,n,r,o){if(4==arguments.length&&"function"==typeof t){let e=r;r=n,o=e}else 3==arguments.length&&(r=n,n=null);new tj(e,o,nN.increasesButNotBy,!0).to.increase(t,n).but.not.by(r)},nN.decreases=function(e,t,n,r){return 3==arguments.length&&"function"==typeof t&&(r=n,n=null),new tj(e,r,nN.decreases,!0).to.decrease(t,n)},nN.decreasesBy=function(e,t,n,r,o){if(4==arguments.length&&"function"==typeof t){let e=r;r=n,o=e}else 3==arguments.length&&(r=n,n=null);new tj(e,o,nN.decreasesBy,!0).to.decrease(t,n).by(r)},nN.doesNotDecrease=function(e,t,n,r){return 3==arguments.length&&"function"==typeof t&&(r=n,n=null),new tj(e,r,nN.doesNotDecrease,!0).to.not.decrease(t,n)},nN.doesNotDecreaseBy=function(e,t,n,r,o){if(4==arguments.length&&"function"==typeof t){let e=r;r=n,o=e}else 3==arguments.length&&(r=n,n=null);return new tj(e,o,nN.doesNotDecreaseBy,!0).to.not.decrease(t,n).by(r)},nN.decreasesButNotBy=function(e,t,n,r,o){if(4==arguments.length&&"function"==typeof t){let e=r;r=n,o=e}else 3==arguments.length&&(r=n,n=null);new tj(e,o,nN.decreasesButNotBy,!0).to.decrease(t,n).but.not.by(r)},nN.ifError=function(e){if(e)throw e},nN.isExtensible=function(e,t){new tj(e,t,nN.isExtensible,!0).to.be.extensible},nN.isNotExtensible=function(e,t){new tj(e,t,nN.isNotExtensible,!0).to.not.be.extensible},nN.isSealed=function(e,t){new tj(e,t,nN.isSealed,!0).to.be.sealed}
1,nN.isNotSealed=function(e,t){new tj(e,t,nN.isNotSealed,!0).to.not.be.sealed},nN.isFrozen=function(e,t){new tj(e,t,nN.isFrozen,!0).to.be.frozen},nN.isNotFrozen=function(e,t){new tj(e,t,nN.isNotFrozen,!0).to.not.be.frozen},nN.isEmpty=function(e,t){new tj(e,t,nN.isEmpty,!0).to.be.empty},nN.isNotEmpty=function(e,t){new tj(e,t,nN.isNotEmpty,!0).to.not.be.empty},nN.containsSubset=function(e,t,n){new tj(e,n).to.containSubset(t)},nN.doesNotContainSubset=function(e,t,n){new tj(e,n).to.not.containSubset(t)},[["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"]]))nN[t]=nN[e];var nC=[];function nI(e){let t={use:nI,AssertionError:ec,util:Z,config:e9,expect:nE,assert:nN,Assertion:tj,...n_};return~nC.indexOf(e)||(e(t,Z),nC.push(e)),t}G(nI,"use");var nD=n(30934),nF=n(98240),nR=n(28327),nL=n(87308);class nq{0;1;constructor(e,t){this[0]=e,this[1]=t}}function nB(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)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function nz(e,t){let n=e.length,r=t.length;if(0===n||0===r)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 n=e.substring(o-s),r=t.indexOf(n);if(-1===r)return i;s+=r,(0===r||e.substring(o-s)===t.substring(0,s))&&(i=s,s++)}}let nW=/[^a-z0-9]/i,nU=/\s/,nV=/[\r\n]/,nK=/\n\r?\n$/,nG=/^\r?\n\r?\n/;function nH(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),o=n.match(nW),i=r.match(nW),s=o&&n.match(nU),a=i&&r.match(nU),l=s&&n.match(nV),c=a&&r.match(nV),u=l&&e.match(nK),f=c&&t.match(nG);if(u||f)return 5;if(l||c)return 4;if(o&&!s&&a)return 3;if(s||a)return 2;if(o||i)return 1;return 0}let nJ="Compared values have no visual difference.";var nZ={},nY=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(function(){if(o)return nZ;o=1,Object.defineProperty(nZ,"__esModule",{value:!0}),nZ.default=function(e,r,o,i){c("aLength",e),c("bLength",r),u("isCommon",o),u("foundSubsequence",i);let s=t(0,e,0,r,o);if(0!==s&&i(s,0,0),e!==s||r!==s){let t=n(s,e-1,s,r-1,o),a=e-t,c=r-t,u=s+t;e!==u&&r!==u&&l(0,s,a,s,c,!1,[{foundSubsequence:i,isCommon:o}],[0],[0],{aCommonFollowing:0,aCommonPreceding:0,aEndPreceding:0,aStartFollowing:0,bCommonFollowing:0,bCommonPreceding:0,bEndPreceding:0,bStartFollowing:0,nChangeFollowing:0,nChangePreceding:0,nCommonFollowing:0,nCommonPreceding:0}),0!==t&&i(t,a,c)}};let e="diff-sequences",t=(e,t,n,r,o)=>{let i=0;for(;e<t&&n<r&&o(e,n);)e+=1,n+=1,i+=1;return i},n=(e,t,n,r,o)=>{let i=0;for(;e<=t&&n<=r&&o(t,r);)t-=1,r-=1,i+=1;return i},r=(e,n,r,o,i,s,a)=>{let l=0,c=-e,u=s[0],f=u;s[l]+=t(u+1,n,o+u-c+1,r,i);let h=e<a?e:a;for(l+=1,c+=2;l<=h;l+=1,c+=2){if(l!==e&&f<s[l])u=s[l];else if(n<=(u=f+1))return l-1;f=s[l],s[l]=u+t(u+1,n,o+u-c+1,r,i)}return a},i=(e,t,r,o,i,s,a)=>{let l=0,c=e,u=s[0],f=u;s[l]-=n(t,u-1,r,o+u-c-1,i);let h=e<a?e:a;for(l+=1,c-=2;l<=h;l+=1,c-=2){if(l!==e&&s[l]<f)u=s[l];else if((u=f-1)<t)return l-1;f=s[l],s[l]=u-n(t,u-1,r,o+u-c-1,i)}return a},s=(e,r,o,i,s,a,l,c,u,f,h)=>{let p=i-r,d=s-i-(o-r),m=-d-(e-1),g=-d+(e-1),y=0,b=e<c?e:c;for(let c=0,w=-e;c<=b;c+=1,w+=2){let b=0===c||c!==e&&y<l[c],v=b?l[c]:y,x=b?v:v+1,S=p+x-w,k=t(x+1,o,S+1,s,a),$=x+k;if(y=l[c],l[c]=$,m<=w&&w<=g){let t=(e-1-(w+d))/2;if(t<=f&&u[t]-1<=$){let t=p+v-(b?w+1:w-1),l=n(r,v,i,t,a),c=v-l+1,u=t-l+1;h.nChangePreceding=e-1,e-1==c+u-r-i?(h.aEndPreceding=r,h.bEndPreceding=i):(h.aEndPreceding=c,h.bEndPreceding=u),h.nCommonPreceding=l,0!==l&&(h.aCommonPreceding=c,h.bCommonPreceding=u),h.nCommonFollowing=k,0!==k&&(h.aCommonFollowing=x+1,h.bCommonFollowing=S+1);let f=$+1,d=S+k+1;return h.nChangeFollowing=e-1,e-1==o+s-f-d?(h.aStartFollowing=o,h.bStartFollowing=s):(h.aStartFollowing=f,h.bStartFollowing=d),!0}}}return!1},a=(e,r,o,i,s,a,l,c,u,f,h)=>{let p=s-o,d=s-i-(o-r),m=d-e,g=d+e,y=0,b=e<f?e:f;for(let f=0,w=e;f<=b;f+=1,w-=2){let b=0===f||f!==e&&u[f]<y,v=b?u[f]:y,x=b?v:v-1,S=p+x-w,k=n(r,x-1,i,S-1,a),$=x-k;
1if(y=u[f],u[f]=$,m<=w&&w<=g){let n=(e+(w-d))/2;if(n<=c&&$-1<=l[n]){let n=S-k;if(h.nChangePreceding=e,e===$+n-r-i?(h.aEndPreceding=r,h.bEndPreceding=i):(h.aEndPreceding=$,h.bEndPreceding=n),h.nCommonPreceding=k,0!==k&&(h.aCommonPreceding=$,h.bCommonPreceding=n),h.nChangeFollowing=e-1,1===e)h.nCommonFollowing=0,h.aStartFollowing=o,h.bStartFollowing=s;else{let n=p+v-(b?w-1:w+1),r=t(v,o,n,s,a);h.nCommonFollowing=r,0!==r&&(h.aCommonFollowing=v,h.bCommonFollowing=n);let i=v+r,l=n+r;e-1==o+s-i-l?(h.aStartFollowing=o,h.bStartFollowing=s):(h.aStartFollowing=i,h.bStartFollowing=l)}return!0}}}return!1},l=(t,n,o,c,u,f,h,p,d,m)=>{if(u-c<o-n){if((f=!f)&&1===h.length){let{foundSubsequence:e,isCommon:t}=h[0];h[1]={foundSubsequence:(t,n,r)=>{e(t,r,n)},isCommon:(e,n)=>t(n,e)}}let e=n,t=o;n=c,o=u,c=e,u=t}let{foundSubsequence:g,isCommon:y}=h[+!!f];((t,n,o,l,c,u,f,h,p)=>{let d=l-n,m=c-o,g=o-n,y=c-l,b=y-g,w=g,v=g;if(f[0]=n-1,h[0]=o,b%2==0){let e=(t||b)/2,s=(g+y)/2;for(let t=1;t<=s;t+=1)if(w=r(t,o,c,d,u,f,w),t<e)v=i(t,n,l,m,u,h,v);else if(a(t,n,o,l,c,u,f,w,h,v,p))return}else{let e=((t||b)+1)/2,a=(g+y+1)/2,x=1;for(w=r(1,o,c,d,u,f,w),x+=1;x<=a;x+=1)if(v=i(x-1,n,l,m,u,h,v),x<e)w=r(x,o,c,d,u,f,w);else if(s(x,n,o,l,c,u,f,w,h,v,p))return}throw Error(`${e}: no overlap aStart=${n} aEnd=${o} bStart=${l} bEnd=${c}`)})(t,n,o,c,u,y,p,d,m);let{nChangePreceding:b,aEndPreceding:w,bEndPreceding:v,nCommonPreceding:x,aCommonPreceding:S,bCommonPreceding:k,nCommonFollowing:$,aCommonFollowing:T,bCommonFollowing:O,nChangeFollowing:j,aStartFollowing:E,bStartFollowing:_}=m;n<w&&c<v&&l(b,n,w,c,v,f,h,p,d,m),0!==x&&g(x,S,k),0!==$&&g($,T,O),E<o&&_<u&&l(j,E,o,_,u,f,h,p,d,m)},c=(t,n)=>{if("number"!=typeof n)throw TypeError(`${e}: ${t} typeof ${typeof n} is not a number`);if(!Number.isSafeInteger(n))throw RangeError(`${e}: ${t} value ${n} is not a safe integer`);if(n<0)throw RangeError(`${e}: ${t} value ${n} is a negative integer`)},u=(t,n)=>{let r=typeof n;if("function"!==r)throw TypeError(`${e}: ${t} typeof ${r} is not a function`)};return nZ}());function nQ(e,t,n,r,o,i){return 0!==e.length?n(`${r} ${e.replace(/\s+$/,e=>o(e))}`):" "!==r?n(r):t&&0!==i.length?n(`${r} ${i}`):""}function nX(e,t,n,r,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${n+1},${r-n} @@`)}let n0=e=>e;function n1(e={}){var t,n;return{...{aAnnotation:"Expected",aColor:nF.Ay.green,aIndicator:"-",bAnnotation:"Received",bColor:nF.Ay.red,bIndicator:"+",changeColor:nF.Ay.inverse,changeLineTrailingSpaceColor:n0,commonColor:nF.Ay.dim,commonIndicator:" ",commonLineTrailingSpaceColor:n0,compareKeys:void 0,contextLines:5,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:nF.Ay.yellow,printBasicPrototype:!1,truncateThreshold:0,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:n0},...e,compareKeys:(t=e.compareKeys)&&"function"==typeof t?t:void 0,contextLines:"number"==typeof(n=e.contextLines)&&Number.isSafeInteger(n)&&n>=0?n:5}}function n2(e){return 1===e.length&&0===e[0].length}function n3(e,t,n){let r,o;return function({aAnnotation:e,aColor:t,aIndicator:n,bAnnotation:r,bColor:o,bIndicator:i,includeChangeCounts:s,omitAnnotationLines:a},l){if(a)return"";let c="",u="";if(s){let t=String(l.a),o=String(l.b),s=r.length-e.length,a=" ".repeat(Math.max(0,s)),f=" ".repeat(Math.max(0,-s)),h=o.length-t.length,p=" ".repeat(Math.max(0,h)),d=" ".repeat(Math.max(0,-h));c=`${a}  ${n} ${p}${t}`,u=`${f}  ${i} ${d}${o}`}let f=`${n} ${e}${c}`,h=`${i} ${r}${u}`;return`${t(f)}
2${o(h)}
3
4`}(n,(r=0,o=0,e.forEach(e=>{switch(e[0]){case -1:r+=1;break;case 1:o+=1}}),{a:r,b:o}))+(n.expand?e.map((e,t,r)=>{let o=e[1],i=0===t||t===r.length-1;switch(e[0]){case -1:return function(e,t,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return nQ(e,t,n,r,o,i)}(o,i,n);case 1:return function(e,t,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return nQ(e,t,n,r,o,i)}(o,i,n);default:return function(e,t,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return nQ(e,t,n,r,o,i)}(o,i,n)}}).join("\n"):function(e,t){let n=e.length,r=t.contextLines,o=r+r,i=n,s=!1,a=0,l=0;for(;l!==n;){let t=l;for(;l!==n&&0===e[l][0];)l+=1;if(t!==l)if(0===t)l>r&&(i-=l-r,s=!0);else if(l===n){let e=l-t;e>r&&(i-=e-r,s=!0)}else{let e=l-t;e>o&&(i-=e-o,a+=1)}for(;l!==n&&0!==e[l][0];)l+=1}let c=0!==a||s;0!==a?i+=a+1:s&&(i+=1);let u=i-1,f=[],h=0;c&&f.push("");let p=0,d=0,m=0,g=0,y=e=>{let n=f.length;f.push(function(e,t,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return nQ(e,t,n,r,o,i)}(e,0===n||n===u,t)),m+=1,g+=1},b=e=>{let n=f.length;f.push(function(e,t,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return nQ(e,t,n,r,o,i)}(e,0===n||n===u,t)),m+=1},w=e=>{let n=f.length;f.push(function(e,t,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return nQ(e,t,n,r,o,i)}(e,0===n||n===u,t)),g+=1};for(l=0;l!==n;){let i=l;for(;l!==n&&0===e[l][0];)l+=1;if(i!==l)if(0===i){l>r&&(p=i=l-r,d=i,m=p,g=d);for(let t=i;t!==l;t+=1)y(e[t][1])}else if(l===n){let t=l-i>r?i+r:l;for(let n=i;n!==t;n+=1)y(e[n][1])}else{let n=l-i;if(n>o){let s=i+r;for(let t=i;t!==s;t+=1)y(e[t][1]);f[h]=nX(p,m,d,g,t),h=f.length,f.push("");let a=n-o;p=m+a,d=g+a,m=p,g=d;for(let t=l-r;t!==l;t+=1)y(e[t][1])}else for(let t=i;t!==l;t+=1)y(e[t][1])}for(;l!==n&&-1===e[l][0];)b(e[l][1]),l+=1;for(;l!==n&&1===e[l][0];)w(e[l][1]),l+=1}return c&&(f[h]=nX(p,m,d,g,t)),f.join("\n")}(e,n))+(t?n.truncateAnnotationColor(`
5${n.truncateAnnotation}`):"")}function n4(e,t,n){let r=n1(n),[o,i]=n9(n2(e)?[]:e,n2(t)?[]:t,r);return n3(o,i,r)}function n9(e,t,n){let r=(null==n?void 0:n.truncateThreshold)??!1,o=Math.max(Math.floor((null==n?void 0: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,l=[],c=0,u=0;for(nY(i,s,(n,r)=>e[n]===t[r],(n,r,o)=>{for(;c!==r;c+=1)l.push(new nq(-1,e[c]));for(;u!==o;
5u+=1)l.push(new nq(1,t[u]));for(;0!==n;n-=1,c+=1,u+=1)l.push(new nq(0,t[u]))});c!==i;c+=1)l.push(new nq(-1,e[c]));for(;u!==s;u+=1)l.push(new nq(1,t[u]));return[l,a]}function n8(e){if(void 0===e)return"undefined";if(null===e)return"null";if(Array.isArray(e))return"array";if("boolean"==typeof e)return"boolean";if("function"==typeof e)return"function";else if("number"==typeof e)return"number";else if("string"==typeof e)return"string";else if("bigint"==typeof e)return"bigint";else if("object"==typeof e){if(null!=e){if(e.constructor===RegExp)return"regexp";else if(e.constructor===Map)return"map";else if(e.constructor===Set)return"set";else if(e.constructor===Date)return"date"}return"object"}else if("symbol"==typeof e)return"symbol";throw Error(`value of unknown type: ${e}`)}function n6(e){return e.includes("\r\n")?"\r\n":"\n"}class n5{op;line;lines;changeColor;constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t}pushSubstring(e){this.pushDiff(new nq(this.op,e))}pushLine(){var e,t,n;this.lines.push(1!==this.line.length?new nq(this.op,(e=this.op,t=this.line,n=this.changeColor,t.reduce((t,r)=>t+(0===r[0]?r[1]:r[0]===e&&0!==r[1].length?n(r[1]):""),""))):this.line[0][0]===this.op?this.line[0]:new nq(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return 0===this.line.length}pushDiff(e){this.line.push(e)}align(e){let t=e[1];if(t.includes("\n")){let e=t.split("\n"),n=e.length-1;e.forEach((e,t)=>{t<n?(this.pushSubstring(e),this.pushLine()):0!==e.length&&this.pushSubstring(e)})}else this.pushDiff(e)}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0}}class n7{deleteBuffer;insertBuffer;lines;constructor(e,t){this.deleteBuffer=e,this.insertBuffer=t,this.lines=[]}pushDiffCommonLine(e){this.lines.push(e)}pushDiffChangeLines(e){let t=0===e[1].length;(!t||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(e),(!t||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(e)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(e){let t=e[0],n=e[1];if(n.includes("\n")){let e=n.split("\n"),r=e.length-1;e.forEach((e,n)=>{if(0===n){let n=new nq(t,e);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(n)):(this.pushDiffChangeLines(n),this.flushChangeLines())}else n<r?this.pushDiffCommonLine(new nq(t,e)):0!==e.length&&this.pushDiffChangeLines(new nq(t,e))})}else this.pushDiffChangeLines(e)}getLines(){return this.flushChangeLines(),this.lines}}function re(e,t,n,r){let[o,i]=function(e,t,n){let r=(null==n?void 0:n.truncateThreshold)??!1,o=Math.max(Math.floor((null==n?void 0:n.truncateThreshold)??0),0),i=e.length,s=t.length;if(r){let n=e.includes("\n"),r=t.includes("\n"),a=n6(e),l=n6(t),c=n?`${e.split(a,o).join(a)}
6`:e,u=r?`${t.split(l,o).join(l)}
7`:t;i=c.length,s=u.length}let a=i!==e.length||s!==t.length,l=0,c=0,u=[];return nY(i,s,(n,r)=>e[n]===t[r],(n,r,o)=>{l!==r&&u.push(new nq(-1,e.slice(l,r))),c!==o&&u.push(new nq(1,t.slice(c,o))),l=r+n,c=o+n,u.push(new nq(0,t.slice(o,c)))}),l!==i&&u.push(new nq(-1,e.slice(l))),c!==s&&u.push(new nq(1,t.slice(c))),[u,a]}(e,t,r);return n&&function(e){let t=!1,n=[],r=0,o=null,i=0,s=0,a=0,l=0,c=0;for(;i<e.length;)0===e[i][0]?(n[r++]=i,s=l,a=c,l=0,c=0,o=e[i][1]):(1===e[i][0]?l+=e[i][1].length:c+=e[i][1].length,o&&o.length<=Math.max(s,a)&&o.length<=Math.max(l,c)&&(e.splice(n[r-1],0,new nq(-1,o)),e[n[r-1]+1][0]=1,r--,i=--r>0?n[r-1]:-1,s=0,a=0,l=0,c=0,o=null,t=!0)),i++;for(t&&function e(t){var n;let r;t.push(new nq(0,""));let o=0,i=0,s=0,a="",l="";for(;o<t.length;)switch(t[o][0]){case 1:s++,l+=t[o][1],o++;break;case -1:i++,a+=t[o][1],o++;break;case 0:i+s>1?(0!==i&&0!==s&&(0!==(r=function(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)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}(l,a))&&(o-i-s>0&&0===t[o-i-s-1][0]?t[o-i-s-1][1]+=l.substring(0,r):(t.splice(0,0,new nq(0,l.substring(0,r))),o++),l=l.substring(r),a=a.substring(r)),0!==(r=nB(l,a))&&(t[o][1]=l.substring(l.length-r)+t[o][1],l=l.substring(0,l.length-r),a=a.substring(0,a.length-r))),o-=i+s,t.splice(o,i+s),a.length&&(t.splice(o,0,new nq(-1,a)),o++),l.length&&(t.splice(o,0,new nq(1,l)),o++),o++):0!==o&&0===t[o-1][0]?(t[o-1][1]+=t[o][1],t.splice(o,1)):o++,s=0,i=0,a="",l=""}(null==(n=t.at(-1))?void 0:n[1])===""&&t.pop();let c=!1;for(o=1;o<t.length-1;)0===t[o-1][0]&&0===t[o+1][0]&&(t[o][1].substring(t[o][1].length-t[o-1][1].length)===t[o-1][1]?(t[o][1]=t[o-1][1]+t[o][1].substring(0,t[o][1].length-t[o-1][1].length),t[o+1][1]=t[o-1][1]+t[o+1][1],t.splice(o-1,1),c=!0):t[o][1].substring(0,t[o+1][1].length)===t[o+1][1]&&(t[o-1][1]+=t[o+1][1],t[o][1]=t[o][1].substring(t[o+1][1].length)+t[o+1][1],t.splice(o+1,1),c=!0)),o++;c&&e(t)}(e),function(e){let t=1;for(;t<e.length-1;
7){if(0===e[t-1][0]&&0===e[t+1][0]){let n=e[t-1][1],r=e[t][1],o=e[t+1][1],i=nB(n,r);if(i){let e=r.substring(r.length-i);n=n.substring(0,n.length-i),r=e+r.substring(0,r.length-i),o=e+o}let s=n,a=r,l=o,c=nH(n,r)+nH(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 e=nH(n,r)+nH(r,o);e>=c&&(c=e,s=n,a=r,l=o)}e[t-1][1]!==s&&(s?e[t-1][1]=s:(e.splice(t-1,1),t--),e[t][1]=a,l?e[t+1][1]=l:(e.splice(t+1,1),t--))}t++}}(e),i=1;i<e.length;){if(-1===e[i-1][0]&&1===e[i][0]){let t=e[i-1][1],n=e[i][1],r=nz(t,n),o=nz(n,t);r>=o?(r>=t.length/2||r>=n.length/2)&&(e.splice(i,0,new nq(0,n.substring(0,r))),e[i-1][1]=t.substring(0,t.length-r),e[i+1][1]=n.substring(r),i++):(o>=t.length/2||o>=n.length/2)&&(e.splice(i,0,new nq(0,t.substring(0,o))),e[i-1][0]=1,e[i-1][1]=n.substring(0,n.length-o),e[i+1][0]=-1,e[i+1][1]=t.substring(o),i++),i++}i++}}(o),[o,i]}function rt(e,t){let{commonColor:n}=n1(t);return n(e)}let{AsymmetricMatcher:rn,DOMCollection:rr,DOMElement:ro,Immutable:ri,ReactElement:rs,ReactTestComponent:ra}=nD.Nx,rl=[ra,rs,ro,rr,ri,rn,nD.Nx.Error],rc={maxDepth:20,plugins:rl},ru={callToJSON:!1,maxDepth:8,plugins:rl};function rf(e,t,n){if(Object.is(e,t))return"";let r=n8(e),o=r,i=!1;if("object"===r&&"function"==typeof e.asymmetricMatch){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||"function"!=typeof e.getExpectedType)return;i="string"===(o=e.getExpectedType())}if(o!==n8(t)){let{aAnnotation:r,aColor:o,aIndicator:i,bAnnotation:a,bColor:l,bIndicator:c}=n1(n),u=rm(ru,n),f=(0,nD.GP)(e,u),h=(0,nD.GP)(t,u);function s(e){return e.length<=1e5?e:`${e.slice(0,1e5)}...`}f=s(f),h=s(h);let p=`${o(`${i} ${r}:`)} 
8${f}`,d=`${l(`${c} ${a}:`)} 
9${h}`;return`${p}
10
11${d}`}if(!i)switch(r){case"string":return n4(e.split("\n"),t.split("\n"),n);case"boolean":case"number":var a=e,l=t,c=n;let u=(0,nD.GP)(a,rc),f=(0,nD.GP)(l,rc);return u===f?"":n4(u.split("\n"),f.split("\n"),c);case"map":return rd(rh(e),rh(t),n);case"set":return rd(rp(e),rp(t),n);default:return rd(e,t,n)}}function rh(e){return new Map(Array.from(e.entries()).sort())}function rp(e){return new Set(Array.from(e.values()).sort())}function rd(e,t,n){let r,o=!1;try{let o=rm(rc,n);r=rg(e,t,o,n)}catch{o=!0}let i=rt(nJ,n);return(void 0===r||r===i)&&((r=rg(e,t,rm(ru,n),n))===i||o||(r=`${rt("Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",n)}
12
13${r}`)),r}function rm(e,t){let{compareKeys:n,printBasicPrototype:r,maxDepth:o}=n1(t);return{...e,compareKeys:n,printBasicPrototype:r,maxDepth:o??e.maxDepth}}function rg(e,t,n,r){let o={...n,indent:0},i=(0,nD.GP)(e,o),s=(0,nD.GP)(t,o);if(i===s)return rt(nJ,r);{let o=(0,nD.GP)(e,n),a=(0,nD.GP)(t,n);return function(e,t,n,r,o){if(n2(e)&&n2(n)&&(e=[],n=[]),n2(t)&&n2(r)&&(t=[],r=[]),e.length!==n.length||t.length!==r.length)return n4(e,t,o);let[i,s]=n9(n,r,o),a=0,l=0;return i.forEach(n=>{switch(n[0]){case -1:n[1]=e[a],a+=1;break;case 1:n[1]=t[l],l+=1;break;default:n[1]=t[l],a+=1,l+=1}}),n3(i,s,n1(o))}(o.split("\n"),a.split("\n"),i.split("\n"),s.split("\n"),r)}}function ry(e){return"Object"===(0,nL.Pw)(e)&&"function"==typeof e.asymmetricMatch}function rb(e,t){let n=(0,nL.Pw)(e);return n===(0,nL.Pw)(t)&&("Object"===n||"Array"===n)}function rw(e,t,n){let{aAnnotation:r,bAnnotation:o}=n1(n);if("string"==typeof t&&"string"==typeof e&&t.length>0&&e.length>0&&t.length<=2e4&&e.length<=2e4&&t!==e){var i,s;if(t.includes("\n")||e.includes("\n")){if(t!==e&&0!==t.length&&0!==e.length){let r=t.includes("\n")||e.includes("\n"),[o,i]=re(r?`${t}
14`:t,r?`${e}
15`:e,!0,n);if(function(e,t){if(t){let t=e.length-1;return e.some((e,n)=>0===e[0]&&(n!==t||"\n"!==e[1]))}return e.some(e=>0===e[0])}(o,r)){let e=n1(n);return n3(function(e,t){let n=new n5(-1,t),r=new n5(1,t),o=new n7(n,r);return e.forEach(e=>{switch(e[0]){case -1:n.align(e);break;case 1:r.align(e);break;default:o.align(e)}}),o.getLines()}(o,e.changeColor),i,e)}}return n4(t.split("\n"),e.split("\n"),n)}let[a]=re(t,e,!0),l=a.some(e=>0===e[0]),c=function(...e){let t=e.reduce((e,t)=>t.length>e?t.length:e,0);return e=>`${e}: ${" ".repeat(t-e.length)}`}(r,o),u=c(r)+(i=rx(a,-1,l),nF.Ay.green(rv((0,nR.As)(i)))),f=c(o)+(s=rx(a,1,l),nF.Ay.red(rv((0,nR.As)(s))));return`${u}
16${f}`}let a=(0,nL.Go)(t,{forceWritable:!0}),{replacedExpected:l,replacedActual:c}=function e(t,n,r=new WeakSet,o=new WeakSet){return t instanceof Error&&n instanceof Error&&void 0!==t.cause&&void 0===n.cause?delete t.cause:!rb(t,n)||r.has(t)||o.has(n)||(r.add(t),o.add(n),(0,nL.C
16o)(n).forEach(i=>{let s=n[i],a=t[i];if(ry(s))s.asymmetricMatch(a)&&(t[i]=s);else if(ry(a))a.asymmetricMatch(s)&&(n[i]=a);else if(rb(a,s)){let l=e(a,s,r,o);t[i]=l.replacedActual,n[i]=l.replacedExpected}})),{replacedActual:t,replacedExpected:n}}((0,nL.Go)(e,{forceWritable:!0}),a);return rf(l,c,n)}function rv(e){return e.replace(/\s+$/gm,e=>"\xb7".repeat(e.length))}function rx(e,t,n){return e.reduce((e,r)=>e+(0===r[0]?r[1]:r[0]===t?n?nF.Ay.inverse(r[1]):r[1]:""),"")}function rS(e){return"function"==typeof e&&"_isMockFunction"in e&&!0===e._isMockFunction}let rk=new Set,r$=new Set,rT=new WeakMap;function rO(e={}){var t;let{originalImplementation:n,restore:r,mockImplementation:o,resetToMockImplementation:i,resetToMockName:s}=e;r&&rk.add(r);let a={mockImplementation:void 0,mockOriginal:n,mockName:"vi.fn()",onceMockImplementations:[]},l=function(){let e={calls:[],contexts:[],instances:[],invocationCallOrder:[],settledResults:[],results:[],get lastCall(){return e.calls.at(-1)}};return e}(),c=function({state:e,config:t,name:n,prototypeState:r,prototypeConfig:o,keepMembersImplementation:i,mockImplementation:s,prototypeMembers:a=[]}){let l=t.mockOriginal,c=n||(null==l?void 0:l.name)||"Mock",u={[c]:function(...n){var s,h,p,d,m,g,y,b,w,v,x,S,k,$,T,O,j,E;let _,A;s=n,h=e,p=r,h.calls.push(s),null==p||p.calls.push(s),d=rM++,m=e,g=r,m.invocationCallOrder.push(d),null==g||g.invocationCallOrder.push(d);let M={type:"incomplete",value:void 0},P={type:"incomplete",value:void 0};y=M,b=e,w=r,b.results.push(y),null==w||w.results.push(y),v=P,x=e,S=r,x.settledResults.push(v),null==S||S.settledResults.push(v);let N=new.target?void 0:this,[C,I]=(k=N,$=e,T=r,[$.instances.push(k),null==T?void 0:T.instances.push(k)]),[D,F]=(O=N,j=e,E=r,[j.contexts.push(O),null==E?void 0:E.contexts.push(O)]),R=t.onceMockImplementations.shift()||t.mockImplementation||(null==o?void 0:o.onceMockImplementations.shift())||(null==o?void 0:o.mockImplementation)||l||function(){},L=!1;try{if(new.target)for(let e of(_=Reflect.construct(R,n,new.target),a)){let t=_[e];if(t!==f.prototype[e])continue;let n=rS(t),r=n?t.mock:void 0,o=n?rT.get(t):void 0;_[e]=rO({originalImplementation:i?null==o?void 0:o.mockOriginal:void 0,prototypeState:r,prototypeConfig:o,keepMembersImplementation:i})}else _=R.apply(this,n)}catch(e){throw A=e,L=!0,e instanceof TypeError&&e.message.includes("is not a constructor")&&console.warn(`[vitest] The ${u[c].getMockName()} mock did not use 'function' or 'class' in its implementation, see https://vitest.dev/api/vi#vi-spyon for examples.`),e}finally{L?(M.type="throw",M.value=A,P.type="rejected",P.value=A):(M.type="return",M.value=_,new.target&&(e.contexts[D-1]=_,e.instances[C-1]=_,null!=F&&r&&(r.contexts[F-1]=_),null!=I&&r&&(r.instances[I-1]=_)),_ instanceof Promise?_.then(e=>{P.type="fulfilled",P.value=e},e=>{P.type="rejected",P.value=e}):(P.type="fulfilled",P.value=_))}return _}},f=u[c],h=l||s;return h&&function(e,t){let{properties:n,descriptors:r}=function(e){let t=new Set,n={};for(;e&&e!==Object.prototype&&e!==Function.prototype;){for(let r of[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)])n[r]||rP.has(r)||(t.add(r),n[r]=Object.getOwnPropertyDescriptor(e,r));e=Object.getPrototypeOf(e)}return{properties:t,descriptors:n}}(t);for(let t of n){let n=r[t];r_(e,t)||Object.defineProperty(e,t,n)}}(f,h),f}({config:a,state:l,...e});return Object.defineProperty(c,"length",{writable:!0,enumerable:!1,value:(null==(t=o||n)?void 0:t.length)??0,configurable:!0}),s&&(a.mockName=c.name||"vi.fn()"),rT.set(c,a),r$.add(c),c._isMockFunction=!0,c.getMockImplementation=()=>a.onceMockImplementations[0]||a.mockImplementation,Object.defineProperty(c,"mock",{configurable:!1,enumerable:!0,writable:!1,value:l}),c.mockImplementation=function(e){return a.mockImplementation=e,c},c.mockImplementationOnce=function(e){return a.onceMockImplementations.push(e),c},c.withImplementation=function(e,t){let n=a.mockImplementation,r=a.onceMockImplementations,o=()=>{a.mockImplementation=n,a.onceMockImplementations=r};a.mockImplementation=e,a.onceMockImplementations=[];let i=t();return"object"==typeof i&&"function"==typeof(null==i?void 0:i.then)?i.then(()=>(o(),c)):(o(),c)},c.mockReturnThis=function(){return c.mockImplementation(function(){return this})},c.mockReturnValue=function(e){return c.mockImplementation(()=>e)},c.mockReturnValueOnce=function(e){return c.mockImplementationOnce(()=>e)},c.mockResolvedValue=function(e){return c.mockImplementation(()=>Promise.resolve(e))},c.mockResolvedValueOnce=function(e){return c.mockImplementationOnce(()=>Promise.resolve(e))},c.mockRejectedValue=function(e){return c.mockImplementation(()=>Promise.reject(e))},c.mockRejectedValueOnce=function(e){return c.mockImplementationOnce(()=>Promise.reject(e))},c.mockClear=function(){return l.calls=[],l.contexts=[],l.instances=[],l.invocationCallOrder=[],l.results=[],l.settledResults=[],c},c.mockReset=function(){return c.mockClear(),a.mockImplementation=i?o:void 0,a.mockName=s&&c.name||"vi.fn()",a.onceMockImplementations=[],c},c.mockRestore=function(){return c.mockReset(),null==r?void 0:r()},c.mockName=function(e){return"string"==typeof e&&(a.mockName=e),c},c.getMockName=function(){return a.mockName||"vi.fn()"},Symbol.dispose&&(c[Symbol.dispose]=()=>c.mockRestore()),o&&c.mockImplementation(o),c}function rj(e){return null!=e&&rS(e)?e:rO({mockImplementation:e,resetToMockImplementation:!0})}function rE(e,t,n){let r;rA(null!=e,"The vi.spyOn() function could not find an object to spy upon. The first argument must be defined."),rA("object"==typeof e||"function"==typeof e,"Vitest cannot spy on a primitive value.");let[o,i]=r_(e,t)||[];rA(i||t in e,`The property "${String(t)}" is not defined on the ${typeof e}.`);let s=n||"value",a=!1;"value"===s&&i&&null==i.value&&i.get&&(s="get",a=!0),r=i?i[s]:"value"!==s?()=>e[t]:e[t];let l=a&&r?r():r,c=typeof l;if(rA("function"===c||"value"!==s&&null==r,`vi.spyOn() can only spy on a function. Received ${c}.`),rS(l))return l;let u=n=>{let{value:r,...o}=i||{configurable:!0,writable:!0};"value"!==s&&delete o.writable,o[s]=n,Object.defineProperty(e,t,o)},f=rO({restore:()=>{o!==e?Reflect.deleteProperty(e,t):i&&!r?Object.defineProperty(e,t,i):u(r)},originalImplementation:l,resetToMockName:!0});try{u(a?()=>f:f)}catch(n){if(n instanceof TypeError&&Symbol.toStringTag&&"Module"===e[Symbol.toStringTag]&&(n.message.includes("Cannot redefine property")||n.message.includes("Cannot replace module namespace")||n.message.includes("can't redefine non-configurable property")))throw TypeError(`Cannot spy on export "${String(t)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`,{cause:n});throw n}return f}function r_(e,t){let n=Object.getOwnPropertyDescriptor(e,t);if(n)return[e,n];let r=Object.getPrototypeOf(e);for(;null!==r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return[r,e];r=Object.getPrototypeOf(r)}}function rA(e,t){if(!e)throw Error(t)}let rM=1,rP=new Set(["length","name","prototype",Symbol.for("nodejs.util.promisify.custom")]);var rN=n(81029).hp;let rC=Object.getPrototypeOf({});function rI(e){return e instanceof Error?`<unserializable>: ${e.message}`:"string"==typeof e?`<unserializable>: ${e}`:"<unserializable>"}
16function rD(e,t=new WeakMap){if(!e||"string"==typeof e)return e;if(e instanceof Error&&"toJSON"in e&&"function"==typeof e.toJSON){let n=e.toJSON();return n&&n!==e&&"object"==typeof n&&("string"==typeof e.message&&rF(()=>n.message??(n.message=rR(e.message))),"string"==typeof e.stack&&rF(()=>n.stack??(n.stack=e.stack)),"string"==typeof e.name&&rF(()=>n.name??(n.name=e.name)),null!=e.cause&&rF(()=>n.cause??(n.cause=rD(e.cause,t)))),rD(n,t)}if("function"==typeof e)return`Function<${e.name||"anonymous"}>`;if("symbol"==typeof e)return e.toString();if("object"!=typeof e)return e;if(void 0!==rN&&e instanceof rN)return`<Buffer(${e.length}) ...>`;if("undefined"!=typeof Uint8Array&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(e&&(e["@@__IMMUTABLE_ITERABLE__@@"]||e["@@__IMMUTABLE_RECORD__@@"]))return rD(e.toJSON(),t);if(e instanceof Promise||e.constructor&&"AsyncFunction"===e.constructor.prototype)return"Promise";if("undefined"!=typeof Element&&e instanceof Element)return e.tagName;if("function"==typeof e.toJSON)return rD(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=Array(e.length);return t.set(e,n),e.forEach((e,r)=>{try{n[r]=rD(e,t)}catch(e){n[r]=rI(e)}}),n}{let n=Object.create(null);t.set(e,n);let r=e;for(;r&&r!==rC;)Object.getOwnPropertyNames(r).forEach(r=>{if(!(r in n))try{n[r]=rD(e[r],t)}catch(e){delete n[r],n[r]=rI(e)}}),r=Object.getPrototypeOf(r);return e instanceof Error&&rF(()=>e.message=rR(e.message)),n}}function rF(e){try{return e()}catch{}}function rR(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}let rL=Symbol.for("matchers-object"),rq=Symbol.for("$$jest-matchers-object"),rB=Symbol.for("expect-global"),rz=Symbol.for("asymmetric-matchers-object"),rW={toSatisfy(e,t,n){let{printReceived:r,printExpected:o,matcherHint:i}=this.utils,s=t(e);return{pass:s,message:()=>s?`\
17${i(".not.toSatisfy","received","")}
18
19Expected value to not satisfy:
20${n||o(t)}
21Received:
22${r(e)}`:`\
23${i(".toSatisfy","received","")}
24
25Expected value to satisfy:
26${n||o(t)}
27
28Received:
29${r(e)}`}},toBeOneOf(e,t){let n,{equals:r,customTesters:o}=this,{printReceived:i,printExpected:s,matcherHint:a}=this.utils;if(Array.isArray(t))n=0===t.length||t.some(t=>r(t,e,o));else if(t instanceof Set)n=0===t.size||t.has(e)||[...t].some(t=>r(t,e,o));else throw TypeError(`You must provide an array or set to ${a(".toBeOneOf")}, not '${typeof t}'.`);return{pass:n,message:()=>n?`\
30${a(".not.toBeOneOf","received","")}
31
32Expected value to not be one of:
33${s(t)}
34Received:
35${i(e)}`:`\
36${a(".toBeOneOf","received","")}
37
38Expected value to be one of:
39${s(t)}
40
41Received:
42${i(e)}`}}},rU=nF.Ay.green,rV=nF.Ay.red,rK=nF.Ay.inverse,rG=nF.Ay.bold,rH=nF.Ay.dim;function rJ(e,t="received",n="expected",r={}){let{comment:o="",isDirectExpectCall:i=!1,isNot:s=!1,promise:a="",secondArgument:l="",expectedColor:c=rU,receivedColor:u=rV,secondArgumentColor:f=rU}=r,h="",p="expect";return i||""===t||(h+=rH(`${p}(`)+u(t),p=")"),""!==a&&(h+=rH(`${p}.`)+a,p=""),s&&(h+=`${rH(`${p}.`)}not`,p=""),e.includes(".")?p+=e:(h+=rH(`${p}.`)+e,p=""),""===n?p+="()":(h+=rH(`${p}(`)+c(n),l&&(h+=rH(", ")+f(l)),p=")"),""!==o&&(p+=` // ${o}`),""!==p&&(h+=rH(p)),h}function rZ(e){return e.replace(/\s+$/gm,e=>"\xb7".repeat(e.length))}function rY(e){return rV(rZ((0,nR.As)(e)))}function rQ(e){return rU(rZ((0,nR.As)(e)))}function rX(){return{EXPECTED_COLOR:rU,RECEIVED_COLOR:rV,INVERTED_COLOR:rK,BOLD_WEIGHT:rG,DIM_COLOR:rH,diff:rf,matcherHint:rJ,printReceived:rY,printExpected:rQ,printDiffOrStringify:rw,printWithType:r0}}function r0(e,t,n){let r=(0,nL.Pw)(t);return("null"!==r&&"undefined"!==r?`${e} has type:  ${r}
43`:"")+`${e} has value: ${n(t)}`}function r1(){return globalThis[rq].customEqualityTesters}function r2(e,t,n,r){return function e(t,n,r,o,i,s){let a,l=!0,c=function(e,t,n){let r=r3(e),o=r3(t);if(!r||!o){if(r)return e.asymmetricMatch(t,n);if(o)return t.asymmetricMatch(e,n)}}(t,n,i);if(void 0!==c)return c;let u={equals:r2};for(let e=0;e<i.length;e++){let r=i[e].call(u,t,n,i);if(void 0!==r)return r}if("function"==typeof URL&&t instanceof URL&&n instanceof URL)return t.href===n.href;if(Object.is(t,n))return!0;
43if(null===t||null===n)return t===n;let f=Object.prototype.toString.call(t);if(f!==Object.prototype.toString.call(n))return!1;switch(f){case"[object Boolean]":case"[object String]":case"[object Number]":if(typeof t!=typeof n)return!1;if("object"!=typeof t&&"object"!=typeof n)return Object.is(t,n);return Object.is(t.valueOf(),n.valueOf());case"[object Date]":{let e=+t,r=+n;return e===r||Number.isNaN(e)&&Number.isNaN(r)}case"[object RegExp]":return t.source===n.source&&t.flags===n.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 t.equals(n);case"[object Temporal.Duration]":return t.toString()===n.toString()}if("object"!=typeof t||"object"!=typeof n)return!1;if(r5(t)&&r5(n))return t.isEqualNode(n);let h=r.length;for(;h--;)if(r[h]===t)return o[h]===n;else if(o[h]===n)return!1;if(r.push(t),o.push(n),"[object Array]"===f&&t.length!==n.length)return!1;if(t instanceof Error&&n instanceof Error)try{var p,d,m,g,y,b;let a;return p=t,d=n,m=r,g=o,y=i,b=s,a=Object.getPrototypeOf(p)===Object.getPrototypeOf(d)&&p.name===d.name&&p.message===d.message,void 0!==d.cause&&a&&(a=e(p.cause,d.cause,m,g,y,b)),p instanceof AggregateError&&d instanceof AggregateError&&a&&(a=e(p.errors,d.errors,m,g,y,b)),a&&(a=e({...p},{...d},m,g,y,b)),a}finally{r.pop(),o.pop()}let w=r4(t,s),v=w.length;if(r4(n,s).length!==v)return!1;for(;v--;)if(!(l=s(n,a=w[v])&&e(t[a],n[a],r,o,i,s)))return!1;return r.pop(),o.pop(),l}(e,t,[],[],n=n||[],r?r8:r9)}function r3(e){return!!e&&"object"==typeof e&&"asymmetricMatch"in e&&r6("Function",e.asymmetricMatch)}Function.prototype.toString;function r4(e,t){let n=[];for(let r in e)t(e,r)&&n.push(r);return n.concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable))}function r9(e,t){return r8(e,t)&&void 0!==e[t]}function r8(e,t){return Object.hasOwn(e,t)}function r6(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function r5(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&"number"==typeof e.nodeType&&"nodeName"in e&&"string"==typeof e.nodeName&&"isEqualNode"in e&&"function"==typeof e.isEqualNode}let r7="@@__IMMUTABLE_KEYED__@@",oe="@@__IMMUTABLE_SET__@@",ot="@@__IM
43MUTABLE_ORDERED__@@";function on(e){return null!=e&&"object"==typeof e&&!Array.isArray(e)}let or=Symbol.iterator;function oo(e){return!!(null!=e&&e[or])}function oi(e,t,n=[],r=[],o=[]){if("object"!=typeof e||"object"!=typeof t||Array.isArray(e)||Array.isArray(t)||!oo(e)||!oo(t))return;if(e.constructor!==t.constructor)return!1;let i=r.length;for(;i--;)if(r[i]===e)return o[i]===t;r.push(e),o.push(t);let s=[...n.filter(e=>e!==oi),function(e,t){return oi(e,t,[...n],[...r],[...o])}];if(void 0!==e.size)if(e.size!==t.size)return!1;else{if(r6("Set",e)||e&&e[oe]&&!e[ot]){let n=!0;for(let r of e)if(!t.has(r)){let e=!1;for(let n of t)!0===r2(r,n,s)&&(e=!0);if(!1===e){n=!1;break}}return r.pop(),o.pop(),n}if(r6("Map",e)||e&&e[r7]&&!e[ot]){let n=!0;for(let r of e)if(!t.has(r[0])||!r2(r[1],t.get(r[0]),s)){let e=!1;for(let n of t){let t=r2(r[0],n[0],s),o=!1;!0===t&&(o=r2(r[1],n[1],s)),!0===o&&(e=!0)}if(!1===e){n=!1;break}}return r.pop(),o.pop(),n}}let a=t[or]();for(let t of e){let e=a.next();if(e.done||!r2(t,e.value,s))return!1}if(!a.next().done)return!1;
43if(!(e&&on(e)&&e["@@__IMMUTABLE_LIST__@@"])&&!(e&&on(e)&&e[r7]&&e[ot])&&!(e&&on(e)&&e[oe]&&e[ot])&&!(e&&on(e)&&e["@@__IMMUTABLE_RECORD__@@"])&&!r2(Object.entries(e),Object.entries(t),s))return!1;return r.pop(),o.pop(),!0}function os(e,t){return!!e&&"object"==typeof e&&e!==Object.prototype&&(Object.hasOwn(e,t)||os(Object.getPrototypeOf(e),t))}function oa(e,t,n=[]){let r=n.filter(e=>e!==oa),o=(e=new WeakMap)=>(t,n)=>{if((0,nL.Gv)(n)&&!(n instanceof Error)&&!Array.isArray(n)&&!(n instanceof Date))return Object.keys(n).every(i=>{if(null!=n[i]&&"object"==typeof n[i]){if(e.has(n[i]))return r2(t[i],n[i],r);e.set(n[i],!0)}let s=null!=t&&os(t,i)&&r2(t[i],n[i],[...r,o(e)]);return e.delete(n[i]),s})};return o()(e,t)}function ol(e,t){if(null!=e&&null!=t&&e.constructor!==t.constructor)return!1}function oc(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!1;for(let e=0;e<n.byteLength;e++)if(n.getUint8(e)!==r.getUint8(e))return!1;return!0}function ou(e,t,n=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let r=Object.keys(e),o=Object.keys(t);return r2(e,t,n.filter(e=>e!==ou),!0)&&r2(r,o)}function of(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>{var n;return null==(n=Object.getOwnPropertyDescriptor(e,t))?void 0:n.enumerable})]}if(!Object.hasOwn(globalThis,rL)){let e=new WeakMap,t=Object.create(null),n=[],r=Object.create(null);Object.defineProperty(globalThis,rL,{get:()=>e}),Object.defineProperty(globalThis,rq,{configurable:!0,get:()=>({state:e.get(globalThis[rB]),matchers:t,customEqualityTesters:n})}),Object.defineProperty(globalThis,rz,{get:()=>r})}function oh(e){return globalThis[rL].get(e)}function op(e,t){let n=globalThis[rL],r=n.get(t)||{},o=Object.defineProperties(r,{...Object.getOwnPropertyDescriptors(r),...Object.getOwnPropertyDescriptors(e)});n.set(t,o)}class od{$$typeof=Symbol.for("jest.asymmetricMatcher");constructor(e,t=!1){this.sample=e,this.inverse=t}getMatcherContext(e){return{...oh(e||globalThis[rB]),equals:r2,isNot:this.inverse,customTesters:r1(),utils:{...rX(),diff:rf,stringify:nR.As,iterableEquality:oi,subsetEquality:oa}}}}od.prototype[Symbol.for("chai/inspect")]=function(e){let t=(0,nR.As)(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{…}`};class om extends od{constructor(e,t=!1){if(!r6("String",e))throw Error("Expected is not a string");super(e,t)}asymmetricMatch(e){let t=r6("String",e)&&e.includes(this.sample);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}}class og extends od{asymmetricMatch(e){return null!=e}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}}class oy extends od{constructor(e,t=!1){super(e,t)}getPrototype(e){return Object.getPrototypeOf?Object.getPrototypeOf(e):e.constructor.prototype===e?null:e.constructor.prototype}hasProperty(e,t){return!!e&&(!!Object.hasOwn(e,t)||this.hasProperty(this.getPrototype(e),t))}getProperties(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>{var n;return null==(n=Object.getOwnPropertyDescriptor(e,t))?void 0:n.enumerable})]}asymmetricMatch(e,t){if("object"!=typeof this.sample)throw TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let n=!0;for(let i of this.getProperties(this.sample)){var r,o;if(!this.hasProperty(e,i)||!r2((null==(r=Object.getOwnPropertyDescriptor(this.sample,i))?void 0:r.value)??this.sample[i],(null==(o=Object.getOwnPropertyDescriptor(e,i))?void 0:o.value)??e[i],t)){n=!1;break}}return this.inverse?!n:n}toString(){return`Object${this.inverse?"Not":""}Containing`}getExpectedType(){return"object"}}class ob extends od{constructor(e,t=!1){super(e,t)}asymmetricMatch(e,t){if(!Array.isArray(this.sample))throw TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let n=0===this.sample.length||Array.isArray(e)&&this.sample.every(n=>e.some(e=>r2(n,e,t)));return this.inverse?!n:n}
43toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}}class ow extends od{constructor(e){if(void 0===e)throw TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(e)}fnNameFor(e){if(e.name)return e.name;let t=Function.prototype.toString.call(e).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return t?t[1]:"<anonymous>"}asymmetricMatch(e){return this.sample===String?"string"==typeof e||e instanceof String:this.sample===Number?"number"==typeof e||e instanceof Number:this.sample===Function?"function"==typeof e||"function"==typeof e:this.sample===Boolean?"boolean"==typeof e||e instanceof Boolean:this.sample===BigInt?"bigint"==typeof e||e instanceof BigInt:this.sample===Symbol?"symbol"==typeof e||e instanceof Symbol:this.sample===Object?"object"==typeof e:e 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)}>`}}class ov extends od{constructor(e,t=!1){if(!r6("String",e)&&!r6("RegExp",e))throw Error("Expected is not a String or a RegExp");super(new RegExp(e),t)}asymmetricMatch(e){let t=r6("String",e)&&this.sample.test(e);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}}class ox extends od{precision;constructor(e,t=2,n=!1){if(!r6("Number",e))throw Error("Expected is not a Number");if(!r6("Number",t))throw Error("Precision is not a Number");super(e),this.inverse=n,this.precision=t}asymmetricMatch(e){if(!r6("Number",e))return!1;let t=!1;return t=e===1/0&&this.sample===1/0||e===-1/0&&this.sample===-1/0||Math.abs(this.sample-e)<10**-this.precision/2,this.inverse?!t:t}toString(){return`Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return"number"}toAsymmetricMatcher(){var e;return[this.toString(),this.sample,`(${(e=this.precision,`${e} digit${1===e?"":"s"}`)})`].join(" ")}}class oS extends od{result;constructor(e,t=!1){if(!function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&e["~standard"]&&"function"==typeof e["~standard"].validate}(e))throw TypeError("SchemaMatching expected to receive a Standard Schema.");super(e,t)}asymmetricMatch(e){let t=this.sample["~standard"].validate(e);if(t instanceof Promise)throw TypeError("Async schema validation is not supported in asymmetric matchers.");this.result=t;let n=!this.result.issues||0===this.result.issues.length;return this.inverse?!n:n}toString(){return`Schema${this.inverse?"Not":""}Matching`}getExpectedType(){return"object"}toAsymmetricMatcher(){var e;let{utils:t}=this.getMatcherContext();return((null==(e=this.result)?void 0:e.issues)||[]).length>0?`${this.toString()} ${t.stringify(this.result,void 0,{printBasicPrototype:!1})}`:this.toString()}}function ok(e,t,n){let r=e.flag(t,"negate")?"not.":"",o=`${e.flag(t,"_name")}(${n?"expected":""})`,i=e.flag(t,"promise"),s=i?`.${i}`:"";return`expect(actual)${s}.${r}${o}`}function o$(e,t,n,r){if(e&&t instanceof Promise){t=t.finally(()=>{if(!e.promises)return;let n=e.promises.indexOf(t);-1!==n&&e.promises.splice(n,1)}),e.promises||(e.promises=[]),e.promises.push(t);let o=!1;return e.onFinished??(e.onFinished=[]),e.onFinished.push(()=>{if(!o){var e;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.
44`+((null==(e=globalThis.__vitest_worker__)?void 0:e.onFilterStackTrace)||(e=>e||""))(r.stack))}}),{then:(e,n)=>(o=!0,t.then(e,n)),catch:e=>t.catch(e),finally:e=>t.finally(e),[Symbol.toStringTag]:"Promise"}}return t}function oT(e,t){var n;e.result||(e.result={state:"fail"}),e.result.state="fail",(n=e.result).errors||(n.errors=[]),e.result.errors.push(function e(t,n,r=new WeakSet){if(!t||"object"!=typeof t)return{message:String(t)};(t.showDiff||void 0===t.showDiff&&void 0!==t.expected&&void 0!==t.actual)&&(t.diff=rw(t.actual,t.expected,{...n,...t.diffOptions})),"expected"in t&&"string"!=typeof t.expected&&(t.expected=(0,nR.As)(t.expected,10)),"actual"in t&&"string"!=typeof t.actual&&(t.actual=(0,nR.As)(t.actual,10));try{r.has(t)||"object"!=typeof t.cause||(r.add(t),t.cause=e(t.cause,n,r))}catch{}try{return rD(t)}catch(e){return rD(Error(`Failed to fully serialize error: ${null==e?void 0:e.message}
45Inner error message: ${null==t?void 0:t.message}`))}}(t))}function oO(e,t,n){return function(...r){if("withTest"!==t&&e.flag(this,"_name",t),!e.flag(this,"soft"))return n.apply(this,r);let o=e.flag(this,"vitest-test");
45if(!o)throw Error("expect.soft() can only be used inside a test");try{let e=n.apply(this,r);if(e&&"object"==typeof e&&"function"==typeof e.then)return e.then(nL.lQ,e=>{oT(o,e)});return e}catch(e){oT(o,e)}}}function oj(e){let t=e%10,n=e%100;return 1===t&&11!==n?`${e}st`:2===t&&12!==n?`${e}nd`:3===t&&13!==n?`${e}rd`:`${e}th`}function oE(e,t,n){return e.mock.calls.length&&(t+=nF.Ay.gray(`
46
47Received: 
48
49${e.mock.calls.map((t,r)=>{let o=nF.Ay.bold(`  ${oj(r+1)} ${e.getMockName()} call:
50
51`);return n?o+=rf(n,t,{omitAnnotationLines:!0}):o+=(0,nR.As)(t).split("\n").map(e=>`    ${e}`).join("\n"),o+="\n"}).join("\n")}`)),t+=nF.Ay.gray(`
52
53Number of calls: ${nF.Ay.bold(e.mock.calls.length)}
54`)}class o_ extends Error{constructor(e,t,n){super(e),this.actual=t,this.expected=n}}var oA=n(23412),oM=n(41545),oP=n(95704);function oN(){let e=globalThis.__vitest_worker__;if(!e)throw Error('Vitest failed to access its internal state.\n\nOne of the following is possible:\n- "vitest" is imported directly without running "vitest" command\n- "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)\n- "vitest" is imported inside Vite / Vitest config file\n- Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues\n');return e}function oC(){return void 0!==oP&&!!oP.send}async function oI(){await function(){let{setTimeout:e}=(0,oM.GO)();return new Promise(t=>e(t,0))}();let e=oN(),t=[],n=e.resolvingModules.size;for(let[n,r]of e.evaluatedModules.idToModuleMap)r.promise&&!r.evaluated&&t.push(r.promise);(t.length||n)&&(await Promise.allSettled(t),await oI())}var oD=n(43882),oF=n(95704);let oR=/^[A-Za-z]:\//,oL=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,oq=function(...e){e=e.map(e=>(function(e=""){return e?e.replace(/\\/g,"/").replace(oR,e=>e.toUpperCase()):e})(e));let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let o=r>=0?e[r]:void 0!==oF&&"function"==typeof oF.cwd?oF.cwd().replace(/\\/g,"/"):"/";o&&0!==o.length&&(t=`${o}/${t}`,n=oB(o))}return(t=function(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;else s="/";if("/"===s){if(o===a-1||1===i);else if(2===i){if(n.length<2||2!==r||"."!==n[n.length-1]||"."!==n[n.length-2]){if(n.length>2){let e=n.lastIndexOf("/");-1===e?(n="",r=0):r=(n=n.slice(0,e)).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&&-1!==i?++i:i=-1}return n}(t,!n),n&&!oB(t))?`/${t}`:t.length>0?t:"."},oB=function(e){return oL.test(e)};var oz="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",oW=new Uint8Array(64),oU=new Uint8Array(128);for(let e=0;e<oz.length;e++){let t=oz.charCodeAt(e);oW[e]=t,oU[t]=e}function oV(e,t){let n=0,r=0,o=0;do n|=(31&(o=oU[e.next()]))<<r,r+=5;while(32&o);let i=1&n;return n>>>=1,i&&(n=-0x80000000|-n),t+n}function oK(e,t){return!(e.pos>=t)&&44!==e.peek()}var oG=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:n}=this,r=t.indexOf(e,n);return -1===r?t.length:r}};function oH(e,t){return e[0]-t[0]}var oJ=!1;function oZ(e,t,n,r){return{source:e,line:t,column:n,name:r}}function oY(e){return null!=e}function oQ(e){return null!=e&&"object"==typeof e&&!Array.isArray(e)}let oX=/^\s*at .*(?:\S:\d+|\(native\))/m,o0=/^(?:eval@)?(?:\[native code\])?$/,o1=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/node_modules/chai/","/node_modules/tinyspy/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai","/browser-playwright/dist/locators.js","/browser-webdriverio/dist/locators.js","/browser-preview/dist/locators.js",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function o2(e){if(!e.includes(":"))return[e];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!t)return[e];let n=t[1];if(n.startsWith("async ")&&(n=n.slice(6)),n.startsWith("http:")||n.startsWith("https:")){let e=new URL(n);e.searchParams.delete("import"),e.searchParams.delete("browserv"),n=e.pathname+e.hash+e.search}if(n.startsWith("/@fs/")){let e=/^\/@fs\/[a-zA-Z]:\//.test(n);n=n.slice(e?5:4)}return[n,t[2]||void 0,t[3]||void 0]}function o3(e,t={}){let{ignoreStackEntries:n=o1}=t;return(oX.test(e)?e.split("\n").map(e=>(function(e){let t=e.trim();if(!oX.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]=o2(r?r[1]:n),a=r&&n||"",l=o&&["eval","<anonymous>"].includes(o)?void 0:o;return l&&i&&s?(a.startsWith("async ")&&(a=a.slice(6)),l.startsWith("file://")&&(l=l.slice(7)),l=l.startsWith("node:")||l.startsWith("internal:")?l:oq(l),a&&(a=a.replace(/__vite_ssr_import_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:a,file:l,line:Number.parseInt(i),column:Number.parseInt(s)}):null})(e)).filter(oY):e.split("\n").map(e=>(function(e){let t,n=e.trim();if(o0.test(n)||(n.includes(" > eval")&&(n=n.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!n.includes("@")))return null;let r=-1,o="";for(let e=0;e<n.length;e++)if("@"===n[e]){let i=n.slice(e+1);if(i.includes(":")&&i.length>=3){r=e,o=i,t=e>0?n.slice(0,e):void 0;break}}if(-1===r||!o.includes(":")||o.length<3)return null;
54let[i,s,a]=o2(o);return i&&s&&a?{file:i,method:t||"",line:Number.parseInt(s),column:Number.parseInt(a)}:null})(e)).filter(oY)).map(e=>{var r;t.getUrlId&&(e.file=t.getUrlId(e.file));let o=null==(r=t.getSourceMap)?void 0:r.call(t,e.file);if(!o||"object"!=typeof o||!o.version)return o4(n,e.file)?null:e;let i=function(e,t){let n=function(e,t){var n,r,o,i,s,a;let l,{line:c,column:u,bias:f}=t;if(--c<0)throw Error("`line` must be greater than 0 (lines start at line 1)");if(u<0)throw Error("`column` must be greater than or equal to 0 (columns start at column 0)");let h=(n=e)._decoded||(n._decoded=function(e){let{length:t}=e,n=new oG(e),r=[],o=0,i=0,s=0,a=0,l=0;do{let e=n.indexOf(";"),t=[],c=!0,u=0;for(o=0;n.pos<e;){let r;(o=oV(n,o))<u&&(c=!1),u=o,oK(n,e)?(i=oV(n,i),s=oV(n,s),a=oV(n,a),r=oK(n,e)?[o,i,s,a,l=oV(n,l)]:[o,i,s,a]):r=[o],t.push(r),n.pos++}c||t.sort(oH),r.push(t),n.pos=e+1}while(n.pos<=t);return r}(n._encoded));if(c>=h.length)return oZ(null,null,null,null);let p=h[c],d=(r=p,o=e._decodedMemo,i=c,s=u,a=f||1,l=function(e,t,n,r){let{lastKey:o,lastNeedle:i,lastIndex:s}=n,a=0,l=e.length-1;if(r===o){if(t===i)return oJ=-1!==s&&e[s][0]===t,s;t>=i?a=-1===s?0:s:l=s}return n.lastKey=r,n.lastNeedle=t,n.lastIndex=function(e,t,n,r){for(;n<=r;){let o=n+(r-n>>1),i=e[o][0]-t;if(0===i)return oJ=!0,o;i<0?n=o+1:r=o-1}return oJ=!1,n-1}(e,t,a,l)}(r,s,o,i),(oJ?l=(-1===a?function(e,t,n){for(let r=n+1;r<e.length&&e[r][0]===t;n=r++);return n}:function(e,t,n){for(let r=n-1;r>=0&&e[r][0]===t;n=r--);return n})(r,s,l):-1===a&&l++,-1===l||l===r.length)?-1:l);if(-1===d)return oZ(null,null,null,null);let m=p[d];if(1===m.length)return oZ(null,null,null,null);let{names:g,resolvedSources:y}=e;return oZ(y[m[1]],m[2]+1,m[3],5===m.length?g[m[4]]:null)}(e,t);return null==n.column?null:n}(new o9(o,e.file),e);if(!i)return e;let{line:s,column:a,source:l,name:c}=i,u=l||e.file;return(u.match(/\/\w:\//)&&(u=u.slice(1)),o4(n,u))?null:null!=s&&null!=a?{line:s,column:a,file:u,method:c||e.method}:e}).filter(e=>null!=e)}function o4(e,t){return e.some(e=>t.match(e))}class o9{_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(e,t){this.map=e;let{mappings:n,names:r,sources:o}=e;this.version=e.version,this.names=r||[],this._encoded=n||"",this._decodedMemo={lastKey:-1,lastNeedle:-1,lastIndex:-1},this.url=t,this.resolvedSources=(o||[]).map(e=>oq(e||"",t))}}let o8=/\r?\n/;async function o6(e,t){let r=(await n.e(29014).then(n.bind(n,29014))).default,o=new Set(t.map(e=>e.file));await Promise.all(Array.from(o).map(async n=>{let o=t.filter(e=>e.file===n),i=await e.readSnapshotFile(n),s=new r(i);for(let e of o){let t=function(e,t,n){let r=e.split(o8),o=/\r\n/.test(e)?2:1,i=0;if(t>r.length)return e.length;for(let e=0;e<t-1;e++)i+=r[e].length+o;return i+n}(i,e.line,e.column);!function(e,t,n,r){let{code:o,index:i}=function(e,t){let n=t-ie.length;if(e.slice(n,t)===ie)return{code:e.slice(n),index:n};let r=t-it.length;return e.slice(t-r,t)===it?{code:e.slice(t-r),index:t-r}:{code:e.slice(t),index:t}}(e,n),s=ir.exec(o),a=/toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/.exec(o);if(!s||s.index!==(null==a?void 0:a.index))return function(e,t,n,r){let o=e.slice(n),i=o5.exec(o);if(!i)return;let s=function(e){let t=-1,n=null,r=0,o=0,i=null;for(;t<=e.length;){i=e[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}(o=o.slice(i.index));if(null===s)return;s+=n+i.index;let a=function(e,t){let n=1,r=0;for(;n!==r&&t<e.length;){let o=e[t++];"{"===o?n++:"}"===o&&r++}return t}(e,n+i.index+i[0].length),l=`, ${o7(r,e,n)}`;a===s?t.appendLeft(s,l):t.overwrite(a,s,l)}(e,t,i,r);let l=s[1],c=i+s.index+s[0].length,u=o7(r,e,i);if(")"===l)return t.appendRight(c-1,u);let f=RegExp(`(?:^|[^\\\\])${l}`).exec(e.slice(c));if(!f)return;let h=c+f.index+f[0].length;t.overwrite(c-1,h,u)}(i,s,t,e.snapshot)}let a=s.toString();a!==i&&await e.saveSnapshotFile(n,a)}))}let o5=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function o7(e,t,n){let r=function(e,t){if(t>e.length)throw Error(`offset is longer than source length! offset ${t} > length ${e.length}`);let n=e.split(o8),r=/\r\n/.test(e)?2:1,o=0,i=0;for(;i<n.length;i++){let e=n[i].length+r;if(o+e>=t)break;o+=e}return i+1}(t,n),o=t.split(o8)[r-1].match(/^\s*/)[0]||"",i=o.includes("	")?`${o}	`:`${o}
54  `,s=e.trim().replace(/\\/g,"\\\\").split(/\n/g);return s.length<=1?`\`${s.join("\n").replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}\``:`\`
55${s.map(e=>e?i+e:"").join("\n").replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}
56${o}\``}let ie="toMatchInlineSnapshot",it="toThrowErrorMatchingInlineSnapshot",ir=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*[\w$]*(['"`)])/,io=/^([^\S\n]*)\S/m;function ii(e){var t;let n=e.match(io);if(!n||!n[1])return e;let r=n[1],o=e.split(/\n/g);if(o.length<=2||""!==o[0].trim()||(null==(t=o.at(-1))?void 0:t.trim())!=="")return e;for(let t=1;t<o.length-1;t++)if(""!==o[t]){if(0!==o[t].indexOf(r))return e;o[t]=o[t].substring(r.length)}return o[o.length-1]="",e=o.join("\n")}async function is(e,t){await Promise.all(t.map(async t=>{t.readonly||await e.saveSnapshotFile(t.file,t.snapshot)}))}var ia={exports:{}},il=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(function(){if(i)return ia.exports;i=1;var e=function(e,t){var n,r,o=1,i=0,s=0,a=String.alphabet;function l(e,t,r){if(r){for(n=t;(r=l(e,n))<76&&r>65;)++n;return+e.slice(t-1,n)}return(r=a&&a.indexOf(e.charAt(t)))>-1?r+76:(r=e.charCodeAt(t)||0)<45||r>127?r:r<46?65:r<48?r-1:r<58?r+18:r<65?r-11:r<91?r+11:r<97?r-37:r<123?r+5:r-63}if((e+="")!=(t+="")){for(;o;)if(r=l(e,i++),o=l(t,s++),r<76&&o<76&&r>66&&o>66&&(r=l(e,i,i),o=l(t,s,i=n),s=n),r!=o)return r<o?-1:1}return 0};try{ia.exports=e}catch(t){String.naturalCompare=e}return ia.exports}());let{DOMCollection:ic,DOMElement:iu,Immutable:ih,ReactElement:ip,ReactTestComponent:id,AsymmetricMatcher:im}=nD.Nx,ig=[id,ip,iu,ic,ih,im,{serialize:(e,t,n,r,o,i)=>{let s=e.getMockName(),a="vi.fn()"===s?"":` ${s}`,l="";if(0!==e.mock.calls.length){let s=n+t.indent;l=` {${t.spacingOuter}${s}"calls": ${i(e.mock.calls,t,s,r,o)}${t.min?", ":","}${t.spacingOuter}${s}"results": ${i(e.mock.results,t,s,r,o)}${t.min?"":","}${t.spacingOuter}${n}}`}return`[MockFunction${a}]${l}`},test:e=>e&&!!e._isMockFunction}];function iy(e){ig=[e].concat(ig)}function ib(e){return e.length>2&&"\n"===e[0]&&e.endsWith("\n")?e.slice(1,-1):e}function iw(e){return`\`${e.replace(/`|\\|\$\{/g,"\\$&")}\``}function iv(e){return e.replace(/\r\n|\r/g,"\n")}async function ix(e,t,n){let r=Object.keys(t).sort(il).map(e=>`exports[${iw(e)}] = ${iw(iv(t[e]))};`),o=`${e.getHeader()}
57
58${r.join("\n\n")}
59`,i=await e.readSnapshotFile(n);(null==i||i!==o)&&await e.saveSnapshotFile(n,o)}function iS(e=[],t=[]){let n=Array.from(e);return t.forEach((t,r)=>{let o=n[r];Array.isArray(e[r])?n[r]=iS(e[r],t):oQ(o)?n[r]=ik(e[r],t):n[r]=t}),n}function ik(e,t){if(oQ(e)&&oQ(t)){let n={...e};return Object.keys(t).forEach(r=>{oQ(t[r])&&!t[r].$$typeof?r in e?n[r]=ik(e[r],t[r]):Object.assign(n,{[r]:t[r]}):Array.isArray(t[r])?n[r]=iS(e[r],t[r]):Object.assign(n,{[r]:t[r]})}),n}return Array.isArray(e)&&Array.isArray(t)?iS(e,t):e}class i$ extends Map{constructor(e,t){super(t),this.defaultFn=e}get(e){return this.has(e)||this.set(e,this.defaultFn(e)),super.get(e)}}class iT extends i${constructor(){super(()=>0)}_total;valueOf(){return this._total=this.total()}increment(e){void 0!==this._total&&this._total++,this.set(e,this.get(e)+1)}total(){if(void 0!==this._total)return this._total;let e=0;for(let t of this.values())e+=t;return e}}function iO(e,t){return e.file===t.file&&e.column===t.column&&e.line===t.line}class ij{_counters=new iT;_dirty;_updateSnapshot;_snapshotData;_initialData;_inlineSnapshots;_inlineSnapshotStacks;_testIdToKeys=new i$(()=>[]);_rawSnapshots;_uncheckedKeys;_snapshotFormat;_environment;_fileExists;expand;_added=new iT;_matched=new iT;_unmatched=new iT;_updated=new iT;get added(){return this._added}set added(e){this._added._total=e}get matched(){return this._matched}set matched(e){this._matched._total=e}get unmatched(){return this._unmatched}set unmatched(e){this._unmatched._total=e}get updated(){return this._updated}set updated(e){this._updated._total=e}constructor(e,t,n,r){this.testFilePath=e,this.snapshotPath=t;let{data:o,dirty:i}=function(e,t){let n=t.updateSnapshot,r=Object.create(null),o="",i=!1;if(null!=e)try{o=e,Function("exports",o)(r)}catch{}let s=o;return("all"===n||"new"===n)&&s&&(i=!0),{data:r,dirty:i}}(n,r);this._fileExists=null!=n,this._initialData={...o},this._snapshotData={...o},this._dirty=i,this._inlineSnapshots=[],this._inlineSnapshotStacks=[],this._rawSnapshots=[],this._uncheckedKeys=new Set(Object.keys(this._snapshotData)),this.expand=r.expand||!1,this._updateSnapshot=r.updateSnapshot,this._snapshotFormat={printBasicPrototype:!1,escapeString:!1,...r.snapshotFormat},this._environment=r.snapshotEnvironment}static async create(e,t){let n=await t.snapshotEnvironment.resolvePath(e),r=await t.snapshotEnvironment.readSnapshotFile(n);return new ij(e,n,r,t)}get environment(){return this._environment}
59markSnapshotsAsCheckedForTest(e){this._uncheckedKeys.forEach(t=>{/ \d+$| > /.test(t.slice(e.length))&&this._uncheckedKeys.delete(t)})}clearTest(e){for(let t of(this._inlineSnapshots=this._inlineSnapshots.filter(t=>t.testId!==e),this._inlineSnapshotStacks=this._inlineSnapshotStacks.filter(t=>t.testId!==e),this._testIdToKeys.get(e))){let e=function(e){if(!/ \d+$/.test(e))throw Error("Snapshot keys must end with a number.");return e.replace(/ \d+$/,"")}(t),n=this._counters.get(e);n>0&&((t in this._snapshotData||t in this._initialData)&&(this._snapshotData[t]=this._initialData[t]),this._counters.set(e,n-1))}this._testIdToKeys.delete(e),this.added.delete(e),this.updated.delete(e),this.matched.delete(e),this.unmatched.delete(e)}_inferInlineSnapshotStack(e){let t=e.findIndex(e=>e.method.match(/__VITEST_(RESOLVES|REJECTS)__/));if(-1!==t)return e[t+3];let n=e.findIndex(e=>e.method.includes("__INLINE_SNAPSHOT__"));return -1!==n?e[n+2]:null}_addSnapshot(e,t,n){this._dirty=!0,n.stack?this._inlineSnapshots.push({snapshot:t,testId:n.testId,...n.stack}):n.rawSnapshot?this._rawSnapshots.push({...n.rawSnapshot,snapshot:t}):this._snapshotData[e]=t}async save(){let e=Object.keys(this._snapshotData).length,t=this._inlineSnapshots.length,n=this._rawSnapshots.length,r={deleted:!1,saved:!1};return(this._dirty||this._uncheckedKeys.size)&&!(!e&&!t&&!n)?(e&&(await ix(this._environment,this._snapshotData,this.snapshotPath),this._fileExists=!0),t&&await o6(this._environment,this._inlineSnapshots),n&&await is(this._environment,this._rawSnapshots),r.saved=!0):!e&&this._fileExists&&("all"===this._updateSnapshot&&(await this._environment.removeSnapshotFile(this.snapshotPath),this._fileExists=!1),r.deleted=!0),r}getUncheckedCount(){return this._uncheckedKeys.size||0}getUncheckedKeys(){return Array.from(this._uncheckedKeys)}removeUncheckedKeys(){"all"===this._updateSnapshot&&this._uncheckedKeys.size&&(this._dirty=!0,this._uncheckedKeys.forEach(e=>delete this._snapshotData[e]),this._uncheckedKeys.clear())}match({testId:e,testName:t,received:n,key:r,inlineSnapshot:o,isInline:i,error:s,rawSnapshot:a}){var l,c,u;let f;this._counters.increment(t);let h=this._counters.get(t);r||(r=`${t} ${h}`),this._testIdToKeys.get(e).push(r),i&&void 0!==this._snapshotData[r]||this._uncheckedKeys.delete(r);let p=a&&"string"==typeof n?n:function(e,t=2,n={}){return iv((0,nD.GP)(e,{escapeRegex:!0,indent:t,plugins:ig,printFunctionName:!1,...n}))}(n,void 0,this._snapshotFormat);a||(p=(l=p).includes("\n")?`
60${l}
61`:l),a&&a.content&&a.content.match(/\r\n/)&&!p.match(/\r\n/)&&(a.content=iv(a.content));let d=i?o:a?a.content:this._snapshotData[r],m=a?d:null==d?void 0:d.trim(),g=m===(a?p:p.trim()),y=void 0!==d,b=i||this._fileExists||a&&null!=a.content;if(!g||i||a||(this._snapshotData[r]=p),i){let t=function(e,t={}){var n;if(!e||null===(n=e)||"function"!=typeof n&&"object"!=typeof n)return[];if("stacks"in e&&e.stacks)return e.stacks;let r=e.stack||"",o="string"==typeof r?o3(r,t):[];return o.length||(null!=e.fileName&&null!=e.lineNumber&&null!=e.columnNumber&&(o=o3(`${e.fileName}:${e.lineNumber}:${e.columnNumber}`,t)),null!=e.sourceURL&&null!=e.line&&null!=e._column&&(o=o3(`${e.sourceURL}:${e.line}:${e.column}`,t))),t.frameFilter&&(o=o.filter(n=>!1!==t.frameFilter(e,n))),e.stacks=o,o}(s||Error("snapshot"),{ignoreStackEntries:[]}),n=this._inferInlineSnapshotStack(t);if(!n)throw Error(`@vitest/snapshot: Couldn't infer stack frame for inline snapshot.
62${JSON.stringify(t)}`);f=(null==(c=(u=this.environment).processStackTrace)?void 0:c.call(u,n))||n,f.column--;let r=this._inlineSnapshotStacks.filter(e=>iO(e,f));if(r.length>0){this._inlineSnapshots=this._inlineSnapshots.filter(e=>!iO(e,f));let e=r.find(e=>e.snapshot!==p);if(e)throw Object.assign(Error("toMatchInlineSnapshot with different snapshots cannot be called at the same location"),{actual:p,expected:e.snapshot})}this._inlineSnapshotStacks.push({...f,testId:e,snapshot:p})}return(!y||"all"!==this._updateSnapshot)&&(y&&b||"new"!==this._updateSnapshot&&"all"!==this._updateSnapshot)?g?(this.matched.increment(e),{actual:"",count:h,expected:"",key:r,pass:!0}):(this.unmatched.increment(e),{actual:a?p:ib(p),count:h,expected:void 0!==m?a?m:ib(m):void 0,key:r,pass:!1}):("all"===this._updateSnapshot?g?this.matched.increment(e):(y?this.updated.increment(e):this.added.increment(e),this._addSnapsh
62ot(r,p,{stack:f,testId:e,rawSnapshot:a})):(this._addSnapshot(r,p,{stack:f,testId:e,rawSnapshot:a}),this.added.increment(e)),{actual:"",count:h,expected:"",key:r,pass:!0})}async pack(){let e={filepath:this.testFilePath,added:0,fileDeleted:!1,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0},t=this.getUncheckedCount(),n=this.getUncheckedKeys();t&&this.removeUncheckedKeys();let r=await this.save();return e.fileDeleted=r.deleted,e.added=this.added.total(),e.matched=this.matched.total(),e.unmatched=this.unmatched.total(),e.updated=this.updated.total(),e.unchecked=r.deleted?0:t,e.uncheckedKeys=Array.from(n),e}}function iE(e,t,n,r){let o=Error(e);return Object.defineProperty(o,"actual",{value:n,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(o,"expected",{value:r,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(o,"diffOptions",{value:{expand:t}}),o}class i_{snapshotStateMap=new Map;constructor(e={}){this.options=e}async setup(e,t){this.snapshotStateMap.has(e)||this.snapshotStateMap.set(e,await ij.create(e,t))}async finish(e){let t=this.getSnapshotState(e),n=await t.pack();return this.snapshotStateMap.delete(e),n}skipTest(e,t){this.getSnapshotState(e).markSnapshotsAsCheckedForTest(t)}clearTest(e,t){this.getSnapshotState(e).clearTest(t)}getSnapshotState(e){let t=this.snapshotStateMap.get(e);if(!t)throw Error(`The snapshot state for '${e}' is not found. Did you call 'SnapshotClient.setup()'?`);return t}assert(e){let{filepath:t,name:n,testId:r=n,message:o,isInline:i=!1,properties:s,inlineSnapshot:a,error:l,errorMessage:c,rawSnapshot:u}=e,{received:f}=e;if(!t)throw Error("Snapshot cannot be used outside of test");let h=this.getSnapshotState(t);if("object"==typeof s){if("object"!=typeof f||!f)throw Error("Received value must be an object when the matcher has properties");try{var p,d;if(null==(p=(d=this.options).isEqual)?void 0:p.call(d,f,s))f=ik(f,s);else throw iE("Snapshot properties mismatched",h.expand,f,s)}catch(e){throw e.message=c||"Snapshot mismatched",e}}let m=[n,...o?[o]:[]].join(" > "),{actual:g,expected:y,key:b,pass:w}=h.match({testId:r,testName:m,received:f,isInline:i,error:l,inlineSnapshot:a,rawSnapshot:u});if(!w)throw iE(`Snapshot \`${b||"unknown"}
62\` mismatched`,h.expand,u?g:null==g?void 0:g.trim(),u?y:null==y?void 0:y.trim())}async assertRaw(e){if(!e.rawSnapshot)throw Error("Raw snapshot is required");let{filepath:t,rawSnapshot:n}=e;if(null==n.content){if(!t)throw Error("Snapshot cannot be used outside of test");let r=this.getSnapshotState(t);e.filepath||(e.filepath=t),n.file=await r.environment.resolveRawPath(t,n.file),n.content=await r.environment.readSnapshotFile(n.file)??void 0}return this.assert(e)}clear(){this.snapshotStateMap.clear()}}var iA=n(98757),iM="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};let iP=Date,iN=null;class iC extends iP{constructor(e,t,n,r,o,i,s){let a;switch(super(),arguments.length){case 0:a=null!==iN?new iP(iN.valueOf()):new iP;break;case 1:a=new iP(e);break;default:a=new iP(e,t,n=void 0===n?1:n,r=r||0,o=o||0,i=i||0,s=s||0)}return Object.setPrototypeOf(a,iC.prototype),a}}function iI(){globalThis.Date=iP}iC.UTC=iP.UTC,iC.now=function(){return new iC().valueOf()},iC.parse=function(e){return iP.parse(e)},iC.toString=function(){return iP.toString()};var iD=n(95704);let iF=["matchSnapshot","toMatchSnapshot","toMatchInlineSnapshot","toThrowErrorMatchingSnapshot","toThrowErrorMatchingInlineSnapshot","throws","Throw","throw","toThrow","toThrowError"];function iR(e,t){return void 0!==t.stack&&(e.stack=t.stack.replace(t.message,e.message)),e}function iL(){return r||(r=new i_({isEqual:(e,t)=>r2(e,t,[oi,oa])})),r}function iq(e,t){if("function"!=typeof e){if(!t)throw Error(`expected must be a function, received ${typeof e}`);return e}try{e()}catch(e){return e}throw Error("snapshot function didn't throw")}function iB(e){return{filepath:e.file.filepath,name:(0,oD.j)(e).slice(1).join(" > "),testId:e.id}}nI((e,t)=>{t.addMethod(e.expect,"extend",(t,n)=>{nI(function(e,t,n){return(r,o)=>{Object.entries(n).forEach(([n,r])=>{let i=oO(o,n,function(...e){let{state:n,isNot:o,obj:i,customMessage:s}=function(e,t){let n=e._obj,r=Z.flag(e,"negate"),o=Z.flag(e,"promise")||"",i=Z.flag(e,"message"),s={...rX(),diff:rf,stringify:nR.As,iterableEquality:oi,subsetEquality:oa},a=Z.flag(e,"vitest-test"),l=(null==a?void 0:a.fullTestName)??"";return(null==a?void 0:a.type)!=="test"&&(a=void 0),{state:{...oh(t),task:a,currentTestName:l,customTesters:r1(),isNot:r,utils:s,promise:o,equals:r2,suppressedErrors:[],soft:Z.flag(e,"soft"),poll:Z.flag(e,"poll")},isNot:r,obj:n,customMessage:i}}(this,t),a=r.call(n,i,...e);if(a&&"object"==typeof a&&"function"==typeof a.then)return a.then(({pass:e,message:t,actual:n,expected:r})=>{if(e&&o||!e&&!o)throw new o_(null!=s?s:t(),n,r)});let{pass:l,message:c,actual:u,expected:f}=a;if(l&&o||!l&&!o)throw new o_(null!=s?s:c(),u,f)});o.addMethod(globalThis[rq].matchers,n,i),o.addMethod(e.Assertion.prototype,n,i);class s extends od{constructor(e=!1,...t){super(t,e)}asymmetricMatch(e){let{pass:n}=r.call(this.getMatcherContext(t),e,...this.sample);return this.inverse?!n:n}toString(){return`${this.inverse?"not.":""}${n}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(e=>(0,nR.As)(e)).join(", ")}>`}}let a=(...e)=>new s(!1,...e);Object.defineProperty(t,n,{configurable:!0,enumerable:!0,value:a,writable:!0}),Object.defineProperty(t.not,n,{configurable:!0,enumerable:!0,value:(...e)=>new s(!0,...e),writable:!0}),Object.defineProperty(globalThis[rz],n,{configurable:!0,enumerable:!0,value:a,writable:!0})})}}(e,t,n))})}),nI((e,t)=>{let{AssertionError:n}=e,r=r1();function o(n,r){let o=n=>{let o=oO(t,n,r);t.addMethod(e.Assertion.prototype,n,o),t.addMethod(globalThis[rq].matchers,n,o)};Array.isArray(n)?n.forEach(e=>o(e)):o(n)}function i(e){if(!rS(e._obj))throw TypeError(`${t.inspect(e._obj)} is not a spy or a call to a spy!`);return e._obj}function s(e,t){return e.length===t.length&&e.every((e,n)=>r2(e,t[n],[...r,oi]))}function a(e,t,n){let r=e.mock.invocationCallOrder,o=t.mock.invocationCallOrder;return 0===r.length?!n:0!==o.length&&r[0]<o[0]}["throw","throws","Throw"].forEach(r=>{t.overwriteMethod(e.Assertion.prototype,r,e=>function(...r){let o=t.flag(this,"promise"),i=t.flag(this,"object"),s=t.flag(this,"negate");if("rejects"===o)t.flag(this,"object",()=>{throw i});else if("resolves"===o&&"function"!=typeof i)if(s)return;else throw new n(t.flag(this,"message")||"expected promise to throw an error, but it didn't",{showDiff:!1},t.flag(this,"ssfi"));e.apply(this,r)})}),o("withTest",function(e){return t.flag(this,"vitest-test",e),this}),o("toEqual",function(e){let n=t.flag(this,"object"),o=r2(n,e,[...r,oi]);return this.assert(o,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,n)}),o("toStrictEqual",function(e){let n=t.flag(this,"object"),o=r2(n,e,[...r,oi,ol,ou,oc],!0);return this.assert(o,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",e,n)}),o("toBe",function(e){let t=this._obj,n=Object.is(t,e),o="";return!n&&(r2(t,e,[...r,oi,ol,ou,oc],!0)?o="toStrictEqual":r2(t,e,[...r,oi])&&(o="toEqual")),this.assert(n,function(e,t="#{this}",n="#{exp}"){let r=`expected ${t} to be ${n} // Object.is equality`;return["toStrictEqual","toEqual"].includes(e)?`${r}
63
64If it should pass with deep equality, replace "toBe" with "${e}"
65
66Expected: ${t}
67Received: serializes to the same string
68`:r}(o),"expected #{this} not to be #{exp} // Object.is equality",e,t)}),o("toMatchObject",function(e){let o=this._obj,i=r2(o,e,[...r,oi,oa]),s=t.flag(this,"negate"),{subset:a,stripped:l}=function(e,t,n){let r=0,o=(e=new WeakMap)=>(t,i)=>{if(Array.isArray(t)){if(Array.isArray(i)&&i.length===t.length)return i.map((n,r)=>o(e)(t[r],n))}else if(t instanceof Date);else if((0,nL.Gv)(t)&&(0,nL.Gv)(i)){if(r2(t,i,[...n,oi,oa]))return i;let s={};for(let n of(e.set(t,s),"function"==typeof t.constructor&&"string"==typeof t.constructor.name&&Object.defineProperty(s,"constructor",{enumerable:!1,value:t.constructor}),of(t)))os(i,n)?s[n]=e.has(t[n])?e.get(t[n]):o(e)(t[n],i[n]):e.has(t[n])||(r+=1,(0,nL.Gv)(t[n])&&(r+=of(t[n]).length),o(e)(t[n],i[n]));if(of(s).length>0)return s}return t};return{subset:o()(e,t),stripped:r}}(o,e,r);if(i&&s||!i&&!s){let r=t.getMessage(this,[i,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",e,a,!1]);throw new n(0===l?r:`${r}
69(${l} matching ${1===l?"property":"properties"} omitted from actual)`,{showDiff:!0,expected:e,actual:a})}}),o("toMatch",function(e){let t=this._obj;if("string"!=typeof t)throw TypeError(`.toMatch() expects to receive a string, but got ${typeof t}`);return this.assert("string"==typeof e?t.includes(e):t.match(e),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",e,t)}),o("toContain",function(e){let n=this._obj;if("undefined"!=typeof Node&&n instanceof Node){if(!(e instanceof Node))throw TypeError(`toContain() expected a DOM node as the argument, but got ${typeof e}`);return this.assert(n.contains(e),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",e,n)}if("undefined"!=typeof DOMTokenList&&n instanceof DOMTokenList){(0,nL.q4)(e,"class name",["string"]);let r=t.flag(this,"negate")?n.value.replace(e,"").trim():`${n.value} ${e}`;return this.assert(n.contains(e),`expected "${n.value}" to contain "${e}"`,`expected "${n.value}" not to contain "${e}"`,r,n.value)}return"string"==typeof n&&"string"==typeof e?this.assert(n.includes(e),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",e,n):(null!=n&&"string"!=typeof n&&t.flag(this,"object",Array.from(n)),this.contain(e))}),o("toContainEqual",function(e){let n=Array.from(t.flag(this,"object")).findIndex(t=>r2(t,e,r));this.assert(-1!==n,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",e)}),o("toBeTruthy",function(){let e=t.flag(this,"object");this.assert(!!e,"expected #{this} to be truthy","expected #{this} to not be truthy",!0,e)}),o("toBeFalsy",function(){let e=t.flag(this,"object");this.assert(!e,"expected #{this} to be falsy","expected #{this} to not be falsy",!1,e)}),o("toBeGreaterThan",function(e){let t=this._obj;return(0,nL.q4)(t,"actual",["number","bigint"]),(0,nL.q4)(e,"expected",["number","bigint"]),this.assert(t>e,`expected ${t} to be greater than ${e}`,`expected ${t} to be not greater than ${e}`,e,t,!1)}),o("toBeGreaterThanOrEqual",function(e){let t=this._obj;return(0,nL.q4)(t,"actual",["number","bigint"]),(0,nL.q4)(e,"expected",["number","bigint"]),this.assert(t>=e,`expected ${t} to be greater than or equal to ${e}`,`expected ${t} to be not greater than or equal to ${e}`,e,t,!1)}),o("toBeLessThan",function(e){let t=this._obj;return(0,nL.q4)(t,"actual",["number","bigint"]),(0,nL.q4)(e,"expected",["number","bigint"]),this.assert(t<e,`expected ${t} to be less than ${e}`,`expected ${t} to be not less than ${e}`,e,t,!1)}),o("toBeLessThanOrEqual",function(e){let t=this._obj;return(0,nL.q4)(t,"actual",["number","bigint"]),(0,nL.q4)(e,"expected",["number","bigint"]),this.assert(t<=e,`expected ${t} to be less than or equal to ${e}`,`expected ${t} to be not less than or equal to ${e}`,e,t,!1)}),o("toBeNaN",function(){let e=t.flag(this,"object");this.assert(Number.isNaN(e),"expected #{this} to be NaN","expected #{this} not to be NaN",NaN,e)}),o("toBeUndefined",function(){let e=t.flag(this,"object");this.assert(void 0===e,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,e)}),o("toBeNull",function(){let e=t.flag(this,"object");this.assert(null===e,"expected #{this} to be null","expected #{this} not to be null",null,e)}),o("toBeNullable",function(){let e=t.flag(this,"object");this.assert(null==e,"expected #{this} to be nullish","expected #{this} not to be nullish",null,e)}),o("toBeDefined",function(){let e=t.flag(this,"object");this.assert(void 0!==e,"expected #{this} to be defined","expected #{this} to be undefined",e)}),o("toBeTypeOf",function(e){let t=typeof this._obj;return this.assert(e===t,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",e,t)}),o("toBeInstanceOf",function(e){return this.instanceOf(e)}),o("toHaveLength",function(e){return this.have.length(e)}),o("toHaveProperty",function(...e){Array.isArray(e[0])&&(e[0]=e[0].map(e=>String(e).replace(/([.[\]])/g,"\\$1")).join("."));let n=this._obj,[o,i]=e,{value:s,exists:a}=Object.hasOwn(n,o)?{value:n[o],exists:!0}:t.getPathInfo(n,o),l=a&&(1===e.length||r2(i,s,r)),c=1===e.length?"":` with value ${t.objDisplay(i)}`;return this.assert(l,`expected #{this} to have property "${o}"${c}`,`expected #{this} to not have property "${o}"${c}`,i,a?s:void 0)}),o("toBeCloseTo",function(e,t=2){let n=this._obj,r=!1,o=0,i=0;return e===1/0&&n===1/0||e===-1/0&&n===-1/0?r=!0:(o=10**-t/2,r=(i=Math.abs(n-e))<o),this.assert(r,`expected #{this} to be close to #{exp}, received difference is ${i}, but expected ${o}`,`expected #{this} to not be close to #{exp}, received difference is ${i}, but expected ${o}`,e,n,!1)}),o(["toHaveBeenCalledTimes","toBeCalledTimes"],function(e){let t=i(this),n=t.getMockName(),r=t.mock.calls.length;return this.assert(r===e,`expected "${n}" to be called #{exp} times, but got ${r} times`,`expected "${n}" to not be called #{exp} times`,e,r,!1)}),o("toHaveBeenCalledOnce",function(){let e=i(this),t=e.getMockName(),n=e.mock.calls.length;return this.assert(1===n,`expected "${t}" to be called once, but got ${n} times`,`expected "${t}" to not be called once`,1,n,!1)}),o(["toHaveBeenCalled","toBeCalled"],function(){let e=i(this),r=e.getMockName(),o=e.mock.calls.length,s=o>0,a=t.flag(this,"negate"),l=t.getMessage(this,[s,`expected "${r}" to be called at least once`,`expected "${r}" to not be called at all, but actually been called ${o} times`,!0,s]);if(s&&a&&(l=oE(e,l)),s&&a||!s&&!a)throw new n(l)}),o(["toHaveBeenCalledWith","toBeCalledWith"],function(...e){let r=i(this),o=r.getMockName(),a=r.mock.calls.some(t=>
69s(t,e)),l=t.flag(this,"negate"),c=t.getMessage(this,[a,`expected "${o}" to be called with arguments: #{exp}`,`expected "${o}" to not be called with arguments: #{exp}`,e]);if(a&&l||!a&&!l)throw new n(oE(r,c,e))}),o("toHaveBeenCalledExactlyOnceWith",function(...e){let r=i(this),o=r.getMockName(),a=r.mock.calls.length,l=r.mock.calls.some(t=>s(t,e))&&1===a,c=t.flag(this,"negate"),u=t.getMessage(this,[l,`expected "${o}" to be called once with arguments: #{exp}`,`expected "${o}" to not be called once with arguments: #{exp}`,e]);if(l&&c||!l&&!c)throw new n(oE(r,u,e))}),o(["toHaveBeenNthCalledWith","nthCalledWith"],function(e,...t){let n=i(this),r=n.getMockName(),o=n.mock.calls[e-1],a=n.mock.calls.length,l=e<=a;this.assert(o&&s(o,t),`expected ${oj(e)} "${r}" call to have been called with #{exp}${l?"":`, but called only ${a} times`}`,`expected ${oj(e)} "${r}" call to not have been called with #{exp}`,t,o,l)}),o(["toHaveBeenLastCalledWith","lastCalledWith"],function(...e){let t=i(this),n=t.getMockName(),r=t.mock.calls.at(-1);this.assert(r&&s(r,e),`expected last "${n}" call to have been called with #{exp}`,`expected last "${n}" call to not have been called with #{exp}`,e,r)}),o(["toHaveBeenCalledBefore"],function(e,n=!0){let r=i(this);if(!rS(e))throw TypeError(`${t.inspect(e)} is not a spy or a call to a spy`);this.assert(a(r,e,n),`expected "${r.getMockName()}" to have been called before "${e.getMockName()}"`,`expected "${r.getMockName()}" to not have been called before "${e.getMockName()}"`,e,r)}),o(["toHaveBeenCalledAfter"],function(e,n=!0){let r=i(this);if(!rS(e))throw TypeError(`${t.inspect(e)} is not a spy or a call to a spy`);this.assert(a(e,r,n),`expected "${r.getMockName()}" to have been called after "${e.getMockName()}"`,`expected "${r.getMockName()}" to not have been called after "${e.getMockName()}"`,e,r)}),o(["toThrow","toThrowError"],function(e){if("string"==typeof e||void 0===e||e instanceof RegExp)return this.throws(""===e?/^$/:e);let o=this._obj,i=t.flag(this,"promise"),s=t.flag(this,"negate"),a=null;if("rejects"===i)a=o;else if("resolves"===i&&"function"!=typeof o)if(s)return;else throw new n(t.flag(this,"message")||"expected promise to throw an error, but it didn't",{showDiff:!1},t.flag(this,"ssfi"));else{let e=!1;try{o()}catch(t){e=!0,a=t}if(!e&&!s)throw new n(t.flag(this,"message")||"expected function to throw an error, but it didn't",{showDiff:!1},t.flag(this,"ssfi"))}if("function"==typeof e){let t=e.name||e.prototype.constructor.name;return this.assert(a&&a instanceof e,`expected error to be instance of ${t}`,`expected error not to be instance of ${t}`,e,a)}if(e instanceof Error){let t=r2(a,e,[...r,oi]);return this.assert(t,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",e,a)}if("object"==typeof e&&"asymmetricMatch"in e&&"function"==typeof e.asymmetricMatch)return this.assert(a&&e.asymmetricMatch(a),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",e,a);throw Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof e}"`)}),[{name:"toHaveResolved",condition:e=>e.mock.settledResults.length>0&&e.mock.settledResults.some(({type:e})=>"fulfilled"===e),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:e=>e.mock.calls.length>0&&e.mock.results.some(({type:e})=>"throw"!==e),action:"called"}].forEach(({name:e,condition:t,action:n})=>{o(e,function(){let e=i(this),r=e.getMockName(),o=t(e);this.assert(o,`expected "${r}" to be successfully ${n} at least once`,`expected "${r}" to not be successfully ${n}`,o,!o,!1)})}),[{name:"toHaveResolvedTimes",condition:(e,t)=>e.mock.settledResults.reduce((e,{type:t})=>"fulfilled"===t?++e:e,0)===t,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(e,t)=>e.mock.results.reduce((e,{type:t})=>"throw"===t?e:++e,0)===t,action:"called"}].forEach(({name:e,condition:t,action:n})=>{o(e,function(e){let r=i(this),o=r.getMockName(),s=t(r,e);this.assert(s,`expected "${o}" to be successfully ${n} ${e} times`,`expected "${o}" to not be successfully ${n} ${e} times`,`expected resolved times: ${e}`,`received resolved times: ${s}`,!1)})}),[{name:"toHaveResolvedWith",condition:(e,t)=>e.mock.settledResults.some(({type:e,value:n})=>"fulfilled"===e&&r2(t,n)),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(e,t)=>e.mock.results.some(({type:e,value:n})=>"return"===e&&r2(t,n)),action:"return"}
69].forEach(({name:e,condition:r,action:s})=>{o(e,function(e){let o=i(this),a=r(o,e),l=t.flag(this,"negate");if(a&&l||!a&&!l){var c,u,f,h;let r=o.getMockName(),i=t.getMessage(this,[a,`expected "${r}" to ${s} with: #{exp} at least once`,`expected "${r}" to not ${s} with: #{exp}`,e]),l="return"===s?o.mock.results:o.mock.settledResults;throw new n((c=o,u=l,f=i,h=e,u.length&&(f+=nF.Ay.gray(`
70
71Received: 
72
73${u.map((e,t)=>{let n=nF.Ay.bold(`  ${oj(t+1)} ${c.getMockName()} call return:
74
75`);return h?n+=rf(h,e.value,{omitAnnotationLines:!0}):n+=(0,nR.As)(e).split("\n").map(e=>`    ${e}`).join("\n"),n+="\n"}).join("\n")}`)),f+=nF.Ay.gray(`
76
77Number of calls: ${nF.Ay.bold(c.mock.calls.length)}
78`)))}})}),[{name:"toHaveLastResolvedWith",condition:(e,t)=>{let n=e.mock.settledResults.at(-1);return!!(n&&"fulfilled"===n.type&&r2(n.value,t))},action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:(e,t)=>{let n=e.mock.results.at(-1);return!!(n&&"return"===n.type&&r2(n.value,t))},action:"return"}].forEach(({name:e,condition:t,action:n})=>{o(e,function(e){let r=i(this),o=("return"===n?r.mock.results:r.mock.settledResults).at(-1),s=r.getMockName();this.assert(t(r,e),`expected last "${s}" call to ${n} #{exp}`,`expected last "${s}" call to not ${n} #{exp}`,e,null==o?void 0:o.value)})}),[{name:"toHaveNthResolvedWith",condition:(e,t,n)=>{let r=e.mock.settledResults[t-1];return r&&"fulfilled"===r.type&&r2(r.value,n)},action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:(e,t,n)=>{let r=e.mock.results[t-1];return r&&"return"===r.type&&r2(r.value,n)},action:"return"}].forEach(({name:e,condition:t,action:n})=>{o(e,function(e,r){let o=i(this),s=o.getMockName(),a=("return"===n?o.mock.results:o.mock.settledResults)[e-1],l=`${oj(e)} call`;this.assert(t(o,e,r),`expected ${l} "${s}" call to ${n} #{exp}`,`expected ${l} "${s}" call to not ${n} #{exp}`,r,null==a?void 0:a.value)})}),o("withContext",function(e){for(let n in e)t.flag(this,n,e[n]);return this}),t.addProperty(e.Assertion.prototype,"resolves",function(){let r=Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",r);let o=t.flag(this,"vitest-test"),i=t.flag(this,"object");if(t.flag(this,"poll"))throw SyntaxError("expect.poll() is not supported in combination with .resolves");if("function"!=typeof(null==i?void 0:i.then))throw TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof i}'.`);let s=new Proxy(this,{get:(a,l,c)=>{let u=Reflect.get(a,l,c);return"function"!=typeof u?u instanceof e.Assertion?s:u:(...e)=>(t.flag(this,"_name",l),o$(o,i.then(n=>(t.flag(this,"object",n),u.call(this,...e)),e=>{let o=new n(`promise rejected "${t.inspect(e)}" instead of resolving`,{showDiff:!1});throw o.cause=e,o.stack=r.stack.replace(r.message,o.message),o}),ok(t,this,!!e.length),r))}});return s}),t.addProperty(e.Assertion.prototype,"rejects",function(){let r=Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",r);let o=t.flag(this,"vitest-test"),i=t.flag(this,"object"),s="function"==typeof i?i():i;if(t.flag(this,"poll"))throw SyntaxError("expect.poll() is not supported in combination with .rejects");if("function"!=typeof(null==s?void 0:s.then))throw TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof s}'.`);let a=new Proxy(this,{get:(i,l,c)=>{let u=Reflect.get(i,l,c);return"function"!=typeof u?u instanceof e.Assertion?a:u:(...e)=>(t.flag(this,"_name",l),o$(o,s.then(e=>{let o=new n(`promise resolved "${t.inspect(e)}" instead of rejecting`,{showDiff:!0,expected:Error("rejected promise"),actual:e});throw o.stack=r.stack.replace(r.message,o.message),o},n=>(t.flag(this,"object",n),u.call(this,...e))),ok(t,this,!!e.length),r))}});return a})}),nI((e,t)=>{function n(e,n){let r=t.flag(n,"vitest-test");
78if(!r)throw Error(`'${e}' cannot be used without test context`);return r}for(let r of["matchSnapshot","toMatchSnapshot"])t.addMethod(e.Assertion.prototype,r,function(e,o){if(t.flag(this,"_name",r),t.flag(this,"negate"))throw Error(`${r} cannot be used with "not"`);let i=t.flag(this,"object"),s=n(r,this);"string"==typeof e&&void 0===o&&(o=e,e=void 0);let a=t.flag(this,"message");iL().assert({received:i,message:o,isInline:!1,properties:e,errorMessage:a,...iB(s)})});t.addMethod(e.Assertion.prototype,"toMatchFileSnapshot",function(e,r){if(t.flag(this,"_name","toMatchFileSnapshot"),t.flag(this,"negate"))throw Error('toMatchFileSnapshot cannot be used with "not"');let o=Error("resolves"),i=t.flag(this,"object"),s=n("toMatchFileSnapshot",this),a=t.flag(this,"message");return function(e,t,n,r){if(e&&t instanceof Promise){t=t.finally(()=>{if(!e.promises)return;let n=e.promises.indexOf(t);-1!==n&&e.promises.splice(n,1)}),e.promises||(e.promises=[]),e.promises.push(t);let o=!1;return e.onFinished??=[],e.onFinished.push(()=>{o||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.
79`+(globalThis.__vitest_worker__?.onFilterStackTrace||(e=>e||""))(r.stack))}),{then:(e,n)=>(o=!0,t.then(e,n)),catch:e=>t.catch(e),finally:e=>t.finally(e),[Symbol.toStringTag]:"Promise"}}return t}(s,iL().assertRaw({received:i,message:r,isInline:!1,rawSnapshot:{file:e},errorMessage:a,...iB(s)}),function(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}`}(t,this),o)}),t.addMethod(e.Assertion.prototype,"toMatchInlineSnapshot",function(e,r,o){if(t.flag(this,"_name","toMatchInlineSnapshot"),t.flag(this,"negate"))throw Error('toMatchInlineSnapshot cannot be used with "not"');let i=n("toMatchInlineSnapshot",this);if(i.each||i.suite?.each)throw Error("InlineSnapshot cannot be used inside of test.each or describe.each");let s=t.flag(this,"object"),a=t.flag(this,"error");"string"==typeof e&&(o=r,r=e,e=void 0),r&&(r=ii(r));let l=t.flag(this,"message");iL().assert({received:s,message:o,isInline:!0,properties:e,inlineSnapshot:r,error:a,errorMessage:l,...iB(i)})}),t.addMethod(e.Assertion.prototype,"toThrowErrorMatchingSnapshot",function(e){if(t.flag(this,"_name","toThrowErrorMatchingSnapshot"),t.flag(this,"negate"))throw Error('toThrowErrorMatchingSnapshot cannot be used with "not"');let r=t.flag(this,"object"),o=n("toThrowErrorMatchingSnapshot",this),i=t.flag(this,"promise"),s=t.flag(this,"message");iL().assert({received:iq(r,i),message:e,errorMessage:s,...iB(o)})}),t.addMethod(e.Assertion.prototype,"toThrowErrorMatchingInlineSnapshot",function(e,r){if(t.flag(this,"negate"))throw Error('toThrowErrorMatchingInlineSnapshot cannot be used with "not"');let o=n("toThrowErrorMatchingInlineSnapshot",this);if(o.each||o.suite?.each)throw Error("InlineSnapshot cannot be used inside of test.each or describe.each");let i=t.flag(this,"object"),s=t.flag(this,"error"),a=t.flag(this,"promise"),l=t.flag(this,"message");e&&(e=ii(e)),iL().assert({received:iq(i,a),message:r,inlineSnapshot:e,isInline:!0,error:s,errorMessage:l,...iB(o)})}),t.addMethod(e.expect,"addSnapshotSerializer",iy)}),nI((e,t)=>{t.addMethod(e.expect,"anything",()=>new og),t.addMethod(e.expect,"any",e=>new ow(e)),t.addMethod(e.expect,"stringContaining",e=>new om(e)),t.addMethod(e.expect,"objectContaining",e=>new oy(e)),t.addMethod(e.expect,"arrayContaining",e=>new ob(e)),t.addMethod(e.expect,"stringMatching",e=>new ov(e)),t.addMethod(e.expect,"closeTo",(e,t)=>new ox(e,t)),t.addMethod(e.expect,"schemaMatching",e=>new oS(e)),e.expect.not={stringContaining:e=>new om(e,!0),objectContaining:e=>new oy(e,!0),arrayContaining:e=>new ob(e,!0),stringMatching:e=>new ov(e,!0),closeTo:(e,t)=>new ox(e,t,!0),schemaMatching:e=>new oS(e,!0)}});let iz=function(e){let t=(e,n)=>{let{assertionCalls:r}=oh(t);op({assertionCalls:r+1},t);let o=nE(e,n),i=(0,oA.yA)();return i?o.withTest(i):o};Object.assign(t,nE),Object.assign(t,globalThis[rz]),t.getState=()=>oh(t),t.setState=e=>op(e,t);let n=oh(globalThis[rB])||{};return op({...n,assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,get testPath(){return oN().filepath},currentTestName:(0,n.currentTestName)},t),t.assert=nN,t.extend=e=>nE.extend(t,e),t.addEqualityTesters=e=>(function(e){if(!Array.isArray(e))throw TypeError(`expect.customEqualityTesters: Must be set to an array of Testers. Was given "${(0,nL.Pw)(e)}"`);globalThis[rq].customEqualityTesters.push(...e)})(e),t.soft=(...e)=>t(...e).withContext({soft:!0}),t.poll=function(e,n={}){let r=oN().config.expect?.poll??{},{interval:o=r.interval??50,timeout:i=r.timeout??1e3,message:s}=n,a=t(null,s).withContext({poll:!0});e=e.bind(a);let l=Z.flag(a,"vitest-test");
79if(!l)throw Error("expect.poll() must be called inside a test");let c=new Proxy(a,{get(t,n,r){let s=Reflect.get(t,n,r);if("function"!=typeof s)return s instanceof tj?c:s;if("assert"===n)return s;if("string"==typeof n&&iF.includes(n))throw SyntaxError(`expect.poll() is not supported in combination with .${n}(). Use vi.waitFor() if your assertion condition is unstable.`);return function(...t){let r,c=Error("STACK_TRACE_ERROR"),u=async()=>{let{setTimeout:r,clearTimeout:l}=(0,oM.GO)(),u="fn",f=!1,h=r(()=>{f=!0},i);Z.flag(a,"_name",n);try{for(;;){let n=f;n&&Z.flag(a,"_isLastPollAttempt",!0);try{u="fn";let n=await e();return Z.flag(a,"object",n),u="assertion",await s.call(a,...t)}catch(e){(n||"assertion"===u&&Z.flag(a,"_poll.assert_once"))&&function(e,t){throw null==e.cause&&(e.cause=Error("Matcher did not succeed in time.")),iR(e,t)}(e,c),await (0,oM.cb)(o,r)}}}finally{l(h)}},f=!1;return l.onFinished??=[],l.onFinished.push(()=>{if(!f){let e=Z.flag(a,"negate")?"not.":"",t=`expect.${Z.flag(a,"_poll.element")?"element(locator)":"poll(assertion)"}.${e}${String(n)}()`;throw iR(Error(`${t} was not awaited. This assertion is asynchronous and must be awaited; otherwise, it is not executed to avoid unhandled rejections:
80
81await ${t}
82`),c)}}),{then:(e,t)=>(f=!0,(r||=u()).then(e,t)),catch:e=>(r||=u()).catch(e),finally:e=>(r||=u()).finally(e),[Symbol.toStringTag]:"Promise"}}}});return c},t.unreachable=e=>{nN.fail(`expected${e?` "${e}" `:" "}not to be reached`)},Z.addMethod(t,"assertions",function e(n){let r=()=>Error(`expected number of assertions to be ${n}, but got ${t.getState().assertionCalls}`);Error.captureStackTrace&&Error.captureStackTrace(r(),e),t.setState({expectedAssertionsNumber:n,expectedAssertionsNumberErrorGen:r})}),Z.addMethod(t,"hasAssertions",function e(){let n=Error("expected any number of assertion, but got none");Error.captureStackTrace&&Error.captureStackTrace(n,e),t.setState({isExpectingAssertions:!0,isExpectingAssertionsError:n})}),t.extend(rW),t}();Object.defineProperty(globalThis,rB,{value:iz,writable:!0,configurable:!0});var iW={};function iU(){if(f)return u;f=1;var e=Function.call,t=function(){let e;if(c)return l;c=1;try{e=!1}catch(t){e=!0}return l=e}(),n=["size","caller","callee","arguments"];return t&&n.push("__proto__"),u=function(t){return Object.getOwnPropertyNames(t).reduce(function(r,o){return n.includes(o)||"function"!=typeof t[o]||(r[o]=e.bind(t[o])),r},Object.create(null))}}function iV(){return p?h:(p=1,h=iU()(Array.prototype))}var iK={},iG={exports:{}},iH=(iG.exports,function(){let e,t;if(U)return iW;U=1;let n=(W?z:(W=1,z={global:a?s:(a=1,s=void 0!==iM?iM:"undefined"!=typeof window?window:self),calledInOrder:function(){if(m)return d;m=1;var e=iV().every;function t(e,t,n,r){var o=!0;return n!==r.length-1&&(o=t.calledBefore(r[n+1])),void 0===e[t.id]&&(e[t.id]=0),e[t.id]<t.callCount&&!!o&&(e[t.id]+=1,!0)}return d=function(n){var r=arguments.length>1?arguments:n;return e(r,t.bind(null,{}))}}(),className:y?g:(y=1,g=function(e){return e.constructor&&e.constructor.name||null}),deprecated:function(){return b?iK:(b=1,iK.wrap=function(e,t){var n=function(){return iK.printWarning(t),e.apply(this,arguments)};return e.prototype&&(n.prototype=e.prototype),n},iK.defaultMsg=function(e,t){return`${e}.${t} is deprecated and will be removed from the public API in a future version of ${e}.`},iK.printWarning=function(e){"object"==typeof iD&&iD.emitWarning?iD.emitWarning(e):console.info?console.info(e):console.log(e)},iK)}(),every:v?w:(v=1,w=function(e,t){var n=!0;try{e.forEach(function(){if(!t.apply(this,arguments))throw Error()})}catch(e){n=!1}return n}),functionName:S?x:(S=1,x=function(e){if(!e)return"";try{return e.displayName||e.name||(String(e).match(/function ([^\s(]+)/)||[])[1]}catch(e){return""}}),orderByFirstCall:function(){if($)return k;$=1;var e=iV().sort,t=iV().slice;function n(e,t){var n=e.getCall(0),r=t.getCall(0);return(n&&n.callId||-1)<(r&&r.callId||-1)?-1:1}return k=function(r){return e(t(r),n)}}(),prototypes:D?I:(D=1,I={array:iV(),function:O?T:(O=1,T=iU()(Function.prototype)),map:E?j:(E=1,j=iU()(Map.prototype)),object:A?_:(A=1,_=iU()(Object.prototype)),set:P?M:(P=1,M=iU()(Set.prototype)),string:C?N:(C=1,N=iU()(String.prototype))}),typeOf:function(){if(L)return R;L=1;var e=function(){var e,t,n,r,o,i,s,a,l,c,u,f,h,p,d,m,g,y;if(F)return iG.exports;return F=1,e="function"==typeof Promise,t="object"==typeof self?self:iM,n="undefined"!=typeof Symbol,r="undefined"!=typeof Map,o="undefined"!=typeof Set,i="undefined"!=typeof WeakMap,s="undefined"!=typeof WeakSet,a="undefined"!=typeof DataView,l=n&&void 0!==Symbol.iterator,c=n&&void 0!==Symbol.toStringTag,u=o&&"function"==typeof Set.prototype.entries,f=r&&"function"==typeof Map.prototype.entries,h=u&&Object.getPrototypeOf(new Set().entries()),p=f&&Object.getPrototypeOf(new Map().entries()),m=(d=l&&"function"==typeof Array.prototype[Symbol.iterator])&&Object.getPrototypeOf([][Symbol.iterator]()),y=(g=l&&"function"==typeof String.prototype[Symbol.iterator])&&Object.getPrototypeOf(""[Symbol.iterator]()),iG.exports=function(n){var l=typeof n;if("object"!==l)return l;if(null===n)return"null";if(n===t)return"global";if(Array.isArray(n)&&(!1===c||!(Symbol.toStringTag in n)))return"Array";if("object"==typeof window&&null!==window){if("object"==typeof window.location&&n===window.location)return"Location";if("object"==typeof window.document&&n===window.document)return"Document";if("object"==typeof window.navigator){if("object"==typeof window.navigator.mimeTypes&&n===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==typeof window.navigator.plugins&&n===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"==typeof window.HTMLElement)&&n instanceof window.HTMLElement){if("BLOCKQUOTE"===n.tagName)return"HTMLQuoteElement";if("TD"===n.tagName)return"HTMLTableDataCellElement";if("TH"===n.tagName)return"HTMLTableHeaderCellElement"}}var u=c&&n[Symbol.toStringTag];if("string"==typeof u)return u;var f=Object.getPrototypeOf(n);return f===RegExp.prototype?"RegExp":f===Date.prototype?"Date":e&&f===Prom
82ise.prototype?"Promise":o&&f===Set.prototype?"Set":r&&f===Map.prototype?"Map":s&&f===WeakSet.prototype?"WeakSet":i&&f===WeakMap.prototype?"WeakMap":a&&f===DataView.prototype?"DataView":r&&f===p?"Map Iterator":o&&f===h?"Set Iterator":d&&f===m?"Array Iterator":g&&f===y?"String Iterator":null===f?"Object":Object.prototype.toString.call(n).slice(8,-1)},iG.exports}();return R=function(t){return e(t).toLowerCase()}}(),valueToString:B?q:(B=1,q=function(e){return e&&e.toString?e.toString():String(e)})})).global;if("undefined"!=typeof __vitest_required__){try{e=__vitest_required__.timers}catch(e){}try{t=__vitest_required__.timersPromises}catch(e){}}function r(o){let i,s=function(){},a=function(){return[]},l={},c,u=!1;o.setTimeout&&(l.setTimeout=!0,u="object"==typeof(c=o.setTimeout(s,0))),l.clearTimeout=!!o.clearTimeout,l.setInterval=!!o.setInterval,l.clearInterval=!!o.clearInterval,l.hrtime=o.process&&"function"==typeof o.process.hrtime,l.hrtimeBigint=l.hrtime&&"function"==typeof o.process.hrtime.bigint,l.nextTick=o.process&&"function"==typeof o.process.nextTick;let f=o.process&&o.__vitest_required__&&o.__vitest_required__.util.promisify;l.performance=o.performance&&"function"==typeof o.performance.now;let h=o.Performance&&(typeof o.Performance).match(/^(function|object)$/),p=o.performance&&o.performance.constructor&&o.performance.constructor.prototype;l.queueMicrotask=o.hasOwnProperty("queueMicrotask"),l.requestAnimationFrame=o.requestAnimationFrame&&"function"==typeof o.requestAnimationFrame,l.cancelAnimationFrame=o.cancelAnimationFrame&&"function"==typeof o.cancelAnimationFrame,l.requestIdleCallback=o.requestIdleCallback&&"function"==typeof o.requestIdleCallback,l.cancelIdleCallbackPresent=o.cancelIdleCallback&&"function"==typeof o.cancelIdleCallback,l.setImmediate=o.setImmediate&&"function"==typeof o.setImmediate,l.clearImmediate=o.clearImmediate&&"function"==typeof o.clearImmediate,l.Intl=o.Intl&&"object"==typeof o.Intl,o.clearTimeout&&o.clearTimeout(c);let d=o.Date,m=l.Intl?Object.defineProperties(Object.create(null),Object.getOwnPropertyDescriptors(o.Intl)):void 0,g=1e12;if(void 0===d)throw Error("The global scope doesn't have a `Date` object (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)");l.Date=!0;class y{constructor(e,t,n,r){this.name=e,this.entryType=t,this.startTime=n,this.duration=r}toJSON(){return JSON.stringify({...this})}}let b=!1;function w(e,t){e.loopLimit&&t===e.loopLimit-1&&(b=!0)}function v(e){let t;if(!e)return 0;let n=e.split(":"),r=n.length,o=r,i=0;if(r>3||!/^(\d\d:){0,2}\d\d?$/.test(e))throw Error("tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits");for(;o--;){if((t=parseInt(n[o],10))>=60)throw Error(`Invalid time ${e}`);i+=t*Math.pow(60,r-o-1)}return 1e3*i}function x(e){if(!e)return 0;if("function"==typeof e.getTime)return e.getTime();if("number"==typeof e)return e;throw TypeError("now should be milliseconds since UNIX epoch")}function S(e,t){let n=Error(`Aborting after running ${e.loopLimit} timers, assuming an infinite loop!`);if(!t.error)return n;let r=/target\.*[<|(|[].*?[>|\]|)]\s*/,o=new RegExp(String(Object.keys(e).join("|")));u&&(o=RegExp(`\\s+at (Object\\.)?(?:${Object.keys(e).join("|")})\\s+`));let i=-1;t.error.stack.split("\n").some(function(e,t){return e.match(r)?(i=t,!0):e.match(o)?(i=t,!1):i>=0});let s=`${n}
83${t.type||"Microtask"} - ${t.func.name||"anonymous"}
84${t.error.stack.split("\n").slice(i+1).join("\n")}`;try{Object.defineProperty(n,"stack",{value:s})}catch(e){}return n}function k(e){if(e.jobs){for(let t=0;t<e.jobs.length;t++){let n=e.jobs[t];if(n.func.apply(null,n.args),w(e,t),e.loopLimit&&t>e.loopLimit)throw S(e,n)}b=!1,e.jobs=[]}}function $(e,t){if(void 0===t.func)throw Error("Callback must be provided to timer calls");if(u&&"function"!=typeof t.func)throw TypeError(`[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${t.func} of type ${typeof t.func}`);if(b&&(t.error=Error()),t.type=t.immediate?"Immediate":"Timeout",t.hasOwnProperty("delay")){var n;"number"!=typeof t.delay&&(t.delay=parseInt(t.delay,10)),n=t.delay,(Number.isFinite?Number.isFinite(n):isFinite(n))||(t.delay=0),t.delay=t.delay>0x7fffffff?1:t.delay,t.delay=Math.max(0,t.delay)}if(t.hasOwnProperty("interval")&&(t.type="Interval",t.interval=t.interval>0x7fffffff?1:t.interval),t.hasOwnProperty("animation")&&(t.type="AnimationFrame",t.animation=!0),t.hasOwnProperty("idleCallback")&&(t.type="IdleCallback",t.idleCallback=!0),e.timers||(e.timers={}),t.id=g++,t.createdAt=e.now,t.callAt=e.now+(parseInt(t.delay)||+!!e.duringTick),e.timers[t.id]=t,u){let n={refed:!0,ref:function(){return this.refed=!0,n},unref:function(){return this.refed=!1,n},hasRef:function(){return this.refed},refresh:function(){return t.callAt=e.now+(parseInt(t.delay)||+!!e.duringTick),e.timers[t.id]=t,n},[Symbol.toPrimitive]:function(){return t.id}};return n}return t.id}function T(e,t){return e.callAt<t.callAt?-1:e.callAt>t.callAt?1:e.immediate&&!t.immediate?-1:!e.immediate&&t.immediate?1:e.createdAt<t.createdAt?-1:e.createdAt>t.createdAt?1:e.id<t.id?-1:e.id>t.id?1:void 0}function O(e,t,n){let r,o=e.timers,i=null;for(r in o)if(o.hasOwnProperty(r)){var s;(s=o[r])&&s.callAt>=t&&s.callAt<=n&&(!i||1===T(i,o[r]))&&(i=o[r])}return i}function j(e){let t,n=e.timers,r=null;for(t in n)n.hasOwnProperty(t)&&(!r||1===T(r,n[t]))&&(r=n[t]);return r}function E(e){let t,n=e.timers,r=null;for(t in n)n.hasOwnProperty(t)&&(!r||-1===T(r,n[t]))&&(r=n[t]);return r}function _(e,t){("number"==typeof t.interval?e.timers[t.id].callAt+=t.interval:delete e.timers[t.id],"function"==typeof t.func)?t.func.apply(null,t.args):(0,eval)(t.func)}function A(e){return"IdleCallback"===e||"AnimationFrame"===e?`cancel${e}`:`clear${e}`}
84let M=(i=0,function(e){i++||console.warn(e)});function P(e,t,n){if(!t)return;e.timers||(e.timers={});let r=Number(t);if(Number.isNaN(r)||r<1e12){let r=A(n);if(!0===e.shouldClearNativeTimers){let n=e[`_${r}`];return"function"==typeof n?n(t):void 0}M(`FakeTimers: ${r} was invoked to clear a native timer instead of one created by this library.
85To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`)}if(e.timers.hasOwnProperty(r)){let t=e.timers[r];if(t.type===n||"Timeout"===t.type&&"Interval"===n||"Interval"===t.type&&"Timeout"===n)delete e.timers[r];else{var o;let e=A(n),r="IdleCallback"===(o=t.type)||"AnimationFrame"===o?`request${o}`:`set${o}`;throw Error(`Cannot clear timer: timer created with ${r}() but cleared with ${e}()`)}}}function N(e,t,n){if(n[t].hadOwnProperty=Object.prototype.hasOwnProperty.call(e,t),n[`_${t}`]=e[t],"Date"===t)e[t]=n[t];else if("Intl"===t)e[t]=n[t];else if("performance"===t){let r=Object.getOwnPropertyDescriptor(e,t);if(r&&r.get&&!r.set){Object.defineProperty(n,`_${t}`,r);let o=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,o)}else e[t]=n[t]}else e[t]=function(){return n[t].apply(n,arguments)},Object.defineProperties(e[t],Object.getOwnPropertyDescriptors(n[t]));e[t].clock=n}function C(e,t){e.tick(t)}let I={setTimeout:o.setTimeout,clearTimeout:o.clearTimeout,setInterval:o.setInterval,clearInterval:o.clearInterval,Date:o.Date};l.setImmediate&&(I.setImmediate=o.setImmediate),l.clearImmediate&&(I.clearImmediate=o.clearImmediate),l.hrtime&&(I.hrtime=o.process.hrtime),l.nextTick&&(I.nextTick=o.process.nextTick),l.performance&&(I.performance=o.performance),l.requestAnimationFrame&&(I.requestAnimationFrame=o.requestAnimationFrame),l.queueMicrotask&&(I.queueMicrotask=o.queueMicrotask),l.cancelAnimationFrame&&(I.cancelAnimationFrame=o.cancelAnimationFrame),l.requestIdleCallback&&(I.requestIdleCallback=o.requestIdleCallback),l.cancelIdleCallback&&(I.cancelIdleCallback=o.cancelIdleCallback),l.Intl&&(I.Intl=m);let D=o.setImmediate||o.setTimeout;function F(e,t){e=Math.floor(x(e)),t=t||1e3;let n=0,r=[0,0],i={now:e,Date:function(){class e extends d{constructor(t,n,r,o,i,s,a){0==arguments.length?super(e.clock.now):super(...arguments),Object.defineProperty(this,"constructor",{value:d,enumerable:!1})}static[Symbol.hasInstance](e){return e instanceof d}}return e.isFake=!0,d.now&&(e.now=function(){return e.clock.now}),d.toSource&&(e.toSource=function(){return d.toSource()}),e.toString=function(){return d.toString()},new Proxy(e,{apply(){if(this instanceof e)throw 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 d(e.clock.now).toString()}})}(),loopLimit:t};function s(){return 16-(i.now-e)%16}function a(t){let o=i.now-r[0]-e,s=Math.floor(o/1e3),a=(o-1e3*s)*1e6+n-r[1];if(Array.isArray(t)){if(t[1]>1e9)throw TypeError("Number of nanoseconds can't exceed a billion");let e=t[0],n=a-t[1],r=s-e;return n<0&&(n+=1e9,r-=1),[r,n]}return[s,a]}function c(){let e=a();return 1e3*e[0]+e[1]/1e6}function u(e,t,r,o){let s,a,l,c,u,f,h="number"==typeof e?e:v(e),p=Math.floor(h),d=function(e){let t=1e6*e%1e6;return Math.floor(t<0?t+1e6:t)}(h),m=n+d,g=i.now+p;if(h<0)throw TypeError("Negative ticks are not supported");m>=1e6&&(g+=1,m-=1e6),n=m;let y=i.now,b=i.now;function w(){for(s=O(i,y,g);s&&y<=g;){if(i.timers[s.id]){y=s.callAt,i.now=s.callAt,l=i.now;try{k(i),_(i,s)}catch(e){a=a||e}if(t)return void D(c);u()}f()}if(l=i.now,k(i),l!==i.now&&(y+=i.now-l,g+=i.now-l),i.duringTick=!1,s=O(i,y,g))try{i.tick(g-i.now)}catch(e){a=a||e}else i.now=g,n=m;if(a)throw a;if(!t)return i.now;r(i.now)}return i.duringTick=!0,l=i.now,k(i),l!==i.now&&(y+=i.now-l,g+=i.now-l),c=t&&function(){try{u(),f(),w()}catch(e){o(e)}},u=function(){l!==i.now&&(y+=i.now-l,g+=i.now-l,b+=i.now-l)},f=function(){s=O(i,b,g),b=y},w()}return i.Date.clock=i,l.hrtimeBigint&&(a.bigint=function(){let e=a();return BigInt(e[0])*BigInt(1e9)+BigInt(e[1])}),l.Intl&&(i.Intl=function(){let e={};return Object.getOwnPropertyNames(m).forEach(t=>e[t]=m[t]),e.DateTimeFormat=function(...t){let n=new m.DateTimeFormat(...t),r={};return["formatRange","formatRangeToParts","resolvedOptions"].forEach(e
85=>{r[e]=n[e].bind(n)}),["format","formatToParts"].forEach(t=>{r[t]=function(r){return n[t](r||e.clock.now)}}),r},e.DateTimeFormat.prototype=Object.create(m.DateTimeFormat.prototype),e.DateTimeFormat.supportedLocalesOf=m.DateTimeFormat.supportedLocalesOf,e}(),i.Intl.clock=i),i.requestIdleCallback=function(e,t){let n=0;i.countTimers()>0&&(n=50);let r=$(i,{func:e,args:Array.prototype.slice.call(arguments,2),delay:void 0===t?n:Math.min(t,n),idleCallback:!0});return Number(r)},i.cancelIdleCallback=function(e){return P(i,e,"IdleCallback")},i.setTimeout=function(e,t){return $(i,{func:e,args:Array.prototype.slice.call(arguments,2),delay:t})},void 0!==o.Promise&&f&&(i.setTimeout[f.custom]=function(e,t){return new o.Promise(function(n){$(i,{func:n,args:[t],delay:e})})}),i.clearTimeout=function(e){return P(i,e,"Timeout")},i.nextTick=function(e){var t;return t={func:e,args:Array.prototype.slice.call(arguments,1),error:b?Error():null},void(!i.jobs&&(i.jobs=[]),i.jobs.push(t))},i.queueMicrotask=function(e){return i.nextTick(e)},i.setInterval=function(e,t){return t=parseInt(t,10),$(i,{func:e,args:Array.prototype.slice.call(arguments,2),delay:t,interval:t})},i.clearInterval=function(e){return P(i,e,"Interval")},l.setImmediate&&(i.setImmediate=function(e){return $(i,{func:e,args:Array.prototype.slice.call(arguments,1),immediate:!0})},void 0!==o.Promise&&f&&(i.setImmediate[f.custom]=function(e){return new o.Promise(function(t){$(i,{func:t,args:[e],immediate:!0})})}),i.clearImmediate=function(e){return P(i,e,"Immediate")}),i.countTimers=function(){return Object.keys(i.timers||{}).length+(i.jobs||[]).length},i.requestAnimationFrame=function(e){return Number($(i,{func:e,delay:s(),get args(){return[c()]},animation:!0}))},i.cancelAnimationFrame=function(e){return P(i,e,"AnimationFrame")},i.runMicrotasks=function(){k(i)},i.tick=function(e){return u(e,!1)},void 0!==o.Promise&&(i.tickAsync=function(e){return new o.Promise(function(t,n){D(function(){try{u(e,!0,t,n)}catch(e){n(e)}})})}),i.next=function(){k(i);let e=j(i);if(!e)return i.now;i.duringTick=!0;try{return i.now=e.callAt,_(i,e),k(i),i.now}finally{i.duringTick=!1}},void 0!==o.Promise&&(i.nextAsync=function(){return new o.Promise(function(e,t){D(function(){try{let n,r=j(i);if(!r)return void e(i.now);i.duringTick=!0,i.now=r.callAt;try{_(i,r)}catch(e){n=e}i.duringTick=!1,D(function(){n?t(n):e(i.now)})}catch(e){t(e)}})})}),i.runAll=function(){let e;for(k(i),e=0;e<i.loopLimit;e++){if(!i.timers||0===Object.keys(i.timers).length)return b=!1,i.now;i.next(),w(i,e)}let t=j(i);throw S(i,t)},i.runToFrame=function(){return i.tick(s())},void 0!==o.Promise&&(i.runAllAsync=function(){return new o.Promise(function(e,t){let n=0;!function r(){D(function(){try{let o;if(k(i),n<i.loopLimit){if(!i.timers||(o=Object.keys(i.timers).length,0===o)){b=!1,e(i.now);return}i.next(),n++,r(),w(i,n);return}let s=j(i);t(S(i,s))}catch(e){t(e)}})}()})}),i.runToLast=function(){let e=E(i);return e?i.tick(e.callAt-i.now):(k(i),i.now)},void 0!==o.Promise&&(i.runToLastAsync=function(){return new o.Promise(function(e,t){D(function(){try{let t=E(i);t||(k(i),e(i.now)),e(i.tickAsync(t.callAt-i.now))}catch(e){t(e)}})})}),i.reset=function(){n=0,i.timers={},i.jobs=[],i.now=e},i.setSystemTime=function(e){let t,o,s=x(e),a=s-i.now;for(t in r[0]=r[0]+a,r[1]=r[1]+n,i.now=s,n=0,i.timers)i.timers.hasOwnProperty(t)&&(o=i.timers[t],o.createdAt+=a,o.callAt+=a)},i.jump=function(e){let t=Math.floor("number"==typeof e?e:v(e));for(let e of Object.values(i.timers))i.now+t>e.callAt&&(e.callAt=i.now+t);i.tick(t)},l.performance&&(i.performance=Object.create(null),i.performance.now=c),l.hrtime&&(i.hrtime=a),i}return{timers:I,createClock:F,install:function(r){let i,c;if(arguments.length>1||r instanceof Date||Array.isArray(r)||"number"==typeof r)throw TypeError(`FakeTimers.install called with ${String(r)} install requires an object parameter`);if(!0===o.Date.isFake)throw TypeError("Can't install fake timers twice on the same global object.");if((r=void 0!==r?r:{}).shouldAdvanceTime=r.shouldAdvanceTime||!1,r.advanceTimeDelta=r.advanceTimeDelta||20,r.shouldClearNativeTimers=r.shouldClearNativeTimers||!1,r.target)throw TypeError("config.target is no longer supported. Use `withGlobal(target)` instead.");function u(e){if(!r.ignoreMissingTimers)throw ReferenceError(`non-existent timers and/or objects cannot be faked: '${e}'`)}let f=F(r.now,r.loopLimit);if(f.shouldClearNativeTimers=r.shouldClearNativeTimers,f.uninstall=function(){return function(n,r){let i,s,a;for(s=0,a=n.methods.length;s<a;s++){if("hrtime"===(i=n.methods[s])&&o.process)o.process.hrtime=n._hrtime;else if("nextTick"===i&&o.process)o.process.nextTick=n._nextTick;else if("performance"===i){let e=Object.getOwnPropertyDescriptor(n,`_${i}`);e&&e.get&&!e.set?Object.defineProperty(o,i,e):e.configurable&&(o[i]=n[`_${i}`])}else if(o[i]&&o[i].hadOwnProperty)o[i]=n[`_${i}`];else try{delete o[i]}catch(e){}if(void 0!==n.timersModuleMethods)for(let t=0;t<n.timersModuleMethods.length;t++){let r=n.timersModuleMethods[t];e[r.methodName]=r.original}if(void 0!==n.timersPromisesModuleMethods)for(let e=0;e<n.timersPromisesModuleMethods.length;e++){let r=n.timersPromisesModuleMethods[e];t[r.methodName]=r.original}}for(let[e,t]of(!0===r.shouldAdvanceTime&&o.clearInterval(n.attachedInterval),n.methods=[],n.abortListenerMap.entries()))t.removeEventListener("abort",e),n.abortListenerMap.delete(e);return n.timers?Object.keys(n.timers).map(function(e){return n.timers[e]}):[]}(f,r)},f.abortListenerMap=new Map,f.methods=r.toFake||[],0===f.methods.length&&(f.methods=Object.keys(I)),!0===r.
85shouldAdvanceTime){let e=C.bind(null,f,r.advanceTimeDelta);f.attachedInterval=o.setInterval(e,r.advanceTimeDelta)}if(f.methods.includes("performance")){let e=p?o.performance.constructor.prototype:h?o.Performance.prototype:void 0;if(e)Object.getOwnPropertyNames(e).forEach(function(e){"now"!==e&&(f.performance[e]=0===e.indexOf("getEntries")?a:s)}),f.performance.mark=e=>new y(e,"mark",0,0),f.performance.measure=e=>new y(e,"measure",0,100),f.performance.timeOrigin=x(r.now);else if((r.toFake||[]).includes("performance"))return u("performance")}for(o===n&&e&&(f.timersModuleMethods=[]),o===n&&t&&(f.timersPromisesModuleMethods=[]),i=0,c=f.methods.length;i<c;i++){let n=f.methods[i];if(!l[n]){u(n);continue}if("hrtime"===n?o.process&&"function"==typeof o.process.hrtime&&N(o.process,n,f):"nextTick"===n?o.process&&"function"==typeof o.process.nextTick&&N(o.process,n,f):N(o,n,f),void 0!==f.timersModuleMethods&&e[n]){let t=e[n];f.timersModuleMethods.push({methodName:n,original:t}),e[n]=o[n]}void 0!==f.timersPromisesModuleMethods&&("setTimeout"===n?(f.timersPromisesModuleMethods.push({methodName:"setTimeout",original:t.setTimeout}),t.setTimeout=(e,t,n={})=>new Promise((r,o)=>{let i=()=>{n.signal.removeEventListener("abort",i),f.abortListenerMap.delete(i),f.clearTimeout(s),o(n.signal.reason)},s=f.setTimeout(()=>{n.signal&&(n.signal.removeEventListener("abort",i),f.abortListenerMap.delete(i)),r(t)},e);n.signal&&(n.signal.aborted?i():(n.signal.addEventListener("abort",i),f.abortListenerMap.set(i,n.signal)))})):"setImmediate"===n?(f.timersPromisesModuleMethods.push({methodName:"setImmediate",original:t.setImmediate}),t.setImmediate=(e,t={})=>new Promise((n,r)=>{let o=()=>{t.signal.removeEventListener("abort",o),f.abortListenerMap.delete(o),f.clearImmediate(i),r(t.signal.reason)},i=f.setImmediate(()=>{t.signal&&(t.signal.removeEventListener("abort",o),f.abortListenerMap.delete(o)),n(e)});t.signal&&(t.signal.aborted?o():(t.signal.addEventListener("abort",o),f.abortListenerMap.set(o,t.signal)))})):"setInterval"===n&&(f.timersPromisesModuleMethods.push({methodName:"setInterval",original:t.setInterval}),t.setInterval=(e,t,n={})=>({[Symbol.asyncIterator]:()=>{let r,o=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},i=!1,s=!1,a=0,l=[],c=f.setInterval(()=>{l.length>0?l.shift().resolve():a++},e),u=()=>{for(let e of(n.signal.removeEventListener("abort",u),f.abortListenerMap.delete(u),f.clearInterval(c),i=!0,l))e.resolve()};return n.signal&&(n.signal.aborted?i=!0:(n.signal.addEventListener("abort",u),f.abortListenerMap.set(u,n.signal))),{next:async()=>{if(n.signal?.aborted&&!s)throw s=!0,n.signal.reason;if(i)return{done:!0,value:void 0};if(a>0)return a--,{done:!1,value:t};let e=o();if(l.push(e),await e,r&&0===l.length&&r.resolve(),n.signal?.aborted&&!s)throw s=!0,n.signal.reason;return i?{done:!0,value:void 0}:{done:!1,value:t}},return:async()=>(i||(l.length>0&&(r=o(),await r),f.clearInterval(c),i=!0,n.signal&&(n.signal.removeEventListener("abort",u),f.abortListenerMap.delete(u))),{done:!0,value:void 0})}}})))}return f},withGlobal:r}}let o=r(n);return iW.timers=o.timers,iW.createClock=o.createClock,iW.install=o.install,iW.withGlobal=r,iW}());class iJ{_global;_clock;_fakingTime;_fakingDate;_fakeTimers;_userConfig;_now=iP.now;constructor({global:e,config:t}){this._userConfig=t,this._fakingDate=null,this._fakingTime=!1,this._fakeTimers=iH.withGlobal(e),this._global=e}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(e=1){if(this._checkFakeTimers())for(let t=e;t>0&&(this._clock.next(),this._clock.tick(0),0!==this._clock.countTimers());t--);}async advanceTimersToNextTimerAsync(e=1){if(this._checkFakeTimers())for(let t=e;t>0&&(await this._clock.nextAsync(),this._clock.tick(0),0!==this._clock.countTimers());t--);}advanceTimersByTime(e){this._checkFakeTimers()&&this._clock.tick(e)}async advanceTimersByTimeAsync(e){this._checkFakeTimers()&&await this._clock.tickAsync(e)}advanceTimersToNextFrame(){this._checkFakeTimers()&&this._clock.runToFrame()}runAllTicks(){this._checkFakeTimers()&&this._clock.runMicrotasks()}useRealTimers(){this._fakingDate&&(iI(),this._fakingDate=null),this._fakingTime&&(this._clock.uninstall(),this._fakingTime=!1)}useFakeTimers(){let e=this._fakingDate||Date.now();this._fakingDate&&(iI(),this._fakingDate=null),this._fakingTime&&this._clock.uninstall();let t=Object.keys(this._fakeTimers.timers).filter(e=>"nextTick"!==e&&"queueMicrotask"!==e);if(this._userConfig?.toFake?.includes("nextTick")&&oC())throw Error("process.nextTick cannot be mocked inside child_process");this._clock=this._fakeTimers.install({now:e,...this._userConfig,toFake:this._userConfig?.toFake||t,ignoreMissingTimers:!0}),this._fakingTime=!0}reset(){if(this._checkFakeTimers()){let{now:e}=this._clock;this._clock.reset(),this._clock.setSystemTime(e)}}setSystemTime(e){let t=void 0===e||e instanceof Date?e:new Date(e);if(this._fakingTime)this._clock.setSystemTime(t);else{this._fakingDate=t??new Date(this.getRealSystemTime());var n=this._fakingDate;let e=new iP(n.valueOf());if(Number.isNaN(e.getTime()))throw TypeError(`mockdate: The time set is an invali
85d date: ${n}`);globalThis.Date=iC,iN=e.valueOf()}}getMockedSystemTime(){return this._fakingTime?new Date(this._clock.now):this._fakingDate}getRealSystemTime(){return this._now()}getTimerCount(){return this._checkFakeTimers()?this._clock.countTimers():0}configure(e){this._userConfig=e}isFakeTimers(){return this._fakingTime}_checkFakeTimers(){if(!this._fakingTime)throw Error("A function to advance timers was called but the timers APIs are not mocked. Call `vi.useFakeTimers()` in the test file first.");return this._fakingTime}}function iZ(e,t){return void 0!==t.stack&&(e.stack=t.stack.replace(t.message,e.message)),e}function iY(e,t={}){let{setTimeout:n,setInterval:r,clearTimeout:o,clearInterval:i}=(0,oM.GO)(),{interval:s=50,timeout:a=1e3}="number"==typeof t?{timeout:t}:t,l=Error("STACK_TRACE_ERROR");return new Promise((t,c)=>{let u,f,h,p="idle",d=e=>{f&&o(f),h&&i(h),t(e)},m=()=>{if(iX.isFakeTimers()&&iX.advanceTimersByTime(s),"pending"!==p)try{let t=e();if(null===t||"object"!=typeof t||"function"!=typeof t.then)return d(t),!0;p="pending",t.then(e=>{p="resolved",d(e)},e=>{p="rejected",u=e})}catch(e){u=e}};!0!==m()&&(f=n(()=>{h&&i(h);let e=u;e||(e=iZ(Error("Timed out in waitFor!"),l)),c(e)},a),h=r(m,s))})}function iQ(e,t={}){let{setTimeout:n,setInterval:r,clearTimeout:o,clearInterval:i}=(0,oM.GO)(),{interval:s=50,timeout:a=1e3}="number"==typeof t?{timeout:t}:t,l=Error("STACK_TRACE_ERROR");return new Promise((t,c)=>{let u,f,h="idle",p=e=>{f&&i(f),e||(e=iZ(Error("Timed out in waitUntil!"),l)),c(e)},d=e=>{if(e)return u&&o(u),f&&i(f),t(e),!0},m=()=>{if(iX.isFakeTimers()&&iX.advanceTimersByTime(s),"pending"!==h)try{let t=e();if(null===t||"object"!=typeof t||"function"!=typeof t.then)return d(t);h="pending",t.then(e=>{h="resolved",d(e)},e=>{h="rejected",p(e)})}catch(e){p(e)}};!0!==m()&&(u=n(p,a),f=r(m,s))})}let iX=function(){let e,t=null,n=()=>oN(),r=()=>e||=new iJ({global:globalThis,config:n().config.fakeTimers}),o=new Map,i=new Map,s=["PROD","DEV","SSR"],a={useFakeTimers(e){if(oC()&&(e?.toFake?.includes("nextTick")||n().config?.fakeTimers?.toFake?.includes("nextTick")))throw Error('vi.useFakeTimers({ toFake: ["nextTick"] }) is not supported in node:child_process. Use --pool=threads if mocking nextTick is required.');return e?r().configure({...n().config.fakeTimers,...e}):r().configure(n().config.fakeTimers),r().useFakeTimers(),a},isFakeTimers:()=>r().isFakeTimers(),useRealTimers:()=>(r().useRealTimers(),a),runOnlyPendingTimers:()=>(r().runOnlyPendingTimers(),a),runOnlyPendingTimersAsync:async()=>(await r().runOnlyPendingTimersAsync(),a),runAllTimers:()=>(r().runAllTimers(),a),runAllTimersAsync:async()=>(await r().runAllTimersAsync(),a),runAllTicks:()=>(r().runAllTicks(),a),advanceTimersByTime:e=>(r().advanceTimersByTime(e),a),advanceTimersByTimeAsync:async e=>(await r().advanceTimersByTimeAsync(e),a),advanceTimersToNextTimer:()=>(r().advanceTimersToNextTimer(),a),advanceTimersToNextTimerAsync:async()=>(await r().advanceTimersToNextTimerAsync(),a),advanceTimersToNextFrame:()=>(r().advanceTimersToNextFrame(),a),getTimerCount:()=>r().getTimerCount(),setSystemTime:e=>(r().setSystemTime(e),a),getMockedSystemTime:()=>r().getMockedSystemTime(),getRealSystemTime:()=>r().getRealSystemTime(),clearAllTimers:()=>(r().clearAllTimers(),a),spyOn:rE,fn:rj,waitFor:iY,waitUntil:iQ,hoisted:e=>((0,nL.q4)(e,'"vi.hoisted" factory',["function"]),e()),mock(e,t){if("string"!=typeof e)throw TypeError(`vi.mock() expects a string path, but received a ${typeof e}`);let n=i1("mock");i0().queueMock(e,n,"function"==typeof t?()=>t(()=>i0().importActual(e,n,i0().getMockContext().callstack)):t)},unmock(e){if("string"!=typeof e)throw TypeError(`vi.unmock() expects a string path, but received a ${typeof e}`);i0().queueUnmock(e,i1("unmock"))},doMock(e,t){if("string"!=typeof e)throw TypeError(`vi.doMock() expects a string path, but received a ${typeof e}`);let n=i1("doMock");i0().queueMock(e,n,"function"==typeof t?()=>t(()=>i0().importActual(e,n,i0().getMockContext().callstack)):t)},doUnmock(e){if("string"!=typeof e)throw TypeError(`vi.doUnmock() expects a string path, but received a ${typeof e}`);let t=i1("doUnmock");i0().queueUnmock(e,t)},async importActual(e){let t=i1("importActual");return i0().importActual(e,t,i0().getMockContext().callstack)},async importMock(e){let t=i1("importMock");return i0().importMock(e,t)},mockObject:(e,t)=>
85i0().mockObject({value:e},void 0,t?.spy?"autospy":"automock").value,mocked:(e,t={})=>e,isMockFunction:e=>rS(e),clearAllMocks:()=>(r$.forEach(e=>e.mockClear()),a),resetAllMocks:()=>(r$.forEach(e=>e.mockReset()),a),restoreAllMocks(){for(let e of rk)e();return rk.clear(),a},stubGlobal:(e,t)=>(o.has(e)||o.set(e,Object.getOwnPropertyDescriptor(globalThis,e)),Object.defineProperty(globalThis,e,{value:t,writable:!0,configurable:!0,enumerable:!0}),a),stubEnv(e,t){let r=n().metaEnv;return i.has(e)||i.set(e,r[e]),s.includes(e)?r[e]=t?"1":"":void 0===t?delete r[e]:r[e]=String(t),a},unstubAllGlobals:()=>(o.forEach((e,t)=>{e?Object.defineProperty(globalThis,t,e):Reflect.deleteProperty(globalThis,t)}),o.clear(),a),unstubAllEnvs(){let e=n().metaEnv;return i.forEach((t,n)=>{void 0===t?delete e[n]:e[n]=t}),i.clear(),a},resetModules:()=>(!function(e,t=!1){let n=[/\/vitest\/dist\//,/vitest-virtual-\w+\/dist/,/@vitest\/dist/,...t?[]:[/^mock:/]];e.idToModuleMap.forEach((e,t)=>{n.some(e=>e.test(t))||(e.promise=void 0,e.exports=void 0,e.evaluated=!1,e.importers.clear())})}(n().evaluatedModules),a),dynamicImportSettled:async()=>oI(),setConfig(e){t||(t={...n().config}),Object.assign(n().config,e)},resetConfig(){t&&Object.assign(n().config,t)}};return a}();function i0(){return"undefined"!=typeof __vitest_mocker__?__vitest_mocker__:new Proxy({},{get(e,t){throw Error(`Vitest mocker was not initialized in this environment. vi.${String(t)}() is forbidden.`)}})}function i1(e){let t=(0,nL.ml)({stackTraceLimit:5}).split("\n");return(0,iA.s1)(t[t.findLastIndex(t=>t.includes(` at Object.${e}`)||t.includes(`${e}@`)||t.includes(` at ${e} (`))+1])?.file||""}},23412:(e,t,n)=>{let r,o,i,s;n.d(t,{it:()=>F,q0:()=>D,rK:()=>M,yA:()=>T});var a,l,c=n(87308),u=n(41545),f=n(28327),h=n(43882);
85class p extends Error{code="VITEST_PENDING";taskId;constructor(e,t,n){super(e),this.message=e,this.note=n,this.taskId=t.id}}let d=new WeakMap,m=new WeakMap,g=new WeakMap;function y(e,t,n){let r=["auto","injected","scope"],o=Object.entries(e).map(([e,t])=>{let o={value:t};if(Array.isArray(t)&&t.length>=2&&(0,c.Gv)(t[1])&&Object.keys(t[1]).some(e=>r.includes(e))){var i;Object.assign(o,t[1]);let r=t[0];o.value=o.injected?(null==(i=n.injectValue)?void 0:i.call(n,e))??r:r}return o.scope=o.scope||"test","worker"!==o.scope||n.getWorkerContext||(o.scope="file"),o.prop=e,o.isFn="function"==typeof o.value,o});return Array.isArray(t.fixtures)?t.fixtures=t.fixtures.concat(o):t.fixtures=o,o.forEach(e=>{if(e.isFn){let r=k(e.value);if(r.length&&(e.deps=t.fixtures.filter(({prop:t})=>t!==e.prop&&r.includes(t))),"test"!==e.scope){var n;null==(n=e.deps)||n.forEach(t=>{if(t.isFn&&("worker"!==e.scope||"worker"!==t.scope)&&("file"!==e.scope||"test"===t.scope))throw SyntaxError(`cannot use the ${t.scope} fixture "${t.prop}" inside the ${e.scope} fixture "${e.prop}"`)})}}}),t}let b=new Map,w=new Map;function v(e,t,n){return r=>{let o=r||n;if(!o)return t({});let i=m.get(o);if(!(null==i?void 0:i.length))return t(o);let s=k(t),a=i.some(({auto:e})=>e);if(!s.length&&!a)return t(o);b.get(o)||b.set(o,new Map);let l=b.get(o);w.has(o)||w.set(o,[]);let c=w.get(o),u=function e(t,n=new Set,r=[]){return t.forEach(t=>{if(!r.includes(t)){if(!t.isFn||!t.deps)return void r.push(t);if(n.has(t))throw Error(`Circular fixture dependency detected: ${t.prop} <- ${[...n].reverse().map(e=>e.prop).join(" <- ")}`);n.add(t),e(t.deps,n,r),r.push(t),n.clear()}}),r}(i.filter(({prop:e,auto:t})=>t||s.includes(e)));return u.length?(async function(){for(let t of u){if(l.has(t))continue;let n=await function(e,t,n,r){var o,i,s;let a,l=function(e){let t=Q.get(e);if(!t)throw Error(`Cannot find file context for ${e.name}`);return t}(n.task.file),c=null==(o=e.getWorkerContext)?void 0:o.call(e);if(!t.isFn)return l[i=t.prop]??(l[i]=t.value),c&&(c[s=t.prop]??(c[s]=t.value)),t.value;if("test"===t.scope)return S(t.value,n,r);if(x.has(t))return x.get(t);if("worker"===t.scope){if(!c)throw TypeError("[@vitest/runner] The worker context is not available in the current test runner. Please, provide the `getWorkerContext` method when initiating the runner.");a=c}else a=l;if(t.prop in a)return a[t.prop];w.has(a)||w.set(a,[]);let u=w.get(a),f=S(t.value,a,u).then(e=>(a[t.prop]=e,x.delete(t),e));return x.set(t,f),f}(e,t,o,c);o[t.prop]=n,l.set(t,n),"test"===t.scope&&c.unshift(()=>{l.delete(t)})}})().then(()=>t(o)):t(o)}}let x=new WeakMap;async function S(e,t,n){let r=(0,c.rK)(),o=!1,i=e(t,async e=>{o=!0,r.resolve(e);let t=(0,c.rK)();n.push(async()=>{t.resolve(),await i}),await t}).catch(e=>{if(!o)return void r.reject(e);throw e});return r}function k(e){let t=function(e){let t=[],n="none";for(let r=0;r<e.length;++r)"singleline"===n?"\n"===e[r]&&(n="none"):"multiline"===n?"*"===e[r-1]&&"/"===e[r]&&(n="none"):"none"===n&&("/"===e[r]&&"/"===e[r+1]?n="singleline":"/"===e[r]&&"*"===e[r+1]?(n="multiline",r+=2):t.push(e[r]));return t.join("")}(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=$(n[1]);if(!r.length)return[];let o=r[0];if("__VITEST_FIXTURE_INDEX__"in e&&!(o=r[e.__VITEST_FIXTURE_INDEX__]))return[];if(!("{"===o[0]&&o.endsWith("}")))throw 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,"")).map(e=>e.replace(/:.*|=.*/g,"")),s=i.at(-1);if(s&&s.startsWith("..."))throw Error(`Rest parameters are not supported in fixtures, received "${s}".`);return i}function $(e){let t=[],n=[],r=0;for(let o=0;o<e.length;o++)if("{"===e[o]||"["===e[o])n.push("{"===e[o]?"}":"]");else if(e[o]===n.at(-1))n.pop();else if(!n.length&&","===e[o]){let n=e.substring(r,o).trim();n&&t.push(n),r=o+1}let o=e.substring(r).trim();return o&&t.push(o),t}function T(){return r}function O(){return L().config.hookTimeout}let j=Symbol.for("VITEST_CLEANUP_TIMEOUT"),E=Symbol.for("VITEST_CLEANUP_STACK_TRACE");function _(e,t=O()){(0,c.q4)(e,'"beforeAll" callback',["function"]);let n=Error("STACK_TRACE_ERROR");return q().on("beforeAll",Object.assign(J(e,t,!0,n),{[j]:t,[E]:n}
85))}function A(e,t){return(0,c.q4)(e,'"afterAll" callback',["function"]),q().on("afterAll",J(e,t??O(),!0,Error("STACK_TRACE_ERROR")))}function M(e,t=O()){(0,c.q4)(e,'"beforeEach" callback',["function"]);let n=Error("STACK_TRACE_ERROR"),r=L();return q().on("beforeEach",Object.assign(J(v(r,e),t??O(),!0,n,Y),{[j]:t,[E]:n}))}function P(e,t){(0,c.q4)(e,'"afterEach" callback',["function"]);let n=L();return q().on("afterEach",J(v(n,e),t??O(),!0,Error("STACK_TRACE_ERROR"),Y))}function N(e,t){return(n,o)=>{if((0,c.q4)(n,`"${e}" callback`,["function"]),!r)throw Error(`Hook ${e}() can only be called inside a test`);return t(r,n,o)}}N("onTestFailed",(e,t,n)=>{e.onFailed||(e.onFailed=[]),e.onFailed.push(J(t,n??O(),!0,Error("STACK_TRACE_ERROR"),Y))}),N("onTestFinished",(e,t,n)=>{e.onFinished||(e.onFinished=[]),e.onFinished.push(J(t,n??O(),!0,Error("STACK_TRACE_ERROR"),Y))});let C=function(){function e(e,t,n){var r;let a=this.only?"only":this.skip?"skip":this.todo?"todo":"run",l=G.currentSuite||i,{options:c,handler:u}=B(t,n);"run"!==a||u||(a="todo");let f=c.concurrent||this.concurrent||!1===c.sequential,b=c.sequential||this.sequential||!1===c.concurrent;c={...null==l?void 0:l.options,...c,shuffle:this.shuffle??c.shuffle??(null==l||null==(r=l.options)?void 0:r.shuffle)??(null==o?void 0:o.config.sequence.shuffle)};let w=f||c.concurrent&&!b,x=b||c.sequential&&!f;return c.concurrent=w&&!x,c.sequential=x&&!w,function(e,t=()=>{},n,r,i,a){var l,c;let u,f=[];k(!0);let b=function(e="",t={}){var n,r,a,l,c,u,g;let y=(null==t?void 0:t.timeout)??o.config.testTimeout,b=null==(n=G.currentSuite)?void 0:n.suite,w={id:"",name:e,fullName:(0,h.e)([(null==b?void 0:b.fullName)??(null==(r=G.currentSuite)||null==(r=r.file)?void 0:r.fullName),e]),fullTestName:(0,h.e)([null==b?void 0:b.fullTestName,e]),suite:b,each:t.each,fails:t.fails,context:void 0,type:"test",file:(null==b?void 0:b.file)??(null==(a=G.currentSuite)?void 0:a.file),timeout:y,retry:t.retry??o.config.retry,repeats:t.repeats,mode:t.only?"only":t.skip?"skip":t.todo?"todo":"run",meta:t.meta??Object.create(null),annotations:[],artifacts:[]},x=t.handler;"run"!==w.mode||x||(w.mode="todo"),(t.concurrent||!t.sequential&&o.config.sequence.concurrent)&&(w.concurrent=!0),w.shuffle=null==i?void 0:i.shuffle;let S=function(e,t){var n;let r=function(){throw Error("done() callback is deprecated, use promise instead")},o=Z.get(r);return o||(o=new AbortController,Z.set(r,o)),r.signal=o.signal,r.task=e,r.skip=(t,n)=>{if(!1!==t)throw e.result??(e.result={state:"skip"}),e.result.pending=!0,new p("test is skipped; abort execution",e,"string"==typeof t?t:n)},r.annotate=(n,r,o)=>{var i,s;if(e.result&&"run"!==e.result.state)throw Error(`Cannot annotate tests outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);let a={message:n,type:"object"==typeof r||void 0===r?"notice":r},l="object"==typeof r?r:o;return l&&(a.attachment=l,el(a.attachment)),i=e,s=(s=es(e,{type:"internal:annotation",annotation:a}).then(async({annotation:n})=>{if(!t.onTestAnnotate)throw Error("Test runner doesn't support test annotations.");await ei(t);let r=await t.onTestAnnotate(e,n);return e.annotations.push(r),r})).finally(()=>{if(!i.promises)return;let e=i.promises.indexOf(s);-1!==e&&i.promises.splice(e,1)}),i.promises||(i.promises=[]),i.promises.push(s),s},r.onTestFailed=(n,r)=>{e.onFailed||(e.onFailed=[]),e.onFailed.push(J(n,r??t.config.hookTimeout,!0,Error("STACK_TRACE_ERROR"),(e,t)=>o.abort(t)))},r.onTestFinished=(n,r)=>{e.onFinished||(e.onFinished=[]),e.onFinished.push(J(n,r??t.config.hookTimeout,!0,Error("STACK_TRACE_ERROR"),(e,t)=>o.abort(t)))},(null==(n=t.extendTaskContext)?void 0:n.call(t,r))||r}(w,o);Object.defineProperty(w,"context",{value:S,enumerable:!1}),l=t.fixtures,m.set(S,l);let k=Error.stackTraceLimit;Error.stackTraceLimit=15;let $=Error("STACK_TRACE_ERROR");if(Error.stackTraceLimit=k,x&&(c=J((u=v(o,x,S),g=w,async(...e)=>{let t=await u(...e);if(g.promises){let e=(await Promise.allSettled(g.promises)).map(e=>"rejected"===e.status?e.reason:void 0).filter(Boolean);if(e.length)throw e}return t}),y,!1,$,(e,t)=>Y([S],t)),d.set(w,c)),o.config.includeTaskLocation){let e=$.stack,t=(0,h.f)(s,e);t&&(w.location={line:t.line,column:t.column})}return f.push(w),w},w=z(function(e,t,n){let{options:r,handler:o}=B(t,n);"object"==typeof i&&(r=Object.assign({},i,r)),r.concurrent=this.concurrent||!this.sequential&&(null==r?void 0:r.concurrent),r.sequential=this.sequential||!this.concurrent&&(null==r?void 0:r.sequential),b(W(e),{...this,...r,handler:o}).type="test"}),x=a,S={type:"collector",name:e,mode:n,suite:u,options:i,test:w,tasks:f,collect:$,task:b,clear:function(){f.length=0,k(!1)},on:function(e,...t){var n;(n=u,g.get(n))[e].push(...t)},fixtures:()=>x,scoped(e){let t=y(e,{fixtures:x},o);t.fixtures&&(x=t.fixtures)}};function k(t){var a,l,c,f;"number"==typeof i&&(i={timeout:i});let p=null==(a=G.currentSuite)?void 0:a.suite;if(u={id:"",type:"suite",name:e,fullName:(0,h.e)([(null==p?void 0:p.fullName)??(null==(l=G.currentSuite)||null==(l=l.file)?void 0:l.fullName),e]),fullTestName:(0,h.e)([null==p?void 0:p.fullTestName,e]),suite:p,mode:n,each:r,file:(null==p?void 0:p.file)??(null==(c=G.currentSuite)?void 0:c.file),shuffle:null==i?void 0:i.shuffle,tasks:[],meta:Object.create(null),concurrent:null==i?void 0:i.concurrent},o&&t&&o.config.includeTaskLocation){let e=Error.stackTraceLimit;Error.stackTraceLimit=15;let t=Error("stacktrace").stack;Error.stackTraceLimit=e;let n=(0,h.f)(s,t);n&&(u.location={line:n.line,column:n.column})}f=u,g.set(f,{beforeAll:[],afterAll:[],beforeEach:[],afterEach:[]})}async function $(e){if(!e)throw TypeError("File is required to collect tasks.");t&&await H(S,()=>t(w));let n=[];for(let t of f)n.push("collector"===t.type?await t.collect(e):t);return u.tasks=n,u}return l=S,null==(c=G.currentSuite)||c.tasks.push(l),S}(W(e),u,a,this.each,c,null==l?void 0:l.fixtures())}return e.each=function(e,...t){let n=this.withContext();return this.setContext("each",!0),Array.isArray(e)&&t.length&&(e=V(e,t)),(t,r,o)=>{let i=W(t),s=e.every(Array.isArray),{options:a,handler:l}=B(r,o),c="function"==typeof r;e.forEach((e,t)=>{let r=Array.isArray(e)?e:[e];c?s?n(U(i,r,t),l?()=>l(...r):void 0,a.timeout):n(U(i,r,t),l?()=>l(e):void 0,a.timeout):s?n(U(i,r,t),a,l?()=>l(...r):void 0):n(U(i,r,t),a,l?()=>l(e):void 0)}),this.setContext("each",void 0)}},e.for=function(e,...t){return Array.isArray(e)&&t.length&&(e=V(e,t)),(t,n,r)=>{let o=W(t),{options:i,handler:s}
85=B(n,r);e.forEach((e,t)=>{C(U(o,(0,c.$r)(e),t),i,s?()=>s(e):void 0)})}},e.skipIf=e=>e?C.skip:C,e.runIf=e=>e?C:C.skip,(0,h.c)(["concurrent","sequential","shuffle","skip","only","todo"],e)}(),I=z(function(e,t,n){if(r)throw Error('Calling the test function inside another test function is not allowed. Please put it inside "describe" or "suite" so it can be properly collected.');q().test.fn.call(this,W(e),t,n)}),D=C,F=I;function R(e,t){if(!e)throw Error(`Vitest failed to find ${t}. This is a bug in Vitest. Please, open an issue with reproduction.`)}function L(){return R(o,"the runner"),o}function q(){let e=G.currentSuite||i;return R(e,"the current suite"),e}function B(e,t){let n;if(null!=t&&"object"==typeof t)throw TypeError('Signature "test(name, fn, { ... })" was deprecated in Vitest 3 and removed in Vitest 4. Please, provide options as a second argument instead.');let r={};if("number"==typeof t?r={timeout:t}:"object"==typeof e&&(r=e),"function"==typeof e){if("function"==typeof t)throw TypeError("Cannot use two functions as arguments. Please use the second argument for options.");n=e}else"function"==typeof t&&(n=t);return{options:r,handler:n}}function z(e,t){e.each=function(e,...t){let n=this.withContext();return this.setContext("each",!0),Array.isArray(e)&&t.length&&(e=V(e,t)),(t,r,o)=>{let i=W(t),s=e.every(Array.isArray),{options:a,handler:l}=B(r,o),c="function"==typeof r;e.forEach((e,t)=>{let r=Array.isArray(e)?e:[e];c?s?n(U(i,r,t),l?()=>l(...r):void 0,a.timeout):n(U(i,r,t),l?()=>l(e):void 0,a.timeout):s?n(U(i,r,t),a,l?()=>l(...r):void 0):n(U(i,r,t),a,l?()=>l(e):void 0)}),this.setContext("each",void 0)}},e.for=function(e,...t){let n=this.withContext();return Array.isArray(e)&&t.length&&(e=V(e,t)),(t,r,o)=>{let i=W(t),{options:s,handler:a}=B(r,o);e.forEach((e,t)=>{let r=a?t=>a(e,t):void 0;r&&(r.__VITEST_FIXTURE_INDEX__=1,r.toString=()=>a.toString()),n(U(i,(0,c.$r)(e),t),s,r)})}},e.skipIf=function(e){return e?this.skip:this},e.runIf=function(e){return e?this:this.skip},e.scoped=function(e){q().scoped(e)},e.extend=function(n){return z(function(t,n,r){let o=q().fixtures(),i={...this};o&&(i.fixtures=function(e,t){let n=t.reduce((e,t)=>(e[t.prop]=t,e),{}),r={};for(let t in e.forEach(e=>{let t=n[e.prop]||{...e};r[t.prop]=t}),r){var o;let e=r[t];e.deps=null==(o=e.deps)?void 0:o.map(e=>r[e.prop])}return Object.values(r)}(i.fixtures||[],o)),e.call(i,W(t),n,r)},y(n,t||{},o))},e.beforeEach=M,e.afterEach=P,e.beforeAll=_,e.afterAll=A;let n=(0,h.c)(["concurrent","sequential","skip","only","todo","fails"],e);return t&&n.mergeContext(t),n}function W(e){return"string"==typeof e?e:"function"==typeof e?e.name||"<anonymous>":String(e)}function U(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((n,r)=>{if((0,c.by)(t[r])||Object.is(t[r],-0)){let t=0;e=e.replace(/%f/g,e=>++t===r+1?"-%f":e)}});let i=(0,c.Gv)(t[0]),s="",a=0;return function(e,t,n,r){let o=0;for(let i of e.matchAll(t))o<i.index&&r(e.slice(o,i.index)),n(i),o=i.index+i[0].length;o<e.length&&r(e.slice(o))}(e,f.jQ,e=>{a<r?s+=(0,f.GP)(e[0],t[a++]):s+=e[0]},e=>{s+=e.replace(/\$([$\w.]+)/g,(e,n)=>{var r;let s=/^\d+$/.test(n);if(!i&&!s)return`$${n}`;let a=s?(0,c.FA)(t,n):void 0,l=i?(0,c.FA)(t[0],n,a):a;return(0,f.Qz)(l,{truncate:null==o||null==(r=o.config)||null==(r=r.chaiConfig)?void 0:r.truncateThreshold})})}),s}function V(e,t){let n=e.join("").trim().replace(/ /g,"").split("\n").map(e=>e.split("|"))[0],r=[];for(let e=0;e<Math.floor(t.length/n.length);e++){let o={};for(let r=0;r<n.length;r++)o[n[r]]=t[e*n.length+r];r.push(o)}return r}let K=Date.now,G={currentSuite:null};async function H(e,t){let n=G.currentSuite;G.currentSuite=e,await t(),G.currentSuite=n}function J(e,t,n=!1,r,o){if(t<=0||t===1/0)return e;let{setTimeout:i,clearTimeout:s}=(0,u.GO)();return function(...a){let l=K(),c=L();return c._currentTaskStartTime=l,c._currentTaskTimeout=t,new Promise((u,f)=>{var h;let p=i(()=>{s(p),d()},t);function d(){let e=function(e,t,n){let r=Error(`${e?"Hook":"Test"} timed out in ${t}ms.
86If this is a long-running ${e?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${e?"hookTimeout":"testTimeout"}".`);return(null==n?void 0:n.stack)&&(r.stack=n.stack.replace(r.message,n.message)),r}(n,t,r);null==o||o(a,e),f(e)}function m(e){if(c._currentTaskStartTime=void 0,c._currentTaskTimeout=void 0,s(p),K()-l>=t)return void d();u(e)}function g(e){c._currentTaskStartTime=void 0,c._currentTaskTimeout=void 0,s(p),f(e)}null==(h=p.unref)||h.call(p);try{let t=e(...a);"object"==typeof t&&null!=t&&"function"==typeof t.then?t.then(m,g):m(t)}catch(e){g(e)}})}}let Z=new WeakMap;function Y([e],t){e&&function(e,t){let n=Z.get(e);null==n||n.abort(t)}(e,t)}let Q=new WeakMap;globalThis.performance&&globalThis.performance.now.bind(globalThis.performance),globalThis.performance&&globalThis.performance.now.bind(globalThis.performance);let{clearTimeout:X,setTimeout:ee}=(0,u.GO)(),et=new Map,en=[],er=[];function eo(e){if(et.size){var t;let n=Array.from(et).map(([e,t])=>[e,t[0],t[1]]),r=null==(t=e.onTaskUpdate)?void 0:t.call(e,n,en);r&&(er.push(r),r.then(()=>er.splice(er.indexOf(r),1),()=>{})),en.length=0,et.clear()}}async function ei(e){eo(e),await Promise.all(er)}async function es(e,t){let n=L();if(e.result&&"run"!==e.result.state)throw Error(`Cannot record a test artifact outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);let r=(0,h.f)(e.file.filepath,Error("STACK_TRACE").stack);if(r&&(t.location={file:r.file,line:r.line,column:r.column},"internal:annotation"===t.type&&(t.annotation.location=t.location)),Array.isArray(t.attachments))for(let e of t.attachments)el(e);
86if("internal:annotation"===t.type)return t;if(!n.onTestArtifactRecord)throw Error("Test runner doesn't support test artifacts.");await ei(n);let o=await n.onTestArtifactRecord(e,t);return e.artifacts.push(o),o}a=0,l=0,new WeakSet;let ea=[];for(let e=65;e<91;e++)ea.push(String.fromCharCode(e));for(let e=97;e<123;e++)ea.push(String.fromCharCode(e));for(let e=0;e<10;e++)ea.push(e.toString(10));function el(e){if(null==e.body&&!e.path)throw TypeError('Test attachment requires "body" or "path" to be set. Both are missing.');if(e.body&&e.path)throw TypeError('Test attachment requires only one of "body" or "path" to be set. Both are specified.');e.body instanceof Uint8Array&&(e.body=function(e){let t="",n=e.byteLength;for(let r=0;r<n;r+=3)if(n===r+1){let n=(252&e[r])>>2,o=(3&e[r])<<4;t+=ea[n],t+=ea[o],t+="=="}else if(n===r+2){let n=(252&e[r])>>2,o=(3&e[r])<<4|(240&e[r+1])>>4,i=(15&e[r+1])<<2;t+=ea[n],t+=ea[o],t+=ea[i],t+="="}else{let n=(252&e[r])>>2,o=(3&e[r])<<4|(240&e[r+1])>>4,i=(15&e[r+1])<<2|(192&e[r+2])>>6,s=63&e[r+2];t+=ea[n],t+=ea[o],t+=ea[i],t+=ea[s]}return t}(e.body))}ea.push("+","/")},28327:(e,t,n)=>{n.d(t,{As:()=>function e(t,n=10,{maxLength:o,...i}={}){let s,a=o??1e4;try{s=(0,r.GP)(t,{maxDepth:n,escapeString:!1,plugins:B,...i})}catch{s=(0,r.GP)(t,{callToJSON:!1,maxDepth:n,escapeString:!1,plugins:B,...i})}return s.length>=a&&n>1?e(t,Math.floor(Math.min(n,Number.MAX_SAFE_INTEGER)/2),{maxLength:o,...i}):s},GP:()=>W,Qz:()=>V,jQ:()=>z});var r=n(30934),o=n(81029).hp;let i={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"]},s={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"};function a(e,t){let n=i[s[t]]||i[t]||"";return n?`\u001b[${n[0]}m${String(e)}\u001b[${n[1]}m`:String(e)}function l(e,t,n="…"){e=String(e);let r=n.length,o=e.length;if(r>t&&o>r)return n;if(o>t&&o>r){var i;let o=t-r;return o>0&&(i=e[o-1])>="\ud800"&&i<="\udbff"&&(o-=1),`${e.slice(0,o)}${n}`}return e}function c(e,t,n,r=", "){n=n||t.inspect;let o=e.length;if(0===o)return"";let i=t.truncate,s="",a="",l="";for(let c=0;c<o;c+=1){let o=c+1===e.length,u=c+2===e.length;l=`…(${e.length-c})`;let f=e[c];t.truncate=i-s.length-(o?0:r.length);let h=a||n(f,t)+(o?"":r),p=s.length+h.length,d=p+l.length;if(o&&p>i&&s.length+l.length<=i||!o&&!u&&d>i||(a=o?"":n(e[c+1],t)+(u?"":r),!o&&u&&d>i&&p+a.length>i))break;if(s+=h,!o&&!u&&p+a.length>=i){l=`…(${e.length-c-1})`;break}l=""}return`${s}${l}`}function u([e,t],n){if(n.truncate-=2,"string"==typeof e){var r;e=(r=e).match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?r:JSON.stringify(r).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}else"number"!=typeof e&&(e=`[${n.inspect(e,n)}]`);return n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}function f(e,t){let n="function"==typeof o&&e instanceof o?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${n}[]`;let i="";for(let n=0;n<e.length;n++){let r=`${t.stylize(l(e[n],t.truncate),"number")}${n===e.length-1?"":", "}`;if(t.truncate-=r.length,e[n]!==e.length&&t.truncate<=3){i+=`…(${e.length-e[n]+1})`;break}i+=r}let s="";return r.length&&(s=c(r.map(t=>[t,e[t]]),t,u)),`${n}[ ${i}${s?`, ${s}`:""} ]`}function h(e,t){let n=e[Symbol.toStringTag]||"Function",r=e.name;return r?t.stylize(`[${n} ${l(r,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}function p([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}let d=Number.isNaN||(e=>e!=e);function m(e,t){return d(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):0===e?t.stylize(1/e==1/0?"+0":"-0","number"):t.stylize(l(String(e),t.truncate),"number")}function g(e,t){let n=l(e.toString(),t.truncate-1);return"…"!==n&&(n+="n"),t.stylize(n,"bigint")}
86let y=RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),b={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"};function w(e){return b[e]||`\\u${`0000${e.charCodeAt(0).toString(16)}`.slice(-4)}`}function v(e,t){return y.test(e)&&(e=e.replace(y,w)),t.stylize(`'${l(e,t.truncate-2)}'`,"string")}function x(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}function S(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(0===n.length&&0===r.length)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=c(n.map(t=>[t,e[t]]),t,u),i=c(r.map(t=>[t,e[t]]),t,u);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}let k="undefined"!=typeof Symbol&&!!Symbol.toStringTag&&Symbol.toStringTag,$=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function T([e,t],n){return(n.truncate-=3,t)?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}function O(e,t){return c(e,t,j,"\n")}function j(e,t){switch(e.nodeType){case 1:return E(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function E(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-=2*r.length+5;let a="";n.length>0&&(a+=" ",a+=c(n.map(t=>[t,e.getAttribute(t)]),t,T," ")),t.truncate-=a.length;let l=t.truncate,u=O(e.children,t);return u&&u.length>l&&(u=`…(${e.children.length})`),`${o}${a}${i}${u}${s}`}let _="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("chai/inspect"):"@@chai/inspect",A=Symbol.for("nodejs.util.inspect.custom"),M=new WeakMap,P={},N={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:m,Number:m,bigint:g,BigInt:g,string:v,String:v,function:h,Function:h,symbol:x,Symbol:x,Array:function(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return"[]";t.truncate-=4;let r=c(e,t);t.truncate-=r.length;let o="";return n.length&&(o=c(n.map(t=>[t,e[t]]),t,u)),`[ ${r}${o?`, ${o}`:""} ]`},Date:function(e,t){let n=e.toJSON();if(null===n)return"Invalid Date";let r=n.split("T"),o=r[0];return t.stylize(`${o}T${l(r[1],t.truncate-o.length-1)}`,"date")},Map:function(e,t){return 0===e.size?"Map{}":(t.truncate-=7,`Map{ ${c(function(e){let t=[];return e.forEach((e,n)=>{t.push([n,e])}),t}(e),t,p)} }`)},Set:function(e,t){return 0===e.size?"Set{}":(t.truncate-=7,`Set{ ${c(function(e){let t=[];return e.forEach(e=>{t.push(e)}),t}(e),t)} }`)},RegExp:function(e,t){let n=e.toString().split("/")[2],r=t.truncate-(2+n.length),o=e.source;return t.stylize(`/${l(o,r)}/${n}`,"regexp")},Promise:()=>"Promise{…}",WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:function(e,t){return 0===e.length?"Arguments[]":(t.truncate-=13,`Arguments[ ${c(e,t)} ]`)},Int8Array:f,Uint8Array:f,Uint8ClampedArray:f,Int16Array:f,Uint16Array:f,Int32Array:f,Uint32Array:f,Float32Array:f,Float64Array:f,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:function(e,t){let n=Object.getOwnPropertyNames(e).filter(e=>-1===$.indexOf(e)),r=e.name;t.truncate-=r.length;let o="";if("string"==typeof e.message?o=l(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=c(n.map(t=>[t,e[t]]),t,u);return`${r}${o}${i?` { ${i} }`:""}`},HTMLCollection:O,NodeList:O},C=Object.prototype.toString,{AsymmetricMatcher:I,DOMCollection:D,DOMElement:F,Immutable:R,ReactElement:L,ReactTestComponent:q}=r.Nx,B=[q,L,F,D,R,I],z=/%[sdjifoOc%]/g;function W(...e){if("string"!=typeof e[0]){let t=[];for(let n=0;n<e.length;n++)t.push(U(e[n],{depth:0,colors:!1}));return t.join(" ")}let t=e.length,n=1,r=String(e[0]).replace(z,r=>{if("%%"===r)return"%";if(n>=t)return r;switch(r){case"%s":{let t=e[n++];if("bigint"==typeof t)return`${t.toString()}n`;if("number"==typeof t&&0===t&&1/t<0)return"-0";if("object"==typeof t&&null!==t){if("function"==typeof t.toString&&t.toString!==Object.prototype.toString)return t.toString();return U(t,{depth:0,colors:!1})}return String(t)}case"%d":{let t=e[n++];if("bigint"==typeof t)return`${t.toString()}n`;return Number(t).toString()}case"%i":{let t=e[n++];if("bigint"==typeof t)return`${t.toString()}n`;return Number.parseInt(String(t)).toString()}case"%f":return Number.parseFloat(String(e[n++])).toString();case"%o":return U(e[n++],{showHidden:!0,showProxy:!0});case"%O":return U(e[n++]);case"%c":return n++,"";case"%j":try{return JSON.stringify(e[n++])}catch(t){let e=t.message;if(e.includes("circular structure")||e.includes("cyclic structures")||e.includes("cyclic object"))return"[Circular]";throw t}default:return r}});for(let o=e[n];n<t;o=e[++n])null===o||"object"!=typeof o?r+=` ${o}`:r+=` ${U(o)}`;return r}function U(e,t={}){return 0===t.truncate&&(t.truncate=1/0),function e(t,n={}){var r,o;let i=function({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:s=1/0,seen:l=[],truncate:c=1/0,stylize:u=String}={},f){let h={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(c),seen:l,inspect:f,stylize:u};return h.colors&&(h.stylize=a),h}(n,e),{customInspect:s}=i,l=null===t?"null":typeof t;if("object"===l&&(l=C.call(t).slice(8,-1)),l in N)return N[l](t,i);if(s&&t){let n=(r=l,o=e,_ in t&&"function"==typeof t[_]?t[_](i):A in t&&"function"==typeof t[A]?t[A](i.depth,i,o):"inspect"in t&&"function"==typeof t.inspect?t.inspect(i.depth,i):"constructor"in t&&M.has(t.constructor)?M.get(t.constructor)(t,i):P[r]?P[r](t,i):"");if(n)return"string"==typeof n?n:e(n,i)}let c=!!t&&Object.getPrototypeOf(t);if(c===Object.prototype||null===c)return S(t,i);if(t&&"function"==typeof HTMLElement&&t instanceof HTMLElement)return E(t,i);if("constructor"in t){if(t.constructor!==Object){let e;return e="",k&&k in t&&(e=t[k]),(e=e||t.constructor.name)&&"_class"!==e||(e="<Anonymous Class>"),i.truncate-=e.length,`${e}${S(t,i)}`}return S(t,i)}return t===Object(t)?S(t,i):i.stylize(String(t),l)}(e,t)}function V(e,t={}){void 0===t.truncate&&(t.truncate=40);let n=U(e,t),r=Object.prototype.toString.call(e);
86if(t.truncate&&n.length>=t.truncate){if("[object Function]"===r)return e.name?`[Function: ${e.name}]`:"[Function]";else if("[object Array]"===r)return`[ Array(${e.length}) ]`;else if("[object Object]"===r){let t=Object.keys(e),n=t.length>2?`${t.splice(0,2).join(", ")}, ...`:t.join(", ");return`{ Object (${n}) }`}}return n}},30934:(e,t,n)=>{n.d(t,{GP:()=>ep,Nx:()=>ed});var r,o,i,s,a=n(98240);function l(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function c(e,t,n,r,o,i,s=": "){let a="",l=0,u=e.next();if(!u.done){a+=t.spacingOuter;let c=n+t.indent;for(;!u.done;){if(a+=c,l++===t.maxWidth){a+="…";break}a+=i(u.value[0],t,c,r,o)+s+i(u.value[1],t,c,r,o),(u=e.next()).done?t.min||(a+=","):a+=`,${t.spacingInner}`}a+=t.spacingOuter+n}return a}function u(e,t,n,r,o,i){let s="",a=0,l=e.next();if(!l.done){s+=t.spacingOuter;let c=n+t.indent;for(;!l.done;){if(s+=c,a++===t.maxWidth){s+="…";break}s+=i(l.value,t,c,r,o),(l=e.next()).done?t.min||(s+=","):s+=`,${t.spacingInner}`}s+=t.spacingOuter+n}return s}function f(e,t,n,r,o,i){let s="";e=e instanceof ArrayBuffer?new DataView(e):e;let a=e=>e instanceof DataView,l=a(e)?e.byteLength:e.length;if(l>0){s+=t.spacingOuter;let c=n+t.indent;for(let n=0;n<l;n++){if(s+=c,n===t.maxWidth){s+="…";break}(a(e)||n in e)&&(s+=i(a(e)?e.getInt8(n):e[n],t,c,r,o)),n<l-1?s+=`,${t.spacingInner}`:t.min||(s+=",")}s+=t.spacingOuter+n}return s}function h(e,t,n,r,o,i){let s="",a=function(e,t){let n=Object.keys(e),r=null===t?n:n.sort(t);if(Object.getOwnPropertySymbols)for(let t of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,t).enumerable&&r.push(t);return r}(e,t.compareKeys);if(a.length>0){s+=t.spacingOuter;let l=n+t.indent;for(let n=0;n<a.length;n++){let c=a[n],u=i(c,t,l,r,o),f=i(e[c],t,l,r,o);s+=`${l+u}: ${f}`,n<a.length-1?s+=`,${t.spacingInner}`:t.min||(s+=",")}s+=t.spacingOuter+n}return s}let p="function"==typeof Symbol&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,d={serialize:(e,t,n,r,o,i)=>{let s=e.toString();if("ArrayContaining"===s||"ArrayNotContaining"===s)return++r>t.maxDepth?`[${s}]`:`${s+" "}[${f(e.sample,t,n,r,o,i)}]`;if("ObjectContaining"===s||"ObjectNotContaining"===s)return++r>t.maxDepth?`[${s}]`:`${s+" "}{${h(e.sample,t,n,r,o,i)}}`;if("StringMatching"===s||"StringNotMatching"===s||"StringContaining"===s||"StringNotContaining"===s)return s+" "+i(e.sample,t,n,r,o);if("function"!=typeof e.toAsymmetricMatcher)throw TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},test:e=>e&&e.$$typeof===p},m=new Set(["DOMStringMap","NamedNodeMap"]),g=/^(?:HTML\w*Collection|NodeList)$/,y={serialize:(e,t,n,r,o,i)=>{let s=e.constructor.name;return++r>t.maxDepth?`[${s}]`:(t.min?"":s+" ")+(m.has(s)?`{${h("NamedNodeMap"===e.constructor.name?[...e].reduce((e,t)=>(e[t.name]=t.value,e),{}):{...e},t,n,r,o,i)}}`:`[${f([...e],t,n,r,o,i)}]`)},test:e=>e&&e.constructor&&!!e.constructor.name&&function(e){return m.has(e)||g.test(e)}(e.constructor.name)};function b(e){return e.replaceAll("<","&lt;").replaceAll(">","&gt;")}function w(e,t,n,r,o,i,s){let a=r+n.indent,l=n.colors;return e.map(e=>{let c=t[e],u=s(c,n,a,o,i);return"string"!=typeof c&&(u.includes("\n")&&(u=n.spacingOuter+a+u+n.spacingOuter+r),u=`{${u}}`),`${n.spacingInner+r+l.prop.open+e+l.prop.close}=${l.value.open}${u}${l.value.close}`}).join("")}function v(e,t,n,r,o,i){return e.map(e=>t.spacingOuter+n+("string"==typeof e?x(e,t):i(e,t,n,r,o))).join("")}function x(e,t){let n=t.colors.content;return n.open+b(e)+n.close}function S(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 k(e,t){let n=t.colors.tag;return`${n.open}<${e}${n.close} …${n.open} />${n.close}`}let $=/^(?:(?:HTML|SVG)\w*)?Element$/;function T(e){return 11===e.nodeType}let O={serialize:(e,t,n,r,o,i)=>{if(3===e.nodeType)return x(e.data,t);if(8===e.nodeType)return function(e,t){let n=t.colors.comment;return`${n.open}<!--${b(e)}-->${n.close}`}(e.data,t);let s=T(e)?"DocumentFragment":e.tagName.toLowerCase();return++r>t.maxDepth?k(s,t):S(s,w(T(e)?[]:Array.from(e.attributes,e=>e.name).sort(),T(e)?{}:[...e.attributes].reduce((e,t)=>
86(e[t.name]=t.value,e),{}),t,n+t.indent,r,o,i),(T(e)||!e.shadowRoot?"":function(e,t,n,r,o,i){return!1===t.printShadowRoot?"":[`${t.spacingOuter+n}#shadow-root`,v(e,t,n+t.indent,r,o,i)].join("")}(Array.prototype.slice.call(e.shadowRoot.children),t,n+t.indent,r,o,i))+v(Array.prototype.slice.call(e.childNodes||e.children),t,n+t.indent,r,o,i),t,n)},test:e=>e?.constructor?.name&&function(e){let t=e.constructor.name,{nodeType:n,tagName:r}=e,o="string"==typeof r&&r.includes("-")||function(e){try{return"function"==typeof e.hasAttribute&&e.hasAttribute("is")}catch{return!1}}(e);return 1===n&&($.test(t)||o)||3===n&&"Text"===t||8===n&&"Comment"===t||11===n&&"DocumentFragment"===t}(e)},j="@@__IMMUTABLE_ORDERED__@@",E=e=>`Immutable.${e}`,_=e=>`[${e}]`;function A(e,t,n,r,o,i,s){return++r>t.maxDepth?_(E(s)):`${E(s)+" "}[${u(e.values(),t,n,r,o,i)}]`}function M(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var P={exports:{}},N={},C=(o||(o=1,P.exports=function(){if(r)return N;r=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=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"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),d=Symbol.for("react.client.reference");function m(r){if("object"==typeof r&&null!==r){var d=r.$$typeof;switch(d){case e:switch(r=r.type){case n:case i:case o:case c:case u:case p:return r;default:switch(r=r&&r.$$typeof){case a:case l:case h:case f:case s:return r;default:return d}}case t:return d}}}return N.ContextConsumer=s,N.ContextProvider=a,N.Element=e,N.ForwardRef=l,N.Fragment=n,N.Lazy=h,N.Memo=f,N.Portal=t,N.Profiler=i,N.StrictMode=o,N.Suspense=c,N.SuspenseList=u,N.isContextConsumer=function(e){return m(e)===s},N.isContextProvider=function(e){return m(e)===a},N.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},N.isForwardRef=function(e){return m(e)===l},N.isFragment=function(e){return m(e)===n},N.isLazy=function(e){return m(e)===h},N.isMemo=function(e){return m(e)===f},N.isPortal=function(e){return m(e)===t},N.isProfiler=function(e){return m(e)===i},N.isStrictMode=function(e){return m(e)===o},N.isSuspense=function(e){return m(e)===c},N.isSuspenseList=function(e){return m(e)===u},N.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===i||e===o||e===c||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===f||e.$$typeof===a||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||void 0!==e.getModuleId)||!1},N.typeOf=m,N}()),P.exports),I=l({__proto__:null,default:M(C)},[C]),D={exports:{}},F={},R=(s||(s=1,D.exports=function(){if(i)return F;i=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var i=e.$$typeof;switch(i){case t:switch(e=e.type){case r:case s:case o:case f:case h:return e;default:switch(e=e&&e.$$typeof){case c:case l:case u:case d:case p:case a:return e;default:return i}}case n:return i}}}return e=Symbol.for("react.module.reference"),F.ContextConsumer=l,F.ContextProvider=a,F.Element=t,F.ForwardRef=u,F.Fragment=r,F.Lazy=d,F.Memo=p,F.Portal=n,F.Profiler=s,F.StrictMode=o,F.Suspense=f,F.SuspenseList=h,F.isAsyncMode=function(){return!1},F.isConcurrentMode=function(){return!1},F.isContextConsumer=function(e){return g(e)===l},F.isContextProvider=function(e){return g(e)===a},F.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},F.isForwardRef=function(e){return g(e)===u},F.isFragment=function(e){return g(e)===r},F.isLazy=function(e){return g(e)===d},F.isMemo=function(e){return g(e)===p},F.isPortal=function(e){return g(e)===n},F.isProfiler=function(e){return g(e)===s},F.isStrictMode=function(e){return g(e)===o},F.isSuspense=function(e){return g(e)===f},F.isSuspenseList=function(e){return g(e)===h},F.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===s||t===o||t===f||t===h||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===p||t.$$typeof===a||t.$$typeof===l||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)||!1},F.typeOf=g,F}
86()),D.exports),L=l({__proto__:null,default:M(R)},[R]);let q=Object.fromEntries(["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"].map(e=>[e,t=>L[e](t)||I[e](t)]));function B(e){let t=e.type;if("string"==typeof t)return t;if("function"==typeof t)return t.displayName||t.name||"Unknown";if(q.isFragment(e))return"React.Fragment";if(q.isSuspense(e))return"React.Suspense";if("object"==typeof t&&null!==t){if(q.isContextProvider(e))return"Context.Provider";if(q.isContextConsumer(e))return"Context.Consumer";if(q.isForwardRef(e)){if(t.displayName)return t.displayName;let e=t.render.displayName||t.render.name||"";return""===e?"ForwardRef":`ForwardRef(${e})`}if(q.isMemo(e)){let e=t.displayName||t.type.displayName||t.type.name||"";return""===e?"Memo":`Memo(${e})`}}return"UNDEFINED"}let z={serialize:(e,t,n,r,o,i)=>++r>t.maxDepth?k(B(e),t):S(B(e),w(function(e){let{props:t}=e;return Object.keys(t).filter(e=>"children"!==e&&void 0!==t[e]).sort()}(e),e.props,t,n+t.indent,r,o,i),v(function e(t,n=[]){if(Array.isArray(t))for(let r of t)e(r,n);else null!=t&&!1!==t&&""!==t&&n.push(t);return n}(e.props.children),t,n+t.indent,r,o,i),t,n),test:e=>null!=e&&q.isElement(e)},W="function"==typeof Symbol&&Symbol.for?Symbol.for("react.test.json"):0xea71357,U=Object.prototype.toString,V=Date.prototype.toISOString,K=Error.prototype.toString,G=RegExp.prototype.toString;function H(e){return"function"==typeof e.constructor&&e.constructor.name||"Object"}let J=/^Symbol\((.*)\)(.*)$/,Z=/\n/g;class Y extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name}}function Q(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function X(e){return String(e).replace(J,"Symbol($1)")}function ee(e){return`[${K.call(e)}]`}function et(e,t,n,r){if(!0===e||!1===e)return`${e}`;if(void 0===e)return"undefined";if(null===e)return"null";let o=typeof e;if("number"===o)return Object.is(e,-0)?"-0":String(e);if("bigint"===o)return String(`${e}n`);if("string"===o)return r?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if("function"===o)return Q(e,t);if("symbol"===o)return X(e);let i=U.call(e);return"[object WeakMap]"===i?"WeakMap {}":"[object WeakSet]"===i?"WeakSet {}":"[object Function]"===i||"[object GeneratorFunction]"===i?Q(e,t):"[object Symbol]"===i?X(e):"[object Date]"===i?Number.isNaN(+e)?"Date { NaN }":V.call(e):"[object Error]"===i?ee(e):"[object RegExp]"===i?n?G.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):G.call(e):e instanceof Error?ee(e):null}function en(e,t,n,r,o,i){if(o.includes(e))return"[Circular]";(o=[...o]).push(e);let s=++r>t.maxDepth,a=t.min;if(t.callToJSON&&!s&&e.toJSON&&"function"==typeof e.toJSON&&!i)return ei(e.toJSON(),t,n,r,o,!0);let l=U.call(e);return"[object Arguments]"===l?s?"[Arguments]":`${a?"":"Arguments "}[${f(e,t,n,r,o,ei)}]`:"[object Array]"===l||"[object ArrayBuffer]"===l||"[object DataView]"===l||"[object Float32Array]"===l||"[object Float64Array]"===l||"[object Int8Array]"===l||"[object Int16Array]"===l||"[object Int32Array]"===l||"[object Uint8Array]"===l||"[object Uint8ClampedArray]"===l||"[object Uint16Array]"===l||"[object Uint32Array]"===l?s?`[${e.constructor.name}]`:`${a||!t.printBasicPrototype&&"Array"===e.constructor.name?"":`${e.constructor.name} `}[${f(e,t,n,r,o,ei)}]`:"[object Map]"===l?s?"[Map]":`Map {${c(e.entries(),t,n,r,o,ei," => ")}}`:"[object Set]"===l?s?"[Set]":`Set {${u(e.values(),t,n,r,o,ei)}}`:s||"undefined"!=typeof window&&e===window?`[${H(e)}]`:`${a||!t.printBasicPrototype&&"Object"===H(e)?"":`${H(e)} `}{${h(e,t,n,r,o,ei)}}`}function er(e,t,n,r,o,i){let s;try{s=null!=e.serialize?e.serialize(t,n,r,o,i,ei):e.print(t,e=>ei(e,n,r,o,i),e=>{let t=r+n.indent;return t+e.replaceAll(Z,`
87${t}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(e){throw new Y(e.message,e.stack)}if("string"!=typeof s)throw TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof s}".`);return s}function eo(e,t){for(let n of e)try{if(n.test(t))return n}catch(e){throw new Y(e.message,e.stack)}return null}function ei(e,t,n,r,o,i){let s=eo(t.plugins,e);if(null!==s)return er(s,e,t,n,r,o);let a=et(e,t.printFunctionName,t.escapeRegex,t.escapeString);return null!==a?a:en(e,t,n,r,o,i)}let es={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},ea=Object.keys(es),el={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,maxWidth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,printShadowRoot:!0,theme:es};function ec(e){return e?.printFunctionName??el.printFunctionName}function eu(e){return e?.escapeRegex??el.escapeRegex}function ef(e){return e?.escapeString??el.escapeString}function eh(e){return{callToJSON:e?.callToJSON??el.callToJSON,colors:e?.highlight?ea.reduce((e,t)=>
87{let n=es[t],r=n&&a.Ay[n];if(r&&"string"==typeof r.close&&"string"==typeof r.open)e[t]=r;else throw Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null)):ea.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null)),compareKeys:"function"==typeof e?.compareKeys||e?.compareKeys===null?e.compareKeys:el.compareKeys,escapeRegex:eu(e),escapeString:ef(e),indent:e?.min?"":Array.from({length:(e?.indent??el.indent)+1}).join(" "),maxDepth:e?.maxDepth??el.maxDepth,maxWidth:e?.maxWidth??el.maxWidth,min:e?.min??el.min,plugins:e?.plugins??el.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:ec(e),printShadowRoot:e?.printShadowRoot??!0,spacingInner:e?.min?" ":"\n",spacingOuter:e?.min?"":"\n"}}function ep(e,t){if(t){for(let e of Object.keys(t))if(!Object.hasOwn(el,e))throw Error(`pretty-format: Unknown option "${e}".`);if(t.min&&void 0!==t.indent&&0!==t.indent)throw Error('pretty-format: Options "min" and "indent" cannot be used together.');if(t.plugins){let n=eo(t.plugins,e);if(null!==n)return er(n,e,eh(t),"",0,[])}}let n=et(e,ec(t),eu(t),ef(t));return null!==n?n:en(e,eh(t),"",0,[])}let ed={AsymmetricMatcher:d,DOMCollection:y,DOMElement:O,Immutable:{serialize:(e,t,n,r,o,i)=>e["@@__IMMUTABLE_MAP__@@"]?function(e,t,n,r,o,i,s){return++r>
87t.maxDepth?_(E(s)):`${E(s)+" "}{${c(e.entries(),t,n,r,o,i)}}`}(e,t,n,r,o,i,e[j]?"OrderedMap":"Map"):e["@@__IMMUTABLE_LIST__@@"]?A(e,t,n,r,o,i,"List"):e["@@__IMMUTABLE_SET__@@"]?A(e,t,n,r,o,i,e[j]?"OrderedSet":"Set"):e["@@__IMMUTABLE_STACK__@@"]?A(e,t,n,r,o,i,"Stack"):e["@@__IMMUTABLE_SEQ__@@"]?function(e,t,n,r,o,i){let s=E("Seq");return++r>t.maxDepth?_(s):e["@@__IMMUTABLE_KEYED__@@"]?`${s+" "}{${e._iter||e._object?c(e.entries(),t,n,r,o,i):"…"}}`:`${s+" "}[${e._iter||e._array||e._collection||e._iterable?u(e.values(),t,n,r,o,i):"…"}]`}(e,t,n,r,o,i):function(e,t,n,r,o,i){let s,a=E(e._name||"Record");return++r>t.maxDepth?_(a):`${a+" "}{${c((s=0,{next(){if(s<e._keys.length){let t=e._keys[s++];return{done:!1,value:[t,e.get(t)]}}return{done:!0,value:void 0}}}),t,n,r,o,i)}}`}(e,t,n,r,o,i),test:e=>e&&(!0===e["@@__IMMUTABLE_ITERABLE__@@"]||!0===e["@@__IMMUTABLE_RECORD__@@"])},ReactElement:z,ReactTestComponent:{serialize:(e,t,n,r,o,i)=>++r>t.maxDepth?k(e.type,t):S(e.type,e.props?w(function(e){let{props:t}=e;return t?Object.keys(t).filter(e=>void 0!==t[e]).sort():[]}(e),e.props,t,n+t.indent,r,o,i):"",e.children?v(e.children,t,n+t.indent,r,o,i):"",t,n),test:e=>e&&e.$$typeof===W},Error:{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:l,...u}=e,f={message:a,...void 0!==l?{cause:l}:{},...e instanceof AggregateError?{errors:e.errors}:{},...u},h="Error"!==e.name?e.name:H(e);return s?`[${h}]`:`${h} {${c(Object.entries(f).values(),t,n,r,o,i)}}`}}}},41545:(e,t,n)=>{n.d(t,{GO:()=>o,cb:()=>i});let r=Symbol("vitest:SAFE_TIMERS");function o(){let{setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:o,setImmediate:i,clearImmediate:s,queueMicrotask:a}=globalThis[r]||globalThis,{nextTick:l}=globalThis[r]||globalThis.process||{};return{nextTick:l,setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:o,setImmediate:i,clearImmediate:s,queueMicrotask:a}}function i(e,t=setTimeout){return new Promise(n=>t(n,e))}},43882:(e,t,n)=>{n.d(t,{c:()=>o,e:()=>a,f:()=>i,j:()=>s});var r=n(98757);function o(e,t){let n=function n(r){let o=function(...e){return t.apply(r,e)};for(let i of(Object.assign(o,t),o.withContext=()=>o.bind(r),o.setContext=(e,t)=>
87{r[e]=t},o.mergeContext=e=>{Object.assign(r,e)},e))Object.defineProperty(o,i,{get:()=>n({...r,[i]:!0})});return o}({});return n.fn=t,n}function i(e,t){for(let n of t.split("\n").slice(1)){let t=(0,r.s1)(n);if(t&&t.file===e)return t}}function s(e){let t=[e.name],n=e;for(;null==n?void 0:n.suite;)(null==(n=n.suite)?void 0:n.name)&&t.unshift(n.name);return n!==e.file&&t.unshift(e.file.name),t}function a(e,t=" > "){return e.filter(e=>void 0!==e).join(t)}},87308:(e,t,n)=>{function r(e){let{message:t="$$stack trace error",stackTraceLimit:n=1}=e||{},r=Error.stackTraceLimit,o=Error.prepareStackTrace;Error.stackTraceLimit=n,Error.prepareStackTrace=e=>e.stack;let i=Error(t).stack||"";return Error.prepareStackTrace=o,Error.stackTraceLimit=r,i}function o(e,t,n){let r=typeof e;if(!n.includes(r))throw TypeError(`${t} value must be ${n.join(" or ")}, received "${r}"`)}function i(e){return(null==e&&(e=[]),Array.isArray(e))?e:[e]}function s(e){return null!=e&&"object"==typeof e&&!Array.isArray(e)}function a(e){return Object.prototype.toString.apply(e).slice(8,-1)}function l(e){let t=new Set;if(e===Object.prototype||e===Function.prototype||e===RegExp.prototype)return[];let n="function"==typeof t?t:e=>t.add(e);return Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n),Array.from(t)}n.d(t,{$r:()=>i,Co:()=>l,FA:()=>h,Go:()=>u,Gv:()=>s,Pw:()=>a,by:()=>d,lQ:()=>f,ml:()=>r,q4:()=>o,rK:()=>p});let c={forceWritable:!1};function u(e,t=c){return function e(t,n,r=c){let o,i;if(n.has(t))return n.get(t);if(Array.isArray(t)){for(i=Array.from({length:o=t.length}),n.set(t,i);o--;)i[o]=e(t[o],n,r);return i}if("[object Object]"===Object.prototype.toString.call(t)){for(let o of(i=Object.create(Object.getPrototypeOf(t)),n.set(t,i),l(t))){let s=Object.getOwnPropertyDescriptor(t,o);if(!s)continue;let a=e(t[o],n,r);r.forceWritable?Object.defineProperty(i,o,{enumerable:s.enumerable,configurable:!0,writable:!0,value:a}):"get"in s?Object.defineProperty(i,o,{...s,get:()=>a}):Object.defineProperty(i,o,{...s,value:a})}return i}return t}(e,new WeakMap,t)}function f(){}function h(e,t,n){let r=t.replace(/\[(\d+)\]/g,".$1").split("."),o=e;for(let e of r)if(void 0===(o=Object(o)[e]))return n;return o}function p(){let e=null,t=null,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function d(e){if(!Number.isNaN(e))return!1;let t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31==1}},98240:(e,t,n)=>{n.d(t,{Ay:()=>s});var r=n(95704),o={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]};function i(e){return String(e)}i.open="",i.close="";var s=function(){let e,t,n,s,a=(n="false"!==(t=(null==(e=void 0!==r?r:void 0)?void 0:e.env)||{}).FORCE_TTY,s=(null==e?void 0:e.argv)||[],!("NO_COLOR"in t||s.includes("--no-color"))&&("FORCE_COLOR"in t||s.includes("--color")||(null==e?void 0:e.platform)==="win32"||n&&"dumb"!==t.TERM||"CI"in t)||"undefined"!=typeof window&&!!window.chrome),l=(e,t,n=e)=>{let r=r=>{let o=String(r),i=o.indexOf(t,e.length);return~i?e+((e,t,n,r)=>{let o="",i=0;do o+=e.substring(i,r)+n,i=r+t.length,r=e.indexOf(t,i);while(~r);return o+e.substring(i)})(o,t,n,i)+t:e+o+t};return r.open=e,r.close=t,r},c={isColorSupported:a},u=e=>`\x1b[${e}m`;for(let e in o){let t=o[e];c[e]=a?l(u(t[0]),u(t[1]),t[2]):i}return c}()},98757:(e,t,n)=>{n.d(t,{s1:()=>d});var r=n(95704);let o=/^[A-Za-z]:\//,i=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,s=function(...e){e=e.map(e=>(function(e=""){return e?e.replace(/\\/g,"/").replace(o,e=>e.toUpperCase()):e})(e));let t="",n=!1;for(let o=e.length-1;o>=-1&&!n;o--){let i=o>=0?e[o]:void 0!==r&&"function"==typeof r.cwd?r.cwd().replace(/\\/g,"/"):"/";i&&0!==i.length&&(t=`${i}/${t}`,n=a(i))}return(t=function(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;else s="/";if("/"===s){if(o===a-1||1===i);else if(2===i){if(n.length<2||2!==r||"."!==n[n.length-1]||"."!==n[n.length-2]){
87if(n.length>2){let e=n.lastIndexOf("/");-1===e?(n="",r=0):r=(n=n.slice(0,e)).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&&-1!==i?++i:i=-1}return n}(t,!n),n&&!a(t))?`/${t}`:t.length>0?t:"."},a=function(e){return i.test(e)};var l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=new Uint8Array(64),u=new Uint8Array(128);for(let e=0;e<l.length;e++){let t=l.charCodeAt(e);c[e]=t,u[t]=e}let f=/^\s*at .*(?:\S:\d+|\(native\))/m,h=/^(?:eval@)?(?:\[native code\])?$/;function p(e){if(!e.includes(":"))return[e];let t=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!t)return[e];let n=t[1];if(n.startsWith("async ")&&(n=n.slice(6)),n.startsWith("http:")||n.startsWith("https:")){let e=new URL(n);e.searchParams.delete("import"),e.searchParams.delete("browserv"),n=e.pathname+e.hash+e.search}if(n.startsWith("/@fs/")){let e=/^\/@fs\/[a-zA-Z]:\//.test(n);n=n.slice(e?5:4)}return[n,t[2]||void 0,t[3]||void 0]}function d(e){let t=e.trim();return f.test(t)?function(e){let t=e.trim();if(!f.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,a]=p(r?r[1]:n),l=r&&n||"",c=o&&["eval","<anonymous>"].includes(o)?void 0:o;return c&&i&&a?(l.startsWith("async ")&&(l=l.slice(6)),c.startsWith("file://")&&(c=c.slice(7)),c=c.startsWith("node:")||c.startsWith("internal:")?c:s(c),l&&(l=l.replace(/__vite_ssr_import_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:l,file:c,line:Number.parseInt(i),column:Number.parseInt(a)}):null}(t):function(e){let t,n=e.trim();if(h.test(n)||(n.includes(" > eval")&&(n=n.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!n.includes("@")))return null;let r=-1,o="";for(let e=0;e<n.length;e++)if("@"===n[e]){let i=n.slice(e+1);if(i.includes(":")&&i.length>=3){r=e,o=i,t=e>0?n.slice(0,e):void 0;break}}if(-1===r||!o.includes(":")||o.length<3)return null;let[i,s,a]=p(o);return i&&s&&a?{file:i,method:t||"",line:Number.parseInt(s),column:Number.parseInt(a)}:null}(t)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.