vargd=Object.defineProperty;varvd=(e,t,r)=>tine?gd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;varwr=(e,t,r)=>vd(e,typeoft!="symbol"?t+"":t,r);import{iasWo}from"./index-DBHycubP.js";import{Sas_d,caswd,aasRd,dasqd,easEd,masCd,basPd,tasAd,fasOd}from"./index-CoCSl5nl.js";import{PasSd}from"./Profile-BcKGPr-r.js";import"./lifecycle-Dsbxuj6L.js";import"./each-HCog7gGM.js";import"./runtime-oMSfAR4m.js";import"./index-DYrB6zKT.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./ZoomOut24-DlfghPAc.js";import"./spread-CgU5AtxT.js";import"./Avatar-iWPcWI3Y.js";import"./XPro-CUsrQo4D.js";import"./globals-D0QH3NT1.js";import"./BlockOrReport-BslyLoRG.js";import"./Created-CMvNHQls.js";import"./DisplayName-nUHy7Jcj.js";import"./History-BFyk_avK.js";import"./CommitBody-B6tqTpKR.js";import"./CommitDate-C6S4VMTL.js";import"./MainMenu-DP6mUco_.js";import"./MainMenuActions-DgotoUAN.js";import"./MainMenuSummary-e2hB-evl.js";import"./popup-JRlLBLgR.js";import"./OverlayAvatar-BYibJpjG.js";import"./MainMenuDetails-D7aCVAHo.js";import"./Project-BvrP4UEf.js";varxd={};const{once:Td}=__STORYBOOK_MODULE_CLIENT_LOGGER__;varjd=Object.create,Go=Object.defineProperty,Md=Object.getOwnPropertyDescriptor,ui=Object.getOwnPropertyNames,Nd=Object.getPrototypeOf,Id=Object.prototype.hasOwnProperty,kd=(e=>typeofrequire<"u"?require:typeofProxy<"u"?newProxy(e,{get:(t,r)=>(typeofrequire<"u"?require:t)[r]}):e)(function(e){if(typeofrequire<"u")returnrequire.apply(this,arguments);throwError('Dynamic require of "'+e+'" is not supported')}),v=(e,t)=>function(){returnt||(0,e[ui(e)[0]])((t={exports:{}}).exports,t),t.exports},Ko=(e,t)=>{for(varrint)Go(e,r,{get:t[r],enumerable:!0})},Bd=(e,t,r,n)=>{if(t&&typeoft=="object"||typeoft=="function")for(letaofui(t))!Id.call(e,a)&&a!==r&&Go(e,a,{get:()=>t[a],enumerable:!(n=Md(t,a))||n.enumerable});returne},Ee=(e,t,r)=>(r=e!=null?jd(Nd(e)):{},Bd(t||!e||!e.__esModule?Go(r,"default",{value:e,enumerable:!0}):r,e)),ci=v({"../../node_modules/assertion-error/index.js"(e,t){functionr(){vara=[].slice.call(arguments);functionu(o,l){Object.keys(l).forEach(function(i){~a.indexOf(i)||(o[i]=l[i])})}returnfunction(){for(varo=[].slice.call(arguments),l=0,i={};l<o.length;l++)u(i,o[l]);returni}}t.exports=n;functionn(a,u,o){varl=r("name","message","stack","constructor","toJSON"),i=l(u||{});this.message=a||"Unspecified AssertionError",this.showDiff=!1;for(varsini)this[s]=i[s];if(o=o||n,Error.captureStackTrace)Error.captureStackTrace(this,o);elsetry{thrownewError}catch(f){this.stack=f.stack}}n.prototype=Object.create(Error.prototype),n.prototype.name="AssertionError",n.prototype.constructor=n,n.prototype.toJSON=function(a){varu=r("constructor","toJSON","stack"),o=u({name:this.name},this);returna!==!1&&this.stack&&(o.stack=this.stack),o}}}),Dd=v({"../../node_modules/pathval/index.js"(e,t){functionr(s,f){returntypeofs>"u"||s===null?!1:finObject(s)}functionn(s){varf=s.replace(/([^\\])\[/g,"$1.["),c=f.match(/(\\\.|[^.]+?)+/g);returnc.map(function(d){if(d==="constructor"||d==="__proto__"||d==="prototype")return{};varp=/^\[(\d+)\]$/,m=p.exec(d),b=null;returnm?b={i:parseFloat(m[1])}:b={p:d.replace(/\\([.[\]])/g,"$1")},b})}functiona(s,f,c){vard=s,p=null;c=typeofc>"u"?f.length:c;for(varm=0;m<c;m++){varb=f[m];d&&(typeofb.p>"u"?d=d[b.i]:d=d[b.p],m===c-1&&(p=d))}returnp}functionu(s,f,c){for(vard=s,p=c.length,m=null,b=0;b<p;b++){var_=null,h=null;if(m=c[b],b===p-1)_=typeofm.p>"u"?m.i:m.p,d[_]=f;elseif(typeofm.p<"u"&&d[m.p])d=d[m.p];elseif(typeofm.i<"u"&&d[m.i])d=d[m.i];else{vary=c[b+1];_=typeofm.p>"u"?m.i:m.p,h=typeofy.p>"u"?[]:{},d[_]=h,d=d[_]}}}functiono(s,f){varc=n(f),d=c[c.length-1],p={parent:c.length>1?a(s,c,c.length-1):s,name:d.p||d.i,value:a(s,c)};returnp.exists=r(p.parent,p.name),p}functionl(s,f){varc=o(s,f);returnc.value}functioni(s,f,c){vard=n(f);returnu(s,c,d),s}t.exports={hasProperty:r,getPathInfo:o,getPathValue:l,setPathValue:i}}}),tt=v({"../../node_modules/chai/lib/chai/utils/flag.js"(e,t){t.exports=function(r,n,a){varu=r.__flags||(r.
${be}`)},{edgeSpacing:D.spacingOuter,min:D.min,spacing:D.spacingInner},D.colors)}catch(le){throw new y(le.message,le.stack)}if(typeof ne!="string")throw new Error(`pretty-format:Pluginmustreturntype"string"butinsteadreturned"${typeof ne}".`);return ne}function $(E,F){for(let D=0;D<E.length;D++)try{if(E[D].test(F))return E[D]}catch(J){throw new y(J.message,J.stack)}return null}function U(E,F,D,J,G,W){let ne=$(F.plugins,E);if(ne!==null)return L(ne,E,F,D,J,G);let le=R(E,F.printFunctionName,F.escapeRegex,F.escapeString);return le!==null?le:S(E,F,D,J,G,W)}var Q={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},ee=Object.keys(Q),re=E=>E,ae=re({callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,maxWidth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:Q});e.DEFAULT_OPTIONS=ae;function ie(E){if(Object.keys(E).forEach(F=>{if(!Object.prototype.hasOwnProperty.call(ae,F))throw new Error(`pretty-format:Unknownoption"${F}".`)}),E.min&&E.indent!==void 0&&E.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(E.theme!==void 0){if(E.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof E.theme!="object")throw new Error(`pretty-format:Option"theme"mustbeoftype"object"butinsteadreceived"${typeof E.theme}".`)}}var ue=E=>ee.reduce((F,D)=>{let J=E.theme&&E.theme[D]!==void 0?E.theme[D]:Q[D],G=J&&t.default[J];if(G&&typeof G.close=="string"&&typeof G.open=="string")F[D]=G;else throw new Error(`pretty-format:Option"theme"hasakey"${D}"whosevalue"${J}"isundefinedinansi-styles.`);return F},Object.create(null)),O=()=>ee.reduce((E,F)=>(E[F]={close:"",open:""},E),Object.create(null)),x=E=>(E==null?void 0:E.printFunctionName)??ae.printFunctionName,k=E=>(E==null?void 0:E.escapeRegex)??ae.escapeRegex,j=E=>(E==null?void 0:E.escapeString)??ae.escapeString,z=E=>({callToJSON:(E==null?void 0:E.callToJSON)??ae.callToJSON,colors:E!=null&&E.highlight?ue(E):O(),compareKeys:typeof(E==null?void 0:E.compareKeys)=="function"||(E==null?void 0:E.compareKeys)===null?E.compareKeys:ae.compareKeys,escapeRegex:k(E),escapeString:j(E),indent:E!=null&&E.min?"":N((E==null?void 0:E.indent)??ae.indent),maxDepth:(E==null?void 0:E.maxDepth)??ae.maxDepth,maxWidth:(E==null?void 0:E.maxWidth)??ae.maxWidth,min:(E==null?void 0:E.min)??ae.min,plugins:(E==null?void 0:E.plugins)??ae.plugins,printBasicPrototype:(E==null?void 0:E.printBasicPrototype)??!0,printFunctionName:x(E),spacingInner:E!=null&&E.min?" ":`
`+Y.prev}function Fe(V,Y){var me=N(V),T=[];if(me){T.length=V.length;for(var B=0;B<V.length;B++)T[B]=ne(V,B)?Y(V[B],V):""}var K=typeof U=="function"?U(V):[],oe;if(ee){oe={};for(var se=0;se<K.length;se++)oe["$"+K[se]]=K[se]}for(var ce in V)ne(V,ce)&&(me&&String(Number(ce))===ce&&ce<V.length||ee&&oe["$"+ce]instanceof Symbol||(g.call(/[^\w$]/,ce)?T.push(Y(ce,V)+": "+Y(V[ce],V)):T.push(ce+": "+Y(V[ce],V))));if(typeof U=="function")for(var fe=0;fe<K.length;fe++)ae.call(V,K[fe])&&T.push("["+Y(K[fe])+"]: "+Y(V[K[fe]],V));return T}}}),Ei=v({"../../node_modules/side-channel/index.js"(e,t){var r=st(),n=Ke(),a=vb(),u=jt(),o=r("%WeakMap%",!0),l=r("%Map%",!0),i=n("WeakMap.prototype.get",!0),s=n("WeakMap.prototype.set",!0),f=n("WeakMap.prototype.has",!0),c=n("Map.prototype.get",!0),d=n("Map.prototype.set",!0),p=n("Map.prototype.has",!0),m=function(y,q){for(var w=y,A;(A=w.next)!==null;w=A)if(A.key===q)return w.next=A.next,A.next=y.next,y.next=A,A},b=function(y,q){var w=m(y,q);return w&&w.value},_=function(y,q,w){var A=m(y,q);A?A.value=w:y.next={key:q,next:y.next,value:w}},h=function(y,q){return!!m(y,q)};t.exports=function(){var y,q,w,A={assert:function(P){if(!A.has(P))throw new u("Side channel does not contain "+a(P))},get:function(P){if(o&&P&&(typeof P=="object"||typeof P=="function")){if(y)return i(y,P)}else if(l){if(q)return c(q,P)}else if(w)return b(w,P)},has:function(P){if(o&&P&&(typeof P=="object"||typeof P=="function")){if(y)return f(y,P)}else if(l){if(q)return p(q,P)}else if(w)return h(w,P);return!1},set:function(P,C){o&&P&&(typeof P=="object"||typeof P=="function")?(y||(y=new o),s(y,P,C)):l?(q||(q=new l),d(q,P,C)):(w||(w={key:{},next:null}),_(w,P,C))}};return A}}}),_b=v({"../../node_modules/internal-slot/index.js"(e,t){var r=gi(),n=Ei()(),a=jt(),u={assert:function(o,l){if(!o||typeof o!="object"&&typeof o!="function")throw new a("`O` is not an object");if(typeof l!="string")throw new a("`slot` must be a string");if(n.assert(o),!u.has(o,l))throw new a("`"+l+"` is not present on `O`")},get:function(o,l){if(!o||typeof o!="object"&&typeof o!="function")throw new a("`O` is not an object");if(typeof l!="string")throw new a("`slot` must be a string");var i=n.get(o);return i&&i["$"+l]},has:function(o,l){if(!o||typeof o!="object"&&typeof o!="function")throw new a("`O` is not an object");if(typeof l!="string")throw new a("`slot` must be a string");var i=n.get(o);return!!i&&r(i,"$"+l)},set:function(o,l,i){if(!o||typeof o!="object"&&typeof o!="function")throw new a("`O` is not an object");if(typeof l!="string")throw new a("`slot` must be a string");var s=n.get(o);s||(s={},n.set(o,s)),s["$"+l]=i}};Object.freeze&&Object.freeze(u),t.exports=u}}),wb=v({"../../node_modules/stop-iteration-iterator/index.js"(e,t){var r=_b(),n=SyntaxError,a=typeof StopIteration=="object"?StopIteration:null;t.exports=function(u){if(!a)throw new n("this environment lacks StopIteration");r.set(u,"[[Done]]",!1);var o={next:function(){var l=r.get(this,"[[Iterator]]"),i=r.get(l,"[[Done]]");try{return{done:i,value:i?void 0:l.next()}}catch(s){if(r.set(l,"[[Done]]",!0),s!==a)throw s;return{done:!0,value:void 0}}}};return r.set(o,"[[Iterator]]",u),o}}}),Ci=v({"../../node_modules/isarray/index.js"(e,t){var r={}.toString;t.exports=Array.isArray||function(n){return r.call(n)=="[object Array]"}}}),Pi=v({"../../node_modules/is-string/index.js"(e,t){var r=String.prototype.valueOf,n=function(l){try{return r.call(l),!0}catch{return!1}},a=Object.prototype.toString,u="[object String]",o=Ut()();t.exports=function(l){return typeof l=="string"?!0:typeof l!="object"?!1:o?n(l):a.call(l)===u}}}),Ai=v({"../../node_modules/is-map/index.js"(e,t){var r=typeof Map=="function"&&Map.prototype?Map:null,n=typeof Set=="function"&&Set.prototype?Set:null,a;r||(a=function(l){return!1});var u=r?Map.prototype.has:null,o=n?Set.prototype.has:null;!a&&!u&&(a=function(l){return!1}),t.exports=a||function(l){if(!l||typeof l!="object")return!1;try{if(u.call(l),o)try{o.call(l)}catch{return!0}return l instanceof r}catch{}return!1}}}),Oi=v({"../../node_modules/is-set/index.js"(e,t){var r=typeof Map=="function"&&Ma
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function l(c){let d=c[0]==="u",p=c[1]==="{";return d&&!p&&c.length===5||c[0]==="x"&&c.length===3?String.fromCharCode(parseInt(c.slice(1),16)):d&&p?String.fromCodePoint(parseInt(c.slice(2,-1),16)):o.get(c)||c}function i(c,d){let p=[],m=d.trim().split(/\s*,\s*/g),b;for(let _ of m){let h=Number(_);if(!Number.isNaN(h))p.push(h);else if(b=_.match(a))p.push(b[2].replace(u,(y,q,w)=>q?l(q):w));else throw new Error(`InvalidChalktemplatestyleargument:${_}(instyle'${c}')`)}return p}function s(c){n.lastIndex=0;let d=[],p;for(;(p=n.exec(c))!==null;){let m=p[1];if(p[2]){let b=i(m,p[2]);d.push([m].concat(b))}else d.push([m])}return d}function f(c,d){let p={};for(let b of d)for(let _ of b.styles)p[_[0]]=b.inverse?null:_.slice(1);let m=c;for(let[b,_]of Object.entries(p))if(Array.isArray(_)){if(!(b in m))throw new Error(`UnknownChalkstyle:${b}`);m=_.length>0?m[b](..._):m[b]}return m}t.exports=(c,d)=>{let p=[],m=[],b=[];if(d.replace(r,(_,h,y,q,w,A)=>{if(h)b.push(l(h));else if(q){let P=b.join("");b=[],m.push(p.length===0?P:f(c,p)(P)),p.push({inverse:y,styles:s(q)})}else if(w){if(p.length===0)throw new Error("Found extraneous } in Chalk template literal");m.push(f(c,p)(b.join(""))),b=[],p.pop()}else b.push(A)}),m.push(b.join("")),p.length>0){let _=`Chalktemplateliteralismissing${p.length}closingbracket${p.length===1?"":"s"}(\`}\`)`;thrownewError(_)}returnm.join("")}}}),Ni=v({"../../node_modules/@testing-library/jest-dom/node_modules/chalk/source/index.js"(e,t){varr=Yb(),{stdout:n,stderr:a}=Jb(),{stringReplaceAll:u,stringEncaseCRLFWithFirstIndex:o}=Xb(),l=["ansi","ansi","ansi256","ansi16m"],i=Object.create(null),s=(A,P={})=>{if(P.level>3||P.level<0)thrownewError("The `level` option should be an integer from 0 to 3");letC=n?n.level:0;A.level=P.level===void0?C:P.level},f=class{constructor(A){returnc(A)}},c=A=>{letP={};returns(P,A),P.template=(...C)=>q(P.template,...C),Object.setPrototypeOf(P,d.prototype),Object.setPrototypeOf(P.template,P),P.template.constructor=()=>{thrownewError("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},P.template.Instance=f,P.template};functiond(A){returnc(A)}for(let[A,P]ofObject.entries(r))i[A]={get(){letC=_(this,b(P.open,P.close,this._styler),this._isEmpty);returnObject.defineProperty(this,A,{value:C}),C}};i.visible={get(){letA=_(this,this._styler,!0);returnObject.defineProperty(this,"visible",{value:A}),A}};varp=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(letAofp)i[A]={get(){let{level:P}=this;returnfunction(...C){letg=b(r.color[l[P]][A](...C),r.color.close,this._styler);return_(this,g,this._isEmpty)}}};for(letAofp){letP="bg"+A[0].toUpperCase()+A.slice(1);i[P]={get(){let{level:C}=this;returnfunction(...g){letR=b(r.bgColor[l[C]][A](...g),r.bgColor.close,this._styler);return_(this,R,this._isEmpty)}}}}varm=Object.defineProperties(()=>{},{...i,level:{enumerable:!0,get(){returnthis._generator.level},set(A){this._generator.level=A}}}),b=(A,P,C)=>{letg,R;returnC===void0?(g=A,R=P):(g=C.openAll+A,R=P+C.closeAll),{open:A,close:P,openAll:g,closeAll:R,parent:C}},_=(A,P,C)=>{letg=(...R)=>h(g,R.length===1?""+R[0]:R.join(" "));returng.__proto__=m,g._generator=A,g._styler=P,g._isEmpty=C,g},h=(A,P)=>{if(A.level<=0||!P)returnA._isEmpty?"":P;letC=A._styler;if(C===void0)returnP;let{openAll:g,closeAll:R}=C;if(P.indexOf("\x1B")!==-1)for(;C!==void0;)P=u(P,C.close,C.open),C=C.parent;letS=P.indexOf(`
`+be)},{edgeSpacing:D.spacingOuter,min:D.min,spacing:D.spacingInner},D.colors)}catch(le){throw new q(le.message,le.stack)}if(typeof ne!="string")throw new Error(`pretty-format:Pluginmustreturntype"string"butinsteadreturned"${typeof ne}".`);return ne}function U(E,F){for(let D=0;D<E.length;D++)try{if(E[D].test(F))return E[D]}catch(J){throw new q(J.message,J.stack)}return null}function Q(E,F,D,J,G,W){let ne=U(F.plugins,E);if(ne!==null)return $(ne,E,F,D,J,G);let le=S(E,F.printFunctionName,F.escapeRegex,F.escapeString);return le!==null?le:M(E,F,D,J,G,W)}var ee={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},re=Object.keys(ee),ae={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:ee};e.DEFAULT_OPTIONS=ae;function ie(E){if(Object.keys(E).forEach(F=>{if(!ae.hasOwnProperty(F))throw new Error(`pretty-format:Unknownoption"${F}".`)}),E.min&&E.indent!==void 0&&E.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(E.theme!==void 0){if(E.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof E.theme!="object")throw new Error(`pretty-format:Option"theme"mustbeoftype"object"butinsteadreceived"${typeof E.theme}".`)}}var ue=E=>re.reduce((F,D)=>{let J=E.theme&&E.theme[D]!==void 0?E.theme[D]:ee[D],G=J&&t.default[J];if(G&&typeof G.close=="string"&&typeof G.open=="string")F[D]=G;else throw new Error(`pretty-format:Option"theme"hasakey"${D}"whosevalue"${J}"isundefinedinansi-styles.`);return F},Object.create(null)),O=()=>re.reduce((E,F)=>(E[F]={close:"",open:""},E),Object.create(null)),x=E=>E&&E.printFunctionName!==void 0?E.printFunctionName:ae.printFunctionName,k=E=>E&&E.escapeRegex!==void 0?E.escapeRegex:ae.escapeRegex,j=E=>E&&E.escapeString!==void 0?E.escapeString:ae.escapeString,z=E=>{var F;return{callToJSON:E&&E.callToJSON!==void 0?E.callToJSON:ae.callToJSON,colors:E&&E.highlight?ue(E):O(),compareKeys:E&&typeof E.compareKeys=="function"?E.compareKeys:ae.compareKeys,escapeRegex:k(E),escapeString:j(E),indent:E&&E.min?"":N(E&&E.indent!==void 0?E.indent:ae.indent),maxDepth:E&&E.maxDepth!==void 0?E.maxDepth:ae.maxDepth,min:E&&E.min!==void 0?E.min:ae.min,plugins:E&&E.plugins!==void 0?E.plugins:ae.plugins,printBasicPrototype:(F=E==null?void 0:E.printBasicPrototype)!==null&&F!==void 0?F:!0,printFunctionName:x(E),spacingInner:E&&E.min?" ":`
`:n}function pw(e,t){return`${t}${e}${t===1?"":"s"}`}function ro(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>{var r;return(r=Object.getOwnPropertyDescriptor(e,t))==null?void 0:r.enumerable})]}function mw(e,t,r=[]){let n=0,a=(u=new WeakMap)=>(o,l)=>{if(Array.isArray(o)){if(Array.isArray(l)&&l.length===o.length)return l.map((i,s)=>a(u)(o[s],i))}else{if(o instanceof Date)return o;if(ln(o)&&ln(l)){if(ge(o,l,[...r,Ue,Kr]))return l;let i={};u.set(o,i);for(let s of ro(o))ha(l,s)?i[s]=u.has(o[s])?u.get(o[s]):a(u)(o[s],l[s]):u.has(o[s])||(n+=1,ln(o[s])&&(n+=ro(o[s]).length),a(u)(o[s],l[s]));if(ro(i).length>0)return i}}return o};return{subset:a()(e,t),stripped:n}}var Mt=class{constructor(e,t=!1){wr(this,"$$typeof",Symbol.for("jest.asymmetricMatcher"));this.sample=e,this.inverse=t}getMatcherContext(e){return{...Nr(e||globalThis[Hn]),equals:ge,isNot:this.inverse,customTesters:ba(),utils:{...cs(),diff:Tr,stringify:it,iterableEquality:Ue,subsetEquality:Kr}}}[Symbol.for("chai/inspect")](e){let t=it(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{…}`}},ol=class extends Mt{constructor(e,t=!1){if(!et("String",e))throw new Error("Expected is not a string");super(e,t)}asymmetricMatch(e){let t=et("String",e)&&e.includes(this.sample);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}},bw=class extends Mt{asymmetricMatch(e){return e!=null}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}},al=class extends Mt{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(`Youmustprovideanobjectto${this.toString()},not'${typeof this.sample}'.`);let t=!0,r=this.getMatcherContext();for(let n in this.sample)if(!this.hasProperty(e,n)||!ge(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"}},ll=class extends Mt{constructor(e,t=!1){super(e,t)}asymmetricMatch(e){if(!Array.isArray(this.sample))throw new TypeError(`Youmustprovideanarrayto${this.toString()},not'${typeof this.sample}'.`);let t=this.getMatcherContext(),r=this.sample.length===0||Array.isArray(e)&&this.sample.every(n=>e.some(a=>ge(n,a,t.customTesters)));return this.inverse?!r:r}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}},hw=class extends Mt{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)}>`}},il=class extends Mt{constructor(e,t=!1){if(!et("String",e)&&!et("RegExp",e))throw new Error("Expected is not a String or a RegExp");super(new RegExp(e),t)}asymmetricMatch(e){let t=et("String",e)&&this.sample.test(e);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""
(${_}matching${_===1?"property":"properties"}omittedfromactual)`;throw new r(y,{showDiff:!0,expected:c,actual:b})}}),u("toMatch",function(c){let d=this._obj;if(typeof d!="string")throw new TypeError(`.toMatch()expectstoreceiveastring,butgot${typeofd}`);return this.assert(typeof c=="string"?d.includes(c):d.match(c),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",c,d)}),u("toContain",function(c){let d=this._obj;if(typeof Node<"u"&&d instanceof Node){if(!(c instanceof Node))throw new TypeError(`toContain()expectedaDOMnodeastheargument,butgot${typeofc}`);return this.assert(d.contains(c),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",c,d)}if(typeof DOMTokenList<"u"&&d instanceof DOMTokenList){pt(c,"class name",["string"]);let p=t.flag(this,"negate")?d.value.replace(c,"").trim():`${d.value}${c}`;return this.assert(d.contains(c),`expected"${d.value}"tocontain"${c}"`,`expected"${d.value}"nottocontain"${c}"`,p,d.value)}return typeof d=="string"&&typeof c=="string"?this.assert(d.includes(c),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",c,d):(d!=null&&typeof d!="string"&&t.flag(this,"object",Array.from(d)),this.contain(c))}),u("toContainEqual",function(c){let d=t.flag(this,"object"),p=Array.from(d).findIndex(m=>ge(m,c,a));this.assert(p!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",c)}),u("toBeTruthy",function(){let c=t.flag(this,"object");this.assert(!!c,"expected #{this} to be truthy","expected #{this} to not be truthy",c,!1)}),u("toBeFalsy",function(){let c=t.flag(this,"object");this.assert(!c,"expected #{this} to be falsy","expected #{this} to not be falsy",c,!1)}),u("toBeGreaterThan",function(c){let d=this._obj;return pt(d,"actual",["number","bigint"]),pt(c,"expected",["number","bigint"]),this.assert(d>c,`expected${d}tobegreaterthan${c}`,`expected${d}tobenotgreaterthan${c}`,d,c,!1)}),u("toBeGreaterThanOrEqual",function(c){let d=this._obj;return pt(d,"actual",["number","bigint"]),pt(c,"expected",["number","bigint"]),this.assert(d>=c,`expected${d}tobegreaterthanorequalto${c}`,`expected${d}tobenotgreaterthanorequalto${c}`,d,c,!1)}),u("toBeLessThan",function(c){let d=this._obj;return pt(d,"actual",["number","bigint"]),pt(c,"expected",["number","bigint"]),this.assert(d<c,`expected${d}tobelessthan${c}`,`expected${d}tobenotlessthan${c}`,d,c,!1)}),u("toBeLessThanOrEqual",function(c){let d=this._obj;return pt(d,"actual",["number","bigint"]),pt(c,"expected",["number","bigint"]),this.assert(d<=c,`expected${d}tobelessthanorequalto${c}`,`expected${d}tobenotlessthanorequalto${c}`,d,c,!1)}),u("toBeNaN",function(){return this.be.NaN}),u("toBeUndefined",function(){return this.be.undefined}),u("toBeNull",function(){return this.be.null}),u("toBeDefined",function(){let c=t.flag(this,"negate");return t.flag(this,"negate",!1),c?this.be.undefined:this.not.be.undefined}),u("toBeTypeOf",function(c){let d=typeof this._obj,p=c===d;return this.assert(p,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",c,d)}),u("toBeInstanceOf",function(c){return this.instanceOf(c)}),u("toHaveLength",function(c){return this.have.length(c)}),u("toHaveProperty",function(...c){Array.isArray(c[0])&&(c[0]=c[0].map(w=>String(w).replace(/([.[\]])/g,"\\$1")).join("."));let d=this._obj,[p,m]=c,b=()=>Object.prototype.hasOwnProperty.call(d,p)?{value:d[p],exists:!0}:t.getPathInfo(d,p),{value:_,exists:h}=b(),y=h&&(c.length===1||ge(m,_,a)),q=c.length===1?"":`withvalue${t.objDisplay(m)}`;return this.assert(y,`expected#{this}tohaveproperty"${p}"${q}`,`expected#{this}tonothaveproperty"${p}"${q}`,m,h?_:void 0)}),u("toBeCloseTo",function(c,d=2){let p=this._obj,m=!1,b=0,_=0;return c===Number.POSITIVE_INFINITY&&p===Number.POSITIVE_INFINITY||c===Number.NEGATIVE_INFINITY&&p===Number.NEGATIVE_INFINITY?m=!0:(b=10**-d/2,_=Math.abs(p-c),m=_<b),this.assert(m,`expected#{this}tobecloseto
`),d);u(["toHaveBeenCalledTimes","toBeCalledTimes"],function(c){let d=l(this),p=d.getMockName(),m=d.mock.calls.length;return this.assert(m===c,`expected"${p}"tobecalled#{exp}times,butgot${m}times`,`expected"${p}"tonotbecalled#{exp}times`,c,m,!1)}),u("toHaveBeenCalledOnce",function(){let c=l(this),d=c.getMockName(),p=c.mock.calls.length;return this.assert(p===1,`expected"${d}"tobecalledonce,butgot${p}times`,`expected"${d}"tonotbecalledonce`,1,p,!1)}),u(["toHaveBeenCalled","toBeCalled"],function(){let c=l(this),d=c.getMockName(),p=c.mock.calls.length,m=p>0,b=t.flag(this,"negate"),_=t.getMessage(this,[m,`expected"${d}"tobecalledatleastonce`,`expected"${d}"tonotbecalledatall,butactuallybeencalled${p}times`,!0,m]);if(m&&b&&(_=s(c,_)),m&&b||!m&&!b)throw new r(_)}),u(["toHaveBeenCalledWith","toBeCalledWith"],function(...c){let d=l(this),p=d.getMockName(),m=d.mock.calls.some(h=>ge(h,c,[...a,Ue])),b=t.flag(this,"negate"),_=t.getMessage(this,[m,`expected"${p}"tobecalledwitharguments:#{exp}`,`expected"${p}"tonotbecalledwitharguments:#{exp}`,c]);if(m&&b||!m&&!b)throw new r(s(d,_,c))}),u(["toHaveBeenNthCalledWith","nthCalledWith"],function(c,...d){let p=l(this),m=p.getMockName(),b=p.mock.calls[c-1],_=p.mock.calls.length,h=c<=_;this.assert(ge(b,d,[...a,Ue]),`expected${i(c)}"${m}"calltohavebeencalledwith#{exp}${h?"":`, but called only ${_} times`}`,`expected${i(c)}"${m}"calltonothavebeencalledwith#{exp}`,d,b,h)}),u(["toHaveBeenLastCalledWith","lastCalledWith"],function(...c){let d=l(this),p=d.getMockName(),m=d.mock.calls[d.mock.calls.length-1];this.assert(ge(m,c,[...a,Ue]),`expectedlast"${p}"calltohavebeencalledwith#{exp}`,`expectedlast"${p}"calltonothavebeencalledwith#{exp}`,c,m)}),u(["toThrow","toThrowError"],function(c){if(typeof c=="string"||typeof c>"u"||c instanceof RegExp)return this.throws(c);let d=this._obj,p=t.flag(this,"promise"),m=t.flag(this,"negate"),b=null;if(p==="rejects")b=d;else if(p==="resolves"&&typeof d!="function"){if(m)return;{let _=t.flag(this,"message")||"expected promise to throw an error, but it didn't",h={showDiff:!1};throw new r(_,h,t.flag(this,"ssfi"))}}else{let _=!1;try{d()}catch(h){_=!0,b=h}if(!_&&!m){let h=t.flag(this,"message")||"expected function to throw an error, but it didn't",y={showDiff:!1};throw new r(h,y,t.flag(this,"ssfi"))}}if(typeof c=="function"){let _=c.name||c.prototype.constructor.name;return this.assert(b&&b instanceof c,`expectederrortobeinstanceof${_}`,`expectederrornottobeinstanceof${_}`,c,b)}if(c instanceof Error)return this.assert(b&&c.message===b.message,`expectederrortohavemessage:${c.message}`,`expectederrornottohavemessage:${c.message}`,c.message,b&&b.message);if(typeof c=="object"&&"asymmetricMatch"in c&&typeof c.asymmetricMatch=="function"){let _=c;return this.assert(b&&_.asymmetricMatch(b),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",_,b)}throw new Error(`"toThrow"expectsstring,RegExp,function,Errorinstanceorasymmetricmatcher,got"${typeof c}"`)}),u(["toHaveReturned","toReturn"],function(){let c=l(this),d=c.getMockName(),p=c.mock.calls.length>0&&c.mock.results.some(({type:m})=>m!=="throw");this.assert(p,`expected"${d}"tobesuccessfullycalledatleastonce`,`expected"${d}"tonotbesuccessfullycalled`,p,!p,!1)}),u(["toHaveReturnedTimes","toReturnTimes"],function(c){let d=l(this),p=d.getMockName(),m=d.mock.results.reduce((b,{type:_})=>_==="throw"?b:++b,0);this.assert(m===c,`expected"${p}"tobesuccessfullycalled${c}times`,`expected"${p}"tonotbesuccessfullycalled${c}times`,`expectednumberofreturns:${c}`,`receivednumberofreturns:${m}`,!1)}),u(["toHaveReturnedWith","toReturnWith"],function(c){let d=l(this),p=d.getMockName(),m=d.mock.results.some(({type:h,value:y})=>h==="return"&&ge(c,y)),b=t.flag(this,"negate"),_=t.getMessage(this,[m,`expected"${p}"toreturnwith:#{exp}atleastonce`,`expected"${p}"tonotreturnwith:#{exp}`,c]);if(m&&b||!m&&!b)throw new r(f(d
`)}},gl=class extends xs{constructor(...e){super("be an HTMLElement or an SVGElement",...e)}},vl=class extends xs{constructor(...e){super("be a Node",...e)}};function Ts(e,t,...r){if(!e||!e.ownerDocument||!e.ownerDocument.defaultView)throw new t(e,...r)}function vR(e,...t){Ts(e,vl,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.Node))throw new vl(e,...t)}function ve(e,...t){Ts(e,gl,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.HTMLElement)&&!(e instanceof r.SVGElement))throw new gl(e,...t)}var _R=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(`
`)}};function wR(e,...t){let r=Cw(`selector{${e}}`,{silent:!0}).stylesheet;if(r.parsingErrors&&r.parsingErrors.length>0){let{reason:n,line:a}=r.parsingErrors[0];throw new _R({css:e,message:`Syntaxerrorparsingexpectedcss:${n}online:${a}`},...t)}return r.rules[0].declarations.filter(n=>n.type==="declaration").reduce((n,{property:a,value:u})=>Object.assign(n,{[a]:u}),{})}function _l(e,t){return typeof t=="string"?t:e.utils.stringify(t)}function je(e,t,r,n,a,u){return[`${t}
`)}function RR(e,t){return t instanceof RegExp?t.test(e):e.includes(String(t))}function Un(e,t){console.warn(`Warning:${e}hasbeendeprecatedandwillberemovedinfutureupdates.`,t)}function Vn(e){return e.replace(/\s+/g," ").trim()}function Ot(e){return e.tagName&&e.tagName.toLowerCase()}function qR({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 ER(e){switch(e.type){case"number":return e.value===""?null:Number(e.value);case"checkbox":return e.checked;default:return e.value}}function js(e){if(e)switch(e.tagName.toLowerCase()){case"input":return ER(e);case"select":return qR(e);default:return e.value}}function CR(e,{wordConnector:t=", ",lastWordConnector:r=" and "}={}){return[e.slice(0,-1).join(t),e[e.length-1]].join(e.length>1?r:"")}function Ms(e,t){if(Array.isArray(e)&&Array.isArray(t))return[...new Set(e)].every(r=>new Set(t).has(r))}function Ro(e,t){return Un("toBeInTheDOM","Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."),e&&ve(e,Ro,this),t&&ve(t,Ro,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(`
`)}}function Ns(e){(e!==null||!this.isNot)&&ve(e,Ns,this);let t=e===null?!1:e.ownerDocument===e.getRootNode({composed:!0}),r=()=>`expecteddocumentnottocontainelement,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(`
`)}}function Is(e){return Un("toBeEmpty","Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."),ve(e,Is,this),{pass:e.innerHTML==="",message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmpty`,"element",""),"","Received:",`${this.utils.printReceived(e.innerHTML)}`].join(`
`)}}}function Hs(e){return ve(e,Hs,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(`
`)}}function DR(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 LR(e,t){let r=[...e.querySelectorAll(`[name="${(0,gR.default)(t)}"]`)];if(r.length!==0)switch(r.length){case 1:return js(r[0]);default:return DR(r)}}function $R(e){return/\[\]$/.test(e)?e.slice(0,-2):e}function FR(e){return Array.from(e.elements).map(t=>t.name).reduce((t,r)=>({...t,[$R(r)]:LR(e,r)}),{})}function Us(e,t){if(ve(e,Us,this),!e.elements)throw new Error("toHaveFormValues must be called on a form or a fieldset");let r=FR(e);return{pass:Object.entries(t).every(([n,a])=>(0,Ss.default)(r[n],a,Ms)),message:()=>{let n=this.isNot?"not to":"to",a=`${this.isNot?".not":""}.toHaveFormValues`,u=Object.keys(r).filter(o=>t.hasOwnProperty(o)).reduce((o,l)=>({...o,[l]:r[l]}),{});return[this.utils.matcherHint(a,"element",""),`Expectedtheelement${n}haveformvalues`,this.utils.diff(t,u)].join(`
`)}}}function HR(e){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n,opacity:a}=t(e);return r!=="none"&&n!=="hidden"&&n!=="collapse"&&a!=="0"&&a!==0}function UR(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 Vs(e,t){return HR(e)&&UR(e,t)&&(!e.parentElement||Vs(e.parentElement,e))}function zs(e){ve(e,zs,this);let t=e.ownerDocument===e.getRootNode({composed:!0}),r=t&&Vs(e);return{pass:r,message:()=>{let n=r?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeVisible`,"element",""),"",`Receivedelement${n}visible${t?"":" (element is not in the document)"}:`,`${this.utils.printReceived(e.cloneNode(!1))}`].join(`
`)}}}function ru(e,t){if(ve(e,ru,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=js(e),n=t!==void 0,a=t,u=r;return t==r&&t!==r&&(a=`${t}(${typeoft})`,u=`${r}(${typeofr})`),{pass:n?(0,Ss.default)(r,t,Ms):!!r,message:()=>{let o=this.isNot?"not to":"to",l=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveValue`,"element",t);return je(this,l,`Expectedtheelement${o}havevalue`,n?a:"(any)","Received",u)}}}function nu(e,t){ve(e,nu,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()currentlydoesnotsupportinput[type="${e.type}"],trywithanothermatcherinstead.`);let n=oq(r,e),a=aq(t),u=a.filter(i=>n.some(s=>i instanceof RegExp?i.test(s):this.equals(s,String(i)))).length,o=u===n.length,l=u===a.length;return{pass:o&&l,message:()=>je(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDisplayValue`,"element",""),`Expectedelement${this.isNot?"not ":""}tohavedisplayvalue`,t,"Received",n)}}function oq(e,t){return e==="select"?Array.from(t).filter(r=>r.selected).map(r=>r.textContent):[t.value]}function aq(e){return e instanceof Array?e:[e]}function ou(e){ve(e,ou,this);let t=()=>e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type),r=()=>au(e.getAttribute("role"))&&["true","false"].includes(e.getAttribute("aria-checked"));if(!t()&&!r())return{pass:!1,message:()=>`onlyinputswithtype="checkbox"ortype="radio"orelementswith${lq()}andavalidaria-checkedattributecanbeusedwith.toBeChecked().Use.toHaveValue()instead`};let n=()=>t()?e.checked:e.getAttribute("aria-checked")==="true";return{pass:n(),message:()=>{let a=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeChecked`,"element",""),"",`Receivedelement${a}checked:`,`${this.utils.printReceived(e.cloneNode(!1))}`].join(`
`)}}}function lq(){return CR(iq().map(e=>`role="${e}"`),{lastWordConnector:" or "})}function iq(){return ga.roles.keys().filter(au)}function au(e){var t;return((t=ga.roles.get(e))==null?void 0:t.props["aria-checked"])!==void 0}function lu(e){ve(e,lu,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 a=e.getAttribute("aria-checked")==="mixed";return t()&&e.indeterminate||a};return{pass:n(),message:()=>{let a=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyChecked`,"element",""),"",`Receivedelement${a}partiallychecked:`,`${this.utils.printReceived(e.cloneNode(!1))}`].join(`
`)}}}function iu(e,t){Un("toHaveDescription","Please use toHaveAccessibleDescription."),ve(e,iu,this);let r=t!==void 0,n=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean),a="";if(n.length>0){let u=e.ownerDocument,o=n.map(l=>u.getElementById(l)).filter(Boolean);a=Vn(o.map(l=>l.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(a):this.equals(a,t):!!a,message:()=>{let u=this.isNot?"not to":"to";return je(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDescription`,"element",""),`Expectedtheelement${u}havedescription`,this.utils.printExpected(t),"Received",this.utils.printReceived(a))}}}function su(e,t){if(Un("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),ve(e,su,this),!e.hasAttribute("aria-invalid")||e.getAttribute("aria-invalid")==="false"){let u=this.isNot?".not":"";return{pass:!1,message:()=>je(this,this.utils.matcherHint(`${u}.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),a="";if(n.length>0){let u=e.ownerDocument,o=n.map(l=>u.getElementById(l)).filter(Boolean);a=Vn(o.map(l=>l.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(a):this.equals(a,t):!!a,message:()=>{let u=this.isNot?"not to":"to";return je(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveErrorMessage`,"element",""),`Expectedtheelement${u}haveerrormessage`,this.utils.printExpected(t),"Received",this.utils.printReceived(a))}}}Ee(bi(),1);Ee(ji(),1);Ee(Ni(),1);Ee(zi(),1);Ee(Wi(),1);function sq(){Qn(ww),Qn(gw),Qn(yw);let e=(n,a)=>{let{assertionCalls:u}=Nr(e);return to({assertionCalls:u+1,soft:!1},e),Xn(n,a)};Object.assign(e,Xn),e.getState=()=>Nr(e),e.setState=n=>to(n,e),e.extend=n=>Xn.extend(e,n),e.soft=(...n)=>{let a=e(...n);return e.setState({soft:!0}),a},e.unreachable=n=>{d_.fail(`expected${n?` "${n}" `:" "}nottobereached`)};function t(n){let a=()=>new Error(`expectednumberofassertionstobe${n},butgot${e.getState().assertionCalls}`);"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(a(),t),e.setState({expectedAssertionsNumber:n,expectedAssertionsNumberErrorGen:a})}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 to({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},e),bn.addMethod(e,"assertions",t),bn.addMethod(e,"hasAssertions",r),e.extend(hs),e}var uu=sq();Object.defineProperty(globalThis,Hn,{value:uu,writable:!0,configurable:!0});var Oo=new Set;function uq(e){return Oo.add(e),()=>void Oo.delete(e)}var cq=e=>{let t=e?Ga(e):Ga();return dq(t)};function dq(e){let t=Cl(e),r=t.mockImplementation.bind(null);return t.mockImplementation=n=>Cl(r(n)),t}function Cl(e){let t=hn(e),r=t.impl;return t.willCall(function(...n){return Oo.forEach(a=>a(e,n)),r==null?void 0:r.apply(this,n)}),e}function fq(){Fn.forEach(e=>e.mockClear())}function pq(){Fn.forEach(e=>e.mockReset())}function mq(){Fn.forEach(e=>e.mockRestore())}var cu={};Ko(cu,{buildQueries:()=>Rt,configure:()=>CE,createEvent:()=>fn,findAllByAltText:()=>pc,findAllByDisplayValue:()=>ic,findAllByLabelText:()=>$u,findAllByPlaceholderText:()=>Yu,findAllByRole:()=>Pc,findAllByTestId:()=>jc,findAllByText:()=>tc,findAllByTitle:()=>vc,findByAltText:()=>mc,findByDisplayValue:()=>sc,findByLabelText:()=>Fu,findByPlaceholderText:()=>Ju,findByRole:()=>Ac,findByTestId:()=>Mc,findByText:()=>rc,findByTitle:()=>_c,fireEvent:()=>Fr,getAllByAltText:()=>dc,getAllByDisplayValue:()=>ac,getAllByLabelText:()=>Hu,getAllByPlaceholderText:()=>Gu,getAllByRole:()=>Ec,getAllByTestId:()=>xc,getAllByText:()=>Zu,getAllByTitl
`).slice(1).find(t=>!t.includes("node_modules/"));return yE(e)}var Cu=3;function ao(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function qa(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function Pu(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(awaitscreen.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 wt(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 vE=()=>{let e;try{var t;e=JSON.parse((t=process)==null||(t=t.env)==null?void 0:t.COLORS)}catch{}return typeof e=="boolean"?e:typeof process<"u"&&process.versions!==void 0&&process.versions.node!==void 0},{DOMCollection:_E}=va.plugins,wE=1,RE=8;function qE(e){return e.nodeType!==RE&&(e.nodeType!==wE||!e.matches(he().defaultIgnore))}function Lr(e,t,r){if(r===void 0&&(r={}),e||(e=qa().body),typeof t!="number"&&(t=typeof process<"u"&&xd.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:a=qE,...u}=r,o=va.format(e,{plugins:[hE(a),_E],printFunctionName:!1,highlight:vE(),...u});return t!==void 0&&e.outerHTML.length>t?o.slice(0,t)+"...":o}var So=function(){let e=gE();console.log(e?Lr(...arguments)+`
`));return n.name="TestingLibraryElementError",n},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function EE(e){try{return kt._disableExpensiveErrorDiagnostics=!0,e()}finally{kt._disableExpensiveErrorDiagnostics=!1}}function CE(e){typeof e=="function"&&(e=e(kt)),kt={...kt,...e}}function he(){return kt}var PE=["button","meter","output","progress","select","textarea","input"];function Au(e){return PE.includes(e.nodeName.toLowerCase())?"":e.nodeType===Cu?e.textContent:Array.from(e.childNodes).map(t=>Au(t)).join("")}function xo(e){let t;return e.tagName.toLowerCase()==="label"?t=Au(e):t=e.value||e.textContent,t}function Ou(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!AE(e))return[];let r=e.ownerDocument.querySelectorAll("label");return Array.from(r).filter(n=>n.control===e)}function AE(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}function Su(e,t,r){let{selector:n="*"}=r===void 0?{}:r,a=t.getAttribute("aria-labelledby"),u=a?a.split(" "):[];return u.length?u.map(o=>{let l=e.querySelector('[id="'+o+'"]');return l?{content:xo(l),formControl:null}:{content:"",formControl:null}}):Array.from(Ou(t)).map(o=>{let l=xo(o),i=Array.from(o.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter(s=>s.matches(n))[0];return{content:l,formControl:i}})}function xu(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 hr(e,t,r,n){if(typeof e!="string")return!1;xu(r);let a=n(e);return typeof r=="string"||typeof r=="number"?a.toLowerCase().includes(r.toString().toLowerCase()):typeof r=="function"?r(a,t):Tu(r,a)}function gt(e,t,r,n){if(typeof e!="string")return!1;xu(r);let a=n(e);return r instanceof Function?r(a,t):r instanceof RegExp?Tu(r,a):a===String(r)}function Ea(e){let{trim:t=!0,collapseWhitespace:r=!0}=e===void 0?{}:e;return n=>{let a=n;return a=t?a.trim():a,a=r?a.replace(/\s+/g," "):a,a}}function Vt(e){let{trim:t,collapseWhitespace:r,normalizer:n}=e;if(!n)return Ea({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 Tu(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 Yr(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===Cu&&!!t.textContent).map(t=>t.textContent).join("")}var OE=SE(We.elementRoles);function ju(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}function zn(e,t){t===void 0&&(t={});let{isSubtreeInaccessible:r=ju}=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 Ca(e){for(let{match:t,roles:r}of OE)if(t(e))return[...r];return[]}function SE(e){function t(o){let{name:l,attributes:i}=o;return""+l+i.map(s=>{let{name:f,value:c,constraints:d=[]}=s,p=d.indexOf("undefined")!==-1,m=d.indexOf("set")!==-1;return typeof c<"u"?"["+f+'="'+c+'"]':p?":not(["+f+"])":m?"["+f+"]:not(["+f+'=""])':"["+f+"]"}).join("")}function r(o){let{attributes:l=[]}=o;return l.length}function n(o,l){let{specificity:i}=o,{specificity:s}=l;return s-i}function a(o){let{attributes:l=[]}=o,i=l.findIndex(f=>f.value&&f.name==="type"&&f.value==="text");i>=0&&(l=[...l.slice(0,i),...l.slice(i+1)]);let s=t({...o,attributes:l});return f=>i>=0&&f.type!=="text"?!1:f.matches(s)}let u=[];for(let[o,l]of e.entries())u=[...u,{match:a(o),roles:Array.from(l),specificity:r(o)}];return u.sor
`),Object.keys(l).length>0&&i.push(l);let s=a+"By"+e;return{queryName:e,queryMethod:s,queryArgs:i,variant:a,warning:o,toString(){o&&console.warn(o);let[f,c]=i;return f=typeof f=="string"?"'"+f+"'":f,c=c?", { "+Object.entries(c).map(d=>{let[p,m]=d;return p+": "+m}).join(", ")+" }":"",s+"("+f+c+")"}}}function Et(e,t,r){return r&&(!t||t.toLowerCase()===e.toLowerCase())}function vn(e,t,r){var n,a;if(t===void 0&&(t="get"),e.matches(he().defaultIgnore))return;let u=(n=e.getAttribute("role"))!=null?n:(a=Ca(e))==null?void 0:a[0];if(u!=="generic"&&Et("Role",r,u))return qt("Role",e,u,{variant:t,name:_a(e,{computedStyleSupportsPseudoElements:he().computedStyleSupportsPseudoElements})});let o=Su(document,e).map(d=>d.content).join(" ");if(Et("LabelText",r,o))return qt("LabelText",e,o,{variant:t});let l=e.getAttribute("placeholder");if(Et("PlaceholderText",r,l))return qt("PlaceholderText",e,l,{variant:t});let i=jl(Yr(e));if(Et("Text",r,i))return qt("Text",e,i,{variant:t});if(Et("DisplayValue",r,e.value))return qt("DisplayValue",e,jl(e.value),{variant:t});let s=e.getAttribute("alt");if(Et("AltText",r,s))return qt("AltText",e,s,{variant:t});let f=e.getAttribute("title");if(Et("Title",r,f))return qt("Title",e,f,{variant:t});let c=e.getAttribute(he().testIdAttribute);if(Et("TestId",r,c))return qt("TestId",e,c,{variant:t})}function Zr(e,t){e.stack=t.stack.replace(t.message,e.message)}function UE(e,t){let{container:r=qa(),timeout:n=he().asyncUtilTimeout,showOriginalStackTrace:a=he().showOriginalStackTrace,stackTraceError:u,interval:o=50,onTimeout:l=s=>(Object.defineProperty(s,"message",{value:he().getElementError(s.message,r).message}),s),mutationObserverOptions:i={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(s,f)=>{let c,d,p,m=!1,b="idle",_=setTimeout(A,n),h=ao();if(h){let{unstable_advanceTimersWrapper:P}=he();for(w();!m;){if(!ao()){let C=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");a||Zr(C,u),f(C);return}if(await P(async()=>{jest.advanceTimersByTime(o)}),m)break;w()}}else{try{wt(r)}catch(C){f(C);return}d=setInterval(q,o);let{MutationObserver:P}=Pu(r);p=new P(q),p.observe(r,i),w()}function y(P,C){m=!0,clearTimeout(_),h||(clearInterval(d),p.disconnect()),P?f(P):s(C)}function q(){if(ao()){let P=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 a||Zr(P,u),f(P)}else return w()}function w(){if(b!=="pending")try{let P=EE(e);typeof(P==null?void 0:P.then)=="function"?(b="pending",P.then(C=>{b="resolved",y(null,C)},C=>{b="rejected",c=C})):y(null,P)}catch(P){c=P}}function A(){let P;c?(P=c,!a&&P.name==="TestingLibraryElementError"&&Zr(P,u)):(P=new Error("Timed out in waitFor."),a||Zr(P,u)),y(l(P),null)}})}function Pa(e,t){let r=new Error("STACK_TRACE_MESSAGE");return he().asyncWrapper(()=>UE(e,{stackTraceError:r,...t}))}function Wn(e,t){return he().getElementError(e,t)}function Gn(e,t){return Wn(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function zt(e,t,r,n){let{exact:a=!0,collapseWhitespace:u,trim:o,normalizer:l}=n===void 0?{}:n,i=a?gt:hr,s=Vt({collapseWhitespace:u,trim:o,normalizer:l});return Array.from(t.querySelectorAll("["+e+"]")).filter(f=>i(f.getAttribute(e),f,r,s))}function Iu(e,t,r,n){let a=zt(e,t,r,n);if(a.length>1)throw Gn("Found multiple elements by ["+e+"="+r+"]",t);return a[0]||null}function ar(e,t){return function(r){for(var n=arguments.l
`,t)}function Aa(e,t){return function(r){for(var n=arguments.length,a=new Array(n>1?n-1:0),u=1;u<n;u++)a[u-1]=arguments[u];let o=e(r,...a);if(!o.length)throw he().getElementError(t(r,...a),r);return o}}function lr(e){return(t,r,n,a)=>Pa(()=>e(t,r,n),{container:t,...a})}var St=(e,t,r)=>function(n){for(var a=arguments.length,u=new Array(a>1?a-1:0),o=1;o<a;o++)u[o-1]=arguments[o];let l=e(n,...u),[{suggest:i=he().throwSuggestions}={}]=u.slice(-1);if(l&&i){let s=vn(l,r);if(s&&!t.endsWith(s.queryName))throw ku(s.toString(),n)}return l},Le=(e,t,r)=>function(n){for(var a=arguments.length,u=new Array(a>1?a-1:0),o=1;o<a;o++)u[o-1]=arguments[o];let l=e(n,...u),[{suggest:i=he().throwSuggestions}={}]=u.slice(-1);if(l.length&&i){let s=[...new Set(l.map(f=>{var c;return(c=vn(f,r))==null?void 0:c.toString()}))];if(s.length===1&&!t.endsWith(vn(l[0],r).queryName))throw ku(s[0],n)}return l};function Rt(e,t,r){let n=St(ar(e,t),e.name,"query"),a=Aa(e,r),u=ar(a,t),o=St(u,e.name,"get"),l=Le(a,e.name.replace("query","get"),"getAll"),i=lr(Le(a,e.name,"findAll")),s=lr(St(u,e.name,"find"));return[n,l,o,i,s]}var VE=Object.freeze({__proto__:null,getElementError:Wn,wrapAllByQueryWithSuggestion:Le,wrapSingleQueryWithSuggestion:St,getMultipleElementsFoundError:Gn,queryAllByAttribute:zt,queryByAttribute:Iu,makeSingleQuery:ar,makeGetAllQuery:Aa,makeFindQuery:lr,buildQueries:Rt});function zE(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:xo(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}var WE=function(e,t,r){let{exact:n=!0,trim:a,collapseWhitespace:u,normalizer:o}=r===void 0?{}:r,l=n?gt:hr,i=Vt({collapseWhitespace:u,trim:a,normalizer:o});return zE(e).filter(s=>{let{node:f,textToMatch:c}=s;return l(c,f,t,i)}).map(s=>{let{node:f}=s;return f})},$r=function(e,t,r){let{selector:n="*",exact:a=!0,collapseWhitespace:u,trim:o,normalizer:l}=r===void 0?{}:r;wt(e);let i=a?gt:hr,s=Vt({collapseWhitespace:u,trim:o,normalizer:l}),f=Array.from(e.querySelectorAll("*")).filter(c=>Ou(c).length||c.hasAttribute("aria-labelledby")).reduce((c,d)=>{let p=Su(e,d,{selector:n});p.filter(b=>!!b.formControl).forEach(b=>{i(b.content,b.formControl,t,s)&&b.formControl&&c.push(b.formControl)});let m=p.filter(b=>!!b.content).map(b=>b.content);return i(m.join(" "),d,t,s)&&c.push(d),m.length>1&&m.forEach((b,_)=>{i(b,d,t,s)&&c.push(d);let h=[...m];h.splice(_,1),h.length>1&&i(h.join(" "),d,t,s)&&c.push(d)}),c},[]).concat(zt("aria-label",e,t,{exact:a,normalizer:s}));return Array.from(new Set(f)).filter(c=>c.matches(n))},Bt=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];let u=$r(e,t,...n);if(!u.length){let o=WE(e,t,...n);if(o.length){let l=o.map(i=>GE(e,i)).filter(i=>!!i);throw l.length?he().getElementError(l.map(i=>"Found a label with the text of: "+t+", however the element associated with this label (<"+i+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+i+" />, you can use aria-label or aria-labelledby instead.").join(`
`),e):he().getElementError("Found a label with the text of: "+t+`,howevernoformcontrolwasfoundassociatedtothatlabel.Makesureyou're using the "for" attribute or "aria-labelledby" attribute correctly.`,e)}else throw he().getElementError("Unable to find a label with the text of: "+t,e)}return u};function GE(e,t){let r=t.getAttribute("for");if(!r)return null;let n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}var Bu=(e,t)=>"Found multiple elements with the text of: "+t,Du=St(ar($r,Bu),$r.name,"query"),Lu=ar(Bt,Bu),$u=lr(Le(Bt,Bt.name,"findAll")),Fu=lr(St(Lu,Bt.name,"find")),Hu=Le(Bt,Bt.name,"getAll"),Uu=St(Lu,Bt.name,"get"),Vu=Le($r,$r.name,"queryAll"),To=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return wt(t[0]),zt("placeholder",...t)},KE=(e,t)=>"Found multiple elements with the placeholder text of: "+t,YE=(e,t)=>"Unable to find an element with the placeholder text of: "+t,zu=Le(To,To.name,"queryAll"),[Wu,Gu,Ku,Yu,Ju]=Rt(To,KE,YE),jo=function(e,t,r){let{selector:n="*",exact:a=!0,collapseWhitespace:u,trim:o,ignore:l=he().defaultIgnore,normalizer:i}=r===void 0?{}:r;wt(e);let s=a?gt:hr,f=Vt({collapseWhitespace:u,trim:o,normalizer:i}),c=[];return typeof e.matches=="function"&&e.matches(n)&&(c=[e]),[...c,...Array.from(e.querySelectorAll(n))].filter(d=>!l||!d.matches(l)).filter(d=>s(Yr(d),d,t,f))},JE=(e,t)=>"Found multiple elements with the text: "+t,XE=function(e,t,r){r===void 0&&(r={});let{collapseWhitespace:n,trim:a,normalizer:u,selector:o}=r,l=Vt({collapseWhitespace:n,trim:a,normalizer:u})(t.toString()),i=l!==t.toString(),s=(o??"*")!=="*";return"Unable to find an element with the text: "+(i?l+" (normalized from '"+t+"')":t)+(s?", which matches selector '"+o+"'":"")+". 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."},Xu=Le(jo,jo.name,"queryAll"),[Qu,Zu,ec,tc,rc]=Rt(jo,JE,XE),Mo=function(e,t,r){let{exact:n=!0,collapseWhitespace:a,trim:u,normalizer:o}=r===void 0?{}:r;wt(e);let l=n?gt:hr,i=Vt({collapseWhitespace:a,trim:u,normalizer:o});return Array.from(e.querySelectorAll("input,textarea,select")).filter(s=>s.tagName==="SELECT"?Array.from(s.options).filter(f=>f.selected).some(f=>l(Yr(f),f,t,i)):l(s.value,s,t,i))},QE=(e,t)=>"Found multiple elements with the display value: "+t+".",ZE=(e,t)=>"Unable to find an element with the display value: "+t+".",nc=Le(Mo,Mo.name,"queryAll"),[oc,ac,lc,ic,sc]=Rt(Mo,QE,ZE),eC=/^(img|input|area|.+-.+)$/i,No=function(e,t,r){return r===void 0&&(r={}),wt(e),zt("alt",e,t,r).filter(n=>eC.test(n.tagName))},tC=(e,t)=>"Found multiple elements with the alt text: "+t,rC=(e,t)=>"Unable to find an element with the alt text: "+t,uc=Le(No,No.name,"queryAll"),[cc,dc,fc,pc,mc]=Rt(No,tC,rC),nC=e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},Io=function(e,t,r){let{exact:n=!0,collapseWhitespace:a,trim:u,normalizer:o}=r===void 0?{}:r;wt(e);let l=n?gt:hr,i=Vt({collapseWhitespace:a,trim:u,normalizer:o});return Array.from(e.querySelectorAll("[title], svg > title")).filter(s=>l(s.getAttribute("title"),s,t,i)||nC(s)&&l(Yr(s),s,t,i))},oC=(e,t)=>"Found multiple elements with the title: "+t+".",aC=(e,t)=>"Unable to find an element with the title: "+t+".",bc=Le(Io,Io.name,"queryAll"),[hc,yc,gc,vc,_c]=Rt(Io,oC,aC),ko=function(e,t,r){let{hidden:n=he().defaultHidden,name:a,description:u,queryFallbacks:o=!1,selected:l,busy:i,checked:s,pressed:f,current:c,level:d,expanded:p,value:{now:m,min:b,max:_,text:h}={}}=r===void 0?{}:r;if(wt(e),l!==void 0){var y;if(((y=We.roles.get(t))==null?void 0:y.props["aria-selected"])===void 0)throw new Error('"aria-selected"isnotsupportedonrole"'+t+'".')}if(i!==void 0){var q;if(((q=We.roles.get(t))==null?void 0:q.props["aria-busy"])===void 0)throw new Error('"aria-busy"isnotsupportedonrole"'+t+'".')}if(s!==void 0){var w;if(((w=We.roles.get(t))==null?void 0:w.props["aria-checked"])===void 0)throw new Error('"aria-checked"isnot
`).trim();let i="";a===void 0?i="":typeof a=="string"?i=' and name "'+a+'"':i=" and name `"+a+"`";let s="";return u===void 0?s="":typeof u=="string"?s=' and description "'+u+'"':s=" and description `"+u+"`",(`
Unabletofindan`+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+i+s+`
`+l).trim()},Rc=Le(ko,ko.name,"queryAll"),[qc,Ec,Cc,Pc,Ac]=Rt(ko,iC,sC),Oa=()=>he().testIdAttribute,Bo=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return wt(t[0]),zt(Oa(),...t)},uC=(e,t)=>"Found multiple elements by: ["+Oa()+'="'+t+'"]',cC=(e,t)=>"Unable to find an element by: ["+Oa()+'="'+t+'"]',Oc=Le(Bo,Bo.name,"queryAll"),[Sc,xc,Tc,jc,Mc]=Rt(Bo,uC,cC),_n=Object.freeze({__proto__:null,queryAllByLabelText:Vu,queryByLabelText:Du,getAllByLabelText:Hu,getByLabelText:Uu,findAllByLabelText:$u,findByLabelText:Fu,queryByPlaceholderText:Wu,queryAllByPlaceholderText:zu,getByPlaceholderText:Ku,getAllByPlaceholderText:Gu,findAllByPlaceholderText:Yu,findByPlaceholderText:Ju,queryByText:Qu,queryAllByText:Xu,getByText:ec,getAllByText:Zu,findAllByText:tc,findByText:rc,queryByDisplayValue:oc,queryAllByDisplayValue:nc,getByDisplayValue:lc,getAllByDisplayValue:ac,findAllByDisplayValue:ic,findByDisplayValue:sc,queryByAltText:cc,queryAllByAltText:uc,getByAltText:fc,getAllByAltText:dc,findAllByAltText:pc,findByAltText:mc,queryByTitle:hc,queryAllByTitle:bc,getByTitle:gc,getAllByTitle:yc,findAllByTitle:vc,findByTitle:_c,queryByRole:qc,queryAllByRole:Rc,getAllByRole:Ec,getByRole:Cc,findAllByRole:Pc,findByRole:Ac,queryByTestId:Sc,queryAllByTestId:Oc,getByTestId:Tc,getAllByTestId:xc,findAllByTestId:jc,findByTestId:Mc});function Do(e,t,r){return t===void 0&&(t=_n),r===void 0&&(r={}),Object.keys(t).reduce((n,a)=>{let u=t[a];return n[a]=u.bind(null,e),n},r)}var Nc=e=>!e||Array.isArray(e)&&!e.length;function Nl(e){if(Nc(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 dC(e,t){let r=new Error("Timed out in waitForElementToBeRemoved.");if(typeof e!="function"){Nl(e);let n=(Array.isArray(e)?e:[e]).map(a=>{let u=a.parentElement;if(u===null)return()=>null;for(;u.parentElement;)u=u.parentElement;return()=>u.contains(a)?a:null});e=()=>n.map(a=>a()).filter(Boolean)}return Nl(e()),Pa(()=>{let n;try{n=e()}catch(a){if(a.name==="TestingLibraryElementError")return;throw a}if(!Nc(n))throw r},t)}var Il={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:{
`)}function mC(e){return oE.default.compressToEncodedURIComponent(pC(e))}function bC(e){return"https://testing-playground.com/#markup="+mC(e)}var hC=(e,t,r)=>Array.isArray(e)?e.forEach(n=>So(n,t,r)):So(e,t,r),yC=function(e){if(e===void 0&&(e=qa().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=bC(e.innerHTML);return console.log(`OpenthisURLinyourbrowser
`+t),t},Bl={debug:hC,logTestingPlaygroundURL:yC},gC=typeof document<"u"&&document.body?Do(document.body,_n,Bl):Object.keys(_n).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),Bl);function pe(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,a])=>e[n]===a):!0}var Lo;(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"})(Lo||(Lo={}));function Ic(e){return pe(e,"button")||pe(e,"input")&&e.type in Lo}function ut(e){var t;if(vC(e)&&e.defaultView)return e.defaultView;if(!((t=e.ownerDocument)===null||t===void 0)&&t.defaultView)return e.ownerDocument.defaultView;throw new Error(`Couldnotdeterminewindowofnode.Nodewas${_C(e)}`)}function vC(e){return e.nodeType===9}function _C(e){return typeof e=="function"?`function${e.name}`:e===null?"null":String(e)}function kc(e,t){return new Promise((r,n)=>{let a=new t;a.onerror=n,a.onabort=n,a.onload=()=>{r(String(a.result))},a.readAsText(e)})}function Sa(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 At(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Bc=class{getAsFile(){return this.file}getAsString(e){typeof this.data=="string"&&e(this.data)}webkitGetAsEntry(){throw new Error("not implemented")}constructor(e,t){At(this,"kind",void 0),At(this,"type",void 0),At(this,"file",null),At(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)}},wC=class extends Array{add(...e){let t=new Bc(e[0],e[1]);return this.push(t),t}clear(){this.splice(0,this.length)}remove(e){this.splice(e,1)}};function en(e,t){let[r,n]=e.split("/"),a=!n||n==="*";return u=>t?u.type===(a?r:e):a?u.type.startsWith(`${r}/`):u.type===r}function RC(e){return new class{getData(t){var r;let n=(r=this.items.find(en(t,!0)))!==null&&r!==void 0?r:this.items.find(en(t,!1)),a="";return n==null||n.getAsString(u=>{a=u}),a}setData(t,r){let n=this.items.findIndex(en(t,!0)),a=new Bc(r,t);n>=0?this.items.splice(n,1,a):this.items.push(a)}clearData(t){if(t){let r=this.items.findIndex(en(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(){At(this,"dropEffect","none"),At(this,"effectAllowed","uninitialized"),At(this,"items",new wC),At(this,"files",Sa(e,[]))}}}function xa(e,t=[]){let r=typeof e.DataTransfer>"u"?RC(e):new e.DataTransfer;return Object.defineProperty(r,"files",{get:()=>Sa(e,t)}),r}function qC(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 Dc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lc(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 a=await this.data[n];if(!a)throw new Error(`${n}isnotoneoftheavailableMIMEtypesonthisitem.`);return a instanceof e.Blob?a:new e.Blob([a],{type:n})}constructor(n){Dc(this,"data",void 0),this.data=n}}(r)}var ir=Symbol("Manage ClipboardSub");function Dl(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 a=n.types.includes("text/plain")?"text/plain":n.types.find(u=>u.startsWith("text/"));a&&(r+=await n.g
}`,...(si=(ii=an.parameters)==null?void 0:ii.docs)==null?void 0:si.source}}};const LO=["Plain"];export{an as Plain,LO as __namedExportsOrder,DO as default};