225 lines
552 KiB
JavaScript
225 lines
552 KiB
JavaScript
|
var Ld=Object.defineProperty;var Fd=(e,t,r)=>t in e?Ld(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Jt=(e,t,r)=>(Fd(e,typeof t!="symbol"?t+"":t,r),r);import{a as Ud}from"./utils-09ff0c0e.js";import{a as Aa,s as Hd,b as qa,f as zd,k as Vd,m as Wd,d as xa,h as Gd,i as Kd,j as Ma}from"./lifecycle-9898a056.js";import{S as Yd,i as Jd,c as Xd,a as Qd,m as Zd,t as ep,b as tp,d as rp}from"./index-d94d5794.js";import{H as np}from"./Header-4f2aad16.js";import"./Button-5254db0b.js";const{addons:op}=__STORYBOOK_MODULE_PREVIEW_API__,{once:ap,logger:ip}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_REMOUNT:ja,STORY_RENDER_PHASE_CHANGED:lp,SET_CURRENT_STORY:sp,IGNORED_EXCEPTION:up}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Ze}=__STORYBOOK_MODULE_GLOBAL__;var cp=Object.create,ml=Object.defineProperty,dp=Object.getOwnPropertyDescriptor,yl=Object.getOwnPropertyNames,pp=Object.getPrototypeOf,fp=Object.prototype.hasOwnProperty,mp=(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')}),He=(e,t)=>function(){return t||(0,e[yl(e)[0]])((t={exports:{}}).exports,t),t.exports},yp=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of yl(t))!fp.call(e,a)&&a!==r&&ml(e,a,{get:()=>t[a],enumerable:!(o=dp(t,a))||o.enumerable});return e},kt=(e,t,r)=>(r=e!=null?cp(pp(e)):{},yp(t||!e||!e.__esModule?ml(r,"default",{value:e,enumerable:!0}):r,e)),hp=He({"../../node_modules/pretty-format/node_modules/ansi-styles/index.js"(e,t){var r=(c=0)=>n=>`\x1B[${38+c};5;${n}m`,o=(c=0)=>(n,i,l)=>`\x1B[${38+c};2;${n};${i};${l}m`;function a(){let c=new Map,n={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]}};n.color.gray=n.color.blackBright,n.bgColor.bgGray=n.bgColor.bgBlackBright,n.color.grey=n.color.blackBright,n.bgColor.bgGrey=n.bgColor.bgBlackBright;for(let[i,l]of Object.entries(n)){for(let[s,u]of Object.entries(l))n[s]={open:`\x1B[${u[0]}m`,close:`\x1B[${u[1]}m`},l[s]=n[s],c.set(u[0],u[1]);Object.defineProperty(n,i,{value:l,enumerable:!1})}return Object.defineProperty(n,"codes",{value:c,enumerable:!1}),n.color.close="\x1B[39m",n.bgColor.close="\x1B[49m",n.color.ansi256=r(),n.color.ansi16m=o(),n.bgColor.ansi256=r(10),n.bgColor.ansi16m=o(10),Object.defineProperties(n,{rgbToAnsi256:{value:(i,l,s)=>i===l&&l===s?i<8?16:i>248?231:Math.round((i-8)/247*24)+232:16+36*Math.round(i/255*5)+6*Math.round(l/255*5)+Math.round(s/255*5),enumerable:!1},hexToRgb:{value:i=>{let l=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(i.toString(16));if(!l)return[0,0,0];let{colorString:s}=l.groups;s.length===3&&(s=s.split("").map(p=>p+p).join(""));let u=Number.parseInt(s,16);return[u>>16&255,u>>8&255,u&255]},enumerable:!1},hexToAnsi256:{value:i=>n.rgbToAnsi256(...n.hexToRgb(i)),enumerable:!1}}),n}Object.defineProperty(t,"exports",{enumerable:!0,get:a})}}),pn=He({"../../node_modules/pretty-format/build/collections.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.printIteratorEntries=r,e.printIteratorValues=o,e.printListItems=a,e.printObjectProperties=c;var t=(n,i)=>{let l=Object.keys(n),s=i!==null?l.sort(i):l;return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(n).forEach(u=>{Object.getOwnPropertyDescriptor(n,u).enumerable&&s.push(u)}),s};function r(n,i,l,s,u,p,d=": "){let f="",m=0,
|
|||
|
`)!==-1&&(E=p.spacingOuter+g+E+p.spacingOuter+d),E=`{${E}}`),`${p.spacingInner+d+h.prop.open+v+h.prop.close}=${h.value.open}${E}${h.value.close}`}).join("")};e.printProps=o;var a=(s,u,p,d,f,m)=>s.map(y=>u.spacingOuter+p+(typeof y=="string"?c(y,u):m(y,u,p,d,f))).join("");e.printChildren=a;var c=(s,u)=>{let p=u.colors.content;return p.open+(0,t.default)(s)+p.close};e.printText=c;var n=(s,u)=>{let p=u.colors.comment;return`${p.open}<!--${(0,t.default)(s)}-->${p.close}`};e.printComment=n;var i=(s,u,p,d,f)=>{let m=d.colors.tag;return`${m.open}<${s}${u&&m.close+u+d.spacingOuter+f+m.open}${p?`>${m.close}${p}${d.spacingOuter}${f}${m.open}</${s}`:`${u&&!d.min?"":" "}/`}>${m.close}`};e.printElement=i;var l=(s,u)=>{let p=u.colors.tag;return`${p.open}<${s}${p.close} …${p.open} />${p.close}`};e.printElementAsLeaf=l}}),_p=He({"../../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=Io(),r=1,o=3,a=8,c=11,n=/^((HTML|SVG)\w*)?Element$/,i=g=>{try{return typeof g.hasAttribute=="function"&&g.hasAttribute("is")}catch{return!1}},l=g=>{let h=g.constructor.name,{nodeType:v,tagName:S}=g,E=typeof S=="string"&&S.includes("-")||i(g);return v===r&&(n.test(h)||E)||v===o&&h==="Text"||v===a&&h==="Comment"||v===c&&h==="DocumentFragment"},s=g=>{var h;return((h=g==null?void 0:g.constructor)==null?void 0:h.name)&&l(g)};e.test=s;function u(g){return g.nodeType===o}function p(g){return g.nodeType===a}function d(g){return g.nodeType===c}var f=(g,h,v,S,E,C)=>{if(u(g))return(0,t.printText)(g.data,h);if(p(g))return(0,t.printComment)(g.data,h);let A=d(g)?"DocumentFragment":g.tagName.toLowerCase();return++S>h.maxDepth?(0,t.printElementAsLeaf)(A,h):(0,t.printElement)(A,(0,t.printProps)(d(g)?[]:Array.from(g.attributes,R=>R.name).sort(),d(g)?{}:Array.from(g.attributes).reduce((R,_)=>(R[_.name]=_.value,R),{}),h,v+h.indent,S,E,C),(0,t.printChildren)(Array.prototype.slice.call(g.childNodes||g.children),h,v+h.indent,S,E,C),h,v)};e.serialize=f;var m={serialize:f,test:s},y=m;e.default=y}}),Ep=He({"../../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=pn(),r="@@__IMMUTABLE_ITERABLE__@@",o="@@__IMMUTABLE_LIST__@@",a="@@__IMMUTABLE_KEYED__@@",c="@@__IMMUTABLE_MAP__@@",n="@@__IMMUTABLE_ORDERED__@@",i="@@__IMMUTABLE_RECORD__@@",l="@@__IMMUTABLE_SEQ__@@",s="@@__IMMUTABLE_SET__@@",u="@@__IMMUTABLE_STACK__@@",p=_=>`Immutable.${_}`,d=_=>`[${_}]`,f=" ",m="…",y=(_,O,x,I,H,V,L)=>++I>O.maxDepth?d(p(L)):`${p(L)+f}{${(0,t.printIteratorEntries)(_.entries(),O,x,I,H,V)}}`;function g(_){let O=0;return{next(){if(O<_._keys.length){let x=_._keys[O++];return{done:!1,value:[x,_.get(x)]}}return{done:!0,value:void 0}}}}var h=(_,O,x,I,H,V)=>{let L=p(_._name||"Record");return++I>O.maxDepth?d(L):`${L+f}{${(0,t.printIteratorEntries)(g(_),O,x,I,H,V)}}`},v=(_,O,x,I,H,V)=>{let L=p("Seq");return++I>O.maxDepth?d(L):_[a]?`${L+f}{${_._iter||_._object?(0,t.printIteratorEntries)(_.entries(),O,x,I,H,V):m}}`:`${L+f}[${_._iter||_._array||_._collection||_._iterable?(0,t.printIteratorValues)(_.values(),O,x,I,H,V):m}]`},S=(_,O,x,I,H,V,L)=>++I>O.maxDepth?d(p(L)):`${p(L)+f}[${(0,t.printIteratorValues)(_.values(),O,x,I,H,V)}]`,E=(_,O,x,I,H,V)=>_[c]?y(_,O,x,I,H,V,_[n]?"OrderedMap":"Map"):_[o]?S(_,O,x,I,H,V,"List"):_[s]?S(_,O,x,I,H,V,_[n]?"OrderedSet":"Set"):_[u]?S(_,O,x,I,H,V,"Stack"):_[l]?v(_,O,x,I,H,V):h(_,O,x,I,H,V);e.serialize=E;var C=_=>_&&(_[r]===!0||_[i]===!0);e.test=C;var A={serialize:E,test:C},R=A;e.default=R}}),wp=He({"../../node_modules/pretty-format/node_modules/react-is/cjs/react-is.development.js"(e){(function(){var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),n=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("r
|
|||
|
${pe}`)},{edgeSpacing:B.spacingOuter,min:B.min,spacing:B.spacingInner},B.colors)}catch(se){throw new v(se.message,se.stack)}if(typeof ie!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof ie}".`);return ie}function V(b,N){for(let B=0;B<b.length;B++)try{if(b[B].test(N))return b[B]}catch(Y){throw new v(Y.message,Y.stack)}return null}function L(b,N,B,Y,W,k){let ie=V(N.plugins,b);if(ie!==null)return H(ie,b,N,B,Y,W);let se=O(b,N.printFunctionName,N.escapeRegex,N.escapeString);return se!==null?se:x(b,N,B,Y,W,k)}var re={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},G=Object.keys(re),oe=b=>b,ae=oe({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:re});e.DEFAULT_OPTIONS=ae;function ue(b){if(Object.keys(b).forEach(N=>{if(!Object.prototype.hasOwnProperty.call(ae,N))throw new Error(`pretty-format: Unknown option "${N}".`)}),b.min&&b.indent!==void 0&&b.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(b.theme!==void 0){if(b.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof b.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof b.theme}".`)}}var Z=b=>G.reduce((N,B)=>{let Y=b.theme&&b.theme[B]!==void 0?b.theme[B]:re[B],W=Y&&t.default[Y];if(W&&typeof W.close=="string"&&typeof W.open=="string")N[B]=W;else throw new Error(`pretty-format: Option "theme" has a key "${B}" whose value "${Y}" is undefined in ansi-styles.`);return N},Object.create(null)),q=()=>G.reduce((b,N)=>(b[N]={close:"",open:""},b),Object.create(null)),M=b=>(b==null?void 0:b.printFunctionName)??ae.printFunctionName,F=b=>(b==null?void 0:b.escapeRegex)??ae.escapeRegex,z=b=>(b==null?void 0:b.escapeString)??ae.escapeString,X=b=>({callToJSON:(b==null?void 0:b.callToJSON)??ae.callToJSON,colors:b!=null&&b.highlight?Z(b):q(),compareKeys:typeof(b==null?void 0:b.compareKeys)=="function"||(b==null?void 0:b.compareKeys)===null?b.compareKeys:ae.compareKeys,escapeRegex:F(b),escapeString:z(b),indent:b!=null&&b.min?"":$((b==null?void 0:b.indent)??ae.indent),maxDepth:(b==null?void 0:b.maxDepth)??ae.maxDepth,maxWidth:(b==null?void 0:b.maxWidth)??ae.maxWidth,min:(b==null?void 0:b.min)??ae.min,plugins:(b==null?void 0:b.plugins)??ae.plugins,printBasicPrototype:(b==null?void 0:b.printBasicPrototype)??!0,printFunctionName:M(b),spacingInner:b!=null&&b.min?" ":`
|
|||
|
`,spacingOuter:b!=null&&b.min?"":`
|
|||
|
`});function $(b){return new Array(b+1).join(" ")}function D(b,N){if(N&&(ue(N),N.plugins)){let Y=V(N.plugins,b);if(Y!==null)return H(Y,b,X(N),"",0,[])}let B=O(b,M(N),F(N),z(N));return B!==null?B:x(b,X(N),"",0,[])}var U={AsymmetricMatcher:o.default,DOMCollection:a.default,DOMElement:c.default,Immutable:n.default,ReactElement:i.default,ReactTestComponent:l.default};e.plugins=U;var ee=D;e.default=ee}}),hl=He({"../../node_modules/diff-sequences/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=f;var t="diff-sequences",r=0,o=(m,y,g,h,v)=>{let S=0;for(;m<y&&g<h&&v(m,g);)m+=1,g+=1,S+=1;return S},a=(m,y,g,h,v)=>{let S=0;for(;m<=y&&g<=h&&v(y,h);)y-=1,h-=1,S+=1;return S},c=(m,y,g,h,v,S,E)=>{let C=0,A=-m,R=S[C],_=R;S[C]+=o(R+1,y,h+R-A+1,g,v);let O=m<E?m:E;for(C+=1,A+=2;C<=O;C+=1,A+=2){if(C!==m&&_<S[C])R=S[C];else if(R=_+1,y<=R)return C-1;_=S[C],S[C]=R+o(R+1,y,h+R-A+1,g,v)}return E},n=(m,y,g,h,v,S,E)=>{let C=0,A=m,R=S[C],_=R;S[C]-=a(y,R-1,g,h+R-A-1,v);let O=m<E?m:E;for(C+=1,A-=2;C<=O;C+=1,A-=2){if(C!==m&&S[C]<_)R=S[C];else if(R=_-1,R<y)return C-1;_=S[C],S[C]=R-a(y,R-1,g,h+R-A-1,v)}return E},i=(m,y,g,h,v,S,E,C,A,R,_)=>{let O=h-y,x=g-y,I=v-h-x,H=-I-(m-1),V=-I+(m-1),L=r,re=m<C?m:C;for(let G=0,oe=-m;G<=re;G+=1,oe+=2){let ae=G===0||G!==m&&L<E[G],ue=ae?E[G]:L,Z=ae?ue:ue+1,q=O+Z-oe,M=o(Z+1,g,q+1,v,S),F=Z+M;if(L=E[G],E[G]=F,H<=oe&&oe<=V){let z=(m-1-(oe+I))/2;if(z<=R&&A[z]-1<=F){let X=O+ue-(ae?oe+1:oe-1),$=a(y,ue,h,X,S),D=ue-$,U=X-$,ee=D+1,b=U+1;_.nChangePreceding=m-1,m-1===ee+b-y-h?(_.aEndPreceding=y,_.bEndPreceding=h):(_.aEndPreceding=ee,_.bEndPreceding=b),_.nCommonPreceding=$,$!==0&&(_.aCommonPreceding=ee,_.bCommonPreceding=b),_.nCommonFollowing=M,M!==0&&(_.aCommonFollowing=Z+1,_.bCommonFollowing=q+1);let N=F+1,B=q+M+1;return _.nChangeFollowing=m-1,m-1===g+v-N-B?(_.aStartFollowing=g,_.bStartFollowing=v):(_.aStartFollowing=N,_.bStartFollowing=B),!0}}}return!1},l=(m,y,g,h,v,S,E,C,A,R,_)=>{let O=v-g,x=g-y,I=v-h-x,H=I-m,V=I+m,L=r,re=m<R?m:R;for(let G=0,oe=m;G<=re;G+=1,oe-=2){let ae=G===0||G!==m&&A[G]<L,ue=ae?A[G]:L,Z=ae?ue:ue-1,q=O+Z-oe,M=a(y,Z-1,h,q-1,S),F=Z-M;if(L=A[G],A[G]=F,H<=oe&&oe<=V){let z=(m+(oe-I))/2;if(z<=C&&F-1<=E[z]){let X=q-M;if(_.nChangePreceding=m,m===F+X-y-h?(_.aEndPreceding=y,_.bEndPreceding=h):(_.aEndPreceding=F,_.bEndPreceding=X),_.nCommonPreceding=M,M!==0&&(_.aCommonPreceding=F,_.bCommonPreceding=X),_.nChangeFollowing=m-1,m===1)_.nCommonFollowing=0,_.aStartFollowing=g,_.bStartFollowing=v;else{let $=O+ue-(ae?oe-1:oe+1),D=o(ue,g,$,v,S);_.nCommonFollowing=D,D!==0&&(_.aCommonFollowing=ue,_.bCommonFollowing=$);let U=ue+D,ee=$+D;m-1===g+v-U-ee?(_.aStartFollowing=g,_.bStartFollowing=v):(_.aStartFollowing=U,_.bStartFollowing=ee)}return!0}}}return!1},s=(m,y,g,h,v,S,E,C,A)=>{let R=h-y,_=v-g,O=g-y,x=v-h,I=x-O,H=O,V=O;if(E[0]=y-1,C[0]=g,I%2===0){let L=(m||I)/2,re=(O+x)/2;for(let G=1;G<=re;G+=1)if(H=c(G,g,v,R,S,E,H),G<L)V=n(G,y,h,_,S,C,V);else if(l(G,y,g,h,v,S,E,H,C,V,A))return}else{let L=((m||I)+1)/2,re=(O+x+1)/2,G=1;for(H=c(G,g,v,R,S,E,H),G+=1;G<=re;G+=1)if(V=n(G-1,y,h,_,S,C,V),G<L)H=c(G,g,v,R,S,E,H);else if(i(G,y,g,h,v,S,E,H,C,V,A))return}throw new Error(`${t}: no overlap aStart=${y} aEnd=${g} bStart=${h} bEnd=${v}`)},u=(m,y,g,h,v,S,E,C,A,R)=>{if(v-h<g-y){if(S=!S,S&&E.length===1){let{foundSubsequence:z,isCommon:X}=E[0];E[1]={foundSubsequence:($,D,U)=>{z($,U,D)},isCommon:($,D)=>X(D,$)}}let M=y,F=g;y=h,g=v,h=M,v=F}let{foundSubsequence:_,isCommon:O}=E[S?1:0];s(m,y,g,h,v,O,C,A,R);let{nChangePreceding:x,aEndPreceding:I,bEndPreceding:H,nCommonPreceding:V,aCommonPreceding:L,bCommonPreceding:re,nCommonFollowing:G,aCommonFollowing:oe,bCommonFollowing:ae,nChangeFollowing:ue,aStartFollowing:Z,bStartFollowing:q}=R;y<I&&h<H&&u(x,y,I,h,H,S,E,C,A,R),V!==0&&_(V,L,re),G!==0&&_(G,oe,ae),Z<g&&q<v&&u(ue,Z,g,q,v,S,E,C,A,R)},p=(m,y)=>{if(typeof y!="number")throw new TypeError(`${t}: ${m} typeof ${typeof y} is not a number`);if(!Number.isSafeInteger(y))throw new RangeError(`${t}: ${m} value ${y} is not a safe integer`);if(y<0)throw new RangeError(`${t}: ${m} value ${y} is a negative integer`)},d=(m,y)=>{let g=typeof y;if(g!==
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}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"]},p={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},d="…";function f(w,T){var j=u[p[T]]||u[T];return j?"\x1B[".concat(j[0],"m").concat(String(w),"\x1B[").concat(j[1],"m"):String(w)}function m(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=w.showHidden,j=T===void 0?!1:T,J=w.depth,ne=J===void 0?2:J,le=w.colors,ce=le===void 0?!1:le,de=w.customInspect,me=de===void 0?!0:de,te=w.showProxy,ve=te===void 0?!1:te,Re=w.maxArrayLength,Fe=Re===void 0?1/0:Re,Me=w.breakLength,je=Me===void 0?1/0:Me,De=w.seen,Mt=De===void 0?[]:De,dt=w.truncate,Kt=dt===void 0?1/0:dt,St=w.stylize,jt=St===void 0?String:St,ut={showHidden:!!j,depth:Number(ne),colors:!!ce,customInspect:!!me,showProxy:!!ve,maxArrayLength:Number(Fe),breakLength:Number(je),truncate:Number(Kt),seen:Mt,stylize:jt};return ut.colors&&(ut.stylize=f),ut}function y(w,T){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:d;w=String(w);var J=j.length,ne=w.length;return J>T&&ne>J?j:ne>T&&ne>J?"".concat(w.slice(0,T-J)).concat(j):w}function g(w,T,j){var J=arguments.length>3&&arguments[3]!==void 0?arguments[3]:", ";j=j||T.inspect;var ne=w.length;if(ne===0)return"";for(var le=T.truncate,ce="",de="",me="",te=0;te<ne;te+=1){var ve=te+1===w.length,Re=te+2===w.length;me="".concat(d,"(").concat(w.length-te,")");var Fe=w[te];T.truncate=le-ce.length-(ve?0:J.length);var Me=de||j(Fe,T)+(ve?"":J),je=ce.length+Me.length,De=je+me.length;if(ve&&je>le&&ce.length+me.length<=le||!ve&&!Re&&De>le||(de=ve?"":j(w[te+1],T)+(Re?"":J),!ve&&Re&&De>le&&je+de.length>le))break;if(ce+=Me,!ve&&!Re&&je+de.length>=le){me="".concat(d,"(").concat(w.length-te-1,")");break}me=""}return"".concat(ce).concat(me)}function h(w){return w.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?w:JSON.stringify(w).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function v(w,T){var j=a(w,2),J=j[0],ne=j[1];return T.truncate-=2,typeof J=="string"?J=h(J):typeof J!="number"&&(J="[".concat(T.inspect(J,T),"]")),T.truncate-=J.length,ne=T.inspect(ne,T),"".concat(J,": ").concat(ne)}function S(w,T){var j=Object.keys(w).slice(w.length);if(!w.length&&!j.length)return"[]";T.truncate-=4;var J=g(w,T);T.truncate-=J.length;var ne="";return j.length&&(ne=g(j.map(function(le){return[le,w[le]]}),T,v)),"[ ".concat(J).concat(ne?", ".concat(ne):""," ]")}var E=Function.prototype.toString,C=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/,A=512;function R(w){if(typeof w!="function")return null;var T="";if(typeof Function.prototype.name>"u"&&typeof w.name>"u"){var j=E.call(w);if(j.indexOf("(")>A)return T;var J=j.match(C);J&&(T=J[1])}else T=w.name;return T}var _=R,O=function(w){return typeof Buffer=="function"&&w instanceof Buffer?"Buffer":w[Symbol.toStringTag]?w[Symbol.toStringTag]:_(w.constructor)};function x(w,T){var j=O(w);T.truncate-=j.length+4;var J=Object.keys(w).slice(w.length);if(!w.length&&!J.length)return"".concat(j,"[]");for(var ne="",le=0;le<w.length;le++){var ce="".concat(T.stylize(y(w[le],T.truncate),"number")).concat(le===w.length-1?"":", ");if(T.truncate-=ce.length,w[le]!==w.length&&T.truncate<=3){ne+="".concat(d,"(").concat(w.length-w[le]+1,")");break}ne+=ce}var de="";return J.length&&(de=g(J.map(function(me){return[me,w[me]]}),T,v)),"".concat(j,"[ ").concat(ne).concat(de?", ".concat(de):""," ]")}function I(w,T){var j=w.toJSON();if(j===null)return"Invalid Date";var J=j.split("T"),ne=J[0];return T.stylize("".concat(ne,"T").concat(y(J[
|
|||
|
`)}function Ke(w,T){var j=w.getAttributeNames(),J=w.tagName.toLowerCase(),ne=T.stylize("<".concat(J),"special"),le=T.stylize(">","special"),ce=T.stylize("</".concat(J,">"),"special");T.truncate-=J.length*2+5;var de="";j.length>0&&(de+=" ",de+=g(j.map(function(ve){return[ve,w.getAttribute(ve)]}),T,lt," ")),T.truncate-=de.length;var me=T.truncate,te=ze(w.children,T);return te&&te.length>me&&(te="".concat(d,"(").concat(w.children.length,")")),"".concat(ne).concat(de).concat(le).concat(te).concat(ce)}var st=typeof Symbol=="function"&&typeof Symbol.for=="function",$e=st?Symbol.for("chai/inspect"):"@@chai/inspect",Oe=!1;try{var Ye=mp("util");Oe=Ye.inspect?Ye.inspect.custom:!1}catch{Oe=!1}function Pe(){this.key="chai/loupe__"+Math.random()+Date.now()}Pe.prototype={get:function(w){return w[this.key]},has:function(w){return this.key in w},set:function(w,T){Object.isExtensible(w)&&Object.defineProperty(w,this.key,{value:T,configurable:!0})}};var Ae=new(typeof WeakMap=="function"?WeakMap:Pe),xe={},Je={undefined:function(w,T){return T.stylize("undefined","undefined")},null:function(w,T){return T.stylize(null,"null")},boolean:function(w,T){return T.stylize(w,"boolean")},Boolean:function(w,T){return T.stylize(w,"boolean")},number:oe,Number:oe,bigint:ae,BigInt:ae,string:D,String:D,function:H,Function:H,symbol:U,Symbol:U,Array:S,Date:I,Map:re,Set:q,RegExp:ue,Promise:W,WeakSet:function(w,T){return T.stylize("WeakSet{…}","special")},WeakMap:function(w,T){return T.stylize("WeakMap{…}","special")},Arguments:pe,Int8Array:x,Uint8Array:x,Uint8ClampedArray:x,Int16Array:x,Uint16Array:x,Int32Array:x,Uint32Array:x,Float32Array:x,Float64Array:x,Generator:function(){return""},DataView:function(){return""},ArrayBuffer:function(){return""},Error:it,HTMLCollection:ze,NodeList:ze},xt=function(w,T,j){return $e in w&&typeof w[$e]=="function"?w[$e](T):Oe&&Oe in w&&typeof w[Oe]=="function"?w[Oe](T.depth,T):"inspect"in w&&typeof w.inspect=="function"?w.inspect(T.depth,T):"constructor"in w&&Ae.has(w.constructor)?Ae.get(w.constructor)(w,T):xe[j]?xe[j](w,T):""},ct=Object.prototype.toString;function Be(w,T){T=m(T),T.inspect=Be;var j=T,J=j.customInspect,ne=w===null?"null":o(w);if(ne==="object"&&(ne=ct.call(w).slice(8,-1)),Je[ne])return Je[ne](w,T);if(J&&w){var le=xt(w,T,ne);if(le)return typeof le=="string"?le:Be(le,T)}var ce=w?Object.getPrototypeOf(w):!1;return ce===Object.prototype||ce===null?k(w,T):w&&typeof HTMLElement=="function"&&w instanceof HTMLElement?Ke(w,T):"constructor"in w?w.constructor!==Object?se(w,T):k(w,T):w===Object(w)?k(w,T):T.stylize(String(w),ne)}function K(w,T){return Ae.has(w)?!1:(Ae.set(w,T),!0)}function Q(w,T){return w in xe?!1:(xe[w]=T,!0)}var ye=$e;r.custom=ye,r.default=Be,r.inspect=Be,r.registerConstructor=K,r.registerStringTag=Q,Object.defineProperty(r,"__esModule",{value:!0})})}}),ft=kt(No(),1),Ia=kt(hl(),1),Pp=Symbol("vitest:SAFE_COLORS"),Rp={bold:["\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"],dim:["\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"],italic:["\x1B[3m","\x1B[23m"],underline:["\x1B[4m","\x1B[24m"],inverse:["\x1B[7m","\x1B[27m"],hidden:["\x1B[8m","\x1B[28m"],strikethrough:["\x1B[9m","\x1B[29m"],black:["\x1B[30m","\x1B[39m"],red:["\x1B[31m","\x1B[39m"],green:["\x1B[32m","\x1B[39m"],yellow:["\x1B[33m","\x1B[39m"],blue:["\x1B[34m","\x1B[39m"],magenta:["\x1B[35m","\x1B[39m"],cyan:["\x1B[36m","\x1B[39m"],white:["\x1B[37m","\x1B[39m"],gray:["\x1B[90m","\x1B[39m"],bgBlack:["\x1B[40m","\x1B[49m"],bgRed:["\x1B[41m","\x1B[49m"],bgGreen:["\x1B[42m","\x1B[49m"],bgYellow:["\x1B[43m","\x1B[49m"],bgBlue:["\x1B[44m","\x1B[49m"],bgMagenta:["\x1B[45m","\x1B[49m"],bgCyan:["\x1B[46m","\x1B[49m"],bgWhite:["\x1B[47m","\x1B[49m"]},Tp=Object.entries(Rp);function $o(e){return String(e)}$o.open="";$o.close="";var Ap=Tp.reduce((e,[t])=>(e[t]=$o,e),{isColorSupported:!1});function qp(){return globalThis[Pp]||Ap}function Na(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"str
|
|||
|
`)}function Ip(e,t){return e.map((r,o,a)=>{let c=r[1],n=o===0||o===a.length-1;switch(r[0]){case tr:return vl(c,n,t);case rr:return _l(c,n,t);default:return El(c,n,t)}}).join(`
|
|||
|
`)}var Ba=e=>e,wl=5;function Np(){let e=qp();return{aAnnotation:"Expected",aColor:e.green,aIndicator:"-",bAnnotation:"Received",bColor:e.red,bIndicator:"+",changeColor:e.inverse,changeLineTrailingSpaceColor:Ba,commonColor:e.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Ba,compareKeys:void 0,contextLines:wl,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:e.yellow}}function $p(e){return e&&typeof e=="function"?e:void 0}function Bp(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:wl}function Dr(e={}){return{...Np(),...e,compareKeys:$p(e.compareKeys),contextLines:Bp(e.contextLines)}}function Xt(e){return e.length===1&&e[0].length===0}function Dp(e){let t=0,r=0;return e.forEach(o=>{switch(o[0]){case tr:t+=1;break;case rr:r+=1;break}}),{a:t,b:r}}function kp({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:o,bColor:a,bIndicator:c,includeChangeCounts:n,omitAnnotationLines:i},l){if(i)return"";let s="",u="";if(n){let f=String(l.a),m=String(l.b),y=o.length-e.length,g=" ".repeat(Math.max(0,y)),h=" ".repeat(Math.max(0,-y)),v=m.length-f.length,S=" ".repeat(Math.max(0,v)),E=" ".repeat(Math.max(0,-v));s=`${g} ${r} ${S}${f}`,u=`${h} ${c} ${E}${m}`}let p=`${r} ${e}${s}`,d=`${c} ${o}${u}`;return`${t(p)}
|
|||
|
${a(d)}
|
|||
|
|
|||
|
`}function Sl(e,t){return kp(t,Dp(e))+(t.expand?Ip(e,t):jp(e,t))}function Do(e,t,r){return Sl(Cl(Xt(e)?[]:e,Xt(t)?[]:t),Dr(r))}function Lp(e,t,r,o,a){if(Xt(e)&&Xt(r)&&(e=[],r=[]),Xt(t)&&Xt(o)&&(t=[],o=[]),e.length!==r.length||t.length!==o.length)return Do(e,t,a);let c=Cl(r,o),n=0,i=0;return c.forEach(l=>{switch(l[0]){case tr:l[1]=e[n],n+=1;break;case rr:l[1]=t[i],i+=1;break;default:l[1]=t[i],n+=1,i+=1}}),Sl(c,Dr(a))}function Cl(e,t){let r=e.length,o=t.length,a=(s,u)=>e[s]===t[u],c=[],n=0,i=0,l=(s,u,p)=>{for(;n!==u;n+=1)c.push(new br(tr,e[n]));for(;i!==p;i+=1)c.push(new br(rr,t[i]));for(;s!==0;s-=1,n+=1,i+=1)c.push(new br(Zr,t[i]))};for((Ia.default.default||Ia.default)(r,o,a,l);n!==r;n+=1)c.push(new br(tr,e[n]));for(;i!==o;i+=1)c.push(new br(rr,t[i]));return c}function Xn(e,t){let{commonColor:r}=Dr(t);return r(e)}var{AsymmetricMatcher:Fp,DOMCollection:Up,DOMElement:Hp,Immutable:zp,ReactElement:Vp,ReactTestComponent:Wp}=ft.plugins,Ol=[Wp,Vp,Hp,Up,zp,Fp],Qn={plugins:Ol},Pl={callToJSON:!1,maxDepth:10,plugins:Ol};function Gp(e,t,r){if(Object.is(e,t))return"";let o=Na(e),a=o,c=!1;if(o==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return null;a=e.getExpectedType(),c=a==="string"}if(a!==Na(t)){let{aAnnotation:n,aColor:i,aIndicator:l,bAnnotation:s,bColor:u,bIndicator:p}=Dr(r),d=Zn(Pl,r),f=(0,ft.format)(e,d),m=(0,ft.format)(t,d),y=`${i(`${l} ${n}:`)}
|
|||
|
${f}`,g=`${u(`${p} ${s}:`)}
|
|||
|
${m}`;return`${y}
|
|||
|
|
|||
|
${g}`}if(c)return null;switch(o){case"string":return Do(e.split(`
|
|||
|
`),t.split(`
|
|||
|
`),r);case"boolean":case"number":return Kp(e,t,r);case"map":return Ln(Da(e),Da(t),r);case"set":return Ln(ka(e),ka(t),r);default:return Ln(e,t,r)}}function Kp(e,t,r){let o=(0,ft.format)(e,Qn),a=(0,ft.format)(t,Qn);return o===a?"":Do(o.split(`
|
|||
|
`),a.split(`
|
|||
|
`),r)}function Da(e){return new Map(Array.from(e.entries()).sort())}function ka(e){return new Set(Array.from(e.values()).sort())}function Ln(e,t,r){let o,a=!1;try{let n=Zn(Qn,r);o=La(e,t,n,r)}catch{a=!0}let c=Xn(gl,r);if(o===void 0||o===c){let n=Zn(Pl,r);o=La(e,t,n,r),o!==c&&!a&&(o=`${Xn(xp,r)}
|
|||
|
|
|||
|
${o}`)}return o}function Zn(e,t){let{compareKeys:r}=Dr(t);return{...e,compareKeys:r}}function La(e,t,r,o){let a={...r,indent:0},c=(0,ft.format)(e,a),n=(0,ft.format)(t,a);if(c===n)return Xn(gl,o);{let i=(0,ft.format)(e,r),l=(0,ft.format)(t,r);return Lp(i.split(`
|
|||
|
`),l.split(`
|
|||
|
`),c.split(`
|
|||
|
`),n.split(`
|
|||
|
`),o)}}var eo=kt(No(),1),Yp=kt(bl(),1),{AsymmetricMatcher:Jp,DOMCollection:Xp,DOMElement:Qp,Immutable:Zp,ReactElement:ef,ReactTestComponent:tf}=eo.plugins,Fa=[tf,ef,Qp,Xp,Zp,Jp];function to(e,t=10,{maxLength:r,...o}={}){let a=r??1e4,c;try{c=(0,eo.format)(e,{maxDepth:t,escapeString:!1,plugins:Fa,...o})}catch{c=(0,eo.format)(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Fa,...o})}return c.length>=a&&t>1?to(e,Math.floor(t/2)):c}var rf=/%[sdjifoOcj%]/g;function nf(...e){if(typeof e[0]!="string"){let c=[];for(let n=0;n<e.length;n++)c.push(gr(e[n],{depth:0,colors:!1,compact:3}));return c.join(" ")}let t=e.length,r=1,o=e[0],a=String(o).replace(rf,c=>{if(c==="%%")return"%";if(r>=t)return c;switch(c){case"%s":{let n=e[r++];return typeof n=="bigint"?`${n.toString()}n`:typeof n=="number"&&n===0&&1/n<0?"-0":typeof n=="object"&&n!==null?gr(n,{depth:0,colors:!1,compact:3}):String(n)}case"%d":{let n=e[r++];return typeof n=="bigint"?`${n.toString()}n`:Number(n).toString()}case"%i":{let n=e[r++];return typeof n=="bigint"?`${n.toString()}n`:Number.parseInt(String(n)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return gr(e[r++],{showHidden:!0,showProxy:!0});case"%O":return gr(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(n){let i=n.message;if(i.includes("circular structure")||i.includes("cyclic structures")||i.includes("cyclic object"))return"[Circular]";throw n}default:return c}});for(let c=e[r];r<t;c=e[++r])c===null||typeof c!="object"?a+=` ${c}`:a+=` ${gr(c)}`;return a}function gr(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),(0,Yp.inspect)(e,t)}function of(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function ro(e){return Object.prototype.toString.apply(e).slice(8,-1)}function af(e,t){let r=typeof t=="function"?t:o=>t.add(o);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}function Rl(e){let t=new Set;return of(e)?[]:(af(e,t),Array.from(t))}var Tl={forceWritable:!1};function Ua(e,t=Tl){return no(e,new WeakMap,t)}function no(e,t,r=Tl){let o,a;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(a=Array(o=e.length),t.set(e,a);o--;)a[o]=no(e[o],t);return a}if(Object.prototype.toString.call(e)==="[object Object]"){a=Object.create(Object.getPrototypeOf(e)),t.set(e,a);let c=Rl(e);for(let n of c){let i=Object.getOwnPropertyDescriptor(e,n);if(!i)continue;let l=no(e[n],t);"get"in i?Object.defineProperty(a,n,{...i,get(){return l}}):Object.defineProperty(a,n,{...i,writable:r.forceWritable?!0:i.writable,value:l})}return a}return e}kt(No(),1);kt(hl(),1);kt(bl(),1);var lf="@@__IMMUTABLE_RECORD__@@",sf="@@__IMMUTABLE_ITERABLE__@@";function uf(e){return e&&(e[sf]||e[lf])}var cf=Object.getPrototypeOf({});function Ha(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function Sr(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(uf(e))return Sr(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()} ${nf(e.sample)}`;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((o,a)=>{try{r[a]=Sr(o,t)}catch(c){r[a]=Ha(c)}}),r}else{let r=Object.create(null);t.set(e,r);let o=e;for(;o&&o!==cf;)Object.getOwnPropertyNames(o).forEach(a=>{if(!(a in r))try{r[a]=Sr(e[a],t)}catch(c){delete r[a],r[a]=Ha(c)}}),o=Object.getPrototypeOf(o);return r}}function za(e){return e.replace(/__vite_ssr_import_\d+__\./g,"")}function df(e,t){if(!e||typeof e!="object")return{message:e};if(e.stack&&(e.stackStr=String(e.stack)),e.name&&(e.nameStr=String(e.name)),e.showDiff||e.showDiff===void 0&&e.expected!==void 0&&e.actual!==void 0){let r=Ua(e.actual,{forceWritable:!0}),o=Ua(e.expected,{f
|
|||
|
Inner error message: ${e==null?void 0:e.message}`))}}function Va(e){return ro(e)==="Object"&&typeof e.asymmetricMatch=="function"}function Wa(e,t){let r=ro(e),o=ro(t);return r===o&&r==="Object"}function Al(e,t,r=new WeakSet,o=new WeakSet){return Wa(e,t)?r.has(e)||o.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),o.add(t),Rl(t).forEach(a=>{let c=t[a],n=e[a];if(Va(c))c.asymmetricMatch(n)&&(e[a]=c);else if(Va(n))n.asymmetricMatch(c)&&(t[a]=n);else if(Wa(n,c)){let i=Al(n,c,r,o);e[a]=i.replacedActual,t[a]=i.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}var pf=(e=>(e.DONE="done",e.ERROR="error",e.ACTIVE="active",e.WAITING="waiting",e))(pf||{}),pt={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"},Ga={start:!1,back:!1,goto:!1,next:!1,end:!1},Ka=new Error("This function ran after the play function completed. Did you forget to `await` it?"),Ya=e=>Object.prototype.toString.call(e)==="[object Object]",ff=e=>Object.prototype.toString.call(e)==="[object Module]",mf=e=>{if(!Ya(e)&&!ff(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!Ya(t)},yf=e=>{try{return new e.constructor}catch{return{}}},Fn=()=>({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}),Ja=(e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(a=>a.retain);if(!r.length)return;let o=new Map(Array.from(e.callRefsByResult.entries()).filter(([,a])=>a.retain));return{cursor:r.length,calls:r,callRefsByResult:o}},hf=class{constructor(){this.initialized=!1,this.channel=op.getChannel(),this.state=Ze.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{};let e=({storyId:n,isPlaying:i=!0,isDebugging:l=!1})=>{let s=this.getState(n);this.setState(n,{...Fn(),...Ja(s,l),shadowCalls:l?s.shadowCalls:[],chainedCallIds:l?s.chainedCallIds:new Set,playUntil:l?s.playUntil:void 0,isPlaying:i,isDebugging:l}),this.sync(n)};this.channel.on(ja,e),this.channel.on(lp,({storyId:n,newPhase:i})=>{let{isDebugging:l}=this.getState(n);this.setState(n,{renderPhase:i}),i==="preparing"&&l&&e({storyId:n}),i==="playing"&&e({storyId:n,isDebugging:l}),i==="played"&&this.setState(n,{isLocked:!1,isPlaying:!1,isDebugging:!1}),i==="errored"&&this.setState(n,{isLocked:!1,isPlaying:!1})}),this.channel.on(sp,()=>{this.initialized?this.cleanup():this.initialized=!0});let t=({storyId:n,playUntil:i})=>{this.getState(n).isDebugging||this.setState(n,({calls:s})=>({calls:[],shadowCalls:s.map(u=>({...u,status:"waiting"})),isDebugging:!0}));let l=this.getLog(n);this.setState(n,({shadowCalls:s})=>{var p;if(i||!l.length)return{playUntil:i};let u=s.findIndex(d=>d.id===l[0].callId);return{playUntil:(p=s.slice(0,u).filter(d=>d.interceptable&&!d.ancestors.length).slice(-1)[0])==null?void 0:p.id}}),this.channel.emit(ja,{storyId:n,isDebugging:!0})},r=({storyId:n})=>{var s;let i=this.getLog(n).filter(u=>!u.ancestors.length),l=i.reduceRight((u,p,d)=>u>=0||p.status==="waiting"?u:d,-1);t({storyId:n,playUntil:(s=i[l-1])==null?void 0:s.callId})},o=({storyId:n,callId:i})=>{var f;let{calls:l,shadowCalls:s,resolvers:u}=this.getState(n),p=l.find(({id:m})=>m===i),d=s.find(({id:m})=>m===i);if(!p&&d&&Object.values(u).length>0){let m=(f=this.getLog(n).find(y=>y.status==="waiting"))==null?void 0:f.callId;d.id!==m&&this.setState(n,{playUntil:d.id}),Object.values(u).forEach(y=>y())}else t({storyId:n,playUntil:i})},a=({storyId:n})=>{var l;let{resolvers:i}=this.getState(n);if(Object.values(i).length>0)Object.values(i).forEach(s=>s());else{let s=(l=this.getLog(n).find(u=>u.status==="waiting"))==null?void 0:l.callId;s?t({storyId:n,playUntil:s}):c({storyId:n})}},c=({storyId:n})=>{this.setState(n,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(n).resolvers).forEach(i=>i())};this.channel.on(pt.STAR
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}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"]},p={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},d="…";function f(w,T){var j=u[p[T]]||u[T];return j?"\x1B[".concat(j[0],"m").concat(String(w),"\x1B[").concat(j[1],"m"):String(w)}function m(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=w.showHidden,j=T===void 0?!1:T,J=w.depth,ne=J===void 0?2:J,le=w.colors,ce=le===void 0?!1:le,de=w.customInspect,me=de===void 0?!0:de,te=w.showProxy,ve=te===void 0?!1:te,Re=w.maxArrayLength,Fe=Re===void 0?1/0:Re,Me=w.breakLength,je=Me===void 0?1/0:Me,De=w.seen,Mt=De===void 0?[]:De,dt=w.truncate,Kt=dt===void 0?1/0:dt,St=w.stylize,jt=St===void 0?String:St,ut={showHidden:!!j,depth:Number(ne),colors:!!ce,customInspect:!!me,showProxy:!!ve,maxArrayLength:Number(Fe),breakLength:Number(je),truncate:Number(Kt),seen:Mt,stylize:jt};return ut.colors&&(ut.stylize=f),ut}function y(w,T){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:d;w=String(w);var J=j.length,ne=w.length;return J>T&&ne>J?j:ne>T&&ne>J?"".concat(w.slice(0,T-J)).concat(j):w}function g(w,T,j){var J=arguments.length>3&&arguments[3]!==void 0?arguments[3]:", ";j=j||T.inspect;var ne=w.length;if(ne===0)return"";for(var le=T.truncate,ce="",de="",me="",te=0;te<ne;te+=1){var ve=te+1===w.length,Re=te+2===w.length;me="".concat(d,"(").concat(w.length-te,")");var Fe=w[te];T.truncate=le-ce.length-(ve?0:J.length);var Me=de||j(Fe,T)+(ve?"":J),je=ce.length+Me.length,De=je+me.length;if(ve&&je>le&&ce.length+me.length<=le||!ve&&!Re&&De>le||(de=ve?"":j(w[te+1],T)+(Re?"":J),!ve&&Re&&De>le&&je+de.length>le))break;if(ce+=Me,!ve&&!Re&&je+de.length>=le){me="".concat(d,"(").concat(w.length-te-1,")");break}me=""}return"".concat(ce).concat(me)}function h(w){return w.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?w:JSON.stringify(w).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function v(w,T){var j=a(w,2),J=j[0],ne=j[1];return T.truncate-=2,typeof J=="string"?J=h(J):typeof J!="number"&&(J="[".concat(T.inspect(J,T),"]")),T.truncate-=J.length,ne=T.inspect(ne,T),"".concat(J,": ").concat(ne)}function S(w,T){var j=Object.keys(w).slice(w.length);if(!w.length&&!j.length)return"[]";T.truncate-=4;var J=g(w,T);T.truncate-=J.length;var ne="";return j.length&&(ne=g(j.map(function(le){return[le,w[le]]}),T,v)),"[ ".concat(J).concat(ne?", ".concat(ne):""," ]")}var E=Function.prototype.toString,C=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/,A=512;function R(w){if(typeof w!="function")return null;var T="";if(typeof Function.prototype.name>"u"&&typeof w.name>"u"){var j=E.call(w);if(j.indexOf("(")>A)return T;var J=j.match(C);J&&(T=J[1])}else T=w.name;return T}var _=R,O=function(w){return typeof Buffer=="function"&&w instanceof Buffer?"Buffer":w[Symbol.toStringTag]?w[Symbol.toStringTag]:_(w.constructor)};function x(w,T){var j=O(w);T.truncate-=j.length+4;var J=Object.keys(w).slice(w.length);if(!w.length&&!J.length)return"".concat(j,"[]");for(var ne="",le=0;le<w.length;le++){var ce="".concat(T.stylize(y(w[le],T.truncate),"number")).concat(le===w.length-1?"":", ");if(T.truncate-=ce.length,w[le]!==w.length&&T.truncate<=3){ne+="".concat(d,"(").concat(w.length-w[le]+1,")");break}ne+=ce}var de="";return J.length&&(de=g(J.map(function(me){return[me,w[me]]}),T,v)),"".concat(j,"[ ").concat(ne).concat(de?", ".concat(de):""," ]")}function I(w,T){var j=w.toJSON();if(j===null)return"Invalid Date";var J=j.split("T"),ne=J[0];return T.stylize("".concat(ne,"T").concat(y(J[
|
|||
|
`)}function Ke(w,T){var j=w.getAttributeNames(),J=w.tagName.toLowerCase(),ne=T.stylize("<".concat(J),"special"),le=T.stylize(">","special"),ce=T.stylize("</".concat(J,">"),"special");T.truncate-=J.length*2+5;var de="";j.length>0&&(de+=" ",de+=g(j.map(function(ve){return[ve,w.getAttribute(ve)]}),T,lt," ")),T.truncate-=de.length;var me=T.truncate,te=ze(w.children,T);return te&&te.length>me&&(te="".concat(d,"(").concat(w.children.length,")")),"".concat(ne).concat(de).concat(le).concat(te).concat(ce)}var st=typeof Symbol=="function"&&typeof Symbol.for=="function",$e=st?Symbol.for("chai/inspect"):"@@chai/inspect",Oe=!1;try{var Ye=Sf("util");Oe=Ye.inspect?Ye.inspect.custom:!1}catch{Oe=!1}function Pe(){this.key="chai/loupe__"+Math.random()+Date.now()}Pe.prototype={get:function(w){return w[this.key]},has:function(w){return this.key in w},set:function(w,T){Object.isExtensible(w)&&Object.defineProperty(w,this.key,{value:T,configurable:!0})}};var Ae=new(typeof WeakMap=="function"?WeakMap:Pe),xe={},Je={undefined:function(w,T){return T.stylize("undefined","undefined")},null:function(w,T){return T.stylize(null,"null")},boolean:function(w,T){return T.stylize(w,"boolean")},Boolean:function(w,T){return T.stylize(w,"boolean")},number:oe,Number:oe,bigint:ae,BigInt:ae,string:D,String:D,function:H,Function:H,symbol:U,Symbol:U,Array:S,Date:I,Map:re,Set:q,RegExp:ue,Promise:W,WeakSet:function(w,T){return T.stylize("WeakSet{…}","special")},WeakMap:function(w,T){return T.stylize("WeakMap{…}","special")},Arguments:pe,Int8Array:x,Uint8Array:x,Uint8ClampedArray:x,Int16Array:x,Uint16Array:x,Int32Array:x,Uint32Array:x,Float32Array:x,Float64Array:x,Generator:function(){return""},DataView:function(){return""},ArrayBuffer:function(){return""},Error:it,HTMLCollection:ze,NodeList:ze},xt=function(w,T,j){return $e in w&&typeof w[$e]=="function"?w[$e](T):Oe&&Oe in w&&typeof w[Oe]=="function"?w[Oe](T.depth,T):"inspect"in w&&typeof w.inspect=="function"?w.inspect(T.depth,T):"constructor"in w&&Ae.has(w.constructor)?Ae.get(w.constructor)(w,T):xe[j]?xe[j](w,T):""},ct=Object.prototype.toString;function Be(w,T){T=m(T),T.inspect=Be;var j=T,J=j.customInspect,ne=w===null?"null":o(w);if(ne==="object"&&(ne=ct.call(w).slice(8,-1)),Je[ne])return Je[ne](w,T);if(J&&w){var le=xt(w,T,ne);if(le)return typeof le=="string"?le:Be(le,T)}var ce=w?Object.getPrototypeOf(w):!1;return ce===Object.prototype||ce===null?k(w,T):w&&typeof HTMLElement=="function"&&w instanceof HTMLElement?Ke(w,T):"constructor"in w?w.constructor!==Object?se(w,T):k(w,T):w===Object(w)?k(w,T):T.stylize(String(w),ne)}function K(w,T){return Ae.has(w)?!1:(Ae.set(w,T),!0)}function Q(w,T){return w in xe?!1:(xe[w]=T,!0)}var ye=$e;r.custom=ye,r.default=Be,r.inspect=Be,r.registerConstructor=K,r.registerStringTag=Q,Object.defineProperty(r,"__esModule",{value:!0})})}}),dr=P({"../../node_modules/chai/lib/chai/config.js"(e,t){t.exports={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"]}}}),Uo=P({"../../node_modules/chai/lib/chai/utils/inspect.js"(e,t){Fo();var r=mn(),o=dr();t.exports=a;function a(c,n,i,l){var s={colors:l,depth:typeof i>"u"?2:i,showHidden:n,truncate:o.truncateThreshold?o.truncateThreshold:1/0};return r.inspect(c,s)}}}),Il=P({"../../node_modules/chai/lib/chai/utils/objDisplay.js"(e,t){var r=Uo(),o=dr();t.exports=function(a){var c=r(a),n=Object.prototype.toString.call(a);if(o.truncateThreshold&&c.length>=o.truncateThreshold){if(n==="[object Function]")return!a.name||a.name===""?"[Function]":"[Function: "+a.name+"]";if(n==="[object Array]")return"[ Array("+a.length+") ]";if(n==="[object Object]"){var i=Object.keys(a),l=i.length>2?i.splice(0,2).join(", ")+", ...":i.join(", ");return"{ Object ("+l+") }"}else return c}else return c}}}),Tf=P({"../../node_modules/chai/lib/chai/utils/getMessage.js"(e,t){var r=ot(),o=jl(),a=Il();t.exports=function(c,n){var i=r(c,"negate"),l=r(c,"object"),s=n[3],u=o(c,n),p=i?n[2]:n[1],d=r(c,"message");return typeof p=="function"&&(p=p()),p=p||"",p=p.replace(/#\{this\}/g,function(){return a(l)}).replace(/#\{act\}/g,fun
|
|||
|
`)!==-1&&(E=p.spacingOuter+g+E+p.spacingOuter+d),E=`{${E}}`),`${p.spacingInner+d+h.prop.open+v+h.prop.close}=${h.value.open}${E}${h.value.close}`}).join("")};e.printProps=o;var a=(s,u,p,d,f,m)=>s.map(y=>u.spacingOuter+p+(typeof y=="string"?c(y,u):m(y,u,p,d,f))).join("");e.printChildren=a;var c=(s,u)=>{let p=u.colors.content;return p.open+(0,t.default)(s)+p.close};e.printText=c;var n=(s,u)=>{let p=u.colors.comment;return`${p.open}<!--${(0,t.default)(s)}-->${p.close}`};e.printComment=n;var i=(s,u,p,d,f)=>{let m=d.colors.tag;return`${m.open}<${s}${u&&m.close+u+d.spacingOuter+f+m.open}${p?`>${m.close}${p}${d.spacingOuter}${f}${m.open}</${s}`:`${u&&!d.min?"":" "}/`}>${m.close}`};e.printElement=i;var l=(s,u)=>{let p=u.colors.tag;return`${p.open}<${s}${p.close} …${p.open} />${p.close}`};e.printElementAsLeaf=l}}),Zf=P({"../../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=Ho(),r=1,o=3,a=8,c=11,n=/^((HTML|SVG)\w*)?Element$/,i=g=>{try{return typeof g.hasAttribute=="function"&&g.hasAttribute("is")}catch{return!1}},l=g=>{let h=g.constructor.name,{nodeType:v,tagName:S}=g,E=typeof S=="string"&&S.includes("-")||i(g);return v===r&&(n.test(h)||E)||v===o&&h==="Text"||v===a&&h==="Comment"||v===c&&h==="DocumentFragment"},s=g=>{var h;return((h=g==null?void 0:g.constructor)==null?void 0:h.name)&&l(g)};e.test=s;function u(g){return g.nodeType===o}function p(g){return g.nodeType===a}function d(g){return g.nodeType===c}var f=(g,h,v,S,E,C)=>{if(u(g))return(0,t.printText)(g.data,h);if(p(g))return(0,t.printComment)(g.data,h);let A=d(g)?"DocumentFragment":g.tagName.toLowerCase();return++S>h.maxDepth?(0,t.printElementAsLeaf)(A,h):(0,t.printElement)(A,(0,t.printProps)(d(g)?[]:Array.from(g.attributes,R=>R.name).sort(),d(g)?{}:Array.from(g.attributes).reduce((R,_)=>(R[_.name]=_.value,R),{}),h,v+h.indent,S,E,C),(0,t.printChildren)(Array.prototype.slice.call(g.childNodes||g.children),h,v+h.indent,S,E,C),h,v)};e.serialize=f;var m={serialize:f,test:s},y=m;e.default=y}}),em=P({"../../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=gn(),r="@@__IMMUTABLE_ITERABLE__@@",o="@@__IMMUTABLE_LIST__@@",a="@@__IMMUTABLE_KEYED__@@",c="@@__IMMUTABLE_MAP__@@",n="@@__IMMUTABLE_ORDERED__@@",i="@@__IMMUTABLE_RECORD__@@",l="@@__IMMUTABLE_SEQ__@@",s="@@__IMMUTABLE_SET__@@",u="@@__IMMUTABLE_STACK__@@",p=_=>`Immutable.${_}`,d=_=>`[${_}]`,f=" ",m="…",y=(_,O,x,I,H,V,L)=>++I>O.maxDepth?d(p(L)):`${p(L)+f}{${(0,t.printIteratorEntries)(_.entries(),O,x,I,H,V)}}`;function g(_){let O=0;return{next(){if(O<_._keys.length){let x=_._keys[O++];return{done:!1,value:[x,_.get(x)]}}return{done:!0,value:void 0}}}}var h=(_,O,x,I,H,V)=>{let L=p(_._name||"Record");return++I>O.maxDepth?d(L):`${L+f}{${(0,t.printIteratorEntries)(g(_),O,x,I,H,V)}}`},v=(_,O,x,I,H,V)=>{let L=p("Seq");return++I>O.maxDepth?d(L):_[a]?`${L+f}{${_._iter||_._object?(0,t.printIteratorEntries)(_.entries(),O,x,I,H,V):m}}`:`${L+f}[${_._iter||_._array||_._collection||_._iterable?(0,t.printIteratorValues)(_.values(),O,x,I,H,V):m}]`},S=(_,O,x,I,H,V,L)=>++I>O.maxDepth?d(p(L)):`${p(L)+f}[${(0,t.printIteratorValues)(_.values(),O,x,I,H,V)}]`,E=(_,O,x,I,H,V)=>_[c]?y(_,O,x,I,H,V,_[n]?"OrderedMap":"Map"):_[o]?S(_,O,x,I,H,V,"List"):_[s]?S(_,O,x,I,H,V,_[n]?"OrderedSet":"Set"):_[u]?S(_,O,x,I,H,V,"Stack"):_[l]?v(_,O,x,I,H,V):h(_,O,x,I,H,V);e.serialize=E;var C=_=>_&&(_[r]===!0||_[i]===!0);e.test=C;var A={serialize:E,test:C},R=A;e.default=R}}),tm=P({"../../node_modules/pretty-format/node_modules/react-is/cjs/react-is.development.js"(e){(function(){var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),n=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("reac
|
|||
|
${pe}`)},{edgeSpacing:B.spacingOuter,min:B.min,spacing:B.spacingInner},B.colors)}catch(se){throw new v(se.message,se.stack)}if(typeof ie!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof ie}".`);return ie}function V(b,N){for(let B=0;B<b.length;B++)try{if(b[B].test(N))return b[B]}catch(Y){throw new v(Y.message,Y.stack)}return null}function L(b,N,B,Y,W,k){let ie=V(N.plugins,b);if(ie!==null)return H(ie,b,N,B,Y,W);let se=O(b,N.printFunctionName,N.escapeRegex,N.escapeString);return se!==null?se:x(b,N,B,Y,W,k)}var re={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},G=Object.keys(re),oe=b=>b,ae=oe({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:re});e.DEFAULT_OPTIONS=ae;function ue(b){if(Object.keys(b).forEach(N=>{if(!Object.prototype.hasOwnProperty.call(ae,N))throw new Error(`pretty-format: Unknown option "${N}".`)}),b.min&&b.indent!==void 0&&b.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(b.theme!==void 0){if(b.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof b.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof b.theme}".`)}}var Z=b=>G.reduce((N,B)=>{let Y=b.theme&&b.theme[B]!==void 0?b.theme[B]:re[B],W=Y&&t.default[Y];if(W&&typeof W.close=="string"&&typeof W.open=="string")N[B]=W;else throw new Error(`pretty-format: Option "theme" has a key "${B}" whose value "${Y}" is undefined in ansi-styles.`);return N},Object.create(null)),q=()=>G.reduce((b,N)=>(b[N]={close:"",open:""},b),Object.create(null)),M=b=>(b==null?void 0:b.printFunctionName)??ae.printFunctionName,F=b=>(b==null?void 0:b.escapeRegex)??ae.escapeRegex,z=b=>(b==null?void 0:b.escapeString)??ae.escapeString,X=b=>({callToJSON:(b==null?void 0:b.callToJSON)??ae.callToJSON,colors:b!=null&&b.highlight?Z(b):q(),compareKeys:typeof(b==null?void 0:b.compareKeys)=="function"||(b==null?void 0:b.compareKeys)===null?b.compareKeys:ae.compareKeys,escapeRegex:F(b),escapeString:z(b),indent:b!=null&&b.min?"":$((b==null?void 0:b.indent)??ae.indent),maxDepth:(b==null?void 0:b.maxDepth)??ae.maxDepth,maxWidth:(b==null?void 0:b.maxWidth)??ae.maxWidth,min:(b==null?void 0:b.min)??ae.min,plugins:(b==null?void 0:b.plugins)??ae.plugins,printBasicPrototype:(b==null?void 0:b.printBasicPrototype)??!0,printFunctionName:M(b),spacingInner:b!=null&&b.min?" ":`
|
|||
|
`,spacingOuter:b!=null&&b.min?"":`
|
|||
|
`});function $(b){return new Array(b+1).join(" ")}function D(b,N){if(N&&(ue(N),N.plugins)){let Y=V(N.plugins,b);if(Y!==null)return H(Y,b,X(N),"",0,[])}let B=O(b,M(N),F(N),z(N));return B!==null?B:x(b,X(N),"",0,[])}var U={AsymmetricMatcher:o.default,DOMCollection:a.default,DOMElement:c.default,Immutable:n.default,ReactElement:i.default,ReactTestComponent:l.default};e.plugins=U;var ee=D;e.default=ee}}),$l=P({"../../node_modules/diff-sequences/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=f;var t="diff-sequences",r=0,o=(m,y,g,h,v)=>{let S=0;for(;m<y&&g<h&&v(m,g);)m+=1,g+=1,S+=1;return S},a=(m,y,g,h,v)=>{let S=0;for(;m<=y&&g<=h&&v(y,h);)y-=1,h-=1,S+=1;return S},c=(m,y,g,h,v,S,E)=>{let C=0,A=-m,R=S[C],_=R;S[C]+=o(R+1,y,h+R-A+1,g,v);let O=m<E?m:E;for(C+=1,A+=2;C<=O;C+=1,A+=2){if(C!==m&&_<S[C])R=S[C];else if(R=_+1,y<=R)return C-1;_=S[C],S[C]=R+o(R+1,y,h+R-A+1,g,v)}return E},n=(m,y,g,h,v,S,E)=>{let C=0,A=m,R=S[C],_=R;S[C]-=a(y,R-1,g,h+R-A-1,v);let O=m<E?m:E;for(C+=1,A-=2;C<=O;C+=1,A-=2){if(C!==m&&S[C]<_)R=S[C];else if(R=_-1,R<y)return C-1;_=S[C],S[C]=R-a(y,R-1,g,h+R-A-1,v)}return E},i=(m,y,g,h,v,S,E,C,A,R,_)=>{let O=h-y,x=g-y,I=v-h-x,H=-I-(m-1),V=-I+(m-1),L=r,re=m<C?m:C;for(let G=0,oe=-m;G<=re;G+=1,oe+=2){let ae=G===0||G!==m&&L<E[G],ue=ae?E[G]:L,Z=ae?ue:ue+1,q=O+Z-oe,M=o(Z+1,g,q+1,v,S),F=Z+M;if(L=E[G],E[G]=F,H<=oe&&oe<=V){let z=(m-1-(oe+I))/2;if(z<=R&&A[z]-1<=F){let X=O+ue-(ae?oe+1:oe-1),$=a(y,ue,h,X,S),D=ue-$,U=X-$,ee=D+1,b=U+1;_.nChangePreceding=m-1,m-1===ee+b-y-h?(_.aEndPreceding=y,_.bEndPreceding=h):(_.aEndPreceding=ee,_.bEndPreceding=b),_.nCommonPreceding=$,$!==0&&(_.aCommonPreceding=ee,_.bCommonPreceding=b),_.nCommonFollowing=M,M!==0&&(_.aCommonFollowing=Z+1,_.bCommonFollowing=q+1);let N=F+1,B=q+M+1;return _.nChangeFollowing=m-1,m-1===g+v-N-B?(_.aStartFollowing=g,_.bStartFollowing=v):(_.aStartFollowing=N,_.bStartFollowing=B),!0}}}return!1},l=(m,y,g,h,v,S,E,C,A,R,_)=>{let O=v-g,x=g-y,I=v-h-x,H=I-m,V=I+m,L=r,re=m<R?m:R;for(let G=0,oe=m;G<=re;G+=1,oe-=2){let ae=G===0||G!==m&&A[G]<L,ue=ae?A[G]:L,Z=ae?ue:ue-1,q=O+Z-oe,M=a(y,Z-1,h,q-1,S),F=Z-M;if(L=A[G],A[G]=F,H<=oe&&oe<=V){let z=(m+(oe-I))/2;if(z<=C&&F-1<=E[z]){let X=q-M;if(_.nChangePreceding=m,m===F+X-y-h?(_.aEndPreceding=y,_.bEndPreceding=h):(_.aEndPreceding=F,_.bEndPreceding=X),_.nCommonPreceding=M,M!==0&&(_.aCommonPreceding=F,_.bCommonPreceding=X),_.nChangeFollowing=m-1,m===1)_.nCommonFollowing=0,_.aStartFollowing=g,_.bStartFollowing=v;else{let $=O+ue-(ae?oe-1:oe+1),D=o(ue,g,$,v,S);_.nCommonFollowing=D,D!==0&&(_.aCommonFollowing=ue,_.bCommonFollowing=$);let U=ue+D,ee=$+D;m-1===g+v-U-ee?(_.aStartFollowing=g,_.bStartFollowing=v):(_.aStartFollowing=U,_.bStartFollowing=ee)}return!0}}}return!1},s=(m,y,g,h,v,S,E,C,A)=>{let R=h-y,_=v-g,O=g-y,x=v-h,I=x-O,H=O,V=O;if(E[0]=y-1,C[0]=g,I%2===0){let L=(m||I)/2,re=(O+x)/2;for(let G=1;G<=re;G+=1)if(H=c(G,g,v,R,S,E,H),G<L)V=n(G,y,h,_,S,C,V);else if(l(G,y,g,h,v,S,E,H,C,V,A))return}else{let L=((m||I)+1)/2,re=(O+x+1)/2,G=1;for(H=c(G,g,v,R,S,E,H),G+=1;G<=re;G+=1)if(V=n(G-1,y,h,_,S,C,V),G<L)H=c(G,g,v,R,S,E,H);else if(i(G,y,g,h,v,S,E,H,C,V,A))return}throw new Error(`${t}: no overlap aStart=${y} aEnd=${g} bStart=${h} bEnd=${v}`)},u=(m,y,g,h,v,S,E,C,A,R)=>{if(v-h<g-y){if(S=!S,S&&E.length===1){let{foundSubsequence:z,isCommon:X}=E[0];E[1]={foundSubsequence:($,D,U)=>{z($,U,D)},isCommon:($,D)=>X(D,$)}}let M=y,F=g;y=h,g=v,h=M,v=F}let{foundSubsequence:_,isCommon:O}=E[S?1:0];s(m,y,g,h,v,O,C,A,R);let{nChangePreceding:x,aEndPreceding:I,bEndPreceding:H,nCommonPreceding:V,aCommonPreceding:L,bCommonPreceding:re,nCommonFollowing:G,aCommonFollowing:oe,bCommonFollowing:ae,nChangeFollowing:ue,aStartFollowing:Z,bStartFollowing:q}=R;y<I&&h<H&&u(x,y,I,h,H,S,E,C,A,R),V!==0&&_(V,L,re),G!==0&&_(G,oe,ae),Z<g&&q<v&&u(ue,Z,g,q,v,S,E,C,A,R)},p=(m,y)=>{if(typeof y!="number")throw new TypeError(`${t}: ${m} typeof ${typeof y} is not a number`);if(!Number.isSafeInteger(y))throw new RangeError(`${t}: ${m} value ${y} is not a safe integer`);if(y<0)throw new RangeError(`${t}: ${m} value ${y} is a negative integer`)},d=(m,y)=>{let g=typeof y;if(g!=="
|
|||
|
`:`
|
|||
|
`)+n,l=i+1,i=a.indexOf(`
|
|||
|
`,l)}while(i!==-1);return s+=a.substr(l),s};t.exports={stringReplaceAll:r,stringEncaseCRLFWithFirstIndex:o}}}),wy=P({"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,o=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,a=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,c=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,n=new Map([["n",`
|
|||
|
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function i(p){let d=p[0]==="u",f=p[1]==="{";return d&&!f&&p.length===5||p[0]==="x"&&p.length===3?String.fromCharCode(parseInt(p.slice(1),16)):d&&f?String.fromCodePoint(parseInt(p.slice(2,-1),16)):n.get(p)||p}function l(p,d){let f=[],m=d.trim().split(/\s*,\s*/g),y;for(let g of m){let h=Number(g);if(!Number.isNaN(h))f.push(h);else if(y=g.match(a))f.push(y[2].replace(c,(v,S,E)=>S?i(S):E));else throw new Error(`Invalid Chalk template style argument: ${g} (in style '${p}')`)}return f}function s(p){o.lastIndex=0;let d=[],f;for(;(f=o.exec(p))!==null;){let m=f[1];if(f[2]){let y=l(m,f[2]);d.push([m].concat(y))}else d.push([m])}return d}function u(p,d){let f={};for(let y of d)for(let g of y.styles)f[g[0]]=y.inverse?null:g.slice(1);let m=p;for(let[y,g]of Object.entries(f))if(Array.isArray(g)){if(!(y in m))throw new Error(`Unknown Chalk style: ${y}`);m=g.length>0?m[y](...g):m[y]}return m}t.exports=(p,d)=>{let f=[],m=[],y=[];if(d.replace(r,(g,h,v,S,E,C)=>{if(h)y.push(i(h));else if(S){let A=y.join("");y=[],m.push(f.length===0?A:u(p,f)(A)),f.push({inverse:v,styles:s(S)})}else if(E){if(f.length===0)throw new Error("Found extraneous } in Chalk template literal");m.push(u(p,f)(y.join(""))),y=[],f.pop()}else y.push(C)}),m.push(y.join("")),f.length>0){let g=`Chalk template literal is missing ${f.length} closing bracket${f.length===1?"":"s"} (\`}\`)`;throw new Error(g)}return m.join("")}}}),es=P({"node_modules/@testing-library/jest-dom/node_modules/chalk/source/index.js"(e,t){var r=vy(),{stdout:o,stderr:a}=_y(),{stringReplaceAll:c,stringEncaseCRLFWithFirstIndex:n}=Ey(),i=["ansi","ansi","ansi256","ansi16m"],l=Object.create(null),s=(C,A={})=>{if(A.level>3||A.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let R=o?o.level:0;C.level=A.level===void 0?R:A.level},u=class{constructor(C){return p(C)}},p=C=>{let A={};return s(A,C),A.template=(...R)=>S(A.template,...R),Object.setPrototypeOf(A,d.prototype),Object.setPrototypeOf(A.template,A),A.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},A.template.Instance=u,A.template};function d(C){return p(C)}for(let[C,A]of Object.entries(r))l[C]={get(){let R=g(this,y(A.open,A.close,this._styler),this._isEmpty);return Object.defineProperty(this,C,{value:R}),R}};l.visible={get(){let C=g(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:C}),C}};var f=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let C of f)l[C]={get(){let{level:A}=this;return function(...R){let _=y(r.color[i[A]][C](...R),r.color.close,this._styler);return g(this,_,this._isEmpty)}}};for(let C of f){let A="bg"+C[0].toUpperCase()+C.slice(1);l[A]={get(){let{level:R}=this;return function(..._){let O=y(r.bgColor[i[R]][C](..._),r.bgColor.close,this._styler);return g(this,O,this._isEmpty)}}}}var m=Object.defineProperties(()=>{},{...l,level:{enumerable:!0,get(){return this._generator.level},set(C){this._generator.level=C}}}),y=(C,A,R)=>{let _,O;return R===void 0?(_=C,O=A):(_=R.openAll+C,O=A+R.closeAll),{open:C,close:A,openAll:_,closeAll:O,parent:R}},g=(C,A,R)=>{let _=(...O)=>h(_,O.length===1?""+O[0]:O.join(" "));return _.__proto__=m,_._generator=C,_._styler=A,_._isEmpty=R,_},h=(C,A)=>{if(C.level<=0||!A)return C._isEmpty?"":A;let R=C._styler;if(R===void 0)return A;let{openAll:_,closeAll:O}=R;if(A.indexOf("\x1B")!==-1)for(;R!==void 0;)A=c(A,R.close,R.open),R=R.parent;let x=A.indexOf(`
|
|||
|
`);return x!==-1&&(A=n(A,O,_,x)),_+A+O},v,S=(C,...A)=>{let[R]=A;if(!Array.isArray(R))return A.join(" ");let _=A.slice(1),O=[R.raw[0]];for(let x=1;x<R.length;x++)O.push(String(_[x-1]).replace(/[{}\\]/g,"\\$&"),String(R.raw[x]));return v===void 0&&(v=wy()),v(C,O.join(""))};Object.defineProperties(d.prototype,l);var E=d();E.supportsColor=o,E.stderr=d({level:a?a.level:0}),E.stderr.supportsColor=a,E.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"},t.exports=E}}),ts=P({"../../node_modules/lodash/isEqualWith.js"(e,t){var r=Xl();function o(a,c,n){n=typeof n=="function"?n:void 0;var i=n?n(a,c):void 0;return i===void 0?r(a,c,void 0,n):!!i}t.exports=o}}),Sy=P({"../../node_modules/lodash/_baseFindIndex.js"(e,t){function r(o,a,c,n){for(var i=o.length,l=c+(n?1:-1);n?l--:++l<i;)if(a(o[l],l,o))return l;return-1}t.exports=r}}),Cy=P({"../../node_modules/lodash/_baseIsNaN.js"(e,t){function r(o){return o!==o}t.exports=r}}),Oy=P({"../../node_modules/lodash/_strictIndexOf.js"(e,t){function r(o,a,c){for(var n=c-1,i=o.length;++n<i;)if(o[n]===a)return n;return-1}t.exports=r}}),Py=P({"../../node_modules/lodash/_baseIndexOf.js"(e,t){var r=Sy(),o=Cy(),a=Oy();function c(n,i,l){return i===i?a(n,i,l):r(n,o,l)}t.exports=c}}),Ry=P({"../../node_modules/lodash/_arrayIncludes.js"(e,t){var r=Py();function o(a,c){var n=a==null?0:a.length;return!!n&&r(a,c,0)>-1}t.exports=o}}),Ty=P({"../../node_modules/lodash/_arrayIncludesWith.js"(e,t){function r(o,a,c){for(var n=-1,i=o==null?0:o.length;++n<i;)if(c(a,o[n]))return!0;return!1}t.exports=r}}),Ay=P({"../../node_modules/lodash/noop.js"(e,t){function r(){}t.exports=r}}),qy=P({"../../node_modules/lodash/_createSet.js"(e,t){var r=Jl(),o=Ay(),a=Wo(),c=1/0,n=r&&1/a(new r([,-0]))[1]==c?function(i){return new r(i)}:o;t.exports=n}}),xy=P({"../../node_modules/lodash/_baseUniq.js"(e,t){var r=zl(),o=Ry(),a=Ty(),c=Vl(),n=qy(),i=Wo(),l=200;function s(u,p,d){var f=-1,m=o,y=u.length,g=!0,h=[],v=h;if(d)g=!1,m=a;else if(y>=l){var S=p?null:n(u);if(S)return i(S);g=!1,m=c,v=new r}else v=p?[]:h;e:for(;++f<y;){var E=u[f],C=p?p(E):E;if(E=d||E!==0?E:0,g&&C===C){for(var A=v.length;A--;)if(v[A]===C)continue e;p&&v.push(C),h.push(E)}else m(v,C,d)||(v!==h&&v.push(C),h.push(E))}return h}t.exports=s}}),rs=P({"../../node_modules/lodash/uniq.js"(e,t){var r=xy();function o(a){return a&&a.length?r(a):[]}t.exports=o}}),ns=P({"../../node_modules/css.escape/css.escape.js"(e,t){(function(r,o){typeof e=="object"?t.exports=o(r):typeof define=="function"&&define.amd?define([],o.bind(r,r)):o(r)})(typeof global<"u"?global:e,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var o=function(a){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var c=String(a),n=c.length,i=-1,l,s="",u=c.charCodeAt(0);++i<n;){if(l=c.charCodeAt(i),l==0){s+="<22>";continue}if(l>=1&&l<=31||l==127||i==0&&l>=48&&l<=57||i==1&&l>=48&&l<=57&&u==45){s+="\\"+l.toString(16)+" ";continue}if(i==0&&n==1&&l==45){s+="\\"+c.charAt(i);continue}if(l>=128||l==45||l==95||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122){s+=c.charAt(i);continue}s+="\\"+c.charAt(i)}return s};return r.CSS||(r.CSS={}),r.CSS.escape=o,o})}}),My=P({"../../node_modules/aria-query/lib/util/iteratorProxy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(){var o=this,a=0,c={"@@iterator":function(){return c},next:function(){if(a<o.length){var n=o[a];return a=a+1,{done:!1,value:n}}else return{done:!0}}};return c}var r=t;e.default=r}}),kr=P({"../../node_modules/aria-query/lib/util/iterationDecorator.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=r(My());function r(c){return c&&c.__esModule?c:{default:c}}function o(c){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},o(c)}function a(c,n){return typeof Symbol=="function"&&o(Symbol.iterator)==="symbol"&&Object.defineProperty(c,Symbol.iterator,{value:t.default.bind(n)}
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(f,m){var y=f==null?null:typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(y!=null){var g=[],h=!0,v=!1,S,E;try{for(y=y.call(f);!(h=(S=y.next()).done)&&(g.push(S.value),!(m&&g.length===m));h=!0);}catch(C){v=!0,E=C}finally{try{!h&&y.return!=null&&y.return()}finally{if(v)throw E}}return g}}function n(f){if(Array.isArray(f))return f}function i(f,m){var y=typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(!y){if(Array.isArray(f)||(y=l(f))||m&&f&&typeof f.length=="number"){y&&(f=y);var g=0,h=function(){};return{s:h,n:function(){return g>=f.length?{done:!0}:{done:!1,value:f[g++]}},e:function(C){throw C},f:h}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var v=!0,S=!1,E;return{s:function(){y=y.call(f)},n:function(){var C=y.next();return v=C.done,C},e:function(C){S=!0,E=C},f:function(){try{!v&&y.return!=null&&y.return()}finally{if(S)throw E}}}}function l(f,m){if(f){if(typeof f=="string")return s(f,m);var y=Object.prototype.toString.call(f).slice(8,-1);if(y==="Object"&&f.constructor&&(y=f.constructor.name),y==="Map"||y==="Set")return Array.from(f);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return s(f,m)}}function s(f,m){(m==null||m>f.length)&&(m=f.length);for(var y=0,g=new Array(m);y<m;y++)g[y]=f[y];return g}var u=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["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-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"}]],p={entries:function(){return u},forEach:function(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,y=i(u),g;try{for(y.s();!(g=y.n()).done;){var h=o(g.value,2),v=h[0],S=h[1];f.call(m,S,v,u)}}catch(E){y.e(E)}finally{y.f()}},get:function(f){var m=u.find(function(y){return y[0]===f});return m&&m[1]},has:function(f){return!!p.get(f)},keys:function(){return u.map(function(f){var m=o(f,1),y=m[0];return y})},values:function(){return u.map(function(f){var m=o(f,2),y=m[1];return y})}},d=(0,t.default)(p,p.entries());e.default=d}}),Iy=P({"../../node_modules/aria-query/lib/domMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(kr());function r(f){return f&&f.__esModule?f:{default:f}}function o(f,m){return n(f)||c(f,m)||l(f,m)||a()}function a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(f,m){var y=f==null?null:typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(y!=null){var g=[],h=!0,v=!1,S,E;try{for(y=y.call(f);!(h=(S=y.next()).done)&&(g.push(S.value),!(m&&g.length===m));h=!0);}catch(C){v=!0,E=C}finally{try{!h&&y.return!=null&&y.return()}finally{if(v)throw E}}return g}}function n(f){if(Array.isArray(f))return f}function i(f,m){var y=typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(!y){if(Array.isArray(f)||(y=l(f))||m&&f&&typeof f.length=="number"){y&&(f=y);var g=0,h=function(){};return{s:h,n:function(){return g>=f.length?{done:!0}:{done:!1,value:f[g++]}},e:function(C){throw C},f:h}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var v=!0,S=!1,E;return{s:function(){y=y.call(f)},n:function(){var C=y.next();return v=C.done,C},e:function(C){S=!0,E=C},f:function(){try{!v&&y.return!=null&&y.return()}finally{if(S)throw E}}}}function l(f,m){if(f){if(typeof f=="string")return s(f,m);var y=Object.prototype.toString.call(f).slice(8,-1);if(y==="Object"&&f.constructor&&(y=f.constructor.name),y==="Map"||y==="Set")return Array.from(f);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return s(f,m)}}function s(f,m){(m==null||m>f.length)&&(m=f.length);for(var y=0,g=new Array(m);y<m;y++)g[y]=f[y];return g}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}]],p={entries:function(){return u},forEach:function(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,y=i(u),g;try{for(y.s();!(g=y.n()).done;){var h=o(g.value,2),v=h[0],S=h[1];f.call(m,S,v,u)}}catch(E){y.e(E)}finally{y.f()}},get:function(f){var m=u.find(function(y){return y[0]===f});return m&&m[1]},has:function(f){return!!p.get(f)},keys:function(){return u.map(functio
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var R=!0,_=!1,O;return{s:function(){E=E.call(v)},n:function(){var x=E.next();return R=x.done,x},e:function(x){_=!0,O=x},f:function(){try{!R&&E.return!=null&&E.return()}finally{if(_)throw O}}}}function s(v,S){return m(v)||f(v,S)||p(v,S)||u()}function u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(v,S){if(v){if(typeof v=="string")return d(v,S);var E=Object.prototype.toString.call(v).slice(8,-1);if(E==="Object"&&v.constructor&&(E=v.constructor.name),E==="Map"||E==="Set")return Array.from(v);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return d(v,S)}}function d(v,S){(S==null||S>v.length)&&(S=v.length);for(var E=0,C=new Array(S);E<S;E++)C[E]=v[E];return C}function f(v,S){var E=v==null?null:typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(E!=null){var C=[],A=!0,R=!1,_,O;try{for(E=E.call(v);!(A=(_=E.next()).done)&&(C.push(_.value),!(S&&C.length===S));A=!0);}catch(x){R=!0,O=x}finally{try{!A&&E.return!=null&&E.return()}finally{if(R)throw O}}return C}}function m(v){if(Array.isArray(v))return v}var y=[].concat(t.default,r.default,o.default,a.default);y.forEach(function(v){var S=s(v,2),E=S[1],C=l(E.superClass),A;try{for(C.s();!(A=C.n()).done;){var R=A.value,_=l(R),O;try{var x=function(){var I=O.value,H=y.find(function(oe){var ae=s(oe,1),ue=ae[0];return ue===I});if(H)for(var V=H[1],L=0,re=Object.keys(V.props);L<re.length;L++){var G=re[L];Object.prototype.hasOwnProperty.call(E.props,G)||Object.assign(E.props,i({},G,V.props[G]))}};for(_.s();!(O=_.n()).done;)x()}catch(I){_.e(I)}finally{_.f()}}}catch(I){C.e(I)}finally{C.f()}});var g={entries:function(){return y},forEach:function(v){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,E=l(y),C;try{for(E.s();!(C=E.n()).done;){var A=s(C.value,2),R=A[0],_=A[1];v.call(S,_,R,y)}}catch(O){E.e(O)}finally{E.f()}},get:function(v){var S=y.find(function(E){return E[0]===v});return S&&S[1]},has:function(v){return!!g.get(v)},keys:function(){return y.map(function(v){var S=s(v,1),E=S[0];return E})},values:function(){return y.map(function(v){var S=s(v,2),E=S[1];return E})}},h=(0,c.default)(g,g.entries());e.default=h}}),os=P({"../../node_modules/object-keys/isArguments.js"(e,t){var r=Object.prototype.toString;t.exports=function(o){var a=r.call(o),c=a==="[object Arguments]";return c||(c=a!=="[object Array]"&&o!==null&&typeof o=="object"&&typeof o.length=="number"&&o.length>=0&&r.call(o.callee)==="[object Function]"),c}}}),fg=P({"../../node_modules/object-keys/implementation.js"(e,t){var r;Object.keys||(o=Object.prototype.hasOwnProperty,a=Object.prototype.toString,c=os(),n=Object.prototype.propertyIsEnumerable,i=!n.call({toString:null},"toString"),l=n.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(m){var y=m.constructor;return y&&y.prototype===m},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if(typeof window>"u")return!1;for(var m in window)try{if(!p["$"+m]&&o.call(window,m)&&window[m]!==null&&typeof window[m]=="object")try{u(window[m])}catch{return!0}}catch{return!0}return!1}(),f=function(m){if(typeof window>"u"||!d)return u(m);try{return u(m)}catch{return!1}},r=function(m){var y=m!==null&&typeof m=="object",g=a.call(m)==="[object Function]",h=c(m),v=y&&a.call(m)==="[object String]",S=[];if(!y&&!g&&!h)throw new TypeError("Object.keys called on a non-object");var E=l&&g;if(v&&m.length>0&&!o.call(m,0))for(var C=0;C<m.length;++C)S.push(String(C));if(h&&m.length>0)for(var A=0;A<m.length;++A)S.push(String(A));else for(var R in m)!(E&&R==="prototype")&&o.call(m,R)&&S.push(String(R));if(i)for(var _=f(m),O=0;O<s.length;++O)!(_&&s[O]==="constructor")&&o.call(m,s[O])&&S.push(s[O]);return S});var o,a,c,n,i,l,s,u,p,d,f;t.exports=r}}),Yo=P({"../../node_modules/object-keys/index.js"(e,t){var r=Array.prototype.slice,o=os(),a=Object.keys,c=a?function(i){return a(i)}:fg(),n=Object.keys;c.shim=function(){if(Object.keys){var i=function(){var l=Objec
|
|||
|
`)>=0)return!1;return!0}function xt(K,Q){var ye;if(K.indent===" ")ye=" ";else if(typeof K.indent=="number"&&K.indent>0)ye=x.call(Array(K.indent+1)," ");else return null;return{base:ye,prev:x.call(Array(Q+1),ye)}}function ct(K,Q){if(K.length===0)return"";var ye=`
|
|||
|
`+Q.prev+Q.base;return ye+x.call(K,","+ye)+`
|
|||
|
`+Q.prev}function Be(K,Q){var ye=$(K),w=[];if(ye){w.length=K.length;for(var T=0;T<K.length;T++)w[T]=ie(K,T)?Q(K[T],K):""}var j=typeof L=="function"?L(K):[],J;if(G){J={};for(var ne=0;ne<j.length;ne++)J["$"+j[ne]]=j[ne]}for(var le in K)ie(K,le)&&(ye&&String(Number(le))===le&&le<K.length||G&&J["$"+le]instanceof Symbol||(_.call(/[^\w$]/,le)?w.push(Q(le,K)+": "+Q(K[le],K)):w.push(le+": "+Q(K[le],K))));if(typeof L=="function")for(var ce=0;ce<j.length;ce++)ae.call(K,j[ce])&&w.push("["+Q(j[ce])+"]: "+Q(K[j[ce]],K));return w}}}),ps=P({"../../node_modules/side-channel/index.js"(e,t){var r=et(),o=tt(),a=Cg(),c=r("%TypeError%"),n=r("%WeakMap%",!0),i=r("%Map%",!0),l=o("WeakMap.prototype.get",!0),s=o("WeakMap.prototype.set",!0),u=o("WeakMap.prototype.has",!0),p=o("Map.prototype.get",!0),d=o("Map.prototype.set",!0),f=o("Map.prototype.has",!0),m=function(v,S){for(var E=v,C;(C=E.next)!==null;E=C)if(C.key===S)return E.next=C.next,C.next=v.next,v.next=C,C},y=function(v,S){var E=m(v,S);return E&&E.value},g=function(v,S,E){var C=m(v,S);C?C.value=E:v.next={key:S,next:v.next,value:E}},h=function(v,S){return!!m(v,S)};t.exports=function(){var v,S,E,C={assert:function(A){if(!C.has(A))throw new c("Side channel does not contain "+a(A))},get:function(A){if(n&&A&&(typeof A=="object"||typeof A=="function")){if(v)return l(v,A)}else if(i){if(S)return p(S,A)}else if(E)return y(E,A)},has:function(A){if(n&&A&&(typeof A=="object"||typeof A=="function")){if(v)return u(v,A)}else if(i){if(S)return f(S,A)}else if(E)return h(E,A);return!1},set:function(A,R){n&&A&&(typeof A=="object"||typeof A=="function")?(v||(v=new n),s(v,A,R)):i?(S||(S=new i),d(S,A,R)):(E||(E={key:{},next:null}),g(E,A,R))}};return C}}}),Og=P({"../../node_modules/internal-slot/index.js"(e,t){var r=et(),o=is(),a=ps()(),c=r("%TypeError%"),n={assert:function(i,l){if(!i||typeof i!="object"&&typeof i!="function")throw new c("`O` is not an object");if(typeof l!="string")throw new c("`slot` must be a string");if(a.assert(i),!n.has(i,l))throw new c("`"+l+"` is not present on `O`")},get:function(i,l){if(!i||typeof i!="object"&&typeof i!="function")throw new c("`O` is not an object");if(typeof l!="string")throw new c("`slot` must be a string");var s=a.get(i);return s&&s["$"+l]},has:function(i,l){if(!i||typeof i!="object"&&typeof i!="function")throw new c("`O` is not an object");if(typeof l!="string")throw new c("`slot` must be a string");var s=a.get(i);return!!s&&o(s,"$"+l)},set:function(i,l,s){if(!i||typeof i!="object"&&typeof i!="function")throw new c("`O` is not an object");if(typeof l!="string")throw new c("`slot` must be a string");var u=a.get(i);u||(u={},a.set(i,u)),u["$"+l]=s}};Object.freeze&&Object.freeze(n),t.exports=n}}),Pg=P({"../../node_modules/stop-iteration-iterator/index.js"(e,t){var r=Og(),o=SyntaxError,a=typeof StopIteration=="object"?StopIteration:null;t.exports=function(c){if(!a)throw new o("this environment lacks StopIteration");r.set(c,"[[Done]]",!1);var n={next:function(){var i=r.get(this,"[[Iterator]]"),l=r.get(i,"[[Done]]");try{return{done:l,value:l?void 0:i.next()}}catch(s){if(r.set(i,"[[Done]]",!0),s!==a)throw s;return{done:!0,value:void 0}}}};return r.set(n,"[[Iterator]]",c),n}}}),fs=P({"../../node_modules/isarray/index.js"(e,t){var r={}.toString;t.exports=Array.isArray||function(o){return r.call(o)=="[object Array]"}}}),ms=P({"../../node_modules/is-string/index.js"(e,t){var r=String.prototype.valueOf,o=function(i){try{return r.call(i),!0}catch{return!1}},a=Object.prototype.toString,c="[object String]",n=Ht()();t.exports=function(i){return typeof i=="string"?!0:typeof i!="object"?!1:n?o(i):a.call(i)===c}}}),ys=P({"../../node_modules/is-map/index.js"(e,t){var r=typeof Map=="function"&&Map.prototype?Map:null,o=typeof Set=="function"&&Set.prototype?Set:null,a;r||(a=function(i){return!1});var c=r?Map.prototype.has:null,n=o?Set.prototype.has:null;!a&&!c&&(a=function(i){return!1}),t.exports=a||function(i){if(!i||typeof i!="object")return!1;try{if(c.call(i),n)try{n.call(i)}catch{return!0}return i instanceof r}catch{}return!1}}}),hs=P({"../../node_modules/is-set/index.js"(e,t){var r=t
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i(R,_){var O=R==null?null:typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"];if(O!=null){var x=[],I=!0,H=!1,V,L;try{for(O=O.call(R);!(I=(V=O.next()).done)&&(x.push(V.value),!(_&&x.length===_));I=!0);}catch(re){H=!0,L=re}finally{try{!I&&O.return!=null&&O.return()}finally{if(H)throw L}}return x}}function l(R){if(Array.isArray(R))return R}function s(R,_){var O=typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"];if(!O){if(Array.isArray(R)||(O=u(R))||_&&R&&typeof R.length=="number"){O&&(R=O);var x=0,I=function(){};return{s:I,n:function(){return x>=R.length?{done:!0}:{done:!1,value:R[x++]}},e:function(re){throw re},f:I}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H=!0,V=!1,L;return{s:function(){O=O.call(R)},n:function(){var re=O.next();return H=re.done,re},e:function(re){V=!0,L=re},f:function(){try{!H&&O.return!=null&&O.return()}finally{if(V)throw L}}}}function u(R,_){if(R){if(typeof R=="string")return p(R,_);var O=Object.prototype.toString.call(R).slice(8,-1);if(O==="Object"&&R.constructor&&(O=R.constructor.name),O==="Map"||O==="Set")return Array.from(R);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return p(R,_)}}function p(R,_){(_==null||_>R.length)&&(_=R.length);for(var O=0,x=new Array(_);O<_;O++)x[O]=R[O];return x}var d=[],f=o.default.keys();for(E=0;E<f.length;E++)if(m=f[E],y=o.default.get(m),y)for(g=[].concat(y.baseConcepts,y.relatedConcepts),S=0;S<g.length;S++)h=g[S],h.module==="HTML"&&(v=h.concept,v&&function(){var R=JSON.stringify(v),_=d.find(function(H){return JSON.stringify(H[0])===R}),O=void 0;_?O=_[1]:O=[];for(var x=!0,I=0;I<O.length;I++)if(O[I]===m){x=!1;break}x&&O.push(m),d.push([v,O])}());var m,y,g,h,v,S,E,C={entries:function(){return d},forEach:function(R){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,O=s(d),x;try{for(O.s();!(x=O.n()).done;){var I=c(x.value,2),H=I[0],V=I[1];R.call(_,V,H,d)}}catch(L){O.e(L)}finally{O.f()}},get:function(R){var _=d.find(function(O){return(0,t.default)(R,O[0])});return _&&_[1]},has:function(R){return!!C.get(R)},keys:function(){return d.map(function(R){var _=c(R,1),O=_[0];return O})},values:function(){return d.map(function(R){var _=c(R,2),O=_[1];return O})}},A=(0,r.default)(C,C.entries());e.default=A}}),Yg=P({"../../node_modules/aria-query/lib/roleElementMap.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(kr()),r=o(Ko());function o(h){return h&&h.__esModule?h:{default:h}}function a(h,v){return i(h)||n(h,v)||s(h,v)||c()}function c(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n(h,v){var S=h==null?null:typeof Symbol<"u"&&h[Symbol.iterator]||h["@@iterator"];if(S!=null){var E=[],C=!0,A=!1,R,_;try{for(S=S.call(h);!(C=(R=S.next()).done)&&(E.push(R.value),!(v&&E.length===v));C=!0);}catch(O){A=!0,_=O}finally{try{!C&&S.return!=null&&S.return()}finally{if(A)throw _}}return E}}function i(h){if(Array.isArray(h))return h}function l(h,v){var S=typeof Symbol<"u"&&h[Symbol.iterator]||h["@@iterator"];if(!S){if(Array.isArray(h)||(S=s(h))||v&&h&&typeof h.length=="number"){S&&(h=S);var E=0,C=function(){};return{s:C,n:function(){return E>=h.length?{done:!0}:{done:!1,value:h[E++]}},e:function(O){throw O},f:C}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var A=!0,R=!1,_;return{s:function(){S=S.call(h)},n:function(){var O=S.next();return A=O.done,O},e:function(O){R=!0,_=O},f:function(){try{!A&&S.return!=null&&S.return()}finally{if(R)throw _}}}}function s(h,v){if(h){if(typeof h=="string")return u(h,v);var S=Object.prototype.toString.call(h).slice(8,-1);if(S==="Object"&&h.constructor&&(S=h.constructor.name),S==="Map"||S==="Set")return Array.from(h);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return u(h,v)}}function u(h,v){(v==null||v>h.length)&&(v=h.length);for(var S=0,E=new Array(v);S<v;S++)E[S]=h[S];return E}var p=[],d=r.default.keys(),f=function(h){var v=d[h],S=r.default.get(v);if(S)for(var E=[].concat(S.baseConcepts,S.relatedConcepts),C=0;C<E.length;C++){var A=E[C];if(A.module==="HTML"){var R=A.concept;if(R){var _=p.find(function(x){return x[0]===v}),O=void 0;_?O=_[1]:O=[],O.push(R),p.push([v,O])}}}};for(m=0;m<d.length;m++)f(m);var m,y={entries:function(){return p},forEach:function(h){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,S=l(p),E;try{for(S.s();!(E=S.n()).done;){var C=a(E.value,2),A=C[0],R=C[1];h.call(v,R,A,p)}}catch(_){S.e(_)}finally{S.f()}},get:function(h){var v=p.find(function(S){return S[0]===h});return v&&v[1]},has:function(h){return!!y.get(h)},keys:function(){return p.map(function(h){var v=a(h,1),S=v[0];return S})},values:function(){return p.map(function(h){var v=a(h,2),S=v[1];return S})}},g=(0,t.default)(y,y.entries());e.default=g}}),Zo=P({"../../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=n(jy()),r=n(Iy()),o=n(Ko()),a=n(Kg()),c=n(Yg());function n(d){return d&&d.__esModule?d:{default:d}}var i=t.default;e.aria=i;var l=r.default;e.dom=l;var s=o.default;e.roles=s;var u=a.default;e.elementRoles=u;var p=c.default;e.roleElements=p}}),Es=P({"node_modules/pretty-format/node_modules/ansi-styles/index.js"(e,t){var r=(c=0)=>n=>`\x1B[${38+c};5;${n}m`,o=(c=0)=>(n,i,l)=>`\x1B[${38+c};2;${n};${i};${l}m`;function a(){let c=new Map,n={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]}};n.color.gray=n.color.blackBright,n.bgColor.bgGray=n.bgColor.bgBlackBright,n.color.grey=n.color.blackBright,n.bgColor.bgGrey=n.bgColor.bgBlackBright;for(let[i,l]of Object.entries(n)){for(let[s,u]of Object.entries(l))n[s]={open:`\x1B[${u[0]}m`,close:`\x1B[${u[1]}m`},l[s]=n[s],c.set(u[0],u[1]);Object.defineProperty(n,i,{value:l,enumerable:!1})}return Object.defineProperty(n,"codes",{value:c,enumerable:!1}),n.color.close="\x1B[39m",n.bgColor.close="\x1B[49m",n.color.ansi256=r(),n.color.ansi16m=o(),n.bgColor.ansi256=r(10),n.bgColor.ansi16m=o(10),Object.defineProperties(n,{rgbToAnsi256:{value:(i,l,s)=>i===l&&l===s?i<8?16:i>248?231:Math.round((i-8)/247*24)+232:16+36*Math.round(i/255*5)+6*Math.round(l/255*5)+Math.round(s/255*5),enumerable:!1},hexToRgb:{value:i=>{let l=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(i.toString(16));if(!l)return[0,0,0];let{colorString:s}=l.groups;s.length===3&&(s=s.split("").map(p=>p+p).join(""));let u=Number.parseInt(s,16);return[u>>16&255,u>>8&255,u&255]},enumerable:!1},hexToAnsi256:{value:i=>n.rgbToAnsi256(...n.hexToRgb(i)),enumerable:!1}}),n}Object.defineProperty(t,"exports",{enumerable:!0,get:a})}}),Tn=P({"node_modules/pretty-format/build/collectio
|
|||
|
`)!==-1&&(E=p.spacingOuter+g+E+p.spacingOuter+d),E="{"+E+"}"),p.spacingInner+d+h.prop.open+v+h.prop.close+"="+h.value.open+E+h.value.close}).join("")};e.printProps=o;var a=(s,u,p,d,f,m)=>s.map(y=>u.spacingOuter+p+(typeof y=="string"?c(y,u):m(y,u,p,d,f))).join("");e.printChildren=a;var c=(s,u)=>{let p=u.colors.content;return p.open+(0,t.default)(s)+p.close};e.printText=c;var n=(s,u)=>{let p=u.colors.comment;return p.open+"<!--"+(0,t.default)(s)+"-->"+p.close};e.printComment=n;var i=(s,u,p,d,f)=>{let m=d.colors.tag;return m.open+"<"+s+(u&&m.close+u+d.spacingOuter+f+m.open)+(p?">"+m.close+p+d.spacingOuter+f+m.open+"</"+s:(u&&!d.min?"":" ")+"/")+">"+m.close};e.printElement=i;var l=(s,u)=>{let p=u.colors.tag;return p.open+"<"+s+p.close+" …"+p.open+" />"+p.close};e.printElementAsLeaf=l}}),tv=P({"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=ea(),r=1,o=3,a=8,c=11,n=/^((HTML|SVG)\w*)?Element$/,i=g=>{try{return typeof g.hasAttribute=="function"&&g.hasAttribute("is")}catch{return!1}},l=g=>{let h=g.constructor.name,{nodeType:v,tagName:S}=g,E=typeof S=="string"&&S.includes("-")||i(g);return v===r&&(n.test(h)||E)||v===o&&h==="Text"||v===a&&h==="Comment"||v===c&&h==="DocumentFragment"},s=g=>{var h;return(g==null||(h=g.constructor)===null||h===void 0?void 0:h.name)&&l(g)};e.test=s;function u(g){return g.nodeType===o}function p(g){return g.nodeType===a}function d(g){return g.nodeType===c}var f=(g,h,v,S,E,C)=>{if(u(g))return(0,t.printText)(g.data,h);if(p(g))return(0,t.printComment)(g.data,h);let A=d(g)?"DocumentFragment":g.tagName.toLowerCase();return++S>h.maxDepth?(0,t.printElementAsLeaf)(A,h):(0,t.printElement)(A,(0,t.printProps)(d(g)?[]:Array.from(g.attributes).map(R=>R.name).sort(),d(g)?{}:Array.from(g.attributes).reduce((R,_)=>(R[_.name]=_.value,R),{}),h,v+h.indent,S,E,C),(0,t.printChildren)(Array.prototype.slice.call(g.childNodes||g.children),h,v+h.indent,S,E,C),h,v)};e.serialize=f;var m={serialize:f,test:s},y=m;e.default=y}}),rv=P({"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=Tn(),r="@@__IMMUTABLE_ITERABLE__@@",o="@@__IMMUTABLE_LIST__@@",a="@@__IMMUTABLE_KEYED__@@",c="@@__IMMUTABLE_MAP__@@",n="@@__IMMUTABLE_ORDERED__@@",i="@@__IMMUTABLE_RECORD__@@",l="@@__IMMUTABLE_SEQ__@@",s="@@__IMMUTABLE_SET__@@",u="@@__IMMUTABLE_STACK__@@",p=_=>"Immutable."+_,d=_=>"["+_+"]",f=" ",m="…",y=(_,O,x,I,H,V,L)=>++I>O.maxDepth?d(p(L)):p(L)+f+"{"+(0,t.printIteratorEntries)(_.entries(),O,x,I,H,V)+"}";function g(_){let O=0;return{next(){if(O<_._keys.length){let x=_._keys[O++];return{done:!1,value:[x,_.get(x)]}}return{done:!0,value:void 0}}}}var h=(_,O,x,I,H,V)=>{let L=p(_._name||"Record");return++I>O.maxDepth?d(L):L+f+"{"+(0,t.printIteratorEntries)(g(_),O,x,I,H,V)+"}"},v=(_,O,x,I,H,V)=>{let L=p("Seq");return++I>O.maxDepth?d(L):_[a]?L+f+"{"+(_._iter||_._object?(0,t.printIteratorEntries)(_.entries(),O,x,I,H,V):m)+"}":L+f+"["+(_._iter||_._array||_._collection||_._iterable?(0,t.printIteratorValues)(_.values(),O,x,I,H,V):m)+"]"},S=(_,O,x,I,H,V,L)=>++I>O.maxDepth?d(p(L)):p(L)+f+"["+(0,t.printIteratorValues)(_.values(),O,x,I,H,V)+"]",E=(_,O,x,I,H,V)=>_[c]?y(_,O,x,I,H,V,_[n]?"OrderedMap":"Map"):_[o]?S(_,O,x,I,H,V,"List"):_[s]?S(_,O,x,I,H,V,_[n]?"OrderedSet":"Set"):_[u]?S(_,O,x,I,H,V,"Stack"):_[l]?v(_,O,x,I,H,V):h(_,O,x,I,H,V);e.serialize=E;var C=_=>_&&(_[r]===!0||_[i]===!0);e.test=C;var A={serialize:E,test:C},R=A;e.default=R}}),nv=P({"node_modules/react-is/cjs/react-is.development.js"(e){(function(){var t=60103,r=60106,o=60107,a=60108,c=60114,n=60109,i=60110,l=60112,s=60113,u=60120,p=60115,d=60116,f=60121,m=60122,y=60117,g=60129,h=60131;if(typeof Symbol=="function"&&Symbol.for){var v=Symbol.for;t=v("react.element"),r=v("react.portal"),o=v("react.fragment"),a=v("react.strict_mode"),c=v("react.profiler"),n=v("react.provider"),i=v("react.context"),l=v("react.forward_ref"),s=v("react.suspense"),u=v("react.suspense_list"),p=v("react.memo"),d=v("react.lazy")
|
|||
|
`+pe)},{edgeSpacing:B.spacingOuter,min:B.min,spacing:B.spacingInner},B.colors)}catch(se){throw new S(se.message,se.stack)}if(typeof ie!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof ie}".`);return ie}function L(b,N){for(let B=0;B<b.length;B++)try{if(b[B].test(N))return b[B]}catch(Y){throw new S(Y.message,Y.stack)}return null}function re(b,N,B,Y,W,k){let ie=L(N.plugins,b);if(ie!==null)return V(ie,b,N,B,Y,W);let se=x(b,N.printFunctionName,N.escapeRegex,N.escapeString);return se!==null?se:I(b,N,B,Y,W,k)}var G={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},oe=Object.keys(G),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:G};e.DEFAULT_OPTIONS=ae;function ue(b){if(Object.keys(b).forEach(N=>{if(!ae.hasOwnProperty(N))throw new Error(`pretty-format: Unknown option "${N}".`)}),b.min&&b.indent!==void 0&&b.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(b.theme!==void 0){if(b.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof b.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof b.theme}".`)}}var Z=b=>oe.reduce((N,B)=>{let Y=b.theme&&b.theme[B]!==void 0?b.theme[B]:G[B],W=Y&&t.default[Y];if(W&&typeof W.close=="string"&&typeof W.open=="string")N[B]=W;else throw new Error(`pretty-format: Option "theme" has a key "${B}" whose value "${Y}" is undefined in ansi-styles.`);return N},Object.create(null)),q=()=>oe.reduce((b,N)=>(b[N]={close:"",open:""},b),Object.create(null)),M=b=>b&&b.printFunctionName!==void 0?b.printFunctionName:ae.printFunctionName,F=b=>b&&b.escapeRegex!==void 0?b.escapeRegex:ae.escapeRegex,z=b=>b&&b.escapeString!==void 0?b.escapeString:ae.escapeString,X=b=>{var N;return{callToJSON:b&&b.callToJSON!==void 0?b.callToJSON:ae.callToJSON,colors:b&&b.highlight?Z(b):q(),compareKeys:b&&typeof b.compareKeys=="function"?b.compareKeys:ae.compareKeys,escapeRegex:F(b),escapeString:z(b),indent:b&&b.min?"":$(b&&b.indent!==void 0?b.indent:ae.indent),maxDepth:b&&b.maxDepth!==void 0?b.maxDepth:ae.maxDepth,min:b&&b.min!==void 0?b.min:ae.min,plugins:b&&b.plugins!==void 0?b.plugins:ae.plugins,printBasicPrototype:(N=b==null?void 0:b.printBasicPrototype)!==null&&N!==void 0?N:!0,printFunctionName:M(b),spacingInner:b&&b.min?" ":`
|
|||
|
`,spacingOuter:b&&b.min?"":`
|
|||
|
`}};function $(b){return new Array(b+1).join(" ")}function D(b,N){if(N&&(ue(N),N.plugins)){let Y=L(N.plugins,b);if(Y!==null)return V(Y,b,X(N),"",0,[])}let B=x(b,M(N),F(N),z(N));return B!==null?B:I(b,X(N),"",0,[])}var U={AsymmetricMatcher:o.default,ConvertAnsi:a.default,DOMCollection:c.default,DOMElement:n.default,Immutable:i.default,ReactElement:l.default,ReactTestComponent:s.default};e.plugins=U;var ee=D;e.default=ee}}),sv=P({"../../node_modules/lz-string/libs/lz-string.js"(e,t){var r=function(){var o=String.fromCharCode,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",n={};function i(s,u){if(!n[s]){n[s]={};for(var p=0;p<s.length;p++)n[s][s.charAt(p)]=p}return n[s][u]}var l={compressToBase64:function(s){if(s==null)return"";var u=l._compress(s,6,function(p){return a.charAt(p)});switch(u.length%4){default:case 0:return u;case 1:return u+"===";case 2:return u+"==";case 3:return u+"="}},decompressFromBase64:function(s){return s==null?"":s==""?null:l._decompress(s.length,32,function(u){return i(a,s.charAt(u))})},compressToUTF16:function(s){return s==null?"":l._compress(s,15,function(u){return o(u+32)})+" "},decompressFromUTF16:function(s){return s==null?"":s==""?null:l._decompress(s.length,16384,function(u){return s.charCodeAt(u)-32})},compressToUint8Array:function(s){for(var u=l.compress(s),p=new Uint8Array(u.length*2),d=0,f=u.length;d<f;d++){var m=u.charCodeAt(d);p[d*2]=m>>>8,p[d*2+1]=m%256}return p},decompressFromUint8Array:function(s){if(s==null)return l.decompress(s);for(var u=new Array(s.length/2),p=0,d=u.length;p<d;p++)u[p]=s[p*2]*256+s[p*2+1];var f=[];return u.forEach(function(m){f.push(o(m))}),l.decompress(f.join(""))},compressToEncodedURIComponent:function(s){return s==null?"":l._compress(s,6,function(u){return c.charAt(u)})},decompressFromEncodedURIComponent:function(s){return s==null?"":s==""?null:(s=s.replace(/ /g,"+"),l._decompress(s.length,32,function(u){return i(c,s.charAt(u))}))},compress:function(s){return l._compress(s,16,function(u){return o(u)})},_compress:function(s,u,p){if(s==null)return"";var d,f,m={},y={},g="",h="",v="",S=2,E=3,C=2,A=[],R=0,_=0,O;for(O=0;O<s.length;O+=1)if(g=s.charAt(O),Object.prototype.hasOwnProperty.call(m,g)||(m[g]=E++,y[g]=!0),h=v+g,Object.prototype.hasOwnProperty.call(m,h))v=h;else{if(Object.prototype.hasOwnProperty.call(y,v)){if(v.charCodeAt(0)<256){for(d=0;d<C;d++)R=R<<1,_==u-1?(_=0,A.push(p(R)),R=0):_++;for(f=v.charCodeAt(0),d=0;d<8;d++)R=R<<1|f&1,_==u-1?(_=0,A.push(p(R)),R=0):_++,f=f>>1}else{for(f=1,d=0;d<C;d++)R=R<<1|f,_==u-1?(_=0,A.push(p(R)),R=0):_++,f=0;for(f=v.charCodeAt(0),d=0;d<16;d++)R=R<<1|f&1,_==u-1?(_=0,A.push(p(R)),R=0):_++,f=f>>1}S--,S==0&&(S=Math.pow(2,C),C++),delete y[v]}else for(f=m[v],d=0;d<C;d++)R=R<<1|f&1,_==u-1?(_=0,A.push(p(R)),R=0):_++,f=f>>1;S--,S==0&&(S=Math.pow(2,C),C++),m[h]=E++,v=String(g)}if(v!==""){if(Object.prototype.hasOwnProperty.call(y,v)){if(v.charCodeAt(0)<256){for(d=0;d<C;d++)R=R<<1,_==u-1?(_=0,A.push(p(R)),R=0):_++;for(f=v.charCodeAt(0),d=0;d<8;d++)R=R<<1|f&1,_==u-1?(_=0,A.push(p(R)),R=0):_++,f=f>>1}else{for(f=1,d=0;d<C;d++)R=R<<1|f,_==u-1?(_=0,A.push(p(R)),R=0):_++,f=0;for(f=v.charCodeAt(0),d=0;d<16;d++)R=R<<1|f&1,_==u-1?(_=0,A.push(p(R)),R=0):_++,f=f>>1}S--,S==0&&(S=Math.pow(2,C),C++),delete y[v]}else for(f=m[v],d=0;d<C;d++)R=R<<1|f&1,_==u-1?(_=0,A.push(p(R)),R=0):_++,f=f>>1;S--,S==0&&(S=Math.pow(2,C),C++)}for(f=2,d=0;d<C;d++)R=R<<1|f&1,_==u-1?(_=0,A.push(p(R)),R=0):_++,f=f>>1;for(;;)if(R=R<<1,_==u-1){A.push(p(R));break}else _++;return A.join("")},decompress:function(s){return s==null?"":s==""?null:l._decompress(s.length,32768,function(u){return s.charCodeAt(u)})},_decompress:function(s,u,p){var d=[],f=4,m=4,y=3,g="",h=[],v,S,E,C,A,R,_,O={val:p(0),position:u,index:1};for(v=0;v<3;v+=1)d[v]=v;for(E=0,A=Math.pow(2,2),R=1;R!=A;)C=O.val&O.position,O.position>>=1,O.position==0&&(O.position=u,O.val=p(O.index++)),E|=(C>0?1:0)*R,R<<=1;switch(E){case 0:for(E=0,A=Math.pow(2,8),R=1;R!=A;)C=O.val&O.position,O.position>>=1,O.position==0&&(O.position=u,O.val=p(
|
|||
|
`)}function Mv(e,t){return e.map((r,o,a)=>{let c=r[1],n=o===0||o===a.length-1;switch(r[0]){case nr:return Ps(c,n,t);case or:return Rs(c,n,t);default:return Ts(c,n,t)}}).join(`
|
|||
|
`)}var ri=e=>e,As=5;function jv(){let e=ra();return{aAnnotation:"Expected",aColor:e.green,aIndicator:"-",bAnnotation:"Received",bColor:e.red,bIndicator:"+",changeColor:e.inverse,changeLineTrailingSpaceColor:ri,commonColor:e.dim,commonIndicator:" ",commonLineTrailingSpaceColor:ri,compareKeys:void 0,contextLines:As,emptyFirstOrLastLinePlaceholder:"",expand:!0,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:e.yellow}}function Iv(e){return e&&typeof e=="function"?e:void 0}function Nv(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:As}function Lr(e={}){return{...jv(),...e,compareKeys:Iv(e.compareKeys),contextLines:Nv(e.contextLines)}}function Qt(e){return e.length===1&&e[0].length===0}function $v(e){let t=0,r=0;return e.forEach(o=>{switch(o[0]){case nr:t+=1;break;case or:r+=1;break}}),{a:t,b:r}}function Bv({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:o,bColor:a,bIndicator:c,includeChangeCounts:n,omitAnnotationLines:i},l){if(i)return"";let s="",u="";if(n){let f=String(l.a),m=String(l.b),y=o.length-e.length,g=" ".repeat(Math.max(0,y)),h=" ".repeat(Math.max(0,-y)),v=m.length-f.length,S=" ".repeat(Math.max(0,v)),E=" ".repeat(Math.max(0,-v));s=`${g} ${r} ${S}${f}`,u=`${h} ${c} ${E}${m}`}let p=`${r} ${e}${s}`,d=`${c} ${o}${u}`;return`${t(p)}
|
|||
|
${a(d)}
|
|||
|
|
|||
|
`}function qs(e,t){return Bv(t,$v(e))+(t.expand?Mv(e,t):xv(e,t))}function oa(e,t,r){return qs(xs(Qt(e)?[]:e,Qt(t)?[]:t),Lr(r))}function Dv(e,t,r,o,a){if(Qt(e)&&Qt(r)&&(e=[],r=[]),Qt(t)&&Qt(o)&&(t=[],o=[]),e.length!==r.length||t.length!==o.length)return oa(e,t,a);let c=xs(r,o),n=0,i=0;return c.forEach(l=>{switch(l[0]){case nr:l[1]=e[n],n+=1;break;case or:l[1]=t[i],i+=1;break;default:l[1]=t[i],n+=1,i+=1}}),qs(c,Lr(a))}function xs(e,t){let r=e.length,o=t.length,a=(s,u)=>e[s]===t[u],c=[],n=0,i=0,l=(s,u,p)=>{for(;n!==u;n+=1)c.push(new _r(nr,e[n]));for(;i!==p;i+=1)c.push(new _r(or,t[i]));for(;s!==0;s-=1,n+=1,i+=1)c.push(new _r(en,t[i]))};for((Za.default.default||Za.default)(r,o,a,l);n!==r;n+=1)c.push(new _r(nr,e[n]));for(;i!==o;i+=1)c.push(new _r(or,t[i]));return c}function lo(e,t){let{commonColor:r}=Lr(t);return r(e)}var{AsymmetricMatcher:kv,DOMCollection:Lv,DOMElement:Fv,Immutable:Uv,ReactElement:Hv,ReactTestComponent:zv}=mt.plugins,Ms=[zv,Hv,Fv,Lv,Uv,kv],so={plugins:Ms},js={callToJSON:!1,maxDepth:10,plugins:Ms};function Pr(e,t,r){if(Object.is(e,t))return"";let o=ei(e),a=o,c=!1;if(o==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return null;a=e.getExpectedType(),c=a==="string"}if(a!==ei(t)){let{aAnnotation:n,aColor:i,aIndicator:l,bAnnotation:s,bColor:u,bIndicator:p}=Lr(r),d=uo(js,r),f=(0,mt.format)(e,d),m=(0,mt.format)(t,d),y=`${i(`${l} ${n}:`)}
|
|||
|
${f}`,g=`${u(`${p} ${s}:`)}
|
|||
|
${m}`;return`${y}
|
|||
|
|
|||
|
${g}`}if(c)return null;switch(o){case"string":return oa(e.split(`
|
|||
|
`),t.split(`
|
|||
|
`),r);case"boolean":case"number":return Vv(e,t,r);case"map":return zn(ni(e),ni(t),r);case"set":return zn(oi(e),oi(t),r);default:return zn(e,t,r)}}function Vv(e,t,r){let o=(0,mt.format)(e,so),a=(0,mt.format)(t,so);return o===a?"":oa(o.split(`
|
|||
|
`),a.split(`
|
|||
|
`),r)}function ni(e){return new Map(Array.from(e.entries()).sort())}function oi(e){return new Set(Array.from(e.values()).sort())}function zn(e,t,r){let o,a=!1;try{let n=uo(so,r);o=ai(e,t,n,r)}catch{a=!0}let c=lo(Os,r);if(o===void 0||o===c){let n=uo(js,r);o=ai(e,t,n,r),o!==c&&!a&&(o=`${lo(Av,r)}
|
|||
|
|
|||
|
${o}`)}return o}function uo(e,t){let{compareKeys:r}=Lr(t);return{...e,compareKeys:r}}function ai(e,t,r,o){let a={...r,indent:0},c=(0,mt.format)(e,a),n=(0,mt.format)(t,a);if(c===n)return lo(Os,o);{let i=(0,mt.format)(e,r),l=(0,mt.format)(t,r);return Dv(i.split(`
|
|||
|
`),l.split(`
|
|||
|
`),c.split(`
|
|||
|
`),n.split(`
|
|||
|
`),o)}}function Wv(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction}_e(vn(),1);_e($l(),1);_e(mn(),1);var Gv="@@__IMMUTABLE_RECORD__@@",Kv="@@__IMMUTABLE_ITERABLE__@@";function Yv(e){return e&&(e[Kv]||e[Gv])}var Jv=Object.getPrototypeOf({});function ii(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}function Cr(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(Yv(e))return Cr(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()} ${Cv(e.sample)}`;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((o,a)=>{try{r[a]=Cr(o,t)}catch(c){r[a]=ii(c)}}),r}else{let r=Object.create(null);t.set(e,r);let o=e;for(;o&&o!==Jv;)Object.getOwnPropertyNames(o).forEach(a=>{if(!(a in r))try{r[a]=Cr(e[a],t)}catch(c){delete r[a],r[a]=ii(c)}}),o=Object.getPrototypeOf(o);return r}}function li(e){return e.replace(/__vite_ssr_import_\d+__\./g,"")}function Xv(e,t){if(!e||typeof e!="object")return{message:e};if(e.stack&&(e.stackStr=String(e.stack)),e.name&&(e.nameStr=String(e.name)),e.showDiff||e.showDiff===void 0&&e.expected!==void 0&&e.actual!==void 0){let r=Xa(e.actual,{forceWritable:!0}),o=Xa(e.expected,{forceWritable:!0}),{replacedActual:a,replacedExpected:c}=Is(r,o);e.diff=Pr(c,a,t)}typeof e.expected!="string"&&(e.expected=bt(e.expected,10)),typeof e.actual!="string"&&(e.actual=bt(e.actual,10));try{typeof e.message=="string"&&(e.message=li(e.message)),typeof e.cause=="object"&&typeof e.cause.message=="string"&&(e.cause.message=li(e.cause.message))}catch{}try{return Cr(e)}catch(r){return Cr(new Error(`Failed to fully serialize error: ${r==null?void 0:r.message}
|
|||
|
Inner error message: ${e==null?void 0:e.message}`))}}function si(e){return oo(e)==="Object"&&typeof e.asymmetricMatch=="function"}function ui(e,t){let r=oo(e),o=oo(t);return r===o&&r==="Object"}function Is(e,t,r=new WeakSet,o=new WeakSet){return ui(e,t)?r.has(e)||o.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),o.add(t),Ss(t).forEach(a=>{let c=t[a],n=e[a];if(si(c))c.asymmetricMatch(n)&&(e[a]=c);else if(si(n))n.asymmetricMatch(c)&&(t[a]=n);else if(ui(n,c)){let i=Is(n,c,r,o);e[a]=i.replacedActual,t[a]=i.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}var Rr=Symbol.for("matchers-object"),an=Symbol.for("$$jest-matchers-object-storybook"),An=Symbol.for("expect-global");if(!Object.prototype.hasOwnProperty.call(globalThis,Rr)){let e=new WeakMap;Object.defineProperty(globalThis,Rr,{get:()=>e})}if(!Object.prototype.hasOwnProperty.call(globalThis,an)){let e=Object.create(null);Object.defineProperty(globalThis,an,{configurable:!0,get:()=>({state:globalThis[Rr].get(globalThis[An]),matchers:e})})}function Tr(e){return globalThis[Rr].get(e)}function Vn(e,t){let r=globalThis[Rr],o=r.get(t)||{};Object.assign(o,e),r.set(t,o)}function Ns(){let e=()=>ra(),t=e().green,r=e().red,o=e().inverse,a=e().bold,c=e().dim;function n(s,u="received",p="expected",d={}){let{comment:f="",isDirectExpectCall:m=!1,isNot:y=!1,promise:g="",secondArgument:h="",expectedColor:v=t,receivedColor:S=r,secondArgumentColor:E=t}=d,C="",A="expect";return!m&&u!==""&&(C+=c(`${A}(`)+S(u),A=")"),g!==""&&(C+=c(`${A}.`)+g,A=""),y&&(C+=`${c(`${A}.`)}not`,A=""),s.includes(".")?A+=s:(C+=c(`${A}.`)+s,A=""),p===""?A+="()":(C+=c(`${A}(`)+v(p),h&&(C+=c(", ")+E(h)),A=")"),f!==""&&(A+=` // ${f}`),A!==""&&(C+=c(A)),C}let i="·",l=s=>s.replace(/\s+$/gm,u=>i.repeat(u.length));return{EXPECTED_COLOR:t,RECEIVED_COLOR:r,INVERTED_COLOR:o,BOLD_WEIGHT:a,DIM_COLOR:c,matcherHint:n,printReceived:s=>r(l(bt(s))),printExpected:s=>t(l(bt(s)))}}function Se(e,t,r,o){return r=r||[],$s(e,t,[],[],r,o?Bs:Zv)}function ci(e){return!!e&&typeof e=="object"&&"asymmetricMatch"in e&&Rt("Function",e.asymmetricMatch)}function Qv(e,t){let r=ci(e),o=ci(t);if(!(r&&o)){if(r)return e.asymmetricMatch(t);if(o)return t.asymmetricMatch(e)}}function $s(e,t,r,o,a,c){let n=!0,i=Qv(e,t);if(i!==void 0)return i;for(let f=0;f<a.length;f++){let m=a[f](e,t);if(m!==void 0)return m}if(e instanceof Error&&t instanceof Error)return e.message===t.message;if(Object.is(e,t))return!0;if(e===null||t===null)return e===t;let l=Object.prototype.toString.call(e);if(l!==Object.prototype.toString.call(t))return!1;switch(l){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 f=+e,m=+t;return f===m||Number.isNaN(f)&&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(pi(e)&&pi(t))return e.isEqualNode(t);let s=r.length;for(;s--;){if(r[s]===e)return o[s]===t;if(o[s]===t)return!1}if(r.push(e),o.push(t),l==="[object Array]"&&e.length!==t.length)return!1;let u=di(e,c),p,d=u.length;if(di(t,c).length!==d)return!1;for(;d--;)if(p=u[d],n=c(t,p)&&$s(e[p],t[p],r,o,a,c),!n)return!1;return r.pop(),o.pop(),n}function di(e,t){let r=[];for(let o in e)t(e,o)&&r.push(o);return r.concat(Object.getOwnPropertySymbols(e).filter(o=>Object.getOwnPropertyDescriptor(e,o).enumerable))}function Zv(e,t){return Bs(e,t)&&e[t]!==void 0}function Bs(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Rt(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}function pi(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 e0="@@__IMMUTABLE_KEYED__@@",t0="@@__IMMUTABLE_SET__@@",Ds="@@__IMMUTABLE_ORDERED__@@";function r0(e){return!!(e&&e[e0]&&!e[Ds])}function n0(e){return!!(e&&e[t0]&&!e[Ds])}var ks=Symbol.iterator;function fi(e){return!!(e!=
|
|||
|
|
|||
|
If it should pass with deep equality, replace "toBe" with "${e}"
|
|||
|
|
|||
|
Expected: ${t}
|
|||
|
Received: serializes to the same string
|
|||
|
`:o}var zt=class{constructor(e,t=!1){Jt(this,"$$typeof",Symbol.for("jest.asymmetricMatcher"));this.sample=e,this.inverse=t}getMatcherContext(e){return{...Tr(e||globalThis[An]),equals:Se,isNot:this.inverse,utils:{...Ns(),diff:Pr,stringify:bt,iterableEquality:Ve,subsetEquality:aa}}}},bi=class extends zt{constructor(e,t=!1){if(!Rt("String",e))throw new Error("Expected is not a string");super(e,t)}asymmetricMatch(e){let t=Rt("String",e)&&e.includes(this.sample);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}},a0=class extends zt{asymmetricMatch(e){return e!=null}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}},gi=class extends zt{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;for(let r in this.sample)if(!this.hasProperty(e,r)||!Se(this.sample[r],e[r])){t=!1;break}return this.inverse?!t:t}toString(){return`Object${this.inverse?"Not":""}Containing`}getExpectedType(){return"object"}},vi=class extends zt{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.sample.length===0||Array.isArray(e)&&this.sample.every(r=>e.some(o=>Se(r,o)));return this.inverse?!t:t}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}},i0=class extends zt{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)}>`}},_i=class extends zt{constructor(e,t=!1){if(!Rt("String",e)&&!Rt("RegExp",e))throw new Error("Expected is not a String or a RegExp");super(new RegExp(e),t)}asymmetricMatch(e){let t=Rt("String",e)&&this.sample.test(e);return this.inverse?!t:t}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}},l0=(e,t)=>{t.addMethod(e.expect,"anything",()=>new a0),t.addMethod(e.expect,"any",r=>new i0(r)),t.addMethod(e.expect,"stringContaining",r=>new bi(r)),t.addMethod(e.expect,"objectContaining",r=>new gi(r)),t.addMethod(e.expect,"arrayContaining",r=>new vi(r)),t.addMethod(e.expect,"stringMatching",r=>new _i(r)),e.expect.not={stringContaining:r=>new bi(r,!0),objectContaining:r=>new gi(r,!0),arrayContaining:r=>new vi(r,!0),stringMatching:r=>new _i(r,!0)}};function Ei(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 Fs(e,t){return function(...r){var o;let a=e.flag(this,"vitest-test");if(!(a!=null&&a.context._local?a.context.expect.getState():Tr(globalThis[An])).soft)return t.apply(this,r);if(!a)throw new Error("expect.soft() can only be u
|
|||
|
|
|||
|
Received:
|
|||
|
|
|||
|
${u.mock.calls.map((f,m)=>{let y=o().bold(` ${i(m+1)} ${u.getMockName()} call:
|
|||
|
|
|||
|
`);return d?y+=Pr(d,f,{omitAnnotationLines:!0}):y+=bt(f).split(`
|
|||
|
`).map(g=>` ${g}`).join(`
|
|||
|
`),y+=`
|
|||
|
`,y}).join(`
|
|||
|
`)}`)),p+=o().gray(`
|
|||
|
|
|||
|
Number of calls: ${o().bold(u.mock.calls.length)}
|
|||
|
`),p),s=(u,p,d)=>(p+=o().gray(`
|
|||
|
|
|||
|
Received:
|
|||
|
|
|||
|
${u.mock.results.map((f,m)=>{let y=o().bold(` ${i(m+1)} ${u.getMockName()} call return:
|
|||
|
|
|||
|
`);return d?y+=Pr(d,f.value,{omitAnnotationLines:!0}):y+=bt(f).split(`
|
|||
|
`).map(g=>` ${g}`).join(`
|
|||
|
`),y+=`
|
|||
|
`,y}).join(`
|
|||
|
`)}`),p+=o().gray(`
|
|||
|
|
|||
|
Number of calls: ${o().bold(u.mock.calls.length)}
|
|||
|
`),p);a(["toHaveBeenCalledTimes","toBeCalledTimes"],function(u){let p=n(this),d=p.getMockName(),f=p.mock.calls.length;return this.assert(f===u,`expected "${d}" to be called #{exp} times, but got ${f} times`,`expected "${d}" to not be called #{exp} times`,u,f,!1)}),a("toHaveBeenCalledOnce",function(){let u=n(this),p=u.getMockName(),d=u.mock.calls.length;return this.assert(d===1,`expected "${p}" to be called once, but got ${d} times`,`expected "${p}" to not be called once`,1,d,!1)}),a(["toHaveBeenCalled","toBeCalled"],function(){let u=n(this),p=u.getMockName(),d=u.mock.calls.length,f=d>0,m=t.flag(this,"negate"),y=t.getMessage(this,[f,`expected "${p}" to be called at least once`,`expected "${p}" to not be called at all, but actually been called ${d} times`,!0,f]);if(f&&m&&(y=l(u,y)),f&&m||!f&&!m)throw new r(y)}),a(["toHaveBeenCalledWith","toBeCalledWith"],function(...u){let p=n(this),d=p.getMockName(),f=p.mock.calls.some(g=>Se(g,u,[Ve])),m=t.flag(this,"negate"),y=t.getMessage(this,[f,`expected "${d}" to be called with arguments: #{exp}`,`expected "${d}" to not be called with arguments: #{exp}`,u]);if(f&&m||!f&&!m)throw new r(l(p,y,u))}),a(["toHaveBeenNthCalledWith","nthCalledWith"],function(u,...p){let d=n(this),f=d.getMockName(),m=d.mock.calls[u-1];this.assert(Se(m,p,[Ve]),`expected ${i(u)} "${f}" call to have been called with #{exp}`,`expected ${i(u)} "${f}" call to not have been called with #{exp}`,p,m)}),a(["toHaveBeenLastCalledWith","lastCalledWith"],function(...u){let p=n(this),d=p.getMockName(),f=p.mock.calls[p.mock.calls.length-1];this.assert(Se(f,u,[Ve]),`expected last "${d}" call to have been called with #{exp}`,`expected last "${d}" call to not have been called with #{exp}`,u,f)}),a(["toThrow","toThrowError"],function(u){if(typeof u=="string"||typeof u>"u"||u instanceof RegExp)return this.throws(u);let p=this._obj,d=t.flag(this,"promise"),f=t.flag(this,"negate"),m=null;if(d==="rejects")m=p;else if(d==="resolves"&&typeof p!="function"){if(f)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"))}}else{let y=!1;try{p()}catch(g){y=!0,m=g}if(!y&&!f){let g=t.flag(this,"message")||"expected function to throw an error, but it didn't",h={showDiff:!1};throw new r(g,h,t.flag(this,"ssfi"))}}if(typeof u=="function"){let y=u.name||u.prototype.constructor.name;return this.assert(m&&m instanceof u,`expected error to be instance of ${y}`,`expected error not to be instance of ${y}`,u,m,!1)}if(u instanceof Error)return this.assert(m&&u.message===m.message,`expected error to have message: ${u.message}`,`expected error not to have message: ${u.message}`,u.message,m&&m.message);if(typeof u=="object"&&"asymmetricMatch"in u&&typeof u.asymmetricMatch=="function"){let y=u;return this.assert(m&&y.asymmetricMatch(m),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",y.toString(),m,!1)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof u}"`)}),a(["toHaveReturned","toReturn"],function(){let u=n(this),p=u.getMockName(),d=u.mock.calls.length>0&&u.mock.results.some(({type:f})=>f!=="throw");this.assert(d,`expected "${p}" to be successfully called at least once`,`expected "${p}" to not be successfully called`,d,!d,!1)}),a(["toHaveReturnedTimes","toReturnTimes"],function(u){let p=n(this),d=p.getMockName(),f=p.mock.results.reduce((m,{type:y})=>y==="throw"?m:++m,0);this.assert(f===u,`expected "${d}" to be successfully called ${u} times`,`expected "${d}" to not be successfully called ${u} times`,`expected number of returns: ${u}`,`received number of returns: ${f}`,!1)}),a(["toHaveReturnedWith","toReturnWith"],function(u){let p=n(this),d=p.getMockName(),f=p.mock.results.some(({type:g,value:h})=>g==="return"&&Se(u,h)),m=t.flag(this,"negate"),y=t.getMessage(this,[f,`expected "${d}" to return with: #{exp} at least once`,`expected "${d}" to not return with: #{exp}`,u]);if(f&&m||!f&&!m)throw new r(s(p,y,u))}),a(["toHaveLastReturnedWith","lastReturnedWith"],function(u
|
|||
|
`);o=~M?Z.length-M:o+Z.length}function c(){let Z={line:r,column:o};return function(q){return q.position=new Gs(Z,{line:r,column:o},(t==null?void 0:t.source)||""),f(),q}}let n=[];function i(Z){let q=new Vs((t==null?void 0:t.source)||"",Z,r,o,e);if(t!=null&&t.silent)n.push(q);else throw q}function l(){let Z=p();return{type:qe.stylesheet,stylesheet:{source:t==null?void 0:t.source,rules:Z,parsingErrors:n}}}function s(){return d(/^{\s*/)}function u(){return d(/^}/)}function p(){let Z,q=[];for(f(),m(q);e.length&&e.charAt(0)!=="}"&&(Z=ae()||ue());)Z&&(q.push(Z),m(q));return q}function d(Z){let q=Z.exec(e);if(!q)return;let M=q[0];return a(M),e=e.slice(M.length),q}function f(){d(/^\s*/)}function m(Z){let q;for(Z=Z||[];q=y();)q&&Z.push(q);return Z}function y(){let Z=c();if(e.charAt(0)!=="/"||e.charAt(1)!=="*")return;let q=d(/^\/\*[^]*?\*\//);return q?Z({type:qe.comment,comment:q[0].slice(2,-2)}):i("End of comment missing")}function g(){let Z=d(/^([^{]+)/);if(!Z)return;let q=Xe(Z[0]).replace(Wn,"");return q.indexOf(",")===-1?[q]:q.replace(/("|')(?:\\\1|.)*?\1|\(.*?\)/g,M=>M.replace(/,/g,"")).split(",").map(M=>Xe(M.replace(/\u200C/g,",")))}function h(){let Z=c(),q=d(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!q)return;let M=Xe(q[0]);if(!d(/^:\s*/))return i("property missing ':'");let F=d(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/),z=Z({type:qe.declaration,property:M.replace(Wn,""),value:F?Xe(F[0]).replace(Wn,""):""});return d(/^[;\s]*/),z}function v(){let Z=[];if(!s())return i("missing '{'");m(Z);let q;for(;q=h();)q&&(Z.push(q),m(Z));return u()?Z:i("missing '}'")}function S(){let Z,q=[],M=c();for(;Z=d(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)q.push(Z[1]),d(/^,\s*/);if(q.length)return M({type:qe.keyframe,values:q,declarations:v()||[]})}function E(){let Z=c(),q=d(/^@([-\w]+)?keyframes\s*/);if(!q)return;let M=q[1],F=d(/^([-\w]+)\s*/);if(!F)return i("@keyframes missing name");let z=F[1];if(!s())return i("@keyframes missing '{'");let X,$=m();for(;X=S();)$.push(X),$=$.concat(m());return u()?Z({type:qe.keyframes,name:z,vendor:M,keyframes:$}):i("@keyframes missing '}'")}function C(){let Z=c(),q=d(/^@supports *([^{]+)/);if(!q)return;let M=Xe(q[1]);if(!s())return i("@supports missing '{'");let F=m().concat(p());return u()?Z({type:qe.supports,supports:M,rules:F}):i("@supports missing '}'")}function A(){let Z=c();if(!d(/^@host\s*/))return;if(!s())return i("@host missing '{'");let q=m().concat(p());return u()?Z({type:qe.host,rules:q}):i("@host missing '}'")}function R(){let Z=c(),q=d(/^@container *([^{]+)/);if(!q)return;let M=Xe(q[1]);if(!s())return i("@container missing '{'");let F=m().concat(p());return u()?Z({type:qe.container,container:M,rules:F}):i("@container missing '}'")}function _(){let Z=c(),q=d(/^@layer *([^{;@]+)/);if(!q)return;let M=Xe(q[1]);if(!s())return d(/^[;\s]*/),Z({type:qe.layer,layer:M});let F=m().concat(p());return u()?Z({type:qe.layer,layer:M,rules:F}):i("@layer missing '}'")}function O(){let Z=c(),q=d(/^@media *([^{]+)/);if(!q)return;let M=Xe(q[1]);if(!s())return i("@media missing '{'");let F=m().concat(p());return u()?Z({type:qe.media,media:M,rules:F}):i("@media missing '}'")}function x(){let Z=c(),q=d(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(q)return Z({type:qe.customMedia,name:Xe(q[1]),media:Xe(q[2])})}function I(){let Z=c();if(!d(/^@page */))return;let q=g()||[];if(!s())return i("@page missing '{'");let M=m(),F;for(;F=h();)M.push(F),M=M.concat(m());return u()?Z({type:qe.page,selectors:q,declarations:M}):i("@page missing '}'")}function H(){let Z=c(),q=d(/^@([-\w]+)?document *([^{]+)/);if(!q)return;let M=Xe(q[1]),F=Xe(q[2]);if(!s())return i("@document missing '{'");let z=m().concat(p());return u()?Z({type:qe.document,document:F,vendor:M,rules:z}):i("@document missing '}'")}function V(){let Z=c();if(!d(/^@font-face\s*/))return;if(!s())return i("@font-face missing '{'");let q=m(),M;for(;M=h();)q.push(M),q=q.concat(m());return u()?Z({type:qe.fontFace,declarations:q}):i("@font-face missing '}'")}let L=oe("import"),re=oe("charset"),G=oe("namespace");function oe(Z){let q=new RegExp("^@"+Z+`\\s*((?::?[^;'
|
|||
|
`)}},qi=class extends nu{constructor(...e){super("be an HTMLElement or an SVGElement",...e)}},xi=class extends nu{constructor(...e){super("be a Node",...e)}};function ou(e,t,...r){if(!e||!e.ownerDocument||!e.ownerDocument.defaultView)throw new t(e,...r)}function u1(e,...t){ou(e,xi,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.Node))throw new xi(e,...t)}function Ee(e,...t){ou(e,qi,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.HTMLElement)&&!(e instanceof r.SVGElement))throw new qi(e,...t)}var c1=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 d1(e,...t){let r=h0(`selector { ${e} }`,{silent:!0}).stylesheet;if(r.parsingErrors&&r.parsingErrors.length>0){let{reason:o,line:a}=r.parsingErrors[0];throw new c1({css:e,message:`Syntax error parsing expected css: ${o} on line: ${a}`},...t)}return r.rules[0].declarations.filter(o=>o.type==="declaration").reduce((o,{property:a,value:c})=>Object.assign(o,{[a]:c}),{})}function Mi(e,t){return typeof t=="string"?t:e.utils.stringify(t)}function Ue(e,t,r,o,a,c){return[`${t}
|
|||
|
`,`${r}:
|
|||
|
${e.utils.EXPECTED_COLOR((0,Si.default)(Mi(e,o),2))}`,`${a}:
|
|||
|
${e.utils.RECEIVED_COLOR((0,Si.default)(Mi(e,c),2))}`].join(`
|
|||
|
`)}function p1(e,t){return t instanceof RegExp?t.test(e):e.includes(String(t))}function xn(e,t){console.warn(`Warning: ${e} has been deprecated and will be removed in future updates.`,t)}function Mn(e){return e.replace(/\s+/g," ").trim()}function Tt(e){return e.tagName&&e.tagName.toLowerCase()}function f1({multiple:e,options:t}){let r=[...t].filter(o=>o.selected);if(e)return[...r].map(o=>o.value);if(r.length!==0)return r[0].value}function m1(e){switch(e.type){case"number":return e.value===""?null:Number(e.value);case"checkbox":return e.checked;default:return e.value}}function au(e){if(e)switch(e.tagName.toLowerCase()){case"input":return m1(e);case"select":return f1(e);default:return e.value}}function iu(e,t){if(Array.isArray(e)&&Array.isArray(t))return(0,p0.default)(new Set(e),new Set(t))}function y1(e,{wordConnector:t=", ",lastWordConnector:r=" and "}={}){return[e.slice(0,-1).join(t),e[e.length-1]].join(e.length>1?r:"")}function fo(e,t){return xn("toBeInTheDOM","Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."),e&&Ee(e,fo,this),t&&Ee(t,fo,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 lu(e){(e!==null||!this.isNot)&&Ee(e,lu,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`,o=()=>"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():o())].join(`
|
|||
|
`)}}function su(e){return xn("toBeEmpty","Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."),Ee(e,su,this),{pass:e.innerHTML==="",message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmpty`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|||
|
`)}}function uu(e){return Ee(e,uu,this),{pass:h1(e),message:()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmptyDOMElement`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|||
|
`)}}function h1(e){return[...e.childNodes].filter(t=>t.nodeType!==8).length===0}function mo(e,t){return Ee(e,mo,this),t!==null&&Ee(t,mo,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))}
|
|||
|
`)].join(`
|
|||
|
`)}}function b1(e,t){let r=e.ownerDocument.createElement("div");return r.innerHTML=t,r.innerHTML}function cu(e,t){if(Ee(e,cu,this),typeof t!="string")throw new Error(`.toContainHTML() expects a string value, got ${t}`);return{pass:e.outerHTML.includes(b1(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(`
|
|||
|
`)}}function du(e,t,r={normalizeWhitespace:!0}){u1(e,du,this);let o=r.normalizeWhitespace?Mn(e.textContent):e.textContent.replace(/\u00a0/g," "),a=o!==""&&t==="";return{pass:!a&&p1(o,t),message:()=>{let c=this.isNot?"not to":"to";return Ue(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveTextContent`,"element",""),a?"Checking with empty string will always match, use .toBeEmptyDOMElement() instead":`Expected element ${c} have text content`,t,"Received",o)}}}function yo(e,t){Ee(e,yo,this);let r=la(e),o=arguments.length===1,a=!1;return o?a=r!=="":a=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:a,message:()=>{let c=this.isNot?"not to":"to";return Ue(this,this.utils.matcherHint(`${this.isNot?".not":""}.${yo.name}`,"element",""),`Expected element ${c} have accessible description`,t,"Received",r)}}}var Er="aria-invalid",g1=["false"];function pu(e,t){var i;Ee(e,pu,this);let r=this.isNot?"not to":"to",o=this.isNot?".not.toHaveAccessibleErrorMessage":".toHaveAccessibleErrorMessage",a=e.getAttribute("aria-errormessage");if(a&&/\s+/.test(a))return{pass:!1,message:()=>Ue(this,this.utils.matcherHint(o,"element"),"Expected element's `aria-errormessage` attribute to be empty or a single, valid ID","","Received",`aria-errormessage="${a}"`)};let c=e.getAttribute(Er);if(!e.hasAttribute(Er)||g1.includes(c))return{pass:!1,message:()=>Ue(this,this.utils.matcherHint(o,"element"),"Expected element to be marked as invalid with attribute",`${Er}="${String(!0)}"`,"Received",e.hasAttribute("aria-invalid")?`${Er}="${e.getAttribute(Er)}`:null)};let n=Mn(((i=e.ownerDocument.getElementById(a))==null?void 0:i.textContent)??"");return{pass:t===void 0?!!n:t instanceof RegExp?t.test(n):this.equals(n,t),message:()=>Ue(this,this.utils.matcherHint(o,"element"),`Expected element ${r} have accessible error message`,t??"","Received",n)}}function ho(e,t){Ee(e,ho,this);let r=qn(e),o=arguments.length===1,a=!1;return o?a=r!=="":a=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:a,message:()=>{let c=this.isNot?"not to":"to";return Ue(this,this.utils.matcherHint(`${this.isNot?".not":""}.${ho.name}`,"element",""),`Expected element ${c} have accessible name`,t,"Received",r)}}}function ji(e,t,r){return r===void 0?t:`${t}=${e(r)}`}function v1(e,t,r){return r===void 0?`element.hasAttribute(${e(t)})`:`element.getAttribute(${e(t)}) === ${e(r)}`}function fu(e,t,r){Ee(e,fu,this);let o=r!==void 0,a=e.hasAttribute(t),c=e.getAttribute(t);return{pass:o?a&&this.equals(c,r):a,message:()=>{let n=this.isNot?"not to":"to",i=a?ji(this.utils.stringify,t,c):null,l=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveAttribute`,"element",this.utils.printExpected(t),{secondArgument:o?this.utils.printExpected(r):void 0,comment:v1(this.utils.stringify,t,r)});return Ue(this,l,`Expected the element ${n} have attribute`,ji(this.utils.stringify,t,r),"Received",i)}}}function _1(e){let t=e.pop(),r,o;return typeof t=="object"?(r=e,o=t):(r=e.concat(t),o={exact:!1}),{expectedClassNames:r,options:o}}function Ii(e){return e?e.split(/\s+/).filter(t=>t.length>0):[]}function Ni(e,t){return e.every(r=>t.includes(r))}function mu(e,...t){Ee(e,mu,this);let{expectedClassNames:r,options:o}=_1(t),a=Ii(e.getAttribute("class")),c=r.reduce((n,i)=>n.concat(Ii(i)),[]);return o.exact?{pass:Ni(c,a)&&c.length===a.length,message:()=>{let n=this.isNot?"not to":"to";return Ue(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(c.join(" "))),`Expected the element ${n} have EXACTLY defined classes`,c.join(" "),"Received",a.join(" "))}}:c.length>0?{pass:Ni(c,a),message:()=>{let n=this.isNot?"not to":"to";return Ue(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(c.join(" "))),`Expected the element ${n} have class`,c.join(" "),"Received",a.join(" "))}}:{pass:this.isNot?a.length>0:!1,message:()=>this.isNot?Ue(this,this.utils.matcherHint(".not.toHaveClass","element",""),"Expected the element to have classes","(none)","Received",a.join(" ")):[this.utils.matcherHint(".toHaveClass","element"),"At least one expe
|
|||
|
`)}}function E1(e,t){let r={},o=e.createElement("div");return Object.keys(t).forEach(a=>{o.style[a]=t[a],r[a]=o.style[a]}),r}function w1(e,t){return!!Object.keys(e).length&&Object.entries(e).every(([r,o])=>t[r]===o||t.getPropertyValue(r.toLowerCase())===o)}function $i(e){return Object.keys(e).sort().map(t=>`${t}: ${e[t]};`).join(`
|
|||
|
`)}function S1(e,t,r){let o=Array.from(r).filter(a=>t[a]!==void 0).reduce((a,c)=>Object.assign(a,{[c]:r.getPropertyValue(c)}),{});return e($i(t),$i(o)).replace(`${i1.default.red("+ Received")}
|
|||
|
`,"")}function bo(e,t){Ee(e,bo,this);let r=typeof t=="object"?t:d1(t,bo,this),{getComputedStyle:o}=e.ownerDocument.defaultView,a=E1(e.ownerDocument,r),c=o(e);return{pass:w1(a,c),message:()=>{let n=`${this.isNot?".not":""}.toHaveStyle`;return[this.utils.matcherHint(n,"element",""),S1(this.utils.diff,a,c)].join(`
|
|||
|
|
|||
|
`)}}}function yu(e){return Ee(e,yu,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 C1(e){let t=(0,l1.default)(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(o=>o.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 O1(e,t){let r=[...e.querySelectorAll(`[name="${(0,s1.default)(t)}"]`)];if(r.length!==0)switch(r.length){case 1:return au(r[0]);default:return C1(r)}}function P1(e){return/\[\]$/.test(e)?e.slice(0,-2):e}function R1(e){return Array.from(e.elements).map(t=>t.name).reduce((t,r)=>({...t,[P1(r)]:O1(e,r)}),{})}function hu(e,t){if(Ee(e,hu,this),!e.elements)throw new Error("toHaveFormValues must be called on a form or a fieldset");let r=R1(e);return{pass:Object.entries(t).every(([o,a])=>(0,tu.default)(r[o],a,iu)),message:()=>{let o=this.isNot?"not to":"to",a=`${this.isNot?".not":""}.toHaveFormValues`,c=Object.keys(r).filter(n=>t.hasOwnProperty(n)).reduce((n,i)=>({...n,[i]:r[i]}),{});return[this.utils.matcherHint(a,"element",""),`Expected the element ${o} have form values`,this.utils.diff(t,c)].join(`
|
|||
|
|
|||
|
`)}}}function T1(e){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:o,opacity:a}=t(e);return r!=="none"&&o!=="hidden"&&o!=="collapse"&&a!=="0"&&a!==0}function A1(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 bu(e,t){return T1(e)&&A1(e,t)&&(!e.parentElement||bu(e.parentElement,e))}function gu(e){Ee(e,gu,this);let t=e.ownerDocument===e.getRootNode({composed:!0}),r=t&&bu(e);return{pass:r,message:()=>{let o=r?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeVisible`,"element",""),"",`Received element ${o} visible${t?"":" (element is not in the document)"}:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|||
|
`)}}}var q1=["fieldset","input","select","optgroup","option","button","textarea"];function x1(e,t){return Tt(e)==="legend"&&Tt(t)==="fieldset"&&e.isSameNode(Array.from(t.children).find(r=>Tt(r)==="legend"))}function M1(e,t){return _u(t)&&!x1(e,t)}function j1(e){return e.includes("-")}function vu(e){let t=Tt(e);return q1.includes(t)||j1(t)}function _u(e){return vu(e)&&e.hasAttribute("disabled")}function Eu(e){let t=e.parentElement;return!!t&&(M1(e,t)||Eu(t))}function wu(e){return vu(e)&&(_u(e)||Eu(e))}function Su(e){Ee(e,Su,this);let t=wu(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(`
|
|||
|
`)}}}function Cu(e){Ee(e,Cu,this);let t=!wu(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(`
|
|||
|
`)}}}var I1=["select","textarea"],N1=["input","select","textarea"],$1=["color","hidden","range","submit","image","reset"],B1=["combobox","gridcell","radiogroup","spinbutton","tree"];function D1(e){return I1.includes(Tt(e))&&e.hasAttribute("required")}function k1(e){return Tt(e)==="input"&&e.hasAttribute("required")&&(e.hasAttribute("type")&&!$1.includes(e.getAttribute("type"))||!e.hasAttribute("type"))}function L1(e){return e.hasAttribute("aria-required")&&e.getAttribute("aria-required")==="true"&&(N1.includes(Tt(e))||e.hasAttribute("role")&&B1.includes(e.getAttribute("role")))}function Ou(e){Ee(e,Ou,this);let t=D1(e)||k1(e)||L1(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(`
|
|||
|
`)}}}var F1=["form","input","select","textarea"];function U1(e){return e.hasAttribute("aria-invalid")&&e.getAttribute("aria-invalid")!=="false"}function H1(e){return F1.includes(Tt(e))}function Pu(e){let t=U1(e);return H1(e)?t||!e.checkValidity():t}function Ru(e){Ee(e,Ru,this);let t=Pu(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(`
|
|||
|
`)}}}function Tu(e){Ee(e,Tu,this);let t=!Pu(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(`
|
|||
|
`)}}}function Au(e,t){if(Ee(e,Au,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=au(e),o=t!==void 0,a=t,c=r;return t==r&&t!==r&&(a=`${t} (${typeof t})`,c=`${r} (${typeof r})`),{pass:o?(0,tu.default)(r,t,iu):!!r,message:()=>{let n=this.isNot?"not to":"to",i=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveValue`,"element",t);return Ue(this,i,`Expected the element ${n} have value`,o?a:"(any)","Received",c)}}}function qu(e,t){Ee(e,qu,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 o=z1(r,e),a=V1(t),c=a.filter(l=>o.some(s=>l instanceof RegExp?l.test(s):this.equals(s,String(l)))).length,n=c===o.length,i=c===a.length;return{pass:n&&i,message:()=>Ue(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDisplayValue`,"element",""),`Expected element ${this.isNot?"not ":""}to have display value`,t,"Received",o)}}function z1(e,t){return e==="select"?Array.from(t).filter(r=>r.selected).map(r=>r.textContent):[t.value]}function V1(e){return e instanceof Array?e:[e]}function xu(e){Ee(e,xu,this);let t=()=>e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type),r=()=>Mu(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 ${W1()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`};let o=()=>t()?e.checked:e.getAttribute("aria-checked")==="true";return{pass:o(),message:()=>{let a=o()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeChecked`,"element",""),"",`Received element ${a} checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|||
|
`)}}}function W1(){return y1(G1().map(e=>`role="${e}"`),{lastWordConnector:" or "})}function G1(){return ru.roles.keys().filter(Mu)}function Mu(e){var t;return((t=ru.roles.get(e))==null?void 0:t.props["aria-checked"])!==void 0}function ju(e){Ee(e,ju,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 o=()=>{let a=e.getAttribute("aria-checked")==="mixed";return t()&&e.indeterminate||a};return{pass:o(),message:()=>{let a=o()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyChecked`,"element",""),"",`Received element ${a} partially checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|||
|
`)}}}function Iu(e,t){xn("toHaveDescription","Please use toHaveAccessibleDescription."),Ee(e,Iu,this);let r=t!==void 0,o=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean),a="";if(o.length>0){let c=e.ownerDocument,n=o.map(i=>c.getElementById(i)).filter(Boolean);a=Mn(n.map(i=>i.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(a):this.equals(a,t):!!a,message:()=>{let c=this.isNot?"not to":"to";return Ue(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDescription`,"element",""),`Expected the element ${c} have description`,this.utils.printExpected(t),"Received",this.utils.printReceived(a))}}}function Nu(e,t){if(xn("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),Ee(e,Nu,this),!e.hasAttribute("aria-invalid")||e.getAttribute("aria-invalid")==="false"){let c=this.isNot?".not":"";return{pass:!1,message:()=>Ue(this,this.utils.matcherHint(`${c}.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,o=(e.getAttribute("aria-errormessage")||"").split(/\s+/).filter(Boolean),a="";if(o.length>0){let c=e.ownerDocument,n=o.map(i=>c.getElementById(i)).filter(Boolean);a=Mn(n.map(i=>i.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(a):this.equals(a,t):!!a,message:()=>{let c=this.isNot?"not to":"to";return Ue(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveErrorMessage`,"element",""),`Expected the element ${c} have error message`,this.utils.printExpected(t),"Received",this.utils.printReceived(a))}}}_e(Bl(),1);_e(Ql(),1);_e(es(),1);_e(ts(),1);_e(rs(),1);_e(ns(),1);_e(Zo(),1);function K1(){Hn(d0),Hn(s0),Hn(l0);let e=(o,a)=>{let{assertionCalls:c}=Tr(e);return Vn({assertionCalls:c+1,soft:!1},e),Un(o,a)};Object.assign(e,Un),e.getState=()=>Tr(e),e.setState=o=>Vn(o,e),e.extend=o=>Un.extend(e,o),e.soft=(...o)=>{let a=e(...o);return e.setState({soft:!0}),a},e.unreachable=o=>{cv.fail(`expected${o?` "${o}" `:" "}not to be reached`)};function t(o){let a=()=>new Error(`expected number of assertions to be ${o}, but got ${e.getState().assertionCalls}`);"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(a(),t),e.setState({expectedAssertionsNumber:o,expectedAssertionsNumberErrorGen:a})}function r(){let o=new Error("expected any number of assertion, but got none");"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o,r),e.setState({isExpectingAssertions:!0,isExpectingAssertionsError:o})}return Vn({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},e),on.addMethod(e,"assertions",t),on.addMethod(e,"hasAssertions",r),e.extend(Us),e}var $u=K1();Object.defineProperty(globalThis,An,{value:$u,writable:!0,configurable:!0});var sa=new Set;function Y1(){sa.forEach(e=>e.mockClear())}function J1(){sa.forEach(e=>e.mockReset())}function X1(){sa.forEach(e=>e.mockRestore())}var Bu={};xl(Bu,{buildQueries:()=>_t,configure:()=>v_,createEvent:()=>Or,findAllByAltText:()=>Mc,findAllByDisplayValue:()=>Pc,findAllByLabelText:()=>ac,findAllByPlaceholderText:()=>mc,findAllByRole:()=>Vc,findAllByTestId:()=>Xc,findAllByText:()=>_c,findAllByTitle:()=>Dc,findByAltText:()=>jc,findByDisplayValue:()=>Rc,findByLabelText:()=>ic,findByPlaceholderText:()=>yc,findByRole:()=>Wc,findByTestId:()=>Qc,findByText:()=>Ec,findByTitle:()=>kc,fireEvent:()=>jr,getAllByAltText:()=>qc,getAllByDisplayValue:()=>Cc,getAllByLabelText:()=>lc,getAllByPlaceholderText:()=>pc,getAllByRole:()=>Hc,getAllByTestId:()=>Yc,getAllByText:()=>gc,getAllByTitle:()=>$c,getByAltText:()=>xc,getByDisplayValue:()=>Oc,getByLabelText:()=>sc,getByPlaceholderText:()=>fc,getByRole:()=>zc,getByTestId:()=>Jc,getByText:()=>vc,getByTitle:()=>Bc,getConfig:()=>ge,getDefaultNormalizer:()=>fa,getElementError:()=>In,getMultipleElementsFoundError:()=>Nn,getNodeText:()=>Fr,getQueriesFor
|
|||
|
`)!==-1&&(p=r.spacingOuter+i+p+r.spacingOuter+o),p="{"+p+"}"),r.spacingInner+o+l.prop.open+s+l.prop.close+"="+l.value.open+p+l.value.close}).join("")},e_=3,t_=(e,t,r,o,a,c)=>e.map(n=>{let i=typeof n=="string"?ku(n,t):c(n,t,r,o,a);return i===""&&typeof n=="object"&&n!==null&&n.nodeType!==e_?"":t.spacingOuter+r+i}).join(""),ku=(e,t)=>{let r=t.colors.content;return r.open+Du(e)+r.close},r_=(e,t)=>{let r=t.colors.comment;return r.open+"<!--"+Du(e)+"-->"+r.close},n_=(e,t,r,o,a)=>{let c=o.colors.tag;return c.open+"<"+e+(t&&c.close+t+o.spacingOuter+a+c.open)+(r?">"+c.close+r+o.spacingOuter+a+c.open+"</"+e:(t&&!o.min?"":" ")+"/")+">"+c.close},o_=(e,t)=>{let r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close},a_=1,Lu=3,Fu=8,Uu=11,i_=/^((HTML|SVG)\w*)?Element$/,l_=e=>{let t=e.constructor.name,{nodeType:r,tagName:o}=e,a=typeof o=="string"&&o.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is");return r===a_&&(i_.test(t)||a)||r===Lu&&t==="Text"||r===Fu&&t==="Comment"||r===Uu&&t==="DocumentFragment"};function s_(e){return e.nodeType===Lu}function u_(e){return e.nodeType===Fu}function Gn(e){return e.nodeType===Uu}function c_(e){return{test:t=>{var r;return(t==null||(r=t.constructor)==null?void 0:r.name)&&l_(t)},serialize:(t,r,o,a,c,n)=>{if(s_(t))return ku(t.data,r);if(u_(t))return r_(t.data,r);let i=Gn(t)?"DocumentFragment":t.tagName.toLowerCase();return++a>r.maxDepth?o_(i,r):n_(i,Z1(Gn(t)?[]:Array.from(t.attributes).map(l=>l.name).sort(),Gn(t)?{}:Array.from(t.attributes).reduce((l,s)=>(l[s.name]=s.value,l),{}),r,o+r.indent,a,c,n),t_(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,o+r.indent,a,c,n),r,o)}}}var Hu=null,ca=null,da=null;try{let e=module&&module.require;ca=e.call(module,"fs").readFileSync,da=e.call(module,"@babel/code-frame").codeFrameColumns,Hu=e.call(module,"chalk")}catch{}function d_(e){let t=e.indexOf("(")+1,r=e.indexOf(")"),o=e.slice(t,r),a=o.split(":"),[c,n,i]=[a[0],parseInt(a[1],10),parseInt(a[2],10)],l="";try{l=ca(c,"utf-8")}catch{return""}let s=da(l,{start:{line:n,column:i}},{highlightCode:!0,linesBelow:0});return Hu.dim(o)+`
|
|||
|
`+s+`
|
|||
|
`}function p_(){if(!ca||!da)return"";let e=new Error().stack.split(`
|
|||
|
`).slice(1).find(t=>!t.includes("node_modules/"));return d_(e)}var zu=3;function Kn(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}function pa(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}function Vu(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 vt(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 f_=()=>{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:m_}=ua.plugins,y_=1,h_=8;function b_(e){return e.nodeType!==h_&&(e.nodeType!==y_||!e.matches(ge().defaultIgnore))}function xr(e,t,r){if(r===void 0&&(r={}),e||(e=pa().body),typeof t!="number"&&(t=typeof process<"u"&&{}.DEBUG_PRINT_LIMIT||7e3),t===0)return"";e.documentElement&&(e=e.documentElement);let o=typeof e;if(o==="object"?o=e.constructor.name:e={},!("outerHTML"in e))throw new TypeError("Expected an element or document but got "+o);let{filterNode:a=b_,...c}=r,n=ua.format(e,{plugins:[c_(a),m_],printFunctionName:!1,highlight:f_(),...c});return t!==void 0&&e.outerHTML.length>t?n.slice(0,t)+"...":n}var go=function(){let e=p_();console.log(e?xr(...arguments)+`
|
|||
|
|
|||
|
`+e:xr(...arguments))},It={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=xr(t),o=new Error([e,"Ignored nodes: comments, "+It.defaultIgnore+`
|
|||
|
`+r].filter(Boolean).join(`
|
|||
|
|
|||
|
`));return o.name="TestingLibraryElementError",o},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function g_(e){try{return It._disableExpensiveErrorDiagnostics=!0,e()}finally{It._disableExpensiveErrorDiagnostics=!1}}function v_(e){typeof e=="function"&&(e=e(It)),It={...It,...e}}function ge(){return It}var __=["button","meter","output","progress","select","textarea","input"];function Wu(e){return __.includes(e.nodeName.toLowerCase())?"":e.nodeType===zu?e.textContent:Array.from(e.childNodes).map(t=>Wu(t)).join("")}function vo(e){let t;return e.tagName.toLowerCase()==="label"?t=Wu(e):t=e.value||e.textContent,t}function Gu(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!E_(e))return[];let r=e.ownerDocument.querySelectorAll("label");return Array.from(r).filter(o=>o.control===e)}function E_(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}function Ku(e,t,r){let{selector:o="*"}=r===void 0?{}:r,a=t.getAttribute("aria-labelledby"),c=a?a.split(" "):[];return c.length?c.map(n=>{let i=e.querySelector('[id="'+n+'"]');return i?{content:vo(i),formControl:null}:{content:"",formControl:null}}):Array.from(Gu(t)).map(n=>{let i=vo(n),l="button, input, meter, output, progress, select, textarea",s=Array.from(n.querySelectorAll(l)).filter(u=>u.matches(o))[0];return{content:i,formControl:s}})}function Yu(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 mr(e,t,r,o){if(typeof e!="string")return!1;Yu(r);let a=o(e);return typeof r=="string"||typeof r=="number"?a.toLowerCase().includes(r.toString().toLowerCase()):typeof r=="function"?r(a,t):Ju(r,a)}function ht(e,t,r,o){if(typeof e!="string")return!1;Yu(r);let a=o(e);return r instanceof Function?r(a,t):r instanceof RegExp?Ju(r,a):a===String(r)}function fa(e){let{trim:t=!0,collapseWhitespace:r=!0}=e===void 0?{}:e;return o=>{let a=o;return a=t?a.trim():a,a=r?a.replace(/\s+/g," "):a,a}}function Vt(e){let{trim:t,collapseWhitespace:r,normalizer:o}=e;if(!o)return fa({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 o}function Ju(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 Fr(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===zu&&!!t.textContent).map(t=>t.textContent).join("")}var w_=S_(Qe.elementRoles);function Xu(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}function jn(e,t){t===void 0&&(t={});let{isSubtreeInaccessible:r=Xu}=t;if(e.ownerDocument.defaultView.getComputedStyle(e).visibility==="hidden")return!0;let o=e;for(;o;){if(r(o))return!0;o=o.parentElement}return!1}function ma(e){for(let{match:t,roles:r}of w_)if(t(e))return[...r];return[]}function S_(e){function t(n){let{name:i,attributes:l}=n;return""+i+l.map(s=>{let{name:u,value:p,constraints:d=[]}=s;return d.indexOf("undefined")!==-1?":not(["+u+"])":p?"["+u+'="'+p+'"]':"["+u+"]"}).join("")}function r(n){let{attributes:i=[]}=n;return i.length}function o(n,i){let{specificity:l}=n,{specificity:s}=i;return s-l}function a(n){let{attributes:i=[]}=n,l=i.findIndex(u=>u.value&&u.name==="type"&&u.value==="text");l>=0&&(i=[...i.slice(0,l),...i.slice(l+1)]);let s=t({...n,attributes:i});return u=>l>=0&&u.type!=="text"?!1:u.matches(s)}let c=[];for(let[n,i]of e.entries())c=[...c,{match:a(n),roles:Array.from(i),specificity:r(n)}];return c.sort(o)}function Qu(e,t){let{hidden:r=!1}=t===void 0?{}:t;function
|
|||
|
`,d=xr(u.cloneNode(!1));if(o){let f='Description "'+la(u,{computedStyleSupportsPseudoElements:ge().computedStyleSupportsPseudoElements})+`":
|
|||
|
`;return""+p+f+d}return""+p+d}).join(`
|
|||
|
|
|||
|
`);return n+`:
|
|||
|
|
|||
|
`+s+`
|
|||
|
|
|||
|
`+l}).join(`
|
|||
|
`)}var C_=function(e,t){let{hidden:r=!1}=t===void 0?{}:t;return console.log(Zu(e,{hidden:r}))};function O_(e){return e.tagName==="OPTION"?e.selected:Ur(e,"aria-selected")}function P_(e){return e.getAttribute("aria-busy")==="true"}function R_(e){if(!("indeterminate"in e&&e.indeterminate))return"checked"in e?e.checked:Ur(e,"aria-checked")}function T_(e){return Ur(e,"aria-pressed")}function A_(e){var t,r;return(t=(r=Ur(e,"aria-current"))!=null?r:e.getAttribute("aria-current"))!=null?t:!1}function q_(e){return Ur(e,"aria-expanded")}function Ur(e,t){let r=e.getAttribute(t);if(r==="true")return!0;if(r==="false")return!1}function x_(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 M_(e){let t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}function j_(e){let t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}function I_(e){let t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}function N_(e){let t=e.getAttribute("aria-valuetext");return t===null?void 0:t}var Bi=fa();function $_(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}function Di(e){return new RegExp($_(e.toLowerCase()),"i")}function Ot(e,t,r,o){let{variant:a,name:c}=o,n="",i={},l=[["Role","TestId"].includes(e)?r:Di(r)];c&&(i.name=Di(c)),e==="Role"&&jn(t)&&(i.hidden=!0,n=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
|
|||
|
If you are using the aria-hidden prop, make sure this is the right choice for your case.
|
|||
|
`),Object.keys(i).length>0&&l.push(i);let s=a+"By"+e;return{queryName:e,queryMethod:s,queryArgs:l,variant:a,warning:n,toString(){n&&console.warn(n);let[u,p]=l;return u=typeof u=="string"?"'"+u+"'":u,p=p?", { "+Object.entries(p).map(d=>{let[f,m]=d;return f+": "+m}).join(", ")+" }":"",s+"("+u+p+")"}}}function Pt(e,t,r){return r&&(!t||t.toLowerCase()===e.toLowerCase())}function sn(e,t,r){var o,a;if(t===void 0&&(t="get"),e.matches(ge().defaultIgnore))return;let c=(o=e.getAttribute("role"))!=null?o:(a=ma(e))==null?void 0:a[0];if(c!=="generic"&&Pt("Role",r,c))return Ot("Role",e,c,{variant:t,name:qn(e,{computedStyleSupportsPseudoElements:ge().computedStyleSupportsPseudoElements})});let n=Ku(document,e).map(d=>d.content).join(" ");if(Pt("LabelText",r,n))return Ot("LabelText",e,n,{variant:t});let i=e.getAttribute("placeholder");if(Pt("PlaceholderText",r,i))return Ot("PlaceholderText",e,i,{variant:t});let l=Bi(Fr(e));if(Pt("Text",r,l))return Ot("Text",e,l,{variant:t});if(Pt("DisplayValue",r,e.value))return Ot("DisplayValue",e,Bi(e.value),{variant:t});let s=e.getAttribute("alt");if(Pt("AltText",r,s))return Ot("AltText",e,s,{variant:t});let u=e.getAttribute("title");if(Pt("Title",r,u))return Ot("Title",e,u,{variant:t});let p=e.getAttribute(ge().testIdAttribute);if(Pt("TestId",r,p))return Ot("TestId",e,p,{variant:t})}function Wr(e,t){e.stack=t.stack.replace(t.message,e.message)}function B_(e,t){let{container:r=pa(),timeout:o=ge().asyncUtilTimeout,showOriginalStackTrace:a=ge().showOriginalStackTrace,stackTraceError:c,interval:n=50,onTimeout:i=s=>(Object.defineProperty(s,"message",{value:ge().getElementError(s.message,r).message}),s),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(s,u)=>{let p,d,f,m=!1,y="idle",g=setTimeout(C,o),h=Kn();if(h){let{unstable_advanceTimersWrapper:A}=ge();for(E();!m;){if(!Kn()){let R=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||Wr(R,c),u(R);return}if(await A(async()=>{jest.advanceTimersByTime(n)}),E(),m)break}}else{try{vt(r)}catch(R){u(R);return}d=setInterval(S,n);let{MutationObserver:A}=Vu(r);f=new A(S),f.observe(r,l),E()}function v(A,R){m=!0,clearTimeout(g),h||(clearInterval(d),f.disconnect()),A?u(A):s(R)}function S(){if(Kn()){let A=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||Wr(A,c),u(A)}else return E()}function E(){if(y!=="pending")try{let A=g_(e);typeof(A==null?void 0:A.then)=="function"?(y="pending",A.then(R=>{y="resolved",v(null,R)},R=>{y="rejected",p=R})):v(null,A)}catch(A){p=A}}function C(){let A;p?(A=p,!a&&A.name==="TestingLibraryElementError"&&Wr(A,c)):(A=new Error("Timed out in waitFor."),a||Wr(A,c)),v(i(A),null)}})}function ya(e,t){let r=new Error("STACK_TRACE_MESSAGE");return ge().asyncWrapper(()=>B_(e,{stackTraceError:r,...t}))}function In(e,t){return ge().getElementError(e,t)}function Nn(e,t){return In(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}function Wt(e,t,r,o){let{exact:a=!0,collapseWhitespace:c,trim:n,normalizer:i}=o===void 0?{}:o,l=a?ht:mr,s=Vt({collapseWhitespace:c,trim:n,normalizer:i});return Array.from(t.querySelectorAll("["+e+"]")).filter(u=>l(u.getAttribute(e),u,r,s))}function ec(e,t,r,o){let a=Wt(e,t,r,o);if(a.length>1)throw Nn("Found multiple elements by ["+e+"="+r+"]",t);return a[0]||null}function ar(e,t){return function(r){for(var o=arguments.l
|
|||
|
|
|||
|
`);throw Nn(t(r,...a)+`
|
|||
|
|
|||
|
Here are the matching elements:
|
|||
|
|
|||
|
`+i,r)}return n[0]||null}}function tc(e,t){return ge().getElementError(`A better query is available, try this:
|
|||
|
`+e.toString()+`
|
|||
|
`,t)}function ha(e,t){return function(r){for(var o=arguments.length,a=new Array(o>1?o-1:0),c=1;c<o;c++)a[c-1]=arguments[c];let n=e(r,...a);if(!n.length)throw ge().getElementError(t(r,...a),r);return n}}function ir(e){return(t,r,o,a)=>ya(()=>e(t,r,o),{container:t,...a})}var At=(e,t,r)=>function(o){for(var a=arguments.length,c=new Array(a>1?a-1:0),n=1;n<a;n++)c[n-1]=arguments[n];let i=e(o,...c),[{suggest:l=ge().throwSuggestions}={}]=c.slice(-1);if(i&&l){let s=sn(i,r);if(s&&!t.endsWith(s.queryName))throw tc(s.toString(),o)}return i},We=(e,t,r)=>function(o){for(var a=arguments.length,c=new Array(a>1?a-1:0),n=1;n<a;n++)c[n-1]=arguments[n];let i=e(o,...c),[{suggest:l=ge().throwSuggestions}={}]=c.slice(-1);if(i.length&&l){let s=[...new Set(i.map(u=>{var p;return(p=sn(u,r))==null?void 0:p.toString()}))];if(s.length===1&&!t.endsWith(sn(i[0],r).queryName))throw tc(s[0],o)}return i};function _t(e,t,r){let o=At(ar(e,t),e.name,"query"),a=ha(e,r),c=ar(a,t),n=At(c,e.name,"get"),i=We(a,e.name.replace("query","get"),"getAll"),l=ir(We(a,e.name,"findAll")),s=ir(At(c,e.name,"find"));return[o,i,n,l,s]}var D_=Object.freeze({__proto__:null,getElementError:In,wrapAllByQueryWithSuggestion:We,wrapSingleQueryWithSuggestion:At,getMultipleElementsFoundError:Nn,queryAllByAttribute:Wt,queryByAttribute:ec,makeSingleQuery:ar,makeGetAllQuery:ha,makeFindQuery:ir,buildQueries:_t});function k_(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:vo(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}var L_=function(e,t,r){let{exact:o=!0,trim:a,collapseWhitespace:c,normalizer:n}=r===void 0?{}:r,i=o?ht:mr,l=Vt({collapseWhitespace:c,trim:a,normalizer:n});return k_(e).filter(s=>{let{node:u,textToMatch:p}=s;return i(p,u,t,l)}).map(s=>{let{node:u}=s;return u})},Mr=function(e,t,r){let{selector:o="*",exact:a=!0,collapseWhitespace:c,trim:n,normalizer:i}=r===void 0?{}:r;vt(e);let l=a?ht:mr,s=Vt({collapseWhitespace:c,trim:n,normalizer:i}),u=Array.from(e.querySelectorAll("*")).filter(p=>Gu(p).length||p.hasAttribute("aria-labelledby")).reduce((p,d)=>{let f=Ku(e,d,{selector:o});f.filter(y=>!!y.formControl).forEach(y=>{l(y.content,y.formControl,t,s)&&y.formControl&&p.push(y.formControl)});let m=f.filter(y=>!!y.content).map(y=>y.content);return l(m.join(" "),d,t,s)&&p.push(d),m.length>1&&m.forEach((y,g)=>{l(y,d,t,s)&&p.push(d);let h=[...m];h.splice(g,1),h.length>1&&l(h.join(" "),d,t,s)&&p.push(d)}),p},[]).concat(Wt("aria-label",e,t,{exact:a,normalizer:s}));return Array.from(new Set(u)).filter(p=>p.matches(o))},Nt=function(e,t){for(var r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];let c=Mr(e,t,...o);if(!c.length){let n=L_(e,t,...o);if(n.length){let i=n.map(l=>F_(e,l)).filter(l=>!!l);throw i.length?ge().getElementError(i.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(`
|
|||
|
|
|||
|
`),e):ge().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 ge().getElementError("Unable to find a label with the text of: "+t,e)}return c};function F_(e,t){let r=t.getAttribute("for");if(!r)return null;let o=e.querySelector('[id="'+r+'"]');return o?o.tagName.toLowerCase():null}var rc=(e,t)=>"Found multiple elements with the text of: "+t,nc=At(ar(Mr,rc),Mr.name,"query"),oc=ar(Nt,rc),ac=ir(We(Nt,Nt.name,"findAll")),ic=ir(At(oc,Nt.name,"find")),lc=We(Nt,Nt.name,"getAll"),sc=At(oc,Nt.name,"get"),uc=We(Mr,Mr.name,"queryAll"),_o=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return vt(t[0]),Wt("placeholder",...t)},U_=(e,t)=>"Found multiple elements with the placeholder text of: "+t,H_=(e,t)=>"Unable to find an element with the placeholder text of: "+t,cc=We(_o,_o.name,"queryAll"),[dc,pc,fc,mc,yc]=_t(_o,U_,H_),Eo=function(e,t,r){let{selector:o="*",exact:a=!0,collapseWhitespace:c,trim:n,ignore:i=ge().defaultIgnore,normalizer:l}=r===void 0?{}:r;vt(e);let s=a?ht:mr,u=Vt({collapseWhitespace:c,trim:n,normalizer:l}),p=[];return typeof e.matches=="function"&&e.matches(o)&&(p=[e]),[...p,...Array.from(e.querySelectorAll(o))].filter(d=>!i||!d.matches(i)).filter(d=>s(Fr(d),d,t,u))},z_=(e,t)=>"Found multiple elements with the text: "+t,V_=function(e,t,r){r===void 0&&(r={});let{collapseWhitespace:o,trim:a,normalizer:c,selector:n}=r,i=Vt({collapseWhitespace:o,trim:a,normalizer:c})(t.toString()),l=i!==t.toString(),s=(n??"*")!=="*";return"Unable to find an element with the text: "+(l?i+" (normalized from '"+t+"')":t)+(s?", which matches selector '"+n+"'":"")+". 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."},hc=We(Eo,Eo.name,"queryAll"),[bc,gc,vc,_c,Ec]=_t(Eo,z_,V_),wo=function(e,t,r){let{exact:o=!0,collapseWhitespace:a,trim:c,normalizer:n}=r===void 0?{}:r;vt(e);let i=o?ht:mr,l=Vt({collapseWhitespace:a,trim:c,normalizer:n});return Array.from(e.querySelectorAll("input,textarea,select")).filter(s=>s.tagName==="SELECT"?Array.from(s.options).filter(u=>u.selected).some(u=>i(Fr(u),u,t,l)):i(s.value,s,t,l))},W_=(e,t)=>"Found multiple elements with the display value: "+t+".",G_=(e,t)=>"Unable to find an element with the display value: "+t+".",wc=We(wo,wo.name,"queryAll"),[Sc,Cc,Oc,Pc,Rc]=_t(wo,W_,G_),K_=/^(img|input|area|.+-.+)$/i,So=function(e,t,r){return r===void 0&&(r={}),vt(e),Wt("alt",e,t,r).filter(o=>K_.test(o.tagName))},Y_=(e,t)=>"Found multiple elements with the alt text: "+t,J_=(e,t)=>"Unable to find an element with the alt text: "+t,Tc=We(So,So.name,"queryAll"),[Ac,qc,xc,Mc,jc]=_t(So,Y_,J_),X_=e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},Co=function(e,t,r){let{exact:o=!0,collapseWhitespace:a,trim:c,normalizer:n}=r===void 0?{}:r;vt(e);let i=o?ht:mr,l=Vt({collapseWhitespace:a,trim:c,normalizer:n});return Array.from(e.querySelectorAll("[title], svg > title")).filter(s=>i(s.getAttribute("title"),s,t,l)||X_(s)&&i(Fr(s),s,t,l))},Q_=(e,t)=>"Found multiple elements with the title: "+t+".",Z_=(e,t)=>"Unable to find an element with the title: "+t+".",Ic=We(Co,Co.name,"queryAll"),[Nc,$c,Bc,Dc,kc]=_t(Co,Q_,Z_),Oo=function(e,t,r){let{hidden:o=ge().defaultHidden,name:a,description:c,queryFallbacks:n=!1,selected:i,busy:l,checked:s,pressed:u,current:p,level:d,expanded:f,value:{now:m,min:y,max:g,text:h}={}}=r===void 0?{}:r;if(vt(e),i!==void 0){var v;if(((v=Qe.roles.get(t))==null?void 0:v.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(l!==void 0){var S;if(((S=Qe.roles.get(t))==null?void 0:S.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(s!==void 0){var E;if(((E=Qe.roles.get(t))==null?void 0:E.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not
|
|||
|
Here are the `+(o===!1?"accessible":"available")+` roles:
|
|||
|
|
|||
|
`+n.replace(/\n/g,`
|
|||
|
`).replace(/\n\s\s\n/g,`
|
|||
|
|
|||
|
`)+`
|
|||
|
`).trim();let l="";a===void 0?l="":typeof a=="string"?l=' and name "'+a+'"':l=" and name `"+a+"`";let s="";return c===void 0?s="":typeof c=="string"?s=' and description "'+c+'"':s=" and description `"+c+"`",(`
|
|||
|
Unable to find an `+(o===!1?"accessible ":"")+'element with the role "'+t+'"'+l+s+`
|
|||
|
|
|||
|
`+i).trim()},Fc=We(Oo,Oo.name,"queryAll"),[Uc,Hc,zc,Vc,Wc]=_t(Oo,tE,rE),ba=()=>ge().testIdAttribute,Po=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return vt(t[0]),Wt(ba(),...t)},nE=(e,t)=>"Found multiple elements by: ["+ba()+'="'+t+'"]',oE=(e,t)=>"Unable to find an element by: ["+ba()+'="'+t+'"]',Gc=We(Po,Po.name,"queryAll"),[Kc,Yc,Jc,Xc,Qc]=_t(Po,nE,oE),un=Object.freeze({__proto__:null,queryAllByLabelText:uc,queryByLabelText:nc,getAllByLabelText:lc,getByLabelText:sc,findAllByLabelText:ac,findByLabelText:ic,queryByPlaceholderText:dc,queryAllByPlaceholderText:cc,getByPlaceholderText:fc,getAllByPlaceholderText:pc,findAllByPlaceholderText:mc,findByPlaceholderText:yc,queryByText:bc,queryAllByText:hc,getByText:vc,getAllByText:gc,findAllByText:_c,findByText:Ec,queryByDisplayValue:Sc,queryAllByDisplayValue:wc,getByDisplayValue:Oc,getAllByDisplayValue:Cc,findAllByDisplayValue:Pc,findByDisplayValue:Rc,queryByAltText:Ac,queryAllByAltText:Tc,getByAltText:xc,getAllByAltText:qc,findAllByAltText:Mc,findByAltText:jc,queryByTitle:Nc,queryAllByTitle:Ic,getByTitle:Bc,getAllByTitle:$c,findAllByTitle:Dc,findByTitle:kc,queryByRole:Uc,queryAllByRole:Fc,getAllByRole:Hc,getByRole:zc,findAllByRole:Vc,findByRole:Wc,queryByTestId:Kc,queryAllByTestId:Gc,getByTestId:Jc,getAllByTestId:Yc,findAllByTestId:Xc,findByTestId:Qc});function Ro(e,t,r){return t===void 0&&(t=un),r===void 0&&(r={}),Object.keys(t).reduce((o,a)=>{let c=t[a];return o[a]=c.bind(null,e),o},r)}var Zc=e=>!e||Array.isArray(e)&&!e.length;function ki(e){if(Zc(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 aE(e,t){let r=new Error("Timed out in waitForElementToBeRemoved.");if(typeof e!="function"){ki(e);let o=(Array.isArray(e)?e:[e]).map(a=>{let c=a.parentElement;if(c===null)return()=>null;for(;c.parentElement;)c=c.parentElement;return()=>c.contains(a)?a:null});e=()=>o.map(a=>a()).filter(Boolean)}return ki(e()),ya(()=>{let o;try{o=e()}catch(a){if(a.name==="TestingLibraryElementError")return;throw a}if(!Zc(o))throw r},t)}var Li={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 sE(e){return Q1.default.compressToEncodedURIComponent(lE(e))}function uE(e){return"https://testing-playground.com/#markup="+sE(e)}var cE=(e,t,r)=>Array.isArray(e)?e.forEach(o=>go(o,t,r)):go(e,t,r),dE=function(e){if(e===void 0&&(e=pa().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=uE(e.innerHTML);return console.log(`Open this URL in your browser
|
|||
|
|
|||
|
`+t),t},Ui={debug:cE,logTestingPlaygroundURL:dE},pE=typeof document<"u"&&document.body?Ro(document.body,un,Ui):Object.keys(un).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),Ui),fE=_e(uv(),1),mE=_e(ws(),1),ed=_e(ws(),1),td=Object.defineProperty,yE=Object.defineProperties,hE=Object.getOwnPropertyDescriptors,Hi=Object.getOwnPropertySymbols,bE=Object.prototype.hasOwnProperty,gE=Object.prototype.propertyIsEnumerable,vE=Math.pow,zi=(e,t,r)=>t in e?td(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,he=(e,t)=>{for(var r in t||(t={}))bE.call(t,r)&&zi(e,r,t[r]);if(Hi)for(var r of Hi(t))gE.call(t,r)&&zi(e,r,t[r]);return e},Ie=(e,t)=>yE(e,hE(t)),rd=(e,t)=>{for(var r in t)td(e,r,{get:t[r],enumerable:!0})},be=(e,t,r)=>new Promise((o,a)=>{var c=l=>{try{i(r.next(l))}catch(s){a(s)}},n=l=>{try{i(r.throw(l))}catch(s){a(s)}},i=l=>l.done?o(l.value):Promise.resolve(l.value).then(c,n);i((r=r.apply(e,t)).next())});function fe(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(([o,a])=>e[o]===a):!0}var _E=["button","color","file","image","reset","submit","checkbox","radio"];function EE(e){return fe(e,"button")||fe(e,"input")&&_E.includes(e.type)}function nd(e,t){return new Promise((r,o)=>{let a=new t;a.onerror=o,a.onabort=o,a.onload=()=>{r(String(a.result))},a.readAsText(e)})}function ga(e,t){let r=Ie(he({},t),{length:t.length,item:o=>r[o],[Symbol.iterator]:function*(){for(let o=0;o<r.length;o++)yield r[o]}});return r.constructor=e.FileList,Object.setPrototypeOf(r,e.FileList.prototype),Object.freeze(r),r}var od=class{constructor(e,t){this.file=null,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)}getAsFile(){return this.file}getAsString(e){typeof this.data=="string"&&e(this.data)}webkitGetAsEntry(){throw new Error("not implemented")}},wE=class extends Array{add(...e){let t=new od(e[0],e[1]);return this.push(t),t}clear(){this.splice(0,this.length)}remove(e){this.splice(e,1)}};function Gr(e,t){let[r,o]=e.split("/"),a=!o||o==="*";return c=>t?c.type===(a?r:e):a?c.type.startsWith(`${r}/`):c.type===r}function SE(e){return new class{constructor(){this.dropEffect="none",this.effectAllowed="uninitialized",this.items=new wE,this.files=ga(e,[])}getData(t){var r;let o=(r=this.items.find(Gr(t,!0)))!=null?r:this.items.find(Gr(t,!1)),a="";return o==null||o.getAsString(c=>{a=c}),a}setData(t,r){let o=this.items.findIndex(Gr(t,!0)),a=new od(r,t);o>=0?this.items.splice(o,1,a):this.items.push(a)}clearData(t){if(t){let r=this.items.findIndex(Gr(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(){}}}function va(e,t=[]){let r=typeof e.DataTransfer>"u"?SE(e):new e.DataTransfer;return Object.defineProperty(r,"files",{get:()=>ga(e,t)}),r}function CE(e,t){if(t.kind==="file")return t.getAsFile();let r="";return t.getAsString(o=>{r=o}),new e.Blob([r],{type:t.type})}function Et(e){return(0,fE.getWindowFromNode)(e)}function ad(e,...t){let r=Object.fromEntries(t.map(o=>[typeof o=="string"?"text/plain":o.type,Promise.resolve(o)]));return typeof e.ClipboardItem<"u"?new e.ClipboardItem(r):new class{constructor(o){this.data=o}get types(){return Array.from(Object.keys(this.data))}getType(o){return be(this,null,function*(){let a=yield this.data[o];if(!a)throw new Error(`${o} is not one of the available MIME types on this item.`);return a instanceof e.Blob?a:new e.Blob([a],{type:o})})}}(r)}var lr=Symbol("Manage ClipboardSub");function Vi(e,t){return Object.assign(new class extends e.EventTarget{constructor(){super(...arguments),this.items=[]}read(){return be(this,null,function*(){return Array.from(this.items)})}readText(){return be(this,null,function*(){let r="";for(let o of this.it
|
|||
|
See ${o==="pointer"?"https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen":"https://testing-library.com/docs/user-event/keyboard"}
|
|||
|
for more information about how userEvent parses your input.`}function nw(e){return new e.constructor(e.type,e)}function ow(e){return aw(e)?e:e.ownerDocument}function aw(e){return e.nodeType===9}function Xi(e,t){let r=e;do{if(r===t)return!0;r=r.parentElement}while(r);return!1}var nn=Symbol("Api level refs");function Nr(e,t){e[nn]!=null||(e[nn]={}),e[nn][t]={}}function Jr(e,t){var r;return(r=e[nn])==null?void 0:r[t]}function cr(e){let t=e.delay;if(typeof t=="number")return Promise.all([new Promise(r=>globalThis.setTimeout(()=>r(),t)),e.advanceTimers(t)])}var iw=[..."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:1},{code:"AltRight",key:"Alt",location:2},{code:"ShiftLeft",key:"Shift",location:1},{code:"ShiftRight",key:"Shift",location:2},{code:"ControlLeft",key:"Control",location:1},{code:"ControlRight",key:"Control",location:2},{code:"MetaLeft",key:"Meta",location:1},{code:"MetaRight",key:"Meta",location:2},{code:"OSLeft",key:"OS",location:1},{code:"OSRight",key:"OS",location:2},{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"}],lw=[{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"}],vd={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:iw,pointerMap:lw,pointerEventsCheck:2,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:()=>Promise.resolve()},sw=Ie(he({},vd),{writeToClipboard:!0});function Ao(e,t){var r;return((r=_d(e,t))==null?void 0:r.pointerEvents)!=="none"}function uw(e){let t=Et(e);for(let r=e,o=[];r!=null&&r.ownerDocument;r=r.parentElement){o.push(r);let a=t.getComputedStyle(r).pointerEvents;if(a&&!["inherit","unset"].includes(a))return{pointerEvents:a,tree:o}}}var Qi=Symbol("Last check for pointer-events");function _d(e,t){let r=t[Qi];if(!(e.pointerEventsCheck!==0&&(!r||Zi(e.pointerEventsCheck,2)&&r[1]!==Jr(e,1)||Zi(e.pointerEventsCheck,4)&&r[2]!==Jr(e,2))))return r==null?void 0:r.result;let o=uw(t);return t[Qi]={1:Jr(e,1),2:Jr(e,2),result:o},o}function Bn(e,t){let r=_d(e,t);if((r==null?void 0:r.pointerEvents)==="none")throw new Error([`Unable to perform pointer interaction as the element ${r.tree.length>1?"inherits":"has"} \`pointer-events: none\`:`,"",cw(r.tree)].join(`
|
|||
|
`))}function cw(e){return e.reverse().map((t,r)=>["".padEnd(r),t.tagName,t.id&&`#${t.id}`,t.hasAttribute("data-testid")&&`(testId=${t.getAttribute("data-testid")})`,dw(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(`
|
|||
|
`)}function dw(e){var t,r,o,a;let c;return e.hasAttribute("aria-label")?c=e.getAttribute("aria-label"):e.hasAttribute("aria-labelledby")?c=(r=(t=e.ownerDocument.getElementById(e.getAttribute("aria-labelledby")))==null?void 0:t.textContent)==null?void 0:r.trim():fe(e,["button","input","meter","output","progress","select","textarea"])&&(o=e.labels)!=null&&o.length?c=Array.from(e.labels).map(n=>{var i;return(i=n.textContent)==null?void 0:i.trim()}).join("|"):fe(e,"button")&&(c=(a=e.textContent)==null?void 0:a.trim()),c=c==null?void 0:c.replace(/\n/g," "),Number(c==null?void 0:c.length)>30&&(c=`${c==null?void 0:c.substring(0,29)}…`),c?`(label=${c})`:""}function Zi(e,t){return(e&t)>0}var Ed={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4},el={auxiliary:1,secondary:2,1:2,2:1};function pw(e){return e in el?el[e]:typeof e=="number"?e:Ed[e]}function fw(...e){let t=0;for(let r of e){let o=typeof r=="number"?r:Ed[r];t|=vE(2,o)}return t}var wd=Ie(he({},mE.eventMap),{beforeInput:{EventType:"InputEvent",defaultInit:{bubbles:!0,cancelable:!0,composed:!0}}}),mw=Object.fromEntries(Object.keys(wd).map(e=>[e.toLowerCase(),e])),tl=Object.fromEntries(Object.keys(ed.eventMap).map(e=>[e.toLowerCase(),e]));function Sd(e){return e in tl?ed.eventMap[tl[e]].EventType:"Event"}var yw=["MouseEvent","PointerEvent"];function Cd(e){return yw.includes(Sd(e))}function hw(e){return Sd(e)==="KeyboardEvent"}function bw(e,t,r){let o=Or(e,t,r,wd[mw[e]]);return Cd(e)&&r&&(gw(o,r),vw(o,r)),o}function Od(e,t){for(let[r,o]of Object.entries(t))Object.defineProperty(e,r,{get:()=>o})}function gw(e,{x:t,y:r,clientX:o,clientY:a,offsetX:c,offsetY:n,pageX:i,pageY:l,screenX:s,screenY:u}){var p,d,f,m;Od(e,{x:(p=t??o)!=null?p:0,y:(d=r??a)!=null?d:0,clientX:(f=t??o)!=null?f:0,clientY:(m=r??a)!=null?m:0,offsetX:c??0,offsetY:n??0,pageX:i??0,pageY:l??0,screenX:s??0,screenY:u??0})}function vw(e,{isPrimary:t,pointerId:r,pointerType:o}){Od(e,{isPrimary:t,pointerId:r,pointerType:o})}var Gt={};Gt.click=(e,t,r)=>{let o=t.closest("button,input,label,select,textarea"),a=o&&fe(o,"label")&&o.control;if(a)return()=>{Ea(a)&&qt(a),Pd(r,a,nw(e))};if(fe(t,"input",{type:"file"}))return()=>{KE(t),t.dispatchEvent(new(Et(t)).Event("fileDialog")),qt(t)}};Gt.cut=(e,t,r)=>()=>{ur(t)&&sr(r,t,"","deleteByCut")};Gt.keydown=(e,t,r)=>{var o,a;return(a=(o=rl[e.key])==null?void 0:o.call(rl,e,t,r))!=null?a:_w(e,t,r)};var rl={ArrowDown:(e,t,r)=>{if(fe(t,"input",{type:"radio"}))return()=>Yr(r,t,-1)},ArrowLeft:(e,t,r)=>fe(t,"input",{type:"radio"})?()=>Yr(r,t,-1):()=>Ji(t,-1),ArrowRight:(e,t,r)=>fe(t,"input",{type:"radio"})?()=>Yr(r,t,1):()=>Ji(t,1),ArrowUp:(e,t,r)=>{if(fe(t,"input",{type:"radio"}))return()=>Yr(r,t,1)},Backspace:(e,t,r)=>{if(ur(t))return()=>{sr(r,t,"","deleteContentBackward")}},Delete:(e,t,r)=>{if(ur(t))return()=>{sr(r,t,"","deleteContentForward")}},End:(e,t)=>{if(fe(t,["input","textarea"])||$t(t))return()=>{var r,o;let a=(o=(r=To(t))==null?void 0:r.length)!=null?o:0;wr(t,a,a)}},Home:(e,t)=>{if(fe(t,["input","textarea"])||$t(t))return()=>{wr(t,0,0)}},PageDown:(e,t)=>{if(fe(t,["input"]))return()=>{let r=To(t).length;wr(t,r,r)}},PageUp:(e,t)=>{if(fe(t,["input"]))return()=>{wr(t,0,0)}},Tab:(e,t,{keyboardState:r})=>()=>{let o=XE(t,r.modifiers.Shift);qt(o),yr(o)&&hr(o,{anchorOffset:0,focusOffset:o.value.length})}},_w=(e,t,r)=>{if(e.code==="KeyA"&&r.keyboardState.modifiers.Control)return()=>yd(t)};Gt.keypress=(e,t,r)=>{if(e.key==="Enter"){if(fe(t,"button")||fe(t,"input")&&Ew.includes(t.type)||fe(t,"a")&&t.href)return()=>{Ne(r,t,"click")};if(fe(t,"input")){let o=t.form,a=o==null?void 0:o.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');return a?()=>Ne(r,a,"click"):o&&ww.includes(t.type)&&o.querySelectorAll("input").length===1?()=>Ne(r,o,"submit"):void 0}}if(ur(t)){let o=e.key==="Enter"?$t(t)&&!r.keyboardState.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",a=e.key==="Enter"?`
|
|||
|
`:e.key;return()=>sr(r,t,a,o)}};var Ew=["button","color","file","image","reset","submit"],ww=["email","month","password","search","tel","text","url","week"];Gt.keyup=(e,t,r)=>{var o;return(o=nl[e.key])==null?void 0:o.call(nl,e,t,r)};var nl={" ":(e,t,r)=>{if(EE(t))return()=>Ne(r,t,"click")}};Gt.paste=(e,t,r)=>{if(ur(t))return()=>{var o;let a=(o=e.clipboardData)==null?void 0:o.getData("text");a&&sr(r,t,a,"insertFromPaste")}};function ol(e,t){return ge().eventWrapper(e)}function Pd(e,t,r,o=!1){var a,c;let n=r.type,i=o?()=>{}:(c=(a=Gt)[n])==null?void 0:c.call(a,r,t,e);if(i){r.preventDefault();let l=!1;return Object.defineProperty(r,"defaultPrevented",{get:()=>l}),Object.defineProperty(r,"preventDefault",{value:()=>{l=r.cancelable}}),ol(()=>t.dispatchEvent(r)),l||i(),!l}return ol(()=>t.dispatchEvent(r))}function Ne(e,t,r,o,a=!1){(Cd(r)||hw(r))&&(o=he(he({},o),ZE(e.keyboardState)));let c=bw(r,t,o);return Pd(e,t,c,a)}function Sw(e){return Ne.bind(void 0,e)}var Yn=Symbol("Interceptor for programmatical calls");function Zt(e,t,r){let o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=Object.getOwnPropertyDescriptor(e,t),c=o!=null&&o.set?"set":"value";if(typeof(o==null?void 0:o[c])!="function"||o[c][Yn])throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);function n(...i){let{applyNative:l=!1,realArgs:s,then:u}=r.call(this,...i),p=(!l&&a||o)[c];c==="set"?p.call(this,s):p.call(this,...s),u==null||u()}n[Yn]=Yn,Object.defineProperty(e,t,Ie(he({},a??o),{[c]:n}))}var Ge=Symbol("Displayed selection in UI");function Cw(e){Zt(e,"setSelectionRange",function(t,...r){let o=t&&typeof t=="object"&&t[Ge];return o||(this[Ge]=void 0),{applyNative:!!o,realArgs:[Number(t),...r]}}),Zt(e,"selectionStart",function(t){return this[Ge]=void 0,{realArgs:t}}),Zt(e,"selectionEnd",function(t){return this[Ge]=void 0,{realArgs:t}}),Zt(e,"select",function(){return this[Ge]={anchorOffset:0,focusOffset:wt(e).length},{realArgs:[]}})}function hr(e,{focusOffset:t,anchorOffset:r=t},o="replace"){let a=wt(e).length,c=p=>Math.max(0,Math.min(a,p)),n=o==="replace"||e[Ge]===void 0?c(r):e[Ge].anchorOffset,i=c(t),l=Math.min(n,i),s=Math.max(n,i);if(e[Ge]={anchorOffset:n,focusOffset:i},e.selectionStart===l&&e.selectionEnd===s)return;let u=new Number(l);u[Ge]=Ge;try{e.setSelectionRange(u,s)}catch{}}function $r(e){var t,r,o;let a=(o=e[Ge])!=null?o:{anchorOffset:(t=e.selectionStart)!=null?t:0,focusOffset:(r=e.selectionEnd)!=null?r:0};return Ie(he({},a),{startOffset:Math.min(a.anchorOffset,a.focusOffset),endOffset:Math.max(a.anchorOffset,a.focusOffset)})}function Ow(e){return!!e[Ge]}function Pw(e){e[Ge]=void 0}var Dt=Symbol("Displayed value in UI"),dn=Symbol("Initial value to compare on blur"),Br=Symbol("Track programmatic changes for React workaround");function Rw(e){let t=typeof e=="object"&&e[Dt];return t&&(this[Dt]=String(e),jw(this)),{applyNative:!!t,realArgs:Tw(this,e),then:t?void 0:()=>Iw(this,String(e))}}function Tw(e,t){return fe(e,"input",{type:"number"})&&String(t)!==""&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}function Aw(e){Zt(e,"value",Rw)}function qw(e,t){e[dn]===void 0&&(e[dn]=e.value),e.value={[Dt]:Dt,toString:()=>t}}function wt(e){return e[Dt]===void 0?e.value:String(e[Dt])}function Ca(e){e[Dt]=void 0}function Rd(e){e[dn]=void 0}function xw(e){return e[dn]}function Mw(e){return Object.getOwnPropertyNames(e).some(t=>t.startsWith("__react"))&&Et(e).REACT_VERSION===17}function jw(e){Mw(e)&&(e[Br]={previousValue:String(e.value),tracked:[]})}function Iw(e,t){var r,o;(o=(r=e[Br])==null?void 0:r.tracked)==null||o.push(t),e[Br]||(Ca(e),hr(e,{focusOffset:t.length}))}function Nw(e,t){var r;let o=e[Br];if(e[Br]=void 0,!((r=o==null?void 0:o.tracked)!=null&&r.length))return;let a=o.tracked.length===2&&o.tracked[0]===o.previousValue&&o.tracked[1]===e.value;a||Ca(e),Ow(e)&&hr(e,{focusOffset:a?t:e.value.length})}function $w(e){Zt(e,"setRangeText",function(...t){return{realArgs:t,then:()=>{Ca(e),Pw(e)}}})}var er=Symbol("Node prepared with document state workarounds");function Td(e){e[er]||(e.addEventListener("focus",t=>{let r=t.targe
|
|||
|
[ ]{`+Math.min.apply(Math,a)+"}","g");o=o.map(function(i){return i.replace(c,`
|
|||
|
`)})}o[0]=o[0].replace(/^\r?\n/,"");var n=o[0];return t.forEach(function(i,l){var s=n.match(/(?:^|\n)( *)$/),u=s?s[1]:"",p=i;typeof i=="string"&&i.includes(`
|
|||
|
`)&&(p=String(i).split(`
|
|||
|
`).map(function(d,f){return f===0?d:""+u+d}).join(`
|
|||
|
`)),n+=p+o[l+1]}),n}var VS=zS,jo=ko({...Bu},{intercept:(e,t)=>t[0]==="fireEvent"||e.startsWith("find")||e.startsWith("waitFor")});jo.screen=new Proxy(jo.screen,{get(e,t,r){return gf.warn(VS`
|
|||
|
You are using Testing Library's \`screen\` object. Use \`within(canvasElement)\` instead.
|
|||
|
More info: https://storybook.js.org/docs/react/essentials/interactions
|
|||
|
`),Reflect.get(e,t,r)}});var{buildQueries:oC,configure:aC,createEvent:iC,fireEvent:lC,findAllByAltText:sC,findAllByDisplayValue:uC,findAllByLabelText:cC,findAllByPlaceholderText:dC,findAllByRole:pC,findAllByTestId:fC,findAllByText:mC,findAllByTitle:yC,findByAltText:hC,findByDisplayValue:bC,findByLabelText:gC,findByPlaceholderText:vC,findByRole:_C,findByTestId:EC,findByText:wC,findByTitle:SC,getAllByAltText:CC,getAllByDisplayValue:OC,getAllByLabelText:PC,getAllByPlaceholderText:RC,getAllByRole:TC,getAllByTestId:AC,getAllByText:qC,getAllByTitle:xC,getByAltText:MC,getByDisplayValue:jC,getByLabelText:IC,getByPlaceholderText:NC,getByRole:$C,getByTestId:BC,getByText:DC,getByTitle:kC,getConfig:LC,getDefaultNormalizer:FC,getElementError:UC,getNodeText:HC,getQueriesForElement:zC,getRoles:VC,getSuggestedQuery:WC,isInaccessible:GC,logDOM:KC,logRoles:YC,prettyDOM:JC,queries:XC,queryAllByAltText:QC,queryAllByAttribute:ZC,queryAllByDisplayValue:eO,queryAllByLabelText:tO,queryAllByPlaceholderText:rO,queryAllByRole:nO,queryAllByTestId:oO,queryAllByText:aO,queryAllByTitle:iO,queryByAltText:lO,queryByAttribute:sO,queryByDisplayValue:uO,queryByLabelText:cO,queryByPlaceholderText:dO,queryByRole:pO,queryByTestId:fO,queryByText:mO,queryByTitle:yO,queryHelpers:hO,screen:bO,waitFor:gO,waitForElementToBeRemoved:vO,within:WS,prettyFormat:_O}=jo,{userEvent:GS}=ko({userEvent:HS},{intercept:!0}),{expect:Jn}=ko({expect:$u},{getKeys:(e,t)=>{let r=["assert","__methods","__flags","_obj"];if(e.constructor===dv.Assertion){let o=Object.keys(Object.getPrototypeOf(e)).filter(a=>!r.includes(a));return t>2?o:[...o,"not"]}return Object.keys(e)},intercept:e=>e!=="expect"}),KS=({parameters:e})=>{var t,r,o;((t=e==null?void 0:e.test)==null?void 0:t.mockReset)===!0?J1():((r=e==null?void 0:e.test)==null?void 0:r.clearMocks)===!0?Y1():((o=e==null?void 0:e.test)==null?void 0:o.restoreMocks)!==!1&&X1()};pv.__STORYBOOK_TEST_LOADERS__=[KS];function YS(e){let t,r,o,a,c=`<h2>Pages in Storybook</h2> <p>We recommend building UIs with a
|
|||
|
<a href="https://blog.hichroma.com/component-driven-development-ce1109d56c8e" target="_blank" rel="noopener noreferrer"><strong>component-driven</strong></a>
|
|||
|
process starting with atomic components and ending with pages.</p> <p>Render pages with mock data. This makes it easy to build and review page states without
|
|||
|
needing to navigate to them in your app. Here are some handy patterns for managing page data
|
|||
|
in Storybook:</p> <ul><li>Use a higher-level connected component. Storybook helps you compose such data from the
|
|||
|
"args" of child component stories</li> <li>Assemble data in the page component from your services. You can mock these services out
|
|||
|
using Storybook.</li></ul> <p>Get a guided tutorial on component-driven development at
|
|||
|
<a href="https://storybook.js.org/tutorials/" target="_blank" rel="noopener noreferrer">Storybook tutorials</a>
|
|||
|
. Read more in the
|
|||
|
<a href="https://storybook.js.org/docs" target="_blank" rel="noopener noreferrer">docs</a>
|
|||
|
.</p> <div class="tip-wrapper"><span class="tip">Tip</span>
|
|||
|
Adjust the width of the canvas with the
|
|||
|
<svg width="10" height="10" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M1.5 5.2h4.8c.3 0 .5.2.5.4v5.1c-.1.2-.3.3-.4.3H1.4a.5.5 0
|
|||
|
01-.5-.4V5.7c0-.3.2-.5.5-.5zm0-2.1h6.9c.3 0 .5.2.5.4v7a.5.5 0 01-1 0V4H1.5a.5.5 0
|
|||
|
010-1zm0-2.1h9c.3 0 .5.2.5.4v9.1a.5.5 0 01-1 0V2H1.5a.5.5 0 010-1zm4.3 5.2H2V10h3.8V6.2z" id="a" fill="#999"></path></g></svg>
|
|||
|
Viewports addon in the toolbar</div>`,n;return r=new np({props:{user:e[0]}}),r.$on("login",e[1]),r.$on("logout",e[2]),r.$on("createAccount",e[3]),{c(){t=Aa("article"),Xd(r.$$.fragment),o=Hd(),a=Aa("section"),a.innerHTML=c,this.h()},l(i){t=qa(i,"ARTICLE",{});var l=zd(t);Qd(r.$$.fragment,l),o=Vd(l),a=qa(l,"SECTION",{class:!0,"data-svelte-h":!0}),Wd(a)!=="svelte-qf4cyw"&&(a.innerHTML=c),l.forEach(xa),this.h()},h(){Gd(a,"class","storybook-page")},m(i,l){Kd(i,t,l),Zd(r,t,null),Ma(t,o),Ma(t,a),n=!0},p(i,[l]){const s={};l&1&&(s.user=i[0]),r.$set(s)},i(i){n||(ep(r.$$.fragment,i),n=!0)},o(i){tp(r.$$.fragment,i),n=!1},d(i){i&&xa(t),rp(r)}}}function JS(e,t,r){let o=null;return[o,()=>r(0,o={name:"Jane Doe"}),()=>r(0,o=null),()=>r(0,o={name:"Jane Doe"})]}class Bd extends Yd{constructor(t){super(),Jd(this,t,JS,YS,Ud,{})}}Bd.__docgen={version:3,name:"Page.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const EO={title:"Example/Page",component:Bd,parameters:{layout:"fullscreen"}},Xr={},Qr={play:async({canvasElement:e})=>{const t=WS(e),r=t.getByRole("button",{name:/Log in/i});await Jn(r).toBeInTheDocument(),await GS.click(r),await Jn(r).not.toBeInTheDocument();const o=t.getByRole("button",{name:/Log out/i});await Jn(o).toBeInTheDocument()}};var sl,ul,cl;Xr.parameters={...Xr.parameters,docs:{...(sl=Xr.parameters)==null?void 0:sl.docs,source:{originalSource:"{}",...(cl=(ul=Xr.parameters)==null?void 0:ul.docs)==null?void 0:cl.source}}};var dl,pl,fl;Qr.parameters={...Qr.parameters,docs:{...(dl=Qr.parameters)==null?void 0:dl.docs,source:{originalSource:`{
|
|||
|
play: async ({
|
|||
|
canvasElement
|
|||
|
}) => {
|
|||
|
const canvas = within(canvasElement);
|
|||
|
const loginButton = canvas.getByRole('button', {
|
|||
|
name: /Log in/i
|
|||
|
});
|
|||
|
await expect(loginButton).toBeInTheDocument();
|
|||
|
await userEvent.click(loginButton);
|
|||
|
await expect(loginButton).not.toBeInTheDocument();
|
|||
|
const logoutButton = canvas.getByRole('button', {
|
|||
|
name: /Log out/i
|
|||
|
});
|
|||
|
await expect(logoutButton).toBeInTheDocument();
|
|||
|
}
|
|||
|
}`,...(fl=(pl=Qr.parameters)==null?void 0:pl.docs)==null?void 0:fl.source}}};const wO=["LoggedOut","LoggedIn"];export{Qr as LoggedIn,Xr as LoggedOut,wO as __namedExportsOrder,EO as default};
|