storybook-addon-vis 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ vitest-plugin.js +4 -0
- package/ vitest-setup.js +4 -0
- package/LICENSE +21 -0
- package/README.md +287 -0
- package/dist/index.d.ts +85 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/manager.js +5 -0
- package/dist/manager.js.map +1 -0
- package/dist/preset.cjs +7 -0
- package/dist/preset.cjs.map +1 -0
- package/dist/preview.d.ts +3 -0
- package/dist/preview.js +5 -0
- package/dist/preview.js.map +1 -0
- package/dist/vitest-plugin.js +8 -0
- package/dist/vitest-plugin.js.map +1 -0
- package/dist/vitest-setup.js +654 -0
- package/dist/vitest-setup.js.map +1 -0
- package/manager.js +1 -0
- package/package.json +137 -0
- package/preset.js +4 -0
- package/preview.js +1 -0
|
@@ -0,0 +1,654 @@
|
|
|
1
|
+
import { basename, dirname, relative, join, resolve } from 'pathe';
|
|
2
|
+
import { global as global$1 } from '@storybook/global';
|
|
3
|
+
import { once } from 'storybook/internal/client-logger';
|
|
4
|
+
import { FORCE_REMOUNT, STORY_RENDER_PHASE_CHANGED, SET_CURRENT_STORY } from 'storybook/internal/core-events';
|
|
5
|
+
import { addons } from 'storybook/internal/preview-api';
|
|
6
|
+
import xY from 'pixelmatch';
|
|
7
|
+
|
|
8
|
+
var zO=Object.create;var Uu=Object.defineProperty;var VO=Object.getOwnPropertyDescriptor;var HO=Object.getOwnPropertyNames;var WO=Object.getPrototypeOf,GO=Object.prototype.hasOwnProperty;var Ot=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Og=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ee=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),zu=(e,t)=>{for(var r in t)Uu(e,r,{get:t[r],enumerable:!0});},KO=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of HO(t))!GO.call(e,o)&&o!==r&&Uu(e,o,{get:()=>t[o],enumerable:!(n=VO(t,o))||n.enumerable});return e};var YO=(e,t,r)=>(r=e!=null?zO(WO(e)):{},KO(Uu(r,"default",{value:e,enumerable:!0}),e));var $g=Ee(()=>{});var Xf=Ee((nX,Dv)=>{Dv.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return !1;if(typeof Symbol.iterator=="symbol")return !0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return !1;var o=42;t[r]=o;for(r in t)return !1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return !1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return !1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,r);if(s.value!==o||s.enumerable!==!0)return !1}return !0};});var Ai=Ee((oX,Lv)=>{var aj=Xf();Lv.exports=function(){return aj()&&!!Symbol.toStringTag};});var Fv=Ee((iX,Bv)=>{Bv.exports=Error;});var zv=Ee((sX,Uv)=>{Uv.exports=EvalError;});var Hv=Ee((aX,Vv)=>{Vv.exports=RangeError;});var Gv=Ee((lX,Wv)=>{Wv.exports=ReferenceError;});var Qf=Ee((uX,Kv)=>{Kv.exports=SyntaxError;});var Pi=Ee((cX,Yv)=>{Yv.exports=TypeError;});var Xv=Ee((fX,Jv)=>{Jv.exports=URIError;});var e0=Ee((dX,Zv)=>{var Qv=typeof Symbol<"u"&&Symbol,lj=Xf();Zv.exports=function(){return typeof Qv!="function"||typeof Symbol!="function"||typeof Qv("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:lj()};});var n0=Ee((pX,r0)=>{var t0={foo:{}},uj=Object;r0.exports=function(){return {__proto__:t0}.foo===t0.foo&&!({__proto__:null}instanceof uj)};});var s0=Ee((hX,i0)=>{var cj="Function.prototype.bind called on incompatible ",fj=Object.prototype.toString,dj=Math.max,pj="[object Function]",o0=function(t,r){for(var n=[],o=0;o<t.length;o+=1)n[o]=t[o];for(var i=0;i<r.length;i+=1)n[i+t.length]=r[i];return n},hj=function(t,r){for(var n=[],o=r,i=0;o<t.length;o+=1,i+=1)n[i]=t[o];return n},mj=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};i0.exports=function(t){var r=this;if(typeof r!="function"||fj.apply(r)!==pj)throw new TypeError(cj+r);for(var n=hj(arguments,1),o,i=function(){if(this instanceof o){var u=r.apply(this,o0(n,arguments));return Object(u)===u?u:this}return r.apply(t,o0(n,arguments))},s=dj(0,r.length-n.length),a=[],l=0;l<s;l++)a[l]="$"+l;if(o=Function("binder","return function ("+mj(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var c=function(){};c.prototype=r.prototype,o.prototype=new c,c.prototype=null;}return o};});var ka=Ee((mX,a0)=>{var gj=s0();a0.exports=Function.prototype.bind||gj;});var u0=Ee((gX,l0)=>{var yj=Function.prototype.call,bj=Object.prototype.hasOwnProperty,vj=ka();l0.exports=vj.call(yj,bj);});var yo=Ee((yX,h0)=>{var we,wj=Fv(),Ej=zv(),_j=Hv(),Sj=Gv(),go=Qf(),mo=Pi(),Tj=Xv(),p0=Function,Zf=function(e){try{return p0('"use strict"; return ('+e+").constructor;")()}catch{}},Rn=Object.getOwnPropertyDescriptor;if(Rn)try{Rn({},"");}catch{Rn=null;}var ed=function(){throw new mo},Cj=Rn?function(){try{return arguments.callee,ed}catch{try{return Rn(arguments,"callee").get}catch{return ed}}}():ed,po=e0()(),xj=n0()(),st=Object.getPrototypeOf||(xj?function(e){return e.__proto__}:null),ho={},Aj=typeof Uint8Array>"u"||!st?we:st(Uint8Array),Mn={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?we:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?we:ArrayBuffer,"%ArrayIteratorPrototype%":po&&st?st([][Symbol.iterator]()):we,"%AsyncFromSyncIteratorPrototype%":we,"%AsyncFunction%":ho,"%AsyncGenerator%":ho,"%AsyncGeneratorFunction%":ho,"%AsyncIteratorPrototype%":ho,"%Atomics%":typeof Atomics>"u"?we:Atomics,"%BigInt%":typeof BigInt>"u"?we:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?we:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?we:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?we:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":wj,"%eval%":eval,"%EvalError%":Ej,"%Float32Array%":typeof Float32Array>"u"?we:Float32Array,"%Float64Array%":typeof Float64Array>"u"?we:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?we:FinalizationRegistry,"%Function%":p0,"%GeneratorFunction%":ho,"%Int8Array%":typeof Int8Array>"u"?we:Int8Array,"%Int16Array%":typeof Int16Array>"u"?we:Int16Array,"%Int32Array%":typeof Int32Array>"u"?we:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":po&&st?st(st([][Symbol.iterator]())):we,"%JSON%":typeof JSON=="object"?JSON:we,"%Map%":typeof Map>"u"?we:Map,"%MapIteratorPrototype%":typeof Map>"u"||!po||!st?we:st(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?we:Promise,"%Proxy%":typeof Proxy>"u"?we:Proxy,"%RangeError%":_j,"%ReferenceError%":Sj,"%Reflect%":typeof Reflect>"u"?we:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?we:Set,"%SetIteratorPrototype%":typeof Set>"u"||!po||!st?we:st(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?we:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":po&&st?st(""[Symbol.iterator]()):we,"%Symbol%":po?Symbol:we,"%SyntaxError%":go,"%ThrowTypeError%":Cj,"%TypedArray%":Aj,"%TypeError%":mo,"%Uint8Array%":typeof Uint8Array>"u"?we:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?we:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?we:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?we:Uint32Array,"%URIError%":Tj,"%WeakMap%":typeof WeakMap>"u"?we:WeakMap,"%WeakRef%":typeof WeakRef>"u"?we:WeakRef,"%WeakSet%":typeof WeakSet>"u"?we:WeakSet};if(st)try{null.error;}catch(e){c0=st(st(e)),Mn["%Error.prototype%"]=c0;}var c0,Pj=function e(t){var r;if(t==="%AsyncFunction%")r=Zf("async function () {}");else if(t==="%GeneratorFunction%")r=Zf("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Zf("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype);}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&st&&(r=st(o.prototype));}return Mn[t]=r,r},f0={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Oi=ka(),Da=u0(),Oj=Oi.call(Function.call,Array.prototype.concat),Rj=Oi.call(Function.apply,Array.prototype.splice),d0=Oi.call(Function.call,String.prototype.replace),La=Oi.call(Function.call,String.prototype.slice),Mj=Oi.call(Function.call,RegExp.prototype.exec),Ij=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Nj=/\\(\\)?/g,jj=function(t){var r=La(t,0,1),n=La(t,-1);if(r==="%"&&n!=="%")throw new go("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new go("invalid intrinsic syntax, expected opening `%`");var o=[];return d0(t,Ij,function(i,s,a,l){o[o.length]=a?d0(l,Nj,"$1"):s||i;}),o},qj=function(t,r){var n=t,o;if(Da(f0,n)&&(o=f0[n],n="%"+o[0]+"%"),Da(Mn,n)){var i=Mn[n];if(i===ho&&(i=Pj(n)),typeof i>"u"&&!r)throw new mo("intrinsic "+t+" exists, but is not available. Please file an issue!");return {alias:o,name:n,value:i}}throw new go("intrinsic "+t+" does not exist!")};h0.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new mo("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new mo('"allowMissing" argument must be a boolean');if(Mj(/^%?[^%]*%?$/,t)===null)throw new go("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=jj(t),o=n.length>0?n[0]:"",i=qj("%"+o+"%",r),s=i.name,a=i.value,l=!1,c=i.alias;c&&(o=c[0],Rj(n,Oj([0,1],c)));for(var u=1,f=!0;u<n.length;u+=1){var p=n[u],d=La(p,0,1),h=La(p,-1);if((d==='"'||d==="'"||d==="`"||h==='"'||h==="'"||h==="`")&&d!==h)throw new go("property names with quotes must have matching quotes");if((p==="constructor"||!f)&&(l=!0),o+="."+p,s="%"+o+"%",Da(Mn,s))a=Mn[s];else if(a!=null){if(!(p in a)){if(!r)throw new mo("base intrinsic for "+t+" exists, but the property is not available.");return}if(Rn&&u+1>=n.length){var m=Rn(a,p);f=!!m,f&&"get"in m&&!("originalValue"in m.get)?a=m.get:a=a[p];}else f=Da(a,p),a=a[p];f&&!l&&(Mn[s]=a);}}return a};});var Fa=Ee((bX,m0)=>{var $j=yo(),Ba=$j("%Object.defineProperty%",!0)||!1;if(Ba)try{Ba({},"a",{value:1});}catch{Ba=!1;}m0.exports=Ba;});var Ri=Ee((vX,g0)=>{var kj=yo(),Ua=kj("%Object.getOwnPropertyDescriptor%",!0);if(Ua)try{Ua([],"length");}catch{Ua=null;}g0.exports=Ua;});var w0=Ee((wX,v0)=>{var y0=Fa(),Dj=Qf(),bo=Pi(),b0=Ri();v0.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new bo("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new bo("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new bo("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new bo("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new bo("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new bo("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!b0&&b0(t,r);if(y0)y0(t,r,{configurable:s===null&&l?l.configurable:!s,enumerable:o===null&&l?l.enumerable:!o,value:n,writable:i===null&&l?l.writable:!i});else if(a||!o&&!i&&!s)t[r]=n;else throw new Dj("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")};});var S0=Ee((EX,_0)=>{var td=Fa(),E0=function(){return !!td};E0.hasArrayLengthDefineBug=function(){if(!td)return null;try{return td([],"length",{value:1}).length!==1}catch{return !0}};_0.exports=E0;});var P0=Ee((_X,A0)=>{var Lj=yo(),T0=w0(),Bj=S0()(),C0=Ri(),x0=Pi(),Fj=Lj("%Math.floor%");A0.exports=function(t,r){if(typeof t!="function")throw new x0("`fn` is not a function");if(typeof r!="number"||r<0||r>4294967295||Fj(r)!==r)throw new x0("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&C0){var s=C0(t,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(i=!1);}return (o||i||!n)&&(Bj?T0(t,"length",r,!0,!0):T0(t,"length",r)),t};});var j0=Ee((SX,za)=>{var rd=ka(),Va=yo(),Uj=P0(),zj=Pi(),M0=Va("%Function.prototype.apply%"),I0=Va("%Function.prototype.call%"),N0=Va("%Reflect.apply%",!0)||rd.call(I0,M0),O0=Fa(),Vj=Va("%Math.max%");za.exports=function(t){if(typeof t!="function")throw new zj("a function is required");var r=N0(rd,I0,arguments);return Uj(r,1+Vj(0,t.length-(arguments.length-1)),!0)};var R0=function(){return N0(rd,M0,arguments)};O0?O0(za.exports,"apply",{value:R0}):za.exports.apply=R0;});var Ha=Ee((TX,k0)=>{var q0=yo(),$0=j0(),Hj=$0(q0("String.prototype.indexOf"));k0.exports=function(t,r){var n=q0(t,!!r);return typeof n=="function"&&Hj(t,".prototype.")>-1?$0(n):n};});var B0=Ee((CX,L0)=>{var Wj=Ai()(),Gj=Ha(),nd=Gj("Object.prototype.toString"),Wa=function(t){return Wj&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:nd(t)==="[object Arguments]"},D0=function(t){return Wa(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&nd(t)!=="[object Array]"&&nd(t.callee)==="[object Function]"},Kj=function(){return Wa(arguments)}();Wa.isLegacyArguments=D0;L0.exports=Kj?Wa:D0;});var z0=Ee((xX,U0)=>{var Yj=Object.prototype.toString,Jj=Function.prototype.toString,Xj=/^\s*(?:function)?\*/,F0=Ai()(),od=Object.getPrototypeOf,Qj=function(){if(!F0)return !1;try{return Function("return function*() {}")()}catch{}},id;U0.exports=function(t){if(typeof t!="function")return !1;if(Xj.test(Jj.call(t)))return !0;if(!F0){var r=Yj.call(t);return r==="[object GeneratorFunction]"}if(!od)return !1;if(typeof id>"u"){var n=Qj();id=n?od(n):!1;}return od(t)===id};});var G0=Ee((AX,W0)=>{var H0=Function.prototype.toString,vo=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ad,Ga;if(typeof vo=="function"&&typeof Object.defineProperty=="function")try{ad=Object.defineProperty({},"length",{get:function(){throw Ga}}),Ga={},vo(function(){throw 42},null,ad);}catch(e){e!==Ga&&(vo=null);}else vo=null;var Zj=/^\s*class\b/,ld=function(t){try{var r=H0.call(t);return Zj.test(r)}catch{return !1}},sd=function(t){try{return ld(t)?!1:(H0.call(t),!0)}catch{return !1}},Ka=Object.prototype.toString,eq="[object Object]",tq="[object Function]",rq="[object GeneratorFunction]",nq="[object HTMLAllCollection]",oq="[object HTML document.all class]",iq="[object HTMLCollection]",sq=typeof Symbol=="function"&&!!Symbol.toStringTag,aq=!(0 in[,]),ud=function(){return !1};typeof document=="object"&&(V0=document.all,Ka.call(V0)===Ka.call(document.all)&&(ud=function(t){if((aq||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=Ka.call(t);return (r===nq||r===oq||r===iq||r===eq)&&t("")==null}catch{}return !1}));var V0;W0.exports=vo?function(t){if(ud(t))return !0;if(!t||typeof t!="function"&&typeof t!="object")return !1;try{vo(t,null,ad);}catch(r){if(r!==Ga)return !1}return !ld(t)&&sd(t)}:function(t){if(ud(t))return !0;if(!t||typeof t!="function"&&typeof t!="object")return !1;if(sq)return sd(t);if(ld(t))return !1;var r=Ka.call(t);return r!==tq&&r!==rq&&!/^\[object HTML/.test(r)?!1:sd(t)};});var cd=Ee((PX,Y0)=>{var lq=G0(),uq=Object.prototype.toString,K0=Object.prototype.hasOwnProperty,cq=function(t,r,n){for(var o=0,i=t.length;o<i;o++)K0.call(t,o)&&(n==null?r(t[o],o,t):r.call(n,t[o],o,t));},fq=function(t,r,n){for(var o=0,i=t.length;o<i;o++)n==null?r(t.charAt(o),o,t):r.call(n,t.charAt(o),o,t);},dq=function(t,r,n){for(var o in t)K0.call(t,o)&&(n==null?r(t[o],o,t):r.call(n,t[o],o,t));},pq=function(t,r,n){if(!lq(r))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=n),uq.call(t)==="[object Array]"?cq(t,r,o):typeof t=="string"?fq(t,r,o):dq(t,r,o);};Y0.exports=pq;});var dd=Ee((OX,J0)=>{var fd=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],hq=typeof globalThis>"u"?global:globalThis;J0.exports=function(){for(var t=[],r=0;r<fd.length;r++)typeof hq[fd[r]]=="function"&&(t[t.length]=fd[r]);return t};});var md=Ee((RX,tw)=>{var X0=cd(),mq=dd(),hd=Ha(),gq=hd("Object.prototype.toString"),Q0=Ai()(),Ya=Ri(),yq=typeof globalThis>"u"?global:globalThis,Z0=mq(),bq=hd("Array.prototype.indexOf",!0)||function(t,r){for(var n=0;n<t.length;n+=1)if(t[n]===r)return n;return -1},vq=hd("String.prototype.slice"),ew={},pd=Object.getPrototypeOf;Q0&&Ya&&pd&&X0(Z0,function(e){var t=new yq[e];if(Symbol.toStringTag in t){var r=pd(t),n=Ya(r,Symbol.toStringTag);if(!n){var o=pd(r);n=Ya(o,Symbol.toStringTag);}ew[e]=n.get;}});var wq=function(t){var r=!1;return X0(ew,function(n,o){if(!r)try{r=n.call(t)===o;}catch{}}),r};tw.exports=function(t){if(!t||typeof t!="object")return !1;if(!Q0||!(Symbol.toStringTag in t)){var r=vq(gq(t),8,-1);return bq(Z0,r)>-1}return Ya?wq(t):!1};});var lw=Ee((MX,aw)=>{var nw=cd(),Eq=dd(),ow=Ha(),gd=Ri(),_q=ow("Object.prototype.toString"),iw=Ai()(),rw=typeof globalThis>"u"?global:globalThis,Sq=Eq(),Tq=ow("String.prototype.slice"),sw={},yd=Object.getPrototypeOf;iw&&gd&&yd&&nw(Sq,function(e){if(typeof rw[e]=="function"){var t=new rw[e];if(Symbol.toStringTag in t){var r=yd(t),n=gd(r,Symbol.toStringTag);if(!n){var o=yd(r);n=gd(o,Symbol.toStringTag);}sw[e]=n.get;}}});var Cq=function(t){var r=!1;return nw(sw,function(n,o){if(!r)try{var i=n.call(t);i===o&&(r=i);}catch{}}),r},xq=md();aw.exports=function(t){return xq(t)?!iw||!(Symbol.toStringTag in t)?Tq(_q(t),8,-1):Cq(t):!1};});var _w=Ee(be=>{var Aq=B0(),Pq=z0(),tr=lw(),uw=md();function wo(e){return e.call.bind(e)}var cw=typeof BigInt<"u",fw=typeof Symbol<"u",Ut=wo(Object.prototype.toString),Oq=wo(Number.prototype.valueOf),Rq=wo(String.prototype.valueOf),Mq=wo(Boolean.prototype.valueOf);cw&&(dw=wo(BigInt.prototype.valueOf));var dw;fw&&(pw=wo(Symbol.prototype.valueOf));var pw;function Ii(e,t){if(typeof e!="object")return !1;try{return t(e),!0}catch{return !1}}be.isArgumentsObject=Aq;be.isGeneratorFunction=Pq;be.isTypedArray=uw;function Iq(e){return typeof Promise<"u"&&e instanceof Promise||e!==null&&typeof e=="object"&&typeof e.then=="function"&&typeof e.catch=="function"}be.isPromise=Iq;function Nq(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(e):uw(e)||mw(e)}be.isArrayBufferView=Nq;function jq(e){return tr(e)==="Uint8Array"}be.isUint8Array=jq;function qq(e){return tr(e)==="Uint8ClampedArray"}be.isUint8ClampedArray=qq;function $q(e){return tr(e)==="Uint16Array"}be.isUint16Array=$q;function kq(e){return tr(e)==="Uint32Array"}be.isUint32Array=kq;function Dq(e){return tr(e)==="Int8Array"}be.isInt8Array=Dq;function Lq(e){return tr(e)==="Int16Array"}be.isInt16Array=Lq;function Bq(e){return tr(e)==="Int32Array"}be.isInt32Array=Bq;function Fq(e){return tr(e)==="Float32Array"}be.isFloat32Array=Fq;function Uq(e){return tr(e)==="Float64Array"}be.isFloat64Array=Uq;function zq(e){return tr(e)==="BigInt64Array"}be.isBigInt64Array=zq;function Vq(e){return tr(e)==="BigUint64Array"}be.isBigUint64Array=Vq;function Ja(e){return Ut(e)==="[object Map]"}Ja.working=typeof Map<"u"&&Ja(new Map);function Hq(e){return typeof Map>"u"?!1:Ja.working?Ja(e):e instanceof Map}be.isMap=Hq;function Xa(e){return Ut(e)==="[object Set]"}Xa.working=typeof Set<"u"&&Xa(new Set);function Wq(e){return typeof Set>"u"?!1:Xa.working?Xa(e):e instanceof Set}be.isSet=Wq;function Qa(e){return Ut(e)==="[object WeakMap]"}Qa.working=typeof WeakMap<"u"&&Qa(new WeakMap);function Gq(e){return typeof WeakMap>"u"?!1:Qa.working?Qa(e):e instanceof WeakMap}be.isWeakMap=Gq;function vd(e){return Ut(e)==="[object WeakSet]"}vd.working=typeof WeakSet<"u"&&vd(new WeakSet);function Kq(e){return vd(e)}be.isWeakSet=Kq;function Za(e){return Ut(e)==="[object ArrayBuffer]"}Za.working=typeof ArrayBuffer<"u"&&Za(new ArrayBuffer);function hw(e){return typeof ArrayBuffer>"u"?!1:Za.working?Za(e):e instanceof ArrayBuffer}be.isArrayBuffer=hw;function el(e){return Ut(e)==="[object DataView]"}el.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&el(new DataView(new ArrayBuffer(1),0,1));function mw(e){return typeof DataView>"u"?!1:el.working?el(e):e instanceof DataView}be.isDataView=mw;var bd=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Mi(e){return Ut(e)==="[object SharedArrayBuffer]"}function gw(e){return typeof bd>"u"?!1:(typeof Mi.working>"u"&&(Mi.working=Mi(new bd)),Mi.working?Mi(e):e instanceof bd)}be.isSharedArrayBuffer=gw;function Yq(e){return Ut(e)==="[object AsyncFunction]"}be.isAsyncFunction=Yq;function Jq(e){return Ut(e)==="[object Map Iterator]"}be.isMapIterator=Jq;function Xq(e){return Ut(e)==="[object Set Iterator]"}be.isSetIterator=Xq;function Qq(e){return Ut(e)==="[object Generator]"}be.isGeneratorObject=Qq;function Zq(e){return Ut(e)==="[object WebAssembly.Module]"}be.isWebAssemblyCompiledModule=Zq;function yw(e){return Ii(e,Oq)}be.isNumberObject=yw;function bw(e){return Ii(e,Rq)}be.isStringObject=bw;function vw(e){return Ii(e,Mq)}be.isBooleanObject=vw;function ww(e){return cw&&Ii(e,dw)}be.isBigIntObject=ww;function Ew(e){return fw&&Ii(e,pw)}be.isSymbolObject=Ew;function e$(e){return yw(e)||bw(e)||vw(e)||ww(e)||Ew(e)}be.isBoxedPrimitive=e$;function t$(e){return typeof Uint8Array<"u"&&(hw(e)||gw(e))}be.isAnyArrayBuffer=t$;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(be,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}});});});var Tw=Ee((NX,Sw)=>{Sw.exports=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"};});var Cw=Ee((jX,wd)=>{typeof Object.create=="function"?wd.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}));}:wd.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t;}};});var Mw=Ee(ve=>{var xw=Object.getOwnPropertyDescriptors||function(t){for(var r=Object.keys(t),n={},o=0;o<r.length;o++)n[r[o]]=Object.getOwnPropertyDescriptor(t,r[o]);return n},r$=/%[sdj%]/g;ve.format=function(e){if(!al(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(Xr(arguments[r]));return t.join(" ")}for(var r=1,n=arguments,o=n.length,i=String(e).replace(r$,function(a){if(a==="%%")return "%";if(r>=o)return a;switch(a){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return "[Circular]"}default:return a}}),s=n[r];r<o;s=n[++r])sl(s)||!Eo(s)?i+=" "+s:i+=" "+Xr(s);return i};ve.deprecate=function(e,t){if(typeof process<"u"&&process.noDeprecation===!0)return e;if(typeof process>"u")return function(){return ve.deprecate(e,t).apply(this,arguments)};var r=!1;function n(){if(!r){if(process.throwDeprecation)throw new Error(t);process.traceDeprecation?console.trace(t):console.error(t),r=!0;}return e.apply(this,arguments)}return n};var tl={},Aw=/^$/;process.env.NODE_DEBUG&&(rl=process.env.NODE_DEBUG,rl=rl.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Aw=new RegExp("^"+rl+"$","i"));var rl;ve.debuglog=function(e){if(e=e.toUpperCase(),!tl[e])if(Aw.test(e)){var t=process.pid;tl[e]=function(){var r=ve.format.apply(ve,arguments);console.error("%s %d: %s",e,t,r);};}else tl[e]=function(){};return tl[e]};function Xr(e,t){var r={seen:[],stylize:o$};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Td(t)?r.showHidden=t:t&&ve._extend(r,t),Nn(r.showHidden)&&(r.showHidden=!1),Nn(r.depth)&&(r.depth=2),Nn(r.colors)&&(r.colors=!1),Nn(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=n$),ol(r,e,r.depth)}ve.inspect=Xr;Xr.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Xr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function n$(e,t){var r=Xr.styles[t];return r?"\x1B["+Xr.colors[r][0]+"m"+e+"\x1B["+Xr.colors[r][1]+"m":e}function o$(e,t){return e}function i$(e){var t={};return e.forEach(function(r,n){t[r]=!0;}),t}function ol(e,t,r){if(e.customInspect&&t&&nl(t.inspect)&&t.inspect!==ve.inspect&&!(t.constructor&&t.constructor.prototype===t)){var n=t.inspect(r,e);return al(n)||(n=ol(e,n,r)),n}var o=s$(e,t);if(o)return o;var i=Object.keys(t),s=i$(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),ji(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return Ed(t);if(i.length===0){if(nl(t)){var a=t.name?": "+t.name:"";return e.stylize("[Function"+a+"]","special")}if(Ni(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(il(t))return e.stylize(Date.prototype.toString.call(t),"date");if(ji(t))return Ed(t)}var l="",c=!1,u=["{","}"];if(Pw(t)&&(c=!0,u=["[","]"]),nl(t)){var f=t.name?": "+t.name:"";l=" [Function"+f+"]";}if(Ni(t)&&(l=" "+RegExp.prototype.toString.call(t)),il(t)&&(l=" "+Date.prototype.toUTCString.call(t)),ji(t)&&(l=" "+Ed(t)),i.length===0&&(!c||t.length==0))return u[0]+l+u[1];if(r<0)return Ni(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special");e.seen.push(t);var p;return c?p=a$(e,t,r,s,i):p=i.map(function(d){return Sd(e,t,r,s,d,c)}),e.seen.pop(),l$(p,l,u)}function s$(e,t){if(Nn(t))return e.stylize("undefined","undefined");if(al(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(Ow(t))return e.stylize(""+t,"number");if(Td(t))return e.stylize(""+t,"boolean");if(sl(t))return e.stylize("null","null")}function Ed(e){return "["+Error.prototype.toString.call(e)+"]"}function a$(e,t,r,n,o){for(var i=[],s=0,a=t.length;s<a;++s)Rw(t,String(s))?i.push(Sd(e,t,r,n,String(s),!0)):i.push("");return o.forEach(function(l){l.match(/^\d+$/)||i.push(Sd(e,t,r,n,l,!0));}),i}function Sd(e,t,r,n,o,i){var s,a,l;if(l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]},l.get?l.set?a=e.stylize("[Getter/Setter]","special"):a=e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),Rw(n,o)||(s="["+o+"]"),a||(e.seen.indexOf(l.value)<0?(sl(r)?a=ol(e,l.value,null):a=ol(e,l.value,r-1),a.indexOf(`
|
|
9
|
+
`)>-1&&(i?a=a.split(`
|
|
10
|
+
`).map(function(c){return " "+c}).join(`
|
|
11
|
+
`).slice(2):a=`
|
|
12
|
+
`+a.split(`
|
|
13
|
+
`).map(function(c){return " "+c}).join(`
|
|
14
|
+
`))):a=e.stylize("[Circular]","special")),Nn(s)){if(i&&o.match(/^\d+$/))return a;s=JSON.stringify(""+o),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"));}return s+": "+a}function l$(e,t,r){var n=0,o=e.reduce(function(i,s){return n++,s.indexOf(`
|
|
15
|
+
`)>=0&&n++,i+s.replace(/\u001b\[\d\d?m/g,"").length+1},0);return o>60?r[0]+(t===""?"":t+`
|
|
16
|
+
`)+" "+e.join(`,
|
|
17
|
+
`)+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}ve.types=_w();function Pw(e){return Array.isArray(e)}ve.isArray=Pw;function Td(e){return typeof e=="boolean"}ve.isBoolean=Td;function sl(e){return e===null}ve.isNull=sl;function u$(e){return e==null}ve.isNullOrUndefined=u$;function Ow(e){return typeof e=="number"}ve.isNumber=Ow;function al(e){return typeof e=="string"}ve.isString=al;function c$(e){return typeof e=="symbol"}ve.isSymbol=c$;function Nn(e){return e===void 0}ve.isUndefined=Nn;function Ni(e){return Eo(e)&&Cd(e)==="[object RegExp]"}ve.isRegExp=Ni;ve.types.isRegExp=Ni;function Eo(e){return typeof e=="object"&&e!==null}ve.isObject=Eo;function il(e){return Eo(e)&&Cd(e)==="[object Date]"}ve.isDate=il;ve.types.isDate=il;function ji(e){return Eo(e)&&(Cd(e)==="[object Error]"||e instanceof Error)}ve.isError=ji;ve.types.isNativeError=ji;function nl(e){return typeof e=="function"}ve.isFunction=nl;function f$(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}ve.isPrimitive=f$;ve.isBuffer=Tw();function Cd(e){return Object.prototype.toString.call(e)}function _d(e){return e<10?"0"+e.toString(10):e.toString(10)}var d$=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function p$(){var e=new Date,t=[_d(e.getHours()),_d(e.getMinutes()),_d(e.getSeconds())].join(":");return [e.getDate(),d$[e.getMonth()],t].join(" ")}ve.log=function(){console.log("%s - %s",p$(),ve.format.apply(ve,arguments));};ve.inherits=Cw();ve._extend=function(e,t){if(!t||!Eo(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};function Rw(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var In=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;ve.promisify=function(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');if(In&&t[In]){var r=t[In];if(typeof r!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,In,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var n,o,i=new Promise(function(l,c){n=l,o=c;}),s=[],a=0;a<arguments.length;a++)s.push(arguments[a]);s.push(function(l,c){l?o(l):n(c);});try{t.apply(this,s);}catch(l){o(l);}return i}return Object.setPrototypeOf(r,Object.getPrototypeOf(t)),In&&Object.defineProperty(r,In,{value:r,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(r,xw(t))};ve.promisify.custom=In;function h$(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r;}return t(e)}function m$(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function t(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var o=r.pop();if(typeof o!="function")throw new TypeError("The last argument must be of type Function");var i=this,s=function(){return o.apply(i,arguments)};e.apply(this,r).then(function(a){process.nextTick(s.bind(null,null,a));},function(a){process.nextTick(h$.bind(null,a,s));});}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,xw(e)),t}ve.callbackify=m$;});var Nw=Ee((ll,Iw)=>{(function(e,t){typeof ll=="object"&&typeof Iw<"u"?t(ll):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.sourcemapCodec={}));})(ll,function(e){let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=new Uint8Array(64),i=new Uint8Array(128);for(let w=0;w<n.length;w++){let I=n.charCodeAt(w);o[w]=I,i[I]=w;}function s(w,I){let C=0,N=0,L=0;do{let H=w.next();L=i[H],C|=(L&31)<<N,N+=5;}while(L&32);let q=C&1;return C>>>=1,q&&(C=-2147483648|-C),I+C}function a(w,I,C){let N=I-C;N=N<0?-N<<1|1:N<<1;do{let L=N&31;N>>>=5,N>0&&(L|=32),w.write(o[L]);}while(N>0);return I}function l(w,I){return w.pos>=I?!1:w.peek()!==44}let c=1024*16,u=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(w){return Buffer.from(w.buffer,w.byteOffset,w.byteLength).toString()}}:{decode(w){let I="";for(let C=0;C<w.length;C++)I+=String.fromCharCode(w[C]);return I}};class f{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(c);}write(I){let{buffer:C}=this;C[this.pos++]=I,this.pos===c&&(this.out+=u.decode(C),this.pos=0);}flush(){let{buffer:I,out:C,pos:N}=this;return N>0?C+u.decode(I.subarray(0,N)):C}}class p{constructor(I){this.pos=0,this.buffer=I;}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(I){let{buffer:C,pos:N}=this,L=C.indexOf(I,N);return L===-1?C.length:L}}let d=[];function h(w){let{length:I}=w,C=new p(w),N=[],L=[],q=0;for(;C.pos<I;C.pos++){q=s(C,q);let H=s(C,0);if(!l(C,I)){let ue=L.pop();ue[2]=q,ue[3]=H;continue}let z=s(C,0),ie=s(C,0)&1?[q,H,0,0,z,s(C,0)]:[q,H,0,0,z],ae=d;if(l(C,I)){ae=[];do{let ue=s(C,0);ae.push(ue);}while(l(C,I))}ie.vars=ae,N.push(ie),L.push(ie);}return N}function m(w){let I=new f;for(let C=0;C<w.length;)C=y(w,C,I,[0]);return I.flush()}function y(w,I,C,N){let L=w[I],{0:q,1:H,2:z,3:Z,4:Y,vars:ie}=L;I>0&&C.write(44),N[0]=a(C,q,N[0]),a(C,H,0),a(C,Y,0);let ae=L.length===6?1:0;a(C,ae,0),L.length===6&&a(C,L[5],0);for(let ue of ie)a(C,ue,0);for(I++;I<w.length;){let ue=w[I],{0:K,1:G}=ue;if(K>z||K===z&&G>=Z)break;I=y(w,I,C,N);}return C.write(44),N[0]=a(C,z,N[0]),a(C,Z,0),I}function g(w){let{length:I}=w,C=new p(w),N=[],L=[],q=0,H=0,z=0,Z=0,Y=0,ie=0,ae=0,ue=0;do{let K=C.indexOf(";"),G=0;for(;C.pos<K;C.pos++){if(G=s(C,G),!l(C,K)){let re=L.pop();re[2]=q,re[3]=G;continue}let J=s(C,0),ne=J&1,se=J&2,fe=J&4,Re=null,Fe=d,k;if(ne){let re=s(C,H);z=s(C,H===re?z:0),H=re,k=[q,G,0,0,re,z];}else k=[q,G,0,0];if(k.isScope=!!fe,se){let re=Z,X=Y;Z=s(C,Z);let ce=re===Z;Y=s(C,ce?Y:0),ie=s(C,ce&&X===Y?ie:0),Re=[Z,Y,ie];}if(k.callsite=Re,l(C,K)){Fe=[];do{ae=q,ue=G;let re=s(C,0),X;if(re<-1){X=[[s(C,0)]];for(let ce=-1;ce>re;ce--){let W=ae;ae=s(C,ae),ue=s(C,ae===W?ue:0);let Ae=s(C,0);X.push([Ae,ae,ue]);}}else X=[[re]];Fe.push(X);}while(l(C,K))}k.bindings=Fe,N.push(k),L.push(k);}q++,C.pos=K+1;}while(C.pos<I);return N}function b(w){if(w.length===0)return "";let I=new f;for(let C=0;C<w.length;)C=E(w,C,I,[0,0,0,0,0,0,0]);return I.flush()}function E(w,I,C,N){let L=w[I],{0:q,1:H,2:z,3:Z,isScope:Y,callsite:ie,bindings:ae}=L;N[0]<q?(_(C,N[0],q),N[0]=q,N[1]=0):I>0&&C.write(44),N[1]=a(C,L[1],N[1]);let ue=(L.length===6?1:0)|(ie?2:0)|(Y?4:0);if(a(C,ue,0),L.length===6){let{4:K,5:G}=L;K!==N[2]&&(N[3]=0),N[2]=a(C,K,N[2]),N[3]=a(C,G,N[3]);}if(ie){let{0:K,1:G,2:J}=L.callsite;K!==N[4]?(N[5]=0,N[6]=0):G!==N[5]&&(N[6]=0),N[4]=a(C,K,N[4]),N[5]=a(C,G,N[5]),N[6]=a(C,J,N[6]);}if(ae)for(let K of ae){K.length>1&&a(C,-K.length,0);let G=K[0][0];a(C,G,0);let J=q,ne=H;for(let se=1;se<K.length;se++){let fe=K[se];J=a(C,fe[1],J),ne=a(C,fe[2],ne),a(C,fe[0],0);}}for(I++;I<w.length;){let K=w[I],{0:G,1:J}=K;if(G>z||G===z&&J>=Z)break;I=E(w,I,C,N);}return N[0]<z?(_(C,N[0],z),N[0]=z,N[1]=0):C.write(44),N[1]=a(C,Z,N[1]),I}function _(w,I,C){do w.write(59);while(++I<C)}function T(w){let{length:I}=w,C=new p(w),N=[],L=0,q=0,H=0,z=0,Z=0;do{let Y=C.indexOf(";"),ie=[],ae=!0,ue=0;for(L=0;C.pos<Y;){let K;L=s(C,L),L<ue&&(ae=!1),ue=L,l(C,Y)?(q=s(C,q),H=s(C,H),z=s(C,z),l(C,Y)?(Z=s(C,Z),K=[L,q,H,z,Z]):K=[L,q,H,z]):K=[L],ie.push(K),C.pos++;}ae||x(ie),N.push(ie),C.pos=Y+1;}while(C.pos<=I);return N}function x(w){w.sort(S);}function S(w,I){return w[0]-I[0]}function v(w){let I=new f,C=0,N=0,L=0,q=0;for(let H=0;H<w.length;H++){let z=w[H];if(H>0&&I.write(59),z.length===0)continue;let Z=0;for(let Y=0;Y<z.length;Y++){let ie=z[Y];Y>0&&I.write(44),Z=a(I,ie[0],Z),ie.length!==1&&(C=a(I,ie[1],C),N=a(I,ie[2],N),L=a(I,ie[3],L),ie.length!==4&&(q=a(I,ie[4],q)));}}return I.flush()}e.decode=T,e.decodeGeneratedRanges=g,e.decodeOriginalScopes=h,e.encode=v,e.encodeGeneratedRanges=b,e.encodeOriginalScopes=m,Object.defineProperty(e,"__esModule",{value:!0});});});var Dw={};zu(Dw,{Bundle:()=>Ad,SourceMap:()=>$i,default:()=>ki});function g$(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?e=>globalThis.btoa(unescape(encodeURIComponent(e))):typeof Buffer=="function"?e=>Buffer.from(e,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}function b$(e){let t=e.split(`
|
|
18
|
+
`),r=t.filter(i=>/^\t+/.test(i)),n=t.filter(i=>/^ {2,}/.test(i));if(r.length===0&&n.length===0)return null;if(r.length>=n.length)return " ";let o=n.reduce((i,s)=>{let a=/^ +/.exec(s)[0].length;return Math.min(a,i)},1/0);return new Array(o+1).join(" ")}function $w(e,t){let r=e.split(/[/\\]/),n=t.split(/[/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length){let o=r.length;for(;o--;)r[o]="..";}return r.concat(n).join("/")}function kw(e){return v$.call(e)==="[object Object]"}function xd(e){let t=e.split(`
|
|
19
|
+
`),r=[];for(let n=0,o=0;n<t.length;n++)r.push(o),o+=t[n].length+1;return function(o){let i=0,s=r.length;for(;i<s;){let c=i+s>>1;o<r[c]?s=c:i=c+1;}let a=i-1,l=o-r[a];return {line:a,column:l}}}var qw,ul,cl,y$,$i,v$,w$,fl,qi,_o,ki,jw,Ad,Lw=Og(()=>{qw=YO(Nw()),ul=class e{constructor(t){this.bits=t instanceof e?t.bits.slice():[];}add(t){this.bits[t>>5]|=1<<(t&31);}has(t){return !!(this.bits[t>>5]&1<<(t&31))}},cl=class e{constructor(t,r,n){this.start=t,this.end=r,this.original=n,this.intro="",this.outro="",this.content=n,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null;}appendLeft(t){this.outro+=t;}appendRight(t){this.intro=this.intro+t;}clone(){let t=new e(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t}contains(t){return this.start<t&&t<this.end}eachNext(t){let r=this;for(;r;)t(r),r=r.next;}eachPrevious(t){let r=this;for(;r;)t(r),r=r.previous;}edit(t,r,n){return this.content=t,n||(this.intro="",this.outro=""),this.storeName=r,this.edited=!0,this}prependLeft(t){this.outro=t+this.outro;}prependRight(t){this.intro=t+this.intro;}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1);}split(t){let r=t-this.start,n=this.original.slice(0,r),o=this.original.slice(r);this.original=n;let i=new e(t,this.end,o);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",!1),this.content=""):this.content=n,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i}toString(){return this.intro+this.content+this.outro}trimEnd(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return !0;let r=this.content.replace(t,"");if(r.length)return r!==this.content&&(this.split(this.start+r.length).edit("",void 0,!0),this.edited&&this.edit(r,this.storeName,!0)),!0;if(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),this.intro.length)return !0}trimStart(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return !0;let r=this.content.replace(t,"");if(r.length){if(r!==this.content){let n=this.split(this.end-r.length);this.edited&&n.edit(r,this.storeName,!0),this.edit("",void 0,!0);}return !0}else if(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),this.outro.length)return !0}};y$=g$(),$i=class{constructor(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=(0, qw.encode)(t.mappings),typeof t.x_google_ignoreList<"u"&&(this.x_google_ignoreList=t.x_google_ignoreList);}toString(){return JSON.stringify(this)}toUrl(){return "data:application/json;charset=utf-8;base64,"+y$(this.toString())}};v$=Object.prototype.toString;w$=/\w/,fl=class{constructor(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null;}addEdit(t,r,n,o){if(r.length){let i=r.length-1,s=r.indexOf(`
|
|
20
|
+
`,0),a=-1;for(;s>=0&&i>s;){let c=[this.generatedCodeColumn,t,n.line,n.column];o>=0&&c.push(o),this.rawSegments.push(c),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,a=s,s=r.indexOf(`
|
|
21
|
+
`,s+1);}let l=[this.generatedCodeColumn,t,n.line,n.column];o>=0&&l.push(o),this.rawSegments.push(l),this.advance(r.slice(a+1));}else this.pending&&(this.rawSegments.push(this.pending),this.advance(r));this.pending=null;}addUneditedChunk(t,r,n,o,i){let s=r.start,a=!0,l=!1;for(;s<r.end;){if(this.hires||a||i.has(s)){let c=[this.generatedCodeColumn,t,o.line,o.column];this.hires==="boundary"?w$.test(n[s])?l||(this.rawSegments.push(c),l=!0):(this.rawSegments.push(c),l=!1):this.rawSegments.push(c);}n[s]===`
|
|
22
|
+
`?(o.line+=1,o.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,a=!0):(o.column+=1,this.generatedCodeColumn+=1,a=!1),s+=1;}this.pending=null;}advance(t){if(!t)return;let r=t.split(`
|
|
23
|
+
`);if(r.length>1){for(let n=0;n<r.length-1;n++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0;}this.generatedCodeColumn+=r[r.length-1].length;}},qi=`
|
|
24
|
+
`,_o={insertLeft:!1,insertRight:!1,storeName:!1},ki=class e{constructor(t,r={}){let n=new cl(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:n},lastChunk:{writable:!0,value:n},lastSearchedChunk:{writable:!0,value:n},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:r.filename},indentExclusionRanges:{writable:!0,value:r.indentExclusionRanges},sourcemapLocations:{writable:!0,value:new ul},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:void 0},ignoreList:{writable:!0,value:r.ignoreList}}),this.byStart[0]=n,this.byEnd[t.length]=n;}addSourcemapLocation(t){this.sourcemapLocations.add(t);}append(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.outro+=t,this}appendLeft(t,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byEnd[t];return n?n.appendLeft(r):this.intro+=r,this}appendRight(t,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byStart[t];return n?n.appendRight(r):this.outro+=r,this}clone(){let t=new e(this.original,{filename:this.filename}),r=this.firstChunk,n=t.firstChunk=t.lastSearchedChunk=r.clone();for(;r;){t.byStart[n.start]=n,t.byEnd[n.end]=n;let o=r.next,i=o&&o.clone();i&&(n.next=i,i.previous=n,n=i),r=o;}return t.lastChunk=n,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),t.sourcemapLocations=new ul(this.sourcemapLocations),t.intro=this.intro,t.outro=this.outro,t}generateDecodedMap(t){t=t||{};let r=0,n=Object.keys(this.storedNames),o=new fl(t.hires),i=xd(this.original);return this.intro&&o.advance(this.intro),this.firstChunk.eachNext(s=>{let a=i(s.start);s.intro.length&&o.advance(s.intro),s.edited?o.addEdit(r,s.content,a,s.storeName?n.indexOf(s.original):-1):o.addUneditedChunk(r,s,this.original,a,this.sourcemapLocations),s.outro.length&&o.advance(s.outro);}),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:[t.source?$w(t.file||"",t.source):t.file||""],sourcesContent:t.includeContent?[this.original]:void 0,names:n,mappings:o.raw,x_google_ignoreList:this.ignoreList?[r]:void 0}}generateMap(t){return new $i(this.generateDecodedMap(t))}_ensureindentStr(){this.indentStr===void 0&&(this.indentStr=b$(this.original));}_getRawIndentString(){return this._ensureindentStr(),this.indentStr}getIndentString(){return this._ensureindentStr(),this.indentStr===null?" ":this.indentStr}indent(t,r){let n=/^[^\r\n]/gm;if(kw(t)&&(r=t,t=void 0),t===void 0&&(this._ensureindentStr(),t=this.indentStr||" "),t==="")return this;r=r||{};let o={};r.exclude&&(typeof r.exclude[0]=="number"?[r.exclude]:r.exclude).forEach(u=>{for(let f=u[0];f<u[1];f+=1)o[f]=!0;});let i=r.indentStart!==!1,s=c=>i?`${t}${c}`:(i=!0,c);this.intro=this.intro.replace(n,s);let a=0,l=this.firstChunk;for(;l;){let c=l.end;if(l.edited)o[a]||(l.content=l.content.replace(n,s),l.content.length&&(i=l.content[l.content.length-1]===`
|
|
25
|
+
`));else for(a=l.start;a<c;){if(!o[a]){let u=this.original[a];u===`
|
|
26
|
+
`?i=!0:u!=="\r"&&i&&(i=!1,a===l.start||(this._splitChunk(l,a),l=l.next),l.prependRight(t));}a+=1;}a=l.end,l=l.next;}return this.outro=this.outro.replace(n,s),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(t,r){return _o.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),_o.insertLeft=!0),this.appendLeft(t,r)}insertRight(t,r){return _o.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),_o.insertRight=!0),this.prependRight(t,r)}move(t,r,n){if(n>=t&&n<=r)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(r),this._split(n);let o=this.byStart[t],i=this.byEnd[r],s=o.previous,a=i.next,l=this.byStart[n];if(!l&&i===this.lastChunk)return this;let c=l?l.previous:this.lastChunk;return s&&(s.next=a),a&&(a.previous=s),c&&(c.next=o),l&&(l.previous=i),o.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=o.previous,this.lastChunk.next=null),o.previous=c,i.next=l||null,c||(this.firstChunk=o),l||(this.lastChunk=i),this}overwrite(t,r,n,o){return o=o||{},this.update(t,r,n,{...o,overwrite:!o.contentOnly})}update(t,r,n,o){if(typeof n!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length;}if(r>this.original.length)throw new Error("end is out of bounds");if(t===r)throw new Error("Cannot overwrite a zero-length range \u2013 use appendLeft or prependRight instead");this._split(t),this._split(r),o===!0&&(_o.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),_o.storeName=!0),o={storeName:!0});let i=o!==void 0?o.storeName:!1,s=o!==void 0?o.overwrite:!1;if(i){let c=this.original.slice(t,r);Object.defineProperty(this.storedNames,c,{writable:!0,value:!0,enumerable:!0});}let a=this.byStart[t],l=this.byEnd[r];if(a){let c=a;for(;c!==l;){if(c.next!==this.byStart[c.end])throw new Error("Cannot overwrite across a split point");c=c.next,c.edit("",!1);}a.edit(n,i,!s);}else {let c=new cl(t,r,"").edit(n,i);l.next=c,c.previous=l;}return this}prepend(t){if(typeof t!="string")throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this}prependLeft(t,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byEnd[t];return n?n.prependLeft(r):this.intro=r+this.intro,this}prependRight(t,r){if(typeof r!="string")throw new TypeError("inserted content must be a string");this._split(t);let n=this.byStart[t];return n?n.prependRight(r):this.outro=r+this.outro,this}remove(t,r){if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length;}if(t===r)return this;if(t<0||r>this.original.length)throw new Error("Character is out of bounds");if(t>r)throw new Error("end must be greater than start");this._split(t),this._split(r);let n=this.byStart[t];for(;n;)n.intro="",n.outro="",n.edit(""),n=r>n.end?this.byStart[n.end]:null;return this}reset(t,r){if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length;}if(t===r)return this;if(t<0||r>this.original.length)throw new Error("Character is out of bounds");if(t>r)throw new Error("end must be greater than start");this._split(t),this._split(r);let n=this.byStart[t];for(;n;)n.reset(),n=r>n.end?this.byStart[n.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let t=this.outro.lastIndexOf(qi);if(t!==-1)return this.outro.substr(t+1);let r=this.outro,n=this.lastChunk;do{if(n.outro.length>0){if(t=n.outro.lastIndexOf(qi),t!==-1)return n.outro.substr(t+1)+r;r=n.outro+r;}if(n.content.length>0){if(t=n.content.lastIndexOf(qi),t!==-1)return n.content.substr(t+1)+r;r=n.content+r;}if(n.intro.length>0){if(t=n.intro.lastIndexOf(qi),t!==-1)return n.intro.substr(t+1)+r;r=n.intro+r;}}while(n=n.previous);return t=this.intro.lastIndexOf(qi),t!==-1?this.intro.substr(t+1)+r:this.intro+r}slice(t=0,r=this.original.length){if(this.original.length!==0){for(;t<0;)t+=this.original.length;for(;r<0;)r+=this.original.length;}let n="",o=this.firstChunk;for(;o&&(o.start>t||o.end<=t);){if(o.start<r&&o.end>=r)return n;o=o.next;}if(o&&o.edited&&o.start!==t)throw new Error(`Cannot use replaced character ${t} as slice start anchor.`);let i=o;for(;o;){o.intro&&(i!==o||o.start===t)&&(n+=o.intro);let s=o.start<r&&o.end>=r;if(s&&o.edited&&o.end!==r)throw new Error(`Cannot use replaced character ${r} as slice end anchor.`);let a=i===o?t-o.start:0,l=s?o.content.length+r-o.end:o.content.length;if(n+=o.content.slice(a,l),o.outro&&(!s||o.end===r)&&(n+=o.outro),s)break;o=o.next;}return n}snip(t,r){let n=this.clone();return n.remove(0,t),n.remove(r,n.original.length),n}_split(t){if(this.byStart[t]||this.byEnd[t])return;let r=this.lastSearchedChunk,n=t>r.end;for(;r;){if(r.contains(t))return this._splitChunk(r,t);r=n?this.byStart[r.end]:this.byEnd[r.start];}}_splitChunk(t,r){if(t.edited&&t.content.length){let o=xd(this.original)(r);throw new Error(`Cannot split a chunk that has already been edited (${o.line}:${o.column} \u2013 "${t.original}")`)}let n=t.split(r);return this.byEnd[r]=t,this.byStart[r]=n,this.byEnd[n.end]=n,t===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=t,!0}toString(){let t=this.intro,r=this.firstChunk;for(;r;)t+=r.toString(),r=r.next;return t+this.outro}isEmpty(){let t=this.firstChunk;do if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return !1;while(t=t.next);return !0}length(){let t=this.firstChunk,r=0;do r+=t.intro.length+t.content.length+t.outro.length;while(t=t.next);return r}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimEndAborted(t){let r=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(r,""),this.outro.length)return !0;let n=this.lastChunk;do{let o=n.end,i=n.trimEnd(r);if(n.end!==o&&(this.lastChunk===n&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return !0;n=n.previous;}while(n);return !1}trimEnd(t){return this.trimEndAborted(t),this}trimStartAborted(t){let r=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(r,""),this.intro.length)return !0;let n=this.firstChunk;do{let o=n.end,i=n.trimStart(r);if(n.end!==o&&(n===this.lastChunk&&(this.lastChunk=n.next),this.byEnd[n.end]=n,this.byStart[n.next.start]=n.next,this.byEnd[n.next.end]=n.next),i)return !0;n=n.next;}while(n);return !1}trimStart(t){return this.trimStartAborted(t),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(t,r){function n(i,s){return typeof r=="string"?r.replace(/\$(\$|&|\d+)/g,(a,l)=>l==="$"?"$":l==="&"?i[0]:+l<i.length?i[+l]:`$${l}`):r(...i,i.index,s,i.groups)}function o(i,s){let a,l=[];for(;a=i.exec(s);)l.push(a);return l}if(t.global)o(t,this.original).forEach(s=>{if(s.index!=null){let a=n(s,this.original);a!==s[0]&&this.overwrite(s.index,s.index+s[0].length,a);}});else {let i=this.original.match(t);if(i&&i.index!=null){let s=n(i,this.original);s!==i[0]&&this.overwrite(i.index,i.index+i[0].length,s);}}return this}_replaceString(t,r){let{original:n}=this,o=n.indexOf(t);return o!==-1&&this.overwrite(o,o+t.length,r),this}replace(t,r){return typeof t=="string"?this._replaceString(t,r):this._replaceRegexp(t,r)}_replaceAllString(t,r){let{original:n}=this,o=t.length;for(let i=n.indexOf(t);i!==-1;i=n.indexOf(t,i+o))n.slice(i,i+o)!==r&&this.overwrite(i,i+o,r);return this}replaceAll(t,r){if(typeof t=="string")return this._replaceAllString(t,r);if(!t.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(t,r)}},jw=Object.prototype.hasOwnProperty,Ad=class e{constructor(t={}){this.intro=t.intro||"",this.separator=t.separator!==void 0?t.separator:`
|
|
27
|
+
`,this.sources=[],this.uniqueSources=[],this.uniqueSourceIndexByFilename={};}addSource(t){if(t instanceof ki)return this.addSource({content:t,filename:t.filename,separator:this.separator});if(!kw(t)||!t.content)throw new Error("bundle.addSource() takes an object with a `content` property, which should be an instance of MagicString, and an optional `filename`");if(["filename","ignoreList","indentExclusionRanges","separator"].forEach(r=>{jw.call(t,r)||(t[r]=t.content[r]);}),t.separator===void 0&&(t.separator=this.separator),t.filename)if(!jw.call(this.uniqueSourceIndexByFilename,t.filename))this.uniqueSourceIndexByFilename[t.filename]=this.uniqueSources.length,this.uniqueSources.push({filename:t.filename,content:t.content.original});else {let r=this.uniqueSources[this.uniqueSourceIndexByFilename[t.filename]];if(t.content.original!==r.content)throw new Error(`Illegal source: same filename (${t.filename}), different contents`)}return this.sources.push(t),this}append(t,r){return this.addSource({content:new ki(t),separator:r&&r.separator||""}),this}clone(){let t=new e({intro:this.intro,separator:this.separator});return this.sources.forEach(r=>{t.addSource({filename:r.filename,content:r.content.clone(),separator:r.separator});}),t}generateDecodedMap(t={}){let r=[],n;this.sources.forEach(i=>{Object.keys(i.content.storedNames).forEach(s=>{~r.indexOf(s)||r.push(s);});});let o=new fl(t.hires);return this.intro&&o.advance(this.intro),this.sources.forEach((i,s)=>{s>0&&o.advance(this.separator);let a=i.filename?this.uniqueSourceIndexByFilename[i.filename]:-1,l=i.content,c=xd(l.original);l.intro&&o.advance(l.intro),l.firstChunk.eachNext(u=>{let f=c(u.start);u.intro.length&&o.advance(u.intro),i.filename?u.edited?o.addEdit(a,u.content,f,u.storeName?r.indexOf(u.original):-1):o.addUneditedChunk(a,u,l.original,f,l.sourcemapLocations):o.advance(u.content),u.outro.length&&o.advance(u.outro);}),l.outro&&o.advance(l.outro),i.ignoreList&&a!==-1&&(n===void 0&&(n=[]),n.push(a));}),{file:t.file?t.file.split(/[/\\]/).pop():void 0,sources:this.uniqueSources.map(i=>t.file?$w(t.file,i.filename):i.filename),sourcesContent:this.uniqueSources.map(i=>t.includeContent?i.content:null),names:r,mappings:o.raw,x_google_ignoreList:n}}generateMap(t){return new $i(this.generateDecodedMap(t))}getIndentString(){let t={};return this.sources.forEach(r=>{let n=r.content._getRawIndentString();n!==null&&(t[n]||(t[n]=0),t[n]+=1);}),Object.keys(t).sort((r,n)=>t[r]-t[n])[0]||" "}indent(t){if(arguments.length||(t=this.getIndentString()),t==="")return this;let r=!this.intro||this.intro.slice(-1)===`
|
|
28
|
+
`;return this.sources.forEach((n,o)=>{let i=n.separator!==void 0?n.separator:this.separator,s=r||o>0&&/\r?\n$/.test(i);n.content.indent(t,{exclude:n.indentExclusionRanges,indentStart:s}),r=n.content.lastChar()===`
|
|
29
|
+
`;}),this.intro&&(this.intro=t+this.intro.replace(/^[^\n]/gm,(n,o)=>o>0?t+n:n)),this}prepend(t){return this.intro=t+this.intro,this}toString(){let t=this.sources.map((r,n)=>{let o=r.separator!==void 0?r.separator:this.separator;return (n>0?o:"")+r.content.toString()}).join("");return this.intro+t}isEmpty(){return !(this.intro.length&&this.intro.trim()||this.sources.some(t=>!t.content.isEmpty()))}length(){return this.sources.reduce((t,r)=>t+r.content.length(),this.intro.length)}trimLines(){return this.trim("[\\r\\n]")}trim(t){return this.trimStart(t).trimEnd(t)}trimStart(t){let r=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(r,""),!this.intro){let n,o=0;do if(n=this.sources[o++],!n)break;while(!n.content.trimStartAborted(t))}return this}trimEnd(t){let r=new RegExp((t||"\\s")+"+$"),n,o=this.sources.length-1;do if(n=this.sources[o--],!n){this.intro=this.intro.replace(r,"");break}while(!n.content.trimEndAborted(t));return this}};});var jO={};zu(jO,{cdp:()=>_Y,commands:()=>SY,page:()=>vY,server:()=>wY,userEvent:()=>EY});var vY,wY,EY,_Y,SY,NO,qO=Og(()=>{vY=null,wY=null,EY=null,_Y=null,SY=null,NO=globalThis.__vitest_worker__?.ctx?.pool;throw new Error("@vitest/browser/context can be imported only inside the Browser Mode. "+(NO?`Your test is running in ${NO} pool. Make sure your regular tests are excluded from the "test.include" glob pattern.`:"Instead, it was imported outside of Vitest."))});function Vu(e){let{message:t="$$stack trace error",stackTraceLimit:r=1}=e||{},n=Error.stackTraceLimit,o=Error.prepareStackTrace;Error.stackTraceLimit=r,Error.prepareStackTrace=a=>a.stack;let s=new Error(t).stack||"";return Error.prepareStackTrace=o,Error.stackTraceLimit=n,s}function tt(e,t,r){let n=typeof e;if(!r.includes(n))throw new TypeError(`${t} value must be ${r.join(" or ")}, received "${n}"`)}function Hu(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}function Sr(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function JO(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function yn(e){return Object.prototype.toString.apply(e).slice(8,-1)}function XO(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r);}function qs(e){let t=new Set;return JO(e)?[]:(XO(e,t),Array.from(t))}var Rg={forceWritable:!1};function $s(e,t=Rg){return js(e,new WeakMap,t)}function js(e,t,r=Rg){let n,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:n=e.length}),t.set(e,o);n--;)o[n]=js(e[n],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let i=qs(e);for(let s of i){let a=Object.getOwnPropertyDescriptor(e,s);if(!a)continue;let l=js(e[s],t,r);r.forceWritable?Object.defineProperty(o,s,{enumerable:a.enumerable,configurable:!0,writable:!0,value:l}):"get"in a?Object.defineProperty(o,s,{...a,get(){return l}}):Object.defineProperty(o,s,{...a,value:l});}return o}return e}function Wu(){}function Gu(e,t,r=void 0){let n=t.replace(/\[(\d+)\]/g,".$1").split("."),o=e;for(let i of n)if(o=new Object(o)[i],o===void 0)return r;return o}function ks(){let e=null,t=null,r=new Promise((n,o)=>{e=n,t=o;});return r.resolve=e,r.reject=t,r}function Ku(e){if(!Number.isNaN(e))return !1;let t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31===1}var Mg={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"]},QO={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Tr="\u2026";function ZO(e,t){let r=Mg[QO[t]]||Mg[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function Ig({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!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:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(l),seen:a,inspect:u,stylize:c};return f.colors&&(f.stylize=ZO),f}function eR(e){return e>="\uD800"&&e<="\uDBFF"}function ft(e,t,r=Tr){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let i=t-n;return i>0&&eR(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}function rt(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return "";let i=t.truncate,s="",a="",l="";for(let c=0;c<o;c+=1){let u=c+1===e.length,f=c+2===e.length;l=`${Tr}(${e.length-c})`;let p=e[c];t.truncate=i-s.length-(u?0:n.length);let d=a||r(p,t)+(u?"":n),h=s.length+d.length,m=h+l.length;if(u&&h>i&&s.length+l.length<=i||!u&&!f&&m>i||(a=u?"":r(e[c+1],t)+(f?"":n),!u&&f&&m>i&&h+a.length>i))break;if(s+=d,!u&&!f&&h+a.length>=i){l=`${Tr}(${e.length-c-1})`;break}l="";}return `${s}${l}`}function tR(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function Cr([e,t],r){return r.truncate-=2,typeof e=="string"?e=tR(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function Yu(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return "[]";t.truncate-=4;let n=rt(e,t);t.truncate-=n.length;let o="";return r.length&&(o=rt(r.map(i=>[i,e[i]]),t,Cr)),`[ ${n}${o?`, ${o}`:""} ]`}var rR=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function Jt(e,t){let r=rR(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return `${r}[]`;let o="";for(let s=0;s<e.length;s++){let a=`${t.stylize(ft(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=a.length,e[s]!==e.length&&t.truncate<=3){o+=`${Tr}(${e.length-e[s]+1})`;break}o+=a;}let i="";return n.length&&(i=rt(n.map(s=>[s,e[s]]),t,Cr)),`${r}[ ${o}${i?`, ${i}`:""} ]`}function Ju(e,t){let r=e.toJSON();if(r===null)return "Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${ft(n[1],t.truncate-o.length-1)}`,"date")}function Ds(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${ft(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function nR([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function oR(e){let t=[];return e.forEach((r,n)=>{t.push([n,r]);}),t}function Xu(e,t){return e.size-1<=0?"Map{}":(t.truncate-=7,`Map{ ${rt(oR(e),t,nR)} }`)}var iR=Number.isNaN||(e=>e!==e);function Ls(e,t){return iR(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(ft(String(e),t.truncate),"number")}function Bs(e,t){let r=ft(e.toString(),t.truncate-1);return r!==Tr&&(r+="n"),t.stylize(r,"bigint")}function Qu(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${ft(o,n)}/${r}`,"regexp")}function sR(e){let t=[];return e.forEach(r=>{t.push(r);}),t}function Zu(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${rt(sR(e),t)} }`)}var Ng=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),aR={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},lR=16,uR=4;function cR(e){return aR[e]||`\\u${`0000${e.charCodeAt(0).toString(lR)}`.slice(-uR)}`}function Fs(e,t){return Ng.test(e)&&(e=e.replace(Ng,cR)),t.stylize(`'${ft(e,t.truncate-2)}'`,"string")}function Us(e){return "description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var jg=()=>"Promise{\u2026}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(jg=(n,o)=>{let[i,s]=e(n);return i===t?"Promise{<pending>}":`Promise${i===r?"!":""}{${o.inspect(s,o)}}`});}catch{}var qg=jg;function bn(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return "{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return "[Circular]";t.seen.push(e);let o=rt(r.map(a=>[a,e[a]]),t,Cr),i=rt(n.map(a=>[a,e[a]]),t,Cr);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}var ec=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function tc(e,t){let r="";return ec&&ec in e&&(r=e[ec]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${bn(e,t)}`}function rc(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${rt(e,t)} ]`)}var fR=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function nc(e,t){let r=Object.getOwnPropertyNames(e).filter(s=>fR.indexOf(s)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=ft(e.message,t.truncate):r.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=rt(r.map(s=>[s,e[s]]),t,Cr);return `${n}${o}${i?` { ${i} }`:""}`}function dR([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function zs(e,t){return rt(e,t,Vs,`
|
|
30
|
+
`)}function Vs(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),i=t.stylize(">","special"),s=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let a="";r.length>0&&(a+=" ",a+=rt(r.map(u=>[u,e.getAttribute(u)]),t,dR," ")),t.truncate-=a.length;let l=t.truncate,c=zs(e.children,t);return c&&c.length>l&&(c=`${Tr}(${e.children.length})`),`${o}${a}${i}${c}${s}`}var pR=typeof Symbol=="function"&&typeof Symbol.for=="function",oc=pR?Symbol.for("chai/inspect"):"@@chai/inspect",Xn=!1;try{let e=$g();Xn=e.inspect?e.inspect.custom:!1;}catch{Xn=!1;}var kg=new WeakMap,Dg={},Lg={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:Ls,Number:Ls,bigint:Bs,BigInt:Bs,string:Fs,String:Fs,function:Ds,Function:Ds,symbol:Us,Symbol:Us,Array:Yu,Date:Ju,Map:Xu,Set:Zu,RegExp:Qu,Promise:qg,WeakSet:(e,t)=>t.stylize("WeakSet{\u2026}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{\u2026}","special"),Arguments:rc,Int8Array:Jt,Uint8Array:Jt,Uint8ClampedArray:Jt,Int16Array:Jt,Uint16Array:Jt,Int32Array:Jt,Uint32Array:Jt,Float32Array:Jt,Float64Array:Jt,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:nc,HTMLCollection:zs,NodeList:zs},hR=(e,t,r)=>oc in e&&typeof e[oc]=="function"?e[oc](t):Xn&&Xn in e&&typeof e[Xn]=="function"?e[Xn](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&kg.has(e.constructor)?kg.get(e.constructor)(e,t):Dg[r]?Dg[r](e,t):"",mR=Object.prototype.toString;function Hs(e,t={}){let r=Ig(t,Hs),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=mR.call(e).slice(8,-1)),o in Lg)return Lg[o](e,r);if(n&&e){let s=hR(e,r,o);if(s)return typeof s=="string"?s:Hs(s,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?bn(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Vs(e,r):"constructor"in e?e.constructor!==Object?tc(e,r):bn(e,r):e===Object(e)?bn(e,r):r.stylize(String(e),o)}var yR={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]},bR=Object.entries(yR);function ic(e){return String(e)}ic.open="";ic.close="";function Bg(e=!1){let t=typeof process<"u"?process:void 0,r=t?.env||{},n=t?.argv||[];return !("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||t?.platform==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function Fg(e=!1){let t=Bg(e),r=(s,a,l,c)=>{let u="",f=0;do u+=s.substring(f,c)+l,f=c+a.length,c=s.indexOf(a,f);while(~c);return u+s.substring(f)},n=(s,a,l=s)=>{let c=u=>{let f=String(u),p=f.indexOf(a,s.length);return ~p?s+r(f,a,l,p)+a:s+f+a};return c.open=s,c.close=a,c},o={isColorSupported:t},i=s=>`\x1B[${s}m`;for(let[s,a]of bR)o[s]=t?n(i(a[0]),i(a[1]),a[2]):ic;return o}var Le=Fg(!1);function vR(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&n.push(o);return n}function Ys(e,t,r,n,o,i,s=": "){let a="",l=0,c=e.next();if(!c.done){a+=t.spacingOuter;let u=r+t.indent;for(;!c.done;){if(a+=u,l++===t.maxWidth){a+="\u2026";break}let f=i(c.value[0],t,u,n,o),p=i(c.value[1],t,u,n,o);a+=f+s+p,c=e.next(),c.done?t.min||(a+=","):a+=`,${t.spacingInner}`;}a+=t.spacingOuter+r;}return a}function cc(e,t,r,n,o,i){let s="",a=0,l=e.next();if(!l.done){s+=t.spacingOuter;let c=r+t.indent;for(;!l.done;){if(s+=c,a++===t.maxWidth){s+="\u2026";break}s+=i(l.value,t,c,n,o),l=e.next(),l.done?t.min||(s+=","):s+=`,${t.spacingInner}`;}s+=t.spacingOuter+r;}return s}function Gs(e,t,r,n,o,i){let s="";e=e instanceof ArrayBuffer?new DataView(e):e;let a=c=>c instanceof DataView,l=a(e)?e.byteLength:e.length;if(l>0){s+=t.spacingOuter;let c=r+t.indent;for(let u=0;u<l;u++){if(s+=c,u===t.maxWidth){s+="\u2026";break}(a(e)||u in e)&&(s+=i(a(e)?e.getInt8(u):e[u],t,c,n,o)),u<l-1?s+=`,${t.spacingInner}`:t.min||(s+=",");}s+=t.spacingOuter+r;}return s}function fc(e,t,r,n,o,i){let s="",a=vR(e,t.compareKeys);if(a.length>0){s+=t.spacingOuter;let l=r+t.indent;for(let c=0;c<a.length;c++){let u=a[c],f=i(u,t,l,n,o),p=i(e[u],t,l,n,o);s+=`${l+f}: ${p}`,c<a.length-1?s+=`,${t.spacingInner}`:t.min||(s+=",");}s+=t.spacingOuter+r;}return s}var wR=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Ws=" ",ER=(e,t,r,n,o,i)=>{let s=e.toString();if(s==="ArrayContaining"||s==="ArrayNotContaining")return ++n>t.maxDepth?`[${s}]`:`${s+Ws}[${Gs(e.sample,t,r,n,o,i)}]`;if(s==="ObjectContaining"||s==="ObjectNotContaining")return ++n>t.maxDepth?`[${s}]`:`${s+Ws}{${fc(e.sample,t,r,n,o,i)}}`;if(s==="StringMatching"||s==="StringNotMatching"||s==="StringContaining"||s==="StringNotContaining")return s+Ws+i(e.sample,t,r,n,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},_R=e=>e&&e.$$typeof===wR,SR={serialize:ER,test:_R},TR=" ",Qg=new Set(["DOMStringMap","NamedNodeMap"]),CR=/^(?:HTML\w*Collection|NodeList)$/;function xR(e){return Qg.has(e)||CR.test(e)}var AR=e=>e&&e.constructor&&!!e.constructor.name&&xR(e.constructor.name);function PR(e){return e.constructor.name==="NamedNodeMap"}var OR=(e,t,r,n,o,i)=>{let s=e.constructor.name;return ++n>t.maxDepth?`[${s}]`:(t.min?"":s+TR)+(Qg.has(s)?`{${fc(PR(e)?[...e].reduce((a,l)=>(a[l.name]=l.value,a),{}):{...e},t,r,n,o,i)}}`:`[${Gs([...e],t,r,n,o,i)}]`)},RR={serialize:OR,test:AR};function Zg(e){return e.replaceAll("<","<").replaceAll(">",">")}function dc(e,t,r,n,o,i,s){let a=n+r.indent,l=r.colors;return e.map(c=>{let u=t[c],f=s(u,r,a,o,i);return typeof u!="string"&&(f.includes(`
|
|
31
|
+
`)&&(f=r.spacingOuter+a+f+r.spacingOuter+n),f=`{${f}}`),`${r.spacingInner+n+l.prop.open+c+l.prop.close}=${l.value.open}${f}${l.value.close}`}).join("")}function pc(e,t,r,n,o,i){return e.map(s=>t.spacingOuter+r+(typeof s=="string"?ey(s,t):i(s,t,r,n,o))).join("")}function ey(e,t){let r=t.colors.content;return r.open+Zg(e)+r.close}function MR(e,t){let r=t.colors.comment;return `${r.open}<!--${Zg(e)}-->${r.close}`}function hc(e,t,r,n,o){let i=n.colors.tag;return `${i.open}<${e}${t&&i.close+t+n.spacingOuter+o+i.open}${r?`>${i.close}${r}${n.spacingOuter}${o}${i.open}</${e}`:`${t&&!n.min?"":" "}/`}>${i.close}`}function mc(e,t){let r=t.colors.tag;return `${r.open}<${e}${r.close} \u2026${r.open} />${r.close}`}var IR=1,ty=3,ry=8,ny=11,NR=/^(?:(?:HTML|SVG)\w*)?Element$/;function jR(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return !1}}function qR(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||jR(e);return r===IR&&(NR.test(t)||o)||r===ty&&t==="Text"||r===ry&&t==="Comment"||r===ny&&t==="DocumentFragment"}var $R=e=>{var t;return ((t=e?.constructor)==null?void 0:t.name)&&qR(e)};function kR(e){return e.nodeType===ty}function DR(e){return e.nodeType===ry}function sc(e){return e.nodeType===ny}var LR=(e,t,r,n,o,i)=>{if(kR(e))return ey(e.data,t);if(DR(e))return MR(e.data,t);let s=sc(e)?"DocumentFragment":e.tagName.toLowerCase();return ++n>t.maxDepth?mc(s,t):hc(s,dc(sc(e)?[]:Array.from(e.attributes,a=>a.name).sort(),sc(e)?{}:[...e.attributes].reduce((a,l)=>(a[l.name]=l.value,a),{}),t,r+t.indent,n,o,i),pc(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,i),t,r)},BR={serialize:LR,test:$R},FR="@@__IMMUTABLE_ITERABLE__@@",UR="@@__IMMUTABLE_LIST__@@",zR="@@__IMMUTABLE_KEYED__@@",VR="@@__IMMUTABLE_MAP__@@",Ug="@@__IMMUTABLE_ORDERED__@@",HR="@@__IMMUTABLE_RECORD__@@",WR="@@__IMMUTABLE_SEQ__@@",GR="@@__IMMUTABLE_SET__@@",KR="@@__IMMUTABLE_STACK__@@",Qn=e=>`Immutable.${e}`,Js=e=>`[${e}]`,ai=" ",zg="\u2026";function YR(e,t,r,n,o,i,s){return ++n>t.maxDepth?Js(Qn(s)):`${Qn(s)+ai}{${Ys(e.entries(),t,r,n,o,i)}}`}function JR(e){let t=0;return {next(){if(t<e._keys.length){let r=e._keys[t++];return {done:!1,value:[r,e.get(r)]}}return {done:!0,value:void 0}}}}function XR(e,t,r,n,o,i){let s=Qn(e._name||"Record");return ++n>t.maxDepth?Js(s):`${s+ai}{${Ys(JR(e),t,r,n,o,i)}}`}function QR(e,t,r,n,o,i){let s=Qn("Seq");return ++n>t.maxDepth?Js(s):e[zR]?`${s+ai}{${e._iter||e._object?Ys(e.entries(),t,r,n,o,i):zg}}`:`${s+ai}[${e._iter||e._array||e._collection||e._iterable?cc(e.values(),t,r,n,o,i):zg}]`}function ac(e,t,r,n,o,i,s){return ++n>t.maxDepth?Js(Qn(s)):`${Qn(s)+ai}[${cc(e.values(),t,r,n,o,i)}]`}var ZR=(e,t,r,n,o,i)=>e[VR]?YR(e,t,r,n,o,i,e[Ug]?"OrderedMap":"Map"):e[UR]?ac(e,t,r,n,o,i,"List"):e[GR]?ac(e,t,r,n,o,i,e[Ug]?"OrderedSet":"Set"):e[KR]?ac(e,t,r,n,o,i,"Stack"):e[WR]?QR(e,t,r,n,o,i):XR(e,t,r,n,o,i),eM=e=>e&&(e[FR]===!0||e[HR]===!0),tM={serialize:ZR,test:eM},lc={exports:{}},Me={};var Vg;function rM(){if(Vg)return Me;Vg=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function m(y){if(typeof y=="object"&&y!==null){var g=y.$$typeof;switch(g){case e:switch(y=y.type,y){case r:case o:case n:case c:case u:return y;default:switch(y=y&&y.$$typeof,y){case a:case s:case l:case p:case f:case i:return y;default:return g}}case t:return g}}}return Me.ContextConsumer=s,Me.ContextProvider=i,Me.Element=e,Me.ForwardRef=l,Me.Fragment=r,Me.Lazy=p,Me.Memo=f,Me.Portal=t,Me.Profiler=o,Me.StrictMode=n,Me.Suspense=c,Me.SuspenseList=u,Me.isAsyncMode=function(){return !1},Me.isConcurrentMode=function(){return !1},Me.isContextConsumer=function(y){return m(y)===s},Me.isContextProvider=function(y){return m(y)===i},Me.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Me.isForwardRef=function(y){return m(y)===l},Me.isFragment=function(y){return m(y)===r},Me.isLazy=function(y){return m(y)===p},Me.isMemo=function(y){return m(y)===f},Me.isPortal=function(y){return m(y)===t},Me.isProfiler=function(y){return m(y)===o},Me.isStrictMode=function(y){return m(y)===n},Me.isSuspense=function(y){return m(y)===c},Me.isSuspenseList=function(y){return m(y)===u},Me.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===o||y===n||y===c||y===u||y===d||typeof y=="object"&&y!==null&&(y.$$typeof===p||y.$$typeof===f||y.$$typeof===i||y.$$typeof===s||y.$$typeof===l||y.$$typeof===h||y.getModuleId!==void 0)},Me.typeOf=m,Me}var Hg;function nM(){return Hg||(Hg=1,lc.exports=rM()),lc.exports}var vn=nM();function oy(e,t=[]){if(Array.isArray(e))for(let r of e)oy(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function Wg(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(vn.isFragment(e))return "React.Fragment";if(vn.isSuspense(e))return "React.Suspense";if(typeof t=="object"&&t!==null){if(vn.isContextProvider(e))return "Context.Provider";if(vn.isContextConsumer(e))return "Context.Consumer";if(vn.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(vn.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return "UNDEFINED"}function oM(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var iM=(e,t,r,n,o,i)=>++n>t.maxDepth?mc(Wg(e),t):hc(Wg(e),dc(oM(e),e.props,t,r+t.indent,n,o,i),pc(oy(e.props.children),t,r+t.indent,n,o,i),t,r),sM=e=>e!=null&&vn.isElement(e),aM={serialize:iM,test:sM},lM=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function uM(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var cM=(e,t,r,n,o,i)=>++n>t.maxDepth?mc(e.type,t):hc(e.type,e.props?dc(uM(e),e.props,t,r+t.indent,n,o,i):"",e.children?pc(e.children,t,r+t.indent,n,o,i):"",t,r),fM=e=>e&&e.$$typeof===lM,dM={serialize:cM,test:fM},iy=Object.prototype.toString,pM=Date.prototype.toISOString,hM=Error.prototype.toString,Gg=RegExp.prototype.toString;function uc(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function mM(e){return typeof window<"u"&&e===window}var gM=/^Symbol\((.*)\)(.*)$/,yM=/\n/g,Ks=class extends Error{constructor(t,r){super(t),this.stack=r,this.name=this.constructor.name;}};function bM(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function vM(e){return Object.is(e,-0)?"-0":String(e)}function wM(e){return `${e}n`}function Kg(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function Yg(e){return String(e).replace(gM,"Symbol($1)")}function Jg(e){return `[${hM.call(e)}]`}function sy(e,t,r,n){if(e===!0||e===!1)return `${e}`;if(e===void 0)return "undefined";if(e===null)return "null";let o=typeof e;if(o==="number")return vM(e);if(o==="bigint")return wM(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return Kg(e,t);if(o==="symbol")return Yg(e);let i=iy.call(e);return i==="[object WeakMap]"?"WeakMap {}":i==="[object WeakSet]"?"WeakSet {}":i==="[object Function]"||i==="[object GeneratorFunction]"?Kg(e,t):i==="[object Symbol]"?Yg(e):i==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":pM.call(e):i==="[object Error]"?Jg(e):i==="[object RegExp]"?r?Gg.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Gg.call(e):e instanceof Error?Jg(e):null}function ay(e,t,r,n,o,i){if(o.includes(e))return "[Circular]";o=[...o],o.push(e);let s=++n>t.maxDepth,a=t.min;if(t.callToJSON&&!s&&e.toJSON&&typeof e.toJSON=="function"&&!i)return Wr(e.toJSON(),t,r,n,o,!0);let l=iy.call(e);return l==="[object Arguments]"?s?"[Arguments]":`${a?"":"Arguments "}[${Gs(e,t,r,n,o,Wr)}]`:bM(l)?s?`[${e.constructor.name}]`:`${a||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Gs(e,t,r,n,o,Wr)}]`:l==="[object Map]"?s?"[Map]":`Map {${Ys(e.entries(),t,r,n,o,Wr," => ")}}`:l==="[object Set]"?s?"[Set]":`Set {${cc(e.values(),t,r,n,o,Wr)}}`:s||mM(e)?`[${uc(e)}]`:`${a||!t.printBasicPrototype&&uc(e)==="Object"?"":`${uc(e)} `}{${fc(e,t,r,n,o,Wr)}}`}function EM(e){return e.serialize!=null}function ly(e,t,r,n,o,i){let s;try{s=EM(e)?e.serialize(t,r,n,o,i,Wr):e.print(t,a=>Wr(a,r,n,o,i),a=>{let l=n+r.indent;return l+a.replaceAll(yM,`
|
|
32
|
+
${l}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors);}catch(a){throw new Ks(a.message,a.stack)}if(typeof s!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof s}".`);return s}function uy(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new Ks(n.message,n.stack)}return null}function Wr(e,t,r,n,o,i){let s=uy(t.plugins,e);if(s!==null)return ly(s,e,t,r,n,o);let a=sy(e,t.printFunctionName,t.escapeRegex,t.escapeString);return a!==null?a:ay(e,t,r,n,o,i)}var gc={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},cy=Object.keys(gc),Xt={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:gc};function _M(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Xt,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function SM(){return cy.reduce((e,t)=>{let r=gc[t],n=r&&Le[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}function TM(){return cy.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function fy(e){return e?.printFunctionName??Xt.printFunctionName}function dy(e){return e?.escapeRegex??Xt.escapeRegex}function py(e){return e?.escapeString??Xt.escapeString}function Xg(e){return {callToJSON:e?.callToJSON??Xt.callToJSON,colors:e?.highlight?SM():TM(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:Xt.compareKeys,escapeRegex:dy(e),escapeString:py(e),indent:e?.min?"":CM(e?.indent??Xt.indent),maxDepth:e?.maxDepth??Xt.maxDepth,maxWidth:e?.maxWidth??Xt.maxWidth,min:e?.min??Xt.min,plugins:e?.plugins??Xt.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:fy(e),spacingInner:e?.min?" ":`
|
|
33
|
+
`,spacingOuter:e?.min?"":`
|
|
34
|
+
`}}function CM(e){return Array.from({length:e+1}).join(" ")}function Rt(e,t){if(t&&(_M(t),t.plugins)){let n=uy(t.plugins,e);if(n!==null)return ly(n,e,Xg(t),"",0,[])}let r=sy(e,fy(t),dy(t),py(t));return r!==null?r:ay(e,Xg(t),"",0,[])}var Zn={AsymmetricMatcher:SR,DOMCollection:RR,DOMElement:BR,Immutable:tM,ReactElement:aM,ReactTestComponent:dM};var{AsymmetricMatcher:xM,DOMCollection:AM,DOMElement:PM,Immutable:OM,ReactElement:RM,ReactTestComponent:MM}=Zn,hy=[MM,RM,PM,AM,OM,xM];function dt(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,i;try{i=Rt(e,{maxDepth:t,escapeString:!1,plugins:hy,...n});}catch{i=Rt(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:hy,...n});}return i.length>=o&&t>1?dt(e,Math.floor(t/2)):i}var IM=/%[sdjifoOc%]/g;function li(...e){if(typeof e[0]!="string"){let i=[];for(let s=0;s<e.length;s++)i.push(wn(e[s],{depth:0,colors:!1}));return i.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(IM,i=>{if(i==="%%")return "%";if(r>=t)return i;switch(i){case"%s":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}n`:typeof s=="number"&&s===0&&1/s<0?"-0":typeof s=="object"&&s!==null?wn(s,{depth:0,colors:!1}):String(s)}case"%d":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}n`:Number(s).toString()}case"%i":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}n`:Number.parseInt(String(s)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return wn(e[r++],{showHidden:!0,showProxy:!0});case"%O":return wn(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(s){let a=s.message;if(a.includes("circular structure")||a.includes("cyclic structures")||a.includes("cyclic object"))return "[Circular]";throw s}default:return i}});for(let i=e[r];r<t;i=e[++r])i===null||typeof i!="object"?o+=` ${i}`:o+=` ${wn(i)}`;return o}function wn(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Hs(e,t)}function yc(e,t={}){typeof t.truncate>"u"&&(t.truncate=40);let r=wn(e,t),n=Object.prototype.toString.call(e);if(t.truncate&&r.length>=t.truncate)if(n==="[object Function]"){let o=e;return o.name?`[Function: ${o.name}]`:"[Function]"}else {if(n==="[object Array]")return `[ Array(${e.length}) ]`;if(n==="[object Object]"){let o=Object.keys(e);return `{ Object (${o.length>2?`${o.splice(0,2).join(", ")}, ...`:o.join(", ")}) }`}else return r}return r}function my(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gy=Symbol("vitest:SAFE_TIMERS");function En(){let{setTimeout:e,setInterval:t,clearInterval:r,clearTimeout:n,setImmediate:o,clearImmediate:i}=globalThis[gy]||globalThis,{nextTick:s}=globalThis[gy]||globalThis.process||{nextTick:a=>a()};return {nextTick:s,setTimeout:e,setInterval:t,clearInterval:r,clearTimeout:n,setImmediate:o,clearImmediate:i}}var bc,yy;function NM(){if(yy)return bc;yy=1;var e,t,r,n,o,i,s,a,l,c,u,f,p,d,h,m,y,g,b;return p=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,f=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,h=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,u=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,m=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,b=/[\t\v\f\ufeff\p{Zs}]+/yu,a=/\r?\n|[\r\u2028\u2029]/y,l=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,d=/\/\/.*/y,r=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,n=/(['"])(?:(?!\1)[^])*(\1)?/y,o=/[^<>{}]+/y,g=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,y=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,i=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,s=/^(?:return|throw|yield)$/,c=RegExp(a.source),bc=function*(E,{jsx:_=!1}={}){var T,x,S,v,w,I,C,N,L,q,H,z,Z,Y;for({length:I}=E,v=0,w="",Y=[{tag:"JS"}],T=[],H=0,z=!1;v<I;){switch(N=Y[Y.length-1],N.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(E[v]==="/"&&(g.test(w)||i.test(w))&&(p.lastIndex=v,C=p.exec(E))){v=p.lastIndex,w=C[0],z=!0,yield {type:"RegularExpressionLiteral",value:C[0],closed:C[1]!==void 0&&C[1]!=="\\"};continue}if(f.lastIndex=v,C=f.exec(E)){switch(Z=C[0],L=f.lastIndex,q=Z,Z){case"(":w==="?NonExpressionParenKeyword"&&Y.push({tag:"JSNonExpressionParen",nesting:H}),H++,z=!1;break;case")":H--,z=!0,N.tag==="JSNonExpressionParen"&&H===N.nesting&&(Y.pop(),q="?NonExpressionParenEnd",z=!1);break;case"{":f.lastIndex=0,S=!y.test(w)&&(g.test(w)||i.test(w)),T.push(S),z=!1;break;case"}":switch(N.tag){case"InterpolationInTemplate":if(T.length===N.nesting){m.lastIndex=v,C=m.exec(E),v=m.lastIndex,w=C[0],C[1]==="${"?(w="?InterpolationInTemplate",z=!1,yield {type:"TemplateMiddle",value:C[0]}):(Y.pop(),z=!0,yield {type:"TemplateTail",value:C[0],closed:C[1]==="`"});continue}break;case"InterpolationInJSX":if(T.length===N.nesting){Y.pop(),v+=1,w="}",yield {type:"JSXPunctuator",value:"}"};continue}}z=T.pop(),q=z?"?ExpressionBraceEnd":"}";break;case"]":z=!0;break;case"++":case"--":q=z?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(_&&(g.test(w)||i.test(w))){Y.push({tag:"JSXTag"}),v+=1,w="<",yield {type:"JSXPunctuator",value:Z};continue}z=!1;break;default:z=!1;}v=L,w=q,yield {type:"Punctuator",value:Z};continue}if(e.lastIndex=v,C=e.exec(E)){switch(v=e.lastIndex,q=C[0],C[0]){case"for":case"if":case"while":case"with":w!=="."&&w!=="?."&&(q="?NonExpressionParenKeyword");}w=q,z=!i.test(C[0]),yield {type:C[1]==="#"?"PrivateIdentifier":"IdentifierName",value:C[0]};continue}if(h.lastIndex=v,C=h.exec(E)){v=h.lastIndex,w=C[0],z=!0,yield {type:"StringLiteral",value:C[0],closed:C[2]!==void 0};continue}if(u.lastIndex=v,C=u.exec(E)){v=u.lastIndex,w=C[0],z=!0,yield {type:"NumericLiteral",value:C[0]};continue}if(m.lastIndex=v,C=m.exec(E)){v=m.lastIndex,w=C[0],C[1]==="${"?(w="?InterpolationInTemplate",Y.push({tag:"InterpolationInTemplate",nesting:T.length}),z=!1,yield {type:"TemplateHead",value:C[0]}):(z=!0,yield {type:"NoSubstitutionTemplate",value:C[0],closed:C[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(r.lastIndex=v,C=r.exec(E)){switch(v=r.lastIndex,q=C[0],C[0]){case"<":Y.push({tag:"JSXTag"});break;case">":Y.pop(),w==="/"||N.tag==="JSXTagEnd"?(q="?JSX",z=!0):Y.push({tag:"JSXChildren"});break;case"{":Y.push({tag:"InterpolationInJSX",nesting:T.length}),q="?InterpolationInJSX",z=!1;break;case"/":w==="<"&&(Y.pop(),Y[Y.length-1].tag==="JSXChildren"&&Y.pop(),Y.push({tag:"JSXTagEnd"}));}w=q,yield {type:"JSXPunctuator",value:C[0]};continue}if(t.lastIndex=v,C=t.exec(E)){v=t.lastIndex,w=C[0],yield {type:"JSXIdentifier",value:C[0]};continue}if(n.lastIndex=v,C=n.exec(E)){v=n.lastIndex,w=C[0],yield {type:"JSXString",value:C[0],closed:C[2]!==void 0};continue}break;case"JSXChildren":if(o.lastIndex=v,C=o.exec(E)){v=o.lastIndex,w=C[0],yield {type:"JSXText",value:C[0]};continue}switch(E[v]){case"<":Y.push({tag:"JSXTag"}),v++,w="<",yield {type:"JSXPunctuator",value:"<"};continue;case"{":Y.push({tag:"InterpolationInJSX",nesting:T.length}),v++,w="?InterpolationInJSX",z=!1,yield {type:"JSXPunctuator",value:"{"};continue}}if(b.lastIndex=v,C=b.exec(E)){v=b.lastIndex,yield {type:"WhiteSpace",value:C[0]};continue}if(a.lastIndex=v,C=a.exec(E)){v=a.lastIndex,z=!1,s.test(w)&&(w="?NoLineTerminatorHere"),yield {type:"LineTerminatorSequence",value:C[0]};continue}if(l.lastIndex=v,C=l.exec(E)){v=l.lastIndex,c.test(C[0])&&(z=!1,s.test(w)&&(w="?NoLineTerminatorHere")),yield {type:"MultiLineComment",value:C[0],closed:C[1]!==void 0};continue}if(d.lastIndex=v,C=d.exec(E)){v=d.lastIndex,z=!1,yield {type:"SingleLineComment",value:C[0]};continue}x=String.fromCodePoint(E.codePointAt(v)),v+=x.length,w=x,z=!1,yield {type:N.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:x};}},bc}NM();var by={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(by.keyword);new Set(by.strict);function vy(e){if(e===void 0)return "undefined";if(e===null)return "null";if(Array.isArray(e))return "array";if(typeof e=="boolean")return "boolean";if(typeof e=="function")return "function";if(typeof e=="number")return "number";if(typeof e=="string")return "string";if(typeof e=="bigint")return "bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return "regexp";if(e.constructor===Map)return "map";if(e.constructor===Set)return "set";if(e.constructor===Date)return "date"}return "object"}else if(typeof e=="symbol")return "symbol";throw new Error(`value of unknown type: ${e}`)}var pt=-1,lt=1,Ye=0,Ue=class{0;1;constructor(t,r){this[0]=t,this[1]=r;}},jM=function(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),o=n,i=0;for(;r<o;)e.substring(i,o)===t.substring(i,o)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o},jy=function(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,n=Math.min(e.length,t.length),o=n,i=0;for(;r<o;)e.substring(e.length-o,e.length-i)===t.substring(t.length-o,t.length-i)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o},wy=function(e,t){let r=e.length,n=t.length;if(r===0||n===0)return 0;r>n?e=e.substring(r-n):r<n&&(t=t.substring(0,r));let o=Math.min(r,n);if(e===t)return o;let i=0,s=1;for(;;){let a=e.substring(o-s),l=t.indexOf(a);if(l===-1)return i;s+=l,(l===0||e.substring(o-s)===t.substring(0,s))&&(i=s,s++);}},qM=function(e){let t=!1,r=[],n=0,o=null,i=0,s=0,a=0,l=0,c=0;for(;i<e.length;)e[i][0]===Ye?(r[n++]=i,s=l,a=c,l=0,c=0,o=e[i][1]):(e[i][0]===lt?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(r[n-1],0,new Ue(pt,o)),e[r[n-1]+1][0]=lt,n--,n--,i=n>0?r[n-1]:-1,s=0,a=0,l=0,c=0,o=null,t=!0)),i++;for(t&&qy(e),DM(e),i=1;i<e.length;){if(e[i-1][0]===pt&&e[i][0]===lt){let u=e[i-1][1],f=e[i][1],p=wy(u,f),d=wy(f,u);p>=d?(p>=u.length/2||p>=f.length/2)&&(e.splice(i,0,new Ue(Ye,f.substring(0,p))),e[i-1][1]=u.substring(0,u.length-p),e[i+1][1]=f.substring(p),i++):(d>=u.length/2||d>=f.length/2)&&(e.splice(i,0,new Ue(Ye,u.substring(0,d))),e[i-1][0]=lt,e[i-1][1]=f.substring(0,f.length-d),e[i+1][0]=pt,e[i+1][1]=u.substring(d),i++),i++;}i++;}},Ey=/[^a-z0-9]/i,_y=/\s/,Sy=/[\r\n]/,$M=/\n\r?\n$/,kM=/^\r?\n\r?\n/;function DM(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===Ye&&e[t+1][0]===Ye){let r=e[t-1][1],n=e[t][1],o=e[t+1][1],i=jy(r,n);if(i){let u=n.substring(n.length-i);r=r.substring(0,r.length-i),n=u+n.substring(0,n.length-i),o=u+o;}let s=r,a=n,l=o,c=Xs(r,n)+Xs(n,o);for(;n.charAt(0)===o.charAt(0);){r+=n.charAt(0),n=n.substring(1)+o.charAt(0),o=o.substring(1);let u=Xs(r,n)+Xs(n,o);u>=c&&(c=u,s=r,a=n,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++;}}function qy(e){e.push(new Ue(Ye,""));let t=0,r=0,n=0,o="",i="",s;for(;t<e.length;)switch(e[t][0]){case lt:n++,i+=e[t][1],t++;break;case pt:r++,o+=e[t][1],t++;break;case Ye:r+n>1?(r!==0&&n!==0&&(s=jM(i,o),s!==0&&(t-r-n>0&&e[t-r-n-1][0]===Ye?e[t-r-n-1][1]+=i.substring(0,s):(e.splice(0,0,new Ue(Ye,i.substring(0,s))),t++),i=i.substring(s),o=o.substring(s)),s=jy(i,o),s!==0&&(e[t][1]=i.substring(i.length-s)+e[t][1],i=i.substring(0,i.length-s),o=o.substring(0,o.length-s))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new Ue(pt,o)),t++),i.length&&(e.splice(t,0,new Ue(lt,i)),t++),t++):t!==0&&e[t-1][0]===Ye?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",i="";break}e[e.length-1][1]===""&&e.pop();let a=!1;for(t=1;t<e.length-1;)e[t-1][0]===Ye&&e[t+1][0]===Ye&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),a=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),a=!0)),t++;a&&qy(e);}function Xs(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),o=r.match(Ey),i=n.match(Ey),s=o&&r.match(_y),a=i&&n.match(_y),l=s&&r.match(Sy),c=a&&n.match(Sy),u=l&&e.match($M),f=c&&t.match(kM);return u||f?5:l||c?4:o&&!s&&a?3:s||a?2:o||i?1:0}var $y="Compared values have no visual difference.",LM="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Qs={},Ty;function BM(){if(Ty)return Qs;Ty=1,Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.default=p;let e="diff-sequences",t=0,r=(d,h,m,y,g)=>{let b=0;for(;d<h&&m<y&&g(d,m);)d+=1,m+=1,b+=1;return b},n=(d,h,m,y,g)=>{let b=0;for(;d<=h&&m<=y&&g(h,y);)h-=1,y-=1,b+=1;return b},o=(d,h,m,y,g,b,E)=>{let _=0,T=-d,x=b[_],S=x;b[_]+=r(x+1,h,y+x-T+1,m,g);let v=d<E?d:E;for(_+=1,T+=2;_<=v;_+=1,T+=2){if(_!==d&&S<b[_])x=b[_];else if(x=S+1,h<=x)return _-1;S=b[_],b[_]=x+r(x+1,h,y+x-T+1,m,g);}return E},i=(d,h,m,y,g,b,E)=>{let _=0,T=d,x=b[_],S=x;b[_]-=n(h,x-1,m,y+x-T-1,g);let v=d<E?d:E;for(_+=1,T-=2;_<=v;_+=1,T-=2){if(_!==d&&b[_]<S)x=b[_];else if(x=S-1,x<h)return _-1;S=b[_],b[_]=x-n(h,x-1,m,y+x-T-1,g);}return E},s=(d,h,m,y,g,b,E,_,T,x,S)=>{let v=y-h,w=m-h,C=g-y-w,N=-C-(d-1),L=-C+(d-1),q=t,H=d<_?d:_;for(let z=0,Z=-d;z<=H;z+=1,Z+=2){let Y=z===0||z!==d&&q<E[z],ie=Y?E[z]:q,ae=Y?ie:ie+1,ue=v+ae-Z,K=r(ae+1,m,ue+1,g,b),G=ae+K;if(q=E[z],E[z]=G,N<=Z&&Z<=L){let J=(d-1-(Z+C))/2;if(J<=x&&T[J]-1<=G){let ne=v+ie-(Y?Z+1:Z-1),se=n(h,ie,y,ne,b),fe=ie-se,Re=ne-se,Fe=fe+1,k=Re+1;S.nChangePreceding=d-1,d-1===Fe+k-h-y?(S.aEndPreceding=h,S.bEndPreceding=y):(S.aEndPreceding=Fe,S.bEndPreceding=k),S.nCommonPreceding=se,se!==0&&(S.aCommonPreceding=Fe,S.bCommonPreceding=k),S.nCommonFollowing=K,K!==0&&(S.aCommonFollowing=ae+1,S.bCommonFollowing=ue+1);let re=G+1,X=ue+K+1;return S.nChangeFollowing=d-1,d-1===m+g-re-X?(S.aStartFollowing=m,S.bStartFollowing=g):(S.aStartFollowing=re,S.bStartFollowing=X),!0}}}return !1},a=(d,h,m,y,g,b,E,_,T,x,S)=>{let v=g-m,w=m-h,C=g-y-w,N=C-d,L=C+d,q=t,H=d<x?d:x;for(let z=0,Z=d;z<=H;z+=1,Z-=2){let Y=z===0||z!==d&&T[z]<q,ie=Y?T[z]:q,ae=Y?ie:ie-1,ue=v+ae-Z,K=n(h,ae-1,y,ue-1,b),G=ae-K;if(q=T[z],T[z]=G,N<=Z&&Z<=L){let J=(d+(Z-C))/2;if(J<=_&&G-1<=E[J]){let ne=ue-K;if(S.nChangePreceding=d,d===G+ne-h-y?(S.aEndPreceding=h,S.bEndPreceding=y):(S.aEndPreceding=G,S.bEndPreceding=ne),S.nCommonPreceding=K,K!==0&&(S.aCommonPreceding=G,S.bCommonPreceding=ne),S.nChangeFollowing=d-1,d===1)S.nCommonFollowing=0,S.aStartFollowing=m,S.bStartFollowing=g;else {let se=v+ie-(Y?Z-1:Z+1),fe=r(ie,m,se,g,b);S.nCommonFollowing=fe,fe!==0&&(S.aCommonFollowing=ie,S.bCommonFollowing=se);let Re=ie+fe,Fe=se+fe;d-1===m+g-Re-Fe?(S.aStartFollowing=m,S.bStartFollowing=g):(S.aStartFollowing=Re,S.bStartFollowing=Fe);}return !0}}}return !1},l=(d,h,m,y,g,b,E,_,T)=>{let x=y-h,S=g-m,v=m-h,w=g-y,I=w-v,C=v,N=v;if(E[0]=h-1,_[0]=m,I%2===0){let L=(d||I)/2,q=(v+w)/2;for(let H=1;H<=q;H+=1)if(C=o(H,m,g,x,b,E,C),H<L)N=i(H,h,y,S,b,_,N);else if(a(H,h,m,y,g,b,E,C,_,N,T))return}else {let L=((d||I)+1)/2,q=(v+w+1)/2,H=1;for(C=o(H,m,g,x,b,E,C),H+=1;H<=q;H+=1)if(N=i(H-1,h,y,S,b,_,N),H<L)C=o(H,m,g,x,b,E,C);else if(s(H,h,m,y,g,b,E,C,_,N,T))return}throw new Error(`${e}: no overlap aStart=${h} aEnd=${m} bStart=${y} bEnd=${g}`)},c=(d,h,m,y,g,b,E,_,T,x)=>{if(g-y<m-h){if(b=!b,b&&E.length===1){let{foundSubsequence:G,isCommon:J}=E[0];E[1]={foundSubsequence:(ne,se,fe)=>{G(ne,fe,se);},isCommon:(ne,se)=>J(se,ne)};}let ue=h,K=m;h=y,m=g,y=ue,g=K;}let{foundSubsequence:S,isCommon:v}=E[b?1:0];l(d,h,m,y,g,v,_,T,x);let{nChangePreceding:w,aEndPreceding:I,bEndPreceding:C,nCommonPreceding:N,aCommonPreceding:L,bCommonPreceding:q,nCommonFollowing:H,aCommonFollowing:z,bCommonFollowing:Z,nChangeFollowing:Y,aStartFollowing:ie,bStartFollowing:ae}=x;h<I&&y<C&&c(w,h,I,y,C,b,E,_,T,x),N!==0&&S(N,L,q),H!==0&&S(H,z,Z),ie<m&&ae<g&&c(Y,ie,m,ae,g,b,E,_,T,x);},u=(d,h)=>{if(typeof h!="number")throw new TypeError(`${e}: ${d} typeof ${typeof h} is not a number`);if(!Number.isSafeInteger(h))throw new RangeError(`${e}: ${d} value ${h} is not a safe integer`);if(h<0)throw new RangeError(`${e}: ${d} value ${h} is a negative integer`)},f=(d,h)=>{let m=typeof h;if(m!=="function")throw new TypeError(`${e}: ${d} typeof ${m} is not a function`)};function p(d,h,m,y){u("aLength",d),u("bLength",h),f("isCommon",m),f("foundSubsequence",y);let g=r(0,d,0,h,m);if(g!==0&&y(g,0,0),d!==g||h!==g){let b=g,E=g,_=n(b,d-1,E,h-1,m),T=d-_,x=h-_,S=g+_;d!==S&&h!==S&&c(0,b,T,E,x,!1,[{foundSubsequence:y,isCommon:m}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),_!==0&&y(_,T,x);}}return Qs}var FM=BM(),ky=my(FM);function UM(e,t){return e.replace(/\s+$/,r=>t(r))}function Cc(e,t,r,n,o,i){return e.length!==0?r(`${n} ${UM(e,o)}`):n!==" "?r(n):t&&i.length!==0?r(`${n} ${i}`):""}function Dy(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Cc(e,t,r,n,o,i)}function Ly(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Cc(e,t,r,n,o,i)}function By(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return Cc(e,t,r,n,o,i)}function Cy(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function zM(e,t){let r=e.length,n=t.contextLines,o=n+n,i=r,s=!1,a=0,l=0;for(;l!==r;){let _=l;for(;l!==r&&e[l][0]===Ye;)l+=1;if(_!==l)if(_===0)l>n&&(i-=l-n,s=!0);else if(l===r){let T=l-_;T>n&&(i-=T-n,s=!0);}else {let T=l-_;T>o&&(i-=T-o,a+=1);}for(;l!==r&&e[l][0]!==Ye;)l+=1;}let c=a!==0||s;a!==0?i+=a+1:s&&(i+=1);let u=i-1,f=[],p=0;c&&f.push("");let d=0,h=0,m=0,y=0,g=_=>{let T=f.length;f.push(By(_,T===0||T===u,t)),m+=1,y+=1;},b=_=>{let T=f.length;f.push(Dy(_,T===0||T===u,t)),m+=1;},E=_=>{let T=f.length;f.push(Ly(_,T===0||T===u,t)),y+=1;};for(l=0;l!==r;){let _=l;for(;l!==r&&e[l][0]===Ye;)l+=1;if(_!==l)if(_===0){l>n&&(_=l-n,d=_,h=_,m=d,y=h);for(let T=_;T!==l;T+=1)g(e[T][1]);}else if(l===r){let T=l-_>n?_+n:l;for(let x=_;x!==T;x+=1)g(e[x][1]);}else {let T=l-_;if(T>o){let x=_+n;for(let v=_;v!==x;v+=1)g(e[v][1]);f[p]=Cy(d,m,h,y,t),p=f.length,f.push("");let S=T-o;d=m+S,h=y+S,m=d,y=h;for(let v=l-n;v!==l;v+=1)g(e[v][1]);}else for(let x=_;x!==l;x+=1)g(e[x][1]);}for(;l!==r&&e[l][0]===pt;)b(e[l][1]),l+=1;for(;l!==r&&e[l][0]===lt;)E(e[l][1]),l+=1;}return c&&(f[p]=Cy(d,m,h,y,t)),f.join(`
|
|
35
|
+
`)}function VM(e,t){return e.map((r,n,o)=>{let i=r[1],s=n===0||n===o.length-1;switch(r[0]){case pt:return Dy(i,s,t);case lt:return Ly(i,s,t);default:return By(i,s,t)}}).join(`
|
|
36
|
+
`)}var vc=e=>e,Fy=5,HM=0;function WM(){return {aAnnotation:"Expected",aColor:Le.green,aIndicator:"-",bAnnotation:"Received",bColor:Le.red,bIndicator:"+",changeColor:Le.inverse,changeLineTrailingSpaceColor:vc,commonColor:Le.dim,commonIndicator:" ",commonLineTrailingSpaceColor:vc,compareKeys:void 0,contextLines:Fy,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:Le.yellow,truncateThreshold:HM,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:vc}}function GM(e){return e&&typeof e=="function"?e:void 0}function KM(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:Fy}function _n(e={}){return {...WM(),...e,compareKeys:GM(e.compareKeys),contextLines:KM(e.contextLines)}}function eo(e){return e.length===1&&e[0].length===0}function YM(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case pt:t+=1;break;case lt:r+=1;break}}),{a:t,b:r}}function JM({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:i,includeChangeCounts:s,omitAnnotationLines:a},l){if(a)return "";let c="",u="";if(s){let d=String(l.a),h=String(l.b),m=n.length-e.length,y=" ".repeat(Math.max(0,m)),g=" ".repeat(Math.max(0,-m)),b=h.length-d.length,E=" ".repeat(Math.max(0,b)),_=" ".repeat(Math.max(0,-b));c=`${y} ${r} ${E}${d}`,u=`${g} ${i} ${_}${h}`;}let f=`${r} ${e}${c}`,p=`${i} ${n}${u}`;return `${t(f)}
|
|
37
|
+
${o(p)}
|
|
38
|
+
|
|
39
|
+
`}function xc(e,t,r){return JM(r,YM(e))+(r.expand?VM(e,r):zM(e,r))+(t?r.truncateAnnotationColor(`
|
|
40
|
+
${r.truncateAnnotation}`):"")}function ea(e,t,r){let n=_n(r),[o,i]=Uy(eo(e)?[]:e,eo(t)?[]:t,n);return xc(o,i,n)}function XM(e,t,r,n,o){if(eo(e)&&eo(r)&&(e=[],r=[]),eo(t)&&eo(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return ea(e,t,o);let[i,s]=Uy(r,n,o),a=0,l=0;return i.forEach(c=>{switch(c[0]){case pt:c[1]=e[a],a+=1;break;case lt:c[1]=t[l],l+=1;break;default:c[1]=t[l],a+=1,l+=1;}}),xc(i,s,_n(o))}function Uy(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),i=n?Math.min(e.length,o):e.length,s=n?Math.min(t.length,o):t.length,a=i!==e.length||s!==t.length,l=(d,h)=>e[d]===t[h],c=[],u=0,f=0;for(ky(i,s,l,(d,h,m)=>{for(;u!==h;u+=1)c.push(new Ue(pt,e[u]));for(;f!==m;f+=1)c.push(new Ue(lt,t[f]));for(;d!==0;d-=1,u+=1,f+=1)c.push(new Ue(Ye,t[f]));});u!==i;u+=1)c.push(new Ue(pt,e[u]));for(;f!==s;f+=1)c.push(new Ue(lt,t[f]));return [c,a]}function xy(e){return e.includes(`\r
|
|
41
|
+
`)?`\r
|
|
42
|
+
`:`
|
|
43
|
+
`}function QM(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),i=e.length,s=t.length;if(n){let d=e.includes(`
|
|
44
|
+
`),h=t.includes(`
|
|
45
|
+
`),m=xy(e),y=xy(t),g=d?`${e.split(m,o).join(m)}
|
|
46
|
+
`:e,b=h?`${t.split(y,o).join(y)}
|
|
47
|
+
`:t;i=g.length,s=b.length;}let a=i!==e.length||s!==t.length,l=(d,h)=>e[d]===t[h],c=0,u=0,f=[];return ky(i,s,l,(d,h,m)=>{c!==h&&f.push(new Ue(pt,e.slice(c,h))),u!==m&&f.push(new Ue(lt,t.slice(u,m))),c=h+d,u=m+d,f.push(new Ue(Ye,t.slice(m,u)));}),c!==i&&f.push(new Ue(pt,e.slice(c))),u!==s&&f.push(new Ue(lt,t.slice(u))),[f,a]}function ZM(e,t,r){return t.reduce((n,o)=>n+(o[0]===Ye?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var Zs=class{op;line;lines;changeColor;constructor(t,r){this.op=t,this.line=[],this.lines=[],this.changeColor=r;}pushSubstring(t){this.pushDiff(new Ue(this.op,t));}pushLine(){this.lines.push(this.line.length!==1?new Ue(this.op,ZM(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new Ue(this.op,this.line[0][1])),this.line.length=0;}isLineEmpty(){return this.line.length===0}pushDiff(t){this.line.push(t);}align(t){let r=t[1];if(r.includes(`
|
|
48
|
+
`)){let n=r.split(`
|
|
49
|
+
`),o=n.length-1;n.forEach((i,s)=>{s<o?(this.pushSubstring(i),this.pushLine()):i.length!==0&&this.pushSubstring(i);});}else this.pushDiff(t);}moveLinesTo(t){this.isLineEmpty()||this.pushLine(),t.push(...this.lines),this.lines.length=0;}},Ec=class{deleteBuffer;insertBuffer;lines;constructor(t,r){this.deleteBuffer=t,this.insertBuffer=r,this.lines=[];}pushDiffCommonLine(t){this.lines.push(t);}pushDiffChangeLines(t){let r=t[1].length===0;(!r||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(t),(!r||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(t);}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines);}align(t){let r=t[0],n=t[1];if(n.includes(`
|
|
50
|
+
`)){let o=n.split(`
|
|
51
|
+
`),i=o.length-1;o.forEach((s,a)=>{if(a===0){let l=new Ue(r,s);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(l)):(this.pushDiffChangeLines(l),this.flushChangeLines());}else a<i?this.pushDiffCommonLine(new Ue(r,s)):s.length!==0&&this.pushDiffChangeLines(new Ue(r,s));});}else this.pushDiffChangeLines(t);}getLines(){return this.flushChangeLines(),this.lines}};function eI(e,t){let r=new Zs(pt,t),n=new Zs(lt,t),o=new Ec(r,n);return e.forEach(i=>{switch(i[0]){case pt:r.align(i);break;case lt:n.align(i);break;default:o.align(i);}}),o.getLines()}function tI(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===Ye&&(o!==r||n[1]!==`
|
|
52
|
+
`))}return e.some(r=>r[0]===Ye)}function rI(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
|
|
53
|
+
`)||t.includes(`
|
|
54
|
+
`),[o,i]=zy(n?`${e}
|
|
55
|
+
`:e,n?`${t}
|
|
56
|
+
`:t,!0,r);if(tI(o,n)){let s=_n(r),a=eI(o,s.changeColor);return xc(a,i,s)}}return ea(e.split(`
|
|
57
|
+
`),t.split(`
|
|
58
|
+
`),r)}function zy(e,t,r,n){let[o,i]=QM(e,t,n);return qM(o),[o,i]}function _c(e,t){let{commonColor:r}=_n(t);return r(e)}var{AsymmetricMatcher:nI,DOMCollection:oI,DOMElement:iI,Immutable:sI,ReactElement:aI,ReactTestComponent:lI}=Zn,Vy=[lI,aI,iI,oI,sI,nI],Sc={plugins:Vy},Hy={callToJSON:!1,maxDepth:10,plugins:Vy};function Sn(e,t,r){if(Object.is(e,t))return "";let n=vy(e),o=n,i=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),i=o==="string";}if(o!==vy(t)){let{aAnnotation:s,aColor:a,aIndicator:l,bAnnotation:c,bColor:u,bIndicator:f}=_n(r),p=Tc(Hy,r),d=Rt(e,p),h=Rt(t,p),m=`${a(`${l} ${s}:`)}
|
|
59
|
+
${d}`,y=`${u(`${f} ${c}:`)}
|
|
60
|
+
${h}`;return `${m}
|
|
61
|
+
|
|
62
|
+
${y}`}if(!i)switch(n){case"string":return ea(e.split(`
|
|
63
|
+
`),t.split(`
|
|
64
|
+
`),r);case"boolean":case"number":return uI(e,t,r);case"map":return wc(Ay(e),Ay(t),r);case"set":return wc(Py(e),Py(t),r);default:return wc(e,t,r)}}function uI(e,t,r){let n=Rt(e,Sc),o=Rt(t,Sc);return n===o?"":ea(n.split(`
|
|
65
|
+
`),o.split(`
|
|
66
|
+
`),r)}function Ay(e){return new Map(Array.from(e.entries()).sort())}function Py(e){return new Set(Array.from(e.values()).sort())}function wc(e,t,r){let n,o=!1;try{let s=Tc(Sc,r);n=Oy(e,t,s,r);}catch{o=!0;}let i=_c($y,r);if(n===void 0||n===i){let s=Tc(Hy,r);n=Oy(e,t,s,r),n!==i&&!o&&(n=`${_c(LM,r)}
|
|
67
|
+
|
|
68
|
+
${n}`);}return n}function Tc(e,t){let{compareKeys:r}=_n(t);return {...e,compareKeys:r}}function Oy(e,t,r,n){let o={...r,indent:0},i=Rt(e,o),s=Rt(t,o);if(i===s)return _c($y,n);{let a=Rt(e,r),l=Rt(t,r);return XM(a.split(`
|
|
69
|
+
`),l.split(`
|
|
70
|
+
`),i.split(`
|
|
71
|
+
`),s.split(`
|
|
72
|
+
`),n)}}var Ry=2e4;function My(e){return yn(e)==="Object"&&typeof e.asymmetricMatch=="function"}function Iy(e,t){let r=yn(e),n=yn(t);return r===n&&(r==="Object"||r==="Array")}function ta(e,t,r){let{aAnnotation:n,bAnnotation:o}=_n(r);if(typeof e=="string"&&typeof t=="string"&&e.length>0&&t.length>0&&e.length<=Ry&&t.length<=Ry&&e!==t){if(e.includes(`
|
|
73
|
+
`)||t.includes(`
|
|
74
|
+
`))return rI(t,e,r);let[u]=zy(t,e),f=u.some(m=>m[0]===Ye),p=cI(n,o),d=p(n)+pI(Ny(u,pt,f)),h=p(o)+dI(Ny(u,lt,f));return `${d}
|
|
75
|
+
${h}`}let i=$s(e,{forceWritable:!0}),s=$s(t,{forceWritable:!0}),{replacedExpected:a,replacedActual:l}=Wy(i,s);return Sn(a,l,r)}function Wy(e,t,r=new WeakSet,n=new WeakSet){return Iy(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),qs(t).forEach(o=>{let i=t[o],s=e[o];if(My(i))i.asymmetricMatch(s)&&(e[o]=i);else if(My(s))s.asymmetricMatch(i)&&(t[o]=s);else if(Iy(s,i)){let a=Wy(s,i,r,n);e[o]=a.replacedActual,t[o]=a.replacedExpected;}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function cI(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var fI="\xB7";function Gy(e){return e.replace(/\s+$/gm,t=>fI.repeat(t.length))}function dI(e){return Le.red(Gy(dt(e)))}function pI(e){return Le.green(Gy(dt(e)))}function Ny(e,t,r){return e.reduce((n,o)=>n+(o[0]===Ye?o[1]:o[0]===t?r?Le.inverse(o[1]):o[1]:""),"")}var hI="@@__IMMUTABLE_RECORD__@@",mI="@@__IMMUTABLE_ITERABLE__@@";function gI(e){return e&&(e[mI]||e[hI])}var yI=Object.getPrototypeOf({});function Ky(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function to(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(typeof e=="function")return `Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(gI(e))return to(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return "Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return `${e.toString()} ${li(e.sample)}`;if(typeof e.toJSON=="function")return to(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,o)=>{try{r[o]=to(n,t);}catch(i){r[o]=Ky(i);}}),r}else {let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==yI;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=to(e[o],t);}catch(i){delete r[o],r[o]=Ky(i);}}),n=Object.getPrototypeOf(n);return r}}function bI(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function Ac(e,t,r=new WeakSet){if(!e||typeof e!="object")return {message:String(e)};let n=e;n.stack&&(n.stackStr=String(n.stack)),n.name&&(n.nameStr=String(n.name)),(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=ta(n.actual,n.expected,{...t,...n.diffOptions})),typeof n.expected!="string"&&(n.expected=dt(n.expected,10)),typeof n.actual!="string"&&(n.actual=dt(n.actual,10));try{typeof n.message=="string"&&(n.message=bI(n.message));}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=Ac(n.cause,t,r));}catch{}try{return to(n)}catch(o){return to(new Error(`Failed to fully serialize error: ${o?.message}
|
|
76
|
+
Inner error message: ${n?.message}`))}}function ro(e,t){function r(o){let i=function(...s){return t.apply(o,s)};Object.assign(i,t),i.withContext=()=>i.bind(o),i.setContext=(s,a)=>{o[s]=a;},i.mergeContext=s=>{Object.assign(o,s);};for(let s of e)Object.defineProperty(i,s,{get(){return r({...o,[s]:!0})}});return i}let n=r({});return n.fn=t,n}function ui(e){let t=[e.name],r=e;for(;r?.suite;)r=r.suite,r?.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}var vI=/^[A-Za-z]:\//;function wI(e=""){return e&&e.replace(/\\/g,"/").replace(vI,t=>t.toUpperCase())}var EI=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function _I(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}var SI=function(...e){e=e.map(n=>wI(n));let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){let o=n>=0?e[n]:_I();!o||o.length===0||(t=`${o}/${t}`,r=Yy(o));}return t=TI(t,!r),r&&!Yy(t)?`/${t}`:t.length>0?t:"."};function TI(e,t){let r="",n=0,o=-1,i=0,s=null;for(let a=0;a<=e.length;++a){if(a<e.length)s=e[a];else {if(s==="/")break;s="/";}if(s==="/"){if(!(o===a-1||i===1))if(i===2){if(r.length<2||n!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){let l=r.lastIndexOf("/");l===-1?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),o=a,i=0;continue}else if(r.length>0){r="",n=0,o=a,i=0;continue}}t&&(r+=r.length>0?"/..":"..",n=2);}else r.length>0?r+=`/${e.slice(o+1,a)}`:r=e.slice(o+1,a),n=a-o-1;o=a,i=0;}else s==="."&&i!==-1?++i:i=-1;}return r}var Yy=function(e){return EI.test(e)};var Jy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",CI=new Uint8Array(64),xI=new Uint8Array(128);for(let e=0;e<Jy.length;e++){let t=Jy.charCodeAt(e);CI[e]=t,xI[t]=e;}var Xy;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute";})(Xy||(Xy={}));var Qy=/^\s*at .*(?:\S:\d+|\(native\))/m,AI=/^(?:eval@)?(?:\[native code\])?$/;function Zy(e){if(!e.includes(":"))return [e];let r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return [e];let n=r[1];if(n.startsWith("async ")&&(n=n.slice(6)),(n.startsWith("http:")||n.startsWith("https:"))&&(n=new URL(n).pathname),n.startsWith("/@fs/")){let o=/^\/@fs\/[a-zA-Z]:\//.test(n);n=n.slice(o?5:4);}return [n,r[2]||void 0,r[3]||void 0]}function PI(e){let t=e.trim();if(AI.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;let r=/((.*".+"[^@]*)?[^@]*)(@)/,n=t.match(r),o=n&&n[1]?n[1]:void 0,[i,s,a]=Zy(t.replace(r,""));return !i||!s||!a?null:{file:i,method:o||"",line:Number.parseInt(s),column:Number.parseInt(a)}}function ra(e){let t=e.trim();return Qy.test(t)?OI(t):PI(t)}function OI(e){let t=e.trim();if(!Qy.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),n=r.match(/ (\(.+\)$)/);r=n?r.replace(n[0],""):r;let[o,i,s]=Zy(n?n[1]:r),a=n&&r||"",l=o&&["eval","<anonymous>"].includes(o)?void 0:o;return !l||!i||!s?null:(a.startsWith("async ")&&(a=a.slice(6)),l.startsWith("file://")&&(l=l.slice(7)),l=SI(l),a&&(a=a.replace(/__vite_ssr_import_\d+__\./g,"")),{method:a,file:l,line:Number.parseInt(i),column:Number.parseInt(s)})}var DI=new WeakMap,rb=new WeakMap,nb=new WeakMap;function LI(e,t){DI.set(e,t);}function BI(e,t){rb.set(e,t);}function FI(e){return rb.get(e)}function UI(e,t){nb.set(e,t);}function zI(e){return nb.get(e)}var Rc=class extends Error{constructor(t,r){super(t),this.message=t,this.taskId=r.id;}code="VITEST_PENDING";taskId},no={tasks:[],currentSuite:null};function VI(e){var t;(t=no.currentSuite)==null||t.tasks.push(e);}async function HI(e,t){let r=no.currentSuite;no.currentSuite=e,await t(),no.currentSuite=r;}function Cn(e,t,r=!1){if(t<=0||t===Number.POSITIVE_INFINITY)return e;let{setTimeout:n,clearTimeout:o}=En();return function(...s){return Promise.race([e(...s),new Promise((a,l)=>{var c;let u=n(()=>{o(u),l(new Error(GI(r,t)));},t);(c=u.unref)==null||c.call(u);})])}}function WI(e,t){var r;let n=function(){throw new Error("done() callback is deprecated, use promise instead")};return n.task=e,n.skip=()=>{throw e.pending=!0,new Rc("test is skipped; abort execution",e)},n.onTestFailed=o=>{e.onFailed||(e.onFailed=[]),e.onFailed.push(o);},n.onTestFinished=o=>{e.onFinished||(e.onFinished=[]),e.onFinished.push(o);},((r=t.extendTaskContext)==null?void 0:r.call(t,n))||n}function GI(e,t){return `${e?"Hook":"Test"} timed out in ${t}ms.
|
|
77
|
+
If this is a long-running ${e?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${e?"hookTimeout":"testTimeout"}".`}function KI(e,t={}){let r=["auto"],n=Object.entries(e).map(([o,i])=>{let s={value:i};return Array.isArray(i)&&i.length>=2&&Sr(i[1])&&Object.keys(i[1]).some(a=>r.includes(a))&&(Object.assign(s,i[1]),s.value=i[0]),s.prop=o,s.isFn=typeof s.value=="function",s});return Array.isArray(t.fixtures)?t.fixtures=t.fixtures.concat(n):t.fixtures=n,n.forEach(o=>{if(o.isFn){let i=ib(o.value);i.length&&(o.deps=t.fixtures.filter(({prop:s})=>s!==o.prop&&i.includes(s)));}}),t}var Pc=new Map,Oc=new Map;function Ic(e,t){return r=>{let n=r||t;if(!n)return e({});let o=FI(n);if(!o?.length)return e(n);let i=ib(e),s=o.some(({auto:p})=>p);if(!i.length&&!s)return e(n);Pc.get(n)||Pc.set(n,new Map);let a=Pc.get(n);Oc.has(n)||Oc.set(n,[]);let l=Oc.get(n),c=o.filter(({prop:p,auto:d})=>d||i.includes(p)),u=ob(c);if(!u.length)return e(n);async function f(){for(let p of u){if(a.has(p))continue;let d=p.isFn?await YI(p.value,n,l):p.value;n[p.prop]=d,a.set(p,d),l.unshift(()=>{a.delete(p);});}}return f().then(()=>e(n))}}async function YI(e,t,r){let n=ks(),o=!1,i=e(t,async s=>{o=!0,n.resolve(s);let a=ks();r.push(async()=>{a.resolve(),await i;}),await a;}).catch(s=>{if(!o){n.reject(s);return}throw s});return n}function ob(e,t=new Set,r=[]){return e.forEach(n=>{if(!r.includes(n)){if(!n.isFn||!n.deps){r.push(n);return}if(t.has(n))throw new Error(`Circular fixture dependency detected: ${n.prop} <- ${[...t].reverse().map(o=>o.prop).join(" <- ")}`);t.add(n),ob(n.deps,t,r),r.push(n),t.clear();}}),r}function ib(e){let t=e.toString();/__async\(this, (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(t)&&(t=t.split("__async(this,")[1]);let r=t.match(/[^(]*\(([^)]*)/);if(!r)return [];let n=eb(r[1]);if(!n.length)return [];let o=n[0];if("__VITEST_FIXTURE_INDEX__"in e&&(o=n[e.__VITEST_FIXTURE_INDEX__],!o))return [];if(!(o.startsWith("{")&&o.endsWith("}")))throw new Error(`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "${o}".`);let i=o.slice(1,-1).replace(/\s/g,""),s=eb(i).map(l=>l.replace(/:.*|=.*/g,"")),a=s.at(-1);if(a&&a.startsWith("..."))throw new Error(`Rest parameters are not supported in fixtures, received "${a}".`);return s}function eb(e){let t=[],r=[],n=0;for(let i=0;i<e.length;i++)if(e[i]==="{"||e[i]==="[")r.push(e[i]==="{"?"}":"]");else if(e[i]===r[r.length-1])r.pop();else if(!r.length&&e[i]===","){let s=e.substring(n,i).trim();s&&t.push(s),n=i+1;}let o=e.substring(n).trim();return o&&t.push(o),t}var JI;function na(){return JI}var Gr=nN(),oa=qc(function(e,t,r){Kr().test.fn.call(this,Tn(e),t,r);}),Nc=Gr,jc=oa,Qt,sb;function ab(e,t){if(!e)throw new Error(`Vitest failed to find ${t}. This is a bug in Vitest. Please, open an issue with reproduction.`)}function ZI(){return ab(Qt,"the runner"),Qt}function Kr(){let e=no.currentSuite||sb;return ab(e,"the current suite"),e}function eN(){return {beforeAll:[],afterAll:[],beforeEach:[],afterEach:[]}}function ci(e,t){let r={},n=()=>{};if(typeof t=="object"){if(typeof e=="object")throw new TypeError("Cannot use two objects as arguments. Please provide options and a function callback in that order.");r=t;}else typeof t=="number"?r={timeout:t}:typeof e=="object"&&(r=e);if(typeof e=="function"){if(typeof t=="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");n=e;}else typeof t=="function"&&(n=t);return {options:r,handler:n}}function tN(e,t=()=>{},r,n,o,i){let s=[],a=[],l;d();let c=function(y="",g={}){let b={id:"",name:y,suite:void 0,each:g.each,fails:g.fails,context:void 0,type:"custom",file:void 0,retry:g.retry??Qt.config.retry,repeats:g.repeats,mode:g.only?"only":g.skip?"skip":g.todo?"todo":"run",meta:g.meta??Object.create(null)},E=g.handler;(g.concurrent||!g.sequential&&Qt.config.sequence.concurrent)&&(b.concurrent=!0),n&&(b.shuffle=!0);let _=WI(b,Qt);if(Object.defineProperty(b,"context",{value:_,enumerable:!1}),BI(_,g.fixtures),E&&LI(b,Cn(rN(Ic(E,_),b),g?.timeout??Qt.config.testTimeout)),Qt.config.includeTaskLocation);return s.push(b),b},u=qc(function(y,g,b){let{options:E,handler:_}=ci(g,b);typeof i=="object"&&(E=Object.assign({},i,E)),E.concurrent=this.concurrent||!this.sequential&&E?.concurrent,E.sequential=this.sequential||!this.concurrent&&E?.sequential;let T=c(Tn(y),{...this,...E,handler:_});T.type="test";}),f={type:"collector",name:e,mode:r,options:i,test:u,tasks:s,collect:m,task:c,clear:h,on:p};function p(y,...g){zI(l)[y].push(...g);}function d(y){if(typeof i=="number"&&(i={timeout:i}),l={id:"",type:"suite",name:e,mode:r,each:o,file:void 0,shuffle:n,tasks:[],meta:Object.create(null),concurrent:i?.concurrent},Qt);UI(l,eN());}function h(){s.length=0,a.length=0,d();}async function m(y){if(!y)throw new TypeError("File is required to collect tasks.");a.length=0,t&&await HI(f,()=>t(u));let g=[];for(let b of [...a,...s])g.push(b.type==="collector"?await b.collect(y):b);return l.file=y,l.tasks=g,g.forEach(b=>{b.suite=l,b.file=y;}),l}return VI(f),f}function rN(e,t){return async(...r)=>{if(await e(...r),t.promises){let o=(await Promise.allSettled(t.promises)).map(i=>i.status==="rejected"?i.reason:void 0).filter(Boolean);if(o.length)throw o}}}function nN(){function e(t,r,n={}){let o=this.only?"only":this.skip?"skip":this.todo?"todo":"run",i=no.currentSuite||sb,{options:s,handler:a}=ci(r,n),l=s.concurrent||this.concurrent||s.sequential===!1,c=s.sequential||this.sequential||s.concurrent===!1;i?.options&&(s={...i.options,...s});let u=l||s.concurrent&&!c,f=c||s.sequential&&!l;return s.concurrent=u&&!f,s.sequential=f&&!u,tN(Tn(t),a,o,this.shuffle,this.each,s)}return e.each=function(t,...r){let n=this.withContext();return this.setContext("each",!0),Array.isArray(t)&&r.length&&(t=Mc(t,r)),(o,i,s)=>{let a=Tn(o),l=t.every(Array.isArray),{options:c,handler:u}=ci(i,s),f=typeof i=="function";t.forEach((p,d)=>{let h=Array.isArray(p)?p:[p];f?l?n(xr(a,h,d),()=>u(...h),c):n(xr(a,h,d),()=>u(p),c):l?n(xr(a,h,d),c,()=>u(...h)):n(xr(a,h,d),c,()=>u(p));}),this.setContext("each",void 0);}},e.skipIf=t=>t?Gr.skip:Gr,e.runIf=t=>t?Gr:Gr.skip,ro(["concurrent","sequential","shuffle","skip","only","todo"],e)}function oN(e,t){let r=e;r.each=function(o,...i){let s=this.withContext();return this.setContext("each",!0),Array.isArray(o)&&i.length&&(o=Mc(o,i)),(a,l,c)=>{let u=Tn(a),f=o.every(Array.isArray),{options:p,handler:d}=ci(l,c),h=typeof l=="function";o.forEach((m,y)=>{let g=Array.isArray(m)?m:[m];h?f?s(xr(u,g,y),()=>d(...g),p):s(xr(u,g,y),()=>d(m),p):f?s(xr(u,g,y),p,()=>d(...g)):s(xr(u,g,y),p,()=>d(m));}),this.setContext("each",void 0);}},r.for=function(o,...i){let s=this.withContext();return Array.isArray(o)&&i.length&&(o=Mc(o,i)),(a,l,c)=>{let u=Tn(a),{options:f,handler:p}=ci(l,c);o.forEach((d,h)=>{let m=y=>p(d,y);m.__VITEST_FIXTURE_INDEX__=1,m.toString=()=>p.toString(),s(xr(u,Hu(d),h),f,m);});}},r.skipIf=function(o){return o?this.skip:this},r.runIf=function(o){return o?this:this.skip},r.extend=function(o){let i=KI(o,t);return qc(function(a,l,c){Kr().test.fn.call(this,Tn(a),l,c);},i)};let n=ro(["concurrent","sequential","skip","only","todo","fails"],r);return t&&n.mergeContext(t),n}function qc(e,t){return oN(e,t)}function Tn(e){return typeof e=="string"?e:e instanceof Function?e.name||"<anonymous>":String(e)}function xr(e,t,r){e.includes("%#")&&(e=e.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${r}`).replace(/__vitest_escaped_%__/g,"%%"));let n=e.split("%").length-1;e.includes("%f")&&(e.match(/%f/g)||[]).forEach((s,a)=>{if(Ku(t[a])||Object.is(t[a],-0)){let l=0;e=e.replace(/%f/g,c=>(l++,l===a+1?"-%f":c));}});let o=li(e,...t.slice(0,n));return Sr(t[0])&&(o=o.replace(/\$([$\w.]+)/g,(i,s)=>{var a,l;return yc(Gu(t[0],s),{truncate:(l=(a=Qt?.config)==null?void 0:a.chaiConfig)==null?void 0:l.truncateThreshold})})),o}function Mc(e,t){let r=e.join("").trim().replace(/ /g,"").split(`
|
|
78
|
+
`).map(o=>o.split("|"))[0],n=[];for(let o=0;o<Math.floor(t.length/r.length);o++){let i={};for(let s=0;s<r.length;s++)i[r[s]]=t[o*r.length+s];n.push(i);}return n}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;function oo(){return ZI().config.hookTimeout}function fi(e,t){return tt(e,'"beforeAll" callback',["function"]),Kr().on("beforeAll",Cn(e,t??oo(),!0))}function $c(e,t){return tt(e,'"afterAll" callback',["function"]),Kr().on("afterAll",Cn(e,t??oo(),!0))}function di(e,t){return tt(e,'"beforeEach" callback',["function"]),Kr().on("beforeEach",Cn(Ic(e),t??oo(),!0))}function kc(e,t){return tt(e,'"afterEach" callback',["function"]),Kr().on("afterEach",Cn(Ic(e),t??oo(),!0))}var Dc=lb("onTestFailed"),Lc=lb("onTestFinished");function lb(e,t){return (r,n)=>{tt(r,`"${e}" callback`,["function"]);throw new Error(`Hook ${e}() can only be called inside a test`);}}function Bt(){let e=globalThis.__vitest_worker__;if(!e){let t=`Vitest failed to access its internal state.
|
|
79
|
+
|
|
80
|
+
One of the following is possible:
|
|
81
|
+
- "vitest" is imported directly without running "vitest" command
|
|
82
|
+
- "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
|
|
83
|
+
- Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
|
|
84
|
+
`;throw new Error(t)}return e}function ub(){return Bt()?.environment.name}function sN(){return Bt().config.mode}function cb(){return sN()==="benchmark"}var aN=new WeakMap,lN=new WeakMap;var fb=uN(function(e,t=Wu,r={}){if(!cb())throw new Error("`bench()` is only available in benchmark mode.");let n=Kr().task(cN(e),{...this,meta:{benchmark:!0}});aN.set(n,t),lN.set(n,r);});function uN(e){let t=ro(["skip","only","todo"],e);return t.skipIf=r=>r?t.skip:t,t.runIf=r=>r?t:t.skip,t}function cN(e){return typeof e=="string"?e:e instanceof Function?e.name||"<anonymous>":String(e)}var Bc=new Map,Fc=new Map;function Uc(e,t){let r=Bt().filepath||"__unknown_files__";t||(Bc.set(r,(Bc.get(r)||0)+1),t=String(Bc.get(r)));let n=`${r}:${t}`;return Fc.has(n)||Fc.set(n,e()),Fc.get(n)}function db(){let e=!1;return Uc(()=>{e=!0;},"__vitest_first_run__"),e}var Ei={};zu(Ei,{Assertion:()=>P,AssertionError:()=>Ce,Should:()=>fv,assert:()=>A,config:()=>Ct,expect:()=>Ar,should:()=>wi,use:()=>hr,util:()=>Tt});var _b=Object.defineProperty,fN=Object.getOwnPropertyNames,U=(e,t)=>_b(e,"name",{value:t,configurable:!0}),dN=(e,t)=>function(){return t||(0, e[fN(e)[0]])((t={exports:{}}).exports,t),t.exports},sf=(e,t)=>{for(var r in t)_b(e,r,{get:t[r],enumerable:!0});},pN=dN({"(disabled):util"(){}}),Tt={};sf(Tt,{addChainableMethod:()=>bf,addLengthGuard:()=>yi,addMethod:()=>mf,addProperty:()=>hf,checkError:()=>jt,compareByInspect:()=>la,eql:()=>Yb,expectTypes:()=>Ob,flag:()=>he,getActual:()=>da,getMessage:()=>uf,getName:()=>ha,getOperator:()=>_f,getOwnEnumerableProperties:()=>Ef,getOwnEnumerablePropertySymbols:()=>wf,getPathInfo:()=>pf,hasProperty:()=>pa,inspect:()=>Te,isNaN:()=>ua,isNumeric:()=>it,isProxyEnabled:()=>gi,isRegExp:()=>ca,objDisplay:()=>xn,overwriteChainableMethod:()=>vf,overwriteMethod:()=>yf,overwriteProperty:()=>gf,proxify:()=>lo,test:()=>af,transferFlags:()=>Zt,type:()=>$e});var jt={};sf(jt,{compatibleConstructor:()=>Cb,compatibleInstance:()=>Tb,compatibleMessage:()=>xb,getConstructorName:()=>Ab,getMessage:()=>Pb});function fa(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}U(fa,"isErrorInstance");function Sb(e){return Object.prototype.toString.call(e)==="[object RegExp]"}U(Sb,"isRegExp");function Tb(e,t){return fa(t)&&e===t}U(Tb,"compatibleInstance");function Cb(e,t){return fa(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:!1}U(Cb,"compatibleConstructor");function xb(e,t){let r=typeof e=="string"?e:e.message;return Sb(t)?t.test(r):typeof t=="string"?r.indexOf(t)!==-1:!1}U(xb,"compatibleMessage");function Ab(e){let t=e;return fa(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}U(Ab,"getConstructorName");function Pb(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}U(Pb,"getMessage");function he(e,t,r){var n=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)n[t]=r;else return n[t]}U(he,"flag");function af(e,t){var r=he(e,"negate"),n=t[0];return r?!n:n}U(af,"test");function $e(e){if(typeof e>"u")return "undefined";if(e===null)return "null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}U($e,"type");var hN="captureStackTrace"in Error,An,Ce=(An=class extends Error{message;get name(){return "AssertionError"}get ok(){return !1}constructor(t="Unspecified AssertionError",r,n){super(t),this.message=t,hN&&Error.captureStackTrace(this,n||An);for(let o in r)o in this||(this[o]=r[o]);}toJSON(t){return {...this,name:this.name,message:this.message,ok:!1,stack:t!==!1?this.stack:void 0}}},U(An,"AssertionError"),An);function Ob(e,t){var r=he(e,"message"),n=he(e,"ssfi");r=r?r+": ":"",e=he(e,"object"),t=t.map(function(s){return s.toLowerCase()}),t.sort();var o=t.map(function(s,a){var l=~["a","e","i","o","u"].indexOf(s.charAt(0))?"an":"a",c=t.length>1&&a===t.length-1?"or ":"";return c+l+" "+s}).join(", "),i=$e(e).toLowerCase();if(!t.some(function(s){return i===s}))throw new Ce(r+"object tested must be "+o+", but "+i+" given",void 0,n)}U(Ob,"expectTypes");function da(e,t){return t.length>4?t[4]:e._obj}U(da,"getActual");var pb={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"]},mN={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},so="\u2026";function Rb(e,t){let r=pb[mN[t]]||pb[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}U(Rb,"colorise");function Mb({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!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:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(l),seen:a,inspect:u,stylize:c};return f.colors&&(f.stylize=Rb),f}U(Mb,"normaliseOptions");function Ib(e){return e>="\uD800"&&e<="\uDBFF"}U(Ib,"isHighSurrogate");function Pr(e,t,r=so){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let i=t-n;return i>0&&Ib(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}U(Pr,"truncate");function Ft(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return "";let i=t.truncate,s="",a="",l="";for(let c=0;c<o;c+=1){let u=c+1===e.length,f=c+2===e.length;l=`${so}(${e.length-c})`;let p=e[c];t.truncate=i-s.length-(u?0:n.length);let d=a||r(p,t)+(u?"":n),h=s.length+d.length,m=h+l.length;if(u&&h>i&&s.length+l.length<=i||!u&&!f&&m>i||(a=u?"":r(e[c+1],t)+(f?"":n),!u&&f&&m>i&&h+a.length>i))break;if(s+=d,!u&&!f&&h+a.length>=i){l=`${so}(${e.length-c-1})`;break}l="";}return `${s}${l}`}U(Ft,"inspectList");function Nb(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}U(Nb,"quoteComplexKey");function ao([e,t],r){return r.truncate-=2,typeof e=="string"?e=Nb(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}U(ao,"inspectProperty");function jb(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return "[]";t.truncate-=4;let n=Ft(e,t);t.truncate-=n.length;let o="";return r.length&&(o=Ft(r.map(i=>[i,e[i]]),t,ao)),`[ ${n}${o?`, ${o}`:""} ]`}U(jb,"inspectArray");var gN=U(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function pr(e,t){let r=gN(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return `${r}[]`;let o="";for(let s=0;s<e.length;s++){let a=`${t.stylize(Pr(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=a.length,e[s]!==e.length&&t.truncate<=3){o+=`${so}(${e.length-e[s]+1})`;break}o+=a;}let i="";return n.length&&(i=Ft(n.map(s=>[s,e[s]]),t,ao)),`${r}[ ${o}${i?`, ${i}`:""} ]`}U(pr,"inspectTypedArray");function qb(e,t){let r=e.toJSON();if(r===null)return "Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${Pr(n[1],t.truncate-o.length-1)}`,"date")}U(qb,"inspectDate");function Hc(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Pr(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}U(Hc,"inspectFunction");function $b([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}U($b,"inspectMapEntry");function kb(e){let t=[];return e.forEach((r,n)=>{t.push([n,r]);}),t}U(kb,"mapToEntries");function Db(e,t){return e.size-1<=0?"Map{}":(t.truncate-=7,`Map{ ${Ft(kb(e),t,$b)} }`)}U(Db,"inspectMap");var yN=Number.isNaN||(e=>e!==e);function Wc(e,t){return yN(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(Pr(String(e),t.truncate),"number")}U(Wc,"inspectNumber");function Gc(e,t){let r=Pr(e.toString(),t.truncate-1);return r!==so&&(r+="n"),t.stylize(r,"bigint")}U(Gc,"inspectBigInt");function Lb(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${Pr(o,n)}/${r}`,"regexp")}U(Lb,"inspectRegExp");function Bb(e){let t=[];return e.forEach(r=>{t.push(r);}),t}U(Bb,"arrayFromSet");function Fb(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Ft(Bb(e),t)} }`)}U(Fb,"inspectSet");var hb=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),bN={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},vN=16,wN=4;function Ub(e){return bN[e]||`\\u${`0000${e.charCodeAt(0).toString(vN)}`.slice(-wN)}`}U(Ub,"escape");function Kc(e,t){return hb.test(e)&&(e=e.replace(hb,Ub)),t.stylize(`'${Pr(e,t.truncate-2)}'`,"string")}U(Kc,"inspectString");function Yc(e){return "description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}U(Yc,"inspectSymbol");var zb=U(()=>"Promise{\u2026}","getPromiseValue");try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(zb=U((n,o)=>{let[i,s]=e(n);return i===t?"Promise{<pending>}":`Promise${i===r?"!":""}{${o.inspect(s,o)}}`},"getPromiseValue"));}catch{}var EN=zb;function hi(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return "{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return "[Circular]";t.seen.push(e);let o=Ft(r.map(a=>[a,e[a]]),t,ao),i=Ft(n.map(a=>[a,e[a]]),t,ao);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}U(hi,"inspectObject");var zc=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function Vb(e,t){let r="";return zc&&zc in e&&(r=e[zc]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${hi(e,t)}`}U(Vb,"inspectClass");function Hb(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Ft(e,t)} ]`)}U(Hb,"inspectArguments");var _N=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Wb(e,t){let r=Object.getOwnPropertyNames(e).filter(s=>_N.indexOf(s)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=Pr(e.message,t.truncate):r.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=Ft(r.map(s=>[s,e[s]]),t,ao);return `${n}${o}${i?` { ${i} }`:""}`}U(Wb,"inspectObject");function Gb([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}U(Gb,"inspectAttribute");function ia(e,t){return Ft(e,t,lf,`
|
|
85
|
+
`)}U(ia,"inspectHTMLCollection");function lf(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),i=t.stylize(">","special"),s=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let a="";r.length>0&&(a+=" ",a+=Ft(r.map(u=>[u,e.getAttribute(u)]),t,Gb," ")),t.truncate-=a.length;let l=t.truncate,c=ia(e.children,t);return c&&c.length>l&&(c=`${so}(${e.children.length})`),`${o}${a}${i}${c}${s}`}U(lf,"inspectHTML");var SN=typeof Symbol=="function"&&typeof Symbol.for=="function",Vc=SN?Symbol.for("chai/inspect"):"@@chai/inspect",io=!1;try{let e=pN();io=e.inspect?e.inspect.custom:!1;}catch{io=!1;}var mb=new WeakMap,gb={},yb={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:Wc,Number:Wc,bigint:Gc,BigInt:Gc,string:Kc,String:Kc,function:Hc,Function:Hc,symbol:Yc,Symbol:Yc,Array:jb,Date:qb,Map:Db,Set:Fb,RegExp:Lb,Promise:EN,WeakSet:(e,t)=>t.stylize("WeakSet{\u2026}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{\u2026}","special"),Arguments:Hb,Int8Array:pr,Uint8Array:pr,Uint8ClampedArray:pr,Int16Array:pr,Uint16Array:pr,Int32Array:pr,Uint32Array:pr,Float32Array:pr,Float64Array:pr,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:Wb,HTMLCollection:ia,NodeList:ia},TN=U((e,t,r)=>Vc in e&&typeof e[Vc]=="function"?e[Vc](t):io&&io in e&&typeof e[io]=="function"?e[io](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&mb.has(e.constructor)?mb.get(e.constructor)(e,t):gb[r]?gb[r](e,t):"","inspectCustom"),CN=Object.prototype.toString;function sa(e,t={}){let r=Mb(t,sa),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=CN.call(e).slice(8,-1)),o in yb)return yb[o](e,r);if(n&&e){let s=TN(e,r,o);if(s)return typeof s=="string"?s:sa(s,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?hi(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?lf(e,r):"constructor"in e?e.constructor!==Object?Vb(e,r):hi(e,r):e===Object(e)?hi(e,r):r.stylize(String(e),o)}U(sa,"inspect");var Ct={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function Te(e,t,r,n){var o={colors:n,depth:typeof r>"u"?2:r,showHidden:t,truncate:Ct.truncateThreshold?Ct.truncateThreshold:1/0};return sa(e,o)}U(Te,"inspect");function xn(e){var t=Te(e),r=Object.prototype.toString.call(e);if(Ct.truncateThreshold&&t.length>=Ct.truncateThreshold){if(r==="[object Function]")return !e.name||e.name===""?"[Function]":"[Function: "+e.name+"]";if(r==="[object Array]")return "[ Array("+e.length+") ]";if(r==="[object Object]"){var n=Object.keys(e),o=n.length>2?n.splice(0,2).join(", ")+", ...":n.join(", ");return "{ Object ("+o+") }"}else return t}else return t}U(xn,"objDisplay");function uf(e,t){var r=he(e,"negate"),n=he(e,"object"),o=t[3],i=da(e,t),s=r?t[2]:t[1],a=he(e,"message");return typeof s=="function"&&(s=s()),s=s||"",s=s.replace(/#\{this\}/g,function(){return xn(n)}).replace(/#\{act\}/g,function(){return xn(i)}).replace(/#\{exp\}/g,function(){return xn(o)}),a?a+": "+s:s}U(uf,"getMessage");function Zt(e,t,r){var n=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),r=arguments.length===3?r:!0;for(var o in n)(r||o!=="object"&&o!=="ssfi"&&o!=="lockSsfi"&&o!="message")&&(t.__flags[o]=n[o]);}U(Zt,"transferFlags");function Jc(e){if(typeof e>"u")return "undefined";if(e===null)return "null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}U(Jc,"type");function cf(){this._key="chai/deep-eql__"+Math.random()+Date.now();}U(cf,"FakeMap");cf.prototype={get:U(function(t){return t[this._key]},"get"),set:U(function(t,r){Object.isExtensible(t)&&Object.defineProperty(t,this._key,{value:r,configurable:!0});},"set")};var Kb=typeof WeakMap=="function"?WeakMap:cf;function Xc(e,t,r){if(!r||Pn(e)||Pn(t))return null;var n=r.get(e);if(n){var o=n.get(t);if(typeof o=="boolean")return o}return null}U(Xc,"memoizeCompare");function pi(e,t,r,n){if(!(!r||Pn(e)||Pn(t))){var o=r.get(e);o?o.set(t,n):(o=new Kb,o.set(t,n),r.set(e,o));}}U(pi,"memoizeSet");var Yb=mi;function mi(e,t,r){if(r&&r.comparator)return Qc(e,t,r);var n=ff(e,t);return n!==null?n:Qc(e,t,r)}U(mi,"deepEqual");function ff(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?!0:Pn(e)||Pn(t)?!1:null}U(ff,"simpleEqual");function Qc(e,t,r){r=r||{},r.memoize=r.memoize===!1?!1:r.memoize||new Kb;var n=r&&r.comparator,o=Xc(e,t,r.memoize);if(o!==null)return o;var i=Xc(t,e,r.memoize);if(i!==null)return i;if(n){var s=n(e,t);if(s===!1||s===!0)return pi(e,t,r.memoize,s),s;var a=ff(e,t);if(a!==null)return a}var l=Jc(e);if(l!==Jc(t))return pi(e,t,r.memoize,!1),!1;pi(e,t,r.memoize,!0);var c=Jb(e,t,l,r);return pi(e,t,r.memoize,c),c}U(Qc,"extensiveDeepEqual");function Jb(e,t,r,n){switch(r){case"String":case"Number":case"Boolean":case"Date":return mi(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return df(e,t,["name","message","code"],n);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return Yr(e,t,n);case"RegExp":return Xb(e,t);case"Generator":return Qb(e,t,n);case"DataView":return Yr(new Uint8Array(e.buffer),new Uint8Array(t.buffer),n);case"ArrayBuffer":return Yr(new Uint8Array(e),new Uint8Array(t),n);case"Set":return Zc(e,t,n);case"Map":return Zc(e,t,n);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 ev(e,t,n)}}U(Jb,"extensiveDeepEqualByType");function Xb(e,t){return e.toString()===t.toString()}U(Xb,"regexpEqual");function Zc(e,t,r){try{if(e.size!==t.size)return !1;if(e.size===0)return !0}catch{return !1}var n=[],o=[];return e.forEach(U(function(s,a){n.push([s,a]);},"gatherEntries")),t.forEach(U(function(s,a){o.push([s,a]);},"gatherEntries")),Yr(n.sort(),o.sort(),r)}U(Zc,"entriesEqual");function Yr(e,t,r){var n=e.length;if(n!==t.length)return !1;if(n===0)return !0;for(var o=-1;++o<n;)if(mi(e[o],t[o],r)===!1)return !1;return !0}U(Yr,"iterableEqual");function Qb(e,t,r){return Yr(aa(e),aa(t),r)}U(Qb,"generatorEqual");function Zb(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}U(Zb,"hasIteratorFunction");function ef(e){if(Zb(e))try{return aa(e[Symbol.iterator]())}catch{return []}return []}U(ef,"getIteratorEntries");function aa(e){for(var t=e.next(),r=[t.value];t.done===!1;)t=e.next(),r.push(t.value);return r}U(aa,"getGeneratorEntries");function tf(e){var t=[];for(var r in e)t.push(r);return t}U(tf,"getEnumerableKeys");function rf(e){for(var t=[],r=Object.getOwnPropertySymbols(e),n=0;n<r.length;n+=1){var o=r[n];Object.getOwnPropertyDescriptor(e,o).enumerable&&t.push(o);}return t}U(rf,"getEnumerableSymbols");function df(e,t,r,n){var o=r.length;if(o===0)return !0;for(var i=0;i<o;i+=1)if(mi(e[r[i]],t[r[i]],n)===!1)return !1;return !0}U(df,"keysEqual");function ev(e,t,r){var n=tf(e),o=tf(t),i=rf(e),s=rf(t);if(n=n.concat(i),o=o.concat(s),n.length&&n.length===o.length)return Yr(nf(n).sort(),nf(o).sort())===!1?!1:df(e,t,n,r);var a=ef(e),l=ef(t);return a.length&&a.length===l.length?(a.sort(),l.sort(),Yr(a,l,r)):n.length===0&&a.length===0&&o.length===0&&l.length===0}U(ev,"objectEqual");function Pn(e){return e===null||typeof e!="object"}U(Pn,"isPrimitive");function nf(e){return e.map(U(function(r){return typeof r=="symbol"?r.toString():r},"mapSymbol"))}U(nf,"mapSymbols");function pa(e,t){return typeof e>"u"||e===null?!1:t in Object(e)}U(pa,"hasProperty");function tv(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(n=>{if(n==="constructor"||n==="__proto__"||n==="prototype")return {};let i=/^\[(\d+)\]$/.exec(n),s=null;return i?s={i:parseFloat(i[1])}:s={p:n.replace(/\\([.[\]])/g,"$1")},s})}U(tv,"parsePath");function of(e,t,r){let n=e,o=null;r=typeof r>"u"?t.length:r;for(let i=0;i<r;i++){let s=t[i];n&&(typeof s.p>"u"?n=n[s.i]:n=n[s.p],i===r-1&&(o=n));}return o}U(of,"internalGetPathValue");function pf(e,t){let r=tv(t),n=r[r.length-1],o={parent:r.length>1?of(e,r,r.length-1):e,name:n.p||n.i,value:of(e,r)};return o.exists=pa(o.parent,o.name),o}U(pf,"getPathInfo");function P(e,t,r,n){return he(this,"ssfi",r||P),he(this,"lockSsfi",n),he(this,"object",e),he(this,"message",t),he(this,"eql",Ct.deepEqual||Yb),lo(this)}U(P,"Assertion");Object.defineProperty(P,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Ct.includeStack},set:function(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Ct.includeStack=e;}});Object.defineProperty(P,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Ct.showDiff},set:function(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Ct.showDiff=e;}});P.addProperty=function(e,t){hf(this.prototype,e,t);};P.addMethod=function(e,t){mf(this.prototype,e,t);};P.addChainableMethod=function(e,t,r){bf(this.prototype,e,t,r);};P.overwriteProperty=function(e,t){gf(this.prototype,e,t);};P.overwriteMethod=function(e,t){yf(this.prototype,e,t);};P.overwriteChainableMethod=function(e,t,r){vf(this.prototype,e,t,r);};P.prototype.assert=function(e,t,r,n,o,i){var s=af(this,arguments);if(i!==!1&&(i=!0),n===void 0&&o===void 0&&(i=!1),Ct.showDiff!==!0&&(i=!1),!s){t=uf(this,arguments);var a=da(this,arguments),l={actual:a,expected:n,showDiff:i},c=_f(this,arguments);throw c&&(l.operator=c),new Ce(t,l,Ct.includeStack?this.assert:he(this,"ssfi"))}};Object.defineProperty(P.prototype,"_obj",{get:function(){return he(this,"object")},set:function(e){he(this,"object",e);}});function gi(){return Ct.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}U(gi,"isProxyEnabled");function hf(e,t,r){r=r===void 0?function(){}:r,Object.defineProperty(e,t,{get:U(function n(){!gi()&&!he(this,"lockSsfi")&&he(this,"ssfi",n);var o=r.call(this);if(o!==void 0)return o;var i=new P;return Zt(this,i),i},"propertyGetter"),configurable:!0});}U(hf,"addProperty");var xN=Object.getOwnPropertyDescriptor(function(){},"length");function yi(e,t,r){return xN.configurable&&Object.defineProperty(e,"length",{get:function(){throw Error(r?"Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.':"Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')}}),e}U(yi,"addLengthGuard");function rv(e){var t=Object.getOwnPropertyNames(e);function r(o){t.indexOf(o)===-1&&t.push(o);}U(r,"addProperty");for(var n=Object.getPrototypeOf(e);n!==null;)Object.getOwnPropertyNames(n).forEach(r),n=Object.getPrototypeOf(n);return t}U(rv,"getProperties");var bb=["__flags","__methods","_obj","assert"];function lo(e,t){return gi()?new Proxy(e,{get:U(function r(n,o){if(typeof o=="string"&&Ct.proxyExcludedKeys.indexOf(o)===-1&&!Reflect.has(n,o)){if(t)throw Error("Invalid Chai property: "+t+"."+o+'. See docs for proper usage of "'+t+'".');var i=null,s=4;throw rv(n).forEach(function(a){if(!Object.prototype.hasOwnProperty(a)&&bb.indexOf(a)===-1){var l=nv(o,a,s);l<s&&(i=a,s=l);}}),Error(i!==null?"Invalid Chai property: "+o+'. Did you mean "'+i+'"?':"Invalid Chai property: "+o)}return bb.indexOf(o)===-1&&!he(n,"lockSsfi")&&he(n,"ssfi",r),Reflect.get(n,o)},"proxyGetter")}):e}U(lo,"proxify");function nv(e,t,r){if(Math.abs(e.length-t.length)>=r)return r;for(var n=[],o=0;o<=e.length;o++)n[o]=Array(t.length+1).fill(0),n[o][0]=o;for(var i=0;i<t.length;i++)n[0][i]=i;for(var o=1;o<=e.length;o++)for(var s=e.charCodeAt(o-1),i=1;i<=t.length;i++){if(Math.abs(o-i)>=r){n[o][i]=r;continue}n[o][i]=Math.min(n[o-1][i]+1,n[o][i-1]+1,n[o-1][i-1]+(s===t.charCodeAt(i-1)?0:1));}return n[e.length][t.length]}U(nv,"stringDistanceCapped");function mf(e,t,r){var n=U(function(){he(this,"lockSsfi")||he(this,"ssfi",n);var o=r.apply(this,arguments);if(o!==void 0)return o;var i=new P;return Zt(this,i),i},"methodWrapper");yi(n,t,!1),e[t]=lo(n,t);}U(mf,"addMethod");function gf(e,t,r){var n=Object.getOwnPropertyDescriptor(e,t),o=U(function(){},"_super");n&&typeof n.get=="function"&&(o=n.get),Object.defineProperty(e,t,{get:U(function i(){!gi()&&!he(this,"lockSsfi")&&he(this,"ssfi",i);var s=he(this,"lockSsfi");he(this,"lockSsfi",!0);var a=r(o).call(this);if(he(this,"lockSsfi",s),a!==void 0)return a;var l=new P;return Zt(this,l),l},"overwritingPropertyGetter"),configurable:!0});}U(gf,"overwriteProperty");function yf(e,t,r){var n=e[t],o=U(function(){throw new Error(t+" is not a function")},"_super");n&&typeof n=="function"&&(o=n);var i=U(function(){he(this,"lockSsfi")||he(this,"ssfi",i);var s=he(this,"lockSsfi");he(this,"lockSsfi",!0);var a=r(o).apply(this,arguments);if(he(this,"lockSsfi",s),a!==void 0)return a;var l=new P;return Zt(this,l),l},"overwritingMethodWrapper");yi(i,t,!1),e[t]=lo(i,t);}U(yf,"overwriteMethod");var AN=typeof Object.setPrototypeOf=="function",vb=U(function(){},"testFn"),PN=Object.getOwnPropertyNames(vb).filter(function(e){var t=Object.getOwnPropertyDescriptor(vb,e);return typeof t!="object"?!0:!t.configurable}),ON=Function.prototype.call,RN=Function.prototype.apply;function bf(e,t,r,n){typeof n!="function"&&(n=U(function(){},"chainingBehavior"));var o={method:r,chainingBehavior:n};e.__methods||(e.__methods={}),e.__methods[t]=o,Object.defineProperty(e,t,{get:U(function(){o.chainingBehavior.call(this);var s=U(function(){he(this,"lockSsfi")||he(this,"ssfi",s);var c=o.method.apply(this,arguments);if(c!==void 0)return c;var u=new P;return Zt(this,u),u},"chainableMethodWrapper");if(yi(s,t,!0),AN){var a=Object.create(this);a.call=ON,a.apply=RN,Object.setPrototypeOf(s,a);}else {var l=Object.getOwnPropertyNames(e);l.forEach(function(c){if(PN.indexOf(c)===-1){var u=Object.getOwnPropertyDescriptor(e,c);Object.defineProperty(s,c,u);}});}return Zt(this,s),lo(s)},"chainableMethodGetter"),configurable:!0});}U(bf,"addChainableMethod");function vf(e,t,r,n){var o=e.__methods[t],i=o.chainingBehavior;o.chainingBehavior=U(function(){var l=n(i).call(this);if(l!==void 0)return l;var c=new P;return Zt(this,c),c},"overwritingChainableMethodGetter");var s=o.method;o.method=U(function(){var l=r(s).apply(this,arguments);if(l!==void 0)return l;var c=new P;return Zt(this,c),c},"overwritingChainableMethodWrapper");}U(vf,"overwriteChainableMethod");function la(e,t){return Te(e)<Te(t)?-1:1}U(la,"compareByInspect");function wf(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}U(wf,"getOwnEnumerablePropertySymbols");function Ef(e){return Object.keys(e).concat(wf(e))}U(Ef,"getOwnEnumerableProperties");function ov(e){return e!==e}U(ov,"_isNaN");var ua=Number.isNaN||ov;function iv(e){var t=$e(e),r=["Array","Object","Function"];return r.indexOf(t)!==-1}U(iv,"isObjectType");function _f(e,t){var r=he(e,"operator"),n=he(e,"negate"),o=t[3],i=n?t[2]:t[1];if(r)return r;if(typeof i=="function"&&(i=i()),i=i||"",!!i&&!/\shave\s/.test(i)){var s=iv(o);return /\snot\s/.test(i)?s?"notDeepStrictEqual":"notStrictEqual":s?"deepStrictEqual":"strictEqual"}}U(_f,"getOperator");function ha(e){return e.name}U(ha,"getName");function ca(e){return Object.prototype.toString.call(e)==="[object RegExp]"}U(ca,"isRegExp");function it(e){return ["Number","BigInt"].includes($e(e))}U(it,"isNumeric");var{flag:$}=Tt;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){P.addProperty(e);});P.addProperty("not",function(){$(this,"negate",!0);});P.addProperty("deep",function(){$(this,"deep",!0);});P.addProperty("nested",function(){$(this,"nested",!0);});P.addProperty("own",function(){$(this,"own",!0);});P.addProperty("ordered",function(){$(this,"ordered",!0);});P.addProperty("any",function(){$(this,"any",!0),$(this,"all",!1);});P.addProperty("all",function(){$(this,"all",!0),$(this,"any",!1);});var wb={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function Sf(e,t){t&&$(this,"message",t),e=e.toLowerCase();var r=$(this,"object"),n=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ";let o=$e(r).toLowerCase();wb.function.includes(e)?this.assert(wb[e].includes(o),"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e):this.assert(e===o,"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e);}U(Sf,"an");P.addChainableMethod("an",Sf);P.addChainableMethod("a",Sf);function sv(e,t){return ua(e)&&ua(t)||e===t}U(sv,"SameValueZero");function bi(){$(this,"contains",!0);}U(bi,"includeChainingBehavior");function vi(e,t){t&&$(this,"message",t);var r=$(this,"object"),n=$e(r).toLowerCase(),o=$(this,"message"),i=$(this,"negate"),s=$(this,"ssfi"),a=$(this,"deep"),l=a?"deep ":"",c=a?$(this,"eql"):sv;o=o?o+": ":"";var u=!1;switch(n){case"string":u=r.indexOf(e)!==-1;break;case"weakset":if(a)throw new Ce(o+"unable to use .deep.include with WeakSet",void 0,s);u=r.has(e);break;case"map":r.forEach(function(h){u=u||c(h,e);});break;case"set":a?r.forEach(function(h){u=u||c(h,e);}):u=r.has(e);break;case"array":a?u=r.some(function(h){return c(h,e)}):u=r.indexOf(e)!==-1;break;default:if(e!==Object(e))throw new Ce(o+"the given combination of arguments ("+n+" and "+$e(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 "+$e(e).toLowerCase(),void 0,s);var f=Object.keys(e),p=null,d=0;if(f.forEach(function(h){var m=new P(r);if(Zt(this,m,!0),$(m,"lockSsfi",!0),!i||f.length===1){m.property(h,e[h]);return}try{m.property(h,e[h]);}catch(y){if(!jt.compatibleConstructor(y,Ce))throw y;p===null&&(p=y),d++;}},this),i&&f.length>1&&d===f.length)throw p;return}this.assert(u,"expected #{this} to "+l+"include "+Te(e),"expected #{this} to not "+l+"include "+Te(e));}U(vi,"include");P.addChainableMethod("include",vi,bi);P.addChainableMethod("contain",vi,bi);P.addChainableMethod("contains",vi,bi);P.addChainableMethod("includes",vi,bi);P.addProperty("ok",function(){this.assert($(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy");});P.addProperty("true",function(){this.assert($(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!$(this,"negate"));});P.addProperty("numeric",function(){let e=$(this,"object");this.assert(["Number","BigInt"].includes($e(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!$(this,"negate"));});P.addProperty("callable",function(){let e=$(this,"object"),t=$(this,"ssfi"),r=$(this,"message"),n=r?`${r}: `:"",o=$(this,"negate"),i=o?`${n}expected ${Te(e)} not to be a callable function`:`${n}expected ${Te(e)} to be a callable function`,s=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes($e(e));if(s&&o||!s&&!o)throw new Ce(i,void 0,t)});P.addProperty("false",function(){this.assert($(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!$(this,"negate"));});P.addProperty("null",function(){this.assert($(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null");});P.addProperty("undefined",function(){this.assert($(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined");});P.addProperty("NaN",function(){this.assert(ua($(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN");});function Tf(){var e=$(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist");}U(Tf,"assertExist");P.addProperty("exist",Tf);P.addProperty("exists",Tf);P.addProperty("empty",function(){var e=$(this,"object"),t=$(this,"ssfi"),r=$(this,"message"),n;switch(r=r?r+": ":"",$e(e).toLowerCase()){case"array":case"string":n=e.length;break;case"map":case"set":n=e.size;break;case"weakmap":case"weakset":throw new Ce(r+".empty was passed a weak collection",void 0,t);case"function":var o=r+".empty was passed a function "+ha(e);throw new Ce(o.trim(),void 0,t);default:if(e!==Object(e))throw new Ce(r+".empty was passed non-string primitive "+Te(e),void 0,t);n=Object.keys(e).length;}this.assert(n===0,"expected #{this} to be empty","expected #{this} not to be empty");});function Cf(){var e=$(this,"object"),t=$e(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments");}U(Cf,"checkArguments");P.addProperty("arguments",Cf);P.addProperty("Arguments",Cf);function ma(e,t){t&&$(this,"message",t);var r=$(this,"object");if($(this,"deep")){var n=$(this,"lockSsfi");$(this,"lockSsfi",!0),this.eql(e),$(this,"lockSsfi",n);}else this.assert(e===r,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0);}U(ma,"assertEqual");P.addMethod("equal",ma);P.addMethod("equals",ma);P.addMethod("eq",ma);function xf(e,t){t&&$(this,"message",t);var r=$(this,"eql");this.assert(r(e,$(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0);}U(xf,"assertEql");P.addMethod("eql",xf);P.addMethod("eqls",xf);function ga(e,t){t&&$(this,"message",t);var r=$(this,"object"),n=$(this,"doLength"),o=$(this,"message"),i=o?o+": ":"",s=$(this,"ssfi"),a=$e(r).toLowerCase(),l=$e(e).toLowerCase();if(n&&a!=="map"&&a!=="set"&&new P(r,o,s,!0).to.have.property("length"),!n&&a==="date"&&l!=="date")throw new Ce(i+"the argument to above must be a date",void 0,s);if(!it(e)&&(n||it(r)))throw new Ce(i+"the argument to above must be a number",void 0,s);if(!n&&a!=="date"&&!it(r)){var c=a==="string"?"'"+r+"'":r;throw new Ce(i+"expected "+c+" to be a number or a date",void 0,s)}if(n){var u="length",f;a==="map"||a==="set"?(u="size",f=r.size):f=r.length,this.assert(f>e,"expected #{this} to have a "+u+" above #{exp} but got #{act}","expected #{this} to not have a "+u+" above #{exp}",e,f);}else this.assert(r>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e);}U(ga,"assertAbove");P.addMethod("above",ga);P.addMethod("gt",ga);P.addMethod("greaterThan",ga);function ya(e,t){t&&$(this,"message",t);var r=$(this,"object"),n=$(this,"doLength"),o=$(this,"message"),i=o?o+": ":"",s=$(this,"ssfi"),a=$e(r).toLowerCase(),l=$e(e).toLowerCase(),c,u=!0;if(n&&a!=="map"&&a!=="set"&&new P(r,o,s,!0).to.have.property("length"),!n&&a==="date"&&l!=="date")c=i+"the argument to least must be a date";else if(!it(e)&&(n||it(r)))c=i+"the argument to least must be a number";else if(!n&&a!=="date"&&!it(r)){var f=a==="string"?"'"+r+"'":r;c=i+"expected "+f+" to be a number or a date";}else u=!1;if(u)throw new Ce(c,void 0,s);if(n){var p="length",d;a==="map"||a==="set"?(p="size",d=r.size):d=r.length,this.assert(d>=e,"expected #{this} to have a "+p+" at least #{exp} but got #{act}","expected #{this} to have a "+p+" below #{exp}",e,d);}else this.assert(r>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e);}U(ya,"assertLeast");P.addMethod("least",ya);P.addMethod("gte",ya);P.addMethod("greaterThanOrEqual",ya);function ba(e,t){t&&$(this,"message",t);var r=$(this,"object"),n=$(this,"doLength"),o=$(this,"message"),i=o?o+": ":"",s=$(this,"ssfi"),a=$e(r).toLowerCase(),l=$e(e).toLowerCase(),c,u=!0;if(n&&a!=="map"&&a!=="set"&&new P(r,o,s,!0).to.have.property("length"),!n&&a==="date"&&l!=="date")c=i+"the argument to below must be a date";else if(!it(e)&&(n||it(r)))c=i+"the argument to below must be a number";else if(!n&&a!=="date"&&!it(r)){var f=a==="string"?"'"+r+"'":r;c=i+"expected "+f+" to be a number or a date";}else u=!1;if(u)throw new Ce(c,void 0,s);if(n){var p="length",d;a==="map"||a==="set"?(p="size",d=r.size):d=r.length,this.assert(d<e,"expected #{this} to have a "+p+" below #{exp} but got #{act}","expected #{this} to not have a "+p+" below #{exp}",e,d);}else this.assert(r<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e);}U(ba,"assertBelow");P.addMethod("below",ba);P.addMethod("lt",ba);P.addMethod("lessThan",ba);function va(e,t){t&&$(this,"message",t);var r=$(this,"object"),n=$(this,"doLength"),o=$(this,"message"),i=o?o+": ":"",s=$(this,"ssfi"),a=$e(r).toLowerCase(),l=$e(e).toLowerCase(),c,u=!0;if(n&&a!=="map"&&a!=="set"&&new P(r,o,s,!0).to.have.property("length"),!n&&a==="date"&&l!=="date")c=i+"the argument to most must be a date";else if(!it(e)&&(n||it(r)))c=i+"the argument to most must be a number";else if(!n&&a!=="date"&&!it(r)){var f=a==="string"?"'"+r+"'":r;c=i+"expected "+f+" to be a number or a date";}else u=!1;if(u)throw new Ce(c,void 0,s);if(n){var p="length",d;a==="map"||a==="set"?(p="size",d=r.size):d=r.length,this.assert(d<=e,"expected #{this} to have a "+p+" at most #{exp} but got #{act}","expected #{this} to have a "+p+" above #{exp}",e,d);}else this.assert(r<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e);}U(va,"assertMost");P.addMethod("most",va);P.addMethod("lte",va);P.addMethod("lessThanOrEqual",va);P.addMethod("within",function(e,t,r){r&&$(this,"message",r);var n=$(this,"object"),o=$(this,"doLength"),i=$(this,"message"),s=i?i+": ":"",a=$(this,"ssfi"),l=$e(n).toLowerCase(),c=$e(e).toLowerCase(),u=$e(t).toLowerCase(),f,p=!0,d=c==="date"&&u==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(o&&l!=="map"&&l!=="set"&&new P(n,i,a,!0).to.have.property("length"),!o&&l==="date"&&(c!=="date"||u!=="date"))f=s+"the arguments to within must be dates";else if((!it(e)||!it(t))&&(o||it(n)))f=s+"the arguments to within must be numbers";else if(!o&&l!=="date"&&!it(n)){var h=l==="string"?"'"+n+"'":n;f=s+"expected "+h+" to be a number or a date";}else p=!1;if(p)throw new Ce(f,void 0,a);if(o){var m="length",y;l==="map"||l==="set"?(m="size",y=n.size):y=n.length,this.assert(y>=e&&y<=t,"expected #{this} to have a "+m+" within "+d,"expected #{this} to not have a "+m+" within "+d);}else this.assert(n>=e&&n<=t,"expected #{this} to be within "+d,"expected #{this} to not be within "+d);});function Af(e,t){t&&$(this,"message",t);var r=$(this,"object"),n=$(this,"ssfi"),o=$(this,"message");try{var i=r instanceof e;}catch(a){throw a instanceof TypeError?(o=o?o+": ":"",new Ce(o+"The instanceof assertion needs a constructor but "+$e(e)+" was given.",void 0,n)):a}var s=ha(e);s==null&&(s="an unnamed constructor"),this.assert(i,"expected #{this} to be an instance of "+s,"expected #{this} to not be an instance of "+s);}U(Af,"assertInstanceOf");P.addMethod("instanceof",Af);P.addMethod("instanceOf",Af);function Pf(e,t,r){r&&$(this,"message",r);var n=$(this,"nested"),o=$(this,"own"),i=$(this,"message"),s=$(this,"object"),a=$(this,"ssfi"),l=typeof e;if(i=i?i+": ":"",n){if(l!=="string")throw new Ce(i+"the argument to property must be a string when using nested syntax",void 0,a)}else if(l!=="string"&&l!=="number"&&l!=="symbol")throw new Ce(i+"the argument to property must be a string, number, or symbol",void 0,a);if(n&&o)throw new Ce(i+'The "nested" and "own" flags cannot be combined.',void 0,a);if(s==null)throw new Ce(i+"Target cannot be null or undefined.",void 0,a);var c=$(this,"deep"),u=$(this,"negate"),f=n?pf(s,e):null,p=n?f.value:s[e],d=c?$(this,"eql"):(y,g)=>y===g,h="";c&&(h+="deep "),o&&(h+="own "),n&&(h+="nested "),h+="property ";var m;o?m=Object.prototype.hasOwnProperty.call(s,e):n?m=f.exists:m=pa(s,e),(!u||arguments.length===1)&&this.assert(m,"expected #{this} to have "+h+Te(e),"expected #{this} to not have "+h+Te(e)),arguments.length>1&&this.assert(m&&d(t,p),"expected #{this} to have "+h+Te(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+h+Te(e)+" of #{act}",t,p),$(this,"object",p);}U(Pf,"assertProperty");P.addMethod("property",Pf);function Of(e,t,r){$(this,"own",!0),Pf.apply(this,arguments);}U(Of,"assertOwnProperty");P.addMethod("ownProperty",Of);P.addMethod("haveOwnProperty",Of);function Rf(e,t,r){typeof t=="string"&&(r=t,t=null),r&&$(this,"message",r);var n=$(this,"object"),o=Object.getOwnPropertyDescriptor(Object(n),e),i=$(this,"eql");o&&t?this.assert(i(t,o),"expected the own property descriptor for "+Te(e)+" on #{this} to match "+Te(t)+", got "+Te(o),"expected the own property descriptor for "+Te(e)+" on #{this} to not match "+Te(t),t,o,!0):this.assert(o,"expected #{this} to have an own property descriptor for "+Te(e),"expected #{this} to not have an own property descriptor for "+Te(e)),$(this,"object",o);}U(Rf,"assertOwnPropertyDescriptor");P.addMethod("ownPropertyDescriptor",Rf);P.addMethod("haveOwnPropertyDescriptor",Rf);function Mf(){$(this,"doLength",!0);}U(Mf,"assertLengthChain");function If(e,t){t&&$(this,"message",t);var r=$(this,"object"),n=$e(r).toLowerCase(),o=$(this,"message"),i=$(this,"ssfi"),s="length",a;switch(n){case"map":case"set":s="size",a=r.size;break;default:new P(r,o,i,!0).to.have.property("length"),a=r.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);}U(If,"assertLength");P.addChainableMethod("length",If,Mf);P.addChainableMethod("lengthOf",If,Mf);function Nf(e,t){t&&$(this,"message",t);var r=$(this,"object");this.assert(e.exec(r),"expected #{this} to match "+e,"expected #{this} not to match "+e);}U(Nf,"assertMatch");P.addMethod("match",Nf);P.addMethod("matches",Nf);P.addMethod("string",function(e,t){t&&$(this,"message",t);var r=$(this,"object"),n=$(this,"message"),o=$(this,"ssfi");new P(r,n,o,!0).is.a("string"),this.assert(~r.indexOf(e),"expected #{this} to contain "+Te(e),"expected #{this} to not contain "+Te(e));});function jf(e){var t=$(this,"object"),r=$e(t),n=$e(e),o=$(this,"ssfi"),i=$(this,"deep"),s,a="",l,c=!0,u=$(this,"message");u=u?u+": ":"";var f=u+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(r==="Map"||r==="Set")a=i?"deeply ":"",l=[],t.forEach(function(b,E){l.push(E);}),n!=="Array"&&(e=Array.prototype.slice.call(arguments));else {switch(l=Ef(t),n){case"Array":if(arguments.length>1)throw new Ce(f,void 0,o);break;case"Object":if(arguments.length>1)throw new Ce(f,void 0,o);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments);}e=e.map(function(b){return typeof b=="symbol"?b:String(b)});}if(!e.length)throw new Ce(u+"keys required",void 0,o);var p=e.length,d=$(this,"any"),h=$(this,"all"),m=e,y=i?$(this,"eql"):(b,E)=>b===E;if(!d&&!h&&(h=!0),d&&(c=m.some(function(b){return l.some(function(E){return y(b,E)})})),h&&(c=m.every(function(b){return l.some(function(E){return y(b,E)})}),$(this,"contains")||(c=c&&e.length==l.length)),p>1){e=e.map(function(b){return Te(b)});var g=e.pop();h&&(s=e.join(", ")+", and "+g),d&&(s=e.join(", ")+", or "+g);}else s=Te(e[0]);s=(p>1?"keys ":"key ")+s,s=($(this,"contains")?"contain ":"have ")+s,this.assert(c,"expected #{this} to "+a+s,"expected #{this} to not "+a+s,m.slice(0).sort(la),l.sort(la),!0);}U(jf,"assertKeys");P.addMethod("keys",jf);P.addMethod("key",jf);function wa(e,t,r){r&&$(this,"message",r);var n=$(this,"object"),o=$(this,"ssfi"),i=$(this,"message"),s=$(this,"negate")||!1;new P(n,i,o,!0).is.a("function"),(ca(e)||typeof e=="string")&&(t=e,e=null);let a,l=!1;try{n();}catch(b){l=!0,a=b;}var c=e===void 0&&t===void 0,u=!!(e&&t),f=!1,p=!1;if(c||!c&&!s){var d="an error";e instanceof Error?d="#{exp}":e&&(d=jt.getConstructorName(e));let b=a;if(a instanceof Error)b=a.toString();else if(typeof a=="string")b=a;else if(a&&(typeof a=="object"||typeof a=="function"))try{b=jt.getConstructorName(a);}catch{}this.assert(l,"expected #{this} to throw "+d,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),b);}if(e&&a){if(e instanceof Error){var h=jt.compatibleInstance(a,e);h===s&&(u&&s?f=!0:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a&&!s?" but #{act} was thrown":""),e.toString(),a.toString()));}var m=jt.compatibleConstructor(a,e);m===s&&(u&&s?f=!0:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&jt.getConstructorName(e),a instanceof Error?a.toString():a&&jt.getConstructorName(a)));}if(a&&t!==void 0&&t!==null){var y="including";ca(t)&&(y="matching");var g=jt.compatibleMessage(a,t);g===s&&(u&&s?p=!0:this.assert(s,"expected #{this} to throw error "+y+" #{exp} but got #{act}","expected #{this} to throw error not "+y+" #{exp}",t,jt.getMessage(a)));}f&&p&&this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&jt.getConstructorName(e),a instanceof Error?a.toString():a&&jt.getConstructorName(a)),$(this,"object",a);}U(wa,"assertThrows");P.addMethod("throw",wa);P.addMethod("throws",wa);P.addMethod("Throw",wa);function qf(e,t){t&&$(this,"message",t);var r=$(this,"object"),n=$(this,"itself"),o=typeof r=="function"&&!n?r.prototype[e]:r[e];this.assert(typeof o=="function","expected #{this} to respond to "+Te(e),"expected #{this} to not respond to "+Te(e));}U(qf,"respondTo");P.addMethod("respondTo",qf);P.addMethod("respondsTo",qf);P.addProperty("itself",function(){$(this,"itself",!0);});function $f(e,t){t&&$(this,"message",t);var r=$(this,"object"),n=e(r);this.assert(n,"expected #{this} to satisfy "+xn(e),"expected #{this} to not satisfy"+xn(e),!$(this,"negate"),n);}U($f,"satisfy");P.addMethod("satisfy",$f);P.addMethod("satisfies",$f);function kf(e,t,r){r&&$(this,"message",r);var n=$(this,"object"),o=$(this,"message"),i=$(this,"ssfi");new P(n,o,i,!0).is.numeric;let s="A `delta` value is required for `closeTo`";if(t==null)throw new Ce(o?`${o}: ${s}`:s,void 0,i);if(new P(t,o,i,!0).is.numeric,s="A `expected` value is required for `closeTo`",e==null)throw new Ce(o?`${o}: ${s}`:s,void 0,i);new P(e,o,i,!0).is.numeric;let a=U(l=>l<0n?-l:l,"abs");this.assert(a(n-e)<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t);}U(kf,"closeTo");P.addMethod("closeTo",kf);P.addMethod("approximately",kf);function av(e,t,r,n,o){let i=Array.from(t),s=Array.from(e);if(!n){if(s.length!==i.length)return !1;i=i.slice();}return s.every(function(a,l){if(o)return r?r(a,i[l]):a===i[l];if(!r){var c=i.indexOf(a);return c===-1?!1:(n||i.splice(c,1),!0)}return i.some(function(u,f){return r(a,u)?(n||i.splice(f,1),!0):!1})})}U(av,"isSubsetOf");P.addMethod("members",function(e,t){t&&$(this,"message",t);var r=$(this,"object"),n=$(this,"message"),o=$(this,"ssfi");new P(r,n,o,!0).to.be.iterable,new P(e,n,o,!0).to.be.iterable;var i=$(this,"contains"),s=$(this,"ordered"),a,l,c;i?(a=s?"an ordered superset":"a superset",l="expected #{this} to be "+a+" of #{exp}",c="expected #{this} to not be "+a+" of #{exp}"):(a=s?"ordered members":"members",l="expected #{this} to have the same "+a+" as #{exp}",c="expected #{this} to not have the same "+a+" as #{exp}");var u=$(this,"deep")?$(this,"eql"):void 0;this.assert(av(e,r,u,i,s),l,c,e,r,!0);});P.addProperty("iterable",function(e){e&&$(this,"message",e);var t=$(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t);});function lv(e,t){t&&$(this,"message",t);var r=$(this,"object"),n=$(this,"message"),o=$(this,"ssfi"),i=$(this,"contains"),s=$(this,"deep"),a=$(this,"eql");new P(e,n,o,!0).to.be.an("array"),i?this.assert(e.some(function(l){return r.indexOf(l)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,r):s?this.assert(e.some(function(l){return a(r,l)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,r):this.assert(e.indexOf(r)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,r);}U(lv,"oneOf");P.addMethod("oneOf",lv);function Df(e,t,r){r&&$(this,"message",r);var n=$(this,"object"),o=$(this,"message"),i=$(this,"ssfi");new P(n,o,i,!0).is.a("function");var s;t?(new P(e,o,i,!0).to.have.property(t),s=e[t]):(new P(e,o,i,!0).is.a("function"),s=e()),n();var a=t==null?e():e[t],l=t==null?s:"."+t;$(this,"deltaMsgObj",l),$(this,"initialDeltaValue",s),$(this,"finalDeltaValue",a),$(this,"deltaBehavior","change"),$(this,"realDelta",a!==s),this.assert(s!==a,"expected "+l+" to change","expected "+l+" to not change");}U(Df,"assertChanges");P.addMethod("change",Df);P.addMethod("changes",Df);function Lf(e,t,r){r&&$(this,"message",r);var n=$(this,"object"),o=$(this,"message"),i=$(this,"ssfi");new P(n,o,i,!0).is.a("function");var s;t?(new P(e,o,i,!0).to.have.property(t),s=e[t]):(new P(e,o,i,!0).is.a("function"),s=e()),new P(s,o,i,!0).is.a("number"),n();var a=t==null?e():e[t],l=t==null?s:"."+t;$(this,"deltaMsgObj",l),$(this,"initialDeltaValue",s),$(this,"finalDeltaValue",a),$(this,"deltaBehavior","increase"),$(this,"realDelta",a-s),this.assert(a-s>0,"expected "+l+" to increase","expected "+l+" to not increase");}U(Lf,"assertIncreases");P.addMethod("increase",Lf);P.addMethod("increases",Lf);function Bf(e,t,r){r&&$(this,"message",r);var n=$(this,"object"),o=$(this,"message"),i=$(this,"ssfi");new P(n,o,i,!0).is.a("function");var s;t?(new P(e,o,i,!0).to.have.property(t),s=e[t]):(new P(e,o,i,!0).is.a("function"),s=e()),new P(s,o,i,!0).is.a("number"),n();var a=t==null?e():e[t],l=t==null?s:"."+t;$(this,"deltaMsgObj",l),$(this,"initialDeltaValue",s),$(this,"finalDeltaValue",a),$(this,"deltaBehavior","decrease"),$(this,"realDelta",s-a),this.assert(a-s<0,"expected "+l+" to decrease","expected "+l+" to not decrease");}U(Bf,"assertDecreases");P.addMethod("decrease",Bf);P.addMethod("decreases",Bf);function uv(e,t){t&&$(this,"message",t);var r=$(this,"deltaMsgObj"),n=$(this,"initialDeltaValue"),o=$(this,"finalDeltaValue"),i=$(this,"deltaBehavior"),s=$(this,"realDelta"),a;i==="change"?a=Math.abs(o-n)===Math.abs(e):a=s===Math.abs(e),this.assert(a,"expected "+r+" to "+i+" by "+e,"expected "+r+" to not "+i+" by "+e);}U(uv,"assertDelta");P.addMethod("by",uv);P.addProperty("extensible",function(){var e=$(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible");});P.addProperty("sealed",function(){var e=$(this,"object"),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed");});P.addProperty("frozen",function(){var e=$(this,"object"),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen");});P.addProperty("finite",function(e){var t=$(this,"object");this.assert(typeof t=="number"&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number");});function Ar(e,t){return new P(e,t)}U(Ar,"expect");Ar.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"expect.fail()",new Ce(r,{actual:e,expected:t,operator:n},Ar.fail)};var cv={};sf(cv,{Should:()=>fv,should:()=>wi});function Ff(){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 P(this.valueOf(),null,e):new P(this,null,e)}U(e,"shouldGetter");function t(n){Object.defineProperty(this,"should",{value:n,enumerable:!0,configurable:!0,writable:!0});}U(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});var r={};return r.fail=function(n,o,i,s){throw arguments.length<2&&(i=n,n=void 0),i=i||"should.fail()",new Ce(i,{actual:n,expected:o,operator:s},r.fail)},r.equal=function(n,o,i){new P(n,i).to.equal(o);},r.Throw=function(n,o,i,s){new P(n,s).to.Throw(o,i);},r.exist=function(n,o){new P(n,o).to.exist;},r.not={},r.not.equal=function(n,o,i){new P(n,i).to.not.equal(o);},r.not.Throw=function(n,o,i,s){new P(n,s).to.not.Throw(o,i);},r.not.exist=function(n,o){new P(n,o).to.not.exist;},r.throw=r.Throw,r.not.throw=r.not.Throw,r}U(Ff,"loadShould");var wi=Ff,fv=Ff;function A(e,t){var r=new P(null,null,A,!0);r.assert(e,t,"[ negation message unavailable ]");}U(A,"assert");A.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"assert.fail()",new Ce(r,{actual:e,expected:t,operator:n},A.fail)};A.isOk=function(e,t){new P(e,t,A.isOk,!0).is.ok;};A.isNotOk=function(e,t){new P(e,t,A.isNotOk,!0).is.not.ok;};A.equal=function(e,t,r){var n=new P(e,r,A.equal,!0);n.assert(t==he(n,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0);};A.notEqual=function(e,t,r){var n=new P(e,r,A.notEqual,!0);n.assert(t!=he(n,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0);};A.strictEqual=function(e,t,r){new P(e,r,A.strictEqual,!0).to.equal(t);};A.notStrictEqual=function(e,t,r){new P(e,r,A.notStrictEqual,!0).to.not.equal(t);};A.deepEqual=A.deepStrictEqual=function(e,t,r){new P(e,r,A.deepEqual,!0).to.eql(t);};A.notDeepEqual=function(e,t,r){new P(e,r,A.notDeepEqual,!0).to.not.eql(t);};A.isAbove=function(e,t,r){new P(e,r,A.isAbove,!0).to.be.above(t);};A.isAtLeast=function(e,t,r){new P(e,r,A.isAtLeast,!0).to.be.least(t);};A.isBelow=function(e,t,r){new P(e,r,A.isBelow,!0).to.be.below(t);};A.isAtMost=function(e,t,r){new P(e,r,A.isAtMost,!0).to.be.most(t);};A.isTrue=function(e,t){new P(e,t,A.isTrue,!0).is.true;};A.isNotTrue=function(e,t){new P(e,t,A.isNotTrue,!0).to.not.equal(!0);};A.isFalse=function(e,t){new P(e,t,A.isFalse,!0).is.false;};A.isNotFalse=function(e,t){new P(e,t,A.isNotFalse,!0).to.not.equal(!1);};A.isNull=function(e,t){new P(e,t,A.isNull,!0).to.equal(null);};A.isNotNull=function(e,t){new P(e,t,A.isNotNull,!0).to.not.equal(null);};A.isNaN=function(e,t){new P(e,t,A.isNaN,!0).to.be.NaN;};A.isNotNaN=function(e,t){new P(e,t,A.isNotNaN,!0).not.to.be.NaN;};A.exists=function(e,t){new P(e,t,A.exists,!0).to.exist;};A.notExists=function(e,t){new P(e,t,A.notExists,!0).to.not.exist;};A.isUndefined=function(e,t){new P(e,t,A.isUndefined,!0).to.equal(void 0);};A.isDefined=function(e,t){new P(e,t,A.isDefined,!0).to.not.equal(void 0);};A.isCallable=function(e,t){new P(e,t,A.isCallable,!0).is.callable;};A.isNotCallable=function(e,t){new P(e,t,A.isNotCallable,!0).is.not.callable;};A.isObject=function(e,t){new P(e,t,A.isObject,!0).to.be.a("object");};A.isNotObject=function(e,t){new P(e,t,A.isNotObject,!0).to.not.be.a("object");};A.isArray=function(e,t){new P(e,t,A.isArray,!0).to.be.an("array");};A.isNotArray=function(e,t){new P(e,t,A.isNotArray,!0).to.not.be.an("array");};A.isString=function(e,t){new P(e,t,A.isString,!0).to.be.a("string");};A.isNotString=function(e,t){new P(e,t,A.isNotString,!0).to.not.be.a("string");};A.isNumber=function(e,t){new P(e,t,A.isNumber,!0).to.be.a("number");};A.isNotNumber=function(e,t){new P(e,t,A.isNotNumber,!0).to.not.be.a("number");};A.isNumeric=function(e,t){new P(e,t,A.isNumeric,!0).is.numeric;};A.isNotNumeric=function(e,t){new P(e,t,A.isNotNumeric,!0).is.not.numeric;};A.isFinite=function(e,t){new P(e,t,A.isFinite,!0).to.be.finite;};A.isBoolean=function(e,t){new P(e,t,A.isBoolean,!0).to.be.a("boolean");};A.isNotBoolean=function(e,t){new P(e,t,A.isNotBoolean,!0).to.not.be.a("boolean");};A.typeOf=function(e,t,r){new P(e,r,A.typeOf,!0).to.be.a(t);};A.notTypeOf=function(e,t,r){new P(e,r,A.notTypeOf,!0).to.not.be.a(t);};A.instanceOf=function(e,t,r){new P(e,r,A.instanceOf,!0).to.be.instanceOf(t);};A.notInstanceOf=function(e,t,r){new P(e,r,A.notInstanceOf,!0).to.not.be.instanceOf(t);};A.include=function(e,t,r){new P(e,r,A.include,!0).include(t);};A.notInclude=function(e,t,r){new P(e,r,A.notInclude,!0).not.include(t);};A.deepInclude=function(e,t,r){new P(e,r,A.deepInclude,!0).deep.include(t);};A.notDeepInclude=function(e,t,r){new P(e,r,A.notDeepInclude,!0).not.deep.include(t);};A.nestedInclude=function(e,t,r){new P(e,r,A.nestedInclude,!0).nested.include(t);};A.notNestedInclude=function(e,t,r){new P(e,r,A.notNestedInclude,!0).not.nested.include(t);};A.deepNestedInclude=function(e,t,r){new P(e,r,A.deepNestedInclude,!0).deep.nested.include(t);};A.notDeepNestedInclude=function(e,t,r){new P(e,r,A.notDeepNestedInclude,!0).not.deep.nested.include(t);};A.ownInclude=function(e,t,r){new P(e,r,A.ownInclude,!0).own.include(t);};A.notOwnInclude=function(e,t,r){new P(e,r,A.notOwnInclude,!0).not.own.include(t);};A.deepOwnInclude=function(e,t,r){new P(e,r,A.deepOwnInclude,!0).deep.own.include(t);};A.notDeepOwnInclude=function(e,t,r){new P(e,r,A.notDeepOwnInclude,!0).not.deep.own.include(t);};A.match=function(e,t,r){new P(e,r,A.match,!0).to.match(t);};A.notMatch=function(e,t,r){new P(e,r,A.notMatch,!0).to.not.match(t);};A.property=function(e,t,r){new P(e,r,A.property,!0).to.have.property(t);};A.notProperty=function(e,t,r){new P(e,r,A.notProperty,!0).to.not.have.property(t);};A.propertyVal=function(e,t,r,n){new P(e,n,A.propertyVal,!0).to.have.property(t,r);};A.notPropertyVal=function(e,t,r,n){new P(e,n,A.notPropertyVal,!0).to.not.have.property(t,r);};A.deepPropertyVal=function(e,t,r,n){new P(e,n,A.deepPropertyVal,!0).to.have.deep.property(t,r);};A.notDeepPropertyVal=function(e,t,r,n){new P(e,n,A.notDeepPropertyVal,!0).to.not.have.deep.property(t,r);};A.ownProperty=function(e,t,r){new P(e,r,A.ownProperty,!0).to.have.own.property(t);};A.notOwnProperty=function(e,t,r){new P(e,r,A.notOwnProperty,!0).to.not.have.own.property(t);};A.ownPropertyVal=function(e,t,r,n){new P(e,n,A.ownPropertyVal,!0).to.have.own.property(t,r);};A.notOwnPropertyVal=function(e,t,r,n){new P(e,n,A.notOwnPropertyVal,!0).to.not.have.own.property(t,r);};A.deepOwnPropertyVal=function(e,t,r,n){new P(e,n,A.deepOwnPropertyVal,!0).to.have.deep.own.property(t,r);};A.notDeepOwnPropertyVal=function(e,t,r,n){new P(e,n,A.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,r);};A.nestedProperty=function(e,t,r){new P(e,r,A.nestedProperty,!0).to.have.nested.property(t);};A.notNestedProperty=function(e,t,r){new P(e,r,A.notNestedProperty,!0).to.not.have.nested.property(t);};A.nestedPropertyVal=function(e,t,r,n){new P(e,n,A.nestedPropertyVal,!0).to.have.nested.property(t,r);};A.notNestedPropertyVal=function(e,t,r,n){new P(e,n,A.notNestedPropertyVal,!0).to.not.have.nested.property(t,r);};A.deepNestedPropertyVal=function(e,t,r,n){new P(e,n,A.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,r);};A.notDeepNestedPropertyVal=function(e,t,r,n){new P(e,n,A.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,r);};A.lengthOf=function(e,t,r){new P(e,r,A.lengthOf,!0).to.have.lengthOf(t);};A.hasAnyKeys=function(e,t,r){new P(e,r,A.hasAnyKeys,!0).to.have.any.keys(t);};A.hasAllKeys=function(e,t,r){new P(e,r,A.hasAllKeys,!0).to.have.all.keys(t);};A.containsAllKeys=function(e,t,r){new P(e,r,A.containsAllKeys,!0).to.contain.all.keys(t);};A.doesNotHaveAnyKeys=function(e,t,r){new P(e,r,A.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t);};A.doesNotHaveAllKeys=function(e,t,r){new P(e,r,A.doesNotHaveAllKeys,!0).to.not.have.all.keys(t);};A.hasAnyDeepKeys=function(e,t,r){new P(e,r,A.hasAnyDeepKeys,!0).to.have.any.deep.keys(t);};A.hasAllDeepKeys=function(e,t,r){new P(e,r,A.hasAllDeepKeys,!0).to.have.all.deep.keys(t);};A.containsAllDeepKeys=function(e,t,r){new P(e,r,A.containsAllDeepKeys,!0).to.contain.all.deep.keys(t);};A.doesNotHaveAnyDeepKeys=function(e,t,r){new P(e,r,A.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t);};A.doesNotHaveAllDeepKeys=function(e,t,r){new P(e,r,A.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t);};A.throws=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null);var o=new P(e,n,A.throws,!0).to.throw(t,r);return he(o,"object")};A.doesNotThrow=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null),new P(e,n,A.doesNotThrow,!0).to.not.throw(t,r);};A.operator=function(e,t,r,n){var o;switch(t){case"==":o=e==r;break;case"===":o=e===r;break;case">":o=e>r;break;case">=":o=e>=r;break;case"<":o=e<r;break;case"<=":o=e<=r;break;case"!=":o=e!=r;break;case"!==":o=e!==r;break;default:throw n=n&&n+": ",new Ce(n+'Invalid operator "'+t+'"',void 0,A.operator)}var i=new P(o,n,A.operator,!0);i.assert(he(i,"object")===!0,"expected "+Te(e)+" to be "+t+" "+Te(r),"expected "+Te(e)+" to not be "+t+" "+Te(r));};A.closeTo=function(e,t,r,n){new P(e,n,A.closeTo,!0).to.be.closeTo(t,r);};A.approximately=function(e,t,r,n){new P(e,n,A.approximately,!0).to.be.approximately(t,r);};A.sameMembers=function(e,t,r){new P(e,r,A.sameMembers,!0).to.have.same.members(t);};A.notSameMembers=function(e,t,r){new P(e,r,A.notSameMembers,!0).to.not.have.same.members(t);};A.sameDeepMembers=function(e,t,r){new P(e,r,A.sameDeepMembers,!0).to.have.same.deep.members(t);};A.notSameDeepMembers=function(e,t,r){new P(e,r,A.notSameDeepMembers,!0).to.not.have.same.deep.members(t);};A.sameOrderedMembers=function(e,t,r){new P(e,r,A.sameOrderedMembers,!0).to.have.same.ordered.members(t);};A.notSameOrderedMembers=function(e,t,r){new P(e,r,A.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t);};A.sameDeepOrderedMembers=function(e,t,r){new P(e,r,A.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t);};A.notSameDeepOrderedMembers=function(e,t,r){new P(e,r,A.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t);};A.includeMembers=function(e,t,r){new P(e,r,A.includeMembers,!0).to.include.members(t);};A.notIncludeMembers=function(e,t,r){new P(e,r,A.notIncludeMembers,!0).to.not.include.members(t);};A.includeDeepMembers=function(e,t,r){new P(e,r,A.includeDeepMembers,!0).to.include.deep.members(t);};A.notIncludeDeepMembers=function(e,t,r){new P(e,r,A.notIncludeDeepMembers,!0).to.not.include.deep.members(t);};A.includeOrderedMembers=function(e,t,r){new P(e,r,A.includeOrderedMembers,!0).to.include.ordered.members(t);};A.notIncludeOrderedMembers=function(e,t,r){new P(e,r,A.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t);};A.includeDeepOrderedMembers=function(e,t,r){new P(e,r,A.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t);};A.notIncludeDeepOrderedMembers=function(e,t,r){new P(e,r,A.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t);};A.oneOf=function(e,t,r){new P(e,r,A.oneOf,!0).to.be.oneOf(t);};A.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${Te(e)} to be an iterable`:`expected ${Te(e)} to be an iterable`,new Ce(t,void 0,A.isIterable)};A.changes=function(e,t,r,n){arguments.length===3&&typeof t=="function"&&(n=r,r=null),new P(e,n,A.changes,!0).to.change(t,r);};A.changesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var i=n;n=r,o=i;}else arguments.length===3&&(n=r,r=null);new P(e,o,A.changesBy,!0).to.change(t,r).by(n);};A.doesNotChange=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new P(e,n,A.doesNotChange,!0).to.not.change(t,r)};A.changesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var i=n;n=r,o=i;}else arguments.length===3&&(n=r,r=null);new P(e,o,A.changesButNotBy,!0).to.change(t,r).but.not.by(n);};A.increases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new P(e,n,A.increases,!0).to.increase(t,r)};A.increasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var i=n;n=r,o=i;}else arguments.length===3&&(n=r,r=null);new P(e,o,A.increasesBy,!0).to.increase(t,r).by(n);};A.doesNotIncrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new P(e,n,A.doesNotIncrease,!0).to.not.increase(t,r)};A.increasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var i=n;n=r,o=i;}else arguments.length===3&&(n=r,r=null);new P(e,o,A.increasesButNotBy,!0).to.increase(t,r).but.not.by(n);};A.decreases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new P(e,n,A.decreases,!0).to.decrease(t,r)};A.decreasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var i=n;n=r,o=i;}else arguments.length===3&&(n=r,r=null);new P(e,o,A.decreasesBy,!0).to.decrease(t,r).by(n);};A.doesNotDecrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new P(e,n,A.doesNotDecrease,!0).to.not.decrease(t,r)};A.doesNotDecreaseBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var i=n;n=r,o=i;}else arguments.length===3&&(n=r,r=null);return new P(e,o,A.doesNotDecreaseBy,!0).to.not.decrease(t,r).by(n)};A.decreasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var i=n;n=r,o=i;}else arguments.length===3&&(n=r,r=null);new P(e,o,A.decreasesButNotBy,!0).to.decrease(t,r).but.not.by(n);};A.ifError=function(e){if(e)throw e};A.isExtensible=function(e,t){new P(e,t,A.isExtensible,!0).to.be.extensible;};A.isNotExtensible=function(e,t){new P(e,t,A.isNotExtensible,!0).to.not.be.extensible;};A.isSealed=function(e,t){new P(e,t,A.isSealed,!0).to.be.sealed;};A.isNotSealed=function(e,t){new P(e,t,A.isNotSealed,!0).to.not.be.sealed;};A.isFrozen=function(e,t){new P(e,t,A.isFrozen,!0).to.be.frozen;};A.isNotFrozen=function(e,t){new P(e,t,A.isNotFrozen,!0).to.not.be.frozen;};A.isEmpty=function(e,t){new P(e,t,A.isEmpty,!0).to.be.empty;};A.isNotEmpty=function(e,t){new P(e,t,A.isNotEmpty,!0).to.not.be.empty;};U(function e(t,r){return A[r]=A[t],e},"alias")("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");var Eb=[];function hr(e){let t={AssertionError:Ce,util:Tt,config:Ct,expect:Ar,assert:A,Assertion:P,...cv};return ~Eb.indexOf(e)||(e(t,Tt),Eb.push(e)),t}U(hr,"use");var Ea=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _a(e,t){if(!e)throw new Error(t)}function uo(e,t){return typeof t===e}function MN(e){return e instanceof Promise}function Uf(e,t,r){Object.defineProperty(e,t,r);}function co(e,t,r){Object.defineProperty(e,t,{value:r});}var _i=Symbol.for("tinyspy:spy"),IN=new Set,NN=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[];},jN=e=>(Uf(e,_i,{value:{reset:()=>NN(e[_i])}}),e[_i]),Sa=e=>e[_i]||jN(e);function qN(e){_a(uo("function",e)||uo("undefined",e),"cannot spy on a non-function value");let t=function(...n){let o=Sa(t);o.called=!0,o.callCount++,o.calls.push(n);let i=o.next.shift();if(i){o.results.push(i);let[u,f]=i;if(u==="ok")return f;throw f}let s,a="ok",l=o.results.length;if(o.impl)try{new.target?s=Reflect.construct(o.impl,n,new.target):s=o.impl.apply(this,n),a="ok";}catch(u){throw s=u,a="error",o.results.push([a,u]),u}let c=[a,s];return MN(s)&&s.then(u=>o.resolves[l]=["ok",u],u=>o.resolves[l]=["error",u]),o.results.push(c),s};co(t,"_isMockFunction",!0),co(t,"length",e?e.length:0),co(t,"name",e&&e.name||"spy");let r=Sa(t);return r.reset(),r.impl=e,t}var pv=(e,t)=>Object.getOwnPropertyDescriptor(e,t),hv=(e,t)=>{t!=null&&typeof t=="function"&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype);};function zf(e,t,r){_a(!uo("undefined",e),"spyOn could not find an object to spy upon"),_a(uo("object",e)||uo("function",e),"cannot spyOn on a primitive value");let[n,o]=(()=>{if(!uo("object",t))return [t,"value"];if("getter"in t&&"setter"in t)throw new Error("cannot spy on both getter and setter");if("getter"in t)return [t.getter,"get"];if("setter"in t)return [t.setter,"set"];throw new Error("specify getter or setter to spy on")})(),i=pv(e,n),s=Object.getPrototypeOf(e),a=s&&pv(s,n),l=i||a;_a(l||n in e,`${String(n)} does not exist`);let c=!1;o==="value"&&l&&!l.value&&l.get&&(o="get",c=!0,r=l.get());let u;l?u=l[o]:o!=="value"?u=()=>e[n]:u=e[n];let f=m=>{let{value:y,...g}=l||{configurable:!0,writable:!0};o!=="value"&&delete g.writable,g[o]=m,Uf(e,n,g);},p=()=>l?Uf(e,n,l):f(u);r||(r=u);let d=qN(r);o==="value"&&hv(d,u);let h=d[_i];return co(h,"restore",p),co(h,"getOriginal",()=>c?u():u),co(h,"willCall",m=>(h.impl=m,d)),f(c?()=>(hv(d,r),d):d),IN.add(d),d}var Si=new Set;function Ta(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction}function mv(e,t,r){let o=r?{[{get:"getter",set:"setter"}[r]]:t}:t,i=zf(e,o);return gv(i)}var kN=0;function gv(e){let t=e,r,n=[],o=[],i=[],s=Sa(e),a={get calls(){return s.calls},get contexts(){return o},get instances(){return n},get invocationCallOrder(){return i},get results(){return s.results.map(([d,h])=>({type:d==="error"?"throw":"return",value:h}))},get settledResults(){return s.resolves.map(([d,h])=>({type:d==="error"?"rejected":"fulfilled",value:h}))},get lastCall(){return s.calls[s.calls.length-1]}},l=[],c=!1;function u(...d){return n.push(this),o.push(this),i.push(++kN),(c?r:l.shift()||r||s.getOriginal()||(()=>{})).apply(this,d)}let f=t.name;t.getMockName=()=>f||"vi.fn()",t.mockName=d=>(f=d,t),t.mockClear=()=>(s.reset(),n=[],o=[],i=[],t),t.mockReset=()=>(t.mockClear(),r=()=>{},l=[],t),t.mockRestore=()=>(t.mockReset(),s.restore(),r=void 0,t),t.getMockImplementation=()=>r,t.mockImplementation=d=>(r=d,s.willCall(u),t),t.mockImplementationOnce=d=>(l.push(d),t);function p(d,h){let m=r;r=d,s.willCall(u),c=!0;let y=()=>{r=m,c=!1;},g=h();return g instanceof Promise?g.then(()=>(y(),t)):(y(),t)}return t.withImplementation=p,t.mockReturnThis=()=>t.mockImplementation(function(){return this}),t.mockReturnValue=d=>t.mockImplementation(()=>d),t.mockReturnValueOnce=d=>t.mockImplementationOnce(()=>d),t.mockResolvedValue=d=>t.mockImplementation(()=>Promise.resolve(d)),t.mockResolvedValueOnce=d=>t.mockImplementationOnce(()=>Promise.resolve(d)),t.mockRejectedValue=d=>t.mockImplementation(()=>Promise.reject(d)),t.mockRejectedValueOnce=d=>t.mockImplementationOnce(()=>Promise.reject(d)),Object.defineProperty(t,"mock",{get:()=>a}),s.willCall(u),Si.add(t),t}function yv(e){let t=gv(zf({spy:e||function(){}},"spy"));return e&&t.mockImplementation(e),t}var Ca=Symbol.for("matchers-object"),Ci=Symbol.for("$$jest-matchers-object"),xi=Symbol.for("expect-global"),Na=Symbol.for("asymmetric-matchers-object");if(!Object.prototype.hasOwnProperty.call(globalThis,Ca)){let e=new WeakMap,t=Object.create(null),r=[],n=Object.create(null);Object.defineProperty(globalThis,Ca,{get:()=>e}),Object.defineProperty(globalThis,Ci,{configurable:!0,get:()=>({state:e.get(globalThis[xi]),matchers:t,customEqualityTesters:r})}),Object.defineProperty(globalThis,Na,{get:()=>n});}function fo(e){return globalThis[Ca].get(e)}function ja(e,t){let r=globalThis[Ca],n=r.get(t)||{},o=Object.defineProperties(n,{...Object.getOwnPropertyDescriptors(n),...Object.getOwnPropertyDescriptors(e)});r.set(t,o);}var xa=Le.green,Kf=Le.red,DN=Le.inverse,LN=Le.bold,Jr=Le.dim;function BN(e,t="received",r="expected",n={}){let{comment:o="",isDirectExpectCall:i=!1,isNot:s=!1,promise:a="",secondArgument:l="",expectedColor:c=xa,receivedColor:u=Kf,secondArgumentColor:f=xa}=n,p="",d="expect";return !i&&t!==""&&(p+=Jr(`${d}(`)+u(t),d=")"),a!==""&&(p+=Jr(`${d}.`)+a,d=""),s&&(p+=`${Jr(`${d}.`)}not`,d=""),e.includes(".")?d+=e:(p+=Jr(`${d}.`)+e,d=""),r===""?d+="()":(p+=Jr(`${d}(`)+c(r),l&&(p+=Jr(", ")+f(l)),d=")"),o!==""&&(d+=` // ${o}`),d!==""&&(p+=Jr(d)),p}var FN="\xB7";function xv(e){return e.replace(/\s+$/gm,t=>FN.repeat(t.length))}function UN(e){return Kf(xv(dt(e)))}function zN(e){return xa(xv(dt(e)))}function Av(){return {EXPECTED_COLOR:xa,RECEIVED_COLOR:Kf,INVERTED_COLOR:DN,BOLD_WEIGHT:LN,DIM_COLOR:Jr,diff:Sn,matcherHint:BN,printReceived:UN,printExpected:zN,printDiffOrStringify:ta}}function Pv(e){if(!Array.isArray(e))throw new TypeError(`expect.customEqualityTesters: Must be set to an array of Testers. Was given "${yn(e)}"`);globalThis[Ci].customEqualityTesters.push(...e);}function Yf(){return globalThis[Ci].customEqualityTesters}function _e(e,t,r,n){return r=r||[],Ov(e,t,[],[],r,n?Rv:HN)}function bv(e){return !!e&&typeof e=="object"&&"asymmetricMatch"in e&&er("Function",e.asymmetricMatch)}function VN(e,t){let r=bv(e),n=bv(t);if(!(r&&n)){if(r)return e.asymmetricMatch(t);if(n)return t.asymmetricMatch(e)}}function Ov(e,t,r,n,o,i){let s=!0,a=VN(e,t);if(a!==void 0)return a;let l={equals:_e};for(let h=0;h<o.length;h++){let m=o[h].call(l,e,t,o);if(m!==void 0)return m}if(e instanceof Error&&t instanceof Error)return e.message===t.message;if(typeof URL=="function"&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return !0;if(e===null||t===null)return e===t;let c=Object.prototype.toString.call(e);if(c!==Object.prototype.toString.call(t))return !1;switch(c){case"[object Boolean]":case"[object String]":case"[object Number]":return typeof e!=typeof t?!1:typeof e!="object"&&typeof t!="object"?Object.is(e,t):Object.is(e.valueOf(),t.valueOf());case"[object Date]":{let h=+e,m=+t;return h===m||Number.isNaN(h)&&Number.isNaN(m)}case"[object RegExp]":return e.source===t.source&&e.flags===t.flags}if(typeof e!="object"||typeof t!="object")return !1;if(wv(e)&&wv(t))return e.isEqualNode(t);let u=r.length;for(;u--;){if(r[u]===e)return n[u]===t;if(n[u]===t)return !1}if(r.push(e),n.push(t),c==="[object Array]"&&e.length!==t.length)return !1;let f=vv(e,i),p,d=f.length;if(vv(t,i).length!==d)return !1;for(;d--;)if(p=f[d],s=i(t,p)&&Ov(e[p],t[p],r,n,o,i),!s)return !1;return r.pop(),n.pop(),s}function vv(e,t){let r=[];for(let n in e)t(e,n)&&r.push(n);return r.concat(Object.getOwnPropertySymbols(e).filter(n=>Object.getOwnPropertyDescriptor(e,n).enumerable))}function HN(e,t){return Rv(e,t)&&e[t]!==void 0}function Rv(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function er(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function wv(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&"nodeName"in e&&typeof e.nodeName=="string"&&"isEqualNode"in e&&typeof e.isEqualNode=="function"}var Mv="@@__IMMUTABLE_KEYED__@@",Iv="@@__IMMUTABLE_SET__@@",WN="@@__IMMUTABLE_LIST__@@",qa="@@__IMMUTABLE_ORDERED__@@",GN="@@__IMMUTABLE_RECORD__@@";function KN(e){return !!(e&&e[Mv]&&!e[qa])}function YN(e){return !!(e&&e[Iv]&&!e[qa])}function $a(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function JN(e){return !!(e&&$a(e)&&e[WN])}function XN(e){return !!(e&&$a(e)&&e[Mv]&&e[qa])}function QN(e){return !!(e&&$a(e)&&e[Iv]&&e[qa])}function ZN(e){return !!(e&&$a(e)&&e[GN])}var Nv=Symbol.iterator;function Ev(e){return !!(e!=null&&e[Nv])}function xt(e,t,r=[],n=[],o=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!Ev(e)||!Ev(t))return;if(e.constructor!==t.constructor)return !1;let i=n.length;for(;i--;)if(n[i]===e)return o[i]===t;n.push(e),o.push(t);let s=[...r.filter(c=>c!==xt),a];function a(c,u){return xt(c,u,[...r],[...n],[...o])}if(e.size!==void 0){if(e.size!==t.size)return !1;if(er("Set",e)||YN(e)){let c=!0;for(let u of e)if(!t.has(u)){let f=!1;for(let p of t)_e(u,p,s)===!0&&(f=!0);if(f===!1){c=!1;break}}return n.pop(),o.pop(),c}else if(er("Map",e)||KN(e)){let c=!0;for(let u of e)if(!t.has(u[0])||!_e(u[1],t.get(u[0]),s)){let f=!1;for(let p of t){let d=_e(u[0],p[0],s),h=!1;d===!0&&(h=_e(u[1],p[1],s)),h===!0&&(f=!0);}if(f===!1){c=!1;break}}return n.pop(),o.pop(),c}}let l=t[Nv]();for(let c of e){let u=l.next();if(u.done||!_e(c,u.value,s))return !1}if(!l.next().done)return !1;if(!JN(e)&&!XN(e)&&!QN(e)&&!ZN(e)){let c=Object.entries(e),u=Object.entries(t);if(!_e(c,u))return !1}return n.pop(),o.pop(),!0}function Jf(e,t){return !e||typeof e!="object"||e===Object.prototype?!1:Object.prototype.hasOwnProperty.call(e,t)||Jf(Object.getPrototypeOf(e),t)}function ej(e){return Sr(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}function On(e,t,r=[]){let n=r.filter(i=>i!==On),o=(i=new WeakMap)=>(s,a)=>{if(ej(a))return Object.keys(a).every(l=>{if(a[l]!=null&&typeof a[l]=="object"){if(i.has(a[l]))return _e(s[l],a[l],n);i.set(a[l],!0);}let c=s!=null&&Jf(s,l)&&_e(s[l],a[l],[...n,o(i)]);return i.delete(a[l]),c})};return o()(e,t)}function _v(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return !1}function Sv(e,t){let r=e,n=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{r=new DataView(e),n=new DataView(t);}catch{return}}if(r.byteLength!==n.byteLength)return !1;for(let o=0;o<r.byteLength;o++)if(r.getUint8(o)!==n.getUint8(o))return !1;return !0}function Hf(e,t,r=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let n=Object.keys(e),o=Object.keys(t),i=r.filter(s=>s!==Hf);return _e(e,t,i,!0)&&_e(n,o)}function tj(e,t="#{this}",r="#{exp}"){let n=`expected ${t} to be ${r} // Object.is equality`;return ["toStrictEqual","toEqual"].includes(e)?`${n}
|
|
86
|
+
|
|
87
|
+
If it should pass with deep equality, replace "toBe" with "${e}"
|
|
88
|
+
|
|
89
|
+
Expected: ${t}
|
|
90
|
+
Received: serializes to the same string
|
|
91
|
+
`:n}function rj(e,t){return `${t} ${e}${t===1?"":"s"}`}function Vf(e){return [...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>{var r;return (r=Object.getOwnPropertyDescriptor(e,t))==null?void 0:r.enumerable})]}function nj(e,t,r){let n=0,o=(i=new WeakMap)=>(s,a)=>{if(Array.isArray(s)){if(Array.isArray(a)&&a.length===s.length)return a.map((l,c)=>o(i)(s[c],l))}else {if(s instanceof Date)return s;if(Sr(s)&&Sr(a)){if(_e(s,a,[...r,xt,On]))return a;let l={};i.set(s,l),typeof s.constructor=="function"&&typeof s.constructor.name=="string"&&Object.defineProperty(l,"constructor",{enumerable:!1,value:s.constructor});for(let c of Vf(s))Jf(a,c)?l[c]=i.has(s[c])?i.get(s[c]):o(i)(s[c],a[c]):i.has(s[c])||(n+=1,Sr(s[c])&&(n+=Vf(s[c]).length),o(i)(s[c],a[c]));if(Vf(l).length>0)return l}}return s};return {subset:o()(e,t),stripped:n}}var mr=class{constructor(t,r=!1){this.sample=t,this.inverse=r;}$$typeof=Symbol.for("jest.asymmetricMatcher");getMatcherContext(t){return {...fo(t||globalThis[xi]),equals:_e,isNot:this.inverse,customTesters:Yf(),utils:{...Av(),diff:Sn,stringify:dt,iterableEquality:xt,subsetEquality:On}}}[Symbol.for("chai/inspect")](t){let r=dt(this,t.depth,{min:!0});return r.length<=t.truncate?r:`${this.toString()}{\u2026}`}},Aa=class extends mr{constructor(t,r=!1){if(!er("String",t))throw new Error("Expected is not a string");super(t,r);}asymmetricMatch(t){let r=er("String",t)&&t.includes(this.sample);return this.inverse?!r:r}toString(){return `String${this.inverse?"Not":""}Containing`}getExpectedType(){return "string"}},Wf=class extends mr{asymmetricMatch(t){return t!=null}toString(){return "Anything"}toAsymmetricMatcher(){return "Anything"}},Pa=class extends mr{constructor(t,r=!1){super(t,r);}getPrototype(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.constructor.prototype===t?null:t.constructor.prototype}hasProperty(t,r){return t?Object.prototype.hasOwnProperty.call(t,r)?!0:this.hasProperty(this.getPrototype(t),r):!1}asymmetricMatch(t){if(typeof this.sample!="object")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let r=!0,n=this.getMatcherContext();for(let o in this.sample)if(!this.hasProperty(t,o)||!_e(this.sample[o],t[o],n.customTesters)){r=!1;break}return this.inverse?!r:r}toString(){return `Object${this.inverse?"Not":""}Containing`}getExpectedType(){return "object"}},Oa=class extends mr{constructor(t,r=!1){super(t,r);}asymmetricMatch(t){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let r=this.getMatcherContext(),n=this.sample.length===0||Array.isArray(t)&&this.sample.every(o=>t.some(i=>_e(o,i,r.customTesters)));return this.inverse?!n:n}toString(){return `Array${this.inverse?"Not":""}Containing`}getExpectedType(){return "array"}},Gf=class extends mr{constructor(t){if(typeof t>"u")throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(t);}fnNameFor(t){if(t.name)return t.name;let n=Function.prototype.toString.call(t).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return n?n[1]:"<anonymous>"}asymmetricMatch(t){return this.sample===String?typeof t=="string"||t instanceof String:this.sample===Number?typeof t=="number"||t instanceof Number:this.sample===Function?typeof t=="function"||t instanceof Function:this.sample===Boolean?typeof t=="boolean"||t instanceof Boolean:this.sample===BigInt?typeof t=="bigint"||t instanceof BigInt:this.sample===Symbol?typeof t=="symbol"||t instanceof Symbol:this.sample===Object?typeof t=="object":t instanceof this.sample}toString(){return "Any"}getExpectedType(){return this.sample===String?"string":this.sample===Number?"number":this.sample===Function?"function":this.sample===Object?"object":this.sample===Boolean?"boolean":this.fnNameFor(this.sample)}toAsymmetricMatcher(){return `Any<${this.fnNameFor(this.sample)}>`}},Ra=class extends mr{constructor(t,r=!1){if(!er("String",t)&&!er("RegExp",t))throw new Error("Expected is not a String or a RegExp");super(new RegExp(t),r);}asymmetricMatch(t){let r=er("String",t)&&this.sample.test(t);return this.inverse?!r:r}toString(){return `String${this.inverse?"Not":""}Matching`}getExpectedType(){return "string"}},Ma=class extends mr{precision;constructor(t,r=2,n=!1){if(!er("Number",t))throw new Error("Expected is not a Number");if(!er("Number",r))throw new Error("Precision is not a Number");super(t),this.inverse=n,this.precision=r;}asymmetricMatch(t){if(!er("Number",t))return !1;let r=!1;return t===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?r=!0:r=Math.abs(this.sample-t)<10**-this.precision/2,this.inverse?!r:r}toString(){return `Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return "number"}toAsymmetricMatcher(){return [this.toString(),this.sample,`(${rj("digit",this.precision)})`].join(" ")}},jv=(e,t)=>{t.addMethod(e.expect,"anything",()=>new Wf),t.addMethod(e.expect,"any",r=>new Gf(r)),t.addMethod(e.expect,"stringContaining",r=>new Aa(r)),t.addMethod(e.expect,"objectContaining",r=>new Pa(r)),t.addMethod(e.expect,"arrayContaining",r=>new Oa(r)),t.addMethod(e.expect,"stringMatching",r=>new Ra(r)),t.addMethod(e.expect,"closeTo",(r,n)=>new Ma(r,n)),e.expect.not={stringContaining:r=>new Aa(r,!0),objectContaining:r=>new Pa(r,!0),arrayContaining:r=>new Oa(r,!0),stringMatching:r=>new Ra(r,!0),closeTo:(r,n)=>new Ma(r,n,!0)};};function Tv(e,t){return e&&t instanceof Promise&&(t=t.finally(()=>{let r=e.promises.indexOf(t);r!==-1&&e.promises.splice(r,1);}),e.promises||(e.promises=[]),e.promises.push(t)),t}function qv(e,t,r){return function(...n){var o;if(e.flag(this,"_name",t),!e.flag(this,"soft"))return r.apply(this,n);let i=e.flag(this,"vitest-test");if(!i)throw new Error("expect.soft() can only be used inside a test");try{return r.apply(this,n)}catch(s){i.result||(i.result={state:"fail"}),i.result.state="fail",(o=i.result).errors||(o.errors=[]),i.result.errors.push(Ac(s));}}}var $v=(e,t)=>{let{AssertionError:r}=e,n=Yf();function o(a,l){let c=u=>{let f=qv(t,u,l);t.addMethod(e.Assertion.prototype,u,f),t.addMethod(globalThis[Ci].matchers,u,f);};Array.isArray(a)?a.forEach(u=>c(u)):c(a);}["throw","throws","Throw"].forEach(a=>{t.overwriteMethod(e.Assertion.prototype,a,l=>function(...c){let u=t.flag(this,"promise"),f=t.flag(this,"object"),p=t.flag(this,"negate");if(u==="rejects")t.flag(this,"object",()=>{throw f});else if(u==="resolves"&&typeof f!="function"){if(p)return;{let d=t.flag(this,"message")||"expected promise to throw an error, but it didn't",h={showDiff:!1};throw new r(d,h,t.flag(this,"ssfi"))}}l.apply(this,c);});}),o("withTest",function(a){return t.flag(this,"vitest-test",a),this}),o("toEqual",function(a){let l=t.flag(this,"object"),c=_e(l,a,[...n,xt]);return this.assert(c,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",a,l)}),o("toStrictEqual",function(a){let l=t.flag(this,"object"),c=_e(l,a,[...n,xt,_v,Hf,Sv],!0);return this.assert(c,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",a,l)}),o("toBe",function(a){let l=this._obj,c=Object.is(l,a),u="";return c||(_e(l,a,[...n,xt,_v,Hf,Sv],!0)?u="toStrictEqual":_e(l,a,[...n,xt])&&(u="toEqual")),this.assert(c,tj(u),"expected #{this} not to be #{exp} // Object.is equality",a,l)}),o("toMatchObject",function(a){let l=this._obj,c=_e(l,a,[...n,xt,On]),u=t.flag(this,"negate"),{subset:f,stripped:p}=nj(l,a,n);if(c&&u||!c&&!u){let d=t.getMessage(this,[c,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",a,f,!1]),h=p===0?d:`${d}
|
|
92
|
+
(${p} matching ${p===1?"property":"properties"} omitted from actual)`;throw new r(h,{showDiff:!0,expected:a,actual:f})}}),o("toMatch",function(a){let l=this._obj;if(typeof l!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof l}`);return this.assert(typeof a=="string"?l.includes(a):l.match(a),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",a,l)}),o("toContain",function(a){let l=this._obj;if(typeof Node<"u"&&l instanceof Node){if(!(a instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof a}`);return this.assert(l.contains(a),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",a,l)}if(typeof DOMTokenList<"u"&&l instanceof DOMTokenList){tt(a,"class name",["string"]);let u=t.flag(this,"negate")?l.value.replace(a,"").trim():`${l.value} ${a}`;return this.assert(l.contains(a),`expected "${l.value}" to contain "${a}"`,`expected "${l.value}" not to contain "${a}"`,u,l.value)}return typeof l=="string"&&typeof a=="string"?this.assert(l.includes(a),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",a,l):(l!=null&&typeof l!="string"&&t.flag(this,"object",Array.from(l)),this.contain(a))}),o("toContainEqual",function(a){let l=t.flag(this,"object"),c=Array.from(l).findIndex(u=>_e(u,a,n));this.assert(c!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",a);}),o("toBeTruthy",function(){let a=t.flag(this,"object");this.assert(!!a,"expected #{this} to be truthy","expected #{this} to not be truthy",!0,a);}),o("toBeFalsy",function(){let a=t.flag(this,"object");this.assert(!a,"expected #{this} to be falsy","expected #{this} to not be falsy",!1,a);}),o("toBeGreaterThan",function(a){let l=this._obj;return tt(l,"actual",["number","bigint"]),tt(a,"expected",["number","bigint"]),this.assert(l>a,`expected ${l} to be greater than ${a}`,`expected ${l} to be not greater than ${a}`,a,l,!1)}),o("toBeGreaterThanOrEqual",function(a){let l=this._obj;return tt(l,"actual",["number","bigint"]),tt(a,"expected",["number","bigint"]),this.assert(l>=a,`expected ${l} to be greater than or equal to ${a}`,`expected ${l} to be not greater than or equal to ${a}`,a,l,!1)}),o("toBeLessThan",function(a){let l=this._obj;return tt(l,"actual",["number","bigint"]),tt(a,"expected",["number","bigint"]),this.assert(l<a,`expected ${l} to be less than ${a}`,`expected ${l} to be not less than ${a}`,a,l,!1)}),o("toBeLessThanOrEqual",function(a){let l=this._obj;return tt(l,"actual",["number","bigint"]),tt(a,"expected",["number","bigint"]),this.assert(l<=a,`expected ${l} to be less than or equal to ${a}`,`expected ${l} to be not less than or equal to ${a}`,a,l,!1)}),o("toBeNaN",function(){let a=t.flag(this,"object");this.assert(Number.isNaN(a),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,a);}),o("toBeUndefined",function(){let a=t.flag(this,"object");this.assert(a===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,a);}),o("toBeNull",function(){let a=t.flag(this,"object");this.assert(a===null,"expected #{this} to be null","expected #{this} not to be null",null,a);}),o("toBeDefined",function(){let a=t.flag(this,"object");this.assert(typeof a<"u","expected #{this} to be defined","expected #{this} to be undefined",a);}),o("toBeTypeOf",function(a){let l=typeof this._obj,c=a===l;return this.assert(c,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",a,l)}),o("toBeInstanceOf",function(a){return this.instanceOf(a)}),o("toHaveLength",function(a){return this.have.length(a)}),o("toHaveProperty",function(...a){Array.isArray(a[0])&&(a[0]=a[0].map(y=>String(y).replace(/([.[\]])/g,"\\$1")).join("."));let l=this._obj,[c,u]=a,f=()=>Object.prototype.hasOwnProperty.call(l,c)?{value:l[c],exists:!0}:t.getPathInfo(l,c),{value:p,exists:d}=f(),h=d&&(a.length===1||_e(u,p,n)),m=a.length===1?"":` with value ${t.objDisplay(u)}`;return this.assert(h,`expected #{this} to have property "${c}"${m}`,`expected #{this} to not have property "${c}"${m}`,u,d?p:void 0)}),o("toBeCloseTo",function(a,l=2){let c=this._obj,u=!1,f=0,p=0;return a===Number.POSITIVE_INFINITY&&c===Number.POSITIVE_INFINITY||a===Number.NEGATIVE_INFINITY&&c===Number.NEGATIVE_INFINITY?u=!0:(f=10**-l/2,p=Math.abs(c-a),u=p<f),this.assert(u,`expected #{this} to be close to #{exp}, received difference is ${p}, but expected ${f}`,`expected #{this} to not be close to #{exp}, received difference is ${p}, but expected ${f}`,a,c,!1)});function i(a){if(!Ta(a._obj))throw new TypeError(`${t.inspect(a._obj)} is not a spy or a call to a spy!`)}function s(a){return i(a),a._obj}o(["toHaveBeenCalledTimes","toBeCalledTimes"],function(a){let l=s(this),c=l.getMockName(),u=l.mock.calls.length;return this.assert(u===a,`expected "${c}" to be called #{exp} times, but got ${u} times`,`expected "${c}" to not be called #{exp} times`,a,u,!1)}),o("toHaveBeenCalledOnce",function(){let a=s(this),l=a.getMockName(),c=a.mock.calls.length;return this.assert(c===1,`expected "${l}" to be called once, but got ${c} times`,`expected "${l}" to not be called once`,1,c,!1)}),o(["toHaveBeenCalled","toBeCalled"],function(){let a=s(this),l=a.getMockName(),c=a.mock.calls.length,u=c>0,f=t.flag(this,"negate"),p=t.getMessage(this,[u,`expected "${l}" to be called at least once`,`expected "${l}" to not be called at all, but actually been called ${c} times`,!0,u]);if(u&&f&&(p=Cv(a,p)),u&&f||!u&&!f)throw new r(p)}),o(["toHaveBeenCalledWith","toBeCalledWith"],function(...a){let l=s(this),c=l.getMockName(),u=l.mock.calls.some(d=>_e(d,a,[...n,xt])),f=t.flag(this,"negate"),p=t.getMessage(this,[u,`expected "${c}" to be called with arguments: #{exp}`,`expected "${c}" to not be called with arguments: #{exp}`,a]);if(u&&f||!u&&!f)throw new r(Cv(l,p,a))}),o(["toHaveBeenNthCalledWith","nthCalledWith"],function(a,...l){let c=s(this),u=c.getMockName(),f=c.mock.calls[a-1],p=c.mock.calls.length,d=a<=p;this.assert(_e(f,l,[...n,xt]),`expected ${Ti(a)} "${u}" call to have been called with #{exp}${d?"":`, but called only ${p} times`}`,`expected ${Ti(a)} "${u}" call to not have been called with #{exp}`,l,f,d);}),o(["toHaveBeenLastCalledWith","lastCalledWith"],function(...a){let l=s(this),c=l.getMockName(),u=l.mock.calls[l.mock.calls.length-1];this.assert(_e(u,a,[...n,xt]),`expected last "${c}" call to have been called with #{exp}`,`expected last "${c}" call to not have been called with #{exp}`,a,u);}),o(["toThrow","toThrowError"],function(a){if(typeof a=="string"||typeof a>"u"||a instanceof RegExp)return this.throws(a);let l=this._obj,c=t.flag(this,"promise"),u=t.flag(this,"negate"),f=null;if(c==="rejects")f=l;else if(c==="resolves"&&typeof l!="function"){if(u)return;{let p=t.flag(this,"message")||"expected promise to throw an error, but it didn't",d={showDiff:!1};throw new r(p,d,t.flag(this,"ssfi"))}}else {let p=!1;try{l();}catch(d){p=!0,f=d;}if(!p&&!u){let d=t.flag(this,"message")||"expected function to throw an error, but it didn't",h={showDiff:!1};throw new r(d,h,t.flag(this,"ssfi"))}}if(typeof a=="function"){let p=a.name||a.prototype.constructor.name;return this.assert(f&&f instanceof a,`expected error to be instance of ${p}`,`expected error not to be instance of ${p}`,a,f)}if(a instanceof Error)return this.assert(f&&a.message===f.message,`expected error to have message: ${a.message}`,`expected error not to have message: ${a.message}`,a.message,f&&f.message);if(typeof a=="object"&&"asymmetricMatch"in a&&typeof a.asymmetricMatch=="function"){let p=a;return this.assert(f&&p.asymmetricMatch(f),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",p,f)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof a}"`)}),[{name:"toHaveResolved",condition:a=>a.mock.settledResults.length>0&&a.mock.settledResults.some(({type:l})=>l==="fulfilled"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:a=>a.mock.calls.length>0&&a.mock.results.some(({type:l})=>l!=="throw"),action:"called"}].forEach(({name:a,condition:l,action:c})=>{o(a,function(){let u=s(this),f=u.getMockName(),p=l(u);this.assert(p,`expected "${f}" to be successfully ${c} at least once`,`expected "${f}" to not be successfully ${c}`,p,!p,!1);});}),[{name:"toHaveResolvedTimes",condition:(a,l)=>a.mock.settledResults.reduce((c,{type:u})=>u==="fulfilled"?++c:c,0)===l,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(a,l)=>a.mock.results.reduce((c,{type:u})=>u==="throw"?c:++c,0)===l,action:"called"}].forEach(({name:a,condition:l,action:c})=>{o(a,function(u){let f=s(this),p=f.getMockName(),d=l(f,u);this.assert(d,`expected "${p}" to be successfully ${c} ${u} times`,`expected "${p}" to not be successfully ${c} ${u} times`,`expected resolved times: ${u}`,`received resolved times: ${d}`,!1);});}),[{name:"toHaveResolvedWith",condition:(a,l)=>a.mock.settledResults.some(({type:c,value:u})=>c==="fulfilled"&&_e(l,u)),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(a,l)=>a.mock.results.some(({type:c,value:u})=>c==="return"&&_e(l,u)),action:"return"}].forEach(({name:a,condition:l,action:c})=>{o(a,function(u){let f=s(this),p=l(f,u),d=t.flag(this,"negate");if(p&&d||!p&&!d){let h=f.getMockName(),m=t.getMessage(this,[p,`expected "${h}" to ${c} with: #{exp} at least once`,`expected "${h}" to not ${c} with: #{exp}`,u]),y=c==="return"?f.mock.results:f.mock.settledResults;throw new r(oj(f,y,m,u))}});}),[{name:"toHaveLastResolvedWith",condition:(a,l)=>{let c=a.mock.settledResults[a.mock.settledResults.length-1];return c&&c.type==="fulfilled"&&_e(c.value,l)},action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:(a,l)=>{let c=a.mock.results[a.mock.results.length-1];return c&&c.type==="return"&&_e(c.value,l)},action:"return"}].forEach(({name:a,condition:l,action:c})=>{o(a,function(u){let f=s(this),p=c==="return"?f.mock.results:f.mock.settledResults,d=p[p.length-1],h=f.getMockName();this.assert(l(f,u),`expected last "${h}" call to ${c} #{exp}`,`expected last "${h}" call to not ${c} #{exp}`,u,d?.value);});}),[{name:"toHaveNthResolvedWith",condition:(a,l,c)=>{let u=a.mock.settledResults[l-1];return u&&u.type==="fulfilled"&&_e(u.value,c)},action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:(a,l,c)=>{let u=a.mock.results[l-1];return u&&u.type==="return"&&_e(u.value,c)},action:"return"}].forEach(({name:a,condition:l,action:c})=>{o(a,function(u,f){let p=s(this),d=p.getMockName(),m=(c==="return"?p.mock.results:p.mock.settledResults)[u-1],y=`${Ti(u)} call`;this.assert(l(p,u,f),`expected ${y} "${d}" call to ${c} #{exp}`,`expected ${y} "${d}" call to not ${c} #{exp}`,f,m?.value);});}),o("toSatisfy",function(a,l){return this.be.satisfy(a,l)}),o("withContext",function(a){for(let l in a)t.flag(this,l,a[l]);return this}),t.addProperty(e.Assertion.prototype,"resolves",function(){let l=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",l);let c=t.flag(this,"vitest-test"),u=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof u?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof u}'.`);let f=new Proxy(this,{get:(p,d,h)=>{let m=Reflect.get(p,d,h);return typeof m!="function"?m instanceof e.Assertion?f:m:(...y)=>{let g=u.then(b=>(t.flag(this,"object",b),m.call(this,...y)),b=>{let E=new r(`promise rejected "${t.inspect(b)}" instead of resolving`,{showDiff:!1});throw E.cause=b,E.stack=l.stack.replace(l.message,E.message),E});return Tv(c,g)}}});return f}),t.addProperty(e.Assertion.prototype,"rejects",function(){let l=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",l);let c=t.flag(this,"vitest-test"),u=t.flag(this,"object"),f=typeof u=="function"?u():u;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof f?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof f}'.`);let p=new Proxy(this,{get:(d,h,m)=>{let y=Reflect.get(d,h,m);return typeof y!="function"?y instanceof e.Assertion?p:y:(...g)=>{let b=f.then(E=>{let _=new r(`promise resolved "${t.inspect(E)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:E});throw _.stack=l.stack.replace(l.message,_.message),_},E=>(t.flag(this,"object",E),y.call(this,...g)));return Tv(c,b)}}});return p});};function Ti(e){let t=e%10,r=e%100;return t===1&&r!==11?`${e}st`:t===2&&r!==12?`${e}nd`:t===3&&r!==13?`${e}rd`:`${e}th`}function Cv(e,t,r){return e.mock.calls&&(t+=Le.gray(`
|
|
93
|
+
|
|
94
|
+
Received:
|
|
95
|
+
|
|
96
|
+
${e.mock.calls.map((n,o)=>{let i=Le.bold(` ${Ti(o+1)} ${e.getMockName()} call:
|
|
97
|
+
|
|
98
|
+
`);return r?i+=Sn(r,n,{omitAnnotationLines:!0}):i+=dt(n).split(`
|
|
99
|
+
`).map(s=>` ${s}`).join(`
|
|
100
|
+
`),i+=`
|
|
101
|
+
`,i}).join(`
|
|
102
|
+
`)}`)),t+=Le.gray(`
|
|
103
|
+
|
|
104
|
+
Number of calls: ${Le.bold(e.mock.calls.length)}
|
|
105
|
+
`),t}function oj(e,t,r,n){return r+=Le.gray(`
|
|
106
|
+
|
|
107
|
+
Received:
|
|
108
|
+
|
|
109
|
+
${t.map((o,i)=>{let s=Le.bold(` ${Ti(i+1)} ${e.getMockName()} call return:
|
|
110
|
+
|
|
111
|
+
`);return n?s+=Sn(n,o.value,{omitAnnotationLines:!0}):s+=dt(o).split(`
|
|
112
|
+
`).map(a=>` ${a}`).join(`
|
|
113
|
+
`),s+=`
|
|
114
|
+
`,s}).join(`
|
|
115
|
+
`)}`),r+=Le.gray(`
|
|
116
|
+
|
|
117
|
+
Number of calls: ${Le.bold(e.mock.calls.length)}
|
|
118
|
+
`),r}function ij(e,t){let r=e._obj,n=Tt.flag(e,"negate"),o=Tt.flag(e,"promise")||"",i={...Av(),diff:Sn,stringify:dt,iterableEquality:xt,subsetEquality:On};return {state:{...fo(t),customTesters:Yf(),isNot:n,utils:i,promise:o,equals:_e,suppressedErrors:[],soft:Tt.flag(e,"soft"),poll:Tt.flag(e,"poll")},isNot:n,obj:r}}var Ia=class extends Error{constructor(t,r,n){super(t),this.actual=r,this.expected=n;}};function sj(e,t,r){return (n,o)=>{Object.entries(r).forEach(([i,s])=>{function a(...f){let{state:p,isNot:d,obj:h}=ij(this,t),m=s.call(p,h,...f);if(m&&typeof m=="object"&&m instanceof Promise)return m.then(({pass:_,message:T,actual:x,expected:S})=>{if(_&&d||!_&&!d)throw new Ia(T(),x,S)});let{pass:y,message:g,actual:b,expected:E}=m;if(y&&d||!y&&!d)throw new Ia(g(),b,E)}let l=qv(o,i,a);o.addMethod(globalThis[Ci].matchers,i,l),o.addMethod(e.Assertion.prototype,i,l);class c extends mr{constructor(p=!1,...d){super(d,p);}asymmetricMatch(p){let{pass:d}=s.call(this.getMatcherContext(t),p,...this.sample);return this.inverse?!d:d}toString(){return `${this.inverse?"not.":""}${i}`}getExpectedType(){return "any"}toAsymmetricMatcher(){return `${this.toString()}<${this.sample.map(String).join(", ")}>`}}let u=(...f)=>new c(!1,...f);Object.defineProperty(t,i,{configurable:!0,enumerable:!0,value:u,writable:!0}),Object.defineProperty(t.not,i,{configurable:!0,enumerable:!0,value:(...f)=>new c(!0,...f),writable:!0}),Object.defineProperty(globalThis[Na],i,{configurable:!0,enumerable:!0,value:u,writable:!0});});}}var kv=(e,t)=>{t.addMethod(e.expect,"extend",(r,n)=>{hr(sj(e,r,n));});};function _$(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pd={exports:{}},Bw;function S$(){if(Bw)return Pd.exports;Bw=1;var e=function(t,r){var n,o,i=1,s=0,a=0,l=String.alphabet;function c(u,f,p){if(p){for(n=f;p=c(u,n),p<76&&p>65;)++n;return +u.slice(f-1,n)}return p=l&&l.indexOf(u.charAt(f)),p>-1?p+76:(p=u.charCodeAt(f)||0,p<45||p>127?p:p<46?65:p<48?p-1:p<58?p+18:p<65?p-11:p<91?p+11:p<97?p-37:p<123?p+5:p-63)}if((t+="")!=(r+="")){for(;i;)if(o=c(t,s++),i=c(r,a++),o<76&&i<76&&o>66&&i>66&&(o=c(t,s,s),i=c(r,a,s=n),a=n),o!=i)return o<i?-1:1}return 0};try{Pd.exports=e;}catch{String.naturalCompare=e;}return Pd.exports}var T$=S$(),C$=_$(T$);function r1(e){return e!=null}function x$(e){return e===null||typeof e!="function"&&typeof e!="object"}function hl(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function A$(e){let t=-1,r=null,n=0,o=0,i=null;for(;t<=e.length;){i=e[t],t++;let s=e[t];if((s==='"'||s==="'"||s==="`")&&i!=="\\"&&(r===s?r=null:r||(r=s)),r||(s==="("&&n++,s===")"&&o++),n&&o&&n===o)return t}return null}var P$=()=>"Promise{\u2026}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(P$=(n,o)=>{let[i,s]=e(n);return i===t?"Promise{<pending>}":`Promise${i===r?"!":""}{${o.inspect(s,o)}}`});}catch{}var Fw=!1;try{let e=Mw();Fw=e.inspect?e.inspect.custom:!1;}catch{Fw=!1;}var qd=/\r?\n/;function O$(e,t,r){let n=e.split(qd),o=/\r\n/.test(e)?2:1,i=0;if(t>n.length)return e.length;for(let s=0;s<t-1;s++)i+=n[s].length+o;return i+r}function R$(e,t){if(t>e.length)throw new Error(`offset is longer than source length! offset ${t} > length ${e.length}`);let r=e.split(qd),n=/\r\n/.test(e)?2:1,o=0,i=0;for(;i<r.length;i++){let s=r[i].length+n;if(o+s>=t)break;o+=s;}return i+1}var Od,Uw;function M$(){if(Uw)return Od;Uw=1;var e,t,r,n,o,i,s,a,l,c,u,f,p,d,h,m,y,g,b;return p=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,f=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,h=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,u=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,m=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,b=/[\t\v\f\ufeff\p{Zs}]+/yu,a=/\r?\n|[\r\u2028\u2029]/y,l=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,d=/\/\/.*/y,r=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,n=/(['"])(?:(?!\1)[^])*(\1)?/y,o=/[^<>{}]+/y,g=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,y=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,i=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,s=/^(?:return|throw|yield)$/,c=RegExp(a.source),Od=function*(E,{jsx:_=!1}={}){var T,x,S,v,w,I,C,N,L,q,H,z,Z,Y;for({length:I}=E,v=0,w="",Y=[{tag:"JS"}],T=[],H=0,z=!1;v<I;){switch(N=Y[Y.length-1],N.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(E[v]==="/"&&(g.test(w)||i.test(w))&&(p.lastIndex=v,C=p.exec(E))){v=p.lastIndex,w=C[0],z=!0,yield {type:"RegularExpressionLiteral",value:C[0],closed:C[1]!==void 0&&C[1]!=="\\"};continue}if(f.lastIndex=v,C=f.exec(E)){switch(Z=C[0],L=f.lastIndex,q=Z,Z){case"(":w==="?NonExpressionParenKeyword"&&Y.push({tag:"JSNonExpressionParen",nesting:H}),H++,z=!1;break;case")":H--,z=!0,N.tag==="JSNonExpressionParen"&&H===N.nesting&&(Y.pop(),q="?NonExpressionParenEnd",z=!1);break;case"{":f.lastIndex=0,S=!y.test(w)&&(g.test(w)||i.test(w)),T.push(S),z=!1;break;case"}":switch(N.tag){case"InterpolationInTemplate":if(T.length===N.nesting){m.lastIndex=v,C=m.exec(E),v=m.lastIndex,w=C[0],C[1]==="${"?(w="?InterpolationInTemplate",z=!1,yield {type:"TemplateMiddle",value:C[0]}):(Y.pop(),z=!0,yield {type:"TemplateTail",value:C[0],closed:C[1]==="`"});continue}break;case"InterpolationInJSX":if(T.length===N.nesting){Y.pop(),v+=1,w="}",yield {type:"JSXPunctuator",value:"}"};continue}}z=T.pop(),q=z?"?ExpressionBraceEnd":"}";break;case"]":z=!0;break;case"++":case"--":q=z?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(_&&(g.test(w)||i.test(w))){Y.push({tag:"JSXTag"}),v+=1,w="<",yield {type:"JSXPunctuator",value:Z};continue}z=!1;break;default:z=!1;}v=L,w=q,yield {type:"Punctuator",value:Z};continue}if(e.lastIndex=v,C=e.exec(E)){switch(v=e.lastIndex,q=C[0],C[0]){case"for":case"if":case"while":case"with":w!=="."&&w!=="?."&&(q="?NonExpressionParenKeyword");}w=q,z=!i.test(C[0]),yield {type:C[1]==="#"?"PrivateIdentifier":"IdentifierName",value:C[0]};continue}if(h.lastIndex=v,C=h.exec(E)){v=h.lastIndex,w=C[0],z=!0,yield {type:"StringLiteral",value:C[0],closed:C[2]!==void 0};continue}if(u.lastIndex=v,C=u.exec(E)){v=u.lastIndex,w=C[0],z=!0,yield {type:"NumericLiteral",value:C[0]};continue}if(m.lastIndex=v,C=m.exec(E)){v=m.lastIndex,w=C[0],C[1]==="${"?(w="?InterpolationInTemplate",Y.push({tag:"InterpolationInTemplate",nesting:T.length}),z=!1,yield {type:"TemplateHead",value:C[0]}):(z=!0,yield {type:"NoSubstitutionTemplate",value:C[0],closed:C[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(r.lastIndex=v,C=r.exec(E)){switch(v=r.lastIndex,q=C[0],C[0]){case"<":Y.push({tag:"JSXTag"});break;case">":Y.pop(),w==="/"||N.tag==="JSXTagEnd"?(q="?JSX",z=!0):Y.push({tag:"JSXChildren"});break;case"{":Y.push({tag:"InterpolationInJSX",nesting:T.length}),q="?InterpolationInJSX",z=!1;break;case"/":w==="<"&&(Y.pop(),Y[Y.length-1].tag==="JSXChildren"&&Y.pop(),Y.push({tag:"JSXTagEnd"}));}w=q,yield {type:"JSXPunctuator",value:C[0]};continue}if(t.lastIndex=v,C=t.exec(E)){v=t.lastIndex,w=C[0],yield {type:"JSXIdentifier",value:C[0]};continue}if(n.lastIndex=v,C=n.exec(E)){v=n.lastIndex,w=C[0],yield {type:"JSXString",value:C[0],closed:C[2]!==void 0};continue}break;case"JSXChildren":if(o.lastIndex=v,C=o.exec(E)){v=o.lastIndex,w=C[0],yield {type:"JSXText",value:C[0]};continue}switch(E[v]){case"<":Y.push({tag:"JSXTag"}),v++,w="<",yield {type:"JSXPunctuator",value:"<"};continue;case"{":Y.push({tag:"InterpolationInJSX",nesting:T.length}),v++,w="?InterpolationInJSX",z=!1,yield {type:"JSXPunctuator",value:"{"};continue}}if(b.lastIndex=v,C=b.exec(E)){v=b.lastIndex,yield {type:"WhiteSpace",value:C[0]};continue}if(a.lastIndex=v,C=a.exec(E)){v=a.lastIndex,z=!1,s.test(w)&&(w="?NoLineTerminatorHere"),yield {type:"LineTerminatorSequence",value:C[0]};continue}if(l.lastIndex=v,C=l.exec(E)){v=l.lastIndex,c.test(C[0])&&(z=!1,s.test(w)&&(w="?NoLineTerminatorHere")),yield {type:"MultiLineComment",value:C[0],closed:C[1]!==void 0};continue}if(d.lastIndex=v,C=d.exec(E)){v=d.lastIndex,z=!1,yield {type:"SingleLineComment",value:C[0]};continue}x=String.fromCodePoint(E.codePointAt(v)),v+=x.length,w=x,z=!1,yield {type:N.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:x};}},Od}M$();var n1={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(n1.keyword);new Set(n1.strict);var I$={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]},N$=Object.entries(I$);function $d(e){return String(e)}$d.open="";$d.close="";function j$(e=!1){let t=typeof process<"u"?process:void 0,r=t?.env||{},n=t?.argv||[];return !("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||t?.platform==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function q$(e=!1){let t=j$(e),r=(s,a,l,c)=>{let u="",f=0;do u+=s.substring(f,c)+l,f=c+a.length,c=s.indexOf(a,f);while(~c);return u+s.substring(f)},n=(s,a,l=s)=>{let c=u=>{let f=String(u),p=f.indexOf(a,s.length);return ~p?s+r(f,a,l,p)+a:s+f+a};return c.open=s,c.close=a,c},o={isColorSupported:t},i=s=>`\x1B[${s}m`;for(let[s,a]of N$)o[s]=t?n(i(a[0]),i(a[1]),a[2]):$d;return o}q$(!1);var $$=(e,t,r,n,o,i)=>{let s=e.getMockName(),a=s==="vi.fn()"?"":` ${s}`,l="";if(e.mock.calls.length!==0){let c=r+t.indent;l=` {${t.spacingOuter}${c}"calls": ${i(e.mock.calls,t,c,n,o)}${t.min?", ":","}${t.spacingOuter}${c}"results": ${i(e.mock.results,t,c,n,o)}${t.min?"":","}${t.spacingOuter}${r}}`;}return `[MockFunction${a}]${l}`},k$=e=>e&&!!e._isMockFunction,D$={serialize:$$,test:k$},{DOMCollection:L$,DOMElement:B$,Immutable:F$,ReactElement:U$,ReactTestComponent:z$,AsymmetricMatcher:V$}=Zn,Rd=[z$,U$,B$,L$,F$,V$,D$];function o1(e){Rd=[e].concat(Rd);}function H$(){return Rd}function W$(e,t){return `${e} ${t}`}function G$(e){if(!/ \d+$/.test(e))throw new Error("Snapshot keys must end with a number.");return e.replace(/ \d+$/,"")}function K$(e,t){let r=t.updateSnapshot,n=Object.create(null),o="",i=!1;if(e!=null)try{o=e,new Function("exports",o)(n);}catch{}return (r==="all"||r==="new")&&o&&(i=!0),{data:n,dirty:i}}function Y$(e){return e.includes(`
|
|
119
|
+
`)?`
|
|
120
|
+
${e}
|
|
121
|
+
`:e}function zw(e){return e.length>2&&e.startsWith(`
|
|
122
|
+
`)&&e.endsWith(`
|
|
123
|
+
`)?e.slice(1,-1):e}var J$=!0,X$=!1;function Q$(e,t=2,r={}){return kd(Rt(e,{escapeRegex:J$,indent:t,plugins:H$(),printFunctionName:X$,...r}))}function Z$(e){return e.replace(/`|\\|\$\{/g,"\\$&")}function Vw(e){return `\`${Z$(e)}\``}function kd(e){return e.replace(/\r\n|\r/g,`
|
|
124
|
+
`)}async function ek(e,t,r){let n=Object.keys(t).sort(C$).map(a=>`exports[${Vw(a)}] = ${Vw(kd(t[a]))};`),o=`${e.getHeader()}
|
|
125
|
+
|
|
126
|
+
${n.join(`
|
|
127
|
+
|
|
128
|
+
`)}
|
|
129
|
+
`,i=await e.readSnapshotFile(r);i!=null&&i===o||await e.saveSnapshotFile(r,o);}function Hw(e){function t(){var o,i;let s=/^( +)\}\s+$/m.exec(e||""),a=(o=s?.[1])==null?void 0:o.length;if(a)return a;let l=/^\n( +)"/.exec(e||"");return ((i=l?.[1])==null?void 0:i.length)||0}let r=t(),n=e?.trim();return r&&(n=n?.replace(new RegExp(`^${" ".repeat(r)}`,"gm"),"").replace(/ +\}$/,"}")),n}function Md(e=[],t=[]){let r=Array.from(e);return t.forEach((n,o)=>{let i=r[o];Array.isArray(e[o])?r[o]=Md(e[o],n):hl(i)?r[o]=Dd(e[o],n):r[o]=n;}),r}function Dd(e,t){if(hl(e)&&hl(t)){let r={...e};return Object.keys(t).forEach(n=>{hl(t[n])&&!t[n].$$typeof?n in e?r[n]=Dd(e[n],t[n]):Object.assign(r,{[n]:t[n]}):Array.isArray(t[n])?r[n]=Md(e[n],t[n]):Object.assign(r,{[n]:t[n]});}),r}else if(Array.isArray(e)&&Array.isArray(t))return Md(e,t);return e}var tk=44,Ww="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rk=new Uint8Array(64),i1=new Uint8Array(128);for(let e=0;e<Ww.length;e++){let t=Ww.charCodeAt(e);rk[e]=t,i1[t]=e;}function Di(e,t){let r=0,n=0,o=0;do{let s=e.next();o=i1[s],r|=(o&31)<<n,n+=5;}while(o&32);let i=r&1;return r>>>=1,i&&(r=-2147483648|-r),t+r}function Gw(e,t){return e.pos>=t?!1:e.peek()!==tk}var Id=class{constructor(t){this.pos=0,this.buffer=t;}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){let{buffer:r,pos:n}=this,o=r.indexOf(t,n);return o===-1?r.length:o}};function nk(e){let{length:t}=e,r=new Id(e),n=[],o=0,i=0,s=0,a=0,l=0;do{let c=r.indexOf(";"),u=[],f=!0,p=0;for(o=0;r.pos<c;){let d;o=Di(r,o),o<p&&(f=!1),p=o,Gw(r,c)?(i=Di(r,i),s=Di(r,s),a=Di(r,a),Gw(r,c)?(l=Di(r,l),d=[o,i,s,a,l]):d=[o,i,s,a]):d=[o],u.push(d),r.pos++;}f||ok(u),n.push(u),r.pos=c+1;}while(r.pos<=t);return n}function ok(e){e.sort(ik);}function ik(e,t){return e[0]-t[0]}var sk=/^[\w+.-]+:\/\//,ak=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,lk=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i,Ze;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute";})(Ze||(Ze={}));function uk(e){return sk.test(e)}function ck(e){return e.startsWith("//")}function s1(e){return e.startsWith("/")}function fk(e){return e.startsWith("file:")}function Kw(e){return /^[.?#]/.test(e)}function dl(e){let t=ak.exec(e);return a1(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function dk(e){let t=lk.exec(e),r=t[2];return a1("file:","",t[1]||"","",s1(r)?r:"/"+r,t[3]||"",t[4]||"")}function a1(e,t,r,n,o,i,s){return {scheme:e,user:t,host:r,port:n,path:o,query:i,hash:s,type:Ze.Absolute}}function Yw(e){if(ck(e)){let r=dl("http:"+e);return r.scheme="",r.type=Ze.SchemeRelative,r}if(s1(e)){let r=dl("http://foo.com"+e);return r.scheme="",r.host="",r.type=Ze.AbsolutePath,r}if(fk(e))return dk(e);if(uk(e))return dl(e);let t=dl("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?Ze.Query:e.startsWith("#")?Ze.Hash:Ze.RelativePath:Ze.Empty,t}function pk(e){if(e.endsWith("/.."))return e;let t=e.lastIndexOf("/");return e.slice(0,t+1)}function hk(e,t){l1(t,t.type),e.path==="/"?e.path=t.path:e.path=pk(t.path)+e.path;}function l1(e,t){let r=t<=Ze.RelativePath,n=e.path.split("/"),o=1,i=0,s=!1;for(let l=1;l<n.length;l++){let c=n[l];if(!c){s=!0;continue}if(s=!1,c!=="."){if(c===".."){i?(s=!0,i--,o--):r&&(n[o++]=c);continue}n[o++]=c,i++;}}let a="";for(let l=1;l<o;l++)a+="/"+n[l];(!a||s&&!a.endsWith("/.."))&&(a+="/"),e.path=a;}function mk(e,t){if(!e&&!t)return "";let r=Yw(e),n=r.type;if(t&&n!==Ze.Absolute){let i=Yw(t),s=i.type;switch(n){case Ze.Empty:r.hash=i.hash;case Ze.Hash:r.query=i.query;case Ze.Query:case Ze.RelativePath:hk(r,i);case Ze.AbsolutePath:r.user=i.user,r.host=i.host,r.port=i.port;case Ze.SchemeRelative:r.scheme=i.scheme;}s>n&&(n=s);}l1(r,n);let o=r.query+r.hash;switch(n){case Ze.Hash:case Ze.Query:return o;case Ze.RelativePath:{let i=r.path.slice(1);return i?Kw(t||e)&&!Kw(i)?"./"+i+o:i+o:o||"."}case Ze.AbsolutePath:return r.path+o;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+o}}function Jw(e,t){return t&&!t.endsWith("/")&&(t+="/"),mk(e,t)}function gk(e){if(!e)return "";let t=e.lastIndexOf("/");return e.slice(0,t+1)}var Qr=0,yk=1,bk=2,vk=3,wk=4;function Ek(e,t){let r=Xw(e,0);if(r===e.length)return e;t||(e=e.slice());for(let n=r;n<e.length;n=Xw(e,n+1))e[n]=Sk(e[n],t);return e}function Xw(e,t){for(let r=t;r<e.length;r++)if(!_k(e[r]))return r;return e.length}function _k(e){for(let t=1;t<e.length;t++)if(e[t][Qr]<e[t-1][Qr])return !1;return !0}function Sk(e,t){return t||(e=e.slice()),e.sort(Tk)}function Tk(e,t){return e[Qr]-t[Qr]}var ml=!1;function Ck(e,t,r,n){for(;r<=n;){let o=r+(n-r>>1),i=e[o][Qr]-t;if(i===0)return ml=!0,o;i<0?r=o+1:n=o-1;}return ml=!1,r-1}function xk(e,t,r){for(let n=r+1;n<e.length&&e[n][Qr]===t;r=n++);return r}function Ak(e,t,r){for(let n=r-1;n>=0&&e[n][Qr]===t;r=n--);return r}function Pk(){return {lastKey:-1,lastNeedle:-1,lastIndex:-1}}function Ok(e,t,r,n){let{lastKey:o,lastNeedle:i,lastIndex:s}=r,a=0,l=e.length-1;if(n===o){if(t===i)return ml=s!==-1&&e[s][Qr]===t,s;t>=i?a=s===-1?0:s:l=s;}return r.lastKey=n,r.lastNeedle=t,r.lastIndex=Ck(e,t,a,l)}var Rk="`line` must be greater than 0 (lines start at line 1)",Mk="`column` must be greater than or equal to 0 (columns start at column 0)",Qw=-1,Ik=1,Nd=class{constructor(t,r){let n=typeof t=="string";if(!n&&t._decodedMemo)return t;let o=n?JSON.parse(t):t,{version:i,file:s,names:a,sourceRoot:l,sources:c,sourcesContent:u}=o;this.version=i,this.file=s,this.names=a||[],this.sourceRoot=l,this.sources=c,this.sourcesContent=u,this.ignoreList=o.ignoreList||o.x_google_ignoreList||void 0;let f=Jw(l||"",gk(r));this.resolvedSources=c.map(d=>Jw(d||"",f));let{mappings:p}=o;typeof p=="string"?(this._encoded=p,this._decoded=void 0):(this._encoded=void 0,this._decoded=Ek(p,n)),this._decodedMemo=Pk(),this._bySources=void 0,this._bySourceMemos=void 0;}};function Nk(e){var t;return (t=e)._decoded||(t._decoded=nk(e._encoded))}function jk(e,t){let{line:r,column:n,bias:o}=t;if(r--,r<0)throw new Error(Rk);if(n<0)throw new Error(Mk);let i=Nk(e);if(r>=i.length)return pl(null,null,null,null);let s=i[r],a=qk(s,e._decodedMemo,r,n,o||Ik);if(a===-1)return pl(null,null,null,null);let l=s[a];if(l.length===1)return pl(null,null,null,null);let{names:c,resolvedSources:u}=e;return pl(u[l[yk]],l[bk]+1,l[vk],l.length===5?c[l[wk]]:null)}function pl(e,t,r,n){return {source:e,line:t,column:r,name:n}}function qk(e,t,r,n,o){let i=Ok(e,n,t,r);return ml?i=(o===Qw?xk:Ak)(e,n,i):o===Qw&&i++,i===-1||i===e.length?-1:i}var u1=/^\s*at .*(?:\S:\d+|\(native\))/m,$k=/^(?:eval@)?(?:\[native code\])?$/,kk=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function c1(e){if(!e.includes(":"))return [e];let r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return [e];let n=r[1];if(n.startsWith("async ")&&(n=n.slice(6)),(n.startsWith("http:")||n.startsWith("https:"))&&(n=new URL(n).pathname),n.startsWith("/@fs/")){let o=/^\/@fs\/[a-zA-Z]:\//.test(n);n=n.slice(o?5:4);}return [n,r[2]||void 0,r[3]||void 0]}function Dk(e){let t=e.trim();if($k.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;let r=/((.*".+"[^@]*)?[^@]*)(@)/,n=t.match(r),o=n&&n[1]?n[1]:void 0,[i,s,a]=c1(t.replace(r,""));return !i||!s||!a?null:{file:i,method:o||"",line:Number.parseInt(s),column:Number.parseInt(a)}}function Lk(e){let t=e.trim();if(!u1.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),n=r.match(/ (\(.+\)$)/);r=n?r.replace(n[0],""):r;let[o,i,s]=c1(n?n[1]:r),a=n&&r||"",l=o&&["eval","<anonymous>"].includes(o)?void 0:o;return !l||!i||!s?null:(a.startsWith("async ")&&(a=a.slice(6)),l.startsWith("file://")&&(l=l.slice(7)),l=resolve(l),a&&(a=a.replace(/__vite_ssr_import_\d+__\./g,"")),{method:a,file:l,line:Number.parseInt(i),column:Number.parseInt(s)})}function Bk(e,t={}){let{ignoreStackEntries:r=kk}=t,n=u1.test(e)?Uk(e):Fk(e);return r.length&&(n=n.filter(o=>!r.some(i=>o.file.match(i)))),n.map(o=>{var i;t.getFileName&&(o.file=t.getFileName(o.file));let s=(i=t.getSourceMap)==null?void 0:i.call(t,o.file);if(!s||typeof s!="object"||!s.version)return o;let a=new Nd(s),{line:l,column:c}=jk(a,o);return l!=null&&c!=null?{...o,line:l,column:c}:o})}function Fk(e){return e.split(`
|
|
130
|
+
`).map(t=>Dk(t)).filter(r1)}function Uk(e){return e.split(`
|
|
131
|
+
`).map(t=>Lk(t)).filter(r1)}function zk(e,t={}){if(!e||x$(e))return [];if(e.stacks)return e.stacks;let r=e.stack||e.stackStr||"",n=Bk(r,t);return t.frameFilter&&(n=n.filter(o=>t.frameFilter(e,o)!==!1)),e.stacks=n,n}async function Vk(e,t){let r=(await Promise.resolve().then(()=>(Lw(),Dw))).default,n=new Set(t.map(o=>o.file));await Promise.all(Array.from(n).map(async o=>{let i=t.filter(c=>c.file===o),s=await e.readSnapshotFile(o),a=new r(s);for(let c of i){let u=O$(s,c.line,c.column);Jk(s,a,u,c.snapshot);}let l=a.toString();l!==s&&await e.saveSnapshotFile(o,l);}));}var Hk=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function Wk(e,t,r,n){let o=e.slice(r),i=Hk.exec(o);if(!i)return !1;o=o.slice(i.index);let s=A$(o);if(s===null)return !1;s+=r+i.index;let a=r+i.index+i[0].length,l=Gk(e,a),c=`, ${f1(n,e,r)}`;return l===s?t.appendLeft(s,c):t.overwrite(l,s,c),!0}function Gk(e,t){let r=1,n=0;for(;r!==n&&t<e.length;){let o=e[t++];o==="{"?r++:o==="}"&&n++;}return t}function f1(e,t,r){let n=R$(t,r),i=t.split(qd)[n-1].match(/^\s*/)[0]||"",s=i.includes(" ")?`${i} `:`${i} `,a=e.trim().replace(/\\/g,"\\\\").split(/\n/g),l=a.length<=1,c="`";return l?`${c}${a.join(`
|
|
132
|
+
`).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}${c}`:`${c}
|
|
133
|
+
${a.map(u=>u?s+u:"").join(`
|
|
134
|
+
`).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}
|
|
135
|
+
${i}${c}`}var Zw="toMatchInlineSnapshot",e1="toThrowErrorMatchingInlineSnapshot";function Kk(e,t){let r=t-Zw.length;if(e.slice(r,t)===Zw)return {code:e.slice(r),index:r};let n=t-e1.length;return e.slice(t-n,t)===e1?{code:e.slice(t-n),index:t-n}:{code:e.slice(t),index:t}}var Yk=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*[\w$]*(['"`)])/;function Jk(e,t,r,n){let{code:o,index:i}=Kk(e,r),s=Yk.exec(o),a=/toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/.exec(o);if(!s||s.index!==a?.index)return Wk(e,t,i,n);let l=s[1],c=i+s.index+s[0].length,u=f1(n,e,i);if(l===")")return t.appendRight(c-1,u),!0;let p=new RegExp(`(?:^|[^\\\\])${l}`).exec(e.slice(c));if(!p)return !1;let d=c+p.index+p[0].length;return t.overwrite(c-1,d,u),!0}var Xk=/^([^\S\n]*)\S/m;function Ld(e){let t=e.match(Xk);if(!t||!t[1])return e;let r=t[1],n=e.split(/\n/g);if(n.length<=2||n[0].trim()!==""||n[n.length-1].trim()!=="")return e;for(let o=1;o<n.length-1;o++)if(n[o]!==""){if(n[o].indexOf(r)!==0)return e;n[o]=n[o].substring(r.length);}return n[n.length-1]="",e=n.join(`
|
|
136
|
+
`),e}async function Qk(e,t){await Promise.all(t.map(async r=>{r.readonly||await e.saveSnapshotFile(r.file,r.snapshot);}));}var jd=class e{constructor(t,r,n,o){this.testFilePath=t,this.snapshotPath=r;let{data:i,dirty:s}=K$(n,o);this._fileExists=n!=null,this._initialData=i,this._snapshotData=i,this._dirty=s,this._inlineSnapshots=[],this._inlineSnapshotStacks=[],this._rawSnapshots=[],this._uncheckedKeys=new Set(Object.keys(this._snapshotData)),this._counters=new Map,this.expand=o.expand||!1,this.added=0,this.matched=0,this.unmatched=0,this._updateSnapshot=o.updateSnapshot,this.updated=0,this._snapshotFormat={printBasicPrototype:!1,escapeString:!1,...o.snapshotFormat},this._environment=o.snapshotEnvironment;}_counters;_dirty;_updateSnapshot;_snapshotData;_initialData;_inlineSnapshots;_inlineSnapshotStacks;_rawSnapshots;_uncheckedKeys;_snapshotFormat;_environment;_fileExists;added;expand;matched;unmatched;updated;static async create(t,r){let n=await r.snapshotEnvironment.resolvePath(t),o=await r.snapshotEnvironment.readSnapshotFile(n);return new e(t,n,o,r)}get environment(){return this._environment}markSnapshotsAsCheckedForTest(t){this._uncheckedKeys.forEach(r=>{G$(r)===t&&this._uncheckedKeys.delete(r);});}_inferInlineSnapshotStack(t){let r=t.findIndex(o=>o.method.match(/__VITEST_(RESOLVES|REJECTS)__/));if(r!==-1)return t[r+3];let n=t.findIndex(o=>o.method.includes("__INLINE_SNAPSHOT__"));return n!==-1?t[n+2]:null}_addSnapshot(t,r,n){this._dirty=!0,n.stack?this._inlineSnapshots.push({snapshot:r,...n.stack}):n.rawSnapshot?this._rawSnapshots.push({...n.rawSnapshot,snapshot:r}):this._snapshotData[t]=r;}clear(){this._snapshotData=this._initialData,this._counters=new Map,this.added=0,this.matched=0,this.unmatched=0,this.updated=0,this._dirty=!1;}async save(){let t=Object.keys(this._snapshotData).length,r=this._inlineSnapshots.length,n=this._rawSnapshots.length,o=!t&&!r&&!n,i={deleted:!1,saved:!1};return (this._dirty||this._uncheckedKeys.size)&&!o?(t&&(await ek(this._environment,this._snapshotData,this.snapshotPath),this._fileExists=!0),r&&await Vk(this._environment,this._inlineSnapshots),n&&await Qk(this._environment,this._rawSnapshots),i.saved=!0):!t&&this._fileExists&&(this._updateSnapshot==="all"&&(await this._environment.removeSnapshotFile(this.snapshotPath),this._fileExists=!1),i.deleted=!0),i}getUncheckedCount(){return this._uncheckedKeys.size||0}getUncheckedKeys(){return Array.from(this._uncheckedKeys)}removeUncheckedKeys(){this._updateSnapshot==="all"&&this._uncheckedKeys.size&&(this._dirty=!0,this._uncheckedKeys.forEach(t=>delete this._snapshotData[t]),this._uncheckedKeys.clear());}match({testName:t,received:r,key:n,inlineSnapshot:o,isInline:i,error:s,rawSnapshot:a}){var l,c;this._counters.set(t,(this._counters.get(t)||0)+1);let u=Number(this._counters.get(t));n||(n=W$(t,u)),i&&this._snapshotData[n]!==void 0||this._uncheckedKeys.delete(n);let f=a&&typeof r=="string"?r:Q$(r,void 0,this._snapshotFormat);a||(f=Y$(f)),a&&a.content&&a.content.match(/\r\n/)&&!f.match(/\r\n/)&&(a.content=kd(a.content));let p=i?o:a?a.content:this._snapshotData[n],d=Hw(p),h=d===Hw(f),m=p!==void 0,y=i||this._fileExists||a&&a.content!=null;h&&!i&&!a&&(this._snapshotData[n]=f);let g;if(i){let b=zk(s||new Error("snapshot"),{ignoreStackEntries:[]}),E=this._inferInlineSnapshotStack(b);if(!E)throw new Error(`@vitest/snapshot: Couldn't infer stack frame for inline snapshot.
|
|
137
|
+
${JSON.stringify(b)}`);if(g=((c=(l=this.environment).processStackTrace)==null?void 0:c.call(l,E))||E,g.column--,this._inlineSnapshotStacks.some(_=>_.file===g.file&&_.line===g.line&&_.column===g.column))throw this._inlineSnapshots=this._inlineSnapshots.filter(_=>!(_.file===g.file&&_.line===g.line&&_.column===g.column)),new Error("toMatchInlineSnapshot cannot be called multiple times at the same location.");this._inlineSnapshotStacks.push(g);}return m&&this._updateSnapshot==="all"||(!m||!y)&&(this._updateSnapshot==="new"||this._updateSnapshot==="all")?(this._updateSnapshot==="all"?h?this.matched++:(m?this.updated++:this.added++,this._addSnapshot(n,f,{stack:g,rawSnapshot:a})):(this._addSnapshot(n,f,{stack:g,rawSnapshot:a}),this.added++),{actual:"",count:u,expected:"",key:n,pass:!0}):h?(this.matched++,{actual:"",count:u,expected:"",key:n,pass:!0}):(this.unmatched++,{actual:zw(f),count:u,expected:d!==void 0?zw(d):void 0,key:n,pass:!1})}async pack(){let t={filepath:this.testFilePath,added:0,fileDeleted:!1,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0},r=this.getUncheckedCount(),n=this.getUncheckedKeys();r&&this.removeUncheckedKeys();let o=await this.save();return t.fileDeleted=o.deleted,t.added=this.added,t.matched=this.matched,t.unmatched=this.unmatched,t.updated=this.updated,t.unchecked=o.deleted?0:r,t.uncheckedKeys=Array.from(n),t}};function t1(e,t,r,n){let o=new Error(e);return Object.defineProperty(o,"actual",{value:r,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(o,"expected",{value:n,enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(o,"diffOptions",{value:{expand:t}}),o}var gl=class{constructor(t={}){this.options=t;}filepath;name;snapshotState;snapshotStateMap=new Map;async startCurrentRun(t,r,n){var o;this.filepath=t,this.name=r,((o=this.snapshotState)==null?void 0:o.testFilePath)!==t&&(await this.finishCurrentRun(),this.getSnapshotState(t)||this.snapshotStateMap.set(t,await jd.create(t,n)),this.snapshotState=this.getSnapshotState(t));}getSnapshotState(t){return this.snapshotStateMap.get(t)}clearTest(){this.filepath=void 0,this.name=void 0;}skipTestSnapshots(t){var r;(r=this.snapshotState)==null||r.markSnapshotsAsCheckedForTest(t);}assert(t){var r,n,o,i;let{filepath:s=this.filepath,name:a=this.name,message:l,isInline:c=!1,properties:u,inlineSnapshot:f,error:p,errorMessage:d,rawSnapshot:h}=t,{received:m}=t;if(!s)throw new Error("Snapshot cannot be used outside of test");if(typeof u=="object"){if(typeof m!="object"||!m)throw new Error("Received value must be an object when the matcher has properties");try{if(((n=(r=this.options).isEqual)==null?void 0:n.call(r,m,u))??!1)m=Dd(m,u);else throw t1("Snapshot properties mismatched",(o=this.snapshotState)==null?void 0:o.expand,m,u)}catch(x){throw x.message=d||"Snapshot mismatched",x}}let y=[a,...l?[l]:[]].join(" > "),g=this.getSnapshotState(s),{actual:b,expected:E,key:_,pass:T}=g.match({testName:y,received:m,isInline:c,error:p,inlineSnapshot:f,rawSnapshot:h});if(!T)throw t1(`Snapshot \`${_||"unknown"}\` mismatched`,(i=this.snapshotState)==null?void 0:i.expand,b?.trim(),E?.trim())}async assertRaw(t){if(!t.rawSnapshot)throw new Error("Raw snapshot is required");let{filepath:r=this.filepath,rawSnapshot:n}=t;if(n.content==null){if(!r)throw new Error("Snapshot cannot be used outside of test");let o=this.getSnapshotState(r);t.filepath||(t.filepath=r),n.file=await o.environment.resolveRawPath(r,n.file),n.content=await o.environment.readSnapshotFile(n.file)??void 0;}return this.assert(t)}async finishCurrentRun(){if(!this.snapshotState)return null;let t=await this.snapshotState.pack();return this.snapshotState=void 0,t}clear(){this.snapshotStateMap.clear();}};function d1(e,t=" > "){return ui(e).slice(1).join(t)}function Bd(){return typeof process<"u"&&!!process.send}var zt=Date,Fd=null,Zr=class e extends zt{constructor(t,r,n,o,i,s,a){super();let l;switch(arguments.length){case 0:Fd!==null?l=new zt(Fd.valueOf()):l=new zt;break;case 1:l=new zt(t);break;default:n=typeof n>"u"?1:n,o=o||0,i=i||0,s=s||0,a=a||0,l=new zt(t,r,n,o,i,s,a);break}return Object.setPrototypeOf(l,e.prototype),l}};Zr.UTC=zt.UTC;Zr.now=function(){return new Zr().valueOf()};Zr.parse=function(e){return zt.parse(e)};Zr.toString=function(){return zt.toString()};function p1(e){let t=new zt(e.valueOf());if(Number.isNaN(t.getTime()))throw new TypeError(`mockdate: The time set is an invalid date: ${e}`);globalThis.Date=Zr,Fd=t.valueOf();}function h1(){globalThis.Date=zt;}function Zk(e,t=!1){let r=[/\/vitest\/dist\//,/\/vite-node\/dist\//,/vitest-virtual-\w+\/dist/,/@vitest\/dist/,...t?[]:[/^mock:/]];e.forEach((n,o)=>{r.some(i=>i.test(o))||e.invalidateModule(n);});}function eD(){let{setTimeout:e}=En();return new Promise(t=>e(t,0))}async function D1(){await eD();let e=Bt(),t=[],r=0;for(let n of e.moduleCache.values())n.promise&&!n.evaluated&&t.push(n.promise),n.resolving&&r++;!t.length&&!r||(await Promise.allSettled(t),await D1());}function tD(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var yl={exports:{}},rD=yl.exports,m1;function nD(){return m1||(m1=1,function(e,t){(function(){(function(r){return typeof tD=="function"?e.exports=r:chai.use(r)})(function(r,n){var o=r.Assertion,i=o.prototype;o.addMethod("containSubset",function(a){var l=n.flag(this,"object"),c=r.config.showDiff;i.assert.call(this,s(a,l),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",a,l,c);}),r.assert.containSubset=function(a,l,c){new r.Assertion(a,c).to.be.containSubset(l);};function s(a,l){if(a===l)return !0;if(typeof l!=typeof a)return !1;if(typeof a!="object"||a===null)return a===l;if(a&&!l)return !1;if(Array.isArray(a)){if(typeof l.length!="number")return !1;var c=Array.prototype.slice.call(l);return a.every(function(u){return c.some(function(f){return s(u,f)})})}return a instanceof Date?l instanceof Date?a.getTime()===l.getTime():!1:Object.keys(a).every(function(u){var f=a[u],p=l[u];return typeof f=="object"&&f!==null&&p!==null?s(f,p):typeof f=="function"?f(p):p===f})}});}).call(rD);}(yl)),yl.exports}var oD=nD(),iD=dv(oD);function sD(e,t){return e&&t instanceof Promise&&(t=t.finally(()=>{let r=e.promises.indexOf(t);r!==-1&&e.promises.splice(r,1);}),e.promises||(e.promises=[]),e.promises.push(t)),t}var Ud;function Li(){return Ud||(Ud=new gl({isEqual:(e,t)=>_e(e,t,[xt,On])})),Ud}function g1(e,t){if(typeof e!="function"){if(!t)throw new Error(`expected must be a function, received ${typeof e}`);return e}try{e();}catch(r){return r}throw new Error("snapshot function didn't throw")}function Bi(e){return e?{filepath:e.file.filepath,name:ui(e).slice(1).join(" > ")}:{}}var aD=(e,t)=>{for(let r of ["matchSnapshot","toMatchSnapshot"])t.addMethod(e.Assertion.prototype,r,function(n,o){if(t.flag(this,"negate"))throw new Error(`${r} cannot be used with "not"`);let s=t.flag(this,"object"),a=t.flag(this,"vitest-test");typeof n=="string"&&typeof o>"u"&&(o=n,n=void 0);let l=t.flag(this,"message");Li().assert({received:s,message:o,isInline:!1,properties:n,errorMessage:l,...Bi(a)});});t.addMethod(e.Assertion.prototype,"toMatchFileSnapshot",function(r,n){if(t.flag(this,"negate"))throw new Error('toMatchFileSnapshot cannot be used with "not"');let i=t.flag(this,"object"),s=t.flag(this,"vitest-test"),a=t.flag(this,"message"),l=Li().assertRaw({received:i,message:n,isInline:!1,rawSnapshot:{file:r},errorMessage:a,...Bi(s)});return sD(s,l)}),t.addMethod(e.Assertion.prototype,"toMatchInlineSnapshot",function(n,o,i){if(t.flag(this,"negate"))throw new Error('toMatchInlineSnapshot cannot be used with "not"');let a=t.flag(this,"vitest-test");if(a&&(a.each||a.suite?.each))throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");let c=t.flag(this,"object"),u=t.flag(this,"error");typeof n=="string"&&(i=o,o=n,n=void 0),o&&(o=Ld(o));let f=t.flag(this,"message");Li().assert({received:c,message:i,isInline:!0,properties:n,inlineSnapshot:o,error:u,errorMessage:f,...Bi(a)});}),t.addMethod(e.Assertion.prototype,"toThrowErrorMatchingSnapshot",function(r){if(t.flag(this,"negate"))throw new Error('toThrowErrorMatchingSnapshot cannot be used with "not"');let o=t.flag(this,"object"),i=t.flag(this,"vitest-test"),s=t.flag(this,"promise"),a=t.flag(this,"message");Li().assert({received:g1(o,s),message:r,errorMessage:a,...Bi(i)});}),t.addMethod(e.Assertion.prototype,"toThrowErrorMatchingInlineSnapshot",function(n,o){if(t.flag(this,"negate"))throw new Error('toThrowErrorMatchingInlineSnapshot cannot be used with "not"');let s=t.flag(this,"vitest-test");if(s&&(s.each||s.suite?.each))throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");let l=t.flag(this,"object"),c=t.flag(this,"error"),u=t.flag(this,"promise"),f=t.flag(this,"message");n&&(n=Ld(n)),Li().assert({received:g1(l,u),message:o,inlineSnapshot:n,isInline:!0,error:c,errorMessage:f,...Bi(s)});}),t.addMethod(e.expect,"addSnapshotSerializer",o1);};hr(kv);hr($v);hr(iD);hr(aD);hr(jv);var lD=["matchSnapshot","toMatchSnapshot","toMatchInlineSnapshot","toThrowErrorMatchingSnapshot","toThrowErrorMatchingInlineSnapshot","throws","Throw","throw","toThrow","toThrowError"];function uD(e){return function(r,n={}){let i=Bt().config.expect?.poll??{},{interval:s=i.interval??50,timeout:a=i.timeout??1e3,message:l}=n,c=e(null,l).withContext({poll:!0});r=r.bind(c);let u=new Proxy(c,{get(f,p,d){let h=Reflect.get(f,p,d);if(typeof h!="function")return h instanceof P?u:h;if(p==="assert")return h;if(typeof p=="string"&&lD.includes(p))throw new SyntaxError(`expect.poll() is not supported in combination with .${p}(). Use vi.waitFor() if your assertion condition is unstable.`);return function(...m){let y=new Error("STACK_TRACE_ERROR");return new Promise((g,b)=>{let E,_,{setTimeout:T,clearTimeout:x}=En(),S=T(()=>{x(E),b(cD(new Error(`Matcher did not succeed in ${a}ms`,{cause:_}),y));},a),v=async()=>{try{Tt.flag(c,"_name",p);let w=await r();Tt.flag(c,"object",w),g(await h.call(c,...m)),x(E),x(S);}catch(w){_=w,E=T(v,s);}};v();})}}});return u}}function cD(e,t){return t.stack!==void 0&&(e.stack=t.stack.replace(t.message,e.message)),e}function wl(e){let t=(i,s)=>{let{assertionCalls:a}=fo(t);ja({assertionCalls:a+1},t);let l=Ar(i,s),c=e||na();return c?l.withTest(c):l};Object.assign(t,Ar),Object.assign(t,globalThis[Na]),t.getState=()=>fo(t),t.setState=i=>ja(i,t);let r=fo(globalThis[xi])||{};ja({...r,assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,environment:ub(),get testPath(){return Bt().filepath},currentTestName:e?d1(e):r.currentTestName},t),t.extend=i=>Ar.extend(t,i),t.addEqualityTesters=i=>Pv(i),t.soft=(...i)=>t(...i).withContext({soft:!0}),t.poll=uD(t),t.unreachable=i=>{A.fail(`expected${i?` "${i}" `:" "}not to be reached`);};function n(i){let s=()=>new Error(`expected number of assertions to be ${i}, but got ${t.getState().assertionCalls}`);Error.captureStackTrace&&Error.captureStackTrace(s(),n),t.setState({expectedAssertionsNumber:i,expectedAssertionsNumberErrorGen:s});}function o(){let i=new Error("expected any number of assertion, but got none");Error.captureStackTrace&&Error.captureStackTrace(i,o),t.setState({isExpectingAssertions:!0,isExpectingAssertionsError:i});}return Tt.addMethod(t,"assertions",n),Tt.addMethod(t,"hasAssertions",o),t}var Co=wl();Object.defineProperty(globalThis,xi,{value:Co,writable:!0,configurable:!0});var So={},zd,y1;function fD(){if(y1)return zd;y1=1;var e;return typeof Ea<"u"?e=Ea:typeof window<"u"?e=window:e=self,zd=e,zd}var Vd,b1;function dD(){if(b1)return Vd;b1=1;let e;try{(({})).__proto__,e=!1;}catch{e=!0;}return Vd=e,Vd}var Hd,v1;function xo(){if(v1)return Hd;v1=1;var e=Function.call,t=dD(),r=["size","caller","callee","arguments"];return t&&r.push("__proto__"),Hd=function(o){return Object.getOwnPropertyNames(o).reduce(function(i,s){return r.includes(s)||typeof o[s]!="function"||(i[s]=e.bind(o[s])),i},Object.create(null))},Hd}var Wd,w1;function vl(){if(w1)return Wd;w1=1;var e=xo();return Wd=e(Array.prototype),Wd}var Gd,E1;function pD(){if(E1)return Gd;E1=1;var e=vl().every;function t(o,i){return o[i.id]===void 0&&(o[i.id]=0),o[i.id]<i.callCount}function r(o,i,s,a){var l=!0;return s!==a.length-1&&(l=i.calledBefore(a[s+1])),t(o,i)&&l?(o[i.id]+=1,!0):!1}function n(o){var i={},s=arguments.length>1?arguments:o;return e(s,r.bind(null,i))}return Gd=n,Gd}var Kd,_1;function L1(){return _1||(_1=1,Kd=function(t){if(!t)return "";try{return t.displayName||t.name||(String(t).match(/function ([^\s(]+)/)||[])[1]}catch{return ""}}),Kd}var Yd,S1;function hD(){if(S1)return Yd;S1=1;var e=L1();function t(r){return r.constructor&&r.constructor.name||typeof r.constructor=="function"&&e(r.constructor)||null}return Yd=t,Yd}var Jd={},T1;function mD(){return T1||(T1=1,function(e){e.wrap=function(t,r){var n=function(){return e.printWarning(r),t.apply(this,arguments)};return t.prototype&&(n.prototype=t.prototype),n},e.defaultMsg=function(t,r){return `${t}.${r} is deprecated and will be removed from the public API in a future version of ${t}.`},e.printWarning=function(t){typeof process=="object"&&process.emitWarning?process.emitWarning(t):console.info?console.info(t):console.log(t);};}(Jd)),Jd}var Xd,C1;function gD(){return C1||(C1=1,Xd=function(t,r){var n=!0;try{t.forEach(function(){if(!r.apply(this,arguments))throw new Error});}catch{n=!1;}return n}),Xd}var Qd,x1;function yD(){if(x1)return Qd;x1=1;var e=vl().sort,t=vl().slice;function r(o,i){var s=o.getCall(0),a=i.getCall(0),l=s&&s.callId||-1,c=a&&a.callId||-1;return l<c?-1:1}function n(o){return e(t(o),r)}return Qd=n,Qd}var Zd,A1;function bD(){if(A1)return Zd;A1=1;var e=xo();return Zd=e(Function.prototype),Zd}var ep,P1;function vD(){if(P1)return ep;P1=1;var e=xo();return ep=e(Map.prototype),ep}var tp,O1;function wD(){if(O1)return tp;O1=1;var e=xo();return tp=e(Object.prototype),tp}var rp,R1;function ED(){if(R1)return rp;R1=1;var e=xo();return rp=e(Set.prototype),rp}var np,M1;function _D(){if(M1)return np;M1=1;var e=xo();return np=e(String.prototype),np}var op,I1;function SD(){return I1||(I1=1,op={array:vl(),function:bD(),map:vD(),object:wD(),set:ED(),string:_D()}),op}var bl={exports:{}},TD=bl.exports,N1;function CD(){return N1||(N1=1,function(e,t){(function(r,n){e.exports=n();})(TD,function(){var r=typeof Promise=="function",n=typeof self=="object"?self:Ea,o=typeof Symbol<"u",i=typeof Map<"u",s=typeof Set<"u",a=typeof WeakMap<"u",l=typeof WeakSet<"u",c=typeof DataView<"u",u=o&&typeof Symbol.iterator<"u",f=o&&typeof Symbol.toStringTag<"u",p=s&&typeof Set.prototype.entries=="function",d=i&&typeof Map.prototype.entries=="function",h=p&&Object.getPrototypeOf(new Set().entries()),m=d&&Object.getPrototypeOf(new Map().entries()),y=u&&typeof Array.prototype[Symbol.iterator]=="function",g=y&&Object.getPrototypeOf([][Symbol.iterator]()),b=u&&typeof String.prototype[Symbol.iterator]=="function",E=b&&Object.getPrototypeOf(""[Symbol.iterator]()),_=8,T=-1;function x(S){var v=typeof S;if(v!=="object")return v;if(S===null)return "null";if(S===n)return "global";if(Array.isArray(S)&&(f===!1||!(Symbol.toStringTag in S)))return "Array";if(typeof window=="object"&&window!==null){if(typeof window.location=="object"&&S===window.location)return "Location";if(typeof window.document=="object"&&S===window.document)return "Document";if(typeof window.navigator=="object"){if(typeof window.navigator.mimeTypes=="object"&&S===window.navigator.mimeTypes)return "MimeTypeArray";if(typeof window.navigator.plugins=="object"&&S===window.navigator.plugins)return "PluginArray"}if((typeof window.HTMLElement=="function"||typeof window.HTMLElement=="object")&&S instanceof window.HTMLElement){if(S.tagName==="BLOCKQUOTE")return "HTMLQuoteElement";if(S.tagName==="TD")return "HTMLTableDataCellElement";if(S.tagName==="TH")return "HTMLTableHeaderCellElement"}}var w=f&&S[Symbol.toStringTag];if(typeof w=="string")return w;var I=Object.getPrototypeOf(S);return I===RegExp.prototype?"RegExp":I===Date.prototype?"Date":r&&I===Promise.prototype?"Promise":s&&I===Set.prototype?"Set":i&&I===Map.prototype?"Map":l&&I===WeakSet.prototype?"WeakSet":a&&I===WeakMap.prototype?"WeakMap":c&&I===DataView.prototype?"DataView":i&&I===m?"Map Iterator":s&&I===h?"Set Iterator":y&&I===g?"Array Iterator":b&&I===E?"String Iterator":I===null?"Object":Object.prototype.toString.call(S).slice(_,T)}return x});}(bl)),bl.exports}var ip,j1;function xD(){if(j1)return ip;j1=1;var e=CD();return ip=function(r){return e(r).toLowerCase()},ip}var sp,q1;function AD(){if(q1)return sp;q1=1;function e(t){return t&&t.toString?t.toString():String(t)}return sp=e,sp}var ap,$1;function PD(){return $1||($1=1,ap={global:fD(),calledInOrder:pD(),className:hD(),deprecated:mD(),every:gD(),functionName:L1(),orderByFirstCall:yD(),prototypes:SD(),typeOf:xD(),valueToString:AD()}),ap}var k1;function OD(){if(k1)return So;k1=1;let e=PD().global,t;if(typeof __vitest_required__<"u")try{t=__vitest_required__.timers;}catch{}function r(o){let i=Math.pow(2,31)-1,s=1e12,a=function(){},l=function(){return []},c=o.setTimeout(a,0),u=typeof c=="object",f=o.process&&typeof o.process.hrtime=="function",p=f&&typeof o.process.hrtime.bigint=="function",d=o.process&&typeof o.process.nextTick=="function",h=o.process&&o.__vitest_required__&&o.__vitest_required__.util.promisify,m=o.performance&&typeof o.performance.now=="function",y=o.Performance&&(typeof o.Performance).match(/^(function|object)$/),g=o.performance&&o.performance.constructor&&o.performance.constructor.prototype,b=o.hasOwnProperty("queueMicrotask"),E=o.requestAnimationFrame&&typeof o.requestAnimationFrame=="function",_=o.cancelAnimationFrame&&typeof o.cancelAnimationFrame=="function",T=o.requestIdleCallback&&typeof o.requestIdleCallback=="function",x=o.cancelIdleCallback&&typeof o.cancelIdleCallback=="function",S=o.setImmediate&&typeof o.setImmediate=="function",v=o.Intl&&typeof o.Intl=="object";o.clearTimeout(c);let w=o.Date,I=o.Intl,C=s;function N(B){return Number.isFinite?Number.isFinite(B):isFinite(B)}let L=!1;function q(B,F){B.loopLimit&&F===B.loopLimit-1&&(L=!0);}function H(){L=!1;}function z(B){if(!B)return 0;let F=B.split(":"),Q=F.length,te=Q,j=0,ge;if(Q>3||!/^(\d\d:){0,2}\d\d?$/.test(B))throw new Error("tick only understands numbers, 'm:s' and 'h:m:s'. Each part must be two digits");for(;te--;){if(ge=parseInt(F[te],10),ge>=60)throw new Error(`Invalid time ${B}`);j+=ge*Math.pow(60,Q-te-1);}return j*1e3}function Z(B){let Q=B*1e6%1e6,te=Q<0?Q+1e6:Q;return Math.floor(te)}function Y(B){if(!B)return 0;if(typeof B.getTime=="function")return B.getTime();if(typeof B=="number")return B;throw new TypeError("now should be milliseconds since UNIX epoch")}function ie(B,F,Q){return Q&&Q.callAt>=B&&Q.callAt<=F}function ae(B,F){let Q=new Error(`Aborting after running ${B.loopLimit} timers, assuming an infinite loop!`);if(!F.error)return Q;let te=/target\.*[<|(|[].*?[>|\]|)]\s*/,j=new RegExp(String(Object.keys(B).join("|")));u&&(j=new RegExp(`\\s+at (Object\\.)?(?:${Object.keys(B).join("|")})\\s+`));let ge=-1;F.error.stack.split(`
|
|
138
|
+
`).some(function(Ke,Dt){return Ke.match(te)?(ge=Dt,!0):Ke.match(j)?(ge=Dt,!1):ge>=0});let nt=`${Q}
|
|
139
|
+
${F.type||"Microtask"} - ${F.func.name||"anonymous"}
|
|
140
|
+
${F.error.stack.split(`
|
|
141
|
+
`).slice(ge+1).join(`
|
|
142
|
+
`)}`;try{Object.defineProperty(Q,"stack",{value:nt});}catch{}return Q}function ue(B,F){let Q;for(Q in F)F.hasOwnProperty(Q)&&(B[Q]=F[Q]);return F.now?B.now=function(){return B.clock.now}:delete B.now,F.toSource?B.toSource=function(){return F.toSource()}:delete B.toSource,B.toString=function(){return F.toString()},B.prototype=F.prototype,B.parse=F.parse,B.UTC=F.UTC,B.prototype.toUTCString=F.prototype.toUTCString,B.isFake=!0,B}function K(){function B(F,Q,te,j,ge,nt,Ke){if(!(this instanceof B))return new w(B.clock.now).toString();switch(arguments.length){case 0:return new w(B.clock.now);case 1:return new w(F);case 2:return new w(F,Q);case 3:return new w(F,Q,te);case 4:return new w(F,Q,te,j);case 5:return new w(F,Q,te,j,ge);case 6:return new w(F,Q,te,j,ge,nt);default:return new w(F,Q,te,j,ge,nt,Ke)}}return ue(B,w)}function G(){let B={...I};return B.DateTimeFormat=function(...F){let Q=new I.DateTimeFormat(...F),te={};return ["formatRange","formatRangeToParts","resolvedOptions"].forEach(j=>{te[j]=Q[j].bind(Q);}),["format","formatToParts"].forEach(j=>{te[j]=function(ge){return Q[j](ge||B.clock.now)};}),te},B.DateTimeFormat.prototype=Object.create(I.DateTimeFormat.prototype),B.DateTimeFormat.supportedLocalesOf=I.DateTimeFormat.supportedLocalesOf,B}function J(B,F){B.jobs||(B.jobs=[]),B.jobs.push(F);}function ne(B){if(B.jobs){for(let F=0;F<B.jobs.length;F++){let Q=B.jobs[F];if(Q.func.apply(null,Q.args),q(B,F),B.loopLimit&&F>B.loopLimit)throw ae(B,Q)}H(),B.jobs=[];}}function se(B,F){if(F.func===void 0)throw new Error("Callback must be provided to timer calls");if(u&&typeof F.func!="function")throw new TypeError(`[ERR_INVALID_CALLBACK]: Callback must be a function. Received ${F.func} of type ${typeof F.func}`);if(L&&(F.error=new Error),F.type=F.immediate?"Immediate":"Timeout",F.hasOwnProperty("delay")&&(typeof F.delay!="number"&&(F.delay=parseInt(F.delay,10)),N(F.delay)||(F.delay=0),F.delay=F.delay>i?1:F.delay,F.delay=Math.max(0,F.delay)),F.hasOwnProperty("interval")&&(F.type="Interval",F.interval=F.interval>i?1:F.interval),F.hasOwnProperty("animation")&&(F.type="AnimationFrame",F.animation=!0),F.hasOwnProperty("idleCallback")&&(F.type="IdleCallback",F.idleCallback=!0),B.timers||(B.timers={}),F.id=C++,F.createdAt=B.now,F.callAt=B.now+(parseInt(F.delay)||(B.duringTick?1:0)),B.timers[F.id]=F,u){let Q={refed:!0,ref:function(){return this.refed=!0,Q},unref:function(){return this.refed=!1,Q},hasRef:function(){return this.refed},refresh:function(){return F.callAt=B.now+(parseInt(F.delay)||(B.duringTick?1:0)),B.timers[F.id]=F,Q},[Symbol.toPrimitive]:function(){return F.id}};return Q}return F.id}function fe(B,F){if(B.callAt<F.callAt)return -1;if(B.callAt>F.callAt)return 1;if(B.immediate&&!F.immediate)return -1;if(!B.immediate&&F.immediate)return 1;if(B.createdAt<F.createdAt)return -1;if(B.createdAt>F.createdAt)return 1;if(B.id<F.id)return -1;if(B.id>F.id)return 1}function Re(B,F,Q){let te=B.timers,j=null,ge,nt;for(ge in te)te.hasOwnProperty(ge)&&(nt=ie(F,Q,te[ge]),nt&&(!j||fe(j,te[ge])===1)&&(j=te[ge]));return j}function Fe(B){let F=B.timers,Q=null,te;for(te in F)F.hasOwnProperty(te)&&(!Q||fe(Q,F[te])===1)&&(Q=F[te]);return Q}function k(B){let F=B.timers,Q=null,te;for(te in F)F.hasOwnProperty(te)&&(!Q||fe(Q,F[te])===-1)&&(Q=F[te]);return Q}function re(B,F){if(typeof F.interval=="number"?B.timers[F.id].callAt+=F.interval:delete B.timers[F.id],typeof F.func=="function")F.func.apply(null,F.args);else {let Q=eval;(function(){Q(F.func);})();}}function X(B){return B==="IdleCallback"||B==="AnimationFrame"?`cancel${B}`:`clear${B}`}function ce(B){return B==="IdleCallback"||B==="AnimationFrame"?`request${B}`:`set${B}`}function W(){let B=0;return function(F){!B++&&console.warn(F);}}let Ae=W();function Pe(B,F,Q){if(!F)return;B.timers||(B.timers={});let te=Number(F);if(Number.isNaN(te)||te<s){let j=X(Q);if(B.shouldClearNativeTimers===!0){let ge=B[`_${j}`];return typeof ge=="function"?ge(F):void 0}Ae(`FakeTimers: ${j} was invoked to clear a native timer instead of one created by this library.
|
|
143
|
+
To automatically clean-up native timers, use \`shouldClearNativeTimers\`.`);}if(B.timers.hasOwnProperty(te)){let j=B.timers[te];if(j.type===Q||j.type==="Timeout"&&Q==="Interval"||j.type==="Interval"&&Q==="Timeout")delete B.timers[te];else {let ge=X(Q),nt=ce(j.type);throw new Error(`Cannot clear timer: timer created with ${nt}() but cleared with ${ge}()`)}}}function He(B,F){let Q,te,j,ge="_hrtime",nt="_nextTick";for(te=0,j=B.methods.length;te<j;te++){if(Q=B.methods[te],Q==="hrtime"&&o.process)o.process.hrtime=B[ge];else if(Q==="nextTick"&&o.process)o.process.nextTick=B[nt];else if(Q==="performance"){let Ke=Object.getOwnPropertyDescriptor(B,`_${Q}`);Ke&&Ke.get&&!Ke.set?Object.defineProperty(o,Q,Ke):Ke.configurable&&(o[Q]=B[`_${Q}`]);}else if(o[Q]&&o[Q].hadOwnProperty)o[Q]=B[`_${Q}`];else try{delete o[Q];}catch{}if(B.timersModuleMethods!==void 0)for(let Ke=0;Ke<B.timersModuleMethods.length;Ke++){let Dt=B.timersModuleMethods[Ke];t[Dt.methodName]=Dt.original;}}return F.shouldAdvanceTime===!0&&o.clearInterval(B.attachedInterval),B.methods=[],B.timers?Object.keys(B.timers).map(function(Dt){return B.timers[Dt]}):[]}function Nt(B,F,Q){if(Q[F].hadOwnProperty=Object.prototype.hasOwnProperty.call(B,F),Q[`_${F}`]=B[F],F==="Date"){let te=ue(Q[F],B[F]);B[F]=te;}else if(F==="Intl")B[F]=Q[F];else if(F==="performance"){let te=Object.getOwnPropertyDescriptor(B,F);if(te&&te.get&&!te.set){Object.defineProperty(Q,`_${F}`,te);let j=Object.getOwnPropertyDescriptor(Q,F);Object.defineProperty(B,F,j);}else B[F]=Q[F];}else B[F]=function(){return Q[F].apply(Q,arguments)},Object.defineProperties(B[F],Object.getOwnPropertyDescriptors(Q[F]));B[F].clock=Q;}function Bu(B,F){B.tick(F);}let _t={setTimeout:o.setTimeout,clearTimeout:o.clearTimeout,setInterval:o.setInterval,clearInterval:o.clearInterval,Date:o.Date};S&&(_t.setImmediate=o.setImmediate,_t.clearImmediate=o.clearImmediate),f&&(_t.hrtime=o.process.hrtime),d&&(_t.nextTick=o.process.nextTick),m&&(_t.performance=o.performance),E&&(_t.requestAnimationFrame=o.requestAnimationFrame),b&&(_t.queueMicrotask=!0),_&&(_t.cancelAnimationFrame=o.cancelAnimationFrame),T&&(_t.requestIdleCallback=o.requestIdleCallback),x&&(_t.cancelIdleCallback=o.cancelIdleCallback),v&&(_t.Intl=o.Intl);let zr=o.setImmediate||o.setTimeout;function Ms(B,F){B=Math.floor(Y(B)),F=F||1e3;let Q=0,te=[0,0];if(w===void 0)throw new Error("The global scope doesn't have a `Date` object (see https://github.com/sinonjs/sinon/issues/1852#issuecomment-419622780)");let j={now:B,Date:K(),loopLimit:F};j.Date.clock=j;function ge(){return 16-(j.now-B)%16}function nt(le){let oe=j.now-te[0]-B,de=Math.floor(oe/1e3),pe=(oe-de*1e3)*1e6+Q-te[1];if(Array.isArray(le)){if(le[1]>1e9)throw new TypeError("Number of nanoseconds can't exceed a billion");let De=le[0],ot=pe-le[1],Vr=de-De;return ot<0&&(ot+=1e9,Vr-=1),[Vr,ot]}return [de,pe]}function Ke(){let le=nt();return le[0]*1e3+le[1]/1e6}p&&(nt.bigint=function(){let le=nt();return BigInt(le[0])*BigInt(1e9)+BigInt(le[1])}),v&&(j.Intl=G(),j.Intl.clock=j),j.requestIdleCallback=function(oe,de){let pe=0;j.countTimers()>0&&(pe=50);let De=se(j,{func:oe,args:Array.prototype.slice.call(arguments,2),delay:typeof de>"u"?pe:Math.min(de,pe),idleCallback:!0});return Number(De)},j.cancelIdleCallback=function(oe){return Pe(j,oe,"IdleCallback")},j.setTimeout=function(oe,de){return se(j,{func:oe,args:Array.prototype.slice.call(arguments,2),delay:de})},typeof o.Promise<"u"&&h&&(j.setTimeout[h.custom]=function(oe,de){return new o.Promise(function(De){se(j,{func:De,args:[de],delay:oe});})}),j.clearTimeout=function(oe){return Pe(j,oe,"Timeout")},j.nextTick=function(oe){return J(j,{func:oe,args:Array.prototype.slice.call(arguments,1),error:L?new Error:null})},j.queueMicrotask=function(oe){return j.nextTick(oe)},j.setInterval=function(oe,de){return de=parseInt(de,10),se(j,{func:oe,args:Array.prototype.slice.call(arguments,2),delay:de,interval:de})},j.clearInterval=function(oe){return Pe(j,oe,"Interval")},S&&(j.setImmediate=function(oe){return se(j,{func:oe,args:Array.prototype.slice.call(arguments,1),immediate:!0})},typeof o.Promise<"u"&&h&&(j.setImmediate[h.custom]=function(oe){return new o.Promise(function(pe){se(j,{func:pe,args:[oe],immediate:!0});})}),j.clearImmediate=function(oe){return Pe(j,oe,"Immediate")}),j.countTimers=function(){return Object.keys(j.timers||{}).length+(j.jobs||[]).length},j.requestAnimationFrame=function(oe){let de=se(j,{func:oe,delay:ge(),get args(){return [Ke()]},animation:!0});return Number(de)},j.cancelAnimationFrame=function(oe){return Pe(j,oe,"AnimationFrame")},j.runMicrotasks=function(){ne(j);};function Dt(le,oe,de,pe){let De=typeof le=="number"?le:z(le),ot=Math.floor(De),Vr=Z(De),Jn=Q+Vr,Lt=j.now+ot;if(De<0)throw new TypeError("Negative ticks are not supported");Jn>=1e6&&(Lt+=1,Jn-=1e6),Q=Jn;let fr=j.now,ii=j.now,Yt,Hr,St,Is,ee,si;j.duringTick=!0,St=j.now,ne(j),St!==j.now&&(fr+=j.now-St,Lt+=j.now-St);function Ns(){for(Yt=Re(j,fr,Lt);Yt&&fr<=Lt;){if(j.timers[Yt.id]){fr=Yt.callAt,j.now=Yt.callAt,St=j.now;try{ne(j),re(j,Yt);}catch(dr){Hr=Hr||dr;}if(oe){zr(Is);return}ee();}si();}if(St=j.now,ne(j),St!==j.now&&(fr+=j.now-St,Lt+=j.now-St),j.duringTick=!1,Yt=Re(j,fr,Lt),Yt)try{j.tick(Lt-j.now);}catch(dr){Hr=Hr||dr;}else j.now=Lt,Q=Jn;if(Hr)throw Hr;if(oe)de(j.now);else return j.now}return Is=oe&&function(){try{ee(),si(),Ns();}catch(dr){pe(dr);}},ee=function(){St!==j.now&&(fr+=j.now-St,Lt+=j.now-St,ii+=j.now-St);},si=function(){Yt=Re(j,ii,Lt),ii=fr;},Ns()}return j.tick=function(oe){return Dt(oe,!1)},typeof o.Promise<"u"&&(j.tickAsync=function(oe){return new o.Promise(function(de,pe){zr(function(){try{Dt(oe,!0,de,pe);}catch(De){pe(De);}});})}),j.next=function(){ne(j);let oe=Fe(j);if(!oe)return j.now;j.duringTick=!0;try{return j.now=oe.callAt,re(j,oe),ne(j),j.now}finally{j.duringTick=!1;}},typeof o.Promise<"u"&&(j.nextAsync=function(){return new o.Promise(function(oe,de){zr(function(){try{let pe=Fe(j);if(!pe){oe(j.now);return}let De;j.duringTick=!0,j.now=pe.callAt;try{re(j,pe);}catch(ot){De=ot;}j.duringTick=!1,zr(function(){De?de(De):oe(j.now);});}catch(pe){de(pe);}});})}),j.runAll=function(){let oe,de;for(ne(j),de=0;de<j.loopLimit;de++){if(!j.timers||(oe=Object.keys(j.timers).length,oe===0))return H(),j.now;j.next(),q(j,de);}let pe=Fe(j);throw ae(j,pe)},j.runToFrame=function(){return j.tick(ge())},typeof o.Promise<"u"&&(j.runAllAsync=function(){return new o.Promise(function(oe,de){let pe=0;function De(){zr(function(){try{let ot;if(pe<j.loopLimit){if(!j.timers){H(),oe(j.now);return}if(ot=Object.keys(j.timers).length,ot===0){H(),oe(j.now);return}j.next(),pe++,De(),q(j,pe);return}let Vr=Fe(j);de(ae(j,Vr));}catch(ot){de(ot);}});}De();})}),j.runToLast=function(){let oe=k(j);return oe?j.tick(oe.callAt-j.now):(ne(j),j.now)},typeof o.Promise<"u"&&(j.runToLastAsync=function(){return new o.Promise(function(oe,de){zr(function(){try{let pe=k(j);pe||oe(j.now),oe(j.tickAsync(pe.callAt-j.now));}catch(pe){de(pe);}});})}),j.reset=function(){Q=0,j.timers={},j.jobs=[],j.now=B;},j.setSystemTime=function(oe){let de=Y(oe),pe=de-j.now,De,ot;te[0]=te[0]+pe,te[1]=te[1]+Q,j.now=de,Q=0;for(De in j.timers)j.timers.hasOwnProperty(De)&&(ot=j.timers[De],ot.createdAt+=pe,ot.callAt+=pe);},j.jump=function(oe){let de=typeof oe=="number"?oe:z(oe),pe=Math.floor(de);for(let De of Object.values(j.timers))j.now+pe>De.callAt&&(De.callAt=j.now+pe);j.tick(pe);},m&&(j.performance=Object.create(null),j.performance.now=Ke),f&&(j.hrtime=nt),j}function Fu(B){if(arguments.length>1||B instanceof Date||Array.isArray(B)||typeof B=="number")throw new TypeError(`FakeTimers.install called with ${String(B)} install requires an object parameter`);if(o.Date.isFake===!0)throw new TypeError("Can't install fake timers twice on the same global object.");if(B=typeof B<"u"?B:{},B.shouldAdvanceTime=B.shouldAdvanceTime||!1,B.advanceTimeDelta=B.advanceTimeDelta||20,B.shouldClearNativeTimers=B.shouldClearNativeTimers||!1,B.target)throw new TypeError("config.target is no longer supported. Use `withGlobal(target)` instead.");let F,Q,te=Ms(B.now,B.loopLimit);if(te.shouldClearNativeTimers=B.shouldClearNativeTimers,te.uninstall=function(){return He(te,B)},te.methods=B.toFake||[],te.methods.length===0&&(te.methods=Object.keys(_t).filter(function(j){return j!=="nextTick"&&j!=="queueMicrotask"})),B.shouldAdvanceTime===!0){let j=Bu.bind(null,te,B.advanceTimeDelta),ge=o.setInterval(j,B.advanceTimeDelta);te.attachedInterval=ge;}if(te.methods.includes("performance")){let j=(()=>{if(g)return o.performance.constructor.prototype;if(y)return o.Performance.prototype})();if(j)Object.getOwnPropertyNames(j).forEach(function(ge){ge!=="now"&&(te.performance[ge]=ge.indexOf("getEntries")===0?l:a);});else if((B.toFake||[]).includes("performance"))throw new ReferenceError("non-existent performance object cannot be faked")}for(o===e&&t&&(te.timersModuleMethods=[]),F=0,Q=te.methods.length;F<Q;F++){let j=te.methods[F];if(j==="hrtime"?o.process&&typeof o.process.hrtime=="function"&&Nt(o.process,j,te):j==="nextTick"?o.process&&typeof o.process.nextTick=="function"&&Nt(o.process,j,te):Nt(o,j,te),te.timersModuleMethods!==void 0&&t[j]){let ge=t[j];te.timersModuleMethods.push({methodName:j,original:ge}),t[j]=o[j];}}return te}return {timers:_t,createClock:Ms,install:Fu,withGlobal:r}}let n=r(e);return So.timers=n.timers,So.createClock=n.createClock,So.install=n.install,So.withGlobal=r,So}var RD=OD(),lp=class{_global;_clock;_fakingTime;_fakingDate;_fakeTimers;_userConfig;_now=zt.now;constructor({global:t,config:r}){this._userConfig=r,this._fakingDate=!1,this._fakingTime=!1,this._fakeTimers=RD.withGlobal(t),this._global=t;}clearAllTimers(){this._fakingTime&&this._clock.reset();}dispose(){this.useRealTimers();}runAllTimers(){this._checkFakeTimers()&&this._clock.runAll();}async runAllTimersAsync(){this._checkFakeTimers()&&await this._clock.runAllAsync();}runOnlyPendingTimers(){this._checkFakeTimers()&&this._clock.runToLast();}async runOnlyPendingTimersAsync(){this._checkFakeTimers()&&await this._clock.runToLastAsync();}advanceTimersToNextTimer(t=1){if(this._checkFakeTimers())for(let r=t;r>0&&(this._clock.next(),this._clock.tick(0),this._clock.countTimers()!==0);r--);}async advanceTimersToNextTimerAsync(t=1){if(this._checkFakeTimers())for(let r=t;r>0&&(await this._clock.nextAsync(),this._clock.tick(0),this._clock.countTimers()!==0);r--);}advanceTimersByTime(t){this._checkFakeTimers()&&this._clock.tick(t);}async advanceTimersByTimeAsync(t){this._checkFakeTimers()&&await this._clock.tickAsync(t);}advanceTimersToNextFrame(){this._checkFakeTimers()&&this._clock.runToFrame();}runAllTicks(){this._checkFakeTimers()&&this._clock.runMicrotasks();}useRealTimers(){this._fakingDate&&(h1(),this._fakingDate=!1),this._fakingTime&&(this._clock.uninstall(),this._fakingTime=!1);}useFakeTimers(){if(this._fakingDate)throw new Error('"setSystemTime" was called already and date was mocked. Reset timers using `vi.useRealTimers()` if you want to use fake timers again.');if(!this._fakingTime){let t=Object.keys(this._fakeTimers.timers).filter(n=>n!=="nextTick");if(this._userConfig?.toFake?.includes("nextTick")&&Bd())throw new Error("process.nextTick cannot be mocked inside child_process");let r=(this._userConfig?.toFake||t).filter(n=>{switch(n){case"setImmediate":case"clearImmediate":return n in this._global&&this._global[n];default:return !0}});this._clock=this._fakeTimers.install({now:Date.now(),...this._userConfig,toFake:r}),this._fakingTime=!0;}}reset(){if(this._checkFakeTimers()){let{now:t}=this._clock;this._clock.reset(),this._clock.setSystemTime(t);}}setSystemTime(t){this._fakingTime?this._clock.setSystemTime(t):(p1(t??this.getRealSystemTime()),this._fakingDate=!0);}getRealSystemTime(){return this._now()}getTimerCount(){return this._checkFakeTimers()?this._clock.countTimers():0}configure(t){this._userConfig=t;}isFakeTimers(){return this._fakingTime}_checkFakeTimers(){if(!this._fakingTime)throw new Error('Timers are not mocked. Try calling "vi.useFakeTimers()" first.');return this._fakingTime}};function B1(e,t){return t.stack!==void 0&&(e.stack=t.stack.replace(t.message,e.message)),e}function MD(e,t={}){let{setTimeout:r,setInterval:n,clearTimeout:o,clearInterval:i}=En(),{interval:s=50,timeout:a=1e3}=typeof t=="number"?{timeout:t}:t,l=new Error("STACK_TRACE_ERROR");return new Promise((c,u)=>{let f,p="idle",d,h,m=b=>{d&&o(d),h&&i(h),c(b);},y=()=>{h&&i(h);let b=f;b||(b=B1(new Error("Timed out in waitFor!"),l)),u(b);},g=()=>{if(jn.isFakeTimers()&&jn.advanceTimersByTime(s),p!=="pending")try{let b=e();if(b!==null&&typeof b=="object"&&typeof b.then=="function"){let E=b;p="pending",E.then(_=>{p="resolved",m(_);},_=>{p="rejected",f=_;});}else return m(b),!0}catch(b){f=b;}};g()!==!0&&(d=r(y,a),h=n(g,s));})}function ID(e,t={}){let{setTimeout:r,setInterval:n,clearTimeout:o,clearInterval:i}=En(),{interval:s=50,timeout:a=1e3}=typeof t=="number"?{timeout:t}:t,l=new Error("STACK_TRACE_ERROR");return new Promise((c,u)=>{let f="idle",p,d,h=g=>{d&&i(d),g||(g=B1(new Error("Timed out in waitUntil!"),l)),u(g);},m=g=>{if(g)return p&&o(p),d&&i(d),c(g),!0},y=()=>{if(jn.isFakeTimers()&&jn.advanceTimersByTime(s),f!=="pending")try{let g=e();if(g!==null&&typeof g=="object"&&typeof g.then=="function"){let b=g;f="pending",b.then(E=>{f="resolved",m(E);},E=>{f="rejected",h(E);});}else return m(g)}catch(g){h(g);}};y()!==!0&&(p=r(h,a),d=n(y,s));})}function ND(){let e=null,t=null,r=Bt(),n,o=()=>n||=new lp({global:globalThis,config:r.config.fakeTimers}),i=new Map,s=new Map,a=["PROD","DEV","SSR"],l={useFakeTimers(c){if(Bd()&&(c?.toFake?.includes("nextTick")||r.config?.fakeTimers?.toFake?.includes("nextTick")))throw new Error('vi.useFakeTimers({ toFake: ["nextTick"] }) is not supported in node:child_process. Use --pool=threads if mocking nextTick is required.');return c?o().configure({...r.config.fakeTimers,...c}):o().configure(r.config.fakeTimers),o().useFakeTimers(),l},isFakeTimers(){return o().isFakeTimers()},useRealTimers(){return o().useRealTimers(),e=null,l},runOnlyPendingTimers(){return o().runOnlyPendingTimers(),l},async runOnlyPendingTimersAsync(){return await o().runOnlyPendingTimersAsync(),l},runAllTimers(){return o().runAllTimers(),l},async runAllTimersAsync(){return await o().runAllTimersAsync(),l},runAllTicks(){return o().runAllTicks(),l},advanceTimersByTime(c){return o().advanceTimersByTime(c),l},async advanceTimersByTimeAsync(c){return await o().advanceTimersByTimeAsync(c),l},advanceTimersToNextTimer(){return o().advanceTimersToNextTimer(),l},async advanceTimersToNextTimerAsync(){return await o().advanceTimersToNextTimerAsync(),l},advanceTimersToNextFrame(){return o().advanceTimersToNextFrame(),l},getTimerCount(){return o().getTimerCount()},setSystemTime(c){let u=c instanceof Date?c:new Date(c);return e=u,o().setSystemTime(u),l},getMockedSystemTime(){return e},getRealSystemTime(){return o().getRealSystemTime()},clearAllTimers(){return o().clearAllTimers(),l},spyOn:mv,fn:yv,waitFor:MD,waitUntil:ID,hoisted(c){return tt(c,'"vi.hoisted" factory',["function"]),c()},mock(c,u){if(typeof c!="string")throw new TypeError(`vi.mock() expects a string path, but received a ${typeof c}`);let f=To("mock");rr().queueMock(c,f,typeof u=="function"?()=>u(()=>rr().importActual(c,f,rr().getMockContext().callstack)):u);},unmock(c){if(typeof c!="string")throw new TypeError(`vi.unmock() expects a string path, but received a ${typeof c}`);rr().queueUnmock(c,To("unmock"));},doMock(c,u){if(typeof c!="string")throw new TypeError(`vi.doMock() expects a string path, but received a ${typeof c}`);let f=To("doMock");rr().queueMock(c,f,typeof u=="function"?()=>u(()=>rr().importActual(c,f,rr().getMockContext().callstack)):u);},doUnmock(c){if(typeof c!="string")throw new TypeError(`vi.doUnmock() expects a string path, but received a ${typeof c}`);rr().queueUnmock(c,To("doUnmock"));},async importActual(c){return rr().importActual(c,To("importActual"),rr().getMockContext().callstack)},async importMock(c){return rr().importMock(c,To("importMock"))},mocked(c,u={}){return c},isMockFunction(c){return Ta(c)},clearAllMocks(){return Si.forEach(c=>c.mockClear()),l},resetAllMocks(){return Si.forEach(c=>c.mockReset()),l},restoreAllMocks(){return Si.forEach(c=>c.mockRestore()),l},stubGlobal(c,u){return i.has(c)||i.set(c,Object.getOwnPropertyDescriptor(globalThis,c)),Object.defineProperty(globalThis,c,{value:u,writable:!0,configurable:!0,enumerable:!0}),l},stubEnv(c,u){return s.has(c)||s.set(c,process.env[c]),a.includes(c)?process.env[c]=u?"1":"":u===void 0?delete process.env[c]:process.env[c]=String(u),l},unstubAllGlobals(){return i.forEach((c,u)=>{c?Object.defineProperty(globalThis,u,c):Reflect.deleteProperty(globalThis,u);}),i.clear(),l},unstubAllEnvs(){return s.forEach((c,u)=>{c===void 0?delete process.env[u]:process.env[u]=c;}),s.clear(),l},resetModules(){return Zk(r.moduleCache),l},async dynamicImportSettled(){return D1()},setConfig(c){t||(t={...r.config}),Object.assign(r.config,c);},resetConfig(){t&&Object.assign(r.config,t);}};return l}var El=ND(),jn=El;function rr(){return typeof __vitest_mocker__<"u"?__vitest_mocker__:new Proxy({},{get(e,t){throw new Error(`Vitest mocker was not initialized in this environment. vi.${String(t)}() is forbidden.`)}})}function To(e){let r=Vu({stackTraceLimit:5}).split(`
|
|
144
|
+
`),n=r.findIndex(i=>i.includes(` at Object.${e}`)||i.includes(`${e}@`));return ra(r[n+1])?.file||""}var up={},F1;function jD(){return F1||(F1=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.expectTypeOf=void 0;let t=()=>!0,r=n=>{let o=["parameters","returns","resolves","not","items","constructorParameters","thisParameter","instance","guards","asserts","branded"],i={toBeAny:t,toBeUnknown:t,toBeNever:t,toBeFunction:t,toBeObject:t,toBeArray:t,toBeString:t,toBeNumber:t,toBeBoolean:t,toBeVoid:t,toBeSymbol:t,toBeNull:t,toBeUndefined:t,toBeNullable:t,toMatchTypeOf:t,toEqualTypeOf:t,toBeCallableWith:t,toBeConstructibleWith:t,extract:e.expectTypeOf,exclude:e.expectTypeOf,pick:e.expectTypeOf,omit:e.expectTypeOf,toHaveProperty:e.expectTypeOf,parameter:e.expectTypeOf};return o.forEach(a=>Object.defineProperty(i,a,{get:()=>(0, e.expectTypeOf)({})})),i};e.expectTypeOf=r;}(up)),up}var cp=jD();function qD(){}var $D=qD;function U1(){return process.env.VITEST_MODE==="WATCH"?"watch":"run"}function kD(){return U1()==="watch"}function DD(e){return Bt().providedContext[e]}Object.freeze({__proto__:null,afterAll:$c,afterEach:kc,assert:A,assertType:$D,beforeAll:fi,beforeEach:di,bench:fb,chai:Ei,createExpect:wl,describe:Nc,expect:Co,expectTypeOf:cp.expectTypeOf,getRunningMode:U1,inject:DD,isFirstRun:db,isWatchMode:kD,it:jc,onTestFailed:Dc,onTestFinished:Lc,runOnce:Uc,should:wi,suite:Gr,test:oa,vi:jn,vitest:El});cp.expectTypeOf;var zD=(e=>typeof Ot<"u"?Ot:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Ot<"u"?Ot:t)[r]}):e)(function(e){if(typeof Ot<"u")return Ot.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),VD={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]},HD=Object.entries(VD);function Op(e){return String(e)}Op.open="";Op.close="";function WD(e=!1){let t=typeof process<"u"?process:void 0,r=t?.env||{},n=t?.argv||[];return !("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||t?.platform==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function GD(e=!1){let t=WD(e),r=(s,a,l,c)=>{let u="",f=0;do u+=s.substring(f,c)+l,f=c+a.length,c=s.indexOf(a,f);while(~c);return u+s.substring(f)},n=(s,a,l=s)=>{let c=u=>{let f=String(u),p=f.indexOf(a,s.length);return ~p?s+r(f,a,l,p)+a:s+f+a};return c.open=s,c.close=a,c},o={isColorSupported:t},i=s=>`\x1B[${s}m`;for(let[s,a]of HD)o[s]=t?n(i(a[0]),i(a[1]),a[2]):Op;return o}var Mr=GD(!1);function KD(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&n.push(o);return n}function Tl(e,t,r,n,o,i,s=": "){let a="",l=0,c=e.next();if(!c.done){a+=t.spacingOuter;let u=r+t.indent;for(;!c.done;){if(a+=u,l++===t.maxWidth){a+="\u2026";break}let f=i(c.value[0],t,u,n,o),p=i(c.value[1],t,u,n,o);a+=f+s+p,c=e.next(),c.done?t.min||(a+=","):a+=`,${t.spacingInner}`;}a+=t.spacingOuter+r;}return a}function Rp(e,t,r,n,o,i){let s="",a=0,l=e.next();if(!l.done){s+=t.spacingOuter;let c=r+t.indent;for(;!l.done;){if(s+=c,a++===t.maxWidth){s+="\u2026";break}s+=i(l.value,t,c,n,o),l=e.next(),l.done?t.min||(s+=","):s+=`,${t.spacingInner}`;}s+=t.spacingOuter+r;}return s}function Sl(e,t,r,n,o,i){let s="";e=e instanceof ArrayBuffer?new DataView(e):e;let a=c=>c instanceof DataView,l=a(e)?e.byteLength:e.length;if(l>0){s+=t.spacingOuter;let c=r+t.indent;for(let u=0;u<l;u++){if(s+=c,u===t.maxWidth){s+="\u2026";break}(a(e)||u in e)&&(s+=i(a(e)?e.getInt8(u):e[u],t,c,n,o)),u<l-1?s+=`,${t.spacingInner}`:t.min||(s+=",");}s+=t.spacingOuter+r;}return s}function Mp(e,t,r,n,o,i){let s="",a=KD(e,t.compareKeys);if(a.length>0){s+=t.spacingOuter;let l=r+t.indent;for(let c=0;c<a.length;c++){let u=a[c],f=i(u,t,l,n,o),p=i(e[u],t,l,n,o);s+=`${l+f}: ${p}`,c<a.length-1?s+=`,${t.spacingInner}`:t.min||(s+=",");}s+=t.spacingOuter+r;}return s}var YD=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,fp=" ",JD=(e,t,r,n,o,i)=>{let s=e.toString();if(s==="ArrayContaining"||s==="ArrayNotContaining")return ++n>t.maxDepth?`[${s}]`:`${s+fp}[${Sl(e.sample,t,r,n,o,i)}]`;if(s==="ObjectContaining"||s==="ObjectNotContaining")return ++n>t.maxDepth?`[${s}]`:`${s+fp}{${Mp(e.sample,t,r,n,o,i)}}`;if(s==="StringMatching"||s==="StringNotMatching"||s==="StringContaining"||s==="StringNotContaining")return s+fp+i(e.sample,t,r,n,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},XD=e=>e&&e.$$typeof===YD,QD={serialize:JD,test:XD},ZD=" ",NE=new Set(["DOMStringMap","NamedNodeMap"]),e2=/^(?:HTML\w*Collection|NodeList)$/;function t2(e){return NE.has(e)||e2.test(e)}var r2=e=>e&&e.constructor&&!!e.constructor.name&&t2(e.constructor.name);function n2(e){return e.constructor.name==="NamedNodeMap"}var o2=(e,t,r,n,o,i)=>{let s=e.constructor.name;return ++n>t.maxDepth?`[${s}]`:(t.min?"":s+ZD)+(NE.has(s)?`{${Mp(n2(e)?[...e].reduce((a,l)=>(a[l.name]=l.value,a),{}):{...e},t,r,n,o,i)}}`:`[${Sl([...e],t,r,n,o,i)}]`)},i2={serialize:o2,test:r2};function jE(e){return e.replaceAll("<","<").replaceAll(">",">")}function Ip(e,t,r,n,o,i,s){let a=n+r.indent,l=r.colors;return e.map(c=>{let u=t[c],f=s(u,r,a,o,i);return typeof u!="string"&&(f.includes(`
|
|
145
|
+
`)&&(f=r.spacingOuter+a+f+r.spacingOuter+n),f=`{${f}}`),`${r.spacingInner+n+l.prop.open+c+l.prop.close}=${l.value.open}${f}${l.value.close}`}).join("")}function Np(e,t,r,n,o,i){return e.map(s=>t.spacingOuter+r+(typeof s=="string"?qE(s,t):i(s,t,r,n,o))).join("")}function qE(e,t){let r=t.colors.content;return r.open+jE(e)+r.close}function s2(e,t){let r=t.colors.comment;return `${r.open}<!--${jE(e)}-->${r.close}`}function jp(e,t,r,n,o){let i=n.colors.tag;return `${i.open}<${e}${t&&i.close+t+n.spacingOuter+o+i.open}${r?`>${i.close}${r}${n.spacingOuter}${o}${i.open}</${e}`:`${t&&!n.min?"":" "}/`}>${i.close}`}function qp(e,t){let r=t.colors.tag;return `${r.open}<${e}${r.close} \u2026${r.open} />${r.close}`}var a2=1,$E=3,kE=8,DE=11,l2=/^(?:(?:HTML|SVG)\w*)?Element$/;function u2(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return !1}}function c2(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||u2(e);return r===a2&&(l2.test(t)||o)||r===$E&&t==="Text"||r===kE&&t==="Comment"||r===DE&&t==="DocumentFragment"}var f2=e=>{var t;return ((t=e?.constructor)==null?void 0:t.name)&&c2(e)};function d2(e){return e.nodeType===$E}function p2(e){return e.nodeType===kE}function dp(e){return e.nodeType===DE}var h2=(e,t,r,n,o,i)=>{if(d2(e))return qE(e.data,t);if(p2(e))return s2(e.data,t);let s=dp(e)?"DocumentFragment":e.tagName.toLowerCase();return ++n>t.maxDepth?qp(s,t):jp(s,Ip(dp(e)?[]:Array.from(e.attributes,a=>a.name).sort(),dp(e)?{}:[...e.attributes].reduce((a,l)=>(a[l.name]=l.value,a),{}),t,r+t.indent,n,o,i),Np(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,i),t,r)},m2={serialize:h2,test:f2},g2="@@__IMMUTABLE_ITERABLE__@@",y2="@@__IMMUTABLE_LIST__@@",b2="@@__IMMUTABLE_KEYED__@@",v2="@@__IMMUTABLE_MAP__@@",V1="@@__IMMUTABLE_ORDERED__@@",w2="@@__IMMUTABLE_RECORD__@@",E2="@@__IMMUTABLE_SEQ__@@",_2="@@__IMMUTABLE_SET__@@",S2="@@__IMMUTABLE_STACK__@@",Ro=e=>`Immutable.${e}`,Cl=e=>`[${e}]`,zi=" ",H1="\u2026";function T2(e,t,r,n,o,i,s){return ++n>t.maxDepth?Cl(Ro(s)):`${Ro(s)+zi}{${Tl(e.entries(),t,r,n,o,i)}}`}function C2(e){let t=0;return {next(){if(t<e._keys.length){let r=e._keys[t++];return {done:!1,value:[r,e.get(r)]}}return {done:!0,value:void 0}}}}function x2(e,t,r,n,o,i){let s=Ro(e._name||"Record");return ++n>t.maxDepth?Cl(s):`${s+zi}{${Tl(C2(e),t,r,n,o,i)}}`}function A2(e,t,r,n,o,i){let s=Ro("Seq");return ++n>t.maxDepth?Cl(s):e[b2]?`${s+zi}{${e._iter||e._object?Tl(e.entries(),t,r,n,o,i):H1}}`:`${s+zi}[${e._iter||e._array||e._collection||e._iterable?Rp(e.values(),t,r,n,o,i):H1}]`}function pp(e,t,r,n,o,i,s){return ++n>t.maxDepth?Cl(Ro(s)):`${Ro(s)+zi}[${Rp(e.values(),t,r,n,o,i)}]`}var P2=(e,t,r,n,o,i)=>e[v2]?T2(e,t,r,n,o,i,e[V1]?"OrderedMap":"Map"):e[y2]?pp(e,t,r,n,o,i,"List"):e[_2]?pp(e,t,r,n,o,i,e[V1]?"OrderedSet":"Set"):e[S2]?pp(e,t,r,n,o,i,"Stack"):e[E2]?A2(e,t,r,n,o,i):x2(e,t,r,n,o,i),O2=e=>e&&(e[g2]===!0||e[w2]===!0),R2={serialize:P2,test:O2},LE={exports:{}},Ie={},W1;function M2(){return W1||(W1=1,function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),h=!1,m=!1,y=!1,g=!1,b=!1,E;E=Symbol.for("react.module.reference");function _(W){return !!(typeof W=="string"||typeof W=="function"||W===r||W===o||b||W===n||W===c||W===u||g||W===d||h||m||y||typeof W=="object"&&W!==null&&(W.$$typeof===p||W.$$typeof===f||W.$$typeof===i||W.$$typeof===s||W.$$typeof===l||W.$$typeof===E||W.getModuleId!==void 0))}function T(W){if(typeof W=="object"&&W!==null){var Ae=W.$$typeof;switch(Ae){case e:var Pe=W.type;switch(Pe){case r:case o:case n:case c:case u:return Pe;default:var He=Pe&&Pe.$$typeof;switch(He){case a:case s:case l:case p:case f:case i:return He;default:return Ae}}case t:return Ae}}}var x=s,S=i,v=e,w=l,I=r,C=p,N=f,L=t,q=o,H=n,z=c,Z=u,Y=!1,ie=!1;function ae(W){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ue(W){return ie||(ie=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function K(W){return T(W)===s}function G(W){return T(W)===i}function J(W){return typeof W=="object"&&W!==null&&W.$$typeof===e}function ne(W){return T(W)===l}function se(W){return T(W)===r}function fe(W){return T(W)===p}function Re(W){return T(W)===f}function Fe(W){return T(W)===t}function k(W){return T(W)===o}function re(W){return T(W)===n}function X(W){return T(W)===c}function ce(W){return T(W)===u}Ie.ContextConsumer=x,Ie.ContextProvider=S,Ie.Element=v,Ie.ForwardRef=w,Ie.Fragment=I,Ie.Lazy=C,Ie.Memo=N,Ie.Portal=L,Ie.Profiler=q,Ie.StrictMode=H,Ie.Suspense=z,Ie.SuspenseList=Z,Ie.isAsyncMode=ae,Ie.isConcurrentMode=ue,Ie.isContextConsumer=K,Ie.isContextProvider=G,Ie.isElement=J,Ie.isForwardRef=ne,Ie.isFragment=se,Ie.isLazy=fe,Ie.isMemo=Re,Ie.isPortal=Fe,Ie.isProfiler=k,Ie.isStrictMode=re,Ie.isSuspense=X,Ie.isSuspenseList=ce,Ie.isValidElementType=_,Ie.typeOf=T;}()),Ie}LE.exports=M2();var qn=LE.exports;function BE(e,t=[]){if(Array.isArray(e))for(let r of e)BE(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function G1(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(qn.isFragment(e))return "React.Fragment";if(qn.isSuspense(e))return "React.Suspense";if(typeof t=="object"&&t!==null){if(qn.isContextProvider(e))return "Context.Provider";if(qn.isContextConsumer(e))return "Context.Consumer";if(qn.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(qn.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return "UNDEFINED"}function I2(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var N2=(e,t,r,n,o,i)=>++n>t.maxDepth?qp(G1(e),t):jp(G1(e),Ip(I2(e),e.props,t,r+t.indent,n,o,i),Np(BE(e.props.children),t,r+t.indent,n,o,i),t,r),j2=e=>e!=null&&qn.isElement(e),q2={serialize:N2,test:j2},$2=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function k2(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var D2=(e,t,r,n,o,i)=>++n>t.maxDepth?qp(e.type,t):jp(e.type,e.props?Ip(k2(e),e.props,t,r+t.indent,n,o,i):"",e.children?Np(e.children,t,r+t.indent,n,o,i):"",t,r),L2=e=>e&&e.$$typeof===$2,B2={serialize:D2,test:L2},FE=Object.prototype.toString,F2=Date.prototype.toISOString,U2=Error.prototype.toString,K1=RegExp.prototype.toString;function hp(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function z2(e){return typeof window<"u"&&e===window}var V2=/^Symbol\((.*)\)(.*)$/,H2=/\n/g,UE=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name;}};function W2(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function G2(e){return Object.is(e,-0)?"-0":String(e)}function K2(e){return `${e}n`}function Y1(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function J1(e){return String(e).replace(V2,"Symbol($1)")}function X1(e){return `[${U2.call(e)}]`}function zE(e,t,r,n){if(e===!0||e===!1)return `${e}`;if(e===void 0)return "undefined";if(e===null)return "null";let o=typeof e;if(o==="number")return G2(e);if(o==="bigint")return K2(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return Y1(e,t);if(o==="symbol")return J1(e);let i=FE.call(e);return i==="[object WeakMap]"?"WeakMap {}":i==="[object WeakSet]"?"WeakSet {}":i==="[object Function]"||i==="[object GeneratorFunction]"?Y1(e,t):i==="[object Symbol]"?J1(e):i==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":F2.call(e):i==="[object Error]"?X1(e):i==="[object RegExp]"?r?K1.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):K1.call(e):e instanceof Error?X1(e):null}function VE(e,t,r,n,o,i){if(o.includes(e))return "[Circular]";o=[...o],o.push(e);let s=++n>t.maxDepth,a=t.min;if(t.callToJSON&&!s&&e.toJSON&&typeof e.toJSON=="function"&&!i)return en(e.toJSON(),t,r,n,o,!0);let l=FE.call(e);return l==="[object Arguments]"?s?"[Arguments]":`${a?"":"Arguments "}[${Sl(e,t,r,n,o,en)}]`:W2(l)?s?`[${e.constructor.name}]`:`${a||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Sl(e,t,r,n,o,en)}]`:l==="[object Map]"?s?"[Map]":`Map {${Tl(e.entries(),t,r,n,o,en," => ")}}`:l==="[object Set]"?s?"[Set]":`Set {${Rp(e.values(),t,r,n,o,en)}}`:s||z2(e)?`[${hp(e)}]`:`${a||!t.printBasicPrototype&&hp(e)==="Object"?"":`${hp(e)} `}{${Mp(e,t,r,n,o,en)}}`}function Y2(e){return e.serialize!=null}function HE(e,t,r,n,o,i){let s;try{s=Y2(e)?e.serialize(t,r,n,o,i,en):e.print(t,a=>en(a,r,n,o,i),a=>{let l=n+r.indent;return l+a.replaceAll(H2,`
|
|
146
|
+
${l}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors);}catch(a){throw new UE(a.message,a.stack)}if(typeof s!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof s}".`);return s}function WE(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new UE(n.message,n.stack)}return null}function en(e,t,r,n,o,i){let s=WE(t.plugins,e);if(s!==null)return HE(s,e,t,r,n,o);let a=zE(e,t.printFunctionName,t.escapeRegex,t.escapeString);return a!==null?a:VE(e,t,r,n,o,i)}var $p={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},GE=Object.keys($p),nr={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:$p};function J2(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(nr,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function X2(){return GE.reduce((e,t)=>{let r=$p[t],n=r&&Mr[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}function Q2(){return GE.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function KE(e){return e?.printFunctionName??nr.printFunctionName}function YE(e){return e?.escapeRegex??nr.escapeRegex}function JE(e){return e?.escapeString??nr.escapeString}function Q1(e){return {callToJSON:e?.callToJSON??nr.callToJSON,colors:e?.highlight?X2():Q2(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:nr.compareKeys,escapeRegex:YE(e),escapeString:JE(e),indent:e?.min?"":Z2(e?.indent??nr.indent),maxDepth:e?.maxDepth??nr.maxDepth,maxWidth:e?.maxWidth??nr.maxWidth,min:e?.min??nr.min,plugins:e?.plugins??nr.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:KE(e),spacingInner:e?.min?" ":`
|
|
147
|
+
`,spacingOuter:e?.min?"":`
|
|
148
|
+
`}}function Z2(e){return Array.from({length:e+1}).join(" ")}function gr(e,t){if(t&&(J2(t),t.plugins)){let n=WE(t.plugins,e);if(n!==null)return HE(n,e,Q1(t),"",0,[])}let r=zE(e,KE(t),YE(t),JE(t));return r!==null?r:VE(e,Q1(t),"",0,[])}var XE={AsymmetricMatcher:QD,DOMCollection:i2,DOMElement:m2,Immutable:R2,ReactElement:q2,ReactTestComponent:B2},Z1={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"]},eL={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Mo="\u2026";function tL(e,t){let r=Z1[eL[t]]||Z1[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function rL({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!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:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(l),seen:a,inspect:u,stylize:c};return f.colors&&(f.stylize=tL),f}function nL(e){return e>="\uD800"&&e<="\uDBFF"}function tn(e,t,r=Mo){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let i=t-n;return i>0&&nL(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}function or(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return "";let i=t.truncate,s="",a="",l="";for(let c=0;c<o;c+=1){let u=c+1===e.length,f=c+2===e.length;l=`${Mo}(${e.length-c})`;let p=e[c];t.truncate=i-s.length-(u?0:n.length);let d=a||r(p,t)+(u?"":n),h=s.length+d.length,m=h+l.length;if(u&&h>i&&s.length+l.length<=i||!u&&!f&&m>i||(a=u?"":r(e[c+1],t)+(f?"":n),!u&&f&&m>i&&h+a.length>i))break;if(s+=d,!u&&!f&&h+a.length>=i){l=`${Mo}(${e.length-c-1})`;break}l="";}return `${s}${l}`}function oL(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function Vi([e,t],r){return r.truncate-=2,typeof e=="string"?e=oL(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function iL(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return "[]";t.truncate-=4;let n=or(e,t);t.truncate-=n.length;let o="";return r.length&&(o=or(r.map(i=>[i,e[i]]),t,Vi)),`[ ${n}${o?`, ${o}`:""} ]`}var sL=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function Or(e,t){let r=sL(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return `${r}[]`;let o="";for(let s=0;s<e.length;s++){let a=`${t.stylize(tn(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=a.length,e[s]!==e.length&&t.truncate<=3){o+=`${Mo}(${e.length-e[s]+1})`;break}o+=a;}let i="";return n.length&&(i=or(n.map(s=>[s,e[s]]),t,Vi)),`${r}[ ${o}${i?`, ${i}`:""} ]`}function aL(e,t){let r=e.toJSON();if(r===null)return "Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${tn(n[1],t.truncate-o.length-1)}`,"date")}function eE(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${tn(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function lL([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function uL(e){let t=[];return e.forEach((r,n)=>{t.push([n,r]);}),t}function cL(e,t){return e.size-1<=0?"Map{}":(t.truncate-=7,`Map{ ${or(uL(e),t,lL)} }`)}var fL=Number.isNaN||(e=>e!==e);function tE(e,t){return fL(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(tn(String(e),t.truncate),"number")}function rE(e,t){let r=tn(e.toString(),t.truncate-1);return r!==Mo&&(r+="n"),t.stylize(r,"bigint")}function dL(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${tn(o,n)}/${r}`,"regexp")}function pL(e){let t=[];return e.forEach(r=>{t.push(r);}),t}function hL(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${or(pL(e),t)} }`)}var nE=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),mL={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},gL=16,yL=4;function bL(e){return mL[e]||`\\u${`0000${e.charCodeAt(0).toString(gL)}`.slice(-yL)}`}function oE(e,t){return nE.test(e)&&(e=e.replace(nE,bL)),t.stylize(`'${tn(e,t.truncate-2)}'`,"string")}function iE(e){return "description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var QE=()=>"Promise{\u2026}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(QE=(n,o)=>{let[i,s]=e(n);return i===t?"Promise{<pending>}":`Promise${i===r?"!":""}{${o.inspect(s,o)}}`});}catch{}var vL=QE;function _l(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return "{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.indexOf(e)>=0)return "[Circular]";t.seen.push(e);let o=or(r.map(a=>[a,e[a]]),t,Vi),i=or(n.map(a=>[a,e[a]]),t,Vi);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}var mp=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function wL(e,t){let r="";return mp&&mp in e&&(r=e[mp]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${_l(e,t)}`}function EL(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${or(e,t)} ]`)}var _L=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description"];function SL(e,t){let r=Object.getOwnPropertyNames(e).filter(s=>_L.indexOf(s)===-1),n=e.name;t.truncate-=n.length;let o="";typeof e.message=="string"?o=tn(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5;let i=or(r.map(s=>[s,e[s]]),t,Vi);return `${n}${o}${i?` { ${i} }`:""}`}function TL([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function Ep(e,t){return or(e,t,ZE,`
|
|
149
|
+
`)}function ZE(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),i=t.stylize(">","special"),s=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let a="";r.length>0&&(a+=" ",a+=or(r.map(u=>[u,e.getAttribute(u)]),t,TL," ")),t.truncate-=a.length;let l=t.truncate,c=Ep(e.children,t);return c&&c.length>l&&(c=`${Mo}(${e.children.length})`),`${o}${a}${i}${c}${s}`}var CL=typeof Symbol=="function"&&typeof Symbol.for=="function",gp=CL?Symbol.for("chai/inspect"):"@@chai/inspect",Ao=!1;try{let e=zD("util");Ao=e.inspect?e.inspect.custom:!1;}catch{Ao=!1;}var sE=new WeakMap,aE={},lE={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:tE,Number:tE,bigint:rE,BigInt:rE,string:oE,String:oE,function:eE,Function:eE,symbol:iE,Symbol:iE,Array:iL,Date:aL,Map:cL,Set:hL,RegExp:dL,Promise:vL,WeakSet:(e,t)=>t.stylize("WeakSet{\u2026}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{\u2026}","special"),Arguments:EL,Int8Array:Or,Uint8Array:Or,Uint8ClampedArray:Or,Int16Array:Or,Uint16Array:Or,Int32Array:Or,Uint32Array:Or,Float32Array:Or,Float64Array:Or,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:SL,HTMLCollection:Ep,NodeList:Ep},xL=(e,t,r)=>gp in e&&typeof e[gp]=="function"?e[gp](t):Ao&&Ao in e&&typeof e[Ao]=="function"?e[Ao](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&sE.has(e.constructor)?sE.get(e.constructor)(e,t):aE[r]?aE[r](e,t):"",AL=Object.prototype.toString;function _p(e,t={}){let r=rL(t,_p),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=AL.call(e).slice(8,-1)),o in lE)return lE[o](e,r);if(n&&e){let s=xL(e,r,o);if(s)return typeof s=="string"?s:_p(s,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?_l(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?ZE(e,r):"constructor"in e?e.constructor!==Object?wL(e,r):_l(e,r):e===Object(e)?_l(e,r):r.stylize(String(e),o)}var{AsymmetricMatcher:PL,DOMCollection:OL,DOMElement:RL,Immutable:ML,ReactElement:IL,ReactTestComponent:NL}=XE,uE=[NL,IL,RL,OL,ML,PL];function Hi(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,i;try{i=gr(e,{maxDepth:t,escapeString:!1,plugins:uE,...n});}catch{i=gr(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:uE,...n});}return i.length>=o&&t>1?Hi(e,Math.floor(t/2)):i}var jL=/%[sdjifoOc%]/g;function qL(...e){if(typeof e[0]!="string"){let i=[];for(let s=0;s<e.length;s++)i.push(Fi(e[s],{depth:0,colors:!1}));return i.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(jL,i=>{if(i==="%%")return "%";if(r>=t)return i;switch(i){case"%s":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}n`:typeof s=="number"&&s===0&&1/s<0?"-0":typeof s=="object"&&s!==null?Fi(s,{depth:0,colors:!1}):String(s)}case"%d":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}n`:Number(s).toString()}case"%i":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}n`:Number.parseInt(String(s)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return Fi(e[r++],{showHidden:!0,showProxy:!0});case"%O":return Fi(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(s){let a=s.message;if(a.includes("circular structure")||a.includes("cyclic structures")||a.includes("cyclic object"))return "[Circular]";throw s}default:return i}});for(let i=e[r];r<t;i=e[++r])i===null||typeof i!="object"?o+=` ${i}`:o+=` ${Fi(i)}`;return o}function Fi(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),_p(e,t)}function $L(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Sp(e){return Object.prototype.toString.apply(e).slice(8,-1)}function kL(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r);}function e_(e){let t=new Set;return $L(e)?[]:(kL(e,t),Array.from(t))}var t_={forceWritable:!1};function cE(e,t=t_){return Tp(e,new WeakMap,t)}function Tp(e,t,r=t_){let n,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array(n=e.length),t.set(e,o);n--;)o[n]=Tp(e[n],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let i=e_(e);for(let s of i){let a=Object.getOwnPropertyDescriptor(e,s);if(!a)continue;let l=Tp(e[s],t,r);r.forceWritable?Object.defineProperty(o,s,{enumerable:a.enumerable,configurable:!0,writable:!0,value:l}):"get"in a?Object.defineProperty(o,s,{...a,get(){return l}}):Object.defineProperty(o,s,{...a,value:l});}return o}return e}function fE(e){if(e===void 0)return "undefined";if(e===null)return "null";if(Array.isArray(e))return "array";if(typeof e=="boolean")return "boolean";if(typeof e=="function")return "function";if(typeof e=="number")return "number";if(typeof e=="string")return "string";if(typeof e=="bigint")return "bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return "regexp";if(e.constructor===Map)return "map";if(e.constructor===Set)return "set";if(e.constructor===Date)return "date"}return "object"}else if(typeof e=="symbol")return "symbol";throw new Error(`value of unknown type: ${e}`)}var mt=-1,ut=1,Je=0,We=class{0;1;constructor(e,t){this[0]=e,this[1]=t;}},DL=function(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),o=n,i=0;for(;r<o;)e.substring(i,o)===t.substring(i,o)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o},r_=function(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,n=Math.min(e.length,t.length),o=n,i=0;for(;r<o;)e.substring(e.length-o,e.length-i)===t.substring(t.length-o,t.length-i)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o},dE=function(e,t){let r=e.length,n=t.length;if(r===0||n===0)return 0;r>n?e=e.substring(r-n):r<n&&(t=t.substring(0,r));let o=Math.min(r,n);if(e===t)return o;let i=0,s=1;for(;;){let a=e.substring(o-s),l=t.indexOf(a);if(l===-1)return i;s+=l,(l===0||e.substring(o-s)===t.substring(0,s))&&(i=s,s++);}},LL=function(e){let t=!1,r=[],n=0,o=null,i=0,s=0,a=0,l=0,c=0;for(;i<e.length;)e[i][0]===Je?(r[n++]=i,s=l,a=c,l=0,c=0,o=e[i][1]):(e[i][0]===ut?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(r[n-1],0,new We(mt,o)),e[r[n-1]+1][0]=ut,n--,n--,i=n>0?r[n-1]:-1,s=0,a=0,l=0,c=0,o=null,t=!0)),i++;for(t&&n_(e),UL(e),i=1;i<e.length;){if(e[i-1][0]===mt&&e[i][0]===ut){let u=e[i-1][1],f=e[i][1],p=dE(u,f),d=dE(f,u);p>=d?(p>=u.length/2||p>=f.length/2)&&(e.splice(i,0,new We(Je,f.substring(0,p))),e[i-1][1]=u.substring(0,u.length-p),e[i+1][1]=f.substring(p),i++):(d>=u.length/2||d>=f.length/2)&&(e.splice(i,0,new We(Je,u.substring(0,d))),e[i-1][0]=ut,e[i-1][1]=f.substring(0,f.length-d),e[i+1][0]=mt,e[i+1][1]=u.substring(d),i++),i++;}i++;}},pE=/[^a-z0-9]/i,hE=/\s/,mE=/[\r\n]/,BL=/\n\r?\n$/,FL=/^\r?\n\r?\n/;function UL(e){function t(n,o){if(!n||!o)return 6;let i=n.charAt(n.length-1),s=o.charAt(0),a=i.match(pE),l=s.match(pE),c=a&&i.match(hE),u=l&&s.match(hE),f=c&&i.match(mE),p=u&&s.match(mE),d=f&&n.match(BL),h=p&&o.match(FL);return d||h?5:f||p?4:a&&!c&&u?3:c||u?2:a||l?1:0}let r=1;for(;r<e.length-1;){if(e[r-1][0]===Je&&e[r+1][0]===Je){let n=e[r-1][1],o=e[r][1],i=e[r+1][1],s=r_(n,o);if(s){let f=o.substring(o.length-s);n=n.substring(0,n.length-s),o=f+o.substring(0,o.length-s),i=f+i;}let a=n,l=o,c=i,u=t(n,o)+t(o,i);for(;o.charAt(0)===i.charAt(0);){n+=o.charAt(0),o=o.substring(1)+i.charAt(0),i=i.substring(1);let f=t(n,o)+t(o,i);f>=u&&(u=f,a=n,l=o,c=i);}e[r-1][1]!==a&&(a?e[r-1][1]=a:(e.splice(r-1,1),r--),e[r][1]=l,c?e[r+1][1]=c:(e.splice(r+1,1),r--));}r++;}}function n_(e){e.push(new We(Je,""));let t=0,r=0,n=0,o="",i="",s;for(;t<e.length;)switch(e[t][0]){case ut:n++,i+=e[t][1],t++;break;case mt:r++,o+=e[t][1],t++;break;case Je:r+n>1?(r!==0&&n!==0&&(s=DL(i,o),s!==0&&(t-r-n>0&&e[t-r-n-1][0]===Je?e[t-r-n-1][1]+=i.substring(0,s):(e.splice(0,0,new We(Je,i.substring(0,s))),t++),i=i.substring(s),o=o.substring(s)),s=r_(i,o),s!==0&&(e[t][1]=i.substring(i.length-s)+e[t][1],i=i.substring(0,i.length-s),o=o.substring(0,o.length-s))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new We(mt,o)),t++),i.length&&(e.splice(t,0,new We(ut,i)),t++),t++):t!==0&&e[t-1][0]===Je?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",i="";break}e[e.length-1][1]===""&&e.pop();let a=!1;for(t=1;t<e.length-1;)e[t-1][0]===Je&&e[t+1][0]===Je&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),a=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),a=!0)),t++;a&&n_(e);}var o_="Compared values have no visual difference.",zL="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",i_={};Object.defineProperty(i_,"__esModule",{value:!0});var s_=i_.default=GL,Ui="diff-sequences",ht=0,Wi=(e,t,r,n,o)=>{let i=0;for(;e<t&&r<n&&o(e,r);)e+=1,r+=1,i+=1;return i},Gi=(e,t,r,n,o)=>{let i=0;for(;e<=t&&r<=n&&o(t,n);)t-=1,n-=1,i+=1;return i},yp=(e,t,r,n,o,i,s)=>{let a=0,l=-e,c=i[a],u=c;i[a]+=Wi(c+1,t,n+c-l+1,r,o);let f=e<s?e:s;for(a+=1,l+=2;a<=f;a+=1,l+=2){if(a!==e&&u<i[a])c=i[a];else if(c=u+1,t<=c)return a-1;u=i[a],i[a]=c+Wi(c+1,t,n+c-l+1,r,o);}return s},gE=(e,t,r,n,o,i,s)=>{let a=0,l=e,c=i[a],u=c;i[a]-=Gi(t,c-1,r,n+c-l-1,o);let f=e<s?e:s;for(a+=1,l-=2;a<=f;a+=1,l-=2){if(a!==e&&i[a]<u)c=i[a];else if(c=u-1,c<t)return a-1;u=i[a],i[a]=c-Gi(t,c-1,r,n+c-l-1,o);}return s},VL=(e,t,r,n,o,i,s,a,l,c,u)=>{let f=n-t,p=r-t,d=o-n-p,h=-d-(e-1),m=-d+(e-1),y=ht,g=e<a?e:a;for(let b=0,E=-e;b<=g;b+=1,E+=2){let _=b===0||b!==e&&y<s[b],T=_?s[b]:y,x=_?T:T+1,S=f+x-E,v=Wi(x+1,r,S+1,o,i),w=x+v;if(y=s[b],s[b]=w,h<=E&&E<=m){let I=(e-1-(E+d))/2;if(I<=c&&l[I]-1<=w){let C=f+T-(_?E+1:E-1),N=Gi(t,T,n,C,i),L=T-N,q=C-N,H=L+1,z=q+1;u.nChangePreceding=e-1,e-1===H+z-t-n?(u.aEndPreceding=t,u.bEndPreceding=n):(u.aEndPreceding=H,u.bEndPreceding=z),u.nCommonPreceding=N,N!==0&&(u.aCommonPreceding=H,u.bCommonPreceding=z),u.nCommonFollowing=v,v!==0&&(u.aCommonFollowing=x+1,u.bCommonFollowing=S+1);let Z=w+1,Y=S+v+1;return u.nChangeFollowing=e-1,e-1===r+o-Z-Y?(u.aStartFollowing=r,u.bStartFollowing=o):(u.aStartFollowing=Z,u.bStartFollowing=Y),!0}}}return !1},HL=(e,t,r,n,o,i,s,a,l,c,u)=>{let f=o-r,p=r-t,d=o-n-p,h=d-e,m=d+e,y=ht,g=e<c?e:c;for(let b=0,E=e;b<=g;b+=1,E-=2){let _=b===0||b!==e&&l[b]<y,T=_?l[b]:y,x=_?T:T-1,S=f+x-E,v=Gi(t,x-1,n,S-1,i),w=x-v;if(y=l[b],l[b]=w,h<=E&&E<=m){let I=(e+(E-d))/2;if(I<=a&&w-1<=s[I]){let C=S-v;if(u.nChangePreceding=e,e===w+C-t-n?(u.aEndPreceding=t,u.bEndPreceding=n):(u.aEndPreceding=w,u.bEndPreceding=C),u.nCommonPreceding=v,v!==0&&(u.aCommonPreceding=w,u.bCommonPreceding=C),u.nChangeFollowing=e-1,e===1)u.nCommonFollowing=0,u.aStartFollowing=r,u.bStartFollowing=o;else {let N=f+T-(_?E-1:E+1),L=Wi(T,r,N,o,i);u.nCommonFollowing=L,L!==0&&(u.aCommonFollowing=T,u.bCommonFollowing=N);let q=T+L,H=N+L;e-1===r+o-q-H?(u.aStartFollowing=r,u.bStartFollowing=o):(u.aStartFollowing=q,u.bStartFollowing=H);}return !0}}}return !1},WL=(e,t,r,n,o,i,s,a,l)=>{let c=n-t,u=o-r,f=r-t,p=o-n,d=p-f,h=f,m=f;if(s[0]=t-1,a[0]=r,d%2===0){let y=(e||d)/2,g=(f+p)/2;for(let b=1;b<=g;b+=1)if(h=yp(b,r,o,c,i,s,h),b<y)m=gE(b,t,n,u,i,a,m);else if(HL(b,t,r,n,o,i,s,h,a,m,l))return}else {let y=((e||d)+1)/2,g=(f+p+1)/2,b=1;for(h=yp(b,r,o,c,i,s,h),b+=1;b<=g;b+=1)if(m=gE(b-1,t,n,u,i,a,m),b<y)h=yp(b,r,o,c,i,s,h);else if(VL(b,t,r,n,o,i,s,h,a,m,l))return}throw new Error(`${Ui}: no overlap aStart=${t} aEnd=${r} bStart=${n} bEnd=${o}`)},Cp=(e,t,r,n,o,i,s,a,l,c)=>{if(o-n<r-t){if(i=!i,i&&s.length===1){let{foundSubsequence:I,isCommon:C}=s[0];s[1]={foundSubsequence:(N,L,q)=>{I(N,q,L);},isCommon:(N,L)=>C(L,N)};}let v=t,w=r;t=n,r=o,n=v,o=w;}let{foundSubsequence:u,isCommon:f}=s[i?1:0];WL(e,t,r,n,o,f,a,l,c);let{nChangePreceding:p,aEndPreceding:d,bEndPreceding:h,nCommonPreceding:m,aCommonPreceding:y,bCommonPreceding:g,nCommonFollowing:b,aCommonFollowing:E,bCommonFollowing:_,nChangeFollowing:T,aStartFollowing:x,bStartFollowing:S}=c;t<d&&n<h&&Cp(p,t,d,n,h,i,s,a,l,c),m!==0&&u(m,y,g),b!==0&&u(b,E,_),x<r&&S<o&&Cp(T,x,r,S,o,i,s,a,l,c);},yE=(e,t)=>{if(typeof t!="number")throw new TypeError(`${Ui}: ${e} typeof ${typeof t} is not a number`);if(!Number.isSafeInteger(t))throw new RangeError(`${Ui}: ${e} value ${t} is not a safe integer`);if(t<0)throw new RangeError(`${Ui}: ${e} value ${t} is a negative integer`)},bE=(e,t)=>{let r=typeof t;if(r!=="function")throw new TypeError(`${Ui}: ${e} typeof ${r} is not a function`)};function GL(e,t,r,n){yE("aLength",e),yE("bLength",t),bE("isCommon",r),bE("foundSubsequence",n);let o=Wi(0,e,0,t,r);if(o!==0&&n(o,0,0),e!==o||t!==o){let i=o,s=o,a=Gi(i,e-1,s,t-1,r),l=e-a,c=t-a,u=o+a;e!==u&&t!==u&&Cp(0,i,l,s,c,!1,[{foundSubsequence:n,isCommon:r}],[ht],[ht],{aCommonFollowing:ht,aCommonPreceding:ht,aEndPreceding:ht,aStartFollowing:ht,bCommonFollowing:ht,bCommonPreceding:ht,bEndPreceding:ht,bStartFollowing:ht,nChangeFollowing:ht,nChangePreceding:ht,nCommonFollowing:ht,nCommonPreceding:ht}),a!==0&&n(a,l,c);}}function KL(e,t){return e.replace(/\s+$/,r=>t(r))}function kp(e,t,r,n,o,i){return e.length!==0?r(`${n} ${KL(e,o)}`):n!==" "?r(n):t&&i.length!==0?r(`${n} ${i}`):""}function a_(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return kp(e,t,r,n,o,i)}function l_(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return kp(e,t,r,n,o,i)}function u_(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return kp(e,t,r,n,o,i)}function vE(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function YL(e,t){let r=e.length,n=t.contextLines,o=n+n,i=r,s=!1,a=0,l=0;for(;l!==r;){let _=l;for(;l!==r&&e[l][0]===Je;)l+=1;if(_!==l)if(_===0)l>n&&(i-=l-n,s=!0);else if(l===r){let T=l-_;T>n&&(i-=T-n,s=!0);}else {let T=l-_;T>o&&(i-=T-o,a+=1);}for(;l!==r&&e[l][0]!==Je;)l+=1;}let c=a!==0||s;a!==0?i+=a+1:s&&(i+=1);let u=i-1,f=[],p=0;c&&f.push("");let d=0,h=0,m=0,y=0,g=_=>{let T=f.length;f.push(u_(_,T===0||T===u,t)),m+=1,y+=1;},b=_=>{let T=f.length;f.push(a_(_,T===0||T===u,t)),m+=1;},E=_=>{let T=f.length;f.push(l_(_,T===0||T===u,t)),y+=1;};for(l=0;l!==r;){let _=l;for(;l!==r&&e[l][0]===Je;)l+=1;if(_!==l)if(_===0){l>n&&(_=l-n,d=_,h=_,m=d,y=h);for(let T=_;T!==l;T+=1)g(e[T][1]);}else if(l===r){let T=l-_>n?_+n:l;for(let x=_;x!==T;x+=1)g(e[x][1]);}else {let T=l-_;if(T>o){let x=_+n;for(let v=_;v!==x;v+=1)g(e[v][1]);f[p]=vE(d,m,h,y,t),p=f.length,f.push("");let S=T-o;d=m+S,h=y+S,m=d,y=h;for(let v=l-n;v!==l;v+=1)g(e[v][1]);}else for(let x=_;x!==l;x+=1)g(e[x][1]);}for(;l!==r&&e[l][0]===mt;)b(e[l][1]),l+=1;for(;l!==r&&e[l][0]===ut;)E(e[l][1]),l+=1;}return c&&(f[p]=vE(d,m,h,y,t)),f.join(`
|
|
150
|
+
`)}function JL(e,t){return e.map((r,n,o)=>{let i=r[1],s=n===0||n===o.length-1;switch(r[0]){case mt:return a_(i,s,t);case ut:return l_(i,s,t);default:return u_(i,s,t)}}).join(`
|
|
151
|
+
`)}var bp=e=>e,c_=5,XL=0;function QL(){return {aAnnotation:"Expected",aColor:Mr.green,aIndicator:"-",bAnnotation:"Received",bColor:Mr.red,bIndicator:"+",changeColor:Mr.inverse,changeLineTrailingSpaceColor:bp,commonColor:Mr.dim,commonIndicator:" ",commonLineTrailingSpaceColor:bp,compareKeys:void 0,contextLines:c_,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:Mr.yellow,truncateThreshold:XL,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:bp}}function ZL(e){return e&&typeof e=="function"?e:void 0}function eB(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:c_}function $n(e={}){return {...QL(),...e,compareKeys:ZL(e.compareKeys),contextLines:eB(e.contextLines)}}function Po(e){return e.length===1&&e[0].length===0}function tB(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case mt:t+=1;break;case ut:r+=1;break}}),{a:t,b:r}}function rB({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:i,includeChangeCounts:s,omitAnnotationLines:a},l){if(a)return "";let c="",u="";if(s){let d=String(l.a),h=String(l.b),m=n.length-e.length,y=" ".repeat(Math.max(0,m)),g=" ".repeat(Math.max(0,-m)),b=h.length-d.length,E=" ".repeat(Math.max(0,b)),_=" ".repeat(Math.max(0,-b));c=`${y} ${r} ${E}${d}`,u=`${g} ${i} ${_}${h}`;}let f=`${r} ${e}${c}`,p=`${i} ${n}${u}`;return `${t(f)}
|
|
152
|
+
${o(p)}
|
|
153
|
+
|
|
154
|
+
`}function Dp(e,t,r){return rB(r,tB(e))+(r.expand?JL(e,r):YL(e,r))+(t?r.truncateAnnotationColor(`
|
|
155
|
+
${r.truncateAnnotation}`):"")}function xl(e,t,r){let n=$n(r),[o,i]=f_(Po(e)?[]:e,Po(t)?[]:t,n);return Dp(o,i,n)}function nB(e,t,r,n,o){if(Po(e)&&Po(r)&&(e=[],r=[]),Po(t)&&Po(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return xl(e,t,o);let[i,s]=f_(r,n,o),a=0,l=0;return i.forEach(c=>{switch(c[0]){case mt:c[1]=e[a],a+=1;break;case ut:c[1]=t[l],l+=1;break;default:c[1]=t[l],a+=1,l+=1;}}),Dp(i,s,$n(o))}function f_(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),i=n?Math.min(e.length,o):e.length,s=n?Math.min(t.length,o):t.length,a=i!==e.length||s!==t.length,l=(p,d)=>e[p]===t[d],c=[],u=0,f=0;for(s_(i,s,l,(p,d,h)=>{for(;u!==d;u+=1)c.push(new We(mt,e[u]));for(;f!==h;f+=1)c.push(new We(ut,t[f]));for(;p!==0;p-=1,u+=1,f+=1)c.push(new We(Je,t[f]));});u!==i;u+=1)c.push(new We(mt,e[u]));for(;f!==s;f+=1)c.push(new We(ut,t[f]));return [c,a]}function wE(e){return e.includes(`\r
|
|
156
|
+
`)?`\r
|
|
157
|
+
`:`
|
|
158
|
+
`}function oB(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),i=e.length,s=t.length;if(n){let p=e.includes(`
|
|
159
|
+
`),d=t.includes(`
|
|
160
|
+
`),h=wE(e),m=wE(t),y=p?`${e.split(h,o).join(h)}
|
|
161
|
+
`:e,g=d?`${t.split(m,o).join(m)}
|
|
162
|
+
`:t;i=y.length,s=g.length;}let a=i!==e.length||s!==t.length,l=(p,d)=>e[p]===t[d],c=0,u=0,f=[];return s_(i,s,l,(p,d,h)=>{c!==d&&f.push(new We(mt,e.slice(c,d))),u!==h&&f.push(new We(ut,t.slice(u,h))),c=d+p,u=h+p,f.push(new We(Je,t.slice(h,u)));}),c!==i&&f.push(new We(mt,e.slice(c))),u!==s&&f.push(new We(ut,t.slice(u))),[f,a]}function iB(e,t,r){return t.reduce((n,o)=>n+(o[0]===Je?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var EE=class{op;line;lines;changeColor;constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t;}pushSubstring(e){this.pushDiff(new We(this.op,e));}pushLine(){this.lines.push(this.line.length!==1?new We(this.op,iB(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new We(this.op,this.line[0][1])),this.line.length=0;}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e);}align(e){let t=e[1];if(t.includes(`
|
|
163
|
+
`)){let r=t.split(`
|
|
164
|
+
`),n=r.length-1;r.forEach((o,i)=>{i<n?(this.pushSubstring(o),this.pushLine()):o.length!==0&&this.pushSubstring(o);});}else this.pushDiff(e);}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0;}},sB=class{deleteBuffer;insertBuffer;lines;constructor(e,t){this.deleteBuffer=e,this.insertBuffer=t,this.lines=[];}pushDiffCommonLine(e){this.lines.push(e);}pushDiffChangeLines(e){let t=e[1].length===0;(!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],r=e[1];if(r.includes(`
|
|
165
|
+
`)){let n=r.split(`
|
|
166
|
+
`),o=n.length-1;n.forEach((i,s)=>{if(s===0){let a=new We(t,i);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(a)):(this.pushDiffChangeLines(a),this.flushChangeLines());}else s<o?this.pushDiffCommonLine(new We(t,i)):i.length!==0&&this.pushDiffChangeLines(new We(t,i));});}else this.pushDiffChangeLines(e);}getLines(){return this.flushChangeLines(),this.lines}};function aB(e,t){let r=new EE(mt,t),n=new EE(ut,t),o=new sB(r,n);return e.forEach(i=>{switch(i[0]){case mt:r.align(i);break;case ut:n.align(i);break;default:o.align(i);}}),o.getLines()}function lB(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===Je&&(o!==r||n[1]!==`
|
|
167
|
+
`))}return e.some(r=>r[0]===Je)}function uB(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
|
|
168
|
+
`)||t.includes(`
|
|
169
|
+
`),[o,i]=d_(n?`${e}
|
|
170
|
+
`:e,n?`${t}
|
|
171
|
+
`:t,!0,r);if(lB(o,n)){let s=$n(r),a=aB(o,s.changeColor);return Dp(a,i,s)}}return xl(e.split(`
|
|
172
|
+
`),t.split(`
|
|
173
|
+
`),r)}function d_(e,t,r,n){let[o,i]=oB(e,t,n);return LL(o),[o,i]}function xp(e,t){let{commonColor:r}=$n(t);return r(e)}var{AsymmetricMatcher:cB,DOMCollection:fB,DOMElement:dB,Immutable:pB,ReactElement:hB,ReactTestComponent:mB}=XE,p_=[mB,hB,dB,fB,pB,cB],Ap={plugins:p_},h_={callToJSON:!1,maxDepth:10,plugins:p_};function gB(e,t,r){if(Object.is(e,t))return "";let n=fE(e),o=n,i=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),i=o==="string";}if(o!==fE(t)){let{aAnnotation:s,aColor:a,aIndicator:l,bAnnotation:c,bColor:u,bIndicator:f}=$n(r),p=Pp(h_,r),d=gr(e,p),h=gr(t,p),m=`${a(`${l} ${s}:`)}
|
|
174
|
+
${d}`,y=`${u(`${f} ${c}:`)}
|
|
175
|
+
${h}`;return `${m}
|
|
176
|
+
|
|
177
|
+
${y}`}if(!i)switch(n){case"string":return xl(e.split(`
|
|
178
|
+
`),t.split(`
|
|
179
|
+
`),r);case"boolean":case"number":return yB(e,t,r);case"map":return vp(_E(e),_E(t),r);case"set":return vp(SE(e),SE(t),r);default:return vp(e,t,r)}}function yB(e,t,r){let n=gr(e,Ap),o=gr(t,Ap);return n===o?"":xl(n.split(`
|
|
180
|
+
`),o.split(`
|
|
181
|
+
`),r)}function _E(e){return new Map(Array.from(e.entries()).sort())}function SE(e){return new Set(Array.from(e.values()).sort())}function vp(e,t,r){let n,o=!1;try{let s=Pp(Ap,r);n=TE(e,t,s,r);}catch{o=!0;}let i=xp(o_,r);if(n===void 0||n===i){let s=Pp(h_,r);n=TE(e,t,s,r),n!==i&&!o&&(n=`${xp(zL,r)}
|
|
182
|
+
|
|
183
|
+
${n}`);}return n}function Pp(e,t){let{compareKeys:r}=$n(t);return {...e,compareKeys:r}}function TE(e,t,r,n){let o={...r,indent:0},i=gr(e,o),s=gr(t,o);if(i===s)return xp(o_,n);{let a=gr(e,r),l=gr(t,r);return nB(a.split(`
|
|
184
|
+
`),l.split(`
|
|
185
|
+
`),i.split(`
|
|
186
|
+
`),s.split(`
|
|
187
|
+
`),n)}}var CE=2e4;function xE(e){return Sp(e)==="Object"&&typeof e.asymmetricMatch=="function"}function AE(e,t){let r=Sp(e),n=Sp(t);return r===n&&(r==="Object"||r==="Array")}function bB(e,t,r){let{aAnnotation:n,bAnnotation:o}=$n(r);if(typeof e=="string"&&typeof t=="string"&&e.length>0&&t.length>0&&e.length<=CE&&t.length<=CE&&e!==t){if(e.includes(`
|
|
188
|
+
`)||t.includes(`
|
|
189
|
+
`))return uB(t,e,r);let[c]=d_(t,e),u=c.some(h=>h[0]===Je),f=vB(n,o),p=f(n)+_B(PE(c,mt,u)),d=f(o)+EB(PE(c,ut,u));return `${p}
|
|
190
|
+
${d}`}let i=cE(e,{forceWritable:!0}),s=cE(t,{forceWritable:!0}),{replacedExpected:a,replacedActual:l}=m_(i,s);return gB(a,l,r)}function m_(e,t,r=new WeakSet,n=new WeakSet){return AE(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),e_(t).forEach(o=>{let i=t[o],s=e[o];if(xE(i))i.asymmetricMatch(s)&&(e[o]=i);else if(xE(s))s.asymmetricMatch(i)&&(t[o]=s);else if(AE(s,i)){let a=m_(s,i,r,n);e[o]=a.replacedActual,t[o]=a.replacedExpected;}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function vB(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var wB="\xB7";function g_(e){return e.replace(/\s+$/gm,t=>wB.repeat(t.length))}function EB(e){return Mr.red(g_(Hi(e)))}function _B(e){return Mr.green(g_(Hi(e)))}function PE(e,t,r){return e.reduce((n,o)=>n+(o[0]===Je?o[1]:o[0]===t?r?Mr.inverse(o[1]):o[1]:""),"")}var SB="@@__IMMUTABLE_RECORD__@@",TB="@@__IMMUTABLE_ITERABLE__@@";function CB(e){return e&&(e[TB]||e[SB])}var xB=Object.getPrototypeOf({});function OE(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function Oo(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(typeof e=="function")return `Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(CB(e))return Oo(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return "Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return `${e.toString()} ${qL(e.sample)}`;if(typeof e.toJSON=="function")return Oo(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,o)=>{try{r[o]=Oo(n,t);}catch(i){r[o]=OE(i);}}),r}else {let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==xB;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=Oo(e[o],t);}catch(i){delete r[o],r[o]=OE(i);}}),n=Object.getPrototypeOf(n);return r}}function AB(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function y_(e,t,r=new WeakSet){if(!e||typeof e!="object")return {message:String(e)};let n=e;n.stack&&(n.stackStr=String(n.stack)),n.name&&(n.nameStr=String(n.name)),(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=bB(n.actual,n.expected,{...t,...n.diffOptions})),typeof n.expected!="string"&&(n.expected=Hi(n.expected,10)),typeof n.actual!="string"&&(n.actual=Hi(n.actual,10));try{typeof n.message=="string"&&(n.message=AB(n.message));}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=y_(n.cause,t,r));}catch{}try{return Oo(n)}catch(o){return Oo(new Error(`Failed to fully serialize error: ${o?.message}
|
|
191
|
+
Inner error message: ${n?.message}`))}}var PB=(e=>(e.DONE="done",e.ERROR="error",e.ACTIVE="active",e.WAITING="waiting",e))(PB||{}),Rr={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},RE={start:!1,back:!1,goto:!1,next:!1,end:!1},OB=new Error("This function ran after the play function completed. Did you forget to `await` it?"),ME=e=>Object.prototype.toString.call(e)==="[object Object]",RB=e=>Object.prototype.toString.call(e)==="[object Module]",MB=e=>{if(!ME(e)&&!RB(e))return !1;if(e.constructor===void 0)return !0;let t=e.constructor.prototype;return !!ME(t)},IB=e=>{try{return new e.constructor}catch{return {}}},wp=()=>({renderPhase:void 0,isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),IE=(e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(o=>o.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,o])=>o.retain));return {cursor:r.length,calls:r,callRefsByResult:n}},NB=class{constructor(){this.initialized=!1,this.channel=addons.getChannel(),this.state=global$1.window?.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{};let e=({storyId:s,isPlaying:a=!0,isDebugging:l=!1})=>{let c=this.getState(s);this.setState(s,{...wp(),...IE(c,l),shadowCalls:l?c.shadowCalls:[],chainedCallIds:l?c.chainedCallIds:new Set,playUntil:l?c.playUntil:void 0,isPlaying:a,isDebugging:l}),this.sync(s);};this.channel.on(FORCE_REMOUNT,e),this.channel.on(STORY_RENDER_PHASE_CHANGED,({storyId:s,newPhase:a})=>{let{isDebugging:l}=this.getState(s);this.setState(s,{renderPhase:a}),a==="preparing"&&l&&e({storyId:s}),a==="playing"&&e({storyId:s,isDebugging:l}),a==="played"&&this.setState(s,{isLocked:!1,isPlaying:!1,isDebugging:!1}),a==="errored"&&this.setState(s,{isLocked:!1,isPlaying:!1});}),this.channel.on(SET_CURRENT_STORY,()=>{this.initialized?this.cleanup():this.initialized=!0;});let t=({storyId:s,playUntil:a})=>{this.getState(s).isDebugging||this.setState(s,({calls:c})=>({calls:[],shadowCalls:c.map(u=>({...u,status:"waiting"})),isDebugging:!0}));let l=this.getLog(s);this.setState(s,({shadowCalls:c})=>{if(a||!l.length)return {playUntil:a};let u=c.findIndex(f=>f.id===l[0].callId);return {playUntil:c.slice(0,u).filter(f=>f.interceptable&&!f.ancestors.length).slice(-1)[0]?.id}}),this.channel.emit(FORCE_REMOUNT,{storyId:s,isDebugging:!0});},r=({storyId:s})=>{let a=this.getLog(s).filter(c=>!c.ancestors.length),l=a.reduceRight((c,u,f)=>c>=0||u.status==="waiting"?c:f,-1);t({storyId:s,playUntil:a[l-1]?.callId});},n=({storyId:s,callId:a})=>{let{calls:l,shadowCalls:c,resolvers:u}=this.getState(s),f=l.find(({id:d})=>d===a),p=c.find(({id:d})=>d===a);if(!f&&p&&Object.values(u).length>0){let d=this.getLog(s).find(h=>h.status==="waiting")?.callId;p.id!==d&&this.setState(s,{playUntil:p.id}),Object.values(u).forEach(h=>h());}else t({storyId:s,playUntil:a});},o=({storyId:s})=>{let{resolvers:a}=this.getState(s);if(Object.values(a).length>0)Object.values(a).forEach(l=>l());else {let l=this.getLog(s).find(c=>c.status==="waiting")?.callId;l?t({storyId:s,playUntil:l}):i({storyId:s});}},i=({storyId:s})=>{this.setState(s,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(s).resolvers).forEach(a=>a());};this.channel.on(Rr.START,t),this.channel.on(Rr.BACK,r),this.channel.on(Rr.GOTO,n),this.channel.on(Rr.NEXT,o),this.channel.on(Rr.END,i);}getState(e){return this.state[e]||wp()}setState(e,t){let r=this.getState(e),n=typeof t=="function"?t(r):t;this.state={...this.state,[e]:{...r,...n}},global$1.window?.parent&&(global$1.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state);}cleanup(){this.state=Object.entries(this.state).reduce((t,[r,n])=>{let o=IE(n);return o&&(t[r]=Object.assign(wp(),o)),t},{});let e={controlStates:RE,logItems:[]};this.channel.emit(Rr.SYNC,e),global$1.window?.parent&&(global$1.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state);}getLog(e){let{calls:t,shadowCalls:r}=this.getState(e),n=[...r];t.forEach((i,s)=>{n[s]=i;});let o=new Set;return n.reduceRight((i,s)=>(s.args.forEach(a=>{a?.__callId__&&o.add(a.__callId__);}),s.path.forEach(a=>{a.__callId__&&o.add(a.__callId__);}),(s.interceptable||s.exception)&&!o.has(s.id)&&(i.unshift({callId:s.id,status:s.status,ancestors:s.ancestors}),o.add(s.id)),i),[])}instrument(e,t,r=0){if(!MB(e))return e;let{mutate:n=!1,path:o=[]}=t,i=t.getKeys?t.getKeys(e,r):Object.keys(e);return r+=1,i.reduce((s,a)=>{let l=jB(e,a);if(typeof l?.get=="function"){let u=()=>l?.get?.bind(e)?.();return Object.defineProperty(s,a,{get:()=>this.instrument(u(),{...t,path:o.concat(a)},r)}),s}let c=e[a];return typeof c!="function"?(s[a]=this.instrument(c,{...t,path:o.concat(a)},r),s):"__originalFn__"in c&&typeof c.__originalFn__=="function"?(s[a]=c,s):(s[a]=(...u)=>this.track(a,c,e,u,t),s[a].__originalFn__=c,Object.defineProperty(s[a],"name",{value:a,writable:!1}),Object.keys(c).length>0&&Object.assign(s[a],this.instrument({...c},{...t,path:o.concat(a)},r)),s)},n?e:IB(e))}track(e,t,r,n,o){let i=n?.[0]?.__storyId__||global$1.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:s,ancestors:a}=this.getState(i);this.setState(i,{cursor:s+1});let l=`${a.slice(-1)[0]||i} [${s}] ${e}`,{path:c=[],intercept:u=!1,retain:f=!1}=o,p=typeof u=="function"?u(e,c):u,d={id:l,cursor:s,storyId:i,ancestors:a,path:c,method:e,args:n,interceptable:p,retain:f},h=(p&&!a.length?this.intercept:this.invoke).call(this,t,r,d,o);return this.instrument(h,{...o,mutate:!0,path:[{__callId__:d.id}]})}intercept(e,t,r,n){let{chainedCallIds:o,isDebugging:i,playUntil:s}=this.getState(r.storyId),a=o.has(r.id);return !i||a||s?(s===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(e,t,r,n)):new Promise(l=>{this.setState(r.storyId,({resolvers:c})=>({isLocked:!1,resolvers:{...c,[r.id]:l}}));}).then(()=>(this.setState(r.storyId,l=>{let{[r.id]:c,...u}=l.resolvers;return {isLocked:!0,resolvers:u}}),this.invoke(e,t,r,n)))}invoke(e,t,r,n){let{callRefsByResult:o,renderPhase:i}=this.getState(r.storyId),s=25,a=(u,f,p)=>{if(p.includes(u))return "[Circular]";if(p=[...p,u],f>s)return "...";if(o.has(u))return o.get(u);if(u instanceof Array)return u.map(d=>a(d,++f,p));if(u instanceof Date)return {__date__:{value:u.toISOString()}};if(u instanceof Error){let{name:d,message:h,stack:m}=u;return {__error__:{name:d,message:h,stack:m}}}if(u instanceof RegExp){let{flags:d,source:h}=u;return {__regexp__:{flags:d,source:h}}}if(u instanceof global$1.window?.HTMLElement){let{prefix:d,localName:h,id:m,classList:y,innerText:g}=u,b=Array.from(y);return {__element__:{prefix:d,localName:h,id:m,classNames:b,innerText:g}}}return typeof u=="function"?{__function__:{name:"getMockName"in u?u.getMockName():u.name}}:typeof u=="symbol"?{__symbol__:{description:u.description}}:typeof u=="object"&&u?.constructor?.name&&u?.constructor?.name!=="Object"?{__class__:{name:u.constructor.name}}:Object.prototype.toString.call(u)==="[object Object]"?Object.fromEntries(Object.entries(u).map(([d,h])=>[d,a(h,++f,p)])):u},l={...r,args:r.args.map(u=>a(u,0,[]))};r.path.forEach(u=>{u?.__callId__&&this.setState(r.storyId,({chainedCallIds:f})=>({chainedCallIds:new Set(Array.from(f).concat(u.__callId__))}));});let c=u=>{if(u instanceof Error){let{name:f,message:p,stack:d,callId:h=r.id}=u,{showDiff:m=void 0,diff:y=void 0,actual:g=void 0,expected:b=void 0}=u.name==="AssertionError"?y_(u):u,E={name:f,message:p,stack:d,callId:h,showDiff:m,diff:y,actual:g,expected:b};if(this.update({...l,status:"error",exception:E}),this.setState(r.storyId,_=>({callRefsByResult:new Map([...Array.from(_.callRefsByResult.entries()),[u,{__callId__:r.id,retain:r.retain}]])})),r.ancestors.length)throw Object.prototype.hasOwnProperty.call(u,"callId")||Object.defineProperty(u,"callId",{value:r.id}),u}throw u};try{if(i==="played"&&!r.retain)throw OB;let u=(n.getArgs?n.getArgs(r,this.getState(r.storyId)):r.args).map(p=>typeof p!="function"||Object.keys(p).length?p:(...d)=>{let{cursor:h,ancestors:m}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...m,r.id]});let y=()=>this.setState(r.storyId,{cursor:h,ancestors:m}),g=!1;try{let b=p(...d);return b instanceof Promise?(g=!0,b.finally(y)):b}finally{g||y();}}),f=e.apply(t,u);return f&&["object","function","symbol"].includes(typeof f)&&this.setState(r.storyId,p=>({callRefsByResult:new Map([...Array.from(p.callRefsByResult.entries()),[f,{__callId__:r.id,retain:r.retain}]])})),this.update({...l,status:f instanceof Promise?"active":"done"}),f instanceof Promise?f.then(p=>(this.update({...l,status:"done"}),p),c):f}catch(u){return c(u)}}update(e){this.channel.emit(Rr.CALL,e),this.setState(e.storyId,({calls:t})=>{let r=t.concat(e).reduce((n,o)=>Object.assign(n,{[o.id]:o}),{});return {calls:Object.values(r).sort((n,o)=>n.id.localeCompare(o.id,void 0,{numeric:!0}))}}),this.sync(e.storyId);}sync(e){let t=()=>{let{isLocked:r,isPlaying:n}=this.getState(e),o=this.getLog(e),i=o.filter(({ancestors:c})=>!c.length).find(c=>c.status==="waiting")?.callId,s=o.some(c=>c.status==="active");if(r||s||o.length===0){let c={controlStates:RE,logItems:o};this.channel.emit(Rr.SYNC,c);return}let a=o.some(c=>c.status==="done"||c.status==="error"),l={controlStates:{start:a,back:a,goto:!0,next:n,end:n},logItems:o,pausedAt:i};this.channel.emit(Rr.SYNC,l);};this.setState(e,({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(t,0)}));}};function Al(e,t={}){try{let r=!1,n=!1;return global$1.window?.location?.search?.includes("instrument=true")?r=!0:global$1.window?.location?.search?.includes("instrument=false")&&(n=!0),global$1.window?.parent===global$1.window&&!r||n?e:(global$1.window&&!global$1.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(global$1.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new NB),(global$1.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(r){return once.warn(r),e}}function jB(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r);}}var $B=Object.create,rm=Object.defineProperty,kB=Object.getOwnPropertyDescriptor,CT=Object.getOwnPropertyNames,DB=Object.getPrototypeOf,LB=Object.prototype.hasOwnProperty,BB=(e=>typeof Ot<"u"?Ot:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Ot<"u"?Ot:t)[r]}):e)(function(e){if(typeof Ot<"u")return Ot.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),O=(e,t)=>function(){return t||(0, e[CT(e)[0]])((t={exports:{}}).exports,t),t.exports},nm=(e,t)=>{for(var r in t)rm(e,r,{get:t[r],enumerable:!0});},FB=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of CT(t))!LB.call(e,o)&&o!==r&&rm(e,o,{get:()=>t[o],enumerable:!(n=kB(t,o))||n.enumerable});return e},kt=(e,t,r)=>(r=e!=null?$B(DB(e)):{},FB(t||!e||!e.__esModule?rm(r,"default",{value:e,enumerable:!0}):r,e)),UB=O({"../../node_modules/min-indent/index.js"(e,t){t.exports=r=>{let n=r.match(/^[ \t]*(?=\S)/gm);return n?n.reduce((o,i)=>Math.min(o,i.length),1/0):0};}}),zB=O({"../../node_modules/strip-indent/index.js"(e,t){var r=UB();t.exports=n=>{let o=r(n);if(o===0)return n;let i=new RegExp(`^[ \\t]{${o}}`,"gm");return n.replace(i,"")};}}),VB=O({"../../node_modules/indent-string/index.js"(e,t){t.exports=(r,n=1,o)=>{if(o={indent:" ",includeEmptyLines:!1,...o},typeof r!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof r}\``);if(typeof n!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof n}\``);if(typeof o.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof o.indent}\``);if(n===0)return r;let i=o.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return r.replace(i,o.indent.repeat(n))};}}),xT=O({"../../node_modules/redent/index.js"(e,t){var r=zB(),n=VB();t.exports=(o,i=0,s)=>n(r(o),i,s);}}),HB=O({"../../node_modules/aria-query/lib/util/iteratorProxy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(){var n=this,o=0,i={"@@iterator":function(){return i},next:function(){if(o<n.length){var s=n[o];return o=o+1,{done:!1,value:s}}else return {done:!0}}};return i}var r=t;e.default=r;}}),Es=O({"../../node_modules/aria-query/lib/util/iterationDecorator.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=r(HB());function r(i){return i&&i.__esModule?i:{default:i}}function n(i){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},n(i)}function o(i,s){return typeof Symbol=="function"&&n(Symbol.iterator)==="symbol"&&Object.defineProperty(i,Symbol.iterator,{value:t.default.bind(s)}),i}}}),WB=O({"../../node_modules/aria-query/lib/ariaPropsMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Es());function r(d){return d&&d.__esModule?d:{default:d}}function n(d,h){return s(d)||i(d,h)||l(d,h)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
192
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(d,h){var m=d==null?null:typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(m!=null){var y=[],g=!0,b=!1,E,_;try{for(m=m.call(d);!(g=(E=m.next()).done)&&(y.push(E.value),!(h&&y.length===h));g=!0);}catch(T){b=!0,_=T;}finally{try{!g&&m.return!=null&&m.return();}finally{if(b)throw _}}return y}}function s(d){if(Array.isArray(d))return d}function a(d,h){var m=typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(!m){if(Array.isArray(d)||(m=l(d))||h){m&&(d=m);var y=0,g=function(){};return {s:g,n:function(){return y>=d.length?{done:!0}:{done:!1,value:d[y++]}},e:function(T){throw T},f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
193
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var b=!0,E=!1,_;return {s:function(){m=m.call(d);},n:function(){var T=m.next();return b=T.done,T},e:function(T){E=!0,_=T;},f:function(){try{!b&&m.return!=null&&m.return();}finally{if(E)throw _}}}}function l(d,h){if(d){if(typeof d=="string")return c(d,h);var m=Object.prototype.toString.call(d).slice(8,-1);if(m==="Object"&&d.constructor&&(m=d.constructor.name),m==="Map"||m==="Set")return Array.from(d);if(m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m))return c(d,h)}}function c(d,h){(h==null||h>d.length)&&(h=d.length);for(var m=0,y=new Array(h);m<h;m++)y[m]=d[m];return y}var u=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-braillelabel",{type:"string"}],["aria-brailleroledescription",{type:"string"}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-description",{type:"string"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],f={entries:function(){return u},forEach:function(d){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,m=a(u),y;try{for(m.s();!(y=m.n()).done;){var g=n(y.value,2),b=g[0],E=g[1];d.call(h,E,b,u);}}catch(_){m.e(_);}finally{m.f();}},get:function(d){var h=u.find(function(m){return m[0]===d});return h&&h[1]},has:function(d){return !!f.get(d)},keys:function(){return u.map(function(d){var h=n(d,1),m=h[0];return m})},values:function(){return u.map(function(d){var h=n(d,2),m=h[1];return m})}},p=(0, t.default)(f,f.entries());e.default=p;}}),GB=O({"../../node_modules/aria-query/lib/domMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Es());function r(d){return d&&d.__esModule?d:{default:d}}function n(d,h){return s(d)||i(d,h)||l(d,h)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
194
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(d,h){var m=d==null?null:typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(m!=null){var y=[],g=!0,b=!1,E,_;try{for(m=m.call(d);!(g=(E=m.next()).done)&&(y.push(E.value),!(h&&y.length===h));g=!0);}catch(T){b=!0,_=T;}finally{try{!g&&m.return!=null&&m.return();}finally{if(b)throw _}}return y}}function s(d){if(Array.isArray(d))return d}function a(d,h){var m=typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(!m){if(Array.isArray(d)||(m=l(d))||h){m&&(d=m);var y=0,g=function(){};return {s:g,n:function(){return y>=d.length?{done:!0}:{done:!1,value:d[y++]}},e:function(T){throw T},f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
195
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var b=!0,E=!1,_;return {s:function(){m=m.call(d);},n:function(){var T=m.next();return b=T.done,T},e:function(T){E=!0,_=T;},f:function(){try{!b&&m.return!=null&&m.return();}finally{if(E)throw _}}}}function l(d,h){if(d){if(typeof d=="string")return c(d,h);var m=Object.prototype.toString.call(d).slice(8,-1);if(m==="Object"&&d.constructor&&(m=d.constructor.name),m==="Map"||m==="Set")return Array.from(d);if(m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m))return c(d,h)}}function c(d,h){(h==null||h>d.length)&&(h=d.length);for(var m=0,y=new Array(h);m<h;m++)y[m]=d[m];return y}var u=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],f={entries:function(){return u},forEach:function(d){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,m=a(u),y;try{for(m.s();!(y=m.n()).done;){var g=n(y.value,2),b=g[0],E=g[1];d.call(h,E,b,u);}}catch(_){m.e(_);}finally{m.f();}},get:function(d){var h=u.find(function(m){return m[0]===d});return h&&h[1]},has:function(d){return !!f.get(d)},keys:function(){return u.map(function(d){var h=n(d,1),m=h[0];return m})},values:function(){return u.map(function(d){var h=n(d,2),m=h[1];return m})}},p=(0, t.default)(f,f.entries());e.default=p;}}),KB=O({"../../node_modules/aria-query/lib/etc/roles/abstract/commandRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},r=t;e.default=r;}}),YB=O({"../../node_modules/aria-query/lib/etc/roles/abstract/compositeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},r=t;e.default=r;}}),JB=O({"../../node_modules/aria-query/lib/etc/roles/abstract/inputRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},r=t;e.default=r;}}),XB=O({"../../node_modules/aria-query/lib/etc/roles/abstract/landmarkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),QB=O({"../../node_modules/aria-query/lib/etc/roles/abstract/rangeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r;}}),ZB=O({"../../node_modules/aria-query/lib/etc/roles/abstract/roletypeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},r=t;e.default=r;}}),eF=O({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r;}}),tF=O({"../../node_modules/aria-query/lib/etc/roles/abstract/sectionheadRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r;}}),rF=O({"../../node_modules/aria-query/lib/etc/roles/abstract/selectRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]},r=t;e.default=r;}}),nF=O({"../../node_modules/aria-query/lib/etc/roles/abstract/structureRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},r=t;e.default=r;}}),oF=O({"../../node_modules/aria-query/lib/etc/roles/abstract/widgetRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},r=t;e.default=r;}}),iF=O({"../../node_modules/aria-query/lib/etc/roles/abstract/windowRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},r=t;e.default=r;}}),sF=O({"../../node_modules/aria-query/lib/etc/roles/ariaAbstractRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=d(KB()),r=d(YB()),n=d(JB()),o=d(XB()),i=d(QB()),s=d(ZB()),a=d(eF()),l=d(tF()),c=d(rF()),u=d(nF()),f=d(oF()),p=d(iF());function d(y){return y&&y.__esModule?y:{default:y}}var h=[["command",t.default],["composite",r.default],["input",n.default],["landmark",o.default],["range",i.default],["roletype",s.default],["section",a.default],["sectionhead",l.default],["select",c.default],["structure",u.default],["widget",f.default],["window",p.default]],m=h;e.default=m;}}),aF=O({"../../node_modules/aria-query/lib/etc/roles/literal/alertRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),lF=O({"../../node_modules/aria-query/lib/etc/roles/literal/alertdialogRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]},r=t;e.default=r;}}),uF=O({"../../node_modules/aria-query/lib/etc/roles/literal/applicationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r;}}),cF=O({"../../node_modules/aria-query/lib/etc/roles/literal/articleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},r=t;e.default=r;}}),fF=O({"../../node_modules/aria-query/lib/etc/roles/literal/bannerRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),dF=O({"../../node_modules/aria-query/lib/etc/roles/literal/blockquoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),pF=O({"../../node_modules/aria-query/lib/etc/roles/literal/buttonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},r=t;e.default=r;}}),hF=O({"../../node_modules/aria-query/lib/etc/roles/literal/captionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),mF=O({"../../node_modules/aria-query/lib/etc/roles/literal/cellRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["ancestor table element has table role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),gF=O({"../../node_modules/aria-query/lib/etc/roles/literal/checkboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},r=t;e.default=r;}}),yF=O({"../../node_modules/aria-query/lib/etc/roles/literal/codeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),bF=O({"../../node_modules/aria-query/lib/etc/roles/literal/columnheaderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},r=t;e.default=r;}}),vF=O({"../../node_modules/aria-query/lib/etc/roles/literal/comboboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],constraints:["the multiple attribute is not set and the size attribute does not have a value greater than 1"],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]},r=t;e.default=r;}}),wF=O({"../../node_modules/aria-query/lib/etc/roles/literal/complementaryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-label"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),EF=O({"../../node_modules/aria-query/lib/etc/roles/literal/contentinfoRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),_F=O({"../../node_modules/aria-query/lib/etc/roles/literal/definitionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),SF=O({"../../node_modules/aria-query/lib/etc/roles/literal/deletionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"del"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),TF=O({"../../node_modules/aria-query/lib/etc/roles/literal/dialogRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]},r=t;e.default=r;}}),CF=O({"../../node_modules/aria-query/lib/etc/roles/literal/directoryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]},r=t;e.default=r;}}),xF=O({"../../node_modules/aria-query/lib/etc/roles/literal/documentRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r;}}),AF=O({"../../node_modules/aria-query/lib/etc/roles/literal/emphasisRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"em"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),PF=O({"../../node_modules/aria-query/lib/etc/roles/literal/feedRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]},r=t;e.default=r;}}),OF=O({"../../node_modules/aria-query/lib/etc/roles/literal/figureRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),RF=O({"../../node_modules/aria-query/lib/etc/roles/literal/formRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),MF=O({"../../node_modules/aria-query/lib/etc/roles/literal/genericRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"a"},module:"HTML"},{concept:{name:"area"},module:"HTML"},{concept:{name:"aside"},module:"HTML"},{concept:{name:"b"},module:"HTML"},{concept:{name:"bdo"},module:"HTML"},{concept:{name:"body"},module:"HTML"},{concept:{name:"data"},module:"HTML"},{concept:{name:"div"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"footer"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"header"},module:"HTML"},{concept:{name:"hgroup"},module:"HTML"},{concept:{name:"i"},module:"HTML"},{concept:{name:"pre"},module:"HTML"},{concept:{name:"q"},module:"HTML"},{concept:{name:"samp"},module:"HTML"},{concept:{name:"section"},module:"HTML"},{concept:{name:"small"},module:"HTML"},{concept:{name:"span"},module:"HTML"},{concept:{name:"u"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r;}}),IF=O({"../../node_modules/aria-query/lib/etc/roles/literal/gridRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]},r=t;e.default=r;}}),NF=O({"../../node_modules/aria-query/lib/etc/roles/literal/gridcellRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:["ancestor table element has grid role","ancestor table element has treegrid role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]},r=t;e.default=r;}}),jF=O({"../../node_modules/aria-query/lib/etc/roles/literal/groupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"},{concept:{name:"address"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),qF=O({"../../node_modules/aria-query/lib/etc/roles/literal/headingRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]},r=t;e.default=r;}}),$F=O({"../../node_modules/aria-query/lib/etc/roles/literal/imgRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),kF=O({"../../node_modules/aria-query/lib/etc/roles/literal/insertionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),DF=O({"../../node_modules/aria-query/lib/etc/roles/literal/linkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"href"}],name:"area"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},r=t;e.default=r;}}),LF=O({"../../node_modules/aria-query/lib/etc/roles/literal/listRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),BF=O({"../../node_modules/aria-query/lib/etc/roles/literal/listboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"}],constraints:["the size attribute value is greater than 1"],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},r=t;e.default=r;}}),FF=O({"../../node_modules/aria-query/lib/etc/roles/literal/listitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol","direct descendant of ul","direct descendant of menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),UF=O({"../../node_modules/aria-query/lib/etc/roles/literal/logRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),zF=O({"../../node_modules/aria-query/lib/etc/roles/literal/mainRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),VF=O({"../../node_modules/aria-query/lib/etc/roles/literal/markRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:"mark"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),HF=O({"../../node_modules/aria-query/lib/etc/roles/literal/marqueeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),WF=O({"../../node_modules/aria-query/lib/etc/roles/literal/mathRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),GF=O({"../../node_modules/aria-query/lib/etc/roles/literal/menuRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},r=t;e.default=r;}}),KF=O({"../../node_modules/aria-query/lib/etc/roles/literal/menubarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]},r=t;e.default=r;}}),YF=O({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},r=t;e.default=r;}}),JF=O({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemcheckboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]},r=t;e.default=r;}}),XF=O({"../../node_modules/aria-query/lib/etc/roles/literal/menuitemradioRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]},r=t;e.default=r;}}),QF=O({"../../node_modules/aria-query/lib/etc/roles/literal/meterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{name:"meter"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]},r=t;e.default=r;}}),ZF=O({"../../node_modules/aria-query/lib/etc/roles/literal/navigationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),e3=O({"../../node_modules/aria-query/lib/etc/roles/literal/noneRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},r=t;e.default=r;}}),t3=O({"../../node_modules/aria-query/lib/etc/roles/literal/noteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),r3=O({"../../node_modules/aria-query/lib/etc/roles/literal/optionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]},r=t;e.default=r;}}),n3=O({"../../node_modules/aria-query/lib/etc/roles/literal/paragraphRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"p"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),o3=O({"../../node_modules/aria-query/lib/etc/roles/literal/presentationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{attributes:[{name:"alt",value:""}],name:"img"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r;}}),i3=O({"../../node_modules/aria-query/lib/etc/roles/literal/progressbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]},r=t;e.default=r;}}),s3=O({"../../node_modules/aria-query/lib/etc/roles/literal/radioRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},r=t;e.default=r;}}),a3=O({"../../node_modules/aria-query/lib/etc/roles/literal/radiogroupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},r=t;e.default=r;}}),l3=O({"../../node_modules/aria-query/lib/etc/roles/literal/regionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),u3=O({"../../node_modules/aria-query/lib/etc/roles/literal/rowRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]},r=t;e.default=r;}}),c3=O({"../../node_modules/aria-query/lib/etc/roles/literal/rowgroupRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r;}}),f3=O({"../../node_modules/aria-query/lib/etc/roles/literal/rowheaderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},r=t;e.default=r;}}),d3=O({"../../node_modules/aria-query/lib/etc/roles/literal/scrollbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]},r=t;e.default=r;}}),p3=O({"../../node_modules/aria-query/lib/etc/roles/literal/searchRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),h3=O({"../../node_modules/aria-query/lib/etc/roles/literal/searchboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]},r=t;e.default=r;}}),m3=O({"../../node_modules/aria-query/lib/etc/roles/literal/separatorRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r;}}),g3=O({"../../node_modules/aria-query/lib/etc/roles/literal/sliderRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]},r=t;e.default=r;}}),y3=O({"../../node_modules/aria-query/lib/etc/roles/literal/spinbuttonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]},r=t;e.default=r;}}),b3=O({"../../node_modules/aria-query/lib/etc/roles/literal/statusRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),v3=O({"../../node_modules/aria-query/lib/etc/roles/literal/strongRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"strong"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),w3=O({"../../node_modules/aria-query/lib/etc/roles/literal/subscriptRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sub"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),E3=O({"../../node_modules/aria-query/lib/etc/roles/literal/superscriptRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),_3=O({"../../node_modules/aria-query/lib/etc/roles/literal/switchRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]},r=t;e.default=r;}}),S3=O({"../../node_modules/aria-query/lib/etc/roles/literal/tabRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]},r=t;e.default=r;}}),T3=O({"../../node_modules/aria-query/lib/etc/roles/literal/tableRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),C3=O({"../../node_modules/aria-query/lib/etc/roles/literal/tablistRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]},r=t;e.default=r;}}),x3=O({"../../node_modules/aria-query/lib/etc/roles/literal/tabpanelRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),A3=O({"../../node_modules/aria-query/lib/etc/roles/literal/termRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),P3=O({"../../node_modules/aria-query/lib/etc/roles/literal/textboxRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]},r=t;e.default=r;}}),O3=O({"../../node_modules/aria-query/lib/etc/roles/literal/timeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),R3=O({"../../node_modules/aria-query/lib/etc/roles/literal/timerRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]},r=t;e.default=r;}}),M3=O({"../../node_modules/aria-query/lib/etc/roles/literal/toolbarRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},r=t;e.default=r;}}),I3=O({"../../node_modules/aria-query/lib/etc/roles/literal/tooltipRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),N3=O({"../../node_modules/aria-query/lib/etc/roles/literal/treeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},r=t;e.default=r;}}),j3=O({"../../node_modules/aria-query/lib/etc/roles/literal/treegridRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]},r=t;e.default=r;}}),q3=O({"../../node_modules/aria-query/lib/etc/roles/literal/treeitemRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]},r=t;e.default=r;}}),$3=O({"../../node_modules/aria-query/lib/etc/roles/ariaLiteralRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=ee(aF()),r=ee(lF()),n=ee(uF()),o=ee(cF()),i=ee(fF()),s=ee(dF()),a=ee(pF()),l=ee(hF()),c=ee(mF()),u=ee(gF()),f=ee(yF()),p=ee(bF()),d=ee(vF()),h=ee(wF()),m=ee(EF()),y=ee(_F()),g=ee(SF()),b=ee(TF()),E=ee(CF()),_=ee(xF()),T=ee(AF()),x=ee(PF()),S=ee(OF()),v=ee(RF()),w=ee(MF()),I=ee(IF()),C=ee(NF()),N=ee(jF()),L=ee(qF()),q=ee($F()),H=ee(kF()),z=ee(DF()),Z=ee(LF()),Y=ee(BF()),ie=ee(FF()),ae=ee(UF()),ue=ee(zF()),K=ee(VF()),G=ee(HF()),J=ee(WF()),ne=ee(GF()),se=ee(KF()),fe=ee(YF()),Re=ee(JF()),Fe=ee(XF()),k=ee(QF()),re=ee(ZF()),X=ee(e3()),ce=ee(t3()),W=ee(r3()),Ae=ee(n3()),Pe=ee(o3()),He=ee(i3()),Nt=ee(s3()),Bu=ee(a3()),_t=ee(l3()),zr=ee(u3()),Ms=ee(c3()),Fu=ee(f3()),B=ee(d3()),F=ee(p3()),Q=ee(h3()),te=ee(m3()),j=ee(g3()),ge=ee(y3()),nt=ee(b3()),Ke=ee(v3()),Dt=ee(w3()),le=ee(E3()),oe=ee(_3()),de=ee(S3()),pe=ee(T3()),De=ee(C3()),ot=ee(x3()),Vr=ee(A3()),Jn=ee(P3()),Lt=ee(O3()),fr=ee(R3()),ii=ee(M3()),Yt=ee(I3()),Hr=ee(N3()),St=ee(j3()),Is=ee(q3());function ee(dr){return dr&&dr.__esModule?dr:{default:dr}}var si=[["alert",t.default],["alertdialog",r.default],["application",n.default],["article",o.default],["banner",i.default],["blockquote",s.default],["button",a.default],["caption",l.default],["cell",c.default],["checkbox",u.default],["code",f.default],["columnheader",p.default],["combobox",d.default],["complementary",h.default],["contentinfo",m.default],["definition",y.default],["deletion",g.default],["dialog",b.default],["directory",E.default],["document",_.default],["emphasis",T.default],["feed",x.default],["figure",S.default],["form",v.default],["generic",w.default],["grid",I.default],["gridcell",C.default],["group",N.default],["heading",L.default],["img",q.default],["insertion",H.default],["link",z.default],["list",Z.default],["listbox",Y.default],["listitem",ie.default],["log",ae.default],["main",ue.default],["mark",K.default],["marquee",G.default],["math",J.default],["menu",ne.default],["menubar",se.default],["menuitem",fe.default],["menuitemcheckbox",Re.default],["menuitemradio",Fe.default],["meter",k.default],["navigation",re.default],["none",X.default],["note",ce.default],["option",W.default],["paragraph",Ae.default],["presentation",Pe.default],["progressbar",He.default],["radio",Nt.default],["radiogroup",Bu.default],["region",_t.default],["row",zr.default],["rowgroup",Ms.default],["rowheader",Fu.default],["scrollbar",B.default],["search",F.default],["searchbox",Q.default],["separator",te.default],["slider",j.default],["spinbutton",ge.default],["status",nt.default],["strong",Ke.default],["subscript",Dt.default],["superscript",le.default],["switch",oe.default],["tab",de.default],["table",pe.default],["tablist",De.default],["tabpanel",ot.default],["term",Vr.default],["textbox",Jn.default],["time",Lt.default],["timer",fr.default],["toolbar",ii.default],["tooltip",Yt.default],["tree",Hr.default],["treegrid",St.default],["treeitem",Is.default]],Ns=si;e.default=Ns;}}),k3=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docAbstractRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),D3=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docAcknowledgmentsRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),L3=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docAfterwordRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),B3=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docAppendixRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),F3=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docBacklinkRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},r=t;e.default=r;}}),U3=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docBiblioentryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},r=t;e.default=r;}}),z3=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliographyRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),V3=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docBibliorefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},r=t;e.default=r;}}),H3=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docChapterRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),W3=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docColophonRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),G3=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docConclusionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),K3=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docCoverRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},r=t;e.default=r;}}),Y3=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),J3=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docCreditsRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),X3=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docDedicationRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),Q3=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},r=t;e.default=r;}}),Z3=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docEndnotesRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),eU=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpigraphRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),tU=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docEpilogueRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),rU=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docErrataRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),nU=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docExampleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),oU=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docFootnoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),iU=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docForewordRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),sU=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossaryRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),aU=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docGlossrefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},r=t;e.default=r;}}),lU=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docIndexRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},r=t;e.default=r;}}),uU=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docIntroductionRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),cU=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoterefRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},r=t;e.default=r;}}),fU=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docNoticeRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},r=t;e.default=r;}}),dU=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagebreakRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]},r=t;e.default=r;}}),pU=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docPagelistRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},r=t;e.default=r;}}),hU=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docPartRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),mU=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrefaceRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),gU=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docPrologueRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r;}}),yU=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docPullquoteRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]},r=t;e.default=r;}}),bU=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docQnaRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r;}}),vU=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docSubtitleRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]},r=t;e.default=r;}}),wU=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docTipRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},r=t;e.default=r;}}),EU=O({"../../node_modules/aria-query/lib/etc/roles/dpub/docTocRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},r=t;e.default=r;}}),_U=O({"../../node_modules/aria-query/lib/etc/roles/ariaDpubRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=J(k3()),r=J(D3()),n=J(L3()),o=J(B3()),i=J(F3()),s=J(U3()),a=J(z3()),l=J(V3()),c=J(H3()),u=J(W3()),f=J(G3()),p=J(K3()),d=J(Y3()),h=J(J3()),m=J(X3()),y=J(Q3()),g=J(Z3()),b=J(eU()),E=J(tU()),_=J(rU()),T=J(nU()),x=J(oU()),S=J(iU()),v=J(sU()),w=J(aU()),I=J(lU()),C=J(uU()),N=J(cU()),L=J(fU()),q=J(dU()),H=J(pU()),z=J(hU()),Z=J(mU()),Y=J(gU()),ie=J(yU()),ae=J(bU()),ue=J(vU()),K=J(wU()),G=J(EU());function J(fe){return fe&&fe.__esModule?fe:{default:fe}}var ne=[["doc-abstract",t.default],["doc-acknowledgments",r.default],["doc-afterword",n.default],["doc-appendix",o.default],["doc-backlink",i.default],["doc-biblioentry",s.default],["doc-bibliography",a.default],["doc-biblioref",l.default],["doc-chapter",c.default],["doc-colophon",u.default],["doc-conclusion",f.default],["doc-cover",p.default],["doc-credit",d.default],["doc-credits",h.default],["doc-dedication",m.default],["doc-endnote",y.default],["doc-endnotes",g.default],["doc-epigraph",b.default],["doc-epilogue",E.default],["doc-errata",_.default],["doc-example",T.default],["doc-footnote",x.default],["doc-foreword",S.default],["doc-glossary",v.default],["doc-glossref",w.default],["doc-index",I.default],["doc-introduction",C.default],["doc-noteref",N.default],["doc-notice",L.default],["doc-pagebreak",q.default],["doc-pagelist",H.default],["doc-part",z.default],["doc-preface",Z.default],["doc-prologue",Y.default],["doc-pullquote",ie.default],["doc-qna",ae.default],["doc-subtitle",ue.default],["doc-tip",K.default],["doc-toc",G.default]],se=ne;e.default=se;}}),SU=O({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsDocumentRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},r=t;e.default=r;}}),TU=O({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsObjectRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},r=t;e.default=r;}}),CU=O({"../../node_modules/aria-query/lib/etc/roles/graphics/graphicsSymbolRole.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},r=t;e.default=r;}}),xU=O({"../../node_modules/aria-query/lib/etc/roles/ariaGraphicsRoles.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(SU()),r=o(TU()),n=o(CU());function o(a){return a&&a.__esModule?a:{default:a}}var i=[["graphics-document",t.default],["graphics-object",r.default],["graphics-symbol",n.default]],s=i;e.default=s;}}),om=O({"../../node_modules/aria-query/lib/rolesMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=s(sF()),r=s($3()),n=s(_U()),o=s(xU()),i=s(Es());function s(b){return b&&b.__esModule?b:{default:b}}function a(b,E,_){return E in b?Object.defineProperty(b,E,{value:_,enumerable:!0,configurable:!0,writable:!0}):b[E]=_,b}function l(b,E){var _=typeof Symbol<"u"&&b[Symbol.iterator]||b["@@iterator"];if(!_){if(Array.isArray(b)||(_=f(b))||E){_&&(b=_);var T=0,x=function(){};return {s:x,n:function(){return T>=b.length?{done:!0}:{done:!1,value:b[T++]}},e:function(I){throw I},f:x}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
196
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var S=!0,v=!1,w;return {s:function(){_=_.call(b);},n:function(){var I=_.next();return S=I.done,I},e:function(I){v=!0,w=I;},f:function(){try{!S&&_.return!=null&&_.return();}finally{if(v)throw w}}}}function c(b,E){return h(b)||d(b,E)||f(b,E)||u()}function u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
197
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(b,E){if(b){if(typeof b=="string")return p(b,E);var _=Object.prototype.toString.call(b).slice(8,-1);if(_==="Object"&&b.constructor&&(_=b.constructor.name),_==="Map"||_==="Set")return Array.from(b);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return p(b,E)}}function p(b,E){(E==null||E>b.length)&&(E=b.length);for(var _=0,T=new Array(E);_<E;_++)T[_]=b[_];return T}function d(b,E){var _=b==null?null:typeof Symbol<"u"&&b[Symbol.iterator]||b["@@iterator"];if(_!=null){var T=[],x=!0,S=!1,v,w;try{for(_=_.call(b);!(x=(v=_.next()).done)&&(T.push(v.value),!(E&&T.length===E));x=!0);}catch(I){S=!0,w=I;}finally{try{!x&&_.return!=null&&_.return();}finally{if(S)throw w}}return T}}function h(b){if(Array.isArray(b))return b}var m=[].concat(t.default,r.default,n.default,o.default);m.forEach(function(b){var E=c(b,2),_=E[1],T=l(_.superClass),x;try{for(T.s();!(x=T.n()).done;){var S=x.value,v=l(S),w;try{var I=function(){var C=w.value,N=m.find(function(Z){var Y=c(Z,1),ie=Y[0];return ie===C});if(N)for(var L=N[1],q=0,H=Object.keys(L.props);q<H.length;q++){var z=H[q];Object.prototype.hasOwnProperty.call(_.props,z)||Object.assign(_.props,a({},z,L.props[z]));}};for(v.s();!(w=v.n()).done;)I();}catch(C){v.e(C);}finally{v.f();}}}catch(C){T.e(C);}finally{T.f();}});var y={entries:function(){return m},forEach:function(b){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,_=l(m),T;try{for(_.s();!(T=_.n()).done;){var x=c(T.value,2),S=x[0],v=x[1];b.call(E,v,S,m);}}catch(w){_.e(w);}finally{_.f();}},get:function(b){var E=m.find(function(_){return _[0]===b});return E&&E[1]},has:function(b){return !!y.get(b)},keys:function(){return m.map(function(b){var E=c(b,1),_=E[0];return _})},values:function(){return m.map(function(b){var E=c(b,2),_=E[1];return _})}},g=(0, i.default)(y,y.entries());e.default=g;}}),AU=O({"../../node_modules/dequal/lite/index.js"(e){var t=Object.prototype.hasOwnProperty;function r(n,o){var i,s;if(n===o)return !0;if(n&&o&&(i=n.constructor)===o.constructor){if(i===Date)return n.getTime()===o.getTime();if(i===RegExp)return n.toString()===o.toString();if(i===Array){if((s=n.length)===o.length)for(;s--&&r(n[s],o[s]););return s===-1}if(!i||typeof n=="object"){s=0;for(i in n)if(t.call(n,i)&&++s&&!t.call(o,i)||!(i in o)||!r(n[i],o[i]))return !1;return Object.keys(o).length===s}}return n!==n&&o!==o}e.dequal=r;}}),PU=O({"../../node_modules/aria-query/lib/elementRoleMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=AU(),r=o(Es()),n=o(om());function o(x){return x&&x.__esModule?x:{default:x}}function i(x,S){return l(x)||a(x,S)||u(x,S)||s()}function s(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
198
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(x,S){var v=x==null?null:typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(v!=null){var w=[],I=!0,C=!1,N,L;try{for(v=v.call(x);!(I=(N=v.next()).done)&&(w.push(N.value),!(S&&w.length===S));I=!0);}catch(q){C=!0,L=q;}finally{try{!I&&v.return!=null&&v.return();}finally{if(C)throw L}}return w}}function l(x){if(Array.isArray(x))return x}function c(x,S){var v=typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(!v){if(Array.isArray(x)||(v=u(x))||S){v&&(x=v);var w=0,I=function(){};return {s:I,n:function(){return w>=x.length?{done:!0}:{done:!1,value:x[w++]}},e:function(q){throw q},f:I}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
199
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var C=!0,N=!1,L;return {s:function(){v=v.call(x);},n:function(){var q=v.next();return C=q.done,q},e:function(q){N=!0,L=q;},f:function(){try{!C&&v.return!=null&&v.return();}finally{if(N)throw L}}}}function u(x,S){if(x){if(typeof x=="string")return f(x,S);var v=Object.prototype.toString.call(x).slice(8,-1);if(v==="Object"&&x.constructor&&(v=x.constructor.name),v==="Map"||v==="Set")return Array.from(x);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return f(x,S)}}function f(x,S){(S==null||S>x.length)&&(S=x.length);for(var v=0,w=new Array(S);v<S;v++)w[v]=x[v];return w}var p=[],d=n.default.keys();for(E=0;E<d.length;E++)if(h=d[E],m=n.default.get(h),m)for(y=[].concat(m.baseConcepts,m.relatedConcepts),b=0;b<y.length;b++)g=y[b],g.module==="HTML"&&function(){var x=g.concept;if(x){var S=p.find(function(C){return (0, t.dequal)(C,x)}),v;S?v=S[1]:v=[];for(var w=!0,I=0;I<v.length;I++)if(v[I]===h){w=!1;break}w&&v.push(h),p.push([x,v]);}}();var h,m,y,g,b,E,_={entries:function(){return p},forEach:function(x){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,v=c(p),w;try{for(v.s();!(w=v.n()).done;){var I=i(w.value,2),C=I[0],N=I[1];x.call(S,N,C,p);}}catch(L){v.e(L);}finally{v.f();}},get:function(x){var S=p.find(function(v){return x.name===v[0].name&&(0, t.dequal)(x.attributes,v[0].attributes)});return S&&S[1]},has:function(x){return !!_.get(x)},keys:function(){return p.map(function(x){var S=i(x,1),v=S[0];return v})},values:function(){return p.map(function(x){var S=i(x,2),v=S[1];return v})}},T=(0, r.default)(_,_.entries());e.default=T;}}),OU=O({"../../node_modules/aria-query/lib/roleElementMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(Es()),r=n(om());function n(S){return S&&S.__esModule?S:{default:S}}function o(S,v){return a(S)||s(S,v)||c(S,v)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
200
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s(S,v){var w=S==null?null:typeof Symbol<"u"&&S[Symbol.iterator]||S["@@iterator"];if(w!=null){var I=[],C=!0,N=!1,L,q;try{for(w=w.call(S);!(C=(L=w.next()).done)&&(I.push(L.value),!(v&&I.length===v));C=!0);}catch(H){N=!0,q=H;}finally{try{!C&&w.return!=null&&w.return();}finally{if(N)throw q}}return I}}function a(S){if(Array.isArray(S))return S}function l(S,v){var w=typeof Symbol<"u"&&S[Symbol.iterator]||S["@@iterator"];if(!w){if(Array.isArray(S)||(w=c(S))||v){w&&(S=w);var I=0,C=function(){};return {s:C,n:function(){return I>=S.length?{done:!0}:{done:!1,value:S[I++]}},e:function(H){throw H},f:C}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
201
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var N=!0,L=!1,q;return {s:function(){w=w.call(S);},n:function(){var H=w.next();return N=H.done,H},e:function(H){L=!0,q=H;},f:function(){try{!N&&w.return!=null&&w.return();}finally{if(L)throw q}}}}function c(S,v){if(S){if(typeof S=="string")return u(S,v);var w=Object.prototype.toString.call(S).slice(8,-1);if(w==="Object"&&S.constructor&&(w=S.constructor.name),w==="Map"||w==="Set")return Array.from(S);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return u(S,v)}}function u(S,v){(v==null||v>S.length)&&(v=S.length);for(var w=0,I=new Array(v);w<v;w++)I[w]=S[w];return I}var f=[],p=r.default.keys();for(_=0;_<p.length;_++)if(d=p[_],h=r.default.get(d),m=[],h){for(y=[].concat(h.baseConcepts,h.relatedConcepts),E=0;E<y.length;E++)g=y[E],g.module==="HTML"&&(b=g.concept,b!=null&&m.push(b));m.length>0&&f.push([d,m]);}var d,h,m,y,g,b,E,_,T={entries:function(){return f},forEach:function(S){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,w=l(f),I;try{for(w.s();!(I=w.n()).done;){var C=o(I.value,2),N=C[0],L=C[1];S.call(v,L,N,f);}}catch(q){w.e(q);}finally{w.f();}},get:function(S){var v=f.find(function(w){return w[0]===S});return v&&v[1]},has:function(S){return !!T.get(S)},keys:function(){return f.map(function(S){var v=o(S,1),w=v[0];return w})},values:function(){return f.map(function(S){var v=o(S,2),w=v[1];return w})}},x=(0, t.default)(T,T.entries());e.default=x;}}),im=O({"../../node_modules/aria-query/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.roles=e.roleElements=e.elementRoles=e.dom=e.aria=void 0;var t=s(WB()),r=s(GB()),n=s(om()),o=s(PU()),i=s(OU());function s(p){return p&&p.__esModule?p:{default:p}}var a=t.default;e.aria=a;var l=r.default;e.dom=l;var c=n.default;e.roles=c;var u=o.default;e.elementRoles=u;var f=i.default;e.roleElements=f;}}),RU=O({"../../node_modules/color-name/index.js"(e,t){t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};}}),AT=O({"../../node_modules/color-convert/conversions.js"(e,t){var r=RU(),n={};for(let s of Object.keys(r))n[r[s]]=s;var o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=o;for(let s of Object.keys(o)){if(!("channels"in o[s]))throw new Error("missing channels property: "+s);if(!("labels"in o[s]))throw new Error("missing channel labels property: "+s);if(o[s].labels.length!==o[s].channels)throw new Error("channel and label counts mismatch: "+s);let{channels:a,labels:l}=o[s];delete o[s].channels,delete o[s].labels,Object.defineProperty(o[s],"channels",{value:a}),Object.defineProperty(o[s],"labels",{value:l});}o.rgb.hsl=function(s){let a=s[0]/255,l=s[1]/255,c=s[2]/255,u=Math.min(a,l,c),f=Math.max(a,l,c),p=f-u,d,h;f===u?d=0:a===f?d=(l-c)/p:l===f?d=2+(c-a)/p:c===f&&(d=4+(a-l)/p),d=Math.min(d*60,360),d<0&&(d+=360);let m=(u+f)/2;return f===u?h=0:m<=.5?h=p/(f+u):h=p/(2-f-u),[d,h*100,m*100]},o.rgb.hsv=function(s){let a,l,c,u,f,p=s[0]/255,d=s[1]/255,h=s[2]/255,m=Math.max(p,d,h),y=m-Math.min(p,d,h),g=function(b){return (m-b)/6/y+1/2};return y===0?(u=0,f=0):(f=y/m,a=g(p),l=g(d),c=g(h),p===m?u=c-l:d===m?u=1/3+a-c:h===m&&(u=2/3+l-a),u<0?u+=1:u>1&&(u-=1)),[u*360,f*100,m*100]},o.rgb.hwb=function(s){let a=s[0],l=s[1],c=s[2],u=o.rgb.hsl(s)[0],f=1/255*Math.min(a,Math.min(l,c));return c=1-1/255*Math.max(a,Math.max(l,c)),[u,f*100,c*100]},o.rgb.cmyk=function(s){let a=s[0]/255,l=s[1]/255,c=s[2]/255,u=Math.min(1-a,1-l,1-c),f=(1-a-u)/(1-u)||0,p=(1-l-u)/(1-u)||0,d=(1-c-u)/(1-u)||0;return [f*100,p*100,d*100,u*100]};function i(s,a){return (s[0]-a[0])**2+(s[1]-a[1])**2+(s[2]-a[2])**2}o.rgb.keyword=function(s){let a=n[s];if(a)return a;let l=1/0,c;for(let u of Object.keys(r)){let f=r[u],p=i(s,f);p<l&&(l=p,c=u);}return c},o.keyword.rgb=function(s){return r[s]},o.rgb.xyz=function(s){let a=s[0]/255,l=s[1]/255,c=s[2]/255;a=a>.04045?((a+.055)/1.055)**2.4:a/12.92,l=l>.04045?((l+.055)/1.055)**2.4:l/12.92,c=c>.04045?((c+.055)/1.055)**2.4:c/12.92;let u=a*.4124+l*.3576+c*.1805,f=a*.2126+l*.7152+c*.0722,p=a*.0193+l*.1192+c*.9505;return [u*100,f*100,p*100]},o.rgb.lab=function(s){let a=o.rgb.xyz(s),l=a[0],c=a[1],u=a[2];l/=95.047,c/=100,u/=108.883,l=l>.008856?l**(1/3):7.787*l+16/116,c=c>.008856?c**(1/3):7.787*c+16/116,u=u>.008856?u**(1/3):7.787*u+16/116;let f=116*c-16,p=500*(l-c),d=200*(c-u);return [f,p,d]},o.hsl.rgb=function(s){let a=s[0]/360,l=s[1]/100,c=s[2]/100,u,f,p;if(l===0)return p=c*255,[p,p,p];c<.5?u=c*(1+l):u=c+l-c*l;let d=2*c-u,h=[0,0,0];for(let m=0;m<3;m++)f=a+1/3*-(m-1),f<0&&f++,f>1&&f--,6*f<1?p=d+(u-d)*6*f:2*f<1?p=u:3*f<2?p=d+(u-d)*(2/3-f)*6:p=d,h[m]=p*255;return h},o.hsl.hsv=function(s){let a=s[0],l=s[1]/100,c=s[2]/100,u=l,f=Math.max(c,.01);c*=2,l*=c<=1?c:2-c,u*=f<=1?f:2-f;let p=(c+l)/2,d=c===0?2*u/(f+u):2*l/(c+l);return [a,d*100,p*100]},o.hsv.rgb=function(s){let a=s[0]/60,l=s[1]/100,c=s[2]/100,u=Math.floor(a)%6,f=a-Math.floor(a),p=255*c*(1-l),d=255*c*(1-l*f),h=255*c*(1-l*(1-f));switch(c*=255,u){case 0:return [c,h,p];case 1:return [d,c,p];case 2:return [p,c,h];case 3:return [p,d,c];case 4:return [h,p,c];case 5:return [c,p,d]}},o.hsv.hsl=function(s){let a=s[0],l=s[1]/100,c=s[2]/100,u=Math.max(c,.01),f,p;p=(2-l)*c;let d=(2-l)*u;return f=l*u,f/=d<=1?d:2-d,f=f||0,p/=2,[a,f*100,p*100]},o.hwb.rgb=function(s){let a=s[0]/360,l=s[1]/100,c=s[2]/100,u=l+c,f;u>1&&(l/=u,c/=u);let p=Math.floor(6*a),d=1-c;f=6*a-p,p&1&&(f=1-f);let h=l+f*(d-l),m,y,g;switch(p){default:case 6:case 0:m=d,y=h,g=l;break;case 1:m=h,y=d,g=l;break;case 2:m=l,y=d,g=h;break;case 3:m=l,y=h,g=d;break;case 4:m=h,y=l,g=d;break;case 5:m=d,y=l,g=h;break}return [m*255,y*255,g*255]},o.cmyk.rgb=function(s){let a=s[0]/100,l=s[1]/100,c=s[2]/100,u=s[3]/100,f=1-Math.min(1,a*(1-u)+u),p=1-Math.min(1,l*(1-u)+u),d=1-Math.min(1,c*(1-u)+u);return [f*255,p*255,d*255]},o.xyz.rgb=function(s){let a=s[0]/100,l=s[1]/100,c=s[2]/100,u,f,p;return u=a*3.2406+l*-1.5372+c*-.4986,f=a*-.9689+l*1.8758+c*.0415,p=a*.0557+l*-.204+c*1.057,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,f=f>.0031308?1.055*f**(1/2.4)-.055:f*12.92,p=p>.0031308?1.055*p**(1/2.4)-.055:p*12.92,u=Math.min(Math.max(0,u),1),f=Math.min(Math.max(0,f),1),p=Math.min(Math.max(0,p),1),[u*255,f*255,p*255]},o.xyz.lab=function(s){let a=s[0],l=s[1],c=s[2];a/=95.047,l/=100,c/=108.883,a=a>.008856?a**(1/3):7.787*a+16/116,l=l>.008856?l**(1/3):7.787*l+16/116,c=c>.008856?c**(1/3):7.787*c+16/116;let u=116*l-16,f=500*(a-l),p=200*(l-c);return [u,f,p]},o.lab.xyz=function(s){let a=s[0],l=s[1],c=s[2],u,f,p;f=(a+16)/116,u=l/500+f,p=f-c/200;let d=f**3,h=u**3,m=p**3;return f=d>.008856?d:(f-16/116)/7.787,u=h>.008856?h:(u-16/116)/7.787,p=m>.008856?m:(p-16/116)/7.787,u*=95.047,f*=100,p*=108.883,[u,f,p]},o.lab.lch=function(s){let a=s[0],l=s[1],c=s[2],u;u=Math.atan2(c,l)*360/2/Math.PI,u<0&&(u+=360);let f=Math.sqrt(l*l+c*c);return [a,f,u]},o.lch.lab=function(s){let a=s[0],l=s[1],c=s[2]/360*2*Math.PI,u=l*Math.cos(c),f=l*Math.sin(c);return [a,u,f]},o.rgb.ansi16=function(s,a=null){let[l,c,u]=s,f=a===null?o.rgb.hsv(s)[2]:a;if(f=Math.round(f/50),f===0)return 30;let p=30+(Math.round(u/255)<<2|Math.round(c/255)<<1|Math.round(l/255));return f===2&&(p+=60),p},o.hsv.ansi16=function(s){return o.rgb.ansi16(o.hsv.rgb(s),s[2])},o.rgb.ansi256=function(s){let a=s[0],l=s[1],c=s[2];return a===l&&l===c?a<8?16:a>248?231:Math.round((a-8)/247*24)+232:16+36*Math.round(a/255*5)+6*Math.round(l/255*5)+Math.round(c/255*5)},o.ansi16.rgb=function(s){let a=s%10;if(a===0||a===7)return s>50&&(a+=3.5),a=a/10.5*255,[a,a,a];let l=(~~(s>50)+1)*.5,c=(a&1)*l*255,u=(a>>1&1)*l*255,f=(a>>2&1)*l*255;return [c,u,f]},o.ansi256.rgb=function(s){if(s>=232){let f=(s-232)*10+8;return [f,f,f]}s-=16;let a,l=Math.floor(s/36)/5*255,c=Math.floor((a=s%36)/6)/5*255,u=a%6/5*255;return [l,c,u]},o.rgb.hex=function(s){let a=(((Math.round(s[0])&255)<<16)+((Math.round(s[1])&255)<<8)+(Math.round(s[2])&255)).toString(16).toUpperCase();return "000000".substring(a.length)+a},o.hex.rgb=function(s){let a=s.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!a)return [0,0,0];let l=a[0];a[0].length===3&&(l=l.split("").map(d=>d+d).join(""));let c=parseInt(l,16),u=c>>16&255,f=c>>8&255,p=c&255;return [u,f,p]},o.rgb.hcg=function(s){let a=s[0]/255,l=s[1]/255,c=s[2]/255,u=Math.max(Math.max(a,l),c),f=Math.min(Math.min(a,l),c),p=u-f,d,h;return p<1?d=f/(1-p):d=0,p<=0?h=0:u===a?h=(l-c)/p%6:u===l?h=2+(c-a)/p:h=4+(a-l)/p,h/=6,h%=1,[h*360,p*100,d*100]},o.hsl.hcg=function(s){let a=s[1]/100,l=s[2]/100,c=l<.5?2*a*l:2*a*(1-l),u=0;return c<1&&(u=(l-.5*c)/(1-c)),[s[0],c*100,u*100]},o.hsv.hcg=function(s){let a=s[1]/100,l=s[2]/100,c=a*l,u=0;return c<1&&(u=(l-c)/(1-c)),[s[0],c*100,u*100]},o.hcg.rgb=function(s){let a=s[0]/360,l=s[1]/100,c=s[2]/100;if(l===0)return [c*255,c*255,c*255];let u=[0,0,0],f=a%1*6,p=f%1,d=1-p,h=0;switch(Math.floor(f)){case 0:u[0]=1,u[1]=p,u[2]=0;break;case 1:u[0]=d,u[1]=1,u[2]=0;break;case 2:u[0]=0,u[1]=1,u[2]=p;break;case 3:u[0]=0,u[1]=d,u[2]=1;break;case 4:u[0]=p,u[1]=0,u[2]=1;break;default:u[0]=1,u[1]=0,u[2]=d;}return h=(1-l)*c,[(l*u[0]+h)*255,(l*u[1]+h)*255,(l*u[2]+h)*255]},o.hcg.hsv=function(s){let a=s[1]/100,l=s[2]/100,c=a+l*(1-a),u=0;return c>0&&(u=a/c),[s[0],u*100,c*100]},o.hcg.hsl=function(s){let a=s[1]/100,l=s[2]/100*(1-a)+.5*a,c=0;return l>0&&l<.5?c=a/(2*l):l>=.5&&l<1&&(c=a/(2*(1-l))),[s[0],c*100,l*100]},o.hcg.hwb=function(s){let a=s[1]/100,l=s[2]/100,c=a+l*(1-a);return [s[0],(c-a)*100,(1-c)*100]},o.hwb.hcg=function(s){let a=s[1]/100,l=1-s[2]/100,c=l-a,u=0;return c<1&&(u=(l-c)/(1-c)),[s[0],c*100,u*100]},o.apple.rgb=function(s){return [s[0]/65535*255,s[1]/65535*255,s[2]/65535*255]},o.rgb.apple=function(s){return [s[0]/255*65535,s[1]/255*65535,s[2]/255*65535]},o.gray.rgb=function(s){return [s[0]/100*255,s[0]/100*255,s[0]/100*255]},o.gray.hsl=function(s){return [0,0,s[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(s){return [0,100,s[0]]},o.gray.cmyk=function(s){return [0,0,0,s[0]]},o.gray.lab=function(s){return [s[0],0,0]},o.gray.hex=function(s){let a=Math.round(s[0]/100*255)&255,l=((a<<16)+(a<<8)+a).toString(16).toUpperCase();return "000000".substring(l.length)+l},o.rgb.gray=function(s){return [(s[0]+s[1]+s[2])/3/255*100]};}}),MU=O({"../../node_modules/color-convert/route.js"(e,t){var r=AT();function n(){let a={},l=Object.keys(r);for(let c=l.length,u=0;u<c;u++)a[l[u]]={distance:-1,parent:null};return a}function o(a){let l=n(),c=[a];for(l[a].distance=0;c.length;){let u=c.pop(),f=Object.keys(r[u]);for(let p=f.length,d=0;d<p;d++){let h=f[d],m=l[h];m.distance===-1&&(m.distance=l[u].distance+1,m.parent=u,c.unshift(h));}}return l}function i(a,l){return function(c){return l(a(c))}}function s(a,l){let c=[l[a].parent,a],u=r[l[a].parent][a],f=l[a].parent;for(;l[f].parent;)c.unshift(l[f].parent),u=i(r[l[f].parent][f],u),f=l[f].parent;return u.conversion=c,u}t.exports=function(a){let l=o(a),c={},u=Object.keys(l);for(let f=u.length,p=0;p<f;p++){let d=u[p];l[d].parent!==null&&(c[d]=s(d,l));}return c};}}),IU=O({"../../node_modules/color-convert/index.js"(e,t){var r=AT(),n=MU(),o={},i=Object.keys(r);function s(l){let c=function(...u){let f=u[0];return f==null?f:(f.length>1&&(u=f),l(u))};return "conversion"in l&&(c.conversion=l.conversion),c}function a(l){let c=function(...u){let f=u[0];if(f==null)return f;f.length>1&&(u=f);let p=l(u);if(typeof p=="object")for(let d=p.length,h=0;h<d;h++)p[h]=Math.round(p[h]);return p};return "conversion"in l&&(c.conversion=l.conversion),c}i.forEach(l=>{o[l]={},Object.defineProperty(o[l],"channels",{value:r[l].channels}),Object.defineProperty(o[l],"labels",{value:r[l].labels});let c=n(l);Object.keys(c).forEach(u=>{let f=c[u];o[l][u]=a(f),o[l][u].raw=s(f);});}),t.exports=o;}}),NU=O({"../../node_modules/ansi-styles/index.js"(e,t){var r=(f,p)=>(...d)=>`\x1B[${f(...d)+p}m`,n=(f,p)=>(...d)=>{let h=f(...d);return `\x1B[${38+p};5;${h}m`},o=(f,p)=>(...d)=>{let h=f(...d);return `\x1B[${38+p};2;${h[0]};${h[1]};${h[2]}m`},i=f=>f,s=(f,p,d)=>[f,p,d],a=(f,p,d)=>{Object.defineProperty(f,p,{get:()=>{let h=d();return Object.defineProperty(f,p,{value:h,enumerable:!0,configurable:!0}),h},enumerable:!0,configurable:!0});},l,c=(f,p,d,h)=>{l===void 0&&(l=IU());let m=h?10:0,y={};for(let[g,b]of Object.entries(l)){let E=g==="ansi16"?"ansi":g;g===p?y[E]=f(d,m):typeof b=="object"&&(y[E]=f(b[p],m));}return y};function u(){let f=new Map,p={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};p.color.gray=p.color.blackBright,p.bgColor.bgGray=p.bgColor.bgBlackBright,p.color.grey=p.color.blackBright,p.bgColor.bgGrey=p.bgColor.bgBlackBright;for(let[d,h]of Object.entries(p)){for(let[m,y]of Object.entries(h))p[m]={open:`\x1B[${y[0]}m`,close:`\x1B[${y[1]}m`},h[m]=p[m],f.set(y[0],y[1]);Object.defineProperty(p,d,{value:h,enumerable:!1});}return Object.defineProperty(p,"codes",{value:f,enumerable:!1}),p.color.close="\x1B[39m",p.bgColor.close="\x1B[49m",a(p.color,"ansi",()=>c(r,"ansi16",i,!1)),a(p.color,"ansi256",()=>c(n,"ansi256",i,!1)),a(p.color,"ansi16m",()=>c(o,"rgb",s,!1)),a(p.bgColor,"ansi",()=>c(r,"ansi16",i,!0)),a(p.bgColor,"ansi256",()=>c(n,"ansi256",i,!0)),a(p.bgColor,"ansi16m",()=>c(o,"rgb",s,!0)),p}Object.defineProperty(t,"exports",{enumerable:!0,get:u});}}),jU=O({"../../node_modules/supports-color/browser.js"(e,t){t.exports={stdout:!1,stderr:!1};}}),qU=O({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/util.js"(e,t){var r=(o,i,s)=>{let a=o.indexOf(i);if(a===-1)return o;let l=i.length,c=0,u="";do u+=o.substr(c,a-c)+i+s,c=a+l,a=o.indexOf(i,c);while(a!==-1);return u+=o.substr(c),u},n=(o,i,s,a)=>{let l=0,c="";do{let u=o[a-1]==="\r";c+=o.substr(l,(u?a-1:a)-l)+i+(u?`\r
|
|
202
|
+
`:`
|
|
203
|
+
`)+s,l=a+1,a=o.indexOf(`
|
|
204
|
+
`,l);}while(a!==-1);return c+=o.substr(l),c};t.exports={stringReplaceAll:r,stringEncaseCRLFWithFirstIndex:n};}}),$U=O({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/templates.js"(e,t){var r=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,o=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,i=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,s=new Map([["n",`
|
|
205
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function a(f){let p=f[0]==="u",d=f[1]==="{";return p&&!d&&f.length===5||f[0]==="x"&&f.length===3?String.fromCharCode(parseInt(f.slice(1),16)):p&&d?String.fromCodePoint(parseInt(f.slice(2,-1),16)):s.get(f)||f}function l(f,p){let d=[],h=p.trim().split(/\s*,\s*/g),m;for(let y of h){let g=Number(y);if(!Number.isNaN(g))d.push(g);else if(m=y.match(o))d.push(m[2].replace(i,(b,E,_)=>E?a(E):_));else throw new Error(`Invalid Chalk template style argument: ${y} (in style '${f}')`)}return d}function c(f){n.lastIndex=0;let p=[],d;for(;(d=n.exec(f))!==null;){let h=d[1];if(d[2]){let m=l(h,d[2]);p.push([h].concat(m));}else p.push([h]);}return p}function u(f,p){let d={};for(let m of p)for(let y of m.styles)d[y[0]]=m.inverse?null:y.slice(1);let h=f;for(let[m,y]of Object.entries(d))if(Array.isArray(y)){if(!(m in h))throw new Error(`Unknown Chalk style: ${m}`);h=y.length>0?h[m](...y):h[m];}return h}t.exports=(f,p)=>{let d=[],h=[],m=[];if(p.replace(r,(y,g,b,E,_,T)=>{if(g)m.push(a(g));else if(E){let x=m.join("");m=[],h.push(d.length===0?x:u(f,d)(x)),d.push({inverse:b,styles:c(E)});}else if(_){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");h.push(u(f,d)(m.join(""))),m=[],d.pop();}else m.push(T);}),h.push(m.join("")),d.length>0){let y=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(y)}return h.join("")};}}),PT=O({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/index.js"(e,t){var r=NU(),{stdout:n,stderr:o}=jU(),{stringReplaceAll:i,stringEncaseCRLFWithFirstIndex:s}=qU(),a=["ansi","ansi","ansi256","ansi16m"],l=Object.create(null),c=(T,x={})=>{if(x.level>3||x.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let S=n?n.level:0;T.level=x.level===void 0?S:x.level;},u=class{constructor(T){return f(T)}},f=T=>{let x={};return c(x,T),x.template=(...S)=>E(x.template,...S),Object.setPrototypeOf(x,p.prototype),Object.setPrototypeOf(x.template,x),x.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},x.template.Instance=u,x.template};function p(T){return f(T)}for(let[T,x]of Object.entries(r))l[T]={get(){let S=y(this,m(x.open,x.close,this._styler),this._isEmpty);return Object.defineProperty(this,T,{value:S}),S}};l.visible={get(){let T=y(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:T}),T}};var d=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let T of d)l[T]={get(){let{level:x}=this;return function(...S){let v=m(r.color[a[x]][T](...S),r.color.close,this._styler);return y(this,v,this._isEmpty)}}};for(let T of d){let x="bg"+T[0].toUpperCase()+T.slice(1);l[x]={get(){let{level:S}=this;return function(...v){let w=m(r.bgColor[a[S]][T](...v),r.bgColor.close,this._styler);return y(this,w,this._isEmpty)}}};}var h=Object.defineProperties(()=>{},{...l,level:{enumerable:!0,get(){return this._generator.level},set(T){this._generator.level=T;}}}),m=(T,x,S)=>{let v,w;return S===void 0?(v=T,w=x):(v=S.openAll+T,w=x+S.closeAll),{open:T,close:x,openAll:v,closeAll:w,parent:S}},y=(T,x,S)=>{let v=(...w)=>g(v,w.length===1?""+w[0]:w.join(" "));return v.__proto__=h,v._generator=T,v._styler=x,v._isEmpty=S,v},g=(T,x)=>{if(T.level<=0||!x)return T._isEmpty?"":x;let S=T._styler;if(S===void 0)return x;let{openAll:v,closeAll:w}=S;if(x.indexOf("\x1B")!==-1)for(;S!==void 0;)x=i(x,S.close,S.open),S=S.parent;let I=x.indexOf(`
|
|
206
|
+
`);return I!==-1&&(x=s(x,w,v,I)),v+x+w},b,E=(T,...x)=>{let[S]=x;if(!Array.isArray(S))return x.join(" ");let v=x.slice(1),w=[S.raw[0]];for(let I=1;I<S.length;I++)w.push(String(v[I-1]).replace(/[{}\\]/g,"\\$&"),String(S.raw[I]));return b===void 0&&(b=$U()),b(T,w.join(""))};Object.defineProperties(p.prototype,l);var _=p();_.supportsColor=n,_.stderr=p({level:o?o.level:0}),_.stderr.supportsColor=o,_.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"},t.exports=_;}}),kU=O({"../../node_modules/lodash/_listCacheClear.js"(e,t){function r(){this.__data__=[],this.size=0;}t.exports=r;}}),OT=O({"../../node_modules/lodash/eq.js"(e,t){function r(n,o){return n===o||n!==n&&o!==o}t.exports=r;}}),lu=O({"../../node_modules/lodash/_assocIndexOf.js"(e,t){var r=OT();function n(o,i){for(var s=o.length;s--;)if(r(o[s][0],i))return s;return -1}t.exports=n;}}),DU=O({"../../node_modules/lodash/_listCacheDelete.js"(e,t){var r=lu(),n=Array.prototype,o=n.splice;function i(s){var a=this.__data__,l=r(a,s);if(l<0)return !1;var c=a.length-1;return l==c?a.pop():o.call(a,l,1),--this.size,!0}t.exports=i;}}),LU=O({"../../node_modules/lodash/_listCacheGet.js"(e,t){var r=lu();function n(o){var i=this.__data__,s=r(i,o);return s<0?void 0:i[s][1]}t.exports=n;}}),BU=O({"../../node_modules/lodash/_listCacheHas.js"(e,t){var r=lu();function n(o){return r(this.__data__,o)>-1}t.exports=n;}}),FU=O({"../../node_modules/lodash/_listCacheSet.js"(e,t){var r=lu();function n(o,i){var s=this.__data__,a=r(s,o);return a<0?(++this.size,s.push([o,i])):s[a][1]=i,this}t.exports=n;}}),uu=O({"../../node_modules/lodash/_ListCache.js"(e,t){var r=kU(),n=DU(),o=LU(),i=BU(),s=FU();function a(l){var c=-1,u=l==null?0:l.length;for(this.clear();++c<u;){var f=l[c];this.set(f[0],f[1]);}}a.prototype.clear=r,a.prototype.delete=n,a.prototype.get=o,a.prototype.has=i,a.prototype.set=s,t.exports=a;}}),UU=O({"../../node_modules/lodash/_stackClear.js"(e,t){var r=uu();function n(){this.__data__=new r,this.size=0;}t.exports=n;}}),zU=O({"../../node_modules/lodash/_stackDelete.js"(e,t){function r(n){var o=this.__data__,i=o.delete(n);return this.size=o.size,i}t.exports=r;}}),VU=O({"../../node_modules/lodash/_stackGet.js"(e,t){function r(n){return this.__data__.get(n)}t.exports=r;}}),HU=O({"../../node_modules/lodash/_stackHas.js"(e,t){function r(n){return this.__data__.has(n)}t.exports=r;}}),RT=O({"../../node_modules/lodash/_freeGlobal.js"(e,t){var r=typeof global=="object"&&global&&global.Object===Object&&global;t.exports=r;}}),Lr=O({"../../node_modules/lodash/_root.js"(e,t){var r=RT(),n=typeof self=="object"&&self&&self.Object===Object&&self,o=r||n||Function("return this")();t.exports=o;}}),sm=O({"../../node_modules/lodash/_Symbol.js"(e,t){var r=Lr(),n=r.Symbol;t.exports=n;}}),WU=O({"../../node_modules/lodash/_getRawTag.js"(e,t){var r=sm(),n=Object.prototype,o=n.hasOwnProperty,i=n.toString,s=r?r.toStringTag:void 0;function a(l){var c=o.call(l,s),u=l[s];try{l[s]=void 0;var f=!0;}catch{}var p=i.call(l);return f&&(c?l[s]=u:delete l[s]),p}t.exports=a;}}),GU=O({"../../node_modules/lodash/_objectToString.js"(e,t){var r=Object.prototype,n=r.toString;function o(i){return n.call(i)}t.exports=o;}}),cu=O({"../../node_modules/lodash/_baseGetTag.js"(e,t){var r=sm(),n=WU(),o=GU(),i="[object Null]",s="[object Undefined]",a=r?r.toStringTag:void 0;function l(c){return c==null?c===void 0?s:i:a&&a in Object(c)?n(c):o(c)}t.exports=l;}}),MT=O({"../../node_modules/lodash/isObject.js"(e,t){function r(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}t.exports=r;}}),IT=O({"../../node_modules/lodash/isFunction.js"(e,t){var r=cu(),n=MT(),o="[object AsyncFunction]",i="[object Function]",s="[object GeneratorFunction]",a="[object Proxy]";function l(c){if(!n(c))return !1;var u=r(c);return u==i||u==s||u==o||u==a}t.exports=l;}}),KU=O({"../../node_modules/lodash/_coreJsData.js"(e,t){var r=Lr(),n=r["__core-js_shared__"];t.exports=n;}}),YU=O({"../../node_modules/lodash/_isMasked.js"(e,t){var r=KU(),n=function(){var i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function o(i){return !!n&&n in i}t.exports=o;}}),NT=O({"../../node_modules/lodash/_toSource.js"(e,t){var r=Function.prototype,n=r.toString;function o(i){if(i!=null){try{return n.call(i)}catch{}try{return i+""}catch{}}return ""}t.exports=o;}}),JU=O({"../../node_modules/lodash/_baseIsNative.js"(e,t){var r=IT(),n=YU(),o=MT(),i=NT(),s=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,f=c.hasOwnProperty,p=RegExp("^"+u.call(f).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(h){if(!o(h)||n(h))return !1;var m=r(h)?p:a;return m.test(i(h))}t.exports=d;}}),XU=O({"../../node_modules/lodash/_getValue.js"(e,t){function r(n,o){return n?.[o]}t.exports=r;}}),ti=O({"../../node_modules/lodash/_getNative.js"(e,t){var r=JU(),n=XU();function o(i,s){var a=n(i,s);return r(a)?a:void 0}t.exports=o;}}),am=O({"../../node_modules/lodash/_Map.js"(e,t){var r=ti(),n=Lr(),o=r(n,"Map");t.exports=o;}}),fu=O({"../../node_modules/lodash/_nativeCreate.js"(e,t){var r=ti(),n=r(Object,"create");t.exports=n;}}),QU=O({"../../node_modules/lodash/_hashClear.js"(e,t){var r=fu();function n(){this.__data__=r?r(null):{},this.size=0;}t.exports=n;}}),ZU=O({"../../node_modules/lodash/_hashDelete.js"(e,t){function r(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}t.exports=r;}}),e5=O({"../../node_modules/lodash/_hashGet.js"(e,t){var r=fu(),n="__lodash_hash_undefined__",o=Object.prototype,i=o.hasOwnProperty;function s(a){var l=this.__data__;if(r){var c=l[a];return c===n?void 0:c}return i.call(l,a)?l[a]:void 0}t.exports=s;}}),t5=O({"../../node_modules/lodash/_hashHas.js"(e,t){var r=fu(),n=Object.prototype,o=n.hasOwnProperty;function i(s){var a=this.__data__;return r?a[s]!==void 0:o.call(a,s)}t.exports=i;}}),r5=O({"../../node_modules/lodash/_hashSet.js"(e,t){var r=fu(),n="__lodash_hash_undefined__";function o(i,s){var a=this.__data__;return this.size+=this.has(i)?0:1,a[i]=r&&s===void 0?n:s,this}t.exports=o;}}),n5=O({"../../node_modules/lodash/_Hash.js"(e,t){var r=QU(),n=ZU(),o=e5(),i=t5(),s=r5();function a(l){var c=-1,u=l==null?0:l.length;for(this.clear();++c<u;){var f=l[c];this.set(f[0],f[1]);}}a.prototype.clear=r,a.prototype.delete=n,a.prototype.get=o,a.prototype.has=i,a.prototype.set=s,t.exports=a;}}),o5=O({"../../node_modules/lodash/_mapCacheClear.js"(e,t){var r=n5(),n=uu(),o=am();function i(){this.size=0,this.__data__={hash:new r,map:new(o||n),string:new r};}t.exports=i;}}),i5=O({"../../node_modules/lodash/_isKeyable.js"(e,t){function r(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}t.exports=r;}}),du=O({"../../node_modules/lodash/_getMapData.js"(e,t){var r=i5();function n(o,i){var s=o.__data__;return r(i)?s[typeof i=="string"?"string":"hash"]:s.map}t.exports=n;}}),s5=O({"../../node_modules/lodash/_mapCacheDelete.js"(e,t){var r=du();function n(o){var i=r(this,o).delete(o);return this.size-=i?1:0,i}t.exports=n;}}),a5=O({"../../node_modules/lodash/_mapCacheGet.js"(e,t){var r=du();function n(o){return r(this,o).get(o)}t.exports=n;}}),l5=O({"../../node_modules/lodash/_mapCacheHas.js"(e,t){var r=du();function n(o){return r(this,o).has(o)}t.exports=n;}}),u5=O({"../../node_modules/lodash/_mapCacheSet.js"(e,t){var r=du();function n(o,i){var s=r(this,o),a=s.size;return s.set(o,i),this.size+=s.size==a?0:1,this}t.exports=n;}}),jT=O({"../../node_modules/lodash/_MapCache.js"(e,t){var r=o5(),n=s5(),o=a5(),i=l5(),s=u5();function a(l){var c=-1,u=l==null?0:l.length;for(this.clear();++c<u;){var f=l[c];this.set(f[0],f[1]);}}a.prototype.clear=r,a.prototype.delete=n,a.prototype.get=o,a.prototype.has=i,a.prototype.set=s,t.exports=a;}}),c5=O({"../../node_modules/lodash/_stackSet.js"(e,t){var r=uu(),n=am(),o=jT(),i=200;function s(a,l){var c=this.__data__;if(c instanceof r){var u=c.__data__;if(!n||u.length<i-1)return u.push([a,l]),this.size=++c.size,this;c=this.__data__=new o(u);}return c.set(a,l),this.size=c.size,this}t.exports=s;}}),f5=O({"../../node_modules/lodash/_Stack.js"(e,t){var r=uu(),n=UU(),o=zU(),i=VU(),s=HU(),a=c5();function l(c){var u=this.__data__=new r(c);this.size=u.size;}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=s,l.prototype.set=a,t.exports=l;}}),d5=O({"../../node_modules/lodash/_setCacheAdd.js"(e,t){var r="__lodash_hash_undefined__";function n(o){return this.__data__.set(o,r),this}t.exports=n;}}),p5=O({"../../node_modules/lodash/_setCacheHas.js"(e,t){function r(n){return this.__data__.has(n)}t.exports=r;}}),h5=O({"../../node_modules/lodash/_SetCache.js"(e,t){var r=jT(),n=d5(),o=p5();function i(s){var a=-1,l=s==null?0:s.length;for(this.__data__=new r;++a<l;)this.add(s[a]);}i.prototype.add=i.prototype.push=n,i.prototype.has=o,t.exports=i;}}),m5=O({"../../node_modules/lodash/_arraySome.js"(e,t){function r(n,o){for(var i=-1,s=n==null?0:n.length;++i<s;)if(o(n[i],i,n))return !0;return !1}t.exports=r;}}),g5=O({"../../node_modules/lodash/_cacheHas.js"(e,t){function r(n,o){return n.has(o)}t.exports=r;}}),qT=O({"../../node_modules/lodash/_equalArrays.js"(e,t){var r=h5(),n=m5(),o=g5(),i=1,s=2;function a(l,c,u,f,p,d){var h=u&i,m=l.length,y=c.length;if(m!=y&&!(h&&y>m))return !1;var g=d.get(l),b=d.get(c);if(g&&b)return g==c&&b==l;var E=-1,_=!0,T=u&s?new r:void 0;for(d.set(l,c),d.set(c,l);++E<m;){var x=l[E],S=c[E];if(f)var v=h?f(S,x,E,c,l,d):f(x,S,E,l,c,d);if(v!==void 0){if(v)continue;_=!1;break}if(T){if(!n(c,function(w,I){if(!o(T,I)&&(x===w||p(x,w,u,f,d)))return T.push(I)})){_=!1;break}}else if(!(x===S||p(x,S,u,f,d))){_=!1;break}}return d.delete(l),d.delete(c),_}t.exports=a;}}),y5=O({"../../node_modules/lodash/_Uint8Array.js"(e,t){var r=Lr(),n=r.Uint8Array;t.exports=n;}}),b5=O({"../../node_modules/lodash/_mapToArray.js"(e,t){function r(n){var o=-1,i=Array(n.size);return n.forEach(function(s,a){i[++o]=[a,s];}),i}t.exports=r;}}),v5=O({"../../node_modules/lodash/_setToArray.js"(e,t){function r(n){var o=-1,i=Array(n.size);return n.forEach(function(s){i[++o]=s;}),i}t.exports=r;}}),w5=O({"../../node_modules/lodash/_equalByTag.js"(e,t){var r=sm(),n=y5(),o=OT(),i=qT(),s=b5(),a=v5(),l=1,c=2,u="[object Boolean]",f="[object Date]",p="[object Error]",d="[object Map]",h="[object Number]",m="[object RegExp]",y="[object Set]",g="[object String]",b="[object Symbol]",E="[object ArrayBuffer]",_="[object DataView]",T=r?r.prototype:void 0,x=T?T.valueOf:void 0;function S(v,w,I,C,N,L,q){switch(I){case _:if(v.byteLength!=w.byteLength||v.byteOffset!=w.byteOffset)return !1;v=v.buffer,w=w.buffer;case E:return !(v.byteLength!=w.byteLength||!L(new n(v),new n(w)));case u:case f:case h:return o(+v,+w);case p:return v.name==w.name&&v.message==w.message;case m:case g:return v==w+"";case d:var H=s;case y:var z=C&l;if(H||(H=a),v.size!=w.size&&!z)return !1;var Z=q.get(v);if(Z)return Z==w;C|=c,q.set(v,w);var Y=i(H(v),H(w),C,N,L,q);return q.delete(v),Y;case b:if(x)return x.call(v)==x.call(w)}return !1}t.exports=S;}}),E5=O({"../../node_modules/lodash/_arrayPush.js"(e,t){function r(n,o){for(var i=-1,s=o.length,a=n.length;++i<s;)n[a+i]=o[i];return n}t.exports=r;}}),lm=O({"../../node_modules/lodash/isArray.js"(e,t){var r=Array.isArray;t.exports=r;}}),_5=O({"../../node_modules/lodash/_baseGetAllKeys.js"(e,t){var r=E5(),n=lm();function o(i,s,a){var l=s(i);return n(i)?l:r(l,a(i))}t.exports=o;}}),S5=O({"../../node_modules/lodash/_arrayFilter.js"(e,t){function r(n,o){for(var i=-1,s=n==null?0:n.length,a=0,l=[];++i<s;){var c=n[i];o(c,i,n)&&(l[a++]=c);}return l}t.exports=r;}}),T5=O({"../../node_modules/lodash/stubArray.js"(e,t){function r(){return []}t.exports=r;}}),C5=O({"../../node_modules/lodash/_getSymbols.js"(e,t){var r=S5(),n=T5(),o=Object.prototype,i=o.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(l){return l==null?[]:(l=Object(l),r(s(l),function(c){return i.call(l,c)}))}:n;t.exports=a;}}),x5=O({"../../node_modules/lodash/_baseTimes.js"(e,t){function r(n,o){for(var i=-1,s=Array(n);++i<n;)s[i]=o(i);return s}t.exports=r;}}),pu=O({"../../node_modules/lodash/isObjectLike.js"(e,t){function r(n){return n!=null&&typeof n=="object"}t.exports=r;}}),A5=O({"../../node_modules/lodash/_baseIsArguments.js"(e,t){var r=cu(),n=pu(),o="[object Arguments]";function i(s){return n(s)&&r(s)==o}t.exports=i;}}),P5=O({"../../node_modules/lodash/isArguments.js"(e,t){var r=A5(),n=pu(),o=Object.prototype,i=o.hasOwnProperty,s=o.propertyIsEnumerable,a=r(function(){return arguments}())?r:function(l){return n(l)&&i.call(l,"callee")&&!s.call(l,"callee")};t.exports=a;}}),O5=O({"../../node_modules/lodash/stubFalse.js"(e,t){function r(){return !1}t.exports=r;}}),$T=O({"../../node_modules/lodash/isBuffer.js"(e,t){var r=Lr(),n=O5(),o=typeof e=="object"&&e&&!e.nodeType&&e,i=o&&typeof t=="object"&&t&&!t.nodeType&&t,s=i&&i.exports===o,a=s?r.Buffer:void 0,l=a?a.isBuffer:void 0,c=l||n;t.exports=c;}}),R5=O({"../../node_modules/lodash/_isIndex.js"(e,t){var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function o(i,s){var a=typeof i;return s=s??r,!!s&&(a=="number"||a!="symbol"&&n.test(i))&&i>-1&&i%1==0&&i<s}t.exports=o;}}),kT=O({"../../node_modules/lodash/isLength.js"(e,t){var r=9007199254740991;function n(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=r}t.exports=n;}}),M5=O({"../../node_modules/lodash/_baseIsTypedArray.js"(e,t){var r=cu(),n=kT(),o=pu(),i="[object Arguments]",s="[object Array]",a="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",f="[object Map]",p="[object Number]",d="[object Object]",h="[object RegExp]",m="[object Set]",y="[object String]",g="[object WeakMap]",b="[object ArrayBuffer]",E="[object DataView]",_="[object Float32Array]",T="[object Float64Array]",x="[object Int8Array]",S="[object Int16Array]",v="[object Int32Array]",w="[object Uint8Array]",I="[object Uint8ClampedArray]",C="[object Uint16Array]",N="[object Uint32Array]",L={};L[_]=L[T]=L[x]=L[S]=L[v]=L[w]=L[I]=L[C]=L[N]=!0,L[i]=L[s]=L[b]=L[a]=L[E]=L[l]=L[c]=L[u]=L[f]=L[p]=L[d]=L[h]=L[m]=L[y]=L[g]=!1;function q(H){return o(H)&&n(H.length)&&!!L[r(H)]}t.exports=q;}}),I5=O({"../../node_modules/lodash/_baseUnary.js"(e,t){function r(n){return function(o){return n(o)}}t.exports=r;}}),N5=O({"../../node_modules/lodash/_nodeUtil.js"(e,t){var r=RT(),n=typeof e=="object"&&e&&!e.nodeType&&e,o=n&&typeof t=="object"&&t&&!t.nodeType&&t,i=o&&o.exports===n,s=i&&r.process,a=function(){try{var l=o&&o.require&&o.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();t.exports=a;}}),DT=O({"../../node_modules/lodash/isTypedArray.js"(e,t){var r=M5(),n=I5(),o=N5(),i=o&&o.isTypedArray,s=i?n(i):r;t.exports=s;}}),j5=O({"../../node_modules/lodash/_arrayLikeKeys.js"(e,t){var r=x5(),n=P5(),o=lm(),i=$T(),s=R5(),a=DT(),l=Object.prototype,c=l.hasOwnProperty;function u(f,p){var d=o(f),h=!d&&n(f),m=!d&&!h&&i(f),y=!d&&!h&&!m&&a(f),g=d||h||m||y,b=g?r(f.length,String):[],E=b.length;for(var _ in f)(p||c.call(f,_))&&!(g&&(_=="length"||m&&(_=="offset"||_=="parent")||y&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||s(_,E)))&&b.push(_);return b}t.exports=u;}}),q5=O({"../../node_modules/lodash/_isPrototype.js"(e,t){var r=Object.prototype;function n(o){var i=o&&o.constructor,s=typeof i=="function"&&i.prototype||r;return o===s}t.exports=n;}}),$5=O({"../../node_modules/lodash/_overArg.js"(e,t){function r(n,o){return function(i){return n(o(i))}}t.exports=r;}}),k5=O({"../../node_modules/lodash/_nativeKeys.js"(e,t){var r=$5(),n=r(Object.keys,Object);t.exports=n;}}),D5=O({"../../node_modules/lodash/_baseKeys.js"(e,t){var r=q5(),n=k5(),o=Object.prototype,i=o.hasOwnProperty;function s(a){if(!r(a))return n(a);var l=[];for(var c in Object(a))i.call(a,c)&&c!="constructor"&&l.push(c);return l}t.exports=s;}}),L5=O({"../../node_modules/lodash/isArrayLike.js"(e,t){var r=IT(),n=kT();function o(i){return i!=null&&n(i.length)&&!r(i)}t.exports=o;}}),B5=O({"../../node_modules/lodash/keys.js"(e,t){var r=j5(),n=D5(),o=L5();function i(s){return o(s)?r(s):n(s)}t.exports=i;}}),F5=O({"../../node_modules/lodash/_getAllKeys.js"(e,t){var r=_5(),n=C5(),o=B5();function i(s){return r(s,o,n)}t.exports=i;}}),U5=O({"../../node_modules/lodash/_equalObjects.js"(e,t){var r=F5(),n=1,o=Object.prototype,i=o.hasOwnProperty;function s(a,l,c,u,f,p){var d=c&n,h=r(a),m=h.length,y=r(l),g=y.length;if(m!=g&&!d)return !1;for(var b=m;b--;){var E=h[b];if(!(d?E in l:i.call(l,E)))return !1}var _=p.get(a),T=p.get(l);if(_&&T)return _==l&&T==a;var x=!0;p.set(a,l),p.set(l,a);for(var S=d;++b<m;){E=h[b];var v=a[E],w=l[E];if(u)var I=d?u(w,v,E,l,a,p):u(v,w,E,a,l,p);if(!(I===void 0?v===w||f(v,w,c,u,p):I)){x=!1;break}S||(S=E=="constructor");}if(x&&!S){var C=a.constructor,N=l.constructor;C!=N&&"constructor"in a&&"constructor"in l&&!(typeof C=="function"&&C instanceof C&&typeof N=="function"&&N instanceof N)&&(x=!1);}return p.delete(a),p.delete(l),x}t.exports=s;}}),z5=O({"../../node_modules/lodash/_DataView.js"(e,t){var r=ti(),n=Lr(),o=r(n,"DataView");t.exports=o;}}),V5=O({"../../node_modules/lodash/_Promise.js"(e,t){var r=ti(),n=Lr(),o=r(n,"Promise");t.exports=o;}}),H5=O({"../../node_modules/lodash/_Set.js"(e,t){var r=ti(),n=Lr(),o=r(n,"Set");t.exports=o;}}),W5=O({"../../node_modules/lodash/_WeakMap.js"(e,t){var r=ti(),n=Lr(),o=r(n,"WeakMap");t.exports=o;}}),G5=O({"../../node_modules/lodash/_getTag.js"(e,t){var r=z5(),n=am(),o=V5(),i=H5(),s=W5(),a=cu(),l=NT(),c="[object Map]",u="[object Object]",f="[object Promise]",p="[object Set]",d="[object WeakMap]",h="[object DataView]",m=l(r),y=l(n),g=l(o),b=l(i),E=l(s),_=a;(r&&_(new r(new ArrayBuffer(1)))!=h||n&&_(new n)!=c||o&&_(o.resolve())!=f||i&&_(new i)!=p||s&&_(new s)!=d)&&(_=function(T){var x=a(T),S=x==u?T.constructor:void 0,v=S?l(S):"";if(v)switch(v){case m:return h;case y:return c;case g:return f;case b:return p;case E:return d}return x}),t.exports=_;}}),K5=O({"../../node_modules/lodash/_baseIsEqualDeep.js"(e,t){var r=f5(),n=qT(),o=w5(),i=U5(),s=G5(),a=lm(),l=$T(),c=DT(),u=1,f="[object Arguments]",p="[object Array]",d="[object Object]",h=Object.prototype,m=h.hasOwnProperty;function y(g,b,E,_,T,x){var S=a(g),v=a(b),w=S?p:s(g),I=v?p:s(b);w=w==f?d:w,I=I==f?d:I;var C=w==d,N=I==d,L=w==I;if(L&&l(g)){if(!l(b))return !1;S=!0,C=!1;}if(L&&!C)return x||(x=new r),S||c(g)?n(g,b,E,_,T,x):o(g,b,w,E,_,T,x);if(!(E&u)){var q=C&&m.call(g,"__wrapped__"),H=N&&m.call(b,"__wrapped__");if(q||H){var z=q?g.value():g,Z=H?b.value():b;return x||(x=new r),T(z,Z,E,_,x)}}return L?(x||(x=new r),i(g,b,E,_,T,x)):!1}t.exports=y;}}),Y5=O({"../../node_modules/lodash/_baseIsEqual.js"(e,t){var r=K5(),n=pu();function o(i,s,a,l,c){return i===s?!0:i==null||s==null||!n(i)&&!n(s)?i!==i&&s!==s:r(i,s,a,l,o,c)}t.exports=o;}}),LT=O({"../../node_modules/lodash/isEqualWith.js"(e,t){var r=Y5();function n(o,i,s){s=typeof s=="function"?s:void 0;var a=s?s(o,i):void 0;return a===void 0?r(o,i,void 0,s):!!a}t.exports=n;}}),BT=O({"../../node_modules/css.escape/css.escape.js"(e,t){(function(r,n){typeof e=="object"?t.exports=n(r):typeof define=="function"&&define.amd?define([],n.bind(r,r)):n(r);})(typeof global<"u"?global:e,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var n=function(o){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var i=String(o),s=i.length,a=-1,l,c="",u=i.charCodeAt(0);++a<s;){if(l=i.charCodeAt(a),l==0){c+="\uFFFD";continue}if(l>=1&&l<=31||l==127||a==0&&l>=48&&l<=57||a==1&&l>=48&&l<=57&&u==45){c+="\\"+l.toString(16)+" ";continue}if(a==0&&s==1&&l==45){c+="\\"+i.charAt(a);continue}if(l>=128||l==45||l==95||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122){c+=i.charAt(a);continue}c+="\\"+i.charAt(a);}return c};return r.CSS||(r.CSS={}),r.CSS.escape=n,n});}}),FT=O({"../../node_modules/pretty-format/node_modules/ansi-styles/index.js"(e,t){var r=(i=0)=>s=>`\x1B[${38+i};5;${s}m`,n=(i=0)=>(s,a,l)=>`\x1B[${38+i};2;${s};${a};${l}m`;function o(){let i=new Map,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};s.color.gray=s.color.blackBright,s.bgColor.bgGray=s.bgColor.bgBlackBright,s.color.grey=s.color.blackBright,s.bgColor.bgGrey=s.bgColor.bgBlackBright;for(let[a,l]of Object.entries(s)){for(let[c,u]of Object.entries(l))s[c]={open:`\x1B[${u[0]}m`,close:`\x1B[${u[1]}m`},l[c]=s[c],i.set(u[0],u[1]);Object.defineProperty(s,a,{value:l,enumerable:!1});}return Object.defineProperty(s,"codes",{value:i,enumerable:!1}),s.color.close="\x1B[39m",s.bgColor.close="\x1B[49m",s.color.ansi256=r(),s.color.ansi16m=n(),s.bgColor.ansi256=r(10),s.bgColor.ansi16m=n(10),Object.defineProperties(s,{rgbToAnsi256:{value:(a,l,c)=>a===l&&l===c?a<8?16:a>248?231:Math.round((a-8)/247*24)+232:16+36*Math.round(a/255*5)+6*Math.round(l/255*5)+Math.round(c/255*5),enumerable:!1},hexToRgb:{value:a=>{let l=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(a.toString(16));if(!l)return [0,0,0];let{colorString:c}=l.groups;c.length===3&&(c=c.split("").map(f=>f+f).join(""));let u=Number.parseInt(c,16);return [u>>16&255,u>>8&255,u&255]},enumerable:!1},hexToAnsi256:{value:a=>s.rgbToAnsi256(...s.hexToRgb(a)),enumerable:!1}}),s}Object.defineProperty(t,"exports",{enumerable:!0,get:o});}}),hu=O({"../../node_modules/pretty-format/build/collections.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printIteratorEntries=r,e.printIteratorValues=n,e.printListItems=o,e.printObjectProperties=i;var t=(s,a)=>{let l=Object.keys(s).sort(a);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(s).forEach(c=>{Object.getOwnPropertyDescriptor(s,c).enumerable&&l.push(c);}),l};function r(s,a,l,c,u,f,p=": "){let d="",h=s.next();if(!h.done){d+=a.spacingOuter;let m=l+a.indent;for(;!h.done;){let y=f(h.value[0],a,m,c,u),g=f(h.value[1],a,m,c,u);d+=m+y+p+g,h=s.next(),h.done?a.min||(d+=","):d+=","+a.spacingInner;}d+=a.spacingOuter+l;}return d}function n(s,a,l,c,u,f){let p="",d=s.next();if(!d.done){p+=a.spacingOuter;let h=l+a.indent;for(;!d.done;)p+=h+f(d.value,a,h,c,u),d=s.next(),d.done?a.min||(p+=","):p+=","+a.spacingInner;p+=a.spacingOuter+l;}return p}function o(s,a,l,c,u,f){let p="";if(s.length){p+=a.spacingOuter;let d=l+a.indent;for(let h=0;h<s.length;h++)p+=d,h in s&&(p+=f(s[h],a,d,c,u)),h<s.length-1?p+=","+a.spacingInner:a.min||(p+=",");p+=a.spacingOuter+l;}return p}function i(s,a,l,c,u,f){let p="",d=t(s,a.compareKeys);if(d.length){p+=a.spacingOuter;let h=l+a.indent;for(let m=0;m<d.length;m++){let y=d[m],g=f(y,a,h,c,u),b=f(s[y],a,h,c,u);p+=h+g+": "+b,m<d.length-1?p+=","+a.spacingInner:a.min||(p+=",");}p+=a.spacingOuter+l;}return p}}}),J5=O({"../../node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=hu(),r=function(){return typeof globalThis<"u"?globalThis:typeof r<"u"?r:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),n=r["jest-symbol-do-not-touch"]||r.Symbol,o=typeof n=="function"&&n.for?n.for("jest.asymmetricMatcher"):1267621,i=" ",s=(u,f,p,d,h,m)=>{let y=u.toString();return y==="ArrayContaining"||y==="ArrayNotContaining"?++d>f.maxDepth?"["+y+"]":y+i+"["+(0, t.printListItems)(u.sample,f,p,d,h,m)+"]":y==="ObjectContaining"||y==="ObjectNotContaining"?++d>f.maxDepth?"["+y+"]":y+i+"{"+(0, t.printObjectProperties)(u.sample,f,p,d,h,m)+"}":y==="StringMatching"||y==="StringNotMatching"||y==="StringContaining"||y==="StringNotContaining"?y+i+m(u.sample,f,p,d,h):u.toAsymmetricMatcher()};e.serialize=s;var a=u=>u&&u.$$typeof===o;e.test=a;var l={serialize:s,test:a},c=l;e.default=c;}}),X5=O({"../../node_modules/pretty-format/node_modules/ansi-regex/index.js"(e,t){t.exports=({onlyFirst:r=!1}={})=>{let n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,r?void 0:"g")};}}),Q5=O({"../../node_modules/pretty-format/build/plugins/ConvertAnsi.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=n(X5()),r=n(FT());function n(c){return c&&c.__esModule?c:{default:c}}var o=c=>c.replace((0, t.default)(),u=>{switch(u){case r.default.red.close:case r.default.green.close:case r.default.cyan.close:case r.default.gray.close:case r.default.white.close:case r.default.yellow.close:case r.default.bgRed.close:case r.default.bgGreen.close:case r.default.bgYellow.close:case r.default.inverse.close:case r.default.dim.close:case r.default.bold.close:case r.default.reset.open:case r.default.reset.close:return "</>";case r.default.red.open:return "<red>";case r.default.green.open:return "<green>";case r.default.cyan.open:return "<cyan>";case r.default.gray.open:return "<gray>";case r.default.white.open:return "<white>";case r.default.yellow.open:return "<yellow>";case r.default.bgRed.open:return "<bgRed>";case r.default.bgGreen.open:return "<bgGreen>";case r.default.bgYellow.open:return "<bgYellow>";case r.default.inverse.open:return "<inverse>";case r.default.dim.open:return "<dim>";case r.default.bold.open:return "<bold>";default:return ""}}),i=c=>typeof c=="string"&&!!c.match((0, t.default)());e.test=i;var s=(c,u,f,p,d,h)=>h(o(c),u,f,p,d);e.serialize=s;var a={serialize:s,test:i},l=a;e.default=l;}}),Z5=O({"../../node_modules/pretty-format/build/plugins/DOMCollection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=hu(),r=" ",n=["DOMStringMap","NamedNodeMap"],o=/^(HTML\w*Collection|NodeList)$/,i=f=>n.indexOf(f)!==-1||o.test(f),s=f=>f&&f.constructor&&!!f.constructor.name&&i(f.constructor.name);e.test=s;var a=f=>f.constructor.name==="NamedNodeMap",l=(f,p,d,h,m,y)=>{let g=f.constructor.name;return ++h>p.maxDepth?"["+g+"]":(p.min?"":g+r)+(n.indexOf(g)!==-1?"{"+(0, t.printObjectProperties)(a(f)?Array.from(f).reduce((b,E)=>(b[E.name]=E.value,b),{}):{...f},p,d,h,m,y)+"}":"["+(0, t.printListItems)(Array.from(f),p,d,h,m,y)+"]")};e.serialize=l;var c={serialize:l,test:s},u=c;e.default=u;}}),ez=O({"../../node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return r.replace(/</g,"<").replace(/>/g,">")}}}),um=O({"../../node_modules/pretty-format/build/plugins/lib/markup.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printText=e.printProps=e.printElementAsLeaf=e.printElement=e.printComment=e.printChildren=void 0;var t=r(ez());function r(c){return c&&c.__esModule?c:{default:c}}var n=(c,u,f,p,d,h,m)=>{let y=p+f.indent,g=f.colors;return c.map(b=>{let E=u[b],_=m(E,f,y,d,h);return typeof E!="string"&&(_.indexOf(`
|
|
207
|
+
`)!==-1&&(_=f.spacingOuter+y+_+f.spacingOuter+p),_="{"+_+"}"),f.spacingInner+p+g.prop.open+b+g.prop.close+"="+g.value.open+_+g.value.close}).join("")};e.printProps=n;var o=(c,u,f,p,d,h)=>c.map(m=>u.spacingOuter+f+(typeof m=="string"?i(m,u):h(m,u,f,p,d))).join("");e.printChildren=o;var i=(c,u)=>{let f=u.colors.content;return f.open+(0, t.default)(c)+f.close};e.printText=i;var s=(c,u)=>{let f=u.colors.comment;return f.open+"<!--"+(0, t.default)(c)+"-->"+f.close};e.printComment=s;var a=(c,u,f,p,d)=>{let h=p.colors.tag;return h.open+"<"+c+(u&&h.close+u+p.spacingOuter+d+h.open)+(f?">"+h.close+f+p.spacingOuter+d+h.open+"</"+c:(u&&!p.min?"":" ")+"/")+">"+h.close};e.printElement=a;var l=(c,u)=>{let f=u.colors.tag;return f.open+"<"+c+f.close+" \u2026"+f.open+" />"+f.close};e.printElementAsLeaf=l;}}),tz=O({"../../node_modules/pretty-format/build/plugins/DOMElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=um(),r=1,n=3,o=8,i=11,s=/^((HTML|SVG)\w*)?Element$/,a=y=>{try{return typeof y.hasAttribute=="function"&&y.hasAttribute("is")}catch{return !1}},l=y=>{let g=y.constructor.name,{nodeType:b,tagName:E}=y,_=typeof E=="string"&&E.includes("-")||a(y);return b===r&&(s.test(g)||_)||b===n&&g==="Text"||b===o&&g==="Comment"||b===i&&g==="DocumentFragment"},c=y=>{var g;return (y==null||(g=y.constructor)===null||g===void 0?void 0:g.name)&&l(y)};e.test=c;function u(y){return y.nodeType===n}function f(y){return y.nodeType===o}function p(y){return y.nodeType===i}var d=(y,g,b,E,_,T)=>{if(u(y))return (0, t.printText)(y.data,g);if(f(y))return (0, t.printComment)(y.data,g);let x=p(y)?"DocumentFragment":y.tagName.toLowerCase();return ++E>g.maxDepth?(0, t.printElementAsLeaf)(x,g):(0, t.printElement)(x,(0, t.printProps)(p(y)?[]:Array.from(y.attributes).map(S=>S.name).sort(),p(y)?{}:Array.from(y.attributes).reduce((S,v)=>(S[v.name]=v.value,S),{}),g,b+g.indent,E,_,T),(0, t.printChildren)(Array.prototype.slice.call(y.childNodes||y.children),g,b+g.indent,E,_,T),g,b)};e.serialize=d;var h={serialize:d,test:c},m=h;e.default=m;}}),rz=O({"../../node_modules/pretty-format/build/plugins/Immutable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=hu(),r="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_LIST__@@",o="@@__IMMUTABLE_KEYED__@@",i="@@__IMMUTABLE_MAP__@@",s="@@__IMMUTABLE_ORDERED__@@",a="@@__IMMUTABLE_RECORD__@@",l="@@__IMMUTABLE_SEQ__@@",c="@@__IMMUTABLE_SET__@@",u="@@__IMMUTABLE_STACK__@@",f=v=>"Immutable."+v,p=v=>"["+v+"]",d=" ",h="\u2026",m=(v,w,I,C,N,L,q)=>++C>w.maxDepth?p(f(q)):f(q)+d+"{"+(0, t.printIteratorEntries)(v.entries(),w,I,C,N,L)+"}";function y(v){let w=0;return {next(){if(w<v._keys.length){let I=v._keys[w++];return {done:!1,value:[I,v.get(I)]}}return {done:!0,value:void 0}}}}var g=(v,w,I,C,N,L)=>{let q=f(v._name||"Record");return ++C>w.maxDepth?p(q):q+d+"{"+(0, t.printIteratorEntries)(y(v),w,I,C,N,L)+"}"},b=(v,w,I,C,N,L)=>{let q=f("Seq");return ++C>w.maxDepth?p(q):v[o]?q+d+"{"+(v._iter||v._object?(0, t.printIteratorEntries)(v.entries(),w,I,C,N,L):h)+"}":q+d+"["+(v._iter||v._array||v._collection||v._iterable?(0, t.printIteratorValues)(v.values(),w,I,C,N,L):h)+"]"},E=(v,w,I,C,N,L,q)=>++C>w.maxDepth?p(f(q)):f(q)+d+"["+(0, t.printIteratorValues)(v.values(),w,I,C,N,L)+"]",_=(v,w,I,C,N,L)=>v[i]?m(v,w,I,C,N,L,v[s]?"OrderedMap":"Map"):v[n]?E(v,w,I,C,N,L,"List"):v[c]?E(v,w,I,C,N,L,v[s]?"OrderedSet":"Set"):v[u]?E(v,w,I,C,N,L,"Stack"):v[l]?b(v,w,I,C,N,L):g(v,w,I,C,N,L);e.serialize=_;var T=v=>v&&(v[r]===!0||v[a]===!0);e.test=T;var x={serialize:_,test:T},S=x;e.default=S;}}),nz=O({"../../node_modules/pretty-format/node_modules/react-is/cjs/react-is.development.js"(e){(function(){var t=60103,r=60106,n=60107,o=60108,i=60114,s=60109,a=60110,l=60112,c=60113,u=60120,f=60115,p=60116,d=60121,h=60122,m=60117,y=60129,g=60131;if(typeof Symbol=="function"&&Symbol.for){var b=Symbol.for;t=b("react.element"),r=b("react.portal"),n=b("react.fragment"),o=b("react.strict_mode"),i=b("react.profiler"),s=b("react.provider"),a=b("react.context"),l=b("react.forward_ref"),c=b("react.suspense"),u=b("react.suspense_list"),f=b("react.memo"),p=b("react.lazy"),d=b("react.block"),h=b("react.server.block"),m=b("react.fundamental"),b("react.scope"),b("react.opaque.id"),y=b("react.debug_trace_mode"),b("react.offscreen"),g=b("react.legacy_hidden");}var E=!1;function _(X){return !!(typeof X=="string"||typeof X=="function"||X===n||X===i||X===y||X===o||X===c||X===u||X===g||E||typeof X=="object"&&X!==null&&(X.$$typeof===p||X.$$typeof===f||X.$$typeof===s||X.$$typeof===a||X.$$typeof===l||X.$$typeof===m||X.$$typeof===d||X[0]===h))}function T(X){if(typeof X=="object"&&X!==null){var ce=X.$$typeof;switch(ce){case t:var W=X.type;switch(W){case n:case i:case o:case c:case u:return W;default:var Ae=W&&W.$$typeof;switch(Ae){case a:case l:case p:case f:case s:return Ae;default:return ce}}case r:return ce}}}var x=a,S=s,v=t,w=l,I=n,C=p,N=f,L=r,q=i,H=o,z=c,Z=!1,Y=!1;function ie(X){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ae(X){return Y||(Y=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ue(X){return T(X)===a}function K(X){return T(X)===s}function G(X){return typeof X=="object"&&X!==null&&X.$$typeof===t}function J(X){return T(X)===l}function ne(X){return T(X)===n}function se(X){return T(X)===p}function fe(X){return T(X)===f}function Re(X){return T(X)===r}function Fe(X){return T(X)===i}function k(X){return T(X)===o}function re(X){return T(X)===c}e.ContextConsumer=x,e.ContextProvider=S,e.Element=v,e.ForwardRef=w,e.Fragment=I,e.Lazy=C,e.Memo=N,e.Portal=L,e.Profiler=q,e.StrictMode=H,e.Suspense=z,e.isAsyncMode=ie,e.isConcurrentMode=ae,e.isContextConsumer=ue,e.isContextProvider=K,e.isElement=G,e.isForwardRef=J,e.isFragment=ne,e.isLazy=se,e.isMemo=fe,e.isPortal=Re,e.isProfiler=Fe,e.isStrictMode=k,e.isSuspense=re,e.isValidElementType=_,e.typeOf=T;})();}}),oz=O({"../../node_modules/pretty-format/node_modules/react-is/index.js"(e,t){t.exports=nz();}}),iz=O({"../../node_modules/pretty-format/build/plugins/ReactElement.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=o(oz()),r=um();function n(p){if(typeof WeakMap!="function")return null;var d=new WeakMap,h=new WeakMap;return (n=function(m){return m?h:d})(p)}function o(p,d){if(p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return {default:p};var h=n(d);if(h&&h.has(p))return h.get(p);var m={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in p)if(g!=="default"&&Object.prototype.hasOwnProperty.call(p,g)){var b=y?Object.getOwnPropertyDescriptor(p,g):null;b&&(b.get||b.set)?Object.defineProperty(m,g,b):m[g]=p[g];}return m.default=p,h&&h.set(p,m),m}var i=(p,d=[])=>(Array.isArray(p)?p.forEach(h=>{i(h,d);}):p!=null&&p!==!1&&d.push(p),d),s=p=>{let d=p.type;if(typeof d=="string")return d;if(typeof d=="function")return d.displayName||d.name||"Unknown";if(t.isFragment(p))return "React.Fragment";if(t.isSuspense(p))return "React.Suspense";if(typeof d=="object"&&d!==null){if(t.isContextProvider(p))return "Context.Provider";if(t.isContextConsumer(p))return "Context.Consumer";if(t.isForwardRef(p)){if(d.displayName)return d.displayName;let h=d.render.displayName||d.render.name||"";return h!==""?"ForwardRef("+h+")":"ForwardRef"}if(t.isMemo(p)){let h=d.displayName||d.type.displayName||d.type.name||"";return h!==""?"Memo("+h+")":"Memo"}}return "UNDEFINED"},a=p=>{let{props:d}=p;return Object.keys(d).filter(h=>h!=="children"&&d[h]!==void 0).sort()},l=(p,d,h,m,y,g)=>++m>d.maxDepth?(0, r.printElementAsLeaf)(s(p),d):(0, r.printElement)(s(p),(0, r.printProps)(a(p),p.props,d,h+d.indent,m,y,g),(0, r.printChildren)(i(p.props.children),d,h+d.indent,m,y,g),d,h);e.serialize=l;var c=p=>p!=null&&t.isElement(p);e.test=c;var u={serialize:l,test:c},f=u;e.default=f;}}),sz=O({"../../node_modules/pretty-format/build/plugins/ReactTestComponent.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=um(),r=function(){return typeof globalThis<"u"?globalThis:typeof r<"u"?r:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()}(),n=r["jest-symbol-do-not-touch"]||r.Symbol,o=typeof n=="function"&&n.for?n.for("react.test.json"):245830487,i=u=>{let{props:f}=u;return f?Object.keys(f).filter(p=>f[p]!==void 0).sort():[]},s=(u,f,p,d,h,m)=>++d>f.maxDepth?(0, t.printElementAsLeaf)(u.type,f):(0, t.printElement)(u.type,u.props?(0, t.printProps)(i(u),u.props,f,p+f.indent,d,h,m):"",u.children?(0, t.printChildren)(u.children,f,p+f.indent,d,h,m):"",f,p);e.serialize=s;var a=u=>u&&u.$$typeof===o;e.test=a;var l={serialize:s,test:a},c=l;e.default=c;}}),az=O({"../../node_modules/pretty-format/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.DEFAULT_OPTIONS=void 0,e.format=fe,e.plugins=void 0;var t=u(FT()),r=hu(),n=u(J5()),o=u(Q5()),i=u(Z5()),s=u(tz()),a=u(rz()),l=u(iz()),c=u(sz());function u(k){return k&&k.__esModule?k:{default:k}}var f=Object.prototype.toString,p=Date.prototype.toISOString,d=Error.prototype.toString,h=RegExp.prototype.toString,m=k=>typeof k.constructor=="function"&&k.constructor.name||"Object",y=k=>typeof window<"u"&&k===window,g=/^Symbol\((.*)\)(.*)$/,b=/\n/gi,E=class extends Error{constructor(k,re){super(k),this.stack=re,this.name=this.constructor.name;}};function _(k){return k==="[object Array]"||k==="[object ArrayBuffer]"||k==="[object DataView]"||k==="[object Float32Array]"||k==="[object Float64Array]"||k==="[object Int8Array]"||k==="[object Int16Array]"||k==="[object Int32Array]"||k==="[object Uint8Array]"||k==="[object Uint8ClampedArray]"||k==="[object Uint16Array]"||k==="[object Uint32Array]"}function T(k){return Object.is(k,-0)?"-0":String(k)}function x(k){return `${k}n`}function S(k,re){return re?"[Function "+(k.name||"anonymous")+"]":"[Function]"}function v(k){return String(k).replace(g,"Symbol($1)")}function w(k){return "["+d.call(k)+"]"}function I(k,re,X,ce){if(k===!0||k===!1)return ""+k;if(k===void 0)return "undefined";if(k===null)return "null";let W=typeof k;if(W==="number")return T(k);if(W==="bigint")return x(k);if(W==="string")return ce?'"'+k.replace(/"|\\/g,"\\$&")+'"':'"'+k+'"';if(W==="function")return S(k,re);if(W==="symbol")return v(k);let Ae=f.call(k);return Ae==="[object WeakMap]"?"WeakMap {}":Ae==="[object WeakSet]"?"WeakSet {}":Ae==="[object Function]"||Ae==="[object GeneratorFunction]"?S(k,re):Ae==="[object Symbol]"?v(k):Ae==="[object Date]"?isNaN(+k)?"Date { NaN }":p.call(k):Ae==="[object Error]"?w(k):Ae==="[object RegExp]"?X?h.call(k).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):h.call(k):k instanceof Error?w(k):null}function C(k,re,X,ce,W,Ae){if(W.indexOf(k)!==-1)return "[Circular]";W=W.slice(),W.push(k);let Pe=++ce>re.maxDepth,He=re.min;if(re.callToJSON&&!Pe&&k.toJSON&&typeof k.toJSON=="function"&&!Ae)return H(k.toJSON(),re,X,ce,W,!0);let Nt=f.call(k);return Nt==="[object Arguments]"?Pe?"[Arguments]":(He?"":"Arguments ")+"["+(0, r.printListItems)(k,re,X,ce,W,H)+"]":_(Nt)?Pe?"["+k.constructor.name+"]":(He||!re.printBasicPrototype&&k.constructor.name==="Array"?"":k.constructor.name+" ")+"["+(0, r.printListItems)(k,re,X,ce,W,H)+"]":Nt==="[object Map]"?Pe?"[Map]":"Map {"+(0, r.printIteratorEntries)(k.entries(),re,X,ce,W,H," => ")+"}":Nt==="[object Set]"?Pe?"[Set]":"Set {"+(0, r.printIteratorValues)(k.values(),re,X,ce,W,H)+"}":Pe||y(k)?"["+m(k)+"]":(He||!re.printBasicPrototype&&m(k)==="Object"?"":m(k)+" ")+"{"+(0, r.printObjectProperties)(k,re,X,ce,W,H)+"}"}function N(k){return k.serialize!=null}function L(k,re,X,ce,W,Ae){let Pe;try{Pe=N(k)?k.serialize(re,X,ce,W,Ae,H):k.print(re,He=>H(He,X,ce,W,Ae),He=>{let Nt=ce+X.indent;return Nt+He.replace(b,`
|
|
208
|
+
`+Nt)},{edgeSpacing:X.spacingOuter,min:X.min,spacing:X.spacingInner},X.colors);}catch(He){throw new E(He.message,He.stack)}if(typeof Pe!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof Pe}".`);return Pe}function q(k,re){for(let X=0;X<k.length;X++)try{if(k[X].test(re))return k[X]}catch(ce){throw new E(ce.message,ce.stack)}return null}function H(k,re,X,ce,W,Ae){let Pe=q(re.plugins,k);if(Pe!==null)return L(Pe,k,re,X,ce,W);let He=I(k,re.printFunctionName,re.escapeRegex,re.escapeString);return He!==null?He:C(k,re,X,ce,W,Ae)}var z={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Z=Object.keys(z),Y={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:z};e.DEFAULT_OPTIONS=Y;function ie(k){if(Object.keys(k).forEach(re=>{if(!Y.hasOwnProperty(re))throw new Error(`pretty-format: Unknown option "${re}".`)}),k.min&&k.indent!==void 0&&k.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(k.theme!==void 0){if(k.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof k.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof k.theme}".`)}}var ae=k=>Z.reduce((re,X)=>{let ce=k.theme&&k.theme[X]!==void 0?k.theme[X]:z[X],W=ce&&t.default[ce];if(W&&typeof W.close=="string"&&typeof W.open=="string")re[X]=W;else throw new Error(`pretty-format: Option "theme" has a key "${X}" whose value "${ce}" is undefined in ansi-styles.`);return re},Object.create(null)),ue=()=>Z.reduce((k,re)=>(k[re]={close:"",open:""},k),Object.create(null)),K=k=>k&&k.printFunctionName!==void 0?k.printFunctionName:Y.printFunctionName,G=k=>k&&k.escapeRegex!==void 0?k.escapeRegex:Y.escapeRegex,J=k=>k&&k.escapeString!==void 0?k.escapeString:Y.escapeString,ne=k=>{var re;return {callToJSON:k&&k.callToJSON!==void 0?k.callToJSON:Y.callToJSON,colors:k&&k.highlight?ae(k):ue(),compareKeys:k&&typeof k.compareKeys=="function"?k.compareKeys:Y.compareKeys,escapeRegex:G(k),escapeString:J(k),indent:k&&k.min?"":se(k&&k.indent!==void 0?k.indent:Y.indent),maxDepth:k&&k.maxDepth!==void 0?k.maxDepth:Y.maxDepth,min:k&&k.min!==void 0?k.min:Y.min,plugins:k&&k.plugins!==void 0?k.plugins:Y.plugins,printBasicPrototype:(re=k?.printBasicPrototype)!==null&&re!==void 0?re:!0,printFunctionName:K(k),spacingInner:k&&k.min?" ":`
|
|
209
|
+
`,spacingOuter:k&&k.min?"":`
|
|
210
|
+
`}};function se(k){return new Array(k+1).join(" ")}function fe(k,re){if(re&&(ie(re),re.plugins)){let ce=q(re.plugins,k);if(ce!==null)return L(ce,k,ne(re),"",0,[])}let X=I(k,K(re),G(re),J(re));return X!==null?X:C(k,ne(re),"",0,[])}var Re={AsymmetricMatcher:n.default,ConvertAnsi:o.default,DOMCollection:i.default,DOMElement:s.default,Immutable:a.default,ReactElement:l.default,ReactTestComponent:c.default};e.plugins=Re;var Fe=fe;e.default=Fe;}}),lz=O({"../../node_modules/lz-string/libs/lz-string.js"(e,t){var r=function(){var n=String.fromCharCode,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",s={};function a(c,u){if(!s[c]){s[c]={};for(var f=0;f<c.length;f++)s[c][c.charAt(f)]=f;}return s[c][u]}var l={compressToBase64:function(c){if(c==null)return "";var u=l._compress(c,6,function(f){return o.charAt(f)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(c){return c==null?"":c==""?null:l._decompress(c.length,32,function(u){return a(o,c.charAt(u))})},compressToUTF16:function(c){return c==null?"":l._compress(c,15,function(u){return n(u+32)})+" "},decompressFromUTF16:function(c){return c==null?"":c==""?null:l._decompress(c.length,16384,function(u){return c.charCodeAt(u)-32})},compressToUint8Array:function(c){for(var u=l.compress(c),f=new Uint8Array(u.length*2),p=0,d=u.length;p<d;p++){var h=u.charCodeAt(p);f[p*2]=h>>>8,f[p*2+1]=h%256;}return f},decompressFromUint8Array:function(c){if(c==null)return l.decompress(c);for(var u=new Array(c.length/2),f=0,p=u.length;f<p;f++)u[f]=c[f*2]*256+c[f*2+1];var d=[];return u.forEach(function(h){d.push(n(h));}),l.decompress(d.join(""))},compressToEncodedURIComponent:function(c){return c==null?"":l._compress(c,6,function(u){return i.charAt(u)})},decompressFromEncodedURIComponent:function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),l._decompress(c.length,32,function(u){return a(i,c.charAt(u))}))},compress:function(c){return l._compress(c,16,function(u){return n(u)})},_compress:function(c,u,f){if(c==null)return "";var p,d,h={},m={},y="",g="",b="",E=2,_=3,T=2,x=[],S=0,v=0,w;for(w=0;w<c.length;w+=1)if(y=c.charAt(w),Object.prototype.hasOwnProperty.call(h,y)||(h[y]=_++,m[y]=!0),g=b+y,Object.prototype.hasOwnProperty.call(h,g))b=g;else {if(Object.prototype.hasOwnProperty.call(m,b)){if(b.charCodeAt(0)<256){for(p=0;p<T;p++)S=S<<1,v==u-1?(v=0,x.push(f(S)),S=0):v++;for(d=b.charCodeAt(0),p=0;p<8;p++)S=S<<1|d&1,v==u-1?(v=0,x.push(f(S)),S=0):v++,d=d>>1;}else {for(d=1,p=0;p<T;p++)S=S<<1|d,v==u-1?(v=0,x.push(f(S)),S=0):v++,d=0;for(d=b.charCodeAt(0),p=0;p<16;p++)S=S<<1|d&1,v==u-1?(v=0,x.push(f(S)),S=0):v++,d=d>>1;}E--,E==0&&(E=Math.pow(2,T),T++),delete m[b];}else for(d=h[b],p=0;p<T;p++)S=S<<1|d&1,v==u-1?(v=0,x.push(f(S)),S=0):v++,d=d>>1;E--,E==0&&(E=Math.pow(2,T),T++),h[g]=_++,b=String(y);}if(b!==""){if(Object.prototype.hasOwnProperty.call(m,b)){if(b.charCodeAt(0)<256){for(p=0;p<T;p++)S=S<<1,v==u-1?(v=0,x.push(f(S)),S=0):v++;for(d=b.charCodeAt(0),p=0;p<8;p++)S=S<<1|d&1,v==u-1?(v=0,x.push(f(S)),S=0):v++,d=d>>1;}else {for(d=1,p=0;p<T;p++)S=S<<1|d,v==u-1?(v=0,x.push(f(S)),S=0):v++,d=0;for(d=b.charCodeAt(0),p=0;p<16;p++)S=S<<1|d&1,v==u-1?(v=0,x.push(f(S)),S=0):v++,d=d>>1;}E--,E==0&&(E=Math.pow(2,T),T++),delete m[b];}else for(d=h[b],p=0;p<T;p++)S=S<<1|d&1,v==u-1?(v=0,x.push(f(S)),S=0):v++,d=d>>1;E--,E==0&&(E=Math.pow(2,T),T++);}for(d=2,p=0;p<T;p++)S=S<<1|d&1,v==u-1?(v=0,x.push(f(S)),S=0):v++,d=d>>1;for(;;)if(S=S<<1,v==u-1){x.push(f(S));break}else v++;return x.join("")},decompress:function(c){return c==null?"":c==""?null:l._decompress(c.length,32768,function(u){return c.charCodeAt(u)})},_decompress:function(c,u,f){var p=[],d=4,h=4,m=3,y="",g=[],b,E,_,T,x,S,v,w={val:f(0),position:u,index:1};for(b=0;b<3;b+=1)p[b]=b;for(_=0,x=Math.pow(2,2),S=1;S!=x;)T=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=f(w.index++)),_|=(T>0?1:0)*S,S<<=1;switch(_){case 0:for(_=0,x=Math.pow(2,8),S=1;S!=x;)T=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=f(w.index++)),_|=(T>0?1:0)*S,S<<=1;v=n(_);break;case 1:for(_=0,x=Math.pow(2,16),S=1;S!=x;)T=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=f(w.index++)),_|=(T>0?1:0)*S,S<<=1;v=n(_);break;case 2:return ""}for(p[3]=v,E=v,g.push(v);;){if(w.index>c)return "";for(_=0,x=Math.pow(2,m),S=1;S!=x;)T=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=f(w.index++)),_|=(T>0?1:0)*S,S<<=1;switch(v=_){case 0:for(_=0,x=Math.pow(2,8),S=1;S!=x;)T=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=f(w.index++)),_|=(T>0?1:0)*S,S<<=1;p[h++]=n(_),v=h-1,d--;break;case 1:for(_=0,x=Math.pow(2,16),S=1;S!=x;)T=w.val&w.position,w.position>>=1,w.position==0&&(w.position=u,w.val=f(w.index++)),_|=(T>0?1:0)*S,S<<=1;p[h++]=n(_),v=h-1,d--;break;case 2:return g.join("")}if(d==0&&(d=Math.pow(2,m),m++),p[v])y=p[v];else if(v===h)y=E+E.charAt(0);else return null;g.push(y),p[h++]=E+y.charAt(0),d--,E=y,d==0&&(d=Math.pow(2,m),m++);}}};return l}();typeof define=="function"&&define.amd?define(function(){return r}):typeof t<"u"&&t!=null?t.exports=r:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return r});}}),UT=Object.defineProperty,uz=Object.getOwnPropertyNames,V=(e,t)=>UT(e,"name",{value:t,configurable:!0}),cz=(e,t)=>function(){return t||(0, e[uz(e)[0]])((t={exports:{}}).exports,t),t.exports},cm=(e,t)=>{for(var r in t)UT(e,r,{get:t[r],enumerable:!0});},fz=cz({"(disabled):util"(){}}),br={};cm(br,{addChainableMethod:()=>_m,addLengthGuard:()=>Ts,addMethod:()=>vm,addProperty:()=>bm,checkError:()=>qt,compareByInspect:()=>Wl,eql:()=>hC,expectTypes:()=>YT,flag:()=>me,getActual:()=>gu,getMessage:()=>pm,getName:()=>bu,getOperator:()=>xm,getOwnEnumerableProperties:()=>Cm,getOwnEnumerablePropertySymbols:()=>Tm,getPathInfo:()=>ym,hasProperty:()=>yu,inspect:()=>xe,isNaN:()=>Gl,isProxyEnabled:()=>Ss,isRegExp:()=>Kl,objDisplay:()=>Ln,overwriteChainableMethod:()=>Sm,overwriteMethod:()=>Em,overwriteProperty:()=>wm,proxify:()=>ri,test:()=>fm,transferFlags:()=>ur,type:()=>Be});var qt={};cm(qt,{compatibleConstructor:()=>HT,compatibleInstance:()=>VT,compatibleMessage:()=>WT,getConstructorName:()=>GT,getMessage:()=>KT});function mu(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}V(mu,"isErrorInstance");function zT(e){return Object.prototype.toString.call(e)==="[object RegExp]"}V(zT,"isRegExp");function VT(e,t){return mu(t)&&e===t}V(VT,"compatibleInstance");function HT(e,t){return mu(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:!1}V(HT,"compatibleConstructor");function WT(e,t){let r=typeof e=="string"?e:e.message;return zT(t)?t.test(r):typeof t=="string"?r.indexOf(t)!==-1:!1}V(WT,"compatibleMessage");function GT(e){let t=e;return mu(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}V(GT,"getConstructorName");function KT(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}V(KT,"getMessage");function me(e,t,r){var n=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)n[t]=r;else return n[t]}V(me,"flag");function fm(e,t){var r=me(e,"negate"),n=t[0];return r?!n:n}V(fm,"test");function Be(e){if(typeof e>"u")return "undefined";if(e===null)return "null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}V(Be,"type");var dz="captureStackTrace"in Error,Pl,je=(Pl=class extends Error{message;get name(){return "AssertionError"}get ok(){return !1}constructor(e="Unspecified AssertionError",t,r){super(e),this.message=e,dz&&Error.captureStackTrace(this,r||Pl);for(let n in t)n in this||(this[n]=t[n]);}toJSON(e){return {...this,name:this.name,message:this.message,ok:!1,stack:e!==!1?this.stack:void 0}}},V(Pl,"AssertionError"),Pl);function YT(e,t){var r=me(e,"message"),n=me(e,"ssfi");r=r?r+": ":"",e=me(e,"object"),t=t.map(function(s){return s.toLowerCase()}),t.sort();var o=t.map(function(s,a){var l=~["a","e","i","o","u"].indexOf(s.charAt(0))?"an":"a",c=t.length>1&&a===t.length-1?"or ":"";return c+l+" "+s}).join(", "),i=Be(e).toLowerCase();if(!t.some(function(s){return i===s}))throw new je(r+"object tested must be "+o+", but "+i+" given",void 0,n)}V(YT,"expectTypes");function gu(e,t){return t.length>4?t[4]:e._obj}V(gu,"getActual");var b_={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"]},pz={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Uo="\u2026";function JT(e,t){let r=b_[pz[t]]||b_[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}V(JT,"colorise");function XT({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!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:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(l),seen:a,inspect:u,stylize:c};return f.colors&&(f.stylize=JT),f}V(XT,"normaliseOptions");function Br(e,t,r=Uo){e=String(e);let n=r.length,o=e.length;return n>t&&o>n?r:o>t&&o>n?`${e.slice(0,t-n)}${r}`:e}V(Br,"truncate");function Gt(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return "";let i=t.truncate,s="",a="",l="";for(let c=0;c<o;c+=1){let u=c+1===e.length,f=c+2===e.length;l=`${Uo}(${e.length-c})`;let p=e[c];t.truncate=i-s.length-(u?0:n.length);let d=a||r(p,t)+(u?"":n),h=s.length+d.length,m=h+l.length;if(u&&h>i&&s.length+l.length<=i||!u&&!f&&m>i||(a=u?"":r(e[c+1],t)+(f?"":n),!u&&f&&m>i&&h+a.length>i))break;if(s+=d,!u&&!f&&h+a.length>=i){l=`${Uo}(${e.length-c-1})`;break}l="";}return `${s}${l}`}V(Gt,"inspectList");function QT(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}V(QT,"quoteComplexKey");function zo([e,t],r){return r.truncate-=2,typeof e=="string"?e=QT(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}V(zo,"inspectProperty");function ZT(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return "[]";t.truncate-=4;let n=Gt(e,t);t.truncate-=n.length;let o="";return r.length&&(o=Gt(r.map(i=>[i,e[i]]),t,zo)),`[ ${n}${o?`, ${o}`:""} ]`}V(ZT,"inspectArray");var hz=V(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function yr(e,t){let r=hz(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return `${r}[]`;let o="";for(let s=0;s<e.length;s++){let a=`${t.stylize(Br(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=a.length,e[s]!==e.length&&t.truncate<=3){o+=`${Uo}(${e.length-e[s]+1})`;break}o+=a;}let i="";return n.length&&(i=Gt(n.map(s=>[s,e[s]]),t,zo)),`${r}[ ${o}${i?`, ${i}`:""} ]`}V(yr,"inspectTypedArray");function eC(e,t){let r=e.toJSON();if(r===null)return "Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${Br(n[1],t.truncate-o.length-1)}`,"date")}V(eC,"inspectDate");function ih(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Br(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}V(ih,"inspectFunction");function tC([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}V(tC,"inspectMapEntry");function rC(e){let t=[];return e.forEach((r,n)=>{t.push([n,r]);}),t}V(rC,"mapToEntries");function nC(e,t){return e.size-1<=0?"Map{}":(t.truncate-=7,`Map{ ${Gt(rC(e),t,tC)} }`)}V(nC,"inspectMap");var mz=Number.isNaN||(e=>e!==e);function sh(e,t){return mz(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(Br(String(e),t.truncate),"number")}V(sh,"inspectNumber");function ah(e,t){let r=Br(e.toString(),t.truncate-1);return r!==Uo&&(r+="n"),t.stylize(r,"bigint")}V(ah,"inspectBigInt");function oC(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${Br(o,n)}/${r}`,"regexp")}V(oC,"inspectRegExp");function iC(e){let t=[];return e.forEach(r=>{t.push(r);}),t}V(iC,"arrayFromSet");function sC(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Gt(iC(e),t)} }`)}V(sC,"inspectSet");var v_=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),gz={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},yz=16,bz=4;function aC(e){return gz[e]||`\\u${`0000${e.charCodeAt(0).toString(yz)}`.slice(-bz)}`}V(aC,"escape");function lh(e,t){return v_.test(e)&&(e=e.replace(v_,aC)),t.stylize(`'${Br(e,t.truncate-2)}'`,"string")}V(lh,"inspectString");function uh(e){return "description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}V(uh,"inspectSymbol");var lC=V(()=>"Promise{\u2026}","getPromiseValue");try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(lC=V((n,o)=>{let[i,s]=e(n);return i===t?"Promise{<pending>}":`Promise${i===r?"!":""}{${o.inspect(s,o)}}`},"getPromiseValue"));}catch{}var vz=lC;function es(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return "{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.indexOf(e)>=0)return "[Circular]";t.seen.push(e);let o=Gt(r.map(a=>[a,e[a]]),t,zo),i=Gt(n.map(a=>[a,e[a]]),t,zo);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}V(es,"inspectObject");var Lp=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function uC(e,t){let r="";return Lp&&Lp in e&&(r=e[Lp]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${es(e,t)}`}V(uC,"inspectClass");function cC(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Gt(e,t)} ]`)}V(cC,"inspectArguments");var wz=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description"];function fC(e,t){let r=Object.getOwnPropertyNames(e).filter(s=>wz.indexOf(s)===-1),n=e.name;t.truncate-=n.length;let o="";typeof e.message=="string"?o=Br(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5;let i=Gt(r.map(s=>[s,e[s]]),t,zo);return `${n}${o}${i?` { ${i} }`:""}`}V(fC,"inspectObject");function dC([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}V(dC,"inspectAttribute");function zl(e,t){return Gt(e,t,dm,`
|
|
211
|
+
`)}V(zl,"inspectHTMLCollection");function dm(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),i=t.stylize(">","special"),s=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let a="";r.length>0&&(a+=" ",a+=Gt(r.map(u=>[u,e.getAttribute(u)]),t,dC," ")),t.truncate-=a.length;let l=t.truncate,c=zl(e.children,t);return c&&c.length>l&&(c=`${Uo}(${e.children.length})`),`${o}${a}${i}${c}${s}`}V(dm,"inspectHTML");var Ez=typeof Symbol=="function"&&typeof Symbol.for=="function",Bp=Ez?Symbol.for("chai/inspect"):"@@chai/inspect",No=!1;try{let e=fz();No=e.inspect?e.inspect.custom:!1;}catch{No=!1;}var w_=new WeakMap,E_={},__={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:sh,Number:sh,bigint:ah,BigInt:ah,string:lh,String:lh,function:ih,Function:ih,symbol:uh,Symbol:uh,Array:ZT,Date:eC,Map:nC,Set:sC,RegExp:oC,Promise:vz,WeakSet:(e,t)=>t.stylize("WeakSet{\u2026}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{\u2026}","special"),Arguments:cC,Int8Array:yr,Uint8Array:yr,Uint8ClampedArray:yr,Int16Array:yr,Uint16Array:yr,Int32Array:yr,Uint32Array:yr,Float32Array:yr,Float64Array:yr,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:fC,HTMLCollection:zl,NodeList:zl},_z=V((e,t,r)=>Bp in e&&typeof e[Bp]=="function"?e[Bp](t):No&&No in e&&typeof e[No]=="function"?e[No](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&w_.has(e.constructor)?w_.get(e.constructor)(e,t):E_[r]?E_[r](e,t):"","inspectCustom"),Sz=Object.prototype.toString;function Vl(e,t={}){let r=XT(t,Vl),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=Sz.call(e).slice(8,-1)),o in __)return __[o](e,r);if(n&&e){let s=_z(e,r,o);if(s)return typeof s=="string"?s:Vl(s,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?es(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?dm(e,r):"constructor"in e?e.constructor!==Object?uC(e,r):es(e,r):e===Object(e)?es(e,r):r.stylize(String(e),o)}V(Vl,"inspect");var Mt={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function xe(e,t,r,n){var o={colors:n,depth:typeof r>"u"?2:r,showHidden:t,truncate:Mt.truncateThreshold?Mt.truncateThreshold:1/0};return Vl(e,o)}V(xe,"inspect");function Ln(e){var t=xe(e),r=Object.prototype.toString.call(e);if(Mt.truncateThreshold&&t.length>=Mt.truncateThreshold){if(r==="[object Function]")return !e.name||e.name===""?"[Function]":"[Function: "+e.name+"]";if(r==="[object Array]")return "[ Array("+e.length+") ]";if(r==="[object Object]"){var n=Object.keys(e),o=n.length>2?n.splice(0,2).join(", ")+", ...":n.join(", ");return "{ Object ("+o+") }"}else return t}else return t}V(Ln,"objDisplay");function pm(e,t){var r=me(e,"negate"),n=me(e,"object"),o=t[3],i=gu(e,t),s=r?t[2]:t[1],a=me(e,"message");return typeof s=="function"&&(s=s()),s=s||"",s=s.replace(/#\{this\}/g,function(){return Ln(n)}).replace(/#\{act\}/g,function(){return Ln(i)}).replace(/#\{exp\}/g,function(){return Ln(o)}),a?a+": "+s:s}V(pm,"getMessage");function ur(e,t,r){var n=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),r=arguments.length===3?r:!0;for(var o in n)(r||o!=="object"&&o!=="ssfi"&&o!=="lockSsfi"&&o!="message")&&(t.__flags[o]=n[o]);}V(ur,"transferFlags");function ch(e){if(typeof e>"u")return "undefined";if(e===null)return "null";let t=e[Symbol.toStringTag];return typeof t=="string"?t:Object.prototype.toString.call(e).slice(8,-1)}V(ch,"type");function hm(){this._key="chai/deep-eql__"+Math.random()+Date.now();}V(hm,"FakeMap");hm.prototype={get:V(function(e){return e[this._key]},"get"),set:V(function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0});},"set")};var pC=typeof WeakMap=="function"?WeakMap:hm;function fh(e,t,r){if(!r||Un(e)||Un(t))return null;var n=r.get(e);if(n){var o=n.get(t);if(typeof o=="boolean")return o}return null}V(fh,"memoizeCompare");function Ji(e,t,r,n){if(!(!r||Un(e)||Un(t))){var o=r.get(e);o?o.set(t,n):(o=new pC,o.set(t,n),r.set(e,o));}}V(Ji,"memoizeSet");var hC=_s;function _s(e,t,r){if(r&&r.comparator)return dh(e,t,r);var n=mm(e,t);return n!==null?n:dh(e,t,r)}V(_s,"deepEqual");function mm(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?!0:Un(e)||Un(t)?!1:null}V(mm,"simpleEqual");function dh(e,t,r){r=r||{},r.memoize=r.memoize===!1?!1:r.memoize||new pC;var n=r&&r.comparator,o=fh(e,t,r.memoize);if(o!==null)return o;var i=fh(t,e,r.memoize);if(i!==null)return i;if(n){var s=n(e,t);if(s===!1||s===!0)return Ji(e,t,r.memoize,s),s;var a=mm(e,t);if(a!==null)return a}var l=ch(e);if(l!==ch(t))return Ji(e,t,r.memoize,!1),!1;Ji(e,t,r.memoize,!0);var c=mC(e,t,l,r);return Ji(e,t,r.memoize,c),c}V(dh,"extensiveDeepEqual");function mC(e,t,r,n){switch(r){case"String":case"Number":case"Boolean":case"Date":return _s(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return gm(e,t,["name","message","code"],n);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return cn(e,t,n);case"RegExp":return gC(e,t);case"Generator":return yC(e,t,n);case"DataView":return cn(new Uint8Array(e.buffer),new Uint8Array(t.buffer),n);case"ArrayBuffer":return cn(new Uint8Array(e),new Uint8Array(t),n);case"Set":return ph(e,t,n);case"Map":return ph(e,t,n);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 vC(e,t,n)}}V(mC,"extensiveDeepEqualByType");function gC(e,t){return e.toString()===t.toString()}V(gC,"regexpEqual");function ph(e,t,r){if(e.size!==t.size)return !1;if(e.size===0)return !0;var n=[],o=[];return e.forEach(V(function(i,s){n.push([i,s]);},"gatherEntries")),t.forEach(V(function(i,s){o.push([i,s]);},"gatherEntries")),cn(n.sort(),o.sort(),r)}V(ph,"entriesEqual");function cn(e,t,r){var n=e.length;if(n!==t.length)return !1;if(n===0)return !0;for(var o=-1;++o<n;)if(_s(e[o],t[o],r)===!1)return !1;return !0}V(cn,"iterableEqual");function yC(e,t,r){return cn(Hl(e),Hl(t),r)}V(yC,"generatorEqual");function bC(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}V(bC,"hasIteratorFunction");function hh(e){if(bC(e))try{return Hl(e[Symbol.iterator]())}catch{return []}return []}V(hh,"getIteratorEntries");function Hl(e){for(var t=e.next(),r=[t.value];t.done===!1;)t=e.next(),r.push(t.value);return r}V(Hl,"getGeneratorEntries");function mh(e){var t=[];for(var r in e)t.push(r);return t}V(mh,"getEnumerableKeys");function gh(e){for(var t=[],r=Object.getOwnPropertySymbols(e),n=0;n<r.length;n+=1){var o=r[n];Object.getOwnPropertyDescriptor(e,o).enumerable&&t.push(o);}return t}V(gh,"getEnumerableSymbols");function gm(e,t,r,n){var o=r.length;if(o===0)return !0;for(var i=0;i<o;i+=1)if(_s(e[r[i]],t[r[i]],n)===!1)return !1;return !0}V(gm,"keysEqual");function vC(e,t,r){var n=mh(e),o=mh(t),i=gh(e),s=gh(t);if(n=n.concat(i),o=o.concat(s),n.length&&n.length===o.length)return cn(yh(n).sort(),yh(o).sort())===!1?!1:gm(e,t,n,r);var a=hh(e),l=hh(t);return a.length&&a.length===l.length?(a.sort(),l.sort(),cn(a,l,r)):n.length===0&&a.length===0&&o.length===0&&l.length===0}V(vC,"objectEqual");function Un(e){return e===null||typeof e!="object"}V(Un,"isPrimitive");function yh(e){return e.map(V(function(t){return typeof t=="symbol"?t.toString():t},"mapSymbol"))}V(yh,"mapSymbols");function yu(e,t){return typeof e>"u"||e===null?!1:t in Object(e)}V(yu,"hasProperty");function wC(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(t=>{if(t==="constructor"||t==="__proto__"||t==="prototype")return {};let r=/^\[(\d+)\]$/.exec(t),n=null;return r?n={i:parseFloat(r[1])}:n={p:t.replace(/\\([.[\]])/g,"$1")},n})}V(wC,"parsePath");function bh(e,t,r){let n=e,o=null;r=typeof r>"u"?t.length:r;for(let i=0;i<r;i++){let s=t[i];n&&(typeof s.p>"u"?n=n[s.i]:n=n[s.p],i===r-1&&(o=n));}return o}V(bh,"internalGetPathValue");function ym(e,t){let r=wC(t),n=r[r.length-1],o={parent:r.length>1?bh(e,r,r.length-1):e,name:n.p||n.i,value:bh(e,r)};return o.exists=yu(o.parent,o.name),o}V(ym,"getPathInfo");function M(e,t,r,n){return me(this,"ssfi",r||M),me(this,"lockSsfi",n),me(this,"object",e),me(this,"message",t),me(this,"eql",Mt.deepEqual||hC),ri(this)}V(M,"Assertion");Object.defineProperty(M,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Mt.includeStack},set:function(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Mt.includeStack=e;}});Object.defineProperty(M,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Mt.showDiff},set:function(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Mt.showDiff=e;}});M.addProperty=function(e,t){bm(this.prototype,e,t);};M.addMethod=function(e,t){vm(this.prototype,e,t);};M.addChainableMethod=function(e,t,r){_m(this.prototype,e,t,r);};M.overwriteProperty=function(e,t){wm(this.prototype,e,t);};M.overwriteMethod=function(e,t){Em(this.prototype,e,t);};M.overwriteChainableMethod=function(e,t,r){Sm(this.prototype,e,t,r);};M.prototype.assert=function(e,t,r,n,o,i){var s=fm(this,arguments);if(i!==!1&&(i=!0),n===void 0&&o===void 0&&(i=!1),Mt.showDiff!==!0&&(i=!1),!s){t=pm(this,arguments);var a=gu(this,arguments),l={actual:a,expected:n,showDiff:i},c=xm(this,arguments);throw c&&(l.operator=c),new je(t,l,Mt.includeStack?this.assert:me(this,"ssfi"))}};Object.defineProperty(M.prototype,"_obj",{get:function(){return me(this,"object")},set:function(e){me(this,"object",e);}});function Ss(){return Mt.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}V(Ss,"isProxyEnabled");function bm(e,t,r){r=r===void 0?function(){}:r,Object.defineProperty(e,t,{get:V(function n(){!Ss()&&!me(this,"lockSsfi")&&me(this,"ssfi",n);var o=r.call(this);if(o!==void 0)return o;var i=new M;return ur(this,i),i},"propertyGetter"),configurable:!0});}V(bm,"addProperty");var Tz=Object.getOwnPropertyDescriptor(function(){},"length");function Ts(e,t,r){return Tz.configurable&&Object.defineProperty(e,"length",{get:function(){throw Error(r?"Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.':"Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')}}),e}V(Ts,"addLengthGuard");function EC(e){var t=Object.getOwnPropertyNames(e);function r(o){t.indexOf(o)===-1&&t.push(o);}V(r,"addProperty");for(var n=Object.getPrototypeOf(e);n!==null;)Object.getOwnPropertyNames(n).forEach(r),n=Object.getPrototypeOf(n);return t}V(EC,"getProperties");var S_=["__flags","__methods","_obj","assert"];function ri(e,t){return Ss()?new Proxy(e,{get:V(function r(n,o){if(typeof o=="string"&&Mt.proxyExcludedKeys.indexOf(o)===-1&&!Reflect.has(n,o)){if(t)throw Error("Invalid Chai property: "+t+"."+o+'. See docs for proper usage of "'+t+'".');var i=null,s=4;throw EC(n).forEach(function(a){if(!Object.prototype.hasOwnProperty(a)&&S_.indexOf(a)===-1){var l=_C(o,a,s);l<s&&(i=a,s=l);}}),Error(i!==null?"Invalid Chai property: "+o+'. Did you mean "'+i+'"?':"Invalid Chai property: "+o)}return S_.indexOf(o)===-1&&!me(n,"lockSsfi")&&me(n,"ssfi",r),Reflect.get(n,o)},"proxyGetter")}):e}V(ri,"proxify");function _C(e,t,r){if(Math.abs(e.length-t.length)>=r)return r;for(var n=[],o=0;o<=e.length;o++)n[o]=Array(t.length+1).fill(0),n[o][0]=o;for(var i=0;i<t.length;i++)n[0][i]=i;for(var o=1;o<=e.length;o++)for(var s=e.charCodeAt(o-1),i=1;i<=t.length;i++){if(Math.abs(o-i)>=r){n[o][i]=r;continue}n[o][i]=Math.min(n[o-1][i]+1,n[o][i-1]+1,n[o-1][i-1]+(s===t.charCodeAt(i-1)?0:1));}return n[e.length][t.length]}V(_C,"stringDistanceCapped");function vm(e,t,r){var n=V(function(){me(this,"lockSsfi")||me(this,"ssfi",n);var o=r.apply(this,arguments);if(o!==void 0)return o;var i=new M;return ur(this,i),i},"methodWrapper");Ts(n,t,!1),e[t]=ri(n,t);}V(vm,"addMethod");function wm(e,t,r){var n=Object.getOwnPropertyDescriptor(e,t),o=V(function(){},"_super");n&&typeof n.get=="function"&&(o=n.get),Object.defineProperty(e,t,{get:V(function i(){!Ss()&&!me(this,"lockSsfi")&&me(this,"ssfi",i);var s=me(this,"lockSsfi");me(this,"lockSsfi",!0);var a=r(o).call(this);if(me(this,"lockSsfi",s),a!==void 0)return a;var l=new M;return ur(this,l),l},"overwritingPropertyGetter"),configurable:!0});}V(wm,"overwriteProperty");function Em(e,t,r){var n=e[t],o=V(function(){throw new Error(t+" is not a function")},"_super");n&&typeof n=="function"&&(o=n);var i=V(function(){me(this,"lockSsfi")||me(this,"ssfi",i);var s=me(this,"lockSsfi");me(this,"lockSsfi",!0);var a=r(o).apply(this,arguments);if(me(this,"lockSsfi",s),a!==void 0)return a;var l=new M;return ur(this,l),l},"overwritingMethodWrapper");Ts(i,t,!1),e[t]=ri(i,t);}V(Em,"overwriteMethod");var Cz=typeof Object.setPrototypeOf=="function",T_=V(function(){},"testFn"),xz=Object.getOwnPropertyNames(T_).filter(function(e){var t=Object.getOwnPropertyDescriptor(T_,e);return typeof t!="object"?!0:!t.configurable}),Az=Function.prototype.call,Pz=Function.prototype.apply;function _m(e,t,r,n){typeof n!="function"&&(n=V(function(){},"chainingBehavior"));var o={method:r,chainingBehavior:n};e.__methods||(e.__methods={}),e.__methods[t]=o,Object.defineProperty(e,t,{get:V(function(){o.chainingBehavior.call(this);var i=V(function(){me(this,"lockSsfi")||me(this,"ssfi",i);var l=o.method.apply(this,arguments);if(l!==void 0)return l;var c=new M;return ur(this,c),c},"chainableMethodWrapper");if(Ts(i,t,!0),Cz){var s=Object.create(this);s.call=Az,s.apply=Pz,Object.setPrototypeOf(i,s);}else {var a=Object.getOwnPropertyNames(e);a.forEach(function(l){if(xz.indexOf(l)===-1){var c=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(i,l,c);}});}return ur(this,i),ri(i)},"chainableMethodGetter"),configurable:!0});}V(_m,"addChainableMethod");function Sm(e,t,r,n){var o=e.__methods[t],i=o.chainingBehavior;o.chainingBehavior=V(function(){var a=n(i).call(this);if(a!==void 0)return a;var l=new M;return ur(this,l),l},"overwritingChainableMethodGetter");var s=o.method;o.method=V(function(){var a=r(s).apply(this,arguments);if(a!==void 0)return a;var l=new M;return ur(this,l),l},"overwritingChainableMethodWrapper");}V(Sm,"overwriteChainableMethod");function Wl(e,t){return xe(e)<xe(t)?-1:1}V(Wl,"compareByInspect");function Tm(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}V(Tm,"getOwnEnumerablePropertySymbols");function Cm(e){return Object.keys(e).concat(Tm(e))}V(Cm,"getOwnEnumerableProperties");function SC(e){return e!==e}V(SC,"_isNaN");var Gl=Number.isNaN||SC;function TC(e){var t=Be(e),r=["Array","Object","Function"];return r.indexOf(t)!==-1}V(TC,"isObjectType");function xm(e,t){var r=me(e,"operator"),n=me(e,"negate"),o=t[3],i=n?t[2]:t[1];if(r)return r;if(typeof i=="function"&&(i=i()),i=i||"",!!i&&!/\shave\s/.test(i)){var s=TC(o);return /\snot\s/.test(i)?s?"notDeepStrictEqual":"notStrictEqual":s?"deepStrictEqual":"strictEqual"}}V(xm,"getOperator");function bu(e){return e.name}V(bu,"getName");function Kl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}V(Kl,"isRegExp");var{flag:D}=br;["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(e){M.addProperty(e);});M.addProperty("not",function(){D(this,"negate",!0);});M.addProperty("deep",function(){D(this,"deep",!0);});M.addProperty("nested",function(){D(this,"nested",!0);});M.addProperty("own",function(){D(this,"own",!0);});M.addProperty("ordered",function(){D(this,"ordered",!0);});M.addProperty("any",function(){D(this,"any",!0),D(this,"all",!1);});M.addProperty("all",function(){D(this,"all",!0),D(this,"any",!1);});var C_={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function Am(e,t){t&&D(this,"message",t),e=e.toLowerCase();var r=D(this,"object"),n=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ";let o=Be(r).toLowerCase();C_.function.includes(e)?this.assert(C_[e].includes(o),"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e):this.assert(e===o,"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e);}V(Am,"an");M.addChainableMethod("an",Am);M.addChainableMethod("a",Am);function CC(e,t){return Gl(e)&&Gl(t)||e===t}V(CC,"SameValueZero");function Cs(){D(this,"contains",!0);}V(Cs,"includeChainingBehavior");function xs(e,t){t&&D(this,"message",t);var r=D(this,"object"),n=Be(r).toLowerCase(),o=D(this,"message"),i=D(this,"negate"),s=D(this,"ssfi"),a=D(this,"deep"),l=a?"deep ":"",c=a?D(this,"eql"):CC;o=o?o+": ":"";var u=!1;switch(n){case"string":u=r.indexOf(e)!==-1;break;case"weakset":if(a)throw new je(o+"unable to use .deep.include with WeakSet",void 0,s);u=r.has(e);break;case"map":r.forEach(function(h){u=u||c(h,e);});break;case"set":a?r.forEach(function(h){u=u||c(h,e);}):u=r.has(e);break;case"array":a?u=r.some(function(h){return c(h,e)}):u=r.indexOf(e)!==-1;break;default:if(e!==Object(e))throw new je(o+"the given combination of arguments ("+n+" and "+Be(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 "+Be(e).toLowerCase(),void 0,s);var f=Object.keys(e),p=null,d=0;if(f.forEach(function(h){var m=new M(r);if(ur(this,m,!0),D(m,"lockSsfi",!0),!i||f.length===1){m.property(h,e[h]);return}try{m.property(h,e[h]);}catch(y){if(!qt.compatibleConstructor(y,je))throw y;p===null&&(p=y),d++;}},this),i&&f.length>1&&d===f.length)throw p;return}this.assert(u,"expected #{this} to "+l+"include "+xe(e),"expected #{this} to not "+l+"include "+xe(e));}V(xs,"include");M.addChainableMethod("include",xs,Cs);M.addChainableMethod("contain",xs,Cs);M.addChainableMethod("contains",xs,Cs);M.addChainableMethod("includes",xs,Cs);M.addProperty("ok",function(){this.assert(D(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy");});M.addProperty("true",function(){this.assert(D(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!D(this,"negate"));});M.addProperty("callable",function(){let e=D(this,"object"),t=D(this,"ssfi"),r=D(this,"message"),n=r?`${r}: `:"",o=D(this,"negate"),i=o?`${n}expected ${xe(e)} not to be a callable function`:`${n}expected ${xe(e)} to be a callable function`,s=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(Be(e));if(s&&o||!s&&!o)throw new je(i,void 0,t)});M.addProperty("false",function(){this.assert(D(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!D(this,"negate"));});M.addProperty("null",function(){this.assert(D(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null");});M.addProperty("undefined",function(){this.assert(D(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined");});M.addProperty("NaN",function(){this.assert(Gl(D(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN");});function Pm(){var e=D(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist");}V(Pm,"assertExist");M.addProperty("exist",Pm);M.addProperty("exists",Pm);M.addProperty("empty",function(){var e=D(this,"object"),t=D(this,"ssfi"),r=D(this,"message"),n;switch(r=r?r+": ":"",Be(e).toLowerCase()){case"array":case"string":n=e.length;break;case"map":case"set":n=e.size;break;case"weakmap":case"weakset":throw new je(r+".empty was passed a weak collection",void 0,t);case"function":var o=r+".empty was passed a function "+bu(e);throw new je(o.trim(),void 0,t);default:if(e!==Object(e))throw new je(r+".empty was passed non-string primitive "+xe(e),void 0,t);n=Object.keys(e).length;}this.assert(n===0,"expected #{this} to be empty","expected #{this} not to be empty");});function Om(){var e=D(this,"object"),t=Be(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments");}V(Om,"checkArguments");M.addProperty("arguments",Om);M.addProperty("Arguments",Om);function vu(e,t){t&&D(this,"message",t);var r=D(this,"object");if(D(this,"deep")){var n=D(this,"lockSsfi");D(this,"lockSsfi",!0),this.eql(e),D(this,"lockSsfi",n);}else this.assert(e===r,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0);}V(vu,"assertEqual");M.addMethod("equal",vu);M.addMethod("equals",vu);M.addMethod("eq",vu);function Rm(e,t){t&&D(this,"message",t);var r=D(this,"eql");this.assert(r(e,D(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0);}V(Rm,"assertEql");M.addMethod("eql",Rm);M.addMethod("eqls",Rm);function wu(e,t){t&&D(this,"message",t);var r=D(this,"object"),n=D(this,"doLength"),o=D(this,"message"),i=o?o+": ":"",s=D(this,"ssfi"),a=Be(r).toLowerCase(),l=Be(e).toLowerCase(),c,u=!0;if(n&&a!=="map"&&a!=="set"&&new M(r,o,s,!0).to.have.property("length"),!n&&a==="date"&&l!=="date")c=i+"the argument to above must be a date";else if(l!=="number"&&(n||a==="number"))c=i+"the argument to above must be a number";else if(!n&&a!=="date"&&a!=="number"){var f=a==="string"?"'"+r+"'":r;c=i+"expected "+f+" to be a number or a date";}else u=!1;if(u)throw new je(c,void 0,s);if(n){var p="length",d;a==="map"||a==="set"?(p="size",d=r.size):d=r.length,this.assert(d>e,"expected #{this} to have a "+p+" above #{exp} but got #{act}","expected #{this} to not have a "+p+" above #{exp}",e,d);}else this.assert(r>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e);}V(wu,"assertAbove");M.addMethod("above",wu);M.addMethod("gt",wu);M.addMethod("greaterThan",wu);function Eu(e,t){t&&D(this,"message",t);var r=D(this,"object"),n=D(this,"doLength"),o=D(this,"message"),i=o?o+": ":"",s=D(this,"ssfi"),a=Be(r).toLowerCase(),l=Be(e).toLowerCase(),c,u=!0;if(n&&a!=="map"&&a!=="set"&&new M(r,o,s,!0).to.have.property("length"),!n&&a==="date"&&l!=="date")c=i+"the argument to least must be a date";else if(l!=="number"&&(n||a==="number"))c=i+"the argument to least must be a number";else if(!n&&a!=="date"&&a!=="number"){var f=a==="string"?"'"+r+"'":r;c=i+"expected "+f+" to be a number or a date";}else u=!1;if(u)throw new je(c,void 0,s);if(n){var p="length",d;a==="map"||a==="set"?(p="size",d=r.size):d=r.length,this.assert(d>=e,"expected #{this} to have a "+p+" at least #{exp} but got #{act}","expected #{this} to have a "+p+" below #{exp}",e,d);}else this.assert(r>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e);}V(Eu,"assertLeast");M.addMethod("least",Eu);M.addMethod("gte",Eu);M.addMethod("greaterThanOrEqual",Eu);function _u(e,t){t&&D(this,"message",t);var r=D(this,"object"),n=D(this,"doLength"),o=D(this,"message"),i=o?o+": ":"",s=D(this,"ssfi"),a=Be(r).toLowerCase(),l=Be(e).toLowerCase(),c,u=!0;if(n&&a!=="map"&&a!=="set"&&new M(r,o,s,!0).to.have.property("length"),!n&&a==="date"&&l!=="date")c=i+"the argument to below must be a date";else if(l!=="number"&&(n||a==="number"))c=i+"the argument to below must be a number";else if(!n&&a!=="date"&&a!=="number"){var f=a==="string"?"'"+r+"'":r;c=i+"expected "+f+" to be a number or a date";}else u=!1;if(u)throw new je(c,void 0,s);if(n){var p="length",d;a==="map"||a==="set"?(p="size",d=r.size):d=r.length,this.assert(d<e,"expected #{this} to have a "+p+" below #{exp} but got #{act}","expected #{this} to not have a "+p+" below #{exp}",e,d);}else this.assert(r<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e);}V(_u,"assertBelow");M.addMethod("below",_u);M.addMethod("lt",_u);M.addMethod("lessThan",_u);function Su(e,t){t&&D(this,"message",t);var r=D(this,"object"),n=D(this,"doLength"),o=D(this,"message"),i=o?o+": ":"",s=D(this,"ssfi"),a=Be(r).toLowerCase(),l=Be(e).toLowerCase(),c,u=!0;if(n&&a!=="map"&&a!=="set"&&new M(r,o,s,!0).to.have.property("length"),!n&&a==="date"&&l!=="date")c=i+"the argument to most must be a date";else if(l!=="number"&&(n||a==="number"))c=i+"the argument to most must be a number";else if(!n&&a!=="date"&&a!=="number"){var f=a==="string"?"'"+r+"'":r;c=i+"expected "+f+" to be a number or a date";}else u=!1;if(u)throw new je(c,void 0,s);if(n){var p="length",d;a==="map"||a==="set"?(p="size",d=r.size):d=r.length,this.assert(d<=e,"expected #{this} to have a "+p+" at most #{exp} but got #{act}","expected #{this} to have a "+p+" above #{exp}",e,d);}else this.assert(r<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e);}V(Su,"assertMost");M.addMethod("most",Su);M.addMethod("lte",Su);M.addMethod("lessThanOrEqual",Su);M.addMethod("within",function(e,t,r){r&&D(this,"message",r);var n=D(this,"object"),o=D(this,"doLength"),i=D(this,"message"),s=i?i+": ":"",a=D(this,"ssfi"),l=Be(n).toLowerCase(),c=Be(e).toLowerCase(),u=Be(t).toLowerCase(),f,p=!0,d=c==="date"&&u==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(o&&l!=="map"&&l!=="set"&&new M(n,i,a,!0).to.have.property("length"),!o&&l==="date"&&(c!=="date"||u!=="date"))f=s+"the arguments to within must be dates";else if((c!=="number"||u!=="number")&&(o||l==="number"))f=s+"the arguments to within must be numbers";else if(!o&&l!=="date"&&l!=="number"){var h=l==="string"?"'"+n+"'":n;f=s+"expected "+h+" to be a number or a date";}else p=!1;if(p)throw new je(f,void 0,a);if(o){var m="length",y;l==="map"||l==="set"?(m="size",y=n.size):y=n.length,this.assert(y>=e&&y<=t,"expected #{this} to have a "+m+" within "+d,"expected #{this} to not have a "+m+" within "+d);}else this.assert(n>=e&&n<=t,"expected #{this} to be within "+d,"expected #{this} to not be within "+d);});function Mm(e,t){t&&D(this,"message",t);var r=D(this,"object"),n=D(this,"ssfi"),o=D(this,"message");try{var i=r instanceof e;}catch(a){throw a instanceof TypeError?(o=o?o+": ":"",new je(o+"The instanceof assertion needs a constructor but "+Be(e)+" was given.",void 0,n)):a}var s=bu(e);s==null&&(s="an unnamed constructor"),this.assert(i,"expected #{this} to be an instance of "+s,"expected #{this} to not be an instance of "+s);}V(Mm,"assertInstanceOf");M.addMethod("instanceof",Mm);M.addMethod("instanceOf",Mm);function Im(e,t,r){r&&D(this,"message",r);var n=D(this,"nested"),o=D(this,"own"),i=D(this,"message"),s=D(this,"object"),a=D(this,"ssfi"),l=typeof e;if(i=i?i+": ":"",n){if(l!=="string")throw new je(i+"the argument to property must be a string when using nested syntax",void 0,a)}else if(l!=="string"&&l!=="number"&&l!=="symbol")throw new je(i+"the argument to property must be a string, number, or symbol",void 0,a);if(n&&o)throw new je(i+'The "nested" and "own" flags cannot be combined.',void 0,a);if(s==null)throw new je(i+"Target cannot be null or undefined.",void 0,a);var c=D(this,"deep"),u=D(this,"negate"),f=n?ym(s,e):null,p=n?f.value:s[e],d=c?D(this,"eql"):(y,g)=>y===g,h="";c&&(h+="deep "),o&&(h+="own "),n&&(h+="nested "),h+="property ";var m;o?m=Object.prototype.hasOwnProperty.call(s,e):n?m=f.exists:m=yu(s,e),(!u||arguments.length===1)&&this.assert(m,"expected #{this} to have "+h+xe(e),"expected #{this} to not have "+h+xe(e)),arguments.length>1&&this.assert(m&&d(t,p),"expected #{this} to have "+h+xe(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+h+xe(e)+" of #{act}",t,p),D(this,"object",p);}V(Im,"assertProperty");M.addMethod("property",Im);function Nm(e,t,r){D(this,"own",!0),Im.apply(this,arguments);}V(Nm,"assertOwnProperty");M.addMethod("ownProperty",Nm);M.addMethod("haveOwnProperty",Nm);function jm(e,t,r){typeof t=="string"&&(r=t,t=null),r&&D(this,"message",r);var n=D(this,"object"),o=Object.getOwnPropertyDescriptor(Object(n),e),i=D(this,"eql");o&&t?this.assert(i(t,o),"expected the own property descriptor for "+xe(e)+" on #{this} to match "+xe(t)+", got "+xe(o),"expected the own property descriptor for "+xe(e)+" on #{this} to not match "+xe(t),t,o,!0):this.assert(o,"expected #{this} to have an own property descriptor for "+xe(e),"expected #{this} to not have an own property descriptor for "+xe(e)),D(this,"object",o);}V(jm,"assertOwnPropertyDescriptor");M.addMethod("ownPropertyDescriptor",jm);M.addMethod("haveOwnPropertyDescriptor",jm);function qm(){D(this,"doLength",!0);}V(qm,"assertLengthChain");function $m(e,t){t&&D(this,"message",t);var r=D(this,"object"),n=Be(r).toLowerCase(),o=D(this,"message"),i=D(this,"ssfi"),s="length",a;switch(n){case"map":case"set":s="size",a=r.size;break;default:new M(r,o,i,!0).to.have.property("length"),a=r.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);}V($m,"assertLength");M.addChainableMethod("length",$m,qm);M.addChainableMethod("lengthOf",$m,qm);function km(e,t){t&&D(this,"message",t);var r=D(this,"object");this.assert(e.exec(r),"expected #{this} to match "+e,"expected #{this} not to match "+e);}V(km,"assertMatch");M.addMethod("match",km);M.addMethod("matches",km);M.addMethod("string",function(e,t){t&&D(this,"message",t);var r=D(this,"object"),n=D(this,"message"),o=D(this,"ssfi");new M(r,n,o,!0).is.a("string"),this.assert(~r.indexOf(e),"expected #{this} to contain "+xe(e),"expected #{this} to not contain "+xe(e));});function Dm(e){var t=D(this,"object"),r=Be(t),n=Be(e),o=D(this,"ssfi"),i=D(this,"deep"),s,a="",l,c=!0,u=D(this,"message");u=u?u+": ":"";var f=u+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(r==="Map"||r==="Set")a=i?"deeply ":"",l=[],t.forEach(function(b,E){l.push(E);}),n!=="Array"&&(e=Array.prototype.slice.call(arguments));else {switch(l=Cm(t),n){case"Array":if(arguments.length>1)throw new je(f,void 0,o);break;case"Object":if(arguments.length>1)throw new je(f,void 0,o);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments);}e=e.map(function(b){return typeof b=="symbol"?b:String(b)});}if(!e.length)throw new je(u+"keys required",void 0,o);var p=e.length,d=D(this,"any"),h=D(this,"all"),m=e,y=i?D(this,"eql"):(b,E)=>b===E;if(!d&&!h&&(h=!0),d&&(c=m.some(function(b){return l.some(function(E){return y(b,E)})})),h&&(c=m.every(function(b){return l.some(function(E){return y(b,E)})}),D(this,"contains")||(c=c&&e.length==l.length)),p>1){e=e.map(function(b){return xe(b)});var g=e.pop();h&&(s=e.join(", ")+", and "+g),d&&(s=e.join(", ")+", or "+g);}else s=xe(e[0]);s=(p>1?"keys ":"key ")+s,s=(D(this,"contains")?"contain ":"have ")+s,this.assert(c,"expected #{this} to "+a+s,"expected #{this} to not "+a+s,m.slice(0).sort(Wl),l.sort(Wl),!0);}V(Dm,"assertKeys");M.addMethod("keys",Dm);M.addMethod("key",Dm);function Tu(e,t,r){r&&D(this,"message",r);var n=D(this,"object"),o=D(this,"ssfi"),i=D(this,"message"),s=D(this,"negate")||!1;new M(n,i,o,!0).is.a("function"),(Kl(e)||typeof e=="string")&&(t=e,e=null);let a,l=!1;try{n();}catch(b){l=!0,a=b;}var c=e===void 0&&t===void 0,u=!!(e&&t),f=!1,p=!1;if(c||!c&&!s){var d="an error";e instanceof Error?d="#{exp}":e&&(d=qt.getConstructorName(e));let b=a;if(a instanceof Error)b=a.toString();else if(typeof a=="string")b=a;else if(a&&(typeof a=="object"||typeof a=="function"))try{b=qt.getConstructorName(a);}catch{}this.assert(l,"expected #{this} to throw "+d,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),b);}if(e&&a){if(e instanceof Error){var h=qt.compatibleInstance(a,e);h===s&&(u&&s?f=!0:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a&&!s?" but #{act} was thrown":""),e.toString(),a.toString()));}var m=qt.compatibleConstructor(a,e);m===s&&(u&&s?f=!0:this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&qt.getConstructorName(e),a instanceof Error?a.toString():a&&qt.getConstructorName(a)));}if(a&&t!==void 0&&t!==null){var y="including";Kl(t)&&(y="matching");var g=qt.compatibleMessage(a,t);g===s&&(u&&s?p=!0:this.assert(s,"expected #{this} to throw error "+y+" #{exp} but got #{act}","expected #{this} to throw error not "+y+" #{exp}",t,qt.getMessage(a)));}f&&p&&this.assert(s,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&qt.getConstructorName(e),a instanceof Error?a.toString():a&&qt.getConstructorName(a)),D(this,"object",a);}V(Tu,"assertThrows");M.addMethod("throw",Tu);M.addMethod("throws",Tu);M.addMethod("Throw",Tu);function Lm(e,t){t&&D(this,"message",t);var r=D(this,"object"),n=D(this,"itself"),o=typeof r=="function"&&!n?r.prototype[e]:r[e];this.assert(typeof o=="function","expected #{this} to respond to "+xe(e),"expected #{this} to not respond to "+xe(e));}V(Lm,"respondTo");M.addMethod("respondTo",Lm);M.addMethod("respondsTo",Lm);M.addProperty("itself",function(){D(this,"itself",!0);});function Bm(e,t){t&&D(this,"message",t);var r=D(this,"object"),n=e(r);this.assert(n,"expected #{this} to satisfy "+Ln(e),"expected #{this} to not satisfy"+Ln(e),!D(this,"negate"),n);}V(Bm,"satisfy");M.addMethod("satisfy",Bm);M.addMethod("satisfies",Bm);function Fm(e,t,r){r&&D(this,"message",r);var n=D(this,"object"),o=D(this,"message"),i=D(this,"ssfi");if(new M(n,o,i,!0).is.a("number"),typeof e!="number"||typeof t!="number"){o=o?o+": ":"";var s=t===void 0?", and a delta is required":"";throw new je(o+"the arguments to closeTo or approximately must be numbers"+s,void 0,i)}this.assert(Math.abs(n-e)<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t);}V(Fm,"closeTo");M.addMethod("closeTo",Fm);M.addMethod("approximately",Fm);function xC(e,t,r,n,o){let i=Array.from(t),s=Array.from(e);if(!n){if(s.length!==i.length)return !1;i=i.slice();}return s.every(function(a,l){if(o)return r?r(a,i[l]):a===i[l];if(!r){var c=i.indexOf(a);return c===-1?!1:(n||i.splice(c,1),!0)}return i.some(function(u,f){return r(a,u)?(n||i.splice(f,1),!0):!1})})}V(xC,"isSubsetOf");M.addMethod("members",function(e,t){t&&D(this,"message",t);var r=D(this,"object"),n=D(this,"message"),o=D(this,"ssfi");new M(r,n,o,!0).to.be.iterable,new M(e,n,o,!0).to.be.iterable;var i=D(this,"contains"),s=D(this,"ordered"),a,l,c;i?(a=s?"an ordered superset":"a superset",l="expected #{this} to be "+a+" of #{exp}",c="expected #{this} to not be "+a+" of #{exp}"):(a=s?"ordered members":"members",l="expected #{this} to have the same "+a+" as #{exp}",c="expected #{this} to not have the same "+a+" as #{exp}");var u=D(this,"deep")?D(this,"eql"):void 0;this.assert(xC(e,r,u,i,s),l,c,e,r,!0);});M.addProperty("iterable",function(e){e&&D(this,"message",e);var t=D(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t);});function AC(e,t){t&&D(this,"message",t);var r=D(this,"object"),n=D(this,"message"),o=D(this,"ssfi"),i=D(this,"contains"),s=D(this,"deep"),a=D(this,"eql");new M(e,n,o,!0).to.be.an("array"),i?this.assert(e.some(function(l){return r.indexOf(l)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,r):s?this.assert(e.some(function(l){return a(r,l)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,r):this.assert(e.indexOf(r)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,r);}V(AC,"oneOf");M.addMethod("oneOf",AC);function Um(e,t,r){r&&D(this,"message",r);var n=D(this,"object"),o=D(this,"message"),i=D(this,"ssfi");new M(n,o,i,!0).is.a("function");var s;t?(new M(e,o,i,!0).to.have.property(t),s=e[t]):(new M(e,o,i,!0).is.a("function"),s=e()),n();var a=t==null?e():e[t],l=t==null?s:"."+t;D(this,"deltaMsgObj",l),D(this,"initialDeltaValue",s),D(this,"finalDeltaValue",a),D(this,"deltaBehavior","change"),D(this,"realDelta",a!==s),this.assert(s!==a,"expected "+l+" to change","expected "+l+" to not change");}V(Um,"assertChanges");M.addMethod("change",Um);M.addMethod("changes",Um);function zm(e,t,r){r&&D(this,"message",r);var n=D(this,"object"),o=D(this,"message"),i=D(this,"ssfi");new M(n,o,i,!0).is.a("function");var s;t?(new M(e,o,i,!0).to.have.property(t),s=e[t]):(new M(e,o,i,!0).is.a("function"),s=e()),new M(s,o,i,!0).is.a("number"),n();var a=t==null?e():e[t],l=t==null?s:"."+t;D(this,"deltaMsgObj",l),D(this,"initialDeltaValue",s),D(this,"finalDeltaValue",a),D(this,"deltaBehavior","increase"),D(this,"realDelta",a-s),this.assert(a-s>0,"expected "+l+" to increase","expected "+l+" to not increase");}V(zm,"assertIncreases");M.addMethod("increase",zm);M.addMethod("increases",zm);function Vm(e,t,r){r&&D(this,"message",r);var n=D(this,"object"),o=D(this,"message"),i=D(this,"ssfi");new M(n,o,i,!0).is.a("function");var s;t?(new M(e,o,i,!0).to.have.property(t),s=e[t]):(new M(e,o,i,!0).is.a("function"),s=e()),new M(s,o,i,!0).is.a("number"),n();var a=t==null?e():e[t],l=t==null?s:"."+t;D(this,"deltaMsgObj",l),D(this,"initialDeltaValue",s),D(this,"finalDeltaValue",a),D(this,"deltaBehavior","decrease"),D(this,"realDelta",s-a),this.assert(a-s<0,"expected "+l+" to decrease","expected "+l+" to not decrease");}V(Vm,"assertDecreases");M.addMethod("decrease",Vm);M.addMethod("decreases",Vm);function PC(e,t){t&&D(this,"message",t);var r=D(this,"deltaMsgObj"),n=D(this,"initialDeltaValue"),o=D(this,"finalDeltaValue"),i=D(this,"deltaBehavior"),s=D(this,"realDelta"),a;i==="change"?a=Math.abs(o-n)===Math.abs(e):a=s===Math.abs(e),this.assert(a,"expected "+r+" to "+i+" by "+e,"expected "+r+" to not "+i+" by "+e);}V(PC,"assertDelta");M.addMethod("by",PC);M.addProperty("extensible",function(){var e=D(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible");});M.addProperty("sealed",function(){var e=D(this,"object"),t=e===Object(e)?Object.isSealed(e):!0;this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed");});M.addProperty("frozen",function(){var e=D(this,"object"),t=e===Object(e)?Object.isFrozen(e):!0;this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen");});M.addProperty("finite",function(e){var t=D(this,"object");this.assert(typeof t=="number"&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number");});function Bn(e,t){return new M(e,t)}V(Bn,"expect");Bn.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"expect.fail()",new je(r,{actual:e,expected:t,operator:n},Bn.fail)};var OC={};cm(OC,{Should:()=>Rz,should:()=>Oz});function Hm(){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 M(this.valueOf(),null,e):new M(this,null,e)}V(e,"shouldGetter");function t(n){Object.defineProperty(this,"should",{value:n,enumerable:!0,configurable:!0,writable:!0});}V(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});var r={};return r.fail=function(n,o,i,s){throw arguments.length<2&&(i=n,n=void 0),i=i||"should.fail()",new je(i,{actual:n,expected:o,operator:s},r.fail)},r.equal=function(n,o,i){new M(n,i).to.equal(o);},r.Throw=function(n,o,i,s){new M(n,s).to.Throw(o,i);},r.exist=function(n,o){new M(n,o).to.exist;},r.not={},r.not.equal=function(n,o,i){new M(n,i).to.not.equal(o);},r.not.Throw=function(n,o,i,s){new M(n,s).to.not.Throw(o,i);},r.not.exist=function(n,o){new M(n,o).to.not.exist;},r.throw=r.Throw,r.not.throw=r.not.Throw,r}V(Hm,"loadShould");var Oz=Hm,Rz=Hm;function R(e,t){var r=new M(null,null,R,!0);r.assert(e,t,"[ negation message unavailable ]");}V(R,"assert");R.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"assert.fail()",new je(r,{actual:e,expected:t,operator:n},R.fail)};R.isOk=function(e,t){new M(e,t,R.isOk,!0).is.ok;};R.isNotOk=function(e,t){new M(e,t,R.isNotOk,!0).is.not.ok;};R.equal=function(e,t,r){var n=new M(e,r,R.equal,!0);n.assert(t==me(n,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0);};R.notEqual=function(e,t,r){var n=new M(e,r,R.notEqual,!0);n.assert(t!=me(n,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0);};R.strictEqual=function(e,t,r){new M(e,r,R.strictEqual,!0).to.equal(t);};R.notStrictEqual=function(e,t,r){new M(e,r,R.notStrictEqual,!0).to.not.equal(t);};R.deepEqual=R.deepStrictEqual=function(e,t,r){new M(e,r,R.deepEqual,!0).to.eql(t);};R.notDeepEqual=function(e,t,r){new M(e,r,R.notDeepEqual,!0).to.not.eql(t);};R.isAbove=function(e,t,r){new M(e,r,R.isAbove,!0).to.be.above(t);};R.isAtLeast=function(e,t,r){new M(e,r,R.isAtLeast,!0).to.be.least(t);};R.isBelow=function(e,t,r){new M(e,r,R.isBelow,!0).to.be.below(t);};R.isAtMost=function(e,t,r){new M(e,r,R.isAtMost,!0).to.be.most(t);};R.isTrue=function(e,t){new M(e,t,R.isTrue,!0).is.true;};R.isNotTrue=function(e,t){new M(e,t,R.isNotTrue,!0).to.not.equal(!0);};R.isFalse=function(e,t){new M(e,t,R.isFalse,!0).is.false;};R.isNotFalse=function(e,t){new M(e,t,R.isNotFalse,!0).to.not.equal(!1);};R.isNull=function(e,t){new M(e,t,R.isNull,!0).to.equal(null);};R.isNotNull=function(e,t){new M(e,t,R.isNotNull,!0).to.not.equal(null);};R.isNaN=function(e,t){new M(e,t,R.isNaN,!0).to.be.NaN;};R.isNotNaN=function(e,t){new M(e,t,R.isNotNaN,!0).not.to.be.NaN;};R.exists=function(e,t){new M(e,t,R.exists,!0).to.exist;};R.notExists=function(e,t){new M(e,t,R.notExists,!0).to.not.exist;};R.isUndefined=function(e,t){new M(e,t,R.isUndefined,!0).to.equal(void 0);};R.isDefined=function(e,t){new M(e,t,R.isDefined,!0).to.not.equal(void 0);};R.isCallable=function(e,t){new M(e,t,R.isCallable,!0).is.callable;};R.isNotCallable=function(e,t){new M(e,t,R.isNotCallable,!0).is.not.callable;};R.isObject=function(e,t){new M(e,t,R.isObject,!0).to.be.a("object");};R.isNotObject=function(e,t){new M(e,t,R.isNotObject,!0).to.not.be.a("object");};R.isArray=function(e,t){new M(e,t,R.isArray,!0).to.be.an("array");};R.isNotArray=function(e,t){new M(e,t,R.isNotArray,!0).to.not.be.an("array");};R.isString=function(e,t){new M(e,t,R.isString,!0).to.be.a("string");};R.isNotString=function(e,t){new M(e,t,R.isNotString,!0).to.not.be.a("string");};R.isNumber=function(e,t){new M(e,t,R.isNumber,!0).to.be.a("number");};R.isNotNumber=function(e,t){new M(e,t,R.isNotNumber,!0).to.not.be.a("number");};R.isFinite=function(e,t){new M(e,t,R.isFinite,!0).to.be.finite;};R.isBoolean=function(e,t){new M(e,t,R.isBoolean,!0).to.be.a("boolean");};R.isNotBoolean=function(e,t){new M(e,t,R.isNotBoolean,!0).to.not.be.a("boolean");};R.typeOf=function(e,t,r){new M(e,r,R.typeOf,!0).to.be.a(t);};R.notTypeOf=function(e,t,r){new M(e,r,R.notTypeOf,!0).to.not.be.a(t);};R.instanceOf=function(e,t,r){new M(e,r,R.instanceOf,!0).to.be.instanceOf(t);};R.notInstanceOf=function(e,t,r){new M(e,r,R.notInstanceOf,!0).to.not.be.instanceOf(t);};R.include=function(e,t,r){new M(e,r,R.include,!0).include(t);};R.notInclude=function(e,t,r){new M(e,r,R.notInclude,!0).not.include(t);};R.deepInclude=function(e,t,r){new M(e,r,R.deepInclude,!0).deep.include(t);};R.notDeepInclude=function(e,t,r){new M(e,r,R.notDeepInclude,!0).not.deep.include(t);};R.nestedInclude=function(e,t,r){new M(e,r,R.nestedInclude,!0).nested.include(t);};R.notNestedInclude=function(e,t,r){new M(e,r,R.notNestedInclude,!0).not.nested.include(t);};R.deepNestedInclude=function(e,t,r){new M(e,r,R.deepNestedInclude,!0).deep.nested.include(t);};R.notDeepNestedInclude=function(e,t,r){new M(e,r,R.notDeepNestedInclude,!0).not.deep.nested.include(t);};R.ownInclude=function(e,t,r){new M(e,r,R.ownInclude,!0).own.include(t);};R.notOwnInclude=function(e,t,r){new M(e,r,R.notOwnInclude,!0).not.own.include(t);};R.deepOwnInclude=function(e,t,r){new M(e,r,R.deepOwnInclude,!0).deep.own.include(t);};R.notDeepOwnInclude=function(e,t,r){new M(e,r,R.notDeepOwnInclude,!0).not.deep.own.include(t);};R.match=function(e,t,r){new M(e,r,R.match,!0).to.match(t);};R.notMatch=function(e,t,r){new M(e,r,R.notMatch,!0).to.not.match(t);};R.property=function(e,t,r){new M(e,r,R.property,!0).to.have.property(t);};R.notProperty=function(e,t,r){new M(e,r,R.notProperty,!0).to.not.have.property(t);};R.propertyVal=function(e,t,r,n){new M(e,n,R.propertyVal,!0).to.have.property(t,r);};R.notPropertyVal=function(e,t,r,n){new M(e,n,R.notPropertyVal,!0).to.not.have.property(t,r);};R.deepPropertyVal=function(e,t,r,n){new M(e,n,R.deepPropertyVal,!0).to.have.deep.property(t,r);};R.notDeepPropertyVal=function(e,t,r,n){new M(e,n,R.notDeepPropertyVal,!0).to.not.have.deep.property(t,r);};R.ownProperty=function(e,t,r){new M(e,r,R.ownProperty,!0).to.have.own.property(t);};R.notOwnProperty=function(e,t,r){new M(e,r,R.notOwnProperty,!0).to.not.have.own.property(t);};R.ownPropertyVal=function(e,t,r,n){new M(e,n,R.ownPropertyVal,!0).to.have.own.property(t,r);};R.notOwnPropertyVal=function(e,t,r,n){new M(e,n,R.notOwnPropertyVal,!0).to.not.have.own.property(t,r);};R.deepOwnPropertyVal=function(e,t,r,n){new M(e,n,R.deepOwnPropertyVal,!0).to.have.deep.own.property(t,r);};R.notDeepOwnPropertyVal=function(e,t,r,n){new M(e,n,R.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,r);};R.nestedProperty=function(e,t,r){new M(e,r,R.nestedProperty,!0).to.have.nested.property(t);};R.notNestedProperty=function(e,t,r){new M(e,r,R.notNestedProperty,!0).to.not.have.nested.property(t);};R.nestedPropertyVal=function(e,t,r,n){new M(e,n,R.nestedPropertyVal,!0).to.have.nested.property(t,r);};R.notNestedPropertyVal=function(e,t,r,n){new M(e,n,R.notNestedPropertyVal,!0).to.not.have.nested.property(t,r);};R.deepNestedPropertyVal=function(e,t,r,n){new M(e,n,R.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,r);};R.notDeepNestedPropertyVal=function(e,t,r,n){new M(e,n,R.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,r);};R.lengthOf=function(e,t,r){new M(e,r,R.lengthOf,!0).to.have.lengthOf(t);};R.hasAnyKeys=function(e,t,r){new M(e,r,R.hasAnyKeys,!0).to.have.any.keys(t);};R.hasAllKeys=function(e,t,r){new M(e,r,R.hasAllKeys,!0).to.have.all.keys(t);};R.containsAllKeys=function(e,t,r){new M(e,r,R.containsAllKeys,!0).to.contain.all.keys(t);};R.doesNotHaveAnyKeys=function(e,t,r){new M(e,r,R.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t);};R.doesNotHaveAllKeys=function(e,t,r){new M(e,r,R.doesNotHaveAllKeys,!0).to.not.have.all.keys(t);};R.hasAnyDeepKeys=function(e,t,r){new M(e,r,R.hasAnyDeepKeys,!0).to.have.any.deep.keys(t);};R.hasAllDeepKeys=function(e,t,r){new M(e,r,R.hasAllDeepKeys,!0).to.have.all.deep.keys(t);};R.containsAllDeepKeys=function(e,t,r){new M(e,r,R.containsAllDeepKeys,!0).to.contain.all.deep.keys(t);};R.doesNotHaveAnyDeepKeys=function(e,t,r){new M(e,r,R.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t);};R.doesNotHaveAllDeepKeys=function(e,t,r){new M(e,r,R.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t);};R.throws=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null);var o=new M(e,n,R.throws,!0).to.throw(t,r);return me(o,"object")};R.doesNotThrow=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null),new M(e,n,R.doesNotThrow,!0).to.not.throw(t,r);};R.operator=function(e,t,r,n){var o;switch(t){case"==":o=e==r;break;case"===":o=e===r;break;case">":o=e>r;break;case">=":o=e>=r;break;case"<":o=e<r;break;case"<=":o=e<=r;break;case"!=":o=e!=r;break;case"!==":o=e!==r;break;default:throw n=n&&n+": ",new je(n+'Invalid operator "'+t+'"',void 0,R.operator)}var i=new M(o,n,R.operator,!0);i.assert(me(i,"object")===!0,"expected "+xe(e)+" to be "+t+" "+xe(r),"expected "+xe(e)+" to not be "+t+" "+xe(r));};R.closeTo=function(e,t,r,n){new M(e,n,R.closeTo,!0).to.be.closeTo(t,r);};R.approximately=function(e,t,r,n){new M(e,n,R.approximately,!0).to.be.approximately(t,r);};R.sameMembers=function(e,t,r){new M(e,r,R.sameMembers,!0).to.have.same.members(t);};R.notSameMembers=function(e,t,r){new M(e,r,R.notSameMembers,!0).to.not.have.same.members(t);};R.sameDeepMembers=function(e,t,r){new M(e,r,R.sameDeepMembers,!0).to.have.same.deep.members(t);};R.notSameDeepMembers=function(e,t,r){new M(e,r,R.notSameDeepMembers,!0).to.not.have.same.deep.members(t);};R.sameOrderedMembers=function(e,t,r){new M(e,r,R.sameOrderedMembers,!0).to.have.same.ordered.members(t);};R.notSameOrderedMembers=function(e,t,r){new M(e,r,R.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t);};R.sameDeepOrderedMembers=function(e,t,r){new M(e,r,R.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t);};R.notSameDeepOrderedMembers=function(e,t,r){new M(e,r,R.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t);};R.includeMembers=function(e,t,r){new M(e,r,R.includeMembers,!0).to.include.members(t);};R.notIncludeMembers=function(e,t,r){new M(e,r,R.notIncludeMembers,!0).to.not.include.members(t);};R.includeDeepMembers=function(e,t,r){new M(e,r,R.includeDeepMembers,!0).to.include.deep.members(t);};R.notIncludeDeepMembers=function(e,t,r){new M(e,r,R.notIncludeDeepMembers,!0).to.not.include.deep.members(t);};R.includeOrderedMembers=function(e,t,r){new M(e,r,R.includeOrderedMembers,!0).to.include.ordered.members(t);};R.notIncludeOrderedMembers=function(e,t,r){new M(e,r,R.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t);};R.includeDeepOrderedMembers=function(e,t,r){new M(e,r,R.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t);};R.notIncludeDeepOrderedMembers=function(e,t,r){new M(e,r,R.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t);};R.oneOf=function(e,t,r){new M(e,r,R.oneOf,!0).to.be.oneOf(t);};R.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${xe(e)} to be an iterable`:`expected ${xe(e)} to be an iterable`,new je(t,void 0,R.isIterable)};R.changes=function(e,t,r,n){arguments.length===3&&typeof t=="function"&&(n=r,r=null),new M(e,n,R.changes,!0).to.change(t,r);};R.changesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var i=n;n=r,o=i;}else arguments.length===3&&(n=r,r=null);new M(e,o,R.changesBy,!0).to.change(t,r).by(n);};R.doesNotChange=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new M(e,n,R.doesNotChange,!0).to.not.change(t,r)};R.changesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var i=n;n=r,o=i;}else arguments.length===3&&(n=r,r=null);new M(e,o,R.changesButNotBy,!0).to.change(t,r).but.not.by(n);};R.increases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new M(e,n,R.increases,!0).to.increase(t,r)};R.increasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var i=n;n=r,o=i;}else arguments.length===3&&(n=r,r=null);new M(e,o,R.increasesBy,!0).to.increase(t,r).by(n);};R.doesNotIncrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new M(e,n,R.doesNotIncrease,!0).to.not.increase(t,r)};R.increasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var i=n;n=r,o=i;}else arguments.length===3&&(n=r,r=null);new M(e,o,R.increasesButNotBy,!0).to.increase(t,r).but.not.by(n);};R.decreases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new M(e,n,R.decreases,!0).to.decrease(t,r)};R.decreasesBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var i=n;n=r,o=i;}else arguments.length===3&&(n=r,r=null);new M(e,o,R.decreasesBy,!0).to.decrease(t,r).by(n);};R.doesNotDecrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new M(e,n,R.doesNotDecrease,!0).to.not.decrease(t,r)};R.doesNotDecreaseBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var i=n;n=r,o=i;}else arguments.length===3&&(n=r,r=null);return new M(e,o,R.doesNotDecreaseBy,!0).to.not.decrease(t,r).by(n)};R.decreasesButNotBy=function(e,t,r,n,o){if(arguments.length===4&&typeof t=="function"){var i=n;n=r,o=i;}else arguments.length===3&&(n=r,r=null);new M(e,o,R.decreasesButNotBy,!0).to.decrease(t,r).but.not.by(n);};R.ifError=function(e){if(e)throw e};R.isExtensible=function(e,t){new M(e,t,R.isExtensible,!0).to.be.extensible;};R.isNotExtensible=function(e,t){new M(e,t,R.isNotExtensible,!0).to.not.be.extensible;};R.isSealed=function(e,t){new M(e,t,R.isSealed,!0).to.be.sealed;};R.isNotSealed=function(e,t){new M(e,t,R.isNotSealed,!0).to.not.be.sealed;};R.isFrozen=function(e,t){new M(e,t,R.isFrozen,!0).to.be.frozen;};R.isNotFrozen=function(e,t){new M(e,t,R.isNotFrozen,!0).to.not.be.frozen;};R.isEmpty=function(e,t){new M(e,t,R.isEmpty,!0).to.be.empty;};R.isNotEmpty=function(e,t){new M(e,t,R.isNotEmpty,!0).to.not.be.empty;};V(function e(t,r){return R[r]=R[t],e},"alias")("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");var x_=[];function ts(e){let t={AssertionError:je,util:br,config:Mt,expect:Bn,assert:R,Assertion:M,...OC};return ~x_.indexOf(e)||(e(t,br),x_.push(e)),t}V(ts,"use");var RC={};nm(RC,{toBeChecked:()=>bx,toBeDisabled:()=>cx,toBeEmpty:()=>YC,toBeEmptyDOMElement:()=>JC,toBeEnabled:()=>fx,toBeInTheDOM:()=>Eh,toBeInTheDocument:()=>KC,toBeInvalid:()=>hx,toBePartiallyChecked:()=>wx,toBeRequired:()=>dx,toBeValid:()=>mx,toBeVisible:()=>ix,toContainElement:()=>_h,toContainHTML:()=>XC,toHaveAccessibleDescription:()=>Sh,toHaveAccessibleErrorMessage:()=>ZC,toHaveAccessibleName:()=>Ch,toHaveAttribute:()=>ex,toHaveClass:()=>tx,toHaveDescription:()=>Ex,toHaveDisplayValue:()=>yx,toHaveErrorMessage:()=>_x,toHaveFocus:()=>rx,toHaveFormValues:()=>nx,toHaveRole:()=>Th,toHaveStyle:()=>xh,toHaveTextContent:()=>QC,toHaveValue:()=>gx});var A_=kt(xT(),1);function MC(e){Object.defineProperty(e,"__esModule",{value:!0,configurable:!0});}function Wm(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}var IC={};MC(IC);Wm(IC,"default",()=>NC);var NC=class extends Error{constructor(e,t,r,n,o){super(e+":"+r+":"+n+": "+t),this.reason=t,this.filename=e,this.line=r,this.column=n,this.source=o;}},jC={};MC(jC);Wm(jC,"default",()=>qC);var qC=class{constructor(e,t,r){this.start=e,this.end=t,this.source=r;}},Mz={};Wm(Mz,"CssTypes",()=>et);var et;(function(e){e.stylesheet="stylesheet",e.rule="rule",e.declaration="declaration",e.comment="comment",e.container="container",e.charset="charset",e.document="document",e.customMedia="custom-media",e.fontFace="font-face",e.host="host",e.import="import",e.keyframes="keyframes",e.keyframe="keyframe",e.layer="layer",e.media="media",e.namespace="namespace",e.page="page",e.startingStyle="starting-style",e.supports="supports";})(et||(et={}));var Fp=/\/\*[^]*?(?:\*\/|$)/g,Iz=(e,t)=>{t=t||{};let r=1,n=1;function o(K){let G=K.match(/\n/g);G&&(r+=G.length);let J=K.lastIndexOf(`
|
|
212
|
+
`);n=~J?K.length-J:n+K.length;}function i(){let K={line:r,column:n};return function(G){return G.position=new qC(K,{line:r,column:n},t?.source||""),d(),G}}let s=[];function a(K){let G=new NC(t?.source||"",K,r,n,e);if(t?.silent)s.push(G);else throw G}function l(){let K=f();return {type:et.stylesheet,stylesheet:{source:t?.source,rules:K,parsingErrors:s}}}function c(){return p(/^{\s*/)}function u(){return p(/^}/)}function f(){let K,G=[];for(d(),h(G);e.length&&e.charAt(0)!=="}"&&(K=ae()||ue());)K&&(G.push(K),h(G));return G}function p(K){let G=K.exec(e);if(!G)return;let J=G[0];return o(J),e=e.slice(J.length),G}function d(){p(/^\s*/);}function h(K){let G;for(K=K||[];G=m();)G&&K.push(G);return K}function m(){let K=i();if(e.charAt(0)!=="/"||e.charAt(1)!=="*")return;let G=p(/^\/\*[^]*?\*\//);return G?K({type:et.comment,comment:G[0].slice(2,-2)}):a("End of comment missing")}function y(K,G,J){let ne=G+1,se=!1,fe=K.indexOf(")",ne);for(;!se&&fe!==-1;){let Re=K.indexOf("(",ne);Re!==-1&&Re<fe?(ne=y(K,Re+1)+1,fe=K.indexOf(")",ne)):se=!0;}return se&&fe!==-1?fe:-1}function g(){let K=p(/^([^{]+)/);if(!K)return;let G=Vt(K[0]).replace(Fp,"");if(G.indexOf(",")===-1)return [G];let J=0,ne=G.indexOf("(",J);for(;ne!==-1;){let se=y(G,ne);if(se===-1)break;J=se+1,G=G.substring(0,ne)+G.substring(ne,se).replace(/,/g,"\u200C")+G.substring(se),ne=G.indexOf("(",J);}return G=G.replace(/("|')(?:\\\1|.)*?\1/g,se=>se.replace(/,/g,"\u200C")),G.split(",").map(se=>Vt(se.replace(/\u200C/g,",")))}function b(){let K=i(),G=p(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!G)return;let J=Vt(G[0]);if(!p(/^:\s*/))return a("property missing ':'");let ne=p(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),se=K({type:et.declaration,property:J.replace(Fp,""),value:ne?Vt(ne[0]).replace(Fp,""):""});return p(/^[;\s]*/),se}function E(){let K=[];if(!c())return a("missing '{'");h(K);let G;for(;G=b();)G&&(K.push(G),h(K));return u()?K:a("missing '}'")}function _(){let K,G=[],J=i();for(;K=p(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)G.push(K[1]),p(/^,\s*/);if(G.length)return J({type:et.keyframe,values:G,declarations:E()||[]})}function T(){let K=i(),G=p(/^@([-\w]+)?keyframes\s*/);if(!G)return;let J=G[1],ne=p(/^([-\w]+)\s*/);if(!ne)return a("@keyframes missing name");let se=ne[1];if(!c())return a("@keyframes missing '{'");let fe,Re=h();for(;fe=_();)Re.push(fe),Re=Re.concat(h());return u()?K({type:et.keyframes,name:se,vendor:J,keyframes:Re}):a("@keyframes missing '}'")}function x(){let K=i(),G=p(/^@supports *([^{]+)/);if(!G)return;let J=Vt(G[1]);if(!c())return a("@supports missing '{'");let ne=h().concat(f());return u()?K({type:et.supports,supports:J,rules:ne}):a("@supports missing '}'")}function S(){let K=i();if(!p(/^@host\s*/))return;if(!c())return a("@host missing '{'");let G=h().concat(f());return u()?K({type:et.host,rules:G}):a("@host missing '}'")}function v(){let K=i(),G=p(/^@container *([^{]+)/);if(!G)return;let J=Vt(G[1]);if(!c())return a("@container missing '{'");let ne=h().concat(f());return u()?K({type:et.container,container:J,rules:ne}):a("@container missing '}'")}function w(){let K=i(),G=p(/^@layer *([^{;@]+)/);if(!G)return;let J=Vt(G[1]);if(!c())return p(/^[;\s]*/),K({type:et.layer,layer:J});let ne=h().concat(f());return u()?K({type:et.layer,layer:J,rules:ne}):a("@layer missing '}'")}function I(){let K=i(),G=p(/^@media *([^{]+)/);if(!G)return;let J=Vt(G[1]);if(!c())return a("@media missing '{'");let ne=h().concat(f());return u()?K({type:et.media,media:J,rules:ne}):a("@media missing '}'")}function C(){let K=i(),G=p(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);if(G)return K({type:et.customMedia,name:Vt(G[1]),media:Vt(G[2])})}function N(){let K=i();if(!p(/^@page */))return;let G=g()||[];if(!c())return a("@page missing '{'");let J=h(),ne;for(;ne=b();)J.push(ne),J=J.concat(h());return u()?K({type:et.page,selectors:G,declarations:J}):a("@page missing '}'")}function L(){let K=i(),G=p(/^@([-\w]+)?document *([^{]+)/);if(!G)return;let J=Vt(G[1]),ne=Vt(G[2]);if(!c())return a("@document missing '{'");let se=h().concat(f());return u()?K({type:et.document,document:ne,vendor:J,rules:se}):a("@document missing '}'")}function q(){let K=i();if(!p(/^@font-face\s*/))return;if(!c())return a("@font-face missing '{'");let G=h(),J;for(;J=b();)G.push(J),G=G.concat(h());return u()?K({type:et.fontFace,declarations:G}):a("@font-face missing '}'")}function H(){let K=i();if(!p(/^@starting-style\s*/))return;if(!c())return a("@starting-style missing '{'");let G=h().concat(f());return u()?K({type:et.startingStyle,rules:G}):a("@starting-style missing '}'")}let z=ie("import"),Z=ie("charset"),Y=ie("namespace");function ie(K){let G=new RegExp("^@"+K+`\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);return function(){let J=i(),ne=p(G);if(!ne)return;let se={type:K};return se[K]=ne[1].trim(),J(se)}}function ae(){if(e[0]==="@")return T()||I()||C()||x()||z()||Z()||Y()||L()||N()||S()||q()||v()||H()||w()}function ue(){let K=i(),G=g();return G?(h(),K({type:et.rule,selectors:G,declarations:E()||[]})):a("selector missing")}return vh(l())};function Vt(e){return e?e.trim():""}function vh(e,t){let r=e&&typeof e.type=="string",n=r?e:t;for(let o in e){let i=e[o];Array.isArray(i)?i.forEach(s=>{vh(s,n);}):i&&typeof i=="object"&&vh(i,n);}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}var Nz=Iz,jz=Nz,qz=Object.prototype.toString;function P_(e){return typeof e=="function"||qz.call(e)==="[object Function]"}function $z(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var kz=Math.pow(2,53)-1;function Dz(e){var t=$z(e);return Math.min(Math.max(t,0),kz)}function sr(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");for(var o=Dz(n.length),i=P_(r)?Object(new r(o)):new Array(o),s=0,a;s<o;)a=n[s],i[s]=a,s+=1;return i.length=o,i}function is(e){"@babel/helpers - typeof";return is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},is(e)}function Lz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O_(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$C(n.key),n);}}function Bz(e,t,r){return t&&O_(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fz(e,t,r){return t=$C(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $C(e){var t=Uz(e,"string");return is(t)==="symbol"?t:String(t)}function Uz(e,t){if(is(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(is(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}var zz=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Lz(this,e),Fz(this,"items",void 0),this.items=t;}return Bz(e,[{key:"add",value:function(t){return this.has(t)===!1&&this.items.push(t),this}},{key:"clear",value:function(){this.items=[];}},{key:"delete",value:function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length}},{key:"forEach",value:function(t){var r=this;this.items.forEach(function(n){t(n,n,r);});}},{key:"has",value:function(t){return this.items.indexOf(t)!==-1}},{key:"size",get:function(){return this.items.length}}]),e}(),Vz=typeof Set>"u"?Set:zz;function vt(e){var t;return (t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var Hz={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},Wz={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),none:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function Gz(e,t){return ["aria-atomic","aria-busy","aria-controls","aria-current","aria-description","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=Wz[t])!==null&&n!==void 0&&n.has(r))})}function kC(e,t){return Gz(e,t)}function Kz(e){var t=Jz(e);if(t===null||wh.indexOf(t)!==-1){var r=Yz(e);if(wh.indexOf(t||"")===-1||kC(e,r||""))return r}return t}function Yz(e){var t=Hz[vt(e)];if(t!==void 0)return t;switch(vt(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return "link";break;case"img":return e.getAttribute("alt")===""&&!kC(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return "button";case"checkbox":case"radio":return n;case"range":return "slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return "spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}function Jz(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}var wh=["presentation","none"];function ze(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function DC(e){return ze(e)&&vt(e)==="caption"}function ql(e){return ze(e)&&vt(e)==="input"}function Xz(e){return ze(e)&&vt(e)==="optgroup"}function Qz(e){return ze(e)&&vt(e)==="select"}function Zz(e){return ze(e)&&vt(e)==="table"}function e4(e){return ze(e)&&vt(e)==="textarea"}function t4(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function r4(e){return ze(e)&&vt(e)==="fieldset"}function n4(e){return ze(e)&&vt(e)==="legend"}function o4(e){return ze(e)&&vt(e)==="slot"}function i4(e){return ze(e)&&e.ownerSVGElement!==void 0}function s4(e){return ze(e)&&vt(e)==="svg"}function a4(e){return i4(e)&&vt(e)==="title"}function Yl(e,t){if(ze(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(o){return n.getElementById(o)}).filter(function(o){return o!==null})}return []}function jr(e,t){return ze(e)?t.indexOf(Kz(e))!==-1:!1}function l4(e){return e.trim().replace(/\s\s+/g," ")}function u4(e,t){if(!ze(e))return !1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return !0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function c4(e){return jr(e,["button","combobox","listbox","textbox"])||LC(e,"range")}function LC(e,t){if(!ze(e))return !1;switch(t){case"range":return jr(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function R_(e,t){var r=sr(e.querySelectorAll(t));return Yl(e,"aria-owns").forEach(function(n){r.push.apply(r,sr(n.querySelectorAll(t)));}),r}function f4(e){return Qz(e)?e.selectedOptions||R_(e,"[selected]"):R_(e,'[aria-selected="true"]')}function d4(e){return jr(e,wh)}function p4(e){return DC(e)}function h4(e){return jr(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function m4(e){return !1}function g4(e){return ql(e)||e4(e)?e.value:e.textContent||""}function M_(e){var t=e.getPropertyValue("content");return /^["'].*["']$/.test(t)?t.slice(1,-1):""}function BC(e){var t=vt(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function FC(e){if(BC(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&ze(r)){var n=FC(r);n!==null&&(t=n);}}),t}function y4(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):FC(e)}function b4(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return sr(t);if(!BC(e))return null;var r=e.ownerDocument;return sr(r.querySelectorAll("label")).filter(function(n){return y4(n)===e})}function v4(e){var t=e.assignedNodes();return t.length===0?sr(e.childNodes):t}function UC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new Vz,n=t4(e),o=t.compute,i=o===void 0?"name":o,s=t.computedStyleSupportsPseudoElements,a=s===void 0?t.getComputedStyle!==void 0:s,l=t.getComputedStyle,c=l===void 0?n.getComputedStyle.bind(n):l,u=t.hidden,f=u===void 0?!1:u;function p(g,b){var E="";if(ze(g)&&a){var _=c(g,"::before"),T=M_(_);E="".concat(T," ").concat(E);}var x=o4(g)?v4(g):sr(g.childNodes).concat(Yl(g,"aria-owns"));if(x.forEach(function(w){var I=y(w,{isEmbeddedInLabel:b.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),C=ze(w)?c(w).getPropertyValue("display"):"inline",N=C!=="inline"?" ":"";E+="".concat(N).concat(I).concat(N);}),ze(g)&&a){var S=c(g,"::after"),v=M_(S);E="".concat(E," ").concat(v);}return E.trim()}function d(g,b){var E=g.getAttributeNode(b);return E!==null&&!r.has(E)&&E.value.trim()!==""?(r.add(E),E.value):null}function h(g){return ze(g)?d(g,"title"):null}function m(g){if(!ze(g))return null;if(r4(g)){r.add(g);for(var b=sr(g.childNodes),E=0;E<b.length;E+=1){var _=b[E];if(n4(_))return y(_,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(Zz(g)){r.add(g);for(var T=sr(g.childNodes),x=0;x<T.length;x+=1){var S=T[x];if(DC(S))return y(S,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(s4(g)){r.add(g);for(var v=sr(g.childNodes),w=0;w<v.length;w+=1){var I=v[w];if(a4(I))return I.textContent}return null}else if(vt(g)==="img"||vt(g)==="area"){var C=d(g,"alt");if(C!==null)return C}else if(Xz(g)){var N=d(g,"label");if(N!==null)return N}if(ql(g)&&(g.type==="button"||g.type==="submit"||g.type==="reset")){var L=d(g,"value");if(L!==null)return L;if(g.type==="submit")return "Submit";if(g.type==="reset")return "Reset"}var q=b4(g);if(q!==null&&q.length!==0)return r.add(g),sr(q).map(function(Y){return y(Y,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(Y){return Y.length>0}).join(" ");if(ql(g)&&g.type==="image"){var H=d(g,"alt");if(H!==null)return H;var z=d(g,"title");return z!==null?z:"Submit Query"}if(jr(g,["button"])){var Z=p(g,{isEmbeddedInLabel:!1,isReferenced:!1});if(Z!=="")return Z}return null}function y(g,b){if(r.has(g))return "";if(!f&&u4(g,c)&&!b.isReferenced)return r.add(g),"";var E=ze(g)?g.getAttributeNode("aria-labelledby"):null,_=E!==null&&!r.has(E)?Yl(g,"aria-labelledby"):[];if(i==="name"&&!b.isReferenced&&_.length>0)return r.add(E),_.map(function(C){return y(C,{isEmbeddedInLabel:b.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var T=b.recursion&&c4(g)&&i==="name";if(!T){var x=(ze(g)&&g.getAttribute("aria-label")||"").trim();if(x!==""&&i==="name")return r.add(g),x;if(!d4(g)){var S=m(g);if(S!==null)return r.add(g),S}}if(jr(g,["menu"]))return r.add(g),"";if(T||b.isEmbeddedInLabel||b.isReferenced){if(jr(g,["combobox","listbox"])){r.add(g);var v=f4(g);return v.length===0?ql(g)?g.value:"":sr(v).map(function(C){return y(C,{isEmbeddedInLabel:b.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(LC(g,"range"))return r.add(g),g.hasAttribute("aria-valuetext")?g.getAttribute("aria-valuetext"):g.hasAttribute("aria-valuenow")?g.getAttribute("aria-valuenow"):g.getAttribute("value")||"";if(jr(g,["textbox"]))return r.add(g),g4(g)}if(h4(g)||ze(g)&&b.isReferenced||p4(g)||m4()){var w=p(g,{isEmbeddedInLabel:b.isEmbeddedInLabel,isReferenced:!1});if(w!=="")return r.add(g),w}if(g.nodeType===g.TEXT_NODE)return r.add(g),g.textContent||"";if(b.recursion)return r.add(g),p(g,{isEmbeddedInLabel:b.isEmbeddedInLabel,isReferenced:!1});var I=h(g);return I!==null?(r.add(g),I):(r.add(g),"")}return l4(y(e,{isEmbeddedInLabel:!1,isReferenced:i==="description",recursion:!1}))}function ss(e){"@babel/helpers - typeof";return ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ss(e)}function I_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n);}return r}function N_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?I_(Object(r),!0).forEach(function(n){w4(e,n,r[n]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I_(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n));});}return e}function w4(e,t,r){return t=E4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E4(e){var t=_4(e,"string");return ss(t)==="symbol"?t:String(t)}function _4(e,t){if(ss(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ss(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function S4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Yl(e,"aria-describedby").map(function(i){return UC(i,N_(N_({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("aria-description");r=n===null?"":n;}if(r===""){var o=e.getAttribute("title");r=o===null?"":o;}return r}function T4(e){return jr(e,["caption","code","deletion","emphasis","generic","insertion","none","paragraph","presentation","strong","subscript","superscript"])}function C4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return T4(e)?"":UC(e,t)}var Gm=kt(im(),1),x4=kt(PT(),1),zC=kt(LT(),1),A4=kt(BT(),1),VC=class extends Error{constructor(e,t,r,n){super(),Error.captureStackTrace&&Error.captureStackTrace(this,r);let o="";try{o=n.utils.printWithType("Received",t,n.utils.printReceived);}catch{}this.message=[n.utils.matcherHint(`${n.isNot?".not":""}.${r.name}`,"received",""),"",`${n.utils.RECEIVED_COLOR("received")} value must ${e}.`,o].join(`
|
|
213
|
+
`);}},j_=class extends VC{constructor(...e){super("be an HTMLElement or an SVGElement",...e);}},q_=class extends VC{constructor(...e){super("be a Node",...e);}};function HC(e,t,...r){if(!e||!e.ownerDocument||!e.ownerDocument.defaultView)throw new t(e,...r)}function P4(e,...t){HC(e,q_,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.Node))throw new q_(e,...t)}function qe(e,...t){HC(e,j_,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.HTMLElement)&&!(e instanceof r.SVGElement))throw new j_(e,...t)}var O4=class extends Error{constructor(e,t,r){super(),Error.captureStackTrace&&Error.captureStackTrace(this,t),this.message=[e.message,"",r.utils.RECEIVED_COLOR("Failing css:"),r.utils.RECEIVED_COLOR(`${e.css}`)].join(`
|
|
214
|
+
`);}};function R4(e,...t){let r=jz(`selector { ${e} }`,{silent:!0}).stylesheet;if(r.parsingErrors&&r.parsingErrors.length>0){let{reason:n,line:o}=r.parsingErrors[0];throw new O4({css:e,message:`Syntax error parsing expected css: ${n} on line: ${o}`},...t)}return r.rules[0].declarations.filter(n=>n.type==="declaration").reduce((n,{property:o,value:i})=>Object.assign(n,{[o]:i}),{})}function $_(e,t){return typeof t=="string"?t:e.utils.stringify(t)}function yt(e,t,r,n,o,i){return [`${t}
|
|
215
|
+
`,`${r}:
|
|
216
|
+
${e.utils.EXPECTED_COLOR((0, A_.default)($_(e,n),2))}`,`${o}:
|
|
217
|
+
${e.utils.RECEIVED_COLOR((0, A_.default)($_(e,i),2))}`].join(`
|
|
218
|
+
`)}function M4(e,t){return t instanceof RegExp?t.test(e):e.includes(String(t))}function Cu(e,t){console.warn(`Warning: ${e} has been deprecated and will be removed in future updates.`,t);}function xu(e){return e.replace(/\s+/g," ").trim()}function fn(e){return e.tagName&&e.tagName.toLowerCase()}function I4({multiple:e,options:t}){let r=[...t].filter(n=>n.selected);if(e)return [...r].map(n=>n.value);if(r.length!==0)return r[0].value}function N4(e){switch(e.type){case"number":return e.value===""?null:Number(e.value);case"checkbox":return e.checked;default:return e.value}}var j4=["meter","progressbar","slider","spinbutton"];function q4(e){if(j4.includes(e.getAttribute("role")))return Number(e.getAttribute("aria-valuenow"))}function WC(e){if(e)switch(e.tagName.toLowerCase()){case"input":return N4(e);case"select":return I4(e);default:return e.value??q4(e)}}function $4(e,{wordConnector:t=", ",lastWordConnector:r=" and "}={}){return [e.slice(0,-1).join(t),e[e.length-1]].join(e.length>1?r:"")}function GC(e,t){if(Array.isArray(e)&&Array.isArray(t))return [...new Set(e)].every(r=>new Set(t).has(r))}function Eh(e,t){return Cu("toBeInTheDOM","Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."),e&&qe(e,Eh,this),t&&qe(t,Eh,this),{pass:t?t.contains(e):!!e,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDOM`,"element",""),"","Received:",` ${this.utils.printReceived(e&&e.cloneNode(!1))}`].join(`
|
|
219
|
+
`)}}function KC(e){(e!==null||!this.isNot)&&qe(e,KC,this);let t=e===null?!1:e.ownerDocument===e.getRootNode({composed:!0}),r=()=>`expected document not to contain element, found ${this.utils.stringify(e.cloneNode(!0))} instead`,n=()=>"element could not be found in the document";return {pass:t,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDocument`,"element",""),"",this.utils.RECEIVED_COLOR(this.isNot?r():n())].join(`
|
|
220
|
+
`)}}function YC(e){return Cu("toBeEmpty","Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."),qe(e,YC,this),{pass:e.innerHTML==="",message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmpty`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
221
|
+
`)}}function JC(e){return qe(e,JC,this),{pass:k4(e),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmptyDOMElement`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
222
|
+
`)}}function k4(e){return [...e.childNodes].filter(t=>t.nodeType!==8).length===0}function _h(e,t){return qe(e,_h,this),t!==null&&qe(t,_h,this),{pass:e.contains(t),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toContainElement`,"element","element"),"",this.utils.RECEIVED_COLOR(`${this.utils.stringify(e.cloneNode(!1))} ${this.isNot?"contains:":"does not contain:"} ${this.utils.stringify(t&&t.cloneNode(!1))}
|
|
223
|
+
`)].join(`
|
|
224
|
+
`)}}function D4(e,t){let r=e.ownerDocument.createElement("div");return r.innerHTML=t,r.innerHTML}function XC(e,t){if(qe(e,XC,this),typeof t!="string")throw new Error(`.toContainHTML() expects a string value, got ${t}`);return {pass:e.outerHTML.includes(D4(e,t)),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toContainHTML`,"element",""),"Expected:",` ${this.utils.EXPECTED_COLOR(t)}`,"Received:",` ${this.utils.printReceived(e.cloneNode(!0))}`].join(`
|
|
225
|
+
`)}}function QC(e,t,r={normalizeWhitespace:!0}){P4(e,QC,this);let n=r.normalizeWhitespace?xu(e.textContent):e.textContent.replace(/\u00a0/g," "),o=n!==""&&t==="";return {pass:!o&&M4(n,t),message:()=>{let i=this.isNot?"not to":"to";return yt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveTextContent`,"element",""),o?"Checking with empty string will always match, use .toBeEmptyDOMElement() instead":`Expected element ${i} have text content`,t,"Received",n)}}}function Sh(e,t){qe(e,Sh,this);let r=S4(e),n=arguments.length===1,o=!1;return n?o=r!=="":o=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:o,message:()=>{let i=this.isNot?"not to":"to";return yt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${Sh.name}`,"element",""),`Expected element ${i} have accessible description`,t,"Received",r)}}}var Ki="aria-invalid",L4=["false"];function ZC(e,t){qe(e,ZC,this);let r=this.isNot?"not to":"to",n=this.isNot?".not.toHaveAccessibleErrorMessage":".toHaveAccessibleErrorMessage",o=e.getAttribute("aria-errormessage");if(o&&/\s+/.test(o))return {pass:!1,message:()=>yt(this,this.utils.matcherHint(n,"element"),"Expected element's `aria-errormessage` attribute to be empty or a single, valid ID","","Received",`aria-errormessage="${o}"`)};let i=e.getAttribute(Ki);if(!e.hasAttribute(Ki)||L4.includes(i))return {pass:!1,message:()=>yt(this,this.utils.matcherHint(n,"element"),"Expected element to be marked as invalid with attribute",`${Ki}="${String(!0)}"`,"Received",e.hasAttribute("aria-invalid")?`${Ki}="${e.getAttribute(Ki)}`:null)};let s=xu(e.ownerDocument.getElementById(o)?.textContent??"");return {pass:t===void 0?!!s:t instanceof RegExp?t.test(s):this.equals(s,t),message:()=>yt(this,this.utils.matcherHint(n,"element"),`Expected element ${r} have accessible error message`,t??"","Received",s)}}var B4=z4(Gm.elementRoles);function Th(e,t){qe(e,Th,this);let r=F4(e);return {pass:r.some(n=>n===t),message:()=>{let n=this.isNot?"not to":"to";return yt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${Th.name}`,"element",""),`Expected element ${n} have role`,t,"Received",r.join(", "))}}}function F4(e){return e.hasAttribute("role")?e.getAttribute("role").split(" ").filter(Boolean):U4(e)}function U4(e){for(let{match:t,roles:r}of B4)if(t(e))return [...r];return []}function z4(e){function t({name:s,attributes:a}){return `${s}${a.map(({name:l,value:c,constraints:u=[]})=>u.indexOf("undefined")!==-1?`:not([${l}])`:c?`[${l}="${c}"]`:`[${l}]`).join("")}`}function r({attributes:s=[]}){return s.length}function n({specificity:s},{specificity:a}){return a-s}function o(s){let{attributes:a=[]}=s,l=a.findIndex(u=>u.value&&u.name==="type"&&u.value==="text");l>=0&&(a=[...a.slice(0,l),...a.slice(l+1)]);let c=t({...s,attributes:a});return u=>l>=0&&u.type!=="text"?!1:u.matches(c)}let i=[];for(let[s,a]of e.entries())i=[...i,{match:o(s),roles:Array.from(a),specificity:r(s)}];return i.sort(n)}function Ch(e,t){qe(e,Ch,this);let r=C4(e),n=arguments.length===1,o=!1;return n?o=r!=="":o=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:o,message:()=>{let i=this.isNot?"not to":"to";return yt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${Ch.name}`,"element",""),`Expected element ${i} have accessible name`,t,"Received",r)}}}function k_(e,t,r){return r===void 0?t:`${t}=${e(r)}`}function V4(e,t,r){return r===void 0?`element.hasAttribute(${e(t)})`:`element.getAttribute(${e(t)}) === ${e(r)}`}function ex(e,t,r){qe(e,ex,this);let n=r!==void 0,o=e.hasAttribute(t),i=e.getAttribute(t);return {pass:n?o&&this.equals(i,r):o,message:()=>{let s=this.isNot?"not to":"to",a=o?k_(this.utils.stringify,t,i):null,l=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveAttribute`,"element",this.utils.printExpected(t),{secondArgument:n?this.utils.printExpected(r):void 0,comment:V4(this.utils.stringify,t,r)});return yt(this,l,`Expected the element ${s} have attribute`,k_(this.utils.stringify,t,r),"Received",a)}}}function H4(e){let t=e.pop(),r,n;return typeof t=="object"&&!(t instanceof RegExp)?(r=e,n=t):(r=e.concat(t),n={exact:!1}),{expectedClassNames:r,options:n}}function D_(e){return e?e.split(/\s+/).filter(t=>t.length>0):[]}function L_(e,t){return e.every(r=>typeof r=="string"?t.includes(r):t.some(n=>r.test(n)))}function tx(e,...t){qe(e,tx,this);let{expectedClassNames:r,options:n}=H4(t),o=D_(e.getAttribute("class")),i=r.reduce((a,l)=>a.concat(typeof l=="string"||!l?D_(l):l),[]),s=i.some(a=>a instanceof RegExp);if(n.exact&&s)throw new Error("Exact option does not support RegExp expected class names");return n.exact?{pass:L_(i,o)&&i.length===o.length,message:()=>{let a=this.isNot?"not to":"to";return yt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(i.join(" "))),`Expected the element ${a} have EXACTLY defined classes`,i.join(" "),"Received",o.join(" "))}}:i.length>0?{pass:L_(i,o),message:()=>{let a=this.isNot?"not to":"to";return yt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(i.join(" "))),`Expected the element ${a} have class`,i.join(" "),"Received",o.join(" "))}}:{pass:this.isNot?o.length>0:!1,message:()=>this.isNot?yt(this,this.utils.matcherHint(".not.toHaveClass","element",""),"Expected the element to have classes","(none)","Received",o.join(" ")):[this.utils.matcherHint(".toHaveClass","element"),"At least one expected class must be provided."].join(`
|
|
226
|
+
`)}}function W4(e,t){let r={},n=e.createElement("div");return Object.keys(t).forEach(o=>{n.style[o]=t[o],r[o]=n.style[o];}),r}function G4(e,t){return !!Object.keys(e).length&&Object.entries(e).every(([r,n])=>{let o=r.startsWith("--"),i=[r];return o||i.push(r.toLowerCase()),i.some(s=>t[s]===n||t.getPropertyValue(s)===n)})}function B_(e){return Object.keys(e).sort().map(t=>`${t}: ${e[t]};`).join(`
|
|
227
|
+
`)}function K4(e,t,r){let n=Array.from(r).filter(o=>t[o]!==void 0).reduce((o,i)=>Object.assign(o,{[i]:r.getPropertyValue(i)}),{});return e(B_(t),B_(n)).replace(`${x4.default.red("+ Received")}
|
|
228
|
+
`,"")}function xh(e,t){qe(e,xh,this);let r=typeof t=="object"?t:R4(t,xh,this),{getComputedStyle:n}=e.ownerDocument.defaultView,o=W4(e.ownerDocument,r),i=n(e);return {pass:G4(o,i),message:()=>{let s=`${this.isNot?".not":""}.toHaveStyle`;return [this.utils.matcherHint(s,"element",""),K4(this.utils.diff,o,i)].join(`
|
|
229
|
+
|
|
230
|
+
`)}}}function rx(e){return qe(e,rx,this),{pass:e.ownerDocument.activeElement===e,message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toHaveFocus`,"element",""),"",...this.isNot?["Received element is focused:",` ${this.utils.printReceived(e)}`]:["Expected element with focus:",` ${this.utils.printExpected(e)}`,"Received element with focus:",` ${this.utils.printReceived(e.ownerDocument.activeElement)}`]].join(`
|
|
231
|
+
`)}}function Y4(e){let t=[...new Set(e.map(r=>r.type))];if(t.length!==1)throw new Error("Multiple form elements with the same name must be of the same type");switch(t[0]){case"radio":{let r=e.find(n=>n.checked);return r?r.value:void 0}case"checkbox":return e.filter(r=>r.checked).map(r=>r.value);default:return e.map(r=>r.value)}}function J4(e,t){let r=[...e.querySelectorAll(`[name="${(0, A4.default)(t)}"]`)];if(r.length!==0)switch(r.length){case 1:return WC(r[0]);default:return Y4(r)}}function X4(e){return /\[\]$/.test(e)?e.slice(0,-2):e}function Q4(e){return Array.from(e.elements).map(t=>t.name).reduce((t,r)=>({...t,[X4(r)]:J4(e,r)}),{})}function nx(e,t){if(qe(e,nx,this),!e.elements)throw new Error("toHaveFormValues must be called on a form or a fieldset");let r=Q4(e);return {pass:Object.entries(t).every(([n,o])=>(0, zC.default)(r[n],o,GC)),message:()=>{let n=this.isNot?"not to":"to",o=`${this.isNot?".not":""}.toHaveFormValues`,i=Object.keys(r).filter(s=>t.hasOwnProperty(s)).reduce((s,a)=>({...s,[a]:r[a]}),{});return [this.utils.matcherHint(o,"element",""),`Expected the element ${n} have form values`,this.utils.diff(t,i)].join(`
|
|
232
|
+
|
|
233
|
+
`)}}}function Z4(e){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n,opacity:o}=t(e);return r!=="none"&&n!=="hidden"&&n!=="collapse"&&o!=="0"&&o!==0}function e9(e,t){let r;return t?r=e.nodeName==="DETAILS"&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0:r=e.nodeName==="DETAILS"?e.hasAttribute("open"):!0,!e.hasAttribute("hidden")&&r}function ox(e,t){return Z4(e)&&e9(e,t)&&(!e.parentElement||ox(e.parentElement,e))}function ix(e){qe(e,ix,this);let t=e.ownerDocument===e.getRootNode({composed:!0}),r=t&&ox(e);return {pass:r,message:()=>{let n=r?"is":"is not";return [this.utils.matcherHint(`${this.isNot?".not":""}.toBeVisible`,"element",""),"",`Received element ${n} visible${t?"":" (element is not in the document)"}:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
234
|
+
`)}}}var t9=["fieldset","input","select","optgroup","option","button","textarea"];function r9(e,t){return fn(e)==="legend"&&fn(t)==="fieldset"&&e.isSameNode(Array.from(t.children).find(r=>fn(r)==="legend"))}function n9(e,t){return ax(t)&&!r9(e,t)}function o9(e){return e.includes("-")}function sx(e){let t=fn(e);return t9.includes(t)||o9(t)}function ax(e){return sx(e)&&e.hasAttribute("disabled")}function lx(e){let t=e.parentElement;return !!t&&(n9(e,t)||lx(t))}function ux(e){return sx(e)&&(ax(e)||lx(e))}function cx(e){qe(e,cx,this);let t=ux(e);return {pass:t,message:()=>{let r=t?"is":"is not";return [this.utils.matcherHint(`${this.isNot?".not":""}.toBeDisabled`,"element",""),"",`Received element ${r} disabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
235
|
+
`)}}}function fx(e){qe(e,fx,this);let t=!ux(e);return {pass:t,message:()=>{let r=t?"is":"is not";return [this.utils.matcherHint(`${this.isNot?".not":""}.toBeEnabled`,"element",""),"",`Received element ${r} enabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
236
|
+
`)}}}var i9=["select","textarea"],s9=["input","select","textarea"],a9=["color","hidden","range","submit","image","reset"],l9=["checkbox","combobox","gridcell","listbox","radiogroup","spinbutton","textbox","tree"];function u9(e){return i9.includes(fn(e))&&e.hasAttribute("required")}function c9(e){return fn(e)==="input"&&e.hasAttribute("required")&&(e.hasAttribute("type")&&!a9.includes(e.getAttribute("type"))||!e.hasAttribute("type"))}function f9(e){return e.hasAttribute("aria-required")&&e.getAttribute("aria-required")==="true"&&(s9.includes(fn(e))||e.hasAttribute("role")&&l9.includes(e.getAttribute("role")))}function dx(e){qe(e,dx,this);let t=u9(e)||c9(e)||f9(e);return {pass:t,message:()=>{let r=t?"is":"is not";return [this.utils.matcherHint(`${this.isNot?".not":""}.toBeRequired`,"element",""),"",`Received element ${r} required:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
237
|
+
`)}}}var d9=["form","input","select","textarea"];function p9(e){return e.hasAttribute("aria-invalid")&&e.getAttribute("aria-invalid")!=="false"}function h9(e){return d9.includes(fn(e))}function px(e){let t=p9(e);return h9(e)?t||!e.checkValidity():t}function hx(e){qe(e,hx,this);let t=px(e);return {pass:t,message:()=>{let r=t?"is":"is not";return [this.utils.matcherHint(`${this.isNot?".not":""}.toBeInvalid`,"element",""),"",`Received element ${r} currently invalid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
238
|
+
`)}}}function mx(e){qe(e,mx,this);let t=!px(e);return {pass:t,message:()=>{let r=t?"is":"is not";return [this.utils.matcherHint(`${this.isNot?".not":""}.toBeValid`,"element",""),"",`Received element ${r} currently valid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
239
|
+
`)}}}function gx(e,t){if(qe(e,gx,this),e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type))throw new Error("input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead");let r=WC(e),n=t!==void 0,o=t,i=r;return t==r&&t!==r&&(o=`${t} (${typeof t})`,i=`${r} (${typeof r})`),{pass:n?(0, zC.default)(r,t,GC):!!r,message:()=>{let s=this.isNot?"not to":"to",a=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveValue`,"element",t);return yt(this,a,`Expected the element ${s} have value`,n?o:"(any)","Received",i)}}}function yx(e,t){qe(e,yx,this);let r=e.tagName.toLowerCase();if(!["select","input","textarea"].includes(r))throw new Error(".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.");if(r==="input"&&["radio","checkbox"].includes(e.type))throw new Error(`.toHaveDisplayValue() currently does not support input[type="${e.type}"], try with another matcher instead.`);let n=m9(r,e),o=g9(t),i=o.filter(l=>n.some(c=>l instanceof RegExp?l.test(c):this.equals(c,String(l)))).length,s=i===n.length,a=i===o.length;return {pass:s&&a,message:()=>yt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDisplayValue`,"element",""),`Expected element ${this.isNot?"not ":""}to have display value`,t,"Received",n)}}function m9(e,t){return e==="select"?Array.from(t).filter(r=>r.selected).map(r=>r.textContent):[t.value]}function g9(e){return e instanceof Array?e:[e]}function bx(e){qe(e,bx,this);let t=()=>e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type),r=()=>vx(e.getAttribute("role"))&&["true","false"].includes(e.getAttribute("aria-checked"));if(!t()&&!r())return {pass:!1,message:()=>`only inputs with type="checkbox" or type="radio" or elements with ${y9()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`};let n=()=>t()?e.checked:e.getAttribute("aria-checked")==="true";return {pass:n(),message:()=>{let o=n()?"is":"is not";return [this.utils.matcherHint(`${this.isNot?".not":""}.toBeChecked`,"element",""),"",`Received element ${o} checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
240
|
+
`)}}}function y9(){return $4(b9().map(e=>`role="${e}"`),{lastWordConnector:" or "})}function b9(){return Gm.roles.keys().filter(vx)}function vx(e){return Gm.roles.get(e)?.props["aria-checked"]!==void 0}function wx(e){qe(e,wx,this);let t=()=>e.tagName.toLowerCase()==="input"&&e.type==="checkbox",r=()=>e.getAttribute("role")==="checkbox";if(!t()&&!r())return {pass:!1,message:()=>'only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead'};let n=()=>{let o=e.getAttribute("aria-checked")==="mixed";return t()&&e.indeterminate||o};return {pass:n(),message:()=>{let o=n()?"is":"is not";return [this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyChecked`,"element",""),"",`Received element ${o} partially checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
241
|
+
`)}}}function Ex(e,t){Cu("toHaveDescription","Please use toHaveAccessibleDescription."),qe(e,Ex,this);let r=t!==void 0,n=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean),o="";if(n.length>0){let i=e.ownerDocument,s=n.map(a=>i.getElementById(a)).filter(Boolean);o=xu(s.map(a=>a.textContent).join(" "));}return {pass:r?t instanceof RegExp?t.test(o):this.equals(o,t):!!o,message:()=>{let i=this.isNot?"not to":"to";return yt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDescription`,"element",""),`Expected the element ${i} have description`,this.utils.printExpected(t),"Received",this.utils.printReceived(o))}}}function _x(e,t){if(Cu("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),qe(e,_x,this),!e.hasAttribute("aria-invalid")||e.getAttribute("aria-invalid")==="false"){let i=this.isNot?".not":"";return {pass:!1,message:()=>yt(this,this.utils.matcherHint(`${i}.toHaveErrorMessage`,"element",""),"Expected the element to have invalid state indicated by",'aria-invalid="true"',"Received",e.hasAttribute("aria-invalid")?`aria-invalid="${e.getAttribute("aria-invalid")}"`:this.utils.printReceived(""))}}let r=t!==void 0,n=(e.getAttribute("aria-errormessage")||"").split(/\s+/).filter(Boolean),o="";if(n.length>0){let i=e.ownerDocument,s=n.map(a=>i.getElementById(a)).filter(Boolean);o=xu(s.map(a=>a.textContent).join(" "));}return {pass:r?t instanceof RegExp?t.test(o):this.equals(o,t):!!o,message:()=>{let i=this.isNot?"not to":"to";return yt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveErrorMessage`,"element",""),`Expected the element ${i} have error message`,this.utils.printExpected(t),"Received",this.utils.printReceived(o))}}}kt(xT(),1);kt(im(),1);kt(PT(),1);kt(LT(),1);kt(BT(),1);function Ir(e,t,r){let n=typeof e;if(!r.includes(n))throw new TypeError(`${t} value must be ${r.join(" or ")}, received "${n}"`)}function $l(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function v9(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Ah(e){return Object.prototype.toString.apply(e).slice(8,-1)}function w9(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r);}function Sx(e){let t=new Set;return v9(e)?[]:(w9(e,t),Array.from(t))}var Tx={forceWritable:!1};function F_(e,t=Tx){return Ph(e,new WeakMap,t)}function Ph(e,t,r=Tx){let n,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array(n=e.length),t.set(e,o);n--;)o[n]=Ph(e[n],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let i=Sx(e);for(let s of i){let a=Object.getOwnPropertyDescriptor(e,s);if(!a)continue;let l=Ph(e[s],t,r);r.forceWritable?Object.defineProperty(o,s,{enumerable:a.enumerable,configurable:!0,writable:!0,value:l}):"get"in a?Object.defineProperty(o,s,{...a,get(){return l}}):Object.defineProperty(o,s,{...a,value:l});}return o}return e}var U_={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"]},E9={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Vo="\u2026";function _9(e,t){let r=U_[E9[t]]||U_[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}function S9({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!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:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(l),seen:a,inspect:u,stylize:c};return f.colors&&(f.stylize=_9),f}function T9(e){return e>="\uD800"&&e<="\uDBFF"}function mn(e,t,r=Vo){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let i=t-n;return i>0&&T9(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}function cr(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return "";let i=t.truncate,s="",a="",l="";for(let c=0;c<o;c+=1){let u=c+1===e.length,f=c+2===e.length;l=`${Vo}(${e.length-c})`;let p=e[c];t.truncate=i-s.length-(u?0:n.length);let d=a||r(p,t)+(u?"":n),h=s.length+d.length,m=h+l.length;if(u&&h>i&&s.length+l.length<=i||!u&&!f&&m>i||(a=u?"":r(e[c+1],t)+(f?"":n),!u&&f&&m>i&&h+a.length>i))break;if(s+=d,!u&&!f&&h+a.length>=i){l=`${Vo}(${e.length-c-1})`;break}l="";}return `${s}${l}`}function C9(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function as([e,t],r){return r.truncate-=2,typeof e=="string"?e=C9(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}function x9(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return "[]";t.truncate-=4;let n=cr(e,t);t.truncate-=n.length;let o="";return r.length&&(o=cr(r.map(i=>[i,e[i]]),t,as)),`[ ${n}${o?`, ${o}`:""} ]`}var A9=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function Nr(e,t){let r=A9(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return `${r}[]`;let o="";for(let s=0;s<e.length;s++){let a=`${t.stylize(mn(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=a.length,e[s]!==e.length&&t.truncate<=3){o+=`${Vo}(${e.length-e[s]+1})`;break}o+=a;}let i="";return n.length&&(i=cr(n.map(s=>[s,e[s]]),t,as)),`${r}[ ${o}${i?`, ${i}`:""} ]`}function P9(e,t){let r=e.toJSON();if(r===null)return "Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${mn(n[1],t.truncate-o.length-1)}`,"date")}function z_(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${mn(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}function O9([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}function R9(e){let t=[];return e.forEach((r,n)=>{t.push([n,r]);}),t}function M9(e,t){return e.size-1<=0?"Map{}":(t.truncate-=7,`Map{ ${cr(R9(e),t,O9)} }`)}var I9=Number.isNaN||(e=>e!==e);function V_(e,t){return I9(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(mn(String(e),t.truncate),"number")}function H_(e,t){let r=mn(e.toString(),t.truncate-1);return r!==Vo&&(r+="n"),t.stylize(r,"bigint")}function N9(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${mn(o,n)}/${r}`,"regexp")}function j9(e){let t=[];return e.forEach(r=>{t.push(r);}),t}function q9(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${cr(j9(e),t)} }`)}var W_=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),$9={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},k9=16,D9=4;function L9(e){return $9[e]||`\\u${`0000${e.charCodeAt(0).toString(k9)}`.slice(-D9)}`}function G_(e,t){return W_.test(e)&&(e=e.replace(W_,L9)),t.stylize(`'${mn(e,t.truncate-2)}'`,"string")}function K_(e){return "description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}var Cx=()=>"Promise{\u2026}";try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(Cx=(n,o)=>{let[i,s]=e(n);return i===t?"Promise{<pending>}":`Promise${i===r?"!":""}{${o.inspect(s,o)}}`});}catch{}var B9=Cx;function kl(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return "{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.indexOf(e)>=0)return "[Circular]";t.seen.push(e);let o=cr(r.map(a=>[a,e[a]]),t,as),i=cr(n.map(a=>[a,e[a]]),t,as);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}var Up=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function F9(e,t){let r="";return Up&&Up in e&&(r=e[Up]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${kl(e,t)}`}function U9(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${cr(e,t)} ]`)}var z9=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description"];function V9(e,t){let r=Object.getOwnPropertyNames(e).filter(s=>z9.indexOf(s)===-1),n=e.name;t.truncate-=n.length;let o="";typeof e.message=="string"?o=mn(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5;let i=cr(r.map(s=>[s,e[s]]),t,as);return `${n}${o}${i?` { ${i} }`:""}`}function H9([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}function Oh(e,t){return cr(e,t,xx,`
|
|
242
|
+
`)}function xx(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),i=t.stylize(">","special"),s=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let a="";r.length>0&&(a+=" ",a+=cr(r.map(u=>[u,e.getAttribute(u)]),t,H9," ")),t.truncate-=a.length;let l=t.truncate,c=Oh(e.children,t);return c&&c.length>l&&(c=`${Vo}(${e.children.length})`),`${o}${a}${i}${c}${s}`}var W9=typeof Symbol=="function"&&typeof Symbol.for=="function",zp=W9?Symbol.for("chai/inspect"):"@@chai/inspect",jo=!1;try{let e=BB("util");jo=e.inspect?e.inspect.custom:!1;}catch{jo=!1;}var Y_=new WeakMap,J_={},X_={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:V_,Number:V_,bigint:H_,BigInt:H_,string:G_,String:G_,function:z_,Function:z_,symbol:K_,Symbol:K_,Array:x9,Date:P9,Map:M9,Set:q9,RegExp:N9,Promise:B9,WeakSet:(e,t)=>t.stylize("WeakSet{\u2026}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{\u2026}","special"),Arguments:U9,Int8Array:Nr,Uint8Array:Nr,Uint8ClampedArray:Nr,Int16Array:Nr,Uint16Array:Nr,Int32Array:Nr,Uint32Array:Nr,Float32Array:Nr,Float64Array:Nr,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:V9,HTMLCollection:Oh,NodeList:Oh},G9=(e,t,r)=>zp in e&&typeof e[zp]=="function"?e[zp](t):jo&&jo in e&&typeof e[jo]=="function"?e[jo](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Y_.has(e.constructor)?Y_.get(e.constructor)(e,t):J_[r]?J_[r](e,t):"",K9=Object.prototype.toString;function Rh(e,t={}){let r=S9(t,Rh),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=K9.call(e).slice(8,-1)),o in X_)return X_[o](e,r);if(n&&e){let s=G9(e,r,o);if(s)return typeof s=="string"?s:Rh(s,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?kl(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?xx(e,r):"constructor"in e?e.constructor!==Object?F9(e,r):kl(e,r):e===Object(e)?kl(e,r):r.stylize(String(e),o)}var Y9={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]},J9=Object.entries(Y9);function Km(e){return String(e)}Km.open="";Km.close="";function X9(e=!1){let t=typeof process<"u"?process:void 0,r=t?.env||{},n=t?.argv||[];return !("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||t?.platform==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}function Q9(e=!1){let t=X9(e),r=(s,a,l,c)=>{let u="",f=0;do u+=s.substring(f,c)+l,f=c+a.length,c=s.indexOf(a,f);while(~c);return u+s.substring(f)},n=(s,a,l=s)=>{let c=u=>{let f=String(u),p=f.indexOf(a,s.length);return ~p?s+r(f,a,l,p)+a:s+f+a};return c.open=s,c.close=a,c},o={isColorSupported:t},i=s=>`\x1B[${s}m`;for(let[s,a]of J9)o[s]=t?n(i(a[0]),i(a[1]),a[2]):Km;return o}var Xe=Q9(!1);function Z9(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&n.push(o);return n}function Au(e,t,r,n,o,i,s=": "){let a="",l=0,c=e.next();if(!c.done){a+=t.spacingOuter;let u=r+t.indent;for(;!c.done;){if(a+=u,l++===t.maxWidth){a+="\u2026";break}let f=i(c.value[0],t,u,n,o),p=i(c.value[1],t,u,n,o);a+=f+s+p,c=e.next(),c.done?t.min||(a+=","):a+=`,${t.spacingInner}`;}a+=t.spacingOuter+r;}return a}function Ym(e,t,r,n,o,i){let s="",a=0,l=e.next();if(!l.done){s+=t.spacingOuter;let c=r+t.indent;for(;!l.done;){if(s+=c,a++===t.maxWidth){s+="\u2026";break}s+=i(l.value,t,c,n,o),l=e.next(),l.done?t.min||(s+=","):s+=`,${t.spacingInner}`;}s+=t.spacingOuter+r;}return s}function Jl(e,t,r,n,o,i){let s="";e=e instanceof ArrayBuffer?new DataView(e):e;let a=c=>c instanceof DataView,l=a(e)?e.byteLength:e.length;if(l>0){s+=t.spacingOuter;let c=r+t.indent;for(let u=0;u<l;u++){if(s+=c,u===t.maxWidth){s+="\u2026";break}(a(e)||u in e)&&(s+=i(a(e)?e.getInt8(u):e[u],t,c,n,o)),u<l-1?s+=`,${t.spacingInner}`:t.min||(s+=",");}s+=t.spacingOuter+r;}return s}function Jm(e,t,r,n,o,i){let s="",a=Z9(e,t.compareKeys);if(a.length>0){s+=t.spacingOuter;let l=r+t.indent;for(let c=0;c<a.length;c++){let u=a[c],f=i(u,t,l,n,o),p=i(e[u],t,l,n,o);s+=`${l+f}: ${p}`,c<a.length-1?s+=`,${t.spacingInner}`:t.min||(s+=",");}s+=t.spacingOuter+r;}return s}var eV=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Vp=" ",tV=(e,t,r,n,o,i)=>{let s=e.toString();if(s==="ArrayContaining"||s==="ArrayNotContaining")return ++n>t.maxDepth?`[${s}]`:`${s+Vp}[${Jl(e.sample,t,r,n,o,i)}]`;if(s==="ObjectContaining"||s==="ObjectNotContaining")return ++n>t.maxDepth?`[${s}]`:`${s+Vp}{${Jm(e.sample,t,r,n,o,i)}}`;if(s==="StringMatching"||s==="StringNotMatching"||s==="StringContaining"||s==="StringNotContaining")return s+Vp+i(e.sample,t,r,n,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},rV=e=>e&&e.$$typeof===eV,nV={serialize:tV,test:rV},oV=" ",Ax=new Set(["DOMStringMap","NamedNodeMap"]),iV=/^(?:HTML\w*Collection|NodeList)$/;function sV(e){return Ax.has(e)||iV.test(e)}var aV=e=>e&&e.constructor&&!!e.constructor.name&&sV(e.constructor.name);function lV(e){return e.constructor.name==="NamedNodeMap"}var uV=(e,t,r,n,o,i)=>{let s=e.constructor.name;return ++n>t.maxDepth?`[${s}]`:(t.min?"":s+oV)+(Ax.has(s)?`{${Jm(lV(e)?[...e].reduce((a,l)=>(a[l.name]=l.value,a),{}):{...e},t,r,n,o,i)}}`:`[${Jl([...e],t,r,n,o,i)}]`)},cV={serialize:uV,test:aV};function Px(e){return e.replaceAll("<","<").replaceAll(">",">")}function Xm(e,t,r,n,o,i,s){let a=n+r.indent,l=r.colors;return e.map(c=>{let u=t[c],f=s(u,r,a,o,i);return typeof u!="string"&&(f.includes(`
|
|
243
|
+
`)&&(f=r.spacingOuter+a+f+r.spacingOuter+n),f=`{${f}}`),`${r.spacingInner+n+l.prop.open+c+l.prop.close}=${l.value.open}${f}${l.value.close}`}).join("")}function Qm(e,t,r,n,o,i){return e.map(s=>t.spacingOuter+r+(typeof s=="string"?Ox(s,t):i(s,t,r,n,o))).join("")}function Ox(e,t){let r=t.colors.content;return r.open+Px(e)+r.close}function fV(e,t){let r=t.colors.comment;return `${r.open}<!--${Px(e)}-->${r.close}`}function Zm(e,t,r,n,o){let i=n.colors.tag;return `${i.open}<${e}${t&&i.close+t+n.spacingOuter+o+i.open}${r?`>${i.close}${r}${n.spacingOuter}${o}${i.open}</${e}`:`${t&&!n.min?"":" "}/`}>${i.close}`}function eg(e,t){let r=t.colors.tag;return `${r.open}<${e}${r.close} \u2026${r.open} />${r.close}`}var dV=1,Rx=3,Mx=8,Ix=11,pV=/^(?:(?:HTML|SVG)\w*)?Element$/;function hV(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return !1}}function mV(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||hV(e);return r===dV&&(pV.test(t)||o)||r===Rx&&t==="Text"||r===Mx&&t==="Comment"||r===Ix&&t==="DocumentFragment"}var gV=e=>{var t;return ((t=e?.constructor)==null?void 0:t.name)&&mV(e)};function yV(e){return e.nodeType===Rx}function bV(e){return e.nodeType===Mx}function Hp(e){return e.nodeType===Ix}var vV=(e,t,r,n,o,i)=>{if(yV(e))return Ox(e.data,t);if(bV(e))return fV(e.data,t);let s=Hp(e)?"DocumentFragment":e.tagName.toLowerCase();return ++n>t.maxDepth?eg(s,t):Zm(s,Xm(Hp(e)?[]:Array.from(e.attributes,a=>a.name).sort(),Hp(e)?{}:[...e.attributes].reduce((a,l)=>(a[l.name]=l.value,a),{}),t,r+t.indent,n,o,i),Qm(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,i),t,r)},wV={serialize:vV,test:gV},EV="@@__IMMUTABLE_ITERABLE__@@",_V="@@__IMMUTABLE_LIST__@@",SV="@@__IMMUTABLE_KEYED__@@",TV="@@__IMMUTABLE_MAP__@@",Q_="@@__IMMUTABLE_ORDERED__@@",CV="@@__IMMUTABLE_RECORD__@@",xV="@@__IMMUTABLE_SEQ__@@",AV="@@__IMMUTABLE_SET__@@",PV="@@__IMMUTABLE_STACK__@@",Ho=e=>`Immutable.${e}`,Pu=e=>`[${e}]`,ls=" ",Z_="\u2026";function OV(e,t,r,n,o,i,s){return ++n>t.maxDepth?Pu(Ho(s)):`${Ho(s)+ls}{${Au(e.entries(),t,r,n,o,i)}}`}function RV(e){let t=0;return {next(){if(t<e._keys.length){let r=e._keys[t++];return {done:!1,value:[r,e.get(r)]}}return {done:!0,value:void 0}}}}function MV(e,t,r,n,o,i){let s=Ho(e._name||"Record");return ++n>t.maxDepth?Pu(s):`${s+ls}{${Au(RV(e),t,r,n,o,i)}}`}function IV(e,t,r,n,o,i){let s=Ho("Seq");return ++n>t.maxDepth?Pu(s):e[SV]?`${s+ls}{${e._iter||e._object?Au(e.entries(),t,r,n,o,i):Z_}}`:`${s+ls}[${e._iter||e._array||e._collection||e._iterable?Ym(e.values(),t,r,n,o,i):Z_}]`}function Wp(e,t,r,n,o,i,s){return ++n>t.maxDepth?Pu(Ho(s)):`${Ho(s)+ls}[${Ym(e.values(),t,r,n,o,i)}]`}var NV=(e,t,r,n,o,i)=>e[TV]?OV(e,t,r,n,o,i,e[Q_]?"OrderedMap":"Map"):e[_V]?Wp(e,t,r,n,o,i,"List"):e[AV]?Wp(e,t,r,n,o,i,e[Q_]?"OrderedSet":"Set"):e[PV]?Wp(e,t,r,n,o,i,"Stack"):e[xV]?IV(e,t,r,n,o,i):MV(e,t,r,n,o,i),jV=e=>e&&(e[EV]===!0||e[CV]===!0),qV={serialize:NV,test:jV},Nx={exports:{}},Ne={},eS;function $V(){return eS||(eS=1,function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),h=!1,m=!1,y=!1,g=!1,b=!1,E;E=Symbol.for("react.module.reference");function _(W){return !!(typeof W=="string"||typeof W=="function"||W===r||W===o||b||W===n||W===c||W===u||g||W===d||h||m||y||typeof W=="object"&&W!==null&&(W.$$typeof===p||W.$$typeof===f||W.$$typeof===i||W.$$typeof===s||W.$$typeof===l||W.$$typeof===E||W.getModuleId!==void 0))}function T(W){if(typeof W=="object"&&W!==null){var Ae=W.$$typeof;switch(Ae){case e:var Pe=W.type;switch(Pe){case r:case o:case n:case c:case u:return Pe;default:var He=Pe&&Pe.$$typeof;switch(He){case a:case s:case l:case p:case f:case i:return He;default:return Ae}}case t:return Ae}}}var x=s,S=i,v=e,w=l,I=r,C=p,N=f,L=t,q=o,H=n,z=c,Z=u,Y=!1,ie=!1;function ae(W){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ue(W){return ie||(ie=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function K(W){return T(W)===s}function G(W){return T(W)===i}function J(W){return typeof W=="object"&&W!==null&&W.$$typeof===e}function ne(W){return T(W)===l}function se(W){return T(W)===r}function fe(W){return T(W)===p}function Re(W){return T(W)===f}function Fe(W){return T(W)===t}function k(W){return T(W)===o}function re(W){return T(W)===n}function X(W){return T(W)===c}function ce(W){return T(W)===u}Ne.ContextConsumer=x,Ne.ContextProvider=S,Ne.Element=v,Ne.ForwardRef=w,Ne.Fragment=I,Ne.Lazy=C,Ne.Memo=N,Ne.Portal=L,Ne.Profiler=q,Ne.StrictMode=H,Ne.Suspense=z,Ne.SuspenseList=Z,Ne.isAsyncMode=ae,Ne.isConcurrentMode=ue,Ne.isContextConsumer=K,Ne.isContextProvider=G,Ne.isElement=J,Ne.isForwardRef=ne,Ne.isFragment=se,Ne.isLazy=fe,Ne.isMemo=Re,Ne.isPortal=Fe,Ne.isProfiler=k,Ne.isStrictMode=re,Ne.isSuspense=X,Ne.isSuspenseList=ce,Ne.isValidElementType=_,Ne.typeOf=T;}()),Ne}Nx.exports=$V();var Dn=Nx.exports;function jx(e,t=[]){if(Array.isArray(e))for(let r of e)jx(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}function tS(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(Dn.isFragment(e))return "React.Fragment";if(Dn.isSuspense(e))return "React.Suspense";if(typeof t=="object"&&t!==null){if(Dn.isContextProvider(e))return "Context.Provider";if(Dn.isContextConsumer(e))return "Context.Consumer";if(Dn.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(Dn.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return "UNDEFINED"}function kV(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}var DV=(e,t,r,n,o,i)=>++n>t.maxDepth?eg(tS(e),t):Zm(tS(e),Xm(kV(e),e.props,t,r+t.indent,n,o,i),Qm(jx(e.props.children),t,r+t.indent,n,o,i),t,r),LV=e=>e!=null&&Dn.isElement(e),BV={serialize:DV,test:LV},FV=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function UV(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}var zV=(e,t,r,n,o,i)=>++n>t.maxDepth?eg(e.type,t):Zm(e.type,e.props?Xm(UV(e),e.props,t,r+t.indent,n,o,i):"",e.children?Qm(e.children,t,r+t.indent,n,o,i):"",t,r),VV=e=>e&&e.$$typeof===FV,HV={serialize:zV,test:VV},qx=Object.prototype.toString,WV=Date.prototype.toISOString,GV=Error.prototype.toString,rS=RegExp.prototype.toString;function Gp(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}function KV(e){return typeof window<"u"&&e===window}var YV=/^Symbol\((.*)\)(.*)$/,JV=/\n/g,$x=class extends Error{constructor(e,t){super(e),this.stack=t,this.name=this.constructor.name;}};function XV(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}function QV(e){return Object.is(e,-0)?"-0":String(e)}function ZV(e){return `${e}n`}function nS(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function oS(e){return String(e).replace(YV,"Symbol($1)")}function iS(e){return `[${GV.call(e)}]`}function kx(e,t,r,n){if(e===!0||e===!1)return `${e}`;if(e===void 0)return "undefined";if(e===null)return "null";let o=typeof e;if(o==="number")return QV(e);if(o==="bigint")return ZV(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return nS(e,t);if(o==="symbol")return oS(e);let i=qx.call(e);return i==="[object WeakMap]"?"WeakMap {}":i==="[object WeakSet]"?"WeakSet {}":i==="[object Function]"||i==="[object GeneratorFunction]"?nS(e,t):i==="[object Symbol]"?oS(e):i==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":WV.call(e):i==="[object Error]"?iS(e):i==="[object RegExp]"?r?rS.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):rS.call(e):e instanceof Error?iS(e):null}function Dx(e,t,r,n,o,i){if(o.includes(e))return "[Circular]";o=[...o],o.push(e);let s=++n>t.maxDepth,a=t.min;if(t.callToJSON&&!s&&e.toJSON&&typeof e.toJSON=="function"&&!i)return ln(e.toJSON(),t,r,n,o,!0);let l=qx.call(e);return l==="[object Arguments]"?s?"[Arguments]":`${a?"":"Arguments "}[${Jl(e,t,r,n,o,ln)}]`:XV(l)?s?`[${e.constructor.name}]`:`${a||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Jl(e,t,r,n,o,ln)}]`:l==="[object Map]"?s?"[Map]":`Map {${Au(e.entries(),t,r,n,o,ln," => ")}}`:l==="[object Set]"?s?"[Set]":`Set {${Ym(e.values(),t,r,n,o,ln)}}`:s||KV(e)?`[${Gp(e)}]`:`${a||!t.printBasicPrototype&&Gp(e)==="Object"?"":`${Gp(e)} `}{${Jm(e,t,r,n,o,ln)}}`}function e6(e){return e.serialize!=null}function Lx(e,t,r,n,o,i){let s;try{s=e6(e)?e.serialize(t,r,n,o,i,ln):e.print(t,a=>ln(a,r,n,o,i),a=>{let l=n+r.indent;return l+a.replaceAll(JV,`
|
|
244
|
+
${l}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors);}catch(a){throw new $x(a.message,a.stack)}if(typeof s!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof s}".`);return s}function Bx(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new $x(n.message,n.stack)}return null}function ln(e,t,r,n,o,i){let s=Bx(t.plugins,e);if(s!==null)return Lx(s,e,t,r,n,o);let a=kx(e,t.printFunctionName,t.escapeRegex,t.escapeString);return a!==null?a:Dx(e,t,r,n,o,i)}var tg={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Fx=Object.keys(tg),ir={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:tg};function t6(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(ir,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function r6(){return Fx.reduce((e,t)=>{let r=tg[t],n=r&&Xe[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}function n6(){return Fx.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}function Ux(e){return e?.printFunctionName??ir.printFunctionName}function zx(e){return e?.escapeRegex??ir.escapeRegex}function Vx(e){return e?.escapeString??ir.escapeString}function sS(e){return {callToJSON:e?.callToJSON??ir.callToJSON,colors:e?.highlight?r6():n6(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:ir.compareKeys,escapeRegex:zx(e),escapeString:Vx(e),indent:e?.min?"":o6(e?.indent??ir.indent),maxDepth:e?.maxDepth??ir.maxDepth,maxWidth:e?.maxWidth??ir.maxWidth,min:e?.min??ir.min,plugins:e?.plugins??ir.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:Ux(e),spacingInner:e?.min?" ":`
|
|
245
|
+
`,spacingOuter:e?.min?"":`
|
|
246
|
+
`}}function o6(e){return Array.from({length:e+1}).join(" ")}function vr(e,t){if(t&&(t6(t),t.plugins)){let n=Bx(t.plugins,e);if(n!==null)return Lx(n,e,sS(t),"",0,[])}let r=kx(e,Ux(t),zx(t),Vx(t));return r!==null?r:Dx(e,sS(t),"",0,[])}var Hx={AsymmetricMatcher:nV,DOMCollection:cV,DOMElement:wV,Immutable:qV,ReactElement:BV,ReactTestComponent:HV},{AsymmetricMatcher:i6,DOMCollection:s6,DOMElement:a6,Immutable:l6,ReactElement:u6,ReactTestComponent:c6}=Hx,aS=[c6,u6,a6,s6,l6,i6];function Kt(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,i;try{i=vr(e,{maxDepth:t,escapeString:!1,plugins:aS,...n});}catch{i=vr(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:aS,...n});}return i.length>=o&&t>1?Kt(e,Math.floor(t/2)):i}var f6=/%[sdjifoOc%]/g;function d6(...e){if(typeof e[0]!="string"){let i=[];for(let s=0;s<e.length;s++)i.push(Yi(e[s],{depth:0,colors:!1}));return i.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(f6,i=>{if(i==="%%")return "%";if(r>=t)return i;switch(i){case"%s":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}n`:typeof s=="number"&&s===0&&1/s<0?"-0":typeof s=="object"&&s!==null?Yi(s,{depth:0,colors:!1}):String(s)}case"%d":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}n`:Number(s).toString()}case"%i":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}n`:Number.parseInt(String(s)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return Yi(e[r++],{showHidden:!0,showProxy:!0});case"%O":return Yi(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(s){let a=s.message;if(a.includes("circular structure")||a.includes("cyclic structures")||a.includes("cyclic object"))return "[Circular]";throw s}default:return i}});for(let i=e[r];r<t;i=e[++r])i===null||typeof i!="object"?o+=` ${i}`:o+=` ${Yi(i)}`;return o}function Yi(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Rh(e,t)}var Wx;Wx=/\r?\n|[\r\u2028\u2029]/y;RegExp(Wx.source);var Gx={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(Gx.keyword);new Set(Gx.strict);function lS(e){if(e===void 0)return "undefined";if(e===null)return "null";if(Array.isArray(e))return "array";if(typeof e=="boolean")return "boolean";if(typeof e=="function")return "function";if(typeof e=="number")return "number";if(typeof e=="string")return "string";if(typeof e=="bigint")return "bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return "regexp";if(e.constructor===Map)return "map";if(e.constructor===Set)return "set";if(e.constructor===Date)return "date"}return "object"}else if(typeof e=="symbol")return "symbol";throw new Error(`value of unknown type: ${e}`)}var bt=-1,ct=1,Qe=0,Ge=class{0;1;constructor(e,t){this[0]=e,this[1]=t;}},p6=function(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),o=n,i=0;for(;r<o;)e.substring(i,o)===t.substring(i,o)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o},Kx=function(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,n=Math.min(e.length,t.length),o=n,i=0;for(;r<o;)e.substring(e.length-o,e.length-i)===t.substring(t.length-o,t.length-i)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o},uS=function(e,t){let r=e.length,n=t.length;if(r===0||n===0)return 0;r>n?e=e.substring(r-n):r<n&&(t=t.substring(0,r));let o=Math.min(r,n);if(e===t)return o;let i=0,s=1;for(;;){let a=e.substring(o-s),l=t.indexOf(a);if(l===-1)return i;s+=l,(l===0||e.substring(o-s)===t.substring(0,s))&&(i=s,s++);}},h6=function(e){let t=!1,r=[],n=0,o=null,i=0,s=0,a=0,l=0,c=0;for(;i<e.length;)e[i][0]===Qe?(r[n++]=i,s=l,a=c,l=0,c=0,o=e[i][1]):(e[i][0]===ct?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(r[n-1],0,new Ge(bt,o)),e[r[n-1]+1][0]=ct,n--,n--,i=n>0?r[n-1]:-1,s=0,a=0,l=0,c=0,o=null,t=!0)),i++;for(t&&Yx(e),y6(e),i=1;i<e.length;){if(e[i-1][0]===bt&&e[i][0]===ct){let u=e[i-1][1],f=e[i][1],p=uS(u,f),d=uS(f,u);p>=d?(p>=u.length/2||p>=f.length/2)&&(e.splice(i,0,new Ge(Qe,f.substring(0,p))),e[i-1][1]=u.substring(0,u.length-p),e[i+1][1]=f.substring(p),i++):(d>=u.length/2||d>=f.length/2)&&(e.splice(i,0,new Ge(Qe,u.substring(0,d))),e[i-1][0]=ct,e[i-1][1]=f.substring(0,f.length-d),e[i+1][0]=bt,e[i+1][1]=u.substring(d),i++),i++;}i++;}},cS=/[^a-z0-9]/i,fS=/\s/,dS=/[\r\n]/,m6=/\n\r?\n$/,g6=/^\r?\n\r?\n/;function y6(e){function t(n,o){if(!n||!o)return 6;let i=n.charAt(n.length-1),s=o.charAt(0),a=i.match(cS),l=s.match(cS),c=a&&i.match(fS),u=l&&s.match(fS),f=c&&i.match(dS),p=u&&s.match(dS),d=f&&n.match(m6),h=p&&o.match(g6);return d||h?5:f||p?4:a&&!c&&u?3:c||u?2:a||l?1:0}let r=1;for(;r<e.length-1;){if(e[r-1][0]===Qe&&e[r+1][0]===Qe){let n=e[r-1][1],o=e[r][1],i=e[r+1][1],s=Kx(n,o);if(s){let f=o.substring(o.length-s);n=n.substring(0,n.length-s),o=f+o.substring(0,o.length-s),i=f+i;}let a=n,l=o,c=i,u=t(n,o)+t(o,i);for(;o.charAt(0)===i.charAt(0);){n+=o.charAt(0),o=o.substring(1)+i.charAt(0),i=i.substring(1);let f=t(n,o)+t(o,i);f>=u&&(u=f,a=n,l=o,c=i);}e[r-1][1]!==a&&(a?e[r-1][1]=a:(e.splice(r-1,1),r--),e[r][1]=l,c?e[r+1][1]=c:(e.splice(r+1,1),r--));}r++;}}function Yx(e){e.push(new Ge(Qe,""));let t=0,r=0,n=0,o="",i="",s;for(;t<e.length;)switch(e[t][0]){case ct:n++,i+=e[t][1],t++;break;case bt:r++,o+=e[t][1],t++;break;case Qe:r+n>1?(r!==0&&n!==0&&(s=p6(i,o),s!==0&&(t-r-n>0&&e[t-r-n-1][0]===Qe?e[t-r-n-1][1]+=i.substring(0,s):(e.splice(0,0,new Ge(Qe,i.substring(0,s))),t++),i=i.substring(s),o=o.substring(s)),s=Kx(i,o),s!==0&&(e[t][1]=i.substring(i.length-s)+e[t][1],i=i.substring(0,i.length-s),o=o.substring(0,o.length-s))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new Ge(bt,o)),t++),i.length&&(e.splice(t,0,new Ge(ct,i)),t++),t++):t!==0&&e[t-1][0]===Qe?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",i="";break}e[e.length-1][1]===""&&e.pop();let a=!1;for(t=1;t<e.length-1;)e[t-1][0]===Qe&&e[t+1][0]===Qe&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),a=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),a=!0)),t++;a&&Yx(e);}var Jx="Compared values have no visual difference.",b6="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Xx={};Object.defineProperty(Xx,"__esModule",{value:!0});var Qx=Xx.default=_6,rs="diff-sequences",gt=0,us=(e,t,r,n,o)=>{let i=0;for(;e<t&&r<n&&o(e,r);)e+=1,r+=1,i+=1;return i},cs=(e,t,r,n,o)=>{let i=0;for(;e<=t&&r<=n&&o(t,n);)t-=1,n-=1,i+=1;return i},Kp=(e,t,r,n,o,i,s)=>{let a=0,l=-e,c=i[a],u=c;i[a]+=us(c+1,t,n+c-l+1,r,o);let f=e<s?e:s;for(a+=1,l+=2;a<=f;a+=1,l+=2){if(a!==e&&u<i[a])c=i[a];else if(c=u+1,t<=c)return a-1;u=i[a],i[a]=c+us(c+1,t,n+c-l+1,r,o);}return s},pS=(e,t,r,n,o,i,s)=>{let a=0,l=e,c=i[a],u=c;i[a]-=cs(t,c-1,r,n+c-l-1,o);let f=e<s?e:s;for(a+=1,l-=2;a<=f;a+=1,l-=2){if(a!==e&&i[a]<u)c=i[a];else if(c=u-1,c<t)return a-1;u=i[a],i[a]=c-cs(t,c-1,r,n+c-l-1,o);}return s},v6=(e,t,r,n,o,i,s,a,l,c,u)=>{let f=n-t,p=r-t,d=o-n-p,h=-d-(e-1),m=-d+(e-1),y=gt,g=e<a?e:a;for(let b=0,E=-e;b<=g;b+=1,E+=2){let _=b===0||b!==e&&y<s[b],T=_?s[b]:y,x=_?T:T+1,S=f+x-E,v=us(x+1,r,S+1,o,i),w=x+v;if(y=s[b],s[b]=w,h<=E&&E<=m){let I=(e-1-(E+d))/2;if(I<=c&&l[I]-1<=w){let C=f+T-(_?E+1:E-1),N=cs(t,T,n,C,i),L=T-N,q=C-N,H=L+1,z=q+1;u.nChangePreceding=e-1,e-1===H+z-t-n?(u.aEndPreceding=t,u.bEndPreceding=n):(u.aEndPreceding=H,u.bEndPreceding=z),u.nCommonPreceding=N,N!==0&&(u.aCommonPreceding=H,u.bCommonPreceding=z),u.nCommonFollowing=v,v!==0&&(u.aCommonFollowing=x+1,u.bCommonFollowing=S+1);let Z=w+1,Y=S+v+1;return u.nChangeFollowing=e-1,e-1===r+o-Z-Y?(u.aStartFollowing=r,u.bStartFollowing=o):(u.aStartFollowing=Z,u.bStartFollowing=Y),!0}}}return !1},w6=(e,t,r,n,o,i,s,a,l,c,u)=>{let f=o-r,p=r-t,d=o-n-p,h=d-e,m=d+e,y=gt,g=e<c?e:c;for(let b=0,E=e;b<=g;b+=1,E-=2){let _=b===0||b!==e&&l[b]<y,T=_?l[b]:y,x=_?T:T-1,S=f+x-E,v=cs(t,x-1,n,S-1,i),w=x-v;if(y=l[b],l[b]=w,h<=E&&E<=m){let I=(e+(E-d))/2;if(I<=a&&w-1<=s[I]){let C=S-v;if(u.nChangePreceding=e,e===w+C-t-n?(u.aEndPreceding=t,u.bEndPreceding=n):(u.aEndPreceding=w,u.bEndPreceding=C),u.nCommonPreceding=v,v!==0&&(u.aCommonPreceding=w,u.bCommonPreceding=C),u.nChangeFollowing=e-1,e===1)u.nCommonFollowing=0,u.aStartFollowing=r,u.bStartFollowing=o;else {let N=f+T-(_?E-1:E+1),L=us(T,r,N,o,i);u.nCommonFollowing=L,L!==0&&(u.aCommonFollowing=T,u.bCommonFollowing=N);let q=T+L,H=N+L;e-1===r+o-q-H?(u.aStartFollowing=r,u.bStartFollowing=o):(u.aStartFollowing=q,u.bStartFollowing=H);}return !0}}}return !1},E6=(e,t,r,n,o,i,s,a,l)=>{let c=n-t,u=o-r,f=r-t,p=o-n,d=p-f,h=f,m=f;if(s[0]=t-1,a[0]=r,d%2===0){let y=(e||d)/2,g=(f+p)/2;for(let b=1;b<=g;b+=1)if(h=Kp(b,r,o,c,i,s,h),b<y)m=pS(b,t,n,u,i,a,m);else if(w6(b,t,r,n,o,i,s,h,a,m,l))return}else {let y=((e||d)+1)/2,g=(f+p+1)/2,b=1;for(h=Kp(b,r,o,c,i,s,h),b+=1;b<=g;b+=1)if(m=pS(b-1,t,n,u,i,a,m),b<y)h=Kp(b,r,o,c,i,s,h);else if(v6(b,t,r,n,o,i,s,h,a,m,l))return}throw new Error(`${rs}: no overlap aStart=${t} aEnd=${r} bStart=${n} bEnd=${o}`)},Mh=(e,t,r,n,o,i,s,a,l,c)=>{if(o-n<r-t){if(i=!i,i&&s.length===1){let{foundSubsequence:I,isCommon:C}=s[0];s[1]={foundSubsequence:(N,L,q)=>{I(N,q,L);},isCommon:(N,L)=>C(L,N)};}let v=t,w=r;t=n,r=o,n=v,o=w;}let{foundSubsequence:u,isCommon:f}=s[i?1:0];E6(e,t,r,n,o,f,a,l,c);let{nChangePreceding:p,aEndPreceding:d,bEndPreceding:h,nCommonPreceding:m,aCommonPreceding:y,bCommonPreceding:g,nCommonFollowing:b,aCommonFollowing:E,bCommonFollowing:_,nChangeFollowing:T,aStartFollowing:x,bStartFollowing:S}=c;t<d&&n<h&&Mh(p,t,d,n,h,i,s,a,l,c),m!==0&&u(m,y,g),b!==0&&u(b,E,_),x<r&&S<o&&Mh(T,x,r,S,o,i,s,a,l,c);},hS=(e,t)=>{if(typeof t!="number")throw new TypeError(`${rs}: ${e} typeof ${typeof t} is not a number`);if(!Number.isSafeInteger(t))throw new RangeError(`${rs}: ${e} value ${t} is not a safe integer`);if(t<0)throw new RangeError(`${rs}: ${e} value ${t} is a negative integer`)},mS=(e,t)=>{let r=typeof t;if(r!=="function")throw new TypeError(`${rs}: ${e} typeof ${r} is not a function`)};function _6(e,t,r,n){hS("aLength",e),hS("bLength",t),mS("isCommon",r),mS("foundSubsequence",n);let o=us(0,e,0,t,r);if(o!==0&&n(o,0,0),e!==o||t!==o){let i=o,s=o,a=cs(i,e-1,s,t-1,r),l=e-a,c=t-a,u=o+a;e!==u&&t!==u&&Mh(0,i,l,s,c,!1,[{foundSubsequence:n,isCommon:r}],[gt],[gt],{aCommonFollowing:gt,aCommonPreceding:gt,aEndPreceding:gt,aStartFollowing:gt,bCommonFollowing:gt,bCommonPreceding:gt,bEndPreceding:gt,bStartFollowing:gt,nChangeFollowing:gt,nChangePreceding:gt,nCommonFollowing:gt,nCommonPreceding:gt}),a!==0&&n(a,l,c);}}function S6(e,t){return e.replace(/\s+$/,r=>t(r))}function rg(e,t,r,n,o,i){return e.length!==0?r(`${n} ${S6(e,o)}`):n!==" "?r(n):t&&i.length!==0?r(`${n} ${i}`):""}function Zx(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return rg(e,t,r,n,o,i)}function eA(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return rg(e,t,r,n,o,i)}function tA(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return rg(e,t,r,n,o,i)}function gS(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}function T6(e,t){let r=e.length,n=t.contextLines,o=n+n,i=r,s=!1,a=0,l=0;for(;l!==r;){let _=l;for(;l!==r&&e[l][0]===Qe;)l+=1;if(_!==l)if(_===0)l>n&&(i-=l-n,s=!0);else if(l===r){let T=l-_;T>n&&(i-=T-n,s=!0);}else {let T=l-_;T>o&&(i-=T-o,a+=1);}for(;l!==r&&e[l][0]!==Qe;)l+=1;}let c=a!==0||s;a!==0?i+=a+1:s&&(i+=1);let u=i-1,f=[],p=0;c&&f.push("");let d=0,h=0,m=0,y=0,g=_=>{let T=f.length;f.push(tA(_,T===0||T===u,t)),m+=1,y+=1;},b=_=>{let T=f.length;f.push(Zx(_,T===0||T===u,t)),m+=1;},E=_=>{let T=f.length;f.push(eA(_,T===0||T===u,t)),y+=1;};for(l=0;l!==r;){let _=l;for(;l!==r&&e[l][0]===Qe;)l+=1;if(_!==l)if(_===0){l>n&&(_=l-n,d=_,h=_,m=d,y=h);for(let T=_;T!==l;T+=1)g(e[T][1]);}else if(l===r){let T=l-_>n?_+n:l;for(let x=_;x!==T;x+=1)g(e[x][1]);}else {let T=l-_;if(T>o){let x=_+n;for(let v=_;v!==x;v+=1)g(e[v][1]);f[p]=gS(d,m,h,y,t),p=f.length,f.push("");let S=T-o;d=m+S,h=y+S,m=d,y=h;for(let v=l-n;v!==l;v+=1)g(e[v][1]);}else for(let x=_;x!==l;x+=1)g(e[x][1]);}for(;l!==r&&e[l][0]===bt;)b(e[l][1]),l+=1;for(;l!==r&&e[l][0]===ct;)E(e[l][1]),l+=1;}return c&&(f[p]=gS(d,m,h,y,t)),f.join(`
|
|
247
|
+
`)}function C6(e,t){return e.map((r,n,o)=>{let i=r[1],s=n===0||n===o.length-1;switch(r[0]){case bt:return Zx(i,s,t);case ct:return eA(i,s,t);default:return tA(i,s,t)}}).join(`
|
|
248
|
+
`)}var Yp=e=>e,rA=5,x6=0;function A6(){return {aAnnotation:"Expected",aColor:Xe.green,aIndicator:"-",bAnnotation:"Received",bColor:Xe.red,bIndicator:"+",changeColor:Xe.inverse,changeLineTrailingSpaceColor:Yp,commonColor:Xe.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Yp,compareKeys:void 0,contextLines:rA,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:Xe.yellow,truncateThreshold:x6,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Yp}}function P6(e){return e&&typeof e=="function"?e:void 0}function O6(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:rA}function Wn(e={}){return {...A6(),...e,compareKeys:P6(e.compareKeys),contextLines:O6(e.contextLines)}}function qo(e){return e.length===1&&e[0].length===0}function R6(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case bt:t+=1;break;case ct:r+=1;break}}),{a:t,b:r}}function M6({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:i,includeChangeCounts:s,omitAnnotationLines:a},l){if(a)return "";let c="",u="";if(s){let d=String(l.a),h=String(l.b),m=n.length-e.length,y=" ".repeat(Math.max(0,m)),g=" ".repeat(Math.max(0,-m)),b=h.length-d.length,E=" ".repeat(Math.max(0,b)),_=" ".repeat(Math.max(0,-b));c=`${y} ${r} ${E}${d}`,u=`${g} ${i} ${_}${h}`;}let f=`${r} ${e}${c}`,p=`${i} ${n}${u}`;return `${t(f)}
|
|
249
|
+
${o(p)}
|
|
250
|
+
|
|
251
|
+
`}function ng(e,t,r){return M6(r,R6(e))+(r.expand?C6(e,r):T6(e,r))+(t?r.truncateAnnotationColor(`
|
|
252
|
+
${r.truncateAnnotation}`):"")}function Ou(e,t,r){let n=Wn(r),[o,i]=nA(qo(e)?[]:e,qo(t)?[]:t,n);return ng(o,i,n)}function I6(e,t,r,n,o){if(qo(e)&&qo(r)&&(e=[],r=[]),qo(t)&&qo(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return Ou(e,t,o);let[i,s]=nA(r,n,o),a=0,l=0;return i.forEach(c=>{switch(c[0]){case bt:c[1]=e[a],a+=1;break;case ct:c[1]=t[l],l+=1;break;default:c[1]=t[l],a+=1,l+=1;}}),ng(i,s,Wn(o))}function nA(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),i=n?Math.min(e.length,o):e.length,s=n?Math.min(t.length,o):t.length,a=i!==e.length||s!==t.length,l=(p,d)=>e[p]===t[d],c=[],u=0,f=0;for(Qx(i,s,l,(p,d,h)=>{for(;u!==d;u+=1)c.push(new Ge(bt,e[u]));for(;f!==h;f+=1)c.push(new Ge(ct,t[f]));for(;p!==0;p-=1,u+=1,f+=1)c.push(new Ge(Qe,t[f]));});u!==i;u+=1)c.push(new Ge(bt,e[u]));for(;f!==s;f+=1)c.push(new Ge(ct,t[f]));return [c,a]}function yS(e){return e.includes(`\r
|
|
253
|
+
`)?`\r
|
|
254
|
+
`:`
|
|
255
|
+
`}function N6(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),i=e.length,s=t.length;if(n){let p=e.includes(`
|
|
256
|
+
`),d=t.includes(`
|
|
257
|
+
`),h=yS(e),m=yS(t),y=p?`${e.split(h,o).join(h)}
|
|
258
|
+
`:e,g=d?`${t.split(m,o).join(m)}
|
|
259
|
+
`:t;i=y.length,s=g.length;}let a=i!==e.length||s!==t.length,l=(p,d)=>e[p]===t[d],c=0,u=0,f=[];return Qx(i,s,l,(p,d,h)=>{c!==d&&f.push(new Ge(bt,e.slice(c,d))),u!==h&&f.push(new Ge(ct,t.slice(u,h))),c=d+p,u=h+p,f.push(new Ge(Qe,t.slice(h,u)));}),c!==i&&f.push(new Ge(bt,e.slice(c))),u!==s&&f.push(new Ge(ct,t.slice(u))),[f,a]}function j6(e,t,r){return t.reduce((n,o)=>n+(o[0]===Qe?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}var bS=class{op;line;lines;changeColor;constructor(e,t){this.op=e,this.line=[],this.lines=[],this.changeColor=t;}pushSubstring(e){this.pushDiff(new Ge(this.op,e));}pushLine(){this.lines.push(this.line.length!==1?new Ge(this.op,j6(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new Ge(this.op,this.line[0][1])),this.line.length=0;}isLineEmpty(){return this.line.length===0}pushDiff(e){this.line.push(e);}align(e){let t=e[1];if(t.includes(`
|
|
260
|
+
`)){let r=t.split(`
|
|
261
|
+
`),n=r.length-1;r.forEach((o,i)=>{i<n?(this.pushSubstring(o),this.pushLine()):o.length!==0&&this.pushSubstring(o);});}else this.pushDiff(e);}moveLinesTo(e){this.isLineEmpty()||this.pushLine(),e.push(...this.lines),this.lines.length=0;}},q6=class{deleteBuffer;insertBuffer;lines;constructor(e,t){this.deleteBuffer=e,this.insertBuffer=t,this.lines=[];}pushDiffCommonLine(e){this.lines.push(e);}pushDiffChangeLines(e){let t=e[1].length===0;(!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],r=e[1];if(r.includes(`
|
|
262
|
+
`)){let n=r.split(`
|
|
263
|
+
`),o=n.length-1;n.forEach((i,s)=>{if(s===0){let a=new Ge(t,i);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(a)):(this.pushDiffChangeLines(a),this.flushChangeLines());}else s<o?this.pushDiffCommonLine(new Ge(t,i)):i.length!==0&&this.pushDiffChangeLines(new Ge(t,i));});}else this.pushDiffChangeLines(e);}getLines(){return this.flushChangeLines(),this.lines}};function $6(e,t){let r=new bS(bt,t),n=new bS(ct,t),o=new q6(r,n);return e.forEach(i=>{switch(i[0]){case bt:r.align(i);break;case ct:n.align(i);break;default:o.align(i);}}),o.getLines()}function k6(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===Qe&&(o!==r||n[1]!==`
|
|
264
|
+
`))}return e.some(r=>r[0]===Qe)}function D6(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
|
|
265
|
+
`)||t.includes(`
|
|
266
|
+
`),[o,i]=oA(n?`${e}
|
|
267
|
+
`:e,n?`${t}
|
|
268
|
+
`:t,!0,r);if(k6(o,n)){let s=Wn(r),a=$6(o,s.changeColor);return ng(a,i,s)}}return Ou(e.split(`
|
|
269
|
+
`),t.split(`
|
|
270
|
+
`),r)}function oA(e,t,r,n){let[o,i]=N6(e,t,n);return h6(o),[o,i]}function Ih(e,t){let{commonColor:r}=Wn(t);return r(e)}var{AsymmetricMatcher:L6,DOMCollection:B6,DOMElement:F6,Immutable:U6,ReactElement:z6,ReactTestComponent:V6}=Hx,iA=[V6,z6,F6,B6,U6,L6],Nh={plugins:iA},sA={callToJSON:!1,maxDepth:10,plugins:iA};function Wo(e,t,r){if(Object.is(e,t))return "";let n=lS(e),o=n,i=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),i=o==="string";}if(o!==lS(t)){let{aAnnotation:s,aColor:a,aIndicator:l,bAnnotation:c,bColor:u,bIndicator:f}=Wn(r),p=jh(sA,r),d=vr(e,p),h=vr(t,p),m=`${a(`${l} ${s}:`)}
|
|
271
|
+
${d}`,y=`${u(`${f} ${c}:`)}
|
|
272
|
+
${h}`;return `${m}
|
|
273
|
+
|
|
274
|
+
${y}`}if(!i)switch(n){case"string":return Ou(e.split(`
|
|
275
|
+
`),t.split(`
|
|
276
|
+
`),r);case"boolean":case"number":return H6(e,t,r);case"map":return Jp(vS(e),vS(t),r);case"set":return Jp(wS(e),wS(t),r);default:return Jp(e,t,r)}}function H6(e,t,r){let n=vr(e,Nh),o=vr(t,Nh);return n===o?"":Ou(n.split(`
|
|
277
|
+
`),o.split(`
|
|
278
|
+
`),r)}function vS(e){return new Map(Array.from(e.entries()).sort())}function wS(e){return new Set(Array.from(e.values()).sort())}function Jp(e,t,r){let n,o=!1;try{let s=jh(Nh,r);n=ES(e,t,s,r);}catch{o=!0;}let i=Ih(Jx,r);if(n===void 0||n===i){let s=jh(sA,r);n=ES(e,t,s,r),n!==i&&!o&&(n=`${Ih(b6,r)}
|
|
279
|
+
|
|
280
|
+
${n}`);}return n}function jh(e,t){let{compareKeys:r}=Wn(t);return {...e,compareKeys:r}}function ES(e,t,r,n){let o={...r,indent:0},i=vr(e,o),s=vr(t,o);if(i===s)return Ih(Jx,n);{let a=vr(e,r),l=vr(t,r);return I6(a.split(`
|
|
281
|
+
`),l.split(`
|
|
282
|
+
`),i.split(`
|
|
283
|
+
`),s.split(`
|
|
284
|
+
`),n)}}var _S=2e4;function SS(e){return Ah(e)==="Object"&&typeof e.asymmetricMatch=="function"}function TS(e,t){let r=Ah(e),n=Ah(t);return r===n&&(r==="Object"||r==="Array")}function aA(e,t,r){let{aAnnotation:n,bAnnotation:o}=Wn(r);if(typeof e=="string"&&typeof t=="string"&&e.length>0&&t.length>0&&e.length<=_S&&t.length<=_S&&e!==t){if(e.includes(`
|
|
285
|
+
`)||t.includes(`
|
|
286
|
+
`))return D6(t,e,r);let[c]=oA(t,e),u=c.some(h=>h[0]===Qe),f=W6(n,o),p=f(n)+Y6(CS(c,bt,u)),d=f(o)+K6(CS(c,ct,u));return `${p}
|
|
287
|
+
${d}`}let i=F_(e,{forceWritable:!0}),s=F_(t,{forceWritable:!0}),{replacedExpected:a,replacedActual:l}=lA(i,s);return Wo(a,l,r)}function lA(e,t,r=new WeakSet,n=new WeakSet){return TS(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),Sx(t).forEach(o=>{let i=t[o],s=e[o];if(SS(i))i.asymmetricMatch(s)&&(e[o]=i);else if(SS(s))s.asymmetricMatch(i)&&(t[o]=s);else if(TS(s,i)){let a=lA(s,i,r,n);e[o]=a.replacedActual,t[o]=a.replacedExpected;}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function W6(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}var G6="\xB7";function uA(e){return e.replace(/\s+$/gm,t=>G6.repeat(t.length))}function K6(e){return Xe.red(uA(Kt(e)))}function Y6(e){return Xe.green(uA(Kt(e)))}function CS(e,t,r){return e.reduce((n,o)=>n+(o[0]===Qe?o[1]:o[0]===t?r?Xe.inverse(o[1]):o[1]:""),"")}function Dl(e,t){if(!e)throw new Error(t)}function $o(e,t){return typeof t===e}function J6(e){return e instanceof Promise}function qh(e,t,r){Object.defineProperty(e,t,r);}function Lo(e,t,r){Object.defineProperty(e,t,{value:r});}var ns=Symbol.for("tinyspy:spy"),X6=new Set,Q6=e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[];},Z6=e=>(qh(e,ns,{value:{reset:()=>Q6(e[ns])}}),e[ns]),Xl=e=>e[ns]||Z6(e);function eH(e){Dl($o("function",e)||$o("undefined",e),"cannot spy on a non-function value");let t=function(...n){let o=Xl(t);o.called=!0,o.callCount++,o.calls.push(n);let i=o.next.shift();if(i){o.results.push(i);let[u,f]=i;if(u==="ok")return f;throw f}let s,a="ok",l=o.results.length;if(o.impl)try{new.target?s=Reflect.construct(o.impl,n,new.target):s=o.impl.apply(this,n),a="ok";}catch(u){throw s=u,a="error",o.results.push([a,u]),u}let c=[a,s];return J6(s)&&s.then(u=>o.resolves[l]=["ok",u],u=>o.resolves[l]=["error",u]),o.results.push(c),s};Lo(t,"_isMockFunction",!0),Lo(t,"length",e?e.length:0),Lo(t,"name",e&&e.name||"spy");let r=Xl(t);return r.reset(),r.impl=e,t}var xS=(e,t)=>Object.getOwnPropertyDescriptor(e,t),AS=(e,t)=>{t!=null&&typeof t=="function"&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype);};function tH(e,t,r){Dl(!$o("undefined",e),"spyOn could not find an object to spy upon"),Dl($o("object",e)||$o("function",e),"cannot spyOn on a primitive value");let[n,o]=(()=>{if(!$o("object",t))return [t,"value"];if("getter"in t&&"setter"in t)throw new Error("cannot spy on both getter and setter");if("getter"in t)return [t.getter,"get"];if("setter"in t)return [t.setter,"set"];throw new Error("specify getter or setter to spy on")})(),i=xS(e,n),s=Object.getPrototypeOf(e),a=s&&xS(s,n),l=i||a;Dl(l||n in e,`${String(n)} does not exist`);let c=!1;o==="value"&&l&&!l.value&&l.get&&(o="get",c=!0,r=l.get());let u;l?u=l[o]:o!=="value"?u=()=>e[n]:u=e[n],r||(r=u);let f=eH(r);o==="value"&&AS(f,u);let p=m=>{let{value:y,...g}=l||{configurable:!0,writable:!0};o!=="value"&&delete g.writable,g[o]=m,qh(e,n,g);},d=()=>l?qh(e,n,l):p(u),h=f[ns];return Lo(h,"restore",d),Lo(h,"getOriginal",()=>c?u():u),Lo(h,"willCall",m=>(h.impl=m,f)),p(c?()=>(AS(f,r),f):f),X6.add(f),f}var Ru=new Set;function cA(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction}var rH=0;function nH(e){let t=e,r,n=[],o=[],i=[],s=Xl(e),a={get calls(){return s.calls},get contexts(){return o},get instances(){return n},get invocationCallOrder(){return i},get results(){return s.results.map(([d,h])=>({type:d==="error"?"throw":"return",value:h}))},get settledResults(){return s.resolves.map(([d,h])=>({type:d==="error"?"rejected":"fulfilled",value:h}))},get lastCall(){return s.calls[s.calls.length-1]}},l=[],c=!1;function u(...d){return n.push(this),o.push(this),i.push(++rH),(c?r:l.shift()||r||s.getOriginal()||(()=>{})).apply(this,d)}let f=t.name;t.getMockName=()=>f||"vi.fn()",t.mockName=d=>(f=d,t),t.mockClear=()=>(s.reset(),n=[],o=[],i=[],t),t.mockReset=()=>(t.mockClear(),r=()=>{},l=[],t),t.mockRestore=()=>(t.mockReset(),s.restore(),r=void 0,t),t.getMockImplementation=()=>r,t.mockImplementation=d=>(r=d,s.willCall(u),t),t.mockImplementationOnce=d=>(l.push(d),t);function p(d,h){let m=r;r=d,s.willCall(u),c=!0;let y=()=>{r=m,c=!1;},g=h();return g instanceof Promise?g.then(()=>(y(),t)):(y(),t)}return t.withImplementation=p,t.mockReturnThis=()=>t.mockImplementation(function(){return this}),t.mockReturnValue=d=>t.mockImplementation(()=>d),t.mockReturnValueOnce=d=>t.mockImplementationOnce(()=>d),t.mockResolvedValue=d=>t.mockImplementation(()=>Promise.resolve(d)),t.mockResolvedValueOnce=d=>t.mockImplementationOnce(()=>Promise.resolve(d)),t.mockRejectedValue=d=>t.mockImplementation(()=>Promise.reject(d)),t.mockRejectedValueOnce=d=>t.mockImplementationOnce(()=>Promise.reject(d)),Object.defineProperty(t,"mock",{get:()=>a}),s.willCall(u),Ru.add(t),t}function PS(e){let t=nH(tH({spy:e||function(){}},"spy"));return e&&t.mockImplementation(e),t}var oH="@@__IMMUTABLE_RECORD__@@",iH="@@__IMMUTABLE_ITERABLE__@@";function sH(e){return e&&(e[iH]||e[oH])}var aH=Object.getPrototypeOf({});function OS(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function ko(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(typeof e=="function")return `Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(sH(e))return ko(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return "Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return `${e.toString()} ${d6(e.sample)}`;if(typeof e.toJSON=="function")return ko(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,o)=>{try{r[o]=ko(n,t);}catch(i){r[o]=OS(i);}}),r}else {let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==aH;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=ko(e[o],t);}catch(i){delete r[o],r[o]=OS(i);}}),n=Object.getPrototypeOf(n);return r}}function lH(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function fA(e,t,r=new WeakSet){if(!e||typeof e!="object")return {message:String(e)};let n=e;n.stack&&(n.stackStr=String(n.stack)),n.name&&(n.nameStr=String(n.name)),(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=aA(n.actual,n.expected,{...t,...n.diffOptions})),typeof n.expected!="string"&&(n.expected=Kt(n.expected,10)),typeof n.actual!="string"&&(n.actual=Kt(n.actual,10));try{typeof n.message=="string"&&(n.message=lH(n.message));}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=fA(n.cause,t,r));}catch{}try{return ko(n)}catch(o){return ko(new Error(`Failed to fully serialize error: ${o?.message}
|
|
288
|
+
Inner error message: ${n?.message}`))}}var fs=Symbol.for("matchers-object"),ds=Symbol.for("$$jest-matchers-object-storybook"),og=Symbol.for("expect-global"),$h=Symbol.for("asymmetric-matchers-object");if(!Object.prototype.hasOwnProperty.call(globalThis,fs)){let e=new WeakMap;Object.defineProperty(globalThis,fs,{get:()=>e});}if(!Object.prototype.hasOwnProperty.call(globalThis,ds)){let e=Object.create(null),t=[];Object.defineProperty(globalThis,ds,{configurable:!0,get:()=>({state:globalThis[fs].get(globalThis[og]),matchers:e,customEqualityTesters:t})});}if(!Object.prototype.hasOwnProperty.call(globalThis,$h)){let e=Object.create(null);Object.defineProperty(globalThis,$h,{get:()=>e});}function Ql(e){return globalThis[fs].get(e)}function Xp(e,t){let r=globalThis[fs],n=r.get(t)||{};Object.assign(n,e),r.set(t,n);}var Zl=Xe.green,ig=Xe.red,uH=Xe.inverse,cH=Xe.bold,an=Xe.dim;function fH(e,t="received",r="expected",n={}){let{comment:o="",isDirectExpectCall:i=!1,isNot:s=!1,promise:a="",secondArgument:l="",expectedColor:c=Zl,receivedColor:u=ig,secondArgumentColor:f=Zl}=n,p="",d="expect";return !i&&t!==""&&(p+=an(`${d}(`)+u(t),d=")"),a!==""&&(p+=an(`${d}.`)+a,d=""),s&&(p+=`${an(`${d}.`)}not`,d=""),e.includes(".")?d+=e:(p+=an(`${d}.`)+e,d=""),r===""?d+="()":(p+=an(`${d}(`)+c(r),l&&(p+=an(", ")+f(l)),d=")"),o!==""&&(d+=` // ${o}`),d!==""&&(p+=an(d)),p}var dH="\xB7";function dA(e){return e.replace(/\s+$/gm,t=>dH.repeat(t.length))}function pH(e){return ig(dA(Kt(e)))}function hH(e){return Zl(dA(Kt(e)))}function pA(){return {EXPECTED_COLOR:Zl,RECEIVED_COLOR:ig,INVERTED_COLOR:uH,BOLD_WEIGHT:cH,DIM_COLOR:an,diff:Wo,matcherHint:fH,printReceived:pH,printExpected:hH,printDiffOrStringify:aA}}function sg(){return globalThis[ds].customEqualityTesters}function Oe(e,t,r,n){return r=r||[],hA(e,t,[],[],r,n?mA:gH)}function RS(e){return !!e&&typeof e=="object"&&"asymmetricMatch"in e&&lr("Function",e.asymmetricMatch)}function mH(e,t){let r=RS(e),n=RS(t);if(!(r&&n)){if(r)return e.asymmetricMatch(t);if(n)return t.asymmetricMatch(e)}}function hA(e,t,r,n,o,i){let s=!0,a=mH(e,t);if(a!==void 0)return a;let l={equals:Oe};for(let h=0;h<o.length;h++){let m=o[h].call(l,e,t,o);if(m!==void 0)return m}if(e instanceof Error&&t instanceof Error)return e.message===t.message;if(typeof URL=="function"&&e instanceof URL&&t instanceof URL)return e.href===t.href;if(Object.is(e,t))return !0;if(e===null||t===null)return e===t;let c=Object.prototype.toString.call(e);if(c!==Object.prototype.toString.call(t))return !1;switch(c){case"[object Boolean]":case"[object String]":case"[object Number]":return typeof e!=typeof t?!1:typeof e!="object"&&typeof t!="object"?Object.is(e,t):Object.is(e.valueOf(),t.valueOf());case"[object Date]":{let h=+e,m=+t;return h===m||Number.isNaN(h)&&Number.isNaN(m)}case"[object RegExp]":return e.source===t.source&&e.flags===t.flags}if(typeof e!="object"||typeof t!="object")return !1;if(IS(e)&&IS(t))return e.isEqualNode(t);let u=r.length;for(;u--;){if(r[u]===e)return n[u]===t;if(n[u]===t)return !1}if(r.push(e),n.push(t),c==="[object Array]"&&e.length!==t.length)return !1;let f=MS(e,i),p,d=f.length;if(MS(t,i).length!==d)return !1;for(;d--;)if(p=f[d],s=i(t,p)&&hA(e[p],t[p],r,n,o,i),!s)return !1;return r.pop(),n.pop(),s}function MS(e,t){let r=[];for(let n in e)t(e,n)&&r.push(n);return r.concat(Object.getOwnPropertySymbols(e).filter(n=>Object.getOwnPropertyDescriptor(e,n).enumerable))}function gH(e,t){return mA(e,t)&&e[t]!==void 0}function mA(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function lr(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function IS(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&"nodeName"in e&&typeof e.nodeName=="string"&&"isEqualNode"in e&&typeof e.isEqualNode=="function"}var gA="@@__IMMUTABLE_KEYED__@@",yA="@@__IMMUTABLE_SET__@@",yH="@@__IMMUTABLE_LIST__@@",Mu="@@__IMMUTABLE_ORDERED__@@",bH="@@__IMMUTABLE_RECORD__@@";function vH(e){return !!(e&&e[gA]&&!e[Mu])}function wH(e){return !!(e&&e[yA]&&!e[Mu])}function Iu(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function EH(e){return !!(e&&Iu(e)&&e[yH])}function _H(e){return !!(e&&Iu(e)&&e[gA]&&e[Mu])}function SH(e){return !!(e&&Iu(e)&&e[yA]&&e[Mu])}function TH(e){return !!(e&&Iu(e)&&e[bH])}var bA=Symbol.iterator;function NS(e){return !!(e!=null&&e[bA])}function $t(e,t,r=[],n=[],o=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!NS(e)||!NS(t))return;if(e.constructor!==t.constructor)return !1;let i=n.length;for(;i--;)if(n[i]===e)return o[i]===t;n.push(e),o.push(t);let s=[...r.filter(c=>c!==$t),a];function a(c,u){return $t(c,u,[...r],[...n],[...o])}if(e.size!==void 0){if(e.size!==t.size)return !1;if(lr("Set",e)||wH(e)){let c=!0;for(let u of e)if(!t.has(u)){let f=!1;for(let p of t)Oe(u,p,s)===!0&&(f=!0);if(f===!1){c=!1;break}}return n.pop(),o.pop(),c}else if(lr("Map",e)||vH(e)){let c=!0;for(let u of e)if(!t.has(u[0])||!Oe(u[1],t.get(u[0]),s)){let f=!1;for(let p of t){let d=Oe(u[0],p[0],s),h=!1;d===!0&&(h=Oe(u[1],p[1],s)),h===!0&&(f=!0);}if(f===!1){c=!1;break}}return n.pop(),o.pop(),c}}let l=t[bA]();for(let c of e){let u=l.next();if(u.done||!Oe(c,u.value,s))return !1}if(!l.next().done)return !1;if(!EH(e)&&!_H(e)&&!SH(e)&&!TH(e)){let c=Object.entries(e),u=Object.entries(t);if(!Oe(c,u))return !1}return n.pop(),o.pop(),!0}function ag(e,t){return !e||typeof e!="object"||e===Object.prototype?!1:Object.prototype.hasOwnProperty.call(e,t)||ag(Object.getPrototypeOf(e),t)}function CH(e){return $l(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}function As(e,t,r=[]){let n=r.filter(i=>i!==As),o=(i=new WeakMap)=>(s,a)=>{if(CH(a))return Object.keys(a).every(l=>{if(a[l]!=null&&typeof a[l]=="object"){if(i.has(a[l]))return Oe(s[l],a[l],n);i.set(a[l],!0);}let c=s!=null&&ag(s,l)&&Oe(s[l],a[l],[...n,o(i)]);return i.delete(a[l]),c})};return o()(e,t)}function jS(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return !1}function qS(e,t){let r=e,n=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{r=new DataView(e),n=new DataView(t);}catch{return}}if(r.byteLength!==n.byteLength)return !1;for(let o=0;o<r.byteLength;o++)if(r.getUint8(o)!==n.getUint8(o))return !1;return !0}function kh(e,t,r=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let n=Object.keys(e),o=Object.keys(t),i=r.filter(s=>s!==kh);return Oe(e,t,i,!0)&&Oe(n,o)}function xH(e,t="#{this}",r="#{exp}"){let n=`expected ${t} to be ${r} // Object.is equality`;return ["toStrictEqual","toEqual"].includes(e)?`${n}
|
|
289
|
+
|
|
290
|
+
If it should pass with deep equality, replace "toBe" with "${e}"
|
|
291
|
+
|
|
292
|
+
Expected: ${t}
|
|
293
|
+
Received: serializes to the same string
|
|
294
|
+
`:n}function AH(e,t){return `${t} ${e}${t===1?"":"s"}`}function Qp(e){return [...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>{var r;return (r=Object.getOwnPropertyDescriptor(e,t))==null?void 0:r.enumerable})]}function PH(e,t,r=[]){let n=0,o=(i=new WeakMap)=>(s,a)=>{if(Array.isArray(s)){if(Array.isArray(a)&&a.length===s.length)return a.map((l,c)=>o(i)(s[c],l))}else {if(s instanceof Date)return s;if($l(s)&&$l(a)){if(Oe(s,a,[...r,$t,As]))return a;let l={};i.set(s,l);for(let c of Qp(s))ag(a,c)?l[c]=i.has(s[c])?i.get(s[c]):o(i)(s[c],a[c]):i.has(s[c])||(n+=1,$l(s[c])&&(n+=Qp(s[c]).length),o(i)(s[c],a[c]));if(Qp(l).length>0)return l}}return s};return {subset:o()(e,t),stripped:n}}var gn=class{constructor(e,t=!1){this.sample=e,this.inverse=t;}$$typeof=Symbol.for("jest.asymmetricMatcher");getMatcherContext(e){return {...Ql(e||globalThis[og]),equals:Oe,isNot:this.inverse,customTesters:sg(),utils:{...pA(),diff:Wo,stringify:Kt,iterableEquality:$t,subsetEquality:As}}}[Symbol.for("chai/inspect")](e){let t=Kt(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{\u2026}`}},$S=class extends gn{constructor(e,t=!1){if(!lr("String",e))throw new Error("Expected is not a string");super(e,t);}asymmetricMatch(e){let t=lr("String",e)&&e.includes(this.sample);return this.inverse?!t:t}toString(){return `String${this.inverse?"Not":""}Containing`}getExpectedType(){return "string"}},OH=class extends gn{asymmetricMatch(e){return e!=null}toString(){return "Anything"}toAsymmetricMatcher(){return "Anything"}},kS=class extends gn{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.prototype.hasOwnProperty.call(e,t)?!0:this.hasProperty(this.getPrototype(e),t):!1}asymmetricMatch(e){if(typeof this.sample!="object")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let t=!0,r=this.getMatcherContext();for(let n in this.sample)if(!this.hasProperty(e,n)||!Oe(this.sample[n],e[n],r.customTesters)){t=!1;break}return this.inverse?!t:t}toString(){return `Object${this.inverse?"Not":""}Containing`}getExpectedType(){return "object"}},DS=class extends gn{constructor(e,t=!1){super(e,t);}asymmetricMatch(e){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let t=this.getMatcherContext(),r=this.sample.length===0||Array.isArray(e)&&this.sample.every(n=>e.some(o=>Oe(n,o,t.customTesters)));return this.inverse?!r:r}toString(){return `Array${this.inverse?"Not":""}Containing`}getExpectedType(){return "array"}},RH=class extends gn{constructor(e){if(typeof e>"u")throw new 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?typeof e=="string"||e instanceof String:this.sample===Number?typeof e=="number"||e instanceof Number:this.sample===Function?typeof e=="function"||e instanceof Function:this.sample===Boolean?typeof e=="boolean"||e instanceof Boolean:this.sample===BigInt?typeof e=="bigint"||e instanceof BigInt:this.sample===Symbol?typeof e=="symbol"||e instanceof Symbol:this.sample===Object?typeof e=="object":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)}>`}},LS=class extends gn{constructor(e,t=!1){if(!lr("String",e)&&!lr("RegExp",e))throw new Error("Expected is not a String or a RegExp");super(new RegExp(e),t);}asymmetricMatch(e){let t=lr("String",e)&&this.sample.test(e);return this.inverse?!t:t}toString(){return `String${this.inverse?"Not":""}Matching`}getExpectedType(){return "string"}},BS=class extends gn{precision;constructor(e,t=2,r=!1){if(!lr("Number",e))throw new Error("Expected is not a Number");if(!lr("Number",t))throw new Error("Precision is not a Number");super(e),this.inverse=r,this.precision=t;}asymmetricMatch(e){if(!lr("Number",e))return !1;let t=!1;return e===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||e===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?t=!0:t=Math.abs(this.sample-e)<10**-this.precision/2,this.inverse?!t:t}toString(){return `Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return "number"}toAsymmetricMatcher(){return [this.toString(),this.sample,`(${AH("digit",this.precision)})`].join(" ")}},MH=(e,t)=>{t.addMethod(e.expect,"anything",()=>new OH),t.addMethod(e.expect,"any",r=>new RH(r)),t.addMethod(e.expect,"stringContaining",r=>new $S(r)),t.addMethod(e.expect,"objectContaining",r=>new kS(r)),t.addMethod(e.expect,"arrayContaining",r=>new DS(r)),t.addMethod(e.expect,"stringMatching",r=>new LS(r)),t.addMethod(e.expect,"closeTo",(r,n)=>new BS(r,n)),e.expect.not={stringContaining:r=>new $S(r,!0),objectContaining:r=>new kS(r,!0),arrayContaining:r=>new DS(r,!0),stringMatching:r=>new LS(r,!0),closeTo:(r,n)=>new BS(r,n,!0)};};function FS(e,t){return e&&t instanceof Promise&&(t=t.finally(()=>{let r=e.promises.indexOf(t);r!==-1&&e.promises.splice(r,1);}),e.promises||(e.promises=[]),e.promises.push(t)),t}function vA(e,t){return function(...r){var n;if(!e.flag(this,"soft"))return t.apply(this,r);let o=e.flag(this,"vitest-test");if(!o)throw new Error("expect.soft() can only be used inside a test");try{return t.apply(this,r)}catch(i){o.result||(o.result={state:"fail"}),o.result.state="fail",(n=o.result).errors||(n.errors=[]),o.result.errors.push(fA(i));}}}var IH=(e,t)=>{let{AssertionError:r}=e,n=sg();function o(u,f){let p=d=>{let h=vA(t,f);t.addMethod(e.Assertion.prototype,d,h),t.addMethod(globalThis[ds].matchers,d,h);};Array.isArray(u)?u.forEach(d=>p(d)):p(u);}["throw","throws","Throw"].forEach(u=>{t.overwriteMethod(e.Assertion.prototype,u,f=>function(...p){let d=t.flag(this,"promise"),h=t.flag(this,"object"),m=t.flag(this,"negate");if(d==="rejects")t.flag(this,"object",()=>{throw h});else if(d==="resolves"&&typeof h!="function"){if(m)return;{let y=t.flag(this,"message")||"expected promise to throw an error, but it didn't",g={showDiff:!1};throw new r(y,g,t.flag(this,"ssfi"))}}f.apply(this,p);});}),o("withTest",function(u){return t.flag(this,"vitest-test",u),this}),o("toEqual",function(u){let f=t.flag(this,"object"),p=Oe(f,u,[...n,$t]);return this.assert(p,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",u,f)}),o("toStrictEqual",function(u){let f=t.flag(this,"object"),p=Oe(f,u,[...n,$t,jS,kh,qS],!0);return this.assert(p,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",u,f)}),o("toBe",function(u){let f=this._obj,p=Object.is(f,u),d="";return p||(Oe(f,u,[...n,$t,jS,kh,qS],!0)?d="toStrictEqual":Oe(f,u,[...n,$t])&&(d="toEqual")),this.assert(p,xH(d),"expected #{this} not to be #{exp} // Object.is equality",u,f)}),o("toMatchObject",function(u){let f=this._obj,p=Oe(f,u,[...n,$t,As]),d=t.flag(this,"negate"),{subset:h,stripped:m}=PH(f,u);if(p&&d||!p&&!d){let y=t.getMessage(this,[p,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",u,h,!1]),g=m===0?y:`${y}
|
|
295
|
+
(${m} matching ${m===1?"property":"properties"} omitted from actual)`;throw new r(g,{showDiff:!0,expected:u,actual:h})}}),o("toMatch",function(u){let f=this._obj;if(typeof f!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof f}`);return this.assert(typeof u=="string"?f.includes(u):f.match(u),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",u,f)}),o("toContain",function(u){let f=this._obj;if(typeof Node<"u"&&f instanceof Node){if(!(u instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof u}`);return this.assert(f.contains(u),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",u,f)}if(typeof DOMTokenList<"u"&&f instanceof DOMTokenList){Ir(u,"class name",["string"]);let p=t.flag(this,"negate")?f.value.replace(u,"").trim():`${f.value} ${u}`;return this.assert(f.contains(u),`expected "${f.value}" to contain "${u}"`,`expected "${f.value}" not to contain "${u}"`,p,f.value)}return typeof f=="string"&&typeof u=="string"?this.assert(f.includes(u),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",u,f):(f!=null&&typeof f!="string"&&t.flag(this,"object",Array.from(f)),this.contain(u))}),o("toContainEqual",function(u){let f=t.flag(this,"object"),p=Array.from(f).findIndex(d=>Oe(d,u,n));this.assert(p!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",u);}),o("toBeTruthy",function(){let u=t.flag(this,"object");this.assert(!!u,"expected #{this} to be truthy","expected #{this} to not be truthy",u,!1);}),o("toBeFalsy",function(){let u=t.flag(this,"object");this.assert(!u,"expected #{this} to be falsy","expected #{this} to not be falsy",u,!1);}),o("toBeGreaterThan",function(u){let f=this._obj;return Ir(f,"actual",["number","bigint"]),Ir(u,"expected",["number","bigint"]),this.assert(f>u,`expected ${f} to be greater than ${u}`,`expected ${f} to be not greater than ${u}`,f,u,!1)}),o("toBeGreaterThanOrEqual",function(u){let f=this._obj;return Ir(f,"actual",["number","bigint"]),Ir(u,"expected",["number","bigint"]),this.assert(f>=u,`expected ${f} to be greater than or equal to ${u}`,`expected ${f} to be not greater than or equal to ${u}`,f,u,!1)}),o("toBeLessThan",function(u){let f=this._obj;return Ir(f,"actual",["number","bigint"]),Ir(u,"expected",["number","bigint"]),this.assert(f<u,`expected ${f} to be less than ${u}`,`expected ${f} to be not less than ${u}`,f,u,!1)}),o("toBeLessThanOrEqual",function(u){let f=this._obj;return Ir(f,"actual",["number","bigint"]),Ir(u,"expected",["number","bigint"]),this.assert(f<=u,`expected ${f} to be less than or equal to ${u}`,`expected ${f} to be not less than or equal to ${u}`,f,u,!1)}),o("toBeNaN",function(){return this.be.NaN}),o("toBeUndefined",function(){return this.be.undefined}),o("toBeNull",function(){return this.be.null}),o("toBeDefined",function(){let u=t.flag(this,"negate");return t.flag(this,"negate",!1),u?this.be.undefined:this.not.be.undefined}),o("toBeTypeOf",function(u){let f=typeof this._obj,p=u===f;return this.assert(p,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",u,f)}),o("toBeInstanceOf",function(u){return this.instanceOf(u)}),o("toHaveLength",function(u){return this.have.length(u)}),o("toHaveProperty",function(...u){Array.isArray(u[0])&&(u[0]=u[0].map(E=>String(E).replace(/([.[\]])/g,"\\$1")).join("."));let f=this._obj,[p,d]=u,h=()=>Object.prototype.hasOwnProperty.call(f,p)?{value:f[p],exists:!0}:t.getPathInfo(f,p),{value:m,exists:y}=h(),g=y&&(u.length===1||Oe(d,m,n)),b=u.length===1?"":` with value ${t.objDisplay(d)}`;return this.assert(g,`expected #{this} to have property "${p}"${b}`,`expected #{this} to not have property "${p}"${b}`,d,y?m:void 0)}),o("toBeCloseTo",function(u,f=2){let p=this._obj,d=!1,h=0,m=0;return u===Number.POSITIVE_INFINITY&&p===Number.POSITIVE_INFINITY||u===Number.NEGATIVE_INFINITY&&p===Number.NEGATIVE_INFINITY?d=!0:(h=10**-f/2,m=Math.abs(p-u),d=m<h),this.assert(d,`expected #{this} to be close to #{exp}, received difference is ${m}, but expected ${h}`,`expected #{this} to not be close to #{exp}, received difference is ${m}, but expected ${h}`,u,p,!1)});let i=u=>{if(!cA(u._obj))throw new TypeError(`${t.inspect(u._obj)} is not a spy or a call to a spy!`)},s=u=>(i(u),u._obj),a=u=>{let f=u%10,p=u%100;return f===1&&p!==11?`${u}st`:f===2&&p!==12?`${u}nd`:f===3&&p!==13?`${u}rd`:`${u}th`},l=(u,f,p)=>(u.mock.calls&&(f+=Xe.gray(`
|
|
296
|
+
|
|
297
|
+
Received:
|
|
298
|
+
|
|
299
|
+
${u.mock.calls.map((d,h)=>{let m=Xe.bold(` ${a(h+1)} ${u.getMockName()} call:
|
|
300
|
+
|
|
301
|
+
`);return p?m+=Wo(p,d,{omitAnnotationLines:!0}):m+=Kt(d).split(`
|
|
302
|
+
`).map(y=>` ${y}`).join(`
|
|
303
|
+
`),m+=`
|
|
304
|
+
`,m}).join(`
|
|
305
|
+
`)}`)),f+=Xe.gray(`
|
|
306
|
+
|
|
307
|
+
Number of calls: ${Xe.bold(u.mock.calls.length)}
|
|
308
|
+
`),f),c=(u,f,p,d)=>(p+=Xe.gray(`
|
|
309
|
+
|
|
310
|
+
Received:
|
|
311
|
+
|
|
312
|
+
${f.map((h,m)=>{let y=Xe.bold(` ${a(m+1)} ${u.getMockName()} call return:
|
|
313
|
+
|
|
314
|
+
`);return d?y+=Wo(d,h.value,{omitAnnotationLines:!0}):y+=Kt(h).split(`
|
|
315
|
+
`).map(g=>` ${g}`).join(`
|
|
316
|
+
`),y+=`
|
|
317
|
+
`,y}).join(`
|
|
318
|
+
`)}`),p+=Xe.gray(`
|
|
319
|
+
|
|
320
|
+
Number of calls: ${Xe.bold(u.mock.calls.length)}
|
|
321
|
+
`),p);o(["toHaveBeenCalledTimes","toBeCalledTimes"],function(u){let f=s(this),p=f.getMockName(),d=f.mock.calls.length;return this.assert(d===u,`expected "${p}" to be called #{exp} times, but got ${d} times`,`expected "${p}" to not be called #{exp} times`,u,d,!1)}),o("toHaveBeenCalledOnce",function(){let u=s(this),f=u.getMockName(),p=u.mock.calls.length;return this.assert(p===1,`expected "${f}" to be called once, but got ${p} times`,`expected "${f}" to not be called once`,1,p,!1)}),o(["toHaveBeenCalled","toBeCalled"],function(){let u=s(this),f=u.getMockName(),p=u.mock.calls.length,d=p>0,h=t.flag(this,"negate"),m=t.getMessage(this,[d,`expected "${f}" to be called at least once`,`expected "${f}" to not be called at all, but actually been called ${p} times`,!0,d]);if(d&&h&&(m=l(u,m)),d&&h||!d&&!h)throw new r(m)}),o(["toHaveBeenCalledWith","toBeCalledWith"],function(...u){let f=s(this),p=f.getMockName(),d=f.mock.calls.some(y=>Oe(y,u,[...n,$t])),h=t.flag(this,"negate"),m=t.getMessage(this,[d,`expected "${p}" to be called with arguments: #{exp}`,`expected "${p}" to not be called with arguments: #{exp}`,u]);if(d&&h||!d&&!h)throw new r(l(f,m,u))}),o(["toHaveBeenNthCalledWith","nthCalledWith"],function(u,...f){let p=s(this),d=p.getMockName(),h=p.mock.calls[u-1],m=p.mock.calls.length,y=u<=m;this.assert(Oe(h,f,[...n,$t]),`expected ${a(u)} "${d}" call to have been called with #{exp}${y?"":`, but called only ${m} times`}`,`expected ${a(u)} "${d}" call to not have been called with #{exp}`,f,h,y);}),o(["toHaveBeenLastCalledWith","lastCalledWith"],function(...u){let f=s(this),p=f.getMockName(),d=f.mock.calls[f.mock.calls.length-1];this.assert(Oe(d,u,[...n,$t]),`expected last "${p}" call to have been called with #{exp}`,`expected last "${p}" call to not have been called with #{exp}`,u,d);}),o(["toThrow","toThrowError"],function(u){if(typeof u=="string"||typeof u>"u"||u instanceof RegExp)return this.throws(u);let f=this._obj,p=t.flag(this,"promise"),d=t.flag(this,"negate"),h=null;if(p==="rejects")h=f;else if(p==="resolves"&&typeof f!="function"){if(d)return;{let m=t.flag(this,"message")||"expected promise to throw an error, but it didn't",y={showDiff:!1};throw new r(m,y,t.flag(this,"ssfi"))}}else {let m=!1;try{f();}catch(y){m=!0,h=y;}if(!m&&!d){let y=t.flag(this,"message")||"expected function to throw an error, but it didn't",g={showDiff:!1};throw new r(y,g,t.flag(this,"ssfi"))}}if(typeof u=="function"){let m=u.name||u.prototype.constructor.name;return this.assert(h&&h instanceof u,`expected error to be instance of ${m}`,`expected error not to be instance of ${m}`,u,h)}if(u instanceof Error)return this.assert(h&&u.message===h.message,`expected error to have message: ${u.message}`,`expected error not to have message: ${u.message}`,u.message,h&&h.message);if(typeof u=="object"&&"asymmetricMatch"in u&&typeof u.asymmetricMatch=="function"){let m=u;return this.assert(h&&m.asymmetricMatch(h),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",m,h)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof u}"`)}),[{name:"toHaveResolved",condition:u=>u.mock.settledResults.length>0&&u.mock.settledResults.some(({type:f})=>f==="fulfilled"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:u=>u.mock.calls.length>0&&u.mock.results.some(({type:f})=>f!=="throw"),action:"called"}].forEach(({name:u,condition:f,action:p})=>{o(u,function(){let d=s(this),h=d.getMockName(),m=f(d);this.assert(m,`expected "${h}" to be successfully ${p} at least once`,`expected "${h}" to not be successfully ${p}`,m,!m,!1);});}),[{name:"toHaveResolvedTimes",condition:(u,f)=>u.mock.settledResults.reduce((p,{type:d})=>d==="fulfilled"?++p:p,0)===f,action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:(u,f)=>u.mock.results.reduce((p,{type:d})=>d==="throw"?p:++p,0)===f,action:"called"}].forEach(({name:u,condition:f,action:p})=>{o(u,function(d){let h=s(this),m=h.getMockName(),y=f(h,d);this.assert(y,`expected "${m}" to be successfully ${p} ${d} times`,`expected "${m}" to not be successfully ${p} ${d} times`,`expected resolved times: ${d}`,`received resolved times: ${y}`,!1);});}),[{name:"toHaveResolvedWith",condition:(u,f)=>u.mock.settledResults.some(({type:p,value:d})=>p==="fulfilled"&&Oe(f,d)),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:(u,f)=>u.mock.results.some(({type:p,value:d})=>p==="return"&&Oe(f,d)),action:"return"}].forEach(({name:u,condition:f,action:p})=>{o(u,function(d){let h=s(this),m=f(h,d),y=t.flag(this,"negate");if(m&&y||!m&&!y){let g=h.getMockName(),b=t.getMessage(this,[m,`expected "${g}" to ${p} with: #{exp} at least once`,`expected "${g}" to not ${p} with: #{exp}`,d]),E=p==="return"?h.mock.results:h.mock.settledResults;throw new r(c(h,E,b,d))}});}),[{name:"toHaveLastResolvedWith",condition:(u,f)=>{let p=u.mock.settledResults[u.mock.settledResults.length-1];return p&&p.type==="fulfilled"&&Oe(p.value,f)},action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:(u,f)=>{let p=u.mock.results[u.mock.results.length-1];return p&&p.type==="return"&&Oe(p.value,f)},action:"return"}].forEach(({name:u,condition:f,action:p})=>{o(u,function(d){let h=s(this),m=p==="return"?h.mock.results:h.mock.settledResults,y=m[m.length-1],g=h.getMockName();this.assert(f(h,d),`expected last "${g}" call to ${p} #{exp}`,`expected last "${g}" call to not ${p} #{exp}`,d,y?.value);});}),[{name:"toHaveNthResolvedWith",condition:(u,f,p)=>{let d=u.mock.settledResults[f-1];return d&&d.type==="fulfilled"&&Oe(d.value,p)},action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:(u,f,p)=>{let d=u.mock.results[f-1];return d&&d.type==="return"&&Oe(d.value,p)},action:"return"}].forEach(({name:u,condition:f,action:p})=>{o(u,function(d,h){let m=s(this),y=m.getMockName(),g=(p==="return"?m.mock.results:m.mock.settledResults)[d-1],b=`${a(d)} call`;this.assert(f(m,d,h),`expected ${b} "${y}" call to ${p} #{exp}`,`expected ${b} "${y}" call to not ${p} #{exp}`,h,g?.value);});}),o("toSatisfy",function(u,f){return this.be.satisfy(u,f)}),o("withContext",function(u){for(let f in u)t.flag(this,f,u[f]);return this}),t.addProperty(e.Assertion.prototype,"resolves",function(){let u=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",u);let f=t.flag(this,"vitest-test"),p=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof p?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof p}'.`);let d=new Proxy(this,{get:(h,m,y)=>{let g=Reflect.get(h,m,y);return typeof g!="function"?g instanceof e.Assertion?d:g:async(...b)=>{let E=p.then(_=>(t.flag(this,"object",_),g.call(this,...b)),_=>{let T=new r(`promise rejected "${t.inspect(_)}" instead of resolving`,{showDiff:!1});throw T.cause=_,T.stack=u.stack.replace(u.message,T.message),T});return FS(f,E)}}});return d}),t.addProperty(e.Assertion.prototype,"rejects",function(){let u=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",u);let f=t.flag(this,"vitest-test"),p=t.flag(this,"object"),d=typeof p=="function"?p():p;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof d?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof d}'.`);let h=new Proxy(this,{get:(m,y,g)=>{let b=Reflect.get(m,y,g);return typeof b!="function"?b instanceof e.Assertion?h:b:async(...E)=>{let _=d.then(T=>{let x=new r(`promise resolved "${t.inspect(T)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:T});throw x.stack=u.stack.replace(u.message,x.message),x},T=>(t.flag(this,"object",T),b.call(this,...E)));return FS(f,_)}}});return h});};function NH(e,t){let r=e._obj,n=br.flag(e,"negate"),o=br.flag(e,"promise")||"",i={...pA(),diff:Wo,stringify:Kt,iterableEquality:$t,subsetEquality:As};return {state:{...Ql(t),customTesters:sg(),isNot:n,utils:i,promise:o,equals:Oe,suppressedErrors:[],soft:br.flag(e,"soft"),poll:br.flag(e,"poll")},isNot:n,obj:r}}var US=class extends Error{constructor(e,t,r){super(e),this.actual=t,this.expected=r;}};function jH(e,t,r){return (n,o)=>{Object.entries(r).forEach(([i,s])=>{function a(...f){let{state:p,isNot:d,obj:h}=NH(this,t),m=s.call(p,h,...f);if(m&&typeof m=="object"&&m instanceof Promise)return m.then(({pass:_,message:T,actual:x,expected:S})=>{if(_&&d||!_&&!d)throw new US(T(),x,S)});let{pass:y,message:g,actual:b,expected:E}=m;if(y&&d||!y&&!d)throw new US(g(),b,E)}let l=vA(o,a);o.addMethod(globalThis[ds].matchers,i,l),o.addMethod(e.Assertion.prototype,i,l);class c extends gn{constructor(p=!1,...d){super(d,p);}asymmetricMatch(p){let{pass:d}=s.call(this.getMatcherContext(t),p,...this.sample);return this.inverse?!d:d}toString(){return `${this.inverse?"not.":""}${i}`}getExpectedType(){return "any"}toAsymmetricMatcher(){return `${this.toString()}<${this.sample.map(String).join(", ")}>`}}let u=(...f)=>new c(!1,...f);Object.defineProperty(t,i,{configurable:!0,enumerable:!0,value:u,writable:!0}),Object.defineProperty(t.not,i,{configurable:!0,enumerable:!0,value:(...f)=>new c(!0,...f),writable:!0}),Object.defineProperty(globalThis[$h],i,{configurable:!0,enumerable:!0,value:u,writable:!0});});}}var qH=(e,t)=>{t.addMethod(e.expect,"extend",(r,n)=>{ts(jH(e,r,n));});};function $H(){ts(qH),ts(IH),ts(MH);let e=(n,o)=>{let{assertionCalls:i}=Ql(e);return Xp({assertionCalls:i+1,soft:!1},e),Bn(n,o)};Object.assign(e,Bn),e.getState=()=>Ql(e),e.setState=n=>Xp(n,e),e.extend=n=>Bn.extend(e,n),e.soft=(...n)=>{let o=e(...n);return e.setState({soft:!0}),o},e.unreachable=n=>{R.fail(`expected${n?` "${n}" `:" "}not to be reached`);};function t(n){let o=()=>new Error(`expected number of assertions to be ${n}, but got ${e.getState().assertionCalls}`);"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o(),t),e.setState({expectedAssertionsNumber:n,expectedAssertionsNumberErrorGen:o});}function r(){let n=new Error("expected any number of assertion, but got none");"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(n,r),e.setState({isExpectingAssertions:!0,isExpectingAssertionsError:n});}return Xp({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},e),br.addMethod(e,"assertions",t),br.addMethod(e,"hasAssertions",r),e.extend(RC),e}var wA=$H();Object.defineProperty(globalThis,og,{value:wA,writable:!0,configurable:!0});var Dh=new Set;function kH(e){return Dh.add(e),()=>void Dh.delete(e)}function DH(e){let t=e?PS(e):PS();return LH(t)}function LH(e){let t=zS(e),r=t.mockImplementation.bind(null);return t.mockImplementation=n=>zS(r(n)),t}function zS(e){let t=Xl(e),r=t.impl;return t.willCall(function(...n){return Dh.forEach(o=>o(e,n)),r?.apply(this,n)}),e}function BH(){Ru.forEach(e=>e.mockClear());}function FH(){Ru.forEach(e=>e.mockReset());}function UH(){Ru.forEach(e=>e.mockRestore());}var EA={};nm(EA,{buildQueries:()=>Ur,configure:()=>ZW,createEvent:()=>Bl,findAllByAltText:()=>CP,findAllByDisplayValue:()=>vP,findAllByLabelText:()=>QA,findAllByPlaceholderText:()=>aP,findAllByRole:()=>DP,findAllByTestId:()=>VP,findAllByText:()=>pP,findAllByTitle:()=>MP,findByAltText:()=>xP,findByDisplayValue:()=>wP,findByLabelText:()=>ZA,findByPlaceholderText:()=>lP,findByRole:()=>LP,findByTestId:()=>HP,findByText:()=>hP,findByTitle:()=>IP,fireEvent:()=>ys,getAllByAltText:()=>SP,getAllByDisplayValue:()=>yP,getAllByLabelText:()=>eP,getAllByPlaceholderText:()=>iP,getAllByRole:()=>$P,getAllByTestId:()=>UP,getAllByText:()=>fP,getAllByTitle:()=>OP,getByAltText:()=>TP,getByDisplayValue:()=>bP,getByLabelText:()=>tP,getByPlaceholderText:()=>sP,getByRole:()=>kP,getByTestId:()=>zP,getByText:()=>dP,getByTitle:()=>RP,getConfig:()=>Se,getDefaultNormalizer:()=>pg,getElementError:()=>ju,getMultipleElementsFoundError:()=>qu,getNodeText:()=>Ps,getQueriesForElement:()=>Kh,getRoles:()=>HA,getSuggestedQuery:()=>tu,isInaccessible:()=>Nu,logDOM:()=>Lh,logRoles:()=>o8,makeFindQuery:()=>Ko,makeGetAllQuery:()=>gg,makeSingleQuery:()=>Go,prettyDOM:()=>ms,prettyFormat:()=>lg,queries:()=>ru,queryAllByAltText:()=>EP,queryAllByAttribute:()=>Kn,queryAllByDisplayValue:()=>mP,queryAllByLabelText:()=>rP,queryAllByPlaceholderText:()=>nP,queryAllByRole:()=>jP,queryAllByTestId:()=>BP,queryAllByText:()=>uP,queryAllByTitle:()=>AP,queryByAltText:()=>_P,queryByAttribute:()=>GA,queryByDisplayValue:()=>gP,queryByLabelText:()=>JA,queryByPlaceholderText:()=>oP,queryByRole:()=>qP,queryByTestId:()=>FP,queryByText:()=>cP,queryByTitle:()=>PP,queryHelpers:()=>b8,screen:()=>W8,waitFor:()=>mg,waitForElementToBeRemoved:()=>L8,within:()=>Kh,wrapAllByQueryWithSuggestion:()=>It,wrapSingleQueryWithSuggestion:()=>dn});var lg=kt(az()),zH=Object.prototype.toString;function VS(e){return typeof e=="function"||zH.call(e)==="[object Function]"}function VH(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}var HH=Math.pow(2,53)-1;function WH(e){var t=VH(e);return Math.min(Math.max(t,0),HH)}function ar(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");for(var o=WH(n.length),i=VS(r)?Object(new r(o)):new Array(o),s=0,a;s<o;)a=n[s],i[s]=a,s+=1;return i.length=o,i}function ps(e){"@babel/helpers - typeof";return ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ps(e)}function GH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_A(n.key),n);}}function KH(e,t,r){return t&&HS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YH(e,t,r){return t=_A(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _A(e){var t=JH(e,"string");return ps(t)==="symbol"?t:String(t)}function JH(e,t){if(ps(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ps(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}var XH=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];GH(this,e),YH(this,"items",void 0),this.items=t;}return KH(e,[{key:"add",value:function(t){return this.has(t)===!1&&this.items.push(t),this}},{key:"clear",value:function(){this.items=[];}},{key:"delete",value:function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length}},{key:"forEach",value:function(t){var r=this;this.items.forEach(function(n){t(n,n,r);});}},{key:"has",value:function(t){return this.items.indexOf(t)!==-1}},{key:"size",get:function(){return this.items.length}}]),e}(),QH=typeof Set>"u"?Set:XH;function wt(e){var t;return (t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}var ZH={article:"article",aside:"complementary",button:"button",datalist:"listbox",dd:"definition",details:"group",dialog:"dialog",dt:"term",fieldset:"group",figure:"figure",form:"form",footer:"contentinfo",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading",header:"banner",hr:"separator",html:"document",legend:"legend",li:"listitem",math:"math",main:"main",menu:"list",nav:"navigation",ol:"list",optgroup:"group",option:"option",output:"status",progress:"progressbar",section:"region",summary:"button",table:"table",tbody:"rowgroup",textarea:"textbox",tfoot:"rowgroup",td:"cell",th:"columnheader",thead:"rowgroup",tr:"row",ul:"list"},eW={caption:new Set(["aria-label","aria-labelledby"]),code:new Set(["aria-label","aria-labelledby"]),deletion:new Set(["aria-label","aria-labelledby"]),emphasis:new Set(["aria-label","aria-labelledby"]),generic:new Set(["aria-label","aria-labelledby","aria-roledescription"]),insertion:new Set(["aria-label","aria-labelledby"]),paragraph:new Set(["aria-label","aria-labelledby"]),presentation:new Set(["aria-label","aria-labelledby"]),strong:new Set(["aria-label","aria-labelledby"]),subscript:new Set(["aria-label","aria-labelledby"]),superscript:new Set(["aria-label","aria-labelledby"])};function tW(e,t){return ["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=eW[t])!==null&&n!==void 0&&n.has(r))})}function SA(e,t){return tW(e,t)}function rW(e){var t=oW(e);if(t===null||t==="presentation"){var r=nW(e);if(t!=="presentation"||SA(e,r||""))return r}return t}function nW(e){var t=ZH[wt(e)];if(t!==void 0)return t;switch(wt(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return "link";break;case"img":return e.getAttribute("alt")===""&&!SA(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return "button";case"checkbox":case"radio":return n;case"range":return "slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return "spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}function oW(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}function Ve(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}function TA(e){return Ve(e)&&wt(e)==="caption"}function Ll(e){return Ve(e)&&wt(e)==="input"}function iW(e){return Ve(e)&&wt(e)==="optgroup"}function sW(e){return Ve(e)&&wt(e)==="select"}function aW(e){return Ve(e)&&wt(e)==="table"}function lW(e){return Ve(e)&&wt(e)==="textarea"}function uW(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}function cW(e){return Ve(e)&&wt(e)==="fieldset"}function fW(e){return Ve(e)&&wt(e)==="legend"}function dW(e){return Ve(e)&&wt(e)==="slot"}function pW(e){return Ve(e)&&e.ownerSVGElement!==void 0}function hW(e){return Ve(e)&&wt(e)==="svg"}function mW(e){return pW(e)&&wt(e)==="title"}function eu(e,t){if(Ve(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(o){return n.getElementById(o)}).filter(function(o){return o!==null})}return []}function qr(e,t){return Ve(e)?t.indexOf(rW(e))!==-1:!1}function gW(e){return e.trim().replace(/\s\s+/g," ")}function yW(e,t){if(!Ve(e))return !1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return !0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}function bW(e){return qr(e,["button","combobox","listbox","textbox"])||CA(e,"range")}function CA(e,t){if(!Ve(e))return !1;switch(t){case"range":return qr(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}function WS(e,t){var r=ar(e.querySelectorAll(t));return eu(e,"aria-owns").forEach(function(n){r.push.apply(r,ar(n.querySelectorAll(t)));}),r}function vW(e){return sW(e)?e.selectedOptions||WS(e,"[selected]"):WS(e,'[aria-selected="true"]')}function wW(e){return qr(e,["none","presentation"])}function EW(e){return TA(e)}function _W(e){return qr(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}function SW(e){return !1}function TW(e){return Ll(e)||lW(e)?e.value:e.textContent||""}function GS(e){var t=e.getPropertyValue("content");return /^["'].*["']$/.test(t)?t.slice(1,-1):""}function xA(e){var t=wt(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}function AA(e){if(xA(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&Ve(r)){var n=AA(r);n!==null&&(t=n);}}),t}function CW(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):AA(e)}function xW(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return ar(t);if(!xA(e))return null;var r=e.ownerDocument;return ar(r.querySelectorAll("label")).filter(function(n){return CW(n)===e})}function AW(e){var t=e.assignedNodes();return t.length===0?ar(e.childNodes):t}function PA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new QH,n=uW(e),o=t.compute,i=o===void 0?"name":o,s=t.computedStyleSupportsPseudoElements,a=s===void 0?t.getComputedStyle!==void 0:s,l=t.getComputedStyle,c=l===void 0?n.getComputedStyle.bind(n):l,u=t.hidden,f=u===void 0?!1:u;function p(g,b){var E="";if(Ve(g)&&a){var _=c(g,"::before"),T=GS(_);E="".concat(T," ").concat(E);}var x=dW(g)?AW(g):ar(g.childNodes).concat(eu(g,"aria-owns"));if(x.forEach(function(w){var I=y(w,{isEmbeddedInLabel:b.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),C=Ve(w)?c(w).getPropertyValue("display"):"inline",N=C!=="inline"?" ":"";E+="".concat(N).concat(I).concat(N);}),Ve(g)&&a){var S=c(g,"::after"),v=GS(S);E="".concat(E," ").concat(v);}return E.trim()}function d(g,b){var E=g.getAttributeNode(b);return E!==null&&!r.has(E)&&E.value.trim()!==""?(r.add(E),E.value):null}function h(g){return Ve(g)?d(g,"title"):null}function m(g){if(!Ve(g))return null;if(cW(g)){r.add(g);for(var b=ar(g.childNodes),E=0;E<b.length;E+=1){var _=b[E];if(fW(_))return y(_,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(aW(g)){r.add(g);for(var T=ar(g.childNodes),x=0;x<T.length;x+=1){var S=T[x];if(TA(S))return y(S,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(hW(g)){r.add(g);for(var v=ar(g.childNodes),w=0;w<v.length;w+=1){var I=v[w];if(mW(I))return I.textContent}return null}else if(wt(g)==="img"||wt(g)==="area"){var C=d(g,"alt");if(C!==null)return C}else if(iW(g)){var N=d(g,"label");if(N!==null)return N}if(Ll(g)&&(g.type==="button"||g.type==="submit"||g.type==="reset")){var L=d(g,"value");if(L!==null)return L;if(g.type==="submit")return "Submit";if(g.type==="reset")return "Reset"}var q=xW(g);if(q!==null&&q.length!==0)return r.add(g),ar(q).map(function(Y){return y(Y,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(Y){return Y.length>0}).join(" ");if(Ll(g)&&g.type==="image"){var H=d(g,"alt");if(H!==null)return H;var z=d(g,"title");return z!==null?z:"Submit Query"}if(qr(g,["button"])){var Z=p(g,{isEmbeddedInLabel:!1,isReferenced:!1});if(Z!=="")return Z}return null}function y(g,b){if(r.has(g))return "";if(!f&&yW(g,c)&&!b.isReferenced)return r.add(g),"";var E=Ve(g)?g.getAttributeNode("aria-labelledby"):null,_=E!==null&&!r.has(E)?eu(g,"aria-labelledby"):[];if(i==="name"&&!b.isReferenced&&_.length>0)return r.add(E),_.map(function(C){return y(C,{isEmbeddedInLabel:b.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var T=b.recursion&&bW(g)&&i==="name";if(!T){var x=(Ve(g)&&g.getAttribute("aria-label")||"").trim();if(x!==""&&i==="name")return r.add(g),x;if(!wW(g)){var S=m(g);if(S!==null)return r.add(g),S}}if(qr(g,["menu"]))return r.add(g),"";if(T||b.isEmbeddedInLabel||b.isReferenced){if(qr(g,["combobox","listbox"])){r.add(g);var v=vW(g);return v.length===0?Ll(g)?g.value:"":ar(v).map(function(C){return y(C,{isEmbeddedInLabel:b.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(CA(g,"range"))return r.add(g),g.hasAttribute("aria-valuetext")?g.getAttribute("aria-valuetext"):g.hasAttribute("aria-valuenow")?g.getAttribute("aria-valuenow"):g.getAttribute("value")||"";if(qr(g,["textbox"]))return r.add(g),TW(g)}if(_W(g)||Ve(g)&&b.isReferenced||EW(g)||SW()){var w=p(g,{isEmbeddedInLabel:b.isEmbeddedInLabel,isReferenced:!1});if(w!=="")return r.add(g),w}if(g.nodeType===g.TEXT_NODE)return r.add(g),g.textContent||"";if(b.recursion)return r.add(g),p(g,{isEmbeddedInLabel:b.isEmbeddedInLabel,isReferenced:!1});var I=h(g);return I!==null?(r.add(g),I):(r.add(g),"")}return gW(y(e,{isEmbeddedInLabel:!1,isReferenced:i==="description",recursion:!1}))}function hs(e){"@babel/helpers - typeof";return hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hs(e)}function KS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n);}return r}function YS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KS(Object(r),!0).forEach(function(n){PW(e,n,r[n]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n));});}return e}function PW(e,t,r){return t=OW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OW(e){var t=RW(e,"string");return hs(t)==="symbol"?t:String(t)}function RW(e,t){if(hs(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(hs(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return (t==="string"?String:Number)(e)}function OA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=eu(e,"aria-describedby").map(function(o){return PA(o,YS(YS({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n;}return r}function MW(e){return qr(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}function ug(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return MW(e)?"":PA(e,t)}var Ht=kt(im()),IW=kt(lz());function RA(e){return e.replace(/</g,"<").replace(/>/g,">")}var NW=(e,t,r,n,o,i,s)=>{let a=n+r.indent,l=r.colors;return e.map(c=>{let u=t[c],f=s(u,r,a,o,i);return typeof u!="string"&&(f.indexOf(`
|
|
322
|
+
`)!==-1&&(f=r.spacingOuter+a+f+r.spacingOuter+n),f="{"+f+"}"),r.spacingInner+n+l.prop.open+c+l.prop.close+"="+l.value.open+f+l.value.close}).join("")},jW=3,qW=(e,t,r,n,o,i)=>e.map(s=>{let a=typeof s=="string"?MA(s,t):i(s,t,r,n,o);return a===""&&typeof s=="object"&&s!==null&&s.nodeType!==jW?"":t.spacingOuter+r+a}).join(""),MA=(e,t)=>{let r=t.colors.content;return r.open+RA(e)+r.close},$W=(e,t)=>{let r=t.colors.comment;return r.open+"<!--"+RA(e)+"-->"+r.close},kW=(e,t,r,n,o)=>{let i=n.colors.tag;return i.open+"<"+e+(t&&i.close+t+n.spacingOuter+o+i.open)+(r?">"+i.close+r+n.spacingOuter+o+i.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+i.close},DW=(e,t)=>{let r=t.colors.tag;return r.open+"<"+e+r.close+" \u2026"+r.open+" />"+r.close},LW=1,IA=3,NA=8,jA=11,BW=/^((HTML|SVG)\w*)?Element$/,qA=e=>{let{tagName:t}=e;return !!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},FW=e=>{let t=e.constructor.name,{nodeType:r}=e;return r===LW&&(BW.test(t)||qA(e))||r===IA&&t==="Text"||r===NA&&t==="Comment"||r===jA&&t==="DocumentFragment"};function UW(e){return e.nodeType===IA}function zW(e){return e.nodeType===NA}function Zp(e){return e.nodeType===jA}function VW(e){return {test:t=>{var r;return ((t==null||(r=t.constructor)==null?void 0:r.name)||qA(t))&&FW(t)},serialize:(t,r,n,o,i,s)=>{if(UW(t))return MA(t.data,r);if(zW(t))return $W(t.data,r);let a=Zp(t)?"DocumentFragment":t.tagName.toLowerCase();return ++o>r.maxDepth?DW(a,r):kW(a,NW(Zp(t)?[]:Array.from(t.attributes).map(l=>l.name).sort(),Zp(t)?{}:Array.from(t.attributes).reduce((l,c)=>(l[c.name]=c.value,l),{}),r,n+r.indent,o,i,s),qW(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,o,i,s),r,n)}}}var $A=null,cg=null,fg=null;try{let e=module&&module.require;cg=e.call(module,"fs").readFileSync,fg=e.call(module,"@babel/code-frame").codeFrameColumns,$A=e.call(module,"chalk");}catch{}function HW(e){let t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.slice(t,r),o=n.split(":"),[i,s,a]=[o[0],parseInt(o[1],10),parseInt(o[2],10)],l="";try{l=cg(i,"utf-8");}catch{return ""}let c=fg(l,{start:{line:s,column:a}},{highlightCode:!0,linesBelow:0});return $A.dim(n)+`
|
|
323
|
+
`+c+`
|
|
324
|
+
`}function WW(){if(!cg||!fg)return "";let e=new Error().stack.split(`
|
|
325
|
+
`).slice(1).find(t=>!t.includes("node_modules/"));return HW(e)}var kA=3;function eh(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function dg(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function DA(e){if(e.defaultView)return e.defaultView;if(e.ownerDocument&&e.ownerDocument.defaultView)return e.ownerDocument.defaultView;if(e.window)return e.window;throw e.ownerDocument&&e.ownerDocument.defaultView===null?new Error("It looks like the window object is not available for the provided node."):e.then instanceof Function?new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(e)?new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):typeof e.debug=="function"&&typeof e.logTestingPlaygroundURL=="function"?new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):new Error("The given node is not an Element, the node type is: "+typeof e+".")}function Fr(e){if(!e||typeof e.querySelector!="function"||typeof e.querySelectorAll!="function")throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got "+t(e)+".");function t(r){return typeof r=="object"?r===null?"null":r.constructor.name:typeof r}}var GW=()=>{if(typeof process>"u")return !1;let e;try{var t;let r=(t=process.env)==null?void 0:t.COLORS;r&&(e=JSON.parse(r));}catch{}return typeof e=="boolean"?e:process.versions!==void 0&&process.versions.node!==void 0},{DOMCollection:KW}=lg.plugins,YW=1,JW=8;function XW(e){return e.nodeType!==JW&&(e.nodeType!==YW||!e.matches(Se().defaultIgnore))}function ms(e,t,r){if(r===void 0&&(r={}),e||(e=dg().body),typeof t!="number"&&(t=typeof process<"u"&&typeof process.env<"u"&&process.env.DEBUG_PRINT_LIMIT||7e3),t===0)return "";e.documentElement&&(e=e.documentElement);let n=typeof e;if(n==="object"?n=e.constructor.name:e={},!("outerHTML"in e))throw new TypeError("Expected an element or document but got "+n);let{filterNode:o=XW,...i}=r,s=lg.format(e,{plugins:[VW(o),KW],printFunctionName:!1,highlight:GW(),...i});return t!==void 0&&e.outerHTML.length>t?s.slice(0,t)+"...":s}var Lh=function(){let e=WW();console.log(e?ms(...arguments)+`
|
|
326
|
+
|
|
327
|
+
`+e:ms(...arguments));},Fn={testIdAttribute:"data-testid",asyncUtilTimeout:1e3,asyncWrapper:e=>e(),unstable_advanceTimersWrapper:e=>e(),eventWrapper:e=>e(),defaultHidden:!1,defaultIgnore:"script, style",showOriginalStackTrace:!1,throwSuggestions:!1,getElementError(e,t){let r=ms(t),n=new Error([e,"Ignored nodes: comments, "+Fn.defaultIgnore+`
|
|
328
|
+
`+r].filter(Boolean).join(`
|
|
329
|
+
|
|
330
|
+
`));return n.name="TestingLibraryElementError",n},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function QW(e){try{return Fn._disableExpensiveErrorDiagnostics=!0,e()}finally{Fn._disableExpensiveErrorDiagnostics=!1;}}function ZW(e){typeof e=="function"&&(e=e(Fn)),Fn={...Fn,...e};}function Se(){return Fn}var e8=["button","meter","output","progress","select","textarea","input"];function LA(e){return e8.includes(e.nodeName.toLowerCase())?"":e.nodeType===kA?e.textContent:Array.from(e.childNodes).map(t=>LA(t)).join("")}function Bh(e){let t;return e.tagName.toLowerCase()==="label"?t=LA(e):t=e.value||e.textContent,t}function BA(e){if(e.labels!==void 0){var t;return (t=e.labels)!=null?t:[]}if(!t8(e))return [];let r=e.ownerDocument.querySelectorAll("label");return Array.from(r).filter(n=>n.control===e)}function t8(e){return /BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}function FA(e,t,r){let{selector:n="*"}=r===void 0?{}:r,o=t.getAttribute("aria-labelledby"),i=o?o.split(" "):[];return i.length?i.map(s=>{let a=e.querySelector('[id="'+s+'"]');return a?{content:Bh(a),formControl:null}:{content:"",formControl:null}}):Array.from(BA(t)).map(s=>{let a=Bh(s),l=Array.from(s.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter(c=>c.matches(n))[0];return {content:a,formControl:l}})}function UA(e){if(e==null)throw new Error("It looks like "+e+" was passed instead of a matcher. Did you do something like getByText("+e+")?")}function ni(e,t,r,n){if(typeof e!="string")return !1;UA(r);let o=n(e);return typeof r=="string"||typeof r=="number"?o.toLowerCase().includes(r.toString().toLowerCase()):typeof r=="function"?r(o,t):zA(r,o)}function kr(e,t,r,n){if(typeof e!="string")return !1;UA(r);let o=n(e);return r instanceof Function?r(o,t):r instanceof RegExp?zA(r,o):o===String(r)}function pg(e){let{trim:t=!0,collapseWhitespace:r=!0}=e===void 0?{}:e;return n=>{let o=n;return o=t?o.trim():o,o=r?o.replace(/\s+/g," "):o,o}}function Gn(e){let{trim:t,collapseWhitespace:r,normalizer:n}=e;if(!n)return pg({trim:t,collapseWhitespace:r});if(typeof t<"u"||typeof r<"u")throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');return n}function zA(e,t){let r=e.test(t);return e.global&&e.lastIndex!==0&&(console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."),e.lastIndex=0),r}function Ps(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===kA&&!!t.textContent).map(t=>t.textContent).join("")}var r8=n8(Ht.elementRoles);function VA(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}function Nu(e,t){t===void 0&&(t={});let{isSubtreeInaccessible:r=VA}=t;if(e.ownerDocument.defaultView.getComputedStyle(e).visibility==="hidden")return !0;let n=e;for(;n;){if(r(n))return !0;n=n.parentElement;}return !1}function hg(e){for(let{match:t,roles:r}of r8)if(t(e))return [...r];return []}function n8(e){function t(s){let{name:a,attributes:l}=s;return ""+a+l.map(c=>{let{name:u,value:f,constraints:p=[]}=c,d=p.indexOf("undefined")!==-1,h=p.indexOf("set")!==-1;return typeof f<"u"?"["+u+'="'+f+'"]':d?":not(["+u+"])":h?"["+u+"]:not(["+u+'=""])':"["+u+"]"}).join("")}function r(s){let{attributes:a=[]}=s;return a.length}function n(s,a){let{specificity:l}=s,{specificity:c}=a;return c-l}function o(s){let{attributes:a=[]}=s,l=a.findIndex(u=>u.value&&u.name==="type"&&u.value==="text");l>=0&&(a=[...a.slice(0,l),...a.slice(l+1)]);let c=t({...s,attributes:a});return u=>l>=0&&u.type!=="text"?!1:u.matches(c)}let i=[];for(let[s,a]of e.entries())i=[...i,{match:o(s),roles:Array.from(a),specificity:r(s)}];return i.sort(n)}function HA(e,t){let{hidden:r=!1}=t===void 0?{}:t;function n(o){return [o,...Array.from(o.children).reduce((i,s)=>[...i,...n(s)],[])]}return n(e).filter(o=>r===!1?Nu(o)===!1:!0).reduce((o,i)=>{let s=[];return i.hasAttribute("role")?s=i.getAttribute("role").split(" ").slice(0,1):s=hg(i),s.reduce((a,l)=>Array.isArray(a[l])?{...a,[l]:[...a[l],i]}:{...a,[l]:[i]},o)},{})}function WA(e,t){let{hidden:r,includeDescription:n}=t,o=HA(e,{hidden:r});return Object.entries(o).filter(i=>{let[s]=i;return s!=="generic"}).map(i=>{let[s,a]=i,l="-".repeat(50),c=a.map(u=>{let f='Name "'+ug(u,{computedStyleSupportsPseudoElements:Se().computedStyleSupportsPseudoElements})+`":
|
|
331
|
+
`,p=ms(u.cloneNode(!1));if(n){let d='Description "'+OA(u,{computedStyleSupportsPseudoElements:Se().computedStyleSupportsPseudoElements})+`":
|
|
332
|
+
`;return ""+f+d+p}return ""+f+p}).join(`
|
|
333
|
+
|
|
334
|
+
`);return s+`:
|
|
335
|
+
|
|
336
|
+
`+c+`
|
|
337
|
+
|
|
338
|
+
`+l}).join(`
|
|
339
|
+
`)}var o8=function(e,t){let{hidden:r=!1}=t===void 0?{}:t;return console.log(WA(e,{hidden:r}))};function i8(e){return e.tagName==="OPTION"?e.selected:Os(e,"aria-selected")}function s8(e){return e.getAttribute("aria-busy")==="true"}function a8(e){if(!("indeterminate"in e&&e.indeterminate))return "checked"in e?e.checked:Os(e,"aria-checked")}function l8(e){return Os(e,"aria-pressed")}function u8(e){var t,r;return (t=(r=Os(e,"aria-current"))!=null?r:e.getAttribute("aria-current"))!=null?t:!1}function c8(e){return Os(e,"aria-expanded")}function Os(e,t){let r=e.getAttribute(t);if(r==="true")return !0;if(r==="false")return !1}function f8(e){let t={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6};return e.getAttribute("aria-level")&&Number(e.getAttribute("aria-level"))||t[e.tagName]}function d8(e){let t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}function p8(e){let t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}function h8(e){let t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}function m8(e){let t=e.getAttribute("aria-valuetext");return t===null?void 0:t}var JS=pg();function g8(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function XS(e){return new RegExp(g8(e.toLowerCase()),"i")}function rn(e,t,r,n){let{variant:o,name:i}=n,s="",a={},l=[["Role","TestId"].includes(e)?r:XS(r)];i&&(a.name=XS(i)),e==="Role"&&Nu(t)&&(a.hidden=!0,s=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
|
|
340
|
+
If you are using the aria-hidden prop, make sure this is the right choice for your case.
|
|
341
|
+
`),Object.keys(a).length>0&&l.push(a);let c=o+"By"+e;return {queryName:e,queryMethod:c,queryArgs:l,variant:o,warning:s,toString(){s&&console.warn(s);let[u,f]=l;return u=typeof u=="string"?"'"+u+"'":u,f=f?", { "+Object.entries(f).map(p=>{let[d,h]=p;return d+": "+h}).join(", ")+" }":"",c+"("+u+f+")"}}}function nn(e,t,r){return r&&(!t||t.toLowerCase()===e.toLowerCase())}function tu(e,t,r){var n,o;if(t===void 0&&(t="get"),e.matches(Se().defaultIgnore))return;let i=(n=e.getAttribute("role"))!=null?n:(o=hg(e))==null?void 0:o[0];if(i!=="generic"&&nn("Role",r,i))return rn("Role",e,i,{variant:t,name:ug(e,{computedStyleSupportsPseudoElements:Se().computedStyleSupportsPseudoElements})});let s=FA(document,e).map(p=>p.content).join(" ");if(nn("LabelText",r,s))return rn("LabelText",e,s,{variant:t});let a=e.getAttribute("placeholder");if(nn("PlaceholderText",r,a))return rn("PlaceholderText",e,a,{variant:t});let l=JS(Ps(e));if(nn("Text",r,l))return rn("Text",e,l,{variant:t});if(nn("DisplayValue",r,e.value))return rn("DisplayValue",e,JS(e.value),{variant:t});let c=e.getAttribute("alt");if(nn("AltText",r,c))return rn("AltText",e,c,{variant:t});let u=e.getAttribute("title");if(nn("Title",r,u))return rn("Title",e,u,{variant:t});let f=e.getAttribute(Se().testIdAttribute);if(nn("TestId",r,f))return rn("TestId",e,f,{variant:t})}function Ol(e,t){e.stack=t.stack.replace(t.message,e.message);}function y8(e,t){let{container:r=dg(),timeout:n=Se().asyncUtilTimeout,showOriginalStackTrace:o=Se().showOriginalStackTrace,stackTraceError:i,interval:s=50,onTimeout:a=c=>(Object.defineProperty(c,"message",{value:Se().getElementError(c.message,r).message}),c),mutationObserverOptions:l={subtree:!0,childList:!0,attributes:!0,characterData:!0}}=t;if(typeof e!="function")throw new TypeError("Received `callback` arg must be a function");return new Promise(async(c,u)=>{let f,p,d,h=!1,m="idle",y=setTimeout(T,n),g=eh();if(g){let{unstable_advanceTimersWrapper:x}=Se();for(_();!h;){if(!eh()){let S=new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");o||Ol(S,i),u(S);return}if(await x(async()=>{jest.advanceTimersByTime(s);}),h)break;_();}}else {try{Fr(r);}catch(S){u(S);return}p=setInterval(E,s);let{MutationObserver:x}=DA(r);d=new x(E),d.observe(r,l),_();}function b(x,S){h=!0,clearTimeout(y),g||(clearInterval(p),d.disconnect()),x?u(x):c(S);}function E(){if(eh()){let x=new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");return o||Ol(x,i),u(x)}else return _()}function _(){if(m!=="pending")try{let x=QW(e);typeof x?.then=="function"?(m="pending",x.then(S=>{m="resolved",b(null,S);},S=>{m="rejected",f=S;})):b(null,x);}catch(x){f=x;}}function T(){let x;f?(x=f,!o&&x.name==="TestingLibraryElementError"&&Ol(x,i)):(x=new Error("Timed out in waitFor."),o||Ol(x,i)),b(a(x),null);}})}function mg(e,t){let r=new Error("STACK_TRACE_MESSAGE");return Se().asyncWrapper(()=>y8(e,{stackTraceError:r,...t}))}function ju(e,t){return Se().getElementError(e,t)}function qu(e,t){return ju(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function Kn(e,t,r,n){let{exact:o=!0,collapseWhitespace:i,trim:s,normalizer:a}=n===void 0?{}:n,l=o?kr:ni,c=Gn({collapseWhitespace:i,trim:s,normalizer:a});return Array.from(t.querySelectorAll("["+e+"]")).filter(u=>l(u.getAttribute(e),u,r,c))}function GA(e,t,r,n){let o=Kn(e,t,r,n);if(o.length>1)throw qu("Found multiple elements by ["+e+"="+r+"]",t);return o[0]||null}function Go(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];let s=e(r,...o);if(s.length>1){let a=s.map(l=>ju(null,l).message).join(`
|
|
342
|
+
|
|
343
|
+
`);throw qu(t(r,...o)+`
|
|
344
|
+
|
|
345
|
+
Here are the matching elements:
|
|
346
|
+
|
|
347
|
+
`+a,r)}return s[0]||null}}function KA(e,t){return Se().getElementError(`A better query is available, try this:
|
|
348
|
+
`+e.toString()+`
|
|
349
|
+
`,t)}function gg(e,t){return function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];let s=e(r,...o);if(!s.length)throw Se().getElementError(t(r,...o),r);return s}}function Ko(e){return (t,r,n,o)=>mg(()=>e(t,r,n),{container:t,...o})}var dn=(e,t,r)=>function(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];let a=e(n,...i),[{suggest:l=Se().throwSuggestions}={}]=i.slice(-1);if(a&&l){let c=tu(a,r);if(c&&!t.endsWith(c.queryName))throw KA(c.toString(),n)}return a},It=(e,t,r)=>function(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];let a=e(n,...i),[{suggest:l=Se().throwSuggestions}={}]=i.slice(-1);if(a.length&&l){let c=[...new Set(a.map(u=>{var f;return (f=tu(u,r))==null?void 0:f.toString()}))];if(c.length===1&&!t.endsWith(tu(a[0],r).queryName))throw KA(c[0],n)}return a};function Ur(e,t,r){let n=dn(Go(e,t),e.name,"query"),o=gg(e,r),i=Go(o,t),s=dn(i,e.name,"get"),a=It(o,e.name.replace("query","get"),"getAll"),l=Ko(It(o,e.name,"findAll")),c=Ko(dn(i,e.name,"find"));return [n,a,s,l,c]}var b8=Object.freeze({__proto__:null,getElementError:ju,wrapAllByQueryWithSuggestion:It,wrapSingleQueryWithSuggestion:dn,getMultipleElementsFoundError:qu,queryAllByAttribute:Kn,queryByAttribute:GA,makeSingleQuery:Go,makeGetAllQuery:gg,makeFindQuery:Ko,buildQueries:Ur});function v8(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:Bh(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}var w8=function(e,t,r){let{exact:n=!0,trim:o,collapseWhitespace:i,normalizer:s}=r===void 0?{}:r,a=n?kr:ni,l=Gn({collapseWhitespace:i,trim:o,normalizer:s});return v8(e).filter(c=>{let{node:u,textToMatch:f}=c;return a(f,u,t,l)}).map(c=>{let{node:u}=c;return u})},gs=function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:i,trim:s,normalizer:a}=r===void 0?{}:r;Fr(e);let l=o?kr:ni,c=Gn({collapseWhitespace:i,trim:s,normalizer:a}),u=Array.from(e.querySelectorAll("*")).filter(f=>BA(f).length||f.hasAttribute("aria-labelledby")).reduce((f,p)=>{let d=FA(e,p,{selector:n});d.filter(m=>!!m.formControl).forEach(m=>{l(m.content,m.formControl,t,c)&&m.formControl&&f.push(m.formControl);});let h=d.filter(m=>!!m.content).map(m=>m.content);return l(h.join(" "),p,t,c)&&f.push(p),h.length>1&&h.forEach((m,y)=>{l(m,p,t,c)&&f.push(p);let g=[...h];g.splice(y,1),g.length>1&&l(g.join(" "),p,t,c)&&f.push(p);}),f},[]).concat(Kn("aria-label",e,t,{exact:o,normalizer:c}));return Array.from(new Set(u)).filter(f=>f.matches(n))},zn=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];let i=gs(e,t,...n);if(!i.length){let s=w8(e,t,...n);if(s.length){let a=s.map(l=>E8(e,l)).filter(l=>!!l);throw a.length?Se().getElementError(a.map(l=>"Found a label with the text of: "+t+", however the element associated with this label (<"+l+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+l+" />, you can use aria-label or aria-labelledby instead.").join(`
|
|
350
|
+
|
|
351
|
+
`),e):Se().getElementError("Found a label with the text of: "+t+`, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`,e)}else throw Se().getElementError("Unable to find a label with the text of: "+t,e)}return i};function E8(e,t){let r=t.getAttribute("for");if(!r)return null;let n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}var YA=(e,t)=>"Found multiple elements with the text of: "+t,JA=dn(Go(gs,YA),gs.name,"query"),XA=Go(zn,YA),QA=Ko(It(zn,zn.name,"findAll")),ZA=Ko(dn(XA,zn.name,"find")),eP=It(zn,zn.name,"getAll"),tP=dn(XA,zn.name,"get"),rP=It(gs,gs.name,"queryAll"),Fh=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Fr(t[0]),Kn("placeholder",...t)},_8=(e,t)=>"Found multiple elements with the placeholder text of: "+t,S8=(e,t)=>"Unable to find an element with the placeholder text of: "+t,nP=It(Fh,Fh.name,"queryAll"),[oP,iP,sP,aP,lP]=Ur(Fh,_8,S8),Uh=function(e,t,r){let{selector:n="*",exact:o=!0,collapseWhitespace:i,trim:s,ignore:a=Se().defaultIgnore,normalizer:l}=r===void 0?{}:r;Fr(e);let c=o?kr:ni,u=Gn({collapseWhitespace:i,trim:s,normalizer:l}),f=[];return typeof e.matches=="function"&&e.matches(n)&&(f=[e]),[...f,...Array.from(e.querySelectorAll(n))].filter(p=>!a||!p.matches(a)).filter(p=>c(Ps(p),p,t,u))},T8=(e,t)=>"Found multiple elements with the text: "+t,C8=function(e,t,r){r===void 0&&(r={});let{collapseWhitespace:n,trim:o,normalizer:i,selector:s}=r,a=Gn({collapseWhitespace:n,trim:o,normalizer:i})(t.toString()),l=a!==t.toString(),c=(s??"*")!=="*";return "Unable to find an element with the text: "+(l?a+" (normalized from '"+t+"')":t)+(c?", which matches selector '"+s+"'":"")+". This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible."},uP=It(Uh,Uh.name,"queryAll"),[cP,fP,dP,pP,hP]=Ur(Uh,T8,C8),zh=function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:i,normalizer:s}=r===void 0?{}:r;Fr(e);let a=n?kr:ni,l=Gn({collapseWhitespace:o,trim:i,normalizer:s});return Array.from(e.querySelectorAll("input,textarea,select")).filter(c=>c.tagName==="SELECT"?Array.from(c.options).filter(u=>u.selected).some(u=>a(Ps(u),u,t,l)):a(c.value,c,t,l))},x8=(e,t)=>"Found multiple elements with the display value: "+t+".",A8=(e,t)=>"Unable to find an element with the display value: "+t+".",mP=It(zh,zh.name,"queryAll"),[gP,yP,bP,vP,wP]=Ur(zh,x8,A8),P8=/^(img|input|area|.+-.+)$/i,Vh=function(e,t,r){return r===void 0&&(r={}),Fr(e),Kn("alt",e,t,r).filter(n=>P8.test(n.tagName))},O8=(e,t)=>"Found multiple elements with the alt text: "+t,R8=(e,t)=>"Unable to find an element with the alt text: "+t,EP=It(Vh,Vh.name,"queryAll"),[_P,SP,TP,CP,xP]=Ur(Vh,O8,R8),M8=e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},Hh=function(e,t,r){let{exact:n=!0,collapseWhitespace:o,trim:i,normalizer:s}=r===void 0?{}:r;Fr(e);let a=n?kr:ni,l=Gn({collapseWhitespace:o,trim:i,normalizer:s});return Array.from(e.querySelectorAll("[title], svg > title")).filter(c=>a(c.getAttribute("title"),c,t,l)||M8(c)&&a(Ps(c),c,t,l))},I8=(e,t)=>"Found multiple elements with the title: "+t+".",N8=(e,t)=>"Unable to find an element with the title: "+t+".",AP=It(Hh,Hh.name,"queryAll"),[PP,OP,RP,MP,IP]=Ur(Hh,I8,N8),Wh=function(e,t,r){let{hidden:n=Se().defaultHidden,name:o,description:i,queryFallbacks:s=!1,selected:a,busy:l,checked:c,pressed:u,current:f,level:p,expanded:d,value:{now:h,min:m,max:y,text:g}={}}=r===void 0?{}:r;if(Fr(e),a!==void 0){var b;if(((b=Ht.roles.get(t))==null?void 0:b.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(l!==void 0){var E;if(((E=Ht.roles.get(t))==null?void 0:E.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(c!==void 0){var _;if(((_=Ht.roles.get(t))==null?void 0:_.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not supported on role "'+t+'".')}if(u!==void 0){var T;if(((T=Ht.roles.get(t))==null?void 0:T.props["aria-pressed"])===void 0)throw new Error('"aria-pressed" is not supported on role "'+t+'".')}if(f!==void 0){var x;if(((x=Ht.roles.get(t))==null?void 0:x.props["aria-current"])===void 0)throw new Error('"aria-current" is not supported on role "'+t+'".')}if(p!==void 0&&t!=="heading")throw new Error('Role "'+t+'" cannot have "level" property.');if(h!==void 0){var S;if(((S=Ht.roles.get(t))==null?void 0:S.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(y!==void 0){var v;if(((v=Ht.roles.get(t))==null?void 0:v.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(m!==void 0){var w;if(((w=Ht.roles.get(t))==null?void 0:w.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+t+'".')}if(g!==void 0){var I;if(((I=Ht.roles.get(t))==null?void 0:I.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(d!==void 0){var C;if(((C=Ht.roles.get(t))==null?void 0:C.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}let N=new WeakMap;function L(q){return N.has(q)||N.set(q,VA(q)),N.get(q)}return Array.from(e.querySelectorAll(j8(t))).filter(q=>{if(q.hasAttribute("role")){let H=q.getAttribute("role");if(s)return H.split(" ").filter(Boolean).some(Z=>Z===t);let[z]=H.split(" ");return z===t}return hg(q).some(H=>H===t)}).filter(q=>{if(a!==void 0)return a===i8(q);if(l!==void 0)return l===s8(q);if(c!==void 0)return c===a8(q);if(u!==void 0)return u===l8(q);if(f!==void 0)return f===u8(q);if(d!==void 0)return d===c8(q);if(p!==void 0)return p===f8(q);if(h!==void 0||y!==void 0||m!==void 0||g!==void 0){let z=!0;if(h!==void 0&&z&&(z=h===d8(q)),y!==void 0&&z&&(z=y===p8(q)),m!==void 0&&z&&(z=m===h8(q)),g!==void 0){var H;z&&(z=kr((H=m8(q))!=null?H:null,q,g,Z=>Z));}return z}return !0}).filter(q=>o===void 0?!0:kr(ug(q,{computedStyleSupportsPseudoElements:Se().computedStyleSupportsPseudoElements}),q,o,H=>H)).filter(q=>i===void 0?!0:kr(OA(q,{computedStyleSupportsPseudoElements:Se().computedStyleSupportsPseudoElements}),q,i,H=>H)).filter(q=>n===!1?Nu(q,{isSubtreeInaccessible:L})===!1:!0)};function j8(e){var t;let r='*[role~="'+e+'"]',n=(t=Ht.roleElements.get(e))!=null?t:new Set,o=new Set(Array.from(n).map(i=>{let{name:s}=i;return s}));return [r].concat(Array.from(o)).join(",")}var NP=e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},q8=function(e,t,r){let{name:n}=r===void 0?{}:r;return 'Found multiple elements with the role "'+t+'"'+NP(n)},$8=function(e,t,r){let{hidden:n=Se().defaultHidden,name:o,description:i}=r===void 0?{}:r;if(Se()._disableExpensiveErrorDiagnostics)return 'Unable to find role="'+t+'"'+NP(o);let s="";Array.from(e.children).forEach(u=>{s+=WA(u,{hidden:n,includeDescription:i!==void 0});});let a;s.length===0?n===!1?a="There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole":a="There are no available roles.":a=(`
|
|
352
|
+
Here are the `+(n===!1?"accessible":"available")+` roles:
|
|
353
|
+
|
|
354
|
+
`+s.replace(/\n/g,`
|
|
355
|
+
`).replace(/\n\s\s\n/g,`
|
|
356
|
+
|
|
357
|
+
`)+`
|
|
358
|
+
`).trim();let l="";o===void 0?l="":typeof o=="string"?l=' and name "'+o+'"':l=" and name `"+o+"`";let c="";return i===void 0?c="":typeof i=="string"?c=' and description "'+i+'"':c=" and description `"+i+"`",(`
|
|
359
|
+
Unable to find an `+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+l+c+`
|
|
360
|
+
|
|
361
|
+
`+a).trim()},jP=It(Wh,Wh.name,"queryAll"),[qP,$P,kP,DP,LP]=Ur(Wh,q8,$8),yg=()=>Se().testIdAttribute,Gh=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Fr(t[0]),Kn(yg(),...t)},k8=(e,t)=>"Found multiple elements by: ["+yg()+'="'+t+'"]',D8=(e,t)=>"Unable to find an element by: ["+yg()+'="'+t+'"]',BP=It(Gh,Gh.name,"queryAll"),[FP,UP,zP,VP,HP]=Ur(Gh,k8,D8),ru=Object.freeze({__proto__:null,queryAllByLabelText:rP,queryByLabelText:JA,getAllByLabelText:eP,getByLabelText:tP,findAllByLabelText:QA,findByLabelText:ZA,queryByPlaceholderText:oP,queryAllByPlaceholderText:nP,getByPlaceholderText:sP,getAllByPlaceholderText:iP,findAllByPlaceholderText:aP,findByPlaceholderText:lP,queryByText:cP,queryAllByText:uP,getByText:dP,getAllByText:fP,findAllByText:pP,findByText:hP,queryByDisplayValue:gP,queryAllByDisplayValue:mP,getByDisplayValue:bP,getAllByDisplayValue:yP,findAllByDisplayValue:vP,findByDisplayValue:wP,queryByAltText:_P,queryAllByAltText:EP,getByAltText:TP,getAllByAltText:SP,findAllByAltText:CP,findByAltText:xP,queryByTitle:PP,queryAllByTitle:AP,getByTitle:RP,getAllByTitle:OP,findAllByTitle:MP,findByTitle:IP,queryByRole:qP,queryAllByRole:jP,getAllByRole:$P,getByRole:kP,findAllByRole:DP,findByRole:LP,queryByTestId:FP,queryAllByTestId:BP,getByTestId:zP,getAllByTestId:UP,findAllByTestId:VP,findByTestId:HP});function Kh(e,t,r){return t===void 0&&(t=ru),r===void 0&&(r={}),Object.keys(t).reduce((n,o)=>{let i=t[o];return n[o]=i.bind(null,e),n},r)}var WP=e=>!e||Array.isArray(e)&&!e.length;function QS(e){if(WP(e))throw new Error("The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.")}async function L8(e,t){let r=new Error("Timed out in waitForElementToBeRemoved.");if(typeof e!="function"){QS(e);let n=(Array.isArray(e)?e:[e]).map(o=>{let i=o.parentElement;if(i===null)return ()=>null;for(;i.parentElement;)i=i.parentElement;return ()=>i.contains(o)?o:null});e=()=>n.map(o=>o()).filter(Boolean);}return QS(e()),mg(()=>{let n;try{n=e();}catch(o){if(o.name==="TestingLibraryElementError")return;throw o}if(!WP(n))throw r},t)}var ZS={copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionEnd:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionStart:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},compositionUpdate:{EventType:"CompositionEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyDown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyPress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},keyUp:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,charCode:0,composed:!0}},focus:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},blur:{EventType:"FocusEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},focusIn:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},focusOut:{EventType:"FocusEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},invalid:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!0}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},reset:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}},click:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,button:0,composed:!0}},contextMenu:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblClick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drag:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragEnd:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragEnter:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragExit:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragLeave:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},dragOver:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dragStart:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},drop:{EventType:"DragEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseDown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseEnter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseLeave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseMove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOut:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseOver:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseUp:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},select:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},touchCancel:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},touchEnd:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchMove:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},touchStart:{EventType:"TouchEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},resize:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},scroll:{EventType:"UIEvent",defaultInit:{bubbles:!1,cancelable:!1}},wheel:{EventType:"WheelEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},abort:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlay:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},canPlayThrough:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},durationChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},emptied:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},encrypted:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},ended:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedData:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadedMetadata:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},loadStart:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},pause:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},play:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},playing:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},progress:{EventType:"ProgressEvent",defaultInit:{bubbles:!1,cancelable:!1}},rateChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeked:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},seeking:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},stalled:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},suspend:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},timeUpdate:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},volumeChange:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},waiting:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},load:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},error:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},animationStart:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationEnd:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},animationIteration:{EventType:"AnimationEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionCancel:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionEnd:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},transitionRun:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},transitionStart:{EventType:"TransitionEvent",defaultInit:{bubbles:!0,cancelable:!1}},pointerOver:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerEnter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerDown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerMove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerUp:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerCancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerOut:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerLeave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},gotPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},lostPointerCapture:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},popState:{EventType:"PopStateEvent",defaultInit:{bubbles:!0,cancelable:!1}},offline:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},online:{EventType:"Event",defaultInit:{bubbles:!1,cancelable:!1}},pageHide:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}},pageShow:{EventType:"PageTransitionEvent",defaultInit:{bubbles:!0,cancelable:!0}}},eT={doubleClick:"dblClick"};function ys(e,t){return Se().eventWrapper(()=>{if(!t)throw new Error("Unable to fire an event - please provide an event object.");if(!e)throw new Error('Unable to fire a "'+t.type+'" event - please provide a DOM element.');return e.dispatchEvent(t)})}function Bl(e,t,r,n){let{EventType:o="Event",defaultInit:i={}}=n===void 0?{}:n;if(!t)throw new Error('Unable to fire a "'+e+'" event - please provide a DOM element.');let s={...i,...r},{target:{value:a,files:l,...c}={}}=s;a!==void 0&&B8(t,a),l!==void 0&&Object.defineProperty(t,"files",{configurable:!0,enumerable:!0,writable:!0,value:l}),Object.assign(t,c);let u=DA(t),f=u[o]||u.Event,p;if(typeof f=="function")p=new f(e,s);else {p=u.document.createEvent(o);let{bubbles:d,cancelable:h,detail:m,...y}=s;p.initEvent(e,d,h,m),Object.keys(y).forEach(g=>{p[g]=y[g];});}return ["dataTransfer","clipboardData"].forEach(d=>{let h=s[d];typeof h=="object"&&(typeof u.DataTransfer=="function"?Object.defineProperty(p,d,{value:Object.getOwnPropertyNames(h).reduce((m,y)=>(Object.defineProperty(m,y,{value:h[y]}),m),new u.DataTransfer)}):Object.defineProperty(p,d,{value:h}));}),p}Object.keys(ZS).forEach(e=>{let{EventType:t,defaultInit:r}=ZS[e],n=e.toLowerCase();Bl[e]=(o,i)=>Bl(n,o,i,{EventType:t,defaultInit:r}),ys[e]=(o,i)=>ys(o,Bl[e](o,i));});function B8(e,t){let{set:r}=Object.getOwnPropertyDescriptor(e,"value")||{},n=Object.getPrototypeOf(e),{set:o}=Object.getOwnPropertyDescriptor(n,"value")||{};if(o&&r!==o)o.call(e,t);else if(r)r.call(e,t);else throw new Error("The given element does not have a value setter")}Object.keys(eT).forEach(e=>{let t=eT[e];ys[e]=function(){return ys[t](...arguments)};});function F8(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
|
|
362
|
+
`)}function U8(e){return IW.default.compressToEncodedURIComponent(F8(e))}function z8(e){return "https://testing-playground.com/#markup="+U8(e)}var V8=(e,t,r)=>Array.isArray(e)?e.forEach(n=>Lh(n,t,r)):Lh(e,t,r),H8=function(e){if(e===void 0&&(e=dg().body),!e||!("innerHTML"in e)){console.log("The element you're providing isn't a valid DOM element.");return}if(!e.innerHTML){console.log("The provided element doesn't have any children.");return}let t=z8(e.innerHTML);return console.log(`Open this URL in your browser
|
|
363
|
+
|
|
364
|
+
`+t),t},tT={debug:V8,logTestingPlaygroundURL:H8},W8=typeof document<"u"&&document.body?Kh(document.body,ru,tT):Object.keys(ru).reduce((e,t)=>(e[t]=()=>{throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error")},e),tT);function ye(e,t,r){return e.namespaceURI&&e.namespaceURI!=="http://www.w3.org/1999/xhtml"||(t=Array.isArray(t)?t:[t],!t.includes(e.tagName.toLowerCase()))?!1:r?Object.entries(r).every(([n,o])=>e[n]===o):!0}var Yh;(function(e){e.button="button",e.color="color",e.file="file",e.image="image",e.reset="reset",e.submit="submit",e.checkbox="checkbox",e.radio="radio";})(Yh||(Yh={}));function GP(e){return ye(e,"button")||ye(e,"input")&&e.type in Yh}function wr(e){var t;if(G8(e)&&e.defaultView)return e.defaultView;if(!((t=e.ownerDocument)===null||t===void 0)&&t.defaultView)return e.ownerDocument.defaultView;throw new Error(`Could not determine window of node. Node was ${K8(e)}`)}function G8(e){return e.nodeType===9}function K8(e){return typeof e=="function"?`function ${e.name}`:e===null?"null":String(e)}function KP(e,t){return new Promise((r,n)=>{let o=new t;o.onerror=n,o.onabort=n,o.onload=()=>{r(String(o.result));},o.readAsText(e);})}function bg(e,t){let r={...t,length:t.length,item:n=>r[n],[Symbol.iterator]:function*(){for(let n=0;n<r.length;n++)yield r[n];}};return r.constructor=e.FileList,e.FileList&&Object.setPrototypeOf(r,e.FileList.prototype),Object.freeze(r),r}function un(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var YP=class{getAsFile(){return this.file}getAsString(e){typeof this.data=="string"&&e(this.data);}webkitGetAsEntry(){throw new Error("not implemented")}constructor(e,t){un(this,"kind",void 0),un(this,"type",void 0),un(this,"file",null),un(this,"data",void 0),typeof e=="string"?(this.kind="string",this.type=String(t),this.data=e):(this.kind="file",this.type=e.type,this.file=e);}},Y8=class extends Array{add(...e){let t=new YP(e[0],e[1]);return this.push(t),t}clear(){this.splice(0,this.length);}remove(e){this.splice(e,1);}};function Rl(e,t){let[r,n]=e.split("/"),o=!n||n==="*";return i=>t?i.type===(o?r:e):o?i.type.startsWith(`${r}/`):i.type===r}function J8(e){return new class{getData(t){var r;let n=(r=this.items.find(Rl(t,!0)))!==null&&r!==void 0?r:this.items.find(Rl(t,!1)),o="";return n?.getAsString(i=>{o=i;}),o}setData(t,r){let n=this.items.findIndex(Rl(t,!0)),o=new YP(r,t);n>=0?this.items.splice(n,1,o):this.items.push(o);}clearData(t){if(t){let r=this.items.findIndex(Rl(t,!0));r>=0&&this.items.remove(r);}else this.items.clear();}get types(){let t=[];return this.files.length&&t.push("Files"),this.items.forEach(r=>t.push(r.type)),Object.freeze(t),t}setDragImage(){}constructor(){un(this,"dropEffect","none"),un(this,"effectAllowed","uninitialized"),un(this,"items",new Y8),un(this,"files",bg(e,[]));}}}function vg(e,t=[]){let r=typeof e.DataTransfer>"u"?J8(e):new e.DataTransfer;return Object.defineProperty(r,"files",{get:()=>bg(e,t)}),r}function X8(e,t){if(t.kind==="file")return t.getAsFile();let r="";return t.getAsString(n=>{r=n;}),new e.Blob([r],{type:t.type})}function JP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XP(e,...t){let r=Object.fromEntries(t.map(n=>[typeof n=="string"?"text/plain":n.type,Promise.resolve(n)]));return typeof e.ClipboardItem<"u"?new e.ClipboardItem(r):new class{get types(){return Array.from(Object.keys(this.data))}async getType(n){let o=await this.data[n];if(!o)throw new Error(`${n} is not one of the available MIME types on this item.`);return o instanceof e.Blob?o:new e.Blob([o],{type:n})}constructor(n){JP(this,"data",void 0),this.data=n;}}(r)}var Yo=Symbol("Manage ClipboardSub");function rT(e,t){return Object.assign(new class extends e.EventTarget{async read(){return Array.from(this.items)}async readText(){let r="";for(let n of this.items){let o=n.types.includes("text/plain")?"text/plain":n.types.find(i=>i.startsWith("text/"));o&&(r+=await n.getType(o).then(i=>KP(i,e.FileReader)));}return r}async write(r){this.items=r;}async writeText(r){this.items=[XP(e,r)];}constructor(...r){super(...r),JP(this,"items",[]);}},{[Yo]:t})}function wg(e){return !!e?.[Yo]}function Q8(e){if(wg(e.navigator.clipboard))return e.navigator.clipboard[Yo];let t=Object.getOwnPropertyDescriptor(e.navigator,"clipboard"),r,n={resetClipboardStub:()=>{r=rT(e,n);},detachClipboardStub:()=>{t?Object.defineProperty(e.navigator,"clipboard",t):Object.defineProperty(e.navigator,"clipboard",{value:void 0,configurable:!0});}};return r=rT(e,n),Object.defineProperty(e.navigator,"clipboard",{get:()=>r,configurable:!0}),r[Yo]}function Z8(e){wg(e.navigator.clipboard)&&e.navigator.clipboard[Yo].resetClipboardStub();}function eG(e){wg(e.navigator.clipboard)&&e.navigator.clipboard[Yo].detachClipboardStub();}async function tG(e){let t=e.defaultView,r=t?.navigator.clipboard,n=r&&await r.read();if(!n)throw new Error("The Clipboard API is unavailable.");let o=vg(t);for(let i of n)for(let s of i.types)o.setData(s,await i.getType(s).then(a=>KP(a,t.FileReader)));return o}async function QP(e,t){let r=wr(e),n=r.navigator.clipboard,o=[];for(let i=0;i<t.items.length;i++){let s=t.items[i],a=X8(r,s);o.push(XP(r,a));}if(!(n&&await n.write(o).then(()=>!0,()=>!1)))throw new Error("The Clipboard API is unavailable.")}var nu=globalThis;typeof nu.afterEach=="function"&&nu.afterEach(()=>Z8(globalThis.window));typeof nu.afterAll=="function"&&nu.afterAll(()=>eG(globalThis.window));function Vn(e){return e.hasAttribute("contenteditable")&&(e.getAttribute("contenteditable")=="true"||e.getAttribute("contenteditable")=="")}function bs(e){let t=rG(e);return t&&(t.closest('[contenteditable=""]')||t.closest('[contenteditable="true"]'))}function rG(e){return e.nodeType===1?e:e.parentElement}function Jo(e){return ZP(e)&&!e.readOnly||Vn(e)}var Jh;(function(e){e.text="text",e.date="date",e["datetime-local"]="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url",e.week="week";})(Jh||(Jh={}));function ZP(e){return ye(e,"textarea")||ye(e,"input")&&e.type in Jh}var Xh;(function(e){e.email="email",e.password="password",e.search="search",e.telephone="telephone",e.text="text",e.url="url";})(Xh||(Xh={}));function nG(e){var t;let r=(t=e.getAttribute("maxlength"))!==null&&t!==void 0?t:"";return /^\d+$/.test(r)&&Number(r)>=0?Number(r):void 0}function oG(e){return ye(e,"textarea")||ye(e,"input")&&e.type in Xh}var eO=["input:not([type=hidden]):not([disabled])","button:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contenteditable=""]','[contenteditable="true"]',"a[href]","[tabindex]:not([disabled])"].join(", ");function Eg(e){return e.matches(eO)}var ou;(function(e){e["{"]="}",e["["]="]";})(ou||(ou={}));function tO(e,t){let r=0,n=e[r]in ou?e[r]:"";r+=n.length;let o=new RegExp(`^\\${n}{2}`).test(e)?"":n;return {type:o,...o===""?iG(e,r,t):sG(e,r,o,t)}}function iG(e,t,r){let n=e[t];return rO(n,e,t,r),t+=n.length,{consumedLength:t,descriptor:n,releasePrevious:!1,releaseSelf:!0,repeat:1}}function sG(e,t,r,n){var o,i;let s=e[t]==="/"?"/":"";t+=s.length;let a=r==="{"&&e[t]==="\\";t+=Number(a);let l=a?e[t]:(o=e.slice(t).match(r==="{"?/^\w+|^[^}>/]/:/^\w+/))===null||o===void 0?void 0:o[0];rO(l,e,t,n),t+=l.length;var c;let u=(c=(i=e.slice(t).match(/^>\d+/))===null||i===void 0?void 0:i[0])!==null&&c!==void 0?c:"";t+=u.length;let f=e[t]==="/"||!u&&e[t]===">"?e[t]:"";t+=f.length;let p=ou[r],d=e[t]===p?p:"";if(!d)throw new Error(nO([!u&&"repeat modifier",!f&&"release modifier",`"${p}"`].filter(Boolean).join(" or "),e[t],e,n));return t+=d.length,{consumedLength:t,descriptor:l,releasePrevious:!!s,repeat:u?Math.max(Number(u.substr(1)),1):1,releaseSelf:aG(f,u)}}function rO(e,t,r,n){if(!e)throw new Error(nO("key descriptor",t[r],t,n))}function aG(e,t){if(e)return e==="/";if(t)return !1}function nO(e,t,r,n){return `Expected ${e} but found "${t??""}" in "${r}"
|
|
365
|
+
See ${n==="pointer"?"https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen":"https://testing-library.com/docs/user-event/keyboard"}
|
|
366
|
+
for more information about how userEvent parses your input.`}function lG(e){return new e.constructor(e.type,e)}var Pt;(function(e){e[e.Trigger=2]="Trigger",e[e.Call=1]="Call";})(Pt||(Pt={}));function Xi(e,t){e.levelRefs[t]={};}function Ml(e,t){return e.levelRefs[t]}var Bo;(function(e){e[e.EachTrigger=4]="EachTrigger",e[e.EachApiCall=2]="EachApiCall",e[e.EachTarget=1]="EachTarget",e[e.Never=0]="Never";})(Bo||(Bo={}));function Dr(e){for(let r=e;r;r=r.parentElement)if(ye(r,["button","input","select","textarea","optgroup","option"])){if(r.hasAttribute("disabled"))return !0}else if(ye(r,"fieldset")){var t;if(r.hasAttribute("disabled")&&!(!((t=r.querySelector(":scope > legend"))===null||t===void 0)&&t.contains(e)))return !0}else if(r.tagName.includes("-")&&r.constructor.formAssociated&&r.hasAttribute("disabled"))return !0;return !1}function $u(e){let t=e.activeElement;return t?.shadowRoot?$u(t.shadowRoot):Dr(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}function th(e){var t;return (t=$u(e))!==null&&t!==void 0?t:e.body}function uG(e,t){let r=e;do{if(t(r))return r;r=r.parentElement;}while(r&&r!==e.ownerDocument.body)}function Er(e){return oO(e)&&ZP(e)}function cG(e){return oO(e)&&GP(e)}function oO(e){return e.nodeType===1}function fG(e){let t=e.ownerDocument.getSelection();if(t?.focusNode&&Er(e)){let n=bs(t.focusNode);if(n){if(!t.isCollapsed){var r;let o=((r=n.firstChild)===null||r===void 0?void 0:r.nodeType)===3?n.firstChild:n;t.setBaseAndExtent(o,0,o,0);}}else t.setBaseAndExtent(e,0,e,0);}}function Xo(e,t){return Se().eventWrapper(e)}function pn(e){let t=uG(e,Eg),r=$u(e.ownerDocument);(t??e.ownerDocument.body)!==r&&(Xo(t?()=>t.focus():()=>r?.blur()),fG(t??e.ownerDocument.body));}function dG(e){!Eg(e)||$u(e.ownerDocument)!==e||Xo(()=>e.blur());}var hn={};hn.click=(e,t,r)=>{let n=t.closest("button,input,label,select,textarea"),o=n&&ye(n,"label")&&n.control;if(o)return ()=>{Eg(o)&&pn(o),r.dispatchEvent(o,lG(e));};if(ye(t,"input",{type:"file"}))return ()=>{dG(t),t.dispatchEvent(new(wr(t)).Event("fileDialog")),pn(t);}};var Qo=Symbol("Displayed value in UI"),$r=Symbol("Displayed selection in UI"),iu=Symbol("Initial value to compare on blur");function pG(e){return typeof e=="object"&&Qo in e}function hG(e){return !!e&&typeof e=="object"&&$r in e}function mG(e,t){e[iu]===void 0&&(e[iu]=e.value),e[Qo]=t,e.value=Object.assign(new String(t),{[Qo]:!0});}function _r(e){return e[Qo]===void 0?e.value:String(e[Qo])}function _g(e){e[Qo]=void 0;}function iO(e){e[iu]=void 0;}function gG(e){return e[iu]}function yG(e,t){e[$r]=t;}function oi(e,{focusOffset:t,anchorOffset:r=t},n="replace"){let o=_r(e).length,i=f=>Math.max(0,Math.min(o,f)),s=n==="replace"||e[$r]===void 0?i(r):e[$r].anchorOffset,a=i(t),l=Math.min(s,a),c=Math.max(s,a);if(e[$r]={anchorOffset:s,focusOffset:a},e.selectionStart===l&&e.selectionEnd===c)return;let u=Object.assign(new Number(l),{[$r]:!0});try{e.setSelectionRange(u,c);}catch{}}function vs(e){var t,r,n;let o=(n=e[$r])!==null&&n!==void 0?n:{anchorOffset:(t=e.selectionStart)!==null&&t!==void 0?t:0,focusOffset:(r=e.selectionEnd)!==null&&r!==void 0?r:0};return {...o,startOffset:Math.min(o.anchorOffset,o.focusOffset),endOffset:Math.max(o.anchorOffset,o.focusOffset)}}function bG(e){return !!e[$r]}function Fl(e){e[$r]=void 0;}var su=globalThis.parseInt;function vG(e){let t=e.replace(/\D/g,"");if(t.length<2)return e;let r=su(t[0],10),n=su(t[1],10);if(r>=3||r===2&&n>=4){let o;return r>=3?o=1:o=2,nT(t,o)}return e.length===2?e:nT(t,2)}function nT(e,t){let r=e.slice(0,t),n=Math.min(su(r,10),23),o=e.slice(t),i=su(o,10),s=Math.min(i,59);return `${n.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}`}function sO(e,t){let r=e.cloneNode();return r.value=t,r.value===t}function aO(e,t,r,n){if(Ul(e)&&t+r>=0&&t+r<=e.nodeValue.length)return {node:e,offset:t+r};let o=oT(e,t,r);if(o){if(Ul(o))return {node:o,offset:r>0?Math.min(1,o.nodeValue.length):Math.max(o.nodeValue.length-1,0)};if(ye(o,"br")){let i=oT(o,void 0,r);return i?Ul(i)?{node:i,offset:r>0?0:i.nodeValue.length}:r<0&&ye(i,"br")?{node:o.parentNode,offset:Il(o)}:{node:i.parentNode,offset:Il(i)+(r>0?0:1)}:r<0&&n==="deleteContentBackward"?{node:o.parentNode,offset:Il(o)}:void 0}else return {node:o.parentNode,offset:Il(o)+(r>0?1:0)}}}function oT(e,t,r){let n=Number(t)+(r<0?-1:0);return t!==void 0&&Sg(e)&&n>=0&&n<e.children.length&&(e=e.children[n]),EG(e,r===1?"next":"previous",wG)}function wG(e){if(Ul(e))return !0;if(Sg(e)){if(ye(e,["input","textarea"]))return e.type!=="hidden";if(ye(e,"br"))return !0}return !1}function Il(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}function Sg(e){return e.nodeType===1}function Ul(e){return e.nodeType===3}function EG(e,t,r){for(;;){var n;let o=e[`${t}Sibling`];if(o){if(e=_G(o,t==="next"?"first":"last"),r(e))return e}else if(e.parentNode&&(!Sg(e.parentNode)||!Vn(e.parentNode)&&e.parentNode!==((n=e.ownerDocument)===null||n===void 0?void 0:n.body)))e=e.parentNode;else break}}function _G(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}var ws=Symbol("Track programmatic changes for React workaround");function SG(e){return Object.getOwnPropertyNames(e).some(t=>t.startsWith("__react"))&&wr(e).REACT_VERSION===17}function TG(e){SG(e)&&(e[ws]={previousValue:String(e.value),tracked:[]});}function CG(e,t){var r,n;(n=e[ws])===null||n===void 0||(r=n.tracked)===null||r===void 0||r.push(t),e[ws]||(_g(e),oi(e,{focusOffset:t.length}));}function xG(e,t){var r;let n=e[ws];if(e[ws]=void 0,!(!(n==null||(r=n.tracked)===null||r===void 0)&&r.length))return;let o=n.tracked.length===2&&n.tracked[0]===n.previousValue&&n.tracked[1]===e.value;o||_g(e),bG(e)&&oi(e,{focusOffset:o?t:e.value.length});}function lO(e){let t=AG(e);if(t&&Er(t))return {type:"input",selection:vs(t)};let r=t?.ownerDocument.getSelection();return {type:bs(e)&&r?.anchorNode&&bs(r.anchorNode)?"contenteditable":"default",selection:r}}function AG(e){return e.nodeType===1?e:e.parentElement}function PG(e){let t=lO(e);if(t.type==="input")return t.selection;if(t.type==="contenteditable"){var r;return (r=t.selection)===null||r===void 0?void 0:r.getRangeAt(0)}}function Hn({focusNode:e,focusOffset:t,anchorNode:r=e,anchorOffset:n=t}){var o,i;if(lO(e).type==="input")return oi(e,{anchorOffset:n,focusOffset:t});(i=r.ownerDocument)===null||i===void 0||(o=i.getSelection())===null||o===void 0||o.setBaseAndExtent(r,n,e,t);}function uO(e){return ye(e,"input")&&["date","time"].includes(e.type)}function Zo(e,t,r,n="insertText"){let o=PG(t);o&&(!uO(t)&&!e.dispatchUIEvent(t,"beforeinput",{inputType:n,data:r})||("startContainer"in o?OG(e,t,o,r,n):RG(e,t,o,r,n)));}function OG(e,t,r,n,o){let i=!1;if(!r.collapsed)i=!0,r.deleteContents();else if(["deleteContentBackward","deleteContentForward"].includes(o)){let s=aO(r.startContainer,r.startOffset,o==="deleteContentBackward"?-1:1,o);if(s){i=!0;let a=r.cloneRange();a.comparePoint(s.node,s.offset)<0?a.setStart(s.node,s.offset):a.setEnd(s.node,s.offset),a.deleteContents();}}if(n)if(r.endContainer.nodeType===3){let s=r.endOffset;r.endContainer.insertData(s,n),r.setStart(r.endContainer,s+n.length),r.setEnd(r.endContainer,s+n.length);}else {let s=t.ownerDocument.createTextNode(n);r.insertNode(s),r.setStart(s,n.length),r.setEnd(s,n.length);}(i||n)&&e.dispatchUIEvent(t,"input",{inputType:o});}function RG(e,t,r,n,o){let i=n;if(oG(t)){let c=nG(t);if(c!==void 0&&n.length>0){let u=c-t.value.length;if(u>0)i=n.substring(0,u);else return}}let{newValue:s,newOffset:a,oldValue:l}=MG(i,t,r,o);s===l&&a===r.startOffset&&a===r.endOffset||ye(t,"input",{type:"number"})&&!IG(s)||(mG(t,s),Hn({focusNode:t,anchorOffset:a,focusOffset:a}),uO(t)?sO(t,s)&&(iT(e,t,a,{}),e.dispatchUIEvent(t,"change"),iO(t)):iT(e,t,a,{data:n,inputType:o}));}function MG(e,t,{startOffset:r,endOffset:n},o){let i=_r(t),s=Math.max(0,r===n&&o==="deleteContentBackward"?r-1:r),a=i.substring(0,s),l=Math.min(i.length,r===n&&o==="deleteContentForward"?r+1:n),c=i.substring(l,i.length),u=`${a}${e}${c}`,f=s+e.length;if(ye(t,"input",{type:"time"})){let p=vG(u);p!==""&&sO(t,p)&&(u=p,f=p.length);}return {oldValue:i,newValue:u,newOffset:f}}function iT(e,t,r,n){e.dispatchUIEvent(t,"input",n),xG(t,r);}function IG(e){var t,r;let n=e.split("e",2);return !(/[^\d.\-e]/.test(e)||Number((t=e.match(/-/g))===null||t===void 0?void 0:t.length)>2||Number((r=e.match(/\./g))===null||r===void 0?void 0:r.length)>1||n[1]&&!/^-?\d*$/.test(n[1]))}hn.cut=(e,t,r)=>()=>{Jo(t)&&Zo(r,t,"","deleteByCut");};function NG(e){return e?Vn(e)?e.textContent:_r(e):null}function jG(e){let t=wr(e);for(let r=e;r?.ownerDocument;r=r.parentElement){let{display:n,visibility:o}=t.getComputedStyle(r);if(n==="none"||o==="hidden")return !1}return !0}function qG(e,t){let r=e.ownerDocument,n=r.querySelectorAll(eO),o=Array.from(n).filter(l=>l===e||!(Number(l.getAttribute("tabindex"))<0||Dr(l)));Number(e.getAttribute("tabindex"))>=0&&o.sort((l,c)=>{let u=Number(l.getAttribute("tabindex")),f=Number(c.getAttribute("tabindex"));return u===f?0:u===0?1:f===0?-1:u-f});let i={},s=[r.body],a=ye(e,"input",{type:"radio"})?e.name:void 0;o.forEach(l=>{let c=l;if(ye(c,"input",{type:"radio"})&&c.name){if(c===e){s.push(c);return}else if(c.name===a)return;if(c.checked){s=s.filter(u=>!ye(u,"input",{type:"radio",name:c.name})),s.push(c),i[c.name]=c;return}if(typeof i[c.name]<"u")return}s.push(c);});for(let l=s.findIndex(c=>c===e);;)if(l+=t?-1:1,l===s.length?l=0:l===-1&&(l=s.length-1),s[l]===e||s[l]===r.body||jG(s[l]))return s[l]}function sT(e,t){if(Er(e)){let r=vs(e);Hn({focusNode:e,focusOffset:r.startOffset===r.endOffset?r.focusOffset+t:t<0?r.startOffset:r.endOffset});}else {let r=e.ownerDocument.getSelection();if(!r?.focusNode)return;if(r.isCollapsed){let n=aO(r.focusNode,r.focusOffset,t);n&&Hn({focusNode:n.node,focusOffset:n.offset});}else r[t<0?"collapseToStart":"collapseToEnd"]();}}function cO(e){if(Er(e))return Hn({focusNode:e,anchorOffset:0,focusOffset:_r(e).length});var t;let r=(t=bs(e))!==null&&t!==void 0?t:e.ownerDocument.body;Hn({focusNode:r,anchorOffset:0,focusOffset:r.childNodes.length});}function $G(e){if(Er(e))return vs(e).startOffset===0&&vs(e).endOffset===_r(e).length;var t;let r=(t=bs(e))!==null&&t!==void 0?t:e.ownerDocument.body,n=e.ownerDocument.getSelection();return n?.anchorNode===r&&n.focusNode===r&&n.anchorOffset===0&&n.focusOffset===r.childNodes.length}function Qi(e,t,r){var n;if(Er(e))return Hn({focusNode:e,anchorOffset:t,focusOffset:r});if(Vn(e)&&((n=e.firstChild)===null||n===void 0?void 0:n.nodeType)===3)return Hn({focusNode:e.firstChild,anchorOffset:t,focusOffset:r});throw new Error("Not implemented. The result of this interaction is unreliable.")}function Nl(e,t,r){let n=wr(t),o=Array.from(t.ownerDocument.querySelectorAll(t.name?`input[type="radio"][name="${n.CSS.escape(t.name)}"]`:'input[type="radio"][name=""], input[type="radio"]:not([name])'));for(let i=o.findIndex(s=>s===t)+r;;i+=r){if(o[i]||(i=r>0?0:o.length-1),o[i]===t)return;Dr(o[i])||(pn(o[i]),e.dispatchUIEvent(o[i],"click"));}}hn.keydown=(e,t,r)=>{var n,o;return (o=(n=aT[e.key])===null||n===void 0?void 0:n.call(aT,e,t,r))!==null&&o!==void 0?o:kG(e,t,r)};var aT={ArrowDown:(e,t,r)=>{if(ye(t,"input",{type:"radio"}))return ()=>Nl(r,t,-1)},ArrowLeft:(e,t,r)=>ye(t,"input",{type:"radio"})?()=>Nl(r,t,-1):()=>sT(t,-1),ArrowRight:(e,t,r)=>ye(t,"input",{type:"radio"})?()=>Nl(r,t,1):()=>sT(t,1),ArrowUp:(e,t,r)=>{if(ye(t,"input",{type:"radio"}))return ()=>Nl(r,t,1)},Backspace:(e,t,r)=>{if(Jo(t))return ()=>{Zo(r,t,"","deleteContentBackward");}},Delete:(e,t,r)=>{if(Jo(t))return ()=>{Zo(r,t,"","deleteContentForward");}},End:(e,t)=>{if(ye(t,["input","textarea"])||Vn(t))return ()=>{var r,n;let o=(n=(r=NG(t))===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0;Qi(t,o,o);}},Home:(e,t)=>{if(ye(t,["input","textarea"])||Vn(t))return ()=>{Qi(t,0,0);}},PageDown:(e,t)=>{if(ye(t,["input"]))return ()=>{let r=_r(t).length;Qi(t,r,r);}},PageUp:(e,t)=>{if(ye(t,["input"]))return ()=>{Qi(t,0,0);}},Tab:(e,t,r)=>()=>{let n=qG(t,r.system.keyboard.modifiers.Shift);pn(n),Er(n)&&oi(n,{anchorOffset:0,focusOffset:n.value.length});}},kG=(e,t,r)=>{if(e.code==="KeyA"&&r.system.keyboard.modifiers.Control)return ()=>cO(t)};hn.keypress=(e,t,r)=>{if(e.key==="Enter"){if(ye(t,"button")||ye(t,"input")&&DG.includes(t.type)||ye(t,"a")&&t.href)return ()=>{r.dispatchUIEvent(t,"click");};if(ye(t,"input")){let n=t.form,o=n?.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');return o?()=>r.dispatchUIEvent(o,"click"):n&&LG.includes(t.type)&&n.querySelectorAll("input").length===1?()=>r.dispatchUIEvent(n,"submit"):void 0}}if(Jo(t)){let n=e.key==="Enter"?Vn(t)&&!r.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",o=e.key==="Enter"?`
|
|
367
|
+
`:e.key;return ()=>Zo(r,t,o,n)}};var DG=["button","color","file","image","reset","submit"],LG=["email","month","password","search","tel","text","url","week"];hn.keyup=(e,t,r)=>{var n;return (n=lT[e.key])===null||n===void 0?void 0:n.call(lT,e,t,r)};var lT={" ":(e,t,r)=>{if(GP(t))return ()=>r.dispatchUIEvent(t,"click")}};hn.paste=(e,t,r)=>{if(Jo(t))return ()=>{var n;let o=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text");o&&Zo(r,t,o,"insertFromPaste");}};var fO={auxclick:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},beforeinput:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},click:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},contextmenu:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},copy:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},change:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!1}},cut:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},dblclick:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keydown:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keypress:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},keyup:{EventType:"KeyboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},paste:{EventType:"ClipboardEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},input:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},mousedown:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseenter:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mouseleave:{EventType:"MouseEvent",defaultInit:{bubbles:!1,cancelable:!1,composed:!0}},mousemove:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseout:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseover:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},mouseup:{EventType:"MouseEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerover:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerenter:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},pointerdown:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointermove:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerup:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointercancel:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!1,composed:!0}},pointerout:{EventType:"PointerEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}},pointerleave:{EventType:"PointerEvent",defaultInit:{bubbles:!1,cancelable:!1}},submit:{EventType:"Event",defaultInit:{bubbles:!0,cancelable:!0}}};function dO(e){return fO[e].EventType}var BG=["MouseEvent","PointerEvent"];function FG(e){return BG.includes(dO(e))}function UG(e){return dO(e)==="KeyboardEvent"}var zG={ClipboardEvent:[HG],Event:[],InputEvent:[jl,WG],MouseEvent:[jl,rh,uT],PointerEvent:[jl,rh,uT,KG],KeyboardEvent:[jl,rh,GG]};function pO(e,t,r){let n=wr(t),{EventType:o,defaultInit:i}=fO[e],s=new(VG(n))[o](e,i);return zG[o].forEach(a=>a(s,r??{})),s}function VG(e){var t;let r=(t=e.Event)!==null&&t!==void 0?t:class{};var n;let o=(n=e.AnimationEvent)!==null&&n!==void 0?n:class extends r{};var i;let s=(i=e.ClipboardEvent)!==null&&i!==void 0?i:class extends r{};var a;let l=(a=e.PopStateEvent)!==null&&a!==void 0?a:class extends r{};var c;let u=(c=e.ProgressEvent)!==null&&c!==void 0?c:class extends r{};var f;let p=(f=e.TransitionEvent)!==null&&f!==void 0?f:class extends r{};var d;let h=(d=e.UIEvent)!==null&&d!==void 0?d:class extends r{};var m;let y=(m=e.CompositionEvent)!==null&&m!==void 0?m:class extends h{};var g;let b=(g=e.FocusEvent)!==null&&g!==void 0?g:class extends h{};var E;let _=(E=e.InputEvent)!==null&&E!==void 0?E:class extends h{};var T;let x=(T=e.KeyboardEvent)!==null&&T!==void 0?T:class extends h{};var S;let v=(S=e.MouseEvent)!==null&&S!==void 0?S:class extends h{};var w;let I=(w=e.DragEvent)!==null&&w!==void 0?w:class extends v{};var C;let N=(C=e.PointerEvent)!==null&&C!==void 0?C:class extends v{};var L;let q=(L=e.TouchEvent)!==null&&L!==void 0?L:class extends h{};return {Event:r,AnimationEvent:o,ClipboardEvent:s,PopStateEvent:l,ProgressEvent:u,TransitionEvent:p,UIEvent:h,CompositionEvent:y,FocusEvent:b,InputEvent:_,KeyboardEvent:x,MouseEvent:v,DragEvent:I,PointerEvent:N,TouchEvent:q}}function Yn(e,t){for(let[r,n]of Object.entries(t))Object.defineProperty(e,r,{get:()=>n??null});}function at(e){return Number(e??0)}function HG(e,{clipboardData:t}){Yn(e,{clipboardData:t});}function WG(e,{data:t,inputType:r,isComposing:n}){Yn(e,{data:t,isComposing:!!n,inputType:String(r)});}function jl(e,{view:t,detail:r}){Yn(e,{view:t,detail:at(r??0)});}function rh(e,{altKey:t,ctrlKey:r,metaKey:n,shiftKey:o,modifierAltGraph:i,modifierCapsLock:s,modifierFn:a,modifierFnLock:l,modifierNumLock:c,modifierScrollLock:u,modifierSymbol:f,modifierSymbolLock:p}){Yn(e,{altKey:!!t,ctrlKey:!!r,metaKey:!!n,shiftKey:!!o,getModifierState(d){return !!{Alt:t,AltGraph:i,CapsLock:s,Control:r,Fn:a,FnLock:l,Meta:n,NumLock:c,ScrollLock:u,Shift:o,Symbol:f,SymbolLock:p}[d]}});}function GG(e,{key:t,code:r,location:n,repeat:o,isComposing:i,charCode:s}){Yn(e,{key:String(t),code:String(r),location:at(n),repeat:!!o,isComposing:!!i,charCode:s});}function uT(e,{x:t,y:r,screenX:n,screenY:o,clientX:i=t,clientY:s=r,button:a,buttons:l,relatedTarget:c}){Yn(e,{screenX:at(n),screenY:at(o),clientX:at(i),x:at(i),clientY:at(s),y:at(s),button:at(a),buttons:at(l),relatedTarget:c});}function KG(e,{pointerId:t,width:r,height:n,pressure:o,tangentialPressure:i,tiltX:s,tiltY:a,twist:l,pointerType:c,isPrimary:u}){Yn(e,{pointerId:at(t),width:at(r),height:at(n),pressure:at(o),tangentialPressure:at(i),tiltX:at(s),tiltY:at(a),twist:at(l),pointerType:String(c),isPrimary:!!u});}function YG(e,t,r,n=!1){(FG(t)||UG(t))&&(r={...r,...this.system.getUIEventModifiers()});let o=pO(t,e,r);return hO.call(this,e,o,n)}function hO(e,t,r=!1){var n;let o=t.type,i=r?()=>{}:(n=hn[o])===null||n===void 0?void 0:n.call(hn,t,e,this);if(i){t.preventDefault();let s=!1;return Object.defineProperty(t,"defaultPrevented",{get:()=>s}),Object.defineProperty(t,"preventDefault",{value:()=>{s=t.cancelable;}}),Xo(()=>e.dispatchEvent(t)),s||i(),!s}return Xo(()=>e.dispatchEvent(t))}function JG(e,t,r){let n=pO(t,e,r);Xo(()=>e.dispatchEvent(n));}var nh=Symbol("Interceptor for programmatical calls");function Do(e,t,r){let n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=Object.getOwnPropertyDescriptor(e,t),i=n?.set?"set":"value";if(typeof n?.[i]!="function"||n[i][nh])throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);function s(...a){let{applyNative:l=!1,realArgs:c,then:u}=r.call(this,...a),f=(!l&&o||n)[i];i==="set"?f.call(this,c):f.call(this,...c),u?.();}s[nh]=nh,Object.defineProperty(e,t,{...o??n,[i]:s});}function XG(e){Do(e,"value",function(t){let r=pG(t);return r&&TG(this),{applyNative:!!r,realArgs:QG(this,t),then:r?void 0:()=>CG(this,String(t))}});}function QG(e,t){return ye(e,"input",{type:"number"})&&String(t)!==""&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}function ZG(e){Do(e,"setSelectionRange",function(t,...r){let n=hG(t);return {applyNative:!!n,realArgs:[Number(t),...r],then:()=>n?void 0:Fl(e)}}),Do(e,"selectionStart",function(t){return {realArgs:t,then:()=>Fl(e)}}),Do(e,"selectionEnd",function(t){return {realArgs:t,then:()=>Fl(e)}}),Do(e,"select",function(){return {realArgs:[],then:()=>yG(e,{anchorOffset:0,focusOffset:_r(e).length})}});}function eK(e){Do(e,"setRangeText",function(...t){return {realArgs:t,then:()=>{_g(e),Fl(e);}}});}var Fo=Symbol("Node prepared with document state workarounds");function mO(e){e[Fo]||(e.addEventListener("focus",t=>{let r=t.target;cT(r);},{capture:!0,passive:!0}),e.activeElement&&cT(e.activeElement),e.addEventListener("blur",t=>{let r=t.target,n=gG(r);n!==void 0&&(r.value!==n&&JG(r,"change"),iO(r));},{capture:!0,passive:!0}),e[Fo]=Fo);}function cT(e){e[Fo]||(ye(e,["input","textarea"])&&(XG(e),ZG(e),eK(e)),e[Fo]=Fo);}function tK(e){return rK(e)?e:e.ownerDocument}function rK(e){return e.nodeType===9}function ei(e){let t=e.delay;if(typeof t=="number")return Promise.all([new Promise(r=>globalThis.setTimeout(()=>r(),t)),e.advanceTimers(t)])}function Io(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Wt;(function(e){e[e.STANDARD=0]="STANDARD",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.NUMPAD=3]="NUMPAD";})(Wt||(Wt={}));var nK=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function fT(e){return nK.includes(e)}var oK=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function dT(e){return oK.includes(e)}var iK=class{isKeyPressed(e){return !!this.pressed[String(e.code)]}getPressedKeys(){return Object.values(this.pressed).map(e=>e.keyDef)}async keydown(e,t){var r,n,o;let i=String(t.key),s=String(t.code),a=th(e.config.document);this.setKeydownTarget(a);var l;(l=(r=this.pressed)[n=s])!==null&&l!==void 0||(r[n]={keyDef:t,unpreventedDefault:!1}),fT(i)&&(this.modifiers[i]=!0);let c=e.dispatchUIEvent(a,"keydown",{key:i,code:s});dT(i)&&!this.modifiers[i]&&(this.modifiers[i]=!0,this.modifierLockStart[i]=!0),(o=this.pressed[s]).unpreventedDefault||(o.unpreventedDefault=c),c&&this.hasKeyPress(i)&&e.dispatchUIEvent(th(e.config.document),"keypress",{key:i,code:s,charCode:t.key==="Enter"?13:String(t.key).charCodeAt(0)});}async keyup(e,t){let r=String(t.key),n=String(t.code),o=this.pressed[n].unpreventedDefault;delete this.pressed[n],fT(r)&&!Object.values(this.pressed).find(i=>i.keyDef.key===r)&&(this.modifiers[r]=!1),e.dispatchUIEvent(th(e.config.document),"keyup",{key:r,code:n},!o),dT(r)&&this.modifiers[r]&&(this.modifierLockStart[r]?this.modifierLockStart[r]=!1:this.modifiers[r]=!1);}setKeydownTarget(e){e!==this.lastKeydownTarget&&(this.carryChar=""),this.lastKeydownTarget=e;}hasKeyPress(e){return (e.length===1||e==="Enter")&&!this.modifiers.Control&&!this.modifiers.Alt}constructor(e){Io(this,"system",void 0),Io(this,"modifiers",{Alt:!1,AltGraph:!1,CapsLock:!1,Control:!1,Fn:!1,FnLock:!1,Meta:!1,NumLock:!1,ScrollLock:!1,Shift:!1,Symbol:!1,SymbolLock:!1}),Io(this,"pressed",{}),Io(this,"carryChar",""),Io(this,"lastKeydownTarget",void 0),Io(this,"modifierLockStart",{}),this.system=e;}},sK=[..."0123456789".split("").map(e=>({code:`Digit${e}`,key:e})),...")!@#$%^&*(".split("").map((e,t)=>({code:`Digit${t}`,key:e,shiftKey:!0})),..."abcdefghijklmnopqrstuvwxyz".split("").map(e=>({code:`Key${e.toUpperCase()}`,key:e})),..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map(e=>({code:`Key${e}`,key:e,shiftKey:!0})),{code:"Space",key:" "},{code:"AltLeft",key:"Alt",location:Wt.LEFT},{code:"AltRight",key:"Alt",location:Wt.RIGHT},{code:"ShiftLeft",key:"Shift",location:Wt.LEFT},{code:"ShiftRight",key:"Shift",location:Wt.RIGHT},{code:"ControlLeft",key:"Control",location:Wt.LEFT},{code:"ControlRight",key:"Control",location:Wt.RIGHT},{code:"MetaLeft",key:"Meta",location:Wt.LEFT},{code:"MetaRight",key:"Meta",location:Wt.RIGHT},{code:"OSLeft",key:"OS",location:Wt.LEFT},{code:"OSRight",key:"OS",location:Wt.RIGHT},{code:"Tab",key:"Tab"},{code:"CapsLock",key:"CapsLock"},{code:"Backspace",key:"Backspace"},{code:"Enter",key:"Enter"},{code:"Escape",key:"Escape"},{code:"ArrowUp",key:"ArrowUp"},{code:"ArrowDown",key:"ArrowDown"},{code:"ArrowLeft",key:"ArrowLeft"},{code:"ArrowRight",key:"ArrowRight"},{code:"Home",key:"Home"},{code:"End",key:"End"},{code:"Delete",key:"Delete"},{code:"PageUp",key:"PageUp"},{code:"PageDown",key:"PageDown"},{code:"Fn",key:"Fn"},{code:"Symbol",key:"Symbol"},{code:"AltRight",key:"AltGraph"}],aK=[{name:"MouseLeft",pointerType:"mouse",button:"primary"},{name:"MouseRight",pointerType:"mouse",button:"secondary"},{name:"MouseMiddle",pointerType:"mouse",button:"auxiliary"},{name:"TouchA",pointerType:"touch"},{name:"TouchB",pointerType:"touch"},{name:"TouchC",pointerType:"touch"}];function lK(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var gO=class{getButtons(){let e=0;for(let t of Object.keys(this.pressed))e|=2**Number(t);return e}down(e){let t=Qh(e.button);if(t in this.pressed){this.pressed[t].push(e);return}return this.pressed[t]=[e],t}up(e){let t=Qh(e.button);if(t in this.pressed&&(this.pressed[t]=this.pressed[t].filter(r=>r.name!==e.name),this.pressed[t].length===0))return delete this.pressed[t],t}constructor(){lK(this,"pressed",{});}},pT={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function Qh(e=0){return e in pT?pT[e]:Number(e)}var hT={1:2,2:1};function mT(e){return e=Qh(e),e in hT?hT[e]:e}function uK(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var cK=class{get countPressed(){return this.pressedKeys.size}isPressed(e){return this.pressedKeys.has(e.name)}addPressed(e){return this.pressedKeys.add(e.name)}removePressed(e){return this.pressedKeys.delete(e.name)}constructor(){uK(this,"pressedKeys",new Set);}};function os(e,t){let r=[];for(let i=e;i;i=i.parentElement)r.push(i);let n=[];for(let i=t;i;i=i.parentElement)n.push(i);let o=0;for(;!(o>=r.length||o>=n.length||r[r.length-1-o]!==n[n.length-1-o]);o++);return [r.slice(0,r.length-o),n.slice(0,n.length-o),n.slice(n.length-o)]}function Zh({target:e,node:t,offset:r}){return Er(e)?{node:e,offset:r??_r(e).length}:t?{node:t,offset:r??(t.nodeType===3?t.nodeValue.length:t.childNodes.length)}:yO(e,r)}function yO(e,t,r=!0){let n=t===void 0?e.childNodes.length-1:0,o=t===void 0?-1:1;for(;t===void 0?n>=(r?Math.max(e.childNodes.length-1,0):0):n<=e.childNodes.length;){if(t&&n===e.childNodes.length)throw new Error("The given offset is out of bounds.");let i=e.childNodes.item(n),s=String(i.textContent);if(s.length)if(t!==void 0&&s.length<t)t-=s.length;else {if(i.nodeType===1)return yO(i,t,!1);if(i.nodeType===3)return {node:i,offset:t??i.nodeValue.length}}n+=o;}return {node:e,offset:e.childNodes.length}}function fK({document:e,target:t,clickCount:r,node:n,offset:o}){if(cG(t))return;let i=Er(t),s=String(i?_r(t):t.textContent),[a,l]=n?[o,o]:dK(s,o,r);if(i)return oi(t,{anchorOffset:a??s.length,focusOffset:l??s.length}),{node:t,start:a??0,end:l??s.length};{let{node:c,offset:u}=Zh({target:t,node:n,offset:a}),{node:f,offset:p}=Zh({target:t,node:n,offset:l}),d=t.ownerDocument.createRange();try{d.setStart(c,u),d.setEnd(f,p);}catch{throw new Error("The given offset is out of bounds.")}let h=e.getSelection();return h?.removeAllRanges(),h?.addRange(d.cloneRange()),d}}function dK(e,t,r){if(r%3===1||e.length===0)return [t,t];let n=t??e.length;return r%3===2?[n-e.substr(0,t).match(/(\w+|\s+|\W)?$/)[0].length,t===void 0?t:t+e.substr(t).match(/^(\w+|\s+|\W)?/)[0].length]:[n-e.substr(0,t).match(/[^\r\n]*$/)[0].length,t===void 0?t:t+e.substr(t).match(/^[^\r\n]*/)[0].length]}function pK(e,{document:t,target:r,node:n,offset:o}){let i=Zh({target:r,node:n,offset:o});if("node"in e){if(i.node===e.node){let s=i.offset<e.start?e.end:e.start,a=i.offset>e.end||i.offset<e.start?i.offset:e.end;oi(e.node,{anchorOffset:s,focusOffset:a});}}else {let s=e.cloneRange(),a=s.comparePoint(i.node,i.offset);a<0?s.setStart(i.node,i.offset):a>0&&s.setEnd(i.node,i.offset);let l=t.getSelection();l?.removeAllRanges(),l?.addRange(s.cloneRange());}}function bO(e,t){var r,n,o,i,s,a,l,c;return e.target!==t.target||((r=e.coords)===null||r===void 0?void 0:r.x)!==((n=t.coords)===null||n===void 0?void 0:n.y)||((o=e.coords)===null||o===void 0?void 0:o.y)!==((i=t.coords)===null||i===void 0?void 0:i.y)||((s=e.caret)===null||s===void 0?void 0:s.node)!==((a=t.caret)===null||a===void 0?void 0:a.node)||((l=e.caret)===null||l===void 0?void 0:l.offset)!==((c=t.caret)===null||c===void 0?void 0:c.offset)}function kn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var hK=class{move(e,t){let r=this.position,n=this.getTarget(e);if(this.position=t,!bO(r,t))return;let o=this.getTarget(e),i=this.getEventInit("mousemove"),[s,a]=os(n,o);return {leave:()=>{n!==o&&(e.dispatchUIEvent(n,"mouseout",i),s.forEach(l=>e.dispatchUIEvent(l,"mouseleave",i)));},enter:()=>{n!==o&&(e.dispatchUIEvent(o,"mouseover",i),a.forEach(l=>e.dispatchUIEvent(l,"mouseenter",i)));},move:()=>{e.dispatchUIEvent(o,"mousemove",i),this.modifySelecting(e);}}}down(e,t,r){let n=this.buttons.down(t);if(n===void 0)return;let o=this.getTarget(e);this.buttonDownTarget[n]=o;let i=Dr(o),s=this.getEventInit("mousedown",t.button);(i||e.dispatchUIEvent(o,"mousedown",s))&&(this.startSelecting(e,s.detail),pn(o)),!i&&mT(t.button)===2&&e.dispatchUIEvent(o,"contextmenu",this.getEventInit("contextmenu",t.button,r));}up(e,t,r){let n=this.buttons.up(t);if(n===void 0)return;let o=this.getTarget(e);if(!Dr(o)){e.dispatchUIEvent(o,"mouseup",this.getEventInit("mouseup",t.button)),this.endSelecting();let i=os(this.buttonDownTarget[n],o)[2][0];if(i){let s=this.getEventInit("click",t.button,r);s.detail&&(e.dispatchUIEvent(i,s.button===0?"click":"auxclick",s),s.button===0&&s.detail===2&&e.dispatchUIEvent(i,"dblclick",{...this.getEventInit("dblclick",t.button),detail:s.detail}));}}}resetClickCount(){this.clickCount.reset();}getEventInit(e,t,r){let n={...this.position.coords};return r&&(n.pointerId=r.pointerId,n.pointerType=r.pointerType,n.isPrimary=r.isPrimary),n.button=mT(t),n.buttons=this.buttons.getButtons(),e==="mousedown"?n.detail=this.clickCount.getOnDown(n.button):e==="mouseup"?n.detail=this.clickCount.getOnUp(n.button):(e==="click"||e==="auxclick")&&(n.detail=this.clickCount.incOnClick(n.button)),n}getTarget(e){var t;return (t=this.position.target)!==null&&t!==void 0?t:e.config.document.body}startSelecting(e,t){var r,n;this.selecting=fK({document:e.config.document,target:this.getTarget(e),node:(r=this.position.caret)===null||r===void 0?void 0:r.node,offset:(n=this.position.caret)===null||n===void 0?void 0:n.offset,clickCount:t});}modifySelecting(e){var t,r;this.selecting&&pK(this.selecting,{document:e.config.document,target:this.getTarget(e),node:(t=this.position.caret)===null||t===void 0?void 0:t.node,offset:(r=this.position.caret)===null||r===void 0?void 0:r.offset});}endSelecting(){this.selecting=void 0;}constructor(){kn(this,"position",{}),kn(this,"buttons",new gO),kn(this,"selecting",void 0),kn(this,"buttonDownTarget",{}),kn(this,"clickCount",new class{incOnClick(e){let t=this.down[e]===void 0?void 0:Number(this.down[e])+1;return this.count=this.count[e]===void 0?{}:{[e]:Number(this.count[e])+1},t}getOnDown(e){var t;this.down={[e]:(t=this.count[e])!==null&&t!==void 0?t:0};var r;return this.count={[e]:(r=this.count[e])!==null&&r!==void 0?r:0},Number(this.count[e])+1}getOnUp(e){return this.down[e]===void 0?void 0:Number(this.down[e])+1}reset(){this.count={};}constructor(){kn(this,"down",{}),kn(this,"count",{});}});}};function au(e,t){var r;return ((r=vO(e,t))===null||r===void 0?void 0:r.pointerEvents)!=="none"}function mK(e){let t=wr(e);for(let r=e,n=[];r?.ownerDocument;r=r.parentElement){n.push(r);let o=t.getComputedStyle(r).pointerEvents;if(o&&!["inherit","unset"].includes(o))return {pointerEvents:o,tree:n}}}var gT=Symbol("Last check for pointer-events");function vO(e,t){let r=t[gT];if(!(e.config.pointerEventsCheck!==Bo.Never&&(!r||yT(e.config.pointerEventsCheck,Bo.EachApiCall)&&r[Pt.Call]!==Ml(e,Pt.Call)||yT(e.config.pointerEventsCheck,Bo.EachTrigger)&&r[Pt.Trigger]!==Ml(e,Pt.Trigger))))return r?.result;let n=mK(t);return t[gT]={[Pt.Call]:Ml(e,Pt.Call),[Pt.Trigger]:Ml(e,Pt.Trigger),result:n},n}function Zi(e,t){let r=vO(e,t);if(r?.pointerEvents==="none")throw new Error([`Unable to perform pointer interaction as the element ${r.tree.length>1?"inherits":"has"} \`pointer-events: none\`:`,"",gK(r.tree)].join(`
|
|
368
|
+
`))}function gK(e){return e.reverse().map((t,r)=>["".padEnd(r),t.tagName,t.id&&`#${t.id}`,t.hasAttribute("data-testid")&&`(testId=${t.getAttribute("data-testid")})`,yK(t),e.length>1&&r===0&&" <-- This element declared `pointer-events: none`",e.length>1&&r===e.length-1&&" <-- Asserted pointer events here"].filter(Boolean).join("")).join(`
|
|
369
|
+
`)}function yK(e){var t;let r;if(e.hasAttribute("aria-label"))r=e.getAttribute("aria-label");else if(e.hasAttribute("aria-labelledby")){var n,o;r=(o=e.ownerDocument.getElementById(e.getAttribute("aria-labelledby")))===null||o===void 0||(n=o.textContent)===null||n===void 0?void 0:n.trim();}else if(ye(e,["button","input","meter","output","progress","select","textarea"])&&!((t=e.labels)===null||t===void 0)&&t.length)r=Array.from(e.labels).map(s=>{var a;return (a=s.textContent)===null||a===void 0?void 0:a.trim()}).join("|");else if(ye(e,"button")){var i;r=(i=e.textContent)===null||i===void 0?void 0:i.trim();}return r=r?.replace(/\n/g," "),Number(r?.length)>30&&(r=`${r?.substring(0,29)}\u2026`),r?`(label=${r})`:""}function yT(e,t){return (e&t)>0}function on(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bT=class{init(e,t){this.position=t;let r=this.getTarget(e),[,n]=os(null,r),o=this.getEventInit();return Zi(e,r),e.dispatchUIEvent(r,"pointerover",o),n.forEach(i=>e.dispatchUIEvent(i,"pointerenter",o)),this}move(e,t){let r=this.position,n=this.getTarget(e);if(this.position=t,!bO(r,t))return;let o=this.getTarget(e),i=this.getEventInit(),[s,a]=os(n,o);return {leave:()=>{au(e,n)&&n!==o&&(e.dispatchUIEvent(n,"pointerout",i),s.forEach(l=>e.dispatchUIEvent(l,"pointerleave",i)));},enter:()=>{Zi(e,o),n!==o&&(e.dispatchUIEvent(o,"pointerover",i),a.forEach(l=>e.dispatchUIEvent(l,"pointerenter",i)));},move:()=>{e.dispatchUIEvent(o,"pointermove",i);}}}down(e,t){if(this.isDown)return;let r=this.getTarget(e);Zi(e,r),this.isDown=!0,this.isPrevented=!e.dispatchUIEvent(r,"pointerdown",this.getEventInit());}up(e,t){if(!this.isDown)return;let r=this.getTarget(e);Zi(e,r),this.isDown=!1,e.dispatchUIEvent(r,"pointerup",this.getEventInit());}release(e){let t=this.getTarget(e),[r]=os(t,null),n=this.getEventInit();au(e,t)&&(e.dispatchUIEvent(t,"pointerout",n),r.forEach(o=>e.dispatchUIEvent(o,"pointerleave",n))),this.isCancelled=!0;}getTarget(e){var t;return (t=this.position.target)!==null&&t!==void 0?t:e.config.document.body}getEventInit(){return {...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary}}constructor({pointerId:e,pointerType:t,isPrimary:r}){on(this,"pointerId",void 0),on(this,"pointerType",void 0),on(this,"isPrimary",void 0),on(this,"isMultitouch",!1),on(this,"isCancelled",!1),on(this,"isDown",!1),on(this,"isPrevented",!1),on(this,"position",{}),this.pointerId=e,this.pointerType=t,this.isPrimary=r,this.isMultitouch=!r;}};function sn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bK=class{isKeyPressed(e){return this.devices.get(e.pointerType).isPressed(e)}async press(e,t,r){let n=this.getPointerName(t),o=t.pointerType==="touch"?this.pointers.new(n,t).init(e,r):this.pointers.get(n);o.position=r,o.pointerType!=="touch"&&(this.mouse.position=r),this.devices.get(t.pointerType).addPressed(t),this.buttons.down(t),o.down(e,t),o.pointerType!=="touch"&&!o.isPrevented&&this.mouse.down(e,t,o);}async move(e,t,r){let n=this.pointers.get(t),o=n.move(e,r),i=n.pointerType==="touch"||n.isPrevented&&n.isDown?void 0:this.mouse.move(e,r);o?.leave(),i?.leave(),o?.enter(),i?.enter(),o?.move(),i?.move();}async release(e,t,r){let n=this.devices.get(t.pointerType);n.removePressed(t),this.buttons.up(t);let o=this.pointers.get(this.getPointerName(t));if(o.position=r,o.pointerType!=="touch"&&(this.mouse.position=r),n.countPressed===0&&o.up(e,t),o.pointerType==="touch"&&o.release(e),!o.isPrevented){if(o.pointerType==="touch"&&!o.isMultitouch){let i=this.mouse.move(e,o.position);i?.leave(),i?.enter(),i?.move(),this.mouse.down(e,t,o);}if(!o.isMultitouch){let i=this.mouse.move(e,o.position);i?.leave(),i?.enter(),i?.move(),this.mouse.up(e,t,o);}}}getPointerName(e){return e.pointerType==="touch"?e.name:e.pointerType}getPreviousPosition(e){return this.pointers.has(e)?this.pointers.get(e).position:void 0}resetClickCount(){this.mouse.resetClickCount();}getMouseTarget(e){var t;return (t=this.mouse.position.target)!==null&&t!==void 0?t:e.config.document.body}setMousePosition(e){this.mouse.position=e,this.pointers.get("mouse").position=e;}constructor(e){sn(this,"system",void 0),sn(this,"mouse",void 0),sn(this,"buttons",void 0),sn(this,"devices",new class{get(t){var r,n,o;return (o=(r=this.registry)[n=t])!==null&&o!==void 0||(r[n]=new cK),this.registry[t]}constructor(){sn(this,"registry",{});}}),sn(this,"pointers",new class{new(t,r){let n=r.pointerType!=="touch"||!Object.values(this.registry).some(o=>o.pointerType==="touch"&&!o.isCancelled);return n||Object.values(this.registry).forEach(o=>{o.pointerType===r.pointerType&&!o.isCancelled&&(o.isMultitouch=!0);}),this.registry[t]=new bT({pointerId:this.nextId++,pointerType:r.pointerType,isPrimary:n}),this.registry[t]}get(t){if(!this.has(t))throw new Error(`Trying to access pointer "${t}" which does not exist.`);return this.registry[t]}has(t){return t in this.registry}constructor(){sn(this,"registry",{mouse:new bT({pointerId:1,pointerType:"mouse",isPrimary:!0})}),sn(this,"nextId",2);}}),this.system=e,this.buttons=new gO,this.mouse=new hK;}};function vT(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var wO=class{getUIEventModifiers(){return {altKey:this.keyboard.modifiers.Alt,ctrlKey:this.keyboard.modifiers.Control,metaKey:this.keyboard.modifiers.Meta,shiftKey:this.keyboard.modifiers.Shift,modifierAltGraph:this.keyboard.modifiers.AltGraph,modifierCapsLock:this.keyboard.modifiers.CapsLock,modifierFn:this.keyboard.modifiers.Fn,modifierFnLock:this.keyboard.modifiers.FnLock,modifierNumLock:this.keyboard.modifiers.NumLock,modifierScrollLock:this.keyboard.modifiers.ScrollLock,modifierSymbol:this.keyboard.modifiers.Symbol,modifierSymbolLock:this.keyboard.modifiers.SymbolLock}}constructor(){vT(this,"keyboard",new iK(this)),vT(this,"pointer",new bK(this));}};async function vK(e){let t=[];return this.config.skipHover||t.push({target:e}),t.push({keys:"[MouseLeft]",target:e}),this.pointer(t)}async function wK(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft]"])}async function EK(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft][MouseLeft]"])}async function _K(e){return this.pointer({target:e})}async function SK(e){return Zi(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:e.ownerDocument.body})}async function TK({shift:e}={}){return this.keyboard(e===!0?"{Shift>}{Tab}{/Shift}":e===!1?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")}function CK(e,t){let r=[];do{let{type:o,descriptor:i,consumedLength:s,releasePrevious:a,releaseSelf:l=!0,repeat:c}=tO(t,"keyboard");var n;let u=(n=e.find(f=>{if(o==="["){var p;return ((p=f.code)===null||p===void 0?void 0:p.toLowerCase())===i.toLowerCase()}else if(o==="{"){var d;return ((d=f.key)===null||d===void 0?void 0:d.toLowerCase())===i.toLowerCase()}return f.key===i}))!==null&&n!==void 0?n:{key:"Unknown",code:"Unknown",[o==="["?"code":"key"]:i};r.push({keyDef:u,releasePrevious:a,releaseSelf:l,repeat:c}),t=t.slice(s);}while(t);return r}async function xK(e){let t=CK(this.config.keyboardMap,e);for(let r=0;r<t.length;r++)await ei(this.config),await AK(this,t[r]);}async function AK(e,{keyDef:t,releasePrevious:r,releaseSelf:n,repeat:o}){let{system:i}=e;if(i.keyboard.isKeyPressed(t)&&await i.keyboard.keyup(e,t),!r){for(let s=1;s<=o;s++)await i.keyboard.keydown(e,t),s<o&&await ei(e.config);n&&await i.keyboard.keyup(e,t);}}async function PK(e){for(let t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t);}function EO(e){let t=Er(e)?{"text/plain":OK(e)}:{"text/plain":String(e.ownerDocument.getSelection())},r=vg(wr(e));for(let n in t)t[n]&&r.setData(n,t[n]);return r}function OK(e){let t=vs(e);return _r(e).substring(t.startOffset,t.endOffset)}async function RK(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=EO(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"copy",{clipboardData:n})&&this.config.writeToClipboard&&await QP(e,n),n}async function MK(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=EO(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"cut",{clipboardData:n})&&this.config.writeToClipboard&&await QP(r.ownerDocument,n),n}async function IK(e){let t=this.config.document;var r;let n=(r=t.activeElement)!==null&&r!==void 0?r:t.body;var o;let i=(o=typeof e=="string"?NK(t,e):e)!==null&&o!==void 0?o:await tG(t).catch(()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(n,"paste",{clipboardData:i});}function NK(e,t){let r=vg(wr(e));return r.setData("text",t),r}function wT(e,t){let r=[];do{let{descriptor:n,consumedLength:o,releasePrevious:i,releaseSelf:s=!0}=tO(t,"pointer"),a=e.find(l=>l.name===n);a&&r.push({keyDef:a,releasePrevious:i,releaseSelf:s}),t=t.slice(o);}while(t);return r}async function jK(e){let{pointerMap:t}=this.config,r=[];(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="string"?r.push(...wT(t,n)):"keys"in n?r.push(...wT(t,n.keys).map(o=>({...n,...o}))):r.push(n);});for(let n=0;n<r.length;n++)await ei(this.config),await qK(this,r[n]);this.system.pointer.resetClickCount();}async function qK(e,t){var r,n;let o="pointerName"in t&&t.pointerName?t.pointerName:"keyDef"in t?e.system.pointer.getPointerName(t.keyDef):"mouse",i=e.system.pointer.getPreviousPosition(o);var s,a,l,c;let u={target:(s=t.target)!==null&&s!==void 0?s:$K(e,i),coords:(a=t.coords)!==null&&a!==void 0?a:i?.coords,caret:{node:(l=t.node)!==null&&l!==void 0?l:ET(t)||i==null||(r=i.caret)===null||r===void 0?void 0:r.node,offset:(c=t.offset)!==null&&c!==void 0?c:ET(t)||i==null||(n=i.caret)===null||n===void 0?void 0:n.offset}};"keyDef"in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(Xi(e,Pt.Trigger),await e.system.pointer.release(e,t.keyDef,u)),t.releasePrevious||(Xi(e,Pt.Trigger),await e.system.pointer.press(e,t.keyDef,u),t.releaseSelf&&(Xi(e,Pt.Trigger),await e.system.pointer.release(e,t.keyDef,u)))):(Xi(e,Pt.Trigger),await e.system.pointer.move(e,o,u));}function ET(e){var t,r;return !!((r=(t=e.target)!==null&&t!==void 0?t:e.node)!==null&&r!==void 0?r:e.offset!==void 0)}function $K(e,t){if(!t)throw new Error("This pointer has no previous position. Provide a target property!");var r;return (r=t.target)!==null&&r!==void 0?r:e.config.document.body}async function kK(e){if(!Jo(e)||Dr(e))throw new Error("clear()` is only supported on editable elements.");if(pn(e),e.ownerDocument.activeElement!==e)throw new Error("The element to be cleared could not be focused.");if(cO(e),!$G(e))throw new Error("The element content to be cleared could not be selected.");Zo(this,e,"","deleteContentBackward");}async function DK(e,t){return _O.call(this,!0,e,t)}async function LK(e,t){return _O.call(this,!1,e,t)}async function _O(e,t,r){if(!e&&!t.multiple)throw Se().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.",t);let n=Array.isArray(r)?r:[r],o=Array.from(t.querySelectorAll('option, [role="option"]')),i=n.map(a=>{if(typeof a!="string"&&o.includes(a))return a;{let l=o.find(c=>c.value===a||c.innerHTML===a);if(l)return l;throw Se().getElementError(`Value "${String(a)}" not found in options`,t)}}).filter(a=>!Dr(a));if(Dr(t)||!i.length)return;let s=a=>{a.selected=e,this.dispatchUIEvent(t,"input",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(t,"change");};if(ye(t,"select"))if(t.multiple)for(let a of i){let l=this.config.pointerEventsCheck===0?!0:au(this,a);l&&(this.dispatchUIEvent(a,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(a,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(a,"pointermove"),this.dispatchUIEvent(a,"mousemove"),this.dispatchUIEvent(a,"pointerdown"),this.dispatchUIEvent(a,"mousedown")),pn(t),l&&(this.dispatchUIEvent(a,"pointerup"),this.dispatchUIEvent(a,"mouseup")),s(a),l&&this.dispatchUIEvent(a,"click"),await ei(this.config);}else if(i.length===1){let a=this.config.pointerEventsCheck===0?!0:au(this,t);a?await this.click(t):pn(t),s(i[0]),a&&(this.dispatchUIEvent(t,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(t,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(t,"pointerup"),this.dispatchUIEvent(t,"mouseup"),this.dispatchUIEvent(t,"click")),await ei(this.config);}else throw Se().getElementError("Cannot select multiple options on a non-multiple select",t);else if(t.getAttribute("role")==="listbox")for(let a of i)await this.click(a),await this.unhover(a);else throw Se().getElementError("Cannot select options on elements that are neither select nor listbox elements",t)}async function BK(e,t,{skipClick:r=this.config.skipClick,skipAutoClose:n=this.config.skipAutoClose,initialSelectionStart:o,initialSelectionEnd:i}={}){e.disabled||(r||await this.click(e),o!==void 0&&Qi(e,o,i??o),await this.keyboard(t),n||await PK(this));}var _T=Symbol("files and value properties are mocked");function oh(e,t,r){r?Object.defineProperty(e,t,r):delete e[t];}function FK(e,t){var r;(r=e[_T])===null||r===void 0||r.restore();let n=Object.getOwnPropertyDescriptor(e,"type"),o=Object.getOwnPropertyDescriptor(e,"value"),i=Object.getOwnPropertyDescriptor(e,"files");function s(){oh(e,"type",n),oh(e,"value",o),oh(e,"files",i);}e[_T]={restore:s},Object.defineProperties(e,{files:{configurable:!0,get:()=>t},value:{configurable:!0,get:()=>t.length?`C:\\fakepath\\${t[0].name}`:"",set(a){if(a==="")s();else {var l;o==null||(l=o.set)===null||l===void 0||l.call(e,a);}}},type:{configurable:!0,get:()=>"file",set(a){a!=="file"&&(s(),e.type=a);}}});}async function UK(e,t){let r=ye(e,"label")?e.control:e;if(!r||!ye(r,"input",{type:"file"}))throw new TypeError(`The ${r===e?"given":"associated"} ${r?.tagName} element does not accept file uploads`);if(Dr(e))return;let n=(Array.isArray(t)?t:[t]).filter(i=>!this.config.applyAccept||zK(i,r.accept)).slice(0,r.multiple?void 0:1),o=()=>{var i;n.length===((i=r.files)===null||i===void 0?void 0:i.length)&&n.every((s,a)=>{var l;return s===((l=r.files)===null||l===void 0?void 0:l.item(a))})||(FK(r,bg(wr(e),n)),this.dispatchUIEvent(r,"input"),this.dispatchUIEvent(r,"change"));};r.addEventListener("fileDialog",o),await this.click(e),r.removeEventListener("fileDialog",o);}function zK(e,t){if(!t)return !0;let r=["audio/*","image/*","video/*"];return t.split(",").some(n=>n.startsWith(".")?e.name.endsWith(n):r.includes(n)?e.type.startsWith(n.substr(0,n.length-1)):e.type===n)}var ST={click:vK,dblClick:wK,tripleClick:EK,hover:_K,unhover:SK,tab:TK,keyboard:xK,copy:RK,cut:MK,paste:IK,pointer:jK,clear:kK,deselectOptions:LK,selectOptions:DK,type:BK,upload:UK};function VK(e){return Se().asyncWrapper(e)}var SO={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:sK,pointerMap:aK,pointerEventsCheck:Bo.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},HK={...SO,writeToClipboard:!0};function TO(e={},t=HK,r){let n=YK(e,r,t);return {...t,...e,document:n}}function WK(e={}){let t=TO(e);mO(t.document);var r;let n=(r=t.document.defaultView)!==null&&r!==void 0?r:globalThis.window;return Q8(n),Tg(t).api}function Et({keyboardState:e,pointerState:t,...r}={},n){let o=TO(r,SO,n);mO(o.document);var i;let s=(i=t??e)!==null&&i!==void 0?i:new wO;return {api:Tg(o,s).api,system:s}}function GK(e){return Tg({...this.config,...e},this.system).api}function KK(e,t){function r(...n){return Xi(e,Pt.Call),VK(()=>t.apply(e,n).then(async o=>(await ei(e.config),o)))}return Object.defineProperty(r,"name",{get:()=>t.name}),r}function Tg(e,t=new wO){let r={};return Object.assign(r,{config:e,dispatchEvent:hO.bind(r),dispatchUIEvent:YG.bind(r),system:t,levelRefs:{},...ST}),{instance:r,api:{...Object.fromEntries(Object.entries(ST).map(([n,o])=>[n,KK(r,o)])),setup:GK.bind(r)}}}function YK(e,t,r){var n,o;return (o=(n=e.document)!==null&&n!==void 0?n:t&&tK(t))!==null&&o!==void 0?o:r.document}var CO={};nm(CO,{clear:()=>JK,click:()=>XK,copy:()=>QK,cut:()=>ZK,dblClick:()=>eY,deselectOptions:()=>tY,hover:()=>rY,keyboard:()=>nY,paste:()=>iY,pointer:()=>oY,selectOptions:()=>sY,tab:()=>fY,tripleClick:()=>aY,type:()=>lY,unhover:()=>uY,upload:()=>cY});function JK(e){return Et().api.clear(e)}function XK(e,t={}){return Et(t,e).api.click(e)}function QK(e={}){return Et(e).api.copy()}function ZK(e={}){return Et(e).api.cut()}function eY(e,t={}){return Et(t).api.dblClick(e)}function tY(e,t,r={}){return Et(r).api.deselectOptions(e,t)}function rY(e,t={}){return Et(t).api.hover(e)}async function nY(e,t={}){let{api:r,system:n}=Et(t);return r.keyboard(e).then(()=>n)}async function oY(e,t={}){let{api:r,system:n}=Et(t);return r.pointer(e).then(()=>n)}function iY(e,t){return Et(t).api.paste(e)}function sY(e,t,r={}){return Et(r).api.selectOptions(e,t)}function aY(e,t={}){return Et(t).api.tripleClick(e)}function lY(e,t,r={}){return Et(r,e).api.type(e,t,r)}function uY(e,t={}){let{api:r,system:n}=Et(t);return n.pointer.setMousePosition({target:e}),r.unhover(e)}function cY(e,t,r={}){return Et(r).api.upload(e,t)}function fY(e={}){return Et().api.tab(e)}var dY={...CO,setup:WK};function pY(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(a,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?a.concat(c.map(function(u){var f,p;return (p=(f=u.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&p!==void 0?p:0})):a},[]);if(o.length){var i=new RegExp(`
|
|
370
|
+
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(a){return a.replace(i,`
|
|
371
|
+
`)});}n[0]=n[0].replace(/^\r?\n/,"");var s=n[0];return t.forEach(function(a,l){var c=s.match(/(?:^|\n)( *)$/),u=c?c[1]:"",f=a;typeof a=="string"&&a.includes(`
|
|
372
|
+
`)&&(f=String(a).split(`
|
|
373
|
+
`).map(function(p,d){return d===0?p:""+u+p}).join(`
|
|
374
|
+
`)),s+=f+n[l+1];}),s}var hY=pY,em=Al({...EA},{intercept:(e,t)=>t[0]==="fireEvent"||e.startsWith("find")||e.startsWith("waitFor")});em.screen=new Proxy(em.screen,{get(e,t,r){return once.warn(hY`
|
|
375
|
+
You are using Testing Library's \`screen\` object. Use \`within(canvasElement)\` instead.
|
|
376
|
+
More info: https://storybook.js.org/docs/react/essentials/interactions
|
|
377
|
+
`),Reflect.get(e,t,r)}});var {buildQueries:NQ,configure:jQ,createEvent:qQ,fireEvent:$Q,findAllByAltText:kQ,findAllByDisplayValue:DQ,findAllByLabelText:LQ,findAllByPlaceholderText:BQ,findAllByRole:FQ,findAllByTestId:UQ,findAllByText:zQ,findAllByTitle:VQ,findByAltText:HQ,findByDisplayValue:WQ,findByLabelText:GQ,findByPlaceholderText:KQ,findByRole:YQ,findByTestId:JQ,findByText:XQ,findByTitle:QQ,getAllByAltText:ZQ,getAllByDisplayValue:eZ,getAllByLabelText:tZ,getAllByPlaceholderText:rZ,getAllByRole:nZ,getAllByTestId:oZ,getAllByText:iZ,getAllByTitle:sZ,getByAltText:xO,getByDisplayValue:aZ,getByLabelText:AO,getByPlaceholderText:PO,getByRole:OO,getByTestId:RO,getByText:MO,getByTitle:IO,getConfig:lZ,getDefaultNormalizer:uZ,getElementError:cZ,getNodeText:fZ,getQueriesForElement:dZ,getRoles:pZ,getSuggestedQuery:hZ,isInaccessible:mZ,logDOM:gZ,logRoles:yZ,prettyDOM:bZ,queries:vZ,queryAllByAltText:wZ,queryAllByAttribute:EZ,queryAllByDisplayValue:_Z,queryAllByLabelText:SZ,queryAllByPlaceholderText:TZ,queryAllByRole:CZ,queryAllByTestId:xZ,queryAllByText:AZ,queryAllByTitle:PZ,queryByAltText:OZ,queryByAttribute:RZ,queryByDisplayValue:MZ,queryByLabelText:IZ,queryByPlaceholderText:NZ,queryByRole:jZ,queryByTestId:qZ,queryByText:$Z,queryByTitle:kZ,queryHelpers:DZ,screen:LZ,waitFor:BZ,waitForElementToBeRemoved:FZ,within:mY,prettyFormat:UZ}=em;Al({userEvent:dY},{intercept:!0});Al({expect:wA},{getKeys:(e,t)=>{let r=["assert","__methods","__flags","_obj"];if(e.constructor===M){let n=Object.keys(Object.getPrototypeOf(e)).filter(o=>!r.includes(o));return t>2?n:[...n,"not"]}return Object.keys(e)},intercept:e=>e!=="expect"});var gY=({parameters:e})=>{e?.test?.mockReset===!0?FH():e?.test?.clearMocks===!0?BH():e?.test?.restoreMocks!==!1&&UH();},tm=(e,t=0,r)=>{if(t>5||e==null)return e;if(cA(e))return r&&e.mockName(r),e;if(typeof e=="function"&&"isAction"in e&&e.isAction&&!("implicit"in e&&e.implicit)){let n=DH(e);return r&&n.mockName(r),n}if(Array.isArray(e))return t++,e.map(n=>tm(n,t));if(typeof e=="object"&&e.constructor===Object){t++;for(let[n,o]of Object.entries(e))Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=tm(o,t,n));return e}return e},yY=({initialArgs:e})=>{tm(e);},bY=e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=mY(e.canvasElement));};global$1.__STORYBOOK_TEST_LOADERS__=[gY,yY,bY];global$1.__STORYBOOK_TEST_ON_MOCK_CALL__=kH;var Rs;globalThis.__vitest_browser__&&(Rs=await Promise.resolve().then(()=>(qO(),jO)));var ku=new Proxy({},{get(e,t){return e[t]??(Rs?.commands)[t]}}),$O=new Proxy({getByAltText:xO,getByRole:OO,getByTestId:RO,getByText:MO,getByTitle:IO,getByPlaceholder:PO,getByLabelText:AO},{get(e,t){return e[t]??Rs?.page?(Rs?.page)[t]:()=>{console.info(`\`page.${t.toString()}\` does not exist when running in browser`);}}}),kO=new Proxy({},{get(e,t){return e[t]??(Rs?.server)[t]}});function Du(e){return new Promise((t,r)=>{let n=new Image;n.src=`data:image/png;base64,${e}`,n.onload=()=>{let o=document.createElement("canvas");o.width=n.width,o.height=n.height;let i=o.getContext("2d");i.drawImage(n,0,0),t(i.getImageData(0,0,o.width,o.height));},n.onerror=()=>{r(new Error("Failed to load image"));};})}async function DO(e){let t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").putImageData(e,0,0),new Promise(n=>{t.toBlob(o=>{let i=new FileReader;i.onload=()=>{n(i.result);},i.readAsDataURL(o);});})}var ke={name:"",testFilepath:"",taskName:"",snapshot:{}};var Lu=Symbol("imageSnapshot");async function LO(e){let t=kO.config.root,r=basename(ke.testFilepath),n=`${CY(ke.taskName)}-${ke.snapshot[ke.taskName].index++}.png`,o=join(ke.baselineDir,r,n),i=join(ke.resultDir,r,n),s=join(ke.diffDir,r,n),a=await this.screenshot({base64:!0,path:i,element:e?.element}),l=await Du(a.base64);return {type:Lu,rootDir:t,testfilename:r,snapshotFilename:n,baselinePath:o,resultPath:i,diffPath:s,base64:a.base64,image:l}}function CY(e){return `${e.replace(/[^a-z0-9]/gi,"-")}`}function xg(e){return !!e&&e.type===Lu}function BO(e){if(!xg(e))throw new Error("Expected subject to be an image snapshot")}async function UO(e){let t=await e;if(!xg(t)){if(t?.path&&t?.base64)return {pass:!1,actual:e,message:()=>"`toMatchImageSnapshot()` expects the subject to be the result of `page.imageSnapshot()`, but seems like you are using `page.screenshot()`?"};if(typeof t!="object")return {pass:!1,actual:e,message:()=>`\`toMatchImageSnapshot()\` expects the subject to be an element, locator, or result of \`page.imageSnapshot()\`, but got: \`${e}\``}}BO(t);let r=await AY(t.baselinePath);if(!r)return await ku.copyFile(t.resultPath,t.baselinePath),FO;let n=await Du(r),[o,i]=OY(t.image,n),{width:s,height:a}=o,l=new ImageData(s,a);return xY(o.data,i.data,l.data,s,a)>0?(await PY(`${t.diffPath}`,l),{pass:!1,actual:e,message:()=>`Image snapshot does not match the baseline. See the diff image at '${t.diffPath}'`}):FO}var FO={pass:!0,message:()=>""};function AY(e){return ku.readFile(e,{encoding:"base64"}).catch(()=>{})}async function PY(e,t){let r=(await DO(t)).split(",")[1];return ku.writeFile(e,r,"base64url")}function OY(e,t){if(MY(e,t))return [e,t];let r=RY(e,t),n=IY(r);return [n(e),n(t)]}function RY(e,t){let r=Math.max(e.width,t.width),n=Math.max(e.height,t.height);return {width:r,height:n}}function MY(e,t){return e.width===t.width&&e.height===t.height}var IY=({width:e,height:t})=>r=>{if(r.width===e&&r.height===t)return r;let n=(i,s)=>s<=r.height&&i<=r.width,o=new ImageData(e,t,{colorSpace:r.colorSpace});for(let i=0;i<t;i++)for(let s=0;s<e;s++){let a=e*i+s<<2;if(n(s,i)){let l=r.width*i+s<<2;o.data[a]=r.data[l],o.data[a+1]=r.data[l+1],o.data[a+2]=r.data[l+2],o.data[a+3]=r.data[l+3];}else o.data[a]=0,o.data[a+1]=0,o.data[a+2]=0,o.data[a+3]=64;}return o};fi(e=>{$O.extend({imageSnapshot:LO}),Co.extend({toMatchImageSnapshot:UO}),ke.name=e.name,ke.testFilepath=e.file.filepath,ke.testFilename=basename(ke.testFilepath),ke.projectDir=ke.testFilepath.slice(0,-ke.name.length);let t=dirname(ke.testFilepath);ke.baselineDir=relative(t,join(ke.projectDir,"__snapshots__")),ke.resultDir=relative(t,join(ke.projectDir,"__snapshots__","__results__")),ke.diffDir=relative(t,join(ke.projectDir,"__snapshots__","__diff_output__"));});di(e=>{ke.taskName=e.task.name,ke.snapshot[ke.taskName]=ke.snapshot[ke.taskName]??{index:1};});
|
|
378
|
+
/*! Bundled license information:
|
|
379
|
+
|
|
380
|
+
@vitest/pretty-format/dist/index.js:
|
|
381
|
+
(**
|
|
382
|
+
* @license React
|
|
383
|
+
* react-is.production.min.js
|
|
384
|
+
*
|
|
385
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
386
|
+
*
|
|
387
|
+
* This source code is licensed under the MIT license found in the
|
|
388
|
+
* LICENSE file in the root directory of this source tree.
|
|
389
|
+
*)
|
|
390
|
+
|
|
391
|
+
@vitest/pretty-format/dist/index.js:
|
|
392
|
+
(**
|
|
393
|
+
* @license React
|
|
394
|
+
* react-is.development.js
|
|
395
|
+
*
|
|
396
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
397
|
+
*
|
|
398
|
+
* This source code is licensed under the MIT license found in the
|
|
399
|
+
* LICENSE file in the root directory of this source tree.
|
|
400
|
+
*)
|
|
401
|
+
|
|
402
|
+
chai/chai.js:
|
|
403
|
+
(*!
|
|
404
|
+
* Chai - flag utility
|
|
405
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
406
|
+
* MIT Licensed
|
|
407
|
+
*)
|
|
408
|
+
(*!
|
|
409
|
+
* Chai - test utility
|
|
410
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
411
|
+
* MIT Licensed
|
|
412
|
+
*)
|
|
413
|
+
(*!
|
|
414
|
+
* Chai - expectTypes utility
|
|
415
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
416
|
+
* MIT Licensed
|
|
417
|
+
*)
|
|
418
|
+
(*!
|
|
419
|
+
* Chai - getActual utility
|
|
420
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
421
|
+
* MIT Licensed
|
|
422
|
+
*)
|
|
423
|
+
(*!
|
|
424
|
+
* Chai - message composition utility
|
|
425
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
426
|
+
* MIT Licensed
|
|
427
|
+
*)
|
|
428
|
+
(*!
|
|
429
|
+
* Chai - transferFlags utility
|
|
430
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
431
|
+
* MIT Licensed
|
|
432
|
+
*)
|
|
433
|
+
(*!
|
|
434
|
+
* chai
|
|
435
|
+
* http://chaijs.com
|
|
436
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
437
|
+
* MIT Licensed
|
|
438
|
+
*)
|
|
439
|
+
(*!
|
|
440
|
+
* Chai - isProxyEnabled helper
|
|
441
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
442
|
+
* MIT Licensed
|
|
443
|
+
*)
|
|
444
|
+
(*!
|
|
445
|
+
* Chai - addProperty utility
|
|
446
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
447
|
+
* MIT Licensed
|
|
448
|
+
*)
|
|
449
|
+
(*!
|
|
450
|
+
* Chai - addLengthGuard utility
|
|
451
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
452
|
+
* MIT Licensed
|
|
453
|
+
*)
|
|
454
|
+
(*!
|
|
455
|
+
* Chai - getProperties utility
|
|
456
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
457
|
+
* MIT Licensed
|
|
458
|
+
*)
|
|
459
|
+
(*!
|
|
460
|
+
* Chai - proxify utility
|
|
461
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
462
|
+
* MIT Licensed
|
|
463
|
+
*)
|
|
464
|
+
(*!
|
|
465
|
+
* Chai - addMethod utility
|
|
466
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
467
|
+
* MIT Licensed
|
|
468
|
+
*)
|
|
469
|
+
(*!
|
|
470
|
+
* Chai - overwriteProperty utility
|
|
471
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
472
|
+
* MIT Licensed
|
|
473
|
+
*)
|
|
474
|
+
(*!
|
|
475
|
+
* Chai - overwriteMethod utility
|
|
476
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
477
|
+
* MIT Licensed
|
|
478
|
+
*)
|
|
479
|
+
(*!
|
|
480
|
+
* Chai - addChainingMethod utility
|
|
481
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
482
|
+
* MIT Licensed
|
|
483
|
+
*)
|
|
484
|
+
(*!
|
|
485
|
+
* Chai - overwriteChainableMethod utility
|
|
486
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
487
|
+
* MIT Licensed
|
|
488
|
+
*)
|
|
489
|
+
(*!
|
|
490
|
+
* Chai - compareByInspect utility
|
|
491
|
+
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|
492
|
+
* MIT Licensed
|
|
493
|
+
*)
|
|
494
|
+
(*!
|
|
495
|
+
* Chai - getOwnEnumerablePropertySymbols utility
|
|
496
|
+
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|
497
|
+
* MIT Licensed
|
|
498
|
+
*)
|
|
499
|
+
(*!
|
|
500
|
+
* Chai - getOwnEnumerableProperties utility
|
|
501
|
+
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|
502
|
+
* MIT Licensed
|
|
503
|
+
*)
|
|
504
|
+
(*!
|
|
505
|
+
* Chai - isNaN utility
|
|
506
|
+
* Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
|
|
507
|
+
* MIT Licensed
|
|
508
|
+
*)
|
|
509
|
+
(*!
|
|
510
|
+
* chai
|
|
511
|
+
* Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
|
|
512
|
+
* MIT Licensed
|
|
513
|
+
*)
|
|
514
|
+
(*!
|
|
515
|
+
* chai
|
|
516
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
517
|
+
* MIT Licensed
|
|
518
|
+
*)
|
|
519
|
+
(*! Bundled license information:
|
|
520
|
+
|
|
521
|
+
deep-eql/index.js:
|
|
522
|
+
(*!
|
|
523
|
+
* deep-eql
|
|
524
|
+
* Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>
|
|
525
|
+
* MIT Licensed
|
|
526
|
+
*)
|
|
527
|
+
(*!
|
|
528
|
+
* Check to see if the MemoizeMap has recorded a result of the two operands
|
|
529
|
+
*
|
|
530
|
+
* @param {Mixed} leftHandOperand
|
|
531
|
+
* @param {Mixed} rightHandOperand
|
|
532
|
+
* @param {MemoizeMap} memoizeMap
|
|
533
|
+
* @returns {Boolean|null} result
|
|
534
|
+
*)
|
|
535
|
+
(*!
|
|
536
|
+
* Set the result of the equality into the MemoizeMap
|
|
537
|
+
*
|
|
538
|
+
* @param {Mixed} leftHandOperand
|
|
539
|
+
* @param {Mixed} rightHandOperand
|
|
540
|
+
* @param {MemoizeMap} memoizeMap
|
|
541
|
+
* @param {Boolean} result
|
|
542
|
+
*)
|
|
543
|
+
(*!
|
|
544
|
+
* Primary Export
|
|
545
|
+
*)
|
|
546
|
+
(*!
|
|
547
|
+
* The main logic of the `deepEqual` function.
|
|
548
|
+
*
|
|
549
|
+
* @param {Mixed} leftHandOperand
|
|
550
|
+
* @param {Mixed} rightHandOperand
|
|
551
|
+
* @param {Object} [options] (optional) Additional options
|
|
552
|
+
* @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.
|
|
553
|
+
* @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of
|
|
554
|
+
complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular
|
|
555
|
+
references to blow the stack.
|
|
556
|
+
* @return {Boolean} equal match
|
|
557
|
+
*)
|
|
558
|
+
(*!
|
|
559
|
+
* Compare two Regular Expressions for equality.
|
|
560
|
+
*
|
|
561
|
+
* @param {RegExp} leftHandOperand
|
|
562
|
+
* @param {RegExp} rightHandOperand
|
|
563
|
+
* @return {Boolean} result
|
|
564
|
+
*)
|
|
565
|
+
(*!
|
|
566
|
+
* Compare two Sets/Maps for equality. Faster than other equality functions.
|
|
567
|
+
*
|
|
568
|
+
* @param {Set} leftHandOperand
|
|
569
|
+
* @param {Set} rightHandOperand
|
|
570
|
+
* @param {Object} [options] (Optional)
|
|
571
|
+
* @return {Boolean} result
|
|
572
|
+
*)
|
|
573
|
+
(*!
|
|
574
|
+
* Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.
|
|
575
|
+
*
|
|
576
|
+
* @param {Iterable} leftHandOperand
|
|
577
|
+
* @param {Iterable} rightHandOperand
|
|
578
|
+
* @param {Object} [options] (Optional)
|
|
579
|
+
* @return {Boolean} result
|
|
580
|
+
*)
|
|
581
|
+
(*!
|
|
582
|
+
* Simple equality for generator objects such as those returned by generator functions.
|
|
583
|
+
*
|
|
584
|
+
* @param {Iterable} leftHandOperand
|
|
585
|
+
* @param {Iterable} rightHandOperand
|
|
586
|
+
* @param {Object} [options] (Optional)
|
|
587
|
+
* @return {Boolean} result
|
|
588
|
+
*)
|
|
589
|
+
(*!
|
|
590
|
+
* Determine if the given object has an @@iterator function.
|
|
591
|
+
*
|
|
592
|
+
* @param {Object} target
|
|
593
|
+
* @return {Boolean} `true` if the object has an @@iterator function.
|
|
594
|
+
*)
|
|
595
|
+
(*!
|
|
596
|
+
* Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.
|
|
597
|
+
* This will consume the iterator - which could have side effects depending on the @@iterator implementation.
|
|
598
|
+
*
|
|
599
|
+
* @param {Object} target
|
|
600
|
+
* @returns {Array} an array of entries from the @@iterator function
|
|
601
|
+
*)
|
|
602
|
+
(*!
|
|
603
|
+
* Gets all entries from a Generator. This will consume the generator - which could have side effects.
|
|
604
|
+
*
|
|
605
|
+
* @param {Generator} target
|
|
606
|
+
* @returns {Array} an array of entries from the Generator.
|
|
607
|
+
*)
|
|
608
|
+
(*!
|
|
609
|
+
* Gets all own and inherited enumerable keys from a target.
|
|
610
|
+
*
|
|
611
|
+
* @param {Object} target
|
|
612
|
+
* @returns {Array} an array of own and inherited enumerable keys from the target.
|
|
613
|
+
*)
|
|
614
|
+
(*!
|
|
615
|
+
* Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
|
|
616
|
+
* each key. If any value of the given key is not equal, the function will return false (early).
|
|
617
|
+
*
|
|
618
|
+
* @param {Mixed} leftHandOperand
|
|
619
|
+
* @param {Mixed} rightHandOperand
|
|
620
|
+
* @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against
|
|
621
|
+
* @param {Object} [options] (Optional)
|
|
622
|
+
* @return {Boolean} result
|
|
623
|
+
*)
|
|
624
|
+
(*!
|
|
625
|
+
* Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`
|
|
626
|
+
* for each enumerable key in the object.
|
|
627
|
+
*
|
|
628
|
+
* @param {Mixed} leftHandOperand
|
|
629
|
+
* @param {Mixed} rightHandOperand
|
|
630
|
+
* @param {Object} [options] (Optional)
|
|
631
|
+
* @return {Boolean} result
|
|
632
|
+
*)
|
|
633
|
+
(*!
|
|
634
|
+
* Returns true if the argument is a primitive.
|
|
635
|
+
*
|
|
636
|
+
* This intentionally returns true for all objects that can be compared by reference,
|
|
637
|
+
* including functions and symbols.
|
|
638
|
+
*
|
|
639
|
+
* @param {Mixed} value
|
|
640
|
+
* @return {Boolean} result
|
|
641
|
+
*)
|
|
642
|
+
*)
|
|
643
|
+
|
|
644
|
+
@vitest/snapshot/dist/index.js:
|
|
645
|
+
(*
|
|
646
|
+
* @version 1.4.0
|
|
647
|
+
* @date 2015-10-26
|
|
648
|
+
* @stability 3 - Stable
|
|
649
|
+
* @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
|
|
650
|
+
* @license MIT License
|
|
651
|
+
*)
|
|
652
|
+
*/
|
|
653
|
+
//# sourceMappingURL=vitest-setup.js.map
|
|
654
|
+
//# sourceMappingURL=vitest-setup.js.map
|