From 3dc0108ffde3c18b8e5298053c6acec3c2abb2c2 Mon Sep 17 00:00:00 2001 From: Lukasz Gut Date: Thu, 5 Sep 2024 13:09:22 +0200 Subject: [PATCH 1/4] Release k6chaijs@4.5.0.1 --- lib/k6chaijs/4.5.0.1/index.js | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 lib/k6chaijs/4.5.0.1/index.js diff --git a/lib/k6chaijs/4.5.0.1/index.js b/lib/k6chaijs/4.5.0.1/index.js new file mode 100644 index 0000000..1d01390 --- /dev/null +++ b/lib/k6chaijs/4.5.0.1/index.js @@ -0,0 +1,4 @@ +"use strict";var Ar=Object.create;var Le=Object.defineProperty;var Or=Object.getOwnPropertyDescriptor;var Nr=Object.getOwnPropertyNames;var qr=Object.getPrototypeOf,jr=Object.prototype.hasOwnProperty;var N=(s,o)=>()=>(o||s((o={exports:{}}).exports,o),o.exports),Tr=(s,o)=>{for(var t in o)Le(s,t,{get:o[t],enumerable:!0})},mt=(s,o,t,c)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of Nr(o))!jr.call(s,e)&&e!==t&&Le(s,e,{get:()=>o[e],enumerable:!(c=Or(o,e))||c.enumerable});return s};var vt=(s,o,t)=>(t=s!=null?Ar(qr(s)):{},mt(o||!s||!s.__esModule?Le(t,"default",{value:s,enumerable:!0}):t,s)),Dr=s=>mt(Le({},"__esModule",{value:!0}),s);var Ye=N((ei,xt)=>{function wt(){var s=[].slice.call(arguments);function o(t,c){Object.keys(c).forEach(function(e){~s.indexOf(e)||(t[e]=c[e])})}return function(){for(var c=[].slice.call(arguments),e=0,n={};e{"use strict";function Et(s,o){return typeof s>"u"||s===null?!1:o in Object(s)}function Mt(s){var o=s.replace(/([^\\])\[/g,"$1.["),t=o.match(/(\\\.|[^.]+?)+/g);return t.map(function(e){if(e==="constructor"||e==="__proto__"||e==="prototype")return{};var n=/^\[(\d+)\]$/,r=n.exec(e),i=null;return r?i={i:parseFloat(r[1])}:i={p:e.replace(/\\([.[\]])/g,"$1")},i})}function St(s,o,t){var c=s,e=null;t=typeof t>"u"?o.length:t;for(var n=0;n"u"?c=c[r.i]:c=c[r.p],n===t-1&&(e=c))}return e}function Ir(s,o,t){for(var c=s,e=t.length,n=null,r=0;r"u"?n.i:n.p,c[i]=o;else if(typeof n.p<"u"&&c[n.p])c=c[n.p];else if(typeof n.i<"u"&&c[n.i])c=c[n.i];else{var v=t[r+1];i=typeof n.p>"u"?n.i:n.p,l=typeof v.p>"u"?[]:{},c[i]=l,c=c[i]}}}function Pt(s,o){var t=Mt(o),c=t[t.length-1],e={parent:t.length>1?St(s,t,t.length-1):s,name:c.p||c.i,value:St(s,t)};return e.exists=Et(e.parent,e.name),e}function kr(s,o){var t=Pt(s,o);return t.value}function Cr(s,o,t){var c=Mt(o);return Ir(s,t,c),s}At.exports={hasProperty:Et,getPathInfo:Pt,getPathValue:kr,setPathValue:Cr}});var X=N((ni,Nt)=>{Nt.exports=function(o,t,c){var e=o.__flags||(o.__flags=Object.create(null));if(arguments.length===3)e[t]=c;else return e[t]}});var jt=N((ri,qt)=>{var zr=X();qt.exports=function(o,t){var c=zr(o,"negate"),e=t[0];return c?!e:e}});var Me=N((He,et)=>{(function(s,o){typeof He=="object"&&typeof et<"u"?et.exports=o():typeof define=="function"&&define.amd?define(o):(s=typeof globalThis<"u"?globalThis:s||self,s.typeDetect=o())})(He,function(){"use strict";var s=typeof Promise=="function",o=function(z){if(typeof globalThis=="object")return globalThis;Object.defineProperty(z,"typeDetectGlobalObject",{get:function(){return this},configurable:!0});var ne=typeDetectGlobalObject;return delete z.typeDetectGlobalObject,ne}(Object.prototype),t=typeof Symbol<"u",c=typeof Map<"u",e=typeof Set<"u",n=typeof WeakMap<"u",r=typeof WeakSet<"u",i=typeof DataView<"u",l=t&&typeof Symbol.iterator<"u",v=t&&typeof Symbol.toStringTag<"u",E=e&&typeof Set.prototype.entries=="function",K=c&&typeof Map.prototype.entries=="function",H=E&&Object.getPrototypeOf(new Set().entries()),R=K&&Object.getPrototypeOf(new Map().entries()),V=l&&typeof Array.prototype[Symbol.iterator]=="function",te=V&&Object.getPrototypeOf([][Symbol.iterator]()),Z=l&&typeof String.prototype[Symbol.iterator]=="function",de=Z&&Object.getPrototypeOf(""[Symbol.iterator]()),pe=8,ge=-1;function ye(z){var ne=typeof z;if(ne!=="object")return ne;if(z===null)return"null";if(z===o)return"global";if(Array.isArray(z)&&(v===!1||!(Symbol.toStringTag in z)))return"Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&z===window.location)return"Location";if(typeof window.document=="object"&&z===window.document)return"Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&z===window.navigator.mimeTypes)return"MimeTypeArray";if(typeof window.navigator.plugins=="object"&&z===window.navigator.plugins)return"PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&z instanceof window.HTMLElement){if(z.tagName==="BLOCKQUOTE")return"HTMLQuoteElement";if(z.tagName==="TD")return"HTMLTableDataCellElement";if(z.tagName==="TH")return"HTMLTableHeaderCellElement"}}var _=v&&z[Symbol.toStringTag];if(typeof _=="string")return _;var L=Object.getPrototypeOf(z);return L===RegExp.prototype?"RegExp":L===Date.prototype?"Date":s&&L===Promise.prototype?"Promise":e&&L===Set.prototype?"Set":c&&L===Map.prototype?"Map":r&&L===WeakSet.prototype?"WeakSet":n&&L===WeakMap.prototype?"WeakMap":i&&L===DataView.prototype?"DataView":c&&L===R?"Map Iterator":e&&L===H?"Set Iterator":V&&L===te?"Array Iterator":Z&&L===de?"String Iterator":L===null?"Object":Object.prototype.toString.call(z).slice(pe,ge)}return ye})});var Dt=N((oi,Tt)=>{var Br=Ye(),tt=X(),Fr=Me();Tt.exports=function(o,t){var c=tt(o,"message"),e=tt(o,"ssfi");c=c?c+": ":"",o=tt(o,"object"),t=t.map(function(i){return i.toLowerCase()}),t.sort();var n=t.map(function(i,l){var v=~["a","e","i","o","u"].indexOf(i.charAt(0))?"an":"a",E=t.length>1&&l===t.length-1?"or ":"";return E+v+" "+i}).join(", "),r=Fr(o).toLowerCase();if(!t.some(function(i){return r===i}))throw new Br(c+"object tested must be "+n+", but "+r+" given",void 0,e)}});var nt=N((ii,It)=>{It.exports=function(o,t){return t.length>4?t[4]:o._obj}});var Ke=N((si,kt)=>{"use strict";var Vr=Function.prototype.toString,Rr=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/,Lr=512;function Kr(s){if(typeof s!="function")return null;var o="";if(typeof Function.prototype.name>"u"&&typeof s.name>"u"){var t=Vr.call(s);if(t.indexOf("(")>Lr)return o;var c=t.match(Rr);c&&(o=c[1])}else o=s.name;return o}kt.exports=Kr});var Ct=N(()=>{});var Bt=N((Ge,zt)=>{(function(s,o){typeof Ge=="object"&&typeof zt<"u"?o(Ge):typeof define=="function"&&define.amd?define(["exports"],o):(s=typeof globalThis<"u"?globalThis:s||self,o(s.loupe={}))})(Ge,function(s){"use strict";function o(u){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(f){return typeof f}:o=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},o(u)}function t(u,f){return c(u)||e(u,f)||n(u,f)||i()}function c(u){if(Array.isArray(u))return u}function e(u,f){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(u)))){var g=[],S=!0,M=!1,q=void 0;try{for(var D=u[Symbol.iterator](),B;!(S=(B=D.next()).done)&&(g.push(B.value),!(f&&g.length===f));S=!0);}catch(W){M=!0,q=W}finally{try{!S&&D.return!=null&&D.return()}finally{if(M)throw q}}return g}}function n(u,f){if(!!u){if(typeof u=="string")return r(u,f);var g=Object.prototype.toString.call(u).slice(8,-1);if(g==="Object"&&u.constructor&&(g=u.constructor.name),g==="Map"||g==="Set")return Array.from(u);if(g==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(g))return r(u,f)}}function r(u,f){(f==null||f>u.length)&&(f=u.length);for(var g=0,S=new Array(f);g0&&arguments[0]!==void 0?arguments[0]:{},f=u.showHidden,g=f===void 0?!1:f,S=u.depth,M=S===void 0?2:S,q=u.colors,D=q===void 0?!1:q,B=u.customInspect,W=B===void 0?!0:B,U=u.showProxy,Q=U===void 0?!1:U,ue=u.maxArrayLength,Qe=ue===void 0?1/0:ue,Se=u.breakLength,ve=Se===void 0?1/0:Se,Ee=u.seen,Er=Ee===void 0?[]:Ee,yt=u.truncate,Mr=yt===void 0?1/0:yt,bt=u.stylize,Pr=bt===void 0?String:bt,Xe={showHidden:Boolean(g),depth:Number(M),colors:Boolean(D),customInspect:Boolean(W),showProxy:Boolean(Q),maxArrayLength:Number(Qe),breakLength:Number(ve),truncate:Number(Mr),seen:Er,stylize:Pr};return Xe.colors&&(Xe.stylize=K),Xe}function R(u,f){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:E;u=String(u);var S=g.length,M=u.length;return S>f&&M>S?g:M>f&&M>S?"".concat(u.slice(0,f-S)).concat(g):u}function V(u,f,g){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:", ";g=g||f.inspect;var M=u.length;if(M===0)return"";for(var q=f.truncate,D="",B="",W="",U=0;Uq&&D.length+W.length<=q||!Q&&!ue&&Ee>q||(B=Q?"":g(u[U+1],f)+(ue?"":S),!Q&&ue&&Ee>q&&ve+B.length>q))break;if(D+=Se,!Q&&!ue&&ve+B.length>=q){W="".concat(E,"(").concat(u.length-U-1,")");break}W=""}return"".concat(D).concat(W)}function te(u){return u.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?u:JSON.stringify(u).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function Z(u,f){var g=t(u,2),S=g[0],M=g[1];return f.truncate-=2,typeof S=="string"?S=te(S):typeof S!="number"&&(S="[".concat(f.inspect(S,f),"]")),f.truncate-=S.length,M=f.inspect(M,f),"".concat(S,": ").concat(M)}function de(u,f){var g=Object.keys(u).slice(u.length);if(!u.length&&!g.length)return"[]";f.truncate-=4;var S=V(u,f);f.truncate-=S.length;var M="";return g.length&&(M=V(g.map(function(q){return[q,u[q]]}),f,Z)),"[ ".concat(S).concat(M?", ".concat(M):""," ]")}var pe=Function.prototype.toString,ge=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;function ye(u){if(typeof u!="function")return null;var f="";if(typeof Function.prototype.name>"u"&&typeof u.name>"u"){var g=pe.call(u).match(ge);g&&(f=g[1])}else f=u.name;return f}var z=ye,ne=function(f){return typeof Buffer=="function"&&f instanceof Buffer?"Buffer":f[Symbol.toStringTag]?f[Symbol.toStringTag]:z(f.constructor)};function _(u,f){var g=ne(u);f.truncate-=g.length+4;var S=Object.keys(u).slice(u.length);if(!u.length&&!S.length)return"".concat(g,"[]");for(var M="",q=0;q ").concat(M)}function De(u){var f=[];return u.forEach(function(g,S){f.push([S,g])}),f}function Ie(u,f){var g=u.size-1;return g<=0?"Map{}":(f.truncate-=7,"Map{ ".concat(V(De(u),f,Te)," }"))}var $e=Number.isNaN||function(u){return u!==u};function ke(u,f){return $e(u)?f.stylize("NaN","number"):u===1/0?f.stylize("Infinity","number"):u===-1/0?f.stylize("-Infinity","number"):u===0?f.stylize(1/u===1/0?"+0":"-0","number"):f.stylize(R(u,f.truncate),"number")}function xe(u,f){var g=R(u.toString(),f.truncate-1);return g!==E&&(g+="n"),f.stylize(g,"bigint")}function Ce(u,f){var g=u.toString().split("/")[2],S=f.truncate-(2+g.length),M=u.source;return f.stylize("/".concat(R(M,S),"/").concat(g),"regexp")}function ze(u){var f=[];return u.forEach(function(g){f.push(g)}),f}function Je(u,f){return u.size===0?"Set{}":(f.truncate-=7,"Set{ ".concat(V(ze(u),f)," }"))}var a=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),h={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},p=16,y=4;function m(u){return h[u]||"\\u".concat("0000".concat(u.charCodeAt(0).toString(p)).slice(-y))}function w(u,f){return a.test(u)&&(u=u.replace(a,m)),f.stylize("'".concat(R(u,f.truncate-2),"'"),"string")}function b(u){return"description"in Symbol.prototype?u.description?"Symbol(".concat(u.description,")"):"Symbol()":u.toString()}var d=function(){return"Promise{\u2026}"};try{var x=process.binding("util"),P=x.getPromiseDetails,A=x.kPending,k=x.kRejected;Array.isArray(P(Promise.resolve()))&&(d=function(f,g){var S=P(f),M=t(S,2),q=M[0],D=M[1];return q===A?"Promise{}":"Promise".concat(q===k?"!":"","{").concat(g.inspect(D,g),"}")})}catch{}var j=d;function O(u,f){var g=Object.getOwnPropertyNames(u),S=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(u):[];if(g.length===0&&S.length===0)return"{}";if(f.truncate-=4,f.seen=f.seen||[],f.seen.indexOf(u)>=0)return"[Circular]";f.seen.push(u);var M=V(g.map(function(B){return[B,u[B]]}),f,Z),q=V(S.map(function(B){return[B,u[B]]}),f,Z);f.seen.pop();var D="";return M&&q&&(D=", "),"{ ".concat(M).concat(D).concat(q," }")}var T=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function F(u,f){var g="";return T&&T in u&&(g=u[T]),g=g||z(u.constructor),(!g||g==="_class")&&(g=""),f.truncate-=g.length,"".concat(g).concat(O(u,f))}function G(u,f){return u.length===0?"Arguments[]":(f.truncate-=13,"Arguments[ ".concat(V(u,f)," ]"))}var oe=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description"];function $(u,f){var g=Object.getOwnPropertyNames(u).filter(function(D){return oe.indexOf(D)===-1}),S=u.name;f.truncate-=S.length;var M="";typeof u.message=="string"?M=R(u.message,f.truncate):g.unshift("message"),M=M?": ".concat(M):"",f.truncate-=M.length+5;var q=V(g.map(function(D){return[D,u[D]]}),f,Z);return"".concat(S).concat(M).concat(q?" { ".concat(q," }"):"")}function re(u,f){var g=t(u,2),S=g[0],M=g[1];return f.truncate-=3,M?"".concat(f.stylize(S,"yellow"),"=").concat(f.stylize('"'.concat(M,'"'),"string")):"".concat(f.stylize(S,"yellow"))}function Ze(u,f){return V(u,f,ht,` +`)}function ht(u,f){var g=u.getAttributeNames(),S=u.tagName.toLowerCase(),M=f.stylize("<".concat(S),"special"),q=f.stylize(">","special"),D=f.stylize(""),"special");f.truncate-=S.length*2+5;var B="";g.length>0&&(B+=" ",B+=V(g.map(function(Q){return[Q,u.getAttribute(Q)]}),f,re," ")),f.truncate-=B.length;var W=f.truncate,U=Ze(u.children,f);return U&&U.length>W&&(U="".concat(E,"(").concat(u.children.length,")")),"".concat(M).concat(B).concat(q).concat(U).concat(D)}var br=typeof Symbol=="function"&&typeof Symbol.for=="function",Be=br?Symbol.for("chai/inspect"):"@@chai/inspect",me=!1;try{var dt=Ct();me=dt.inspect?dt.inspect.custom:!1}catch{me=!1}function pt(){this.key="chai/loupe__"+Math.random()+Date.now()}pt.prototype={get:function(f){return f[this.key]},has:function(f){return this.key in f},set:function(f,g){Object.isExtensible(f)&&Object.defineProperty(f,this.key,{value:g,configurable:!0})}};var Fe=new(typeof WeakMap=="function"?WeakMap:pt),Ve={},gt={undefined:function(f,g){return g.stylize("undefined","undefined")},null:function(f,g){return g.stylize(null,"null")},boolean:function(f,g){return g.stylize(f,"boolean")},Boolean:function(f,g){return g.stylize(f,"boolean")},number:ke,Number:ke,bigint:xe,BigInt:xe,string:w,String:w,function:be,Function:be,symbol:b,Symbol:b,Array:de,Date:L,Map:Ie,Set:Je,RegExp:Ce,Promise:j,WeakSet:function(f,g){return g.stylize("WeakSet{\u2026}","special")},WeakMap:function(f,g){return g.stylize("WeakMap{\u2026}","special")},Arguments:G,Int8Array:_,Uint8Array:_,Uint8ClampedArray:_,Int16Array:_,Uint16Array:_,Int32Array:_,Uint32Array:_,Float32Array:_,Float64Array:_,Generator:function(){return""},DataView:function(){return""},ArrayBuffer:function(){return""},Error:$,HTMLCollection:Ze,NodeList:Ze},mr=function(f,g,S){return Be in f&&typeof f[Be]=="function"?f[Be](g):me&&me in f&&typeof f[me]=="function"?f[me](g.depth,g):"inspect"in f&&typeof f.inspect=="function"?f.inspect(g.depth,g):"constructor"in f&&Fe.has(f.constructor)?Fe.get(f.constructor)(f,g):Ve[S]?Ve[S](f,g):""},vr=Object.prototype.toString;function Re(u,f){f=H(f),f.inspect=Re;var g=f,S=g.customInspect,M=u===null?"null":o(u);if(M==="object"&&(M=vr.call(u).slice(8,-1)),gt[M])return gt[M](u,f);if(S&&u){var q=mr(u,f,M);if(q)return typeof q=="string"?q:Re(q,f)}var D=u?Object.getPrototypeOf(u):!1;return D===Object.prototype||D===null?O(u,f):u&&typeof HTMLElement=="function"&&u instanceof HTMLElement?ht(u,f):"constructor"in u?u.constructor!==Object?F(u,f):O(u,f):u===Object(u)?O(u,f):f.stylize(String(u),M)}function wr(u,f){return Fe.has(u)?!1:(Fe.set(u,f),!0)}function xr(u,f){return u in Ve?!1:(Ve[u]=f,!0)}var Sr=Be;s.custom=Sr,s.default=Re,s.inspect=Re,s.registerConstructor=wr,s.registerStringTag=xr,Object.defineProperty(s,"__esModule",{value:!0})})});var fe=N((ci,Ft)=>{Ft.exports={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null}});var _e=N((li,Rt)=>{var fi=Ke(),Gr=Bt(),Vt=fe();Rt.exports=_r;function _r(s,o,t,c){var e={colors:c,depth:typeof t>"u"?2:t,showHidden:o,truncate:Vt.truncateThreshold?Vt.truncateThreshold:1/0};return Gr.inspect(s,e)}});var rt=N((hi,Kt)=>{var Ur=_e(),Lt=fe();Kt.exports=function(o){var t=Ur(o),c=Object.prototype.toString.call(o);if(Lt.truncateThreshold&&t.length>=Lt.truncateThreshold){if(c==="[object Function]")return!o.name||o.name===""?"[Function]":"[Function: "+o.name+"]";if(c==="[object Array]")return"[ Array("+o.length+") ]";if(c==="[object Object]"){var e=Object.keys(o),n=e.length>2?e.splice(0,2).join(", ")+", ...":e.join(", ");return"{ Object ("+n+") }"}else return t}else return t}});var _t=N((di,Gt)=>{var ot=X(),Wr=nt(),it=rt();Gt.exports=function(o,t){var c=ot(o,"negate"),e=ot(o,"object"),n=t[3],r=Wr(o,t),i=c?t[2]:t[1],l=ot(o,"message");return typeof i=="function"&&(i=i()),i=i||"",i=i.replace(/#\{this\}/g,function(){return it(e)}).replace(/#\{act\}/g,function(){return it(r)}).replace(/#\{exp\}/g,function(){return it(n)}),l?l+": "+i:i}});var ie=N((pi,Ut)=>{Ut.exports=function(o,t,c){var e=o.__flags||(o.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),c=arguments.length===3?c:!0;for(var n in e)(c||n!=="object"&&n!=="ssfi"&&n!=="lockSsfi"&&n!="message")&&(t.__flags[n]=e[n])}});var rn=N((gi,ut)=>{"use strict";var Wt=Me();function en(){this._key="chai/deep-eql__"+Math.random()+Date.now()}en.prototype={get:function(o){return o[this._key]},set:function(o,t){Object.isExtensible(o)&&Object.defineProperty(o,this._key,{value:t,configurable:!0})}};var at=typeof WeakMap=="function"?WeakMap:en;function $t(s,o,t){if(!t||we(s)||we(o))return null;var c=t.get(s);if(c){var e=c.get(o);if(typeof e=="boolean")return e}return null}function Ue(s,o,t,c){if(!(!t||we(s)||we(o))){var e=t.get(s);e?e.set(o,c):(e=new at,e.set(o,c),t.set(s,e))}}ut.exports=We;ut.exports.MemoizeMap=at;function We(s,o,t){if(t&&t.comparator)return Jt(s,o,t);var c=tn(s,o);return c!==null?c:Jt(s,o,t)}function tn(s,o){return s===o?s!==0||1/s===1/o:s!==s&&o!==o?!0:we(s)||we(o)?!1:null}function Jt(s,o,t){t=t||{},t.memoize=t.memoize===!1?!1:t.memoize||new at;var c=t&&t.comparator,e=$t(s,o,t.memoize);if(e!==null)return e;var n=$t(o,s,t.memoize);if(n!==null)return n;if(c){var r=c(s,o);if(r===!1||r===!0)return Ue(s,o,t.memoize,r),r;var i=tn(s,o);if(i!==null)return i}var l=Wt(s);if(l!==Wt(o))return Ue(s,o,t.memoize,!1),!1;Ue(s,o,t.memoize,!0);var v=$r(s,o,l,t);return Ue(s,o,t.memoize,v),v}function $r(s,o,t,c){switch(t){case"String":case"Number":case"Boolean":case"Date":return We(s.valueOf(),o.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return s===o;case"Error":return nn(s,o,["name","message","code"],c);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return le(s,o,c);case"RegExp":return Jr(s,o);case"Generator":return Zr(s,o,c);case"DataView":return le(new Uint8Array(s.buffer),new Uint8Array(o.buffer),c);case"ArrayBuffer":return le(new Uint8Array(s),new Uint8Array(o),c);case"Set":return Zt(s,o,c);case"Map":return Zt(s,o,c);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return s.equals(o);case"Temporal.Duration":return s.total("nanoseconds")===o.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return s.toString()===o.toString();default:return Xr(s,o,c)}}function Jr(s,o){return s.toString()===o.toString()}function Zt(s,o,t){try{if(s.size!==o.size)return!1;if(s.size===0)return!0}catch{return!1}var c=[],e=[];return s.forEach(function(r,i){c.push([r,i])}),o.forEach(function(r,i){e.push([r,i])}),le(c.sort(),e.sort(),t)}function le(s,o,t){var c=s.length;if(c!==o.length)return!1;if(c===0)return!0;for(var e=-1;++e{var Yr=fe();on.exports=function(){return Yr.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}});var un=N((bi,an)=>{var Hr=se(),sn=X(),eo=Pe(),to=ie();an.exports=function(o,t,c){c=c===void 0?function(){}:c,Object.defineProperty(o,t,{get:function e(){!eo()&&!sn(this,"lockSsfi")&&sn(this,"ssfi",e);var n=c.call(this);if(n!==void 0)return n;var r=new Hr.Assertion;return to(this,r),r},configurable:!0})}});var Ae=N((mi,cn)=>{var no=Object.getOwnPropertyDescriptor(function(){},"length");cn.exports=function(o,t,c){return no.configurable&&Object.defineProperty(o,"length",{get:function(){throw Error(c?"Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.':"Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')}}),o}});var ln=N((vi,fn)=>{fn.exports=function(o){var t=Object.getOwnPropertyNames(o);function c(n){t.indexOf(n)===-1&&t.push(n)}for(var e=Object.getPrototypeOf(o);e!==null;)Object.getOwnPropertyNames(e).forEach(c),e=Object.getPrototypeOf(e);return t}});var Oe=N((wi,pn)=>{var ro=fe(),hn=X(),oo=ln(),io=Pe();var dn=["__flags","__methods","_obj","assert"];pn.exports=function(o,t){return io()?new Proxy(o,{get:function c(e,n){if(typeof n=="string"&&ro.proxyExcludedKeys.indexOf(n)===-1&&!Reflect.has(e,n)){if(t)throw Error("Invalid Chai property: "+t+"."+n+'. See docs for proper usage of "'+t+'".');var r=null,i=4;throw oo(e).forEach(function(l){if(!Object.prototype.hasOwnProperty(l)&&dn.indexOf(l)===-1){var v=so(n,l,i);v=t)return t;for(var c=[],e=0;e<=s.length;e++)c[e]=Array(o.length+1).fill(0),c[e][0]=e;for(var n=0;n=t){c[e][n]=t;continue}c[e][n]=Math.min(c[e-1][n]+1,c[e][n-1]+1,c[e-1][n-1]+(r===o.charCodeAt(n-1)?0:1))}return c[s.length][o.length]}});var bn=N((xi,yn)=>{var ao=Ae(),uo=se(),gn=X(),co=Oe(),fo=ie();yn.exports=function(o,t,c){var e=function(){gn(this,"lockSsfi")||gn(this,"ssfi",e);var n=c.apply(this,arguments);if(n!==void 0)return n;var r=new uo.Assertion;return fo(this,r),r};ao(e,t,!1),o[t]=co(e,t)}});var vn=N((Si,mn)=>{var lo=se(),Ne=X(),ho=Pe(),po=ie();mn.exports=function(o,t,c){var e=Object.getOwnPropertyDescriptor(o,t),n=function(){};e&&typeof e.get=="function"&&(n=e.get),Object.defineProperty(o,t,{get:function r(){!ho()&&!Ne(this,"lockSsfi")&&Ne(this,"ssfi",r);var i=Ne(this,"lockSsfi");Ne(this,"lockSsfi",!0);var l=c(n).call(this);if(Ne(this,"lockSsfi",i),l!==void 0)return l;var v=new lo.Assertion;return po(this,v),v},configurable:!0})}});var xn=N((Ei,wn)=>{var go=Ae(),yo=se(),qe=X(),bo=Oe(),mo=ie();wn.exports=function(o,t,c){var e=o[t],n=function(){throw new Error(t+" is not a function")};e&&typeof e=="function"&&(n=e);var r=function(){qe(this,"lockSsfi")||qe(this,"ssfi",r);var i=qe(this,"lockSsfi");qe(this,"lockSsfi",!0);var l=c(n).apply(this,arguments);if(qe(this,"lockSsfi",i),l!==void 0)return l;var v=new yo.Assertion;return mo(this,v),v};go(r,t,!1),o[t]=bo(r,t)}});var An=N((Mi,Pn)=>{var vo=Ae(),wo=se(),Sn=X(),xo=Oe(),En=ie();var So=typeof Object.setPrototypeOf=="function",Mn=function(){},Eo=Object.getOwnPropertyNames(Mn).filter(function(s){var o=Object.getOwnPropertyDescriptor(Mn,s);return typeof o!="object"?!0:!o.configurable}),Mo=Function.prototype.call,Po=Function.prototype.apply;Pn.exports=function(o,t,c,e){typeof e!="function"&&(e=function(){});var n={method:c,chainingBehavior:e};o.__methods||(o.__methods={}),o.__methods[t]=n,Object.defineProperty(o,t,{get:function(){n.chainingBehavior.call(this);var i=function(){Sn(this,"lockSsfi")||Sn(this,"ssfi",i);var E=n.method.apply(this,arguments);if(E!==void 0)return E;var K=new wo.Assertion;return En(this,K),K};if(vo(i,t,!0),So){var l=Object.create(this);l.call=Mo,l.apply=Po,Object.setPrototypeOf(i,l)}else{var v=Object.getOwnPropertyNames(o);v.forEach(function(E){if(Eo.indexOf(E)===-1){var K=Object.getOwnPropertyDescriptor(o,E);Object.defineProperty(i,E,K)}})}return En(this,i),xo(i)},configurable:!0})}});var jn=N((Pi,qn)=>{var On=se(),Nn=ie();qn.exports=function(o,t,c,e){var n=o.__methods[t],r=n.chainingBehavior;n.chainingBehavior=function(){var v=e(r).call(this);if(v!==void 0)return v;var E=new On.Assertion;return Nn(this,E),E};var i=n.method;n.method=function(){var v=c(i).apply(this,arguments);if(v!==void 0)return v;var E=new On.Assertion;return Nn(this,E),E}}});var In=N((Ai,Dn)=>{var Tn=_e();Dn.exports=function(o,t){return Tn(o){kn.exports=function(o){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(o).filter(function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable})}});var zn=N((Ni,Cn)=>{var Ao=ct();Cn.exports=function(o){return Object.keys(o).concat(Ao(o))}});var Fn=N((qi,Bn)=>{"use strict";var ft=Ke();function Oo(s,o){return o instanceof Error&&s===o}function No(s,o){return o instanceof Error?s.constructor===o.constructor||s instanceof o.constructor:o.prototype instanceof Error||o===Error?s.constructor===o||s instanceof o:!1}function qo(s,o){var t=typeof s=="string"?s:s.message;return o instanceof RegExp?o.test(t):typeof o=="string"?t.indexOf(o)!==-1:!1}function jo(s){var o=s;if(s instanceof Error)o=ft(s.constructor);else if(typeof s=="function"&&(o=ft(s),o==="")){var t=ft(new s);o=t||o}return o}function To(s){var o="";return s&&s.message?o=s.message:typeof s=="string"&&(o=s),o}Bn.exports={compatibleInstance:Oo,compatibleConstructor:No,compatibleMessage:qo,getMessage:To,getConstructorName:jo}});var Rn=N((ji,Vn)=>{function Do(s){return s!==s}Vn.exports=Number.isNaN||Do});var Gn=N((Ti,Kn)=>{var Io=Me(),Ln=X();function ko(s){var o=Io(s),t=["Array","Object","function"];return t.indexOf(o)!==-1}Kn.exports=function(o,t){var c=Ln(o,"operator"),e=Ln(o,"negate"),n=t[3],r=e?t[2]:t[1];if(c)return c;if(typeof r=="function"&&(r=r()),r=r||"",!!r&&!/\shave\s/.test(r)){var i=ko(n);return/\snot\s/.test(r)?i?"notDeepStrictEqual":"notStrictEqual":i?"deepStrictEqual":"strictEqual"}}});var Un=N(I=>{var _n=Ot();I.test=jt();I.type=Me();I.expectTypes=Dt();I.getMessage=_t();I.getActual=nt();I.inspect=_e();I.objDisplay=rt();I.flag=X();I.transferFlags=ie();I.eql=rn();I.getPathInfo=_n.getPathInfo;I.hasProperty=_n.hasProperty;I.getName=Ke();I.addProperty=un();I.addMethod=bn();I.overwriteProperty=vn();I.overwriteMethod=xn();I.addChainableMethod=An();I.overwriteChainableMethod=jn();I.compareByInspect=In();I.getOwnEnumerablePropertySymbols=ct();I.getOwnEnumerableProperties=zn();I.checkError=Fn();I.proxify=Oe();I.addLengthGuard=Ae();I.isProxyEnabled=Pe();I.isNaN=Rn();I.getOperator=Gn()});var $n=N((Ii,Wn)=>{var he=fe();Wn.exports=function(s,o){var t=s.AssertionError,c=o.flag;s.Assertion=e;function e(n,r,i,l){return c(this,"ssfi",i||e),c(this,"lockSsfi",l),c(this,"object",n),c(this,"message",r),c(this,"eql",he.deepEqual||o.eql),o.proxify(this)}Object.defineProperty(e,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),he.includeStack},set:function(n){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),he.includeStack=n}}),Object.defineProperty(e,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),he.showDiff},set:function(n){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),he.showDiff=n}}),e.addProperty=function(n,r){o.addProperty(this.prototype,n,r)},e.addMethod=function(n,r){o.addMethod(this.prototype,n,r)},e.addChainableMethod=function(n,r,i){o.addChainableMethod(this.prototype,n,r,i)},e.overwriteProperty=function(n,r){o.overwriteProperty(this.prototype,n,r)},e.overwriteMethod=function(n,r){o.overwriteMethod(this.prototype,n,r)},e.overwriteChainableMethod=function(n,r,i){o.overwriteChainableMethod(this.prototype,n,r,i)},e.prototype.assert=function(n,r,i,l,v,E){var K=o.test(this,arguments);if(E!==!1&&(E=!0),l===void 0&&v===void 0&&(E=!1),he.showDiff!==!0&&(E=!1),!K){r=o.getMessage(this,arguments);var H=o.getActual(this,arguments),R={actual:H,expected:l,showDiff:E},V=o.getOperator(this,arguments);throw V&&(R.operator=V),new t(r,R,he.includeStack?this.assert:c(this,"ssfi"))}};Object.defineProperty(e.prototype,"_obj",{get:function(){return c(this,"object")},set:function(n){c(this,"object",n)}})}});var Zn=N((ki,Jn)=>{Jn.exports=function(s,o){var t=s.Assertion,c=s.AssertionError,e=o.flag;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(a){t.addProperty(a)}),t.addProperty("not",function(){e(this,"negate",!0)}),t.addProperty("deep",function(){e(this,"deep",!0)}),t.addProperty("nested",function(){e(this,"nested",!0)}),t.addProperty("own",function(){e(this,"own",!0)}),t.addProperty("ordered",function(){e(this,"ordered",!0)}),t.addProperty("any",function(){e(this,"any",!0),e(this,"all",!1)}),t.addProperty("all",function(){e(this,"all",!0),e(this,"any",!1)});function n(a,h){h&&e(this,"message",h),a=a.toLowerCase();var p=e(this,"object"),y=~["a","e","i","o","u"].indexOf(a.charAt(0))?"an ":"a ";this.assert(a===o.type(p).toLowerCase(),"expected #{this} to be "+y+a,"expected #{this} not to be "+y+a)}t.addChainableMethod("an",n),t.addChainableMethod("a",n);function r(a,h){return o.isNaN(a)&&o.isNaN(h)||a===h}function i(){e(this,"contains",!0)}function l(a,h){h&&e(this,"message",h);var p=e(this,"object"),y=o.type(p).toLowerCase(),m=e(this,"message"),w=e(this,"negate"),b=e(this,"ssfi"),d=e(this,"deep"),x=d?"deep ":"",P=d?e(this,"eql"):r;m=m?m+": ":"";var A=!1;switch(y){case"string":A=p.indexOf(a)!==-1;break;case"weakset":if(d)throw new c(m+"unable to use .deep.include with WeakSet",void 0,b);A=p.has(a);break;case"map":p.forEach(function(T){A=A||P(T,a)});break;case"set":d?p.forEach(function(T){A=A||P(T,a)}):A=p.has(a);break;case"array":d?A=p.some(function(T){return P(T,a)}):A=p.indexOf(a)!==-1;break;default:if(a!==Object(a))throw new c(m+"the given combination of arguments ("+y+" and "+o.type(a).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 "+o.type(a).toLowerCase(),void 0,b);var k=Object.keys(a),j=null,O=0;if(k.forEach(function(T){var F=new t(p);if(o.transferFlags(this,F,!0),e(F,"lockSsfi",!0),!w||k.length===1){F.property(T,a[T]);return}try{F.property(T,a[T])}catch(G){if(!o.checkError.compatibleConstructor(G,c))throw G;j===null&&(j=G),O++}},this),w&&k.length>1&&O===k.length)throw j;return}this.assert(A,"expected #{this} to "+x+"include "+o.inspect(a),"expected #{this} to not "+x+"include "+o.inspect(a))}t.addChainableMethod("include",l,i),t.addChainableMethod("contain",l,i),t.addChainableMethod("contains",l,i),t.addChainableMethod("includes",l,i),t.addProperty("ok",function(){this.assert(e(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")}),t.addProperty("true",function(){this.assert(e(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!e(this,"negate"))}),t.addProperty("false",function(){this.assert(e(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!e(this,"negate"))}),t.addProperty("null",function(){this.assert(e(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")}),t.addProperty("undefined",function(){this.assert(e(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")}),t.addProperty("NaN",function(){this.assert(o.isNaN(e(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function v(){var a=e(this,"object");this.assert(a!=null,"expected #{this} to exist","expected #{this} to not exist")}t.addProperty("exist",v),t.addProperty("exists",v),t.addProperty("empty",function(){var a=e(this,"object"),h=e(this,"ssfi"),p=e(this,"message"),y;switch(p=p?p+": ":"",o.type(a).toLowerCase()){case"array":case"string":y=a.length;break;case"map":case"set":y=a.size;break;case"weakmap":case"weakset":throw new c(p+".empty was passed a weak collection",void 0,h);case"function":var m=p+".empty was passed a function "+o.getName(a);throw new c(m.trim(),void 0,h);default:if(a!==Object(a))throw new c(p+".empty was passed non-string primitive "+o.inspect(a),void 0,h);y=Object.keys(a).length}this.assert(y===0,"expected #{this} to be empty","expected #{this} not to be empty")});function E(){var a=e(this,"object"),h=o.type(a);this.assert(h==="Arguments","expected #{this} to be arguments but got "+h,"expected #{this} to not be arguments")}t.addProperty("arguments",E),t.addProperty("Arguments",E);function K(a,h){h&&e(this,"message",h);var p=e(this,"object");if(e(this,"deep")){var y=e(this,"lockSsfi");e(this,"lockSsfi",!0),this.eql(a),e(this,"lockSsfi",y)}else this.assert(a===p,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",a,this._obj,!0)}t.addMethod("equal",K),t.addMethod("equals",K),t.addMethod("eq",K);function H(a,h){h&&e(this,"message",h);var p=e(this,"eql");this.assert(p(a,e(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",a,this._obj,!0)}t.addMethod("eql",H),t.addMethod("eqls",H);function R(a,h){h&&e(this,"message",h);var p=e(this,"object"),y=e(this,"doLength"),m=e(this,"message"),w=m?m+": ":"",b=e(this,"ssfi"),d=o.type(p).toLowerCase(),x=o.type(a).toLowerCase(),P,A=!0;if(y&&d!=="map"&&d!=="set"&&new t(p,m,b,!0).to.have.property("length"),!y&&d==="date"&&x!=="date")P=w+"the argument to above must be a date";else if(x!=="number"&&(y||d==="number"))P=w+"the argument to above must be a number";else if(!y&&d!=="date"&&d!=="number"){var k=d==="string"?"'"+p+"'":p;P=w+"expected "+k+" to be a number or a date"}else A=!1;if(A)throw new c(P,void 0,b);if(y){var j="length",O;d==="map"||d==="set"?(j="size",O=p.size):O=p.length,this.assert(O>a,"expected #{this} to have a "+j+" above #{exp} but got #{act}","expected #{this} to not have a "+j+" above #{exp}",a,O)}else this.assert(p>a,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",a)}t.addMethod("above",R),t.addMethod("gt",R),t.addMethod("greaterThan",R);function V(a,h){h&&e(this,"message",h);var p=e(this,"object"),y=e(this,"doLength"),m=e(this,"message"),w=m?m+": ":"",b=e(this,"ssfi"),d=o.type(p).toLowerCase(),x=o.type(a).toLowerCase(),P,A=!0;if(y&&d!=="map"&&d!=="set"&&new t(p,m,b,!0).to.have.property("length"),!y&&d==="date"&&x!=="date")P=w+"the argument to least must be a date";else if(x!=="number"&&(y||d==="number"))P=w+"the argument to least must be a number";else if(!y&&d!=="date"&&d!=="number"){var k=d==="string"?"'"+p+"'":p;P=w+"expected "+k+" to be a number or a date"}else A=!1;if(A)throw new c(P,void 0,b);if(y){var j="length",O;d==="map"||d==="set"?(j="size",O=p.size):O=p.length,this.assert(O>=a,"expected #{this} to have a "+j+" at least #{exp} but got #{act}","expected #{this} to have a "+j+" below #{exp}",a,O)}else this.assert(p>=a,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",a)}t.addMethod("least",V),t.addMethod("gte",V),t.addMethod("greaterThanOrEqual",V);function te(a,h){h&&e(this,"message",h);var p=e(this,"object"),y=e(this,"doLength"),m=e(this,"message"),w=m?m+": ":"",b=e(this,"ssfi"),d=o.type(p).toLowerCase(),x=o.type(a).toLowerCase(),P,A=!0;if(y&&d!=="map"&&d!=="set"&&new t(p,m,b,!0).to.have.property("length"),!y&&d==="date"&&x!=="date")P=w+"the argument to below must be a date";else if(x!=="number"&&(y||d==="number"))P=w+"the argument to below must be a number";else if(!y&&d!=="date"&&d!=="number"){var k=d==="string"?"'"+p+"'":p;P=w+"expected "+k+" to be a number or a date"}else A=!1;if(A)throw new c(P,void 0,b);if(y){var j="length",O;d==="map"||d==="set"?(j="size",O=p.size):O=p.length,this.assert(O=a&&G<=h,"expected #{this} to have a "+F+" within "+O,"expected #{this} to not have a "+F+" within "+O)}else this.assert(y>=a&&y<=h,"expected #{this} to be within "+O,"expected #{this} to not be within "+O)});function de(a,h){h&&e(this,"message",h);var p=e(this,"object"),y=e(this,"ssfi"),m=e(this,"message");try{var w=p instanceof a}catch(d){throw d instanceof TypeError?(m=m?m+": ":"",new c(m+"The instanceof assertion needs a constructor but "+o.type(a)+" was given.",void 0,y)):d}var b=o.getName(a);b===null&&(b="an unnamed constructor"),this.assert(w,"expected #{this} to be an instance of "+b,"expected #{this} to not be an instance of "+b)}t.addMethod("instanceof",de),t.addMethod("instanceOf",de);function pe(a,h,p){p&&e(this,"message",p);var y=e(this,"nested"),m=e(this,"own"),w=e(this,"message"),b=e(this,"object"),d=e(this,"ssfi"),x=typeof a;if(w=w?w+": ":"",y){if(x!=="string")throw new c(w+"the argument to property must be a string when using nested syntax",void 0,d)}else if(x!=="string"&&x!=="number"&&x!=="symbol")throw new c(w+"the argument to property must be a string, number, or symbol",void 0,d);if(y&&m)throw new c(w+'The "nested" and "own" flags cannot be combined.',void 0,d);if(b==null)throw new c(w+"Target cannot be null or undefined.",void 0,d);var P=e(this,"deep"),A=e(this,"negate"),k=y?o.getPathInfo(b,a):null,j=y?k.value:b[a],O=P?e(this,"eql"):(G,oe)=>G===oe,T="";P&&(T+="deep "),m&&(T+="own "),y&&(T+="nested "),T+="property ";var F;m?F=Object.prototype.hasOwnProperty.call(b,a):y?F=k.exists:F=o.hasProperty(b,a),(!A||arguments.length===1)&&this.assert(F,"expected #{this} to have "+T+o.inspect(a),"expected #{this} to not have "+T+o.inspect(a)),arguments.length>1&&this.assert(F&&O(h,j),"expected #{this} to have "+T+o.inspect(a)+" of #{exp}, but got #{act}","expected #{this} to not have "+T+o.inspect(a)+" of #{act}",h,j),e(this,"object",j)}t.addMethod("property",pe);function ge(a,h,p){e(this,"own",!0),pe.apply(this,arguments)}t.addMethod("ownProperty",ge),t.addMethod("haveOwnProperty",ge);function ye(a,h,p){typeof h=="string"&&(p=h,h=null),p&&e(this,"message",p);var y=e(this,"object"),m=Object.getOwnPropertyDescriptor(Object(y),a),w=e(this,"eql");m&&h?this.assert(w(h,m),"expected the own property descriptor for "+o.inspect(a)+" on #{this} to match "+o.inspect(h)+", got "+o.inspect(m),"expected the own property descriptor for "+o.inspect(a)+" on #{this} to not match "+o.inspect(h),h,m,!0):this.assert(m,"expected #{this} to have an own property descriptor for "+o.inspect(a),"expected #{this} to not have an own property descriptor for "+o.inspect(a)),e(this,"object",m)}t.addMethod("ownPropertyDescriptor",ye),t.addMethod("haveOwnPropertyDescriptor",ye);function z(){e(this,"doLength",!0)}function ne(a,h){h&&e(this,"message",h);var p=e(this,"object"),y=o.type(p).toLowerCase(),m=e(this,"message"),w=e(this,"ssfi"),b="length",d;switch(y){case"map":case"set":b="size",d=p.size;break;default:new t(p,m,w,!0).to.have.property("length"),d=p.length}this.assert(d==a,"expected #{this} to have a "+b+" of #{exp} but got #{act}","expected #{this} to not have a "+b+" of #{act}",a,d)}t.addChainableMethod("length",ne,z),t.addChainableMethod("lengthOf",ne,z);function _(a,h){h&&e(this,"message",h);var p=e(this,"object");this.assert(a.exec(p),"expected #{this} to match "+a,"expected #{this} not to match "+a)}t.addMethod("match",_),t.addMethod("matches",_),t.addMethod("string",function(a,h){h&&e(this,"message",h);var p=e(this,"object"),y=e(this,"message"),m=e(this,"ssfi");new t(p,y,m,!0).is.a("string"),this.assert(~p.indexOf(a),"expected #{this} to contain "+o.inspect(a),"expected #{this} to not contain "+o.inspect(a))});function L(a){var h=e(this,"object"),p=o.type(h),y=o.type(a),m=e(this,"ssfi"),w=e(this,"deep"),b,d="",x,P=!0,A=e(this,"message");A=A?A+": ":"";var k=A+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(p==="Map"||p==="Set")d=w?"deeply ":"",x=[],h.forEach(function($,re){x.push(re)}),y!=="Array"&&(a=Array.prototype.slice.call(arguments));else{switch(x=o.getOwnEnumerableProperties(h),y){case"Array":if(arguments.length>1)throw new c(k,void 0,m);break;case"Object":if(arguments.length>1)throw new c(k,void 0,m);a=Object.keys(a);break;default:a=Array.prototype.slice.call(arguments)}a=a.map(function($){return typeof $=="symbol"?$:String($)})}if(!a.length)throw new c(A+"keys required",void 0,m);var j=a.length,O=e(this,"any"),T=e(this,"all"),F=a,G=w?e(this,"eql"):($,re)=>$===re;if(!O&&!T&&(T=!0),O&&(P=F.some(function($){return x.some(function(re){return G($,re)})})),T&&(P=F.every(function($){return x.some(function(re){return G($,re)})}),e(this,"contains")||(P=P&&a.length==x.length)),j>1){a=a.map(function($){return o.inspect($)});var oe=a.pop();T&&(b=a.join(", ")+", and "+oe),O&&(b=a.join(", ")+", or "+oe)}else b=o.inspect(a[0]);b=(j>1?"keys ":"key ")+b,b=(e(this,"contains")?"contain ":"have ")+b,this.assert(P,"expected #{this} to "+d+b,"expected #{this} to not "+d+b,F.slice(0).sort(o.compareByInspect),x.sort(o.compareByInspect),!0)}t.addMethod("keys",L),t.addMethod("key",L);function be(a,h,p){p&&e(this,"message",p);var y=e(this,"object"),m=e(this,"ssfi"),w=e(this,"message"),b=e(this,"negate")||!1;new t(y,w,m,!0).is.a("function"),(a instanceof RegExp||typeof a=="string")&&(h=a,a=null);var d;try{y()}catch(oe){d=oe}var x=a===void 0&&h===void 0,P=Boolean(a&&h),A=!1,k=!1;if(x||!x&&!b){var j="an error";a instanceof Error?j="#{exp}":a&&(j=o.checkError.getConstructorName(a)),this.assert(d,"expected #{this} to throw "+j,"expected #{this} to not throw an error but #{act} was thrown",a&&a.toString(),d instanceof Error?d.toString():typeof d=="string"?d:d&&o.checkError.getConstructorName(d))}if(a&&d){if(a instanceof Error){var O=o.checkError.compatibleInstance(d,a);O===b&&(P&&b?A=!0:this.assert(b,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(d&&!b?" but #{act} was thrown":""),a.toString(),d.toString()))}var T=o.checkError.compatibleConstructor(d,a);T===b&&(P&&b?A=!0:this.assert(b,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(d?" but #{act} was thrown":""),a instanceof Error?a.toString():a&&o.checkError.getConstructorName(a),d instanceof Error?d.toString():d&&o.checkError.getConstructorName(d)))}if(d&&h!==void 0&&h!==null){var F="including";h instanceof RegExp&&(F="matching");var G=o.checkError.compatibleMessage(d,h);G===b&&(P&&b?k=!0:this.assert(b,"expected #{this} to throw error "+F+" #{exp} but got #{act}","expected #{this} to throw error not "+F+" #{exp}",h,o.checkError.getMessage(d)))}A&&k&&this.assert(b,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(d?" but #{act} was thrown":""),a instanceof Error?a.toString():a&&o.checkError.getConstructorName(a),d instanceof Error?d.toString():d&&o.checkError.getConstructorName(d)),e(this,"object",d)}t.addMethod("throw",be),t.addMethod("throws",be),t.addMethod("Throw",be);function Te(a,h){h&&e(this,"message",h);var p=e(this,"object"),y=e(this,"itself"),m=typeof p=="function"&&!y?p.prototype[a]:p[a];this.assert(typeof m=="function","expected #{this} to respond to "+o.inspect(a),"expected #{this} to not respond to "+o.inspect(a))}t.addMethod("respondTo",Te),t.addMethod("respondsTo",Te),t.addProperty("itself",function(){e(this,"itself",!0)});function De(a,h){h&&e(this,"message",h);var p=e(this,"object"),y=a(p);this.assert(y,"expected #{this} to satisfy "+o.objDisplay(a),"expected #{this} to not satisfy"+o.objDisplay(a),!e(this,"negate"),y)}t.addMethod("satisfy",De),t.addMethod("satisfies",De);function Ie(a,h,p){p&&e(this,"message",p);var y=e(this,"object"),m=e(this,"message"),w=e(this,"ssfi");if(new t(y,m,w,!0).is.a("number"),typeof a!="number"||typeof h!="number"){m=m?m+": ":"";var b=h===void 0?", and a delta is required":"";throw new c(m+"the arguments to closeTo or approximately must be numbers"+b,void 0,w)}this.assert(Math.abs(y-a)<=h,"expected #{this} to be close to "+a+" +/- "+h,"expected #{this} not to be close to "+a+" +/- "+h)}t.addMethod("closeTo",Ie),t.addMethod("approximately",Ie);function $e(a,h,p,y,m){if(!y){if(a.length!==h.length)return!1;h=h.slice()}return a.every(function(w,b){if(m)return p?p(w,h[b]):w===h[b];if(!p){var d=h.indexOf(w);return d===-1?!1:(y||h.splice(d,1),!0)}return h.some(function(x,P){return p(w,x)?(y||h.splice(P,1),!0):!1})})}t.addMethod("members",function(a,h){h&&e(this,"message",h);var p=e(this,"object"),y=e(this,"message"),m=e(this,"ssfi");new t(p,y,m,!0).to.be.an("array"),new t(a,y,m,!0).to.be.an("array");var w=e(this,"contains"),b=e(this,"ordered"),d,x,P;w?(d=b?"an ordered superset":"a superset",x="expected #{this} to be "+d+" of #{exp}",P="expected #{this} to not be "+d+" of #{exp}"):(d=b?"ordered members":"members",x="expected #{this} to have the same "+d+" as #{exp}",P="expected #{this} to not have the same "+d+" as #{exp}");var A=e(this,"deep")?e(this,"eql"):void 0;this.assert($e(a,p,A,w,b),x,P,a,p,!0)});function ke(a,h){h&&e(this,"message",h);var p=e(this,"object"),y=e(this,"message"),m=e(this,"ssfi"),w=e(this,"contains"),b=e(this,"deep"),d=e(this,"eql");new t(a,y,m,!0).to.be.an("array"),w?this.assert(a.some(function(x){return p.indexOf(x)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",a,p):b?this.assert(a.some(function(x){return d(p,x)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",a,p):this.assert(a.indexOf(p)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",a,p)}t.addMethod("oneOf",ke);function xe(a,h,p){p&&e(this,"message",p);var y=e(this,"object"),m=e(this,"message"),w=e(this,"ssfi");new t(y,m,w,!0).is.a("function");var b;h?(new t(a,m,w,!0).to.have.property(h),b=a[h]):(new t(a,m,w,!0).is.a("function"),b=a()),y();var d=h==null?a():a[h],x=h==null?b:"."+h;e(this,"deltaMsgObj",x),e(this,"initialDeltaValue",b),e(this,"finalDeltaValue",d),e(this,"deltaBehavior","change"),e(this,"realDelta",d!==b),this.assert(b!==d,"expected "+x+" to change","expected "+x+" to not change")}t.addMethod("change",xe),t.addMethod("changes",xe);function Ce(a,h,p){p&&e(this,"message",p);var y=e(this,"object"),m=e(this,"message"),w=e(this,"ssfi");new t(y,m,w,!0).is.a("function");var b;h?(new t(a,m,w,!0).to.have.property(h),b=a[h]):(new t(a,m,w,!0).is.a("function"),b=a()),new t(b,m,w,!0).is.a("number"),y();var d=h==null?a():a[h],x=h==null?b:"."+h;e(this,"deltaMsgObj",x),e(this,"initialDeltaValue",b),e(this,"finalDeltaValue",d),e(this,"deltaBehavior","increase"),e(this,"realDelta",d-b),this.assert(d-b>0,"expected "+x+" to increase","expected "+x+" to not increase")}t.addMethod("increase",Ce),t.addMethod("increases",Ce);function ze(a,h,p){p&&e(this,"message",p);var y=e(this,"object"),m=e(this,"message"),w=e(this,"ssfi");new t(y,m,w,!0).is.a("function");var b;h?(new t(a,m,w,!0).to.have.property(h),b=a[h]):(new t(a,m,w,!0).is.a("function"),b=a()),new t(b,m,w,!0).is.a("number"),y();var d=h==null?a():a[h],x=h==null?b:"."+h;e(this,"deltaMsgObj",x),e(this,"initialDeltaValue",b),e(this,"finalDeltaValue",d),e(this,"deltaBehavior","decrease"),e(this,"realDelta",b-d),this.assert(d-b<0,"expected "+x+" to decrease","expected "+x+" to not decrease")}t.addMethod("decrease",ze),t.addMethod("decreases",ze);function Je(a,h){h&&e(this,"message",h);var p=e(this,"deltaMsgObj"),y=e(this,"initialDeltaValue"),m=e(this,"finalDeltaValue"),w=e(this,"deltaBehavior"),b=e(this,"realDelta"),d;w==="change"?d=Math.abs(m-y)===Math.abs(a):d=b===Math.abs(a),this.assert(d,"expected "+p+" to "+w+" by "+a,"expected "+p+" to not "+w+" by "+a)}t.addMethod("by",Je),t.addProperty("extensible",function(){var a=e(this,"object"),h=a===Object(a)&&Object.isExtensible(a);this.assert(h,"expected #{this} to be extensible","expected #{this} to not be extensible")}),t.addProperty("sealed",function(){var a=e(this,"object"),h=a===Object(a)?Object.isSealed(a):!0;this.assert(h,"expected #{this} to be sealed","expected #{this} to not be sealed")}),t.addProperty("frozen",function(){var a=e(this,"object"),h=a===Object(a)?Object.isFrozen(a):!0;this.assert(h,"expected #{this} to be frozen","expected #{this} to not be frozen")}),t.addProperty("finite",function(a){var h=e(this,"object");this.assert(typeof h=="number"&&isFinite(h),"expected #{this} to be a finite number","expected #{this} to not be a finite number")})}});var Xn=N((Ci,Qn)=>{Qn.exports=function(s,o){s.expect=function(t,c){return new s.Assertion(t,c)},s.expect.fail=function(t,c,e,n){throw arguments.length<2&&(e=t,t=void 0),e=e||"expect.fail()",new s.AssertionError(e,{actual:t,expected:c,operator:n},s.expect.fail)}}});var Hn=N((zi,Yn)=>{Yn.exports=function(s,o){var t=s.Assertion;function c(){function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||typeof Symbol=="function"&&this instanceof Symbol||typeof BigInt=="function"&&this instanceof BigInt?new t(this.valueOf(),null,e):new t(this,null,e)}function n(i){Object.defineProperty(this,"should",{value:i,enumerable:!0,configurable:!0,writable:!0})}Object.defineProperty(Object.prototype,"should",{set:n,get:e,configurable:!0});var r={};return r.fail=function(i,l,v,E){throw arguments.length<2&&(v=i,i=void 0),v=v||"should.fail()",new s.AssertionError(v,{actual:i,expected:l,operator:E},r.fail)},r.equal=function(i,l,v){new t(i,v).to.equal(l)},r.Throw=function(i,l,v,E){new t(i,E).to.Throw(l,v)},r.exist=function(i,l){new t(i,l).to.exist},r.not={},r.not.equal=function(i,l,v){new t(i,v).to.not.equal(l)},r.not.Throw=function(i,l,v,E){new t(i,E).to.not.Throw(l,v)},r.not.exist=function(i,l){new t(i,l).to.not.exist},r.throw=r.Throw,r.not.throw=r.not.Throw,r}s.should=c,s.Should=c}});var tr=N((Bi,er)=>{er.exports=function(s,o){var t=s.Assertion,c=o.flag;var e=s.assert=function(n,r){var i=new t(null,null,s.assert,!0);i.assert(n,r,"[ negation message unavailable ]")};e.fail=function(n,r,i,l){throw arguments.length<2&&(i=n,n=void 0),i=i||"assert.fail()",new s.AssertionError(i,{actual:n,expected:r,operator:l},e.fail)},e.isOk=function(n,r){new t(n,r,e.isOk,!0).is.ok},e.isNotOk=function(n,r){new t(n,r,e.isNotOk,!0).is.not.ok},e.equal=function(n,r,i){var l=new t(n,i,e.equal,!0);l.assert(r==c(l,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",r,n,!0)},e.notEqual=function(n,r,i){var l=new t(n,i,e.notEqual,!0);l.assert(r!=c(l,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",r,n,!0)},e.strictEqual=function(n,r,i){new t(n,i,e.strictEqual,!0).to.equal(r)},e.notStrictEqual=function(n,r,i){new t(n,i,e.notStrictEqual,!0).to.not.equal(r)},e.deepEqual=e.deepStrictEqual=function(n,r,i){new t(n,i,e.deepEqual,!0).to.eql(r)},e.notDeepEqual=function(n,r,i){new t(n,i,e.notDeepEqual,!0).to.not.eql(r)},e.isAbove=function(n,r,i){new t(n,i,e.isAbove,!0).to.be.above(r)},e.isAtLeast=function(n,r,i){new t(n,i,e.isAtLeast,!0).to.be.least(r)},e.isBelow=function(n,r,i){new t(n,i,e.isBelow,!0).to.be.below(r)},e.isAtMost=function(n,r,i){new t(n,i,e.isAtMost,!0).to.be.most(r)},e.isTrue=function(n,r){new t(n,r,e.isTrue,!0).is.true},e.isNotTrue=function(n,r){new t(n,r,e.isNotTrue,!0).to.not.equal(!0)},e.isFalse=function(n,r){new t(n,r,e.isFalse,!0).is.false},e.isNotFalse=function(n,r){new t(n,r,e.isNotFalse,!0).to.not.equal(!1)},e.isNull=function(n,r){new t(n,r,e.isNull,!0).to.equal(null)},e.isNotNull=function(n,r){new t(n,r,e.isNotNull,!0).to.not.equal(null)},e.isNaN=function(n,r){new t(n,r,e.isNaN,!0).to.be.NaN},e.isNotNaN=function(n,r){new t(n,r,e.isNotNaN,!0).not.to.be.NaN},e.exists=function(n,r){new t(n,r,e.exists,!0).to.exist},e.notExists=function(n,r){new t(n,r,e.notExists,!0).to.not.exist},e.isUndefined=function(n,r){new t(n,r,e.isUndefined,!0).to.equal(void 0)},e.isDefined=function(n,r){new t(n,r,e.isDefined,!0).to.not.equal(void 0)},e.isFunction=function(n,r){new t(n,r,e.isFunction,!0).to.be.a("function")},e.isNotFunction=function(n,r){new t(n,r,e.isNotFunction,!0).to.not.be.a("function")},e.isObject=function(n,r){new t(n,r,e.isObject,!0).to.be.a("object")},e.isNotObject=function(n,r){new t(n,r,e.isNotObject,!0).to.not.be.a("object")},e.isArray=function(n,r){new t(n,r,e.isArray,!0).to.be.an("array")},e.isNotArray=function(n,r){new t(n,r,e.isNotArray,!0).to.not.be.an("array")},e.isString=function(n,r){new t(n,r,e.isString,!0).to.be.a("string")},e.isNotString=function(n,r){new t(n,r,e.isNotString,!0).to.not.be.a("string")},e.isNumber=function(n,r){new t(n,r,e.isNumber,!0).to.be.a("number")},e.isNotNumber=function(n,r){new t(n,r,e.isNotNumber,!0).to.not.be.a("number")},e.isFinite=function(n,r){new t(n,r,e.isFinite,!0).to.be.finite},e.isBoolean=function(n,r){new t(n,r,e.isBoolean,!0).to.be.a("boolean")},e.isNotBoolean=function(n,r){new t(n,r,e.isNotBoolean,!0).to.not.be.a("boolean")},e.typeOf=function(n,r,i){new t(n,i,e.typeOf,!0).to.be.a(r)},e.notTypeOf=function(n,r,i){new t(n,i,e.notTypeOf,!0).to.not.be.a(r)},e.instanceOf=function(n,r,i){new t(n,i,e.instanceOf,!0).to.be.instanceOf(r)},e.notInstanceOf=function(n,r,i){new t(n,i,e.notInstanceOf,!0).to.not.be.instanceOf(r)},e.include=function(n,r,i){new t(n,i,e.include,!0).include(r)},e.notInclude=function(n,r,i){new t(n,i,e.notInclude,!0).not.include(r)},e.deepInclude=function(n,r,i){new t(n,i,e.deepInclude,!0).deep.include(r)},e.notDeepInclude=function(n,r,i){new t(n,i,e.notDeepInclude,!0).not.deep.include(r)},e.nestedInclude=function(n,r,i){new t(n,i,e.nestedInclude,!0).nested.include(r)},e.notNestedInclude=function(n,r,i){new t(n,i,e.notNestedInclude,!0).not.nested.include(r)},e.deepNestedInclude=function(n,r,i){new t(n,i,e.deepNestedInclude,!0).deep.nested.include(r)},e.notDeepNestedInclude=function(n,r,i){new t(n,i,e.notDeepNestedInclude,!0).not.deep.nested.include(r)},e.ownInclude=function(n,r,i){new t(n,i,e.ownInclude,!0).own.include(r)},e.notOwnInclude=function(n,r,i){new t(n,i,e.notOwnInclude,!0).not.own.include(r)},e.deepOwnInclude=function(n,r,i){new t(n,i,e.deepOwnInclude,!0).deep.own.include(r)},e.notDeepOwnInclude=function(n,r,i){new t(n,i,e.notDeepOwnInclude,!0).not.deep.own.include(r)},e.match=function(n,r,i){new t(n,i,e.match,!0).to.match(r)},e.notMatch=function(n,r,i){new t(n,i,e.notMatch,!0).to.not.match(r)},e.property=function(n,r,i){new t(n,i,e.property,!0).to.have.property(r)},e.notProperty=function(n,r,i){new t(n,i,e.notProperty,!0).to.not.have.property(r)},e.propertyVal=function(n,r,i,l){new t(n,l,e.propertyVal,!0).to.have.property(r,i)},e.notPropertyVal=function(n,r,i,l){new t(n,l,e.notPropertyVal,!0).to.not.have.property(r,i)},e.deepPropertyVal=function(n,r,i,l){new t(n,l,e.deepPropertyVal,!0).to.have.deep.property(r,i)},e.notDeepPropertyVal=function(n,r,i,l){new t(n,l,e.notDeepPropertyVal,!0).to.not.have.deep.property(r,i)},e.ownProperty=function(n,r,i){new t(n,i,e.ownProperty,!0).to.have.own.property(r)},e.notOwnProperty=function(n,r,i){new t(n,i,e.notOwnProperty,!0).to.not.have.own.property(r)},e.ownPropertyVal=function(n,r,i,l){new t(n,l,e.ownPropertyVal,!0).to.have.own.property(r,i)},e.notOwnPropertyVal=function(n,r,i,l){new t(n,l,e.notOwnPropertyVal,!0).to.not.have.own.property(r,i)},e.deepOwnPropertyVal=function(n,r,i,l){new t(n,l,e.deepOwnPropertyVal,!0).to.have.deep.own.property(r,i)},e.notDeepOwnPropertyVal=function(n,r,i,l){new t(n,l,e.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(r,i)},e.nestedProperty=function(n,r,i){new t(n,i,e.nestedProperty,!0).to.have.nested.property(r)},e.notNestedProperty=function(n,r,i){new t(n,i,e.notNestedProperty,!0).to.not.have.nested.property(r)},e.nestedPropertyVal=function(n,r,i,l){new t(n,l,e.nestedPropertyVal,!0).to.have.nested.property(r,i)},e.notNestedPropertyVal=function(n,r,i,l){new t(n,l,e.notNestedPropertyVal,!0).to.not.have.nested.property(r,i)},e.deepNestedPropertyVal=function(n,r,i,l){new t(n,l,e.deepNestedPropertyVal,!0).to.have.deep.nested.property(r,i)},e.notDeepNestedPropertyVal=function(n,r,i,l){new t(n,l,e.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(r,i)},e.lengthOf=function(n,r,i){new t(n,i,e.lengthOf,!0).to.have.lengthOf(r)},e.hasAnyKeys=function(n,r,i){new t(n,i,e.hasAnyKeys,!0).to.have.any.keys(r)},e.hasAllKeys=function(n,r,i){new t(n,i,e.hasAllKeys,!0).to.have.all.keys(r)},e.containsAllKeys=function(n,r,i){new t(n,i,e.containsAllKeys,!0).to.contain.all.keys(r)},e.doesNotHaveAnyKeys=function(n,r,i){new t(n,i,e.doesNotHaveAnyKeys,!0).to.not.have.any.keys(r)},e.doesNotHaveAllKeys=function(n,r,i){new t(n,i,e.doesNotHaveAllKeys,!0).to.not.have.all.keys(r)},e.hasAnyDeepKeys=function(n,r,i){new t(n,i,e.hasAnyDeepKeys,!0).to.have.any.deep.keys(r)},e.hasAllDeepKeys=function(n,r,i){new t(n,i,e.hasAllDeepKeys,!0).to.have.all.deep.keys(r)},e.containsAllDeepKeys=function(n,r,i){new t(n,i,e.containsAllDeepKeys,!0).to.contain.all.deep.keys(r)},e.doesNotHaveAnyDeepKeys=function(n,r,i){new t(n,i,e.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(r)},e.doesNotHaveAllDeepKeys=function(n,r,i){new t(n,i,e.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(r)},e.throws=function(n,r,i,l){(typeof r=="string"||r instanceof RegExp)&&(i=r,r=null);var v=new t(n,l,e.throws,!0).to.throw(r,i);return c(v,"object")},e.doesNotThrow=function(n,r,i,l){(typeof r=="string"||r instanceof RegExp)&&(i=r,r=null),new t(n,l,e.doesNotThrow,!0).to.not.throw(r,i)},e.operator=function(n,r,i,l){var v;switch(r){case"==":v=n==i;break;case"===":v=n===i;break;case">":v=n>i;break;case">=":v=n>=i;break;case"<":v=n{var nr=[];J.version="4.3.8";J.AssertionError=Ye();var rr=Un();J.use=function(s){return~nr.indexOf(s)||(s(J,rr),nr.push(s)),J};J.util=rr;var Co=fe();J.config=Co;var zo=$n();J.use(zo);var Bo=Zn();J.use(Bo);var Fo=Xn();J.use(Fo);var Vo=Hn();J.use(Vo);var Ro=tr();J.use(Ro)});var ir=N((Vi,or)=>{or.exports=se()});var Yo={};Tr(Yo,{default:()=>Qo,describe:()=>yr,expect:()=>Xo});module.exports=Dr(Yo);var Y=vt(ir(),1),Ri=Y.default.expect,Li=Y.default.version,Ki=Y.default.Assertion,Gi=Y.default.AssertionError,_i=Y.default.util,Ui=Y.default.config,Wi=Y.default.use,$i=Y.default.should,Ji=Y.default.assert,Zi=Y.default.core,ee=Y.default;var ur=require("k6"),cr=vt(require("k6/execution"));var ae=(s="")=>new RegExp(`#{${s}}`,"g");var sr=s=>typeof s=="function";var ar=(s="",o=250)=>s.length>o?`${s.substring(0,o)}...`:s;var lt=s=>C.util.objDisplay(s),je=s=>ar(s,C.config.truncateVariableThreshold);function Lo(s,o){let[t,c,e,n]=o,r=C.util.flag(s,"negate"),i=C.util.flag(s,"anonymizeMsgFunction"),l=r?e:c;return l=l.replace("but ",""),i&&(l=i(l)),sr(l)&&(l=l()),l=l||"",l=l.replace(ae("exp"),()=>je(lt(n))),l}function Ko(s,o="",t){let c=C.util.flag(s,"object"),e=C.util.getActual(s,t),n=C.util.flag(s,"message"),r=o.replace(ae("this"),()=>je(lt(c))).replace(ae("act"),()=>je(lt(e)));return n&&!C.config.aggregateChecks&&(r=n?n+": "+r:r),r}function Go(s,o=""){let t=C.util.flag(s,"message"),c=o.replace(ae("this"),()=>t||"${this}").replace(ae("act"),()=>"${actual}");return je(c)}function fr(){return function(s,o,t,c,e,n){n=!c&&!e;let r=this,i=[s,o,t,c,e,n],l=C.util.test(r,i),v=C.util.getActual(r,i),E=Lo(r,i),K=Ko(r,E,i),H=C.config.aggregateChecks?Go(r,E):K;if((0,ur.check)(null,{[H]:()=>l}),!l){let R=je(K),V=C.util.getOperator(r,i),te={actual:v,expected:c,showDiff:n,operator:V};throw C.config.logFailures&&console.warn(R),C.config.exitOnError&&cr.default.test.abort(R),new C.AssertionError(R,te,C.config.includeStack?C.assert:C.util.flag(r,"ssfi"))}}}var _o=(s="")=>s.replace(ae("this"),()=>"");function lr(s=_o){C.util.flag(this,"anonymizeMsgFunction",s)}function hr(){let s=C.util.flag(this,"object"),o=!0;try{s.json("__unlikelyidefintifier1")}catch{o=!1}C.assert(o,"has valid json body","does not have a valid json body",null,null)}ee.config.truncateVariableThreshold=100;ee.config.truncateMsgThreshold=300;ee.config.aggregateChecks=!0;ee.config.logFailures=!1;ee.config.exitOnError=!1;ee.Assertion.addMethod("anonymize",lr);ee.Assertion.addMethod("validJsonBody",hr);ee.Assertion.overwriteMethod("assert",fr);var C=ee;var gr=require("k6");var dr=require("k6"),pr=(s,o)=>{console.error(`Exception raised in test "${o}". Failing the test and continuing. +${s}`),(0,dr.check)(null,{[`Exception raised "${s}"`]:()=>!1})};function yr(s,o){let t=!0;return(0,gr.group)(s,()=>{try{o(),t=!0}catch(c){c.name!=="AssertionError"&&pr(c,s),t=!1}}),t}var Qo=C,Xo=C.expect; From f91b8accc0480a8e5d8fc5e4b6b3a2154b0644b6 Mon Sep 17 00:00:00 2001 From: Lukasz Gut Date: Thu, 5 Sep 2024 13:15:43 +0200 Subject: [PATCH 2/4] Add entry in supported.json and regenerate index.html --- lib/index.html | 2 +- supported.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/index.html b/lib/index.html index e2174f3..923e4a4 100644 --- a/lib/index.html +++ b/lib/index.html @@ -612,7 +612,7 @@

Available libs

https://k6.io/docs/javascript-api/jslib/expect k6chaijs - 4.3.4.0, 4.3.4.1, 4.3.4.2, 4.3.4.3, 4.5.0.0 + 4.3.4.0, 4.3.4.1, 4.3.4.2, 4.3.4.3, 4.5.0.0, 4.5.0.1 https://github.com/grafana/k6-jslib-k6chaijs k6chaijs-contracts diff --git a/supported.json b/supported.json index fc00a72..00563c4 100644 --- a/supported.json +++ b/supported.json @@ -41,7 +41,7 @@ "docs-url": "https://k6.io/docs/javascript-api/jslib/expect" }, "k6chaijs": { - "versions": ["4.3.4.0", "4.3.4.1", "4.3.4.2", "4.3.4.3", "4.5.0.0"], + "versions": ["4.3.4.0", "4.3.4.1", "4.3.4.2", "4.3.4.3", "4.5.0.0", "4.5.0.1"], "docs-url": "https://github.com/grafana/k6-jslib-k6chaijs" }, "k6chaijs-contracts": { From 2b9eae6e1f4966dc99de26f4aee710547d2eec44 Mon Sep 17 00:00:00 2001 From: Lukasz Gut Date: Thu, 5 Sep 2024 13:18:49 +0200 Subject: [PATCH 3/4] Add k6chaijs@4.5.0.1 test --- tests/k6chai.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/k6chai.js b/tests/k6chai.js index fe1633d..852f43e 100644 --- a/tests/k6chai.js +++ b/tests/k6chai.js @@ -2,6 +2,7 @@ import { expect as expect4340, describe as describe4340 } from '../lib/k6chaijs/ import { expect as expect4341, describe as describe4341 } from '../lib/k6chaijs/4.3.4.1/index.js' import { expect as expect4342, describe as describe4342 } from '../lib/k6chaijs/4.3.4.2/index.js' import { expect as expect4343, describe as describe4343 } from '../lib/k6chaijs/4.3.4.3/index.js' +import { expect as expect4501, describe as describe4501 } from '../lib/k6chaijs/4.5.0.1/index.js' export default function testk6chaijs() { const expected = 'k6chaijs' @@ -22,4 +23,8 @@ export default function testk6chaijs() { describe4343('k6chaijs v4.3.4.3 test', () => { expect4343(expected, alias).to.equal(expected) }) + + describe4501('k6chaijs v4.5.0.1 test', () => { + expect4501(expected, alias).to.equal(expected) + }) } From 32c36c2f5a91bb10817d9d77eba490d62ea79335 Mon Sep 17 00:00:00 2001 From: Lukasz Gut Date: Thu, 5 Sep 2024 14:46:35 +0200 Subject: [PATCH 4/4] Add missing test for k6chaijs@4.5.0.0 --- tests/k6chai.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/k6chai.js b/tests/k6chai.js index 852f43e..26f8ae9 100644 --- a/tests/k6chai.js +++ b/tests/k6chai.js @@ -2,6 +2,7 @@ import { expect as expect4340, describe as describe4340 } from '../lib/k6chaijs/ import { expect as expect4341, describe as describe4341 } from '../lib/k6chaijs/4.3.4.1/index.js' import { expect as expect4342, describe as describe4342 } from '../lib/k6chaijs/4.3.4.2/index.js' import { expect as expect4343, describe as describe4343 } from '../lib/k6chaijs/4.3.4.3/index.js' +import { expect as expect4500, describe as describe4500 } from '../lib/k6chaijs/4.5.0.0/index.js' import { expect as expect4501, describe as describe4501 } from '../lib/k6chaijs/4.5.0.1/index.js' export default function testk6chaijs() { @@ -24,6 +25,10 @@ export default function testk6chaijs() { expect4343(expected, alias).to.equal(expected) }) + describe4500('k6chaijs v4.5.0.0 test', () => { + expect4500(expected, alias).to.equal(expected) + }) + describe4501('k6chaijs v4.5.0.1 test', () => { expect4501(expected, alias).to.equal(expected) })