@brightspot/ui 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/components/avatar/Avatar.d.ts +1 -1
- package/dist/components/avatar/Avatar.d.ts.map +1 -1
- package/dist/components/avatar/Avatar.js +3 -1
- package/dist/components/avatar/Avatar.js.map +1 -1
- package/dist/components/popover/Popover.d.ts +161 -0
- package/dist/components/popover/Popover.d.ts.map +1 -0
- package/dist/components/popover/Popover.js +436 -0
- package/dist/components/popover/Popover.js.map +1 -0
- package/dist/components/widget/Widget.css +104 -0
- package/dist/components/widget/Widget.d.ts +170 -0
- package/dist/components/widget/Widget.d.ts.map +1 -0
- package/dist/components/widget/Widget.js +434 -0
- package/dist/components/widget/Widget.js.map +1 -0
- package/dist/custom-elements.json +604 -101
- package/dist/global.d.ts +5 -0
- package/dist/storybook/assets/{Avatar.stories-DrhezTR1.js → Avatar.stories-CPVNxsaA.js} +37 -32
- package/dist/storybook/assets/AvatarGroup.stories-Bl65NGHl.js +225 -0
- package/dist/storybook/assets/{Badge.stories-DtJcBfOR.js → Badge.stories-Bbnc6fRy.js} +1 -1
- package/dist/storybook/assets/{Button.stories-BKUfLgSY.js → Button.stories-CRJ5n2y4.js} +1 -1
- package/dist/storybook/assets/{CircularProgress.stories-dpmD-XJT.js → CircularProgress.stories-D9vBj3JJ.js} +1 -1
- package/dist/storybook/assets/{ClipboardMixin.stories-C0pnQ7BY.js → ClipboardMixin.stories-Dm-Jm4yb.js} +7 -7
- package/dist/storybook/assets/Color-6BZIO3FS-BcNIJY1U.js +1 -0
- package/dist/storybook/assets/{Colors.stories-bKK25qgF.js → Colors.stories-B9_090wL.js} +1 -1
- package/dist/storybook/assets/ComponentStatesMixin-ChiFBCuo.js +1 -0
- package/dist/storybook/assets/{ComponentStatesMixin.stories-9mRp2zuB.js → ComponentStatesMixin.stories-DHv9MHmE.js} +3 -3
- package/dist/storybook/assets/{CopyToClipboard.stories-BW3oaT1i.js → CopyToClipboard.stories-gtJlTP1l.js} +1 -1
- package/dist/storybook/assets/{Debounce.stories-BXx3CKvQ.js → Debounce.stories-BBNX7mJA.js} +3 -3
- package/dist/storybook/assets/DocsRenderer-LL677BLK-D-E99pXl.js +758 -0
- package/dist/storybook/assets/{Events.stories-PBeiuWQn.js → Events.stories-DDmydlh_.js} +1 -1
- package/dist/storybook/assets/{Heading.stories-Djkl0MoC.js → Heading.stories-BLGfko-i.js} +1 -1
- package/dist/storybook/assets/{Icon.stories-Cam1fyud.js → Icon.stories-BHnAGcFF.js} +1 -1
- package/dist/storybook/assets/{LinearProgress.stories-BDNoYIJu.js → LinearProgress.stories-Dx26a0P_.js} +1 -1
- package/dist/storybook/assets/Popover.stories-CbqpY6YR.js +431 -0
- package/dist/storybook/assets/ReadyMixin-BHiHoIbr.js +1 -0
- package/dist/storybook/assets/{Rtc.stories-BrTAIAi1.js → Rtc.stories-CAjDv_Ub.js} +3 -3
- package/dist/storybook/assets/{ScrollShadow.stories-DHcKhkag.js → ScrollShadow.stories-BSV4U-tq.js} +1 -1
- package/dist/storybook/assets/{Throttle.stories-cSYT_BXu.js → Throttle.stories-kaxXQ8RZ.js} +8 -8
- package/dist/storybook/assets/Tooltip.stories-CsxXkztr.js +143 -0
- package/dist/storybook/assets/Widget.stories-DqATHnSq.js +233 -0
- package/dist/storybook/assets/WithTooltip-65CFNBJE-BtbbFYSA.js +9 -0
- package/dist/storybook/assets/custom-element-UsVr97OX.js +1 -0
- package/dist/storybook/assets/formatter-EIJCOSYU-C87Csnpu.js +1 -0
- package/dist/storybook/assets/if-defined-COHr0XBn.js +1 -0
- package/dist/storybook/assets/{iframe-BMxUFmpF.css → iframe-BkDGeDre.css} +1 -1
- package/dist/storybook/assets/iframe-CcloOV09.js +1061 -0
- package/dist/storybook/assets/index-DP7vnJf7.js +1 -0
- package/dist/storybook/assets/onFind-DqriYjEB.js +1 -0
- package/dist/storybook/assets/onFind.stories-BxvoC-Z-.js +1069 -0
- package/dist/storybook/assets/{onRemove.stories-C7W9KyRr.js → onRemove.stories-Dwoixzb0.js} +3 -3
- package/dist/storybook/assets/{onVisible.stories-CIl6R0q4.js → onVisible.stories-CinmRF9w.js} +10 -10
- package/dist/storybook/assets/syntaxhighlighter-ED5Y7EFY-BHLkDkOn.js +6 -0
- package/dist/storybook/iframe.html +57 -39
- package/dist/storybook/index.html +11 -4
- package/dist/storybook/index.json +1 -1
- package/dist/storybook/project.json +1 -1
- package/dist/storybook/sb-addons/docs-1/manager-bundle.js +1 -1
- package/dist/storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +112 -290
- package/dist/storybook/sb-addons/vitest-2/manager-bundle.js +3 -0
- package/dist/storybook/sb-manager/globals-runtime.js +60754 -66346
- package/dist/storybook/sb-manager/globals.js +2 -3
- package/dist/storybook/sb-manager/manager-stores.js +23 -0
- package/dist/storybook/sb-manager/runtime.js +12983 -11699
- package/dist/storybook/vite-inject-mocker-entry.js +2 -2
- package/dist/tailwind-plugin-popover.d.ts +2 -0
- package/dist/tailwind-plugin-popover.d.ts.map +1 -0
- package/dist/tailwind-plugin-popover.js +177 -0
- package/dist/tailwind-plugin-popover.js.map +1 -0
- package/dist/tailwind-plugin-popover.ts +202 -0
- package/dist/tailwind-plugin-tooltip.d.ts +2 -0
- package/dist/tailwind-plugin-tooltip.d.ts.map +1 -0
- package/dist/tailwind-plugin-tooltip.js +184 -0
- package/dist/tailwind-plugin-tooltip.js.map +1 -0
- package/dist/tailwind-plugin-tooltip.ts +209 -0
- package/dist/util/EventEmitterMixin.d.ts +11 -0
- package/dist/util/EventEmitterMixin.d.ts.map +1 -1
- package/dist/util/EventEmitterMixin.js +1 -1
- package/dist/util/EventEmitterMixin.js.map +1 -1
- package/dist/util/TooltipController.d.ts +37 -0
- package/dist/util/TooltipController.d.ts.map +1 -0
- package/dist/util/TooltipController.js +133 -0
- package/dist/util/TooltipController.js.map +1 -0
- package/dist/util/TooltipMixin.d.ts +42 -0
- package/dist/util/TooltipMixin.d.ts.map +1 -0
- package/dist/util/TooltipMixin.js +401 -0
- package/dist/util/TooltipMixin.js.map +1 -0
- package/dist/util/onFind.d.ts +1 -0
- package/dist/util/onFind.d.ts.map +1 -1
- package/dist/util/onFind.js +73 -48
- package/dist/util/onFind.js.map +1 -1
- package/dist/util/onVisible.d.ts.map +1 -1
- package/dist/util/onVisible.js +13 -2
- package/dist/util/onVisible.js.map +1 -1
- package/package.json +12 -5
- package/dist/storybook/assets/AvatarGroup.stories-DrlxT-mF.js +0 -211
- package/dist/storybook/assets/Color-64QXVMR3-Dnd9S2a1.js +0 -1
- package/dist/storybook/assets/ComponentStatesMixin-C2HZ9ZFb.js +0 -1
- package/dist/storybook/assets/WithTooltip-SK46ZJ2J-Df0E-KJO.js +0 -825
- package/dist/storybook/assets/formatter-OMEEQ6HG-DFa_WTfb.js +0 -1
- package/dist/storybook/assets/iframe-lTczLWsL.js +0 -1064
- package/dist/storybook/assets/index-yMswRDPh.js +0 -1
- package/dist/storybook/assets/onFind-C6olvKHR.js +0 -1
- package/dist/storybook/assets/onFind.stories-DfW54CDE.js +0 -284
- package/dist/storybook/assets/syntaxhighlighter-CAVLW7PM-DoI0ixeu.js +0 -6
|
@@ -1,825 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./syntaxhighlighter-CAVLW7PM-DoI0ixeu.js","./iframe-lTczLWsL.js","./preload-helper-PPVm8Dsz.js","./iframe-BMxUFmpF.css","./_commonjsHelpers-CqkleIqs.js","./formatter-OMEEQ6HG-DFa_WTfb.js","./Color-64QXVMR3-Dnd9S2a1.js","./index-yMswRDPh.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as Ua}from"./preload-helper-PPVm8Dsz.js";import{d,e as ot,f as GM,h as VM,j as Xg,k as Zg,u as WC,l as KC,m as XC,n as ZC,s as JC,o as QC,p as ew,r as tw,q as Jc,t as rw,v as nw,w as aw,y as ow,z as iw,A as lw,B as sw,C as uw,D as cw,F as fw,G as dw,H as pw,I as Jg,J as Xn,K as YM,L as WM,M as KM,N as XM,O as Nc,P as Bo,c as or,S as Qg,Q as Wf,_,R as ZM,T as sg,a as JM,b as QM,U as kc}from"./iframe-lTczLWsL.js";import{g as hw}from"./_commonjsHelpers-CqkleIqs.js";function e8(e,t){for(var n=0;n<t.length;n++){const o=t[n];if(typeof o!="string"&&!Array.isArray(o)){for(const i in o)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(o,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>o[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var vf="backgrounds",t8="measureEnabled",gw="outline",r8={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},n8=5e3;function Kf(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}d(Kf,"isTestEnvironment");function L0(e=!0){if(!("document"in globalThis&&"createElement"in globalThis.document))return()=>{};const t=document.createElement("style");t.textContent=`*, *:before, *:after {
|
|
3
|
-
animation: none !important;
|
|
4
|
-
}`,document.head.appendChild(t);const n=document.createElement("style");return n.textContent=`*, *:before, *:after {
|
|
5
|
-
animation-delay: 0s !important;
|
|
6
|
-
animation-direction: ${e?"reverse":"normal"} !important;
|
|
7
|
-
animation-play-state: paused !important;
|
|
8
|
-
transition: none !important;
|
|
9
|
-
}`,document.head.appendChild(n),document.body.clientHeight,document.head.removeChild(t),()=>{n.parentNode?.removeChild(n)}}d(L0,"pauseAnimations");async function N0(e){if(!("document"in globalThis&&"getAnimations"in globalThis.document&&"querySelectorAll"in globalThis.document))return;let t=!1;await Promise.race([new Promise(n=>{setTimeout(()=>{const o=[globalThis.document,...k0(globalThis.document)],i=d(async()=>{if(t||e?.aborted)return;const s=o.flatMap(c=>c?.getAnimations?.()||[]).filter(c=>c.playState==="running"&&!mw(c));s.length>0&&(await Promise.all(s.map(c=>c.finished)),await i())},"checkAnimationsFinished");i().then(n)},100)}),new Promise(n=>setTimeout(()=>{t=!0,n(void 0)},n8))])}d(N0,"waitForAnimations");function k0(e){return[e,...e.querySelectorAll("*")].reduce((t,n)=>("shadowRoot"in n&&n.shadowRoot&&t.push(n.shadowRoot,...k0(n.shadowRoot)),t),[])}d(k0,"getShadowRoots");function mw(e){if(e instanceof CSSAnimation&&e.effect instanceof KeyframeEffect&&e.effect.target){const t=getComputedStyle(e.effect.target,e.effect.pseudoElement),n=t.animationName?.split(", ").indexOf(e.animationName);return t.animationIterationCount.split(", ")[n]==="infinite"}return!1}d(mw,"isInfiniteAnimation");var yw=ot({"../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=o;var t=Array.from({length:256},(i,s)=>"%"+((s<16?"0":"")+s.toString(16)).toUpperCase()),n=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function o(i){const s=i.length;if(s===0)return"";let c="",f=0,p=0;e:for(;p<s;p++){let h=i.charCodeAt(p);for(;h<128;){if(n[h]!==1&&(f<p&&(c+=i.slice(f,p)),f=p+1,c+=t[h]),++p===s)break e;h=i.charCodeAt(p)}if(f<p&&(c+=i.slice(f,p)),h<2048){f=p+1,c+=t[192|h>>6]+t[128|h&63];continue}if(h<55296||h>=57344){f=p+1,c+=t[224|h>>12]+t[128|h>>6&63]+t[128|h&63];continue}if(++p,p>=s)throw new Error("URI malformed");const y=i.charCodeAt(p)&1023;f=p+1,h=65536+((h&1023)<<10|y),c+=t[240|h>>18]+t[128|h>>12&63]+t[128|h>>6&63]+t[128|h&63]}return f===0?i:f<s?c+i.slice(f):c}d(o,"encodeString")}}),z0=ot({"../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=yw(),n=d(s=>{switch(typeof s){case"string":return(0,t.encodeString)(s);case"bigint":case"boolean":return""+s;case"number":if(Number.isFinite(s))return s<1e21?""+s:(0,t.encodeString)(""+s);break}return s instanceof Date?(0,t.encodeString)(s.toISOString()):""},"defaultValueSerializer");e.defaultValueSerializer=n;var o=d(s=>s instanceof Date,"defaultShouldSerializeObject");e.defaultShouldSerializeObject=o;var i=d(s=>s,"identityFunc");e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:i,valueSerializer:e.defaultValueSerializer,keyDeserializer:i,shouldSerializeObject:e.defaultShouldSerializeObject}}}),vw=ot({"../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=i,e.stringifyObject=y;var t=z0(),n=yw();function o(v){return v==="__proto__"||v==="constructor"||v==="prototype"}d(o,"isPrototypeKey");function i(v,b,S,w,x){if(o(b))return v;const O=v[b];return typeof O=="object"&&O!==null?O:!w&&(x||typeof S=="number"||typeof S=="string"&&S*0===0&&S.indexOf(".")===-1)?v[b]=[]:v[b]={}}d(i,"getDeepObject");var s=20,c="[]",f="[",p="]",h=".";function y(v,b,S=0,w,x){const{nestingSyntax:O=t.defaultOptions.nestingSyntax,arrayRepeat:A=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:R=t.defaultOptions.arrayRepeatSyntax,nesting:T=t.defaultOptions.nesting,delimiter:F=t.defaultOptions.delimiter,valueSerializer:N=t.defaultOptions.valueSerializer,shouldSerializeObject:L=t.defaultOptions.shouldSerializeObject}=b,B=typeof F=="number"?String.fromCharCode(F):F,$=x===!0&&A,P=O==="dot"||O==="js"&&!x;if(S>s)return"";let I="",U=!0,Q=!1;for(const X in v){const z=v[X];if(z===void 0)continue;let q;w?(q=w,$?R==="bracket"&&(q+=c):P?(q+=h,q+=X):(q+=f,q+=X,q+=p)):q=X,U||(I+=B),typeof z=="object"&&z!==null&&!L(z)?(Q=z.pop!==void 0,(T||A&&Q)&&(I+=y(z,b,S+1,q,Q))):(I+=(0,n.encodeString)(q),I+="=",I+=N(z,X)),U&&(U=!1)}return I}d(y,"stringifyObject")}}),a8=ot({"../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeURIComponent=i;var t=12,n=0,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function i(f){let p=f.indexOf("%");if(p===-1)return f;const h=f.length;let y="",v=0,b=0,S=p,w=t;for(;p>-1&&p<h;){const x=c(f[p+1],4),O=c(f[p+2],0),A=x|O,R=o[A];if(w=o[256+w+R],b=b<<6|A&o[364+R],w===t)y+=f.slice(v,S),y+=b<=65535?String.fromCharCode(b):String.fromCharCode(55232+(b>>10),56320+(b&1023)),b=0,v=p+3,p=S=f.indexOf("%",v);else{if(w===n)return null;if(p+=3,p<h&&f.charCodeAt(p)===37)continue;return null}}return y+f.slice(v)}d(i,"decodeURIComponent");var s={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function c(f,p){const h=s[f];return h===void 0?255:h<<p}d(c,"hexCodeToInt")}}),o8=ot({"../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=h;var t=vw(),n=z0(),o=a8(),i=d(y=>{const v=Number(y);return Number.isNaN(v)?y:v},"numberKeyDeserializer");e.numberKeyDeserializer=i;var s=d(y=>{const v=Number(y);return Number.isNaN(v)?y:v},"numberValueDeserializer");e.numberValueDeserializer=s;var c=/\+/g,f=d(function(){},"Empty");f.prototype=Object.create(null);function p(y,v,b,S,w){let x=y.substring(v,b);return S&&(x=x.replace(c," ")),w&&(x=(0,o.decodeURIComponent)(x)||x),x}d(p,"computeKeySlice");function h(y,v){const{valueDeserializer:b=n.defaultOptions.valueDeserializer,keyDeserializer:S=n.defaultOptions.keyDeserializer,arrayRepeatSyntax:w=n.defaultOptions.arrayRepeatSyntax,nesting:x=n.defaultOptions.nesting,arrayRepeat:O=n.defaultOptions.arrayRepeat,nestingSyntax:A=n.defaultOptions.nestingSyntax,delimiter:R=n.defaultOptions.delimiter}=v??{},T=typeof R=="string"?R.charCodeAt(0):R,F=A==="js",N=new f;if(typeof y!="string")return N;const L=y.length;let B="",$=-1,P=-1,I=-1,U=N,Q,X="",z="",q=!1,k=!1,Y=!1,ae=!1,le=!1,ce=!1,j=0,W=-1,ne=-1,ue=-1;for(let se=0;se<L+1;se++){if(j=se!==L?y.charCodeAt(se):T,j===T){if(ce=P>$,ce||(P=se),I!==P-1&&(z=p(y,I+1,W>-1?W:P,Y,q),X=S(z),Q!==void 0&&(U=(0,t.getDeepObject)(U,Q,X,F&&le,void 0))),ce||X!==""){ce&&(B=y.slice(P+1,se),ae&&(B=B.replace(c," ")),k&&(B=(0,o.decodeURIComponent)(B)||B));const fe=b(B,X);if(O){const pe=U[X];pe===void 0?W>-1?U[X]=[fe]:U[X]=fe:pe.pop?pe.push(fe):U[X]=[pe,fe]}else U[X]=fe}B="",$=se,P=se,q=!1,k=!1,Y=!1,ae=!1,le=!1,W=-1,I=se,U=N,Q=void 0,X=""}else j===93?(O&&w==="bracket"&&ue===91&&(W=ne),x&&(A==="index"||F)&&P<=$&&(I!==ne&&(z=p(y,I+1,se,Y,q),X=S(z),Q!==void 0&&(U=(0,t.getDeepObject)(U,Q,X,void 0,void 0)),Q=X,Y=!1,q=!1),I=se,le=!1)):j===46?x&&(A==="dot"||F)&&P<=$&&(I!==ne&&(z=p(y,I+1,se,Y,q),X=S(z),Q!==void 0&&(U=(0,t.getDeepObject)(U,Q,X,F)),Q=X,Y=!1,q=!1),le=!0,I=se):j===91?x&&(A==="index"||F)&&P<=$&&(I!==ne&&(z=p(y,I+1,se,Y,q),X=S(z),F&&Q!==void 0&&(U=(0,t.getDeepObject)(U,Q,X,F)),Q=X,Y=!1,q=!1,le=!1),I=se):j===61?P<=$?P=se:k=!0:j===43?P>$?ae=!0:Y=!0:j===37&&(P>$?k=!0:q=!0);ne=se,ue=j}return N}d(h,"parse")}}),i8=ot({"../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=n;var t=vw();function n(o,i){if(o===null||typeof o!="object")return"";const s=i??{};return(0,t.stringifyObject)(o,s)}d(n,"stringify")}}),j0=ot({"../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?function(s,c,f,p){p===void 0&&(p=f);var h=Object.getOwnPropertyDescriptor(c,f);(!h||("get"in h?!c.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:d(function(){return c[f]},"get")}),Object.defineProperty(s,p,h)}:function(s,c,f,p){p===void 0&&(p=f),s[p]=c[f]}),n=e&&e.__exportStar||function(s,c){for(var f in s)f!=="default"&&!Object.prototype.hasOwnProperty.call(c,f)&&t(c,s,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var o=o8();Object.defineProperty(e,"parse",{enumerable:!0,get:d(function(){return o.parse},"get")});var i=i8();Object.defineProperty(e,"stringify",{enumerable:!0,get:d(function(){return i.stringify},"get")}),n(z0(),e)}});function Qi(e,t){const n={},o=Object.keys(e);for(let i=0;i<o.length;i++){const s=o[i],c=e[s];n[s]=t(c,s,e)}return n}d(Qi,"mapValues");function $0(e){return e==="__proto__"}d($0,"isUnsafeProperty");function em(e){return typeof e=="object"&&e!==null}d(em,"isObjectLike");function tm(e,t,n){const o=Object.keys(t);for(let i=0;i<o.length;i++){const s=o[i];if($0(s))continue;const c=t[s],f=e[s],p=n(f,c,s,e,t);p!==void 0?e[s]=p:Array.isArray(c)?e[s]=tm(f??[],c,n):em(f)&&em(c)?e[s]=tm(f??{},c,n):(f===void 0||c!==void 0)&&(e[s]=c)}return e}d(tm,"mergeWith");function l8(e,t){const n={};for(let o=0;o<t.length;o++){const i=t[o];Object.hasOwn(e,i)&&(n[i]=e[i])}return n}d(l8,"pick");function bw(e,t){const n={},o=Object.keys(e);for(let i=0;i<o.length;i++){const s=o[i],c=e[s];t(c,s)&&(n[s]=c)}return n}d(bw,"pickBy");function Ao(e,t,n,o=new Map,i=void 0){const s=i?.(e,t,n,o);if(s!==void 0)return s;if(GM(e))return e;if(o.has(e))return o.get(e);if(Array.isArray(e)){const c=new Array(e.length);o.set(e,c);for(let f=0;f<e.length;f++)c[f]=Ao(e[f],f,n,o,i);return Object.hasOwn(e,"index")&&(c.index=e.index),Object.hasOwn(e,"input")&&(c.input=e.input),c}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const c=new RegExp(e.source,e.flags);return c.lastIndex=e.lastIndex,c}if(e instanceof Map){const c=new Map;o.set(e,c);for(const[f,p]of e)c.set(f,Ao(p,f,n,o,i));return c}if(e instanceof Set){const c=new Set;o.set(e,c);for(const f of e)c.add(Ao(f,void 0,n,o,i));return c}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(VM(e)){const c=new(Object.getPrototypeOf(e)).constructor(e.length);o.set(e,c);for(let f=0;f<e.length;f++)c[f]=Ao(e[f],f,n,o,i);return c}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const c=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return o.set(e,c),zi(c,e,n,o,i),c}if(typeof File<"u"&&e instanceof File){const c=new File([e],e.name,{type:e.type});return o.set(e,c),zi(c,e,n,o,i),c}if(e instanceof Blob){const c=new Blob([e],{type:e.type});return o.set(e,c),zi(c,e,n,o,i),c}if(e instanceof Error){const c=new e.constructor;return o.set(e,c),c.message=e.message,c.name=e.name,c.stack=e.stack,c.cause=e.cause,zi(c,e,n,o,i),c}if(typeof e=="object"&&Ew(e)){const c=Object.create(Object.getPrototypeOf(e));return o.set(e,c),zi(c,e,n,o,i),c}return e}d(Ao,"cloneDeepWithImpl");function zi(e,t,n=e,o,i){const s=[...Object.keys(t),...Xg(t)];for(let c=0;c<s.length;c++){const f=s[c],p=Object.getOwnPropertyDescriptor(e,f);(p==null||p.writable)&&(e[f]=Ao(t[f],f,n,o,i))}}d(zi,"copyProperties");function Ew(e){switch(Zg(e)){case Jg:case pw:case dw:case fw:case cw:case uw:case sw:case lw:case iw:case ow:case aw:case nw:case rw:case Jc:case tw:case ew:case QC:case JC:case ZC:case XC:case KC:case WC:return!0;default:return!1}}d(Ew,"isCloneableObject");function Sw(e){return Ao(e,void 0,e,new Map,void 0)}d(Sw,"cloneDeep");function qi(e,t){const n=Object.keys(t);for(let o=0;o<n.length;o++){const i=n[o];if($0(i))continue;const s=t[i],c=e[i];Array.isArray(s)?Array.isArray(c)?e[i]=qi(c,s):e[i]=qi([],s):Xn(s)?Xn(c)?e[i]=qi(c,s):e[i]=qi({},s):(c===void 0||s!==void 0)&&(e[i]=s)}return e}d(qi,"merge");function s8(e,t){return qi(Sw(e),t)}d(s8,"toMerged");function Aw(){}d(Aw,"noop");function Cw(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}d(Cw,"eq");function ww(e,t,n){return Gi(e,t,void 0,void 0,void 0,void 0,n)}d(ww,"isEqualWith");function Gi(e,t,n,o,i,s,c){const f=c(e,t,n,o,i,s);if(f!==void 0)return f;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return Yi(e,t,s,c)}return Yi(e,t,s,c)}d(Gi,"isEqualWithImpl");function Yi(e,t,n,o){if(Object.is(e,t))return!0;let i=Zg(e),s=Zg(t);if(i===Jg&&(i=Jc),s===Jg&&(s=Jc),i!==s)return!1;switch(i){case QC:return e.toString()===t.toString();case rw:{const p=e.valueOf(),h=t.valueOf();return Cw(p,h)}case cw:case uw:case JC:return Object.is(e.valueOf(),t.valueOf());case tw:return e.source===t.source&&e.flags===t.flags;case YM:return e===t}n=n??new Map;const c=n.get(e),f=n.get(t);if(c!=null&&f!=null)return c===t;n.set(e,t),n.set(t,e);try{switch(i){case nw:{if(e.size!==t.size)return!1;for(const[p,h]of e.entries())if(!t.has(p)||!Gi(h,t.get(p),p,e,t,n,o))return!1;return!0}case ew:{if(e.size!==t.size)return!1;const p=Array.from(e.values()),h=Array.from(t.values());for(let y=0;y<p.length;y++){const v=p[y],b=h.findIndex(S=>Gi(v,S,void 0,e,t,n,o));if(b===-1)return!1;h.splice(b,1)}return!0}case pw:case ZC:case XC:case KC:case WC:case XM:case iw:case ow:case aw:case KM:case sw:case lw:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let p=0;p<e.length;p++)if(!Gi(e[p],t[p],p,e,t,n,o))return!1;return!0}case dw:return e.byteLength!==t.byteLength?!1:Yi(new Uint8Array(e),new Uint8Array(t),n,o);case fw:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:Yi(new Uint8Array(e),new Uint8Array(t),n,o);case WM:return e.name===t.name&&e.message===t.message;case Jc:{if(!(Yi(e.constructor,t.constructor,n,o)||Xn(e)&&Xn(t)))return!1;const h=[...Object.keys(e),...Xg(e)],y=[...Object.keys(t),...Xg(t)];if(h.length!==y.length)return!1;for(let v=0;v<h.length;v++){const b=h[v],S=e[b];if(!Object.hasOwn(t,b))return!1;const w=t[b];if(!Gi(S,w,b,e,t,n,o))return!1}return!0}default:return!1}}finally{n.delete(e),n.delete(t)}}d(Yi,"areObjectsEqual");function xw(e,t){return ww(e,t,Aw)}d(xw,"isEqual");var u8="Invariant failed";function _o(e,t){if(!e)throw new Error(u8)}d(_o,"invariant");var Dw=ot({"../node_modules/entities/lib/maps/entities.json"(e,t){t.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
10
|
-
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}}}),c8=ot({"../node_modules/entities/lib/maps/legacy.json"(e,t){t.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}}}),_w=ot({"../node_modules/entities/lib/maps/xml.json"(e,t){t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}}),f8=ot({"../node_modules/entities/lib/maps/decode.json"(e,t){t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}}),d8=ot({"../node_modules/entities/lib/decode_codepoint.js"(e){var t=e&&e.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(e,"__esModule",{value:!0});var n=t(f8()),o=String.fromCodePoint||function(s){var c="";return s>65535&&(s-=65536,c+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),c+=String.fromCharCode(s),c};function i(s){return s>=55296&&s<=57343||s>1114111?"�":(s in n.default&&(s=n.default[s]),o(s))}d(i,"decodeCodePoint"),e.default=i}}),JE=ot({"../node_modules/entities/lib/decode.js"(e){var t=e&&e.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var n=t(Dw()),o=t(c8()),i=t(_w()),s=t(d8()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=f(i.default),e.decodeHTMLStrict=f(n.default);function f(y){var v=h(y);return function(b){return String(b).replace(c,v)}}d(f,"getStrictDecoder");var p=d(function(y,v){return y<v?1:-1},"sorter");e.decodeHTML=(function(){for(var y=Object.keys(o.default).sort(p),v=Object.keys(n.default).sort(p),b=0,S=0;b<v.length;b++)y[S]===v[b]?(v[b]+=";?",S++):v[b]+=";";var w=new RegExp("&(?:"+v.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),x=h(n.default);function O(A){return A.substr(-1)!==";"&&(A+=";"),x(A)}return d(O,"replacer"),function(A){return String(A).replace(w,O)}})();function h(y){return d(function(b){if(b.charAt(1)==="#"){var S=b.charAt(2);return S==="X"||S==="x"?s.default(parseInt(b.substr(3),16)):s.default(parseInt(b.substr(2),10))}return y[b.slice(1,-1)]||b},"replace")}d(h,"getReplacer")}}),QE=ot({"../node_modules/entities/lib/encode.js"(e){var t=e&&e.__importDefault||function(R){return R&&R.__esModule?R:{default:R}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var n=t(_w()),o=p(n.default),i=h(o);e.encodeXML=A(o);var s=t(Dw()),c=p(s.default),f=h(c);e.encodeHTML=S(c,f),e.encodeNonAsciiHTML=A(c);function p(R){return Object.keys(R).sort().reduce(function(T,F){return T[R[F]]="&"+F+";",T},{})}d(p,"getInverseObj");function h(R){for(var T=[],F=[],N=0,L=Object.keys(R);N<L.length;N++){var B=L[N];B.length===1?T.push("\\"+B):F.push(B)}T.sort();for(var $=0;$<T.length-1;$++){for(var P=$;P<T.length-1&&T[P].charCodeAt(1)+1===T[P+1].charCodeAt(1);)P+=1;var I=1+P-$;I<3||T.splice($,I,T[$]+"-"+T[P])}return F.unshift("["+T.join("")+"]"),new RegExp(F.join("|"),"g")}d(h,"getInverseReplacer");var y=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,v=String.prototype.codePointAt!=null?(function(R){return R.codePointAt(0)}):(function(R){return(R.charCodeAt(0)-55296)*1024+R.charCodeAt(1)-56320+65536});function b(R){return"&#x"+(R.length>1?v(R):R.charCodeAt(0)).toString(16).toUpperCase()+";"}d(b,"singleCharReplacer");function S(R,T){return function(F){return F.replace(T,function(N){return R[N]}).replace(y,b)}}d(S,"getInverse");var w=new RegExp(i.source+"|"+y.source,"g");function x(R){return R.replace(w,b)}d(x,"escape"),e.escape=x;function O(R){return R.replace(i,b)}d(O,"escapeUTF8"),e.escapeUTF8=O;function A(R){return function(T){return T.replace(w,function(F){return R[F]||b(F)})}}d(A,"getASCIIEncoder")}}),p8=ot({"../node_modules/entities/lib/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=JE(),n=QE();function o(p,h){return(!h||h<=0?t.decodeXML:t.decodeHTML)(p)}d(o,"decode"),e.decode=o;function i(p,h){return(!h||h<=0?t.decodeXML:t.decodeHTMLStrict)(p)}d(i,"decodeStrict"),e.decodeStrict=i;function s(p,h){return(!h||h<=0?n.encodeXML:n.encodeHTML)(p)}d(s,"encode"),e.encode=s;var c=QE();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:d(function(){return c.encodeXML},"get")}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:d(function(){return c.encodeHTML},"get")}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:d(function(){return c.encodeNonAsciiHTML},"get")}),Object.defineProperty(e,"escape",{enumerable:!0,get:d(function(){return c.escape},"get")}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:d(function(){return c.escapeUTF8},"get")}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:d(function(){return c.encodeHTML},"get")}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:d(function(){return c.encodeHTML},"get")});var f=JE();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:d(function(){return f.decodeXML},"get")}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:d(function(){return f.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:d(function(){return f.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:d(function(){return f.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:d(function(){return f.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:d(function(){return f.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:d(function(){return f.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:d(function(){return f.decodeXML},"get")})}}),h8=ot({"../node_modules/ansi-to-html/lib/ansi_to_html.js"(e,t){function n(z,q){if(!(z instanceof q))throw new TypeError("Cannot call a class as a function")}d(n,"_classCallCheck");function o(z,q){for(var k=0;k<q.length;k++){var Y=q[k];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(z,Y.key,Y)}}d(o,"_defineProperties");function i(z,q,k){return q&&o(z.prototype,q),k&&o(z,k),z}d(i,"_createClass");function s(z,q){var k=typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(!k){if(Array.isArray(z)||(k=c(z))||q&&z&&typeof z.length=="number"){k&&(z=k);var Y=0,ae=d(function(){},"F");return{s:ae,n:d(function(){return Y>=z.length?{done:!0}:{done:!1,value:z[Y++]}},"n"),e:d(function(ne){throw ne},"e"),f:ae}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
11
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var le=!0,ce=!1,j;return{s:d(function(){k=k.call(z)},"s"),n:d(function(){var ne=k.next();return le=ne.done,ne},"n"),e:d(function(ne){ce=!0,j=ne},"e"),f:d(function(){try{!le&&k.return!=null&&k.return()}finally{if(ce)throw j}},"f")}}d(s,"_createForOfIteratorHelper");function c(z,q){if(z){if(typeof z=="string")return f(z,q);var k=Object.prototype.toString.call(z).slice(8,-1);if(k==="Object"&&z.constructor&&(k=z.constructor.name),k==="Map"||k==="Set")return Array.from(z);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return f(z,q)}}d(c,"_unsupportedIterableToArray");function f(z,q){(q==null||q>z.length)&&(q=z.length);for(var k=0,Y=new Array(q);k<q;k++)Y[k]=z[k];return Y}d(f,"_arrayLikeToArray");var p=p8(),h={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:y()};function y(){var z={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return R(0,5).forEach(function(q){R(0,5).forEach(function(k){R(0,5).forEach(function(Y){return v(q,k,Y,z)})})}),R(0,23).forEach(function(q){var k=q+232,Y=b(q*10+8);z[k]="#"+Y+Y+Y}),z}d(y,"getDefaultColors");function v(z,q,k,Y){var ae=16+z*36+q*6+k,le=z>0?z*40+55:0,ce=q>0?q*40+55:0,j=k>0?k*40+55:0;Y[ae]=S([le,ce,j])}d(v,"setStyleColor");function b(z){for(var q=z.toString(16);q.length<2;)q="0"+q;return q}d(b,"toHexString");function S(z){var q=[],k=s(z),Y;try{for(k.s();!(Y=k.n()).done;){var ae=Y.value;q.push(b(ae))}}catch(le){k.e(le)}finally{k.f()}return"#"+q.join("")}d(S,"toColorHexString");function w(z,q,k,Y){var ae;return q==="text"?ae=N(k,Y):q==="display"?ae=O(z,k,Y):q==="xterm256Foreground"?ae=$(z,Y.colors[k]):q==="xterm256Background"?ae=P(z,Y.colors[k]):q==="rgb"&&(ae=x(z,k)),ae}d(w,"generateOutput");function x(z,q){q=q.substring(2).slice(0,-1);var k=+q.substr(0,2),Y=q.substring(5).split(";"),ae=Y.map(function(le){return("0"+Number(le).toString(16)).substr(-2)}).join("");return B(z,(k===38?"color:#":"background-color:#")+ae)}d(x,"handleRgb");function O(z,q,k){q=parseInt(q,10);var Y={"-1":d(function(){return"<br/>"},"_"),0:d(function(){return z.length&&A(z)},"_"),1:d(function(){return L(z,"b")},"_"),3:d(function(){return L(z,"i")},"_"),4:d(function(){return L(z,"u")},"_"),8:d(function(){return B(z,"display:none")},"_"),9:d(function(){return L(z,"strike")},"_"),22:d(function(){return B(z,"font-weight:normal;text-decoration:none;font-style:normal")},"_"),23:d(function(){return I(z,"i")},"_"),24:d(function(){return I(z,"u")},"_"),39:d(function(){return $(z,k.fg)},"_"),49:d(function(){return P(z,k.bg)},"_"),53:d(function(){return B(z,"text-decoration:overline")},"_")},ae;return Y[q]?ae=Y[q]():4<q&&q<7?ae=L(z,"blink"):29<q&&q<38?ae=$(z,k.colors[q-30]):39<q&&q<48?ae=P(z,k.colors[q-40]):89<q&&q<98?ae=$(z,k.colors[8+(q-90)]):99<q&&q<108&&(ae=P(z,k.colors[8+(q-100)])),ae}d(O,"handleDisplay");function A(z){var q=z.slice(0);return z.length=0,q.reverse().map(function(k){return"</"+k+">"}).join("")}d(A,"resetStyles");function R(z,q){for(var k=[],Y=z;Y<=q;Y++)k.push(Y);return k}d(R,"range");function T(z){return function(q){return(z===null||q.category!==z)&&z!=="all"}}d(T,"notCategory");function F(z){z=parseInt(z,10);var q=null;return z===0?q="all":z===1?q="bold":2<z&&z<5?q="underline":4<z&&z<7?q="blink":z===8?q="hide":z===9?q="strike":29<z&&z<38||z===39||89<z&&z<98?q="foreground-color":(39<z&&z<48||z===49||99<z&&z<108)&&(q="background-color"),q}d(F,"categoryForCode");function N(z,q){return q.escapeXML?p.encodeXML(z):z}d(N,"pushText");function L(z,q,k){return k||(k=""),z.push(q),"<".concat(q).concat(k?' style="'.concat(k,'"'):"",">")}d(L,"pushTag");function B(z,q){return L(z,"span",q)}d(B,"pushStyle");function $(z,q){return L(z,"span","color:"+q)}d($,"pushForegroundColor");function P(z,q){return L(z,"span","background-color:"+q)}d(P,"pushBackgroundColor");function I(z,q){var k;if(z.slice(-1)[0]===q&&(k=z.pop()),k)return"</"+q+">"}d(I,"closeTag");function U(z,q,k){var Y=!1,ae=3;function le(){return""}d(le,"remove");function ce(Be,Ie){return k("xterm256Foreground",Ie),""}d(ce,"removeXterm256Foreground");function j(Be,Ie){return k("xterm256Background",Ie),""}d(j,"removeXterm256Background");function W(Be){return q.newline?k("display",-1):k("text",Be),""}d(W,"newline");function ne(Be,Ie){Y=!0,Ie.trim().length===0&&(Ie="0"),Ie=Ie.trimRight(";").split(";");var Nt=s(Ie),lt;try{for(Nt.s();!(lt=Nt.n()).done;){var Sr=lt.value;k("display",Sr)}}catch(Ot){Nt.e(Ot)}finally{Nt.f()}return""}d(ne,"ansiMess");function ue(Be){return k("text",Be),""}d(ue,"realText");function se(Be){return k("rgb",Be),""}d(se,"rgb");var fe=[{pattern:/^\x08+/,sub:le},{pattern:/^\x1b\[[012]?K/,sub:le},{pattern:/^\x1b\[\(B/,sub:le},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:se},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ce},{pattern:/^\x1b\[48;5;(\d+)m/,sub:j},{pattern:/^\n/,sub:W},{pattern:/^\r+\n/,sub:W},{pattern:/^\r/,sub:W},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:ne},{pattern:/^\x1b\[\d?J/,sub:le},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:le},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:le},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:ue}];function pe(Be,Ie){Ie>ae&&Y||(Y=!1,z=z.replace(Be.pattern,Be.sub))}d(pe,"process");var Fe=[],De=z,bt=De.length;e:for(;bt>0;){for(var Ke=0,Re=0,tt=fe.length;Re<tt;Ke=++Re){var Le=fe[Ke];if(pe(Le,Ke),z.length!==bt){bt=z.length;continue e}}if(z.length===bt)break;Fe.push(0),bt=z.length}return Fe}d(U,"tokenize");function Q(z,q,k){return q!=="text"&&(z=z.filter(T(F(k))),z.push({token:q,data:k,category:F(k)})),z}d(Q,"updateStickyStack");var X=(function(){function z(q){n(this,z),q=q||{},q.colors&&(q.colors=Object.assign({},h.colors,q.colors)),this.options=Object.assign({},h,q),this.stack=[],this.stickyStack=[]}return d(z,"Filter"),i(z,[{key:"toHtml",value:d(function(k){var Y=this;k=typeof k=="string"?[k]:k;var ae=this.stack,le=this.options,ce=[];return this.stickyStack.forEach(function(j){var W=w(ae,j.token,j.data,le);W&&ce.push(W)}),U(k.join(""),le,function(j,W){var ne=w(ae,j,W,le);ne&&ce.push(ne),le.stream&&(Y.stickyStack=Q(Y.stickyStack,j,W))}),ae.length&&ce.push(A(ae)),ce.join("")},"toHtml")}]),z})();t.exports=X}}),ou=ot({"../node_modules/memoizerific/memoizerific.js"(e,t){(function(n){if(typeof e=="object"&&typeof t<"u")t.exports=n();else if(typeof define=="function"&&define.amd)define([],n);else{var o;typeof window<"u"?o=window:typeof global<"u"?o=global:typeof self<"u"?o=self:o=this,o.memoizerific=n()}})(function(){return d(function n(o,i,s){function c(h,y){if(!i[h]){if(!o[h]){var v=typeof Nc=="function"&&Nc;if(!y&&v)return v(h,!0);if(f)return f(h,!0);var b=new Error("Cannot find module '"+h+"'");throw b.code="MODULE_NOT_FOUND",b}var S=i[h]={exports:{}};o[h][0].call(S.exports,function(w){var x=o[h][1][w];return c(x||w)},S,S.exports,n,o,i,s)}return i[h].exports}d(c,"s");for(var f=typeof Nc=="function"&&Nc,p=0;p<s.length;p++)c(s[p]);return c},"e")({1:[function(n,o,i){o.exports=function(s){if(typeof Map!="function"||s){var c=n("./similar");return new c}else return new Map}},{"./similar":2}],2:[function(n,o,i){function s(){return this.list=[],this.lastItem=void 0,this.size=0,this}d(s,"Similar"),s.prototype.get=function(c){var f;if(this.lastItem&&this.isEqual(this.lastItem.key,c))return this.lastItem.val;if(f=this.indexOf(c),f>=0)return this.lastItem=this.list[f],this.list[f].val},s.prototype.set=function(c,f){var p;return this.lastItem&&this.isEqual(this.lastItem.key,c)?(this.lastItem.val=f,this):(p=this.indexOf(c),p>=0?(this.lastItem=this.list[p],this.list[p].val=f,this):(this.lastItem={key:c,val:f},this.list.push(this.lastItem),this.size++,this))},s.prototype.delete=function(c){var f;if(this.lastItem&&this.isEqual(this.lastItem.key,c)&&(this.lastItem=void 0),f=this.indexOf(c),f>=0)return this.size--,this.list.splice(f,1)[0]},s.prototype.has=function(c){var f;return this.lastItem&&this.isEqual(this.lastItem.key,c)?!0:(f=this.indexOf(c),f>=0?(this.lastItem=this.list[f],!0):!1)},s.prototype.forEach=function(c,f){var p;for(p=0;p<this.size;p++)c.call(f||this,this.list[p].val,this.list[p].key,this)},s.prototype.indexOf=function(c){var f;for(f=0;f<this.size;f++)if(this.isEqual(this.list[f].key,c))return f;return-1},s.prototype.isEqual=function(c,f){return c===f||c!==c&&f!==f},o.exports=s},{}],3:[function(n,o,i){var s=n("map-or-similar");o.exports=function(h){var y=new s(!1),v=[];return function(b){var S=d(function(){var w=y,x,O,A=arguments.length-1,R=Array(A+1),T=!0,F;if((S.numArgs||S.numArgs===0)&&S.numArgs!==A+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(F=0;F<A;F++){if(R[F]={cacheItem:w,arg:arguments[F]},w.has(arguments[F])){w=w.get(arguments[F]);continue}T=!1,x=new s(!1),w.set(arguments[F],x),w=x}return T&&(w.has(arguments[A])?O=w.get(arguments[A]):T=!1),T||(O=b.apply(null,arguments),w.set(arguments[A],O)),h>0&&(R[A]={cacheItem:w,arg:arguments[A]},T?c(v,R):v.push(R),v.length>h&&f(v.shift())),S.wasMemoized=T,S.numArgs=A+1,O},"memoizerific");return S.limit=h,S.wasMemoized=!1,S.cache=y,S.lru=v,S}};function c(h,y){var v=h.length,b=y.length,S,w,x;for(w=0;w<v;w++){for(S=!0,x=0;x<b;x++)if(!p(h[w][x].arg,y[x].arg)){S=!1;break}if(S)break}h.push(h.splice(w,1)[0])}d(c,"moveToMostRecentLru");function f(h){var y=h.length,v=h[y-1],b,S;for(v.cacheItem.delete(v.arg),S=y-2;S>=0&&(v=h[S],b=v.cacheItem.get(v.arg),!b||!b.size);S--)v.cacheItem.delete(v.arg)}d(f,"removeCachedResult");function p(h,y){return h===y||h!==h&&y!==y}d(p,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}});function Jr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=Array.from(typeof e=="string"?[e]:e);o[o.length-1]=o[o.length-1].replace(/\r?\n([\t ]*)$/,"");var i=o.reduce(function(f,p){var h=p.match(/\n([\t ]+|(?!\s).)/g);return h?f.concat(h.map(function(y){var v,b;return(b=(v=y.match(/[\t ]/g))===null||v===void 0?void 0:v.length)!==null&&b!==void 0?b:0})):f},[]);if(i.length){var s=new RegExp(`
|
|
12
|
-
[ ]{`+Math.min.apply(Math,i)+"}","g");o=o.map(function(f){return f.replace(s,`
|
|
13
|
-
`)})}o[0]=o[0].replace(/^\r?\n/,"");var c=o[0];return t.forEach(function(f,p){var h=c.match(/(?:^|\n)( *)$/),y=h?h[1]:"",v=f;typeof f=="string"&&f.includes(`
|
|
14
|
-
`)&&(v=String(f).split(`
|
|
15
|
-
`).map(function(b,S){return S===0?b:""+y+b}).join(`
|
|
16
|
-
`)),c+=v+o[p+1]}),c}d(Jr,"dedent");const{global:ug}=__STORYBOOK_MODULE_GLOBAL__,{Channel:g8}=__STORYBOOK_MODULE_CHANNELS__;function Ow(){const e={setHandler:d(()=>{},"setHandler"),send:d(()=>{},"send")};return new g8({transport:e})}d(Ow,"mockChannel");var Tw=class{constructor(){this.getChannel=d(()=>{if(!this.channel){const t=Ow();return this.setChannel(t),t}return this.channel},"getChannel"),this.ready=d(()=>this.promise,"ready"),this.hasChannel=d(()=>!!this.channel,"hasChannel"),this.setChannel=d(t=>{this.channel=t,this.resolve()},"setChannel"),this.promise=new Promise(t=>{this.resolve=()=>t(this.getChannel())})}};d(Tw,"AddonStore");var m8=Tw,cg="__STORYBOOK_ADDONS_PREVIEW";function Rw(){return ug[cg]||(ug[cg]=new m8),ug[cg]}d(Rw,"getAddonsStore");var qa=Rw();const{logger:Ds}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_RE_RENDER:y8,RESET_STORY_ARGS:v8,STORY_RENDERED:eS,UPDATE_GLOBALS:b8,UPDATE_STORY_ARGS:E8}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Qc}=__STORYBOOK_MODULE_GLOBAL__;var Fw=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=d(t=>{t===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},"renderListener"),this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(t=>{t.destroy&&t.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){const t=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,t}triggerEffects(){this.prevEffects.forEach(t=>{!this.currentEffects.includes(t)&&t.destroy&&t.destroy()}),this.currentEffects.forEach(t=>{this.prevEffects.includes(t)||(t.destroy=t.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),qa.getChannel().on(eS,this.renderListener)}removeRenderListeners(){qa.getChannel().removeListener(eS,this.renderListener)}};d(Fw,"HooksContext");var Bw=Fw;function rm(e){const t=d((...n)=>{const{hooks:o}=typeof n[0]=="function"?n[1]:n[0],i=o.currentPhase,s=o.currentHooks,c=o.nextHookIndex,f=o.currentDecoratorName;o.currentDecoratorName=e.name,o.prevMountedDecorators.has(e)?(o.currentPhase="UPDATE",o.currentHooks=o.hookListsMap.get(e)||[]):(o.currentPhase="MOUNT",o.currentHooks=[],o.hookListsMap.set(e,o.currentHooks),o.prevMountedDecorators.add(e)),o.nextHookIndex=0;const p=Qc.STORYBOOK_HOOKS_CONTEXT;Qc.STORYBOOK_HOOKS_CONTEXT=o;const h=e(...n);if(Qc.STORYBOOK_HOOKS_CONTEXT=p,o.currentPhase==="UPDATE"&&o.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return o.currentPhase=i,o.currentHooks=s,o.nextHookIndex=c,o.currentDecoratorName=f,h},"hookified");return t.originalFn=e,t}d(rm,"hookify");var fg=0,S8=25,A8=d(e=>(t,n)=>{const o=e(rm(t),n.map(i=>rm(i)));return i=>{const{hooks:s}=i;s.prevMountedDecorators??=new Set,s.mountedDecorators=new Set([t,...n]),s.currentContext=i,s.hasUpdates=!1;let c=o(i);for(fg=1;s.hasUpdates;)if(s.hasUpdates=!1,s.currentEffects=[],c=o(i),fg+=1,fg>S8)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return s.addRenderListeners(),c}},"applyHooks"),C8=d((e,t)=>e.length===t.length&&e.every((n,o)=>n===t[o]),"areDepsEqual"),P0=d(()=>new Error("Storybook preview hooks can only be called inside decorators and story functions."),"invalidHooksError");function I0(){return Qc.STORYBOOK_HOOKS_CONTEXT||null}d(I0,"getHooksContextOrNull");function Xf(){const e=I0();if(e==null)throw P0();return e}d(Xf,"getHooksContextOrThrow");function Mw(e,t,n){const o=Xf();if(o.currentPhase==="MOUNT"){n!=null&&!Array.isArray(n)&&Ds.warn(`${e} received a final argument that is not an array (instead, received ${n}). When specified, the final argument must be an array.`);const i={name:e,deps:n};return o.currentHooks.push(i),t(i),i}if(o.currentPhase==="UPDATE"){const i=o.getNextHook();if(i==null)throw new Error("Rendered more hooks than during the previous render.");return i.name!==e&&Ds.warn(`Storybook has detected a change in the order of Hooks${o.currentDecoratorName?` called by ${o.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),n!=null&&i.deps==null&&Ds.warn(`${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),n!=null&&i.deps!=null&&n.length!==i.deps.length&&Ds.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant.
|
|
17
|
-
Previous: ${i.deps}
|
|
18
|
-
Incoming: ${n}`),(n==null||i.deps==null||!C8(n,i.deps))&&(t(i),i.deps=n),i}throw P0()}d(Mw,"useHook");function iu(e,t,n){const{memoizedState:o}=Mw(e,i=>{i.memoizedState=t()},n);return o}d(iu,"useMemoLike");function w8(e,t){return iu("useMemo",e,t)}d(w8,"useMemo");function Ws(e,t){return iu("useCallback",()=>e,t)}d(Ws,"useCallback");function H0(e,t){return iu(e,()=>({current:t}),[])}d(H0,"useRefLike");function x8(e){return H0("useRef",e)}d(x8,"useRef");function Lw(){const e=I0();if(e!=null&&e.currentPhase!=="NONE")e.hasUpdates=!0;else try{qa.getChannel().emit(y8)}catch{Ds.warn("State updates of Storybook preview hooks work only in browser")}}d(Lw,"triggerUpdate");function U0(e,t){const n=H0(e,typeof t=="function"?t():t),o=d(i=>{n.current=typeof i=="function"?i(n.current):i,Lw()},"setState");return[n.current,o]}d(U0,"useStateLike");function D8(e){return U0("useState",e)}d(D8,"useState");function _8(e,t,n){const o=n!=null?()=>n(t):t,[i,s]=U0("useReducer",o);return[i,d(f=>s(p=>e(p,f)),"dispatch")]}d(_8,"useReducer");function Nw(e,t){const n=Xf(),o=iu("useEffect",()=>({create:e}),t);n.currentEffects.includes(o)||n.currentEffects.push(o)}d(Nw,"useEffect");function O8(e,t=[]){const n=qa.getChannel();return Nw(()=>(Object.entries(e).forEach(([o,i])=>n.on(o,i)),()=>{Object.entries(e).forEach(([o,i])=>n.removeListener(o,i))}),[...Object.keys(e),...t]),Ws(n.emit.bind(n),[n])}d(O8,"useChannel");function Zf(){const{currentContext:e}=Xf();if(e==null)throw P0();return e}d(Zf,"useStoryContext");function T8(e,t){const{parameters:n}=Zf();if(e)return n[e]??t}d(T8,"useParameter");function R8(){const e=qa.getChannel(),{id:t,args:n}=Zf(),o=Ws(s=>e.emit(E8,{storyId:t,updatedArgs:s}),[e,t]),i=Ws(s=>e.emit(v8,{storyId:t,argNames:s}),[e,t]);return[n,o,i]}d(R8,"useArgs");function F8(){const e=qa.getChannel(),{globals:t}=Zf(),n=Ws(o=>e.emit(b8,{globals:o}),[e]);return[t,n]}d(F8,"useGlobals");const{CalledExtractOnStoreError:B8,MissingStoryFromCsfFileError:M8}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var dg=or(ou(),1);const{once:pg}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var bo=Symbol("incompatible"),nm=d((e,t)=>{const n=t.type;if(e==null||!n||t.mapping)return e;switch(n.name){case"string":return String(e);case"enum":return e;case"number":return Number(e);case"boolean":return String(e)==="true";case"array":return!n.value||!Array.isArray(e)?bo:e.reduce((o,i,s)=>{const c=nm(i,{type:n.value});return c!==bo&&(o[s]=c),o},new Array(e.length));case"object":return typeof e=="string"||typeof e=="number"?e:!n.value||typeof e!="object"?bo:Object.entries(e).reduce((o,[i,s])=>{const c=nm(s,{type:n.value[i]});return c===bo?o:Object.assign(o,{[i]:c})},{});case"other":{const o=typeof e=="string"||typeof e=="number"||typeof e=="boolean";return n.value==="ReactNode"&&o?e:bo}default:return bo}},"map"),L8=d((e,t)=>Object.entries(e).reduce((n,[o,i])=>{if(!t[o])return n;const s=nm(i,t[o]);return s===bo?n:Object.assign(n,{[o]:s})},{}),"mapArgsToTypes"),am=d((e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((n,o,i)=>(n[i]=am(e[i],t[i]),n),[...e]).filter(n=>n!==void 0):!Xn(e)||!Xn(t)?t:Object.keys({...e,...t}).reduce((n,o)=>{if(o in t){const i=am(e[o],t[o]);i!==void 0&&(n[o]=i)}else n[o]=e[o];return n},{}),"combineArgs"),N8=d((e,t)=>Object.entries(t).reduce((n,[o,{options:i}])=>{function s(){return o in e&&(n[o]=e[o]),n}if(d(s,"allowArg"),!i)return s();if(!Array.isArray(i))return pg.error(Jr`
|
|
19
|
-
Invalid argType: '${o}.options' should be an array.
|
|
20
|
-
|
|
21
|
-
More info: https://storybook.js.org/docs/api/arg-types?ref=error
|
|
22
|
-
`),s();if(i.some(v=>v&&["object","function"].includes(typeof v)))return pg.error(Jr`
|
|
23
|
-
Invalid argType: '${o}.options' should only contain primitives. Use a 'mapping' for complex values.
|
|
24
|
-
|
|
25
|
-
More info: https://storybook.js.org/docs/writing-stories/args?ref=error#mapping-to-complex-arg-values
|
|
26
|
-
`),s();const c=Array.isArray(e[o]),f=c&&e[o].findIndex(v=>!i.includes(v)),p=c&&f===-1;if(e[o]===void 0||i.includes(e[o])||p)return s();const h=c?`${o}[${f}]`:o,y=i.map(v=>typeof v=="string"?`'${v}'`:String(v)).join(", ");return pg.warn(`Received illegal value for '${h}'. Supported options: ${y}`),n},{}),"validateOptions"),Ls=Symbol("Deeply equal"),bf=d((e,t)=>{if(typeof e!=typeof t)return t;if(xw(e,t))return Ls;if(Array.isArray(e)&&Array.isArray(t)){const n=t.reduce((o,i,s)=>{const c=bf(e[s],i);return c!==Ls&&(o[s]=c),o},new Array(t.length));return t.length>=e.length?n:n.concat(new Array(e.length-t.length).fill(void 0))}return Xn(e)&&Xn(t)?Object.keys({...e,...t}).reduce((n,o)=>{const i=bf(e?.[o],t?.[o]);return i===Ls?n:Object.assign(n,{[o]:i})},{}):t},"deepDiff"),kw="UNTARGETED";function zw({args:e,argTypes:t}){const n={};return Object.entries(e).forEach(([o,i])=>{const{target:s=kw}=t[o]||{};n[s]=n[s]||{},n[s][o]=i}),n}d(zw,"groupArgsByTarget");function jw(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}d(jw,"deleteUndefined");var $w=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(t){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);return this.argsByStoryId[t]}setInitial(t){if(!this.initialArgsByStoryId[t.id])this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs;else if(this.initialArgsByStoryId[t.id]!==t.initialArgs){const n=bf(this.initialArgsByStoryId[t.id],this.argsByStoryId[t.id]);this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs,n!==Ls&&this.updateFromDelta(t,n)}}updateFromDelta(t,n){const o=N8(n,t.argTypes);this.argsByStoryId[t.id]=am(this.argsByStoryId[t.id],o)}updateFromPersisted(t,n){const o=L8(n,t.argTypes);return this.updateFromDelta(t,o)}update(t,n){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);this.argsByStoryId[t]=jw({...this.argsByStoryId[t],...n})}};d($w,"ArgsStore");var k8=$w;const{logger:z8}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Pw=d((e={})=>Object.entries(e).reduce((t,[n,{defaultValue:o}])=>(typeof o<"u"&&(t[n]=o),t),{}),"getValuesFromArgTypes"),Iw=class{constructor({globals:t={},globalTypes:n={}}){this.set({globals:t,globalTypes:n})}set({globals:t={},globalTypes:n={}}){const o=this.initialGlobals&&bf(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(t),...Object.keys(n)]);const i=Pw(n);this.initialGlobals={...i,...t},this.globals=this.initialGlobals,o&&o!==Ls&&this.updateFromPersisted(o)}filterAllowedGlobals(t){return Object.entries(t).reduce((n,[o,i])=>(this.allowedGlobalNames.has(o)?n[o]=i:z8.warn(`Attempted to set a global (${o}) that is not defined in initial globals or globalTypes`),n),{})}updateFromPersisted(t){const n=this.filterAllowedGlobals(t);this.globals={...this.globals,...n}}get(){return this.globals}update(t){this.globals={...this.globals,...this.filterAllowedGlobals(t)};for(const n in t)t[n]===void 0&&(this.globals[n]=this.initialGlobals[n])}};d(Iw,"GlobalsStore");var j8=Iw,$8=or(ou(),1);const{MissingStoryAfterHmrError:P8}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var I8=(0,$8.default)(1)(e=>Object.values(e).reduce((t,n)=>(t[n.importPath]=t[n.importPath]||n,t),{})),Hw=class{constructor({entries:t}={v:5,entries:{}}){this.entries=t}entryFromSpecifier(t){const n=Object.values(this.entries);if(t==="*")return n[0];if(typeof t=="string")return this.entries[t]?this.entries[t]:n.find(s=>s.id.startsWith(t));const{name:o,title:i}=t;return n.find(s=>s.name===o&&s.title===i)}storyIdToEntry(t){const n=this.entries[t];if(!n)throw new P8({storyId:t});return n}importPathToEntry(t){return I8(this.entries)[t]}};d(Hw,"StoryIndexStore");var H8=Hw,U8=d(e=>typeof e=="string"?{name:e}:e,"normalizeType"),q8=d(e=>typeof e=="string"?{type:e}:e,"normalizeControl"),G8=d((e,t)=>{const{type:n,control:o,...i}=e,s={name:t,...i};return n&&(s.type=U8(n)),o?s.control=q8(o):o===!1&&(s.control={disable:!0}),s},"normalizeInputType"),Ef=d(e=>Qi(e,G8),"normalizeInputTypes");const{deprecate:V8,logger:Y8}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Me=d(e=>Array.isArray(e)?e:e?[e]:[],"normalizeArrays"),W8=Jr`
|
|
27
|
-
CSF .story annotations deprecated; annotate story functions directly:
|
|
28
|
-
- StoryFn.story.name => StoryFn.storyName
|
|
29
|
-
- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
|
|
30
|
-
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
|
|
31
|
-
`;function Ns(e,t,n){const o=t,i=typeof t=="function"?t:null,{story:s}=o;s&&(Y8.debug("deprecated story",s),V8(W8));const c=Dk(e),f=typeof o!="function"&&o.name||o.storyName||s?.name||c,p=[...Me(o.decorators),...Me(s?.decorators)],h={...s?.parameters,...o.parameters},y={...s?.args,...o.args},v={...s?.argTypes,...o.argTypes},b=[...Me(o.loaders),...Me(s?.loaders)],S=[...Me(o.beforeEach),...Me(s?.beforeEach)],w=[...Me(o.afterEach),...Me(s?.afterEach)],{render:x,play:O,tags:A=[],globals:R={}}=o,T=h.__id||wk(n.id,c);return{moduleExport:t,id:T,name:f,tags:A,decorators:p,parameters:h,args:y,argTypes:Ef(v),loaders:b,beforeEach:S,afterEach:w,globals:R,...x&&{render:x},...i&&{userStoryFn:i},...O&&{play:O}}}d(Ns,"normalizeStory");const{logger:Uw}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function Sf(e,t=e.title,n){const{id:o,argTypes:i}=e;return{id:hd(o||t),...e,title:t,...i&&{argTypes:Ef(i)},parameters:{fileName:n,...e.parameters}}}d(Sf,"normalizeComponentAnnotations");var K8=d(e=>{const{globals:t,globalTypes:n}=e;(t||n)&&Uw.error("Global args/argTypes can only be set globally",JSON.stringify({globals:t,globalTypes:n}))},"checkGlobals"),X8=d(e=>{const{options:t}=e;t?.storySort&&Uw.error("The storySort option parameter can only be set globally")},"checkStorySort"),zc=d(e=>{e&&(K8(e),X8(e))},"checkDisallowedParameters");function qw(e,t,n){const{default:o,__namedExportsOrder:i,...s}=e,c=Object.values(s)[0];if(pd(c)){const h=Sf(c.meta.input,n,t);zc(h.parameters);const y={meta:h,stories:{},moduleExports:e};return Object.keys(s).forEach(v=>{if(Rf(v,h)){const b=s[v],S=Ns(v,b.input,h);zc(S.parameters),y.stories[S.id]=S,K_(b).forEach(w=>{const x=w.input.name,O=xk(S.id,x);w.input.parameters??={},w.input.parameters.__id=O,y.stories[O]=Ns(x,w.input,h)})}}),y.projectAnnotations=c.meta.preview.composed,y}const f=Sf(o,n,t);zc(f.parameters);const p={meta:f,stories:{},moduleExports:e};return Object.keys(s).forEach(h=>{if(Rf(h,f)){const y=Ns(h,s[h],f);zc(y.parameters),p.stories[y.id]=y}}),p}d(qw,"processCSFFile");const{NoRenderFunctionError:Z8}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:J8}=__STORYBOOK_MODULE_GLOBAL__,{global:Q8}=__STORYBOOK_MODULE_GLOBAL__;function Af(e){return e!=null&&Gw(e).includes("mount")}d(Af,"mountDestructured");function Gw(e){const t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];const n=om(t[1]);if(!n.length)return[];const o=n[0];return o.startsWith("{")&&o.endsWith("}")?om(o.slice(1,-1).replace(/\s/g,"")).map(s=>s.replace(/:.*|=.*/g,"")):[]}d(Gw,"getUsedProps");function om(e){const t=[],n=[];let o=0;for(let s=0;s<e.length;s++)if(e[s]==="{"||e[s]==="[")n.push(e[s]==="{"?"}":"]");else if(e[s]===n[n.length-1])n.pop();else if(!n.length&&e[s]===","){const c=e.substring(o,s).trim();c&&t.push(c),o=s+1}const i=e.substring(o).trim();return i&&t.push(i),t}d(om,"splitByComma");function Vw(e,t,n){const o=n(e);return i=>t(o,i)}d(Vw,"decorateStory");function Yw({componentId:e,title:t,kind:n,id:o,name:i,story:s,parameters:c,initialArgs:f,argTypes:p,...h}={}){return h}d(Yw,"sanitizeStoryContextUpdate");function Ww(e,t){const n={},o=d(s=>c=>{if(!n.value)throw new Error("Decorated function called without init");return n.value={...n.value,...Yw(c)},s(n.value)},"bindWithContext"),i=t.reduce((s,c)=>Vw(s,c,o),e);return s=>(n.value=s,i(s))}d(Ww,"defaultDecorateStory");function q0(e,t,n){const{moduleExport:o,id:i,name:s}=e||{},c=G0(e,t,n),f=d(async L=>{const B={};for(const $ of[Me(n.loaders),Me(t.loaders),Me(e.loaders)]){if(L.abortSignal.aborted)return B;const P=await Promise.all($.map(I=>I(L)));Object.assign(B,...P)}return B},"applyLoaders"),p=d(async L=>{const B=new Array;for(const $ of[...Me(n.beforeEach),...Me(t.beforeEach),...Me(e.beforeEach)]){if(L.abortSignal.aborted)return B;const P=await $(L);P&&B.push(P)}return B},"applyBeforeEach"),h=d(async L=>{const B=[...Me(n.afterEach),...Me(t.afterEach),...Me(e.afterEach)].reverse();for(const $ of B){if(L.abortSignal.aborted)return;await $(L)}},"applyAfterEach"),y=d(L=>L.originalStoryFn(L.args,L),"undecoratedStoryFn"),{applyDecorators:v=Ww,runStep:b}=n,S=[...Me(e?.decorators),...Me(t?.decorators),...Me(n?.decorators)],w=e?.userStoryFn||e?.render||t.render||n.render,x=A8(v)(y,S),O=d(L=>x(L),"unboundStoryFn"),A=e?.play??t?.play,R=Af(A);if(!w&&!R)throw new Z8({id:i});const T=d(L=>async()=>(await L.renderToCanvas(),L.canvas),"defaultMount"),F=e.mount??t.mount??n.mount??T,N=n.testingLibraryRender;return{storyGlobals:{},...c,moduleExport:o,id:i,name:s,story:s,originalStoryFn:w,undecoratedStoryFn:y,unboundStoryFn:O,applyLoaders:f,applyBeforeEach:p,applyAfterEach:h,playFunction:A,runStep:b,mount:F,testingLibraryRender:N,renderToCanvas:n.renderToCanvas,usesMount:R}}d(q0,"prepareStory");function Kw(e,t,n){return{...G0(void 0,e,t),moduleExport:n}}d(Kw,"prepareMeta");function G0(e,t,n){const o=["dev","test"],i=Q8.DOCS_OPTIONS?.autodocs===!0?["autodocs"]:[],s=e?.tags?.includes("test-fn")?["!autodocs"]:[],c=X_(...o,...i,...n.tags??[],...t.tags??[],...s,...e?.tags??[]),f=Bo(n.parameters,t.parameters,e?.parameters),{argTypesEnhancers:p=[],argsEnhancers:h=[]}=n,y=Bo(n.argTypes,t.argTypes,e?.argTypes);if(e){const R=e?.userStoryFn||e?.render||t.render||n.render;f.__isArgsStory=R&&R.length>0}const v={...n.args,...t.args,...e?.args},b={...t.globals,...e?.globals},S={componentId:t.id,title:t.title,kind:t.title,id:e?.id||t.id,name:e?.name||"__meta",story:e?.name||"__meta",component:t.component,subcomponents:t.subcomponents,tags:c,parameters:f,initialArgs:v,argTypes:y,storyGlobals:b};S.argTypes=p.reduce((R,T)=>T({...S,argTypes:R}),S.argTypes);const w={...v};S.initialArgs=[...h].reduce((R,T)=>({...R,...T({...S,initialArgs:R})}),w);const{name:x,story:O,...A}=S;return A}d(G0,"preparePartialAnnotations");function V0(e){const{args:t}=e;let n={...e,allArgs:void 0,argsByTarget:void 0};if(J8.FEATURES?.argTypeTargetsV7){const s=zw(e);n={...e,allArgs:e.args,argsByTarget:s,args:s[kw]||{}}}const o=Object.entries(n.args).reduce((s,[c,f])=>{if(!n.argTypes[c]?.mapping)return s[c]=f,s;const p=d(h=>{const y=n.argTypes[c].mapping;return y&&h in y?y[h]:h},"mappingFn");return s[c]=Array.isArray(f)?f.map(p):p(f),s},{}),i=Object.entries(o).reduce((s,[c,f])=>{const p=n.argTypes[c]||{};return S_(p,o,n.globals)&&(s[c]=f),s},{});return{...n,unmappedArgs:t,args:i}}d(V0,"prepareContext");const{logger:e9}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var im=d((e,t,n)=>{const o=typeof e;switch(o){case"boolean":case"string":case"number":case"function":case"symbol":return{name:o}}return e?n.has(e)?(e9.warn(Jr`
|
|
32
|
-
We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
|
|
33
|
-
|
|
34
|
-
Consider using the mapping feature or fully custom args:
|
|
35
|
-
- Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
|
|
36
|
-
- Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
|
|
37
|
-
`),{name:"other",value:"cyclic object"}):(n.add(e),Array.isArray(e)?{name:"array",value:e.length>0?im(e[0],t,new Set(n)):{name:"other",value:"unknown"}}:{name:"object",value:Qi(e,s=>im(s,t,new Set(n)))}):{name:"object",value:{}}},"inferType"),Xw=d(e=>{const{id:t,argTypes:n={},initialArgs:o={}}=e,i=Qi(o,(c,f)=>({name:f,type:im(c,`${t}.${f}`,new Set)})),s=Qi(n,(c,f)=>({name:f}));return Bo(i,s,n)},"inferArgTypes");Xw.secondPass=!0;const{logger:t9}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var tS=d((e,t)=>Array.isArray(t)?t.includes(e):e.match(t),"matches"),r9=d((e,t,n)=>!t&&!n?e:e&&bw(e,(o,i)=>{const s=o.name||i.toString();return!!(!t||tS(s,t))&&(!n||!tS(s,n))}),"filterArgTypes"),n9=d((e,t,n)=>{const{type:o,options:i}=e;if(o){if(n.color&&n.color.test(t)){const s=o.name;if(s==="string")return{control:{type:"color"}};s!=="enum"&&t9.warn(`Addon controls: Control of type color only supports string, received "${s}" instead`)}if(n.date&&n.date.test(t))return{control:{type:"date"}};switch(o.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{const{value:s}=o;return{control:{type:s?.length<=5?"radio":"select"},options:s}}case"function":case"symbol":return null;default:return{control:{type:i?"select":"object"}}}}},"inferControl"),Zw=d(e=>{const{argTypes:t,parameters:{__isArgsStory:n,controls:{include:o=null,exclude:i=null,matchers:s={}}={}}}=e;if(!n)return t;const c=r9(t,o,i),f=Qi(c,(p,h)=>p?.type&&n9(p,h.toString(),s));return Bo(f,c)},"inferControls");Zw.secondPass=!0;function Ks({argTypes:e,globalTypes:t,argTypesEnhancers:n,decorators:o,loaders:i,beforeEach:s,afterEach:c,initialGlobals:f,...p}){return{...e&&{argTypes:Ef(e)},...t&&{globalTypes:Ef(t)},decorators:Me(o),loaders:Me(i),beforeEach:Me(s),afterEach:Me(c),argTypesEnhancers:[...n||[],Xw,Zw],initialGlobals:f,...p}}d(Ks,"normalizeProjectAnnotations");const{global:a9}=__STORYBOOK_MODULE_GLOBAL__;var o9=d(e=>async()=>{const t=[];for(const n of e){const o=await n();o&&t.unshift(o)}return async()=>{for(const n of t)await n()}},"composeBeforeAllHooks");function Jw(e){return async(t,n,o)=>{await e.reduceRight((s,c)=>async()=>c(t,s,o),async()=>n(o))()}}d(Jw,"composeStepRunners");function el(e,t){return e.map(n=>n.default?.[t]??n[t]).filter(Boolean)}d(el,"getField");function In(e,t,n={}){return el(e,t).reduce((o,i)=>{const s=Me(i);return n.reverseFileOrder?[...s,...o]:[...o,...s]},[])}d(In,"getArrayField");function _s(e,t){return Object.assign({},...el(e,t))}d(_s,"getObjectField");function ji(e,t){return el(e,t).pop()}d(ji,"getSingletonField");function Mo(e){const t=In(e,"argTypesEnhancers"),n=el(e,"runStep"),o=In(e,"beforeAll");return{parameters:Bo(...el(e,"parameters")),decorators:In(e,"decorators",{reverseFileOrder:!(a9.FEATURES?.legacyDecoratorFileOrder??!1)}),args:_s(e,"args"),argsEnhancers:In(e,"argsEnhancers"),argTypes:_s(e,"argTypes"),argTypesEnhancers:[...t.filter(i=>!i.secondPass),...t.filter(i=>i.secondPass)],initialGlobals:_s(e,"initialGlobals"),globalTypes:_s(e,"globalTypes"),loaders:In(e,"loaders"),beforeAll:o9(o),beforeEach:In(e,"beforeEach"),afterEach:In(e,"afterEach"),render:ji(e,"render"),renderToCanvas:ji(e,"renderToCanvas"),applyDecorators:ji(e,"applyDecorators"),runStep:Jw(n),tags:In(e,"tags"),mount:ji(e,"mount"),testingLibraryRender:ji(e,"testingLibraryRender")}}d(Mo,"composeConfigs");const{MountMustBeDestructuredError:i9}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var Qw=class{constructor(){this.reports=[]}async addReport(t){this.reports.push(t)}};d(Qw,"ReporterAPI");var ex=Qw;function tx(e,t,n){return pd(e)?{story:e.input,meta:e.meta.input,preview:e.meta.preview.composed}:{story:e,meta:Y_(t)?t.input:t,preview:n}}d(tx,"getCsfFactoryAnnotations");function l9(e){globalThis.defaultProjectAnnotations=e}d(l9,"setDefaultProjectAnnotations");var s9="ComposedStory",u9="Unnamed Story";function rx(e){return e?Mo([e]):{}}d(rx,"extractAnnotation");function c9(e){const t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=Mo([...dd(),globalThis.defaultProjectAnnotations??{},Mo(t.map(rx))]),globalThis.globalProjectAnnotations??{}}d(c9,"setProjectAnnotations");var $a=[];function Y0(e,t,n,o,i){if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??s9;const s=Sf(t),c=i||e.storyName||e.story?.name||e.name||u9,f=Ns(c,e,s),p=Ks(Mo([o??globalThis.globalProjectAnnotations??{},n??{}])),h=q0(f,s,p),v={...Pw(p.globalTypes),...p.initialGlobals,...h.storyGlobals},b=new ex,S=d(()=>{const T=V0({hooks:new Bw,globals:v,args:{...h.initialArgs},viewMode:"story",reporting:b,loaded:{},abortSignal:new AbortController().signal,step:d((F,N)=>h.runStep(F,N,T),"step"),canvasElement:null,canvas:{},userEvent:{},globalTypes:p.globalTypes,...h,context:null,mount:null});return T.parameters.__isPortableStory=!0,T.context=T,h.renderToCanvas&&(T.renderToCanvas=async()=>{const F=await h.renderToCanvas?.({componentId:h.componentId,title:h.title,id:h.id,name:h.name,tags:h.tags,showMain:d(()=>{},"showMain"),showError:d(N=>{throw new Error(`${N.title}
|
|
38
|
-
${N.description}`)},"showError"),showException:d(N=>{throw N},"showException"),forceRemount:!0,storyContext:T,storyFn:d(()=>h.unboundStoryFn(T),"storyFn"),unboundStoryFn:h.unboundStoryFn},T.canvasElement);F&&$a.push(F)}),T.mount=h.mount(T),T},"initializeContext");let w;const x=d(async T=>{const F=S();return F.canvasElement??=globalThis?.document?.body,w&&(F.loaded=w.loaded),Object.assign(F,T),h.playFunction(F)},"play"),O=d(T=>{const F=S();return Object.assign(F,T),nx(h,F)},"run"),A=h.playFunction?x:void 0;return Object.assign(d(function(F){const N=S();return w&&(N.loaded=w.loaded),N.args={...N.initialArgs,...F},h.unboundStoryFn(N)},"storyFn"),{id:h.id,storyName:c,load:d(async()=>{for(const F of[...$a].reverse())await F();$a.length=0;const T=S();T.loaded=await h.applyLoaders(T),$a.push(...(await h.applyBeforeEach(T)).filter(Boolean)),w=T},"load"),globals:v,args:h.initialArgs,parameters:h.parameters,argTypes:h.argTypes,play:A,run:O,reporting:b,tags:h.tags})}d(Y0,"composeStory");var f9=d((e,t,n,o)=>Y0(e,t,n,{},o),"defaultComposeStory");function d9(e,t,n=f9){const{default:o,__esModule:i,__namedExportsOrder:s,...c}=e;let f=o;return Object.entries(c).reduce((h,[y,v])=>{const{story:b,meta:S}=tx(v);return!f&&S&&(f=S),Rf(y,f)?Object.assign(h,{[y]:n(b,f,t,y)}):h},{})}d(d9,"composeStories");function p9(e){return e.extend({mount:d(async({mount:t,page:n},o)=>{await o(async(i,...s)=>{if(!("__pw_type"in i)||"__pw_type"in i&&i.__pw_type!=="jsx")throw new Error(Jr`
|
|
39
|
-
Portable stories in Playwright CT only work when referencing JSX elements.
|
|
40
|
-
Please use JSX format for your components such as:
|
|
41
|
-
|
|
42
|
-
instead of:
|
|
43
|
-
await mount(MyComponent, { props: { foo: 'bar' } })
|
|
44
|
-
|
|
45
|
-
do:
|
|
46
|
-
await mount(<MyComponent foo="bar"/>)
|
|
47
|
-
|
|
48
|
-
More info: https://storybook.js.org/docs/api/portable-stories/portable-stories-playwright?ref=error
|
|
49
|
-
`);const{props:c,...f}=i;await n.evaluate(async h=>{const y=await globalThis.__pwUnwrapObject?.(h);return("__pw_type"in y?y.type:y)?.load?.()},f);const p=await t(i,...s);return await n.evaluate(async h=>{const y=await globalThis.__pwUnwrapObject?.(h),v="__pw_type"in y?y.type:y,b=document.querySelector("#root");return v?.play?.({canvasElement:b})},f),p})},"mount")})}d(p9,"createPlaywrightTest");async function nx(e,t){for(const s of[...$a].reverse())await s();if($a.length=0,!t.canvasElement){const s=document.createElement("div");globalThis?.document?.body?.appendChild(s),t.canvasElement=s,$a.push(()=>{globalThis?.document?.body?.contains(s)&&globalThis?.document?.body?.removeChild(s)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;$a.push(...(await e.applyBeforeEach(t)).filter(Boolean));const n=e.playFunction,o=e.usesMount;if(o||await t.mount(),t.abortSignal.aborted)return;n&&(o||(t.mount=async()=>{throw new i9({playFunction:n.toString()})}),await n(t));let i;Kf()?i=L0():await N0(t.abortSignal),await e.applyAfterEach(t),await i?.()}d(nx,"runStory");var rS=1e3,h9=1e4,ax=class{constructor(t,n,o){this.importFn=n,this.storyIndex=new H8(t),this.projectAnnotations=Ks(Mo([...dd(),o]));const{initialGlobals:i,globalTypes:s}=this.projectAnnotations;this.args=new k8,this.userGlobals=new j8({globals:i,globalTypes:s}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,dg.default)(rS)(qw),this.prepareMetaWithCache=(0,dg.default)(rS)(Kw),this.prepareStoryWithCache=(0,dg.default)(h9)(q0)}setProjectAnnotations(t){this.projectAnnotations=Ks(t);const{initialGlobals:n,globalTypes:o}=t;this.userGlobals.set({globals:n,globalTypes:o})}async onStoriesChanged({importFn:t,storyIndex:n}){t&&(this.importFn=t),n&&(this.storyIndex.entries=n.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(t){return this.storyIndex.storyIdToEntry(t)}async loadCSFFileByStoryId(t){const{importPath:n,title:o}=this.storyIndex.storyIdToEntry(t),i=await this.importFn(n);return this.processCSFFileWithCache(i,n,o)}async loadAllCSFFiles(){const t={};return Object.entries(this.storyIndex.entries).forEach(([o,{importPath:i}])=>{t[i]=o}),(await Promise.all(Object.entries(t).map(async([o,i])=>({importPath:o,csfFile:await this.loadCSFFileByStoryId(i)})))).reduce((o,{importPath:i,csfFile:s})=>(o[i]=s,o),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:t}){const n=t.meta;return this.prepareMetaWithCache(n,this.projectAnnotations,t.moduleExports.default)}async loadStory({storyId:t}){const n=await this.loadCSFFileByStoryId(t);return this.storyFromCSFFile({storyId:t,csfFile:n})}storyFromCSFFile({storyId:t,csfFile:n}){const o=n.stories[t];if(!o)throw new M8({storyId:t});const i=n.meta,s=this.prepareStoryWithCache(o,i,n.projectAnnotations??this.projectAnnotations);return this.args.setInitial(s),this.hooks[s.id]=this.hooks[s.id]||new Bw,s}componentStoriesFromCSFFile({csfFile:t}){return Object.keys(this.storyIndex.entries).filter(n=>!!t.stories[n]).map(n=>this.storyFromCSFFile({storyId:n,csfFile:t}))}async loadEntry(t){const n=await this.storyIdToEntry(t),o=n.type==="docs"?n.storiesImports:[],[i,...s]=await Promise.all([this.importFn(n.importPath),...o.map(c=>{const f=this.storyIndex.importPathToEntry(c);return this.loadCSFFileByStoryId(f.id)})]);return{entryExports:i,csfFiles:s}}getStoryContext(t,{forceInitialArgs:n=!1}={}){const o=this.userGlobals.get(),{initialGlobals:i}=this.userGlobals,s=new ex;return V0({...t,args:n?t.initialArgs:this.args.get(t.id),initialGlobals:i,globalTypes:this.projectAnnotations.globalTypes,userGlobals:o,reporting:s,globals:{...o,...t.storyGlobals},hooks:this.hooks[t.id]})}addCleanupCallbacks(t,...n){this.cleanupCallbacks[t.id]=(this.cleanupCallbacks[t.id]||[]).concat(n)}async cleanupStory(t){this.hooks[t.id].clean();const n=this.cleanupCallbacks[t.id];if(n)for(const o of[...n].reverse())await o();delete this.cleanupCallbacks[t.id]}extract(t={includeDocsOnly:!1}){const{cachedCSFFiles:n}=this;if(console.log("extract: extracting stories",n),!n)throw new B8;const o=Object.entries(this.storyIndex.entries).reduce((i,[s,c])=>{if(c.type==="docs")return i;const f=n[c.importPath],p=this.storyFromCSFFile({storyId:s,csfFile:f});return!t.includeDocsOnly&&p.parameters.docsOnly||(i[s]=Object.entries(p).reduce((h,[y,v])=>y==="story"&&c.subtype==="test"?{...h,story:c.parentName}:y==="moduleExport"||typeof v=="function"?h:Array.isArray(v)?Object.assign(h,{[y]:v.slice().sort()}):Object.assign(h,{[y]:v}),{args:p.initialArgs,globals:{...this.userGlobals.initialGlobals,...this.userGlobals.globals,...p.storyGlobals},storyId:c.parent?c.parent:s})),i},{});return console.log("extract: stories",o),o}};d(ax,"StoryStore");var g9=ax;const{once:cX}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function m9(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}d(m9,"slash");function y9(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}d(y9,"pathJoin");const{deprecate:v9,logger:nS}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{ARGTYPES_INFO_REQUEST:b9,ARGTYPES_INFO_RESPONSE:aS,CONFIG_ERROR:E9,FORCE_REMOUNT:S9,FORCE_RE_RENDER:A9,GLOBALS_UPDATED:oS,PREVIEW_INITIALIZED:C9,RESET_STORY_ARGS:w9,SET_GLOBALS:x9,STORY_ARGS_UPDATED:D9,STORY_HOT_UPDATED:_9,STORY_INDEX_INVALIDATED:O9,UPDATE_GLOBALS:T9,UPDATE_STORY_ARGS:R9}=__STORYBOOK_MODULE_CORE_EVENTS__,{CalledPreviewMethodBeforeInitializationError:jn,MissingRenderToCanvasError:F9,StoryIndexFetchError:B9,StoryStoreAccessedBeforeInitializationError:M9}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:L9}=__STORYBOOK_MODULE_GLOBAL__,{PLAY_FUNCTION_THREW_EXCEPTION:N9,STORY_FINISHED:iS,STORY_RENDERED:k9,STORY_RENDER_PHASE_CHANGED:lS,UNHANDLED_ERRORS_WHILE_PLAYING:z9}=__STORYBOOK_MODULE_CORE_EVENTS__,{MountMustBeDestructuredError:j9,NoStoryMountedError:$9}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var Jf=new Error("prepareAborted"),{AbortController:sS}=globalThis;function lm(e){try{const{name:t="Error",message:n=String(e),stack:o}=e;return{name:t,message:n,stack:o}}catch{return{name:"Error",message:String(e)}}}d(lm,"serializeError");var ox=class{constructor(t,n,o,i,s,c,f={autoplay:!0,forceInitialArgs:!1},p){this.channel=t,this.store=n,this.renderToScreen=o,this.callbacks=i,this.id=s,this.viewMode=c,this.renderOptions=f,this.type="story",this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=d(()=>{},"teardownRender"),this.torndown=!1,this.abortController=new sS,this.renderId=Date.now(),p&&(this.story=p,this.phase="preparing")}async runPhase(t,n,o){this.phase=n,this.channel.emit(lS,{newPhase:this.phase,renderId:this.renderId,storyId:this.id}),o&&(await o(),this.checkIfAborted(t))}checkIfAborted(t){return t.aborted&&!["finished","aborted","errored"].includes(this.phase)&&(this.phase="aborted",this.channel.emit(lS,{newPhase:this.phase,renderId:this.renderId,storyId:this.id})),t.aborted}async prepare(){if(await this.runPhase(this.abortController.signal,"preparing",async()=>{this.story=await this.store.loadStory({storyId:this.id})}),this.abortController.signal.aborted)throw await this.store.cleanupStory(this.story),Jf}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["loading","beforeEach","rendering","playing","afterEach"].includes(this.phase)}async renderToElement(t){return this.canvasElement=t,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");const{forceInitialArgs:t}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:t})}async render({initial:t=!1,forceRemount:n=!1}={}){const{canvasElement:o}=this;if(!this.story)throw new Error("cannot render when not prepared");const i=this.story;if(!o)throw new Error("cannot render when canvasElement is unset");const{id:s,componentId:c,title:f,name:p,tags:h,applyLoaders:y,applyBeforeEach:v,applyAfterEach:b,unboundStoryFn:S,playFunction:w,runStep:x}=i;n&&!t&&(this.cancelRender(),this.abortController=new sS);const O=this.abortController.signal;let A=!1;const R=i.usesMount;try{const T={...this.storyContext(),viewMode:this.viewMode,abortSignal:O,canvasElement:o,loaded:{},step:d((X,z)=>x(X,z,T),"step"),context:null,canvas:{},userEvent:{},renderToCanvas:d(async()=>{const X=await this.renderToScreen(F,o);this.teardownRender=X||(()=>{}),A=!0},"renderToCanvas"),mount:d(async(...X)=>{this.callbacks.showStoryDuringRender?.();let z=null;return await this.runPhase(O,"rendering",async()=>{z=await i.mount(T)(...X)}),R&&await this.runPhase(O,"playing"),z},"mount")};T.context=T;const F={componentId:c,title:f,kind:f,id:s,name:p,story:p,tags:h,...this.callbacks,showError:d(X=>(this.phase="errored",this.callbacks.showError(X)),"showError"),showException:d(X=>(this.phase="errored",this.callbacks.showException(X)),"showException"),forceRemount:n||this.notYetRendered,storyContext:T,storyFn:d(()=>S(T),"storyFn"),unboundStoryFn:S};if(await this.runPhase(O,"loading",async()=>{T.loaded=await y(T)}),O.aborted)return;const N=await v(T);if(this.store.addCleanupCallbacks(i,...N),this.checkIfAborted(O)||(!A&&!R&&await T.mount(),this.notYetRendered=!1,O.aborted))return;const L=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,B=new Set,$=d(X=>{X.error&&B.add(X.error)},"onError"),P=d(X=>{X.reason&&B.add(X.reason)},"onUnhandledRejection");if(this.renderOptions.autoplay&&n&&w&&this.phase!=="errored"){window?.addEventListener?.("error",$),window?.addEventListener?.("unhandledrejection",P),this.disableKeyListeners=!0;try{if(R?await w(T):(T.mount=async()=>{throw new j9({playFunction:w.toString()})},await this.runPhase(O,"playing",async()=>w(T))),!A)throw new $9;this.checkIfAborted(O),!L&&B.size>0?await this.runPhase(O,"errored"):await this.runPhase(O,"played")}catch(X){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(O,"errored",async()=>{this.channel.emit(N9,lm(X))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw X;console.error(X)}if(!L&&B.size>0&&this.channel.emit(z9,Array.from(B).map(lm)),this.disableKeyListeners=!1,window?.removeEventListener?.("unhandledrejection",P),window?.removeEventListener?.("error",$),O.aborted)return}await this.runPhase(O,"completing",async()=>{Kf()?this.store.addCleanupCallbacks(i,L0()):await N0(O)}),await this.runPhase(O,"completed",async()=>{this.channel.emit(k9,s)}),this.phase!=="errored"&&await this.runPhase(O,"afterEach",async()=>{await b(T)});const I=!L&&B.size>0,U=T.reporting.reports.some(X=>X.status==="failed"),Q=I||U;await this.runPhase(O,"finished",async()=>this.channel.emit(iS,{storyId:s,status:Q?"error":"success",reporters:T.reporting.reports}))}catch(T){this.phase="errored",this.callbacks.showException(T),await this.runPhase(O,"finished",async()=>this.channel.emit(iS,{storyId:s,status:"error",reporters:[]}))}this.rerenderEnqueued&&(this.rerenderEnqueued=!1,this.render())}async rerender(){if(this.isPending()&&this.phase!=="playing")this.rerenderEnqueued=!0;else return this.render()}async remount(){return await this.teardown(),this.render({forceRemount:!0})}cancelRender(){this.abortController.abort()}cancelPlayFunction(){this.phase==="playing"&&(this.abortController.abort(),this.runPhase(this.abortController.signal,"aborted"))}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let t=0;t<3;t+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(n=>setTimeout(n,0))}window?.location?.reload?.(),await new Promise(()=>{})}};d(ox,"StoryRender");var sm=ox,{fetch:P9}=L9,I9="./index.json",ix=class{constructor(t,n,o=qa.getChannel(),i=!0){this.importFn=t,this.getProjectAnnotations=n,this.channel=o,this.storyRenders=[],this.storeInitializationPromise=new Promise((s,c)=>{this.resolveStoreInitializationPromise=s,this.rejectStoreInitializationPromise=c}),i&&this.initialize()}get storyStore(){return new Proxy({},{get:d((t,n)=>{if(this.storyStoreValue)return v9("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[n];throw new M9},"get")})}async initialize(){this.setupListeners();try{const t=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(t),await this.initializeWithProjectAnnotations(t);const n=globalThis?.navigator?.userAgent;await this.channel.emit(C9,{userAgent:n})}catch(t){this.rejectStoreInitializationPromise(t)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(O9,this.onStoryIndexChanged.bind(this)),this.channel.on(T9,this.onUpdateGlobals.bind(this)),this.channel.on(R9,this.onUpdateArgs.bind(this)),this.channel.on(b9,this.onRequestArgTypesInfo.bind(this)),this.channel.on(w9,this.onResetArgs.bind(this)),this.channel.on(A9,this.onForceReRender.bind(this)),this.channel.on(S9,this.onForceRemount.bind(this)),this.channel.on(_9,this.onStoryHotUpdated.bind(this))}async getProjectAnnotationsOrRenderError(){try{const t=await this.getProjectAnnotations();if(this.renderToCanvas=t.renderToCanvas,!this.renderToCanvas)throw new F9;return t}catch(t){throw this.renderPreviewEntryError("Error reading preview.js:",t),t}}async initializeWithProjectAnnotations(t){this.projectAnnotationsBeforeInitialization=t;try{const n=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(n)}catch(n){throw this.renderPreviewEntryError("Error loading story index:",n),n}}async runBeforeAllHook(t){try{await this.beforeAllCleanup?.(),this.beforeAllCleanup=await t.beforeAll?.()}catch(n){throw this.renderPreviewEntryError("Error in beforeAll hook:",n),n}}async getStoryIndexFromServer(){const t=await P9(I9);if(t.status===200)return t.json();throw new B9({text:await t.text()})}initializeWithStoryIndex(t){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new g9(t,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new jn({methodName:"emitGlobals"});const t={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(x9,t)}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){delete this.previewEntryError,this.getProjectAnnotations=t;const n=await this.getProjectAnnotationsOrRenderError();if(await this.runBeforeAllHook(n),!this.storyStoreValue){await this.initializeWithProjectAnnotations(n);return}this.storyStoreValue.setProjectAnnotations(n),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!(!this.storyStoreValue&&!this.projectAnnotationsBeforeInitialization))try{const t=await this.getStoryIndexFromServer();if(this.projectAnnotationsBeforeInitialization){this.initializeWithStoryIndex(t);return}await this.onStoriesChanged({storyIndex:t})}catch(t){throw this.renderPreviewEntryError("Error loading story index:",t),t}}async onStoriesChanged({importFn:t,storyIndex:n}){if(!this.storyStoreValue)throw new jn({methodName:"onStoriesChanged"});await this.storyStoreValue.onStoriesChanged({importFn:t,storyIndex:n})}async onUpdateGlobals({globals:t,currentStory:n}){if(this.storyStoreValue||await this.storeInitializationPromise,!this.storyStoreValue)throw new jn({methodName:"onUpdateGlobals"});if(this.storyStoreValue.userGlobals.update(t),n){const{initialGlobals:o,storyGlobals:i,userGlobals:s,globals:c}=this.storyStoreValue.getStoryContext(n);this.channel.emit(oS,{initialGlobals:o,userGlobals:s,storyGlobals:i,globals:c})}else{const{initialGlobals:o,globals:i}=this.storyStoreValue.userGlobals;this.channel.emit(oS,{initialGlobals:o,userGlobals:i,storyGlobals:{},globals:i})}await Promise.all(this.storyRenders.map(o=>o.rerender()))}async onUpdateArgs({storyId:t,updatedArgs:n}){if(!this.storyStoreValue)throw new jn({methodName:"onUpdateArgs"});this.storyStoreValue.args.update(t,n),await Promise.all(this.storyRenders.filter(o=>o.id===t&&!o.renderOptions.forceInitialArgs).map(o=>o.story&&o.story.usesMount?o.remount():o.rerender())),this.channel.emit(D9,{storyId:t,args:this.storyStoreValue.args.get(t)})}async onRequestArgTypesInfo({id:t,payload:n}){try{await this.storeInitializationPromise;const o=await this.storyStoreValue?.loadStory(n);this.channel.emit(aS,{id:t,success:!0,payload:{argTypes:o?.argTypes||{}},error:null})}catch(o){this.channel.emit(aS,{id:t,success:!1,error:o?.message})}}async onResetArgs({storyId:t,argNames:n}){if(!this.storyStoreValue)throw new jn({methodName:"onResetArgs"});const i=this.storyRenders.find(f=>f.id===t)?.story||await this.storyStoreValue.loadStory({storyId:t}),c=(n||[...new Set([...Object.keys(i.initialArgs),...Object.keys(this.storyStoreValue.args.get(t))])]).reduce((f,p)=>(f[p]=i.initialArgs[p],f),{});await this.onUpdateArgs({storyId:t,updatedArgs:c})}async onForceReRender(){await Promise.all(this.storyRenders.map(t=>t.rerender()))}async onForceRemount({storyId:t}){await Promise.all(this.storyRenders.filter(n=>n.id===t).map(n=>n.remount()))}async onStoryHotUpdated(){await Promise.all(this.storyRenders.map(t=>t.cancelPlayFunction()))}renderStoryToElement(t,n,o,i){if(!this.renderToCanvas||!this.storyStoreValue)throw new jn({methodName:"renderStoryToElement"});const s=new sm(this.channel,this.storyStoreValue,this.renderToCanvas,o,t.id,"docs",i,t);return s.renderToElement(n),this.storyRenders.push(s),async()=>{await this.teardownRender(s)}}async teardownRender(t,{viewModeChanged:n}={}){this.storyRenders=this.storyRenders.filter(o=>o!==t),await t?.teardown?.({viewModeChanged:n})}async loadStory({storyId:t}){if(!this.storyStoreValue)throw new jn({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:t})}getStoryContext(t,{forceInitialArgs:n=!1}={}){if(!this.storyStoreValue)throw new jn({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(t,{forceInitialArgs:n})}async extract(t){if(!this.storyStoreValue)throw new jn({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(t)}renderPreviewEntryError(t,n){this.previewEntryError=n,nS.error(t),nS.error(n),this.channel.emit(E9,n)}};d(ix,"Preview");var H9=ix;const{global:U9}=__STORYBOOK_MODULE_GLOBAL__,{logger:jc}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{CURRENT_STORY_WAS_SET:uS,DOCS_PREPARED:q9,GLOBALS_UPDATED:cS,PRELOAD_ENTRIES:G9,PREVIEW_KEYDOWN:V9,SET_CURRENT_STORY:Y9,STORY_CHANGED:W9,STORY_ERRORED:K9,STORY_MISSING:fS,STORY_PREPARED:X9,STORY_RENDER_PHASE_CHANGED:dS,STORY_SPECIFIED:Z9,STORY_THREW_EXCEPTION:J9,STORY_UNCHANGED:Q9,UPDATE_QUERY_PARAMS:eL}=__STORYBOOK_MODULE_CORE_EVENTS__,{CalledPreviewMethodBeforeInitializationError:hg,EmptyIndexError:tL,MdxFileWithNoCsfReferencesError:rL,NoStoryMatchError:nL}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{DOCS_RENDERED:aL}=__STORYBOOK_MODULE_CORE_EVENTS__;var lx=class{constructor(t,n,o,i){this.channel=t,this.store=n,this.renderStoryToElement=o,this.storyIdByName=d(s=>{const c=this.nameToStoryId.get(s);if(c)return c;throw new Error(`No story found with that name: ${s}`)},"storyIdByName"),this.componentStories=d(()=>this.componentStoriesValue,"componentStories"),this.componentStoriesFromCSFFile=d(s=>this.store.componentStoriesFromCSFFile({csfFile:s}),"componentStoriesFromCSFFile"),this.storyById=d(s=>{if(!s){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use `<Meta>`?");return this.primaryStory}const c=this.storyIdToCSFFile.get(s);if(!c)throw new Error(`Called \`storyById\` for story that was never loaded: ${s}`);return this.store.storyFromCSFFile({storyId:s,csfFile:c})},"storyById"),this.getStoryContext=d(s=>({...this.store.getStoryContext(s),loaded:{},viewMode:"docs"}),"getStoryContext"),this.loadStory=d(s=>this.store.loadStory({storyId:s}),"loadStory"),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,i.forEach((s,c)=>{this.referenceCSFFile(s)})}referenceCSFFile(t){this.exportsToCSFFile.set(t.moduleExports,t),this.exportsToCSFFile.set(t.moduleExports.default,t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(o=>{const i=t.stories[o.id];this.storyIdToCSFFile.set(i.id,t),this.exportToStory.set(i.moduleExport,o)})}attachCSFFile(t){if(!this.exportsToCSFFile.has(t.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");if(this.attachedCSFFiles.has(t))return;this.attachedCSFFiles.add(t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(o=>{this.nameToStoryId.set(o.name,o.id),this.componentStoriesValue.push(o),this.primaryStory||(this.primaryStory=o)})}referenceMeta(t,n){const o=this.resolveModuleExport(t);if(o.type!=="meta")throw new Error("<Meta of={} /> must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?");n&&this.attachCSFFile(o.csfFile)}get projectAnnotations(){const{projectAnnotations:t}=this.store;if(!t)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return t}resolveAttachedModuleExportType(t){if(t==="story"){if(!this.primaryStory)throw new Error("No primary story attached to this docs file, did you forget to use <Meta of={} />?");return{type:"story",story:this.primaryStory}}if(this.attachedCSFFiles.size===0)throw new Error("No CSF file attached to this docs file, did you forget to use <Meta of={} />?");const n=Array.from(this.attachedCSFFiles)[0];if(t==="meta")return{type:"meta",csfFile:n};const{component:o}=n.meta;if(!o)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:o}}resolveModuleExport(t){const n=this.exportsToCSFFile.get(t);if(n)return{type:"meta",csfFile:n};const o=this.exportToStory.get(pd(t)?t.input:t);return o?{type:"story",story:o}:{type:"component",component:t}}resolveOf(t,n=[]){let o;if(["component","meta","story"].includes(t)){const i=t;o=this.resolveAttachedModuleExportType(i)}else o=this.resolveModuleExport(t);if(n.length&&!n.includes(o.type)){const i=o.type==="component"?"component or unknown":o.type;throw new Error(Jr`Invalid value passed to the 'of' prop. The value was resolved to a '${i}' type but the only types for this block are: ${n.join(", ")}.
|
|
50
|
-
- Did you pass a component to the 'of' prop when the block only supports a story or a meta?
|
|
51
|
-
- ... or vice versa?
|
|
52
|
-
- Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(o.type){case"component":return{...o,projectAnnotations:this.projectAnnotations};case"meta":return{...o,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:o.csfFile})};case"story":default:return o}}};d(lx,"DocsContext");var sx=lx,ux=class{constructor(t,n,o,i){this.channel=t,this.store=n,this.entry=o,this.callbacks=i,this.type="docs",this.subtype="csf",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=o.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;const{entryExports:t,csfFiles:n=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Jf;const{importPath:o,title:i}=this.entry,s=this.store.processCSFFileWithCache(t,o,i),c=Object.keys(s.stories)[0];this.story=this.store.storyFromCSFFile({storyId:c,csfFile:s}),this.csfFiles=[s,...n],this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");const n=new sx(this.channel,this.store,t,this.csfFiles);return this.csfFiles.forEach(o=>n.attachCSFFile(o)),n}async renderToElement(t,n){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");const o=this.docsContext(n),{docs:i}=this.story.parameters||{};if(!i)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");const s=await i.renderer(),{render:c}=s,f=d(async()=>{try{await c(o,i,t),this.channel.emit(aL,this.id)}catch(p){this.callbacks.showException(p)}},"renderDocs");return this.rerender=async()=>f(),this.teardownRender=async({viewModeChanged:p})=>{!p||!t||s.unmount(t)},f()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};d(ux,"CsfDocsRender");var pS=ux;const{DOCS_RENDERED:oL}=__STORYBOOK_MODULE_CORE_EVENTS__;var cx=class{constructor(t,n,o,i){this.channel=t,this.store=n,this.entry=o,this.callbacks=i,this.type="docs",this.subtype="mdx",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=o.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;const{entryExports:t,csfFiles:n=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Jf;this.csfFiles=n,this.exports=t,this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.exports&&this.exports===t.exports)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");return new sx(this.channel,this.store,t,this.csfFiles)}async renderToElement(t,n){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");const o=this.docsContext(n),{docs:i}=this.store.projectAnnotations.parameters??{};if(!i)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");const s={...i,page:this.exports.default},c=await i.renderer(),{render:f}=c,p=d(async()=>{try{await f(o,s,t),this.channel.emit(oL,this.id)}catch(h){this.callbacks.showException(h)}},"renderDocs");return this.rerender=async()=>p(),this.teardownRender=async({viewModeChanged:h}={})=>{!h||!t||(c.unmount(t),this.torndown=!0)},p()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};d(cx,"MdxDocsRender");var hS=cx,iL=globalThis;function fx(e){const t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}d(fx,"focusInInput");var dx="attached-mdx",lL="unattached-mdx";function px({tags:e}){return e?.includes(lL)||e?.includes(dx)}d(px,"isMdxEntry");function ef(e){return e.type==="story"}d(ef,"isStoryRender");function hx(e){return e.type==="docs"}d(hx,"isDocsRender");function gx(e){return hx(e)&&e.subtype==="csf"}d(gx,"isCsfDocsRender");var mx=class extends H9{constructor(t,n,o,i){super(t,n,void 0,!1),this.importFn=t,this.getProjectAnnotations=n,this.selectionStore=o,this.view=i,this.initialize()}setupListeners(){super.setupListeners(),iL.onkeydown=this.onKeydown.bind(this),this.channel.on(Y9,this.onSetCurrentStory.bind(this)),this.channel.on(eL,this.onUpdateQueryParams.bind(this)),this.channel.on(G9,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new hg({methodName:"setInitialGlobals"});const{globals:t}=this.selectionStore.selectionSpecifier||{};t&&this.storyStoreValue.userGlobals.updateFromPersisted(t),this.emitGlobals()}async initializeWithStoryIndex(t){return await super.initializeWithStoryIndex(t),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new hg({methodName:"selectSpecifiedStory"});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}const{storySpecifier:t,args:n}=this.selectionStore.selectionSpecifier,o=this.storyStoreValue.storyIndex.entryFromSpecifier(t);if(!o){t==="*"?this.renderStoryLoadingException(t,new tL):this.renderStoryLoadingException(t,new nL({storySpecifier:t.toString()}));return}const{id:i,type:s}=o;this.selectionStore.setSelection({storyId:i,viewMode:s}),this.channel.emit(Z9,this.selectionStore.selection),this.channel.emit(uS,this.selectionStore.selection),await this.renderSelection({persistedArgs:n})}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:t}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:t,storyIndex:n}){await super.onStoriesChanged({importFn:t,storyIndex:n}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(t){if(!this.storyRenders.find(n=>n.disableKeyListeners)&&!fx(t)){const{altKey:n,ctrlKey:o,metaKey:i,shiftKey:s,key:c,code:f,keyCode:p}=t;this.channel.emit(V9,{event:{altKey:n,ctrlKey:o,metaKey:i,shiftKey:s,key:c,code:f,keyCode:p}})}}async onSetCurrentStory(t){this.selectionStore.setSelection({viewMode:"story",...t}),await this.storeInitializationPromise,this.channel.emit(uS,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(t){this.selectionStore.setQueryParams(t)}async onUpdateGlobals({globals:t}){const n=this.currentRender instanceof sm&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:t,currentStory:n}),(this.currentRender instanceof hS||this.currentRender instanceof pS)&&await this.currentRender.rerender?.()}async onUpdateArgs({storyId:t,updatedArgs:n}){super.onUpdateArgs({storyId:t,updatedArgs:n})}async onPreloadStories({ids:t}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(t.map(n=>this.storyStoreValue?.loadEntry(n)))}async renderSelection({persistedArgs:t}={}){const{renderToCanvas:n}=this;if(!this.storyStoreValue||!n)throw new hg({methodName:"renderSelection"});const{selection:o}=this.selectionStore;if(!o)throw new Error("Cannot call renderSelection as no selection was made");const{storyId:i}=o;let s;try{s=await this.storyStoreValue.storyIdToEntry(i)}catch(b){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(i,b);return}const c=this.currentSelection?.storyId!==i,f=this.currentRender?.type!==s.type;s.type==="story"?this.view.showPreparingStory({immediate:f}):this.view.showPreparingDocs({immediate:f}),this.currentRender?.isPreparing()&&await this.teardownRender(this.currentRender);let p;s.type==="story"?p=new sm(this.channel,this.storyStoreValue,n,this.mainStoryCallbacks(i),i,"story"):px(s)?p=new hS(this.channel,this.storyStoreValue,s,this.mainStoryCallbacks(i)):p=new pS(this.channel,this.storyStoreValue,s,this.mainStoryCallbacks(i));const h=this.currentSelection;this.currentSelection=o;const y=this.currentRender;this.currentRender=p;try{await p.prepare()}catch(b){y&&await this.teardownRender(y),b!==Jf&&this.renderStoryLoadingException(i,b);return}const v=!c&&y&&!p.isEqual(y);if(t&&ef(p)&&(_o(!!p.story),this.storyStoreValue.args.updateFromPersisted(p.story,t)),y&&!y.torndown&&!c&&!v&&!f){this.currentRender=y,this.channel.emit(Q9,i),this.view.showMain();return}if(y&&await this.teardownRender(y,{viewModeChanged:f}),h&&(c||f)&&this.channel.emit(W9,i),ef(p)){_o(!!p.story);const{parameters:b,initialArgs:S,argTypes:w,unmappedArgs:x,initialGlobals:O,userGlobals:A,storyGlobals:R,globals:T}=this.storyStoreValue.getStoryContext(p.story);this.channel.emit(X9,{id:i,parameters:b,initialArgs:S,argTypes:w,args:x}),this.channel.emit(cS,{userGlobals:A,storyGlobals:R,globals:T,initialGlobals:O})}else{let{parameters:b}=this.storyStoreValue.projectAnnotations;const{initialGlobals:S,globals:w}=this.storyStoreValue.userGlobals;if(this.channel.emit(cS,{globals:w,initialGlobals:S,storyGlobals:{},userGlobals:w}),gx(p)||p.entry.tags?.includes(dx)){if(!p.csfFiles)throw new rL({storyId:i});({parameters:b}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:p.csfFiles[0]}))}this.channel.emit(q9,{id:i,parameters:b})}ef(p)?(_o(!!p.story),this.storyRenders.push(p),this.currentRender.renderToElement(this.view.prepareForStory(p.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(t,{viewModeChanged:n=!1}={}){this.storyRenders=this.storyRenders.filter(o=>o!==t),await t?.teardown?.({viewModeChanged:n})}mainStoryCallbacks(t){return{showStoryDuringRender:d(()=>this.view.showStoryDuringRender(),"showStoryDuringRender"),showMain:d(()=>this.view.showMain(),"showMain"),showError:d(n=>this.renderError(t,n),"showError"),showException:d(n=>this.renderException(t,n),"showException")}}renderPreviewEntryError(t,n){super.renderPreviewEntryError(t,n),this.view.showErrorDisplay(n)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(fS)}renderStoryLoadingException(t,n){jc.error(n),this.view.showErrorDisplay(n),this.channel.emit(fS,t)}renderException(t,n){const{name:o="Error",message:i=String(n),stack:s}=n,c=this.currentRender?.renderId;this.channel.emit(J9,{name:o,message:i,stack:s}),this.channel.emit(dS,{newPhase:"errored",renderId:c,storyId:t}),this.view.showErrorDisplay(n),jc.error(`Error rendering story '${t}':`),jc.error(n)}renderError(t,{title:n,description:o}){const i=this.currentRender?.renderId;this.channel.emit(K9,{title:n,description:o}),this.channel.emit(dS,{newPhase:"errored",renderId:i,storyId:t}),this.view.showErrorDisplay({message:n,stack:o}),jc.error(`Error rendering story ${n}: ${o}`)}};d(mx,"PreviewWithSelection");var sL=mx,um=or(j0(),1);const{global:uL}=__STORYBOOK_MODULE_GLOBAL__,{once:cL}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var fL=or(j0(),1),gS=/^[a-zA-Z0-9 _-]*$/,yx=/^-?[0-9]+(\.[0-9]+)?$/,dL=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,vx=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,cm=d((e="",t)=>e===null||e===""||!gS.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?gS.test(t)||yx.test(t)||dL.test(t)||vx.test(t):Array.isArray(t)?t.every(n=>cm(e,n)):Xn(t)?Object.entries(t).every(([n,o])=>cm(n,o)):!1,"validateArgs"),pL={delimiter:";",nesting:!0,arrayRepeat:!0,arrayRepeatSyntax:"bracket",nestingSyntax:"js",valueDeserializer(e){if(e.startsWith("!")){if(e==="!undefined")return;if(e==="!null")return null;if(e==="!true")return!0;if(e==="!false")return!1;if(e.startsWith("!date(")&&e.endsWith(")"))return new Date(e.replaceAll(" ","+").slice(6,-1));if(e.startsWith("!hex(")&&e.endsWith(")"))return`#${e.slice(5,-1)}`;const t=e.slice(1).match(vx);if(t)return e.startsWith("!rgba")||e.startsWith("!RGBA")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]}, ${t[5]})`:e.startsWith("!hsla")||e.startsWith("!HSLA")?`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%, ${t[5]})`:e.startsWith("!rgb")||e.startsWith("!RGB")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]})`:`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%)`}return yx.test(e)?Number(e):e}},mS=d(e=>{const t=e.split(";").map(n=>n.replace("=","~").replace(":","="));return Object.entries((0,fL.parse)(t.join(";"),pL)).reduce((n,[o,i])=>cm(o,i)?Object.assign(n,{[o]:i}):(cL.warn(Jr`
|
|
53
|
-
Omitted potentially unsafe URL args.
|
|
54
|
-
|
|
55
|
-
More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url?ref=error
|
|
56
|
-
`),n),{})},"parseArgsParam"),{history:bx,document:Ia}=uL;function Ex(e){const t=(e||"").match(/^\/story\/(.+)/);if(!t)throw new Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}d(Ex,"pathToId");var Sx=d(({selection:e,extraParams:t})=>{const n=Ia?.location.search.slice(1),{path:o,selectedKind:i,selectedStory:s,...c}=(0,um.parse)(n);return`?${(0,um.stringify)({...c,...t,...e&&{id:e.storyId,viewMode:e.viewMode}})}`},"getQueryString"),hL=d(e=>{if(!e)return;const t=Sx({selection:e}),{hash:n=""}=Ia.location;Ia.title=e.storyId,bx.replaceState({},"",`${Ia.location.pathname}${t}${n}`)},"setPath"),gL=d(e=>e!=null&&typeof e=="object"&&Array.isArray(e)===!1,"isObject"),ks=d(e=>{if(e!==void 0){if(typeof e=="string")return e;if(Array.isArray(e))return ks(e[0]);if(gL(e))return ks(Object.values(e).filter(Boolean))}},"getFirstString"),mL=d(()=>{if(typeof Ia<"u"){const e=Ia.location.search.slice(1),t=(0,um.parse)(e),n=typeof t.args=="string"?mS(t.args):void 0,o=typeof t.globals=="string"?mS(t.globals):void 0;let i=ks(t.viewMode);(typeof i!="string"||!i.match(/docs|story/))&&(i="story");const s=ks(t.path),c=s?Ex(s):ks(t.id);if(c)return{storySpecifier:c,args:n,globals:o,viewMode:i}}return null},"getSelectionSpecifierFromPath"),Ax=class{constructor(){this.selectionSpecifier=mL()}setSelection(t){this.selection=t,hL(this.selection)}setQueryParams(t){const n=Sx({extraParams:t}),{hash:o=""}=Ia.location;bx.replaceState({},"",`${Ia.location.pathname}${n}${o}`)}};d(Ax,"UrlStore");var yL=Ax,vL=or(h8(),1),bL=or(j0(),1);const{logger:EL}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:SL}=__STORYBOOK_MODULE_GLOBAL__;var{document:kt}=SL,yS=100,Cx=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(Cx||{}),gg={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},mg={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},vS=new vL.default({escapeXML:!0}),wx=class{constructor(){if(this.testing=!1,typeof kt<"u"){const{__SPECIAL_TEST_PARAMETER__:t}=(0,bL.parse)(kt.location.search.slice(1));switch(t){case"preparing-story":{this.showPreparingStory(),this.testing=!0;break}case"preparing-docs":{this.showPreparingDocs(),this.testing=!0;break}}}}prepareForStory(t){return this.showStory(),this.applyLayout(t.parameters.layout),kt.documentElement.scrollTop=0,kt.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return kt.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),kt.documentElement.scrollTop=0,kt.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return kt.getElementById("storybook-docs")}applyLayout(t="padded"){if(t==="none"){kt.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(t);const n=mg[t];kt.body.classList.remove(this.currentLayoutClass),kt.body.classList.add(n),this.currentLayoutClass=n}checkIfLayoutExists(t){mg[t]||EL.warn(Jr`
|
|
57
|
-
The desired layout: ${t} is not a valid option.
|
|
58
|
-
The possible options are: ${Object.keys(mg).join(", ")}, none.
|
|
59
|
-
`)}showMode(t){clearTimeout(this.preparingTimeout),Object.keys(Cx).forEach(n=>{n===t?kt.body.classList.add(gg[n]):kt.body.classList.remove(gg[n])})}showErrorDisplay({message:t="",stack:n=""}){let o=t,i=n;const s=t.split(`
|
|
60
|
-
`);s.length>1&&([o]=s,i=s.slice(1).join(`
|
|
61
|
-
`).replace(/^\n/,"")),kt.getElementById("error-message").innerHTML=vS.toHtml(o),kt.getElementById("error-stack").innerHTML=vS.toHtml(i),this.showMode("ERROR")}showNoPreview(){this.testing||(this.showMode("NOPREVIEW"),this.storyRoot()?.setAttribute("hidden","true"),this.docsRoot()?.setAttribute("hidden","true"))}showPreparingStory({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),yS)}showPreparingDocs({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),yS)}showMain(){this.showMode("MAIN")}showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}showStoryDuringRender(){kt.body.classList.add(gg.MAIN)}};d(wx,"WebView");var AL=wx,CL=class extends sL{constructor(t,n){super(t,n,new yL,new AL),this.importFn=t,this.getProjectAnnotations=n,U9.__STORYBOOK_PREVIEW__=this}};d(CL,"PreviewWeb");const{global:wL}=__STORYBOOK_MODULE_GLOBAL__;var{document:Oo}=wL,xL=["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript","module"],DL="script",bS="scripts-root";function fm(){const e=Oo.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),Oo.dispatchEvent(e)}d(fm,"simulateDOMContentLoaded");function xx(e,t,n){const o=Oo.createElement("script");o.type=e.type==="module"?"module":"text/javascript",e.src?(o.onload=t,o.onerror=t,o.src=e.src):o.textContent=e.innerText,n?n.appendChild(o):Oo.head.appendChild(o),e.parentNode.removeChild(e),e.src||t()}d(xx,"insertScript");function W0(e,t,n=0){e[n](()=>{n++,n===e.length?t():W0(e,t,n)})}d(W0,"insertScriptsSequentially");function _L(e){let t=Oo.getElementById(bS);t?t.innerHTML="":(t=Oo.createElement("div"),t.id=bS,Oo.body.appendChild(t));const n=Array.from(e.querySelectorAll(DL));if(n.length){const o=[];n.forEach(i=>{const s=i.getAttribute("type");(!s||xL.includes(s))&&o.push(c=>xx(i,c,t))}),o.length&&W0(o,fm,void 0)}else fm()}d(_L,"simulatePageLoad");async function OL(e,t){const n=t.parameters?.docs?.source?.transform,{id:o,unmappedArgs:i}=t,s=n&&e?n?.(e,t):e,c=s?await s:void 0;qa.getChannel().emit(Qg,{id:o,source:c,args:i})}d(OL,"emitTransformCode");var Qf="storybook/highlight",TL=`${Qf}/add`,RL=`${Qf}/remove`,FL=`${Qf}/reset`,BL=`${Qf}/scroll-into-view`,ES=2147483647,Ma=28,ML="storybook/actions",LL=`${ML}/action-event`,NL={depth:10,clearOnStoryChange:!0,limit:50};const{ImplicitActionsDuringRendering:kL}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:SS}=__STORYBOOK_MODULE_GLOBAL__,{addons:zL}=__STORYBOOK_MODULE_PREVIEW_API__;var Dx=d((e,t)=>{const n=Object.getPrototypeOf(e);return!n||t(n)?n:Dx(n,t)},"findProto"),jL=d(e=>!!(typeof e=="object"&&e&&Dx(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),"isReactSyntheticEvent"),$L=d(e=>{if(jL(e)){const t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();const n=Object.getOwnPropertyDescriptor(t,"view"),o=n?.value;return typeof o=="object"&&o?.constructor.name==="Window"&&Object.defineProperty(t,"view",{...n,value:Object.create(o.constructor.prototype)}),t}return e},"serializeArg");function ed(e,t={}){const n={...NL,...t},o=d(function(...s){if(t.implicit){const S=("__STORYBOOK_PREVIEW__"in SS?SS.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(w=>w.phase==="playing"||w.phase==="rendering");if(S){const w=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,x=new kL({phase:S.phase,name:e,deprecated:w});if(w)console.warn(x);else throw x}}const c=zL.getChannel(),f=Date.now().toString(36)+Math.random().toString(36).substring(2),p=5,h=s.map($L),y=s.length>1?h:h[0],v={id:f,count:0,data:{name:e,args:y},options:{...n,maxDepth:p+(n.depth||3)}};c.emit(LL,v)},"actionHandler");return o.isAction=!0,o.implicit=t.implicit,o}d(ed,"action");var PL="viewport",$n={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"},IL={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},_x=Object.entries(IL);function lu(e){return String(e)}d(lu,"a");lu.open="";lu.close="";_x.reduce((e,[t])=>(e[t]=lu,e),{isColorSupported:!1});function Ox(e=!1){let t=typeof process<"u"?process:void 0,n=t?.env||{},o=t?.argv||[];return!("NO_COLOR"in n||o.includes("--no-color"))&&("FORCE_COLOR"in n||o.includes("--color")||t?.platform==="win32"||e&&n.TERM!=="dumb"||"CI"in n)||typeof window<"u"&&!!window.chrome}d(Ox,"C");function Tx(e=!1){let t=Ox(e),n=d((c,f,p,h)=>{let y="",v=0;do y+=c.substring(v,h)+p,v=h+f.length,h=c.indexOf(f,v);while(~h);return y+c.substring(v)},"i"),o=d((c,f,p=c)=>{let h=d(y=>{let v=String(y),b=v.indexOf(f,c.length);return~b?c+n(v,f,p,b)+f:c+v+f},"o");return h.open=c,h.close=f,h},"g"),i={isColorSupported:t},s=d(c=>`\x1B[${c}m`,"d");for(let[c,f]of _x)i[c]=t?o(s(f[0]),s(f[1]),f[2]):lu;return i}d(Tx,"p");var Yn=Tx();function K0(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(o){if(o!=="default"&&!(o in e)){var i=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:d(function(){return n[o]},"get")})}})}),Object.freeze(e)}d(K0,"_mergeNamespaces");function Rx(e,t){const n=Object.keys(e),o=t===null?n:n.sort(t);if(Object.getOwnPropertySymbols)for(const i of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,i).enumerable&&o.push(i);return o}d(Rx,"getKeysOfEnumerableProperties");function bl(e,t,n,o,i,s,c=": "){let f="",p=0,h=e.next();if(!h.done){f+=t.spacingOuter;const y=n+t.indent;for(;!h.done;){if(f+=y,p++===t.maxWidth){f+="…";break}const v=s(h.value[0],t,y,o,i),b=s(h.value[1],t,y,o,i);f+=v+c+b,h=e.next(),h.done?t.min||(f+=","):f+=`,${t.spacingInner}`}f+=t.spacingOuter+n}return f}d(bl,"printIteratorEntries");function td(e,t,n,o,i,s){let c="",f=0,p=e.next();if(!p.done){c+=t.spacingOuter;const h=n+t.indent;for(;!p.done;){if(c+=h,f++===t.maxWidth){c+="…";break}c+=s(p.value,t,h,o,i),p=e.next(),p.done?t.min||(c+=","):c+=`,${t.spacingInner}`}c+=t.spacingOuter+n}return c}d(td,"printIteratorValues");function Xs(e,t,n,o,i,s){let c="";e=e instanceof ArrayBuffer?new DataView(e):e;const f=d(h=>h instanceof DataView,"isDataView"),p=f(e)?e.byteLength:e.length;if(p>0){c+=t.spacingOuter;const h=n+t.indent;for(let y=0;y<p;y++){if(c+=h,y===t.maxWidth){c+="…";break}(f(e)||y in e)&&(c+=s(f(e)?e.getInt8(y):e[y],t,h,o,i)),y<p-1?c+=`,${t.spacingInner}`:t.min||(c+=",")}c+=t.spacingOuter+n}return c}d(Xs,"printListItems");function rd(e,t,n,o,i,s){let c="";const f=Rx(e,t.compareKeys);if(f.length>0){c+=t.spacingOuter;const p=n+t.indent;for(let h=0;h<f.length;h++){const y=f[h],v=s(y,t,p,o,i),b=s(e[y],t,p,o,i);c+=`${p+v}: ${b}`,h<f.length-1?c+=`,${t.spacingInner}`:t.min||(c+=",")}c+=t.spacingOuter+n}return c}d(rd,"printObjectProperties");var HL=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,$c=" ",UL=d((e,t,n,o,i,s)=>{const c=e.toString();if(c==="ArrayContaining"||c==="ArrayNotContaining")return++o>t.maxDepth?`[${c}]`:`${c+$c}[${Xs(e.sample,t,n,o,i,s)}]`;if(c==="ObjectContaining"||c==="ObjectNotContaining")return++o>t.maxDepth?`[${c}]`:`${c+$c}{${rd(e.sample,t,n,o,i,s)}}`;if(c==="StringMatching"||c==="StringNotMatching"||c==="StringContaining"||c==="StringNotContaining")return c+$c+s(e.sample,t,n,o,i);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},"serialize$5"),qL=d(e=>e&&e.$$typeof===HL,"test$5"),GL={serialize:UL,test:qL},VL=" ",Fx=new Set(["DOMStringMap","NamedNodeMap"]),YL=/^(?:HTML\w*Collection|NodeList)$/;function Bx(e){return Fx.has(e)||YL.test(e)}d(Bx,"testName");var WL=d(e=>e&&e.constructor&&!!e.constructor.name&&Bx(e.constructor.name),"test$4");function Mx(e){return e.constructor.name==="NamedNodeMap"}d(Mx,"isNamedNodeMap");var KL=d((e,t,n,o,i,s)=>{const c=e.constructor.name;return++o>t.maxDepth?`[${c}]`:(t.min?"":c+VL)+(Fx.has(c)?`{${rd(Mx(e)?[...e].reduce((f,p)=>(f[p.name]=p.value,f),{}):{...e},t,n,o,i,s)}}`:`[${Xs([...e],t,n,o,i,s)}]`)},"serialize$4"),XL={serialize:KL,test:WL};function X0(e){return e.replaceAll("<","<").replaceAll(">",">")}d(X0,"escapeHTML");function nd(e,t,n,o,i,s,c){const f=o+n.indent,p=n.colors;return e.map(h=>{const y=t[h];let v=c(y,n,f,i,s);return typeof y!="string"&&(v.includes(`
|
|
62
|
-
`)&&(v=n.spacingOuter+f+v+n.spacingOuter+o),v=`{${v}}`),`${n.spacingInner+o+p.prop.open+h+p.prop.close}=${p.value.open}${v}${p.value.close}`}).join("")}d(nd,"printProps");function ad(e,t,n,o,i,s){return e.map(c=>t.spacingOuter+n+(typeof c=="string"?Z0(c,t):s(c,t,n,o,i))).join("")}d(ad,"printChildren");function Z0(e,t){const n=t.colors.content;return n.open+X0(e)+n.close}d(Z0,"printText");function Lx(e,t){const n=t.colors.comment;return`${n.open}<!--${X0(e)}-->${n.close}`}d(Lx,"printComment");function od(e,t,n,o,i){const s=o.colors.tag;return`${s.open}<${e}${t&&s.close+t+o.spacingOuter+i+s.open}${n?`>${s.close}${n}${o.spacingOuter}${i}${s.open}</${e}`:`${t&&!o.min?"":" "}/`}>${s.close}`}d(od,"printElement");function id(e,t){const n=t.colors.tag;return`${n.open}<${e}${n.close} …${n.open} />${n.close}`}d(id,"printElementAsLeaf");var ZL=1,Nx=3,kx=8,zx=11,JL=/^(?:(?:HTML|SVG)\w*)?Element$/;function jx(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}d(jx,"testHasAttribute");function $x(e){const t=e.constructor.name,{nodeType:n,tagName:o}=e,i=typeof o=="string"&&o.includes("-")||jx(e);return n===ZL&&(JL.test(t)||i)||n===Nx&&t==="Text"||n===kx&&t==="Comment"||n===zx&&t==="DocumentFragment"}d($x,"testNode");var QL=d(e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&$x(e)},"test$3");function Px(e){return e.nodeType===Nx}d(Px,"nodeIsText");function Ix(e){return e.nodeType===kx}d(Ix,"nodeIsComment");function tf(e){return e.nodeType===zx}d(tf,"nodeIsFragment");var eN=d((e,t,n,o,i,s)=>{if(Px(e))return Z0(e.data,t);if(Ix(e))return Lx(e.data,t);const c=tf(e)?"DocumentFragment":e.tagName.toLowerCase();return++o>t.maxDepth?id(c,t):od(c,nd(tf(e)?[]:Array.from(e.attributes,f=>f.name).sort(),tf(e)?{}:[...e.attributes].reduce((f,p)=>(f[p.name]=p.value,f),{}),t,n+t.indent,o,i,s),ad(Array.prototype.slice.call(e.childNodes||e.children),t,n+t.indent,o,i,s),t,n)},"serialize$3"),tN={serialize:eN,test:QL},rN="@@__IMMUTABLE_ITERABLE__@@",nN="@@__IMMUTABLE_LIST__@@",aN="@@__IMMUTABLE_KEYED__@@",oN="@@__IMMUTABLE_MAP__@@",AS="@@__IMMUTABLE_ORDERED__@@",iN="@@__IMMUTABLE_RECORD__@@",lN="@@__IMMUTABLE_SEQ__@@",sN="@@__IMMUTABLE_SET__@@",uN="@@__IMMUTABLE_STACK__@@",tl=d(e=>`Immutable.${e}`,"getImmutableName"),ld=d(e=>`[${e}]`,"printAsLeaf"),Zs=" ",CS="…";function Hx(e,t,n,o,i,s,c){return++o>t.maxDepth?ld(tl(c)):`${tl(c)+Zs}{${bl(e.entries(),t,n,o,i,s)}}`}d(Hx,"printImmutableEntries");function Ux(e){let t=0;return{next(){if(t<e._keys.length){const n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0,value:void 0}}}}d(Ux,"getRecordEntries");function qx(e,t,n,o,i,s){const c=tl(e._name||"Record");return++o>t.maxDepth?ld(c):`${c+Zs}{${bl(Ux(e),t,n,o,i,s)}}`}d(qx,"printImmutableRecord");function Gx(e,t,n,o,i,s){const c=tl("Seq");return++o>t.maxDepth?ld(c):e[aN]?`${c+Zs}{${e._iter||e._object?bl(e.entries(),t,n,o,i,s):CS}}`:`${c+Zs}[${e._iter||e._array||e._collection||e._iterable?td(e.values(),t,n,o,i,s):CS}]`}d(Gx,"printImmutableSeq");function rf(e,t,n,o,i,s,c){return++o>t.maxDepth?ld(tl(c)):`${tl(c)+Zs}[${td(e.values(),t,n,o,i,s)}]`}d(rf,"printImmutableValues");var cN=d((e,t,n,o,i,s)=>e[oN]?Hx(e,t,n,o,i,s,e[AS]?"OrderedMap":"Map"):e[nN]?rf(e,t,n,o,i,s,"List"):e[sN]?rf(e,t,n,o,i,s,e[AS]?"OrderedSet":"Set"):e[uN]?rf(e,t,n,o,i,s,"Stack"):e[lN]?Gx(e,t,n,o,i,s):qx(e,t,n,o,i,s),"serialize$2"),fN=d(e=>e&&(e[rN]===!0||e[iN]===!0),"test$2"),dN={serialize:cN,test:fN};function J0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}d(J0,"getDefaultExportFromCjs");var yg={exports:{}},Ye={},wS;function Vx(){if(wS)return Ye;wS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),S=Symbol.for("react.client.reference");function w(x){if(typeof x=="object"&&x!==null){var O=x.$$typeof;switch(O){case e:switch(x=x.type,x){case n:case i:case o:case p:case h:case b:return x;default:switch(x=x&&x.$$typeof,x){case c:case f:case v:case y:return x;case s:return x;default:return O}}case t:return O}}}return d(w,"typeOf"),Ye.ContextConsumer=s,Ye.ContextProvider=c,Ye.Element=e,Ye.ForwardRef=f,Ye.Fragment=n,Ye.Lazy=v,Ye.Memo=y,Ye.Portal=t,Ye.Profiler=i,Ye.StrictMode=o,Ye.Suspense=p,Ye.SuspenseList=h,Ye.isContextConsumer=function(x){return w(x)===s},Ye.isContextProvider=function(x){return w(x)===c},Ye.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Ye.isForwardRef=function(x){return w(x)===f},Ye.isFragment=function(x){return w(x)===n},Ye.isLazy=function(x){return w(x)===v},Ye.isMemo=function(x){return w(x)===y},Ye.isPortal=function(x){return w(x)===t},Ye.isProfiler=function(x){return w(x)===i},Ye.isStrictMode=function(x){return w(x)===o},Ye.isSuspense=function(x){return w(x)===p},Ye.isSuspenseList=function(x){return w(x)===h},Ye.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===n||x===i||x===o||x===p||x===h||typeof x=="object"&&x!==null&&(x.$$typeof===v||x.$$typeof===y||x.$$typeof===c||x.$$typeof===s||x.$$typeof===f||x.$$typeof===S||x.getModuleId!==void 0)},Ye.typeOf=w,Ye}d(Vx,"requireReactIs_production");var xS={},DS;function pN(){return DS||(DS=1),xS}d(pN,"requireReactIs_development$1");var _S;function Yx(){return _S||(_S=1,yg.exports=Vx()),yg.exports}d(Yx,"requireReactIs$1");var Wx=Yx(),hN=J0(Wx),gN=K0({__proto__:null,default:hN},[Wx]),vg={exports:{}},Pe={},OS;function Kx(){if(OS)return Pe;OS=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),w;w=Symbol.for("react.module.reference");function x(O){if(typeof O=="object"&&O!==null){var A=O.$$typeof;switch(A){case e:switch(O=O.type,O){case n:case i:case o:case h:case y:return O;default:switch(O=O&&O.$$typeof,O){case f:case c:case p:case b:case v:case s:return O;default:return A}}case t:return A}}}return d(x,"v"),Pe.ContextConsumer=c,Pe.ContextProvider=s,Pe.Element=e,Pe.ForwardRef=p,Pe.Fragment=n,Pe.Lazy=b,Pe.Memo=v,Pe.Portal=t,Pe.Profiler=i,Pe.StrictMode=o,Pe.Suspense=h,Pe.SuspenseList=y,Pe.isAsyncMode=function(){return!1},Pe.isConcurrentMode=function(){return!1},Pe.isContextConsumer=function(O){return x(O)===c},Pe.isContextProvider=function(O){return x(O)===s},Pe.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===e},Pe.isForwardRef=function(O){return x(O)===p},Pe.isFragment=function(O){return x(O)===n},Pe.isLazy=function(O){return x(O)===b},Pe.isMemo=function(O){return x(O)===v},Pe.isPortal=function(O){return x(O)===t},Pe.isProfiler=function(O){return x(O)===i},Pe.isStrictMode=function(O){return x(O)===o},Pe.isSuspense=function(O){return x(O)===h},Pe.isSuspenseList=function(O){return x(O)===y},Pe.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===n||O===i||O===o||O===h||O===y||O===S||typeof O=="object"&&O!==null&&(O.$$typeof===b||O.$$typeof===v||O.$$typeof===s||O.$$typeof===c||O.$$typeof===p||O.$$typeof===w||O.getModuleId!==void 0)},Pe.typeOf=x,Pe}d(Kx,"requireReactIs_production_min");var TS={},RS;function mN(){return RS||(RS=1),TS}d(mN,"requireReactIs_development");var FS;function Xx(){return FS||(FS=1,vg.exports=Kx()),vg.exports}d(Xx,"requireReactIs");var Zx=Xx(),yN=J0(Zx),vN=K0({__proto__:null,default:yN},[Zx]),bN=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],Eo=Object.fromEntries(bN.map(e=>[e,t=>vN[e](t)||gN[e](t)]));function Q0(e,t=[]){if(Array.isArray(e))for(const n of e)Q0(n,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}d(Q0,"getChildren");function dm(e){const t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(Eo.isFragment(e))return"React.Fragment";if(Eo.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(Eo.isContextProvider(e))return"Context.Provider";if(Eo.isContextConsumer(e))return"Context.Consumer";if(Eo.isForwardRef(e)){if(t.displayName)return t.displayName;const n=t.render.displayName||t.render.name||"";return n===""?"ForwardRef":`ForwardRef(${n})`}if(Eo.isMemo(e)){const n=t.displayName||t.type.displayName||t.type.name||"";return n===""?"Memo":`Memo(${n})`}}return"UNDEFINED"}d(dm,"getType");function Jx(e){const{props:t}=e;return Object.keys(t).filter(n=>n!=="children"&&t[n]!==void 0).sort()}d(Jx,"getPropKeys$1");var EN=d((e,t,n,o,i,s)=>++o>t.maxDepth?id(dm(e),t):od(dm(e),nd(Jx(e),e.props,t,n+t.indent,o,i,s),ad(Q0(e.props.children),t,n+t.indent,o,i,s),t,n),"serialize$1"),SN=d(e=>e!=null&&Eo.isElement(e),"test$1"),AN={serialize:EN,test:SN},CN=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function Qx(e){const{props:t}=e;return t?Object.keys(t).filter(n=>t[n]!==void 0).sort():[]}d(Qx,"getPropKeys");var wN=d((e,t,n,o,i,s)=>++o>t.maxDepth?id(e.type,t):od(e.type,e.props?nd(Qx(e),e.props,t,n+t.indent,o,i,s):"",e.children?ad(e.children,t,n+t.indent,o,i,s):"",t,n),"serialize"),xN=d(e=>e&&e.$$typeof===CN,"test"),DN={serialize:wN,test:xN},eD=Object.prototype.toString,_N=Date.prototype.toISOString,ON=Error.prototype.toString,BS=RegExp.prototype.toString;function zs(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}d(zs,"getConstructorName");function tD(e){return typeof window<"u"&&e===window}d(tD,"isWindow");var TN=/^Symbol\((.*)\)(.*)$/,RN=/\n/g,rD=class extends Error{constructor(t,n){super(t),this.stack=n,this.name=this.constructor.name}};d(rD,"PrettyFormatPluginError");var nD=rD;function aD(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}d(aD,"isToStringedArrayType");function oD(e){return Object.is(e,-0)?"-0":String(e)}d(oD,"printNumber");function iD(e){return`${e}n`}d(iD,"printBigInt");function pm(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}d(pm,"printFunction");function hm(e){return String(e).replace(TN,"Symbol($1)")}d(hm,"printSymbol");function gm(e){return`[${ON.call(e)}]`}d(gm,"printError");function ey(e,t,n,o){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";const i=typeof e;if(i==="number")return oD(e);if(i==="bigint")return iD(e);if(i==="string")return o?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(i==="function")return pm(e,t);if(i==="symbol")return hm(e);const s=eD.call(e);return s==="[object WeakMap]"?"WeakMap {}":s==="[object WeakSet]"?"WeakSet {}":s==="[object Function]"||s==="[object GeneratorFunction]"?pm(e,t):s==="[object Symbol]"?hm(e):s==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":_N.call(e):s==="[object Error]"?gm(e):s==="[object RegExp]"?n?BS.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):BS.call(e):e instanceof Error?gm(e):null}d(ey,"printBasicValue");function ty(e,t,n,o,i,s){if(i.includes(e))return"[Circular]";i=[...i],i.push(e);const c=++o>t.maxDepth,f=t.min;if(t.callToJSON&&!c&&e.toJSON&&typeof e.toJSON=="function"&&!s)return Gn(e.toJSON(),t,n,o,i,!0);const p=eD.call(e);return p==="[object Arguments]"?c?"[Arguments]":`${f?"":"Arguments "}[${Xs(e,t,n,o,i,Gn)}]`:aD(p)?c?`[${e.constructor.name}]`:`${f||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Xs(e,t,n,o,i,Gn)}]`:p==="[object Map]"?c?"[Map]":`Map {${bl(e.entries(),t,n,o,i,Gn," => ")}}`:p==="[object Set]"?c?"[Set]":`Set {${td(e.values(),t,n,o,i,Gn)}}`:c||tD(e)?`[${zs(e)}]`:`${f||!t.printBasicPrototype&&zs(e)==="Object"?"":`${zs(e)} `}{${rd(e,t,n,o,i,Gn)}}`}d(ty,"printComplexValue");var FN={test:d(e=>e&&e instanceof Error,"test"),serialize(e,t,n,o,i,s){if(i.includes(e))return"[Circular]";i=[...i,e];const c=++o>t.maxDepth,{message:f,cause:p,...h}=e,y={message:f,...typeof p<"u"?{cause:p}:{},...e instanceof AggregateError?{errors:e.errors}:{},...h},v=e.name!=="Error"?e.name:zs(e);return c?`[${v}]`:`${v} {${bl(Object.entries(y).values(),t,n,o,i,s)}}`}};function lD(e){return e.serialize!=null}d(lD,"isNewPlugin");function ry(e,t,n,o,i,s){let c;try{c=lD(e)?e.serialize(t,n,o,i,s,Gn):e.print(t,f=>Gn(f,n,o,i,s),f=>{const p=o+n.indent;return p+f.replaceAll(RN,`
|
|
63
|
-
${p}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(f){throw new nD(f.message,f.stack)}if(typeof c!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof c}".`);return c}d(ry,"printPlugin");function ny(e,t){for(const n of e)try{if(n.test(t))return n}catch(o){throw new nD(o.message,o.stack)}return null}d(ny,"findPlugin");function Gn(e,t,n,o,i,s){const c=ny(t.plugins,e);if(c!==null)return ry(c,e,t,n,o,i);const f=ey(e,t.printFunctionName,t.escapeRegex,t.escapeString);return f!==null?f:ty(e,t,n,o,i,s)}d(Gn,"printer");var ay={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},sD=Object.keys(ay),Ur={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:ay};function uD(e){for(const t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Ur,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}d(uD,"validateOptions");function cD(){return sD.reduce((e,t)=>{const n=ay[t],o=n&&Yn[n];if(o&&typeof o.close=="string"&&typeof o.open=="string")e[t]=o;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e},Object.create(null))}d(cD,"getColorsHighlight");function fD(){return sD.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}d(fD,"getColorsEmpty");function oy(e){return e?.printFunctionName??Ur.printFunctionName}d(oy,"getPrintFunctionName");function iy(e){return e?.escapeRegex??Ur.escapeRegex}d(iy,"getEscapeRegex");function ly(e){return e?.escapeString??Ur.escapeString}d(ly,"getEscapeString");function mm(e){return{callToJSON:e?.callToJSON??Ur.callToJSON,colors:e?.highlight?cD():fD(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:Ur.compareKeys,escapeRegex:iy(e),escapeString:ly(e),indent:e?.min?"":dD(e?.indent??Ur.indent),maxDepth:e?.maxDepth??Ur.maxDepth,maxWidth:e?.maxWidth??Ur.maxWidth,min:e?.min??Ur.min,plugins:e?.plugins??Ur.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:oy(e),spacingInner:e?.min?" ":`
|
|
64
|
-
`,spacingOuter:e?.min?"":`
|
|
65
|
-
`}}d(mm,"getConfig");function dD(e){return Array.from({length:e+1}).join(" ")}d(dD,"createIndent");function Kr(e,t){if(t&&(uD(t),t.plugins)){const o=ny(t.plugins,e);if(o!==null)return ry(o,e,mm(t),"",0,[])}const n=ey(e,oy(t),iy(t),ly(t));return n!==null?n:ty(e,mm(t),"",0,[])}d(Kr,"format");var sy={AsymmetricMatcher:GL,DOMCollection:XL,DOMElement:tN,Immutable:dN,ReactElement:AN,ReactTestComponent:DN,Error:FN},MS={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"]},BN={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},rl="…";function pD(e,t){const n=MS[BN[t]]||MS[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}d(pD,"colorise");function hD({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:o=!0,showProxy:i=!1,maxArrayLength:s=1/0,breakLength:c=1/0,seen:f=[],truncate:p=1/0,stylize:h=String}={},y){const v={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!o,showProxy:!!i,maxArrayLength:Number(s),breakLength:Number(c),truncate:Number(p),seen:f,inspect:y,stylize:h};return v.colors&&(v.stylize=pD),v}d(hD,"normaliseOptions");function gD(e){return e>="\uD800"&&e<="\uDBFF"}d(gD,"isHighSurrogate");function Jn(e,t,n=rl){e=String(e);const o=n.length,i=e.length;if(o>t&&i>o)return n;if(i>t&&i>o){let s=t-o;return s>0&&gD(e[s-1])&&(s=s-1),`${e.slice(0,s)}${n}`}return e}d(Jn,"truncate");function Lr(e,t,n,o=", "){n=n||t.inspect;const i=e.length;if(i===0)return"";const s=t.truncate;let c="",f="",p="";for(let h=0;h<i;h+=1){const y=h+1===e.length,v=h+2===e.length;p=`${rl}(${e.length-h})`;const b=e[h];t.truncate=s-c.length-(y?0:o.length);const S=f||n(b,t)+(y?"":o),w=c.length+S.length,x=w+p.length;if(y&&w>s&&c.length+p.length<=s||!y&&!v&&x>s||(f=y?"":n(e[h+1],t)+(v?"":o),!y&&v&&x>s&&w+f.length>s))break;if(c+=S,!y&&!v&&w+f.length>=s){p=`${rl}(${e.length-h-1})`;break}p=""}return`${c}${p}`}d(Lr,"inspectList");function mD(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}d(mD,"quoteComplexKey");function nl([e,t],n){return n.truncate-=2,typeof e=="string"?e=mD(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}d(nl,"inspectProperty");function yD(e,t){const n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return"[]";t.truncate-=4;const o=Lr(e,t);t.truncate-=o.length;let i="";return n.length&&(i=Lr(n.map(s=>[s,e[s]]),t,nl)),`[ ${o}${i?`, ${i}`:""} ]`}d(yD,"inspectArray");var MN=d(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function fn(e,t){const n=MN(e);t.truncate-=n.length+4;const o=Object.keys(e).slice(e.length);if(!e.length&&!o.length)return`${n}[]`;let i="";for(let c=0;c<e.length;c++){const f=`${t.stylize(Jn(e[c],t.truncate),"number")}${c===e.length-1?"":", "}`;if(t.truncate-=f.length,e[c]!==e.length&&t.truncate<=3){i+=`${rl}(${e.length-e[c]+1})`;break}i+=f}let s="";return o.length&&(s=Lr(o.map(c=>[c,e[c]]),t,nl)),`${n}[ ${i}${s?`, ${s}`:""} ]`}d(fn,"inspectTypedArray");function vD(e,t){const n=e.toJSON();if(n===null)return"Invalid Date";const o=n.split("T"),i=o[0];return t.stylize(`${i}T${Jn(o[1],t.truncate-i.length-1)}`,"date")}d(vD,"inspectDate");function ym(e,t){const n=e[Symbol.toStringTag]||"Function",o=e.name;return o?t.stylize(`[${n} ${Jn(o,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}d(ym,"inspectFunction");function bD([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}d(bD,"inspectMapEntry");function ED(e){const t=[];return e.forEach((n,o)=>{t.push([o,n])}),t}d(ED,"mapToEntries");function SD(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Lr(ED(e),t,bD)} }`)}d(SD,"inspectMap");var LN=Number.isNaN||(e=>e!==e);function vm(e,t){return LN(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(Jn(String(e),t.truncate),"number")}d(vm,"inspectNumber");function bm(e,t){let n=Jn(e.toString(),t.truncate-1);return n!==rl&&(n+="n"),t.stylize(n,"bigint")}d(bm,"inspectBigInt");function AD(e,t){const n=e.toString().split("/")[2],o=t.truncate-(2+n.length),i=e.source;return t.stylize(`/${Jn(i,o)}/${n}`,"regexp")}d(AD,"inspectRegExp");function CD(e){const t=[];return e.forEach(n=>{t.push(n)}),t}d(CD,"arrayFromSet");function wD(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Lr(CD(e),t)} }`)}d(wD,"inspectSet");var LS=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),NN={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},kN=16;function xD(e){return NN[e]||`\\u${`0000${e.charCodeAt(0).toString(kN)}`.slice(-4)}`}d(xD,"escape");function Em(e,t){return LS.test(e)&&(e=e.replace(LS,xD)),t.stylize(`'${Jn(e,t.truncate-2)}'`,"string")}d(Em,"inspectString");function Sm(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}d(Sm,"inspectSymbol");var zN=d(()=>"Promise{…}","getPromiseValue"),jN=zN;function js(e,t){const n=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&o.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const i=Lr(n.map(f=>[f,e[f]]),t,nl),s=Lr(o.map(f=>[f,e[f]]),t,nl);t.seen.pop();let c="";return i&&s&&(c=", "),`{ ${i}${c}${s} }`}d(js,"inspectObject");var bg=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function DD(e,t){let n="";return bg&&bg in e&&(n=e[bg]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${js(e,t)}`}d(DD,"inspectClass");function _D(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Lr(e,t)} ]`)}d(_D,"inspectArguments");var $N=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function OD(e,t){const n=Object.getOwnPropertyNames(e).filter(c=>$N.indexOf(c)===-1),o=e.name;t.truncate-=o.length;let i="";if(typeof e.message=="string"?i=Jn(e.message,t.truncate):n.unshift("message"),i=i?`: ${i}`:"",t.truncate-=i.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const s=Lr(n.map(c=>[c,e[c]]),t,nl);return`${o}${i}${s?` { ${s} }`:""}`}d(OD,"inspectObject");function TD([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}d(TD,"inspectAttribute");function Cf(e,t){return Lr(e,t,RD,`
|
|
66
|
-
`)}d(Cf,"inspectNodeCollection");function RD(e,t){switch(e.nodeType){case 1:return uy(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}d(RD,"inspectNode");function uy(e,t){const n=e.getAttributeNames(),o=e.tagName.toLowerCase(),i=t.stylize(`<${o}`,"special"),s=t.stylize(">","special"),c=t.stylize(`</${o}>`,"special");t.truncate-=o.length*2+5;let f="";n.length>0&&(f+=" ",f+=Lr(n.map(y=>[y,e.getAttribute(y)]),t,TD," ")),t.truncate-=f.length;const p=t.truncate;let h=Cf(e.children,t);return h&&h.length>p&&(h=`${rl}(${e.children.length})`),`${i}${f}${s}${h}${c}`}d(uy,"inspectHTML");var PN=typeof Symbol=="function"&&typeof Symbol.for=="function",Eg=PN?Symbol.for("chai/inspect"):"@@chai/inspect",Sg=Symbol.for("nodejs.util.inspect.custom"),NS=new WeakMap,kS={},zS={undefined:d((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:d((e,t)=>t.stylize("null","null"),"null"),boolean:d((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:d((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:vm,Number:vm,bigint:bm,BigInt:bm,string:Em,String:Em,function:ym,Function:ym,symbol:Sm,Symbol:Sm,Array:yD,Date:vD,Map:SD,Set:wD,RegExp:AD,Promise:jN,WeakSet:d((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:d((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:_D,Int8Array:fn,Uint8Array:fn,Uint8ClampedArray:fn,Int16Array:fn,Uint16Array:fn,Int32Array:fn,Uint32Array:fn,Float32Array:fn,Float64Array:fn,Generator:d(()=>"","Generator"),DataView:d(()=>"","DataView"),ArrayBuffer:d(()=>"","ArrayBuffer"),Error:OD,HTMLCollection:Cf,NodeList:Cf},IN=d((e,t,n,o)=>Eg in e&&typeof e[Eg]=="function"?e[Eg](t):Sg in e&&typeof e[Sg]=="function"?e[Sg](t.depth,t,o):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&NS.has(e.constructor)?NS.get(e.constructor)(e,t):kS[n]?kS[n](e,t):"","inspectCustom"),HN=Object.prototype.toString;function $s(e,t={}){const n=hD(t,$s),{customInspect:o}=n;let i=e===null?"null":typeof e;if(i==="object"&&(i=HN.call(e).slice(8,-1)),i in zS)return zS[i](e,n);if(o&&e){const c=IN(e,n,i,$s);if(c)return typeof c=="string"?c:$s(c,n)}const s=e?Object.getPrototypeOf(e):!1;return s===Object.prototype||s===null?js(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?uy(e,n):"constructor"in e?e.constructor!==Object?DD(e,n):js(e,n):e===Object(e)?js(e,n):n.stylize(String(e),i)}d($s,"inspect");var{AsymmetricMatcher:UN,DOMCollection:qN,DOMElement:GN,Immutable:VN,ReactElement:YN,ReactTestComponent:WN}=sy,jS=[WN,YN,GN,qN,VN,UN];function al(e,t=10,{maxLength:n,...o}={}){const i=n??1e4;let s;try{s=Kr(e,{maxDepth:t,escapeString:!1,plugins:jS,...o})}catch{s=Kr(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:jS,...o})}return s.length>=i&&t>1?al(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:n,...o}):s}d(al,"stringify");var KN=/%[sdjifoOc%]/g;function FD(...e){if(typeof e[0]!="string"){const s=[];for(let c=0;c<e.length;c++)s.push($i(e[c],{depth:0,colors:!1}));return s.join(" ")}const t=e.length;let n=1;const o=e[0];let i=String(o).replace(KN,s=>{if(s==="%%")return"%";if(n>=t)return s;switch(s){case"%s":{const c=e[n++];return typeof c=="bigint"?`${c.toString()}n`:typeof c=="number"&&c===0&&1/c<0?"-0":typeof c=="object"&&c!==null?typeof c.toString=="function"&&c.toString!==Object.prototype.toString?c.toString():$i(c,{depth:0,colors:!1}):String(c)}case"%d":{const c=e[n++];return typeof c=="bigint"?`${c.toString()}n`:Number(c).toString()}case"%i":{const c=e[n++];return typeof c=="bigint"?`${c.toString()}n`:Number.parseInt(String(c)).toString()}case"%f":return Number.parseFloat(String(e[n++])).toString();case"%o":return $i(e[n++],{showHidden:!0,showProxy:!0});case"%O":return $i(e[n++]);case"%c":return n++,"";case"%j":try{return JSON.stringify(e[n++])}catch(c){const f=c.message;if(f.includes("circular structure")||f.includes("cyclic structures")||f.includes("cyclic object"))return"[Circular]";throw c}default:return s}});for(let s=e[n];n<t;s=e[++n])s===null||typeof s!="object"?i+=` ${s}`:i+=` ${$i(s)}`;return i}d(FD,"format");function $i(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),$s(e,t)}d($i,"inspect");function BD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}d(BD,"getDefaultExportFromCjs");function XN(e,t,n){const o=typeof e;if(!n.includes(o))throw new TypeError(`${t} value must be ${n.join(" or ")}, received "${o}"`)}d(XN,"assertTypes");function ZN(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}d(ZN,"isObject");function MD(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}d(MD,"isFinalObj");function wf(e){return Object.prototype.toString.apply(e).slice(8,-1)}d(wf,"getType");function LD(e,t){const n=typeof t=="function"?t:o=>t.add(o);Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n)}d(LD,"collectOwnProperties");function cy(e){const t=new Set;return MD(e)?[]:(LD(e,t),Array.from(t))}d(cy,"getOwnProperties");var ND={forceWritable:!1};function Am(e,t=ND){return xf(e,new WeakMap,t)}d(Am,"deepClone");function xf(e,t,n=ND){let o,i;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(i=Array.from({length:o=e.length}),t.set(e,i);o--;)i[o]=xf(e[o],t,n);return i}if(Object.prototype.toString.call(e)==="[object Object]"){i=Object.create(Object.getPrototypeOf(e)),t.set(e,i);const s=cy(e);for(const c of s){const f=Object.getOwnPropertyDescriptor(e,c);if(!f)continue;const p=xf(e[c],t,n);n.forceWritable?Object.defineProperty(i,c,{enumerable:f.enumerable,configurable:!0,writable:!0,value:p}):"get"in f?Object.defineProperty(i,c,{...f,get(){return p}}):Object.defineProperty(i,c,{...f,value:p})}return i}return e}d(xf,"clone");function JN(){}d(JN,"noop");var Pt=-1,Lt=1,ft=0,kD=class{0;1;constructor(t,n){this[0]=t,this[1]=n}};d(kD,"Diff");var at=kD;function zD(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let n=0,o=Math.min(e.length,t.length),i=o,s=0;for(;n<i;)e.substring(s,i)===t.substring(s,i)?(n=i,s=n):o=i,i=Math.floor((o-n)/2+n);return i}d(zD,"diff_commonPrefix");function fy(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let n=0,o=Math.min(e.length,t.length),i=o,s=0;for(;n<i;)e.substring(e.length-i,e.length-s)===t.substring(t.length-i,t.length-s)?(n=i,s=n):o=i,i=Math.floor((o-n)/2+n);return i}d(fy,"diff_commonSuffix");function Cm(e,t){const n=e.length,o=t.length;if(n===0||o===0)return 0;n>o?e=e.substring(n-o):n<o&&(t=t.substring(0,n));const i=Math.min(n,o);if(e===t)return i;let s=0,c=1;for(;;){const f=e.substring(i-c),p=t.indexOf(f);if(p===-1)return s;c+=p,(p===0||e.substring(i-c)===t.substring(0,c))&&(s=c,c++)}}d(Cm,"diff_commonOverlap_");function jD(e){let t=!1;const n=[];let o=0,i=null,s=0,c=0,f=0,p=0,h=0;for(;s<e.length;)e[s][0]===ft?(n[o++]=s,c=p,f=h,p=0,h=0,i=e[s][1]):(e[s][0]===Lt?p+=e[s][1].length:h+=e[s][1].length,i&&i.length<=Math.max(c,f)&&i.length<=Math.max(p,h)&&(e.splice(n[o-1],0,new at(Pt,i)),e[n[o-1]+1][0]=Lt,o--,o--,s=o>0?n[o-1]:-1,c=0,f=0,p=0,h=0,i=null,t=!0)),s++;for(t&&dy(e),$D(e),s=1;s<e.length;){if(e[s-1][0]===Pt&&e[s][0]===Lt){const y=e[s-1][1],v=e[s][1],b=Cm(y,v),S=Cm(v,y);b>=S?(b>=y.length/2||b>=v.length/2)&&(e.splice(s,0,new at(ft,v.substring(0,b))),e[s-1][1]=y.substring(0,y.length-b),e[s+1][1]=v.substring(b),s++):(S>=y.length/2||S>=v.length/2)&&(e.splice(s,0,new at(ft,y.substring(0,S))),e[s-1][0]=Lt,e[s-1][1]=v.substring(0,v.length-S),e[s+1][0]=Pt,e[s+1][1]=y.substring(S),s++),s++}s++}}d(jD,"diff_cleanupSemantic");var $S=/[^a-z0-9]/i,PS=/\s/,IS=/[\r\n]/,QN=/\n\r?\n$/,e7=/^\r?\n\r?\n/;function $D(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===ft&&e[t+1][0]===ft){let n=e[t-1][1],o=e[t][1],i=e[t+1][1];const s=fy(n,o);if(s){const y=o.substring(o.length-s);n=n.substring(0,n.length-s),o=y+o.substring(0,o.length-s),i=y+i}let c=n,f=o,p=i,h=Os(n,o)+Os(o,i);for(;o.charAt(0)===i.charAt(0);){n+=o.charAt(0),o=o.substring(1)+i.charAt(0),i=i.substring(1);const y=Os(n,o)+Os(o,i);y>=h&&(h=y,c=n,f=o,p=i)}e[t-1][1]!==c&&(c?e[t-1][1]=c:(e.splice(t-1,1),t--),e[t][1]=f,p?e[t+1][1]=p:(e.splice(t+1,1),t--))}t++}}d($D,"diff_cleanupSemanticLossless");function dy(e){e.push(new at(ft,""));let t=0,n=0,o=0,i="",s="",c;for(;t<e.length;)switch(e[t][0]){case Lt:o++,s+=e[t][1],t++;break;case Pt:n++,i+=e[t][1],t++;break;case ft:n+o>1?(n!==0&&o!==0&&(c=zD(s,i),c!==0&&(t-n-o>0&&e[t-n-o-1][0]===ft?e[t-n-o-1][1]+=s.substring(0,c):(e.splice(0,0,new at(ft,s.substring(0,c))),t++),s=s.substring(c),i=i.substring(c)),c=fy(s,i),c!==0&&(e[t][1]=s.substring(s.length-c)+e[t][1],s=s.substring(0,s.length-c),i=i.substring(0,i.length-c))),t-=n+o,e.splice(t,n+o),i.length&&(e.splice(t,0,new at(Pt,i)),t++),s.length&&(e.splice(t,0,new at(Lt,s)),t++),t++):t!==0&&e[t-1][0]===ft?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,o=0,n=0,i="",s="";break}e[e.length-1][1]===""&&e.pop();let f=!1;for(t=1;t<e.length-1;)e[t-1][0]===ft&&e[t+1][0]===ft&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),f=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),f=!0)),t++;f&&dy(e)}d(dy,"diff_cleanupMerge");function Os(e,t){if(!e||!t)return 6;const n=e.charAt(e.length-1),o=t.charAt(0),i=n.match($S),s=o.match($S),c=i&&n.match(PS),f=s&&o.match(PS),p=c&&n.match(IS),h=f&&o.match(IS),y=p&&e.match(QN),v=h&&t.match(e7);return y||v?5:p||h?4:i&&!c&&f?3:c||f?2:i||s?1:0}d(Os,"diff_cleanupSemanticScore_");var PD="Compared values have no visual difference.",t7="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Pc={},HS;function ID(){if(HS)return Pc;HS=1,Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.default=b;const e="diff-sequences",t=0,n=d((S,w,x,O,A)=>{let R=0;for(;S<w&&x<O&&A(S,x);)S+=1,x+=1,R+=1;return R},"countCommonItemsF"),o=d((S,w,x,O,A)=>{let R=0;for(;S<=w&&x<=O&&A(w,O);)w-=1,O-=1,R+=1;return R},"countCommonItemsR"),i=d((S,w,x,O,A,R,T)=>{let F=0,N=-S,L=R[F],B=L;R[F]+=n(L+1,w,O+L-N+1,x,A);const $=S<T?S:T;for(F+=1,N+=2;F<=$;F+=1,N+=2){if(F!==S&&B<R[F])L=R[F];else if(L=B+1,w<=L)return F-1;B=R[F],R[F]=L+n(L+1,w,O+L-N+1,x,A)}return T},"extendPathsF"),s=d((S,w,x,O,A,R,T)=>{let F=0,N=S,L=R[F],B=L;R[F]-=o(w,L-1,x,O+L-N-1,A);const $=S<T?S:T;for(F+=1,N-=2;F<=$;F+=1,N-=2){if(F!==S&&R[F]<B)L=R[F];else if(L=B-1,L<w)return F-1;B=R[F],R[F]=L-o(w,L-1,x,O+L-N-1,A)}return T},"extendPathsR"),c=d((S,w,x,O,A,R,T,F,N,L,B)=>{const $=O-w,P=x-w,U=A-O-P,Q=-U-(S-1),X=-U+(S-1);let z=t;const q=S<F?S:F;for(let k=0,Y=-S;k<=q;k+=1,Y+=2){const ae=k===0||k!==S&&z<T[k],le=ae?T[k]:z,ce=ae?le:le+1,j=$+ce-Y,W=n(ce+1,x,j+1,A,R),ne=ce+W;if(z=T[k],T[k]=ne,Q<=Y&&Y<=X){const ue=(S-1-(Y+U))/2;if(ue<=L&&N[ue]-1<=ne){const se=$+le-(ae?Y+1:Y-1),fe=o(w,le,O,se,R),pe=le-fe,Fe=se-fe,De=pe+1,bt=Fe+1;B.nChangePreceding=S-1,S-1===De+bt-w-O?(B.aEndPreceding=w,B.bEndPreceding=O):(B.aEndPreceding=De,B.bEndPreceding=bt),B.nCommonPreceding=fe,fe!==0&&(B.aCommonPreceding=De,B.bCommonPreceding=bt),B.nCommonFollowing=W,W!==0&&(B.aCommonFollowing=ce+1,B.bCommonFollowing=j+1);const Ke=ne+1,Re=j+W+1;return B.nChangeFollowing=S-1,S-1===x+A-Ke-Re?(B.aStartFollowing=x,B.bStartFollowing=A):(B.aStartFollowing=Ke,B.bStartFollowing=Re),!0}}}return!1},"extendOverlappablePathsF"),f=d((S,w,x,O,A,R,T,F,N,L,B)=>{const $=A-x,P=x-w,U=A-O-P,Q=U-S,X=U+S;let z=t;const q=S<L?S:L;for(let k=0,Y=S;k<=q;k+=1,Y-=2){const ae=k===0||k!==S&&N[k]<z,le=ae?N[k]:z,ce=ae?le:le-1,j=$+ce-Y,W=o(w,ce-1,O,j-1,R),ne=ce-W;if(z=N[k],N[k]=ne,Q<=Y&&Y<=X){const ue=(S+(Y-U))/2;if(ue<=F&&ne-1<=T[ue]){const se=j-W;if(B.nChangePreceding=S,S===ne+se-w-O?(B.aEndPreceding=w,B.bEndPreceding=O):(B.aEndPreceding=ne,B.bEndPreceding=se),B.nCommonPreceding=W,W!==0&&(B.aCommonPreceding=ne,B.bCommonPreceding=se),B.nChangeFollowing=S-1,S===1)B.nCommonFollowing=0,B.aStartFollowing=x,B.bStartFollowing=A;else{const fe=$+le-(ae?Y-1:Y+1),pe=n(le,x,fe,A,R);B.nCommonFollowing=pe,pe!==0&&(B.aCommonFollowing=le,B.bCommonFollowing=fe);const Fe=le+pe,De=fe+pe;S-1===x+A-Fe-De?(B.aStartFollowing=x,B.bStartFollowing=A):(B.aStartFollowing=Fe,B.bStartFollowing=De)}return!0}}}return!1},"extendOverlappablePathsR"),p=d((S,w,x,O,A,R,T,F,N)=>{const L=O-w,B=A-x,$=x-w,P=A-O,I=P-$;let U=$,Q=$;if(T[0]=w-1,F[0]=x,I%2===0){const X=(S||I)/2,z=($+P)/2;for(let q=1;q<=z;q+=1)if(U=i(q,x,A,L,R,T,U),q<X)Q=s(q,w,O,B,R,F,Q);else if(f(q,w,x,O,A,R,T,U,F,Q,N))return}else{const X=((S||I)+1)/2,z=($+P+1)/2;let q=1;for(U=i(q,x,A,L,R,T,U),q+=1;q<=z;q+=1)if(Q=s(q-1,w,O,B,R,F,Q),q<X)U=i(q,x,A,L,R,T,U);else if(c(q,w,x,O,A,R,T,U,F,Q,N))return}throw new Error(`${e}: no overlap aStart=${w} aEnd=${x} bStart=${O} bEnd=${A}`)},"divide"),h=d((S,w,x,O,A,R,T,F,N,L)=>{if(A-O<x-w){if(R=!R,R&&T.length===1){const{foundSubsequence:ne,isCommon:ue}=T[0];T[1]={foundSubsequence:d((se,fe,pe)=>{ne(se,pe,fe)},"foundSubsequence"),isCommon:d((se,fe)=>ue(fe,se),"isCommon")}}const j=w,W=x;w=O,x=A,O=j,A=W}const{foundSubsequence:B,isCommon:$}=T[R?1:0];p(S,w,x,O,A,$,F,N,L);const{nChangePreceding:P,aEndPreceding:I,bEndPreceding:U,nCommonPreceding:Q,aCommonPreceding:X,bCommonPreceding:z,nCommonFollowing:q,aCommonFollowing:k,bCommonFollowing:Y,nChangeFollowing:ae,aStartFollowing:le,bStartFollowing:ce}=L;w<I&&O<U&&h(P,w,I,O,U,R,T,F,N,L),Q!==0&&B(Q,X,z),q!==0&&B(q,k,Y),le<x&&ce<A&&h(ae,le,x,ce,A,R,T,F,N,L)},"findSubsequences"),y=d((S,w)=>{if(typeof w!="number")throw new TypeError(`${e}: ${S} typeof ${typeof w} is not a number`);if(!Number.isSafeInteger(w))throw new RangeError(`${e}: ${S} value ${w} is not a safe integer`);if(w<0)throw new RangeError(`${e}: ${S} value ${w} is a negative integer`)},"validateLength"),v=d((S,w)=>{const x=typeof w;if(x!=="function")throw new TypeError(`${e}: ${S} typeof ${x} is not a function`)},"validateCallback");function b(S,w,x,O){y("aLength",S),y("bLength",w),v("isCommon",x),v("foundSubsequence",O);const A=n(0,S,0,w,x);if(A!==0&&O(A,0,0),S!==A||w!==A){const R=A,T=A,F=o(R,S-1,T,w-1,x),N=S-F,L=w-F,B=A+F;S!==B&&w!==B&&h(0,R,N,T,L,!1,[{foundSubsequence:O,isCommon:x}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),F!==0&&O(F,N,L)}}return d(b,"diffSequence"),Pc}d(ID,"requireBuild");var r7=ID(),HD=BD(r7);function UD(e,t){return e.replace(/\s+$/,n=>t(n))}d(UD,"formatTrailingSpaces");function sd(e,t,n,o,i,s){return e.length!==0?n(`${o} ${UD(e,i)}`):o!==" "?n(o):t&&s.length!==0?n(`${o} ${s}`):""}d(sd,"printDiffLine");function py(e,t,{aColor:n,aIndicator:o,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:s}){return sd(e,t,n,o,i,s)}d(py,"printDeleteLine");function hy(e,t,{bColor:n,bIndicator:o,changeLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:s}){return sd(e,t,n,o,i,s)}d(hy,"printInsertLine");function gy(e,t,{commonColor:n,commonIndicator:o,commonLineTrailingSpaceColor:i,emptyFirstOrLastLinePlaceholder:s}){return sd(e,t,n,o,i,s)}d(gy,"printCommonLine");function wm(e,t,n,o,{patchColor:i}){return i(`@@ -${e+1},${t-e} +${n+1},${o-n} @@`)}d(wm,"createPatchMark");function qD(e,t){const n=e.length,o=t.contextLines,i=o+o;let s=n,c=!1,f=0,p=0;for(;p!==n;){const F=p;for(;p!==n&&e[p][0]===ft;)p+=1;if(F!==p)if(F===0)p>o&&(s-=p-o,c=!0);else if(p===n){const N=p-F;N>o&&(s-=N-o,c=!0)}else{const N=p-F;N>i&&(s-=N-i,f+=1)}for(;p!==n&&e[p][0]!==ft;)p+=1}const h=f!==0||c;f!==0?s+=f+1:c&&(s+=1);const y=s-1,v=[];let b=0;h&&v.push("");let S=0,w=0,x=0,O=0;const A=d(F=>{const N=v.length;v.push(gy(F,N===0||N===y,t)),x+=1,O+=1},"pushCommonLine"),R=d(F=>{const N=v.length;v.push(py(F,N===0||N===y,t)),x+=1},"pushDeleteLine"),T=d(F=>{const N=v.length;v.push(hy(F,N===0||N===y,t)),O+=1},"pushInsertLine");for(p=0;p!==n;){let F=p;for(;p!==n&&e[p][0]===ft;)p+=1;if(F!==p)if(F===0){p>o&&(F=p-o,S=F,w=F,x=S,O=w);for(let N=F;N!==p;N+=1)A(e[N][1])}else if(p===n){const N=p-F>o?F+o:p;for(let L=F;L!==N;L+=1)A(e[L][1])}else{const N=p-F;if(N>i){const L=F+o;for(let $=F;$!==L;$+=1)A(e[$][1]);v[b]=wm(S,x,w,O,t),b=v.length,v.push("");const B=N-i;S=x+B,w=O+B,x=S,O=w;for(let $=p-o;$!==p;$+=1)A(e[$][1])}else for(let L=F;L!==p;L+=1)A(e[L][1])}for(;p!==n&&e[p][0]===Pt;)R(e[p][1]),p+=1;for(;p!==n&&e[p][0]===Lt;)T(e[p][1]),p+=1}return h&&(v[b]=wm(S,x,w,O,t)),v.join(`
|
|
67
|
-
`)}d(qD,"joinAlignedDiffsNoExpand");function GD(e,t){return e.map((n,o,i)=>{const s=n[1],c=o===0||o===i.length-1;switch(n[0]){case Pt:return py(s,c,t);case Lt:return hy(s,c,t);default:return gy(s,c,t)}}).join(`
|
|
68
|
-
`)}d(GD,"joinAlignedDiffsExpand");var Ag=d(e=>e,"noColor"),VD=5,n7=0;function YD(){return{aAnnotation:"Expected",aColor:Yn.green,aIndicator:"-",bAnnotation:"Received",bColor:Yn.red,bIndicator:"+",changeColor:Yn.inverse,changeLineTrailingSpaceColor:Ag,commonColor:Yn.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Ag,compareKeys:void 0,contextLines:VD,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:Yn.yellow,printBasicPrototype:!1,truncateThreshold:n7,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Ag}}d(YD,"getDefaultOptions");function WD(e){return e&&typeof e=="function"?e:void 0}d(WD,"getCompareKeys");function KD(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:VD}d(KD,"getContextLines");function Ya(e={}){return{...YD(),...e,compareKeys:WD(e.compareKeys),contextLines:KD(e.contextLines)}}d(Ya,"normalizeDiffOptions");function Co(e){return e.length===1&&e[0].length===0}d(Co,"isEmptyString");function XD(e){let t=0,n=0;return e.forEach(o=>{switch(o[0]){case Pt:t+=1;break;case Lt:n+=1;break}}),{a:t,b:n}}d(XD,"countChanges");function ZD({aAnnotation:e,aColor:t,aIndicator:n,bAnnotation:o,bColor:i,bIndicator:s,includeChangeCounts:c,omitAnnotationLines:f},p){if(f)return"";let h="",y="";if(c){const S=String(p.a),w=String(p.b),x=o.length-e.length,O=" ".repeat(Math.max(0,x)),A=" ".repeat(Math.max(0,-x)),R=w.length-S.length,T=" ".repeat(Math.max(0,R)),F=" ".repeat(Math.max(0,-R));h=`${O} ${n} ${T}${S}`,y=`${A} ${s} ${F}${w}`}const v=`${n} ${e}${h}`,b=`${s} ${o}${y}`;return`${t(v)}
|
|
69
|
-
${i(b)}
|
|
70
|
-
|
|
71
|
-
`}d(ZD,"printAnnotation");function ud(e,t,n){return ZD(n,XD(e))+(n.expand?GD(e,n):qD(e,n))+(t?n.truncateAnnotationColor(`
|
|
72
|
-
${n.truncateAnnotation}`):"")}d(ud,"printDiffLines");function su(e,t,n){const o=Ya(n),[i,s]=my(Co(e)?[]:e,Co(t)?[]:t,o);return ud(i,s,o)}d(su,"diffLinesUnified");function JD(e,t,n,o,i){if(Co(e)&&Co(n)&&(e=[],n=[]),Co(t)&&Co(o)&&(t=[],o=[]),e.length!==n.length||t.length!==o.length)return su(e,t,i);const[s,c]=my(n,o,i);let f=0,p=0;return s.forEach(h=>{switch(h[0]){case Pt:h[1]=e[f],f+=1;break;case Lt:h[1]=t[p],p+=1;break;default:h[1]=t[p],f+=1,p+=1}}),ud(s,c,Ya(i))}d(JD,"diffLinesUnified2");function my(e,t,n){const o=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0),s=o?Math.min(e.length,i):e.length,c=o?Math.min(t.length,i):t.length,f=s!==e.length||c!==t.length,p=d((S,w)=>e[S]===t[w],"isCommon"),h=[];let y=0,v=0;for(HD(s,c,p,d((S,w,x)=>{for(;y!==w;y+=1)h.push(new at(Pt,e[y]));for(;v!==x;v+=1)h.push(new at(Lt,t[v]));for(;S!==0;S-=1,y+=1,v+=1)h.push(new at(ft,t[v]))},"foundSubsequence"));y!==s;y+=1)h.push(new at(Pt,e[y]));for(;v!==c;v+=1)h.push(new at(Lt,t[v]));return[h,f]}d(my,"diffLinesRaw");function xm(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}d(xm,"getType");function Dm(e){return e.includes(`\r
|
|
73
|
-
`)?`\r
|
|
74
|
-
`:`
|
|
75
|
-
`}d(Dm,"getNewLineSymbol");function QD(e,t,n){const o=n?.truncateThreshold??!1,i=Math.max(Math.floor(n?.truncateThreshold??0),0);let s=e.length,c=t.length;if(o){const S=e.includes(`
|
|
76
|
-
`),w=t.includes(`
|
|
77
|
-
`),x=Dm(e),O=Dm(t),A=S?`${e.split(x,i).join(x)}
|
|
78
|
-
`:e,R=w?`${t.split(O,i).join(O)}
|
|
79
|
-
`:t;s=A.length,c=R.length}const f=s!==e.length||c!==t.length,p=d((S,w)=>e[S]===t[w],"isCommon");let h=0,y=0;const v=[];return HD(s,c,p,d((S,w,x)=>{h!==w&&v.push(new at(Pt,e.slice(h,w))),y!==x&&v.push(new at(Lt,t.slice(y,x))),h=w+S,y=x+S,v.push(new at(ft,t.slice(x,y)))},"foundSubsequence")),h!==s&&v.push(new at(Pt,e.slice(h))),y!==c&&v.push(new at(Lt,t.slice(y))),[v,f]}d(QD,"diffStrings");function e_(e,t,n){return t.reduce((o,i)=>o+(i[0]===ft?i[1]:i[0]===e&&i[1].length!==0?n(i[1]):""),"")}d(e_,"concatenateRelevantDiffs");var t_=class{op;line;lines;changeColor;constructor(t,n){this.op=t,this.line=[],this.lines=[],this.changeColor=n}pushSubstring(t){this.pushDiff(new at(this.op,t))}pushLine(){this.lines.push(this.line.length!==1?new at(this.op,e_(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new at(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(t){this.line.push(t)}align(t){const n=t[1];if(n.includes(`
|
|
80
|
-
`)){const o=n.split(`
|
|
81
|
-
`),i=o.length-1;o.forEach((s,c)=>{c<i?(this.pushSubstring(s),this.pushLine()):s.length!==0&&this.pushSubstring(s)})}else this.pushDiff(t)}moveLinesTo(t){this.isLineEmpty()||this.pushLine(),t.push(...this.lines),this.lines.length=0}};d(t_,"ChangeBuffer");var US=t_,r_=class{deleteBuffer;insertBuffer;lines;constructor(t,n){this.deleteBuffer=t,this.insertBuffer=n,this.lines=[]}pushDiffCommonLine(t){this.lines.push(t)}pushDiffChangeLines(t){const n=t[1].length===0;(!n||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(t),(!n||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(t)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(t){const n=t[0],o=t[1];if(o.includes(`
|
|
82
|
-
`)){const i=o.split(`
|
|
83
|
-
`),s=i.length-1;i.forEach((c,f)=>{if(f===0){const p=new at(n,c);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(p)):(this.pushDiffChangeLines(p),this.flushChangeLines())}else f<s?this.pushDiffCommonLine(new at(n,c)):c.length!==0&&this.pushDiffChangeLines(new at(n,c))})}else this.pushDiffChangeLines(t)}getLines(){return this.flushChangeLines(),this.lines}};d(r_,"CommonBuffer");var a7=r_;function n_(e,t){const n=new US(Pt,t),o=new US(Lt,t),i=new a7(n,o);return e.forEach(s=>{switch(s[0]){case Pt:n.align(s);break;case Lt:o.align(s);break;default:i.align(s)}}),i.getLines()}d(n_,"getAlignedDiffs");function a_(e,t){if(t){const n=e.length-1;return e.some((o,i)=>o[0]===ft&&(i!==n||o[1]!==`
|
|
84
|
-
`))}return e.some(n=>n[0]===ft)}d(a_,"hasCommonDiff");function o_(e,t,n){if(e!==t&&e.length!==0&&t.length!==0){const o=e.includes(`
|
|
85
|
-
`)||t.includes(`
|
|
86
|
-
`),[i,s]=yy(o?`${e}
|
|
87
|
-
`:e,o?`${t}
|
|
88
|
-
`:t,!0,n);if(a_(i,o)){const c=Ya(n),f=n_(i,c.changeColor);return ud(f,s,c)}}return su(e.split(`
|
|
89
|
-
`),t.split(`
|
|
90
|
-
`),n)}d(o_,"diffStringsUnified");function yy(e,t,n,o){const[i,s]=QD(e,t,o);return n&&jD(i),[i,s]}d(yy,"diffStringsRaw");function Df(e,t){const{commonColor:n}=Ya(t);return n(e)}d(Df,"getCommonMessage");var{AsymmetricMatcher:o7,DOMCollection:i7,DOMElement:l7,Immutable:s7,ReactElement:u7,ReactTestComponent:c7}=sy,i_=[c7,u7,l7,i7,s7,o7,sy.Error],_m={maxDepth:20,plugins:i_},l_={callToJSON:!1,maxDepth:8,plugins:i_};function s_(e,t,n){if(Object.is(e,t))return"";const o=xm(e);let i=o,s=!1;if(o==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;i=e.getExpectedType(),s=i==="string"}if(i!==xm(t)){let c=function(T){return T.length<=O?T:`${T.slice(0,O)}...`};d(c,"truncate");const{aAnnotation:f,aColor:p,aIndicator:h,bAnnotation:y,bColor:v,bIndicator:b}=Ya(n),S=_f(l_,n);let w=Kr(e,S),x=Kr(t,S);const O=1e5;w=c(w),x=c(x);const A=`${p(`${h} ${f}:`)}
|
|
91
|
-
${w}`,R=`${v(`${b} ${y}:`)}
|
|
92
|
-
${x}`;return`${A}
|
|
93
|
-
|
|
94
|
-
${R}`}if(!s)switch(o){case"string":return su(e.split(`
|
|
95
|
-
`),t.split(`
|
|
96
|
-
`),n);case"boolean":case"number":return u_(e,t,n);case"map":return nf(Om(e),Om(t),n);case"set":return nf(Tm(e),Tm(t),n);default:return nf(e,t,n)}}d(s_,"diff");function u_(e,t,n){const o=Kr(e,_m),i=Kr(t,_m);return o===i?"":su(o.split(`
|
|
97
|
-
`),i.split(`
|
|
98
|
-
`),n)}d(u_,"comparePrimitive");function Om(e){return new Map(Array.from(e.entries()).sort())}d(Om,"sortMap");function Tm(e){return new Set(Array.from(e.values()).sort())}d(Tm,"sortSet");function nf(e,t,n){let o,i=!1;try{const c=_f(_m,n);o=Rm(e,t,c,n)}catch{i=!0}const s=Df(PD,n);if(o===void 0||o===s){const c=_f(l_,n);o=Rm(e,t,c,n),o!==s&&!i&&(o=`${Df(t7,n)}
|
|
99
|
-
|
|
100
|
-
${o}`)}return o}d(nf,"compareObjects");function _f(e,t){const{compareKeys:n,printBasicPrototype:o,maxDepth:i}=Ya(t);return{...e,compareKeys:n,printBasicPrototype:o,maxDepth:i??e.maxDepth}}d(_f,"getFormatOptions");function Rm(e,t,n,o){const i={...n,indent:0},s=Kr(e,i),c=Kr(t,i);if(s===c)return Df(PD,o);{const f=Kr(e,n),p=Kr(t,n);return JD(f.split(`
|
|
101
|
-
`),p.split(`
|
|
102
|
-
`),s.split(`
|
|
103
|
-
`),c.split(`
|
|
104
|
-
`),o)}}d(Rm,"getObjectsDifference");var qS=2e4;function Fm(e){return wf(e)==="Object"&&typeof e.asymmetricMatch=="function"}d(Fm,"isAsymmetricMatcher");function Bm(e,t){const n=wf(e),o=wf(t);return n===o&&(n==="Object"||n==="Array")}d(Bm,"isReplaceable");function c_(e,t,n){const{aAnnotation:o,bAnnotation:i}=Ya(n);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=qS&&e.length<=qS&&t!==e){if(t.includes(`
|
|
105
|
-
`)||e.includes(`
|
|
106
|
-
`))return o_(t,e,n);const[y]=yy(t,e,!0),v=y.some(x=>x[0]===ft),b=f_(o,i),S=b(o)+p_(Mm(y,Pt,v)),w=b(i)+d_(Mm(y,Lt,v));return`${S}
|
|
107
|
-
${w}`}const s=Am(t,{forceWritable:!0}),c=Am(e,{forceWritable:!0}),{replacedExpected:f,replacedActual:p}=vy(c,s);return s_(f,p,n)}d(c_,"printDiffOrStringify");function vy(e,t,n=new WeakSet,o=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):Bm(e,t)?n.has(e)||o.has(t)?{replacedActual:e,replacedExpected:t}:(n.add(e),o.add(t),cy(t).forEach(i=>{const s=t[i],c=e[i];if(Fm(s))s.asymmetricMatch(c)&&(e[i]=s);else if(Fm(c))c.asymmetricMatch(s)&&(t[i]=c);else if(Bm(c,s)){const f=vy(c,s,n,o);e[i]=f.replacedActual,t[i]=f.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}d(vy,"replaceAsymmetricMatcher");function f_(...e){const t=e.reduce((n,o)=>o.length>n?o.length:n,0);return n=>`${n}: ${" ".repeat(t-n.length)}`}d(f_,"getLabelPrinter");var f7="·";function by(e){return e.replace(/\s+$/gm,t=>f7.repeat(t.length))}d(by,"replaceTrailingSpaces");function d_(e){return Yn.red(by(al(e)))}d(d_,"printReceived");function p_(e){return Yn.green(by(al(e)))}d(p_,"printExpected");function Mm(e,t,n){return e.reduce((o,i)=>o+(i[0]===ft?i[1]:i[0]===t?n?Yn.inverse(i[1]):i[1]:""),"")}d(Mm,"getCommonAndChangedSubstrings");var d7="@@__IMMUTABLE_RECORD__@@",p7="@@__IMMUTABLE_ITERABLE__@@";function h_(e){return e&&(e[p7]||e[d7])}d(h_,"isImmutable");var h7=Object.getPrototypeOf({});function Lm(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}d(Lm,"getUnserializableMessage");function Vn(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){const n=e.toJSON();return n&&n!==e&&typeof n=="object"&&(typeof e.message=="string"&&Ts(()=>n.message??(n.message=e.message)),typeof e.stack=="string"&&Ts(()=>n.stack??(n.stack=e.stack)),typeof e.name=="string"&&Ts(()=>n.name??(n.name=e.name)),e.cause!=null&&Ts(()=>n.cause??(n.cause=Vn(e.cause,t)))),Vn(n,t)}if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(h_(e))return Vn(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()} ${FD(e.sample)}`;if(typeof e.toJSON=="function")return Vn(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){const n=new Array(e.length);return t.set(e,n),e.forEach((o,i)=>{try{n[i]=Vn(o,t)}catch(s){n[i]=Lm(s)}}),n}else{const n=Object.create(null);t.set(e,n);let o=e;for(;o&&o!==h7;)Object.getOwnPropertyNames(o).forEach(i=>{if(!(i in n))try{n[i]=Vn(e[i],t)}catch(s){delete n[i],n[i]=Lm(s)}}),o=Object.getPrototypeOf(o);return n}}d(Vn,"serializeValue");function Ts(e){try{return e()}catch{}}d(Ts,"safe");function g_(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}d(g_,"normalizeErrorMessage");function Ey(e,t,n=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};const o=e;(o.showDiff||o.showDiff===void 0&&o.expected!==void 0&&o.actual!==void 0)&&(o.diff=c_(o.actual,o.expected,{...t,...o.diffOptions})),"expected"in o&&typeof o.expected!="string"&&(o.expected=al(o.expected,10)),"actual"in o&&typeof o.actual!="string"&&(o.actual=al(o.actual,10));try{typeof o.message=="string"&&(o.message=g_(o.message))}catch{}try{!n.has(o)&&typeof o.cause=="object"&&(n.add(o),o.cause=Ey(o.cause,t,n))}catch{}try{return Vn(o)}catch(i){return Vn(new Error(`Failed to fully serialize error: ${i?.message}
|
|
108
|
-
Inner error message: ${o?.message}`))}}d(Ey,"processError");const{once:g7}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_REMOUNT:GS,SET_CURRENT_STORY:m7,STORY_RENDER_PHASE_CHANGED:y7}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Mr}=__STORYBOOK_MODULE_GLOBAL__;var Cg=globalThis.__STORYBOOK_ADDONS_PREVIEW,v7=new Error("This function ran after the play function completed. Did you forget to `await` it?"),VS=d(e=>Object.prototype.toString.call(e)==="[object Object]","isObject"),b7=d(e=>Object.prototype.toString.call(e)==="[object Module]","isModule"),E7=d(e=>{if(!VS(e)&&!b7(e))return!1;if(e.constructor===void 0)return!0;const t=e.constructor.prototype;return!!VS(t)},"isInstrumentable"),S7=d(e=>{try{return new e.constructor}catch{return{}}},"construct"),wg=d(()=>({renderPhase:"preparing",isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),"getInitialState"),YS=d((e,t=!1)=>{const n=(t?e.shadowCalls:e.calls).filter(i=>i.retain);if(!n.length)return;const o=new Map(Array.from(e.callRefsByResult.entries()).filter(([,i])=>i.retain));return{cursor:n.length,calls:n,callRefsByResult:o}},"getRetainedState"),m_=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=d(()=>{try{this.state=Mr.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},"loadParentWindowState"),this.updateParentWindowState=d(()=>{try{Mr.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},"updateParentWindowState"),this.loadParentWindowState();const t=d(({storyId:p,renderPhase:h,isPlaying:y=!0,isDebugging:v=!1})=>{const b=this.getState(p);this.setState(p,{...wg(),...YS(b,v),renderPhase:h||b.renderPhase,shadowCalls:v?b.shadowCalls:[],chainedCallIds:v?b.chainedCallIds:new Set,playUntil:v?b.playUntil:void 0,isPlaying:y,isDebugging:v}),this.sync(p)},"resetState"),n=d(p=>({storyId:h,playUntil:y})=>{this.getState(h).isDebugging||this.setState(h,({calls:b})=>({calls:[],shadowCalls:b.map(S=>({...S,status:"waiting"})),isDebugging:!0}));const v=this.getLog(h);this.setState(h,({shadowCalls:b})=>{if(y||!v.length)return{playUntil:y};const S=b.findIndex(w=>w.id===v[0].callId);return{playUntil:b.slice(0,S).filter(w=>w.interceptable&&!w.ancestors?.length).slice(-1)[0]?.id}}),p.emit(GS,{storyId:h,isDebugging:!0})},"start"),o=d(p=>({storyId:h})=>{const y=this.getLog(h).filter(b=>!b.ancestors?.length),v=y.reduceRight((b,S,w)=>b>=0||S.status==="waiting"?b:w,-1);n(p)({storyId:h,playUntil:y[v-1]?.callId})},"back"),i=d(p=>({storyId:h,callId:y})=>{const{calls:v,shadowCalls:b,resolvers:S}=this.getState(h),w=v.find(({id:O})=>O===y),x=b.find(({id:O})=>O===y);if(!w&&x&&Object.values(S).length>0){const O=this.getLog(h).find(A=>A.status==="waiting")?.callId;x.id!==O&&this.setState(h,{playUntil:x.id}),Object.values(S).forEach(A=>A())}else n(p)({storyId:h,playUntil:y})},"goto"),s=d(p=>({storyId:h})=>{const{resolvers:y}=this.getState(h);if(Object.values(y).length>0)Object.values(y).forEach(v=>v());else{const v=this.getLog(h).find(b=>b.status==="waiting")?.callId;v?n(p)({storyId:h,playUntil:v}):c({storyId:h})}},"next"),c=d(({storyId:p})=>{this.setState(p,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(p).resolvers).forEach(h=>h())},"end"),f=d(({storyId:p,newPhase:h})=>{const{isDebugging:y}=this.getState(p);if(h==="preparing"&&y)return t({storyId:p,renderPhase:h,isDebugging:y});if(h==="playing")return t({storyId:p,renderPhase:h,isDebugging:y});h==="played"?this.setState(p,{renderPhase:h,isLocked:!1,isPlaying:!1,isDebugging:!1}):h==="errored"?this.setState(p,{renderPhase:h,isLocked:!1,isPlaying:!1}):h==="aborted"?this.setState(p,{renderPhase:h,isLocked:!0,isPlaying:!1}):this.setState(p,{renderPhase:h}),this.sync(p)},"renderPhaseChanged");Cg&&Cg.ready().then(()=>{this.channel=Cg.getChannel(),this.channel.on(GS,t),this.channel.on(y7,f),this.channel.on(m7,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on($n.START,n(this.channel)),this.channel.on($n.BACK,o(this.channel)),this.channel.on($n.GOTO,i(this.channel)),this.channel.on($n.NEXT,s(this.channel)),this.channel.on($n.END,c)})}getState(t){return this.state[t]||wg()}setState(t,n){if(t){const o=this.getState(t),i=typeof n=="function"?n(o):n;this.state={...this.state,[t]:{...o,...i}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((o,[i,s])=>{const c=YS(s);return c&&(o[i]=Object.assign(wg(),c)),o},{});const n={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit($n.SYNC,n),this.updateParentWindowState()}getLog(t){const{calls:n,shadowCalls:o}=this.getState(t),i=[...o];n.forEach((c,f)=>{i[f]=c});const s=new Set;return i.reduceRight((c,f)=>(f.args.forEach(p=>{p?.__callId__&&s.add(p.__callId__)}),f.path.forEach(p=>{p.__callId__&&s.add(p.__callId__)}),(f.interceptable||f.exception)&&!s.has(f.id)&&(c.unshift({callId:f.id,status:f.status,ancestors:f.ancestors}),s.add(f.id)),c),[])}instrument(t,n,o=0){if(!E7(t))return t;const{mutate:i=!1,path:s=[]}=n,c=n.getKeys?n.getKeys(t,o):Object.keys(t);return o+=1,c.reduce((f,p)=>{const h=y_(t,p);if(typeof h?.get=="function"){if(h.configurable){const v=d(()=>h?.get?.bind(t)?.(),"getter");Object.defineProperty(f,p,{get:d(()=>this.instrument(v(),{...n,path:s.concat(p)},o),"get")})}return f}const y=t[p];return typeof y!="function"?(f[p]=this.instrument(y,{...n,path:s.concat(p)},o),f):"__originalFn__"in y&&typeof y.__originalFn__=="function"?(f[p]=y,f):(f[p]=(...v)=>this.track(p,y,t,v,n),f[p].__originalFn__=y,Object.defineProperty(f[p],"name",{value:p,writable:!1}),Object.keys(y).length>0&&Object.assign(f[p],this.instrument({...y},{...n,path:s.concat(p)},o)),f)},i?t:S7(t))}track(t,n,o,i,s){const c=i?.[0]?.__storyId__||Mr.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:f,ancestors:p}=this.getState(c);this.setState(c,{cursor:f+1});const h=`${p.slice(-1)[0]||c} [${f}] ${t}`,{path:y=[],intercept:v=!1,retain:b=!1}=s,S=typeof v=="function"?v(t,y):v,w={id:h,cursor:f,storyId:c,ancestors:p,path:y,method:t,args:i,interceptable:S,retain:b},O=(S&&!p.length?this.intercept:this.invoke).call(this,n,o,w,s);return this.instrument(O,{...s,mutate:!0,path:[{__callId__:w.id}]})}intercept(t,n,o,i){const{chainedCallIds:s,isDebugging:c,playUntil:f}=this.getState(o.storyId),p=s.has(o.id);return!c||p||f?(f===o.id&&this.setState(o.storyId,{playUntil:void 0}),this.invoke(t,n,o,i)):new Promise(h=>{this.setState(o.storyId,({resolvers:y})=>({isLocked:!1,resolvers:{...y,[o.id]:h}}))}).then(()=>(this.setState(o.storyId,h=>{const{[o.id]:y,...v}=h.resolvers;return{isLocked:!0,resolvers:v}}),this.invoke(t,n,o,i)))}invoke(t,n,o,i){const{callRefsByResult:s,renderPhase:c}=this.getState(o.storyId),f=25,p=d((v,b,S)=>{if(S.includes(v))return"[Circular]";if(S=[...S,v],b>f)return"...";if(s.has(v))return s.get(v);if(v instanceof Array)return v.map(w=>p(w,++b,S));if(v instanceof Date)return{__date__:{value:v.toISOString()}};if(v instanceof Error){const{name:w,message:x,stack:O}=v;return{__error__:{name:w,message:x,stack:O}}}if(v instanceof RegExp){const{flags:w,source:x}=v;return{__regexp__:{flags:w,source:x}}}if(v instanceof Mr.window?.HTMLElement){const{prefix:w,localName:x,id:O,classList:A,innerText:R}=v,T=Array.from(A);return{__element__:{prefix:w,localName:x,id:O,classNames:T,innerText:R}}}return typeof v=="function"?{__function__:{name:"getMockName"in v?v.getMockName():v.name}}:typeof v=="symbol"?{__symbol__:{description:v.description}}:typeof v=="object"&&v?.constructor?.name&&v?.constructor?.name!=="Object"?{__class__:{name:v.constructor.name}}:Object.prototype.toString.call(v)==="[object Object]"?Object.fromEntries(Object.entries(v).map(([w,x])=>[w,p(x,++b,S)])):v},"serializeValues"),h={...o,args:o.args.map(v=>p(v,0,[]))};o.path.forEach(v=>{v?.__callId__&&this.setState(o.storyId,({chainedCallIds:b})=>({chainedCallIds:new Set(Array.from(b).concat(v.__callId__))}))});const y=d(v=>{if(v instanceof Error){const{name:b,message:S,stack:w,callId:x=o.id}=v,{showDiff:O=void 0,diff:A=void 0,actual:R=void 0,expected:T=void 0}=v.name==="AssertionError"?Ey(v):v,F={name:b,message:S,stack:w,callId:x,showDiff:O,diff:A,actual:R,expected:T};if(this.update({...h,status:"error",exception:F}),this.setState(o.storyId,N=>({callRefsByResult:new Map([...Array.from(N.callRefsByResult.entries()),[v,{__callId__:o.id,retain:o.retain}]])})),o.ancestors?.length)throw Object.prototype.hasOwnProperty.call(v,"callId")||Object.defineProperty(v,"callId",{value:o.id}),v}throw v},"handleException");try{if(c==="played"&&!o.retain)throw v7;const b=(i.getArgs?i.getArgs(o,this.getState(o.storyId)):o.args).map(w=>typeof w!="function"||v_(w)||Object.keys(w).length?w:(...x)=>{const{cursor:O,ancestors:A}=this.getState(o.storyId);this.setState(o.storyId,{cursor:0,ancestors:[...A,o.id]});const R=d(()=>this.setState(o.storyId,{cursor:O,ancestors:A}),"restore");let T=!1;try{const F=w(...x);return F instanceof Promise?(T=!0,F.finally(R)):F}finally{T||R()}}),S=t.apply(n,b);return S&&["object","function","symbol"].includes(typeof S)&&this.setState(o.storyId,w=>({callRefsByResult:new Map([...Array.from(w.callRefsByResult.entries()),[S,{__callId__:o.id,retain:o.retain}]])})),this.update({...h,status:S instanceof Promise?"active":"done"}),S instanceof Promise?S.then(w=>(this.update({...h,status:"done"}),w),y):S}catch(v){return y(v)}}update(t){this.channel?.emit($n.CALL,t),this.setState(t.storyId,({calls:n})=>{const o=n.concat(t).reduce((i,s)=>Object.assign(i,{[s.id]:s}),{});return{calls:Object.values(o).sort((i,s)=>i.id.localeCompare(s.id,void 0,{numeric:!0}))}}),this.sync(t.storyId)}sync(t){const n=d(()=>{const{isLocked:o,isPlaying:i}=this.getState(t),s=this.getLog(t),c=s.filter(({ancestors:v})=>!v.length).find(v=>v.status==="waiting")?.callId,f=s.some(v=>v.status==="active");if(this.detached||o||f||s.length===0){const b={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:s};this.channel?.emit($n.SYNC,b);return}const p=s.some(v=>v.status==="done"||v.status==="error"),y={controlStates:{detached:this.detached,start:p,back:p,goto:!0,next:i,end:i},logItems:s,pausedAt:c};this.channel?.emit($n.SYNC,y)},"synchronize");this.setState(t,({syncTimeout:o})=>(clearTimeout(o),{syncTimeout:setTimeout(n,0)}))}};d(m_,"Instrumenter");var A7=m_;function Sy(e,t={}){try{let n=!1,o=!1;return Mr.window?.location?.search?.includes("instrument=true")?n=!0:Mr.window?.location?.search?.includes("instrument=false")&&(o=!0),Mr.window?.parent===Mr.window&&!n||o?e:(Mr.window&&!Mr.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(Mr.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new A7),(Mr.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(n){return g7.warn(n),e}}d(Sy,"instrument");function y_(e,t){let n=e;for(;n!=null;){const o=Object.getOwnPropertyDescriptor(n,t);if(o)return o;n=Object.getPrototypeOf(n)}}d(y_,"getPropertyDescriptor");function v_(e){if(typeof e!="function")return!1;const t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}d(v_,"isClass");var C7=ot({"../node_modules/@ngard/tiny-isequal/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=(function(){var t=Object.prototype.toString,n=Object.getPrototypeOf,o=Object.getOwnPropertySymbols?function(i){return Object.keys(i).concat(Object.getOwnPropertySymbols(i))}:Object.keys;return function(i,s){return d(function c(f,p,h){var y,v,b,S=t.call(f),w=t.call(p);if(f===p)return!0;if(f==null||p==null)return!1;if(h.indexOf(f)>-1&&h.indexOf(p)>-1)return!0;if(h.push(f,p),S!=w||(y=o(f),v=o(p),y.length!=v.length||y.some(function(x){return!c(f[x],p[x],h)})))return!1;switch(S.slice(8,-1)){case"Symbol":return f.valueOf()==p.valueOf();case"Date":case"Number":return+f==+p||+f!=+f&&+p!=+p;case"RegExp":case"Function":case"String":case"Boolean":return""+f==""+p;case"Set":case"Map":y=f.entries(),v=p.entries();do if(!c((b=y.next()).value,v.next().value,h))return!1;while(!b.done);return!0;case"ArrayBuffer":f=new Uint8Array(f),p=new Uint8Array(p);case"DataView":f=new Uint8Array(f.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(f.length!=p.length)return!1;for(b=0;b<f.length;b++)if((b in f||b in p)&&(b in f!=b in p||!c(f[b],p[b],h)))return!1;return!0;case"Object":return c(n(f),n(p),h);default:return!1}},"n")(i,s,[])}})()}});function b_(e){return e.replace(/_/g," ").replace(/-/g," ").replace(/\./g," ").replace(/([^\n])([A-Z])([a-z])/g,(t,n,o,i)=>`${n} ${o}${i}`).replace(/([a-z])([A-Z])/g,(t,n,o)=>`${n} ${o}`).replace(/([a-z])([0-9])/gi,(t,n,o)=>`${n} ${o}`).replace(/([0-9])([a-z])/gi,(t,n,o)=>`${n} ${o}`).replace(/(\s|^)(\w)/g,(t,n,o)=>`${n}${o.toUpperCase()}`).replace(/ +/g," ").trim()}d(b_,"toStartCaseStr");var WS=or(C7(),1),E_=d(e=>e.map(t=>typeof t<"u").filter(Boolean).length,"count"),w7=d((e,t)=>{const{exists:n,eq:o,neq:i,truthy:s}=e;if(E_([n,o,i,s])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:n,eq:o,neq:i})}`);if(typeof o<"u")return(0,WS.isEqual)(t,o);if(typeof i<"u")return!(0,WS.isEqual)(t,i);if(typeof n<"u"){const f=typeof t<"u";return n?f:!f}return(typeof s>"u"?!0:s)?!!t:!t},"testValue"),S_=d((e,t,n)=>{if(!e.if)return!0;const{arg:o,global:i}=e.if;if(E_([o,i])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:o,global:i})}`);const s=o?t[o]:n[i];return w7(e.if,s)},"includeConditionalArg"),A_={};Wf(A_,{argsEnhancers:()=>_7});var C_=d((e,t)=>typeof t[e]>"u"&&!(e in t),"isInInitialArgs"),x7=d(e=>{const{initialArgs:t,argTypes:n,id:o,parameters:{actions:i}}=e;if(!i||i.disable||!i.argTypesRegex||!n)return{};const s=new RegExp(i.argTypesRegex);return Object.entries(n).filter(([f])=>!!s.test(f)).reduce((f,[p,h])=>(C_(p,t)&&(f[p]=ed(p,{implicit:!0,id:o})),f),{})},"inferActionsFromArgTypesRegex"),D7=d(e=>{const{initialArgs:t,argTypes:n,parameters:{actions:o}}=e;return o?.disable||!n?{}:Object.entries(n).filter(([s,c])=>!!c.action).reduce((s,[c,f])=>(C_(c,t)&&(s[c]=ed(typeof f.action=="string"?f.action:c)),s),{})},"addActionsFromArgTypes"),_7=[D7,x7],w_={};Wf(w_,{loaders:()=>R7});const{onMockCall:O7}=__STORYBOOK_MODULE_TEST__;var KS=!1,T7=d(e=>{const{parameters:t}=e;t?.actions?.disable||KS||(O7((n,o)=>{const i=n.getMockName();i!=="spy"&&i!=="vi.fn()"&&(!/^next\/.*::/.test(i)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(s=>i.startsWith(s)))&&ed(i)(o)}),KS=!0)},"logActionsWhenMockCalled"),R7=[T7],XS=d(()=>({...A_,...w_}),"default");const{useEffect:ZS}=__STORYBOOK_MODULE_PREVIEW_API__;var{document:Wr}=globalThis,F7=d(()=>globalThis?.matchMedia?!!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches:!1,"isReduceMotionEnabled"),JS=d(e=>{(Array.isArray(e)?e:[e]).forEach(B7)},"clearStyles"),B7=d(e=>{if(!Wr)return;const t=Wr.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},"clearStyle"),M7=d((e,t)=>{if(!Wr)return;const n=Wr.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{const o=Wr.createElement("style");o.setAttribute("id",e),o.innerHTML=t,Wr.head.appendChild(o)}},"addGridStyle"),L7=d((e,t,n)=>{if(!Wr)return;const o=Wr.getElementById(e);if(o)o.innerHTML!==t&&(o.innerHTML=t);else{const i=Wr.createElement("style");i.setAttribute("id",e),i.innerHTML=t;const s=`addon-backgrounds-grid${n?`-docs-${n}`:""}`,c=Wr.getElementById(s);c?c.parentElement?.insertBefore(i,c):Wr.head.appendChild(i)}},"addBackgroundStyle"),N7={cellSize:100,cellAmount:10,opacity:.8},QS="addon-backgrounds",eA="addon-backgrounds-grid",k7=F7()?"":"transition: background-color 0.3s;",z7=d((e,t)=>{const{globals:n={},parameters:o={},viewMode:i,id:s}=t,{options:c=r8,disable:f,grid:p=N7}=o[vf]||{},h=n[vf]||{},y=typeof h=="string"?h:h?.value,v=y?c[y]:void 0,b=typeof v=="string"?v:v?.value||"transparent",S=typeof h=="string"?!1:h.grid||!1,w=!!v&&!f,x=i==="docs"?`#anchor--${s} .docs-story`:".sb-show-main",O=i==="docs"?`#anchor--${s} .docs-story`:".sb-show-main",A=o.layout===void 0||o.layout==="padded",R=i==="docs"?20:A?16:0,{cellAmount:T,cellSize:F,opacity:N,offsetX:L=R,offsetY:B=R}=p,$=i==="docs"?`${QS}-docs-${s}`:`${QS}-color`,P=i==="docs"?s:null;ZS(()=>{const U=`
|
|
109
|
-
${x} {
|
|
110
|
-
background: ${b} !important;
|
|
111
|
-
${k7}
|
|
112
|
-
}`;if(!w){JS($);return}L7($,U,P)},[x,$,P,w,b]);const I=i==="docs"?`${eA}-docs-${s}`:`${eA}`;return ZS(()=>{if(!S){JS(I);return}const U=[`${F*T}px ${F*T}px`,`${F*T}px ${F*T}px`,`${F}px ${F}px`,`${F}px ${F}px`].join(", "),Q=`
|
|
113
|
-
${O} {
|
|
114
|
-
background-size: ${U} !important;
|
|
115
|
-
background-position: ${L}px ${B}px, ${L}px ${B}px, ${L}px ${B}px, ${L}px ${B}px !important;
|
|
116
|
-
background-blend-mode: difference !important;
|
|
117
|
-
background-image: linear-gradient(rgba(130, 130, 130, ${N}) 1px, transparent 1px),
|
|
118
|
-
linear-gradient(90deg, rgba(130, 130, 130, ${N}) 1px, transparent 1px),
|
|
119
|
-
linear-gradient(rgba(130, 130, 130, ${N/2}) 1px, transparent 1px),
|
|
120
|
-
linear-gradient(90deg, rgba(130, 130, 130, ${N/2}) 1px, transparent 1px) !important;
|
|
121
|
-
}
|
|
122
|
-
`;M7(I,Q)},[T,F,O,I,S,L,B,N]),e()},"withBackgroundAndGrid"),j7=globalThis.FEATURES?.backgrounds?[z7]:[],$7={[vf]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1}},P7={[vf]:{value:void 0,grid:!1}},tA=d(()=>({decorators:j7,parameters:$7,initialGlobals:P7}),"default"),{step:I7}=Sy({step:d(async(e,t,n)=>t(n),"step")},{intercept:!0}),rA=d(()=>({parameters:{throwPlayFunctionExceptions:!1},runStep:I7}),"default");const{addons:nA}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_RENDER_PHASE_CHANGED:H7}=__STORYBOOK_MODULE_CORE_EVENTS__;var aA={chevronLeft:["M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z"],chevronRight:["M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z"],info:["M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z","M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z"],shareAlt:["M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z","M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z"]},U7="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),Ct=d((e,t={},n)=>{const o=U7.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([i,s])=>{/[A-Z]/.test(i)?(i==="onClick"&&(o.addEventListener("click",s),o.addEventListener("keydown",c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),s())})),i==="onMouseEnter"&&o.addEventListener("mouseenter",s),i==="onMouseLeave"&&o.addEventListener("mouseleave",s)):o.setAttribute(i,s)}),n?.forEach(i=>{if(!(i==null||i===!1))try{o.appendChild(i)}catch{o.appendChild(document.createTextNode(String(i)))}}),o},"createElement"),Ic=d(e=>aA[e]&&Ct("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},aA[e].map(t=>Ct("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),"createIcon"),q7=d(e=>{if("elements"in e){const{elements:o,color:i,style:s}=e;return{id:void 0,priority:0,selectors:o,styles:{outline:`2px ${s} ${i}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}const{menu:t,...n}=e;return{id:void 0,priority:0,styles:{outline:"2px dashed #029cfd"},...n,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},"normalizeOptions"),G7=d(e=>e instanceof Function,"isFunction"),bs=new Map,yo=new Map,Hc=new Map,Pn=d(e=>{const t=Symbol();return yo.set(t,[]),bs.set(t,e),{get:d(()=>bs.get(t),"get"),set:d(c=>{const f=bs.get(t),p=G7(c)?c(f):c;p!==f&&(bs.set(t,p),yo.get(t)?.forEach(h=>{Hc.get(h)?.(),Hc.set(h,h(p))}))},"set"),subscribe:d(c=>(yo.get(t)?.push(c),()=>{const f=yo.get(t);f&&yo.set(t,f.filter(p=>p!==c))}),"subscribe"),teardown:d(()=>{yo.get(t)?.forEach(c=>{Hc.get(c)?.(),Hc.delete(c)}),yo.delete(t),bs.delete(t)},"teardown")}},"useStore"),oA=d(e=>{const t=document.getElementById("storybook-root"),n=new Map;for(const o of e){const{priority:i=0}=o;for(const s of o.selectors){const c=[...document.querySelectorAll(`:is(${s}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(s)||[]];for(const f of c){const p=n.get(f);(!p||p.priority<=i)&&n.set(f,{...o,priority:i,selectors:Array.from(new Set((p?.selectors||[]).concat(s)))})}}}return n},"mapElements"),V7=d(e=>Array.from(e.entries()).map(([t,{selectors:n,styles:o,hoverStyles:i,focusStyles:s,menu:c}])=>{const{top:f,left:p,width:h,height:y}=t.getBoundingClientRect(),{position:v}=getComputedStyle(t);return{element:t,selectors:n,styles:o,hoverStyles:i,focusStyles:s,menu:c,top:v==="fixed"?f:f+window.scrollY,left:v==="fixed"?p:p+window.scrollX,width:h,height:y}}).sort((t,n)=>n.width*n.height-t.width*t.height),"mapBoxes"),iA=d((e,t)=>{const n=e.getBoundingClientRect(),{x:o,y:i}=t;return n?.top&&n?.left&&o>=n.left&&o<=n.left+n.width&&i>=n.top&&i<=n.top+n.height},"isOverMenu"),lA=d((e,t,n)=>{if(!t||!n)return!1;let{left:o,top:i,width:s,height:c}=e;c<Ma&&(i=i-Math.round((Ma-c)/2),c=Ma),s<Ma&&(o=o-Math.round((Ma-s)/2),s=Ma),t.style.position==="fixed"&&(o+=window.scrollX,i+=window.scrollY);const{x:f,y:p}=n;return f>=o&&f<=o+s&&p>=i&&p<=i+c},"isTargeted"),Y7=d((e,t,n={})=>{const{x:o,y:i}=t,{margin:s=5,topOffset:c=0,centered:f=!1}=n,{scrollX:p,scrollY:h,innerHeight:y,innerWidth:v}=window,b=Math.min(e.style.position==="fixed"?i-h:i,y-e.clientHeight-s-c+h),S=f?e.clientWidth/2:0,w=e.style.position==="fixed"?Math.max(Math.min(o-p,v-S-s),S+s):Math.max(Math.min(o,v-S-s+p),S+s+p);Object.assign(e.style,{...w!==o&&{left:`${w}px`},...b!==i&&{top:`${b}px`}})},"keepInViewport"),sA=d(e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},"showPopover"),W7=d(e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},"hidePopover"),K7=d(e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(t=>[t.name,t.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),"getEventDetails"),Qe="storybook-highlights-menu",uA="storybook-highlights-root",X7="storybook-root",Z7=d(e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;const{document:t}=globalThis,n=Pn([]),o=Pn(new Map),i=Pn([]),s=Pn(),c=Pn(),f=Pn([]),p=Pn([]),h=Pn(),y=Pn();let v=t.getElementById(uA);n.subscribe(()=>{v||(v=Ct("div",{id:uA}),t.body.appendChild(v))}),n.subscribe(B=>{const $=t.getElementById(X7);if(!$)return;o.set(oA(B));const P=new MutationObserver(()=>o.set(oA(B)));return P.observe($,{subtree:!0,childList:!0}),()=>{P.disconnect()}}),o.subscribe(B=>{const $=d(()=>requestAnimationFrame(()=>i.set(V7(B))),"updateBoxes"),P=new ResizeObserver($);P.observe(t.body),Array.from(B.keys()).forEach(U=>P.observe(U));const I=Array.from(t.body.querySelectorAll("*")).filter(U=>{const{overflow:Q,overflowX:X,overflowY:z}=window.getComputedStyle(U);return["auto","scroll"].some(q=>[Q,X,z].includes(q))});return I.forEach(U=>U.addEventListener("scroll",$)),()=>{P.disconnect(),I.forEach(U=>U.removeEventListener("scroll",$))}}),o.subscribe(B=>{const $=Array.from(B.keys()).filter(({style:I})=>I.position==="sticky"),P=d(()=>requestAnimationFrame(()=>{i.set(I=>I.map(U=>{if($.includes(U.element)){const{top:Q,left:X}=U.element.getBoundingClientRect();return{...U,top:Q+window.scrollY,left:X+window.scrollX}}return U}))}),"updateBoxes");return t.addEventListener("scroll",P),()=>t.removeEventListener("scroll",P)}),o.subscribe(B=>{f.set($=>$.filter(({element:P})=>B.has(P)))}),f.subscribe(B=>{B.length?(y.set($=>B.some(P=>P.element===$?.element)?$:void 0),h.set($=>B.some(P=>P.element===$?.element)?$:void 0)):(y.set(void 0),h.set(void 0),s.set(void 0))});const b=new Map(new Map);n.subscribe(B=>{B.forEach(({keyframes:$})=>{if($){let P=b.get($);P||(P=t.createElement("style"),P.setAttribute("data-highlight","keyframes"),b.set($,P),t.head.appendChild(P)),P.innerHTML=$}}),b.forEach(($,P)=>{B.some(I=>I.keyframes===P)||($.remove(),b.delete(P))})});const S=new Map(new Map);i.subscribe(B=>{B.forEach($=>{let P=S.get($.element);if(v&&!P){const I={popover:"manual","data-highlight-dimensions":`w${$.width.toFixed(0)}h${$.height.toFixed(0)}`,"data-highlight-coordinates":`x${$.left.toFixed(0)}y${$.top.toFixed(0)}`};P=v.appendChild(Ct("div",I,[Ct("div")])),S.set($.element,P)}}),S.forEach(($,P)=>{B.some(({element:I})=>I===P)||($.remove(),S.delete(P))})}),i.subscribe(B=>{const $=B.filter(I=>I.menu);if(!$.length)return;const P=d(I=>{requestAnimationFrame(()=>{const U=t.getElementById(Qe),Q={x:I.pageX,y:I.pageY};if(U&&!iA(U,Q)){const X=$.filter(z=>{const q=S.get(z.element);return lA(z,q,Q)});s.set(X.length?Q:void 0),f.set(X)}})},"onClick");return t.addEventListener("click",P),()=>t.removeEventListener("click",P)});const w=d(()=>{const B=t.getElementById(Qe),$=c.get();!$||B&&iA(B,$)||p.set(P=>{const I=i.get().filter(z=>{const q=S.get(z.element);return lA(z,q,$)}),U=P.filter(z=>I.includes(z)),Q=I.filter(z=>!P.includes(z)),X=P.length-U.length;return Q.length||X?[...U,...Q]:P})},"updateHovered");c.subscribe(w),i.subscribe(w);const x=d(()=>{const B=y.get(),$=B?[B]:f.get(),P=$.length===1?$[0]:h.get(),I=s.get()!==void 0;i.get().forEach(U=>{const Q=S.get(U.element);if(Q){const X=P===U,z=I?P?X:$.includes(U):p.get()?.includes(U);Object.assign(Q.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",...U.styles,...z?U.hoverStyles:{},...X?U.focusStyles:{},position:getComputedStyle(U.element).position==="fixed"?"fixed":"absolute",zIndex:ES-10,top:`${U.top}px`,left:`${U.left}px`,width:`${U.width}px`,height:`${U.height}px`,margin:0,padding:0,cursor:U.menu&&z?"pointer":"default",pointerEvents:U.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(Q.children[0].style,{width:"100%",height:"100%",minHeight:`${Ma}px`,minWidth:`${Ma}px`,boxSizing:"content-box",padding:Q.style.outlineWidth||"0px"}),sA(Q)}})},"updateBoxStyles");i.subscribe(x),f.subscribe(x),p.subscribe(x),h.subscribe(x),y.subscribe(x);const O=d(()=>{if(!v)return;let B=t.getElementById(Qe);if(B)B.innerHTML="";else{const U={id:Qe,popover:"manual"};B=v.appendChild(Ct("div",U)),v.appendChild(Ct("style",{},[`
|
|
123
|
-
#${Qe} {
|
|
124
|
-
position: absolute;
|
|
125
|
-
z-index: ${ES};
|
|
126
|
-
width: 300px;
|
|
127
|
-
padding: 0px;
|
|
128
|
-
margin: 15px 0 0 0;
|
|
129
|
-
transform: translateX(-50%);
|
|
130
|
-
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
131
|
-
font-size: 12px;
|
|
132
|
-
background: white;
|
|
133
|
-
border: none;
|
|
134
|
-
border-radius: 6px;
|
|
135
|
-
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
|
|
136
|
-
color: #2E3438;
|
|
137
|
-
}
|
|
138
|
-
#${Qe} ul {
|
|
139
|
-
list-style: none;
|
|
140
|
-
margin: 0;
|
|
141
|
-
padding: 0;
|
|
142
|
-
}
|
|
143
|
-
#${Qe} > ul {
|
|
144
|
-
max-height: 300px;
|
|
145
|
-
overflow-y: auto;
|
|
146
|
-
padding: 4px 0;
|
|
147
|
-
}
|
|
148
|
-
#${Qe} li {
|
|
149
|
-
padding: 0 4px;
|
|
150
|
-
margin: 0;
|
|
151
|
-
}
|
|
152
|
-
#${Qe} li > :not(ul) {
|
|
153
|
-
display: flex;
|
|
154
|
-
padding: 8px;
|
|
155
|
-
margin: 0;
|
|
156
|
-
align-items: center;
|
|
157
|
-
gap: 8px;
|
|
158
|
-
border-radius: 4px;
|
|
159
|
-
}
|
|
160
|
-
#${Qe} button {
|
|
161
|
-
width: 100%;
|
|
162
|
-
border: 0;
|
|
163
|
-
background: transparent;
|
|
164
|
-
color: inherit;
|
|
165
|
-
text-align: left;
|
|
166
|
-
font-family: inherit;
|
|
167
|
-
font-size: inherit;
|
|
168
|
-
}
|
|
169
|
-
#${Qe} button:focus-visible {
|
|
170
|
-
outline-color: #029CFD;
|
|
171
|
-
}
|
|
172
|
-
#${Qe} button:hover {
|
|
173
|
-
background: rgba(2, 156, 253, 0.07);
|
|
174
|
-
color: #029CFD;
|
|
175
|
-
cursor: pointer;
|
|
176
|
-
}
|
|
177
|
-
#${Qe} li code {
|
|
178
|
-
white-space: nowrap;
|
|
179
|
-
overflow: hidden;
|
|
180
|
-
text-overflow: ellipsis;
|
|
181
|
-
line-height: 16px;
|
|
182
|
-
font-size: 11px;
|
|
183
|
-
}
|
|
184
|
-
#${Qe} li svg {
|
|
185
|
-
flex-shrink: 0;
|
|
186
|
-
margin: 1px;
|
|
187
|
-
color: #73828C;
|
|
188
|
-
}
|
|
189
|
-
#${Qe} li > button:hover svg, #${Qe} li > button:focus-visible svg {
|
|
190
|
-
color: #029CFD;
|
|
191
|
-
}
|
|
192
|
-
#${Qe} .element-list li svg {
|
|
193
|
-
display: none;
|
|
194
|
-
}
|
|
195
|
-
#${Qe} li.selectable svg, #${Qe} li.selected svg {
|
|
196
|
-
display: block;
|
|
197
|
-
}
|
|
198
|
-
#${Qe} .menu-list {
|
|
199
|
-
border-top: 1px solid rgba(38, 85, 115, 0.15);
|
|
200
|
-
}
|
|
201
|
-
#${Qe} .menu-list > li:not(:last-child) {
|
|
202
|
-
padding-bottom: 4px;
|
|
203
|
-
margin-bottom: 4px;
|
|
204
|
-
border-bottom: 1px solid rgba(38, 85, 115, 0.15);
|
|
205
|
-
}
|
|
206
|
-
#${Qe} .menu-items, #${Qe} .menu-items li {
|
|
207
|
-
padding: 0;
|
|
208
|
-
}
|
|
209
|
-
#${Qe} .menu-item {
|
|
210
|
-
display: flex;
|
|
211
|
-
}
|
|
212
|
-
#${Qe} .menu-item-content {
|
|
213
|
-
display: flex;
|
|
214
|
-
flex-direction: column;
|
|
215
|
-
flex-grow: 1;
|
|
216
|
-
}
|
|
217
|
-
`]))}const $=y.get(),P=$?[$]:f.get();if(P.length&&(B.style.position=getComputedStyle(P[0].element).position==="fixed"?"fixed":"absolute",B.appendChild(Ct("ul",{class:"element-list"},P.map(U=>{const Q=P.length>1&&!!U.menu?.some(q=>q.some(k=>!k.selectors||k.selectors.some(Y=>U.selectors.includes(Y)))),X=Q?{class:"selectable",onClick:d(()=>y.set(U),"onClick"),onMouseEnter:d(()=>h.set(U),"onMouseEnter"),onMouseLeave:d(()=>h.set(void 0),"onMouseLeave")}:$?{class:"selected",onClick:d(()=>y.set(void 0),"onClick")}:{},z=Q||$;return Ct("li",X,[Ct(z?"button":"div",z?{type:"button"}:{},[$?Ic("chevronLeft"):null,Ct("code",{},[U.element.outerHTML]),Q?Ic("chevronRight"):null])])})))),y.get()||f.get().length===1){const U=y.get()||f.get()[0],Q=U.menu?.filter(X=>X.some(z=>!z.selectors||z.selectors.some(q=>U.selectors.includes(q))));Q?.length&&B.appendChild(Ct("ul",{class:"menu-list"},Q.map(X=>Ct("li",{},[Ct("ul",{class:"menu-items"},X.map(({id:z,title:q,description:k,iconLeft:Y,iconRight:ae,clickEvent:le})=>{const ce=le&&(()=>e.emit(le,z,K7(U)));return Ct("li",{},[Ct(ce?"button":"div",ce?{class:"menu-item",type:"button",onClick:ce}:{class:"menu-item"},[Y?Ic(Y):null,Ct("div",{class:"menu-item-content"},[Ct(k?"strong":"span",{},[q]),k&&Ct("span",{},[k])]),ae?Ic(ae):null])])}))]))))}const I=s.get();I?(Object.assign(B.style,{display:"block",left:`${B.style.position==="fixed"?I.x-window.scrollX:I.x}px`,top:`${B.style.position==="fixed"?I.y-window.scrollY:I.y}px`}),sA(B),requestAnimationFrame(()=>Y7(B,I,{topOffset:15,centered:!0}))):(W7(B),Object.assign(B.style,{display:"none"}))},"renderMenu");f.subscribe(O),y.subscribe(O);const A=d(B=>{const $=q7(B);n.set(P=>{const I=$.id?P.filter(U=>U.id!==$.id):P;return $.selectors?.length?[...I,$]:I})},"addHighlight"),R=d(B=>{B&&n.set($=>$.filter(P=>P.id!==B))},"removeHighlight"),T=d(()=>{n.set([]),o.set(new Map),i.set([]),s.set(void 0),c.set(void 0),f.set([]),p.set([]),h.set(void 0),y.set(void 0)},"resetState");let F;const N=d((B,$)=>{const P="scrollIntoView-highlight";clearTimeout(F),R(P);const I=t.querySelector(B);if(!I){console.warn(`Cannot scroll into view: ${B} not found`);return}I.scrollIntoView({behavior:"smooth",block:"center",...$});const U=`kf-${Math.random().toString(36).substring(2,15)}`;n.set(Q=>[...Q,{id:P,priority:1e3,selectors:[B],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${U} 3s linear forwards`},keyframes:`@keyframes ${U} {
|
|
218
|
-
0% { outline: 2px solid #1EA7FD; }
|
|
219
|
-
20% { outline: 2px solid #1EA7FD00; }
|
|
220
|
-
40% { outline: 2px solid #1EA7FD; }
|
|
221
|
-
60% { outline: 2px solid #1EA7FD00; }
|
|
222
|
-
80% { outline: 2px solid #1EA7FD; }
|
|
223
|
-
100% { outline: 2px solid #1EA7FD00; }
|
|
224
|
-
}`}]),F=setTimeout(()=>R(P),3500)},"scrollIntoView"),L=d(B=>{requestAnimationFrame(()=>c.set({x:B.pageX,y:B.pageY}))},"onMouseMove");t.body.addEventListener("mousemove",L),e.on(TL,A),e.on(RL,R),e.on(FL,T),e.on(BL,N),e.on(H7,({newPhase:B})=>{B==="loading"&&T()})},"useHighlights");globalThis?.FEATURES?.highlight&&nA?.ready&&nA.ready().then(Z7);var cA=d(()=>({}),"default");const{useEffect:fA}=__STORYBOOK_MODULE_PREVIEW_API__,{global:Of}=__STORYBOOK_MODULE_GLOBAL__;function Ay(){const e=Of.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}d(Ay,"getDocumentWidthAndHeight");function x_(){const e=Of.document.createElement("canvas");e.id="storybook-addon-measure";const t=e.getContext("2d");_o(t!=null);const{width:n,height:o}=Ay();return Tf(e,t,{width:n,height:o}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",Of.document.body.appendChild(e),{canvas:e,context:t,width:n,height:o}}d(x_,"createCanvas");function Tf(e,t,{width:n,height:o}){e.style.width=`${n}px`,e.style.height=`${o}px`;const i=Of.window.devicePixelRatio;e.width=Math.floor(n*i),e.height=Math.floor(o*i),t.scale(i,i)}d(Tf,"setCanvasWidthAndHeight");var wt={};function D_(){wt.canvas||(wt=x_())}d(D_,"init");function Cy(){wt.context&&wt.context.clearRect(0,0,wt.width??0,wt.height??0)}d(Cy,"clear");function __(e){Cy(),e(wt.context)}d(__,"draw");function O_(){_o(wt.canvas),_o(wt.context),Tf(wt.canvas,wt.context,{width:0,height:0});const{width:e,height:t}=Ay();Tf(wt.canvas,wt.context,{width:e,height:t}),wt.width=e,wt.height=t}d(O_,"rescale");function T_(){wt.canvas&&(Cy(),wt.canvas.parentNode?.removeChild(wt.canvas),wt={})}d(T_,"destroy");const{global:Gr}=__STORYBOOK_MODULE_GLOBAL__;var Bi={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},Wn=6;function Nm(e,{x:t,y:n,w:o,h:i,r:s}){t=t-o/2,n=n-i/2,o<2*s&&(s=o/2),i<2*s&&(s=i/2),e.beginPath(),e.moveTo(t+s,n),e.arcTo(t+o,n,t+o,n+i,s),e.arcTo(t+o,n+i,t,n+i,s),e.arcTo(t,n+i,t,n,s),e.arcTo(t,n,t+o,n,s),e.closePath()}d(Nm,"roundedRect");function R_(e,{padding:t,border:n,width:o,height:i,top:s,left:c}){const f=o-n.left-n.right-t.left-t.right,p=i-t.top-t.bottom-n.top-n.bottom;let h=c+n.left+t.left,y=s+n.top+t.top;return e==="top"?h+=f/2:e==="right"?(h+=f,y+=p/2):e==="bottom"?(h+=f/2,y+=p):e==="left"?y+=p/2:e==="center"&&(h+=f/2,y+=p/2),{x:h,y}}d(R_,"positionCoordinate");function F_(e,t,{margin:n,border:o,padding:i},s,c){let f=d(b=>0,"shift"),p=0,h=0;const y=c?1:.5,v=c?s*2:0;return e==="padding"?f=d(b=>i[b]*y+v,"shift"):e==="border"?f=d(b=>i[b]+o[b]*y+v,"shift"):e==="margin"&&(f=d(b=>i[b]+o[b]+n[b]*y+v,"shift")),t==="top"?h=-f("top"):t==="right"?p=f("right"):t==="bottom"?h=f("bottom"):t==="left"&&(p=-f("left")),{offsetX:p,offsetY:h}}d(F_,"offset");function B_(e,t){return Math.abs(e.x-t.x)<Math.abs(e.w+t.w)/2&&Math.abs(e.y-t.y)<Math.abs(e.h+t.h)/2}d(B_,"collide");function M_(e,t,n){return e==="top"?t.y=n.y-n.h-Wn:e==="right"?t.x=n.x+n.w/2+Wn+t.w/2:e==="bottom"?t.y=n.y+n.h+Wn:e==="left"&&(t.x=n.x-n.w/2-Wn-t.w/2),{x:t.x,y:t.y}}d(M_,"overlapAdjustment");function wy(e,t,{x:n,y:o,w:i,h:s},c){return Nm(e,{x:n,y:o,w:i,h:s,r:3}),e.fillStyle=`${Bi[t]}dd`,e.fill(),e.strokeStyle=Bi[t],e.stroke(),e.fillStyle=Bi.text,e.fillText(c,n,o),Nm(e,{x:n,y:o,w:i,h:s,r:3}),e.fillStyle=`${Bi[t]}dd`,e.fill(),e.strokeStyle=Bi[t],e.stroke(),e.fillStyle=Bi.text,e.fillText(c,n,o),{x:n,y:o,w:i,h:s}}d(wy,"textWithRect");function xy(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";const n=e.measureText(t),o=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent,i=n.width+Wn*2,s=o+Wn*2;return{w:i,h:s}}d(xy,"configureText");function L_(e,t,{type:n,position:o="center",text:i},s,c=!1){let{x:f,y:p}=R_(o,t);const{offsetX:h,offsetY:y}=F_(n,o,t,Wn+1,c);f+=h,p+=y;const{w:v,h:b}=xy(e,i);if(s&&B_({x:f,y:p,w:v,h:b},s)){const S=M_(o,{x:f,y:p,w:v},s);f=S.x,p=S.y}return wy(e,n,{x:f,y:p,w:v,h:b},i)}d(L_,"drawLabel");function N_(e,{w:t,h:n}){const o=t*.5+Wn,i=n*.5+Wn;return{offsetX:(e.x==="left"?-1:1)*o,offsetY:(e.y==="top"?-1:1)*i}}d(N_,"floatingOffset");function k_(e,t,{type:n,text:o}){const{floatingAlignment:i,extremities:s}=t;let c=s[i.x],f=s[i.y];const{w:p,h}=xy(e,o),{offsetX:y,offsetY:v}=N_(i,{w:p,h});return c+=y,f+=v,wy(e,n,{x:c,y:f,w:p,h},o)}d(k_,"drawFloatingLabel");function Pi(e,t,n,o){const i=[];n.forEach((s,c)=>{const f=o&&s.position==="center"?k_(e,t,s):L_(e,t,s,i[c-1],o);i[c]=f})}d(Pi,"drawStack");function z_(e,t,n,o){const i=n.reduce((s,c)=>(Object.prototype.hasOwnProperty.call(s,c.position)||(s[c.position]=[]),s[c.position]?.push(c),s),{});i.top&&Pi(e,t,i.top,o),i.right&&Pi(e,t,i.right,o),i.bottom&&Pi(e,t,i.bottom,o),i.left&&Pi(e,t,i.left,o),i.center&&Pi(e,t,i.center,o)}d(z_,"labelStacks");var cd={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},dA=30;function vr(e){return parseInt(e.replace("px",""),10)}d(vr,"pxToNumber");function wo(e){return Number.isInteger(e)?e:e.toFixed(2)}d(wo,"round");function fd(e){return e.filter(t=>t.text!==0&&t.text!=="0")}d(fd,"filterZeroValues");function j_(e){const t={top:Gr.window.scrollY,bottom:Gr.window.scrollY+Gr.window.innerHeight,left:Gr.window.scrollX,right:Gr.window.scrollX+Gr.window.innerWidth},n={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:n.left>n.right?"left":"right",y:n.top>n.bottom?"top":"bottom"}}d(j_,"floatingAlignment");function $_(e){const t=Gr.getComputedStyle(e);let{top:n,left:o,right:i,bottom:s,width:c,height:f}=e.getBoundingClientRect();const{marginTop:p,marginBottom:h,marginLeft:y,marginRight:v,paddingTop:b,paddingBottom:S,paddingLeft:w,paddingRight:x,borderBottomWidth:O,borderTopWidth:A,borderLeftWidth:R,borderRightWidth:T}=t;n=n+Gr.window.scrollY,o=o+Gr.window.scrollX,s=s+Gr.window.scrollY,i=i+Gr.window.scrollX;const F={top:vr(p),bottom:vr(h),left:vr(y),right:vr(v)},N={top:vr(b),bottom:vr(S),left:vr(w),right:vr(x)},L={top:vr(A),bottom:vr(O),left:vr(R),right:vr(T)},B={top:n-F.top,bottom:s+F.bottom,left:o-F.left,right:i+F.right};return{margin:F,padding:N,border:L,top:n,left:o,bottom:s,right:i,width:c,height:f,extremities:B,floatingAlignment:j_(B)}}d($_,"measureElement");function P_(e,{margin:t,width:n,height:o,top:i,left:s,bottom:c,right:f}){const p=o+t.bottom+t.top;e.fillStyle=cd.margin,e.fillRect(s,i-t.top,n,t.top),e.fillRect(f,i-t.top,t.right,p),e.fillRect(s,c,n,t.bottom),e.fillRect(s-t.left,i-t.top,t.left,p);const h=[{type:"margin",text:wo(t.top),position:"top"},{type:"margin",text:wo(t.right),position:"right"},{type:"margin",text:wo(t.bottom),position:"bottom"},{type:"margin",text:wo(t.left),position:"left"}];return fd(h)}d(P_,"drawMargin");function I_(e,{padding:t,border:n,width:o,height:i,top:s,left:c,bottom:f,right:p}){const h=o-n.left-n.right,y=i-t.top-t.bottom-n.top-n.bottom;e.fillStyle=cd.padding,e.fillRect(c+n.left,s+n.top,h,t.top),e.fillRect(p-t.right-n.right,s+t.top+n.top,t.right,y),e.fillRect(c+n.left,f-t.bottom-n.bottom,h,t.bottom),e.fillRect(c+n.left,s+t.top+n.top,t.left,y);const v=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return fd(v)}d(I_,"drawPadding");function H_(e,{border:t,width:n,height:o,top:i,left:s,bottom:c,right:f}){const p=o-t.top-t.bottom;e.fillStyle=cd.border,e.fillRect(s,i,n,t.top),e.fillRect(s,c-t.bottom,n,t.bottom),e.fillRect(s,i+t.top,t.left,p),e.fillRect(f-t.right,i+t.top,t.right,p);const h=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return fd(h)}d(H_,"drawBorder");function U_(e,{padding:t,border:n,width:o,height:i,top:s,left:c}){const f=o-n.left-n.right-t.left-t.right,p=i-t.top-t.bottom-n.top-n.bottom;return e.fillStyle=cd.content,e.fillRect(c+n.left+t.left,s+n.top+t.top,f,p),[{type:"content",position:"center",text:`${wo(f)} x ${wo(p)}`}]}d(U_,"drawContent");function q_(e){return t=>{if(e&&t){const n=$_(e),o=P_(t,n),i=I_(t,n),s=H_(t,n),c=U_(t,n),f=n.width<=dA*3||n.height<=dA;z_(t,n,[...c,...i,...s,...o],f)}}}d(q_,"drawBoxModel");function G_(e){__(q_(e))}d(G_,"drawSelectedElement");const{global:J7}=__STORYBOOK_MODULE_GLOBAL__;var Q7=d((e,t)=>{const n=J7.document.elementFromPoint(e,t),o=d(s=>{if(s&&s.shadowRoot){const c=s.shadowRoot.elementFromPoint(e,t);return s.isEqualNode(c)?s:c.shadowRoot?o(c):c}return s},"crawlShadows");return o(n)||n},"deepElementFromPoint"),pA,Uc={x:0,y:0};function km(e,t){pA=Q7(e,t),G_(pA)}d(km,"findAndDrawElement");var ek=d((e,t)=>{const{measureEnabled:n}=t.globals||{};return fA(()=>{if(typeof globalThis.document>"u")return;const o=d(i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),Uc.x=i.clientX,Uc.y=i.clientY})},"onPointerMove");return globalThis.document.addEventListener("pointermove",o),()=>{globalThis.document.removeEventListener("pointermove",o)}},[]),fA(()=>{const o=d(s=>{window.requestAnimationFrame(()=>{s.stopPropagation(),km(s.clientX,s.clientY)})},"onPointerOver"),i=d(()=>{window.requestAnimationFrame(()=>{O_()})},"onResize");return t.viewMode==="story"&&n&&(globalThis.document.addEventListener("pointerover",o),D_(),globalThis.window.addEventListener("resize",i),km(Uc.x,Uc.y)),()=>{globalThis.window.removeEventListener("resize",i),T_()}},[n,t.viewMode]),e()},"withMeasure"),tk=globalThis.FEATURES?.measure?[ek]:[],rk={[t8]:!1},hA=d(()=>({decorators:tk,initialGlobals:rk}),"default");const{useEffect:nk,useMemo:ak}=__STORYBOOK_MODULE_PREVIEW_API__,{global:af}=__STORYBOOK_MODULE_GLOBAL__;var gA=d(e=>{(Array.isArray(e)?e:[e]).forEach(ok)},"clearStyles"),ok=d(e=>{const t=typeof e=="string"?e:e.join(""),n=af.document.getElementById(t);n&&n.parentElement&&n.parentElement.removeChild(n)},"clearStyle"),ik=d((e,t)=>{const n=af.document.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{const o=af.document.createElement("style");o.setAttribute("id",e),o.innerHTML=t,af.document.head.appendChild(o)}},"addOutlineStyles");function V_(e){return Jr`
|
|
225
|
-
${e} body {
|
|
226
|
-
outline: 1px solid #2980b9 !important;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
${e} article {
|
|
230
|
-
outline: 1px solid #3498db !important;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
${e} nav {
|
|
234
|
-
outline: 1px solid #0088c3 !important;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
${e} aside {
|
|
238
|
-
outline: 1px solid #33a0ce !important;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
${e} section {
|
|
242
|
-
outline: 1px solid #66b8da !important;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
${e} header {
|
|
246
|
-
outline: 1px solid #99cfe7 !important;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
${e} footer {
|
|
250
|
-
outline: 1px solid #cce7f3 !important;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
${e} h1 {
|
|
254
|
-
outline: 1px solid #162544 !important;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
${e} h2 {
|
|
258
|
-
outline: 1px solid #314e6e !important;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
${e} h3 {
|
|
262
|
-
outline: 1px solid #3e5e85 !important;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
${e} h4 {
|
|
266
|
-
outline: 1px solid #449baf !important;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
${e} h5 {
|
|
270
|
-
outline: 1px solid #c7d1cb !important;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
${e} h6 {
|
|
274
|
-
outline: 1px solid #4371d0 !important;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
${e} main {
|
|
278
|
-
outline: 1px solid #2f4f90 !important;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
${e} address {
|
|
282
|
-
outline: 1px solid #1a2c51 !important;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
${e} div {
|
|
286
|
-
outline: 1px solid #036cdb !important;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
${e} p {
|
|
290
|
-
outline: 1px solid #ac050b !important;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
${e} hr {
|
|
294
|
-
outline: 1px solid #ff063f !important;
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
${e} pre {
|
|
298
|
-
outline: 1px solid #850440 !important;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
${e} blockquote {
|
|
302
|
-
outline: 1px solid #f1b8e7 !important;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
${e} ol {
|
|
306
|
-
outline: 1px solid #ff050c !important;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
${e} ul {
|
|
310
|
-
outline: 1px solid #d90416 !important;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
${e} li {
|
|
314
|
-
outline: 1px solid #d90416 !important;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
${e} dl {
|
|
318
|
-
outline: 1px solid #fd3427 !important;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
${e} dt {
|
|
322
|
-
outline: 1px solid #ff0043 !important;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
${e} dd {
|
|
326
|
-
outline: 1px solid #e80174 !important;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
${e} figure {
|
|
330
|
-
outline: 1px solid #ff00bb !important;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
${e} figcaption {
|
|
334
|
-
outline: 1px solid #bf0032 !important;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
${e} table {
|
|
338
|
-
outline: 1px solid #00cc99 !important;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
${e} caption {
|
|
342
|
-
outline: 1px solid #37ffc4 !important;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
${e} thead {
|
|
346
|
-
outline: 1px solid #98daca !important;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
${e} tbody {
|
|
350
|
-
outline: 1px solid #64a7a0 !important;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
${e} tfoot {
|
|
354
|
-
outline: 1px solid #22746b !important;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
${e} tr {
|
|
358
|
-
outline: 1px solid #86c0b2 !important;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
${e} th {
|
|
362
|
-
outline: 1px solid #a1e7d6 !important;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
${e} td {
|
|
366
|
-
outline: 1px solid #3f5a54 !important;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
${e} col {
|
|
370
|
-
outline: 1px solid #6c9a8f !important;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
${e} colgroup {
|
|
374
|
-
outline: 1px solid #6c9a9d !important;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
${e} button {
|
|
378
|
-
outline: 1px solid #da8301 !important;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
${e} datalist {
|
|
382
|
-
outline: 1px solid #c06000 !important;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
${e} fieldset {
|
|
386
|
-
outline: 1px solid #d95100 !important;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
${e} form {
|
|
390
|
-
outline: 1px solid #d23600 !important;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
${e} input {
|
|
394
|
-
outline: 1px solid #fca600 !important;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
${e} keygen {
|
|
398
|
-
outline: 1px solid #b31e00 !important;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
${e} label {
|
|
402
|
-
outline: 1px solid #ee8900 !important;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
${e} legend {
|
|
406
|
-
outline: 1px solid #de6d00 !important;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
${e} meter {
|
|
410
|
-
outline: 1px solid #e8630c !important;
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
${e} optgroup {
|
|
414
|
-
outline: 1px solid #b33600 !important;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
${e} option {
|
|
418
|
-
outline: 1px solid #ff8a00 !important;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
${e} output {
|
|
422
|
-
outline: 1px solid #ff9619 !important;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
${e} progress {
|
|
426
|
-
outline: 1px solid #e57c00 !important;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
${e} select {
|
|
430
|
-
outline: 1px solid #e26e0f !important;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
${e} textarea {
|
|
434
|
-
outline: 1px solid #cc5400 !important;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
${e} details {
|
|
438
|
-
outline: 1px solid #33848f !important;
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
${e} summary {
|
|
442
|
-
outline: 1px solid #60a1a6 !important;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
${e} command {
|
|
446
|
-
outline: 1px solid #438da1 !important;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
${e} menu {
|
|
450
|
-
outline: 1px solid #449da6 !important;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
${e} del {
|
|
454
|
-
outline: 1px solid #bf0000 !important;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
${e} ins {
|
|
458
|
-
outline: 1px solid #400000 !important;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
${e} img {
|
|
462
|
-
outline: 1px solid #22746b !important;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
${e} iframe {
|
|
466
|
-
outline: 1px solid #64a7a0 !important;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
${e} embed {
|
|
470
|
-
outline: 1px solid #98daca !important;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
${e} object {
|
|
474
|
-
outline: 1px solid #00cc99 !important;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
${e} param {
|
|
478
|
-
outline: 1px solid #37ffc4 !important;
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
${e} video {
|
|
482
|
-
outline: 1px solid #6ee866 !important;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
${e} audio {
|
|
486
|
-
outline: 1px solid #027353 !important;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
${e} source {
|
|
490
|
-
outline: 1px solid #012426 !important;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
${e} canvas {
|
|
494
|
-
outline: 1px solid #a2f570 !important;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
${e} track {
|
|
498
|
-
outline: 1px solid #59a600 !important;
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
${e} map {
|
|
502
|
-
outline: 1px solid #7be500 !important;
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
${e} area {
|
|
506
|
-
outline: 1px solid #305900 !important;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
${e} a {
|
|
510
|
-
outline: 1px solid #ff62ab !important;
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
${e} em {
|
|
514
|
-
outline: 1px solid #800b41 !important;
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
${e} strong {
|
|
518
|
-
outline: 1px solid #ff1583 !important;
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
${e} i {
|
|
522
|
-
outline: 1px solid #803156 !important;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
${e} b {
|
|
526
|
-
outline: 1px solid #cc1169 !important;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
${e} u {
|
|
530
|
-
outline: 1px solid #ff0430 !important;
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
${e} s {
|
|
534
|
-
outline: 1px solid #f805e3 !important;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
${e} small {
|
|
538
|
-
outline: 1px solid #d107b2 !important;
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
${e} abbr {
|
|
542
|
-
outline: 1px solid #4a0263 !important;
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
${e} q {
|
|
546
|
-
outline: 1px solid #240018 !important;
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
${e} cite {
|
|
550
|
-
outline: 1px solid #64003c !important;
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
${e} dfn {
|
|
554
|
-
outline: 1px solid #b4005a !important;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
${e} sub {
|
|
558
|
-
outline: 1px solid #dba0c8 !important;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
${e} sup {
|
|
562
|
-
outline: 1px solid #cc0256 !important;
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
${e} time {
|
|
566
|
-
outline: 1px solid #d6606d !important;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
${e} code {
|
|
570
|
-
outline: 1px solid #e04251 !important;
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
${e} kbd {
|
|
574
|
-
outline: 1px solid #5e001f !important;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
${e} samp {
|
|
578
|
-
outline: 1px solid #9c0033 !important;
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
${e} var {
|
|
582
|
-
outline: 1px solid #d90047 !important;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
${e} mark {
|
|
586
|
-
outline: 1px solid #ff0053 !important;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
${e} bdi {
|
|
590
|
-
outline: 1px solid #bf3668 !important;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
${e} bdo {
|
|
594
|
-
outline: 1px solid #6f1400 !important;
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
${e} ruby {
|
|
598
|
-
outline: 1px solid #ff7b93 !important;
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
${e} rt {
|
|
602
|
-
outline: 1px solid #ff2f54 !important;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
${e} rp {
|
|
606
|
-
outline: 1px solid #803e49 !important;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
${e} span {
|
|
610
|
-
outline: 1px solid #cc2643 !important;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
${e} br {
|
|
614
|
-
outline: 1px solid #db687d !important;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
${e} wbr {
|
|
618
|
-
outline: 1px solid #db175b !important;
|
|
619
|
-
}`}d(V_,"outlineCSS");var lk=d((e,t)=>{const n=t.globals||{},o=[!0,"true"].includes(n[gw]),i=t.viewMode==="docs",s=ak(()=>V_(i?'[data-story-block="true"]':".sb-show-main"),[t]);return nk(()=>{const c=i?`addon-outline-docs-${t.id}`:"addon-outline";return o?ik(c,s):gA(c),()=>{gA(c)}},[o,s,t]),e()},"withOutline"),sk=globalThis.FEATURES?.outline?[lk]:[],uk={[gw]:!1},mA=d(()=>({decorators:sk,initialGlobals:uk}),"default");const{clearAllMocks:ck,fn:fk,isMockFunction:dk,resetAllMocks:pk,restoreAllMocks:hk,uninstrumentedUserEvent:gk,within:mk}=__STORYBOOK_MODULE_TEST__;var yk=d(({parameters:e})=>{e?.test?.mockReset===!0?pk():e?.test?.clearMocks===!0?ck():e?.test?.restoreMocks!==!1&&hk()},"resetAllMocksLoader"),zm=d((e,t=0,n)=>{if(t>5||e==null)return e;if(dk(e))return n&&e.mockName(n),e;if(typeof e=="function"&&"isAction"in e&&e.isAction&&!("implicit"in e&&e.implicit)){const o=fk(e);return n&&o.mockName(n),o}if(Array.isArray(e)){t++;for(let o=0;o<e.length;o++)Object.getOwnPropertyDescriptor(e,o)?.writable&&(e[o]=zm(e[o],t));return e}if(typeof e=="object"&&e.constructor===Object){t++;for(const[o,i]of Object.entries(e))Object.getOwnPropertyDescriptor(e,o)?.writable&&(e[o]=zm(i,t,o));return e}return e},"traverseArgs"),vk=d(({initialArgs:e})=>{zm(e)},"nameSpiesAndWrapActionsInSpies"),yA=!1,bk=d(async e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=mk(e.canvasElement));const t=globalThis.window?.navigator?.clipboard;if(t&&(e.userEvent=Sy({userEvent:gk.setup()},{intercept:!0,getKeys:d(n=>Object.keys(n).filter(o=>o!=="eventWrapper"),"getKeys")}).userEvent,Object.defineProperty(globalThis.window.navigator,"clipboard",{get:d(()=>t,"get"),configurable:!0}),!yA)){const n=HTMLElement.prototype.focus;let o=HTMLElement.prototype.focus;const i=new Set;Object.defineProperties(HTMLElement.prototype,{focus:{configurable:!0,set:d(s=>{o=s},"set"),get(){return i.has(this)?n:(i.add(this),setTimeout(()=>i.delete(this),0),o)}}}),yA=!0}},"enhanceContext"),vA=d(()=>({loaders:[yk,vk,bk]}),"default"),Ek={[PL]:{value:void 0,isRotated:!1}},bA=d(()=>({initialGlobals:Ek}),"default");function dd(){return[(hA.default??hA)(),(tA.default??tA)(),(cA.default??cA)(),(mA.default??mA)(),(bA.default??bA)(),(XS.default??XS)(),(rA.default??rA)(),(vA.default??vA)()]}d(dd,"getCoreAnnotations");function Sk(e){let t;const n={_tag:"Preview",input:e,get composed(){if(t)return t;const{addons:o,...i}=e;return t=Ks(Mo([...dd(),...o??[],i])),t},meta(o){return W_(o,this)}};return globalThis.globalProjectAnnotations=n.composed,n}d(Sk,"definePreview");function Ak(e){return e}d(Ak,"definePreviewAddon");function Ck(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Preview"}d(Ck,"isPreview");function Y_(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Meta"}d(Y_,"isMeta");function W_(e,t){return{_tag:"Meta",input:e,preview:t,story(n={}){return Dy(typeof n=="function"?{render:n}:n,this)}}}d(W_,"defineMeta");function pd(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Story"}d(pd,"isStory");function Dy(e,t){let n;const o=d(()=>(n||(n=Y0(e,t.input,void 0,t.preview.composed)),n),"compose"),i=[];return{_tag:"Story",input:e,meta:t,__compose:o,__children:i,get composed(){const s=o(),{args:c,argTypes:f,parameters:p,id:h,tags:y,globals:v,storyName:b}=s;return{args:c,argTypes:f,parameters:p,id:h,tags:y,name:b,globals:v}},get play(){return e.play??t.input?.play??(async()=>{})},async run(s){await o().run(s)},test(s,c,f){const p=typeof c!="function"?c:{},h=typeof c!="function"?f:c,y=Af(this.play)||Af(h)?async({context:b})=>{await this.play?.(b),await h(b)}:async b=>{await this.play?.(b),await h(b)},v=this.extend({...p,name:s,tags:["test-fn","!autodocs",...p.tags??[]],play:y});return i.push(v),v},extend(s){return Dy({...this.input,...s,args:{...this.input.args||{},...s.args},argTypes:Bo(this.input.argTypes,s.argTypes),afterEach:[...Me(this.input?.afterEach??[]),...Me(s.afterEach??[])],beforeEach:[...Me(this.input?.beforeEach??[]),...Me(s.beforeEach??[])],decorators:[...Me(this.input?.decorators??[]),...Me(s.decorators??[])],globals:{...this.input.globals,...s.globals},loaders:[...Me(this.input?.loaders??[]),...Me(s.loaders??[])],parameters:Bo(this.input.parameters,s.parameters),tags:X_(...this.input.tags??[],...s.tags??[])},this.meta)}}}d(Dy,"defineStory");function K_(e){return"__children"in e?e.__children:[]}d(K_,"getStoryChildren");var hd=d(e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),"sanitize"),jm=d((e,t)=>{const n=hd(e);if(n==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return n},"sanitizeSafe"),wk=d((e,t)=>`${jm(e,"kind")}${t?`--${jm(t,"name")}`:""}`,"toId"),xk=d((e,t)=>`${e}:${jm(t,"test")}`,"toTestId"),Dk=d(e=>b_(e),"storyNameFromExport");function $m(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}d($m,"matches");function Rf(e,{includeStories:t,excludeStories:n}){return e!=="__esModule"&&(!t||$m(e,t))&&(!n||!$m(e,n))}d(Rf,"isExportStory");var X_=d((...e)=>{const t=e.reduce((n,o)=>(o.startsWith("!")?n.delete(o.slice(1)):n.add(o),n),new Set);return Array.from(t)},"combineTags"),xg={exports:{}},be={};var EA;function _k(){if(EA)return be;EA=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),b=Symbol.iterator;function S(j){return j===null||typeof j!="object"?null:(j=b&&j[b]||j["@@iterator"],typeof j=="function"?j:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,O={};function A(j,W,ne){this.props=j,this.context=W,this.refs=O,this.updater=ne||w}A.prototype.isReactComponent={},A.prototype.setState=function(j,W){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,W,"setState")},A.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function R(){}R.prototype=A.prototype;function T(j,W,ne){this.props=j,this.context=W,this.refs=O,this.updater=ne||w}var F=T.prototype=new R;F.constructor=T,x(F,A.prototype),F.isPureReactComponent=!0;var N=Array.isArray;function L(){}var B={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function P(j,W,ne){var ue=ne.ref;return{$$typeof:e,type:j,key:W,ref:ue!==void 0?ue:null,props:ne}}function I(j,W){return P(j.type,W,j.props)}function U(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function Q(j){var W={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(ne){return W[ne]})}var X=/\/+/g;function z(j,W){return typeof j=="object"&&j!==null&&j.key!=null?Q(""+j.key):W.toString(36)}function q(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(L,L):(j.status="pending",j.then(function(W){j.status==="pending"&&(j.status="fulfilled",j.value=W)},function(W){j.status==="pending"&&(j.status="rejected",j.reason=W)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function k(j,W,ne,ue,se){var fe=typeof j;(fe==="undefined"||fe==="boolean")&&(j=null);var pe=!1;if(j===null)pe=!0;else switch(fe){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(j.$$typeof){case e:case t:pe=!0;break;case y:return pe=j._init,k(pe(j._payload),W,ne,ue,se)}}if(pe)return se=se(j),pe=ue===""?"."+z(j,0):ue,N(se)?(ne="",pe!=null&&(ne=pe.replace(X,"$&/")+"/"),k(se,W,ne,"",function(bt){return bt})):se!=null&&(U(se)&&(se=I(se,ne+(se.key==null||j&&j.key===se.key?"":(""+se.key).replace(X,"$&/")+"/")+pe)),W.push(se)),1;pe=0;var Fe=ue===""?".":ue+":";if(N(j))for(var De=0;De<j.length;De++)ue=j[De],fe=Fe+z(ue,De),pe+=k(ue,W,ne,fe,se);else if(De=S(j),typeof De=="function")for(j=De.call(j),De=0;!(ue=j.next()).done;)ue=ue.value,fe=Fe+z(ue,De++),pe+=k(ue,W,ne,fe,se);else if(fe==="object"){if(typeof j.then=="function")return k(q(j),W,ne,ue,se);throw W=String(j),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return pe}function Y(j,W,ne){if(j==null)return j;var ue=[],se=0;return k(j,ue,"","",function(fe){return W.call(ne,fe,se++)}),ue}function ae(j){if(j._status===-1){var W=j._result;W=W(),W.then(function(ne){(j._status===0||j._status===-1)&&(j._status=1,j._result=ne)},function(ne){(j._status===0||j._status===-1)&&(j._status=2,j._result=ne)}),j._status===-1&&(j._status=0,j._result=W)}if(j._status===1)return j._result.default;throw j._result}var le=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},ce={map:Y,forEach:function(j,W,ne){Y(j,function(){W.apply(this,arguments)},ne)},count:function(j){var W=0;return Y(j,function(){W++}),W},toArray:function(j){return Y(j,function(W){return W})||[]},only:function(j){if(!U(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return be.Activity=v,be.Children=ce,be.Component=A,be.Fragment=n,be.Profiler=i,be.PureComponent=T,be.StrictMode=o,be.Suspense=p,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,be.__COMPILER_RUNTIME={__proto__:null,c:function(j){return B.H.useMemoCache(j)}},be.cache=function(j){return function(){return j.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(j,W,ne){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var ue=x({},j.props),se=j.key;if(W!=null)for(fe in W.key!==void 0&&(se=""+W.key),W)!$.call(W,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&W.ref===void 0||(ue[fe]=W[fe]);var fe=arguments.length-2;if(fe===1)ue.children=ne;else if(1<fe){for(var pe=Array(fe),Fe=0;Fe<fe;Fe++)pe[Fe]=arguments[Fe+2];ue.children=pe}return P(j.type,se,ue)},be.createContext=function(j){return j={$$typeof:c,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:s,_context:j},j},be.createElement=function(j,W,ne){var ue,se={},fe=null;if(W!=null)for(ue in W.key!==void 0&&(fe=""+W.key),W)$.call(W,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(se[ue]=W[ue]);var pe=arguments.length-2;if(pe===1)se.children=ne;else if(1<pe){for(var Fe=Array(pe),De=0;De<pe;De++)Fe[De]=arguments[De+2];se.children=Fe}if(j&&j.defaultProps)for(ue in pe=j.defaultProps,pe)se[ue]===void 0&&(se[ue]=pe[ue]);return P(j,fe,se)},be.createRef=function(){return{current:null}},be.forwardRef=function(j){return{$$typeof:f,render:j}},be.isValidElement=U,be.lazy=function(j){return{$$typeof:y,_payload:{_status:-1,_result:j},_init:ae}},be.memo=function(j,W){return{$$typeof:h,type:j,compare:W===void 0?null:W}},be.startTransition=function(j){var W=B.T,ne={};B.T=ne;try{var ue=j(),se=B.S;se!==null&&se(ne,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(L,le)}catch(fe){le(fe)}finally{W!==null&&ne.types!==null&&(W.types=ne.types),B.T=W}},be.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},be.use=function(j){return B.H.use(j)},be.useActionState=function(j,W,ne){return B.H.useActionState(j,W,ne)},be.useCallback=function(j,W){return B.H.useCallback(j,W)},be.useContext=function(j){return B.H.useContext(j)},be.useDebugValue=function(){},be.useDeferredValue=function(j,W){return B.H.useDeferredValue(j,W)},be.useEffect=function(j,W){return B.H.useEffect(j,W)},be.useEffectEvent=function(j){return B.H.useEffectEvent(j)},be.useId=function(){return B.H.useId()},be.useImperativeHandle=function(j,W,ne){return B.H.useImperativeHandle(j,W,ne)},be.useInsertionEffect=function(j,W){return B.H.useInsertionEffect(j,W)},be.useLayoutEffect=function(j,W){return B.H.useLayoutEffect(j,W)},be.useMemo=function(j,W){return B.H.useMemo(j,W)},be.useOptimistic=function(j,W){return B.H.useOptimistic(j,W)},be.useReducer=function(j,W,ne){return B.H.useReducer(j,W,ne)},be.useRef=function(j){return B.H.useRef(j)},be.useState=function(j){return B.H.useState(j)},be.useSyncExternalStore=function(j,W,ne){return B.H.useSyncExternalStore(j,W,ne)},be.useTransition=function(){return B.H.useTransition()},be.version="19.2.0",be}var SA;function _y(){return SA||(SA=1,xg.exports=_k()),xg.exports}var C=_y();const E=hw(C),Z_=e8({__proto__:null,default:E},[C]);var Ok=Object.defineProperty,uu=(e,t)=>Ok(e,"name",{value:t,configurable:!0}),Dg={exports:{}},Es={},_g={exports:{}},Og={};var AA;function Tk(){return AA||(AA=1,(function(e){function t(k,Y){var ae=k.length;k.push(Y);e:for(;0<ae;){var le=ae-1>>>1,ce=k[le];if(0<i(ce,Y))k[le]=Y,k[ae]=ce,ae=le;else break e}}function n(k){return k.length===0?null:k[0]}function o(k){if(k.length===0)return null;var Y=k[0],ae=k.pop();if(ae!==Y){k[0]=ae;e:for(var le=0,ce=k.length,j=ce>>>1;le<j;){var W=2*(le+1)-1,ne=k[W],ue=W+1,se=k[ue];if(0>i(ne,ae))ue<ce&&0>i(se,ne)?(k[le]=se,k[ue]=ae,le=ue):(k[le]=ne,k[W]=ae,le=W);else if(ue<ce&&0>i(se,ae))k[le]=se,k[ue]=ae,le=ue;else break e}}return Y}function i(k,Y){var ae=k.sortIndex-Y.sortIndex;return ae!==0?ae:k.id-Y.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var p=[],h=[],y=1,v=null,b=3,S=!1,w=!1,x=!1,O=!1,A=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function F(k){for(var Y=n(h);Y!==null;){if(Y.callback===null)o(h);else if(Y.startTime<=k)o(h),Y.sortIndex=Y.expirationTime,t(p,Y);else break;Y=n(h)}}function N(k){if(x=!1,F(k),!w)if(n(p)!==null)w=!0,L||(L=!0,Q());else{var Y=n(h);Y!==null&&q(N,Y.startTime-k)}}var L=!1,B=-1,$=5,P=-1;function I(){return O?!0:!(e.unstable_now()-P<$)}function U(){if(O=!1,L){var k=e.unstable_now();P=k;var Y=!0;try{e:{w=!1,x&&(x=!1,R(B),B=-1),S=!0;var ae=b;try{t:{for(F(k),v=n(p);v!==null&&!(v.expirationTime>k&&I());){var le=v.callback;if(typeof le=="function"){v.callback=null,b=v.priorityLevel;var ce=le(v.expirationTime<=k);if(k=e.unstable_now(),typeof ce=="function"){v.callback=ce,F(k),Y=!0;break t}v===n(p)&&o(p),F(k)}else o(p);v=n(p)}if(v!==null)Y=!0;else{var j=n(h);j!==null&&q(N,j.startTime-k),Y=!1}}break e}finally{v=null,b=ae,S=!1}Y=void 0}}finally{Y?Q():L=!1}}}var Q;if(typeof T=="function")Q=function(){T(U)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,z=X.port2;X.port1.onmessage=U,Q=function(){z.postMessage(null)}}else Q=function(){A(U,0)};function q(k,Y){B=A(function(){k(e.unstable_now())},Y)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(k){switch(b){case 1:case 2:case 3:var Y=3;break;default:Y=b}var ae=b;b=Y;try{return k()}finally{b=ae}},e.unstable_requestPaint=function(){O=!0},e.unstable_runWithPriority=function(k,Y){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var ae=b;b=k;try{return Y()}finally{b=ae}},e.unstable_scheduleCallback=function(k,Y,ae){var le=e.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?le+ae:le):ae=le,k){case 1:var ce=-1;break;case 2:ce=250;break;case 5:ce=1073741823;break;case 4:ce=1e4;break;default:ce=5e3}return ce=ae+ce,k={id:y++,callback:Y,priorityLevel:k,startTime:ae,expirationTime:ce,sortIndex:-1},ae>le?(k.sortIndex=ae,t(h,k),n(p)===null&&k===n(h)&&(x?(R(B),B=-1):x=!0,q(N,ae-le))):(k.sortIndex=ce,t(p,k),w||S||(w=!0,L||(L=!0,Q()))),k},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(k){var Y=b;return function(){var ae=b;b=Y;try{return k.apply(this,arguments)}finally{b=ae}}}})(Og)),Og}var CA;function Rk(){return CA||(CA=1,_g.exports=Tk()),_g.exports}var Tg={exports:{}},zt={};var wA;function Fk(){if(wA)return zt;wA=1;var e=_y();function t(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)h+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var o={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(p,h,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:v==null?null:""+v,children:p,containerInfo:h,implementation:y}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return zt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,zt.createPortal=function(p,h){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return s(p,h,null,y)},zt.flushSync=function(p){var h=c.T,y=o.p;try{if(c.T=null,o.p=2,p)return p()}finally{c.T=h,o.p=y,o.d.f()}},zt.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,o.d.C(p,h))},zt.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},zt.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var y=h.as,v=f(y,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,S=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;y==="style"?o.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:S}):y==="script"&&o.d.X(p,{crossOrigin:v,integrity:b,fetchPriority:S,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},zt.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var y=f(h.as,h.crossOrigin);o.d.M(p,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&o.d.M(p)},zt.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var y=h.as,v=f(y,h.crossOrigin);o.d.L(p,y,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},zt.preloadModule=function(p,h){if(typeof p=="string")if(h){var y=f(h.as,h.crossOrigin);o.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else o.d.m(p)},zt.requestFormReset=function(p){o.d.r(p)},zt.unstable_batchedUpdates=function(p,h){return p(h)},zt.useFormState=function(p,h,y){return c.H.useFormState(p,h,y)},zt.useFormStatus=function(){return c.H.useHostTransitionStatus()},zt.version="19.2.0",zt}var xA;function J_(){if(xA)return Tg.exports;xA=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Tg.exports=Fk(),Tg.exports}var DA;function Bk(){if(DA)return Es;DA=1;var e=Rk(),t=_y(),n=J_();function o(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)a+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function s(r){var a=r,l=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(l=a.return),r=a.return;while(r)}return a.tag===3?l:null}function c(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function f(r){if(r.tag===31){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function p(r){if(s(r)!==r)throw Error(o(188))}function h(r){var a=r.alternate;if(!a){if(a=s(r),a===null)throw Error(o(188));return a!==r?null:r}for(var l=r,u=a;;){var g=l.return;if(g===null)break;var m=g.alternate;if(m===null){if(u=g.return,u!==null){l=u;continue}break}if(g.child===m.child){for(m=g.child;m;){if(m===l)return p(g),r;if(m===u)return p(g),a;m=m.sibling}throw Error(o(188))}if(l.return!==u.return)l=g,u=m;else{for(var D=!1,M=g.child;M;){if(M===l){D=!0,l=g,u=m;break}if(M===u){D=!0,u=g,l=m;break}M=M.sibling}if(!D){for(M=m.child;M;){if(M===l){D=!0,l=m,u=g;break}if(M===u){D=!0,u=m,l=g;break}M=M.sibling}if(!D)throw Error(o(189))}}if(l.alternate!==u)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?r:a}function y(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=y(r),a!==null)return a;r=r.sibling}return null}var v=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),T=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),U=Symbol.iterator;function Q(r){return r===null||typeof r!="object"?null:(r=U&&r[U]||r["@@iterator"],typeof r=="function"?r:null)}var X=Symbol.for("react.client.reference");function z(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===X?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case x:return"Fragment";case A:return"Profiler";case O:return"StrictMode";case N:return"Suspense";case L:return"SuspenseList";case P:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case w:return"Portal";case T:return r.displayName||"Context";case R:return(r._context.displayName||"Context")+".Consumer";case F:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case B:return a=r.displayName||null,a!==null?a:z(r.type)||"Memo";case $:a=r._payload,r=r._init;try{return z(r(a))}catch{}}return null}var q=Array.isArray,k=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},le=[],ce=-1;function j(r){return{current:r}}function W(r){0>ce||(r.current=le[ce],le[ce]=null,ce--)}function ne(r,a){ce++,le[ce]=r.current,r.current=a}var ue=j(null),se=j(null),fe=j(null),pe=j(null);function Fe(r,a){switch(ne(fe,a),ne(se,r),ne(ue,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?SE(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=SE(a),r=AE(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}W(ue),ne(ue,r)}function De(){W(ue),W(se),W(fe)}function bt(r){r.memoizedState!==null&&ne(pe,r);var a=ue.current,l=AE(a,r.type);a!==l&&(ne(se,r),ne(ue,l))}function Ke(r){se.current===r&&(W(ue),W(se)),pe.current===r&&(W(pe),gs._currentValue=ae)}var Re,tt;function Le(r){if(Re===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);Re=a&&a[1]||"",tt=-1<l.stack.indexOf(`
|
|
620
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
621
|
-
`+Re+r+tt}var Be=!1;function Ie(r,a){if(!r||Be)return"";Be=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(a){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(te){var ee=te}Reflect.construct(r,[],ie)}else{try{ie.call()}catch(te){ee=te}r.call(ie.prototype)}}else{try{throw Error()}catch(te){ee=te}(ie=r())&&typeof ie.catch=="function"&&ie.catch(function(){})}}catch(te){if(te&&ee&&typeof te.stack=="string")return[te.stack,ee.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=u.DetermineComponentFrameRoot(),D=m[0],M=m[1];if(D&&M){var H=D.split(`
|
|
622
|
-
`),J=M.split(`
|
|
623
|
-
`);for(g=u=0;u<H.length&&!H[u].includes("DetermineComponentFrameRoot");)u++;for(;g<J.length&&!J[g].includes("DetermineComponentFrameRoot");)g++;if(u===H.length||g===J.length)for(u=H.length-1,g=J.length-1;1<=u&&0<=g&&H[u]!==J[g];)g--;for(;1<=u&&0<=g;u--,g--)if(H[u]!==J[g]){if(u!==1||g!==1)do if(u--,g--,0>g||H[u]!==J[g]){var re=`
|
|
624
|
-
`+H[u].replace(" at new "," at ");return r.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",r.displayName)),re}while(1<=u&&0<=g);break}}}finally{Be=!1,Error.prepareStackTrace=l}return(l=r?r.displayName||r.name:"")?Le(l):""}function Nt(r,a){switch(r.tag){case 26:case 27:case 5:return Le(r.type);case 16:return Le("Lazy");case 13:return r.child!==a&&a!==null?Le("Suspense Fallback"):Le("Suspense");case 19:return Le("SuspenseList");case 0:case 15:return Ie(r.type,!1);case 11:return Ie(r.type.render,!1);case 1:return Ie(r.type,!0);case 31:return Le("Activity");default:return""}}function lt(r){try{var a="",l=null;do a+=Nt(r,l),l=r,r=r.return;while(r);return a}catch(u){return`
|
|
625
|
-
Error generating stack: `+u.message+`
|
|
626
|
-
`+u.stack}}var Sr=Object.prototype.hasOwnProperty,Ot=e.unstable_scheduleCallback,sr=e.unstable_cancelCallback,an=e.unstable_shouldYield,qt=e.unstable_requestPaint,st=e.unstable_now,bn=e.unstable_getCurrentPriorityLevel,on=e.unstable_ImmediatePriority,Dl=e.unstable_UserBlockingPriority,Za=e.unstable_NormalPriority,DB=e.unstable_LowPriority,tb=e.unstable_IdlePriority,_B=e.log,OB=e.unstable_setDisableYieldValue,_l=null,ur=null;function ia(r){if(typeof _B=="function"&&OB(r),ur&&typeof ur.setStrictMode=="function")try{ur.setStrictMode(_l,r)}catch{}}var cr=Math.clz32?Math.clz32:FB,TB=Math.log,RB=Math.LN2;function FB(r){return r>>>=0,r===0?32:31-(TB(r)/RB|0)|0}var bu=256,Eu=262144,Su=4194304;function Ja(r){var a=r&42;if(a!==0)return a;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function Au(r,a,l){var u=r.pendingLanes;if(u===0)return 0;var g=0,m=r.suspendedLanes,D=r.pingedLanes;r=r.warmLanes;var M=u&134217727;return M!==0?(u=M&~m,u!==0?g=Ja(u):(D&=M,D!==0?g=Ja(D):l||(l=M&~r,l!==0&&(g=Ja(l))))):(M=u&~m,M!==0?g=Ja(M):D!==0?g=Ja(D):l||(l=u&~r,l!==0&&(g=Ja(l)))),g===0?0:a!==0&&a!==g&&(a&m)===0&&(m=g&-g,l=a&-a,m>=l||m===32&&(l&4194048)!==0)?a:g}function Ol(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function BB(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function rb(){var r=Su;return Su<<=1,(Su&62914560)===0&&(Su=4194304),r}function Xd(r){for(var a=[],l=0;31>l;l++)a.push(r);return a}function Tl(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function MB(r,a,l,u,g,m){var D=r.pendingLanes;r.pendingLanes=l,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=l,r.entangledLanes&=l,r.errorRecoveryDisabledLanes&=l,r.shellSuspendCounter=0;var M=r.entanglements,H=r.expirationTimes,J=r.hiddenUpdates;for(l=D&~l;0<l;){var re=31-cr(l),ie=1<<re;M[re]=0,H[re]=-1;var ee=J[re];if(ee!==null)for(J[re]=null,re=0;re<ee.length;re++){var te=ee[re];te!==null&&(te.lane&=-536870913)}l&=~ie}u!==0&&nb(r,u,0),m!==0&&g===0&&r.tag!==0&&(r.suspendedLanes|=m&~(D&~a))}function nb(r,a,l){r.pendingLanes|=a,r.suspendedLanes&=~a;var u=31-cr(a);r.entangledLanes|=a,r.entanglements[u]=r.entanglements[u]|1073741824|l&261930}function ab(r,a){var l=r.entangledLanes|=a;for(r=r.entanglements;l;){var u=31-cr(l),g=1<<u;g&a|r[u]&a&&(r[u]|=a),l&=~g}}function ob(r,a){var l=a&-a;return l=(l&42)!==0?1:Zd(l),(l&(r.suspendedLanes|a))!==0?0:l}function Zd(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Jd(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function ib(){var r=Y.p;return r!==0?r:(r=window.event,r===void 0?32:GE(r.type))}function lb(r,a){var l=Y.p;try{return Y.p=r,a()}finally{Y.p=l}}var la=Math.random().toString(36).slice(2),Tt="__reactFiber$"+la,Gt="__reactProps$"+la,Wo="__reactContainer$"+la,Qd="__reactEvents$"+la,LB="__reactListeners$"+la,NB="__reactHandles$"+la,sb="__reactResources$"+la,Rl="__reactMarker$"+la;function ep(r){delete r[Tt],delete r[Gt],delete r[Qd],delete r[LB],delete r[NB]}function Ko(r){var a=r[Tt];if(a)return a;for(var l=r.parentNode;l;){if(a=l[Wo]||l[Tt]){if(l=a.alternate,a.child!==null||l!==null&&l.child!==null)for(r=TE(r);r!==null;){if(l=r[Tt])return l;r=TE(r)}return a}r=l,l=r.parentNode}return null}function Xo(r){if(r=r[Tt]||r[Wo]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function Fl(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(o(33))}function Zo(r){var a=r[sb];return a||(a=r[sb]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function xt(r){r[Rl]=!0}var ub=new Set,cb={};function Qa(r,a){Jo(r,a),Jo(r+"Capture",a)}function Jo(r,a){for(cb[r]=a,r=0;r<a.length;r++)ub.add(a[r])}var kB=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),fb={},db={};function zB(r){return Sr.call(db,r)?!0:Sr.call(fb,r)?!1:kB.test(r)?db[r]=!0:(fb[r]=!0,!1)}function Cu(r,a,l){if(zB(a))if(l===null)r.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var u=a.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+l)}}function wu(r,a,l){if(l===null)r.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+l)}}function En(r,a,l,u){if(u===null)r.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(l);return}r.setAttributeNS(a,l,""+u)}}function Ar(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function pb(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function jB(r,a,l){var u=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);if(!r.hasOwnProperty(a)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var g=u.get,m=u.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return g.call(this)},set:function(D){l=""+D,m.call(this,D)}}),Object.defineProperty(r,a,{enumerable:u.enumerable}),{getValue:function(){return l},setValue:function(D){l=""+D},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function tp(r){if(!r._valueTracker){var a=pb(r)?"checked":"value";r._valueTracker=jB(r,a,""+r[a])}}function hb(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var l=a.getValue(),u="";return r&&(u=pb(r)?r.checked?"true":"false":r.value),r=u,r!==l?(a.setValue(r),!0):!1}function xu(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var $B=/[\n"\\]/g;function Cr(r){return r.replace($B,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function rp(r,a,l,u,g,m,D,M){r.name="",D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?r.type=D:r.removeAttribute("type"),a!=null?D==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+Ar(a)):r.value!==""+Ar(a)&&(r.value=""+Ar(a)):D!=="submit"&&D!=="reset"||r.removeAttribute("value"),a!=null?np(r,D,Ar(a)):l!=null?np(r,D,Ar(l)):u!=null&&r.removeAttribute("value"),g==null&&m!=null&&(r.defaultChecked=!!m),g!=null&&(r.checked=g&&typeof g!="function"&&typeof g!="symbol"),M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?r.name=""+Ar(M):r.removeAttribute("name")}function gb(r,a,l,u,g,m,D,M){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(r.type=m),a!=null||l!=null){if(!(m!=="submit"&&m!=="reset"||a!=null)){tp(r);return}l=l!=null?""+Ar(l):"",a=a!=null?""+Ar(a):l,M||a===r.value||(r.value=a),r.defaultValue=a}u=u??g,u=typeof u!="function"&&typeof u!="symbol"&&!!u,r.checked=M?r.checked:!!u,r.defaultChecked=!!u,D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(r.name=D),tp(r)}function np(r,a,l){a==="number"&&xu(r.ownerDocument)===r||r.defaultValue===""+l||(r.defaultValue=""+l)}function Qo(r,a,l,u){if(r=r.options,a){a={};for(var g=0;g<l.length;g++)a["$"+l[g]]=!0;for(l=0;l<r.length;l++)g=a.hasOwnProperty("$"+r[l].value),r[l].selected!==g&&(r[l].selected=g),g&&u&&(r[l].defaultSelected=!0)}else{for(l=""+Ar(l),a=null,g=0;g<r.length;g++){if(r[g].value===l){r[g].selected=!0,u&&(r[g].defaultSelected=!0);return}a!==null||r[g].disabled||(a=r[g])}a!==null&&(a.selected=!0)}}function mb(r,a,l){if(a!=null&&(a=""+Ar(a),a!==r.value&&(r.value=a),l==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=l!=null?""+Ar(l):""}function yb(r,a,l,u){if(a==null){if(u!=null){if(l!=null)throw Error(o(92));if(q(u)){if(1<u.length)throw Error(o(93));u=u[0]}l=u}l==null&&(l=""),a=l}l=Ar(a),r.defaultValue=l,u=r.textContent,u===l&&u!==""&&u!==null&&(r.value=u),tp(r)}function ei(r,a){if(a){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=a;return}}r.textContent=a}var PB=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function vb(r,a,l){var u=a.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?u?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":u?r.setProperty(a,l):typeof l!="number"||l===0||PB.has(a)?a==="float"?r.cssFloat=l:r[a]=(""+l).trim():r[a]=l+"px"}function bb(r,a,l){if(a!=null&&typeof a!="object")throw Error(o(62));if(r=r.style,l!=null){for(var u in l)!l.hasOwnProperty(u)||a!=null&&a.hasOwnProperty(u)||(u.indexOf("--")===0?r.setProperty(u,""):u==="float"?r.cssFloat="":r[u]="");for(var g in a)u=a[g],a.hasOwnProperty(g)&&l[g]!==u&&vb(r,g,u)}else for(var m in a)a.hasOwnProperty(m)&&vb(r,m,a[m])}function ap(r){if(r.indexOf("-")===-1)return!1;switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var IB=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),HB=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Du(r){return HB.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Sn(){}var op=null;function ip(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var ti=null,ri=null;function Eb(r){var a=Xo(r);if(a&&(r=a.stateNode)){var l=r[Gt]||null;e:switch(r=a.stateNode,a.type){case"input":if(rp(r,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),a=l.name,l.type==="radio"&&a!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Cr(""+a)+'"][type="radio"]'),a=0;a<l.length;a++){var u=l[a];if(u!==r&&u.form===r.form){var g=u[Gt]||null;if(!g)throw Error(o(90));rp(u,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(a=0;a<l.length;a++)u=l[a],u.form===r.form&&hb(u)}break e;case"textarea":mb(r,l.value,l.defaultValue);break e;case"select":a=l.value,a!=null&&Qo(r,!!l.multiple,a,!1)}}}var lp=!1;function Sb(r,a,l){if(lp)return r(a,l);lp=!0;try{var u=r(a);return u}finally{if(lp=!1,(ti!==null||ri!==null)&&(pc(),ti&&(a=ti,r=ri,ri=ti=null,Eb(a),r)))for(a=0;a<r.length;a++)Eb(r[a])}}function Bl(r,a){var l=r.stateNode;if(l===null)return null;var u=l[Gt]||null;if(u===null)return null;l=u[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(r=r.type,u=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!u;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(o(231,a,typeof l));return l}var An=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sp=!1;if(An)try{var Ml={};Object.defineProperty(Ml,"passive",{get:function(){sp=!0}}),window.addEventListener("test",Ml,Ml),window.removeEventListener("test",Ml,Ml)}catch{sp=!1}var sa=null,up=null,_u=null;function Ab(){if(_u)return _u;var r,a=up,l=a.length,u,g="value"in sa?sa.value:sa.textContent,m=g.length;for(r=0;r<l&&a[r]===g[r];r++);var D=l-r;for(u=1;u<=D&&a[l-u]===g[m-u];u++);return _u=g.slice(r,1<u?1-u:void 0)}function Ou(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function Tu(){return!0}function Cb(){return!1}function Vt(r){function a(l,u,g,m,D){this._reactName=l,this._targetInst=g,this.type=u,this.nativeEvent=m,this.target=D,this.currentTarget=null;for(var M in r)r.hasOwnProperty(M)&&(l=r[M],this[M]=l?l(m):m[M]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Tu:Cb,this.isPropagationStopped=Cb,this}return v(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Tu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Tu)},persist:function(){},isPersistent:Tu}),a}var eo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ru=Vt(eo),Ll=v({},eo,{view:0,detail:0}),UB=Vt(Ll),cp,fp,Nl,Fu=v({},Ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pp,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Nl&&(Nl&&r.type==="mousemove"?(cp=r.screenX-Nl.screenX,fp=r.screenY-Nl.screenY):fp=cp=0,Nl=r),cp)},movementY:function(r){return"movementY"in r?r.movementY:fp}}),wb=Vt(Fu),qB=v({},Fu,{dataTransfer:0}),GB=Vt(qB),VB=v({},Ll,{relatedTarget:0}),dp=Vt(VB),YB=v({},eo,{animationName:0,elapsedTime:0,pseudoElement:0}),WB=Vt(YB),KB=v({},eo,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),XB=Vt(KB),ZB=v({},eo,{data:0}),xb=Vt(ZB),JB={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},QB={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},e6={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function t6(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=e6[r])?!!a[r]:!1}function pp(){return t6}var r6=v({},Ll,{key:function(r){if(r.key){var a=JB[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=Ou(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?QB[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pp,charCode:function(r){return r.type==="keypress"?Ou(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Ou(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),n6=Vt(r6),a6=v({},Fu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Db=Vt(a6),o6=v({},Ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pp}),i6=Vt(o6),l6=v({},eo,{propertyName:0,elapsedTime:0,pseudoElement:0}),s6=Vt(l6),u6=v({},Fu,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),c6=Vt(u6),f6=v({},eo,{newState:0,oldState:0}),d6=Vt(f6),p6=[9,13,27,32],hp=An&&"CompositionEvent"in window,kl=null;An&&"documentMode"in document&&(kl=document.documentMode);var h6=An&&"TextEvent"in window&&!kl,_b=An&&(!hp||kl&&8<kl&&11>=kl),Ob=" ",Tb=!1;function Rb(r,a){switch(r){case"keyup":return p6.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fb(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var ni=!1;function g6(r,a){switch(r){case"compositionend":return Fb(a);case"keypress":return a.which!==32?null:(Tb=!0,Ob);case"textInput":return r=a.data,r===Ob&&Tb?null:r;default:return null}}function m6(r,a){if(ni)return r==="compositionend"||!hp&&Rb(r,a)?(r=Ab(),_u=up=sa=null,ni=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return _b&&a.locale!=="ko"?null:a.data;default:return null}}var y6={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Bb(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!y6[r.type]:a==="textarea"}function Mb(r,a,l,u){ti?ri?ri.push(u):ri=[u]:ti=u,a=Ec(a,"onChange"),0<a.length&&(l=new Ru("onChange","change",null,l,u),r.push({event:l,listeners:a}))}var zl=null,jl=null;function v6(r){gE(r,0)}function Bu(r){var a=Fl(r);if(hb(a))return r}function Lb(r,a){if(r==="change")return a}var Nb=!1;if(An){var gp;if(An){var mp="oninput"in document;if(!mp){var kb=document.createElement("div");kb.setAttribute("oninput","return;"),mp=typeof kb.oninput=="function"}gp=mp}else gp=!1;Nb=gp&&(!document.documentMode||9<document.documentMode)}function zb(){zl&&(zl.detachEvent("onpropertychange",jb),jl=zl=null)}function jb(r){if(r.propertyName==="value"&&Bu(jl)){var a=[];Mb(a,jl,r,ip(r)),Sb(v6,a)}}function b6(r,a,l){r==="focusin"?(zb(),zl=a,jl=l,zl.attachEvent("onpropertychange",jb)):r==="focusout"&&zb()}function E6(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Bu(jl)}function S6(r,a){if(r==="click")return Bu(a)}function A6(r,a){if(r==="input"||r==="change")return Bu(a)}function C6(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var fr=typeof Object.is=="function"?Object.is:C6;function $l(r,a){if(fr(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var l=Object.keys(r),u=Object.keys(a);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var g=l[u];if(!Sr.call(a,g)||!fr(r[g],a[g]))return!1}return!0}function $b(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Pb(r,a){var l=$b(r);r=0;for(var u;l;){if(l.nodeType===3){if(u=r+l.textContent.length,r<=a&&u>=a)return{node:l,offset:a-r};r=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=$b(l)}}function Ib(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?Ib(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function Hb(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=xu(r.document);a instanceof r.HTMLIFrameElement;){try{var l=typeof a.contentWindow.location.href=="string"}catch{l=!1}if(l)r=a.contentWindow;else break;a=xu(r.document)}return a}function yp(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var w6=An&&"documentMode"in document&&11>=document.documentMode,ai=null,vp=null,Pl=null,bp=!1;function Ub(r,a,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;bp||ai==null||ai!==xu(u)||(u=ai,"selectionStart"in u&&yp(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Pl&&$l(Pl,u)||(Pl=u,u=Ec(vp,"onSelect"),0<u.length&&(a=new Ru("onSelect","select",null,a,l),r.push({event:a,listeners:u}),a.target=ai)))}function to(r,a){var l={};return l[r.toLowerCase()]=a.toLowerCase(),l["Webkit"+r]="webkit"+a,l["Moz"+r]="moz"+a,l}var oi={animationend:to("Animation","AnimationEnd"),animationiteration:to("Animation","AnimationIteration"),animationstart:to("Animation","AnimationStart"),transitionrun:to("Transition","TransitionRun"),transitionstart:to("Transition","TransitionStart"),transitioncancel:to("Transition","TransitionCancel"),transitionend:to("Transition","TransitionEnd")},Ep={},qb={};An&&(qb=document.createElement("div").style,"AnimationEvent"in window||(delete oi.animationend.animation,delete oi.animationiteration.animation,delete oi.animationstart.animation),"TransitionEvent"in window||delete oi.transitionend.transition);function ro(r){if(Ep[r])return Ep[r];if(!oi[r])return r;var a=oi[r],l;for(l in a)if(a.hasOwnProperty(l)&&l in qb)return Ep[r]=a[l];return r}var Gb=ro("animationend"),Vb=ro("animationiteration"),Yb=ro("animationstart"),x6=ro("transitionrun"),D6=ro("transitionstart"),_6=ro("transitioncancel"),Wb=ro("transitionend"),Kb=new Map,Sp="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Sp.push("scrollEnd");function jr(r,a){Kb.set(r,a),Qa(a,[r])}var Mu=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},wr=[],ii=0,Ap=0;function Lu(){for(var r=ii,a=Ap=ii=0;a<r;){var l=wr[a];wr[a++]=null;var u=wr[a];wr[a++]=null;var g=wr[a];wr[a++]=null;var m=wr[a];if(wr[a++]=null,u!==null&&g!==null){var D=u.pending;D===null?g.next=g:(g.next=D.next,D.next=g),u.pending=g}m!==0&&Xb(l,g,m)}}function Nu(r,a,l,u){wr[ii++]=r,wr[ii++]=a,wr[ii++]=l,wr[ii++]=u,Ap|=u,r.lanes|=u,r=r.alternate,r!==null&&(r.lanes|=u)}function Cp(r,a,l,u){return Nu(r,a,l,u),ku(r)}function no(r,a){return Nu(r,null,null,a),ku(r)}function Xb(r,a,l){r.lanes|=l;var u=r.alternate;u!==null&&(u.lanes|=l);for(var g=!1,m=r.return;m!==null;)m.childLanes|=l,u=m.alternate,u!==null&&(u.childLanes|=l),m.tag===22&&(r=m.stateNode,r===null||r._visibility&1||(g=!0)),r=m,m=m.return;return r.tag===3?(m=r.stateNode,g&&a!==null&&(g=31-cr(l),r=m.hiddenUpdates,u=r[g],u===null?r[g]=[a]:u.push(a),a.lane=l|536870912),m):null}function ku(r){if(50<ss)throw ss=0,Bh=null,Error(o(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var li={};function O6(r,a,l,u){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dr(r,a,l,u){return new O6(r,a,l,u)}function wp(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Cn(r,a){var l=r.alternate;return l===null?(l=dr(r.tag,a,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=a,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&65011712,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,a=r.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l.refCleanup=r.refCleanup,l}function Zb(r,a){r.flags&=65011714;var l=r.alternate;return l===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=l.childLanes,r.lanes=l.lanes,r.child=l.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=l.memoizedProps,r.memoizedState=l.memoizedState,r.updateQueue=l.updateQueue,r.type=l.type,a=l.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function zu(r,a,l,u,g,m){var D=0;if(u=r,typeof r=="function")wp(r)&&(D=1);else if(typeof r=="string")D=MM(r,l,ue.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case P:return r=dr(31,l,a,g),r.elementType=P,r.lanes=m,r;case x:return ao(l.children,g,m,a);case O:D=8,g|=24;break;case A:return r=dr(12,l,a,g|2),r.elementType=A,r.lanes=m,r;case N:return r=dr(13,l,a,g),r.elementType=N,r.lanes=m,r;case L:return r=dr(19,l,a,g),r.elementType=L,r.lanes=m,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case T:D=10;break e;case R:D=9;break e;case F:D=11;break e;case B:D=14;break e;case $:D=16,u=null;break e}D=29,l=Error(o(130,r===null?"null":typeof r,"")),u=null}return a=dr(D,l,a,g),a.elementType=r,a.type=u,a.lanes=m,a}function ao(r,a,l,u){return r=dr(7,r,u,a),r.lanes=l,r}function xp(r,a,l){return r=dr(6,r,null,a),r.lanes=l,r}function Jb(r){var a=dr(18,null,null,0);return a.stateNode=r,a}function Dp(r,a,l){return a=dr(4,r.children!==null?r.children:[],r.key,a),a.lanes=l,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var Qb=new WeakMap;function xr(r,a){if(typeof r=="object"&&r!==null){var l=Qb.get(r);return l!==void 0?l:(a={value:r,source:a,stack:lt(a)},Qb.set(r,a),a)}return{value:r,source:a,stack:lt(a)}}var si=[],ui=0,ju=null,Il=0,Dr=[],_r=0,ua=null,ln=1,sn="";function wn(r,a){si[ui++]=Il,si[ui++]=ju,ju=r,Il=a}function e1(r,a,l){Dr[_r++]=ln,Dr[_r++]=sn,Dr[_r++]=ua,ua=r;var u=ln;r=sn;var g=32-cr(u)-1;u&=~(1<<g),l+=1;var m=32-cr(a)+g;if(30<m){var D=g-g%5;m=(u&(1<<D)-1).toString(32),u>>=D,g-=D,ln=1<<32-cr(a)+g|l<<g|u,sn=m+r}else ln=1<<m|l<<g|u,sn=r}function _p(r){r.return!==null&&(wn(r,1),e1(r,1,0))}function Op(r){for(;r===ju;)ju=si[--ui],si[ui]=null,Il=si[--ui],si[ui]=null;for(;r===ua;)ua=Dr[--_r],Dr[_r]=null,sn=Dr[--_r],Dr[_r]=null,ln=Dr[--_r],Dr[_r]=null}function t1(r,a){Dr[_r++]=ln,Dr[_r++]=sn,Dr[_r++]=ua,ln=a.id,sn=a.overflow,ua=r}var Rt=null,Ze=null,Te=!1,ca=null,Or=!1,Tp=Error(o(519));function fa(r){var a=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Hl(xr(a,r)),Tp}function r1(r){var a=r.stateNode,l=r.type,u=r.memoizedProps;switch(a[Tt]=r,a[Gt]=u,l){case"dialog":xe("cancel",a),xe("close",a);break;case"iframe":case"object":case"embed":xe("load",a);break;case"video":case"audio":for(l=0;l<cs.length;l++)xe(cs[l],a);break;case"source":xe("error",a);break;case"img":case"image":case"link":xe("error",a),xe("load",a);break;case"details":xe("toggle",a);break;case"input":xe("invalid",a),gb(a,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":xe("invalid",a);break;case"textarea":xe("invalid",a),yb(a,u.value,u.defaultValue,u.children)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||a.textContent===""+l||u.suppressHydrationWarning===!0||bE(a.textContent,l)?(u.popover!=null&&(xe("beforetoggle",a),xe("toggle",a)),u.onScroll!=null&&xe("scroll",a),u.onScrollEnd!=null&&xe("scrollend",a),u.onClick!=null&&(a.onclick=Sn),a=!0):a=!1,a||fa(r,!0)}function n1(r){for(Rt=r.return;Rt;)switch(Rt.tag){case 5:case 31:case 13:Or=!1;return;case 27:case 3:Or=!0;return;default:Rt=Rt.return}}function ci(r){if(r!==Rt)return!1;if(!Te)return n1(r),Te=!0,!1;var a=r.tag,l;if((l=a!==3&&a!==27)&&((l=a===5)&&(l=r.type,l=!(l!=="form"&&l!=="button")||Yh(r.type,r.memoizedProps)),l=!l),l&&Ze&&fa(r),n1(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));Ze=OE(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(317));Ze=OE(r)}else a===27?(a=Ze,xa(r.type)?(r=Jh,Jh=null,Ze=r):Ze=a):Ze=Rt?Rr(r.stateNode.nextSibling):null;return!0}function oo(){Ze=Rt=null,Te=!1}function Rp(){var r=ca;return r!==null&&(Xt===null?Xt=r:Xt.push.apply(Xt,r),ca=null),r}function Hl(r){ca===null?ca=[r]:ca.push(r)}var Fp=j(null),io=null,xn=null;function da(r,a,l){ne(Fp,a._currentValue),a._currentValue=l}function Dn(r){r._currentValue=Fp.current,W(Fp)}function Bp(r,a,l){for(;r!==null;){var u=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,u!==null&&(u.childLanes|=a)):u!==null&&(u.childLanes&a)!==a&&(u.childLanes|=a),r===l)break;r=r.return}}function Mp(r,a,l,u){var g=r.child;for(g!==null&&(g.return=r);g!==null;){var m=g.dependencies;if(m!==null){var D=g.child;m=m.firstContext;e:for(;m!==null;){var M=m;m=g;for(var H=0;H<a.length;H++)if(M.context===a[H]){m.lanes|=l,M=m.alternate,M!==null&&(M.lanes|=l),Bp(m.return,l,r),u||(D=null);break e}m=M.next}}else if(g.tag===18){if(D=g.return,D===null)throw Error(o(341));D.lanes|=l,m=D.alternate,m!==null&&(m.lanes|=l),Bp(D,l,r),D=null}else D=g.child;if(D!==null)D.return=g;else for(D=g;D!==null;){if(D===r){D=null;break}if(g=D.sibling,g!==null){g.return=D.return,D=g;break}D=D.return}g=D}}function fi(r,a,l,u){r=null;for(var g=a,m=!1;g!==null;){if(!m){if((g.flags&524288)!==0)m=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var D=g.alternate;if(D===null)throw Error(o(387));if(D=D.memoizedProps,D!==null){var M=g.type;fr(g.pendingProps.value,D.value)||(r!==null?r.push(M):r=[M])}}else if(g===pe.current){if(D=g.alternate,D===null)throw Error(o(387));D.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(r!==null?r.push(gs):r=[gs])}g=g.return}r!==null&&Mp(a,r,l,u),a.flags|=262144}function $u(r){for(r=r.firstContext;r!==null;){if(!fr(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function lo(r){io=r,xn=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Ft(r){return a1(io,r)}function Pu(r,a){return io===null&&lo(r),a1(r,a)}function a1(r,a){var l=a._currentValue;if(a={context:a,memoizedValue:l,next:null},xn===null){if(r===null)throw Error(o(308));xn=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else xn=xn.next=a;return l}var T6=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(l,u){r.push(u)}};this.abort=function(){a.aborted=!0,r.forEach(function(l){return l()})}},R6=e.unstable_scheduleCallback,F6=e.unstable_NormalPriority,ht={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Lp(){return{controller:new T6,data:new Map,refCount:0}}function Ul(r){r.refCount--,r.refCount===0&&R6(F6,function(){r.controller.abort()})}var ql=null,Np=0,di=0,pi=null;function B6(r,a){if(ql===null){var l=ql=[];Np=0,di=jh(),pi={status:"pending",value:void 0,then:function(u){l.push(u)}}}return Np++,a.then(o1,o1),a}function o1(){if(--Np===0&&ql!==null){pi!==null&&(pi.status="fulfilled");var r=ql;ql=null,di=0,pi=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function M6(r,a){var l=[],u={status:"pending",value:null,reason:null,then:function(g){l.push(g)}};return r.then(function(){u.status="fulfilled",u.value=a;for(var g=0;g<l.length;g++)(0,l[g])(a)},function(g){for(u.status="rejected",u.reason=g,g=0;g<l.length;g++)(0,l[g])(void 0)}),u}var i1=k.S;k.S=function(r,a){U2=st(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&B6(r,a),i1!==null&&i1(r,a)};var so=j(null);function kp(){var r=so.current;return r!==null?r:We.pooledCache}function Iu(r,a){a===null?ne(so,so.current):ne(so,a.pool)}function l1(){var r=kp();return r===null?null:{parent:ht._currentValue,pool:r}}var hi=Error(o(460)),zp=Error(o(474)),Hu=Error(o(542)),Uu={then:function(){}};function s1(r){return r=r.status,r==="fulfilled"||r==="rejected"}function u1(r,a,l){switch(l=r[l],l===void 0?r.push(a):l!==a&&(a.then(Sn,Sn),a=l),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,f1(r),r;default:if(typeof a.status=="string")a.then(Sn,Sn);else{if(r=We,r!==null&&100<r.shellSuspendCounter)throw Error(o(482));r=a,r.status="pending",r.then(function(u){if(a.status==="pending"){var g=a;g.status="fulfilled",g.value=u}},function(u){if(a.status==="pending"){var g=a;g.status="rejected",g.reason=u}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,f1(r),r}throw co=a,hi}}function uo(r){try{var a=r._init;return a(r._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(co=l,hi):l}}var co=null;function c1(){if(co===null)throw Error(o(459));var r=co;return co=null,r}function f1(r){if(r===hi||r===Hu)throw Error(o(483))}var gi=null,Gl=0;function qu(r){var a=Gl;return Gl+=1,gi===null&&(gi=[]),u1(gi,r,a)}function Vl(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function Gu(r,a){throw a.$$typeof===b?Error(o(525)):(r=Object.prototype.toString.call(a),Error(o(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function d1(r){function a(K,V){if(r){var Z=K.deletions;Z===null?(K.deletions=[V],K.flags|=16):Z.push(V)}}function l(K,V){if(!r)return null;for(;V!==null;)a(K,V),V=V.sibling;return null}function u(K){for(var V=new Map;K!==null;)K.key!==null?V.set(K.key,K):V.set(K.index,K),K=K.sibling;return V}function g(K,V){return K=Cn(K,V),K.index=0,K.sibling=null,K}function m(K,V,Z){return K.index=Z,r?(Z=K.alternate,Z!==null?(Z=Z.index,Z<V?(K.flags|=67108866,V):Z):(K.flags|=67108866,V)):(K.flags|=1048576,V)}function D(K){return r&&K.alternate===null&&(K.flags|=67108866),K}function M(K,V,Z,oe){return V===null||V.tag!==6?(V=xp(Z,K.mode,oe),V.return=K,V):(V=g(V,Z),V.return=K,V)}function H(K,V,Z,oe){var ye=Z.type;return ye===x?re(K,V,Z.props.children,oe,Z.key):V!==null&&(V.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===$&&uo(ye)===V.type)?(V=g(V,Z.props),Vl(V,Z),V.return=K,V):(V=zu(Z.type,Z.key,Z.props,null,K.mode,oe),Vl(V,Z),V.return=K,V)}function J(K,V,Z,oe){return V===null||V.tag!==4||V.stateNode.containerInfo!==Z.containerInfo||V.stateNode.implementation!==Z.implementation?(V=Dp(Z,K.mode,oe),V.return=K,V):(V=g(V,Z.children||[]),V.return=K,V)}function re(K,V,Z,oe,ye){return V===null||V.tag!==7?(V=ao(Z,K.mode,oe,ye),V.return=K,V):(V=g(V,Z),V.return=K,V)}function ie(K,V,Z){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return V=xp(""+V,K.mode,Z),V.return=K,V;if(typeof V=="object"&&V!==null){switch(V.$$typeof){case S:return Z=zu(V.type,V.key,V.props,null,K.mode,Z),Vl(Z,V),Z.return=K,Z;case w:return V=Dp(V,K.mode,Z),V.return=K,V;case $:return V=uo(V),ie(K,V,Z)}if(q(V)||Q(V))return V=ao(V,K.mode,Z,null),V.return=K,V;if(typeof V.then=="function")return ie(K,qu(V),Z);if(V.$$typeof===T)return ie(K,Pu(K,V),Z);Gu(K,V)}return null}function ee(K,V,Z,oe){var ye=V!==null?V.key:null;if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return ye!==null?null:M(K,V,""+Z,oe);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case S:return Z.key===ye?H(K,V,Z,oe):null;case w:return Z.key===ye?J(K,V,Z,oe):null;case $:return Z=uo(Z),ee(K,V,Z,oe)}if(q(Z)||Q(Z))return ye!==null?null:re(K,V,Z,oe,null);if(typeof Z.then=="function")return ee(K,V,qu(Z),oe);if(Z.$$typeof===T)return ee(K,V,Pu(K,Z),oe);Gu(K,Z)}return null}function te(K,V,Z,oe,ye){if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return K=K.get(Z)||null,M(V,K,""+oe,ye);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case S:return K=K.get(oe.key===null?Z:oe.key)||null,H(V,K,oe,ye);case w:return K=K.get(oe.key===null?Z:oe.key)||null,J(V,K,oe,ye);case $:return oe=uo(oe),te(K,V,Z,oe,ye)}if(q(oe)||Q(oe))return K=K.get(Z)||null,re(V,K,oe,ye,null);if(typeof oe.then=="function")return te(K,V,Z,qu(oe),ye);if(oe.$$typeof===T)return te(K,V,Z,Pu(V,oe),ye);Gu(V,oe)}return null}function he(K,V,Z,oe){for(var ye=null,Ne=null,ge=V,Se=V=0,Oe=null;ge!==null&&Se<Z.length;Se++){ge.index>Se?(Oe=ge,ge=null):Oe=ge.sibling;var ke=ee(K,ge,Z[Se],oe);if(ke===null){ge===null&&(ge=Oe);break}r&&ge&&ke.alternate===null&&a(K,ge),V=m(ke,V,Se),Ne===null?ye=ke:Ne.sibling=ke,Ne=ke,ge=Oe}if(Se===Z.length)return l(K,ge),Te&&wn(K,Se),ye;if(ge===null){for(;Se<Z.length;Se++)ge=ie(K,Z[Se],oe),ge!==null&&(V=m(ge,V,Se),Ne===null?ye=ge:Ne.sibling=ge,Ne=ge);return Te&&wn(K,Se),ye}for(ge=u(ge);Se<Z.length;Se++)Oe=te(ge,K,Se,Z[Se],oe),Oe!==null&&(r&&Oe.alternate!==null&&ge.delete(Oe.key===null?Se:Oe.key),V=m(Oe,V,Se),Ne===null?ye=Oe:Ne.sibling=Oe,Ne=Oe);return r&&ge.forEach(function(Ra){return a(K,Ra)}),Te&&wn(K,Se),ye}function ve(K,V,Z,oe){if(Z==null)throw Error(o(151));for(var ye=null,Ne=null,ge=V,Se=V=0,Oe=null,ke=Z.next();ge!==null&&!ke.done;Se++,ke=Z.next()){ge.index>Se?(Oe=ge,ge=null):Oe=ge.sibling;var Ra=ee(K,ge,ke.value,oe);if(Ra===null){ge===null&&(ge=Oe);break}r&&ge&&Ra.alternate===null&&a(K,ge),V=m(Ra,V,Se),Ne===null?ye=Ra:Ne.sibling=Ra,Ne=Ra,ge=Oe}if(ke.done)return l(K,ge),Te&&wn(K,Se),ye;if(ge===null){for(;!ke.done;Se++,ke=Z.next())ke=ie(K,ke.value,oe),ke!==null&&(V=m(ke,V,Se),Ne===null?ye=ke:Ne.sibling=ke,Ne=ke);return Te&&wn(K,Se),ye}for(ge=u(ge);!ke.done;Se++,ke=Z.next())ke=te(ge,K,Se,ke.value,oe),ke!==null&&(r&&ke.alternate!==null&&ge.delete(ke.key===null?Se:ke.key),V=m(ke,V,Se),Ne===null?ye=ke:Ne.sibling=ke,Ne=ke);return r&&ge.forEach(function(qM){return a(K,qM)}),Te&&wn(K,Se),ye}function Ve(K,V,Z,oe){if(typeof Z=="object"&&Z!==null&&Z.type===x&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case S:e:{for(var ye=Z.key;V!==null;){if(V.key===ye){if(ye=Z.type,ye===x){if(V.tag===7){l(K,V.sibling),oe=g(V,Z.props.children),oe.return=K,K=oe;break e}}else if(V.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===$&&uo(ye)===V.type){l(K,V.sibling),oe=g(V,Z.props),Vl(oe,Z),oe.return=K,K=oe;break e}l(K,V);break}else a(K,V);V=V.sibling}Z.type===x?(oe=ao(Z.props.children,K.mode,oe,Z.key),oe.return=K,K=oe):(oe=zu(Z.type,Z.key,Z.props,null,K.mode,oe),Vl(oe,Z),oe.return=K,K=oe)}return D(K);case w:e:{for(ye=Z.key;V!==null;){if(V.key===ye)if(V.tag===4&&V.stateNode.containerInfo===Z.containerInfo&&V.stateNode.implementation===Z.implementation){l(K,V.sibling),oe=g(V,Z.children||[]),oe.return=K,K=oe;break e}else{l(K,V);break}else a(K,V);V=V.sibling}oe=Dp(Z,K.mode,oe),oe.return=K,K=oe}return D(K);case $:return Z=uo(Z),Ve(K,V,Z,oe)}if(q(Z))return he(K,V,Z,oe);if(Q(Z)){if(ye=Q(Z),typeof ye!="function")throw Error(o(150));return Z=ye.call(Z),ve(K,V,Z,oe)}if(typeof Z.then=="function")return Ve(K,V,qu(Z),oe);if(Z.$$typeof===T)return Ve(K,V,Pu(K,Z),oe);Gu(K,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint"?(Z=""+Z,V!==null&&V.tag===6?(l(K,V.sibling),oe=g(V,Z),oe.return=K,K=oe):(l(K,V),oe=xp(Z,K.mode,oe),oe.return=K,K=oe),D(K)):l(K,V)}return function(K,V,Z,oe){try{Gl=0;var ye=Ve(K,V,Z,oe);return gi=null,ye}catch(ge){if(ge===hi||ge===Hu)throw ge;var Ne=dr(29,ge,null,K.mode);return Ne.lanes=oe,Ne.return=K,Ne}finally{}}}var fo=d1(!0),p1=d1(!1),pa=!1;function jp(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $p(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function ha(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function ga(r,a,l){var u=r.updateQueue;if(u===null)return null;if(u=u.shared,(je&2)!==0){var g=u.pending;return g===null?a.next=a:(a.next=g.next,g.next=a),u.pending=a,a=ku(r),Xb(r,null,l),a}return Nu(r,u,a,l),ku(r)}function Yl(r,a,l){if(a=a.updateQueue,a!==null&&(a=a.shared,(l&4194048)!==0)){var u=a.lanes;u&=r.pendingLanes,l|=u,a.lanes=l,ab(r,l)}}function Pp(r,a){var l=r.updateQueue,u=r.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var g=null,m=null;if(l=l.firstBaseUpdate,l!==null){do{var D={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};m===null?g=m=D:m=m.next=D,l=l.next}while(l!==null);m===null?g=m=a:m=m.next=a}else g=m=a;l={baseState:u.baseState,firstBaseUpdate:g,lastBaseUpdate:m,shared:u.shared,callbacks:u.callbacks},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=a:r.next=a,l.lastBaseUpdate=a}var Ip=!1;function Wl(){if(Ip){var r=pi;if(r!==null)throw r}}function Kl(r,a,l,u){Ip=!1;var g=r.updateQueue;pa=!1;var m=g.firstBaseUpdate,D=g.lastBaseUpdate,M=g.shared.pending;if(M!==null){g.shared.pending=null;var H=M,J=H.next;H.next=null,D===null?m=J:D.next=J,D=H;var re=r.alternate;re!==null&&(re=re.updateQueue,M=re.lastBaseUpdate,M!==D&&(M===null?re.firstBaseUpdate=J:M.next=J,re.lastBaseUpdate=H))}if(m!==null){var ie=g.baseState;D=0,re=J=H=null,M=m;do{var ee=M.lane&-536870913,te=ee!==M.lane;if(te?(_e&ee)===ee:(u&ee)===ee){ee!==0&&ee===di&&(Ip=!0),re!==null&&(re=re.next={lane:0,tag:M.tag,payload:M.payload,callback:null,next:null});e:{var he=r,ve=M;ee=a;var Ve=l;switch(ve.tag){case 1:if(he=ve.payload,typeof he=="function"){ie=he.call(Ve,ie,ee);break e}ie=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=ve.payload,ee=typeof he=="function"?he.call(Ve,ie,ee):he,ee==null)break e;ie=v({},ie,ee);break e;case 2:pa=!0}}ee=M.callback,ee!==null&&(r.flags|=64,te&&(r.flags|=8192),te=g.callbacks,te===null?g.callbacks=[ee]:te.push(ee))}else te={lane:ee,tag:M.tag,payload:M.payload,callback:M.callback,next:null},re===null?(J=re=te,H=ie):re=re.next=te,D|=ee;if(M=M.next,M===null){if(M=g.shared.pending,M===null)break;te=M,M=te.next,te.next=null,g.lastBaseUpdate=te,g.shared.pending=null}}while(!0);re===null&&(H=ie),g.baseState=H,g.firstBaseUpdate=J,g.lastBaseUpdate=re,m===null&&(g.shared.lanes=0),Ea|=D,r.lanes=D,r.memoizedState=ie}}function h1(r,a){if(typeof r!="function")throw Error(o(191,r));r.call(a)}function g1(r,a){var l=r.callbacks;if(l!==null)for(r.callbacks=null,r=0;r<l.length;r++)h1(l[r],a)}var mi=j(null),Vu=j(0);function m1(r,a){r=Nn,ne(Vu,r),ne(mi,a),Nn=r|a.baseLanes}function Hp(){ne(Vu,Nn),ne(mi,mi.current)}function Up(){Nn=Vu.current,W(mi),W(Vu)}var pr=j(null),Tr=null;function ma(r){var a=r.alternate;ne(dt,dt.current&1),ne(pr,r),Tr===null&&(a===null||mi.current!==null||a.memoizedState!==null)&&(Tr=r)}function qp(r){ne(dt,dt.current),ne(pr,r),Tr===null&&(Tr=r)}function y1(r){r.tag===22?(ne(dt,dt.current),ne(pr,r),Tr===null&&(Tr=r)):ya()}function ya(){ne(dt,dt.current),ne(pr,pr.current)}function hr(r){W(pr),Tr===r&&(Tr=null),W(dt)}var dt=j(0);function Yu(r){for(var a=r;a!==null;){if(a.tag===13){var l=a.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Xh(l)||Zh(l)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var _n=0,Ee=null,qe=null,gt=null,Wu=!1,yi=!1,po=!1,Ku=0,Xl=0,vi=null,L6=0;function ut(){throw Error(o(321))}function Gp(r,a){if(a===null)return!1;for(var l=0;l<a.length&&l<r.length;l++)if(!fr(r[l],a[l]))return!1;return!0}function Vp(r,a,l,u,g,m){return _n=m,Ee=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,k.H=r===null||r.memoizedState===null?e2:lh,po=!1,m=l(u,g),po=!1,yi&&(m=b1(a,l,u,g)),v1(r),m}function v1(r){k.H=Ql;var a=qe!==null&&qe.next!==null;if(_n=0,gt=qe=Ee=null,Wu=!1,Xl=0,vi=null,a)throw Error(o(300));r===null||mt||(r=r.dependencies,r!==null&&$u(r)&&(mt=!0))}function b1(r,a,l,u){Ee=r;var g=0;do{if(yi&&(vi=null),Xl=0,yi=!1,25<=g)throw Error(o(301));if(g+=1,gt=qe=null,r.updateQueue!=null){var m=r.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}k.H=t2,m=a(l,u)}while(yi);return m}function N6(){var r=k.H,a=r.useState()[0];return a=typeof a.then=="function"?Zl(a):a,r=r.useState()[0],(qe!==null?qe.memoizedState:null)!==r&&(Ee.flags|=1024),a}function Yp(){var r=Ku!==0;return Ku=0,r}function Wp(r,a,l){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~l}function Kp(r){if(Wu){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Wu=!1}_n=0,gt=qe=Ee=null,yi=!1,Xl=Ku=0,vi=null}function It(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?Ee.memoizedState=gt=r:gt=gt.next=r,gt}function pt(){if(qe===null){var r=Ee.alternate;r=r!==null?r.memoizedState:null}else r=qe.next;var a=gt===null?Ee.memoizedState:gt.next;if(a!==null)gt=a,qe=r;else{if(r===null)throw Ee.alternate===null?Error(o(467)):Error(o(310));qe=r,r={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},gt===null?Ee.memoizedState=gt=r:gt=gt.next=r}return gt}function Xu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Zl(r){var a=Xl;return Xl+=1,vi===null&&(vi=[]),r=u1(vi,r,a),a=Ee,(gt===null?a.memoizedState:gt.next)===null&&(a=a.alternate,k.H=a===null||a.memoizedState===null?e2:lh),r}function Zu(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Zl(r);if(r.$$typeof===T)return Ft(r)}throw Error(o(438,String(r)))}function Xp(r){var a=null,l=Ee.updateQueue;if(l!==null&&(a=l.memoCache),a==null){var u=Ee.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(a={data:u.data.map(function(g){return g.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),l===null&&(l=Xu(),Ee.updateQueue=l),l.memoCache=a,l=a.data[a.index],l===void 0)for(l=a.data[a.index]=Array(r),u=0;u<r;u++)l[u]=I;return a.index++,l}function On(r,a){return typeof a=="function"?a(r):a}function Ju(r){var a=pt();return Zp(a,qe,r)}function Zp(r,a,l){var u=r.queue;if(u===null)throw Error(o(311));u.lastRenderedReducer=l;var g=r.baseQueue,m=u.pending;if(m!==null){if(g!==null){var D=g.next;g.next=m.next,m.next=D}a.baseQueue=g=m,u.pending=null}if(m=r.baseState,g===null)r.memoizedState=m;else{a=g.next;var M=D=null,H=null,J=a,re=!1;do{var ie=J.lane&-536870913;if(ie!==J.lane?(_e&ie)===ie:(_n&ie)===ie){var ee=J.revertLane;if(ee===0)H!==null&&(H=H.next={lane:0,revertLane:0,gesture:null,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null}),ie===di&&(re=!0);else if((_n&ee)===ee){J=J.next,ee===di&&(re=!0);continue}else ie={lane:0,revertLane:J.revertLane,gesture:null,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},H===null?(M=H=ie,D=m):H=H.next=ie,Ee.lanes|=ee,Ea|=ee;ie=J.action,po&&l(m,ie),m=J.hasEagerState?J.eagerState:l(m,ie)}else ee={lane:ie,revertLane:J.revertLane,gesture:J.gesture,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},H===null?(M=H=ee,D=m):H=H.next=ee,Ee.lanes|=ie,Ea|=ie;J=J.next}while(J!==null&&J!==a);if(H===null?D=m:H.next=M,!fr(m,r.memoizedState)&&(mt=!0,re&&(l=pi,l!==null)))throw l;r.memoizedState=m,r.baseState=D,r.baseQueue=H,u.lastRenderedState=m}return g===null&&(u.lanes=0),[r.memoizedState,u.dispatch]}function Jp(r){var a=pt(),l=a.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=r;var u=l.dispatch,g=l.pending,m=a.memoizedState;if(g!==null){l.pending=null;var D=g=g.next;do m=r(m,D.action),D=D.next;while(D!==g);fr(m,a.memoizedState)||(mt=!0),a.memoizedState=m,a.baseQueue===null&&(a.baseState=m),l.lastRenderedState=m}return[m,u]}function E1(r,a,l){var u=Ee,g=pt(),m=Te;if(m){if(l===void 0)throw Error(o(407));l=l()}else l=a();var D=!fr((qe||g).memoizedState,l);if(D&&(g.memoizedState=l,mt=!0),g=g.queue,th(C1.bind(null,u,g,r),[r]),g.getSnapshot!==a||D||gt!==null&>.memoizedState.tag&1){if(u.flags|=2048,bi(9,{destroy:void 0},A1.bind(null,u,g,l,a),null),We===null)throw Error(o(349));m||(_n&127)!==0||S1(u,a,l)}return l}function S1(r,a,l){r.flags|=16384,r={getSnapshot:a,value:l},a=Ee.updateQueue,a===null?(a=Xu(),Ee.updateQueue=a,a.stores=[r]):(l=a.stores,l===null?a.stores=[r]:l.push(r))}function A1(r,a,l,u){a.value=l,a.getSnapshot=u,w1(a)&&x1(r)}function C1(r,a,l){return l(function(){w1(a)&&x1(r)})}function w1(r){var a=r.getSnapshot;r=r.value;try{var l=a();return!fr(r,l)}catch{return!0}}function x1(r){var a=no(r,2);a!==null&&Zt(a,r,2)}function Qp(r){var a=It();if(typeof r=="function"){var l=r;if(r=l(),po){ia(!0);try{l()}finally{ia(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:r},a}function D1(r,a,l,u){return r.baseState=l,Zp(r,qe,typeof u=="function"?u:On)}function k6(r,a,l,u,g){if(tc(r))throw Error(o(485));if(r=a.action,r!==null){var m={payload:g,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(D){m.listeners.push(D)}};k.T!==null?l(!0):m.isTransition=!1,u(m),l=a.pending,l===null?(m.next=a.pending=m,_1(a,m)):(m.next=l.next,a.pending=l.next=m)}}function _1(r,a){var l=a.action,u=a.payload,g=r.state;if(a.isTransition){var m=k.T,D={};k.T=D;try{var M=l(g,u),H=k.S;H!==null&&H(D,M),O1(r,a,M)}catch(J){eh(r,a,J)}finally{m!==null&&D.types!==null&&(m.types=D.types),k.T=m}}else try{m=l(g,u),O1(r,a,m)}catch(J){eh(r,a,J)}}function O1(r,a,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){T1(r,a,u)},function(u){return eh(r,a,u)}):T1(r,a,l)}function T1(r,a,l){a.status="fulfilled",a.value=l,R1(a),r.state=l,a=r.pending,a!==null&&(l=a.next,l===a?r.pending=null:(l=l.next,a.next=l,_1(r,l)))}function eh(r,a,l){var u=r.pending;if(r.pending=null,u!==null){u=u.next;do a.status="rejected",a.reason=l,R1(a),a=a.next;while(a!==u)}r.action=null}function R1(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function F1(r,a){return a}function B1(r,a){if(Te){var l=We.formState;if(l!==null){e:{var u=Ee;if(Te){if(Ze){t:{for(var g=Ze,m=Or;g.nodeType!==8;){if(!m){g=null;break t}if(g=Rr(g.nextSibling),g===null){g=null;break t}}m=g.data,g=m==="F!"||m==="F"?g:null}if(g){Ze=Rr(g.nextSibling),u=g.data==="F!";break e}}fa(u)}u=!1}u&&(a=l[0])}}return l=It(),l.memoizedState=l.baseState=a,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:F1,lastRenderedState:a},l.queue=u,l=Z1.bind(null,Ee,u),u.dispatch=l,u=Qp(!1),m=ih.bind(null,Ee,!1,u.queue),u=It(),g={state:a,dispatch:null,action:r,pending:null},u.queue=g,l=k6.bind(null,Ee,g,m,l),g.dispatch=l,u.memoizedState=r,[a,l,!1]}function M1(r){var a=pt();return L1(a,qe,r)}function L1(r,a,l){if(a=Zp(r,a,F1)[0],r=Ju(On)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var u=Zl(a)}catch(D){throw D===hi?Hu:D}else u=a;a=pt();var g=a.queue,m=g.dispatch;return l!==a.memoizedState&&(Ee.flags|=2048,bi(9,{destroy:void 0},z6.bind(null,g,l),null)),[u,m,r]}function z6(r,a){r.action=a}function N1(r){var a=pt(),l=qe;if(l!==null)return L1(a,l,r);pt(),a=a.memoizedState,l=pt();var u=l.queue.dispatch;return l.memoizedState=r,[a,u,!1]}function bi(r,a,l,u){return r={tag:r,create:l,deps:u,inst:a,next:null},a=Ee.updateQueue,a===null&&(a=Xu(),Ee.updateQueue=a),l=a.lastEffect,l===null?a.lastEffect=r.next=r:(u=l.next,l.next=r,r.next=u,a.lastEffect=r),r}function k1(){return pt().memoizedState}function Qu(r,a,l,u){var g=It();Ee.flags|=r,g.memoizedState=bi(1|a,{destroy:void 0},l,u===void 0?null:u)}function ec(r,a,l,u){var g=pt();u=u===void 0?null:u;var m=g.memoizedState.inst;qe!==null&&u!==null&&Gp(u,qe.memoizedState.deps)?g.memoizedState=bi(a,m,l,u):(Ee.flags|=r,g.memoizedState=bi(1|a,m,l,u))}function z1(r,a){Qu(8390656,8,r,a)}function th(r,a){ec(2048,8,r,a)}function j6(r){Ee.flags|=4;var a=Ee.updateQueue;if(a===null)a=Xu(),Ee.updateQueue=a,a.events=[r];else{var l=a.events;l===null?a.events=[r]:l.push(r)}}function j1(r){var a=pt().memoizedState;return j6({ref:a,nextImpl:r}),function(){if((je&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}function $1(r,a){return ec(4,2,r,a)}function P1(r,a){return ec(4,4,r,a)}function I1(r,a){if(typeof a=="function"){r=r();var l=a(r);return function(){typeof l=="function"?l():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function H1(r,a,l){l=l!=null?l.concat([r]):null,ec(4,4,I1.bind(null,a,r),l)}function rh(){}function U1(r,a){var l=pt();a=a===void 0?null:a;var u=l.memoizedState;return a!==null&&Gp(a,u[1])?u[0]:(l.memoizedState=[r,a],r)}function q1(r,a){var l=pt();a=a===void 0?null:a;var u=l.memoizedState;if(a!==null&&Gp(a,u[1]))return u[0];if(u=r(),po){ia(!0);try{r()}finally{ia(!1)}}return l.memoizedState=[u,a],u}function nh(r,a,l){return l===void 0||(_n&1073741824)!==0&&(_e&261930)===0?r.memoizedState=a:(r.memoizedState=l,r=G2(),Ee.lanes|=r,Ea|=r,l)}function G1(r,a,l,u){return fr(l,a)?l:mi.current!==null?(r=nh(r,l,u),fr(r,a)||(mt=!0),r):(_n&42)===0||(_n&1073741824)!==0&&(_e&261930)===0?(mt=!0,r.memoizedState=l):(r=G2(),Ee.lanes|=r,Ea|=r,a)}function V1(r,a,l,u,g){var m=Y.p;Y.p=m!==0&&8>m?m:8;var D=k.T,M={};k.T=M,ih(r,!1,a,l);try{var H=g(),J=k.S;if(J!==null&&J(M,H),H!==null&&typeof H=="object"&&typeof H.then=="function"){var re=M6(H,u);Jl(r,a,re,yr(r))}else Jl(r,a,u,yr(r))}catch(ie){Jl(r,a,{then:function(){},status:"rejected",reason:ie},yr())}finally{Y.p=m,D!==null&&M.types!==null&&(D.types=M.types),k.T=D}}function $6(){}function ah(r,a,l,u){if(r.tag!==5)throw Error(o(476));var g=Y1(r).queue;V1(r,g,a,ae,l===null?$6:function(){return W1(r),l(u)})}function Y1(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:ae},next:null};var l={};return a.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:l},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function W1(r){var a=Y1(r);a.next===null&&(a=r.alternate.memoizedState),Jl(r,a.next.queue,{},yr())}function oh(){return Ft(gs)}function K1(){return pt().memoizedState}function X1(){return pt().memoizedState}function P6(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var l=yr();r=ha(l);var u=ga(a,r,l);u!==null&&(Zt(u,a,l),Yl(u,a,l)),a={cache:Lp()},r.payload=a;return}a=a.return}}function I6(r,a,l){var u=yr();l={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},tc(r)?J1(a,l):(l=Cp(r,a,l,u),l!==null&&(Zt(l,r,u),Q1(l,a,u)))}function Z1(r,a,l){var u=yr();Jl(r,a,l,u)}function Jl(r,a,l,u){var g={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(tc(r))J1(a,g);else{var m=r.alternate;if(r.lanes===0&&(m===null||m.lanes===0)&&(m=a.lastRenderedReducer,m!==null))try{var D=a.lastRenderedState,M=m(D,l);if(g.hasEagerState=!0,g.eagerState=M,fr(M,D))return Nu(r,a,g,0),We===null&&Lu(),!1}catch{}finally{}if(l=Cp(r,a,g,u),l!==null)return Zt(l,r,u),Q1(l,a,u),!0}return!1}function ih(r,a,l,u){if(u={lane:2,revertLane:jh(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},tc(r)){if(a)throw Error(o(479))}else a=Cp(r,l,u,2),a!==null&&Zt(a,r,2)}function tc(r){var a=r.alternate;return r===Ee||a!==null&&a===Ee}function J1(r,a){yi=Wu=!0;var l=r.pending;l===null?a.next=a:(a.next=l.next,l.next=a),r.pending=a}function Q1(r,a,l){if((l&4194048)!==0){var u=a.lanes;u&=r.pendingLanes,l|=u,a.lanes=l,ab(r,l)}}var Ql={readContext:Ft,use:Zu,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useLayoutEffect:ut,useInsertionEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useSyncExternalStore:ut,useId:ut,useHostTransitionStatus:ut,useFormState:ut,useActionState:ut,useOptimistic:ut,useMemoCache:ut,useCacheRefresh:ut};Ql.useEffectEvent=ut;var e2={readContext:Ft,use:Zu,useCallback:function(r,a){return It().memoizedState=[r,a===void 0?null:a],r},useContext:Ft,useEffect:z1,useImperativeHandle:function(r,a,l){l=l!=null?l.concat([r]):null,Qu(4194308,4,I1.bind(null,a,r),l)},useLayoutEffect:function(r,a){return Qu(4194308,4,r,a)},useInsertionEffect:function(r,a){Qu(4,2,r,a)},useMemo:function(r,a){var l=It();a=a===void 0?null:a;var u=r();if(po){ia(!0);try{r()}finally{ia(!1)}}return l.memoizedState=[u,a],u},useReducer:function(r,a,l){var u=It();if(l!==void 0){var g=l(a);if(po){ia(!0);try{l(a)}finally{ia(!1)}}}else g=a;return u.memoizedState=u.baseState=g,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:g},u.queue=r,r=r.dispatch=I6.bind(null,Ee,r),[u.memoizedState,r]},useRef:function(r){var a=It();return r={current:r},a.memoizedState=r},useState:function(r){r=Qp(r);var a=r.queue,l=Z1.bind(null,Ee,a);return a.dispatch=l,[r.memoizedState,l]},useDebugValue:rh,useDeferredValue:function(r,a){var l=It();return nh(l,r,a)},useTransition:function(){var r=Qp(!1);return r=V1.bind(null,Ee,r.queue,!0,!1),It().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,l){var u=Ee,g=It();if(Te){if(l===void 0)throw Error(o(407));l=l()}else{if(l=a(),We===null)throw Error(o(349));(_e&127)!==0||S1(u,a,l)}g.memoizedState=l;var m={value:l,getSnapshot:a};return g.queue=m,z1(C1.bind(null,u,m,r),[r]),u.flags|=2048,bi(9,{destroy:void 0},A1.bind(null,u,m,l,a),null),l},useId:function(){var r=It(),a=We.identifierPrefix;if(Te){var l=sn,u=ln;l=(u&~(1<<32-cr(u)-1)).toString(32)+l,a="_"+a+"R_"+l,l=Ku++,0<l&&(a+="H"+l.toString(32)),a+="_"}else l=L6++,a="_"+a+"r_"+l.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:oh,useFormState:B1,useActionState:B1,useOptimistic:function(r){var a=It();a.memoizedState=a.baseState=r;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=l,a=ih.bind(null,Ee,!0,l),l.dispatch=a,[r,a]},useMemoCache:Xp,useCacheRefresh:function(){return It().memoizedState=P6.bind(null,Ee)},useEffectEvent:function(r){var a=It(),l={impl:r};return a.memoizedState=l,function(){if((je&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},lh={readContext:Ft,use:Zu,useCallback:U1,useContext:Ft,useEffect:th,useImperativeHandle:H1,useInsertionEffect:$1,useLayoutEffect:P1,useMemo:q1,useReducer:Ju,useRef:k1,useState:function(){return Ju(On)},useDebugValue:rh,useDeferredValue:function(r,a){var l=pt();return G1(l,qe.memoizedState,r,a)},useTransition:function(){var r=Ju(On)[0],a=pt().memoizedState;return[typeof r=="boolean"?r:Zl(r),a]},useSyncExternalStore:E1,useId:K1,useHostTransitionStatus:oh,useFormState:M1,useActionState:M1,useOptimistic:function(r,a){var l=pt();return D1(l,qe,r,a)},useMemoCache:Xp,useCacheRefresh:X1};lh.useEffectEvent=j1;var t2={readContext:Ft,use:Zu,useCallback:U1,useContext:Ft,useEffect:th,useImperativeHandle:H1,useInsertionEffect:$1,useLayoutEffect:P1,useMemo:q1,useReducer:Jp,useRef:k1,useState:function(){return Jp(On)},useDebugValue:rh,useDeferredValue:function(r,a){var l=pt();return qe===null?nh(l,r,a):G1(l,qe.memoizedState,r,a)},useTransition:function(){var r=Jp(On)[0],a=pt().memoizedState;return[typeof r=="boolean"?r:Zl(r),a]},useSyncExternalStore:E1,useId:K1,useHostTransitionStatus:oh,useFormState:N1,useActionState:N1,useOptimistic:function(r,a){var l=pt();return qe!==null?D1(l,qe,r,a):(l.baseState=r,[r,l.queue.dispatch])},useMemoCache:Xp,useCacheRefresh:X1};t2.useEffectEvent=j1;function sh(r,a,l,u){a=r.memoizedState,l=l(u,a),l=l==null?a:v({},a,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var uh={enqueueSetState:function(r,a,l){r=r._reactInternals;var u=yr(),g=ha(u);g.payload=a,l!=null&&(g.callback=l),a=ga(r,g,u),a!==null&&(Zt(a,r,u),Yl(a,r,u))},enqueueReplaceState:function(r,a,l){r=r._reactInternals;var u=yr(),g=ha(u);g.tag=1,g.payload=a,l!=null&&(g.callback=l),a=ga(r,g,u),a!==null&&(Zt(a,r,u),Yl(a,r,u))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var l=yr(),u=ha(l);u.tag=2,a!=null&&(u.callback=a),a=ga(r,u,l),a!==null&&(Zt(a,r,l),Yl(a,r,l))}};function r2(r,a,l,u,g,m,D){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(u,m,D):a.prototype&&a.prototype.isPureReactComponent?!$l(l,u)||!$l(g,m):!0}function n2(r,a,l,u){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,u),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,u),a.state!==r&&uh.enqueueReplaceState(a,a.state,null)}function ho(r,a){var l=a;if("ref"in a){l={};for(var u in a)u!=="ref"&&(l[u]=a[u])}if(r=r.defaultProps){l===a&&(l=v({},l));for(var g in r)l[g]===void 0&&(l[g]=r[g])}return l}function a2(r){Mu(r)}function o2(r){console.error(r)}function i2(r){Mu(r)}function rc(r,a){try{var l=r.onUncaughtError;l(a.value,{componentStack:a.stack})}catch(u){setTimeout(function(){throw u})}}function l2(r,a,l){try{var u=r.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function ch(r,a,l){return l=ha(l),l.tag=3,l.payload={element:null},l.callback=function(){rc(r,a)},l}function s2(r){return r=ha(r),r.tag=3,r}function u2(r,a,l,u){var g=l.type.getDerivedStateFromError;if(typeof g=="function"){var m=u.value;r.payload=function(){return g(m)},r.callback=function(){l2(a,l,u)}}var D=l.stateNode;D!==null&&typeof D.componentDidCatch=="function"&&(r.callback=function(){l2(a,l,u),typeof g!="function"&&(Sa===null?Sa=new Set([this]):Sa.add(this));var M=u.stack;this.componentDidCatch(u.value,{componentStack:M!==null?M:""})})}function H6(r,a,l,u,g){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(a=l.alternate,a!==null&&fi(a,l,g,!0),l=pr.current,l!==null){switch(l.tag){case 31:case 13:return Tr===null?hc():l.alternate===null&&ct===0&&(ct=3),l.flags&=-257,l.flags|=65536,l.lanes=g,u===Uu?l.flags|=16384:(a=l.updateQueue,a===null?l.updateQueue=new Set([u]):a.add(u),Nh(r,u,g)),!1;case 22:return l.flags|=65536,u===Uu?l.flags|=16384:(a=l.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=a):(l=a.retryQueue,l===null?a.retryQueue=new Set([u]):l.add(u)),Nh(r,u,g)),!1}throw Error(o(435,l.tag))}return Nh(r,u,g),hc(),!1}if(Te)return a=pr.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=g,u!==Tp&&(r=Error(o(422),{cause:u}),Hl(xr(r,l)))):(u!==Tp&&(a=Error(o(423),{cause:u}),Hl(xr(a,l))),r=r.current.alternate,r.flags|=65536,g&=-g,r.lanes|=g,u=xr(u,l),g=ch(r.stateNode,u,g),Pp(r,g),ct!==4&&(ct=2)),!1;var m=Error(o(520),{cause:u});if(m=xr(m,l),ls===null?ls=[m]:ls.push(m),ct!==4&&(ct=2),a===null)return!0;u=xr(u,l),l=a;do{switch(l.tag){case 3:return l.flags|=65536,r=g&-g,l.lanes|=r,r=ch(l.stateNode,u,r),Pp(l,r),!1;case 1:if(a=l.type,m=l.stateNode,(l.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Sa===null||!Sa.has(m))))return l.flags|=65536,g&=-g,l.lanes|=g,g=s2(g),u2(g,r,l,u),Pp(l,g),!1}l=l.return}while(l!==null);return!1}var fh=Error(o(461)),mt=!1;function Bt(r,a,l,u){a.child=r===null?p1(a,null,l,u):fo(a,r.child,l,u)}function c2(r,a,l,u,g){l=l.render;var m=a.ref;if("ref"in u){var D={};for(var M in u)M!=="ref"&&(D[M]=u[M])}else D=u;return lo(a),u=Vp(r,a,l,D,m,g),M=Yp(),r!==null&&!mt?(Wp(r,a,g),Tn(r,a,g)):(Te&&M&&_p(a),a.flags|=1,Bt(r,a,u,g),a.child)}function f2(r,a,l,u,g){if(r===null){var m=l.type;return typeof m=="function"&&!wp(m)&&m.defaultProps===void 0&&l.compare===null?(a.tag=15,a.type=m,d2(r,a,m,u,g)):(r=zu(l.type,null,u,a,a.mode,g),r.ref=a.ref,r.return=a,a.child=r)}if(m=r.child,!bh(r,g)){var D=m.memoizedProps;if(l=l.compare,l=l!==null?l:$l,l(D,u)&&r.ref===a.ref)return Tn(r,a,g)}return a.flags|=1,r=Cn(m,u),r.ref=a.ref,r.return=a,a.child=r}function d2(r,a,l,u,g){if(r!==null){var m=r.memoizedProps;if($l(m,u)&&r.ref===a.ref)if(mt=!1,a.pendingProps=u=m,bh(r,g))(r.flags&131072)!==0&&(mt=!0);else return a.lanes=r.lanes,Tn(r,a,g)}return dh(r,a,l,u,g)}function p2(r,a,l,u){var g=u.children,m=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((a.flags&128)!==0){if(m=m!==null?m.baseLanes|l:l,r!==null){for(u=a.child=r.child,g=0;u!==null;)g=g|u.lanes|u.childLanes,u=u.sibling;u=g&~m}else u=0,a.child=null;return h2(r,a,m,l,u)}if((l&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&Iu(a,m!==null?m.cachePool:null),m!==null?m1(a,m):Hp(),y1(a);else return u=a.lanes=536870912,h2(r,a,m!==null?m.baseLanes|l:l,l,u)}else m!==null?(Iu(a,m.cachePool),m1(a,m),ya(),a.memoizedState=null):(r!==null&&Iu(a,null),Hp(),ya());return Bt(r,a,g,l),a.child}function es(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function h2(r,a,l,u,g){var m=kp();return m=m===null?null:{parent:ht._currentValue,pool:m},a.memoizedState={baseLanes:l,cachePool:m},r!==null&&Iu(a,null),Hp(),y1(a),r!==null&&fi(r,a,u,!0),a.childLanes=g,null}function nc(r,a){return a=oc({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function g2(r,a,l){return fo(a,r.child,null,l),r=nc(a,a.pendingProps),r.flags|=2,hr(a),a.memoizedState=null,r}function U6(r,a,l){var u=a.pendingProps,g=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(Te){if(u.mode==="hidden")return r=nc(a,u),a.lanes=536870912,es(null,r);if(qp(a),(r=Ze)?(r=_E(r,Or),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:ua!==null?{id:ln,overflow:sn}:null,retryLane:536870912,hydrationErrors:null},l=Jb(r),l.return=a,a.child=l,Rt=a,Ze=null)):r=null,r===null)throw fa(a);return a.lanes=536870912,null}return nc(a,u)}var m=r.memoizedState;if(m!==null){var D=m.dehydrated;if(qp(a),g)if(a.flags&256)a.flags&=-257,a=g2(r,a,l);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error(o(558));else if(mt||fi(r,a,l,!1),g=(l&r.childLanes)!==0,mt||g){if(u=We,u!==null&&(D=ob(u,l),D!==0&&D!==m.retryLane))throw m.retryLane=D,no(r,D),Zt(u,r,D),fh;hc(),a=g2(r,a,l)}else r=m.treeContext,Ze=Rr(D.nextSibling),Rt=a,Te=!0,ca=null,Or=!1,r!==null&&t1(a,r),a=nc(a,u),a.flags|=4096;return a}return r=Cn(r.child,{mode:u.mode,children:u.children}),r.ref=a.ref,a.child=r,r.return=a,r}function ac(r,a){var l=a.ref;if(l===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(r===null||r.ref!==l)&&(a.flags|=4194816)}}function dh(r,a,l,u,g){return lo(a),l=Vp(r,a,l,u,void 0,g),u=Yp(),r!==null&&!mt?(Wp(r,a,g),Tn(r,a,g)):(Te&&u&&_p(a),a.flags|=1,Bt(r,a,l,g),a.child)}function m2(r,a,l,u,g,m){return lo(a),a.updateQueue=null,l=b1(a,u,l,g),v1(r),u=Yp(),r!==null&&!mt?(Wp(r,a,m),Tn(r,a,m)):(Te&&u&&_p(a),a.flags|=1,Bt(r,a,l,m),a.child)}function y2(r,a,l,u,g){if(lo(a),a.stateNode===null){var m=li,D=l.contextType;typeof D=="object"&&D!==null&&(m=Ft(D)),m=new l(u,m),a.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=uh,a.stateNode=m,m._reactInternals=a,m=a.stateNode,m.props=u,m.state=a.memoizedState,m.refs={},jp(a),D=l.contextType,m.context=typeof D=="object"&&D!==null?Ft(D):li,m.state=a.memoizedState,D=l.getDerivedStateFromProps,typeof D=="function"&&(sh(a,l,D,u),m.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(D=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),D!==m.state&&uh.enqueueReplaceState(m,m.state,null),Kl(a,u,m,g),Wl(),m.state=a.memoizedState),typeof m.componentDidMount=="function"&&(a.flags|=4194308),u=!0}else if(r===null){m=a.stateNode;var M=a.memoizedProps,H=ho(l,M);m.props=H;var J=m.context,re=l.contextType;D=li,typeof re=="object"&&re!==null&&(D=Ft(re));var ie=l.getDerivedStateFromProps;re=typeof ie=="function"||typeof m.getSnapshotBeforeUpdate=="function",M=a.pendingProps!==M,re||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(M||J!==D)&&n2(a,m,u,D),pa=!1;var ee=a.memoizedState;m.state=ee,Kl(a,u,m,g),Wl(),J=a.memoizedState,M||ee!==J||pa?(typeof ie=="function"&&(sh(a,l,ie,u),J=a.memoizedState),(H=pa||r2(a,l,H,u,ee,J,D))?(re||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(a.flags|=4194308)):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=u,a.memoizedState=J),m.props=u,m.state=J,m.context=D,u=H):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),u=!1)}else{m=a.stateNode,$p(r,a),D=a.memoizedProps,re=ho(l,D),m.props=re,ie=a.pendingProps,ee=m.context,J=l.contextType,H=li,typeof J=="object"&&J!==null&&(H=Ft(J)),M=l.getDerivedStateFromProps,(J=typeof M=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(D!==ie||ee!==H)&&n2(a,m,u,H),pa=!1,ee=a.memoizedState,m.state=ee,Kl(a,u,m,g),Wl();var te=a.memoizedState;D!==ie||ee!==te||pa||r!==null&&r.dependencies!==null&&$u(r.dependencies)?(typeof M=="function"&&(sh(a,l,M,u),te=a.memoizedState),(re=pa||r2(a,l,re,u,ee,te,H)||r!==null&&r.dependencies!==null&&$u(r.dependencies))?(J||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(u,te,H),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(u,te,H)),typeof m.componentDidUpdate=="function"&&(a.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof m.componentDidUpdate!="function"||D===r.memoizedProps&&ee===r.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||D===r.memoizedProps&&ee===r.memoizedState||(a.flags|=1024),a.memoizedProps=u,a.memoizedState=te),m.props=u,m.state=te,m.context=H,u=re):(typeof m.componentDidUpdate!="function"||D===r.memoizedProps&&ee===r.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||D===r.memoizedProps&&ee===r.memoizedState||(a.flags|=1024),u=!1)}return m=u,ac(r,a),u=(a.flags&128)!==0,m||u?(m=a.stateNode,l=u&&typeof l.getDerivedStateFromError!="function"?null:m.render(),a.flags|=1,r!==null&&u?(a.child=fo(a,r.child,null,g),a.child=fo(a,null,l,g)):Bt(r,a,l,g),a.memoizedState=m.state,r=a.child):r=Tn(r,a,g),r}function v2(r,a,l,u){return oo(),a.flags|=256,Bt(r,a,l,u),a.child}var ph={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function hh(r){return{baseLanes:r,cachePool:l1()}}function gh(r,a,l){return r=r!==null?r.childLanes&~l:0,a&&(r|=mr),r}function b2(r,a,l){var u=a.pendingProps,g=!1,m=(a.flags&128)!==0,D;if((D=m)||(D=r!==null&&r.memoizedState===null?!1:(dt.current&2)!==0),D&&(g=!0,a.flags&=-129),D=(a.flags&32)!==0,a.flags&=-33,r===null){if(Te){if(g?ma(a):ya(),(r=Ze)?(r=_E(r,Or),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:ua!==null?{id:ln,overflow:sn}:null,retryLane:536870912,hydrationErrors:null},l=Jb(r),l.return=a,a.child=l,Rt=a,Ze=null)):r=null,r===null)throw fa(a);return Zh(r)?a.lanes=32:a.lanes=536870912,null}var M=u.children;return u=u.fallback,g?(ya(),g=a.mode,M=oc({mode:"hidden",children:M},g),u=ao(u,g,l,null),M.return=a,u.return=a,M.sibling=u,a.child=M,u=a.child,u.memoizedState=hh(l),u.childLanes=gh(r,D,l),a.memoizedState=ph,es(null,u)):(ma(a),mh(a,M))}var H=r.memoizedState;if(H!==null&&(M=H.dehydrated,M!==null)){if(m)a.flags&256?(ma(a),a.flags&=-257,a=yh(r,a,l)):a.memoizedState!==null?(ya(),a.child=r.child,a.flags|=128,a=null):(ya(),M=u.fallback,g=a.mode,u=oc({mode:"visible",children:u.children},g),M=ao(M,g,l,null),M.flags|=2,u.return=a,M.return=a,u.sibling=M,a.child=u,fo(a,r.child,null,l),u=a.child,u.memoizedState=hh(l),u.childLanes=gh(r,D,l),a.memoizedState=ph,a=es(null,u));else if(ma(a),Zh(M)){if(D=M.nextSibling&&M.nextSibling.dataset,D)var J=D.dgst;D=J,u=Error(o(419)),u.stack="",u.digest=D,Hl({value:u,source:null,stack:null}),a=yh(r,a,l)}else if(mt||fi(r,a,l,!1),D=(l&r.childLanes)!==0,mt||D){if(D=We,D!==null&&(u=ob(D,l),u!==0&&u!==H.retryLane))throw H.retryLane=u,no(r,u),Zt(D,r,u),fh;Xh(M)||hc(),a=yh(r,a,l)}else Xh(M)?(a.flags|=192,a.child=r.child,a=null):(r=H.treeContext,Ze=Rr(M.nextSibling),Rt=a,Te=!0,ca=null,Or=!1,r!==null&&t1(a,r),a=mh(a,u.children),a.flags|=4096);return a}return g?(ya(),M=u.fallback,g=a.mode,H=r.child,J=H.sibling,u=Cn(H,{mode:"hidden",children:u.children}),u.subtreeFlags=H.subtreeFlags&65011712,J!==null?M=Cn(J,M):(M=ao(M,g,l,null),M.flags|=2),M.return=a,u.return=a,u.sibling=M,a.child=u,es(null,u),u=a.child,M=r.child.memoizedState,M===null?M=hh(l):(g=M.cachePool,g!==null?(H=ht._currentValue,g=g.parent!==H?{parent:H,pool:H}:g):g=l1(),M={baseLanes:M.baseLanes|l,cachePool:g}),u.memoizedState=M,u.childLanes=gh(r,D,l),a.memoizedState=ph,es(r.child,u)):(ma(a),l=r.child,r=l.sibling,l=Cn(l,{mode:"visible",children:u.children}),l.return=a,l.sibling=null,r!==null&&(D=a.deletions,D===null?(a.deletions=[r],a.flags|=16):D.push(r)),a.child=l,a.memoizedState=null,l)}function mh(r,a){return a=oc({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function oc(r,a){return r=dr(22,r,null,a),r.lanes=0,r}function yh(r,a,l){return fo(a,r.child,null,l),r=mh(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function E2(r,a,l){r.lanes|=a;var u=r.alternate;u!==null&&(u.lanes|=a),Bp(r.return,a,l)}function vh(r,a,l,u,g,m){var D=r.memoizedState;D===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:g,treeForkCount:m}:(D.isBackwards=a,D.rendering=null,D.renderingStartTime=0,D.last=u,D.tail=l,D.tailMode=g,D.treeForkCount=m)}function S2(r,a,l){var u=a.pendingProps,g=u.revealOrder,m=u.tail;u=u.children;var D=dt.current,M=(D&2)!==0;if(M?(D=D&1|2,a.flags|=128):D&=1,ne(dt,D),Bt(r,a,u,l),u=Te?Il:0,!M&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&E2(r,l,a);else if(r.tag===19)E2(r,l,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(g){case"forwards":for(l=a.child,g=null;l!==null;)r=l.alternate,r!==null&&Yu(r)===null&&(g=l),l=l.sibling;l=g,l===null?(g=a.child,a.child=null):(g=l.sibling,l.sibling=null),vh(a,!1,g,l,m,u);break;case"backwards":case"unstable_legacy-backwards":for(l=null,g=a.child,a.child=null;g!==null;){if(r=g.alternate,r!==null&&Yu(r)===null){a.child=g;break}r=g.sibling,g.sibling=l,l=g,g=r}vh(a,!0,l,null,m,u);break;case"together":vh(a,!1,null,null,void 0,u);break;default:a.memoizedState=null}return a.child}function Tn(r,a,l){if(r!==null&&(a.dependencies=r.dependencies),Ea|=a.lanes,(l&a.childLanes)===0)if(r!==null){if(fi(r,a,l,!1),(l&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(o(153));if(a.child!==null){for(r=a.child,l=Cn(r,r.pendingProps),a.child=l,l.return=a;r.sibling!==null;)r=r.sibling,l=l.sibling=Cn(r,r.pendingProps),l.return=a;l.sibling=null}return a.child}function bh(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&$u(r)))}function q6(r,a,l){switch(a.tag){case 3:Fe(a,a.stateNode.containerInfo),da(a,ht,r.memoizedState.cache),oo();break;case 27:case 5:bt(a);break;case 4:Fe(a,a.stateNode.containerInfo);break;case 10:da(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,qp(a),null;break;case 13:var u=a.memoizedState;if(u!==null)return u.dehydrated!==null?(ma(a),a.flags|=128,null):(l&a.child.childLanes)!==0?b2(r,a,l):(ma(a),r=Tn(r,a,l),r!==null?r.sibling:null);ma(a);break;case 19:var g=(r.flags&128)!==0;if(u=(l&a.childLanes)!==0,u||(fi(r,a,l,!1),u=(l&a.childLanes)!==0),g){if(u)return S2(r,a,l);a.flags|=128}if(g=a.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),ne(dt,dt.current),u)break;return null;case 22:return a.lanes=0,p2(r,a,l,a.pendingProps);case 24:da(a,ht,r.memoizedState.cache)}return Tn(r,a,l)}function A2(r,a,l){if(r!==null)if(r.memoizedProps!==a.pendingProps)mt=!0;else{if(!bh(r,l)&&(a.flags&128)===0)return mt=!1,q6(r,a,l);mt=(r.flags&131072)!==0}else mt=!1,Te&&(a.flags&1048576)!==0&&e1(a,Il,a.index);switch(a.lanes=0,a.tag){case 16:e:{var u=a.pendingProps;if(r=uo(a.elementType),a.type=r,typeof r=="function")wp(r)?(u=ho(r,u),a.tag=1,a=y2(null,a,r,u,l)):(a.tag=0,a=dh(null,a,r,u,l));else{if(r!=null){var g=r.$$typeof;if(g===F){a.tag=11,a=c2(null,a,r,u,l);break e}else if(g===B){a.tag=14,a=f2(null,a,r,u,l);break e}}throw a=z(r)||r,Error(o(306,a,""))}}return a;case 0:return dh(r,a,a.type,a.pendingProps,l);case 1:return u=a.type,g=ho(u,a.pendingProps),y2(r,a,u,g,l);case 3:e:{if(Fe(a,a.stateNode.containerInfo),r===null)throw Error(o(387));u=a.pendingProps;var m=a.memoizedState;g=m.element,$p(r,a),Kl(a,u,null,l);var D=a.memoizedState;if(u=D.cache,da(a,ht,u),u!==m.cache&&Mp(a,[ht],l,!0),Wl(),u=D.element,m.isDehydrated)if(m={element:u,isDehydrated:!1,cache:D.cache},a.updateQueue.baseState=m,a.memoizedState=m,a.flags&256){a=v2(r,a,u,l);break e}else if(u!==g){g=xr(Error(o(424)),a),Hl(g),a=v2(r,a,u,l);break e}else{switch(r=a.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(Ze=Rr(r.firstChild),Rt=a,Te=!0,ca=null,Or=!0,l=p1(a,null,u,l),a.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(oo(),u===g){a=Tn(r,a,l);break e}Bt(r,a,u,l)}a=a.child}return a;case 26:return ac(r,a),r===null?(l=ME(a.type,null,a.pendingProps,null))?a.memoizedState=l:Te||(l=a.type,r=a.pendingProps,u=Sc(fe.current).createElement(l),u[Tt]=a,u[Gt]=r,Mt(u,l,r),xt(u),a.stateNode=u):a.memoizedState=ME(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return bt(a),r===null&&Te&&(u=a.stateNode=RE(a.type,a.pendingProps,fe.current),Rt=a,Or=!0,g=Ze,xa(a.type)?(Jh=g,Ze=Rr(u.firstChild)):Ze=g),Bt(r,a,a.pendingProps.children,l),ac(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&Te&&((g=u=Ze)&&(u=EM(u,a.type,a.pendingProps,Or),u!==null?(a.stateNode=u,Rt=a,Ze=Rr(u.firstChild),Or=!1,g=!0):g=!1),g||fa(a)),bt(a),g=a.type,m=a.pendingProps,D=r!==null?r.memoizedProps:null,u=m.children,Yh(g,m)?u=null:D!==null&&Yh(g,D)&&(a.flags|=32),a.memoizedState!==null&&(g=Vp(r,a,N6,null,null,l),gs._currentValue=g),ac(r,a),Bt(r,a,u,l),a.child;case 6:return r===null&&Te&&((r=l=Ze)&&(l=SM(l,a.pendingProps,Or),l!==null?(a.stateNode=l,Rt=a,Ze=null,r=!0):r=!1),r||fa(a)),null;case 13:return b2(r,a,l);case 4:return Fe(a,a.stateNode.containerInfo),u=a.pendingProps,r===null?a.child=fo(a,null,u,l):Bt(r,a,u,l),a.child;case 11:return c2(r,a,a.type,a.pendingProps,l);case 7:return Bt(r,a,a.pendingProps,l),a.child;case 8:return Bt(r,a,a.pendingProps.children,l),a.child;case 12:return Bt(r,a,a.pendingProps.children,l),a.child;case 10:return u=a.pendingProps,da(a,a.type,u.value),Bt(r,a,u.children,l),a.child;case 9:return g=a.type._context,u=a.pendingProps.children,lo(a),g=Ft(g),u=u(g),a.flags|=1,Bt(r,a,u,l),a.child;case 14:return f2(r,a,a.type,a.pendingProps,l);case 15:return d2(r,a,a.type,a.pendingProps,l);case 19:return S2(r,a,l);case 31:return U6(r,a,l);case 22:return p2(r,a,l,a.pendingProps);case 24:return lo(a),u=Ft(ht),r===null?(g=kp(),g===null&&(g=We,m=Lp(),g.pooledCache=m,m.refCount++,m!==null&&(g.pooledCacheLanes|=l),g=m),a.memoizedState={parent:u,cache:g},jp(a),da(a,ht,g)):((r.lanes&l)!==0&&($p(r,a),Kl(a,null,null,l),Wl()),g=r.memoizedState,m=a.memoizedState,g.parent!==u?(g={parent:u,cache:u},a.memoizedState=g,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=g),da(a,ht,u)):(u=m.cache,da(a,ht,u),u!==g.cache&&Mp(a,[ht],l,!0))),Bt(r,a,a.pendingProps.children,l),a.child;case 29:throw a.pendingProps}throw Error(o(156,a.tag))}function Rn(r){r.flags|=4}function Eh(r,a,l,u,g){if((a=(r.mode&32)!==0)&&(a=!1),a){if(r.flags|=16777216,(g&335544128)===g)if(r.stateNode.complete)r.flags|=8192;else if(K2())r.flags|=8192;else throw co=Uu,zp}else r.flags&=-16777217}function C2(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!jE(a))if(K2())r.flags|=8192;else throw co=Uu,zp}function ic(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?rb():536870912,r.lanes|=a,Ci|=a)}function ts(r,a){if(!Te)switch(r.tailMode){case"hidden":a=r.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:u.sibling=null}}function Je(r){var a=r.alternate!==null&&r.alternate.child===r.child,l=0,u=0;if(a)for(var g=r.child;g!==null;)l|=g.lanes|g.childLanes,u|=g.subtreeFlags&65011712,u|=g.flags&65011712,g.return=r,g=g.sibling;else for(g=r.child;g!==null;)l|=g.lanes|g.childLanes,u|=g.subtreeFlags,u|=g.flags,g.return=r,g=g.sibling;return r.subtreeFlags|=u,r.childLanes=l,a}function G6(r,a,l){var u=a.pendingProps;switch(Op(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(a),null;case 1:return Je(a),null;case 3:return l=a.stateNode,u=null,r!==null&&(u=r.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),Dn(ht),De(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(r===null||r.child===null)&&(ci(a)?Rn(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Rp())),Je(a),null;case 26:var g=a.type,m=a.memoizedState;return r===null?(Rn(a),m!==null?(Je(a),C2(a,m)):(Je(a),Eh(a,g,null,u,l))):m?m!==r.memoizedState?(Rn(a),Je(a),C2(a,m)):(Je(a),a.flags&=-16777217):(r=r.memoizedProps,r!==u&&Rn(a),Je(a),Eh(a,g,r,u,l)),null;case 27:if(Ke(a),l=fe.current,g=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==u&&Rn(a);else{if(!u){if(a.stateNode===null)throw Error(o(166));return Je(a),null}r=ue.current,ci(a)?r1(a):(r=RE(g,u,l),a.stateNode=r,Rn(a))}return Je(a),null;case 5:if(Ke(a),g=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==u&&Rn(a);else{if(!u){if(a.stateNode===null)throw Error(o(166));return Je(a),null}if(m=ue.current,ci(a))r1(a);else{var D=Sc(fe.current);switch(m){case 1:m=D.createElementNS("http://www.w3.org/2000/svg",g);break;case 2:m=D.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;default:switch(g){case"svg":m=D.createElementNS("http://www.w3.org/2000/svg",g);break;case"math":m=D.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;case"script":m=D.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof u.is=="string"?D.createElement("select",{is:u.is}):D.createElement("select"),u.multiple?m.multiple=!0:u.size&&(m.size=u.size);break;default:m=typeof u.is=="string"?D.createElement(g,{is:u.is}):D.createElement(g)}}m[Tt]=a,m[Gt]=u;e:for(D=a.child;D!==null;){if(D.tag===5||D.tag===6)m.appendChild(D.stateNode);else if(D.tag!==4&&D.tag!==27&&D.child!==null){D.child.return=D,D=D.child;continue}if(D===a)break e;for(;D.sibling===null;){if(D.return===null||D.return===a)break e;D=D.return}D.sibling.return=D.return,D=D.sibling}a.stateNode=m;e:switch(Mt(m,g,u),g){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&Rn(a)}}return Je(a),Eh(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,l),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==u&&Rn(a);else{if(typeof u!="string"&&a.stateNode===null)throw Error(o(166));if(r=fe.current,ci(a)){if(r=a.stateNode,l=a.memoizedProps,u=null,g=Rt,g!==null)switch(g.tag){case 27:case 5:u=g.memoizedProps}r[Tt]=a,r=!!(r.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||bE(r.nodeValue,l)),r||fa(a,!0)}else r=Sc(r).createTextNode(u),r[Tt]=a,a.stateNode=r}return Je(a),null;case 31:if(l=a.memoizedState,r===null||r.memoizedState!==null){if(u=ci(a),l!==null){if(r===null){if(!u)throw Error(o(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(o(557));r[Tt]=a}else oo(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Je(a),r=!1}else l=Rp(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=l),r=!0;if(!r)return a.flags&256?(hr(a),a):(hr(a),null);if((a.flags&128)!==0)throw Error(o(558))}return Je(a),null;case 13:if(u=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(g=ci(a),u!==null&&u.dehydrated!==null){if(r===null){if(!g)throw Error(o(318));if(g=a.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(o(317));g[Tt]=a}else oo(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Je(a),g=!1}else g=Rp(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=g),g=!0;if(!g)return a.flags&256?(hr(a),a):(hr(a),null)}return hr(a),(a.flags&128)!==0?(a.lanes=l,a):(l=u!==null,r=r!==null&&r.memoizedState!==null,l&&(u=a.child,g=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(g=u.alternate.memoizedState.cachePool.pool),m=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),m!==g&&(u.flags|=2048)),l!==r&&l&&(a.child.flags|=8192),ic(a,a.updateQueue),Je(a),null);case 4:return De(),r===null&&Hh(a.stateNode.containerInfo),Je(a),null;case 10:return Dn(a.type),Je(a),null;case 19:if(W(dt),u=a.memoizedState,u===null)return Je(a),null;if(g=(a.flags&128)!==0,m=u.rendering,m===null)if(g)ts(u,!1);else{if(ct!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(m=Yu(r),m!==null){for(a.flags|=128,ts(u,!1),r=m.updateQueue,a.updateQueue=r,ic(a,r),a.subtreeFlags=0,r=l,l=a.child;l!==null;)Zb(l,r),l=l.sibling;return ne(dt,dt.current&1|2),Te&&wn(a,u.treeForkCount),a.child}r=r.sibling}u.tail!==null&&st()>fc&&(a.flags|=128,g=!0,ts(u,!1),a.lanes=4194304)}else{if(!g)if(r=Yu(m),r!==null){if(a.flags|=128,g=!0,r=r.updateQueue,a.updateQueue=r,ic(a,r),ts(u,!0),u.tail===null&&u.tailMode==="hidden"&&!m.alternate&&!Te)return Je(a),null}else 2*st()-u.renderingStartTime>fc&&l!==536870912&&(a.flags|=128,g=!0,ts(u,!1),a.lanes=4194304);u.isBackwards?(m.sibling=a.child,a.child=m):(r=u.last,r!==null?r.sibling=m:a.child=m,u.last=m)}return u.tail!==null?(r=u.tail,u.rendering=r,u.tail=r.sibling,u.renderingStartTime=st(),r.sibling=null,l=dt.current,ne(dt,g?l&1|2:l&1),Te&&wn(a,u.treeForkCount),r):(Je(a),null);case 22:case 23:return hr(a),Up(),u=a.memoizedState!==null,r!==null?r.memoizedState!==null!==u&&(a.flags|=8192):u&&(a.flags|=8192),u?(l&536870912)!==0&&(a.flags&128)===0&&(Je(a),a.subtreeFlags&6&&(a.flags|=8192)):Je(a),l=a.updateQueue,l!==null&&ic(a,l.retryQueue),l=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==l&&(a.flags|=2048),r!==null&&W(so),null;case 24:return l=null,r!==null&&(l=r.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),Dn(ht),Je(a),null;case 25:return null;case 30:return null}throw Error(o(156,a.tag))}function V6(r,a){switch(Op(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return Dn(ht),De(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return Ke(a),null;case 31:if(a.memoizedState!==null){if(hr(a),a.alternate===null)throw Error(o(340));oo()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 13:if(hr(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(o(340));oo()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return W(dt),null;case 4:return De(),null;case 10:return Dn(a.type),null;case 22:case 23:return hr(a),Up(),r!==null&&W(so),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return Dn(ht),null;case 25:return null;default:return null}}function w2(r,a){switch(Op(a),a.tag){case 3:Dn(ht),De();break;case 26:case 27:case 5:Ke(a);break;case 4:De();break;case 31:a.memoizedState!==null&&hr(a);break;case 13:hr(a);break;case 19:W(dt);break;case 10:Dn(a.type);break;case 22:case 23:hr(a),Up(),r!==null&&W(so);break;case 24:Dn(ht)}}function rs(r,a){try{var l=a.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var g=u.next;l=g;do{if((l.tag&r)===r){u=void 0;var m=l.create,D=l.inst;u=m(),D.destroy=u}l=l.next}while(l!==g)}}catch(M){Ue(a,a.return,M)}}function va(r,a,l){try{var u=a.updateQueue,g=u!==null?u.lastEffect:null;if(g!==null){var m=g.next;u=m;do{if((u.tag&r)===r){var D=u.inst,M=D.destroy;if(M!==void 0){D.destroy=void 0,g=a;var H=l,J=M;try{J()}catch(re){Ue(g,H,re)}}}u=u.next}while(u!==m)}}catch(re){Ue(a,a.return,re)}}function x2(r){var a=r.updateQueue;if(a!==null){var l=r.stateNode;try{g1(a,l)}catch(u){Ue(r,r.return,u)}}}function D2(r,a,l){l.props=ho(r.type,r.memoizedProps),l.state=r.memoizedState;try{l.componentWillUnmount()}catch(u){Ue(r,a,u)}}function ns(r,a){try{var l=r.ref;if(l!==null){switch(r.tag){case 26:case 27:case 5:var u=r.stateNode;break;case 30:u=r.stateNode;break;default:u=r.stateNode}typeof l=="function"?r.refCleanup=l(u):l.current=u}}catch(g){Ue(r,a,g)}}function un(r,a){var l=r.ref,u=r.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(g){Ue(r,a,g)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(g){Ue(r,a,g)}else l.current=null}function _2(r){var a=r.type,l=r.memoizedProps,u=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break e;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(g){Ue(r,r.return,g)}}function Sh(r,a,l){try{var u=r.stateNode;hM(u,r.type,l,a),u[Gt]=a}catch(g){Ue(r,r.return,g)}}function O2(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&xa(r.type)||r.tag===4}function Ah(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||O2(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&xa(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Ch(r,a,l){var u=r.tag;if(u===5||u===6)r=r.stateNode,a?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(r,a):(a=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,a.appendChild(r),l=l._reactRootContainer,l!=null||a.onclick!==null||(a.onclick=Sn));else if(u!==4&&(u===27&&xa(r.type)&&(l=r.stateNode,a=null),r=r.child,r!==null))for(Ch(r,a,l),r=r.sibling;r!==null;)Ch(r,a,l),r=r.sibling}function lc(r,a,l){var u=r.tag;if(u===5||u===6)r=r.stateNode,a?l.insertBefore(r,a):l.appendChild(r);else if(u!==4&&(u===27&&xa(r.type)&&(l=r.stateNode),r=r.child,r!==null))for(lc(r,a,l),r=r.sibling;r!==null;)lc(r,a,l),r=r.sibling}function T2(r){var a=r.stateNode,l=r.memoizedProps;try{for(var u=r.type,g=a.attributes;g.length;)a.removeAttributeNode(g[0]);Mt(a,u,l),a[Tt]=r,a[Gt]=l}catch(m){Ue(r,r.return,m)}}var Fn=!1,yt=!1,wh=!1,R2=typeof WeakSet=="function"?WeakSet:Set,Dt=null;function Y6(r,a){if(r=r.containerInfo,Gh=Oc,r=Hb(r),yp(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var g=u.anchorOffset,m=u.focusNode;u=u.focusOffset;try{l.nodeType,m.nodeType}catch{l=null;break e}var D=0,M=-1,H=-1,J=0,re=0,ie=r,ee=null;t:for(;;){for(var te;ie!==l||g!==0&&ie.nodeType!==3||(M=D+g),ie!==m||u!==0&&ie.nodeType!==3||(H=D+u),ie.nodeType===3&&(D+=ie.nodeValue.length),(te=ie.firstChild)!==null;)ee=ie,ie=te;for(;;){if(ie===r)break t;if(ee===l&&++J===g&&(M=D),ee===m&&++re===u&&(H=D),(te=ie.nextSibling)!==null)break;ie=ee,ee=ie.parentNode}ie=te}l=M===-1||H===-1?null:{start:M,end:H}}else l=null}l=l||{start:0,end:0}}else l=null;for(Vh={focusedElem:r,selectionRange:l},Oc=!1,Dt=a;Dt!==null;)if(a=Dt,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,Dt=r;else for(;Dt!==null;){switch(a=Dt,m=a.alternate,r=a.flags,a.tag){case 0:if((r&4)!==0&&(r=a.updateQueue,r=r!==null?r.events:null,r!==null))for(l=0;l<r.length;l++)g=r[l],g.ref.impl=g.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&m!==null){r=void 0,l=a,g=m.memoizedProps,m=m.memoizedState,u=l.stateNode;try{var he=ho(l.type,g);r=u.getSnapshotBeforeUpdate(he,m),u.__reactInternalSnapshotBeforeUpdate=r}catch(ve){Ue(l,l.return,ve)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,l=r.nodeType,l===9)Kh(r);else if(l===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Kh(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(o(163))}if(r=a.sibling,r!==null){r.return=a.return,Dt=r;break}Dt=a.return}}function F2(r,a,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:Mn(r,l),u&4&&rs(5,l);break;case 1:if(Mn(r,l),u&4)if(r=l.stateNode,a===null)try{r.componentDidMount()}catch(D){Ue(l,l.return,D)}else{var g=ho(l.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(g,a,r.__reactInternalSnapshotBeforeUpdate)}catch(D){Ue(l,l.return,D)}}u&64&&x2(l),u&512&&ns(l,l.return);break;case 3:if(Mn(r,l),u&64&&(r=l.updateQueue,r!==null)){if(a=null,l.child!==null)switch(l.child.tag){case 27:case 5:a=l.child.stateNode;break;case 1:a=l.child.stateNode}try{g1(r,a)}catch(D){Ue(l,l.return,D)}}break;case 27:a===null&&u&4&&T2(l);case 26:case 5:Mn(r,l),a===null&&u&4&&_2(l),u&512&&ns(l,l.return);break;case 12:Mn(r,l);break;case 31:Mn(r,l),u&4&&L2(r,l);break;case 13:Mn(r,l),u&4&&N2(r,l),u&64&&(r=l.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(l=rM.bind(null,l),AM(r,l))));break;case 22:if(u=l.memoizedState!==null||Fn,!u){a=a!==null&&a.memoizedState!==null||yt,g=Fn;var m=yt;Fn=u,(yt=a)&&!m?Ln(r,l,(l.subtreeFlags&8772)!==0):Mn(r,l),Fn=g,yt=m}break;case 30:break;default:Mn(r,l)}}function B2(r){var a=r.alternate;a!==null&&(r.alternate=null,B2(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&ep(a)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var rt=null,Yt=!1;function Bn(r,a,l){for(l=l.child;l!==null;)M2(r,a,l),l=l.sibling}function M2(r,a,l){if(ur&&typeof ur.onCommitFiberUnmount=="function")try{ur.onCommitFiberUnmount(_l,l)}catch{}switch(l.tag){case 26:yt||un(l,a),Bn(r,a,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:yt||un(l,a);var u=rt,g=Yt;xa(l.type)&&(rt=l.stateNode,Yt=!1),Bn(r,a,l),ds(l.stateNode),rt=u,Yt=g;break;case 5:yt||un(l,a);case 6:if(u=rt,g=Yt,rt=null,Bn(r,a,l),rt=u,Yt=g,rt!==null)if(Yt)try{(rt.nodeType===9?rt.body:rt.nodeName==="HTML"?rt.ownerDocument.body:rt).removeChild(l.stateNode)}catch(m){Ue(l,a,m)}else try{rt.removeChild(l.stateNode)}catch(m){Ue(l,a,m)}break;case 18:rt!==null&&(Yt?(r=rt,xE(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,l.stateNode),Fi(r)):xE(rt,l.stateNode));break;case 4:u=rt,g=Yt,rt=l.stateNode.containerInfo,Yt=!0,Bn(r,a,l),rt=u,Yt=g;break;case 0:case 11:case 14:case 15:va(2,l,a),yt||va(4,l,a),Bn(r,a,l);break;case 1:yt||(un(l,a),u=l.stateNode,typeof u.componentWillUnmount=="function"&&D2(l,a,u)),Bn(r,a,l);break;case 21:Bn(r,a,l);break;case 22:yt=(u=yt)||l.memoizedState!==null,Bn(r,a,l),yt=u;break;default:Bn(r,a,l)}}function L2(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Fi(r)}catch(l){Ue(a,a.return,l)}}}function N2(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Fi(r)}catch(l){Ue(a,a.return,l)}}function W6(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new R2),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new R2),a;default:throw Error(o(435,r.tag))}}function sc(r,a){var l=W6(r);a.forEach(function(u){if(!l.has(u)){l.add(u);var g=nM.bind(null,r,u);u.then(g,g)}})}function Wt(r,a){var l=a.deletions;if(l!==null)for(var u=0;u<l.length;u++){var g=l[u],m=r,D=a,M=D;e:for(;M!==null;){switch(M.tag){case 27:if(xa(M.type)){rt=M.stateNode,Yt=!1;break e}break;case 5:rt=M.stateNode,Yt=!1;break e;case 3:case 4:rt=M.stateNode.containerInfo,Yt=!0;break e}M=M.return}if(rt===null)throw Error(o(160));M2(m,D,g),rt=null,Yt=!1,m=g.alternate,m!==null&&(m.return=null),g.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)k2(a,r),a=a.sibling}var $r=null;function k2(r,a){var l=r.alternate,u=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Wt(a,r),Kt(r),u&4&&(va(3,r,r.return),rs(3,r),va(5,r,r.return));break;case 1:Wt(a,r),Kt(r),u&512&&(yt||l===null||un(l,l.return)),u&64&&Fn&&(r=r.updateQueue,r!==null&&(u=r.callbacks,u!==null&&(l=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=l===null?u:l.concat(u))));break;case 26:var g=$r;if(Wt(a,r),Kt(r),u&512&&(yt||l===null||un(l,l.return)),u&4){var m=l!==null?l.memoizedState:null;if(u=r.memoizedState,l===null)if(u===null)if(r.stateNode===null){e:{u=r.type,l=r.memoizedProps,g=g.ownerDocument||g;t:switch(u){case"title":m=g.getElementsByTagName("title")[0],(!m||m[Rl]||m[Tt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=g.createElement(u),g.head.insertBefore(m,g.querySelector("head > title"))),Mt(m,u,l),m[Tt]=r,xt(m),u=m;break e;case"link":var D=kE("link","href",g).get(u+(l.href||""));if(D){for(var M=0;M<D.length;M++)if(m=D[M],m.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&m.getAttribute("rel")===(l.rel==null?null:l.rel)&&m.getAttribute("title")===(l.title==null?null:l.title)&&m.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){D.splice(M,1);break t}}m=g.createElement(u),Mt(m,u,l),g.head.appendChild(m);break;case"meta":if(D=kE("meta","content",g).get(u+(l.content||""))){for(M=0;M<D.length;M++)if(m=D[M],m.getAttribute("content")===(l.content==null?null:""+l.content)&&m.getAttribute("name")===(l.name==null?null:l.name)&&m.getAttribute("property")===(l.property==null?null:l.property)&&m.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&m.getAttribute("charset")===(l.charSet==null?null:l.charSet)){D.splice(M,1);break t}}m=g.createElement(u),Mt(m,u,l),g.head.appendChild(m);break;default:throw Error(o(468,u))}m[Tt]=r,xt(m),u=m}r.stateNode=u}else zE(g,r.type,r.stateNode);else r.stateNode=NE(g,u,r.memoizedProps);else m!==u?(m===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):m.count--,u===null?zE(g,r.type,r.stateNode):NE(g,u,r.memoizedProps)):u===null&&r.stateNode!==null&&Sh(r,r.memoizedProps,l.memoizedProps)}break;case 27:Wt(a,r),Kt(r),u&512&&(yt||l===null||un(l,l.return)),l!==null&&u&4&&Sh(r,r.memoizedProps,l.memoizedProps);break;case 5:if(Wt(a,r),Kt(r),u&512&&(yt||l===null||un(l,l.return)),r.flags&32){g=r.stateNode;try{ei(g,"")}catch(he){Ue(r,r.return,he)}}u&4&&r.stateNode!=null&&(g=r.memoizedProps,Sh(r,g,l!==null?l.memoizedProps:g)),u&1024&&(wh=!0);break;case 6:if(Wt(a,r),Kt(r),u&4){if(r.stateNode===null)throw Error(o(162));u=r.memoizedProps,l=r.stateNode;try{l.nodeValue=u}catch(he){Ue(r,r.return,he)}}break;case 3:if(wc=null,g=$r,$r=Ac(a.containerInfo),Wt(a,r),$r=g,Kt(r),u&4&&l!==null&&l.memoizedState.isDehydrated)try{Fi(a.containerInfo)}catch(he){Ue(r,r.return,he)}wh&&(wh=!1,z2(r));break;case 4:u=$r,$r=Ac(r.stateNode.containerInfo),Wt(a,r),Kt(r),$r=u;break;case 12:Wt(a,r),Kt(r);break;case 31:Wt(a,r),Kt(r),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,sc(r,u)));break;case 13:Wt(a,r),Kt(r),r.child.flags&8192&&r.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(cc=st()),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,sc(r,u)));break;case 22:g=r.memoizedState!==null;var H=l!==null&&l.memoizedState!==null,J=Fn,re=yt;if(Fn=J||g,yt=re||H,Wt(a,r),yt=re,Fn=J,Kt(r),u&8192)e:for(a=r.stateNode,a._visibility=g?a._visibility&-2:a._visibility|1,g&&(l===null||H||Fn||yt||go(r)),l=null,a=r;;){if(a.tag===5||a.tag===26){if(l===null){H=l=a;try{if(m=H.stateNode,g)D=m.style,typeof D.setProperty=="function"?D.setProperty("display","none","important"):D.display="none";else{M=H.stateNode;var ie=H.memoizedProps.style,ee=ie!=null&&ie.hasOwnProperty("display")?ie.display:null;M.style.display=ee==null||typeof ee=="boolean"?"":(""+ee).trim()}}catch(he){Ue(H,H.return,he)}}}else if(a.tag===6){if(l===null){H=a;try{H.stateNode.nodeValue=g?"":H.memoizedProps}catch(he){Ue(H,H.return,he)}}}else if(a.tag===18){if(l===null){H=a;try{var te=H.stateNode;g?DE(te,!0):DE(H.stateNode,!1)}catch(he){Ue(H,H.return,he)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;l===a&&(l=null),a=a.return}l===a&&(l=null),a.sibling.return=a.return,a=a.sibling}u&4&&(u=r.updateQueue,u!==null&&(l=u.retryQueue,l!==null&&(u.retryQueue=null,sc(r,l))));break;case 19:Wt(a,r),Kt(r),u&4&&(u=r.updateQueue,u!==null&&(r.updateQueue=null,sc(r,u)));break;case 30:break;case 21:break;default:Wt(a,r),Kt(r)}}function Kt(r){var a=r.flags;if(a&2){try{for(var l,u=r.return;u!==null;){if(O2(u)){l=u;break}u=u.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var g=l.stateNode,m=Ah(r);lc(r,m,g);break;case 5:var D=l.stateNode;l.flags&32&&(ei(D,""),l.flags&=-33);var M=Ah(r);lc(r,M,D);break;case 3:case 4:var H=l.stateNode.containerInfo,J=Ah(r);Ch(r,J,H);break;default:throw Error(o(161))}}catch(re){Ue(r,r.return,re)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function z2(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;z2(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function Mn(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)F2(r,a.alternate,a),a=a.sibling}function go(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:va(4,a,a.return),go(a);break;case 1:un(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&D2(a,a.return,l),go(a);break;case 27:ds(a.stateNode);case 26:case 5:un(a,a.return),go(a);break;case 22:a.memoizedState===null&&go(a);break;case 30:go(a);break;default:go(a)}r=r.sibling}}function Ln(r,a,l){for(l=l&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var u=a.alternate,g=r,m=a,D=m.flags;switch(m.tag){case 0:case 11:case 15:Ln(g,m,l),rs(4,m);break;case 1:if(Ln(g,m,l),u=m,g=u.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(J){Ue(u,u.return,J)}if(u=m,g=u.updateQueue,g!==null){var M=u.stateNode;try{var H=g.shared.hiddenCallbacks;if(H!==null)for(g.shared.hiddenCallbacks=null,g=0;g<H.length;g++)h1(H[g],M)}catch(J){Ue(u,u.return,J)}}l&&D&64&&x2(m),ns(m,m.return);break;case 27:T2(m);case 26:case 5:Ln(g,m,l),l&&u===null&&D&4&&_2(m),ns(m,m.return);break;case 12:Ln(g,m,l);break;case 31:Ln(g,m,l),l&&D&4&&L2(g,m);break;case 13:Ln(g,m,l),l&&D&4&&N2(g,m);break;case 22:m.memoizedState===null&&Ln(g,m,l),ns(m,m.return);break;case 30:break;default:Ln(g,m,l)}a=a.sibling}}function xh(r,a){var l=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==l&&(r!=null&&r.refCount++,l!=null&&Ul(l))}function Dh(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Ul(r))}function Pr(r,a,l,u){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)j2(r,a,l,u),a=a.sibling}function j2(r,a,l,u){var g=a.flags;switch(a.tag){case 0:case 11:case 15:Pr(r,a,l,u),g&2048&&rs(9,a);break;case 1:Pr(r,a,l,u);break;case 3:Pr(r,a,l,u),g&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&Ul(r)));break;case 12:if(g&2048){Pr(r,a,l,u),r=a.stateNode;try{var m=a.memoizedProps,D=m.id,M=m.onPostCommit;typeof M=="function"&&M(D,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(H){Ue(a,a.return,H)}}else Pr(r,a,l,u);break;case 31:Pr(r,a,l,u);break;case 13:Pr(r,a,l,u);break;case 23:break;case 22:m=a.stateNode,D=a.alternate,a.memoizedState!==null?m._visibility&2?Pr(r,a,l,u):as(r,a):m._visibility&2?Pr(r,a,l,u):(m._visibility|=2,Ei(r,a,l,u,(a.subtreeFlags&10256)!==0||!1)),g&2048&&xh(D,a);break;case 24:Pr(r,a,l,u),g&2048&&Dh(a.alternate,a);break;default:Pr(r,a,l,u)}}function Ei(r,a,l,u,g){for(g=g&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var m=r,D=a,M=l,H=u,J=D.flags;switch(D.tag){case 0:case 11:case 15:Ei(m,D,M,H,g),rs(8,D);break;case 23:break;case 22:var re=D.stateNode;D.memoizedState!==null?re._visibility&2?Ei(m,D,M,H,g):as(m,D):(re._visibility|=2,Ei(m,D,M,H,g)),g&&J&2048&&xh(D.alternate,D);break;case 24:Ei(m,D,M,H,g),g&&J&2048&&Dh(D.alternate,D);break;default:Ei(m,D,M,H,g)}a=a.sibling}}function as(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var l=r,u=a,g=u.flags;switch(u.tag){case 22:as(l,u),g&2048&&xh(u.alternate,u);break;case 24:as(l,u),g&2048&&Dh(u.alternate,u);break;default:as(l,u)}a=a.sibling}}var os=8192;function Si(r,a,l){if(r.subtreeFlags&os)for(r=r.child;r!==null;)$2(r,a,l),r=r.sibling}function $2(r,a,l){switch(r.tag){case 26:Si(r,a,l),r.flags&os&&r.memoizedState!==null&&LM(l,$r,r.memoizedState,r.memoizedProps);break;case 5:Si(r,a,l);break;case 3:case 4:var u=$r;$r=Ac(r.stateNode.containerInfo),Si(r,a,l),$r=u;break;case 22:r.memoizedState===null&&(u=r.alternate,u!==null&&u.memoizedState!==null?(u=os,os=16777216,Si(r,a,l),os=u):Si(r,a,l));break;default:Si(r,a,l)}}function P2(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function is(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var u=a[l];Dt=u,H2(u,r)}P2(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)I2(r),r=r.sibling}function I2(r){switch(r.tag){case 0:case 11:case 15:is(r),r.flags&2048&&va(9,r,r.return);break;case 3:is(r);break;case 12:is(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,uc(r)):is(r);break;default:is(r)}}function uc(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var u=a[l];Dt=u,H2(u,r)}P2(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:va(8,a,a.return),uc(a);break;case 22:l=a.stateNode,l._visibility&2&&(l._visibility&=-3,uc(a));break;default:uc(a)}r=r.sibling}}function H2(r,a){for(;Dt!==null;){var l=Dt;switch(l.tag){case 0:case 11:case 15:va(8,l,a);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var u=l.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Ul(l.memoizedState.cache)}if(u=l.child,u!==null)u.return=l,Dt=u;else e:for(l=r;Dt!==null;){u=Dt;var g=u.sibling,m=u.return;if(B2(u),u===l){Dt=null;break e}if(g!==null){g.return=m,Dt=g;break e}Dt=m}}}var K6={getCacheForType:function(r){var a=Ft(ht),l=a.data.get(r);return l===void 0&&(l=r(),a.data.set(r,l)),l},cacheSignal:function(){return Ft(ht).controller.signal}},X6=typeof WeakMap=="function"?WeakMap:Map,je=0,We=null,we=null,_e=0,He=0,gr=null,ba=!1,Ai=!1,_h=!1,Nn=0,ct=0,Ea=0,mo=0,Oh=0,mr=0,Ci=0,ls=null,Xt=null,Th=!1,cc=0,U2=0,fc=1/0,dc=null,Sa=null,Et=0,Aa=null,wi=null,kn=0,Rh=0,Fh=null,q2=null,ss=0,Bh=null;function yr(){return(je&2)!==0&&_e!==0?_e&-_e:k.T!==null?jh():ib()}function G2(){if(mr===0)if((_e&536870912)===0||Te){var r=Eu;Eu<<=1,(Eu&3932160)===0&&(Eu=262144),mr=r}else mr=536870912;return r=pr.current,r!==null&&(r.flags|=32),mr}function Zt(r,a,l){(r===We&&(He===2||He===9)||r.cancelPendingCommit!==null)&&(xi(r,0),Ca(r,_e,mr,!1)),Tl(r,l),((je&2)===0||r!==We)&&(r===We&&((je&2)===0&&(mo|=l),ct===4&&Ca(r,_e,mr,!1)),cn(r))}function V2(r,a,l){if((je&6)!==0)throw Error(o(327));var u=!l&&(a&127)===0&&(a&r.expiredLanes)===0||Ol(r,a),g=u?Q6(r,a):Lh(r,a,!0),m=u;do{if(g===0){Ai&&!u&&Ca(r,a,0,!1);break}else{if(l=r.current.alternate,m&&!Z6(l)){g=Lh(r,a,!1),m=!1;continue}if(g===2){if(m=a,r.errorRecoveryDisabledLanes&m)var D=0;else D=r.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){a=D;e:{var M=r;g=ls;var H=M.current.memoizedState.isDehydrated;if(H&&(xi(M,D).flags|=256),D=Lh(M,D,!1),D!==2){if(_h&&!H){M.errorRecoveryDisabledLanes|=m,mo|=m,g=4;break e}m=Xt,Xt=g,m!==null&&(Xt===null?Xt=m:Xt.push.apply(Xt,m))}g=D}if(m=!1,g!==2)continue}}if(g===1){xi(r,0),Ca(r,a,0,!0);break}e:{switch(u=r,m=g,m){case 0:case 1:throw Error(o(345));case 4:if((a&4194048)!==a)break;case 6:Ca(u,a,mr,!ba);break e;case 2:Xt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((a&62914560)===a&&(g=cc+300-st(),10<g)){if(Ca(u,a,mr,!ba),Au(u,0,!0)!==0)break e;kn=a,u.timeoutHandle=CE(Y2.bind(null,u,l,Xt,dc,Th,a,mr,mo,Ci,ba,m,"Throttled",-0,0),g);break e}Y2(u,l,Xt,dc,Th,a,mr,mo,Ci,ba,m,null,-0,0)}}break}while(!0);cn(r)}function Y2(r,a,l,u,g,m,D,M,H,J,re,ie,ee,te){if(r.timeoutHandle=-1,ie=a.subtreeFlags,ie&8192||(ie&16785408)===16785408){ie={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Sn},$2(a,m,ie);var he=(m&62914560)===m?cc-st():(m&4194048)===m?U2-st():0;if(he=NM(ie,he),he!==null){kn=m,r.cancelPendingCommit=he(tE.bind(null,r,a,m,l,u,g,D,M,H,re,ie,null,ee,te)),Ca(r,m,D,!J);return}}tE(r,a,m,l,u,g,D,M,H)}function Z6(r){for(var a=r;;){var l=a.tag;if((l===0||l===11||l===15)&&a.flags&16384&&(l=a.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var g=l[u],m=g.getSnapshot;g=g.value;try{if(!fr(m(),g))return!1}catch{return!1}}if(l=a.child,a.subtreeFlags&16384&&l!==null)l.return=a,a=l;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ca(r,a,l,u){a&=~Oh,a&=~mo,r.suspendedLanes|=a,r.pingedLanes&=~a,u&&(r.warmLanes|=a),u=r.expirationTimes;for(var g=a;0<g;){var m=31-cr(g),D=1<<m;u[m]=-1,g&=~D}l!==0&&nb(r,l,a)}function pc(){return(je&6)===0?(us(0),!1):!0}function Mh(){if(we!==null){if(He===0)var r=we.return;else r=we,xn=io=null,Kp(r),gi=null,Gl=0,r=we;for(;r!==null;)w2(r.alternate,r),r=r.return;we=null}}function xi(r,a){var l=r.timeoutHandle;l!==-1&&(r.timeoutHandle=-1,yM(l)),l=r.cancelPendingCommit,l!==null&&(r.cancelPendingCommit=null,l()),kn=0,Mh(),We=r,we=l=Cn(r.current,null),_e=a,He=0,gr=null,ba=!1,Ai=Ol(r,a),_h=!1,Ci=mr=Oh=mo=Ea=ct=0,Xt=ls=null,Th=!1,(a&8)!==0&&(a|=a&32);var u=r.entangledLanes;if(u!==0)for(r=r.entanglements,u&=a;0<u;){var g=31-cr(u),m=1<<g;a|=r[g],u&=~m}return Nn=a,Lu(),l}function W2(r,a){Ee=null,k.H=Ql,a===hi||a===Hu?(a=c1(),He=3):a===zp?(a=c1(),He=4):He=a===fh?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,gr=a,we===null&&(ct=1,rc(r,xr(a,r.current)))}function K2(){var r=pr.current;return r===null?!0:(_e&4194048)===_e?Tr===null:(_e&62914560)===_e||(_e&536870912)!==0?r===Tr:!1}function X2(){var r=k.H;return k.H=Ql,r===null?Ql:r}function Z2(){var r=k.A;return k.A=K6,r}function hc(){ct=4,ba||(_e&4194048)!==_e&&pr.current!==null||(Ai=!0),(Ea&134217727)===0&&(mo&134217727)===0||We===null||Ca(We,_e,mr,!1)}function Lh(r,a,l){var u=je;je|=2;var g=X2(),m=Z2();(We!==r||_e!==a)&&(dc=null,xi(r,a)),a=!1;var D=ct;e:do try{if(He!==0&&we!==null){var M=we,H=gr;switch(He){case 8:Mh(),D=6;break e;case 3:case 2:case 9:case 6:pr.current===null&&(a=!0);var J=He;if(He=0,gr=null,Di(r,M,H,J),l&&Ai){D=0;break e}break;default:J=He,He=0,gr=null,Di(r,M,H,J)}}J6(),D=ct;break}catch(re){W2(r,re)}while(!0);return a&&r.shellSuspendCounter++,xn=io=null,je=u,k.H=g,k.A=m,we===null&&(We=null,_e=0,Lu()),D}function J6(){for(;we!==null;)J2(we)}function Q6(r,a){var l=je;je|=2;var u=X2(),g=Z2();We!==r||_e!==a?(dc=null,fc=st()+500,xi(r,a)):Ai=Ol(r,a);e:do try{if(He!==0&&we!==null){a=we;var m=gr;t:switch(He){case 1:He=0,gr=null,Di(r,a,m,1);break;case 2:case 9:if(s1(m)){He=0,gr=null,Q2(a);break}a=function(){He!==2&&He!==9||We!==r||(He=7),cn(r)},m.then(a,a);break e;case 3:He=7;break e;case 4:He=5;break e;case 7:s1(m)?(He=0,gr=null,Q2(a)):(He=0,gr=null,Di(r,a,m,7));break;case 5:var D=null;switch(we.tag){case 26:D=we.memoizedState;case 5:case 27:var M=we;if(D?jE(D):M.stateNode.complete){He=0,gr=null;var H=M.sibling;if(H!==null)we=H;else{var J=M.return;J!==null?(we=J,gc(J)):we=null}break t}}He=0,gr=null,Di(r,a,m,5);break;case 6:He=0,gr=null,Di(r,a,m,6);break;case 8:Mh(),ct=6;break e;default:throw Error(o(462))}}eM();break}catch(re){W2(r,re)}while(!0);return xn=io=null,k.H=u,k.A=g,je=l,we!==null?0:(We=null,_e=0,Lu(),ct)}function eM(){for(;we!==null&&!an();)J2(we)}function J2(r){var a=A2(r.alternate,r,Nn);r.memoizedProps=r.pendingProps,a===null?gc(r):we=a}function Q2(r){var a=r,l=a.alternate;switch(a.tag){case 15:case 0:a=m2(l,a,a.pendingProps,a.type,void 0,_e);break;case 11:a=m2(l,a,a.pendingProps,a.type.render,a.ref,_e);break;case 5:Kp(a);default:w2(l,a),a=we=Zb(a,Nn),a=A2(l,a,Nn)}r.memoizedProps=r.pendingProps,a===null?gc(r):we=a}function Di(r,a,l,u){xn=io=null,Kp(a),gi=null,Gl=0;var g=a.return;try{if(H6(r,g,a,l,_e)){ct=1,rc(r,xr(l,r.current)),we=null;return}}catch(m){if(g!==null)throw we=g,m;ct=1,rc(r,xr(l,r.current)),we=null;return}a.flags&32768?(Te||u===1?r=!0:Ai||(_e&536870912)!==0?r=!1:(ba=r=!0,(u===2||u===9||u===3||u===6)&&(u=pr.current,u!==null&&u.tag===13&&(u.flags|=16384))),eE(a,r)):gc(a)}function gc(r){var a=r;do{if((a.flags&32768)!==0){eE(a,ba);return}r=a.return;var l=G6(a.alternate,a,Nn);if(l!==null){we=l;return}if(a=a.sibling,a!==null){we=a;return}we=a=r}while(a!==null);ct===0&&(ct=5)}function eE(r,a){do{var l=V6(r.alternate,r);if(l!==null){l.flags&=32767,we=l;return}if(l=r.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!a&&(r=r.sibling,r!==null)){we=r;return}we=r=l}while(r!==null);ct=6,we=null}function tE(r,a,l,u,g,m,D,M,H){r.cancelPendingCommit=null;do mc();while(Et!==0);if((je&6)!==0)throw Error(o(327));if(a!==null){if(a===r.current)throw Error(o(177));if(m=a.lanes|a.childLanes,m|=Ap,MB(r,l,m,D,M,H),r===We&&(we=We=null,_e=0),wi=a,Aa=r,kn=l,Rh=m,Fh=g,q2=u,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,aM(Za,function(){return iE(),null})):(r.callbackNode=null,r.callbackPriority=0),u=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||u){u=k.T,k.T=null,g=Y.p,Y.p=2,D=je,je|=4;try{Y6(r,a,l)}finally{je=D,Y.p=g,k.T=u}}Et=1,rE(),nE(),aE()}}function rE(){if(Et===1){Et=0;var r=Aa,a=wi,l=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||l){l=k.T,k.T=null;var u=Y.p;Y.p=2;var g=je;je|=4;try{k2(a,r);var m=Vh,D=Hb(r.containerInfo),M=m.focusedElem,H=m.selectionRange;if(D!==M&&M&&M.ownerDocument&&Ib(M.ownerDocument.documentElement,M)){if(H!==null&&yp(M)){var J=H.start,re=H.end;if(re===void 0&&(re=J),"selectionStart"in M)M.selectionStart=J,M.selectionEnd=Math.min(re,M.value.length);else{var ie=M.ownerDocument||document,ee=ie&&ie.defaultView||window;if(ee.getSelection){var te=ee.getSelection(),he=M.textContent.length,ve=Math.min(H.start,he),Ve=H.end===void 0?ve:Math.min(H.end,he);!te.extend&&ve>Ve&&(D=Ve,Ve=ve,ve=D);var K=Pb(M,ve),V=Pb(M,Ve);if(K&&V&&(te.rangeCount!==1||te.anchorNode!==K.node||te.anchorOffset!==K.offset||te.focusNode!==V.node||te.focusOffset!==V.offset)){var Z=ie.createRange();Z.setStart(K.node,K.offset),te.removeAllRanges(),ve>Ve?(te.addRange(Z),te.extend(V.node,V.offset)):(Z.setEnd(V.node,V.offset),te.addRange(Z))}}}}for(ie=[],te=M;te=te.parentNode;)te.nodeType===1&&ie.push({element:te,left:te.scrollLeft,top:te.scrollTop});for(typeof M.focus=="function"&&M.focus(),M=0;M<ie.length;M++){var oe=ie[M];oe.element.scrollLeft=oe.left,oe.element.scrollTop=oe.top}}Oc=!!Gh,Vh=Gh=null}finally{je=g,Y.p=u,k.T=l}}r.current=a,Et=2}}function nE(){if(Et===2){Et=0;var r=Aa,a=wi,l=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||l){l=k.T,k.T=null;var u=Y.p;Y.p=2;var g=je;je|=4;try{F2(r,a.alternate,a)}finally{je=g,Y.p=u,k.T=l}}Et=3}}function aE(){if(Et===4||Et===3){Et=0,qt();var r=Aa,a=wi,l=kn,u=q2;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Et=5:(Et=0,wi=Aa=null,oE(r,r.pendingLanes));var g=r.pendingLanes;if(g===0&&(Sa=null),Jd(l),a=a.stateNode,ur&&typeof ur.onCommitFiberRoot=="function")try{ur.onCommitFiberRoot(_l,a,void 0,(a.current.flags&128)===128)}catch{}if(u!==null){a=k.T,g=Y.p,Y.p=2,k.T=null;try{for(var m=r.onRecoverableError,D=0;D<u.length;D++){var M=u[D];m(M.value,{componentStack:M.stack})}}finally{k.T=a,Y.p=g}}(kn&3)!==0&&mc(),cn(r),g=r.pendingLanes,(l&261930)!==0&&(g&42)!==0?r===Bh?ss++:(ss=0,Bh=r):ss=0,us(0)}}function oE(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,Ul(a)))}function mc(){return rE(),nE(),aE(),iE()}function iE(){if(Et!==5)return!1;var r=Aa,a=Rh;Rh=0;var l=Jd(kn),u=k.T,g=Y.p;try{Y.p=32>l?32:l,k.T=null,l=Fh,Fh=null;var m=Aa,D=kn;if(Et=0,wi=Aa=null,kn=0,(je&6)!==0)throw Error(o(331));var M=je;if(je|=4,I2(m.current),j2(m,m.current,D,l),je=M,us(0,!1),ur&&typeof ur.onPostCommitFiberRoot=="function")try{ur.onPostCommitFiberRoot(_l,m)}catch{}return!0}finally{Y.p=g,k.T=u,oE(r,a)}}function lE(r,a,l){a=xr(l,a),a=ch(r.stateNode,a,2),r=ga(r,a,2),r!==null&&(Tl(r,2),cn(r))}function Ue(r,a,l){if(r.tag===3)lE(r,r,l);else for(;a!==null;){if(a.tag===3){lE(a,r,l);break}else if(a.tag===1){var u=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Sa===null||!Sa.has(u))){r=xr(l,r),l=s2(2),u=ga(a,l,2),u!==null&&(u2(l,u,a,r),Tl(u,2),cn(u));break}}a=a.return}}function Nh(r,a,l){var u=r.pingCache;if(u===null){u=r.pingCache=new X6;var g=new Set;u.set(a,g)}else g=u.get(a),g===void 0&&(g=new Set,u.set(a,g));g.has(l)||(_h=!0,g.add(l),r=tM.bind(null,r,a,l),a.then(r,r))}function tM(r,a,l){var u=r.pingCache;u!==null&&u.delete(a),r.pingedLanes|=r.suspendedLanes&l,r.warmLanes&=~l,We===r&&(_e&l)===l&&(ct===4||ct===3&&(_e&62914560)===_e&&300>st()-cc?(je&2)===0&&xi(r,0):Oh|=l,Ci===_e&&(Ci=0)),cn(r)}function sE(r,a){a===0&&(a=rb()),r=no(r,a),r!==null&&(Tl(r,a),cn(r))}function rM(r){var a=r.memoizedState,l=0;a!==null&&(l=a.retryLane),sE(r,l)}function nM(r,a){var l=0;switch(r.tag){case 31:case 13:var u=r.stateNode,g=r.memoizedState;g!==null&&(l=g.retryLane);break;case 19:u=r.stateNode;break;case 22:u=r.stateNode._retryCache;break;default:throw Error(o(314))}u!==null&&u.delete(a),sE(r,l)}function aM(r,a){return Ot(r,a)}var yc=null,_i=null,kh=!1,vc=!1,zh=!1,wa=0;function cn(r){r!==_i&&r.next===null&&(_i===null?yc=_i=r:_i=_i.next=r),vc=!0,kh||(kh=!0,iM())}function us(r,a){if(!zh&&vc){zh=!0;do for(var l=!1,u=yc;u!==null;){if(r!==0){var g=u.pendingLanes;if(g===0)var m=0;else{var D=u.suspendedLanes,M=u.pingedLanes;m=(1<<31-cr(42|r)+1)-1,m&=g&~(D&~M),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(l=!0,dE(u,m))}else m=_e,m=Au(u,u===We?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(m&3)===0||Ol(u,m)||(l=!0,dE(u,m));u=u.next}while(l);zh=!1}}function oM(){uE()}function uE(){vc=kh=!1;var r=0;wa!==0&&mM()&&(r=wa);for(var a=st(),l=null,u=yc;u!==null;){var g=u.next,m=cE(u,a);m===0?(u.next=null,l===null?yc=g:l.next=g,g===null&&(_i=l)):(l=u,(r!==0||(m&3)!==0)&&(vc=!0)),u=g}Et!==0&&Et!==5||us(r),wa!==0&&(wa=0)}function cE(r,a){for(var l=r.suspendedLanes,u=r.pingedLanes,g=r.expirationTimes,m=r.pendingLanes&-62914561;0<m;){var D=31-cr(m),M=1<<D,H=g[D];H===-1?((M&l)===0||(M&u)!==0)&&(g[D]=BB(M,a)):H<=a&&(r.expiredLanes|=M),m&=~M}if(a=We,l=_e,l=Au(r,r===a?l:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),u=r.callbackNode,l===0||r===a&&(He===2||He===9)||r.cancelPendingCommit!==null)return u!==null&&u!==null&&sr(u),r.callbackNode=null,r.callbackPriority=0;if((l&3)===0||Ol(r,l)){if(a=l&-l,a===r.callbackPriority)return a;switch(u!==null&&sr(u),Jd(l)){case 2:case 8:l=Dl;break;case 32:l=Za;break;case 268435456:l=tb;break;default:l=Za}return u=fE.bind(null,r),l=Ot(l,u),r.callbackPriority=a,r.callbackNode=l,a}return u!==null&&u!==null&&sr(u),r.callbackPriority=2,r.callbackNode=null,2}function fE(r,a){if(Et!==0&&Et!==5)return r.callbackNode=null,r.callbackPriority=0,null;var l=r.callbackNode;if(mc()&&r.callbackNode!==l)return null;var u=_e;return u=Au(r,r===We?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),u===0?null:(V2(r,u,a),cE(r,st()),r.callbackNode!=null&&r.callbackNode===l?fE.bind(null,r):null)}function dE(r,a){if(mc())return null;V2(r,a,!0)}function iM(){vM(function(){(je&6)!==0?Ot(on,oM):uE()})}function jh(){if(wa===0){var r=di;r===0&&(r=bu,bu<<=1,(bu&261888)===0&&(bu=256)),wa=r}return wa}function pE(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Du(""+r)}function hE(r,a){var l=a.ownerDocument.createElement("input");return l.name=a.name,l.value=a.value,r.id&&l.setAttribute("form",r.id),a.parentNode.insertBefore(l,a),r=new FormData(r),l.parentNode.removeChild(l),r}function lM(r,a,l,u,g){if(a==="submit"&&l&&l.stateNode===g){var m=pE((g[Gt]||null).action),D=u.submitter;D&&(a=(a=D[Gt]||null)?pE(a.formAction):D.getAttribute("formAction"),a!==null&&(m=a,D=null));var M=new Ru("action","action",null,u,g);r.push({event:M,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(wa!==0){var H=D?hE(g,D):new FormData(g);ah(l,{pending:!0,data:H,method:g.method,action:m},null,H)}}else typeof m=="function"&&(M.preventDefault(),H=D?hE(g,D):new FormData(g),ah(l,{pending:!0,data:H,method:g.method,action:m},m,H))},currentTarget:g}]})}}for(var $h=0;$h<Sp.length;$h++){var Ph=Sp[$h],sM=Ph.toLowerCase(),uM=Ph[0].toUpperCase()+Ph.slice(1);jr(sM,"on"+uM)}jr(Gb,"onAnimationEnd"),jr(Vb,"onAnimationIteration"),jr(Yb,"onAnimationStart"),jr("dblclick","onDoubleClick"),jr("focusin","onFocus"),jr("focusout","onBlur"),jr(x6,"onTransitionRun"),jr(D6,"onTransitionStart"),jr(_6,"onTransitionCancel"),jr(Wb,"onTransitionEnd"),Jo("onMouseEnter",["mouseout","mouseover"]),Jo("onMouseLeave",["mouseout","mouseover"]),Jo("onPointerEnter",["pointerout","pointerover"]),Jo("onPointerLeave",["pointerout","pointerover"]),Qa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Qa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Qa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Qa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Qa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Qa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cs="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),cM=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(cs));function gE(r,a){a=(a&4)!==0;for(var l=0;l<r.length;l++){var u=r[l],g=u.event;u=u.listeners;e:{var m=void 0;if(a)for(var D=u.length-1;0<=D;D--){var M=u[D],H=M.instance,J=M.currentTarget;if(M=M.listener,H!==m&&g.isPropagationStopped())break e;m=M,g.currentTarget=J;try{m(g)}catch(re){Mu(re)}g.currentTarget=null,m=H}else for(D=0;D<u.length;D++){if(M=u[D],H=M.instance,J=M.currentTarget,M=M.listener,H!==m&&g.isPropagationStopped())break e;m=M,g.currentTarget=J;try{m(g)}catch(re){Mu(re)}g.currentTarget=null,m=H}}}}function xe(r,a){var l=a[Qd];l===void 0&&(l=a[Qd]=new Set);var u=r+"__bubble";l.has(u)||(mE(a,r,2,!1),l.add(u))}function Ih(r,a,l){var u=0;a&&(u|=4),mE(l,r,u,a)}var bc="_reactListening"+Math.random().toString(36).slice(2);function Hh(r){if(!r[bc]){r[bc]=!0,ub.forEach(function(l){l!=="selectionchange"&&(cM.has(l)||Ih(l,!1,r),Ih(l,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[bc]||(a[bc]=!0,Ih("selectionchange",!1,a))}}function mE(r,a,l,u){switch(GE(a)){case 2:var g=jM;break;case 8:g=$M;break;default:g=ng}l=g.bind(null,a,l,r),g=void 0,!sp||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(g=!0),u?g!==void 0?r.addEventListener(a,l,{capture:!0,passive:g}):r.addEventListener(a,l,!0):g!==void 0?r.addEventListener(a,l,{passive:g}):r.addEventListener(a,l,!1)}function Uh(r,a,l,u,g){var m=u;if((a&1)===0&&(a&2)===0&&u!==null)e:for(;;){if(u===null)return;var D=u.tag;if(D===3||D===4){var M=u.stateNode.containerInfo;if(M===g)break;if(D===4)for(D=u.return;D!==null;){var H=D.tag;if((H===3||H===4)&&D.stateNode.containerInfo===g)return;D=D.return}for(;M!==null;){if(D=Ko(M),D===null)return;if(H=D.tag,H===5||H===6||H===26||H===27){u=m=D;continue e}M=M.parentNode}}u=u.return}Sb(function(){var J=m,re=ip(l),ie=[];e:{var ee=Kb.get(r);if(ee!==void 0){var te=Ru,he=r;switch(r){case"keypress":if(Ou(l)===0)break e;case"keydown":case"keyup":te=n6;break;case"focusin":he="focus",te=dp;break;case"focusout":he="blur",te=dp;break;case"beforeblur":case"afterblur":te=dp;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":te=wb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":te=GB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":te=i6;break;case Gb:case Vb:case Yb:te=WB;break;case Wb:te=s6;break;case"scroll":case"scrollend":te=UB;break;case"wheel":te=c6;break;case"copy":case"cut":case"paste":te=XB;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":te=Db;break;case"toggle":case"beforetoggle":te=d6}var ve=(a&4)!==0,Ve=!ve&&(r==="scroll"||r==="scrollend"),K=ve?ee!==null?ee+"Capture":null:ee;ve=[];for(var V=J,Z;V!==null;){var oe=V;if(Z=oe.stateNode,oe=oe.tag,oe!==5&&oe!==26&&oe!==27||Z===null||K===null||(oe=Bl(V,K),oe!=null&&ve.push(fs(V,oe,Z))),Ve)break;V=V.return}0<ve.length&&(ee=new te(ee,he,null,l,re),ie.push({event:ee,listeners:ve}))}}if((a&7)===0){e:{if(ee=r==="mouseover"||r==="pointerover",te=r==="mouseout"||r==="pointerout",ee&&l!==op&&(he=l.relatedTarget||l.fromElement)&&(Ko(he)||he[Wo]))break e;if((te||ee)&&(ee=re.window===re?re:(ee=re.ownerDocument)?ee.defaultView||ee.parentWindow:window,te?(he=l.relatedTarget||l.toElement,te=J,he=he?Ko(he):null,he!==null&&(Ve=s(he),ve=he.tag,he!==Ve||ve!==5&&ve!==27&&ve!==6)&&(he=null)):(te=null,he=J),te!==he)){if(ve=wb,oe="onMouseLeave",K="onMouseEnter",V="mouse",(r==="pointerout"||r==="pointerover")&&(ve=Db,oe="onPointerLeave",K="onPointerEnter",V="pointer"),Ve=te==null?ee:Fl(te),Z=he==null?ee:Fl(he),ee=new ve(oe,V+"leave",te,l,re),ee.target=Ve,ee.relatedTarget=Z,oe=null,Ko(re)===J&&(ve=new ve(K,V+"enter",he,l,re),ve.target=Z,ve.relatedTarget=Ve,oe=ve),Ve=oe,te&&he)t:{for(ve=fM,K=te,V=he,Z=0,oe=K;oe;oe=ve(oe))Z++;oe=0;for(var ye=V;ye;ye=ve(ye))oe++;for(;0<Z-oe;)K=ve(K),Z--;for(;0<oe-Z;)V=ve(V),oe--;for(;Z--;){if(K===V||V!==null&&K===V.alternate){ve=K;break t}K=ve(K),V=ve(V)}ve=null}else ve=null;te!==null&&yE(ie,ee,te,ve,!1),he!==null&&Ve!==null&&yE(ie,Ve,he,ve,!0)}}e:{if(ee=J?Fl(J):window,te=ee.nodeName&&ee.nodeName.toLowerCase(),te==="select"||te==="input"&&ee.type==="file")var Ne=Lb;else if(Bb(ee))if(Nb)Ne=A6;else{Ne=E6;var ge=b6}else te=ee.nodeName,!te||te.toLowerCase()!=="input"||ee.type!=="checkbox"&&ee.type!=="radio"?J&&ap(J.elementType)&&(Ne=Lb):Ne=S6;if(Ne&&(Ne=Ne(r,J))){Mb(ie,Ne,l,re);break e}ge&&ge(r,ee,J),r==="focusout"&&J&&ee.type==="number"&&J.memoizedProps.value!=null&&np(ee,"number",ee.value)}switch(ge=J?Fl(J):window,r){case"focusin":(Bb(ge)||ge.contentEditable==="true")&&(ai=ge,vp=J,Pl=null);break;case"focusout":Pl=vp=ai=null;break;case"mousedown":bp=!0;break;case"contextmenu":case"mouseup":case"dragend":bp=!1,Ub(ie,l,re);break;case"selectionchange":if(w6)break;case"keydown":case"keyup":Ub(ie,l,re)}var Se;if(hp)e:{switch(r){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else ni?Rb(r,l)&&(Oe="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(Oe="onCompositionStart");Oe&&(_b&&l.locale!=="ko"&&(ni||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&ni&&(Se=Ab()):(sa=re,up="value"in sa?sa.value:sa.textContent,ni=!0)),ge=Ec(J,Oe),0<ge.length&&(Oe=new xb(Oe,r,null,l,re),ie.push({event:Oe,listeners:ge}),Se?Oe.data=Se:(Se=Fb(l),Se!==null&&(Oe.data=Se)))),(Se=h6?g6(r,l):m6(r,l))&&(Oe=Ec(J,"onBeforeInput"),0<Oe.length&&(ge=new xb("onBeforeInput","beforeinput",null,l,re),ie.push({event:ge,listeners:Oe}),ge.data=Se)),lM(ie,r,J,l,re)}gE(ie,a)})}function fs(r,a,l){return{instance:r,listener:a,currentTarget:l}}function Ec(r,a){for(var l=a+"Capture",u=[];r!==null;){var g=r,m=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||m===null||(g=Bl(r,l),g!=null&&u.unshift(fs(r,g,m)),g=Bl(r,a),g!=null&&u.push(fs(r,g,m))),r.tag===3)return u;r=r.return}return[]}function fM(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function yE(r,a,l,u,g){for(var m=a._reactName,D=[];l!==null&&l!==u;){var M=l,H=M.alternate,J=M.stateNode;if(M=M.tag,H!==null&&H===u)break;M!==5&&M!==26&&M!==27||J===null||(H=J,g?(J=Bl(l,m),J!=null&&D.unshift(fs(l,J,H))):g||(J=Bl(l,m),J!=null&&D.push(fs(l,J,H)))),l=l.return}D.length!==0&&r.push({event:a,listeners:D})}var dM=/\r\n?/g,pM=/\u0000|\uFFFD/g;function vE(r){return(typeof r=="string"?r:""+r).replace(dM,`
|
|
627
|
-
`).replace(pM,"")}function bE(r,a){return a=vE(a),vE(r)===a}function Ge(r,a,l,u,g,m){switch(l){case"children":typeof u=="string"?a==="body"||a==="textarea"&&u===""||ei(r,u):(typeof u=="number"||typeof u=="bigint")&&a!=="body"&&ei(r,""+u);break;case"className":wu(r,"class",u);break;case"tabIndex":wu(r,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":wu(r,l,u);break;case"style":bb(r,u,m);break;case"data":if(a!=="object"){wu(r,"data",u);break}case"src":case"href":if(u===""&&(a!=="a"||l!=="href")){r.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){r.removeAttribute(l);break}u=Du(""+u),r.setAttribute(l,u);break;case"action":case"formAction":if(typeof u=="function"){r.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(l==="formAction"?(a!=="input"&&Ge(r,a,"name",g.name,g,null),Ge(r,a,"formEncType",g.formEncType,g,null),Ge(r,a,"formMethod",g.formMethod,g,null),Ge(r,a,"formTarget",g.formTarget,g,null)):(Ge(r,a,"encType",g.encType,g,null),Ge(r,a,"method",g.method,g,null),Ge(r,a,"target",g.target,g,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){r.removeAttribute(l);break}u=Du(""+u),r.setAttribute(l,u);break;case"onClick":u!=null&&(r.onclick=Sn);break;case"onScroll":u!=null&&xe("scroll",r);break;case"onScrollEnd":u!=null&&xe("scrollend",r);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(o(61));if(l=u.__html,l!=null){if(g.children!=null)throw Error(o(60));r.innerHTML=l}}break;case"multiple":r.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":r.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){r.removeAttribute("xlink:href");break}l=Du(""+u),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(l,""+u):r.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(l,""):r.removeAttribute(l);break;case"capture":case"download":u===!0?r.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?r.setAttribute(l,u):r.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?r.setAttribute(l,u):r.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?r.removeAttribute(l):r.setAttribute(l,u);break;case"popover":xe("beforetoggle",r),xe("toggle",r),Cu(r,"popover",u);break;case"xlinkActuate":En(r,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":En(r,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":En(r,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":En(r,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":En(r,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":En(r,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":En(r,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":En(r,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":En(r,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Cu(r,"is",u);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=IB.get(l)||l,Cu(r,l,u))}}function qh(r,a,l,u,g,m){switch(l){case"style":bb(r,u,m);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(o(61));if(l=u.__html,l!=null){if(g.children!=null)throw Error(o(60));r.innerHTML=l}}break;case"children":typeof u=="string"?ei(r,u):(typeof u=="number"||typeof u=="bigint")&&ei(r,""+u);break;case"onScroll":u!=null&&xe("scroll",r);break;case"onScrollEnd":u!=null&&xe("scrollend",r);break;case"onClick":u!=null&&(r.onclick=Sn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!cb.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(g=l.endsWith("Capture"),a=l.slice(2,g?l.length-7:void 0),m=r[Gt]||null,m=m!=null?m[l]:null,typeof m=="function"&&r.removeEventListener(a,m,g),typeof u=="function")){typeof m!="function"&&m!==null&&(l in r?r[l]=null:r.hasAttribute(l)&&r.removeAttribute(l)),r.addEventListener(a,u,g);break e}l in r?r[l]=u:u===!0?r.setAttribute(l,""):Cu(r,l,u)}}}function Mt(r,a,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",r),xe("load",r);var u=!1,g=!1,m;for(m in l)if(l.hasOwnProperty(m)){var D=l[m];if(D!=null)switch(m){case"src":u=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,a));default:Ge(r,a,m,D,l,null)}}g&&Ge(r,a,"srcSet",l.srcSet,l,null),u&&Ge(r,a,"src",l.src,l,null);return;case"input":xe("invalid",r);var M=m=D=g=null,H=null,J=null;for(u in l)if(l.hasOwnProperty(u)){var re=l[u];if(re!=null)switch(u){case"name":g=re;break;case"type":D=re;break;case"checked":H=re;break;case"defaultChecked":J=re;break;case"value":m=re;break;case"defaultValue":M=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(o(137,a));break;default:Ge(r,a,u,re,l,null)}}gb(r,m,M,H,J,D,g,!1);return;case"select":xe("invalid",r),u=D=m=null;for(g in l)if(l.hasOwnProperty(g)&&(M=l[g],M!=null))switch(g){case"value":m=M;break;case"defaultValue":D=M;break;case"multiple":u=M;default:Ge(r,a,g,M,l,null)}a=m,l=D,r.multiple=!!u,a!=null?Qo(r,!!u,a,!1):l!=null&&Qo(r,!!u,l,!0);return;case"textarea":xe("invalid",r),m=g=u=null;for(D in l)if(l.hasOwnProperty(D)&&(M=l[D],M!=null))switch(D){case"value":u=M;break;case"defaultValue":g=M;break;case"children":m=M;break;case"dangerouslySetInnerHTML":if(M!=null)throw Error(o(91));break;default:Ge(r,a,D,M,l,null)}yb(r,u,g,m);return;case"option":for(H in l)if(l.hasOwnProperty(H)&&(u=l[H],u!=null))switch(H){case"selected":r.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:Ge(r,a,H,u,l,null)}return;case"dialog":xe("beforetoggle",r),xe("toggle",r),xe("cancel",r),xe("close",r);break;case"iframe":case"object":xe("load",r);break;case"video":case"audio":for(u=0;u<cs.length;u++)xe(cs[u],r);break;case"image":xe("error",r),xe("load",r);break;case"details":xe("toggle",r);break;case"embed":case"source":case"link":xe("error",r),xe("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(J in l)if(l.hasOwnProperty(J)&&(u=l[J],u!=null))switch(J){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,a));default:Ge(r,a,J,u,l,null)}return;default:if(ap(a)){for(re in l)l.hasOwnProperty(re)&&(u=l[re],u!==void 0&&qh(r,a,re,u,l,void 0));return}}for(M in l)l.hasOwnProperty(M)&&(u=l[M],u!=null&&Ge(r,a,M,u,l,null))}function hM(r,a,l,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,m=null,D=null,M=null,H=null,J=null,re=null;for(te in l){var ie=l[te];if(l.hasOwnProperty(te)&&ie!=null)switch(te){case"checked":break;case"value":break;case"defaultValue":H=ie;default:u.hasOwnProperty(te)||Ge(r,a,te,null,u,ie)}}for(var ee in u){var te=u[ee];if(ie=l[ee],u.hasOwnProperty(ee)&&(te!=null||ie!=null))switch(ee){case"type":m=te;break;case"name":g=te;break;case"checked":J=te;break;case"defaultChecked":re=te;break;case"value":D=te;break;case"defaultValue":M=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(o(137,a));break;default:te!==ie&&Ge(r,a,ee,te,u,ie)}}rp(r,D,M,H,J,re,m,g);return;case"select":te=D=M=ee=null;for(m in l)if(H=l[m],l.hasOwnProperty(m)&&H!=null)switch(m){case"value":break;case"multiple":te=H;default:u.hasOwnProperty(m)||Ge(r,a,m,null,u,H)}for(g in u)if(m=u[g],H=l[g],u.hasOwnProperty(g)&&(m!=null||H!=null))switch(g){case"value":ee=m;break;case"defaultValue":M=m;break;case"multiple":D=m;default:m!==H&&Ge(r,a,g,m,u,H)}a=M,l=D,u=te,ee!=null?Qo(r,!!l,ee,!1):!!u!=!!l&&(a!=null?Qo(r,!!l,a,!0):Qo(r,!!l,l?[]:"",!1));return;case"textarea":te=ee=null;for(M in l)if(g=l[M],l.hasOwnProperty(M)&&g!=null&&!u.hasOwnProperty(M))switch(M){case"value":break;case"children":break;default:Ge(r,a,M,null,u,g)}for(D in u)if(g=u[D],m=l[D],u.hasOwnProperty(D)&&(g!=null||m!=null))switch(D){case"value":ee=g;break;case"defaultValue":te=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(o(91));break;default:g!==m&&Ge(r,a,D,g,u,m)}mb(r,ee,te);return;case"option":for(var he in l)if(ee=l[he],l.hasOwnProperty(he)&&ee!=null&&!u.hasOwnProperty(he))switch(he){case"selected":r.selected=!1;break;default:Ge(r,a,he,null,u,ee)}for(H in u)if(ee=u[H],te=l[H],u.hasOwnProperty(H)&&ee!==te&&(ee!=null||te!=null))switch(H){case"selected":r.selected=ee&&typeof ee!="function"&&typeof ee!="symbol";break;default:Ge(r,a,H,ee,u,te)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ve in l)ee=l[ve],l.hasOwnProperty(ve)&&ee!=null&&!u.hasOwnProperty(ve)&&Ge(r,a,ve,null,u,ee);for(J in u)if(ee=u[J],te=l[J],u.hasOwnProperty(J)&&ee!==te&&(ee!=null||te!=null))switch(J){case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(o(137,a));break;default:Ge(r,a,J,ee,u,te)}return;default:if(ap(a)){for(var Ve in l)ee=l[Ve],l.hasOwnProperty(Ve)&&ee!==void 0&&!u.hasOwnProperty(Ve)&&qh(r,a,Ve,void 0,u,ee);for(re in u)ee=u[re],te=l[re],!u.hasOwnProperty(re)||ee===te||ee===void 0&&te===void 0||qh(r,a,re,ee,u,te);return}}for(var K in l)ee=l[K],l.hasOwnProperty(K)&&ee!=null&&!u.hasOwnProperty(K)&&Ge(r,a,K,null,u,ee);for(ie in u)ee=u[ie],te=l[ie],!u.hasOwnProperty(ie)||ee===te||ee==null&&te==null||Ge(r,a,ie,ee,u,te)}function EE(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function gM(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,l=performance.getEntriesByType("resource"),u=0;u<l.length;u++){var g=l[u],m=g.transferSize,D=g.initiatorType,M=g.duration;if(m&&M&&EE(D)){for(D=0,M=g.responseEnd,u+=1;u<l.length;u++){var H=l[u],J=H.startTime;if(J>M)break;var re=H.transferSize,ie=H.initiatorType;re&&EE(ie)&&(H=H.responseEnd,D+=re*(H<M?1:(M-J)/(H-J)))}if(--u,a+=8*(m+D)/(g.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var Gh=null,Vh=null;function Sc(r){return r.nodeType===9?r:r.ownerDocument}function SE(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function AE(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function Yh(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Wh=null;function mM(){var r=window.event;return r&&r.type==="popstate"?r===Wh?!1:(Wh=r,!0):(Wh=null,!1)}var CE=typeof setTimeout=="function"?setTimeout:void 0,yM=typeof clearTimeout=="function"?clearTimeout:void 0,wE=typeof Promise=="function"?Promise:void 0,vM=typeof queueMicrotask=="function"?queueMicrotask:typeof wE<"u"?function(r){return wE.resolve(null).then(r).catch(bM)}:CE;function bM(r){setTimeout(function(){throw r})}function xa(r){return r==="head"}function xE(r,a){var l=a,u=0;do{var g=l.nextSibling;if(r.removeChild(l),g&&g.nodeType===8)if(l=g.data,l==="/$"||l==="/&"){if(u===0){r.removeChild(g),Fi(a);return}u--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")u++;else if(l==="html")ds(r.ownerDocument.documentElement);else if(l==="head"){l=r.ownerDocument.head,ds(l);for(var m=l.firstChild;m;){var D=m.nextSibling,M=m.nodeName;m[Rl]||M==="SCRIPT"||M==="STYLE"||M==="LINK"&&m.rel.toLowerCase()==="stylesheet"||l.removeChild(m),m=D}}else l==="body"&&ds(r.ownerDocument.body);l=g}while(l);Fi(a)}function DE(r,a){var l=r;r=0;do{var u=l.nextSibling;if(l.nodeType===1?a?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(a?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),u&&u.nodeType===8)if(l=u.data,l==="/$"){if(r===0)break;r--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||r++;l=u}while(l)}function Kh(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var l=a;switch(a=a.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Kh(l),ep(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}r.removeChild(l)}}function EM(r,a,l,u){for(;r.nodeType===1;){var g=l;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!u&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(u){if(!r[Rl])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(m=r.getAttribute("rel"),m==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(m!==g.rel||r.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||r.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||r.getAttribute("title")!==(g.title==null?null:g.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(m=r.getAttribute("src"),(m!==(g.src==null?null:g.src)||r.getAttribute("type")!==(g.type==null?null:g.type)||r.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&m&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var m=g.name==null?null:""+g.name;if(g.type==="hidden"&&r.getAttribute("name")===m)return r}else return r;if(r=Rr(r.nextSibling),r===null)break}return null}function SM(r,a,l){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!l||(r=Rr(r.nextSibling),r===null))return null;return r}function _E(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=Rr(r.nextSibling),r===null))return null;return r}function Xh(r){return r.data==="$?"||r.data==="$~"}function Zh(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function AM(r,a){var l=r.ownerDocument;if(r.data==="$~")r._reactRetry=a;else if(r.data!=="$?"||l.readyState!=="loading")a();else{var u=function(){a(),l.removeEventListener("DOMContentLoaded",u)};l.addEventListener("DOMContentLoaded",u),r._reactRetry=u}}function Rr(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return r}var Jh=null;function OE(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"||l==="/&"){if(a===0)return Rr(r.nextSibling);a--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||a++}r=r.nextSibling}return null}function TE(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(a===0)return r;a--}else l!=="/$"&&l!=="/&"||a++}r=r.previousSibling}return null}function RE(r,a,l){switch(a=Sc(l),r){case"html":if(r=a.documentElement,!r)throw Error(o(452));return r;case"head":if(r=a.head,!r)throw Error(o(453));return r;case"body":if(r=a.body,!r)throw Error(o(454));return r;default:throw Error(o(451))}}function ds(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);ep(r)}var Fr=new Map,FE=new Set;function Ac(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var zn=Y.d;Y.d={f:CM,r:wM,D:xM,C:DM,L:_M,m:OM,X:RM,S:TM,M:FM};function CM(){var r=zn.f(),a=pc();return r||a}function wM(r){var a=Xo(r);a!==null&&a.tag===5&&a.type==="form"?W1(a):zn.r(r)}var Oi=typeof document>"u"?null:document;function BE(r,a,l){var u=Oi;if(u&&typeof a=="string"&&a){var g=Cr(a);g='link[rel="'+r+'"][href="'+g+'"]',typeof l=="string"&&(g+='[crossorigin="'+l+'"]'),FE.has(g)||(FE.add(g),r={rel:r,crossOrigin:l,href:a},u.querySelector(g)===null&&(a=u.createElement("link"),Mt(a,"link",r),xt(a),u.head.appendChild(a)))}}function xM(r){zn.D(r),BE("dns-prefetch",r,null)}function DM(r,a){zn.C(r,a),BE("preconnect",r,a)}function _M(r,a,l){zn.L(r,a,l);var u=Oi;if(u&&r&&a){var g='link[rel="preload"][as="'+Cr(a)+'"]';a==="image"&&l&&l.imageSrcSet?(g+='[imagesrcset="'+Cr(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(g+='[imagesizes="'+Cr(l.imageSizes)+'"]')):g+='[href="'+Cr(r)+'"]';var m=g;switch(a){case"style":m=Ti(r);break;case"script":m=Ri(r)}Fr.has(m)||(r=v({rel:"preload",href:a==="image"&&l&&l.imageSrcSet?void 0:r,as:a},l),Fr.set(m,r),u.querySelector(g)!==null||a==="style"&&u.querySelector(ps(m))||a==="script"&&u.querySelector(hs(m))||(a=u.createElement("link"),Mt(a,"link",r),xt(a),u.head.appendChild(a)))}}function OM(r,a){zn.m(r,a);var l=Oi;if(l&&r){var u=a&&typeof a.as=="string"?a.as:"script",g='link[rel="modulepreload"][as="'+Cr(u)+'"][href="'+Cr(r)+'"]',m=g;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Ri(r)}if(!Fr.has(m)&&(r=v({rel:"modulepreload",href:r},a),Fr.set(m,r),l.querySelector(g)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(hs(m)))return}u=l.createElement("link"),Mt(u,"link",r),xt(u),l.head.appendChild(u)}}}function TM(r,a,l){zn.S(r,a,l);var u=Oi;if(u&&r){var g=Zo(u).hoistableStyles,m=Ti(r);a=a||"default";var D=g.get(m);if(!D){var M={loading:0,preload:null};if(D=u.querySelector(ps(m)))M.loading=5;else{r=v({rel:"stylesheet",href:r,"data-precedence":a},l),(l=Fr.get(m))&&Qh(r,l);var H=D=u.createElement("link");xt(H),Mt(H,"link",r),H._p=new Promise(function(J,re){H.onload=J,H.onerror=re}),H.addEventListener("load",function(){M.loading|=1}),H.addEventListener("error",function(){M.loading|=2}),M.loading|=4,Cc(D,a,u)}D={type:"stylesheet",instance:D,count:1,state:M},g.set(m,D)}}}function RM(r,a){zn.X(r,a);var l=Oi;if(l&&r){var u=Zo(l).hoistableScripts,g=Ri(r),m=u.get(g);m||(m=l.querySelector(hs(g)),m||(r=v({src:r,async:!0},a),(a=Fr.get(g))&&eg(r,a),m=l.createElement("script"),xt(m),Mt(m,"link",r),l.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(g,m))}}function FM(r,a){zn.M(r,a);var l=Oi;if(l&&r){var u=Zo(l).hoistableScripts,g=Ri(r),m=u.get(g);m||(m=l.querySelector(hs(g)),m||(r=v({src:r,async:!0,type:"module"},a),(a=Fr.get(g))&&eg(r,a),m=l.createElement("script"),xt(m),Mt(m,"link",r),l.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(g,m))}}function ME(r,a,l,u){var g=(g=fe.current)?Ac(g):null;if(!g)throw Error(o(446));switch(r){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(a=Ti(l.href),l=Zo(g).hoistableStyles,u=l.get(a),u||(u={type:"style",instance:null,count:0,state:null},l.set(a,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){r=Ti(l.href);var m=Zo(g).hoistableStyles,D=m.get(r);if(D||(g=g.ownerDocument||g,D={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(r,D),(m=g.querySelector(ps(r)))&&!m._p&&(D.instance=m,D.state.loading=5),Fr.has(r)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Fr.set(r,l),m||BM(g,r,l,D.state))),a&&u===null)throw Error(o(528,""));return D}if(a&&u!==null)throw Error(o(529,""));return null;case"script":return a=l.async,l=l.src,typeof l=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Ri(l),l=Zo(g).hoistableScripts,u=l.get(a),u||(u={type:"script",instance:null,count:0,state:null},l.set(a,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,r))}}function Ti(r){return'href="'+Cr(r)+'"'}function ps(r){return'link[rel="stylesheet"]['+r+"]"}function LE(r){return v({},r,{"data-precedence":r.precedence,precedence:null})}function BM(r,a,l,u){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?u.loading=1:(a=r.createElement("link"),u.preload=a,a.addEventListener("load",function(){return u.loading|=1}),a.addEventListener("error",function(){return u.loading|=2}),Mt(a,"link",l),xt(a),r.head.appendChild(a))}function Ri(r){return'[src="'+Cr(r)+'"]'}function hs(r){return"script[async]"+r}function NE(r,a,l){if(a.count++,a.instance===null)switch(a.type){case"style":var u=r.querySelector('style[data-href~="'+Cr(l.href)+'"]');if(u)return a.instance=u,xt(u),u;var g=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(r.ownerDocument||r).createElement("style"),xt(u),Mt(u,"style",g),Cc(u,l.precedence,r),a.instance=u;case"stylesheet":g=Ti(l.href);var m=r.querySelector(ps(g));if(m)return a.state.loading|=4,a.instance=m,xt(m),m;u=LE(l),(g=Fr.get(g))&&Qh(u,g),m=(r.ownerDocument||r).createElement("link"),xt(m);var D=m;return D._p=new Promise(function(M,H){D.onload=M,D.onerror=H}),Mt(m,"link",u),a.state.loading|=4,Cc(m,l.precedence,r),a.instance=m;case"script":return m=Ri(l.src),(g=r.querySelector(hs(m)))?(a.instance=g,xt(g),g):(u=l,(g=Fr.get(m))&&(u=v({},l),eg(u,g)),r=r.ownerDocument||r,g=r.createElement("script"),xt(g),Mt(g,"link",u),r.head.appendChild(g),a.instance=g);case"void":return null;default:throw Error(o(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(u=a.instance,a.state.loading|=4,Cc(u,l.precedence,r));return a.instance}function Cc(r,a,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=u.length?u[u.length-1]:null,m=g,D=0;D<u.length;D++){var M=u[D];if(M.dataset.precedence===a)m=M;else if(m!==g)break}m?m.parentNode.insertBefore(r,m.nextSibling):(a=l.nodeType===9?l.head:l,a.insertBefore(r,a.firstChild))}function Qh(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function eg(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var wc=null;function kE(r,a,l){if(wc===null){var u=new Map,g=wc=new Map;g.set(l,u)}else g=wc,u=g.get(l),u||(u=new Map,g.set(l,u));if(u.has(r))return u;for(u.set(r,null),l=l.getElementsByTagName(r),g=0;g<l.length;g++){var m=l[g];if(!(m[Rl]||m[Tt]||r==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var D=m.getAttribute(a)||"";D=r+D;var M=u.get(D);M?M.push(m):u.set(D,[m])}}return u}function zE(r,a,l){r=r.ownerDocument||r,r.head.insertBefore(l,a==="title"?r.querySelector("head > title"):null)}function MM(r,a,l){if(l===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return r=a.disabled,typeof a.precedence=="string"&&r==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function jE(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function LM(r,a,l,u){if(l.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var g=Ti(u.href),m=a.querySelector(ps(g));if(m){a=m._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=xc.bind(r),a.then(r,r)),l.state.loading|=4,l.instance=m,xt(m);return}m=a.ownerDocument||a,u=LE(u),(g=Fr.get(g))&&Qh(u,g),m=m.createElement("link"),xt(m);var D=m;D._p=new Promise(function(M,H){D.onload=M,D.onerror=H}),Mt(m,"link",u),l.instance=m}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(l,a),(a=l.state.preload)&&(l.state.loading&3)===0&&(r.count++,l=xc.bind(r),a.addEventListener("load",l),a.addEventListener("error",l))}}var tg=0;function NM(r,a){return r.stylesheets&&r.count===0&&_c(r,r.stylesheets),0<r.count||0<r.imgCount?function(l){var u=setTimeout(function(){if(r.stylesheets&&_c(r,r.stylesheets),r.unsuspend){var m=r.unsuspend;r.unsuspend=null,m()}},6e4+a);0<r.imgBytes&&tg===0&&(tg=62500*gM());var g=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&_c(r,r.stylesheets),r.unsuspend)){var m=r.unsuspend;r.unsuspend=null,m()}},(r.imgBytes>tg?50:800)+a);return r.unsuspend=l,function(){r.unsuspend=null,clearTimeout(u),clearTimeout(g)}}:null}function xc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_c(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Dc=null;function _c(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Dc=new Map,a.forEach(kM,r),Dc=null,xc.call(r))}function kM(r,a){if(!(a.state.loading&4)){var l=Dc.get(r);if(l)var u=l.get(null);else{l=new Map,Dc.set(r,l);for(var g=r.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<g.length;m++){var D=g[m];(D.nodeName==="LINK"||D.getAttribute("media")!=="not all")&&(l.set(D.dataset.precedence,D),u=D)}u&&l.set(null,u)}g=a.instance,D=g.getAttribute("data-precedence"),m=l.get(D)||u,m===u&&l.set(null,g),l.set(D,g),this.count++,u=xc.bind(this),g.addEventListener("load",u),g.addEventListener("error",u),m?m.parentNode.insertBefore(g,m.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(g,r.firstChild)),a.state.loading|=4}}var gs={$$typeof:T,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function zM(r,a,l,u,g,m,D,M,H){this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Xd(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Xd(0),this.hiddenUpdates=Xd(null),this.identifierPrefix=u,this.onUncaughtError=g,this.onCaughtError=m,this.onRecoverableError=D,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=H,this.incompleteTransitions=new Map}function $E(r,a,l,u,g,m,D,M,H,J,re,ie){return r=new zM(r,a,l,D,H,J,re,ie,M),a=1,m===!0&&(a|=24),m=dr(3,null,null,a),r.current=m,m.stateNode=r,a=Lp(),a.refCount++,r.pooledCache=a,a.refCount++,m.memoizedState={element:u,isDehydrated:l,cache:a},jp(m),r}function PE(r){return r?(r=li,r):li}function IE(r,a,l,u,g,m){g=PE(g),u.context===null?u.context=g:u.pendingContext=g,u=ha(a),u.payload={element:l},m=m===void 0?null:m,m!==null&&(u.callback=m),l=ga(r,u,a),l!==null&&(Zt(l,r,a),Yl(l,r,a))}function HE(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<a?l:a}}function rg(r,a){HE(r,a),(r=r.alternate)&&HE(r,a)}function UE(r){if(r.tag===13||r.tag===31){var a=no(r,67108864);a!==null&&Zt(a,r,67108864),rg(r,67108864)}}function qE(r){if(r.tag===13||r.tag===31){var a=yr();a=Zd(a);var l=no(r,a);l!==null&&Zt(l,r,a),rg(r,a)}}var Oc=!0;function jM(r,a,l,u){var g=k.T;k.T=null;var m=Y.p;try{Y.p=2,ng(r,a,l,u)}finally{Y.p=m,k.T=g}}function $M(r,a,l,u){var g=k.T;k.T=null;var m=Y.p;try{Y.p=8,ng(r,a,l,u)}finally{Y.p=m,k.T=g}}function ng(r,a,l,u){if(Oc){var g=ag(u);if(g===null)Uh(r,a,u,Tc,l),VE(r,u);else if(IM(g,r,a,l,u))u.stopPropagation();else if(VE(r,u),a&4&&-1<PM.indexOf(r)){for(;g!==null;){var m=Xo(g);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var D=Ja(m.pendingLanes);if(D!==0){var M=m;for(M.pendingLanes|=2,M.entangledLanes|=2;D;){var H=1<<31-cr(D);M.entanglements[1]|=H,D&=~H}cn(m),(je&6)===0&&(fc=st()+500,us(0))}}break;case 31:case 13:M=no(m,2),M!==null&&Zt(M,m,2),pc(),rg(m,2)}if(m=ag(u),m===null&&Uh(r,a,u,Tc,l),m===g)break;g=m}g!==null&&u.stopPropagation()}else Uh(r,a,u,null,l)}}function ag(r){return r=ip(r),og(r)}var Tc=null;function og(r){if(Tc=null,r=Ko(r),r!==null){var a=s(r);if(a===null)r=null;else{var l=a.tag;if(l===13){if(r=c(a),r!==null)return r;r=null}else if(l===31){if(r=f(a),r!==null)return r;r=null}else if(l===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return Tc=r,null}function GE(r){switch(r){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(bn()){case on:return 2;case Dl:return 8;case Za:case DB:return 32;case tb:return 268435456;default:return 32}default:return 32}}var ig=!1,Da=null,_a=null,Oa=null,ms=new Map,ys=new Map,Ta=[],PM="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function VE(r,a){switch(r){case"focusin":case"focusout":Da=null;break;case"dragenter":case"dragleave":_a=null;break;case"mouseover":case"mouseout":Oa=null;break;case"pointerover":case"pointerout":ms.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":ys.delete(a.pointerId)}}function vs(r,a,l,u,g,m){return r===null||r.nativeEvent!==m?(r={blockedOn:a,domEventName:l,eventSystemFlags:u,nativeEvent:m,targetContainers:[g]},a!==null&&(a=Xo(a),a!==null&&UE(a)),r):(r.eventSystemFlags|=u,a=r.targetContainers,g!==null&&a.indexOf(g)===-1&&a.push(g),r)}function IM(r,a,l,u,g){switch(a){case"focusin":return Da=vs(Da,r,a,l,u,g),!0;case"dragenter":return _a=vs(_a,r,a,l,u,g),!0;case"mouseover":return Oa=vs(Oa,r,a,l,u,g),!0;case"pointerover":var m=g.pointerId;return ms.set(m,vs(ms.get(m)||null,r,a,l,u,g)),!0;case"gotpointercapture":return m=g.pointerId,ys.set(m,vs(ys.get(m)||null,r,a,l,u,g)),!0}return!1}function YE(r){var a=Ko(r.target);if(a!==null){var l=s(a);if(l!==null){if(a=l.tag,a===13){if(a=c(l),a!==null){r.blockedOn=a,lb(r.priority,function(){qE(l)});return}}else if(a===31){if(a=f(l),a!==null){r.blockedOn=a,lb(r.priority,function(){qE(l)});return}}else if(a===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Rc(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var l=ag(r.nativeEvent);if(l===null){l=r.nativeEvent;var u=new l.constructor(l.type,l);op=u,l.target.dispatchEvent(u),op=null}else return a=Xo(l),a!==null&&UE(a),r.blockedOn=l,!1;a.shift()}return!0}function WE(r,a,l){Rc(r)&&l.delete(a)}function HM(){ig=!1,Da!==null&&Rc(Da)&&(Da=null),_a!==null&&Rc(_a)&&(_a=null),Oa!==null&&Rc(Oa)&&(Oa=null),ms.forEach(WE),ys.forEach(WE)}function Fc(r,a){r.blockedOn===a&&(r.blockedOn=null,ig||(ig=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,HM)))}var Bc=null;function KE(r){Bc!==r&&(Bc=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Bc===r&&(Bc=null);for(var a=0;a<r.length;a+=3){var l=r[a],u=r[a+1],g=r[a+2];if(typeof u!="function"){if(og(u||l)===null)continue;break}var m=Xo(l);m!==null&&(r.splice(a,3),a-=3,ah(m,{pending:!0,data:g,method:l.method,action:u},u,g))}}))}function Fi(r){function a(H){return Fc(H,r)}Da!==null&&Fc(Da,r),_a!==null&&Fc(_a,r),Oa!==null&&Fc(Oa,r),ms.forEach(a),ys.forEach(a);for(var l=0;l<Ta.length;l++){var u=Ta[l];u.blockedOn===r&&(u.blockedOn=null)}for(;0<Ta.length&&(l=Ta[0],l.blockedOn===null);)YE(l),l.blockedOn===null&&Ta.shift();if(l=(r.ownerDocument||r).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var g=l[u],m=l[u+1],D=g[Gt]||null;if(typeof m=="function")D||KE(l);else if(D){var M=null;if(m&&m.hasAttribute("formAction")){if(g=m,D=m[Gt]||null)M=D.formAction;else if(og(g)!==null)continue}else M=D.action;typeof M=="function"?l[u+1]=M:(l.splice(u,3),u-=3),KE(l)}}}function XE(){function r(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(D){return g=D})},focusReset:"manual",scroll:"manual"})}function a(){g!==null&&(g(),g=null),u||setTimeout(l,20)}function l(){if(!u&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,g=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(l,100),function(){u=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),g!==null&&(g(),g=null)}}}function lg(r){this._internalRoot=r}Mc.prototype.render=lg.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(o(409));var l=a.current,u=yr();IE(l,u,r,a,null,null)},Mc.prototype.unmount=lg.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;IE(r.current,2,null,r,null,null),pc(),a[Wo]=null}};function Mc(r){this._internalRoot=r}Mc.prototype.unstable_scheduleHydration=function(r){if(r){var a=ib();r={blockedOn:null,target:r,priority:a};for(var l=0;l<Ta.length&&a!==0&&a<Ta[l].priority;l++);Ta.splice(l,0,r),l===0&&YE(r)}};var ZE=t.version;if(ZE!=="19.2.0")throw Error(o(527,ZE,"19.2.0"));Y.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(o(188)):(r=Object.keys(r).join(","),Error(o(268,r)));return r=h(a),r=r!==null?y(r):null,r=r===null?null:r.stateNode,r};var UM={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Lc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lc.isDisabled&&Lc.supportsFiber)try{_l=Lc.inject(UM),ur=Lc}catch{}}return Es.createRoot=function(r,a){if(!i(r))throw Error(o(299));var l=!1,u="",g=a2,m=o2,D=i2;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(g=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(D=a.onRecoverableError)),a=$E(r,1,!1,null,null,l,u,null,g,m,D,XE),r[Wo]=a.current,Hh(r),new lg(a)},Es.hydrateRoot=function(r,a,l){if(!i(r))throw Error(o(299));var u=!1,g="",m=a2,D=o2,M=i2,H=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(g=l.identifierPrefix),l.onUncaughtError!==void 0&&(m=l.onUncaughtError),l.onCaughtError!==void 0&&(D=l.onCaughtError),l.onRecoverableError!==void 0&&(M=l.onRecoverableError),l.formState!==void 0&&(H=l.formState)),a=$E(r,1,!0,a,l??null,u,g,H,m,D,M,XE),a.context=PE(null),l=a.current,u=yr(),u=Zd(u),g=ha(u),g.callback=null,ga(l,g,u),l=u,a.current.lanes=l,Tl(a,l),cn(a),r[Wo]=a.current,Hh(r),new Mc(a)},Es.version="19.2.0",Es}var _A;function Mk(){if(_A)return Dg.exports;_A=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Dg.exports=Bk(),Dg.exports}var Lk=Mk(),Ff=new Map;function Q_(){return globalThis.IS_REACT_ACT_ENVIRONMENT}uu(Q_,"getIsReactActEnvironment");var Nk=uu(({callback:e,children:t})=>{const n=C.useRef();return C.useLayoutEffect(()=>{n.current!==e&&(n.current=e,e())},[e]),t},"WithCallback");typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let e=null,t=null;return{promise:new Promise((o,i)=>{e=o,t=i}),resolve:e,reject:t}});var kk=uu(async(e,t,n)=>{const o=await jk(t,n);if(Q_()){o.render(e);return}const{promise:i,resolve:s}=Promise.withResolvers();return o.render(C.createElement(Nk,{callback:s},e)),i},"renderElement"),zk=uu((e,t)=>{const n=Ff.get(e);n&&(n.unmount(),Ff.delete(e))},"unmountElement"),jk=uu(async(e,t)=>{let n=Ff.get(e);return n||(n=Lk.createRoot(e,t),Ff.set(e,n)),n},"getReactRoot"),en=_(e=>`control-${e.replace(/\s+/g,"-")}`,"getControlId"),gd=_(e=>`set-${e.replace(/\s+/g,"-")}`,"getControlSetterButtonId");function Xe(){return Xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Xe.apply(null,arguments)}d(Xe,"_extends");function eO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}d(eO,"_assertThisInitialized");function ol(e,t){return ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},ol(e,t)}d(ol,"_setPrototypeOf");function tO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ol(e,t)}d(tO,"_inheritsLoose");function Bf(e){return Bf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Bf(e)}d(Bf,"_getPrototypeOf");function rO(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}d(rO,"_isNativeFunction");function Oy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Oy=d(function(){return!!e},"_isNativeReflectConstruct"))()}d(Oy,"_isNativeReflectConstruct");function nO(e,t,n){if(Oy())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var i=new(e.bind.apply(e,o));return n&&ol(i,n.prototype),i}d(nO,"_construct");function Mf(e){var t=typeof Map=="function"?new Map:void 0;return Mf=d(function(o){if(o===null||!rO(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(o))return t.get(o);t.set(o,i)}function i(){return nO(o,arguments,Bf(this).constructor)}return d(i,"Wrapper"),i.prototype=Object.create(o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),ol(i,o)},"_wrapNativeSuper"),Mf(e)}d(Mf,"_wrapNativeSuper");function $k(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0],i=[],s;for(s=1;s<t.length;s+=1)i.push(t[s]);return i.forEach(function(c){o=o.replace(/%[a-z]/,c)}),o}d($k,"format");var Jt=(function(e){tO(t,e);function t(n){var o;return o=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+n+" for more information.")||this,eO(o)}return d(t,"PolishedError"),t})(Mf(Error));function Pm(e,t){return e.substr(-t.length)===t}d(Pm,"endsWith");var Pk=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function Im(e){if(typeof e!="string")return e;var t=e.match(Pk);return t?parseFloat(e):e}d(Im,"stripUnit");var Ik=d(function(t){return function(n,o){o===void 0&&(o="16px");var i=n,s=o;if(typeof n=="string"){if(!Pm(n,"px"))throw new Jt(69,t,n);i=Im(n)}if(typeof o=="string"){if(!Pm(o,"px"))throw new Jt(70,t,o);s=Im(o)}if(typeof i=="string")throw new Jt(71,n,t);if(typeof s=="string")throw new Jt(72,o,t);return""+i/s+t}},"pxtoFactory"),aO=Ik;aO("em");aO("rem");function of(e){return Math.round(e*255)}d(of,"colorToInt");function oO(e,t,n){return of(e)+","+of(t)+","+of(n)}d(oO,"convertToInt");function il(e,t,n,o){if(o===void 0&&(o=oO),t===0)return o(n,n,n);var i=(e%360+360)%360/60,s=(1-Math.abs(2*n-1))*t,c=s*(1-Math.abs(i%2-1)),f=0,p=0,h=0;i>=0&&i<1?(f=s,p=c):i>=1&&i<2?(f=c,p=s):i>=2&&i<3?(p=s,h=c):i>=3&&i<4?(p=c,h=s):i>=4&&i<5?(f=c,h=s):i>=5&&i<6&&(f=s,h=c);var y=n-s/2,v=f+y,b=p+y,S=h+y;return o(v,b,S)}d(il,"hslToRgb");var OA={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function iO(e){if(typeof e!="string")return e;var t=e.toLowerCase();return OA[t]?"#"+OA[t]:e}d(iO,"nameToHex");var Hk=/^#[a-fA-F0-9]{6}$/,Uk=/^#[a-fA-F0-9]{8}$/,qk=/^#[a-fA-F0-9]{3}$/,Gk=/^#[a-fA-F0-9]{4}$/,Rg=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Vk=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Yk=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Wk=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Lo(e){if(typeof e!="string")throw new Jt(3);var t=iO(e);if(t.match(Hk))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(Uk)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(qk))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Gk)){var o=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:o}}var i=Rg.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)};var s=Vk.exec(t.substring(0,50));if(s)return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10),alpha:parseFloat(""+s[4])>1?parseFloat(""+s[4])/100:parseFloat(""+s[4])};var c=Yk.exec(t);if(c){var f=parseInt(""+c[1],10),p=parseInt(""+c[2],10)/100,h=parseInt(""+c[3],10)/100,y="rgb("+il(f,p,h)+")",v=Rg.exec(y);if(!v)throw new Jt(4,t,y);return{red:parseInt(""+v[1],10),green:parseInt(""+v[2],10),blue:parseInt(""+v[3],10)}}var b=Wk.exec(t.substring(0,50));if(b){var S=parseInt(""+b[1],10),w=parseInt(""+b[2],10)/100,x=parseInt(""+b[3],10)/100,O="rgb("+il(S,w,x)+")",A=Rg.exec(O);if(!A)throw new Jt(4,t,O);return{red:parseInt(""+A[1],10),green:parseInt(""+A[2],10),blue:parseInt(""+A[3],10),alpha:parseFloat(""+b[4])>1?parseFloat(""+b[4])/100:parseFloat(""+b[4])}}throw new Jt(5)}d(Lo,"parseToRgb");function lO(e){var t=e.red/255,n=e.green/255,o=e.blue/255,i=Math.max(t,n,o),s=Math.min(t,n,o),c=(i+s)/2;if(i===s)return e.alpha!==void 0?{hue:0,saturation:0,lightness:c,alpha:e.alpha}:{hue:0,saturation:0,lightness:c};var f,p=i-s,h=c>.5?p/(2-i-s):p/(i+s);switch(i){case t:f=(n-o)/p+(n<o?6:0);break;case n:f=(o-t)/p+2;break;default:f=(t-n)/p+4;break}return f*=60,e.alpha!==void 0?{hue:f,saturation:h,lightness:c,alpha:e.alpha}:{hue:f,saturation:h,lightness:c}}d(lO,"rgbToHsl");function Qn(e){return lO(Lo(e))}d(Qn,"parseToHsl");var Kk=d(function(t){return t.length===7&&t[1]===t[2]&&t[3]===t[4]&&t[5]===t[6]?"#"+t[1]+t[3]+t[5]:t},"reduceHexValue"),Hm=Kk;function La(e){var t=e.toString(16);return t.length===1?"0"+t:t}d(La,"numberToHex");function lf(e){return La(Math.round(e*255))}d(lf,"colorToHex");function sO(e,t,n){return Hm("#"+lf(e)+lf(t)+lf(n))}d(sO,"convertToHex");function Js(e,t,n){return il(e,t,n,sO)}d(Js,"hslToHex");function uO(e,t,n){if(typeof e=="number"&&typeof t=="number"&&typeof n=="number")return Js(e,t,n);if(typeof e=="object"&&t===void 0&&n===void 0)return Js(e.hue,e.saturation,e.lightness);throw new Jt(1)}d(uO,"hsl");function cO(e,t,n,o){if(typeof e=="number"&&typeof t=="number"&&typeof n=="number"&&typeof o=="number")return o>=1?Js(e,t,n):"rgba("+il(e,t,n)+","+o+")";if(typeof e=="object"&&t===void 0&&n===void 0&&o===void 0)return e.alpha>=1?Js(e.hue,e.saturation,e.lightness):"rgba("+il(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Jt(2)}d(cO,"hsla");function Lf(e,t,n){if(typeof e=="number"&&typeof t=="number"&&typeof n=="number")return Hm("#"+La(e)+La(t)+La(n));if(typeof e=="object"&&t===void 0&&n===void 0)return Hm("#"+La(e.red)+La(e.green)+La(e.blue));throw new Jt(6)}d(Lf,"rgb");function Zn(e,t,n,o){if(typeof e=="string"&&typeof t=="number"){var i=Lo(e);return"rgba("+i.red+","+i.green+","+i.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof n=="number"&&typeof o=="number")return o>=1?Lf(e,t,n):"rgba("+e+","+t+","+n+","+o+")";if(typeof e=="object"&&t===void 0&&n===void 0&&o===void 0)return e.alpha>=1?Lf(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Jt(7)}d(Zn,"rgba");var Xk=d(function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},"isRgb"),Zk=d(function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&typeof t.alpha=="number"},"isRgba"),Jk=d(function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},"isHsl"),Qk=d(function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&typeof t.alpha=="number"},"isHsla");function ea(e){if(typeof e!="object")throw new Jt(8);if(Zk(e))return Zn(e);if(Xk(e))return Lf(e);if(Qk(e))return cO(e);if(Jk(e))return uO(e);throw new Jt(8)}d(ea,"toColorString");function Ty(e,t,n){return d(function(){var i=n.concat(Array.prototype.slice.call(arguments));return i.length>=t?e.apply(this,i):Ty(e,t,i)},"fn")}d(Ty,"curried");function ir(e){return Ty(e,e.length,[])}d(ir,"curry");function fO(e,t){if(t==="transparent")return t;var n=Qn(t);return ea(Xe({},n,{hue:n.hue+parseFloat(e)}))}d(fO,"adjustHue");ir(fO);function Io(e,t,n){return Math.max(e,Math.min(t,n))}d(Io,"guard");function dO(e,t){if(t==="transparent")return t;var n=Qn(t);return ea(Xe({},n,{lightness:Io(0,1,n.lightness-parseFloat(e))}))}d(dO,"darken");var ez=ir(dO),xo=ez;function pO(e,t){if(t==="transparent")return t;var n=Qn(t);return ea(Xe({},n,{saturation:Io(0,1,n.saturation-parseFloat(e))}))}d(pO,"desaturate");ir(pO);function hO(e,t){if(t==="transparent")return t;var n=Qn(t);return ea(Xe({},n,{lightness:Io(0,1,n.lightness+parseFloat(e))}))}d(hO,"lighten");var tz=ir(hO),Um=tz;function gO(e,t,n){if(t==="transparent")return n;if(n==="transparent")return t;if(e===0)return n;var o=Lo(t),i=Xe({},o,{alpha:typeof o.alpha=="number"?o.alpha:1}),s=Lo(n),c=Xe({},s,{alpha:typeof s.alpha=="number"?s.alpha:1}),f=i.alpha-c.alpha,p=parseFloat(e)*2-1,h=p*f===-1?p:p+f,y=1+p*f,v=(h/y+1)/2,b=1-v,S={red:Math.floor(i.red*v+c.red*b),green:Math.floor(i.green*v+c.green*b),blue:Math.floor(i.blue*v+c.blue*b),alpha:i.alpha*parseFloat(e)+c.alpha*(1-parseFloat(e))};return Zn(S)}d(gO,"mix");var rz=ir(gO),mO=rz;function yO(e,t){if(t==="transparent")return t;var n=Lo(t),o=typeof n.alpha=="number"?n.alpha:1,i=Xe({},n,{alpha:Io(0,1,(o*100+parseFloat(e)*100)/100)});return Zn(i)}d(yO,"opacify");var nz=ir(yO),az=nz;function vO(e,t){if(t==="transparent")return t;var n=Qn(t);return ea(Xe({},n,{saturation:Io(0,1,n.saturation+parseFloat(e))}))}d(vO,"saturate");ir(vO);function bO(e,t){return t==="transparent"?t:ea(Xe({},Qn(t),{hue:parseFloat(e)}))}d(bO,"setHue");ir(bO);function EO(e,t){return t==="transparent"?t:ea(Xe({},Qn(t),{lightness:parseFloat(e)}))}d(EO,"setLightness");ir(EO);function SO(e,t){return t==="transparent"?t:ea(Xe({},Qn(t),{saturation:parseFloat(e)}))}d(SO,"setSaturation");ir(SO);function AO(e,t){return t==="transparent"?t:mO(parseFloat(e),"rgb(0, 0, 0)",t)}d(AO,"shade");ir(AO);function CO(e,t){return t==="transparent"?t:mO(parseFloat(e),"rgb(255, 255, 255)",t)}d(CO,"tint");ir(CO);function wO(e,t){if(t==="transparent")return t;var n=Lo(t),o=typeof n.alpha=="number"?n.alpha:1,i=Xe({},n,{alpha:Io(0,1,+(o*100-parseFloat(e)*100).toFixed(2)/100)});return Zn(i)}d(wO,"transparentize");var oz=ir(wO),br=oz,me={secondary:"#029CFD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F7FAFC",light:"#EEF3F6",mediumlight:"#ECF4F9",medium:"#D9E8F2",mediumdark:"#73828C",dark:"#5C6870",darker:"#454E54",darkest:"#2E3438",border:"hsla(203, 50%, 30%, 0.15)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",positiveText:"#448028",negativeText:"#D43900",warningText:"#A15C20"},Na={app:"#F6F9FC",gridCellSize:10,hoverable:br(.9,me.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},mn={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},iz={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:"#222425",appContentBg:"#1B1C1D",appPreviewBg:me.lightest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:mn.fonts.base,fontCode:mn.fonts.mono,textColor:"#C9CDCF",textInverseColor:"#222425",textMutedColor:"#798186",barTextColor:me.mediumdark,barHoverColor:me.secondary,barSelectedColor:me.secondary,barBg:"#292C2E",buttonBg:"#222425",buttonBorder:"rgba(255,255,255,.1)",booleanBg:"#222425",booleanSelectedBg:"#2E3438",inputBg:"#1B1C1D",inputBorder:"rgba(255,255,255,.1)",inputTextColor:me.lightest,inputBorderRadius:4},lz=iz,sz={base:"light",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:Na.app,appContentBg:me.lightest,appPreviewBg:me.lightest,appBorderColor:me.border,appBorderRadius:4,fontBase:mn.fonts.base,fontCode:mn.fonts.mono,textColor:me.darkest,textInverseColor:me.lightest,textMutedColor:me.dark,barTextColor:me.mediumdark,barHoverColor:me.secondary,barSelectedColor:me.secondary,barBg:me.lightest,buttonBg:Na.app,buttonBorder:me.medium,booleanBg:me.mediumlight,booleanSelectedBg:me.lightest,inputBg:me.lightest,inputBorder:me.border,inputTextColor:me.darkest,inputBorderRadius:4},Nf=sz;const{logger:uz}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:cz}=__STORYBOOK_MODULE_GLOBAL__;var{window:Fg}=cz,fz=d(e=>({color:e}),"mkColor"),dz=d(e=>typeof e!="string"?(uz.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,"isColorString"),pz=d(e=>!/(gradient|var|calc)/.test(e),"isValidColorForPolished"),hz=d((e,t)=>e==="darken"?Zn(`${xo(1,t)}`,.95):e==="lighten"?Zn(`${Um(1,t)}`,.95):t,"applyPolished"),xO=d(e=>t=>{if(!dz(t)||!pz(t))return t;try{return hz(e,t)}catch{return t}},"colorFactory"),Vi=xO("lighten");xO("darken");var DO=d(()=>!Fg||!Fg.matchMedia?"light":Fg.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light","getPreferredColorScheme"),qm={light:Nf,dark:lz,normal:Nf};DO();var gz=ot({"../node_modules/react-is/cjs/react-is.production.min.js"(e){var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,o=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,s=t?Symbol.for("react.strict_mode"):60108,c=t?Symbol.for("react.profiler"):60114,f=t?Symbol.for("react.provider"):60109,p=t?Symbol.for("react.context"):60110,h=t?Symbol.for("react.async_mode"):60111,y=t?Symbol.for("react.concurrent_mode"):60111,v=t?Symbol.for("react.forward_ref"):60112,b=t?Symbol.for("react.suspense"):60113,S=t?Symbol.for("react.suspense_list"):60120,w=t?Symbol.for("react.memo"):60115,x=t?Symbol.for("react.lazy"):60116,O=t?Symbol.for("react.block"):60121,A=t?Symbol.for("react.fundamental"):60117,R=t?Symbol.for("react.responder"):60118,T=t?Symbol.for("react.scope"):60119;function F(L){if(typeof L=="object"&&L!==null){var B=L.$$typeof;switch(B){case n:switch(L=L.type,L){case h:case y:case i:case c:case s:case b:return L;default:switch(L=L&&L.$$typeof,L){case p:case v:case x:case w:case f:return L;default:return B}}case o:return B}}}d(F,"z");function N(L){return F(L)===y}d(N,"A"),e.AsyncMode=h,e.ConcurrentMode=y,e.ContextConsumer=p,e.ContextProvider=f,e.Element=n,e.ForwardRef=v,e.Fragment=i,e.Lazy=x,e.Memo=w,e.Portal=o,e.Profiler=c,e.StrictMode=s,e.Suspense=b,e.isAsyncMode=function(L){return N(L)||F(L)===h},e.isConcurrentMode=N,e.isContextConsumer=function(L){return F(L)===p},e.isContextProvider=function(L){return F(L)===f},e.isElement=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===n},e.isForwardRef=function(L){return F(L)===v},e.isFragment=function(L){return F(L)===i},e.isLazy=function(L){return F(L)===x},e.isMemo=function(L){return F(L)===w},e.isPortal=function(L){return F(L)===o},e.isProfiler=function(L){return F(L)===c},e.isStrictMode=function(L){return F(L)===s},e.isSuspense=function(L){return F(L)===b},e.isValidElementType=function(L){return typeof L=="string"||typeof L=="function"||L===i||L===y||L===c||L===s||L===b||L===S||typeof L=="object"&&L!==null&&(L.$$typeof===x||L.$$typeof===w||L.$$typeof===f||L.$$typeof===p||L.$$typeof===v||L.$$typeof===A||L.$$typeof===R||L.$$typeof===T||L.$$typeof===O)},e.typeOf=F}}),mz=ot({"../node_modules/react-is/index.js"(e,t){t.exports=gz()}}),_O=ot({"../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){var n=mz(),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={};f[n.ForwardRef]=s,f[n.Memo]=c;function p(O){return n.isMemo(O)?c:f[O.$$typeof]||o}d(p,"getStatics");var h=Object.defineProperty,y=Object.getOwnPropertyNames,v=Object.getOwnPropertySymbols,b=Object.getOwnPropertyDescriptor,S=Object.getPrototypeOf,w=Object.prototype;function x(O,A,R){if(typeof A!="string"){if(w){var T=S(A);T&&T!==w&&x(O,T,R)}var F=y(A);v&&(F=F.concat(v(A)));for(var N=p(O),L=p(A),B=0;B<F.length;++B){var $=F[B];if(!i[$]&&!(R&&R[$])&&!(L&&L[$])&&!(N&&N[$])){var P=b(A,$);try{h(O,$,P)}catch{}}}}return O}d(x,"hoistNonReactStatics"),t.exports=x}});function OO(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}d(OO,"sheetForTag");function TO(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}d(TO,"createStyleElement");var yz=(function(){function e(n){var o=this;this._insertTag=function(i){var s;o.tags.length===0?o.insertionPoint?s=o.insertionPoint.nextSibling:o.prepend?s=o.container.firstChild:s=o.before:s=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(i,s),o.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}d(e,"StyleSheet");var t=e.prototype;return t.hydrate=d(function(o){o.forEach(this._insertTag)},"hydrate"),t.insert=d(function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(TO(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=OO(i);try{s.insertRule(o,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(o));this.ctr++},"insert"),t.flush=d(function(){this.tags.forEach(function(o){var i;return(i=o.parentNode)==null?void 0:i.removeChild(o)}),this.tags=[],this.ctr=0},"flush"),e})(),$t="-ms-",kf="-moz-",$e="-webkit-",RO="comm",Ry="rule",Fy="decl",vz="@import",FO="@keyframes",bz="@layer",Ez=Math.abs,md=String.fromCharCode,Sz=Object.assign;function BO(e,t){return _t(e,0)^45?(((t<<2^_t(e,0))<<2^_t(e,1))<<2^_t(e,2))<<2^_t(e,3):0}d(BO,"hash");function By(e){return e.trim()}d(By,"trim");function MO(e,t){return(e=t.exec(e))?e[0]:e}d(MO,"match");function ze(e,t,n){return e.replace(t,n)}d(ze,"replace");function zf(e,t){return e.indexOf(t)}d(zf,"indexof");function _t(e,t){return e.charCodeAt(t)|0}d(_t,"charat");function ll(e,t,n){return e.slice(t,n)}d(ll,"substr");function Vr(e){return e.length}d(Vr,"strlen");function yd(e){return e.length}d(yd,"sizeof");function Rs(e,t){return t.push(e),e}d(Rs,"append");function LO(e,t){return e.map(t).join("")}d(LO,"combine");var vd=1,sl=1,NO=0,nr=0,vt=0,El="";function cu(e,t,n,o,i,s,c){return{value:e,root:t,parent:n,type:o,props:i,children:s,line:vd,column:sl,length:c,return:""}}d(cu,"node");function Ii(e,t){return Sz(cu("",null,null,"",null,null,0),e,{length:-e.length},t)}d(Ii,"copy");function kO(){return vt}d(kO,"char");function zO(){return vt=nr>0?_t(El,--nr):0,sl--,vt===10&&(sl=1,vd--),vt}d(zO,"prev");function er(){return vt=nr<NO?_t(El,nr++):0,sl++,vt===10&&(sl=1,vd++),vt}d(er,"next");function Xr(){return _t(El,nr)}d(Xr,"peek");function Ps(){return nr}d(Ps,"caret");function Sl(e,t){return ll(El,e,t)}d(Sl,"slice");function ul(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}d(ul,"token");function My(e){return vd=sl=1,NO=Vr(El=e),nr=0,[]}d(My,"alloc");function Ly(e){return El="",e}d(Ly,"dealloc");function Is(e){return By(Sl(nr-1,jf(e===91?e+2:e===40?e+1:e)))}d(Is,"delimit");function jO(e){for(;(vt=Xr())&&vt<33;)er();return ul(e)>2||ul(vt)>3?"":" "}d(jO,"whitespace");function $O(e,t){for(;--t&&er()&&!(vt<48||vt>102||vt>57&&vt<65||vt>70&&vt<97););return Sl(e,Ps()+(t<6&&Xr()==32&&er()==32))}d($O,"escaping");function jf(e){for(;er();)switch(vt){case e:return nr;case 34:case 39:e!==34&&e!==39&&jf(vt);break;case 40:e===41&&jf(e);break;case 92:er();break}return nr}d(jf,"delimiter");function PO(e,t){for(;er()&&e+vt!==57;)if(e+vt===84&&Xr()===47)break;return"/*"+Sl(t,nr-1)+"*"+md(e===47?e:er())}d(PO,"commenter");function IO(e){for(;!ul(Xr());)er();return Sl(e,nr)}d(IO,"identifier");function HO(e){return Ly(Hs("",null,null,null,[""],e=My(e),0,[0],e))}d(HO,"compile");function Hs(e,t,n,o,i,s,c,f,p){for(var h=0,y=0,v=c,b=0,S=0,w=0,x=1,O=1,A=1,R=0,T="",F=i,N=s,L=o,B=T;O;)switch(w=R,R=er()){case 40:if(w!=108&&_t(B,v-1)==58){zf(B+=ze(Is(R),"&","&\f"),"&\f")!=-1&&(A=-1);break}case 34:case 39:case 91:B+=Is(R);break;case 9:case 10:case 13:case 32:B+=jO(w);break;case 92:B+=$O(Ps()-1,7);continue;case 47:switch(Xr()){case 42:case 47:Rs(UO(PO(er(),Ps()),t,n),p);break;default:B+="/"}break;case 123*x:f[h++]=Vr(B)*A;case 125*x:case 59:case 0:switch(R){case 0:case 125:O=0;case 59+y:A==-1&&(B=ze(B,/\f/g,"")),S>0&&Vr(B)-v&&Rs(S>32?Vm(B+";",o,n,v-1):Vm(ze(B," ","")+";",o,n,v-2),p);break;case 59:B+=";";default:if(Rs(L=Gm(B,t,n,h,y,i,f,T,F=[],N=[],v),s),R===123)if(y===0)Hs(B,t,L,L,F,s,v,f,N);else switch(b===99&&_t(B,3)===110?100:b){case 100:case 108:case 109:case 115:Hs(e,L,L,o&&Rs(Gm(e,L,L,0,0,i,f,T,i,F=[],v),N),i,N,v,f,o?F:N);break;default:Hs(B,L,L,L,[""],N,0,f,N)}}h=y=S=0,x=A=1,T=B="",v=c;break;case 58:v=1+Vr(B),S=w;default:if(x<1){if(R==123)--x;else if(R==125&&x++==0&&zO()==125)continue}switch(B+=md(R),R*x){case 38:A=y>0?1:(B+="\f",-1);break;case 44:f[h++]=(Vr(B)-1)*A,A=1;break;case 64:Xr()===45&&(B+=Is(er())),b=Xr(),y=v=Vr(T=B+=IO(Ps())),R++;break;case 45:w===45&&Vr(B)==2&&(x=0)}}return s}d(Hs,"parse");function Gm(e,t,n,o,i,s,c,f,p,h,y){for(var v=i-1,b=i===0?s:[""],S=yd(b),w=0,x=0,O=0;w<o;++w)for(var A=0,R=ll(e,v+1,v=Ez(x=c[w])),T=e;A<S;++A)(T=By(x>0?b[A]+" "+R:ze(R,/&\f/g,b[A])))&&(p[O++]=T);return cu(e,t,n,i===0?Ry:f,p,h,y)}d(Gm,"ruleset");function UO(e,t,n){return cu(e,t,n,RO,md(kO()),ll(e,2,-2),0)}d(UO,"comment");function Vm(e,t,n,o){return cu(e,t,n,Fy,ll(e,0,o),ll(e,o+1,-1),o)}d(Vm,"declaration");function To(e,t){for(var n="",o=yd(e),i=0;i<o;i++)n+=t(e[i],i,e,t)||"";return n}d(To,"serialize");function qO(e,t,n,o){switch(e.type){case bz:if(e.children.length)break;case vz:case Fy:return e.return=e.return||e.value;case RO:return"";case FO:return e.return=e.value+"{"+To(e.children,o)+"}";case Ry:e.value=e.props.join(",")}return Vr(n=To(e.children,o))?e.return=e.value+"{"+n+"}":""}d(qO,"stringify");function GO(e){var t=yd(e);return function(n,o,i,s){for(var c="",f=0;f<t;f++)c+=e[f](n,o,i,s)||"";return c}}d(GO,"middleware");function VO(e){return function(t){t.root||(t=t.return)&&e(t)}}d(VO,"rulesheet");var TA=d(function(t){var n=new WeakMap;return function(o){if(n.has(o))return n.get(o);var i=t(o);return n.set(o,i),i}},"weakMemoize");function Ny(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}d(Ny,"memoize");var Az=d(function(t,n,o){for(var i=0,s=0;i=s,s=Xr(),i===38&&s===12&&(n[o]=1),!ul(s);)er();return Sl(t,nr)},"identifierWithPointTracking"),Cz=d(function(t,n){var o=-1,i=44;do switch(ul(i)){case 0:i===38&&Xr()===12&&(n[o]=1),t[o]+=Az(nr-1,n,o);break;case 2:t[o]+=Is(i);break;case 4:if(i===44){t[++o]=Xr()===58?"&\f":"",n[o]=t[o].length;break}default:t[o]+=md(i)}while(i=er());return t},"toRules"),wz=d(function(t,n){return Ly(Cz(My(t),n))},"getRules"),RA=new WeakMap,xz=d(function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,o=t.parent,i=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!RA.get(o))&&!i){RA.set(t,!0);for(var s=[],c=wz(n,s),f=o.props,p=0,h=0;p<c.length;p++)for(var y=0;y<f.length;y++,h++)t.props[h]=s[p]?c[p].replace(/&\f/g,f[y]):f[y]+" "+c[p]}}},"compat"),Dz=d(function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},"removeLabel");function ky(e,t){switch(BO(e,t)){case 5103:return $e+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $e+e+kf+e+$t+e+e;case 6828:case 4268:return $e+e+$t+e+e;case 6165:return $e+e+$t+"flex-"+e+e;case 5187:return $e+e+ze(e,/(\w+).+(:[^]+)/,$e+"box-$1$2"+$t+"flex-$1$2")+e;case 5443:return $e+e+$t+"flex-item-"+ze(e,/flex-|-self/,"")+e;case 4675:return $e+e+$t+"flex-line-pack"+ze(e,/align-content|flex-|-self/,"")+e;case 5548:return $e+e+$t+ze(e,"shrink","negative")+e;case 5292:return $e+e+$t+ze(e,"basis","preferred-size")+e;case 6060:return $e+"box-"+ze(e,"-grow","")+$e+e+$t+ze(e,"grow","positive")+e;case 4554:return $e+ze(e,/([^-])(transform)/g,"$1"+$e+"$2")+e;case 6187:return ze(ze(ze(e,/(zoom-|grab)/,$e+"$1"),/(image-set)/,$e+"$1"),e,"")+e;case 5495:case 3959:return ze(e,/(image-set\([^]*)/,$e+"$1$`$1");case 4968:return ze(ze(e,/(.+:)(flex-)?(.*)/,$e+"box-pack:$3"+$t+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$e+e+e;case 4095:case 3583:case 4068:case 2532:return ze(e,/(.+)-inline(.+)/,$e+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Vr(e)-1-t>6)switch(_t(e,t+1)){case 109:if(_t(e,t+4)!==45)break;case 102:return ze(e,/(.+:)(.+)-([^]+)/,"$1"+$e+"$2-$3$1"+kf+(_t(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zf(e,"stretch")?ky(ze(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(_t(e,t+1)!==115)break;case 6444:switch(_t(e,Vr(e)-3-(~zf(e,"!important")&&10))){case 107:return ze(e,":",":"+$e)+e;case 101:return ze(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$e+(_t(e,14)===45?"inline-":"")+"box$3$1"+$e+"$2$3$1"+$t+"$2box$3")+e}break;case 5936:switch(_t(e,t+11)){case 114:return $e+e+$t+ze(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $e+e+$t+ze(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $e+e+$t+ze(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $e+e+$t+e+e}return e}d(ky,"prefix");var _z=d(function(t,n,o,i){if(t.length>-1&&!t.return)switch(t.type){case Fy:t.return=ky(t.value,t.length);break;case FO:return To([Ii(t,{value:ze(t.value,"@","@"+$e)})],i);case Ry:if(t.length)return LO(t.props,function(s){switch(MO(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return To([Ii(t,{props:[ze(s,/:(read-\w+)/,":"+kf+"$1")]})],i);case"::placeholder":return To([Ii(t,{props:[ze(s,/:(plac\w+)/,":"+$e+"input-$1")]}),Ii(t,{props:[ze(s,/:(plac\w+)/,":"+kf+"$1")]}),Ii(t,{props:[ze(s,/:(plac\w+)/,$t+"input-$1")]})],i)}return""})}},"prefixer"),Oz=[_z],Tz=d(function(t){var n=t.key;if(n==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(x){var O=x.getAttribute("data-emotion");O.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var i=t.stylisPlugins||Oz,s={},c,f=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(x){for(var O=x.getAttribute("data-emotion").split(" "),A=1;A<O.length;A++)s[O[A]]=!0;f.push(x)});var p,h=[xz,Dz];{var y,v=[qO,VO(function(x){y.insert(x)})],b=GO(h.concat(i,v)),S=d(function(O){return To(HO(O),b)},"stylis");p=d(function(O,A,R,T){y=R,S(O?O+"{"+A.styles+"}":A.styles),T&&(w.inserted[A.name]=!0)},"insert")}var w={key:n,sheet:new yz({key:n,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:p};return w.sheet.hydrate(f),w},"createCache"),Rz=or(_O()),Fz=d(function(e,t){return(0,Rz.default)(e,t)},"hoistNonReactStatics"),Bz=!0;function bd(e,t,n){var o="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(o+=i+" ")}),o}d(bd,"getRegisteredStyles");var Ed=d(function(t,n,o){var i=t.key+"-"+n.name;(o===!1||Bz===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},"registerStyles"),Sd=d(function(t,n,o){Ed(t,n,o);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}},"insertStyles");function YO(e){for(var t=0,n,o=0,i=e.length;i>=4;++o,i-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}d(YO,"murmur2");var Mz={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Lz=/[A-Z]|^ms/g,Nz=/_EMO_([^_]+?)_([^]*?)_EMO_/g,WO=d(function(t){return t.charCodeAt(1)===45},"isCustomProperty"),FA=d(function(t){return t!=null&&typeof t!="boolean"},"isProcessableValue"),Bg=Ny(function(e){return WO(e)?e:e.replace(Lz,"-$&").toLowerCase()}),BA=d(function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Nz,function(o,i,s){return hn={name:i,styles:s,next:hn},i})}return Mz[t]!==1&&!WO(t)&&typeof n=="number"&&n!==0?n+"px":n},"processStyleValue");function cl(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return hn={name:i.name,styles:i.styles,next:hn},i.name;var s=n;if(s.styles!==void 0){var c=s.next;if(c!==void 0)for(;c!==void 0;)hn={name:c.name,styles:c.styles,next:hn},c=c.next;var f=s.styles+";";return f}return KO(e,t,n)}case"function":{if(e!==void 0){var p=hn,h=n(e);return hn=p,cl(e,t,h)}break}}var y=n;if(t==null)return y;var v=t[y];return v!==void 0?v:y}d(cl,"handleInterpolation");function KO(e,t,n){var o="";if(Array.isArray(n))for(var i=0;i<n.length;i++)o+=cl(e,t,n[i])+";";else for(var s in n){var c=n[s];if(typeof c!="object"){var f=c;t!=null&&t[f]!==void 0?o+=s+"{"+t[f]+"}":FA(f)&&(o+=Bg(s)+":"+BA(s,f)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var p=0;p<c.length;p++)FA(c[p])&&(o+=Bg(s)+":"+BA(s,c[p])+";");else{var h=cl(e,t,c);switch(s){case"animation":case"animationName":{o+=Bg(s)+":"+h+";";break}default:o+=s+"{"+h+"}"}}}return o}d(KO,"createStringFromObject");var MA=/label:\s*([^\s;{]+)\s*(;|$)/g,hn;function Al(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,i="";hn=void 0;var s=e[0];if(s==null||s.raw===void 0)o=!1,i+=cl(n,t,s);else{var c=s;i+=c[0]}for(var f=1;f<e.length;f++)if(i+=cl(n,t,e[f]),o){var p=s;i+=p[f]}MA.lastIndex=0;for(var h="",y;(y=MA.exec(i))!==null;)h+="-"+y[1];var v=YO(i)+h;return{name:v,styles:i,next:hn}}d(Al,"serializeStyles");var kz=d(function(t){return t()},"syncFallback"),XO=C.useInsertionEffect?C.useInsertionEffect:!1,zy=XO||kz,LA=XO||C.useLayoutEffect,ZO=C.createContext(typeof HTMLElement<"u"?Tz({key:"css"}):null);ZO.Provider;var Ad=d(function(t){return C.forwardRef(function(n,o){var i=C.useContext(ZO);return t(n,i,o)})},"withEmotionCache"),Ga=C.createContext({}),JO=d(function(){return C.useContext(Ga)},"useTheme"),zz=d(function(t,n){if(typeof n=="function"){var o=n(t);return o}return Xe({},t,n)},"getTheme"),jz=TA(function(e){return TA(function(t){return zz(e,t)})}),QO=d(function(t){var n=C.useContext(Ga);return t.theme!==n&&(n=jz(n)(t.theme)),C.createElement(Ga.Provider,{value:n},t.children)},"ThemeProvider");function $z(e){var t=e.displayName||e.name||"Component",n=C.forwardRef(d(function(i,s){var c=C.useContext(Ga);return C.createElement(e,Xe({theme:c,ref:s},i))},"render"));return n.displayName="WithTheme("+t+")",Fz(n,e)}d($z,"withTheme");var jy={}.hasOwnProperty,Ym="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Pz=d(function(t,n){var o={};for(var i in n)jy.call(n,i)&&(o[i]=n[i]);return o[Ym]=t,o},"createEmotionProps"),Iz=d(function(t){var n=t.cache,o=t.serialized,i=t.isStringTag;return Ed(n,o,i),zy(function(){return Sd(n,o,i)}),null},"Insertion"),Hz=Ad(function(e,t,n){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var i=e[Ym],s=[o],c="";typeof e.className=="string"?c=bd(t.registered,s,e.className):e.className!=null&&(c=e.className+" ");var f=Al(s,void 0,C.useContext(Ga));c+=t.key+"-"+f.name;var p={};for(var h in e)jy.call(e,h)&&h!=="css"&&h!==Ym&&(p[h]=e[h]);return p.className=c,n&&(p.ref=n),C.createElement(C.Fragment,null,C.createElement(Iz,{cache:t,serialized:f,isStringTag:typeof i=="string"}),C.createElement(i,p))}),Uz=Hz;or(_O());var NA=d(function(t,n){var o=arguments;if(n==null||!jy.call(n,"css"))return C.createElement.apply(void 0,o);var i=o.length,s=new Array(i);s[0]=Uz,s[1]=Pz(t,n);for(var c=2;c<i;c++)s[c]=o[c];return C.createElement.apply(null,s)},"jsx");(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(NA||(NA={}));Ad(function(e,t){var n=e.styles,o=Al([n],void 0,C.useContext(Ga)),i=C.useRef();return LA(function(){var s=t.key+"-global",c=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),f=!1,p=document.querySelector('style[data-emotion="'+s+" "+o.name+'"]');return t.sheet.tags.length&&(c.before=t.sheet.tags[0]),p!==null&&(f=!0,p.setAttribute("data-emotion",s),c.hydrate([p])),i.current=[c,f],function(){c.flush()}},[t]),LA(function(){var s=i.current,c=s[0],f=s[1];if(f){s[1]=!1;return}if(o.next!==void 0&&Sd(t,o.next,!0),c.tags.length){var p=c.tags[c.tags.length-1].nextElementSibling;c.before=p,c.flush()}t.insert("",o,c,!1)},[t,o.name]),null});function Cd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Al(t)}d(Cd,"css");function tn(){var e=Cd.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:d(function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"},"toString")}}d(tn,"keyframes");var qz=d(function e(t){for(var n=t.length,o=0,i="";o<n;o++){var s=t[o];if(s!=null){var c=void 0;switch(typeof s){case"boolean":break;case"object":{if(Array.isArray(s))c=e(s);else{c="";for(var f in s)s[f]&&f&&(c&&(c+=" "),c+=f)}break}default:c=s}c&&(i&&(i+=" "),i+=c)}}return i},"classnames");function eT(e,t,n){var o=[],i=bd(e,o,n);return o.length<2?n:i+t(o)}d(eT,"merge");var Gz=d(function(t){var n=t.cache,o=t.serializedArr;return zy(function(){for(var i=0;i<o.length;i++)Sd(n,o[i],!1)}),null},"Insertion");Ad(function(e,t){var n=[],o=d(function(){for(var p=arguments.length,h=new Array(p),y=0;y<p;y++)h[y]=arguments[y];var v=Al(h,t.registered);return n.push(v),Ed(t,v,!1),t.key+"-"+v.name},"css"),i=d(function(){for(var p=arguments.length,h=new Array(p),y=0;y<p;y++)h[y]=arguments[y];return eT(t.registered,o,qz(h))},"cx"),s={css:o,cx:i,theme:C.useContext(Ga)},c=e.children(s);return C.createElement(C.Fragment,null,C.createElement(Gz,{cache:t,serializedArr:n}),c)});var Vz=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,$y=Ny(function(e){return Vz.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Yz=$y,Wz=d(function(t){return t!=="theme"},"testOmitPropsOnComponent"),kA=d(function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Yz:Wz},"getDefaultShouldForwardProp"),zA=d(function(t,n,o){var i;if(n){var s=n.shouldForwardProp;i=t.__emotion_forwardProp&&s?function(c){return t.__emotion_forwardProp(c)&&s(c)}:s}return typeof i!="function"&&o&&(i=t.__emotion_forwardProp),i},"composeShouldForwardProps"),Kz=d(function(t){var n=t.cache,o=t.serialized,i=t.isStringTag;return Ed(n,o,i),zy(function(){return Sd(n,o,i)}),null},"Insertion"),Xz=d(function e(t,n){var o=t.__emotion_real===t,i=o&&t.__emotion_base||t,s,c;n!==void 0&&(s=n.label,c=n.target);var f=zA(t,n,o),p=f||kA(i),h=!p("as");return function(){var y=arguments,v=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&v.push("label:"+s+";"),y[0]==null||y[0].raw===void 0)v.push.apply(v,y);else{var b=y[0];v.push(b[0]);for(var S=y.length,w=1;w<S;w++)v.push(y[w],b[w])}var x=Ad(function(O,A,R){var T=h&&O.as||i,F="",N=[],L=O;if(O.theme==null){L={};for(var B in O)L[B]=O[B];L.theme=C.useContext(Ga)}typeof O.className=="string"?F=bd(A.registered,N,O.className):O.className!=null&&(F=O.className+" ");var $=Al(v.concat(N),A.registered,L);F+=A.key+"-"+$.name,c!==void 0&&(F+=" "+c);var P=h&&f===void 0?kA(T):p,I={};for(var U in O)h&&U==="as"||P(U)&&(I[U]=O[U]);return I.className=F,R&&(I.ref=R),C.createElement(C.Fragment,null,C.createElement(Kz,{cache:A,serialized:$,isStringTag:typeof T=="string"}),C.createElement(T,I))});return x.displayName=s!==void 0?s:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=i,x.__emotion_styles=v,x.__emotion_forwardProp=f,Object.defineProperty(x,"toString",{value:d(function(){return"."+c},"value")}),x.withComponent=function(O,A){var R=e(O,Xe({},n,A,{shouldForwardProp:zA(x,A,!0)}));return R.apply(void 0,v)},x}},"createStyled"),Zz=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],G=Xz.bind(null);Zz.forEach(function(e){G[e]=G(e)});var tT=or(ou(),1),Jz=(0,tT.default)(1)(({typography:e})=>({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}));(0,tT.default)(1)(({color:e,background:t,typography:n})=>{const o=Jz({typography:n});return{...o,body:{...o.body,color:e.defaultText,background:t.app,overflow:"hidden"},hr:{...o.hr,borderTop:`1px solid ${e.border}`},".sb-sr-only, .sb-hidden-until-focus:not(:focus)":{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",border:0},".sb-hidden-until-focus":{opacity:0,transition:"opacity 150ms ease-out"},".sb-hidden-until-focus:focus":{opacity:1}}});var Qz={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},ej=tn`
|
|
628
|
-
from {
|
|
629
|
-
transform: rotate(0deg);
|
|
630
|
-
}
|
|
631
|
-
to {
|
|
632
|
-
transform: rotate(360deg);
|
|
633
|
-
}
|
|
634
|
-
`,rT=tn`
|
|
635
|
-
0%, 100% { opacity: 1; }
|
|
636
|
-
50% { opacity: .4; }
|
|
637
|
-
`,tj=tn`
|
|
638
|
-
0% { transform: translateY(1px); }
|
|
639
|
-
25% { transform: translateY(0px); }
|
|
640
|
-
50% { transform: translateY(-3px); }
|
|
641
|
-
100% { transform: translateY(1px); }
|
|
642
|
-
`,rj=tn`
|
|
643
|
-
0%, 100% { transform:translate3d(0,0,0); }
|
|
644
|
-
12.5%, 62.5% { transform:translate3d(-4px,0,0); }
|
|
645
|
-
37.5%, 87.5% { transform: translate3d(4px,0,0); }
|
|
646
|
-
`,nj=Cd`
|
|
647
|
-
animation: ${rT} 1.5s ease-in-out infinite;
|
|
648
|
-
color: transparent;
|
|
649
|
-
cursor: progress;
|
|
650
|
-
`,aj=Cd`
|
|
651
|
-
transition: all 150ms ease-out;
|
|
652
|
-
transform: translate3d(0, 0, 0);
|
|
653
|
-
|
|
654
|
-
&:hover {
|
|
655
|
-
transform: translate3d(0, -2px, 0);
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
&:active {
|
|
659
|
-
transform: translate3d(0, 0, 0);
|
|
660
|
-
}
|
|
661
|
-
`,oj={rotate360:ej,glow:rT,float:tj,jiggle:rj,inlineGlow:nj,hoverable:aj},ij={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},lj={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},sj=d(e=>Object.entries(e).reduce((t,[n,o])=>({...t,[n]:fz(o)}),{}),"convertColors"),uj=d(({colors:e,mono:t})=>{const n=sj(e);return{token:{fontFamily:t,WebkitFontSmoothing:"antialiased","&.tag":n.red3,"&.comment":{...n.green1,fontStyle:"italic"},"&.prolog":{...n.green1,fontStyle:"italic"},"&.doctype":{...n.green1,fontStyle:"italic"},"&.cdata":{...n.green1,fontStyle:"italic"},"&.string":n.red1,"&.url":n.cyan1,"&.symbol":n.cyan1,"&.number":n.cyan1,"&.boolean":n.cyan1,"&.variable":n.cyan1,"&.constant":n.cyan1,"&.inserted":n.cyan1,"&.atrule":n.blue1,"&.keyword":n.blue1,"&.attr-value":n.blue1,"&.punctuation":n.gray1,"&.operator":n.gray1,"&.function":n.gray1,"&.deleted":n.red2,"&.important":{fontWeight:"bold"},"&.bold":{fontWeight:"bold"},"&.italic":{fontStyle:"italic"},"&.class-name":n.cyan2,"&.selector":n.red3,"&.attr-name":n.red4,"&.property":n.red4,"&.regex":n.red4,"&.entity":n.red4,"&.directive.tag .tag":{background:"#ffff00",...n.gray1}},"language-json .token.boolean":n.blue1,"language-json .token.number":n.blue1,"language-json .token.property":n.cyan2,namespace:{opacity:.7}}},"create"),cj={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#ff0000",gray1:"#393A34",cyan1:"#36acaa",cyan2:"#2B91AF",blue1:"#0000ff",blue2:"#00009f"},fj={green1:"#7C7C7C",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},dj=d(e=>({primary:e.colorPrimary,secondary:e.colorSecondary,tertiary:me.tertiary,ancillary:me.ancillary,orange:me.orange,gold:me.gold,green:me.green,seafoam:me.seafoam,purple:me.purple,ultraviolet:me.ultraviolet,lightest:me.lightest,lighter:me.lighter,light:me.light,mediumlight:me.mediumlight,medium:me.medium,mediumdark:me.mediumdark,dark:me.dark,darker:me.darker,darkest:me.darkest,border:me.border,positive:me.positive,negative:me.negative,warning:me.warning,critical:me.critical,defaultText:e.textColor||me.darkest,inverseText:e.textInverseColor||me.lightest,positiveText:me.positiveText,negativeText:me.negativeText,warningText:me.warningText}),"createColors"),Wm=d((e=qm[DO()])=>{const{base:t,colorPrimary:n,colorSecondary:o,appBg:i,appContentBg:s,appPreviewBg:c,appBorderColor:f,appBorderRadius:p,fontBase:h,fontCode:y,textColor:v,textInverseColor:b,barTextColor:S,barHoverColor:w,barSelectedColor:x,barBg:O,buttonBg:A,buttonBorder:R,booleanBg:T,booleanSelectedBg:F,inputBg:N,inputBorder:L,inputTextColor:B,inputBorderRadius:$,brandTitle:P,brandUrl:I,brandImage:U,brandTarget:Q,gridCellSize:X,...z}=e;return{...z,base:t,color:dj(e),background:{app:i,bar:O,content:s,preview:c,gridCellSize:X||Na.gridCellSize,hoverable:Na.hoverable,positive:Na.positive,negative:Na.negative,warning:Na.warning,critical:Na.critical},typography:{fonts:{base:h,mono:y},weight:mn.weight,size:mn.size},animation:oj,easing:Qz,input:{background:N,border:L,borderRadius:$,color:B},button:{background:A||N,border:R||L},boolean:{background:T||L,selectedBackground:F||N},layoutMargin:10,appBorderColor:f,appBorderRadius:p,barTextColor:S,barHoverColor:w||o,barSelectedColor:x||o,barBg:O,brand:{title:P,url:I,image:U||(P?null:void 0),target:Q},code:uj({colors:t==="light"?cj:fj,mono:y}),addonActionsTheme:{...t==="light"?lj:ij,BASE_FONT_FAMILY:y,BASE_FONT_SIZE:mn.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:v,ARROW_COLOR:az(.2,f),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:y,TREENODE_FONT_SIZE:mn.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12}}},"convert");const{logger:pj}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var hj=d(e=>Object.keys(e).length===0,"isEmpty"),Mg=d(e=>e!=null&&typeof e=="object","isObject"),gj=d((e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),"hasOwnProperty"),mj=d(()=>Object.create(null),"makeObjectWithoutPrototype"),nT=d((e,t)=>e===t||!Mg(e)||!Mg(t)?{}:Object.keys(e).reduce((n,o)=>{if(gj(t,o)){const i=nT(e[o],t[o]);return Mg(i)&&hj(i)||(n[o]=i),n}return n[o]=void 0,n},mj()),"deletedDiff"),yj=nT,vj=d(e=>{if(!e)return Wm(Nf);const t=yj(Nf,e);return Object.keys(t).length&&pj.warn(Jr`
|
|
662
|
-
Your theme is missing properties, you should update your theme!
|
|
663
|
-
|
|
664
|
-
theme-data missing:
|
|
665
|
-
`,t),Wm(e)},"ensure"),Km="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",wd=J_();const aT=hw(wd);var Lg={exports:{}},Ss={};var jA;function bj(){if(jA)return Ss;jA=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(o,i,s){var c=null;if(s!==void 0&&(c=""+s),i.key!==void 0&&(c=""+i.key),"key"in i){s={};for(var f in i)f!=="key"&&(s[f]=i[f])}else s=i;return i=s.ref,{$$typeof:e,type:o,key:c,ref:i!==void 0?i:null,props:s}}return Ss.Fragment=t,Ss.jsx=n,Ss.jsxs=n,Ss}var $A;function Ej(){return $A||($A=1,Lg.exports=bj()),Lg.exports}var de=Ej(),Sj=G.div(({theme:e})=>({position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:e.background.content,zIndex:1})),oT=G.button(({theme:e})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:"16px",fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:"0 none","@media (forced-colors: active)":{outline:"1px solid highlight"}}}),({disabled:e})=>e&&{cursor:"not-allowed",opacity:.5});oT.displayName="ActionButton";var iT=d(({actionItems:e,...t})=>E.createElement(Sj,{...t},e.map(({title:n,className:o,onClick:i,disabled:s},c)=>E.createElement(oT,{key:c,className:o,onClick:i,disabled:!!s},n))),"ActionBar");function lT(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}d(lT,"setRef");function Py(...e){return t=>e.forEach(n=>lT(n,t))}d(Py,"composeRefs");function Wa(...e){return C.useCallback(Py(...e),e)}d(Wa,"useComposedRefs");var sT=C.forwardRef((e,t)=>{const{children:n,...o}=e,i=C.Children.toArray(n),s=i.find(uT);if(s){const c=s.props.children,f=i.map(p=>p===s?C.Children.count(c)>1?C.Children.only(null):C.isValidElement(c)?c.props.children:null:p);return de.jsx(Xm,{...o,ref:t,children:C.isValidElement(c)?C.cloneElement(c,void 0,f):null})}return de.jsx(Xm,{...o,ref:t,children:n})});sT.displayName="Slot";var Xm=C.forwardRef((e,t)=>{const{children:n,...o}=e;if(C.isValidElement(n)){const i=fT(n);return C.cloneElement(n,{...cT(o,n.props),ref:t?Py(t,i):i})}return C.Children.count(n)>1?C.Children.only(null):null});Xm.displayName="SlotClone";var Aj=d(({children:e})=>de.jsx(de.Fragment,{children:e}),"Slottable");function uT(e){return C.isValidElement(e)&&e.type===Aj}d(uT,"isSlottable");function cT(e,t){const n={...t};for(const o in t){const i=e[o],s=t[o];/^on[A-Z]/.test(o)?i&&s?n[o]=(...f)=>{s(...f),i(...f)}:i&&(n[o]=i):o==="style"?n[o]={...i,...s}:o==="className"&&(n[o]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}d(cT,"mergeProps");function fT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}d(fT,"getElementRef");var Cj=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],fu=Cj.reduce((e,t)=>{const n=C.forwardRef((o,i)=>{const{asChild:s,...c}=o,f=s?sT:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),de.jsx(f,{...c,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Zm=globalThis?.document?C.useLayoutEffect:()=>{};function dT(e,t){return C.useReducer((n,o)=>t[n][o]??n,e)}d(dT,"useStateMachine");var du=d(e=>{const{present:t,children:n}=e,o=pT(t),i=typeof n=="function"?n({present:o.isPresent}):C.Children.only(n),s=Wa(o.ref,hT(i));return typeof n=="function"||o.isPresent?C.cloneElement(i,{ref:s}):null},"Presence");du.displayName="Presence";function pT(e){const[t,n]=C.useState(),o=C.useRef({}),i=C.useRef(e),s=C.useRef("none"),c=e?"mounted":"unmounted",[f,p]=dT(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const h=Fs(o.current);s.current=f==="mounted"?h:"none"},[f]),Zm(()=>{const h=o.current,y=i.current;if(y!==e){const b=s.current,S=Fs(h);e?p("MOUNT"):S==="none"||h?.display==="none"?p("UNMOUNT"):p(y&&b!==S?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,p]),Zm(()=>{if(t){const h=d(v=>{const S=Fs(o.current).includes(v.animationName);v.target===t&&S&&wd.flushSync(()=>p("ANIMATION_END"))},"handleAnimationEnd"),y=d(v=>{v.target===t&&(s.current=Fs(o.current))},"handleAnimationStart");return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:C.useCallback(h=>{h&&(o.current=getComputedStyle(h)),n(h)},[])}}d(pT,"usePresence");function Fs(e){return e?.animationName||"none"}d(Fs,"getAnimationName");function hT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}d(hT,"getElementRef");function gT(e,t=[]){let n=[];function o(s,c){const f=C.createContext(c),p=n.length;n=[...n,c];function h(v){const{scope:b,children:S,...w}=v,x=b?.[e][p]||f,O=C.useMemo(()=>w,Object.values(w));return de.jsx(x.Provider,{value:O,children:S})}d(h,"Provider");function y(v,b){const S=b?.[e][p]||f,w=C.useContext(S);if(w)return w;if(c!==void 0)return c;throw new Error(`\`${v}\` must be used within \`${s}\``)}return d(y,"useContext2"),h.displayName=s+"Provider",[h,y]}d(o,"createContext3");const i=d(()=>{const s=n.map(c=>C.createContext(c));return d(function(f){const p=f?.[e]||s;return C.useMemo(()=>({[`__scope${e}`]:{...f,[e]:p}}),[f,p])},"useScope")},"createScope");return i.scopeName=e,[o,mT(i,...t)]}d(gT,"createContextScope");function mT(...e){const t=e[0];if(e.length===1)return t;const n=d(()=>{const o=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return d(function(s){const c=o.reduce((f,{useScope:p,scopeName:h})=>{const v=p(s)[`__scope${h}`];return{...f,...v}},{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}d(mT,"composeContextScopes");function za(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...n)=>t.current?.(...n),[])}d(za,"useCallbackRef");var wj=C.createContext(void 0);function yT(e){const t=C.useContext(wj);return e||t||"ltr"}d(yT,"useDirection");function vT(e,[t,n]){return Math.min(n,Math.max(t,e))}d(vT,"clamp");function Ha(e,t,{checkForDefaultPrevented:n=!0}={}){return d(function(i){if(e?.(i),n===!1||!i.defaultPrevented)return t?.(i)},"handleEvent")}d(Ha,"composeEventHandlers");function bT(e,t){return C.useReducer((n,o)=>t[n][o]??n,e)}d(bT,"useStateMachine");var Iy="ScrollArea",[ET,xX]=gT(Iy),[xj,zr]=ET(Iy),ST=C.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:o="hover",dir:i,scrollHideDelay:s=600,...c}=e,[f,p]=C.useState(null),[h,y]=C.useState(null),[v,b]=C.useState(null),[S,w]=C.useState(null),[x,O]=C.useState(null),[A,R]=C.useState(0),[T,F]=C.useState(0),[N,L]=C.useState(!1),[B,$]=C.useState(!1),P=Wa(t,U=>p(U)),I=yT(i);return de.jsx(xj,{scope:n,type:o,dir:I,scrollHideDelay:s,scrollArea:f,viewport:h,onViewportChange:y,content:v,onContentChange:b,scrollbarX:S,onScrollbarXChange:w,scrollbarXEnabled:N,onScrollbarXEnabledChange:L,scrollbarY:x,onScrollbarYChange:O,scrollbarYEnabled:B,onScrollbarYEnabledChange:$,onCornerWidthChange:R,onCornerHeightChange:F,children:de.jsx(fu.div,{dir:I,...c,ref:P,style:{position:"relative","--radix-scroll-area-corner-width":A+"px","--radix-scroll-area-corner-height":T+"px",...e.style}})})});ST.displayName=Iy;var AT="ScrollAreaViewport",CT=C.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:o,asChild:i,nonce:s,...c}=e,f=zr(AT,n),p=C.useRef(null),h=Wa(t,p,f.onViewportChange);return de.jsxs(de.Fragment,{children:[de.jsx("style",{dangerouslySetInnerHTML:{__html:`
|
|
666
|
-
[data-radix-scroll-area-viewport] {
|
|
667
|
-
scrollbar-width: none;
|
|
668
|
-
-ms-overflow-style: none;
|
|
669
|
-
-webkit-overflow-scrolling: touch;
|
|
670
|
-
}
|
|
671
|
-
[data-radix-scroll-area-viewport]::-webkit-scrollbar {
|
|
672
|
-
display: none;
|
|
673
|
-
}
|
|
674
|
-
:where([data-radix-scroll-area-viewport]) {
|
|
675
|
-
display: flex;
|
|
676
|
-
flex-direction: column;
|
|
677
|
-
align-items: stretch;
|
|
678
|
-
}
|
|
679
|
-
:where([data-radix-scroll-area-content]) {
|
|
680
|
-
flex-grow: 1;
|
|
681
|
-
}
|
|
682
|
-
`},nonce:s}),de.jsx(fu.div,{"data-radix-scroll-area-viewport":"",...c,asChild:i,ref:h,style:{overflowX:f.scrollbarXEnabled?"scroll":"hidden",overflowY:f.scrollbarYEnabled?"scroll":"hidden",...e.style},children:FT({asChild:i,children:o},y=>de.jsx("div",{"data-radix-scroll-area-content":"",ref:f.onContentChange,style:{minWidth:f.scrollbarXEnabled?"fit-content":void 0},children:y}))})]})});CT.displayName=AT;var vn="ScrollAreaScrollbar",wT=C.forwardRef((e,t)=>{const{forceMount:n,...o}=e,i=zr(vn,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:c}=i,f=e.orientation==="horizontal";return C.useEffect(()=>(f?s(!0):c(!0),()=>{f?s(!1):c(!1)}),[f,s,c]),i.type==="hover"?de.jsx(Dj,{...o,ref:t,forceMount:n}):i.type==="scroll"?de.jsx(_j,{...o,ref:t,forceMount:n}):i.type==="auto"?de.jsx(xT,{...o,ref:t,forceMount:n}):i.type==="always"?de.jsx(Hy,{...o,ref:t}):null});wT.displayName=vn;var Dj=C.forwardRef((e,t)=>{const{forceMount:n,...o}=e,i=zr(vn,e.__scopeScrollArea),[s,c]=C.useState(!1);return C.useEffect(()=>{const f=i.scrollArea;let p=0;if(f){const h=d(()=>{window.clearTimeout(p),c(!0)},"handlePointerEnter"),y=d(()=>{p=window.setTimeout(()=>c(!1),i.scrollHideDelay)},"handlePointerLeave");return f.addEventListener("pointerenter",h),f.addEventListener("pointerleave",y),()=>{window.clearTimeout(p),f.removeEventListener("pointerenter",h),f.removeEventListener("pointerleave",y)}}},[i.scrollArea,i.scrollHideDelay]),de.jsx(du,{present:n||s,children:de.jsx(xT,{"data-state":s?"visible":"hidden",...o,ref:t})})}),_j=C.forwardRef((e,t)=>{const{forceMount:n,...o}=e,i=zr(vn,e.__scopeScrollArea),s=e.orientation==="horizontal",c=hu(()=>p("SCROLL_END"),100),[f,p]=bT("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return C.useEffect(()=>{if(f==="idle"){const h=window.setTimeout(()=>p("HIDE"),i.scrollHideDelay);return()=>window.clearTimeout(h)}},[f,i.scrollHideDelay,p]),C.useEffect(()=>{const h=i.viewport,y=s?"scrollLeft":"scrollTop";if(h){let v=h[y];const b=d(()=>{const S=h[y];v!==S&&(p("SCROLL"),c()),v=S},"handleScroll");return h.addEventListener("scroll",b),()=>h.removeEventListener("scroll",b)}},[i.viewport,s,p,c]),de.jsx(du,{present:n||f!=="hidden",children:de.jsx(Hy,{"data-state":f==="hidden"?"hidden":"visible",...o,ref:t,onPointerEnter:Ha(e.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:Ha(e.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),xT=C.forwardRef((e,t)=>{const n=zr(vn,e.__scopeScrollArea),{forceMount:o,...i}=e,[s,c]=C.useState(!1),f=e.orientation==="horizontal",p=hu(()=>{if(n.viewport){const h=n.viewport.offsetWidth<n.viewport.scrollWidth,y=n.viewport.offsetHeight<n.viewport.scrollHeight;c(f?h:y)}},10);return No(n.viewport,p),No(n.content,p),de.jsx(du,{present:o||s,children:de.jsx(Hy,{"data-state":s?"visible":"hidden",...i,ref:t})})}),Hy=C.forwardRef((e,t)=>{const{orientation:n="vertical",...o}=e,i=zr(vn,e.__scopeScrollArea),s=C.useRef(null),c=C.useRef(0),[f,p]=C.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=qy(f.viewport,f.content),y={...o,sizes:f,onSizesChange:p,hasThumb:h>0&&h<1,onThumbChange:d(b=>s.current=b,"onThumbChange"),onThumbPointerUp:d(()=>c.current=0,"onThumbPointerUp"),onThumbPointerDown:d(b=>c.current=b,"onThumbPointerDown")};function v(b,S){return RT(b,c.current,f,S)}return d(v,"getScrollPosition"),n==="horizontal"?de.jsx(Oj,{...y,ref:t,onThumbPositionChange:d(()=>{if(i.viewport&&s.current){const b=i.viewport.scrollLeft,S=Jm(b,f,i.dir);s.current.style.transform=`translate3d(${S}px, 0, 0)`}},"onThumbPositionChange"),onWheelScroll:d(b=>{i.viewport&&(i.viewport.scrollLeft=b)},"onWheelScroll"),onDragScroll:d(b=>{i.viewport&&(i.viewport.scrollLeft=v(b,i.dir))},"onDragScroll")}):n==="vertical"?de.jsx(Tj,{...y,ref:t,onThumbPositionChange:d(()=>{if(i.viewport&&s.current){const b=i.viewport.scrollTop,S=Jm(b,f);s.current.style.transform=`translate3d(0, ${S}px, 0)`}},"onThumbPositionChange"),onWheelScroll:d(b=>{i.viewport&&(i.viewport.scrollTop=b)},"onWheelScroll"),onDragScroll:d(b=>{i.viewport&&(i.viewport.scrollTop=v(b))},"onDragScroll")}):null}),Oj=C.forwardRef((e,t)=>{const{sizes:n,onSizesChange:o,...i}=e,s=zr(vn,e.__scopeScrollArea),[c,f]=C.useState(),p=C.useRef(null),h=Wa(t,p,s.onScrollbarXChange);return C.useEffect(()=>{p.current&&f(getComputedStyle(p.current))},[p]),de.jsx(_T,{"data-orientation":"horizontal",...i,ref:h,sizes:n,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":pu(n)+"px",...e.style},onThumbPointerDown:d(y=>e.onThumbPointerDown(y.x),"onThumbPointerDown"),onDragScroll:d(y=>e.onDragScroll(y.x),"onDragScroll"),onWheelScroll:d((y,v)=>{if(s.viewport){const b=s.viewport.scrollLeft+y.deltaX;e.onWheelScroll(b),Vy(b,v)&&y.preventDefault()}},"onWheelScroll"),onResize:d(()=>{p.current&&s.viewport&&c&&o({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:Qs(c.paddingLeft),paddingEnd:Qs(c.paddingRight)}})},"onResize")})}),Tj=C.forwardRef((e,t)=>{const{sizes:n,onSizesChange:o,...i}=e,s=zr(vn,e.__scopeScrollArea),[c,f]=C.useState(),p=C.useRef(null),h=Wa(t,p,s.onScrollbarYChange);return C.useEffect(()=>{p.current&&f(getComputedStyle(p.current))},[p]),de.jsx(_T,{"data-orientation":"vertical",...i,ref:h,sizes:n,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":pu(n)+"px",...e.style},onThumbPointerDown:d(y=>e.onThumbPointerDown(y.y),"onThumbPointerDown"),onDragScroll:d(y=>e.onDragScroll(y.y),"onDragScroll"),onWheelScroll:d((y,v)=>{if(s.viewport){const b=s.viewport.scrollTop+y.deltaY;e.onWheelScroll(b),Vy(b,v)&&y.preventDefault()}},"onWheelScroll"),onResize:d(()=>{p.current&&s.viewport&&c&&o({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:Qs(c.paddingTop),paddingEnd:Qs(c.paddingBottom)}})},"onResize")})}),[Rj,DT]=ET(vn),_T=C.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:o,hasThumb:i,onThumbChange:s,onThumbPointerUp:c,onThumbPointerDown:f,onThumbPositionChange:p,onDragScroll:h,onWheelScroll:y,onResize:v,...b}=e,S=zr(vn,n),[w,x]=C.useState(null),O=Wa(t,P=>x(P)),A=C.useRef(null),R=C.useRef(""),T=S.viewport,F=o.content-o.viewport,N=za(y),L=za(p),B=hu(v,10);function $(P){if(A.current){const I=P.clientX-A.current.left,U=P.clientY-A.current.top;h({x:I,y:U})}}return d($,"handleDragScroll"),C.useEffect(()=>{const P=d(I=>{const U=I.target;w?.contains(U)&&N(I,F)},"handleWheel");return document.addEventListener("wheel",P,{passive:!1}),()=>document.removeEventListener("wheel",P,{passive:!1})},[T,w,F,N]),C.useEffect(L,[o,L]),No(w,B),No(S.content,B),de.jsx(Rj,{scope:n,scrollbar:w,hasThumb:i,onThumbChange:za(s),onThumbPointerUp:za(c),onThumbPositionChange:L,onThumbPointerDown:za(f),children:de.jsx(fu.div,{...b,ref:O,style:{position:"absolute",...b.style},onPointerDown:Ha(e.onPointerDown,P=>{P.button===0&&(P.target.setPointerCapture(P.pointerId),A.current=w.getBoundingClientRect(),R.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),$(P))}),onPointerMove:Ha(e.onPointerMove,$),onPointerUp:Ha(e.onPointerUp,P=>{const I=P.target;I.hasPointerCapture(P.pointerId)&&I.releasePointerCapture(P.pointerId),document.body.style.webkitUserSelect=R.current,S.viewport&&(S.viewport.style.scrollBehavior=""),A.current=null})})})}),$f="ScrollAreaThumb",OT=C.forwardRef((e,t)=>{const{forceMount:n,...o}=e,i=DT($f,e.__scopeScrollArea);return de.jsx(du,{present:n||i.hasThumb,children:de.jsx(Fj,{ref:t,...o})})}),Fj=C.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:o,...i}=e,s=zr($f,n),c=DT($f,n),{onThumbPositionChange:f}=c,p=Wa(t,v=>c.onThumbChange(v)),h=C.useRef(),y=hu(()=>{h.current&&(h.current(),h.current=void 0)},100);return C.useEffect(()=>{const v=s.viewport;if(v){const b=d(()=>{if(y(),!h.current){const S=Mj(v,f);h.current=S,f()}},"handleScroll");return f(),v.addEventListener("scroll",b),()=>v.removeEventListener("scroll",b)}},[s.viewport,y,f]),de.jsx(fu.div,{"data-state":c.hasThumb?"visible":"hidden",...i,ref:p,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:Ha(e.onPointerDownCapture,v=>{const S=v.target.getBoundingClientRect(),w=v.clientX-S.left,x=v.clientY-S.top;c.onThumbPointerDown({x:w,y:x})}),onPointerUp:Ha(e.onPointerUp,c.onThumbPointerUp)})});OT.displayName=$f;var Uy="ScrollAreaCorner",TT=C.forwardRef((e,t)=>{const n=zr(Uy,e.__scopeScrollArea),o=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&o?de.jsx(Bj,{...e,ref:t}):null});TT.displayName=Uy;var Bj=C.forwardRef((e,t)=>{const{__scopeScrollArea:n,...o}=e,i=zr(Uy,n),[s,c]=C.useState(0),[f,p]=C.useState(0),h=!!(s&&f);return No(i.scrollbarX,()=>{const y=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(y),p(y)}),No(i.scrollbarY,()=>{const y=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(y),c(y)}),h?de.jsx(fu.div,{...o,ref:t,style:{width:s,height:f,position:"absolute",right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Qs(e){return e?parseInt(e,10):0}d(Qs,"toInt");function qy(e,t){const n=e/t;return isNaN(n)?0:n}d(qy,"getThumbRatio");function pu(e){const t=qy(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-n)*t;return Math.max(o,18)}d(pu,"getThumbSize");function RT(e,t,n,o="ltr"){const i=pu(n),s=i/2,c=t||s,f=i-c,p=n.scrollbar.paddingStart+c,h=n.scrollbar.size-n.scrollbar.paddingEnd-f,y=n.content-n.viewport,v=o==="ltr"?[0,y]:[y*-1,0];return Gy([p,h],v)(e)}d(RT,"getScrollPositionFromPointer");function Jm(e,t,n="ltr"){const o=pu(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-i,c=t.content-t.viewport,f=s-o,p=n==="ltr"?[0,c]:[c*-1,0],h=vT(e,p);return Gy([0,c],[0,f])(h)}d(Jm,"getThumbOffsetFromScroll");function Gy(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}d(Gy,"linearScale");function Vy(e,t){return e>0&&e<t}d(Vy,"isScrollingWithinScrollbarBounds");var Mj=d((e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},o=0;return d(function i(){const s={left:e.scrollLeft,top:e.scrollTop},c=n.left!==s.left,f=n.top!==s.top;(c||f)&&t(),n=s,o=window.requestAnimationFrame(i)},"loop")(),()=>window.cancelAnimationFrame(o)},"addUnlinkedScrollListener");function hu(e,t){const n=za(e),o=C.useRef(0);return C.useEffect(()=>()=>window.clearTimeout(o.current),[]),C.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(n,t)},[n,t])}d(hu,"useDebounceCallback");function No(e,t){const n=za(t);Zm(()=>{let o=0;if(e){const i=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(n)});return i.observe(e),()=>{window.cancelAnimationFrame(o),i.unobserve(e)}}},[e,n])}d(No,"useResizeObserver");function FT(e,t){const{asChild:n,children:o}=e;if(!n)return typeof t=="function"?t(o):t;const i=C.Children.only(o);return C.cloneElement(i,{children:typeof t=="function"?t(i.props.children):t})}d(FT,"getSubtree");var Lj=ST,Nj=CT,kj=wT,zj=OT,jj=TT,$j=G(Lj)(({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`})),Pj=G(Nj)({width:"100%",height:"100%"}),PA=G(kj)(({offset:e,horizontal:t,vertical:n})=>({display:"flex",userSelect:"none",touchAction:"none",background:"transparent",transition:"all 0.2s ease-out",borderRadius:"var(--scrollbar-size)",zIndex:1,'&[data-orientation="vertical"]':{width:"var(--scrollbar-size)",paddingRight:e,marginTop:e,marginBottom:t==="true"&&n==="true"?0:e},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:e,marginLeft:e,marginRight:t==="true"&&n==="true"?0:e}})),IA=G(zj)(({theme:e})=>({flex:1,background:e.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out","&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%"}})),Yy=C.forwardRef(({children:e,horizontal:t=!1,vertical:n=!1,offset:o=2,scrollbarSize:i=6,className:s},c)=>E.createElement($j,{scrollbarsize:i,offset:o,className:s},E.createElement(Pj,{ref:c},e),t&&E.createElement(PA,{orientation:"horizontal",offset:o,horizontal:t.toString(),vertical:n.toString()},E.createElement(IA,null)),n&&E.createElement(PA,{orientation:"vertical",offset:o,horizontal:t.toString(),vertical:n.toString()},E.createElement(IA,null)),t&&n&&E.createElement(jj,null)));Yy.displayName="ScrollArea";const{global:Ij}=__STORYBOOK_MODULE_GLOBAL__;var{document:As,window:Qm}=Ij;async function BT(e){try{await Qm.top?.navigator.clipboard.writeText(e)}catch{await Qm.navigator.clipboard.writeText(e)}}d(BT,"copyUsingClipboardAPI");async function MT(e){const t=As.createElement("TEXTAREA"),n=As.activeElement;t.value=e,As.body.appendChild(t),t.select(),As.execCommand("copy"),As.body.removeChild(t),n.focus()}d(MT,"copyUsingWorkAround");function LT(){return Qm.navigator?.clipboard?BT:MT}d(LT,"createCopyToClipboardFunction");function Wy(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}d(Wy,"_objectWithoutPropertiesLoose");var Hj=ot({"../node_modules/react-fast-compare/index.js"(e,t){var n=typeof Element<"u",o=typeof Map=="function",i=typeof Set=="function",s=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function c(f,p){if(f===p)return!0;if(f&&p&&typeof f=="object"&&typeof p=="object"){if(f.constructor!==p.constructor)return!1;var h,y,v;if(Array.isArray(f)){if(h=f.length,h!=p.length)return!1;for(y=h;y--!==0;)if(!c(f[y],p[y]))return!1;return!0}var b;if(o&&f instanceof Map&&p instanceof Map){if(f.size!==p.size)return!1;for(b=f.entries();!(y=b.next()).done;)if(!p.has(y.value[0]))return!1;for(b=f.entries();!(y=b.next()).done;)if(!c(y.value[1],p.get(y.value[0])))return!1;return!0}if(i&&f instanceof Set&&p instanceof Set){if(f.size!==p.size)return!1;for(b=f.entries();!(y=b.next()).done;)if(!p.has(y.value[0]))return!1;return!0}if(s&&ArrayBuffer.isView(f)&&ArrayBuffer.isView(p)){if(h=f.length,h!=p.length)return!1;for(y=h;y--!==0;)if(f[y]!==p[y])return!1;return!0}if(f.constructor===RegExp)return f.source===p.source&&f.flags===p.flags;if(f.valueOf!==Object.prototype.valueOf&&typeof f.valueOf=="function"&&typeof p.valueOf=="function")return f.valueOf()===p.valueOf();if(f.toString!==Object.prototype.toString&&typeof f.toString=="function"&&typeof p.toString=="function")return f.toString()===p.toString();if(v=Object.keys(f),h=v.length,h!==Object.keys(p).length)return!1;for(y=h;y--!==0;)if(!Object.prototype.hasOwnProperty.call(p,v[y]))return!1;if(n&&f instanceof Element)return!1;for(y=h;y--!==0;)if(!((v[y]==="_owner"||v[y]==="__v"||v[y]==="__o")&&f.$$typeof)&&!c(f[v[y]],p[v[y]]))return!1;return!0}return f!==f&&p!==p}d(c,"equal"),t.exports=d(function(p,h){try{return c(p,h)}catch(y){if((y.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw y}},"isEqual")}}),Uj=ot({"../node_modules/warning/warning.js"(e,t){var n=d(function(){},"warning");t.exports=n}});const{global:qj}=__STORYBOOK_MODULE_GLOBAL__;C.createContext();C.createContext();var HA=d(function(t){return t.reduce(function(n,o){var i=o[0],s=o[1];return n[i]=s,n},{})},"fromEntries"),UA=typeof window<"u"&&window.document&&window.document.createElement?C.useLayoutEffect:C.useEffect,tr="top",Nr="bottom",kr="right",rr="left",Ky="auto",gu=[tr,Nr,kr,rr],fl="start",eu="end",Gj="clippingParents",NT="viewport",Cs="popper",Vj="reference",qA=gu.reduce(function(e,t){return e.concat([t+"-"+fl,t+"-"+eu])},[]),kT=[].concat(gu,[Ky]).reduce(function(e,t){return e.concat([t,t+"-"+fl,t+"-"+eu])},[]),Yj="beforeRead",Wj="read",Kj="afterRead",Xj="beforeMain",Zj="main",Jj="afterMain",Qj="beforeWrite",e$="write",t$="afterWrite",r$=[Yj,Wj,Kj,Xj,Zj,Jj,Qj,e$,t$];function Qr(e){return e?(e.nodeName||"").toLowerCase():null}d(Qr,"getNodeName");function ar(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}d(ar,"getWindow");function Va(e){var t=ar(e).Element;return e instanceof t||e instanceof Element}d(Va,"isElement");function Er(e){var t=ar(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}d(Er,"isHTMLElement");function xd(e){if(typeof ShadowRoot>"u")return!1;var t=ar(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}d(xd,"isShadowRoot");function zT(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},i=t.attributes[n]||{},s=t.elements[n];!Er(s)||!Qr(s)||(Object.assign(s.style,o),Object.keys(i).forEach(function(c){var f=i[c];f===!1?s.removeAttribute(c):s.setAttribute(c,f===!0?"":f)}))})}d(zT,"applyStyles");function jT(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var i=t.elements[o],s=t.attributes[o]||{},c=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),f=c.reduce(function(p,h){return p[h]="",p},{});!Er(i)||!Qr(i)||(Object.assign(i.style,f),Object.keys(s).forEach(function(p){i.removeAttribute(p)}))})}}d(jT,"effect");var $T={name:"applyStyles",enabled:!0,phase:"write",fn:zT,effect:jT,requires:["computeStyles"]};function Zr(e){return e.split("-")[0]}d(Zr,"getBasePlacement");var Ro=Math.max,Pf=Math.min,dl=Math.round;function If(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}d(If,"getUAString");function Xy(){return!/^((?!chrome|android).)*safari/i.test(If())}d(Xy,"isLayoutViewport");function ko(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),i=1,s=1;t&&Er(e)&&(i=e.offsetWidth>0&&dl(o.width)/e.offsetWidth||1,s=e.offsetHeight>0&&dl(o.height)/e.offsetHeight||1);var c=Va(e)?ar(e):window,f=c.visualViewport,p=!Xy()&&n,h=(o.left+(p&&f?f.offsetLeft:0))/i,y=(o.top+(p&&f?f.offsetTop:0))/s,v=o.width/i,b=o.height/s;return{width:v,height:b,top:y,right:h+v,bottom:y+b,left:h,x:h,y}}d(ko,"getBoundingClientRect");function Dd(e){var t=ko(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}d(Dd,"getLayoutRect");function Zy(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&xd(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}d(Zy,"contains");function yn(e){return ar(e).getComputedStyle(e)}d(yn,"getComputedStyle");function PT(e){return["table","td","th"].indexOf(Qr(e))>=0}d(PT,"isTableElement");function ta(e){return((Va(e)?e.ownerDocument:e.document)||window.document).documentElement}d(ta,"getDocumentElement");function mu(e){return Qr(e)==="html"?e:e.assignedSlot||e.parentNode||(xd(e)?e.host:null)||ta(e)}d(mu,"getParentNode");function e0(e){return!Er(e)||yn(e).position==="fixed"?null:e.offsetParent}d(e0,"getTrueOffsetParent");function IT(e){var t=/firefox/i.test(If()),n=/Trident/i.test(If());if(n&&Er(e)){var o=yn(e);if(o.position==="fixed")return null}var i=mu(e);for(xd(i)&&(i=i.host);Er(i)&&["html","body"].indexOf(Qr(i))<0;){var s=yn(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}d(IT,"getContainingBlock");function Cl(e){for(var t=ar(e),n=e0(e);n&&PT(n)&&yn(n).position==="static";)n=e0(n);return n&&(Qr(n)==="html"||Qr(n)==="body"&&yn(n).position==="static")?t:n||IT(e)||t}d(Cl,"getOffsetParent");function _d(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}d(_d,"getMainAxisFromPlacement");function Wi(e,t,n){return Ro(e,Pf(t,n))}d(Wi,"within");function HT(e,t,n){var o=Wi(e,t,n);return o>n?n:o}d(HT,"withinMaxClamp");function Jy(){return{top:0,right:0,bottom:0,left:0}}d(Jy,"getFreshSideObject");function Qy(e){return Object.assign({},Jy(),e)}d(Qy,"mergePaddingObject");function ev(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}d(ev,"expandToHashMap");var n$=d(function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Qy(typeof t!="number"?t:ev(t,gu))},"toPaddingObject");function UT(e){var t,n=e.state,o=e.name,i=e.options,s=n.elements.arrow,c=n.modifiersData.popperOffsets,f=Zr(n.placement),p=_d(f),h=[rr,kr].indexOf(f)>=0,y=h?"height":"width";if(!(!s||!c)){var v=n$(i.padding,n),b=Dd(s),S=p==="y"?tr:rr,w=p==="y"?Nr:kr,x=n.rects.reference[y]+n.rects.reference[p]-c[p]-n.rects.popper[y],O=c[p]-n.rects.reference[p],A=Cl(s),R=A?p==="y"?A.clientHeight||0:A.clientWidth||0:0,T=x/2-O/2,F=v[S],N=R-b[y]-v[w],L=R/2-b[y]/2+T,B=Wi(F,L,N),$=p;n.modifiersData[o]=(t={},t[$]=B,t.centerOffset=B-L,t)}}d(UT,"arrow");function qT(e){var t=e.state,n=e.options,o=n.element,i=o===void 0?"[data-popper-arrow]":o;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Zy(t.elements.popper,i)&&(t.elements.arrow=i))}d(qT,"effect");var a$={name:"arrow",enabled:!0,phase:"main",fn:UT,effect:qT,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zo(e){return e.split("-")[1]}d(zo,"getVariation");var o$={top:"auto",right:"auto",bottom:"auto",left:"auto"};function GT(e,t){var n=e.x,o=e.y,i=t.devicePixelRatio||1;return{x:dl(n*i)/i||0,y:dl(o*i)/i||0}}d(GT,"roundOffsetsByDPR");function t0(e){var t,n=e.popper,o=e.popperRect,i=e.placement,s=e.variation,c=e.offsets,f=e.position,p=e.gpuAcceleration,h=e.adaptive,y=e.roundOffsets,v=e.isFixed,b=c.x,S=b===void 0?0:b,w=c.y,x=w===void 0?0:w,O=typeof y=="function"?y({x:S,y:x}):{x:S,y:x};S=O.x,x=O.y;var A=c.hasOwnProperty("x"),R=c.hasOwnProperty("y"),T=rr,F=tr,N=window;if(h){var L=Cl(n),B="clientHeight",$="clientWidth";if(L===ar(n)&&(L=ta(n),yn(L).position!=="static"&&f==="absolute"&&(B="scrollHeight",$="scrollWidth")),L=L,i===tr||(i===rr||i===kr)&&s===eu){F=Nr;var P=v&&L===N&&N.visualViewport?N.visualViewport.height:L[B];x-=P-o.height,x*=p?1:-1}if(i===rr||(i===tr||i===Nr)&&s===eu){T=kr;var I=v&&L===N&&N.visualViewport?N.visualViewport.width:L[$];S-=I-o.width,S*=p?1:-1}}var U=Object.assign({position:f},h&&o$),Q=y===!0?GT({x:S,y:x},ar(n)):{x:S,y:x};if(S=Q.x,x=Q.y,p){var X;return Object.assign({},U,(X={},X[F]=R?"0":"",X[T]=A?"0":"",X.transform=(N.devicePixelRatio||1)<=1?"translate("+S+"px, "+x+"px)":"translate3d("+S+"px, "+x+"px, 0)",X))}return Object.assign({},U,(t={},t[F]=R?x+"px":"",t[T]=A?S+"px":"",t.transform="",t))}d(t0,"mapToStyles");function VT(e){var t=e.state,n=e.options,o=n.gpuAcceleration,i=o===void 0?!0:o,s=n.adaptive,c=s===void 0?!0:s,f=n.roundOffsets,p=f===void 0?!0:f,h={placement:Zr(t.placement),variation:zo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,t0(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:p})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,t0(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:p})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}d(VT,"computeStyles");var YT={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:VT,data:{}},qc={passive:!0};function WT(e){var t=e.state,n=e.instance,o=e.options,i=o.scroll,s=i===void 0?!0:i,c=o.resize,f=c===void 0?!0:c,p=ar(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&h.forEach(function(y){y.addEventListener("scroll",n.update,qc)}),f&&p.addEventListener("resize",n.update,qc),function(){s&&h.forEach(function(y){y.removeEventListener("scroll",n.update,qc)}),f&&p.removeEventListener("resize",n.update,qc)}}d(WT,"effect");var KT={name:"eventListeners",enabled:!0,phase:"write",fn:d(function(){},"fn"),effect:WT,data:{}},i$={left:"right",right:"left",bottom:"top",top:"bottom"};function Us(e){return e.replace(/left|right|bottom|top/g,function(t){return i$[t]})}d(Us,"getOppositePlacement");var l$={start:"end",end:"start"};function r0(e){return e.replace(/start|end/g,function(t){return l$[t]})}d(r0,"getOppositeVariationPlacement");function Od(e){var t=ar(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}d(Od,"getWindowScroll");function Td(e){return ko(ta(e)).left+Od(e).scrollLeft}d(Td,"getWindowScrollBarX");function XT(e,t){var n=ar(e),o=ta(e),i=n.visualViewport,s=o.clientWidth,c=o.clientHeight,f=0,p=0;if(i){s=i.width,c=i.height;var h=Xy();(h||!h&&t==="fixed")&&(f=i.offsetLeft,p=i.offsetTop)}return{width:s,height:c,x:f+Td(e),y:p}}d(XT,"getViewportRect");function ZT(e){var t,n=ta(e),o=Od(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=Ro(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),c=Ro(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),f=-o.scrollLeft+Td(e),p=-o.scrollTop;return yn(i||n).direction==="rtl"&&(f+=Ro(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:c,x:f,y:p}}d(ZT,"getDocumentRect");function Rd(e){var t=yn(e),n=t.overflow,o=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+o)}d(Rd,"isScrollParent");function tv(e){return["html","body","#document"].indexOf(Qr(e))>=0?e.ownerDocument.body:Er(e)&&Rd(e)?e:tv(mu(e))}d(tv,"getScrollParent");function Ki(e,t){var n;t===void 0&&(t=[]);var o=tv(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=ar(o),c=i?[s].concat(s.visualViewport||[],Rd(o)?o:[]):o,f=t.concat(c);return i?f:f.concat(Ki(mu(c)))}d(Ki,"listScrollParents");function Hf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}d(Hf,"rectToClientRect");function JT(e,t){var n=ko(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}d(JT,"getInnerBoundingClientRect");function n0(e,t,n){return t===NT?Hf(XT(e,n)):Va(t)?JT(t,n):Hf(ZT(ta(e)))}d(n0,"getClientRectFromMixedType");function QT(e){var t=Ki(mu(e)),n=["absolute","fixed"].indexOf(yn(e).position)>=0,o=n&&Er(e)?Cl(e):e;return Va(o)?t.filter(function(i){return Va(i)&&Zy(i,o)&&Qr(i)!=="body"}):[]}d(QT,"getClippingParents");function e3(e,t,n,o){var i=t==="clippingParents"?QT(e):[].concat(t),s=[].concat(i,[n]),c=s[0],f=s.reduce(function(p,h){var y=n0(e,h,o);return p.top=Ro(y.top,p.top),p.right=Pf(y.right,p.right),p.bottom=Pf(y.bottom,p.bottom),p.left=Ro(y.left,p.left),p},n0(e,c,o));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}d(e3,"getClippingRect");function rv(e){var t=e.reference,n=e.element,o=e.placement,i=o?Zr(o):null,s=o?zo(o):null,c=t.x+t.width/2-n.width/2,f=t.y+t.height/2-n.height/2,p;switch(i){case tr:p={x:c,y:t.y-n.height};break;case Nr:p={x:c,y:t.y+t.height};break;case kr:p={x:t.x+t.width,y:f};break;case rr:p={x:t.x-n.width,y:f};break;default:p={x:t.x,y:t.y}}var h=i?_d(i):null;if(h!=null){var y=h==="y"?"height":"width";switch(s){case fl:p[h]=p[h]-(t[y]/2-n[y]/2);break;case eu:p[h]=p[h]+(t[y]/2-n[y]/2);break}}return p}d(rv,"computeOffsets");function pl(e,t){t===void 0&&(t={});var n=t,o=n.placement,i=o===void 0?e.placement:o,s=n.strategy,c=s===void 0?e.strategy:s,f=n.boundary,p=f===void 0?Gj:f,h=n.rootBoundary,y=h===void 0?NT:h,v=n.elementContext,b=v===void 0?Cs:v,S=n.altBoundary,w=S===void 0?!1:S,x=n.padding,O=x===void 0?0:x,A=Qy(typeof O!="number"?O:ev(O,gu)),R=b===Cs?Vj:Cs,T=e.rects.popper,F=e.elements[w?R:b],N=e3(Va(F)?F:F.contextElement||ta(e.elements.popper),p,y,c),L=ko(e.elements.reference),B=rv({reference:L,element:T,placement:i}),$=Hf(Object.assign({},T,B)),P=b===Cs?$:L,I={top:N.top-P.top+A.top,bottom:P.bottom-N.bottom+A.bottom,left:N.left-P.left+A.left,right:P.right-N.right+A.right},U=e.modifiersData.offset;if(b===Cs&&U){var Q=U[i];Object.keys(I).forEach(function(X){var z=[kr,Nr].indexOf(X)>=0?1:-1,q=[tr,Nr].indexOf(X)>=0?"y":"x";I[X]+=Q[q]*z})}return I}d(pl,"detectOverflow");function t3(e,t){t===void 0&&(t={});var n=t,o=n.placement,i=n.boundary,s=n.rootBoundary,c=n.padding,f=n.flipVariations,p=n.allowedAutoPlacements,h=p===void 0?kT:p,y=zo(o),v=y?f?qA:qA.filter(function(w){return zo(w)===y}):gu,b=v.filter(function(w){return h.indexOf(w)>=0});b.length===0&&(b=v);var S=b.reduce(function(w,x){return w[x]=pl(e,{placement:x,boundary:i,rootBoundary:s,padding:c})[Zr(x)],w},{});return Object.keys(S).sort(function(w,x){return S[w]-S[x]})}d(t3,"computeAutoPlacement");function r3(e){if(Zr(e)===Ky)return[];var t=Us(e);return[r0(e),t,r0(t)]}d(r3,"getExpandedFallbackPlacements");function n3(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var i=n.mainAxis,s=i===void 0?!0:i,c=n.altAxis,f=c===void 0?!0:c,p=n.fallbackPlacements,h=n.padding,y=n.boundary,v=n.rootBoundary,b=n.altBoundary,S=n.flipVariations,w=S===void 0?!0:S,x=n.allowedAutoPlacements,O=t.options.placement,A=Zr(O),R=A===O,T=p||(R||!w?[Us(O)]:r3(O)),F=[O].concat(T).reduce(function(ue,se){return ue.concat(Zr(se)===Ky?t3(t,{placement:se,boundary:y,rootBoundary:v,padding:h,flipVariations:w,allowedAutoPlacements:x}):se)},[]),N=t.rects.reference,L=t.rects.popper,B=new Map,$=!0,P=F[0],I=0;I<F.length;I++){var U=F[I],Q=Zr(U),X=zo(U)===fl,z=[tr,Nr].indexOf(Q)>=0,q=z?"width":"height",k=pl(t,{placement:U,boundary:y,rootBoundary:v,altBoundary:b,padding:h}),Y=z?X?kr:rr:X?Nr:tr;N[q]>L[q]&&(Y=Us(Y));var ae=Us(Y),le=[];if(s&&le.push(k[Q]<=0),f&&le.push(k[Y]<=0,k[ae]<=0),le.every(function(ue){return ue})){P=U,$=!1;break}B.set(U,le)}if($)for(var ce=w?3:1,j=d(function(se){var fe=F.find(function(pe){var Fe=B.get(pe);if(Fe)return Fe.slice(0,se).every(function(De){return De})});if(fe)return P=fe,"break"},"_loop"),W=ce;W>0;W--){var ne=j(W);if(ne==="break")break}t.placement!==P&&(t.modifiersData[o]._skip=!0,t.placement=P,t.reset=!0)}}d(n3,"flip");var s$={name:"flip",enabled:!0,phase:"main",fn:n3,requiresIfExists:["offset"],data:{_skip:!1}};function a0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}d(a0,"getSideOffsets");function o0(e){return[tr,kr,Nr,rr].some(function(t){return e[t]>=0})}d(o0,"isAnySideFullyClipped");function a3(e){var t=e.state,n=e.name,o=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,c=pl(t,{elementContext:"reference"}),f=pl(t,{altBoundary:!0}),p=a0(c,o),h=a0(f,i,s),y=o0(p),v=o0(h);t.modifiersData[n]={referenceClippingOffsets:p,popperEscapeOffsets:h,isReferenceHidden:y,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":y,"data-popper-escaped":v})}d(a3,"hide");var u$={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:a3};function o3(e,t,n){var o=Zr(e),i=[rr,tr].indexOf(o)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,c=s[0],f=s[1];return c=c||0,f=(f||0)*i,[rr,kr].indexOf(o)>=0?{x:f,y:c}:{x:c,y:f}}d(o3,"distanceAndSkiddingToXY");function i3(e){var t=e.state,n=e.options,o=e.name,i=n.offset,s=i===void 0?[0,0]:i,c=kT.reduce(function(y,v){return y[v]=o3(v,t.rects,s),y},{}),f=c[t.placement],p=f.x,h=f.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=p,t.modifiersData.popperOffsets.y+=h),t.modifiersData[o]=c}d(i3,"offset");var c$={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:i3};function l3(e){var t=e.state,n=e.name;t.modifiersData[n]=rv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}d(l3,"popperOffsets");var s3={name:"popperOffsets",enabled:!0,phase:"read",fn:l3,data:{}};function u3(e){return e==="x"?"y":"x"}d(u3,"getAltAxis");function c3(e){var t=e.state,n=e.options,o=e.name,i=n.mainAxis,s=i===void 0?!0:i,c=n.altAxis,f=c===void 0?!1:c,p=n.boundary,h=n.rootBoundary,y=n.altBoundary,v=n.padding,b=n.tether,S=b===void 0?!0:b,w=n.tetherOffset,x=w===void 0?0:w,O=pl(t,{boundary:p,rootBoundary:h,padding:v,altBoundary:y}),A=Zr(t.placement),R=zo(t.placement),T=!R,F=_d(A),N=u3(F),L=t.modifiersData.popperOffsets,B=t.rects.reference,$=t.rects.popper,P=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,I=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),U=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Q={x:0,y:0};if(L){if(s){var X,z=F==="y"?tr:rr,q=F==="y"?Nr:kr,k=F==="y"?"height":"width",Y=L[F],ae=Y+O[z],le=Y-O[q],ce=S?-$[k]/2:0,j=R===fl?B[k]:$[k],W=R===fl?-$[k]:-B[k],ne=t.elements.arrow,ue=S&&ne?Dd(ne):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Jy(),fe=se[z],pe=se[q],Fe=Wi(0,B[k],ue[k]),De=T?B[k]/2-ce-Fe-fe-I.mainAxis:j-Fe-fe-I.mainAxis,bt=T?-B[k]/2+ce+Fe+pe+I.mainAxis:W+Fe+pe+I.mainAxis,Ke=t.elements.arrow&&Cl(t.elements.arrow),Re=Ke?F==="y"?Ke.clientTop||0:Ke.clientLeft||0:0,tt=(X=U?.[F])!=null?X:0,Le=Y+De-tt-Re,Be=Y+bt-tt,Ie=Wi(S?Pf(ae,Le):ae,Y,S?Ro(le,Be):le);L[F]=Ie,Q[F]=Ie-Y}if(f){var Nt,lt=F==="x"?tr:rr,Sr=F==="x"?Nr:kr,Ot=L[N],sr=N==="y"?"height":"width",an=Ot+O[lt],qt=Ot-O[Sr],st=[tr,rr].indexOf(A)!==-1,bn=(Nt=U?.[N])!=null?Nt:0,on=st?an:Ot-B[sr]-$[sr]-bn+I.altAxis,Dl=st?Ot+B[sr]+$[sr]-bn-I.altAxis:qt,Za=S&&st?HT(on,Ot,Dl):Wi(S?on:an,Ot,S?Dl:qt);L[N]=Za,Q[N]=Za-Ot}t.modifiersData[o]=Q}}d(c3,"preventOverflow");var f$={name:"preventOverflow",enabled:!0,phase:"main",fn:c3,requiresIfExists:["offset"]};function f3(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}d(f3,"getHTMLElementScroll");function d3(e){return e===ar(e)||!Er(e)?Od(e):f3(e)}d(d3,"getNodeScroll");function p3(e){var t=e.getBoundingClientRect(),n=dl(t.width)/e.offsetWidth||1,o=dl(t.height)/e.offsetHeight||1;return n!==1||o!==1}d(p3,"isElementScaled");function h3(e,t,n){n===void 0&&(n=!1);var o=Er(t),i=Er(t)&&p3(t),s=ta(t),c=ko(e,i,n),f={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(o||!o&&!n)&&((Qr(t)!=="body"||Rd(s))&&(f=d3(t)),Er(t)?(p=ko(t,!0),p.x+=t.clientLeft,p.y+=t.clientTop):s&&(p.x=Td(s))),{x:c.left+f.scrollLeft-p.x,y:c.top+f.scrollTop-p.y,width:c.width,height:c.height}}d(h3,"getCompositeRect");function g3(e){var t=new Map,n=new Set,o=[];e.forEach(function(s){t.set(s.name,s)});function i(s){n.add(s.name);var c=[].concat(s.requires||[],s.requiresIfExists||[]);c.forEach(function(f){if(!n.has(f)){var p=t.get(f);p&&i(p)}}),o.push(s)}return d(i,"sort"),e.forEach(function(s){n.has(s.name)||i(s)}),o}d(g3,"order");function m3(e){var t=g3(e);return r$.reduce(function(n,o){return n.concat(t.filter(function(i){return i.phase===o}))},[])}d(m3,"orderModifiers");function y3(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}d(y3,"debounce");function v3(e){var t=e.reduce(function(n,o){var i=n[o.name];return n[o.name]=i?Object.assign({},i,o,{options:Object.assign({},i.options,o.options),data:Object.assign({},i.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}d(v3,"mergeByName");var GA={placement:"bottom",modifiers:[],strategy:"absolute"};function i0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}d(i0,"areValidElements");function Fd(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,i=t.defaultOptions,s=i===void 0?GA:i;return d(function(f,p,h){h===void 0&&(h=s);var y={placement:"bottom",orderedModifiers:[],options:Object.assign({},GA,s),modifiersData:{},elements:{reference:f,popper:p},attributes:{},styles:{}},v=[],b=!1,S={state:y,setOptions:d(function(A){var R=typeof A=="function"?A(y.options):A;x(),y.options=Object.assign({},s,y.options,R),y.scrollParents={reference:Va(f)?Ki(f):f.contextElement?Ki(f.contextElement):[],popper:Ki(p)};var T=m3(v3([].concat(o,y.options.modifiers)));return y.orderedModifiers=T.filter(function(F){return F.enabled}),w(),S.update()},"setOptions"),forceUpdate:d(function(){if(!b){var A=y.elements,R=A.reference,T=A.popper;if(i0(R,T)){y.rects={reference:h3(R,Cl(T),y.options.strategy==="fixed"),popper:Dd(T)},y.reset=!1,y.placement=y.options.placement,y.orderedModifiers.forEach(function(I){return y.modifiersData[I.name]=Object.assign({},I.data)});for(var F=0;F<y.orderedModifiers.length;F++){if(y.reset===!0){y.reset=!1,F=-1;continue}var N=y.orderedModifiers[F],L=N.fn,B=N.options,$=B===void 0?{}:B,P=N.name;typeof L=="function"&&(y=L({state:y,options:$,name:P,instance:S})||y)}}}},"forceUpdate"),update:y3(function(){return new Promise(function(O){S.forceUpdate(),O(y)})}),destroy:d(function(){x(),b=!0},"destroy")};if(!i0(f,p))return S;S.setOptions(h).then(function(O){!b&&h.onFirstUpdate&&h.onFirstUpdate(O)});function w(){y.orderedModifiers.forEach(function(O){var A=O.name,R=O.options,T=R===void 0?{}:R,F=O.effect;if(typeof F=="function"){var N=F({state:y,name:A,instance:S,options:T}),L=d(function(){},"noopFn");v.push(N||L)}})}d(w,"runModifierEffects");function x(){v.forEach(function(O){return O()}),v=[]}return d(x,"cleanupModifierEffects"),S},"createPopper")}d(Fd,"popperGenerator");Fd();var d$=[KT,s3,YT,$T];Fd({defaultModifiers:d$});var p$=[KT,s3,YT,$T,c$,s$,f$,a$,u$],h$=Fd({defaultModifiers:p$}),g$=or(Hj()),m$=[],y$=d(function(t,n,o){o===void 0&&(o={});var i=C.useRef(null),s={onFirstUpdate:o.onFirstUpdate,placement:o.placement||"bottom",strategy:o.strategy||"absolute",modifiers:o.modifiers||m$},c=C.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),f=c[0],p=c[1],h=C.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:d(function(S){var w=S.state,x=Object.keys(w.elements);wd.flushSync(function(){p({styles:HA(x.map(function(O){return[O,w.styles[O]||{}]})),attributes:HA(x.map(function(O){return[O,w.attributes[O]]}))})})},"fn"),requires:["computeStyles"]}},[]),y=C.useMemo(function(){var b={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[h,{name:"applyStyles",enabled:!1}])};return(0,g$.default)(i.current,b)?i.current||b:(i.current=b,b)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,h]),v=C.useRef();return UA(function(){v.current&&v.current.setOptions(y)},[y]),UA(function(){if(!(t==null||n==null)){var b=o.createPopper||h$,S=b(t,n,y);return v.current=S,function(){S.destroy(),v.current=null}}},[t,n,o.createPopper]),{state:v.current?v.current.state:null,styles:f.styles,attributes:f.attributes,update:v.current?v.current.update:null,forceUpdate:v.current?v.current.forceUpdate:null}},"usePopper");or(Uj());function nv(e){var t=C.useRef(e);return t.current=e,C.useCallback(function(){return t.current},[])}d(nv,"useGetLatest");var v$=d(function(){},"noop");function b3(e){var t=e.initial,n=e.value,o=e.onChange,i=o===void 0?v$:o;if(t===void 0&&n===void 0)throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');var s=C.useState(t),c=s[0],f=s[1],p=nv(c),h=C.useCallback(function(v){var b=p(),S=typeof v=="function"?v(b):v;typeof S.persist=="function"&&S.persist(),f(S),typeof i=="function"&&i(S)},[p,i]),y=n!==void 0;return[y?n:c,y?i:h]}d(b3,"useControlledState");function av(e,t){return e===void 0&&(e=0),t===void 0&&(t=0),function(){return{width:0,height:0,top:t,right:e,bottom:t,left:e,x:0,y:0,toJSON:d(function(){return null},"toJSON")}}}d(av,"generateBoundingClientRect");var b$=["styles","attributes"],VA={getBoundingClientRect:av()},YA={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:"hover"};function E3(e,t){var n,o,i;e===void 0&&(e={}),t===void 0&&(t={});var s=Object.keys(YA).reduce(function(q,k){var Y;return Xe({},q,(Y={},Y[k]=q[k]!==void 0?q[k]:YA[k],Y))},e),c=C.useMemo(function(){return[{name:"offset",options:{offset:s.offset}}]},Array.isArray(s.offset)?s.offset:[]),f=Xe({},t,{placement:t.placement||s.placement,modifiers:t.modifiers||c}),p=C.useState(null),h=p[0],y=p[1],v=C.useState(null),b=v[0],S=v[1],w=b3({initial:s.defaultVisible,value:s.visible,onChange:s.onVisibleChange}),x=w[0],O=w[1],A=C.useRef();C.useEffect(function(){return function(){return clearTimeout(A.current)}},[]);var R=y$(s.followCursor?VA:h,b,f),T=R.styles,F=R.attributes,N=Wy(R,b$),L=N.update,B=nv({visible:x,triggerRef:h,tooltipRef:b,finalConfig:s}),$=C.useCallback(function(q){return Array.isArray(s.trigger)?s.trigger.includes(q):s.trigger===q},Array.isArray(s.trigger)?s.trigger:[s.trigger]),P=C.useCallback(function(){clearTimeout(A.current),A.current=window.setTimeout(function(){return O(!1)},s.delayHide)},[s.delayHide,O]),I=C.useCallback(function(){clearTimeout(A.current),A.current=window.setTimeout(function(){return O(!0)},s.delayShow)},[s.delayShow,O]),U=C.useCallback(function(){B().visible?P():I()},[B,P,I]);C.useEffect(function(){if(B().finalConfig.closeOnOutsideClick){var q=d(function(Y){var ae,le=B(),ce=le.tooltipRef,j=le.triggerRef,W=(Y.composedPath==null||(ae=Y.composedPath())==null?void 0:ae[0])||Y.target;W instanceof Node&&ce!=null&&j!=null&&!ce.contains(W)&&!j.contains(W)&&P()},"handleClickOutside");return document.addEventListener("mousedown",q),function(){return document.removeEventListener("mousedown",q)}}},[B,P]),C.useEffect(function(){if(!(h==null||!$("click")))return h.addEventListener("click",U),function(){return h.removeEventListener("click",U)}},[h,$,U]),C.useEffect(function(){if(!(h==null||!$("double-click")))return h.addEventListener("dblclick",U),function(){return h.removeEventListener("dblclick",U)}},[h,$,U]),C.useEffect(function(){if(!(h==null||!$("right-click"))){var q=d(function(Y){Y.preventDefault(),U()},"preventDefaultAndToggle");return h.addEventListener("contextmenu",q),function(){return h.removeEventListener("contextmenu",q)}}},[h,$,U]),C.useEffect(function(){if(!(h==null||!$("focus")))return h.addEventListener("focus",I),h.addEventListener("blur",P),function(){h.removeEventListener("focus",I),h.removeEventListener("blur",P)}},[h,$,I,P]),C.useEffect(function(){if(!(h==null||!$("hover")))return h.addEventListener("mouseenter",I),h.addEventListener("mouseleave",P),function(){h.removeEventListener("mouseenter",I),h.removeEventListener("mouseleave",P)}},[h,$,I,P]),C.useEffect(function(){if(!(b==null||!$("hover")||!B().finalConfig.interactive))return b.addEventListener("mouseenter",I),b.addEventListener("mouseleave",P),function(){b.removeEventListener("mouseenter",I),b.removeEventListener("mouseleave",P)}},[b,$,I,P,B]);var Q=N==null||(n=N.state)==null||(o=n.modifiersData)==null||(i=o.hide)==null?void 0:i.isReferenceHidden;C.useEffect(function(){s.closeOnTriggerHidden&&Q&&P()},[s.closeOnTriggerHidden,P,Q]),C.useEffect(function(){if(!s.followCursor||h==null)return;function q(k){var Y=k.clientX,ae=k.clientY;VA.getBoundingClientRect=av(Y,ae),L?.()}return d(q,"setMousePosition"),h.addEventListener("mousemove",q),function(){return h.removeEventListener("mousemove",q)}},[s.followCursor,h,L]),C.useEffect(function(){if(!(b==null||L==null||s.mutationObserverOptions==null)){var q=new MutationObserver(L);return q.observe(b,s.mutationObserverOptions),function(){return q.disconnect()}}},[s.mutationObserverOptions,b,L]);var X=d(function(k){return k===void 0&&(k={}),Xe({},k,{style:Xe({},k.style,T.popper)},F.popper,{"data-popper-interactive":s.interactive})},"getTooltipProps"),z=d(function(k){return k===void 0&&(k={}),Xe({},k,F.arrow,{style:Xe({},k.style,T.arrow),"data-popper-arrow":!0})},"getArrowProps");return Xe({getArrowProps:z,getTooltipProps:X,setTooltipRef:S,setTriggerRef:y,tooltipRef:b,triggerRef:h,visible:x},N)}d(E3,"usePopperTooltip");var E$=or(ou(),1),Br=(0,E$.default)(1e3)((e,t,n,o=0)=>t.split("-")[0]===e?n:o),Fa=8,S$=G.div({position:"absolute",borderStyle:"solid"},({placement:e})=>{let t=0,n=0;switch(!0){case(e.startsWith("left")||e.startsWith("right")):{n=8;break}case(e.startsWith("top")||e.startsWith("bottom")):{t=8;break}}return{transform:`translate3d(${t}px, ${n}px, 0px)`}},({theme:e,color:t,placement:n})=>({bottom:`${Br("top",n,`${Fa*-1}px`,"auto")}`,top:`${Br("bottom",n,`${Fa*-1}px`,"auto")}`,right:`${Br("left",n,`${Fa*-1}px`,"auto")}`,left:`${Br("right",n,`${Fa*-1}px`,"auto")}`,borderBottomWidth:`${Br("top",n,"0",Fa)}px`,borderTopWidth:`${Br("bottom",n,"0",Fa)}px`,borderRightWidth:`${Br("left",n,"0",Fa)}px`,borderLeftWidth:`${Br("right",n,"0",Fa)}px`,borderTopColor:Br("top",n,e.color[t]||t||e.base==="light"?Vi(e.background.app):e.background.app,"transparent"),borderBottomColor:Br("bottom",n,e.color[t]||t||e.base==="light"?Vi(e.background.app):e.background.app,"transparent"),borderLeftColor:Br("left",n,e.color[t]||t||e.base==="light"?Vi(e.background.app):e.background.app,"transparent"),borderRightColor:Br("right",n,e.color[t]||t||e.base==="light"?Vi(e.background.app):e.background.app,"transparent")})),A$=G.div(({hidden:e})=>({display:e?"none":"inline-block",zIndex:2147483647,colorScheme:"light dark"}),({theme:e,color:t,hasChrome:n})=>n?{background:t&&e.color[t]||t||e.base==="light"?Vi(e.background.app):e.background.app,filter:`
|
|
683
|
-
drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
|
|
684
|
-
drop-shadow(0 1px 3px rgba(0,0,0,0.1))
|
|
685
|
-
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{}),S3=E.forwardRef(({placement:e="top",hasChrome:t=!0,children:n,arrowProps:o={},tooltipRef:i,color:s,withArrows:c,...f},p)=>E.createElement(A$,{"data-testid":"tooltip",hasChrome:t,ref:p,...f,color:s},t&&c&&E.createElement(S$,{placement:e,...o,color:s}),n));S3.displayName="Tooltip";var{document:qs}=qj,C$=G.div`
|
|
686
|
-
display: inline-block;
|
|
687
|
-
cursor: ${e=>e.trigger==="hover"||e.trigger?.includes("hover")?"default":"pointer"};
|
|
688
|
-
`,w$=G.g`
|
|
689
|
-
cursor: ${e=>e.trigger==="hover"||e.trigger?.includes("hover")?"default":"pointer"};
|
|
690
|
-
`,A3=d(({svg:e=!1,trigger:t="click",closeOnOutsideClick:n=!1,placement:o="top",modifiers:i=[{name:"preventOverflow",options:{padding:8}},{name:"offset",options:{offset:[8,8]}},{name:"arrow",options:{padding:8}}],hasChrome:s=!0,defaultVisible:c=!1,withArrows:f,offset:p,tooltip:h,children:y,closeOnTriggerHidden:v,mutationObserverOptions:b,delayHide:S=t==="hover"?200:0,visible:w,interactive:x,delayShow:O=t==="hover"?400:0,strategy:A,followCursor:R,onVisibleChange:T,portalContainer:F,...N})=>{const L=e?w$:C$,{getArrowProps:B,getTooltipProps:$,setTooltipRef:P,setTriggerRef:I,visible:U,state:Q}=E3({trigger:t,placement:o,defaultVisible:c,delayHide:S,interactive:x,closeOnOutsideClick:n,closeOnTriggerHidden:v,onVisibleChange:T,delayShow:O,followCursor:R,mutationObserverOptions:b,visible:w,offset:p},{modifiers:i,strategy:A}),X=(typeof F=="string"?qs.querySelector(F):F)||qs.body,z=U?E.createElement(S3,{placement:Q?.placement,ref:P,hasChrome:s,arrowProps:B(),withArrows:f,...$()},typeof h=="function"?h({onHide:d(()=>T(!1),"onHide")}):h):null;return E.createElement(E.Fragment,null,E.createElement(L,{trigger:t,ref:I,...N},y),U&&aT.createPortal(z,X))},"WithTooltipPure"),l0=d(({startOpen:e=!1,onVisibleChange:t,...n})=>{const[o,i]=C.useState(e),s=C.useCallback(c=>{t&&t(c)===!1||i(c)},[t]);return C.useEffect(()=>{const c=d(()=>s(!1),"hide"),f=d(y=>{y.key==="Escape"&&c()},"handleKeyDown");qs.addEventListener("keydown",f,!1);const p=Array.from(qs.getElementsByTagName("iframe")),h=[];return p.forEach(y=>{const v=d(()=>{try{y.contentWindow.document&&(y.contentWindow.document.addEventListener("click",c),h.push(()=>{try{y.contentWindow.document.removeEventListener("click",c)}catch{}}))}catch{}},"bind");v(),y.addEventListener("load",v),h.push(()=>{y.removeEventListener("load",v)})}),()=>{qs.removeEventListener("keydown",f),h.forEach(y=>{y()})}}),E.createElement(A3,{...n,visible:o,onVisibleChange:s})},"WithToolTipState"),x$=C.forwardRef(({color:e="currentColor",size:t=14,...n},o)=>C.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,...n},C.createElement("path",{d:"M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",fill:e}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:e}))),D$=C.forwardRef(({color:e="currentColor",size:t=14,...n},o)=>C.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,...n},C.createElement("path",{d:"M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",fill:e}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",fill:e}))),_$=C.forwardRef(({color:e="currentColor",size:t=14,...n},o)=>C.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,...n},C.createElement("path",{d:"M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",fill:e}))),O$=C.forwardRef(({color:e="currentColor",size:t=14,...n},o)=>C.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,...n},C.createElement("path",{d:"M7 9.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z",fill:e}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7l-.21.293C13.669 7.465 10.739 11.5 7 11.5S.332 7.465.21 7.293L0 7l.21-.293C.331 6.536 3.261 2.5 7 2.5s6.668 4.036 6.79 4.207L14 7zM2.896 5.302A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5c1.518 0 2.958-.83 4.104-1.802A12.72 12.72 0 0012.755 7c-.297-.37-.875-1.04-1.65-1.698C9.957 4.33 8.517 3.5 7 3.5c-1.519 0-2.958.83-4.104 1.802z",fill:e}))),T$=C.forwardRef(({color:e="currentColor",size:t=14,...n},o)=>C.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,...n},C.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11zM11.104 8.698c-.177.15-.362.298-.553.439l.714.714a13.25 13.25 0 002.526-2.558L14 7l-.21-.293C13.669 6.536 10.739 2.5 7 2.5c-.89 0-1.735.229-2.506.58l.764.763A4.859 4.859 0 017 3.5c1.518 0 2.958.83 4.104 1.802A12.724 12.724 0 0112.755 7a12.72 12.72 0 01-1.65 1.698zM.21 6.707c.069-.096 1.03-1.42 2.525-2.558l.714.714c-.191.141-.376.288-.553.439A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5a4.86 4.86 0 001.742-.344l.764.764c-.772.351-1.616.58-2.506.58C3.262 11.5.332 7.465.21 7.293L0 7l.21-.293z",fill:e}),C.createElement("path",{d:"M4.5 7c0-.322.061-.63.172-.914l3.242 3.242A2.5 2.5 0 014.5 7zM9.328 7.914L6.086 4.672a2.5 2.5 0 013.241 3.241z",fill:e}))),R$=C.forwardRef(({color:e="currentColor",size:t=14,...n},o)=>C.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,...n},C.createElement("path",{d:"M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z",fill:e}))),s0=C.forwardRef(({color:e="currentColor",size:t=14,...n},o)=>C.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,...n},C.createElement("path",{d:"M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",fill:e}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",fill:e}))),DX=C.forwardRef(({color:e="currentColor",size:t=14,...n},o)=>C.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,...n},C.createElement("path",{d:"M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z",fill:e}))),F$=C.forwardRef(({color:e="currentColor",size:t=14,...n},o)=>C.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,...n},C.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708L6.293 7l-5.147 5.146a.5.5 0 00.708.708L7 7.707l5.146 5.147a.5.5 0 00.708-.708L7.707 7l5.147-5.146a.5.5 0 00-.708-.708L7 6.293 1.854 1.146z",fill:e}))),B$=C.forwardRef(({color:e="currentColor",size:t=14,...n},o)=>C.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,...n},C.createElement("path",{d:"M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",fill:e}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),M$=C.forwardRef(({color:e="currentColor",size:t=14,...n},o)=>C.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,...n},C.createElement("path",{d:"M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:e}),C.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),L$=C.forwardRef(({color:e="currentColor",size:t=14,...n},o)=>C.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,...n},C.createElement("path",{d:"M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z",fill:e}),C.createElement("path",{d:"M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z",fill:e}))),N$=C.forwardRef(({color:e="currentColor",size:t=14,...n},o)=>C.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,...n},C.createElement("path",{d:"M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z",fill:e}),C.createElement("path",{d:"M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z",fill:e}))),k$=C.forwardRef(({color:e="currentColor",size:t=14,...n},o)=>C.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,...n},C.createElement("path",{d:"M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",fill:e}))),C3=C.forwardRef(({color:e="currentColor",size:t=14,...n},o)=>C.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,...n},C.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:e}))),z$=C.forwardRef(({color:e="currentColor",size:t=14,...n},o)=>C.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,...n},C.createElement("path",{d:"M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z",fill:e}))),w3=C.forwardRef(({color:e="currentColor",size:t=14,...n},o)=>C.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,...n},C.createElement("path",{d:"M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z",fill:e}))),j$=C.forwardRef(({color:e="currentColor",size:t=14,...n},o)=>C.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:o,...n},C.createElement("path",{d:"M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",fill:e}))),nt=d(({...e},t)=>{const n=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...n].filter(Boolean).join(" "),e},"nameSpaceClassNames"),wl=d(({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),"headerCommon"),ra=d(({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?br(.1,e.color.defaultText):br(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border}),"codeCommon"),it=d(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),"withReset"),Ho={margin:"16px 0"},ov=G.div(it),$$=d(({href:e="",...t})=>{const o=/^\//.test(e)?`./?path=${e}`:e,s=/^#.*/.test(e)?"_self":"_top";return E.createElement("a",{href:o,target:s,...t})},"Link"),x3=G($$)(it,({theme:e})=>({fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}})),D3=G.blockquote(it,Ho,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),Fo=[],hl=null,P$=C.lazy(async()=>{const{SyntaxHighlighter:e}=await Ua(async()=>{const{SyntaxHighlighter:t}=await import("./syntaxhighlighter-CAVLW7PM-DoI0ixeu.js");return{SyntaxHighlighter:t}},__vite__mapDeps([0,1,2,3,4]),import.meta.url);return Fo.length>0&&(Fo.forEach(t=>{e.registerLanguage(...t)}),Fo=[]),hl===null&&(hl=e),{default:d(t=>E.createElement(e,{...t}),"default")}}),I$=C.lazy(async()=>{const[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Ua(()=>import("./syntaxhighlighter-CAVLW7PM-DoI0ixeu.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),Ua(()=>import("./formatter-OMEEQ6HG-DFa_WTfb.js"),__vite__mapDeps([5,1,2,3,4]),import.meta.url)]);return Fo.length>0&&(Fo.forEach(n=>{e.registerLanguage(...n)}),Fo=[]),hl===null&&(hl=e),{default:d(n=>E.createElement(e,{...n,formatter:t}),"default")}}),yu=d(e=>E.createElement(C.Suspense,{fallback:E.createElement("div",null)},e.format!==!1?E.createElement(I$,{...e}):E.createElement(P$,{...e})),"SyntaxHighlighter");yu.registerLanguage=(...e)=>{if(hl!==null){hl.registerLanguage(...e);return}Fo.push(e)};var H$=d(e=>typeof e=="string","isReactChildString"),U$=/[\n\r]/g,q$=G.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),ra),G$=G(yu)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),iv=d(({className:e,children:t,...n})=>{const o=(e||"").match(/lang-(\S+)/),i=C.Children.toArray(t);return i.filter(H$).some(c=>c.match(U$))?E.createElement(G$,{bordered:!0,copyable:!0,language:o?.[1]??"text",format:!1,...n},t):E.createElement(q$,{...n,className:e},i)},"Code"),_3=G.dl(it,Ho,{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}}),O3=G.div(it),T3=G.h1(it,wl,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),lv=G.h2(it,wl,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),sv=G.h3(it,wl,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),R3=G.h4(it,wl,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),F3=G.h5(it,wl,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),B3=G.h6(it,wl,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),M3=G.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),L3=G.img({maxWidth:"100%"}),N3=G.li(it,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":ra({theme:e})})),V$={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},k3=G.ol(it,Ho,V$,{listStyle:"decimal"}),z3=G.p(it,Ho,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":ra({theme:e})})),j3=G.pre(it,Ho,({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),$3=G.span(it,({theme:e})=>({"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),P3=G.title(ra),I3=G.table(it,Ho,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),Y$={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},H3=G.ul(it,Ho,Y$,{listStyle:"disc"}),U3={h1:d(e=>E.createElement(T3,{...nt(e,"h1")}),"h1"),h2:d(e=>E.createElement(lv,{...nt(e,"h2")}),"h2"),h3:d(e=>E.createElement(sv,{...nt(e,"h3")}),"h3"),h4:d(e=>E.createElement(R3,{...nt(e,"h4")}),"h4"),h5:d(e=>E.createElement(F3,{...nt(e,"h5")}),"h5"),h6:d(e=>E.createElement(B3,{...nt(e,"h6")}),"h6"),pre:d(e=>E.createElement(j3,{...nt(e,"pre")}),"pre"),a:d(e=>E.createElement(x3,{...nt(e,"a")}),"a"),hr:d(e=>E.createElement(M3,{...nt(e,"hr")}),"hr"),dl:d(e=>E.createElement(_3,{...nt(e,"dl")}),"dl"),blockquote:d(e=>E.createElement(D3,{...nt(e,"blockquote")}),"blockquote"),table:d(e=>E.createElement(I3,{...nt(e,"table")}),"table"),img:d(e=>E.createElement(L3,{...nt(e,"img")}),"img"),div:d(e=>E.createElement(O3,{...nt(e,"div")}),"div"),span:d(e=>E.createElement($3,{...nt(e,"span")}),"span"),li:d(e=>E.createElement(N3,{...nt(e,"li")}),"li"),ul:d(e=>E.createElement(H3,{...nt(e,"ul")}),"ul"),ol:d(e=>E.createElement(k3,{...nt(e,"ol")}),"ol"),p:d(e=>E.createElement(z3,{...nt(e,"p")}),"p"),code:d(e=>E.createElement(iv,{...nt(e,"code")}),"code"),tt:d(e=>E.createElement(P3,{...nt(e,"tt")}),"tt"),resetwrapper:d(e=>E.createElement(ov,{...nt(e,"resetwrapper")}),"resetwrapper")};G.div(({theme:e,compact:t})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"12px",minWidth:20,borderRadius:20,padding:t?"4px 7px":"4px 10px"}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.color.critical,background:e.background.critical};case"negative":return{color:e.color.negativeText,background:e.background.negative,boxShadow:e.base==="light"?`inset 0 0 0 1px ${br(.9,e.color.negativeText)}`:"none"};case"warning":return{color:e.color.warningText,background:e.background.warning,boxShadow:e.base==="light"?`inset 0 0 0 1px ${br(.9,e.color.warningText)}`:"none"};case"neutral":return{color:e.textMutedColor,background:e.base==="light"?e.background.app:e.barBg,boxShadow:`inset 0 0 0 1px ${br(.8,e.textMutedColor)}`};case"positive":return{color:e.color.positiveText,background:e.background.positive,boxShadow:e.base==="light"?`inset 0 0 0 1px ${br(.9,e.color.positiveText)}`:"none"};case"active":return{color:e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${br(.9,e.color.secondary)}`};default:return{}}});var W$=0,K$=d(e=>e.button===W$&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,"isPlainLeftClick"),X$=d((e,t)=>{K$(e)&&(e.preventDefault(),t(e))},"cancelled"),Z$=G.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),J$=G.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:xo(.07,e.color.secondary),"svg path:not([fill])":{fill:xo(.07,e.color.secondary)}},"&:active":{color:xo(.1,e.color.secondary),"svg path:not([fill])":{fill:xo(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:n})=>{let o;return t&&(o=[e.textMutedColor,e.color.dark,e.color.darker]),n&&(o=[e.color.dark,e.color.darkest,e.textMutedColor]),o?{color:o[0],"svg path:not([fill])":{fill:o[0]},"&:hover":{color:o[1],"svg path:not([fill])":{fill:o[1]}},"&:active":{color:o[2],"svg path:not([fill])":{fill:o[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),tu=d(({cancel:e=!0,children:t,onClick:n=void 0,withArrow:o=!1,containsIcon:i=!1,className:s=void 0,style:c=void 0,...f})=>E.createElement(J$,{...f,onClick:n&&e?p=>X$(p,n):n,className:s},E.createElement(Z$,{withArrow:o,containsIcon:i},t,o&&E.createElement(C3,null))),"Link");G.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"?e.color.darkest:e.color.dark}}));var q3={};Wf(q3,{Close:()=>tR,Content:()=>J5,Description:()=>eR,Dialog:()=>pv,DialogClose:()=>Av,DialogContent:()=>vv,DialogDescription:()=>Sv,DialogOverlay:()=>yv,DialogPortal:()=>mv,DialogTitle:()=>Ev,DialogTrigger:()=>hv,Overlay:()=>Z5,Portal:()=>X5,Root:()=>K5,Title:()=>Q5,Trigger:()=>ZP,WarningProvider:()=>YP,createDialogScope:()=>PP});function Xi(e,t,{checkForDefaultPrevented:n=!0}={}){return d(function(i){if(e?.(i),n===!1||!i.defaultPrevented)return t?.(i)},"handleEvent")}d(Xi,"composeEventHandlers");function u0(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}d(u0,"setRef");function uv(...e){return t=>{let n=!1;const o=e.map(i=>{const s=u0(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<o.length;i++){const s=o[i];typeof s=="function"?s():u0(e[i],null)}}}}d(uv,"composeRefs");function Ka(...e){return C.useCallback(uv(...e),e)}d(Ka,"useComposedRefs");function G3(e,t){const n=C.createContext(t),o=d(s=>{const{children:c,...f}=s,p=C.useMemo(()=>f,Object.values(f));return de.jsx(n.Provider,{value:p,children:c})},"Provider");o.displayName=e+"Provider";function i(s){const c=C.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return d(i,"useContext2"),[o,i]}d(G3,"createContext2");function V3(e,t=[]){let n=[];function o(s,c){const f=C.createContext(c),p=n.length;n=[...n,c];const h=d(v=>{const{scope:b,children:S,...w}=v,x=b?.[e]?.[p]||f,O=C.useMemo(()=>w,Object.values(w));return de.jsx(x.Provider,{value:O,children:S})},"Provider");h.displayName=s+"Provider";function y(v,b){const S=b?.[e]?.[p]||f,w=C.useContext(S);if(w)return w;if(c!==void 0)return c;throw new Error(`\`${v}\` must be used within \`${s}\``)}return d(y,"useContext2"),[h,y]}d(o,"createContext3");const i=d(()=>{const s=n.map(c=>C.createContext(c));return d(function(f){const p=f?.[e]||s;return C.useMemo(()=>({[`__scope${e}`]:{...f,[e]:p}}),[f,p])},"useScope")},"createScope");return i.scopeName=e,[o,Y3(i,...t)]}d(V3,"createContextScope");function Y3(...e){const t=e[0];if(e.length===1)return t;const n=d(()=>{const o=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return d(function(s){const c=o.reduce((f,{useScope:p,scopeName:h})=>{const v=p(s)[`__scope${h}`];return{...f,...v}},{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}d(Y3,"composeContextScopes");var ru=globalThis?.document?C.useLayoutEffect:()=>{},Q$=Z_[" useId ".trim().toString()]||(()=>{}),eP=0;function sf(e){const[t,n]=C.useState(Q$());return ru(()=>{e||n(o=>o??String(eP++))},[e]),e||(t?`radix-${t}`:"")}d(sf,"useId");var tP=Z_[" useInsertionEffect ".trim().toString()]||ru;function W3({prop:e,defaultProp:t,onChange:n=d(()=>{},"onChange"),caller:o}){const[i,s,c]=K3({defaultProp:t,onChange:n}),f=e!==void 0,p=f?e:i;{const y=C.useRef(e!==void 0);C.useEffect(()=>{const v=y.current;v!==f&&console.warn(`${o} is changing from ${v?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=f},[f,o])}const h=C.useCallback(y=>{if(f){const v=X3(y)?y(e):y;v!==e&&c.current?.(v)}else s(y)},[f,e,s,c]);return[p,h]}d(W3,"useControllableState");function K3({defaultProp:e,onChange:t}){const[n,o]=C.useState(e),i=C.useRef(n),s=C.useRef(t);return tP(()=>{s.current=t},[t]),C.useEffect(()=>{i.current!==n&&(s.current?.(n),i.current=n)},[n,i]),[n,o,s]}d(K3,"useUncontrolledState");function X3(e){return typeof e=="function"}d(X3,"isFunction");function uf(e,t,{checkForDefaultPrevented:n=!0}={}){return d(function(i){if(e?.(i),n===!1||!i.defaultPrevented)return t?.(i)},"handleEvent")}d(uf,"composeEventHandlers");function Bd(e){const t=Z3(e),n=C.forwardRef((o,i)=>{const{children:s,...c}=o,f=C.Children.toArray(s),p=f.find(e5);if(p){const h=p.props.children,y=f.map(v=>v===p?C.Children.count(h)>1?C.Children.only(null):C.isValidElement(h)?h.props.children:null:v);return de.jsx(t,{...c,ref:i,children:C.isValidElement(h)?C.cloneElement(h,void 0,y):null})}return de.jsx(t,{...c,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}d(Bd,"createSlot");var rP=Bd("Slot");function Z3(e){const t=C.forwardRef((n,o)=>{const{children:i,...s}=n;if(C.isValidElement(i)){const c=r5(i),f=t5(s,i.props);return i.type!==C.Fragment&&(f.ref=o?uv(o,c):c),C.cloneElement(i,f)}return C.Children.count(i)>1?C.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}d(Z3,"createSlotClone");var J3=Symbol("radix.slottable");function Q3(e){const t=d(({children:n})=>de.jsx(de.Fragment,{children:n}),"Slottable2");return t.displayName=`${e}.Slottable`,t.__radixId=J3,t}d(Q3,"createSlottable");Q3("Slottable");function e5(e){return C.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===J3}d(e5,"isSlottable");function t5(e,t){const n={...t};for(const o in t){const i=e[o],s=t[o];/^on[A-Z]/.test(o)?i&&s?n[o]=(...f)=>{const p=s(...f);return i(...f),p}:i&&(n[o]=i):o==="style"?n[o]={...i,...s}:o==="className"&&(n[o]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}d(t5,"mergeProps");function r5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}d(r5,"getElementRef");var nP=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],na=nP.reduce((e,t)=>{const n=Bd(`Primitive.${t}`),o=C.forwardRef((i,s)=>{const{asChild:c,...f}=i,p=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),de.jsx(p,{...f,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function n5(e,t){e&&wd.flushSync(()=>e.dispatchEvent(t))}d(n5,"dispatchDiscreteCustomEvent");function gl(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...n)=>t.current?.(...n),[])}d(gl,"useCallbackRef");function a5(e,t=globalThis?.document){const n=gl(e);C.useEffect(()=>{const o=d(i=>{i.key==="Escape"&&n(i)},"handleKeyDown");return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}d(a5,"useEscapeKeydown");var aP="DismissableLayer",c0="dismissableLayer.update",oP="dismissableLayer.pointerDownOutside",iP="dismissableLayer.focusOutside",WA,o5=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),i5=C.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:c,onDismiss:f,...p}=e,h=C.useContext(o5),[y,v]=C.useState(null),b=y?.ownerDocument??globalThis?.document,[,S]=C.useState({}),w=Ka(t,B=>v(B)),x=Array.from(h.layers),[O]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),A=x.indexOf(O),R=y?x.indexOf(y):-1,T=h.layersWithOutsidePointerEventsDisabled.size>0,F=R>=A,N=l5(B=>{const $=B.target,P=[...h.branches].some(I=>I.contains($));!F||P||(i?.(B),c?.(B),B.defaultPrevented||f?.())},b),L=s5(B=>{const $=B.target;[...h.branches].some(I=>I.contains($))||(s?.(B),c?.(B),B.defaultPrevented||f?.())},b);return a5(B=>{R===h.layers.size-1&&(o?.(B),!B.defaultPrevented&&f&&(B.preventDefault(),f()))},b),C.useEffect(()=>{if(y)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(WA=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(y)),h.layers.add(y),f0(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=WA)}},[y,b,n,h]),C.useEffect(()=>()=>{y&&(h.layers.delete(y),h.layersWithOutsidePointerEventsDisabled.delete(y),f0())},[y,h]),C.useEffect(()=>{const B=d(()=>S({}),"handleUpdate");return document.addEventListener(c0,B),()=>document.removeEventListener(c0,B)},[]),de.jsx(na.div,{...p,ref:w,style:{pointerEvents:T?F?"auto":"none":void 0,...e.style},onFocusCapture:uf(e.onFocusCapture,L.onFocusCapture),onBlurCapture:uf(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:uf(e.onPointerDownCapture,N.onPointerDownCapture)})});i5.displayName=aP;var lP="DismissableLayerBranch",sP=C.forwardRef((e,t)=>{const n=C.useContext(o5),o=C.useRef(null),i=Ka(t,o);return C.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),de.jsx(na.div,{...e,ref:i})});sP.displayName=lP;function l5(e,t=globalThis?.document){const n=gl(e),o=C.useRef(!1),i=C.useRef(()=>{});return C.useEffect(()=>{const s=d(f=>{if(f.target&&!o.current){let p=d(function(){cv(oP,n,h,{discrete:!0})},"handleAndDispatchPointerDownOutsideEvent2");const h={originalEvent:f};f.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=p,t.addEventListener("click",i.current,{once:!0})):p()}else t.removeEventListener("click",i.current);o.current=!1},"handlePointerDown"),c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:d(()=>o.current=!0,"onPointerDownCapture")}}d(l5,"usePointerDownOutside");function s5(e,t=globalThis?.document){const n=gl(e),o=C.useRef(!1);return C.useEffect(()=>{const i=d(s=>{s.target&&!o.current&&cv(iP,n,{originalEvent:s},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:d(()=>o.current=!0,"onFocusCapture"),onBlurCapture:d(()=>o.current=!1,"onBlurCapture")}}d(s5,"useFocusOutside");function f0(){const e=new CustomEvent(c0);document.dispatchEvent(e)}d(f0,"dispatchUpdate");function cv(e,t,n,{discrete:o}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?n5(i,s):i.dispatchEvent(s)}d(cv,"handleAndDispatchCustomEvent");var Ng="focusScope.autoFocusOnMount",kg="focusScope.autoFocusOnUnmount",KA={bubbles:!1,cancelable:!0},uP="FocusScope",u5=C.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...c}=e,[f,p]=C.useState(null),h=gl(i),y=gl(s),v=C.useRef(null),b=Ka(t,x=>p(x)),S=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(o){let x=d(function(T){if(S.paused||!f)return;const F=T.target;f.contains(F)?v.current=F:qn(v.current,{select:!0})},"handleFocusIn2"),O=d(function(T){if(S.paused||!f)return;const F=T.relatedTarget;F!==null&&(f.contains(F)||qn(v.current,{select:!0}))},"handleFocusOut2"),A=d(function(T){if(document.activeElement===document.body)for(const N of T)N.removedNodes.length>0&&qn(f)},"handleMutations2");document.addEventListener("focusin",x),document.addEventListener("focusout",O);const R=new MutationObserver(A);return f&&R.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",O),R.disconnect()}}},[o,f,S.paused]),C.useEffect(()=>{if(f){XA.add(S);const x=document.activeElement;if(!f.contains(x)){const A=new CustomEvent(Ng,KA);f.addEventListener(Ng,h),f.dispatchEvent(A),A.defaultPrevented||(c5(g5(fv(f)),{select:!0}),document.activeElement===x&&qn(f))}return()=>{f.removeEventListener(Ng,h),setTimeout(()=>{const A=new CustomEvent(kg,KA);f.addEventListener(kg,y),f.dispatchEvent(A),A.defaultPrevented||qn(x??document.body,{select:!0}),f.removeEventListener(kg,y),XA.remove(S)},0)}}},[f,h,y,S]);const w=C.useCallback(x=>{if(!n&&!o||S.paused)return;const O=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,A=document.activeElement;if(O&&A){const R=x.currentTarget,[T,F]=f5(R);T&&F?!x.shiftKey&&A===F?(x.preventDefault(),n&&qn(T,{select:!0})):x.shiftKey&&A===T&&(x.preventDefault(),n&&qn(F,{select:!0})):A===R&&x.preventDefault()}},[n,o,S.paused]);return de.jsx(na.div,{tabIndex:-1,...c,ref:b,onKeyDown:w})});u5.displayName=uP;function c5(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(qn(o,{select:t}),document.activeElement!==n)return}d(c5,"focusFirst");function f5(e){const t=fv(e),n=d0(t,e),o=d0(t.reverse(),e);return[n,o]}d(f5,"getTabbableEdges");function fv(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:d(o=>{const i=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||i?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}d(fv,"getTabbableCandidates");function d0(e,t){for(const n of e)if(!d5(n,{upTo:t}))return n}d(d0,"findVisible");function d5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}d(d5,"isHidden");function p5(e){return e instanceof HTMLInputElement&&"select"in e}d(p5,"isSelectableInput");function qn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&p5(e)&&t&&e.select()}}d(qn,"focus");var XA=h5();function h5(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=p0(e,t),e.unshift(t)},remove(t){e=p0(e,t),e[0]?.resume()}}}d(h5,"createFocusScopesStack");function p0(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}d(p0,"arrayRemove");function g5(e){return e.filter(t=>t.tagName!=="A")}d(g5,"removeLinks");var cP="Portal",m5=C.forwardRef((e,t)=>{const{container:n,...o}=e,[i,s]=C.useState(!1);ru(()=>s(!0),[]);const c=n||i&&globalThis?.document?.body;return c?aT.createPortal(de.jsx(na.div,{...o,ref:t}),c):null});m5.displayName=cP;function y5(e,t){return C.useReducer((n,o)=>t[n][o]??n,e)}d(y5,"useStateMachine");var Md=d(e=>{const{present:t,children:n}=e,o=v5(t),i=typeof n=="function"?n({present:o.isPresent}):C.Children.only(n),s=Ka(o.ref,b5(i));return typeof n=="function"||o.isPresent?C.cloneElement(i,{ref:s}):null},"Presence");Md.displayName="Presence";function v5(e){const[t,n]=C.useState(),o=C.useRef(null),i=C.useRef(e),s=C.useRef("none"),c=e?"mounted":"unmounted",[f,p]=y5(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const h=Bs(o.current);s.current=f==="mounted"?h:"none"},[f]),ru(()=>{const h=o.current,y=i.current;if(y!==e){const b=s.current,S=Bs(h);e?p("MOUNT"):S==="none"||h?.display==="none"?p("UNMOUNT"):p(y&&b!==S?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,p]),ru(()=>{if(t){let h;const y=t.ownerDocument.defaultView??window,v=d(S=>{const x=Bs(o.current).includes(CSS.escape(S.animationName));if(S.target===t&&x&&(p("ANIMATION_END"),!i.current)){const O=t.style.animationFillMode;t.style.animationFillMode="forwards",h=y.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=O)})}},"handleAnimationEnd"),b=d(S=>{S.target===t&&(s.current=Bs(o.current))},"handleAnimationStart");return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",v),t.addEventListener("animationend",v),()=>{y.clearTimeout(h),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",v),t.removeEventListener("animationend",v)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:C.useCallback(h=>{o.current=h?getComputedStyle(h):null,n(h)},[])}}d(v5,"usePresence");function Bs(e){return e?.animationName||"none"}d(Bs,"getAnimationName");function b5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}d(b5,"getElementRef");var zg=0;function E5(){C.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??h0()),document.body.insertAdjacentElement("beforeend",e[1]??h0()),zg++,()=>{zg===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),zg--}},[])}d(E5,"useFocusGuards");function h0(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}d(h0,"createFocusGuard");var gn=d(function(){return gn=Object.assign||d(function(t){for(var n,o=1,i=arguments.length;o<i;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},"__assign"),gn.apply(this,arguments)},"__assign");function dv(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]]);return n}d(dv,"__rest");function S5(e,t,n){if(n||arguments.length===2)for(var o=0,i=t.length,s;o<i;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}d(S5,"__spreadArray");var cf="right-scroll-bar-position",ff="width-before-scroll-bar",fP="with-scroll-bars-hidden",dP="--removed-body-scroll-bar-size";function df(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}d(df,"assignRef");function A5(e,t){var n=C.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var i=n.value;i!==o&&(n.value=o,n.callback(o,i))}}}})[0];return n.callback=t,n.facade}d(A5,"useCallbackRef");var pP=typeof window<"u"?C.useLayoutEffect:C.useEffect,ZA=new WeakMap;function C5(e,t){var n=A5(t||null,function(o){return e.forEach(function(i){return df(i,o)})});return pP(function(){var o=ZA.get(n);if(o){var i=new Set(o),s=new Set(e),c=n.current;i.forEach(function(f){s.has(f)||df(f,null)}),s.forEach(function(f){i.has(f)||df(f,c)})}ZA.set(n,e)},[e]),n}d(C5,"useMergeRefs");function w5(e){return e}d(w5,"ItoI");function x5(e,t){t===void 0&&(t=w5);var n=[],o=!1,i={read:d(function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},"read"),useMedium:d(function(s){var c=t(s,o);return n.push(c),function(){n=n.filter(function(f){return f!==c})}},"useMedium"),assignSyncMedium:d(function(s){for(o=!0;n.length;){var c=n;n=[],c.forEach(s)}n={push:d(function(f){return s(f)},"push"),filter:d(function(){return n},"filter")}},"assignSyncMedium"),assignMedium:d(function(s){o=!0;var c=[];if(n.length){var f=n;n=[],f.forEach(s),c=n}var p=d(function(){var y=c;c=[],y.forEach(s)},"executeQueue"),h=d(function(){return Promise.resolve().then(p)},"cycle");h(),n={push:d(function(y){c.push(y),h()},"push"),filter:d(function(y){return c=c.filter(y),n},"filter")}},"assignMedium")};return i}d(x5,"innerCreateMedium");function D5(e){e===void 0&&(e={});var t=x5(null);return t.options=gn({async:!0,ssr:!1},e),t}d(D5,"createSidecarMedium");var _5=d(function(e){var t=e.sideCar,n=dv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return C.createElement(o,gn({},n))},"SideCar");_5.isSideCarExport=!0;function O5(e,t){return e.useMedium(t),_5}d(O5,"exportSidecar");var T5=D5(),jg=d(function(){},"nothing"),Ld=C.forwardRef(function(e,t){var n=C.useRef(null),o=C.useState({onScrollCapture:jg,onWheelCapture:jg,onTouchMoveCapture:jg}),i=o[0],s=o[1],c=e.forwardProps,f=e.children,p=e.className,h=e.removeScrollBar,y=e.enabled,v=e.shards,b=e.sideCar,S=e.noRelative,w=e.noIsolation,x=e.inert,O=e.allowPinchZoom,A=e.as,R=A===void 0?"div":A,T=e.gapMode,F=dv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=b,L=C5([n,t]),B=gn(gn({},F),i);return C.createElement(C.Fragment,null,y&&C.createElement(N,{sideCar:T5,removeScrollBar:h,shards:v,noRelative:S,noIsolation:w,inert:x,setCallbacks:s,allowPinchZoom:!!O,lockRef:n,gapMode:T}),c?C.cloneElement(C.Children.only(f),gn(gn({},B),{ref:L})):C.createElement(R,gn({},B,{className:p,ref:L}),f))});Ld.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ld.classNames={fullWidth:ff,zeroRight:cf};var hP=d(function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__},"getNonce");function R5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=hP();return t&&e.setAttribute("nonce",t),e}d(R5,"makeStyleTag");function F5(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}d(F5,"injectStyles");function B5(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}d(B5,"insertStyleTag");var gP=d(function(){var e=0,t=null;return{add:d(function(n){e==0&&(t=R5())&&(F5(t,n),B5(t)),e++},"add"),remove:d(function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)},"remove")}},"stylesheetSingleton"),mP=d(function(){var e=gP();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},"styleHookSingleton"),M5=d(function(){var e=mP(),t=d(function(n){var o=n.styles,i=n.dynamic;return e(o,i),null},"Sheet");return t},"styleSingleton"),yP={left:0,top:0,right:0,gap:0},$g=d(function(e){return parseInt(e||"",10)||0},"parse"),vP=d(function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[$g(n),$g(o),$g(i)]},"getOffset"),bP=d(function(e){if(e===void 0&&(e="margin"),typeof window>"u")return yP;var t=vP(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},"getGapWidth"),EP=M5(),Zi="data-scroll-locked",SP=d(function(e,t,n,o){var i=e.left,s=e.top,c=e.right,f=e.gap;return n===void 0&&(n="margin"),`
|
|
691
|
-
.`.concat(fP,` {
|
|
692
|
-
overflow: hidden `).concat(o,`;
|
|
693
|
-
padding-right: `).concat(f,"px ").concat(o,`;
|
|
694
|
-
}
|
|
695
|
-
body[`).concat(Zi,`] {
|
|
696
|
-
overflow: hidden `).concat(o,`;
|
|
697
|
-
overscroll-behavior: contain;
|
|
698
|
-
`).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
|
|
699
|
-
padding-left: `.concat(i,`px;
|
|
700
|
-
padding-top: `).concat(s,`px;
|
|
701
|
-
padding-right: `).concat(c,`px;
|
|
702
|
-
margin-left:0;
|
|
703
|
-
margin-top:0;
|
|
704
|
-
margin-right: `).concat(f,"px ").concat(o,`;
|
|
705
|
-
`),n==="padding"&&"padding-right: ".concat(f,"px ").concat(o,";")].filter(Boolean).join(""),`
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
.`).concat(cf,` {
|
|
709
|
-
right: `).concat(f,"px ").concat(o,`;
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
.`).concat(ff,` {
|
|
713
|
-
margin-right: `).concat(f,"px ").concat(o,`;
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
.`).concat(cf," .").concat(cf,` {
|
|
717
|
-
right: 0 `).concat(o,`;
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
.`).concat(ff," .").concat(ff,` {
|
|
721
|
-
margin-right: 0 `).concat(o,`;
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
body[`).concat(Zi,`] {
|
|
725
|
-
`).concat(dP,": ").concat(f,`px;
|
|
726
|
-
}
|
|
727
|
-
`)},"getStyles"),JA=d(function(){var e=parseInt(document.body.getAttribute(Zi)||"0",10);return isFinite(e)?e:0},"getCurrentUseCounter"),AP=d(function(){C.useEffect(function(){return document.body.setAttribute(Zi,(JA()+1).toString()),function(){var e=JA()-1;e<=0?document.body.removeAttribute(Zi):document.body.setAttribute(Zi,e.toString())}},[])},"useLockAttribute"),CP=d(function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,i=o===void 0?"margin":o;AP();var s=C.useMemo(function(){return bP(i)},[i]);return C.createElement(EP,{styles:SP(s,!t,i,n?"":"!important")})},"RemoveScrollBar"),g0=!1;if(typeof window<"u")try{ws=Object.defineProperty({},"passive",{get:d(function(){return g0=!0,!0},"get")}),window.addEventListener("test",ws,ws),window.removeEventListener("test",ws,ws)}catch{g0=!1}var ws,Mi=g0?{passive:!1}:!1,wP=d(function(e){return e.tagName==="TEXTAREA"},"alwaysContainsScroll"),L5=d(function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!wP(e)&&n[t]==="visible")},"elementCanBeScrolled"),xP=d(function(e){return L5(e,"overflowY")},"elementCouldBeVScrolled"),DP=d(function(e){return L5(e,"overflowX")},"elementCouldBeHScrolled"),QA=d(function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var i=N5(e,o);if(i){var s=k5(e,o),c=s[1],f=s[2];if(c>f)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},"locationCouldBeScrolled"),_P=d(function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},"getVScrollVariables"),OP=d(function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},"getHScrollVariables"),N5=d(function(e,t){return e==="v"?xP(t):DP(t)},"elementCouldBeScrolled"),k5=d(function(e,t){return e==="v"?_P(t):OP(t)},"getScrollVariables"),TP=d(function(e,t){return e==="h"&&t==="rtl"?-1:1},"getDirectionFactor"),RP=d(function(e,t,n,o,i){var s=TP(e,window.getComputedStyle(t).direction),c=s*o,f=n.target,p=t.contains(f),h=!1,y=c>0,v=0,b=0;do{if(!f)break;var S=k5(e,f),w=S[0],x=S[1],O=S[2],A=x-O-s*w;(w||A)&&N5(e,f)&&(v+=A,b+=w);var R=f.parentNode;f=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!p&&f!==document.body||p&&(t.contains(f)||t===f));return(y&&(i&&Math.abs(v)<1||!i&&c>v)||!y&&(i&&Math.abs(b)<1||!i&&-c>b))&&(h=!0),h},"handleScroll"),Gc=d(function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},"getTouchXY"),eC=d(function(e){return[e.deltaX,e.deltaY]},"getDeltaXY"),tC=d(function(e){return e&&"current"in e?e.current:e},"extractRef"),FP=d(function(e,t){return e[0]===t[0]&&e[1]===t[1]},"deltaCompare"),BP=d(function(e){return`
|
|
728
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
729
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
730
|
-
`)},"generateStyle"),MP=0,Li=[];function z5(e){var t=C.useRef([]),n=C.useRef([0,0]),o=C.useRef(),i=C.useState(MP++)[0],s=C.useState(M5)[0],c=C.useRef(e);C.useEffect(function(){c.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var x=S5([e.lockRef.current],(e.shards||[]).map(tC),!0).filter(Boolean);return x.forEach(function(O){return O.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),x.forEach(function(O){return O.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var f=C.useCallback(function(x,O){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!c.current.allowPinchZoom;var A=Gc(x),R=n.current,T="deltaX"in x?x.deltaX:R[0]-A[0],F="deltaY"in x?x.deltaY:R[1]-A[1],N,L=x.target,B=Math.abs(T)>Math.abs(F)?"h":"v";if("touches"in x&&B==="h"&&L.type==="range")return!1;var $=QA(B,L);if(!$)return!0;if($?N=B:(N=B==="v"?"h":"v",$=QA(B,L)),!$)return!1;if(!o.current&&"changedTouches"in x&&(T||F)&&(o.current=N),!N)return!0;var P=o.current||N;return RP(P,O,x,P==="h"?T:F,!0)},[]),p=C.useCallback(function(x){var O=x;if(!(!Li.length||Li[Li.length-1]!==s)){var A="deltaY"in O?eC(O):Gc(O),R=t.current.filter(function(N){return N.name===O.type&&(N.target===O.target||O.target===N.shadowParent)&&FP(N.delta,A)})[0];if(R&&R.should){O.cancelable&&O.preventDefault();return}if(!R){var T=(c.current.shards||[]).map(tC).filter(Boolean).filter(function(N){return N.contains(O.target)}),F=T.length>0?f(O,T[0]):!c.current.noIsolation;F&&O.cancelable&&O.preventDefault()}}},[]),h=C.useCallback(function(x,O,A,R){var T={name:x,delta:O,target:A,should:R,shadowParent:j5(A)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(F){return F!==T})},1)},[]),y=C.useCallback(function(x){n.current=Gc(x),o.current=void 0},[]),v=C.useCallback(function(x){h(x.type,eC(x),x.target,f(x,e.lockRef.current))},[]),b=C.useCallback(function(x){h(x.type,Gc(x),x.target,f(x,e.lockRef.current))},[]);C.useEffect(function(){return Li.push(s),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:b}),document.addEventListener("wheel",p,Mi),document.addEventListener("touchmove",p,Mi),document.addEventListener("touchstart",y,Mi),function(){Li=Li.filter(function(x){return x!==s}),document.removeEventListener("wheel",p,Mi),document.removeEventListener("touchmove",p,Mi),document.removeEventListener("touchstart",y,Mi)}},[]);var S=e.removeScrollBar,w=e.inert;return C.createElement(C.Fragment,null,w?C.createElement(s,{styles:BP(i)}):null,S?C.createElement(CP,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}d(z5,"RemoveScrollSideCar");function j5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}d(j5,"getOutermostShadowParent");var LP=O5(T5,z5),$5=C.forwardRef(function(e,t){return C.createElement(Ld,gn({},e,{ref:t,sideCar:LP}))});$5.classNames=Ld.classNames;var NP=$5,kP=d(function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},"getDefaultParent"),Ni=new WeakMap,Vc=new WeakMap,Yc={},Pg=0,P5=d(function(e){return e&&(e.host||P5(e.parentNode))},"unwrapHost"),zP=d(function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=P5(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},"correctTargets"),jP=d(function(e,t,n,o){var i=zP(t,Array.isArray(e)?e:[e]);Yc[n]||(Yc[n]=new WeakMap);var s=Yc[n],c=[],f=new Set,p=new Set(i),h=d(function(v){!v||f.has(v)||(f.add(v),h(v.parentNode))},"keep");i.forEach(h);var y=d(function(v){!v||p.has(v)||Array.prototype.forEach.call(v.children,function(b){if(f.has(b))y(b);else try{var S=b.getAttribute(o),w=S!==null&&S!=="false",x=(Ni.get(b)||0)+1,O=(s.get(b)||0)+1;Ni.set(b,x),s.set(b,O),c.push(b),x===1&&w&&Vc.set(b,!0),O===1&&b.setAttribute(n,"true"),w||b.setAttribute(o,"true")}catch(A){console.error("aria-hidden: cannot operate on ",b,A)}})},"deep");return y(t),f.clear(),Pg++,function(){c.forEach(function(v){var b=Ni.get(v)-1,S=s.get(v)-1;Ni.set(v,b),s.set(v,S),b||(Vc.has(v)||v.removeAttribute(o),Vc.delete(v)),S||v.removeAttribute(n)}),Pg--,Pg||(Ni=new WeakMap,Ni=new WeakMap,Vc=new WeakMap,Yc={})}},"applyAttributeToOthers"),$P=d(function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),i=t||kP(e);return i?(o.push.apply(o,Array.from(i.querySelectorAll("[aria-live], script"))),jP(o,i,n,"aria-hidden")):function(){return null}},"hideOthers"),Nd="Dialog",[I5,PP]=V3(Nd),[IP,rn]=I5(Nd),pv=d(e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:i,onOpenChange:s,modal:c=!0}=e,f=C.useRef(null),p=C.useRef(null),[h,y]=W3({prop:o,defaultProp:i??!1,onChange:s,caller:Nd});return de.jsx(IP,{scope:t,triggerRef:f,contentRef:p,contentId:sf(),titleId:sf(),descriptionId:sf(),open:h,onOpenChange:y,onOpenToggle:C.useCallback(()=>y(v=>!v),[y]),modal:c,children:n})},"Dialog");pv.displayName=Nd;var H5="DialogTrigger",hv=C.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,i=rn(H5,n),s=Ka(t,i.triggerRef);return de.jsx(na.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":kd(i.open),...o,ref:s,onClick:Xi(e.onClick,i.onOpenToggle)})});hv.displayName=H5;var gv="DialogPortal",[HP,U5]=I5(gv,{forceMount:void 0}),mv=d(e=>{const{__scopeDialog:t,forceMount:n,children:o,container:i}=e,s=rn(gv,t);return de.jsx(HP,{scope:t,forceMount:n,children:C.Children.map(o,c=>de.jsx(Md,{present:n||s.open,children:de.jsx(m5,{asChild:!0,container:i,children:c})}))})},"DialogPortal");mv.displayName=gv;var Uf="DialogOverlay",yv=C.forwardRef((e,t)=>{const n=U5(Uf,e.__scopeDialog),{forceMount:o=n.forceMount,...i}=e,s=rn(Uf,e.__scopeDialog);return s.modal?de.jsx(Md,{present:o||s.open,children:de.jsx(qP,{...i,ref:t})}):null});yv.displayName=Uf;var UP=Bd("DialogOverlay.RemoveScroll"),qP=C.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,i=rn(Uf,n);return de.jsx(NP,{as:UP,allowPinchZoom:!0,shards:[i.contentRef],children:de.jsx(na.div,{"data-state":kd(i.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),jo="DialogContent",vv=C.forwardRef((e,t)=>{const n=U5(jo,e.__scopeDialog),{forceMount:o=n.forceMount,...i}=e,s=rn(jo,e.__scopeDialog);return de.jsx(Md,{present:o||s.open,children:s.modal?de.jsx(GP,{...i,ref:t}):de.jsx(VP,{...i,ref:t})})});vv.displayName=jo;var GP=C.forwardRef((e,t)=>{const n=rn(jo,e.__scopeDialog),o=C.useRef(null),i=Ka(t,n.contentRef,o);return C.useEffect(()=>{const s=o.current;if(s)return $P(s)},[]),de.jsx(q5,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Xi(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Xi(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0;(c.button===2||f)&&s.preventDefault()}),onFocusOutside:Xi(e.onFocusOutside,s=>s.preventDefault())})}),VP=C.forwardRef((e,t)=>{const n=rn(jo,e.__scopeDialog),o=C.useRef(!1),i=C.useRef(!1);return de.jsx(q5,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d(s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(o.current||n.triggerRef.current?.focus(),s.preventDefault()),o.current=!1,i.current=!1},"onCloseAutoFocus"),onInteractOutside:d(s=>{e.onInteractOutside?.(s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const c=s.target;n.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()},"onInteractOutside")})}),q5=C.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,...c}=e,f=rn(jo,n),p=C.useRef(null),h=Ka(t,p);return E5(),de.jsxs(de.Fragment,{children:[de.jsx(u5,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:s,children:de.jsx(i5,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":kd(f.open),...c,ref:h,onDismiss:d(()=>f.onOpenChange(!1),"onDismiss")})}),de.jsxs(de.Fragment,{children:[de.jsx(WP,{titleId:f.titleId}),de.jsx(XP,{contentRef:p,descriptionId:f.descriptionId})]})]})}),bv="DialogTitle",Ev=C.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,i=rn(bv,n);return de.jsx(na.h2,{id:i.titleId,...o,ref:t})});Ev.displayName=bv;var G5="DialogDescription",Sv=C.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,i=rn(G5,n);return de.jsx(na.p,{id:i.descriptionId,...o,ref:t})});Sv.displayName=G5;var V5="DialogClose",Av=C.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,i=rn(V5,n);return de.jsx(na.button,{type:"button",...o,ref:t,onClick:Xi(e.onClick,()=>i.onOpenChange(!1))})});Av.displayName=V5;function kd(e){return e?"open":"closed"}d(kd,"getState");var Y5="DialogTitleWarning",[YP,W5]=G3(Y5,{contentName:jo,titleName:bv,docsSlug:"dialog"}),WP=d(({titleId:e})=>{const t=W5(Y5),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
731
|
-
|
|
732
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
733
|
-
|
|
734
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return C.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},"TitleWarning"),KP="DialogDescriptionWarning",XP=d(({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${W5(KP).contentName}}.`;return C.useEffect(()=>{const i=e.current?.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},"DescriptionWarning"),K5=pv,ZP=hv,X5=mv,Z5=yv,J5=vv,Q5=Ev,eR=Sv,tR=Av,rR={};Wf(rR,{Actions:()=>oI,CloseButton:()=>iR,Col:()=>sR,Container:()=>oR,Content:()=>tI,Description:()=>aI,Error:()=>iI,ErrorWrapper:()=>uR,Header:()=>rI,Overlay:()=>aR,Row:()=>lR,Title:()=>nI});var Xa=C.forwardRef(({asChild:e=!1,animation:t="none",size:n="small",variant:o="outline",padding:i="medium",disabled:s=!1,active:c=!1,onClick:f,...p},h)=>{let y="button";e&&(y=rP);const[v,b]=C.useState(!1),S=d(w=>{f&&f(w),t!=="none"&&b(!0)},"handleClick");return C.useEffect(()=>{const w=setTimeout(()=>{v&&b(!1)},1e3);return()=>clearTimeout(w)},[v]),E.createElement(JP,{as:y,ref:h,variant:o,size:n,padding:i,disabled:s,active:c,animating:v,animation:t,onClick:S,...p})});Xa.displayName="Button";var JP=G("button",{shouldForwardProp:d(e=>$y(e),"shouldForwardProp")})(({theme:e,variant:t,size:n,disabled:o,active:i,animating:s,animation:c="none",padding:f})=>({border:0,cursor:o?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:f==="none"?0:f==="small"&&n==="small"?"0 7px":f==="small"&&n==="medium"?"0 9px":n==="small"?"0 10px":n==="medium"?"0 12px":0,height:n==="small"?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:o?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:t==="solid"?e.color.secondary:t==="outline"?e.button.background:t==="ghost"&&i?e.background.hoverable:"transparent",...t==="ghost"?{".sb-bar &":{background:i?br(.9,e.barTextColor):"transparent",color:i?e.barSelectedColor:e.barTextColor,"&:hover":{color:e.barHoverColor,background:br(.86,e.barHoverColor)},"&:active":{color:e.barSelectedColor,background:br(.9,e.barSelectedColor)},"&:focus":{boxShadow:`${Zn(e.barHoverColor,1)} 0 0 0 1px inset`,outline:"none"}}}:{},color:t==="solid"?e.color.lightest:t==="outline"?e.input.color:t==="ghost"&&i?e.color.secondary:t==="ghost"?e.color.mediumdark:e.input.color,boxShadow:t==="outline"?`${e.button.border} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0,"&:hover":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let p=e.color.secondary;return t==="solid"&&(p=e.color.secondary),t==="outline"&&(p=e.button.background),t==="ghost"?br(.86,e.color.secondary):e.base==="light"?xo(.02,p):Um(.03,p)})()},"&:active":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let p=e.color.secondary;return t==="solid"&&(p=e.color.secondary),t==="outline"&&(p=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?xo(.02,p):Um(.03,p)})()},"&:focus":{boxShadow:`${Zn(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"},"> svg":{animation:s&&c!=="none"?`${e.animation[c]} 1000ms ease-out`:""}})),Kn=C.forwardRef(({padding:e="small",variant:t="ghost",...n},o)=>E.createElement(Xa,{padding:e,variant:t,ref:o,...n}));Kn.displayName="IconButton";var nR=tn({from:{opacity:0},to:{opacity:1}}),QP=tn({from:{maxHeight:0},to:{}}),eI=tn({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),aR=G.div({backdropFilter:"blur(24px)",position:"fixed",inset:0,width:"100%",height:"100%",zIndex:10,animation:`${nR} 200ms`}),oR=G.div(({theme:e,width:t,height:n})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"0px 4px 67px 0px #00000040",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:t??740,height:n??"auto",maxWidth:"calc(100% - 40px)",maxHeight:"85vh",overflow:"auto",zIndex:11,animation:`${eI} 200ms`,"&:focus-visible":{outline:"none"}})),iR=d(e=>E.createElement(tR,{asChild:!0},E.createElement(Kn,{"aria-label":"Close",...e},E.createElement(F$,null))),"CloseButton"),tI=G.div({display:"flex",flexDirection:"column",margin:16,gap:16}),lR=G.div({display:"flex",justifyContent:"space-between",gap:16}),sR=G.div({display:"flex",flexDirection:"column",gap:4}),rI=d(e=>E.createElement(lR,null,E.createElement(sR,{...e}),E.createElement(iR,null)),"Header"),nI=G(Q5)(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),aI=G(eR)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),oI=G.div({display:"flex",flexDirection:"row-reverse",gap:8}),uR=G.div(({theme:e})=>({maxHeight:100,overflow:"auto",animation:`${QP} 300ms, ${nR} 300ms`,backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),iI=d(({children:e,...t})=>E.createElement(uR,{...t},E.createElement("div",null,e)),"Error");function cR({children:e,width:t,height:n,onEscapeKeyDown:o,onInteractOutside:i=d(h=>h.preventDefault(),"onInteractOutside"),className:s,container:c,portalSelector:f,...p}){const h=c??(f?document.querySelector(f):null)??document.body;return E.createElement(K5,{...p},E.createElement(X5,{container:h},E.createElement(Z5,{asChild:!0},E.createElement(aR,null)),E.createElement(J5,{asChild:!0,onInteractOutside:i,onEscapeKeyDown:o},E.createElement(oR,{className:s,width:t,height:n},e))))}d(cR,"BaseModal");Object.assign(cR,rR,{Dialog:q3});G.div(({theme:e,col:t,row:n=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${Km}`]:{marginLeft:0}}:{"& > *":{marginTop:n*e.layoutMargin},[`& > *:first-child${Km}`]:{marginTop:0}},({theme:e,outer:t,col:n,row:o})=>{switch(!0){case!!(t&&n):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&o):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}});G.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));G.div();G.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1}));function fR(e,t){var n=C.useRef(null),o=C.useRef(null);o.current=t;var i=C.useRef(null);C.useEffect(function(){s()});var s=C.useCallback(function(){var c=i.current,f=o.current,p=c||(f?f instanceof Element?f:f.current:null);n.current&&n.current.element===p&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:p,subscriber:e,cleanup:p?e(p):void 0})},[e]);return C.useEffect(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),C.useCallback(function(c){i.current=c,s()},[s])}d(fR,"useResolvedElement");function m0(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:t==="contentBoxSize"?e.contentRect[n==="inlineSize"?"width":"height"]:void 0}d(m0,"extractSize");function Cv(e){e===void 0&&(e={});var t=e.onResize,n=C.useRef(void 0);n.current=t;var o=e.round||Math.round,i=C.useRef(),s=C.useState({width:void 0,height:void 0}),c=s[0],f=s[1],p=C.useRef(!1);C.useEffect(function(){return p.current=!1,function(){p.current=!0}},[]);var h=C.useRef({width:void 0,height:void 0}),y=fR(C.useCallback(function(v){return(!i.current||i.current.box!==e.box||i.current.round!==o)&&(i.current={box:e.box,round:o,instance:new ResizeObserver(function(b){var S=b[0],w=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",x=m0(S,w,"inlineSize"),O=m0(S,w,"blockSize"),A=x?o(x):void 0,R=O?o(O):void 0;if(h.current.width!==A||h.current.height!==R){var T={width:A,height:R};h.current.width=A,h.current.height=R,n.current?n.current(T):p.current||f(T)}})}),i.current.instance.observe(v,{box:e.box}),function(){i.current&&i.current.instance.unobserve(v)}},[e.box,o]),e.ref);return C.useMemo(function(){return{ref:y,width:c.width,height:c.height}},[y,c.width,c.height])}d(Cv,"useResizeObserver");var lI=G.div(({centered:e=!1,scale:t=1,elementHeight:n})=>({height:n||"auto",transformOrigin:e?"center top":"left top",transform:`scale(${1/t})`}));function dR({centered:e,scale:t,children:n}){const o=C.useRef(null),[i,s]=C.useState(0),c=C.useCallback(({height:f})=>{f&&s(f/t)},[t]);return C.useEffect(()=>{o.current&&s(o.current.getBoundingClientRect().height)},[t]),Cv({ref:o,onResize:c}),E.createElement(lI,{centered:e,scale:t,elementHeight:i},E.createElement("div",{ref:o,className:"innerZoomElementWrapper"},n))}d(dR,"ZoomElement");var sI=class extends C.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){const{iFrameRef:t}=this.props;this.iframe=t.current}shouldComponentUpdate(t){const{scale:n,active:o}=this.props;return n!==t.scale&&this.setIframeInnerZoom(t.scale),o!==t.active&&this.iframe.setAttribute("data-is-storybook",t.active?"true":"false"),t.children.props.src!==this.props.children.props.src}setIframeInnerZoom(t){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"})}catch{this.setIframeZoom(t)}}setIframeZoom(t){Object.assign(this.iframe.style,{width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"})}render(){const{children:t}=this.props;return E.createElement(E.Fragment,null,t)}};d(sI,"ZoomIFrame");var pR={Element:dR};const{global:uI}=__STORYBOOK_MODULE_GLOBAL__;var{document:cI}=uI,fI=G.strong(({theme:e})=>({color:e.color.orange})),dI=G.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),rC=G.em(({theme:e})=>({color:e.textMutedColor})),pI=/(Error): (.*)\n/,hI=/at (?:(.*) )?\(?(.+)\)?/,gI=/([^@]+)?(?:\/<)?@(.+)?/,mI=/([^@]+)?@(.+)?/,hR=d(({error:e})=>{if(!e)return E.createElement(C.Fragment,null,"This error has no stack or message");if(!e.stack)return E.createElement(C.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message}
|
|
735
|
-
|
|
736
|
-
${t}`);const n=t.match(pI);if(!n)return E.createElement(C.Fragment,null,t);const[,o,i]=n,s=t.split(/\n/).slice(1),[,...c]=s.map(f=>{const p=f.match(hI)||f.match(gI)||f.match(mI);return p?{name:(p[1]||"").replace("/<",""),location:p[2].replace(cI.location.origin,"")}:null}).filter(Boolean);return E.createElement(C.Fragment,null,E.createElement("span",null,o),": ",E.createElement(fI,null,i),E.createElement("br",null),c.map((f,p)=>f?.name?E.createElement(C.Fragment,{key:p}," ","at ",E.createElement(dI,null,f.name)," (",E.createElement(rC,null,f.location),")",E.createElement("br",null)):E.createElement(C.Fragment,{key:p}," ","at ",E.createElement(rC,null,f?.location),E.createElement("br",null))))},"ErrorFormatter"),yI=G.input({appearance:"none",display:"grid",placeContent:"center",width:14,height:14,flexShrink:0,margin:0,border:`1px solid ${me.border}`,borderRadius:2,backgroundColor:"white",transition:"background-color 0.1s","&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:me.medium},"&:disabled:checked, &:disabled:indeterminate":{backgroundColor:me.mediumdark},"&:checked, &:indeterminate":{backgroundColor:me.secondary},"&:checked::before":{content:'""',width:14,height:14,background:`no-repeat center url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='m3 7 2.5 2.5L11 4'/%3E%3C/svg%3E")`},"&:indeterminate::before":{content:'""',width:8,height:2,background:"white"},"&:enabled:focus-visible":{outline:`1px solid ${me.secondary}`,outlineOffset:1}}),vI=d(e=>E.createElement(yI,{...e,type:"checkbox"}),"Checkbox"),bI=G.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),EI=G.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),SI=d(({label:e,children:t,...n})=>E.createElement(bI,{...n},e?E.createElement(EI,null,E.createElement("span",null,e)):null,t),"Field"),wv=d(({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},"sizes"),gR=d(({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},"alignment"),mR=d(({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return{}}},"validation"),AI={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},yR=d(({theme:e})=>({...AI,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none","@media (forced-colors: active)":{outline:"1px solid highlight"}},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}}),"styles"),CI=Object.assign(G(C.forwardRef(d(function({size:t,valid:n,align:o,...i},s){return E.createElement("input",{...i,ref:s})},"Input")))(yR,wv,gR,mR,{minHeight:32}),{displayName:"Input"}),wI=G.input({appearance:"none",display:"grid",placeContent:"center",width:16,height:16,flexShrink:0,margin:-1,border:`1px solid ${me.border}`,borderRadius:8,backgroundColor:"white",transition:"background-color 0.1s","&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:me.medium},"&:disabled:checked":{backgroundColor:me.mediumdark},"&:checked":{backgroundColor:me.secondary,boxShadow:"inset 0 0 0 2px white"},"&:enabled:focus-visible":{outline:`1px solid ${me.secondary}`,outlineOffset:1}}),xI=d(e=>E.createElement(wI,{...e,type:"radio"}),"Radio"),DI=G.select(wv,({theme:e})=>({appearance:"none",background:`calc(100% - 12px) center no-repeat url("data:image/svg+xml,%3Csvg width='8' height='4' viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.30303 0.196815C1.13566 0.0294472 0.864304 0.0294472 0.696937 0.196815C0.529569 0.364182 0.529569 0.635539 0.696937 0.802906L3.69694 3.80291C3.8643 3.97027 4.13566 3.97027 4.30303 3.80291L7.30303 0.802906C7.4704 0.635539 7.4704 0.364182 7.30303 0.196815C7.13566 0.0294473 6.8643 0.0294473 6.69694 0.196815L3.99998 2.89377L1.30303 0.196815Z' fill='%2373828C'/%3E%3C/svg%3E%0A")`,backgroundSize:10,padding:"6px 30px 6px 10px","@supports (appearance: base-select)":{appearance:"base-select",background:e.input.background,padding:"6px 10px"},transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",boxSizing:"border-box",border:"none",cursor:"pointer","& > button":{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",gap:8,"& > svg":{width:14,height:14,color:e.color.mediumdark}},"&:has(option:not([hidden]):checked)":{color:e.color.defaultText},"&:focus-visible, &:focus-within":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset`},"&::picker-icon":{display:"none"},"&::picker(select)":{appearance:"base-select",border:"1px solid #e4e4e7",padding:4,marginTop:4,background:e.base==="light"?Vi(e.background.app):e.background.app,filter:`
|
|
737
|
-
drop-shadow(0 5px 5px rgba(0,0,0,0.05))
|
|
738
|
-
drop-shadow(0 0 3px rgba(0,0,0,0.1))
|
|
739
|
-
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1,cursor:"default",transition:"opacity 100ms ease-in-out, transform 100ms ease-in-out",transformOrigin:"top",transform:"translateY(0)",opacity:1,"@starting-style":{transform:"translateY(-0.25rem) scale(0.95)",opacity:0}},"& optgroup label":{display:"block",padding:"3px 6px"},"& option":{lineHeight:"18px",padding:"7px 10px",borderRadius:4,outline:"none",cursor:"pointer",color:e.color.defaultText,"&::checkmark":{display:"none"},"&:hover, &:focus-visible":{backgroundColor:e.background.hoverable},"&:checked":{color:e.color.secondary,fontWeight:e.typography.weight.bold},"&:disabled":{backgroundColor:"transparent",cursor:"default",color:e.color.defaultText}}})),_I=d(({children:e,...t})=>E.createElement(DI,{...t},!Kf()&&E.createElement("button",null,E.createElement("selectedcontent",null),E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},E.createElement("path",{d:"m6 9 6 6 6-6"}))),E.createElement("optgroup",null,e)),"Select"),OI=C.useLayoutEffect,TI=d(function(t){var n=E.useRef(t);return OI(function(){n.current=t}),n},"useLatest"),nC=d(function(t,n){if(typeof t=="function"){t(n);return}t.current=n},"updateRef"),RI=d(function(t,n){var o=E.useRef();return E.useCallback(function(i){t.current=i,o.current&&nC(o.current,null),o.current=n,n&&nC(n,i)},[n])},"useComposedRef"),aC={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},FI=d(function(t){Object.keys(aC).forEach(function(n){t.style.setProperty(n,aC[n],"important")})},"forceHiddenStyles"),oC=FI,Ht=null,iC=d(function(t,n){var o=t.scrollHeight;return n.sizingStyle.boxSizing==="border-box"?o+n.borderSize:o-n.paddingSize},"getHeight");function vR(e,t,n,o){n===void 0&&(n=1),o===void 0&&(o=1/0),Ht||(Ht=document.createElement("textarea"),Ht.setAttribute("tabindex","-1"),Ht.setAttribute("aria-hidden","true"),oC(Ht)),Ht.parentNode===null&&document.body.appendChild(Ht);var i=e.paddingSize,s=e.borderSize,c=e.sizingStyle,f=c.boxSizing;Object.keys(c).forEach(function(b){var S=b;Ht.style[S]=c[S]}),oC(Ht),Ht.value=t;var p=iC(Ht,e);Ht.value=t,p=iC(Ht,e),Ht.value="x";var h=Ht.scrollHeight-i,y=h*n;f==="border-box"&&(y=y+i+s),p=Math.max(y,p);var v=h*o;return f==="border-box"&&(v=v+i+s),p=Math.min(v,p),[p,h]}d(vR,"calculateNodeHeight");var lC=d(function(){},"noop"),BI=d(function(t,n){return t.reduce(function(o,i){return o[i]=n[i],o},{})},"pick"),MI=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],LI=!!document.documentElement.currentStyle,NI=d(function(t){var n=window.getComputedStyle(t);if(n===null)return null;var o=BI(MI,n),i=o.boxSizing;if(i==="")return null;LI&&i==="border-box"&&(o.width=parseFloat(o.width)+parseFloat(o.borderRightWidth)+parseFloat(o.borderLeftWidth)+parseFloat(o.paddingRight)+parseFloat(o.paddingLeft)+"px");var s=parseFloat(o.paddingBottom)+parseFloat(o.paddingTop),c=parseFloat(o.borderBottomWidth)+parseFloat(o.borderTopWidth);return{sizingStyle:o,paddingSize:s,borderSize:c}},"getSizingData"),kI=NI;function zd(e,t,n){var o=TI(n);C.useLayoutEffect(function(){var i=d(function(c){return o.current(c)},"handler");if(e)return e.addEventListener(t,i),function(){return e.removeEventListener(t,i)}},[])}d(zd,"useListener");var zI=d(function(t,n){zd(document.body,"reset",function(o){t.current.form===o.target&&n(o)})},"useFormResetListener"),jI=d(function(t){zd(window,"resize",t)},"useWindowResizeListener"),$I=d(function(t){zd(document.fonts,"loadingdone",t)},"useFontsLoadedListener"),PI=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],II=d(function(t,n){var o=t.cacheMeasurements,i=t.maxRows,s=t.minRows,c=t.onChange,f=c===void 0?lC:c,p=t.onHeightChange,h=p===void 0?lC:p,y=Wy(t,PI),v=y.value!==void 0,b=C.useRef(null),S=RI(b,n),w=C.useRef(0),x=C.useRef(),O=d(function(){var T=b.current,F=o&&x.current?x.current:kI(T);if(F){x.current=F;var N=vR(F,T.value||T.placeholder||"x",s,i),L=N[0],B=N[1];w.current!==L&&(w.current=L,T.style.setProperty("height",L+"px","important"),h(L,{rowHeight:B}))}},"resizeTextarea"),A=d(function(T){v||O(),f(T)},"handleChange");return C.useLayoutEffect(O),zI(b,function(){if(!v){var R=b.current.value;requestAnimationFrame(function(){var T=b.current;T&&R!==T.value&&O()})}}),jI(O),$I(O),C.createElement("textarea",Xe({},y,{onChange:A,ref:S}))},"TextareaAutosize"),HI=C.forwardRef(II),UI=Object.assign(G(C.forwardRef(d(function({size:t,valid:n,align:o,...i},s){return E.createElement(HI,{...i,ref:s})},"Textarea")))(yR,wv,gR,mR,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),xl=Object.assign(G.form({boxSizing:"border-box",width:"100%"}),{Field:SI,Input:CI,Select:_I,Textarea:UI,Button:Xa,Checkbox:vI,Radio:xI}),qI=C.lazy(()=>Ua(()=>Promise.resolve().then(()=>xB),void 0,import.meta.url).then(e=>({default:e.WithTooltip}))),GI=d(e=>E.createElement(C.Suspense,{fallback:E.createElement("div",null)},E.createElement(qI,{...e})),"WithTooltip"),VI=C.lazy(()=>Ua(()=>Promise.resolve().then(()=>xB),void 0,import.meta.url).then(e=>({default:e.WithTooltipPure}))),bR=d(e=>E.createElement(C.Suspense,{fallback:E.createElement("div",null)},E.createElement(VI,{...e})),"WithTooltipPure");G.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));G.span();G.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}}));G.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"}));G.div({padding:15,width:280,boxSizing:"border-box"});var YI=G.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)",margin:6})),WI=d(({note:e,...t})=>E.createElement(YI,{...t},e),"TooltipNote"),KI=or(ou(),1),XI=G(({active:e,loading:t,disabled:n,...o})=>E.createElement("span",{...o}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:t.textMutedColor}:{}),ZI=G.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"}}),JI=G.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column",minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),QI=G.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),eH=G.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),tH=G.div(({theme:e})=>({width:"100%",minWidth:0,border:"none",borderRadius:e.appBorderRadius,background:"none",fontSize:e.typography.size.s1,transition:"all 150ms ease-out",color:e.color.dark,textDecoration:"none",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10}}),({theme:e,href:t,onClick:n})=>(t||n)&&{cursor:"pointer","&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}},({theme:e,as:t})=>t==="label"&&{"&:has(input:not(:disabled))":{cursor:"pointer","&:hover":{background:e.background.hoverable}}},({disabled:e})=>e&&{cursor:"not-allowed"}),rH=(0,KI.default)(100)(({onClick:e,input:t,href:n,LinkWrapper:o})=>({...e&&{as:"button",onClick:e},...t&&{as:"label"},...n&&{as:"a",href:n,...o&&{as:o,to:n}}})),nH=d(e=>{const{loading:t=!1,title:n=E.createElement("span",null,"Loading state"),center:o=null,right:i=null,active:s=!1,disabled:c=!1,isIndented:f=!1,href:p=void 0,onClick:h=void 0,icon:y,input:v,LinkWrapper:b=void 0,...S}=e,w={active:s,disabled:c},x=rH(e),O=y||v;return E.createElement(tH,{...S,...w,...x},E.createElement(E.Fragment,null,O&&E.createElement(eH,{...w},O),n||o?E.createElement(JI,{isIndented:f&&!O},n&&E.createElement(XI,{...w,loading:t},n),o&&E.createElement(QI,{...w},o)):null,i&&E.createElement(ZI,{...w},i)))},"ListItem"),ER=nH,aH=G.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32+8},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base==="dark"?{background:e.background.content}:{}),oH=G.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),iH=d(({id:e,onClick:t,...n})=>{const{active:o,disabled:i,title:s,href:c}=n,f=C.useCallback(p=>t?.(p,{id:e,active:o,disabled:i,title:s,href:c}),[t,e,o,i,s,c]);return E.createElement(ER,{id:`list-item-${e}`,...n,...t&&{onClick:f}})},"Item"),SR=d(({links:e,LinkWrapper:t,...n})=>{const o=Array.isArray(e[0])?e:[e],i=o.some(s=>s.some(c=>"icon"in c&&c.icon||"input"in c&&c.input));return E.createElement(aH,{...n},o.filter(s=>s.length).map((s,c)=>E.createElement(oH,{key:s.map(f=>f.id).join(`~${c}~`)},s.map(f=>"content"in f?E.createElement(C.Fragment,{key:f.id},f.content):E.createElement(iH,{key:f.id,isIndented:i,LinkWrapper:t,...f})))))},"TooltipLinkList"),y0=G.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:10},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{gap:6}:{});y0.displayName="Side";var lH=d(({children:e,className:t,scrollable:n})=>n?E.createElement(Yy,{vertical:!1,className:t},e):E.createElement("div",{className:t},e),"UnstyledBar"),xv=G(lH)(({backgroundColor:e,theme:t,scrollable:n=!0})=>({color:t.barTextColor,width:"100%",minHeight:40,flexShrink:0,scrollbarColor:`${t.barTextColor} ${e||t.barBg}`,scrollbarWidth:"thin",overflow:n?"auto":"hidden",overflowY:"hidden"}),({theme:e,border:t=!1})=>t?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{});xv.displayName="Bar";var sH=G.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""})),jd=d(({children:e,backgroundColor:t,className:n,...o})=>{const[i,s]=C.Children.toArray(e);return E.createElement(xv,{backgroundColor:t,className:`sb-bar ${n}`,...o},E.createElement(sH,{bgColor:t},E.createElement(y0,{scrollable:o.scrollable,left:!0},i),s?E.createElement(y0,{right:!0},s):null))},"FlexBar");jd.displayName="FlexBar";var uH=d(e=>typeof e.props.href=="string","isLink"),cH=d(e=>typeof e.props.href!="string","isButton");function AR({children:e,...t},n){const o={props:t,ref:n};if(uH(o))return E.createElement("a",{ref:o.ref,...o.props},e);if(cH(o))return E.createElement("button",{ref:o.ref,type:"button",...o.props},e);throw new Error("invalid props")}d(AR,"ForwardRefFunction");var CR=C.forwardRef(AR);CR.displayName="ButtonOrLink";var vu=G(CR,{shouldForwardProp:$y})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:n})=>e?{color:t||n.barSelectedColor,borderBottomColor:n.barSelectedColor}:{color:t||n.barTextColor,borderBottomColor:"transparent","&:hover":{color:n.barHoverColor}});vu.displayName="TabButton";var fH=G.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),dH=G.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),pH=G.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textColor})),hH=G.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),$d=d(({title:e,description:t,footer:n})=>E.createElement(fH,null,E.createElement(dH,null,E.createElement(pH,null,e),t&&E.createElement(hH,null,t)),n),"EmptyTabContent"),gH=G.div(({active:e})=>e?{display:"block"}:{display:"none"}),mH=d(e=>C.Children.toArray(e).map(({props:{title:t,id:n,color:o,children:i}})=>{const s=Array.isArray(i)?i[0]:i;return{title:t,id:n,...o?{color:o}:{},render:typeof s=="function"?s:({active:f})=>E.createElement(gH,{active:f,role:"tabpanel"},s)}}),"childrenToList"),yH=G.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),vH=G(vu)(({active:e,theme:t,preActive:n})=>`
|
|
740
|
-
color: ${n||e?t.barSelectedColor:t.barTextColor};
|
|
741
|
-
.addon-collapsible-icon {
|
|
742
|
-
color: ${n||e?t.barSelectedColor:t.barTextColor};
|
|
743
|
-
}
|
|
744
|
-
&:hover {
|
|
745
|
-
color: ${t.barHoverColor};
|
|
746
|
-
.addon-collapsible-icon {
|
|
747
|
-
color: ${t.barHoverColor};
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
`);function wR(e){const t=C.useRef(),n=C.useRef(),o=C.useRef(new Map),{width:i=1}=Cv({ref:t}),[s,c]=C.useState(e),[f,p]=C.useState([]),h=C.useRef(e),y=C.useCallback(({menuName:b,actions:S})=>{const w=f.some(({active:A})=>A),[x,O]=C.useState(!1);return E.createElement(E.Fragment,null,E.createElement(l0,{interactive:!0,visible:x,onVisibleChange:O,placement:"bottom",delayHide:100,tooltip:E.createElement(SR,{links:f.map(({title:A,id:R,color:T,active:F})=>({id:R,title:A,color:T,active:F,onClick:d(N=>{N.preventDefault(),S.onSelect(R)},"onClick")}))})},E.createElement(vH,{id:"addons-menu-button",ref:n,active:w,preActive:x,style:{visibility:f.length?"visible":"hidden"},"aria-hidden":!f.length,className:"tabbutton",type:"button",role:"tab"},b,E.createElement(yH,{className:"addon-collapsible-icon",isActive:w||x}))),f.map(({title:A,id:R,color:T},F)=>{const N=`index-${F}`;return E.createElement(vu,{id:`tabbutton-${hd(R)??N}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:L=>{o.current.set(R,L)},className:"tabbutton",type:"button",key:R,textColor:T,role:"tab"},A)}))},[f]),v=C.useCallback(()=>{if(!t.current||!n.current)return;const{x:b,width:S}=t.current.getBoundingClientRect(),{width:w}=n.current.getBoundingClientRect(),x=f.length?b+S-w:b+S,O=[];let A=0;const R=e.filter(T=>{const{id:F}=T,N=o.current.get(F),{width:L=0}=N?.getBoundingClientRect()||{},B=b+A+L>x;return(!B||!N)&&O.push(T),A+=L,B});(O.length!==s.length||h.current!==e)&&(c(O),p(R),h.current=e)},[f.length,e,s]);return C.useLayoutEffect(v,[v,i]),{tabRefs:o,addonsRef:n,tabBarRef:t,visibleList:s,invisibleList:f,AddonTab:y}}d(wR,"useList");var bH="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",EH=G.div(({theme:e,bordered:t})=>t?{backgroundClip:"padding-box",border:`1px solid ${e.appBorderColor}`,borderRadius:e.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{},({absolute:e})=>e?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"}),Dv=G.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1});Dv.displayName="TabBar";var SH=G.div({display:"block",position:"relative",container:"tab-content / inline-size"},({theme:e})=>({fontSize:e.typography.size.s2-1,background:e.background.content}),({bordered:e,theme:t})=>e?{borderRadius:`0 0 ${t.appBorderRadius-1}px ${t.appBorderRadius-1}px`}:{},({absolute:e,bordered:t})=>e?{height:`calc(100% - ${t?42:40}px)`,position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:40+(t?1:0),overflow:"auto",[`& > *:first-child${bH}`]:{position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:0+(t?1:0),height:`calc(100% - ${t?2:0}px)`,overflow:"auto"}}:{}),xR=class extends C.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,n){console.error("Error rendering addon panel"),console.error(t),console.error(n.componentStack)}render(){return this.state.hasError&&this.props.active?E.createElement($d,{title:"This addon has errors",description:"Check your browser logs and addon code to pinpoint what went wrong. This issue was not caused by Storybook."}):this.props.children}};d(xR,"TabErrorBoundary");var AH=xR,_v=C.memo(({children:e,selected:t=null,actions:n,absolute:o=!1,bordered:i=!1,tools:s=null,backgroundColor:c,id:f=null,menuName:p="Tabs",emptyState:h,showToolsWhenEmpty:y})=>{const v=C.useMemo(()=>mH(e).map((A,R)=>({...A,active:t?A.id===t:R===0})),[e,t]),{visibleList:b,tabBarRef:S,tabRefs:w,AddonTab:x}=wR(v),O=h??E.createElement($d,{title:"Nothing found"});return!y&&v.length===0?O:E.createElement(EH,{absolute:o,bordered:i,id:f},E.createElement(jd,{scrollable:!1,border:!0,backgroundColor:c},E.createElement(Dv,{style:{whiteSpace:"normal"},ref:S,role:"tablist"},b.map(({title:A,id:R,active:T,color:F},N)=>{const L=`index-${N}`;return E.createElement(vu,{id:`tabbutton-${hd(R)??L}`,ref:B=>{w.current.set(R,B)},className:`tabbutton ${T?"tabbutton-active":""}`,type:"button",key:R,active:T,textColor:F,onClick:B=>{B.preventDefault(),n.onSelect(R)},role:"tab"},typeof A=="function"?E.createElement("title",null):A)}),E.createElement(x,{menuName:p,actions:n})),s),E.createElement(SH,{id:"panel-tab-content",bordered:i,absolute:o},v.length?v.map(({id:A,active:R,render:T})=>E.createElement(AH,{key:A,active:R},E.createElement(T,{active:R},null))):O))});_v.displayName="Tabs";var Ov=class extends C.Component{constructor(t){super(t),this.handlers={onSelect:d(n=>this.setState({selected:n}),"onSelect")},this.state={selected:t.initial}}render(){const{bordered:t=!1,absolute:n=!1,children:o,backgroundColor:i,menuName:s}=this.props,{selected:c}=this.state;return E.createElement(_v,{bordered:t,absolute:n,selected:c,backgroundColor:i,menuName:s,actions:this.handlers},o)}};d(Ov,"TabsState");Ov.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var DR=Ov,_R=G.span(({theme:e})=>({width:1,height:20,background:e.appBorderColor,marginLeft:2,marginRight:2}),({force:e})=>e?{}:{"& + &":{display:"none"}});_R.displayName="Separator";var CH=tn`
|
|
751
|
-
from {
|
|
752
|
-
transform: rotate(0deg);
|
|
753
|
-
}
|
|
754
|
-
to {
|
|
755
|
-
transform: rotate(360deg);
|
|
756
|
-
}
|
|
757
|
-
`,wH=G.div(({size:e=32})=>({borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-(e/2),marginLeft:-(e/2),height:e,width:e,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:`${CH} 0.7s linear infinite`,mixBlendMode:"difference"})),sC=G.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),xH=G.div(({theme:e})=>({position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:br(.8,e.color.secondary),overflow:"hidden",cursor:"progress"})),DH=G.div(({theme:e})=>({position:"absolute",top:0,left:0,height:"100%",background:e.color.secondary})),uC=G.div(({theme:e})=>({minHeight:"2em",fontSize:`${e.typography.size.s1}px`,color:e.textMutedColor})),_H=G(R$)(({theme:e})=>({width:20,height:20,marginBottom:"0.5rem",color:e.textMutedColor})),OH=tn`
|
|
758
|
-
from { content: "..." }
|
|
759
|
-
33% { content: "." }
|
|
760
|
-
66% { content: ".." }
|
|
761
|
-
to { content: "..." }
|
|
762
|
-
`,TH=G.span({"&::after":{content:"'...'",animation:`${OH} 1s linear infinite`,animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),OR=d(({progress:e,error:t,size:n,...o})=>{if(t)return E.createElement(sC,{"aria-label":t.toString(),"aria-live":"polite",role:"status",...o},E.createElement(_H,null),E.createElement(uC,null,t.message));if(e){const{value:i,modules:s}=e;let{message:c}=e;return s&&(c+=` ${s.complete} / ${s.total} modules`),E.createElement(sC,{"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":i*100,"aria-valuetext":c,role:"progressbar",...o},E.createElement(xH,null,E.createElement(DH,{style:{width:`${i*100}%`}})),E.createElement(uC,null,c,i<1&&E.createElement(TH,{key:c})))}return E.createElement(wH,{"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:n,...o})},"Loader"),RH=tn({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});G.div(({size:e})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",minWidth:e,minHeight:e}));G.svg(({size:e,width:t})=>({position:"absolute",width:`${e}px!important`,height:`${e}px!important`,transform:"rotate(-90deg)",circle:{r:(e-Math.ceil(t))/2,cx:e/2,cy:e/2,opacity:.15,fill:"transparent",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeDasharray:Math.PI*(e-Math.ceil(t))}}),({progress:e})=>e&&{circle:{opacity:.75}},({spinner:e})=>e&&{animation:`${RH} 1s linear infinite`,circle:{opacity:.25}});function TR(e){const t={},n=e.split("&");for(let o=0;o<n.length;o++){const i=n[o].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1]||"")}return t}d(TR,"parseQuery");var Tv=d((e,t,n={})=>{const[o,i]=e.split("?"),s=i?{...TR(i),...n,id:t}:{...n,id:t};return`${o}?${Object.entries(s).map(c=>`${c[0]}=${c[1]}`).join("&")}`},"getStoryHref");G.pre`
|
|
763
|
-
line-height: 18px;
|
|
764
|
-
padding: 11px 1rem;
|
|
765
|
-
white-space: pre-wrap;
|
|
766
|
-
background: rgba(0, 0, 0, 0.05);
|
|
767
|
-
color: ${me.darkest};
|
|
768
|
-
border-radius: 3px;
|
|
769
|
-
margin: 1rem 0;
|
|
770
|
-
width: 100%;
|
|
771
|
-
display: block;
|
|
772
|
-
overflow: hidden;
|
|
773
|
-
font-family: ${mn.fonts.mono};
|
|
774
|
-
font-size: ${mn.size.s2-1}px;
|
|
775
|
-
`;var RR=U3;Object.keys(U3).forEach(e=>{C.forwardRef((t,n)=>C.createElement(e,{...t,ref:n}))});const FH=Object.freeze(Object.defineProperty({__proto__:null,A:x3,ActionBar:iT,Bar:xv,Blockquote:D3,Button:Xa,Code:iv,DL:_3,Div:O3,EmptyTabContent:$d,ErrorFormatter:hR,FlexBar:jd,Form:xl,H1:T3,H2:lv,H3:sv,H4:R3,H5:F3,H6:B3,HR:M3,IconButton:Kn,Img:L3,LI:N3,Link:tu,ListItem:ER,Loader:OR,OL:k3,P:z3,Pre:j3,ResetWrapper:ov,ScrollArea:Yy,Separator:_R,Span:$3,SyntaxHighlighter:yu,TT:P3,TabBar:Dv,TabButton:vu,Table:I3,Tabs:_v,TabsState:DR,TooltipLinkList:SR,TooltipNote:WI,UL:H3,WithTooltip:GI,WithTooltipPure:bR,Zoom:pR,codeCommon:ra,components:RR,createCopyToClipboardFunction:LT,getStoryHref:Tv,nameSpaceClassNames:nt,withReset:it},Symbol.toStringTag,{value:"Module"}));function Ut(){return Ut=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Ut.apply(null,arguments)}_(Ut,"_extends");function FR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}_(FR,"_assertThisInitialized");function ml(e,t){return ml=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},ml(e,t)}_(ml,"_setPrototypeOf");function BR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ml(e,t)}_(BR,"_inheritsLoose");function qf(e){return qf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qf(e)}_(qf,"_getPrototypeOf");function MR(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}_(MR,"_isNativeFunction");function Rv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rv=_(function(){return!!e},"_isNativeReflectConstruct"))()}_(Rv,"_isNativeReflectConstruct");function LR(e,t,n){if(Rv())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var i=new(e.bind.apply(e,o));return n&&ml(i,n.prototype),i}_(LR,"_construct");function Gf(e){var t=typeof Map=="function"?new Map:void 0;return Gf=_(function(o){if(o===null||!MR(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(o))return t.get(o);t.set(o,i)}function i(){return LR(o,arguments,qf(this).constructor)}return _(i,"Wrapper"),i.prototype=Object.create(o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),ml(i,o)},"_wrapNativeSuper"),Gf(e)}_(Gf,"_wrapNativeSuper");function BH(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[0],i=[],s;for(s=1;s<t.length;s+=1)i.push(t[s]);return i.forEach(function(c){o=o.replace(/%[a-z]/,c)}),o}_(BH,"format");var Qt=(function(e){BR(t,e);function t(n){var o;return o=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+n+" for more information.")||this,FR(o)}return _(t,"PolishedError"),t})(Gf(Error));function v0(e,t){return e.substr(-t.length)===t}_(v0,"endsWith");var MH=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function b0(e){if(typeof e!="string")return e;var t=e.match(MH);return t?parseFloat(e):e}_(b0,"stripUnit");var LH=_(function(t){return function(n,o){o===void 0&&(o="16px");var i=n,s=o;if(typeof n=="string"){if(!v0(n,"px"))throw new Qt(69,t,n);i=b0(n)}if(typeof o=="string"){if(!v0(o,"px"))throw new Qt(70,t,o);s=b0(o)}if(typeof i=="string")throw new Qt(71,n,t);if(typeof s=="string")throw new Qt(72,o,t);return""+i/s+t}},"pxtoFactory"),NR=LH;NR("em");NR("rem");function pf(e){return Math.round(e*255)}_(pf,"colorToInt");function kR(e,t,n){return pf(e)+","+pf(t)+","+pf(n)}_(kR,"convertToInt");function yl(e,t,n,o){if(o===void 0&&(o=kR),t===0)return o(n,n,n);var i=(e%360+360)%360/60,s=(1-Math.abs(2*n-1))*t,c=s*(1-Math.abs(i%2-1)),f=0,p=0,h=0;i>=0&&i<1?(f=s,p=c):i>=1&&i<2?(f=c,p=s):i>=2&&i<3?(p=s,h=c):i>=3&&i<4?(p=c,h=s):i>=4&&i<5?(f=c,h=s):i>=5&&i<6&&(f=s,h=c);var y=n-s/2,v=f+y,b=p+y,S=h+y;return o(v,b,S)}_(yl,"hslToRgb");var cC={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function zR(e){if(typeof e!="string")return e;var t=e.toLowerCase();return cC[t]?"#"+cC[t]:e}_(zR,"nameToHex");var NH=/^#[a-fA-F0-9]{6}$/,kH=/^#[a-fA-F0-9]{8}$/,zH=/^#[a-fA-F0-9]{3}$/,jH=/^#[a-fA-F0-9]{4}$/,Ig=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,$H=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,PH=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,IH=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function $o(e){if(typeof e!="string")throw new Qt(3);var t=zR(e);if(t.match(NH))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(kH)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(zH))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(jH)){var o=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:o}}var i=Ig.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)};var s=$H.exec(t.substring(0,50));if(s)return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10),alpha:parseFloat(""+s[4])>1?parseFloat(""+s[4])/100:parseFloat(""+s[4])};var c=PH.exec(t);if(c){var f=parseInt(""+c[1],10),p=parseInt(""+c[2],10)/100,h=parseInt(""+c[3],10)/100,y="rgb("+yl(f,p,h)+")",v=Ig.exec(y);if(!v)throw new Qt(4,t,y);return{red:parseInt(""+v[1],10),green:parseInt(""+v[2],10),blue:parseInt(""+v[3],10)}}var b=IH.exec(t.substring(0,50));if(b){var S=parseInt(""+b[1],10),w=parseInt(""+b[2],10)/100,x=parseInt(""+b[3],10)/100,O="rgb("+yl(S,w,x)+")",A=Ig.exec(O);if(!A)throw new Qt(4,t,O);return{red:parseInt(""+A[1],10),green:parseInt(""+A[2],10),blue:parseInt(""+A[3],10),alpha:parseFloat(""+b[4])>1?parseFloat(""+b[4])/100:parseFloat(""+b[4])}}throw new Qt(5)}_($o,"parseToRgb");function jR(e){var t=e.red/255,n=e.green/255,o=e.blue/255,i=Math.max(t,n,o),s=Math.min(t,n,o),c=(i+s)/2;if(i===s)return e.alpha!==void 0?{hue:0,saturation:0,lightness:c,alpha:e.alpha}:{hue:0,saturation:0,lightness:c};var f,p=i-s,h=c>.5?p/(2-i-s):p/(i+s);switch(i){case t:f=(n-o)/p+(n<o?6:0);break;case n:f=(o-t)/p+2;break;default:f=(t-n)/p+4;break}return f*=60,e.alpha!==void 0?{hue:f,saturation:h,lightness:c,alpha:e.alpha}:{hue:f,saturation:h,lightness:c}}_(jR,"rgbToHsl");function aa(e){return jR($o(e))}_(aa,"parseToHsl");var HH=_(function(t){return t.length===7&&t[1]===t[2]&&t[3]===t[4]&&t[5]===t[6]?"#"+t[1]+t[3]+t[5]:t},"reduceHexValue"),E0=HH;function ka(e){var t=e.toString(16);return t.length===1?"0"+t:t}_(ka,"numberToHex");function hf(e){return ka(Math.round(e*255))}_(hf,"colorToHex");function $R(e,t,n){return E0("#"+hf(e)+hf(t)+hf(n))}_($R,"convertToHex");function nu(e,t,n){return yl(e,t,n,$R)}_(nu,"hslToHex");function PR(e,t,n){if(typeof e=="number"&&typeof t=="number"&&typeof n=="number")return nu(e,t,n);if(typeof e=="object"&&t===void 0&&n===void 0)return nu(e.hue,e.saturation,e.lightness);throw new Qt(1)}_(PR,"hsl");function IR(e,t,n,o){if(typeof e=="number"&&typeof t=="number"&&typeof n=="number"&&typeof o=="number")return o>=1?nu(e,t,n):"rgba("+yl(e,t,n)+","+o+")";if(typeof e=="object"&&t===void 0&&n===void 0&&o===void 0)return e.alpha>=1?nu(e.hue,e.saturation,e.lightness):"rgba("+yl(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Qt(2)}_(IR,"hsla");function Vf(e,t,n){if(typeof e=="number"&&typeof t=="number"&&typeof n=="number")return E0("#"+ka(e)+ka(t)+ka(n));if(typeof e=="object"&&t===void 0&&n===void 0)return E0("#"+ka(e.red)+ka(e.green)+ka(e.blue));throw new Qt(6)}_(Vf,"rgb");function Yr(e,t,n,o){if(typeof e=="string"&&typeof t=="number"){var i=$o(e);return"rgba("+i.red+","+i.green+","+i.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof n=="number"&&typeof o=="number")return o>=1?Vf(e,t,n):"rgba("+e+","+t+","+n+","+o+")";if(typeof e=="object"&&t===void 0&&n===void 0&&o===void 0)return e.alpha>=1?Vf(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Qt(7)}_(Yr,"rgba");var UH=_(function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},"isRgb"),qH=_(function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&typeof t.alpha=="number"},"isRgba"),GH=_(function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},"isHsl"),VH=_(function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&typeof t.alpha=="number"},"isHsla");function oa(e){if(typeof e!="object")throw new Qt(8);if(qH(e))return Yr(e);if(UH(e))return Vf(e);if(VH(e))return IR(e);if(GH(e))return PR(e);throw new Qt(8)}_(oa,"toColorString");function Fv(e,t,n){return _(function(){var i=n.concat(Array.prototype.slice.call(arguments));return i.length>=t?e.apply(this,i):Fv(e,t,i)},"fn")}_(Fv,"curried");function lr(e){return Fv(e,e.length,[])}_(lr,"curry");function HR(e,t){if(t==="transparent")return t;var n=aa(t);return oa(Ut({},n,{hue:n.hue+parseFloat(e)}))}_(HR,"adjustHue");lr(HR);function Uo(e,t,n){return Math.max(e,Math.min(t,n))}_(Uo,"guard");function UR(e,t){if(t==="transparent")return t;var n=aa(t);return oa(Ut({},n,{lightness:Uo(0,1,n.lightness-parseFloat(e))}))}_(UR,"darken");var YH=lr(UR),pn=YH;function qR(e,t){if(t==="transparent")return t;var n=aa(t);return oa(Ut({},n,{saturation:Uo(0,1,n.saturation-parseFloat(e))}))}_(qR,"desaturate");lr(qR);function GR(e,t){if(t==="transparent")return t;var n=aa(t);return oa(Ut({},n,{lightness:Uo(0,1,n.lightness+parseFloat(e))}))}_(GR,"lighten");var WH=lr(GR),So=WH;function VR(e,t,n){if(t==="transparent")return n;if(n==="transparent")return t;if(e===0)return n;var o=$o(t),i=Ut({},o,{alpha:typeof o.alpha=="number"?o.alpha:1}),s=$o(n),c=Ut({},s,{alpha:typeof s.alpha=="number"?s.alpha:1}),f=i.alpha-c.alpha,p=parseFloat(e)*2-1,h=p*f===-1?p:p+f,y=1+p*f,v=(h/y+1)/2,b=1-v,S={red:Math.floor(i.red*v+c.red*b),green:Math.floor(i.green*v+c.green*b),blue:Math.floor(i.blue*v+c.blue*b),alpha:i.alpha*parseFloat(e)+c.alpha*(1-parseFloat(e))};return Yr(S)}_(VR,"mix");var KH=lr(VR),YR=KH;function WR(e,t){if(t==="transparent")return t;var n=$o(t),o=typeof n.alpha=="number"?n.alpha:1,i=Ut({},n,{alpha:Uo(0,1,(o*100+parseFloat(e)*100)/100)});return Yr(i)}_(WR,"opacify");var XH=lr(WR),Wc=XH;function KR(e,t){if(t==="transparent")return t;var n=aa(t);return oa(Ut({},n,{saturation:Uo(0,1,n.saturation+parseFloat(e))}))}_(KR,"saturate");lr(KR);function XR(e,t){return t==="transparent"?t:oa(Ut({},aa(t),{hue:parseFloat(e)}))}_(XR,"setHue");lr(XR);function ZR(e,t){return t==="transparent"?t:oa(Ut({},aa(t),{lightness:parseFloat(e)}))}_(ZR,"setLightness");lr(ZR);function JR(e,t){return t==="transparent"?t:oa(Ut({},aa(t),{saturation:parseFloat(e)}))}_(JR,"setSaturation");lr(JR);function QR(e,t){return t==="transparent"?t:YR(parseFloat(e),"rgb(0, 0, 0)",t)}_(QR,"shade");lr(QR);function e4(e,t){return t==="transparent"?t:YR(parseFloat(e),"rgb(255, 255, 255)",t)}_(e4,"tint");lr(e4);function t4(e,t){if(t==="transparent")return t;var n=$o(t),o=typeof n.alpha=="number"?n.alpha:1,i=Ut({},n,{alpha:Uo(0,1,+(o*100-parseFloat(e)*100).toFixed(2)/100)});return Yr(i)}_(t4,"transparentize");var ZH=lr(t4),et=ZH,JH=G.div(it,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:et(.3,e.color.defaultText),fontSize:e.typography.size.s2})),r4=_(e=>E.createElement(JH,{...e,className:"docblock-emptyblock sb-unstyled"}),"EmptyBlock"),QH=G(yu)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),eU=G.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Kc=G.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Km}`]:{margin:0}})),tU=_(()=>E.createElement(eU,null,E.createElement(Kc,null),E.createElement(Kc,{style:{width:"80%"}}),E.createElement(Kc,{style:{width:"30%"}}),E.createElement(Kc,{style:{width:"80%"}})),"SourceSkeleton"),n4=_(({isLoading:e,error:t,language:n,code:o,dark:i,format:s=!0,...c})=>{const{typography:f}=JO();if(e)return E.createElement(tU,null);if(t)return E.createElement(r4,null,t);const p=E.createElement(QH,{bordered:!0,copyable:!0,format:s,language:n??"jsx",className:"docblock-source sb-unstyled",...c},o);if(typeof i>"u")return p;const h=i?qm.dark:qm.light;return E.createElement(QO,{theme:Wm({...h,fontCode:f.fonts.mono,fontBase:f.fonts.base})},p)},"Source"),rU=QM({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(n){if(typeof e=="object"&&typeof t<"u")t.exports=n();else if(typeof define=="function"&&define.amd)define([],n);else{var o;typeof window<"u"?o=window:typeof global<"u"?o=global:typeof self<"u"?o=self:o=this,o.memoizerific=n()}})(function(){return _(function n(o,i,s){function c(h,y){if(!i[h]){if(!o[h]){var v=typeof kc=="function"&&kc;if(!y&&v)return v(h,!0);if(f)return f(h,!0);var b=new Error("Cannot find module '"+h+"'");throw b.code="MODULE_NOT_FOUND",b}var S=i[h]={exports:{}};o[h][0].call(S.exports,function(w){var x=o[h][1][w];return c(x||w)},S,S.exports,n,o,i,s)}return i[h].exports}_(c,"s");for(var f=typeof kc=="function"&&kc,p=0;p<s.length;p++)c(s[p]);return c},"e")({1:[function(n,o,i){o.exports=function(s){if(typeof Map!="function"||s){var c=n("./similar");return new c}else return new Map}},{"./similar":2}],2:[function(n,o,i){function s(){return this.list=[],this.lastItem=void 0,this.size=0,this}_(s,"Similar"),s.prototype.get=function(c){var f;if(this.lastItem&&this.isEqual(this.lastItem.key,c))return this.lastItem.val;if(f=this.indexOf(c),f>=0)return this.lastItem=this.list[f],this.list[f].val},s.prototype.set=function(c,f){var p;return this.lastItem&&this.isEqual(this.lastItem.key,c)?(this.lastItem.val=f,this):(p=this.indexOf(c),p>=0?(this.lastItem=this.list[p],this.list[p].val=f,this):(this.lastItem={key:c,val:f},this.list.push(this.lastItem),this.size++,this))},s.prototype.delete=function(c){var f;if(this.lastItem&&this.isEqual(this.lastItem.key,c)&&(this.lastItem=void 0),f=this.indexOf(c),f>=0)return this.size--,this.list.splice(f,1)[0]},s.prototype.has=function(c){var f;return this.lastItem&&this.isEqual(this.lastItem.key,c)?!0:(f=this.indexOf(c),f>=0?(this.lastItem=this.list[f],!0):!1)},s.prototype.forEach=function(c,f){var p;for(p=0;p<this.size;p++)c.call(f||this,this.list[p].val,this.list[p].key,this)},s.prototype.indexOf=function(c){var f;for(f=0;f<this.size;f++)if(this.isEqual(this.list[f].key,c))return f;return-1},s.prototype.isEqual=function(c,f){return c===f||c!==c&&f!==f},o.exports=s},{}],3:[function(n,o,i){var s=n("map-or-similar");o.exports=function(h){var y=new s(!1),v=[];return function(b){var S=_(function(){var w=y,x,O,A=arguments.length-1,R=Array(A+1),T=!0,F;if((S.numArgs||S.numArgs===0)&&S.numArgs!==A+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(F=0;F<A;F++){if(R[F]={cacheItem:w,arg:arguments[F]},w.has(arguments[F])){w=w.get(arguments[F]);continue}T=!1,x=new s(!1),w.set(arguments[F],x),w=x}return T&&(w.has(arguments[A])?O=w.get(arguments[A]):T=!1),T||(O=b.apply(null,arguments),w.set(arguments[A],O)),h>0&&(R[A]={cacheItem:w,arg:arguments[A]},T?c(v,R):v.push(R),v.length>h&&f(v.shift())),S.wasMemoized=T,S.numArgs=A+1,O},"memoizerific");return S.limit=h,S.wasMemoized=!1,S.cache=y,S.lru=v,S}};function c(h,y){var v=h.length,b=y.length,S,w,x;for(w=0;w<v;w++){for(S=!0,x=0;x<b;x++)if(!p(h[w][x].arg,y[x].arg)){S=!1;break}if(S)break}h.push(h.splice(w,1)[0])}_(c,"moveToMostRecentLru");function f(h){var y=h.length,v=h[y-1],b,S;for(v.cacheItem.delete(v.arg),S=y-2;S>=0&&(v=h[S],b=v.cacheItem.get(v.arg),!b||!b.size);S--)v.cacheItem.delete(v.arg)}_(f,"removeCachedResult");function p(h,y){return h===y||h!==h&&y!==y}_(p,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}});const{once:nU}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function a4(e){return e==null||typeof e!="object"&&typeof e!="function"}_(a4,"isPrimitive");function o4(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}_(o4,"isTypedArray");function i4(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}_(i4,"getSymbols");function l4(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}_(l4,"getTag");var aU="[object RegExp]",oU="[object String]",iU="[object Number]",lU="[object Boolean]",sU="[object Arguments]",uU="[object Symbol]",cU="[object Date]",fU="[object Map]",dU="[object Set]",pU="[object Array]",hU="[object ArrayBuffer]",gU="[object Object]",mU="[object DataView]",yU="[object Uint8Array]",vU="[object Uint8ClampedArray]",bU="[object Uint16Array]",EU="[object Uint32Array]",SU="[object Int8Array]",AU="[object Int16Array]",CU="[object Int32Array]",wU="[object Float32Array]",xU="[object Float64Array]";function Do(e,t,n,o=new Map,i=void 0){const s=i?.(e,t,n,o);if(s!==void 0)return s;if(a4(e))return e;if(o.has(e))return o.get(e);if(Array.isArray(e)){const c=new Array(e.length);o.set(e,c);for(let f=0;f<e.length;f++)c[f]=Do(e[f],f,n,o,i);return Object.hasOwn(e,"index")&&(c.index=e.index),Object.hasOwn(e,"input")&&(c.input=e.input),c}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const c=new RegExp(e.source,e.flags);return c.lastIndex=e.lastIndex,c}if(e instanceof Map){const c=new Map;o.set(e,c);for(const[f,p]of e)c.set(f,Do(p,f,n,o,i));return c}if(e instanceof Set){const c=new Set;o.set(e,c);for(const f of e)c.add(Do(f,void 0,n,o,i));return c}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(o4(e)){const c=new(Object.getPrototypeOf(e)).constructor(e.length);o.set(e,c);for(let f=0;f<e.length;f++)c[f]=Do(e[f],f,n,o,i);return c}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const c=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return o.set(e,c),Hi(c,e,n,o,i),c}if(typeof File<"u"&&e instanceof File){const c=new File([e],e.name,{type:e.type});return o.set(e,c),Hi(c,e,n,o,i),c}if(e instanceof Blob){const c=new Blob([e],{type:e.type});return o.set(e,c),Hi(c,e,n,o,i),c}if(e instanceof Error){const c=new e.constructor;return o.set(e,c),c.message=e.message,c.name=e.name,c.stack=e.stack,c.cause=e.cause,Hi(c,e,n,o,i),c}if(typeof e=="object"&&s4(e)){const c=Object.create(Object.getPrototypeOf(e));return o.set(e,c),Hi(c,e,n,o,i),c}return e}_(Do,"cloneDeepWithImpl");function Hi(e,t,n=e,o,i){const s=[...Object.keys(t),...i4(t)];for(let c=0;c<s.length;c++){const f=s[c],p=Object.getOwnPropertyDescriptor(e,f);(p==null||p.writable)&&(e[f]=Do(t[f],f,n,o,i))}}_(Hi,"copyProperties");function s4(e){switch(l4(e)){case sU:case pU:case hU:case mU:case lU:case cU:case wU:case xU:case SU:case AU:case CU:case fU:case iU:case gU:case aU:case dU:case oU:case uU:case yU:case vU:case bU:case EU:return!0;default:return!1}}_(s4,"isCloneableObject");function u4(e){return Do(e,void 0,e,new Map,void 0)}_(u4,"cloneDeep");function c4(e,t){const n={},o=Object.keys(e);for(let i=0;i<o.length;i++){const s=o[i],c=e[s];t(c,s)&&(n[s]=c)}return n}_(c4,"pickBy");var St=_(e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,"toGlobalSelector"),Bv=600,DU=G.h1(it,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Bv}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),_U=G.h2(it,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Bv}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:et(.25,e.color.defaultText)})),OU=G.div(({theme:e})=>{const t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},n={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},o={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?et(.1,e.color.defaultText):et(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,[St("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[St("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[St("div")]:t,[St("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[St("h1")]:{...t,...n,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[St("h2")]:{...t,...n,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[St("h3")]:{...t,...n,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[St("h4")]:{...t,...n,fontSize:`${e.typography.size.s3}px`},[St("h5")]:{...t,...n,fontSize:`${e.typography.size.s2}px`},[St("h6")]:{...t,...n,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[St("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[St("img")]:{maxWidth:"100%"},[St("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":o},[St("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[St("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":o},[St("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[St("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[St("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[St("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),TU=G.div(({theme:e})=>({background:e.background.content,display:"flex",flexDirection:"row-reverse",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Bv}px)`]:{}})),RU=_(({children:e,toc:t})=>E.createElement(TU,{className:"sbdocs sbdocs-wrapper"},t,E.createElement(OU,{className:"sbdocs sbdocs-content"},e)),"DocsPageWrapper");globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=C.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var nn=globalThis?globalThis.__DOCS_CONTEXT__:C.createContext(null);function f4(e,t){const n=d4([e],t);return n&&n[0]}_(f4,"useStory");function d4(e,t){const[n,o]=C.useState({});return C.useEffect(()=>{Promise.all(e.map(async i=>{const s=await t.loadStory(i);o(c=>c[i]===s?c:{...c,[i]:s})}))}),e.map(i=>{if(n[i])return n[i];try{return t.storyById(i)}catch{return}})}_(d4,"useStories");var p4=_((e,t)=>{const{of:n,meta:o}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return o&&t.referenceMeta(o,!1),t.resolveOf(n||"story",["story"]).story.id},"getStoryId"),FU=_((e,t,n)=>{const{parameters:o={}}=t||{},{docs:i={}}=o,s=i.story||{};if(i.disable)return null;if(e.inline??s.inline??!1){const p=e.height??s.height,h=e.autoplay??s.autoplay??!1;return{story:t,inline:!0,height:p,autoplay:h,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:n.renderStoryToElement}}const f=e.height??s.height??s.iframeHeight??"100px";return{story:t,inline:!1,height:f,primary:!!e.__primary}},"getStoryProps"),BU=_((e={__forceInitialArgs:!1,__primary:!1})=>{const t=C.useContext(nn),n=p4(e,t),o=f4(n,t);if(!o)return E.createElement(m4,null);const i=FU(e,o,t);return i?E.createElement(PU,{...i}):null},"Story"),Pd=_(e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),"getBlockBackgroundStyle"),{window:MU}=globalThis,h4=class extends C.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){const{id:t}=this.props;this.iframe=MU.document.getElementById(t)}shouldComponentUpdate(t){const{scale:n}=t;return n!==this.props.scale&&this.setIframeBodyStyle({width:`${n*100}%`,height:`${n*100}%`,transform:`scale(${1/n})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(t){return Object.assign(this.iframe.contentDocument.body.style,t)}render(){const{id:t,title:n,src:o,allowFullScreen:i,scale:s,...c}=this.props;return E.createElement("iframe",{id:t,title:n,src:o,...i?{allow:"fullscreen"}:{},loading:"lazy",...c})}};_(h4,"IFrame");var LU=h4,g4=C.createContext({scale:1}),{PREVIEW_URL:NU}=globalThis,kU=NU||"iframe.html",S0=_(({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,"storyBlockIdFromId"),zU=_(e=>{const t=C.useRef(),[n,o]=C.useState(!0),[i,s]=C.useState(),{story:c,height:f,autoplay:p,forceInitialArgs:h,renderStoryToElement:y}=e;return C.useEffect(()=>{if(!(c&&t.current))return()=>{};const v=t.current,b=y(c,v,{showMain:_(()=>{},"showMain"),showError:_(({title:S,description:w})=>s(new Error(`${S} - ${w}`)),"showError"),showException:_(S=>s(S),"showException")},{autoplay:p,forceInitialArgs:h});return o(!1),()=>{Promise.resolve().then(()=>b())}},[p,y,c]),i?E.createElement("pre",null,E.createElement(hR,{error:i})):E.createElement(E.Fragment,null,f?E.createElement("style",null,`#${S0(e)} { min-height: ${f}; transform: translateZ(0); overflow: auto }`):null,n&&E.createElement(m4,null),E.createElement("div",{ref:t,id:`${S0(e)}-inner`,"data-name":c.name}))},"InlineStory"),jU=_(({story:e,height:t="500px"})=>E.createElement("div",{style:{width:"100%",height:t}},E.createElement(g4.Consumer,null,({scale:n})=>E.createElement(LU,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:Tv(kU,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:n,style:{width:"100%",height:"100%",border:"0 none"}}))),"IFrameStory"),$U=G.strong(({theme:e})=>({color:e.color.orange})),PU=_(e=>{const{inline:t,story:n}=e;return t&&!e.autoplay&&n.usesMount?E.createElement($U,null,"This story mounts inside of play. Set"," ",E.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay"},"autoplay")," ","to true to view this story."):E.createElement("div",{id:S0(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?E.createElement(zU,{...e}):E.createElement(jU,{...e}))},"Story"),m4=_(()=>E.createElement(OR,null),"StorySkeleton"),IU=G(jd)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),Hg=G.div({display:"flex",alignItems:"center",gap:4}),fC=G.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),HU=_(({isLoading:e,storyId:t,baseUrl:n,zoom:o,resetZoom:i,...s})=>E.createElement(IU,{...s},E.createElement(Hg,{key:"left"},e?[1,2,3].map(c=>E.createElement(fC,{key:c})):E.createElement(E.Fragment,null,E.createElement(Kn,{key:"zoomin",onClick:c=>{c.preventDefault(),o(.8)},title:"Zoom in"},E.createElement(x$,null)),E.createElement(Kn,{key:"zoomout",onClick:c=>{c.preventDefault(),o(1.25)},title:"Zoom out"},E.createElement(D$,null)),E.createElement(Kn,{key:"zoomreset",onClick:c=>{c.preventDefault(),i()},title:"Reset zoom"},E.createElement(_$,null)))),e?E.createElement(Hg,{key:"right"},E.createElement(fC,null)):n&&t&&E.createElement(Hg,{key:"right"},E.createElement(Kn,{key:"opener",asChild:!0},E.createElement("a",{href:Tv(n,t),target:"_blank",rel:"noopener noreferrer","aria-label":"Open canvas in new tab"},E.createElement(N$,null))))),"Toolbar"),UU=G.div(({isColumn:e,columns:t,layout:n})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:n!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:n!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded",inline:t})=>e==="centered"||e==="padded"?{padding:t?"32px 22px":"0px","& .innerZoomElementWrapper > *":{width:"auto",border:"8px solid transparent!important"}}:{},({layout:e="padded",inline:t})=>e==="centered"&&t?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),dC=G(n4)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":pn(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":pn(.05,e.background.content)}})),qU=G.div(({theme:e,withSource:t,isExpanded:n})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Pd(e),borderBottomLeftRadius:t&&n&&0,borderBottomRightRadius:t&&n&&0,borderBottomWidth:n&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),GU=_((e,t,n)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:_(()=>n(!1),"onClick")}};case t:return{source:E.createElement(dC,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:_(()=>n(!1),"onClick")}};default:return{source:E.createElement(dC,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:_(()=>n(!0),"onClick")}}}},"getSource");function y4(e){if(C.Children.count(e)===1){const t=e;if(t.props)return t.props}return null}_(y4,"getChildProps");var VU=G(HU)({position:"absolute",top:0,left:0,right:0,height:40}),YU=G.div({overflow:"hidden",position:"relative"}),v4=_(({isLoading:e,isColumn:t,columns:n,children:o,withSource:i,withToolbar:s=!1,isExpanded:c=!1,additionalActions:f,className:p,layout:h="padded",inline:y=!1,...v})=>{const[b,S]=C.useState(c),{source:w,actionItem:x}=GU(i,b,S),[O,A]=C.useState(1),R=[p].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),T=i?[x]:[],[F,N]=C.useState(f?[...f]:[]),L=[...T,...F],{window:B}=globalThis,$=C.useContext(nn),P=C.useCallback(async Q=>{const{createCopyToClipboardFunction:X}=await Ua(async()=>{const{createCopyToClipboardFunction:z}=await Promise.resolve().then(()=>FH);return{createCopyToClipboardFunction:z}},void 0,import.meta.url);X()},[]),I=_(Q=>{const X=B.getSelection();X&&X.type==="Range"||(Q.preventDefault(),F.filter(z=>z.title==="Copied").length===0&&P(w?.props.code??"").then(()=>{N([...F,{title:"Copied",onClick:_(()=>{},"onClick")}]),B.setTimeout(()=>N(F.filter(z=>z.title!=="Copied")),1500)}))},"onCopyCapture"),U=y4(o);return E.createElement(qU,{withSource:i,withToolbar:s,...v,className:R.join(" ")},s&&E.createElement(VU,{isLoading:e,border:!0,zoom:Q=>A(O*Q),resetZoom:()=>A(1),storyId:!e&&U?p4(U,$):void 0,baseUrl:"./iframe.html"}),E.createElement(g4.Provider,{value:{scale:O}},E.createElement(YU,{className:"docs-story",onCopyCapture:i&&I},E.createElement(UU,{isColumn:t||!Array.isArray(o),columns:n,layout:h,inline:y},E.createElement(pR.Element,{centered:h==="centered",scale:y?O:1},Array.isArray(o)?o.map((Q,X)=>E.createElement("div",{key:X},Q)):E.createElement("div",null,o))),E.createElement(iT,{actionItems:L}))),i&&b&&w)},"Preview");G(v4)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var WU=_(({tabs:e,...t})=>{const n=Object.entries(e);return n.length===1?E.createElement(F0,{...n[0][1],...t}):E.createElement(DR,null,n.map((o,i)=>{const[s,c]=o,f=`prop_table_div_${s}`,p="div",h=i===0?t:{sort:t.sort};return E.createElement(p,{key:f,id:f,title:s},({active:y})=>y?E.createElement(F0,{key:`prop_table_${s}`,...c,...h}):null)}))},"TabbedArgsTable");G.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?et(.4,e.color.defaultText):et(.6,e.color.defaultText)}));G.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});G.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});G.div(it,({theme:e})=>({...Pd(e),margin:"25px 0 40px",padding:"30px 20px"}));G.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));G.div(({theme:e})=>({color:e.base==="light"?et(.2,e.color.defaultText):et(.6,e.color.defaultText)}));G.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});var KU=G.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?et(.4,e.color.defaultText):et(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}})),pC=G.div({display:"flex",flexDirection:"row"}),XU=G.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}})),hC=G.div(({theme:e})=>({...Pd(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"})),gC=G.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});G.div({flex:1,display:"flex",flexDirection:"row"});G.div({display:"flex",alignItems:"flex-start"});G.div({flex:"0 0 30%"});G.div({flex:1});G.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?et(.4,e.color.defaultText):et(.6,e.color.defaultText)}));G.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));function A0(e,t){return E.createElement(XU,{key:`${e}-${t}`,title:e,background:e})}_(A0,"renderSwatch");function C0(e,t,n){return E.createElement(KU,{key:`${e}-${t}`,title:e},E.createElement("div",null,e,n&&E.createElement("span",null,n)))}_(C0,"renderSwatchLabel");function ZU(e){if(Array.isArray(e))return E.createElement(gC,null,E.createElement(hC,null,e.map((o,i)=>A0(o,i))),E.createElement(pC,null,e.map((o,i)=>C0(o,i))));const t=[],n=[];for(const o in e){const i=e[o];t.push(A0(i,t.length)),n.push(C0(o,n.length,i))}return E.createElement(gC,null,E.createElement(hC,null,t),E.createElement(pC,null,n))}_(ZU,"renderSwatchSpecimen");G.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s1,color:e.color.defaultText,marginLeft:10,lineHeight:1.2,display:"-webkit-box",overflow:"hidden",wordBreak:"break-word",textOverflow:"ellipsis",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}));G.div(({theme:e})=>({...Pd(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));G.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"});G.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50});const{NAVIGATE_URL:JU}=__STORYBOOK_MODULE_CORE_EVENTS__;function b4(e){const t=[].forEach,n=[].some,o=typeof window<"u"&&document.body,i=" ";let s,c=!0,f=0;function p(I,U){const Q=U.appendChild(y(I));if(I.children.length){const X=v(I.isCollapsed);I.children.forEach(z=>{p(z,X)}),Q.appendChild(X)}}_(p,"createEl");function h(I,U){const X=v(!1);if(U.forEach(z=>{p(z,X)}),s=I||s,s!==null)return s.firstChild&&s.removeChild(s.firstChild),U.length===0?s:s.appendChild(X)}_(h,"render");function y(I){const U=document.createElement("li"),Q=document.createElement("a");return e.listItemClass&&U.setAttribute("class",e.listItemClass),e.onClick&&(Q.onclick=e.onClick),e.includeTitleTags&&Q.setAttribute("title",I.textContent),e.includeHtml&&I.childNodes.length?t.call(I.childNodes,X=>{Q.appendChild(X.cloneNode(!0))}):Q.textContent=I.textContent,Q.setAttribute("href",`${e.basePath}#${I.id}`),Q.setAttribute("class",`${e.linkClass+i}node-name--${I.nodeName}${i}${e.extraLinkClasses}`),U.appendChild(Q),U}_(y,"createLink");function v(I){const U=e.orderedList?"ol":"ul",Q=document.createElement(U);let X=e.listClass+i+e.extraListClasses;return I&&(X=X+i+e.collapsibleClass,X=X+i+e.isCollapsedClass),Q.setAttribute("class",X),Q}_(v,"createList");function b(){const I=B(),U=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=s.offsetTop),I>e.fixedSidebarOffset?U.className.indexOf(e.positionFixedClass)===-1&&(U.className+=i+e.positionFixedClass):U.className=U.className.replace(i+e.positionFixedClass,"")}_(b,"updateFixedSidebarClass");function S(I){let U=0;return I!==null&&(U=I.offsetTop,e.hasInnerContainers&&(U+=S(I.offsetParent))),U}_(S,"getHeadingTopPos");function w(I,U){return I&&I.className!==U&&(I.className=U),I}_(w,"updateClassname");function x(I,U){e.positionFixedSelector&&b();const Q=I,X=U?.target?.getAttribute?U?.target?.getAttribute("href"):null,z=X&&X.charAt(0)==="#"?F(X.replace("#","")):!1,q=c||z;if(U&&f<5&&f++,q&&s&&Q.length>0){const k=$(Q),Y=s.querySelector(`.${e.activeLinkClass}`),ae=k.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),le=window.location.hash.replace("#","");let ce=ae;const j=N();X&&z?ce=X.replace("#",""):le&&le!==ae&&j&&(F(ae)||f<=2)&&(ce=le);const W=s.querySelector(`.${e.linkClass}[href="${e.basePath}#${ce}"]`);if(Y===W)return;const ne=s.querySelectorAll(`.${e.linkClass}`);t.call(ne,pe=>{w(pe,pe.className.replace(i+e.activeLinkClass,""))});const ue=s.querySelectorAll(`.${e.listItemClass}`);t.call(ue,pe=>{w(pe,pe.className.replace(i+e.activeListItemClass,""))}),W&&W.className.indexOf(e.activeLinkClass)===-1&&(W.className+=i+e.activeLinkClass);const se=W?.parentNode;se&&se.className.indexOf(e.activeListItemClass)===-1&&(se.className+=i+e.activeListItemClass);const fe=s.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(fe,pe=>{pe.className.indexOf(e.isCollapsedClass)===-1&&(pe.className+=i+e.isCollapsedClass)}),W?.nextSibling&&W.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&w(W.nextSibling,W.nextSibling.className.replace(i+e.isCollapsedClass,"")),O(W?.parentNode.parentNode)}}_(x,"updateToc");function O(I){return I&&I.className.indexOf(e.collapsibleClass)!==-1&&I.className.indexOf(e.isCollapsedClass)!==-1?(w(I,I.className.replace(i+e.isCollapsedClass,"")),O(I.parentNode.parentNode)):I}_(O,"removeCollapsedFromParents");function A(I){const U=I.target||I.srcElement;typeof U.className!="string"||U.className.indexOf(e.linkClass)===-1||(c=!1)}_(A,"disableTocAnimation");function R(){c=!0}_(R,"enableTocAnimation");function T(){return c}_(T,"getCurrentlyHighlighting");function F(I){const U=L();return(document?.getElementById(I)).offsetTop>U.offsetHeight-U.clientHeight*1.4-e.bottomModeThreshold}_(F,"getIsHeaderBottomMode");function N(){const I=L(),U=I.scrollHeight>I.clientHeight,Q=B()+I.clientHeight>I.offsetHeight-e.bottomModeThreshold;return U&&Q}_(N,"getIsPageBottomMode");function L(){let I;return e.scrollContainer&&document.querySelector(e.scrollContainer)?I=document.querySelector(e.scrollContainer):I=document.documentElement||o,I}_(L,"getScrollEl");function B(){return L()?.scrollTop||0}_(B,"getScrollTop");function $(I,U=B()){let Q;return n.call(I,(X,z)=>{if(S(X)>U+e.headingsOffset+10){const q=z===0?z:z-1;return Q=I[q],!0}if(z===I.length-1)return Q=I[I.length-1],!0}),Q}_($,"getTopHeader");function P(I){const U=B(),Q=$(I,U),X=N();if((!Q||U<5)&&!X)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(Q&&!X){const z=`#${Q.id}`;window.location.hash!==z&&window.history.pushState(null,null,z)}}return _(P,"updateUrlHashForHeader"),{enableTocAnimation:R,disableTocAnimation:A,render:h,updateToc:x,getCurrentlyHighlighting:T,getTopHeader:$,getScrollTop:B,updateUrlHashForHeader:P}}_(b4,"default");var QU={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:_(function(e){},"scrollEndCallback"),headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:"auto",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:_(function(e){},"onClick"),orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function E4(e){const t=[].reduce;function n(h){return h[h.length-1]}_(n,"getLastItem");function o(h){return+h.nodeName.toUpperCase().replace("H","")}_(o,"getHeadingLevel");function i(h){try{return h instanceof window.HTMLElement||h instanceof window.parent.HTMLElement}catch{return h instanceof window.HTMLElement}}_(i,"isHTMLElement");function s(h){if(!i(h))return h;if(e.ignoreHiddenElements&&(!h.offsetHeight||!h.offsetParent))return null;const y=h.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(h.innerText)):(h.innerText||h.textContent).trim()),v={id:h.id,children:[],nodeName:h.nodeName,headingLevel:o(h),textContent:y};return e.includeHtml&&(v.childNodes=h.childNodes),e.headingObjectCallback?e.headingObjectCallback(v,h):v}_(s,"getHeadingObject");function c(h,y){const v=s(h),b=v.headingLevel;let S=y,w=n(S);const x=w?w.headingLevel:0;let O=b-x;for(;O>0&&(w=n(S),!(w&&b===w.headingLevel));)w&&w.children!==void 0&&(S=w.children),O--;return b>=e.collapseDepth&&(v.isCollapsed=!0),S.push(v),S}_(c,"addNode");function f(h,y){let v=y;e.ignoreSelector&&(v=y.split(",").map(_(function(S){return`${S.trim()}:not(${e.ignoreSelector})`},"mapSelectors")));try{return h.querySelectorAll(v)}catch{return console.warn(`Headers not found with selector: ${v}`),null}}_(f,"selectHeadings");function p(h){return t.call(h,_(function(v,b){const S=s(b);return S&&c(S,v.nest),v},"reducer"),{nest:[]})}return _(p,"nestHeadingsArray"),{nestHeadingsArray:p,selectHeadings:f}}_(E4,"parseContent");function S4(e){var t=e.duration,n=e.offset;if(typeof window>"u"||typeof location>"u")return;var o=location.hash?c(location.href):location.href;i();function i(){document.body.addEventListener("click",p,!1);function p(h){!s(h.target)||h.target.className.indexOf("no-smooth-scroll")>-1||h.target.href.charAt(h.target.href.length-2)==="#"&&h.target.href.charAt(h.target.href.length-1)==="!"||h.target.className.indexOf(e.linkClass)===-1||A4(h.target.hash,{duration:t,offset:n,callback:_(function(){f(h.target.hash)},"callback")})}_(p,"onClick")}_(i,"delegatedLinkHijacking");function s(p){return p.tagName.toLowerCase()==="a"&&(p.hash.length>0||p.href.charAt(p.href.length-1)==="#")&&(c(p.href)===o||c(p.href)+"#"===o)}_(s,"isInPageLink");function c(p){return p.slice(0,p.lastIndexOf("#"))}_(c,"stripHash");function f(p){var h=document.getElementById(p.substring(1));h&&(/^(?:a|select|input|button|textarea)$/i.test(h.tagName)||(h.tabIndex=-1),h.focus())}_(f,"setFocus")}_(S4,"initSmoothScrolling");function A4(e,t){var n=window.pageYOffset,o={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||v},i=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),s=typeof e=="string"?o.offset+(e?i&&i.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,c=typeof o.duration=="function"?o.duration(s):o.duration,f,p;requestAnimationFrame(function(b){f=b,h(b)});function h(b){p=b-f,window.scrollTo(0,o.easing(p,n,s,c)),p<c?requestAnimationFrame(h):y()}_(h,"loop");function y(){window.scrollTo(0,n+s),typeof o.callback=="function"&&o.callback()}_(y,"end");function v(b,S,w,x){return b/=x/2,b<1?w/2*b*b+S:(b--,-w/2*(b*(b-2)-1)+S)}_(v,"easeInOutQuad")}_(A4,"jump");function C4(e){const t=e.tocScrollingWrapper||e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){const n=t.querySelector(`.${e.activeListItemClass}`);if(n){const i=n.offsetTop-e.tocScrollOffset;t.scrollTop=i>0?i:0}}}_(C4,"updateTocScroll");var Ce={},Hr,Ug,vo,qr,Gs;function Mv(e){let t=!1;Ce=x4(QU,e||{}),Ce.scrollSmooth&&(Ce.duration=Ce.scrollSmoothDuration,Ce.offset=Ce.scrollSmoothOffset,S4(Ce)),Hr=b4(Ce),Ug=E4(Ce),Id();const n=_4(Ce);if(n===null)return;const o=Lv(Ce);if(o===null||(vo=Ug.selectHeadings(n,Ce.headingSelector),vo===null))return;const s=Ug.nestHeadingsArray(vo).nest;if(!Ce.skipRendering)Hr.render(o,s);else return this;let c=!1;const f=Ce.scrollHandlerTimeout||Ce.throttleTimeout;qr=_((y,v)=>D4(y,v,Ce.scrollHandlerType),"scrollHandler")(y=>{Hr.updateToc(vo,y),!Ce.disableTocScrollSync&&!c&&C4(Ce),Ce.enableUrlHashUpdateOnScroll&&t&&Hr.getCurrentlyHighlighting()&&Hr.updateUrlHashForHeader(vo);const v=y?.target?.scrollingElement?.scrollTop===0;(y&&(y.eventPhase===0||y.currentTarget===null)||v)&&(Hr.updateToc(vo),Ce.scrollEndCallback?.(y))},f),t||(qr(),t=!0),window.onhashchange=window.onscrollend=y=>{qr(y)},Ce.scrollContainer&&document.querySelector(Ce.scrollContainer)?(document.querySelector(Ce.scrollContainer).addEventListener("scroll",qr,!1),document.querySelector(Ce.scrollContainer).addEventListener("resize",qr,!1)):(document.addEventListener("scroll",qr,!1),document.addEventListener("resize",qr,!1));let h=null;Gs=Yf(y=>{c=!0,Ce.scrollSmooth&&Hr.disableTocAnimation(y),Hr.updateToc(vo,y),h&&clearTimeout(h),h=setTimeout(()=>{Hr.enableTocAnimation()},Ce.scrollSmoothDuration),setTimeout(()=>{c=!1},Ce.scrollSmoothDuration+100)},Ce.throttleTimeout),Ce.scrollContainer&&document.querySelector(Ce.scrollContainer)?document.querySelector(Ce.scrollContainer).addEventListener("click",Gs,!1):document.addEventListener("click",Gs,!1)}_(Mv,"init");function Id(){const e=Lv(Ce);e!==null&&(Ce.skipRendering||e&&(e.innerHTML=""),Ce.scrollContainer&&document.querySelector(Ce.scrollContainer)?(document.querySelector(Ce.scrollContainer).removeEventListener("scroll",qr,!1),document.querySelector(Ce.scrollContainer).removeEventListener("resize",qr,!1),Hr&&document.querySelector(Ce.scrollContainer).removeEventListener("click",Gs,!1)):(document.removeEventListener("scroll",qr,!1),document.removeEventListener("resize",qr,!1),Hr&&document.removeEventListener("click",Gs,!1)))}_(Id,"destroy");function w4(e){Id(),Mv(e||Ce)}_(w4,"refresh");var eq=Object.prototype.hasOwnProperty;function x4(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const i in o)eq.call(o,i)&&(t[i]=o[i])}return t}_(x4,"extend");function Yf(e,t,n){t||(t=250);let o,i;return function(...s){const c=n||this,f=+new Date;o&&f<o+t?(clearTimeout(i),i=setTimeout(()=>{o=f,e.apply(c,s)},t)):(o=f,e.apply(c,s))}}_(Yf,"throttle");function w0(e,t){let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>e.apply(this,o),t)}}_(w0,"debounce");function D4(e,t,n="auto"){switch(n){case"debounce":return w0(e,t);case"throttle":return Yf(e,t);default:return t<334?w0(e,t):Yf(e,t)}}_(D4,"getScrollHandler");function _4(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}_(_4,"getContentElement");function Lv(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}_(Lv,"getTocElement");var tq={destroy:Id,init:Mv,refresh:w4},mC=tq,rq=G.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),nq=G.nav(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),aq=G.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10})),oq=_(({headingId:e,title:t})=>typeof t=="string"||!t?E.createElement(aq,{as:"h2",id:e,className:t?"":"sb-sr-only"},t||"Table of contents"):E.createElement("div",{id:e},t),"Title"),iq=_(({title:e,disable:t,headingSelector:n,contentsSelector:o,ignoreSelector:i,unsafeTocbotOptions:s,channel:c,className:f})=>{C.useEffect(()=>{if(t)return()=>{};const h={tocSelector:".toc-wrapper",contentSelector:o??".sbdocs-content",headingSelector:n??"h3",ignoreSelector:i??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:_(v=>{if(v.preventDefault(),v.currentTarget instanceof HTMLAnchorElement){const[,b]=v.currentTarget.href.split("#");b&&c.emit(JU,`#${b}`)}},"onClick"),...s},y=setTimeout(()=>mC.init(h),100);return()=>{clearTimeout(y),mC.destroy()}},[c,t,i,o,n,s]);const p=C.useId();return E.createElement(rq,{className:f},t?null:E.createElement(nq,{"aria-labelledby":p},E.createElement(oq,{headingId:p,title:e}),E.createElement("div",{className:"toc-wrapper"})))},"TableOfContents");function ja(){return ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},ja.apply(this,arguments)}_(ja,"n");var lq=["children","options"],yC=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),vC={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},sq=["style","script","pre"],uq=["src","href","data","formAction","srcDoc","action"],cq=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,fq=/mailto:/i,dq=/\n{2,}$/,bC=/^(\s*>[\s\S]*?)(?=\n\n|$)/,pq=/^ *> ?/gm,hq=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,gq=/^ {2,}\n/,mq=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,EC=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,SC=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,yq=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,vq=/^(?:\n *)*\n/,bq=/\r\n?/g,Eq=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Sq=/^\[\^([^\]]+)]/,Aq=/\f/g,Cq=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,wq=/^\s*?\[(x|\s)\]/,AC=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,CC=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,wC=/^([^\n]+)\n *(=|-){3,} *\n/,qg=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,xq=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,xC=/^<!--[\s\S]*?(?:-->)/,Dq=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Gg=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,_q=/^\{.*\}$/,Oq=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Tq=/^<([^ >]+@[^ >]+)>/,Rq=/^<([^ >]+:\/[^ >]+)>/,Fq=/-([a-z])?/gi,DC=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Bq=/^[^\n]+(?: \n|\n{2,})/,Mq=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,Lq=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Nq=/^\[([^\]]*)\] ?\[([^\]]*)\]/,kq=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,zq=/\t/g,jq=/(^ *\||\| *$)/g,$q=/^ *:-+: *$/,Pq=/^ *:-+ *$/,Iq=/^ *-+: *$/,Hd=_(e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,"J"),Ud="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",Hq=RegExp(`^([*_])\\1${Hd(1)}${Ud}\\1\\1(?!\\1)`),Uq=RegExp(`^([*_])${Hd(0)}${Ud}\\1(?!\\1)`),qq=RegExp(`^(==)${Hd(0)}${Ud}\\1`),Gq=RegExp(`^(~~)${Hd(0)}${Ud}\\1`),Vq=/^(:[a-zA-Z0-9-_]+:)/,Yq=/^\\([^0-9A-Za-z\s])/,Wq=/\\([^0-9A-Za-z\s])/g,Kq=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,Xq=/^\n+/,Zq=/^([ \t]*)/,Jq=/(?:^|\n)( *)$/,Nv="(?:\\d+\\.)",kv="(?:[*+-])";function zv(e){return"( *)("+(e===1?Nv:kv)+") +"}_(zv,"fe");var O4=zv(1),T4=zv(2);function jv(e){return RegExp("^"+(e===1?O4:T4))}_(jv,"pe");var Qq=jv(1),eG=jv(2);function $v(e){return RegExp("^"+(e===1?O4:T4)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Nv:kv)+" )[^\\n]*)*(\\n|$)","gm")}_($v,"ge");var tG=$v(1),rG=$v(2);function Pv(e){const t=e===1?Nv:kv;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}_(Pv,"xe");var R4=Pv(1),F4=Pv(2);function x0(e,t){const n=t===1,o=n?R4:F4,i=n?tG:rG,s=n?Qq:eG;return{t:_(c=>s.test(c),"t"),o:Po(function(c,f){const p=Jq.exec(f.prevCapture);return p&&(f.list||!f.inline&&!f.simple)?o.exec(c=p[1]+c):null}),i:1,u(c,f,p){const h=n?+c[2]:void 0,y=c[0].replace(dq,`
|
|
776
|
-
`).match(i);let v=!1;return{items:y.map(function(b,S){const w=s.exec(b)[0].length,x=RegExp("^ {1,"+w+"}","gm"),O=b.replace(x,"").replace(s,""),A=S===y.length-1,R=O.indexOf(`
|
|
777
|
-
|
|
778
|
-
`)!==-1||A&&v;v=R;const T=p.inline,F=p.list;let N;p.list=!0,R?(p.inline=!1,N=Ji(O)+`
|
|
779
|
-
|
|
780
|
-
`):(p.inline=!0,N=Ji(O));const L=f(N,p);return p.inline=T,p.list=F,L}),ordered:n,start:h}},l:_((c,f,p)=>e(c.ordered?"ol":"ul",{key:p.key,start:c.type==="20"?c.start:void 0},c.items.map(function(h,y){return e("li",{key:y},f(h,p))})),"l")}}_(x0,"$e");var nG=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),aG=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Ji(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}_(Ji,"ze");function Vs(e,t){return e.startsWith(t)}_(Vs,"Ee");function B4(e,t,n){if(Array.isArray(n)){for(let o=0;o<n.length;o++)if(Vs(e,n[o]))return!0;return!1}return n(e,t)}_(B4,"Ae");function Ui(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}_(Ui,"Re");function M4(e){return Iq.test(e)?"right":$q.test(e)?"center":Pq.test(e)?"left":null}_(M4,"Be");function D0(e,t,n,o){const i=n.inTable;n.inTable=!0;let s=[[]],c="";function f(){if(!c)return;const p=s[s.length-1];p.push.apply(p,t(c,n)),c=""}return _(f,"i"),e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((p,h,y)=>{p.trim()==="|"&&(f(),o)?h!==0&&h!==y.length-1&&s.push([]):c+=p}),f(),n.inTable=i,s}_(D0,"Le");function L4(e,t,n){n.inline=!0;const o=e[2]?e[2].replace(jq,"").split("|").map(M4):[],i=e[3]?(function(c,f,p){return c.trim().split(`
|
|
781
|
-
`).map(function(h){return D0(h,f,p,!0)})})(e[3],t,n):[],s=D0(e[1],t,n,!!i.length);return n.inline=!1,i.length?{align:o,cells:i,header:s,type:"25"}:{children:s,type:"21"}}_(L4,"Oe");function _0(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}_(_0,"je");function Po(e){return e.inline=1,e}_(Po,"Ce");function Hn(e){return Po(function(t,n){return n.inline?e.exec(t):null})}_(Hn,"Ie");function Un(e){return Po(function(t,n){return n.inline||n.simple?e.exec(t):null})}_(Un,"Te");function dn(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}_(dn,"Me");function Ms(e){return Po(function(t){return e.exec(t)})}_(Ms,"we");var oG=/(javascript|vbscript|data(?!:image)):/i;function N4(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(oG.test(t))return null}catch{return null}return e}_(N4,"Fe");function Ir(e){return e&&e.replace(Wq,"$1")}_(Ir,"Pe");function Ys(e,t,n){const o=n.inline||!1,i=n.simple||!1;n.inline=!0,n.simple=!0;const s=e(t,n);return n.inline=o,n.simple=i,s}_(Ys,"Ze");function k4(e,t,n){const o=n.inline||!1,i=n.simple||!1;n.inline=!1,n.simple=!0;const s=e(t,n);return n.inline=o,n.simple=i,s}_(k4,"Ne");function z4(e,t,n){const o=n.inline||!1;n.inline=!1;const i=e(t,n);return n.inline=o,i}_(z4,"Ge");var Vg=_((e,t,n)=>({children:Ys(t,e[2],n)}),"Ue");function gf(){return{}}_(gf,"Ve");function mf(){return null}_(mf,"He");function j4(...e){return e.filter(Boolean).join(" ")}_(j4,"Qe");function yf(e,t,n){let o=e;const i=t.split(".");for(;i.length&&(o=o[i[0]],o!==void 0);)i.shift();return o||n}_(yf,"We");function $4(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?ja({},vC,t.namedCodesToUnicode):vC;const n=t.slugify||Ui,o=t.sanitizer||N4,i=t.createElement||C.createElement,s=[bC,EC,SC,t.enforceAtxHeadings?CC:AC,wC,DC,R4,F4],c=[...s,Bq,qg,xC,Gg];function f(A,R,...T){const F=yf(t.overrides,A+".props",{});return i((function(N,L){const B=yf(L,N);return B?typeof B=="function"||typeof B=="object"&&"render"in B?B:yf(L,N+".component",N):N})(A,t.overrides),ja({},R,F,{className:j4(R?.className,F.className)||void 0}),...T)}_(f,"J");function p(A){A=A.replace(Cq,"");let R=!1;t.forceInline?R=!0:t.forceBlock||(R=kq.test(A)===!1);const T=w(S(R?A:Ji(A).replace(Xq,"")+`
|
|
782
|
-
|
|
783
|
-
`,{inline:R}));for(;typeof T[T.length-1]=="string"&&!T[T.length-1].trim();)T.pop();if(t.wrapper===null)return T;const F=t.wrapper||(R?"span":"div");let N;if(T.length>1||t.forceWrapper)N=T;else{if(T.length===1)return N=T[0],typeof N=="string"?f("span",{key:"outer"},N):N;N=null}return i(F,{key:"outer"},N)}_(p,"K");function h(A,R){if(!R||!R.trim())return null;const T=R.match(cq);return T?T.reduce(function(F,N){const L=N.indexOf("=");if(L!==-1){const B=(function(U){return U.indexOf("-")!==-1&&U.match(Dq)===null&&(U=U.replace(Fq,function(Q,X){return X.toUpperCase()})),U})(N.slice(0,L)).trim(),$=(function(U){const Q=U[0];return(Q==='"'||Q==="'")&&U.length>=2&&U[U.length-1]===Q?U.slice(1,-1):U})(N.slice(L+1).trim()),P=yC[B]||B;if(P==="ref")return F;const I=F[P]=(function(U,Q,X,z){return Q==="style"?(function(q){const k=[];let Y="",ae=!1,le=!1,ce="";if(!q)return k;for(let W=0;W<q.length;W++){const ne=q[W];if(ne!=='"'&&ne!=="'"||ae||(le?ne===ce&&(le=!1,ce=""):(le=!0,ce=ne)),ne==="("&&Y.endsWith("url")?ae=!0:ne===")"&&ae&&(ae=!1),ne!==";"||le||ae)Y+=ne;else{const ue=Y.trim();if(ue){const se=ue.indexOf(":");if(se>0){const fe=ue.slice(0,se).trim(),pe=ue.slice(se+1).trim();k.push([fe,pe])}}Y=""}}const j=Y.trim();if(j){const W=j.indexOf(":");if(W>0){const ne=j.slice(0,W).trim(),ue=j.slice(W+1).trim();k.push([ne,ue])}}return k})(X).reduce(function(q,[k,Y]){return q[k.replace(/(-[a-z])/g,ae=>ae[1].toUpperCase())]=z(Y,U,k),q},{}):uq.indexOf(Q)!==-1?z(Ir(X),U,Q):(X.match(_q)&&(X=Ir(X.slice(1,X.length-1))),X==="true"||X!=="false"&&X)})(A,B,$,o);typeof I=="string"&&(qg.test(I)||Gg.test(I))&&(F[P]=p(I.trim()))}else N!=="style"&&(F[yC[N]||N]=!0);return F},{}):null}_(h,"oe");const y=[],v={},b={0:{t:[">"],o:dn(bC),i:1,u(A,R,T){const[,F,N]=A[0].replace(pq,"").match(hq);return{alert:F,children:R(N,T)}},l(A,R,T){const F={key:T.key};return A.alert&&(F.className="markdown-alert-"+n(A.alert.toLowerCase(),Ui),A.children.unshift({attrs:{},children:[{type:"27",text:A.alert}],noInnerParse:!0,type:"11",tag:"header"})),f("blockquote",F,R(A.children,T))}},1:{o:Ms(gq),i:1,u:gf,l:_((A,R,T)=>f("br",{key:T.key}),"l")},2:{t:_(A=>{const R=A[0];return R==="-"||R==="*"||R==="_"},"t"),o:dn(mq),i:1,u:gf,l:_((A,R,T)=>f("hr",{key:T.key}),"l")},3:{t:[" "],o:dn(SC),i:0,u:_(A=>({lang:void 0,text:Ir(Ji(A[0].replace(/^ {4}/gm,"")))}),"u"),l:_((A,R,T)=>f("pre",{key:T.key},f("code",ja({},A.attrs,{className:A.lang?"lang-"+A.lang:""}),A.text)),"l")},4:{t:["```","~~~"],o:dn(EC),i:0,u:_(A=>({attrs:h("code",A[3]||""),lang:A[2]||void 0,text:A[4],type:"3"}),"u")},5:{t:["`"],o:Un(yq),i:3,u:_(A=>({text:Ir(A[2])}),"u"),l:_((A,R,T)=>f("code",{key:T.key},A.text),"l")},6:{t:["[^"],o:dn(Eq),i:0,u:_(A=>(y.push({footnote:A[2],identifier:A[1]}),{}),"u"),l:mf},7:{t:["[^"],o:Hn(Sq),i:1,u:_(A=>({target:"#"+n(A[1],Ui),text:A[1]}),"u"),l:_((A,R,T)=>f("a",{key:T.key,href:o(A.target,"a","href")},f("sup",{key:T.key},A.text)),"l")},8:{t:["[ ]","[x]"],o:Hn(wq),i:1,u:_(A=>({completed:A[1].toLowerCase()==="x"}),"u"),l:_((A,R,T)=>f("input",{checked:A.completed,key:T.key,readOnly:!0,type:"checkbox"}),"l")},9:{t:["#"],o:dn(t.enforceAtxHeadings?CC:AC),i:1,u:_((A,R,T)=>({children:Ys(R,A[2],T),id:n(A[2],Ui),level:A[1].length}),"u"),l:_((A,R,T)=>f("h"+A.level,{id:A.id,key:T.key},R(A.children,T)),"l")},10:{o:dn(wC),i:0,u:_((A,R,T)=>({children:Ys(R,A[1],T),level:A[2]==="="?1:2,type:"9"}),"u")},11:{t:["<"],o:Ms(qg),i:1,u(A,R,T){const[,F]=A[3].match(Zq),N=RegExp("^"+F,"gm"),L=A[3].replace(N,""),B=($=L,c.some(X=>X.test($))?z4:Ys);var $;const P=A[1].toLowerCase(),I=sq.indexOf(P)!==-1,U=(I?P:A[1]).trim(),Q={attrs:h(U,A[2]),noInnerParse:I,tag:U};if(T.inAnchor=T.inAnchor||P==="a",I)Q.text=A[3];else{const X=T.inHTML;T.inHTML=!0,Q.children=B(R,L,T),T.inHTML=X}return T.inAnchor=!1,Q},l:_((A,R,T)=>f(A.tag,ja({key:T.key},A.attrs),A.text||(A.children?R(A.children,T):"")),"l")},13:{t:["<"],o:Ms(Gg),i:1,u(A){const R=A[1].trim();return{attrs:h(R,A[2]||""),tag:R}},l:_((A,R,T)=>f(A.tag,ja({},A.attrs,{key:T.key})),"l")},12:{t:["<!--"],o:Ms(xC),i:1,u:_(()=>({}),"u"),l:mf},14:{t:["!["],o:Un(aG),i:1,u:_(A=>({alt:Ir(A[1]),target:Ir(A[2]),title:Ir(A[3])}),"u"),l:_((A,R,T)=>f("img",{key:T.key,alt:A.alt||void 0,title:A.title||void 0,src:o(A.target,"img","src")}),"l")},15:{t:["["],o:Hn(nG),i:3,u:_((A,R,T)=>({children:k4(R,A[1],T),target:Ir(A[2]),title:Ir(A[3])}),"u"),l:_((A,R,T)=>f("a",{key:T.key,href:o(A.target,"a","href"),title:A.title},R(A.children,T)),"l")},16:{t:["<"],o:Hn(Rq),i:0,u:_(A=>({children:[{text:A[1],type:"27"}],target:A[1],type:"15"}),"u")},17:{t:_((A,R)=>!R.inAnchor&&!t.disableAutoLink&&(Vs(A,"http://")||Vs(A,"https://")),"t"),o:Hn(Oq),i:0,u:_(A=>({children:[{text:A[1],type:"27"}],target:A[1],title:void 0,type:"15"}),"u")},18:{t:["<"],o:Hn(Tq),i:0,u(A){let R=A[1],T=A[1];return fq.test(T)||(T="mailto:"+T),{children:[{text:R.replace("mailto:",""),type:"27"}],target:T,type:"15"}}},20:x0(f,1),33:x0(f,2),19:{o:dn(vq),i:3,u:gf,l:_(()=>`
|
|
784
|
-
`,"l")},21:{o:Po(function(A,R){if(R.inline||R.simple||R.inHTML&&A.indexOf(`
|
|
785
|
-
|
|
786
|
-
`)===-1&&R.prevCapture.indexOf(`
|
|
787
|
-
|
|
788
|
-
`)===-1)return null;let T="";A.split(`
|
|
789
|
-
`).every(N=>(N+=`
|
|
790
|
-
`,!s.some(L=>L.test(N))&&(T+=N,!!N.trim())));const F=Ji(T);return F===""?null:[T,,F]}),i:3,u:Vg,l:_((A,R,T)=>f("p",{key:T.key},R(A.children,T)),"l")},22:{t:["["],o:Hn(Mq),i:0,u:_(A=>(v[A[1]]={target:A[2],title:A[4]},{}),"u"),l:mf},23:{t:["!["],o:Un(Lq),i:0,u:_(A=>({alt:A[1]?Ir(A[1]):void 0,ref:A[2]}),"u"),l:_((A,R,T)=>v[A.ref]?f("img",{key:T.key,alt:A.alt,src:o(v[A.ref].target,"img","src"),title:v[A.ref].title}):null,"l")},24:{t:_(A=>A[0]==="["&&A.indexOf("](")===-1,"t"),o:Hn(Nq),i:0,u:_((A,R,T)=>({children:R(A[1],T),fallbackChildren:A[0],ref:A[2]}),"u"),l:_((A,R,T)=>v[A.ref]?f("a",{key:T.key,href:o(v[A.ref].target,"a","href"),title:v[A.ref].title},R(A.children,T)):f("span",{key:T.key},A.fallbackChildren),"l")},25:{t:["|"],o:dn(DC),i:1,u:L4,l(A,R,T){const F=A;return f("table",{key:T.key},f("thead",null,f("tr",null,F.header.map(function(N,L){return f("th",{key:L,style:_0(F,L)},R(N,T))}))),f("tbody",null,F.cells.map(function(N,L){return f("tr",{key:L},N.map(function(B,$){return f("td",{key:$,style:_0(F,$)},R(B,T))}))})))}},27:{o:Po(function(A,R){let T;return Vs(A,":")&&(T=Vq.exec(A)),T||Kq.exec(A)}),i:4,u(A){const R=A[0];return{text:R.indexOf("&")===-1?R:R.replace(xq,(T,F)=>t.namedCodesToUnicode[F]||T)}},l:_(A=>A.text,"l")},28:{t:["**","__"],o:Un(Hq),i:2,u:_((A,R,T)=>({children:R(A[2],T)}),"u"),l:_((A,R,T)=>f("strong",{key:T.key},R(A.children,T)),"l")},29:{t:_(A=>{const R=A[0];return(R==="*"||R==="_")&&A[1]!==R},"t"),o:Un(Uq),i:3,u:_((A,R,T)=>({children:R(A[2],T)}),"u"),l:_((A,R,T)=>f("em",{key:T.key},R(A.children,T)),"l")},30:{t:["\\"],o:Un(Yq),i:1,u:_(A=>({text:A[1],type:"27"}),"u")},31:{t:["=="],o:Un(qq),i:3,u:Vg,l:_((A,R,T)=>f("mark",{key:T.key},R(A.children,T)),"l")},32:{t:["~~"],o:Un(Gq),i:3,u:Vg,l:_((A,R,T)=>f("del",{key:T.key},R(A.children,T)),"l")}};t.disableParsingRawHTML===!0&&(delete b[11],delete b[13]);const S=(function(A){var R=Object.keys(A);function T(F,N){var L=[];if(N.prevCapture=N.prevCapture||"",F.trim())for(;F;)for(var B=0;B<R.length;){var $=R[B],P=A[$];if(!P.t||B4(F,N,P.t)){var I=P.o(F,N);if(I&&I[0]){F=F.substring(I[0].length);var U=P.u(I,T,N);N.prevCapture+=I[0],U.type||(U.type=$),L.push(U);break}B++}else B++}return N.prevCapture="",L}return _(T,"r"),R.sort(function(F,N){return A[F].i-A[N].i||(F<N?-1:1)}),function(F,N){return T((function(L){return L.replace(bq,`
|
|
791
|
-
`).replace(Aq,"").replace(zq," ")})(F),N)}})(b),w=(x=(function(A,R){return function(T,F,N){const L=A[T.type].l;return R?R(()=>L(T,F,N),T,F,N):L(T,F,N)}})(b,t.renderRule),_(function A(R,T={}){if(Array.isArray(R)){const F=T.key,N=[];let L=!1;for(let B=0;B<R.length;B++){T.key=B;const $=A(R[B],T),P=typeof $=="string";P&&L?N[N.length-1]+=$:$!==null&&N.push($),L=P}return T.key=F,N}return x(R,A,T)},"e"));var x;const O=p(e);return y.length?f("div",null,O,f("footer",{key:"footer"},y.map(function(A){return f("div",{id:n(A.identifier,Ui),key:A.identifier},A.identifier,w(S(A.footnote,{inline:!0})))}))):O}_($4,"Je");var P4=_(e=>{let{children:t="",options:n}=e,o=(function(i,s){if(i==null)return{};var c,f,p={},h=Object.keys(i);for(f=0;f<h.length;f++)s.indexOf(c=h[f])>=0||(p[c]=i[c]);return p})(e,lq);return C.cloneElement($4(t,n),o)},"default"),iG=G.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`},"@media (forced-colors: active)":{"&:focus":{outline:"1px solid highlight"}}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:et(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${Wc(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${Wc(.05,e.appBorderColor)} 0 0 0 2px inset`,color:Wc(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${Wc(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px","@media (forced-colors: active)":{textDecoration:"underline"}}})),lG=_(e=>e==="true","parse"),sG=_(({name:e,value:t,onChange:n,onBlur:o,onFocus:i,argType:s})=>{const c=C.useCallback(()=>n(!1),[n]),f=!!s?.table?.readonly;if(t===void 0)return E.createElement(Xa,{variant:"outline",size:"medium",id:gd(e),onClick:c,disabled:f},"Set boolean");const p=en(e),h=typeof t=="string"?lG(t):t;return E.createElement(iG,{"aria-disabled":f,htmlFor:p,"aria-label":e},E.createElement("input",{id:p,type:"checkbox",onChange:y=>n(y.target.checked),checked:h,role:"switch",disabled:f,name:e,onBlur:o,onFocus:i}),E.createElement("span",{"aria-hidden":"true"},"False"),E.createElement("span",{"aria-hidden":"true"},"True"))},"BooleanControl"),uG=_(e=>{const[t,n,o]=e.split("-"),i=new Date;return i.setFullYear(parseInt(t,10),parseInt(n,10)-1,parseInt(o,10)),i},"parseDate"),cG=_(e=>{const[t,n]=e.split(":"),o=new Date;return o.setHours(parseInt(t,10)),o.setMinutes(parseInt(n,10)),o},"parseTime"),fG=_(e=>{const t=new Date(e),n=`000${t.getFullYear()}`.slice(-4),o=`0${t.getMonth()+1}`.slice(-2),i=`0${t.getDate()}`.slice(-2);return`${n}-${o}-${i}`},"formatDate"),dG=_(e=>{const t=new Date(e),n=`0${t.getHours()}`.slice(-2),o=`0${t.getMinutes()}`.slice(-2);return`${n}:${o}`},"formatTime"),_C=G(xl.Input)(({readOnly:e})=>({opacity:e?.5:1})),pG=G.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),hG=_(({name:e,value:t,onChange:n,onFocus:o,onBlur:i,argType:s})=>{const[c,f]=C.useState(!0),p=C.useRef(),h=C.useRef(),y=!!s?.table?.readonly;C.useEffect(()=>{c!==!1&&(p&&p.current&&(p.current.value=t?fG(t):""),h&&h.current&&(h.current.value=t?dG(t):""))},[t]);const v=_(w=>{if(!w.target.value)return n();const x=uG(w.target.value),O=new Date(t??"");O.setFullYear(x.getFullYear(),x.getMonth(),x.getDate());const A=O.getTime();A&&n(A),f(!!A)},"onDateChange"),b=_(w=>{if(!w.target.value)return n();const x=cG(w.target.value),O=new Date(t??"");O.setHours(x.getHours()),O.setMinutes(x.getMinutes());const A=O.getTime();A&&n(A),f(!!A)},"onTimeChange"),S=en(e);return E.createElement(pG,null,E.createElement(_C,{type:"date",max:"9999-12-31",ref:p,id:`${S}-date`,name:`${S}-date`,readOnly:y,onChange:v,onFocus:o,onBlur:i}),E.createElement(_C,{type:"time",id:`${S}-time`,name:`${S}-time`,ref:h,onChange:b,readOnly:y,onFocus:o,onBlur:i}),c?null:E.createElement("div",null,"invalid"))},"DateControl"),gG=G.label({display:"flex"}),mG=_(e=>{const t=parseFloat(e);return Number.isNaN(t)?void 0:t},"parse"),yG=G(xl.Input)(({readOnly:e})=>({opacity:e?.5:1})),vG=_(({name:e,value:t,onChange:n,min:o,max:i,step:s,onBlur:c,onFocus:f,argType:p})=>{const[h,y]=C.useState(typeof t=="number"?t:""),[v,b]=C.useState(!1),[S,w]=C.useState(null),x=!!p?.table?.readonly,O=C.useCallback(T=>{y(T.target.value);const F=parseFloat(T.target.value);if(Number.isNaN(F))w(new Error(`'${T.target.value}' is not a number`));else{let N=F;typeof o=="number"&&N<o&&(N=o),typeof i=="number"&&N>i&&(N=i),n(N),w(null),N!==F&&y(String(N))}},[n,w,o,i]),A=C.useCallback(()=>{y("0"),n(0),b(!0)},[b]),R=C.useRef(null);return C.useEffect(()=>{v&&R.current&&R.current.select()},[v]),C.useEffect(()=>{const T=typeof t=="number"?t:"";h!==T&&y(T)},[t]),t===void 0?E.createElement(Xa,{variant:"outline",size:"medium",id:gd(e),onClick:A,disabled:x},"Set number"):E.createElement(gG,null,E.createElement(yG,{ref:R,id:en(e),type:"number",onChange:O,size:"flex",placeholder:"Edit number...",value:h,valid:S?"error":void 0,autoFocus:v,readOnly:x,name:e,min:o,max:i,step:s,onFocus:f,onBlur:c}))},"NumberControl");const{logger:bG}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var I4=_((e,t)=>{const n=t&&Object.entries(t).find(([o,i])=>i===e);return n?n[0]:void 0},"selectedKey"),O0=_((e,t)=>e&&t?Object.entries(t).filter(n=>e.includes(n[1])).map(n=>n[0]):[],"selectedKeys"),H4=_((e,t)=>e&&t&&e.map(n=>t[n]),"selectedValues"),EG=G.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),SG=G.span({"[aria-readonly=true] &":{opacity:.5}}),AG=G.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),OC=_(({name:e,options:t,value:n,onChange:o,isInline:i,argType:s})=>{if(!t)return bG.warn(`Checkbox with no options: ${e}`),E.createElement(E.Fragment,null,"-");const c=O0(n||[],t),[f,p]=C.useState(c),h=!!s?.table?.readonly,y=_(b=>{const S=b.target.value,w=[...f];w.includes(S)?w.splice(w.indexOf(S),1):w.push(S),o(H4(w,t)),p(w)},"handleChange");C.useEffect(()=>{p(O0(n||[],t))},[n]);const v=en(e);return E.createElement(EG,{"aria-readonly":h,isInline:i},Object.keys(t).map((b,S)=>{const w=`${v}-${S}`;return E.createElement(AG,{key:w,htmlFor:w},E.createElement("input",{type:"checkbox",disabled:h,id:w,name:w,value:b,onChange:y,checked:f?.includes(b)}),E.createElement(SG,null,b))}))},"CheckboxControl");const{logger:CG}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var wG=G.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),xG=G.span({"[aria-readonly=true] &":{opacity:.5}}),DG=G.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),TC=_(({name:e,options:t,value:n,onChange:o,isInline:i,argType:s})=>{if(!t)return CG.warn(`Radio with no options: ${e}`),E.createElement(E.Fragment,null,"-");const c=I4(n,t),f=en(e),p=!!s?.table?.readonly;return E.createElement(wG,{"aria-readonly":p,isInline:i},Object.keys(t).map((h,y)=>{const v=`${f}-${y}`;return E.createElement(DG,{key:v,htmlFor:v},E.createElement("input",{type:"radio",id:v,name:f,disabled:p,value:h,onChange:b=>o(t[b.currentTarget.value]),checked:h===c}),E.createElement(xG,null,h))}))},"RadioControl");const{logger:_G}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var OG={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},U4=G.select(OG,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),q4=G.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),RC="Choose option...",TG=_(({name:e,value:t,options:n,onChange:o,argType:i})=>{const s=_(h=>{o(n[h.currentTarget.value])},"handleChange"),c=I4(t,n)||RC,f=en(e),p=!!i?.table?.readonly;return E.createElement(q4,null,E.createElement(w3,null),E.createElement(U4,{disabled:p,id:f,value:c,onChange:s},E.createElement("option",{key:"no-selection",disabled:!0},RC),Object.keys(n).map(h=>E.createElement("option",{key:h,value:h},h))))},"SingleSelect"),RG=_(({name:e,value:t,options:n,onChange:o,argType:i})=>{const s=_(h=>{const y=Array.from(h.currentTarget.options).filter(v=>v.selected).map(v=>v.value);o(H4(y,n))},"handleChange"),c=O0(t,n),f=en(e),p=!!i?.table?.readonly;return E.createElement(q4,null,E.createElement(U4,{disabled:p,id:f,multiple:!0,value:c,onChange:s},Object.keys(n).map(h=>E.createElement("option",{key:h,value:h},h))))},"MultiSelect"),FC=_(e=>{const{name:t,options:n}=e;return n?e.isMulti?E.createElement(RG,{...e}):E.createElement(TG,{...e}):(_G.warn(`Select with no options: ${t}`),E.createElement(E.Fragment,null,"-"))},"SelectControl"),FG=_((e,t)=>Array.isArray(e)?e.reduce((n,o)=>(n[t?.[o]||String(o)]=o,n),{}):e,"normalizeOptions"),BG={check:OC,"inline-check":OC,radio:TC,"inline-radio":TC,select:FC,"multi-select":FC},ki=_(e=>{const{type:t="select",labels:n,argType:o}=e,i={...e,argType:o,options:o?FG(o.options,n):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},s=BG[t];if(s)return E.createElement(s,{...i});throw new Error(`Unknown options type: ${t}`)},"OptionsControl"),MG=G.div(({theme:e})=>({position:"relative",":hover":{"& > .rejt-accordion-button::after":{background:e.color.secondary},"& > .rejt-accordion-region > :is(.rejt-plus-menu, .rejt-minus-menu)":{opacity:1}}})),LG=G.button(({theme:e})=>({padding:0,background:"transparent",border:"none",marginRight:"3px",lineHeight:"22px",color:e.color.secondary,"::after":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",height:"22px",background:"transparent",borderRadius:4,transition:"background 0.2s",opacity:.1,paddingRight:"20px"},"::before":{content:'""',position:"absolute"},'&[aria-expanded="true"]::before':{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},'&[aria-expanded="false"]::before':{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"}})),NG=G.div({display:"inline"});function Iv({children:e,name:t,collapsed:n,keyPath:o,deep:i,...s}){const f=`${o.at(-1)??"root"}-${t}-${i}`,p={trigger:`${f}-trigger`,region:`${f}-region`},h=o.length>0?"li":"div";return E.createElement(MG,{as:h},E.createElement(LG,{type:"button","aria-expanded":!n,id:p.trigger,"aria-controls":p.region,className:"rejt-accordion-button",...s},t," :"),E.createElement(NG,{role:"region",id:p.region,"aria-labelledby":p.trigger,className:"rejt-accordion-region"},e))}_(Iv,"JsonNodeAccordion");var kG="Error",zG="Object",jG="Array",$G="String",PG="Number",IG="Boolean",HG="Date",UG="Null",qG="Undefined",GG="Function",VG="Symbol",G4="ADD_DELTA_TYPE",V4="REMOVE_DELTA_TYPE",Y4="UPDATE_DELTA_TYPE",Hv="value",YG="key";function Pa(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}_(Pa,"getObjectType");function Uv(e,t){const n=Pa(e),o=Pa(t);return(n==="Function"||o==="Function")&&o!==n}_(Uv,"isComponentWillChange");var W4=class extends C.Component{constructor(t){super(t),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){const{inputRefKey:t,inputRefValue:n}=this.state,{onlyValue:o}=this.props;t&&typeof t.focus=="function"&&t.focus(),o&&n&&typeof n.focus=="function"&&n.focus()}onKeydown(t){if(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||t.repeat)return;const{inputRefKey:n,inputRefValue:o}=this.state,{addButtonElement:i,handleCancel:s}=this.props;[n,o,i].some(f=>f===t.target)&&((t.code==="Enter"||t.key==="Enter")&&(t.preventDefault(),this.onSubmit()),(t.code==="Escape"||t.key==="Escape")&&(t.preventDefault(),s()))}onSubmit(){const{handleAdd:t,onlyValue:n,onSubmitValueParser:o,keyPath:i,deep:s}=this.props,{inputRefKey:c,inputRefValue:f}=this.state,p={};if(!n){if(!c.value)return;p.key=c.value}p.newValue=o(!1,i,s,p.key,f.value),t(p)}refInputKey(t){this.state.inputRefKey=t}refInputValue(t){this.state.inputRefValue=t}render(){const{handleCancel:t,onlyValue:n,addButtonElement:o,cancelButtonElement:i,inputElementGenerator:s,keyPath:c,deep:f}=this.props,p=o&&C.cloneElement(o,{onClick:this.onSubmit}),h=i&&C.cloneElement(i,{onClick:t}),y=s(Hv,c,f),v=C.cloneElement(y,{placeholder:"Value",ref:this.refInputValue,onKeyDown:this.onKeydown});let b=null;if(!n){const S=s(YG,c,f);b=C.cloneElement(S,{placeholder:"Key",ref:this.refInputKey,onKeyDown:this.onKeydown})}return E.createElement("span",{className:"rejt-add-value-node"},b,v,p,h)}};_(W4,"JsonAddValue");var qv=W4;qv.defaultProps={onlyValue:!1,addButtonElement:E.createElement("button",null,"+"),cancelButtonElement:E.createElement("button",null,"c")};var K4=class extends C.Component{constructor(t){super(t);const n=[...t.keyPath||[],t.name];this.state={data:t.data,name:t.name,keyPath:n??[],deep:t.deep??0,nextDeep:(t.deep??0)+1,collapsed:t.isCollapsed(n,t.deep??0,t.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(t,n){return t.data!==n.data?{data:t.data}:null}onChildUpdate(t,n){const{data:o,keyPath:i=[]}=this.state;o[t]=n,this.setState({data:o});const{onUpdate:s}=this.props,c=i.length;s(i[c-1],o)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(t=>({collapsed:!t.collapsed}))}handleRemoveItem(t){return()=>{const{beforeRemoveAction:n,logger:o}=this.props,{data:i,keyPath:s,nextDeep:c}=this.state,f=i[t];(n||Promise.resolve.bind(Promise))(t,s,c,f).then(()=>{const p={keyPath:s,deep:c,key:t,oldValue:f,type:V4};i.splice(t,1),this.setState({data:i});const{onUpdate:h,onDeltaUpdate:y}=this.props;h(s[s.length-1],i),y(p)}).catch(o.error)}}handleAddValueAdd({newValue:t}){const{data:n,keyPath:o=[],nextDeep:i}=this.state,{beforeAddAction:s,logger:c}=this.props,f=n.length;(s||Promise.resolve.bind(Promise))(f,o,i,t).then(()=>{n[f]=t,this.setState({data:n}),this.handleAddValueCancel();const{onUpdate:p,onDeltaUpdate:h}=this.props;p(o[o.length-1],n),h({type:G4,keyPath:o,deep:i,key:f,newValue:t})}).catch(c.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:t,value:n}){return new Promise((o,i)=>{const{beforeUpdateAction:s}=this.props,{data:c,keyPath:f,nextDeep:p}=this.state,h=c[t];(s||Promise.resolve.bind(Promise))(t,f,p,h,n).then(()=>{c[t]=n,this.setState({data:c});const{onUpdate:y,onDeltaUpdate:v}=this.props;y(f[f.length-1],c),v({type:Y4,keyPath:f,deep:p,key:t,newValue:n,oldValue:h}),o(void 0)}).catch(i)})}renderCollapsed(){const{name:t,data:n,keyPath:o,deep:i}=this.state,{handleRemove:s,readOnly:c,getStyle:f,dataType:p,minusMenuElement:h}=this.props,{minus:y,collapsed:v}=f(t,n,o,i,p),b=c(t,n,o,i,p),S=h&&C.cloneElement(h,{onClick:s,className:"rejt-minus-menu",style:y,"aria-label":`remove the array '${String(t)}'`});return E.createElement(E.Fragment,null,E.createElement("span",{style:v},"[...] ",n.length," ",n.length===1?"item":"items"),!b&&S)}renderNotCollapsed(){const{name:t,data:n,keyPath:o,deep:i,addFormVisible:s,nextDeep:c}=this.state,{isCollapsed:f,handleRemove:p,onDeltaUpdate:h,readOnly:y,getStyle:v,dataType:b,addButtonElement:S,cancelButtonElement:w,inputElementGenerator:x,textareaElementGenerator:O,minusMenuElement:A,plusMenuElement:R,beforeRemoveAction:T,beforeAddAction:F,beforeUpdateAction:N,logger:L,onSubmitValueParser:B}=this.props,{minus:$,plus:P,delimiter:I,ul:U,addForm:Q}=v(t,n,o,i,b),X=y(t,n,o,i,b),z=R&&C.cloneElement(R,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:P,"aria-label":`add a new item to the '${String(t)}' array`}),q=A&&C.cloneElement(A,{onClick:p,className:"rejt-minus-menu",style:$,"aria-label":`remove the array '${String(t)}'`});return E.createElement(E.Fragment,null,E.createElement("span",{className:"rejt-not-collapsed-delimiter",style:I},"["),!s&&z,E.createElement("ul",{className:"rejt-not-collapsed-list",style:U},n.map((le,ce)=>E.createElement(qd,{key:ce,name:ce.toString(),data:le,keyPath:o,deep:c,isCollapsed:f,handleRemove:this.handleRemoveItem(ce),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:h,readOnly:y,getStyle:v,addButtonElement:S,cancelButtonElement:w,inputElementGenerator:x,textareaElementGenerator:O,minusMenuElement:A,plusMenuElement:R,beforeRemoveAction:T,beforeAddAction:F,beforeUpdateAction:N,logger:L,onSubmitValueParser:B}))),!X&&s&&E.createElement("div",{className:"rejt-add-form",style:Q},E.createElement(qv,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:S,cancelButtonElement:w,inputElementGenerator:x,keyPath:o,deep:i,onSubmitValueParser:B})),E.createElement("span",{className:"rejt-not-collapsed-delimiter",style:I},"]"),!X&&q)}render(){const{name:t,collapsed:n,keyPath:o,deep:i}=this.state,s=n?this.renderCollapsed():this.renderNotCollapsed();return E.createElement(Iv,{name:t,collapsed:n,deep:i,keyPath:o,onClick:this.handleCollapseMode},s)}};_(K4,"JsonArray");var X4=K4;X4.defaultProps={keyPath:[],deep:0,minusMenuElement:E.createElement("span",null," - "),plusMenuElement:E.createElement("span",null," + ")};var Z4=class extends C.Component{constructor(t){super(t);const n=[...t.keyPath||[],t.name];this.state={value:t.value,name:t.name,keyPath:n??[],deep:t.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(t,n){return t.value!==n.value?{value:t.value}:null}componentDidUpdate(){const{editEnabled:t,inputRef:n,name:o,value:i,keyPath:s,deep:c}=this.state,{readOnly:f,dataType:p}=this.props,h=f(o,i,s,c,p);t&&!h&&typeof n.focus=="function"&&n.focus()}onKeydown(t){const{inputRef:n}=this.state;t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||t.repeat||n!==t.target||((t.code==="Enter"||t.key==="Enter")&&(t.preventDefault(),this.handleEdit()),(t.code==="Escape"||t.key==="Escape")&&(t.preventDefault(),this.handleCancelEdit()))}handleEdit(){const{handleUpdateValue:t,originalValue:n,logger:o,onSubmitValueParser:i,keyPath:s}=this.props,{inputRef:c,name:f,deep:p}=this.state;if(!c)return;const h=i(!0,s,p,f,c.value),y={value:h,key:f};(t||Promise.resolve.bind(Promise))(y).then(()=>{Uv(n,h)||this.handleCancelEdit()}).catch(o.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(t){this.state.inputRef=t}handleCancelEdit(){this.setState({editEnabled:!1})}render(){const{name:t,value:n,editEnabled:o,keyPath:i,deep:s}=this.state,{handleRemove:c,originalValue:f,readOnly:p,dataType:h,getStyle:y,textareaElementGenerator:v,minusMenuElement:b,keyPath:S=[]}=this.props,w=y(t,f,i,s,h);let x=null,O=null;const A=p(t,f,i,s,h);if(o&&!A){const R=v(Hv,S,s,t,f,h),T=C.cloneElement(R,{ref:this.refInput,defaultValue:n,onKeyDown:this.onKeydown});x=E.createElement("span",{className:"rejt-edit-form",style:w.editForm},T),O=null}else{x=E.createElement("span",{className:"rejt-value",style:w.value,onClick:A?void 0:this.handleEditMode},n);const R=S.at(-1),T=b&&C.cloneElement(b,{onClick:c,className:"rejt-minus-menu",style:w.minus,"aria-label":`remove the function '${String(t)}'${String(R)?` from '${String(R)}'`:""}`});O=A?null:T}return E.createElement("li",{className:"rejt-value-node",style:w.li},E.createElement("span",{className:"rejt-name",style:w.name},t," :"," "),x,O)}};_(Z4,"JsonFunctionValue");var J4=Z4;J4.defaultProps={keyPath:[],deep:0,handleUpdateValue:_(()=>{},"handleUpdateValue"),cancelButtonElement:E.createElement("button",null,"c"),minusMenuElement:E.createElement("span",null," - ")};var Q4=class extends C.Component{constructor(t){super(t),this.state={data:t.data,name:t.name,keyPath:t.keyPath??[],deep:t.deep??0}}static getDerivedStateFromProps(t,n){return t.data!==n.data?{data:t.data}:null}render(){const{data:t,name:n,keyPath:o,deep:i}=this.state,{isCollapsed:s,handleRemove:c,handleUpdateValue:f,onUpdate:p,onDeltaUpdate:h,readOnly:y,getStyle:v,addButtonElement:b,cancelButtonElement:S,inputElementGenerator:w,textareaElementGenerator:x,minusMenuElement:O,plusMenuElement:A,beforeRemoveAction:R,beforeAddAction:T,beforeUpdateAction:F,logger:N,onSubmitValueParser:L}=this.props,B=_(()=>!0,"readOnlyTrue"),$=Pa(t);switch($){case kG:return E.createElement(T0,{data:t,name:n,isCollapsed:s,keyPath:o,deep:i,handleRemove:c,onUpdate:p,onDeltaUpdate:h,readOnly:B,dataType:$,getStyle:v,addButtonElement:b,cancelButtonElement:S,inputElementGenerator:w,textareaElementGenerator:x,minusMenuElement:O,plusMenuElement:A,beforeRemoveAction:R,beforeAddAction:T,beforeUpdateAction:F,logger:N,onSubmitValueParser:L});case zG:return E.createElement(T0,{data:t,name:n,isCollapsed:s,keyPath:o,deep:i,handleRemove:c,onUpdate:p,onDeltaUpdate:h,readOnly:y,dataType:$,getStyle:v,addButtonElement:b,cancelButtonElement:S,inputElementGenerator:w,textareaElementGenerator:x,minusMenuElement:O,plusMenuElement:A,beforeRemoveAction:R,beforeAddAction:T,beforeUpdateAction:F,logger:N,onSubmitValueParser:L});case jG:return E.createElement(X4,{data:t,name:n,isCollapsed:s,keyPath:o,deep:i,handleRemove:c,onUpdate:p,onDeltaUpdate:h,readOnly:y,dataType:$,getStyle:v,addButtonElement:b,cancelButtonElement:S,inputElementGenerator:w,textareaElementGenerator:x,minusMenuElement:O,plusMenuElement:A,beforeRemoveAction:R,beforeAddAction:T,beforeUpdateAction:F,logger:N,onSubmitValueParser:L});case $G:return E.createElement(Ba,{name:n,value:`"${t}"`,originalValue:t,keyPath:o,deep:i,handleRemove:c,handleUpdateValue:f,readOnly:y,dataType:$,getStyle:v,cancelButtonElement:S,inputElementGenerator:w,minusMenuElement:O,logger:N,onSubmitValueParser:L});case PG:return E.createElement(Ba,{name:n,value:t,originalValue:t,keyPath:o,deep:i,handleRemove:c,handleUpdateValue:f,readOnly:y,dataType:$,getStyle:v,cancelButtonElement:S,inputElementGenerator:w,minusMenuElement:O,logger:N,onSubmitValueParser:L});case IG:return E.createElement(Ba,{name:n,value:t?"true":"false",originalValue:t,keyPath:o,deep:i,handleRemove:c,handleUpdateValue:f,readOnly:y,dataType:$,getStyle:v,cancelButtonElement:S,inputElementGenerator:w,minusMenuElement:O,logger:N,onSubmitValueParser:L});case HG:return E.createElement(Ba,{name:n,value:t.toISOString(),originalValue:t,keyPath:o,deep:i,handleRemove:c,handleUpdateValue:f,readOnly:B,dataType:$,getStyle:v,cancelButtonElement:S,inputElementGenerator:w,minusMenuElement:O,logger:N,onSubmitValueParser:L});case UG:return E.createElement(Ba,{name:n,value:"null",originalValue:"null",keyPath:o,deep:i,handleRemove:c,handleUpdateValue:f,readOnly:y,dataType:$,getStyle:v,cancelButtonElement:S,inputElementGenerator:w,minusMenuElement:O,logger:N,onSubmitValueParser:L});case qG:return E.createElement(Ba,{name:n,value:"undefined",originalValue:"undefined",keyPath:o,deep:i,handleRemove:c,handleUpdateValue:f,readOnly:y,dataType:$,getStyle:v,cancelButtonElement:S,inputElementGenerator:w,minusMenuElement:O,logger:N,onSubmitValueParser:L});case GG:return E.createElement(J4,{name:n,value:t.toString(),originalValue:t,keyPath:o,deep:i,handleRemove:c,handleUpdateValue:f,readOnly:y,dataType:$,getStyle:v,cancelButtonElement:S,textareaElementGenerator:x,minusMenuElement:O,logger:N,onSubmitValueParser:L});case VG:return E.createElement(Ba,{name:n,value:t.toString(),originalValue:t,keyPath:o,deep:i,handleRemove:c,handleUpdateValue:f,readOnly:B,dataType:$,getStyle:v,cancelButtonElement:S,inputElementGenerator:w,minusMenuElement:O,logger:N,onSubmitValueParser:L});default:return null}}};_(Q4,"JsonNode");var qd=Q4;qd.defaultProps={keyPath:[],deep:0};var eF=class extends C.Component{constructor(t){super(t);const n=t.deep===-1?[]:[...t.keyPath||[],t.name];this.state={name:t.name,data:t.data,keyPath:n??[],deep:t.deep??0,nextDeep:(t.deep??0)+1,collapsed:t.isCollapsed(n,t.deep??0,t.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(t,n){return t.data!==n.data?{data:t.data}:null}onChildUpdate(t,n){const{data:o,keyPath:i=[]}=this.state;o[t]=n,this.setState({data:o});const{onUpdate:s}=this.props,c=i.length;s(i[c-1],o)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:t,newValue:n}){const{data:o,keyPath:i=[],nextDeep:s}=this.state,{beforeAddAction:c,logger:f}=this.props;(c||Promise.resolve.bind(Promise))(t,i,s,n).then(()=>{o[t]=n,this.setState({data:o}),this.handleAddValueCancel();const{onUpdate:p,onDeltaUpdate:h}=this.props;p(i[i.length-1],o),h({type:G4,keyPath:i,deep:s,key:t,newValue:n})}).catch(f.error)}handleRemoveValue(t){return()=>{const{beforeRemoveAction:n,logger:o}=this.props,{data:i,keyPath:s=[],nextDeep:c}=this.state,f=i[t];(n||Promise.resolve.bind(Promise))(t,s,c,f).then(()=>{const p={keyPath:s,deep:c,key:t,oldValue:f,type:V4};delete i[t],this.setState({data:i});const{onUpdate:h,onDeltaUpdate:y}=this.props;h(s[s.length-1],i),y(p)}).catch(o.error)}}handleCollapseMode(){this.setState(t=>({collapsed:!t.collapsed}))}handleEditValue({key:t,value:n}){return new Promise((o,i)=>{const{beforeUpdateAction:s}=this.props,{data:c,keyPath:f=[],nextDeep:p}=this.state,h=c[t];(s||Promise.resolve.bind(Promise))(t,f,p,h,n).then(()=>{c[t]=n,this.setState({data:c});const{onUpdate:y,onDeltaUpdate:v}=this.props;y(f[f.length-1],c),v({type:Y4,keyPath:f,deep:p,key:t,newValue:n,oldValue:h}),o()}).catch(i)})}renderCollapsed(){const{name:t,keyPath:n,deep:o,data:i}=this.state,{handleRemove:s,readOnly:c,dataType:f,getStyle:p,minusMenuElement:h}=this.props,{minus:y,collapsed:v}=p(t,i,n,o,f),b=Object.getOwnPropertyNames(i),S=c(t,i,n,o,f),w=h&&C.cloneElement(h,{onClick:s,className:"rejt-minus-menu",style:y,"aria-label":`remove the object '${String(t)}'`});return E.createElement(E.Fragment,null,E.createElement("span",{style:v},"{...}"," ",b.length," ",b.length===1?"key":"keys"),!S&&w)}renderNotCollapsed(){const{name:t,data:n,keyPath:o,deep:i,nextDeep:s,addFormVisible:c}=this.state,{isCollapsed:f,handleRemove:p,onDeltaUpdate:h,readOnly:y,getStyle:v,dataType:b,addButtonElement:S,cancelButtonElement:w,inputElementGenerator:x,textareaElementGenerator:O,minusMenuElement:A,plusMenuElement:R,beforeRemoveAction:T,beforeAddAction:F,beforeUpdateAction:N,logger:L,onSubmitValueParser:B}=this.props,{minus:$,plus:P,addForm:I,ul:U,delimiter:Q}=v(t,n,o,i,b),X=Object.getOwnPropertyNames(n),z=y(t,n,o,i,b),q=R&&C.cloneElement(R,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:P,"aria-label":`add a new property to the object '${String(t)}'`}),k=A&&C.cloneElement(A,{onClick:p,className:"rejt-minus-menu",style:$,"aria-label":`remove the object '${String(t)}'`}),Y=X.map(ce=>E.createElement(qd,{key:ce,name:ce,data:n[ce],keyPath:o,deep:s,isCollapsed:f,handleRemove:this.handleRemoveValue(ce),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:h,readOnly:y,getStyle:v,addButtonElement:S,cancelButtonElement:w,inputElementGenerator:x,textareaElementGenerator:O,minusMenuElement:A,plusMenuElement:R,beforeRemoveAction:T,beforeAddAction:F,beforeUpdateAction:N,logger:L,onSubmitValueParser:B}));return E.createElement(E.Fragment,null,E.createElement("span",{className:"rejt-not-collapsed-delimiter",style:Q},"{"),!z&&q,E.createElement("ul",{className:"rejt-not-collapsed-list",style:U},Y),!z&&c&&E.createElement("div",{className:"rejt-add-form",style:I},E.createElement(qv,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:S,cancelButtonElement:w,inputElementGenerator:x,keyPath:o,deep:i,onSubmitValueParser:B})),E.createElement("span",{className:"rejt-not-collapsed-delimiter",style:Q},"}"),!z&&k)}render(){const{name:t,collapsed:n,keyPath:o,deep:i=0}=this.state,s=n?this.renderCollapsed():this.renderNotCollapsed();return E.createElement(Iv,{name:t,collapsed:n,deep:i,keyPath:o,onClick:this.handleCollapseMode},s)}};_(eF,"JsonObject");var T0=eF;T0.defaultProps={keyPath:[],deep:0,minusMenuElement:E.createElement("span",null," - "),plusMenuElement:E.createElement("span",null," + ")};var tF=class extends C.Component{constructor(t){super(t);const n=[...t.keyPath||[],t.name];this.state={value:t.value,name:t.name,keyPath:n??[],deep:t.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(t,n){return t.value!==n.value?{value:t.value}:null}componentDidUpdate(){const{editEnabled:t,inputRef:n,name:o,value:i,keyPath:s,deep:c}=this.state,{readOnly:f,dataType:p}=this.props,h=f(o,i,s,c,p);t&&!h&&typeof n.focus=="function"&&n.focus()}onKeydown(t){const{inputRef:n}=this.state;t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||t.repeat||n!==t.target||((t.code==="Enter"||t.key==="Enter")&&(t.preventDefault(),this.handleEdit()),(t.code==="Escape"||t.key==="Escape")&&(t.preventDefault(),this.handleCancelEdit()))}handleEdit(){const{handleUpdateValue:t,originalValue:n,logger:o,onSubmitValueParser:i,keyPath:s}=this.props,{inputRef:c,name:f,deep:p}=this.state;if(!c)return;const h=i(!0,s,p,f,c.value),y={value:h,key:f};(t||Promise.resolve.bind(Promise))(y).then(()=>{Uv(n,h)||this.handleCancelEdit()}).catch(o.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(t){this.state.inputRef=t}handleCancelEdit(){this.setState({editEnabled:!1})}render(){const{name:t,value:n,editEnabled:o,keyPath:i,deep:s}=this.state,{handleRemove:c,originalValue:f,readOnly:p,dataType:h,getStyle:y,inputElementGenerator:v,minusMenuElement:b,keyPath:S}=this.props,w=y(t,f,i,s,h),x=p(t,f,i,s,h),O=o&&!x,A=v(Hv,S,s,t,f,h),R=C.cloneElement(A,{ref:this.refInput,defaultValue:JSON.stringify(f),onKeyDown:this.onKeydown}),T=i.at(-2),F=b&&C.cloneElement(b,{onClick:c,className:"rejt-minus-menu",style:w.minus,"aria-label":`remove the property '${String(t)}' with value '${String(f)}'${String(T)?` from '${String(T)}'`:""}`});return E.createElement("li",{className:"rejt-value-node",style:w.li},E.createElement("span",{className:"rejt-name",style:w.name},t," : "),O?E.createElement("span",{className:"rejt-edit-form",style:w.editForm},R):E.createElement("span",{className:"rejt-value",style:w.value,onClick:x?void 0:this.handleEditMode},String(n)),!x&&!O&&F)}};_(tF,"JsonValue");var Ba=tF;Ba.defaultProps={keyPath:[],deep:0,handleUpdateValue:_(()=>Promise.resolve(),"handleUpdateValue"),cancelButtonElement:E.createElement("button",null,"c"),minusMenuElement:E.createElement("span",null," - ")};function rF(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}_(rF,"parse");var WG={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},KG={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},XG={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},nF=class extends C.Component{constructor(t){super(t),this.state={data:t.data,rootName:t.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(t,n){return t.data!==n.data||t.rootName!==n.rootName?{data:t.data,rootName:t.rootName}:null}onUpdate(t,n){this.setState({data:n}),this.props.onFullyUpdate?.(n)}removeRoot(){this.onUpdate(null,null)}render(){const{data:t,rootName:n}=this.state,{isCollapsed:o,onDeltaUpdate:i,readOnly:s,getStyle:c,addButtonElement:f,cancelButtonElement:p,inputElement:h,textareaElement:y,minusMenuElement:v,plusMenuElement:b,beforeRemoveAction:S,beforeAddAction:w,beforeUpdateAction:x,logger:O,onSubmitValueParser:A,fallback:R=null}=this.props,T=Pa(t);let F=s;Pa(s)==="Boolean"&&(F=_(()=>s,"readOnlyFunction"));let N=h;h&&Pa(h)!=="Function"&&(N=_(()=>h,"inputElementFunction"));let L=y;return y&&Pa(y)!=="Function"&&(L=_(()=>y,"textareaElementFunction")),T==="Object"||T==="Array"?E.createElement("div",{className:"rejt-tree"},E.createElement(qd,{data:t,name:n||"root",deep:-1,isCollapsed:o??(()=>!1),onUpdate:this.onUpdate,onDeltaUpdate:i??(()=>{}),readOnly:F,getStyle:c??(()=>({})),addButtonElement:f,cancelButtonElement:p,inputElementGenerator:N,textareaElementGenerator:L,minusMenuElement:v,plusMenuElement:b,handleRemove:this.removeRoot,beforeRemoveAction:S,beforeAddAction:w,beforeUpdateAction:x,logger:O??{},onSubmitValueParser:A??(B=>B)})):R}};_(nF,"JsonTree");var aF=nF;aF.defaultProps={rootName:"root",isCollapsed:_((e,t)=>t!==-1,"isCollapsed"),getStyle:_((e,t,n,o,i)=>{switch(i){case"Object":case"Error":return WG;case"Array":return KG;default:return XG}},"getStyle"),readOnly:_(()=>!1,"readOnly"),onFullyUpdate:_(()=>{},"onFullyUpdate"),onDeltaUpdate:_(()=>{},"onDeltaUpdate"),beforeRemoveAction:_(()=>Promise.resolve(),"beforeRemoveAction"),beforeAddAction:_(()=>Promise.resolve(),"beforeAddAction"),beforeUpdateAction:_(()=>Promise.resolve(),"beforeUpdateAction"),logger:{error:_(()=>{},"error")},onSubmitValueParser:_((e,t,n,o,i)=>rF(i),"onSubmitValueParser"),inputElement:_(()=>E.createElement("input",null),"inputElement"),textareaElement:_(()=>E.createElement("textarea",null),"textareaElement"),fallback:null};var{window:ZG}=globalThis,JG=G.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px",listStyleType:"none"},".rejt-value-node:hover":{"& > button":{opacity:1}},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}})),BC=G.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer"})),MC=G.button(({theme:e})=>({background:"none",border:0,display:"inline-flex",verticalAlign:"middle",padding:3,marginLeft:5,color:e.textMutedColor,opacity:0,transition:"opacity 0.2s",cursor:"pointer",position:"relative",svg:{width:9,height:9},":disabled":{cursor:"not-allowed"},":hover, :focus-visible":{opacity:1},"&:hover:not(:disabled), &:focus-visible:not(:disabled)":{"&.rejt-plus-menu":{color:e.color.ancillary},"&.rejt-minus-menu":{color:e.color.negative}}})),LC=G.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),QG=G(Kn)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),eV=G(xl.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),tV={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},rV=_(e=>{e.currentTarget.dispatchEvent(new ZG.KeyboardEvent("keydown",tV))},"dispatchEnterKey"),nV=_(e=>{e.currentTarget.select()},"selectValue"),aV=_(e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),"getCustomStyleFunction"),NC=_(({name:e,value:t,onChange:n,argType:o})=>{const i=JO(),s=C.useMemo(()=>t&&u4(t),[t]),c=s!=null,[f,p]=C.useState(!c),[h,y]=C.useState(null),v=!!o?.table?.readonly,b=C.useCallback(T=>{try{T&&n(JSON.parse(T)),y(null)}catch(F){y(F)}},[n]),[S,w]=C.useState(!1),x=C.useCallback(()=>{n({}),w(!0)},[w]),O=C.useRef(null);if(C.useEffect(()=>{S&&O.current&&O.current.select()},[S]),!c)return E.createElement(Xa,{disabled:v,id:gd(e),onClick:x},"Set object");const A=E.createElement(eV,{ref:O,id:en(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:T=>b(T.target.value),placeholder:"Edit JSON string...",autoFocus:S,valid:h?"error":void 0,readOnly:v}),R=Array.isArray(t)||typeof t=="object"&&t?.constructor===Object;return E.createElement(JG,{"aria-readonly":v},R&&E.createElement(QG,{role:"switch","aria-checked":f,"aria-label":`Edit the ${e} properties in text format`,onClick:T=>{T.preventDefault(),p(F=>!F)}},f?E.createElement(T$,null):E.createElement(O$,null),E.createElement("span",null,"RAW")),f?A:E.createElement(aF,{readOnly:v||!R,isCollapsed:R?void 0:()=>!0,data:s,rootName:e,onFullyUpdate:n,getStyle:aV(i),cancelButtonElement:E.createElement(BC,{type:"button"},"Cancel"),addButtonElement:E.createElement(BC,{type:"submit",primary:!0},"Save"),plusMenuElement:E.createElement(MC,{type:"button"},E.createElement(B$,null)),minusMenuElement:E.createElement(MC,{type:"button"},E.createElement(M$,null)),inputElement:(T,F,N,L)=>L?E.createElement(LC,{onFocus:nV,onBlur:rV}):E.createElement(LC,null),fallback:A}))},"ObjectControl"),oV=G.input(({theme:e,min:t,max:n,value:o,disabled:i})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right,
|
|
792
|
-
${e.color.green} 0%, ${e.color.green} ${(o-t)/(n-t)*100}%,
|
|
793
|
-
${pn(.02,e.input.background)} ${(o-t)/(n-t)*100}%,
|
|
794
|
-
${pn(.02,e.input.background)} 100%)`:`linear-gradient(to right,
|
|
795
|
-
${e.color.green} 0%, ${e.color.green} ${(o-t)/(n-t)*100}%,
|
|
796
|
-
${So(.02,e.input.background)} ${(o-t)/(n-t)*100}%,
|
|
797
|
-
${So(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:i?"not-allowed":"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${Yr(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Yr(e.appBorderColor,.2)}`,cursor:i?"not-allowed":"grab",appearance:"none",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${pn(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:i?"not-allowed":"grab"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:Yr(e.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:e.color.secondary,boxShadow:`0 0px 5px 0px ${e.color.secondary}`}},"&::-moz-range-track":{background:e.base==="light"?`linear-gradient(to right,
|
|
798
|
-
${e.color.green} 0%, ${e.color.green} ${(o-t)/(n-t)*100}%,
|
|
799
|
-
${pn(.02,e.input.background)} ${(o-t)/(n-t)*100}%,
|
|
800
|
-
${pn(.02,e.input.background)} 100%)`:`linear-gradient(to right,
|
|
801
|
-
${e.color.green} 0%, ${e.color.green} ${(o-t)/(n-t)*100}%,
|
|
802
|
-
${So(.02,e.input.background)} ${(o-t)/(n-t)*100}%,
|
|
803
|
-
${So(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:i?"not-allowed":"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${Yr(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Yr(e.appBorderColor,.2)}`,cursor:i?"not-allowed":"grap",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${pn(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:e.base==="light"?`linear-gradient(to right,
|
|
804
|
-
${e.color.green} 0%, ${e.color.green} ${(o-t)/(n-t)*100}%,
|
|
805
|
-
${pn(.02,e.input.background)} ${(o-t)/(n-t)*100}%,
|
|
806
|
-
${pn(.02,e.input.background)} 100%)`:`linear-gradient(to right,
|
|
807
|
-
${e.color.green} 0%, ${e.color.green} ${(o-t)/(n-t)*100}%,
|
|
808
|
-
${So(.02,e.input.background)} ${(o-t)/(n-t)*100}%,
|
|
809
|
-
${So(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Yr(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),oF=G.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),iV=G(oF)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),lV=G.div({display:"flex",alignItems:"center",width:"100%"});function iF(e){const t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}_(iF,"getNumberOfDecimalPlaces");var sV=_(({name:e,value:t,onChange:n,min:o=0,max:i=100,step:s=1,onBlur:c,onFocus:f,argType:p})=>{const h=_(S=>{n(mG(S.target.value))},"handleChange"),y=t!==void 0,v=C.useMemo(()=>iF(s),[s]),b=!!p?.table?.readonly;return E.createElement(lV,{"aria-readonly":b},E.createElement(oF,null,o),E.createElement(oV,{id:en(e),type:"range",disabled:b,onChange:h,name:e,min:o,max:i,step:s,onFocus:f,onBlur:c,value:t??o}),E.createElement(iV,{numberOFDecimalsPlaces:v,max:i},y?t.toFixed(v):"--"," / ",i))},"RangeControl"),uV=G.label({display:"flex"}),cV=G.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),fV=_(({name:e,value:t,onChange:n,onFocus:o,onBlur:i,maxLength:s,argType:c})=>{const f=_(S=>{n(S.target.value)},"handleChange"),p=!!c?.table?.readonly,[h,y]=C.useState(!1),v=C.useCallback(()=>{n(""),y(!0)},[y]);if(t===void 0)return E.createElement(Xa,{variant:"outline",size:"medium",disabled:p,id:gd(e),onClick:v},"Set string");const b=typeof t=="string";return E.createElement(uV,null,E.createElement(xl.Textarea,{id:en(e),maxLength:s,onChange:f,disabled:p,size:"flex",placeholder:"Edit string...",autoFocus:h,valid:b?void 0:"error",name:e,value:b?t:"",onFocus:o,onBlur:i}),s&&E.createElement(cV,{isMaxed:t?.length===s},t?.length??0," / ",s))},"TextControl"),dV=G(xl.Input)({padding:10});function lF(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}_(lF,"revokeOldUrls");var pV=_(({onChange:e,name:t,accept:n="image/*",value:o,argType:i})=>{const s=C.useRef(null),c=i?.control?.readOnly;function f(p){if(!p.target.files)return;const h=Array.from(p.target.files).map(y=>URL.createObjectURL(y));e(h),lF(o||[])}return _(f,"handleFileChange"),C.useEffect(()=>{o==null&&s.current&&(s.current.value="")},[o,t]),E.createElement(dV,{ref:s,id:en(t),type:"file",name:t,multiple:!0,disabled:c,onChange:f,accept:n,size:"flex"})},"FilesControl"),hV=C.lazy(()=>Ua(()=>import("./Color-64QXVMR3-Dnd9S2a1.js"),__vite__mapDeps([6,1,2,3,4]),import.meta.url)),gV=_(e=>E.createElement(C.Suspense,{fallback:E.createElement("div",null)},E.createElement(hV,{...e})),"ColorControl"),mV={array:NC,object:NC,boolean:sG,color:gV,date:hG,number:vG,check:ki,"inline-check":ki,radio:ki,"inline-radio":ki,select:ki,"multi-select":ki,range:sV,text:fV,file:pV},kC=_(()=>E.createElement(E.Fragment,null,"-"),"NoControl"),yV=_(({row:e,arg:t,updateArgs:n,isHovered:o})=>{const{key:i,control:s}=e,[c,f]=C.useState(!1),[p,h]=C.useState({value:t});C.useEffect(()=>{c||h({value:t})},[c,t]);const y=C.useCallback(x=>(h({value:x}),n({[i]:x}),x),[n,i]),v=C.useCallback(()=>f(!1),[]),b=C.useCallback(()=>f(!0),[]);if(!s||s.disable){const x=s?.disable!==!0&&e?.type?.name!=="function";return o&&x?E.createElement(tu,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},"Setup controls"):E.createElement(kC,null)}const S={name:i,argType:e,value:p.value,onChange:y,onBlur:v,onFocus:b},w=mV[s.type]||kC;return E.createElement(w,{...S,...s,controlType:s.type})},"ArgControl"),vV=G.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:ra({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),bV=_(({tags:e})=>{const t=(e.params||[]).filter(s=>s.description),n=t.length!==0,o=e.deprecated!=null,i=e.returns!=null&&e.returns.description!=null;return!n&&!i&&!o?null:E.createElement(E.Fragment,null,E.createElement(vV,null,E.createElement("tbody",null,o&&E.createElement("tr",{key:"deprecated"},E.createElement("td",{colSpan:2},E.createElement("strong",null,"Deprecated"),": ",e.deprecated?.toString())),n&&t.map(s=>E.createElement("tr",{key:s.name},E.createElement("td",null,E.createElement("code",null,s.name)),E.createElement("td",null,s.description))),i&&E.createElement("tr",{key:"returns"},E.createElement("td",null,E.createElement("code",null,"Returns")),E.createElement("td",null,e.returns?.description)))))},"ArgJsDoc");function sF(e){return Array.from(new Set(e))}_(sF,"uniq");var EV=JM(rU()),R0=8,zC=G.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),SV=G.span(ra,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),AV=G.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),CV=G.div(ra,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),wV=G.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),xV=G(z$)({marginLeft:4}),DV=G(w3)({marginLeft:4}),_V=_(()=>E.createElement("span",null,"-"),"EmptyArg"),uF=_(({text:e,simple:t})=>E.createElement(SV,{simple:t},e),"ArgText"),OV=(0,EV.default)(1e3)(e=>{const t=e.split(/\r?\n/);return`${Math.max(...t.map(n=>n.length))}ch`}),TV=_(e=>{if(!e)return[e];const n=e.split("|").map(o=>o.trim());return sF(n)},"getSummaryItems"),jC=_((e,t=!0)=>{let n=e;return t||(n=e.slice(0,R0)),n.map(o=>E.createElement(uF,{key:o,text:o===""?'""':o}))},"renderSummaryItems"),RV=_(({value:e,initialExpandedArgs:t})=>{const{summary:n,detail:o}=e,[i,s]=C.useState(!1),[c,f]=C.useState(t||!1);if(n==null)return null;const p=typeof n.toString=="function"?n.toString():n;if(o==null){if(/[(){}[\]<>]/.test(p))return E.createElement(uF,{text:p});const y=TV(p),v=y.length;return v>R0?E.createElement(zC,{isExpanded:c},jC(y,c),E.createElement(AV,{onClick:()=>f(!c)},c?"Show less...":`Show ${v-R0} more...`)):E.createElement(zC,null,jC(y))}return E.createElement(bR,{closeOnOutsideClick:!0,placement:"bottom",visible:i,onVisibleChange:h=>{s(h)},tooltip:E.createElement(wV,{width:OV(o)},E.createElement(yu,{language:"jsx",format:!1},o))},E.createElement(CV,{className:"sbdocs-expandable"},E.createElement("span",null,p),i?E.createElement(xV,null):E.createElement(DV,null)))},"ArgSummary"),Yg=_(({value:e,initialExpandedArgs:t})=>e==null?E.createElement(_V,null):E.createElement(RV,{value:e,initialExpandedArgs:t}),"ArgValue"),FV=G.span({fontWeight:"bold"}),BV=G.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),MV=G.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...ra({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),LV=G.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?et(.1,e.color.defaultText):et(.2,e.color.defaultText),marginTop:t?4:0})),NV=G.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?et(.1,e.color.defaultText):et(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),kV=G.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),zV=_(e=>e&&{summary:typeof e=="string"?e:e.name},"toSummary"),Xc=_(e=>{const[t,n]=C.useState(!1),{row:o,updateArgs:i,compact:s,expandable:c,initialExpandedArgs:f}=e,{name:p,description:h}=o,y=o.table||{},v=y.type||zV(o.type),b=y.defaultValue||o.defaultValue,S=o.type?.required,w=h!=null&&h!=="";return E.createElement("tr",{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1)},E.createElement(kV,{expandable:c??!1},E.createElement(FV,null,p),S?E.createElement(BV,{title:"Required"},"*"):null),s?null:E.createElement("td",null,w&&E.createElement(MV,null,E.createElement(P4,null,h)),y.jsDocTags!=null?E.createElement(E.Fragment,null,E.createElement(NV,{hasDescription:w},E.createElement(Yg,{value:v,initialExpandedArgs:f})),E.createElement(bV,{tags:y.jsDocTags})):E.createElement(LV,{hasDescription:w},E.createElement(Yg,{value:v,initialExpandedArgs:f}))),s?null:E.createElement("td",null,E.createElement(Yg,{value:b,initialExpandedArgs:f})),i?E.createElement("td",null,E.createElement(yV,{...e,isHovered:t})):null)},"ArgRow"),jV=G.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content})),$V=G.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),PV=_(({inAddonPanel:e})=>{const[t,n]=C.useState(!0);return C.useEffect(()=>{const o=setTimeout(()=>{n(!1)},100);return()=>clearTimeout(o)},[]),t?null:E.createElement(jV,{inAddonPanel:e},E.createElement($d,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:E.createElement(E.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:E.createElement($V,null,e&&E.createElement(E.Fragment,null,E.createElement(tu,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},E.createElement(s0,null)," Read docs")),!e&&E.createElement(tu,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},E.createElement(s0,null)," Learn how to set that up"))}))},"Empty"),IV=G(k$)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?et(.25,e.color.defaultText):et(.3,e.color.defaultText),border:"none",display:"inline-block"})),HV=G(C3)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?et(.25,e.color.defaultText):et(.3,e.color.defaultText),border:"none",display:"inline-block"})),UV=G.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),qV=G.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?et(.4,e.color.defaultText):et(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),GV=G.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),VV=G.td({position:"relative"}),YV=G.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${So(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),$C=G.button({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}),Wg=_(({level:e="section",label:t,children:n,initialExpanded:o=!0,colSpan:i=3})=>{const[s,c]=C.useState(o),f=e==="subsection"?GV:qV,p=n?.length||0,h=e==="subsection"?`${p} item${p!==1?"s":""}`:"",y=`${s?"Hide":"Show"} ${e==="subsection"?p:t} item${p!==1?"s":""}`;return E.createElement(E.Fragment,null,E.createElement(YV,{title:y},E.createElement(f,{colSpan:1},E.createElement($C,{onClick:v=>c(!s),tabIndex:0},y),E.createElement(UV,null,s?E.createElement(IV,null):E.createElement(HV,null),t)),E.createElement(VV,{colSpan:i-1},E.createElement($C,{onClick:v=>c(!s),tabIndex:-1,style:{outline:"none"}},y),s?null:h)),s?n:null)},"SectionRow"),WV=G.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),Zc=G.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),jt=G.div(({position:e,theme:t})=>{const n={display:"flex",flexDirection:"column",gap:5,padding:"10px 15px",alignItems:"flex-start"};switch(e){case"first":return{...n,width:"25%",paddingLeft:20};case"second":return{...n,width:"35%"};case"third":return{...n,width:"15%"};case"last":return{...n,width:"25%",paddingRight:20}}}),At=G.div(({theme:e,width:t,height:n})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:n||16,borderRadius:3})),KV=_(()=>E.createElement(WV,null,E.createElement(Zc,null,E.createElement(jt,{position:"first"},E.createElement(At,{width:"60%"})),E.createElement(jt,{position:"second"},E.createElement(At,{width:"30%"})),E.createElement(jt,{position:"third"},E.createElement(At,{width:"60%"})),E.createElement(jt,{position:"last"},E.createElement(At,{width:"60%"}))),E.createElement(Zc,null,E.createElement(jt,{position:"first"},E.createElement(At,{width:"60%"})),E.createElement(jt,{position:"second"},E.createElement(At,{width:"80%"}),E.createElement(At,{width:"30%"})),E.createElement(jt,{position:"third"},E.createElement(At,{width:"60%"})),E.createElement(jt,{position:"last"},E.createElement(At,{width:"60%"}))),E.createElement(Zc,null,E.createElement(jt,{position:"first"},E.createElement(At,{width:"60%"})),E.createElement(jt,{position:"second"},E.createElement(At,{width:"80%"}),E.createElement(At,{width:"30%"})),E.createElement(jt,{position:"third"},E.createElement(At,{width:"60%"})),E.createElement(jt,{position:"last"},E.createElement(At,{width:"60%"}))),E.createElement(Zc,null,E.createElement(jt,{position:"first"},E.createElement(At,{width:"60%"})),E.createElement(jt,{position:"second"},E.createElement(At,{width:"80%"}),E.createElement(At,{width:"30%"})),E.createElement(jt,{position:"third"},E.createElement(At,{width:"60%"})),E.createElement(jt,{position:"last"},E.createElement(At,{width:"60%"})))),"Skeleton"),XV=G.table(({theme:e,compact:t,inAddonPanel:n})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:n?0:25,marginBottom:n?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?et(.25,e.color.defaultText):et(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:n?0:1,marginRight:n?0:1,tbody:{...n?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...n?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),ZV=G.div({position:"relative"}),JV=G.div({position:"absolute",right:8,top:6}),QV={alpha:_((e,t)=>(e.name??"").localeCompare(t.name??""),"alpha"),requiredFirst:_((e,t)=>+!!t.type?.required-+!!e.type?.required||(e.name??"").localeCompare(t.name??""),"requiredFirst"),none:null},eY=_((e,t)=>{const n={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return n;Object.entries(e).forEach(([c,f])=>{const{category:p,subcategory:h}=f?.table||{};if(p){const y=n.sections[p]||{ungrouped:[],subsections:{}};if(!h)y.ungrouped.push({key:c,...f});else{const v=y.subsections[h]||[];v.push({key:c,...f}),y.subsections[h]=v}n.sections[p]=y}else if(h){const y=n.ungroupedSubsections[h]||[];y.push({key:c,...f}),n.ungroupedSubsections[h]=y}else n.ungrouped.push({key:c,...f})});const o=QV[t],i=_(c=>o?Object.keys(c).reduce((f,p)=>({...f,[p]:c[p].sort(o)}),{}):c,"sortSubsection");return{ungrouped:o?n.ungrouped.sort(o):n.ungrouped,ungroupedSubsections:i(n.ungroupedSubsections),sections:Object.keys(n.sections).reduce((c,f)=>({...c,[f]:{ungrouped:o?n.sections[f].ungrouped.sort(o):n.sections[f].ungrouped,subsections:i(n.sections[f].subsections)}}),{})}},"groupRows"),tY=_((e,t,n)=>{try{return S_(e,t,n)}catch(o){return nU.warn(o.message),!1}},"safeIncludeConditionalArg"),F0=_(e=>{const{updateArgs:t,resetArgs:n,compact:o,inAddonPanel:i,initialExpandedArgs:s,sort:c="none",isLoading:f}=e;if("error"in e){const{error:R}=e;return E.createElement(r4,null,R," ",E.createElement(tu,{href:"http://storybook.js.org/docs/?ref=ui",target:"_blank",withArrow:!0},E.createElement(s0,null)," Read the docs"))}if(f)return E.createElement(KV,null);const{rows:p,args:h,globals:y}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},v=eY(c4(p||{},R=>!R?.table?.disable&&tY(R,h||{},y||{})),c),b=v.ungrouped.length===0,S=Object.entries(v.sections).length===0,w=Object.entries(v.ungroupedSubsections).length===0;if(b&&S&&w)return E.createElement(PV,{inAddonPanel:i});let x=1;t&&(x+=1),o||(x+=2);const O=Object.keys(v.sections).length>0,A={updateArgs:t,compact:o,inAddonPanel:i,initialExpandedArgs:s};return E.createElement(ov,null,E.createElement(ZV,null,t&&!f&&n&&E.createElement(JV,null,E.createElement(Kn,{onClick:()=>n(),"aria-label":"Reset controls",title:"Reset controls"},E.createElement(j$,null))),E.createElement(XV,{compact:o,inAddonPanel:i,className:"docblock-argstable sb-unstyled"},E.createElement("thead",{className:"docblock-argstable-head"},E.createElement("tr",null,E.createElement("th",null,E.createElement("span",null,"Name")),o?null:E.createElement("th",null,E.createElement("span",null,"Description")),o?null:E.createElement("th",null,E.createElement("span",null,"Default")),t?E.createElement("th",null,E.createElement("span",null,"Control")):null)),E.createElement("tbody",{className:"docblock-argstable-body"},v.ungrouped.map(R=>E.createElement(Xc,{key:R.key,row:R,arg:h&&h[R.key],...A})),Object.entries(v.ungroupedSubsections).map(([R,T])=>E.createElement(Wg,{key:R,label:R,level:"subsection",colSpan:x},T.map(F=>E.createElement(Xc,{key:F.key,row:F,arg:h&&h[F.key],expandable:O,...A})))),Object.entries(v.sections).map(([R,T])=>E.createElement(Wg,{key:R,label:R,level:"section",colSpan:x},T.ungrouped.map(F=>E.createElement(Xc,{key:F.key,row:F,arg:h&&h[F.key],...A})),Object.entries(T.subsections).map(([F,N])=>E.createElement(Wg,{key:F,label:F,level:"subsection",colSpan:x},N.map(L=>E.createElement(Xc,{key:L.key,row:L,arg:h&&h[L.key],expandable:O,...A}))))))))))},"ArgsTable"),rY=_(e=>`anchor--${e}`,"anchorBlockIdFromId"),nY=_(({storyId:e,children:t})=>E.createElement("div",{id:rY(e),className:"sb-anchor"},t),"Anchor");const{filterArgTypes:jX}=__STORYBOOK_MODULE_PREVIEW_API__;var qo=_((e,t)=>C.useContext(nn).resolveOf(e,t),"useOf"),aY=_(e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),"titleCase"),oY=_(e=>{if(e)return typeof e=="string"?e.includes("-")?aY(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name},"getComponentName");function cF(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}_(cF,"scrollToElement");function fF(e,t){const{extractArgTypes:n}=t.docs||{};if(!n)throw new Error("Args unsupported. See Args documentation for your framework.");return n(e)}_(fF,"extractComponentArgTypes");function iY(e){if(e.type==="component"){const{component:s,projectAnnotations:{parameters:c}}=e;return{argTypes:fF(s,c),parameters:c,component:s}}if(e.type==="meta"){const{preparedMeta:{argTypes:s,parameters:c,component:f,subcomponents:p}}=e;return{argTypes:s,parameters:c,component:f,subcomponents:p}}const{story:{argTypes:t,parameters:n,component:o,subcomponents:i}}=e;return{argTypes:t,parameters:n,component:o,subcomponents:i}}_(iY,"getArgTypesFromResolved");var lY=Object.create,dF=Object.defineProperty,sY=Object.getOwnPropertyDescriptor,pF=Object.getOwnPropertyNames,uY=Object.getPrototypeOf,cY=Object.prototype.hasOwnProperty,Ae=_((e,t)=>_(function(){return t||(0,e[pF(e)[0]])((t={exports:{}}).exports,t),t.exports},"__require"),"__commonJS"),fY=_((e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of pF(t))!cY.call(e,i)&&i!==n&&dF(e,i,{get:_(()=>t[i],"get"),enumerable:!(o=sY(t,i))||o.enumerable});return e},"__copyProps"),Gv=_((e,t,n)=>(n=e!=null?lY(uY(e)):{},fY(t||!e||!e.__esModule?dF(n,"default",{value:e,enumerable:!0}):n,e)),"__toESM"),dY=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],pY=["detail"];function hF(e){const t=dY.filter(n=>e[n]!==void 0).reduce((n,o)=>(n[o]=e[o],n),{});if(e instanceof CustomEvent)for(const n of pY.filter(o=>e[o]!==void 0))t[n]=e[n];return t}_(hF,"extractEventHiddenProperties");var gF=Ae({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),hY=Ae({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),gY=Ae({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),mY=Ae({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),yY=Ae({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),vY=Ae({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),Vv=Ae({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),bY=Ae({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),EY=Ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),SY=Ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),AY=Ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),CY=Ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),wY=Ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),xY=Ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),DY=Ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||_(function(o){return o!==o},"isNaN2")}}),_Y=Ae({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var n=DY();t.exports=_(function(i){return n(i)||i===0?i:i<0?-1:1},"sign")}}),OY=Ae({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Yv=Ae({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var n=OY();if(n)try{n([],"length")}catch{n=null}t.exports=n}}),TY=Ae({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}t.exports=n}}),mF=Ae({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=_(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},i=Symbol("test"),s=Object(i);if(typeof i=="string"||Object.prototype.toString.call(i)!=="[object Symbol]"||Object.prototype.toString.call(s)!=="[object Symbol]")return!1;var c=42;o[i]=c;for(var f in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var p=Object.getOwnPropertySymbols(o);if(p.length!==1||p[0]!==i||!Object.prototype.propertyIsEnumerable.call(o,i))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var h=Object.getOwnPropertyDescriptor(o,i);if(h.value!==c||h.enumerable!==!0)return!1}return!0},"hasSymbols")}}),yF=Ae({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var n=typeof Symbol<"u"&&Symbol,o=mF();t.exports=_(function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:o()},"hasNativeSymbols")}}),vF=Ae({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),bF=Ae({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var n=gF();t.exports=n.getPrototypeOf||null}}),RY=Ae({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var n="Function.prototype.bind called on incompatible ",o=Object.prototype.toString,i=Math.max,s="[object Function]",c=_(function(y,v){for(var b=[],S=0;S<y.length;S+=1)b[S]=y[S];for(var w=0;w<v.length;w+=1)b[w+y.length]=v[w];return b},"concatty2"),f=_(function(y,v){for(var b=[],S=v||0,w=0;S<y.length;S+=1,w+=1)b[w]=y[S];return b},"slicy2"),p=_(function(h,y){for(var v="",b=0;b<h.length;b+=1)v+=h[b],b+1<h.length&&(v+=y);return v},"joiny");t.exports=_(function(y){var v=this;if(typeof v!="function"||o.apply(v)!==s)throw new TypeError(n+v);for(var b=f(arguments,1),S,w=_(function(){if(this instanceof S){var T=v.apply(this,c(b,arguments));return Object(T)===T?T:this}return v.apply(y,c(b,arguments))},"binder"),x=i(0,v.length-b.length),O=[],A=0;A<x;A++)O[A]="$"+A;if(S=Function("binder","return function ("+p(O,",")+"){ return binder.apply(this,arguments); }")(w),v.prototype){var R=_(function(){},"Empty2");R.prototype=v.prototype,S.prototype=new R,R.prototype=null}return S},"bind")}}),Gd=Ae({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var n=RY();t.exports=Function.prototype.bind||n}}),Wv=Ae({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),EF=Ae({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),FY=Ae({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),BY=Ae({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var n=Gd(),o=EF(),i=Wv(),s=FY();t.exports=s||n.call(i,o)}}),SF=Ae({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var n=Gd(),o=Vv(),i=Wv(),s=BY();t.exports=_(function(f){if(f.length<1||typeof f[0]!="function")throw new o("a function is required");return s(n,i,f)},"callBindBasic")}}),MY=Ae({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var n=SF(),o=Yv(),i;try{i=[].__proto__===Array.prototype}catch(p){if(!p||typeof p!="object"||!("code"in p)||p.code!=="ERR_PROTO_ACCESS")throw p}var s=!!i&&o&&o(Object.prototype,"__proto__"),c=Object,f=c.getPrototypeOf;t.exports=s&&typeof s.get=="function"?n([s.get]):typeof f=="function"?_(function(h){return f(h==null?h:c(h))},"getDunder"):!1}}),LY=Ae({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var n=vF(),o=bF(),i=MY();t.exports=n?_(function(c){return n(c)},"getProto"):o?_(function(c){if(!c||typeof c!="object"&&typeof c!="function")throw new TypeError("getProto: not an object");return o(c)},"getProto"):i?_(function(c){return i(c)},"getProto"):null}}),AF=Ae({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,i=Gd();t.exports=i.call(n,o)}}),NY=Ae({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var n,o=gF(),i=hY(),s=gY(),c=mY(),f=yY(),p=vY(),h=Vv(),y=bY(),v=EY(),b=SY(),S=AY(),w=CY(),x=wY(),O=xY(),A=_Y(),R=Function,T=_(function(Ke){try{return R('"use strict"; return ('+Ke+").constructor;")()}catch{}},"getEvalledConstructor"),F=Yv(),N=TY(),L=_(function(){throw new h},"throwTypeError"),B=F?(function(){try{return arguments.callee,L}catch{try{return F(arguments,"callee").get}catch{return L}}})():L,$=yF()(),P=LY(),I=bF(),U=vF(),Q=EF(),X=Wv(),z={},q=typeof Uint8Array>"u"||!P?n:P(Uint8Array),k={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":$&&P?P([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":z,"%AsyncGenerator%":z,"%AsyncGeneratorFunction%":z,"%AsyncIteratorPrototype%":z,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":s,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":R,"%GeneratorFunction%":z,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":$&&P?P(P([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!$||!P?n:P(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":F,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":c,"%ReferenceError%":f,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!$||!P?n:P(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":$&&P?P(""[Symbol.iterator]()):n,"%Symbol%":$?Symbol:n,"%SyntaxError%":p,"%ThrowTypeError%":B,"%TypedArray%":q,"%TypeError%":h,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":y,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":X,"%Function.prototype.apply%":Q,"%Object.defineProperty%":N,"%Object.getPrototypeOf%":I,"%Math.abs%":v,"%Math.floor%":b,"%Math.max%":S,"%Math.min%":w,"%Math.pow%":x,"%Math.round%":O,"%Math.sign%":A,"%Reflect.getPrototypeOf%":U};if(P)try{null.error}catch(Ke){Y=P(P(Ke)),k["%Error.prototype%"]=Y}var Y,ae=_(function Ke(Re){var tt;if(Re==="%AsyncFunction%")tt=T("async function () {}");else if(Re==="%GeneratorFunction%")tt=T("function* () {}");else if(Re==="%AsyncGeneratorFunction%")tt=T("async function* () {}");else if(Re==="%AsyncGenerator%"){var Le=Ke("%AsyncGeneratorFunction%");Le&&(tt=Le.prototype)}else if(Re==="%AsyncIteratorPrototype%"){var Be=Ke("%AsyncGenerator%");Be&&P&&(tt=P(Be.prototype))}return k[Re]=tt,tt},"doEval2"),le={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ce=Gd(),j=AF(),W=ce.call(X,Array.prototype.concat),ne=ce.call(Q,Array.prototype.splice),ue=ce.call(X,String.prototype.replace),se=ce.call(X,String.prototype.slice),fe=ce.call(X,RegExp.prototype.exec),pe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Fe=/\\(\\)?/g,De=_(function(Re){var tt=se(Re,0,1),Le=se(Re,-1);if(tt==="%"&&Le!=="%")throw new p("invalid intrinsic syntax, expected closing `%`");if(Le==="%"&&tt!=="%")throw new p("invalid intrinsic syntax, expected opening `%`");var Be=[];return ue(Re,pe,function(Ie,Nt,lt,Sr){Be[Be.length]=lt?ue(Sr,Fe,"$1"):Nt||Ie}),Be},"stringToPath3"),bt=_(function(Re,tt){var Le=Re,Be;if(j(le,Le)&&(Be=le[Le],Le="%"+Be[0]+"%"),j(k,Le)){var Ie=k[Le];if(Ie===z&&(Ie=ae(Le)),typeof Ie>"u"&&!tt)throw new h("intrinsic "+Re+" exists, but is not available. Please file an issue!");return{alias:Be,name:Le,value:Ie}}throw new p("intrinsic "+Re+" does not exist!")},"getBaseIntrinsic2");t.exports=_(function(Re,tt){if(typeof Re!="string"||Re.length===0)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof tt!="boolean")throw new h('"allowMissing" argument must be a boolean');if(fe(/^%?[^%]*%?$/,Re)===null)throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Le=De(Re),Be=Le.length>0?Le[0]:"",Ie=bt("%"+Be+"%",tt),Nt=Ie.name,lt=Ie.value,Sr=!1,Ot=Ie.alias;Ot&&(Be=Ot[0],ne(Le,W([0,1],Ot)));for(var sr=1,an=!0;sr<Le.length;sr+=1){var qt=Le[sr],st=se(qt,0,1),bn=se(qt,-1);if((st==='"'||st==="'"||st==="`"||bn==='"'||bn==="'"||bn==="`")&&st!==bn)throw new p("property names with quotes must have matching quotes");if((qt==="constructor"||!an)&&(Sr=!0),Be+="."+qt,Nt="%"+Be+"%",j(k,Nt))lt=k[Nt];else if(lt!=null){if(!(qt in lt)){if(!tt)throw new h("base intrinsic for "+Re+" exists, but the property is not available.");return}if(F&&sr+1>=Le.length){var on=F(lt,qt);an=!!on,an&&"get"in on&&!("originalValue"in on.get)?lt=on.get:lt=lt[qt]}else an=j(lt,qt),lt=lt[qt];an&&!Sr&&(k[Nt]=lt)}}return lt},"GetIntrinsic")}}),Kv=Ae({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var n=NY(),o=SF(),i=o([n("%String.prototype.indexOf%")]);t.exports=_(function(c,f){var p=n(c,!!f);return typeof p=="function"&&i(c,".prototype.")>-1?o([p]):p},"callBoundIntrinsic")}}),kY=Ae({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var n=mF();t.exports=_(function(){return n()&&!!Symbol.toStringTag},"hasToStringTagShams")}}),CF=Ae({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var n=Kv(),o=kY()(),i=AF(),s=Yv(),c;o?(f=n("RegExp.prototype.exec"),p={},h=_(function(){throw p},"throwRegexMarker"),y={toString:h,valueOf:h},typeof Symbol.toPrimitive=="symbol"&&(y[Symbol.toPrimitive]=h),c=_(function(w){if(!w||typeof w!="object")return!1;var x=s(w,"lastIndex"),O=x&&i(x,"value");if(!O)return!1;try{f(w,y)}catch(A){return A===p}},"isRegex")):(v=n("Object.prototype.toString"),b="[object RegExp]",c=_(function(w){return!w||typeof w!="object"&&typeof w!="function"?!1:v(w)===b},"isRegex"));var f,p,h,y,v,b;t.exports=c}}),zY=Ae({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=o;var n=Object.prototype.toString;function o(i){if(!i)return!1;var s=n.call(i);return s==="[object Function]"||typeof i=="function"&&s!=="[object RegExp]"||typeof window<"u"&&(i===window.setTimeout||i===window.alert||i===window.confirm||i===window.prompt)}_(o,"isFunction3")}}),jY=Ae({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var n=Kv(),o=CF(),i=n("RegExp.prototype.exec"),s=Vv();t.exports=_(function(f){if(!o(f))throw new s("`regex` must be a RegExp");return _(function(h){return i(f,h)!==null},"test")},"regexTester")}}),$Y=Ae({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var n=Kv(),o=n("Object.prototype.toString"),i=yF()(),s=jY();i?(c=n("Symbol.prototype.toString"),f=s(/^Symbol\(.*\)$/),p=_(function(y){return typeof y.valueOf()!="symbol"?!1:f(c(y))},"isRealSymbolObject"),t.exports=_(function(y){if(typeof y=="symbol")return!0;if(!y||typeof y!="object"||o(y)!=="[object Symbol]")return!1;try{return p(y)}catch{return!1}},"isSymbol3")):t.exports=_(function(y){return!1},"isSymbol3");var c,f,p}}),PY=Gv(CF()),IY=Gv(zY()),HY=Gv($Y());function wF(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}_(wF,"isObject");var UY=typeof global=="object"&&global&&global.Object===Object&&global,qY=UY,GY=typeof self=="object"&&self&&self.Object===Object&&self,VY=qY||GY||Function("return this")(),Xv=VY,YY=Xv.Symbol,vl=YY,xF=Object.prototype,WY=xF.hasOwnProperty,KY=xF.toString,xs=vl?vl.toStringTag:void 0;function DF(e){var t=WY.call(e,xs),n=e[xs];try{e[xs]=void 0;var o=!0}catch{}var i=KY.call(e);return o&&(t?e[xs]=n:delete e[xs]),i}_(DF,"getRawTag");var XY=DF,ZY=Object.prototype,JY=ZY.toString;function _F(e){return JY.call(e)}_(_F,"objectToString");var QY=_F,eW="[object Null]",tW="[object Undefined]",PC=vl?vl.toStringTag:void 0;function OF(e){return e==null?e===void 0?tW:eW:PC&&PC in Object(e)?XY(e):QY(e)}_(OF,"baseGetTag");var rW=OF,IC=vl?vl.prototype:void 0;IC&&IC.toString;function TF(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}_(TF,"isObject2");var RF=TF,nW="[object AsyncFunction]",aW="[object Function]",oW="[object GeneratorFunction]",iW="[object Proxy]";function FF(e){if(!RF(e))return!1;var t=rW(e);return t==aW||t==oW||t==nW||t==iW}_(FF,"isFunction");var lW=FF,sW=Xv["__core-js_shared__"],Kg=sW,HC=(function(){var e=/[^.]+$/.exec(Kg&&Kg.keys&&Kg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function BF(e){return!!HC&&HC in e}_(BF,"isMasked");var uW=BF,cW=Function.prototype,fW=cW.toString;function MF(e){if(e!=null){try{return fW.call(e)}catch{}try{return e+""}catch{}}return""}_(MF,"toSource");var dW=MF,pW=/[\\^$.*+?()[\]{}|]/g,hW=/^\[object .+?Constructor\]$/,gW=Function.prototype,mW=Object.prototype,yW=gW.toString,vW=mW.hasOwnProperty,bW=RegExp("^"+yW.call(vW).replace(pW,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function LF(e){if(!RF(e)||uW(e))return!1;var t=lW(e)?bW:hW;return t.test(dW(e))}_(LF,"baseIsNative");var EW=LF;function NF(e,t){return e?.[t]}_(NF,"getValue");var SW=NF;function kF(e,t){var n=SW(e,t);return EW(n)?n:void 0}_(kF,"getNative");var zF=kF;function jF(e,t){return e===t||e!==e&&t!==t}_(jF,"eq");var AW=jF,CW=zF(Object,"create"),au=CW;function $F(){this.__data__=au?au(null):{},this.size=0}_($F,"hashClear");var wW=$F;function PF(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}_(PF,"hashDelete");var xW=PF,DW="__lodash_hash_undefined__",_W=Object.prototype,OW=_W.hasOwnProperty;function IF(e){var t=this.__data__;if(au){var n=t[e];return n===DW?void 0:n}return OW.call(t,e)?t[e]:void 0}_(IF,"hashGet");var TW=IF,RW=Object.prototype,FW=RW.hasOwnProperty;function HF(e){var t=this.__data__;return au?t[e]!==void 0:FW.call(t,e)}_(HF,"hashHas");var BW=HF,MW="__lodash_hash_undefined__";function UF(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=au&&t===void 0?MW:t,this}_(UF,"hashSet");var LW=UF;function Go(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}_(Go,"Hash");Go.prototype.clear=wW;Go.prototype.delete=xW;Go.prototype.get=TW;Go.prototype.has=BW;Go.prototype.set=LW;var UC=Go;function qF(){this.__data__=[],this.size=0}_(qF,"listCacheClear");var NW=qF;function GF(e,t){for(var n=e.length;n--;)if(AW(e[n][0],t))return n;return-1}_(GF,"assocIndexOf");var Vd=GF,kW=Array.prototype,zW=kW.splice;function VF(e){var t=this.__data__,n=Vd(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():zW.call(t,n,1),--this.size,!0}_(VF,"listCacheDelete");var jW=VF;function YF(e){var t=this.__data__,n=Vd(t,e);return n<0?void 0:t[n][1]}_(YF,"listCacheGet");var $W=YF;function WF(e){return Vd(this.__data__,e)>-1}_(WF,"listCacheHas");var PW=WF;function KF(e,t){var n=this.__data__,o=Vd(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}_(KF,"listCacheSet");var IW=KF;function Vo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}_(Vo,"ListCache");Vo.prototype.clear=NW;Vo.prototype.delete=jW;Vo.prototype.get=$W;Vo.prototype.has=PW;Vo.prototype.set=IW;var HW=Vo,UW=zF(Xv,"Map"),qW=UW;function XF(){this.size=0,this.__data__={hash:new UC,map:new(qW||HW),string:new UC}}_(XF,"mapCacheClear");var GW=XF;function ZF(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}_(ZF,"isKeyable");var VW=ZF;function JF(e,t){var n=e.__data__;return VW(t)?n[typeof t=="string"?"string":"hash"]:n.map}_(JF,"getMapData");var Yd=JF;function QF(e){var t=Yd(this,e).delete(e);return this.size-=t?1:0,t}_(QF,"mapCacheDelete");var YW=QF;function eB(e){return Yd(this,e).get(e)}_(eB,"mapCacheGet");var WW=eB;function tB(e){return Yd(this,e).has(e)}_(tB,"mapCacheHas");var KW=tB;function rB(e,t){var n=Yd(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}_(rB,"mapCacheSet");var XW=rB;function Yo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}_(Yo,"MapCache");Yo.prototype.clear=GW;Yo.prototype.delete=YW;Yo.prototype.get=WW;Yo.prototype.has=KW;Yo.prototype.set=XW;var nB=Yo,ZW="Expected a function";function Wd(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(ZW);var n=_(function(){var o=arguments,i=t?t.apply(this,o):o[0],s=n.cache;if(s.has(i))return s.get(i);var c=e.apply(this,o);return n.cache=s.set(i,c)||s,c},"memoized");return n.cache=new(Wd.Cache||nB),n}_(Wd,"memoize");Wd.Cache=nB;var JW=Wd,QW=500;function aB(e){var t=JW(e,function(o){return n.size===QW&&n.clear(),o}),n=t.cache;return t}_(aB,"memoizeCapped");var eK=aB,tK=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rK=/\\(\\)?/g;eK(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(tK,function(n,o,i,s){t.push(i?s.replace(rK,"$1"):o||n)}),t});var nK=wF,aK=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function Zv(e){if(!nK(e))return e;let t=e,n=!1;return typeof Event<"u"&&e instanceof Event&&(t=hF(t),n=!0),t=Object.keys(t).reduce((o,i)=>{try{t[i]&&t[i].toJSON,o[i]=t[i]}catch{n=!0}return o},{}),n?t:e}_(Zv,"convertUnconventionalData");var oK=_(function(t){let n,o,i,s;return _(function(f,p){try{if(f==="")return s=[],n=new Map([[p,"[]"]]),o=new Map,i=[],p;const h=o.get(this)||this;for(;i.length&&h!==i[0];)i.shift(),s.pop();if(typeof p=="boolean")return p;if(p===void 0)return t.allowUndefined?"_undefined_":void 0;if(p===null)return null;if(typeof p=="number")return p===Number.NEGATIVE_INFINITY?"_-Infinity_":p===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(p)?"_NaN_":p;if(typeof p=="bigint")return`_bigint_${p.toString()}`;if(typeof p=="string")return aK.test(p)?t.allowDate?`_date_${p}`:void 0:p;if((0,PY.default)(p))return t.allowRegExp?`_regexp_${p.flags}|${p.source}`:void 0;if((0,IY.default)(p))return;if((0,HY.default)(p)){if(!t.allowSymbol)return;const v=Symbol.keyFor(p);return v!==void 0?`_gsymbol_${v}`:`_symbol_${p.toString().slice(7,-1)}`}if(i.length>=t.maxDepth)return Array.isArray(p)?`[Array(${p.length})]`:"[Object]";if(p===this)return`_duplicate_${JSON.stringify(s)}`;if(p instanceof Error&&t.allowError)return{__isConvertedError__:!0,errorProperties:{...p.cause?{cause:p.cause}:{},...p,name:p.name,message:p.message,stack:p.stack,"_constructor-name_":p.constructor.name}};if(p?.constructor?.name&&p.constructor.name!=="Object"&&!Array.isArray(p)){const v=n.get(p);if(!v){const b={__isClassInstance__:!0,__className__:p.constructor.name,...Object.getOwnPropertyNames(p).reduce((S,w)=>{try{S[w]=p[w]}catch{}return S},{})};return s.push(f),i.unshift(b),n.set(p,JSON.stringify(s)),p!==b&&o.set(p,b),b}return`_duplicate_${v}`}const y=n.get(p);if(!y){const v=Array.isArray(p)?p:Zv(p);return s.push(f),i.unshift(v),n.set(p,JSON.stringify(s)),p!==v&&o.set(p,v),v}return`_duplicate_${y}`}catch{return}},"replace")},"replacer2"),iK={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},lK=_((e,t={})=>{const n={...iK,...t};return JSON.stringify(Zv(e),oK(n),t.space)},"stringify");function Jv(e){return lK(e,{maxDepth:50})}_(Jv,"argsHash");var oB=C.createContext({sources:{}}),iB="--unknown--",sK=_(({children:e,channel:t})=>{const[n,o]=C.useState({});return C.useEffect(()=>{const i=_((s,c=null,f=!1)=>{const{id:p,args:h=void 0,source:y,format:v}=typeof s=="string"?{id:s,source:c,format:f}:s,b=h?Jv(h):iB;o(S=>({...S,[p]:{...S[p],[b]:{code:y||"",format:v}}}))},"handleSnippetRendered");return t.on(Qg,i),()=>t.off(Qg,i)},[]),E.createElement(oB.Provider,{value:{sources:n}},e)},"SourceContainer");function lB(e,t,n){const[o,i]=C.useState("Transforming..."),s=t?t?.(e,n):e;return C.useEffect(()=>{async function c(){const f=await s;f!==o&&i(f)}_(c,"getTransformedCode"),c()}),typeof s=="object"&&typeof s.then=="function"?o:s}_(lB,"useTransformCode");var uK=_((e,t,n)=>{const{sources:o}=n,i=o?.[e];return i?.[Jv(t)]||i?.[iB]||{code:""}},"getStorySource"),cK=_(({snippet:e,storyContext:t,typeFromProps:n,transformFromProps:o})=>{const i=t.parameters??{},{__isArgsStory:s}=i,c=i.docs?.source||{},f=n||c.type||sg.AUTO,h=f===sg.DYNAMIC||f===sg.AUTO&&e&&s?e:c.originalSource||"",y=o??c.transform,v=y?lB(h,y,t):h;return c.code!==void 0?c.code:v},"useCode"),fK=_((e,t,n)=>{const{of:o}=e,i=C.useMemo(()=>{if(o)return t.resolveOf(o,["story"]).story;try{return t.storyById()}catch{}},[t,o]),s=i?t.getStoryContext(i):{},c=e.__forceInitialArgs?s.initialArgs:s.unmappedArgs,f=i?uK(i.id,c,n):null,p=cK({snippet:f?f.code:"",storyContext:{...s,args:c},typeFromProps:e.type,transformFromProps:e.transform});if("of"in e&&o===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");const h=i?.parameters?.docs?.source||{};let y=e.format;const v=e.language??h.language??"jsx",b=e.dark??h.dark??!1;return!e.code&&!i?{error:"Oh no! The source is not available."}:e.code?{code:e.code,format:y,language:v,dark:b}:(y=f?.format??!0,{code:p,format:y,language:v,dark:b})},"useSourceProps"),dK=_(e=>{const t=C.useContext(nn),n=C.useContext(oB),{of:o,source:i}=e;if("of"in e&&o===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");const{story:s}=qo(o||"story",["story"]),c=fK({...i,...o&&{of:o}},t,n),f=e.layout??s.parameters.layout??s.parameters.docs?.canvas?.layout??"padded",p=e.withToolbar??s.parameters.docs?.canvas?.withToolbar??!1,h=e.additionalActions??s.parameters.docs?.canvas?.additionalActions,y=e.sourceState??s.parameters.docs?.canvas?.sourceState??"hidden",v=e.className??s.parameters.docs?.canvas?.className,b=e.story?.inline??s.parameters?.docs?.story?.inline??!1;return E.createElement(v4,{withSource:y==="none"?void 0:c,isExpanded:y==="shown",withToolbar:p,additionalActions:h,className:v,layout:f,inline:b},E.createElement(BU,{of:o||s.moduleExport,meta:e.meta,...e.story}))},"Canvas");const{filterArgTypes:qC}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:pK,STORY_ARGS_UPDATED:GC,UPDATE_STORY_ARGS:hK}=__STORYBOOK_MODULE_CORE_EVENTS__;var gK=_((e,t)=>{const n=mK(e,t);if(!n)throw new Error("No result when story was defined");return n},"useArgs"),mK=_((e,t)=>{const n=e?t.getStoryContext(e):{args:{}},{id:o}=e||{id:"none"},[i,s]=C.useState(n.args);C.useEffect(()=>{const p=_(h=>{h.storyId===o&&s(h.args)},"onArgsUpdated");return t.channel.on(GC,p),()=>t.channel.off(GC,p)},[o,t.channel]);const c=C.useCallback(p=>t.channel.emit(hK,{storyId:o,updatedArgs:p}),[o,t.channel]),f=C.useCallback(p=>t.channel.emit(pK,{storyId:o,argNames:p}),[o,t.channel]);return e&&[i,c,f]},"useArgsIfDefined");const{GLOBALS_UPDATED:VC}=__STORYBOOK_MODULE_CORE_EVENTS__;var yK=_((e,t)=>{const n=t.getStoryContext(e),[o,i]=C.useState(n.globals);return C.useEffect(()=>{const s=_(c=>{i(c.globals)},"onGlobalsUpdated");return t.channel.on(VC,s),()=>t.channel.off(VC,s)},[t.channel]),[o]},"useGlobals");function sB(e,t){const{extractArgTypes:n}=t.docs||{};if(!n)throw new Error("Args unsupported. See Args documentation for your framework.");return n(e)}_(sB,"extractComponentArgTypes");var vK=_(e=>{const{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");const n=C.useContext(nn),{story:o}=n.resolveOf(t||"story",["story"]),{parameters:i,argTypes:s,component:c,subcomponents:f}=o,p=i.docs?.controls||{},h=e.include??p.include,y=e.exclude??p.exclude,v=e.sort??p.sort,[b,S,w]=gK(o,n),[x]=yK(o,n),O=qC(s,h,y);if(!(!!f&&Object.keys(f||{}).length>0))return Object.keys(O).length>0||Object.keys(b).length>0?E.createElement(F0,{rows:O,sort:v,args:b,globals:x,updateArgs:S,resetArgs:w}):null;const R=oY(c)||"Story",T=Object.fromEntries(Object.entries(f||{}).map(([N,L])=>[N,{rows:qC(sB(L,i),h,y),sort:v}])),F={[R]:{rows:O,sort:v},...T};return E.createElement(WU,{tabs:F,sort:v,args:b,globals:x,updateArgs:S,resetArgs:w})},"Controls");const{NAVIGATE_URL:bK}=__STORYBOOK_MODULE_CORE_EVENTS__;var{document:uB}=globalThis,cB=_(({className:e,children:t,...n})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return E.createElement(iv,null,t);const o=e&&e.split("-");return E.createElement(n4,{language:o&&o[1]||"text",format:!1,code:t,...n})},"CodeOrSourceMdx");function Kd(e,t){e.channel.emit(bK,t)}_(Kd,"navigate");var B0=RR.a,EK=_(({hash:e,children:t})=>{const n=C.useContext(nn);return E.createElement(B0,{href:e,target:"_self",onClick:o=>{const i=e.substring(1);uB.getElementById(i)&&Kd(n,e)}},t)},"AnchorInPage"),fB=_(e=>{const{href:t,target:n,children:o,...i}=e,s=C.useContext(nn);return!t||n==="_blank"||/^https?:\/\//.test(t)?E.createElement(B0,{...e}):t.startsWith("#")?E.createElement(EK,{hash:t},o):E.createElement(B0,{href:t,onClick:c=>{c.button===0&&!c.altKey&&!c.ctrlKey&&!c.metaKey&&!c.shiftKey&&(c.preventDefault(),Kd(s,c.currentTarget.getAttribute("href")||""))},target:n,...i},o)},"AnchorMdx"),dB=["h1","h2","h3","h4","h5","h6"],SK=dB.reduce((e,t)=>({...e,[t]:G(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),AK=G.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),CK=_(({as:e,id:t,children:n,...o})=>{const i=C.useContext(nn),s=SK[e],c=`#${t}`;return E.createElement(s,{id:t,...o},E.createElement(AK,{"aria-hidden":"true",href:c,tabIndex:-1,target:"_self",onClick:f=>{uB.getElementById(t)&&Kd(i,c)}},E.createElement(L$,null)),n)},"HeaderWithOcticonAnchor"),Qv=_(e=>{const{as:t,id:n,children:o,...i}=e;if(n)return E.createElement(CK,{as:t,id:n,...i},o);const s=t,{as:c,...f}=e;return E.createElement(s,{...nt(f,t)})},"HeaderMdx"),pB=dB.reduce((e,t)=>({...e,[t]:n=>E.createElement(Qv,{as:t,...n})}),{}),wK=_(e=>{if(!e.children)return null;if(typeof e.children!="string")throw new Error(ZM`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
|
|
810
|
-
This is often caused by not wrapping the child in a template string.
|
|
811
|
-
|
|
812
|
-
This is invalid:
|
|
813
|
-
<Markdown>
|
|
814
|
-
# Some heading
|
|
815
|
-
A paragraph
|
|
816
|
-
</Markdown>
|
|
817
|
-
|
|
818
|
-
Instead do:
|
|
819
|
-
<Markdown>
|
|
820
|
-
{\`
|
|
821
|
-
# Some heading
|
|
822
|
-
A paragraph
|
|
823
|
-
\`}
|
|
824
|
-
</Markdown>
|
|
825
|
-
`);return E.createElement(P4,{...e,options:{forceBlock:!0,overrides:{code:cB,a:fB,...pB,...e?.options?.overrides},...e?.options}})},"Markdown"),xK=_(e=>{switch(e.type){case"story":return e.story.parameters.docs?.description?.story||null;case"meta":{const{parameters:t,component:n}=e.preparedMeta,o=t.docs?.description?.component;return o||t.docs?.extractComponentDescription?.(n,{component:n,parameters:t})||null}case"component":{const{component:t,projectAnnotations:{parameters:n}}=e;return n?.docs?.extractComponentDescription?.(t,{component:t,parameters:n})||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${e.type}`)}},"getDescriptionFromResolvedOf"),M0=_(e=>{const{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");const n=qo(t||"meta"),o=xK(n);return o?E.createElement(wK,null,o):null},"DescriptionContainer"),{document:DK,window:_K}=globalThis,OK=_(({context:e,theme:t,children:n})=>{let o;try{o=e.resolveOf("meta",["meta"]).preparedMeta.parameters?.docs?.toc}catch{o=e?.projectAnnotations?.parameters?.docs?.toc}return C.useEffect(()=>{let i;try{if(i=new URL(_K.parent.location.toString()),i.hash){const s=DK.getElementById(decodeURIComponent(i.hash.substring(1)));s&&setTimeout(()=>{cF(s)},200)}}catch{}}),E.createElement(nn.Provider,{value:e},E.createElement(sK,{channel:e.channel},E.createElement(QO,{theme:vj(t)},E.createElement(RU,{toc:o?E.createElement(iq,{className:"sbdocs sbdocs-toc--custom",channel:e.channel,...o}):null},n))))},"DocsContainer"),TK=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,RK=Object.hasOwnProperty,hB=class{constructor(){this.occurrences,this.reset()}slug(t,n){const o=this;let i=gB(t,n===!0);const s=i;for(;RK.call(o.occurrences,i);)o.occurrences[s]++,i=s+"-"+o.occurrences[s];return o.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}};_(hB,"BananaSlug");var FK=hB;function gB(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(TK,"").replace(/ /g,"-"))}_(gB,"slug");var mB=new FK,BK=_(({children:e,disableAnchor:t,...n})=>{if(t||typeof e!="string")return E.createElement(lv,null,e);const o=mB.slug(e.toLowerCase());return E.createElement(Qv,{as:"h2",id:o,...n},e)},"Heading"),MK=_(({children:e,disableAnchor:t})=>{if(t||typeof e!="string")return E.createElement(sv,null,e);const n=mB.slug(e.toLowerCase());return E.createElement(Qv,{as:"h3",id:n},e)},"Subheading"),yB=_(({of:e,expanded:t=!0,withToolbar:n=!1,__forceInitialArgs:o=!1,__primary:i=!1})=>{const{story:s}=qo(e||"story",["story"]),c=s.parameters.docs?.canvas?.withToolbar??n;return E.createElement(nY,{storyId:s.id},t&&E.createElement(E.Fragment,null,E.createElement(MK,null,s.name),E.createElement(M0,{of:e})),E.createElement(dK,{of:e,withToolbar:c,story:{__forceInitialArgs:o,__primary:i},source:{__forceInitialArgs:o}}))},"DocsStory"),LK=_(e=>{const{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");const{csfFile:n}=qo(t||"meta",["meta"]),i=C.useContext(nn).componentStoriesFromCSFFile(n)[0];return i?E.createElement(yB,{of:i.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},"Primary"),NK=G(BK)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}})),kK=_(({title:e="Stories",includePrimary:t=!0})=>{const{componentStories:n,projectAnnotations:o,getStoryContext:i}=C.useContext(nn);let s=n();const{stories:{filter:c}={filter:void 0}}=o.parameters?.docs||{};return c&&(s=s.filter(p=>c(p,i(p)))),s.some(p=>p.tags?.includes("autodocs"))&&(s=s.filter(p=>p.tags?.includes("autodocs")&&!p.usesMount)),t||(s=s.slice(1)),!s||s.length===0?null:E.createElement(E.Fragment,null,typeof e=="string"?E.createElement(NK,null,e):e,s.map(p=>p&&E.createElement(yB,{key:p.id,of:p.moduleExport,expanded:!0,__forceInitialArgs:!0})))},"Stories");const{deprecate:zK}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var jK="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle",$K=_(e=>{const{of:t,children:n}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let o;try{o=qo(t||"meta",["meta"]).preparedMeta}catch(f){if(n&&!f.message.includes("did you forget to use <Meta of={} />?"))throw f}const{componentSubtitle:i,docs:s}=o?.parameters||{};i&&zK(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${jK}`);const c=n||s?.subtitle||i;return c?E.createElement(_U,{className:"sbdocs-subtitle sb-unstyled"},c):null},"Subtitle"),PK=/\s*\/\s*/,IK=_(e=>{const t=e.trim().split(PK);return t?.[t?.length-1]||e},"extractTitle"),HK=_(e=>{const{children:t,of:n}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let o;try{o=qo(n||"meta",["meta"]).preparedMeta}catch(s){if(t&&s instanceof Error&&!s.message.includes("did you forget to use <Meta of={} />?"))throw s}const i=t||IK(o?.title||"");return i?E.createElement(DU,{className:"sbdocs-title sb-unstyled"},i):null},"Title"),UK=_(()=>{const e=qo("meta",["meta"]),{stories:t}=e.csfFile,n=Object.keys(t).length===1;return E.createElement(E.Fragment,null,E.createElement(HK,null),E.createElement($K,null),E.createElement(M0,{of:"meta"}),n?E.createElement(M0,{of:"story"}):null,E.createElement(LK,null),E.createElement(vK,null),n?null:E.createElement(kK,null))},"DocsPage");function eb({context:e,docsParameter:t}){const n=t.container||OK,o=t.page||UK;return E.createElement(n,{context:e,theme:t.theme},E.createElement(o,null))}_(eb,"Docs");const{composeConfigs:qK}=__STORYBOOK_MODULE_PREVIEW_API__,{Channel:GK}=__STORYBOOK_MODULE_CHANNELS__,{Preview:VK,composeConfigs:YK}=__STORYBOOK_MODULE_PREVIEW_API__,{DocsContext:WK}=__STORYBOOK_MODULE_PREVIEW_API__;var vB=class extends WK{constructor(t,n,o,i){super(t,n,o,[]),this.channel=t,this.store=n,this.renderStoryToElement=o,this.processMetaExports=i,this.referenceMeta=_((s,c)=>{const f=this.processMetaExports(s);this.referenceCSFFile(f),super.referenceMeta(s,c)},"referenceMeta")}};_(vB,"ExternalDocsContext");var KK=vB,bB=class{constructor(t){this.prefix=t,this.entries=new Map}get(t){return this.entries.has(t)||this.entries.set(t,`${this.prefix}${this.entries.size}`),this.entries.get(t)}};_(bB,"ConstantMap");var YC=bB,EB=class extends VK{constructor(t){const n=_(i=>Promise.resolve(this.moduleExportsByImportPath[i]),"importFn"),o=_(()=>YK([{parameters:{docs:{story:{inline:!0}}}},this.projectAnnotations]),"getProjectAnnotations");super(n,o,new GK({})),this.projectAnnotations=t,this.importPaths=new YC("./importPath/"),this.titles=new YC("title-"),this.storyIndex={v:5,entries:{}},this.moduleExportsByImportPath={},this.processMetaExports=_(i=>{const s=this.importPaths.get(i);this.moduleExportsByImportPath[s]=i;const c=i.default.title||this.titles.get(i),f=this.storyStoreValue.processCSFFileWithCache(i,s,c);return Object.values(f.stories).forEach(({id:p,name:h})=>{this.storyIndex.entries[p]={id:p,importPath:s,title:c,name:h,type:"story",subtype:"story"}}),this.onStoriesChanged({storyIndex:this.storyIndex}),f},"processMetaExports"),this.docsContext=_(()=>new KK(this.channel,this.storyStoreValue,this.renderStoryToElement.bind(this),this.processMetaExports.bind(this)),"docsContext")}async getStoryIndexFromServer(){return this.storyIndex}};_(EB,"ExternalPreview");var XK=EB;function SB(e){const t=C.useRef();return t.current||(t.current=new XK(e)),t.current}_(SB,"usePreview");function ZK({projectAnnotationsList:e,children:t}){const n=qK(e),o=SB(n),i={...n.parameters?.docs,page:_(()=>t,"page")},s=eb;return E.createElement(s,{docsParameter:i,context:o.docsContext()})}_(ZK,"ExternalDocs");var AB={code:cB,a:fB,...pB},CB=class extends C.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){const{showException:n}=this.props;n(t)}render(){const{hasError:t}=this.state,{children:n}=this.props;return t?null:E.createElement(E.Fragment,null,n)}};_(CB,"ErrorBoundary");var JK=CB,wB=class{constructor(){this.render=async(t,n,o)=>{const i={...AB,...n?.components},s=eb;return new Promise((c,f)=>{Ua(async()=>{const{MDXProvider:p}=await import("./index-yMswRDPh.js");return{MDXProvider:p}},__vite__mapDeps([7,2,1,3,4]),import.meta.url).then(({MDXProvider:p})=>kk(E.createElement(JK,{showException:f,key:Math.random()},E.createElement(p,{components:i},E.createElement(s,{context:t,docsParameter:n}))),o)).then(()=>c())})},this.unmount=t=>{zk(t)}}};_(wB,"DocsRenderer");var QK=wB;const GX=Object.freeze(Object.defineProperty({__proto__:null,DocsRenderer:QK,defaultComponents:AB},Symbol.toStringTag,{value:"Module"})),xB=Object.freeze(Object.defineProperty({__proto__:null,WithToolTipState:l0,WithTooltip:l0,WithTooltipPure:A3},Symbol.toStringTag,{value:"Module"}));export{iT as A,GX as D,xl as F,DX as M,E as R,Yy as S,WI as T,GI as W,Wy as _,ou as a,Xe as b,LT as c,Jr as d,en as g,C as r,G as s};
|