(()=>{varVd=Object.create;varda=Object.defineProperty;varYd=Object.getOwnPropertyDescriptor;varKd=Object.getOwnPropertyNames;varXd=Object.getPrototypeOf,Jd=Object.prototype.hasOwnProperty;varje=(e=>typeofrequire<"u"?require:typeofProxy<"u"?newProxy(e,{get:(t,r)=>(typeofrequire<"u"?require:t)[r]}):e)(function(e){if(typeofrequire<"u")returnrequire.apply(this,arguments);throwError('Dynamic require of "'+e+'" is not supported')});varcn=(e,t)=>()=>(e&&(t=e(e=0)),t);varO=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);varQd=(e,t,r,n)=>{if(t&&typeoft=="object"||typeoft=="function")for(letoofKd(t))!Jd.call(e,o)&&o!==r&&da(e,o,{get:()=>t[o],enumerable:!(n=Yd(t,o))||n.enumerable});returne};varst=(e,t,r)=>(r=e!=null?Vd(Xd(e)):{},Qd(t||!e||!e.__esModule?da(r,"default",{value:e,enumerable:!0}):r,e));varu=cn(()=>{});vars=cn(()=>{});varl=cn(()=>{});varFa=O((Pa,vn)=>{u();s();l();(function(e){if(typeofPa=="object"&&typeofvn<"u")vn.exports=e();elseif(typeofdefine=="function"&&define.amd)define([],e);else{vart;typeofwindow<"u"||typeofwindow<"u"?t=window:typeofself<"u"?t=self:t=this,t.memoizerific=e()}})(function(){vare,t,r;returnfunctionn(o,a,i){functionc(h,m){if(!a[h]){if(!o[h]){varf=typeofje=="function"&&je;if(!m&&f)returnf(h,!0);if(p)returnp(h,!0);varw=newError("Cannot find module '"+h+"'");throww.code="MODULE_NOT_FOUND",w}varg=a[h]={exports:{}};o[h][0].call(g.exports,function(A){varx=o[h][1][A];returnc(x||A)},g,g.exports,n,o,a,i)}returna[h].exports}for(varp=typeofje=="function"&&je,d=0;d<i.length;d++)c(i[d]);returnc}({1:[function(n,o,a){o.exports=function(i){if(typeofMap!="function"||i){varc=n("./similar");returnnewc}elsereturnnewMap}},{"./similar":2}],2:[function(n,o,a){functioni(){returnthis.list=[],this.lastItem=void0,this.size=0,this}i.prototype.get=function(c){varp;if(this.lastItem&&this.isEqual(this.lastItem.key,c))returnthis.lastItem.val;if(p=this.indexOf(c),p>=0)returnthis.lastItem=this.list[p],this.list[p].val},i.prototype.set=function(c,p){vard;returnthis.lastItem&&this.isEqual(this.lastItem.key,c)?(this.lastItem.val=p,this):(d=this.indexOf(c),d>=0?(this.lastItem=this.list[d],this.list[d].val=p,this):(this.lastItem={key:c,val:p},this.list.push(this.lastItem),this.size++,this))},i.prototype.delete=function(c){varp;if(this.lastItem&&this.isEqual(this.lastItem.key,c)&&(this.lastItem=void0),p=this.indexOf(c),p>=0)returnthis.size--,this.list.splice(p,1)[0]},i.prototype.has=function(c){varp;returnthis.lastItem&&this.isEqual(this.lastItem.key,c)?!0:(p=this.indexOf(c),p>=0?(this.lastItem=this.list[p],!0):!1)},i.prototype.forEach=function(c,p){vard;for(d=0;d<this.size;d++)c.call(p||this,this.list[d].val,this.list[d].key,this)},i.prototype.indexOf=function(c){varp;for(p=0;p<this.size;p++)if(this.isEqual(this.list[p].key,c))returnp;return-1},i.prototype.isEqual=function(c,p){returnc===p||c!==c&&p!==p},o.exports=i},{}],3:[function(n,o,a){vari=n("map-or-similar");o.exports=function(h){varm=newi(!1),f=[];returnfunction(w){varg=function(){varA=m,x,P,D=arguments.length-1,F=Array(D+1),M=!0,j;if((g.numArgs||g.numArgs===0)&&g.numArgs!==D+1)thrownewError("Memoizerific functions should always be called with the same number of arguments");for(j=0;j<D;j++){if(F[j]={cacheItem:A,arg:arguments[j]},A.has(arguments[j])){A=A.get(arguments[j]);continue}M=!1,x=newi(!1),A.set(arguments[j],x),A=x}returnM&&(A.has(arguments[D])?P=A.get(arguments[D]):M=!1),M||(P=w.apply(null,arguments),A.set(arguments[D],P)),h>0&&(F[D]={cacheItem:A,arg:arguments[D]},M?c(f,F):f.push(F),f.length>h&&p(f.shift())),g.wasMemoized=M,g.numArgs=D+1,P};returng.limit=h,g.wasMemoized=!1,g.cache=m,g.lru=f,g}};functionc(h,m){varf=h.length,w=m.length,g,A,x;for(A=0;A<f;A++){for(g=!0,x=0;x<w;x++)if(!d(h[A][x].arg,m[x].arg)){g=!1;break}if(g)break}h.push(h.splice(A,1)[0])}functionp(h){varm=h.length,f=h[m-1],w,g;for(f.cacheItem.delete(f.arg),g=m-2;g>=0&&(f=h[g],w=f.cacheItem.get(f.arg),!w||!w.size);g--)f.cacheItem.delete(f.arg)}functiond(h,m){returnh===m||h!==h&&m!==m}},{"map-or-similar":1}]},{},
`)),i+=m+n[p+1]}),i}var IE=(e=>(e.DOCS_TOOLS="DOCS-TOOLS",e.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",e.PREVIEW_CHANNELS="PREVIEW_CHANNELS",e.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",e.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",e.PREVIEW_API="PREVIEW_API",e.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",e.PREVIEW_ROUTER="PREVIEW_ROUTER",e.PREVIEW_THEMING="PREVIEW_THEMING",e.RENDERER_HTML="RENDERER_HTML",e.RENDERER_PREACT="RENDERER_PREACT",e.RENDERER_REACT="RENDERER_REACT",e.RENDERER_SERVER="RENDERER_SERVER",e.RENDERER_SVELTE="RENDERER_SVELTE",e.RENDERER_VUE="RENDERER_VUE",e.RENDERER_VUE3="RENDERER_VUE3",e.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",e.FRAMEWORK_NEXTJS="FRAMEWORK_NEXTJS",e))(IE||{});u();s();l();var Xr=st(Fc(),1);u();s();l();var $E=Object.create,Bc=Object.defineProperty,zE=Object.getOwnPropertyDescriptor,UE=Object.getOwnPropertyNames,HE=Object.getPrototypeOf,WE=Object.prototype.hasOwnProperty,GE=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),VE=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of UE(t))!WE.call(e,o)&&o!==r&&Bc(e,o,{get:()=>t[o],enumerable:!(n=zE(t,o))||n.enumerable});return e},YE=(e,t,r)=>(r=e!=null?$E(HE(e)):{},VE(t||!e||!e.__esModule?Bc(r,"default",{value:e,enumerable:!0}):r,e)),KE=GE(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,a){return function i(c,p,d){var h,m,f,w=t.call(c),g=t.call(p);if(c===p)return!0;if(c==null||p==null)return!1;if(d.indexOf(c)>-1&&d.indexOf(p)>-1)return!0;if(d.push(c,p),w!=g||(h=n(c),m=n(p),h.length!=m.length||h.some(function(A){return!i(c[A],p[A],d)})))return!1;switch(w.slice(8,-1)){case"Symbol":return c.valueOf()==p.valueOf();case"Date":case"Number":return+c==+p||+c!=+c&&+p!=+p;case"RegExp":case"Function":case"String":case"Boolean":return""+c==""+p;case"Set":case"Map":h=c.entries(),m=p.entries();do if(!i((f=h.next()).value,m.next().value,d))return!1;while(!f.done);return!0;case"ArrayBuffer":c=new Uint8Array(c),p=new Uint8Array(p);case"DataView":c=new Uint8Array(c.buffer),p=new Uint8Array(p.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(c.length!=p.length)return!1;for(f=0;f<c.length;f++)if((f in c||f in p)&&(f in c!=f in p||!i(c[f],p[f],d)))return!1;return!0;case"Object":return i(r(c),r(p),d);default:return!1}}(o,a,[])}}()});var T9=YE(KE());var Mf=st(qc(),1),jf=st(Yc(),1);u();s();l();var _A=st(Pf(),1),OA=Object.create,Lf=Object.defineProperty,xA=Object.getOwnPropertyDescriptor,kf=Object.getOwnPropertyNames,TA=Object.getPrototypeOf,IA=Object.prototype.hasOwnProperty,Xe=(e,t)=>function(){return t||(0,e[kf(e)[0]])((t={exports:{}}).exports,t),t.exports},DA=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of kf(t))!IA.call(e,o)&&o!==r&&Lf(e,o,{get:()=>t[o],enumerable:!(n=xA(t,o))||n.enumerable});return e},RA=(e,t,r)=>(r=e!=null?OA(TA(e)):{},DA(t||!e||!e.__esModule?Lf(r,"default",{value:e,enumerable:!0}):r,e)),$f=Xe({"../../node_modules/ansi-to-html/node_modules/entities/lib/maps/entities.json"(e,t){t.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2
${Re}`)},{edgeSpacing:ee.spacingOuter,min:ee.min,spacing:ee.spacingInner},ee.colors)}catch(me){throw new D(me.message,me.stack)}if(typeof le!="string")throw new Error(`pretty-format:Pluginmustreturntype"string"butinsteadreturned"${typeof le}".`);return le}function X(T,Y){for(let ee=0;ee<T.length;ee++)try{if(T[ee].test(Y))return T[ee]}catch(ue){throw new D(ue.message,ue.stack)}return null}function _(T,Y,ee,ue,te,k){let le=X(Y.plugins,T);if(le!==null)return Q(le,T,Y,ee,ue,te);let me=L(T,Y.printFunctionName,Y.escapeRegex,Y.escapeString);return me!==null?me:V(T,Y,ee,ue,te,k)}var R={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},B=Object.keys(R),$=T=>T,N=$({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:R});e.DEFAULT_OPTIONS=N;function z(T){if(Object.keys(T).forEach(Y=>{if(!Object.prototype.hasOwnProperty.call(N,Y))throw new Error(`pretty-format:Unknownoption"${Y}".`)}),T.min&&T.indent!==void 0&&T.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(T.theme!==void 0){if(T.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof T.theme!="object")throw new Error(`pretty-format:Option"theme"mustbeoftype"object"butinsteadreceived"${typeof T.theme}".`)}}var U=T=>B.reduce((Y,ee)=>{let ue=T.theme&&T.theme[ee]!==void 0?T.theme[ee]:R[ee],te=ue&&t.default[ue];if(te&&typeof te.close=="string"&&typeof te.open=="string")Y[ee]=te;else throw new Error(`pretty-format:Option"theme"hasakey"${ee}"whosevalue"${ue}"isundefinedinansi-styles.`);return Y},Object.create(null)),Z=()=>B.reduce((T,Y)=>(T[Y]={close:"",open:""},T),Object.create(null)),ae=T=>T?.printFunctionName??N.printFunctionName,he=T=>T?.escapeRegex??N.escapeRegex,Ee=T=>T?.escapeString??N.escapeString,ye=T=>({callToJSON:T?.callToJSON??N.callToJSON,colors:T?.highlight?U(T):Z(),compareKeys:typeof T?.compareKeys=="function"||T?.compareKeys===null?T.compareKeys:N.compareKeys,escapeRegex:he(T),escapeString:Ee(T),indent:T?.min?"":ve(T?.indent??N.indent),maxDepth:T?.maxDepth??N.maxDepth,maxWidth:T?.maxWidth??N.maxWidth,min:T?.min??N.min,plugins:T?.plugins??N.plugins,printBasicPrototype:T?.printBasicPrototype??!0,printFunctionName:ae(T),spacingInner:T?.min?" ":`
`),r=t.length>1;return ne(gd,null,ne("pre",null,t[0]),r&&ne("p",null,"See the full stack trace in the browser console."))},__=({call:e,callsById:t,controls:r,controlStates:n,childCallIds:o,isHidden:a,isCollapsed:i,toggleCollapsed:c,pausedAt:p})=>{let[d,h]=ke(!1),m=!n.goto||!e.interceptable||!!e.ancestors.length;return a?null:ne(b_,{call:e,pausedAt:p},ne(E_,{isInteractive:m},ne(v_,{"aria-label":"Interaction step",call:e,onClick:()=>r.goto(e.id),disabled:m,onMouseEnter:()=>n.goto&&h(!0),onMouseLeave:()=>n.goto&&h(!1)},ne(Fd,{status:d?se.ACTIVE:e.status}),ne(g_,{style:{marginLeft:6,marginBottom:1}},ne(ia,{call:e,callsById:t}))),ne(S_,null,o?.length>0&&ne(lt,{hasChrome:!1,tooltip:ne(w_,{note:`${i?"Show":"Hide"}interactions`})},ne(A_,{onClick:c},ne(nd,null))))),e.status===se.ERROR&&e.exception?.callId===e.id&&ne(C_,{exception:e.exception}))},O_=ie.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),x_=ie.div(({theme:e})=>({width:1,height:16,backgroundColor:e.appBorderColor})),T_=()=>{let[e,t]=ke(!0),r=va().getDocsUrl({subpath:fC,versioned:!0,renderer:!0});return Ze(()=>{let n=setTimeout(()=>{t(!1)},100);return()=>clearTimeout(n)},[]),e?null:y.createElement(_a,{title:"Interaction testing",description:y.createElement(y.Fragment,null,"Interaction tests allow you to verify the functional aspects of UIs. Write a play function for your story and you'll see it run here."),footer:y.createElement(O_,null,y.createElement(hn,{href:pC,target:"_blank",withArrow:!0},y.createElement(cd,null)," Watch 8m video"),y.createElement(x_,null),y.createElement(hn,{href:r,target:"_blank",withArrow:!0},y.createElement(td,null)," Read docs"))})},I_=ie.div(({theme:e})=>({height:"100%",background:e.background.content})),bd=ie.div(({theme:e})=>({borderBottom:`1pxsolid${e.appBorderColor}`,backgroundColor:e.base==="dark"?tn(.93,e.color.negative):e.background.warning,padding:15,fontSize:e.typography.size.s2-1,lineHeight:"19px"})),Qo=ie.code(({theme:e})=>({margin:"0 1px",padding:3,fontSize:e.typography.size.s1-1,lineHeight:1,verticalAlign:"top",background:"rgba(0, 0, 0, 0.05)",border:`1pxsolid${e.appBorderColor}`,borderRadius:3})),Ed=ie.div({paddingBottom:4,fontWeight:"bold"}),D_=ie.p({margin:0,padding:"0 0 20px"}),vd=ie.pre(({theme:e})=>({margin:0,padding:0,"&:not(:last-child)":{paddingBottom:16},fontSize:e.typography.size.s1-1})),R_=Er(function({calls:e,controls:t,controlStates:r,interactions:n,fileName:o,hasException:a,caughtException:i,unhandledErrors:c,isPlaying:p,pausedAt:d,onScrollToEnd:h,endRef:m}){return ne(I_,null,(n.length>0||a)&&ne(wC,{controls:t,controlStates:r,status:p?se.ACTIVE:a?se.ERROR:se.DONE,storyFileName:o,onScrollToEnd:h}),ne("div",{"aria-label":"Interactions list"},n.map(f=>ne(__,{key:f.id,call:f,callsById:e,controls:t,controlStates:r,childCallIds:f.childCallIds,isHidden:f.isHidden,isCollapsed:f.isCollapsed,toggleCollapsed:f.toggleCollapsed,pausedAt:d}))),i&&!y_(i)&&ne(bd,null,ne(Ed,null,"Caught exception in ",ne(Qo,null,"play")," function"),ne(vd,{"data-chromatic":"ignore"},Sd(i))),c&&ne(bd,null,ne(Ed,null,"Unhandled Errors"),ne(D_,null,"Found ",c.length," unhandled error",c.length>1?"s":""," ","while running the play function. This might cause false positive assertions. Resolve unhandled errors or ignore unhandled errors with setting the",ne(Qo,null,"test.dangerouslyIgnoreUnhandledErrors")," ","parameter to ",ne(Qo,null,"true"),"."),c.map((f,w)=>ne(vd,{key:w,"data-chromatic":"ignore"},Sd(f)))),ne("div",{ref:m}),!p&&!i&&n.length===0&&ne(T_,null))});function Sd(e){return e.stack||`${e.name}:${e.message}`}var Zo={start:!1,back:!1,goto:!1,next:!1,end:!1},Ad=({log:e,calls:t,collapsed:r,setCollapsed:n})=>{let o=new Map,a=new Map;return e.map(({callId:i,ancestors:c,status:p})=>{let d=!1;return c.forEach(h=>{r.has(h)&&(d=!0),a.set(h,(a.get(h)||[]).concat(i))}),{...t.get(i),status:p,isHidden:d}}).map(i=>{let c=i.status===se.ERROR&&o.get(i.ancestors.slice(-1)[0])?.status===se.ACTIVE?se.ACTIVE:i.status;return o.set(i.id,{...i,status:c}),{...i,status:c,childCallIds:a.get(i.id),isCollapsed:r.has(i.id),toggleCollapsed: