Anvil/sb-addons/interactions-9/manager-bundle.js

13 lines
93 KiB
JavaScript
Raw Normal View History

2024-02-08 10:52:22 +01:00
try{
2024-02-23 14:08:28 +01:00
(()=>{var ze=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var i=__REACT__,{Children:mi,Component:fi,Fragment:$e,Profiler:di,PureComponent:gi,StrictMode:bi,Suspense:hi,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:yi,cloneElement:Ei,createContext:vi,createElement:q,createFactory:Si,createRef:_i,forwardRef:wi,isValidElement:Oi,lazy:Ti,memo:st,useCallback:ir,useContext:Ri,useDebugValue:xi,useEffect:Be,useImperativeHandle:Ci,useLayoutEffect:Pi,useMemo:lr,useReducer:Ai,useRef:pt,useState:Pe,version:ji}=__REACT__;var ki=__STORYBOOK_API__,{ActiveTabs:Fi,Consumer:cr,ManagerContext:Mi,Provider:Li,addons:xt,combineParameters:zi,controlOrMetaKey:Bi,controlOrMetaSymbol:Di,eventMatchesShortcut:Wi,eventToShortcut:Hi,isMacLike:qi,isShortcutTaken:Gi,keyToSymbol:Ui,merge:Yi,mockChannel:Vi,optionOrAltSymbol:Ki,shortcutMatchesShortcut:Ji,shortcutToHumanString:Xi,types:ur,useAddonState:Ct,useArgTypes:Zi,useArgs:Qi,useChannel:sr,useGlobalTypes:el,useGlobals:tl,useParameter:pr,useSharedState:rl,useStoryPrepared:nl,useStorybookApi:al,useStorybookState:ol}=__STORYBOOK_API__;var sl=__STORYBOOK_COMPONENTS__,{A:pl,ActionBar:ml,AddonPanel:mr,Badge:fr,Bar:dr,Blockquote:fl,Button:gr,ClipboardCode:dl,Code:gl,DL:bl,Div:hl,DocumentWrapper:yl,ErrorFormatter:El,FlexBar:vl,Form:Sl,H1:_l,H2:wl,H3:Ol,H4:Tl,H5:Rl,H6:xl,HR:Cl,IconButton:Pt,IconButtonSkeleton:Pl,Icons:ke,Img:Al,LI:jl,Link:br,ListItem:Il,Loader:Nl,OL:$l,P:hr,Placeholder:yr,Pre:kl,ResetWrapper:Fl,ScrollArea:Ml,Separator:Er,Spaced:vr,Span:Ll,StorybookIcon:zl,StorybookLogo:Bl,Symbols:Dl,SyntaxHighlighter:Wl,TT:Hl,TabBar:ql,TabButton:Gl,TabWrapper:Ul,Table:Yl,Tabs:Vl,TabsState:Kl,TooltipLinkList:Jl,TooltipMessage:Xl,TooltipNote:At,UL:Zl,WithTooltip:De,WithTooltipPure:Ql,Zoom:ec,codeCommon:tc,components:rc,createCopyToClipboardFunction:nc,getStoryHref:ac,icons:oc,interleaveSeparators:ic,nameSpaceClassNames:lc,resetComponents:cc,withReset:uc}=__STORYBOOK_COMPONENTS__;var dc=__STORYBOOK_CLIENT_LOGGER__,{deprecate:gc,logger:bc,once:hc,pretty:yc}=__STORYBOOK_CLIENT_LOGGER__;var wc=__STORYBOOK_CORE_EVENTS__,{CHANNEL_CREATED:Oc,CONFIG_ERROR:Tc,CURRENT_STORY_WAS_SET:Rc,DOCS_PREPARED:xc,DOCS_RENDERED:Cc,FORCE_REMOUNT:Sr,FORCE_RE_RENDER:Pc,GLOBALS_UPDATED:Ac,IGNORED_EXCEPTION:_r,NAVIGATE_URL:jc,PLAY_FUNCTION_THREW_EXCEPTION:wr,PRELOAD_ENTRIES:Ic,PREVIEW_BUILDER_PROGRESS:Nc,PREVIEW_KEYDOWN:$c,REGISTER_SUBSCRIPTION:kc,REQUEST_WHATS_NEW_DATA:Fc,RESET_STORY_ARGS:Mc,RESULT_WHATS_NEW_DATA:Lc,SELECT_STORY:zc,SET_CONFIG:Bc,SET_CURRENT_STORY:Dc,SET_GLOBALS:Wc,SET_INDEX:Hc,SET_STORIES:qc,SET_WHATS_NEW_CACHE:Gc,SHARED_STATE_CHANGED:Uc,SHARED_STATE_SET:Yc,STORIES_COLLAPSE_ALL:Vc,STORIES_EXPAND_ALL:Kc,STORY_ARGS_UPDATED:Jc,STORY_CHANGED:Xc,STORY_ERRORED:Zc,STORY_INDEX_INVALIDATED:Qc,STORY_MISSING:eu,STORY_PREPARED:tu,STORY_RENDERED:ru,STORY_RENDER_PHASE_CHANGED:Or,STORY_SPECIFIED:nu,STORY_THREW_EXCEPTION:Tr,STORY_UNCHANGED:au,TELEMETRY_ERROR:ou,TOGGLE_WHATS_NEW_NOTIFICATIONS:iu,UPDATE_GLOBALS:lu,UPDATE_QUERY_PARAMS:cu,UPDATE_STORY_ARGS:uu}=__STORYBOOK_CORE_EVENTS__;var mt=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})();var yu=__STORYBOOK_THEMING__,{CacheProvider:Eu,ClassNames:vu,Global:Su,ThemeProvider:_u,background:wu,color:Ou,convert:Tu,create:Ru,createCache:xu,createGlobal:Cu,createReset:Pu,css:Au,darken:ju,ensure:Iu,ignoreSsrWarning:Nu,isPropValid:$u,jsx:ku,keyframes:Fu,lighten:Mu,styled:J,themes:Lu,typography:Ie,useTheme:ft,withTheme:zu}=__STORYBOOK_THEMING__;function be(){return be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},be.apply(this,arguments)}function jt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ne(e,t){
`)!==-1&&(I=b.spacingOuter+S+I+b.spacingOuter+m),I=`{${I}}`),`${b.spacingInner+m+_.prop.open+O+_.prop.close}=${_.value.open}${I}${_.value.close}`}).join("")};e.printProps=n;var a=(f,h,b,m,v,d)=>f.map(y=>h.spacingOuter+b+(typeof y=="string"?u(y,h):d(y,h,b,m,v))).join("");e.printChildren=a;var u=(f,h)=>{let b=h.colors.content;return b.open+(0,t.default)(f)+b.close};e.printText=u;var o=(f,h)=>{let b=h.colors.comment;return`${b.open}<!--${(0,t.default)(f)}-->${b.close}`};e.printComment=o;var c=(f,h,b,m,v)=>{let d=m.colors.tag;return`${d.open}<${f}${h&&d.close+h+m.spacingOuter+v+d.open}${b?`>${d.close}${b}${m.spacingOuter}${v}${d.open}</${f}`:`${h&&!m.min?"":" "}/`}>${d.close}`};e.printElement=c;var p=(f,h)=>{let b=h.colors.tag;return`${b.open}<${f}${b.close} \u2026${b.open} />${b.close}`};e.printElementAsLeaf=p}}),va=ye({"../../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=Vt(),r=1,n=3,a=8,u=11,o=/^((HTML|SVG)\w*)?Element$/,c=S=>{try{return typeof S.hasAttribute=="function"&&S.hasAttribute("is")}catch{return!1}},p=S=>{let _=S.constructor.name,{nodeType:O,tagName:x}=S,I=typeof x=="string"&&x.includes("-")||c(S);return O===r&&(o.test(_)||I)||O===n&&_==="Text"||O===a&&_==="Comment"||O===u&&_==="DocumentFragment"},f=S=>S?.constructor?.name&&p(S);e.test=f;function h(S){return S.nodeType===n}function b(S){return S.nodeType===a}function m(S){return S.nodeType===u}var v=(S,_,O,x,I,A)=>{if(h(S))return(0,t.printText)(S.data,_);if(b(S))return(0,t.printComment)(S.data,_);let $=m(S)?"DocumentFragment":S.tagName.toLowerCase();return++x>_.maxDepth?(0,t.printElementAsLeaf)($,_):(0,t.printElement)($,(0,t.printProps)(m(S)?[]:Array.from(S.attributes,T=>T.name).sort(),m(S)?{}:Array.from(S.attributes).reduce((T,E)=>(T[E.name]=E.value,T),{}),_,O+_.indent,x,I,A),(0,t.printChildren)(Array.prototype.slice.call(S.childNodes||S.children),_,O+_.indent,x,I,A),_,O)};e.serialize=v;var d={serialize:v,test:f},y=d;e.default=y}}),Sa=ye({"../../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=St(),r="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_LIST__@@",a="@@__IMMUTABLE_KEYED__@@",u="@@__IMMUTABLE_MAP__@@",o="@@__IMMUTABLE_ORDERED__@@",c="@@__IMMUTABLE_RECORD__@@",p="@@__IMMUTABLE_SEQ__@@",f="@@__IMMUTABLE_SET__@@",h="@@__IMMUTABLE_STACK__@@",b=E=>`Immutable.${E}`,m=E=>`[${E}]`,v=" ",d="\u2026",y=(E,F,z,B,W,G,D)=>++B>F.maxDepth?m(b(D)):`${b(D)+v}{${(0,t.printIteratorEntries)(E.entries(),F,z,B,W,G)}}`;function S(E){let F=0;return{next(){if(F<E._keys.length){let z=E._keys[F++];return{done:!1,value:[z,E.get(z)]}}return{done:!0,value:void 0}}}}var _=(E,F,z,B,W,G)=>{let D=b(E._name||"Record");return++B>F.maxDepth?m(D):`${D+v}{${(0,t.printIteratorEntries)(S(E),F,z,B,W,G)}}`},O=(E,F,z,B,W,G)=>{let D=b("Seq");return++B>F.maxDepth?m(D):E[a]?`${D+v}{${E._iter||E._object?(0,t.printIteratorEntries)(E.entries(),F,z,B,W,G):d}}`:`${D+v}[${E._iter||E._array||E._collection||E._iterable?(0,t.printIteratorValues)(E.values(),F,z,B,W,G):d}]`},x=(E,F,z,B,W,G,D)=>++B>F.maxDepth?m(b(D)):`${b(D)+v}[${(0,t.printIteratorValues)(E.values(),F,z,B,W,G)}]`,I=(E,F,z,B,W,G)=>E[u]?y(E,F,z,B,W,G,E[o]?"OrderedMap":"Map"):E[n]?x(E,F,z,B,W,G,"List"):E[f]?x(E,F,z,B,W,G,E[o]?"OrderedSet":"Set"):E[h]?x(E,F,z,B,W,G,"Stack"):E[p]?O(E,F,z,B,W,G):_(E,F,z,B,W,G);e.serialize=I;var A=E=>E&&(E[r]===!0||E[c]===!0);e.test=A;var $={serialize:I,test:A},T=$;e.default=T}}),_a=ye({"../../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"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),c=Symbol.for("react.context"),p=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"
${Te}`)},{edgeSpacing:H.spacingOuter,min:H.min,spacing:H.spacingInner},H.colors)}catch(oe){throw new O(oe.message,oe.stack)}if(typeof ne!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof ne}".`);return ne}function G(g,k){for(let H=0;H<g.length;H++)try{if(g[H].test(k))return g[H]}catch(X){throw new O(X.message,X.stack)}return null}function D(g,k,H,X,K,C){let ne=G(k.plugins,g);if(ne!==null)return W(ne,g,k,H,X,K);let oe=F(g,k.printFunctionName,k.escapeRegex,k.escapeString);return oe!==null?oe:z(g,k,H,X,K,C)}var ie={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},L=Object.keys(ie),ee=g=>g,R=ee({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:ie});e.DEFAULT_OPTIONS=R;function M(g){if(Object.keys(g).forEach(k=>{if(!Object.prototype.hasOwnProperty.call(R,k))throw new Error(`pretty-format: Unknown option "${k}".`)}),g.min&&g.indent!==void 0&&g.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(g.theme!==void 0){if(g.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof g.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof g.theme}".`)}}var j=g=>L.reduce((k,H)=>{let X=g.theme&&g.theme[H]!==void 0?g.theme[H]:ie[H],K=X&&t.default[X];if(K&&typeof K.close=="string"&&typeof K.open=="string")k[H]=K;else throw new Error(`pretty-format: Option "theme" has a key "${H}" whose value "${X}" is undefined in ansi-styles.`);return k},Object.create(null)),V=()=>L.reduce((g,k)=>(g[k]={close:"",open:""},g),Object.create(null)),Z=g=>g?.printFunctionName??R.printFunctionName,ae=g=>g?.escapeRegex??R.escapeRegex,se=g=>g?.escapeString??R.escapeString,pe=g=>({callToJSON:g?.callToJSON??R.callToJSON,colors:g?.highlight?j(g):V(),compareKeys:typeof g?.compareKeys=="function"||g?.compareKeys===null?g.compareKeys:R.compareKeys,escapeRegex:ae(g),escapeString:se(g),indent:g?.min?"":me(g?.indent??R.indent),maxDepth:g?.maxDepth??R.maxDepth,maxWidth:g?.maxWidth??R.maxWidth,min:g?.min??R.min,plugins:g?.plugins??R.plugins,printBasicPrototype:g?.printBasicPrototype??!0,printFunctionName:Z(g),spacingInner:g?.min?" ":`
2024-02-08 10:52:22 +01:00
`,spacingOuter:g?.min?"":`
2024-02-23 14:08:28 +01:00
`});function me(g){return new Array(g+1).join(" ")}function fe(g,k){if(k&&(M(k),k.plugins)){let X=G(k.plugins,g);if(X!==null)return W(X,g,pe(k),"",0,[])}let H=F(g,Z(k),ae(k),se(k));return H!==null?H:z(g,pe(k),"",0,[])}var _e={AsymmetricMatcher:n.default,DOMCollection:a.default,DOMElement:u.default,Immutable:o.default,ReactElement:c.default,ReactTestComponent:p.default};e.plugins=_e;var we=fe;e.default=we}}),Hr=ye({"../../node_modules/diff-sequences/build/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=v;var t="diff-sequences",r=0,n=(d,y,S,_,O)=>{let x=0;for(;d<y&&S<_&&O(d,S);)d+=1,S+=1,x+=1;return x},a=(d,y,S,_,O)=>{let x=0;for(;d<=y&&S<=_&&O(y,_);)y-=1,_-=1,x+=1;return x},u=(d,y,S,_,O,x,I)=>{let A=0,$=-d,T=x[A],E=T;x[A]+=n(T+1,y,_+T-$+1,S,O);let F=d<I?d:I;for(A+=1,$+=2;A<=F;A+=1,$+=2){if(A!==d&&E<x[A])T=x[A];else if(T=E+1,y<=T)return A-1;E=x[A],x[A]=T+n(T+1,y,_+T-$+1,S,O)}return I},o=(d,y,S,_,O,x,I)=>{let A=0,$=d,T=x[A],E=T;x[A]-=a(y,T-1,S,_+T-$-1,O);let F=d<I?d:I;for(A+=1,$-=2;A<=F;A+=1,$-=2){if(A!==d&&x[A]<E)T=x[A];else if(T=E-1,T<y)return A-1;E=x[A],x[A]=T-a(y,T-1,S,_+T-$-1,O)}return I},c=(d,y,S,_,O,x,I,A,$,T,E)=>{let F=_-y,z=S-y,B=O-_-z,W=-B-(d-1),G=-B+(d-1),D=r,ie=d<A?d:A;for(let L=0,ee=-d;L<=ie;L+=1,ee+=2){let R=L===0||L!==d&&D<I[L],M=R?I[L]:D,j=R?M:M+1,V=F+j-ee,Z=n(j+1,S,V+1,O,x),ae=j+Z;if(D=I[L],I[L]=ae,W<=ee&&ee<=G){let se=(d-1-(ee+B))/2;if(se<=T&&$[se]-1<=ae){let pe=F+M-(R?ee+1:ee-1),me=a(y,M,_,pe,x),fe=M-me,_e=pe-me,we=fe+1,g=_e+1;E.nChangePreceding=d-1,d-1===we+g-y-_?(E.aEndPreceding=y,E.bEndPreceding=_):(E.aEndPreceding=we,E.bEndPreceding=g),E.nCommonPreceding=me,me!==0&&(E.aCommonPreceding=we,E.bCommonPreceding=g),E.nCommonFollowing=Z,Z!==0&&(E.aCommonFollowing=j+1,E.bCommonFollowing=V+1);let k=ae+1,H=V+Z+1;return E.nChangeFollowing=d-1,d-1===S+O-k-H?(E.aStartFollowing=S,E.bStartFollowing=O):(E.aStartFollowing=k,E.bStartFollowing=H),!0}}}return!1},p=(d,y,S,_,O,x,I,A,$,T,E)=>{let F=O-S,z=S-y,B=O-_-z,W=B-d,G=B+d,D=r,ie=d<T?d:T;for(let L=0,ee=d;L<=ie;L+=1,ee-=2){let R=L===0||L!==d&&$[L]<D,M=R?$[L]:D,j=R?M:M-1,V=F+j-ee,Z=a(y,j-1,_,V-1,x),ae=j-Z;if(D=$[L],$[L]=ae,W<=ee&&ee<=G){let se=(d+(ee-B))/2;if(se<=A&&ae-1<=I[se]){let pe=V-Z;if(E.nChangePreceding=d,d===ae+pe-y-_?(E.aEndPreceding=y,E.bEndPreceding=_):(E.aEndPreceding=ae,E.bEndPreceding=pe),E.nCommonPreceding=Z,Z!==0&&(E.aCommonPreceding=ae,E.bCommonPreceding=pe),E.nChangeFollowing=d-1,d===1)E.nCommonFollowing=0,E.aStartFollowing=S,E.bStartFollowing=O;else{let me=F+M-(R?ee-1:ee+1),fe=n(M,S,me,O,x);E.nCommonFollowing=fe,fe!==0&&(E.aCommonFollowing=M,E.bCommonFollowing=me);let _e=M+fe,we=me+fe;d-1===S+O-_e-we?(E.aStartFollowing=S,E.bStartFollowing=O):(E.aStartFollowing=_e,E.bStartFollowing=we)}return!0}}}return!1},f=(d,y,S,_,O,x,I,A,$)=>{let T=_-y,E=O-S,F=S-y,z=O-_,B=z-F,W=F,G=F;if(I[0]=y-1,A[0]=S,B%2===0){let D=(d||B)/2,ie=(F+z)/2;for(let L=1;L<=ie;L+=1)if(W=u(L,S,O,T,x,I,W),L<D)G=o(L,y,_,E,x,A,G);else if(p(L,y,S,_,O,x,I,W,A,G,$))return}else{let D=((d||B)+1)/2,ie=(F+z+1)/2,L=1;for(W=u(L,S,O,T,x,I,W),L+=1;L<=ie;L+=1)if(G=o(L-1,y,_,E,x,A,G),L<D)W=u(L,S,O,T,x,I,W);else if(c(L,y,S,_,O,x,I,W,A,G,$))return}throw new Error(`${t}: no overlap aStart=${y} aEnd=${S} bStart=${_} bEnd=${O}`)},h=(d,y,S,_,O,x,I,A,$,T)=>{if(O-_<S-y){if(x=!x,x&&I.length===1){let{foundSubsequence:se,isCommon:pe}=I[0];I[1]={foundSubsequence:(me,fe,_e)=>{se(me,_e,fe)},isCommon:(me,fe)=>pe(fe,me)}}let Z=y,ae=S;y=_,S=O,_=Z,O=ae}let{foundSubsequence:E,isCommon:F}=I[x?1:0];f(d,y,S,_,O,F,A,$,T);let{nChangePreceding:z,aEndPreceding:B,bEndPreceding:W,nCommonPreceding:G,aCommonPreceding:D,bCommonPreceding:ie,nCommonFollowing:L,aCommonFollowing:ee,bCommonFollowing:R,nChangeFollowing:M,aStartFollowing:j,bStartFollowing:V}=T;y<B&&_<W&&h(z,y,B,_,W,x,I,A,$,T),G!==0&&E(G,D,ie),L!==0&&E(L,ee,R),j<S&&V<O&&h(M,j,S,V,O,x,I,A,$,T)},b=(d,y)=>{if(typeof y!="number")throw new TypeError(`${t}: ${d} typeof ${typeof y} is not a number`);if(!Number.isSafeInteger(y))throw new RangeError(`${t}: ${d} value ${y} is not a safe integer`);if(y<0)throw new RangeError(`${t}: ${d} value ${y} is a negative
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var h={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"]},b={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},m="\u2026";function v(l,s){var w=h[b[s]]||h[s];return w?"\x1B[".concat(w[0],"m").concat(String(l),"\x1B[").concat(w[1],"m"):String(l)}function d(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=l.showHidden,w=s===void 0?!1:s,P=l.depth,N=P===void 0?2:P,U=l.colors,Q=U===void 0?!1:U,re=l.customInspect,he=re===void 0?!0:re,ge=l.showProxy,Re=ge===void 0?!1:ge,Le=l.maxArrayLength,Tt=Le===void 0?1/0:Le,Ze=l.breakLength,Ye=Ze===void 0?1/0:Ze,Qe=l.seen,sn=Qe===void 0?[]:Qe,ar=l.truncate,pn=ar===void 0?1/0:ar,or=l.stylize,mn=or===void 0?String:or,Rt={showHidden:!!w,depth:Number(N),colors:!!Q,customInspect:!!he,showProxy:!!Re,maxArrayLength:Number(Tt),breakLength:Number(Ye),truncate:Number(pn),seen:sn,stylize:mn};return Rt.colors&&(Rt.stylize=v),Rt}function y(l,s){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m;l=String(l);var P=w.length,N=l.length;return P>s&&N>P?w:N>s&&N>P?"".concat(l.slice(0,s-P)).concat(w):l}function S(l,s,w){var P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:", ";w=w||s.inspect;var N=l.length;if(N===0)return"";for(var U=s.truncate,Q="",re="",he="",ge=0;ge<N;ge+=1){var Re=ge+1===l.length,Le=ge+2===l.length;he="".concat(m,"(").concat(l.length-ge,")");var Tt=l[ge];s.truncate=U-Q.length-(Re?0:P.length);var Ze=re||w(Tt,s)+(Re?"":P),Ye=Q.length+Ze.length,Qe=Ye+he.length;if(Re&&Ye>U&&Q.length+he.length<=U||!Re&&!Le&&Qe>U||(re=Re?"":w(l[ge+1],s)+(Le?"":P),!Re&&Le&&Qe>U&&Ye+re.length>U))break;if(Q+=Ze,!Re&&!Le&&Ye+re.length>=U){he="".concat(m,"(").concat(l.length-ge-1,")");break}he=""}return"".concat(Q).concat(he)}function _(l){return l.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?l:JSON.stringify(l).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function O(l,s){var w=a(l,2),P=w[0],N=w[1];return s.truncate-=2,typeof P=="string"?P=_(P):typeof P!="number"&&(P="[".concat(s.inspect(P,s),"]")),s.truncate-=P.length,N=s.inspect(N,s),"".concat(P,": ").concat(N)}function x(l,s){var w=Object.keys(l).slice(l.length);if(!l.length&&!w.length)return"[]";s.truncate-=4;var P=S(l,s);s.truncate-=P.length;var N="";return w.length&&(N=S(w.map(function(U){return[U,l[U]]}),s,O)),"[ ".concat(P).concat(N?", ".concat(N):""," ]")}var I=Function.prototype.toString,A=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/,$=512;function T(l){if(typeof l!="function")return null;var s="";if(typeof Function.prototype.name>"u"&&typeof l.name>"u"){var w=I.call(l);if(w.indexOf("(")>$)return s;var P=w.match(A);P&&(s=P[1])}else s=l.name;return s}var E=T,F=function(l){return typeof Buffer=="function"&&l instanceof Buffer?"Buffer":l[Symbol.toStringTag]?l[Symbol.toStringTag]:E(l.constructor)};function z(l,s){var w=F(l);s.truncate-=w.length+4;var P=Object.keys(l).slice(l.length);if(!l.length&&!P.length)return"".concat(w,"[]");for(var N="",U=0;U<l.length;U++){var Q="".concat(s.stylize(y(l[U],s.truncate),"number")).concat(U===l.length-1?"":", ");if(s.truncate-=Q.length,l[U]!==l.length&&s.truncate<=3){N+="".concat(m,"(").concat(l.length-l[U]+1,")");break}N+=Q}var re="";return P.length&&(re=S(P.map(function(he){return[he,l[he]]}),s,O)),"".concat(w,"[ ").concat(N).concat(re?", ".concat(re):""," ]")}function B(l,s){var w=l.toJSON();if(w===null)return"Invalid Date";var P=w.split("T"),N=P[0];return s.stylize("".concat(N,"T").concat(y(P[1],s.truncate-N.length-1)),"date")}function W(l,s){v
`)}function er(l,s){var w=l.getAttributeNames(),P=l.tagName.toLowerCase(),N=s.stylize("<".concat(P),"special"),U=s.stylize(">","special"),Q=s.stylize("</".concat(P,">"),"special");s.truncate-=P.length*2+5;var re="";w.length>0&&(re+=" ",re+=S(w.map(function(Re){return[Re,l.getAttribute(Re)]}),s,rn," ")),s.truncate-=re.length;var he=s.truncate,ge=Ot(l.children,s);return ge&&ge.length>he&&(ge="".concat(m,"(").concat(l.children.length,")")),"".concat(N).concat(re).concat(U).concat(ge).concat(Q)}var nn=typeof Symbol=="function"&&typeof Symbol.for=="function",it=nn?Symbol.for("chai/inspect"):"@@chai/inspect",Ue=!1;try{var tr=da("util");Ue=tr.inspect?tr.inspect.custom:!1}catch{Ue=!1}function rr(){this.key="chai/loupe__"+Math.random()+Date.now()}rr.prototype={get:function(l){return l[this.key]},has:function(l){return this.key in l},set:function(l,s){Object.isExtensible(l)&&Object.defineProperty(l,this.key,{value:s,configurable:!0})}};var lt=new(typeof WeakMap=="function"?WeakMap:rr),ct={},nr={undefined:function(l,s){return s.stylize("undefined","undefined")},null:function(l,s){return s.stylize(null,"null")},boolean:function(l,s){return s.stylize(l,"boolean")},Boolean:function(l,s){return s.stylize(l,"boolean")},number:ee,Number:ee,bigint:R,BigInt:R,string:fe,String:fe,function:W,Function:W,symbol:_e,Symbol:_e,Array:x,Date:B,Map:ie,Set:V,RegExp:M,Promise:K,WeakSet:function(l,s){return s.stylize("WeakSet{\u2026}","special")},WeakMap:function(l,s){return s.stylize("WeakMap{\u2026}","special")},Arguments:Te,Int8Array:z,Uint8Array:z,Uint8ClampedArray:z,Int16Array:z,Uint16Array:z,Int32Array:z,Uint32Array:z,Float32Array:z,Float64Array:z,Generator:function(){return""},DataView:function(){return""},ArrayBuffer:function(){return""},Error:tn,HTMLCollection:Ot,NodeList:Ot},an=function(l,s,w){return it in l&&typeof l[it]=="function"?l[it](s):Ue&&Ue in l&&typeof l[Ue]=="function"?l[Ue](s.depth,s):"inspect"in l&&typeof l.inspect=="function"?l.inspect(s.depth,s):"constructor"in l&&lt.has(l.constructor)?lt.get(l.constructor)(l,s):ct[w]?ct[w](l,s):""},on=Object.prototype.toString;function ut(l,s){s=d(s),s.inspect=ut;var w=s,P=w.customInspect,N=l===null?"null":n(l);if(N==="object"&&(N=on.call(l).slice(8,-1)),nr[N])return nr[N](l,s);if(P&&l){var U=an(l,s,N);if(U)return typeof U=="string"?U:ut(U,s)}var Q=l?Object.getPrototypeOf(l):!1;return Q===Object.prototype||Q===null?C(l,s):l&&typeof HTMLElement=="function"&&l instanceof HTMLElement?er(l,s):"constructor"in l?l.constructor!==Object?oe(l,s):C(l,s):l===Object(l)?C(l,s):s.stylize(String(l),N)}function ln(l,s){return lt.has(l)?!1:(lt.set(l,s),!0)}function cn(l,s){return l in ct?!1:(ct[l]=s,!0)}var un=it;r.custom=un,r.default=ut,r.inspect=ut,r.registerConstructor=ln,r.registerStringTag=cn,Object.defineProperty(r,"__esModule",{value:!0})})}}),Ra=Ge(Kt(),1);Ge(Hr(),1);var xa={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"]},Ca=Object.entries(xa);function Jt(e){return String(e)}Jt.open="";Jt.close="";Ca.reduce((e,[t])=>(e[t]=Jt,e),{isColorSupported:!1});Ra.plugins;var Pa=Ge(Kt(),1);Ge(qr(),1);Pa.plugins;Ge(Kt(),1);Ge(Hr(),1);Ge(qr(),1);var Y=(e=>(e.DONE="done",e.ERROR="error",e.ACTIVE="active",e.WAITING="waiting",e))(Y||{}),He={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrum
`);return i.createElement("pre",{style:{margin:0,padding:"8px 10px 8px 36px",fontSize:Ie.size.s1,...t}},r.flatMap((n,a)=>{if(n.startsWith("expect(")){let h=Fr(n,7),b=h&&7+h.length,m=h&&n.slice(b).match(/\.(to|last|nth)[A-Z]\w+\(/);if(m){let v=b+m.index+m[0].length,d=Fr(n,v);if(d)return["expect(",i.createElement(yt,{key:`received_${h}`,value:h}),n.slice(b,v),i.createElement(Et,{key:`expected_${d}`,value:d}),n.slice(v+d.length),i.createElement("br",{key:`br${a}`})]}}if(n.match(/^\s*- /))return[i.createElement(Et,{key:n+a,value:n}),i.createElement("br",{key:`br${a}`})];if(n.match(/^\s*\+ /))return[i.createElement(yt,{key:n+a,value:n}),i.createElement("br",{key:`br${a}`})];let[,u,o]=n.match(/^(Expected|Received): (.*)$/)||[];if(u&&o)return u==="Expected"?["Expected: ",i.createElement(Et,{key:n+a,value:Wt(o),parsed:!0}),i.createElement("br",{key:`br${a}`})]:["Received: ",i.createElement(yt,{key:n+a,value:Wt(o),parsed:!0}),i.createElement("br",{key:`br${a}`})];let[,c,p]=n.match(/(Expected number|Received number|Number) of calls: (\d+)$/i)||[];if(c&&p)return[`${c} of calls: `,i.createElement(qe,{key:n+a,value:Number(p)}),i.createElement("br",{key:`br${a}`})];let[,f]=n.match(/^Received has value: (.+)$/)||[];return f?["Received has value: ",i.createElement(qe,{key:n+a,value:Wt(f)}),i.createElement("br",{key:`br${a}`})]:[i.createElement("span",{key:n+a},n),i.createElement("br",{key:`br${a}`})]}))},$o={pure:{gray:{500:"#CCCCCC"}}},ko={colors:$o},Fo=ko,{colors:{pure:{gray:Mo}}}=Fo,Lo=J(ke)(({theme:e,status:t})=>{let r={[Y.DONE]:e.color.positive,[Y.ERROR]:e.color.negative,[Y.ACTIVE]:e.color.secondary,[Y.WAITING]:ht(.5,Mo[500])}[t];return{width:t===Y.WAITING?6:12,height:t===Y.WAITING?6:12,color:r,justifySelf:"center"}}),Qr=({status:e,className:t})=>{let r={[Y.DONE]:"check",[Y.ERROR]:"stopalt",[Y.ACTIVE]:"play",[Y.WAITING]:"circle"}[e];return i.createElement(Lo,{"data-testid":`icon-${e}`,status:e,icon:r,className:t})},zo=J.div(()=>({fontFamily:Ie.fonts.mono,fontSize:Ie.size.s1,overflowWrap:"break-word",inlineSize:"calc( 100% - 40px )"})),Bo=J("div",{shouldForwardProp:e=>!["call","pausedAt"].includes(e.toString())})(({theme:e,call:t})=>({position:"relative",display:"flex",flexDirection:"column",borderBottom:`1px solid ${e.appBorderColor}`,fontFamily:Ie.fonts.base,fontSize:13,...t.status===Y.ERROR&&{backgroundColor:e.base==="dark"?ht(.93,e.color.negative):e.background.warning},paddingLeft:t.ancestors.length*20}),({theme:e,call:t,pausedAt:r})=>r===t.id&&{"&::before":{content:'""',position:"absolute",top:-5,zIndex:1,borderTop:"4.5px solid transparent",borderLeft:`7px solid ${e.color.warning}`,borderBottom:"4.5px solid transparent"},"&::after":{content:'""',position:"absolute",top:-1,zIndex:1,width:"100%",borderTop:`1.5px solid ${e.color.warning}`}}),Do=J.div(({theme:e,isInteractive:t})=>({display:"flex","&:hover":t?{}:{background:e.background.hoverable}})),Wo=J("button",{shouldForwardProp:e=>!["call"].includes(e.toString())})(({theme:e,disabled:t,call:r})=>({flex:1,display:"grid",background:"none",border:0,gridTemplateColumns:"15px 1fr",alignItems:"center",minHeight:40,margin:0,padding:"8px 15px",textAlign:"start",cursor:t||r.status===Y.ERROR?"default":"pointer","&:focus-visible":{outline:0,boxShadow:`inset 3px 0 0 0 ${r.status===Y.ERROR?e.color.warning:e.color.secondary}`,background:r.status===Y.ERROR?"transparent":e.background.hoverable},"& > div":{opacity:r.status===Y.WAITING?.5:1}})),Ho=J.div({padding:6}),qo=J(Pt)(({theme:e})=>({color:e.textMutedColor,margin:"0 3px"})),Go=J(At)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Uo=J("div")(({theme:e})=>({padding:"8px 10px 8px 36px",fontSize:Ie.size.s1,color:e.color.defaultText,pre:{margin:0,padding:0}})),Yo=({exception:e})=>{if(e.message.startsWith("expect("))return q(Mr,{...e});let t=e.message.split(`
2024-02-08 10:52:22 +01:00
2024-02-23 14:08:28 +01:00
`),r=t.length>1;return q(Uo,null,q("pre",null,t[0]),e.showDiff&&e.diff?q($e,null,q("br",null),q(Mr,{message:e.diff,style:{padding:0}})):q("pre",null,q("br",null),e.expected&&q($e,null,"Expected: ",q(Et,{value:e.expected}),q("br",null)),e.actual&&q($e,null,"Received: ",q(yt,{value:e.actual}),q("br",null))),r&&q("p",null,"See the full stack trace in the browser console."))},Vo=({call:e,callsById:t,controls:r,controlStates:n,childCallIds:a,isHidden:u,isCollapsed:o,toggleCollapsed:c,pausedAt:p})=>{let[f,h]=Pe(!1),b=!n.goto||!e.interceptable||!!e.ancestors.length;return u?null:q(Bo,{call:e,pausedAt:p},q(Do,{isInteractive:b},q(Wo,{"aria-label":"Interaction step",call:e,onClick:()=>r.goto(e.id),disabled:b,onMouseEnter:()=>n.goto&&h(!0),onMouseLeave:()=>n.goto&&h(!1)},q(Qr,{status:f?Y.ACTIVE:e.status}),q(zo,{style:{marginLeft:6,marginBottom:1}},q(Qt,{call:e,callsById:t}))),q(Ho,null,a?.length>0&&q(De,{hasChrome:!1,tooltip:q(Go,{note:`${o?"Show":"Hide"} interactions`})},q(qo,{containsIcon:!0,onClick:c},q(ke,{icon:"listunordered"}))))),e.status===Y.ERROR&&e.exception?.callId===e.id&&q(Yo,{exception:e.exception}))},Ko=J.div(({theme:e,withException:t})=>({minHeight:"100%",background:e.background.content,...t&&{backgroundColor:e.base==="dark"?ht(.93,e.color.negative):e.background.warning}})),Jo=J.div(({theme:e})=>({padding:15,fontSize:e.typography.size.s2-1,lineHeight:"19px"})),Xo=J.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:`1px solid ${e.appBorderColor}`,borderRadius:3})),Zo=J.div({paddingBottom:4,fontWeight:"bold"}),Qo=J.p({margin:0,padding:"0 0 20px"}),ei=J.pre(({theme:e})=>({margin:0,padding:0,fontSize:e.typography.size.s1-1})),ti=st(function({calls:e,controls:t,controlStates:r,interactions:n,fileName:a,hasException:u,caughtException:o,isPlaying:c,pausedAt:p,onScrollToEnd:f,endRef:h}){return q(Ko,{withException:!!o},(n.length>0||u)&&q(Da,{controls:t,controlStates:r,status:c?Y.ACTIVE:u?Y.ERROR:Y.DONE,storyFileName:a,onScrollToEnd:f}),q("div",{"aria-label":"Interactions list"},n.map(b=>q(Vo,{key:b.id,call:b,callsById:e,controls:t,controlStates:r,childCallIds:b.childCallIds,isHidden:b.isHidden,isCollapsed:b.isCollapsed,toggleCollapsed:b.toggleCollapsed,pausedAt:p}))),o&&!o.message?.startsWith("ignoredException")&&q(Jo,null,q(Zo,null,"Caught exception in ",q(Xo,null,"play")," function"),q(Qo,null,"This story threw an error after it finished rendering which means your interactions couldn' t be run.Go to this story' s play function in ",a," to fix."),q(ei,{"data-chromatic":"ignore"},o.stack||`${o.name}: ${o.message}`)),q("div",{ref:h}),!c&&!o&&n.length===0&&q(yr,null,"No interactions found",q(br,{href:"https://storybook.js.org/docs/react/writing-stories/play-function",target:"_blank",withArrow:!0},"Learn how to add interactions to your story")))}),Ht={start:!1,back:!1,goto:!1,next:!1,end:!1},Lr=({log:e,calls:t,collapsed:r,setCollapsed:n})=>{let a=new Map,u=new Map;return e.map(({callId:o,ancestors:c,status:p})=>{let f=!1;return c.forEach(h=>{r.has(h)&&(f=!0),u.set(h,(u.get(h)||[]).concat(o))}),{...t.get(o),status:p,isHidden:f}}).map(o=>{let c=o.status===Y.ERROR&&a.get(o.ancestors.slice(-1)[0])?.status===Y.ACTIVE?Y.ACTIVE:o.status;return a.set(o.id,{...o,status:c}),{...o,status:c,childCallIds:u.get(o.id),isCollapsed:r.has(o.id),toggleCollapsed:()=>n(p=>(p.has(o.id)?p.delete(o.id):p.add(o.id),new Set(p)))}})},ri=st(function({storyId:e}){let[t,r]=Ct(_t,{controlStates:Ht,isErrored:!1,pausedAt:void 0,interactions:[],isPlaying:!1,hasException:!1,caughtException:void 0,interactionsCount:0}),[n,a]=Pe(void 0),[u,o]=Pe(new Set),{controlStates:c=Ht,isErrored:p=!1,pausedAt:f=void 0,interactions:h=[],isPlaying:b=!1,caughtException:m=void 0}=t,v=pt([]),d=pt(new Map),y=({status:T,...E})=>d.current.set(E.id,E),S=pt();Be(()=>{let T;return mt.IntersectionObserver&&(T=new mt.IntersectionObserver(([E])=>a(E.isIntersecting?void 0:E.target),{root:mt.document.querySelector("#panel-tab-content")}),S.current&&T.observe(S.current)),()=>T?.disconnect()},[
2024-02-08 10:52:22 +01:00
}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); }